The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2789 lines
139KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 7 End-User License
  8. Agreement and JUCE Privacy Policy.
  9. End User License Agreement: www.juce.com/juce-7-licence
  10. Privacy Policy: www.juce.com/juce-privacy-policy
  11. Or: You may also use this code under the terms of the GPL v3 (see
  12. www.gnu.org/licenses).
  13. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  14. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  15. DISCLAIMED.
  16. ==============================================================================
  17. */
  18. namespace juce
  19. {
  20. // This byte-code is generated from native/java/com/rmsl/juce/ComponentPeerView.java with min sdk version 16
  21. // See juce_core/native/java/README.txt on how to generate this byte-code.
  22. static const uint8 javaComponentPeerView[]
  23. {
  24. 0x1f, 0x8b, 0x08, 0x08, 0x94, 0xf6, 0xe4, 0x63, 0x00, 0x03, 0x63, 0x6c,
  25. 0x61, 0x73, 0x73, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x78, 0x00, 0xad, 0x7c,
  26. 0x0b, 0x7c, 0x9c, 0x55, 0xb5, 0xef, 0xda, 0xdf, 0x3c, 0x33, 0x79, 0x4d,
  27. 0x26, 0x69, 0x93, 0xa6, 0xaf, 0x49, 0x52, 0x68, 0xde, 0x99, 0xa6, 0xaf,
  28. 0xa4, 0x69, 0x4b, 0xd2, 0x34, 0x69, 0xf3, 0x6a, 0xd3, 0x64, 0x9a, 0xd2,
  29. 0xa6, 0x40, 0xa7, 0xc9, 0xb4, 0x19, 0x3a, 0x99, 0x99, 0xce, 0x4c, 0xd2,
  30. 0x96, 0x97, 0xe1, 0x75, 0x28, 0x88, 0x0a, 0x82, 0x87, 0x22, 0xa8, 0x1c,
  31. 0x44, 0x28, 0x0f, 0x15, 0xa5, 0x8a, 0x1e, 0x8b, 0xa2, 0x16, 0x44, 0x45,
  32. 0xc1, 0x07, 0x5e, 0xc4, 0x57, 0x51, 0xd4, 0x5e, 0xf1, 0x81, 0x47, 0x8e,
  33. 0x07, 0x15, 0x2f, 0xf7, 0xbf, 0xf6, 0xde, 0x33, 0xf9, 0xa6, 0x49, 0x01,
  34. 0xef, 0xef, 0x26, 0xbf, 0xff, 0xb7, 0xd6, 0x5e, 0x6b, 0x3f, 0xd7, 0x5e,
  35. 0x7b, 0xed, 0xbd, 0xbf, 0x49, 0x66, 0x34, 0x78, 0xd8, 0xe5, 0x5b, 0xbe,
  36. 0x92, 0x0e, 0x7f, 0xca, 0xf9, 0x9a, 0xf7, 0x43, 0x2f, 0xfd, 0x71, 0xf8,
  37. 0xf4, 0x9d, 0xcd, 0xdf, 0x5e, 0xf9, 0x5f, 0xc3, 0x4f, 0x8c, 0x1c, 0x28,
  38. 0x5d, 0x77, 0xf1, 0x45, 0x4f, 0x3c, 0xda, 0x4b, 0x14, 0x23, 0xa2, 0xc3,
  39. 0x43, 0x2b, 0x3c, 0xa4, 0x7f, 0x7e, 0xdf, 0x43, 0x34, 0x26, 0x94, 0xbc,
  40. 0x13, 0x70, 0xdb, 0x89, 0x42, 0xa0, 0x95, 0x0e, 0xa2, 0x0a, 0xd0, 0xa2,
  41. 0x1c, 0xa2, 0xe7, 0x41, 0x6b, 0x73, 0x89, 0x20, 0xa2, 0x47, 0x0a, 0x89,
  42. 0x96, 0x34, 0x11, 0xdd, 0x5c, 0x44, 0x94, 0xac, 0x27, 0x9a, 0x04, 0x8e,
  43. 0x00, 0x57, 0x00, 0xef, 0x01, 0xae, 0x01, 0xfe, 0x0d, 0xb8, 0x11, 0xb8,
  44. 0x15, 0xf8, 0x10, 0x70, 0x17, 0xf0, 0x71, 0xe0, 0xb3, 0xc0, 0xb7, 0x80,
  45. 0x1f, 0x01, 0x3f, 0x06, 0x7e, 0x06, 0x9c, 0x06, 0x5e, 0x01, 0xce, 0x00,
  46. 0x7f, 0x00, 0xfe, 0x0c, 0xfc, 0x15, 0xf8, 0x3b, 0xf0, 0x4f, 0x40, 0x34,
  47. 0x10, 0xd9, 0x80, 0x25, 0xc0, 0x3a, 0xa0, 0x15, 0xd8, 0x08, 0x74, 0x01,
  48. 0x7d, 0xc0, 0x20, 0xb0, 0x03, 0xd8, 0x0d, 0x04, 0x80, 0x7d, 0xc0, 0x55,
  49. 0xc0, 0x09, 0xe0, 0x39, 0xe0, 0x77, 0x5c, 0xde, 0x47, 0x74, 0x1e, 0xd0,
  50. 0x01, 0xc4, 0x80, 0x9b, 0x80, 0xfb, 0x80, 0x27, 0x80, 0x1f, 0x03, 0x7f,
  51. 0x04, 0xac, 0xcb, 0x88, 0x16, 0x02, 0xab, 0x81, 0x41, 0x60, 0x1c, 0xb8,
  52. 0x1d, 0x78, 0x14, 0x78, 0x0a, 0x78, 0x09, 0xb0, 0x37, 0xa2, 0x1f, 0xc0,
  53. 0x3a, 0x60, 0x27, 0x70, 0x1d, 0x70, 0x27, 0xf0, 0x18, 0xf0, 0x2a, 0x90,
  54. 0xb3, 0x9c, 0xe8, 0x02, 0x20, 0x01, 0x3c, 0x0c, 0xfc, 0x04, 0x30, 0x56,
  55. 0x10, 0xd5, 0x03, 0x17, 0x01, 0xef, 0x07, 0x4e, 0x02, 0xff, 0x04, 0x3a,
  56. 0x56, 0x12, 0x4d, 0x01, 0x8f, 0x01, 0x3f, 0x02, 0xfe, 0x0e, 0x94, 0xae,
  57. 0x42, 0xdd, 0xc0, 0x6e, 0x60, 0x12, 0xb8, 0x11, 0xf8, 0x24, 0xf0, 0x03,
  58. 0xe0, 0x0c, 0x90, 0xbd, 0x9a, 0x68, 0x31, 0xb0, 0x1e, 0x18, 0x00, 0xae,
  59. 0x06, 0x3e, 0x02, 0x9c, 0x00, 0x9e, 0x06, 0x5e, 0x04, 0x5e, 0x06, 0x7e,
  60. 0x0b, 0xbc, 0x01, 0xd8, 0x31, 0x4f, 0x59, 0x40, 0x2e, 0xe0, 0x01, 0x4a,
  61. 0x80, 0xc5, 0x40, 0x05, 0x50, 0x03, 0x2c, 0x03, 0x9a, 0x80, 0x75, 0xc0,
  62. 0x06, 0x60, 0x33, 0xd0, 0x07, 0x6c, 0x03, 0x86, 0x80, 0xdd, 0xc0, 0x08,
  63. 0x30, 0x06, 0x8c, 0x03, 0x49, 0xe0, 0x4a, 0xe0, 0x5a, 0xe0, 0x28, 0xf0,
  64. 0x7e, 0xe0, 0x76, 0xe0, 0x18, 0x70, 0x0f, 0xf0, 0x71, 0xe0, 0x38, 0xf0,
  65. 0x29, 0xe0, 0x31, 0xe0, 0x71, 0xe0, 0xcb, 0xc0, 0x29, 0xe0, 0x19, 0xe0,
  66. 0x3b, 0xc0, 0x0b, 0xc0, 0x4f, 0x81, 0xd3, 0xc0, 0x2b, 0xc0, 0x19, 0xe0,
  67. 0x4d, 0xa0, 0xa0, 0x19, 0xf6, 0x07, 0xaa, 0x80, 0x55, 0x40, 0x3b, 0xd0,
  68. 0x0f, 0x5c, 0x04, 0x5c, 0x0a, 0x1c, 0x02, 0xae, 0x03, 0x6e, 0x05, 0x3e,
  69. 0x0a, 0x3c, 0x0c, 0x3c, 0x0e, 0x7c, 0x1d, 0x78, 0x0e, 0xf8, 0x09, 0xf0,
  70. 0x5b, 0xe0, 0x2f, 0xc0, 0x5b, 0x40, 0xf6, 0x1a, 0x8c, 0x17, 0x58, 0x0a,
  71. 0xac, 0x03, 0xba, 0x81, 0xad, 0xc0, 0xa5, 0xc0, 0x15, 0xc0, 0x07, 0x80,
  72. 0x7b, 0x81, 0x87, 0x80, 0xcf, 0x02, 0xa7, 0x80, 0x1f, 0x00, 0x2f, 0x01,
  73. 0xaf, 0x02, 0xd6, 0x16, 0xf4, 0x09, 0x28, 0x03, 0x7c, 0x40, 0x27, 0x30,
  74. 0x02, 0x84, 0x81, 0x49, 0x60, 0x0a, 0xb8, 0x17, 0xf8, 0x24, 0xf0, 0x35,
  75. 0xe0, 0x79, 0xe0, 0x0f, 0x40, 0xf6, 0x5a, 0xa2, 0xb9, 0xc0, 0x52, 0x60,
  76. 0x3d, 0xd0, 0x0f, 0xec, 0x03, 0x26, 0x80, 0xf7, 0x00, 0xb7, 0x03, 0x0f,
  77. 0x03, 0x8f, 0x03, 0xa7, 0x80, 0xef, 0x03, 0x7f, 0x00, 0xf2, 0xd7, 0x61,
  78. 0xfe, 0x81, 0x95, 0xc0, 0x16, 0x60, 0x04, 0xb8, 0x0c, 0xb8, 0x17, 0xf8,
  79. 0x34, 0xf0, 0x24, 0xf0, 0x02, 0xf0, 0x2b, 0xe0, 0x8f, 0xc0, 0x5b, 0x40,
  80. 0xee, 0x7a, 0xb4, 0x05, 0x2c, 0x06, 0x6a, 0x81, 0x75, 0x40, 0x3f, 0xb0,
  81. 0x17, 0x88, 0x03, 0xd7, 0x01, 0x77, 0x02, 0x0f, 0x02, 0x5f, 0x06, 0xbe,
  82. 0x03, 0xfc, 0x0c, 0xf8, 0x07, 0x20, 0x2e, 0xc0, 0x7a, 0x06, 0xca, 0x80,
  83. 0x46, 0x60, 0x23, 0x30, 0x04, 0x04, 0x81, 0x24, 0x70, 0x35, 0x70, 0x07,
  84. 0x70, 0x1c, 0xf8, 0x22, 0xf0, 0x0c, 0xf0, 0x02, 0xf0, 0x3b, 0xe0, 0x0d,
  85. 0xa0, 0xa0, 0x95, 0x68, 0x3e, 0x50, 0x06, 0xd4, 0x01, 0xeb, 0x81, 0x3e,
  86. 0xe0, 0x62, 0x20, 0x04, 0x1c, 0x02, 0x6e, 0x02, 0x6e, 0x07, 0xee, 0x06,
  87. 0x8e, 0x03, 0x9f, 0x05, 0x9e, 0x02, 0x4e, 0x03, 0xaf, 0x02, 0xd6, 0x36,
  88. 0xa2, 0x42, 0xa0, 0x14, 0x28, 0x07, 0x2a, 0x81, 0x55, 0xc0, 0x7a, 0x60,
  89. 0x00, 0x08, 0x02, 0x97, 0x01, 0x37, 0x03, 0x1f, 0x03, 0x4e, 0x02, 0xcf,
  90. 0x01, 0xbf, 0x04, 0xfe, 0x01, 0x58, 0x36, 0xc0, 0xaf, 0x81, 0x72, 0xc0,
  91. 0x07, 0xb4, 0x00, 0xdd, 0xc0, 0x20, 0x70, 0x11, 0x10, 0x06, 0x8e, 0x00,
  92. 0x47, 0x81, 0x3b, 0x80, 0xfb, 0x81, 0x13, 0xc0, 0x49, 0xe0, 0xeb, 0xc0,
  93. 0xf7, 0x81, 0x3f, 0x03, 0xd6, 0x76, 0xd8, 0x12, 0x58, 0x06, 0x6c, 0x05,
  94. 0x86, 0x81, 0x10, 0x10, 0x01, 0xae, 0x02, 0x6e, 0x06, 0x3e, 0x01, 0x7c,
  95. 0x09, 0x78, 0x1e, 0xf8, 0x39, 0xf0, 0x06, 0x60, 0xdf, 0x88, 0x79, 0x03,
  96. 0xce, 0x07, 0xda, 0x81, 0xdd, 0x40, 0x08, 0x38, 0x0c, 0x5c, 0x07, 0xdc,
  97. 0x0e, 0xdc, 0x0b, 0x7c, 0x06, 0xf8, 0x2a, 0xf0, 0x3c, 0xf0, 0x33, 0xe0,
  98. 0x0c, 0xf0, 0x1a, 0x50, 0xd0, 0x81, 0xf1, 0x02, 0x7b, 0x80, 0xa3, 0xc0,
  99. 0x71, 0xe0, 0x1b, 0xc0, 0x19, 0xc0, 0x85, 0x60, 0x5c, 0x0b, 0x6c, 0x03,
  100. 0x8e, 0x00, 0x57, 0x03, 0x37, 0x02, 0xb7, 0x01, 0xc7, 0x80, 0x2f, 0x01,
  101. 0xbf, 0x01, 0xec, 0x9b, 0xb0, 0x66, 0x00, 0x1f, 0xd0, 0x0c, 0x5c, 0x00,
  102. 0xf4, 0x03, 0x7b, 0x81, 0x3c, 0x8e, 0xe7, 0x40, 0x31, 0x70, 0x1e, 0x70,
  103. 0x3e, 0xb0, 0x94, 0x63, 0x3b, 0x50, 0x05, 0x54, 0x03, 0x35, 0x1c, 0xdb,
  104. 0x81, 0x3a, 0x00, 0xe1, 0x96, 0x10, 0x2e, 0x09, 0xe1, 0x90, 0x10, 0xee,
  105. 0x08, 0x21, 0x8d, 0x10, 0xc2, 0x08, 0xe1, 0x8a, 0x10, 0x9e, 0x08, 0x21,
  106. 0x88, 0x10, 0x56, 0x08, 0xcb, 0x95, 0xb0, 0xc4, 0x08, 0xee, 0x4e, 0x70,
  107. 0x5d, 0x82, 0x2b, 0x12, 0x5c, 0x8a, 0xe0, 0x16, 0x84, 0x69, 0x25, 0x4c,
  108. 0x0d, 0xc1, 0xac, 0x04, 0x13, 0x11, 0x86, 0x49, 0x1d, 0x7a, 0x6f, 0x41,
  109. 0x97, 0x68, 0x33, 0xd0, 0x05, 0x74, 0x03, 0xd8, 0x7a, 0x08, 0x5b, 0x12,
  110. 0xf5, 0x01, 0x5b, 0x80, 0xad, 0x40, 0x3f, 0xb0, 0x0d, 0x18, 0x00, 0x06,
  111. 0x01, 0x3f, 0xb0, 0x1d, 0x18, 0x02, 0x76, 0x00, 0x17, 0x02, 0x3b, 0x81,
  112. 0x5d, 0xc0, 0x30, 0xb0, 0x1b, 0xb8, 0x08, 0xb8, 0x18, 0xb8, 0x04, 0xd8,
  113. 0x03, 0x04, 0x80, 0xbd, 0xc0, 0x18, 0x70, 0x2d, 0xf0, 0x01, 0xe0, 0x16,
  114. 0xe0, 0x56, 0xe0, 0x83, 0xa4, 0xec, 0x92, 0xfa, 0xc9, 0xd7, 0xd4, 0x59,
  115. 0xab, 0x6c, 0x25, 0x74, 0xda, 0xa3, 0x79, 0x96, 0x17, 0x6a, 0xde, 0x0d,
  116. 0xbe, 0x48, 0xf3, 0x25, 0xe0, 0xe7, 0x68, 0xde, 0x0b, 0x7e, 0xae, 0xe6,
  117. 0x2b, 0x4d, 0xbc, 0xcf, 0xc4, 0x37, 0xd5, 0xaa, 0x79, 0x30, 0x74, 0xfd,
  118. 0x25, 0x9a, 0xe7, 0x7a, 0xe6, 0x69, 0xbe, 0x15, 0xfc, 0x02, 0x50, 0xbb,
  119. 0xce, 0x53, 0xc6, 0xed, 0xb3, 0xcd, 0xb4, 0xdc, 0xad, 0xe5, 0xcc, 0x17,
  120. 0x98, 0xf8, 0x79, 0x26, 0x7e, 0xa1, 0x89, 0xf7, 0x6a, 0x9e, 0x65, 0xe5,
  121. 0x7a, 0x2c, 0xe5, 0x9a, 0xef, 0xd7, 0x75, 0x56, 0x98, 0xda, 0x62, 0xff,
  122. 0xb8, 0x50, 0xcb, 0x97, 0x6a, 0xf9, 0x62, 0x52, 0xbe, 0xc1, 0xfd, 0xe4,
  123. 0x3c, 0xec, 0x23, 0x7b, 0xc0, 0x2f, 0x22, 0xe5, 0x1b, 0x6e, 0x9d, 0x7f,
  124. 0x85, 0xa9, 0xad, 0xd5, 0xba, 0xad, 0xc5, 0x9a, 0xe7, 0xb2, 0x15, 0x9a,
  125. 0x1f, 0x03, 0xbf, 0x84, 0x94, 0xff, 0xc4, 0x74, 0x9d, 0xcc, 0x1f, 0xd6,
  126. 0xf5, 0xb4, 0xe8, 0x7a, 0x16, 0x69, 0x9e, 0xeb, 0xf7, 0x6a, 0x7e, 0x4a,
  127. 0x97, 0x65, 0x7f, 0xbb, 0x59, 0x97, 0x65, 0x9f, 0xbb, 0x5d, 0x8f, 0x8b,
  128. 0xf9, 0xbb, 0x6b, 0xd5, 0xbc, 0xb7, 0xea, 0x7a, 0x42, 0x9a, 0xe7, 0xfe,
  129. 0x5c, 0xaa, 0x79, 0xae, 0xf3, 0x80, 0xe6, 0xef, 0x03, 0x1f, 0xd6, 0xfc,
  130. 0xa3, 0xe0, 0xc7, 0x35, 0xcf, 0x7d, 0x8e, 0x68, 0xfe, 0x24, 0xf8, 0xa8,
  131. 0xe6, 0xb9, 0x0f, 0x31, 0xcd, 0x3f, 0x0b, 0xfe, 0xa0, 0xe6, 0x5f, 0x04,
  132. 0x9f, 0xd0, 0xfc, 0x69, 0xf0, 0x71, 0xcd, 0xff, 0xde, 0xc4, 0xbf, 0x0e,
  133. 0x3e, 0xa9, 0xf9, 0x37, 0xc1, 0x4f, 0x68, 0xde, 0x0a, 0x03, 0x5f, 0xa6,
  134. 0xf9, 0x9c, 0xba, 0x69, 0x79, 0x91, 0x89, 0x5f, 0x00, 0xfe, 0x3d, 0x9a,
  135. 0x5f, 0x62, 0x92, 0xfb, 0x4c, 0x7c, 0x93, 0x89, 0x6f, 0x35, 0xf1, 0x6c,
  136. 0x9f, 0x54, 0xfd, 0x9b, 0x21, 0x3f, 0xa4, 0xf9, 0x7e, 0xf0, 0x97, 0x6b,
  137. 0x7e, 0x37, 0xf8, 0x2b, 0x34, 0x3f, 0x66, 0x2a, 0x7b, 0xd8, 0xc4, 0x4f,
  138. 0x99, 0xf8, 0xa3, 0xe0, 0x27, 0x53, 0xf5, 0xa0, 0xfe, 0xab, 0x34, 0x7f,
  139. 0x8b, 0x29, 0xcf, 0xeb, 0x35, 0xd3, 0x3c, 0xfb, 0xcc, 0x91, 0x54, 0xfd,
  140. 0xe0, 0xaf, 0xd4, 0xfc, 0x31, 0xd3, 0xd8, 0xef, 0x03, 0x3f, 0xa5, 0xf9,
  141. 0x47, 0xcc, 0xe3, 0x42, 0xfe, 0xc3, 0x9a, 0xff, 0x82, 0x49, 0x7e, 0xaa,
  142. 0x6e, 0x5a, 0xfe, 0xac, 0xa9, 0x9e, 0x17, 0xcd, 0xfd, 0x37, 0xd9, 0xf9,
  143. 0x34, 0xe4, 0x57, 0x6b, 0xfe, 0x0c, 0xf8, 0x6b, 0x34, 0xff, 0x9a, 0x29,
  144. 0x3f, 0x3b, 0x78, 0x8a, 0x77, 0xd6, 0xab, 0xf8, 0xc1, 0xf1, 0x8c, 0x7f,
  145. 0xae, 0xd3, 0x3c, 0xfb, 0xcf, 0xf5, 0x29, 0xbe, 0x7e, 0x9a, 0x5f, 0xc0,
  146. 0x67, 0x5f, 0xcd, 0x57, 0x82, 0xbf, 0x41, 0xf3, 0xec, 0x4b, 0x47, 0x35,
  147. 0xef, 0xe3, 0xb3, 0xb1, 0xe6, 0xd7, 0x82, 0x7f, 0xaf, 0xe6, 0x37, 0x83,
  148. 0xbf, 0x49, 0xf3, 0xfd, 0x26, 0x39, 0xdb, 0xf6, 0x66, 0xcd, 0x5f, 0x08,
  149. 0xf9, 0xfb, 0x34, 0x3f, 0x66, 0xca, 0xcf, 0x76, 0x48, 0xf1, 0x3c, 0xde,
  150. 0xf7, 0x6b, 0x9e, 0xc7, 0x98, 0x8b, 0xe8, 0xf3, 0x28, 0x29, 0x7a, 0x91,
  151. 0xe0, 0xd8, 0x27, 0x68, 0x94, 0x78, 0x3f, 0x58, 0x4e, 0x0f, 0x69, 0xfa,
  152. 0x96, 0xa4, 0x82, 0x84, 0x50, 0xd4, 0xd0, 0xd4, 0xa2, 0xa9, 0x55, 0x53,
  153. 0x9b, 0x50, 0xf9, 0x0b, 0x04, 0xef, 0x21, 0x2d, 0xf4, 0x9f, 0x3c, 0x4e,
  154. 0x44, 0xa2, 0x27, 0x24, 0xad, 0xa3, 0x2d, 0x52, 0x5e, 0x4f, 0xa3, 0x82,
  155. 0xf7, 0x97, 0x02, 0xfa, 0x0c, 0x31, 0xad, 0xa4, 0xc7, 0x24, 0x55, 0xfa,
  156. 0x2a, 0xad, 0xaf, 0x06, 0xdd, 0xa5, 0x29, 0xa7, 0x6b, 0xd0, 0x63, 0xb7,
  157. 0xa4, 0xb5, 0x34, 0x2c, 0x78, 0x4f, 0x52, 0xfa, 0x5a, 0xad, 0xaf, 0x85,
  158. 0x66, 0x9f, 0xe0, 0x58, 0x64, 0xc8, 0x80, 0x5a, 0x8f, 0xd5, 0xff, 0xa0,
  159. 0x9c, 0xae, 0x2a, 0xfa, 0xac, 0xa4, 0x29, 0x79, 0x2d, 0xe5, 0x4b, 0x5a,
  160. 0x4d, 0x45, 0x92, 0xb6, 0x51, 0x9d, 0xa4, 0xd9, 0x54, 0x2f, 0x38, 0x06,
  161. 0xad, 0xa0, 0x20, 0xf2, 0xdb, 0xb0, 0x8b, 0x2d, 0x17, 0x1c, 0x6b, 0x73,
  162. 0xe9, 0x1b, 0xc4, 0xb4, 0x8c, 0x7e, 0x0d, 0x9a, 0x85, 0xfe, 0x3a, 0x24,
  163. 0xdd, 0x41, 0xab, 0xa1, 0x77, 0x61, 0x87, 0xe3, 0x74, 0xb6, 0x96, 0x67,
  164. 0xc3, 0x82, 0x4d, 0x82, 0xed, 0xa9, 0xd2, 0x05, 0x68, 0xd7, 0x23, 0x98,
  165. 0xf6, 0xd3, 0x4a, 0x49, 0xb7, 0x51, 0xab, 0xe0, 0xfd, 0x23, 0x8b, 0x7e,
  166. 0x45, 0x8a, 0xbe, 0x22, 0x69, 0x2b, 0x5d, 0x20, 0x78, 0xcf, 0xd8, 0x22,
  167. 0xcb, 0x15, 0x63, 0x87, 0x63, 0x3a, 0x0f, 0x25, 0x7e, 0x2c, 0x69, 0x3b,
  168. 0x2d, 0x83, 0xbe, 0x14, 0xfd, 0x66, 0x79, 0x29, 0xea, 0x7d, 0x4a, 0xd2,
  169. 0x72, 0xfa, 0x96, 0x4e, 0xff, 0x54, 0xd3, 0xff, 0x0d, 0x3a, 0x5f, 0xeb,
  170. 0x99, 0x3e, 0x2d, 0xa9, 0x4b, 0xde, 0xd3, 0x38, 0xfd, 0x73, 0x49, 0x2d,
  171. 0xf4, 0x0b, 0x49, 0xe1, 0xf7, 0x9a, 0xbe, 0x2c, 0xa9, 0xa0, 0x3f, 0x6a,
  172. 0xfa, 0x27, 0xe2, 0x78, 0x6d, 0xd0, 0x0f, 0x24, 0x5d, 0x47, 0x7f, 0x20,
  173. 0x8e, 0xbb, 0xcd, 0xb2, 0xfd, 0x45, 0xd8, 0x55, 0x2b, 0x04, 0xd3, 0xdd,
  174. 0xb4, 0x44, 0xd2, 0x5a, 0x5a, 0x2a, 0x38, 0x16, 0x6f, 0xa6, 0x47, 0x48,
  175. 0xd1, 0x15, 0x82, 0x63, 0xf0, 0x4e, 0xca, 0x15, 0x1c, 0x7f, 0x3b, 0x65,
  176. 0xb9, 0x72, 0x8c, 0x70, 0x8e, 0x4c, 0x57, 0x52, 0xa3, 0xe0, 0xb8, 0xaf,
  177. 0xec, 0xb4, 0x04, 0xbb, 0xbf, 0xa2, 0x95, 0xf4, 0x39, 0x49, 0x9d, 0xf4,
  178. 0xac, 0xa6, 0xdf, 0x91, 0xd4, 0x4d, 0xcf, 0x11, 0xef, 0x3b, 0x01, 0xfa,
  179. 0x3f, 0x92, 0x76, 0xd0, 0x2a, 0xc1, 0x74, 0x84, 0xba, 0xa4, 0x5f, 0xf5,
  180. 0xc8, 0xf2, 0x95, 0x38, 0x69, 0x7c, 0x52, 0xd2, 0xad, 0xf4, 0x69, 0x49,
  181. 0xcf, 0xa7, 0x33, 0x92, 0xb6, 0x51, 0xa5, 0xcc, 0xb7, 0x81, 0xaa, 0x84,
  182. 0x4a, 0x57, 0x0b, 0x95, 0xaf, 0x46, 0xd2, 0x0b, 0xe8, 0x62, 0x4d, 0x2f,
  183. 0xd1, 0x74, 0x8f, 0xa6, 0x01, 0xe9, 0x97, 0x7d, 0xb2, 0xfe, 0x2a, 0xdd,
  184. 0xbf, 0x2a, 0x8c, 0xeb, 0xab, 0x92, 0xaa, 0x7e, 0x55, 0x61, 0x57, 0x59,
  185. 0x2b, 0xfd, 0xb5, 0x57, 0xe6, 0x83, 0x77, 0xd1, 0x97, 0x24, 0x5d, 0x4a,
  186. 0x5f, 0xd1, 0xe9, 0x27, 0x25, 0x1d, 0xa6, 0x06, 0xe9, 0xc7, 0x5d, 0x32,
  187. 0x5f, 0x0d, 0xea, 0x2b, 0x93, 0xfe, 0xab, 0xca, 0xd5, 0x42, 0xfe, 0xef,
  188. 0x9a, 0xde, 0x21, 0x69, 0x29, 0x1d, 0x93, 0xb4, 0x92, 0xba, 0x85, 0xa2,
  189. 0x3d, 0xd2, 0xcf, 0xeb, 0x64, 0x7e, 0xf6, 0xf7, 0x67, 0x24, 0x75, 0xd0,
  190. 0x37, 0x75, 0xfa, 0x87, 0x9a, 0xbe, 0xa0, 0xe9, 0x4b, 0x92, 0x56, 0xd0,
  191. 0x6f, 0x74, 0xfa, 0xb7, 0x92, 0x0e, 0x92, 0x43, 0xd6, 0xb3, 0x93, 0x72,
  192. 0x24, 0xad, 0xa6, 0x16, 0x49, 0xfd, 0xd4, 0x2e, 0xd7, 0xc3, 0x1a, 0x59,
  193. 0x7f, 0x3d, 0x4e, 0x4e, 0xb7, 0x49, 0x6a, 0xa3, 0xdb, 0x25, 0x5d, 0x41,
  194. 0x1f, 0x92, 0x34, 0x87, 0xee, 0x94, 0xb4, 0x9b, 0x3e, 0x2c, 0x69, 0x90,
  195. 0xee, 0x92, 0x74, 0x31, 0xdd, 0xad, 0xe9, 0x47, 0x24, 0x1d, 0xa5, 0x8f,
  196. 0xea, 0xf2, 0x1f, 0x93, 0xb4, 0x81, 0xee, 0x91, 0x74, 0x09, 0xfd, 0x87,
  197. 0xa4, 0xcb, 0xe9, 0x5e, 0xad, 0xff, 0xb8, 0xa6, 0xf7, 0x49, 0x6a, 0xa7,
  198. 0x4f, 0xe8, 0xf4, 0xfd, 0x92, 0x56, 0xd2, 0xa7, 0x34, 0x3d, 0xa1, 0xe9,
  199. 0xe7, 0x25, 0xdd, 0x45, 0x5f, 0x94, 0xb4, 0x8e, 0x4e, 0x4a, 0xba, 0x92,
  200. 0xbe, 0x26, 0xe9, 0x22, 0xfa, 0xba, 0xa4, 0x73, 0xe9, 0x94, 0xa4, 0xb9,
  201. 0xf4, 0x5d, 0x49, 0xe7, 0xd1, 0xf7, 0x48, 0xad, 0xf7, 0xef, 0xeb, 0xb8,
  202. 0xf0, 0x03, 0x9d, 0xff, 0x47, 0x92, 0x96, 0xd0, 0xff, 0x92, 0xd4, 0x42,
  203. 0x2f, 0x4a, 0x7a, 0x21, 0xfd, 0x44, 0x52, 0x0f, 0xfd, 0x52, 0xd2, 0x42,
  204. 0xfa, 0x9d, 0x2e, 0xf7, 0xaa, 0xa4, 0xf9, 0xf4, 0x7b, 0x49, 0xd5, 0xfa,
  205. 0xa8, 0xc7, 0xef, 0x6b, 0xba, 0x3f, 0x7f, 0xd6, 0xf4, 0xbf, 0x34, 0xfd,
  206. 0x8b, 0xa4, 0xcb, 0xe8, 0x75, 0x49, 0x7d, 0xf4, 0xdf, 0xda, 0x1e, 0x7f,
  207. 0xd5, 0xfa, 0xff, 0xd1, 0xe5, 0xdf, 0xd0, 0xf4, 0x6f, 0x9a, 0xfe, 0x5d,
  208. 0xd2, 0x46, 0xfa, 0x87, 0xa4, 0x97, 0xd0, 0x9b, 0x7a, 0xfc, 0xff, 0x94,
  209. 0x74, 0x27, 0x65, 0x0b, 0x45, 0xf3, 0x24, 0x5d, 0x4d, 0xc5, 0x92, 0xae,
  210. 0xa2, 0x12, 0x4d, 0xe7, 0x69, 0x5a, 0xaa, 0xf5, 0xf3, 0x75, 0x7a, 0x81,
  211. 0xa6, 0x0b, 0x25, 0x2d, 0xa6, 0x45, 0x92, 0xb6, 0xd0, 0x62, 0x49, 0x37,
  212. 0x91, 0x57, 0xd2, 0xbd, 0x54, 0x2e, 0xa9, 0x5a, 0xef, 0xf5, 0x7a, 0xbd,
  213. 0x73, 0xfa, 0x3c, 0x49, 0x87, 0xe8, 0x7c, 0x1d, 0x57, 0x97, 0xea, 0xfc,
  214. 0xb5, 0x92, 0xee, 0x21, 0x9f, 0xa4, 0xdb, 0xa9, 0x59, 0xd3, 0x35, 0x92,
  215. 0x6e, 0xa4, 0xf5, 0x42, 0xc5, 0xe5, 0x0d, 0x92, 0x0e, 0xd2, 0x46, 0x9d,
  216. 0xee, 0xd0, 0xf9, 0x3a, 0x35, 0xdd, 0x24, 0x69, 0x0d, 0x6d, 0x16, 0xca,
  217. 0x0f, 0xb6, 0x0a, 0xe5, 0x17, 0xfd, 0x3a, 0xbd, 0x4d, 0xd3, 0x01, 0x4d,
  218. 0x07, 0x85, 0xf2, 0x2b, 0xbf, 0x4e, 0x6f, 0x17, 0xca, 0xbf, 0x86, 0x84,
  219. 0xf2, 0xe3, 0x1d, 0x42, 0xd9, 0xfb, 0x42, 0xa1, 0xfc, 0x78, 0xa7, 0x50,
  220. 0x76, 0x0f, 0x0a, 0x3e, 0xab, 0xce, 0xa7, 0x5e, 0x49, 0xcb, 0x69, 0xb7,
  221. 0xe0, 0xf3, 0xea, 0x79, 0xf4, 0x33, 0x62, 0xba, 0x8f, 0x5c, 0x72, 0x5f,
  222. 0x30, 0xc8, 0x29, 0xe9, 0x42, 0x1a, 0x11, 0x7c, 0x26, 0x55, 0x71, 0xab,
  223. 0x19, 0xa7, 0xd2, 0x6f, 0x4b, 0xaa, 0xca, 0xb5, 0xc0, 0x6f, 0x1e, 0x27,
  224. 0xa6, 0x56, 0xfa, 0x82, 0xa4, 0xfb, 0xe9, 0xcb, 0x92, 0xaa, 0x7d, 0x80,
  225. 0xe5, 0x73, 0x25, 0xad, 0xa0, 0x3e, 0xc1, 0x67, 0x55, 0x2f, 0x65, 0x09,
  226. 0xbe, 0x1f, 0xa9, 0xfa, 0xd6, 0xa3, 0xbd, 0x87, 0x49, 0xdd, 0xc1, 0xdc,
  227. 0xa4, 0xce, 0xbe, 0xbf, 0xc7, 0x39, 0x29, 0x07, 0x74, 0x37, 0x2e, 0x44,
  228. 0xb7, 0xf0, 0x05, 0x89, 0xd4, 0xfd, 0xcc, 0x4d, 0xea, 0xbc, 0xcb, 0x3f,
  229. 0xac, 0x4f, 0x42, 0xff, 0x5d, 0xad, 0xaf, 0xd6, 0xfa, 0x0a, 0x93, 0xfe,
  230. 0x3a, 0xe8, 0xcf, 0x68, 0x7d, 0x8d, 0x96, 0x73, 0xfd, 0xaf, 0xeb, 0xfa,
  231. 0xef, 0x86, 0xde, 0xd1, 0xa5, 0xe4, 0xb5, 0xa6, 0xf6, 0x53, 0xe5, 0x1f,
  232. 0x81, 0xbe, 0x54, 0xeb, 0xf9, 0xcc, 0x2f, 0xce, 0xd2, 0x9f, 0x84, 0x7e,
  233. 0x83, 0xd6, 0xf3, 0x3d, 0x80, 0xef, 0x20, 0x7c, 0x4e, 0x7f, 0x53, 0xd7,
  234. 0xff, 0x43, 0xe8, 0x2f, 0xd3, 0x7a, 0x3b, 0x9f, 0x1f, 0x40, 0x47, 0xab,
  235. 0xd4, 0x3d, 0xf2, 0xa0, 0x7b, 0x19, 0x66, 0xcc, 0x05, 0xea, 0x63, 0x2a,
  236. 0xd6, 0xf0, 0x09, 0x42, 0x58, 0xa8, 0x72, 0x49, 0xc4, 0xfd, 0x34, 0x24,
  237. 0x39, 0xb6, 0x72, 0x63, 0x3d, 0xc5, 0xdc, 0xdf, 0x85, 0x1d, 0xcb, 0x2d,
  238. 0xc5, 0xe4, 0xb1, 0x46, 0x7c, 0xcf, 0x60, 0x0f, 0xe0, 0x12, 0x5f, 0x97,
  239. 0xed, 0xcb, 0xb4, 0x70, 0xd9, 0x38, 0xcd, 0xf9, 0x63, 0x3e, 0x37, 0x59,
  240. 0x6c, 0x11, 0xef, 0x73, 0xa8, 0xbf, 0xc0, 0xf0, 0xd8, 0x0a, 0x6c, 0x56,
  241. 0xd8, 0x9e, 0xef, 0x51, 0x91, 0x2a, 0xde, 0x9f, 0x71, 0x4e, 0x77, 0x73,
  242. 0x64, 0x18, 0x16, 0x79, 0x34, 0x6c, 0xe4, 0xd0, 0xb0, 0x25, 0x97, 0x0e,
  243. 0x7a, 0xd7, 0x23, 0x37, 0xdf, 0xff, 0x8c, 0xf4, 0x4d, 0x4c, 0x8d, 0x93,
  244. 0x65, 0x36, 0xfc, 0x32, 0x7f, 0x59, 0x95, 0x7a, 0xd7, 0x19, 0x77, 0x7f,
  245. 0x05, 0xe9, 0x1c, 0x31, 0x2c, 0xb2, 0xd3, 0x7a, 0x2e, 0x75, 0x6d, 0x95,
  246. 0xba, 0x97, 0xf9, 0x45, 0x0e, 0xf9, 0x0d, 0xae, 0xb5, 0x15, 0xfb, 0x60,
  247. 0x1e, 0xca, 0x38, 0xa4, 0xfe, 0xe6, 0x73, 0xe8, 0x53, 0xe5, 0xef, 0x38,
  248. 0x87, 0x3e, 0x0b, 0x7a, 0xb6, 0xd9, 0x3d, 0x55, 0xea, 0x4e, 0xe2, 0x6f,
  249. 0xcd, 0xa1, 0xe5, 0xfd, 0x21, 0xd0, 0x6c, 0xcc, 0x03, 0x6c, 0x35, 0xf2,
  250. 0xe8, 0x58, 0xdc, 0xf7, 0x65, 0x0a, 0x3a, 0x73, 0x6c, 0xdc, 0x37, 0xb6,
  251. 0x42, 0xa9, 0xd3, 0xa0, 0x88, 0xf7, 0x9b, 0x38, 0x83, 0xba, 0x9c, 0x1e,
  252. 0x6a, 0x76, 0xe6, 0x52, 0xa9, 0xd3, 0x92, 0x96, 0x34, 0x81, 0xaf, 0xb4,
  253. 0x78, 0x9c, 0x95, 0x96, 0x42, 0xe7, 0x06, 0xc4, 0x07, 0x21, 0x35, 0x73,
  254. 0x60, 0xff, 0x26, 0x61, 0xa5, 0x42, 0xe7, 0x3a, 0xf2, 0xb7, 0xe5, 0x92,
  255. 0x7f, 0x43, 0xb6, 0xb4, 0xae, 0x61, 0x77, 0x19, 0xfe, 0xf6, 0x6c, 0x7a,
  256. 0x74, 0x92, 0x53, 0x16, 0xbb, 0xcb, 0x1e, 0xf1, 0x5d, 0x4c, 0x65, 0x76,
  257. 0x7f, 0x67, 0x2e, 0x35, 0x39, 0x31, 0x03, 0xee, 0x6f, 0xf1, 0xdc, 0x39,
  258. 0x5e, 0x74, 0x38, 0xde, 0x8a, 0xf8, 0x9e, 0x25, 0x9b, 0x23, 0x07, 0xf6,
  259. 0xdf, 0x8d, 0x08, 0xc1, 0x5a, 0x7f, 0x47, 0x1e, 0x95, 0xdb, 0x4b, 0x29,
  260. 0xe6, 0x2b, 0x24, 0xbb, 0x33, 0xe2, 0xbb, 0x97, 0xae, 0xb7, 0xfb, 0x3b,
  261. 0x20, 0xef, 0x54, 0x23, 0x0c, 0x92, 0xc7, 0x36, 0xdc, 0x91, 0x2d, 0xed,
  262. 0x60, 0xc8, 0x71, 0x3e, 0x5e, 0xa5, 0xfc, 0x27, 0xe2, 0xde, 0x81, 0x99,
  263. 0x73, 0x81, 0x5e, 0xc8, 0xd4, 0xba, 0x06, 0x3d, 0x6c, 0xb1, 0xa2, 0xe7,
  264. 0x05, 0xec, 0x1b, 0x16, 0xcc, 0x80, 0xc7, 0x88, 0xf8, 0xbe, 0x0d, 0x1b,
  265. 0x21, 0x0f, 0x53, 0xab, 0xcb, 0x7a, 0xd0, 0x97, 0x47, 0x16, 0x6b, 0x9e,
  266. 0x9c, 0x47, 0xb6, 0xe9, 0xd7, 0xb5, 0x4d, 0x0f, 0xba, 0x9b, 0x95, 0xb7,
  267. 0x78, 0x2f, 0xc1, 0xdc, 0x4d, 0xeb, 0xbf, 0xa5, 0xe7, 0xf4, 0xa0, 0x17,
  268. 0xe7, 0x4c, 0x3c, 0x2f, 0xc0, 0x53, 0xcd, 0xa9, 0xea, 0xcb, 0xf7, 0x75,
  269. 0x5f, 0x0e, 0xba, 0x73, 0x91, 0x66, 0xaf, 0xcb, 0x61, 0x2a, 0x64, 0x5f,
  270. 0x84, 0xa9, 0x2f, 0x16, 0xee, 0xcb, 0x33, 0x58, 0x77, 0x2e, 0x69, 0xb3,
  271. 0x0a, 0xe1, 0xb2, 0xb0, 0x95, 0xac, 0x96, 0x3c, 0xe9, 0xf3, 0x36, 0xd4,
  272. 0xf1, 0xf3, 0x2a, 0x75, 0x5f, 0xf5, 0xf7, 0xe7, 0xe3, 0x94, 0x69, 0xc1,
  273. 0x3a, 0xf1, 0xf7, 0x17, 0x60, 0x06, 0xb3, 0x28, 0xea, 0x6e, 0xe4, 0x59,
  274. 0xa3, 0x61, 0x68, 0x0a, 0x30, 0x5e, 0x7e, 0x83, 0xe1, 0x22, 0xff, 0xb6,
  275. 0x02, 0xe2, 0x5a, 0x77, 0x61, 0x84, 0x39, 0x88, 0xc6, 0x73, 0x28, 0xe6,
  276. 0xcd, 0x47, 0x5d, 0xc3, 0xdb, 0xf2, 0xe5, 0x39, 0xca, 0x3f, 0xe8, 0x21,
  277. 0xbf, 0xbf, 0x80, 0x62, 0xad, 0xab, 0xc8, 0xd7, 0x36, 0xdc, 0xef, 0x46,
  278. 0x89, 0x7c, 0x78, 0x67, 0x16, 0xf2, 0xb8, 0x2c, 0x85, 0x56, 0x0f, 0xc5,
  279. 0xfd, 0xd9, 0x24, 0x1a, 0xfd, 0xb2, 0x56, 0xdc, 0x27, 0xf1, 0xcb, 0x63,
  280. 0x7a, 0x55, 0xdb, 0x24, 0x86, 0x4b, 0x87, 0xdb, 0x18, 0x16, 0x1e, 0xac,
  281. 0x81, 0x02, 0x8c, 0xda, 0xc2, 0x67, 0x7c, 0xc8, 0xff, 0xbb, 0x4a, 0xc5,
  282. 0x21, 0xbf, 0x97, 0xfb, 0x99, 0x45, 0xfe, 0x32, 0x37, 0xce, 0xb6, 0x36,
  283. 0x8a, 0x7b, 0x5d, 0xb0, 0x0e, 0x72, 0x43, 0x3e, 0xec, 0x2d, 0x40, 0xa4,
  284. 0x37, 0xa8, 0x50, 0x94, 0xd0, 0x0a, 0xb7, 0x1d, 0x23, 0x68, 0x40, 0xaa,
  285. 0x32, 0x2f, 0xe2, 0xde, 0x08, 0xaa, 0x34, 0x8b, 0xa5, 0xc6, 0x03, 0x9b,
  286. 0x77, 0x22, 0x9d, 0x87, 0x36, 0x0d, 0x69, 0x07, 0xa3, 0x5a, 0xdd, 0xf9,
  287. 0xfd, 0x7b, 0x0a, 0x61, 0x4f, 0xbe, 0x75, 0x64, 0x63, 0x9c, 0x73, 0xd1,
  288. 0xb5, 0x65, 0x70, 0xf4, 0x66, 0x1b, 0x2c, 0x63, 0xa8, 0x1a, 0x16, 0xa1,
  289. 0x06, 0x17, 0xc6, 0x5a, 0x4e, 0xfe, 0x91, 0x22, 0xf4, 0xb7, 0x9a, 0x7c,
  290. 0x8e, 0x4a, 0x87, 0x7f, 0x4f, 0x11, 0x66, 0xaa, 0x06, 0xf7, 0x6d, 0x78,
  291. 0xd1, 0x88, 0xaa, 0xc3, 0x42, 0xd9, 0xd6, 0x83, 0xfd, 0xfb, 0xa8, 0x7d,
  292. 0xc2, 0xe5, 0x68, 0x76, 0xb8, 0x68, 0x8f, 0xc3, 0xa0, 0x95, 0xc5, 0x36,
  293. 0xd8, 0x92, 0x23, 0x5a, 0x81, 0xc1, 0xe3, 0x77, 0xea, 0x39, 0xcd, 0xab,
  294. 0x56, 0xb1, 0xe7, 0xed, 0xda, 0xf7, 0xb8, 0x97, 0x3b, 0xb0, 0x02, 0xf6,
  295. 0xab, 0x1c, 0x0e, 0xe4, 0x38, 0xe8, 0xdb, 0x8f, 0x93, 0x53, 0x8e, 0xa3,
  296. 0x32, 0x3b, 0x53, 0x3a, 0x26, 0xa5, 0x4d, 0x0e, 0xac, 0x15, 0xf7, 0xd7,
  297. 0x20, 0x73, 0x39, 0x22, 0xde, 0xcd, 0xb8, 0x03, 0xe7, 0x38, 0x0a, 0x1c,
  298. 0x05, 0x86, 0x0b, 0x36, 0xe7, 0xf7, 0x36, 0xf3, 0xaa, 0xd5, 0x7b, 0x0c,
  299. 0x73, 0x9b, 0x73, 0x61, 0xec, 0x65, 0x08, 0x4d, 0xcd, 0x56, 0x2b, 0x79,
  300. 0x1c, 0xf9, 0x0e, 0x93, 0x4e, 0x88, 0x84, 0xb8, 0xce, 0xf1, 0xa1, 0x43,
  301. 0x76, 0x7e, 0x4f, 0xe1, 0x82, 0xce, 0x22, 0x67, 0x07, 0xe7, 0xe7, 0x6a,
  302. 0xf5, 0x1e, 0xa8, 0x5c, 0xa8, 0xa8, 0x28, 0x70, 0xeb, 0x4a, 0xe9, 0xaa,
  303. 0xaa, 0xd5, 0xbc, 0x0e, 0x8b, 0x42, 0xe8, 0x38, 0x52, 0x0f, 0x1b, 0x45,
  304. 0xda, 0xd7, 0x59, 0xbf, 0xac, 0x9a, 0xef, 0x2f, 0xac, 0x9f, 0xab, 0x63,
  305. 0xa0, 0x47, 0xec, 0x86, 0x57, 0xe5, 0x99, 0xe2, 0x72, 0x53, 0xb5, 0x7a,
  306. 0xa7, 0x56, 0x8e, 0x48, 0x19, 0x73, 0xcb, 0x68, 0xb4, 0x6d, 0x2e, 0xf9,
  307. 0x0b, 0x8a, 0x31, 0xba, 0x6b, 0x64, 0xd4, 0x6b, 0x46, 0xe9, 0xb4, 0xcc,
  308. 0xfb, 0x6f, 0x90, 0x4d, 0xe7, 0xb8, 0x92, 0x3d, 0x4f, 0x0c, 0x18, 0xfc,
  309. 0x9e, 0x4e, 0x50, 0x65, 0x4e, 0xc4, 0x5b, 0x0e, 0x1a, 0x71, 0x97, 0x65,
  310. 0xc8, 0x3f, 0x63, 0x7c, 0xa6, 0xac, 0x10, 0xe7, 0xe2, 0x95, 0xa2, 0x94,
  311. 0xb6, 0x0f, 0xcc, 0xa1, 0x26, 0x63, 0x2e, 0xec, 0xbf, 0x1b, 0x9c, 0x7f,
  312. 0x00, 0x35, 0x95, 0x17, 0xc3, 0xb3, 0xe7, 0xc2, 0x12, 0xdb, 0xe4, 0xba,
  313. 0xd2, 0xb3, 0x6b, 0x39, 0xe8, 0x0b, 0x52, 0xa3, 0x95, 0xf3, 0x37, 0x1b,
  314. 0x0e, 0xdc, 0xc1, 0x6c, 0xe4, 0x71, 0xef, 0xee, 0x9f, 0x23, 0x6f, 0xae,
  315. 0x42, 0xc6, 0xeb, 0x2e, 0xf4, 0x9d, 0xc7, 0xe0, 0xc7, 0x59, 0x8e, 0xe7,
  316. 0x9b, 0xed, 0xc2, 0xfe, 0xbc, 0xb5, 0x5a, 0xbd, 0xcf, 0x1b, 0x16, 0xc5,
  317. 0x7a, 0xdc, 0xe5, 0x02, 0xde, 0xe3, 0xed, 0xe5, 0xb5, 0x24, 0xe6, 0xc1,
  318. 0x4a, 0x25, 0xd2, 0x06, 0x42, 0xd7, 0xc4, 0xf5, 0x58, 0xe5, 0x3e, 0x31,
  319. 0x40, 0xa4, 0xeb, 0xcf, 0x94, 0x0f, 0x4a, 0x79, 0x6a, 0xbd, 0xec, 0xae,
  320. 0x56, 0xfb, 0x9c, 0xdf, 0x5b, 0x82, 0xb1, 0x5e, 0x2b, 0xe3, 0x8c, 0xbf,
  321. 0x6c, 0x1e, 0xac, 0xb3, 0x54, 0x46, 0x93, 0x54, 0xbe, 0xc0, 0x39, 0xf3,
  322. 0x55, 0x66, 0xe4, 0xdb, 0x57, 0xad, 0x62, 0xd2, 0xa0, 0xb7, 0x14, 0x7e,
  323. 0x1e, 0x80, 0xce, 0x25, 0xfb, 0x9f, 0xd2, 0x1f, 0xc8, 0xd0, 0x47, 0xd2,
  324. 0x7a, 0xab, 0xf6, 0xef, 0x98, 0x59, 0xef, 0x8b, 0x91, 0xdb, 0xe2, 0xb2,
  325. 0xe4, 0x5b, 0xa6, 0xcb, 0x4f, 0x66, 0x94, 0xdf, 0x3b, 0xa3, 0xfe, 0xcb,
  326. 0x33, 0xf4, 0x97, 0xce, 0xd0, 0x4f, 0x65, 0xe8, 0x0f, 0xce, 0xd0, 0x5f,
  327. 0x9f, 0xa1, 0x8f, 0xa6, 0xf5, 0xbc, 0x8b, 0xb1, 0xfd, 0x6e, 0x32, 0xeb,
  328. 0x5b, 0xc3, 0xe4, 0x6e, 0xcf, 0xb1, 0x14, 0x58, 0xd4, 0x7c, 0xb1, 0x9d,
  329. 0x6f, 0xd5, 0x3e, 0xae, 0xe6, 0x6a, 0x17, 0xbc, 0x24, 0x2f, 0x3d, 0xb6,
  330. 0x3b, 0xb4, 0x4e, 0x8d, 0x6d, 0x1c, 0x63, 0xcb, 0x4b, 0xd7, 0xfb, 0x11,
  331. 0xb3, 0xae, 0xf5, 0x00, 0xea, 0x9d, 0x2e, 0x77, 0x5f, 0x46, 0xb9, 0x11,
  332. 0x59, 0xce, 0xd0, 0x7e, 0xf3, 0x50, 0xca, 0x6f, 0xdc, 0x8b, 0xa5, 0xdf,
  333. 0xf0, 0x6e, 0xcd, 0xf5, 0x7d, 0xba, 0x5a, 0xbd, 0x53, 0x1c, 0xec, 0x5f,
  334. 0x88, 0xd8, 0x73, 0x39, 0xd9, 0xb0, 0x2f, 0xf3, 0x59, 0x7a, 0x38, 0x60,
  335. 0x01, 0xb0, 0x66, 0x8d, 0x9d, 0x7b, 0x11, 0xdf, 0xfe, 0xd2, 0x84, 0x12,
  336. 0xbc, 0x57, 0x61, 0xa5, 0x5a, 0x2b, 0x0d, 0xcf, 0xeb, 0x3b, 0x47, 0x9d,
  337. 0x88, 0x9b, 0x76, 0xb9, 0x6f, 0x41, 0x66, 0xd9, 0x39, 0xe2, 0x40, 0x7e,
  338. 0x17, 0xdf, 0x7f, 0xfb, 0x77, 0x06, 0xf8, 0x0d, 0x03, 0xef, 0x69, 0xfc,
  339. 0xb6, 0xda, 0x25, 0x0e, 0xba, 0xa7, 0x78, 0x6d, 0xa0, 0xa6, 0x2c, 0xec,
  340. 0x92, 0x55, 0xe4, 0x29, 0x88, 0xb5, 0x6e, 0xc0, 0xc9, 0x75, 0x78, 0x68,
  341. 0x01, 0x15, 0xd8, 0xa7, 0x6d, 0xfa, 0x95, 0x6a, 0x75, 0x76, 0x89, 0xb8,
  342. 0x2f, 0x43, 0x9a, 0xfb, 0x61, 0x17, 0x11, 0xaf, 0x01, 0xdb, 0xe6, 0xe0,
  343. 0xc6, 0xb5, 0x54, 0xf6, 0x3b, 0xb5, 0xa7, 0x9d, 0xaa, 0x26, 0x19, 0x67,
  344. 0x0f, 0x7a, 0xff, 0xd3, 0x64, 0x7b, 0x9b, 0x94, 0x7d, 0x53, 0xeb, 0x62,
  345. 0xfe, 0xe3, 0xe4, 0x6e, 0x54, 0x3a, 0xbb, 0xfc, 0x25, 0xfa, 0x9e, 0xd6,
  346. 0x4d, 0xda, 0x6f, 0x93, 0xfb, 0x4f, 0xbe, 0x5e, 0x43, 0xa9, 0x1f, 0xae,
  347. 0xdb, 0x53, 0x90, 0x2f, 0x52, 0x76, 0x7b, 0x49, 0xdb, 0x6d, 0xbb, 0xdb,
  348. 0x2b, 0xf3, 0x1a, 0x7a, 0x9d, 0xfc, 0xa2, 0x9a, 0x4b, 0x73, 0x5f, 0xaf,
  349. 0xe3, 0xb1, 0x61, 0x87, 0x83, 0xad, 0xdc, 0xb0, 0x0c, 0x72, 0x65, 0xf3,
  350. 0x79, 0x1a, 0xba, 0x57, 0xaa, 0xd5, 0xbb, 0x59, 0xff, 0x2d, 0xf3, 0x91,
  351. 0xaf, 0x4a, 0xb6, 0xd7, 0x84, 0x3b, 0xef, 0xe0, 0x07, 0x17, 0x22, 0x3d,
  352. 0x0f, 0x29, 0x97, 0x35, 0xe2, 0x5e, 0xc8, 0xd4, 0x16, 0x71, 0x2f, 0x62,
  353. 0x6a, 0x8f, 0xb8, 0x4b, 0x41, 0xb3, 0x1d, 0x8e, 0x5b, 0x27, 0x9d, 0x37,
  354. 0xa0, 0x66, 0x4f, 0x69, 0xbe, 0xcb, 0xe3, 0xca, 0x77, 0x65, 0xa3, 0x17,
  355. 0xdc, 0xff, 0x57, 0x75, 0x5c, 0x1f, 0x9c, 0x5a, 0x98, 0x19, 0x5b, 0xb3,
  356. 0xf2, 0xb3, 0x22, 0xee, 0x24, 0xda, 0xf5, 0xb4, 0x7a, 0x0a, 0x1a, 0xb3,
  357. 0x16, 0xe3, 0x2e, 0x57, 0x42, 0x8d, 0x59, 0x73, 0x41, 0xe7, 0x81, 0x7a,
  358. 0x68, 0xf0, 0x5a, 0x6e, 0xb5, 0x58, 0xb7, 0x32, 0x97, 0xa9, 0xc3, 0x71,
  359. 0x8d, 0xf8, 0xd0, 0xa4, 0xfd, 0x66, 0xf4, 0x37, 0x5f, 0x44, 0x7d, 0x4b,
  360. 0xe8, 0x98, 0xcb, 0x25, 0xeb, 0x89, 0xa3, 0x9e, 0x7c, 0x91, 0xab, 0xe3,
  361. 0xfa, 0x3f, 0xab, 0xd5, 0xfb, 0xe5, 0xc1, 0x5b, 0x16, 0x9e, 0xb5, 0x87,
  362. 0xe4, 0x1b, 0xcd, 0x2e, 0x9f, 0xde, 0x09, 0x17, 0xd2, 0x4a, 0x37, 0xcf,
  363. 0x79, 0x11, 0x66, 0xcb, 0x45, 0x9e, 0x8a, 0x46, 0x1f, 0x4e, 0x0e, 0x65,
  364. 0x7b, 0xb2, 0xb1, 0x47, 0xcd, 0xe7, 0x96, 0xe7, 0x40, 0x9e, 0x93, 0xdd,
  365. 0x94, 0x5d, 0x9c, 0xe6, 0x23, 0xde, 0x6f, 0xe0, 0xac, 0xee, 0x72, 0x0c,
  366. 0xde, 0xce, 0xfa, 0xb9, 0x5c, 0xce, 0xe9, 0xb8, 0x4d, 0xdc, 0xcf, 0x3d,
  367. 0xb2, 0xc8, 0x91, 0xe7, 0x1b, 0xd1, 0xd6, 0xf3, 0xe8, 0xc1, 0x6f, 0xbb,
  368. 0x60, 0x01, 0x8e, 0xfb, 0x16, 0x39, 0x77, 0x79, 0x35, 0xea, 0x73, 0x09,
  369. 0xf6, 0xd9, 0x0c, 0x1b, 0xd8, 0xf3, 0xed, 0x3c, 0x42, 0xde, 0x9f, 0x62,
  370. 0x3b, 0xde, 0x47, 0xb6, 0x80, 0x67, 0x6e, 0xbe, 0x9d, 0xf3, 0xaa, 0xf9,
  371. 0x98, 0x8b, 0x72, 0x7c, 0x1f, 0x74, 0x3a, 0x0b, 0xc8, 0xc9, 0x16, 0x81,
  372. 0x0d, 0x3d, 0xae, 0xe9, 0x1a, 0x30, 0x1e, 0x57, 0x12, 0x7b, 0xbd, 0x07,
  373. 0xfd, 0x4f, 0x62, 0x45, 0x7a, 0x28, 0x3b, 0xfb, 0x05, 0xf1, 0x16, 0x79,
  374. 0x16, 0x36, 0x89, 0x3f, 0x51, 0xe3, 0xf7, 0x5e, 0x24, 0x4f, 0x7d, 0xe3,
  375. 0xcb, 0xb7, 0x92, 0xa7, 0xb1, 0xb1, 0xec, 0xfb, 0xe4, 0x19, 0x28, 0xb2,
  376. 0xf0, 0xeb, 0xc3, 0xc6, 0xb2, 0x4d, 0xe4, 0xd9, 0xdb, 0x58, 0xc6, 0xa5,
  377. 0x3f, 0xe7, 0x7b, 0x19, 0xd5, 0x37, 0xe3, 0xbe, 0x39, 0x78, 0x35, 0xc6,
  378. 0xe4, 0x5d, 0x40, 0x0f, 0x62, 0x6d, 0x24, 0x61, 0x1b, 0xd4, 0x69, 0x4d,
  379. 0x62, 0xaf, 0x07, 0xb5, 0x39, 0xe1, 0xc9, 0xd6, 0xcf, 0x4f, 0x3a, 0xf9,
  380. 0x33, 0x99, 0xca, 0xa5, 0x15, 0x2f, 0xb7, 0x23, 0xe7, 0xd5, 0x98, 0xad,
  381. 0xc1, 0x6b, 0x54, 0x99, 0x2c, 0xf6, 0x0b, 0xef, 0x62, 0xa6, 0xb6, 0x8d,
  382. 0x76, 0xe1, 0xba, 0x66, 0xdf, 0xd3, 0xc1, 0x88, 0xd7, 0xcb, 0x69, 0xdc,
  383. 0x27, 0x45, 0xee, 0x35, 0x05, 0xf7, 0x63, 0x2b, 0x93, 0xb5, 0x94, 0x89,
  384. 0x76, 0xe1, 0x17, 0xc1, 0x54, 0x6d, 0xf9, 0xb9, 0xff, 0x5a, 0x0f, 0x3e,
  385. 0xf0, 0xff, 0xb5, 0x07, 0x1f, 0x90, 0x3d, 0x78, 0x37, 0xed, 0xf2, 0x27,
  386. 0x52, 0x49, 0x31, 0x9f, 0x65, 0xf9, 0xab, 0x7f, 0x51, 0x43, 0x15, 0x7f,
  387. 0x54, 0x3d, 0x38, 0x43, 0x9e, 0xb9, 0x2b, 0xff, 0x5a, 0x91, 0xee, 0x7b,
  388. 0x08, 0x75, 0x70, 0x3f, 0x42, 0xdc, 0xae, 0x35, 0xcf, 0x75, 0xcd, 0xc6,
  389. 0xa7, 0xad, 0xdc, 0x0f, 0x99, 0xb6, 0xe5, 0xe5, 0x5e, 0xb3, 0xfd, 0x69,
  390. 0x59, 0xa7, 0x81, 0x33, 0x58, 0xaa, 0xde, 0x17, 0xed, 0x6e, 0x51, 0xf9,
  391. 0xf3, 0x77, 0xd7, 0x8f, 0x5b, 0xdf, 0x75, 0x8f, 0xd5, 0xd8, 0x38, 0x8e,
  392. 0xa8, 0x68, 0xb1, 0xb1, 0x46, 0x7d, 0x4e, 0x16, 0xf3, 0x5d, 0x41, 0xed,
  393. 0xb6, 0x6c, 0x2b, 0x7f, 0xd6, 0xb5, 0xcc, 0xb0, 0x62, 0x9f, 0x77, 0x62,
  394. 0xcd, 0xd7, 0x41, 0xee, 0xa7, 0x56, 0x1b, 0xc7, 0x83, 0x82, 0x59, 0x62,
  395. 0xd6, 0x89, 0x74, 0xcc, 0x9a, 0xa9, 0xfb, 0xdc, 0xdb, 0xe8, 0x3e, 0xfb,
  396. 0x36, 0xba, 0x2f, 0x98, 0xf6, 0x28, 0xd5, 0xc7, 0x9e, 0x1a, 0xad, 0xf3,
  397. 0x3d, 0x86, 0x33, 0xf0, 0xb9, 0xca, 0x7d, 0x3e, 0x5d, 0x2e, 0x75, 0xc6,
  398. 0xe0, 0x1f, 0xbe, 0xe3, 0xd6, 0xc8, 0xd3, 0x1c, 0x47, 0xb4, 0x22, 0xba,
  399. 0x9a, 0x23, 0x02, 0x79, 0x7c, 0xcc, 0x97, 0x49, 0xbe, 0x08, 0x23, 0x63,
  400. 0x8a, 0xd5, 0x85, 0xb3, 0xb2, 0xc7, 0xcb, 0x12, 0xa1, 0x6a, 0x12, 0x0e,
  401. 0x59, 0x07, 0x7f, 0xce, 0xc7, 0x76, 0xe1, 0xb5, 0xca, 0xf5, 0x67, 0x93,
  402. 0x3a, 0x9b, 0xd9, 0x66, 0xe9, 0x63, 0xcc, 0x77, 0x15, 0xfa, 0x98, 0x93,
  403. 0x3e, 0xd3, 0x64, 0xea, 0x0e, 0xa7, 0x75, 0x56, 0xf9, 0x4b, 0xb4, 0x2d,
  404. 0x35, 0xb6, 0xd6, 0xc7, 0x11, 0xe3, 0x53, 0xe5, 0x54, 0xff, 0x4f, 0xe9,
  405. 0x98, 0x3d, 0xe8, 0x5d, 0x28, 0xef, 0xf9, 0xea, 0x6e, 0x69, 0xd0, 0x85,
  406. 0x28, 0xc3, 0xef, 0xcf, 0x62, 0xde, 0x0a, 0x9c, 0x9f, 0xca, 0xd1, 0x9f,
  407. 0x18, 0xff, 0xc9, 0x0f, 0x0d, 0xb7, 0x96, 0xe1, 0xb4, 0x54, 0x8b, 0x76,
  408. 0xb6, 0x50, 0x9b, 0x75, 0xb8, 0x6d, 0x11, 0x52, 0xd5, 0x48, 0x6d, 0x92,
  409. 0xa9, 0xc5, 0x72, 0x3f, 0xb2, 0xe2, 0x54, 0x58, 0x6a, 0x1c, 0x27, 0xde,
  410. 0x8f, 0x70, 0x53, 0x11, 0x8b, 0x45, 0x19, 0x0d, 0xb7, 0xcd, 0xa7, 0x05,
  411. 0x38, 0xa3, 0x45, 0xbc, 0x5f, 0xa5, 0x6d, 0xf2, 0x5e, 0xe9, 0xa4, 0xc5,
  412. 0x36, 0x4e, 0xf3, 0xe7, 0xbe, 0x95, 0xae, 0x88, 0x5b, 0xc8, 0x7b, 0xea,
  413. 0xb4, 0x6c, 0xd7, 0x26, 0x78, 0x17, 0xee, 0x8d, 0x8f, 0xa2, 0xfd, 0xdd,
  414. 0x9d, 0x5e, 0x78, 0x7b, 0xc4, 0xfb, 0x20, 0x8d, 0x42, 0xfb, 0x90, 0x7c,
  415. 0x3e, 0x4c, 0x1b, 0xa9, 0xdc, 0x91, 0x85, 0x7e, 0x59, 0x10, 0xc5, 0x0a,
  416. 0x9d, 0x45, 0x54, 0x71, 0x74, 0x03, 0x9d, 0xef, 0xe4, 0x4f, 0x98, 0x23,
  417. 0x5e, 0x2b, 0xdd, 0x40, 0xe5, 0x4e, 0x17, 0xfa, 0x6f, 0xa3, 0xc3, 0x48,
  418. 0x3b, 0x68, 0x8a, 0x3c, 0x4b, 0x3d, 0xce, 0x88, 0xfb, 0x29, 0xee, 0x1f,
  419. 0xf6, 0xcb, 0x75, 0xa2, 0x22, 0xbe, 0x91, 0xf6, 0x5a, 0xca, 0xa9, 0xcf,
  420. 0x62, 0xd8, 0x16, 0x58, 0xb2, 0x99, 0xe2, 0x26, 0xfb, 0xa4, 0xb4, 0x5f,
  421. 0xa5, 0xe1, 0x98, 0x6a, 0xc2, 0x4c, 0x54, 0x1c, 0xea, 0x20, 0xfd, 0x26,
  422. 0x41, 0xf4, 0x09, 0x87, 0xad, 0xcf, 0xe9, 0x40, 0x9e, 0xef, 0x50, 0xab,
  423. 0xe3, 0xa0, 0xb4, 0x23, 0xdf, 0x6c, 0x3d, 0xe8, 0xad, 0xfc, 0xac, 0xd8,
  424. 0x62, 0x95, 0x9f, 0xfb, 0x4e, 0xff, 0x4c, 0x5d, 0x40, 0xff, 0x52, 0xfa,
  425. 0xec, 0x1f, 0xa5, 0xe7, 0xcf, 0x29, 0xd9, 0x5f, 0xa6, 0x88, 0xf7, 0x7c,
  426. 0x3b, 0x19, 0xc6, 0x9a, 0x2b, 0x9b, 0xae, 0xb4, 0xac, 0x7a, 0x9f, 0x58,
  427. 0xf9, 0x3e, 0xb1, 0xf6, 0x7d, 0xc2, 0xec, 0x03, 0x56, 0xe9, 0xc3, 0x27,
  428. 0x31, 0x86, 0x3c, 0x3a, 0x5b, 0x1e, 0xf3, 0xbd, 0x5f, 0xca, 0xcd, 0x7e,
  429. 0x21, 0xf3, 0xb7, 0x7e, 0x09, 0x7e, 0x31, 0x33, 0xff, 0x41, 0xdf, 0x17,
  430. 0x65, 0xfe, 0xd4, 0x5d, 0xe0, 0xfa, 0x1a, 0x75, 0xe6, 0xc8, 0xdc, 0x4b,
  431. 0x2c, 0x18, 0x7b, 0xcc, 0x77, 0x13, 0x4e, 0x43, 0x79, 0x26, 0xbf, 0x7a,
  432. 0xaf, 0xf6, 0x39, 0xf6, 0xe9, 0x5d, 0xf0, 0xad, 0x94, 0x8e, 0xd7, 0xd3,
  433. 0x2d, 0x3a, 0x1e, 0x44, 0xdc, 0xef, 0x91, 0x67, 0x17, 0x7e, 0x67, 0x91,
  434. 0x87, 0x93, 0xef, 0x02, 0x79, 0xab, 0x8c, 0xb8, 0xdb, 0xf9, 0x8e, 0xe0,
  435. 0x5d, 0x41, 0x5e, 0x79, 0x47, 0x54, 0xfb, 0xd8, 0xb1, 0x1a, 0xf5, 0x99,
  436. 0xfa, 0x2c, 0x6d, 0xef, 0x78, 0x2f, 0x76, 0x2f, 0x3d, 0x1b, 0x76, 0x9e,
  437. 0x8d, 0x21, 0x79, 0x3e, 0x54, 0x7d, 0xbe, 0xa7, 0x46, 0x7d, 0xfe, 0xce,
  438. 0x6d, 0x59, 0xd2, 0x6d, 0x45, 0xdc, 0xd7, 0xa7, 0xdf, 0x17, 0x2c, 0xc7,
  439. 0x18, 0xfd, 0xbe, 0x45, 0x98, 0x65, 0xfe, 0x9b, 0x82, 0x3c, 0xca, 0x3c,
  440. 0xe3, 0xa4, 0xde, 0xf9, 0xcc, 0xf6, 0x1e, 0xc8, 0xae, 0xcf, 0x92, 0x0f,
  441. 0xa4, 0xec, 0xd2, 0xaa, 0xfb, 0x66, 0x43, 0xdf, 0x6c, 0xca, 0x2e, 0x47,
  442. 0xc9, 0x2a, 0xcc, 0x79, 0x3f, 0xf5, 0x36, 0x79, 0x6f, 0xd4, 0x79, 0xdf,
  443. 0x6d, 0xfb, 0xb3, 0xc9, 0x1c, 0xfa, 0x4e, 0xfd, 0xb9, 0x1a, 0x15, 0x47,
  444. 0x66, 0xda, 0xcb, 0x3f, 0x50, 0x46, 0xb1, 0x81, 0x0f, 0xc2, 0x66, 0x9c,
  445. 0xdf, 0xa9, 0xcf, 0xca, 0x27, 0xcf, 0x99, 0x7f, 0xf9, 0x90, 0x8d, 0x62,
  446. 0xad, 0x87, 0xc8, 0x76, 0x50, 0x8d, 0xc3, 0x3e, 0xa3, 0x4d, 0xbb, 0x3e,
  447. 0x4b, 0x9e, 0xd2, 0x75, 0x44, 0xb7, 0x9f, 0x4f, 0x65, 0xed, 0x83, 0x1e,
  448. 0xd4, 0x64, 0xe5, 0xbf, 0x10, 0x31, 0xac, 0x4d, 0xd0, 0xc7, 0x7c, 0x4f,
  449. 0x50, 0x99, 0x45, 0xb5, 0x69, 0xc8, 0x18, 0xf3, 0x5c, 0x8d, 0xfa, 0x6c,
  450. 0x9e, 0xd7, 0xa4, 0x5d, 0xae, 0xc9, 0x36, 0xe1, 0xf1, 0x54, 0x54, 0x60,
  451. 0x55, 0x5a, 0xcb, 0xb1, 0xf6, 0xfb, 0xac, 0x16, 0x9b, 0x5c, 0x8f, 0x96,
  452. 0xd4, 0xbc, 0x55, 0x94, 0xa9, 0xd5, 0xe8, 0xc0, 0x6d, 0xba, 0xcf, 0x21,
  453. 0x6c, 0xbc, 0x12, 0xf7, 0x88, 0xd4, 0xdf, 0x69, 0x78, 0xd0, 0x23, 0x9e,
  454. 0xeb, 0x6c, 0xb5, 0x46, 0xbc, 0x4d, 0x5e, 0xcb, 0x2a, 0xef, 0x4a, 0xef,
  455. 0x5a, 0xef, 0xdb, 0xd8, 0x8f, 0xa5, 0x2f, 0xd5, 0xa8, 0x58, 0xcb, 0xef,
  456. 0xba, 0x3c, 0x02, 0xfb, 0x50, 0x5b, 0xc4, 0xfb, 0x29, 0xfd, 0xde, 0x27,
  457. 0xf5, 0x8e, 0xe4, 0xb4, 0xf6, 0x3f, 0xf6, 0x23, 0x92, 0xb7, 0x5e, 0xe9,
  458. 0x47, 0xf0, 0x52, 0x21, 0xdf, 0xc9, 0xac, 0x24, 0x61, 0xf8, 0x05, 0x7b,
  459. 0xd1, 0x56, 0xf9, 0x3e, 0x69, 0xca, 0x86, 0x67, 0xcf, 0x87, 0x7b, 0x77,
  460. 0xd1, 0x3d, 0x56, 0xf9, 0x8e, 0x61, 0x6d, 0x5d, 0x5d, 0x3d, 0x7d, 0xcd,
  461. 0xca, 0xb6, 0x86, 0xfa, 0xe1, 0x14, 0xf3, 0xb8, 0x55, 0xdb, 0x33, 0x8f,
  462. 0x3e, 0x93, 0x92, 0x3d, 0xa3, 0x99, 0x07, 0x8e, 0x8b, 0xb9, 0x05, 0x37,
  463. 0x9e, 0xe8, 0x5a, 0x27, 0x0a, 0x8b, 0xee, 0xbf, 0x81, 0x7e, 0x6d, 0x45,
  464. 0x67, 0x51, 0xe7, 0x70, 0xcf, 0x66, 0xfa, 0x80, 0x8d, 0x79, 0xba, 0x5d,
  465. 0x92, 0xb5, 0xf4, 0x17, 0xad, 0xda, 0xd5, 0xd3, 0x45, 0x0f, 0xd9, 0x28,
  466. 0x6f, 0x77, 0xcf, 0x91, 0x9e, 0xc3, 0x97, 0x9f, 0x38, 0x41, 0xf7, 0xda,
  467. 0x74, 0xe3, 0xf4, 0x14, 0xc4, 0x37, 0xf4, 0xd6, 0xd5, 0x5f, 0xba, 0x65,
  468. 0xdd, 0x61, 0xba, 0xc9, 0x81, 0xde, 0xfd, 0xfa, 0xd2, 0x9b, 0x0e, 0x9c,
  469. 0xea, 0xa1, 0x47, 0x98, 0x17, 0x05, 0x05, 0x27, 0x9e, 0xa2, 0x2f, 0x39,
  470. 0x64, 0xee, 0x5f, 0xd1, 0xfd, 0x0e, 0x59, 0xfd, 0xb5, 0x92, 0xec, 0xa2,
  471. 0xd7, 0x2c, 0xc8, 0x12, 0xa2, 0xff, 0xc1, 0x90, 0x87, 0x1f, 0x3c, 0xfc,
  472. 0xc2, 0xda, 0x57, 0x86, 0xeb, 0x50, 0xe0, 0x30, 0xfd, 0x94, 0xe5, 0xf4,
  473. 0x0b, 0x0b, 0xe7, 0x32, 0x56, 0xef, 0x34, 0xba, 0x0f, 0xd1, 0xaf, 0xd9,
  474. 0x2c, 0xbf, 0xe3, 0xc7, 0x31, 0x7e, 0xc5, 0xf3, 0x51, 0x7e, 0xdc, 0x63,
  475. 0x70, 0xb6, 0x3b, 0x99, 0xfd, 0x30, 0x3f, 0xfe, 0x83, 0x1f, 0x1f, 0xe3,
  476. 0xc7, 0xdd, 0x86, 0x6c, 0xe7, 0xdf, 0x65, 0x86, 0x8f, 0xc8, 0xe7, 0x5d,
  477. 0x4a, 0x74, 0xaf, 0x4c, 0x7c, 0xcb, 0x81, 0xc7, 0xcb, 0x6c, 0xca, 0xa3,
  478. 0x75, 0x6b, 0x77, 0x7d, 0x22, 0xd4, 0xd3, 0x77, 0x43, 0x3d, 0xfd, 0x96,
  479. 0x4b, 0xb6, 0xb3, 0xba, 0x5d, 0x1b, 0xac, 0xdd, 0xa6, 0x4d, 0xf8, 0x20,
  480. 0x4b, 0xbf, 0x60, 0xc7, 0xe3, 0x26, 0x2e, 0x7f, 0x94, 0xee, 0x92, 0x7d,
  481. 0x7b, 0xc8, 0x28, 0xf8, 0x53, 0x7d, 0x4f, 0xd0, 0x98, 0xe8, 0xde, 0x4d,
  482. 0xdf, 0xb0, 0xc8, 0x31, 0x3e, 0xf5, 0xab, 0xfb, 0x8f, 0x36, 0x04, 0x8d,
  483. 0xcb, 0xc6, 0xe8, 0x09, 0x99, 0xe5, 0x01, 0xfa, 0xa2, 0x10, 0xd4, 0xfd,
  484. 0x40, 0x8f, 0x71, 0x9e, 0xf0, 0xe6, 0x89, 0xe2, 0xc2, 0x75, 0x46, 0xb6,
  485. 0x58, 0xaa, 0x98, 0x6d, 0xa2, 0x3c, 0x4f, 0x14, 0xb9, 0xdf, 0x7b, 0xc0,
  486. 0x38, 0x08, 0xce, 0xb8, 0x5c, 0xcc, 0x41, 0x23, 0x5c, 0xff, 0x27, 0xa8,
  487. 0x5d, 0x76, 0xb6, 0x5d, 0x56, 0x49, 0x9b, 0x25, 0x31, 0x7e, 0x43, 0x2d,
  488. 0xc6, 0xab, 0xc6, 0x21, 0xe3, 0x61, 0xcb, 0xa1, 0xc3, 0xc6, 0xf5, 0x47,
  489. 0x4e, 0x1f, 0x0d, 0x1f, 0x5b, 0xbb, 0x76, 0xdd, 0xda, 0xb5, 0xeb, 0xef,
  490. 0x68, 0x5d, 0xfb, 0x90, 0x91, 0x27, 0x4a, 0xf3, 0x8c, 0xdc, 0xc7, 0xe8,
  491. 0x83, 0xb0, 0xd1, 0x31, 0xba, 0x49, 0x50, 0x2d, 0xfd, 0x1e, 0x03, 0xba,
  492. 0xa2, 0x67, 0x1d, 0x7d, 0x14, 0x3d, 0xc8, 0x3b, 0xb6, 0x8e, 0x6e, 0x80,
  493. 0xea, 0x8a, 0x1b, 0xe8, 0x59, 0x3b, 0x27, 0xe9, 0x2f, 0x4c, 0xee, 0xa4,
  494. 0xdb, 0xa4, 0x92, 0x6e, 0xb4, 0x73, 0x8b, 0x8f, 0xd3, 0xdf, 0x6c, 0x6a,
  495. 0xec, 0xeb, 0x6e, 0xa0, 0xbb, 0x38, 0x03, 0xea, 0x2d, 0xce, 0xa3, 0x27,
  496. 0xc0, 0xee, 0xa4, 0xbf, 0x19, 0xb2, 0x23, 0x57, 0xf5, 0xac, 0x55, 0x77,
  497. 0xb4, 0x42, 0x44, 0x61, 0xf6, 0xf9, 0xc5, 0xa4, 0xf6, 0xfa, 0x05, 0xf0,
  498. 0xe9, 0x12, 0xbd, 0x0e, 0x04, 0xa9, 0x3c, 0xa9, 0x77, 0x1a, 0x46, 0x1a,
  499. 0x39, 0x32, 0x9d, 0xa3, 0xf3, 0xa4, 0xfe, 0x9e, 0x69, 0xb9, 0xa6, 0xf5,
  500. 0x9a, 0x3a, 0x75, 0xfe, 0x85, 0xba, 0xfc, 0x79, 0x5a, 0x5e, 0xab, 0xe5,
  501. 0xf5, 0x7a, 0x8d, 0x35, 0x63, 0x8f, 0x64, 0x79, 0x8b, 0xee, 0x83, 0x61,
  502. 0x6a, 0xaf, 0x05, 0x3b, 0x39, 0xf3, 0x05, 0xe9, 0xb4, 0x8a, 0xdd, 0xa9,
  503. 0x3e, 0x59, 0xd3, 0xbc, 0x7a, 0x6f, 0x9a, 0xba, 0x6f, 0x1a, 0x5a, 0x67,
  504. 0x68, 0x9d, 0xa1, 0xd7, 0xb4, 0xaa, 0xdf, 0x21, 0xcf, 0x50, 0x4a, 0xd6,
  505. 0xa2, 0xe9, 0x05, 0x9a, 0xb6, 0xc9, 0x1a, 0x2c, 0x5a, 0x8f, 0xdb, 0x88,
  506. 0xa9, 0x1d, 0xf5, 0x5e, 0xc0, 0x22, 0x69, 0x9b, 0xb6, 0x8d, 0x7a, 0x3f,
  507. 0xc1, 0x34, 0x4b, 0xd3, 0x5c, 0x5d, 0xb6, 0x00, 0xe7, 0x57, 0x0b, 0xa9,
  508. 0xfd, 0x39, 0x55, 0x47, 0x11, 0x46, 0xcb, 0x29, 0xbb, 0x89, 0x4f, 0x8d,
  509. 0x25, 0x65, 0xf7, 0x05, 0x9a, 0x2e, 0x4c, 0xdb, 0xaf, 0x4d, 0xd6, 0x53,
  510. 0x2f, 0x6b, 0x4c, 0xd9, 0xae, 0x5e, 0xcb, 0xda, 0xa4, 0xcc, 0x2a, 0xed,
  511. 0x3f, 0x5d, 0x57, 0xb3, 0x96, 0x35, 0x9b, 0xc6, 0xdf, 0x2c, 0x53, 0xea,
  512. 0x0e, 0xca, 0xb4, 0x8d, 0xd4, 0x3e, 0xdc, 0x66, 0x2a, 0xc7, 0xd8, 0xa0,
  513. 0x69, 0xbb, 0x1e, 0x2b, 0x6b, 0xf2, 0x4d, 0x7c, 0x69, 0xda, 0x2f, 0x4a,
  514. 0x4d, 0x36, 0xce, 0x4f, 0xcf, 0x5d, 0xb9, 0xd6, 0xbb, 0x75, 0x9d, 0xf3,
  515. 0x75, 0x3b, 0xf5, 0xe9, 0x9c, 0xaa, 0x6f, 0xf5, 0xe9, 0xdc, 0x22, 0x8b,
  516. 0x84, 0x8b, 0x70, 0x51, 0x16, 0x95, 0x64, 0x54, 0x76, 0x93, 0xa8, 0x22,
  517. 0xfb, 0xda, 0x50, 0x24, 0x94, 0x5c, 0x4f, 0xc6, 0xfa, 0x16, 0xb2, 0xae,
  518. 0x6f, 0xc1, 0xd3, 0xce, 0xcf, 0xaa, 0x21, 0xca, 0x6d, 0x1f, 0x0b, 0x44,
  519. 0xf6, 0x07, 0x77, 0x04, 0x92, 0x23, 0x63, 0xc1, 0x38, 0xcd, 0x6d, 0x8f,
  520. 0x8e, 0xc7, 0xa2, 0x91, 0x60, 0x24, 0xd9, 0x1f, 0x0c, 0xc6, 0x87, 0x42,
  521. 0xc1, 0x43, 0xf5, 0x97, 0x06, 0x26, 0x03, 0xe4, 0x6a, 0x8f, 0x46, 0x22,
  522. 0xc1, 0x91, 0x64, 0x28, 0x1a, 0x21, 0xd1, 0x49, 0x46, 0x67, 0x17, 0x89,
  523. 0x2e, 0x32, 0xba, 0xaa, 0x80, 0x2e, 0xb2, 0x74, 0x75, 0x71, 0xa2, 0x1b,
  524. 0x4c, 0x77, 0x2f, 0x98, 0x5e, 0x12, 0xdd, 0x64, 0x74, 0x33, 0x7a, 0x69,
  525. 0x61, 0xf7, 0xc4, 0x48, 0xb0, 0x6d, 0x64, 0x24, 0x98, 0x48, 0x84, 0xf6,
  526. 0x86, 0xc2, 0xa1, 0xe4, 0x91, 0x2d, 0xd1, 0xd1, 0x60, 0x7f, 0x3c, 0x3a,
  527. 0x19, 0x1a, 0x45, 0x8b, 0xc5, 0x3d, 0xc1, 0x23, 0x7b, 0xa3, 0x81, 0xf8,
  528. 0xe8, 0xc6, 0x50, 0x62, 0x3c, 0x94, 0x48, 0xf4, 0x86, 0x12, 0xc9, 0x60,
  529. 0x04, 0x0a, 0x81, 0x9a, 0x7a, 0x51, 0x77, 0x2f, 0xd7, 0xdd, 0xdb, 0x4d,
  530. 0xd6, 0xde, 0x6e, 0xc9, 0xf5, 0x42, 0x24, 0xe5, 0x90, 0xe1, 0xd1, 0x4b,
  531. 0x73, 0x7b, 0x03, 0x91, 0xd1, 0x78, 0x34, 0x34, 0xda, 0x10, 0x88, 0xc5,
  532. 0x1a, 0xda, 0xd0, 0xc9, 0x49, 0x34, 0xd2, 0x42, 0x2b, 0x32, 0xe5, 0xb1,
  533. 0x58, 0x38, 0x34, 0x12, 0xe0, 0x11, 0x2c, 0x49, 0xe5, 0xe9, 0x0d, 0xed,
  534. 0x0b, 0x8e, 0x1c, 0x19, 0x09, 0x07, 0xdb, 0x03, 0xe1, 0xf0, 0xde, 0xc0,
  535. 0xc8, 0x81, 0x44, 0x0b, 0xcd, 0x3b, 0x57, 0x29, 0xb3, 0x6a, 0x24, 0x1a,
  536. 0x41, 0x27, 0x93, 0x0d, 0xed, 0x4c, 0x0f, 0x27, 0xcd, 0xaa, 0xfd, 0xf1,
  537. 0x40, 0x6c, 0x2c, 0x34, 0x92, 0x68, 0x68, 0x0f, 0x44, 0x26, 0x03, 0xa8,
  538. 0x70, 0xd1, 0x2c, 0xaa, 0x68, 0x38, 0x1a, 0xef, 0x0c, 0x85, 0x93, 0xc1,
  539. 0xf8, 0xb9, 0xf5, 0x7d, 0x81, 0x64, 0x3c, 0x74, 0xb8, 0x85, 0xaa, 0xde,
  540. 0x56, 0x9f, 0x51, 0x55, 0xc9, 0xcc, 0xac, 0xfd, 0x81, 0x50, 0x24, 0x39,
  541. 0xbb, 0x26, 0x2a, 0x35, 0xc5, 0x33, 0x35, 0x03, 0x98, 0xe8, 0x16, 0x2a,
  542. 0x4d, 0x2b, 0xa2, 0x89, 0x86, 0x0d, 0x13, 0xa1, 0xf0, 0xe8, 0x92, 0xa1,
  543. 0x8e, 0x81, 0xc1, 0xae, 0xad, 0x5b, 0x5a, 0xa8, 0x30, 0x53, 0x17, 0x19,
  544. 0x0d, 0x07, 0x5b, 0xa8, 0xc8, 0x2c, 0xec, 0xda, 0x10, 0x8a, 0x8c, 0x72,
  545. 0x9f, 0xa6, 0xeb, 0x67, 0x4b, 0x35, 0x74, 0x8c, 0x86, 0x92, 0x81, 0xbd,
  546. 0x9c, 0xbd, 0x24, 0x53, 0x31, 0x18, 0x0c, 0x2b, 0xff, 0x32, 0xb7, 0xac,
  547. 0x34, 0xb1, 0x40, 0x44, 0xfb, 0xe7, 0xcc, 0x52, 0xd0, 0x45, 0x54, 0x7d,
  548. 0xe7, 0x9d, 0x43, 0x33, 0x08, 0x33, 0x45, 0xf6, 0xcb, 0x01, 0x70, 0x05,
  549. 0x67, 0x55, 0xee, 0xc7, 0x23, 0x5d, 0xf9, 0xf4, 0xb0, 0x26, 0x92, 0xa1,
  550. 0x30, 0xdb, 0x6e, 0x76, 0xe1, 0x5a, 0xaa, 0x4e, 0x0b, 0x27, 0xb1, 0x46,
  551. 0x1a, 0xda, 0xc7, 0xa2, 0xf1, 0x60, 0x54, 0x1a, 0x30, 0x18, 0x5f, 0xd2,
  552. 0x19, 0x0f, 0x8c, 0xa7, 0x5d, 0xaa, 0x85, 0x16, 0xbc, 0x4d, 0x5e, 0xb3,
  553. 0x7d, 0xa4, 0x16, 0xab, 0xa1, 0x63, 0x32, 0x18, 0xc9, 0xb0, 0xbf, 0x54,
  554. 0xf4, 0x45, 0xd9, 0x38, 0x5a, 0x57, 0x95, 0xa9, 0xe3, 0x75, 0xba, 0x64,
  555. 0x6b, 0xa4, 0x33, 0x3a, 0x32, 0x91, 0x50, 0xeb, 0x39, 0xb5, 0x8a, 0xcc,
  556. 0xdd, 0x4f, 0x67, 0x35, 0x5b, 0x31, 0x2d, 0xdc, 0x14, 0x8f, 0x4e, 0xc4,
  557. 0x5a, 0x68, 0xd5, 0x4c, 0x8d, 0x3f, 0x1e, 0x0c, 0x6e, 0xdd, 0x9b, 0x08,
  558. 0xc6, 0x27, 0x31, 0xb6, 0xad, 0x91, 0x4d, 0xe1, 0xe8, 0xde, 0x40, 0xb8,
  559. 0x37, 0x70, 0x24, 0x3a, 0x91, 0x9c, 0x6e, 0x66, 0xf1, 0xdb, 0x97, 0x6b,
  560. 0xa1, 0x65, 0x99, 0x19, 0x02, 0xe6, 0x80, 0xd0, 0x90, 0x11, 0x1e, 0xfa,
  561. 0x02, 0x91, 0xc0, 0x7e, 0x2e, 0xd2, 0xf8, 0xae, 0x8b, 0x70, 0x44, 0xe9,
  562. 0x8a, 0xec, 0x8b, 0xce, 0xe8, 0xff, 0x3b, 0x94, 0x49, 0x45, 0xa1, 0x16,
  563. 0xaa, 0xcf, 0x2c, 0x17, 0x8a, 0xc4, 0x26, 0x92, 0xe3, 0xc1, 0xe4, 0x58,
  564. 0x74, 0xb4, 0x61, 0x43, 0x20, 0x81, 0xca, 0x91, 0x9e, 0x8e, 0x81, 0x66,
  565. 0x6f, 0x9b, 0x91, 0x9f, 0x5d, 0x3c, 0x1a, 0x57, 0xdd, 0xa9, 0x3e, 0x77,
  566. 0xb6, 0x19, 0x55, 0xd6, 0xbd, 0x43, 0xde, 0x3e, 0xc9, 0xa7, 0xad, 0xd3,
  567. 0xd0, 0x3b, 0x12, 0x1d, 0x6f, 0x88, 0x8f, 0x27, 0xc2, 0x0d, 0x97, 0x22,
  568. 0xc2, 0x36, 0xcc, 0x88, 0xdc, 0x4b, 0x32, 0x42, 0x7b, 0x0b, 0xd5, 0xbe,
  569. 0x73, 0x01, 0x53, 0x6f, 0x2e, 0x78, 0xc7, 0xdc, 0x6f, 0x1b, 0xd7, 0x5b,
  570. 0xa8, 0xf3, 0x1d, 0x2b, 0x38, 0x47, 0xe4, 0x5f, 0x92, 0xe9, 0x38, 0xcd,
  571. 0xff, 0xaf, 0xf5, 0xb0, 0xcf, 0xbd, 0x53, 0x51, 0x5e, 0xfe, 0xd2, 0xb8,
  572. 0xfe, 0x40, 0x7c, 0x7f, 0x10, 0x2b, 0xab, 0xec, 0x9d, 0x8a, 0xb4, 0x50,
  573. 0x79, 0xef, 0x68, 0x20, 0x3c, 0x19, 0x3a, 0xd0, 0x80, 0x00, 0x13, 0x4d,
  574. 0xca, 0xbd, 0xa1, 0xa1, 0x23, 0x32, 0x12, 0x8e, 0x26, 0x10, 0x67, 0xda,
  575. 0xc3, 0x81, 0x84, 0x0c, 0xfa, 0x33, 0xf3, 0x74, 0xc1, 0xb8, 0x71, 0xad,
  576. 0x2f, 0x9b, 0x45, 0xdf, 0x17, 0x1c, 0xdf, 0xab, 0x33, 0x04, 0x91, 0x65,
  577. 0xe1, 0x2c, 0x59, 0x06, 0x43, 0xfb, 0x23, 0x81, 0xe4, 0x44, 0x5c, 0x86,
  578. 0x4f, 0xde, 0x98, 0x1b, 0xc2, 0x98, 0x62, 0x84, 0x94, 0x40, 0x7c, 0x30,
  579. 0x78, 0x70, 0x22, 0x18, 0x19, 0x81, 0xa6, 0xc0, 0xac, 0x51, 0xcd, 0x95,
  580. 0x9b, 0x44, 0x5d, 0xe1, 0x70, 0x70, 0x7f, 0x20, 0xac, 0x66, 0xae, 0xe3,
  581. 0xf0, 0x48, 0x30, 0xa6, 0x26, 0x7c, 0xc9, 0x2c, 0x79, 0xe2, 0xfb, 0x27,
  582. 0xc6, 0x31, 0x76, 0x53, 0xae, 0x42, 0x73, 0x2e, 0x6c, 0x7e, 0xd2, 0x15,
  583. 0xcb, 0x4c, 0xc2, 0x2d, 0xd1, 0xc1, 0x89, 0x91, 0x31, 0xe5, 0xab, 0xa6,
  584. 0x72, 0x1e, 0x53, 0x96, 0xad, 0x7b, 0x2f, 0x95, 0x3b, 0xcc, 0x42, 0x93,
  585. 0x6c, 0x30, 0x38, 0x32, 0x11, 0x87, 0x0f, 0x9d, 0xa3, 0x88, 0x0a, 0xe2,
  586. 0xbc, 0x46, 0xa6, 0x65, 0xf1, 0xe0, 0x3e, 0xde, 0x32, 0xd0, 0x8d, 0xc9,
  587. 0xa8, 0xda, 0xa2, 0xd5, 0x24, 0x9a, 0xaa, 0x28, 0x9d, 0x25, 0xbb, 0xea,
  588. 0x5a, 0x0b, 0xcd, 0x51, 0x3a, 0x19, 0xd4, 0xdb, 0xe2, 0xf1, 0xc0, 0x11,
  589. 0xf6, 0x9b, 0x16, 0x72, 0x9b, 0xc4, 0xb3, 0x4b, 0xd6, 0x92, 0x63, 0x70,
  590. 0x63, 0xcf, 0x25, 0x5d, 0x5b, 0xfc, 0x64, 0xf5, 0xef, 0xec, 0xef, 0xa0,
  591. 0xfc, 0xb3, 0xbc, 0x88, 0x72, 0xcc, 0x1e, 0x4c, 0x62, 0x88, 0x8c, 0x21,
  592. 0x1c, 0x58, 0x86, 0x70, 0x7c, 0xb1, 0x0e, 0xf1, 0x51, 0xc9, 0xc6, 0x4f,
  593. 0x9c, 0x65, 0x86, 0xba, 0xc9, 0x3e, 0xd4, 0xdd, 0xd5, 0xd9, 0x89, 0xd3,
  594. 0xcd, 0x50, 0xb7, 0x54, 0x74, 0xb3, 0xc2, 0x32, 0x84, 0xb3, 0x13, 0x1e,
  595. 0xbd, 0x2c, 0xe6, 0x03, 0xcf, 0x50, 0xf7, 0x2e, 0xe4, 0x66, 0xa6, 0x97,
  596. 0xeb, 0xe8, 0x95, 0x59, 0x7b, 0x55, 0x56, 0x3e, 0x06, 0x0d, 0x21, 0x13,
  597. 0x04, 0x2c, 0x77, 0x48, 0x22, 0x9b, 0xea, 0x95, 0x45, 0x71, 0x33, 0x06,
  598. 0xbb, 0xab, 0x5b, 0x3e, 0x71, 0xa6, 0x1a, 0xda, 0x85, 0x46, 0x77, 0xc9,
  599. 0x2c, 0x62, 0x17, 0x59, 0x76, 0x71, 0x56, 0x3c, 0x7a, 0x99, 0x85, 0x1a,
  600. 0x19, 0x6d, 0xbb, 0xba, 0x39, 0x6d, 0x05, 0x61, 0x01, 0x6b, 0xd0, 0xac,
  601. 0x7d, 0x57, 0xaf, 0x14, 0xdb, 0x98, 0xb2, 0x1c, 0x5d, 0x1a, 0xc6, 0x51,
  602. 0x70, 0xb8, 0x8b, 0x3c, 0xc3, 0x33, 0x5d, 0xae, 0x70, 0x78, 0x96, 0x19,
  603. 0x77, 0xa9, 0x78, 0xbc, 0xc4, 0xe7, 0xf3, 0xa5, 0xf9, 0x65, 0xe0, 0xb3,
  604. 0xa7, 0x79, 0x53, 0x22, 0x43, 0xd3, 0x68, 0x4e, 0x2c, 0x37, 0x27, 0x56,
  605. 0x98, 0x13, 0x2b, 0xcd, 0x89, 0x55, 0xe6, 0xc4, 0x6a, 0x73, 0xa2, 0xc9,
  606. 0x9c, 0x68, 0x36, 0xf5, 0xa6, 0xd1, 0xc4, 0x2f, 0x37, 0xf1, 0x2b, 0x4c,
  607. 0xfc, 0x4a, 0x13, 0xbf, 0xca, 0xc4, 0xaf, 0x36, 0xf1, 0x4d, 0x26, 0xbe,
  608. 0x79, 0xba, 0xb1, 0xce, 0x70, 0x60, 0x7f, 0x82, 0x72, 0x33, 0xb6, 0x25,
  609. 0x2a, 0x0a, 0xcc, 0xb2, 0xfd, 0x71, 0x09, 0x76, 0xe2, 0xde, 0xc0, 0xde,
  610. 0x60, 0x98, 0x2c, 0x81, 0xd1, 0x51, 0x9a, 0x87, 0xc7, 0xec, 0xfb, 0x2f,
  611. 0xb9, 0x03, 0xfb, 0x70, 0x02, 0x64, 0x3f, 0x54, 0x41, 0x7f, 0x94, 0x0a,
  612. 0xf8, 0xf0, 0xb1, 0x61, 0x22, 0x99, 0x8c, 0x46, 0xfa, 0xe3, 0xa8, 0x5d,
  613. 0x8a, 0x82, 0xfb, 0x70, 0xf6, 0x30, 0xe7, 0xb2, 0xef, 0x8d, 0x22, 0xc7,
  614. 0x38, 0xd9, 0x47, 0x02, 0xd8, 0x24, 0x46, 0xc9, 0xad, 0xa8, 0xe9, 0xb4,
  615. 0x9f, 0x3b, 0x92, 0x71, 0x41, 0xb0, 0xe1, 0xb4, 0x1c, 0x88, 0x53, 0x3e,
  616. 0x87, 0xbb, 0xa0, 0x29, 0x5b, 0xb1, 0x14, 0x98, 0xf6, 0x29, 0x7d, 0x34,
  617. 0xa6, 0xec, 0x11, 0xde, 0x15, 0xf8, 0xac, 0xd9, 0x96, 0xa4, 0xbc, 0x74,
  618. 0xa2, 0x3d, 0x3a, 0x11, 0x49, 0xa2, 0x72, 0xe4, 0xc2, 0x09, 0x35, 0x21,
  619. 0x65, 0x54, 0xa4, 0xcf, 0xd5, 0x89, 0x0d, 0xb2, 0xa3, 0xaa, 0x93, 0x34,
  620. 0x7f, 0x24, 0x1e, 0x0c, 0x24, 0x67, 0x6e, 0x35, 0xbc, 0xc3, 0x92, 0x63,
  621. 0x34, 0x2a, 0x8f, 0x5b, 0xe4, 0x0c, 0xea, 0x93, 0x25, 0xb8, 0xc8, 0x68,
  622. 0x62, 0x47, 0x28, 0x39, 0x46, 0xde, 0x7d, 0x38, 0x84, 0xce, 0x5a, 0x2e,
  623. 0xb1, 0xe1, 0x08, 0x9b, 0x81, 0xb2, 0x38, 0x87, 0x3c, 0x37, 0x51, 0x21,
  624. 0xd8, 0x50, 0x62, 0x4c, 0x06, 0x7c, 0x8e, 0xe4, 0x52, 0x9f, 0xb3, 0x6f,
  625. 0xfa, 0x4c, 0x35, 0x4a, 0xf3, 0xb1, 0xb8, 0x33, 0xaa, 0x93, 0x25, 0x79,
  626. 0x57, 0xe8, 0x1a, 0xa5, 0x05, 0x67, 0x2b, 0x33, 0xae, 0x39, 0x59, 0x52,
  627. 0x2b, 0x4d, 0x95, 0x9f, 0x66, 0xfb, 0x02, 0x89, 0x03, 0xa8, 0x76, 0x0e,
  628. 0x0b, 0xa6, 0x2f, 0x1a, 0x29, 0xcb, 0xb9, 0x21, 0x6e, 0x0f, 0xc4, 0x83,
  629. 0xc9, 0x7e, 0xf4, 0x47, 0x96, 0x2c, 0x62, 0x09, 0x62, 0x7d, 0x17, 0x8e,
  630. 0xd6, 0x87, 0x3b, 0xa3, 0x71, 0x65, 0xb5, 0x5c, 0x2d, 0x85, 0xbf, 0x04,
  631. 0xe3, 0x09, 0x72, 0x72, 0x92, 0xd7, 0x20, 0x15, 0x32, 0x97, 0x1a, 0x0e,
  632. 0x9f, 0x87, 0x3b, 0x22, 0xaa, 0xb1, 0x0c, 0xe1, 0x60, 0x32, 0x10, 0x4f,
  633. 0x92, 0x4b, 0x8a, 0xf5, 0x94, 0x71, 0x10, 0x4d, 0x59, 0x33, 0x87, 0x13,
  634. 0x7c, 0xea, 0xf4, 0x87, 0x60, 0xe5, 0x79, 0x48, 0xc9, 0x41, 0x07, 0x47,
  635. 0xcf, 0x0e, 0x7a, 0xde, 0x73, 0xaa, 0x64, 0x37, 0xb5, 0x0d, 0x36, 0x07,
  636. 0x43, 0xfb, 0xc7, 0x92, 0xb2, 0x9e, 0xcd, 0xe0, 0xc2, 0x9c, 0x0a, 0x8e,
  637. 0x0e, 0x04, 0xf7, 0x63, 0x7c, 0x1b, 0xf0, 0x84, 0x27, 0xcd, 0xa6, 0xe2,
  638. 0x9e, 0xf3, 0x70, 0x64, 0xad, 0x66, 0xab, 0xcf, 0x49, 0x09, 0x33, 0x4e,
  639. 0x47, 0x74, 0x7e, 0x4a, 0xec, 0x3f, 0x12, 0x0b, 0xc2, 0x52, 0x7c, 0x56,
  640. 0x19, 0x0a, 0xc5, 0x93, 0x13, 0x81, 0x70, 0xea, 0xb4, 0xc0, 0x1a, 0x39,
  641. 0xd4, 0xae, 0x48, 0x22, 0x19, 0xc0, 0xce, 0x29, 0x27, 0x26, 0x43, 0xcb,
  642. 0x2d, 0xf6, 0xea, 0xbd, 0x65, 0x6b, 0x64, 0x10, 0x7e, 0x18, 0x8c, 0x48,
  643. 0x83, 0xa0, 0xb1, 0x00, 0xec, 0x96, 0x0c, 0xca, 0x31, 0xa9, 0xa6, 0x65,
  644. 0x71, 0x3d, 0x54, 0xe5, 0xdd, 0x39, 0xd3, 0x02, 0xf4, 0xd4, 0x81, 0xd4,
  645. 0x40, 0xe0, 0xd0, 0x85, 0x29, 0x66, 0xa7, 0x6c, 0x7c, 0x20, 0x1a, 0x4d,
  646. 0xf2, 0x50, 0x64, 0xe9, 0xf4, 0x1d, 0x88, 0x87, 0x5b, 0x60, 0x16, 0xa8,
  647. 0x49, 0x62, 0x8f, 0x18, 0x3c, 0x82, 0x25, 0x3f, 0x3e, 0x88, 0xad, 0x25,
  648. 0x84, 0x2e, 0xe7, 0x41, 0xa2, 0xac, 0x3d, 0x20, 0xd7, 0x0a, 0xe7, 0xf0,
  649. 0xe3, 0xb4, 0x10, 0xde, 0x32, 0x31, 0xce, 0x3e, 0xa1, 0x9c, 0x60, 0x3b,
  650. 0x5f, 0xc5, 0xc2, 0xa1, 0x08, 0xac, 0xc9, 0xb9, 0x12, 0xb2, 0xd8, 0xf6,
  651. 0x48, 0x88, 0x57, 0x23, 0xe7, 0x92, 0x99, 0xce, 0x3e, 0xb2, 0x4b, 0xbf,
  652. 0x1a, 0x0a, 0xa5, 0xa3, 0x14, 0x97, 0xd9, 0x81, 0xd5, 0x12, 0x3d, 0xe4,
  653. 0x8f, 0x1e, 0x80, 0x1d, 0x16, 0xa4, 0xd3, 0x32, 0x53, 0x38, 0x88, 0xe3,
  654. 0x57, 0x2c, 0x1c, 0x38, 0xa2, 0x96, 0xa3, 0x15, 0xda, 0x0b, 0xe5, 0x73,
  655. 0x27, 0x95, 0x60, 0xf9, 0xe0, 0x86, 0x98, 0xb1, 0x38, 0x36, 0x47, 0xb9,
  656. 0x89, 0x7c, 0xad, 0x89, 0xc5, 0xfa, 0x03, 0xec, 0x38, 0xe4, 0x4e, 0x0b,
  657. 0x06, 0x82, 0x09, 0x9c, 0x3d, 0xd2, 0x92, 0x0d, 0xe9, 0x68, 0x46, 0xb9,
  658. 0x4a, 0xb2, 0x51, 0x2f, 0x7c, 0x9d, 0xc4, 0xc4, 0x6d, 0x8c, 0x1e, 0x8a,
  659. 0x50, 0x76, 0x3a, 0xb9, 0x3d, 0x46, 0x45, 0xe9, 0x84, 0x9c, 0xd4, 0xcd,
  660. 0xa1, 0xd1, 0x51, 0xf4, 0x5c, 0xb7, 0xda, 0x17, 0x45, 0x93, 0xb2, 0x4c,
  661. 0x86, 0x20, 0x1e, 0xd8, 0x9f, 0xaa, 0x53, 0x0a, 0x50, 0x8d, 0xae, 0x53,
  662. 0xde, 0xa5, 0xa9, 0x50, 0x27, 0x82, 0x71, 0xc4, 0xa8, 0x71, 0xbd, 0xa6,
  663. 0x73, 0xc6, 0xb0, 0xca, 0x53, 0xcd, 0x50, 0x31, 0xa7, 0x06, 0xa3, 0xfb,
  664. 0xb4, 0xbb, 0xc6, 0xa3, 0xe3, 0xca, 0x50, 0xe4, 0x1c, 0x43, 0x0d, 0x32,
  665. 0xb0, 0x58, 0xc7, 0xa2, 0x09, 0xac, 0x3a, 0xac, 0xa9, 0xad, 0xf2, 0xac,
  666. 0x92, 0xa0, 0x7c, 0x7e, 0x45, 0x13, 0x0a, 0x84, 0xdb, 0x03, 0xb1, 0x44,
  667. 0x1f, 0x26, 0x86, 0x72, 0xb5, 0x00, 0x4e, 0xc0, 0xfe, 0x90, 0x3f, 0x9d,
  668. 0x54, 0xde, 0x90, 0x15, 0x4a, 0x39, 0x38, 0xe5, 0x48, 0xf6, 0x12, 0x75,
  669. 0x5b, 0xa0, 0x02, 0x04, 0xd4, 0x60, 0x5c, 0xb6, 0xd3, 0xa6, 0x22, 0x08,
  670. 0x39, 0xd1, 0xee, 0x50, 0x20, 0x3c, 0x11, 0x24, 0x7b, 0x08, 0xc7, 0xa5,
  671. 0x03, 0x41, 0x34, 0x9d, 0x48, 0x3b, 0xbe, 0x33, 0x94, 0xd8, 0x1a, 0x0b,
  672. 0xe0, 0xfc, 0x88, 0xa2, 0x89, 0xf4, 0xe2, 0x95, 0x6f, 0x49, 0xb0, 0xe4,
  673. 0x21, 0x8a, 0xe2, 0x48, 0xd7, 0x71, 0x38, 0x16, 0x8e, 0xc6, 0x03, 0xca,
  674. 0x3d, 0x39, 0x34, 0x8c, 0xa2, 0x07, 0x09, 0x3d, 0xf7, 0x54, 0x7c, 0xe0,
  675. 0x1c, 0xaf, 0x71, 0x72, 0x53, 0x8a, 0xc1, 0x31, 0x36, 0xb5, 0x2d, 0x2c,
  676. 0xf7, 0x33, 0x7b, 0x38, 0x18, 0xd9, 0x8f, 0x08, 0x6d, 0x8d, 0xf0, 0x14,
  677. 0xe6, 0x44, 0xcc, 0xa1, 0xd2, 0x1e, 0xdd, 0xcb, 0x7b, 0x02, 0x79, 0xa2,
  678. 0xfb, 0xf6, 0x25, 0x82, 0xc9, 0x0d, 0x47, 0xda, 0x53, 0x9b, 0x46, 0x82,
  679. 0x0a, 0xa2, 0x91, 0xd4, 0xcb, 0x9b, 0x76, 0xb9, 0x2b, 0x20, 0x2c, 0x4c,
  680. 0x8b, 0x36, 0x06, 0x13, 0xc9, 0x78, 0xf4, 0x08, 0x7b, 0xcd, 0xb4, 0x50,
  681. 0x7b, 0x96, 0xa9, 0x64, 0xca, 0xb5, 0xe6, 0x4f, 0x8b, 0x06, 0x03, 0x93,
  682. 0xc1, 0x94, 0x39, 0xd4, 0xc2, 0x36, 0xe5, 0x97, 0xe6, 0xce, 0xac, 0x62,
  683. 0x30, 0x19, 0x8d, 0xc5, 0x20, 0x2a, 0x46, 0xb8, 0x96, 0xfd, 0x38, 0xeb,
  684. 0x36, 0x87, 0x41, 0x44, 0xe0, 0x49, 0x87, 0x28, 0x37, 0x6a, 0xbe, 0x96,
  685. 0x53, 0x5e, 0x34, 0x63, 0xff, 0xa6, 0x9c, 0x68, 0x44, 0xae, 0x04, 0x19,
  686. 0x61, 0x29, 0x2b, 0x1a, 0x49, 0xb9, 0x71, 0xae, 0x64, 0xfb, 0x26, 0xc2,
  687. 0xc9, 0x50, 0x0c, 0xe6, 0x75, 0xc8, 0x24, 0x5c, 0xd1, 0xc9, 0x27, 0x02,
  688. 0x59, 0x14, 0x39, 0x06, 0x43, 0x97, 0x05, 0x53, 0x7b, 0x53, 0x36, 0x92,
  689. 0x88, 0xe6, 0x6d, 0xf0, 0xf0, 0x51, 0xa9, 0x43, 0x22, 0xa5, 0xd3, 0xc9,
  690. 0x81, 0xe0, 0x38, 0xda, 0x92, 0x49, 0xf3, 0x19, 0x00, 0x7d, 0x50, 0x13,
  691. 0x2c, 0xfb, 0x60, 0x8f, 0x2a, 0x4f, 0xb0, 0xc5, 0xa4, 0xb7, 0xe7, 0xc6,
  692. 0x32, 0xfc, 0x7c, 0x61, 0x2c, 0x1a, 0x9b, 0x08, 0x9f, 0x73, 0x37, 0x2e,
  693. 0xc0, 0xb6, 0x92, 0xcc, 0x78, 0xfd, 0x41, 0x8e, 0xb8, 0x7a, 0xc5, 0x46,
  694. 0xe5, 0x71, 0x44, 0x72, 0x38, 0x45, 0xfc, 0xdc, 0x6f, 0xdf, 0x68, 0x41,
  695. 0x5c, 0x76, 0xf1, 0x1c, 0x87, 0x1c, 0x97, 0xd2, 0xf2, 0x50, 0x28, 0x07,
  696. 0x67, 0x1a, 0x9e, 0x16, 0x69, 0x77, 0xb2, 0xc0, 0x4f, 0x28, 0x2f, 0xc1,
  697. 0x5b, 0x58, 0xfa, 0x75, 0x18, 0xe5, 0x24, 0xf4, 0x86, 0x24, 0xf7, 0xb1,
  698. 0x62, 0x73, 0xaa, 0x4b, 0x8d, 0x58, 0x2e, 0xb3, 0xa2, 0xc4, 0x2c, 0xfb,
  699. 0x0d, 0x15, 0x42, 0xda, 0x35, 0xce, 0x27, 0x1c, 0xf6, 0x95, 0x84, 0x6a,
  700. 0x86, 0x6b, 0x44, 0x9f, 0x70, 0xd0, 0xe2, 0x45, 0x57, 0x82, 0xd4, 0xac,
  701. 0x2f, 0x5d, 0x64, 0xbe, 0x74, 0xe8, 0x26, 0x07, 0xa7, 0xb8, 0xcf, 0x73,
  702. 0x12, 0xa9, 0xf0, 0xbd, 0x3d, 0x64, 0x0a, 0xac, 0xf3, 0x67, 0x15, 0xf3,
  703. 0x1e, 0x1d, 0x48, 0xca, 0x6e, 0xfb, 0x83, 0xd8, 0xae, 0xe3, 0x81, 0xf8,
  704. 0x91, 0x54, 0x1c, 0xc7, 0xce, 0x4d, 0xd9, 0x09, 0x15, 0xb2, 0xb7, 0xc8,
  705. 0x18, 0x98, 0xc8, 0x08, 0xd5, 0xae, 0x54, 0x12, 0xe3, 0x66, 0xab, 0xec,
  706. 0x08, 0x85, 0xc3, 0x5b, 0xa2, 0x49, 0xe9, 0x90, 0x39, 0x09, 0xac, 0xc3,
  707. 0x74, 0xa4, 0xca, 0xe5, 0x54, 0x3a, 0x52, 0x21, 0x33, 0xdb, 0x54, 0x8d,
  708. 0x83, 0x1b, 0xc9, 0x4d, 0xc0, 0xcf, 0xa7, 0x93, 0xd9, 0x89, 0x89, 0xbd,
  709. 0xa9, 0x7b, 0x26, 0x65, 0x21, 0x91, 0x90, 0xd7, 0x32, 0xb2, 0x27, 0xd5,
  710. 0x11, 0x60, 0x71, 0x32, 0x73, 0xe3, 0xdf, 0x74, 0xf6, 0x01, 0xa6, 0x62,
  711. 0x96, 0x0c, 0x33, 0xce, 0x33, 0x95, 0x33, 0x33, 0x9d, 0xe3, 0xa8, 0x70,
  712. 0xfe, 0xbb, 0xc8, 0xc9, 0xa1, 0x73, 0xd1, 0xcc, 0x7c, 0x19, 0xfb, 0xfc,
  713. 0xc2, 0x99, 0x7a, 0xf3, 0xa6, 0x3a, 0xcb, 0xb0, 0x32, 0xf7, 0x58, 0xef,
  714. 0x59, 0x19, 0xba, 0x66, 0xc4, 0xdf, 0x19, 0x39, 0x66, 0x84, 0xd9, 0xb3,
  715. 0x4d, 0x33, 0x38, 0x9b, 0x57, 0x9e, 0x3d, 0xe0, 0xc1, 0x73, 0x38, 0x87,
  716. 0x3d, 0x39, 0x16, 0xc2, 0x2d, 0x4b, 0xd3, 0x65, 0xe4, 0x4c, 0x46, 0xd5,
  717. 0x0d, 0x9a, 0x2c, 0x98, 0x50, 0x2a, 0x9b, 0x88, 0x8d, 0x62, 0x0d, 0xa7,
  718. 0xce, 0x78, 0x69, 0x57, 0xe5, 0x9d, 0x4a, 0x9f, 0xe6, 0xaa, 0x54, 0x16,
  719. 0x95, 0xd2, 0xe7, 0x45, 0xce, 0xa2, 0x0e, 0x10, 0x9c, 0x31, 0x7d, 0x42,
  720. 0x5c, 0x64, 0xce, 0x3a, 0x8b, 0xbe, 0xcc, 0xac, 0xcf, 0x68, 0x2b, 0x9d,
  721. 0xc5, 0x36, 0x29, 0xf7, 0x26, 0x87, 0x24, 0x5b, 0xf7, 0x91, 0x75, 0x52,
  722. 0x1e, 0x89, 0xf8, 0x69, 0x8e, 0x71, 0xee, 0xc9, 0xb3, 0xcf, 0x28, 0xf1,
  723. 0xab, 0xae, 0xda, 0xd8, 0x74, 0x79, 0x39, 0x47, 0x0f, 0x9c, 0xfa, 0xcb,
  724. 0xd7, 0x94, 0xc3, 0x91, 0xca, 0x6b, 0xcb, 0x47, 0xd0, 0xe1, 0x50, 0x58,
  725. 0xee, 0x55, 0x75, 0xe3, 0x58, 0xe4, 0x50, 0xc4, 0xd1, 0x70, 0x20, 0x11,
  726. 0x84, 0x72, 0x2c, 0x90, 0xa8, 0xc3, 0x5d, 0x06, 0xf1, 0x66, 0x62, 0x3c,
  727. 0x51, 0xbe, 0x66, 0x5f, 0x20, 0x9c, 0x08, 0xd6, 0x96, 0x8f, 0x87, 0x22,
  728. 0x75, 0x81, 0x58, 0xa8, 0x7c, 0xcd, 0xb2, 0x55, 0xb5, 0xe5, 0xa8, 0x3a,
  729. 0x81, 0xb2, 0x28, 0xb6, 0xbc, 0x7e, 0x79, 0x7d, 0xa3, 0xaf, 0x6e, 0x34,
  730. 0x38, 0x59, 0x13, 0x88, 0x26, 0x62, 0x2b, 0xcb, 0xaf, 0x24, 0xa3, 0x51,
  731. 0xfc, 0xd2, 0x58, 0xe0, 0x2c, 0xb6, 0x16, 0x2f, 0x2f, 0xb6, 0x17, 0x8f,
  732. 0x14, 0xaf, 0x29, 0xde, 0x85, 0xdf, 0x2c, 0xa3, 0x01, 0xe2, 0x92, 0x7a,
  733. 0xc3, 0x67, 0x3c, 0x20, 0xac, 0xa5, 0xb7, 0x19, 0xc5, 0xd9, 0xd3, 0x6c,
  734. 0xae, 0x2a, 0x63, 0x47, 0x99, 0x8b, 0x8b, 0x0b, 0x50, 0xa6, 0xa3, 0xd8,
  735. 0xa9, 0xb4, 0x1e, 0x68, 0x4b, 0x55, 0xd1, 0x5a, 0x25, 0x31, 0x20, 0xd9,
  736. 0x3f, 0xad, 0x9c, 0x6f, 0x2c, 0xe3, 0xa2, 0xa2, 0xa4, 0x66, 0xba, 0x8e,
  737. 0x54, 0x9b, 0x2e, 0x95, 0x2d, 0x0b, 0xd9, 0xf6, 0xa5, 0xb4, 0x36, 0x93,
  738. 0x56, 0x96, 0xb4, 0x95, 0xd4, 0x96, 0x54, 0x97, 0xd4, 0x95, 0x54, 0x95,
  739. 0x54, 0x92, 0xd5, 0x6e, 0xcf, 0x36, 0x84, 0x87, 0x7f, 0x57, 0x5d, 0x3d,
  740. 0x65, 0x9d, 0xaa, 0xb6, 0xb8, 0x6e, 0xae, 0xb2, 0xb9, 0x8e, 0xd7, 0x09,
  741. 0xd7, 0xeb, 0xc0, 0xed, 0xf5, 0xc2, 0x75, 0xa2, 0x7e, 0xb5, 0x78, 0xa4,
  742. 0x5a, 0x88, 0x27, 0xab, 0x0d, 0x71, 0x1a, 0x74, 0xaa, 0x46, 0x88, 0x7b,
  743. 0x80, 0x27, 0x6b, 0xc8, 0x2a, 0x8c, 0x7c, 0x43, 0xc8, 0xdf, 0x0d, 0x53,
  744. 0x53, 0xd6, 0xa3, 0xbe, 0x76, 0x71, 0xdc, 0x67, 0x88, 0xa9, 0x06, 0x32,
  745. 0x84, 0xb5, 0xf0, 0x16, 0xaf, 0xf0, 0x6c, 0x42, 0xa5, 0xa7, 0x97, 0x6f,
  746. 0x16, 0x47, 0x97, 0x09, 0x71, 0x6a, 0xb9, 0x10, 0x47, 0x1b, 0x85, 0x78,
  747. 0xb3, 0x11, 0x6a, 0x31, 0xc7, 0x10, 0xb7, 0x78, 0x7b, 0x51, 0x6a, 0x6a,
  748. 0x45, 0x9f, 0xb8, 0x6f, 0x05, 0x59, 0xec, 0x54, 0xcc, 0x25, 0x84, 0x67,
  749. 0x0b, 0xca, 0xbc, 0xb1, 0x52, 0x1c, 0xf5, 0x1e, 0x5f, 0x85, 0xc7, 0x93,
  750. 0xfc, 0x38, 0xbd, 0x52, 0x18, 0x2f, 0xae, 0x12, 0xc6, 0xd4, 0x6a, 0x12,
  751. 0x22, 0xbb, 0xd4, 0xe3, 0x47, 0x96, 0xe3, 0xcd, 0xdb, 0xc5, 0x33, 0xab,
  752. 0x85, 0x38, 0x03, 0x1c, 0x6d, 0x12, 0xe2, 0x38, 0xf0, 0x0c, 0x70, 0xb4,
  753. 0x19, 0x32, 0xd0, 0x53, 0xa0, 0xc7, 0xa1, 0x3b, 0x0d, 0xfa, 0x66, 0x33,
  754. 0x39, 0x1a, 0x17, 0xcf, 0xf7, 0xc8, 0xbe, 0x7a, 0xd4, 0xef, 0x1e, 0xd4,
  755. 0x71, 0x37, 0x7a, 0xe6, 0x3d, 0xd3, 0x82, 0xc7, 0xdd, 0x1d, 0x78, 0x3c,
  756. 0xdf, 0x83, 0xc7, 0x75, 0x52, 0x26, 0xb9, 0xb5, 0x78, 0x3c, 0xba, 0x09,
  757. 0x8f, 0x67, 0xf9, 0x71, 0x0f, 0x27, 0xbf, 0xc0, 0xf9, 0xa6, 0x7a, 0x39,
  758. 0x0b, 0xcb, 0x8e, 0x31, 0xf7, 0x43, 0x96, 0xbd, 0xc6, 0x8f, 0x9b, 0x3b,
  759. 0xb9, 0xdb, 0x9d, 0xf6, 0x6b, 0x0c, 0x12, 0x80, 0xc5, 0x38, 0xb3, 0x91,
  760. 0xa9, 0xc1, 0x70, 0x9d, 0xea, 0x74, 0x68, 0xf9, 0xbf, 0x82, 0x39, 0x80,
  761. 0xeb, 0x26, 0xf0, 0xef, 0x16, 0xc8, 0x1f, 0x17, 0x8f, 0xf6, 0x0a, 0xf1,
  762. 0x53, 0xe0, 0x0d, 0xe0, 0xe4, 0x5a, 0x21, 0x1e, 0xe9, 0xb3, 0x88, 0x63,
  763. 0x6b, 0xec, 0x74, 0xb2, 0x65, 0x8e, 0x78, 0xa5, 0x4f, 0x88, 0xe7, 0x21,
  764. 0x3b, 0x03, 0xdc, 0xb3, 0x45, 0x88, 0x13, 0xc0, 0x33, 0xc0, 0xeb, 0xc0,
  765. 0x3d, 0x5b, 0x91, 0x06, 0x9e, 0x01, 0x1e, 0x5d, 0x83, 0x3a, 0x40, 0x6f,
  766. 0xee, 0x07, 0xd6, 0xc1, 0x90, 0xc0, 0x0f, 0xd7, 0x0b, 0xf1, 0xca, 0x05,
  767. 0xc2, 0x7a, 0xb2, 0x5f, 0x58, 0x9f, 0x87, 0xfc, 0xee, 0x56, 0x9b, 0x98,
  768. 0xda, 0x86, 0xb2, 0xdb, 0x0c, 0x71, 0x74, 0xc0, 0x10, 0x8f, 0x0c, 0xc8,
  769. 0xcf, 0x87, 0xf9, 0x73, 0xc9, 0x1f, 0x6d, 0x52, 0x9f, 0x53, 0xfe, 0x01,
  770. 0xf4, 0x75, 0x13, 0xff, 0xd6, 0x26, 0xa5, 0x77, 0x6d, 0x9e, 0x96, 0x2d,
  771. 0xd4, 0x7c, 0x25, 0x68, 0xc3, 0x66, 0xf5, 0x59, 0x28, 0xcb, 0xd7, 0x80,
  772. 0xef, 0xd8, 0xac, 0xf2, 0x6f, 0x31, 0xe5, 0x0f, 0x68, 0x59, 0x58, 0xd3,
  773. 0xf7, 0x80, 0xbe, 0xd6, 0x4d, 0xe9, 0xb6, 0x49, 0x7f, 0x46, 0x7b, 0x06,
  774. 0xb2, 0x37, 0xb5, 0x3c, 0xf5, 0xe3, 0xee, 0xc9, 0xcc, 0xc7, 0xff, 0x0e,
  775. 0xe7, 0x84, 0x6c, 0x41, 0x4f, 0x66, 0xbe, 0xca, 0xb3, 0xd2, 0xad, 0x67,
  776. 0x95, 0xe3, 0xef, 0x32, 0x69, 0x82, 0xcc, 0x7f, 0x96, 0x9c, 0xff, 0x07,
  777. 0xb6, 0xb7, 0x67, 0xfa, 0xbb, 0x40, 0x84, 0x89, 0xa6, 0xbe, 0xc7, 0x8b,
  778. 0xc7, 0x91, 0xfa, 0x2e, 0x2f, 0x1e, 0x6b, 0xea, 0xfb, 0xbc, 0xf8, 0x73,
  779. 0xdb, 0xd4, 0x77, 0x7a, 0xf1, 0x67, 0xba, 0xa9, 0xef, 0xf5, 0xe2, 0xcf,
  780. 0xb3, 0x53, 0xdf, 0xed, 0x25, 0xbc, 0xea, 0x7b, 0x55, 0xf8, 0xfb, 0xbd,
  781. 0x2c, 0x5e, 0xf5, 0x39, 0x32, 0xff, 0x0f, 0x9f, 0x70, 0xab, 0xef, 0x72,
  782. 0xe1, 0xff, 0x55, 0x34, 0xbc, 0xaa, 0x2d, 0xfe, 0xfe, 0x2f, 0xab, 0x57,
  783. 0xfd, 0xcd, 0x0d, 0xcf, 0x07, 0x79, 0x55, 0x3d, 0xfc, 0x3f, 0x8c, 0x16,
  784. 0xb7, 0xfa, 0x1b, 0x83, 0x57, 0x60, 0x1f, 0xbb, 0x96, 0xf3, 0xff, 0x37,
  785. 0x72, 0xc7, 0xb9, 0xaf, 0xfc, 0xbd, 0x63, 0xff, 0x17, 0xdd, 0xf9, 0x1e,
  786. 0x82, 0xb0, 0x4c, 0x00, 0x00
  787. };
  788. //==============================================================================
  789. #if JUCE_PUSH_NOTIFICATIONS && JUCE_MODULE_AVAILABLE_juce_gui_extra
  790. bool juce_handleNotificationIntent (void*);
  791. void juce_firebaseDeviceNotificationsTokenRefreshed (void*);
  792. void juce_firebaseRemoteNotificationReceived (void*);
  793. void juce_firebaseRemoteMessagesDeleted();
  794. void juce_firebaseRemoteMessageSent(void*);
  795. void juce_firebaseRemoteMessageSendError (void*, void*);
  796. #endif
  797. #if JUCE_IN_APP_PURCHASES && JUCE_MODULE_AVAILABLE_juce_product_unlocking
  798. void juce_handleOnResume();
  799. #else
  800. static void juce_handleOnResume() {}
  801. #endif
  802. //==============================================================================
  803. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  804. METHOD (create, "<init>", "(II)V")
  805. DECLARE_JNI_CLASS (AndroidLayoutParams, "android/view/ViewGroup$LayoutParams")
  806. #undef JNI_CLASS_MEMBERS
  807. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  808. METHOD (addView, "addView", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V") \
  809. METHOD (removeView, "removeView", "(Landroid/view/View;)V") \
  810. METHOD (updateViewLayout, "updateViewLayout", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V")
  811. DECLARE_JNI_CLASS (AndroidViewManager, "android/view/ViewManager")
  812. #undef JNI_CLASS_MEMBERS
  813. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  814. METHOD (create, "<init>", "(IIIIIII)V") \
  815. FIELD (gravity, "gravity", "I") \
  816. FIELD (windowAnimations, "windowAnimations", "I")
  817. DECLARE_JNI_CLASS (AndroidWindowManagerLayoutParams, "android/view/WindowManager$LayoutParams")
  818. #undef JNI_CLASS_MEMBERS
  819. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  820. FIELD (layoutInDisplayCutoutMode, "layoutInDisplayCutoutMode", "I")
  821. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowManagerLayoutParams28, "android/view/WindowManager$LayoutParams", 28)
  822. #undef JNI_CLASS_MEMBERS
  823. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  824. METHOD (getDisplayCutout, "getDisplayCutout", "()Landroid/view/DisplayCutout;") \
  825. METHOD (consumeDisplayCutout, "consumeDisplayCutout", "()Landroid/view/WindowInsets;")
  826. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsets28, "android/view/WindowInsets", 28)
  827. #undef JNI_CLASS_MEMBERS
  828. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  829. METHOD (getInsets, "getInsets", "(I)Landroid/graphics/Insets;") \
  830. STATICFIELD (CONSUMED, "CONSUMED", "Landroid/view/WindowInsets;")
  831. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsets30, "android/view/WindowInsets", 30)
  832. #undef JNI_CLASS_MEMBERS
  833. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  834. METHOD (getSafeInsetBottom, "getSafeInsetBottom", "()I") \
  835. METHOD (getSafeInsetLeft, "getSafeInsetLeft", "()I") \
  836. METHOD (getSafeInsetRight, "getSafeInsetRight", "()I") \
  837. METHOD (getSafeInsetTop, "getSafeInsetTop", "()I")
  838. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidDisplayCutout, "android/view/DisplayCutout", 28)
  839. #undef JNI_CLASS_MEMBERS
  840. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  841. FIELD (bottom, "bottom", "I") \
  842. FIELD (left, "left", "I") \
  843. FIELD (right, "right", "I") \
  844. FIELD (top, "top", "I")
  845. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidGraphicsInsets, "android/graphics/Insets", 29)
  846. #undef JNI_CLASS_MEMBERS
  847. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  848. STATICMETHOD (ime, "ime", "()I") \
  849. STATICMETHOD (displayCutout, "displayCutout", "()I")
  850. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsetsType, "android/view/WindowInsets$Type", 30)
  851. #undef JNI_CLASS_MEMBERS
  852. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  853. FIELD (first, "first", "Ljava/lang/Object;") \
  854. FIELD (second, "second", "Ljava/lang/Object;") \
  855. DECLARE_JNI_CLASS (AndroidPair, "android/util/Pair")
  856. #undef JNI_CLASS_MEMBERS
  857. //==============================================================================
  858. namespace
  859. {
  860. enum
  861. {
  862. SYSTEM_UI_FLAG_VISIBLE = 0,
  863. SYSTEM_UI_FLAG_LOW_PROFILE = 1,
  864. SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2,
  865. SYSTEM_UI_FLAG_FULLSCREEN = 4,
  866. SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512,
  867. SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024,
  868. SYSTEM_UI_FLAG_IMMERSIVE = 2048,
  869. SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096
  870. };
  871. constexpr int fullScreenFlags = SYSTEM_UI_FLAG_HIDE_NAVIGATION | SYSTEM_UI_FLAG_FULLSCREEN | SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
  872. constexpr int FLAG_NOT_FOCUSABLE = 0x8;
  873. }
  874. //==============================================================================
  875. static bool supportsDisplayCutout()
  876. {
  877. return getAndroidSDKVersion() >= 28;
  878. }
  879. static BorderSize<int> androidDisplayCutoutToBorderSize (LocalRef<jobject> displayCutout, double displayScale)
  880. {
  881. if (displayCutout == nullptr)
  882. return {};
  883. auto* env = getEnv();
  884. const auto getInset = [&] (jmethodID methodID)
  885. {
  886. return roundToInt (env->CallIntMethod (displayCutout, methodID) / displayScale);
  887. };
  888. return { getInset (AndroidDisplayCutout.getSafeInsetTop),
  889. getInset (AndroidDisplayCutout.getSafeInsetLeft),
  890. getInset (AndroidDisplayCutout.getSafeInsetBottom),
  891. getInset (AndroidDisplayCutout.getSafeInsetRight) };
  892. }
  893. static BorderSize<int> androidInsetsToBorderSize (LocalRef<jobject> insets, double displayScale)
  894. {
  895. if (insets == nullptr)
  896. return {};
  897. auto* env = getEnv();
  898. const auto getInset = [&] (jfieldID fieldID)
  899. {
  900. return roundToInt (env->GetIntField (insets, fieldID) / displayScale);
  901. };
  902. return { getInset (AndroidGraphicsInsets.top),
  903. getInset (AndroidGraphicsInsets.left),
  904. getInset (AndroidGraphicsInsets.bottom),
  905. getInset (AndroidGraphicsInsets.right) };
  906. }
  907. class JuceInsets
  908. {
  909. template <typename Display>
  910. static auto tieDisplay (Display& d) { return std::tie (d.safeAreaInsets, d.keyboardInsets); }
  911. public:
  912. BorderSize<int> displayCutout, keyboard;
  913. static auto tie ( Displays::Display& d) { return tieDisplay (d); }
  914. static auto tie (const Displays::Display& d) { return tieDisplay (d); }
  915. auto tie() const { return std::tie (displayCutout, keyboard); }
  916. };
  917. static JuceInsets getInsetsFromAndroidWindowInsets (LocalRef<jobject> windowInsets, double scale)
  918. {
  919. auto* env = getEnv();
  920. if (windowInsets == nullptr)
  921. return {};
  922. const auto displayCutout = [&]() -> BorderSize<int>
  923. {
  924. if (AndroidWindowInsets28.getDisplayCutout == nullptr)
  925. return {};
  926. const LocalRef<jobject> insets { env->CallObjectMethod (windowInsets, AndroidWindowInsets28.getDisplayCutout) };
  927. return androidDisplayCutoutToBorderSize (insets, scale);
  928. }();
  929. const auto keyboard = [&]() -> BorderSize<int>
  930. {
  931. if (AndroidWindowInsetsType.ime == nullptr || AndroidWindowInsets30.getInsets == nullptr)
  932. return {};
  933. const auto mask = env->CallStaticIntMethod (AndroidWindowInsetsType, AndroidWindowInsetsType.ime);
  934. const LocalRef<jobject> insets { env->CallObjectMethod (windowInsets, AndroidWindowInsets30.getInsets, mask) };
  935. return androidInsetsToBorderSize (insets, scale);
  936. }();
  937. return { displayCutout, keyboard };
  938. }
  939. /* The usage of the KeyPress class relies on its keyCode member having the standard ASCII values
  940. represent ASCII keycodes. However in the native Android keycodes the values for special keys
  941. e.g. RETURN, F1-F12 overlap with the ASCII range. Hence we need to translate them.
  942. */
  943. static constexpr int translateAndroidKeyCode (int keyCode) noexcept
  944. {
  945. switch (keyCode)
  946. {
  947. case 7: return '0';
  948. case 8: return '1';
  949. case 9: return '2';
  950. case 10: return '3';
  951. case 11: return '4';
  952. case 12: return '5';
  953. case 13: return '6';
  954. case 14: return '7';
  955. case 15: return '8';
  956. case 16: return '9';
  957. case 17: return '*';
  958. case 18: return '#';
  959. case 19: return KeyPress::upKey; // KEYCODE_DPAD_UP
  960. case 20: return KeyPress::downKey; // KEYCODE_DPAD_DOWN
  961. case 21: return KeyPress::leftKey; // KEYCODE_DPAD_LEFT
  962. case 22: return KeyPress::rightKey; // KEYCODE_DPAD_RIGHT
  963. case 29: return 'A';
  964. case 30: return 'B';
  965. case 31: return 'C';
  966. case 32: return 'D';
  967. case 33: return 'E';
  968. case 34: return 'F';
  969. case 35: return 'G';
  970. case 36: return 'H';
  971. case 37: return 'I';
  972. case 38: return 'J';
  973. case 39: return 'K';
  974. case 40: return 'L';
  975. case 41: return 'M';
  976. case 42: return 'N';
  977. case 43: return 'O';
  978. case 44: return 'P';
  979. case 45: return 'Q';
  980. case 46: return 'R';
  981. case 47: return 'S';
  982. case 48: return 'T';
  983. case 49: return 'U';
  984. case 50: return 'V';
  985. case 51: return 'W';
  986. case 52: return 'X';
  987. case 53: return 'Y';
  988. case 54: return 'Z';
  989. case 55: return ',';
  990. case 56: return '.';
  991. case 61: return KeyPress::tabKey; // KEYCODE_TAB
  992. case 62: return KeyPress::spaceKey; // KEYCODE_SPACE
  993. case 66: return KeyPress::returnKey; // KEYCODE_ENTER
  994. case 67: return KeyPress::backspaceKey; // KEYCODE_DEL
  995. case 68: return '`';
  996. case 69: return '-';
  997. case 70: return '=';
  998. case 71: return '[';
  999. case 72: return ']';
  1000. case 73: return '\\';
  1001. case 74: return ';';
  1002. case 75: return '\'';
  1003. case 76: return '/';
  1004. case 77: return '@';
  1005. case 81: return '+';
  1006. case 85: return KeyPress::playKey; // KEYCODE_MEDIA_PLAY_PAUSE
  1007. case 86: return KeyPress::stopKey; // KEYCODE_MEDIA_STOP
  1008. case 87: return KeyPress::fastForwardKey; // KEYCODE_MEDIA_NEXT
  1009. case 88: return KeyPress::rewindKey; // KEYCODE_MEDIA_PREVIOUS
  1010. case 92: return KeyPress::pageUpKey; // KEYCODE_PAGE_UP
  1011. case 93: return KeyPress::pageDownKey; // KEYCODE_PAGE_DOWN
  1012. case 111: return KeyPress::escapeKey; // KEYCODE_ESCAPE
  1013. case 112: return KeyPress::deleteKey; // KEYCODE_FORWARD_DEL
  1014. case 122: return KeyPress::homeKey; // KEYCODE_MOVE_HOME
  1015. case 123: return KeyPress::endKey; // KEYCODE_MOVE_END
  1016. case 124: return KeyPress::insertKey; // KEYCODE_INSERT
  1017. case 131: return KeyPress::F1Key; // KEYCODE_F1
  1018. case 132: return KeyPress::F2Key; // KEYCODE_F2
  1019. case 133: return KeyPress::F3Key; // KEYCODE_F3
  1020. case 134: return KeyPress::F4Key; // KEYCODE_F4
  1021. case 135: return KeyPress::F5Key; // KEYCODE_F5
  1022. case 136: return KeyPress::F6Key; // KEYCODE_F6
  1023. case 137: return KeyPress::F7Key; // KEYCODE_F7
  1024. case 138: return KeyPress::F8Key; // KEYCODE_F8
  1025. case 139: return KeyPress::F9Key; // KEYCODE_F9
  1026. case 140: return KeyPress::F10Key; // KEYCODE_F10
  1027. case 141: return KeyPress::F11Key; // KEYCODE_F11
  1028. case 142: return KeyPress::F12Key; // KEYCODE_F12
  1029. case 144: return '0';
  1030. case 145: return '1';
  1031. case 146: return '2';
  1032. case 147: return '3';
  1033. case 148: return '4';
  1034. case 149: return '5';
  1035. case 150: return '6';
  1036. case 151: return '7';
  1037. case 152: return '8';
  1038. case 153: return '9';
  1039. case 154: return '/';
  1040. case 155: return '*';
  1041. case 156: return '-';
  1042. case 157: return '+';
  1043. case 158: return '.';
  1044. case 159: return ',';
  1045. case 161: return '=';
  1046. case 162: return '(';
  1047. case 163: return ')';
  1048. default: return 0;
  1049. }
  1050. }
  1051. static constexpr int translateAndroidKeyboardFlags (int javaFlags) noexcept
  1052. {
  1053. constexpr int metaShiftOn = 0x1;
  1054. constexpr int metaAltOn = 0x02;
  1055. constexpr int metaCtrlOn = 0x1000;
  1056. int flags = 0;
  1057. if ((javaFlags & metaShiftOn) != 0) flags |= ModifierKeys::shiftModifier;
  1058. if ((javaFlags & metaAltOn) != 0) flags |= ModifierKeys::altModifier;
  1059. if ((javaFlags & metaCtrlOn) != 0) flags |= ModifierKeys::ctrlModifier;
  1060. return flags;
  1061. }
  1062. //==============================================================================
  1063. class AndroidComponentPeer : public ComponentPeer,
  1064. private Timer
  1065. {
  1066. public:
  1067. AndroidComponentPeer (Component& comp, int windowStyleFlags, void* nativeViewHandle)
  1068. : ComponentPeer (comp, windowStyleFlags)
  1069. {
  1070. auto* env = getEnv();
  1071. // NB: must not put this in the initialiser list, as it invokes a callback,
  1072. // which will fail if the peer is only half-constructed.
  1073. view = GlobalRef (LocalRef<jobject> (env->NewObject (ComponentPeerView, ComponentPeerView.create,
  1074. getAppContext().get(), (jboolean) component.isOpaque(),
  1075. (jlong) this)));
  1076. if (nativeViewHandle != nullptr)
  1077. {
  1078. viewGroupIsWindow = false;
  1079. // we don't know if the user is holding on to a local ref to this, so
  1080. // explicitly create a new one
  1081. auto nativeView = LocalRef<jobject> (env->NewLocalRef (static_cast<jobject> (nativeViewHandle)));
  1082. if (env->IsInstanceOf (nativeView.get(), AndroidActivity))
  1083. {
  1084. viewGroup = GlobalRef (nativeView);
  1085. env->CallVoidMethod (viewGroup.get(), AndroidActivity.setContentView, view.get());
  1086. }
  1087. else if (env->IsInstanceOf (nativeView.get(), AndroidViewGroup))
  1088. {
  1089. viewGroup = GlobalRef (nativeView);
  1090. LocalRef<jobject> layoutParams (env->NewObject (AndroidLayoutParams, AndroidLayoutParams.create, -2, -2));
  1091. env->CallVoidMethod (view.get(), AndroidView.setLayoutParams, layoutParams.get());
  1092. env->CallVoidMethod ((jobject) viewGroup.get(), AndroidViewGroup.addView, view.get());
  1093. }
  1094. else
  1095. {
  1096. // the native handle you passed as a second argument to Component::addToDesktop must
  1097. // either be an Activity or a ViewGroup
  1098. jassertfalse;
  1099. }
  1100. }
  1101. else
  1102. {
  1103. viewGroupIsWindow = true;
  1104. LocalRef<jobject> viewLayoutParams (env->NewObject (AndroidLayoutParams, AndroidLayoutParams.create, -2, -2));
  1105. env->CallVoidMethod (view.get(), AndroidView.setLayoutParams, viewLayoutParams.get());
  1106. auto physicalBounds = (comp.getBoundsInParent().toFloat() * scale).toNearestInt();
  1107. view.callVoidMethod (AndroidView.layout,
  1108. physicalBounds.getX(), physicalBounds.getY(), physicalBounds.getRight(), physicalBounds.getBottom());
  1109. LocalRef<jobject> windowLayoutParams (env->NewObject (AndroidWindowManagerLayoutParams, AndroidWindowManagerLayoutParams.create,
  1110. physicalBounds.getWidth(), physicalBounds.getHeight(),
  1111. physicalBounds.getX(), physicalBounds.getY(),
  1112. TYPE_APPLICATION, FLAG_NOT_TOUCH_MODAL | FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_NO_LIMITS | FLAG_NOT_FOCUSABLE,
  1113. component.isOpaque() ? PIXEL_FORMAT_OPAQUE : PIXEL_FORMAT_TRANSPARENT));
  1114. env->SetIntField (windowLayoutParams.get(), AndroidWindowManagerLayoutParams.gravity, GRAVITY_LEFT | GRAVITY_TOP);
  1115. env->SetIntField (windowLayoutParams.get(), AndroidWindowManagerLayoutParams.windowAnimations, 0x01030000 /* android.R.style.Animation */);
  1116. if (supportsDisplayCutout())
  1117. {
  1118. if (const auto fieldID = AndroidWindowManagerLayoutParams28.layoutInDisplayCutoutMode)
  1119. env->SetIntField (windowLayoutParams, fieldID, LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS);
  1120. }
  1121. if (Desktop::getInstance().getKioskModeComponent() != nullptr)
  1122. setNavBarsHidden (true);
  1123. LocalRef<jobject> activity (getCurrentActivity());
  1124. if (activity == nullptr)
  1125. activity = getMainActivity();
  1126. viewGroup = GlobalRef (LocalRef<jobject> (env->CallObjectMethod (activity.get(), AndroidContext.getSystemService, javaString ("window").get())));
  1127. env->CallVoidMethod (viewGroup.get(), AndroidViewManager.addView, view.get(), windowLayoutParams.get());
  1128. }
  1129. if (supportsDisplayCutout())
  1130. {
  1131. if (const auto methodID = AndroidView23.setOnApplyWindowInsetsListener)
  1132. {
  1133. env->CallVoidMethod (view,
  1134. methodID,
  1135. CreateJavaInterface (new ViewWindowInsetsListener,
  1136. "android/view/View$OnApplyWindowInsetsListener").get());
  1137. }
  1138. }
  1139. if (isFocused())
  1140. handleFocusGain();
  1141. }
  1142. ~AndroidComponentPeer() override
  1143. {
  1144. stopTimer();
  1145. auto* env = getEnv();
  1146. env->CallVoidMethod (view, ComponentPeerView.clear);
  1147. frontWindow = nullptr;
  1148. GlobalRef localView (view);
  1149. GlobalRef localViewGroup (viewGroup);
  1150. callOnMessageThread ([env, localView, localViewGroup]
  1151. {
  1152. if (env->IsInstanceOf (localViewGroup.get(), AndroidActivity))
  1153. env->CallVoidMethod (localViewGroup.get(), AndroidActivity.setContentView, nullptr);
  1154. else
  1155. env->CallVoidMethod (localViewGroup.get(), AndroidViewManager.removeView, localView.get());
  1156. });
  1157. }
  1158. void* getNativeHandle() const override
  1159. {
  1160. return (void*) view.get();
  1161. }
  1162. void setVisible (bool shouldBeVisible) override
  1163. {
  1164. GlobalRef localView (view);
  1165. callOnMessageThread ([localView, shouldBeVisible]
  1166. {
  1167. localView.callVoidMethod (ComponentPeerView.setVisible, shouldBeVisible);
  1168. });
  1169. }
  1170. void setTitle (const String& title) override
  1171. {
  1172. view.callVoidMethod (ComponentPeerView.setViewName, javaString (title).get());
  1173. }
  1174. void setBounds (const Rectangle<int>& userRect, bool isNowFullScreen) override
  1175. {
  1176. auto bounds = (userRect.toFloat() * scale).toNearestInt();
  1177. if (MessageManager::getInstance()->isThisTheMessageThread())
  1178. {
  1179. fullScreen = isNowFullScreen;
  1180. view.callVoidMethod (AndroidView.layout,
  1181. bounds.getX(), bounds.getY(), bounds.getRight(), bounds.getBottom());
  1182. if (viewGroup != nullptr && viewGroupIsWindow)
  1183. {
  1184. auto* env = getEnv();
  1185. LocalRef<jobject> windowLayoutParams (env->NewObject (AndroidWindowManagerLayoutParams, AndroidWindowManagerLayoutParams.create,
  1186. bounds.getWidth(), bounds.getHeight(), bounds.getX(), bounds.getY(),
  1187. TYPE_APPLICATION, FLAG_NOT_TOUCH_MODAL | FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_NO_LIMITS,
  1188. component.isOpaque() ? PIXEL_FORMAT_OPAQUE : PIXEL_FORMAT_TRANSPARENT));
  1189. env->SetIntField (windowLayoutParams.get(), AndroidWindowManagerLayoutParams.gravity, GRAVITY_LEFT | GRAVITY_TOP);
  1190. env->CallVoidMethod (viewGroup.get(), AndroidViewManager.updateViewLayout, view.get(), windowLayoutParams.get());
  1191. }
  1192. }
  1193. else
  1194. {
  1195. GlobalRef localView (view);
  1196. MessageManager::callAsync ([localView, bounds]
  1197. {
  1198. localView.callVoidMethod (AndroidView.layout,
  1199. bounds.getX(), bounds.getY(), bounds.getRight(), bounds.getBottom());
  1200. });
  1201. }
  1202. }
  1203. Rectangle<int> getBounds() const override
  1204. {
  1205. Rectangle<int> bounds (view.callIntMethod (AndroidView.getLeft),
  1206. view.callIntMethod (AndroidView.getTop),
  1207. view.callIntMethod (AndroidView.getWidth),
  1208. view.callIntMethod (AndroidView.getHeight));
  1209. return (bounds.toFloat() / scale).toNearestInt();
  1210. }
  1211. void handleScreenSizeChange() override
  1212. {
  1213. ComponentPeer::handleScreenSizeChange();
  1214. if (isFullScreen())
  1215. setFullScreen (true);
  1216. }
  1217. Point<int> getScreenPosition() const
  1218. {
  1219. auto* env = getEnv();
  1220. LocalRef<jintArray> position (env->NewIntArray (2));
  1221. env->CallVoidMethod (view.get(), AndroidView.getLocationOnScreen, position.get());
  1222. jint* const screenPosition = env->GetIntArrayElements (position.get(), nullptr);
  1223. Point<int> pos (screenPosition[0], screenPosition[1]);
  1224. env->ReleaseIntArrayElements (position.get(), screenPosition, 0);
  1225. return pos;
  1226. }
  1227. Point<float> localToGlobal (Point<float> relativePosition) override
  1228. {
  1229. return relativePosition + (getScreenPosition().toFloat() / scale);
  1230. }
  1231. using ComponentPeer::localToGlobal;
  1232. Point<float> globalToLocal (Point<float> screenPosition) override
  1233. {
  1234. return screenPosition - (getScreenPosition().toFloat() / scale);
  1235. }
  1236. using ComponentPeer::globalToLocal;
  1237. void setMinimised (bool /*shouldBeMinimised*/) override
  1238. {
  1239. // n/a
  1240. }
  1241. bool isMinimised() const override
  1242. {
  1243. return false;
  1244. }
  1245. void setFullScreen (bool shouldBeFullScreen) override
  1246. {
  1247. if (shouldNavBarsBeHidden (shouldBeFullScreen))
  1248. {
  1249. if (isTimerRunning())
  1250. return;
  1251. startTimer (500);
  1252. }
  1253. else
  1254. {
  1255. setNavBarsHidden (false);
  1256. }
  1257. auto newBounds = [&]
  1258. {
  1259. if (navBarsHidden || shouldBeFullScreen)
  1260. if (auto* display = Desktop::getInstance().getDisplays().getPrimaryDisplay())
  1261. return navBarsHidden ? display->totalArea
  1262. : display->userArea;
  1263. return lastNonFullscreenBounds.isEmpty() ? getBounds() : lastNonFullscreenBounds;
  1264. }();
  1265. if (! newBounds.isEmpty())
  1266. setBounds (newBounds, shouldBeFullScreen);
  1267. component.repaint();
  1268. }
  1269. bool isFullScreen() const override
  1270. {
  1271. return fullScreen;
  1272. }
  1273. void setIcon (const Image& /*newIcon*/) override
  1274. {
  1275. // n/a
  1276. }
  1277. bool contains (Point<int> localPos, bool trueIfInAChildWindow) const override
  1278. {
  1279. return isPositiveAndBelow (localPos.x, component.getWidth())
  1280. && isPositiveAndBelow (localPos.y, component.getHeight())
  1281. && ((! trueIfInAChildWindow) || view.callBooleanMethod (ComponentPeerView.containsPoint,
  1282. (float) localPos.x * scale,
  1283. (float) localPos.y * scale));
  1284. }
  1285. OptionalBorderSize getFrameSizeIfPresent() const override
  1286. {
  1287. // TODO
  1288. return {};
  1289. }
  1290. BorderSize<int> getFrameSize() const override
  1291. {
  1292. // TODO
  1293. return {};
  1294. }
  1295. bool setAlwaysOnTop (bool /*alwaysOnTop*/) override
  1296. {
  1297. // TODO
  1298. return false;
  1299. }
  1300. void toFront (bool makeActive) override
  1301. {
  1302. // Avoid calling bringToFront excessively: it's very slow
  1303. if (frontWindow != this)
  1304. {
  1305. view.callVoidMethod (AndroidView.bringToFront);
  1306. frontWindow = this;
  1307. }
  1308. if (makeActive)
  1309. grabFocus();
  1310. handleBroughtToFront();
  1311. }
  1312. void toBehind (ComponentPeer*) override
  1313. {
  1314. // TODO
  1315. }
  1316. //==============================================================================
  1317. void handleMouseDownCallback (int index, Point<float> sysPos, int64 time)
  1318. {
  1319. lastMousePos = sysPos / scale;
  1320. auto pos = globalToLocal (lastMousePos);
  1321. // this forces a mouse-enter/up event, in case for some reason we didn't get a mouse-up before.
  1322. handleMouseEvent (MouseInputSource::InputSourceType::touch,
  1323. pos,
  1324. ModifierKeys::currentModifiers.withoutMouseButtons(),
  1325. MouseInputSource::defaultPressure,
  1326. MouseInputSource::defaultOrientation,
  1327. time,
  1328. {},
  1329. index);
  1330. if (isValidPeer (this))
  1331. handleMouseDragCallback (index, sysPos, time);
  1332. }
  1333. void handleMouseDragCallback (int index, Point<float> sysPos, int64 time)
  1334. {
  1335. lastMousePos = sysPos / scale;
  1336. auto pos = globalToLocal (lastMousePos);
  1337. jassert (index < 64);
  1338. touchesDown = (touchesDown | (1 << (index & 63)));
  1339. ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withoutMouseButtons().withFlags (ModifierKeys::leftButtonModifier);
  1340. handleMouseEvent (MouseInputSource::InputSourceType::touch,
  1341. pos,
  1342. ModifierKeys::currentModifiers.withoutMouseButtons().withFlags (ModifierKeys::leftButtonModifier),
  1343. MouseInputSource::defaultPressure,
  1344. MouseInputSource::defaultOrientation,
  1345. time,
  1346. {},
  1347. index);
  1348. }
  1349. void handleMouseUpCallback (int index, Point<float> sysPos, int64 time)
  1350. {
  1351. lastMousePos = sysPos / scale;
  1352. auto pos = globalToLocal (lastMousePos);
  1353. jassert (index < 64);
  1354. touchesDown = (touchesDown & ~(1 << (index & 63)));
  1355. if (touchesDown == 0)
  1356. ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withoutMouseButtons();
  1357. handleMouseEvent (MouseInputSource::InputSourceType::touch,
  1358. pos,
  1359. ModifierKeys::currentModifiers.withoutMouseButtons(),
  1360. MouseInputSource::defaultPressure,
  1361. MouseInputSource::defaultOrientation,
  1362. time,
  1363. {},
  1364. index);
  1365. handleMouseEvent (MouseInputSource::InputSourceType::touch,
  1366. MouseInputSource::offscreenMousePos,
  1367. ModifierKeys::currentModifiers.withoutMouseButtons(),
  1368. MouseInputSource::defaultPressure,
  1369. MouseInputSource::defaultOrientation,
  1370. time,
  1371. {},
  1372. index);
  1373. }
  1374. void handleAccessibilityHoverCallback (int command, Point<float> sysPos, int64)
  1375. {
  1376. enum
  1377. {
  1378. TYPE_VIEW_HOVER_ENTER = 0x00000080,
  1379. TYPE_VIEW_HOVER_EXIT = 0x00000100,
  1380. ACTION_HOVER_ENTER = 0x00000009,
  1381. ACTION_HOVER_MOVE = 0x00000007,
  1382. ACTION_HOVER_EXIT = 0x0000000a
  1383. };
  1384. if (auto* topHandler = component.getAccessibilityHandler())
  1385. {
  1386. if (auto* virtualHandler = topHandler->getChildAt ((sysPos / scale).roundToInt()))
  1387. {
  1388. switch (command)
  1389. {
  1390. case ACTION_HOVER_ENTER:
  1391. case ACTION_HOVER_MOVE:
  1392. AccessibilityNativeHandle::sendAccessibilityEventImpl (*virtualHandler, TYPE_VIEW_HOVER_ENTER, 0);
  1393. break;
  1394. case ACTION_HOVER_EXIT:
  1395. AccessibilityNativeHandle::sendAccessibilityEventImpl (*virtualHandler, TYPE_VIEW_HOVER_EXIT, 0);
  1396. break;
  1397. }
  1398. }
  1399. }
  1400. }
  1401. static void handleKeyDownCallback (JNIEnv*, AndroidComponentPeer& t, int k, int kc, int kbFlags)
  1402. {
  1403. ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withOnlyMouseButtons()
  1404. .withFlags (translateAndroidKeyboardFlags (kbFlags));
  1405. t.handleKeyPress (translateAndroidKeyCode (k), static_cast<juce_wchar> (kc));
  1406. }
  1407. static void handleKeyUpCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t, [[maybe_unused]] int k, [[maybe_unused]] int kc)
  1408. {
  1409. }
  1410. static void handleBackButtonCallback (JNIEnv* env, AndroidComponentPeer& t)
  1411. {
  1412. bool handled = false;
  1413. if (auto* app = JUCEApplicationBase::getInstance())
  1414. handled = app->backButtonPressed();
  1415. if (t.isKioskModeComponent())
  1416. t.setNavBarsHidden (t.navBarsHidden);
  1417. if (! handled)
  1418. {
  1419. LocalRef<jobject> activity (getCurrentActivity());
  1420. if (activity != nullptr)
  1421. {
  1422. if (const auto finishMethod = AndroidActivity.finish)
  1423. env->CallVoidMethod (activity.get(), finishMethod);
  1424. }
  1425. }
  1426. }
  1427. static void handleKeyboardHiddenCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t)
  1428. {
  1429. Component::unfocusAllComponents();
  1430. }
  1431. static void handleAppPausedCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t) {}
  1432. static void handleAppResumedCallback (JNIEnv*, AndroidComponentPeer& t)
  1433. {
  1434. if (t.isKioskModeComponent())
  1435. t.setNavBarsHidden (t.navBarsHidden);
  1436. }
  1437. static jlong handleGetFocusedTextInputTargetCallback (JNIEnv*, AndroidComponentPeer& t)
  1438. {
  1439. return reinterpret_cast<jlong> (t.findCurrentTextInputTarget());
  1440. }
  1441. static void handleMovedOrResizedCallback (JNIEnv*, AndroidComponentPeer& t)
  1442. {
  1443. t.handleMovedOrResized();
  1444. }
  1445. //==============================================================================
  1446. AccessibilityNativeHandle* getNativeHandleForViewId (jint virtualViewId) const
  1447. {
  1448. if (auto* handler = (virtualViewId == HOST_VIEW_ID
  1449. ? component.getAccessibilityHandler()
  1450. : AccessibilityNativeHandle::getAccessibilityHandlerForVirtualViewId (virtualViewId)))
  1451. {
  1452. return handler->getNativeImplementation();
  1453. }
  1454. return nullptr;
  1455. }
  1456. static jboolean populateAccessibilityNodeInfoCallback (JNIEnv*, const AndroidComponentPeer& t, jint virtualViewId, jobject info)
  1457. {
  1458. if (auto* handle = t.getNativeHandleForViewId (virtualViewId))
  1459. {
  1460. handle->populateNodeInfo (info);
  1461. return true;
  1462. }
  1463. return false;
  1464. }
  1465. static jboolean handlePerformActionCallback (JNIEnv*, const AndroidComponentPeer& t, jint virtualViewId, jint action, jobject arguments)
  1466. {
  1467. if (auto* handle = t.getNativeHandleForViewId (virtualViewId))
  1468. return handle->performAction (action, arguments);
  1469. return false;
  1470. }
  1471. static jobject getFocusViewIdForHandler (JNIEnv* env, const AccessibilityHandler* handler)
  1472. {
  1473. if (handler != nullptr)
  1474. return env->NewObject (JavaInteger,
  1475. JavaInteger.constructor,
  1476. handler->getNativeImplementation()->getVirtualViewId());
  1477. return nullptr;
  1478. }
  1479. static jobject getInputFocusViewIdCallback (JNIEnv* env, AndroidComponentPeer& t)
  1480. {
  1481. if (auto* comp = dynamic_cast<Component*> (t.findCurrentTextInputTarget()))
  1482. return getFocusViewIdForHandler (env, comp->getAccessibilityHandler());
  1483. return nullptr;
  1484. }
  1485. static jobject getAccessibilityFocusViewIdCallback (JNIEnv* env, const AndroidComponentPeer& t)
  1486. {
  1487. if (auto* handler = t.component.getAccessibilityHandler())
  1488. {
  1489. if (auto* modal = Component::getCurrentlyModalComponent())
  1490. {
  1491. if (! t.component.isParentOf (modal)
  1492. && t.component.isCurrentlyBlockedByAnotherModalComponent())
  1493. {
  1494. if (auto* modalHandler = modal->getAccessibilityHandler())
  1495. {
  1496. if (auto* focusChild = modalHandler->getChildFocus())
  1497. return getFocusViewIdForHandler (env, focusChild);
  1498. return getFocusViewIdForHandler (env, modalHandler);
  1499. }
  1500. }
  1501. }
  1502. if (auto* focusChild = handler->getChildFocus())
  1503. return getFocusViewIdForHandler (env, focusChild);
  1504. }
  1505. return nullptr;
  1506. }
  1507. //==============================================================================
  1508. bool isFocused() const override
  1509. {
  1510. if (view != nullptr)
  1511. return view.callBooleanMethod (AndroidView.hasFocus);
  1512. return false;
  1513. }
  1514. void grabFocus() override
  1515. {
  1516. if (view != nullptr)
  1517. view.callBooleanMethod (AndroidView.requestFocus);
  1518. }
  1519. static void handleFocusChangeCallback (JNIEnv*, AndroidComponentPeer& t, bool hasFocus)
  1520. {
  1521. if (t.isFullScreen())
  1522. t.setFullScreen (true);
  1523. if (hasFocus)
  1524. t.handleFocusGain();
  1525. else
  1526. t.handleFocusLoss();
  1527. }
  1528. void textInputRequired (Point<int>, TextInputTarget& target) override
  1529. {
  1530. const auto region = target.getHighlightedRegion();
  1531. view.callVoidMethod (ComponentPeerView.showKeyboard,
  1532. static_cast<jint> (target.getKeyboardType()),
  1533. static_cast<jint> (region.getStart()),
  1534. static_cast<jint> (region.getEnd()));
  1535. }
  1536. void closeInputMethodContext() override
  1537. {
  1538. getEnv()->CallVoidMethod (view, ComponentPeerView.closeInputMethodContext);
  1539. }
  1540. void dismissPendingTextInput() override
  1541. {
  1542. closeInputMethodContext();
  1543. view.callVoidMethod (ComponentPeerView.hideKeyboard);
  1544. if (! isTimerRunning())
  1545. startTimer (500);
  1546. }
  1547. //==============================================================================
  1548. static void handleDoFrameCallback (JNIEnv*, AndroidComponentPeer& t, [[maybe_unused]] int64 frameTimeNanos)
  1549. {
  1550. t.vBlankListeners.call ([] (auto& l) { l.onVBlank(); });
  1551. }
  1552. static void handlePaintCallback (JNIEnv* env, AndroidComponentPeer& t, jobject canvas, jobject paint)
  1553. {
  1554. jobject rect = env->CallObjectMethod (canvas, AndroidCanvas.getClipBounds);
  1555. auto left = env->GetIntField (rect, AndroidRect.left);
  1556. auto top = env->GetIntField (rect, AndroidRect.top);
  1557. auto right = env->GetIntField (rect, AndroidRect.right);
  1558. auto bottom = env->GetIntField (rect, AndroidRect.bottom);
  1559. env->DeleteLocalRef (rect);
  1560. auto clip = Rectangle<int>::leftTopRightBottom (left, top, right, bottom);
  1561. if (clip.isEmpty())
  1562. return;
  1563. auto sizeNeeded = clip.getWidth() * clip.getHeight();
  1564. if (t.sizeAllocated < sizeNeeded)
  1565. {
  1566. t.buffer.clear();
  1567. t.sizeAllocated = sizeNeeded;
  1568. t.buffer = GlobalRef (LocalRef<jobject> ((jobject) env->NewIntArray (sizeNeeded)));
  1569. }
  1570. if (jint* dest = env->GetIntArrayElements ((jintArray) t.buffer.get(), nullptr))
  1571. {
  1572. {
  1573. Image temp (new PreallocatedImage (clip.getWidth(), clip.getHeight(),
  1574. dest, ! t.component.isOpaque()));
  1575. {
  1576. LowLevelGraphicsSoftwareRenderer g (temp);
  1577. g.setOrigin (-clip.getPosition());
  1578. g.addTransform (AffineTransform::scale (t.scale));
  1579. t.handlePaint (g);
  1580. }
  1581. }
  1582. env->ReleaseIntArrayElements ((jintArray) t.buffer.get(), dest, 0);
  1583. env->CallVoidMethod (canvas, AndroidCanvas.drawBitmap, (jintArray) t.buffer.get(), 0, clip.getWidth(),
  1584. (jfloat) clip.getX(), (jfloat) clip.getY(),
  1585. clip.getWidth(), clip.getHeight(), true, paint);
  1586. }
  1587. }
  1588. void repaint (const Rectangle<int>& userArea) override
  1589. {
  1590. auto area = (userArea.toFloat() * scale).toNearestInt();
  1591. GlobalRef localView (view);
  1592. callOnMessageThread ([area, localView]
  1593. {
  1594. localView.callVoidMethod (AndroidView.invalidate,
  1595. area.getX(), area.getY(), area.getRight(), area.getBottom());
  1596. });
  1597. }
  1598. void performAnyPendingRepaintsNow() override
  1599. {
  1600. // TODO
  1601. }
  1602. void setAlpha (float /*newAlpha*/) override
  1603. {
  1604. // TODO
  1605. }
  1606. StringArray getAvailableRenderingEngines() override
  1607. {
  1608. return StringArray ("Software Renderer");
  1609. }
  1610. //==============================================================================
  1611. static Point<float> lastMousePos;
  1612. static int64 touchesDown;
  1613. //==============================================================================
  1614. struct StartupActivityCallbackListener : public ActivityLifecycleCallbacks
  1615. {
  1616. void onActivityStarted (jobject /*activity*/) override
  1617. {
  1618. auto* env = getEnv();
  1619. LocalRef<jobject> appContext (getAppContext());
  1620. if (appContext.get() != nullptr)
  1621. {
  1622. env->CallVoidMethod (appContext.get(),
  1623. AndroidApplication.unregisterActivityLifecycleCallbacks,
  1624. activityCallbackListener.get());
  1625. clear();
  1626. activityCallbackListener.clear();
  1627. forceDisplayUpdate();
  1628. }
  1629. }
  1630. };
  1631. private:
  1632. template <auto Member>
  1633. static void mouseCallbackWrapper (JNIEnv*, AndroidComponentPeer& t, jint i, jfloat x, jfloat y, jlong time) { return (t.*Member) (i, Point<float> { x, y }, time); }
  1634. //==============================================================================
  1635. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  1636. METHOD (create, "<init>", "(Landroid/content/Context;ZJ)V") \
  1637. METHOD (clear, "clear", "()V") \
  1638. METHOD (setViewName, "setViewName", "(Ljava/lang/String;)V") \
  1639. METHOD (setVisible, "setVisible", "(Z)V") \
  1640. METHOD (isVisible, "isVisible", "()Z") \
  1641. METHOD (containsPoint, "containsPoint", "(II)Z") \
  1642. METHOD (showKeyboard, "showKeyboard", "(III)V") \
  1643. METHOD (hideKeyboard, "hideKeyboard", "()V") \
  1644. METHOD (closeInputMethodContext, "closeInputMethodContext", "()V") \
  1645. METHOD (setSystemUiVisibilityCompat, "setSystemUiVisibilityCompat", "(I)V") \
  1646. CALLBACK (generatedCallback<&AndroidComponentPeer::handleDoFrameCallback>, "handleDoFrame", "(JJ)V") \
  1647. CALLBACK (generatedCallback<&AndroidComponentPeer::handlePaintCallback>, "handlePaint", "(JLandroid/graphics/Canvas;Landroid/graphics/Paint;)V") \
  1648. CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyDownCallback>, "handleKeyDown", "(JIII)V") \
  1649. CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyUpCallback>, "handleKeyUp", "(JII)V") \
  1650. CALLBACK (generatedCallback<&AndroidComponentPeer::handleBackButtonCallback>, "handleBackButton", "(J)V") \
  1651. CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyboardHiddenCallback>, "handleKeyboardHidden", "(J)V") \
  1652. CALLBACK (generatedCallback<&AndroidComponentPeer::handleGetFocusedTextInputTargetCallback>, "getFocusedTextInputTargetPointer", "(J)J") \
  1653. CALLBACK (generatedCallback<&AndroidComponentPeer::handleMovedOrResizedCallback>, "viewSizeChanged", "(J)V") \
  1654. CALLBACK (generatedCallback<&AndroidComponentPeer::handleFocusChangeCallback>, "focusChanged", "(JZ)V") \
  1655. CALLBACK (generatedCallback<&AndroidComponentPeer::handleAppPausedCallback>, "handleAppPaused", "(J)V") \
  1656. CALLBACK (generatedCallback<&AndroidComponentPeer::handleAppResumedCallback>, "handleAppResumed", "(J)V") \
  1657. CALLBACK (generatedCallback<&AndroidComponentPeer::populateAccessibilityNodeInfoCallback>, "populateAccessibilityNodeInfo", "(JILandroid/view/accessibility/AccessibilityNodeInfo;)Z") \
  1658. CALLBACK (generatedCallback<&AndroidComponentPeer::handlePerformActionCallback>, "handlePerformAction", "(JIILandroid/os/Bundle;)Z") \
  1659. CALLBACK (generatedCallback<&AndroidComponentPeer::getInputFocusViewIdCallback>, "getInputFocusViewId", "(J)Ljava/lang/Integer;") \
  1660. CALLBACK (generatedCallback<&AndroidComponentPeer::getAccessibilityFocusViewIdCallback>, "getAccessibilityFocusViewId", "(J)Ljava/lang/Integer;") \
  1661. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetIsTextInputActive>, "textInputTargetIsTextInputActive", "(J)Z") \
  1662. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetHighlightedRegionBegin>, "textInputTargetGetHighlightedRegionBegin", "(J)I") \
  1663. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetHighlightedRegionEnd>, "textInputTargetGetHighlightedRegionEnd", "(J)I") \
  1664. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetSetHighlightedRegion>, "textInputTargetSetHighlightedRegion", "(JII)V") \
  1665. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetTextInRange>, "textInputTargetGetTextInRange", "(JII)Ljava/lang/String;") \
  1666. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetInsertTextAtCaret>, "textInputTargetInsertTextAtCaret", "(JLjava/lang/String;)V") \
  1667. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetCaretPosition>, "textInputTargetGetCaretPosition", "(J)I") \
  1668. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetTotalNumChars>, "textInputTargetGetTotalNumChars", "(J)I") \
  1669. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetCharIndexForPoint>, "textInputTargetGetCharIndexForPoint", "(JLandroid/graphics/Point;)I") \
  1670. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetKeyboardType>, "textInputTargetGetKeyboardType", "(J)I") \
  1671. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetSetTemporaryUnderlining>, "textInputTargetSetTemporaryUnderlining", "(JLjava/util/List;)V") \
  1672. CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseDownCallback>>, "handleMouseDown", "(JIFFJ)V") \
  1673. CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseDragCallback>>, "handleMouseDrag", "(JIFFJ)V") \
  1674. CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseUpCallback>>, "handleMouseUp", "(JIFFJ)V") \
  1675. CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleAccessibilityHoverCallback>>, "handleAccessibilityHover", "(JIFFJ)V") \
  1676. DECLARE_JNI_CLASS_WITH_BYTECODE (ComponentPeerView, "com/rmsl/juce/ComponentPeerView", 16, javaComponentPeerView)
  1677. #undef JNI_CLASS_MEMBERS
  1678. static jboolean textInputTargetIsTextInputActive (JNIEnv*, const TextInputTarget& t)
  1679. {
  1680. return t.isTextInputActive();
  1681. }
  1682. static jint textInputTargetGetHighlightedRegionBegin (JNIEnv*, const TextInputTarget& t)
  1683. {
  1684. return t.getHighlightedRegion().getStart();
  1685. }
  1686. static jint textInputTargetGetHighlightedRegionEnd (JNIEnv*, const TextInputTarget& t)
  1687. {
  1688. return t.getHighlightedRegion().getEnd();
  1689. }
  1690. static void textInputTargetSetHighlightedRegion (JNIEnv*, TextInputTarget& t, jint b, jint e)
  1691. {
  1692. t.setHighlightedRegion ({ b, e });
  1693. }
  1694. static jstring textInputTargetGetTextInRange (JNIEnv* env, const TextInputTarget& t, jint b, jint e)
  1695. {
  1696. return env->NewStringUTF (t.getTextInRange ({ b, e }).toUTF8());
  1697. }
  1698. static void textInputTargetInsertTextAtCaret (JNIEnv*, TextInputTarget& t, jstring text)
  1699. {
  1700. t.insertTextAtCaret (juceString (text));
  1701. }
  1702. static jint textInputTargetGetCaretPosition (JNIEnv*, const TextInputTarget& t)
  1703. {
  1704. return t.getCaretPosition();
  1705. }
  1706. static jint textInputTargetGetTotalNumChars (JNIEnv*, const TextInputTarget& t)
  1707. {
  1708. return t.getTotalNumChars();
  1709. }
  1710. static jint textInputTargetGetCharIndexForPoint (JNIEnv* env, const TextInputTarget& t, jobject point)
  1711. {
  1712. return t.getCharIndexForPoint ({ env->GetIntField (point, AndroidPoint.x),
  1713. env->GetIntField (point, AndroidPoint.y) });
  1714. }
  1715. static jint textInputTargetGetKeyboardType (JNIEnv*, TextInputTarget& t)
  1716. {
  1717. return t.getKeyboardType();
  1718. }
  1719. static std::optional<Range<int>> getRangeFromPair (JNIEnv* env, jobject pair)
  1720. {
  1721. if (pair == nullptr)
  1722. return {};
  1723. const auto first = env->GetObjectField (pair, AndroidPair.first);
  1724. const auto second = env->GetObjectField (pair, AndroidPair.second);
  1725. if (first == nullptr || second == nullptr)
  1726. return {};
  1727. const auto begin = env->CallIntMethod (first, JavaInteger.intValue);
  1728. const auto end = env->CallIntMethod (second, JavaInteger.intValue);
  1729. return Range<int> { begin, end };
  1730. }
  1731. static Array<Range<int>> javaListOfPairToArrayOfRange (JNIEnv* env, jobject list)
  1732. {
  1733. if (list == nullptr)
  1734. return {};
  1735. Array<Range<int>> result;
  1736. for (jint i = 0; i < env->CallIntMethod (list, JavaList.size); ++i)
  1737. if (const auto range = getRangeFromPair (env, env->CallObjectMethod (list, JavaList.get, i)))
  1738. result.add (*range);
  1739. return result;
  1740. }
  1741. static void textInputTargetSetTemporaryUnderlining (JNIEnv* env, TextInputTarget& t, jobject list)
  1742. {
  1743. t.setTemporaryUnderlining (javaListOfPairToArrayOfRange (env, list));
  1744. }
  1745. //==============================================================================
  1746. class ViewWindowInsetsListener : public juce::AndroidInterfaceImplementer
  1747. {
  1748. public:
  1749. jobject onApplyWindowInsets (LocalRef<jobject>, LocalRef<jobject> insets)
  1750. {
  1751. auto* env = getEnv();
  1752. const auto& mainDisplay = *Desktop::getInstance().getDisplays().getPrimaryDisplay();
  1753. const auto newInsets = getInsetsFromAndroidWindowInsets (insets, mainDisplay.scale);
  1754. if (newInsets.tie() != JuceInsets::tie (mainDisplay))
  1755. forceDisplayUpdate();
  1756. if (const auto fieldId = AndroidWindowInsets30.CONSUMED)
  1757. return env->GetStaticObjectField (AndroidWindowInsets30, fieldId);
  1758. return env->CallObjectMethod (insets, AndroidWindowInsets28.consumeDisplayCutout);
  1759. }
  1760. private:
  1761. jobject invoke (jobject proxy, jobject method, jobjectArray args) override
  1762. {
  1763. auto* env = getEnv();
  1764. auto methodName = juce::juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));
  1765. if (methodName == "onApplyWindowInsets")
  1766. {
  1767. jassert (env->GetArrayLength (args) == 2);
  1768. LocalRef<jobject> windowView (env->GetObjectArrayElement (args, 0));
  1769. LocalRef<jobject> insets (env->GetObjectArrayElement (args, 1));
  1770. return onApplyWindowInsets (std::move (windowView), std::move (insets));
  1771. }
  1772. // invoke base class
  1773. return AndroidInterfaceImplementer::invoke (proxy, method, args);
  1774. }
  1775. };
  1776. //==============================================================================
  1777. struct PreallocatedImage : public ImagePixelData
  1778. {
  1779. PreallocatedImage (int width_, int height_, jint* data_, bool hasAlpha_)
  1780. : ImagePixelData (Image::ARGB, width_, height_), data (data_), hasAlpha (hasAlpha_)
  1781. {
  1782. if (hasAlpha_)
  1783. zeromem (data_, static_cast<size_t> (width * height) * sizeof (jint));
  1784. }
  1785. ~PreallocatedImage() override
  1786. {
  1787. if (hasAlpha)
  1788. {
  1789. auto pix = (PixelARGB*) data;
  1790. for (int i = width * height; --i >= 0;)
  1791. {
  1792. pix->unpremultiply();
  1793. ++pix;
  1794. }
  1795. }
  1796. }
  1797. std::unique_ptr<ImageType> createType() const override
  1798. {
  1799. return std::make_unique<SoftwareImageType>();
  1800. }
  1801. std::unique_ptr<LowLevelGraphicsContext> createLowLevelContext() override
  1802. {
  1803. return std::make_unique<LowLevelGraphicsSoftwareRenderer> (Image (this));
  1804. }
  1805. void initialiseBitmapData (Image::BitmapData& bm, int x, int y, Image::BitmapData::ReadWriteMode /*mode*/) override
  1806. {
  1807. bm.lineStride = width * static_cast<int> (sizeof (jint));
  1808. bm.pixelStride = static_cast<int> (sizeof (jint));
  1809. bm.pixelFormat = Image::ARGB;
  1810. const auto offset = (size_t) x + (size_t) y * (size_t) width;
  1811. bm.data = (uint8*) (data + offset);
  1812. bm.size = sizeof (jint) * (((size_t) height * (size_t) width) - offset);
  1813. }
  1814. ImagePixelData::Ptr clone() override
  1815. {
  1816. auto s = new PreallocatedImage (width, height, nullptr, hasAlpha);
  1817. s->allocatedData.malloc (sizeof (jint) * static_cast<size_t> (width * height));
  1818. s->data = s->allocatedData;
  1819. memcpy (s->data, data, sizeof (jint) * static_cast<size_t> (width * height));
  1820. return s;
  1821. }
  1822. private:
  1823. jint* data;
  1824. HeapBlock<jint> allocatedData;
  1825. bool hasAlpha;
  1826. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PreallocatedImage)
  1827. };
  1828. //==============================================================================
  1829. void timerCallback() override
  1830. {
  1831. setNavBarsHidden (shouldNavBarsBeHidden (fullScreen));
  1832. setFullScreen (fullScreen);
  1833. stopTimer();
  1834. }
  1835. bool isKioskModeComponent() const
  1836. {
  1837. if (auto* kiosk = Desktop::getInstance().getKioskModeComponent())
  1838. return kiosk->getPeer() == this;
  1839. return false;
  1840. }
  1841. bool shouldNavBarsBeHidden (bool shouldBeFullScreen) const
  1842. {
  1843. return (shouldBeFullScreen && isKioskModeComponent());
  1844. }
  1845. void setNavBarsHidden (bool hidden)
  1846. {
  1847. if (navBarsHidden != hidden)
  1848. {
  1849. navBarsHidden = hidden;
  1850. view.callVoidMethod (ComponentPeerView.setSystemUiVisibilityCompat,
  1851. (navBarsHidden ? (jint) (fullScreenFlags) : (jint) (SYSTEM_UI_FLAG_VISIBLE)));
  1852. }
  1853. }
  1854. template <typename Callback>
  1855. static void callOnMessageThread (Callback&& callback)
  1856. {
  1857. if (MessageManager::getInstance()->isThisTheMessageThread())
  1858. callback();
  1859. else
  1860. MessageManager::callAsync (std::forward<Callback> (callback));
  1861. }
  1862. //==============================================================================
  1863. friend class Displays;
  1864. static AndroidComponentPeer* frontWindow;
  1865. static GlobalRef activityCallbackListener;
  1866. static constexpr int GRAVITY_LEFT = 0x3, GRAVITY_TOP = 0x30;
  1867. static constexpr int TYPE_APPLICATION = 0x2;
  1868. static constexpr int FLAG_NOT_TOUCH_MODAL = 0x20, FLAG_LAYOUT_IN_SCREEN = 0x100, FLAG_LAYOUT_NO_LIMITS = 0x200;
  1869. static constexpr int PIXEL_FORMAT_OPAQUE = -1, PIXEL_FORMAT_TRANSPARENT = -2;
  1870. static constexpr int LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS = 0x3;
  1871. GlobalRef view, viewGroup, buffer;
  1872. bool viewGroupIsWindow = false, fullScreen = false, navBarsHidden = false;
  1873. int sizeAllocated = 0;
  1874. float scale = (float) Desktop::getInstance().getDisplays().getPrimaryDisplay()->scale;
  1875. //==============================================================================
  1876. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidComponentPeer)
  1877. };
  1878. Point<float> AndroidComponentPeer::lastMousePos;
  1879. int64 AndroidComponentPeer::touchesDown = 0;
  1880. AndroidComponentPeer* AndroidComponentPeer::frontWindow = nullptr;
  1881. GlobalRef AndroidComponentPeer::activityCallbackListener;
  1882. //==============================================================================
  1883. ComponentPeer* Component::createNewPeer (int styleFlags, void* nativeWindow)
  1884. {
  1885. return new AndroidComponentPeer (*this, styleFlags, nativeWindow);
  1886. }
  1887. //==============================================================================
  1888. bool Desktop::canUseSemiTransparentWindows() noexcept
  1889. {
  1890. return true;
  1891. }
  1892. class Desktop::NativeDarkModeChangeDetectorImpl : public ActivityLifecycleCallbacks
  1893. {
  1894. public:
  1895. NativeDarkModeChangeDetectorImpl()
  1896. {
  1897. LocalRef<jobject> appContext (getAppContext());
  1898. if (appContext != nullptr)
  1899. {
  1900. auto* env = getEnv();
  1901. myself = GlobalRef (CreateJavaInterface (this, "android/app/Application$ActivityLifecycleCallbacks"));
  1902. env->CallVoidMethod (appContext.get(), AndroidApplication.registerActivityLifecycleCallbacks, myself.get());
  1903. }
  1904. }
  1905. ~NativeDarkModeChangeDetectorImpl() override
  1906. {
  1907. LocalRef<jobject> appContext (getAppContext());
  1908. if (appContext != nullptr && myself != nullptr)
  1909. {
  1910. auto* env = getEnv();
  1911. env->CallVoidMethod (appContext.get(),
  1912. AndroidApplication.unregisterActivityLifecycleCallbacks,
  1913. myself.get());
  1914. clear();
  1915. myself.clear();
  1916. }
  1917. }
  1918. bool isDarkModeEnabled() const noexcept { return darkModeEnabled; }
  1919. void onActivityStarted (jobject /*activity*/) override
  1920. {
  1921. const auto isEnabled = getDarkModeSetting();
  1922. if (darkModeEnabled != isEnabled)
  1923. {
  1924. darkModeEnabled = isEnabled;
  1925. Desktop::getInstance().darkModeChanged();
  1926. }
  1927. }
  1928. private:
  1929. static bool getDarkModeSetting()
  1930. {
  1931. auto* env = getEnv();
  1932. const LocalRef<jobject> resources (env->CallObjectMethod (getAppContext().get(), AndroidContext.getResources));
  1933. const LocalRef<jobject> configuration (env->CallObjectMethod (resources, AndroidResources.getConfiguration));
  1934. const auto uiMode = env->GetIntField (configuration, AndroidConfiguration.uiMode);
  1935. return ((uiMode & UI_MODE_NIGHT_MASK) == UI_MODE_NIGHT_YES);
  1936. }
  1937. static constexpr int UI_MODE_NIGHT_MASK = 0x00000030,
  1938. UI_MODE_NIGHT_NO = 0x00000010,
  1939. UI_MODE_NIGHT_UNDEFINED = 0x00000000,
  1940. UI_MODE_NIGHT_YES = 0x00000020;
  1941. GlobalRef myself;
  1942. bool darkModeEnabled = getDarkModeSetting();
  1943. //==============================================================================
  1944. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NativeDarkModeChangeDetectorImpl)
  1945. };
  1946. std::unique_ptr<Desktop::NativeDarkModeChangeDetectorImpl> Desktop::createNativeDarkModeChangeDetectorImpl()
  1947. {
  1948. return std::make_unique<NativeDarkModeChangeDetectorImpl>();
  1949. }
  1950. bool Desktop::isDarkModeActive() const
  1951. {
  1952. return nativeDarkModeChangeDetectorImpl->isDarkModeEnabled();
  1953. }
  1954. double Desktop::getDefaultMasterScale()
  1955. {
  1956. return 1.0;
  1957. }
  1958. Desktop::DisplayOrientation Desktop::getCurrentOrientation() const
  1959. {
  1960. enum
  1961. {
  1962. ROTATION_0 = 0,
  1963. ROTATION_90 = 1,
  1964. ROTATION_180 = 2,
  1965. ROTATION_270 = 3
  1966. };
  1967. JNIEnv* env = getEnv();
  1968. LocalRef<jstring> windowServiceString (javaString ("window"));
  1969. LocalRef<jobject> windowManager = LocalRef<jobject> (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, windowServiceString.get()));
  1970. if (windowManager.get() != nullptr)
  1971. {
  1972. LocalRef<jobject> display = LocalRef<jobject> (env->CallObjectMethod (windowManager, AndroidWindowManager.getDefaultDisplay));
  1973. if (display.get() != nullptr)
  1974. {
  1975. int rotation = env->CallIntMethod (display, AndroidDisplay.getRotation);
  1976. switch (rotation)
  1977. {
  1978. case ROTATION_0: return upright;
  1979. case ROTATION_90: return rotatedAntiClockwise;
  1980. case ROTATION_180: return upsideDown;
  1981. case ROTATION_270: return rotatedClockwise;
  1982. }
  1983. }
  1984. }
  1985. jassertfalse;
  1986. return upright;
  1987. }
  1988. bool MouseInputSource::SourceList::addSource()
  1989. {
  1990. addSource (sources.size(), MouseInputSource::InputSourceType::touch);
  1991. return true;
  1992. }
  1993. bool MouseInputSource::SourceList::canUseTouch()
  1994. {
  1995. return true;
  1996. }
  1997. Point<float> MouseInputSource::getCurrentRawMousePosition()
  1998. {
  1999. return AndroidComponentPeer::lastMousePos;
  2000. }
  2001. void MouseInputSource::setRawMousePosition (Point<float>)
  2002. {
  2003. // not needed
  2004. }
  2005. //==============================================================================
  2006. bool KeyPress::isKeyCurrentlyDown (int /*keyCode*/)
  2007. {
  2008. // TODO
  2009. return false;
  2010. }
  2011. JUCE_API void JUCE_CALLTYPE Process::hide()
  2012. {
  2013. auto* env = getEnv();
  2014. LocalRef<jobject> currentActivity (getCurrentActivity().get());
  2015. if (env->CallBooleanMethod (currentActivity.get(), AndroidActivity.moveTaskToBack, true) == 0)
  2016. {
  2017. GlobalRef intent (LocalRef<jobject> (env->NewObject (AndroidIntent, AndroidIntent.constructor)));
  2018. env->CallObjectMethod (intent, AndroidIntent.setAction, javaString ("android.intent.action.MAIN") .get());
  2019. env->CallObjectMethod (intent, AndroidIntent.addCategory, javaString ("android.intent.category.HOME").get());
  2020. env->CallVoidMethod (currentActivity.get(), AndroidContext.startActivity, intent.get());
  2021. }
  2022. }
  2023. //==============================================================================
  2024. // TODO
  2025. JUCE_API bool JUCE_CALLTYPE Process::isForegroundProcess() { return true; }
  2026. JUCE_API void JUCE_CALLTYPE Process::makeForegroundProcess() {}
  2027. //==============================================================================
  2028. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2029. METHOD (show, "show", "()V") \
  2030. METHOD (getWindow, "getWindow", "()Landroid/view/Window;")
  2031. DECLARE_JNI_CLASS (AndroidDialog, "android/app/Dialog")
  2032. #undef JNI_CLASS_MEMBERS
  2033. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2034. METHOD (construct, "<init>", "(Landroid/content/Context;)V") \
  2035. METHOD (create, "create", "()Landroid/app/AlertDialog;") \
  2036. METHOD (setTitle, "setTitle", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;") \
  2037. METHOD (setMessage, "setMessage", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;") \
  2038. METHOD (setCancelable, "setCancelable", "(Z)Landroid/app/AlertDialog$Builder;") \
  2039. METHOD (setOnCancelListener, "setOnCancelListener", "(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;") \
  2040. METHOD (setPositiveButton, "setPositiveButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;") \
  2041. METHOD (setNegativeButton, "setNegativeButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;") \
  2042. METHOD (setNeutralButton, "setNeutralButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;")
  2043. DECLARE_JNI_CLASS (AndroidAlertDialogBuilder, "android/app/AlertDialog$Builder")
  2044. #undef JNI_CLASS_MEMBERS
  2045. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2046. METHOD (dismiss, "dismiss", "()V")
  2047. DECLARE_JNI_CLASS (AndroidDialogInterface, "android/content/DialogInterface")
  2048. #undef JNI_CLASS_MEMBERS
  2049. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2050. DECLARE_JNI_CLASS (AndroidDialogOnClickListener, "android/content/DialogInterface$OnClickListener")
  2051. #undef JNI_CLASS_MEMBERS
  2052. //==============================================================================
  2053. class DialogListener : public juce::AndroidInterfaceImplementer
  2054. {
  2055. public:
  2056. explicit DialogListener (std::function<void()> cb) : callback (std::move (cb)) {}
  2057. jobject invoke (jobject proxy, jobject method, jobjectArray args) override
  2058. {
  2059. auto* env = getEnv();
  2060. auto methodName = juce::juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));
  2061. if (methodName == "onCancel" || methodName == "onClick")
  2062. {
  2063. auto* dialog = env->GetObjectArrayElement (args, 0);
  2064. env->CallVoidMethod (dialog, AndroidDialogInterface.dismiss);
  2065. NullCheckedInvocation::invoke (callback);
  2066. return nullptr;
  2067. }
  2068. // invoke base class
  2069. return AndroidInterfaceImplementer::invoke (proxy, method, args);
  2070. }
  2071. private:
  2072. std::function<void()> callback;
  2073. };
  2074. //==============================================================================
  2075. static bool androidScreenSaverEnabled = true;
  2076. void Desktop::setScreenSaverEnabled (bool shouldEnable)
  2077. {
  2078. constexpr auto FLAG_KEEP_SCREEN_ON = 0x80;
  2079. if (shouldEnable != androidScreenSaverEnabled)
  2080. {
  2081. LocalRef<jobject> activity (getMainActivity());
  2082. if (activity != nullptr)
  2083. {
  2084. auto* env = getEnv();
  2085. LocalRef<jobject> mainWindow (env->CallObjectMethod (activity.get(), AndroidActivity.getWindow));
  2086. env->CallVoidMethod (mainWindow.get(), AndroidWindow.setFlags, shouldEnable ? 0 : FLAG_KEEP_SCREEN_ON, FLAG_KEEP_SCREEN_ON);
  2087. }
  2088. androidScreenSaverEnabled = shouldEnable;
  2089. }
  2090. }
  2091. bool Desktop::isScreenSaverEnabled()
  2092. {
  2093. return androidScreenSaverEnabled;
  2094. }
  2095. //==============================================================================
  2096. void Desktop::setKioskComponent (Component* kioskComp, bool enableOrDisable, [[maybe_unused]] bool allowMenusAndBars)
  2097. {
  2098. if (AndroidComponentPeer* peer = dynamic_cast<AndroidComponentPeer*> (kioskComp->getPeer()))
  2099. peer->setFullScreen (enableOrDisable);
  2100. else
  2101. jassertfalse; // (this should have been checked by the caller)
  2102. }
  2103. //==============================================================================
  2104. static jint getAndroidOrientationFlag (int orientations) noexcept
  2105. {
  2106. enum
  2107. {
  2108. SCREEN_ORIENTATION_LANDSCAPE = 0,
  2109. SCREEN_ORIENTATION_PORTRAIT = 1,
  2110. SCREEN_ORIENTATION_USER = 2,
  2111. SCREEN_ORIENTATION_REVERSE_LANDSCAPE = 8,
  2112. SCREEN_ORIENTATION_REVERSE_PORTRAIT = 9,
  2113. SCREEN_ORIENTATION_USER_LANDSCAPE = 11,
  2114. SCREEN_ORIENTATION_USER_PORTRAIT = 12,
  2115. };
  2116. switch (orientations)
  2117. {
  2118. case Desktop::upright: return (jint) SCREEN_ORIENTATION_PORTRAIT;
  2119. case Desktop::upsideDown: return (jint) SCREEN_ORIENTATION_REVERSE_PORTRAIT;
  2120. case Desktop::upright + Desktop::upsideDown: return (jint) SCREEN_ORIENTATION_USER_PORTRAIT;
  2121. case Desktop::rotatedAntiClockwise: return (jint) SCREEN_ORIENTATION_LANDSCAPE;
  2122. case Desktop::rotatedClockwise: return (jint) SCREEN_ORIENTATION_REVERSE_LANDSCAPE;
  2123. case Desktop::rotatedClockwise + Desktop::rotatedAntiClockwise: return (jint) SCREEN_ORIENTATION_USER_LANDSCAPE;
  2124. default: return (jint) SCREEN_ORIENTATION_USER;
  2125. }
  2126. }
  2127. void Desktop::allowedOrientationsChanged()
  2128. {
  2129. LocalRef<jobject> activity (getMainActivity());
  2130. if (activity != nullptr)
  2131. getEnv()->CallVoidMethod (activity.get(), AndroidActivity.setRequestedOrientation, getAndroidOrientationFlag (allowedOrientations));
  2132. }
  2133. //==============================================================================
  2134. bool juce_areThereAnyAlwaysOnTopWindows()
  2135. {
  2136. return false;
  2137. }
  2138. //==============================================================================
  2139. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2140. METHOD (create, "<init>", "()V") \
  2141. FIELD (density, "density", "F") \
  2142. FIELD (widthPixels, "widthPixels", "I") \
  2143. FIELD (heightPixels, "heightPixels", "I")
  2144. DECLARE_JNI_CLASS (AndroidDisplayMetrics, "android/util/DisplayMetrics")
  2145. #undef JNI_CLASS_MEMBERS
  2146. //==============================================================================
  2147. class LayoutChangeListener : public juce::AndroidInterfaceImplementer
  2148. {
  2149. public:
  2150. virtual void onLayoutChange (LocalRef<jobject> view, int left, int top, int right, int bottom,
  2151. int oldLeft, int oldTop, int oldRight, int oldBottom) = 0;
  2152. private:
  2153. jobject invoke (jobject proxy, jobject method, jobjectArray args) override
  2154. {
  2155. auto* env = getEnv();
  2156. auto methodName = juce::juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));
  2157. if (methodName == "onLayoutChange")
  2158. {
  2159. jassert (env->GetArrayLength (args) == 9);
  2160. LocalRef<jobject> view (env->GetObjectArrayElement (args, 0));
  2161. int dims[8];
  2162. for (int i = 1; i < 9; ++i)
  2163. {
  2164. LocalRef<jobject> integer (env->GetObjectArrayElement (args, i));
  2165. dims[i - 1] = env->CallIntMethod (integer.get(), JavaInteger.intValue);
  2166. }
  2167. onLayoutChange (std::move (view), dims[0], dims[1], dims[2], dims[3],
  2168. dims[4], dims[5], dims[6], dims[7]);
  2169. return nullptr;
  2170. }
  2171. // invoke base class
  2172. return AndroidInterfaceImplementer::invoke (proxy, method, args);
  2173. }
  2174. std::unique_ptr<ModalComponentManager::Callback> callback;
  2175. };
  2176. //==============================================================================
  2177. struct MainActivityWindowLayoutListener : public LayoutChangeListener
  2178. {
  2179. MainActivityWindowLayoutListener (std::function<void()>&& updateDisplaysCb)
  2180. : forceDisplayUpdate (std::move (updateDisplaysCb))
  2181. {
  2182. }
  2183. void onLayoutChange (LocalRef<jobject> /*view*/, int left, int top, int right, int bottom,
  2184. int oldLeft, int oldTop, int oldRight, int oldBottom) override
  2185. {
  2186. auto newBounds = Rectangle<int>::leftTopRightBottom (left, top, right, bottom);
  2187. auto oldBounds = Rectangle<int>::leftTopRightBottom (oldLeft, oldTop, oldRight, oldBottom);
  2188. if (newBounds != oldBounds)
  2189. {
  2190. const auto& mainDisplay = *Desktop::getInstance().getDisplays().getPrimaryDisplay();
  2191. auto userArea = (newBounds.toFloat() / mainDisplay.scale).toNearestInt();
  2192. if (userArea != mainDisplay.userArea)
  2193. forceDisplayUpdate();
  2194. }
  2195. }
  2196. std::function<void()> forceDisplayUpdate;
  2197. };
  2198. //==============================================================================
  2199. void Displays::findDisplays (float masterScale)
  2200. {
  2201. auto* env = getEnv();
  2202. LocalRef<jobject> usableSize (makeAndroidPoint ({}));
  2203. LocalRef<jstring> windowServiceString (javaString ("window"));
  2204. LocalRef<jobject> displayMetrics (env->NewObject (AndroidDisplayMetrics, AndroidDisplayMetrics.create));
  2205. LocalRef<jobject> windowManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, windowServiceString.get()));
  2206. LocalRef<jobject> display (env->CallObjectMethod (windowManager, AndroidWindowManager.getDefaultDisplay));
  2207. if (const auto getRealMetricsMethod = AndroidDisplay17.getRealMetrics)
  2208. env->CallVoidMethod (display, getRealMetricsMethod, displayMetrics.get());
  2209. else
  2210. env->CallVoidMethod (display, AndroidDisplay.getMetrics, displayMetrics.get());
  2211. env->CallVoidMethod (display, AndroidDisplay.getSize, usableSize.get());
  2212. Display d;
  2213. d.isMain = true;
  2214. d.scale = env->GetFloatField (displayMetrics.get(), AndroidDisplayMetrics.density);
  2215. d.dpi = (d.scale * 160.f);
  2216. d.scale *= masterScale;
  2217. d.totalArea = Rectangle<int> (env->GetIntField (displayMetrics.get(), AndroidDisplayMetrics.widthPixels),
  2218. env->GetIntField (displayMetrics.get(), AndroidDisplayMetrics.heightPixels)) / d.scale;
  2219. d.userArea = Rectangle<int> (env->GetIntField (usableSize.get(), AndroidPoint.x),
  2220. env->GetIntField (usableSize.get(), AndroidPoint.y)) / d.scale;
  2221. // unfortunately usableSize still contains the nav bar
  2222. // the best workaround is to try to get the size of the top-level view of
  2223. // the main activity
  2224. LocalRef<jobject> activity (getMainActivity());
  2225. if (activity != nullptr)
  2226. {
  2227. LocalRef<jobject> mainWindow (env->CallObjectMethod (activity.get(), AndroidActivity.getWindow));
  2228. LocalRef<jobject> decorView (env->CallObjectMethod (mainWindow.get(), AndroidWindow.getDecorView));
  2229. LocalRef<jobject> contentView (env->CallObjectMethod (decorView.get(), AndroidView.findViewById, 0x01020002 /* android.R.id.content */));
  2230. if (contentView != nullptr)
  2231. {
  2232. Rectangle<int> activityArea (env->CallIntMethod (contentView.get(), AndroidView.getLeft),
  2233. env->CallIntMethod (contentView.get(), AndroidView.getTop),
  2234. env->CallIntMethod (contentView.get(), AndroidView.getWidth),
  2235. env->CallIntMethod (contentView.get(), AndroidView.getHeight));
  2236. if (! activityArea.isEmpty())
  2237. d.userArea = activityArea / d.scale;
  2238. if (const auto getRootWindowInsetsMethodId = AndroidView23.getRootWindowInsets)
  2239. {
  2240. LocalRef<jobject> insets (env->CallObjectMethod (contentView.get(), getRootWindowInsetsMethodId));
  2241. JuceInsets::tie (d) = getInsetsFromAndroidWindowInsets (insets, d.scale).tie();
  2242. }
  2243. static bool hasAddedMainActivityListener = false;
  2244. if (! hasAddedMainActivityListener)
  2245. {
  2246. hasAddedMainActivityListener = true;
  2247. env->CallVoidMethod (contentView.get(), AndroidView.addOnLayoutChangeListener,
  2248. CreateJavaInterface (new MainActivityWindowLayoutListener ([this] { refresh(); }),
  2249. "android/view/View$OnLayoutChangeListener").get());
  2250. }
  2251. }
  2252. }
  2253. else
  2254. {
  2255. // the main activity may have not started yet so add an activity listener
  2256. if (AndroidComponentPeer::activityCallbackListener == nullptr)
  2257. {
  2258. LocalRef<jobject> appContext (getAppContext());
  2259. if (appContext.get() != nullptr)
  2260. {
  2261. AndroidComponentPeer::activityCallbackListener = GlobalRef (CreateJavaInterface (
  2262. new AndroidComponentPeer::StartupActivityCallbackListener,
  2263. "android/app/Application$ActivityLifecycleCallbacks"));
  2264. env->CallVoidMethod (appContext.get(),
  2265. AndroidApplication.registerActivityLifecycleCallbacks,
  2266. AndroidComponentPeer::activityCallbackListener.get());
  2267. }
  2268. }
  2269. }
  2270. displays.add (d);
  2271. }
  2272. //==============================================================================
  2273. Image juce_createIconForFile (const File& /*file*/)
  2274. {
  2275. return Image();
  2276. }
  2277. //==============================================================================
  2278. class MouseCursor::PlatformSpecificHandle
  2279. {
  2280. public:
  2281. PlatformSpecificHandle (const MouseCursor::StandardCursorType) {}
  2282. PlatformSpecificHandle (const CustomMouseCursorInfo&) {}
  2283. static void showInWindow (PlatformSpecificHandle*, ComponentPeer*) {}
  2284. };
  2285. //==============================================================================
  2286. bool DragAndDropContainer::performExternalDragDropOfFiles (const StringArray& /*files*/, bool /*canMove*/,
  2287. Component* /*srcComp*/, std::function<void()> /*callback*/)
  2288. {
  2289. jassertfalse; // no such thing on Android!
  2290. return false;
  2291. }
  2292. bool DragAndDropContainer::performExternalDragDropOfText (const String& /*text*/, Component* /*srcComp*/,
  2293. std::function<void()> /*callback*/)
  2294. {
  2295. jassertfalse; // no such thing on Android!
  2296. return false;
  2297. }
  2298. //==============================================================================
  2299. void LookAndFeel::playAlertSound()
  2300. {
  2301. }
  2302. //==============================================================================
  2303. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2304. METHOD (getText, "getText", "()Ljava/lang/CharSequence;") \
  2305. METHOD (setText, "setText", "(Ljava/lang/CharSequence;)V")
  2306. DECLARE_JNI_CLASS (AndroidClipboardManager, "android/content/ClipboardManager")
  2307. #undef JNI_CLASS_MEMBERS
  2308. //==============================================================================
  2309. void SystemClipboard::copyTextToClipboard (const String& text)
  2310. {
  2311. auto* env = getEnv();
  2312. LocalRef<jobject> clipboardManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, javaString ("clipboard").get()));
  2313. env->CallVoidMethod (clipboardManager.get(), AndroidClipboardManager.setText, javaString(text).get());
  2314. }
  2315. String SystemClipboard::getTextFromClipboard()
  2316. {
  2317. auto* env = getEnv();
  2318. LocalRef<jobject> clipboardManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, javaString ("clipboard").get()));
  2319. LocalRef<jobject> charSequence (env->CallObjectMethod (clipboardManager.get(), AndroidClipboardManager.getText));
  2320. if (charSequence == nullptr)
  2321. return {};
  2322. return juceString(LocalRef<jstring> ((jstring) env->CallObjectMethod(charSequence.get(), JavaCharSequence.toString)));
  2323. }
  2324. //==============================================================================
  2325. constexpr int extendedKeyModifier = 0x10000;
  2326. const int KeyPress::spaceKey = ' ';
  2327. const int KeyPress::returnKey = extendedKeyModifier + 2;
  2328. const int KeyPress::escapeKey = extendedKeyModifier + 3;
  2329. const int KeyPress::backspaceKey = extendedKeyModifier + 4;
  2330. const int KeyPress::leftKey = extendedKeyModifier + 5;
  2331. const int KeyPress::rightKey = extendedKeyModifier + 6;
  2332. const int KeyPress::upKey = extendedKeyModifier + 7;
  2333. const int KeyPress::downKey = extendedKeyModifier + 8;
  2334. const int KeyPress::pageUpKey = extendedKeyModifier + 9;
  2335. const int KeyPress::pageDownKey = extendedKeyModifier + 10;
  2336. const int KeyPress::endKey = extendedKeyModifier + 11;
  2337. const int KeyPress::homeKey = extendedKeyModifier + 12;
  2338. const int KeyPress::deleteKey = extendedKeyModifier + 13;
  2339. const int KeyPress::insertKey = extendedKeyModifier + 14;
  2340. const int KeyPress::tabKey = extendedKeyModifier + 15;
  2341. const int KeyPress::F1Key = extendedKeyModifier + 16;
  2342. const int KeyPress::F2Key = extendedKeyModifier + 17;
  2343. const int KeyPress::F3Key = extendedKeyModifier + 18;
  2344. const int KeyPress::F4Key = extendedKeyModifier + 19;
  2345. const int KeyPress::F5Key = extendedKeyModifier + 20;
  2346. const int KeyPress::F6Key = extendedKeyModifier + 21;
  2347. const int KeyPress::F7Key = extendedKeyModifier + 22;
  2348. const int KeyPress::F8Key = extendedKeyModifier + 23;
  2349. const int KeyPress::F9Key = extendedKeyModifier + 24;
  2350. const int KeyPress::F10Key = extendedKeyModifier + 25;
  2351. const int KeyPress::F11Key = extendedKeyModifier + 26;
  2352. const int KeyPress::F12Key = extendedKeyModifier + 27;
  2353. const int KeyPress::F13Key = extendedKeyModifier + 28;
  2354. const int KeyPress::F14Key = extendedKeyModifier + 29;
  2355. const int KeyPress::F15Key = extendedKeyModifier + 30;
  2356. const int KeyPress::F16Key = extendedKeyModifier + 31;
  2357. const int KeyPress::F17Key = extendedKeyModifier + 32;
  2358. const int KeyPress::F18Key = extendedKeyModifier + 33;
  2359. const int KeyPress::F19Key = extendedKeyModifier + 34;
  2360. const int KeyPress::F20Key = extendedKeyModifier + 35;
  2361. const int KeyPress::F21Key = extendedKeyModifier + 36;
  2362. const int KeyPress::F22Key = extendedKeyModifier + 37;
  2363. const int KeyPress::F23Key = extendedKeyModifier + 38;
  2364. const int KeyPress::F24Key = extendedKeyModifier + 39;
  2365. const int KeyPress::F25Key = extendedKeyModifier + 40;
  2366. const int KeyPress::F26Key = extendedKeyModifier + 41;
  2367. const int KeyPress::F27Key = extendedKeyModifier + 42;
  2368. const int KeyPress::F28Key = extendedKeyModifier + 43;
  2369. const int KeyPress::F29Key = extendedKeyModifier + 44;
  2370. const int KeyPress::F30Key = extendedKeyModifier + 45;
  2371. const int KeyPress::F31Key = extendedKeyModifier + 46;
  2372. const int KeyPress::F32Key = extendedKeyModifier + 47;
  2373. const int KeyPress::F33Key = extendedKeyModifier + 48;
  2374. const int KeyPress::F34Key = extendedKeyModifier + 49;
  2375. const int KeyPress::F35Key = extendedKeyModifier + 50;
  2376. const int KeyPress::numberPad0 = extendedKeyModifier + 51;
  2377. const int KeyPress::numberPad1 = extendedKeyModifier + 52;
  2378. const int KeyPress::numberPad2 = extendedKeyModifier + 53;
  2379. const int KeyPress::numberPad3 = extendedKeyModifier + 54;
  2380. const int KeyPress::numberPad4 = extendedKeyModifier + 55;
  2381. const int KeyPress::numberPad5 = extendedKeyModifier + 56;
  2382. const int KeyPress::numberPad6 = extendedKeyModifier + 57;
  2383. const int KeyPress::numberPad7 = extendedKeyModifier + 58;
  2384. const int KeyPress::numberPad8 = extendedKeyModifier + 59;
  2385. const int KeyPress::numberPad9 = extendedKeyModifier + 60;
  2386. const int KeyPress::numberPadAdd = extendedKeyModifier + 61;
  2387. const int KeyPress::numberPadSubtract = extendedKeyModifier + 62;
  2388. const int KeyPress::numberPadMultiply = extendedKeyModifier + 63;
  2389. const int KeyPress::numberPadDivide = extendedKeyModifier + 64;
  2390. const int KeyPress::numberPadSeparator = extendedKeyModifier + 65;
  2391. const int KeyPress::numberPadDecimalPoint = extendedKeyModifier + 66;
  2392. const int KeyPress::numberPadEquals = extendedKeyModifier + 67;
  2393. const int KeyPress::numberPadDelete = extendedKeyModifier + 68;
  2394. const int KeyPress::playKey = extendedKeyModifier + 69;
  2395. const int KeyPress::stopKey = extendedKeyModifier + 70;
  2396. const int KeyPress::fastForwardKey = extendedKeyModifier + 71;
  2397. const int KeyPress::rewindKey = extendedKeyModifier + 72;
  2398. //==============================================================================
  2399. #ifdef JUCE_PUSH_NOTIFICATIONS_ACTIVITY
  2400. struct JuceActivityNewIntentListener
  2401. {
  2402. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2403. CALLBACK (appNewIntent, "appNewIntent", "(Landroid/content/Intent;)V") \
  2404. CALLBACK (appOnResume, "appOnResume", "()V")
  2405. DECLARE_JNI_CLASS (JavaActivity, JUCE_PUSH_NOTIFICATIONS_ACTIVITY)
  2406. #undef JNI_CLASS_MEMBERS
  2407. static void JNICALL appNewIntent (JNIEnv*, jobject /*activity*/, jobject intentData)
  2408. {
  2409. juce_handleNotificationIntent (static_cast<void*> (intentData));
  2410. }
  2411. static void JNICALL appOnResume (JNIEnv*, jobject)
  2412. {
  2413. juce_handleOnResume();
  2414. }
  2415. };
  2416. #endif
  2417. } // namespace juce