@oracle/oraclejet 13.0.2 → 13.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1951) hide show
  1. package/README.md +1 -1
  2. package/THIRDPARTYLICENSE.txt +8 -8
  3. package/dist/css/alta/oj-alta-min.css +1 -1
  4. package/dist/css/alta/oj-alta-notag-min.css +1 -1
  5. package/dist/css/alta/oj-alta-notag.css +1 -1
  6. package/dist/css/alta/oj-alta.css +1 -1
  7. package/dist/css/alta-android/oj-alta-min.css +1 -1
  8. package/dist/css/alta-android/oj-alta.css +1 -1
  9. package/dist/css/alta-ios/oj-alta-min.css +1 -1
  10. package/dist/css/alta-ios/oj-alta.css +1 -1
  11. package/dist/css/alta-windows/oj-alta-min.css +1 -1
  12. package/dist/css/alta-windows/oj-alta.css +1 -1
  13. package/dist/css/redwood/oj-redwood-min.css +1 -1
  14. package/dist/css/redwood/oj-redwood-notag-min.css +1 -1
  15. package/dist/css/redwood/oj-redwood-notag.css +1 -1
  16. package/dist/css/redwood/oj-redwood.css +1 -1
  17. package/dist/css/stable/oj-stable-min.css +1 -1
  18. package/dist/css/stable/oj-stable.css +1 -1
  19. package/dist/js/libs/oj/debug/ojcore-base.js +2 -2
  20. package/dist/js/libs/oj/debug/ojdatagrid.js +6 -2
  21. package/dist/js/libs/oj/debug/ojoffcanvas.js +3 -7
  22. package/dist/js/libs/oj/debug/ojselectcombobox.js +50 -12
  23. package/dist/js/libs/oj/debug/ojtable.js +31 -20
  24. package/dist/js/libs/oj/debug_esm/ojcore-base.js +2 -2
  25. package/dist/js/libs/oj/debug_esm/ojdatagrid.js +6 -2
  26. package/dist/js/libs/oj/debug_esm/ojoffcanvas.js +3 -7
  27. package/dist/js/libs/oj/debug_esm/ojselectcombobox.js +50 -12
  28. package/dist/js/libs/oj/debug_esm/ojtable.js +31 -20
  29. package/dist/js/libs/oj/main-template.js +3 -3
  30. package/dist/js/libs/oj/min/ojcore-base.js +1 -1
  31. package/dist/js/libs/oj/min/ojdatagrid.js +1 -1
  32. package/dist/js/libs/oj/min/ojdatagrid.js.map +1 -1
  33. package/dist/js/libs/oj/min/ojoffcanvas.js +1 -1
  34. package/dist/js/libs/oj/min/ojoffcanvas.js.map +1 -1
  35. package/dist/js/libs/oj/min/ojselectcombobox.js +1 -1
  36. package/dist/js/libs/oj/min/ojselectcombobox.js.map +1 -1
  37. package/dist/js/libs/oj/min/ojtable.js +1 -1
  38. package/dist/js/libs/oj/min/ojtable.js.map +1 -1
  39. package/dist/js/libs/oraclejet-preact/amd/Badge-52cfd8f2.js +2 -0
  40. package/dist/js/libs/oraclejet-preact/amd/Badge-52cfd8f2.js.map +1 -0
  41. package/dist/js/libs/oraclejet-preact/amd/Button-f3f8bb68.js +2 -0
  42. package/dist/js/libs/oraclejet-preact/amd/Button-f3f8bb68.js.map +1 -0
  43. package/dist/js/libs/oraclejet-preact/amd/Chip-293af7f7.js +2 -0
  44. package/dist/js/libs/oraclejet-preact/amd/Chip-293af7f7.js.map +1 -0
  45. package/dist/js/libs/oraclejet-preact/amd/ClearIcon-9101aa21.js +2 -0
  46. package/dist/js/libs/oraclejet-preact/amd/ClearIcon-9101aa21.js.map +1 -0
  47. package/dist/js/libs/oraclejet-preact/amd/Collection-07c62b02.js +2 -0
  48. package/dist/js/libs/oraclejet-preact/amd/Collection-07c62b02.js.map +1 -0
  49. package/dist/js/libs/oraclejet-preact/amd/ComponentMessage-b59c1938.js +2 -0
  50. package/dist/js/libs/oraclejet-preact/amd/ComponentMessage-b59c1938.js.map +1 -0
  51. package/dist/js/libs/oraclejet-preact/amd/ComponentMessageContainer-45de6542.js +2 -0
  52. package/dist/js/libs/oraclejet-preact/amd/ComponentMessageContainer-45de6542.js.map +1 -0
  53. package/dist/js/libs/oraclejet-preact/amd/Flex-a5549743.js +2 -0
  54. package/dist/js/libs/oraclejet-preact/amd/Flex-a5549743.js.map +1 -0
  55. package/dist/js/libs/oraclejet-preact/amd/HiddenAccessible-5f5256a3.js +2 -0
  56. package/dist/js/libs/oraclejet-preact/amd/HiddenAccessible-5f5256a3.js.map +1 -0
  57. package/dist/js/libs/oraclejet-preact/amd/HighlightText-6e34388d.js +2 -0
  58. package/dist/js/libs/oraclejet-preact/amd/HighlightText-6e34388d.js.map +1 -0
  59. package/dist/js/libs/oraclejet-preact/amd/Icon-411277f7.js +2 -0
  60. package/dist/js/libs/oraclejet-preact/amd/Icon-411277f7.js.map +1 -0
  61. package/dist/js/libs/oraclejet-preact/amd/InputText-8bd11807.js +2 -0
  62. package/dist/js/libs/oraclejet-preact/amd/InputText-8bd11807.js.map +1 -0
  63. package/dist/js/libs/oraclejet-preact/amd/Link-84228814.js +2 -0
  64. package/dist/js/libs/oraclejet-preact/amd/Link-84228814.js.map +1 -0
  65. package/dist/js/libs/oraclejet-preact/amd/ListView-c9d40749.js +2 -0
  66. package/dist/js/libs/oraclejet-preact/amd/ListView-c9d40749.js.map +1 -0
  67. package/dist/js/libs/oraclejet-preact/amd/Message.types-3358a48e.js +2 -0
  68. package/dist/js/libs/oraclejet-preact/amd/Message.types-3358a48e.js.map +1 -0
  69. package/dist/js/libs/oraclejet-preact/amd/MessageCloseButton-3d1af2aa.js +2 -0
  70. package/dist/js/libs/oraclejet-preact/amd/MessageCloseButton-3d1af2aa.js.map +1 -0
  71. package/dist/js/libs/oraclejet-preact/amd/MessageDetail-1458e85e.js +2 -0
  72. package/dist/js/libs/oraclejet-preact/amd/MessageDetail-1458e85e.js.map +1 -0
  73. package/dist/js/libs/oraclejet-preact/amd/MessageFormattingUtils-34242185.js +2 -0
  74. package/dist/js/libs/oraclejet-preact/amd/MessageFormattingUtils-34242185.js.map +1 -0
  75. package/dist/js/libs/oraclejet-preact/amd/MessageStartIcon-b7bc97e5.js +2 -0
  76. package/dist/js/libs/oraclejet-preact/amd/MessageStartIcon-b7bc97e5.js.map +1 -0
  77. package/dist/js/libs/oraclejet-preact/amd/MessageSummary-45f0885a.js +2 -0
  78. package/dist/js/libs/oraclejet-preact/amd/MessageSummary-45f0885a.js.map +1 -0
  79. package/dist/js/libs/oraclejet-preact/amd/MessageTimestamp-f0e615bf.js +2 -0
  80. package/dist/js/libs/oraclejet-preact/amd/MessageTimestamp-f0e615bf.js.map +1 -0
  81. package/dist/js/libs/oraclejet-preact/amd/MessageUtils-e730b5d8.js +2 -0
  82. package/dist/js/libs/oraclejet-preact/amd/MessageUtils-e730b5d8.js.map +1 -0
  83. package/dist/js/libs/oraclejet-preact/amd/MessagesManager-8a7a9249.js +2 -0
  84. package/dist/js/libs/oraclejet-preact/amd/MessagesManager-8a7a9249.js.map +1 -0
  85. package/dist/js/libs/oraclejet-preact/amd/RatingGauge-6994e777.js +2 -0
  86. package/dist/js/libs/oraclejet-preact/amd/RatingGauge-6994e777.js.map +1 -0
  87. package/dist/js/libs/oraclejet-preact/amd/SelectMultiple-aa0f3c66.js +2 -0
  88. package/dist/js/libs/oraclejet-preact/amd/SelectMultiple-aa0f3c66.js.map +1 -0
  89. package/dist/js/libs/oraclejet-preact/amd/Skeleton-0352b30c.js +2 -0
  90. package/dist/js/libs/oraclejet-preact/amd/Skeleton-0352b30c.js.map +1 -0
  91. package/dist/js/libs/oraclejet-preact/amd/Spacer-527556bb.js +2 -0
  92. package/dist/js/libs/oraclejet-preact/amd/Spacer-527556bb.js.map +1 -0
  93. package/dist/js/libs/oraclejet-preact/amd/Text-4252deea.js +2 -0
  94. package/dist/js/libs/oraclejet-preact/amd/Text-4252deea.js.map +1 -0
  95. package/dist/js/libs/oraclejet-preact/amd/TextArea-ad8173c9.js +2 -0
  96. package/dist/js/libs/oraclejet-preact/amd/TextArea-ad8173c9.js.map +1 -0
  97. package/dist/js/libs/oraclejet-preact/amd/TextAreaAutosize-b71136c1.js +2 -0
  98. package/dist/js/libs/oraclejet-preact/amd/TextAreaAutosize-b71136c1.js.map +1 -0
  99. package/dist/js/libs/oraclejet-preact/amd/TextFieldInput-34c8eabf.js +2 -0
  100. package/dist/js/libs/oraclejet-preact/amd/TextFieldInput-34c8eabf.js.map +1 -0
  101. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_AspectRatio.js +1 -1
  102. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Avatar.js +1 -1
  103. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Badge.js +1 -1
  104. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Button.css +8 -8
  105. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Button.js +1 -1
  106. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Center.js +1 -1
  107. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Chip.js +1 -1
  108. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Collapsible.js +1 -1
  109. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Collection.js +1 -1
  110. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_ComponentMessage.css +2 -2
  111. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_ComponentMessage.js +1 -1
  112. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Flex.js +1 -1
  113. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Floating.js +1 -1
  114. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Grid.js +1 -1
  115. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_HiddenAccessible.js +1 -1
  116. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_HighlightText.js +1 -1
  117. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Icon.js +1 -1
  118. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Icons.js +1 -1
  119. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_InputPassword.js +1 -1
  120. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_InputText.js +1 -1
  121. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Label.js +1 -1
  122. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_LabelValueLayout.js +1 -1
  123. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Link.js +1 -1
  124. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_ListView.js +1 -1
  125. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Message.css +2 -2
  126. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Message.js +1 -1
  127. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_MessageBanner.js +1 -1
  128. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Modal.css +2 -2
  129. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_ProgressBar.js +1 -1
  130. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_ProgressCircle.js +1 -1
  131. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_RatingGauge.js +1 -1
  132. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_SelectMultiple.css +4 -4
  133. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_SelectMultiple.js +1 -1
  134. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Selector.js +1 -1
  135. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Skeleton.js +1 -1
  136. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Spacer.js +1 -1
  137. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_Text.js +1 -1
  138. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_TextArea.js +1 -1
  139. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_TextAreaAutosize.js +1 -1
  140. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_TextField.js +1 -1
  141. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_ThemedIcons.js +1 -1
  142. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_UserAssistance.css +2 -2
  143. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_UserAssistance.js +1 -1
  144. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_View.js +1 -1
  145. package/dist/js/libs/oraclejet-preact/amd/UNSAFE_VirtualizedCollection.js +1 -1
  146. package/dist/js/libs/oraclejet-preact/amd/VirtualizedCollection-34caa28a.js +2 -0
  147. package/dist/js/libs/oraclejet-preact/amd/VirtualizedCollection-34caa28a.js.map +1 -0
  148. package/dist/js/libs/oraclejet-preact/amd/_curry1-debc3c69.js +2 -0
  149. package/dist/js/libs/oraclejet-preact/amd/_curry1-debc3c69.js.map +1 -0
  150. package/dist/js/libs/oraclejet-preact/amd/_curry2-96765628.js +2 -0
  151. package/dist/js/libs/oraclejet-preact/amd/_curry2-96765628.js.map +1 -0
  152. package/dist/js/libs/oraclejet-preact/amd/_has-1e986684.js +2 -0
  153. package/dist/js/libs/oraclejet-preact/amd/_has-1e986684.js.map +1 -0
  154. package/dist/js/libs/oraclejet-preact/amd/bundle-0590d3fb.js +2 -0
  155. package/dist/js/libs/oraclejet-preact/amd/bundle-0590d3fb.js.map +1 -0
  156. package/dist/js/libs/oraclejet-preact/amd/bundle-0d95e1d5.js +2 -0
  157. package/dist/js/libs/oraclejet-preact/amd/bundle-0d95e1d5.js.map +1 -0
  158. package/dist/js/libs/oraclejet-preact/amd/bundle-0de4c356.js +2 -0
  159. package/dist/js/libs/oraclejet-preact/amd/bundle-0de4c356.js.map +1 -0
  160. package/dist/js/libs/oraclejet-preact/amd/bundle-0faf91be.js +2 -0
  161. package/dist/js/libs/oraclejet-preact/amd/bundle-0faf91be.js.map +1 -0
  162. package/dist/js/libs/oraclejet-preact/amd/bundle-10d72573.js +2 -0
  163. package/dist/js/libs/oraclejet-preact/amd/bundle-10d72573.js.map +1 -0
  164. package/dist/js/libs/oraclejet-preact/amd/bundle-1361acc8.js +2 -0
  165. package/dist/js/libs/oraclejet-preact/amd/bundle-1361acc8.js.map +1 -0
  166. package/dist/js/libs/oraclejet-preact/amd/bundle-13770edf.js +2 -0
  167. package/dist/js/libs/oraclejet-preact/amd/bundle-13770edf.js.map +1 -0
  168. package/dist/js/libs/oraclejet-preact/amd/bundle-15f92861.js +2 -0
  169. package/dist/js/libs/oraclejet-preact/amd/bundle-15f92861.js.map +1 -0
  170. package/dist/js/libs/oraclejet-preact/amd/bundle-1c93281d.js +2 -0
  171. package/dist/js/libs/oraclejet-preact/amd/bundle-1c93281d.js.map +1 -0
  172. package/dist/js/libs/oraclejet-preact/amd/bundle-1d332509.js +2 -0
  173. package/dist/js/libs/oraclejet-preact/amd/bundle-1d332509.js.map +1 -0
  174. package/dist/js/libs/oraclejet-preact/amd/bundle-316a66d9.js +2 -0
  175. package/dist/js/libs/oraclejet-preact/amd/bundle-316a66d9.js.map +1 -0
  176. package/dist/js/libs/oraclejet-preact/amd/bundle-31f9bed0.js +2 -0
  177. package/dist/js/libs/oraclejet-preact/amd/bundle-31f9bed0.js.map +1 -0
  178. package/dist/js/libs/oraclejet-preact/amd/bundle-3a7ae4b9.js +2 -0
  179. package/dist/js/libs/oraclejet-preact/amd/bundle-3a7ae4b9.js.map +1 -0
  180. package/dist/js/libs/oraclejet-preact/amd/bundle-3b461e0d.js +2 -0
  181. package/dist/js/libs/oraclejet-preact/amd/bundle-3b461e0d.js.map +1 -0
  182. package/dist/js/libs/oraclejet-preact/amd/bundle-3c7a2544.js +2 -0
  183. package/dist/js/libs/oraclejet-preact/amd/bundle-3c7a2544.js.map +1 -0
  184. package/dist/js/libs/oraclejet-preact/amd/bundle-3d5e7d1d.js +2 -0
  185. package/dist/js/libs/oraclejet-preact/amd/bundle-3d5e7d1d.js.map +1 -0
  186. package/dist/js/libs/oraclejet-preact/amd/bundle-4515f7ff.js +2 -0
  187. package/dist/js/libs/oraclejet-preact/amd/bundle-4515f7ff.js.map +1 -0
  188. package/dist/js/libs/oraclejet-preact/amd/bundle-54ec9add.js +2 -0
  189. package/dist/js/libs/oraclejet-preact/amd/bundle-54ec9add.js.map +1 -0
  190. package/dist/js/libs/oraclejet-preact/amd/bundle-693c3122.js +2 -0
  191. package/dist/js/libs/oraclejet-preact/amd/bundle-693c3122.js.map +1 -0
  192. package/dist/js/libs/oraclejet-preact/amd/bundle-73107f2a.js +2 -0
  193. package/dist/js/libs/oraclejet-preact/amd/bundle-73107f2a.js.map +1 -0
  194. package/dist/js/libs/oraclejet-preact/amd/bundle-793a9158.js +2 -0
  195. package/dist/js/libs/oraclejet-preact/amd/bundle-793a9158.js.map +1 -0
  196. package/dist/js/libs/oraclejet-preact/amd/bundle-7d8ad070.js +2 -0
  197. package/dist/js/libs/oraclejet-preact/amd/bundle-7d8ad070.js.map +1 -0
  198. package/dist/js/libs/oraclejet-preact/amd/bundle-8aaf8bec.js +2 -0
  199. package/dist/js/libs/oraclejet-preact/amd/bundle-8aaf8bec.js.map +1 -0
  200. package/dist/js/libs/oraclejet-preact/amd/bundle-939c522e.js +2 -0
  201. package/dist/js/libs/oraclejet-preact/amd/bundle-939c522e.js.map +1 -0
  202. package/dist/js/libs/oraclejet-preact/amd/bundle-96994e79.js +2 -0
  203. package/dist/js/libs/oraclejet-preact/amd/bundle-96994e79.js.map +1 -0
  204. package/dist/js/libs/oraclejet-preact/amd/bundle-9b478a29.js +2 -0
  205. package/dist/js/libs/oraclejet-preact/amd/bundle-9b478a29.js.map +1 -0
  206. package/dist/js/libs/oraclejet-preact/amd/bundle-a7b07b1c.js +2 -0
  207. package/dist/js/libs/oraclejet-preact/amd/bundle-a7b07b1c.js.map +1 -0
  208. package/dist/js/libs/oraclejet-preact/amd/bundle-af50ae55.js +2 -0
  209. package/dist/js/libs/oraclejet-preact/amd/bundle-af50ae55.js.map +1 -0
  210. package/dist/js/libs/oraclejet-preact/amd/bundle-bd49237d.js +2 -0
  211. package/dist/js/libs/oraclejet-preact/amd/bundle-bd49237d.js.map +1 -0
  212. package/dist/js/libs/oraclejet-preact/amd/bundle-bdec4c2a.js +2 -0
  213. package/dist/js/libs/oraclejet-preact/amd/bundle-bdec4c2a.js.map +1 -0
  214. package/dist/js/libs/oraclejet-preact/amd/bundle-be45b3ab.js +2 -0
  215. package/dist/js/libs/oraclejet-preact/amd/bundle-be45b3ab.js.map +1 -0
  216. package/dist/js/libs/oraclejet-preact/amd/bundle-c19b08c1.js +2 -0
  217. package/dist/js/libs/oraclejet-preact/amd/bundle-c19b08c1.js.map +1 -0
  218. package/dist/js/libs/oraclejet-preact/amd/bundle-c2417839.js +2 -0
  219. package/dist/js/libs/oraclejet-preact/amd/bundle-c2417839.js.map +1 -0
  220. package/dist/js/libs/oraclejet-preact/amd/bundle-c41e141b.js +2 -0
  221. package/dist/js/libs/oraclejet-preact/amd/bundle-c41e141b.js.map +1 -0
  222. package/dist/js/libs/oraclejet-preact/amd/bundle-c4bd26c7.js +2 -0
  223. package/dist/js/libs/oraclejet-preact/amd/bundle-c4bd26c7.js.map +1 -0
  224. package/dist/js/libs/oraclejet-preact/amd/bundle-c897ce4a.js +2 -0
  225. package/dist/js/libs/oraclejet-preact/amd/bundle-c897ce4a.js.map +1 -0
  226. package/dist/js/libs/oraclejet-preact/amd/bundle-ccfa512a.js +2 -0
  227. package/dist/js/libs/oraclejet-preact/amd/bundle-ccfa512a.js.map +1 -0
  228. package/dist/js/libs/oraclejet-preact/amd/bundle-d24efeba.js +2 -0
  229. package/dist/js/libs/oraclejet-preact/amd/bundle-d24efeba.js.map +1 -0
  230. package/dist/js/libs/oraclejet-preact/amd/bundle-d25bf2f2.js +2 -0
  231. package/dist/js/libs/oraclejet-preact/amd/bundle-d25bf2f2.js.map +1 -0
  232. package/dist/js/libs/oraclejet-preact/amd/bundle-d8bb38de.js +2 -0
  233. package/dist/js/libs/oraclejet-preact/amd/bundle-d8bb38de.js.map +1 -0
  234. package/dist/js/libs/oraclejet-preact/amd/bundle-db28e39b.js +2 -0
  235. package/dist/js/libs/oraclejet-preact/amd/bundle-db28e39b.js.map +1 -0
  236. package/dist/js/libs/oraclejet-preact/amd/bundle-e07b0115.js +2 -0
  237. package/dist/js/libs/oraclejet-preact/amd/bundle-e07b0115.js.map +1 -0
  238. package/dist/js/libs/oraclejet-preact/amd/bundle-e657d2d5.js +2 -0
  239. package/dist/js/libs/oraclejet-preact/amd/bundle-e657d2d5.js.map +1 -0
  240. package/dist/js/libs/oraclejet-preact/amd/bundle-eab64ef3.js +2 -0
  241. package/dist/js/libs/oraclejet-preact/amd/bundle-eab64ef3.js.map +1 -0
  242. package/dist/js/libs/oraclejet-preact/amd/bundle-eb1937e0.js +2 -0
  243. package/dist/js/libs/oraclejet-preact/amd/bundle-eb1937e0.js.map +1 -0
  244. package/dist/js/libs/oraclejet-preact/amd/bundle-f5fca22c.js +2 -0
  245. package/dist/js/libs/oraclejet-preact/amd/bundle-f5fca22c.js.map +1 -0
  246. package/dist/js/libs/oraclejet-preact/amd/bundle-fe4205f0.js +2 -0
  247. package/dist/js/libs/oraclejet-preact/amd/bundle-fe4205f0.js.map +1 -0
  248. package/dist/js/libs/oraclejet-preact/amd/bundle-ff9f98ae.js +2 -0
  249. package/dist/js/libs/oraclejet-preact/amd/bundle-ff9f98ae.js.map +1 -0
  250. package/dist/js/libs/oraclejet-preact/amd/classNames-d7bc9353.js +2 -0
  251. package/dist/js/libs/oraclejet-preact/amd/classNames-d7bc9353.js.map +1 -0
  252. package/dist/js/libs/oraclejet-preact/amd/clientHints-26a719ef.js +2 -0
  253. package/dist/js/libs/oraclejet-preact/amd/clientHints-26a719ef.js.map +1 -0
  254. package/dist/js/libs/oraclejet-preact/amd/flexbox-e5a7561f.js +2 -0
  255. package/dist/js/libs/oraclejet-preact/amd/flexbox-e5a7561f.js.map +1 -0
  256. package/dist/js/libs/oraclejet-preact/amd/flexitem-f4ecceb2.js +2 -0
  257. package/dist/js/libs/oraclejet-preact/amd/flexitem-f4ecceb2.js.map +1 -0
  258. package/dist/js/libs/oraclejet-preact/amd/hooks/UNSAFE_useAnimation.js +1 -1
  259. package/dist/js/libs/oraclejet-preact/amd/hooks/UNSAFE_useFloating.js +1 -1
  260. package/dist/js/libs/oraclejet-preact/amd/hooks/UNSAFE_useFocusWithin.js +1 -1
  261. package/dist/js/libs/oraclejet-preact/amd/hooks/UNSAFE_useFocusableTextField.js +1 -1
  262. package/dist/js/libs/oraclejet-preact/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  263. package/dist/js/libs/oraclejet-preact/amd/hooks/UNSAFE_useTooltip.js +1 -1
  264. package/dist/js/libs/oraclejet-preact/amd/index-4a0dd4ab.js +2 -0
  265. package/dist/js/libs/oraclejet-preact/amd/index-4a0dd4ab.js.map +1 -0
  266. package/dist/js/libs/oraclejet-preact/amd/index-5b723369.js +2 -0
  267. package/dist/js/libs/oraclejet-preact/amd/index-5b723369.js.map +1 -0
  268. package/dist/js/libs/oraclejet-preact/amd/index-edca4de4.js +2 -0
  269. package/dist/js/libs/oraclejet-preact/amd/index-edca4de4.js.map +1 -0
  270. package/dist/js/libs/oraclejet-preact/amd/keys-76f62593.js +2 -0
  271. package/dist/js/libs/oraclejet-preact/amd/keys-76f62593.js.map +1 -0
  272. package/dist/js/libs/oraclejet-preact/amd/stringUtils-29f85cc1.js +2 -0
  273. package/dist/js/libs/oraclejet-preact/amd/stringUtils-29f85cc1.js.map +1 -0
  274. package/dist/js/libs/oraclejet-preact/amd/translationBundle.js +1 -1
  275. package/dist/js/libs/oraclejet-preact/amd/tslib.es6-cba79f62.js +2 -0
  276. package/dist/js/libs/oraclejet-preact/amd/tslib.es6-cba79f62.js.map +1 -0
  277. package/dist/js/libs/oraclejet-preact/amd/useFocusWithin-705b4377.js +2 -0
  278. package/dist/js/libs/oraclejet-preact/amd/useFocusWithin-705b4377.js.map +1 -0
  279. package/dist/js/libs/oraclejet-preact/amd/utils/PRIVATE_clientHints.js +1 -1
  280. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_classNames.js +1 -1
  281. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -1
  282. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_interpolations/dimensions.js +1 -1
  283. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_interpolations/flexbox.js +1 -1
  284. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_interpolations/flexitem.js +1 -1
  285. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_interpolations/padding.js +1 -1
  286. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_interpolations/text.js +1 -1
  287. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_logger.js +1 -1
  288. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_mergeInterpolations.js +1 -1
  289. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_size.js +1 -1
  290. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_stringUtils.js +1 -1
  291. package/dist/js/libs/oraclejet-preact/amd/utils/UNSAFE_units.js +1 -1
  292. package/dist/js/libs/oraclejet-preact/cjs/Badge-420e9730.js +42 -0
  293. package/dist/js/libs/oraclejet-preact/cjs/Badge-420e9730.js.map +1 -0
  294. package/dist/js/libs/oraclejet-preact/cjs/Button-15f77c17.js +156 -0
  295. package/dist/js/libs/oraclejet-preact/cjs/Button-15f77c17.js.map +1 -0
  296. package/dist/js/libs/oraclejet-preact/cjs/Chip-c0f67f52.js +58 -0
  297. package/dist/js/libs/oraclejet-preact/cjs/Chip-c0f67f52.js.map +1 -0
  298. package/dist/js/libs/oraclejet-preact/cjs/ClearIcon-07579165.js +62 -0
  299. package/dist/js/libs/oraclejet-preact/cjs/ClearIcon-07579165.js.map +1 -0
  300. package/dist/js/libs/oraclejet-preact/cjs/Collection-6f7a6ef1.js +19 -0
  301. package/dist/js/libs/oraclejet-preact/cjs/Collection-6f7a6ef1.js.map +1 -0
  302. package/dist/js/libs/oraclejet-preact/cjs/ComponentMessage-6298a12b.js +40 -0
  303. package/dist/js/libs/oraclejet-preact/cjs/ComponentMessage-6298a12b.js.map +1 -0
  304. package/dist/js/libs/oraclejet-preact/cjs/ComponentMessageContainer-731ac7d1.js +54 -0
  305. package/dist/js/libs/oraclejet-preact/cjs/ComponentMessageContainer-731ac7d1.js.map +1 -0
  306. package/dist/js/libs/oraclejet-preact/cjs/Flex-f01ae54c.js +40 -0
  307. package/dist/js/libs/oraclejet-preact/cjs/Flex-f01ae54c.js.map +1 -0
  308. package/dist/js/libs/oraclejet-preact/cjs/HiddenAccessible-4b83fb68.js +26 -0
  309. package/dist/js/libs/oraclejet-preact/cjs/HiddenAccessible-4b83fb68.js.map +1 -0
  310. package/dist/js/libs/oraclejet-preact/cjs/HighlightText-08f1c128.js +50 -0
  311. package/dist/js/libs/oraclejet-preact/cjs/HighlightText-08f1c128.js.map +1 -0
  312. package/dist/js/libs/oraclejet-preact/cjs/Icon-76f1f6de.js +89 -0
  313. package/dist/js/libs/oraclejet-preact/cjs/Icon-76f1f6de.js.map +1 -0
  314. package/dist/js/libs/oraclejet-preact/cjs/InputText-88c37ab6.js +98 -0
  315. package/dist/js/libs/oraclejet-preact/cjs/InputText-88c37ab6.js.map +1 -0
  316. package/dist/js/libs/oraclejet-preact/cjs/Link-9310aefd.js +44 -0
  317. package/dist/js/libs/oraclejet-preact/cjs/Link-9310aefd.js.map +1 -0
  318. package/dist/js/libs/oraclejet-preact/cjs/ListView-1d3a35a9.js +571 -0
  319. package/dist/js/libs/oraclejet-preact/cjs/ListView-1d3a35a9.js.map +1 -0
  320. package/dist/js/libs/oraclejet-preact/cjs/Message.types-ff347703.js +18 -0
  321. package/dist/js/libs/oraclejet-preact/cjs/Message.types-ff347703.js.map +1 -0
  322. package/dist/js/libs/oraclejet-preact/cjs/MessageCloseButton-10f0d881.js +42 -0
  323. package/dist/js/libs/oraclejet-preact/cjs/MessageCloseButton-10f0d881.js.map +1 -0
  324. package/dist/js/libs/oraclejet-preact/cjs/MessageDetail-157528e6.js +59 -0
  325. package/dist/js/libs/oraclejet-preact/cjs/MessageDetail-157528e6.js.map +1 -0
  326. package/dist/js/libs/oraclejet-preact/cjs/MessageFormattingUtils-0074d954.js +106 -0
  327. package/dist/js/libs/oraclejet-preact/cjs/MessageFormattingUtils-0074d954.js.map +1 -0
  328. package/dist/js/libs/oraclejet-preact/cjs/MessageStartIcon-20e86734.js +55 -0
  329. package/dist/js/libs/oraclejet-preact/cjs/MessageStartIcon-20e86734.js.map +1 -0
  330. package/dist/js/libs/oraclejet-preact/cjs/MessageSummary-735c1d74.js +32 -0
  331. package/dist/js/libs/oraclejet-preact/cjs/MessageSummary-735c1d74.js.map +1 -0
  332. package/dist/js/libs/oraclejet-preact/cjs/MessageTimestamp-3c262cb0.js +32 -0
  333. package/dist/js/libs/oraclejet-preact/cjs/MessageTimestamp-3c262cb0.js.map +1 -0
  334. package/dist/js/libs/oraclejet-preact/cjs/MessageUtils-de563598.js +116 -0
  335. package/dist/js/libs/oraclejet-preact/cjs/MessageUtils-de563598.js.map +1 -0
  336. package/dist/js/libs/oraclejet-preact/cjs/MessagesManager-011d21b0.js +101 -0
  337. package/dist/js/libs/oraclejet-preact/cjs/MessagesManager-011d21b0.js.map +1 -0
  338. package/dist/js/libs/oraclejet-preact/cjs/RatingGauge-0d94fba3.js +333 -0
  339. package/dist/js/libs/oraclejet-preact/cjs/RatingGauge-0d94fba3.js.map +1 -0
  340. package/dist/js/libs/oraclejet-preact/cjs/SelectMultiple-743f3a15.js +846 -0
  341. package/dist/js/libs/oraclejet-preact/cjs/SelectMultiple-743f3a15.js.map +1 -0
  342. package/dist/js/libs/oraclejet-preact/cjs/Skeleton-03aa066f.js +47 -0
  343. package/dist/js/libs/oraclejet-preact/cjs/Skeleton-03aa066f.js.map +1 -0
  344. package/dist/js/libs/oraclejet-preact/cjs/Spacer-5c577057.js +21 -0
  345. package/dist/js/libs/oraclejet-preact/cjs/Spacer-5c577057.js.map +1 -0
  346. package/dist/js/libs/oraclejet-preact/cjs/Text-80cc2bd1.js +97 -0
  347. package/dist/js/libs/oraclejet-preact/cjs/Text-80cc2bd1.js.map +1 -0
  348. package/dist/js/libs/oraclejet-preact/cjs/TextArea-241c4165.js +70 -0
  349. package/dist/js/libs/oraclejet-preact/cjs/TextArea-241c4165.js.map +1 -0
  350. package/dist/js/libs/oraclejet-preact/cjs/TextAreaAutosize-2240cc0a.js +148 -0
  351. package/dist/js/libs/oraclejet-preact/cjs/TextAreaAutosize-2240cc0a.js.map +1 -0
  352. package/dist/js/libs/oraclejet-preact/cjs/TextFieldInput-36539f38.js +156 -0
  353. package/dist/js/libs/oraclejet-preact/cjs/TextFieldInput-36539f38.js.map +1 -0
  354. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_AspectRatio.js +7 -7
  355. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Avatar.js +3 -3
  356. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Badge.js +3 -3
  357. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Button.js +9 -9
  358. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Center.js +11 -11
  359. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Chip.js +3 -3
  360. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Collapsible.js +14 -14
  361. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Collection.js +2 -2
  362. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_ComponentMessage.js +25 -25
  363. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Environment.js +1 -1
  364. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Flex.js +11 -11
  365. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Floating.js +2 -2
  366. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Grid.js +8 -8
  367. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_HiddenAccessible.js +2 -2
  368. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_HighlightText.js +2 -2
  369. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Icon.js +4 -4
  370. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Icons.js +5 -5
  371. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_InputPassword.js +29 -29
  372. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_InputText.js +30 -30
  373. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Label.js +3 -3
  374. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_LabelValueLayout.js +11 -11
  375. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Layer.js +1 -1
  376. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Link.js +3 -3
  377. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_ListView.js +18 -18
  378. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_LiveRegion.js +1 -1
  379. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Message.js +23 -23
  380. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_MessageBanner.js +23 -23
  381. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Modal.js +1 -1
  382. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_ProgressBar.js +3 -3
  383. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_ProgressCircle.js +3 -3
  384. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_RatingGauge.js +5 -5
  385. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_SelectMultiple.js +36 -36
  386. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Selector.js +14 -14
  387. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Skeleton.js +8 -8
  388. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Spacer.js +10 -10
  389. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_Text.js +7 -7
  390. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_TextArea.js +29 -29
  391. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_TextAreaAutosize.js +29 -29
  392. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_TextField.js +13 -13
  393. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_ThemedIcons.js +6 -6
  394. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_TransitionGroup.js +1 -1
  395. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_UserAssistance.js +25 -25
  396. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_View.js +9 -9
  397. package/dist/js/libs/oraclejet-preact/cjs/UNSAFE_VirtualizedCollection.js +3 -3
  398. package/dist/js/libs/oraclejet-preact/cjs/VirtualizedCollection-6e9bb776.js +209 -0
  399. package/dist/js/libs/oraclejet-preact/cjs/VirtualizedCollection-6e9bb776.js.map +1 -0
  400. package/dist/js/libs/oraclejet-preact/cjs/_curry1-5faf3052.js +71 -0
  401. package/dist/js/libs/oraclejet-preact/cjs/_curry1-5faf3052.js.map +1 -0
  402. package/dist/js/libs/oraclejet-preact/cjs/_curry2-e5c2cbad.js +48 -0
  403. package/dist/js/libs/oraclejet-preact/cjs/_curry2-e5c2cbad.js.map +1 -0
  404. package/dist/js/libs/oraclejet-preact/cjs/_has-610ca25f.js +14 -0
  405. package/dist/js/libs/oraclejet-preact/cjs/_has-610ca25f.js.map +1 -0
  406. package/dist/js/libs/oraclejet-preact/cjs/bundle-02e79ee7.js +34 -0
  407. package/dist/js/libs/oraclejet-preact/cjs/bundle-02e79ee7.js.map +1 -0
  408. package/dist/js/libs/oraclejet-preact/cjs/bundle-05013fbe.js +34 -0
  409. package/dist/js/libs/oraclejet-preact/cjs/bundle-05013fbe.js.map +1 -0
  410. package/dist/js/libs/oraclejet-preact/cjs/bundle-0a405114.js +34 -0
  411. package/dist/js/libs/oraclejet-preact/cjs/bundle-0a405114.js.map +1 -0
  412. package/dist/js/libs/oraclejet-preact/cjs/bundle-1240e7d8.js +34 -0
  413. package/dist/js/libs/oraclejet-preact/cjs/bundle-1240e7d8.js.map +1 -0
  414. package/dist/js/libs/oraclejet-preact/cjs/bundle-21f5d3d2.js +34 -0
  415. package/dist/js/libs/oraclejet-preact/cjs/bundle-21f5d3d2.js.map +1 -0
  416. package/dist/js/libs/oraclejet-preact/cjs/bundle-29f26912.js +34 -0
  417. package/dist/js/libs/oraclejet-preact/cjs/bundle-29f26912.js.map +1 -0
  418. package/dist/js/libs/oraclejet-preact/cjs/bundle-432bad93.js +34 -0
  419. package/dist/js/libs/oraclejet-preact/cjs/bundle-432bad93.js.map +1 -0
  420. package/dist/js/libs/oraclejet-preact/cjs/bundle-4456f8b5.js +34 -0
  421. package/dist/js/libs/oraclejet-preact/cjs/bundle-4456f8b5.js.map +1 -0
  422. package/dist/js/libs/oraclejet-preact/cjs/bundle-490394d6.js +34 -0
  423. package/dist/js/libs/oraclejet-preact/cjs/bundle-490394d6.js.map +1 -0
  424. package/dist/js/libs/oraclejet-preact/cjs/bundle-4c7789ee.js +34 -0
  425. package/dist/js/libs/oraclejet-preact/cjs/bundle-4c7789ee.js.map +1 -0
  426. package/dist/js/libs/oraclejet-preact/cjs/bundle-56a1b7cc.js +34 -0
  427. package/dist/js/libs/oraclejet-preact/cjs/bundle-56a1b7cc.js.map +1 -0
  428. package/dist/js/libs/oraclejet-preact/cjs/bundle-5a669b5b.js +33 -0
  429. package/dist/js/libs/oraclejet-preact/cjs/bundle-5a669b5b.js.map +1 -0
  430. package/dist/js/libs/oraclejet-preact/cjs/bundle-6a7cc500.js +34 -0
  431. package/dist/js/libs/oraclejet-preact/cjs/bundle-6a7cc500.js.map +1 -0
  432. package/dist/js/libs/oraclejet-preact/cjs/bundle-6ba47130.js +34 -0
  433. package/dist/js/libs/oraclejet-preact/cjs/bundle-6ba47130.js.map +1 -0
  434. package/dist/js/libs/oraclejet-preact/cjs/bundle-6e74471c.js +34 -0
  435. package/dist/js/libs/oraclejet-preact/cjs/bundle-6e74471c.js.map +1 -0
  436. package/dist/js/libs/oraclejet-preact/cjs/bundle-6fec34a0.js +34 -0
  437. package/dist/js/libs/oraclejet-preact/cjs/bundle-6fec34a0.js.map +1 -0
  438. package/dist/js/libs/oraclejet-preact/cjs/bundle-70156bc9.js +33 -0
  439. package/dist/js/libs/oraclejet-preact/cjs/bundle-70156bc9.js.map +1 -0
  440. package/dist/js/libs/oraclejet-preact/cjs/bundle-7248756f.js +34 -0
  441. package/dist/js/libs/oraclejet-preact/cjs/bundle-7248756f.js.map +1 -0
  442. package/dist/js/libs/oraclejet-preact/cjs/bundle-78955edd.js +34 -0
  443. package/dist/js/libs/oraclejet-preact/cjs/bundle-78955edd.js.map +1 -0
  444. package/dist/js/libs/oraclejet-preact/cjs/bundle-84bfaa6f.js +34 -0
  445. package/dist/js/libs/oraclejet-preact/cjs/bundle-84bfaa6f.js.map +1 -0
  446. package/dist/js/libs/oraclejet-preact/cjs/bundle-8620596c.js +34 -0
  447. package/dist/js/libs/oraclejet-preact/cjs/bundle-8620596c.js.map +1 -0
  448. package/dist/js/libs/oraclejet-preact/cjs/bundle-864d2723.js +34 -0
  449. package/dist/js/libs/oraclejet-preact/cjs/bundle-864d2723.js.map +1 -0
  450. package/dist/js/libs/oraclejet-preact/cjs/bundle-87a29d0d.js +34 -0
  451. package/dist/js/libs/oraclejet-preact/cjs/bundle-87a29d0d.js.map +1 -0
  452. package/dist/js/libs/oraclejet-preact/cjs/bundle-8da7d407.js +34 -0
  453. package/dist/js/libs/oraclejet-preact/cjs/bundle-8da7d407.js.map +1 -0
  454. package/dist/js/libs/oraclejet-preact/cjs/bundle-95f01296.js +34 -0
  455. package/dist/js/libs/oraclejet-preact/cjs/bundle-95f01296.js.map +1 -0
  456. package/dist/js/libs/oraclejet-preact/cjs/bundle-9a6a3edd.js +34 -0
  457. package/dist/js/libs/oraclejet-preact/cjs/bundle-9a6a3edd.js.map +1 -0
  458. package/dist/js/libs/oraclejet-preact/cjs/bundle-9c610e0b.js +34 -0
  459. package/dist/js/libs/oraclejet-preact/cjs/bundle-9c610e0b.js.map +1 -0
  460. package/dist/js/libs/oraclejet-preact/cjs/bundle-9cbc7da0.js +34 -0
  461. package/dist/js/libs/oraclejet-preact/cjs/bundle-9cbc7da0.js.map +1 -0
  462. package/dist/js/libs/oraclejet-preact/cjs/bundle-9d23f540.js +34 -0
  463. package/dist/js/libs/oraclejet-preact/cjs/bundle-9d23f540.js.map +1 -0
  464. package/dist/js/libs/oraclejet-preact/cjs/bundle-9fe01f8f.js +34 -0
  465. package/dist/js/libs/oraclejet-preact/cjs/bundle-9fe01f8f.js.map +1 -0
  466. package/dist/js/libs/oraclejet-preact/cjs/bundle-a303e606.js +34 -0
  467. package/dist/js/libs/oraclejet-preact/cjs/bundle-a303e606.js.map +1 -0
  468. package/dist/js/libs/oraclejet-preact/cjs/bundle-a41b7ce2.js +32 -0
  469. package/dist/js/libs/oraclejet-preact/cjs/bundle-a41b7ce2.js.map +1 -0
  470. package/dist/js/libs/oraclejet-preact/cjs/bundle-aea17cf2.js +34 -0
  471. package/dist/js/libs/oraclejet-preact/cjs/bundle-aea17cf2.js.map +1 -0
  472. package/dist/js/libs/oraclejet-preact/cjs/bundle-b0f9ff88.js +34 -0
  473. package/dist/js/libs/oraclejet-preact/cjs/bundle-b0f9ff88.js.map +1 -0
  474. package/dist/js/libs/oraclejet-preact/cjs/bundle-b41d0d39.js +34 -0
  475. package/dist/js/libs/oraclejet-preact/cjs/bundle-b41d0d39.js.map +1 -0
  476. package/dist/js/libs/oraclejet-preact/cjs/bundle-be6a120d.js +34 -0
  477. package/dist/js/libs/oraclejet-preact/cjs/bundle-be6a120d.js.map +1 -0
  478. package/dist/js/libs/oraclejet-preact/cjs/bundle-c72d9597.js +32 -0
  479. package/dist/js/libs/oraclejet-preact/cjs/bundle-c72d9597.js.map +1 -0
  480. package/dist/js/libs/oraclejet-preact/cjs/bundle-c874e042.js +34 -0
  481. package/dist/js/libs/oraclejet-preact/cjs/bundle-c874e042.js.map +1 -0
  482. package/dist/js/libs/oraclejet-preact/cjs/bundle-cc4234a6.js +34 -0
  483. package/dist/js/libs/oraclejet-preact/cjs/bundle-cc4234a6.js.map +1 -0
  484. package/dist/js/libs/oraclejet-preact/cjs/bundle-d36c888f.js +34 -0
  485. package/dist/js/libs/oraclejet-preact/cjs/bundle-d36c888f.js.map +1 -0
  486. package/dist/js/libs/oraclejet-preact/cjs/bundle-def9b695.js +33 -0
  487. package/dist/js/libs/oraclejet-preact/cjs/bundle-def9b695.js.map +1 -0
  488. package/dist/js/libs/oraclejet-preact/cjs/bundle-e0d6bf42.js +33 -0
  489. package/dist/js/libs/oraclejet-preact/cjs/bundle-e0d6bf42.js.map +1 -0
  490. package/dist/js/libs/oraclejet-preact/cjs/bundle-e9765b40.js +34 -0
  491. package/dist/js/libs/oraclejet-preact/cjs/bundle-e9765b40.js.map +1 -0
  492. package/dist/js/libs/oraclejet-preact/cjs/bundle-e9b99669.js +34 -0
  493. package/dist/js/libs/oraclejet-preact/cjs/bundle-e9b99669.js.map +1 -0
  494. package/dist/js/libs/oraclejet-preact/cjs/bundle-ee5e3fd6.js +34 -0
  495. package/dist/js/libs/oraclejet-preact/cjs/bundle-ee5e3fd6.js.map +1 -0
  496. package/dist/js/libs/oraclejet-preact/cjs/bundle-ef61a75c.js +34 -0
  497. package/dist/js/libs/oraclejet-preact/cjs/bundle-ef61a75c.js.map +1 -0
  498. package/dist/js/libs/oraclejet-preact/cjs/bundle-f7b54e4f.js +34 -0
  499. package/dist/js/libs/oraclejet-preact/cjs/bundle-f7b54e4f.js.map +1 -0
  500. package/dist/js/libs/oraclejet-preact/cjs/bundle-f96daefd.js +34 -0
  501. package/dist/js/libs/oraclejet-preact/cjs/bundle-f96daefd.js.map +1 -0
  502. package/dist/js/libs/oraclejet-preact/cjs/classNames-fc3dcbbd.js +17 -0
  503. package/dist/js/libs/oraclejet-preact/cjs/classNames-fc3dcbbd.js.map +1 -0
  504. package/dist/js/libs/oraclejet-preact/cjs/clientHints-70f2f24e.js +146 -0
  505. package/dist/js/libs/oraclejet-preact/cjs/clientHints-70f2f24e.js.map +1 -0
  506. package/dist/js/libs/oraclejet-preact/cjs/flexbox-81caeb6e.js +42 -0
  507. package/dist/js/libs/oraclejet-preact/cjs/flexbox-81caeb6e.js.map +1 -0
  508. package/dist/js/libs/oraclejet-preact/cjs/flexitem-00e845fa.js +42 -0
  509. package/dist/js/libs/oraclejet-preact/cjs/flexitem-00e845fa.js.map +1 -0
  510. package/dist/js/libs/oraclejet-preact/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  511. package/dist/js/libs/oraclejet-preact/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
  512. package/dist/js/libs/oraclejet-preact/cjs/hooks/PRIVATE_useSelection.js +1 -1
  513. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useActionable.js +1 -1
  514. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useActive.js +1 -1
  515. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useAnimation.js +2 -2
  516. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
  517. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
  518. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
  519. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  520. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  521. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useDebounce.js +1 -1
  522. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useFloating.js +2 -2
  523. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useFocus.js +1 -1
  524. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
  525. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
  526. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useFormContext.js +1 -1
  527. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
  528. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useHover.js +1 -1
  529. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useId.js +1 -1
  530. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
  531. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  532. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useLongPress.js +1 -1
  533. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useMessagesFocusManager.js +1 -1
  534. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
  535. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_usePan.js +1 -1
  536. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_usePress.js +1 -1
  537. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useSwipe.js +1 -1
  538. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useTap.js +1 -1
  539. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useTextField.js +1 -1
  540. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
  541. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useTheme.js +1 -1
  542. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useTimer.js +1 -1
  543. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useToggle.js +1 -1
  544. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useTooltip.js +3 -3
  545. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useTouch.js +1 -1
  546. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
  547. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
  548. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useUser.js +1 -1
  549. package/dist/js/libs/oraclejet-preact/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
  550. package/dist/js/libs/oraclejet-preact/cjs/index-2e88ba1d.js +58 -0
  551. package/dist/js/libs/oraclejet-preact/cjs/index-2e88ba1d.js.map +1 -0
  552. package/dist/js/libs/oraclejet-preact/cjs/index-afc087b3.js +190 -0
  553. package/dist/js/libs/oraclejet-preact/cjs/index-afc087b3.js.map +1 -0
  554. package/dist/js/libs/oraclejet-preact/cjs/index-d4367117.js +48 -0
  555. package/dist/js/libs/oraclejet-preact/cjs/index-d4367117.js.map +1 -0
  556. package/dist/js/libs/oraclejet-preact/cjs/keys-bf558880.js +128 -0
  557. package/dist/js/libs/oraclejet-preact/cjs/keys-bf558880.js.map +1 -0
  558. package/dist/js/libs/oraclejet-preact/cjs/stringUtils-4ca4cde3.js +90 -0
  559. package/dist/js/libs/oraclejet-preact/cjs/stringUtils-4ca4cde3.js.map +1 -0
  560. package/dist/js/libs/oraclejet-preact/cjs/translationBundle.js +49 -49
  561. package/dist/js/libs/oraclejet-preact/cjs/tslib.es6-2677186b.js +246 -0
  562. package/dist/js/libs/oraclejet-preact/cjs/tslib.es6-2677186b.js.map +1 -0
  563. package/dist/js/libs/oraclejet-preact/cjs/useFocusWithin-8752fcdb.js +40 -0
  564. package/dist/js/libs/oraclejet-preact/cjs/useFocusWithin-8752fcdb.js.map +1 -0
  565. package/dist/js/libs/oraclejet-preact/cjs/utils/PRIVATE_clientHints.js +2 -2
  566. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_arrayUtils.js +1 -1
  567. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_classNames.js +2 -2
  568. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_componentUtils.js +1 -1
  569. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_dataProvider.js +1 -1
  570. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_getLocale.js +1 -1
  571. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
  572. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
  573. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/boxalignment.js +5 -5
  574. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
  575. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/dimensions.js +3 -3
  576. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
  577. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
  578. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
  579. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
  580. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/padding.js +2 -2
  581. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_interpolations/text.js +4 -4
  582. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_keys.js +1 -1
  583. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_lengthFilter.js +1 -1
  584. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_logger.js +3 -3
  585. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
  586. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_mergeInterpolations.js +5 -5
  587. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_mergeProps.js +1 -1
  588. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_roles.js +1 -1
  589. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_size.js +2 -2
  590. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_soundUtils.js +1 -1
  591. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_stringUtils.js +2 -2
  592. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_typeUtils.js +1 -1
  593. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_units.js +2 -2
  594. package/dist/js/libs/oraclejet-preact/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
  595. package/dist/js/libs/oraclejet-preact/es/ClearIcon-75f2ec0e.js +60 -0
  596. package/dist/js/libs/oraclejet-preact/es/ClearIcon-75f2ec0e.js.map +1 -0
  597. package/dist/js/libs/oraclejet-preact/es/UNSAFE_AspectRatio.js +5 -5
  598. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Avatar.js +2 -2
  599. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Badge.js +1 -1
  600. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Button.js +5 -5
  601. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Center.js +6 -6
  602. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Chip.js +1 -1
  603. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Collapsible.js +6 -6
  604. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Collection.js +1 -1
  605. package/dist/js/libs/oraclejet-preact/es/UNSAFE_ComponentMessage.js +6 -6
  606. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Environment.js +1 -1
  607. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Flex.js +6 -6
  608. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Floating.js +2 -2
  609. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Grid.js +6 -6
  610. package/dist/js/libs/oraclejet-preact/es/UNSAFE_HiddenAccessible.js +1 -1
  611. package/dist/js/libs/oraclejet-preact/es/UNSAFE_HighlightText.js +1 -1
  612. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Icon.js +2 -2
  613. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Icons.js +2 -2
  614. package/dist/js/libs/oraclejet-preact/es/UNSAFE_InputPassword.js +7 -7
  615. package/dist/js/libs/oraclejet-preact/es/UNSAFE_InputText.js +7 -7
  616. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Label.js +2 -2
  617. package/dist/js/libs/oraclejet-preact/es/UNSAFE_LabelValueLayout.js +6 -6
  618. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Layer.js +1 -1
  619. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Link.js +1 -1
  620. package/dist/js/libs/oraclejet-preact/es/UNSAFE_ListView.js +6 -6
  621. package/dist/js/libs/oraclejet-preact/es/UNSAFE_LiveRegion.js +1 -1
  622. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Message.css +6 -6
  623. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Message.js +6 -6
  624. package/dist/js/libs/oraclejet-preact/es/UNSAFE_MessageBanner.js +6 -6
  625. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Modal.js +1 -1
  626. package/dist/js/libs/oraclejet-preact/es/UNSAFE_ProgressBar.js +2 -2
  627. package/dist/js/libs/oraclejet-preact/es/UNSAFE_ProgressCircle.js +2 -2
  628. package/dist/js/libs/oraclejet-preact/es/UNSAFE_RatingGauge.js +3 -3
  629. package/dist/js/libs/oraclejet-preact/es/UNSAFE_SelectMultiple.css +6 -6
  630. package/dist/js/libs/oraclejet-preact/es/UNSAFE_SelectMultiple.js +7 -7
  631. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Selector.js +6 -6
  632. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Skeleton.js +5 -5
  633. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Spacer.js +6 -6
  634. package/dist/js/libs/oraclejet-preact/es/UNSAFE_Text.js +5 -5
  635. package/dist/js/libs/oraclejet-preact/es/UNSAFE_TextArea.js +6 -6
  636. package/dist/js/libs/oraclejet-preact/es/UNSAFE_TextAreaAutosize.js +6 -6
  637. package/dist/js/libs/oraclejet-preact/es/UNSAFE_TextField.js +6 -6
  638. package/dist/js/libs/oraclejet-preact/es/UNSAFE_ThemedIcons.js +2 -2
  639. package/dist/js/libs/oraclejet-preact/es/UNSAFE_TransitionGroup.js +1 -1
  640. package/dist/js/libs/oraclejet-preact/es/UNSAFE_UserAssistance.js +6 -6
  641. package/dist/js/libs/oraclejet-preact/es/UNSAFE_View.js +6 -6
  642. package/dist/js/libs/oraclejet-preact/es/UNSAFE_VirtualizedCollection.js +1 -1
  643. package/dist/js/libs/oraclejet-preact/es/_curry1-2810342d.js +68 -0
  644. package/dist/js/libs/oraclejet-preact/es/_curry1-2810342d.js.map +1 -0
  645. package/dist/js/libs/oraclejet-preact/es/_curry2-c0ab9f51.js +46 -0
  646. package/dist/js/libs/oraclejet-preact/es/_curry2-c0ab9f51.js.map +1 -0
  647. package/dist/js/libs/oraclejet-preact/es/_has-ecc901c3.js +12 -0
  648. package/dist/js/libs/oraclejet-preact/es/_has-ecc901c3.js.map +1 -0
  649. package/dist/js/libs/oraclejet-preact/es/bundle-02198e2e.js +32 -0
  650. package/dist/js/libs/oraclejet-preact/es/bundle-02198e2e.js.map +1 -0
  651. package/dist/js/libs/oraclejet-preact/es/bundle-028ddffe.js +32 -0
  652. package/dist/js/libs/oraclejet-preact/es/bundle-028ddffe.js.map +1 -0
  653. package/dist/js/libs/oraclejet-preact/es/bundle-02dc257c.js +32 -0
  654. package/dist/js/libs/oraclejet-preact/es/bundle-02dc257c.js.map +1 -0
  655. package/dist/js/libs/oraclejet-preact/es/bundle-0c603dc8.js +30 -0
  656. package/dist/js/libs/oraclejet-preact/es/bundle-0c603dc8.js.map +1 -0
  657. package/dist/js/libs/oraclejet-preact/es/bundle-12a89922.js +32 -0
  658. package/dist/js/libs/oraclejet-preact/es/bundle-12a89922.js.map +1 -0
  659. package/dist/js/libs/oraclejet-preact/es/bundle-1f79573e.js +32 -0
  660. package/dist/js/libs/oraclejet-preact/es/bundle-1f79573e.js.map +1 -0
  661. package/dist/js/libs/oraclejet-preact/es/bundle-2773e539.js +32 -0
  662. package/dist/js/libs/oraclejet-preact/es/bundle-2773e539.js.map +1 -0
  663. package/dist/js/libs/oraclejet-preact/es/bundle-2ade38dd.js +32 -0
  664. package/dist/js/libs/oraclejet-preact/es/bundle-2ade38dd.js.map +1 -0
  665. package/dist/js/libs/oraclejet-preact/es/bundle-34783650.js +32 -0
  666. package/dist/js/libs/oraclejet-preact/es/bundle-34783650.js.map +1 -0
  667. package/dist/js/libs/oraclejet-preact/es/bundle-38ddb41f.js +30 -0
  668. package/dist/js/libs/oraclejet-preact/es/bundle-38ddb41f.js.map +1 -0
  669. package/dist/js/libs/oraclejet-preact/es/bundle-4002eaa7.js +32 -0
  670. package/dist/js/libs/oraclejet-preact/es/bundle-4002eaa7.js.map +1 -0
  671. package/dist/js/libs/oraclejet-preact/es/bundle-43ebab66.js +32 -0
  672. package/dist/js/libs/oraclejet-preact/es/bundle-43ebab66.js.map +1 -0
  673. package/dist/js/libs/oraclejet-preact/es/bundle-44b0de6d.js +32 -0
  674. package/dist/js/libs/oraclejet-preact/es/bundle-44b0de6d.js.map +1 -0
  675. package/dist/js/libs/oraclejet-preact/es/bundle-4a03e960.js +32 -0
  676. package/dist/js/libs/oraclejet-preact/es/bundle-4a03e960.js.map +1 -0
  677. package/dist/js/libs/oraclejet-preact/es/bundle-50646c94.js +31 -0
  678. package/dist/js/libs/oraclejet-preact/es/bundle-50646c94.js.map +1 -0
  679. package/dist/js/libs/oraclejet-preact/es/bundle-522b6756.js +32 -0
  680. package/dist/js/libs/oraclejet-preact/es/bundle-522b6756.js.map +1 -0
  681. package/dist/js/libs/oraclejet-preact/es/bundle-55f08f5a.js +32 -0
  682. package/dist/js/libs/oraclejet-preact/es/bundle-55f08f5a.js.map +1 -0
  683. package/dist/js/libs/oraclejet-preact/es/bundle-56413837.js +31 -0
  684. package/dist/js/libs/oraclejet-preact/es/bundle-56413837.js.map +1 -0
  685. package/dist/js/libs/oraclejet-preact/es/bundle-56eab92f.js +32 -0
  686. package/dist/js/libs/oraclejet-preact/es/bundle-56eab92f.js.map +1 -0
  687. package/dist/js/libs/oraclejet-preact/es/bundle-622b457d.js +32 -0
  688. package/dist/js/libs/oraclejet-preact/es/bundle-622b457d.js.map +1 -0
  689. package/dist/js/libs/oraclejet-preact/es/bundle-65ae7980.js +32 -0
  690. package/dist/js/libs/oraclejet-preact/es/bundle-65ae7980.js.map +1 -0
  691. package/dist/js/libs/oraclejet-preact/es/bundle-738a5738.js +32 -0
  692. package/dist/js/libs/oraclejet-preact/es/bundle-738a5738.js.map +1 -0
  693. package/dist/js/libs/oraclejet-preact/es/bundle-79be4ab0.js +32 -0
  694. package/dist/js/libs/oraclejet-preact/es/bundle-79be4ab0.js.map +1 -0
  695. package/dist/js/libs/oraclejet-preact/es/bundle-7bcd753d.js +32 -0
  696. package/dist/js/libs/oraclejet-preact/es/bundle-7bcd753d.js.map +1 -0
  697. package/dist/js/libs/oraclejet-preact/es/bundle-8c1efaa5.js +32 -0
  698. package/dist/js/libs/oraclejet-preact/es/bundle-8c1efaa5.js.map +1 -0
  699. package/dist/js/libs/oraclejet-preact/es/bundle-a5283639.js +32 -0
  700. package/dist/js/libs/oraclejet-preact/es/bundle-a5283639.js.map +1 -0
  701. package/dist/js/libs/oraclejet-preact/es/bundle-a6593ac9.js +32 -0
  702. package/dist/js/libs/oraclejet-preact/es/bundle-a6593ac9.js.map +1 -0
  703. package/dist/js/libs/oraclejet-preact/es/bundle-a6d761c7.js +32 -0
  704. package/dist/js/libs/oraclejet-preact/es/bundle-a6d761c7.js.map +1 -0
  705. package/dist/js/libs/oraclejet-preact/es/bundle-b074b697.js +31 -0
  706. package/dist/js/libs/oraclejet-preact/es/bundle-b074b697.js.map +1 -0
  707. package/dist/js/libs/oraclejet-preact/es/bundle-b380e5af.js +32 -0
  708. package/dist/js/libs/oraclejet-preact/es/bundle-b380e5af.js.map +1 -0
  709. package/dist/js/libs/oraclejet-preact/es/bundle-b45c297f.js +32 -0
  710. package/dist/js/libs/oraclejet-preact/es/bundle-b45c297f.js.map +1 -0
  711. package/dist/js/libs/oraclejet-preact/es/bundle-b7187f63.js +32 -0
  712. package/dist/js/libs/oraclejet-preact/es/bundle-b7187f63.js.map +1 -0
  713. package/dist/js/libs/oraclejet-preact/es/bundle-bc5e4921.js +31 -0
  714. package/dist/js/libs/oraclejet-preact/es/bundle-bc5e4921.js.map +1 -0
  715. package/dist/js/libs/oraclejet-preact/es/bundle-c302a85d.js +32 -0
  716. package/dist/js/libs/oraclejet-preact/es/bundle-c302a85d.js.map +1 -0
  717. package/dist/js/libs/oraclejet-preact/es/bundle-c3505a43.js +32 -0
  718. package/dist/js/libs/oraclejet-preact/es/bundle-c3505a43.js.map +1 -0
  719. package/dist/js/libs/oraclejet-preact/es/bundle-c4913205.js +32 -0
  720. package/dist/js/libs/oraclejet-preact/es/bundle-c4913205.js.map +1 -0
  721. package/dist/js/libs/oraclejet-preact/es/bundle-ca236e54.js +32 -0
  722. package/dist/js/libs/oraclejet-preact/es/bundle-ca236e54.js.map +1 -0
  723. package/dist/js/libs/oraclejet-preact/es/bundle-cc8f7af3.js +32 -0
  724. package/dist/js/libs/oraclejet-preact/es/bundle-cc8f7af3.js.map +1 -0
  725. package/dist/js/libs/oraclejet-preact/es/bundle-cf1028ba.js +32 -0
  726. package/dist/js/libs/oraclejet-preact/es/bundle-cf1028ba.js.map +1 -0
  727. package/dist/js/libs/oraclejet-preact/es/bundle-cfe0b6f1.js +32 -0
  728. package/dist/js/libs/oraclejet-preact/es/bundle-cfe0b6f1.js.map +1 -0
  729. package/dist/js/libs/oraclejet-preact/es/bundle-d00813d0.js +32 -0
  730. package/dist/js/libs/oraclejet-preact/es/bundle-d00813d0.js.map +1 -0
  731. package/dist/js/libs/oraclejet-preact/es/bundle-d10b7e02.js +32 -0
  732. package/dist/js/libs/oraclejet-preact/es/bundle-d10b7e02.js.map +1 -0
  733. package/dist/js/libs/oraclejet-preact/es/bundle-d7973d5c.js +32 -0
  734. package/dist/js/libs/oraclejet-preact/es/bundle-d7973d5c.js.map +1 -0
  735. package/dist/js/libs/oraclejet-preact/es/bundle-e0c0f942.js +32 -0
  736. package/dist/js/libs/oraclejet-preact/es/bundle-e0c0f942.js.map +1 -0
  737. package/dist/js/libs/oraclejet-preact/es/bundle-ee818ff0.js +32 -0
  738. package/dist/js/libs/oraclejet-preact/es/bundle-ee818ff0.js.map +1 -0
  739. package/dist/js/libs/oraclejet-preact/es/bundle-f1bf3e33.js +32 -0
  740. package/dist/js/libs/oraclejet-preact/es/bundle-f1bf3e33.js.map +1 -0
  741. package/dist/js/libs/oraclejet-preact/es/bundle-fadcec64.js +32 -0
  742. package/dist/js/libs/oraclejet-preact/es/bundle-fadcec64.js.map +1 -0
  743. package/dist/js/libs/oraclejet-preact/es/bundle-ffd09a4c.js +32 -0
  744. package/dist/js/libs/oraclejet-preact/es/bundle-ffd09a4c.js.map +1 -0
  745. package/dist/js/libs/oraclejet-preact/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  746. package/dist/js/libs/oraclejet-preact/es/hooks/PRIVATE_useCurrentKey.js +1 -1
  747. package/dist/js/libs/oraclejet-preact/es/hooks/PRIVATE_useSelection.js +1 -1
  748. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useActionable.js +1 -1
  749. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useActive.js +1 -1
  750. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useAnimation.js +2 -2
  751. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
  752. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useBreakpoints.js +1 -1
  753. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useClearIcon.js +1 -1
  754. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  755. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  756. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useDebounce.js +1 -1
  757. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useFloating.js +2 -2
  758. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useFocus.js +1 -1
  759. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useFocusWithin.js +1 -1
  760. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
  761. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useFormContext.js +1 -1
  762. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
  763. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useHover.js +1 -1
  764. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useId.js +1 -1
  765. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useLengthFilter.js +1 -1
  766. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  767. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useLongPress.js +1 -1
  768. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useMessagesFocusManager.js +1 -1
  769. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useOutsideClick.js +1 -1
  770. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_usePan.js +1 -1
  771. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_usePress.js +1 -1
  772. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useSwipe.js +1 -1
  773. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useTap.js +1 -1
  774. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useTextField.js +1 -1
  775. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  776. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useTheme.js +1 -1
  777. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useTimer.js +1 -1
  778. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useToggle.js +1 -1
  779. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useTooltip.js +2 -2
  780. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useTouch.js +1 -1
  781. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
  782. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
  783. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useUser.js +1 -1
  784. package/dist/js/libs/oraclejet-preact/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
  785. package/dist/js/libs/oraclejet-preact/es/index-26898d27.js +178 -0
  786. package/dist/js/libs/oraclejet-preact/es/index-26898d27.js.map +1 -0
  787. package/dist/js/libs/oraclejet-preact/es/keys-23c74c78.js +126 -0
  788. package/dist/js/libs/oraclejet-preact/es/keys-23c74c78.js.map +1 -0
  789. package/dist/js/libs/oraclejet-preact/es/translationBundle.js +49 -49
  790. package/dist/js/libs/oraclejet-preact/es/tslib.es6-0b6d8c73.js +244 -0
  791. package/dist/js/libs/oraclejet-preact/es/tslib.es6-0b6d8c73.js.map +1 -0
  792. package/dist/js/libs/oraclejet-preact/es/utils/PRIVATE_clientHints.js +1 -1
  793. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_arrayUtils.js +1 -1
  794. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_classNames.js +1 -1
  795. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_componentUtils.js +1 -1
  796. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_dataProvider.js +1 -1
  797. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_getLocale.js +1 -1
  798. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/aria.js +1 -1
  799. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/borders.js +1 -1
  800. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/boxalignment.js +4 -4
  801. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/colors.js +1 -1
  802. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
  803. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/flexbox.js +4 -4
  804. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/flexitem.js +4 -4
  805. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/grid.js +1 -1
  806. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/griditem.js +1 -1
  807. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/padding.js +1 -1
  808. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_interpolations/text.js +4 -4
  809. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_keys.js +1 -1
  810. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_lengthFilter.js +1 -1
  811. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_logger.js +3 -3
  812. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
  813. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_mergeInterpolations.js +4 -4
  814. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_mergeProps.js +1 -1
  815. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_roles.js +1 -1
  816. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_size.js +1 -1
  817. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_soundUtils.js +1 -1
  818. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_stringUtils.js +1 -1
  819. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_typeUtils.js +1 -1
  820. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_units.js +1 -1
  821. package/dist/js/libs/oraclejet-preact/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
  822. package/dist/js/libs/oraclejet-preact/package.json +1 -1
  823. package/dist/metadata/components/allComponents.json +239 -239
  824. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/accordion/themes/base/_oj-accordion.scss +0 -0
  825. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/accordion/themes/redwood/_oj-accordion.cssvars.scss +0 -0
  826. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/accordion/themes/redwood/oj-accordion.scss +0 -0
  827. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/accordion/themes/stable/_oj-accordion.cssvars.scss +0 -0
  828. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/accordion/themes/stable/oj-accordion.scss +0 -0
  829. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/action-card/themes/base/_oj-action-card.scss +0 -0
  830. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/action-card/themes/redwood/_oj-action-card.cssvars.scss +0 -0
  831. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/action-card/themes/redwood/oj-action-card.scss +0 -0
  832. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/action-card/themes/stable/_oj-action-card.cssvars.scss +0 -0
  833. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/action-card/themes/stable/oj-action-card.scss +0 -0
  834. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/base/_oj.common.servervars.scss +0 -0
  835. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/base/oj.common.settings.cssvariables.css +0 -0
  836. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/redwood/_oj-all-components-common.scss +0 -0
  837. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/redwood/_oj-all-components-notag.scss +0 -0
  838. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/redwood/_oj-all-components.scss +0 -0
  839. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/redwood/_oj.redwood.settings.scss +0 -0
  840. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/redwood/oj.redwood.cssvars.settings.css +0 -0
  841. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/stable/_oj-all-components-common.scss +0 -0
  842. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/stable/_oj-all-components-notag.scss +0 -0
  843. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/stable/_oj-all-components.scss +0 -0
  844. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/stable/_oj.stable.settings.scss +0 -0
  845. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/all-components/themes/stable/oj.stable.cssvars.settings.css +0 -0
  846. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/animation/themes/base/_oj-animation.scss +0 -0
  847. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/animation/themes/redwood/_oj-animation.cssvars.scss +0 -0
  848. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/animation/themes/redwood/_oj-animation.servervars.scss +0 -0
  849. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/animation/themes/redwood/oj-animation.scss +0 -0
  850. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/animation/themes/stable/_oj-animation.cssvars.scss +0 -0
  851. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/animation/themes/stable/_oj-animation.servervars.scss +0 -0
  852. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/animation/themes/stable/oj-animation.scss +0 -0
  853. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout/themes/base/_oj-app-layout.scss +0 -0
  854. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout/themes/redwood/_oj-app-layout.cssvars.scss +0 -0
  855. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout/themes/redwood/_oj-app-layout.scss +0 -0
  856. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout/themes/stable/_oj-app-layout.cssvars.scss +0 -0
  857. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout/themes/stable/_oj-app-layout.scss +0 -0
  858. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid-ignore.scoped.cssvars.scss +0 -0
  859. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid.scss +0 -0
  860. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-hybrid/themes/redwood/_oj-app-layout-hybrid.cssvars.scss +0 -0
  861. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-hybrid/themes/redwood/oj-app-layout-hybrid.scss +0 -0
  862. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-hybrid/themes/stable/_oj-app-layout-hybrid.cssvars.scss +0 -0
  863. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-hybrid/themes/stable/oj-app-layout-hybrid.scss +0 -0
  864. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-web/themes/base/_oj-app-layout-web.scss +0 -0
  865. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-web/themes/redwood/_oj-app-layout-web.cssvars.scss +0 -0
  866. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-web/themes/redwood/oj-app-layout-web.scss +0 -0
  867. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-web/themes/stable/_oj-app-layout-web.cssvars.scss +0 -0
  868. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/app-layout-web/themes/stable/oj-app-layout-web.scss +0 -0
  869. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/avatar/themes/base/_oj-avatar.scss +0 -0
  870. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/avatar/themes/redwood/_oj-avatar-ignore.scoped.cssvars.scss +0 -0
  871. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/avatar/themes/redwood/_oj-avatar-scoped.cssvars.scss +0 -0
  872. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/avatar/themes/redwood/_oj-avatar.cssvars.scss +0 -0
  873. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/avatar/themes/redwood/oj-avatar.scss +0 -0
  874. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/avatar/themes/stable/_oj-avatar-scoped.cssvars.scss +0 -0
  875. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/avatar/themes/stable/_oj-avatar.cssvars.scss +0 -0
  876. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/avatar/themes/stable/oj-avatar.scss +0 -0
  877. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/badge/themes/base/_oj-badge.scss +0 -0
  878. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/badge/themes/redwood/_oj-badge-ignore.scoped.cssvars.scss +0 -0
  879. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/badge/themes/redwood/_oj-badge-scoped.cssvars.scss +0 -0
  880. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/badge/themes/redwood/_oj-badge.cssvars.scss +0 -0
  881. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/badge/themes/redwood/oj-badge.scss +0 -0
  882. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/badge/themes/stable/_oj-badge-scoped.cssvars.scss +0 -0
  883. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/badge/themes/stable/_oj-badge.cssvars.scss +0 -0
  884. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/badge/themes/stable/oj-badge.scss +0 -0
  885. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/base/_oj-button.scss +0 -0
  886. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/redwood/_oj-button-ignore.scoped.cssvars.scss +0 -0
  887. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/redwood/_oj-button-scoped.cssvars.scss +0 -0
  888. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/redwood/_oj-button.cssvars.scss +0 -0
  889. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/redwood/oj-button.scss +0 -0
  890. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/stable/_oj-button-ignore.scoped.cssvars.scss +0 -0
  891. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/stable/_oj-button-scoped.cssvars.scss +0 -0
  892. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/stable/_oj-button.cssvars.scss +0 -0
  893. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/button/themes/stable/oj-button.scss +0 -0
  894. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset/themes/base/_oj-buttonset.scss +0 -0
  895. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset/themes/redwood/_oj-buttonset-scoped.cssvars.scss +0 -0
  896. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset/themes/redwood/_oj-buttonset.cssvars.scss +0 -0
  897. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset/themes/redwood/_oj-buttonset.scss +0 -0
  898. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset/themes/stable/_oj-buttonset-scoped.cssvars.scss +0 -0
  899. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset/themes/stable/_oj-buttonset.cssvars.scss +0 -0
  900. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset/themes/stable/_oj-buttonset.scss +0 -0
  901. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset-many/themes/redwood/oj-buttonset-many.scss +0 -0
  902. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset-many/themes/stable/oj-buttonset-many.scss +0 -0
  903. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset-one/themes/redwood/oj-buttonset-one.scss +0 -0
  904. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/buttonset-one/themes/stable/oj-buttonset-one.scss +0 -0
  905. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/chart/themes/base/_oj-chart.scss +0 -0
  906. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/chart/themes/redwood/_oj-chart.cssvars.scss +0 -0
  907. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/chart/themes/redwood/oj-chart.scss +0 -0
  908. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/chart/themes/stable/_oj-chart.cssvars.scss +0 -0
  909. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/chart/themes/stable/oj-chart.scss +0 -0
  910. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/checkboxset/themes/redwood/_oj-checkboxset.cssvars.scss +0 -0
  911. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/checkboxset/themes/redwood/oj-checkboxset.scss +0 -0
  912. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/checkboxset/themes/stable/_oj-checkboxset.cssvars.scss +0 -0
  913. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/checkboxset/themes/stable/oj-checkboxset.scss +0 -0
  914. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collapsible/themes/base/_oj-collapsible.scss +0 -0
  915. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collapsible/themes/redwood/_oj-collapsible.cssvars.scss +0 -0
  916. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collapsible/themes/redwood/oj-collapsible.scss +0 -0
  917. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collapsible/themes/stable/_oj-collapsible.cssvars.scss +0 -0
  918. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collapsible/themes/stable/oj-collapsible.scss +0 -0
  919. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collection/themes/redwood/_oj-collection-ignore.scoped.cssvars.scss +0 -0
  920. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collection/themes/redwood/_oj-collection-scoped.cssvars.scss +0 -0
  921. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collection/themes/redwood/_oj-collection.cssvars.scss +0 -0
  922. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/collection/themes/stable/_oj-collection.cssvars.scss +0 -0
  923. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-palette/themes/base/_oj-color-palette.scss +0 -0
  924. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-palette/themes/redwood/_oj-color-palette.cssvars.scss +0 -0
  925. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-palette/themes/redwood/oj-color-palette.scss +0 -0
  926. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-palette/themes/stable/_oj-color-palette.cssvars.scss +0 -0
  927. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-palette/themes/stable/oj-color-palette.scss +0 -0
  928. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-spectrum/themes/base/_oj-color-spectrum.scss +0 -0
  929. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-spectrum/themes/redwood/_oj-color-spectrum.cssvars.scss +0 -0
  930. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-spectrum/themes/redwood/oj-color-spectrum.scss +0 -0
  931. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-spectrum/themes/stable/_oj-color-spectrum.cssvars.scss +0 -0
  932. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/color-spectrum/themes/stable/oj-color-spectrum.scss +0 -0
  933. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox/themes/base/_oj-combobox.scss +0 -0
  934. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox/themes/redwood/_oj-combobox.cssvars.scss +0 -0
  935. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox/themes/redwood/_oj-combobox.scss +0 -0
  936. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox/themes/stable/_oj-combobox.cssvars.scss +0 -0
  937. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox/themes/stable/_oj-combobox.scss +0 -0
  938. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox-many/themes/redwood/oj-combobox-many.scss +0 -0
  939. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox-many/themes/stable/oj-combobox-many.scss +0 -0
  940. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox-one/themes/redwood/oj-combobox-one.scss +0 -0
  941. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/combobox-one/themes/stable/oj-combobox-one.scss +0 -0
  942. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/conveyor-belt/themes/base/_oj-conveyor-belt.scss +0 -0
  943. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/conveyor-belt/themes/redwood/_oj-conveyor-belt.cssvars.scss +0 -0
  944. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/conveyor-belt/themes/redwood/oj-conveyor-belt.scss +0 -0
  945. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/conveyor-belt/themes/stable/_oj-conveyor-belt.cssvars.scss +0 -0
  946. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/conveyor-belt/themes/stable/oj-conveyor-belt.scss +0 -0
  947. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/core/themes/redwood/_oj-core-ignore.scoped.cssvars.scss +0 -0
  948. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/core/themes/redwood/_oj-core-scoped.cssvars.scss +0 -0
  949. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/core/themes/redwood/_oj-core.cssvars.scss +0 -0
  950. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/core/themes/stable/_oj-core-ignore.scoped.cssvars.scss +0 -0
  951. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/core/themes/stable/_oj-core-scoped.cssvars.scss +0 -0
  952. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/core/themes/stable/_oj-core.cssvars.scss +0 -0
  953. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/data-grid/themes/base/_oj-data-grid.scss +0 -0
  954. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/data-grid/themes/redwood/_oj-data-grid.cssvars.scss +0 -0
  955. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/data-grid/themes/redwood/oj-data-grid.scss +0 -0
  956. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/data-grid/themes/stable/_oj-data-grid.cssvars.scss +0 -0
  957. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/data-grid/themes/stable/oj-data-grid.scss +0 -0
  958. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-picker/themes/redwood/oj-date-picker.scss +0 -0
  959. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-picker/themes/stable/oj-date-picker.scss +0 -0
  960. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-time-picker/themes/base/_oj-date-time-picker.scss +0 -0
  961. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.cssvars.scss +0 -0
  962. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.servervars.scss +0 -0
  963. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-time-picker/themes/redwood/oj-date-time-picker.scss +0 -0
  964. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-time-picker/themes/stable/_oj-date-time-picker.cssvars.scss +0 -0
  965. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-time-picker/themes/stable/_oj-date-time-picker.servervars.scss +0 -0
  966. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/date-time-picker/themes/stable/oj-date-time-picker.scss +0 -0
  967. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/diagram/themes/base/_oj-diagram.scss +0 -0
  968. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/diagram/themes/redwood/_oj-diagram.cssvars.scss +0 -0
  969. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/diagram/themes/redwood/oj-diagram.scss +0 -0
  970. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/diagram/themes/stable/_oj-diagram.cssvars.scss +0 -0
  971. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/diagram/themes/stable/oj-diagram.scss +0 -0
  972. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/base/_oj-dialog-ignore.scoped.cssvars.scss +0 -0
  973. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/base/_oj-dialog.scss +0 -0
  974. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/redwood/_oj-dialog-ignore.scoped.cssvars.scss +0 -0
  975. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/redwood/_oj-dialog-scoped.cssvars.scss +0 -0
  976. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/redwood/_oj-dialog.cssvars.scss +0 -0
  977. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/redwood/_oj-dialog.servervars.scss +0 -0
  978. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/redwood/oj-dialog.scss +0 -0
  979. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/stable/_oj-dialog-scoped.cssvars.scss +0 -0
  980. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/stable/_oj-dialog.cssvars.scss +0 -0
  981. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/stable/_oj-dialog.servervars.scss +0 -0
  982. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dialog/themes/stable/oj-dialog.scss +0 -0
  983. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-layout/themes/base/_oj-drawer-layout-ignore.scoped.cssvars.scss +0 -0
  984. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-layout/themes/base/_oj-drawer-layout.scss +0 -0
  985. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-layout/themes/redwood/_oj-drawer-layout.cssvars.scss +0 -0
  986. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-layout/themes/redwood/oj-drawer-layout.scss +0 -0
  987. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-layout/themes/stable/_oj-drawer-layout.cssvars.scss +0 -0
  988. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-layout/themes/stable/oj-drawer-layout.scss +0 -0
  989. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-popup/themes/base/_oj-drawer-popup-ignore.scoped.cssvars.scss +0 -0
  990. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-popup/themes/base/_oj-drawer-popup.scss +0 -0
  991. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-popup/themes/redwood/_oj-drawer-popup.cssvars.scss +0 -0
  992. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-popup/themes/redwood/oj-drawer-popup.scss +0 -0
  993. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-popup/themes/stable/_oj-drawer-popup.cssvars.scss +0 -0
  994. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/drawer-popup/themes/stable/oj-drawer-popup.scss +0 -0
  995. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dvt/themes/base/_oj-dvt.scss +0 -0
  996. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dvt/themes/redwood/_oj-dvt.cssvars.scss +0 -0
  997. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dvt/themes/redwood/_oj-dvt.scss +0 -0
  998. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dvt/themes/stable/_oj-dvt.cssvars.scss +0 -0
  999. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/dvt/themes/stable/_oj-dvt.scss +0 -0
  1000. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/file-picker/themes/base/_oj-file-picker.scss +0 -0
  1001. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/file-picker/themes/redwood/_oj-file-picker.cssvars.scss +0 -0
  1002. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/file-picker/themes/redwood/oj-file-picker.scss +0 -0
  1003. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/file-picker/themes/stable/_oj-file-picker.cssvars.scss +0 -0
  1004. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/file-picker/themes/stable/oj-file-picker.scss +0 -0
  1005. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/film-strip/themes/base/_oj-film-strip.scss +0 -0
  1006. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/film-strip/themes/redwood/_oj-film-strip.cssvars.scss +0 -0
  1007. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/film-strip/themes/redwood/oj-film-strip.scss +0 -0
  1008. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/film-strip/themes/stable/_oj-film-strip.cssvars.scss +0 -0
  1009. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/film-strip/themes/stable/oj-film-strip.scss +0 -0
  1010. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/flex/themes/base/_oj-flex.scss +0 -0
  1011. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/flex/themes/redwood/oj-flex.scss +0 -0
  1012. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/flex/themes/stable/oj-flex.scss +0 -0
  1013. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/base/_oj-form-control.mixins.scss +0 -0
  1014. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/base/_oj-form-control.scss +0 -0
  1015. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/base/_oj-messaging.scss +0 -0
  1016. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/redwood/_oj-form-control.cssvars.scss +0 -0
  1017. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/redwood/_oj-form-control.scss +0 -0
  1018. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/redwood/_oj-messaging.scss +0 -0
  1019. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/redwood/_oj-messaging.servervars.scss +0 -0
  1020. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/stable/_oj-form-control.cssvars.scss +0 -0
  1021. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/stable/_oj-form-control.scss +0 -0
  1022. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/stable/_oj-messaging.scss +0 -0
  1023. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-control/themes/stable/_oj-messaging.servervars.scss +0 -0
  1024. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-layout/themes/base/_oj-form-layout.scss +0 -0
  1025. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-layout/themes/redwood/_oj-form-layout-scoped.cssvars.scss +0 -0
  1026. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-layout/themes/redwood/_oj-form-layout.cssvars.scss +0 -0
  1027. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-layout/themes/redwood/_oj-form-layout.servervars.scss +0 -0
  1028. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-layout/themes/redwood/oj-form-layout.scss +0 -0
  1029. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-layout/themes/stable/_oj-form-layout.cssvars.scss +0 -0
  1030. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-layout/themes/stable/_oj-form-layout.servervars.scss +0 -0
  1031. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/form-layout/themes/stable/oj-form-layout.scss +0 -0
  1032. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gantt/themes/base/_oj-gantt.scss +0 -0
  1033. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gantt/themes/redwood/_oj-gantt.cssvars.scss +0 -0
  1034. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gantt/themes/redwood/oj-gantt.scss +0 -0
  1035. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gantt/themes/stable/_oj-gantt.cssvars.scss +0 -0
  1036. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gantt/themes/stable/oj-gantt.scss +0 -0
  1037. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gauge/themes/base/_oj-gauge.scss +0 -0
  1038. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gauge/themes/redwood/_oj-gauge.cssvars.scss +0 -0
  1039. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gauge/themes/redwood/oj-gauge.scss +0 -0
  1040. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gauge/themes/stable/_oj-gauge.cssvars.scss +0 -0
  1041. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/gauge/themes/stable/oj-gauge.scss +0 -0
  1042. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/grid/themes/base/_oj-grid.scss +0 -0
  1043. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/grid/themes/redwood/oj-grid.scss +0 -0
  1044. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/grid/themes/stable/oj-grid.scss +0 -0
  1045. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/helpers/themes/base/_oj-helpers-ignore.scoped.cssvars.scss +0 -0
  1046. package/dist/pcss/oj/13.0.4/oj/helpers/themes/base/_oj-helpers.scss +547 -0
  1047. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/helpers/themes/base/_oj-responsive-helpers.scss +0 -0
  1048. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/helpers/themes/redwood/_oj-theme.servervars.scss +0 -0
  1049. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/helpers/themes/redwood/oj-helpers.scss +0 -0
  1050. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/helpers/themes/redwood/oj-responsive.helpers.scss +0 -0
  1051. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/helpers/themes/stable/_oj-theme.servervars.scss +0 -0
  1052. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/helpers/themes/stable/oj-helpers.scss +0 -0
  1053. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/helpers/themes/stable/oj-responsive.helpers.scss +0 -0
  1054. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/highlight-text/themes/base/_oj-highlight-text.scss +0 -0
  1055. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/highlight-text/themes/redwood/oj-highlight-text.scss +0 -0
  1056. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/highlight-text/themes/stable/oj-highlight-text.scss +0 -0
  1057. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icon-circle/themes/base/_oj-icon-circle.scss +0 -0
  1058. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icon-circle/themes/redwood/_oj-icon-circle-ignore.scoped.cssvars.scss +0 -0
  1059. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icon-circle/themes/redwood/_oj-icon-circle.cssvars.scss +0 -0
  1060. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icon-circle/themes/redwood/oj-icon-circle.scss +0 -0
  1061. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/base/_oj-icons.scss +0 -0
  1062. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/redwood/_oj-icon-font.scss +0 -0
  1063. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/redwood/_oj-icons-ignore.scoped.cssvars.scss +0 -0
  1064. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/redwood/_oj-icons.cssvars.scss +0 -0
  1065. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/redwood/oj-icons.scss +0 -0
  1066. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/stable/_oj-icon-font.scss +0 -0
  1067. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/stable/_oj-icons-ignore.scoped.cssvars.scss +0 -0
  1068. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/stable/_oj-icons.cssvars.scss +0 -0
  1069. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/icons/themes/stable/oj-icons.scss +0 -0
  1070. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/indexer/themes/base/_oj-indexer.scss +0 -0
  1071. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/indexer/themes/redwood/_oj-indexer.cssvars.scss +0 -0
  1072. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/indexer/themes/redwood/oj-indexer.scss +0 -0
  1073. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/indexer/themes/stable/_oj-indexer.cssvars.scss +0 -0
  1074. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/indexer/themes/stable/oj-indexer.scss +0 -0
  1075. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-date/themes/redwood/oj-input-date.scss +0 -0
  1076. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-date/themes/stable/oj-input-date.scss +0 -0
  1077. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-date-time/themes/redwood/oj-input-date-time.scss +0 -0
  1078. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-date-time/themes/stable/oj-input-date-time.scss +0 -0
  1079. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-number/themes/base/_oj-input-number.scss +0 -0
  1080. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-number/themes/redwood/_oj-input-number.cssvars.scss +0 -0
  1081. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-number/themes/redwood/oj-input-number.scss +0 -0
  1082. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-number/themes/stable/_oj-input-number.cssvars.scss +0 -0
  1083. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-number/themes/stable/oj-input-number.scss +0 -0
  1084. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-password/themes/redwood/oj-input-password.scss +0 -0
  1085. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-password/themes/stable/oj-input-password.scss +0 -0
  1086. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-search/themes/base/_oj-input-search.scss +0 -0
  1087. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-search/themes/redwood/_oj-input-search-scoped.cssvars.scss +0 -0
  1088. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-search/themes/redwood/_oj-input-search.cssvars.scss +0 -0
  1089. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-search/themes/redwood/_oj-input-search.scss +0 -0
  1090. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-search/themes/stable/_oj-input-search-scoped.cssvars.scss +0 -0
  1091. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-search/themes/stable/_oj-input-search.cssvars.scss +0 -0
  1092. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-search/themes/stable/_oj-input-search.scss +0 -0
  1093. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-text/themes/base/_oj-input-text.scss +0 -0
  1094. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-text/themes/redwood/_oj-input-text.cssvars.scss +0 -0
  1095. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-text/themes/redwood/oj-input-text.scss +0 -0
  1096. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-text/themes/stable/_oj-input-text.cssvars.scss +0 -0
  1097. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-text/themes/stable/oj-input-text.scss +0 -0
  1098. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-time/themes/redwood/oj-input-time.scss +0 -0
  1099. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/input-time/themes/stable/oj-input-time.scss +0 -0
  1100. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label/themes/base/_oj-label.scss +0 -0
  1101. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label/themes/redwood/_oj-label-scoped.cssvars.scss +0 -0
  1102. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label/themes/redwood/_oj-label.cssvars.scss +0 -0
  1103. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label/themes/redwood/oj-label.scss +0 -0
  1104. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label/themes/stable/_oj-label-scoped.cssvars.scss +0 -0
  1105. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label/themes/stable/_oj-label.cssvars.scss +0 -0
  1106. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label/themes/stable/oj-label.scss +0 -0
  1107. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label-value/themes/base/_oj-label-value.scss +0 -0
  1108. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label-value/themes/redwood/_oj-label-value.scss +0 -0
  1109. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/label-value/themes/stable/_oj-label-value.scss +0 -0
  1110. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/led-gauge/themes/base/_oj-led-gauge.scss +0 -0
  1111. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/led-gauge/themes/redwood/_oj-led-gauge.cssvars.scss +0 -0
  1112. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/led-gauge/themes/redwood/oj-led-gauge.scss +0 -0
  1113. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/led-gauge/themes/stable/_oj-led-gauge.cssvars.scss +0 -0
  1114. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/led-gauge/themes/stable/oj-led-gauge.scss +0 -0
  1115. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/legend/themes/base/_oj-legend.scss +0 -0
  1116. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/legend/themes/redwood/_oj-legend.cssvars.scss +0 -0
  1117. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/legend/themes/redwood/oj-legend.scss +0 -0
  1118. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/legend/themes/stable/_oj-legend.cssvars.scss +0 -0
  1119. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/legend/themes/stable/oj-legend.scss +0 -0
  1120. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-box/themes/base/_oj-list-box.scss +0 -0
  1121. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-box/themes/redwood/_oj-list-box.cssvars.scss +0 -0
  1122. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-box/themes/redwood/_oj-list-box.scss +0 -0
  1123. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-box/themes/stable/_oj-list-box.cssvars.scss +0 -0
  1124. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-box/themes/stable/_oj-list-box.scss +0 -0
  1125. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-item-layout/themes/base/_oj-list-item-layout.scss +0 -0
  1126. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-item-layout/themes/redwood/_oj-list-item-layout.cssvars.scss +0 -0
  1127. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-item-layout/themes/redwood/oj-list-item-layout.scss +0 -0
  1128. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-item-layout/themes/stable/_oj-list-item-layout.cssvars.scss +0 -0
  1129. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-item-layout/themes/stable/oj-list-item-layout.scss +0 -0
  1130. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-view/themes/base/_oj-list-view.scss +0 -0
  1131. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-view/themes/redwood/_oj-list-view-ignore.scoped.cssvars.scss +0 -0
  1132. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-view/themes/redwood/_oj-list-view.cssvars.scss +0 -0
  1133. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-view/themes/redwood/oj-list-view.scss +0 -0
  1134. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-view/themes/stable/_oj-list-view.cssvars.scss +0 -0
  1135. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/list-view/themes/stable/oj-list-view.scss +0 -0
  1136. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/masonry-layout/themes/base/_oj-masonry-layout.scss +0 -0
  1137. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.cssvars.scss +0 -0
  1138. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.servervars.scss +0 -0
  1139. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/masonry-layout/themes/redwood/oj-masonry-layout.scss +0 -0
  1140. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/masonry-layout/themes/stable/_oj-masonry-layout.cssvars.scss +0 -0
  1141. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/masonry-layout/themes/stable/_oj-masonry-layout.servervars.scss +0 -0
  1142. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/masonry-layout/themes/stable/oj-masonry-layout.scss +0 -0
  1143. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu/themes/base/_oj-menu.scss +0 -0
  1144. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu/themes/redwood/_oj-menu.cssvars.scss +0 -0
  1145. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu/themes/redwood/oj-menu.scss +0 -0
  1146. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu/themes/stable/_oj-menu.cssvars.scss +0 -0
  1147. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu/themes/stable/oj-menu.scss +0 -0
  1148. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-button/themes/base/_oj-menu-button.scss +0 -0
  1149. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-button/themes/redwood/_oj-menu-button.cssvars.scss +0 -0
  1150. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-button/themes/redwood/_oj-menu-button.servervars.scss +0 -0
  1151. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-button/themes/redwood/oj-menu-button.scss +0 -0
  1152. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-button/themes/stable/_oj-menu-button.cssvars.scss +0 -0
  1153. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-button/themes/stable/_oj-menu-button.servervars.scss +0 -0
  1154. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-button/themes/stable/oj-menu-button.scss +0 -0
  1155. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-select-many/themes/base/_oj-menu-select-many.scss +0 -0
  1156. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-select-many/themes/redwood/_oj-menu-select-many.cssvars.scss +0 -0
  1157. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-select-many/themes/redwood/oj-menu-select-many.scss +0 -0
  1158. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-select-many/themes/stable/_oj-menu-select-many.cssvars.scss +0 -0
  1159. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/menu-select-many/themes/stable/oj-menu-select-many.scss +0 -0
  1160. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/base/_oj-message.scss +0 -0
  1161. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/redwood/_oj-message-ignore.scoped.cssvars.scss +0 -0
  1162. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/redwood/_oj-message.cssvars.scss +0 -0
  1163. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/redwood/_oj-message.servervars.scss +0 -0
  1164. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/redwood/oj-message.scss +0 -0
  1165. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/stable/_oj-message-ignore.scoped.cssvars.scss +0 -0
  1166. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/stable/_oj-message.cssvars.scss +0 -0
  1167. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/stable/_oj-message.servervars.scss +0 -0
  1168. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message/themes/stable/oj-message.scss +0 -0
  1169. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message-banner/themes/base/_oj-message-banner.scss +0 -0
  1170. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message-banner/themes/redwood/_oj-message-banner-scoped.cssvars.scss +0 -0
  1171. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message-banner/themes/redwood/_oj-message-banner.cssvars.scss +0 -0
  1172. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message-banner/themes/redwood/_oj-message-banner.scss +0 -0
  1173. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message-banner/themes/stable/_oj-message-banner-scoped.cssvars.scss +0 -0
  1174. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message-banner/themes/stable/_oj-message-banner.cssvars.scss +0 -0
  1175. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/message-banner/themes/stable/_oj-message-banner.scss +0 -0
  1176. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/messages/themes/base/_oj-messages.scss +0 -0
  1177. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/messages/themes/redwood/_oj-messages.cssvars.scss +0 -0
  1178. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/messages/themes/redwood/_oj-messages.servervars.scss +0 -0
  1179. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/messages/themes/redwood/oj-messages.scss +0 -0
  1180. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/messages/themes/stable/_oj-messages.cssvars.scss +0 -0
  1181. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/messages/themes/stable/_oj-messages.servervars.scss +0 -0
  1182. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/messages/themes/stable/oj-messages.scss +0 -0
  1183. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/module/themes/base/_oj-module.scss +0 -0
  1184. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/module/themes/redwood/oj-module.scss +0 -0
  1185. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/module/themes/stable/oj-module.scss +0 -0
  1186. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/n-box/themes/base/_oj-n-box.scss +0 -0
  1187. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/n-box/themes/redwood/_oj-n-box.cssvars.scss +0 -0
  1188. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/n-box/themes/redwood/oj-n-box.scss +0 -0
  1189. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/n-box/themes/stable/_oj-n-box.cssvars.scss +0 -0
  1190. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/n-box/themes/stable/oj-n-box.scss +0 -0
  1191. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/navigation-list/themes/base/_oj-navigation-list.scss +0 -0
  1192. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/navigation-list/themes/redwood/_oj-navigation-list-scoped.cssvars.scss +0 -0
  1193. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/navigation-list/themes/redwood/_oj-navigation-list.cssvars.scss +0 -0
  1194. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/navigation-list/themes/redwood/oj-navigation-list.scss +0 -0
  1195. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/navigation-list/themes/stable/_oj-navigation-list-scoped.cssvars.scss +0 -0
  1196. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/navigation-list/themes/stable/_oj-navigation-list.cssvars.scss +0 -0
  1197. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/navigation-list/themes/stable/oj-navigation-list.scss +0 -0
  1198. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/off-canvas/themes/base/_oj-off-canvas.scss +0 -0
  1199. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/off-canvas/themes/redwood/_oj-off-canvas.cssvars.scss +0 -0
  1200. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/off-canvas/themes/redwood/oj-off-canvas.scss +0 -0
  1201. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/off-canvas/themes/stable/_oj-off-canvas.cssvars.scss +0 -0
  1202. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/off-canvas/themes/stable/oj-off-canvas.scss +0 -0
  1203. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/optgroup/themes/base/_oj-optgroup.scss +0 -0
  1204. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/optgroup/themes/redwood/oj-optgroup.scss +0 -0
  1205. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/optgroup/themes/stable/oj-optgroup.scss +0 -0
  1206. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/option/themes/base/_oj-option.scss +0 -0
  1207. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/option/themes/redwood/oj-option.scss +0 -0
  1208. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/option/themes/stable/oj-option.scss +0 -0
  1209. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/paging-control/themes/base/_oj-paging-control.scss +0 -0
  1210. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/paging-control/themes/redwood/_oj-paging-control.cssvars.scss +0 -0
  1211. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/paging-control/themes/redwood/oj-paging-control.scss +0 -0
  1212. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/paging-control/themes/stable/_oj-paging-control.cssvars.scss +0 -0
  1213. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/paging-control/themes/stable/oj-paging-control.scss +0 -0
  1214. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/palette/themes/redwood/_oj-palette-scoped.cssvars.scss +0 -0
  1215. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/palette/themes/redwood/_oj-palette.cssvars.scss +0 -0
  1216. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/palette/themes/stable/_oj-palette.cssvars.scss +0 -0
  1217. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/panel/themes/base/_oj-panel-ignore.scoped.cssvars.scss +0 -0
  1218. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/panel/themes/base/_oj-panel.scss +0 -0
  1219. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/panel/themes/redwood/_oj-panel-scoped.cssvars.scss +0 -0
  1220. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/panel/themes/redwood/_oj-panel.cssvars.scss +0 -0
  1221. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/panel/themes/redwood/oj-panel.scss +0 -0
  1222. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/panel/themes/stable/_oj-panel-scoped.cssvars.scss +0 -0
  1223. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/panel/themes/stable/_oj-panel.cssvars.scss +0 -0
  1224. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/panel/themes/stable/oj-panel.scss +0 -0
  1225. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/picto-chart/themes/base/_oj-picto-chart.scss +0 -0
  1226. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/picto-chart/themes/redwood/_oj-picto-chart.cssvars.scss +0 -0
  1227. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/picto-chart/themes/redwood/oj-picto-chart.scss +0 -0
  1228. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/picto-chart/themes/stable/_oj-picto-chart.cssvars.scss +0 -0
  1229. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/picto-chart/themes/stable/oj-picto-chart.scss +0 -0
  1230. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/base/_oj-layer.scss +0 -0
  1231. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/base/_oj-popup-ignore.scoped.cssvars.scss +0 -0
  1232. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/base/_oj-popup.scss +0 -0
  1233. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/redwood/_oj-layer.scss +0 -0
  1234. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/redwood/_oj-popup-ignore.scoped.cssvars.scss +0 -0
  1235. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/redwood/_oj-popup.cssvars.scss +0 -0
  1236. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/redwood/oj-popup.scss +0 -0
  1237. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/stable/_oj-layer.scss +0 -0
  1238. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/stable/_oj-popup.cssvars.scss +0 -0
  1239. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/popup/themes/stable/oj-popup.scss +0 -0
  1240. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/base/_oj-progress-bar.scss +0 -0
  1241. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/redwood/_oj-progress-bar-scoped.cssvars.scss +0 -0
  1242. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/redwood/_oj-progress-bar.cssvars.scss +0 -0
  1243. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/redwood/_oj-progress-bar.servervars.scss +0 -0
  1244. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/redwood/oj-progress-bar.scss +0 -0
  1245. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/stable/_oj-progress-bar-scoped.cssvars.scss +0 -0
  1246. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/stable/_oj-progress-bar.cssvars.scss +0 -0
  1247. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/stable/_oj-progress-bar.servervars.scss +0 -0
  1248. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-bar/themes/stable/oj-progress-bar.scss +0 -0
  1249. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/base/_oj-progress-circle.scss +0 -0
  1250. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/redwood/_oj-progress-circle-scoped.cssvars.scss +0 -0
  1251. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/redwood/_oj-progress-circle.cssvars.scss +0 -0
  1252. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/redwood/_oj-progress-circle.servervars.scss +0 -0
  1253. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/redwood/oj-progress-circle.scss +0 -0
  1254. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/stable/_oj-progress-circle-scoped.cssvars.scss +0 -0
  1255. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/stable/_oj-progress-circle.cssvars.scss +0 -0
  1256. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/stable/_oj-progress-circle.servervars.scss +0 -0
  1257. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/progress-circle/themes/stable/oj-progress-circle.scss +0 -0
  1258. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radio-checkbox/themes/base/_oj-radiocheckbox.scss +0 -0
  1259. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
  1260. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.cssvars.scss +0 -0
  1261. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.servervars.scss +0 -0
  1262. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
  1263. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox.cssvars.scss +0 -0
  1264. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox.servervars.scss +0 -0
  1265. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radioset/themes/redwood/_oj-radioset.cssvars.scss +0 -0
  1266. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radioset/themes/redwood/oj-radioset.scss +0 -0
  1267. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radioset/themes/stable/_oj-radioset.cssvars.scss +0 -0
  1268. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/radioset/themes/stable/oj-radioset.scss +0 -0
  1269. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rangeslider/themes/redwood/_oj-rangeslider.cssvars.scss +0 -0
  1270. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rangeslider/themes/redwood/oj-rangeslider.scss +0 -0
  1271. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rangeslider/themes/stable/_oj-rangeslider.cssvars.scss +0 -0
  1272. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rangeslider/themes/stable/oj-rangeslider.scss +0 -0
  1273. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rating-gauge/themes/base/_oj-rating-gauge.scss +0 -0
  1274. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rating-gauge/themes/redwood/_oj-rating-gauge.cssvars.scss +0 -0
  1275. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rating-gauge/themes/redwood/oj-rating-gauge.scss +0 -0
  1276. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rating-gauge/themes/stable/_oj-rating-gauge.cssvars.scss +0 -0
  1277. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/rating-gauge/themes/stable/oj-rating-gauge.scss +0 -0
  1278. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/refresher/themes/base/_oj-refresher.scss +0 -0
  1279. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/refresher/themes/redwood/_oj-refresher.cssvars.scss +0 -0
  1280. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/refresher/themes/redwood/_oj-refresher.servervars.scss +0 -0
  1281. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/refresher/themes/redwood/oj-refresher.scss +0 -0
  1282. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/refresher/themes/stable/_oj-refresher.cssvars.scss +0 -0
  1283. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/refresher/themes/stable/_oj-refresher.servervars.scss +0 -0
  1284. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/refresher/themes/stable/oj-refresher.scss +0 -0
  1285. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/resizable/themes/base/_oj-resizable.scss +0 -0
  1286. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/resizable/themes/redwood/_oj-resizable.scss +0 -0
  1287. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/resizable/themes/stable/_oj-resizable.scss +0 -0
  1288. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/row-expander/themes/base/_oj-row-expander.scss +0 -0
  1289. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/row-expander/themes/redwood/_oj-row-expander.cssvars.scss +0 -0
  1290. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/row-expander/themes/redwood/oj-row-expander.scss +0 -0
  1291. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/row-expander/themes/stable/_oj-row-expander.cssvars.scss +0 -0
  1292. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/row-expander/themes/stable/oj-row-expander.scss +0 -0
  1293. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/scrollbar/themes/base/_oj-scrollbar.scss +0 -0
  1294. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/scrollbar/themes/redwood/_oj-scrollbar-scoped.cssvars.scss +0 -0
  1295. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/scrollbar/themes/redwood/_oj-scrollbar.cssvars.scss +0 -0
  1296. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/scrollbar/themes/redwood/_oj-scrollbar.scss +0 -0
  1297. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/scrollbar/themes/stable/_oj-scrollbar-scoped.cssvars.scss +0 -0
  1298. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/scrollbar/themes/stable/_oj-scrollbar.cssvars.scss +0 -0
  1299. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/scrollbar/themes/stable/_oj-scrollbar.scss +0 -0
  1300. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select/themes/base/_oj-select.scss +0 -0
  1301. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select/themes/redwood/_oj-select.cssvars.scss +0 -0
  1302. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select/themes/redwood/_oj-select.scss +0 -0
  1303. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select/themes/stable/_oj-select.cssvars.scss +0 -0
  1304. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select/themes/stable/_oj-select.scss +0 -0
  1305. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-many/themes/redwood/oj-select-many.scss +0 -0
  1306. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-many/themes/stable/oj-select-many.scss +0 -0
  1307. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-one/themes/redwood/oj-select-one.scss +0 -0
  1308. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-original/themes/base/_oj-select-original.scss +0 -0
  1309. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-original/themes/redwood/_oj-select-original.cssvars.scss +0 -0
  1310. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-original/themes/redwood/_oj-select-original.scss +0 -0
  1311. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-original/themes/stable/_oj-select-original.cssvars.scss +0 -0
  1312. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-original/themes/stable/_oj-select-original.scss +0 -0
  1313. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-single/themes/base/_oj-select-single.scss +0 -0
  1314. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-single/themes/redwood/oj-select-single.scss +0 -0
  1315. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/select-single/themes/stable/oj-select-single.scss +0 -0
  1316. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/selector/themes/base/_oj-selector.scss +0 -0
  1317. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/selector/themes/redwood/_oj-selector.cssvars.scss +0 -0
  1318. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/selector/themes/redwood/oj-selector.scss +0 -0
  1319. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/selector/themes/stable/_oj-selector.cssvars.scss +0 -0
  1320. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/selector/themes/stable/oj-selector.scss +0 -0
  1321. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/slider/themes/base/_oj-slider.scss +0 -0
  1322. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/slider/themes/redwood/_oj-slider.cssvars.scss +0 -0
  1323. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/slider/themes/redwood/oj-slider.scss +0 -0
  1324. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/slider/themes/stable/_oj-slider.cssvars.scss +0 -0
  1325. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/slider/themes/stable/oj-slider.scss +0 -0
  1326. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/spark-chart/themes/base/_oj-spark-chart.scss +0 -0
  1327. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/spark-chart/themes/redwood/oj-spark-chart.scss +0 -0
  1328. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/spark-chart/themes/stable/oj-spark-chart.scss +0 -0
  1329. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/status-meter-gauge/themes/base/_oj-status-meter-gauge.scss +0 -0
  1330. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/status-meter-gauge/themes/redwood/_oj-status-meter-gauge.cssvars.scss +0 -0
  1331. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/status-meter-gauge/themes/redwood/oj-status-meter-gauge.scss +0 -0
  1332. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/status-meter-gauge/themes/stable/_oj-status-meter-gauge.cssvars.scss +0 -0
  1333. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/status-meter-gauge/themes/stable/oj-status-meter-gauge.scss +0 -0
  1334. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/stream-list/themes/base/_oj-stream-list.scss +0 -0
  1335. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/stream-list/themes/redwood/_oj-stream-list.cssvars.scss +0 -0
  1336. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/stream-list/themes/redwood/_oj-stream-list.servervars.scss +0 -0
  1337. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/stream-list/themes/redwood/oj-stream-list.scss +0 -0
  1338. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/stream-list/themes/stable/_oj-stream-list.cssvars.scss +0 -0
  1339. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/stream-list/themes/stable/_oj-stream-list.servervars.scss +0 -0
  1340. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/stream-list/themes/stable/oj-stream-list.scss +0 -0
  1341. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/sunburst/themes/base/_oj-sunburst.scss +0 -0
  1342. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/sunburst/themes/redwood/_oj-sunburst.cssvars.scss +0 -0
  1343. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/sunburst/themes/redwood/oj-sunburst.scss +0 -0
  1344. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/sunburst/themes/stable/_oj-sunburst.cssvars.scss +0 -0
  1345. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/sunburst/themes/stable/oj-sunburst.scss +0 -0
  1346. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/swipe-actions/themes/base/_oj-swipe-actions.scss +0 -0
  1347. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/swipe-actions/themes/redwood/_oj-swipe-actions.cssvars.scss +0 -0
  1348. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/swipe-actions/themes/redwood/oj-swipe-actions.scss +0 -0
  1349. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/swipe-actions/themes/stable/_oj-swipe-actions.cssvars.scss +0 -0
  1350. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/swipe-actions/themes/stable/oj-swipe-actions.scss +0 -0
  1351. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/switch/themes/base/_oj-switch.scss +0 -0
  1352. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/switch/themes/redwood/_oj-switch.cssvars.scss +0 -0
  1353. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/switch/themes/redwood/oj-switch.scss +0 -0
  1354. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/switch/themes/stable/_oj-switch.cssvars.scss +0 -0
  1355. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/switch/themes/stable/oj-switch.scss +0 -0
  1356. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/switcher/themes/base/_oj-switcher.scss +0 -0
  1357. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/switcher/themes/redwood/oj-switcher.scss +0 -0
  1358. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/switcher/themes/stable/oj-switcher.scss +0 -0
  1359. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tab-bar/themes/base/_oj-tab-bar.scss +0 -0
  1360. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tab-bar/themes/redwood/_oj-tab-bar-scoped.cssvars.scss +0 -0
  1361. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tab-bar/themes/redwood/_oj-tab-bar.cssvars.scss +0 -0
  1362. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tab-bar/themes/redwood/oj-tab-bar.scss +0 -0
  1363. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tab-bar/themes/stable/_oj-tab-bar-scoped.cssvars.scss +0 -0
  1364. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tab-bar/themes/stable/_oj-tab-bar.cssvars.scss +0 -0
  1365. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tab-bar/themes/stable/oj-tab-bar.scss +0 -0
  1366. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/table/themes/base/_oj-table.scss +0 -0
  1367. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/table/themes/redwood/_oj-table.cssvars.scss +0 -0
  1368. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/table/themes/redwood/oj-table.scss +0 -0
  1369. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/table/themes/stable/_oj-table.cssvars.scss +0 -0
  1370. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/table/themes/stable/oj-table.scss +0 -0
  1371. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tag-cloud/themes/base/_oj-tag-cloud.scss +0 -0
  1372. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tag-cloud/themes/redwood/_oj-tag-cloud.cssvars.scss +0 -0
  1373. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tag-cloud/themes/redwood/oj-tag-cloud.scss +0 -0
  1374. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tag-cloud/themes/stable/_oj-tag-cloud.cssvars.scss +0 -0
  1375. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tag-cloud/themes/stable/oj-tag-cloud.scss +0 -0
  1376. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/base/_oj-notags-ignore.scoped.cssvars.scss +0 -0
  1377. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/base/_oj-notags.scss +0 -0
  1378. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/base/_oj-tags-ignore.scoped.cssvars.scss +0 -0
  1379. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/base/_oj-tags.scss +0 -0
  1380. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/redwood/_oj-tags-scoped.cssvars.scss +0 -0
  1381. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/redwood/_oj-tags.cssvars.scss +0 -0
  1382. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/redwood/oj-notags.scss +0 -0
  1383. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/redwood/oj-tags.scss +0 -0
  1384. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/stable/_oj-tags-scoped.cssvars.scss +0 -0
  1385. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/stable/_oj-tags.cssvars.scss +0 -0
  1386. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/stable/oj-notags.scss +0 -0
  1387. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tags/themes/stable/oj-tags.scss +0 -0
  1388. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-area/themes/base/_oj-text-area.scss +0 -0
  1389. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-area/themes/redwood/_oj-text-area.cssvars.scss +0 -0
  1390. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-area/themes/redwood/oj-text-area.scss +0 -0
  1391. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-area/themes/stable/_oj-text-area.cssvars.scss +0 -0
  1392. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-area/themes/stable/oj-text-area.scss +0 -0
  1393. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-field/themes/base/_oj-text-field.cssvars.scss +0 -0
  1394. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-field/themes/redwood/_oj-text-field-ignore.scoped.cssvars.scss +0 -0
  1395. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-field/themes/redwood/_oj-text-field-scoped.cssvars.scss +0 -0
  1396. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-field/themes/redwood/_oj-text-field.cssvars.scss +0 -0
  1397. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-field/themes/stable/_oj-text-field-scoped.cssvars.scss +0 -0
  1398. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/text-field/themes/stable/_oj-text-field.cssvars.scss +0 -0
  1399. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/thematic-map/themes/base/_oj-thematic-map.scss +0 -0
  1400. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/thematic-map/themes/redwood/_oj-thematic-map.cssvars.scss +0 -0
  1401. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/thematic-map/themes/redwood/oj-thematic-map.scss +0 -0
  1402. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/thematic-map/themes/stable/_oj-thematic-map.cssvars.scss +0 -0
  1403. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/thematic-map/themes/stable/oj-thematic-map.scss +0 -0
  1404. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/time-axis/themes/base/_oj-time-axis.scss +0 -0
  1405. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/time-axis/themes/redwood/_oj-time-axis.cssvars.scss +0 -0
  1406. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/time-axis/themes/redwood/oj-time-axis.scss +0 -0
  1407. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/time-axis/themes/stable/_oj-time-axis.cssvars.scss +0 -0
  1408. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/time-axis/themes/stable/oj-time-axis.scss +0 -0
  1409. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/timeline/themes/base/_oj-timeline.scss +0 -0
  1410. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/timeline/themes/redwood/_oj-timeline.cssvars.scss +0 -0
  1411. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/timeline/themes/redwood/oj-timeline.scss +0 -0
  1412. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/timeline/themes/stable/_oj-timeline.cssvars.scss +0 -0
  1413. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/timeline/themes/stable/oj-timeline.scss +0 -0
  1414. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/toolbar/themes/base/_oj-toolbar.scss +0 -0
  1415. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/toolbar/themes/redwood/_oj-toolbar.cssvars.scss +0 -0
  1416. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/toolbar/themes/redwood/oj-toolbar.scss +0 -0
  1417. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/toolbar/themes/stable/_oj-toolbar.cssvars.scss +0 -0
  1418. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/toolbar/themes/stable/oj-toolbar.scss +0 -0
  1419. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tooltip/themes/base/_oj-tooltip.scss +0 -0
  1420. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tooltip/themes/redwood/_oj-tooltip.cssvars.scss +0 -0
  1421. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tooltip/themes/redwood/oj-tooltip.scss +0 -0
  1422. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tooltip/themes/stable/_oj-tooltip.cssvars.scss +0 -0
  1423. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tooltip/themes/stable/oj-tooltip.scss +0 -0
  1424. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/train/themes/base/_oj-train.scss +0 -0
  1425. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/train/themes/redwood/_oj-train-scoped.cssvars.scss +0 -0
  1426. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/train/themes/redwood/_oj-train.cssvars.scss +0 -0
  1427. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/train/themes/redwood/oj-train.scss +0 -0
  1428. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/train/themes/stable/_oj-train.cssvars.scss +0 -0
  1429. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/train/themes/stable/oj-train.scss +0 -0
  1430. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tree-view/themes/base/_oj-tree-view.scss +0 -0
  1431. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tree-view/themes/redwood/_oj-tree-view.cssvars.scss +0 -0
  1432. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tree-view/themes/redwood/oj-tree-view.scss +0 -0
  1433. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tree-view/themes/stable/_oj-tree-view.cssvars.scss +0 -0
  1434. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/tree-view/themes/stable/oj-tree-view.scss +0 -0
  1435. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/treemap/themes/base/_oj-treemap.scss +0 -0
  1436. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/treemap/themes/redwood/_oj-treemap.cssvars.scss +0 -0
  1437. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/treemap/themes/redwood/oj-treemap.scss +0 -0
  1438. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/treemap/themes/stable/_oj-treemap.cssvars.scss +0 -0
  1439. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/treemap/themes/stable/oj-treemap.scss +0 -0
  1440. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/typography/themes/base/_oj-typography.scss +0 -0
  1441. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/typography/themes/redwood/_oj-typography-ignore.scoped.cssvars.scss +0 -0
  1442. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/typography/themes/redwood/_oj-typography-scoped.cssvars.scss +0 -0
  1443. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/typography/themes/redwood/_oj-typography.cssvars.scss +0 -0
  1444. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/typography/themes/redwood/oj-typography.scss +0 -0
  1445. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/typography/themes/stable/_oj-typography-scoped.cssvars.scss +0 -0
  1446. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/typography/themes/stable/_oj-typography.cssvars.scss +0 -0
  1447. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/typography/themes/stable/oj-typography.scss +0 -0
  1448. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/utilities/_oj.utilities.bidi.scss +0 -0
  1449. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/utilities/_oj.utilities.icons.scss +0 -0
  1450. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/utilities/_oj.utilities.json.scss +0 -0
  1451. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/utilities/_oj.utilities.masonrylayout.scss +0 -0
  1452. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/utilities/_oj.utilities.modules.scss +0 -0
  1453. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/validation-group/themes/base/_oj-validation-group.scss +0 -0
  1454. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/validation-group/themes/redwood/oj-validation-group.scss +0 -0
  1455. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/validation-group/themes/stable/oj-validation-group.scss +0 -0
  1456. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/waterfall-layout/themes/base/_oj-waterfall-layout.scss +0 -0
  1457. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/waterfall-layout/themes/redwood/_oj-waterfall-layout.cssvars.scss +0 -0
  1458. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/waterfall-layout/themes/redwood/oj-waterfall-layout.scss +0 -0
  1459. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/waterfall-layout/themes/stable/_oj-waterfall-layout.cssvars.scss +0 -0
  1460. package/dist/pcss/oj/{13.0.2 → 13.0.4}/oj/waterfall-layout/themes/stable/oj-waterfall-layout.scss +0 -0
  1461. package/dist/scss/common/helpers/_oj.common.helpers.scss +1 -1
  1462. package/dist/webpack-tools/4.x/webpack.config.js +3 -3
  1463. package/dist/webpack-tools/webpack.config.js +3 -3
  1464. package/package.json +1 -1
  1465. package/dist/js/libs/oraclejet-preact/amd/Badge-64e0dbe5.js +0 -2
  1466. package/dist/js/libs/oraclejet-preact/amd/Badge-64e0dbe5.js.map +0 -1
  1467. package/dist/js/libs/oraclejet-preact/amd/Button-519246a3.js +0 -2
  1468. package/dist/js/libs/oraclejet-preact/amd/Button-519246a3.js.map +0 -1
  1469. package/dist/js/libs/oraclejet-preact/amd/Chip-a96548f6.js +0 -2
  1470. package/dist/js/libs/oraclejet-preact/amd/Chip-a96548f6.js.map +0 -1
  1471. package/dist/js/libs/oraclejet-preact/amd/ClearIcon-5acd5920.js +0 -2
  1472. package/dist/js/libs/oraclejet-preact/amd/ClearIcon-5acd5920.js.map +0 -1
  1473. package/dist/js/libs/oraclejet-preact/amd/Collection-a02c6c78.js +0 -2
  1474. package/dist/js/libs/oraclejet-preact/amd/Collection-a02c6c78.js.map +0 -1
  1475. package/dist/js/libs/oraclejet-preact/amd/ComponentMessage-2703f6e9.js +0 -2
  1476. package/dist/js/libs/oraclejet-preact/amd/ComponentMessage-2703f6e9.js.map +0 -1
  1477. package/dist/js/libs/oraclejet-preact/amd/ComponentMessageContainer-bcc3cabe.js +0 -2
  1478. package/dist/js/libs/oraclejet-preact/amd/ComponentMessageContainer-bcc3cabe.js.map +0 -1
  1479. package/dist/js/libs/oraclejet-preact/amd/Flex-40c710fc.js +0 -2
  1480. package/dist/js/libs/oraclejet-preact/amd/Flex-40c710fc.js.map +0 -1
  1481. package/dist/js/libs/oraclejet-preact/amd/HiddenAccessible-fc6e6440.js +0 -2
  1482. package/dist/js/libs/oraclejet-preact/amd/HiddenAccessible-fc6e6440.js.map +0 -1
  1483. package/dist/js/libs/oraclejet-preact/amd/HighlightText-15c7e214.js +0 -2
  1484. package/dist/js/libs/oraclejet-preact/amd/HighlightText-15c7e214.js.map +0 -1
  1485. package/dist/js/libs/oraclejet-preact/amd/Icon-93ea9369.js +0 -2
  1486. package/dist/js/libs/oraclejet-preact/amd/Icon-93ea9369.js.map +0 -1
  1487. package/dist/js/libs/oraclejet-preact/amd/InputText-b1b676f9.js +0 -2
  1488. package/dist/js/libs/oraclejet-preact/amd/InputText-b1b676f9.js.map +0 -1
  1489. package/dist/js/libs/oraclejet-preact/amd/Link-1b2d0e0c.js +0 -2
  1490. package/dist/js/libs/oraclejet-preact/amd/Link-1b2d0e0c.js.map +0 -1
  1491. package/dist/js/libs/oraclejet-preact/amd/ListView-57f16377.js +0 -2
  1492. package/dist/js/libs/oraclejet-preact/amd/ListView-57f16377.js.map +0 -1
  1493. package/dist/js/libs/oraclejet-preact/amd/Message.types-3f64e234.js +0 -2
  1494. package/dist/js/libs/oraclejet-preact/amd/Message.types-3f64e234.js.map +0 -1
  1495. package/dist/js/libs/oraclejet-preact/amd/MessageCloseButton-a2b0bfff.js +0 -2
  1496. package/dist/js/libs/oraclejet-preact/amd/MessageCloseButton-a2b0bfff.js.map +0 -1
  1497. package/dist/js/libs/oraclejet-preact/amd/MessageDetail-de0beb00.js +0 -2
  1498. package/dist/js/libs/oraclejet-preact/amd/MessageDetail-de0beb00.js.map +0 -1
  1499. package/dist/js/libs/oraclejet-preact/amd/MessageFormattingUtils-1e3d660c.js +0 -2
  1500. package/dist/js/libs/oraclejet-preact/amd/MessageFormattingUtils-1e3d660c.js.map +0 -1
  1501. package/dist/js/libs/oraclejet-preact/amd/MessageStartIcon-99c20c31.js +0 -2
  1502. package/dist/js/libs/oraclejet-preact/amd/MessageStartIcon-99c20c31.js.map +0 -1
  1503. package/dist/js/libs/oraclejet-preact/amd/MessageSummary-b689f53c.js +0 -2
  1504. package/dist/js/libs/oraclejet-preact/amd/MessageSummary-b689f53c.js.map +0 -1
  1505. package/dist/js/libs/oraclejet-preact/amd/MessageTimestamp-16af3be7.js +0 -2
  1506. package/dist/js/libs/oraclejet-preact/amd/MessageTimestamp-16af3be7.js.map +0 -1
  1507. package/dist/js/libs/oraclejet-preact/amd/MessageUtils-6ad27689.js +0 -2
  1508. package/dist/js/libs/oraclejet-preact/amd/MessageUtils-6ad27689.js.map +0 -1
  1509. package/dist/js/libs/oraclejet-preact/amd/MessagesManager-71797cf8.js +0 -2
  1510. package/dist/js/libs/oraclejet-preact/amd/MessagesManager-71797cf8.js.map +0 -1
  1511. package/dist/js/libs/oraclejet-preact/amd/RatingGauge-3fba52a4.js +0 -2
  1512. package/dist/js/libs/oraclejet-preact/amd/RatingGauge-3fba52a4.js.map +0 -1
  1513. package/dist/js/libs/oraclejet-preact/amd/SelectMultiple-dbcb1b56.js +0 -2
  1514. package/dist/js/libs/oraclejet-preact/amd/SelectMultiple-dbcb1b56.js.map +0 -1
  1515. package/dist/js/libs/oraclejet-preact/amd/Skeleton-4a9baa13.js +0 -2
  1516. package/dist/js/libs/oraclejet-preact/amd/Skeleton-4a9baa13.js.map +0 -1
  1517. package/dist/js/libs/oraclejet-preact/amd/Spacer-629b8e88.js +0 -2
  1518. package/dist/js/libs/oraclejet-preact/amd/Spacer-629b8e88.js.map +0 -1
  1519. package/dist/js/libs/oraclejet-preact/amd/Text-559267eb.js +0 -2
  1520. package/dist/js/libs/oraclejet-preact/amd/Text-559267eb.js.map +0 -1
  1521. package/dist/js/libs/oraclejet-preact/amd/TextArea-ae155c02.js +0 -2
  1522. package/dist/js/libs/oraclejet-preact/amd/TextArea-ae155c02.js.map +0 -1
  1523. package/dist/js/libs/oraclejet-preact/amd/TextAreaAutosize-c313892a.js +0 -2
  1524. package/dist/js/libs/oraclejet-preact/amd/TextAreaAutosize-c313892a.js.map +0 -1
  1525. package/dist/js/libs/oraclejet-preact/amd/TextFieldInput-9061f5dc.js +0 -2
  1526. package/dist/js/libs/oraclejet-preact/amd/TextFieldInput-9061f5dc.js.map +0 -1
  1527. package/dist/js/libs/oraclejet-preact/amd/VirtualizedCollection-b397d60d.js +0 -2
  1528. package/dist/js/libs/oraclejet-preact/amd/VirtualizedCollection-b397d60d.js.map +0 -1
  1529. package/dist/js/libs/oraclejet-preact/amd/_curry1-f1c75636.js +0 -2
  1530. package/dist/js/libs/oraclejet-preact/amd/_curry1-f1c75636.js.map +0 -1
  1531. package/dist/js/libs/oraclejet-preact/amd/_curry2-63a708f9.js +0 -2
  1532. package/dist/js/libs/oraclejet-preact/amd/_curry2-63a708f9.js.map +0 -1
  1533. package/dist/js/libs/oraclejet-preact/amd/_has-491b2156.js +0 -2
  1534. package/dist/js/libs/oraclejet-preact/amd/_has-491b2156.js.map +0 -1
  1535. package/dist/js/libs/oraclejet-preact/amd/bundle-20a81035.js +0 -2
  1536. package/dist/js/libs/oraclejet-preact/amd/bundle-20a81035.js.map +0 -1
  1537. package/dist/js/libs/oraclejet-preact/amd/bundle-2b30519f.js +0 -2
  1538. package/dist/js/libs/oraclejet-preact/amd/bundle-2b30519f.js.map +0 -1
  1539. package/dist/js/libs/oraclejet-preact/amd/bundle-3fecc8c8.js +0 -2
  1540. package/dist/js/libs/oraclejet-preact/amd/bundle-3fecc8c8.js.map +0 -1
  1541. package/dist/js/libs/oraclejet-preact/amd/bundle-4822e768.js +0 -2
  1542. package/dist/js/libs/oraclejet-preact/amd/bundle-4822e768.js.map +0 -1
  1543. package/dist/js/libs/oraclejet-preact/amd/bundle-4a1a05ec.js +0 -2
  1544. package/dist/js/libs/oraclejet-preact/amd/bundle-4a1a05ec.js.map +0 -1
  1545. package/dist/js/libs/oraclejet-preact/amd/bundle-5259ffd1.js +0 -2
  1546. package/dist/js/libs/oraclejet-preact/amd/bundle-5259ffd1.js.map +0 -1
  1547. package/dist/js/libs/oraclejet-preact/amd/bundle-538a2076.js +0 -2
  1548. package/dist/js/libs/oraclejet-preact/amd/bundle-538a2076.js.map +0 -1
  1549. package/dist/js/libs/oraclejet-preact/amd/bundle-5ab67908.js +0 -2
  1550. package/dist/js/libs/oraclejet-preact/amd/bundle-5ab67908.js.map +0 -1
  1551. package/dist/js/libs/oraclejet-preact/amd/bundle-5c8541ce.js +0 -2
  1552. package/dist/js/libs/oraclejet-preact/amd/bundle-5c8541ce.js.map +0 -1
  1553. package/dist/js/libs/oraclejet-preact/amd/bundle-5eb4ff32.js +0 -2
  1554. package/dist/js/libs/oraclejet-preact/amd/bundle-5eb4ff32.js.map +0 -1
  1555. package/dist/js/libs/oraclejet-preact/amd/bundle-63cc9987.js +0 -2
  1556. package/dist/js/libs/oraclejet-preact/amd/bundle-63cc9987.js.map +0 -1
  1557. package/dist/js/libs/oraclejet-preact/amd/bundle-7343b2a6.js +0 -2
  1558. package/dist/js/libs/oraclejet-preact/amd/bundle-7343b2a6.js.map +0 -1
  1559. package/dist/js/libs/oraclejet-preact/amd/bundle-76f9c1ff.js +0 -2
  1560. package/dist/js/libs/oraclejet-preact/amd/bundle-76f9c1ff.js.map +0 -1
  1561. package/dist/js/libs/oraclejet-preact/amd/bundle-7b9ce2b1.js +0 -2
  1562. package/dist/js/libs/oraclejet-preact/amd/bundle-7b9ce2b1.js.map +0 -1
  1563. package/dist/js/libs/oraclejet-preact/amd/bundle-7c51f7e4.js +0 -2
  1564. package/dist/js/libs/oraclejet-preact/amd/bundle-7c51f7e4.js.map +0 -1
  1565. package/dist/js/libs/oraclejet-preact/amd/bundle-7e8ddbba.js +0 -2
  1566. package/dist/js/libs/oraclejet-preact/amd/bundle-7e8ddbba.js.map +0 -1
  1567. package/dist/js/libs/oraclejet-preact/amd/bundle-7fc16757.js +0 -2
  1568. package/dist/js/libs/oraclejet-preact/amd/bundle-7fc16757.js.map +0 -1
  1569. package/dist/js/libs/oraclejet-preact/amd/bundle-82c36d27.js +0 -2
  1570. package/dist/js/libs/oraclejet-preact/amd/bundle-82c36d27.js.map +0 -1
  1571. package/dist/js/libs/oraclejet-preact/amd/bundle-89224f4a.js +0 -2
  1572. package/dist/js/libs/oraclejet-preact/amd/bundle-89224f4a.js.map +0 -1
  1573. package/dist/js/libs/oraclejet-preact/amd/bundle-8ce3d972.js +0 -2
  1574. package/dist/js/libs/oraclejet-preact/amd/bundle-8ce3d972.js.map +0 -1
  1575. package/dist/js/libs/oraclejet-preact/amd/bundle-8dfa0b69.js +0 -2
  1576. package/dist/js/libs/oraclejet-preact/amd/bundle-8dfa0b69.js.map +0 -1
  1577. package/dist/js/libs/oraclejet-preact/amd/bundle-91d36f44.js +0 -2
  1578. package/dist/js/libs/oraclejet-preact/amd/bundle-91d36f44.js.map +0 -1
  1579. package/dist/js/libs/oraclejet-preact/amd/bundle-a3de3eb7.js +0 -2
  1580. package/dist/js/libs/oraclejet-preact/amd/bundle-a3de3eb7.js.map +0 -1
  1581. package/dist/js/libs/oraclejet-preact/amd/bundle-a644ad7b.js +0 -2
  1582. package/dist/js/libs/oraclejet-preact/amd/bundle-a644ad7b.js.map +0 -1
  1583. package/dist/js/libs/oraclejet-preact/amd/bundle-a786c8f1.js +0 -2
  1584. package/dist/js/libs/oraclejet-preact/amd/bundle-a786c8f1.js.map +0 -1
  1585. package/dist/js/libs/oraclejet-preact/amd/bundle-a90a00e3.js +0 -2
  1586. package/dist/js/libs/oraclejet-preact/amd/bundle-a90a00e3.js.map +0 -1
  1587. package/dist/js/libs/oraclejet-preact/amd/bundle-ab941f7b.js +0 -2
  1588. package/dist/js/libs/oraclejet-preact/amd/bundle-ab941f7b.js.map +0 -1
  1589. package/dist/js/libs/oraclejet-preact/amd/bundle-b4e75aac.js +0 -2
  1590. package/dist/js/libs/oraclejet-preact/amd/bundle-b4e75aac.js.map +0 -1
  1591. package/dist/js/libs/oraclejet-preact/amd/bundle-b5d16afe.js +0 -2
  1592. package/dist/js/libs/oraclejet-preact/amd/bundle-b5d16afe.js.map +0 -1
  1593. package/dist/js/libs/oraclejet-preact/amd/bundle-bb741127.js +0 -2
  1594. package/dist/js/libs/oraclejet-preact/amd/bundle-bb741127.js.map +0 -1
  1595. package/dist/js/libs/oraclejet-preact/amd/bundle-bebb0bca.js +0 -2
  1596. package/dist/js/libs/oraclejet-preact/amd/bundle-bebb0bca.js.map +0 -1
  1597. package/dist/js/libs/oraclejet-preact/amd/bundle-c2039d3f.js +0 -2
  1598. package/dist/js/libs/oraclejet-preact/amd/bundle-c2039d3f.js.map +0 -1
  1599. package/dist/js/libs/oraclejet-preact/amd/bundle-c5b8f726.js +0 -2
  1600. package/dist/js/libs/oraclejet-preact/amd/bundle-c5b8f726.js.map +0 -1
  1601. package/dist/js/libs/oraclejet-preact/amd/bundle-c7f1512b.js +0 -2
  1602. package/dist/js/libs/oraclejet-preact/amd/bundle-c7f1512b.js.map +0 -1
  1603. package/dist/js/libs/oraclejet-preact/amd/bundle-cd2506fd.js +0 -2
  1604. package/dist/js/libs/oraclejet-preact/amd/bundle-cd2506fd.js.map +0 -1
  1605. package/dist/js/libs/oraclejet-preact/amd/bundle-ce7c2c20.js +0 -2
  1606. package/dist/js/libs/oraclejet-preact/amd/bundle-ce7c2c20.js.map +0 -1
  1607. package/dist/js/libs/oraclejet-preact/amd/bundle-d8d27c99.js +0 -2
  1608. package/dist/js/libs/oraclejet-preact/amd/bundle-d8d27c99.js.map +0 -1
  1609. package/dist/js/libs/oraclejet-preact/amd/bundle-d975bb0a.js +0 -2
  1610. package/dist/js/libs/oraclejet-preact/amd/bundle-d975bb0a.js.map +0 -1
  1611. package/dist/js/libs/oraclejet-preact/amd/bundle-daddbf5e.js +0 -2
  1612. package/dist/js/libs/oraclejet-preact/amd/bundle-daddbf5e.js.map +0 -1
  1613. package/dist/js/libs/oraclejet-preact/amd/bundle-e34a6cdc.js +0 -2
  1614. package/dist/js/libs/oraclejet-preact/amd/bundle-e34a6cdc.js.map +0 -1
  1615. package/dist/js/libs/oraclejet-preact/amd/bundle-e6003e96.js +0 -2
  1616. package/dist/js/libs/oraclejet-preact/amd/bundle-e6003e96.js.map +0 -1
  1617. package/dist/js/libs/oraclejet-preact/amd/bundle-e707c936.js +0 -2
  1618. package/dist/js/libs/oraclejet-preact/amd/bundle-e707c936.js.map +0 -1
  1619. package/dist/js/libs/oraclejet-preact/amd/bundle-eae0b62c.js +0 -2
  1620. package/dist/js/libs/oraclejet-preact/amd/bundle-eae0b62c.js.map +0 -1
  1621. package/dist/js/libs/oraclejet-preact/amd/bundle-f0927209.js +0 -2
  1622. package/dist/js/libs/oraclejet-preact/amd/bundle-f0927209.js.map +0 -1
  1623. package/dist/js/libs/oraclejet-preact/amd/bundle-f3885b7d.js +0 -2
  1624. package/dist/js/libs/oraclejet-preact/amd/bundle-f3885b7d.js.map +0 -1
  1625. package/dist/js/libs/oraclejet-preact/amd/bundle-f40155f4.js +0 -2
  1626. package/dist/js/libs/oraclejet-preact/amd/bundle-f40155f4.js.map +0 -1
  1627. package/dist/js/libs/oraclejet-preact/amd/bundle-f4e44f24.js +0 -2
  1628. package/dist/js/libs/oraclejet-preact/amd/bundle-f4e44f24.js.map +0 -1
  1629. package/dist/js/libs/oraclejet-preact/amd/bundle-f7e8712c.js +0 -2
  1630. package/dist/js/libs/oraclejet-preact/amd/bundle-f7e8712c.js.map +0 -1
  1631. package/dist/js/libs/oraclejet-preact/amd/classNames-b3be51c1.js +0 -2
  1632. package/dist/js/libs/oraclejet-preact/amd/classNames-b3be51c1.js.map +0 -1
  1633. package/dist/js/libs/oraclejet-preact/amd/clientHints-4b478df0.js +0 -2
  1634. package/dist/js/libs/oraclejet-preact/amd/clientHints-4b478df0.js.map +0 -1
  1635. package/dist/js/libs/oraclejet-preact/amd/flexbox-937ddde3.js +0 -2
  1636. package/dist/js/libs/oraclejet-preact/amd/flexbox-937ddde3.js.map +0 -1
  1637. package/dist/js/libs/oraclejet-preact/amd/flexitem-6444aa08.js +0 -2
  1638. package/dist/js/libs/oraclejet-preact/amd/flexitem-6444aa08.js.map +0 -1
  1639. package/dist/js/libs/oraclejet-preact/amd/index-6d0068fd.js +0 -2
  1640. package/dist/js/libs/oraclejet-preact/amd/index-6d0068fd.js.map +0 -1
  1641. package/dist/js/libs/oraclejet-preact/amd/index-c268b73f.js +0 -2
  1642. package/dist/js/libs/oraclejet-preact/amd/index-c268b73f.js.map +0 -1
  1643. package/dist/js/libs/oraclejet-preact/amd/index-e072ff93.js +0 -2
  1644. package/dist/js/libs/oraclejet-preact/amd/index-e072ff93.js.map +0 -1
  1645. package/dist/js/libs/oraclejet-preact/amd/keys-1886315d.js +0 -2
  1646. package/dist/js/libs/oraclejet-preact/amd/keys-1886315d.js.map +0 -1
  1647. package/dist/js/libs/oraclejet-preact/amd/stringUtils-5947815e.js +0 -2
  1648. package/dist/js/libs/oraclejet-preact/amd/stringUtils-5947815e.js.map +0 -1
  1649. package/dist/js/libs/oraclejet-preact/amd/tslib.es6-44d49373.js +0 -2
  1650. package/dist/js/libs/oraclejet-preact/amd/tslib.es6-44d49373.js.map +0 -1
  1651. package/dist/js/libs/oraclejet-preact/amd/useFocusWithin-a6480fc0.js +0 -2
  1652. package/dist/js/libs/oraclejet-preact/amd/useFocusWithin-a6480fc0.js.map +0 -1
  1653. package/dist/js/libs/oraclejet-preact/cjs/Badge-ea9cc280.js +0 -42
  1654. package/dist/js/libs/oraclejet-preact/cjs/Badge-ea9cc280.js.map +0 -1
  1655. package/dist/js/libs/oraclejet-preact/cjs/Button-493d552e.js +0 -156
  1656. package/dist/js/libs/oraclejet-preact/cjs/Button-493d552e.js.map +0 -1
  1657. package/dist/js/libs/oraclejet-preact/cjs/Chip-d1137e11.js +0 -58
  1658. package/dist/js/libs/oraclejet-preact/cjs/Chip-d1137e11.js.map +0 -1
  1659. package/dist/js/libs/oraclejet-preact/cjs/ClearIcon-4c500f9c.js +0 -62
  1660. package/dist/js/libs/oraclejet-preact/cjs/ClearIcon-4c500f9c.js.map +0 -1
  1661. package/dist/js/libs/oraclejet-preact/cjs/Collection-f3e8360d.js +0 -19
  1662. package/dist/js/libs/oraclejet-preact/cjs/Collection-f3e8360d.js.map +0 -1
  1663. package/dist/js/libs/oraclejet-preact/cjs/ComponentMessage-dbc88c2a.js +0 -40
  1664. package/dist/js/libs/oraclejet-preact/cjs/ComponentMessage-dbc88c2a.js.map +0 -1
  1665. package/dist/js/libs/oraclejet-preact/cjs/ComponentMessageContainer-5664a71a.js +0 -54
  1666. package/dist/js/libs/oraclejet-preact/cjs/ComponentMessageContainer-5664a71a.js.map +0 -1
  1667. package/dist/js/libs/oraclejet-preact/cjs/Flex-90ba9f0a.js +0 -40
  1668. package/dist/js/libs/oraclejet-preact/cjs/Flex-90ba9f0a.js.map +0 -1
  1669. package/dist/js/libs/oraclejet-preact/cjs/HiddenAccessible-b80a9419.js +0 -26
  1670. package/dist/js/libs/oraclejet-preact/cjs/HiddenAccessible-b80a9419.js.map +0 -1
  1671. package/dist/js/libs/oraclejet-preact/cjs/HighlightText-593a12b8.js +0 -50
  1672. package/dist/js/libs/oraclejet-preact/cjs/HighlightText-593a12b8.js.map +0 -1
  1673. package/dist/js/libs/oraclejet-preact/cjs/Icon-99db88bb.js +0 -89
  1674. package/dist/js/libs/oraclejet-preact/cjs/Icon-99db88bb.js.map +0 -1
  1675. package/dist/js/libs/oraclejet-preact/cjs/InputText-1823d5c6.js +0 -98
  1676. package/dist/js/libs/oraclejet-preact/cjs/InputText-1823d5c6.js.map +0 -1
  1677. package/dist/js/libs/oraclejet-preact/cjs/Link-8daac74b.js +0 -44
  1678. package/dist/js/libs/oraclejet-preact/cjs/Link-8daac74b.js.map +0 -1
  1679. package/dist/js/libs/oraclejet-preact/cjs/ListView-36cc1b35.js +0 -571
  1680. package/dist/js/libs/oraclejet-preact/cjs/ListView-36cc1b35.js.map +0 -1
  1681. package/dist/js/libs/oraclejet-preact/cjs/Message.types-d6dde390.js +0 -18
  1682. package/dist/js/libs/oraclejet-preact/cjs/Message.types-d6dde390.js.map +0 -1
  1683. package/dist/js/libs/oraclejet-preact/cjs/MessageCloseButton-0ec536a7.js +0 -42
  1684. package/dist/js/libs/oraclejet-preact/cjs/MessageCloseButton-0ec536a7.js.map +0 -1
  1685. package/dist/js/libs/oraclejet-preact/cjs/MessageDetail-258235bc.js +0 -59
  1686. package/dist/js/libs/oraclejet-preact/cjs/MessageDetail-258235bc.js.map +0 -1
  1687. package/dist/js/libs/oraclejet-preact/cjs/MessageFormattingUtils-7b164d5b.js +0 -106
  1688. package/dist/js/libs/oraclejet-preact/cjs/MessageFormattingUtils-7b164d5b.js.map +0 -1
  1689. package/dist/js/libs/oraclejet-preact/cjs/MessageStartIcon-5c070593.js +0 -55
  1690. package/dist/js/libs/oraclejet-preact/cjs/MessageStartIcon-5c070593.js.map +0 -1
  1691. package/dist/js/libs/oraclejet-preact/cjs/MessageSummary-a04bdb70.js +0 -32
  1692. package/dist/js/libs/oraclejet-preact/cjs/MessageSummary-a04bdb70.js.map +0 -1
  1693. package/dist/js/libs/oraclejet-preact/cjs/MessageTimestamp-8f513c15.js +0 -32
  1694. package/dist/js/libs/oraclejet-preact/cjs/MessageTimestamp-8f513c15.js.map +0 -1
  1695. package/dist/js/libs/oraclejet-preact/cjs/MessageUtils-06e45530.js +0 -116
  1696. package/dist/js/libs/oraclejet-preact/cjs/MessageUtils-06e45530.js.map +0 -1
  1697. package/dist/js/libs/oraclejet-preact/cjs/MessagesManager-00d3300f.js +0 -101
  1698. package/dist/js/libs/oraclejet-preact/cjs/MessagesManager-00d3300f.js.map +0 -1
  1699. package/dist/js/libs/oraclejet-preact/cjs/RatingGauge-ad009e5f.js +0 -333
  1700. package/dist/js/libs/oraclejet-preact/cjs/RatingGauge-ad009e5f.js.map +0 -1
  1701. package/dist/js/libs/oraclejet-preact/cjs/SelectMultiple-4c46f338.js +0 -846
  1702. package/dist/js/libs/oraclejet-preact/cjs/SelectMultiple-4c46f338.js.map +0 -1
  1703. package/dist/js/libs/oraclejet-preact/cjs/Skeleton-f5e58047.js +0 -47
  1704. package/dist/js/libs/oraclejet-preact/cjs/Skeleton-f5e58047.js.map +0 -1
  1705. package/dist/js/libs/oraclejet-preact/cjs/Spacer-8ced4348.js +0 -21
  1706. package/dist/js/libs/oraclejet-preact/cjs/Spacer-8ced4348.js.map +0 -1
  1707. package/dist/js/libs/oraclejet-preact/cjs/Text-bb3c2205.js +0 -97
  1708. package/dist/js/libs/oraclejet-preact/cjs/Text-bb3c2205.js.map +0 -1
  1709. package/dist/js/libs/oraclejet-preact/cjs/TextArea-65023e1a.js +0 -70
  1710. package/dist/js/libs/oraclejet-preact/cjs/TextArea-65023e1a.js.map +0 -1
  1711. package/dist/js/libs/oraclejet-preact/cjs/TextAreaAutosize-6c3251d5.js +0 -148
  1712. package/dist/js/libs/oraclejet-preact/cjs/TextAreaAutosize-6c3251d5.js.map +0 -1
  1713. package/dist/js/libs/oraclejet-preact/cjs/TextFieldInput-5538a6d3.js +0 -156
  1714. package/dist/js/libs/oraclejet-preact/cjs/TextFieldInput-5538a6d3.js.map +0 -1
  1715. package/dist/js/libs/oraclejet-preact/cjs/VirtualizedCollection-4fc3f15b.js +0 -209
  1716. package/dist/js/libs/oraclejet-preact/cjs/VirtualizedCollection-4fc3f15b.js.map +0 -1
  1717. package/dist/js/libs/oraclejet-preact/cjs/_curry1-8487e391.js +0 -71
  1718. package/dist/js/libs/oraclejet-preact/cjs/_curry1-8487e391.js.map +0 -1
  1719. package/dist/js/libs/oraclejet-preact/cjs/_curry2-8a0a3433.js +0 -48
  1720. package/dist/js/libs/oraclejet-preact/cjs/_curry2-8a0a3433.js.map +0 -1
  1721. package/dist/js/libs/oraclejet-preact/cjs/_has-b94b4f72.js +0 -14
  1722. package/dist/js/libs/oraclejet-preact/cjs/_has-b94b4f72.js.map +0 -1
  1723. package/dist/js/libs/oraclejet-preact/cjs/bundle-0277b50b.js +0 -33
  1724. package/dist/js/libs/oraclejet-preact/cjs/bundle-0277b50b.js.map +0 -1
  1725. package/dist/js/libs/oraclejet-preact/cjs/bundle-05aa97b1.js +0 -34
  1726. package/dist/js/libs/oraclejet-preact/cjs/bundle-05aa97b1.js.map +0 -1
  1727. package/dist/js/libs/oraclejet-preact/cjs/bundle-066907e0.js +0 -34
  1728. package/dist/js/libs/oraclejet-preact/cjs/bundle-066907e0.js.map +0 -1
  1729. package/dist/js/libs/oraclejet-preact/cjs/bundle-1f35e4c3.js +0 -34
  1730. package/dist/js/libs/oraclejet-preact/cjs/bundle-1f35e4c3.js.map +0 -1
  1731. package/dist/js/libs/oraclejet-preact/cjs/bundle-20cc758c.js +0 -34
  1732. package/dist/js/libs/oraclejet-preact/cjs/bundle-20cc758c.js.map +0 -1
  1733. package/dist/js/libs/oraclejet-preact/cjs/bundle-23399b2b.js +0 -34
  1734. package/dist/js/libs/oraclejet-preact/cjs/bundle-23399b2b.js.map +0 -1
  1735. package/dist/js/libs/oraclejet-preact/cjs/bundle-26b4c7ec.js +0 -34
  1736. package/dist/js/libs/oraclejet-preact/cjs/bundle-26b4c7ec.js.map +0 -1
  1737. package/dist/js/libs/oraclejet-preact/cjs/bundle-275d3735.js +0 -34
  1738. package/dist/js/libs/oraclejet-preact/cjs/bundle-275d3735.js.map +0 -1
  1739. package/dist/js/libs/oraclejet-preact/cjs/bundle-2a7790e3.js +0 -34
  1740. package/dist/js/libs/oraclejet-preact/cjs/bundle-2a7790e3.js.map +0 -1
  1741. package/dist/js/libs/oraclejet-preact/cjs/bundle-311656f9.js +0 -34
  1742. package/dist/js/libs/oraclejet-preact/cjs/bundle-311656f9.js.map +0 -1
  1743. package/dist/js/libs/oraclejet-preact/cjs/bundle-327b8d12.js +0 -34
  1744. package/dist/js/libs/oraclejet-preact/cjs/bundle-327b8d12.js.map +0 -1
  1745. package/dist/js/libs/oraclejet-preact/cjs/bundle-36a0612f.js +0 -34
  1746. package/dist/js/libs/oraclejet-preact/cjs/bundle-36a0612f.js.map +0 -1
  1747. package/dist/js/libs/oraclejet-preact/cjs/bundle-37de346a.js +0 -34
  1748. package/dist/js/libs/oraclejet-preact/cjs/bundle-37de346a.js.map +0 -1
  1749. package/dist/js/libs/oraclejet-preact/cjs/bundle-39ec6fe8.js +0 -32
  1750. package/dist/js/libs/oraclejet-preact/cjs/bundle-39ec6fe8.js.map +0 -1
  1751. package/dist/js/libs/oraclejet-preact/cjs/bundle-3df8226a.js +0 -34
  1752. package/dist/js/libs/oraclejet-preact/cjs/bundle-3df8226a.js.map +0 -1
  1753. package/dist/js/libs/oraclejet-preact/cjs/bundle-418c1681.js +0 -34
  1754. package/dist/js/libs/oraclejet-preact/cjs/bundle-418c1681.js.map +0 -1
  1755. package/dist/js/libs/oraclejet-preact/cjs/bundle-4d5640eb.js +0 -34
  1756. package/dist/js/libs/oraclejet-preact/cjs/bundle-4d5640eb.js.map +0 -1
  1757. package/dist/js/libs/oraclejet-preact/cjs/bundle-4e4eafb7.js +0 -33
  1758. package/dist/js/libs/oraclejet-preact/cjs/bundle-4e4eafb7.js.map +0 -1
  1759. package/dist/js/libs/oraclejet-preact/cjs/bundle-564395fe.js +0 -34
  1760. package/dist/js/libs/oraclejet-preact/cjs/bundle-564395fe.js.map +0 -1
  1761. package/dist/js/libs/oraclejet-preact/cjs/bundle-5849b028.js +0 -34
  1762. package/dist/js/libs/oraclejet-preact/cjs/bundle-5849b028.js.map +0 -1
  1763. package/dist/js/libs/oraclejet-preact/cjs/bundle-5c808e06.js +0 -34
  1764. package/dist/js/libs/oraclejet-preact/cjs/bundle-5c808e06.js.map +0 -1
  1765. package/dist/js/libs/oraclejet-preact/cjs/bundle-5d2562a9.js +0 -34
  1766. package/dist/js/libs/oraclejet-preact/cjs/bundle-5d2562a9.js.map +0 -1
  1767. package/dist/js/libs/oraclejet-preact/cjs/bundle-61d31b57.js +0 -34
  1768. package/dist/js/libs/oraclejet-preact/cjs/bundle-61d31b57.js.map +0 -1
  1769. package/dist/js/libs/oraclejet-preact/cjs/bundle-66b56ffa.js +0 -34
  1770. package/dist/js/libs/oraclejet-preact/cjs/bundle-66b56ffa.js.map +0 -1
  1771. package/dist/js/libs/oraclejet-preact/cjs/bundle-6742480a.js +0 -33
  1772. package/dist/js/libs/oraclejet-preact/cjs/bundle-6742480a.js.map +0 -1
  1773. package/dist/js/libs/oraclejet-preact/cjs/bundle-7511aa2d.js +0 -34
  1774. package/dist/js/libs/oraclejet-preact/cjs/bundle-7511aa2d.js.map +0 -1
  1775. package/dist/js/libs/oraclejet-preact/cjs/bundle-77daf9e3.js +0 -34
  1776. package/dist/js/libs/oraclejet-preact/cjs/bundle-77daf9e3.js.map +0 -1
  1777. package/dist/js/libs/oraclejet-preact/cjs/bundle-7c5cebe0.js +0 -34
  1778. package/dist/js/libs/oraclejet-preact/cjs/bundle-7c5cebe0.js.map +0 -1
  1779. package/dist/js/libs/oraclejet-preact/cjs/bundle-88e019bc.js +0 -34
  1780. package/dist/js/libs/oraclejet-preact/cjs/bundle-88e019bc.js.map +0 -1
  1781. package/dist/js/libs/oraclejet-preact/cjs/bundle-917e81fd.js +0 -34
  1782. package/dist/js/libs/oraclejet-preact/cjs/bundle-917e81fd.js.map +0 -1
  1783. package/dist/js/libs/oraclejet-preact/cjs/bundle-94fc56b9.js +0 -34
  1784. package/dist/js/libs/oraclejet-preact/cjs/bundle-94fc56b9.js.map +0 -1
  1785. package/dist/js/libs/oraclejet-preact/cjs/bundle-955aaec3.js +0 -34
  1786. package/dist/js/libs/oraclejet-preact/cjs/bundle-955aaec3.js.map +0 -1
  1787. package/dist/js/libs/oraclejet-preact/cjs/bundle-9ba24304.js +0 -34
  1788. package/dist/js/libs/oraclejet-preact/cjs/bundle-9ba24304.js.map +0 -1
  1789. package/dist/js/libs/oraclejet-preact/cjs/bundle-a374285a.js +0 -34
  1790. package/dist/js/libs/oraclejet-preact/cjs/bundle-a374285a.js.map +0 -1
  1791. package/dist/js/libs/oraclejet-preact/cjs/bundle-a8e56f25.js +0 -34
  1792. package/dist/js/libs/oraclejet-preact/cjs/bundle-a8e56f25.js.map +0 -1
  1793. package/dist/js/libs/oraclejet-preact/cjs/bundle-afbd8be2.js +0 -34
  1794. package/dist/js/libs/oraclejet-preact/cjs/bundle-afbd8be2.js.map +0 -1
  1795. package/dist/js/libs/oraclejet-preact/cjs/bundle-b2a8da35.js +0 -34
  1796. package/dist/js/libs/oraclejet-preact/cjs/bundle-b2a8da35.js.map +0 -1
  1797. package/dist/js/libs/oraclejet-preact/cjs/bundle-b95b17e4.js +0 -34
  1798. package/dist/js/libs/oraclejet-preact/cjs/bundle-b95b17e4.js.map +0 -1
  1799. package/dist/js/libs/oraclejet-preact/cjs/bundle-bf732daf.js +0 -33
  1800. package/dist/js/libs/oraclejet-preact/cjs/bundle-bf732daf.js.map +0 -1
  1801. package/dist/js/libs/oraclejet-preact/cjs/bundle-c3724e51.js +0 -34
  1802. package/dist/js/libs/oraclejet-preact/cjs/bundle-c3724e51.js.map +0 -1
  1803. package/dist/js/libs/oraclejet-preact/cjs/bundle-c91238ef.js +0 -34
  1804. package/dist/js/libs/oraclejet-preact/cjs/bundle-c91238ef.js.map +0 -1
  1805. package/dist/js/libs/oraclejet-preact/cjs/bundle-cc7d3007.js +0 -34
  1806. package/dist/js/libs/oraclejet-preact/cjs/bundle-cc7d3007.js.map +0 -1
  1807. package/dist/js/libs/oraclejet-preact/cjs/bundle-d86ce1cf.js +0 -34
  1808. package/dist/js/libs/oraclejet-preact/cjs/bundle-d86ce1cf.js.map +0 -1
  1809. package/dist/js/libs/oraclejet-preact/cjs/bundle-da1a35c6.js +0 -34
  1810. package/dist/js/libs/oraclejet-preact/cjs/bundle-da1a35c6.js.map +0 -1
  1811. package/dist/js/libs/oraclejet-preact/cjs/bundle-de1dadd7.js +0 -32
  1812. package/dist/js/libs/oraclejet-preact/cjs/bundle-de1dadd7.js.map +0 -1
  1813. package/dist/js/libs/oraclejet-preact/cjs/bundle-eefff0e7.js +0 -34
  1814. package/dist/js/libs/oraclejet-preact/cjs/bundle-eefff0e7.js.map +0 -1
  1815. package/dist/js/libs/oraclejet-preact/cjs/bundle-f0462cc9.js +0 -34
  1816. package/dist/js/libs/oraclejet-preact/cjs/bundle-f0462cc9.js.map +0 -1
  1817. package/dist/js/libs/oraclejet-preact/cjs/bundle-fb51dd31.js +0 -34
  1818. package/dist/js/libs/oraclejet-preact/cjs/bundle-fb51dd31.js.map +0 -1
  1819. package/dist/js/libs/oraclejet-preact/cjs/classNames-7897cd9a.js +0 -17
  1820. package/dist/js/libs/oraclejet-preact/cjs/classNames-7897cd9a.js.map +0 -1
  1821. package/dist/js/libs/oraclejet-preact/cjs/clientHints-ed023784.js +0 -146
  1822. package/dist/js/libs/oraclejet-preact/cjs/clientHints-ed023784.js.map +0 -1
  1823. package/dist/js/libs/oraclejet-preact/cjs/flexbox-b323e9be.js +0 -42
  1824. package/dist/js/libs/oraclejet-preact/cjs/flexbox-b323e9be.js.map +0 -1
  1825. package/dist/js/libs/oraclejet-preact/cjs/flexitem-c4f8fcd2.js +0 -42
  1826. package/dist/js/libs/oraclejet-preact/cjs/flexitem-c4f8fcd2.js.map +0 -1
  1827. package/dist/js/libs/oraclejet-preact/cjs/index-79cf375a.js +0 -58
  1828. package/dist/js/libs/oraclejet-preact/cjs/index-79cf375a.js.map +0 -1
  1829. package/dist/js/libs/oraclejet-preact/cjs/index-ce3067e5.js +0 -48
  1830. package/dist/js/libs/oraclejet-preact/cjs/index-ce3067e5.js.map +0 -1
  1831. package/dist/js/libs/oraclejet-preact/cjs/index-d39a66ff.js +0 -190
  1832. package/dist/js/libs/oraclejet-preact/cjs/index-d39a66ff.js.map +0 -1
  1833. package/dist/js/libs/oraclejet-preact/cjs/keys-4397e9dc.js +0 -128
  1834. package/dist/js/libs/oraclejet-preact/cjs/keys-4397e9dc.js.map +0 -1
  1835. package/dist/js/libs/oraclejet-preact/cjs/stringUtils-b7e21274.js +0 -90
  1836. package/dist/js/libs/oraclejet-preact/cjs/stringUtils-b7e21274.js.map +0 -1
  1837. package/dist/js/libs/oraclejet-preact/cjs/tslib.es6-fd51dea5.js +0 -246
  1838. package/dist/js/libs/oraclejet-preact/cjs/tslib.es6-fd51dea5.js.map +0 -1
  1839. package/dist/js/libs/oraclejet-preact/cjs/useFocusWithin-fd73b4e5.js +0 -40
  1840. package/dist/js/libs/oraclejet-preact/cjs/useFocusWithin-fd73b4e5.js.map +0 -1
  1841. package/dist/js/libs/oraclejet-preact/es/ClearIcon-7fcb5479.js +0 -60
  1842. package/dist/js/libs/oraclejet-preact/es/ClearIcon-7fcb5479.js.map +0 -1
  1843. package/dist/js/libs/oraclejet-preact/es/_curry1-e4fb2887.js +0 -68
  1844. package/dist/js/libs/oraclejet-preact/es/_curry1-e4fb2887.js.map +0 -1
  1845. package/dist/js/libs/oraclejet-preact/es/_curry2-f07d8aaf.js +0 -46
  1846. package/dist/js/libs/oraclejet-preact/es/_curry2-f07d8aaf.js.map +0 -1
  1847. package/dist/js/libs/oraclejet-preact/es/_has-0963f563.js +0 -12
  1848. package/dist/js/libs/oraclejet-preact/es/_has-0963f563.js.map +0 -1
  1849. package/dist/js/libs/oraclejet-preact/es/bundle-022ab6a3.js +0 -32
  1850. package/dist/js/libs/oraclejet-preact/es/bundle-022ab6a3.js.map +0 -1
  1851. package/dist/js/libs/oraclejet-preact/es/bundle-0243daa0.js +0 -32
  1852. package/dist/js/libs/oraclejet-preact/es/bundle-0243daa0.js.map +0 -1
  1853. package/dist/js/libs/oraclejet-preact/es/bundle-04d32b98.js +0 -32
  1854. package/dist/js/libs/oraclejet-preact/es/bundle-04d32b98.js.map +0 -1
  1855. package/dist/js/libs/oraclejet-preact/es/bundle-07c3bafa.js +0 -32
  1856. package/dist/js/libs/oraclejet-preact/es/bundle-07c3bafa.js.map +0 -1
  1857. package/dist/js/libs/oraclejet-preact/es/bundle-08de4b75.js +0 -32
  1858. package/dist/js/libs/oraclejet-preact/es/bundle-08de4b75.js.map +0 -1
  1859. package/dist/js/libs/oraclejet-preact/es/bundle-0974e3e5.js +0 -32
  1860. package/dist/js/libs/oraclejet-preact/es/bundle-0974e3e5.js.map +0 -1
  1861. package/dist/js/libs/oraclejet-preact/es/bundle-0f3f5a45.js +0 -32
  1862. package/dist/js/libs/oraclejet-preact/es/bundle-0f3f5a45.js.map +0 -1
  1863. package/dist/js/libs/oraclejet-preact/es/bundle-1815e77d.js +0 -32
  1864. package/dist/js/libs/oraclejet-preact/es/bundle-1815e77d.js.map +0 -1
  1865. package/dist/js/libs/oraclejet-preact/es/bundle-21de49f4.js +0 -32
  1866. package/dist/js/libs/oraclejet-preact/es/bundle-21de49f4.js.map +0 -1
  1867. package/dist/js/libs/oraclejet-preact/es/bundle-28be0053.js +0 -32
  1868. package/dist/js/libs/oraclejet-preact/es/bundle-28be0053.js.map +0 -1
  1869. package/dist/js/libs/oraclejet-preact/es/bundle-2905d654.js +0 -32
  1870. package/dist/js/libs/oraclejet-preact/es/bundle-2905d654.js.map +0 -1
  1871. package/dist/js/libs/oraclejet-preact/es/bundle-365c5a49.js +0 -32
  1872. package/dist/js/libs/oraclejet-preact/es/bundle-365c5a49.js.map +0 -1
  1873. package/dist/js/libs/oraclejet-preact/es/bundle-3d3de636.js +0 -31
  1874. package/dist/js/libs/oraclejet-preact/es/bundle-3d3de636.js.map +0 -1
  1875. package/dist/js/libs/oraclejet-preact/es/bundle-3d44bb1c.js +0 -31
  1876. package/dist/js/libs/oraclejet-preact/es/bundle-3d44bb1c.js.map +0 -1
  1877. package/dist/js/libs/oraclejet-preact/es/bundle-3d600c97.js +0 -32
  1878. package/dist/js/libs/oraclejet-preact/es/bundle-3d600c97.js.map +0 -1
  1879. package/dist/js/libs/oraclejet-preact/es/bundle-5061b974.js +0 -32
  1880. package/dist/js/libs/oraclejet-preact/es/bundle-5061b974.js.map +0 -1
  1881. package/dist/js/libs/oraclejet-preact/es/bundle-520a7a5b.js +0 -30
  1882. package/dist/js/libs/oraclejet-preact/es/bundle-520a7a5b.js.map +0 -1
  1883. package/dist/js/libs/oraclejet-preact/es/bundle-5321e08f.js +0 -32
  1884. package/dist/js/libs/oraclejet-preact/es/bundle-5321e08f.js.map +0 -1
  1885. package/dist/js/libs/oraclejet-preact/es/bundle-64864941.js +0 -32
  1886. package/dist/js/libs/oraclejet-preact/es/bundle-64864941.js.map +0 -1
  1887. package/dist/js/libs/oraclejet-preact/es/bundle-6772764e.js +0 -32
  1888. package/dist/js/libs/oraclejet-preact/es/bundle-6772764e.js.map +0 -1
  1889. package/dist/js/libs/oraclejet-preact/es/bundle-6f343058.js +0 -32
  1890. package/dist/js/libs/oraclejet-preact/es/bundle-6f343058.js.map +0 -1
  1891. package/dist/js/libs/oraclejet-preact/es/bundle-7010af68.js +0 -32
  1892. package/dist/js/libs/oraclejet-preact/es/bundle-7010af68.js.map +0 -1
  1893. package/dist/js/libs/oraclejet-preact/es/bundle-70c88b6d.js +0 -31
  1894. package/dist/js/libs/oraclejet-preact/es/bundle-70c88b6d.js.map +0 -1
  1895. package/dist/js/libs/oraclejet-preact/es/bundle-7d973ad6.js +0 -32
  1896. package/dist/js/libs/oraclejet-preact/es/bundle-7d973ad6.js.map +0 -1
  1897. package/dist/js/libs/oraclejet-preact/es/bundle-7ff831b2.js +0 -32
  1898. package/dist/js/libs/oraclejet-preact/es/bundle-7ff831b2.js.map +0 -1
  1899. package/dist/js/libs/oraclejet-preact/es/bundle-81953876.js +0 -32
  1900. package/dist/js/libs/oraclejet-preact/es/bundle-81953876.js.map +0 -1
  1901. package/dist/js/libs/oraclejet-preact/es/bundle-84f5f88e.js +0 -32
  1902. package/dist/js/libs/oraclejet-preact/es/bundle-84f5f88e.js.map +0 -1
  1903. package/dist/js/libs/oraclejet-preact/es/bundle-88845869.js +0 -32
  1904. package/dist/js/libs/oraclejet-preact/es/bundle-88845869.js.map +0 -1
  1905. package/dist/js/libs/oraclejet-preact/es/bundle-9242396e.js +0 -32
  1906. package/dist/js/libs/oraclejet-preact/es/bundle-9242396e.js.map +0 -1
  1907. package/dist/js/libs/oraclejet-preact/es/bundle-924ec873.js +0 -32
  1908. package/dist/js/libs/oraclejet-preact/es/bundle-924ec873.js.map +0 -1
  1909. package/dist/js/libs/oraclejet-preact/es/bundle-9522df4f.js +0 -32
  1910. package/dist/js/libs/oraclejet-preact/es/bundle-9522df4f.js.map +0 -1
  1911. package/dist/js/libs/oraclejet-preact/es/bundle-9b1d6369.js +0 -32
  1912. package/dist/js/libs/oraclejet-preact/es/bundle-9b1d6369.js.map +0 -1
  1913. package/dist/js/libs/oraclejet-preact/es/bundle-9f9eea8a.js +0 -32
  1914. package/dist/js/libs/oraclejet-preact/es/bundle-9f9eea8a.js.map +0 -1
  1915. package/dist/js/libs/oraclejet-preact/es/bundle-a0a2a843.js +0 -30
  1916. package/dist/js/libs/oraclejet-preact/es/bundle-a0a2a843.js.map +0 -1
  1917. package/dist/js/libs/oraclejet-preact/es/bundle-a0a784a4.js +0 -32
  1918. package/dist/js/libs/oraclejet-preact/es/bundle-a0a784a4.js.map +0 -1
  1919. package/dist/js/libs/oraclejet-preact/es/bundle-a32dddf9.js +0 -32
  1920. package/dist/js/libs/oraclejet-preact/es/bundle-a32dddf9.js.map +0 -1
  1921. package/dist/js/libs/oraclejet-preact/es/bundle-a8835e65.js +0 -32
  1922. package/dist/js/libs/oraclejet-preact/es/bundle-a8835e65.js.map +0 -1
  1923. package/dist/js/libs/oraclejet-preact/es/bundle-ac76df7e.js +0 -32
  1924. package/dist/js/libs/oraclejet-preact/es/bundle-ac76df7e.js.map +0 -1
  1925. package/dist/js/libs/oraclejet-preact/es/bundle-ae0ef406.js +0 -32
  1926. package/dist/js/libs/oraclejet-preact/es/bundle-ae0ef406.js.map +0 -1
  1927. package/dist/js/libs/oraclejet-preact/es/bundle-c476ca36.js +0 -31
  1928. package/dist/js/libs/oraclejet-preact/es/bundle-c476ca36.js.map +0 -1
  1929. package/dist/js/libs/oraclejet-preact/es/bundle-c8dc3863.js +0 -32
  1930. package/dist/js/libs/oraclejet-preact/es/bundle-c8dc3863.js.map +0 -1
  1931. package/dist/js/libs/oraclejet-preact/es/bundle-ca5bb013.js +0 -32
  1932. package/dist/js/libs/oraclejet-preact/es/bundle-ca5bb013.js.map +0 -1
  1933. package/dist/js/libs/oraclejet-preact/es/bundle-cea7441c.js +0 -32
  1934. package/dist/js/libs/oraclejet-preact/es/bundle-cea7441c.js.map +0 -1
  1935. package/dist/js/libs/oraclejet-preact/es/bundle-e21bc334.js +0 -32
  1936. package/dist/js/libs/oraclejet-preact/es/bundle-e21bc334.js.map +0 -1
  1937. package/dist/js/libs/oraclejet-preact/es/bundle-e50e875f.js +0 -32
  1938. package/dist/js/libs/oraclejet-preact/es/bundle-e50e875f.js.map +0 -1
  1939. package/dist/js/libs/oraclejet-preact/es/bundle-ed93e0b5.js +0 -32
  1940. package/dist/js/libs/oraclejet-preact/es/bundle-ed93e0b5.js.map +0 -1
  1941. package/dist/js/libs/oraclejet-preact/es/bundle-f65f1466.js +0 -32
  1942. package/dist/js/libs/oraclejet-preact/es/bundle-f65f1466.js.map +0 -1
  1943. package/dist/js/libs/oraclejet-preact/es/bundle-fbc17274.js +0 -32
  1944. package/dist/js/libs/oraclejet-preact/es/bundle-fbc17274.js.map +0 -1
  1945. package/dist/js/libs/oraclejet-preact/es/index-5d4c78b3.js +0 -178
  1946. package/dist/js/libs/oraclejet-preact/es/index-5d4c78b3.js.map +0 -1
  1947. package/dist/js/libs/oraclejet-preact/es/keys-c0acc594.js +0 -126
  1948. package/dist/js/libs/oraclejet-preact/es/keys-c0acc594.js.map +0 -1
  1949. package/dist/js/libs/oraclejet-preact/es/tslib.es6-60c3d72f.js +0 -244
  1950. package/dist/js/libs/oraclejet-preact/es/tslib.es6-60c3d72f.js.map +0 -1
  1951. package/dist/pcss/oj/13.0.2/oj/helpers/themes/base/_oj-helpers.scss +0 -547
@@ -5,5 +5,5 @@
5
5
  * as shown at https://oss.oracle.com/licenses/upl/
6
6
  * @ignore
7
7
  */
8
- define(["touchr","ojs/ojdatasource-common","ojs/ojdatacollection-utils","ojs/ojinputnumber","ojs/ojmenu","ojs/ojmenuselectmany","ojs/ojdialog","ojs/ojbutton","ojs/ojcore-base","ojs/ojcomponentcore","ojs/ojcontext","ojs/ojdatacollection-common","ojs/ojdomutils","ojs/ojconfig","ojs/ojcustomelement-utils","ojs/ojkeyboardfocus-utils","jquery","ojs/ojlogger","ojs/ojthemeutils"],function(e,t,i,s,n,o,l,r,a,h,d,c,m,u,_,p,g,f,C){"use strict";var y;a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a,d=d&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d,g=g&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g,(y={properties:{bandingInterval:{type:"object",properties:{column:{type:"number",value:0},row:{type:"number",value:0}}},cell:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},currentCell:{type:"object",writeback:!0},data:{type:"DataGridProvider",extension:{webelement:{exceptionStatus:[{type:"unsupported",since:"13.0.0",description:"Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead."}]}}},dataTransferOptions:{type:"object",properties:{copy:{type:"string",enumValues:["disable","enable"],value:"disable"},cut:{type:"string",enumValues:["disable","enable"],value:"disable"},fill:{type:"string",enumValues:["disable","enable"],value:"disable"},paste:{type:"string",enumValues:["disable","enable"],value:"disable"}}},dnd:{type:"object",properties:{reorder:{type:"object",properties:{row:{type:"string",enumValues:["disable","enable"],value:"disable"}}}}},editMode:{type:"string",writeback:!0,enumValues:["cellEdit","cellNavigation","none"],value:"none"},gridlines:{type:"object",properties:{horizontal:{type:"string",enumValues:["hidden","visible"],value:"visible"},vertical:{type:"string",enumValues:["hidden","visible"],value:"visible"}}},header:{type:"object",properties:{column:{type:"object",properties:{className:{type:"function|string"},label:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},renderer:{type:"function"},resizable:{type:"object",properties:{height:{type:"string",enumValues:["disable","enable"],value:"disable"},width:{type:"string|function",enumValues:["disable","enable"],value:"disable"}}},sortable:{type:"function|string",enumValues:["auto","disable","enable"],value:"auto"},style:{type:"function|string"}}},columnEnd:{type:"object",properties:{className:{type:"function|string"},label:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},renderer:{type:"function"},resizable:{type:"object",properties:{height:{type:"string",enumValues:["disable","enable"],value:"disable"},width:{type:"string|function",enumValues:["disable","enable"],value:"disable"}}},style:{type:"function|string"}}},row:{type:"object",properties:{className:{type:"function|string"},label:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},renderer:{type:"function"},resizable:{type:"object",properties:{height:{type:"string|function",enumValues:["disable","enable"],value:"disable"},width:{type:"string",enumValues:["disable","enable"],value:"disable"}}},sortable:{type:"function|string",enumValues:["auto","disable","enable"],value:"auto"},style:{type:"function|string"}}},rowEnd:{type:"object",properties:{className:{type:"function|string"},label:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},renderer:{type:"function"},resizable:{type:"object",properties:{height:{type:"string|function",enumValues:["disable","enable"],value:"disable"},width:{type:"string",enumValues:["disable","enable"],value:"disable"}}},style:{type:"function|string"}}}}},scrollPolicy:{type:"string",enumValues:["auto","loadMoreOnScroll","scroll"],value:"auto"},scrollPolicyOptions:{type:"object",properties:{maxColumnCount:{type:"number",value:500},maxRowCount:{type:"number",value:500}}},scrollPosition:{type:"object",writeback:!0,value:{x:0,y:0},properties:{columnIndex:{type:"number"},columnKey:{type:"any"},offsetX:{type:"number"},offsetY:{type:"number"},rowIndex:{type:"number"},rowKey:{type:"any"},x:{type:"number"},y:{type:"number"}}},scrollToKey:{type:"string",enumValues:["always","auto","capability","never"],value:"auto"},selection:{type:"Array<Object>",writeback:!0,value:[]},selectionMode:{type:"object",properties:{cell:{type:"string",enumValues:["multiple","none","single"],value:"none"},row:{type:"string",enumValues:["multiple","none","single"],value:"none"}}},translations:{type:"object",value:{},properties:{accessibleActionableMode:{type:"string"},accessibleCollapsed:{type:"string"},accessibleColumnContext:{type:"string"},accessibleColumnEndHeaderContext:{type:"string"},accessibleColumnEndHeaderLabelContext:{type:"string"},accessibleColumnHeaderContext:{type:"string"},accessibleColumnHeaderLabelContext:{type:"string"},accessibleColumnSelected:{type:"string"},accessibleColumnSpanContext:{type:"string"},accessibleContainsControls:{type:"string"},accessibleExpanded:{type:"string"},accessibleFirstColumn:{type:"string"},accessibleFirstRow:{type:"string"},accessibleLastColumn:{type:"string"},accessibleLastRow:{type:"string"},accessibleLevelContext:{type:"string"},accessibleMultiCellSelected:{type:"string"},accessibleNavigationMode:{type:"string"},accessibleRangeSelectModeOff:{type:"string"},accessibleRangeSelectModeOn:{type:"string"},accessibleRowCollapsed:{type:"string"},accessibleRowContext:{type:"string"},accessibleRowEndHeaderContext:{type:"string"},accessibleRowEndHeaderLabelContext:{type:"string"},accessibleRowExpanded:{type:"string"},accessibleRowHeaderContext:{type:"string"},accessibleRowHeaderLabelContext:{type:"string"},accessibleRowSelected:{type:"string"},accessibleRowSpanContext:{type:"string"},accessibleSelectionAffordanceBottom:{type:"string"},accessibleSelectionAffordanceTop:{type:"string"},accessibleSortAscending:{type:"string"},accessibleSortDescending:{type:"string"},accessibleSortable:{type:"string"},accessibleStateSelected:{type:"string"},accessibleSummaryEstimate:{type:"string"},accessibleSummaryExact:{type:"string"},accessibleSummaryExpanded:{type:"string"},collapsedText:{type:"string"},columnWidth:{type:"string"},expandedText:{type:"string"},labelCopyCells:{type:"string"},labelCut:{type:"string"},labelCutCells:{type:"string"},labelDisableNonContiguous:{type:"string"},labelEnableNonContiguous:{type:"string"},labelFillCells:{type:"string"},labelPaste:{type:"string"},labelPasteCells:{type:"string"},labelResize:{type:"string"},labelResizeColumn:{type:"string"},labelResizeDialogApply:{type:"string"},labelResizeDialogCancel:{type:"string"},labelResizeDialogSubmit:{type:"string"},labelResizeFitToContent:{type:"string"},labelResizeHeight:{type:"string"},labelResizeRow:{type:"string"},labelResizeWidth:{type:"string"},labelSelectMultiple:{type:"string"},labelSortAsc:{type:"string"},labelSortCol:{type:"string"},labelSortColAsc:{type:"string"},labelSortColDsc:{type:"string"},labelSortDsc:{type:"string"},labelSortRow:{type:"string"},labelSortRowAsc:{type:"string"},labelSortRowDsc:{type:"string"},msgFetchingData:{type:"string"},msgNoData:{type:"string"},resizeColumnDialog:{type:"string"},resizeRowDialog:{type:"string"},rowHeight:{type:"string"},tooltipRequired:{type:"string"}}}},methods:{getContextByNode:{},getProperty:{},refresh:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojBeforeCurrentCell:{},ojBeforeEdit:{},ojBeforeEditEnd:{},ojCollapseRequest:{},ojCopyRequest:{},ojCutRequest:{},ojExpandRequest:{},ojFillRequest:{},ojPasteRequest:{},ojResize:{},ojScroll:{},ojSort:{},ojSortRequest:{}},extension:{}}).extension._WIDGET_NAME="ojDataGrid",a.CustomElementBridge.register("oj-data-grid",{metadata:y});const v=function(e,t,i,s){this.rtlMode=e,this.translationFunction=t,this.defaultOptions=i,this.widgetName=s,this.styles={},this.styles.datagrid="oj-datagrid",this.styles.cell="oj-datagrid-cell",this.styles.banded="oj-datagrid-banded",this.styles.row="oj-datagrid-row",this.styles.databody="oj-datagrid-databody",this.styles.topcorner="oj-datagrid-top-corner",this.styles.bottomcorner="oj-datagrid-bottom-corner",this.styles.rowheaderspacer="oj-datagrid-row-header-spacer",this.styles.colheaderspacer="oj-datagrid-column-header-spacer",this.styles.status="oj-datagrid-status",this.styles.loadingicon="oj-icon oj-datagrid-loading-icon",this.styles.emptytext="oj-datagrid-empty-text",this.styles.header="oj-datagrid-header",this.styles.endheader="oj-datagrid-end-header",this.styles.groupingcontainer="oj-datagrid-header-grouping",this.styles.headercell="oj-datagrid-header-cell",this.styles.rowheader="oj-datagrid-row-header",this.styles.colheader="oj-datagrid-column-header",this.styles.colheadercell="oj-datagrid-column-header-cell",this.styles.rowheadercell="oj-datagrid-row-header-cell",this.styles.endheadercell="oj-datagrid-end-header-cell",this.styles.rowendheader="oj-datagrid-row-end-header",this.styles.colendheader="oj-datagrid-column-end-header",this.styles.colendheadercell="oj-datagrid-column-end-header-cell",this.styles.rowendheadercell="oj-datagrid-row-end-header-cell",this.styles.headerlabel="oj-datagrid-header-label",this.styles.rowheaderlabel="oj-datagrid-row-header-label",this.styles.columnheaderlabel="oj-datagrid-column-header-label",this.styles.rowendheaderlabel="oj-datagrid-row-end-header-label",this.styles.columnendheaderlabel="oj-datagrid-column-end-header-label",this.styles["scroller-mobile"]="oj-datagrid-scroller-touch",this.styles.scroller="oj-datagrid-scroller",this.styles.scrollers="oj-datagrid-scrollers",this.styles.scrollbarForce="oj-scrollbar-force",this.styles.focus="oj-focus",this.styles.hover="oj-hover",this.styles.active="oj-active",this.styles.selected="oj-selected",this.styles.topSelected="oj-datagrid-selected-top",this.styles.bottomSelected="oj-datagrid-selected-bottom",this.styles.startSelected="oj-datagrid-selected-start",this.styles.endSelected="oj-datagrid-selected-end",this.styles.topEdit="oj-datagrid-cell-edit-top",this.styles.bottomEdit="oj-datagrid-cell-edit-bottom",this.styles.startEdit="oj-datagrid-cell-edit-start",this.styles.endEdit="oj-datagrid-cell-edit-end",this.styles.topFloodfill="oj-datagrid-floodfill-top",this.styles.bottomFloodfill="oj-datagrid-floodfill-bottom",this.styles.startFloodfill="oj-datagrid-floodfill-start",this.styles.endFloodfill="oj-datagrid-floodfill-end",this.styles.topResized="oj-datagrid-resized-top",this.styles.bottomResized="oj-datagrid-resized-bottom",this.styles.endResized="oj-datagrid-resized-end",this.styles.startResized="oj-datagrid-resized-start",this.styles.disabled="oj-disabled",this.styles.enabled="oj-enabled",this.styles.default="oj-default",this.styles.sortIcon="oj-datagrid-sort-icon",this.styles.sortascending="oj-datagrid-sort-ascending-icon",this.styles.sortdescending="oj-datagrid-sort-descending-icon",this.styles.sortdefault="oj-datagrid-sort-default-icon",this.styles.icon="oj-component-icon",this.styles.clickableicon="oj-clickable-icon-nocontext",this.styles.info="oj-helper-hidden-accessible",this.styles.rowexpander="oj-rowexpander",this.styles.cut="oj-datagrid-cut",this.styles.selectaffordance="oj-datagrid-touch-selection-affordance",this.styles.selectaffordancetopcornerbounded="oj-datagrid-touch-selection-affordance-top-corner-bounded",this.styles.selectaffordancebottomcornerbounded="oj-datagrid-touch-selection-affordance-bottom-corner-bounded",this.styles.selectaffordancetoprow="oj-datagrid-touch-selection-affordance-top-row",this.styles.selectaffordancebottomrow="oj-datagrid-touch-selection-affordance-bottom-row",this.styles.selectaffordancetopcolumn="oj-datagrid-touch-selection-affordance-top-column",this.styles.selectaffordancebottomcolumn="oj-datagrid-touch-selection-affordance-bottom-column",this.styles.floodfillaffordance="oj-datagrid-floodfill-affordance",this.styles.toucharea="oj-datagrid-touch-area",this.styles.readOnly="oj-read-only",this.styles.editable="oj-datagrid-editable",this.styles.cellEdit="oj-datagrid-cell-edit",this.styles.draggable="oj-draggable",this.styles.drag="oj-drag",this.styles.drop="oj-drop",this.styles.activedrop="oj-active-drop",this.styles.validdrop="oj-valid-drop",this.styles.invaliddrop="oj-invalid-drop",this.styles.formcontrol="oj-form-control-inherit",this.styles.borderHorizontalNone="oj-datagrid-border-horizontal-none",this.styles.borderVerticalNone="oj-datagrid-border-vertical-none",this.styles.borderHorizontalSmall="oj-datagrid-small-content-border-horizontal",this.styles.borderVerticalSmall="oj-datagrid-small-content-border-vertical",this.styles.offsetOutline="oj-datagrid-focus-offset",this.styles.depth="oj-datagrid-depth-",this.styles.popupHeader="oj-datagrid-popup-header",this.styles.popupContent="oj-datagrid-popup-content",this.styles.popupFooter="oj-datagrid-popup-footer",this.styles.dialogTitle="oj-dialog-title",this.styles.resizeDialog="oj-datagrid-resize-dialog",this.styles.headerAllSelected="oj-selected",this.styles.headerPartialSelected="oj-partial-selected",this.styles.disclosureContainer="oj-datagrid-disclosure-icon-container",this.styles.disclosureIcon="oj-datagrid-disclosure-icon",this.styles.expanded="oj-datagrid-expanded-icon",this.styles.collapsed="oj-datagrid-collapsed-icon",this.styles.spacer="oj-datagrid-tree-spacer",this.styles.hierarchicalTree="oj-datagrid-hierarchical-tree",this.styles.hierarchicalGroup="oj-datagrid-hierarchical-group",this.styles.iconContainer="oj-datagrid-icon-container",this.styles.requiredIcon="oj-datagrid-required-icon",this.commands={},this.commands.sortCol="oj-datagrid-sortCol",this.commands.sortColAsc="oj-datagrid-sortColAsc",this.commands.sortColDsc="oj-datagrid-sortColDsc",this.commands.sortRow="oj-datagrid-sortRow",this.commands.sortRowAsc="oj-datagrid-sortRowAsc",this.commands.sortRowDsc="oj-datagrid-sortRowDsc",this.commands.resize="oj-datagrid-resize",this.commands.resizeWidth="oj-datagrid-resizeWidth",this.commands.resizeHeight="oj-datagrid-resizeHeight",this.commands.resizeFitToContent="oj-datagrid-resizeFitToContent",this.commands.cut="oj-datagrid-cut",this.commands.paste="oj-datagrid-paste",this.commands.cutCells="oj-datagrid-cutCells",this.commands.copyCells="oj-datagrid-copyCells",this.commands.pasteCells="oj-datagrid-pasteCells",this.commands.autoFill="oj-datagrid-fillCells",this.commands.discontiguousSelection="oj-datagrid-discontiguousSelection",this.attributes={},this.attributes.busyContext=d._OJ_CONTEXT_ATTRIBUTE,this.attributes.context="data-oj-cellContext",this.attributes.resizable="data-oj-resizable",this.attributes.sortable="data-oj-sortable",this.attributes.sortDir="data-oj-sortdir",this.attributes.expander="data-oj-expander",this.attributes.expanderIndex="data-oj-expander-index",this.attributes.container=h._OJ_CONTAINER_ATTR,this.attributes.extent="data-oj-extent",this.attributes.start="data-oj-start",this.attributes.depth="data-oj-depth",this.attributes.level="data-oj-level",this.attributes.metadata="data-oj-metaData"};a._registerLegacyNamespaceProp("DataGridResources",v),v.prototype.setRTLMode=function(e){this.rtlMode=e},v.prototype.isRTLMode=function(){return"rtl"===this.rtlMode},v.prototype.getTranslatedText=function(e,t){return this.translationFunction(e,t)},v.prototype.getDefaultOption=function(e){return this.defaultOptions[e]},v.prototype.getMappedStyle=function(e){return null!=e?this.styles[e]:null},v.prototype.getMappedCommand=function(e){return null!=e?this.commands[e]:null},v.prototype.getMappedAttribute=function(e){return null!=e?this.attributes[e]:null};const E=function(e){this.dataprovider=e,this.pendingHeaderCallback={},e.options&&e.options.implicitSort&&(this.currentSortCriteria=e.options.implicitSort),this.sortUpdated=!1;var t=this.dataprovider.getCapability("fetchByOffset");this.fetchByOffset=null!=t&&"randomAccess"===t.implementation,this._registerEventListeners(),E.superclass.constructor.call(this)};function w(e,t,i,s){this.indexes=e,this.data=i,this.metadata=t,this.columns=s}function S(e,t,i){this.response=e,this.results=e.results,this.cellRanges=t,this.columns=i,this._setBounds(e,t,i)}function H(e,t,i,s){this.start=e,this.end=t,this.headers=i,this.sortCriteria=s}a.Object.createSubclass(E,a.DataGridDataSource,"DataProviderDataGridDataSource"),E.prototype._registerEventListeners=function(){this._mutationListener=this._handlDataProviderMutationEvent.bind(this),this._refreshListener=this._handlDataProviderRefreshEvent.bind(this),this.dataprovider.addEventListener("mutate",this._mutationListener),this.dataprovider.addEventListener("refresh",this._refreshListener)},E.prototype._handlDataProviderMutationEvent=function(e){var t,i=e.detail.add;if(null!=i){var s={indexes:[],keys:[]},n=[],o=[],l=[];for(t=0;t<i.data.length;t++)s.source=this,s.operation="insert",s.keys.push({row:i.metadata[t].key,column:null}),s.indexes.push({row:i.indexes[t],column:-1}),l.push(i.indexes[t]),n.push(i.data[t]),o.push(i.metadata[t]),t!==i.data.length-1&&i.indexes[t+1]===i.indexes[t]+1||(s.result=new w(l,o,n,this.columns),this.handleEvent("change",s),(s={}).indexes=[],s.keys=[],n=[],o=[],l=[])}var r=e.detail.remove;if(null!=r){var a={source:this,operation:"delete",keys:[],indexes:[]};for(t=0;t<r.data.length;t++)a.keys.push({row:r.metadata[t].key,column:null}),a.indexes.push({row:r.indexes[t],column:-1});this.handleEvent("change",a)}var h=e.detail.update;if(null!=h)for(t=0;t<h.data.length;t++){var d={source:this,operation:"update",keys:{row:h.metadata[t].key,column:null},indexes:{row:h.indexes[t],column:-1}};d.result=new w([h.indexes[t]],[h.metadata[t]],[h.data[t]],this.columns),this.handleEvent("change",d)}},w.prototype.getData=function(e){var t=this,i={};return Object.defineProperty(i,"data",{enumerable:!0,get:function(){return t.data[e.row-t.getStart("row")][t.columns[e.column]]},set:function(i){t.data[e.row-t.getStart("row")][t.columns[e.column]]=i}}),i},w.prototype.getMetadata=function(e){var t=this.metadata[e.row-this.getStart("row")];return t.keys={row:t.key,column:this.columns[e.column]},t},w.prototype.getStart=function(e){return"row"===e?this.indexes[0]:0},w.prototype.getCount=function(e){return"row"===e?this.data.length:"column"===e?this.columns.length:0},w.prototype.getExtent=function(){return{row:{extent:1,more:{before:!1,after:!1}},column:{extent:1,more:{before:!1,after:!1}}}},E.prototype._handlDataProviderRefreshEvent=function(){this._asyncIterator=null,this.handleEvent("change",{operation:"refresh"})},E.prototype.fetchHeaders=function(e,t,i){if(null!=t){var s=e.axis,n={headerRange:e,callbacks:t,callbackObjects:i};this.pendingHeaderCallback[s]=n}},E.prototype._processPendingHeaderCallbacks=function(e){var t=this.pendingHeaderCallback[e];if(null!=t){var i=t.headerRange,s=t.callbacks,n=t.callbackObjects;this._handleHeaderFetchSuccess(i,s,n),this.pendingHeaderCallback[e]=null}},E.prototype._handleHeaderFetchSuccess=function(e,t,i){var s,n=e.axis,o=e.start,l=e.count;"column"===n&&null!=this.columns?s=new H(o,Math.min(this.columns.length,o+l),this.columns,this.currentSortCriteria):s=null;null!=t&&t.success&&t.success.call(i.success,s,e,null)},S.prototype._setBounds=function(e,t,i){for(var s=0;s<t.length;s+=1){var n=t[s];"row"===n.axis?(this.rowStart=e.fetchParameters.offset?e.fetchParameters.offset:n.start,this.rowEnd=this.rowStart+e.results.length-1):"column"===n.axis&&(this.colStart=n.start,this.colEnd=Math.min(this.colStart+n.count-1,this.colStart+i.length-1))}},S.prototype.getData=function(e){var t=this,i={};return Object.defineProperty(i,"data",{enumerable:!0,get:function(){return t.results[e.row-t.rowStart].data[t.columns[e.column]]},set:function(i){t.results[e.row-t.rowStart].data[t.columns[e.column]]=i}}),i},S.prototype.getMetadata=function(e){var t=this.results[e.row-this.rowStart].metadata;return t.keys={row:this.results[e.row-this.rowStart].metadata.key,column:this.columns[e.column]},t},S.prototype.getCount=function(e){return"row"===e?this.rowEnd-this.rowStart+1:"column"===e?this.colEnd-this.colStart+1:0},S.prototype.getExtent=function(){return{row:{extent:1,more:{before:!1,after:!1}},column:{extent:1,more:{before:!1,after:!1}}}},E.prototype.setUpColumns=function(e){if(null==this.columns||0===this.columns.length){var t=[];if(e.results.length)for(var i=Object.keys(e.results[0].data),s=0;s<i.length;s++)t.push(i[s]);this.columns=t}},E.prototype.getRangeInfo=function(e){for(var t={},i=0;i<e.length;i+=1){var s=e[i];"row"===s.axis?(t.rowStart=s.start,t.rowEnd=t.rowStart+s.count-1):"column"===s.axis&&(t.colStart=s.start,t.colEnd=t.colStart+s.count-1)}return t},E.prototype._createResults=function(e){e.results=[];for(var t=0;t<e.value.data.length;t++){var i={data:e.value.data[t],metadata:e.value.metadata[t]};e.results.push(i)}},E.prototype.handleFetchResult=function(e,t,i,s){var n=s[0];n.results||(this._createResults(n),n.fetchParameters=n.value.fetchParameters),this.setUpColumns(n),this._processPendingHeaderCallbacks("column"),this._processPendingHeaderCallbacks("row");var o=new S(n,e,this.columns);if(null!=t&&null!=t.success){var l=i?i.success:null;t.success.call(l,o,e)}},E.prototype.fetchCells=function(e,t,i){this.getCount("row");var s=this.getRangeInfo(e),n=s.rowEnd-s.rowStart+1;if(this.fetchByOffset){var o=s.rowStart;this._fetchPromise=this.dataprovider.fetchByOffset({size:n,offset:o,sortCriteria:this.currentSortCriteria})}else(null==this._asyncIterator||this.sortUpdated)&&(this._clientId=this._clientId||Symbol(),this._asyncIterator=this.dataprovider.fetchFirst({clientId:this._clientId,size:n,sortCriteria:this.currentSortCriteria})[Symbol.asyncIterator]()),this._fetchPromise=this._asyncIterator.next();this.sortUpdated=!1,Promise.all([this._fetchPromise,this._getCountPromise]).then(this.handleFetchResult.bind(this,e,t,i))},E.prototype.getCapability=function(e){if("sort"===e){var t=this.dataprovider.getCapability(e).attributes;return"multiple"===t||"single"===t?"column":t}return"none"},E.prototype.getCount=function(e){var t=this;if("row"===e){if(void 0!==t.totalRowCount)return t.totalRowCount;t._getCountPromise=this.dataprovider.getTotalSize(),t._getCountPromise.then(function(e){t.totalRowCount=e})}else if("column"===e&&null!=this.columns)return this.columns.length;return-1},E.prototype.getCountPrecision=function(){return"estimate"},E.prototype.indexes=function(){return{row:-1,column:-1}},E.prototype.keys=function(){return{row:null,column:null}},E.prototype.move=function(){return!1},E.prototype.moveOK=function(){return"invalid"},E.prototype.sort=function(e,t,i){this.sortUpdated=!0,this.currentSortCriteria=[{attribute:e.key,direction:e.direction}],null==i&&(i={}),null!=t&&null!=t.success&&t.success.call(i.success)},H.prototype.getData=function(e){return this.headers[e]},H.prototype.getMetadata=function(e){var t=this.getData(e),i={key:t};if(null!=this.sortCriteria)for(var s=0;s<this.sortCriteria.length;s++)this.sortCriteria[s].attribute===t&&(i.sortDirection=this.sortCriteria[s].direction);return i},H.prototype.getLevelCount=function(){return 1},H.prototype.getExtent=function(){return{extent:1,more:{before:!1,after:!1}}},H.prototype.getLabel=function(){return null},H.prototype.getDepth=function(){return 1},H.prototype.getCount=function(){return Math.max(0,this.end-this.start)};const x=function(e){this.grid=e};x.prototype.getAction=function(e,t){var i=e.keyCode,s=this.grid.m_utils.ctrlEquivalent(e),n=e.shiftKey,o=e.altKey,l=this.grid.keyCodes,r=t.cellOrHeader,a=t.readOnly,h=t.currentMode,d=t.activeMove,c=t.rowMove,m=t.columnSort;let u=t.rowSort;var _=t.selection,p=t.selectionMode,g=t.multipleSelection,f=t.expandCollapse,C=t.copyCells,y=t.cutCells,v=t.pasteCells,E=t.fill;switch(i){case l.TAB_KEY:if("actionable"===h)return n?"TAB_PREV_IN_CELL":"TAB_NEXT_IN_CELL";if(!a)return n?"FOCUS_LEFT":"FOCUS_RIGHT";break;case l.ENTER_KEY:if("column"===r&&m||"row"===r&&u)return"SORT";if(!o&&a&&"navigation"===h||"cell"!==r)return"ACTIONABLE";if(!a&&!o)return n?"FOCUS_UP":"FOCUS_DOWN";if(o&&a&&"navigation"===h)return"EDITABLE";if(!a&&("navigation"===h||"edit"===h))return"EDIT";break;case l.ESC_KEY:if("actionable"===h)return"EXIT_ACTIONABLE";if(d)return"CANCEL_REORDER";if(a){if(this.grid.m_discontiguousSelection)return"SELECT_DISCONTIGUOUS"}else{if("navigation"===h)return"EXIT_EDITABLE";if("edit"===h)return"CANCEL_EDIT"}break;case l.SPACE_KEY:if(-1!==r.indexOf("row")&&_&&("cell"===p&&g||"row"===p))return"SELECT_ROW";if(-1!==r.indexOf("column")&&_&&"cell"===p&&g)return"SELECT_COLUMN";if("cell"===r)if(a&&"navigation"===h){if(s&&_&&"cell"===p&&g)return"SELECT_COLUMN";if(n&&_&&("cell"===p&&g||"row"===p))return"SELECT_ROW"}else if("navigation"===h)return"DATA_ENTRY";break;case l.PAGEUP_KEY:if("edit"!==h)return"FOCUS_ROW_FIRST";break;case l.PAGEDOWN_KEY:if("edit"!==h)return"FOCUS_ROW_LAST";break;case l.END_KEY:if(s&&"cell"===r)return"FOCUS_LAST_CELL_IN_GRID";if("edit"!==h)return"FOCUS_COLUMN_LAST";break;case l.HOME_KEY:if(s&&"cell"===r)return"FOCUS_FIRST_CELL_IN_GRID";if("edit"!==h)return"FOCUS_COLUMN_FIRST";break;case l.LEFT_KEY:if(s&&f&&this.grid._isHeaderExpanded(e.target))return"COLLAPSE";if("actionable"===h)return"NO_OP";if("edit"!==h)return n&&_&&"cell"===p&&g?"SELECT_EXTEND_LEFT":s?"FOCUS_LEFT_NON_EMPTY_CELL":"FOCUS_LEFT";break;case l.UP_KEY:if("actionable"===h)return"NO_OP";if("edit"!==h)return n&&_&&g?"SELECT_EXTEND_UP":s?"FOCUS_UP_NON_EMPTY_CELL":"FOCUS_UP";break;case l.RIGHT_KEY:if(s&&f&&this.grid._isHeaderCollapsed(e.target))return"EXPAND";if("actionable"===h)return"NO_OP";if("edit"!==h)return n&&_&&"cell"===p&&g?"SELECT_EXTEND_RIGHT":s?"FOCUS_RIGHT_NON_EMPTY_CELL":"FOCUS_RIGHT";break;case l.DOWN_KEY:if("actionable"===h)return"NO_OP";if("edit"!==h)return n&&_&&g?"SELECT_EXTEND_DOWN":s?"FOCUS_DOWN_NON_EMPTY_CELL":"FOCUS_DOWN";break;case l.F2_KEY:if("cell"!==r)return"ACTIONABLE";if(a&&"navigation"===h)return"EDITABLE";if(!a&&"navigation"===h)return"EDIT";if(!a&&"edit"===h)return"CANCEL_EDIT";if("actionable"===h)return"EXIT_ACTIONABLE";break;case l.F8_KEY:if(n&&_&&g)return"SELECT_DISCONTIGUOUS";break;case l.F10_KEY:if(n)return"NO_OP";break;case l.V_KEY:if("navigation"===h&&s){if(c)return"PASTE";if(v)return"PASTE_CELLS"}if(!a&&"navigation"===h&&"cell"===r)return"DATA_ENTRY";break;case l.X_KEY:if("navigation"===h&&s){if(c)return"CUT";if(y)return"CUT_CELLS"}if(!a&&"navigation"===h&&"cell"===r)return"DATA_ENTRY";break;case l.C_KEY:if("navigation"===h&&s&&C)return"COPY_CELLS";if(!a&&"navigation"===h&&"cell"===r)return"DATA_ENTRY";break;case l.D_KEY:case l.R_KEY:if("navigation"===h&&s&&E)return"FILL";break;case l.SHIFT_KEY:case l.CTRL_KEY:case l.ALT_KEY:break;case l.A_KEY:if(s&&_&&g)return"SELECT_ALL";case l.NUM5_KEY:if(s&&o)return"READ_CELL";default:if((i<l.F1_KEY||i>l.F15_KEY)&&!a&&"navigation"===h&&"cell"===r&&!s)return"DATA_ENTRY"}return"NO_OP"};const b=function(e,t){this.options=e,this.rendererWrapperFunction=t};b.prototype.extract=function(e,t,i,s){if(null!=e){var n=this.options[e];if(null!=t&&null!=n){var o=n[t];if(null!=i&&null!=o){var l=o[i];return null!=s&&null!=l?l[s]:l}return o}return n}return null},b.prototype.evaluate=function(e,t){return"function"==typeof e?e.call(this,t):e},b.prototype.getRawProperty=function(e,t,i){var s,n,o,l;return"row"===t||"column"===t||"rowEnd"===t||"columnEnd"===t?(s="header",n=t,i?(o="label",l=e):o=e):"cell"===t&&(s="cell",n=e),this.extract(s,n,o,l)},b.prototype.getProperty=function(e,t,i,s){return void 0===i?this.extract(e,t,s):this.evaluate(this.getRawProperty(e,t,s),i)},b.prototype.getRowBandingInterval=function(){var e=this.getProperty("bandingInterval","row");return null!=e?e:0},b.prototype.getColumnBandingInterval=function(){var e=this.getProperty("bandingInterval","column");return null!=e?e:0},b.prototype.getEmptyText=function(){return this.getProperty("emptyText")},b.prototype.getHorizontalGridlines=function(){var e=this.extract("gridlines","horizontal");return null!=e?e:"visible"},b.prototype.getVerticalGridlines=function(){var e=this.extract("gridlines","vertical");return null!=e?e:"visible"},b.prototype.getScrollToKey=function(){var e=this.getProperty("scrollToKey");return null!=e?e:"auto"},b.prototype.getScrollPosition=function(){var e=this.getProperty("scrollPosition");return null!=e?e:null},b.prototype.getSelectionCardinality=function(){var e=this.getProperty("selectionMode");if(null==e)return"none";var t=e[this.getSelectionMode()];return null!=t?t:"none"},b.prototype.getSelectionMode=function(){var e=this.getProperty("selectionMode");if(null==e)return"cell";var t=e.row;return null!=t&&"none"!==t?"row":"cell"},b.prototype.getSelection=function(){return this.getProperty("selection")},b.prototype.getCurrentCell=function(){return this.getProperty("currentCell")},b.prototype.getEditMode=function(){return this.getProperty("editMode")},b.prototype.isSortable=function(e,t){return this.getProperty("sortable",e,t)},b.prototype.isResizable=function(e,t,i){var s=this.extract("header",e,"resizable",t);return null!=i?this.evaluate(s,i):s},b.prototype.isMoveable=function(e){return this.extract("dnd","reorder",e)},b.prototype.isFloodFillEnabled=function(){let e=!1;return"enable"===this.extract("dataTransferOptions","fill")&&(e=!0),e},b.prototype.isCopyEnabled=function(){let e=!1;return"enable"===this.extract("dataTransferOptions","copy")&&(e=!0),e},b.prototype.isCutEnabled=function(){let e=!1;return"enable"===this.extract("dataTransferOptions","cut")&&(e=!0),e},b.prototype.isPasteEnabled=function(){let e=!1;return"enable"===this.extract("dataTransferOptions","paste")&&(e=!0),e},b.prototype.getInlineStyle=function(e,t,i){return this.getProperty("style",e,t,i)},b.prototype.getStyleClass=function(e,t,i){return this.getProperty("className",e,t,i)},b.prototype.getRenderer=function(e,t){return this.rendererWrapperFunction?this.rendererWrapperFunction(this.getRawProperty("renderer",e,t)):this.getRawProperty("renderer",e,t)},b.prototype.getScrollPolicy=function(){var e=this.getProperty("scrollPolicy");return null==e&&(e="auto"),e},b.prototype.getScrollPolicyOptions=function(){return this.getProperty("scrollPolicyOptions")};const R=function(){this.sizes={column:new Map,row:new Map}};R.prototype.setSize=function(e,t,i){this.sizes[e].set(t,i)},R.prototype.getSize=function(e,t){var i=this.sizes[e].get(t);return null!=i||this.sizes[e].forEach(function(e,s){null==i&&a.Object.compareValues(s,t)&&(i=e)}),i},R.prototype.clear=function(){this.sizes.column.clear(),this.sizes.row.clear()};const I=function(e){this.scrollbarSize=-1,this.dataGrid=e;let t=oj.AgentUtils.getAgentInfo();this.os=t.os,this.browser=t.browser,this.engine=t.engine};I.prototype._getMaxDivHeightForScrolling=function(){return null==this.m_maxDivHeightForScrolling&&this._setMaxValuesForScrolling(),this.m_maxDivHeightForScrolling},I.prototype._getMaxDivWidthForScrolling=function(){return null==this.m_maxDivWidthForScrolling&&this._setMaxValuesForScrolling(),this.m_maxDivWidthForScrolling},I.prototype._setMaxValuesForScrolling=function(){this._calculateBrowserDefinedValues()},I.prototype._calculateBrowserDefinedValues=function(){var e=document.createElement("div");e.style.width="1000000000px",e.style.height="1000000000px",e.style.display="none";var t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);let i=!1;this.browser===oj.AgentUtils.BROWSER.IE||this.browser===oj.AgentUtils.BROWSER.EDGE?(this.m_maxDivHeightForScrolling=1e6,this.m_maxDivWidthForScrolling=1e6):(i=!0,document.body.appendChild(e),this.m_maxDivHeightForScrolling=parseInt(parseFloat(window.getComputedStyle(e).height)/2,10),this.m_maxDivWidthForScrolling=parseInt(parseFloat(window.getComputedStyle(e).width)/2,10)),this.scrollbarSize=t.offsetWidth-t.clientWidth,i&&document.body.removeChild(e),document.body.removeChild(t)},I.prototype.getScrollbarSize=function(){return-1===this.scrollbarSize&&this._calculateBrowserDefinedValues(),this.scrollbarSize},I.prototype.getScrollbarSize=function(){return-1===this.scrollbarSize&&this.calculateScrollbarSize(),this.scrollbarSize},I.prototype.isTouchDevice=function(){return null==this.isTouch&&(this.isTouch=c.isMobileTouchDevice()),this.isTouch},I.prototype.isTouchDeviceNotIOS=function(){if(null==this.isTouchNotIOS){let e=this.isTouchDevice();this.isTouchNotIOS=!!e&&this.os!==oj.AgentUtils.OS.IOS}return this.isTouchNotIOS},I.prototype.addCSSClassName=function(e,t){null!=t&&""!==t&&null!=e&&null!=e.classList&&e.classList.add(t)},I.prototype.removeCSSClassName=function(e,t){null!=t&&""!==t&&null!=e&&null!=e.classList&&e.classList.remove(t)},I.prototype.containsCSSClassName=function(e,t){var i=!1;return null!=t&&null!=e&&null!=e.classList&&(i=e.classList.contains(t)),i},I._getCSSClassNameIndex=function(e,t){if(!e||!e.indexOf)return-1;if(t===e)return 0;var i=t.length,s=e.length,n=e.indexOf(t);if(n>=0){var o=0===n||" "===e.charAt(n-1),l=n+i,r=l===s||" "===e.charAt(l);if(o&&r)return n;var a=e.lastIndexOf(t);if(a!==n)return o=e.charAt(a-1),r=(l=a+i)===s||" "===e.charAt(l),o&&r?a:e.indexOf(" "+t+" ")}return-1},I.prototype.ctrlEquivalent=function(e){return this.os===oj.AgentUtils.OS.MAC?e.metaKey:e.ctrlKey},I.prototype.getElementScrollLeft=function(e){return Math.abs(e.scrollLeft)},I.prototype.setElementScrollLeft=function(e,t){m.setScrollLeft(e,t)},I.prototype.getMousewheelEvent=function(){return"wheel"},I.prototype.getMousewheelScrollDelta=function(e){var t=-1,i=e.deltaMode;return i===e.DOM_DELTA_PIXEL?t=-1:i!==e.DOM_DELTA_LINE&&i!==e.DOM_DELTA_PAGE||(t=-40),{deltaX:e.deltaX*t,deltaY:e.deltaY*t}},I.prototype.empty=function(e){for(;e.firstChild;)this.dataGrid._remove(e.firstChild)},I.prototype.supportsTransitions=function(){var e=(document.body||document.documentElement).style,t="transition";if(/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<11))return!1;if("string"==typeof e[t])return!0;var i=["Moz","webkit","Webkit","Khtml","O","ms"];t=t.charAt(0).toUpperCase()+t.substr(1);for(var s=0;s<i.length;s++)if("string"==typeof e[i[s]+t])return!0;return!1},I.prototype._isNodeEditableOrClickable=function(e,t){for(;null!=e&&e!==t;){var i=e.nodeName;if(3===e.nodeType)e=e.parentNode;else{var s=parseInt(e.getAttribute("tabIndex"),10),n=parseInt(e.getAttribute(this.dataGrid.getResources().getMappedAttribute("tabindex")),10);if(null!=s&&s>=0)return!(this.containsCSSClassName(e,this.dataGrid.getResources().getMappedStyle("cell"))||this.containsCSSClassName(e,this.dataGrid.getResources().getMappedStyle("headerlabel"))||this.containsCSSClassName(e,this.dataGrid.getResources().getMappedStyle("headercell"))||this.containsCSSClassName(e,this.dataGrid.getResources().getMappedStyle("endheadercell")));if(i.match(/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/)&&(-1!==s||-1!==n))return!0;e=e.parentNode}}return!1},I.prototype.shouldOffsetOutline=function(){return this.os===oj.AgentUtils.OS.MAC&&this.engine===oj.AgentUtils.ENGINE.WEBKIT};const M=function(e){this.m_root=e,this.MAX_COLUMN_THRESHOLD=20,this.MAX_ROW_THRESHOLD=30,this.m_utils=new I(this),this.m_discontiguousSelection=!1,this.m_sizingManager=new R,this.m_keyboardHandler=new x(this),this.m_rowHeaderWidth=null,this.m_rowEndHeaderWidth=null,this.m_colHeaderHeight=null,this.m_colEndHeaderHeight=null,this.m_styleClassDimensionMap={width:{},height:{}},this.m_isEstimateRowCount=void 0,this.m_isEstimateColumnCount=void 0,this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1,this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1,this.m_initialized=!1,this.m_shouldFocus=null,this.m_renderCount=0,this.callbacks={},this._setupActions(),this.m_readinessStack=[],this.m_modelEvents=[],this.m_databodyMap=new Map};M.prototype.keyCodes={TAB_KEY:9,ENTER_KEY:13,SHIFT_KEY:16,CTRL_KEY:17,ALT_KEY:18,ESC_KEY:27,SPACE_KEY:32,PAGEUP_KEY:33,PAGEDOWN_KEY:34,END_KEY:35,HOME_KEY:36,LEFT_KEY:37,UP_KEY:38,RIGHT_KEY:39,DOWN_KEY:40,NUM5_KEY:53,V_KEY:86,X_KEY:88,C_KEY:67,D_KEY:68,R_KEY:82,F1_KEY:112,F2_KEY:113,F8_KEY:119,F10_KEY:121,F15_KEY:126,A_KEY:65},M.UPDATE_ANIMATION_FADE_INOUT=1,M.UPDATE_ANIMATION_SLIDE_INOUT=2,M.UPDATE_ANIMATION_DURATION=250,M.EXPAND_ANIMATION_DURATION=500,M.COLLAPSE_ANIMATION_DURATION=400,M.MAX_OVERSCROLL_PIXEL=50,M.BOUNCE_ANIMATION_DURATION=500,M.DECELERATION_FACTOR=6e-4,M.TAP_AND_SCROLL_RESET=300,M.MIN_SWIPE_DURATION=200,M.MAX_SWIPE_DURATION=400,M.MIN_SWIPE_DISTANCE=10,M.MIN_SWIPE_TRANSITION_DURATION=100,M.MAX_SWIPE_TRANSITION_DURATION=500,M.CONTEXT_MENU_TAP_HOLD_DURATION=750,M.HEADER_TAP_SHORT_HOLD_DURATION=300,M.FETCH_PIXEL_THRESHOLD=5,M.VISIBILITY_STATE_HIDDEN="hidden",M.VISIBILITY_STATE_REFRESH="refresh",M.VISIBILITY_STATE_RENDER="render",M.VISIBILITY_STATE_VISIBLE="visible",M.SPACER_DEFAULT_WIDTH=2,M.prototype.SetOptions=function(e,t){this.m_options=new b(e,t)},M.prototype.SetSortOriginalEvent=function(e){this.m_sortInfo&&(this.m_sortInfo.originalEvent=e)},M.prototype.UpdateOptions=function(e,t){var i,s,n=Object.keys(e);for(s=0;s<n.length;s++)(i=n[s])in this.m_options.options&&this.m_options.options[i]!==e[i]&&(this.m_options.options[i]=e[i]);for(s=0;s<n.length;s++)if(i=n[s],!this._updateDataGrid(i,t)){this.empty(),this.refresh(this.m_root);break}},M.prototype._updateDataGrid=function(e,t){var i;switch(e){case"bandingInterval":this._removeBanding(),this.updateColumnBanding(),this.updateRowBanding();break;case"currentCell":i=this.m_options.getCurrentCell(),this._updateActive(i,!0,!1);break;case"editMode":this.m_editMode=this.m_options.getEditMode();break;case"gridlines":this._updateGridlines();break;case"header":i=this.m_options.options.header,this._updateHeaderOptions(i,t);break;case"scrollPosition":i=this.m_options.getScrollPosition(),this._updateScrollPosition(i);break;case"selection":i=this.m_options.getSelection(),this._updateSelection(i);break;case"selectionMode":this._clearSelection(null);break;default:return!1}return!0},M.prototype._updateSelection=function(e){null!=e&&this._isSelectionEnabled()&&this.SetSelection(e)},M.prototype._updateHeaderOptions=function(e,t){if(null!=t&&null!=t.subkey){var i,s=t.subkey.split("."),n=s[0],o=s[1];if("column"===n&&null!=this.m_colHeader&&null!=this.m_colHeader.firstChild?i=this.m_colHeader.firstChild.childNodes:"row"===n&&null!=this.m_rowHeader&&null!=this.m_rowHeader.firstChild?i=this.m_rowHeader.firstChild.childNodes:"columnEnd"===n&&null!=this.m_colEndHeader&&null!=this.m_colEndHeader.firstChild?i=this.m_colEndHeader.firstChild.childNodes:"rowEnd"===n&&null!=this.m_rowEndHeader&&null!=this.m_rowEndHeader.firstChild&&(i=this.m_rowEndHeader.firstChild.childNodes),null!=i)for(var l=0;l<i.length;l++){var r=i[l],a=r[this.getResources().getMappedAttribute("context")];if(a.index=this.getHeaderCellIndex(r),"resizable"===o)this._isHeaderResizeEnabled(n,a)?this._setAttribute(r,o,"true"):this._setAttribute(r,o,"false");else if("sortable"===o){var h=this.m_utils.containsCSSClassName(r.lastChild,this.getMappedStyle("sortIcon"));if(this._isSortEnabled(n,a)){if(!h){var d=this._buildSortIcon(a,r);r.appendChild(d)}this._setAttribute(r,o,"true")}else h&&this._remove(r.lastChild),this._setAttribute(r,o,"false")}}}},M.prototype._updateGridlines=function(){var e=this.m_options.getHorizontalGridlines(),t=this.m_options.getVerticalGridlines(),i=this.getResources().isRTLMode()?"right":"left";if(this.m_databody&&this.m_databody.firstChild){let s=this.m_databody.firstChild.querySelectorAll("."+this.getMappedStyle("cell")),n=this._getLastAxis("row"),o=this._getLastAxis("column");for(let l=0;l<s.length;l++){let r=s[l],a=this.getCellIndexes(r);"hidden"===t||a.column===o&&(this.getRowHeaderWidth()+this.getElementDir(r,i)+this.calculateColumnWidth(r)>=this.getWidth()||this.m_endRowEndHeader>-1)?this.m_utils.addCSSClassName(r,this.getMappedStyle("borderVerticalNone")):this.m_utils.removeCSSClassName(r,this.getMappedStyle("borderVerticalNone")),"hidden"===e||a.row===n&&(this.getRowBottom(r,null)>=this.getHeight()||this.m_endColEndHeader>-1)?this.m_utils.addCSSClassName(r,this.getMappedStyle("borderHorizontalNone")):this.m_utils.removeCSSClassName(r,this.getMappedStyle("borderHorizontalNone"))}}},M.prototype._updateEdgeCellBorders=function(e){if(null!=this.m_active&&"cell"===this.m_active.type){var t=this._getActiveElement();null!=t&&((this._isCellEditable()&&""===e||""!==e)&&this._applyBorderClassesAroundRange(t,{startIndex:this.m_active.indexes},""===e,"Edit"),this._isLastRow(this.m_active.indexes.row)&&("none"===e?this.m_utils.addCSSClassName(t,this.getMappedStyle("borderHorizontalNone")):this.m_utils.removeCSSClassName(t,this.getMappedStyle("borderHorizontalNone"))),this._isLastColumn(this.m_active.indexes.column)&&("none"===e?this.m_utils.addCSSClassName(t,this.getMappedStyle("borderVerticalNone")):this.m_utils.removeCSSClassName(t,this.getMappedStyle("borderVerticalNone"))))}},M.prototype.SetResources=function(e){this.m_resources=e},M.prototype.getResources=function(){return this.m_resources},M.prototype.getStartRowHeader=function(){return this.m_startRowHeader},M.prototype.getStartColumnHeader=function(){return this.m_startColHeader},M.prototype.getStartRowEndHeader=function(){return this.m_startRowEndHeader},M.prototype.getStartColumnEndHeader=function(){return this.m_startColEndHeader},M.prototype.getMappedStyle=function(e){return this.getResources().getMappedStyle(e)},M.prototype.SetDataSource=function(e){this.m_modelEvents=[],this.m_dataSource=e},M.prototype.getDataSource=function(){return this.m_dataSource},M.prototype.setVisibility=function(e){this.m_visibility=e},M.prototype.getVisibility=function(){return null==this.m_visibility&&(null!=this.m_root.offsetParent?this.setVisibility(M.VISIBILITY_STATE_VISIBLE):this.setVisibility(M.VISIBILITY_STATE_HIDDEN)),this.m_visibility},M.prototype.SetOptionCallback=function(e){this.m_setOptionCallback=e},M.prototype.SetContextCallback=function(e){this.m_contextCallback=e},M.prototype.SetCustomElementCallback=function(e){this.m_isCustomElementCallback=e},M.prototype.SetRemoveCallback=function(e){this.m_removeCallback=e},M.prototype.SetUniqueIdCallback=function(e){this._uniqueIdCallback=e},M.prototype.SetCompareValuesCallback=function(e){this._compareValuesCallback=e},M.prototype.SetSubtreeAttachedCallback=function(e){this.m_subtreeAttachedCallback=e},M.prototype.SetUpdateScrollPostionOnRefreshCallback=function(e){this.m_updateScrollPostionOnRefreshCallback=e},M.prototype._remove=function(e){this._uniqueIdCallback(e,!0),this.m_removeCallback.call(null,e)},M.prototype._removeFromArray=function(e){for(var t=0;t<e.length;t++)this._remove(e[t])},M.prototype.SetNotReadyCallback=function(e){this.m_notReady=e},M.prototype.SetMakeReadyCallback=function(e){this.m_makeReady=e},M.prototype._signalTaskStart=function(){this.m_readinessStack&&(0===this.m_readinessStack.length&&this.m_notReady(),this.m_readinessStack.push(1))},M.prototype._signalTaskEnd=function(){this.m_readinessStack&&this.m_readinessStack.length>0&&(this.m_readinessStack.pop(),0===this.m_readinessStack.length&&this.m_makeReady())},M.prototype._indexes=function(e,t){var i=this,s=this.getDataSource().indexes(e);"function"==typeof s.then?(i._signalTaskStart(),s.then(function(s){t.call(i,s,e),i._signalTaskEnd()},function(){t.call(i,{row:-1,column:-1},e),i._signalTaskEnd()})):t.call(i,s,e)},M.prototype._keys=function(e,t){var i=this,s=this._getLocalKeys(e);if(void 0===s){var n=this.getDataSource().keys(e);"function"==typeof n.then?(i._signalTaskStart(),n.then(function(s){t.call(i,s,e),i._signalTaskEnd()},function(){t.call(i,{row:null,column:null},e),i._signalTaskEnd()})):t.call(i,n,e)}else t.call(i,s,e)},M.prototype._getLocalKeys=function(e){var t=this._getCellByIndex(e);if(t)return this.getCellKeys(t);var i,s,n=e.row,o=e.column;if(void 0!==n){if(-1===n)i=null;else{var l=this._getCellOrHeaderByIndex(n,"row");l&&(i=this._getKey(l,"row"))}if(void 0===i)return}if(void 0!==o){if(-1===o)s=null;else{var r=this._getCellOrHeaderByIndex(o,"column");r&&(s=this._getKey(r,"column"))}if(void 0===s)return}return this.createIndex(i,s)},M.prototype.SetCreateContextCallback=function(e){this.m_createContextCallback=e},M.prototype.SetFocusableCallback=function(e,t){this.m_focusInHandler=e,this.m_focusOutHandler=t},M.prototype.SetFixContextCallback=function(e){this.m_fixContextCallback=e},M.prototype.SetCustomElement=function(e){this.m_customElement=e},M.prototype._isHighWatermarkScrolling=function(){return"scroll"!==this.m_options.getScrollPolicy()},M.prototype.destroy=function(){delete this.m_fetching,this._removeDataSourceEventListeners(),this._removeDomEventListeners(),delete this.m_styleClassDimensionMap,this.m_styleClassDimensionMap={width:{},height:{}}},M.prototype._addDataSourceEventListeners=function(){this._removeDataSourceEventListeners(),null!=this.m_dataSource&&(this.m_handleModelEventListener=this.handleModelEvent.bind(this),this.m_handleExpandEventListener=this.handleExpandEvent.bind(this),this.m_handleCollapseEventListener=this.handleCollapseEvent.bind(this),this.m_dataSource.on("change",this.m_handleModelEventListener,this),this.m_dataSource.on("expand",this.m_handleExpandEventListener,this),this.m_dataSource.on("collapse",this.m_handleCollapseEventListener,this))},M.prototype._removeDataSourceEventListeners=function(){null!=this.m_dataSource&&(this.m_dataSource.off("change",this.m_handleModelEventListener),this.m_dataSource.off("expand",this.m_handleExpandEventListener),this.m_dataSource.off("collapse",this.m_handleCollapseEventListener))},M.prototype._addDomEventListeners=function(){this.m_handleDatabodyKeyDown||(this.m_handleDatabodyKeyDown=this.handleDatabodyKeyDown.bind(this)),this.m_handleDatabodyKeyUp||(this.m_handleDatabodyKeyUp=this.handleDatabodyKeyUp.bind(this)),this.m_handleRootFocus||(this.m_handleRootFocus=this.handleRootFocus.bind(this)),this.m_handleRootBlur||(this.m_handleRootBlur=this.handleRootBlur.bind(this)),this.m_root.addEventListener("keydown",this.m_handleDatabodyKeyDown,!1),this.m_root.addEventListener("keyup",this.m_handleDatabodyKeyUp,!1),this.m_root.addEventListener("focus",this.m_handleRootFocus,!0),this.m_root.addEventListener("blur",this.m_handleRootBlur,!0)},M.prototype._removeDomEventListeners=function(){document.removeEventListener("mousemove",this.m_docMouseMoveListener,!1),document.removeEventListener("mouseup",this.m_docMouseUpListener,!1),null!=this.m_root&&(this.m_handleDatabodyKeyDown&&this.m_root.removeEventListener("keydown",this.m_handleDatabodyKeyDown,!1),this.m_handleDatabodyKeyUp&&this.m_root.removeEventListener("keyup",this.m_handleDatabodyKeyUp,!1),this.m_handleRootFocus&&this.m_root.removeEventListener("focus",this.m_handleRootFocus,!0),this.m_handleRootBlur&&this.m_root.removeEventListener("blur",this.m_handleRootBlur,!0))},M.prototype.getRootElement=function(){return this.m_root},M.prototype.getWidth=function(){return null==this.m_width&&(this.m_width=this.getRootElement().clientWidth),this.m_width},M.prototype.getHeight=function(){return null==this.m_height&&(this.m_height=this.getRootElement().clientHeight),this.m_height},M.prototype.getScrollableWidth=function(){var e=this.m_databody.firstChild;return this.getElementWidth(e)},M.prototype.getViewportWidth=function(){var e=this.getWidth();return Math.round(1.5*e)},M.prototype.getViewportHeight=function(){var e=this.getHeight();return Math.round(1.5*e)},M.prototype._getViewportTop=function(){return this.m_currentScrollTop},M.prototype._getViewportBottom=function(){var e=this._getViewportTop(),t=this.getElementHeight(this.m_databody),i=this.m_utils.getScrollbarSize();return this.m_hasHorizontalScroller?e+t-i:e+t},M.prototype._getViewportLeft=function(){return this.m_currentScrollLeft},M.prototype._getViewportRight=function(){var e=this._getViewportLeft(),t=this.getElementWidth(this.m_databody),i=this.m_utils.getScrollbarSize();return this.m_hasVerticalScroller?e+t-i:e+t},M.prototype.getFetchSize=function(e){return"row"===e?(null==this.m_rowFetchSize&&(this.m_rowFetchSize=Math.max(1,Math.round(this.getViewportHeight()/this.getDefaultRowHeight()))),this.m_rowFetchSize):"column"===e?(null==this.m_columnFetchSize&&(this.m_columnFetchSize=Math.max(1,Math.round(this.getViewportWidth()/this.getDefaultColumnWidth()))),this.m_columnFetchSize):0},M.prototype.getEmptyText=function(){var e=this.m_options.getEmptyText();null==e&&(e=this.getResources().getTranslatedText("msgNoData"));return e},M.prototype._buildEmptyText=function(){var e=this.getEmptyText(),t=document.createElement("div");t.id=this.createSubId("empty"),t.className=this.getMappedStyle("emptytext");var i=this.m_endColHeader>=0?this.getColumnHeaderHeight():0;this.setElementDir(t,i,"top");var s=this.getResources().isRTLMode()?"right":"left",n=this.m_endRowHeader>=0?this.getRowHeaderWidth():0;return this.setElementDir(t,n,s),t.textContent=e,this.m_empty=t,t},M.prototype.getRowThreshold=function(){return 0},M.prototype.getColumnThreshold=function(){return 0},M.prototype.setDefaultDimensions=function(){var e=document.createElement("div");e.style.visibilty="hidden";var t=this.getResources();e.className=t.getMappedStyle("rowheadercell")+" "+t.getMappedStyle("colheadercell")+" "+t.getMappedStyle("headercell"),this.m_root.appendChild(e);var i=e.getBoundingClientRect();this.m_defaultColumnWidth=Math.round(i.width),this.m_defaultRowHeight=Math.round(i.height),this.getViewportWidth(),this.getViewportHeight(),this.m_root.removeChild(e)},M.prototype.getDefaultRowHeight=function(){return null==this.m_defaultRowHeight&&this.setDefaultDimensions(),this.m_defaultRowHeight},M.prototype.getDefaultColumnWidth=function(){return null==this.m_defaultColumnWidth&&this.setDefaultDimensions(),this.m_defaultColumnWidth},M.prototype._getHeaderDimension=function(e,t,i,s){var n=this.m_sizingManager.getSize(i,t);if(null!=n)return n;if(""!==e.style[s])return n=this.getElementDir(e,s),this.m_sizingManager.setSize(i,t,n),n;var o=e.className;return null==(n=this.m_styleClassDimensionMap[s][o])&&(n=this.getElementDir(e,s)),this.m_sizingManager.setSize(i,t,n),this.m_styleClassDimensionMap[s][o]=n,n},M.prototype.createSubId=function(e){return[this.getRootElement().id,e].join(":")},M.prototype.isHeaderFetchComplete=function(){return!1===this.m_fetching.row&&!1===this.m_fetching.column},M.prototype.isFetchComplete=function(){return null!=this.m_fetching&&this.isHeaderFetchComplete()&&!1===this.m_fetching.cells},M.prototype._isLastRow=function(e){return this._isCountUnknown("row")?e===this.m_endRow&&this.m_stopRowFetch:e+1===this.getDataSource().getCount("row")},M.prototype._isLastColumn=function(e){return this._isCountUnknown("column")?e===this.m_endCol&&this.m_stopColumnFetch:e+1===this.getDataSource().getCount("column")},M.prototype._getLastAxis=function(e){return this._isCountUnknown(e)?("row"===e?this.m_stopRowFetch:this.m_stopColumnFetch)?"row"===e?this.m_endRow:this.m_endCol:"row"===e?this.m_endRow+1:this.m_endCol+1:this.getDataSource().getCount(e)-1},M.prototype.empty=function(){this.m_empty&&this.m_root.removeChild(this.m_empty),this.m_corner&&this._remove(this.m_corner),this.m_bottomCorner&&this._remove(this.m_bottomCorner),this.m_columnHeaderScrollbarSpacer&&this._remove(this.m_columnHeaderScrollbarSpacer),this.m_rowHeaderScrollbarSpacer&&this._remove(this.m_rowHeaderScrollbarSpacer),this.m_root.removeChild(this.m_placeHolder),this.m_root.removeChild(this.m_status),this.m_root.removeChild(this.m_accSummary),this.m_root.removeChild(this.m_accInfo),this.m_root.removeChild(this.m_stateInfo),this.m_root.removeChild(this.m_contextInfo),this._remove(this.m_colHeader),this._remove(this.m_rowHeader),this._remove(this.m_colEndHeader),this._remove(this.m_rowEndHeader),this._remove(this.m_databody),this._clearDatabodyMap()},M.prototype.refresh=function(e){this.resetInternal(),this.render(e)},M.prototype.resetInternal=function(){this.m_initialized=!1,this.m_readinessStack=[],this._signalTaskStart(),this._signalTaskEnd(),this._clearDatabodyMap(),this.m_cursor=null,this.m_corner=null,this.m_bottomCorner=null,this.m_columnHeaderScrollbarSpacer=null,this.m_rowHeaderScrollbarSpacer=null,this.m_colHeader=null,this.m_colEndHeader=null,this.m_rowHeader=null,this.m_rowEndHeader=null,this.m_databody=null,this.m_empty=null,this.m_accInfo=null,this.m_accSummary=null,this.m_contextInfo=null,this.m_placeHolder=null,this.m_stateInfo=null,this.m_status=null,this.m_headerLabels={row:[],column:[],rowEnd:[],columnEnd:[]},this.m_isEstimateRowCount=void 0,this.m_isEstimateColumnCount=void 0,this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1,this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1,this.m_rowFetchSize=null,this.m_columnFetchSize=null,this.m_fetching=null,this.m_processingModelEvent=!1,this.m_processingEventQueue=!1,this.m_animating=!1,this.m_sizingManager.clear(),this.m_styleClassDimensionMap={width:{},height:{}},this.m_height=null,this.m_width=null,this.m_scrollHeight=null,this.m_scrollWidth=null,this.m_avgRowHeight=void 0,this.m_avgColWidth=void 0,this.m_defaultColumnWidth=null,this.m_defaultRowHeight=null,this.m_colHeaderHeight=null,this.m_colEndHeaderHeight=null,this.m_rowHeaderWidth=null,this.m_rowEndHeaderWidth=null,this.m_rowHeaderLevelWidths=[],this.m_rowEndHeaderLevelWidths=[],this.m_columnHeaderLevelHeights=[],this.m_columnEndHeaderLevelHeights=[],this.m_collisionResize=!1,this.m_active=null,this.m_prevActive=null,this.m_trueIndex={},this.m_headerDragState=!1,this.m_databodyDragState=!1,this.m_databodyMove=!1,this.m_moveRow=null,this.m_moveRowHeader=null,this.m_dropTarget=null,this.m_dropTargetHeader=null,this.m_floodFillDragState=!1,this.m_dataTransferAction=null,this.m_discontiguousSelection=!1,this.m_docMouseMoveListener=null,this.m_docMouseUpListener=null,this.m_modelEvents=[],this.m_hasHorizontalScroller=null,this.m_hasVerticalScroller=null,this.m_currentScrollLeft=null,this.m_currentScrollTop=null,this.m_prevScrollLeft=null,this.m_prevScrollTop=null,this.m_handleScrollOverflow=null,this._clearScrollPositionTimeout(),this.m_resizing=!1,this.m_resizingElement=null,this.m_resizingElementMin=null,this.m_startRow=null,this.m_startCol=null,this.m_endRow=null,this.m_endCol=null,this.m_startRowPixel=null,this.m_startColPixel=null,this.m_endRowPixel=null,this.m_endColPixel=null,this.m_startRowHeader=null,this.m_startColHeader=null,this.m_endRowHeader=null,this.m_endColHeader=null,this.m_startRowHeaderPixel=null,this.m_startColHeaderPixel=null,this.m_endRowHeaderPixel=null,this.m_endColHeaderPixel=null,this.m_rowHeaderLevelCount=null,this.m_columnHeaderLevelCount=null,this.m_startRowEndHeader=null,this.m_startColEndHeader=null,this.m_endRowEndHeader=null,this.m_endColEndHeader=null,this.m_startRowEndHeaderPixel=null,this.m_startColEndHeaderPixel=null,this.m_endRowEndHeaderPixel=null,this.m_endColEndHeaderPixel=null,this.m_rowEndHeaderLevelCount=null,this.m_columnEndHeaderLevelCount=null,this.m_sortInfo=null,this.m_expandCollapseInfo=null,this.m_resizeRequired=null,this.m_externalFocus=null,this.m_currentMode=null,this.m_editMode=null,this.m_hasCells=null,this.m_hasRowHeader=null,this.m_hasRowEndHeader=null,this.m_hasColHeader=null,this.m_hasColEndHeader=null,this.m_isLongScroll=null,this.m_addBorderBottom=null,this.m_addBorderRight=null,this.m_sortContainerWidth=null,this.m_sortContainerHeight=null,this._destroyEditableClone(),this._clearFocusoutTimeout(),this._clearFocusoutBusyState()},M.prototype._shouldInitialize=function(){return this.isFetchComplete()&&!this.m_initialized&&null!=this.m_databody.parentNode},M.prototype._handleInitialization=function(e){!0===e?(this.resizeGrid(),0===this.m_startRow&&0===this.m_startCol&&this.fillViewport(),this.isFetchComplete()&&(this._updateActive(this.m_options.getCurrentCell(),!!this.m_focusOnRefresh,!0),this.m_initialized=!0,this.fireEvent("ready",{}),this._runModelEventQueue())):(this.m_initialized=!0,this.fireEvent("ready",{}),this._runModelEventQueue())},M.prototype._runModelEventQueue=function(){var e;if(null!=this.m_modelEvents){if(this.m_processingEventQueue=!0,0===this.m_modelEvents.length)return void(this.m_processingEventQueue=!1);"expand"===(e=this.m_modelEvents.shift()).operation?this.handleExpandEvent(e,!0):"collapse"===e.operation?this.handleCollapseEvent(e,!0):this.handleModelEvent(e,!0)}else this.m_processingEventQueue=!1},M.prototype.render=function(e){this.m_renderCount+=1,this.m_timingStart=new Date,this.m_fetching={},this.m_startRow=0,this.m_startCol=0,this.m_endRow=-1,this.m_endCol=-1,this.m_startRowPixel=0,this.m_startColPixel=0,this.m_endRowPixel=0,this.m_endColPixel=0,this.m_startRowHeader=0,this.m_startColHeader=0,this.m_endRowHeader=-1,this.m_endColHeader=-1,this.m_startRowHeaderPixel=0,this.m_startColHeaderPixel=0,this.m_endRowHeaderPixel=0,this.m_endColHeaderPixel=0,this.m_startRowEndHeader=0,this.m_startColEndHeader=0,this.m_endRowEndHeader=-1,this.m_endColEndHeader=-1,this.m_startRowEndHeaderPixel=0,this.m_startColEndHeaderPixel=0,this.m_endRowEndHeaderPixel=0,this.m_endColEndHeaderPixel=0,this.m_currentScrollLeft=0,this.m_currentScrollTop=0,this.m_prevScrollLeft=0,this.m_prevScrollTop=0,this.m_handleScrollOverflow=!1,this.m_rowHeaderLevelWidths=[],this.m_rowEndHeaderLevelWidths=[],this.m_columnHeaderLevelHeights=[],this.m_columnEndHeaderLevelHeights=[];var t=this._loadTemplateEngine();t?(this._signalTaskStart("loading template engine"),t.then(()=>{this._signalTaskEnd(),this.m_renderCount-=1,0===this.m_renderCount&&this.buildGrid(e)})):(this.m_renderCount-=1,this.buildGrid(e))},M.prototype._loadTemplateEngine=function(){var e=this._getSlotMap();if(this._isDataGridProvider()&&Object.keys(e).length>1){var t={customElement:this.m_customElement};return new Promise(e=>{u.__getTemplateEngine(t).then(t=>{this.m_engine=t,e(t)},function(e){throw new Error("Error loading template engine: "+e)})})}return null},M.prototype._getTemplateEngine=function(){return this.m_engine},M.prototype._isDataGridProvider=function(){return this.m_options.options.data&&this.m_options.options.data.fetchByOffset&&!this.m_options.options.data.fetchFirst},M.prototype._getSlotMap=function(){return _.CustomElementUtils.getSlotMap(this.m_root)},M.prototype._getItemTemplateBySlotName=function(e){var t=this._getSlotMap()[e];return t&&t.length>0&&"template"===t[0].tagName.toLowerCase()?t[0]:null},M.prototype.buildGrid=function(e){this.m_root=e,this.m_root.setAttribute("role","application"),this._isCellEditable()?this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("editable")):this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("readOnly")),this.setDefaultDimensions(),e.tabIndex=0;var t=this.buildStatus();e.appendChild(t),this.m_status=t;var i=this.buildAccSummary();e.appendChild(i),this.m_accSummary=i;var s=this.buildAccInfo();e.appendChild(s),this.m_accInfo=s;var n=this.buildStateInfo();e.appendChild(n),this.m_stateInfo=n;var o=this.buildContextInfo();e.appendChild(o),this.m_contextInfo=o;var l=this.buildPlaceHolder();if(e.appendChild(l),this.m_placeHolder=l,this.m_headerLabels={row:[],column:[],rowEnd:[],columnEnd:[]},null!=this.getDataSource()){this.m_empty=null;var r=this.getResources().isRTLMode(),a=this.buildHeaders("column",this.getMappedStyle("colheader"),this.getMappedStyle("colendheader")),h=a.root,d=a.endRoot;e.insertBefore(h,t),e.insertBefore(d,t);var c=(a=this.buildHeaders("row",this.getMappedStyle("rowheader"),this.getMappedStyle("rowendheader"))).root,m=a.endRoot;e.insertBefore(c,t),e.insertBefore(m,t);var u=this.buildDatabody();if(e.insertBefore(u,t),r&&(h.style.direction="rtl",u.style.direction="rtl"),this.m_isResizing=!1,this.m_resizingElement=null,this.m_resizingElementMin=null,this.m_databodyDragState=!1,this.m_docMouseMoveListener=this.handleMouseMove.bind(this),this.m_docMouseUpListener=this.handleMouseUp.bind(this),this.m_utils.isTouchDevice())u.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),u.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!1}),u.addEventListener("touchend",this.handleTouchEnd.bind(this),!1),u.addEventListener("touchcancel",this.handleTouchCancel.bind(this),!1),h.addEventListener("touchstart",this.handleHeaderTouchStart.bind(this),{passive:!0}),h.addEventListener("touchmove",this.handleHeaderTouchMove.bind(this),{passive:!1}),h.addEventListener("touchend",this.handleHeaderTouchEnd.bind(this),!1),h.addEventListener("touchcancel",this.handleHeaderTouchCancel.bind(this),!1),c.addEventListener("touchstart",this.handleHeaderTouchStart.bind(this),{passive:!0}),c.addEventListener("touchmove",this.handleHeaderTouchMove.bind(this),{passive:!1}),c.addEventListener("touchend",this.handleHeaderTouchEnd.bind(this),!1),c.addEventListener("touchcancel",this.handleHeaderTouchCancel.bind(this),!1),d.addEventListener("touchstart",this.handleHeaderTouchStart.bind(this),{passive:!0}),d.addEventListener("touchmove",this.handleHeaderTouchMove.bind(this),{passive:!1}),d.addEventListener("touchend",this.handleHeaderTouchEnd.bind(this),!1),d.addEventListener("touchcancel",this.handleHeaderTouchCancel.bind(this),!1),m.addEventListener("touchstart",this.handleHeaderTouchStart.bind(this),{passive:!0}),m.addEventListener("touchmove",this.handleHeaderTouchMove.bind(this),{passive:!1}),m.addEventListener("touchend",this.handleHeaderTouchEnd.bind(this),!1),m.addEventListener("touchcancel",this.handleHeaderTouchCancel.bind(this),!1);else{var _=this.m_utils.getMousewheelEvent();u.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),u.addEventListener("mousedown",this.handleDatabodyMouseDown.bind(this),!1),u.addEventListener("mousemove",this.handleDatabodyMouseMove.bind(this),!1),u.addEventListener("mouseup",this.handleDatabodyMouseUp.bind(this),!1),u.addEventListener("mouseout",this.handleDatabodyMouseOut.bind(this),!1),u.addEventListener("mouseover",this.handleDatabodyMouseOver.bind(this),!1),u.addEventListener("dblclick",this.handleDatabodyDoubleClick.bind(this),!1),c.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),h.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),c.addEventListener("mousedown",this.handleHeaderMouseDown.bind(this),!1),h.addEventListener("mousedown",this.handleHeaderMouseDown.bind(this),!1),c.addEventListener("mouseover",this.handleHeaderMouseOver.bind(this),!1),h.addEventListener("mouseover",this.handleHeaderMouseOver.bind(this),!1),c.addEventListener("mousemove",this.handleRowHeaderMouseMove.bind(this),!1),h.addEventListener("mousemove",this.handleColumnHeaderMouseMove.bind(this),!1),c.addEventListener("mouseup",this.handleHeaderMouseUp.bind(this),!1),h.addEventListener("mouseup",this.handleHeaderMouseUp.bind(this),!1),c.addEventListener("mouseout",this.handleHeaderMouseOut.bind(this),!1),h.addEventListener("mouseout",this.handleHeaderMouseOut.bind(this),!1),c.addEventListener("click",this.handleHeaderClick.bind(this),!1),c.addEventListener("dblclick",this.handleHeaderDoubleClick.bind(this),!1),h.addEventListener("click",this.handleHeaderClick.bind(this),!1),h.addEventListener("dblclick",this.handleHeaderDoubleClick.bind(this),!1),m.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),d.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),m.addEventListener("mousedown",this.handleHeaderMouseDown.bind(this),!1),d.addEventListener("mousedown",this.handleHeaderMouseDown.bind(this),!1),m.addEventListener("mouseover",this.handleHeaderMouseOver.bind(this),!1),d.addEventListener("mouseover",this.handleHeaderMouseOver.bind(this),!1),m.addEventListener("mousemove",this.handleRowHeaderMouseMove.bind(this),!1),d.addEventListener("mousemove",this.handleColumnHeaderMouseMove.bind(this),!1),m.addEventListener("mouseup",this.handleHeaderMouseUp.bind(this),!1),d.addEventListener("mouseup",this.handleHeaderMouseUp.bind(this),!1),m.addEventListener("mouseout",this.handleHeaderMouseOut.bind(this),!1),d.addEventListener("mouseout",this.handleHeaderMouseOut.bind(this),!1),m.addEventListener("click",this.handleHeaderClick.bind(this),!1),m.addEventListener("dblclick",this.handleHeaderDoubleClick.bind(this),!1),d.addEventListener("click",this.handleHeaderClick.bind(this),!1),d.addEventListener("dblclick",this.handleHeaderDoubleClick.bind(this),!1)}this._shouldInitialize()&&this._handleInitialization(!0)}else{var p=this._buildEmptyText();this.m_root.appendChild(p),this._handleInitialization(!1)}},M.prototype.HandleResize=function(e,t){e=this.getRootElement().clientWidth,t=this.getRootElement().clientHeight,e===this.m_width&&t===this.m_height||(this.m_width=e,this.m_height=t,this.m_rowFetchSize=null,this.m_columnFetchSize=null,this.m_initialized&&(this.resizeGrid(),this.isFetchComplete()&&(this.m_resizeRequired=!0,this.fillViewport())))},M.prototype.resizeGrid=function(){var e=this.getWidth(),t=this.getHeight(),i=this.m_colHeader,s=this.m_colEndHeader,n=this.m_rowHeader,o=this.m_rowEndHeader,l=this.m_databody,r=l.firstChild,a=this.getColumnHeaderHeight(),h=this.getColumnEndHeaderHeight(),d=this.getRowHeaderWidth(),c=this.getRowEndHeaderWidth();this.m_headerLabels.row&&this.m_headerLabels.row.length&&0===a&&(a=this._getCellDimension(this.m_headerLabels.row[0],0,null,"column","height"),this.m_colHeaderHeight=a),this.m_headerLabels.column&&this.m_headerLabels.column.length&&0===d&&(d=this._getCellDimension(this.m_headerLabels.column[0],0,null,"row","width"),this.m_rowHeaderWidth=d);var m,u,_,p=t-a-h,g=e-d-c,f=this.m_utils.getScrollbarSize();this._databodyEmpty()&&(null==this.m_empty?(m=this._buildEmptyText(),this.m_root.appendChild(m)):m=this.m_empty,u=this.getElementHeight(m),_=this.getElementWidth(m),u>this.getElementHeight(r)&&this.setElementHeight(r,u),_>this.getElementWidth(r)&&this.setElementWidth(r,_));var C,y,v,E,w,S=this.getElementWidth(l.firstChild),H=this.getElementHeight(l.firstChild),x=this.isDatabodyHorizontalScrollbarRequired(g);if(x)C=this.isDatabodyVerticalScrollbarRequired(p-f),l.style.overflow="auto";else if(C=this.isDatabodyVerticalScrollbarRequired(p))x=this.isDatabodyHorizontalScrollbarRequired(g-f),l.style.overflow="auto";else{this.m_handleScrollOverflow=!1;var b=this;setTimeout(function(){b.m_handleScrollOverflow||b.m_hasVerticalScroller||b.m_hasHorizontalScroller||(l.style.overflow="hidden",b.m_handleScrollOverflow=!0)},10)}this.m_hasHorizontalScroller=x,this.m_hasVerticalScroller=C,-1!==this.m_endColEndHeader?(y=Math.min(H+(x?f:0),p),v=x?y-f:y):(y=p,v=Math.min(H,x?y-f:y)),-1!==this.m_endRowEndHeader?(E=Math.min(S+(C?f:0),g),w=C?E-f:E):(E=g,w=Math.min(S,C?E-f:E));var R=d+w+(C?f:0),I=a+v+(x?f:0),M=this.getResources().isRTLMode()?"right":"left";this.setElementDir(n,0,M),this.setElementDir(n,a,"top"),this.setElementHeight(n,v),this.setElementDir(o,R,M),this.setElementDir(o,a,"top"),this.setElementHeight(o,v),this.setElementDir(i,d,M),this.setElementWidth(i,w),this.setElementDir(s,d,M),this.setElementDir(s,I,"top"),this.setElementWidth(s,w),this.setElementDir(l,a,"top"),this.setElementDir(l,d,M),this.setElementWidth(l,E),this.setElementHeight(l,y),this.m_scrollWidth=S-w,this.m_scrollHeight=H-v,this.buildCorners(),this._adjustHeaderBorders(),this._updateGridlines(),this.m_resizeRequired=!1},M.prototype._sizeDatabodyScroller=function(){var e,t,i=this.m_databody,s=i.firstChild,n=this._databodyEmpty(),o=this._isHighWatermarkScrolling(),l=this.m_utils._getMaxDivHeightForScrolling(),r=this.m_utils._getMaxDivWidthForScrolling(),a=this.getDataSource().getCount("row"),h=this.getDataSource().getCount("column"),d=0,c=0;n?(d=Math.max(Math.max(this.m_endRowHeaderPixel,this.m_endRowEndHeaderPixel),1),c=Math.max(Math.max(this.m_endColHeaderPixel,this.m_endColEndHeaderPixel),1)):(d=this.m_endRowPixel,c=this.m_endColPixel),e=-1===a||o?d:a*this.m_avgRowHeight,t=-1===h||o?c:h*this.m_avgColWidth,this.setElementHeight(s,Math.min(l,e)),this.setElementWidth(s,Math.min(r,t)),this.m_initialized&&(this.m_scrollWidth=this.getElementWidth(s)-Math.min(this.getElementWidth(s),this.getElementWidth(i)-(this.m_hasVerticalScroller?this.m_utils.getScrollbarSize():0)),this.m_scrollHeight=this.getElementHeight(s)-Math.min(this.getElementHeight(s),this.getElementHeight(i)-(this.m_hasHorizontalScroller?this.m_utils.getScrollbarSize():0)))},M.prototype._adjustLastHeadersAlongAxis=function(e,t,i,s,n,o){for(var l=0;l<t;){var r=this._getHeaderByIndex(e,l,i,t,s);o?this.m_utils.removeCSSClassName(r,n):this.m_utils.addCSSClassName(r,n),l+=this.getHeaderCellDepth(r)}},M.prototype._adjustHeaderBordersAlongAxis=function(e,t,i,s,n,o,l,r){null!=e&&i>=0&&(s?this.m_utils.addCSSClassName(n,o):this.m_utils.removeCSSClassName(n,o),t(i)&&this._adjustLastHeadersAlongAxis(i,l,e,r,o,s))},M.prototype._adjustHeaderBorders=function(){var e,t,i,s,n,o=this.m_utils.getScrollbarSize(),l=this.getWidth(),r=this.getHeight(),a=this.getColumnHeaderHeight(),h=this.getElementWidth(this.m_colHeader),d=this.getColumnEndHeaderHeight(),c=this.getRowHeaderWidth(),m=this.getElementHeight(this.m_rowHeader),u=c+h+this.getRowEndHeaderWidth()+(this.m_hasVerticalScroller?o:0)<l,_=a+m+d+(this.m_hasHorizontalScroller?o:0)<r;if(u&&this.m_endRowEndHeader>=0?(e=!0,this.m_addBorderRight=!0):!0===this.m_addBorderRight&&(e=!1),null!=e)for(t=this.getMappedStyle("borderVerticalSmall"),null!=this.m_columnHeaderScrollbarSpacer&&(e?this.m_utils.addCSSClassName(this.m_columnHeaderScrollbarSpacer,t):this.m_utils.removeCSSClassName(this.m_columnHeaderScrollbarSpacer,t)),null!=this.m_bottomCorner&&(e?this.m_utils.addCSSClassName(this.m_bottomCorner,t):this.m_utils.removeCSSClassName(this.m_bottomCorner,t)),s=this.m_rowEndHeader.firstChild.childNodes,i=0;i<s.length;i++)e?this.m_utils.addCSSClassName(s[i],t):this.m_utils.removeCSSClassName(s[i],t);else t=this.getMappedStyle("borderVerticalNone"),n=this._isLastColumn.bind(this),this._adjustHeaderBordersAlongAxis(this.m_colHeader,n,this.m_endColHeader,u,this.m_columnHeaderScrollbarSpacer,t,this.m_columnHeaderLevelCount,this.m_startColHeader),this._adjustHeaderBordersAlongAxis(this.m_colEndHeader,n,this.m_endColEndHeader,u,this.m_bottomCorner,t,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader);if(e=null,_&&this.m_endColEndHeader>=0?(this.m_addBorderBottom=!0,e=!0):!0===this.m_addBorderBottom&&(e=!1),null!=e)for(t=this.getMappedStyle("borderHorizontalSmall"),null!=this.m_rowHeaderScrollbarSpacer&&(e?this.m_utils.addCSSClassName(this.m_rowHeaderScrollbarSpacer,t):this.m_utils.removeCSSClassName(this.m_rowHeaderScrollbarSpacer,t)),null!=this.m_bottomCorner&&(e?this.m_utils.addCSSClassName(this.m_bottomCorner,t):this.m_utils.removeCSSClassName(this.m_bottomCorner,t)),s=this.m_colEndHeader.firstChild.childNodes,i=0;i<s.length;i++)e?this.m_utils.addCSSClassName(s[i],t):this.m_utils.removeCSSClassName(s[i],t);else t=this.getMappedStyle("borderHorizontalNone"),n=this._isLastRow.bind(this),this._adjustHeaderBordersAlongAxis(this.m_rowHeader,n,this.m_endRowHeader,_,this.m_rowHeaderScrollbarSpacer,t,this.m_rowHeaderLevelCount,this.m_startRowHeader),this._adjustHeaderBordersAlongAxis(this.m_rowEndHeader,n,this.m_endRowEndHeader,_,this.m_bottomCorner,t,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader)},M.prototype._isHeaderLabelCollision=function(){return this.m_headerLabels.column[this.m_columnHeaderLevelCount-1]&&this.m_headerLabels.row[this.m_rowHeaderLevelCount-1]},M.prototype.buildCorners=function(){var e,t,i,s,n=this.m_utils.getScrollbarSize(),o=this.getWidth(),l=this.getHeight(),r=this.getColumnHeaderHeight(),a=this.getElementWidth(this.m_colHeader),h=this.getColumnEndHeaderHeight(),d=this.getRowHeaderWidth(),c=this.getRowEndHeaderWidth(),m=this.getElementHeight(this.m_rowHeader),u=this.getResources().isRTLMode()?"right":"left";let _,p,g,f,C,y,v=!0,E=r,w=d;if(-1!==this.m_endRowHeader&&-1!==this.m_endColHeader?(p=this.m_headerLabels.column.length?this.m_columnHeaderLevelHeights[this.m_columnHeaderLevelCount-1]:this.m_colHeaderHeight,_=this.m_headerLabels.row.length?this.m_rowHeaderLevelWidths[this.m_rowHeaderLevelCount-1]:this.m_rowHeaderWidth,C=m+r,y=h+(this.m_hasHorizontalScroller?n:0),g=d+a,f=c+(this.m_hasVerticalScroller?n:0)):-1!==this.m_endRowHeader&&-1===this.m_endColHeader?(p=r,C=m+r,y=h+(this.m_hasHorizontalScroller?n:0),g=d,f=c+a+(this.m_hasVerticalScroller?n:0)):-1===this.m_endRowHeader&&-1!==this.m_endColHeader?(_=d,C=r,y=h+m+(this.m_hasHorizontalScroller?n:0),g=d+a,f=c+(this.m_hasVerticalScroller?n:0)):v=!1,v){if(null!=this.m_corner?e=this.m_corner:((e=document.createElement("div")).id=this.createSubId("corner"),e.className=this.getMappedStyle("topcorner")),this.setElementWidth(e,d),this.setElementHeight(e,r),null==this.m_corner){if(this._attachEventListenersOnCorner(e),this.m_root.appendChild(e),this.m_corner=e,p)for(s=0;s<this.m_headerLabels.row.length;s++)null!=(i=this.m_headerLabels.row[s])&&(this.setElementHeight(i,p),e.appendChild(i));if(_)for(s=0;s<this.m_headerLabels.column.length;s++)null!=(i=this.m_headerLabels.column[s])&&(this.setElementWidth(i,_),e.appendChild(i));if(this.m_subtreeAttachedCallback(e),this._isHeaderLabelCollision()){let e=this._getHeaderByIndex(this.m_startColHeader,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),t=this.getElementHeight(e);return this.m_colHeaderHeight+=t,this.m_columnHeaderLevelHeights[this.m_columnHeaderLevelCount-1]+=t,this.resizeColumnHeightsAndShift(t,this.m_columnHeaderLevelCount-1,!1),this.setElementHeight(this.m_colHeader,this.m_colHeaderHeight),void this.manageResizeScrollbars()}}else{this.m_utils.isTouchDevice()?(e.addEventListener("touchstart",this.handleHeaderLabelMouseDown.bind(this),!1),e.addEventListener("touchmove",this.handleHeaderLabelMouseMove.bind(this),!1)):(e.addEventListener("mousedown",this.handleHeaderLabelMouseDown.bind(this),!1),e.addEventListener("mousemove",this.handleHeaderLabelMouseMove.bind(this),!1))}this._buildCornerOnHeaderAxisDisabled("row",u,0,C,w,y),this._buildCornerOnHeaderAxisDisabled("column",u,g,0,f,E)}else this.m_headerLabels.row=[],this.m_headerLabels.column=[];null!=this.m_corner&&null==e&&(this.m_root.removeChild(this.m_corner),this.m_corner=null),(this.m_hasHorizontalScroller&&this.m_hasVerticalScroller||this.m_hasVerticalScroller&&-1!==this.m_endColEndHeader||this.m_hasHorizontalScroller&&-1!==this.m_endRowEndHeader||-1!==this.m_endRowEndHeader&&-1!==this.m_endColEndHeader)&&(null!=this.m_bottomCorner?t=this.m_bottomCorner:((t=document.createElement("div")).id=this.createSubId("bcorner"),t.className=this.getMappedStyle("bottomcorner")),this.setElementDir(t,m+r,"top"),this.setElementDir(t,d+a,u),-1!==this.m_endRowEndHeader?this.setElementWidth(t,c+(this.m_hasVerticalScroller?n:0)):this.setElementWidth(t,o-a-d),-1!==this.m_endColEndHeader?this.setElementHeight(t,h+(this.m_hasHorizontalScroller?n:0)):this.setElementHeight(t,l-m-r),null==this.m_bottomCorner&&(this.m_root.appendChild(t),this.m_bottomCorner=t)),null!=this.m_bottomCorner&&null==t&&(this.m_root.removeChild(this.m_bottomCorner),this.m_bottomCorner=null)},M.prototype._attachEventListenersOnCorner=function(e){this.m_utils.isTouchDevice()?e.addEventListener("touchstart",this.handleCornerMouseDown.bind(this),{passive:!0}):(e.addEventListener("mousedown",this.handleCornerMouseDown.bind(this),!1),e.addEventListener("mouseover",this.handleCornerMouseOver.bind(this),!1),e.addEventListener("mouseout",this.handleCornerMouseOut.bind(this),!1)),e.addEventListener("click",this.handleCornerClick.bind(this),!1)},M.prototype._buildCornerOnHeaderAxisDisabled=function(e,t,i,s,n,o){let l,r="column"===e?this.m_columnHeaderScrollbarSpacer:this.m_rowHeaderScrollbarSpacer,a=!1;if("column"===e?(this.m_hasVerticalScroller||-1!==this.m_endRowEndHeader)&&(a=!0,null!=this.m_columnHeaderScrollbarSpacer?l=this.m_columnHeaderScrollbarSpacer:(l=document.createElement("div"),l.id=this.createSubId("chSbSpacer"),l.className=this.getMappedStyle("colheaderspacer"))):"row"===e&&(this.m_hasHorizontalScroller||-1!==this.m_endColEndHeader)&&(a=!0,null!=this.m_rowHeaderScrollbarSpacer?l=this.m_rowHeaderScrollbarSpacer:(l=document.createElement("div"),l.id=this.createSubId("rhSbSpacer"),l.className=this.getMappedStyle("rowheaderspacer"))),a){let a,h;if(this.setElementDir(l,i,t),this.setElementDir(l,s,"top"),this.setElementWidth(l,n),this.setElementHeight(l,o),null==r){if(this.m_utils.isTouchDevice()?l.addEventListener("touchstart",this.handleCornerMouseDown.bind(this),{passive:!0}):(l.addEventListener("mousedown",this.handleCornerMouseDown.bind(this),!1),l.addEventListener("mouseover",this.handleCornerMouseOver.bind(this),!1),l.addEventListener("mouseout",this.handleCornerMouseOut.bind(this),!1),"disable"!==this.isResizeEnabled()&&(l.addEventListener("mousedown",this.handleHeaderLabelMouseDown.bind(this),!1),l.addEventListener("mousemove",this.handleHeaderLabelMouseMove.bind(this),!1))),this.m_root.appendChild(l),"column"===e?(this.m_columnHeaderScrollbarSpacer=l,a=this.m_headerLabels.rowEnd):(this.m_rowHeaderScrollbarSpacer=l,a=this.m_headerLabels.columnEnd),a.length)for(let e=0;e<a.length;e++)h=a[e],null!=h&&l.appendChild(h);this.m_subtreeAttachedCallback(l)}}else"column"===e?(null!=this.m_columnHeaderScrollbarSpacer&&this.m_root.removeChild(this.m_columnHeaderScrollbarSpacer),this.m_columnHeaderScrollbarSpacer=null,this.m_headerLabels.rowEnd=[]):(null!=this.m_rowHeaderScrollbarSpacer&&this.m_root.removeChild(this.m_rowHeaderScrollbarSpacer),this.m_rowHeaderScrollbarSpacer=null,this.m_headerLabels.columnEnd=[])},M.prototype._updateScrollPosition=function(e){this._scrollToScrollPositionObject(e)},M.prototype._setScrollPosition=function(){this.m_setOptionCallback("scrollPosition",this._createScrollPositionObject(this.m_currentScrollLeft,this.m_currentScrollTop),{_context:{writeback:!0,internalSet:!0}})},M.prototype._clearScrollPositionKeys=function(){var e=this.m_options.getScrollPosition();e.rowKey=void 0,e.columnKey=void 0,this.m_setOptionCallback("scrollPosition",e,{_context:{internalSet:!0}})},M.prototype._createScrollPositionObject=function(e,t){var i={x:e,y:t},s=this.getResources().isRTLMode()?"right":"left",n=this._getCellAtPixel(e,t);if(null!=n)i.rowIndex=this._getIndex(n,"row"),i.columnIndex=this._getIndex(n,"column"),i.rowKey=this._getKey(n,"row"),i.columnKey=this._getKey(n,"column"),i.offsetX=e-this.getElementDir(n,s),i.offsetY=t-this.getElementDir(n,"top");else{var o=this._getHeaderAtPixel(t,"row");null!=o&&(i.rowIndex=this._getIndex(o),i.rowKey=this._getKey(o),i.offsetY=t-this.getElementDir(o,"top"));var l=this._getHeaderAtPixel(e,"column");null!=l&&(i.columnIndex=this._getIndex(l),i.columnKey=this._getKey(l),i.offsetX=e-this.getElementDir(l,s))}return i},M.prototype._getCellAtPixel=function(e,t){for(var i=this.m_databody.firstChild.childNodes,s=this.getResources().isRTLMode()?"right":"left",n=0;n<i.length;n++){var o=i[n],l=this.getElementDir(o,s),r=l+this.getElementWidth(o);if(l<=e&&e<r){var a=this.getElementDir(o,"top"),h=a+this.getElementHeight(o);if(a<=t&&t<h)return o}}return null},M.prototype._getAxisInnerMostHeaders=function(e){var t,i,s=this.getMappedStyle("headercell");switch(e){case"row":t=this.m_rowHeader,i=this.m_rowHeaderLevelCount;break;case"column":t=this.m_colHeader,i=this.m_columnHeaderLevelCount;break;case"rowEnd":t=this.m_rowEndHeader,i=this.m_rowEndHeaderLevelCount;break;case"columnEnd":t=this.m_colEndHeader,i=this.m_columnEndHeaderLevelCount}var n=[];if(t)for(var o=t.getElementsByClassName(s),l=0;l<o.length;l++){var r=o[l],a=r[this.getResources().getMappedAttribute("context")];a.level+a.depth===i&&n.push(r)}return n},M.prototype._getHeaderAtPixel=function(e,t){var i,s,n,o,l=this;function r(t){for(var i=0;i<t.length;i++){var s=t[i],r=l.getElementDir(s,n),a=r+l.getElementDir(s,o);if(r<=e&&e<a)return s}}i=this._getAxisInnerMostHeaders(t),s=this._getAxisInnerMostHeaders(t+"End"),"row"===t?(n="top",o="height"):"column"===t&&(n=this.getResources().isRTLMode()?"right":"left",o="width");var a=r(i);return null==a&&(a=r(s)),a},M.prototype._checkScrollPosition=function(){null!=this.m_desiredScrollPositionObject?this._scrollToScrollPositionObject(this.m_desiredScrollPositionObject):this._setScrollPosition()},M.prototype._areKeysLocallyAvailable=function(e,t){var i=!0;return e&&null==this._getCellOrHeaderByKey(e,"row")&&(i=!1),t&&null==this._getCellOrHeaderByKey(t,"column")&&(i=!1),i},M.prototype._scrollToScrollPositionObject=function(e){var t=e.x,i=e.y,s=e.rowIndex,n=e.columnIndex,o=e.rowKey,l=e.columnKey,r=e.offsetX?e.offsetX:0,a=e.offsetY?e.offsetY:0,h=this.getResources().isRTLMode()?"right":"left",d=this.m_options.getScrollToKey();if("never"!==d||!o&&!l){if("always"!==d)if(this.getDataSource()instanceof E&&!this._areKeysLocallyAvailable(o,l)){var c=this.m_options.getProperty("data").getCapability("fetchFirst");if(null==c||"immediate"!==c.iterationSpeed)return}var m=this;this._getIndexFromKeyPromise(o,l).then(function(d){var c=Math.floor(m._getPositionEstimate("column",h,l,d.columnIndexFromKey,n,t,r,m.m_currentScrollLeft,m._getMaxRightPixel(),m.m_avgColWidth)),u=Math.floor(m._getPositionEstimate("row","top",o,d.rowIndexFromKey,s,i,a,m.m_currentScrollTop,m._getMaxBottomPixel(),m.m_avgRowHeight));c!==m.m_currentScrollLeft&&(m.m_currentScrollLeft!==m.m_scrollWidth||c<m.m_currentScrollLeft)||u!==m.m_currentScrollTop&&(m.m_currentScrollTop!==m.m_scrollHeight||u<m.m_currentScrollTop)?(null==m.m_desiredScrollPositionObject&&m._signalTaskStart("begin scrolling to new desired location"),m.m_desiredScrollPositionObject=e,m._setScrollPositionTimeout(),m._initiateScroll(c,u)):(null!=m.m_desiredScrollPositionObject&&m._signalTaskEnd("reached desired location"),m.m_desiredScrollPositionObject=null,m._setScrollPosition())})}},M.prototype._setScrollPositionTimeout=function(){this.m_utils.isTouchDeviceNotIOS()||(this.pendingScrollTimeout=setTimeout(function(){null!=this.m_desiredScrollPositionObject&&this._signalTaskEnd("reached desired location"),this.m_desiredScrollPositionObject=null,this._setScrollPosition()}.bind(this),300))},M.prototype._clearScrollPositionTimeout=function(){null!=this.pendingScrollTimeout&&(clearTimeout(this.pendingScrollTimeout),this.pendingScrollTimeout=null)},M.prototype._getPositionEstimate=function(e,t,i,s,n,o,l,r,a,h){var d,c,m=this._isHighWatermarkScrolling();return null!=i&&-1!==s&&(null!=(c=this._getCellOrHeaderByKey(i,e))?d=this.getElementDir(c,t)+l:m?d=a:null!=s&&(d=h*s+l),null!=d)?d:d=null!=n?null!=(c=this._getCellOrHeaderByIndex(n,e))?this.getElementDir(c,t)+l:m?a:h*n:null!=o?o:r},M.prototype.isDatabodyHorizontalScrollbarRequired=function(e){var t=this.m_databody.firstChild;return this.getElementWidth(t)>e},M.prototype.isDatabodyVerticalScrollbarRequired=function(e){var t=this.m_databody.firstChild;return this.getElementHeight(t)>e},M.prototype.buildStatus=function(){var e=document.createElement("div");e.className=this.getMappedStyle("loadingicon");var t=document.createElement("div");return t.id=this.createSubId("status"),t.className=this.getMappedStyle("status"),t.setAttribute("role","status"),t.appendChild(e),t},M.prototype.buildAccInfo=function(){var e=document.createElement("div");return e.id=this.createSubId("info"),e.className=this.getMappedStyle("info"),e.setAttribute("role","status"),e},M.prototype.buildAccSummary=function(){var e=document.createElement("div");return e.id=this.createSubId("summary"),e.className=this.getMappedStyle("info"),e},M.prototype.buildStateInfo=function(){var e=document.createElement("div");return e.id=this.createSubId("state"),e.className=this.getMappedStyle("info"),e},M.prototype.buildContextInfo=function(){var e=document.createElement("div");return e.id=this.createSubId("context"),e.className=this.getMappedStyle("info"),e},M.prototype.buildPlaceHolder=function(){var e=document.createElement("div");return e.id=this.createSubId("placeHolder"),e.className=this.getMappedStyle("info"),e},M.prototype.populateAccInfo=function(){var e=this.getResources().getTranslatedText("accessibleSummaryExact",{rownum:this.m_endRow+1,colnum:this.m_endCol+1});this.getDataSource().getExpandedKeys&&(e=e+". "+this.getResources().getTranslatedText("accessibleSummaryExpanded",{num:this.getDataSource().getExpandedKeys().length}));e+=". ",this.m_accSummary.textContent=e},M.prototype.SetAccessibleContext=function(e){if(null!=e&&(null!=e.context&&(this.m_accessibleContext=e.context),null!=e.state&&(this.m_stateInfo.textContent=e.state),null!=e.ancestors&&this._isDatabodyCellActive())){var t="",i=e.ancestors,s=this.m_active.indexes.column;if(null!=s&&s>=0)for(var n=0;n<i.length;n++){n>0&&(t=t.concat(", "));var o=i[n],l=this._getAxisCellsByKey(o.key,"row");if(null!=l){var r=l[0].textContent;r=null!=r?r.replace(/\n|<br\s*\/?>/gi,"").trim():"",t=t.concat(o.label).concat(" ").concat(r)}}this.m_accessibleContext=t.concat(", ").concat(this.m_accessibleContext)}},M.prototype._updateStateInfo=function(e){for(var t=". ",i=0;i<e.length;i++){var s=this.getResources().getTranslatedText(e[i].key,e[i].args);null!=s&&(t=2===t.length?t+s:t+", "+s)}t=2===t.length?t:t+". ",this.m_stateInfo.textContent=t},M.prototype._updateContextInfo=function(e,t){var i,s;e.indexes&&(i=e.indexes.row,s=e.indexes.column);var n=e.level,o=e.rowHeader,l=e.rowEndHeader,r=e.columnHeader,a=e.columnEndHeader,h=e.rowHeaderLabel,d=e.rowEndHeaderLabel,c=e.columnHeaderLabel,m=e.columnEndHeaderLabel,u="";null!=this.m_accessibleContext||isNaN(i)||"row"===t||(u=this._updateAccessibleInfoString(u,"accessibleRowContext",{index:i+1})),isNaN(s)||"column"===t||(u=this._updateAccessibleInfoString(u,"accessibleColumnContext",{index:s+1})),isNaN(o)||(u=this._updateAccessibleInfoString(u,"accessibleRowHeaderContext",{index:o+1})),isNaN(r)||(u=this._updateAccessibleInfoString(u,"accessibleColumnHeaderContext",{index:r+1})),isNaN(l)||(u=this._updateAccessibleInfoString(u,"accessibleRowEndHeaderContext",{index:l+1})),isNaN(a)||(u=this._updateAccessibleInfoString(u,"accessibleColumnEndHeaderContext",{index:a+1})),isNaN(h)||(u=this._updateAccessibleInfoString(u,"accessibleRowHeaderLabelContext",{level:h+1})),isNaN(c)||(u=this._updateAccessibleInfoString(u,"accessibleColumnHeaderLabelContext",{level:c+1})),isNaN(d)||(u=this._updateAccessibleInfoString(u,"accessibleRowEndHeaderLabelContext",{level:d+1})),isNaN(m)||(u=this._updateAccessibleInfoString(u,"accessibleColumnEndHeaderLabelContext",{level:m+1})),isNaN(n)||(u=this._updateAccessibleInfoString(u,"accessibleLevelContext",{level:n+1})),u=0===u.length?u:u+". ",null!=this.m_accessibleContext&&(u+=this.m_accessibleContext,this.m_accessibleContext=null),this.m_contextInfo.textContent=u},M.prototype._updateAccessibleInfoString=function(e,t,i){var s=this.getResources().getTranslatedText(t,i);return null!=s?0===e.length?s:e+", "+s:e},M.prototype._isCountUnknown=function(e){var t=this.getDataSource();if("row"===e||"rowEnd"===e){var i=t.getCountPrecision("row"),s=t.getCount("row");return this.m_isEstimateRowCount="estimate"===i||s<0,this.m_isEstimateRowCount}if("column"===e||"columnEnd"===e){var n=t.getCountPrecision("column"),o=t.getCount("column");return this.m_isEstimateColumnCount="estimate"===n||o<0,this.m_isEstimateColumnCount}return!1},M.prototype._isCountUnknownOrHighwatermark=function(e){return this._isCountUnknown(e)||this._isHighWatermarkScrolling()},M.prototype._hideHeader=function(e){e.style.display="none"},M.prototype._showHeader=function(e){e.style.display=""},M.prototype.buildHeaders=function(e,t,i){var s=this.getMappedStyle("scroller")+(this.m_utils.isTouchDeviceNotIOS()?" "+this.getMappedStyle("scroller-mobile"):""),n=document.createElement("div");n.id=this.createSubId(e+"Header"),n.className=t+" "+this.getMappedStyle("header");var o=document.createElement("div");o.className=s,n.appendChild(o);var l=document.createElement("div");l.id=this.createSubId(e+"EndHeader"),l.className=i+" "+this.getMappedStyle("endheader");var r=document.createElement("div");if(r.className=s,l.appendChild(r),"column"===e?(this.m_colHeader=n,this.m_colEndHeader=l):"row"===e&&(this.m_rowHeader=n,this.m_rowEndHeader=l),this._isHighWatermarkScrolling()){this.fetchHeaders(e,0,n,l,null,null)}else{var a=this,h=this.m_options.getScrollPosition();this._getIndexesFromScrollPosition(h).then(function(t){var i=t[e];"column"===e?(a.m_startColHeader=i,a.m_startColEndHeader=i):"row"===e&&(a.m_startRowHeader=i,a.m_startRowEndHeader=i),a.m_fetching[e]=!1,a.fetchHeaders(e,i,n,l,null,null)}),this.m_fetching[e]=!0}return{root:n,endRoot:l}},M.prototype.fetchHeaders=function(e,t,i,s,n,o){if(!this.m_fetching[e]){null==n&&(n=this.getFetchCount(e,t));var l,r={axis:e,start:t,count:n,header:i,endHeader:s};this.m_fetching[e]=r,l=null!=o&&null!=o.success?o.success:this.handleHeadersFetchSuccess,this.showStatusText(),this._signalTaskStart(),this.getDataSource().fetchHeaders(r,{success:l,error:this.handleHeadersFetchError},{success:this,error:this})}},M.prototype.isHeaderFetchResponseValid=function(e){var t=e.axis;return null!=this.m_fetching&&e===this.m_fetching[t]},M.prototype.isHeaderFetchResponseInViewport=function(e){if(!this.m_initialized)return!0;var t=e.axis,i=e.start;return("row"===t?this._getLongScrollStart(this.m_currentScrollTop,this.m_prevScrollTop,t):this._getLongScrollStart(this.m_currentScrollLeft,this.m_prevScrollLeft,t)).start===i},M.prototype.handleHeadersFetchSuccess=function(e,t,i,s){var n=this.m_options.getScrollPolicyOptions(),o=n?n.maxRowCount:null,l=n?n.maxColumnCount:null;if(this.isHeaderFetchResponseValid(t)){var r=t.axis;if(this.isLongScroll()&&!this.isHeaderFetchResponseInViewport(t))return this.m_fetching[r]=!1,this.m_headerInvalid=!0,void this._signalTaskEnd();this.m_fetching[r]=!1;var a=t.header,h=t.endHeader,d=t.start,c=this.getDataSource().getCount(r);"column"===r?(null!=e&&(this.buildColumnHeaders(a,e,d,c,!1,!1),(e.getCount()<t.count||l&&l>0&&l===d+e.getCount())&&(this.m_stopColumnHeaderFetch=!0)),this.m_endColHeader<0?(this._hideHeader(a),this.m_stopColumnHeaderFetch=!0,this.m_startColHeader=0):(this.m_hasColHeader=!0,this._buildHeaderLabels(r,e)),null!=i&&(this.buildColumnEndHeaders(h,i,d,c,!1,!1),(i.getCount()<t.count||l&&l>0&&l===d+i.getCount())&&(this.m_stopColumnEndHeaderFetch=!0)),this.m_endColEndHeader<0?(this._hideHeader(h),this.m_stopColumnEndHeaderFetch=!0,this.m_startColEndHeader=0):(this.m_hasColEndHeader=!0,this._buildHeaderLabels("columnEnd",i))):"row"===r&&(null!=e&&(this.buildRowHeaders(a,e,d,c,s,!1),(e.getCount()<t.count||o&&o>0&&o===d+e.getCount())&&(this.m_stopRowHeaderFetch=!0)),this.m_endRowHeader<0?(this._hideHeader(a),this.m_stopRowHeaderFetch=!0,this.m_startRowHeader=0):(this.m_hasRowHeader=!0,this._buildHeaderLabels(r,e)),null!=i&&(this.buildRowEndHeaders(h,i,d,c,s,!1),(i.getCount()<t.count||o&&o>0&&o===d+i.getCount())&&(this.m_stopRowEndHeaderFetch=!0)),this.m_endRowEndHeader<0?(this._hideHeader(h),this.m_stopRowEndHeaderFetch=!0,this.m_startRowEndHeader=0):(this.m_hasRowEndHeader=!0,this._buildHeaderLabels("rowEnd",i))),this.isFetchComplete()&&(this.hideStatusText(),this._shouldInitialize()&&!s&&this._handleInitialization(!0)),this.m_initialized&&this._sizeDatabodyScroller(),this._signalTaskEnd()}else this._signalTaskEnd()},M.prototype.handleHeadersFetchError=function(e,t){var i=t.axis;this.m_fetching[i]=!1,this._signalTaskEnd()},M.prototype.createHeaderContext=function(e,t,i,s,n,o,l,r){var a={axis:e,index:t,data:i};a.component=this,a.datasource=this.m_options.getProperty("data"),a.level=o,a.depth=r,a.extent=l,null!=n&&(a.parentElement=n);for(var h=Object.keys(s),d=0;d<h.length;d++){var c=h[d];a[c]=s[c]}return null!=this.m_createContextCallback&&this.m_createContextCallback.call(this,a),this.m_fixContextCallback.call(this,a)},M.prototype._createLabelContext=function(e,t,i,s){var n={axis:e,level:t,data:i};return n.component=this,n.datasource=this.m_options.getProperty("data"),null!=s&&(n.parentElement=s),null!=this.m_createContextCallback&&this.m_createContextCallback.call(this,n),this.m_fixContextCallback.call(this,n)},M.prototype._buildHeaderLabels=function(e,t){if(0===this.m_headerLabels[e].length&&t&&t.getLabel){var i,s=t.getLevelCount();"rowEnd"===e?i=this.getResources().isRTLMode()?"left":"right":"row"===e?i=this.getResources().isRTLMode()?"right":"left":"column"===e?i="top":"columnEnd"===e&&(i="bottom");var n=0;if(s>0)for(var o=0;o<s;o++){var l,r=document.createElement("div"),a=t.getLabel(o);if(l="row"===e||"rowEnd"===e?"row"===e?this.m_rowHeaderLevelWidths[o]:this.m_rowEndHeaderLevelWidths[o]:"column"===e?this.m_columnHeaderLevelHeights[o]:this.m_columnEndHeaderLevelHeights[o],null!=a){var h=this._createLabelContext(e,o,a,r);r.setAttribute(this.getResources().getMappedAttribute("container"),this.getResources().widgetName),r.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),this._createUniqueId(r),r[this.getResources().getMappedAttribute("context")]=h;var d=this.m_options.getInlineStyle(e,h,!0);null!=d&&c.applyMergedInlineStyles(r,d,""),r.className=this.getMappedStyle("headerlabel")+" "+this.getMappedStyle(e.toLowerCase()+"headerlabel");var m=this.m_options.getStyleClass(e,h,!0);null!=m&&(r.className+=" "+m),"row"===e||"rowEnd"===e?("rowEnd"===e&&(r.style.height="100%"),this.setElementWidth(r,l),this.setElementDir(r,n,i),this.setElementDir(r,0,"bottom")):("columnEnd"===e&&(r.style.width="100%"),this.setElementHeight(r,l),this.setElementDir(r,n,i),this.setElementDir(r,0,this.getResources().isRTLMode()?"left":"right")),"enable"!==this.m_options.isResizable(e,"width")&&"enable"!==this.m_options.isResizable(e,"height")||this._setAttribute(r,"resizable","true");var u=this.getRendererOrTemplate(e,!0);this._renderContent(u,h,r,a,this.buildLabelTemplateContext(h,{})),this.m_headerLabels[e][o]=r}n+=l}}},M.prototype.buildLabelTemplateContext=function(e,t){return{item:{data:e.data,metadata:t.metadata},datasource:e.datasource}},M.prototype.buildHeaderTemplateContext=function(e,t){return{item:{data:e.data,depth:e.depth,extent:e.extent,index:e.index,level:e.level,metadata:t.metadata,axis:e.axis},datasource:e.datasource}},M.prototype.buildCellTemplateContext=function(e,t){return{item:{columnExtent:e.extents.column,columnIndex:e.indexes.column,data:e.data,metadata:t.metadata,rowExtent:e.extents.row,rowIndex:e.indexes.row},datasource:e.datasource,mode:e.mode}},M.prototype.getRendererOrTemplate=function(e,t){var i,s=this.m_options.getRenderer(e,t);return s||(i="cell"===e?"cellTemplate":t?e+"HeaderLabelTemplate":e+"HeaderTemplate",this._getItemTemplateBySlotName(i)||null)},M.prototype.buildColumnHeaders=function(e,t,i,s,n,o){if(null==this.m_columnHeaderLevelCount&&(this.m_columnHeaderLevelCount=t.getLevelCount()),0!==this.m_columnHeaderLevelCount){var l=t.getCount(),r=i>this.m_endColHeader;!1;var a=r?this.m_endColHeaderPixel:this.m_startColHeaderPixel,h=this.m_endColHeader,d=this.m_columnHeaderLevelCount,c=this.getMappedStyle("colheader")+" "+this.getMappedStyle("header"),m=this.getMappedStyle("headercell")+" "+this.getMappedStyle("colheadercell");!1;var u=this.buildAxisHeaders(e,t,"column",i,l,r,!1,null,a,h,d,c,m,!1),_=u.totalHeaderDimension,p=u.totalLevelDimension;if(0===_||0!==this.m_avgColWidth&&null!=this.m_avgColWidth||(this.m_avgColWidth=_/l),this.m_colHeaderHeight||(this.m_colHeaderHeight=p,this.setElementHeight(e,this.m_colHeaderHeight)),r?(this.m_endColHeader=i+l-1,this.m_endColHeaderPixel+=_):(this.m_startColHeader-=l,this.m_startColHeaderPixel-=_),-1===s&&(s=this.m_endColHeader),!this._isCountUnknown("column")&&this._isHighWatermarkScrolling()&&this.m_endColHeader+1>=s?this.m_stopColumnHeaderFetch=!0:this.m_stopColumnHeaderFetch=u.stopFetch,0===this.m_startColHeader&&0!==this.m_startColHeaderPixel&&(this._shiftHeadersAlongAxisInContainer(e.firstChild,0,-1*this.m_startColHeaderPixel,this.getResources().isRTLMode()?"right":"left",this.getMappedStyle("colheadercell")),this.m_endColHeaderPixel-=this.m_startColHeaderPixel,this.m_startColHeaderPixel=0),!this.m_initialized&&this.m_startColHeader>0){var g=Math.round(this.m_avgColWidth*this.m_startColHeader);this._shiftHeadersAlongAxisInContainer(e.firstChild,this.m_startColHeader,g-this.m_startColHeaderPixel,this.getResources().isRTLMode()?"right":"left",this.getMappedStyle("colheadercell")),this.m_endColHeaderPixel=g+_,this.m_startColHeaderPixel=g}}},M.prototype.buildColumnEndHeaders=function(e,t,i,s,n,o){if(null==this.m_columnEndHeaderLevelCount&&(this.m_columnEndHeaderLevelCount=t.getLevelCount()),0!==this.m_columnEndHeaderLevelCount){var l=t.getCount(),r=i>this.m_endColEndHeader;!1;var a=r?this.m_endColEndHeaderPixel:this.m_startColEndHeaderPixel,h=this.m_endColEndHeader,d=this.m_columnEndHeaderLevelCount,c=this.getMappedStyle("colendheader")+" "+this.getMappedStyle("endheader"),m=this.getMappedStyle("endheadercell")+" "+this.getMappedStyle("colendheadercell");!1;var u=this.buildAxisHeaders(e,t,"columnEnd",i,l,r,!1,null,a,h,d,c,m,!1),_=u.totalHeaderDimension,p=u.totalLevelDimension;if(0===_||0!==this.m_avgColWidth&&null!=this.m_avgColWidth||(this.m_avgColWidth=_/l),this.m_colEndHeaderHeight||(this.m_colEndHeaderHeight=p,this.setElementHeight(e,this.m_colEndHeaderHeight)),r?(this.m_endColEndHeader=i+(l-1),this.m_endColEndHeaderPixel+=_):(this.m_startColEndHeader-=l,this.m_startColEndHeaderPixel-=_),-1===s&&(s=this.m_endColEndHeader),!this._isCountUnknown("column")&&this._isHighWatermarkScrolling()&&this.m_endColEndHeader+1>=s?this.m_stopColumnEndHeaderFetch=!0:this.m_stopColumnEndHeaderFetch=u.stopFetch,0===this.m_startColEndHeader&&0!==this.m_startColEndHeaderPixel&&(this._shiftHeadersAlongAxisInContainer(e.firstChild,0,-1*this.m_startColEndHeaderPixel,this.getResources().isRTLMode()?"right":"left",this.getMappedStyle("colendheadercell")),this.m_endColEndHeaderPixel-=this.m_startColEndHeaderPixel,this.m_startColEndHeaderPixel=0),!this.m_initialized&&this.m_startColEndHeader>0){var g=Math.round(this.m_avgColWidth*this.m_startColEndHeader);this._shiftHeadersAlongAxisInContainer(e.firstChild,this.m_startColEndHeader,g-this.m_startColEndHeaderPixel,this.getResources().isRTLMode()?"right":"left",this.getMappedStyle("colendheadercell")),this.m_endColEndHeaderPixel=g+_,this.m_startColEndHeaderPixel=g}}},M.prototype.buildRowHeaders=function(e,t,i,s,n,o){if(null==this.m_rowHeaderLevelCount&&(this.m_rowHeaderLevelCount=t.getLevelCount()),0!==this.m_rowHeaderLevelCount){var l,r=t.getCount(),a=i>this.m_endRowHeader,h=a?this.m_endRowHeaderPixel:this.m_startRowHeaderPixel;n?(l=e.firstChild.childNodes[i-this.m_startRowHeader],h=this.getElementDir(l,"top")):l=null;var d=this.m_endRowHeader,c=this.m_rowHeaderLevelCount,m=this.getMappedStyle("rowheader")+" "+this.getMappedStyle("header"),u=this.getMappedStyle("headercell")+" "+this.getMappedStyle("rowheadercell"),_=this.buildAxisHeaders(e,t,"row",i,r,a,n,l,h,d,c,m,u,o),p=_.totalHeaderDimension,g=_.totalLevelDimension;if(o)return _;if(0===p||0!==this.m_avgRowHeight&&null!=this.m_avgRowHeight||(this.m_avgRowHeight=p/r),this.m_rowHeaderWidth||(this.m_rowHeaderWidth=g,this.setElementWidth(e,this.m_rowHeaderWidth)),a){if(-1!==this.m_endRowHeader&&0!==r){var f=e.firstChild.childNodes[this.m_endRowHeader-this.m_startRowHeader];null!=f&&this.m_utils.removeCSSClassName(f,this.getMappedStyle("borderHorizontalNone"))}this.m_endRowHeader=i+(r-1),this.m_endRowHeaderPixel+=p}else n?(i<this.m_startRowHeader&&(this.m_startRowHeader=i,this.m_startRowHeaderPixel=Math.max(0,this.m_startRowHeaderPixel-p)),this.m_endRowHeader+=r,this.m_endRowHeaderPixel=Math.max(0,this.m_endRowHeaderPixel+p),this.pushRowHeadersDown(l,p)):(this.m_startRowHeader=Math.max(0,this.m_startRowHeader-r),this.m_startRowHeaderPixel-=p);if(-1===s&&(s=this.m_endRowHeader),!this._isCountUnknown("row")&&this._isHighWatermarkScrolling()&&this.m_endRowHeader+1>=s?this.m_stopRowHeaderFetch=!0:this.m_stopRowHeaderFetch=_.stopFetch,0===this.m_startRowHeader&&0!==this.m_startRowHeaderPixel&&(this._shiftHeadersAlongAxisInContainer(e.firstChild,0,-1*this.m_startRowHeaderPixel,"top",this.getMappedStyle("rowheadercell")),this.m_endRowHeaderPixel-=this.m_startRowHeaderPixel,this.m_startRowHeaderPixel=0),!this.m_initialized&&this.m_startRowHeader>0){var C=Math.round(this.m_avgRowHeight*this.m_startRowHeader);this._shiftHeadersAlongAxisInContainer(e.firstChild,this.m_startRowHeader,C-this.m_startRowHeaderPixel,"top",this.getMappedStyle("rowheadercell")),this.m_endRowHeaderPixel=C+p,this.m_startRowHeaderPixel=C}}},M.prototype.buildRowEndHeaders=function(e,t,i,s,n,o){if(null==this.m_rowEndHeaderLevelCount&&(this.m_rowEndHeaderLevelCount=t.getLevelCount()),0!==this.m_rowEndHeaderLevelCount){var l,r=t.getCount(),a=i>this.m_endRowEndHeader,h=a?this.m_endRowEndHeaderPixel:this.m_startRowEndHeaderPixel;n?(l=e.firstChild.childNodes[i-this.m_startRowEndHeader],h=this.getElementDir(l,"top")):l=null;var d=this.m_endRowEndHeader,c=this.m_rowEndHeaderLevelCount,m=this.getMappedStyle("rowendheader")+" "+this.getMappedStyle("endheader"),u=this.getMappedStyle("endheadercell")+" "+this.getMappedStyle("rowendheadercell"),_=this.buildAxisHeaders(e,t,"rowEnd",i,r,a,n,l,h,d,c,m,u,o);if(o)return _;var p=_.totalHeaderDimension,g=_.totalLevelDimension;if(0===p||0!==this.m_avgRowHeight&&null!=this.m_avgRowHeight||(this.m_avgRowHeight=p/r),this.m_rowEndHeaderWidth||(this.m_rowEndHeaderWidth=g,this.setElementWidth(e,this.m_rowEndHeaderWidth)),a){if(-1!==this.m_endRowEndHeader&&0!==r){var f=e.firstChild.childNodes[this.m_endRowEndHeader-this.m_startRowEndHeader];null!=f&&this.m_utils.removeCSSClassName(f,this.getMappedStyle("borderHorizontalNone"))}this.m_endRowEndHeader=i+(r-1),this.m_endRowEndHeaderPixel+=p}else n?(i<this.m_startRowEndHeader&&(this.m_startRowEndHeader=i,this.m_startRowEndHeaderPixel=Math.max(0,this.m_startRowEndHeaderPixel-p)),this.m_endRowEndHeader+=r,this.m_endRowEndHeaderPixel=Math.max(0,this.m_endRowEndHeaderPixel+p),this.pushRowHeadersDown(l,p)):(this.m_startRowEndHeader=Math.max(0,this.m_startRowEndHeader-r),this.m_startRowEndHeaderPixel-=p);if(-1===s&&(s=this.m_endRowEndHeader),!this._isCountUnknown("row")&&this._isHighWatermarkScrolling()&&this.m_endRowEndHeader+1>=s?this.m_stopRowEndHeaderFetch=!0:this.m_stopRowEndHeaderFetch=_.stopFetch,0===this.m_startRowEndHeader&&0!==this.m_startRowEndHeaderPixel&&(this._shiftHeadersAlongAxisInContainer(e.firstChild,0,-1*this.m_startRowEndHeaderPixel,"top",this.getMappedStyle("rowendheadercell")),this.m_endRowEndHeaderPixel-=this.m_startRowEndHeaderPixel,this.m_startRowEndHeaderPixel=0),!this.m_initialized&&this.m_startRowEndHeader>0){var C=Math.round(this.m_avgRowHeight*this.m_startRowEndHeader);this._shiftHeadersAlongAxisInContainer(e.firstChild,this.m_startRowEndHeader,C-this.m_startRowEndHeaderPixel,"top",this.getMappedStyle("rowendheadercell")),this.m_endRowEndHeaderPixel=C+p,this.m_startRowEndHeaderPixel=C}}},M.prototype.buildAxisHeaders=function(e,t,i,s,n,o,l,r,a,h,d,c,m,u){var _,p,g=-1!==i.indexOf("column"),f=g?"height":"width",C=!1,y=0,v=0,E=0,w=0;if(!u){if(0===n&&this._isCountUnknown(i))return{totalHeaderDimension:y,totalLevelDimension:v,stopFetch:C=!0};_=e.firstChild,-1===h&&""===e.className&&(e.className=c,e.style[f]="",_.style[f]="")}for(var S=this.getRendererOrTemplate(i),H=document.createDocumentFragment(),x=0;n-x>0;){o||l?(p=s+x,E=g?a+y:0,w=g?0:a+y):(p=s+(n-1-x),E=g?a-y:0,w=g?0:a-y);var b=this.buildLevelHeaders(H,p,0,E,w,o,l,S,t,i,m,d);x+=b.count,y+=b.totalHeaderDimension,b.totalLevelDimension>v&&(v=b.totalLevelDimension)}return u?H:(o?_.appendChild(H):l?_.insertBefore(H,r):_.insertBefore(H,_.firstChild),e.hasChildNodes()||l||e.appendChild(_),this.m_subtreeAttachedCallback(_),{totalHeaderDimension:y,totalLevelDimension:v,stopFetch:C})},M.prototype._renderContent=function(e,t,i,s,n){if(null!=e&&"function"==typeof e){var o=e.call(this,t);null!=o&&(null===o.parentNode||o.parentNode instanceof DocumentFragment?(i.appendChild(o),this.m_isCustomElementCallback()||this.m_subtreeAttachedCallback(o)):null!=o.parentNode||o.toString&&i.appendChild(document.createTextNode(o.toString()))),this._removeFocusFromChildElements(t,i)}else if(null!=e&&"object"==typeof e&&this.m_engine){for(var l=this.m_engine.execute(this.m_root,e,n,null),r=0;r<l.length;r++)i.appendChild(l[r]);this._removeFocusFromChildElements(t,i)}else null!=s&&"object"==typeof s&&Object.prototype.hasOwnProperty.call(s,"data")&&(s=s.data),null==s&&(s=""),i.appendChild(document.createTextNode(s.toString()))},M.prototype._removeFocusFromChildElements=function(e,t){if("edit"!==e.mode){var i=this;this._signalTaskStart(),this.m_contextCallback(t).getBusyContext().whenReady().then(function(){c.disableAllFocusableElements(t),i._signalTaskEnd()})}},M.prototype.buildLevelHeaders=function(e,t,i,s,n,o,l,r,a,h,d,m){var u,_,p,g,f,C,y,v,E,w,S,H,x,b,R,I=0,M=0,A=0,L=0;"row"===h?(u="row",_=this.m_rowHeader,p="width",g=this.m_rowHeaderLevelWidths,f="height",C="top",y=n,v=this.getResources().isRTLMode()?"right":"left",E=s,w=this.m_startRowHeader,S=this.m_endRowHeader):"rowEnd"===h?(u="row",_=this.m_rowEndHeader,p="width",g=this.m_rowEndHeaderLevelWidths,f="height",C="top",y=n,v=this.getResources().isRTLMode()?"left":"right",E=s,w=this.m_startRowEndHeader,S=this.m_endRowEndHeader):"column"===h?(u="column",_=this.m_colHeader,p="height",g=this.m_columnHeaderLevelHeights,f="width",C=this.getResources().isRTLMode()?"right":"left",y=s,v="top",E=n,w=this.m_startColHeader,S=this.m_endColHeader):(u="column",_=this.m_colEndHeader,p="height",g=this.m_columnEndHeaderLevelHeights,f="width",C=this.getResources().isRTLMode()?"right":"left",y=s,v="bottom",E=n,w=this.m_startColEndHeader,S=this.m_endColEndHeader);var D=a.getExtent(t,i),T=D.extent,F=D.more.before,N=D.more.after,z=a.getDepth(t,i);let O;if(F&&t===S+1){for(H=this._getHeaderContainer(t-1,i,0,null,_,m),this._setAttribute(H,"extent",this._getAttribute(H,"extent",!0)+T),O=(x=H.firstChild)[this.getResources().getMappedAttribute("context")],O.extent+=T,I=this.getElementDir(x,p),b=0;b<T;)y+=(R="column"===h||"columnEnd"===h?this.buildLevelHeaders(H,t+b,i+z,y,E+I,o,l,r,a,h,d,m):this.buildLevelHeaders(H,t+b,i+z,E+I,y,o,l,r,a,h,d,m)).totalHeaderDimension,A+=R.totalHeaderDimension,L+=R.count,b+=R.count;this.setElementDir(x,this.getElementDir(x,f)+A,f)}else if(N&&t===w-1){for(H=this._getHeaderContainer(t+1,i,0,null,_,m),this._setAttribute(H,"extent",this._getAttribute(H,"extent",!0)+T),this._setAttribute(H,"start",this._getAttribute(H,"start",!0)-T),O=(x=H.firstChild)[this.getResources().getMappedAttribute("context")],O.extent+=T,O.index-=T,I=this.getElementDir(x,p),b=0;b<T;)y-=(R="column"===h||"columnEnd"===h?this.buildLevelHeaders(H,t-b,i+z,y,E+I,o,l,r,a,h,d,m):this.buildLevelHeaders(H,t-b,i+z,E+I,y,o,l,r,a,h,d,m)).totalHeaderDimension,A+=R.totalHeaderDimension,L+=R.count,b+=R.count;this.setElementDir(x,this.getElementDir(x,f)+A,f),this.setElementDir(x,y,C)}else{var P=a.getData(t,i),k=a.getMetadata(t,i);x=document.createElement("div"),O=this.createHeaderContext(h,t,P,k,x,i,T,z),x.setAttribute(this.getResources().getMappedAttribute("container"),this.getResources().widgetName),x.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),this._createUniqueId(x),x[this.getResources().getMappedAttribute("context")]=O,x[this.getResources().getMappedAttribute("metadata")]=k,x.extentInfo=D;var B=this.m_options.getInlineStyle(h,O),j=this.m_options.getStyleClass(h,O);null!=B&&c.applyMergedInlineStyles(x,B,""),x.className=d,x.className+=" "+this.getMappedStyle("depth")+z,null!=j&&(x.className+=" "+j),this.setElementDir(x,E,v),this.setElementDir(x,y,C);var W=this._getHeaderDimensions(x,f,p,g,i,u,O.key,z);I=W[p],this.setElementDir(x,I,p);var K=W[f];if(this._setAttribute(x,"depth",z),i!==m-1&&((H=document.createElement("div")).className=this.getMappedStyle("groupingcontainer"),H.appendChild(x),this._setAttribute(H,"start",o||l?t:t-T+1),this._setAttribute(H,"extent",T),this._setAttribute(H,"level",i)),i+z===m)this.setElementDir(x,K,f),A+=K,L+=1,M=I,o||l||(y-=K,this.setElementDir(x,y,C));else{for(b=0;b<T;b++){var U=o||l?t+b:t-b;K=(R="column"===h||"columnEnd"===h?this.buildLevelHeaders(H,U,i+z,y,E+I,o,l,r,a,h,d,m):this.buildLevelHeaders(H,U,i+z,E+I,y,o,l,r,a,h,d,m)).totalHeaderDimension,y=o||l?y+K:y-K,A+=K,L+=R.count,b+=R.count-1}M=I,R&&!isNaN(R.totalLevelDimension)&&(M+=R.totalLevelDimension),o||l||this.setElementDir(x,y,C),this.setElementDir(x,A,f)}if("columnEnd"===h&&this.m_addBorderBottom&&this.m_utils.addCSSClassName(x,this.getMappedStyle("borderHorizontalSmall")),"rowEnd"===h&&this.m_addBorderRight&&this.m_utils.addCSSClassName(x,this.getMappedStyle("borderVerticalSmall")),this._isHeaderResizeEnabled(h,O)&&this._setAttribute(x,"resizable","true"),this.m_isCustomElementCallback()||(null!=H?this.m_root.appendChild(H):this.m_root.appendChild(x)),this._renderContent(r,O,x,P,this.buildHeaderTemplateContext(O,k)),("column"===h||this._isDataGridProvider())&&this._isSortEnabled(h,O)){null!=k.sortDirection&&null==this.m_sortInfo&&(this.m_sortInfo={},this.m_sortInfo.key=k.key,this.m_sortInfo.direction=k.sortDirection,this.m_sortInfo.axis=h);var Y=this._buildSortIcon(O,x,h);x.appendChild(Y),this._setAttribute(x,"sortable","true")}if(this._isRequired(O)){var V=document.createElement("span");this.m_utils.addCSSClassName(V,this.getMappedStyle("iconContainer")),this.m_utils.addCSSClassName(V,this.getMappedStyle("requiredIcon")),V.setAttribute("title",this.getResources().getTranslatedText("tooltipRequired")),x.appendChild(V)}if(this._isParentNode(O)){const e=this._buildDisclosureIcon(O);this._isHierarchicalGroup(O)?this.m_utils.addCSSClassName(x,this.getMappedStyle("hierarchicalGroup")):this.m_utils.addCSSClassName(x,this.getMappedStyle("hierarchicalTree")),x.prepend(e);const t=this._buildSpacer(O);x.prepend(t)}else if(this._isLeafNode(O)){this.m_utils.addCSSClassName(x,this.getMappedStyle("hierarchical"));const e=this._buildSpacer(O);x.prepend(e)}o||l?null!=H?e.appendChild(H):e.appendChild(x):null!=H?e.firstChild?this.m_utils.containsCSSClassName(e.firstChild,this.getMappedStyle("groupingcontainer"))?e.insertBefore(H,e.firstChild):(this.m_utils.containsCSSClassName(e.firstChild,this.getMappedStyle("headercell"))||this.m_utils.containsCSSClassName(e.firstChild,this.getMappedStyle("endheadercell")))&&e.insertBefore(H,e.firstChild.nextSibling):e.appendChild(H):this.m_utils.containsCSSClassName(e,this.getMappedStyle("groupingcontainer"))?e.insertBefore(x,e.firstChild.nextSibling):e.insertBefore(x,e.firstChild)}return"column"===h||"columnEnd"===h?this._isLastColumn(t+(T-1))&&this.m_utils.addCSSClassName(x,this.getMappedStyle("borderVerticalNone")):this._isLastRow(t+(T-1))&&!l&&this.m_utils.addCSSClassName(x,this.getMappedStyle("borderHorizontalNone")),{totalLevelDimension:M,totalHeaderDimension:A,count:L}},M.prototype._getHeaderDimensions=function(e,t,i,s,n,o,l,r){for(var a={},h=0,d=0;d<r;d++){var c=s[n+d];if(null==c){h=null;break}h+=c}null==h?a=this._computeElementWidthAndHeight(e):a[i]=h,1===r&&(s[n]=a[i]);var m=this.m_sizingManager.getSize(o,l);if(null!=m)return a[t]=m,a;if(""!==e.style[t])return null==a[t]&&(a[t]=this.getElementDir(e,t)),this.m_sizingManager.setSize(o,l,a[t]),a;var u=e.className;return null==a[t]&&(a[t]=this.m_styleClassDimensionMap[t][u],null==a[t]&&(a[t]=this.getElementDir(e,t))),this.m_sizingManager.setSize(o,l,a[t]),this.m_styleClassDimensionMap[t][u]=a[t],a},M.prototype._getHeaderLevelDimension=function(e,t,i,s,n){for(var o=0,l=0;l<n;l++){var r=i[e+l];if(null==r){o=null;break}o+=r}return null!=o||(o=this.getElementDir(t,s),1===n&&(i[e]=o)),o},M.prototype._getHeaderContainer=function(e,t,i,s,n,o){var l;if(null==s?(s=n.firstChild.childNodes,l=0):l=1,i===o-1)return s[0].parentNode;for(;l<s.length;l++){var r=this._getAttribute(s[l],"start",!0),a=this._getAttribute(s[l],"extent",!0),h=this._getAttribute(s[l].firstChild,"depth",!0);if(e>=r&&e<r+a)return t<i+h?s[l]:this._getHeaderContainer(e,t,i+h,s[l].childNodes,n,o)}return null},M.prototype._getHeaderByIndex=function(e,t,i,s,n){var o;if(t<0)return null;if(1===s)return i.firstChild.childNodes[o=e-n];var l=this._getHeaderContainer(e,t,0,null,i,s);return null==l?null:t<=this._getAttribute(l,"level",!0)+this._getAttribute(l.firstChild,"depth",!0)-1?l.firstChild:(o=e-this._getAttribute(l,"start",!0)+1,l.childNodes[o])},M.prototype._getHeadersByIndex=function(e,t,i,s){let n=[],o=1;for(let l=i-1;l>=0;l-=o){let r=this._getHeaderByIndex(e,l,t,i,s);r&&(o=this.getHeaderCellDepth(r),n.push(r))}return n},M.prototype._getAttribute=function(e,t,i){var s=e.getAttribute(this.getResources().getMappedAttribute(t));return i?parseInt(s,10):s},M.prototype._setAttribute=function(e,t,i){e.setAttribute(this.getResources().getMappedAttribute(t),i)},M.prototype.buildDatabody=function(){var e=document.createElement("div");e.id=this.createSubId("databody"),e.className=this.getMappedStyle("databody")+" "+this.getMappedStyle("scrollbarForce"),e.tabIndex="-1",this.m_databody=e,e.addEventListener?e.addEventListener("scroll",this.handleScroll.bind(this),!1):e.attachEvent("onscroll",this.handleScroll.bind(this));var t=document.createElement("div");if(t.className=this.getMappedStyle("scroller")+(this.m_utils.isTouchDeviceNotIOS()?" "+this.getMappedStyle("scroller-mobile"):""),e.appendChild(t),this._isHighWatermarkScrolling()){this.fetchCells(e,0,0)}else{var i=this,s=this.m_options.getScrollPosition();this._getIndexesFromScrollPosition(s).then(function(t){var s=t.row,n=t.column;i.m_startRow=s,i.m_startCol=n,i.m_fetching.cells=!1,i.fetchCells(e,s,n)}),this.m_fetching.cells=!0}return e},M.prototype._getIndexFromKeyPromise=function(e,t){var i=this;return new Promise(function(s){null!=e||null!=t?i._indexes({row:e,column:t},function(e){s({rowIndexFromKey:e.row,columnIndexFromKey:e.column})}):s({rowIndexFromKey:null,columnIndexFromKey:null})})},M.prototype._getIndexesFromScrollPosition=function(e){var t=this,i=e.rowKey,s=e.columnKey;return this._getIndexFromKeyPromise(i,s).then(function(i){var s={};return null!=i.rowIndexFromKey&&i.rowIndexFromKey>0?s.row=i.rowIndexFromKey:null!=e.rowIndex?s.row=e.rowIndex:null!=e.y?s.row=Math.round(e.y/t.getDefaultRowHeight()):s.row=0,null!=i.columnIndexFromKey&&i.columnIndexFromKey>0?s.column=i.columnIndexFromKey:null!=e.columnIndex?s.column=e.columnIndex:null!=e.x?s.column=Math.round(e.x/t.getDefaultColumnWidth()):s.column=0,s})},M.prototype.getFetchCount=function(e,t){var i=this.getFetchSize(e);if(this._isHighWatermarkScrolling()){var s="row"===e?"maxRowCount":"maxColumnCount",n=this.m_options.getScrollPolicyOptions();n&&null!=n[s]&&n[s]>0&&(i=Math.max(Math.min(i,n[s]-t),0))}return i},M.prototype.fetchCells=function(e,t,i,s,n,o){var l;if(!this.m_fetching.cells){null==s&&(s=this.getFetchCount("row",t)),null==n&&(n=this.getFetchCount("column",i));var r={axis:"row",start:t,count:s},a={axis:"column",start:i,count:n,databody:e};this.m_fetching.cells={rowRange:r,columnRange:a},l=null!=o&&null!=o.success?o.success:this.handleCellsFetchSuccess,this.showStatusText(),this._signalTaskStart(),this.getDataSource().fetchCells([r,a],{success:l,error:this.handleCellsFetchError},{success:this,error:this})}},M.prototype.isCellFetchResponseValid=function(e){if(null==this.m_fetching)return!1;var t=e[0],i=e[1],s=this.m_fetching.cells;return t===s.rowRange&&i===s.columnRange},M.prototype.isLongScroll=function(){return this.m_isLongScroll},M.prototype.isCellFetchResponseInViewport=function(e,t){if(isNaN(this.m_avgRowHeight)||isNaN(this.m_avgColWidth)||null!=this.m_empty||!this.m_initialized)return!0;var i=t[0].start,s=t[1].start,n=this._getLongScrollStart(this.m_currentScrollTop,this.m_prevScrollTop,"row"),o=this._getLongScrollStart(this.m_currentScrollLeft,this.m_prevScrollLeft,"column");return n.start===i&&o.start===s},M.prototype.handleCellsFetchSuccess=function(e,t,i){var s=this.m_options.getScrollPolicyOptions(),n=s?s.maxRowCount:null,o=s?s.maxColumnCount:null,l=this.getDataSource().getCount("row"),r=this.getDataSource().getCount("column");if(void 0===i){if(i=!1,!this.isCellFetchResponseValid(t))return void this._signalTaskEnd();if(this.isLongScroll()&&(!this.isCellFetchResponseInViewport(e,t)||this.m_headerInvalid))return this.m_fetching.cells=!1,this.m_headerInvalid=!1,this.handleLongScroll(this.m_currentScrollLeft,this.m_currentScrollTop),void this._signalTaskEnd();this.m_isLongScroll=!1}var a=t[0],h=a.start,d=e.getCount("row"),c=d>0&&(h>this.m_endRow||h+d<=this.m_startRow);(0===d&&this._isCountUnknown("row")&&a.count>0||c&&this._isHighWatermarkScrolling()&&!this._isCountUnknown("row")&&this.m_endRow+d+1>=l||d<a.count||this._isHighWatermarkScrolling()&&n&&n>0&&h+d===n)&&(this.m_stopRowFetch=!0);var m=t[1],u=m.start,_=e.getCount("column"),p=_>0&&(u>this.m_endCol||u+_===this.m_startCol);(0===_&&this._isCountUnknown("column")&&m.count>0||p&&this._isHighWatermarkScrolling()&&!this._isCountUnknown("column")&&this.m_endCol+_+1>=r||_<m.count||this._isHighWatermarkScrolling()&&o&&o>0&&u+_===o)&&(this.m_stopColumnFetch=!0);var g=this.m_databody;null==g&&(g=m.databody);var f,C,y,v,E,w,S,H,x,b,R=g.firstChild;if(c||i){if(f=!(i||!(h>=this.m_startRow)))C=this.m_endRowPixel;else if(i){var I=this._getCellByIndex({row:h+d,column:this.m_startCol});C=this.getElementDir(I,"top")}else C=this.m_startRowPixel;y=u>=this.m_startCol?this.m_startColPixel:this.m_endColPixel,v=document.createDocumentFragment(),w=(E=this._addCellsToFragment(v,e,h,C,u,y)).totalColumnWidth,S=E.totalRowHeight,H=E.avgWidth,x=S/d,this._populateDatabody(R,v),f?(-1!==this.m_endRow&&0!==d&&this._highlightCellsAlongAxis(this.m_endRow,"row","index","remove",["borderHorizontalNone"]),this.m_endRow=h+(d-1),this.m_endRowPixel+=S):i?(h<this.m_startRow&&(this.m_startRow=h,this.m_startRowPixel=Math.max(0,this.m_startRowPixel-S)),this.m_endRow+=d,this.m_endRowPixel+=S,this.pushRowsDown(h+d,S)):(this.m_startRow-=d,this.m_startRowPixel-=S)}else p&&(y=(f=u>=this.m_startCol)?this.m_endColPixel:this.m_startColPixel,C=h>=this.m_startRow?this.m_startRowPixel:this.m_endRowPixel,v=document.createDocumentFragment(),E=this._addCellsToFragment(v,e,h,C,u,y),this._populateDatabody(R,v),w=E.totalColumnWidth);if(null==H||0!==this.m_avgColWidth&&null!=this.m_avgColWidth||(this.m_avgColWidth=H),null==x||0!==this.m_avgRowHeight&&null!=this.m_avgRowHeight||(this.m_avgRowHeight=x),p&&(u<this.m_startCol?(this.m_startCol-=_,this.m_startColPixel-=w):(this.m_endCol=u+(_-1),this.m_endColPixel+=w)),this._sizeDatabodyScroller(),this.m_endCol>=0&&this.m_endRow>=0?this.m_hasCells=!0:(this.m_startCol=0,this.m_startRow=0),0===this.m_startCol&&0!==this.m_startColPixel&&(this._shiftCellsAlongAxis("column",-this.m_startColPixel,0,!0),this.m_endColPixel-=this.m_startColPixel,this.m_startColPixel=0),0===this.m_startRow&&0!==this.m_startRowPixel&&(this._shiftCellsAlongAxis("row",-this.m_startRowPixel,0,!0),this.m_endRowPixel-=this.m_startRowPixel,this.m_startRowPixel=0),!this.m_initialized&&this.m_startCol>0&&(b=Math.round(this.m_avgColWidth*this.m_startCol),this._shiftCellsAlongAxis("column",b-this.m_startColPixel,this.m_startCol,!0),this.m_endColPixel=b+w,this.m_startColPixel=b),!this.m_initialized&&this.m_startRow>0&&(b=Math.round(this.m_avgRowHeight*this.m_startRow),this._shiftCellsAlongAxis("row",b-this.m_startRowPixel,this.m_startRow,!0),this.m_endRowPixel=b+S,this.m_startRowPixel=b),this.m_fetching.cells=!1,this.isFetchComplete()){if(this.hideStatusText(),this.m_initialized)this._checkScroll&&this._checkScrollPosition();else{if(this.m_utils.isTouchDeviceNotIOS()&&Object.prototype.hasOwnProperty.call(window,"WebKitCSSMatrix")){const e="translate3d(0, 0, 0)";R.style.transform=e,null!=this.m_rowHeader&&(this.m_rowHeader.firstChild.style.transform=e),null!=this.m_colHeader&&(this.m_colHeader.firstChild.style.transform=e),null!=this.m_rowEndHeader&&(this.m_rowEndHeader.firstChild.style.transform=e),null!=this.m_colEndHeader&&(this.m_colEndHeader.firstChild.style.transform=e)}this._updateScrollPosition(this.m_options.getScrollPosition())}if(null!=this.m_scrollIndexAfterFetch?this.scrollToIndex(this.m_scrollIndexAfterFetch):null!=this.m_scrollHeaderAfterFetch?this.scrollToHeader(this.m_scrollHeaderAfterFetch):this.isActionableMode()||null==this._getActiveElement()||this.m_utils.containsCSSClassName(this._getActiveElement(),this.getMappedStyle("focus"))||(!0!==this.m_shouldFocus&&(this.m_shouldFocus=!1),this._highlightActive(),this._manageMoveCursor()),this._isSelectionEnabled()&&this.applySelection(h,h+d,u,u+_),this.populateAccInfo(),this._shouldInitialize())this._handleInitialization(!0);else if(this.m_initialized){var M;(!0===this.m_resizeRequired||this.m_endRowPixel-S<this.getElementHeight(g))&&this.resizeGrid(),c?f?M="top":i||(M="bottom"):p&&(M=u===this.m_startCol?"right":"left"),this._cleanupViewport(M),this.fillViewport(),this.isFetchComplete()&&this.fireEvent("ready",{})}}this._isSelectionEnabled()&&this.isMultipleSelection()&&this._resetHeaderHighLight(),this._signalTaskEnd()},M.prototype._setZIndexBefore=function(e,t,i,s){if("row"===e)for(var n=this.m_startRow,o=this.m_currentScrollTop,l=this.m_rowHeader,r=this.m_rowHeaderLevelCount,a=this.m_startRowHeader,h=this.m_rowEndHeader,d=this.m_rowEndHeaderLevelCount,c=this.m_startRowEndHeader,m=t;m>=n;m--){var u,_=this._getAxisCellsByIndex(m,e);if(this.getElementDir(_[0],"top")<o)break;for(var p=0;p<_.length;p++)this.changeStyleProperty(_[p],this.getCssSupport("z-index"),10);i&&(u=this._getHeaderByIndex(m,0,l,r,a),this.changeStyleProperty(u,this.getCssSupport("z-index"),10)),s&&(u=this._getHeaderByIndex(m,0,h,d,c),this.changeStyleProperty(u,this.getCssSupport("z-index"),10))}},M.prototype._onTransitionEnd=function(e,t,i){var s;function n(){s&&(clearTimeout(s),s=void 0),e.removeEventListener("transitionend",n),t()}e.addEventListener("transitionend",n),s=setTimeout(n,i+100)},M.prototype._insertRowsWithAnimation=function(e,t,i,s,n,o,l,r){var a,h,d,c,m,u,_,p,g,f,C=this,y=0,v=0,E=0;C._signalTaskStart();var w=s>this.m_endRow,S=this.m_databody.firstChild,H=null!=t,x=null!=i;for(s>0&&(E=s-1,f=this._getAxisCellsByIndex(s-1,"row"),y=(v=this.getElementDir(f[0],"top"))+this.getElementHeight(f[0])),this._setZIndexBefore("row",E,H,x),H&&(d=(h=this.m_rowHeader.firstChild).childNodes[s-this.m_startRow-1]),x&&(m=(c=this.m_rowEndHeader.firstChild).childNodes[s-this.m_startRow-1]),a=0;a<e.childNodes.length;a++){var b=e.childNodes[a];p=v-(_=y+this.getElementDir(b,"top"))-this.getElementHeight(b),this.setElementDir(b,_,"top"),this.addTransformMoveStyle(b,0,0,"linear",0,p,0)}if(H)for(a=0;a<t.childNodes.length;a++)u=t.childNodes[a],p=v-(_=y+this.getElementDir(u,"top"))-this.getElementHeight(u),this.setElementDir(u,_,"top"),this.addTransformMoveStyle(u,0,0,"linear",0,p,0);if(x)for(a=0;a<i.childNodes.length;a++)g=i.childNodes[a],p=v-(_=y+this.getElementDir(g,"top"))-this.getElementHeight(g),this.setElementDir(g,_,"top"),this.addTransformMoveStyle(g,0,0,"linear",0,p,0);for(a=s;a<=this.m_endRow;a++){var R=this._getAxisCellsByIndex(a-this.m_startRow,"row");_=o+this.getElementDir(R[0],"top"),p=-o;for(var I=0;I<R.length;I++)this.setElementDir(R[I],_,"top"),this.addTransformMoveStyle(R[I],0,0,"linear",0,p,0);H&&(u=h.childNodes[a],this.setElementDir(u,_,"top"),this.addTransformMoveStyle(u,0,0,"linear",0,p,0)),x&&(g=c.childNodes[a],this.setElementDir(g,_,"top"),this.addTransformMoveStyle(g,0,0,"linear",0,p,0))}this._modifyAxisCellContextIndex("row",s,this.m_endRow-s+1,n),this.m_endRow+=n,this.m_endRowPixel+=o,H&&(this.m_endRowHeader+=t.childNodes.length,this.m_endRowHeaderPixel+=o),x&&(this.m_endRowEndHeader+=i.childNodes.length,this.m_endRowEndHeaderPixel+=o),S.appendChild(e),w?(H&&h.appendChild(t),x&&c.appendChild(i)):(H&&h.insertBefore(t,d.nextSibling),x&&c.insertBefore(i,m.nextSibling)),this.setElementHeight(S,this.getElementHeight(S)+o),this.resizeGrid(),this.updateRowBanding(),this._refreshDatabodyMap(),this._isSelectionEnabled()&&this.applySelection(s,s+n,l,l+r);var A=this._getCellByIndex(this.createIndex(s+(n-1),this.m_endCol));this.m_animating=!0;var L=C.m_processingEventQueue?1:M.EXPAND_ANIMATION_DURATION;this._onTransitionEnd(A,function(){C._handleAnimationEnd()},L),setTimeout(function(){for(var e=M.EXPAND_ANIMATION_DURATION,t=s;t<=C.m_endRow;t++){for(var i=C._getAxisCellsByIndex(t,"row"),n=0;n<i.length;n++)C.addTransformMoveStyle(i[n],e+"ms",0,"ease-out",0,0,0);H&&C.addTransformMoveStyle(h.childNodes[t],e+"ms",0,"ease-out",0,0,0),x&&C.addTransformMoveStyle(c.childNodes[t],e+"ms",0,"ease-out",0,0,0)}},0)},M.prototype._addCellsToFragment=function(e,t,i,s,n,o){for(var l=this.getResources().isRTLMode()?"right":"left",r=this.getRendererOrTemplate("cell"),a=this.m_options.getColumnBandingInterval(),h=this.m_options.getRowBandingInterval(),d=this.m_options.getHorizontalGridlines(),m=this.m_options.getVerticalGridlines(),u=t.getCount("row"),_=t.getCount("column"),p=i>=this.m_startRow,g=n>=this.m_startCol,f=0,C=s,y=[],v=[],E=0;E<u;E+=1){for(var w,S,H,x,b=o,R=p?i+E:i+(u-1-E),I=Math.floor(R/h)%2==1,M=0;M<_;M+=S.column){var A=0;w=0;var L,D=g?n+M:n+(_-1-M);S={row:(L=t.getExtent?t.getExtent(this.createIndex(R,D)):{row:{extent:1,more:{before:!1,after:!1}},column:{extent:1,more:{before:!1,after:!1}}}).row.extent,column:L.column.extent},g||(D=D-S.column+1);var T=p?R:R-S.row+1,F=this.createIndex(T,D);if(y[E]&&y[E][M])A=y[E][M].width,b=g?b+A:b-A;else{var N=this._patchExistingCells(L,D,T,y);if(N)A=N.width;else{var z=t.getData(this.createIndex(T,D)),O=t.getMetadata(this.createIndex(T,D));H=document.createElement("div"),x=this.createCellContext(F,z,O,H,S),H.setAttribute(this.getResources().getMappedAttribute("container"),this.getResources().widgetName),H.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),this._createUniqueId(H),H[this.getResources().getMappedAttribute("context")]=x,H[this.getResources().getMappedAttribute("metadata")]=O;var P=this.m_options.getInlineStyle("cell",x);null!=P&&c.applyMergedInlineStyles(H,P,""),""!==H.style.height&&(H.style.height=""),""!==H.style.width&&(H.style.width=""),this.m_utils.addCSSClassName(H,this.getMappedStyle("cell")),this.m_utils.addCSSClassName(H,this.getMappedStyle("formcontrol")),(I||Math.floor(D/a)%2==1)&&this.m_utils.addCSSClassName(H,this.getMappedStyle("banded"));var k,B=this.m_options.getStyleClass("cell",x);for(null!=B&&(H.className+=" "+B),k=0;k<S.row;k++){var j=0===k?x.keys.row:this._getKey(this._getHeaderByIndex(T+k,0,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),"row");v[E+k]=this._getCellDimension(H,T+k,j,"row","height"),w+=v[E+k]}for(this.setElementHeight(H,w),k=0;k<S.column;k++){var W=0===k?x.keys.column:this._getKey(this._getHeaderByIndex(D+k,0,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),"column");A+=this._getCellDimension(H,D,W,"column","width")}this.setElementWidth(H,A),("hidden"===m||this._isLastColumn(D+(S.column-1))&&(this.getRowHeaderWidth()+b+A>=this.getWidth()||-1!==this.m_endRowEndHeader))&&this.m_utils.addCSSClassName(H,this.getMappedStyle("borderVerticalNone")),("hidden"===d||this._isLastRow(T+(S.row-1))&&(this.getRowBottom(H,C+w)>=this.getHeight()||-1!==this.m_endColEndHeader))&&this.m_utils.addCSSClassName(H,this.getMappedStyle("borderHorizontalNone")),p?this.setElementDir(H,C,"top"):this.setElementDir(H,C-w,"top"),g?this.setElementDir(H,b,l):this.setElementDir(H,b-A,l),this.m_isCustomElementCallback()&&this.m_root.appendChild(H),this._renderContent(r,x,H,z,this.buildCellTemplateContext(x,O)),e.appendChild(H)}this._updateTempArray(y,{width:A},E,M,S.row,S.column),b=g?b+A:b-A,0===E&&(f+=A)}}w=v[E],C=p?C+w:C-w,w}return{avgWidth:f/_,totalRowHeight:v.reduce(function(e,t){return e+t},0),totalColumnWidth:f}},M.prototype._updateCellDimension=function(e,t,i,s,n,o,l,r){var a,h,d,c,m,u=0,_="width"===l?"height":"width",p=this._getCellByIndex(this.createIndex(s,i)),g=this.getElementDir(p,l),f=p[this.getResources().getMappedAttribute("context")];f.extents[o]+=e,"row"===o?(a=s,h=this.m_rowHeader,d=this.m_rowHeaderLevelCount,c=this.m_startRowHeader):(a=i,h=this.m_colHeader,d=this.m_columnHeaderLevelCount,c=this.m_startColHeader);for(var C=1;C<=e;C++){var y=this._getKey(this._getHeaderByIndex(r?a-C:a+C,0,h,d,c),o);u+=this._getCellDimension(p,r?a-C:a+C,y,o,l);for(var v=0;v<t;v++){var E,w;"row"===o?(E=r?s-C:s+C,w=i+v):(E=s+v,w=r?i-C:i+C),this._addIndexToDatabodyMap(this.createIndex(E,w),p.id)}}r&&(m="width"===l?this.getResources().isRTLMode()?"right":"left":"top",this.setElementDir(p,this.getElementDir(p,m)-u,m),f.indexes[o]-=e);this.setElementDir(p,g+u,l);var S={};return S[l]=u,S[_]=this.getElementDir(p,_),S.cell=p,S},M.prototype._patchExistingCells=function(e,t,i,s){var n=e.column.extent,o=e.row.extent,l=e.row.more.before,r=e.row.more.after,a=e.column.more.before,h=e.column.more.after;return t-1===this.m_endCol&&a?this._updateCellDimension(n,o,this.m_endCol,i,s,"column","width",!1):i-1===this.m_endRow&&l?this._updateCellDimension(o,n,t,this.m_endRow,s,"row","height",!1):t+n===this.m_startCol&&h?this._updateCellDimension(n,o,this.m_startCol,i,s,"column","width",!0):!(i+o!==this.m_startRow||!r)&&this._updateCellDimension(o,n,t,this.m_startRow,s,"row","height",!0)},M.prototype._updateTempArray=function(e,t,i,s,n,o){for(var l=0;l<n;l++){null==e[i+l]&&(e[i+l]=[]);for(var r=0;r<o;r++)e[i+l][s+r]=t}},M.prototype._getCellDimension=function(e,t,i,s,n){var o,l,r;if("row"===s?(o=this.getMappedStyle("rowheadercell")+" "+this.getMappedStyle("headercell"),l=this.m_endRowHeader):"column"===s&&(o=this.getMappedStyle("colheadercell")+" "+this.getMappedStyle("headercell"),l=this.m_endColHeader),-1===l){var a=this.createHeaderContext(s,t,null,{key:i},null,0,0,1),h=this.m_options.getInlineStyle(s,a),d=this.m_options.getStyleClass(s,a);r=document.createElement("div"),null!=h&&c.applyMergedInlineStyles(r,h,""),r.className=o+" "+d}else r=e;return this._getHeaderDimension(r,i,s,n)},M.prototype._modifyAndPushCells=function(e,t,i,s,n,o){let l=this.getResources().isRTLMode()?"right":"left",r="row"===i?"top":l,a=this.getResources().getMappedAttribute("context"),h=o?1:-1,d=function(i,s,n){i.forEach(i=>{let l=s(i),r=0;if(o)l>=e[0]&&(r=e.length);else for(;r<e.length&&!(e[r]>=l);r++);if(r>0){let e=t.length?t.slice(0,r).reduce((e,t)=>e+t):0;e*=h,r*=h,n(i,e,r,l)}})};d(this.m_databody.firstChild.querySelectorAll("."+this.getMappedStyle("cell")),e=>e[a].indexes[i],(e,t,s)=>{if(0!==t){let i=this.getElementDir(e,r)+t;this.setElementDir(e,i,r)}e[a].indexes[i]+=s}),d(s.querySelectorAll("."+this.getMappedStyle("headercell")),e=>e[a].index,(e,t,i)=>{if(0!==t){let i=this.getElementDir(e,r)+t;this.setElementDir(e,i,r)}e[a].index+=i}),d(s.querySelectorAll("."+this.getMappedStyle("groupingcontainer")),e=>this._getAttribute(e,"start",!0),(e,t,i,s)=>{this._setAttribute(e,"start",s+i)}),d(n.querySelectorAll("."+this.getMappedStyle("endheadercell")),e=>e[a].index,(e,t,i)=>{if(0!==t){let i=this.getElementDir(e,r)+t;this.setElementDir(e,i,r)}e[a].index+=i}),d(n.querySelectorAll("."+this.getMappedStyle("groupingcontainer")),e=>this._getAttribute(e,"start",!0),(e,t,i,s)=>{this._setAttribute(e,"start",s+i)})},M.prototype.pushRowsDown=function(e,t){for(;e<=this.m_endRow;){var i=this._getAxisCellsByIndex(e,"row");if(i.length>0)for(var s=0;s<i.length;s++){var n=i[s],o=this.getElementDir(n,"top")+t;n.style.top=o+"px"}e+=1}},M.prototype.pushRowsUp=function(e,t){this.pushRowsDown(e,-t)},M.prototype.pushRowHeadersDown=function(e,t){for(;e;){var i=this.getElementDir(e,"top")+t;e.style.top=i+"px",e=e.nextSibling}},M.prototype.pushRowHeadersUp=function(e,t){this.pushRowHeadersDown(e,-t)},M.prototype.createCellContext=function(e,t,i,s,n){var o={parentElement:s,indexes:e,cell:t};this._isDataGridProvider()?o.data=t:o.data=null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"data")?t.data:t,o.component=this,o.datasource=this.m_options.getProperty("data"),o.mode="navigation",o.extents=n;for(var l=Object.keys(i),r=0;r<l.length;r++){var a=l[r];o[a]=i[a]}return null!=this.m_createContextCallback&&this.m_createContextCallback.call(this,o),this.m_fixContextCallback.call(this,o)},M.prototype._createUniqueId=function(e){return this._uniqueIdCallback(e,!1)},M.prototype.getRowHeaderWidth=function(){return null===this.m_rowHeaderWidth?0:this.m_rowHeaderWidth},M.prototype.getColumnHeaderHeight=function(){return null===this.m_colHeaderHeight?0:this.m_colHeaderHeight},M.prototype.getRowEndHeaderWidth=function(){return-1===this.m_endRowEndHeader?0:this.m_rowEndHeaderWidth},M.prototype.getColumnEndHeaderHeight=function(){return-1===this.m_endColEndHeader?0:this.m_colEndHeaderHeight},M.prototype.getRowBottom=function(e,t){var i=this.getColumnHeaderHeight();if(null!=t)return i+t;var s=this.getElementDir(e,"top"),n=this.calculateRowHeight(e);return isNaN(s)||isNaN(n)?i:i+s+n},M.prototype.handleCellsFetchError=function(e,t){if(this.m_fetching.cells=!1,this.hideStatusText(),null==this.m_databody.firstChild)this._shouldInitialize()&&this._handleInitialization(!0);else{var i=t[0],s=t[1];s.start+(s.count-1)>this.m_endCol&&(this.m_stopColumnFetch=!0,this.m_stopColumnHeaderFetch=!0,this.m_stopColumnEndHeaderFetch=!0),i.start+(i.count-1)>this.m_endRow&&(this.m_stopRowFetch=!0,this.m_stopRowHeaderFetch=!0,this.m_stopRowEndHeaderFetch=!0)}},M.prototype.showStatusText=function(){var e=this;"block"===this.m_status.style.display||this.m_showStatusTimeout||(this.m_showStatusTimeout=setTimeout(function(){var t=e.getResources().getTranslatedText("msgFetchingData");e.m_status.setAttribute("aria-label",t),e.m_status.style.display="block";var i=e.getWidth()/2-e.m_status.offsetWidth/2,s=e.getHeight()/2-e.m_status.offsetHeight/2;e.m_status.style.left=i+"px",e.m_status.style.top=s+"px",e.m_showStatusTimeout=null},this.getShowStatusDelay()))},M.prototype.getShowStatusDelay=function(){var e=m.getCSSTimeUnitAsMillis(this.getResources().getDefaultOption("showIndicatorDelay"));return isNaN(e)?0:e},M.prototype.hideStatusText=function(){this.m_showStatusTimeout&&(clearTimeout(this.m_showStatusTimeout),this.m_showStatusTimeout=null),this.m_status.style.display="none"},M.prototype._isFocusableElementBeforeCell=function(e){if(null==e||e===this.getRootElement()||this.m_utils.containsCSSClassName(e,this.getMappedStyle("cell")))return!1;var t=e.tagName;return!!("INPUT"===t||"TEXTAREA"===t||"SELECT"===t||"BUTTON"===t||"A"===t||this.m_utils.containsCSSClassName(e,this.getMappedStyle("active"))||null!=e.getAttribute("tabIndex")&&parseInt(e.getAttribute("tabIndex"),10)>=0&&this.findCell(e)!==e)||this._isFocusableElementBeforeCell(e.parentNode)},M.prototype._setFocusToFirstFocusableElement=function(e,t){c.enableAllFocusableElements(e);var i=c.getFocusableElementsInNode(e);if(i.length>0){var s=i[0];if(s.focus(),t&&t.preventDefault(),s.setSelectionRange&&s.value)try{s.setSelectionRange(s.value.length,s.value.length)}catch(e){}return!0===this._overwriteFlag&&"function"==typeof i[0].select&&s.select(),!0}return!1},M.prototype.handleScroll=function(e){if(this._clearScrollPositionTimeout(),this.m_handleScrollOverflow||(this.m_hasVerticalScroller||this.m_hasHorizontalScroller||(this.m_databody.style.overflow="hidden"),this.m_handleScrollOverflow=!0),this.m_animating)e.preventDefault();else if(!this.m_utils.isTouchDeviceNotIOS())if(!0!==this.m_silentScroll){var t;e||(e=window.event),t=e.target?e.target:e.srcElement;var i=this.m_utils.getElementScrollLeft(t),s=t.scrollTop;this.scrollTo(i,s)}else this.m_silentScroll=!1},M.prototype._getMaxScrollWidth=function(){return this._isCountUnknownOrHighwatermark("column")&&!this.m_stopColumnFetch?Number.MAX_VALUE:this.m_scrollWidth},M.prototype._getMaxScrollHeight=function(){return this._isCountUnknownOrHighwatermark("row")&&!this.m_stopRowFetch?Number.MAX_VALUE:this.m_scrollHeight},M.prototype.scroll=function(e){if(null!=e.position){var t={};t.x=Math.max(0,Math.min(this.m_scrollWidth,e.position.scrollX)),t.y=Math.max(0,Math.min(this.m_scrollHeight,e.position.scrollY)),this._scrollToScrollPositionObject(t)}},M.prototype.scrollDelta=function(e,t){this._adjustScrollerSize();var i=Math.max(0,Math.min(this._getMaxScrollWidth(),this.m_currentScrollLeft-e)),s=Math.max(0,Math.min(this._getMaxScrollHeight(),this.m_currentScrollTop-t));this._initiateScroll(i,s)},M.prototype.adjustTouchScroll=function(e,t){return this.m_utils.isTouchDevice()&&0!==e&&0!==t&&(Math.abs(e)>Math.abs(t)?(t=0,this.m_extraScrollOverY=null):(e=0,this.m_extraScrollOverX=null)),[e,t]},M.prototype._initiateScroll=function(e,t){this.m_utils.isTouchDeviceNotIOS()?this.scrollTo(e,t):(this.m_utils.setElementScrollLeft(this.m_databody,e),this.m_databody.scrollTop=t)},M.prototype._initiateScrollOnAttached=function(){this._initiateScroll(this.m_currentScrollLeft,this.m_currentScrollTop)},M.prototype._disableTouchScrollAnimation=function(){this.m_databody.firstChild.style.transitionDuration="0ms",this.m_rowHeader.firstChild.style.transitionDuration="0ms",this.m_colHeader.firstChild.style.transitionDuration="0ms",this.m_rowEndHeader.firstChild.style.transitionDuration="0ms",this.m_colEndHeader.firstChild.style.transitionDuration="0ms"},M.prototype._shouldLongScroll=function(e,t){return!this._isHighWatermarkScrolling()&&(e+this.getViewportWidth()<this._getMaxLeftPixel()||t+this.getViewportHeight()<this._getMaxTopPixel()||e>this._getMaxRightPixel()||t>this._getMaxBottomPixel())},M.prototype.scrollTo=function(e,t){if(this.m_prevScrollLeft=this.m_currentScrollLeft,this.m_currentScrollLeft=e,this.m_prevScrollTop=this.m_currentScrollTop,this.m_currentScrollTop=t,this._checkScroll=!1,this.m_utils.isTouchDeviceNotIOS()||(this._shouldLongScroll(e,t)?this.handleLongScroll(e,t):this.fillViewport(),this._checkScroll=!0),this._syncScroller(),this._adjustScrollerSize(),null!=this.m_cellToFocus){var i=this.m_cellToFocus;this.m_cellToFocus=null,this._setActive(i,this._createActiveObject(i),null,!1,!1,!0)}null!=this.m_scrollIndexAfterFetch&&this._isInViewport(this.m_scrollIndexAfterFetch)===M.INSIDE&&(this._isDatabodyCellActive()&&this.m_scrollIndexAfterFetch.row===this.m_active.indexes.row&&this.m_scrollIndexAfterFetch.column===this.m_active.indexes.column&&this._highlightActive(),this.m_scrollIndexAfterFetch=null),null!=this.m_scrollHeaderAfterFetch&&(this._isDatabodyCellActive()||this.m_scrollHeaderAfterFetch.axis!==this.m_active.axis||this.m_scrollHeaderAfterFetch.index!==this.m_active.index||this.m_scrollHeaderAfterFetch.level!==this.m_active.level||this._highlightActive(),this.m_scrollHeaderAfterFetch=null),this.m_utils.isTouchDeviceNotIOS()||this.m_prevScrollTop===t&&this.m_prevScrollLeft===e||this.fireEvent("scroll",{event:null,ui:{scrollX:e,scrollY:t}}),!this.m_utils.isTouchDeviceNotIOS()&&this.isFetchComplete()&&this._checkScrollPosition()},M.prototype._scrollTransitionEnd=function(){this._isSelectionEnabled()&&this._scrollTouchSelectionAffordance(),this.fireEvent("scroll",{event:null,ui:{scrollX:this.m_currentScrollLeft,scrollY:this.m_currentScrollTop}}),this._shouldLongScroll(this.m_currentScrollLeft,this.m_currentScrollTop)?this.handleLongScroll(this.m_currentScrollLeft,this.m_currentScrollTop):this.fillViewport(),this._checkScroll=!0,this.isFetchComplete()&&this._checkScrollPosition()},M.prototype._bounceBack=function(){var e=this.m_currentScrollLeft,t=this.m_currentScrollTop,i=this.m_databody.firstChild,s=this.m_colHeader.firstChild,n=this.m_rowHeader.firstChild,o=this.m_colEndHeader.firstChild,l=this.m_rowEndHeader.firstChild;i.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",n.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",l.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",s.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",o.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",null==this.m_scrollTransitionEnd&&(this.m_scrollTransitionEnd=this._scrollTransitionEnd.bind(this)),this._onTransitionEnd(i,this.m_scrollTransitionEnd,M.BOUNCE_ANIMATION_DURATION),this.getResources().isRTLMode()?(i.style.transform="translate3d("+e+"px, "+-t+"px, 0)",s.style.transform="translate3d("+e+"px, 0, 0)",o.style.transform="translate3d("+e+"px, 0, 0)"):(i.style.transform="translate3d("+-e+"px, "+-t+"px, 0)",s.style.transform="translate3d("+-e+"px, 0, 0)",o.style.transform="translate3d("+-e+"px, 0, 0)"),n.style.transform="translate3d(0, "+-t+"px, 0)",l.style.transform="translate3d(0, "+-t+"px, 0)",this.m_extraScrollOverX=null,this.m_extraScrollOverY=null},M.prototype._syncScroller=function(){var e=this.m_currentScrollLeft,t=this.m_currentScrollTop,i=this.m_databody.firstChild,s=this.m_colHeader.firstChild,n=this.m_rowHeader.firstChild,o=this.m_colEndHeader.firstChild,l=this.m_rowEndHeader.firstChild;if(this.m_utils.isTouchDeviceNotIOS()&&Object.prototype.hasOwnProperty.call(window,"WebKitCSSMatrix"))this._checkScroll=!1,null!=this.m_extraScrollOverX||null!=this.m_extraScrollOverY?(null!=this.m_extraScrollOverX?e+=this.m_extraScrollOverX:t+=this.m_extraScrollOverY,null==this.m_bounceBack&&(this.m_bounceBack=this._bounceBack.bind(this)),this._onTransitionEnd(i,this.m_bounceBack,500)):"0ms"===i.style.transitionDuration?this._scrollTransitionEnd():(null==this.m_scrollTransitionEnd&&(this.m_scrollTransitionEnd=this._scrollTransitionEnd.bind(this)),this._onTransitionEnd(i,this.m_scrollTransitionEnd,i.style.transitionDuration)),this.getResources().isRTLMode()?(i.style.transform="translate3d("+e+"px, "+-t+"px, 0)",s.style.transform="translate3d("+e+"px, 0, 0)",o.style.transform="translate3d("+e+"px, 0, 0)"):(i.style.transform="translate3d("+-e+"px, "+-t+"px, 0)",s.style.transform="translate3d("+-e+"px, 0, 0)",o.style.transform="translate3d("+-e+"px, 0, 0)"),n.style.transform="translate3d(0, "+-t+"px, 0)",l.style.transform="translate3d(0, "+-t+"px, 0)";else{var r=this.getResources().isRTLMode()?"right":"left";this.setElementDir(s,-e,r),this.setElementDir(o,-e,r),this.setElementDir(n,-t,"top"),this.setElementDir(l,-t,"top")}},M.prototype._adjustScrollerSize=function(){var e=this.m_databody.firstChild,t=this.getElementHeight(e),i=this.getElementWidth(e);(this._getMaxBottomPixel()>t||this.getDataSource().getCount("row")===this._getMaxBottom()+1&&!this._isCountUnknown("row")&&this._getMaxBottom()>-1)&&this.setElementHeight(e,this._getMaxBottomPixel()),(this._getMaxRightPixel()>i||this.getDataSource().getCount("column")===this._getMaxRight()+1&&!this._isCountUnknown("column")&&this._getMaxRight()>-1)&&this.setElementWidth(e,this._getMaxRightPixel())},M.prototype._getLongScrollStart=function(e,t,i){var s,n,o,l,r,a,h,d;if(t!==e){"row"===i?(s=this.getElementHeight(this.m_databody.firstChild),n=this.m_utils._getMaxDivHeightForScrolling(),o=this._getMaxScrollHeight(),l=this.m_avgRowHeight,r=this.m_hasHorizontalScroller?this.m_utils.getScrollbarSize():0,d=Math.max(Math.max(this.getDataSource().getCount(i),this.m_endRow),0)):"column"===i&&(s=this.getElementWidth(this.m_databody.firstChild),n=this.m_utils._getMaxDivWidthForScrolling(),o=this._getMaxScrollWidth(),l=this.m_avgColWidth,r=this.m_hasVerticalScroller?this.m_utils.getScrollbarSize():0,d=Math.max(Math.max(this.getDataSource().getCount(i),this.m_endCol),0));var c=Math.max(Math.min(e/s,1),0),m=this.getFetchSize(i);a=Math.floor(d*c),h=n<=s?Math.min(e,o):a*l,(1===c||e+m*l>s-r)&&(a=Math.max(d-m,0),h=Math.max(s-m*l,0))}else"row"===i?(a=this.m_startRow,h=this.m_startRowPixel):"column"===i&&(a=this.m_startCol,h=this.m_startColPixel);return{start:a,startPixel:h}},M.prototype.handleLongScroll=function(e,t){if(this.m_isLongScroll=!0,this.isFetchComplete()&&this._isScrollBackToEditable(!0)){var i=this._getLongScrollStart(t,this.m_prevScrollTop,"row"),s=i.start,n=i.startPixel,o=this._getLongScrollStart(e,this.m_prevScrollLeft,"column"),l=o.start,r=o.startPixel;this.m_hasCells&&(this.m_startRow=s,this.m_endRow=-1,this.m_startRowPixel=n,this.m_endRowPixel=n,this.m_startCol=l,this.m_endCol=-1,this.m_startColPixel=r,this.m_endColPixel=r),this.m_hasRowHeader&&(this.m_startRowHeader=s,this.m_endRowHeader=-1,this.m_startRowHeaderPixel=n,this.m_endRowHeaderPixel=n),this.m_hasRowEndHeader&&(this.m_startRowEndHeader=s,this.m_endRowEndHeader=-1,this.m_startRowEndHeaderPixel=n,this.m_endRowEndHeaderPixel=n),this.m_hasColHeader&&(this.m_startColHeader=l,this.m_endColHeader=-1,this.m_startColHeaderPixel=r,this.m_endColHeaderPixel=r),this.m_hasColEndHeader&&(this.m_startColEndHeader=l,this.m_endColEndHeader=-1,this.m_startColEndHeaderPixel=r,this.m_endColEndHeaderPixel=r),this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1,this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1,this.fetchHeaders("row",s,this.m_rowHeader,this.m_rowEndHeader,void 0,{success:function(e,t,i){this.handleRowHeadersFetchSuccessForLongScroll(e,t,i)}}),this.fetchHeaders("column",l,this.m_colHeader,this.m_colEndHeader,void 0,{success:function(e,t,i){this.handleColumnHeadersFetchSuccessForLongScroll(e,t,i)}}),this.fetchCells(this.m_databody,s,l,null,null,{success:function(e,t){this.handleCellsFetchSuccessForLongScroll(e,t,s,l,n,r)}})}},M.prototype.handleRowHeadersFetchSuccessForLongScroll=function(e,t,i){var s=this.m_rowHeader.firstChild,n=this.m_rowEndHeader.firstChild;null!=s&&this.m_utils.empty(s),null!=n&&this.m_utils.empty(n),this.handleHeadersFetchSuccess(e,t,i,!1)},M.prototype.handleColumnHeadersFetchSuccessForLongScroll=function(e,t,i){var s=this.m_colHeader.firstChild,n=this.m_colEndHeader.firstChild;null!=s&&this.m_utils.empty(s),null!=n&&this.m_utils.empty(n),this.handleHeadersFetchSuccess(e,t,i,!1)},M.prototype.handleCellsFetchSuccessForLongScroll=function(e,t,i,s,n,o){var l=this.m_databody.firstChild;null!=l&&this._emptyDatabody(l),this.handleCellsFetchSuccess(e,t)},M.prototype._cleanupViewport=function(e){if(!this._isHighWatermarkScrolling()&&this._isScrollBackToEditable()){null==e&&(this.m_prevScrollLeft>this.m_currentScrollLeft?e="right":this.m_prevScrollLeft<this.m_currentScrollLeft?e="left":this.m_prevScrollTop>this.m_currentScrollTop?e="bottom":this.m_prevScrollTop<this.m_currentScrollTop&&(e="top"));var t=this._getViewportLeft(),i=this._getViewportRight(),s=this._getViewportTop(),n=this._getViewportBottom();"top"===e&&s>this._getMaxTopPixel()?(this.removeRowsFromTop(this.m_databody),this.removeRowHeadersFromTop()):"bottom"===e&&n<this._getMaxBottomPixel()?(this.removeRowsFromBottom(this.m_databody),this.removeRowHeadersFromBottom()):"left"===e&&t>this._getMaxLeftPixel()?(this.removeColumnsFromLeft(this.m_databody),this.removeColumnHeadersFromLeft()):"right"===e&&i<this._getMaxRightPixel()&&(this.removeColumnsFromRight(this.m_databody),this.removeColumnHeadersFromRight())}},M.prototype.fillViewport=function(){var e,t;if(this.isFetchComplete()){var i=this._getViewportLeft(),s=this._getViewportRight()+M.FETCH_PIXEL_THRESHOLD,n=this._getViewportTop(),o=this._getViewportBottom()+M.FETCH_PIXEL_THRESHOLD;if(this._getMaxBottomPixel()<=o&&(!this.m_stopRowHeaderFetch||!this.m_stopRowEndHeaderFetch||!this.m_stopRowFetch))return e=Math.max(0,this._getMaxBottom()+1),t=Math.max(0,this.getFetchCount("row",e)),this.fetchHeaders("row",e,this.m_rowHeader,this.m_rowEndHeader,t),void this.fetchCells(this.m_databody,e,this.m_startCol,t,this.m_endCol-this.m_startCol+1);if((this._getMaxTopPixel()>n||0===this.m_currentScrollTop)&&this._getMaxTop()>0)return e=Math.max(0,this._getMaxTop()-this.getFetchSize("row")),t=Math.max(0,this._getMaxTop()-e),this.fetchHeaders("row",e,this.m_rowHeader,this.m_rowEndHeader,t),void this.fetchCells(this.m_databody,e,this.m_startCol,t,this.m_endCol-this.m_startCol+1);if(this._getMaxRightPixel()<=s&&(!this.m_stopColumnHeaderFetch||!this.m_stopColumnEndHeaderFetch||!this.m_stopColumnFetch))return e=Math.max(0,this._getMaxRight()+1),t=Math.max(0,this.getFetchCount("column",e)),this.fetchHeaders("column",e,this.m_colHeader,this.m_colEndHeader,t),void this.fetchCells(this.m_databody,this.m_startRow,e,this.m_endRow-this.m_startRow+1,t);(this._getMaxLeftPixel()>i||0===this.m_currentScrollLeft)&&this._getMaxLeft()>0&&(e=Math.max(0,this._getMaxLeft()-this.getFetchSize("column")),t=Math.max(0,this._getMaxLeft()-e),this.fetchHeaders("column",e,this.m_colHeader,this.m_colEndHeader,t),this.fetchCells(this.m_databody,this.m_startRow,e,this.m_endRow-this.m_startRow+1,t))}},M.prototype._getMaxRight=function(){return Math.max(Math.max(this.m_endCol,this.m_endColHeader),this.m_endColEndHeader)},M.prototype._getMaxLeft=function(){return Math.max(Math.max(this.m_startCol,this.m_startColHeader),this.m_startColEndHeader)},M.prototype._getMaxRightPixel=function(){return Math.max(Math.max(this.m_endColPixel,this.m_endColHeaderPixel),this.m_endColEndHeaderPixel)},M.prototype._getMaxLeftPixel=function(){return Math.max(Math.max(this.m_startColPixel,this.m_startColHeaderPixel),this.m_startColEndHeaderPixel)},M.prototype._getMaxBottom=function(){return Math.max(Math.max(this.m_endRow,this.m_endRowHeader),this.m_endRowEndHeader)},M.prototype._getMaxTop=function(){return Math.max(Math.max(this.m_startRow,this.m_startRowHeader),this.m_startRowEndHeader)},M.prototype._getMaxBottomPixel=function(){return Math.max(Math.max(this.m_endRowPixel,this.m_endRowHeaderPixel),this.m_endRowEndHeaderPixel)},M.prototype._getMaxTopPixel=function(){return Math.max(Math.max(this.m_startRowPixel,this.m_startRowHeaderPixel),this.m_startRowEndHeaderPixel)},M.prototype._isScrollBackToEditable=function(e){var t=this._getCurrentMode(),i=this._getActiveElement();return"edit"!==t||!e&&!this._isCellGoingToBeRemoved(i)||this._handleExitEdit(null,i)},M.prototype._isCellGoingToBeRemoved=function(e){if(!this._isHighWatermarkScrolling()){if(this.m_endRow-this.m_startRow>this.MAX_ROW_THRESHOLD){var t=this.getElementDir(e.parentNode,"top");if(t+this.getElementHeight(e)<this.m_currentScrollTop||t<this.m_currentScrollTop+this.getViewportHeight())return!0}if(this.m_endCol-this.m_startCol>this.MAX_COLUMN_THRESHOLD){var i=this.getElementDir(e,"left");if(i+this.getElementWidth(e)<this.m_currentScrollLeft||i<this.m_currentScrollLeft+this.getViewportHeight())return!0}}},M.prototype._removeCellsAlongAxis=function(e,t,i){var s,n,o,l,r,a,h,d,c,m,u,_,p,g,f=0,C=0;for("row"===e?(n=this.m_startRow,o=this.m_endRow,l=this.m_rowHeader,r=this.m_rowHeaderLevelCount,a=this.m_startRowHeader,h="height",d=this.m_startRowPixel,c=this.m_endRowPixel,m=this.m_currentScrollTop,u="column",_=this.m_startCol,p=this.m_endCol,g="top",s=i?o:n):(n=this.m_startCol,o=this.m_endCol,l=this.m_colHeader,r=this.m_columnHeaderLevelCount,a=this.m_startColHeader,h="width",d=this.m_startColPixel,c=this.m_endColPixel,m=this.m_currentScrollLeft,u="row",_=this.m_startRow,p=this.m_endRow,g=this.getResources().isRTLMode()?"right":"left",s=i?o:n);s<=o&&s>=n;){var y=this._getKey(this._getHeaderByIndex(s,r-1,l,r,a),e);null==y&&(y=this._getKey(this._getCellByIndex("column"===e?this.createIndex(this.m_startRow,s):this.createIndex(s,this.m_startCol)),e));var v=this._getCellDimension(null,s,y,e,h);if(!(i?c-v-f>t:d+v+f<m-t))break;for(var E,w=_;w<=p;w+=E){var S=this._getCellByIndex("column"===e?this.createIndex(w,s):this.createIndex(s,w)),H=S[this.getResources().getMappedAttribute("context")],x=H.extents[e];E=H.extents[u],1===x?this._remove(S):(H.extents[e]-=1,this.setElementDir(S,this.getElementDir(S,h)-v,h),i||(H.indexes[e]+=1,this.setElementDir(S,this.getElementDir(S,g)+v,g)));for(var b=0;b<E;b++){var R="column"===e?this.createIndex(w+b,s):this.createIndex(s,w+b);this._removeIndexFromDatabodyMap(R)}}f+=v,C+=1,s=i?s-1:s+1}return{dimensionChange:f,extentChange:C}},M.prototype.removeHeadersFromStartOfContainer=function(e,t,i,s,n,o,l,r){var a=0,h=0,d=null==t?e.firstChild:t.nextSibling;if(null==d)return{extentChange:0,dimensionChange:0};for(var c=this.m_utils.containsCSSClassName(d,n),m=c?d:d.firstChild,u=this.getElementDir(m,o);i+u<r-s;){if(this._remove(d),h+=u,a+=c?1:this._getAttribute(d,"extent",!0),i+=u,null==(d=null==t?e.firstChild:t.nextSibling))return{extentChange:a,dimensionChange:h};m=(c=this.m_utils.containsCSSClassName(d,n))?d:d.firstChild,u=this.getElementDir(m,o)}if(!c){var _=this.removeHeadersFromStartOfContainer(d,d.firstChild,i,s,n,o,l,r);this._setAttribute(d,"start",this._getAttribute(d,"start",!0)+_.extentChange),this._setAttribute(d,"extent",this._getAttribute(d,"extent",!0)-_.extentChange),this.setElementDir(m,this.getElementDir(m,l)+_.dimensionChange,l),this.setElementDir(m,this.getElementDir(m,o)-_.dimensionChange,o),a+=_.extentChange,h+=_.dimensionChange}return{extentChange:a,dimensionChange:h}},M.prototype.removeHeadersFromEndOfContainer=function(e,t,i,s,n){for(var o=0,l=0,r=e.lastChild,a=this.m_utils.containsCSSClassName(r,s),h=a?r:r.firstChild,d=this.getElementDir(h,n);t-d>i;)this._remove(r),l+=d,o+=a?1:this._getAttribute(r,"extent",!0),t-=d,r=e.lastChild,h=(a=this.m_utils.containsCSSClassName(r,s))?r:r.firstChild,d=this.getElementDir(h,n);if(!a){var c=this.removeHeadersFromEndOfContainer(r,t,i,s,n);this._setAttribute(r,"extent",this._getAttribute(r,"extent",!0)-c.extentChange),this.setElementDir(h,this.getElementDir(h,n)-c.dimensionChange,n),o+=c.extentChange,l+=c.dimensionChange}return{extentChange:o,dimensionChange:l}},M.prototype.removeColumnHeadersFromLeft=function(){var e,t;if(this.m_endColHeader-this.m_startColHeader>this.MAX_COLUMN_THRESHOLD){var i=this.m_colHeader.firstChild;e=this.getColumnThreshold(),this.m_startColHeaderPixel<=this.m_currentScrollLeft-e&&(t=this.removeHeadersFromStartOfContainer(i,null,this.m_startColHeaderPixel,e,this.getMappedStyle("colheadercell"),"width",this.getResources().isRTLMode()?"right":"left",this.m_currentScrollLeft),this.m_startColHeaderPixel+=t.dimensionChange,this.m_startColHeader+=t.extentChange)}if(this.m_endColEndHeader-this.m_startColEndHeader>this.MAX_COLUMN_THRESHOLD){var s=this.m_colEndHeader.firstChild;e=this.getColumnThreshold(),this.m_startColEndHeaderPixel<this.m_currentScrollLeft-e&&(t=this.removeHeadersFromStartOfContainer(s,null,this.m_startColEndHeaderPixel,e,this.getMappedStyle("colendheadercell"),"width",this.getResources().isRTLMode()?"right":"left",this.m_currentScrollLeft),this.m_startColEndHeaderPixel+=t.dimensionChange,this.m_startColEndHeader+=t.extentChange)}},M.prototype.removeColumnsFromLeft=function(e){if(this.m_endCol-this.m_startCol>this.MAX_COLUMN_THRESHOLD){var t=e.firstChild.childNodes,i=this.getColumnThreshold();if(t.length<1)return;var s=this._removeCellsAlongAxis("column",i,!1);this.m_startColPixel+=s.dimensionChange,this.m_startCol+=s.extentChange}},M.prototype.removeColumnHeadersFromRight=function(){var e,t,i=this.m_currentScrollLeft+this.getViewportWidth()+this.getColumnThreshold();this.m_endColHeader-this.m_startColHeader>this.MAX_COLUMN_THRESHOLD&&(e=this.m_colHeader.firstChild,this.m_endColHeaderPixel>i&&(this.m_stopColumnHeaderFetch&&(this.m_stopColumnHeaderFetch=!1),t=this.removeHeadersFromEndOfContainer(e,this.m_endColHeaderPixel,i,this.getMappedStyle("colheadercell"),"width"),this.m_endColHeaderPixel-=t.dimensionChange,this.m_endColHeader-=t.extentChange)),this.m_endColEndHeader-this.m_startColEndHeader>this.MAX_COLUMN_THRESHOLD&&(e=this.m_colEndHeader.firstChild,this.m_endColEndHeaderPixel>i&&(this.m_stopColumnEndHeaderFetch&&(this.m_stopColumnEndHeaderFetch=!1),t=this.removeHeadersFromEndOfContainer(e,this.m_endColEndHeaderPixel,i,this.getMappedStyle("colendheadercell"),"width"),this.m_endColEndHeaderPixel-=t.dimensionChange,this.m_endColEndHeader-=t.extentChange))},M.prototype.removeColumnsFromRight=function(e){if(this.m_endCol-this.m_startCol>this.MAX_COLUMN_THRESHOLD){var t=e.firstChild.childNodes,i=this.m_currentScrollLeft+this.getViewportWidth()+this.getColumnThreshold();if(this.m_endColPixel<=i||t.length<1)return;this.m_stopColumnFetch&&(this.m_stopColumnFetch=!1);var s=this._removeCellsAlongAxis("column",i,!0);this.m_endColPixel-=s.dimensionChange,this.m_endCol-=s.extentChange}},M.prototype.removeRowHeadersFromTop=function(){var e,t;if(this.m_endRowHeader-this.m_startRowHeader>this.MAX_ROW_THRESHOLD){var i=this.m_rowHeader.firstChild;t=this.getRowThreshold(),this.m_startRowHeaderPixel>=this.m_currentScrollTop-t||(e=this.removeHeadersFromStartOfContainer(i,null,this.m_startRowHeaderPixel,t,this.getMappedStyle("rowheadercell"),"height","top",this.m_currentScrollTop),this.m_startRowHeaderPixel+=e.dimensionChange,this.m_startRowHeader+=e.extentChange)}if(this.m_endRowEndHeader-this.m_startRowEndHeader>this.MAX_ROW_THRESHOLD){var s=this.m_rowEndHeader.firstChild;t=this.getRowThreshold(),this.m_startRowEndHeaderPixel>=this.m_currentScrollTop-t||(e=this.removeHeadersFromStartOfContainer(s,null,this.m_startRowEndHeaderPixel,t,this.getMappedStyle("rowendheadercell"),"height","top",this.m_currentScrollTop),this.m_startRowEndHeaderPixel+=e.dimensionChange,this.m_startRowEndHeader+=e.extentChange)}},M.prototype.removeRowsFromTop=function(e){if(this.m_endRow-this.m_startRow>this.MAX_ROW_THRESHOLD){var t=this.getRowThreshold();if(this.m_startRowPixel>=this.m_currentScrollTop-t)return;var i=this._removeCellsAlongAxis("row",t,!1);this.m_startRowPixel+=i.dimensionChange,this.m_startRow+=i.extentChange}},M.prototype.removeRowHeadersFromBottom=function(){var e,t=this.m_currentScrollTop+this.getViewportHeight()+this.getRowThreshold();if(this.m_endRowHeader-this.m_startRowHeader>this.MAX_ROW_THRESHOLD){var i=this.m_rowHeader.firstChild;this.m_endRowHeaderPixel<=t||(this.m_stopRowHeaderFetch&&(this.m_stopRowHeaderFetch=!1),e=this.removeHeadersFromEndOfContainer(i,this.m_endRowHeaderPixel,t,this.getMappedStyle("rowheadercell"),"height"),this.m_endRowHeaderPixel-=e.dimensionChange,this.m_endRowHeader-=e.extentChange)}if(this.m_endRowEndHeader-this.m_startRowEndHeader>this.MAX_ROW_THRESHOLD){var s=this.m_rowEndHeader.firstChild;this.m_endRowEndHeaderPixel<=t||(this.m_stopRowEndHeaderFetch&&(this.m_stopRowEndHeaderFetch=!1),e=this.removeHeadersFromEndOfContainer(s,this.m_endRowEndHeaderPixel,t,this.getMappedStyle("rowendheadercell"),"height"),this.m_endRowEndHeaderPixel-=e.dimensionChange,this.m_endRowEndHeader-=e.extentChange)}},M.prototype.removeRowsFromBottom=function(e){if(this.m_endRow-this.m_startRow>this.MAX_ROW_THRESHOLD){var t=this.m_currentScrollTop+this.getViewportHeight()+this.getRowThreshold();if(this.m_endRowPixel<=t)return;this.m_stopRowFetch&&(this.m_stopRowFetch=!1);var i=this._removeCellsAlongAxis("row",t,!0);this.m_endRowPixel-=i.dimensionChange,this.m_endRow-=i.extentChange}},M.prototype.handleContextMenuGesture=function(e,t,i){var s,n,o,l,r=e.originalEvent.target,a=this.findCell(r),h=!1;if(null===a&&(a=this.findHeader(r))&&(h=!0,l=this.getHeaderCellAxis(a)),"touch"===t&&null!=a){s=h?this.getHeaderCellIndex(a):this.getCellIndexes(a);let t=h?this._isHeaderInsideSelection(s,l):this._isContainSelection(s);(!this.isMultipleSelection()||!t||this._isDatabodyCellActive()&&s.row!==this.m_active.indexes.row&&s.column!==this.m_active.indexes.column)&&(this._isSelectionEnabled()?this.handleDatabodyClickSelection(e.originalEvent):this.handleDatabodyClickActive(e.originalEvent))}if(!this.m_utils._isNodeEditableOrClickable(r,this.m_root)){if(null==a||h)if(null==(a=this.findHeader(r)||this.findLabel(r))){var d="disable";n={resize:d,resizeWidth:d,resizeHeight:d,sortRow:d,sortCol:d,cut:d,paste:d,sortColAsc:d,sortColDsc:d,sortRowAsc:d,sortRowDsc:d},o=a}else(n=this._getHeaderCapability(a)).resizeFitToContent=h?"enable":"disable","column"!==l&&"columnEnd"!==l||!this.m_selectionFrontier||"column"!==this.m_selectionFrontier.axis?"row"!==l&&"rowEnd"!==l||!this.m_selectionFrontier||"row"!==this.m_selectionFrontier.axis||(n.resizeWidth="disable"):n.resizeHeight="disable",o=a;else s=this.getCellIndexes(a),this.isMultipleSelection()&&this._isContainSelection(s)?(o=this._getActiveElement(),this._isDatabodyCellActive()?(null==o&&(o=a),(n="keyboard"===t?this._getCellCapability(o):this._getCellCapability(o,a)).resizeFitToContent="disable"):(n=this._getHeaderCapability(o,a)).resizeFitToContent="enable"):(o=a,(n=this._getCellCapability(o)).resizeFitToContent="disable"),this.m_selectionFrontier&&"row"===this.m_selectionFrontier.axis?n.resizeWidth="disable":this.m_selectionFrontier&&"column"===this.m_selectionFrontier.axis&&(n.resizeHeight="disable");i.call(null,{capabilities:n,launcher:o},e,t)}},M.prototype._getCellCapability=function(e,t){var i=!0,s=!0,n="disable",o="enable",l={resize:n,resizeWidth:n,resizeHeight:n,sortRow:n,sortCol:n,cut:n,cutCells:n,copyCells:n,paste:n,pasteCells:n,fill:n,sortColAsc:n,sortColDsc:n,sortRowAsc:n,sortRowDsc:n};if(null!=t&&(i=this._getIndex(e,"column")===this._getIndex(t,"column"),!1===(s=this._getKey(e,"row")===this._getKey(t,"row"))&&!1===i))return l;this.m_options.isCopyEnabled()&&(l.copyCells=o),this.m_options.isCutEnabled()&&(l.cutCells=o),this.m_options.isPasteEnabled()&&(l.pasteCells=o),this.m_options.isFloodFillEnabled()&&(l.fill=o);var r=this.getHeaderFromCell(e,"row"),a=this.getHeaderFromCell(e,"column"),h=this.getResources().getMappedAttribute("resizable"),d=this.getResources().getMappedAttribute("sortable");if(null!=a&&i&&("true"===a.getAttribute(h)&&(l.resize=o,l.resizeWidth=o),"true"===a.getAttribute(d))){l.sortCol=o,l.sortColAsc=o,l.sortColDsc=o;var c=a.getAttribute(this.getResources().getMappedAttribute("sortDir"));"ascending"===c?l.sortColAsc=n:"descending"===c&&(l.sortColDsc=n)}return null!=r&&s&&(this._isMoveEnabled("row")&&(l.cut=o,l.paste=o),"true"===r.getAttribute(d)&&(l.sortRow=o,l.sortRowAsc=o,l.sortRowDsc=o),null!=r&&("true"===r.getAttribute(h)&&(l.resize=o,l.resizeHeight=o),"true"===r.getAttribute(d)&&(l.sortRow=o))),l},M.prototype._getHeaderCapability=function(e,t){var i=!0,s=!0,n="disable",o="enable",l={resize:n,resizeWidth:n,resizeHeight:n,sortRow:n,sortCol:n,cut:n,paste:n,sortColAsc:n,sortColDsc:n,sortRowAsc:n,sortRowDsc:n};if(null!=t&&(i=this.getHeaderCellIndex(e)===this._getIndex(t,"column"),!1===(s=this._getKey(e,"row")===this._getKey(t,"row"))&&!1===i))return l;var r=this.getHeaderCellAxis(e),a=this.getResources().getMappedAttribute("resizable"),h=this.getResources().getMappedAttribute("sortable");if(null!==e)if("column"!==r&&"columnEnd"!==r||!i){if(s&&(this._isMoveEnabled("row")&&(l.cut=o,l.paste=o),"true"===e.getAttribute(a)&&(l.resize=o,l.resizeHeight=o),l.resizeWidth=this.m_options.isResizable(r,"width"),"true"===e.getAttribute(h))){l.sortRow=o,l.sortRowAsc=o,l.sortRowDsc=o;let t=e.getAttribute(this.getResources().getMappedAttribute("sortDir"));"ascending"===t?l.sortRowAsc=n:"descending"===t&&(l.sortRowDsc=n)}}else if("true"===e.getAttribute(a)&&(l.resizeWidth=o,l.resize=o),l.resizeHeight=this.m_options.isResizable(r,"height"),"true"===e.getAttribute(h)){l.sortCol=o,l.sortColAsc=o,l.sortColDsc=o;var d=e.getAttribute(this.getResources().getMappedAttribute("sortDir"));"ascending"===d?l.sortColAsc=n:"descending"===d&&(l.sortColDsc=n)}return l.resize=l.resizeHeight===o||l.resizeWidth===o?o:n,l},M.prototype.handleContextMenuReturn=function(e,t,i){var s,n;if(null!=this.m_active&&(s=this._getActiveElement()),t===this.m_resources.getMappedCommand("resizeHeight")||t===this.m_resources.getMappedCommand("resizeWidth"))this.isResizeEnabled()&&this.handleContextMenuResize(e,t,i,s);else if(t===this.m_resources.getMappedCommand("resizeFitToContent")){let t,i=this.findCell(e.target);i&&(t=this.getHeaderFromCell(i,this.m_selectionFrontier.axis)),t||(t=this.findHeader(e.target)),t||(t=this.findLabel(e.target)),t&&(this.m_resizingElement=t);const s=this.getHeaderCellAxis(this.m_resizingElement),n=this.getHeaderCellLevel(this.m_resizingElement);let o=!1;("row"!==s&&"rowEnd"!==s||n!==this.m_rowHeaderLevelCount-1)&&("column"!==s&&"columnEnd"!==s||n!==this.m_columnHeaderLevelCount-1)||(o=!0),o&&this.isResizeEnabled()&&this._getHeadersForResizeFitToContent(e)}else t===this.m_resources.getMappedCommand("sortColAsc")||t===this.m_resources.getMappedCommand("sortColDsc")?(n=t===this.m_resources.getMappedCommand("sortColAsc")?"ascending":"descending",this.m_utils.containsCSSClassName(s,this.getMappedStyle("cell"))&&(s=this.getHeaderFromCell(s,"column")),this._isDOMElementSortable(s)&&this._handleCellSort(e,n,s)):t===this.m_resources.getMappedCommand("sortRowAsc")||t===this.m_resources.getMappedCommand("sortRowDsc")?(n=t===this.m_resources.getMappedCommand("sortRowAsc")?"ascending":"descending",this.m_utils.containsCSSClassName(s,this.getMappedStyle("cell"))&&(s=this.getHeaderFromCell(s,"row")),this._isDOMElementSortable(s)&&this._handleCellSort(e,n,s)):t===this.m_resources.getMappedCommand("cut")?this._handleCut(e,s):t===this.m_resources.getMappedCommand("paste")?this._handlePaste(e,s):t===this.m_resources.getMappedCommand("cutCells")?this._handleCutCells(e,s):t===this.m_resources.getMappedCommand("copyCells")?this._handleCopyCells(e,s):t===this.m_resources.getMappedCommand("pasteCells")?this._handlePasteCells(e,s):t===this.m_resources.getMappedCommand("autoFill")?this._handleAutofill(e,s):t===this.m_resources.getMappedCommand("discontiguousSelection")&&this.setDiscontiguousSelectionMode(i)},M.prototype._isSortEnabled=function(e,t){var i=this.getDataSource().getCapability("sort"),s=this.m_options.isSortable(e,t);return!("enable"!==s&&"auto"!==s||"full"!==i&&i!==e)&&(!this._isDataGridProvider()||null!=t.metadata.sortDirection)},M.prototype._isParentNode=function(e){return!!this._isDataGridProvider()&&(e.metadata.expanded&&null!==e.metadata.expanded)},M.prototype._isRequired=function(e){return!!this._isDataGridProvider()&&!0===e.metadata.showRequired},M.prototype._isHierarchicalGroup=function(e){return null==e.metadata.treeDepth},M.prototype._isLeafNode=function(e){if(!e.metadata)return!1;const t=e.metadata.treeDepth;return!!this._isDataGridProvider()&&(null!=t&&0!==t)},M.prototype._isDOMElementSortable=function(e){if(null==e)return!1;var t=this.findHeader(e);return null!=t&&"true"===t.getAttribute(this.getResources().getMappedAttribute("sortable"))},M.prototype._isSelectionEnabled=function(){return"none"!==this.m_options.getSelectionCardinality()},M.prototype.isMultipleSelection=function(){return"multiple"===this.m_options.getSelectionCardinality()},M.prototype.isResizeEnabled=function(){return this.m_options.isResizable("row","width")||this.m_options.isResizable("row","height")||this.m_options.isResizable("column","width")||this.m_options.isResizable("column","height")||this.m_options.isResizable("rowEnd","width")||this.m_options.isResizable("rowEnd","height")||this.m_options.isResizable("columnEnd","width")||this.m_options.isResizable("columnEnd","height")},M.prototype._isHeaderResizeEnabled=function(e,t){return"column"===e||"columnEnd"===e?"enable"===this.m_options.isResizable(e,"width",t):("row"===e||"rowEnd"===e)&&"enable"===this.m_options.isResizable(e,"height",t)},M.prototype.handleMouseMove=function(e){this.isResizeEnabled()&&!1===this.m_databodyDragState&&this.handleResize(e)},M.prototype.handleRowHeaderMouseMove=function(e){0===e.buttons&&this.handleMouseUp(e),this.m_databodyMove?this._handleMove(e):this.m_headerDragState&&(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&-1!==this.m_selectionFrontier.axis.indexOf("row")||this.m_deselectInfo&&this.m_deselectInfo.axis&&-1!==this.m_deselectInfo.axis.indexOf("row"))?this.extendSelectionHeader(e.target,e,!0,this.m_deselectInProgress):this.m_isResizing||this.handleMouseMove(e)},M.prototype.handleColumnHeaderMouseMove=function(e){0===e.buttons&&this.handleMouseUp(e),this.m_headerDragState&&(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&-1!==this.m_selectionFrontier.axis.indexOf("column")||this.m_deselectInfo&&this.m_deselectInfo.axis&&-1!==this.m_deselectInfo.axis.indexOf("column"))?this.extendSelectionHeader(e.target,e,!0,this.m_deselectInProgress):this.m_isResizing||this.handleMouseMove(e)},M.prototype.handleHeaderLabelMouseMove=function(e){this.m_isResizing||this.handleMouseMove(e)},M.prototype.handleHeaderMouseDown=function(e){var t;this._exitActionableMode();var i=e.target;if(this._isEditOrEnter()){var s=this._getActiveElement();if(!1===this._leaveEditing(e,s,!1))return}if(!this._isDisclosureIcon(i)){if(0===e.button){if((this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortascending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdescending")))&&this._isDOMElementSortable(i))return e.preventDefault(),void this._handleSortIconMouseDown(i);if(this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortIcon"))&&this._isDOMElementSortable(i.lastChild))return e.preventDefault(),void this._handleSortIconMouseDown(i.lastChild);this.isResizeEnabled()&&(t=this.handleResizeMouseDown(e),this._highlightResizeMouseDown());var n=this.m_utils.ctrlEquivalent(e);this.m_isResizing||n||!this._isMoveOnElementEnabled(this.findHeader(i))||(this.m_databodyMove=!0,this.m_currentX=e.pageX,this.m_currentY=e.pageY,t=!0)}if(!this.m_isResizing&&"default"===this.manageHeaderCursor(e,!1)){this.m_root.contains(document.activeElement)&&document.activeElement!==this.m_root||(this.m_externalFocus=!0);var o=this.m_options.getSelectionMode(),l=this.findHeader(i)[this.getResources().getMappedAttribute("context")];if(!this._isSelectionEnabled()||!this.isMultipleSelection()||"row"===o&&-1===l.axis.indexOf("row")||this.m_databodyMove)if("row"===o&&-1!==l.axis.indexOf("row")&&this._isSelectionEnabled())this.handleHeaderClickSelection(e);else if("row"===o&&-1!==l.axis.indexOf("column")&&this._isSelectionEnabled()){let t=!1;e.shiftKey||(t=!0),this.handleHeaderClickActive(e,t)}else this.handleHeaderClickActive(e);else 0===e.button&&(this.m_headerDragState=!0),this.handleHeaderClickSelection(e)}this.m_options.isFloodFillEnabled()&&this.m_bottomFloodFillIconContainer&&this.m_bottomFloodFillIconContainer.parentNode&&(this.m_bottomFloodFillIconContainer.parentNode.removeChild(this.m_bottomFloodFillIconContainer),this.m_bottomFloodFillIconContainer.removeEventListener("mouseover",this.handleDatabodyMouseMove)),!0===t&&e.preventDefault()}},M.prototype.handleHeaderLabelMouseDown=function(e){var t;this.isResizeEnabled()&&(t=this.handleResizeMouseDown(e),this._highlightResizeMouseDown()),!0===t&&e.preventDefault()},M.prototype.handleMouseUp=function(e){this.m_headerDragState=!1,this.m_databodyDragState=!1,this.m_deselectInProgress=!1,this.m_databodyMove?this._handleMoveMouseUp(e,!1):this.isResizeEnabled()&&this.handleResizeMouseUp(e),this.m_databodyMove=!1},M.prototype.shouldHoverHeader=function(e){const t=null==e?null:this.getHeaderCellAxis(e),i="row"===t||"rowEnd"===t,s=this.m_options.getSelectionMode();return this._isSelectionEnabled()&&(this.isMultipleSelection()&&"cell"===s||"row"===s&&i)},M.prototype.handleHeaderMouseOver=function(e){var t=e.target,i=this.findHeader(t);!this.m_isResizing&&"default"===this.manageHeaderCursor(e,!1)&&this.shouldHoverHeader(i)&&this.m_utils.addCSSClassName(i,this.getMappedStyle("hover"))},M.prototype.handleHeaderMouseOut=function(e){var t=e.target;this.m_utils.removeCSSClassName(this.findHeader(t),this.getMappedStyle("hover")),!this.m_isResizing&&this.m_resizingElement&&(this.m_resizingElement.style.cursor="",null!=this.m_resizingElementSibling&&(this.m_resizingElementSibling.style.cursor="")),this._isDOMElementSortable(t)&&this._handleSortMouseOut(e)},M.prototype.handleHeaderMouseUp=function(e){this.handleDragAnchorChange(e),this.m_headerDragState=!1,this.m_databodyDragState=!1,this.m_deselectInProgress=!1,this.m_floodFillDragState&&(this.unhighlightFloodFillRange(),this.m_selectionRange=null,this.m_floodFillRange=null,this.m_floodFillDirection=null,this.m_databody.style.cursor="default",this.m_cursor="default"),this.m_databodyMove&&this._handleMoveMouseUp(e,!0)},M.prototype.handleCornerMouseDown=function(e){let t,i=e.target,s=this.m_utils.containsCSSClassName(i,this.getMappedStyle("rowendheaderlabel"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("columnendheaderlabel")),n=this.findLabel(i);null!=n&&(t=s,this._setActive(n,this._createActiveObject(n),e,t),this.handleHeaderLabelMouseDown(e))},M.prototype.handleCornerMouseOver=function(e){var t=e.target;this._isSelectionEnabled()&&this.isMultipleSelection()&&this.m_utils.addCSSClassName(this.findLabel(t),this.getMappedStyle("hover"));let i=this.findLabel(t);this.m_isResizing||null===i||this.handleMouseMove(e)},M.prototype.handleCornerMouseMove=function(e){var t=e.target;let i=this.findLabel(t);this.m_isResizing||null===i||this.handleMouseMove(e)},M.prototype.handleCornerMouseOut=function(e){var t=e.target;this.m_utils.removeCSSClassName(this.findLabel(t),this.getMappedStyle("hover"))},M.prototype.handleCornerClick=function(e){this._handleSelectAll(e)},M.prototype.handleHeaderClick=function(e){var t=e.target;(this.m_utils.containsCSSClassName(t,this.getMappedStyle("sortascending"))||this.m_utils.containsCSSClassName(t,this.getMappedStyle("sortdescending"))||this.m_utils.containsCSSClassName(t,this.getMappedStyle("sortdefault")))&&this._isDOMElementSortable(t)||this.m_utils.containsCSSClassName(t,this.getMappedStyle("sortIcon"))&&this._isDOMElementSortable(t.lastChild)?(this._removeTouchSelectionAffordance(),this._handleHeaderSort(e),e.preventDefault()):this._isDisclosureIcon(e.target)&&(this._removeTouchSelectionAffordance(),this._handleExpandCollapseRequest(e),e.preventDefault())},M.prototype.handleHeaderDoubleClick=function(e){if(this.m_cursor=this.manageHeaderCursor(e,!1),"col-resize"===this.m_cursor||"row-resize"===this.m_cursor){this.m_resizingElement||(this.m_resizingElement=this.findHeader(e.target));const t=this.getHeaderCellAxis(this.m_resizingElement),i=this.getHeaderCellLevel(this.m_resizingElement);let s=!1;("row"!==t&&"rowEnd"!==t||i!==this.m_rowHeaderLevelCount-1||"row-resize"!==this.m_cursor)&&("column"!==t&&"columnEnd"!==t||i!==this.m_columnHeaderLevelCount-1||"col-resize"!==this.m_cursor)||(s=!0),s&&this.isResizeEnabled()&&this._getHeadersForResizeFitToContent(e)}},M.prototype._getHeadersForResizeFitToContent=function(e){const t=this.getHeaderCellAxis(this.m_resizingElement),i=this.getHeaderCellIndex(this.m_resizingElement);let s=[];if(this._isSelectionEnabled()&&this.isMultipleSelection()&&this.m_selection.length){let e=this.m_selection[0];s=this._getHeadersWithinSelection(e,i,t)}s.length||s.push(this.m_resizingElement),s.forEach(i=>{this.handleResizeFitToContent(e,i,t)})},M.prototype._getHeadersWithinSelection=function(e,t,i){let s,n,o,l,r,a,h,d=[];if("column"===i?(s=this.m_startColHeader,n=this.m_columnHeaderLevelCount-1,o=this.m_columnHeaderLevelCount,l=this.m_colHeader,r="column"):"columnEnd"===i?(s=this.m_startColEndHeader,n=this.m_columnEndHeaderLevelCount-1,o=this.m_columnEndHeaderLevelCount,l=this.m_colEndHeader,r="column"):"row"===i?(s=this.m_startRowHeader,n=this.m_rowHeaderLevelCount-1,o=this.m_rowHeaderLevelCount,l=this.m_rowHeader,r="row"):(s=this.m_startRowEndHeader,n=this.m_rowEndHeaderLevelCount-1,o=this.m_rowEndHeaderLevelCount,l=this.m_rowEndHeader,r="row"),0===e.startIndex.column&&-1===e.endIndex.column&&0===e.startIndex.row&&-1===e.endIndex.row){a=0,h="row"===r?this.m_endRowHeader-this.m_startRowHeader:this.m_endColHeader-this.m_startColHeader}else 0===e.startIndex.column&&-1===e.endIndex.column||void 0===e.startIndex.column?e.startIndex.row<=t&&t<=e.endIndex.row&&("row"===i||"rowEnd"===i)&&(a=e.startIndex.row,h=e.endIndex.row):(0===e.startIndex.row&&-1===e.endIndex.row||void 0===e.startIndex.row)&&e.startIndex.column<=t&&t<=e.endIndex.column&&("column"===i||"columnEnd"===i)&&(a=e.startIndex.column,h=e.endIndex.column);for(let e=a;e<=h;e++){let t=this._getHeaderByIndex(e,n,l,o,s);t&&d.push(t)}return d},M.prototype.handleDatabodyMouseDown=function(e){var t=e.target,i=this.findCell(t);if(null!=i){if(this._isEditOrEnter()){var s=this._getActiveElement();if(i===s)return;if(!1===this._leaveEditing(e,s,!1))return}else this._exitActionableMode();var n=this.m_utils.ctrlEquivalent(e);0!==e.button||n||this._isMoveOnElementEnabled(i)&&(this.m_databodyMove=!0,this.m_currentX=e.pageX,this.m_currentY=e.pageY),this.m_root.contains(document.activeElement)&&document.activeElement!==this.m_root||(this.m_externalFocus=!0),this._isGridEditable()&&(this.m_shouldFocus=!this._isFocusableElementBeforeCell(t)),this._isSelectionEnabled()?(this.isMultipleSelection()&&0===e.button&&(this.m_databodyDragState=!0),this.handleDatabodyClickSelection(e)):this.handleDatabodyClickActive(e)}else this.m_scrollbarFocus=!0},M.prototype.handleDatabodyMouseOut=function(e){if(!this.m_databodyMove){var t=e.target,i=this.findCell(t);this._setCellHover(i,"remove")}},M.prototype.handleDatabodyMouseOver=function(e){if(!this.m_databodyMove){var t=e.target,i=this.findCell(t);this._setCellHover(i,"add")}},M.prototype._setCellHover=function(e,t){if(null!=e&&this._isSelectionEnabled()){var i=this.m_options.getSelectionMode();if("cell"===i)"add"===t?this.m_utils.addCSSClassName(e,this.getMappedStyle("hover")):this.m_utils.removeCSSClassName(e,this.getMappedStyle("hover"));else if("row"===i)for(var s=this._getIndex(e,"row"),n=this._getSelectionStartAndEnd(this.createIndex(s,this.m_startCol),this.createIndex(s,this.m_endCol),0),o=n.min.row;o<=n.max.row;o++)this._highlightCellsAlongAxis(o,"row","index",t,["hover"])}},M.prototype.handleDatabodyDoubleClick=function(e){if(this._isGridEditable()){var t=e.target,i=this.findCell(t);if("edit"===this._getCurrentMode()){var s=this._getActiveElement();if(i===s)return;if(!this._handleExitEdit(e,s))return}this._handleEditable(e,i),this._handleEdit(e,i)}},M.prototype.handleDatabodyMouseMove=function(e){0===e.buttons&&this.handleMouseUp(e),this.m_databodyMove?this._handleMove(e):this.m_databodyDragState?this.m_floodFillDragState?this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this.m_selectionRange||(this.m_selectionRange=this.GetSelection()),this.handleDatabodyFloodFillDrag(e)):this.handleDatabodySelectionDrag(e):this.m_headerDragState&&(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&(-1!==this.m_selectionFrontier.axis.indexOf("row")||-1!==this.m_selectionFrontier.axis.indexOf("column"))||this.m_deselectInfo&&this.m_deselectInfo.axis&&(-1!==this.m_deselectInfo.axis.indexOf("row")||-1!==this.m_deselectInfo.axis.indexOf("column")))&&this.extendSelectionHeader(e.target,e,!0,this.m_deselectInProgress)},M.prototype.handleDatabodyMouseUp=function(e){this.m_databodyDragState=!1,this.m_headerDragState=!1,this.m_deselectInProgress=!1,this.m_databodyMove&&this._handleMoveMouseUp(e,!0),this.m_options.isFloodFillEnabled()&&this.m_floodFillDragState&&(this._handleFloodFillMouseUp(e),this.m_floodFillDragState=!1)},M.prototype.handleDatabodyKeyUp=function(e){this.m_deselectInProgress&&(this.m_deselectInProgress=e.shiftKey)},M.prototype.handleDatabodyKeyDown=function(e){var t,i=this.m_utils.ctrlEquivalent(e);if(!(e.defaultPrevented&&i&&(this.keyCodes.LEFT_KEY||this.keyCodes.RIGHT_KEY)||this.m_animating)){t=null!=this.m_active&&"header"===this.m_active.type?this._getActionFromKeyDown(e,this.m_active.axis,!1):null!=this.m_active&&"label"===this.m_active.type?this._getActionFromKeyDown(e,this.m_active.axis,!0):this._getActionFromKeyDown(e,"cell",!1);var s=this._getActiveElement();null!=t&&t.call(this,e,s)&&e.preventDefault()}},M.prototype.findPos=function(e){if(e){var t=this.findPos(e.offsetParent),i=this.getElementTranslationXYZ(e.offsetParent);return[parseInt(t[0],10)+parseInt(e.offsetLeft,10)+i[0],parseInt(t[1],10)+parseInt(e.offsetTop,10)+i[1]]}return[0,0]},M.prototype._findHeaderOffset=function(e,t,i){if(i||(i=[0,0]),e!==t){for(;!e.offsetParent;)e=e.parentElement;return e.offsetLeft&&(i[0]+=parseInt(e.offsetLeft,10)),e.offsetTop&&(i[1]+=parseInt(e.offsetTop,10)),this._findHeaderOffset(e.offsetParent,t,i)}return i},M.prototype.getElementTranslationXYZ=function(e){if(e){var t=document.defaultView.getComputedStyle(e,null),i=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform"),s=i.substr(7,i.length-8).split(", ");return[isNaN(parseInt(s[4],10))?0:parseInt(s[4],10),isNaN(parseInt(s[5],10))?0:parseInt(s[5],10),isNaN(parseInt(s[6],10))?0:parseInt(s[6],10)]}return[0,0,0]},M.prototype.handleDatabodyMouseWheel=function(e){var t,i=this.find(e.target,"header");if(null==i&&(i=this.find(e.target,"endheader")),i&&(t=i===this.m_rowHeader||i===this.m_rowEndHeader?"row":"column"),("row"!==t||this.m_stopRowHeaderFetch&&this.m_stopRowEndHeaderFetch&&this.m_stopRowFetch)&&("column"!==t||this.m_stopColumnHeaderFetch&&this.m_stopColumnEndHeaderFetch&&this.m_stopColumnFetch)||e.preventDefault(),!this.m_animating){var s=this.m_utils.getMousewheelScrollDelta(e),n=s.deltaX,o=s.deltaY;"row"===t?n=0:"column"===t&&(o=0);var l=Math.max(0,Math.min(this._getMaxScrollHeight(),this.m_currentScrollTop-o));this._getMaxScrollHeight()!==l&&0!==l&&this.find(e.target,"header")&&e.preventDefault(),this.scrollDelta(n,o)}},M.prototype.handleTouchStart=function(e){var t=e.touches.length,i=e.touches[0].target;if(1===t){if(this.m_startX=e.touches[0].pageX,this.m_startY=e.touches[0].pageY,this.m_currentX=this.m_startX,this.m_currentY=this.m_startY,this.m_prevX=this.m_startX,this.m_prevY=this.m_startY,this.m_startTime=(new Date).getTime(),this.m_touchActive=!0,this.isMultipleSelection()){i.classList.contains(this.getMappedStyle("selectaffordance"))&&(i=i.parentNode);var s=null;if(i===this.m_topSelectIconContainer?s="top":i===this.m_bottomSelectIconContainer&&(s="bottom"),s){this.m_touchMultipleSelect=!0;var n=this.GetSelection();this.m_touchSelectAnchor="top"===s?n[n.length-1].endIndex:n[n.length-1].startIndex}}!this.m_touchMultipleSelect&&this._isMoveOnElementEnabled(this.findCell(i))&&(this.m_databodyMove=!0)}else this.handleTouchCancel(e)},M.prototype.handleTouchMove=function(e){var t=e.target;if(this.m_touchActive){e.cancelable&&e.preventDefault(),this.m_currentX=e.touches[0].pageX,this.m_currentY=e.touches[0].pageY;var i=this.m_currentX-this.m_prevX,s=this.m_currentY-this.m_prevY,n=this.adjustTouchScroll(i,s);if(i=n[0],s=n[1],this.getResources().isRTLMode()&&(i*=-1),this.m_touchMultipleSelect)this.handleDatabodySelectionDrag(e),this.m_utils.isTouchDeviceNotIOS()||e.preventDefault();else if(this.m_databodyMove)this._removeTouchSelectionAffordance(),this._handleMove(e),this.m_utils.isTouchDeviceNotIOS()||e.preventDefault();else if(this._isEditOrEnter()&&this.m_utils.isTouchDeviceNotIOS()){var o=this._getActiveElement();this.findCell(t)!==o&&this._handleNonSwipeScroll(i,s)}else this._handleNonSwipeScroll(i,s);this.m_prevX=this.m_currentX,this.m_prevY=this.m_currentY}else this.handleTouchCancel(e)},M.prototype.handleTouchEnd=function(e){var t,i=e.target;if(this._isEditOrEnter()){if(t=this._getActiveElement(),this.findCell(i)===t)return void this.handleTouchCancel(e);this._leaveEditing(e,t,!1)}else this._exitActionableMode();if(null!=this.m_lastTapTime&&this.m_startTime-this.m_lastTapTime<250&&this.m_lastTapTarget===i?(this.m_lastTapTime=null,this.m_lastTapTarget=null,null!=(t=this.findCell(i))&&(this._handleEditable(e,t),this._handleEdit(e,t),e.cancelable&&e.preventDefault())):(this.m_lastTapTarget=e.target,this.m_lastTapTime=(new Date).getTime()),this.m_touchActive&&!e.defaultPrevented)if(this.m_touchMultipleSelect)e.cancelable&&e.preventDefault(),this.m_touchMultipleSelect=!1;else{var s=this.m_lastTapTime-this.m_startTime;if(this.m_currentX===this.m_startX&&this.m_currentY===this.m_startY)return this.m_databodyMove=!1,this._isSelectionEnabled()&&s<M.CONTEXT_MENU_TAP_HOLD_DURATION?void this.handleDatabodyClickSelection(e):void this.handleDatabodyClickActive(e);if(this.m_databodyMove)return e.cancelable&&e.preventDefault(),this.m_databodyMove=!1,void this._handleMoveMouseUp(e,!0);this.m_utils.isTouchDeviceNotIOS()&&this._handleSwipe(e)}this.handleTouchCancel(e)},M.prototype._calculateMomentum=function(e,t,i,s,n,o){var l,r=e-t,a=Math.abs(r)/i,h=a*a/(2*M.DECELERATION_FACTOR)*(r<0?-1:1),d=a/M.DECELERATION_FACTOR;return o&&(h*=-1),s-h>n?(l=Math.max(-1*M.MAX_OVERSCROLL_PIXEL,h),h=s-n,d=(r=n-s)/a):s-h<0&&(l=Math.min(M.MAX_OVERSCROLL_PIXEL,h),h=s,d=(r=s)/a),{destination:Math.round(h),duration:Math.min(Math.max(M.MIN_SWIPE_TRANSITION_DURATION,d),M.MAX_SWIPE_TRANSITION_DURATION),overScroll:l}},M.prototype.handleTouchCancel=function(e){this.m_databodyMove&&(this._handleMoveMouseUp(e,!1),this.m_databodyMove=!1),this.m_touchSelectAnchor=null,this.m_touchMultipleSelect=!1,this.m_touchActive=!1,this.m_startX=0,this.m_startY=0,this.m_prevX=0,this.m_prevY=0,this.m_currentX=0,this.m_currentY=0,this.m_startTime=0},M.prototype.handleHeaderTouchStart=function(e){this.m_touchStart=(new Date).getTime();var t=e.touches.length,i=e.target;if(1===t){this.m_startX=e.touches[0].pageX,this.m_startY=e.touches[0].pageY,this.m_currentX=this.m_startX,this.m_currentY=this.m_startY,this.m_prevX=this.m_startX,this.m_prevY=this.m_startY,this.m_touchActive=!0;var s=this.findHeader(i);this.isResizeEnabled()&&(this.handleResize(e),this.handleResizeMouseDown(e),this._highlightResizeMouseDown()),!this.m_isResizing&&this._isMoveOnElementEnabled(s)&&(this.m_databodyMove=!0)}else this.handleHeaderTouchCancel(e)},M.prototype.handleHeaderTouchMove=function(e){if(this.m_touchActive){e.cancelable&&e.preventDefault(),this.m_currentX=e.touches[0].pageX,this.m_currentY=e.touches[0].pageY;var t=this.m_currentX-this.m_prevX,i=this.m_currentY-this.m_prevY;if(this.m_isResizing&&this.isResizeEnabled())this.handleResize(e);else if(this.m_databodyMove)this._removeTouchSelectionAffordance(),this._handleMove(e);else{var s=e.target,n=this.findHeader(s),o=this.getHeaderCellAxis(n);"column"===o||"columnEnd"===o?this._handleNonSwipeScroll(t,0):this._handleNonSwipeScroll(0,i)}this.m_prevX=this.m_currentX,this.m_prevY=this.m_currentY}else this.handleTouchCancel(e)},M.prototype.handleHeaderTouchEnd=function(e){var t;if(this.m_touchActive&&!e.defaultPrevented){var i=e.target;if(this.m_isResizing&&this.isResizeEnabled())this.handleResizeMouseUp(e),this.m_currentX!==this.m_startX&&this.m_currentY!==this.m_startY&&e.cancelable&&e.preventDefault();else if(this.m_currentX===this.m_startX&&this.m_currentY===this.m_startY){var s=this.m_options.getSelectionMode(),n=(t=this.findHeader(i))[this.getResources().getMappedAttribute("context")],o=this.m_root.getAttribute("id"),l=document.querySelector("#"+o+"contextmenu");l&&"none"===l.style.display&&((this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortascending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdescending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdefault")))&&this._isDOMElementSortable(i)?(e.cancelable&&e.preventDefault(),this._removeTouchSelectionAffordance(),this._handleSortIconMouseDown(i),this._handleHeaderSort(e)):this._isDisclosureIcon(i)?(this._removeTouchSelectionAffordance(),this._handleExpandCollapseRequest(e),e.preventDefault()):!this._isSelectionEnabled()||!this.isMultipleSelection()||"row"===s&&-1===n.axis.indexOf("row")||this.m_databodyMove?"row"===s&&-1!==n.axis.indexOf("row")&&this._isSelectionEnabled()?this.handleHeaderClickSelection(e):this.handleHeaderClickActive(e):(0===e.button&&(this.m_headerDragState=!0),this.handleHeaderClickSelection(e)))}else this.m_databodyMove?(e.cancelable&&e.preventDefault(),this.m_databodyMove=!1,this._handleMoveMouseUp(e,!0)):(t=this.findHeader(i),this._handleSwipe(e,this.getHeaderCellAxis(t)))}this.handleHeaderTouchCancel(e)},M.prototype.handleHeaderTouchCancel=function(e){this.m_databodyMove&&(this._handleMoveMouseUp(e,!1),this.m_databodyMove=!1),this.m_touchActive=!1,this.m_startX=0,this.m_startY=0,this.m_prevX=0,this.m_prevY=0,this.m_currentX=0,this.m_currentY=0},M.prototype._handleNonSwipeScroll=function(e,t){var i=(new Date).getTime();this._disableTouchScrollAnimation();var s=this.adjustTouchScroll(e,t);e=s[0],t=s[1],this.scrollDelta(e,t),i-this.m_startTime>M.TAP_AND_SCROLL_RESET&&(this.m_startX=this.m_currentX,this.m_startY=this.m_currentY,this.m_startTime=(new Date).getTime())},M.prototype._handleSwipe=function(e,t){var i=(new Date).getTime()-this.m_startTime,s=this.getResources().isRTLMode(),n=this.m_currentX-this.m_startX,o=this.m_currentY-this.m_startY;if(s&&(n*=-1),Math.abs(n)<M.MIN_SWIPE_DISTANCE&&Math.abs(o)<M.MIN_SWIPE_DISTANCE&&i<M.MIN_SWIPE_DURATION)e.cancelable&&e.preventDefault(),this._isSelectionEnabled()&&this._scrollTouchSelectionAffordance();else if(i<M.MAX_SWIPE_DURATION){var l,r;if(e.cancelable&&e.preventDefault(),"row"!==t&&"rowEnd"!==t?(l=this._calculateMomentum(this.m_currentX,this.m_startX,i,this.m_currentScrollLeft,this.m_scrollWidth,s),isNaN(l.overScroll)||(l.overScroll>0||this.m_stopColumnFetch)&&(this.m_extraScrollOverX=-1*l.overScroll)):(l={duration:0,destination:0},n=0),"column"!==t&&"columnEnd"!==t?(r=this._calculateMomentum(this.m_currentY,this.m_startY,i,this.m_currentScrollTop,this.m_scrollHeight),isNaN(r.overScroll)||(r.overScroll>0||this.m_stopRowFetch)&&(this.m_extraScrollOverY=-1*r.overScroll)):(r={duration:0,destination:0},o=0),this.m_utils.isTouchDeviceNotIOS()){var a=Math.max(l.duration,r.duration);this.m_databody.firstChild.style.transitionDuration=a+"ms",this.m_rowHeader.firstChild.style.transitionDuration=a+"ms",this.m_colHeader.firstChild.style.transitionDuration=a+"ms",this.m_rowEndHeader.firstChild.style.transitionDuration=a+"ms",this.m_colEndHeader.firstChild.style.transitionDuration=a+"ms"}n+=l.destination,o+=r.destination;var h=this.adjustTouchScroll(n,o);n=h[0],o=h[1],this.scrollDelta(n,o)}},M.prototype.fireEvent=function(e,t){if(null!=e&&null!=t){var i=this.callbacks[e];return null==i||i(t)}},M.prototype.addListener=function(e,t){this.callbacks[e]=t},M.prototype.setElementHeight=function(e,t){e.style.height=t+"px"},M.prototype.getElementHeight=function(e){return this.getElementDir(e,"height")},M.prototype.setElementWidth=function(e,t){e.style.width=t+"px"},M.prototype.getElementWidth=function(e){return this.getElementDir(e,"width")},M.prototype.setElementDir=function(e,t,i){e.style[i]=t+"px"},M.prototype.getElementDir=function(e,t){var i;return e.style[t].indexOf("px")>-1&&-1===e.style[t].indexOf("e")?parseFloat(e.style[t]):(document.body.contains(e)?i=Math.round(e["offset"+t.charAt(0).toUpperCase()+t.slice(1)]):(e.style.visibility="hidden",this.m_root.appendChild(e),i=Math.round(e["offset"+t.charAt(0).toUpperCase()+t.slice(1)]),this.m_root.removeChild(e),e.style.visibility=""),i)},M.prototype._computeElementWidthAndHeight=function(e){var t={};return e.style.width.indexOf("px")>-1&&-1===e.style.width.indexOf("e")&&(t.width=parseFloat(e.style.width)),e.style.height.indexOf("px")>-1&&-1===e.style.height.indexOf("e")&&(t.height=parseFloat(e.style.height)),null!=t.width&&null!=t.height||(document.body.contains(e)?(t.width=Math.round(e.offsetWidth),t.height=Math.round(e.offsetHeight)):(e.style.visibility="hidden",this.m_root.appendChild(e),t.width=Math.round(e.offsetWidth),t.height=Math.round(e.offsetHeight),this.m_root.removeChild(e),e.style.visibility="")),t},M.BEFORE=1,M.AFTER=2,M.INSIDE=3,M.prototype._isInViewport=function(e){var t=e.row,i=e.column;return-1===t&&-1===i?-1:-1===t?this._isColumnIndexInViewport(i):-1===i?this._isRowIndexInViewport(t):i>=this.m_startCol&&i<=this.m_endCol&&t>=this.m_startRow&&t<=this.m_endRow?M.INSIDE:-1},M.prototype._isAxisIndexInViewport=function(e,t){return-1===e?-1:"column"===t?this._isColumnIndexInViewport(e):"row"===t?this._isRowIndexInViewport(e):-1},M.prototype._isColumnIndexInViewport=function(e){return e<this.m_startCol?M.BEFORE:e>this.m_endCol?M.AFTER:M.INSIDE},M.prototype._isRowIndexInViewport=function(e){return e<this.m_startRow?M.BEFORE:e>this.m_endRow?M.AFTER:M.INSIDE},M.prototype._isCellBoundaryInViewport=function(e,t,i,s){var n=this._getViewportTop(),o=this._getViewportBottom(),l=this._getViewportLeft(),r=this._getViewportRight();return(s<=o&&s>n||i>=n&&i<o)&&(t<=r&&t>l||e>=l&&e<r)},M.prototype.queueModelEvent=function(e){return!(this.m_initialized&&!this.m_processingEventQueue&&!this.m_animating&&!this.m_processingModelEvent)&&(null==this.m_modelEvents&&(this.m_modelEvents=[]),this.m_modelEvents.push(e),!0)},M.prototype.handleModelEvent=function(e,t){if(void 0!==t||!this.queueModelEvent(e)){var i=e.operation,s=e.keys,n=e.indexes,o=e.result,l=e.header,r=e.endheader,a=e.silent,h=!1;if(this.m_processingModelEvent=!0,e.detail)"delete"===i&&this._handleDeleteRangeEvent(e.detail),"insert"===i&&this._handleInsertRangeEvent(e.detail),"update"===i&&this._handleUpdateRangeEvent(e.detail),"refresh"===i&&this._handleModelRefreshEvent(e.detail);else if("insert"===i)this._adjustActive(i,n),this.m_shouldFocus=!0,this._adjustSelectionOnModelChange(i,s,n),null!=o?(this._handleModelInsertRangeEvent(o,l,r),h=!0):this._handleModelInsertEvent(n,s);else if("update"===i)this._handleModelUpdateEvent(n,s,o),h=!0;else if("delete"===i){let t;if(this._isEditOrEnter()&&(t=this._getCellByIndex(this.m_active.indexes)),t){let i=this.getCellIndexes(t),s=!1;n.forEach(e=>{e.row!==i.row&&e.column!==i.column||(s=!0)}),s&&(this._handleExitEditable(e,t),this._handleExitEdit(e,t))}this._adjustSelectionOnModelChange(i,s,n),this.m_utils.supportsTransitions()?(Array.isArray(s)||(s=new Array(s)),this._handleModelDeleteEventWithAnimation(e,s),s.length>0&&(h=!0)):(this._handleModelDeleteEvent(n,s,a),this._adjustActive(i,n))}else"refresh"===i||"reset"===i?this._handleModelRefreshEvent():"sync"===i&&this._handleModelSyncEvent(e);this.m_processingModelEvent=!1,!h&&t&&this._runModelEventQueue()}},M.prototype._adjustActive=function(e,t){var i,s;if(null!=this.m_active){if("cell"===this.m_active.type)s=!1,i=this.m_active.indexes.row;else{if("header"!==this.m_active.type||"row"!==this.m_active.axis)return;s=!0,i=this.m_active.index}if(Array.isArray(t)||(t=new Array(t)),!0===this.m_moveActive){if("insert"===e)return void(s?this.m_active.index=t[0].row:this.m_active.indexes.row=t[0].row);if("delete"===e&&t[0].row===i)return}for(var n="insert"===e?1:-1,o=0;o<t.length;o++){var l=this._isDataGridProvider()?t[o]:t[o].row;l<i?s?this.m_active.index+=n:this.m_active.indexes.row+=n:l===i&&"delete"===e&&this._setActive(null,null)}}},M.prototype._adjustSelectionOnModelChange=function(e,t,i){Array.isArray(t)||(t=new Array(t)),Array.isArray(i)||(i=new Array(i));var s=this.GetSelection();if(null!=t&&null!=i&&t.length===i.length&&0!==s.length)for(var n="insert"===e?1:-1,o=0;o<t.length;o++)for(var l,r=t[o].row,a=i[o].row,h=s.length-1;h>=0;h--){var d=s[h],c=d.startKey.row,m=d.endKey.row,u=d.startIndex.row,_=d.endIndex.row;if(c===r){if(m===r&&"delete"===e){s.splice(h,1);continue}l=this._getKey(this._getAxisCellsByIndex(d.startIndex.row+1,"row")[0],"row"),d.startKey.row=l,d.endIndex.row+=n}else m===r?(l=this._getKey(this._getAxisCellsByIndex(d.startIndex.row-1,"row")[0],"row"),d.endKey.row=l,d.endIndex.row+=n):a<=u?(d.startIndex.row+=n,d.endIndex.row+=n):a<_&&(d.endIndex.row+=n)}else if(this.m_moveActive&&"insert"===e){var p;if(this._isSelectionEnabled()&&this._isDatabodyCellActive())p="cell"===this.m_options.getSelectionMode()?this.createRange(this.m_active.indexes,this.m_active.indexes,t[0],t[0]):this.createRange(i[0],i[0],t[0],t[0]),this.m_selectionFrontier=this.m_active.indexes,s.push(p);this.m_moveActive=!1}},M.prototype._simpleAdjustSelectionOnChange=function(e,t,i){let s=this.GetSelection(),n="insert"===e?1:-1;for(let o=0;o<t.length;o++){let l=t[o];for(let t=s.length-1;t>=0;t--){let o=s[t],r=o.startIndex[i],a=o.endIndex[i];if(r===l){if(a===l&&"delete"===e){s.splice(t,1);continue}if("delete"===e){let e=this._getKey(this._getAxisCellsByIndex(o.startIndex[i]+1,i)[0],i);o.startKey[i]=e}else o.startIndex[i]+=n;o.endIndex[i]+=n}else if(a===l){if("delete"===e){let e=this._getKey(this._getAxisCellsByIndex(o.endIndex[i]-1,i)[0],i);o.endKey[i]=e}o.endIndex[i]+=n}else l<r?(o.startIndex[i]+=n,o.endIndex[i]+=n):l<a&&(o.endIndex[i]+=n)}}},M.prototype._handleInsertRangeEvent=function(e){let t=e.axis,i=e.ranges;if(0===i.length)return void this.fillViewport();i.sort(function(e,t){return e.offset-t.offset});let s=i.shift(),n=s.offset,o=s.count,l=this._isAxisIndexInViewport(n,t);if(l===M.INSIDE){let i=n,l=o,r=this.m_startCol,a=this.m_endCol-this.m_startCol+1;"column"===t&&(i=this.m_startRow,l=this.m_endRow-this.m_startRow+1,r=n,a=o);let h,d=document.createDocumentFragment(),c=document.createDocumentFragment(),m=new Promise(function(e){h=e}),u={axis:t,range:s,headerFragment:d,endHeaderFragment:c,totalDimension:0,promiseResolve:h};this.fetchHeaders(t,n,d,c,o,{success:this._handleInsertRangeHeaderFetchSuccess.bind(this,u),error:this.handleCellsFetchError}),this.fetchCells(this.m_databody,i,r,l,a,{success:this._handleInsertRangeCellFetchSuccess.bind(this,u),error:this.handleCellsFetchError}),m.then(this._handleInsertRangeEvent.bind(this,e))}else if(l===M.BEFORE){let i=this.m_avgRowHeight,s=i*o,l=this.m_rowHeader,r=this.m_rowEndHeader;"row"===t?(this.m_endRow>=0&&(this.m_startRow+=o,this.m_endRow+=o,this.m_startRowPixel+=s,this.m_endRowPixel+=s),this.m_endRowHeader>=0&&(this.m_startRowHeader+=o,this.m_endRowHeader+=o,this.m_startRowHeaderPixel+=s,this.m_endRowHeaderPixel+=s),this.m_endRowEndHeader>=0&&(this.m_startRowEndHeader+=o,this.m_endRowEndHeader+=o,this.m_startRowEndHeaderPixel+=s,this.m_endRowEndHeaderPixel+=s)):(i=this.m_avgColWidth,s=i*o,l=this.m_colHeader,r=this.m_colEndHeader,this.m_endCol>=0&&(this.m_startCol+=o,this.m_endCol+=o,this.m_startColPixel+=s,this.m_endColPixel+=s),this.m_endColHeader>=0&&(this.m_startColHeader+=o,this.m_endColHeader+=o,this.m_startColHeaderPixel+=s,this.m_endColHeaderPixel+=s),this.m_endColEndHeader>=0&&(this.m_startColEndHeader+=o,this.m_endColEndHeader+=o,this.m_startColEndHeaderPixel+=s,this.m_endColEndHeaderPixel+=s));let a=new Array(o).fill(n).map((e,t)=>e+t),h=new Array(o).fill(i);this._modifyAndPushCells(a,h,t,l,r,!0),this._refreshDatabodyMap(),this._handleInsertRangeEvent(e)}else l===M.AFTER&&("row"===t?(this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1):(this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1),this._handleInsertRangeEvent(e))},M.prototype._handleUpdateRangeEvent=function(e){let t=e.ranges;if(0===t.length)return this._highlightActive(),this.applySelection(),void this.fillViewport();t.sort(function(e,t){return e.offset-t.offset});let i=t.shift(),s=i.rowOffset,n=i.columnOffset,o=-1===i.rowCount?this._getMaxBottom():i.rowCount,l=-1===i.columnCount?this._getMaxRight():i.columnCount,r=s+o-1,a=n+l-1,h=this._isAxisIndexInViewport(s,"row"),d=this._isAxisIndexInViewport(r,"row"),c=this._isAxisIndexInViewport(n,"column"),m=this._isAxisIndexInViewport(a,"column");if(h!==M.AFTER&&d!==M.BEFORE&&c!==M.AFTER&&m!==M.BEFORE){let t;h===M.BEFORE&&(s=this._getMaxTop()),d===M.AFTER&&(r=this._getMaxBottom()),c===M.BEFORE&&(n=this._getMaxLeft()),m===M.AFTER&&(a=this._getMaxRight()),o=r-s+1,l=a-n+1;let i=new Promise(function(e){t=e}),u={promiseResolve:t};this.fetchCells(this.m_databody,s,n,o,l,{success:this._handleUpdateRangeFetchSuccess.bind(this,u),error:this.handleCellsFetchError}),i.then(this._handleUpdateRangeEvent.bind(this,e))}else this._handleUpdateRangeEvent(e)},M.prototype._handleInsertRangeHeaderFetchSuccess=function(e,t,i,s){const n=i.axis;this._signalTaskEnd(),this.m_fetching[n]=!1;const o=this.getResources().isRTLMode()?"right":"left",l=i.start,r=e.headerFragment,a=e.endHeaderFragment,h="row"===n?"top":o;let d,c,m,u,_,p,g,f,C,y,v,E,w=0,S=0;if(null!=t){for(f=this.getMappedStyle("headercell"),"row"===n?(d=this.m_rowHeader,c=this.m_startRowHeader,y=this.m_rowHeaderLevelCount,f+=" "+this.getMappedStyle("rowheadercell")):(d=this.m_colHeader,c=this.m_startColHeader,y=this.m_columnHeaderLevelCount,f+=" "+this.getMappedStyle("colheadercell")),m=this._getHeaderByIndex(l,y-1,d,y,c),u=this.getElementDir(m,h),_=t.getCount(),C=this.getRendererOrTemplate(n);_-w>0;)"row"===n?(v=0,E=u+S):(v=u+S,E=0),p=l+w,g=this.buildLevelHeaders(r,p,0,v,E,!0,!1,C,t,n,f,y),w+=g.count,S+=g.totalHeaderDimension;S>e.totalDimension&&(e.totalDimension=S)}if(S=0,w=0,null!=s){for(f=this.getMappedStyle("endheadercell"),"row"===n?(d=this.m_rowEndHeader,c=this.m_startRowEndHeader,y=this.m_rowEndHeaderLevelCount,f+=" "+this.getMappedStyle("rowendheadercell")):(d=this.m_colEndHeader,c=this.m_startColEndHeader,y=this.m_columnEndHeaderLevelCount,f+=" "+this.getMappedStyle("colendheadercell")),m=this._getHeaderByIndex(l,y-1,d,y,c),u=this.getElementDir(m,h),_=s.getCount(),C=this.getRendererOrTemplate(n+"End");_-w>0;)"row"===n?(v=0,E=u+S):(v=u+S,E=0),p=l+w,g=this.buildLevelHeaders(a,p,0,v,E,!0,!1,C,s,n+"End",f,y),w+=g.count,S+=g.totalHeaderDimension;S>e.totalDimension&&(e.totalDimension=S)}},M.prototype._handleInsertRangeCellFetchSuccess=function(e,t,i){const s=e.range,n=e.axis,o=e.headerFragment,l=e.endHeaderFragment;let r=e.totalDimension;const a=this.getResources().isRTLMode()?"right":"left",h=document.createDocumentFragment();let d=this.m_rowHeader,c=this.m_rowEndHeader;if("column"===n&&(d=this.m_colHeader,c=this.m_colEndHeader),this._signalTaskEnd(),this.m_fetching.cells=!1,this.unhighlightSelection(),t){const e=i[0].start,s=i[1].start,o=this._getCellByIndex(this.createIndex(e,s)),l="row"===n?this.getElementDir(o,"top"):this.m_startRowPixel,d="row"===n?this.m_startColPixel:this.getElementDir(o,a),c=this._addCellsToFragment(h,t,e,l,s,d);r=Math.max(r,"row"===n?c.totalRowHeight:c.totalColumnWidth)}const m=s.offset,u=s.count;let _=new Array(u).fill(m).map((e,t)=>e+t),p=new Array(u).fill(r/u),g=h.childNodes.length,f=o.childNodes.length,C=l.childNodes.length;const y=this.m_databody.firstChild;if(this._modifyAndPushCells(_,p,n,d,c,!0),this._simpleAdjustSelectionOnChange("insert",_,n),h.childNodes.length&&(y.appendChild(h),this._refreshDatabodyMap()),this._insertHeaders(n,m,o,l),this.hideStatusText(),"row"===n){g&&(this.m_endRow+=u,this.m_endRowPixel+=r,this.m_stopRowFetch=!1),f&&(this.m_endRowHeader+=u,this.m_endRowHeaderPixel+=r,this.m_stopRowHeaderFetch=!1),C&&(this.m_endRowEndHeader+=u,this.m_endRowEndHeaderPixel+=r,this.m_stopRowEndHeaderFetch=!1);let e=this.getElementHeight(y)-r;this.setElementHeight(y,e),this.updateRowBanding()}else if("column"===n){g&&(this.m_endCol+=u,this.m_endColPixel+=r,this.m_stopColumnFetch=!1),f&&(this.m_endColHeader+=u,this.m_endColHeaderPixel+=r,this.m_stopColumnHeaderFetch=!1),C&&(this.m_endColEndHeader+=u,this.m_endColEndHeaderPixel+=r,this.m_stopColumnEndHeaderFetch=!1);var v=this.getElementWidth(y)-r;this.setElementWidth(y,v),this.updateColumnBanding()}this.applySelection(),this._resetHeaderHighLight(),this.resizeGrid(),e.promiseResolve()},M.prototype._insertHeaders=function(e,t,i,s){let n,o=this.m_rowHeader,l=this.m_rowEndHeader,r=this.m_rowHeaderLevelCount,a=this.m_rowEndHeaderLevelCount,h=this.m_startRowHeader,d=this.m_startRowEndHeader,c="height",m="top";"column"===e&&(o=this.m_colHeader,l=this.m_colEndHeader,r=this.m_columnHeaderLevelCount,a=this.m_columnEndHeaderLevelCount,h=this.m_startColHeader,d=this.m_startColEndHeader,c="width",m=this.getResources().isRTLMode()?"right":"left");let u=(e,t,i,s,n,o)=>{for(;e.childNodes.length;){let l,r=e.firstChild;l=this.m_utils.containsCSSClassName(r,this.getMappedStyle("groupingcontainer"))?r.firstChild:r;let a=l.extentInfo,h=a.more.before,d=a.more.after,c=l[this.getResources().getMappedAttribute("context")],m=c.index,_=c.extent,p=c.level;if(h){let e=this._getHeaderContainer(m-1,p,0,null,t,i),s=e.firstChild;l[this.getResources().getMappedAttribute("context")].extent+=_;let o=this._getAttribute(e,"extent",!0);this._setAttribute(e,"extent",o+_);let r=this.getElementDir(s,n),a=this.getElementDir(l,n);this.setElementDir(s,r+a,n)}else if(d){let e=this._getHeaderContainer(m+_,p,0,null,t,i),s=e.firstChild,r=s[this.getResources().getMappedAttribute("context")];r.extent+=_,r.index-=_;let a=this._getAttribute(e,"extent",!0);this._setAttribute(e,"extent",a+_);let h=this._getAttribute(e,"start",!0);this._setAttribute(e,"start",h-_);let d=this.getElementDir(s,n),c=this.getElementDir(l,n);this.setElementDir(s,d+c,n);let u=this.getElementDir(s,o);this.setElementDir(s,u-c,o)}else{let e=this._getHeaderContainer(m,p,0,null,t,i);if(e){let n=this._getHeaderByIndex(m-1,p,t,i,s);if(null===n||n.parentNode!==e){let t=p===i-1?e.childNodes[1]:e.childNodes[0];e.insertBefore(l,t)}else n.nextSibling&&n.nextSibling.parentNode===e?e.insertBefore(l,n.nextSibling):e.appendChild(l)}else{let e=this._getHeaderContainer(m-1,p,0,null,t,i);if(null===e){let e=t.firstChild;e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}else e.nextSibling?e.parentNode.insertBefore(r,e.nextSibling):e.parentNode.appendChild(r)}}if(h||d){let l=r.querySelector("."+this.getMappedStyle("groupingcontainer"));l&&u(l,t,i,s,n,o),e.removeChild(r)}}};i.childNodes.length&&(1===r?(n=this._getHeaderByIndex(t,r-1,o,r,h),o.firstChild.insertBefore(i,n)):u(i,o,r,h,c,m)),s.childNodes.length&&(1===a?(n=this._getHeaderByIndex(t,a-1,l,a,d),l.firstChild.insertBefore(s,n)):u(s,l,a,d,c,m))},M.prototype._handleModelInsertEvent=function(e,t){var i=this._isInViewport(e);if(i===M.INSIDE||i===M.AFTER&&e.row===this.m_endRow+1)null!=t.row&&(this._databodyEmpty()?(this.empty(),this.refresh(this.m_root)):(this._modifyAxisCellContextIndex("row",e.row,this.m_endRow-e.row+1,1),this._refreshDatabodyMap(),this.fetchHeaders("row",e.row,this.m_rowHeader,this.m_rowEndHeader,1,{success:this._handleHeaderInsertsFetchSuccess}),this.fetchCells(this.m_databody,e.row,this.m_startCol,1,this.m_endCol-this.m_startCol+1,{success:this._handleCellInsertsFetchSuccess})));else{if(i===M.BEFORE){this._modifyAxisCellContextIndex("row",0,this.m_endRow+1,1),this._refreshDatabodyMap(),this.m_startRow+=1,this.m_startRowHeader+=1,this.m_endRow+=1,this.m_endRowHeader+=1,this.m_startRowPixel+=this.m_avgRowHeight,this.m_startRowHeaderPixel+=this.m_avgRowHeight,this.m_endRowPixel+=this.m_avgRowHeight,this.m_endRowHeaderPixel+=this.m_avgRowHeight;var s=this.m_databody.firstChild.firstChild;null!=s&&this.pushRowsDown(s,this.m_avgRowHeight);var n=this.m_rowHeader.firstChild.firstChild;null!=n&&this.pushRowsDown(n,this.m_avgRowHeight);var o=this.m_rowEndHeader.firstChild.firstChild;null!=o&&this.pushRowsDown(o,this.m_avgRowHeight)}this.scrollToIndex(e)}},M.prototype._handleCellInsertsFetchSuccess=function(e,t){this.m_resizeRequired=!0,this.handleCellsFetchSuccess(e,t,this.m_endRow>=t[0].start);var i=t[0].start;this._scrollRowIntoViewport(i),this._isHighWatermarkScrolling()||this._cleanupViewport("top"),this.updateRowBanding(),this.m_stopRowFetch=!1,-1!==this.m_endRowHeader&&(this.m_stopRowHeaderFetch=!1),-1!==this.m_endRowEndHeader&&(this.m_stopRowEndHeaderFetch=!1),this.fillViewport()},M.prototype._handleHeaderInsertsFetchSuccess=function(e,t,i){this.m_resizeRequired=!0,this.handleHeadersFetchSuccess(e,t,i,this.m_endRowHeader>=t.start)},M.prototype._scrollRowIntoViewport=function(e){var t=this._getAxisCellsByIndex(e,"row");if(null!=t){var i=this._getViewportTop(),s=this._getViewportBottom(),n=this.getElementDir(t[0],"top"),o=i-n;(o>0||(o=s-n)<0)&&this.scrollDelta(0,o)}},M.prototype._handleModelInsertRangeEvent=function(e,t,i){var s,n,o,l,r,a,h,d,c=this._databodyEmpty(),m=e.getStart("row"),u=e.getCount("row"),_=e.getStart("column"),p=e.getCount("column");if(!(m>this.m_endRow+1))if(c)this.empty(),this.refresh(this.m_root);else if(this.m_utils.supportsTransitions()){if(null!=t){s=document.createDocumentFragment();var g=t.getCount();for(l=0,n=0,a=this.getMappedStyle("headercell")+" "+this.getMappedStyle("rowheadercell"),h=this.getRendererOrTemplate("row");g-n>0;)o=m+n,n+=(r=this.buildLevelHeaders(s,o,0,0,l,!0,m!==this.m_endRowHeader+1,h,t,"row",a,this.m_rowHeaderLevelCount)).count,l+=r.totalHeaderDimension}if(null!=i){d=document.createDocumentFragment();var f=i.getCount();for(l=0,n=0,a=this.getMappedStyle("endheadercell")+" "+this.getMappedStyle("rowendheadercell"),h=this.getRendererOrTemplate("rowEnd");f-n>0;)o=m+n,n+=(r=this.buildLevelHeaders(d,o,0,0,l,!0,m!==this.m_endRowEndHeader+1,h,i,"rowEnd",a,this.m_rowEndHeaderLevelCount)).count,l+=r.totalHeaderDimension}var C=document.createDocumentFragment();if(r=this._addCellsToFragment(C,e,m,0,_,0),!(0!==C.childNodes.length||null!=s&&0!==s.childNodes.length||null!=d&&0!==d.childNodes.length))return;this._insertRowsWithAnimation(C,s,d,m,e.getCount("row"),r.totalRowHeight,_,p)}else{var y={axis:"row",start:m,count:u},v={axis:"column",start:_,count:p};if(null!=t){var E={axis:"row",header:this.m_rowHeader,endHeader:this.m_rowEndHeader,start:m,count:t.getCount()};this.m_fetching.row=E,this._handleHeaderInsertsFetchSuccess(t,E,i)}this._modifyAxisCellContextIndex("row",m,this.m_endRow-m+1,u),this._refreshDatabodyMap(),this._handleCellInsertsFetchSuccess(e,[y,v])}},M.prototype._handleModelUpdateEvent=function(e,t,i){if(this._isInViewport(e)===M.INSIDE)if(null!=i){var s=this.getRendererOrTemplate("cell"),n=this.m_options.getColumnBandingInterval();this._updateCellsInRow(i,i.getStart("row"),s,this.m_startCol,n)}else-1!==this.m_endRowHeader&&this.fetchHeaders("row",e.row,this.m_rowHeader,this.m_rowEndHeader,1,{success:this._handleHeaderUpdatesFetchSuccess,error:this.handleHeadersFetchError}),this.fetchCells(this.m_databody,e.row,this.m_startCol,1,this.m_endCol-this.m_startCol+1,{success:this._handleCellUpdatesFetchSuccess,error:this.handleCellsFetchError})},M.prototype._handleHeaderUpdatesFetchSuccess=function(e,t,i){var s=t.axis;this.m_fetching[s]=!1;var n=t.start;this._replaceHeaders(this.buildRowHeaders.bind(this),e,this.m_rowHeader,n,this.m_startRowHeader),this._replaceHeaders(this.buildRowEndHeaders.bind(this),i,this.m_rowEndHeader,n,this.m_startRowEndHeader);var o=this.m_rowHeader.firstChild.childNodes[n-this.m_startRowHeader];null==this.m_active||"header"!==this.m_active.type||"row"!==this.m_active.axis&&"rowEnd"!==this.m_active.axis||this._getKey(o,"row")!==this.m_active.key||this._highlightActive(),this._signalTaskEnd()},M.prototype._replaceHeaders=function(e,t,i,s,n){if(null!=t){var o=e(i,t,s,1,!0,!0),l=i.firstChild,r=l.childNodes[s-n];l.replaceChild(o,r)}},M.prototype._handleCellUpdatesFetchSuccess=function(e,t){this.m_fetching.cells=!1;var i=t[0].start,s=this.getRendererOrTemplate("cell"),n=this.m_options.getColumnBandingInterval();this._updateCellsInRow(e,i,s,this.m_startCol,n),this._signalTaskEnd()},M.prototype._getUpdateAnimationDuration=function(){return M.UPDATE_ANIMATION_DURATION},M.prototype._updateCellsInRow=function(e,t,i,s,n){var o,l=this._getUpdateAnimationDuration(),r=this._getAxisCellsByIndex(t,"row"),a=this.getElementDir(r[0],"top");if(0!==l&&this.m_utils.supportsTransitions()){var h=this;h._signalTaskStart(),this._removeFromArray(r),o=document.createDocumentFragment(),this._addCellsToFragment(o,e,t,a,s,this.m_startColPixel),r=o.childNodes;for(var d=this.getElementWidth(this.m_databody),c=0;c<r.length;c++)this.addTransformMoveStyle(r[c],0,0,"linear",d,0,0);this._populateDatabody(this.m_databody.firstChild,o),r=this._getAxisCellsByIndex(t,"row"),this.hideStatusText();this._onTransitionEnd(r[r.length-1],function(){for(var e=0;e<r.length;e++)h.removeTransformMoveStyle(r[e]);h._isSelectionEnabled()&&h.applySelection(),h._highlightActive(),h._signalTaskEnd(),h._runModelEventQueue()},l),setTimeout(function(){for(var e=0;e<r.length;e++)h.addTransformMoveStyle(r[e],l+"ms",0,"linear",0,0,0)},0)}else this._removeFromArray(r),o=document.createDocumentFragment(),this._addCellsToFragment(o,e,t,a,s,this.m_startColPixel),this._populateDatabody(this.m_databody.firstChild,o),this._isSelectionEnabled()&&this.applySelection(),this._highlightActive(),this.hideStatusText()},M.prototype._handleUpdateRangeFetchSuccess=function(e,t,i){this.m_fetching.cells=!1;const s=i[0].start,n=s+t.getCount("row")-1,o=i[1].start,l=o+t.getCount("column")-1;var r=this._getCellsInRange(s,o,n,l);const a=this.getElementDir(r[0],"top"),h=this.getResources().isRTLMode()?"right":"left",d=this.getElementDir(r[0],h);this._removeFromArray(r);let c=document.createDocumentFragment();this._addCellsToFragment(c,t,s,a,o,d),this._populateDatabody(this.m_databody.firstChild,c),this.hideStatusText(),this._signalTaskEnd(),e.promiseResolve()},M.prototype._removeAndModifyCells=function(e,t){e.forEach(e=>{let i=e[this.getResources().getMappedAttribute("context")];1===i.extents[t]?this._remove(e):i.extent[t]-=1})},M.prototype._removeAndModifyHeaders=function(e,t,i,s,n){e.forEach(e=>{let o=e[this.getResources().getMappedAttribute("context")],l=o.extent,r=e.parentNode;if(1===l)this._remove(e),0===r.childNodes.length&&this._remove(r);else{let l=this.getElementDir(e,i);this.setElementDir(e,l-t,i),o.extent-=1;let a=o.index;if(a===n){o.index+=1;let i=this.getElementDir(e,s);this.setElementDir(e,i+t,s)}if(r.classList.contains(this.getMappedStyle("groupingcontainer"))){let e=this._getAttribute(r,"extent",!0),t=this._getAttribute(r,"start",!0);this._setAttribute(r,"extent",e-1),a===n&&this._setAttribute(r,"start",t+1)}}})},M.prototype._handleDeleteRangeEvent=function(e){let t=e.ranges,i=new Set,s=e.axis,n=this.getResources().isRTLMode()?"right":"left",o=this.m_selection;for(let e=0;e<o.length;e++)this._applyBorderClassesAroundRange(this.getElementsInRange(o[e]),o[e],!1,"Selected");t.forEach(function(e){let t=e.offset,s=e.count;for(var n=0;n<s;n++)i.add(t+n)});let l=Array.from(i);l.sort(function(e,t){return t-e});let r=0,a=0,h=0,d=0,c=0,m=this.m_rowHeader,u=this.m_startRowHeader,_=this.m_startRowEndHeader,p=this.m_rowEndHeader,g=this.m_rowHeaderLevelCount,f=this.m_rowEndHeaderLevelCount,C=this.m_avgRowHeight,y=-1!==this.m_endRow,v=-1!==this.m_endRowHeader,E=-1!==this.m_endRowEndHeader,w="height",S="top";"column"===s&&(u=this.m_startColHeader,_=this.m_startColEndHeader,m=this.m_colHeader,p=this.m_colEndHeader,g=this.m_columnHeaderLevelCount,f=this.m_columnEndHeaderLevelCount,C=this.m_avgColWidth,y=-1!==this.m_endCol,v=-1!==this.m_endColHeader,E=-1!==this.m_endColEndHeader,w="width",S=n);let H,x=[];if(this._isEditOrEnter()&&(H=this._getCellByIndex(this.m_active.indexes)),H){let t=this.getCellIndexes(H),i=!1;l.forEach(e=>{("row"===s&&e===t.row||"column"===s&&e===t.column)&&(i=!0)}),i&&(this._handleExitEditable(e,H),this._handleExitEdit(e,H))}for(let e=0;e<l.length;e++){let t=l[e],i=0,n=this._isAxisIndexInViewport(t,s);if(n===M.BEFORE||n===M.INSIDE){if(n===M.BEFORE)d+=1,i=C,r+=i;else if(n===M.INSIDE){c+=1,i=this.getElementDir(this._getCellOrHeaderByIndex(t,s),w),a+=i;let e=this._getAxisCellsByIndex(t,s);null!=e&&this._removeAndModifyCells(e,s);let n=this._getHeadersByIndex(t,m,g,u);n.length&&this._removeAndModifyHeaders(n,i,w,S,t);let o=this._getHeadersByIndex(t,p,f,_);o.length&&this._removeAndModifyHeaders(o,i,w,S,t)}x.unshift(i)}else n===M.AFTER&&"scroll"===this.m_options.getScrollPolicy()&&(h+=i)}this._adjustActive("delete",l),l.reverse(),this._modifyAndPushCells(l,x,s,m,p,!1),this._simpleAdjustSelectionOnChange("delete",l.reverse(),s),this._refreshDatabodyMap();let b={};Object.assign(b,this.m_active.indexes);let R=this._getCellByIndex(b);if("row"===s)for(;!R&&b.row-1>0;)b.row-=1,R=this._getCellByIndex(b);R&&(this._setActiveByIndex(b,e),this._highlightActive());var I=r+a+h,A=this.m_databody.firstChild;if("row"===s){y&&(this.m_startRow-=d,this.m_endRow=this.m_endRow-d-c,this.m_startRowPixel-=r,this.m_endRowPixel=this.m_endRowPixel-r-a,this.m_stopRowFetch=!1),v&&(this.m_startRowHeader-=d,this.m_endRowHeader=this.m_endRowHeader-d-c,this.m_startRowHeaderPixel-=r,this.m_endRowHeaderPixel=this.m_endRowHeaderPixel-r-a,this.m_stopRowHeaderFetch=!1),E&&(this.m_startRowEndHeader-=d,this.m_endRowEndHeader=this.m_endRowEndHeader-d-c,this.m_startRowEndHeaderPixel-=r,this.m_endRowEndHeaderPixel=this.m_endRowEndHeaderPixel-r-a,this.m_stopRowEndHeaderFetch=!1);var L=this.getElementHeight(A)-I;this.setElementHeight(A,L),this.updateRowBanding()}else if("column"===s){y&&(this.m_startCol-=d,this.m_endCol=this.m_endCol-d-c,this.m_startColPixel-=r,this.m_endColPixel=this.m_endColPixel-r-a,this.m_stopColumnFetch=!1),v&&(this.m_startColHeader-=d,this.m_endColHeader=this.m_endColHeader-d-c,this.m_startColHeaderPixel-=r,this.m_endColHeaderPixel=this.m_endColHeaderPixel-r-a,this.m_stopColumnHeaderFetch=!1),E&&(this.m_startColEndHeader-=d,this.m_endColEndHeader=this.m_endColEndHeader-d-c,this.m_startColEndHeaderPixel-=r,this.m_endColEndHeaderPixel=this.m_endColEndHeaderPixel-r-a,this.m_stopColumnEndHeaderFetch=!1);var D=this.getElementWidth(A)-I;this.setElementWidth(A,D),this.updateColumnBanding()}this.applySelection(),this.m_utils.isTouchDevice()&&(this.GetSelection().length?this._moveTouchSelectionAffordance():this._removeTouchSelectionAffordance(!0)),this.resizeGrid(),this.m_resizeRequired=!0,this.fillViewport()},M.prototype._handleModelDeleteEvent=function(e,t,i){var s,n,o,l;Array.isArray(t)||(t=new Array(t),e=new Array(e));for(var r=0,a=0,h=0,d=0,c=0,m=0;m<t.length;m++){var u=t[m],_=e[m];if(null!=u.row){var p=0,g=u.row,f=this._isInViewport(_);f===M.BEFORE?(this._modifyAxisCellContextIndex("row",this.m_startRow,this.m_endRow-this.m_startRow+1,-1),d+=1,r+=this.m_avgRowHeight,this.m_startRowPixel-=this.m_avgRowHeight,this.m_endRowPixel-=this.m_avgRowHeight,-1!==this.m_endRowHeader&&(this.m_startRowHeaderPixel-=this.m_avgRowHeight,this.m_endRowHeaderPixel-=this.m_avgRowHeight),null!=(l=this._getAxisCellsByKey(g,"row"))&&this.pushRowsUp(this.m_startRow,this.m_avgRowHeight),null!=(n=this.m_rowHeader.firstChild.firstChild)&&this.pushRowHeadersUp(n,this.m_avgRowHeight),null!=(o=this.m_rowEndHeader.firstChild.firstChild)&&this.pushRowHeadersUp(o,this.m_avgRowHeight)):f===M.INSIDE?(c+=1,null!=(l=this._getAxisCellsByKey(g,"row"))&&(p=this.calculateRowHeight(l[0]),_=l[0][this.getResources().getMappedAttribute("context")].indexes.row,this._modifyAxisCellContextIndex("row",_+1,this.m_endRow-_,-1),this._removeFromArray(l),this.pushRowsUp(_,p),this.m_endRowPixel-=p),null!=(n=this._findHeaderByKey(g,this.m_rowHeader,this.getMappedStyle("rowheadercell")))&&(p=this.calculateRowHeaderHeight(n),s=n.nextSibling,this._remove(n),this.pushRowHeadersUp(s,p),this.m_endRowHeaderPixel-=p),null!=(o=this._findHeaderByKey(g,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")))&&(p=this.calculateRowHeaderHeight(o),s=o.nextSibling,this._remove(o),this.pushRowHeadersUp(s,p),this.m_endRowEndHeaderPixel-=p),a+=p):"scroll"===this.m_options.getScrollPolicy()&&(h+=this.m_avgRowHeight)}}this._refreshDatabodyMap(),this.m_startRow-=d,this.m_endRow=this.m_endRow-d-c,-1!==this.m_endRowHeader&&(this.m_startRowHeader-=d,this.m_endRowHeader=this.m_endRowHeader-d-c),-1!==this.m_endRowEndHeader&&(this.m_startRowEndHeader-=d,this.m_endRowEndHeader=this.m_endRowEndHeader-d-c);var C=r+a+h,y=this.m_databody.firstChild,v=this.getElementHeight(y)-C;this.setElementHeight(y,v),this.resizeGrid(),i||!0===this.m_moveActive||(this.m_resizeRequired=!0,this.m_stopRowFetch=!1,-1!==this.m_endRowHeader&&(this.m_stopRowHeaderFetch=!1),-1!==this.m_endRowEndHeader&&(this.m_stopRowEndHeaderFetch=!1),this.fillViewport()),this.updateRowBanding()},M.prototype._handleModelDeleteEventWithAnimation=function(e,t){this._collapseRowsWithAnimation(e,t)},M.prototype._collapseRowsWithAnimation=function(e,t){var i,s,n,o,l,r,a,h;let d=e.indexes;if(0!==t.length){var c=this;c._signalTaskStart();var m=this.m_processingEventQueue?1:M.COLLAPSE_ANIMATION_DURATION,u=[],_=0,p=-1!==this.m_endRowHeader,g=-1!==this.m_endRowEndHeader,f=this.m_databody.firstChild,C=this._getIndex(this._getAxisCellsByKey(t[0].row,"row")[0],"row")-1;for(s=C;s>=this.m_startRow&&(i=this._getAxisCellsByIndex(s,"row"),!(this.getElementDir(i[0],"top")+this.getElementHeight(i[0])<this.m_currentScrollTop));s--)for(n=0;n<i.length;n++)this.changeStyleProperty(i[n],this.getCssSupport("z-index"),10);if(p)for(l=[],o=this._findHeaderByKey(t[0].row,this.m_rowHeader,this.getMappedStyle("rowheadercell")).previousSibling;o&&!(this.getElementDir(o,"top")+this.getElementHeight(o)<this.m_currentScrollTop);)this.changeStyleProperty(o,this.getCssSupport("z-index"),10),o=o.previousSibling;if(g)for(r=[],o=this._findHeaderByKey(t[0].row,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")).previousSibling;o&&!(this.getElementDir(o,"top")+this.getElementHeight(o)<this.m_currentScrollTop);)this.changeStyleProperty(o,this.getCssSupport("z-index"),10),o=o.previousSibling;for(s=0;s<t.length;s++){var y=t[s].row;if((i=this._getAxisCellsByKey(y,"row")).length)for(u.push(i),_+=this.getElementHeight(i[0]),n=0;n<i.length;n++)this.setElementDir(i[n],this.getElementDir(i[n],"top")-_,"top"),this.addTransformMoveStyle(i[n],0,0,"linear",0,_,0);p&&null!=(a=this._findHeaderByKey(y,this.m_rowHeader,this.getMappedStyle("rowheadercell")))&&(l.push(a),this.setElementDir(a,this.getElementDir(a,"top")-_,"top"),this.addTransformMoveStyle(a,0,0,"linear",0,_,0)),g&&null!=(h=this._findHeaderByKey(y,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")))&&(r.push(h),this.setElementDir(h,this.getElementDir(h,"top")-_,"top"),this.addTransformMoveStyle(h,0,0,"linear",0,_,0))}for(s=C+t.length+1;s<=this.m_endRow;s++){for(i=this._getAxisCellsByIndex(s,"row"),n=0;n<i.length;n++)this.setElementDir(i[n],this.getElementDir(i[n],"top")-_,"top"),this.addTransformMoveStyle(i[n],0,0,"linear",0,_,0);p&&(a=a.nextSibling,this.setElementDir(a,this.getElementDir(a,"top")-_,"top"),this.addTransformMoveStyle(a,0,0,"linear",0,_,0)),g&&(h=h.nextSibling,this.setElementDir(h,this.getElementDir(h,"top")-_,"top"),this.addTransformMoveStyle(h,0,0,"linear",0,_,0))}var v=this._getCellByIndex(this.createIndex(this.m_endRow,this.m_endCol));c._onTransitionEnd(v,function(){u.length&&c._modifyAxisCellContextIndex("row",C+t.length+1,c.m_endRow-(C+t.length),-1*t.length),p&&l.length&&c._modifyAxisHeaderContextIndex("row",C+t.length+1,c.m_endRow-(C+t.length),-1*t.length),g&&r.length&&c._modifyAxisHeaderContextIndex("rowEnd",C+t.length+1,c.m_endRow-(C+t.length),-1*t.length);for(var e=0;e<u.length;e++){for(var i=0;i<u[e].length;i++)c._remove(u[e][i]);p&&c._remove(l[e]),g&&c._remove(r[e])}c._adjustActive("delete",d),c._refreshDatabodyMap(),c._isEditOrEnter()&&(c._highlightActiveObject(c.m_active,c.m_prevActive),c._updateEdgeCellBorders("")),c.m_endRow-=u.length,c.m_endRowPixel-=_,c.m_stopRowFetch=!1,p&&(c.m_endRowHeader-=l.length,c.m_endRowHeaderPixel-=_,c.m_stopRowHeaderFetch=!1),g&&(c.m_endRowEndHeader-=l.length,c.m_endRowEndHeaderPixel-=_,c.m_stopRowEndHeaderFetch=!1),c.setElementHeight(f,c.m_endRowPixel-c.m_startRowPixel),c.resizeGrid(),c.updateRowBanding(),null==c.m_modelEvents||0!==c.m_modelEvents.length||c.m_moveActive||c.fillViewport(),c._handleAnimationEnd()},m),this.m_animating=!0,setTimeout(function(){for(s=C+1;s<=c.m_endRow;s++){for(i=c._getAxisCellsByIndex(s,"row"),n=0;n<i.length;n++)c.addTransformMoveStyle(i[n],m+"ms",0,"ease-out",0,0,0);p&&(a=c._getHeaderByIndex(s,0,c.m_rowHeader,c.m_rowHeaderLevelCount,c.m_startRowHeader),c.addTransformMoveStyle(a,m+"ms",0,"ease-out",0,0,0)),g&&(h=c._getHeaderByIndex(s,0,c.m_rowEndHeader,c.m_rowEndHeaderLevelCount,c.m_startRowEndHeader),c.addTransformMoveStyle(h,m+"ms",0,"ease-out",0,0,0))}},0)}},M.prototype._handleAnimationEnd=function(){var e,t=this.m_databody.firstChild,i=this.m_rowHeader.firstChild,s=this.m_rowEndHeader.firstChild;for(e=0;e<t.childNodes.length;e++)this.removeTransformMoveStyle(t.childNodes[e]),this.changeStyleProperty(t.childNodes[e],this.getCssSupport("z-index"),null,"remove");if(-1!==this.m_endRowHeader)for(e=0;e<i.childNodes.length;e++)this.removeTransformMoveStyle(i.childNodes[e]),this.changeStyleProperty(i.childNodes[e],this.getCssSupport("z-index"),null,"remove");if(-1!==this.m_endRowEndHeader)for(e=0;e<s.childNodes.length;e++)this.removeTransformMoveStyle(s.childNodes[e]),this.changeStyleProperty(s.childNodes[e],this.getCssSupport("z-index"),null,"remove");this.m_animating=!1,this._runModelEventQueue(),this._signalTaskEnd()},M.prototype._getCellOrHeaderByKey=function(e,t){var i=null,s=this._getAxisCellsByKey(e,t,!0);return null!=s&&s.length>0&&(i=s[0]),null==i&&("row"===t?null==(i=this._findHeaderByKey(e,this.m_rowHeader,this.getMappedStyle("rowheadercell")))&&(i=this._findHeaderByKey(e,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell"))):"column"===t&&null==(i=this._findHeaderByKey(e,this.m_colHeader,this.getMappedStyle("colheadercell")))&&(i=this._findHeaderByKey(e,this.m_colEndHeader,this.getMappedStyle("colendheadercell")))),i},M.prototype._findHeaderByKey=function(e,t,i){if(null==t)return null;var s;s=t.getElementsByClassName?t.getElementsByClassName(i):t.childNodes;for(var n=0;n<s.length;n++){var o=s[n],l=this._getKey(o);if(this._shallowThenDeepCompare(l,e))return o}return null},M.prototype._handleModelRefreshEvent=function(){var e=this.getVisibility();this.m_focusOnRefresh=this.m_root.contains(document.activeElement),this.m_updateScrollPostionOnRefreshCallback(),e===M.VISIBILITY_STATE_VISIBLE?(this.empty(),null!=this.m_root.offsetParent?this.refresh(this.m_root):this.setVisibility(M.VISIBILITY_STATE_REFRESH)):e===M.VISIBILITY_STATE_HIDDEN&&(this.empty(),this.setVisibility(M.VISIBILITY_STATE_REFRESH))},M.prototype._handleModelSyncEvent=function(e){var t=e.pageSize;this.m_fetching={},this.m_startRow=0,this.m_endRow=-1,this.m_startRowHeader=0,this.m_endRowHeader=-1,this.m_startRowEndHeader=0,this.m_endRowEndHeader=-1,this.m_startRowPixel=0,this.m_endRowPixel=0,this.m_startRowHeaderPixel=0,this.m_endRowHeaderPixel=0,this.m_startRowEndHeaderPixel=0,this.m_endRowEndHeaderPixel=0,this.m_startCol=0,this.m_endCol=-1,this.m_startColHeader=0,this.m_endColHeader=-1,this.m_startColEndHeader=0,this.m_endColEndHeader=-1,this.m_startColPixel=0,this.m_endColPixel=0,this.m_startColHeaderPixel=0,this.m_endColHeaderPixel=0,this.m_startColEndHeaderPixel=0,this.m_endColEndHeaderPixel=0,this.m_rowHeaderLevelCount=void 0,this.m_columnHeaderLevelCount=void 0,this.m_rowEndHeaderLevelCount=void 0,this.m_columnEndHeaderLevelCount=void 0,this.m_avgRowHeight=void 0,this.m_avgColWidth=void 0,this.m_isEstimateRowCount=void 0,this.m_isEstimateColumnCount=void 0,this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1,this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1,this._clearScrollPositionKeys(),this.m_selection=null,this.m_selectionRange=null,this.m_active=null,this.m_prevActive=null,this.m_trueIndex={},null!=this.m_empty&&(this.m_root.removeChild(this.m_empty),this.m_empty=null),this._showHeader(this.m_rowHeader),this._showHeader(this.m_colHeader),this._showHeader(this.m_rowEndHeader),this._showHeader(this.m_colEndHeader),this._emptyHeaders(),this._emptyHeaderLabels();var i=this.m_databody.firstChild;null!=i&&this._emptyDatabody(i),this.m_initialized=!1,this.fetchHeaders("row",0,this.m_rowHeader,this.m_rowEndHeader,t,{success:function(e,t,i){this.handleHeadersFetchSuccess(e,t,i,!1)}}),this.fetchHeaders("column",0,this.m_colHeader,this.m_colEndHeader,void 0,{success:function(e,t,i){this.handleHeadersFetchSuccess(e,t,i,!1)}}),this.fetchCells(this.m_databody,0,0,t,null,{success:function(e,t){this.handleCellsFetchSuccess(e,t)}})},M.prototype._emptyHeaders=function(){var e=this.m_rowHeader.firstChild,t=this.m_rowEndHeader.firstChild;null!=e&&this.m_utils.empty(e),null!=t&&this.m_utils.empty(t);var i=this.m_colHeader.firstChild,s=this.m_colEndHeader.firstChild;null!=i&&this.m_utils.empty(i),null!=s&&this.m_utils.empty(s)},M.prototype._emptyHeaderLabels=function(){var e=this.m_headerLabels.row,t=this.m_headerLabels.rowEnd,i=this.m_headerLabels.column,s=this.m_headerLabels.columnEnd;e&&e.length&&e.forEach(e=>{this.m_utils.empty(e)}),t&&t.length&&t.forEach(e=>{this.m_utils.empty(e)}),i&&i.length&&i.forEach(e=>{this.m_utils.empty(e)}),s&&s.length&&s.forEach(e=>{this.m_utils.empty(e)})},M.prototype._setActiveByIndex=function(e,t,i,s,n){return this._setActive(this._getCellByIndex(e),{type:"cell",indexes:e},t,i,s,n)},M.prototype._updateActive=function(e,t,i){var s;if(null==e)this._setActive(null,null,null,!0,!1,i);else if(null!=e.keys)s=this._getCellByKeys(e.keys);else if(null!=e.indexes)s=this._getCellByIndex(e.indexes);else if(null!=e.axis){var n=null==e.level?0:e.level;"column"===e.axis?null!=e.key?s=this._findHeaderByKey(e.key,this.m_colHeader,this.getMappedStyle("colheadercell")):null!=e.index&&(s=this._getHeaderByIndex(e.index,n,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader)):"row"===e.axis?null!=e.key?s=this._findHeaderByKey(e.key,this.m_rowHeader,this.getMappedStyle("rowheadercell")):null!=e.index&&(s=this._getHeaderByIndex(e.index,n,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader)):"columnEnd"===e.axis?null!=e.key?s=this._findHeaderByKey(e.key,this.m_colEndHeader,this.getMappedStyle("colendheadercell")):null!=e.index&&(s=this._getHeaderByIndex(e.index,n,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader)):"rowEnd"===e.axis&&(null!=e.key?s=this._findHeaderByKey(e.key,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")):null!=e.index&&(s=this._getHeaderByIndex(e.index,n,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader)))}null!=s&&(t||(this.m_shouldFocus=!1),this._setActive(s,e,null,!0,!1,i))},M.prototype._setActive=function(e,t,i,s,n,o){var l;if(null==t||o||this._scrollToActive(t),null!=e)if(l=this._createActiveObject(e),this._compareActive(l,this.m_active)){if(n||this._fireBeforeCurrentCellEvent(l,this.m_active,i))return this.m_prevActive=this.m_active,this.m_active=l,i&&"mousedown"===i.type&&(this.m_trueIndex=null),s&&this._isSelectionEnabled()&&this._clearSelection(i),this._unhighlightActiveObject(this.m_prevActive),this._highlightActiveObject(this.m_active,this.m_prevActive),this._manageMoveCursor(),this._isGridEditable()&&"cell"===l.type&&(this._setEditableClone(e),this._updateEdgeCellBorders("")),n||this._fireCurrentCellEvent(l,i),!0}else this._highlightActive();else if(!this.m_scrollIndexAfterFetch&&!this.m_scrollHeaderAfterFetch)return(n||this._fireBeforeCurrentCellEvent(l,this.m_active,i))&&(this.m_prevActive=this.m_active,this.m_active=null,this._unhighlightActiveObject(this.m_prevActive),n||this._fireCurrentCellEvent(l,i)),!0;return!1},M.prototype._createActiveObject=function(e){var t=e[this.getResources().getMappedAttribute("context")];return this.m_utils.containsCSSClassName(e,this.getMappedStyle("headercell"))||this.m_utils.containsCSSClassName(e,this.getMappedStyle("endheadercell"))?{type:"header",axis:t.axis,index:this.getHeaderCellIndex(e),key:t.key,level:t.level}:this.m_utils.containsCSSClassName(e,this.getMappedStyle("headerlabel"))?{type:"label",axis:t.axis,level:t.level}:{type:"cell",indexes:{row:t.indexes.row,column:t.indexes.column},keys:{row:t.keys.row,column:t.keys.column},extents:{row:t.extents.row,column:t.extents.column}}},M.prototype._getActiveElement=function(){return this._getElementFromActiveObject(this.m_active)},M.prototype._getElementFromActiveObject=function(e){if(null!=e){if("header"!==e.type)return"label"===e.type?this._getLabel(e.axis,e.level):this._getCellByIndex(e.indexes);if("row"===e.axis)return this._findHeaderByKey(e.key,this.m_rowHeader,this.getMappedStyle("rowheadercell"));if("column"===e.axis)return this._findHeaderByKey(e.key,this.m_colHeader,this.getMappedStyle("colheadercell"));if("rowEnd"===e.axis)return this._findHeaderByKey(e.key,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell"));if("columnEnd"===e.axis)return this._findHeaderByKey(e.key,this.m_colEndHeader,this.getMappedStyle("colendheadercell"))}return null},M.prototype._compareActive=function(e,t){if(null==e&&null==t)return!1;if(null==e&&null!=t||null!=e&&null==t)return!0;if(e.type!==t.type)return!0;if("header"===e.type){if(e.index!==t.index||e.key!==t.key||e.axis!==t.axis||e.level!==t.level)return!0}else if("label"===e.type){if(e.axis!==t.axis||e.level!==t.level)return!0}else if(e.indexes.row!==t.indexes.row||e.indexes.column!==t.indexes.column||e.keys.row!==t.keys.row||e.keys.column!==t.keys.column)return!0;return!1},M.prototype._fireBeforeCurrentCellEvent=function(e,t,i){var s={event:i,ui:{currentCell:e,previousCurrentCell:t}};return this.fireEvent("beforeCurrentCell",s)},M.prototype._fireCurrentCellEvent=function(e,t){var i={event:t,ui:e};return this.fireEvent("currentCell",i)},M.prototype._isDatabodyCellActive=function(){return null!=this.m_active&&"cell"===this.m_active.type},M.prototype._updateActiveContext=function(e,t){var i,s,n,o={};if("header"===e.type){i=e.axis;var l=e.index;s=e.level,"row"===e.axis?(this.m_rowHeaderLevelCount>1&&(null!=t&&s===t.level&&i===t.axis||(o.level=s)),null!=t&&l===t.index&&i===t.axis||(o.rowHeader=l)):"column"===i?(this.m_columnHeaderLevelCount>1&&(null!=t&&s===t.level&&i===t.axis||(o.level=s)),null!=t&&l===t.index&&i===t.axis||(o.columnHeader=l)):"rowEnd"===e.axis?(this.m_rowEndHeaderLevelCount>1&&(null!=t&&s===t.level&&i===t.axis||(o.level=s)),null!=t&&l===t.index&&i===t.axis||(o.rowEndHeader=l)):"columnEnd"===i&&(this.m_columnEndHeaderLevelCount>1&&(null!=t&&s===t.level&&i===t.axis||(o.level=s)),null!=t&&l===t.index&&i===t.axis||(o.columnEndHeader=l)),this._updateContextInfo(o,n)}else"cell"===e.type?(null==t||"cell"!==t.type||null==e||this.m_externalFocus||(e.indexes.row===t.indexes.row?n="row":e.indexes.column===t.indexes.column&&(n="column")),this._updateContextInfo(e,n)):"label"===e.type&&(i=e.axis,s=e.level,(null==t||"label"!==t.type||"label"===t.type&&t.axis!==i||this.m_externalFocus)&&("column"===i?o.columnHeaderLabel=s:"row"===i?o.rowHeaderLabel=s:"rowEnd"===i?o.rowEndHeaderLabel=s:"columnEnd"===i&&(o.columnEndHeaderLabel=s)),this._updateContextInfo(o,n))},M.prototype.handleDatabodyClickActive=function(e){var t=e.target,i=this.findCell(t);null!=i&&this._setActive(i,this._createActiveObject(i),e)},M.prototype.handleHeaderClickActive=function(e,t){var i=e.target,s=this.findHeader(i);null!=s&&(t||this._clearSelection(e),this._setActive(s,this._createActiveObject(s),e))},M.prototype._scrollToActive=function(e){"header"===e.type?this.scrollToHeader(e):"cell"===e.type&&this.scrollToIndex(e.indexes)},M.prototype._getCellByKeys=function(e){if(null==e||null==e.row||null==e.column||null==this.m_databody||null==this.m_databody.firstChild)return null;for(var t=this.m_databody.firstChild.getElementsByClassName(this.getMappedStyle("cell")),i=0;i<t.length;i++){var s=t[i],n=this._getKey(s,"row");if(this._shallowThenDeepCompare(n,e.row)){var o=this._getKey(s,"column");if(this._shallowThenDeepCompare(o,e.column))return s}}return null},M.prototype._shallowThenDeepCompare=function(e,t){return e===t||this._compareValuesCallback(e,t)},M.prototype.getCellKeys=function(e){var t=e[this.getResources().getMappedAttribute("context")];return this.createIndex(t.keys.row,t.keys.column)},M.prototype.getCellIndexes=function(e){var t=e[this.getResources().getMappedAttribute("context")];return this.createIndex(t.indexes.row,t.indexes.column)},M.prototype.getCellExtents=function(e){var t=e[this.getResources().getMappedAttribute("context")];return this.createIndex(t.extents.row,t.extents.column)},M.prototype.getCellEndIndexes=function(e){var t=this.getCellIndexes(e),i=this.getCellExtents(e);return this.createIndex(t.row+(i.row-1),t.column+(i.column-1))},M.prototype._getIndex=function(e,t){if(null!=e){if(null==t||!this.m_utils.containsCSSClassName(e,this.getMappedStyle("cell")))return this.getHeaderCellIndex(e);var i=e[this.getResources().getMappedAttribute("context")];if("row"===t)return i.indexes.row;if("column"===t)return i.indexes.column}return null},M.prototype._getExtent=function(e,t){if(null!=e){if(null==t||!this.m_utils.containsCSSClassName(e,this.getMappedStyle("cell")))return parseInt(this._getAttribute(e,"extent",!0),10);var i=e[this.getResources().getMappedAttribute("context")];if("row"===t)return i.extents.row;if("column"===t)return i.extents.column}return null},M.prototype.getHeaderCellIndex=function(e){var t,i,s;switch(this.getHeaderCellAxis(e)){case"column":t=this.m_columnHeaderLevelCount,i=this.m_startColHeader;break;case"row":t=this.m_rowHeaderLevelCount,i=this.m_startRowHeader;break;case"columnEnd":t=this.m_columnEndHeaderLevelCount,i=this.m_startColEndHeader;break;case"rowEnd":t=this.m_rowEndHeaderLevelCount,i=this.m_startRowEndHeader;break;default:return-1}if(t>1){if(s=this._getAttribute(e.parentNode,"start",!0),e===e.parentNode.firstChild)return s;s-=1}else s=i;for(;e.previousSibling;)s+=1,e=e.previousSibling;return s},M.prototype.getHeaderCellAxis=function(e){return this.m_utils.containsCSSClassName(e,this.getMappedStyle("colheadercell"))?"column":this.m_utils.containsCSSClassName(e,this.getMappedStyle("rowheadercell"))?"row":this.m_utils.containsCSSClassName(e,this.getMappedStyle("rowendheadercell"))?"rowEnd":this.m_utils.containsCSSClassName(e,this.getMappedStyle("colendheadercell"))?"columnEnd":null},M.prototype.getHeaderCellLevel=function(e){if(this.m_utils.containsCSSClassName(e,this.getMappedStyle("colheadercell"))){if(1===this.m_columnHeaderLevelCount)return 0}else if(this.m_utils.containsCSSClassName(e,this.getMappedStyle("rowheadercell"))){if(1===this.m_rowHeaderLevelCount)return 0}else if(this.m_utils.containsCSSClassName(e,this.getMappedStyle("colendheadercell"))){if(1===this.m_columnEndHeaderLevelCount)return 0}else if(this.m_utils.containsCSSClassName(e,this.getMappedStyle("rowendheadercell"))&&1===this.m_rowEndHeaderLevelCount)return 0;var t=this._getAttribute(e.parentNode,"level",!0);return e===e.parentNode.firstChild?t:t+this.getHeaderCellDepth(e.parentNode.firstChild)},M.prototype.getHeaderCellDepth=function(e){return this._getAttribute(e,"depth",!0)},M.prototype.getHeaderLabelLevel=function(e){let t=e[this.getResources().getMappedAttribute("context")];return t?t.level:null},M.prototype.getHeaderLabelAxis=function(e){let t=e[this.getResources().getMappedAttribute("context")];return t?t.axis:null},M.prototype._getResizeHeaderMode=function(e){var t="row";return(this.m_utils.containsCSSClassName(e,this.getMappedStyle("colheadercell"))||this.m_utils.containsCSSClassName(e,this.getMappedStyle("colendheadercell"))||this.m_utils.containsCSSClassName(e,this.getMappedStyle("columnheaderlabel"))||this.m_utils.containsCSSClassName(e,this.getMappedStyle("columnendheaderlabel")))&&(t="column"),t},M.prototype.findCellOrHeader=function(e){var t=this.findCell(e);return null==t&&(t=this.findHeader(e)),t},M.prototype.findCell=function(e){return this.find(e,"cell")},M.prototype.findLabel=function(e){return this.find(e,"headerlabel")},M.prototype.find=function(e,t,i){return null==e||e===this.getRootElement()?null:(null==i&&(i=this.getMappedStyle(t)),null==i?null:this.m_utils.containsCSSClassName(e,i)?e:this.find(e.parentNode,t,i))},M.prototype._highlightActive=function(e){this._highlightActiveObject(this.m_active,this.m_prevActive,e)},M.prototype._unhighlightActive=function(e){this._unhighlightActiveObject(this.m_active,e)},M.prototype._highlightActiveObject=function(e,t,i){if(null==i&&this.m_utils.shouldOffsetOutline()&&(i=["offsetOutline"]),null!=e){var s=this._getElementFromActiveObject(e);null!=s&&(this.m_focusInHandler(s),null!=i&&this._highlightElement(s,i),this._isCellEditable()&&"cell"===e.type&&this._applyBorderClassesAroundRange(s,{startIndex:e.indexes},!0,"Edit"),this._setAriaProperties(e,t,s))}},M.prototype._unhighlightActiveObject=function(e,t){if(null==t&&this.m_utils.shouldOffsetOutline()&&(t=["offsetOutline"]),null!=e){var i=this._getElementFromActiveObject(e);null!=i&&(this.m_focusOutHandler(i),null!=t&&this._unhighlightElement(i,t),this._isGridEditable()&&"cell"===e.type&&this._applyBorderClassesAroundRange(i,{startIndex:e.indexes},!1,"Edit"),this._unsetAriaProperties(i))}},M.prototype._highlightCellsAlongAxis=function(e,t,i,s,n){for(var o="key"===i?this._getAxisCellsByKey(e,t):this._getAxisCellsByIndex(e,t),l=0;l<o.length;l++)"add"===s?this._highlightElement(o[l],n):this._unhighlightElement(o[l],n)},M.prototype._highlightElement=function(e,t){for(var i=0;i<t.length;i++){var s=this.getMappedStyle(t[i]);this.m_utils.addCSSClassName(e,s)}},M.prototype._unhighlightElement=function(e,t){for(var i=0;i<t.length;i++){var s=this.getMappedStyle(t[i]);this.m_utils.removeCSSClassName(e,s)}},M.prototype._unhighlightElementsByClassName=function(e,t){if(e.length&&t.length)for(var i=0;i<e.length;i++)this._unhighlightElement(e[i],t)},M.prototype._setAriaProperties=function(e,t,i){var s=this.getLabelledBy(e,t,i);this._updateActiveContext(e,t),i.setAttribute("tabIndex",0),i.setAttribute("aria-labelledby",s),null!=this.m_cellToFocus&&this.m_cellToFocus===i||!1===this.m_shouldFocus||i.focus(),this.m_shouldFocus=null},M.prototype._unsetAriaProperties=function(e){null!=e&&(e.setAttribute("tabIndex",-1),e.removeAttribute("aria-labelledby"))},M.prototype.getLabelledBy=function(e,t,i){var s,n,o,l,r="",a=[];const h=i[this.getResources().getMappedAttribute("metadata")];if("header"===e.type){null==t||"header"!==t.type||this.m_externalFocus||("row"===t.axis?s=this._getHeaderByIndex(t.index,t.level,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader):"column"===t.axis?s=this._getHeaderByIndex(t.index,t.level,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader):"rowEnd"===t.axis?s=this._getHeaderByIndex(t.index,t.level,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader):"columnEnd"===t.axis&&(s=this._getHeaderByIndex(t.index,t.level,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader))),r=[this.createSubId("context"),this._getHeaderAndParentIds(i,s)].join(" ");var d=i.getAttribute(this.getResources().getMappedAttribute("sortDir"));"ascending"===d?(n="accessibleSortAscending",r=r+" "+this.createSubId("state")):"descending"===d?(n="accessibleSortDescending",r=r+" "+this.createSubId("state")):this._getAttribute(i,"sortable")&&(n="accessibleSortable",r=r+" "+this.createSubId("state")),null!=n&&a.push({key:n,args:{id:""}}),h&&h.metadata&&("expanded"===h.metadata.expanded?a.push({key:"accessibleExpanded",args:{}}):"collapsed"===h.metadata.expanded&&a.push({key:"accessibleCollapsed",args:{}})),i.setAttribute("tabIndex",0)}else if("label"===e.type)r=[this.createSubId("context"),this._getActiveElement().id].join(" ");else{null!=t&&("header"===t.type?(o="row"===t.axis?t.index:null,l="column"===t.axis?t.index:null):"cell"===t.type&&(o=t.indexes.row,l=t.indexes.column));var m=this._getHeaderLabelledBy("row",this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader,this.m_endRowHeader,e.indexes.row,o,i),u=this._getHeaderLabelledBy("rowEnd",this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader,this.m_endRowEndHeader,e.indexes.row,o,i),_=this._getHeaderLabelledBy("column",this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader,this.m_endColHeader,e.indexes.column,l,i),p=this._getHeaderLabelledBy("columnEnd",this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader,this.m_endColEndHeader,e.indexes.column,l,i),g=e.extents.row,f=e.extents.column;g>1&&a.push({key:"accessibleRowSpanContext",args:{extent:g}}),f>1&&a.push({key:"accessibleColumnSpanContext",args:{extent:f}}),r=(r=[this.createSubId("context"),m,u,_,p,i.id,this.createSubId("state")].join(" ")).replace(/ +(?= )/g,"")}!0===this.m_externalFocus&&(null!=this.m_root.id&&(r=[this.m_root.id,r].join(" ")),r=[this.createSubId("summary"),r].join(" "),this.m_externalFocus=!1);let C=c.getActionableElementsInNode(i);return C&&C.length>0&&a.push({key:"accessibleContainsControls"}),this._updateStateInfo(a),r},M.prototype.getHeaderFromCell=function(e,t,i){var s,n,o,l,r,a;return"row"===t?null!=this.m_rowHeader&&(s=this._getIndex(e,"row"),n=this._getExtent(e,"row"),o=this.m_rowHeaderLevelCount-1,l=this.m_rowHeader,r=this.m_rowHeaderLevelCount,a=this.m_startRowHeader):"column"===t?null!=this.m_colHeader&&(s=this._getIndex(e,"column"),n=this._getExtent(e,"column"),o=this.m_columnHeaderLevelCount-1,l=this.m_colHeader,r=this.m_columnHeaderLevelCount,a=this.m_startColHeader):"rowEnd"===t?null!=this.m_rowEndHeader&&(s=this._getIndex(e,"row"),n=this._getExtent(e,"row"),o=this.m_rowEndHeaderLevelCount-1,l=this.m_rowEndHeader,r=this.m_rowEndHeaderLevelCount,a=this.m_startRowEndHeader):"columnEnd"===t&&null!=this.m_colEndHeader&&(s=this._getIndex(e,"column"),n=this._getExtent(e,"column"),o=this.m_columnEndHeaderLevelCount-1,l=this.m_colEndHeader,r=this.m_columnEndHeaderLevelCount,a=this.m_startColEndHeader),null!=s&&null!=o&&s>-1?(i&&(s+=n-1),this._getHeaderByIndex(s,o,l,r,a)):null},M.prototype._trimRangeForSelectionMode=function(e){return"row"===this.m_options.getSelectionMode()?this.createRange(this.createIndex(e.startIndex.row),this.createIndex(e.endIndex.row)):e},M.prototype.createRange=function(e,t,i,s){var n,o,l,r,a,h,d,c;return t&&(e.row<t.row||-1===t.row?(n=e.row,o=t.row,i&&(a=i.row,h=s.row)):(n=t.row,o=e.row,i&&(a=s.row,h=i.row)),isNaN(e.column)||isNaN(t.column)?(e={row:n},t={row:o},i&&(i={row:a,column:d},s={row:h,column:c})):(e.column<t.column||-1===t.column?(l=e.column,r=t.column,i&&(d=i.column,c=s.column)):(l=t.column,r=e.column,i&&(d=s.column,c=i.column)),e={row:n,column:l},t={row:o,column:r},i&&(i={row:a,column:d},s={row:h,column:c}))),i?{startIndex:e,endIndex:t,startKey:i,endKey:s}:{startIndex:e,endIndex:t}},M.prototype._createRangeWithKeys=function(e,t,i){this._keys(e,this._createRangeStartKeyCallback.bind(this,t,i))},M.prototype._createRangeStartKeyCallback=function(e,t,i,s){null!=e&&null!=s&&e.row===s.row&&e.column===s.column?this._createRangeEndKeyCallback(i,s,t,i,s):e?this._keys(e,this._createRangeEndKeyCallback.bind(this,i,s,t)):t.call(this,{startIndex:s,endIndex:s,startKey:i,endKey:i})},M.prototype._createRangeEndKeyCallback=function(e,t,i,s,n){i.call(this,this.createRange(t,n,e,s))},M.prototype.getEndIndex=function(e){return null==e.endIndex?e.startIndex:e.endIndex},M.prototype.getElementsInRange=function(e,t,i,s,n){var o,l,r,a,h;null==t&&(t=this.m_startRow),null==i&&(i=this.m_endRow+1);var d=e.startIndex,c=this.getEndIndex(e),m=d.row,u=c.row;if(-1===u&&(u=Number.MAX_VALUE),i<m||u<t)return null;if(!isNaN(d.column)&&!isNaN(c.column)&&(o=d.column,-1===(l=c.column)&&(l=Number.MAX_VALUE),this.m_endCol+1<o||l<this.m_startCol))return null;var _=[];if(null==this.m_databody.firstChild)return null;if(m=Math.max(this.m_startRow,m),u=Math.min(this.m_endRow,u),isNaN(o)||isNaN(l))for(o=Math.max(0,this.m_startCol),l=Math.max(o,this.m_endCol),r=m;r<=u;r+=1)for(a=o;a<=l;a+=1)null!=(h=this._getCellByIndex(this.createIndex(r,a)))&&-1===_.indexOf(h)&&_.push(h);else for(o=Math.max(this.m_startCol,o),l=Math.min(this.m_endCol,l),r=m;r<=u;r+=1)for(a=o;a<=l;a+=1)null!=(h=this._getCellByIndex(this.createIndex(r,a)))&&-1===_.indexOf(h)&&_.push(h);return _},M.prototype._getRangeInView=function(e){let t=e.startIndex,i=this.getEndIndex(e),s=t.row,n=i.row,o=t.column,l=i.column;return-1===n&&(n=Number.MAX_VALUE),-1===l&&(l=Number.MAX_VALUE),s=Math.max(this.m_startRow,s),n=Math.min(this.m_endRow,n),(isNaN(t.column)||isNaN(i.column))&&(o=Math.max(0,this.m_startCol),l=Math.max(o,this.m_endCol)),o=Math.max(this.m_startCol,o),l=Math.min(this.m_endCol,l),this.createRange(this.createIndex(s,o),this.createIndex(n,l))},M.prototype._applyBorderClassesAroundRange=function(e,t,i,s){if(null==this.m_databody.firstChild||null==e||0===e.length)return;let n=this._getRangeInView(t),o=n.startIndex.row,l=n.startIndex.column,r=n.endIndex.row,a=n.endIndex.column,h=0===o,d=0===l,c=h?0:o-1,m=r,u=d?0:l-1,_=a;for(let e=o;e<=r;e++){let t=this._getCellByIndex(this.createIndex(e,u)),n=this._getCellByIndex(this.createIndex(e,_)),o=(d?"start":"end")+s,l="end"+s;i?(this._highlightElement(t,[o]),this._highlightElement(n,[l])):(this._unhighlightElement(t,[o]),this._unhighlightElement(n,[l]))}for(let e=l;e<=a;e++){let t=this._getCellByIndex(this.createIndex(c,e)),n=this._getCellByIndex(this.createIndex(m,e)),o=(h?"top":"bottom")+s,l="bottom"+s;i?(this._highlightElement(t,[o]),this._highlightElement(n,[l])):(this._unhighlightElement(t,[o]),this._unhighlightElement(n,[l]))}},M.prototype.readCurrentContent=function(){var e,t;if(null==this.m_active)return!1;if("header"===this.m_active.type)e={},"row"===this.m_active.axis?(this.m_rowHeaderLevelCount>1&&(e.level=this.m_active.level),e.rowHeader=this.m_active.index):(this.m_columnHeaderLevelCount>1&&(e.level=this.m_active.level),e.columnHeader=this.m_active.index),t=this._getActiveElement();else if("cell"===this.m_active.type){if(e=this.m_active.indexes,this._isSelectionEnabled()&&this.isMultipleSelection()&&null!=this.m_selectionFrontier&&(e=this.m_selectionFrontier),null==e)return!1;var i=this.createRange(e),s=this.getElementsInRange(i);if(null==s||0===s.length)return!1;t=s[0]}else t=this._getActiveElement();this._updateActiveContext(this.m_active,this.m_prevActive),this.m_placeHolder.tabIndex=-1;var n=t.getAttribute("aria-labelledby");return this.m_placeHolder.setAttribute("aria-labelledby",n+" "+t.id),this.m_placeHolder===document.activeElement?t.focus():this.m_placeHolder.focus(),!0},M.prototype._enterActionableMode=function(e,t){return this._setFocusToFirstFocusableElement(e,t)&&(this.m_focusOutHandler(e),this.setActionableMode(!0)),!1},M.prototype._exitActionableMode=function(){if(this.isActionableMode()){var e=this._getActiveElement();this.setActionableMode(!1),c.disableAllFocusableElements(e),this.m_focusInHandler(e)}},M.prototype._reRenderCell=function(e,t,i,s){var n=this.getRendererOrTemplate("cell"),o=e[this.getResources().getMappedAttribute("context")],l=e[this.getResources().getMappedAttribute("metadata")];if(o.mode=t,this.m_utils.empty(e),this.m_utils.containsCSSClassName(e,i)?this.m_utils.removeCSSClassName(e,i):this.m_utils.addCSSClassName(e,i),s){for(;s.hasChildNodes();)e.appendChild(s.firstChild);this._destroyEditableClone()}else this._renderContent(n,o,e,o.data,this.buildCellTemplateContext(o,l))},M.prototype._setEditableClone=function(e){if(this._destroyEditableClone(),null!=e){var t=e.cloneNode(!1);t.removeAttribute("id"),this._createUniqueId(t),t[this.getResources().getMappedAttribute("context")]=e[this.getResources().getMappedAttribute("context")],t[this.getResources().getMappedAttribute("metadata")]=e[this.getResources().getMappedAttribute("metadata")],t[this.getResources().getMappedAttribute("context")].parentElement=t,this.m_root.appendChild(t),this._reRenderCell(t,"edit",this.getMappedStyle("cellEdit"),null),t.style.display="none",t[this.getResources().getMappedAttribute("context")].parentElement=e,this.m_editableClone=t}},M.prototype._destroyEditableClone=function(){this.m_editableClone&&(null!=this.m_editableClone.parentNode&&this.m_root.removeChild(this.m_editableClone),delete this.m_editableClone)},M.prototype.isArrowKey=function(e){return e===this.keyCodes.UP_KEY||e===this.keyCodes.DOWN_KEY||e===this.keyCodes.LEFT_KEY||e===this.keyCodes.RIGHT_KEY},M.prototype.createIndex=function(e,t){var i={};return void 0!==e&&(i.row=e),void 0!==t&&(i.column=t),i},M.prototype.checkCorners=function(e,t,i){return"column"===this.m_selectionFrontier.axis&&this.m_columnHeaderLevelCount!==this.m_selectionFrontier.level||"row"===this.m_selectionFrontier.axis&&this.m_rowHeaderLevelCount!==this.m_selectionFrontier.level||"rowEnd"===this.m_selectionFrontier.axis&&this.m_rowEndHeaderLevelCount!==this.m_selectionFrontier.level||"columnEnd"===this.m_selectionFrontier.axis&&this.m_columnEndHeaderLevelCount!==this.m_selectionFrontier.level||(-1!==e.indexOf("row")?t===i.startIndex.row&&this.m_selectionFrontier.end===i.endIndex.row||t===i.endIndex.row&&this.m_selectionFrontier.end===i.startIndex.row:-1!==e.indexOf("column")&&(t===i.startIndex.column&&this.m_selectionFrontier.end===i.endIndex.column||t===i.endIndex.column&&this.m_selectionFrontier.end===i.startIndex.column))},M.prototype.handleLabelFocusChange=function(e,t,i,s){var n,o,l,r,a;if(!this.isFetchComplete())return!0;this.getResources().isRTLMode()&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY));var h=this.m_active.axis,d=this.m_active.level;switch("column"===h?(l=this.m_colHeader,r=this.m_startColHeader,a=this.m_columnHeaderLevelCount):"row"===h&&(l=this.m_rowHeader,r=this.m_startRowHeader,a=this.m_rowHeaderLevelCount),"columnEnd"===h&&(e===this.keyCodes.DOWN_KEY?e=this.keyCodes.UP_KEY:e===this.keyCodes.UP_KEY&&(e=this.keyCodes.DOWN_KEY),l=this.m_colEndHeader,r=this.m_startColEndHeader,a=this.m_columnEndHeaderLevelCount),"rowEnd"===h&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY),l=this.m_rowEndHeader,r=this.m_startRowEndHeader,a=this.m_rowEndHeaderLevelCount),e){case this.keyCodes.DOWN_KEY:"row"!==h&&"rowEnd"!==h||(n=this._getHeaderByIndex(r,d,l,a,r),this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(n,{type:"header",index:r,level:d,axis:h},t)),"column"!==h&&"columnEnd"!==h||((n=this.m_headerLabels[h][d+1])?this._setActive(n,{type:"label",level:d+1,axis:h},t):"column"===h&&d===a-1&&this.m_headerLabels.row.length?(n=this.m_headerLabels.row[this.m_headerLabels.row.length-1],this._setActive(n,{type:"label",level:this.m_headerLabels.row.length-1,axis:"row"},t)):d===a-1&&(o="column"===h?this.m_startRowHeader:this.m_endRowHeader,n=this._getHeaderByIndex(o,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),n&&this._setActive(n,{type:"header",index:o,level:d,axis:"row"},t)));break;case this.keyCodes.UP_KEY:"row"===h&&d===a-1&&this.m_headerLabels.column.length&&(n=this.m_headerLabels.column[this.m_headerLabels.column.length-1],this._setActive(n,{type:"label",level:this.m_headerLabels.column.length-1,axis:"column"},t)),"column"!==h&&"columnEnd"!==h||(n=this.m_headerLabels[h][d-1])&&this._setActive(n,{type:"label",level:d-1,axis:h},t);break;case this.keyCodes.RIGHT_KEY:"row"!==h&&"rowEnd"!==h||((n=this.m_headerLabels[h][d+1])?this._setActive(n,{type:"label",level:d+1,axis:h},t):d===a-1&&(o="row"===h?this.m_startColHeader:this.m_endColHeader,(n=this._getHeaderByIndex(o,this.m_columnHeaderLevelCount,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader))&&(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(n,{type:"header",index:o,level:d,axis:"column"},t)))),"column"!==h&&"columnEnd"!==h||(n=this._getHeaderByIndex(r,d,l,a,r),this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(n,{type:"header",index:r,level:d,axis:h},t));break;case this.keyCodes.LEFT_KEY:"row"!==h&&"rowEnd"!==h||(n=this.m_headerLabels[h][d-1])&&this._setActive(n,{type:"label",level:d-1,axis:h},t)}return!0},M.prototype.handleHeaderFocusChange=function(e,t,i,s,n){var o,l,r,a,h,d,c,m,u;if(!this.isFetchComplete())return!0;this.getResources().isRTLMode()&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY));var _=this.m_active.axis,p=this.m_active.index,g=this.m_active.level,f=this._getActiveElement(),C=null!=f?this._getAttribute(f,"depth",!0):1;if(_||p||!this.m_active||(_=this.m_selectionFrontier.axis,p=this.m_active.indexes[_]),t.shiftKey&&!i&&this.m_selectionFrontier&&this.isMultipleSelection()&&(i=this.checkHeaderToDatabody(_,e)),!(i&&this.isArrowKey(e)&&this.isHeaderSelectionType(this.m_selectionFrontier)&&this.checkCorners(_,p,this.m_selection[this.m_selection.length-1]))||(_=this.m_selectionFrontier.axis,p=this.m_selectionFrontier.index,g=this.m_selectionFrontier.level,-1===p&&(p=this.m_active.indexes[_]),"cell"!==this.m_active.type||(e!==this.keyCodes.LEFT_KEY&&e!==this.keyCodes.RIGHT_KEY||-1===_.indexOf("row"))&&(e!==this.keyCodes.UP_KEY&&e!==this.keyCodes.DOWN_KEY||-1===_.indexOf("column")))){"column"===_?(h=this.m_colHeader,d=this.m_startColHeader,c=this.m_endColHeader,m=this.m_columnHeaderLevelCount,u=this.m_stopColumnHeaderFetch):"row"===_&&(h=this.m_rowHeader,d=this.m_startRowHeader,c=this.m_endRowHeader,m=this.m_rowHeaderLevelCount,u=this.m_stopRowHeaderFetch),"columnEnd"===_&&(e===this.keyCodes.DOWN_KEY?e=this.keyCodes.UP_KEY:e===this.keyCodes.UP_KEY&&(e=this.keyCodes.DOWN_KEY),h=this.m_colEndHeader,d=this.m_startColEndHeader,c=this.m_endColEndHeader,m=this.m_columnEndHeaderLevelCount,u=this.m_stopColumnEndHeaderFetch),"rowEnd"===_&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY),h=this.m_rowEndHeader,d=this.m_startRowEndHeader,c=this.m_endRowEndHeader,m=this.m_rowEndHeaderLevelCount,u=this.m_stopRowEndHeaderFetch),i&&this.isArrowKey(e)&&this.isHeaderSelectionType(this.m_selectionFrontier)&&(C=null!=(f=this._getHeaderByIndex(p,g,h,m,d))?this._getAttribute(f,"depth",!0):1);var y=this._isSelectionEnabled()?this.selectAndFocus.bind(this):this._setActiveByIndex.bind(this);switch(e){case this.keyCodes.LEFT_KEY:if("column"===_||"columnEnd"===_)if(p>0){if(s&&this.m_headerLabels[_][g]){this._setActive(this.m_headerLabels[_][g],{type:"label",level:g,axis:_},t);break}if("column"===_&&s&&this.m_headerLabels.row[this.m_rowHeaderLevelCount-1]){this._setActive(this.m_headerLabels.row[this.m_rowHeaderLevelCount-1],{type:"label",level:this.m_rowHeaderLevelCount-1,axis:"row"},t);break}if(1===m)r=p-1,l=null!=f?f.previousSibling:null,a=g;else if(r=null!=(l=this._getHeaderByIndex(p-1,g,h,m,d))?this._getAttribute(l.parentNode,"start",!0):p-1,a=null!=l?this.getHeaderCellLevel(l):g,r<0)break;i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&"row"!==this.m_options.getSelectionMode()&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive())}else this.m_headerLabels[_][g]?this._setActive(this.m_headerLabels[_][g],{type:"label",level:g,axis:_},t):"column"===_&&this.m_headerLabels.row[this.m_rowHeaderLevelCount-1]&&this._setActive(this.m_headerLabels.row[this.m_rowHeaderLevelCount-1],{type:"label",level:this.m_rowHeaderLevelCount-1,axis:"row"},t);else("row"===_||"rowEnd"===_)&&g>0&&(l=this._getHeaderByIndex(p,g-1,h,m,d),r=this._getAttribute(l.parentNode,"start",!0),a=this.getHeaderCellLevel(l),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive()));break;case this.keyCodes.RIGHT_KEY:if("rowEnd"===_&&s&&-1!==this.m_endRowHeader)l=this._getHeaderByIndex(p,this.m_rowHeaderLevelCount,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:p,level:this.m_rowHeaderLevelCount,axis:_},t),this._highlightActive());else if("row"===_&&s&&-1!==this.m_endRowEndHeader)l=this._getHeaderByIndex(p,this.m_rowEndHeaderLevelCount,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:p,level:this.m_rowEndHeaderLevelCount,axis:_},t),this._highlightActive());else if("row"===_||"rowEnd"===_)if(g+C>=m&&!i)if(this.m_trueIndex={row:p},n){if("row"===_){let e=this._getEmptyCellNeighborIndex({row:p,column:-1},{right:!0},this._getMaxRight(),this.m_endRowEndHeader);if(e)if(e.cell)y(e.cell,t);else if(e.header){let e=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowEndHeaderLevelCount-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader);this._setActive(e,{type:"header",index:p,level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},t,!0)}}else if("rowEnd"===_){let e=this._getEmptyCellNeighborIndex({row:p,column:this.m_endCol+1},{left:!0},this._getMaxLeft(),this.m_startRowHeader);if(e.cell)y(e.cell,t);else if(e.header){let e=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader);this._setActive(e,{type:"header",index:p,level:this.m_rowHeaderLevelCount-1,axis:"row"},t,!0)}}}else o="row"===_?this.createIndex(p,0):this._isHighWatermarkScrolling()?this.createIndex(p,this.m_endCol):this.createIndex(p,this.getDataSource().getCount("column")-1),this._isSelectionEnabled()?this.selectAndFocus(o,t):(this._setActiveByIndex(o,t),this._highlightActive());else l=this._getHeaderByIndex(p,g+C,h,m,d),r=this._getAttribute(l.parentNode,"start",!0),a=this.getHeaderCellLevel(l),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive());else"column"===_&&s&&this.m_headerLabels.rowEnd[this.m_rowEndHeaderLevelCount-1]?this._setActive(this.m_headerLabels.rowEnd[this.m_rowEndHeaderLevelCount-1],{type:"label",level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},t):(1===m?(r=p+1,l=null!=f?f.nextSibling:null,a=g):(g===m-1?(r=p+1,l=this._getHeaderByIndex(r,g,h,m,d)):(r=null!=f?this._getAttribute(f.parentNode,"start",!0)+this._getAttribute(f.parentNode,"extent",!0):p+1,l=this._getHeaderByIndex(r,g,h,m,d)),a=null!=l?this.getHeaderCellLevel(l):g),r>c&&u||!(this._isCountUnknown("column")||r<this.getDataSource().getCount("column"))?"column"===_&&this.m_headerLabels.rowEnd[this.m_rowEndHeaderLevelCount-1]&&this._setActive(this.m_headerLabels.rowEnd[this.m_rowEndHeaderLevelCount-1],{type:"label",level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},t):i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&"row"!==this.m_options.getSelectionMode()&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive()));break;case this.keyCodes.UP_KEY:if("row"===_||"rowEnd"===_){if(s&&this.m_headerLabels[_][g]){this._setActive(this.m_headerLabels[_][g],{type:"label",level:g,axis:_},t);break}if("row"===_&&s&&this.m_headerLabels.column[this.m_columnHeaderLevelCount-1]){this._setActive(this.m_headerLabels.column[this.m_columnHeaderLevelCount-1],{type:"label",level:this.m_columnHeaderLevelCount-1,axis:"column"},t);break}if(p>0){if(1===m)r=p-1,l=null!=f?f.previousSibling:null,a=g;else if(g===m-1?(r=p-1,l=this._getHeaderByIndex(r,g,h,m,d)):r=null!=(l=null!=f?this._getHeaderByIndex(this._getAttribute(f.parentNode,"start",!0)-1,g,h,m,d):null)?this._getAttribute(l.parentNode,"start",!0):p-1,a=null!=l?this.getHeaderCellLevel(l):g,r<0)break;i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this.m_selectionFrontier={},this._clearSelection(t)),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive())}else this.m_headerLabels[_][g]?this._setActive(this.m_headerLabels[_][g],{type:"label",level:g,axis:_},t):"row"===_&&this.m_headerLabels.column[this.m_columnHeaderLevelCount-1]&&this._setActive(this.m_headerLabels.column[this.m_columnHeaderLevelCount-1],{type:"label",level:this.m_columnHeaderLevelCount-1,axis:"column"},t)}else("column"===_||"columnEnd"===_)&&g>0&&(l=this._getHeaderByIndex(p,g-1,h,m,d),r=this._getAttribute(l.parentNode,"start",!0),a=this.getHeaderCellLevel(l),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this.m_selectionFrontier={},this._clearSelection(t)),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive()));break;case this.keyCodes.DOWN_KEY:if("columnEnd"===_&&s&&-1!==this.m_endColHeader)l=this._getHeaderByIndex(p,this.m_columnHeaderLevelCount,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this.m_selectionFrontier={},this._clearSelection(t)),this._setActive(l,{type:"header",index:p,level:this.m_columnHeaderLevelCount,axis:_},t),this._highlightActive());else if("column"===_&&s&&-1!==this.m_endColEndHeader)l=this._getHeaderByIndex(p,this.m_columnEndHeaderLevelCount,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:p,level:this.m_columnEndHeaderLevelCount,axis:_},t),this._highlightActive());else if("column"===_||"columnEnd"===_)if(g+C>=m&&!i)if(this.m_trueIndex={column:p},n){if("column"===_){let e=this._getEmptyCellNeighborIndex({row:0,column:this.m_trueIndex.column},{down:!0},this._getMaxBottom(),this.m_endColEndHeader);if(e)if(e.cell)y(e.cell,t);else if(e.header){let e=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnEndHeaderLevelCount-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader);this._setActive(e,{type:"header",index:p,level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},t,!0)}}else if("columnEnd"===_){let e=this._getEmptyCellNeighborIndex({row:this.m_endRow+1,column:this.m_trueIndex.column},{up:!0},this._getMaxTop(),this.m_startColHeader);if(e)if(e.cell)y(e.cell,t);else if(e.header){let e=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader);this._setActive(e,{type:"header",index:p,level:this.m_columnHeaderLevelCount-1,axis:"column"},t,!0)}}}else o="column"===_?this.createIndex(0,p):this._isHighWatermarkScrolling()?this.createIndex(this.m_endRow,p):this.createIndex(this.getDataSource().getCount("row")-1,p),this._isSelectionEnabled()?this.selectAndFocus(o,t):(this._setActiveByIndex(o,t),this._highlightActive());else l=this._getHeaderByIndex(p,g+C,h,m,d),r=this._getAttribute(l.parentNode,"start",!0),a=this.getHeaderCellLevel(l),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive());else"row"===_&&s&&this.m_headerLabels.columnEnd[this.m_columnEndHeaderLevelCount-1]?this._setActive(this.m_headerLabels.columnEnd[this.m_columnEndHeaderLevelCount-1],{type:"label",level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},t):(1===m?(r=p+1,l=null!=f?f.nextSibling:null,a=g):(g===m-1?(r=p+1,l=this._getHeaderByIndex(r,g,h,m,d)):(r=null!=f?this._getAttribute(f.parentNode,"start",!0)+this._getAttribute(f.parentNode,"extent",!0):p+1,l=this._getHeaderByIndex(r,g,h,m,d)),a=null!=l?this.getHeaderCellLevel(l):g),r>c&&u||!(this._isCountUnknown("row")||r<this.getDataSource().getCount("row"))?"row"===_&&this.m_headerLabels.columnEnd[this.m_columnEndHeaderLevelCount-1]&&this._setActive(this.m_headerLabels.columnEnd[this.m_rowEndHeaderLevelCount-1],{type:"label",level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},t):i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive()));break;case this.keyCodes.PAGEUP_KEY:"row"!==_&&"rowEnd"!==_||(f=this._getHeaderByIndex(0,g,h,m,d),this._setActive(f,{type:"header",index:0,level:g,axis:_},t));break;case this.keyCodes.PAGEDOWN_KEY:"row"!==_&&"rowEnd"!==_||(p=this._isCountUnknown("row")||this._isHighWatermarkScrolling()?Math.max(0,c):Math.max(0,this.getDataSource().getCount("row")-1),f=this._getHeaderByIndex(p,g,h,m,d),this._setActive(f,{type:"header",index:p,level:g,axis:_},t));break;case this.keyCodes.HOME_KEY:"column"!==_&&"columnEnd"!==_||(f=this._getHeaderByIndex(0,g,h,m,d),this._setActive(f,{type:"header",index:0,level:g,axis:_},t));break;case this.keyCodes.END_KEY:"column"!==_&&"columnEnd"!==_||(p=this._isCountUnknown("column")||this._isHighWatermarkScrolling()?Math.max(0,c):Math.max(0,this.getDataSource().getCount("column")-1),f=this._getHeaderByIndex(p,g,h,m,d),this._setActive(f,{type:"header",index:p,level:g,axis:_},t))}return!0}},M.prototype.checkHeaderToDatabody=function(e,t){return!("row"===e&&this.m_rowHeaderLevelCount===this.m_selectionFrontier.level&&t===this.keyCodes.RIGHT_KEY||"rowEnd"===e&&this.m_rowEndHeaderLevelCount===this.m_selectionFrontier.level&&t===this.keyCodes.LEFT_KEY||"column"===e&&this.m_columnHeaderLevelCount===this.m_selectionFrontier.level&&t===this.keyCodes.DOWN_KEY||"columnEnd"===e&&this.m_columnEndHeaderLevelCount===this.m_selectionFrontier.level&&t===this.keyCodes.UP_KEY)},M.prototype._getHeaderLabelledBy=function(e,t,i,s,n,o,l,r){var a;if(-1!==n&&(o!==l||this.m_externalFocus)){var h=this.getHeaderFromCell(r,e);return null!=l&&(a=this._getHeaderByIndex(l,i-1,t,i,s)),this._getHeaderAndParentIds(h,a)}return""},M.prototype._getHeaderAndParentIds=function(e,t){var i="",s=[];if(null==e)return"";var n=this._getHeaderAndParents(e);null!=t&&(s=this._getHeaderAndParents(t));for(var o=0;o<n.length;o++)s[o]===n[o]&&o!==n.length-1||(i+=(""===i?"":" ")+n[o].id);return i},M.prototype._getHeaderAndParents=function(e){var t,i=[e],s=this.getHeaderCellAxis(e),n=this.getHeaderCellLevel(e),o=this._getLabel(s,n);if("row"===s?t=this.m_rowHeaderLevelCount:"column"===s?t=this.m_columnHeaderLevelCount:"rowEnd"===s?t=this.m_rowEndHeaderLevelCount:"columnEnd"===s&&(t=this.m_columnEndHeaderLevelCount),o&&i.unshift(o),1===t)return i;for(n===t-1&&(e=e.parentNode.firstChild,i.unshift(e),n-=1,(o=this._getLabel(s,n))&&i.unshift(o));n>0;)e=e.parentNode.parentNode.firstChild,i.unshift(e),n-=1,(o=this._getLabel(s,n))&&i.unshift(o);return i},M.prototype.isHeaderSelectionType=function(e){return!(!e||!e.axis)},M.prototype._isChildEmpty=function(e){if(e){let t=e.textContent.trim();return!(e.children.length>0||t.length>0)}return!1},M.prototype._isNeighborCellEmpty=function(e,t){let i=this._getIndex(e,"row"),s=this._getIndex(e,"column");if("row"===t){let t=this._getCellByIndex({row:i,column:s-1}),n=this._getCellByIndex({row:i,column:s+1});if((this._isChildEmpty(t)||this._isChildEmpty(n))&&!this._isChildEmpty(e))return!0}else if("column"===t){let t=this._getCellByIndex({row:i-1,column:s}),n=this._getCellByIndex({row:i+1,column:s});if((this._isChildEmpty(t)||this._isChildEmpty(n))&&!this._isChildEmpty(e))return!0}return!1},M.prototype._getEmptyCellNeighborIndex=function(e,t,i,s){let n,o,l,r,a,h,d,c=e.row,m=e.column,u=Object.create({}),_=t.left||t.right,p=t.up||t.down,g=t.right||t.down,f=t.left||t.up;_?(n="row",o=m,l=c):p&&(n="column",o=c,r=m),g?(a=1,d=i):f&&(a=-1,d=i-1);let C,y=o;for(;f?y>=i:y<=i;){if(g?C=y<i:f&&(C=y>i),_?r=y===i?d:y+a:p&&(l=y===i?d:y+a),h=this._getCellByIndex({row:l,column:r}),C&&this._isNeighborCellEmpty(h,n))return u.cell=this.createIndex(l,r),u;if(y===i){let e;return g?e=(t.right?this._isLastColumn(y):this._isLastRow(y))&&-1!==s:f&&(e=0===y),e?(u.header=!0,u):(u.cell=this.createIndex(l,r),u)}y+=a}return null},M.prototype.handleFocusChange=function(e,t,i,s,n,o=!1,l=!1){var r,a,h,d=1,c=1;if(!this.isFetchComplete())return!0;if(t){if(r=this.m_selectionFrontier,this.isHeaderSelectionType(this.m_selectionFrontier))return void this.handleHeaderFocusChange(e,i,t,n)}else r=this.m_active.indexes;if(null!=r){null==this.m_trueIndex&&(this.m_trueIndex={}),this.getResources().isRTLMode()&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY));var m=this._isSelectionEnabled()?this.selectAndFocus.bind(this):this._setActiveByIndex.bind(this),u=r.row,_=r.column,p=this._getCellByIndex(r);if(p){var g=p[this.getResources().getMappedAttribute("context")];d=g.extents.row,c=g.extents.column}switch(e){case this.keyCodes.LEFT_KEY:if(this.m_trueIndex.row||t||(this.m_trueIndex={row:u}),o){let e=g.indexes.row,t=g.indexes.column,s=this._getEmptyCellNeighborIndex({row:e,column:t},{left:!0},this._getMaxLeft(),this.m_startRowHeader);s&&(s.cell?m(s.cell,i):s.header&&(h=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),this._setActive(h,{type:"header",index:this.m_trueIndex.row,level:this.m_rowHeaderLevelCount-1,axis:"row"},i,!0)))}else _>0&&(!n||-1===this.m_endRowHeader)?"row"===this.m_options.getSelectionMode()?(a=this.createIndex(this.m_trueIndex.row,_-1),this._setActiveByIndex(a,i)):(t?(a=this.createIndex(u,_-1),this.extendSelection(a,i,e)):m(a=this.createIndex(this.m_trueIndex.row,_-1),i),_-1==0&&this._setAccInfoText("accessibleFirstColumn")):!t&&s&&(h=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),this.m_discontiguousSelection?this.discontiguousHeaderSetActiveFromDatabody(i,"row",h,this.m_rowHeaderLevelCount):this._setActive(h,{type:"header",index:this.m_trueIndex.row,level:this.m_rowHeaderLevelCount-1,axis:"row"},i,!0));break;case this.keyCodes.RIGHT_KEY:if(this.m_trueIndex.row||t||(this.m_trueIndex={row:u}),o){let e=g.indexes.row,t=g.indexes.column,s=this._getEmptyCellNeighborIndex({row:e,column:t},{right:!0},this._getMaxRight(),this.m_endRowEndHeader);s&&(s.cell?m(s.cell,i):s.header&&(h=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowEndHeaderLevelCount-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),this._setActive(h,{type:"header",index:this.m_trueIndex.row,level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},i,!0)))}else this._isLastColumn(_+(c-1))||n&&-1!==this.m_endRowEndHeader?-1!==this.m_endRowEndHeader&&s?(h=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowEndHeaderLevelCount-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),this.m_discontiguousSelection?this.discontiguousHeaderSetActiveFromDatabody(i,"rowEnd",h,this.m_rowEndHeaderLevelCount):this._setActive(h,{type:"header",index:this.m_trueIndex.row,level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},i,!0)):t||m(r,i):"row"===this.m_options.getSelectionMode()?(a=this.createIndex(this.m_trueIndex.row,_+c),this._setActiveByIndex(a,i)):(t?(a=this.createIndex(u,_+1),this.extendSelection(a,i,e)):m(a=this.createIndex(this.m_trueIndex.row,_+c),i),this._isLastColumn(_+c)&&this._setAccInfoText("accessibleLastColumn"));break;case this.keyCodes.UP_KEY:if(this.m_trueIndex.column||t||(this.m_trueIndex={column:_}),o){let e=g.indexes.row,t=g.indexes.column,s=this._getEmptyCellNeighborIndex({row:e,column:t},{up:!0},this._getMaxTop(),this.m_startColHeader);s&&(s.cell?m(s.cell,i):s.header&&(h=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),this._setActive(h,{type:"header",index:this.m_trueIndex.column,level:this.m_columnHeaderLevelCount-1,axis:"column"},i,!0)))}else u>0&&(!n||-1===this.m_endColHeader)?(t?(a=this.createIndex(u-1,_),this.extendSelection(a,i,e)):m(a=this.createIndex(u-1,this.m_trueIndex.column),i),u-1==0&&this._setAccInfoText("accessibleFirstRow")):!t&&s&&(h=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),this.m_discontiguousSelection?this.discontiguousHeaderSetActiveFromDatabody(i,"column",h,this.m_columnHeaderLevelCount):this._setActive(h,{type:"header",index:this.m_trueIndex.column,level:this.m_columnHeaderLevelCount-1,axis:"column"},i,!0));break;case this.keyCodes.DOWN_KEY:if(this.m_trueIndex.column||t||(this.m_trueIndex={column:_}),o){let e=g.indexes.row,t=g.indexes.column,s=this._getEmptyCellNeighborIndex({row:e,column:t},{down:!0},this._getMaxBottom(),this.m_endColEndHeader);s&&(s.cell?m(s.cell,i):s.header&&(h=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnEndHeaderLevelCount-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),this._setActive(h,{type:"header",index:this.m_trueIndex.column,level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},i,!0)))}else this._isLastRow(u+(d-1))||n&&-1!==this.m_endColEndHeader?-1!==this.m_endColEndHeader&&s?(h=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnEndHeaderLevelCount-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),this.m_discontiguousSelection?this.discontiguousHeaderSetActiveFromDatabody(i,"columnEnd",h,this.m_columnEndHeaderLevelCount):this._setActive(h,{type:"header",index:this.m_trueIndex.column,level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},i,!0)):t||m(r,i):(t?(a=this.createIndex(u+1,_),this.extendSelection(a,i,e)):m(a=this.createIndex(u+d,this.m_trueIndex.column),i),this._isLastRow(u+d)&&this._setAccInfoText("accessibleLastRow"));break;case this.keyCodes.HOME_KEY:if(l)m(this.createIndex(0,0),i);else this.m_trueIndex.row||(this.m_trueIndex={row:u}),m(a=this.createIndex(this.m_trueIndex.row,0),i);break;case this.keyCodes.END_KEY:if(this.m_trueIndex.row||(this.m_trueIndex={row:u,column:_}),l){let e;e=this._isCountUnknown("column")||this._isHighWatermarkScrolling()?this.createIndex(Math.max(0,this.m_endRow),Math.max(0,this.m_endCol)):this.createIndex(Math.max(0,this.getDataSource().getCount("row")-1),Math.max(0,this.getDataSource().getCount("column")-1)),m(e,i)}else m(a=this._isCountUnknown("column")||this._isHighWatermarkScrolling()?this.createIndex(this.m_trueIndex.row,Math.max(0,this.m_endCol)):this.createIndex(this.m_trueIndex.row,Math.max(0,this.getDataSource().getCount("column")-1)),i);break;case this.keyCodes.PAGEUP_KEY:this.m_trueIndex.column||(this.m_trueIndex={column:_}),m(a=this.createIndex(0,_),i);break;case this.keyCodes.PAGEDOWN_KEY:this.m_trueIndex.column||(this.m_trueIndex={column:_}),m(a=this._isCountUnknown("column")||this._isHighWatermarkScrolling()?this.createIndex(Math.max(0,this.m_endRow),this.m_trueIndex.column):this.createIndex(Math.max(0,this.getDataSource().getCount("row")-1),this.m_trueIndex.column),i)}return!0}},M.prototype.scrollToIndex=function(e,t,i){var s,n,o=e.row,l=e.column;t&&(this.m_shouldFocus=!1),i&&(e.scrollToOrigin=!0);var r=this.getResources().isRTLMode()?"right":"left",a=0,h=0,d=this._getViewportTop(),c=this._getViewportBottom(),m=this._getViewportLeft(),u=this._getViewportRight();if(o<this.m_startRow||o>this.m_endRow){var _;_=o<this.m_startRow?this.m_avgRowHeight*o:this.m_avgRowHeight*(o+1)-c+d,h=this.m_currentScrollTop-_,this.m_scrollIndexAfterFetch=e,s=!0}else{var p;null===(n=this._getCellByIndex(e))?(n=this._getFirstCellWithMatchingStartIndex(o,"row"),p=this.m_sizingManager.getSize("row",this._getKey(n,"row"))):p=this.getElementHeight(n);var g=this.getElementDir(n,"top");i||e.scrollToOrigin?h=d-g:g+p>c?h=c-(g+p):g<d&&(h=d-g)}if(!isNaN(l)&&!0!==s)if(l<this.m_startCol||l>this.m_endCol){var f;f=l<this.m_startCol?this.m_avgColWidth*l:this.m_avgColWidth*(l+1)-u+m,a=this.m_currentScrollLeft-f,this.m_scrollIndexAfterFetch=e}else{var C;null===(n=this._getCellByIndex(e))?(n=this._getFirstCellWithMatchingStartIndex(l,"column"),C=this.m_sizingManager.getSize("column",this._getKey(n,"column"))):C=this.getElementWidth(n);var y=this.getElementDir(n,r);i||e.scrollToOrigin||y<m?a=m-y:y+C>u&&(a=u-(y+C))}0!==a||0!==h?(null!=(n=this._getCellByIndex(e))&&!0!==t&&!1!==this.m_shouldFocus&&(this.m_cellToFocus=n),this.scrollDelta(a,h)):null!=this.m_scrollIndexAfterFetch&&(t||!1===this.m_shouldFocus||this._setActiveByIndex(this.m_scrollIndexAfterFetch,null,!1,!1,!0))&&(this.m_scrollIndexAfterFetch=null)},M.prototype.scrollToHeader=function(e){var t,i,s,n,o,l,r,a,h,d=e.axis,c=e.index,m=e.level,u=0;"row"===d?(t=this.m_startRowHeader,i=this.m_endRowHeader,s=this.m_avgRowHeight,n=this.m_currentScrollTop,a=this._getViewportTop(),h=this._getViewportBottom()):"column"===d?(t=this.m_startColHeader,i=this.m_endColHeader,s=this.m_avgColWidth,n=this.m_currentScrollLeft,a=this._getViewportLeft(),h=this._getViewportRight()):"rowEnd"===d?(t=this.m_startRowEndHeader,i=this.m_endRowEndHeader,s=this.m_avgRowHeight,n=this.m_currentScrollTop,a=this._getViewportTop(),h=this._getViewportBottom()):"columnEnd"===d&&(t=this.m_startColEndHeader,i=this.m_endColEndHeader,s=this.m_avgColWidth,n=this.m_currentScrollLeft,a=this._getViewportLeft(),h=this._getViewportRight());var _=h-a;c<t||c>i?(u=n-(c<t?s*c:s*(c+1)-_),this.m_scrollHeaderAfterFetch=e):("row"===d||"rowEnd"===d?(r="row"===d?this._getHeaderByIndex(c,m,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader):this._getHeaderByIndex(c,m,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),o=this.getElementDir(r,"top"),l=this.getElementHeight(r)):"column"!==d&&"columnEnd"!==d||(r="column"===d?this._getHeaderByIndex(c,m,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader):this._getHeaderByIndex(c,m,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),o=this.getElementDir(r,this.getResources().isRTLMode()?"right":"left"),l=this.getElementWidth(r)),_>l?o+l>h?u=h-(o+l):o<a&&(u=a-o):u=a-o),0!==u?(null!=r&&!1!==this.m_shouldFocus&&(this.m_cellToFocus=r),"row"===d||"rowEnd"===d?this.scrollDelta(0,u):this.scrollDelta(u,0)):null!=this.m_scrollHeaderAfterFetch&&(this._updateActive(e,!0,!0),this.m_scrollHeaderAfterFetch=null)},M.prototype.findHeader=function(e,t,i){if(null==t&&(t=this.getMappedStyle("headercell")),null==i&&(i=this.getMappedStyle("endheadercell")),null!=t){if(this.m_utils.containsCSSClassName(e,t)||this.m_utils.containsCSSClassName(e,i))return e;if(e.parentNode)return this.findHeader(e.parentNode,t,i);if(e===this.m_root)return null}return null},M.prototype.updateRowBanding=function(){var e=this.m_options.getRowBandingInterval();if(e>0)for(var t=this.m_databody.firstChild.childNodes,i=this.getMappedStyle("banded"),s=0;s<t.length;s++){var n=t[s],o=this._getIndex(n,"row");Math.floor(o/e)%2==1?this.m_utils.containsCSSClassName(n,i)||this.m_utils.addCSSClassName(n,i):this.m_utils.containsCSSClassName(n,i)&&this.m_utils.removeCSSClassName(n,i)}},M.prototype.updateColumnBanding=function(){var e=this.m_options.getColumnBandingInterval();if(e>0)for(var t=this.m_databody.firstChild.childNodes,i=this.getMappedStyle("banded"),s=0;s<t.length;s+=1){var n=t[s],o=this._getIndex(n,"column");Math.floor(o/e)%2==1?this.m_utils.containsCSSClassName(n,i)||this.m_utils.addCSSClassName(n,i):this.m_utils.containsCSSClassName(n,i)&&this.m_utils.removeCSSClassName(n,i)}},M.prototype._removeBanding=function(){for(var e=this.m_databody.firstChild.childNodes,t=this.getMappedStyle("banded"),i=0;i<e.length;i++)this.m_utils.containsCSSClassName(e[i],t)&&this.m_utils.removeCSSClassName(e[i],t)},M.prototype._setAccInfoText=function(e,t){var i=this.getResources().getTranslatedText(e,t);null!=i&&(this.m_accInfo.textContent=i)},M.prototype.handleExpandEvent=function(e,t){void 0===t&&this.queueModelEvent(e)?e.operation="expand":(this._setAccInfoText("accessibleRowExpanded"),this.populateAccInfo(),t&&this._runModelEventQueue())},M.prototype.handleCollapseEvent=function(e,t){void 0===t&&this.queueModelEvent(e)?e.operation="collapse":(this._setAccInfoText("accessibleRowCollapsed"),this.populateAccInfo(),t&&this._runModelEventQueue())},M.prototype._getKey=function(e,t){return null!=e&&e[this.getResources().getMappedAttribute("context")]?null!=t&&this.m_utils.containsCSSClassName(e,this.getMappedStyle("cell"))?e[this.getResources().getMappedAttribute("context")].keys[t]:e[this.getResources().getMappedAttribute("context")].key:null},M.prototype._getActiveKey=function(e,t){if(t&&null!=this.m_prevActive){if("header"===this.m_prevActive.type&&(this.m_prevActive.axis===e||this.m_prevActive.axis===e+"End"))return this.m_prevActive.key;if("cell"===this.m_prevActive.type)return this.m_prevActive.keys[e]}else if(null!=this.m_active){if("header"===this.m_active.type&&(this.m_active.axis===e||this.m_active.axis===e+"End"))return this.m_active.key;if("cell"===this.m_active.type)return this.m_active.keys[e]}return null},M.prototype._handleCut=function(e,t){null==t&&(t=e.target);var i=this.findCellOrHeader(t);if(this._isMoveOnElementEnabled(i)){if(null!=this.m_cutCells)for(var s=0;s<this.m_cutCells.length;s++)this.m_utils.removeCSSClassName(this.m_cutCells[s],this.getMappedStyle("cut"));var n=this._getKey(i,"row");return this.m_cutCells=this._getAxisCellsByKey(n,"row"),this.m_cutRowHeader=this._findHeaderByKey(n,this.m_rowHeader,this.getMappedStyle("rowheadercell")),this.m_cutRowEndHeader=this._findHeaderByKey(n,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")),this._highlightCellsAlongAxis(n,"row","key","add",["cut"]),null!==this.m_cutRowHeader&&this.m_utils.addCSSClassName(this.m_cutRowHeader,this.getMappedStyle("cut")),null!==this.m_cutRowEndHeader&&this.m_utils.addCSSClassName(this.m_cutRowEndHeader,this.getMappedStyle("cut")),!0}return!1},M.prototype._handleCutCells=function(e,t){if(null==t&&(t=e.target),this._isDataGridProvider()&&this._isSelectionEnabled()&&this.m_options.isCutEnabled()){this.m_selectionRange&&this.m_selectionRange.length&&this.unhighlightFloodFillRange(this.m_selectionRange[0]);let t=this.m_selection[this.m_selection.length-1];this.m_selectionRange=[t],this.m_dataTransferAction="cut";var i={event:e,ui:{action:this.m_dataTransferAction,sourceRange:this.m_selectionRange[0]}};if(!this.fireEvent("cutRequest",i))return!0;this.highlightFloodFillRange(t),this.m_options.isFloodFillEnabled()&&this._removeFloodFillAffordance()}return!0},M.prototype._handleCopyCells=function(e,t){if(null==t&&(t=e.target),this._isDataGridProvider()&&this._isSelectionEnabled()&&this.m_options.isCopyEnabled()){this.m_selectionRange&&this.m_selectionRange.length&&this.unhighlightFloodFillRange(this.m_selectionRange[0]);let t=this.m_selection[this.m_selection.length-1];this.m_selectionRange=[t],this.m_dataTransferAction="copy";let i={event:e,ui:{action:this.m_dataTransferAction,sourceRange:this.m_selectionRange[0]}};return!this.fireEvent("copyRequest",i)||(this.highlightFloodFillRange(t),this.m_options.isFloodFillEnabled()&&this._removeFloodFillAffordance(),!0)}return!1},M.prototype._handlePaste=function(e,t){if(null==t&&(t=e.target),null!=this.m_cutCells){for(var i=0;i<this.m_cutCells.length;i++)this.m_utils.removeCSSClassName(this.m_cutCells[i],this.getMappedStyle("cut"));null!==this.m_cutRowHeader&&(this.m_utils.removeCSSClassName(this.m_cutRowHeader,this.getMappedStyle("cut")),this.m_cutRowHeader=null),null!==this.m_cutRowEndHeader&&(this.m_utils.removeCSSClassName(this.m_cutRowEndHeader,this.getMappedStyle("cut")),this.m_cutRowEndHeader=null);var s=this._getKey(this.findCellOrHeader(t),"row"),n=this._getKey(this.m_cutCells[0],"row");n!==s&&(this._isSelectionEnabled()&&this._clearSelection(e),this._isDatabodyCellActive()&&this._unhighlightActive(),this.m_moveActive=!0,this.getDataSource().move(n,s)),this.m_cutCells=null}return!0},M.prototype._handlePasteCells=function(e,t){if(null==t&&(t=e.target),this._isDataGridProvider()&&this.m_options.isPasteEnabled())if(this.m_selectionRange&&this._isSelectionEnabled()&&!this.m_discontiguousSelection&&1===this.m_selection.length){let t={event:e,ui:{action:this.m_dataTransferAction,sourceRange:this.m_selectionRange[0],targetRange:this.m_selection[0]}};if(!this.fireEvent("pasteRequest",t))return!0;this.unhighlightFloodFillRange(this.m_selectionRange[0]),this.m_selectionRange=null,this.m_dataTransferAction=null}else if(!this.m_selectionRange){let t={event:e,ui:{action:"unknown",sourceRange:{},targetRange:this.m_selection[0]}};if(!this.fireEvent("pasteRequest",t))return!0;this.m_selectionRange=null,this.m_dataTransferAction=null}return!0},M.prototype._handleAutofill=function(e,t){if(null==t&&(t=e.target),this._isDataGridProvider()&&this._isSelectionEnabled()&&!this.m_discontiguousSelection&&this.m_options.isFloodFillEnabled()&&1===this.m_selection.length){let t="down";"keydown"===e.type&&(t="d"===e.key?"down":"end");let s=this.m_selection[0].startIndex,n=this.m_selection[0].endIndex,o=this.createRange(s,n),l=this.createRange(s,n),r=!1;if("down"===t?(o.endIndex.row=o.startIndex.row,l.startIndex.row=o.startIndex.row+1,l.startIndex.row>=o.startIndex.row&&l.startIndex.row<=l.endIndex.row&&(r=!0)):(o.endIndex.column=o.startIndex.column,l.startIndex.column=o.startIndex.column+1,l.startIndex.column>=o.startIndex.column&&l.startIndex.column<=l.endIndex.column&&(r=!0)),r){var i={event:e,ui:{action:t,sourceRange:o,targetRange:l}};if(!this.fireEvent("fillRequest",i))return!0}return this.unhighlightFloodFillRange(this.m_selection[0]),this._removeFloodFillAffordance(),this.m_selectionRange=null,this.m_dataTransferAction=null,this.m_floodFillDirection=null,!0}return!1},M.prototype._handleCancelReorder=function(e,t){if(null!=this.m_cutCells){for(var i=0;i<this.m_cutCells.length;i++)this.m_utils.removeCSSClassName(this.m_cutCells[i],this.getMappedStyle("cut"));return this.m_cutCells=null,null!==this.m_cutRowHeader&&(this.m_utils.removeCSSClassName(this.m_cutRowHeader,this.getMappedStyle("cut")),this.m_cutRowHeader=null),null!==this.m_cutRowEndHeader&&(this.m_utils.removeCSSClassName(this.m_cutRowEndHeader,this.getMappedStyle("cut")),this.m_cutRowEndHeader=null),!0}null!==this.m_dataTransferAction&&(this.unhighlightFloodFillRange(this.m_selectionRange[0]),this.m_selectionRange=null,this.m_dataTransferAction=null)},M.prototype._handleMove=function(e){if(null==this.m_moveCells){var t=e.target,i=this.findCellOrHeader(t),s=this._getKey(i,"row");this.m_originalMoveIndex=this._getIndex(i,"row"),this.m_moveIndex=this.m_originalMoveIndex,this.m_moveCells=this._getAxisCellsByIndex(this.m_moveIndex,"row"),this.m_moveRowHeader=this._findHeaderByKey(s,this.m_rowHeader,this.getMappedStyle("rowheadercell")),this.m_moveRowEndHeader=this._findHeaderByKey(s,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")),this._highlightCellsAlongAxis(this.m_moveIndex,"row","index","add",["drag"]),this.m_originalTop=this.getElementDir(this.m_moveCells[0],"top"),this.m_dropTarget=document.createElement("div"),this.m_utils.addCSSClassName(this.m_dropTarget,this.getMappedStyle("drop")),this.setElementHeight(this.m_dropTarget,this.calculateRowHeight(this.m_moveCells[0])),this.setElementDir(this.m_dropTarget,this.m_originalTop,"top"),this.m_databody.firstChild.appendChild(this.m_dropTarget),this._addHeaderDropTarget(this.m_moveRowHeader,this.m_rowHeader,!1),this._addHeaderDropTarget(this.m_moveRowEndHeader,this.m_rowEndHeader,!0)}this.m_utils.isTouchDevice()||(this.m_prevY=this.m_currentY,this.m_currentY=e.pageY);for(var n=this.m_currentY-this.m_prevY,o=this.calculateRowHeight(this.m_moveCells[0]),l=0;l<this.m_moveCells.length;l++)this.setElementDir(this.m_moveCells[l],this.getElementDir(this.m_moveCells[l],"top")+n,"top");null!==this.m_moveRowHeader&&this.setElementDir(this.m_moveRowHeader,this.getElementDir(this.m_moveRowHeader,"top")+n,"top"),null!==this.m_moveRowEndHeader&&this.setElementDir(this.m_moveRowEndHeader,this.getElementDir(this.m_moveRowEndHeader,"top")+n,"top");var r=this.m_moveIndex+1,a=this.m_moveIndex-1,h=this._getCellByIndex(this.createIndex(r,this.m_startCol)),d=this._getCellByIndex(this.createIndex(a,this.m_startCol));null!=h&&this.getElementDir(h,"top")<this.getElementDir(this.m_moveCells[0],"top")+o/2?this._moveDropRows("nextSibling",r):null!=d&&this.getElementDir(d,"top")>this.getElementDir(this.m_moveCells[0],"top")-o/2&&this._moveDropRows("previousSibling",a)},M.prototype._addHeaderDropTarget=function(e,t,i){var s;null!==e&&(null==e.style.height&&this.setElementHeight(e,this.calculateRowHeight(e)),this.m_utils.addCSSClassName(e,this.getMappedStyle("drag")),s=document.createElement("div"),this.m_utils.addCSSClassName(s,this.getMappedStyle("drop")),this.setElementHeight(s,this.calculateRowHeight(e)),this.setElementDir(s,this.m_originalTop,"top"),t.firstChild.appendChild(s),i?this.m_dropTargetEndHeader=s:this.m_dropTargetHeader=s)},M.prototype._moveDropRows=function(e,t){var i,s,n,o,l;"nextSibling"===e?(l=this._getAxisCellsByIndex(t,"row"),i=this.m_originalTop+this.calculateRowHeight(l[0]),s=this.m_originalTop):(l=this._getAxisCellsByIndex(t,"row"),s=(i=this.getElementDir(l[0],"top"))+this.calculateRowHeight(l[0])),this.setElementDir(this.m_dropTarget,i,"top");for(var r=0;r<l.length;r++)this.setElementDir(l[r],s,"top");null!==this.m_moveRowHeader&&(n=this.m_moveRowHeader.parentNode,this.setElementDir(this.m_dropTargetHeader,i,"top"),this.setElementDir(this.m_moveRowHeader[e],s,"top")),null!==this.m_moveRowEndHeader&&(o=this.m_moveRowEndHeader.parentNode,this.setElementDir(this.m_dropTargetEndHeader,i,"top"),this.setElementDir(this.m_moveRowEndHeader[e],s,"top")),this.m_originalTop=i,this._highlightCellsAlongAxis(this.m_moveIndex+1,"row","index","remove",["activedrop"]),"nextSibling"===e?(this._modifyAxisCellContextIndex("row",this.m_moveIndex,1,1),this._modifyAxisCellContextIndex("row",this.m_moveIndex+1,1,-1),this.m_moveIndex+=1,null!==this.m_moveRowHeader&&n&&n.insertBefore(this.m_moveRowHeader,this.m_moveRowHeader[e][e]),null!==this.m_moveRowEndHeader&&o&&o.insertBefore(this.m_moveRowEndHeader,this.m_moveRowEndHeader[e][e])):(this._modifyAxisCellContextIndex("row",this.m_moveIndex,1,-1),this._modifyAxisCellContextIndex("row",this.m_moveIndex-1,1,1),this.m_moveIndex-=1,null!==this.m_moveRowHeader&&n&&n.insertBefore(this.m_moveRowHeader,this.m_moveRowHeader[e]),null!==this.m_moveRowEndHeader&&o&&o.insertBefore(this.m_moveRowEndHeader,this.m_moveRowEndHeader[e])),this._refreshDatabodyMap(),this._highlightCellsAlongAxis(this.m_moveIndex+1,"row","index","add",["activedrop"])},M.prototype._isMoveEnabled=function(e){var t=this.getDataSource().getCapability("move");return"enable"===this.m_options.isMoveable("row")&&("full"===t||t===e)},M.prototype._handleMoveMouseUp=function(e,t){if(null!=this.m_moveCells){this._remove(this.m_dropTarget),null!==this.m_moveRowHeader&&this._remove(this.m_dropTargetHeader),null!==this.m_moveRowEndHeader&&this._remove(this.m_dropTargetEndHeader),null!=this.m_active&&"column"!==this.m_active.axis&&(this.m_moveActive=!0),this._isSelectionEnabled()&&this._clearSelection(e);var i=this.m_moveCells[0],s=this._getKey(i,"row");if(!0===t){var n=this.m_moveIndex+1,o=this._getKey(this._getCellByIndex(this.createIndex(n,this.m_startCol)),"row");this.getDataSource().move(s,o)}else this.getDataSource().move(s,s);this.m_moveCells=null,this.m_originalMoveIndex=null,this.m_moveIndex=null}this.m_databodyMove=!1},M.prototype._handleFloodFillMouseUp=function(e){if(this.m_floodFillRange&&this.m_floodFillRange.length){var t={event:e,ui:{action:this.m_floodFillDirection,sourceRange:this.m_selectionRange[0],targetRange:this.m_floodFillRange[0]}};if(!this.fireEvent("fillRequest",t))return!0;this.unhighlightFloodFillRange()}return this.m_selectionRange=null,this.m_floodFillRange=null,this.m_floodFillDirection=null,this.m_databody&&(this.m_databody.style.cursor="default"),this.m_cursor="default",!0},M.prototype._isMoveOnElementEnabled=function(e){return!(null==e||!this._isMoveEnabled("row")||this._getActiveKey("row")!==this._getKey(e,"row"))},M.prototype._manageMoveCursor=function(){var e=this._getActiveKey("row"),t=this._getActiveKey("row",!0),i=this.getMappedStyle("draggable"),s=this.getMappedStyle("rowheadercell"),n=this.getMappedStyle("rowendheadercell");if(null!=t){this._highlightCellsAlongAxis(t,"row","key","remove",["draggable"]);var o=this._findHeaderByKey(t,this.m_rowHeader,s);this.m_utils.containsCSSClassName(o,i)&&this.m_utils.removeCSSClassName(o,i),o=this._findHeaderByKey(t,this.m_rowEndHeader,n),this.m_utils.containsCSSClassName(o,i)&&this.m_utils.removeCSSClassName(o,i)}if(null!=e){var l=this._getAxisCellsByKey(e,"row");if(this._isMoveOnElementEnabled(l[0])){this._highlightCellsAlongAxis(e,"row","key","add",["draggable"]);var r=this._findHeaderByKey(e,this.m_rowHeader,s);this.m_utils.addCSSClassName(r,i);var a=this._findHeaderByKey(e,this.m_rowEndHeader,n);this.m_utils.addCSSClassName(a,i)}}},M.prototype.handleRootFocus=function(e,t){if(this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("focus")),this._clearFocusoutTimeout(),this._clearFocusoutBusyState(),!t){if(this._clearOpenPopupListeners(),!this.m_root.contains(document.activeElement)||document.activeElement===this.m_root&&0===this.m_root.tabIndex||document.activeElement===this.m_databody&&this.m_scrollbarFocus&&0===this.m_root.tabIndex){this.m_externalFocus=!0,this._isCellEditable()?this._setAccInfoText("accessibleEditableMode"):this._isGridEditable()&&this._setAccInfoText("accessibleNavigationMode");var i=!1;if(!0===this.m_scrollbarFocus&&(this.m_shouldFocus=!1,this.m_scrollbarFocus=!1,i=!0),null!=this.m_active||this._databodyEmpty())null!=this.m_active&&this._highlightActive();else{var s=this.createIndex(0,0);i||this.scrollToIndex(s),this._setActiveByIndex(s,e,null,null,i)}}this.m_root.tabIndex=-1}},M.prototype._handlePopupFocusout=function(e){this.handleRootBlur(e,!0)},M.prototype._handlePopupFocusin=function(e){this.handleRootFocus(e,!0)},M.prototype.handleRootBlur=function(e,t){if(this._clearFocusoutTimeout(),!t){this._clearOpenPopupListeners();var i=p.getLogicalChildPopup(this.m_root);if(null!=i)return this._openPopup=i,t=!1,this._handlePopupFocusinListener=this._handlePopupFocusin.bind(this),this._handlePopupFocusoutListener=this._handlePopupFocusout.bind(this),i.addEventListener("focusin",this._handlePopupFocusinListener),void i.addEventListener("focusout",this._handlePopupFocusoutListener)}this._setFocusoutBusyState(),this.m_focusoutTimeout=setTimeout(function(){if(!this.m_root.contains(document.activeElement)||!0===t){this.m_root.tabIndex=0;var i=this._getActiveElement();null!=i&&(this._unsetAriaProperties(i),this._isEditOrEnter()&&!this.m_animating&&this._leaveEditing(e,i,!1,!1))}this._clearFocusoutBusyState()}.bind(this),100),null==this.m_moveRow&&this.m_utils.removeCSSClassName(this.m_root,this.getMappedStyle("focus"))},M.prototype._clearOpenPopupListeners=function(){null!=this._openPopup&&(this._openPopup.removeEventListener("focusin",this._handlePopupFocusinListener),this._openPopup.removeEventListener("focusout",this._handlePopupFocusoutListener),this._openPopup=null),this._handlePopupFocusinListener=null,this._handlePopupFocusoutListener=null},M.prototype._handlePopupFocusout=function(e){this.handleRootBlur(e,!0)},M.prototype._handlePopupFocusin=function(e){this.handleRootFocus(e,!0)},M.prototype._clearFocusoutTimeout=function(){this.m_focusoutTimeout&&(clearTimeout(this.m_focusoutTimeout),this.m_focusoutTimeout=null)},M.prototype._setFocusoutBusyState=function(){if(!this.m_focusoutResolveFunc){var e=d.getContext(this.m_root).getBusyContext(),t={description:"Datagrid component 'is handling focusout."};this.m_focusoutResolveFunc=e.addBusyState(t)}},M.prototype._clearFocusoutBusyState=function(){this.m_focusoutResolveFunc&&(this.m_focusoutResolveFunc(),this.m_focusoutResolveFunc=null)},M.prototype.calculateRowHeight=function(e){return""!==e.style.height?this.getElementHeight(e):null!=e.nextSibling?this.getElementDir(e.nextSibling,"top")-this.getElementDir(e,"top"):this.m_endRowPixel-this.getElementDir(e,"top")},M.prototype.calculateRowHeaderHeight=function(e){return""!==e.style.height?this.getElementHeight(e):null!=e.nextSibling?this.getElementDir(e.nextSibling,"top")-this.getElementDir(e,"top"):this.m_endRowHeaderPixel-this.getElementDir(e,"top")},M.prototype.calculateRowHeaderLabelHeight=function(e){return this.getElementHeight(e)},M.prototype.calculateColumnWidth=function(e){if(""!==e.style.width)return this.getElementWidth(e);var t=this.getResources().isRTLMode()?"right":"left";return null!=e.nextSibling?this.getElementDir(e.nextSibling,t)-this.getElementDir(e,t):this.m_endColPixel-this.getElementDir(e,t)},M.prototype.calculateColumnHeaderWidth=function(e){if(""!==e.style.width)return this.getElementWidth(e);var t=this.getResources().isRTLMode()?"right":"left";return null!=e.nextSibling?this.getElementDir(e.nextSibling,t)-this.getElementDir(e,t):this.m_endColHeaderPixel-this.getElementDir(e,t)},M.prototype._databodyEmpty=function(){return null==this.m_databody.firstChild||null==this.m_databody.firstChild.firstChild},M.prototype.changeStyleProperty=function(e,t,i,s){void 0!==t&&(e.style[t]="remove"===s?"":i)},M.prototype.addTransformMoveStyle=function(e,t,i,s,n,o,l){this.changeStyleProperty(e,this.getCssSupport("transition-delay"),i),this.changeStyleProperty(e,this.getCssSupport("transition-timing-function"),s),this.changeStyleProperty(e,this.getCssSupport("transition-duration"),t),this.changeStyleProperty(e,this.getCssSupport("transform"),"translate3d("+n+"px,"+o+"px,"+l+"px)")},M.prototype.removeTransformMoveStyle=function(e){this.changeStyleProperty(e,this.getCssSupport("transition-delay"),null,"remove"),this.changeStyleProperty(e,this.getCssSupport("transition-timing-function"),null,"remove"),this.changeStyleProperty(e,this.getCssSupport("transition-duration"),null,"remove"),this.changeStyleProperty(e,this.getCssSupport("transform"),null,"remove")},M.prototype.getCssSupport=function(e){var t=["","-moz-","-webkit-","-o-","-ms-","-khtml-"],i=document.documentElement;for(var s=0;s<t.length;s++){var n=(t[s]+e).replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});if("Ms"===n.substr(0,2)&&(n="m"+n.substr(1)),n in i.style)return n}},M.prototype._refreshDatabodyMap=function(){this._clearDatabodyMap(),this._addNodesToDatabodyMap(this.m_databody.firstChild.childNodes)},M.prototype._populateDatabody=function(e,t){this._addNodesToDatabodyMap(t.childNodes),e.appendChild(t),this.m_subtreeAttachedCallback(e)},M.prototype._emptyDatabody=function(e){this._clearDatabodyMap(),this.m_utils.empty(e)},M.prototype._addNodesToDatabodyMap=function(e){for(var t=0;t<e.length;t++){var i=e[t];if(this.m_utils.containsCSSClassName(i,this.getMappedStyle("cell"))){var s=this.getCellIndexes(i),n=this.getCellExtents(i),o=i.id;this._addToDatabodyMap(s,o,n)}}},M.prototype._addToDatabodyMap=function(e,t,i){for(var s=i.row,n=i.column,o=0;o<s;o++)for(var l=0;l<n;l++)this._addIndexToDatabodyMap(this.createIndex(e.row+o,e.column+l),t)},M.prototype._addIndexToDatabodyMap=function(e,t){var i="r"+e.row+"c"+e.column;this.m_databodyMap.set(i,t)},M.prototype._removeIndexFromDatabodyMap=function(e){var t="r"+e.row+"c"+e.column;return this.m_databodyMap.delete(t)},M.prototype._getFromDatabodyMap=function(e){var t="r"+e.row+"c"+e.column;return this.m_databodyMap.get(t)},M.prototype._clearDatabodyMap=function(){return this.m_databodyMap.clear()},M.prototype._modifyAxisCellContextIndex=function(e,t,i,s){for(var n=t;n<t+i;n++)for(var o=this._getAxisCellsByIndex(n,e),l=0;l<o.length;l++){o[l][this.getResources().getMappedAttribute("context")].indexes[e]+=s}},M.prototype._modifyAxisHeaderContextIndex=function(e,t,i,s){for(var n=t;n<t+i;n++){var o;o="row"===e?this._getHeadersByIndex(n,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader):this._getHeadersByIndex(n,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader);for(var l=0;l<o.length;l++){o[l][this.getResources().getMappedAttribute("context")].index+=s}}},M.prototype._getCellOrHeaderByIndex=function(e,t){var i=null,s=this._getAxisCellsByIndex(e,t,!0);return null!=s&&s.length>0&&(i=s[0]),null==i&&("row"===t&&null==(i=this._getHeaderByIndex(e,0,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader))&&(i=this._getHeaderByIndex(e,0,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader)),"column"===t&&null==(i=this._getHeaderByIndex(e,0,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader))&&(i=this._getHeaderByIndex(e,0,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader))),i},M.prototype._getLabel=function(e,t){return this.m_headerLabels[e][t]},M.prototype._getCellByIndex=function(e){var t=this._getFromDatabodyMap(e);return null!=t?this.m_databody.querySelector("#"+t):null},M.prototype._getCellsInRange=function(e,t,i,s){let n=[];for(let o=e;o<=i;o++)for(let e=t;e<=s;e++){let t=this._getCellByIndex(this.createIndex(o,e));t&&n.push(t)}return n},M.prototype._getFirstCellWithMatchingStartIndex=function(e,t){let i,s,n="row"===t?this.m_startCol:this.m_startRow,o="row"===t?this.m_endCol:this.m_endRow;for(let l=n;l<=o;l++)if(i=this.createIndex("row"===t?e:l,"row"===t?l:e),s=this._getCellByIndex(i),this._getIndex(s,t)===e)return s;return null},M.prototype._getAxisCellsByIndex=function(e,t,i){for(var s,n="row"===t?this.m_startCol:this.m_startRow,o="row"===t?this.m_endCol:this.m_endRow,l=[],r=n;r<=o;r+=s){var a=this._getCellByIndex(this.createIndex("row"===t?e:r,"row"===t?r:e));if(null!=a){if(s=this.getCellExtents(a)["row"===t?"column":"row"],l.push(a),i)break}else s=1}return l},M.prototype._getAxisCellsByKey=function(e,t,i){if(null==e||null==this.m_databody||null==this.m_databody.firstChild)return null;for(var s=[],n=this.m_databody.firstChild.childNodes,o=0;o<n.length;o++){var l=n[o];if(this.m_utils.containsCSSClassName(l,this.getMappedStyle("cell")))if(this._getKey(l,t)===e&&(s.push(l),i))break}return s},M.prototype._setupActions=function(){this.actions={ACTIONABLE:this._handleActionable,EXIT_ACTIONABLE:this._handleExitActionable,TAB_NEXT_IN_CELL:c.handleActionableTab,TAB_PREV_IN_CELL:c.handleActionablePrevTab,EDITABLE:this._handleEditable,EXIT_EDITABLE:this._handleExitEditable,DATA_ENTRY:this._handleDataEntry,EXIT_DATA_ENTRY:this._handleExitDataEntry,EDIT:this._handleEdit,EXIT_EDIT:this._handleExitEdit,CANCEL_EDIT:this._handleCancelEdit,NO_OP:this._handleNoOp,FOCUS_LEFT:this._handleFocusLeft,FOCUS_LEFT_NON_EMPTY_CELL:this._handleFocusLeftNonEmptyCell,FOCUS_RIGHT:this._handleFocusRight,FOCUS_RIGHT_NON_EMPTY_CELL:this._handleFocusRightNonEmptyCell,FOCUS_UP:this._handleFocusUp,FOCUS_UP_NON_EMPTY_CELL:this._handleFocusUpNonEmptyCell,FOCUS_DOWN:this._handleFocusDown,FOCUS_DOWN_NON_EMPTY_CELL:this._handleFocusDownNonEmptyCell,FOCUS_ROW_FIRST:this._handleFocusRowFirst,FOCUS_ROW_LAST:this._handleFocusRowLast,FOCUS_COLUMN_FIRST:this._handleFocusColumnFirst,FOCUS_COLUMN_LAST:this._handleFocusColumnLast,FOCUS_COLUMN_HEADER:this._handleFocusColumnHeader,FOCUS_COLUMN_END_HEADER:this._handleFocusColumnEndHeader,FOCUS_ROW_HEADER:this._handleFocusRowHeader,FOCUS_ROW_END_HEADER:this._handleFocusRowEndHeader,FOCUS_FIRST_CELL_IN_GRID:this._handleFocusFirstCellInGrid,FOCUS_LAST_CELL_IN_GRID:this._handleFocusLastCellInGrid,READ_CELL:this.readCurrentContent,SORT:this._handleSortKey,EXPAND:this._handleExpandKey,COLLAPSE:this._handleCollapseKey,SELECT_DISCONTIGUOUS:this._handleSelectDiscontiguous,SELECT_EXTEND_LEFT:this._handleExtendSelectionLeft,SELECT_EXTEND_RIGHT:this._handleExtendSelectionRight,SELECT_EXTEND_UP:this._handleExtendSelectionUp,SELECT_EXTEND_DOWN:this._handleExtendSelectionDown,SELECT_ROW:this._handleSelectRow,SELECT_COLUMN:this._handleSelectColumn,SELECT_ALL:this._handleSelectAll,CUT:this._handleCut,CUT_CELLS:this._handleCutCells,COPY_CELLS:this._handleCopyCells,CANCEL_REORDER:this._handleCancelReorder,PASTE:this._handlePaste,PASTE_CELLS:this._handlePasteCells,FILL:this._handleAutofill}},M.prototype._getActionFromKeyDown=function(e,t,i){var s={cellOrHeader:t,isLabel:i,readOnly:!this._isCellEditable(),currentMode:this._getCurrentMode(),activeMove:null!=this.m_cutCells||null!=this.m_dataTransferAction,rowMove:this._isMoveEnabled("row"),columnSort:"column"===t&&this._isDOMElementSortable(this._getActiveElement()),rowSort:"row"===t&&this._isDOMElementSortable(this._getActiveElement()),selection:this._isSelectionEnabled(),selectionMode:this.m_options.getSelectionMode(),multipleSelection:this.isMultipleSelection(),expandCollapse:this._isTargetExpandCollapseEnabled(e.target)};return this._isDataGridProvider()&&(s.cutCells=!0,s.copyCells=!0,s.pasteCells=!0),this.m_options.isFloodFillEnabled()&&(s.fill=!0),this.actions[this.m_keyboardHandler.getAction(e,s)]},M.prototype.isActionableMode=function(){return"actionable"===this.m_currentMode},M.prototype.setActionableMode=function(e){this.m_currentMode=e?"actionable":"navigation",this._setAccInfoText(this.isActionableMode()?"accessibleActionableMode":"accessibleNavigationMode")},M.prototype._handleActionable=function(e,t){return this._enterActionableMode(t,e),!1},M.prototype._handleExitActionable=function(e,t){return this._exitActionableMode(),this._highlightActive(),!1},M.prototype._getEditMode=function(){return null==this.m_editMode&&(this.m_editMode=this.m_options.getEditMode()),this.m_editMode},M.prototype._getCurrentMode=function(){return null==this.m_currentMode&&(this.m_currentMode="navigation"),this.m_currentMode},M.prototype._isEditOrEnter=function(){return"edit"===this._getCurrentMode()},M.prototype._isGridEditable=function(){var e=this._getEditMode();return"cellNavigation"===e||"cellEdit"===e},M.prototype._isCellEditable=function(){return"cellEdit"===this._getEditMode()},M.prototype._handleEditable=function(e,t){return this._isGridEditable()?(this.m_editMode=null,this.m_setOptionCallback("editMode","cellEdit",{_context:{writeback:!0,internalSet:!0}}),this.m_utils.removeCSSClassName(this.m_root,this.getMappedStyle("readOnly")),this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("editable")),this._updateEdgeCellBorders(""),this._setAccInfoText("accessibleEditableMode"),this._setEditableClone(t)):this._handleActionable(e,t),!1},M.prototype._handleExitEditable=function(e,t){this.m_editMode=null,this.m_setOptionCallback("editMode","cellNavigation",{_context:{writeback:!0,internalSet:!0}}),this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("readOnly")),this.m_utils.removeCSSClassName(this.m_root,this.getMappedStyle("editable")),this._updateEdgeCellBorders("none"),this._setAccInfoText("accessibleNavigationMode"),this._destroyEditableClone()},M.prototype._handleDataEntry=function(e,t){var i={event:e,ui:{cell:t,cellContext:t[this.getResources().getMappedAttribute("context")]}};return this.fireEvent("beforeEdit",i)&&(this._removeFloodFillAffordance(),this._reRenderCell(t,"edit",this.getMappedStyle("cellEdit"),this.m_editableClone),this._overwriteFlag=!0,this._setFocusToFirstFocusableElement(t)?this.m_currentMode="edit":this.m_utils.removeCSSClassName(t,this.getMappedStyle("cellEdit")),this._overwriteFlag=!1),!1},M.prototype._handleExitDataEntry=function(e,t){return this._leaveEditing(e,t,!1)},M.prototype._handleEdit=function(e,t){var i={event:e,ui:{cell:t,cellContext:t[this.getResources().getMappedAttribute("context")]}},s=this.fireEvent("beforeEdit",i);if(s){this._removeFloodFillAffordance(),this._reRenderCell(t,"edit",this.getMappedStyle("cellEdit"),this.m_editableClone),this.m_currentMode="edit";var n=this;d.getContext(t).getBusyContext().whenReady().then(function(){n._setFocusToFirstFocusableElement(t)||(n.m_utils.removeCSSClassName(t,n.getMappedStyle("cellEdit")),n.m_currentMode="navigation")})}else s=!1,this._enterActionableMode(t);return s},M.prototype._handleExitEdit=function(e,t){return this._leaveEditing(e,t,!1)},M.prototype._handleCancelEdit=function(e,t){return!!this._leaveEditing(e,t,!0)&&(this._setEditableClone(t),!0)},M.prototype._leaveEditing=function(e,t,i,s){var n={event:e,ui:{cell:t,cellContext:t[this.getResources().getMappedAttribute("context")],cancelEdit:i}};i||(c.disableAllFocusableElements(t),!1===s&&(this.m_shouldFocus=s),this._highlightActive());var o=this.fireEvent("beforeEditEnd",n);return o?(this.m_currentMode="navigation",c.disableAllFocusableElements(t),!1===s&&(this.m_shouldFocus=s),this._highlightActive(),this._reRenderCell(t,"navigation",this.getMappedStyle("cellEdit"),this.m_editableClone)):(o=!1,this._scrollToActive(this.m_active),this._setFocusToFirstFocusableElement(t)),o},M.prototype._handleFocusKey=function(e,t,i,s,n,o,l){var r,a=!0,h=!0;if(null!=this.m_active){if("cell"===this.m_active.type){if(this._isEditOrEnter()?(r=!0,a=this._leaveEditing(e,t,!1),h=!1):this.isActionableMode()&&this._exitActionableMode(),a){this.m_options.isFloodFillEnabled()&&this._removeFloodFillAffordance();var d=this.m_active,c=this.handleFocusChange(i,s,e,h,n,o,l);return this._isGridEditable()&&d!==this.m_active&&r&&this.m_utils.isTouchDevice()?this._handleDataEntry(e,this._getActiveElement()):c}return!0}if("header"===this.m_active.type)return this.handleHeaderFocusChange(i,e,s,n,o);if("label"===this.m_active.type)return this.handleLabelFocusChange(i,e,s,n)}return!1},M.prototype._handleFocusLeft=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.LEFT_KEY,!1,!1)},M.prototype._handleFocusLeftNonEmptyCell=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.LEFT_KEY,!1,!1,!0)},M.prototype._handleFocusRight=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.RIGHT_KEY,!1,!1)},M.prototype._handleFocusRightNonEmptyCell=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.RIGHT_KEY,!1,!1,!0)},M.prototype._handleFocusUp=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.UP_KEY,!1,!1)},M.prototype._handleFocusUpNonEmptyCell=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.UP_KEY,!1,!1,!0)},M.prototype._handleFocusDown=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.DOWN_KEY,!1,!1)},M.prototype._handleFocusDownNonEmptyCell=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.DOWN_KEY,!1,!1,!0)},M.prototype._handleFocusRowFirst=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.PAGEUP_KEY,!1,!1)},M.prototype._handleFocusRowLast=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.PAGEDOWN_KEY,!1,!1)},M.prototype._handleFocusColumnFirst=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.HOME_KEY,!1,!1)},M.prototype._handleFocusColumnLast=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.END_KEY,!1,!1)},M.prototype._handleFocusRowHeader=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.LEFT_KEY,!1,!0)},M.prototype._handleFocusRowEndHeader=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.RIGHT_KEY,!1,!0)},M.prototype._handleFocusColumnHeader=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.UP_KEY,!1,!0)},M.prototype._handleFocusColumnEndHeader=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.DOWN_KEY,!1,!0)},M.prototype._handleFocusFirstCellInGrid=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.HOME_KEY,!1,!1,!1,!0)},M.prototype._handleFocusLastCellInGrid=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.END_KEY,!1,!1,!1,!0)},M.prototype._handleSelectRow=function(e,t){var i,s,n,o,l=1;if(!this._isSelectionEnabled()||!this.isMultipleSelection()&&"row"!==this.m_options.getSelectionMode())return!1;if(this.m_utils.containsCSSClassName(t,this.getMappedStyle("cell")))i=o=this.m_active.indexes.row,s=o,n=this.m_rowHeaderLevelCount-1;else{if(null==this.m_active||"header"!==this.m_active.type||-1===this.m_active.axis.indexOf("row"))return!1;if(o=this.m_active.index,n=this.m_active.level,this.m_rowHeaderLevelCount-1===n)i=o,s=o;else{var r=this._getActiveElement();s=(i=this._getAttribute(r.parentNode,"start",!0))+(l=this._getAttribute(r.parentNode,"extent",!0))-1}}if(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&-1!==this.m_selectionFrontier.axis.indexOf("column"))return this._handleSelectAll(e),!0;if(this.setHeaderSelectionFrontier("row",s,o,n,t,!0),this._shouldDeselectHeader(o,l,"column")){var a=this.createIndex(o,0),h=this.createIndex(o+l-1,-1),d=this._getSelectionStartAndEnd(a,h,0),c=this.createRange(this.createIndex(d.min.row,0),this.createIndex(d.max.row,-1)),m=this._trimRangeForSelectionMode(c);return this.m_deselectInfo={selection:this.GetSelection()},this._deselectRange(m,e),!0}return this._selectEntireRow(i,s,e),this._setAccInfoText("accessibleRowSelected",{row:o+1}),!0},M.prototype._handleSelectColumn=function(e,t){var i,s,n,o,l=1;if(!this._isSelectionEnabled()||!this.isMultipleSelection()||"cell"!==this.m_options.getSelectionMode())return!1;if(this.m_utils.containsCSSClassName(t,this.getMappedStyle("cell")))i=o=this.m_active.indexes.column,s=o,n=this.m_columnHeaderLevelCount-1;else{if(null==this.m_active||"header"!==this.m_active.type||-1===this.m_active.axis.indexOf("column"))return!1;if(o=this.m_active.index,n=this.m_active.level,this.m_columnHeaderLevelCount-1===n)i=o,s=o;else{var r=this._getActiveElement();s=(i=this._getAttribute(r.parentNode,"start",!0))+(l=this._getAttribute(r.parentNode,"extent",!0))-1}}if(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&-1!==this.m_selectionFrontier.axis.indexOf("row"))return this._handleSelectAll(e),!0;if(this.setHeaderSelectionFrontier("column",s,o,n,t,!0),this._shouldDeselectHeader(o,l,"row")){var a=this.createIndex(0,o),h=this.createIndex(-1,o+l-1),d=this._getSelectionStartAndEnd(a,h,0),c=this.createRange(this.createIndex(0,d.min.column),this.createIndex(-1,d.max.column)),m=this._trimRangeForSelectionMode(c);return this.m_deselectInfo={selection:this.GetSelection()},this._deselectRange(m,e),!0}return this._selectEntireColumn(i,s,e),this._setAccInfoText("accessibleColumnSelected",{column:o+1}),!0},M.prototype._handleSelectDiscontiguous=function(e,t){return this.setDiscontiguousSelectionMode(!this.m_discontiguousSelection),!0},M.prototype._handleExtendSelectionLeft=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.LEFT_KEY,!0,!1)},M.prototype._handleExtendSelectionRight=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.RIGHT_KEY,!0,!1)},M.prototype._handleExtendSelectionUp=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.UP_KEY,!0,!1)},M.prototype._handleExtendSelectionDown=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.DOWN_KEY,!0,!1)},M.prototype._handleSortKey=function(e,t){return"true"===t.getAttribute(this.getResources().getMappedAttribute("sortable"))?(this._handleKeyboardSort(t,e),!0):this._handleActionable(e,t)},M.prototype._handleExpandKey=function(e,t){return!!this._isHeaderCollapsed(t)&&(this._handleExpandCollapseRequest(e),!0)},M.prototype._handleCollapseKey=function(e,t){return!!this._isHeaderExpanded(t)&&(this._handleExpandCollapseRequest(e),!0)},M.prototype._handleNoOp=function(e,t){return!1},M.RESIZE_OFFSET=5,M.RESIZE_TOUCH_OFFSET=8,M.prototype.handleResize=function(e){if(!1===this.m_isResizing){var t=this.find(e.target,"header"),i=this.find(e.target,"headerlabel");if(null==t&&(t=this.find(e.target,"endheader")),null!=t&&(t===this.m_rowHeader||t===this.m_colHeader||t===this.m_rowEndHeader||t===this.m_colEndHeader)||null!=i){let t=!1;i&&(t=!0),this.m_cursor=this.manageHeaderCursor(e,t),null!=this.m_resizingElement&&("default"===this.m_cursor?(this.m_resizingElement.style.cursor="",this._isSelectionEnabled()&&this.m_utils.addCSSClassName(e.target,this.getMappedStyle("hover")),null!=this.m_resizingElementSibling&&(this.m_resizingElementSibling.style.cursor="")):(this.m_resizingElement.style.cursor=this.m_cursor,this.m_utils.removeCSSClassName(e.target,this.getMappedStyle("hover")),null!=this.m_resizingElementSibling&&(this.m_resizingElementSibling.style.cursor=this.m_cursor)))}}else this.handleResizeMouseMove(e)},M.prototype.handleResizeMouseDown=function(e){return("col-resize"===this.m_cursor||"row-resize"===this.m_cursor)&&(this.m_isResizing=!0,this.m_utils.isTouchDevice()?(this.m_lastMouseX=e.touches[0].pageX,this.m_lastMouseY=e.touches[0].pageY):(document.addEventListener("mousemove",this.m_docMouseMoveListener,!1),document.addEventListener("mouseup",this.m_docMouseUpListener,!1),this.m_lastMouseX=e.pageX,this.m_lastMouseY=e.pageY),this.m_overResizeLeft=0,this.m_overResizeMinLeft=0,this.m_overResizeTop=0,this.m_overResizeMinTop=0,this.m_overResizeRight=0,this.m_overResizeBottom=0,this.m_orginalResizeDimensions={width:this.getElementWidth(this.m_resizingElement),height:this.getElementHeight(this.m_resizingElement)},!0)},M.prototype._resizeSelectedHeaders=function(e,t,i,s,n,o){let l,r=this.m_resizingElement,a=this.getHeaderCellAxis(this.m_resizingElement),h=this.getHeaderCellIndex(this.m_resizingElement),d=this._getResizeHeaderMode(this.m_resizingElement),c=this.getHeaderCellLevel(this.m_resizingElement),m=!1;if(("column"===a&&c===this.m_columnHeaderLevelCount-1||"row"===a&&c===this.m_rowHeaderLevelCount-1||"columnEnd"===a&&c===this.m_columnEndHeaderLevelCount-1||"rowEnd"===a&&c===this.m_rowEndHeaderLevelCount-1)&&(m=!0),this.m_selection&&this.m_selection.length&&m&&!this.m_discontiguousSelection&&(l=this._getHeadersWithinSelection(this.m_selection[0],h,a)),l&&l.length)for(let a=0;a<l.length;a++)r!==l[a]&&(this.m_resizingElement=l[a],"column"===d?this.resizeColWidth(this.getElementDir(l[a],"width"),s):this.resizeRowHeight(this.getElementDir(l[a],"height"),n)),this._fireResizeEvent(e,t,i,s,n,o);else"column"===d?this.resizeColWidth(this.getElementDir(this.m_resizingElement,"width"),s):this.resizeRowHeight(this.getElementDir(this.m_resizingElement,"height"),n),this._fireResizeEvent(e,t,i,s,n,o)},M.prototype._fireResizeEvent=function(e,t,i,s,n,o){let l={event:e,ui:{header:this._getKey(this.m_resizingElement),oldDimensions:{width:t,height:i},newDimensions:{width:s,height:n},size:o}};this.fireEvent("resize",l)},M.prototype.handleResizeMouseUp=function(e){if(!0===this.m_isResizing){var t=this.getElementWidth(this.m_resizingElement),i=this.getElementHeight(this.m_resizingElement);let s=this.m_orginalResizeDimensions.width,n=this.m_orginalResizeDimensions.height,o=this.m_resizingElement,l="col-resize"===this.m_cursor?o.style.width:o.style.height;t===this.m_orginalResizeDimensions.width&&i===this.m_orginalResizeDimensions.height||"col-resize"!==this.m_cursor&&"row-resize"!==this.m_cursor||this._resizeSelectedHeaders(e,s,n,t,i,l),o.style.cursor="",this._unhighlightResizeBorderColor(),this.m_isResizing=!1,this.m_cursor="default",null!=this.m_resizingElementSibling&&(this.m_resizingElementSibling.style.cursor=""),this.m_resizingElement=null,this.m_resizingElementMin=null,this.m_resizingElementSibling=null,this.m_orginalResizeDimensions=null,document.removeEventListener("mousemove",this.m_docMouseMoveListener,!1),document.removeEventListener("mouseup",this.m_docMouseUpListener,!1)}},M.prototype._isDOMElementResizable=function(e){return null!=e&&"true"===e.getAttribute(this.getResources().getMappedAttribute("resizable"))},M.prototype.manageHeaderCursor=function(e,t){var i,s,n,o,l,r,a,h,d;if((d=t?this.find(e.target,"headerlabel"):this.find(e.target,"headercell"))||t||(d=this.find(e.target,"endheadercell")),!d)return"default";var c=t?this.getHeaderLabelAxis(d):this.getHeaderCellAxis(d),m=t?this.getHeaderLabelLevel(d):this.getHeaderCellIndex(d),u=t?m:this.getHeaderCellLevel(d);if("column"===c?(l="enable"===this.m_options.isResizable(c,"height"),o=this._isDOMElementResizable(d),t?(a=null,r=null,h=this.m_headerLabels.column[m-1]):((a=this._getHeaderByIndex(m-1,u,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader))||(this.m_headerLabels.column.length?(a=this._getLabel("column",u),u===this.m_columnHeaderLevelCount-1&&this._isHeaderLabelCollision()&&(a=this.m_headerLabels.row[this.m_rowHeaderLevelCount-1])):a=this._getLabel("row",u)),r=this._isDOMElementResizable(a),h=this._getHeaderByIndex(m,u-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader))):"row"===c?(o="enable"===this.m_options.isResizable(c,"width"),l=t?"enable"===this.m_options.isResizable(c,"height"):this._isDOMElementResizable(d),t?(h=this.m_headerLabels.row[m-1],this._isHeaderLabelCollision()&&d===this.m_headerLabels.row[this.m_rowHeaderLevelCount-1]&&(a=this.m_headerLabels.column[this.m_columnHeaderLevelCount-1])):(a=this._getHeaderByIndex(m-1,u,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),r=this._isDOMElementResizable(a),h=this._getHeaderByIndex(m,u-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader))):"columnEnd"===c?(l="enable"===this.m_options.isResizable(c).height,o=this._isDOMElementResizable(d),t?(a=null,r=null,h=this.m_headerLabels.columnEnd[m-1]):((a=this._getHeaderByIndex(m-1,u,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader))||(a=this._getLabel("columnEnd",u)),r=this._isDOMElementResizable(a),h=this._getHeaderByIndex(m,u-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader))):"rowEnd"===c&&(o="enable"===this.m_options.isResizable(c).width,l=this._isDOMElementResizable(d),t?(a=this.m_headerLabels.rowEnd[m-1],r=this._isDOMElementResizable(a)):(a=this._getHeaderByIndex(m-1,u,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),r=this._isDOMElementResizable(a),h=this._getHeaderByIndex(m,u-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader))),this.m_utils.isTouchDevice())i=e.touches[0].pageX,s=e.touches[0].pageY,n=M.RESIZE_TOUCH_OFFSET;else{i=e.offsetX,s=e.offsetY,n=M.RESIZE_OFFSET;var _=this._findHeaderOffset(e.target,d);i+=_[0],s+=_[1]}var p=this.getHeaderEdgePixels(d),g=this.getResources().isRTLMode(),f="columnEnd"===c||"rowEnd"===c,C=i<p[0]+n,y=s<p[1]+n,v=i>p[2]-n,E=s>p[3]-n;if("column"===c||"columnEnd"===c){if(o&&(g?C:v))return this.m_resizingElement=d,"col-resize";if(r&&(g?v:C)){if(this.m_resizingElement=a,this.m_resizingElementSibling=d,null!==this.m_resizingElement)return"col-resize"}else if(l){if(!f&&E||f&&y)return this.m_resizingElement=d,"row-resize";if(!f&&y||f&&E)return this.m_resizingElement=h,this.m_resizingElementSibling=d,"row-resize"}}else if("row"===c||"rowEnd"===c){if(l&&E)return this.m_resizingElement=d,"row-resize";if(r&&y&&!t){if(this.m_resizingElement=a,this.m_resizingElementSibling=d,null!==this.m_resizingElement)return"row-resize"}else if(h&&y&&t&&a&&(this.m_resizingElement=h,this.m_resizingElementSibling=d,null!==this.m_resizingElement))return"row-resize";if(o){if(!f&&(g?C:v)||f&&(g?v:C))return this.m_resizingElement=d,"col-resize";if((!f&&(g?v:C)||f&&(g?C:v))&&(this.m_resizingElement=h,this.m_resizingElementSibling=d,null!==this.m_resizingElement))return"col-resize"}}return"default"},M.prototype.handleResizeMouseMove=function(e){var t,i,s,n,o;this.m_currentMouseX=e.pageX,this.m_currentMouseY=e.pageY,this.m_utils.isTouchDevice()?(this.m_currentMouseX=e.touches[0].pageX,this.m_currentMouseY=e.touches[0].pageY):(this.m_currentMouseX=e.pageX,this.m_currentMouseY=e.pageY),t=this._getResizeHeaderMode(this.m_resizingElement);var l=this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("endheadercell"))||this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("columnendheaderlabel"));let r=this.find(this.m_resizingElement,"headerlabel");"col-resize"===this.m_cursor?"column"===t?(l=!r&&l,i=this.calculateColumnHeaderWidth(this.m_resizingElement),s=this.getNewElementWidth("column",i,l,null,r),r?this.resizeRowWidth(s,s-i,l,r):this.resizeColWidth(i,s)):"row"===t&&(this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("rowendheaderlabel"))&&(l=!0),i=this.getElementWidth(this.m_resizingElement),s=this.getNewElementWidth("row",i,l,null,r),this.resizeRowWidth(s,s-i,l,r)):"row-resize"===this.m_cursor&&("row"===t?(n=this.calculateRowHeaderHeight(this.m_resizingElement),o=this.getNewElementHeight("row",n,l,null,r),r?this.resizeColHeight(o,o-n,l):this.resizeRowHeight(n,o)):"column"===t&&(n=this.getElementHeight(this.m_resizingElement),o=this.getNewElementHeight("column",n,l,null,r),this.resizeColHeight(o,o-n,l))),this.buildCorners(),this.m_utils.isTouchDevice()&&this._moveTouchSelectionAffordance(),this.m_lastMouseX=this.m_currentMouseX,this.m_lastMouseY=this.m_currentMouseY},M.prototype.resizeColWidth=function(e,t){var i,s=t-e;if(0!==s){if(null!=this.m_databody.firstChild)i=this.getElementWidth(this.m_databody.firstChild)+s,this.setElementWidth(this.m_databody.firstChild,i);this.resizeColumnWidthAndShift(s),this.m_endColPixel+=s,this.m_endColHeaderPixel+=s,this.m_endColEndHeaderPixel+=s,null!=i&&(this.m_avgColWidth=i/this.getDataSource().getCount("column")),this.manageResizeScrollbars()}},M.prototype.resizeRowHeight=function(e,t){var i,s=t-e;if(0!==s){if(null!=this.m_databody.firstChild)i=this.getElementHeight(this.m_databody.firstChild)+s,this.setElementHeight(this.m_databody.firstChild,i);this.resizeRowHeightAndShift(s),this.m_endRowPixel+=s,this.m_endRowHeaderPixel+=s,this.m_endRowEndHeaderPixel+=s,null!=i&&(this.m_avgRowHeight=i/this.getDataSource().getCount("row")),this.manageResizeScrollbars()}},M.prototype.resizeColHeight=function(e,t,i){if(0!==t){var s,n,o,l=!0,r=this.find(this.m_resizingElement,"headerlabel");if(r?"column"===(o=this.getHeaderLabelAxis(this.m_resizingElement))||"columnEnd"===o?n=this.getHeaderLabelLevel(this.m_resizingElement):"row"!==o&&"rowEnd"!==o||(n=this.m_columnHeaderLevelCount-1,l=!1):(n=this.getHeaderCellLevel(this.m_resizingElement)+(this.getHeaderCellDepth(this.m_resizingElement)-1),o=this.getHeaderCellAxis(this.m_resizingElement)),i?this.m_columnEndHeaderLevelHeights[n]+=t:(s=this.m_columnHeaderLevelHeights[n],this.m_columnHeaderLevelHeights[n]+=t),!i&&n===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length&&this._isHeaderLabelCollision()&&(l=!1),this.resizeColumnHeightsAndShift(t,n,i,l),i)this.m_colEndHeaderHeight+=t,this.setElementHeight(this.m_colEndHeader,this.m_colEndHeaderHeight);else{if(this.m_colHeaderHeight+=t,this.setElementHeight(this.m_colHeader,this.m_colHeaderHeight),0===this.m_headerLabels.column.length&&-1!==n)this._resizeHeaderLabelDirs(n,t,["row"],"height");else if(null!=this.m_columnHeaderLevelCount&&n===this.m_columnHeaderLevelCount-1)if(this.m_headerLabels.row.length){var a,h;if(r){if("column"===o)h=e,this.m_collisionResize=!0;else if("row"===o)a=t,this.m_collisionResize=!0;else if("rowEnd"===o)if(this._isHeaderLabelCollision()){let e=0;for(let t=0;t<this.m_columnHeaderLevelCount-1;t++)e+=this.getElementHeight(this.m_headerLabels.column[t]);let t=this.m_colHeaderHeight-e,i=this._calculateCollisionDimension(t,s,r,o);a=i.rowHeightChange,h=i.colHeight}else a=t,h=this.m_colHeaderHeight}else if(this._isHeaderLabelCollision()){let t=this._calculateCollisionDimension(e,s,!0,o);a=t.rowHeightChange,h=t.colHeight}else a=t,h=e;var d=this._getLabel("column",this.m_columnHeaderLevelCount-1);d&&this.setElementHeight(d,h),this._resizeHeaderLabelDirs(this.m_rowHeaderLevelCount-1,a,["row"],"height")}else{let t=["bottomResized"],i=this._getLabel("column",this.m_columnHeaderLevelCount-1);this._highlightElement(i.parentNode,t);let s=0;if("rowEnd"===o)for(let e=0;e<this.m_columnHeaderLevelCount-1;e++)s+=this.getElementHeight(this.m_headerLabels.column[e]);let n=e-s;this.setElementHeight(i,n)}else if(n<0){let t=this._getLabel("row",this.m_rowHeaderLevelCount-1),i=["bottomResized"];if(t&&n<0){this._highlightElement(t.parentNode,i);for(let i=0;i<this.m_rowHeaderLevelCount;i++)t=this._getLabel("row",i),this.setElementHeight(t,e)}}let i=this._getLabel("rowEnd",this.m_rowEndHeaderLevelCount-1),l=["bottomResized"];if(i){let t=-1===this.m_endColHeader?e:this.m_colHeaderHeight;this._highlightElement(i.parentNode,l);for(let e=0;e<this.m_rowEndHeaderLevelCount;e++)i=this._getLabel("rowEnd",e),this.setElementHeight(i,t)}}this.manageResizeScrollbars()}},M.prototype._calculateCollisionDimension=function(e,t,i,s){let n,o,l={},r=this._getMinValue("height",s,i);if(this.m_collisionResize){let l=this.getElementDir(this.m_headerLabels.row[this.m_rowHeaderLevelCount-1],"height"),a=this.getElementDir(this.m_headerLabels.column[this.m_columnHeaderLevelCount-1],"height"),h=l+a,d=a/h,c=l/h;l===r&&a===r?(n=Math.floor(e/2)-Math.floor(t/2),o=Math.ceil(e/2),this.m_collisionResize=!1):d>c?(o=Math.floor(e*d),n=e-o-l,l+n<this._getMinValue("height",s,i)&&(n=0)):(n=Math.floor(e*c)-l,l+n<this._getMinValue("height",s,i)&&(n=0),o=e-(l+n),o=Math.max(o,this._getMinValue("height",s,i)))}else n=Math.floor(e/2)-Math.floor(t/2),o=Math.ceil(e/2);return l.colHeight=o,l.rowHeightChange=n,l},M.prototype.resizeRowWidth=function(e,t,i,s){if(0!==t){var n;if(s){let e=this.getHeaderLabelAxis(this.m_resizingElement);"column"===e||"columnEnd"===e?n=this.m_rowHeaderLevelCount-1:"row"!==e&&"rowEnd"!==e||(n=this.getHeaderLabelLevel(this.m_resizingElement))}else n=this.getHeaderCellLevel(this.m_resizingElement)+(this.getHeaderCellDepth(this.m_resizingElement)-1);if(i?this.m_rowEndHeaderLevelWidths[n]+=t:this.m_rowHeaderLevelWidths[n]+=t,this.resizeRowWidthsAndShift(t,n,i),i)this.m_rowEndHeaderWidth+=t,this.setElementWidth(this.m_rowEndHeader,this.m_rowEndHeaderWidth);else{if(this.m_rowHeaderWidth+=t,n<0){let t=this.getResources().isRTLMode()?["startResized"]:["endResized"],i=this._getLabel("column",this.m_columnHeaderLevelCount-1);this._highlightElement(i.parentNode,t);for(let t=0;t<this.m_columnHeaderLevelCount;t++)i=this._getLabel("column",t),this.setElementWidth(i,e)}else this.setElementWidth(this.m_rowHeader,this.m_rowHeaderWidth),(n===this.m_rowHeaderLevelCount-1||0===this.m_headerLabels.row.length&&this.m_headerLabels.column.length)&&this._resizeHeaderLabelDirs(n,t,["column"],"width");let i=this._getLabel("columnEnd",this.m_columnEndHeaderLevelCount-1),s=this.getResources().isRTLMode()?["startResized"]:["endResized"];if(i){this._highlightElement(i.parentNode,s);let e=this.getElementWidth(i)+t;for(let t=0;t<this.m_columnEndHeaderLevelCount;t++)i=this._getLabel("columnEnd",t),this.setElementWidth(i,e)}}this.manageResizeScrollbars()}},M.prototype._resizeHeaderLabelDirs=function(e,t,i,s){for(var n=0;n<i.length;n++){for(var o=i[n],l=0;l<this.m_headerLabels[o].length;l++){var r=this.m_headerLabels[o][l];if(null!=r){var a=this.getElementDir(r,s)+t;this.setElementDir(r,a,s)}}this._highlightResizeLabelDirs(o,e)}},M.prototype._highlightResizeLabelDirs=function(e,t){let i=this.getResources().isRTLMode()?["startResized"]:["endResized"],s="column"===e?i:["bottomResized"];this.m_corner&&("column"===e&&t===this.m_columnHeaderLevelCount-1||"row"===e&&t===this.m_rowHeaderLevelCount-1)&&this._highlightElement(this.m_corner,s);let n=this._getLabel("rowEnd",this.m_columnHeaderLevelCount-1);n&&this._highlightElement(n.parentNode,s)},M.prototype._unhighlightResizeBorderColor=function(){let e=this.m_root.querySelectorAll(".oj-datagrid-resized-start,\n .oj-datagrid-resized-end, .oj-datagrid-resized-top, .oj-datagrid-resized-bottom");this._unhighlightElementsByClassName(e,["startResized","endResized","topResized","bottomResized"])},M.prototype.getNewElementWidth=function(e,t,i,s,n){var o;o=this._getMinValue("width",e,n),null==s&&(s=this.getResources().isRTLMode()?this.m_lastMouseX-this.m_currentMouseX:this.m_currentMouseX-this.m_lastMouseX),i&&"row"===e&&(s*=-1);var l=t+s+this.m_overResizeLeft+this.m_overResizeMinLeft+this.m_overResizeRight;if(l<o?(this.m_overResizeMinLeft+=s-o+t,l=o):(this.m_overResizeMinLeft=0,this.m_overResizeLeft=0),"row"===e){var r=this.getRowHeaderWidth()+this.getRowEndHeaderWidth()-t,a=Math.round(this.getWidth()-this.m_utils.getScrollbarSize()-1)-r;l>a?(this.m_overResizeRight+=s-a+t,l=a):this.m_overResizeRight=0}return l},M.prototype.getNewElementHeight=function(e,t,i,s,n){var o;let l=this._getMinValue("height",e,!0);if(n){if(o=l,"rowEnd"===this.getHeaderLabelAxis(this.m_resizingElement)&&this.m_headerLabels.column&&this.m_headerLabels.column.length){this._isHeaderLabelCollision()&&(o=2*l);for(let e=0;e<this.m_columnHeaderLevelCount-1;e++)o+=this.getElementHeight(this.m_headerLabels.column[e])}}else o=this._getMinValue("height",e,n);"column"===e&&!i&&this.getHeaderCellLevel(this.m_resizingElement)+this.getHeaderCellDepth(this.m_resizingElement)===this.m_columnHeaderLevelCount&&this._isHeaderLabelCollision()&&(o=2*l),null==s&&(s=this.m_currentMouseY-this.m_lastMouseY),i&&"column"===e&&(s*=-1);var r=t+s+this.m_overResizeTop+this.m_overResizeMinTop+this.m_overResizeBottom;if(r<o?(this.m_overResizeMinTop+=s-o+t,r=o):(this.m_overResizeMinTop=0,this.m_overResizeTop=0),"column"===e){var a=this.getColumnHeaderHeight()+this.getColumnEndHeaderHeight()-t,h=Math.round(this.getHeight()-this.m_utils.getScrollbarSize()-1)-a;r>h?(this.m_overResizeBottom+=s-h+t,r=h):this.m_overResizeBottom=0}return r},M.prototype._getMinValue=function(e,t,i){var s,n,o=this.m_resizingElement,l=this._getCellPaddingBorder(e,o),r=l;if(i)return Math.max(this.m_utils.isTouchDevice()?2*M.RESIZE_TOUCH_OFFSET:2*M.RESIZE_OFFSET,r);var a=this.getHeaderCellLevel(o),h=this.getHeaderCellDepth(o),d=this.getResources().getMappedAttribute("sortable");"true"===o.getAttribute(d)&&this._setSortContainerSize(this._getSortContainer(o),l),"column"===t&&"true"===o.getAttribute(d)&&(r="width"===e?this.m_sortContainerWidth:this.m_sortContainerHeight);var c=Math.max(this.m_utils.isTouchDevice()?2*M.RESIZE_TOUCH_OFFSET:2*M.RESIZE_OFFSET,r);if("column"===t&&(1===this.m_columnHeaderLevelCount||"width"===e&&this.m_columnHeaderLevelCount===a+1||"height"===e&&1===h)||"row"===t&&-1===this.m_endRowHeader||"column"===t&&-1===this.m_endColHeader||"row"===t&&(1===this.m_rowHeaderLevelCount||"height"===e&&this.m_rowHeaderLevelCount===a+1||"width"===e&&1===h))return c;var m=this.getHeaderCellIndex(o),u=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0),_=this.getElementDir(o,e);return"column"===t?"width"===e?(s=this._getHeaderByIndex(m+(u-1),this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),n=this.getElementDir(s,e)):n=this._getHeaderLevelDimension(a+(h-1),o,this.m_columnHeaderLevelHeights,"height",1):"row"===t&&("height"===e?(s=this._getHeaderByIndex(m+(u-1),this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),n=this.getElementDir(s,e)):n=this._getHeaderLevelDimension(a+(h-1),o,this.m_rowHeaderLevelWidths,"width",1)),_-(n-c)},M.prototype._getLabelMinValue=function(e){var t=this.m_resizingElement,i=this._getCellPaddingBorder(e,t);return Math.max(this.m_utils.isTouchDevice()?2*M.RESIZE_TOUCH_OFFSET:2*M.RESIZE_OFFSET,i)},M.prototype._setSortContainerSize=function(e,t){this.m_sortContainerWidth=this.getElementWidth(e)+t,this.m_sortContainerHeight=this.getElementHeight(e)},M.prototype._getCellPaddingBorder=function(e,t){if(null==this.m_resizingElementMin){for(var i=["top","right","bottom","left"],s="width"===e?1:0,n=0,o=window.getComputedStyle(t);s<4;s+=2)n+=parseFloat(o.getPropertyValue("padding-"+i[s])),n+=parseFloat(o.getPropertyValue("border-"+i[s]+"-width"));this.m_resizingElementMin=Math.round(n)}return this.m_resizingElementMin},M.prototype.manageResizeScrollbars=function(){var e=this.getWidth(),t=this.getHeight(),i=this.m_colHeader,s=this.m_colEndHeader,n=this.m_rowHeader,o=this.m_rowEndHeader,l=this.m_databody,r=l.firstChild,a=this.getColumnHeaderHeight(),h=this.getColumnEndHeaderHeight(),d=this.getRowHeaderWidth(),c=this.getRowEndHeaderWidth();if(-1===this.m_endRowHeader&&-1!==this.m_endColHeader){let e=this._getLabel("column",this.m_columnHeaderLevelCount-1);e&&(d=this.getElementWidth(e))}else if(-1!==this.m_endRowHeader&&-1===this.m_endColHeader){let e=this._getLabel("row",this.m_rowHeaderLevelCount-1);e&&(a=this.getElementHeight(e))}var m=t-a-h,u=e-d-c,_=this.m_utils.getScrollbarSize(),p=this.getResources().isRTLMode()?"right":"left";if(this._databodyEmpty()){var g;null==this.m_empty?(g=this._buildEmptyText(),this.m_root.appendChild(g)):(g=this.m_empty,this.setElementDir(g,this.m_endColHeader>=0?a:0,"top"));var f=this.getElementHeight(g),C=this.getElementWidth(g);f>this.getElementHeight(r)&&this.setElementHeight(r,f),C>this.getElementWidth(r)&&this.setElementWidth(r,C)}var y,v,E,w,S,H=this.getElementWidth(l.firstChild),x=this.getElementHeight(l.firstChild),b=this.isDatabodyHorizontalScrollbarRequired(u);b?(y=this.isDatabodyVerticalScrollbarRequired(m-_),l.style.overflow="auto"):(y=this.isDatabodyVerticalScrollbarRequired(m))?(b=this.isDatabodyHorizontalScrollbarRequired(u-_),l.style.overflow="auto"):l.style.overflow="hidden",this.m_hasHorizontalScroller=b,this.m_hasVerticalScroller=y,-1!==this.m_endColEndHeader?(v=Math.min(x+(b?_:0),m),E=b?v-_:v):(v=m,E=Math.min(x,b?v-_:v)),-1!==this.m_endRowEndHeader?(w=Math.min(H+(y?_:0),u),S=y?w-_:w):(w=u,S=Math.min(H,y?w-_:w));var R=d+S+(y?_:0),I=a+E+(b?_:0);if(this.setElementDir(n,0,p),this.setElementDir(n,a,"top"),this.setElementHeight(n,E),this.setElementDir(o,R,p),this.setElementDir(o,a,"top"),this.setElementHeight(o,E),this.setElementDir(i,d,p),this.setElementWidth(i,S),this.setElementDir(s,d,p),this.setElementDir(s,I,"top"),this.setElementWidth(s,S),this.setElementDir(l,a,"top"),this.setElementDir(l,d,p),this.setElementWidth(l,w),this.setElementHeight(l,v),-1===this.m_endRowHeader&&-1!==this.m_endColHeader&&this.m_rowHeaderScrollbarSpacer?(this.setElementDir(this.m_rowHeaderScrollbarSpacer,a,"top"),this.setElementHeight(this.m_rowHeaderScrollbarSpacer,v+h),this.setElementWidth(this.m_rowHeaderScrollbarSpacer,d)):-1!==this.m_endRowHeader&&-1===this.m_endColHeader&&this.m_columnHeaderScrollbarSpacer&&(this.setElementDir(this.m_columnHeaderScrollbarSpacer,d,"left"),this.setElementWidth(this.m_columnHeaderScrollbarSpacer,w+c),this.setElementHeight(this.m_columnHeaderScrollbarSpacer,a)),this.m_scrollWidth=H-S,this.m_scrollHeight=x-E,this.buildCorners(),this._adjustHeaderBorders(),this._updateGridlines(),this.m_utils.isTouchDevice()){var M=0,A=0;if(this.m_currentScrollLeft>this.m_scrollWidth&&(M=this.m_scrollWidth-this.m_currentScrollLeft),this.m_currentScrollTop>this.m_scrollHeight&&(A=this.m_scrollHeight-this.m_currentScrollTop),0!==M||0!==A){this.m_utils.isTouchDeviceNotIOS()&&this._disableTouchScrollAnimation();var L=this.adjustTouchScroll(M,A);M=L[0],A=L[1],this.scrollDelta(M,A)}}},M.prototype.resizeColumnWidthAndShift=function(e){var t=this.getResources().isRTLMode()?"right":"left",i=this.m_colHeader.style.display,s=this.m_colEndHeader.style.display;this.m_databody.style.display="none",this.m_colHeader.style.display="none",this.m_colEndHeader.style.display="none";var n=this.getHeaderCellIndex(this.m_resizingElement);this.m_columnHeaderLevelCount>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(n+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1);var o,l=this.createIndex(-1,n),r=this.getElementsInRange(this.createRange(l,l));for(let e=0;e<r.length;e++)o=this.getResources().isRTLMode()?["startResized"]:["endResized"],this._highlightElement(r[e],o);this._shiftHeadersAlongAxisInContainer(this.m_colHeader.firstChild,n,e,t,this.getMappedStyle("colheadercell"),"column"),this._shiftHeadersAlongAxisInContainer(this.m_colEndHeader.firstChild,n,e,t,this.getMappedStyle("colendheadercell"),"column"),this._shiftCellsAlongAxis("column",e,n),this.m_databody.style.display="",this.m_colHeader.style.display=i,this.m_colEndHeader.style.display=s},M.prototype._shiftCellsAlongAxis=function(e,t,i,s){var n,o,l,r,a,h=[];if(null==s&&(s=!1),"row"===e?(n="height",o="top",l=this.m_endRow,r=this.m_startCol,a=this.m_endCol):(n="width",o=this.getResources().isRTLMode()?"right":"left",l=this.m_endCol,r=this.m_startRow,a=this.m_endRow),null!=this.m_databody.firstChild)for(var d=r;d<=a;d++){var c="row"===e?this.createIndex(i,d):this.createIndex(d,i),m=this._getCellByIndex(c),u=m[this.getResources().getMappedAttribute("context")],_=u.indexes[e],p=u.extents[e],g=i-_,f=p-g;h[d]&&h[d][i]||!0===s||(this.setElementDir(m,this.getElementDir(m,n)+t,n),"row"===e?this._updateTempArray(h,!0,d,i,u.extents.column,p-g):this._updateTempArray(h,!0,d,i,u.extents.row,p-g));var C=i;!0!==s&&(C=i+f);for(var y=C;y<=l;y++)if(!h[d]||!h[d][y]){c="row"===e?this.createIndex(y,d):this.createIndex(d,y),p=(u=(m=this._getCellByIndex(c))[this.getResources().getMappedAttribute("context")]).extents[e];var v=this.getElementDir(m,o)+t;this.setElementDir(m,v,o),"row"===e?this._updateTempArray(h,!0,d,y,u.extents.column,p):this._updateTempArray(h,!0,d,y,u.extents.row,p)}}},M.prototype.resizeRowHeightAndShift=function(e){var t=this.m_rowHeader.style.display,i=this.m_rowEndHeader.style.display;this.m_databody.style.display="none",this.m_rowHeader.style.display="none",this.m_rowEndHeader.style.display="none";var s=this.getHeaderCellIndex(this.m_resizingElement);this.m_rowHeaderLevelCount>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(s+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1);var n,o=this.createIndex(s,-1),l=this.getElementsInRange(this.createRange(o,o));for(let e=0;e<l.length;e++)n=["bottomResized"],this._highlightElement(l[e],n);this._shiftHeadersAlongAxisInContainer(this.m_rowHeader.firstChild,s,e,"top",this.getMappedStyle("rowheadercell"),"row"),this._shiftHeadersAlongAxisInContainer(this.m_rowEndHeader.firstChild,s,e,"top",this.getMappedStyle("rowendheadercell"),"row"),this._shiftCellsAlongAxis("row",e,s),this.m_databody.style.display="",this.m_rowHeader.style.display=t,this.m_rowEndHeader.style.display=i},M.prototype._shiftHeadersAlongAxisInContainer=function(e,t,i,s,n,o){var l,r,a,h,d=0,c=e.lastChild;if(null!=c){var m,u=this.m_utils.containsCSSClassName(c,n);for(u?(r=c.parentNode,l=c,a=this.getHeaderCellIndex(l)):(r=c,l=c.firstChild,a=this._getAttribute(r,"start",!0));t<a;)if(u)h=this.getElementDir(l,s)+i,this.setElementDir(l,h,s),c=c.previousSibling,u=this.m_utils.containsCSSClassName(c,n),r=c.parentNode,l=c,a=this.getHeaderCellIndex(l);else{for(var _=r.getElementsByClassName(n),p=0;p<_.length;p++)h=this.getElementDir(_[p],s)+i,this.setElementDir(_[p],h,s);c=c.previousSibling,u=this.m_utils.containsCSSClassName(c,n),r=c,l=c.firstChild,a=this._getAttribute(r,"start",!0)}if(this.m_resizingElement&&(m=this.getHeaderCellLevel(this.m_resizingElement)),"column"===o?(d=this.getElementWidth(l)+i,this.setElementWidth(l,d)):"row"===o?(d=this.getElementHeight(l)+i,this.setElementHeight(l,d)):null==o&&(h=this.getElementDir(l,s)+i,this.setElementDir(l,h,s)),"row"===o||"column"===o){let e=this.getResources().isRTLMode()?["startResized"]:["endResized"],t="row"===o?["bottomResized"]:e;void 0!==m&&this.getHeaderCellLevel(l)>=m&&this._highlightElement(l,t),l!==this.m_resizingElement||l!==r.lastChild&&l!==r.firstChild||this._highlightResizeBorder(t,o)}u||null==l.nextSibling?null!=o&&this.m_sizingManager.setSize(o,this._getKey(l),d):this._shiftHeadersAlongAxisInContainer(c,t,i,s,n,o)}},M.prototype._highlightResizeBorder=function(e,t){let i=this.getHeaderCellIndex(this.m_resizingElement),s="column"===t?this.m_columnHeaderLevelCount:this.m_rowHeaderLevelCount,n=this.m_resizingElement[this.getResources().getMappedAttribute("context")],o=n.index+n.extent-1;for(let n=0;n<s-1;n++){let l;l="row"===t?this._getHeaderByIndex(i,n,this.m_rowHeader,s,this.m_startRowHeader):this._getHeaderByIndex(i,n,this.m_colHeader,s,this.m_startColumnHeader);let r=l[this.getResources().getMappedAttribute("context")];r.index+r.extent-1===o&&this._highlightElement(l,e)}},M.prototype.resizeColumnHeightsAndShift=function(e,t,i,s){var n,o,l,r;i?(n=this.m_colEndHeader,o=this.getMappedStyle("colendheadercell"),l="columnEnd",r="bottom"):(n=this.m_colHeader,o=this.getMappedStyle("colheadercell"),l="column",r="top"),n.style.display="none",this.m_databody.style.display="none",s&&this._shiftLabelsDir(this.m_headerLabels[l],e,t,r,l),this._shiftHeadersDirInContainer(n.firstChild,e,t,r,o,l),n.style.display="",this.m_databody.style.display=""},M.prototype.resizeRowWidthsAndShift=function(e,t,i){var s,n,o,l;i?(s=this.m_rowEndHeader,n=this.getMappedStyle("rowendheadercell"),o="rowEnd",l=this.getResources().isRTLMode()?"left":"right"):(s=this.m_rowHeader,n=this.getMappedStyle("rowheadercell"),o="row",l=this.getResources().isRTLMode()?"right":"left"),s.style.display="none",this.m_databody.style.display="none",this._shiftLabelsDir(this.m_headerLabels[o],e,t,l,o),this._shiftHeadersDirInContainer(s.firstChild,e,t,l,n,o),s.style.display="",this.m_databody.style.display=""},M.prototype._shiftLabelsDir=function(e,t,i,s,n){for(var o=0;o<e.length;o++){var l,r=e[o];if(o===i)if("column"===n||"columnEnd"===n)if(l=this.getElementHeight(r)+t,this.setElementHeight(r,l),"column"===n&&this._isHeaderLabelCollision()&&i===this.m_columnHeaderLevelCount-1){let e=["bottomResized"];this._highlightElement(this.m_corner,e)}else if("columnEnd"===n){let e=["topResized"],t=this._getLabel("columnEnd",this.m_columnEndHeaderLevelCount-1);t&&this._highlightElement(t,e)}else{let e="column"===n?["bottomResized"]:["topResized"];this._highlightElement(r,e)}else{l=this.getElementWidth(r)+t,this.setElementWidth(r,l);let e=this.getResources().isRTLMode()?["startResized"]:["endResized"],i=this.getResources().isRTLMode()?["endResized"]:["startResized"],s="row"===n?e:i;this._highlightElement(r,s);let o=this._getLabel("columnEnd",this.m_columnEndHeaderLevelCount-1);o&&this._highlightElement(o.parentNode,s)}o>i&&(l=this.getElementDir(r,s)+t,this.setElementDir(r,l,s))}},M.prototype._shiftHeadersDirInContainer=function(e,t,i,s,n,o){for(var l=e.childNodes,r=0;r<l.length;r++){var a,h,d=l[r];if(this.m_utils.containsCSSClassName(d,n)){a=this.getHeaderCellLevel(d);var c=this.getHeaderCellDepth(d);if(a<=i&&i<a+c){if("column"===o||"columnEnd"===o){if(h=this.getElementHeight(d)+t,this.setElementHeight(d,h),this.m_resizingElement){var m=this.getMappedStyle("colendheadercell");if(this.m_utils.containsCSSClassName(d,m)){let e=["topResized"];this._highlightElement(d,e)}else{let e=["bottomResized"];this._highlightElement(d,e)}}}else if(h=this.getElementWidth(d)+t,this.setElementWidth(d,h),this.m_resizingElement){var u=this.getMappedStyle("rowendheadercell");if(this.m_utils.containsCSSClassName(d,u)){let e=this.getResources().isRTLMode()?["endResized"]:["startResized"];this._highlightElement(d,e)}else{let e=this.getResources().isRTLMode()?["startResized"]:["endResized"];this._highlightElement(d,e)}}}else a>i&&(h=this.getElementDir(d,s)+t,this.setElementDir(d,h,s))}else if((a=this._getAttribute(d,"level",!0))<=i)this._shiftHeadersDirInContainer(d,t,i,s,n,o);else for(var _=d.getElementsByClassName(n),p=0;p<_.length;p++)h=this.getElementDir(_[p],s)+t,this.setElementDir(_[p],h,s)}},M.prototype.handleContextMenuResize=function(e,t,i,s){this.m_overResizeLeft=0,this.m_overResizeMinLeft=0,this.m_overResizeTop=0,this.m_overResizeMinTop=0,this.m_overResizeRight=0,this.m_overResizeBottom=0;var n=parseFloat(i,10),o=n-this.getElementWidth(s),l=n-this.getElementHeight(s);this.m_utils.containsCSSClassName(s,this.getMappedStyle("cell"))&&(s=t===this.m_resources.getMappedCommand("resizeHeight")?this.getHeaderFromCell(s,"row",!0):this.getHeaderFromCell(s,"column",!0)),this.m_isResizing=!0,this.m_resizingElement=s;let r=this.find(this.m_resizingElement,"headerlabel");var a=this.getElementWidth(s),h=this.getElementHeight(s),d=this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("endheadercell"))||this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("columnendheaderlabel"))||this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("rowendheaderlabel"));if(t===this.m_resources.getMappedCommand("resizeWidth")){if(a!==n)if("column"===this._getResizeHeaderMode(this.m_resizingElement)){if(this._isDOMElementResizable(this.m_resizingElement))if(r)this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("columnendheaderlabel"))&&(d=!1),this.resizeRowWidth(n,n-a,d,r),this._fireResizeEvent(e,a,h,n,h,n);else{let t=this.getNewElementWidth("column",a,d,o,r);this.resizeColWidth(a,t),this._resizeSelectedHeaders(e,a,h,n,h,n)}}else this.resizeRowWidth(n,n-a,d,r),this._fireResizeEvent(e,a,h,n,h,n)}else if(t===this.m_resources.getMappedCommand("resizeHeight")&&h!==n)if("column"===this._getResizeHeaderMode(this.m_resizingElement))this.resizeColHeight(n,n-h,d),this._fireResizeEvent(e,a,h,a,n,n);else if(this._isDOMElementResizable(this.m_resizingElement)){let t=this.getNewElementHeight("row",h,d,l,r);r?(this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("rowendheaderlabel"))&&(d=!1),this.resizeColHeight(t,t-h,d),this._fireResizeEvent(e,a,h,a,n,n)):(this.resizeRowHeight(h,t),this._resizeSelectedHeaders(e,a,h,a,t,n))}var c=this.getElementWidth(s),m=this.getElementHeight(s);c===a&&m===h||(this.buildCorners(),this.m_utils.isTouchDevice()&&this._moveTouchSelectionAffordance()),this._unhighlightResizeBorderColor(),this.m_resizingElement=null,this.m_resizingElementMin=null,this.m_isResizing=!1},M.prototype._getResizeNestedHeaderIndex=function(e,t){let i=this.getHeaderCellIndex(this.m_resizingElement),s=t?this.m_columnEndHeaderLevelCount:this.m_columnHeaderLevelCount,n=t?this.m_rowEndHeaderLevelCount:this.m_rowHeaderLevelCount;return("column"===e||"columnEnd"===e?s:n)>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(i+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1),i},M.prototype._highlightResizeMouseDown=function(){let e,t,i=this.getHeaderCellIndex(this.m_resizingElement),s=this._getResizeHeaderMode(this.m_resizingElement),n=this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("endheadercell"))||this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("columnendheaderlabel")),o=this.getResources().isRTLMode()?"right":"left",l=this.find(this.m_resizingElement,"headerlabel");if("col-resize"===this.m_cursor)if("column"===s)if(n=!l&&n,l)t=this.getHeaderLabelAxis(this.m_resizingElement),"column"===t||"columnEnd"===t?e=this.m_rowHeaderLevelCount-1:"row"!==t&&"rowEnd"!==t||(e=this.getHeaderLabelLevel(this.m_resizingElement)),this.resizeRowWidthsAndShift(0,e,n),n||(e===this.m_rowHeaderLevelCount-1||0===this.m_headerLabels.row.length&&this.m_headerLabels.column.length)&&this._highlightResizeLabelDirs("column",e);else{this.m_columnHeaderLevelCount>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(i+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1);let e,t=this.createIndex(-1,i),s=this.getElementsInRange(this.createRange(t,t));for(let t=0;t<s.length;t++)e=this.getResources().isRTLMode()?["startResized"]:["endResized"],this._highlightElement(s[t],e);this._shiftHeadersAlongAxisInContainer(this.m_colHeader.firstChild,i,0,o,this.getMappedStyle("colheadercell"),"column"),this._shiftHeadersAlongAxisInContainer(this.m_colEndHeader.firstChild,i,0,o,this.getMappedStyle("colendheadercell"),"column")}else"row"===s&&(this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("rowendheaderlabel"))&&(n=!0),l?(t=this.getHeaderLabelAxis(this.m_resizingElement),"column"===t||"columnEnd"===t?e=this.m_rowHeaderLevelCount-1:"row"!==t&&"rowEnd"!==t||(e=this.getHeaderLabelLevel(this.m_resizingElement))):e=this.getHeaderCellLevel(this.m_resizingElement)+(this.getHeaderCellDepth(this.m_resizingElement)-1),this.resizeRowWidthsAndShift(0,e,n),n||(e===this.m_rowHeaderLevelCount-1||0===this.m_headerLabels.row.length&&this.m_headerLabels.column.length)&&this._highlightResizeLabelDirs("column",e));else if("row-resize"===this.m_cursor)if("row"===s)if(l){let i=!0;t=this.getHeaderLabelAxis(this.m_resizingElement),"column"===t||"columnEnd"===t?e=this.getHeaderLabelLevel(this.m_resizingElement):"row"!==t&&"rowEnd"!==t||(e=this.m_columnHeaderLevelCount-1,i=!1),!n&&e===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length&&this._isHeaderLabelCollision()&&(i=!1),this.resizeColumnHeightsAndShift(0,e,n,i),n||(0===this.m_headerLabels.column.length||e===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length)&&this._highlightResizeLabelDirs("row",e)}else{this.m_rowHeaderLevelCount>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(i+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1);let e,t=this.createIndex(i,-1),s=this.getElementsInRange(this.createRange(t,t));for(let t=0;t<s.length;t++)e=["bottomResized"],this._highlightElement(s[t],e);this._shiftHeadersAlongAxisInContainer(this.m_rowHeader.firstChild,i,0,"top",this.getMappedStyle("rowheadercell"),"row"),this._shiftHeadersAlongAxisInContainer(this.m_rowEndHeader.firstChild,i,0,"top",this.getMappedStyle("rowendheadercell"),"row")}else{let i=!0;l?(t=this.getHeaderLabelAxis(this.m_resizingElement),"column"===t||"columnEnd"===t?e=this.getHeaderLabelLevel(this.m_resizingElement):"row"!==t&&"rowEnd"!==t||(e=this.m_columnHeaderLevelCount-1,i=!1)):(e=this.getHeaderCellLevel(this.m_resizingElement)+(this.getHeaderCellDepth(this.m_resizingElement)-1),t=this.getHeaderCellAxis(this.m_resizingElement)),!n&&e===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length&&this._isHeaderLabelCollision()&&(i=!1),this.resizeColumnHeightsAndShift(0,e,n,i),n||(0===this.m_headerLabels.column.length||e===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length)&&this._highlightResizeLabelDirs("row",e)}},M.prototype.handleResizeFitToContent=function(e,t,i){let s=this.find(t,"header")||this.find(t,"endheadercell"),n=this.m_utils.containsCSSClassName(t,this.getMappedStyle("endheadercell"));if(!s){let e=this.findCell(t);if(!e)return;t=this.getHeaderFromCell(e,i)}this.m_resizingElement=t;let o,l=this.m_resizingElement,r=this.getHeaderCellAxis(l);if("column"===r||"columnEnd"===r){let e=s?this._getResizeNestedHeaderIndex(r,n):this.getHeaderCellIndex(l);this.m_resizingElement=n?this._getHeaderByIndex(e,this.m_columnEndHeaderLevelCount-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader):this._getHeaderByIndex(e,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader);let t=this.calculateColumnHeaderWidth(this.m_resizingElement),i=this.createIndex(-1,e);o=this.getElementsInRange(this.createRange(i,i)),o.push(l);let a=this._calculateResizeFitToContentValue(o,"column");this.resizeColWidth(t,a)}else if("row"===r||"rowEnd"===r){let e=s?this._getResizeNestedHeaderIndex(r,n):this.getHeaderCellIndex(l);this.m_resizingElement=n?this._getHeaderByIndex(e,this.m_rowEndHeaderLevelCount-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader):this._getHeaderByIndex(e,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader);let t=this.calculateRowHeaderHeight(this.m_resizingElement),i=this.createIndex(e,-1);o=this.getElementsInRange(this.createRange(i,i)),o.push(l);let a=this._calculateResizeFitToContentValue(o,"row");this.resizeRowHeight(t,a)}this._unhighlightResizeBorderColor()},M.prototype._calculateResizeFitToContentValue=function(e,t){let i,s="height";"column"===t&&(s="width");let n=this._getMinValue(s,t,!1),o=document.createElement("div");if("width"===s){o.style.display="inline-flex",o.style.flexFlow="column nowrap",o.style.justifyContent="flex-start",o.style.alignItems="stretch";for(let t=0;t<e.length;t++){let i=e[t].cloneNode(!0);i.classList.remove(...i.classList),i.style[s]="",i.style.whiteSpace="nowrap !important",i.style.overflow="hidden",o.appendChild(i)}}else if("height"===s){o.style.display="flex";for(let t=0;t<e.length;t++){let i=e[t].cloneNode(!0);i.style[s]="",i.style.whiteSpace="break-spaces",o.appendChild(i)}}o.style.visibility="hidden",o.style.top="0px",this.m_root.appendChild(o);let l="column"===t?this.m_databody.offsetWidth:this.m_databody.offsetHeight,r="column"===t?this._getCellPaddingBorder(s,this.m_resizingElement):0;return i=("column"===t?Math.ceil(o.firstElementChild.getBoundingClientRect().width):Math.ceil(o.firstElementChild.getBoundingClientRect().height))+r,i=i<n?n:i,i=i>l?l:i,this.m_root.removeChild(o),i},M.prototype.getHeaderEdgePixels=function(e){var t,i,s=0,n=0;if(this.m_utils.isTouchDevice()){var o=this.findPos(e);s=o[0],n=o[1]}return this.m_utils.containsCSSClassName(e,this.getMappedStyle("colheadercell"))?(t=this.calculateColumnHeaderWidth(e),i=this.getElementHeight(e)):(t=this.getElementWidth(e),i=this.calculateRowHeaderHeight(e)),[s,n,s+t,n+i]},M.prototype.getHeaderLabelEdgePixels=function(e){var t,i,s=this.findPos(e),n=s[0],o=s[1];return this.m_utils.containsCSSClassName(e,this.getMappedStyle("columnheaderlabel"))?(t=this.calculateColumnHeaderWidth(e),i=this.getElementHeight(e)):(t=this.getElementWidth(e),i=this.calculateRowHeaderLabelHeight(e)),[n,o,n+t,o+i]},M.prototype.unhighlightSelection=function(){for(var e=this.GetSelection(),t=0;t<e.length;t+=1)this.unhighlightRange(e[t]);this.getResources()&&this._clearHeaderHighLight()},M.prototype.unhighlightRange=function(e){var t=this.getElementsInRange(e);this.unhighlightElems(t),this._applyBorderClassesAroundRange(t,e,!1,"Selected")},M.prototype.highlightRange=function(e,t){const i=this.getHeadersByRange(e,"row"),s=this.getHeadersByRange(e,"column");this._highlightHeaders(e,i,s);var n,o=this.getElementsInRange(e);(this.highlightElems(o,e),this._applyBorderClassesAroundRange(o,e,!0,"Selected"),t)&&(n=1===this.GetSelection().length?o.length:this._getCurrentSelectionCellCount(),this._setAccInfoText("accessibleMultiCellSelected",{num:n}))},M.prototype.getHeadersByRange=function(e,t){const i=new Set;let s,n,o,l;if("row"===t&&this.m_rowHeaderLevelCount>0){for(e.endIndex&&e.endIndex.row&&(l=e.endIndex.row),l?-1===l&&(l=this.m_endRowHeader):l=e.startIndex.row,n=Math.max(this.m_startRowHeader,e.startIndex.row);n<=l;n++)for(s=this._getHeadersByIndex(n,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),o=0;o<s.length;o++)i.add(s[o])}else if("column"===t&&this.m_columnHeaderLevelCount>0){for(e.endIndex&&e.endIndex.column&&(l=e.endIndex.column),l?-1===l&&(l=this.m_endColHeader):l=e.startIndex.column,n=Math.max(this.m_startColHeader,e.startIndex.column);n<=l;n++)for(s=this._getHeadersByIndex(n,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),o=0;o<s.length;o++)i.add(s[o])}if("row"===t&&this.m_rowEndHeaderLevelCount>0){for(e.endIndex&&e.endIndex.row&&(l=e.endIndex.row),l?-1===l&&(l=this.m_endRowHeader):l=e.startIndex.row,n=Math.max(this.m_startRowEndHeader,e.startIndex.row);n<=l;n++)for(s=this._getHeadersByIndex(n,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),o=0;o<s.length;o++)i.add(s[o])}else if("column"===t&&this.m_columnEndHeaderLevelCount>0){for(e.endIndex&&e.endIndex.column&&(l=e.endIndex.column),l?-1===l&&(l=this.m_endColHeader):l=e.startIndex.column,n=Math.max(this.m_startColEndHeader,e.startIndex.column);n<=l;n++)for(s=this._getHeadersByIndex(n,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),o=0;o<s.length;o++)i.add(s[o])}return i},M.prototype._highlightHeaders=function(e,t,i){t.forEach(t=>{const i=t[this.getResources().getMappedAttribute("context")];null==e.endIndex.column||-1===e.endIndex.row&&-1===e.endIndex.column||-1===e.endIndex.column&&0===e.startIndex.column&&this._isHeaderSelected(i,"row")?(t.classList.remove(this.getMappedStyle("headerPartialSelected")),t.classList.add(this.getMappedStyle("headerAllSelected"))):(t.classList.remove(this.getMappedStyle("headerAllSelected")),t.classList.add(this.getMappedStyle("headerPartialSelected")))}),i.forEach(t=>{const i=t[this.getResources().getMappedAttribute("context")];-1===e.endIndex.row&&-1===e.endIndex.column||-1===e.endIndex.row&&0===e.startIndex.row&&this._isHeaderSelected(i,"column")?(t.classList.remove(this.getMappedStyle("headerPartialSelected")),t.classList.add(this.getMappedStyle("headerAllSelected"))):(t.classList.remove(this.getMappedStyle("headerAllSelected")),t.classList.add(this.getMappedStyle("headerPartialSelected")))})},M.prototype._isHeaderSelected=function(e,t){let i=!1;return this.GetSelection().forEach(s=>{e.index>=s.startIndex[t]&&e.index+(e.extent-1)<=s.endIndex[t]&&(i=!0)}),i},M.prototype._clearHeaderHighLight=function(){const e="."+this.getMappedStyle("headerPartialSelected")+"."+this.getMappedStyle("headercell"),t=this.m_root.querySelectorAll(e);for(let e=0;e<t.length;e++)t[e].classList.remove(this.getMappedStyle("headerPartialSelected"));const i="."+this.getMappedStyle("headerAllSelected")+"."+this.getMappedStyle("headercell"),s=this.m_root.querySelectorAll(i);for(let e=0;e<s.length;e++)s[e].classList.remove(this.getMappedStyle("headerAllSelected"))},M.prototype._getCurrentSelectionCellCount=function(){for(var e=0,t=this.GetSelection(),i=0;i<t.length;i++){var s=this.getElementsInRange(t[i]);null!=s&&(e+=s.length)}return e},M.prototype.unhighlightElems=function(e){if(null!=e&&0!==e.length)for(let t=0;t<e.length;t+=1){let i=e[t],s=["selected","topSelected","bottomSelected","startSelected","endSelected"];this._unhighlightElement(i,s)}},M.prototype.highlightElems=function(e){if(null!=e&&0!==e.length)for(let t=0;t<e.length;t+=1)this._highlightElement(e[t],["selected"])},M.prototype.applySelection=function(e,t,i,s){for(var n=this.GetSelection(),o=0;o<n.length;o+=1){var l=this.getElementsInRange(n[o],e,t,i,s);this.highlightElems(l),this._applyBorderClassesAroundRange(l,n[o],!0,"Selected")}},M.prototype.handleDatabodySelectionDrag=function(e){var t,i;if(this.m_utils.isTouchDevice()?t=this.findCell(document.elementFromPoint(e.touches[0].clientX,e.touches[0].clientY)):(i=e.target,t=this.findCell(i)),null!=t){var s=this.getCellIndexes(t);this.m_deselectInProgress?this.extendDeselection(s,e):this.isHeaderSelectionType(this.m_selectionFrontier)?this.extendSelectionHeader(t,e):this.extendSelection(s,e)}},M.prototype.handleHeaderClickSelection=function(e){var t,i,s,n,o=e.target,l=this.findHeader(o),r=e.shiftKey,a=this.isMultipleSelection(),h=this.m_utils.ctrlEquivalent(e);if(r&&a||!l||this._setActive(l,this._createActiveObject(l),e),null==this.m_active||"header"!==this.m_active.type&&!e.shiftKey)return!1;var d=l[this.getResources().getMappedAttribute("context")];if(t=d.axis,i=d.index,n=d.extent,h&&this._shouldDeselectHeader(i,n,t)){var c,m,u,_;-1!==t.indexOf("row")?(c=this.createIndex(i,0),m=this.createIndex(i+n-1,-1),_=this._getSelectionStartAndEnd(c,m,0),u=this.createRange(this.createIndex(_.min.row,0),this.createIndex(_.max.row,-1))):(c=this.createIndex(0,i),m=this.createIndex(-1,i+n-1),_=this._getSelectionStartAndEnd(c,m,0),u=this.createRange(this.createIndex(0,_.min.column),this.createIndex(-1,_.max.column)));var p=this._trimRangeForSelectionMode(u);return this.m_deselectInfo={anchor:p.startIndex,selection:this.GetSelection(),axis:-1!==t.indexOf("row")?"row":"column",sourceParent:l},void(this.m_deselectInProgress=this._deselectRange(p,e))}"header"===this.m_active.type&&(t=this.m_active.axis,i=this.m_active.index,s=this.m_active.level),this.m_utils.isTouchDevice()?(this._removeTouchSelectionAffordance(),this._selectHeader(t,i,s,e)):r&&a?(null==t&&(t=d.axis),(-1!==t.indexOf("row")&&-1!==d.axis.indexOf("row")||-1!==t.indexOf("column")&&-1!==d.axis.indexOf("column"))&&this.extendSelectionHeader(l,e)):2!==e.button&&this._selectHeader(t,i,s,e)},M.prototype.discontiguousHeaderSetActiveFromDatabody=function(e,t,i,s){var n=t.replace("End",""),o=this.m_selection[this.m_selection.length-1];this.unhighlightSelection(),o.startIndex.row===this.m_active.indexes.row&&o.endIndex.row===this.m_active.indexes.row&&o.startIndex.column===this.m_active.indexes.column&&o.endIndex.column===this.m_active.indexes.column&&this.m_selection.pop(),this._setActive(i,{type:"header",index:this.m_trueIndex[n],level:s-1,axis:t},e,!1),this.rehighlightSelection()},M.prototype.handleDragAnchorChange=function(e){if(this.m_headerDragState){var t,i,s=e.target,n=this.findHeader(s),o=n[this.getResources().getMappedAttribute("context")],l=this._getActiveElement(),r=l[this.getResources().getMappedAttribute("context")],a=this._getAttribute(l.parentNode,"start",!0),h=a+(this._getAttribute(l.parentNode,"extent",!0)-1);if(!o.extent)return;1===o.extent?(t=o.index,i=o.index):i=(t=this._getAttribute(n.parentNode,"start",!0))+(this._getAttribute(n.parentNode,"extent",!0)-1),1!==r.extent?(t<=a&&i>=h||t>=a&&i<=h)&&this._setActive(n,this._createActiveObject(n),e):t!==i&&t<=a&&a<=i&&this._setActive(n,this._createActiveObject(n),e)}},M.prototype.handleDatabodyClickSelection=function(e){var t,i=e.target,s=this.findCell(i);if(null!=s&&(t=this.getCellIndexes(s)),null!=t){if(this.isMultipleSelection()&&2===e.button&&this._isContainSelection(t))return;var n=this.m_utils.ctrlEquivalent(e),o=e.shiftKey;if(this.m_utils.containsCSSClassName(s,this.getMappedStyle("selected"))&&n){this.m_deselectInfo={anchor:t,selection:this.GetSelection()};var l=this.getCellEndIndexes(s),r=this._trimRangeForSelectionMode(this.createRange(t,l));return void(this.m_deselectInProgress=this._deselectRange(r,e))}this.isMultipleSelection()?(this._removeTouchSelectionAffordance(),this.m_utils.isTouchDevice()?(null!=this.m_active&&this._unhighlightActive(),this.selectAndFocus(t,e,!1)):n?n&&o?this.extendSelection(t,e):this.selectAndFocus(t,e,!0):o?this.extendSelection(t,e):this.selectAndFocus(t,e,!1)):this.selectAndFocus(t,e,!1)}},M.prototype._doRangesOverlap=function(e,t){var i=e.startIndex,s=i.column,n=i.row,o=e.endIndex,l=o.column,r=o.row,a=t.startIndex,h=a.column,d=a.row,c=t.endIndex,m=c.column,u=c.row;return(s<=m||-1===m||void 0===m)&&(l>=h||-1===l||void 0===l)&&(n<=u||-1===u)&&(r>=d||-1===r)},M.prototype._isRangeValid=function(e){return(e.startIndex.row<=e.endIndex.row||e.startIndex.row>=0&&-1===e.endIndex.row)&&(e.startIndex.column<=e.endIndex.column||e.startIndex.column>=0&&-1===e.endIndex.column||void 0===e.startIndex.column&&void 0===e.endIndex.column)},M.prototype._deselectRange=function(e,t){var i=this.m_deselectInfo.selection,s=e.startIndex,n=s.column,o=s.row,l=e.endIndex,r=l.column,a=l.row,h=!1,d=[],c=0,m=[],u=this;return i.forEach(function(t){var i=t.startIndex,s=i.column,l=i.row,_=t.endIndex,p=_.column,g=_.row;if(this._doRangesOverlap(t,e)){var f,C,y=function(e,t,i){return new Promise(function(s){u._createRangeWithKeys(e,t,function(e){d[i]=e,s()})})};h=!0,l<o&&(f=this.createIndex(l,s),C=this.createIndex(o-1,p),this._isRangeValid({startIndex:f,endIndex:C})&&(m.push(y(f,C,c)),c+=1)),-1!==a&&(f=this.createIndex(a+1,s),C=this.createIndex(g,p),this._isRangeValid({startIndex:f,endIndex:C})&&(m.push(y(f,C,c)),c+=1)),s<n&&void 0!==s&&(f=this.createIndex(Math.max(o,l),s),C=this.createIndex(Math.min(-1===a?g:a,-1===g?a:g),n-1),this._isRangeValid({startIndex:f,endIndex:C})&&(m.push(y(f,C,c)),c+=1)),-1!==r&&void 0!==s&&(f=this.createIndex(Math.max(o,l),r+1),C=this.createIndex(Math.min(-1===a?g:a,-1===g?a:g),p),this._isRangeValid({startIndex:f,endIndex:C})&&(m.push(y(f,C,c)),c+=1))}else d[c]=t,c+=1},this),!!h&&(Promise.all(m).then(function(){var e=u.m_selection;u.SetSelection(d),u._compareSelectionAndFire(t,e)}),!0)},M.prototype._shouldDeselectHeader=function(e,t,i){var s,n,o=this.GetSelection();"row"===i||"rowEnd"===i?(s="row",n="column"):(s="column",n="row");var l=!1,r=this.m_options.getSelectionMode();return o.forEach(function(i){var o=i.startIndex[n],a=i.endIndex[n];if(0===o&&-1===a||"row"===r&&"row"===s){var h=i.startIndex[s],d=i.endIndex[s];h<=e&&(d>=e+t-1||-1===d)&&(l=!0)}}),l},M.prototype._handleSelectAll=function(e){return!(!this._isSelectionEnabled()||!this.isMultipleSelection())&&("row"===this.m_options.getSelectionMode()?this._selectRange(this.createIndex(0),this.createIndex(-1),e):this._selectRange(this.createIndex(0,0),this.createIndex(-1,-1),e),this.m_utils.isTouchDevice()&&this.m_topSelectIconContainer&&this.m_bottomSelectIconContainer&&(this.m_topSelectIconContainer.parentNode.removeChild(this.m_topSelectIconContainer),this.m_bottomSelectIconContainer.parentNode.removeChild(this.m_bottomSelectIconContainer)),!0)},M.prototype._isContainSelection=function(e,t){null==t&&(t=this.GetSelection());for(var i=0;i<t.length;i+=1){var s=t[i],n=s.startIndex,o=this.getEndIndex(s),l=n.row,r=o.row;if(e.row>=l&&(-1===r||e.row<=r)){var a=n.column,h=o.column;if(isNaN(a)||isNaN(h))return!0;if(e.column>=a&&(-1===h||e.column<=h))return!0}}return!1},M.prototype._isHeaderInsideSelection=function(e,t){const i=this.GetSelection();for(let s=0;s<i.length;s+=1){let n=i[s],o=n.startIndex,l=this.getEndIndex(n),r=o.row,a=l.row,h=o.column,d=l.column;if("column"===t||"columnEnd"===t){if(e>=h&&(-1===d||e<=d)&&0===r&&-1===a)return!0}else if(("row"===t||"rowEnd"===t)&&e>=r&&(-1===a||e<=a)&&0===h&&-1===d)return!0}return!1},M.prototype._getContainedSelectionCssClass=function(e,t){var i=[],s={contains:!1,class:[]};null==t&&(t=this.GetSelection());for(var n=0;n<t.length;n+=1){var o=t[n],l=o.startIndex,r=this.getEndIndex(o),a=l.row,h=r.row;if(e.row>=a&&(-1===h||e.row<=h)){e.row===a&&i.push("topSelected"),e.row===h&&i.push("bottomSelected");var d=l.column,c=r.column;(isNaN(d)||isNaN(c))&&(s.contains=!0,s.class=i),e.column>=d&&(-1===c||e.column<=c)&&(s.contains=!0,s.class=i)}}return s},M.prototype._compareSelections=function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i+=1){for(var s=!1,n=0;n<t.length;n+=1)this._compareIndividualSelectionObjects(e[i],t[n])&&(s=!0);if(!1===s)return!1}return!0},M.prototype._compareIndividualSelectionObjects=function(e,t){return e.startIndex.row===t.startIndex.row&&e.startIndex.column===t.startIndex.column&&e.endIndex.row===t.endIndex.row&&e.endIndex.column===t.endIndex.column},M.prototype._clearSelection=function(e){this.unhighlightSelection(),this._removeTouchSelectionAffordance();var t=this.GetSelection();this.m_selection=[],this._compareSelectionAndFire(e,t)},M.prototype.setDiscontiguousSelectionMode=function(e){this.m_discontiguousSelection=e,this._setAccInfoText(e?"accessibleRangeSelectModeOn":"accessibleRangeSelectModeOff")},M.prototype._selectEntireRow=function(e,t,i){var s=this.createIndex(e,0),n=this.createIndex(t,-1),o=this._getSelectionStartAndEnd(s,n,0);"row"===this.m_options.getSelectionMode()?this._selectRange(this.createIndex(o.min.row),this.createIndex(o.max.row),i):this._selectRange(this.createIndex(o.min.row,0),this.createIndex(o.max.row,-1),i)},M.prototype._selectEntireColumn=function(e,t,i){var s=this.createIndex(0,e),n=this.createIndex(-1,t),o=this._getSelectionStartAndEnd(s,n,0);this._selectRange(this.createIndex(0,o.min.column),this.createIndex(-1,o.max.column),i)},M.prototype._selectRange=function(e,t,i){this.unhighlightSelection(),this._createRangeWithKeys(e,t,this._selectRangeCallback.bind(this,i))},M.prototype._selectRangeCallback=function(e,t){var i,s=this.GetSelection();(i=this.m_discontiguousSelection||!e||this.m_utils.ctrlEquivalent(e)&&this.isMultipleSelection()&&0===e.button?this.m_utils.ctrlEquivalent(e)&&this.isMultipleSelection()&&!0===e.shiftKey?s.slice(0,s.length-1):s.slice(0):[]).push(t),this.m_selection=i,this.rehighlightSelection(),this._isDatabodyCellActive()&&e.target[this.getResources().getMappedAttribute("context")]&&!e.target[this.getResources().getMappedAttribute("context")].axis&&!this.m_selectionFrontier.axis&&(this.m_selectionFrontier=this.m_active.indexes,this._highlightActive()),this._compareSelectionAndFire(e,s)},M.prototype.rehighlightSelection=function(){for(var e=0;e<this.m_selection.length;e++)this.highlightRange(this.m_selection[e])},M.prototype.GetSelection=function(){return null==this.m_selection&&(this.m_selection=[]),this.m_selection},M.prototype.SetSelection=function(e){void 0!==e&&(null===e&&(e=[]),this.unhighlightSelection(),this.m_selection=e,this._resetHeaderHighLight(),null!=this.m_databody&&this.applySelection(this.m_startRow,this.m_endRow,this.m_startCol,this.m_endCol),this.m_bottomFloodFillIconContainer&&(1===this.m_selection.length?this._moveFloodFillAffordance():this._removeFloodFillAffordance()))},M.prototype.fireSelectionEvent=function(e,t){var i={event:e,ui:{selection:this.GetSelection(),previousSelection:t}};this.fireEvent("select",i)},M.prototype.extendSelection=function(e,t,i){if("header"!==this.m_active.type){var s;if(this.m_utils.isTouchDevice())s=this.m_touchSelectAnchor;else s={row:this.m_active.indexes.row,column:this.m_active.indexes.column};if(null!=s){this._resetSelectionFrontierFocus();var n=this._updateSelectionFrontier(s,e,i),o=n.min,l=n.max;if("row"===this.m_options.getSelectionMode()&&(o=this.createIndex(o.row),l=this.createIndex(l.row)),this.m_discontiguousSelection&&(this.m_deselectInProgress||this._isContainSelection(s,this.GetSelection().slice(0,-1)))){this.m_deselectInProgress||(this.m_deselectInfo={anchor:s,selection:this.GetSelection()});var r=this._trimRangeForSelectionMode(this.createRange(o,l));this.m_deselectInProgress=this._deselectRange(r,t)}else this._createRangeWithKeys(o,l,this._extendSelectionCallback.bind(this,t,s))}}},M.prototype.extendDeselection=function(e,t){var i=this.m_deselectInfo.anchor,s=this._updateSelectionFrontier(i,e),n=s.min,o=s.max,l=this._trimRangeForSelectionMode(this.createRange(n,o));this._deselectRange(l,t)},M.prototype.extendSelectionHeader=function(e,t,i,s){if(null!==e){var n=this.findCellOrHeader(e);if(null!==n){var o,l,r,a,h,d=n[this.getResources().getMappedAttribute("context")];if(null==i&&(i=this.m_discontiguousSelection),d){if(d.cell)a=r=-1!==this.m_selectionFrontier.axis.indexOf("column")?d.indexes.column:d.indexes.row,h=r;else{if(this.m_selectionFrontier&&d.index===this.m_selectionFrontier.index&&d.level===this.m_selectionFrontier.level)return;1===d.extent?(r=d.index,a=d.index,h=d.index):a=(r=this._getAttribute(e.parentNode,"start",!0))+(this._getAttribute(e.parentNode,"extent",!0)-1)}var c=s?this.m_deselectInfo.sourceParent:this._getActiveElement();if(c){var m,u,_,p=c[this.getResources().getMappedAttribute("context")];if(s?(l=this.m_deselectInfo.axis,o=this.m_deselectInfo.anchor[l],u=(m=this._getAttribute(c.parentNode,"start",!0))+(this._getAttribute(c.parentNode,"extent",!0)-1)):this.m_utils.isTouchDevice()?(-1===(o=-1!==this.m_selectionFrontier.axis.indexOf("column")?this.m_touchSelectAnchor.column:this.m_touchSelectAnchor.row)&&(o=0),m=o,u=o,l=this.m_selectionFrontier.axis):(u=(m=this._getAttribute(c.parentNode,"start",!0))+(this._getAttribute(c.parentNode,"extent",!0)-1),"header"===this.m_active.type&&(l=this.m_active.axis,o=this.m_active.index)),"cell"===this.m_active.type?(_=1,o=-1!==(l=d.axis).indexOf("row")?this.m_active.indexes.row:this.m_active.indexes.column):_=p.extent,i&&!s){var g=this.m_selection[this.m_selection.length-1];this.unhighlightSelection(),g&&this.checkCorners(l,o,g)&&this.m_selection.pop()}if(1!==_?r<=m&&a>=u||r>=m&&a<=u?(this.m_headerDragState||this._setActive(n,this._createActiveObject(n),t),o=r,h=a):r>m&&a>u?(o=m,h=a):r<m&&a<u&&(o=r,h=u):1===_&&r!==a&&(r<=o&&o<=a?(this.m_headerDragState||"cell"===this.m_active.type||this._setActive(n,this._createActiveObject(n),t),o=r,h=a):r<=o&&a<=o?(h=o,o=r):r>=o&&a>=o&&(h=a)),d.cell?this.setHeaderSelectionFrontier(l,h,h,this.m_selectionFrontier.level,n,!0):this.setHeaderSelectionFrontier(l,h,d.index,d.level,n,!0),!s&&l)-1!==l.indexOf("column")?this._selectEntireColumn(o,h,t):-1!==l.indexOf("row")&&this._selectEntireRow(o,h,t);else{var f,C=Math.min(o,h),y=Math.max(o,h);f=null!=l&&-1!==l.indexOf("row")?this.createRange(this.createIndex(C,0),this.createIndex(y,-1)):this.createRange(this.createIndex(0,C),this.createIndex(-1,y));var v=this._trimRangeForSelectionMode(f);this._deselectRange(v,t)}}}}}},M.prototype._updateSelectionFrontier=function(e,t,i){var s,n,o;if("row"===this.m_options.getSelectionMode()?(s=this.createIndex(e.row,this.m_startCol),n=this.createIndex(t.row,this.m_endCol)):(s=e,n=t),null!=i){if(this.m_deselectInProgress)o=this.createRange(this.m_deselectInfo.anchor,this.m_selectionFrontier);else{var l=this.GetSelection();o=l[this._getLastAnchoredSelectionIndex(l,s)]}var r=o.startIndex,a=o.endIndex;r.row===this.m_selectionFrontier.row&&s.row!==r.row?s.row=a.row:a.row===this.m_selectionFrontier.row&&s.row!==a.row&&(s.row=r.row),r.column===this.m_selectionFrontier.column&&s.column!==r.column?s.column=a.column:a.column===this.m_selectionFrontier.column&&s.column!==a.column&&(s.column=r.column)}var h=this._getSelectionStartAndEnd(s,n,0),d=n;if(null!=i){var c=h.min,m=h.max;for("row"===this.m_options.getSelectionMode()&&(c=this.createIndex(c.row),m=this.createIndex(m.row));this._compareIndividualSelectionObjects(o,this.createRange(c,m));){if(i===this.keyCodes.LEFT_KEY){if(0===n.column)break;n.column-=1}else if(i===this.keyCodes.RIGHT_KEY){if(n.column===this.m_endCol)break;n.column+=1}else if(i===this.keyCodes.UP_KEY){if(0===n.row)break;n.row-=1}else{if(i!==this.keyCodes.DOWN_KEY)break;if(n.row===this.m_endRow)break;n.row+=1}c=(h=this._getSelectionStartAndEnd(s,n,0)).min,m=h.max,"row"===this.m_options.getSelectionMode()&&(c=this.createIndex(c.row),m=this.createIndex(m.row))}i===this.keyCodes.LEFT_KEY?(d.column=c.column<s.column?c.column:m.column,d.row=c.row<s.row?c.row:m.row):i===this.keyCodes.RIGHT_KEY?(d.column=m.column>s.column?m.column:c.column,d.row=c.row<s.row?c.row:m.row):i===this.keyCodes.UP_KEY?(d.row=c.row<s.row?c.row:m.row,d.column=c.column<s.column?c.column:m.column):i===this.keyCodes.DOWN_KEY&&(d.row=m.row>s.row?m.row:c.row,d.column=c.column<s.column?c.column:m.column)}else d=this.getCellIndexes(this._getCellByIndex(d));return"row"===this.m_options.getSelectionMode()&&(d=this.createIndex(d.row,this.m_active.indexes.column)),this.m_selectionFrontier=d,h},M.prototype._getMinOrMax=function(e,t,i){return isNaN(e)?isNaN(t)?null:t:isNaN(t)?e:i(e,t)},M.prototype._getSelectionStartAndEnd=function(e,t,i){var s=this.getElementsInRange(this.createRange(e,t));if(null==s||s.length===i)return{min:e,max:t};for(var n={row:this._getMinOrMax(e.row,t.row,Math.min),column:this._getMinOrMax(e.column,t.column,Math.min)},o={row:this._getMinOrMax(e.row,t.row,Math.max),column:this._getMinOrMax(e.column,t.column,Math.max)},l=0;l<s.length;l++){var r=this.getCellIndexes(s[l]),a=this.getCellEndIndexes(s[l]);(r.row<n.row||null==n.row)&&(n.row=r.row),(r.column<n.column||null==n.column)&&(n.column=r.column),(a.row>o.row||null==o.row)&&(o.row=a.row),(a.column>o.column||null==o.column)&&(o.column=a.column)}return this._getSelectionStartAndEnd(n,o,s.length)},M.prototype._getLastAnchoredSelectionIndex=function(e,t){var i;for(i=e.length-1;i>-1;i--)if(this._isContainSelection(t,[e[i]]))return i;return i-1},M.prototype._extendSelectionCallback=function(e,t,i){var s=this.GetSelection(),n=this._getLastAnchoredSelectionIndex(s,t),o=s[n];if(null!=o){var l=o.startIndex.row===i.startIndex.row;null!=o.startIndex.column&&null!=i.startIndex.column&&(l=l&&o.startIndex.column===i.startIndex.column);var r=o.endIndex.row===i.endIndex.row;if(null!=o.endIndex.column&&null!=i.endIndex.column&&(r=r&&o.endIndex.column===i.endIndex.column),!l||!r){var a;if(this.m_discontiguousSelection||e&&this.m_utils.ctrlEquivalent(e)&&0===e.button?(a=s.slice(0),this.unhighlightRange(o),a.splice(n,1)):(a=[],this.unhighlightSelection()),a.push(i),this.m_selection=a,this.m_discontiguousSelection||e&&this.m_utils.ctrlEquivalent(e)&&0===e.button)for(var h=0;h<this.m_selection.length;h++)this.highlightRange(this.m_selection[h]);else this.highlightRange(i,!0);this._makeSelectionFrontierFocus(),this._compareSelectionAndFire(e,s)}}},M.prototype._resetSelectionFrontierFocus=function(){if(!(null==this.m_selectionFrontier||this._isDatabodyCellActive()&&this.m_selectionFrontier.row===this.m_active.indexes.row&&this.m_selectionFrontier.column===this.m_active.indexes.column)){var e=this.createRange(this.m_selectionFrontier),t=this.getElementsInRange(e);null!=t&&t.length>0&&this._unsetAriaProperties(t[0])}},M.prototype._makeSelectionFrontierFocus=function(){if(!(null==this.m_selectionFrontier||this._isDatabodyCellActive()&&this.m_selectionFrontier.row===this.m_active.indexes.row&&this.m_selectionFrontier.column===this.m_active.indexes.column)){if(this._isDatabodyCellActive()){var e=this.createRange(this.m_active.indexes),t=this.getElementsInRange(e);null!=t&&t.length>0&&this._unsetAriaProperties(t[0])}var i=this.createRange(this.m_selectionFrontier),s=this.getElementsInRange(i);if(null!=s&&0!==s.length){this._updateContextInfo(this.m_selectionFrontier);var n=this.m_utils.containsCSSClassName(s[0],this.getMappedStyle("row"))?s[0].firstChild:s[0];this._setAriaProperties(this._createActiveObject(n),null,n)}}},M.prototype._selectHeader=function(e,t,i,s){var n,o;if(-1!==e.indexOf("row")&&this.m_rowHeaderLevelCount-1===i||-1!==e.indexOf("column")&&this.m_columnHeaderLevelCount-1===i)n=t,o=t;else{var l=this._getActiveElement();o=(n=this._getAttribute(l.parentNode,"start",!0))+(this._getAttribute(l.parentNode,"extent",!0)-1)}-1!==e.indexOf("row")?((n===o&&!this.isMultipleSelection()||this.isMultipleSelection())&&(this.setHeaderSelectionFrontier(e,o,t,i,s.target,!0),this._selectEntireRow(n,o,s)),this._setAccInfoText("accessibleRowSelected",{row:t+1})):-1!==e.indexOf("column")&&(this.setHeaderSelectionFrontier(e,o,t,i,s.target,!0),this._selectEntireColumn(n,o,s),this._setAccInfoText("accessibleColumnSelected",{column:t+1})),this.isMultipleSelection()&&(this.m_headerDragState=!0)},M.prototype.setHeaderSelectionFrontier=function(e,t,i,s,n,o){o&&(this.m_selectionFrontier={}),this.m_selectionFrontier.axis=e,this.m_selectionFrontier.end=t,this.m_selectionFrontier.index=i,this.m_selectionFrontier.level=s,this.m_selectionFrontier.target=n},M.prototype._resetHeaderHighLight=function(){this.GetSelection().forEach(e=>{var t=this.getHeadersByRange(e,"row"),i=this.getHeadersByRange(e,"column");this._highlightHeaders(e,t,i)})},M.prototype.updateSelectionHeader=function(){this.m_selectionFrontier&&this.m_selectionFrontier.target&&(this.m_utils.isTouchDevice()&&this.m_selection.length&&(this.m_touchSelectAnchor=this.m_selection[this.m_selection.length-1].startIndex),this.extendSelectionHeader(this.m_selectionFrontier.target,null)),this._resetHeaderHighLight()},M.prototype.selectAndFocus=function(e,t,i){null==i&&(i=!1),this._resetSelectionFrontierFocus(),this._setActiveByIndex(e,t),"row"===this.m_options.getSelectionMode()&&(e=this.createIndex(e.row));var s=this._getSelectionStartAndEnd(e,e,0),n=s.min,o=s.max;"row"===this.m_options.getSelectionMode()&&(n=this.createIndex(n.row),o=this.createIndex(o.row)),this._createRangeWithKeys(n,o,this._selectAndFocusRangeCallback.bind(this,n,t,i))},M.prototype._selectAndFocusRangeCallback=function(e,t,i,s){var n=this.GetSelection(),o=n.slice(0);if(!i)if(this.m_discontiguousSelection||!t||this.isMultipleSelection()&&this.m_utils.ctrlEquivalent(t)&&0===t.button){if(this._isDatabodyCellActive()&&null!=this.m_prevActive&&"cell"===this.m_prevActive.type&&this.m_selectionFrontier.row===this.m_prevActive.indexes.row&&this.m_selectionFrontier.column===this.m_prevActive.indexes.column&&!this.m_utils.isTouchDevice()&&(t.keyCode||!this.isMultipleSelection())){o.pop();var l=this._getContainedSelectionCssClass(this.m_prevActive.indexes,o);if(l.contains){var r=l.class;if(r.length){var a=[];-1===r.indexOf("topSelected")&&a.push("topSelected"),-1===r.indexOf("bottomSelected")&&a.push("bottomSelected"),this._unhighlightElement(this._getCellByIndex(this.m_prevActive.indexes),a)}else this._unhighlightElement(this._getCellByIndex(this.m_prevActive.indexes),["topSelected","bottomSelected"])}else this._unhighlightElement(this._getCellByIndex(this.m_prevActive.indexes),["selected","topSelected","bottomSelected"])}}else this.unhighlightSelection(),o=[];this.m_selectionFrontier=e,o.push(s),this.m_selection=o,this.highlightRange(s),this._compareSelectionAndFire(t,n)},M.prototype._compareSelectionAndFire=function(e,t){var i=this.GetSelection();this.isMultipleSelection()&&i.length>0&&(this.m_utils.isTouchDevice()?(this._addTouchSelectionAffordance(e),this._moveTouchSelectionAffordance()):this.m_options.isFloodFillEnabled()&&this._isSelectionEnabled()&&!this.m_discontiguousSelection&&"cell"===this.m_active.type&&(this._addFloodfillAffordance(e),this._moveFloodFillAffordance())),this._compareSelections(i,t)||(this._resetHeaderHighLight(),this.fireSelectionEvent(e,t))},M.prototype._addTouchSelectionAffordance=function(e){if(null==this.m_topSelectIconContainer&&null==this.m_bottomSelectIconContainer){var t=e.target,i=this.findCell(t);if(i||(i=this.findHeader(t)),!i)return;this.m_topSelectIconContainer=document.createElement("div"),this.m_topSelectIconContainer.className=this.getMappedStyle("toucharea");var s=document.createElement("div");s.className=this.getMappedStyle("selectaffordance"),s.setAttribute("role","button"),s.setAttribute("aria-label",this.getResources().getTranslatedText("accessibleSelectionAffordanceTop")),this.m_topSelectIconContainer.appendChild(s),this.m_bottomSelectIconContainer=document.createElement("div"),this.m_bottomSelectIconContainer.className=this.getMappedStyle("toucharea");var n=document.createElement("div");n.className=this.getMappedStyle("selectaffordance"),n.setAttribute("role","button"),n.setAttribute("aria-label",this.getResources().getTranslatedText("accessibleSelectionAffordanceBottom")),this.m_bottomSelectIconContainer.appendChild(n),this.m_databody.firstChild.appendChild(this.m_topSelectIconContainer),this.m_databody.firstChild.appendChild(this.m_bottomSelectIconContainer),this.m_touchSelectionAffordanceHeight=this.m_topSelectIconContainer.firstElementChild.offsetHeight,this.m_touchSelectionAffordanceWidth=this.m_topSelectIconContainer.firstElementChild.offsetWidth}},M.prototype._addRoundedAffordanceClasses=function(e,t,i,s){if(e&&t)i||"row"!==s?i||"column"!==s?(e.classList.add(this.getMappedStyle("selectaffordancetopcornerbounded")),t.classList.add(this.getMappedStyle("selectaffordancebottomcornerbounded"))):(e.classList.add(this.getMappedStyle("selectaffordancetopcolumn")),t.classList.add(this.getMappedStyle("selectaffordancebottomcolumn"))):(e.classList.add(this.getMappedStyle("selectaffordancetoprow")),t.classList.add(this.getMappedStyle("selectaffordancebottomrow")));else if(t){let e;e=i||"row"!==s?i||"column"!==s?"selectaffordancebottomcornerbounded":"selectaffordancebottomcolumn":"selectaffordancebottomrow",t.classList.add(this.getMappedStyle(e))}},M.prototype._clearRoundedAffordanceClasses=function(e,t){e&&(e.classList.remove(this.getMappedStyle("selectaffordancetopcornerbounded")),e.classList.remove(this.getMappedStyle("selectaffordancetopcolumn")),e.classList.remove(this.getMappedStyle("selectaffordancetoprow"))),t.classList.remove(this.getMappedStyle("selectaffordancebottomcornerbounded")),t.classList.remove(this.getMappedStyle("selectaffordancebottomcolumn")),t.classList.remove(this.getMappedStyle("selectaffordancebottomrow"))},M.prototype._removeTouchSelectionAffordance=function(e){(this._isDatabodyCellActive()||e)&&this.m_topSelectIconContainer&&this.m_topSelectIconContainer.parentNode&&(this.m_topSelectIconContainer.parentNode.removeChild(this.m_topSelectIconContainer),this.m_bottomSelectIconContainer.parentNode.removeChild(this.m_bottomSelectIconContainer))},M.prototype._moveTouchSelectionAffordance=function(){var e,t,i=this.getResources().isRTLMode()?"right":"left",s=this.GetSelection();if(s.length>0){var n=this.m_options.getSelectionMode(),o=this._getTouchSelectionAffordanceSize();if(null!=this.m_topSelectIconContainer&&null!=this.m_bottomSelectIconContainer){var l=this.m_topSelectIconContainer.firstElementChild,r=this.m_bottomSelectIconContainer.firstElementChild;if(this._clearRoundedAffordanceClasses(l,r),"row"===n||-1!==s[s.length-1].endIndex.row&&-1===s[s.length-1].endIndex.column){this._addRoundedAffordanceClasses(l,r,!1,"row");const n=this.getElementWidth(this.m_databody)/2+this.m_currentScrollLeft-o/2;let a;if(this.setElementDir(this.m_topSelectIconContainer,n,i),this.setElementDir(this.m_bottomSelectIconContainer,n,i),e=this._getAxisCellsByKey(s[s.length-1].startKey.row,"row"),(t=this._getAxisCellsByKey(s[s.length-1].endKey.row,"row"))&&t.length&&(a=t[0]),!a){let e=this.createIndex(-1,0),t=this.getElementsInRange(this.createRange(e,e));a=t[t.length-1]}this.setElementDir(this.m_topSelectIconContainer,this.getElementDir(e[0],"top")-this.m_touchSelectionAffordanceHeight-1,"top"),this.setElementDir(this.m_bottomSelectIconContainer,this.getElementDir(a,"top")+this.getElementHeight(a)-o+this.m_touchSelectionAffordanceHeight,"top")}else if(-1!==s[s.length-1].endIndex.column&&-1===s[s.length-1].endIndex.row){this._addRoundedAffordanceClasses(l,r,!1,"column"),e=this._getAxisCellsByKey(s[s.length-1].startKey.column,"column"),t=this._getAxisCellsByKey(s[s.length-1].endKey.column,"column");var a=this.getElementHeight(this.m_databody)/2+this.m_currentScrollTop-o/2;this.setElementDir(this.m_topSelectIconContainer,a,"top"),this.setElementDir(this.m_bottomSelectIconContainer,a,"top"),this.setElementDir(this.m_topSelectIconContainer,this.getElementDir(e[0],"left")-this.m_touchSelectionAffordanceWidth-2,"left"),this.setElementDir(this.m_bottomSelectIconContainer,this.getElementDir(t[0],"left")+this.getElementWidth(t[0])-(o-this.m_touchSelectionAffordanceWidth-1),"left")}else{this._addRoundedAffordanceClasses(l,r,!0);var h=this._getCellByIndex(s[s.length-1].startIndex),d=this._getCellByIndex(s[s.length-1].endIndex);if(!d){let e=this.createIndex(-1,-1),t=this.getElementsInRange(this.createRange(e,e));d=t[t.length-1]}this.setElementDir(this.m_topSelectIconContainer,this.getElementDir(h,"top")-this.m_touchSelectionAffordanceHeight-1,"top"),this.setElementDir(this.m_bottomSelectIconContainer,this.getElementDir(d,"top")+this.getElementHeight(d)-o+this.m_touchSelectionAffordanceWidth,"top"),this.setElementDir(this.m_topSelectIconContainer,this.getElementDir(h,i)-this.m_touchSelectionAffordanceWidth-2,i),this.setElementDir(this.m_bottomSelectIconContainer,this.getElementDir(d,i)+this.getElementWidth(d)-(o-this.m_touchSelectionAffordanceWidth),i)}null==this.m_topSelectIconContainer.parentNode&&(this.m_databody.firstChild.appendChild(this.m_topSelectIconContainer),this.m_databody.firstChild.appendChild(this.m_bottomSelectIconContainer))}}},M.prototype._scrollTouchSelectionAffordance=function(){var e,t,i=this.m_options.getSelectionMode();if("row"===i)null!=this.m_topSelectIconContainer&&(t=this.getResources().isRTLMode()?"right":"left",e=this.getElementWidth(this.m_databody)/2+this.m_currentScrollLeft,this.setElementDir(this.m_topSelectIconContainer,e,t),this.setElementDir(this.m_bottomSelectIconContainer,e,t));else if("cell"===i&&this.isHeaderSelectionType(this.m_selectionFrontier)&&null!=this.m_topSelectIconContainer)if(-1!==this.m_selectionFrontier.axis.indexOf("row"))t=this.getResources().isRTLMode()?"right":"left",e=this.getElementWidth(this.m_databody)/2+this.m_currentScrollLeft,this.setElementDir(this.m_topSelectIconContainer,e,t),this.setElementDir(this.m_bottomSelectIconContainer,e,t);else{var s=this.getElementHeight(this.m_databody)/2+this.m_currentScrollTop;this.setElementDir(this.m_topSelectIconContainer,s,"top"),this.setElementDir(this.m_bottomSelectIconContainer,s,"top")}},M.prototype._getTouchSelectionAffordanceSize=function(){if(null==this.m_touchSelectionAffordanceSize){var e=document.createElement("div");e.className=this.getMappedStyle("toucharea"),e.style.visibilty="hidden",e.style.top="0px",e.style.visibilty="0px",this.m_root.appendChild(e);var t=e.offsetWidth;this.m_root.removeChild(e),this.m_touchSelectionAffordanceSize=t}return this.m_touchSelectionAffordanceSize},M.SORT_ANIMATION_DURATION=800,M.prototype._handleSortContainerMouseOver=function(e){var t=e.target,i=this.findHeader(t),s=this._getSortIcon(i);this.m_utils.containsCSSClassName(e.currentTarget,this.getMappedStyle("sortIcon"))&&(this.m_utils.addCSSClassName(e.currentTarget,this.getMappedStyle("hover")),this.m_utils.addCSSClassName(s,this.getMappedStyle("hover")),this.m_utils.addCSSClassName(s,this.getMappedStyle("enabled")),this.m_utils.removeCSSClassName(s,this.getMappedStyle("disabled")))},M.prototype._handleSortMouseOut=function(e){if(!this._databodyEmpty()){var t,i=e.target,s=e.relatedTarget,n=this.findHeader(i);null!=n&&null!=s&&n===this.findHeader(s)||this._displaySortIcon(n),(t=this._getSortIcon(n))&&(this.m_utils.removeCSSClassName(t,this.getMappedStyle("hover")),this.m_utils.containsCSSClassName(t,this.getMappedStyle("selected"))||(this.m_utils.addCSSClassName(t,this.getMappedStyle("disabled")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("enabled"))));var o=this._getSortContainer(n);o&&(this.m_utils.removeCSSClassName(o,this.getMappedStyle("hover")),this.m_utils.removeCSSClassName(o,this.getMappedStyle("selected")))}},M.prototype._handleSortIconMouseDown=function(e){this._databodyEmpty()||(this.m_utils.addCSSClassName(e,this.getMappedStyle("selected")),this.m_utils.removeCSSClassName(e,this.getMappedStyle("disabled")))},M.prototype._toggleSortIconDirection=function(e,t){if(null!=e){var i=this._getSortIcon(e);"descending"===t&&(this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortascending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdefault")))?(this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortascending")),this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortdefault")),this.m_utils.addCSSClassName(i,this.getMappedStyle("sortdescending"))):"ascending"===t&&(this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdescending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdefault")))?(this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortdescending")),this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortdefault")),this.m_utils.addCSSClassName(i,this.getMappedStyle("sortascending"))):"default"===t&&(this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortdescending")),this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortascending")),this.m_utils.addCSSClassName(i,this.getMappedStyle("sortdefault")))}},M.prototype._displaySortIcon=function(e){var t=!1;if(null!=e){var i=this._getSortIcon(e);null!=this.m_sortInfo&&(t=this.m_sortInfo.key===this._getKey(e)),t&&this.m_utils.addCSSClassName(i,this.getMappedStyle("default"))}},M.prototype._buildSortIcon=function(e,t,i){var s=document.createElement("div");this.m_utils.addCSSClassName(s,this.getMappedStyle("iconContainer")),this.m_utils.addCSSClassName(s,this.getMappedStyle("sortIcon"));var n=document.createElement("div"),o=this.getMappedStyle("icon")+" "+this.getMappedStyle("clickableicon"),l=null!=this.m_sortInfo&&this.m_sortInfo.axis===i?this.m_sortInfo.key:null;if(e.key===l){var r=null!=this.m_sortInfo&&this.m_sortInfo.axis===i?this.m_sortInfo.direction:null;"ascending"===r?(n.className=this.getMappedStyle("sortascending")+" "+o,t.setAttribute(this.getResources().getMappedAttribute("sortDir"),r),n.setAttribute("title",this.getResources().getTranslatedText("labelSortDsc"))):"descending"===r?(n.className=this.getMappedStyle("sortdescending")+" "+o,t.setAttribute(this.getResources().getMappedAttribute("sortDir"),r),n.setAttribute("title",this.getResources().getTranslatedText("labelSortAsc"))):(n.className=this.getMappedStyle("sortdefault")+" "+o,n.setAttribute("title",this.getResources().getTranslatedText("labelSortAsc")))}else o+=" "+this.getMappedStyle("disabled"),n.className=this.getMappedStyle("sortdefault")+" "+o,n.setAttribute("title",this.getResources().getTranslatedText("labelSortAsc"));return s.appendChild(n),s.addEventListener("mouseover",this._handleSortContainerMouseOver.bind(this)),s},M.prototype._handleKeyboardSort=function(e,t){if(!this._databodyEmpty()){var i=e.getAttribute(this.getResources().getMappedAttribute("sortDir"));i=null==i||"descending"===i?"ascending":"descending",this._doHeaderSort(t,e,i)}},M.prototype._handleHeaderSort=function(e,t){if(!this._databodyEmpty()){var i=e.target,s=this.findHeader(i);null!=s&&(null==t&&(t=null!=this.m_sortInfo&&this.m_sortInfo.key===this._getKey(s)&&"ascending"===this.m_sortInfo.direction?"descending":"ascending"),this._doHeaderSort(e,s,t))}},M.prototype._handleCellSort=function(e,t,i){null==i||this._databodyEmpty()||(this._removeTouchSelectionAffordance(),this._doHeaderSort(e,i,t))},M.prototype._doHeaderSort=function(e,t,i){if(!0!==this.m_isSorting){this.m_delayedSort=null;var s=this._getKey(t),n=this._getAxis(t);if(this._removeSortSelection(),t.setAttribute(this.getResources().getMappedAttribute("sortDir"),i),this.m_sortInfo={event:e,key:s,axis:n,direction:i,header:t},this._toggleSortIconDirection(t,i),this._addSortSelection(),this._setAccInfoText("ascending"===i?"accessibleSortAscending":"accessibleSortDescending",{id:s}),null!=i&&null!=s&&null!=n)if(this._isDataGridProvider())this._fireSortRequestEvent(n);else{this.m_isSorting=!0,this.showStatusText();var o={axis:n,key:s,direction:i};this.getDataSource().sort(o,{success:this._handleSortSuccess.bind(this),error:this._handleSortError.bind(this)})}}else this.m_delayedSort={event:e,header:t,direction:i}},M.prototype._handleSortError=function(){this.hideStatusText()},M.prototype._removeSortSelection=function(){if(null!=this.m_sortInfo){var e;if(!(e="column"===this.m_sortInfo.axis?this._findHeaderByKey(this.m_sortInfo.key,this.m_colHeader,this.getMappedStyle("colheadercell")):this._findHeaderByKey(this.m_sortInfo.key,this.m_rowHeader,this.getMappedStyle("rowheadercell"))))return;e.removeAttribute(this.getResources().getMappedAttribute("sortDir"));var t=this._getSortIcon(e);this._toggleSortIconDirection(e,"default"),"descending"===this.m_sortInfo.direction&&(this.m_utils.removeCSSClassName(t,this.getMappedStyle("sortdescending")),this.m_utils.addCSSClassName(t,this.getMappedStyle("sortascending"))),this.m_utils.addCSSClassName(t,this.getMappedStyle("disabled")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("enabled")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("default")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("selected")),this.m_utils.removeCSSClassName(this._getSortContainer(e),this.getMappedStyle("enabled"))}},M.prototype._addSortSelection=function(){if(null!=this.m_sortInfo){var e;e="column"===this.m_sortInfo.axis?this._findHeaderByKey(this.m_sortInfo.key,this.m_colHeader,this.getMappedStyle("colheadercell")):this._findHeaderByKey(this.m_sortInfo.key,this.m_rowHeader,this.getMappedStyle("rowheadercell"));var t=this._getSortIcon(e);this.m_utils.addCSSClassName(t,this.getMappedStyle("default")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("disabled")),this.m_utils.addCSSClassName(t,this.getMappedStyle("selected"))}},M.prototype._getAxis=function(e){var t=this.getMappedStyle("colheadercell"),i=this.getMappedStyle("rowheadercell");return this.m_utils.containsCSSClassName(e,t)?"column":this.m_utils.containsCSSClassName(e,i)?"row":null},M.prototype._handleSortSuccess=function(){this.hideStatusText(),this._isDatabodyCellActive()?this._indexes({row:this.m_active.keys.row,column:this.m_active.keys.column},this._handlePreSortScrolling):this._fetchForSort(this.m_startRow,this.m_endRow-this.m_startRow+1,!1)},M.prototype._handlePreSortScrolling=function(e){var t=(-1===e.row?0:e.row)*this.m_avgRowHeight,i=t+this.m_avgRowHeight,s=this._isHighWatermarkScrolling();if(this.m_currentScrollTop<=t&&i<=this.m_currentScrollTop+this.getElementHeight(this.m_databody)||s)this._fetchForSort(this.m_startRow,this.m_endRow-this.m_startRow+1,!1);else{this.m_currentScrollTop=Math.min(t,this._getMaxScrollHeight());var n=Math.floor(this.m_currentScrollTop/this.m_avgRowHeight),o=n*this.m_avgRowHeight;this.m_startRow=n,this.m_endRow=-1,this.m_startRowHeader=n,this.m_endRowHeader=-1,this.m_startRowPixel=o,this.m_endRowPixel=o,this.m_startRowHeaderPixel=o,this.m_endRowHeaderPixel=o,this._fetchForSort(n,null,!0)}},M.prototype._fetchForSort=function(e,t,i){var s=document.createDocumentFragment(),n=document.createDocumentFragment();this.fetchHeaders("row",e,s,n,t,{success:this.handleHeadersFetchSuccessForSort.bind(this),error:this.handleCellsFetchError}),this.fetchCells(this.m_databody,e,this.m_startCol,t,this.m_endCol-this.m_startCol+1,{success:this.handleCellsFetchSuccessForSort.bind(this,s,n,i),error:this.handleCellsFetchError})},M.prototype.handleHeadersFetchSuccessForSort=function(e,t,i,s){var n,o,l,r,a,h,d,c=t.axis,m=t.start,u=t.header,_=t.endHeader;if(this.m_fetching[c]=!1,null!=e){for(n=e.getCount(),r=0,o=0,h=this.getMappedStyle("headercell")+" "+this.getMappedStyle("rowheadercell"),d=this.getRendererOrTemplate("row");n-o>0;)l=m+o,o+=(a=this.buildLevelHeaders(u,l,0,0,this.m_startRowPixel+r,!0,s,d,e,"row",h,this.m_rowHeaderLevelCount)).count,r+=a.totalHeaderDimension;this.m_endRowHeader=this.m_startRowHeader+(n-1),this.m_endRowHeaderPixel=this.m_startRowHeaderPixel+r}if(null!=i){for(n=i.getCount(),r=0,o=0,h=this.getMappedStyle("endheadercell")+" "+this.getMappedStyle("rowendheadercell"),d=this.getRendererOrTemplate("rowEnd");n-o>0;)l=m+o,o+=(a=this.buildLevelHeaders(_,l,0,0,this.m_startRowPixel+r,!0,s,d,i,"rowEnd",h,this.m_rowEndHeaderLevelCount)).count,r+=a.totalHeaderDimension;this.m_endRowEndHeader=this.m_startRowEndHeader+(n-1),this.m_endRowEndHeaderPixel=this.m_startRowEndHeaderPixel+r}this._signalTaskEnd()},M.prototype.handleCellsFetchSuccessForSort=function(e,t,i,s,n){var o;this.m_fetching.cells=!1;var l=M.SORT_ANIMATION_DURATION;this.isFetchComplete()&&this.hideStatusText();var r=n[0].start,a=s.getCount("row"),h=n[1].start,c=document.createDocumentFragment(),m=this._addCellsToFragment(c,s,r,this.m_startRowPixel,h,this.m_startColPixel);this.m_endRow=this.m_startRow+(a-1),this.m_endRowPixel=this.m_startRowPixel+m.totalRowHeight;var u=this.m_databody.firstChild,_=this.m_rowHeader.firstChild,p=this.m_rowEndHeader.firstChild;if(!0===i&&(o=this._isHighWatermarkScrolling(),this.m_utils.isTouchDeviceNotIOS()?(this._disableTouchScrollAnimation(),this.scrollTo(this.m_currentScrollLeft,this.m_currentScrollTop)):(this.m_silentScroll=!0,this.m_databody.scrollTop=this.m_currentScrollTop,this._syncScroller())),!l||!this.m_utils.supportsTransitions()||1===a||this.m_rowHeaderLevelCount>1&&null!=this.m_rowHeaderLevelCount||!1===o)this._signalTaskStart(),this._handleSortEnd(c,e,t);else if(this.m_isCustomElementCallback()){this._signalTaskStart("processing sort render");let i=document.createElement("div"),s=document.createElement("div"),n=document.createElement("div");i.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),s.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),n.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),i.className=this.getMappedStyle("info"),s.className=this.getMappedStyle("info"),n.className=this.getMappedStyle("info"),i.appendChild(c),s.appendChild(e),n.appendChild(t),this.m_root.appendChild(i),this.m_root.appendChild(s),this.m_root.appendChild(n);var g=d.getContext(i).getBusyContext().whenReady(),f=d.getContext(s).getBusyContext().whenReady(),C=d.getContext(n).getBusyContext().whenReady();Promise.all([g,f,C]).then(function(){for(;i.childNodes.length>0;)c.appendChild(i.childNodes[0]);for(;s.childNodes.length>0;)e.appendChild(s.childNodes[0]);for(;n.childNodes.length>0;)t.appendChild(n.childNodes[0]);this.m_root.removeChild(i),this.m_root.removeChild(s),this.m_root.removeChild(n),this._signalTaskEnd(),this.processSortAnimationToPosition(l,0,"ease-in",_,e,u,c,p,t)}.bind(this))}else this.processSortAnimationToPosition(l,0,"ease-in",_,e,u,c,p,t);this._signalTaskEnd()},M.prototype._handleSortEnd=function(e,t,i,s,n,o){var l;if(t.childNodes.length>1){if(l=this.m_rowHeader.firstChild,n)for(let e=0;e<n.length;e++){let i=n[e];t.insertBefore(i.element,t.childNodes[i.index])}this.m_utils.empty(l),l.appendChild(t),this.m_subtreeAttachedCallback(l)}if(i.childNodes.length>1){if(l=this.m_rowEndHeader.firstChild,o)for(let e=0;e<o.length;e++){let t=o[e];i.insertBefore(t.element,i.childNodes[t.index])}this.m_utils.empty(l),l.appendChild(i),this.m_subtreeAttachedCallback(l)}var r=this.m_databody.firstChild,a=this.m_rowHeader.firstChild,h=this.m_rowEndHeader.firstChild;if(s)for(let t=0;t<s.length;t++)e.appendChild(s[t]);this._emptyDatabody(r),this._populateDatabody(r,e),this._fireSortEvent(),this._restoreActive(),this.m_isSorting=!1,this._doDelayedSort(),this.m_animating=!1;for(let e=0;e<r.childNodes.length;e++)this.removeTransformMoveStyle(r.childNodes[e]);if(-1!==this.m_endRowHeader)for(let e=0;e<a.childNodes.length;e++)this.removeTransformMoveStyle(a.childNodes[e]);if(-1!==this.m_endRowEndHeader)for(let e=0;e<h.childNodes.length;e++)this.removeTransformMoveStyle(h.childNodes[e]);this._signalTaskEnd(),this._runModelEventQueue()},M.prototype.processSortAnimationToPosition=function(e,t,i,s,n,o,l,r,a){var h,d,c,m,u,_,p,g,f,C,y=this;this._signalTaskStart();var v=n.childNodes.length>1,E=a.childNodes.length>1,w=this.getResources().isRTLMode()?"right":"left",S=this._getViewportBottom(),H=this._getViewportLeft(),x=this._getViewportRight(),b={},R={},I=[];for(m=0;m<o.childNodes.length;m++)u=o.childNodes[m],h=this._getKey(u,"row"),C=(f=this.getElementDir(u,w))+this.getElementWidth(u),_=(d=this.getElementDir(u,"top"))+this.getElementHeight(u),this._isCellBoundaryInViewport(f,C,d,_)&&(b[h]?b[h].cell.push(u):(c=S,b[h]={cell:[u],oldTop:d,newTop:c}),c-d!=0&&(g=u));for(m=0;m<s.childNodes.length;m++)v&&(u=s.childNodes[m],h=this._getKey(u,"row"),_=(d=this.getElementDir(u,"top"))+this.getElementHeight(u),this._isCellBoundaryInViewport(H,x,d,_)&&(c=S,b[h]||(b[h]={oldTop:d,newTop:c}),b[h].rowHeader=u));for(m=0;m<r.childNodes.length;m++)v&&(u=r.childNodes[m],h=this._getKey(u,"row"),_=(d=this.getElementDir(u,"top"))+this.getElementHeight(u),this._isCellBoundaryInViewport(H,x,d,_)&&(c=S,b[h]||(b[h]={oldTop:d,newTop:c}),b[h].rowEndHeader=u));for(m=0;m<l.childNodes.length;m++)u=l.childNodes[m],h=this._getKey(u,"row"),c=this.getElementDir(u,"top"),b[h]?b[h].newTop=c:(d=S,p=c+this.getElementHeight(u),C=(f=this.getElementDir(u,w))+this.getElementWidth(u),this._isCellBoundaryInViewport(f,C,c,p)&&(this.changeStyleProperty(u,this.getCssSupport("transform"),"translate3d(0px,"+d+"px,0px)"),I.push(u),R[h]?R[h].cell.push(u):R[h]={cell:[u],oldTop:d,newTop:c,add:!0},c-d!=0&&(g=u)));for(let e=0;e<I.length;e++)o.appendChild(I[e]);var M=[];for(m=0;m<n.childNodes.length;m++)if(v){var A=n.childNodes[m];h=this._getKey(A,"row"),b[h]||(p=(c=this.getElementDir(A,"top"))+this.getElementHeight(A),d=S,this._isCellBoundaryInViewport(H,x,c,p)&&(this.changeStyleProperty(A,this.getCssSupport("transform"),"translate3d(0px,"+d+"px,0px)"),M.push({element:A,index:m}),R[h]||(R[h]={oldTop:d,newTop:c,add:!0}),R[h].rowHeader=A))}for(let e=0;e<M.length;e++)s.appendChild(M[e].element);var L=[];for(m=0;m<a.childNodes.length;m++)if(E){var D=a.childNodes[m];h=this._getKey(D,"row"),b[h]||(p=(c=this.getElementDir(D,"top"))+this.getElementHeight(D),d=S,this._isCellBoundaryInViewport(H,-1,c,p)&&(this.changeStyleProperty(D,this.getCssSupport("transform"),"translate3d(0px,"+d+"px,0px)"),L.push({element:D,index:m}),R[h].rowEndHeader=D,R[h]||(R[h]={oldTop:d,newTop:c,add:!0})))}for(let e=0;e<L.length;e++)r.appendChild(L[e].element);if(null!=g){var T=this._handleSortEnd.bind(this,l,n,a,I,M,L);y._onTransitionEnd(g,T,e),this.m_animating=!0,setTimeout(function(){var s,n,o,l,r=0,a=Object.keys(b);for(l=0;l<a.length;l++){if(h=a[l],o=b[a[l]],n=t+"ms",s=o.newTop-o.oldTop,o.cell)for(r=0;r<o.cell.length;r++)y.addTransformMoveStyle(o.cell[r],e/2+"ms",n,i,0,s,0);v&&o.rowHeader&&y.addTransformMoveStyle(o.rowHeader,e/2+"ms",n,i,0,s,0),E&&o.rowEndHeader&&y.addTransformMoveStyle(o.rowEndHeader,e/2+"ms",n,i,0,s,0)}for(a=Object.keys(R),l=0;l<a.length;l++){if(h=a[l],o=R[a[l]],n=t*r+"ms",s=0,o.cell)for(var d=0;d<o.cell.length;d++)y.addTransformMoveStyle(o.cell[d],e/2+"ms",n,i,0,s,0);v&&o.rowHeader&&y.addTransformMoveStyle(o.rowHeader,e/2+"ms",n,i,0,s,0),E&&o.rowEndHeader&&y.addTransformMoveStyle(o.rowEndHeader,e/2+"ms",n,i,0,s,0)}},0)}else this._handleSortEnd(l,n,a)},M.prototype._restoreActive=function(){if(null!=this.m_active){var e=this.m_active.axis,t=this.m_sortInfo.originalEvent;if("cell"===this.m_active.type){var i=this._getCellByKeys(this.m_active.keys);if(null!=i){var s=this.getCellIndexes(i);this._isSelectionEnabled()?this.selectAndFocus(s,t):this._setActiveByIndex(s,t)}else this._setActive(null,null,t,!0),this._isSelectionEnabled()&&this._clearSelection(t)}else if("row"===e||"rowEnd"===e){var n="row"===e?this.m_rowHeader:this.m_rowEndHeader,o="row"===e?this.getMappedStyle("rowheadercell"):this.getMappedStyle("rowendheadercell"),l=this._findHeaderByKey(this.m_active.key,n,o);if(null!=l){var r=l[this.getResources().getMappedAttribute("context")];this._setActive(l,{type:"header",axis:e,index:r.index,key:r.key,level:r.level},t)}else this._setActive(null,null,t)}}},M.prototype._getSortIcon=function(e){return e.lastChild.firstChild},M.prototype._getSortContainer=function(e){return e.lastChild},M.prototype._fireSortEvent=function(){var e={event:this.m_sortInfo.event,ui:{header:this.m_sortInfo.key,direction:this.m_sortInfo.direction}};this.fireEvent("sort",e)},M.prototype._fireSortRequestEvent=function(){let e=this.m_sortInfo.header[this.getResources().getMappedAttribute("context")],t=this.m_sortInfo.header[this.getResources().getMappedAttribute("metadata")],i=this.buildHeaderTemplateContext(e,t).item;var s={event:this.m_sortInfo.event,ui:{direction:this.m_sortInfo.direction,item:i,axis:this.m_sortInfo.axis}};this.fireEvent("sortRequest",s)},M.prototype._doDelayedSort=function(){null!=this.m_delayedSort?this._doHeaderSort(this.m_delayedSort.event,this.m_delayedSort.header,this.m_delayedSort.direction):this.fillViewport()},M.prototype._fireExpandRequestEvent=function(e){const t=this.findHeader(e.target),i=t[this.getResources().getMappedAttribute("context")],s=t[this.getResources().getMappedAttribute("metadata")],n={item:this.buildHeaderTemplateContext(i,s).item,axis:i.axis},o=this._getDisclosureIcon(t);this.m_utils.removeCSSClassName(o,this.getMappedStyle("collapsed")),this.m_utils.addCSSClassName(o,this.getMappedStyle("expanded")),this.fireEvent("expandRequest",n)},M.prototype._fireCollapseRequestEvent=function(e){const t=this.findHeader(e.target),i=t[this.getResources().getMappedAttribute("context")],s=t[this.getResources().getMappedAttribute("metadata")],n={item:this.buildHeaderTemplateContext(i,s).item,axis:i.axis},o=this._getDisclosureIcon(t);this.m_utils.removeCSSClassName(o,this.getMappedStyle("expanded")),this.m_utils.addCSSClassName(o,this.getMappedStyle("collapsed")),this.fireEvent("collapseRequest",n)},M.prototype._handleExpandCollapseRequest=function(e){this._isHeaderExpanded(e.target)?this._fireCollapseRequestEvent(e):this._isHeaderCollapsed(e.target)&&this._fireExpandRequestEvent(e)},M.prototype._isTargetExpandCollapseEnabled=function(e){return this._isHeaderCollapsed(e)||this._isHeaderExpanded(e)},M.prototype._isHeaderCollapsed=function(e){const t=this._getDisclosureIcon(e);return!!t&&this.m_utils.containsCSSClassName(t,this.getMappedStyle("collapsed"))},M.prototype._isHeaderExpanded=function(e){const t=this._getDisclosureIcon(e);return!!t&&this.m_utils.containsCSSClassName(t,this.getMappedStyle("expanded"))},M.prototype._buildDisclosureIcon=function(e){const t=document.createElement("div");t.classList.add(this.getMappedStyle("iconContainer")),t.classList.add(this.getMappedStyle("disclosureIcon"));const i=document.createElement("div");let s;return i.classList.add(this.getMappedStyle("icon")),i.classList.add(this.getMappedStyle("clickableicon")),"expanded"===e.metadata.expanded?(i.classList.add(this.getMappedStyle("expanded")),s=this.getResources().getTranslatedText("collapsedText")):"collapsed"===e.metadata.expanded&&(i.classList.add(this.getMappedStyle("collapsed")),s=this.getResources().getTranslatedText("expandedText")),t.setAttribute("title",s),t.appendChild(i),t.addEventListener("mouseover",this._handleExpandCollapseContainerMouseOver.bind(this)),t.addEventListener("mouseout",this._handleDisclosureMouseOut.bind(this)),t},M.prototype._handleExpandCollapseContainerMouseOver=function(e){const t=e.target,i=this.findHeader(t),s=this._getDisclosureIcon(i);this.m_utils.containsCSSClassName(e.currentTarget,this.getMappedStyle("disclosureIcon"))&&(this.m_utils.addCSSClassName(e.currentTarget,this.getMappedStyle("hover")),this.m_utils.addCSSClassName(s,this.getMappedStyle("hover")),this.m_utils.addCSSClassName(s,this.getMappedStyle("enabled")),this.m_utils.removeCSSClassName(s,this.getMappedStyle("disabled")))},M.prototype._buildSpacer=function(e){const t=document.createElement("span");return this._addDataGridSpacerClass(t),this._addIndentation(e,t),t},M.prototype._getTreeDepth=function(e){return e.metadata.treeDepth?e.metadata.treeDepth:null},M.prototype._addDataGridSpacerClass=function(e){this.m_utils.addCSSClassName(e,this.getMappedStyle("spacer"))},M.prototype._isLeaf=function(e){return!e.metadata.expanded||null===e.metadata.expanded},M.prototype._addIndentation=function(e,t){let i=this._getTreeDepth(e);null!==i&&this._appendSpacerClass(i,t,e)},M.prototype._appendSpacerClass=function(e,t,i){t.style.width=e*M.SPACER_DEFAULT_WIDTH+(this._isLeaf(i)?M.SPACER_DEFAULT_WIDTH:0)+"rem"},M.prototype._handleDisclosureMouseOut=function(e){const t=e.target,i=this.findHeader(t),s=this._getDisclosureIcon(i);this.m_utils.containsCSSClassName(e.currentTarget,this.getMappedStyle("disclosureIcon"))&&(this.m_utils.removeCSSClassName(e.currentTarget,this.getMappedStyle("hover")),this.m_utils.removeCSSClassName(s,this.getMappedStyle("hover")),this.m_utils.removeCSSClassName(s,this.getMappedStyle("enabled")))},M.prototype._isDisclosureIcon=function(e){return this.m_utils.containsCSSClassName(e,this.getMappedStyle("icon"))},M.prototype._getDisclosureIcon=function(e){return this.m_utils.containsCSSClassName(e,this.getMappedStyle("icon"))?e:e.getElementsByClassName(this.getMappedStyle("icon"))[0]},M.prototype._getDisclosureIconContainer=function(e){return e.firstChild};const A=function(e){this.datagridprovider=e,this.pendingHeaderCallback={},this._registerEventListeners(),this.totalRowCount=-1,this.totalColumnCount=-1,this.rowKeyMap=new T,this.columnKeyMap=new T,A.superclass.constructor.call(this)};function L(e,t,i){this.results=e,this.rowKeyMap=t,this.columnKeyMap=i,this.databodyResults=e.results.databody,this.rowStart=this.results.rowOffset,this.rowCount=this.results.rowCount,this.rowEnd=this.rowStart+this.rowCount-1,this.columnStart=this.results.columnOffset,this.columnCount=this.results.columnCount,this.columnEnd=this.columnStart+this.columnCount-1,this.lastItem=null}function D(e,t,i){this.results=e,this.axis=t,this.axisResults=e.results[this.axis+"Header"],this.axisLabels=e.results[this.axis+"HeaderLabel"],"row"===this.axis||"rowEnd"===this.axis?(this.start=this.results.rowOffset,this.count=this.results.rowCount):(this.start=this.results.columnOffset,this.count=this.results.columnCount),this.end=this.start+this.count-1,this.lastItem=null,this.keyMap=i,this.levelCount=null}function T(){this.keyMap=new Map,this.nextKey=0,this.set=(e,t,i,s)=>{const n=""+this.nextKey;null==s&&(s=1);for(let o=0;o<s;o++){let s=null==t?t:t+o,l=this.pairIndexLevel(e,s,i);this.keyMap.set(l,n)}return this.nextKey+=1,n},this.get=(e,t,i,s)=>{const n=this.pairIndexLevel(e,t,i);let o=this.keyMap.get(n);return null==o&&(o=this.set(e,t,i,s)),o},this.pairIndexLevel=(e,t,i)=>null==t||null!=i&&t===i-1?""+e:e+","+t,this.handleChange=(e,t)=>{let i=new Set;e.forEach(function(e){let t=e.offset,s=e.count;for(var n=0;n<s;n++)i.add(t+n)});let s=Array.from(i);s.sort(function(e,t){return e-t});let n=new Map;this.keyMap.forEach((e,i)=>{let o=i.split(","),l=parseInt(o[0],10),r=o[1];if(t&&s.some(e=>e===l))return;let a=0;if(l>=s[0]){let e=l;a=s.findIndex(i=>(!t&&e>=i&&(e+=1),i>e)),-1===a&&(a=s.length)}let h=t?l-a:l+a,d=this.pairIndexLevel(h,r);n.set(d,e)}),this.keyMap=n}}a.Object.createSubclass(A,a.DataGridDataSource,"DataGridProviderDataGridDataSource"),A.prototype.fetchHeaders=function(e,t,i){if(null!=t){var s=e.axis,n={headerRange:e,callbacks:t,callbackObjects:i};this.pendingHeaderCallback[s]=n}},A.prototype.fetchCells=function(e,t,i){let s,n,o,l;for(let t=0;t<e.length;t+=1){let i=e[t];"row"===i.axis?(s=i.start,n=i.count):"column"===i.axis&&(o=i.start,l=i.count)}let r,a=this.pendingHeaderCallback.row,h=this.pendingHeaderCallback.column;this.pendingHeaderCallback={},r=a&&h?["all"]:a?["databody","rowHeader","rowEndHeader","rowHeaderLabel","rowEndHeaderLabel"]:h?["databody","columnHeader","columnEndHeader","columnHeaderLabel","columnEndHeaderLabel"]:["databody"];let d={rowOffset:s,columnOffset:o,rowCount:n,columnCount:l,fetchRegions:new Set(r)},c=(s,n)=>{let o,l,r;null!=n?(s.results=Object.assign({},s.results,n.results),null!=n.next&&(o=n.next)):null!=s.next&&(o=s.next),this.totalRowCount=s.totalRowCount,this.totalColumnCount=s.totalColumnCount;let d=s.results;if(h&&(!o||null!=d.columnHeader&&null!=d.columnEndHeader&&null!=d.columnHeaderLabel&&null!=d.columnEndHeaderLabel)&&(l=h.callbacks,null!=l&&null!=l.success)){let e,t;r=h.callbackObjects,null!=d.columnHeader&&(e=new D(s,"column",this.columnKeyMap)),null!=d.columnEndHeader&&(t=new D(s,"columnEnd",this.columnKeyMap)),l.success.call(r.success,e,h.headerRange,t)}if(a&&(!o||null!=d.rowHeader&&null!=d.rowEndHeader&&null!=d.rowHeaderLabel&&null!=d.rowEndHeaderLabel)&&(l=a.callbacks,null!=l&&null!=l.success)){let e,t;r=a.callbackObjects,null!=d.rowHeader&&(e=new D(s,"row",this.rowKeyMap)),null!=d.rowEndHeader&&(t=new D(s,"rowEnd",this.rowKeyMap)),l.success.call(r.success,e,a.headerRange,t)}if(null!=t&&null!=t.success&&!o){let n=new L(s,this.rowKeyMap,this.columnKeyMap);t.success.call(i.success,n,e)}o&&o.then(c.bind(this,s))};this.datagridprovider.fetchByOffset(d).then(c)},A.prototype.getCapability=function(e){return"sort"===e?"full":"sort"===e||"move"===e?"none":null},A.prototype.getCount=function(e){return"row"===e?this.totalRowCount:"column"===e?this.totalColumnCount:-1},A.prototype.getCountPrecision=function(){return"exact"},A.prototype.indexes=function(){return{row:-1,column:-1}},A.prototype.keys=function(){return{row:null,column:null}},A.prototype.move=function(){},A.prototype.moveOK=function(){return"invalid"},A.prototype.sort=function(){},A.prototype._registerEventListeners=function(){this._addListener=this._handleDataGridProviderAddEvent.bind(this),this._removeListener=this._handleDataGridProviderRemoveEvent.bind(this),this._updateListener=this._handleDataGridProviderUpdateEvent.bind(this),this._refreshListener=this._handleDataGridProviderRefreshEvent.bind(this),this.datagridprovider.addEventListener("add",this._addListener),this.datagridprovider.addEventListener("remove",this._removeListener),this.datagridprovider.addEventListener("update",this._updateListener),this.datagridprovider.addEventListener("refresh",this._refreshListener)},A.prototype._handleDataGridProviderAddEvent=function(e){var t={source:this,operation:"insert",detail:e.detail};("row"===e.detail.axis?this.rowKeyMap:this.columnKeyMap).handleChange(e.detail.ranges,!1),this.handleEvent("change",t)},A.prototype._handleDataGridProviderRemoveEvent=function(e){var t={source:this,operation:"delete",detail:e.detail};("row"===e.detail.axis?this.rowKeyMap:this.columnKeyMap).handleChange(e.detail.ranges,!0),this.handleEvent("change",t)},A.prototype._handleDataGridProviderUpdateEvent=function(e){var t={source:this,operation:"update",detail:e.detail};this.handleEvent("change",t)},A.prototype._handleDataGridProviderRefreshEvent=function(){this.rowKeyMap=new T,this.columnKeyMap=new T;var e={source:this,operation:"refresh"};this.handleEvent("change",e)},L.prototype.getData=function(e){return this._findItemByIndex(e.row,e.column).data},L.prototype.getMetadata=function(e){let t=this._findItemByIndex(e.row,e.column);return{metadata:t.metadata,keys:{row:this.rowKeyMap.get(t.rowIndex),column:this.columnKeyMap.get(t.columnIndex)}}},L.prototype.getCount=function(e){if(null!=this.databodyResults){if("row"===e)return this.rowCount;if("column"===e)return this.columnCount}return 0},L.prototype.getExtent=function(e){let t=!1,i=!1,s=!1,n=!1,o=this._findItemByIndex(e.row,e.column),l=o.rowIndex,r=o.rowExtent,a=l+r-1,h=o.columnIndex,d=o.columnExtent,c=h+d-1;return l<this.rowStart&&(r-=this.rowStart-l,t=!0),a>this.rowEnd&&(r-=a-this.rowEnd,i=!0),h<this.columnStart&&(d-=this.columnStart-h,s=!0),c>this.columnEnd&&(d-=c-this.columnEnd,n=!0),{row:{extent:r,more:{before:t,after:i}},column:{extent:d,more:{before:s,after:n}}}},L.prototype._findItemByIndex=function(e,t){let i=i=>{let s=i.rowIndex,n=i.rowExtent,o=i.columnIndex,l=i.columnExtent;return e>=s&&e<s+n&&t>=o&&t<o+l};return null!=this.lastItem&&i(this.lastItem)||(this.lastItem=this.databodyResults.find(i)),this.lastItem},D.prototype.getData=function(e,t){return this._findItemByIndexLevel(e,t).data},D.prototype.getMetadata=function(e,t){let i=this._findItemByIndexLevel(e,t),s=i.metadata.sortDirection;return null!=s&&(s="unsorted"===i.metadata.sortDirection?null:s),{metadata:i.metadata,key:this.keyMap.get(i.index,i.level,this.getLevelCount(),i.depth),sortDirection:s}},D.prototype.getLevelCount=function(){if(null==this.levelCount){let e=0;null!=this.axisResults&&this.axisResults.forEach(t=>{let i=t.level+t.depth-1;i>e&&(e=i)}),this.levelCount=e+1}return this.levelCount},D.prototype.getExtent=function(e,t){let i=this._findItemByIndexLevel(e,t),s=i.extent,n=i.index,o=i.index+s-1,l=!1,r=!1;return n<this.start&&(s-=this.start-n,l=!0),o>this.end&&(s-=o-this.end,r=!0),{extent:s,more:{before:l,after:r}}},D.prototype.getLabel=function(e){return null!=this.axisLabels?this.axisLabels[e].data:null},D.prototype.getDepth=function(e,t){return this._findItemByIndexLevel(e,t).depth},D.prototype.getCount=function(){return null!=this.axisResults?this.count:0},D.prototype._findItemByIndexLevel=function(e,t){let i=i=>{let s=i.index,n=i.extent,o=i.level,l=i.depth;return e>=s&&e<s+n&&t>=o&&t<o+l};return null!=this.lastItem&&i(this.lastItem)||(this.lastItem=this.axisResults.find(i)),this.lastItem},a.__registerWidget("oj.ojDataGrid",g.oj.baseComponent,{widgetEventPrefix:"oj",options:{bandingInterval:{row:0,column:0},data:null,gridlines:{horizontal:"visible",vertical:"visible"},scrollToKey:"auto",scrollPosition:{x:0,y:0},selectionMode:{cell:"none",row:"none"},dnd:{reorder:{row:"disable"}},dataTransferOptions:{cut:"disable",copy:"disable",paste:"disable",fill:"disable"},scrollPolicy:"auto",scrollPolicyOptions:{maxRowCount:500,maxColumnCount:500},selection:[],currentCell:null,editMode:"none",header:{row:{className:null,label:{renderer:null,className:null,style:null},renderer:null,resizable:{width:"disable",height:"disable"},sortable:"auto",style:null},column:{className:null,label:{renderer:null,className:null,style:null},renderer:null,resizable:{width:"disable",height:"disable"},sortable:"auto",style:null},columnEnd:{className:null,label:{renderer:null,className:null,style:null},renderer:null,resizable:{width:"disable",height:"disable"},style:null},rowEnd:{className:null,label:{renderer:null,className:null,style:null},renderer:null,resizable:{width:"disable",height:"disable"},style:null}},cell:{className:null,renderer:null,style:null},resize:null,sort:null,sortRequest:null,collapseRequest:null,expandRequest:null,ready:null,scroll:null,beforeCurrentCell:null,beforeEdit:null,beforeEditEnd:null,cutRequest:null,copyRequest:null,pasteRequest:null,fillRequest:null},_ComponentCreate:function(){this._super(),this.root=this.element[0],this.rootId=this.root.getAttribute("id"),this.grid=new M(this.root),this.grid.setVisibility(M.VISIBILITY_STATE_RENDER),g(this.root).addClass("oj-datagrid oj-component"),g(this.root).attr(h._OJ_CONTAINER_ATTR,this.widgetName),c.disableDefaultBrowserStyling(this.root),this.redrawSet={data:"all",header:["className","renderer","style","template"]}},_AfterCreate:function(){var e=this;this._unregisterResizeListener(this.root),this._removeAllChildren(),this._super(),this.resources=new v(this._GetReadingDirection(),this._getTranslation.bind(e),{showIndicatorDelay:C.getCachedCSSVarValues(["--oj-private-core-global-loading-indicator-delay-duration"])[0]},this.widgetName),this._setDataSource(),this._setSelection(),null!=this.datasource&&(this.grid.SetDataSource(this.datasource),this._addContextMenu(),this._isCreate=!0,this.grid._addDataSourceEventListeners()),this._checkSelectionMode(this.options),this.grid.SetOptions(this.options,this._WrapCustomElementRenderer.bind(e)),this.grid.SetResources(this.resources),this.grid.SetCreateContextCallback(this._modifyContext.bind(e)),this.grid.SetFixContextCallback(this._FixRendererContext.bind(e)),this.grid.SetRemoveCallback(this._remove.bind(e)),this.grid.SetUniqueIdCallback(this._uniqueId.bind(e)),this.grid.SetCompareValuesCallback(this._compareValues.bind(e)),this.grid.SetNotReadyCallback(this._NotReady.bind(e)),this.grid.SetMakeReadyCallback(this._MakeReady.bind(e)),this.grid.SetOptionCallback(this.option.bind(e)),this.grid.SetSubtreeAttachedCallback(h.subtreeAttached),this.grid.SetContextCallback(d.getContext),this.grid.SetCustomElementCallback(this._IsCustomElement.bind(e)),this.grid.SetUpdateScrollPostionOnRefreshCallback(this._updateScrollPositionOnRefresh.bind(e)),this.grid.SetCustomElement(this._GetCustomElement()),this._focusable({applyHighlight:!0,setupHandlers:function(t,i){e.grid.SetFocusableCallback.call(e.grid,function(e){return t(g(e))},function(e){return i(g(e))})}}),this._registerEventListeners(),this._possiblyRenderOrRefresh()},_SetupResources:function(){this._super(),this.setupResources()},setupResources:function(){null!=this.datasource&&(this._isCreate||this.grid._addDataSourceEventListeners(),this.grid._addDomEventListeners(),this._registerResizeListener(this.root)),this._isCreate=!1},_ReleaseResources:function(){this._super(),this.releaseResources()},releaseResources:function(){this.grid._removeDataSourceEventListeners(),this.grid._removeDomEventListeners(),this._unregisterResizeListener(this.root)},_registerEventListeners:function(){var e=this;this.grid.addListener("resize",function(t){e._trigger("resize",t.event,t.ui)}),this.grid.addListener("select",function(t){e.option("selection",t.ui.selection,{_context:{originalEvent:t.event,internalSet:!0},changed:!0})}),this.grid.addListener("currentCell",function(t){e.option("currentCell",t.ui,{_context:{originalEvent:t.event,internalSet:!0},changed:!0})}),this.grid.addListener("beforeCurrentCell",function(t){return e._trigger("beforeCurrentCell",t.event,t.ui)}),this.grid.addListener("sort",function(t){var i=e._trigger2("sort",t.event,t.ui);e.grid.SetSortOriginalEvent(i.event)}),this.grid.addListener("sortRequest",function(t){return e._trigger("sortRequest",t.event,t.ui)}),this.grid.addListener("expandRequest",function(t){return e._trigger("expandRequest",t.event,t)}),this.grid.addListener("collapseRequest",function(t){return e._trigger("collapseRequest",t.event,t)}),this.grid.addListener("keydown",function(t){return e._trigger("keydown",t.event,t.ui)}),this.grid.addListener("ready",function(){e._trigger("ready",null,{})}),this.grid.addListener("scroll",function(t){e._trigger("scroll",t.event,t.ui)}),this.grid.addListener("beforeEdit",function(t){return e._trigger("beforeEdit",t.event,t.ui)}),this.grid.addListener("beforeEditEnd",function(t){return e._trigger("beforeEditEnd",t.event,t.ui)}),this.grid.addListener("cutRequest",function(t){return e._trigger("cutRequest",t.event,t.ui)}),this.grid.addListener("copyRequest",function(t){return e._trigger("copyRequest",t.event,t.ui)}),this.grid.addListener("pasteRequest",function(t){return e._trigger("pasteRequest",t.event,t.ui)}),this.grid.addListener("fillRequest",function(t){return e._trigger("fillRequest",t.event,t.ui)})},refresh:function(){this._super();let e=!this._IsCustomElement()||null!=this._defaultContextMenu;e?this._ReleaseResources():this.releaseResources(),this._removeAllChildren(),this._defaultContextMenu&&(this.options.contextMenu=null,this._defaultContextMenu=null),this._setDataSource(),null!=this.datasource&&(a.FlattenedTreeDataGridDataSource&&this.datasource instanceof a.FlattenedTreeDataGridDataSource&&(this.datasource.Destroy(),this.datasource.Init()),this.grid.SetDataSource(this.datasource),this._addContextMenu()),this.grid.SetOptions(this.options,this._WrapCustomElementRenderer.bind(this)),this.resources.setRTLMode(this._GetReadingDirection()),this.grid.SetResources(this.resources),e?this._SetupResources():this.setupResources(),this.grid.getVisibility()!==M.VISIBILITY_STATE_RENDER&&this.grid.setVisibility(M.VISIBILITY_STATE_REFRESH),this._possiblyRenderOrRefresh()},_updateScrollPositionOnRefresh:function(){var e,t=this.options.selection;if(null!=t&&0!==t.length){e={};var i=t[t.length-1];i&&(i.startKey?(e.rowKey=i.startKey.row,e.columnKey=i.startKey.column):i.startIndex&&(e.rowIndex=0,e.columnIndex=0))}else e={x:0,y:0};this.option("scrollPosition",e,{_context:{internalSet:!0},changed:!1})},_destroy:function(){g(this.root).removeAttr(h._OJ_CONTAINER_ATTR),null!=this.datasource&&this.datasource.Destroy&&this.datasource.Destroy(),this.grid.destroy(),this._unregisterResizeListener(this.root),g(this.root).empty(),this._MakeReady()},_setOptions:function(e,t){if(this.datasource){var i=this._handleOptionUpdate(e,t);this._super(e,t),"refresh"===i?this.refresh():"pass"===i&&this.grid.UpdateOptions(e,t)}else this._super(e,t),null!=e.data&&this.refresh()},_checkSelectionMode:function(e){var t=e.selectionMode;if(t&&t.row&&t.cell&&"none"!==t.row&&"none"!==t.cell)throw new Error("JET DataGrid does not support selectionMode on cell and row simultaneously.")},_NotifyShown:function(){this._super(),this._possiblyRenderOrRefresh()},_NotifyHidden:function(){this._super(),this.grid.getVisibility()===M.VISIBILITY_STATE_VISIBLE&&this.grid.setVisibility(M.VISIBILITY_STATE_HIDDEN)},_NotifyAttached:function(){this._super(),this._possiblyRenderOrRefresh()&&this.grid._initiateScrollOnAttached()},_NotifyDetached:function(){this._super(),this.grid.getVisibility()===M.VISIBILITY_STATE_VISIBLE&&this.grid.setVisibility(M.VISIBILITY_STATE_HIDDEN)},_handleOptionUpdate:function(e,t){for(var i="ignore",s=Object.keys(e),n=0;n<s.length;n++){switch(s[n]){case"bandingInterval":case"currentCell":case"editMode":case"gridlines":case"scrollPosition":case"selection":i="pass";break;case"beforeCurrentCell":case"beforeEdit":case"beforeEditEnd":case"cutRequest":case"copyRequest":case"pasteRequest":case"fillRequest":case"create":case"disabled":case"dnd":case"optionChange":case"ready":case"resize":case"rootAttributes":case"scroll":case"sort":break;case"selectionMode":this._checkSelectionMode(e),i="pass";break;case"cell":case"header":var o=t.subkey;if(null!=o){var l=o.split(".");if("resizable"===l[1]||"sortable"===l[1]){i="pass";break}}return"refresh";case"data":return this._updateScrollPositionOnRefresh(),"refresh";case"contextMenu":case"scrollPolicy":default:return"refresh"}}return i},_isResizeEnabled:function(e,t){return!(!this.options.header[e]||!this.options.header[e].resizable)&&"disable"!==this.options.header[e].resizable[t]},_isSortEnabled:function(e){return!!this.options.header[e]&&"disable"!==this.options.header[e].sortable},_removeAllChildren:function(){for(var e=this.root.children,t=e.length-1;t>=0;t--)"TEMPLATE"!==e[t].tagName&&"OJ-SURROGATE"!==e[t].tagName&&("OJ-MENU"!==e[t].tagName||"OJ-MENU"===e[t].tagName&&"contextMenu"!==e[t].slot)&&this.root.removeChild(e[t])},_GetDefaultContextMenu:function(){return this._defaultContextMenu},_addContextMenu:function(){var e=this,t=e._IsCustomElement(),i=this._GetContextMenu()?this._GetContextMenu():this._menuContainer;if(i){null==this._menuItemsSetByGrid&&(this._menuItemsSetByGrid=[]),this._menuContainer=i;var s=(i=g(i)).find("[data-oj-command]"),n=[];s.each(function(){var i=e._shouldUpdateListItem(this,t);if(i.shouldUpdate){var s=g(this).attr("data-oj-command").split("-");if(t){var o=e._getContextMenuText(s[s.length-1],t);i.itemToUpdate?(i.itemToUpdate.textContent=o,n.push(i.itemToUpdate)):(i.toFirstChild,this.textContent=o,n.push(this))}else{var l=g(e._buildContextMenuItem(s[s.length-1],t));g(this).replaceWith(l),n.push(l.children("a").get(0))}}}),this._menuItemsSetByGrid=n,i.data("oj-ojMenu")&&(t?i[0].refresh():i.ojMenu("refresh"))}else null!=this.datasource&&(i=this._createDefaultContextMenu())&&(this._defaultContextMenu=i[0]);i&&this._addMenuSelectListener(i)},_shouldUpdateListItem:function(e,t){var i,s=!1;if(t){if(null!=e.firstElementChild&&"opt"===e.firstElementChild.getAttribute("ojmenu")?(i=_.CustomElementUtils.getSlotMap(e.firstElementChild),s=!0):i=_.CustomElementUtils.getSlotMap(e),!i[""]||0===i[""].length)return{shouldUpdate:!0,toFirstChild:s};if(i[""]){var n=this._menuItemsSetByGrid.indexOf(e);if(-1!==n)return{shouldUpdate:!0,itemToUpdate:this._menuItemsSetByGrid[n]}}return{shouldUpdate:!1}}var o=g(e).children("a");return{shouldUpdate:0===o.length||-1!==this._menuItemsSetByGrid.indexOf(o.get(0))}},_addMenuSelectListener:function(e){var t=this._handleContextMenuSelect.bind(this);this._IsCustomElement()?e[0].addEventListener("ojAction",t):e.on("ojselect",t)},_createDefaultContextMenu:function(){let e,t,i,s,n,o,l=null,r=null,a=null;const h=this._IsCustomElement();o=h?this._createCustomElementContextMenu():this._createWidgetContextMenu(),(this._isResizeEnabled("column","height")||this._isResizeEnabled("row","height"))&&(l=this._buildContextMenuItem("resizeHeight",h)),(this._isResizeEnabled("column","width")||this._isResizeEnabled("row","width"))&&(r=this._buildContextMenuItem("resizeWidth",h)),(this._isResizeEnabled("column","width")||this._isResizeEnabled("column","height")||this._isResizeEnabled("row","width")||this._isResizeEnabled("row","height"))&&(a=this._buildContextMenuItem("resizeFitToContent",h));const d=this.datasource.getCapability("sort");if(this._isSortEnabled("column")&&("column"!==d&&"full"!==d||(e=this._buildContextMenuItem("sortCol",h))),this._isSortEnabled("row")&&("row"!==d&&"full"!==d||(t=this._buildContextMenuItem("sortRow",h))),"enable"===this.options.dnd.reorder.row)switch(this.datasource.getCapability("move")){case"none":break;default:h?(s=new DocumentFragment,s.appendChild(this._buildContextMenuOjOption("cut")),s.appendChild(this._buildContextMenuOjOption("paste")),s.appendChild(this._buildContextMenuDivider())):(s=new DocumentFragment,s.appendChild(this._buildContextMenuListItem("cut")),s.appendChild(this._buildContextMenuListItem("paste")))}let c=[];if(c=Object.keys(this.options.dataTransferOptions).filter(e=>"enable"===this.options.dataTransferOptions[e]),c.length){let e=this.options.dataTransferOptions;n=new DocumentFragment,h?("enable"===e.cut&&n.appendChild(this._buildContextMenuOjOption("cutCells")),"enable"===e.copy&&n.appendChild(this._buildContextMenuOjOption("copyCells")),"enable"===e.paste&&n.appendChild(this._buildContextMenuOjOption("pasteCells")),"enable"===e.fill&&n.appendChild(this._buildContextMenuOjOption("autoFill")),n.appendChild(this._buildContextMenuDivider())):("enable"===e.cut&&n.appendChild(this._buildContextMenuListItem("cutCells")),"enable"===e.copy&&n.appendChild(this._buildContextMenuListItem("copyCells")),"enable"===e.paste&&n.appendChild(this._buildContextMenuListItem("pasteCells")),"enable"===e.fill&&n.appendChild(this._buildContextMenuListItem("autoFill")))}return this._isMultipleSelection()&&m.isTouchSupported()&&(this._discontiguousSelection=!1,h?(i=document.createElement("oj-menu-select-many"),i.setAttribute("data-oj-binding-provider","none"),i.appendChild(this._buildContextMenuOjOption("discontiguousSelection"))):i=this._buildContextMenuListItem("discontiguousSelection")),l||r||a||e||t||s||i||n?(n&&o.appendChild(n),l&&o.appendChild(l),r&&o.appendChild(r),a&&o.appendChild(a),(e||t)&&((l||r||a)&&o.appendChild(this._buildContextMenuDivider()),e&&o.appendChild(e),t&&o.appendChild(t)),s&&((l||r||a||e||t)&&o.appendChild(this._buildContextMenuDivider()),o.appendChild(s)),i&&((l||r||a||e||t||s)&&o.appendChild(this._buildContextMenuDivider()),o.appendChild(i)),h||g(o).ojMenu(),this.option("contextMenu",o,{_context:{internalSet:!0}}),g(o)):null},_createCustomElementContextMenu:function(){const e=document.createElement("oj-menu");return e.setAttribute("data-oj-binding-provider","none"),e.setAttribute("id",this.rootId+"contextmenu"),e.style.display="none",this.root.appendChild(e),e},_createWidgetContextMenu:function(){const e=document.createElement("ul");return e.setAttribute("id",this.rootId+"contextmenu"),e.style.display="none",this.root.appendChild(e),e},_buildContextMenuItem:function(e,t){if(t){if("resize"===e){const e=new DocumentFragment;return e.appendChild(this._buildContextMenuOjOption("resizeRow")),e.appendChild(this._buildContextMenuOjOption("resizeColumn")),e}if("sortCol"===e){const e=new DocumentFragment;return e.appendChild(this._buildContextMenuOjOption("sortColAsc")),e.appendChild(this._buildContextMenuOjOption("sortColDsc")),e}if("sortRow"===e){const e=new DocumentFragment;return e.appendChild(this._buildContextMenuOjOption("sortRowAsc")),e.appendChild(this._buildContextMenuOjOption("sortRowDsc")),e}if(-1!==Object.keys(this.resources.commands).indexOf(e))return this._buildContextMenuOjOption(e)}else{if("resize"===e){const e=this._buildContextMenuListItem("resize"),t=document.createElement("ul");return t.appendChild(this._buildContextMenuListItem("resizeWidth")),t.appendChild(this._buildContextMenuListItem("resizeHeight")),e.appendChild(t),e}if("sortCol"===e){const e=this._buildContextMenuListItem("sortCol"),t=document.createElement("ul");return t.appendChild(this._buildContextMenuListItem("sortColAsc")),t.appendChild(this._buildContextMenuListItem("sortColDsc")),e.appendChild(t),e}if("sortRow"===e){const e=this._buildContextMenuListItem("sortRow"),t=document.createElement("ul");return t.appendChild(this._buildContextMenuListItem("sortRowAsc")),t.appendChild(this._buildContextMenuListItem("sortRowDsc")),e.appendChild(t),e}if(-1!==Object.keys(this.resources.commands).indexOf(e))return this._buildContextMenuListItem(e)}},_buildContextMenuOjOption:function(e){const t=document.createElement("oj-option");let i;if(t.setAttribute("data-oj-command",this._getMappedCommand(e)),-1!==["cutCells","copyCells","pasteCells"].indexOf(e)){i=document.createElement("span");let t=e.indexOf("Cells"),s=e.slice(0,t);i=document.createElement("span"),i.setAttribute("slot","startIcon"),i.setAttribute("class","oj-ux-ico-"+s)}return t.textContent=this._getContextMenuText(e),i&&t.appendChild(i),t},_buildContextMenuDivider:function(){const e=document.createElement("oj-option");return e.textContent="---",e},_buildContextMenuListItem:function(e){const t=document.createElement("li");return t.setAttribute("data-oj-command",this._getMappedCommand(e)),t.appendChild(this._buildContextMenuLabel(e)),t},_getContextMenuText:function(e){var t=this._IsCustomElement();t&&"discontiguousSelection"===e&&(e="SelectMultiple"),"resizeWidth"===e?e="resizeColumn":"resizeHeight"===e&&(e="resizeRow");let i="label"+e.charAt(0).toUpperCase()+e.slice(1);return t||"discontiguousSelection"!==e||(i="labelEnableNonContiguous"),this._getTranslation(i)},_buildContextMenuLabel:function(e){const t=this._getContextMenuText(e),i=document.createElement("a");return i.setAttribute("href","#"),i.textContent=t,i},_getDataGridContextMenu:function(){return this._GetContextMenu()||this._GetDefaultContextMenu()},_getTranslation:function(e,t){return this.getTranslatedString(e,t)},_handleResizeDialog:function(e){var t,i;this._IsCustomElement()?(t=document.getElementById(this.rootId+"inputNumber").value,i=document.getElementById(this.rootId+"modal").getAttribute("dimension"),document.getElementById(this.rootId+"modal").close()):(t=g("#"+this.rootId+"inputNumber").ojInputNumber("option","value"),g("#"+this.rootId+"modal").ojDialog("close")),this.grid.handleContextMenuReturn(this.contextMenuEvent,this._getMappedCommand(i),t),this.contextMenuEvent.target.focus()},_buildResizeDialog:function(e,t,i){var s,n,o,l,r,a,h,c,m,u=this._IsCustomElement(),_=this;if(u)if(s=document.getElementById(this.rootId+"inputNumber"),null===(o=document.getElementById(this.rootId+"modal"))||null===s){(o=document.createElement("oj-dialog")).id=this.rootId+"modal",o.setAttribute("data-oj-binding-provider","none"),o.setAttribute("initial-focus","firstFocusable"),o.className=this._getMappedStyle("resizeDialog"),(l=document.createElement("div")).setAttribute("slot","header"),(r=document.createElement("div")).setAttribute("slot","body"),(a=document.createElement("div")).setAttribute("slot","footer"),(m=document.createElement("h5")).textContent=e,l.appendChild(m),l.className=this._getMappedStyle("dialogTitle"),o.appendChild(l),o.appendChild(r),o.appendChild(a),(s=document.createElement("oj-input-number")).id=this.rootId+"inputNumber",s.setAttribute("label-edge","inside"),s.setAttribute("user-assistance-density","efficient"),"width"===i?(s.setAttribute("label-hint",this._getTranslation("columnWidth")),o.setAttribute("dimension","resizeWidth")):(s.setAttribute("label-hint",this._getTranslation("rowHeight")),o.setAttribute("dimension","resizeHeight")),o.setAttribute("title",e),(h=document.createElement("oj-button")).id=this.rootId+"modalcancel",h.style.margin="5px",(c=document.createElement("oj-button")).id=this.rootId+"modalsubmit",c.style.margin="5px",c.setAttribute("chroming","callToAction"),r.appendChild(s),a.appendChild(h),a.appendChild(c),this.root.appendChild(o),h.textContent=this._getTranslation("labelResizeDialogCancel"),c.textContent=this._getTranslation("labelResizeDialogApply"),n=function(){c.disabled=!1,s.value=0,o.close()},h.addEventListener("click",n),c.addEventListener("click",this._handleResizeDialog.bind(this)),s.setAttribute("max",2e3),s.setAttribute("min",20),s.setAttribute("step",1),s.setAttribute("value",t),s.setAttribute("display-options",'{"converterHint": "none", "validatorHint": "none"}'),s.addEventListener("validChanged",function(e){"valid"===e.detail.value?c.disabled=!1:c.disabled=!0});o.setAttribute("position",JSON.stringify({my:{horizontal:"center",vertical:"center"},at:{horizontal:"center",vertical:"center"},collision:"none"})),d.getContext(o).getBusyContext().whenReady().then(function(){o.open(_.root)})}else s.setAttribute("max",2e3),s.setAttribute("min",20),s.setAttribute("step",1),s.setAttribute("value",t),s.setAttribute("label-edge","inside"),s.setAttribute("user-assistance-density","efficient"),s.setAttribute("display-options",'{"converterHint": "none", "validatorHint": "none"}'),"width"===i?(s.setAttribute("label-hint",this._getTranslation("columnWidth")),o.setAttribute("dimension","resizeWidth")):(s.setAttribute("label-hint",this._getTranslation("rowHeight")),o.setAttribute("dimension","resizeHeight")),o.setAttribute("dialog-title",e),o.open(_.root);else o=g("#"+this.rootId+"modal"),s=g("#"+this.rootId+"inputNumber"),0===o.length||0===s.length?((o=document.createElement("div")).id=this.rootId+"modal",l=document.createElement("div"),r=document.createElement("div"),a=document.createElement("div"),l.className=this._getMappedStyle("dialogTitle"),o.appendChild(l),o.appendChild(r),o.appendChild(a),(m=document.createElement("h5")).textContent=e,l.appendChild(m),(s=document.createElement("input")).id=this.rootId+"inputNumber",s.setAttribute("label-edge","inside"),(h=document.createElement("oj-button")).id=this.rootId+"modalcancel",h.style.margin="5px",(c=document.createElement("oj-button")).id=this.rootId+"modalsubmit",c.style.margin="5px",r.appendChild(s),a.appendChild(h),a.appendChild(c),this.root.appendChild(o),g(h).ojButton({component:"ojButton",label:this._getTranslation("labelResizeDialogCancel")}),g(c).ojButton({component:"ojButton",label:this._getTranslation("labelResizeDialogApply")}),n=function(){g(c).ojButton({disabled:!1}),g(s).ojInputNumber({value:0}),g(o).ojDialog("close")},h.addEventListener("click",n),c.addEventListener("click",this._handleResizeDialog.bind(this)),g(s).ojInputNumber({component:"ojInputNumber",max:1e3,min:20,step:1,value:t}),"width"===i?(s.setAttribute("label-hint",this._getTranslation("columnWidth")),o.setAttribute("dialog-title","resizeWidth")):(s.setAttribute("label-hint",this._getTranslation("rowHeight")),o.setAttribute("dialog-title","resizeHeight")),g(s).on("change",function(){g(c).ojButton({disabled:!g(s).ojInputNumber("validate")})}),g(o).ojDialog({initialFocus:"firstFocusable",position:{my:"center center",at:"center center",collision:"none",of:g(this.root)}}),g(o).ojDialog("open")):(s.ojInputNumber("option","value",t),s.setAttribute("label-edge","inside"),o.find("."+this._getMappedStyle("dialogTitle"))[0].firstChild.textContent=e,o.ojDialog("open"))},_handleContextMenuSelect:function(e,t){var i;if(i=t?t.item:g(e.target),this.menuItemFunction=i.attr("data-oj-command"),this.menuItemFunction===this._getMappedCommand("sortColAsc")||this.menuItemFunction===this._getMappedCommand("sortColDsc")||this.menuItemFunction===this._getMappedCommand("sortRowAsc")||this.menuItemFunction===this._getMappedCommand("sortRowDsc")||this.menuItemFunction===this._getMappedCommand("cut")||this.menuItemFunction===this._getMappedCommand("paste")||this.menuItemFunction===this._getMappedCommand("cutCells")||this.menuItemFunction===this._getMappedCommand("pasteCells")||this.menuItemFunction===this._getMappedCommand("copyCells")||this.menuItemFunction===this._getMappedCommand("autoFill"))this.grid.handleContextMenuReturn(this.contextMenuEvent,this.menuItemFunction,null);else if(this.menuItemFunction===this._getMappedCommand("resizeWidth")||this.menuItemFunction===this._getMappedCommand("resizeHeight")){var s=g(this.contextMenuEvent.target).closest("."+this._getMappedStyle("cell"));if(0===s.length&&(s=g(this.contextMenuEvent.target).closest("."+this._getMappedStyle("headercell"))),0===s.length&&(s=g(this.contextMenuEvent.target).closest("."+this._getMappedStyle("endheadercell"))),0===s.length&&(s=g(this.contextMenuEvent.target).closest("."+this._getMappedStyle("headerlabel"))),s.length>0){var n=this.menuItemFunction===this._getMappedCommand("resizeWidth")?s.outerWidth():s.outerHeight(),o=this.menuItemFunction===this._getMappedCommand("resizeWidth")?"width":"height",l="width"===o?this._getTranslation("resizeColumnDialog"):this._getTranslation("resizeRowDialog");this._buildResizeDialog(l,n,o)}}else if(this.menuItemFunction===this._getMappedCommand("resizeFitToContent"))this.grid.handleContextMenuReturn(this.contextMenuEvent,this.menuItemFunction,null);else if(this.menuItemFunction===this._getMappedCommand("discontiguousSelection")){let e;this._discontiguousSelection=!this._discontiguousSelection,this.grid.handleContextMenuReturn(this.contextMenuEvent,this.menuItemFunction,this._discontiguousSelection);e=this._IsCustomElement()?"labelSelectMultiple":this._discontiguousSelection?"labelDisableNonContiguous":"labelEnableNonContiguous",i.children().first().text(this._getTranslation(e))}},_NotifyContextMenuGesture:function(e,t,i){this.grid.handleContextMenuGesture(t,i,this._contextMenuGestureCallback.bind(this))},_contextMenuGestureCallback:function(e,t,i){if(null!=e){this.contextMenuEvent=t.originalEvent;var s=e.launcher,n=e.capabilities;this._manageContextMenu(n);var o="keyboard"===i?{position:{of:s},launcher:g(s)}:{launcher:g(s)};this._OpenContextMenu(t,i,o)}},_addContextMenuCapability:function(e){var t=g(this._getDataGridContextMenu());this._IsCustomElement()?t.find("[data-oj-command="+e+"]").attr("disabled")||t.find("[data-oj-command="+e+"]").attr("disabled",!0):t.find("[data-oj-command="+e+"]").hasClass("oj-disabled")||t.find("[data-oj-command="+e+"]").addClass("oj-disabled")},_removeContextMenuCapability:function(e){g(this._getDataGridContextMenu()).find("[data-oj-command="+e+"]").removeClass("oj-disabled").attr("disabled",!1)},_manageContextMenu:function(e){for(var t=Object.keys(e),i=0;i<t.length;i++){var s=t[i],n=this.resources.getMappedCommand(s);"disable"===e[s]?this._addContextMenuCapability(n):this._removeContextMenuCapability(n)}},_findCellIndex:function(e){return e[this._getMappedAttribute("context")].indexes},_setDataSource:function(){null!=this.options.data?this.options.data.fetchByOffset&&!this.options.data.fetchFirst?this.datasource=new A(this.options.data):a.DataProviderFeatureChecker.isDataProvider(this.options.data)?(this.datasource=new E(this.options.data),"randomAccess"!==this.options.data.getCapability("fetchByOffset").implementation&&"scroll"===this.options.scrollPolicy&&(f.error("oj.DataProvider does not support fetchByOffset and scrollPolicy is set to scroll. scrollPolicy will fall back to auto."),this.options.scrollPolicy="auto")):this.datasource=this.options.data:this.datasource=null},_setSelection:function(){var e=this.options.selection;null!=e&&this.grid.SetSelection(e)},_modifyContext:function(e){e.component=h.__GetWidgetConstructor(this.element,"ojDataGrid")},_setAccessibleContext:function(e){this.grid.SetAccessibleContext(e)},_unregisterResizeListener:function(e){e&&this._resizeHandler&&(m.removeResizeListener(e,this._resizeHandler),this._resizeHandler=null)},_registerResizeListener:function(e){e&&(null==this._resizeHandler&&(this._resizeHandler=this._handleResize.bind(this)),m.addResizeListener(e,this._resizeHandler))},_handleResize:function(e,t){e>0&&t>0&&(this._possiblyRenderOrRefresh(),this.grid.HandleResize(e,t))},getNodeBySubId:function(e){var t;if(null==e)return this.element?this.element[0]:null;var i=e.subId;if("oj-datagrid-cell"===i){var s=e.rowIndex,n=e.columnIndex;t=g(this.grid._getCellByIndex({row:s,column:n}))}else if("oj-datagrid-sort-icon"===i||"oj-datagrid-sort-ascending"===i||"oj-datagrid-sort-default"===i||"oj-datagrid-sort-descending"===i||"oj-datagrid-header"===i){var o,l=e.axis,r=e.index,a=null==e.level?0:e.level;if("column"===l?o=this._getHeaderByIndex(r,a,g(document.getElementById(this.rootId+":columnHeader")),this.grid.getStartColumnHeader()):"row"===l?o=this._getHeaderByIndex(r,a,g(document.getElementById(this.rootId+":rowHeader")),this.grid.getStartRowHeader()):"columnEnd"===l?o=this._getHeaderByIndex(r,a,g(document.getElementById(this.rootId+":columnEndHeader")),this.grid.getStartColumnEndHeader()):"rowEnd"===l&&(o=this._getHeaderByIndex(r,a,g(document.getElementById(this.rootId+":rowEndHeader")),this.grid.getStartRowEndHeader())),null==o)return null;if("oj-datagrid-sort-icon"===i)return o.children("."+this._getMappedStyle("sortIcon")).children().get(0);t="oj-datagrid-sort-ascending"===i?o.find("."+this._getMappedStyle("sortascending")):"oj-datagrid-sort-default"===i?o.find("."+this._getMappedStyle("sortdefault")):"oj-datagrid-sort-descending"===i?o.find("."+this._getMappedStyle("sortdescending")):o}else"oj-datagrid-header-label"===i&&(t=g(this.grid._getLabel(e.axis,e.level)));return null!=t&&t.length>0?t[0]:null},getSubIdByNode:function(e){var t,i=g(e).closest("."+this._getMappedStyle("cell"));if(i.length>0){var s=this._findCellIndex(i[0]);return{subId:"oj-datagrid-cell",rowIndex:s.row,columnIndex:s.column}}var n=g(e).closest("."+this._getMappedStyle("headercell"));if(0===n.length&&(n=g(e).closest("."+this._getMappedStyle("endheadercell"))),n.length>0)return t=n[0][this._getMappedAttribute("context")],{subId:g(e).hasClass(this._getMappedStyle("sortascending"))?"oj-datagrid-sort-ascending":g(e).hasClass(this._getMappedStyle("sortdefault"))?"oj-datagrid-sort-default":g(e).hasClass(this._getMappedStyle("sortdescending"))?"oj-datagrid-sort-descending":"oj-datagrid-header",axis:t.axis,index:this._getHeaderIndex(n),level:t.level};var o=g(e).closest("."+this._getMappedStyle("headerlabel"));return o.length>0?{subId:"oj-datagrid-header-label",axis:(t=o[0][this._getMappedAttribute("context")]).axis,level:t.level}:null},getContextByNode:function(e){var t,i,s=g(e).closest("."+this._getMappedStyle("cell"));if(s.length>0)return t=s[0][this._getMappedAttribute("context")],(i=a.CollectionUtils.copyInto({},t,void 0,!0)).subId="oj-datagrid-cell",i;var n=g(e).closest("."+this._getMappedStyle("headercell"));if(0===n.length&&(n=g(e).closest("."+this._getMappedStyle("endheadercell"))),n.length>0)return t=n[0][this._getMappedAttribute("context")],(i=a.CollectionUtils.copyInto({},t,void 0,!0)).subId="oj-datagrid-header",i.index=this._getHeaderIndex(n),i;var o=g(e).closest("."+this._getMappedStyle("headerlabel"));return o.length>0?(t=o[0][this._getMappedAttribute("context")],(i=a.CollectionUtils.copyInto({},t,void 0,!0)).subId="oj-datagrid-header-label",i):null},_getMappedStyle:function(e){return this.resources.getMappedStyle(e)},_getMappedAttribute:function(e){return this.resources.getMappedAttribute(e)},_getMappedCommand:function(e){return this.resources.getMappedCommand(e)},_isDataGridSizingAvailable:function(){return null!=this.root.offsetParent},_possiblyRenderOrRefresh:function(){var e=this.grid.getVisibility(),t=!1;return this._isDataGridSizingAvailable()?(e===M.VISIBILITY_STATE_RENDER?(this.grid.render(this.root),t=!0):e===M.VISIBILITY_STATE_REFRESH&&(this.grid.refresh(this.root),t=!0),this.grid.setVisibility(M.VISIBILITY_STATE_VISIBLE)):e===M.VISIBILITY_STATE_VISIBLE&&this.grid.setVisibility(M.VISIBILITY_STATE_HIDDEN),t},_getHeaderByIndex:function(e,t,i,s){if(t<0)return null;var n=i.children().first().children().last();if(n.hasClass(this._getMappedStyle("headercell")))return i.children().first().children("."+this._getMappedStyle("headercell")).eq(e-s);if(n.hasClass(this._getMappedStyle("endheadercell")))return i.children().first().children("."+this._getMappedStyle("endheadercell")).eq(e-s);var o=this._getGroupingContainer(e,t,0,i.children().first().children());if(null==o)return null;if(t<=parseInt(o.attr(this._getMappedAttribute("level")),10)+parseInt(o.children().eq(0).attr(this._getMappedAttribute("depth")),10)-1)return o.children().eq(0);var l=e-(s=parseInt(o.attr(this._getMappedAttribute("start")),10))+1;return o.children().eq(l)},_getGroupingContainer:function(e,t,i,s){if(null==s.eq(1)||s.eq(1).hasClass(this._getMappedStyle("headercell"))||s.eq(1).hasClass(this._getMappedStyle("endheadercell")))return t===i?s.eq(0).parent():null;var n,o=s.parent().parent();for(n=o.hasClass(this._getMappedStyle("header"))||o.hasClass(this._getMappedStyle("endheader"))?0:1;n<s.length;n++){var l=parseInt(s.eq(n).attr(this._getMappedAttribute("start")),10),r=parseInt(s.eq(n).attr(this._getMappedAttribute("extent")),10),a=parseInt(s.eq(n).children().eq(0).attr(this._getMappedAttribute("depth")),10);if(e>=l&&e<l+r)return t<i+a?s.eq(n):this._getGroupingContainer(e,t,i+a,s.eq(n).children())}return null},_getHeaderIndex:function(e){var t;if(e.parent().hasClass(this._getMappedStyle("groupingcontainer"))){if(t=parseInt(e.parent().attr(this._getMappedAttribute("start")),10),e.get(0)===e.parent().children(":first").get(0))return t;t-=1}else t=e.hasClass(this._getMappedStyle("rowheadercell"))?this.grid.getStartRowHeader():e.hasClass(this._getMappedStyle("colheadercell"))?this.grid.getStartColumnHeader():e.hasClass(this._getMappedStyle("colendheadercell"))?this.grid.getStartColumnEndHeader():this.grid.getStartRowEndHeader();return t+=e.index()},_isMultipleSelection:function(){return null!=this.options.selectionMode&&("multiple"===this.options.selectionMode.row||"multiple"===this.options.selectionMode.cell)},_remove:function(e){g(e).remove()},_uniqueId:function(e,t){t?g(e).removeUniqueId():g(e).uniqueId()},_compareValues:function(e,t){return a.Object.compareValues(e,t)},scrollTo:function(e){this.grid.scroll(e)},whenReady:function(){if(this._ready)return Promise.resolve(!0);if(!this._readyPromise){var e=this;this._readyPromise=new Promise(function(t){e._readyPromiseResolve=t})}return this._readyPromise},_NotReady:function(){if(this._ready=!1,!this._readyResolveFunc){var e=d.getContext(this.element[0]).getBusyContext(),t={description:"The component identified by '"+this.element.attr("id")+"' is being loaded."};this._readyResolveFunc=e.addBusyState(t)}},_MakeReady:function(){this._readyPromiseResolve&&(this._readyPromiseResolve(!0),this._readyPromiseResolve=null),this._ready=!0,this._readyPromise=null,this._readyResolveFunc&&(this._readyResolveFunc(),this._readyResolveFunc=null)},_CompareOptionValues:function(e,t,i){switch(e){case"currentCell":case"selection":return a.Object.compareValues(t,i);default:return this._super(e,t,i)}}}),M.prototype.unhighlightFloodFillRange=function(e){null==e&&(e=this.GetFloodFillRange()[0]),null!=e&&this._applyBorderClassesAroundRange(this.getElementsInRange(e),e,!1,"Floodfill")},M.prototype.highlightFloodFillRange=function(e){this._applyBorderClassesAroundRange(this.getElementsInRange(e),e,!0,"Floodfill")},M.prototype.handleDatabodyFloodFillDrag=function(e){var t=e.target,i=this.findCell(t);if(null!=i){var s=this.getCellIndexes(i);this.extendFloodFillSelection(s,e)}},M.prototype.GetFloodFillRange=function(){return null==this.m_floodFillRange&&(this.m_floodFillRange=[]),this.m_floodFillRange},M.prototype.extendFloodFillSelection=function(e,t){if("header"===this.m_active.type)return;var i;if(null==(i={row:this.m_active.indexes.row,column:this.m_active.indexes.column}))return;let s,n=!1;s||(s=this.m_selection);let o,l=s[0].startIndex,r=s[0].endIndex;e.row>=l.row&&e.row<=r.row&&(n=!0,e.column>r.column?o="right":e.column<l.column&&(o="left"),e.row=r.row);let a=!1;e.column>=l.column&&e.column<=r.column&&(a=!0,e.row>r.row?o="bottom":e.row<l.row&&(o="top"));let h=l.row===r.row,d=l.column===r.column;if(h&&e.row===l.row&&a||d&&e.column===l.column&&n)return this.unhighlightFloodFillRange(),void(this.m_floodFillRange=[]);if((!n&&!a||e.column<=r.column&&!n)&&(e.column=r.column),n||a||(e.row>r.row?o="bottom":e.row<l.row&&(o="top")),o){let s=l,n=e;this._createRangeWithKeys(s,n,this._extendFloodFillSelectionCallback.bind(this,t,i,o))}else this.unhighlightFloodFillRange()},M.prototype._extendFloodFillSelectionCallback=function(e,t,i,s){let n=s;"top"===i?n.endIndex.row-=1:"bottom"===i?n.startIndex.row=this.m_selectionRange[0].endIndex.row+1:"left"===i?n.endIndex.column-=1:n.startIndex.column=this.m_selectionRange[0].endIndex.column+1;let o=[];this.unhighlightFloodFillRange(),o.push(n),this.m_floodFillRange=o,this.m_floodFillDirection="flood",this.highlightFloodFillRange(n)},M.prototype._addFloodfillAffordance=function(e){if(null==this.m_bottomFloodFillIconContainer){var t=e.target,i=this.findCell(t);if(i||(i=this.findHeader(t)),!i)return;this.m_bottomFloodFillIconContainer=document.createElement("div"),this.m_bottomFloodFillIconContainer.className=this.getMappedStyle("toucharea");var s=document.createElement("div");s.className=this.getMappedStyle("floodfillaffordance"),s.setAttribute("role","button"),this.m_bottomFloodFillIconContainer.appendChild(s),this.m_databody.firstChild.appendChild(this.m_bottomFloodFillIconContainer),this.m_floodFillAffordanceHeight=this.m_bottomFloodFillIconContainer.firstElementChild.offsetHeight,this.m_floodFillAffordanceWidth=this.m_bottomFloodFillIconContainer.firstElementChild.offsetWidth,this.m_options.isFloodFillEnabled()&&(this.m_bottomFloodFillIconContainer.addEventListener("mouseover",this.handleFloodFillAffordanceMouseOver.bind(this)),this.m_bottomFloodFillIconContainer.addEventListener("mousedown",this.handleFloodFillAffordanceMouseDown.bind(this)),this.m_bottomFloodFillIconContainer.addEventListener("mouseup",this.handleFloodFillAffordanceMouseUp.bind(this)),this.m_bottomFloodFillIconContainer.addEventListener("mouseleave",this.handleFloodFillAffordanceMouseLeave.bind(this)))}},M.prototype.handleFloodFillAffordanceMouseOver=function(e){0===e.buttons&&(this.m_databody.style.cursor="crosshair",this.m_cursor="crosshair")},M.prototype.handleFloodFillAffordanceMouseDown=function(){this.m_databodyDragState=!0,this.m_floodFillDragState=!0,this.m_selectionRange=null,this.m_floodFillRange=null,this.m_databody.style.cursor="crosshair",this.m_cursor="crosshair"},M.prototype.handleFloodFillAffordanceMouseUp=function(){this.m_databodyDragState=!1,this.m_floodFillDragState=!1,this.m_databody.style.cursor="default",this.m_cursor="default",this.m_selectionRange=null,this.m_floodFillRange=null},M.prototype.handleFloodFillAffordanceMouseLeave=function(e){0===e.buttons&&(this.m_databodyDragState=!1,this.m_floodFillDragState=!1,this.m_databody.style.cursor="default",this.m_cursor="default")},M.prototype._removeFloodFillAffordance=function(){this._isDatabodyCellActive()&&this.m_bottomFloodFillIconContainer&&this.m_bottomFloodFillIconContainer.parentNode&&(this.m_databody.style.cursor="default",this.m_cursor="default",this.m_bottomFloodFillIconContainer.parentNode.removeChild(this.m_bottomFloodFillIconContainer))},M.prototype._moveFloodFillAffordance=function(){var e=this.getResources().isRTLMode()?"right":"left",t=this.GetSelection();if(t.length>0){var i=this._getTouchSelectionAffordanceSize();if(null!=this.m_bottomFloodFillIconContainer){var s=this._getCellByIndex(t[t.length-1].endIndex);s?(this.setElementDir(this.m_bottomFloodFillIconContainer,this.getElementDir(s,"top")+this.getElementHeight(s)-i+this.m_floodFillAffordanceHeight+1,"top"),this.setElementDir(this.m_bottomFloodFillIconContainer,this.getElementDir(s,e)+this.getElementWidth(s)-(i-this.m_floodFillAffordanceWidth)+1,e),this.m_databody.firstChild.appendChild(this.m_bottomFloodFillIconContainer)):this._removeFloodFillAffordance()}}}});
8
+ define(["touchr","ojs/ojdatasource-common","ojs/ojdatacollection-utils","ojs/ojinputnumber","ojs/ojmenu","ojs/ojmenuselectmany","ojs/ojdialog","ojs/ojbutton","ojs/ojcore-base","ojs/ojcomponentcore","ojs/ojcontext","ojs/ojdatacollection-common","ojs/ojdomutils","ojs/ojconfig","ojs/ojcustomelement-utils","ojs/ojkeyboardfocus-utils","jquery","ojs/ojlogger","ojs/ojthemeutils"],function(e,t,i,s,n,o,l,r,a,h,d,c,m,u,_,p,g,f,C){"use strict";var y;a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a,d=d&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d,g=g&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g,(y={properties:{bandingInterval:{type:"object",properties:{column:{type:"number",value:0},row:{type:"number",value:0}}},cell:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},currentCell:{type:"object",writeback:!0},data:{type:"DataGridProvider",extension:{webelement:{exceptionStatus:[{type:"unsupported",since:"13.0.0",description:"Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead."}]}}},dataTransferOptions:{type:"object",properties:{copy:{type:"string",enumValues:["disable","enable"],value:"disable"},cut:{type:"string",enumValues:["disable","enable"],value:"disable"},fill:{type:"string",enumValues:["disable","enable"],value:"disable"},paste:{type:"string",enumValues:["disable","enable"],value:"disable"}}},dnd:{type:"object",properties:{reorder:{type:"object",properties:{row:{type:"string",enumValues:["disable","enable"],value:"disable"}}}}},editMode:{type:"string",writeback:!0,enumValues:["cellEdit","cellNavigation","none"],value:"none"},gridlines:{type:"object",properties:{horizontal:{type:"string",enumValues:["hidden","visible"],value:"visible"},vertical:{type:"string",enumValues:["hidden","visible"],value:"visible"}}},header:{type:"object",properties:{column:{type:"object",properties:{className:{type:"function|string"},label:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},renderer:{type:"function"},resizable:{type:"object",properties:{height:{type:"string",enumValues:["disable","enable"],value:"disable"},width:{type:"string|function",enumValues:["disable","enable"],value:"disable"}}},sortable:{type:"function|string",enumValues:["auto","disable","enable"],value:"auto"},style:{type:"function|string"}}},columnEnd:{type:"object",properties:{className:{type:"function|string"},label:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},renderer:{type:"function"},resizable:{type:"object",properties:{height:{type:"string",enumValues:["disable","enable"],value:"disable"},width:{type:"string|function",enumValues:["disable","enable"],value:"disable"}}},style:{type:"function|string"}}},row:{type:"object",properties:{className:{type:"function|string"},label:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},renderer:{type:"function"},resizable:{type:"object",properties:{height:{type:"string|function",enumValues:["disable","enable"],value:"disable"},width:{type:"string",enumValues:["disable","enable"],value:"disable"}}},sortable:{type:"function|string",enumValues:["auto","disable","enable"],value:"auto"},style:{type:"function|string"}}},rowEnd:{type:"object",properties:{className:{type:"function|string"},label:{type:"object",properties:{className:{type:"function|string"},renderer:{type:"function"},style:{type:"function|string"}}},renderer:{type:"function"},resizable:{type:"object",properties:{height:{type:"string|function",enumValues:["disable","enable"],value:"disable"},width:{type:"string",enumValues:["disable","enable"],value:"disable"}}},style:{type:"function|string"}}}}},scrollPolicy:{type:"string",enumValues:["auto","loadMoreOnScroll","scroll"],value:"auto"},scrollPolicyOptions:{type:"object",properties:{maxColumnCount:{type:"number",value:500},maxRowCount:{type:"number",value:500}}},scrollPosition:{type:"object",writeback:!0,value:{x:0,y:0},properties:{columnIndex:{type:"number"},columnKey:{type:"any"},offsetX:{type:"number"},offsetY:{type:"number"},rowIndex:{type:"number"},rowKey:{type:"any"},x:{type:"number"},y:{type:"number"}}},scrollToKey:{type:"string",enumValues:["always","auto","capability","never"],value:"auto"},selection:{type:"Array<Object>",writeback:!0,value:[]},selectionMode:{type:"object",properties:{cell:{type:"string",enumValues:["multiple","none","single"],value:"none"},row:{type:"string",enumValues:["multiple","none","single"],value:"none"}}},translations:{type:"object",value:{},properties:{accessibleActionableMode:{type:"string"},accessibleCollapsed:{type:"string"},accessibleColumnContext:{type:"string"},accessibleColumnEndHeaderContext:{type:"string"},accessibleColumnEndHeaderLabelContext:{type:"string"},accessibleColumnHeaderContext:{type:"string"},accessibleColumnHeaderLabelContext:{type:"string"},accessibleColumnSelected:{type:"string"},accessibleColumnSpanContext:{type:"string"},accessibleContainsControls:{type:"string"},accessibleExpanded:{type:"string"},accessibleFirstColumn:{type:"string"},accessibleFirstRow:{type:"string"},accessibleLastColumn:{type:"string"},accessibleLastRow:{type:"string"},accessibleLevelContext:{type:"string"},accessibleMultiCellSelected:{type:"string"},accessibleNavigationMode:{type:"string"},accessibleRangeSelectModeOff:{type:"string"},accessibleRangeSelectModeOn:{type:"string"},accessibleRowCollapsed:{type:"string"},accessibleRowContext:{type:"string"},accessibleRowEndHeaderContext:{type:"string"},accessibleRowEndHeaderLabelContext:{type:"string"},accessibleRowExpanded:{type:"string"},accessibleRowHeaderContext:{type:"string"},accessibleRowHeaderLabelContext:{type:"string"},accessibleRowSelected:{type:"string"},accessibleRowSpanContext:{type:"string"},accessibleSelectionAffordanceBottom:{type:"string"},accessibleSelectionAffordanceTop:{type:"string"},accessibleSortAscending:{type:"string"},accessibleSortDescending:{type:"string"},accessibleSortable:{type:"string"},accessibleStateSelected:{type:"string"},accessibleSummaryEstimate:{type:"string"},accessibleSummaryExact:{type:"string"},accessibleSummaryExpanded:{type:"string"},collapsedText:{type:"string"},columnWidth:{type:"string"},expandedText:{type:"string"},labelCopyCells:{type:"string"},labelCut:{type:"string"},labelCutCells:{type:"string"},labelDisableNonContiguous:{type:"string"},labelEnableNonContiguous:{type:"string"},labelFillCells:{type:"string"},labelPaste:{type:"string"},labelPasteCells:{type:"string"},labelResize:{type:"string"},labelResizeColumn:{type:"string"},labelResizeDialogApply:{type:"string"},labelResizeDialogCancel:{type:"string"},labelResizeDialogSubmit:{type:"string"},labelResizeFitToContent:{type:"string"},labelResizeHeight:{type:"string"},labelResizeRow:{type:"string"},labelResizeWidth:{type:"string"},labelSelectMultiple:{type:"string"},labelSortAsc:{type:"string"},labelSortCol:{type:"string"},labelSortColAsc:{type:"string"},labelSortColDsc:{type:"string"},labelSortDsc:{type:"string"},labelSortRow:{type:"string"},labelSortRowAsc:{type:"string"},labelSortRowDsc:{type:"string"},msgFetchingData:{type:"string"},msgNoData:{type:"string"},resizeColumnDialog:{type:"string"},resizeRowDialog:{type:"string"},rowHeight:{type:"string"},tooltipRequired:{type:"string"}}}},methods:{getContextByNode:{},getProperty:{},refresh:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojBeforeCurrentCell:{},ojBeforeEdit:{},ojBeforeEditEnd:{},ojCollapseRequest:{},ojCopyRequest:{},ojCutRequest:{},ojExpandRequest:{},ojFillRequest:{},ojPasteRequest:{},ojResize:{},ojScroll:{},ojSort:{},ojSortRequest:{}},extension:{}}).extension._WIDGET_NAME="ojDataGrid",a.CustomElementBridge.register("oj-data-grid",{metadata:y});const v=function(e,t,i,s){this.rtlMode=e,this.translationFunction=t,this.defaultOptions=i,this.widgetName=s,this.styles={},this.styles.datagrid="oj-datagrid",this.styles.cell="oj-datagrid-cell",this.styles.banded="oj-datagrid-banded",this.styles.row="oj-datagrid-row",this.styles.databody="oj-datagrid-databody",this.styles.topcorner="oj-datagrid-top-corner",this.styles.bottomcorner="oj-datagrid-bottom-corner",this.styles.rowheaderspacer="oj-datagrid-row-header-spacer",this.styles.colheaderspacer="oj-datagrid-column-header-spacer",this.styles.status="oj-datagrid-status",this.styles.loadingicon="oj-icon oj-datagrid-loading-icon",this.styles.emptytext="oj-datagrid-empty-text",this.styles.header="oj-datagrid-header",this.styles.endheader="oj-datagrid-end-header",this.styles.groupingcontainer="oj-datagrid-header-grouping",this.styles.headercell="oj-datagrid-header-cell",this.styles.rowheader="oj-datagrid-row-header",this.styles.colheader="oj-datagrid-column-header",this.styles.colheadercell="oj-datagrid-column-header-cell",this.styles.rowheadercell="oj-datagrid-row-header-cell",this.styles.endheadercell="oj-datagrid-end-header-cell",this.styles.rowendheader="oj-datagrid-row-end-header",this.styles.colendheader="oj-datagrid-column-end-header",this.styles.colendheadercell="oj-datagrid-column-end-header-cell",this.styles.rowendheadercell="oj-datagrid-row-end-header-cell",this.styles.headerlabel="oj-datagrid-header-label",this.styles.rowheaderlabel="oj-datagrid-row-header-label",this.styles.columnheaderlabel="oj-datagrid-column-header-label",this.styles.rowendheaderlabel="oj-datagrid-row-end-header-label",this.styles.columnendheaderlabel="oj-datagrid-column-end-header-label",this.styles["scroller-mobile"]="oj-datagrid-scroller-touch",this.styles.scroller="oj-datagrid-scroller",this.styles.scrollers="oj-datagrid-scrollers",this.styles.scrollbarForce="oj-scrollbar-force",this.styles.focus="oj-focus",this.styles.hover="oj-hover",this.styles.active="oj-active",this.styles.selected="oj-selected",this.styles.topSelected="oj-datagrid-selected-top",this.styles.bottomSelected="oj-datagrid-selected-bottom",this.styles.startSelected="oj-datagrid-selected-start",this.styles.endSelected="oj-datagrid-selected-end",this.styles.topEdit="oj-datagrid-cell-edit-top",this.styles.bottomEdit="oj-datagrid-cell-edit-bottom",this.styles.startEdit="oj-datagrid-cell-edit-start",this.styles.endEdit="oj-datagrid-cell-edit-end",this.styles.topFloodfill="oj-datagrid-floodfill-top",this.styles.bottomFloodfill="oj-datagrid-floodfill-bottom",this.styles.startFloodfill="oj-datagrid-floodfill-start",this.styles.endFloodfill="oj-datagrid-floodfill-end",this.styles.topResized="oj-datagrid-resized-top",this.styles.bottomResized="oj-datagrid-resized-bottom",this.styles.endResized="oj-datagrid-resized-end",this.styles.startResized="oj-datagrid-resized-start",this.styles.disabled="oj-disabled",this.styles.enabled="oj-enabled",this.styles.default="oj-default",this.styles.sortIcon="oj-datagrid-sort-icon",this.styles.sortascending="oj-datagrid-sort-ascending-icon",this.styles.sortdescending="oj-datagrid-sort-descending-icon",this.styles.sortdefault="oj-datagrid-sort-default-icon",this.styles.icon="oj-component-icon",this.styles.clickableicon="oj-clickable-icon-nocontext",this.styles.info="oj-helper-hidden-accessible",this.styles.rowexpander="oj-rowexpander",this.styles.cut="oj-datagrid-cut",this.styles.selectaffordance="oj-datagrid-touch-selection-affordance",this.styles.selectaffordancetopcornerbounded="oj-datagrid-touch-selection-affordance-top-corner-bounded",this.styles.selectaffordancebottomcornerbounded="oj-datagrid-touch-selection-affordance-bottom-corner-bounded",this.styles.selectaffordancetoprow="oj-datagrid-touch-selection-affordance-top-row",this.styles.selectaffordancebottomrow="oj-datagrid-touch-selection-affordance-bottom-row",this.styles.selectaffordancetopcolumn="oj-datagrid-touch-selection-affordance-top-column",this.styles.selectaffordancebottomcolumn="oj-datagrid-touch-selection-affordance-bottom-column",this.styles.floodfillaffordance="oj-datagrid-floodfill-affordance",this.styles.toucharea="oj-datagrid-touch-area",this.styles.readOnly="oj-read-only",this.styles.editable="oj-datagrid-editable",this.styles.cellEdit="oj-datagrid-cell-edit",this.styles.draggable="oj-draggable",this.styles.drag="oj-drag",this.styles.drop="oj-drop",this.styles.activedrop="oj-active-drop",this.styles.validdrop="oj-valid-drop",this.styles.invaliddrop="oj-invalid-drop",this.styles.formcontrol="oj-form-control-inherit",this.styles.borderHorizontalNone="oj-datagrid-border-horizontal-none",this.styles.borderVerticalNone="oj-datagrid-border-vertical-none",this.styles.borderHorizontalSmall="oj-datagrid-small-content-border-horizontal",this.styles.borderVerticalSmall="oj-datagrid-small-content-border-vertical",this.styles.offsetOutline="oj-datagrid-focus-offset",this.styles.depth="oj-datagrid-depth-",this.styles.popupHeader="oj-datagrid-popup-header",this.styles.popupContent="oj-datagrid-popup-content",this.styles.popupFooter="oj-datagrid-popup-footer",this.styles.dialogTitle="oj-dialog-title",this.styles.resizeDialog="oj-datagrid-resize-dialog",this.styles.headerAllSelected="oj-selected",this.styles.headerPartialSelected="oj-partial-selected",this.styles.disclosureContainer="oj-datagrid-disclosure-icon-container",this.styles.disclosureIcon="oj-datagrid-disclosure-icon",this.styles.expanded="oj-datagrid-expanded-icon",this.styles.collapsed="oj-datagrid-collapsed-icon",this.styles.spacer="oj-datagrid-tree-spacer",this.styles.hierarchicalTree="oj-datagrid-hierarchical-tree",this.styles.hierarchicalGroup="oj-datagrid-hierarchical-group",this.styles.iconContainer="oj-datagrid-icon-container",this.styles.requiredIcon="oj-datagrid-required-icon",this.commands={},this.commands.sortCol="oj-datagrid-sortCol",this.commands.sortColAsc="oj-datagrid-sortColAsc",this.commands.sortColDsc="oj-datagrid-sortColDsc",this.commands.sortRow="oj-datagrid-sortRow",this.commands.sortRowAsc="oj-datagrid-sortRowAsc",this.commands.sortRowDsc="oj-datagrid-sortRowDsc",this.commands.resize="oj-datagrid-resize",this.commands.resizeWidth="oj-datagrid-resizeWidth",this.commands.resizeHeight="oj-datagrid-resizeHeight",this.commands.resizeFitToContent="oj-datagrid-resizeFitToContent",this.commands.cut="oj-datagrid-cut",this.commands.paste="oj-datagrid-paste",this.commands.cutCells="oj-datagrid-cutCells",this.commands.copyCells="oj-datagrid-copyCells",this.commands.pasteCells="oj-datagrid-pasteCells",this.commands.autoFill="oj-datagrid-fillCells",this.commands.discontiguousSelection="oj-datagrid-discontiguousSelection",this.attributes={},this.attributes.busyContext=d._OJ_CONTEXT_ATTRIBUTE,this.attributes.context="data-oj-cellContext",this.attributes.resizable="data-oj-resizable",this.attributes.sortable="data-oj-sortable",this.attributes.sortDir="data-oj-sortdir",this.attributes.expander="data-oj-expander",this.attributes.expanderIndex="data-oj-expander-index",this.attributes.container=h._OJ_CONTAINER_ATTR,this.attributes.extent="data-oj-extent",this.attributes.start="data-oj-start",this.attributes.depth="data-oj-depth",this.attributes.level="data-oj-level",this.attributes.metadata="data-oj-metaData"};a._registerLegacyNamespaceProp("DataGridResources",v),v.prototype.setRTLMode=function(e){this.rtlMode=e},v.prototype.isRTLMode=function(){return"rtl"===this.rtlMode},v.prototype.getTranslatedText=function(e,t){return this.translationFunction(e,t)},v.prototype.getDefaultOption=function(e){return this.defaultOptions[e]},v.prototype.getMappedStyle=function(e){return null!=e?this.styles[e]:null},v.prototype.getMappedCommand=function(e){return null!=e?this.commands[e]:null},v.prototype.getMappedAttribute=function(e){return null!=e?this.attributes[e]:null};const E=function(e){this.dataprovider=e,this.pendingHeaderCallback={},e.options&&e.options.implicitSort&&(this.currentSortCriteria=e.options.implicitSort),this.sortUpdated=!1;var t=this.dataprovider.getCapability("fetchByOffset");this.fetchByOffset=null!=t&&"randomAccess"===t.implementation,this._registerEventListeners(),E.superclass.constructor.call(this)};function w(e,t,i,s){this.indexes=e,this.data=i,this.metadata=t,this.columns=s}function S(e,t,i){this.response=e,this.results=e.results,this.cellRanges=t,this.columns=i,this._setBounds(e,t,i)}function H(e,t,i,s){this.start=e,this.end=t,this.headers=i,this.sortCriteria=s}a.Object.createSubclass(E,a.DataGridDataSource,"DataProviderDataGridDataSource"),E.prototype._registerEventListeners=function(){this._mutationListener=this._handlDataProviderMutationEvent.bind(this),this._refreshListener=this._handlDataProviderRefreshEvent.bind(this),this.dataprovider.addEventListener("mutate",this._mutationListener),this.dataprovider.addEventListener("refresh",this._refreshListener)},E.prototype._handlDataProviderMutationEvent=function(e){var t,i=e.detail.add;if(null!=i){var s={indexes:[],keys:[]},n=[],o=[],l=[];for(t=0;t<i.data.length;t++)s.source=this,s.operation="insert",s.keys.push({row:i.metadata[t].key,column:null}),s.indexes.push({row:i.indexes[t],column:-1}),l.push(i.indexes[t]),n.push(i.data[t]),o.push(i.metadata[t]),t!==i.data.length-1&&i.indexes[t+1]===i.indexes[t]+1||(s.result=new w(l,o,n,this.columns),this.handleEvent("change",s),(s={}).indexes=[],s.keys=[],n=[],o=[],l=[])}var r=e.detail.remove;if(null!=r){var a={source:this,operation:"delete",keys:[],indexes:[]};for(t=0;t<r.data.length;t++)a.keys.push({row:r.metadata[t].key,column:null}),a.indexes.push({row:r.indexes[t],column:-1});this.handleEvent("change",a)}var h=e.detail.update;if(null!=h)for(t=0;t<h.data.length;t++){var d={source:this,operation:"update",keys:{row:h.metadata[t].key,column:null},indexes:{row:h.indexes[t],column:-1}};d.result=new w([h.indexes[t]],[h.metadata[t]],[h.data[t]],this.columns),this.handleEvent("change",d)}},w.prototype.getData=function(e){var t=this,i={};return Object.defineProperty(i,"data",{enumerable:!0,get:function(){return t.data[e.row-t.getStart("row")][t.columns[e.column]]},set:function(i){t.data[e.row-t.getStart("row")][t.columns[e.column]]=i}}),i},w.prototype.getMetadata=function(e){var t=this.metadata[e.row-this.getStart("row")];return t.keys={row:t.key,column:this.columns[e.column]},t},w.prototype.getStart=function(e){return"row"===e?this.indexes[0]:0},w.prototype.getCount=function(e){return"row"===e?this.data.length:"column"===e?this.columns.length:0},w.prototype.getExtent=function(){return{row:{extent:1,more:{before:!1,after:!1}},column:{extent:1,more:{before:!1,after:!1}}}},E.prototype._handlDataProviderRefreshEvent=function(){this._asyncIterator=null,this.handleEvent("change",{operation:"refresh"})},E.prototype.fetchHeaders=function(e,t,i){if(null!=t){var s=e.axis,n={headerRange:e,callbacks:t,callbackObjects:i};this.pendingHeaderCallback[s]=n}},E.prototype._processPendingHeaderCallbacks=function(e){var t=this.pendingHeaderCallback[e];if(null!=t){var i=t.headerRange,s=t.callbacks,n=t.callbackObjects;this._handleHeaderFetchSuccess(i,s,n),this.pendingHeaderCallback[e]=null}},E.prototype._handleHeaderFetchSuccess=function(e,t,i){var s,n=e.axis,o=e.start,l=e.count;"column"===n&&null!=this.columns?s=new H(o,Math.min(this.columns.length,o+l),this.columns,this.currentSortCriteria):s=null;null!=t&&t.success&&t.success.call(i.success,s,e,null)},S.prototype._setBounds=function(e,t,i){for(var s=0;s<t.length;s+=1){var n=t[s];"row"===n.axis?(this.rowStart=e.fetchParameters.offset?e.fetchParameters.offset:n.start,this.rowEnd=this.rowStart+e.results.length-1):"column"===n.axis&&(this.colStart=n.start,this.colEnd=Math.min(this.colStart+n.count-1,this.colStart+i.length-1))}},S.prototype.getData=function(e){var t=this,i={};return Object.defineProperty(i,"data",{enumerable:!0,get:function(){return t.results[e.row-t.rowStart].data[t.columns[e.column]]},set:function(i){t.results[e.row-t.rowStart].data[t.columns[e.column]]=i}}),i},S.prototype.getMetadata=function(e){var t=this.results[e.row-this.rowStart].metadata;return t.keys={row:this.results[e.row-this.rowStart].metadata.key,column:this.columns[e.column]},t},S.prototype.getCount=function(e){return"row"===e?this.rowEnd-this.rowStart+1:"column"===e?this.colEnd-this.colStart+1:0},S.prototype.getExtent=function(){return{row:{extent:1,more:{before:!1,after:!1}},column:{extent:1,more:{before:!1,after:!1}}}},E.prototype.setUpColumns=function(e){if(null==this.columns||0===this.columns.length){var t=[];if(e.results.length)for(var i=Object.keys(e.results[0].data),s=0;s<i.length;s++)t.push(i[s]);this.columns=t}},E.prototype.getRangeInfo=function(e){for(var t={},i=0;i<e.length;i+=1){var s=e[i];"row"===s.axis?(t.rowStart=s.start,t.rowEnd=t.rowStart+s.count-1):"column"===s.axis&&(t.colStart=s.start,t.colEnd=t.colStart+s.count-1)}return t},E.prototype._createResults=function(e){e.results=[];for(var t=0;t<e.value.data.length;t++){var i={data:e.value.data[t],metadata:e.value.metadata[t]};e.results.push(i)}},E.prototype.handleFetchResult=function(e,t,i,s){var n=s[0];n.results||(this._createResults(n),n.fetchParameters=n.value.fetchParameters),this.setUpColumns(n),this._processPendingHeaderCallbacks("column"),this._processPendingHeaderCallbacks("row");var o=new S(n,e,this.columns);if(null!=t&&null!=t.success){var l=i?i.success:null;t.success.call(l,o,e)}},E.prototype.fetchCells=function(e,t,i){this.getCount("row");var s=this.getRangeInfo(e),n=s.rowEnd-s.rowStart+1;if(this.fetchByOffset){var o=s.rowStart;this._fetchPromise=this.dataprovider.fetchByOffset({size:n,offset:o,sortCriteria:this.currentSortCriteria})}else(null==this._asyncIterator||this.sortUpdated)&&(this._clientId=this._clientId||Symbol(),this._asyncIterator=this.dataprovider.fetchFirst({clientId:this._clientId,size:n,sortCriteria:this.currentSortCriteria})[Symbol.asyncIterator]()),this._fetchPromise=this._asyncIterator.next();this.sortUpdated=!1,Promise.all([this._fetchPromise,this._getCountPromise]).then(this.handleFetchResult.bind(this,e,t,i))},E.prototype.getCapability=function(e){if("sort"===e){var t=this.dataprovider.getCapability(e).attributes;return"multiple"===t||"single"===t?"column":t}return"none"},E.prototype.getCount=function(e){var t=this;if("row"===e){if(void 0!==t.totalRowCount)return t.totalRowCount;t._getCountPromise=this.dataprovider.getTotalSize(),t._getCountPromise.then(function(e){t.totalRowCount=e})}else if("column"===e&&null!=this.columns)return this.columns.length;return-1},E.prototype.getCountPrecision=function(){return"estimate"},E.prototype.indexes=function(){return{row:-1,column:-1}},E.prototype.keys=function(){return{row:null,column:null}},E.prototype.move=function(){return!1},E.prototype.moveOK=function(){return"invalid"},E.prototype.sort=function(e,t,i){this.sortUpdated=!0,this.currentSortCriteria=[{attribute:e.key,direction:e.direction}],null==i&&(i={}),null!=t&&null!=t.success&&t.success.call(i.success)},H.prototype.getData=function(e){return this.headers[e]},H.prototype.getMetadata=function(e){var t=this.getData(e),i={key:t};if(null!=this.sortCriteria)for(var s=0;s<this.sortCriteria.length;s++)this.sortCriteria[s].attribute===t&&(i.sortDirection=this.sortCriteria[s].direction);return i},H.prototype.getLevelCount=function(){return 1},H.prototype.getExtent=function(){return{extent:1,more:{before:!1,after:!1}}},H.prototype.getLabel=function(){return null},H.prototype.getDepth=function(){return 1},H.prototype.getCount=function(){return Math.max(0,this.end-this.start)};const x=function(e){this.grid=e};x.prototype.getAction=function(e,t){var i=e.keyCode,s=this.grid.m_utils.ctrlEquivalent(e),n=e.shiftKey,o=e.altKey,l=this.grid.keyCodes,r=t.cellOrHeader,a=t.readOnly,h=t.currentMode,d=t.activeMove,c=t.rowMove,m=t.columnSort;let u=t.rowSort;var _=t.selection,p=t.selectionMode,g=t.multipleSelection,f=t.expandCollapse,C=t.copyCells,y=t.cutCells,v=t.pasteCells,E=t.fill;switch(i){case l.TAB_KEY:if("actionable"===h)return n?"TAB_PREV_IN_CELL":"TAB_NEXT_IN_CELL";if(!a)return n?"FOCUS_LEFT":"FOCUS_RIGHT";break;case l.ENTER_KEY:if("column"===r&&m||"row"===r&&u)return"SORT";if(!o&&a&&"navigation"===h||"cell"!==r)return"ACTIONABLE";if(!a&&!o)return n?"FOCUS_UP":"FOCUS_DOWN";if(o&&a&&"navigation"===h)return"EDITABLE";if(!a&&("navigation"===h||"edit"===h))return"EDIT";break;case l.ESC_KEY:if("actionable"===h)return"EXIT_ACTIONABLE";if(d)return"CANCEL_REORDER";if(a){if(this.grid.m_discontiguousSelection)return"SELECT_DISCONTIGUOUS"}else{if("navigation"===h)return"EXIT_EDITABLE";if("edit"===h)return"CANCEL_EDIT"}break;case l.SPACE_KEY:if(-1!==r.indexOf("row")&&_&&("cell"===p&&g||"row"===p))return"SELECT_ROW";if(-1!==r.indexOf("column")&&_&&"cell"===p&&g)return"SELECT_COLUMN";if("cell"===r)if(a&&"navigation"===h){if(s&&_&&"cell"===p&&g)return"SELECT_COLUMN";if(n&&_&&("cell"===p&&g||"row"===p))return"SELECT_ROW"}else if("navigation"===h)return"DATA_ENTRY";break;case l.PAGEUP_KEY:if("edit"!==h)return"FOCUS_ROW_FIRST";break;case l.PAGEDOWN_KEY:if("edit"!==h)return"FOCUS_ROW_LAST";break;case l.END_KEY:if(s&&"cell"===r)return"FOCUS_LAST_CELL_IN_GRID";if("edit"!==h)return"FOCUS_COLUMN_LAST";break;case l.HOME_KEY:if(s&&"cell"===r)return"FOCUS_FIRST_CELL_IN_GRID";if("edit"!==h)return"FOCUS_COLUMN_FIRST";break;case l.LEFT_KEY:if(s&&f&&this.grid._isHeaderExpanded(e.target))return"COLLAPSE";if("actionable"===h)return"NO_OP";if("edit"!==h)return n&&_&&"cell"===p&&g?"SELECT_EXTEND_LEFT":s?"FOCUS_LEFT_NON_EMPTY_CELL":"FOCUS_LEFT";break;case l.UP_KEY:if("actionable"===h)return"NO_OP";if("edit"!==h)return n&&_&&g?"SELECT_EXTEND_UP":s?"FOCUS_UP_NON_EMPTY_CELL":"FOCUS_UP";break;case l.RIGHT_KEY:if(s&&f&&this.grid._isHeaderCollapsed(e.target))return"EXPAND";if("actionable"===h)return"NO_OP";if("edit"!==h)return n&&_&&"cell"===p&&g?"SELECT_EXTEND_RIGHT":s?"FOCUS_RIGHT_NON_EMPTY_CELL":"FOCUS_RIGHT";break;case l.DOWN_KEY:if("actionable"===h)return"NO_OP";if("edit"!==h)return n&&_&&g?"SELECT_EXTEND_DOWN":s?"FOCUS_DOWN_NON_EMPTY_CELL":"FOCUS_DOWN";break;case l.F2_KEY:if("cell"!==r)return"ACTIONABLE";if(a&&"navigation"===h)return"EDITABLE";if(!a&&"navigation"===h)return"EDIT";if(!a&&"edit"===h)return"CANCEL_EDIT";if("actionable"===h)return"EXIT_ACTIONABLE";break;case l.F8_KEY:if(n&&_&&g)return"SELECT_DISCONTIGUOUS";break;case l.F10_KEY:if(n)return"NO_OP";break;case l.V_KEY:if("navigation"===h&&s){if(c)return"PASTE";if(v)return"PASTE_CELLS"}if(!a&&"navigation"===h&&"cell"===r)return"DATA_ENTRY";break;case l.X_KEY:if("navigation"===h&&s){if(c)return"CUT";if(y)return"CUT_CELLS"}if(!a&&"navigation"===h&&"cell"===r)return"DATA_ENTRY";break;case l.C_KEY:if("navigation"===h&&s&&C)return"COPY_CELLS";if(!a&&"navigation"===h&&"cell"===r)return"DATA_ENTRY";break;case l.D_KEY:case l.R_KEY:if("navigation"===h&&s&&E)return"FILL";break;case l.SHIFT_KEY:case l.CTRL_KEY:case l.ALT_KEY:break;case l.A_KEY:if(s&&_&&g)return"SELECT_ALL";case l.NUM5_KEY:if(s&&o)return"READ_CELL";default:if((i<l.F1_KEY||i>l.F15_KEY)&&!a&&"navigation"===h&&"cell"===r&&!s)return"DATA_ENTRY"}return"NO_OP"};const b=function(e,t){this.options=e,this.rendererWrapperFunction=t};b.prototype.extract=function(e,t,i,s){if(null!=e){var n=this.options[e];if(null!=t&&null!=n){var o=n[t];if(null!=i&&null!=o){var l=o[i];return null!=s&&null!=l?l[s]:l}return o}return n}return null},b.prototype.evaluate=function(e,t){return"function"==typeof e?e.call(this,t):e},b.prototype.getRawProperty=function(e,t,i){var s,n,o,l;return"row"===t||"column"===t||"rowEnd"===t||"columnEnd"===t?(s="header",n=t,i?(o="label",l=e):o=e):"cell"===t&&(s="cell",n=e),this.extract(s,n,o,l)},b.prototype.getProperty=function(e,t,i,s){return void 0===i?this.extract(e,t,s):this.evaluate(this.getRawProperty(e,t,s),i)},b.prototype.getRowBandingInterval=function(){var e=this.getProperty("bandingInterval","row");return null!=e?e:0},b.prototype.getColumnBandingInterval=function(){var e=this.getProperty("bandingInterval","column");return null!=e?e:0},b.prototype.getEmptyText=function(){return this.getProperty("emptyText")},b.prototype.getHorizontalGridlines=function(){var e=this.extract("gridlines","horizontal");return null!=e?e:"visible"},b.prototype.getVerticalGridlines=function(){var e=this.extract("gridlines","vertical");return null!=e?e:"visible"},b.prototype.getScrollToKey=function(){var e=this.getProperty("scrollToKey");return null!=e?e:"auto"},b.prototype.getScrollPosition=function(){var e=this.getProperty("scrollPosition");return null!=e?e:null},b.prototype.getSelectionCardinality=function(){var e=this.getProperty("selectionMode");if(null==e)return"none";var t=e[this.getSelectionMode()];return null!=t?t:"none"},b.prototype.getSelectionMode=function(){var e=this.getProperty("selectionMode");if(null==e)return"cell";var t=e.row;return null!=t&&"none"!==t?"row":"cell"},b.prototype.getSelection=function(){return this.getProperty("selection")},b.prototype.getCurrentCell=function(){return this.getProperty("currentCell")},b.prototype.getEditMode=function(){return this.getProperty("editMode")},b.prototype.isSortable=function(e,t){return this.getProperty("sortable",e,t)},b.prototype.isResizable=function(e,t,i){var s=this.extract("header",e,"resizable",t);return null!=i?this.evaluate(s,i):s},b.prototype.isMoveable=function(e){return this.extract("dnd","reorder",e)},b.prototype.isFloodFillEnabled=function(){let e=!1;return"enable"===this.extract("dataTransferOptions","fill")&&(e=!0),e},b.prototype.isCopyEnabled=function(){let e=!1;return"enable"===this.extract("dataTransferOptions","copy")&&(e=!0),e},b.prototype.isCutEnabled=function(){let e=!1;return"enable"===this.extract("dataTransferOptions","cut")&&(e=!0),e},b.prototype.isPasteEnabled=function(){let e=!1;return"enable"===this.extract("dataTransferOptions","paste")&&(e=!0),e},b.prototype.getInlineStyle=function(e,t,i){return this.getProperty("style",e,t,i)},b.prototype.getStyleClass=function(e,t,i){return this.getProperty("className",e,t,i)},b.prototype.getRenderer=function(e,t){return this.rendererWrapperFunction?this.rendererWrapperFunction(this.getRawProperty("renderer",e,t)):this.getRawProperty("renderer",e,t)},b.prototype.getScrollPolicy=function(){var e=this.getProperty("scrollPolicy");return null==e&&(e="auto"),e},b.prototype.getScrollPolicyOptions=function(){return this.getProperty("scrollPolicyOptions")};const R=function(){this.sizes={column:new Map,row:new Map}};R.prototype.setSize=function(e,t,i){this.sizes[e].set(t,i)},R.prototype.getSize=function(e,t){var i=this.sizes[e].get(t);return null!=i||this.sizes[e].forEach(function(e,s){null==i&&a.Object.compareValues(s,t)&&(i=e)}),i},R.prototype.clear=function(){this.sizes.column.clear(),this.sizes.row.clear()};const I=function(e){this.scrollbarSize=-1,this.dataGrid=e;let t=oj.AgentUtils.getAgentInfo();this.os=t.os,this.browser=t.browser,this.engine=t.engine};I.prototype._getMaxDivHeightForScrolling=function(){return null==this.m_maxDivHeightForScrolling&&this._setMaxValuesForScrolling(),this.m_maxDivHeightForScrolling},I.prototype._getMaxDivWidthForScrolling=function(){return null==this.m_maxDivWidthForScrolling&&this._setMaxValuesForScrolling(),this.m_maxDivWidthForScrolling},I.prototype._setMaxValuesForScrolling=function(){this._calculateBrowserDefinedValues()},I.prototype._calculateBrowserDefinedValues=function(){var e=document.createElement("div");e.style.width="1000000000px",e.style.height="1000000000px",e.style.display="none";var t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);let i=!1;this.browser===oj.AgentUtils.BROWSER.IE||this.browser===oj.AgentUtils.BROWSER.EDGE?(this.m_maxDivHeightForScrolling=1e6,this.m_maxDivWidthForScrolling=1e6):(i=!0,document.body.appendChild(e),this.m_maxDivHeightForScrolling=parseInt(parseFloat(window.getComputedStyle(e).height)/2,10),this.m_maxDivWidthForScrolling=parseInt(parseFloat(window.getComputedStyle(e).width)/2,10)),this.scrollbarSize=t.offsetWidth-t.clientWidth,i&&document.body.removeChild(e),document.body.removeChild(t)},I.prototype.getScrollbarSize=function(){return-1===this.scrollbarSize&&this._calculateBrowserDefinedValues(),this.scrollbarSize},I.prototype.getScrollbarSize=function(){return-1===this.scrollbarSize&&this.calculateScrollbarSize(),this.scrollbarSize},I.prototype.isTouchDevice=function(){return null==this.isTouch&&(this.isTouch=c.isMobileTouchDevice()),this.isTouch},I.prototype.isTouchDeviceNotIOS=function(){if(null==this.isTouchNotIOS){let e=this.isTouchDevice();this.isTouchNotIOS=!!e&&this.os!==oj.AgentUtils.OS.IOS}return this.isTouchNotIOS},I.prototype.addCSSClassName=function(e,t){null!=t&&""!==t&&null!=e&&null!=e.classList&&e.classList.add(t)},I.prototype.removeCSSClassName=function(e,t){null!=t&&""!==t&&null!=e&&null!=e.classList&&e.classList.remove(t)},I.prototype.containsCSSClassName=function(e,t){var i=!1;return null!=t&&null!=e&&null!=e.classList&&(i=e.classList.contains(t)),i},I._getCSSClassNameIndex=function(e,t){if(!e||!e.indexOf)return-1;if(t===e)return 0;var i=t.length,s=e.length,n=e.indexOf(t);if(n>=0){var o=0===n||" "===e.charAt(n-1),l=n+i,r=l===s||" "===e.charAt(l);if(o&&r)return n;var a=e.lastIndexOf(t);if(a!==n)return o=e.charAt(a-1),r=(l=a+i)===s||" "===e.charAt(l),o&&r?a:e.indexOf(" "+t+" ")}return-1},I.prototype.ctrlEquivalent=function(e){return this.os===oj.AgentUtils.OS.MAC?e.metaKey:e.ctrlKey},I.prototype.getElementScrollLeft=function(e){return Math.abs(e.scrollLeft)},I.prototype.setElementScrollLeft=function(e,t){m.setScrollLeft(e,t)},I.prototype.getMousewheelEvent=function(){return"wheel"},I.prototype.getMousewheelScrollDelta=function(e){var t=-1,i=e.deltaMode;return i===e.DOM_DELTA_PIXEL?t=-1:i!==e.DOM_DELTA_LINE&&i!==e.DOM_DELTA_PAGE||(t=-40),{deltaX:e.deltaX*t,deltaY:e.deltaY*t}},I.prototype.empty=function(e){for(;e.firstChild;)this.dataGrid._remove(e.firstChild)},I.prototype.supportsTransitions=function(){var e=(document.body||document.documentElement).style,t="transition";if(/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<11))return!1;if("string"==typeof e[t])return!0;var i=["Moz","webkit","Webkit","Khtml","O","ms"];t=t.charAt(0).toUpperCase()+t.substr(1);for(var s=0;s<i.length;s++)if("string"==typeof e[i[s]+t])return!0;return!1},I.prototype._isNodeEditableOrClickable=function(e,t){for(;null!=e&&e!==t;){var i=e.nodeName;if(3===e.nodeType)e=e.parentNode;else{var s=parseInt(e.getAttribute("tabIndex"),10),n=parseInt(e.getAttribute(this.dataGrid.getResources().getMappedAttribute("tabindex")),10);if(null!=s&&s>=0)return!(this.containsCSSClassName(e,this.dataGrid.getResources().getMappedStyle("cell"))||this.containsCSSClassName(e,this.dataGrid.getResources().getMappedStyle("headerlabel"))||this.containsCSSClassName(e,this.dataGrid.getResources().getMappedStyle("headercell"))||this.containsCSSClassName(e,this.dataGrid.getResources().getMappedStyle("endheadercell")));if(i.match(/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/)&&(-1!==s||-1!==n))return!0;e=e.parentNode}}return!1},I.prototype.shouldOffsetOutline=function(){return this.os===oj.AgentUtils.OS.MAC&&this.engine===oj.AgentUtils.ENGINE.WEBKIT};const M=function(e){this.m_root=e,this.MAX_COLUMN_THRESHOLD=20,this.MAX_ROW_THRESHOLD=30,this.m_utils=new I(this),this.m_discontiguousSelection=!1,this.m_sizingManager=new R,this.m_keyboardHandler=new x(this),this.m_rowHeaderWidth=null,this.m_rowEndHeaderWidth=null,this.m_colHeaderHeight=null,this.m_colEndHeaderHeight=null,this.m_styleClassDimensionMap={width:{},height:{}},this.m_isEstimateRowCount=void 0,this.m_isEstimateColumnCount=void 0,this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1,this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1,this.m_initialized=!1,this.m_shouldFocus=null,this.m_renderCount=0,this.callbacks={},this._setupActions(),this.m_readinessStack=[],this.m_modelEvents=[],this.m_databodyMap=new Map};M.prototype.keyCodes={TAB_KEY:9,ENTER_KEY:13,SHIFT_KEY:16,CTRL_KEY:17,ALT_KEY:18,ESC_KEY:27,SPACE_KEY:32,PAGEUP_KEY:33,PAGEDOWN_KEY:34,END_KEY:35,HOME_KEY:36,LEFT_KEY:37,UP_KEY:38,RIGHT_KEY:39,DOWN_KEY:40,NUM5_KEY:53,V_KEY:86,X_KEY:88,C_KEY:67,D_KEY:68,R_KEY:82,F1_KEY:112,F2_KEY:113,F8_KEY:119,F10_KEY:121,F15_KEY:126,A_KEY:65},M.UPDATE_ANIMATION_FADE_INOUT=1,M.UPDATE_ANIMATION_SLIDE_INOUT=2,M.UPDATE_ANIMATION_DURATION=250,M.EXPAND_ANIMATION_DURATION=500,M.COLLAPSE_ANIMATION_DURATION=400,M.MAX_OVERSCROLL_PIXEL=50,M.BOUNCE_ANIMATION_DURATION=500,M.DECELERATION_FACTOR=6e-4,M.TAP_AND_SCROLL_RESET=300,M.MIN_SWIPE_DURATION=200,M.MAX_SWIPE_DURATION=400,M.MIN_SWIPE_DISTANCE=10,M.MIN_SWIPE_TRANSITION_DURATION=100,M.MAX_SWIPE_TRANSITION_DURATION=500,M.CONTEXT_MENU_TAP_HOLD_DURATION=750,M.HEADER_TAP_SHORT_HOLD_DURATION=300,M.FETCH_PIXEL_THRESHOLD=5,M.VISIBILITY_STATE_HIDDEN="hidden",M.VISIBILITY_STATE_REFRESH="refresh",M.VISIBILITY_STATE_RENDER="render",M.VISIBILITY_STATE_VISIBLE="visible",M.SPACER_DEFAULT_WIDTH=2,M.prototype.SetOptions=function(e,t){this.m_options=new b(e,t)},M.prototype.SetSortOriginalEvent=function(e){this.m_sortInfo&&(this.m_sortInfo.originalEvent=e)},M.prototype.UpdateOptions=function(e,t){var i,s,n=Object.keys(e);for(s=0;s<n.length;s++)(i=n[s])in this.m_options.options&&this.m_options.options[i]!==e[i]&&(this.m_options.options[i]=e[i]);for(s=0;s<n.length;s++)if(i=n[s],!this._updateDataGrid(i,t)){this.empty(),this.refresh(this.m_root);break}},M.prototype._updateDataGrid=function(e,t){var i;switch(e){case"bandingInterval":this._removeBanding(),this.updateColumnBanding(),this.updateRowBanding();break;case"currentCell":i=this.m_options.getCurrentCell(),this._updateActive(i,!0,!1);break;case"editMode":this.m_editMode=this.m_options.getEditMode();break;case"gridlines":this._updateGridlines();break;case"header":i=this.m_options.options.header,this._updateHeaderOptions(i,t);break;case"scrollPosition":i=this.m_options.getScrollPosition(),this._updateScrollPosition(i);break;case"selection":i=this.m_options.getSelection(),this._updateSelection(i);break;case"selectionMode":this._clearSelection(null);break;default:return!1}return!0},M.prototype._updateSelection=function(e){null!=e&&this._isSelectionEnabled()&&this.SetSelection(e)},M.prototype._updateHeaderOptions=function(e,t){if(null!=t&&null!=t.subkey){var i,s=t.subkey.split("."),n=s[0],o=s[1];if("column"===n&&null!=this.m_colHeader&&null!=this.m_colHeader.firstChild?i=this.m_colHeader.firstChild.childNodes:"row"===n&&null!=this.m_rowHeader&&null!=this.m_rowHeader.firstChild?i=this.m_rowHeader.firstChild.childNodes:"columnEnd"===n&&null!=this.m_colEndHeader&&null!=this.m_colEndHeader.firstChild?i=this.m_colEndHeader.firstChild.childNodes:"rowEnd"===n&&null!=this.m_rowEndHeader&&null!=this.m_rowEndHeader.firstChild&&(i=this.m_rowEndHeader.firstChild.childNodes),null!=i)for(var l=0;l<i.length;l++){var r=i[l],a=r[this.getResources().getMappedAttribute("context")];if(a.index=this.getHeaderCellIndex(r),"resizable"===o)this._isHeaderResizeEnabled(n,a)?this._setAttribute(r,o,"true"):this._setAttribute(r,o,"false");else if("sortable"===o){var h=this.m_utils.containsCSSClassName(r.lastChild,this.getMappedStyle("sortIcon"));if(this._isSortEnabled(n,a)){if(!h){var d=this._buildSortIcon(a,r);r.appendChild(d)}this._setAttribute(r,o,"true")}else h&&this._remove(r.lastChild),this._setAttribute(r,o,"false")}}}},M.prototype._updateGridlines=function(){var e=this.m_options.getHorizontalGridlines(),t=this.m_options.getVerticalGridlines(),i=this.getResources().isRTLMode()?"right":"left";if(this.m_databody&&this.m_databody.firstChild){let s=this.m_databody.firstChild.querySelectorAll("."+this.getMappedStyle("cell")),n=this._getLastAxis("row"),o=this._getLastAxis("column");for(let l=0;l<s.length;l++){let r=s[l],a=this.getCellIndexes(r);"hidden"===t||a.column===o&&(this.getRowHeaderWidth()+this.getElementDir(r,i)+this.calculateColumnWidth(r)>=this.getWidth()||this.m_endRowEndHeader>-1)?this.m_utils.addCSSClassName(r,this.getMappedStyle("borderVerticalNone")):this.m_utils.removeCSSClassName(r,this.getMappedStyle("borderVerticalNone")),"hidden"===e||a.row===n&&(this.getRowBottom(r,null)>=this.getHeight()||this.m_endColEndHeader>-1)?this.m_utils.addCSSClassName(r,this.getMappedStyle("borderHorizontalNone")):this.m_utils.removeCSSClassName(r,this.getMappedStyle("borderHorizontalNone"))}}},M.prototype._updateEdgeCellBorders=function(e){if(null!=this.m_active&&"cell"===this.m_active.type){var t=this._getActiveElement();null!=t&&((this._isCellEditable()&&""===e||""!==e)&&this._applyBorderClassesAroundRange(t,{startIndex:this.m_active.indexes},""===e,"Edit"),this._isLastRow(this.m_active.indexes.row)&&("none"===e?this.m_utils.addCSSClassName(t,this.getMappedStyle("borderHorizontalNone")):this.m_utils.removeCSSClassName(t,this.getMappedStyle("borderHorizontalNone"))),this._isLastColumn(this.m_active.indexes.column)&&("none"===e?this.m_utils.addCSSClassName(t,this.getMappedStyle("borderVerticalNone")):this.m_utils.removeCSSClassName(t,this.getMappedStyle("borderVerticalNone"))))}},M.prototype.SetResources=function(e){this.m_resources=e},M.prototype.getResources=function(){return this.m_resources},M.prototype.getStartRowHeader=function(){return this.m_startRowHeader},M.prototype.getStartColumnHeader=function(){return this.m_startColHeader},M.prototype.getStartRowEndHeader=function(){return this.m_startRowEndHeader},M.prototype.getStartColumnEndHeader=function(){return this.m_startColEndHeader},M.prototype.getMappedStyle=function(e){return this.getResources().getMappedStyle(e)},M.prototype.SetDataSource=function(e){this.m_modelEvents=[],this.m_dataSource=e},M.prototype.getDataSource=function(){return this.m_dataSource},M.prototype.setVisibility=function(e){this.m_visibility=e},M.prototype.getVisibility=function(){return null==this.m_visibility&&(null!=this.m_root.offsetParent?this.setVisibility(M.VISIBILITY_STATE_VISIBLE):this.setVisibility(M.VISIBILITY_STATE_HIDDEN)),this.m_visibility},M.prototype.SetOptionCallback=function(e){this.m_setOptionCallback=e},M.prototype.SetContextCallback=function(e){this.m_contextCallback=e},M.prototype.SetCustomElementCallback=function(e){this.m_isCustomElementCallback=e},M.prototype.SetRemoveCallback=function(e){this.m_removeCallback=e},M.prototype.SetUniqueIdCallback=function(e){this._uniqueIdCallback=e},M.prototype.SetCompareValuesCallback=function(e){this._compareValuesCallback=e},M.prototype.SetSubtreeAttachedCallback=function(e){this.m_subtreeAttachedCallback=e},M.prototype.SetUpdateScrollPostionOnRefreshCallback=function(e){this.m_updateScrollPostionOnRefreshCallback=e},M.prototype._remove=function(e){this._uniqueIdCallback(e,!0),this.m_removeCallback.call(null,e)},M.prototype._removeFromArray=function(e){for(var t=0;t<e.length;t++)this._remove(e[t])},M.prototype.SetNotReadyCallback=function(e){this.m_notReady=e},M.prototype.SetMakeReadyCallback=function(e){this.m_makeReady=e},M.prototype._signalTaskStart=function(){this.m_readinessStack&&(0===this.m_readinessStack.length&&this.m_notReady(),this.m_readinessStack.push(1))},M.prototype._signalTaskEnd=function(){this.m_readinessStack&&this.m_readinessStack.length>0&&(this.m_readinessStack.pop(),0===this.m_readinessStack.length&&this.m_makeReady())},M.prototype._indexes=function(e,t){var i=this,s=this.getDataSource().indexes(e);"function"==typeof s.then?(i._signalTaskStart(),s.then(function(s){t.call(i,s,e),i._signalTaskEnd()},function(){t.call(i,{row:-1,column:-1},e),i._signalTaskEnd()})):t.call(i,s,e)},M.prototype._keys=function(e,t){var i=this,s=this._getLocalKeys(e);if(void 0===s){var n=this.getDataSource().keys(e);"function"==typeof n.then?(i._signalTaskStart(),n.then(function(s){t.call(i,s,e),i._signalTaskEnd()},function(){t.call(i,{row:null,column:null},e),i._signalTaskEnd()})):t.call(i,n,e)}else t.call(i,s,e)},M.prototype._getLocalKeys=function(e){var t=this._getCellByIndex(e);if(t)return this.getCellKeys(t);var i,s,n=e.row,o=e.column;if(void 0!==n){if(-1===n)i=null;else{var l=this._getCellOrHeaderByIndex(n,"row");l&&(i=this._getKey(l,"row"))}if(void 0===i)return}if(void 0!==o){if(-1===o)s=null;else{var r=this._getCellOrHeaderByIndex(o,"column");r&&(s=this._getKey(r,"column"))}if(void 0===s)return}return this.createIndex(i,s)},M.prototype.SetCreateContextCallback=function(e){this.m_createContextCallback=e},M.prototype.SetFocusableCallback=function(e,t){this.m_focusInHandler=e,this.m_focusOutHandler=t},M.prototype.SetFixContextCallback=function(e){this.m_fixContextCallback=e},M.prototype.SetCustomElement=function(e){this.m_customElement=e},M.prototype._isHighWatermarkScrolling=function(){return"scroll"!==this.m_options.getScrollPolicy()},M.prototype.destroy=function(){delete this.m_fetching,this._removeDataSourceEventListeners(),this._removeDomEventListeners(),delete this.m_styleClassDimensionMap,this.m_styleClassDimensionMap={width:{},height:{}}},M.prototype._addDataSourceEventListeners=function(){this._removeDataSourceEventListeners(),null!=this.m_dataSource&&(this.m_handleModelEventListener=this.handleModelEvent.bind(this),this.m_handleExpandEventListener=this.handleExpandEvent.bind(this),this.m_handleCollapseEventListener=this.handleCollapseEvent.bind(this),this.m_dataSource.on("change",this.m_handleModelEventListener,this),this.m_dataSource.on("expand",this.m_handleExpandEventListener,this),this.m_dataSource.on("collapse",this.m_handleCollapseEventListener,this))},M.prototype._removeDataSourceEventListeners=function(){null!=this.m_dataSource&&(this.m_dataSource.off("change",this.m_handleModelEventListener),this.m_dataSource.off("expand",this.m_handleExpandEventListener),this.m_dataSource.off("collapse",this.m_handleCollapseEventListener))},M.prototype._addDomEventListeners=function(){this.m_handleDatabodyKeyDown||(this.m_handleDatabodyKeyDown=this.handleDatabodyKeyDown.bind(this)),this.m_handleDatabodyKeyUp||(this.m_handleDatabodyKeyUp=this.handleDatabodyKeyUp.bind(this)),this.m_handleRootFocus||(this.m_handleRootFocus=this.handleRootFocus.bind(this)),this.m_handleRootBlur||(this.m_handleRootBlur=this.handleRootBlur.bind(this)),this.m_root.addEventListener("keydown",this.m_handleDatabodyKeyDown,!1),this.m_root.addEventListener("keyup",this.m_handleDatabodyKeyUp,!1),this.m_root.addEventListener("focus",this.m_handleRootFocus,!0),this.m_root.addEventListener("blur",this.m_handleRootBlur,!0)},M.prototype._removeDomEventListeners=function(){document.removeEventListener("mousemove",this.m_docMouseMoveListener,!1),document.removeEventListener("mouseup",this.m_docMouseUpListener,!1),null!=this.m_root&&(this.m_handleDatabodyKeyDown&&this.m_root.removeEventListener("keydown",this.m_handleDatabodyKeyDown,!1),this.m_handleDatabodyKeyUp&&this.m_root.removeEventListener("keyup",this.m_handleDatabodyKeyUp,!1),this.m_handleRootFocus&&this.m_root.removeEventListener("focus",this.m_handleRootFocus,!0),this.m_handleRootBlur&&this.m_root.removeEventListener("blur",this.m_handleRootBlur,!0))},M.prototype.getRootElement=function(){return this.m_root},M.prototype.getWidth=function(){return null==this.m_width&&(this.m_width=this.getRootElement().clientWidth),this.m_width},M.prototype.getHeight=function(){return null==this.m_height&&(this.m_height=this.getRootElement().clientHeight),this.m_height},M.prototype.getScrollableWidth=function(){var e=this.m_databody.firstChild;return this.getElementWidth(e)},M.prototype.getViewportWidth=function(){var e=this.getWidth();return Math.round(1.5*e)},M.prototype.getViewportHeight=function(){var e=this.getHeight();return Math.round(1.5*e)},M.prototype._getViewportTop=function(){return this.m_currentScrollTop},M.prototype._getViewportBottom=function(){var e=this._getViewportTop(),t=this.getElementHeight(this.m_databody),i=this.m_utils.getScrollbarSize();return this.m_hasHorizontalScroller?e+t-i:e+t},M.prototype._getViewportLeft=function(){return this.m_currentScrollLeft},M.prototype._getViewportRight=function(){var e=this._getViewportLeft(),t=this.getElementWidth(this.m_databody),i=this.m_utils.getScrollbarSize();return this.m_hasVerticalScroller?e+t-i:e+t},M.prototype.getFetchSize=function(e){return"row"===e?(null==this.m_rowFetchSize&&(this.m_rowFetchSize=Math.max(1,Math.round(this.getViewportHeight()/this.getDefaultRowHeight()))),this.m_rowFetchSize):"column"===e?(null==this.m_columnFetchSize&&(this.m_columnFetchSize=Math.max(1,Math.round(this.getViewportWidth()/this.getDefaultColumnWidth()))),this.m_columnFetchSize):0},M.prototype.getEmptyText=function(){var e=this.m_options.getEmptyText();null==e&&(e=this.getResources().getTranslatedText("msgNoData"));return e},M.prototype._buildEmptyText=function(){var e=this.getEmptyText(),t=document.createElement("div");t.id=this.createSubId("empty"),t.className=this.getMappedStyle("emptytext");var i=this.m_endColHeader>=0?this.getColumnHeaderHeight():0;this.setElementDir(t,i,"top");var s=this.getResources().isRTLMode()?"right":"left",n=this.m_endRowHeader>=0?this.getRowHeaderWidth():0;return this.setElementDir(t,n,s),t.textContent=e,this.m_empty=t,t},M.prototype.getRowThreshold=function(){return 0},M.prototype.getColumnThreshold=function(){return 0},M.prototype.setDefaultDimensions=function(){var e=document.createElement("div");e.style.visibilty="hidden";var t=this.getResources();e.className=t.getMappedStyle("rowheadercell")+" "+t.getMappedStyle("colheadercell")+" "+t.getMappedStyle("headercell"),this.m_root.appendChild(e);var i=e.getBoundingClientRect();this.m_defaultColumnWidth=Math.round(i.width),this.m_defaultRowHeight=Math.round(i.height),this.getViewportWidth(),this.getViewportHeight(),this.m_root.removeChild(e)},M.prototype.getDefaultRowHeight=function(){return null==this.m_defaultRowHeight&&this.setDefaultDimensions(),this.m_defaultRowHeight},M.prototype.getDefaultColumnWidth=function(){return null==this.m_defaultColumnWidth&&this.setDefaultDimensions(),this.m_defaultColumnWidth},M.prototype._getHeaderDimension=function(e,t,i,s){var n=this.m_sizingManager.getSize(i,t);if(null!=n)return n;if(""!==e.style[s])return n=this.getElementDir(e,s),this.m_sizingManager.setSize(i,t,n),n;var o=e.className;return null==(n=this.m_styleClassDimensionMap[s][o])&&(n=this.getElementDir(e,s)),this.m_sizingManager.setSize(i,t,n),this.m_styleClassDimensionMap[s][o]=n,n},M.prototype.createSubId=function(e){return[this.getRootElement().id,e].join(":")},M.prototype.isHeaderFetchComplete=function(){return!1===this.m_fetching.row&&!1===this.m_fetching.column},M.prototype.isFetchComplete=function(){return null!=this.m_fetching&&this.isHeaderFetchComplete()&&!1===this.m_fetching.cells},M.prototype._isLastRow=function(e){return this._isCountUnknown("row")?e===this.m_endRow&&this.m_stopRowFetch:e+1===this.getDataSource().getCount("row")},M.prototype._isLastColumn=function(e){return this._isCountUnknown("column")?e===this.m_endCol&&this.m_stopColumnFetch:e+1===this.getDataSource().getCount("column")},M.prototype._getLastAxis=function(e){return this._isCountUnknown(e)?("row"===e?this.m_stopRowFetch:this.m_stopColumnFetch)?"row"===e?this.m_endRow:this.m_endCol:"row"===e?this.m_endRow+1:this.m_endCol+1:this.getDataSource().getCount(e)-1},M.prototype.empty=function(){this.m_empty&&this.m_root.removeChild(this.m_empty),this.m_corner&&this._remove(this.m_corner),this.m_bottomCorner&&this._remove(this.m_bottomCorner),this.m_columnHeaderScrollbarSpacer&&this._remove(this.m_columnHeaderScrollbarSpacer),this.m_rowHeaderScrollbarSpacer&&this._remove(this.m_rowHeaderScrollbarSpacer),this.m_root.removeChild(this.m_placeHolder),this.m_root.removeChild(this.m_status),this.m_root.removeChild(this.m_accSummary),this.m_root.removeChild(this.m_accInfo),this.m_root.removeChild(this.m_stateInfo),this.m_root.removeChild(this.m_contextInfo),this._remove(this.m_colHeader),this._remove(this.m_rowHeader),this._remove(this.m_colEndHeader),this._remove(this.m_rowEndHeader),this._remove(this.m_databody),this._clearDatabodyMap()},M.prototype.refresh=function(e){this.resetInternal(),this.render(e)},M.prototype.resetInternal=function(){this.m_initialized=!1,this.m_readinessStack=[],this._signalTaskStart(),this._signalTaskEnd(),this._clearDatabodyMap(),this.m_cursor=null,this.m_corner=null,this.m_bottomCorner=null,this.m_columnHeaderScrollbarSpacer=null,this.m_rowHeaderScrollbarSpacer=null,this.m_colHeader=null,this.m_colEndHeader=null,this.m_rowHeader=null,this.m_rowEndHeader=null,this.m_databody=null,this.m_empty=null,this.m_accInfo=null,this.m_accSummary=null,this.m_contextInfo=null,this.m_placeHolder=null,this.m_stateInfo=null,this.m_status=null,this.m_headerLabels={row:[],column:[],rowEnd:[],columnEnd:[]},this.m_isEstimateRowCount=void 0,this.m_isEstimateColumnCount=void 0,this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1,this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1,this.m_rowFetchSize=null,this.m_columnFetchSize=null,this.m_fetching=null,this.m_processingModelEvent=!1,this.m_processingEventQueue=!1,this.m_animating=!1,this.m_sizingManager.clear(),this.m_styleClassDimensionMap={width:{},height:{}},this.m_height=null,this.m_width=null,this.m_scrollHeight=null,this.m_scrollWidth=null,this.m_avgRowHeight=void 0,this.m_avgColWidth=void 0,this.m_defaultColumnWidth=null,this.m_defaultRowHeight=null,this.m_colHeaderHeight=null,this.m_colEndHeaderHeight=null,this.m_rowHeaderWidth=null,this.m_rowEndHeaderWidth=null,this.m_rowHeaderLevelWidths=[],this.m_rowEndHeaderLevelWidths=[],this.m_columnHeaderLevelHeights=[],this.m_columnEndHeaderLevelHeights=[],this.m_collisionResize=!1,this.m_active=null,this.m_prevActive=null,this.m_trueIndex={},this.m_headerDragState=!1,this.m_databodyDragState=!1,this.m_databodyMove=!1,this.m_moveRow=null,this.m_moveRowHeader=null,this.m_dropTarget=null,this.m_dropTargetHeader=null,this.m_floodFillDragState=!1,this.m_dataTransferAction=null,this.m_discontiguousSelection=!1,this.m_docMouseMoveListener=null,this.m_docMouseUpListener=null,this.m_modelEvents=[],this.m_hasHorizontalScroller=null,this.m_hasVerticalScroller=null,this.m_currentScrollLeft=null,this.m_currentScrollTop=null,this.m_prevScrollLeft=null,this.m_prevScrollTop=null,this.m_handleScrollOverflow=null,this._clearScrollPositionTimeout(),this.m_resizing=!1,this.m_resizingElement=null,this.m_resizingElementMin=null,this.m_startRow=null,this.m_startCol=null,this.m_endRow=null,this.m_endCol=null,this.m_startRowPixel=null,this.m_startColPixel=null,this.m_endRowPixel=null,this.m_endColPixel=null,this.m_startRowHeader=null,this.m_startColHeader=null,this.m_endRowHeader=null,this.m_endColHeader=null,this.m_startRowHeaderPixel=null,this.m_startColHeaderPixel=null,this.m_endRowHeaderPixel=null,this.m_endColHeaderPixel=null,this.m_rowHeaderLevelCount=null,this.m_columnHeaderLevelCount=null,this.m_startRowEndHeader=null,this.m_startColEndHeader=null,this.m_endRowEndHeader=null,this.m_endColEndHeader=null,this.m_startRowEndHeaderPixel=null,this.m_startColEndHeaderPixel=null,this.m_endRowEndHeaderPixel=null,this.m_endColEndHeaderPixel=null,this.m_rowEndHeaderLevelCount=null,this.m_columnEndHeaderLevelCount=null,this.m_sortInfo=null,this.m_expandCollapseInfo=null,this.m_resizeRequired=null,this.m_externalFocus=null,this.m_currentMode=null,this.m_editMode=null,this.m_hasCells=null,this.m_hasRowHeader=null,this.m_hasRowEndHeader=null,this.m_hasColHeader=null,this.m_hasColEndHeader=null,this.m_isLongScroll=null,this.m_addBorderBottom=null,this.m_addBorderRight=null,this.m_sortContainerWidth=null,this.m_sortContainerHeight=null,this._destroyEditableClone(),this._clearFocusoutTimeout(),this._clearFocusoutBusyState()},M.prototype._shouldInitialize=function(){return this.isFetchComplete()&&!this.m_initialized&&null!=this.m_databody.parentNode},M.prototype._handleInitialization=function(e){!0===e?(this.resizeGrid(),0===this.m_startRow&&0===this.m_startCol&&this.fillViewport(),this.isFetchComplete()&&(this._updateActive(this.m_options.getCurrentCell(),!!this.m_focusOnRefresh,!0),this.m_initialized=!0,this.fireEvent("ready",{}),this._runModelEventQueue())):(this.m_initialized=!0,this.fireEvent("ready",{}),this._runModelEventQueue())},M.prototype._runModelEventQueue=function(){var e;if(null!=this.m_modelEvents){if(this.m_processingEventQueue=!0,0===this.m_modelEvents.length)return void(this.m_processingEventQueue=!1);"expand"===(e=this.m_modelEvents.shift()).operation?this.handleExpandEvent(e,!0):"collapse"===e.operation?this.handleCollapseEvent(e,!0):this.handleModelEvent(e,!0)}else this.m_processingEventQueue=!1},M.prototype.render=function(e){this.m_renderCount+=1,this.m_timingStart=new Date,this.m_fetching={},this.m_startRow=0,this.m_startCol=0,this.m_endRow=-1,this.m_endCol=-1,this.m_startRowPixel=0,this.m_startColPixel=0,this.m_endRowPixel=0,this.m_endColPixel=0,this.m_startRowHeader=0,this.m_startColHeader=0,this.m_endRowHeader=-1,this.m_endColHeader=-1,this.m_startRowHeaderPixel=0,this.m_startColHeaderPixel=0,this.m_endRowHeaderPixel=0,this.m_endColHeaderPixel=0,this.m_startRowEndHeader=0,this.m_startColEndHeader=0,this.m_endRowEndHeader=-1,this.m_endColEndHeader=-1,this.m_startRowEndHeaderPixel=0,this.m_startColEndHeaderPixel=0,this.m_endRowEndHeaderPixel=0,this.m_endColEndHeaderPixel=0,this.m_currentScrollLeft=0,this.m_currentScrollTop=0,this.m_prevScrollLeft=0,this.m_prevScrollTop=0,this.m_handleScrollOverflow=!1,this.m_rowHeaderLevelWidths=[],this.m_rowEndHeaderLevelWidths=[],this.m_columnHeaderLevelHeights=[],this.m_columnEndHeaderLevelHeights=[];var t=this._loadTemplateEngine();t?(this._signalTaskStart("loading template engine"),t.then(()=>{this._signalTaskEnd(),this.m_renderCount-=1,0===this.m_renderCount&&this.buildGrid(e)})):(this.m_renderCount-=1,this.buildGrid(e))},M.prototype._loadTemplateEngine=function(){var e=this._getSlotMap();if(this._isDataGridProvider()&&Object.keys(e).length>1){var t={customElement:this.m_customElement};return new Promise(e=>{u.__getTemplateEngine(t).then(t=>{this.m_engine=t,e(t)},function(e){throw new Error("Error loading template engine: "+e)})})}return null},M.prototype._getTemplateEngine=function(){return this.m_engine},M.prototype._isDataGridProvider=function(){return this.m_options.options.data&&this.m_options.options.data.fetchByOffset&&!this.m_options.options.data.fetchFirst},M.prototype._getSlotMap=function(){return _.CustomElementUtils.getSlotMap(this.m_root)},M.prototype._getItemTemplateBySlotName=function(e){var t=this._getSlotMap()[e];return t&&t.length>0&&"template"===t[0].tagName.toLowerCase()?t[0]:null},M.prototype.buildGrid=function(e){this.m_root=e,this.m_root.setAttribute("role","application"),this._isCellEditable()?this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("editable")):this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("readOnly")),this.setDefaultDimensions(),e.tabIndex=0;var t=this.buildStatus();e.appendChild(t),this.m_status=t;var i=this.buildAccSummary();e.appendChild(i),this.m_accSummary=i;var s=this.buildAccInfo();e.appendChild(s),this.m_accInfo=s;var n=this.buildStateInfo();e.appendChild(n),this.m_stateInfo=n;var o=this.buildContextInfo();e.appendChild(o),this.m_contextInfo=o;var l=this.buildPlaceHolder();if(e.appendChild(l),this.m_placeHolder=l,this.m_headerLabels={row:[],column:[],rowEnd:[],columnEnd:[]},null!=this.getDataSource()){this.m_empty=null;var r=this.getResources().isRTLMode(),a=this.buildHeaders("column",this.getMappedStyle("colheader"),this.getMappedStyle("colendheader")),h=a.root,d=a.endRoot;e.insertBefore(h,t),e.insertBefore(d,t);var c=(a=this.buildHeaders("row",this.getMappedStyle("rowheader"),this.getMappedStyle("rowendheader"))).root,m=a.endRoot;e.insertBefore(c,t),e.insertBefore(m,t);var u=this.buildDatabody();if(e.insertBefore(u,t),r&&(h.style.direction="rtl",u.style.direction="rtl"),this.m_isResizing=!1,this.m_resizingElement=null,this.m_resizingElementMin=null,this.m_databodyDragState=!1,this.m_docMouseMoveListener=this.handleMouseMove.bind(this),this.m_docMouseUpListener=this.handleMouseUp.bind(this),this.m_utils.isTouchDevice())u.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),u.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!1}),u.addEventListener("touchend",this.handleTouchEnd.bind(this),!1),u.addEventListener("touchcancel",this.handleTouchCancel.bind(this),!1),h.addEventListener("touchstart",this.handleHeaderTouchStart.bind(this),{passive:!0}),h.addEventListener("touchmove",this.handleHeaderTouchMove.bind(this),{passive:!1}),h.addEventListener("touchend",this.handleHeaderTouchEnd.bind(this),!1),h.addEventListener("touchcancel",this.handleHeaderTouchCancel.bind(this),!1),c.addEventListener("touchstart",this.handleHeaderTouchStart.bind(this),{passive:!0}),c.addEventListener("touchmove",this.handleHeaderTouchMove.bind(this),{passive:!1}),c.addEventListener("touchend",this.handleHeaderTouchEnd.bind(this),!1),c.addEventListener("touchcancel",this.handleHeaderTouchCancel.bind(this),!1),d.addEventListener("touchstart",this.handleHeaderTouchStart.bind(this),{passive:!0}),d.addEventListener("touchmove",this.handleHeaderTouchMove.bind(this),{passive:!1}),d.addEventListener("touchend",this.handleHeaderTouchEnd.bind(this),!1),d.addEventListener("touchcancel",this.handleHeaderTouchCancel.bind(this),!1),m.addEventListener("touchstart",this.handleHeaderTouchStart.bind(this),{passive:!0}),m.addEventListener("touchmove",this.handleHeaderTouchMove.bind(this),{passive:!1}),m.addEventListener("touchend",this.handleHeaderTouchEnd.bind(this),!1),m.addEventListener("touchcancel",this.handleHeaderTouchCancel.bind(this),!1);else{var _=this.m_utils.getMousewheelEvent();u.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),u.addEventListener("mousedown",this.handleDatabodyMouseDown.bind(this),!1),u.addEventListener("mousemove",this.handleDatabodyMouseMove.bind(this),!1),u.addEventListener("mouseup",this.handleDatabodyMouseUp.bind(this),!1),u.addEventListener("mouseout",this.handleDatabodyMouseOut.bind(this),!1),u.addEventListener("mouseover",this.handleDatabodyMouseOver.bind(this),!1),u.addEventListener("dblclick",this.handleDatabodyDoubleClick.bind(this),!1),c.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),h.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),c.addEventListener("mousedown",this.handleHeaderMouseDown.bind(this),!1),h.addEventListener("mousedown",this.handleHeaderMouseDown.bind(this),!1),c.addEventListener("mouseover",this.handleHeaderMouseOver.bind(this),!1),h.addEventListener("mouseover",this.handleHeaderMouseOver.bind(this),!1),c.addEventListener("mousemove",this.handleRowHeaderMouseMove.bind(this),!1),h.addEventListener("mousemove",this.handleColumnHeaderMouseMove.bind(this),!1),c.addEventListener("mouseup",this.handleHeaderMouseUp.bind(this),!1),h.addEventListener("mouseup",this.handleHeaderMouseUp.bind(this),!1),c.addEventListener("mouseout",this.handleHeaderMouseOut.bind(this),!1),h.addEventListener("mouseout",this.handleHeaderMouseOut.bind(this),!1),c.addEventListener("click",this.handleHeaderClick.bind(this),!1),c.addEventListener("dblclick",this.handleHeaderDoubleClick.bind(this),!1),h.addEventListener("click",this.handleHeaderClick.bind(this),!1),h.addEventListener("dblclick",this.handleHeaderDoubleClick.bind(this),!1),m.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),d.addEventListener(_,this.handleDatabodyMouseWheel.bind(this),{passive:!1}),m.addEventListener("mousedown",this.handleHeaderMouseDown.bind(this),!1),d.addEventListener("mousedown",this.handleHeaderMouseDown.bind(this),!1),m.addEventListener("mouseover",this.handleHeaderMouseOver.bind(this),!1),d.addEventListener("mouseover",this.handleHeaderMouseOver.bind(this),!1),m.addEventListener("mousemove",this.handleRowHeaderMouseMove.bind(this),!1),d.addEventListener("mousemove",this.handleColumnHeaderMouseMove.bind(this),!1),m.addEventListener("mouseup",this.handleHeaderMouseUp.bind(this),!1),d.addEventListener("mouseup",this.handleHeaderMouseUp.bind(this),!1),m.addEventListener("mouseout",this.handleHeaderMouseOut.bind(this),!1),d.addEventListener("mouseout",this.handleHeaderMouseOut.bind(this),!1),m.addEventListener("click",this.handleHeaderClick.bind(this),!1),m.addEventListener("dblclick",this.handleHeaderDoubleClick.bind(this),!1),d.addEventListener("click",this.handleHeaderClick.bind(this),!1),d.addEventListener("dblclick",this.handleHeaderDoubleClick.bind(this),!1)}this._shouldInitialize()&&this._handleInitialization(!0)}else{var p=this._buildEmptyText();this.m_root.appendChild(p),this._handleInitialization(!1)}},M.prototype.HandleResize=function(e,t){e=this.getRootElement().clientWidth,t=this.getRootElement().clientHeight,e===this.m_width&&t===this.m_height||(this.m_width=e,this.m_height=t,this.m_rowFetchSize=null,this.m_columnFetchSize=null,this.m_initialized&&(this.resizeGrid(),this.isFetchComplete()&&(this.m_resizeRequired=!0,this.fillViewport())))},M.prototype.resizeGrid=function(){var e=this.getWidth(),t=this.getHeight(),i=this.m_colHeader,s=this.m_colEndHeader,n=this.m_rowHeader,o=this.m_rowEndHeader,l=this.m_databody,r=l.firstChild,a=this.getColumnHeaderHeight(),h=this.getColumnEndHeaderHeight(),d=this.getRowHeaderWidth(),c=this.getRowEndHeaderWidth();this.m_headerLabels.row&&this.m_headerLabels.row.length&&0===a&&(a=this._getCellDimension(this.m_headerLabels.row[0],0,null,"column","height"),this.m_colHeaderHeight=a),this.m_headerLabels.column&&this.m_headerLabels.column.length&&0===d&&(d=this._getCellDimension(this.m_headerLabels.column[0],0,null,"row","width"),this.m_rowHeaderWidth=d);var m,u,_,p=t-a-h,g=e-d-c,f=this.m_utils.getScrollbarSize();this._databodyEmpty()&&(null==this.m_empty?(m=this._buildEmptyText(),this.m_root.appendChild(m)):m=this.m_empty,u=this.getElementHeight(m),_=this.getElementWidth(m),u>this.getElementHeight(r)&&this.setElementHeight(r,u),_>this.getElementWidth(r)&&this.setElementWidth(r,_));var C,y,v,E,w,S=this.getElementWidth(l.firstChild),H=this.getElementHeight(l.firstChild),x=this.isDatabodyHorizontalScrollbarRequired(g);if(x)C=this.isDatabodyVerticalScrollbarRequired(p-f),l.style.overflow="auto";else if(C=this.isDatabodyVerticalScrollbarRequired(p))x=this.isDatabodyHorizontalScrollbarRequired(g-f),l.style.overflow="auto";else{this.m_handleScrollOverflow=!1;var b=this;setTimeout(function(){b.m_handleScrollOverflow||b.m_hasVerticalScroller||b.m_hasHorizontalScroller||(l.style.overflow="hidden",b.m_handleScrollOverflow=!0)},10)}this.m_hasHorizontalScroller=x,this.m_hasVerticalScroller=C,-1!==this.m_endColEndHeader?(y=Math.min(H+(x?f:0),p),v=x?y-f:y):(y=p,v=Math.min(H,x?y-f:y)),-1!==this.m_endRowEndHeader?(E=Math.min(S+(C?f:0),g),w=C?E-f:E):(E=g,w=Math.min(S,C?E-f:E));var R=d+w+(C?f:0),I=a+v+(x?f:0),M=this.getResources().isRTLMode()?"right":"left";this.setElementDir(n,0,M),this.setElementDir(n,a,"top"),this.setElementHeight(n,v),this.setElementDir(o,R,M),this.setElementDir(o,a,"top"),this.setElementHeight(o,v),this.setElementDir(i,d,M),this.setElementWidth(i,w),this.setElementDir(s,d,M),this.setElementDir(s,I,"top"),this.setElementWidth(s,w),this.setElementDir(l,a,"top"),this.setElementDir(l,d,M),this.setElementWidth(l,E),this.setElementHeight(l,y),this.m_scrollWidth=S-w,this.m_scrollHeight=H-v,this.buildCorners(),this._adjustHeaderBorders(),this._updateGridlines(),this.m_resizeRequired=!1},M.prototype._sizeDatabodyScroller=function(){var e,t,i=this.m_databody,s=i.firstChild,n=this._databodyEmpty(),o=this._isHighWatermarkScrolling(),l=this.m_utils._getMaxDivHeightForScrolling(),r=this.m_utils._getMaxDivWidthForScrolling(),a=this.getDataSource().getCount("row"),h=this.getDataSource().getCount("column"),d=0,c=0;n?(d=Math.max(Math.max(this.m_endRowHeaderPixel,this.m_endRowEndHeaderPixel),1),c=Math.max(Math.max(this.m_endColHeaderPixel,this.m_endColEndHeaderPixel),1)):(d=this.m_endRowPixel,c=this.m_endColPixel),e=-1===a||o?d:a*this.m_avgRowHeight,t=-1===h||o?c:h*this.m_avgColWidth,this.setElementHeight(s,Math.min(l,e)),this.setElementWidth(s,Math.min(r,t)),this.m_initialized&&(this.m_scrollWidth=this.getElementWidth(s)-Math.min(this.getElementWidth(s),this.getElementWidth(i)-(this.m_hasVerticalScroller?this.m_utils.getScrollbarSize():0)),this.m_scrollHeight=this.getElementHeight(s)-Math.min(this.getElementHeight(s),this.getElementHeight(i)-(this.m_hasHorizontalScroller?this.m_utils.getScrollbarSize():0)))},M.prototype._adjustLastHeadersAlongAxis=function(e,t,i,s,n,o){for(var l=0;l<t;){var r=this._getHeaderByIndex(e,l,i,t,s);o?this.m_utils.removeCSSClassName(r,n):this.m_utils.addCSSClassName(r,n),l+=this.getHeaderCellDepth(r)}},M.prototype._adjustHeaderBordersAlongAxis=function(e,t,i,s,n,o,l,r){null!=e&&i>=0&&(s?this.m_utils.addCSSClassName(n,o):this.m_utils.removeCSSClassName(n,o),t(i)&&this._adjustLastHeadersAlongAxis(i,l,e,r,o,s))},M.prototype._adjustHeaderBorders=function(){var e,t,i,s,n,o=this.m_utils.getScrollbarSize(),l=this.getWidth(),r=this.getHeight(),a=this.getColumnHeaderHeight(),h=this.getElementWidth(this.m_colHeader),d=this.getColumnEndHeaderHeight(),c=this.getRowHeaderWidth(),m=this.getElementHeight(this.m_rowHeader),u=c+h+this.getRowEndHeaderWidth()+(this.m_hasVerticalScroller?o:0)<l,_=a+m+d+(this.m_hasHorizontalScroller?o:0)<r;if(u&&this.m_endRowEndHeader>=0?(e=!0,this.m_addBorderRight=!0):!0===this.m_addBorderRight&&(e=!1),null!=e)for(t=this.getMappedStyle("borderVerticalSmall"),null!=this.m_columnHeaderScrollbarSpacer&&(e?this.m_utils.addCSSClassName(this.m_columnHeaderScrollbarSpacer,t):this.m_utils.removeCSSClassName(this.m_columnHeaderScrollbarSpacer,t)),null!=this.m_bottomCorner&&(e?this.m_utils.addCSSClassName(this.m_bottomCorner,t):this.m_utils.removeCSSClassName(this.m_bottomCorner,t)),s=this.m_rowEndHeader.firstChild.childNodes,i=0;i<s.length;i++)e?this.m_utils.addCSSClassName(s[i],t):this.m_utils.removeCSSClassName(s[i],t);else t=this.getMappedStyle("borderVerticalNone"),n=this._isLastColumn.bind(this),this._adjustHeaderBordersAlongAxis(this.m_colHeader,n,this.m_endColHeader,u,this.m_columnHeaderScrollbarSpacer,t,this.m_columnHeaderLevelCount,this.m_startColHeader),this._adjustHeaderBordersAlongAxis(this.m_colEndHeader,n,this.m_endColEndHeader,u,this.m_bottomCorner,t,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader);if(e=null,_&&this.m_endColEndHeader>=0?(this.m_addBorderBottom=!0,e=!0):!0===this.m_addBorderBottom&&(e=!1),null!=e)for(t=this.getMappedStyle("borderHorizontalSmall"),null!=this.m_rowHeaderScrollbarSpacer&&(e?this.m_utils.addCSSClassName(this.m_rowHeaderScrollbarSpacer,t):this.m_utils.removeCSSClassName(this.m_rowHeaderScrollbarSpacer,t)),null!=this.m_bottomCorner&&(e?this.m_utils.addCSSClassName(this.m_bottomCorner,t):this.m_utils.removeCSSClassName(this.m_bottomCorner,t)),s=this.m_colEndHeader.firstChild.childNodes,i=0;i<s.length;i++)e?this.m_utils.addCSSClassName(s[i],t):this.m_utils.removeCSSClassName(s[i],t);else t=this.getMappedStyle("borderHorizontalNone"),n=this._isLastRow.bind(this),this._adjustHeaderBordersAlongAxis(this.m_rowHeader,n,this.m_endRowHeader,_,this.m_rowHeaderScrollbarSpacer,t,this.m_rowHeaderLevelCount,this.m_startRowHeader),this._adjustHeaderBordersAlongAxis(this.m_rowEndHeader,n,this.m_endRowEndHeader,_,this.m_bottomCorner,t,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader)},M.prototype._isHeaderLabelCollision=function(){return this.m_headerLabels.column[this.m_columnHeaderLevelCount-1]&&this.m_headerLabels.row[this.m_rowHeaderLevelCount-1]},M.prototype.buildCorners=function(){var e,t,i,s,n=this.m_utils.getScrollbarSize(),o=this.getWidth(),l=this.getHeight(),r=this.getColumnHeaderHeight(),a=this.getElementWidth(this.m_colHeader),h=this.getColumnEndHeaderHeight(),d=this.getRowHeaderWidth(),c=this.getRowEndHeaderWidth(),m=this.getElementHeight(this.m_rowHeader),u=this.getResources().isRTLMode()?"right":"left";let _,p,g,f,C,y,v=!0,E=r,w=d;if(-1!==this.m_endRowHeader&&-1!==this.m_endColHeader?(p=this.m_headerLabels.column.length?this.m_columnHeaderLevelHeights[this.m_columnHeaderLevelCount-1]:this.m_colHeaderHeight,_=this.m_headerLabels.row.length?this.m_rowHeaderLevelWidths[this.m_rowHeaderLevelCount-1]:this.m_rowHeaderWidth,C=m+r,y=h+(this.m_hasHorizontalScroller?n:0),g=d+a,f=c+(this.m_hasVerticalScroller?n:0)):-1!==this.m_endRowHeader&&-1===this.m_endColHeader?(p=r,C=m+r,y=h+(this.m_hasHorizontalScroller?n:0),g=d,f=c+a+(this.m_hasVerticalScroller?n:0)):-1===this.m_endRowHeader&&-1!==this.m_endColHeader?(_=d,C=r,y=h+m+(this.m_hasHorizontalScroller?n:0),g=d+a,f=c+(this.m_hasVerticalScroller?n:0)):v=!1,v){if(null!=this.m_corner?e=this.m_corner:((e=document.createElement("div")).id=this.createSubId("corner"),e.className=this.getMappedStyle("topcorner")),this.setElementWidth(e,d),this.setElementHeight(e,r),null==this.m_corner){if(this._attachEventListenersOnCorner(e),this.m_root.appendChild(e),this.m_corner=e,p)for(s=0;s<this.m_headerLabels.row.length;s++)null!=(i=this.m_headerLabels.row[s])&&(this.setElementHeight(i,p),e.appendChild(i));if(_)for(s=0;s<this.m_headerLabels.column.length;s++)null!=(i=this.m_headerLabels.column[s])&&(this.setElementWidth(i,_),e.appendChild(i));if(this.m_subtreeAttachedCallback(e),this._isHeaderLabelCollision()){let e=this._getHeaderByIndex(this.m_startColHeader,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),t=this.getElementHeight(e);return this.m_colHeaderHeight+=t,this.m_columnHeaderLevelHeights[this.m_columnHeaderLevelCount-1]+=t,this.resizeColumnHeightsAndShift(t,this.m_columnHeaderLevelCount-1,!1),this.setElementHeight(this.m_colHeader,this.m_colHeaderHeight),void this.manageResizeScrollbars()}}else{this.m_utils.isTouchDevice()?(e.addEventListener("touchstart",this.handleHeaderLabelMouseDown.bind(this),!1),e.addEventListener("touchmove",this.handleHeaderLabelMouseMove.bind(this),!1)):(e.addEventListener("mousedown",this.handleHeaderLabelMouseDown.bind(this),!1),e.addEventListener("mousemove",this.handleHeaderLabelMouseMove.bind(this),!1))}this._buildCornerOnHeaderAxisDisabled("row",u,0,C,w,y),this._buildCornerOnHeaderAxisDisabled("column",u,g,0,f,E)}else this.m_headerLabels.row=[],this.m_headerLabels.column=[];null!=this.m_corner&&null==e&&(this.m_root.removeChild(this.m_corner),this.m_corner=null),(this.m_hasHorizontalScroller&&this.m_hasVerticalScroller||this.m_hasVerticalScroller&&-1!==this.m_endColEndHeader||this.m_hasHorizontalScroller&&-1!==this.m_endRowEndHeader||-1!==this.m_endRowEndHeader&&-1!==this.m_endColEndHeader)&&(null!=this.m_bottomCorner?t=this.m_bottomCorner:((t=document.createElement("div")).id=this.createSubId("bcorner"),t.className=this.getMappedStyle("bottomcorner")),this.setElementDir(t,m+r,"top"),this.setElementDir(t,d+a,u),-1!==this.m_endRowEndHeader?this.setElementWidth(t,c+(this.m_hasVerticalScroller?n:0)):this.setElementWidth(t,o-a-d),-1!==this.m_endColEndHeader?this.setElementHeight(t,h+(this.m_hasHorizontalScroller?n:0)):this.setElementHeight(t,l-m-r),null==this.m_bottomCorner&&(this.m_root.appendChild(t),this.m_bottomCorner=t)),null!=this.m_bottomCorner&&null==t&&(this.m_root.removeChild(this.m_bottomCorner),this.m_bottomCorner=null)},M.prototype._attachEventListenersOnCorner=function(e){this.m_utils.isTouchDevice()?e.addEventListener("touchstart",this.handleCornerMouseDown.bind(this),{passive:!0}):(e.addEventListener("mousedown",this.handleCornerMouseDown.bind(this),!1),e.addEventListener("mouseover",this.handleCornerMouseOver.bind(this),!1),e.addEventListener("mouseout",this.handleCornerMouseOut.bind(this),!1)),e.addEventListener("click",this.handleCornerClick.bind(this),!1)},M.prototype._buildCornerOnHeaderAxisDisabled=function(e,t,i,s,n,o){let l,r="column"===e?this.m_columnHeaderScrollbarSpacer:this.m_rowHeaderScrollbarSpacer,a=!1;if("column"===e?(this.m_hasVerticalScroller||-1!==this.m_endRowEndHeader)&&(a=!0,null!=this.m_columnHeaderScrollbarSpacer?l=this.m_columnHeaderScrollbarSpacer:(l=document.createElement("div"),l.id=this.createSubId("chSbSpacer"),l.className=this.getMappedStyle("colheaderspacer"))):"row"===e&&(this.m_hasHorizontalScroller||-1!==this.m_endColEndHeader)&&(a=!0,null!=this.m_rowHeaderScrollbarSpacer?l=this.m_rowHeaderScrollbarSpacer:(l=document.createElement("div"),l.id=this.createSubId("rhSbSpacer"),l.className=this.getMappedStyle("rowheaderspacer"))),a){let a,h;if(this.setElementDir(l,i,t),this.setElementDir(l,s,"top"),this.setElementWidth(l,n),this.setElementHeight(l,o),null==r){if(this.m_utils.isTouchDevice()?l.addEventListener("touchstart",this.handleCornerMouseDown.bind(this),{passive:!0}):(l.addEventListener("mousedown",this.handleCornerMouseDown.bind(this),!1),l.addEventListener("mouseover",this.handleCornerMouseOver.bind(this),!1),l.addEventListener("mouseout",this.handleCornerMouseOut.bind(this),!1),"disable"!==this.isResizeEnabled()&&(l.addEventListener("mousedown",this.handleHeaderLabelMouseDown.bind(this),!1),l.addEventListener("mousemove",this.handleHeaderLabelMouseMove.bind(this),!1))),this.m_root.appendChild(l),"column"===e?(this.m_columnHeaderScrollbarSpacer=l,a=this.m_headerLabels.rowEnd):(this.m_rowHeaderScrollbarSpacer=l,a=this.m_headerLabels.columnEnd),a.length)for(let e=0;e<a.length;e++)h=a[e],null!=h&&l.appendChild(h);this.m_subtreeAttachedCallback(l)}}else"column"===e?(null!=this.m_columnHeaderScrollbarSpacer&&this.m_root.removeChild(this.m_columnHeaderScrollbarSpacer),this.m_columnHeaderScrollbarSpacer=null,this.m_headerLabels.rowEnd=[]):(null!=this.m_rowHeaderScrollbarSpacer&&this.m_root.removeChild(this.m_rowHeaderScrollbarSpacer),this.m_rowHeaderScrollbarSpacer=null,this.m_headerLabels.columnEnd=[])},M.prototype._updateScrollPosition=function(e){this._scrollToScrollPositionObject(e)},M.prototype._setScrollPosition=function(){this.m_setOptionCallback("scrollPosition",this._createScrollPositionObject(this.m_currentScrollLeft,this.m_currentScrollTop),{_context:{writeback:!0,internalSet:!0}})},M.prototype._clearScrollPositionKeys=function(){var e=this.m_options.getScrollPosition();e.rowKey=void 0,e.columnKey=void 0,this.m_setOptionCallback("scrollPosition",e,{_context:{internalSet:!0}})},M.prototype._createScrollPositionObject=function(e,t){var i={x:e,y:t},s=this.getResources().isRTLMode()?"right":"left",n=this._getCellAtPixel(e,t);if(null!=n)i.rowIndex=this._getIndex(n,"row"),i.columnIndex=this._getIndex(n,"column"),i.rowKey=this._getKey(n,"row"),i.columnKey=this._getKey(n,"column"),i.offsetX=e-this.getElementDir(n,s),i.offsetY=t-this.getElementDir(n,"top");else{var o=this._getHeaderAtPixel(t,"row");null!=o&&(i.rowIndex=this._getIndex(o),i.rowKey=this._getKey(o),i.offsetY=t-this.getElementDir(o,"top"));var l=this._getHeaderAtPixel(e,"column");null!=l&&(i.columnIndex=this._getIndex(l),i.columnKey=this._getKey(l),i.offsetX=e-this.getElementDir(l,s))}return i},M.prototype._getCellAtPixel=function(e,t){for(var i=this.m_databody.firstChild.childNodes,s=this.getResources().isRTLMode()?"right":"left",n=0;n<i.length;n++){var o=i[n],l=this.getElementDir(o,s),r=l+this.getElementWidth(o);if(l<=e&&e<r){var a=this.getElementDir(o,"top"),h=a+this.getElementHeight(o);if(a<=t&&t<h)return o}}return null},M.prototype._getAxisInnerMostHeaders=function(e){var t,i,s=this.getMappedStyle("headercell");switch(e){case"row":t=this.m_rowHeader,i=this.m_rowHeaderLevelCount;break;case"column":t=this.m_colHeader,i=this.m_columnHeaderLevelCount;break;case"rowEnd":t=this.m_rowEndHeader,i=this.m_rowEndHeaderLevelCount;break;case"columnEnd":t=this.m_colEndHeader,i=this.m_columnEndHeaderLevelCount}var n=[];if(t)for(var o=t.getElementsByClassName(s),l=0;l<o.length;l++){var r=o[l],a=r[this.getResources().getMappedAttribute("context")];a.level+a.depth===i&&n.push(r)}return n},M.prototype._getHeaderAtPixel=function(e,t){var i,s,n,o,l=this;function r(t){for(var i=0;i<t.length;i++){var s=t[i],r=l.getElementDir(s,n),a=r+l.getElementDir(s,o);if(r<=e&&e<a)return s}}i=this._getAxisInnerMostHeaders(t),s=this._getAxisInnerMostHeaders(t+"End"),"row"===t?(n="top",o="height"):"column"===t&&(n=this.getResources().isRTLMode()?"right":"left",o="width");var a=r(i);return null==a&&(a=r(s)),a},M.prototype._checkScrollPosition=function(){null!=this.m_desiredScrollPositionObject?this._scrollToScrollPositionObject(this.m_desiredScrollPositionObject):this._setScrollPosition()},M.prototype._areKeysLocallyAvailable=function(e,t){var i=!0;return e&&null==this._getCellOrHeaderByKey(e,"row")&&(i=!1),t&&null==this._getCellOrHeaderByKey(t,"column")&&(i=!1),i},M.prototype._scrollToScrollPositionObject=function(e){var t=e.x,i=e.y,s=e.rowIndex,n=e.columnIndex,o=e.rowKey,l=e.columnKey,r=e.offsetX?e.offsetX:0,a=e.offsetY?e.offsetY:0,h=this.getResources().isRTLMode()?"right":"left",d=this.m_options.getScrollToKey();if("never"!==d||!o&&!l){if("always"!==d)if(this.getDataSource()instanceof E&&!this._areKeysLocallyAvailable(o,l)){var c=this.m_options.getProperty("data").getCapability("fetchFirst");if(null==c||"immediate"!==c.iterationSpeed)return}var m=this;this._getIndexFromKeyPromise(o,l).then(function(d){var c=Math.floor(m._getPositionEstimate("column",h,l,d.columnIndexFromKey,n,t,r,m.m_currentScrollLeft,m._getMaxRightPixel(),m.m_avgColWidth)),u=Math.floor(m._getPositionEstimate("row","top",o,d.rowIndexFromKey,s,i,a,m.m_currentScrollTop,m._getMaxBottomPixel(),m.m_avgRowHeight));c!==m.m_currentScrollLeft&&(m.m_currentScrollLeft!==m.m_scrollWidth||c<m.m_currentScrollLeft)||u!==m.m_currentScrollTop&&(m.m_currentScrollTop!==m.m_scrollHeight||u<m.m_currentScrollTop)?(null==m.m_desiredScrollPositionObject&&m._signalTaskStart("begin scrolling to new desired location"),m.m_desiredScrollPositionObject=e,m._setScrollPositionTimeout(),m._initiateScroll(c,u)):(null!=m.m_desiredScrollPositionObject&&m._signalTaskEnd("reached desired location"),m.m_desiredScrollPositionObject=null,m._setScrollPosition())})}},M.prototype._setScrollPositionTimeout=function(){this.m_utils.isTouchDeviceNotIOS()||(this.pendingScrollTimeout=setTimeout(function(){null!=this.m_desiredScrollPositionObject&&this._signalTaskEnd("reached desired location"),this.m_desiredScrollPositionObject=null,this._setScrollPosition()}.bind(this),300))},M.prototype._clearScrollPositionTimeout=function(){null!=this.pendingScrollTimeout&&(clearTimeout(this.pendingScrollTimeout),this.pendingScrollTimeout=null)},M.prototype._getPositionEstimate=function(e,t,i,s,n,o,l,r,a,h){var d,c,m=this._isHighWatermarkScrolling();return null!=i&&-1!==s&&(null!=(c=this._getCellOrHeaderByKey(i,e))?d=this.getElementDir(c,t)+l:m?d=a:null!=s&&(d=h*s+l),null!=d)?d:d=null!=n?null!=(c=this._getCellOrHeaderByIndex(n,e))?this.getElementDir(c,t)+l:m?a:h*n:null!=o?o:r},M.prototype.isDatabodyHorizontalScrollbarRequired=function(e){var t=this.m_databody.firstChild;return this.getElementWidth(t)>e},M.prototype.isDatabodyVerticalScrollbarRequired=function(e){var t=this.m_databody.firstChild;return this.getElementHeight(t)>e},M.prototype.buildStatus=function(){var e=document.createElement("div");e.className=this.getMappedStyle("loadingicon");var t=document.createElement("div");return t.id=this.createSubId("status"),t.className=this.getMappedStyle("status"),t.setAttribute("role","status"),t.appendChild(e),t},M.prototype.buildAccInfo=function(){var e=document.createElement("div");return e.id=this.createSubId("info"),e.className=this.getMappedStyle("info"),e.setAttribute("role","status"),e},M.prototype.buildAccSummary=function(){var e=document.createElement("div");return e.id=this.createSubId("summary"),e.className=this.getMappedStyle("info"),e},M.prototype.buildStateInfo=function(){var e=document.createElement("div");return e.id=this.createSubId("state"),e.className=this.getMappedStyle("info"),e},M.prototype.buildContextInfo=function(){var e=document.createElement("div");return e.id=this.createSubId("context"),e.className=this.getMappedStyle("info"),e},M.prototype.buildPlaceHolder=function(){var e=document.createElement("div");return e.id=this.createSubId("placeHolder"),e.className=this.getMappedStyle("info"),e},M.prototype.populateAccInfo=function(){var e=this.getResources().getTranslatedText("accessibleSummaryExact",{rownum:this.m_endRow+1,colnum:this.m_endCol+1});this.getDataSource().getExpandedKeys&&(e=e+". "+this.getResources().getTranslatedText("accessibleSummaryExpanded",{num:this.getDataSource().getExpandedKeys().length}));e+=". ",this.m_accSummary.textContent=e},M.prototype.SetAccessibleContext=function(e){if(null!=e&&(null!=e.context&&(this.m_accessibleContext=e.context),null!=e.state&&(this.m_stateInfo.textContent=e.state),null!=e.ancestors&&this._isDatabodyCellActive())){var t="",i=e.ancestors,s=this.m_active.indexes.column;if(null!=s&&s>=0)for(var n=0;n<i.length;n++){n>0&&(t=t.concat(", "));var o=i[n],l=this._getAxisCellsByKey(o.key,"row");if(null!=l){var r=l[0].textContent;r=null!=r?r.replace(/\n|<br\s*\/?>/gi,"").trim():"",t=t.concat(o.label).concat(" ").concat(r)}}this.m_accessibleContext=t.concat(", ").concat(this.m_accessibleContext)}},M.prototype._updateStateInfo=function(e){for(var t=". ",i=0;i<e.length;i++){var s=this.getResources().getTranslatedText(e[i].key,e[i].args);null!=s&&(t=2===t.length?t+s:t+", "+s)}t=2===t.length?t:t+". ",this.m_stateInfo.textContent=t},M.prototype._updateContextInfo=function(e,t){var i,s;e.indexes&&(i=e.indexes.row,s=e.indexes.column);var n=e.level,o=e.rowHeader,l=e.rowEndHeader,r=e.columnHeader,a=e.columnEndHeader,h=e.rowHeaderLabel,d=e.rowEndHeaderLabel,c=e.columnHeaderLabel,m=e.columnEndHeaderLabel,u="";null!=this.m_accessibleContext||isNaN(i)||"row"===t||(u=this._updateAccessibleInfoString(u,"accessibleRowContext",{index:i+1})),isNaN(s)||"column"===t||(u=this._updateAccessibleInfoString(u,"accessibleColumnContext",{index:s+1})),isNaN(o)||(u=this._updateAccessibleInfoString(u,"accessibleRowHeaderContext",{index:o+1})),isNaN(r)||(u=this._updateAccessibleInfoString(u,"accessibleColumnHeaderContext",{index:r+1})),isNaN(l)||(u=this._updateAccessibleInfoString(u,"accessibleRowEndHeaderContext",{index:l+1})),isNaN(a)||(u=this._updateAccessibleInfoString(u,"accessibleColumnEndHeaderContext",{index:a+1})),isNaN(h)||(u=this._updateAccessibleInfoString(u,"accessibleRowHeaderLabelContext",{level:h+1})),isNaN(c)||(u=this._updateAccessibleInfoString(u,"accessibleColumnHeaderLabelContext",{level:c+1})),isNaN(d)||(u=this._updateAccessibleInfoString(u,"accessibleRowEndHeaderLabelContext",{level:d+1})),isNaN(m)||(u=this._updateAccessibleInfoString(u,"accessibleColumnEndHeaderLabelContext",{level:m+1})),isNaN(n)||(u=this._updateAccessibleInfoString(u,"accessibleLevelContext",{level:n+1})),u=0===u.length?u:u+". ",null!=this.m_accessibleContext&&(u+=this.m_accessibleContext,this.m_accessibleContext=null),this.m_contextInfo.textContent=u},M.prototype._updateAccessibleInfoString=function(e,t,i){var s=this.getResources().getTranslatedText(t,i);return null!=s?0===e.length?s:e+", "+s:e},M.prototype._isCountUnknown=function(e){var t=this.getDataSource();if("row"===e||"rowEnd"===e){var i=t.getCountPrecision("row"),s=t.getCount("row");return this.m_isEstimateRowCount="estimate"===i||s<0,this.m_isEstimateRowCount}if("column"===e||"columnEnd"===e){var n=t.getCountPrecision("column"),o=t.getCount("column");return this.m_isEstimateColumnCount="estimate"===n||o<0,this.m_isEstimateColumnCount}return!1},M.prototype._isCountUnknownOrHighwatermark=function(e){return this._isCountUnknown(e)||this._isHighWatermarkScrolling()},M.prototype._hideHeader=function(e){e.style.display="none"},M.prototype._showHeader=function(e){e.style.display=""},M.prototype.buildHeaders=function(e,t,i){var s=this.getMappedStyle("scroller")+(this.m_utils.isTouchDeviceNotIOS()?" "+this.getMappedStyle("scroller-mobile"):""),n=document.createElement("div");n.id=this.createSubId(e+"Header"),n.className=t+" "+this.getMappedStyle("header");var o=document.createElement("div");o.className=s,n.appendChild(o);var l=document.createElement("div");l.id=this.createSubId(e+"EndHeader"),l.className=i+" "+this.getMappedStyle("endheader");var r=document.createElement("div");if(r.className=s,l.appendChild(r),"column"===e?(this.m_colHeader=n,this.m_colEndHeader=l):"row"===e&&(this.m_rowHeader=n,this.m_rowEndHeader=l),this._isHighWatermarkScrolling()){this.fetchHeaders(e,0,n,l,null,null)}else{var a=this,h=this.m_options.getScrollPosition();this._getIndexesFromScrollPosition(h).then(function(t){var i=t[e];"column"===e?(a.m_startColHeader=i,a.m_startColEndHeader=i):"row"===e&&(a.m_startRowHeader=i,a.m_startRowEndHeader=i),a.m_fetching[e]=!1,a.fetchHeaders(e,i,n,l,null,null)}),this.m_fetching[e]=!0}return{root:n,endRoot:l}},M.prototype.fetchHeaders=function(e,t,i,s,n,o){if(!this.m_fetching[e]){null==n&&(n=this.getFetchCount(e,t));var l,r={axis:e,start:t,count:n,header:i,endHeader:s};this.m_fetching[e]=r,l=null!=o&&null!=o.success?o.success:this.handleHeadersFetchSuccess,this.showStatusText(),this._signalTaskStart(),this.getDataSource().fetchHeaders(r,{success:l,error:this.handleHeadersFetchError},{success:this,error:this})}},M.prototype.isHeaderFetchResponseValid=function(e){var t=e.axis;return null!=this.m_fetching&&e===this.m_fetching[t]},M.prototype.isHeaderFetchResponseInViewport=function(e){if(!this.m_initialized)return!0;var t=e.axis,i=e.start;return("row"===t?this._getLongScrollStart(this.m_currentScrollTop,this.m_prevScrollTop,t):this._getLongScrollStart(this.m_currentScrollLeft,this.m_prevScrollLeft,t)).start===i},M.prototype.handleHeadersFetchSuccess=function(e,t,i,s){var n=this.m_options.getScrollPolicyOptions(),o=n?n.maxRowCount:null,l=n?n.maxColumnCount:null;if(this.isHeaderFetchResponseValid(t)){var r=t.axis;if(this.isLongScroll()&&!this.isHeaderFetchResponseInViewport(t))return this.m_fetching[r]=!1,this.m_headerInvalid=!0,void this._signalTaskEnd();this.m_fetching[r]=!1;var a=t.header,h=t.endHeader,d=t.start,c=this.getDataSource().getCount(r);"column"===r?(null!=e&&(this.buildColumnHeaders(a,e,d,c,!1,!1),(e.getCount()<t.count||l&&l>0&&l===d+e.getCount())&&(this.m_stopColumnHeaderFetch=!0)),this.m_endColHeader<0?(this._hideHeader(a),this.m_stopColumnHeaderFetch=!0,this.m_startColHeader=0):(this.m_hasColHeader=!0,this._buildHeaderLabels(r,e)),null!=i&&(this.buildColumnEndHeaders(h,i,d,c,!1,!1),(i.getCount()<t.count||l&&l>0&&l===d+i.getCount())&&(this.m_stopColumnEndHeaderFetch=!0)),this.m_endColEndHeader<0?(this._hideHeader(h),this.m_stopColumnEndHeaderFetch=!0,this.m_startColEndHeader=0):(this.m_hasColEndHeader=!0,this._buildHeaderLabels("columnEnd",i))):"row"===r&&(null!=e&&(this.buildRowHeaders(a,e,d,c,s,!1),(e.getCount()<t.count||o&&o>0&&o===d+e.getCount())&&(this.m_stopRowHeaderFetch=!0)),this.m_endRowHeader<0?(this._hideHeader(a),this.m_stopRowHeaderFetch=!0,this.m_startRowHeader=0):(this.m_hasRowHeader=!0,this._buildHeaderLabels(r,e)),null!=i&&(this.buildRowEndHeaders(h,i,d,c,s,!1),(i.getCount()<t.count||o&&o>0&&o===d+i.getCount())&&(this.m_stopRowEndHeaderFetch=!0)),this.m_endRowEndHeader<0?(this._hideHeader(h),this.m_stopRowEndHeaderFetch=!0,this.m_startRowEndHeader=0):(this.m_hasRowEndHeader=!0,this._buildHeaderLabels("rowEnd",i))),this.isFetchComplete()&&(this.hideStatusText(),this._shouldInitialize()&&!s&&this._handleInitialization(!0)),this.m_initialized&&this._sizeDatabodyScroller(),this._signalTaskEnd()}else this._signalTaskEnd()},M.prototype.handleHeadersFetchError=function(e,t){var i=t.axis;this.m_fetching[i]=!1,this._signalTaskEnd()},M.prototype.createHeaderContext=function(e,t,i,s,n,o,l,r){var a={axis:e,index:t,data:i};a.component=this,a.datasource=this.m_options.getProperty("data"),a.level=o,a.depth=r,a.extent=l,null!=n&&(a.parentElement=n);for(var h=Object.keys(s),d=0;d<h.length;d++){var c=h[d];a[c]=s[c]}return null!=this.m_createContextCallback&&this.m_createContextCallback.call(this,a),this.m_fixContextCallback.call(this,a)},M.prototype._createLabelContext=function(e,t,i,s){var n={axis:e,level:t,data:i};return n.component=this,n.datasource=this.m_options.getProperty("data"),null!=s&&(n.parentElement=s),null!=this.m_createContextCallback&&this.m_createContextCallback.call(this,n),this.m_fixContextCallback.call(this,n)},M.prototype._buildHeaderLabels=function(e,t){if(0===this.m_headerLabels[e].length&&t&&t.getLabel){var i,s=t.getLevelCount();"rowEnd"===e?i=this.getResources().isRTLMode()?"left":"right":"row"===e?i=this.getResources().isRTLMode()?"right":"left":"column"===e?i="top":"columnEnd"===e&&(i="bottom");var n=0;if(s>0)for(var o=0;o<s;o++){var l,r=document.createElement("div"),a=t.getLabel(o);if(l="row"===e||"rowEnd"===e?"row"===e?this.m_rowHeaderLevelWidths[o]:this.m_rowEndHeaderLevelWidths[o]:"column"===e?this.m_columnHeaderLevelHeights[o]:this.m_columnEndHeaderLevelHeights[o],null!=a){var h=this._createLabelContext(e,o,a,r);r.setAttribute(this.getResources().getMappedAttribute("container"),this.getResources().widgetName),r.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),this._createUniqueId(r),r[this.getResources().getMappedAttribute("context")]=h;var d=this.m_options.getInlineStyle(e,h,!0);null!=d&&c.applyMergedInlineStyles(r,d,""),r.className=this.getMappedStyle("headerlabel")+" "+this.getMappedStyle(e.toLowerCase()+"headerlabel");var m=this.m_options.getStyleClass(e,h,!0);null!=m&&(r.className+=" "+m),"row"===e||"rowEnd"===e?("rowEnd"===e&&(r.style.height="100%"),this.setElementWidth(r,l),this.setElementDir(r,n,i),this.setElementDir(r,0,"bottom")):("columnEnd"===e&&(r.style.width="100%"),this.setElementHeight(r,l),this.setElementDir(r,n,i),this.setElementDir(r,0,this.getResources().isRTLMode()?"left":"right")),"enable"!==this.m_options.isResizable(e,"width")&&"enable"!==this.m_options.isResizable(e,"height")||this._setAttribute(r,"resizable","true");var u=this.getRendererOrTemplate(e,!0);this._renderContent(u,h,r,a,this.buildLabelTemplateContext(h,{})),this.m_headerLabels[e][o]=r}n+=l}}},M.prototype.buildLabelTemplateContext=function(e,t){return{item:{data:e.data,metadata:t.metadata},datasource:e.datasource}},M.prototype.buildHeaderTemplateContext=function(e,t){return{item:{data:e.data,depth:e.depth,extent:e.extent,index:e.index,level:e.level,metadata:t.metadata,axis:e.axis},datasource:e.datasource}},M.prototype.buildCellTemplateContext=function(e,t){return{item:{columnExtent:e.extents.column,columnIndex:e.indexes.column,data:e.data,metadata:t.metadata,rowExtent:e.extents.row,rowIndex:e.indexes.row},datasource:e.datasource,mode:e.mode}},M.prototype.getRendererOrTemplate=function(e,t){var i,s=this.m_options.getRenderer(e,t);return s||(i="cell"===e?"cellTemplate":t?e+"HeaderLabelTemplate":e+"HeaderTemplate",this._getItemTemplateBySlotName(i)||null)},M.prototype.buildColumnHeaders=function(e,t,i,s,n,o){if(null==this.m_columnHeaderLevelCount&&(this.m_columnHeaderLevelCount=t.getLevelCount()),0!==this.m_columnHeaderLevelCount){var l=t.getCount(),r=i>this.m_endColHeader;!1;var a=r?this.m_endColHeaderPixel:this.m_startColHeaderPixel,h=this.m_endColHeader,d=this.m_columnHeaderLevelCount,c=this.getMappedStyle("colheader")+" "+this.getMappedStyle("header"),m=this.getMappedStyle("headercell")+" "+this.getMappedStyle("colheadercell");!1;var u=this.buildAxisHeaders(e,t,"column",i,l,r,!1,null,a,h,d,c,m,!1),_=u.totalHeaderDimension,p=u.totalLevelDimension;if(0===_||0!==this.m_avgColWidth&&null!=this.m_avgColWidth||(this.m_avgColWidth=_/l),this.m_colHeaderHeight||(this.m_colHeaderHeight=p,this.setElementHeight(e,this.m_colHeaderHeight)),r?(this.m_endColHeader=i+l-1,this.m_endColHeaderPixel+=_):(this.m_startColHeader-=l,this.m_startColHeaderPixel-=_),-1===s&&(s=this.m_endColHeader),!this._isCountUnknown("column")&&this._isHighWatermarkScrolling()&&this.m_endColHeader+1>=s?this.m_stopColumnHeaderFetch=!0:this.m_stopColumnHeaderFetch=u.stopFetch,0===this.m_startColHeader&&0!==this.m_startColHeaderPixel&&(this._shiftHeadersAlongAxisInContainer(e.firstChild,0,-1*this.m_startColHeaderPixel,this.getResources().isRTLMode()?"right":"left",this.getMappedStyle("colheadercell")),this.m_endColHeaderPixel-=this.m_startColHeaderPixel,this.m_startColHeaderPixel=0),!this.m_initialized&&this.m_startColHeader>0){var g=Math.round(this.m_avgColWidth*this.m_startColHeader);this._shiftHeadersAlongAxisInContainer(e.firstChild,this.m_startColHeader,g-this.m_startColHeaderPixel,this.getResources().isRTLMode()?"right":"left",this.getMappedStyle("colheadercell")),this.m_endColHeaderPixel=g+_,this.m_startColHeaderPixel=g}}},M.prototype.buildColumnEndHeaders=function(e,t,i,s,n,o){if(null==this.m_columnEndHeaderLevelCount&&(this.m_columnEndHeaderLevelCount=t.getLevelCount()),0!==this.m_columnEndHeaderLevelCount){var l=t.getCount(),r=i>this.m_endColEndHeader;!1;var a=r?this.m_endColEndHeaderPixel:this.m_startColEndHeaderPixel,h=this.m_endColEndHeader,d=this.m_columnEndHeaderLevelCount,c=this.getMappedStyle("colendheader")+" "+this.getMappedStyle("endheader"),m=this.getMappedStyle("endheadercell")+" "+this.getMappedStyle("colendheadercell");!1;var u=this.buildAxisHeaders(e,t,"columnEnd",i,l,r,!1,null,a,h,d,c,m,!1),_=u.totalHeaderDimension,p=u.totalLevelDimension;if(0===_||0!==this.m_avgColWidth&&null!=this.m_avgColWidth||(this.m_avgColWidth=_/l),this.m_colEndHeaderHeight||(this.m_colEndHeaderHeight=p,this.setElementHeight(e,this.m_colEndHeaderHeight)),r?(this.m_endColEndHeader=i+(l-1),this.m_endColEndHeaderPixel+=_):(this.m_startColEndHeader-=l,this.m_startColEndHeaderPixel-=_),-1===s&&(s=this.m_endColEndHeader),!this._isCountUnknown("column")&&this._isHighWatermarkScrolling()&&this.m_endColEndHeader+1>=s?this.m_stopColumnEndHeaderFetch=!0:this.m_stopColumnEndHeaderFetch=u.stopFetch,0===this.m_startColEndHeader&&0!==this.m_startColEndHeaderPixel&&(this._shiftHeadersAlongAxisInContainer(e.firstChild,0,-1*this.m_startColEndHeaderPixel,this.getResources().isRTLMode()?"right":"left",this.getMappedStyle("colendheadercell")),this.m_endColEndHeaderPixel-=this.m_startColEndHeaderPixel,this.m_startColEndHeaderPixel=0),!this.m_initialized&&this.m_startColEndHeader>0){var g=Math.round(this.m_avgColWidth*this.m_startColEndHeader);this._shiftHeadersAlongAxisInContainer(e.firstChild,this.m_startColEndHeader,g-this.m_startColEndHeaderPixel,this.getResources().isRTLMode()?"right":"left",this.getMappedStyle("colendheadercell")),this.m_endColEndHeaderPixel=g+_,this.m_startColEndHeaderPixel=g}}},M.prototype.buildRowHeaders=function(e,t,i,s,n,o){if(null==this.m_rowHeaderLevelCount&&(this.m_rowHeaderLevelCount=t.getLevelCount()),0!==this.m_rowHeaderLevelCount){var l,r=t.getCount(),a=i>this.m_endRowHeader,h=a?this.m_endRowHeaderPixel:this.m_startRowHeaderPixel;n?(l=e.firstChild.childNodes[i-this.m_startRowHeader],h=this.getElementDir(l,"top")):l=null;var d=this.m_endRowHeader,c=this.m_rowHeaderLevelCount,m=this.getMappedStyle("rowheader")+" "+this.getMappedStyle("header"),u=this.getMappedStyle("headercell")+" "+this.getMappedStyle("rowheadercell"),_=this.buildAxisHeaders(e,t,"row",i,r,a,n,l,h,d,c,m,u,o),p=_.totalHeaderDimension,g=_.totalLevelDimension;if(o)return _;if(0===p||0!==this.m_avgRowHeight&&null!=this.m_avgRowHeight||(this.m_avgRowHeight=p/r),this.m_rowHeaderWidth||(this.m_rowHeaderWidth=g,this.setElementWidth(e,this.m_rowHeaderWidth)),a){if(-1!==this.m_endRowHeader&&0!==r){var f=e.firstChild.childNodes[this.m_endRowHeader-this.m_startRowHeader];null!=f&&this.m_utils.removeCSSClassName(f,this.getMappedStyle("borderHorizontalNone"))}this.m_endRowHeader=i+(r-1),this.m_endRowHeaderPixel+=p}else n?(i<this.m_startRowHeader&&(this.m_startRowHeader=i,this.m_startRowHeaderPixel=Math.max(0,this.m_startRowHeaderPixel-p)),this.m_endRowHeader+=r,this.m_endRowHeaderPixel=Math.max(0,this.m_endRowHeaderPixel+p),this.pushRowHeadersDown(l,p)):(this.m_startRowHeader=Math.max(0,this.m_startRowHeader-r),this.m_startRowHeaderPixel-=p);if(-1===s&&(s=this.m_endRowHeader),!this._isCountUnknown("row")&&this._isHighWatermarkScrolling()&&this.m_endRowHeader+1>=s?this.m_stopRowHeaderFetch=!0:this.m_stopRowHeaderFetch=_.stopFetch,0===this.m_startRowHeader&&0!==this.m_startRowHeaderPixel&&(this._shiftHeadersAlongAxisInContainer(e.firstChild,0,-1*this.m_startRowHeaderPixel,"top",this.getMappedStyle("rowheadercell")),this.m_endRowHeaderPixel-=this.m_startRowHeaderPixel,this.m_startRowHeaderPixel=0),!this.m_initialized&&this.m_startRowHeader>0){var C=Math.round(this.m_avgRowHeight*this.m_startRowHeader);this._shiftHeadersAlongAxisInContainer(e.firstChild,this.m_startRowHeader,C-this.m_startRowHeaderPixel,"top",this.getMappedStyle("rowheadercell")),this.m_endRowHeaderPixel=C+p,this.m_startRowHeaderPixel=C}}},M.prototype.buildRowEndHeaders=function(e,t,i,s,n,o){if(null==this.m_rowEndHeaderLevelCount&&(this.m_rowEndHeaderLevelCount=t.getLevelCount()),0!==this.m_rowEndHeaderLevelCount){var l,r=t.getCount(),a=i>this.m_endRowEndHeader,h=a?this.m_endRowEndHeaderPixel:this.m_startRowEndHeaderPixel;n?(l=e.firstChild.childNodes[i-this.m_startRowEndHeader],h=this.getElementDir(l,"top")):l=null;var d=this.m_endRowEndHeader,c=this.m_rowEndHeaderLevelCount,m=this.getMappedStyle("rowendheader")+" "+this.getMappedStyle("endheader"),u=this.getMappedStyle("endheadercell")+" "+this.getMappedStyle("rowendheadercell"),_=this.buildAxisHeaders(e,t,"rowEnd",i,r,a,n,l,h,d,c,m,u,o);if(o)return _;var p=_.totalHeaderDimension,g=_.totalLevelDimension;if(0===p||0!==this.m_avgRowHeight&&null!=this.m_avgRowHeight||(this.m_avgRowHeight=p/r),this.m_rowEndHeaderWidth||(this.m_rowEndHeaderWidth=g,this.setElementWidth(e,this.m_rowEndHeaderWidth)),a){if(-1!==this.m_endRowEndHeader&&0!==r){var f=e.firstChild.childNodes[this.m_endRowEndHeader-this.m_startRowEndHeader];null!=f&&this.m_utils.removeCSSClassName(f,this.getMappedStyle("borderHorizontalNone"))}this.m_endRowEndHeader=i+(r-1),this.m_endRowEndHeaderPixel+=p}else n?(i<this.m_startRowEndHeader&&(this.m_startRowEndHeader=i,this.m_startRowEndHeaderPixel=Math.max(0,this.m_startRowEndHeaderPixel-p)),this.m_endRowEndHeader+=r,this.m_endRowEndHeaderPixel=Math.max(0,this.m_endRowEndHeaderPixel+p),this.pushRowHeadersDown(l,p)):(this.m_startRowEndHeader=Math.max(0,this.m_startRowEndHeader-r),this.m_startRowEndHeaderPixel-=p);if(-1===s&&(s=this.m_endRowEndHeader),!this._isCountUnknown("row")&&this._isHighWatermarkScrolling()&&this.m_endRowEndHeader+1>=s?this.m_stopRowEndHeaderFetch=!0:this.m_stopRowEndHeaderFetch=_.stopFetch,0===this.m_startRowEndHeader&&0!==this.m_startRowEndHeaderPixel&&(this._shiftHeadersAlongAxisInContainer(e.firstChild,0,-1*this.m_startRowEndHeaderPixel,"top",this.getMappedStyle("rowendheadercell")),this.m_endRowEndHeaderPixel-=this.m_startRowEndHeaderPixel,this.m_startRowEndHeaderPixel=0),!this.m_initialized&&this.m_startRowEndHeader>0){var C=Math.round(this.m_avgRowHeight*this.m_startRowEndHeader);this._shiftHeadersAlongAxisInContainer(e.firstChild,this.m_startRowEndHeader,C-this.m_startRowEndHeaderPixel,"top",this.getMappedStyle("rowendheadercell")),this.m_endRowEndHeaderPixel=C+p,this.m_startRowEndHeaderPixel=C}}},M.prototype.buildAxisHeaders=function(e,t,i,s,n,o,l,r,a,h,d,c,m,u){var _,p,g=-1!==i.indexOf("column"),f=g?"height":"width",C=!1,y=0,v=0,E=0,w=0;if(!u){if(0===n&&this._isCountUnknown(i))return{totalHeaderDimension:y,totalLevelDimension:v,stopFetch:C=!0};_=e.firstChild,-1===h&&""===e.className&&(e.className=c,e.style[f]="",_.style[f]="")}for(var S=this.getRendererOrTemplate(i),H=document.createDocumentFragment(),x=0;n-x>0;){o||l?(p=s+x,E=g?a+y:0,w=g?0:a+y):(p=s+(n-1-x),E=g?a-y:0,w=g?0:a-y);var b=this.buildLevelHeaders(H,p,0,E,w,o,l,S,t,i,m,d);x+=b.count,y+=b.totalHeaderDimension,b.totalLevelDimension>v&&(v=b.totalLevelDimension)}return u?H:(o?_.appendChild(H):l?_.insertBefore(H,r):_.insertBefore(H,_.firstChild),e.hasChildNodes()||l||e.appendChild(_),this.m_subtreeAttachedCallback(_),{totalHeaderDimension:y,totalLevelDimension:v,stopFetch:C})},M.prototype._renderContent=function(e,t,i,s,n){if(null!=e&&"function"==typeof e){var o=e.call(this,t);null!=o&&(null===o.parentNode||o.parentNode instanceof DocumentFragment?(i.appendChild(o),this.m_isCustomElementCallback()||this.m_subtreeAttachedCallback(o)):null!=o.parentNode||o.toString&&i.appendChild(document.createTextNode(o.toString()))),this._removeFocusFromChildElements(t,i)}else if(null!=e&&"object"==typeof e&&this.m_engine){for(var l=this.m_engine.execute(this.m_root,e,n,null),r=0;r<l.length;r++)i.appendChild(l[r]);this._removeFocusFromChildElements(t,i)}else null!=s&&"object"==typeof s&&Object.prototype.hasOwnProperty.call(s,"data")&&(s=s.data),null==s&&(s=""),i.appendChild(document.createTextNode(s.toString()))},M.prototype._removeFocusFromChildElements=function(e,t){if("edit"!==e.mode){var i=this;this._signalTaskStart(),this.m_contextCallback(t).getBusyContext().whenReady().then(function(){c.disableAllFocusableElements(t),i._signalTaskEnd()})}},M.prototype.buildLevelHeaders=function(e,t,i,s,n,o,l,r,a,h,d,m){var u,_,p,g,f,C,y,v,E,w,S,H,x,b,R,I=0,M=0,A=0,L=0;"row"===h?(u="row",_=this.m_rowHeader,p="width",g=this.m_rowHeaderLevelWidths,f="height",C="top",y=n,v=this.getResources().isRTLMode()?"right":"left",E=s,w=this.m_startRowHeader,S=this.m_endRowHeader):"rowEnd"===h?(u="row",_=this.m_rowEndHeader,p="width",g=this.m_rowEndHeaderLevelWidths,f="height",C="top",y=n,v=this.getResources().isRTLMode()?"left":"right",E=s,w=this.m_startRowEndHeader,S=this.m_endRowEndHeader):"column"===h?(u="column",_=this.m_colHeader,p="height",g=this.m_columnHeaderLevelHeights,f="width",C=this.getResources().isRTLMode()?"right":"left",y=s,v="top",E=n,w=this.m_startColHeader,S=this.m_endColHeader):(u="column",_=this.m_colEndHeader,p="height",g=this.m_columnEndHeaderLevelHeights,f="width",C=this.getResources().isRTLMode()?"right":"left",y=s,v="bottom",E=n,w=this.m_startColEndHeader,S=this.m_endColEndHeader);var D=a.getExtent(t,i),T=D.extent,F=D.more.before,N=D.more.after,z=a.getDepth(t,i);let O;if(F&&t===S+1){for(H=this._getHeaderContainer(t-1,i,0,null,_,m),this._setAttribute(H,"extent",this._getAttribute(H,"extent",!0)+T),O=(x=H.firstChild)[this.getResources().getMappedAttribute("context")],O.extent+=T,I=this.getElementDir(x,p),b=0;b<T;)y+=(R="column"===h||"columnEnd"===h?this.buildLevelHeaders(H,t+b,i+z,y,E+I,o,l,r,a,h,d,m):this.buildLevelHeaders(H,t+b,i+z,E+I,y,o,l,r,a,h,d,m)).totalHeaderDimension,A+=R.totalHeaderDimension,L+=R.count,b+=R.count;this.setElementDir(x,this.getElementDir(x,f)+A,f)}else if(N&&t===w-1){for(H=this._getHeaderContainer(t+1,i,0,null,_,m),this._setAttribute(H,"extent",this._getAttribute(H,"extent",!0)+T),this._setAttribute(H,"start",this._getAttribute(H,"start",!0)-T),O=(x=H.firstChild)[this.getResources().getMappedAttribute("context")],O.extent+=T,O.index-=T,I=this.getElementDir(x,p),b=0;b<T;)y-=(R="column"===h||"columnEnd"===h?this.buildLevelHeaders(H,t-b,i+z,y,E+I,o,l,r,a,h,d,m):this.buildLevelHeaders(H,t-b,i+z,E+I,y,o,l,r,a,h,d,m)).totalHeaderDimension,A+=R.totalHeaderDimension,L+=R.count,b+=R.count;this.setElementDir(x,this.getElementDir(x,f)+A,f),this.setElementDir(x,y,C)}else{var P=a.getData(t,i),k=a.getMetadata(t,i);x=document.createElement("div"),O=this.createHeaderContext(h,t,P,k,x,i,T,z),x.setAttribute(this.getResources().getMappedAttribute("container"),this.getResources().widgetName),x.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),this._createUniqueId(x),x[this.getResources().getMappedAttribute("context")]=O,x[this.getResources().getMappedAttribute("metadata")]=k,x.extentInfo=D;var B=this.m_options.getInlineStyle(h,O),j=this.m_options.getStyleClass(h,O);null!=B&&c.applyMergedInlineStyles(x,B,""),x.className=d,x.className+=" "+this.getMappedStyle("depth")+z,null!=j&&(x.className+=" "+j),this.setElementDir(x,E,v),this.setElementDir(x,y,C);var W=this._getHeaderDimensions(x,f,p,g,i,u,O.key,z);I=W[p],this.setElementDir(x,I,p);var K=W[f];if(this._setAttribute(x,"depth",z),i!==m-1&&((H=document.createElement("div")).className=this.getMappedStyle("groupingcontainer"),H.appendChild(x),this._setAttribute(H,"start",o||l?t:t-T+1),this._setAttribute(H,"extent",T),this._setAttribute(H,"level",i)),i+z===m)this.setElementDir(x,K,f),A+=K,L+=1,M=I,o||l||(y-=K,this.setElementDir(x,y,C));else{for(b=0;b<T;b++){var U=o||l?t+b:t-b;K=(R="column"===h||"columnEnd"===h?this.buildLevelHeaders(H,U,i+z,y,E+I,o,l,r,a,h,d,m):this.buildLevelHeaders(H,U,i+z,E+I,y,o,l,r,a,h,d,m)).totalHeaderDimension,y=o||l?y+K:y-K,A+=K,L+=R.count,b+=R.count-1}M=I,R&&!isNaN(R.totalLevelDimension)&&(M+=R.totalLevelDimension),o||l||this.setElementDir(x,y,C),this.setElementDir(x,A,f)}if("columnEnd"===h&&this.m_addBorderBottom&&this.m_utils.addCSSClassName(x,this.getMappedStyle("borderHorizontalSmall")),"rowEnd"===h&&this.m_addBorderRight&&this.m_utils.addCSSClassName(x,this.getMappedStyle("borderVerticalSmall")),this._isHeaderResizeEnabled(h,O)&&this._setAttribute(x,"resizable","true"),this.m_isCustomElementCallback()||(null!=H?this.m_root.appendChild(H):this.m_root.appendChild(x)),this._renderContent(r,O,x,P,this.buildHeaderTemplateContext(O,k)),("column"===h||this._isDataGridProvider())&&this._isSortEnabled(h,O)){null!=k.sortDirection&&null==this.m_sortInfo&&(this.m_sortInfo={},this.m_sortInfo.key=k.key,this.m_sortInfo.direction=k.sortDirection,this.m_sortInfo.axis=h);var Y=this._buildSortIcon(O,x,h);x.appendChild(Y),this._setAttribute(x,"sortable","true")}if(this._isRequired(O)){var V=document.createElement("span");this.m_utils.addCSSClassName(V,this.getMappedStyle("iconContainer")),this.m_utils.addCSSClassName(V,this.getMappedStyle("requiredIcon")),V.setAttribute("title",this.getResources().getTranslatedText("tooltipRequired")),x.appendChild(V)}if(this._isParentNode(O)){const e=this._buildDisclosureIcon(O);this._isHierarchicalGroup(O)?this.m_utils.addCSSClassName(x,this.getMappedStyle("hierarchicalGroup")):this.m_utils.addCSSClassName(x,this.getMappedStyle("hierarchicalTree")),x.prepend(e);const t=this._buildSpacer(O);x.prepend(t)}else if(this._isLeafNode(O)){this.m_utils.addCSSClassName(x,this.getMappedStyle("hierarchical"));const e=this._buildSpacer(O);x.prepend(e)}o||l?null!=H?e.appendChild(H):e.appendChild(x):null!=H?e.firstChild?this.m_utils.containsCSSClassName(e.firstChild,this.getMappedStyle("groupingcontainer"))?e.insertBefore(H,e.firstChild):(this.m_utils.containsCSSClassName(e.firstChild,this.getMappedStyle("headercell"))||this.m_utils.containsCSSClassName(e.firstChild,this.getMappedStyle("endheadercell")))&&e.insertBefore(H,e.firstChild.nextSibling):e.appendChild(H):this.m_utils.containsCSSClassName(e,this.getMappedStyle("groupingcontainer"))?e.insertBefore(x,e.firstChild.nextSibling):e.insertBefore(x,e.firstChild)}return"column"===h||"columnEnd"===h?this._isLastColumn(t+(T-1))&&this.m_utils.addCSSClassName(x,this.getMappedStyle("borderVerticalNone")):this._isLastRow(t+(T-1))&&!l&&this.m_utils.addCSSClassName(x,this.getMappedStyle("borderHorizontalNone")),{totalLevelDimension:M,totalHeaderDimension:A,count:L}},M.prototype._getHeaderDimensions=function(e,t,i,s,n,o,l,r){for(var a={},h=0,d=0;d<r;d++){var c=s[n+d];if(null==c){h=null;break}h+=c}null==h?a=this._computeElementWidthAndHeight(e):a[i]=h,1===r&&(s[n]=a[i]);var m=this.m_sizingManager.getSize(o,l);if(null!=m)return a[t]=m,a;if(""!==e.style[t])return null==a[t]&&(a[t]=this.getElementDir(e,t)),this.m_sizingManager.setSize(o,l,a[t]),a;var u=e.className;return null==a[t]&&(a[t]=this.m_styleClassDimensionMap[t][u],null==a[t]&&(a[t]=this.getElementDir(e,t))),this.m_sizingManager.setSize(o,l,a[t]),this.m_styleClassDimensionMap[t][u]=a[t],a},M.prototype._getHeaderLevelDimension=function(e,t,i,s,n){for(var o=0,l=0;l<n;l++){var r=i[e+l];if(null==r){o=null;break}o+=r}return null!=o||(o=this.getElementDir(t,s),1===n&&(i[e]=o)),o},M.prototype._getHeaderContainer=function(e,t,i,s,n,o){var l;if(null==s?(s=n.firstChild.childNodes,l=0):l=1,i===o-1)return s[0].parentNode;for(;l<s.length;l++){var r=this._getAttribute(s[l],"start",!0),a=this._getAttribute(s[l],"extent",!0),h=this._getAttribute(s[l].firstChild,"depth",!0);if(e>=r&&e<r+a)return t<i+h?s[l]:this._getHeaderContainer(e,t,i+h,s[l].childNodes,n,o)}return null},M.prototype._getHeaderByIndex=function(e,t,i,s,n){var o;if(t<0)return null;if(1===s)return i.firstChild.childNodes[o=e-n];var l=this._getHeaderContainer(e,t,0,null,i,s);return null==l?null:t<=this._getAttribute(l,"level",!0)+this._getAttribute(l.firstChild,"depth",!0)-1?l.firstChild:(o=e-this._getAttribute(l,"start",!0)+1,l.childNodes[o])},M.prototype._getHeadersByIndex=function(e,t,i,s){let n=[],o=1;for(let l=i-1;l>=0;l-=o){let r=this._getHeaderByIndex(e,l,t,i,s);r&&(o=this.getHeaderCellDepth(r),n.push(r))}return n},M.prototype._getAttribute=function(e,t,i){var s=e.getAttribute(this.getResources().getMappedAttribute(t));return i?parseInt(s,10):s},M.prototype._setAttribute=function(e,t,i){e.setAttribute(this.getResources().getMappedAttribute(t),i)},M.prototype.buildDatabody=function(){var e=document.createElement("div");e.id=this.createSubId("databody"),e.className=this.getMappedStyle("databody")+" "+this.getMappedStyle("scrollbarForce"),e.tabIndex="-1",this.m_databody=e,e.addEventListener?e.addEventListener("scroll",this.handleScroll.bind(this),!1):e.attachEvent("onscroll",this.handleScroll.bind(this));var t=document.createElement("div");if(t.className=this.getMappedStyle("scroller")+(this.m_utils.isTouchDeviceNotIOS()?" "+this.getMappedStyle("scroller-mobile"):""),e.appendChild(t),this._isHighWatermarkScrolling()){this.fetchCells(e,0,0)}else{var i=this,s=this.m_options.getScrollPosition();this._getIndexesFromScrollPosition(s).then(function(t){var s=t.row,n=t.column;i.m_startRow=s,i.m_startCol=n,i.m_fetching.cells=!1,i.fetchCells(e,s,n)}),this.m_fetching.cells=!0}return e},M.prototype._getIndexFromKeyPromise=function(e,t){var i=this;return new Promise(function(s){null!=e||null!=t?i._indexes({row:e,column:t},function(e){s({rowIndexFromKey:e.row,columnIndexFromKey:e.column})}):s({rowIndexFromKey:null,columnIndexFromKey:null})})},M.prototype._getIndexesFromScrollPosition=function(e){var t=this,i=e.rowKey,s=e.columnKey;return this._getIndexFromKeyPromise(i,s).then(function(i){var s={};return null!=i.rowIndexFromKey&&i.rowIndexFromKey>0?s.row=i.rowIndexFromKey:null!=e.rowIndex?s.row=e.rowIndex:null!=e.y?s.row=Math.round(e.y/t.getDefaultRowHeight()):s.row=0,null!=i.columnIndexFromKey&&i.columnIndexFromKey>0?s.column=i.columnIndexFromKey:null!=e.columnIndex?s.column=e.columnIndex:null!=e.x?s.column=Math.round(e.x/t.getDefaultColumnWidth()):s.column=0,s})},M.prototype.getFetchCount=function(e,t){var i=this.getFetchSize(e);if(this._isHighWatermarkScrolling()){var s="row"===e?"maxRowCount":"maxColumnCount",n=this.m_options.getScrollPolicyOptions();n&&null!=n[s]&&n[s]>0&&(i=Math.max(Math.min(i,n[s]-t),0))}return i},M.prototype.fetchCells=function(e,t,i,s,n,o){var l;if(!this.m_fetching.cells){null==s&&(s=this.getFetchCount("row",t)),null==n&&(n=this.getFetchCount("column",i));var r={axis:"row",start:t,count:s},a={axis:"column",start:i,count:n,databody:e};this.m_fetching.cells={rowRange:r,columnRange:a},l=null!=o&&null!=o.success?o.success:this.handleCellsFetchSuccess,this.showStatusText(),this._signalTaskStart(),this.getDataSource().fetchCells([r,a],{success:l,error:this.handleCellsFetchError},{success:this,error:this})}},M.prototype.isCellFetchResponseValid=function(e){if(null==this.m_fetching)return!1;var t=e[0],i=e[1],s=this.m_fetching.cells;return t===s.rowRange&&i===s.columnRange},M.prototype.isLongScroll=function(){return this.m_isLongScroll},M.prototype.isCellFetchResponseInViewport=function(e,t){if(isNaN(this.m_avgRowHeight)||isNaN(this.m_avgColWidth)||null!=this.m_empty||!this.m_initialized)return!0;var i=t[0].start,s=t[1].start,n=this._getLongScrollStart(this.m_currentScrollTop,this.m_prevScrollTop,"row"),o=this._getLongScrollStart(this.m_currentScrollLeft,this.m_prevScrollLeft,"column");return n.start===i&&o.start===s},M.prototype.handleCellsFetchSuccess=function(e,t,i){var s=this.m_options.getScrollPolicyOptions(),n=s?s.maxRowCount:null,o=s?s.maxColumnCount:null,l=this.getDataSource().getCount("row"),r=this.getDataSource().getCount("column");if(void 0===i){if(i=!1,!this.isCellFetchResponseValid(t))return void this._signalTaskEnd();if(this.isLongScroll()&&(!this.isCellFetchResponseInViewport(e,t)||this.m_headerInvalid))return this.m_fetching.cells=!1,this.m_headerInvalid=!1,this.handleLongScroll(this.m_currentScrollLeft,this.m_currentScrollTop),void this._signalTaskEnd();this.m_isLongScroll=!1}var a=t[0],h=a.start,d=e.getCount("row"),c=d>0&&(h>this.m_endRow||h+d<=this.m_startRow);(0===d&&this._isCountUnknown("row")&&a.count>0||c&&this._isHighWatermarkScrolling()&&!this._isCountUnknown("row")&&this.m_endRow+d+1>=l||d<a.count||this._isHighWatermarkScrolling()&&n&&n>0&&h+d===n)&&(this.m_stopRowFetch=!0);var m=t[1],u=m.start,_=e.getCount("column"),p=_>0&&(u>this.m_endCol||u+_===this.m_startCol);(0===_&&this._isCountUnknown("column")&&m.count>0||p&&this._isHighWatermarkScrolling()&&!this._isCountUnknown("column")&&this.m_endCol+_+1>=r||_<m.count||this._isHighWatermarkScrolling()&&o&&o>0&&u+_===o)&&(this.m_stopColumnFetch=!0);var g=this.m_databody;null==g&&(g=m.databody);var f,C,y,v,E,w,S,H,x,b,R=g.firstChild;if(c||i){if(f=!(i||!(h>=this.m_startRow)))C=this.m_endRowPixel;else if(i){var I=this._getCellByIndex({row:h+d,column:this.m_startCol});C=this.getElementDir(I,"top")}else C=this.m_startRowPixel;y=u>=this.m_startCol?this.m_startColPixel:this.m_endColPixel,v=document.createDocumentFragment(),w=(E=this._addCellsToFragment(v,e,h,C,u,y)).totalColumnWidth,S=E.totalRowHeight,H=E.avgWidth,x=S/d,this._populateDatabody(R,v),f?(-1!==this.m_endRow&&0!==d&&this._highlightCellsAlongAxis(this.m_endRow,"row","index","remove",["borderHorizontalNone"]),this.m_endRow=h+(d-1),this.m_endRowPixel+=S):i?(h<this.m_startRow&&(this.m_startRow=h,this.m_startRowPixel=Math.max(0,this.m_startRowPixel-S)),this.m_endRow+=d,this.m_endRowPixel+=S,this.pushRowsDown(h+d,S)):(this.m_startRow-=d,this.m_startRowPixel-=S)}else p&&(y=(f=u>=this.m_startCol)?this.m_endColPixel:this.m_startColPixel,C=h>=this.m_startRow?this.m_startRowPixel:this.m_endRowPixel,v=document.createDocumentFragment(),E=this._addCellsToFragment(v,e,h,C,u,y),this._populateDatabody(R,v),w=E.totalColumnWidth);if(null==H||0!==this.m_avgColWidth&&null!=this.m_avgColWidth||(this.m_avgColWidth=H),null==x||0!==this.m_avgRowHeight&&null!=this.m_avgRowHeight||(this.m_avgRowHeight=x),p&&(u<this.m_startCol?(this.m_startCol-=_,this.m_startColPixel-=w):(this.m_endCol=u+(_-1),this.m_endColPixel+=w)),this._sizeDatabodyScroller(),this.m_endCol>=0&&this.m_endRow>=0?this.m_hasCells=!0:(this.m_startCol=0,this.m_startRow=0),0===this.m_startCol&&0!==this.m_startColPixel&&(this._shiftCellsAlongAxis("column",-this.m_startColPixel,0,!0),this.m_endColPixel-=this.m_startColPixel,this.m_startColPixel=0),0===this.m_startRow&&0!==this.m_startRowPixel&&(this._shiftCellsAlongAxis("row",-this.m_startRowPixel,0,!0),this.m_endRowPixel-=this.m_startRowPixel,this.m_startRowPixel=0),!this.m_initialized&&this.m_startCol>0&&(b=Math.round(this.m_avgColWidth*this.m_startCol),this._shiftCellsAlongAxis("column",b-this.m_startColPixel,this.m_startCol,!0),this.m_endColPixel=b+w,this.m_startColPixel=b),!this.m_initialized&&this.m_startRow>0&&(b=Math.round(this.m_avgRowHeight*this.m_startRow),this._shiftCellsAlongAxis("row",b-this.m_startRowPixel,this.m_startRow,!0),this.m_endRowPixel=b+S,this.m_startRowPixel=b),this.m_fetching.cells=!1,this.isFetchComplete()){if(this.hideStatusText(),this.m_initialized)this._checkScroll&&this._checkScrollPosition();else{if(this.m_utils.isTouchDeviceNotIOS()&&Object.prototype.hasOwnProperty.call(window,"WebKitCSSMatrix")){const e="translate3d(0, 0, 0)";R.style.transform=e,null!=this.m_rowHeader&&(this.m_rowHeader.firstChild.style.transform=e),null!=this.m_colHeader&&(this.m_colHeader.firstChild.style.transform=e),null!=this.m_rowEndHeader&&(this.m_rowEndHeader.firstChild.style.transform=e),null!=this.m_colEndHeader&&(this.m_colEndHeader.firstChild.style.transform=e)}this._updateScrollPosition(this.m_options.getScrollPosition())}if(null!=this.m_scrollIndexAfterFetch?this.scrollToIndex(this.m_scrollIndexAfterFetch):null!=this.m_scrollHeaderAfterFetch?this.scrollToHeader(this.m_scrollHeaderAfterFetch):this.isActionableMode()||null==this._getActiveElement()||this.m_utils.containsCSSClassName(this._getActiveElement(),this.getMappedStyle("focus"))||(!0!==this.m_shouldFocus&&(this.m_shouldFocus=!1),this._highlightActive(),this._manageMoveCursor()),this._isSelectionEnabled()&&this.applySelection(h,h+d,u,u+_),this.populateAccInfo(),this._shouldInitialize())this._handleInitialization(!0);else if(this.m_initialized){var M;(!0===this.m_resizeRequired||this.m_endRowPixel-S<this.getElementHeight(g))&&this.resizeGrid(),c?f?M="top":i||(M="bottom"):p&&(M=u===this.m_startCol?"right":"left"),this._cleanupViewport(M),this.fillViewport(),this.isFetchComplete()&&this.fireEvent("ready",{})}}this._isSelectionEnabled()&&this.isMultipleSelection()&&this._resetHeaderHighLight(),this._signalTaskEnd()},M.prototype._setZIndexBefore=function(e,t,i,s){if("row"===e)for(var n=this.m_startRow,o=this.m_currentScrollTop,l=this.m_rowHeader,r=this.m_rowHeaderLevelCount,a=this.m_startRowHeader,h=this.m_rowEndHeader,d=this.m_rowEndHeaderLevelCount,c=this.m_startRowEndHeader,m=t;m>=n;m--){var u,_=this._getAxisCellsByIndex(m,e);if(this.getElementDir(_[0],"top")<o)break;for(var p=0;p<_.length;p++)this.changeStyleProperty(_[p],this.getCssSupport("z-index"),10);i&&(u=this._getHeaderByIndex(m,0,l,r,a),this.changeStyleProperty(u,this.getCssSupport("z-index"),10)),s&&(u=this._getHeaderByIndex(m,0,h,d,c),this.changeStyleProperty(u,this.getCssSupport("z-index"),10))}},M.prototype._onTransitionEnd=function(e,t,i){var s;function n(){s&&(clearTimeout(s),s=void 0),e.removeEventListener("transitionend",n),t()}e.addEventListener("transitionend",n),s=setTimeout(n,i+100)},M.prototype._insertRowsWithAnimation=function(e,t,i,s,n,o,l,r){var a,h,d,c,m,u,_,p,g,f,C=this,y=0,v=0,E=0;C._signalTaskStart();var w=s>this.m_endRow,S=this.m_databody.firstChild,H=null!=t,x=null!=i;for(s>0&&(E=s-1,f=this._getAxisCellsByIndex(s-1,"row"),y=(v=this.getElementDir(f[0],"top"))+this.getElementHeight(f[0])),this._setZIndexBefore("row",E,H,x),H&&(d=(h=this.m_rowHeader.firstChild).childNodes[s-this.m_startRow-1]),x&&(m=(c=this.m_rowEndHeader.firstChild).childNodes[s-this.m_startRow-1]),a=0;a<e.childNodes.length;a++){var b=e.childNodes[a];p=v-(_=y+this.getElementDir(b,"top"))-this.getElementHeight(b),this.setElementDir(b,_,"top"),this.addTransformMoveStyle(b,0,0,"linear",0,p,0)}if(H)for(a=0;a<t.childNodes.length;a++)u=t.childNodes[a],p=v-(_=y+this.getElementDir(u,"top"))-this.getElementHeight(u),this.setElementDir(u,_,"top"),this.addTransformMoveStyle(u,0,0,"linear",0,p,0);if(x)for(a=0;a<i.childNodes.length;a++)g=i.childNodes[a],p=v-(_=y+this.getElementDir(g,"top"))-this.getElementHeight(g),this.setElementDir(g,_,"top"),this.addTransformMoveStyle(g,0,0,"linear",0,p,0);for(a=s;a<=this.m_endRow;a++){var R=this._getAxisCellsByIndex(a-this.m_startRow,"row");_=o+this.getElementDir(R[0],"top"),p=-o;for(var I=0;I<R.length;I++)this.setElementDir(R[I],_,"top"),this.addTransformMoveStyle(R[I],0,0,"linear",0,p,0);H&&(u=h.childNodes[a],this.setElementDir(u,_,"top"),this.addTransformMoveStyle(u,0,0,"linear",0,p,0)),x&&(g=c.childNodes[a],this.setElementDir(g,_,"top"),this.addTransformMoveStyle(g,0,0,"linear",0,p,0))}this._modifyAxisCellContextIndex("row",s,this.m_endRow-s+1,n),this.m_endRow+=n,this.m_endRowPixel+=o,H&&(this.m_endRowHeader+=t.childNodes.length,this.m_endRowHeaderPixel+=o),x&&(this.m_endRowEndHeader+=i.childNodes.length,this.m_endRowEndHeaderPixel+=o),S.appendChild(e),w?(H&&h.appendChild(t),x&&c.appendChild(i)):(H&&h.insertBefore(t,d.nextSibling),x&&c.insertBefore(i,m.nextSibling)),this.setElementHeight(S,this.getElementHeight(S)+o),this.resizeGrid(),this.updateRowBanding(),this._refreshDatabodyMap(),this._isSelectionEnabled()&&this.applySelection(s,s+n,l,l+r);var A=this._getCellByIndex(this.createIndex(s+(n-1),this.m_endCol));this.m_animating=!0;var L=C.m_processingEventQueue?1:M.EXPAND_ANIMATION_DURATION;this._onTransitionEnd(A,function(){C._handleAnimationEnd()},L),setTimeout(function(){for(var e=M.EXPAND_ANIMATION_DURATION,t=s;t<=C.m_endRow;t++){for(var i=C._getAxisCellsByIndex(t,"row"),n=0;n<i.length;n++)C.addTransformMoveStyle(i[n],e+"ms",0,"ease-out",0,0,0);H&&C.addTransformMoveStyle(h.childNodes[t],e+"ms",0,"ease-out",0,0,0),x&&C.addTransformMoveStyle(c.childNodes[t],e+"ms",0,"ease-out",0,0,0)}},0)},M.prototype._addCellsToFragment=function(e,t,i,s,n,o){for(var l=this.getResources().isRTLMode()?"right":"left",r=this.getRendererOrTemplate("cell"),a=this.m_options.getColumnBandingInterval(),h=this.m_options.getRowBandingInterval(),d=this.m_options.getHorizontalGridlines(),m=this.m_options.getVerticalGridlines(),u=t.getCount("row"),_=t.getCount("column"),p=i>=this.m_startRow,g=n>=this.m_startCol,f=0,C=s,y=[],v=[],E=0;E<u;E+=1){for(var w,S,H,x,b=o,R=p?i+E:i+(u-1-E),I=Math.floor(R/h)%2==1,M=0;M<_;M+=S.column){var A=0;w=0;var L,D=g?n+M:n+(_-1-M);S={row:(L=t.getExtent?t.getExtent(this.createIndex(R,D)):{row:{extent:1,more:{before:!1,after:!1}},column:{extent:1,more:{before:!1,after:!1}}}).row.extent,column:L.column.extent},g||(D=D-S.column+1);var T=p?R:R-S.row+1,F=this.createIndex(T,D);if(y[E]&&y[E][M])A=y[E][M].width,b=g?b+A:b-A;else{var N=this._patchExistingCells(L,D,T,y);if(N)A=N.width;else{var z=t.getData(this.createIndex(T,D)),O=t.getMetadata(this.createIndex(T,D));H=document.createElement("div"),x=this.createCellContext(F,z,O,H,S),H.setAttribute(this.getResources().getMappedAttribute("container"),this.getResources().widgetName),H.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),this._createUniqueId(H),H[this.getResources().getMappedAttribute("context")]=x,H[this.getResources().getMappedAttribute("metadata")]=O;var P=this.m_options.getInlineStyle("cell",x);null!=P&&c.applyMergedInlineStyles(H,P,""),""!==H.style.height&&(H.style.height=""),""!==H.style.width&&(H.style.width=""),this.m_utils.addCSSClassName(H,this.getMappedStyle("cell")),this.m_utils.addCSSClassName(H,this.getMappedStyle("formcontrol")),(I||Math.floor(D/a)%2==1)&&this.m_utils.addCSSClassName(H,this.getMappedStyle("banded"));var k,B=this.m_options.getStyleClass("cell",x);for(null!=B&&(H.className+=" "+B),k=0;k<S.row;k++){var j=0===k?x.keys.row:this._getKey(this._getHeaderByIndex(T+k,0,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),"row");v[E+k]=this._getCellDimension(H,T+k,j,"row","height"),w+=v[E+k]}for(this.setElementHeight(H,w),k=0;k<S.column;k++){var W=0===k?x.keys.column:this._getKey(this._getHeaderByIndex(D+k,0,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),"column");A+=this._getCellDimension(H,D,W,"column","width")}this.setElementWidth(H,A),("hidden"===m||this._isLastColumn(D+(S.column-1))&&(this.getRowHeaderWidth()+b+A>=this.getWidth()||-1!==this.m_endRowEndHeader))&&this.m_utils.addCSSClassName(H,this.getMappedStyle("borderVerticalNone")),("hidden"===d||this._isLastRow(T+(S.row-1))&&(this.getRowBottom(H,C+w)>=this.getHeight()||-1!==this.m_endColEndHeader))&&this.m_utils.addCSSClassName(H,this.getMappedStyle("borderHorizontalNone")),p?this.setElementDir(H,C,"top"):this.setElementDir(H,C-w,"top"),g?this.setElementDir(H,b,l):this.setElementDir(H,b-A,l),this.m_isCustomElementCallback()&&this.m_root.appendChild(H),this._renderContent(r,x,H,z,this.buildCellTemplateContext(x,O)),e.appendChild(H)}this._updateTempArray(y,{width:A},E,M,S.row,S.column),b=g?b+A:b-A,0===E&&(f+=A)}}w=v[E],C=p?C+w:C-w,w}return{avgWidth:f/_,totalRowHeight:v.reduce(function(e,t){return e+t},0),totalColumnWidth:f}},M.prototype._updateCellDimension=function(e,t,i,s,n,o,l,r){var a,h,d,c,m,u=0,_="width"===l?"height":"width",p=this._getCellByIndex(this.createIndex(s,i)),g=this.getElementDir(p,l),f=p[this.getResources().getMappedAttribute("context")];f.extents[o]+=e,"row"===o?(a=s,h=this.m_rowHeader,d=this.m_rowHeaderLevelCount,c=this.m_startRowHeader):(a=i,h=this.m_colHeader,d=this.m_columnHeaderLevelCount,c=this.m_startColHeader);for(var C=1;C<=e;C++){var y=this._getKey(this._getHeaderByIndex(r?a-C:a+C,0,h,d,c),o);u+=this._getCellDimension(p,r?a-C:a+C,y,o,l);for(var v=0;v<t;v++){var E,w;"row"===o?(E=r?s-C:s+C,w=i+v):(E=s+v,w=r?i-C:i+C),this._addIndexToDatabodyMap(this.createIndex(E,w),p.id)}}r&&(m="width"===l?this.getResources().isRTLMode()?"right":"left":"top",this.setElementDir(p,this.getElementDir(p,m)-u,m),f.indexes[o]-=e);this.setElementDir(p,g+u,l);var S={};return S[l]=u,S[_]=this.getElementDir(p,_),S.cell=p,S},M.prototype._patchExistingCells=function(e,t,i,s){var n=e.column.extent,o=e.row.extent,l=e.row.more.before,r=e.row.more.after,a=e.column.more.before,h=e.column.more.after;return t-1===this.m_endCol&&a?this._updateCellDimension(n,o,this.m_endCol,i,s,"column","width",!1):i-1===this.m_endRow&&l?this._updateCellDimension(o,n,t,this.m_endRow,s,"row","height",!1):t+n===this.m_startCol&&h?this._updateCellDimension(n,o,this.m_startCol,i,s,"column","width",!0):!(i+o!==this.m_startRow||!r)&&this._updateCellDimension(o,n,t,this.m_startRow,s,"row","height",!0)},M.prototype._updateTempArray=function(e,t,i,s,n,o){for(var l=0;l<n;l++){null==e[i+l]&&(e[i+l]=[]);for(var r=0;r<o;r++)e[i+l][s+r]=t}},M.prototype._getCellDimension=function(e,t,i,s,n){var o,l,r;if("row"===s?(o=this.getMappedStyle("rowheadercell")+" "+this.getMappedStyle("headercell"),l=this.m_endRowHeader):"column"===s&&(o=this.getMappedStyle("colheadercell")+" "+this.getMappedStyle("headercell"),l=this.m_endColHeader),-1===l){var a=this.createHeaderContext(s,t,null,{key:i},null,0,0,1),h=this.m_options.getInlineStyle(s,a),d=this.m_options.getStyleClass(s,a);r=document.createElement("div"),null!=h&&c.applyMergedInlineStyles(r,h,""),r.className=o+" "+d}else r=e;return this._getHeaderDimension(r,i,s,n)},M.prototype._modifyAndPushCells=function(e,t,i,s,n,o){let l=this.getResources().isRTLMode()?"right":"left",r="row"===i?"top":l,a=this.getResources().getMappedAttribute("context"),h=o?1:-1,d=function(i,s,n){i.forEach(i=>{let l=s(i),r=0;if(o)l>=e[0]&&(r=e.length);else for(;r<e.length&&!(e[r]>=l);r++);if(r>0){let e=t.length?t.slice(0,r).reduce((e,t)=>e+t):0;e*=h,r*=h,n(i,e,r,l)}})};d(this.m_databody.firstChild.querySelectorAll("."+this.getMappedStyle("cell")),e=>e[a].indexes[i],(e,t,s)=>{if(0!==t){let i=this.getElementDir(e,r)+t;this.setElementDir(e,i,r)}e[a].indexes[i]+=s}),d(s.querySelectorAll("."+this.getMappedStyle("headercell")),e=>e[a].index,(e,t,i)=>{if(0!==t){let i=this.getElementDir(e,r)+t;this.setElementDir(e,i,r)}e[a].index+=i}),d(s.querySelectorAll("."+this.getMappedStyle("groupingcontainer")),e=>this._getAttribute(e,"start",!0),(e,t,i,s)=>{this._setAttribute(e,"start",s+i)}),d(n.querySelectorAll("."+this.getMappedStyle("endheadercell")),e=>e[a].index,(e,t,i)=>{if(0!==t){let i=this.getElementDir(e,r)+t;this.setElementDir(e,i,r)}e[a].index+=i}),d(n.querySelectorAll("."+this.getMappedStyle("groupingcontainer")),e=>this._getAttribute(e,"start",!0),(e,t,i,s)=>{this._setAttribute(e,"start",s+i)})},M.prototype.pushRowsDown=function(e,t){for(;e<=this.m_endRow;){var i=this._getAxisCellsByIndex(e,"row");if(i.length>0)for(var s=0;s<i.length;s++){var n=i[s],o=this.getElementDir(n,"top")+t;n.style.top=o+"px"}e+=1}},M.prototype.pushRowsUp=function(e,t){this.pushRowsDown(e,-t)},M.prototype.pushRowHeadersDown=function(e,t){for(;e;){var i=this.getElementDir(e,"top")+t;e.style.top=i+"px",e=e.nextSibling}},M.prototype.pushRowHeadersUp=function(e,t){this.pushRowHeadersDown(e,-t)},M.prototype.createCellContext=function(e,t,i,s,n){var o={parentElement:s,indexes:e,cell:t};this._isDataGridProvider()?o.data=t:o.data=null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"data")?t.data:t,o.component=this,o.datasource=this.m_options.getProperty("data"),o.mode="navigation",o.extents=n;for(var l=Object.keys(i),r=0;r<l.length;r++){var a=l[r];o[a]=i[a]}return null!=this.m_createContextCallback&&this.m_createContextCallback.call(this,o),this.m_fixContextCallback.call(this,o)},M.prototype._createUniqueId=function(e){return this._uniqueIdCallback(e,!1)},M.prototype.getRowHeaderWidth=function(){return null===this.m_rowHeaderWidth?0:this.m_rowHeaderWidth},M.prototype.getColumnHeaderHeight=function(){return null===this.m_colHeaderHeight?0:this.m_colHeaderHeight},M.prototype.getRowEndHeaderWidth=function(){return-1===this.m_endRowEndHeader?0:this.m_rowEndHeaderWidth},M.prototype.getColumnEndHeaderHeight=function(){return-1===this.m_endColEndHeader?0:this.m_colEndHeaderHeight},M.prototype.getRowBottom=function(e,t){var i=this.getColumnHeaderHeight();if(null!=t)return i+t;var s=this.getElementDir(e,"top"),n=this.calculateRowHeight(e);return isNaN(s)||isNaN(n)?i:i+s+n},M.prototype.handleCellsFetchError=function(e,t){if(this.m_fetching.cells=!1,this.hideStatusText(),null==this.m_databody.firstChild)this._shouldInitialize()&&this._handleInitialization(!0);else{var i=t[0],s=t[1];s.start+(s.count-1)>this.m_endCol&&(this.m_stopColumnFetch=!0,this.m_stopColumnHeaderFetch=!0,this.m_stopColumnEndHeaderFetch=!0),i.start+(i.count-1)>this.m_endRow&&(this.m_stopRowFetch=!0,this.m_stopRowHeaderFetch=!0,this.m_stopRowEndHeaderFetch=!0)}},M.prototype.showStatusText=function(){var e=this;"block"===this.m_status.style.display||this.m_showStatusTimeout||(this.m_showStatusTimeout=setTimeout(function(){var t=e.getResources().getTranslatedText("msgFetchingData");e.m_status.setAttribute("aria-label",t),e.m_status.style.display="block";var i=e.getWidth()/2-e.m_status.offsetWidth/2,s=e.getHeight()/2-e.m_status.offsetHeight/2;e.m_status.style.left=i+"px",e.m_status.style.top=s+"px",e.m_showStatusTimeout=null},this.getShowStatusDelay()))},M.prototype.getShowStatusDelay=function(){var e=m.getCSSTimeUnitAsMillis(this.getResources().getDefaultOption("showIndicatorDelay"));return isNaN(e)?0:e},M.prototype.hideStatusText=function(){this.m_showStatusTimeout&&(clearTimeout(this.m_showStatusTimeout),this.m_showStatusTimeout=null),this.m_status.style.display="none"},M.prototype._isFocusableElementBeforeCell=function(e){if(null==e||e===this.getRootElement()||this.m_utils.containsCSSClassName(e,this.getMappedStyle("cell")))return!1;var t=e.tagName;return!!("INPUT"===t||"TEXTAREA"===t||"SELECT"===t||"BUTTON"===t||"A"===t||this.m_utils.containsCSSClassName(e,this.getMappedStyle("active"))||null!=e.getAttribute("tabIndex")&&parseInt(e.getAttribute("tabIndex"),10)>=0&&this.findCell(e)!==e)||this._isFocusableElementBeforeCell(e.parentNode)},M.prototype._setFocusToFirstFocusableElement=function(e,t){c.enableAllFocusableElements(e);var i=c.getFocusableElementsInNode(e);if(i.length>0){var s=i[0];if(s.focus(),t&&t.preventDefault(),s.setSelectionRange&&s.value)try{s.setSelectionRange(s.value.length,s.value.length)}catch(e){}return!0===this._overwriteFlag&&"function"==typeof i[0].select&&s.select(),!0}return!1},M.prototype.handleScroll=function(e){if(this._clearScrollPositionTimeout(),this.m_handleScrollOverflow||(this.m_hasVerticalScroller||this.m_hasHorizontalScroller||(this.m_databody.style.overflow="hidden"),this.m_handleScrollOverflow=!0),this.m_animating)e.preventDefault();else if(!this.m_utils.isTouchDeviceNotIOS())if(!0!==this.m_silentScroll){var t;e||(e=window.event),t=e.target?e.target:e.srcElement;var i=this.m_utils.getElementScrollLeft(t),s=t.scrollTop;this.scrollTo(i,s)}else this.m_silentScroll=!1},M.prototype._getMaxScrollWidth=function(){return this._isCountUnknownOrHighwatermark("column")&&!this.m_stopColumnFetch?Number.MAX_VALUE:this.m_scrollWidth},M.prototype._getMaxScrollHeight=function(){return this._isCountUnknownOrHighwatermark("row")&&!this.m_stopRowFetch?Number.MAX_VALUE:this.m_scrollHeight},M.prototype.scroll=function(e){if(null!=e.position){var t={};t.x=Math.max(0,Math.min(this.m_scrollWidth,e.position.scrollX)),t.y=Math.max(0,Math.min(this.m_scrollHeight,e.position.scrollY)),this._scrollToScrollPositionObject(t)}},M.prototype.scrollDelta=function(e,t){this._adjustScrollerSize();var i=Math.max(0,Math.min(this._getMaxScrollWidth(),this.m_currentScrollLeft-e)),s=Math.max(0,Math.min(this._getMaxScrollHeight(),this.m_currentScrollTop-t));this._initiateScroll(i,s)},M.prototype.adjustTouchScroll=function(e,t){return this.m_utils.isTouchDevice()&&0!==e&&0!==t&&(Math.abs(e)>Math.abs(t)?(t=0,this.m_extraScrollOverY=null):(e=0,this.m_extraScrollOverX=null)),[e,t]},M.prototype._initiateScroll=function(e,t){this.m_utils.isTouchDeviceNotIOS()?this.scrollTo(e,t):(this.m_utils.setElementScrollLeft(this.m_databody,e),this.m_databody.scrollTop=t)},M.prototype._initiateScrollOnAttached=function(){this._initiateScroll(this.m_currentScrollLeft,this.m_currentScrollTop)},M.prototype._disableTouchScrollAnimation=function(){this.m_databody.firstChild.style.transitionDuration="0ms",this.m_rowHeader.firstChild.style.transitionDuration="0ms",this.m_colHeader.firstChild.style.transitionDuration="0ms",this.m_rowEndHeader.firstChild.style.transitionDuration="0ms",this.m_colEndHeader.firstChild.style.transitionDuration="0ms"},M.prototype._shouldLongScroll=function(e,t){return!this._isHighWatermarkScrolling()&&(e+this.getViewportWidth()<this._getMaxLeftPixel()||t+this.getViewportHeight()<this._getMaxTopPixel()||e>this._getMaxRightPixel()||t>this._getMaxBottomPixel())},M.prototype.scrollTo=function(e,t){if(this.m_prevScrollLeft=this.m_currentScrollLeft,this.m_currentScrollLeft=e,this.m_prevScrollTop=this.m_currentScrollTop,this.m_currentScrollTop=t,this._checkScroll=!1,this.m_utils.isTouchDeviceNotIOS()||(this._shouldLongScroll(e,t)?this.handleLongScroll(e,t):this.fillViewport(),this._checkScroll=!0),this._syncScroller(),this._adjustScrollerSize(),null!=this.m_cellToFocus){var i=this.m_cellToFocus;this.m_cellToFocus=null,this._setActive(i,this._createActiveObject(i),null,!1,!1,!0)}null!=this.m_scrollIndexAfterFetch&&this._isInViewport(this.m_scrollIndexAfterFetch)===M.INSIDE&&(this._isDatabodyCellActive()&&this.m_scrollIndexAfterFetch.row===this.m_active.indexes.row&&this.m_scrollIndexAfterFetch.column===this.m_active.indexes.column&&this._highlightActive(),this.m_scrollIndexAfterFetch=null),null!=this.m_scrollHeaderAfterFetch&&(this._isDatabodyCellActive()||this.m_scrollHeaderAfterFetch.axis!==this.m_active.axis||this.m_scrollHeaderAfterFetch.index!==this.m_active.index||this.m_scrollHeaderAfterFetch.level!==this.m_active.level||this._highlightActive(),this.m_scrollHeaderAfterFetch=null),this.m_utils.isTouchDeviceNotIOS()||this.m_prevScrollTop===t&&this.m_prevScrollLeft===e||this.fireEvent("scroll",{event:null,ui:{scrollX:e,scrollY:t}}),!this.m_utils.isTouchDeviceNotIOS()&&this.isFetchComplete()&&this._checkScrollPosition()},M.prototype._scrollTransitionEnd=function(){this._isSelectionEnabled()&&this._scrollTouchSelectionAffordance(),this.fireEvent("scroll",{event:null,ui:{scrollX:this.m_currentScrollLeft,scrollY:this.m_currentScrollTop}}),this._shouldLongScroll(this.m_currentScrollLeft,this.m_currentScrollTop)?this.handleLongScroll(this.m_currentScrollLeft,this.m_currentScrollTop):this.fillViewport(),this._checkScroll=!0,this.isFetchComplete()&&this._checkScrollPosition()},M.prototype._bounceBack=function(){var e=this.m_currentScrollLeft,t=this.m_currentScrollTop,i=this.m_databody.firstChild,s=this.m_colHeader.firstChild,n=this.m_rowHeader.firstChild,o=this.m_colEndHeader.firstChild,l=this.m_rowEndHeader.firstChild;i.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",n.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",l.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",s.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",o.style.transitionDuration=M.BOUNCE_ANIMATION_DURATION+"ms",null==this.m_scrollTransitionEnd&&(this.m_scrollTransitionEnd=this._scrollTransitionEnd.bind(this)),this._onTransitionEnd(i,this.m_scrollTransitionEnd,M.BOUNCE_ANIMATION_DURATION),this.getResources().isRTLMode()?(i.style.transform="translate3d("+e+"px, "+-t+"px, 0)",s.style.transform="translate3d("+e+"px, 0, 0)",o.style.transform="translate3d("+e+"px, 0, 0)"):(i.style.transform="translate3d("+-e+"px, "+-t+"px, 0)",s.style.transform="translate3d("+-e+"px, 0, 0)",o.style.transform="translate3d("+-e+"px, 0, 0)"),n.style.transform="translate3d(0, "+-t+"px, 0)",l.style.transform="translate3d(0, "+-t+"px, 0)",this.m_extraScrollOverX=null,this.m_extraScrollOverY=null},M.prototype._syncScroller=function(){var e=this.m_currentScrollLeft,t=this.m_currentScrollTop,i=this.m_databody.firstChild,s=this.m_colHeader.firstChild,n=this.m_rowHeader.firstChild,o=this.m_colEndHeader.firstChild,l=this.m_rowEndHeader.firstChild;if(this.m_utils.isTouchDeviceNotIOS()&&Object.prototype.hasOwnProperty.call(window,"WebKitCSSMatrix"))this._checkScroll=!1,null!=this.m_extraScrollOverX||null!=this.m_extraScrollOverY?(null!=this.m_extraScrollOverX?e+=this.m_extraScrollOverX:t+=this.m_extraScrollOverY,null==this.m_bounceBack&&(this.m_bounceBack=this._bounceBack.bind(this)),this._onTransitionEnd(i,this.m_bounceBack,500)):"0ms"===i.style.transitionDuration?this._scrollTransitionEnd():(null==this.m_scrollTransitionEnd&&(this.m_scrollTransitionEnd=this._scrollTransitionEnd.bind(this)),this._onTransitionEnd(i,this.m_scrollTransitionEnd,i.style.transitionDuration)),this.getResources().isRTLMode()?(i.style.transform="translate3d("+e+"px, "+-t+"px, 0)",s.style.transform="translate3d("+e+"px, 0, 0)",o.style.transform="translate3d("+e+"px, 0, 0)"):(i.style.transform="translate3d("+-e+"px, "+-t+"px, 0)",s.style.transform="translate3d("+-e+"px, 0, 0)",o.style.transform="translate3d("+-e+"px, 0, 0)"),n.style.transform="translate3d(0, "+-t+"px, 0)",l.style.transform="translate3d(0, "+-t+"px, 0)";else{var r=this.getResources().isRTLMode()?"right":"left";this.setElementDir(s,-e,r),this.setElementDir(o,-e,r),this.setElementDir(n,-t,"top"),this.setElementDir(l,-t,"top")}},M.prototype._adjustScrollerSize=function(){var e=this.m_databody.firstChild,t=this.getElementHeight(e),i=this.getElementWidth(e);(this._getMaxBottomPixel()>t||this.getDataSource().getCount("row")===this._getMaxBottom()+1&&!this._isCountUnknown("row")&&this._getMaxBottom()>-1)&&this.setElementHeight(e,this._getMaxBottomPixel()),(this._getMaxRightPixel()>i||this.getDataSource().getCount("column")===this._getMaxRight()+1&&!this._isCountUnknown("column")&&this._getMaxRight()>-1)&&this.setElementWidth(e,this._getMaxRightPixel())},M.prototype._getLongScrollStart=function(e,t,i){var s,n,o,l,r,a,h,d;if(t!==e){"row"===i?(s=this.getElementHeight(this.m_databody.firstChild),n=this.m_utils._getMaxDivHeightForScrolling(),o=this._getMaxScrollHeight(),l=this.m_avgRowHeight,r=this.m_hasHorizontalScroller?this.m_utils.getScrollbarSize():0,d=Math.max(Math.max(this.getDataSource().getCount(i),this.m_endRow),0)):"column"===i&&(s=this.getElementWidth(this.m_databody.firstChild),n=this.m_utils._getMaxDivWidthForScrolling(),o=this._getMaxScrollWidth(),l=this.m_avgColWidth,r=this.m_hasVerticalScroller?this.m_utils.getScrollbarSize():0,d=Math.max(Math.max(this.getDataSource().getCount(i),this.m_endCol),0));var c=Math.max(Math.min(e/s,1),0),m=this.getFetchSize(i);a=Math.floor(d*c),h=n<=s?Math.min(e,o):a*l,(1===c||e+m*l>s-r)&&(a=Math.max(d-m,0),h=Math.max(s-m*l,0))}else"row"===i?(a=this.m_startRow,h=this.m_startRowPixel):"column"===i&&(a=this.m_startCol,h=this.m_startColPixel);return{start:a,startPixel:h}},M.prototype.handleLongScroll=function(e,t){if(this.m_isLongScroll=!0,this.isFetchComplete()&&this._isScrollBackToEditable(!0)){var i=this._getLongScrollStart(t,this.m_prevScrollTop,"row"),s=i.start,n=i.startPixel,o=this._getLongScrollStart(e,this.m_prevScrollLeft,"column"),l=o.start,r=o.startPixel;this.m_hasCells&&(this.m_startRow=s,this.m_endRow=-1,this.m_startRowPixel=n,this.m_endRowPixel=n,this.m_startCol=l,this.m_endCol=-1,this.m_startColPixel=r,this.m_endColPixel=r),this.m_hasRowHeader&&(this.m_startRowHeader=s,this.m_endRowHeader=-1,this.m_startRowHeaderPixel=n,this.m_endRowHeaderPixel=n),this.m_hasRowEndHeader&&(this.m_startRowEndHeader=s,this.m_endRowEndHeader=-1,this.m_startRowEndHeaderPixel=n,this.m_endRowEndHeaderPixel=n),this.m_hasColHeader&&(this.m_startColHeader=l,this.m_endColHeader=-1,this.m_startColHeaderPixel=r,this.m_endColHeaderPixel=r),this.m_hasColEndHeader&&(this.m_startColEndHeader=l,this.m_endColEndHeader=-1,this.m_startColEndHeaderPixel=r,this.m_endColEndHeaderPixel=r),this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1,this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1,this.fetchHeaders("row",s,this.m_rowHeader,this.m_rowEndHeader,void 0,{success:function(e,t,i){this.handleRowHeadersFetchSuccessForLongScroll(e,t,i)}}),this.fetchHeaders("column",l,this.m_colHeader,this.m_colEndHeader,void 0,{success:function(e,t,i){this.handleColumnHeadersFetchSuccessForLongScroll(e,t,i)}}),this.fetchCells(this.m_databody,s,l,null,null,{success:function(e,t){this.handleCellsFetchSuccessForLongScroll(e,t,s,l,n,r)}})}},M.prototype.handleRowHeadersFetchSuccessForLongScroll=function(e,t,i){var s=this.m_rowHeader.firstChild,n=this.m_rowEndHeader.firstChild;null!=s&&this.m_utils.empty(s),null!=n&&this.m_utils.empty(n),this.handleHeadersFetchSuccess(e,t,i,!1)},M.prototype.handleColumnHeadersFetchSuccessForLongScroll=function(e,t,i){var s=this.m_colHeader.firstChild,n=this.m_colEndHeader.firstChild;null!=s&&this.m_utils.empty(s),null!=n&&this.m_utils.empty(n),this.handleHeadersFetchSuccess(e,t,i,!1)},M.prototype.handleCellsFetchSuccessForLongScroll=function(e,t,i,s,n,o){var l=this.m_databody.firstChild;null!=l&&this._emptyDatabody(l),this.handleCellsFetchSuccess(e,t)},M.prototype._cleanupViewport=function(e){if(!this._isHighWatermarkScrolling()&&this._isScrollBackToEditable()){null==e&&(this.m_prevScrollLeft>this.m_currentScrollLeft?e="right":this.m_prevScrollLeft<this.m_currentScrollLeft?e="left":this.m_prevScrollTop>this.m_currentScrollTop?e="bottom":this.m_prevScrollTop<this.m_currentScrollTop&&(e="top"));var t=this._getViewportLeft(),i=this._getViewportRight(),s=this._getViewportTop(),n=this._getViewportBottom();"top"===e&&s>this._getMaxTopPixel()?(this.removeRowsFromTop(this.m_databody),this.removeRowHeadersFromTop()):"bottom"===e&&n<this._getMaxBottomPixel()?(this.removeRowsFromBottom(this.m_databody),this.removeRowHeadersFromBottom()):"left"===e&&t>this._getMaxLeftPixel()?(this.removeColumnsFromLeft(this.m_databody),this.removeColumnHeadersFromLeft()):"right"===e&&i<this._getMaxRightPixel()&&(this.removeColumnsFromRight(this.m_databody),this.removeColumnHeadersFromRight())}},M.prototype.fillViewport=function(){var e,t;if(this.isFetchComplete()){var i=this._getViewportLeft(),s=this._getViewportRight()+M.FETCH_PIXEL_THRESHOLD,n=this._getViewportTop(),o=this._getViewportBottom()+M.FETCH_PIXEL_THRESHOLD;if(this._getMaxBottomPixel()<=o&&(!this.m_stopRowHeaderFetch||!this.m_stopRowEndHeaderFetch||!this.m_stopRowFetch))return e=Math.max(0,this._getMaxBottom()+1),t=Math.max(0,this.getFetchCount("row",e)),this.fetchHeaders("row",e,this.m_rowHeader,this.m_rowEndHeader,t),void this.fetchCells(this.m_databody,e,this.m_startCol,t,this.m_endCol-this.m_startCol+1);if((this._getMaxTopPixel()>n||0===this.m_currentScrollTop)&&this._getMaxTop()>0)return e=Math.max(0,this._getMaxTop()-this.getFetchSize("row")),t=Math.max(0,this._getMaxTop()-e),this.fetchHeaders("row",e,this.m_rowHeader,this.m_rowEndHeader,t),void this.fetchCells(this.m_databody,e,this.m_startCol,t,this.m_endCol-this.m_startCol+1);if(this._getMaxRightPixel()<=s&&(!this.m_stopColumnHeaderFetch||!this.m_stopColumnEndHeaderFetch||!this.m_stopColumnFetch))return e=Math.max(0,this._getMaxRight()+1),t=Math.max(0,this.getFetchCount("column",e)),this.fetchHeaders("column",e,this.m_colHeader,this.m_colEndHeader,t),void this.fetchCells(this.m_databody,this.m_startRow,e,this.m_endRow-this.m_startRow+1,t);(this._getMaxLeftPixel()>i||0===this.m_currentScrollLeft)&&this._getMaxLeft()>0&&(e=Math.max(0,this._getMaxLeft()-this.getFetchSize("column")),t=Math.max(0,this._getMaxLeft()-e),this.fetchHeaders("column",e,this.m_colHeader,this.m_colEndHeader,t),this.fetchCells(this.m_databody,this.m_startRow,e,this.m_endRow-this.m_startRow+1,t))}},M.prototype._getMaxRight=function(){return Math.max(Math.max(this.m_endCol,this.m_endColHeader),this.m_endColEndHeader)},M.prototype._getMaxLeft=function(){return Math.max(Math.max(this.m_startCol,this.m_startColHeader),this.m_startColEndHeader)},M.prototype._getMaxRightPixel=function(){return Math.max(Math.max(this.m_endColPixel,this.m_endColHeaderPixel),this.m_endColEndHeaderPixel)},M.prototype._getMaxLeftPixel=function(){return Math.max(Math.max(this.m_startColPixel,this.m_startColHeaderPixel),this.m_startColEndHeaderPixel)},M.prototype._getMaxBottom=function(){return Math.max(Math.max(this.m_endRow,this.m_endRowHeader),this.m_endRowEndHeader)},M.prototype._getMaxTop=function(){return Math.max(Math.max(this.m_startRow,this.m_startRowHeader),this.m_startRowEndHeader)},M.prototype._getMaxBottomPixel=function(){return Math.max(Math.max(this.m_endRowPixel,this.m_endRowHeaderPixel),this.m_endRowEndHeaderPixel)},M.prototype._getMaxTopPixel=function(){return Math.max(Math.max(this.m_startRowPixel,this.m_startRowHeaderPixel),this.m_startRowEndHeaderPixel)},M.prototype._isScrollBackToEditable=function(e){var t=this._getCurrentMode(),i=this._getActiveElement();return"edit"!==t||!e&&!this._isCellGoingToBeRemoved(i)||this._handleExitEdit(null,i)},M.prototype._isCellGoingToBeRemoved=function(e){if(!this._isHighWatermarkScrolling()){if(this.m_endRow-this.m_startRow>this.MAX_ROW_THRESHOLD){var t=this.getElementDir(e.parentNode,"top");if(t+this.getElementHeight(e)<this.m_currentScrollTop||t<this.m_currentScrollTop+this.getViewportHeight())return!0}if(this.m_endCol-this.m_startCol>this.MAX_COLUMN_THRESHOLD){var i=this.getElementDir(e,"left");if(i+this.getElementWidth(e)<this.m_currentScrollLeft||i<this.m_currentScrollLeft+this.getViewportHeight())return!0}}},M.prototype._removeCellsAlongAxis=function(e,t,i){var s,n,o,l,r,a,h,d,c,m,u,_,p,g,f=0,C=0;for("row"===e?(n=this.m_startRow,o=this.m_endRow,l=this.m_rowHeader,r=this.m_rowHeaderLevelCount,a=this.m_startRowHeader,h="height",d=this.m_startRowPixel,c=this.m_endRowPixel,m=this.m_currentScrollTop,u="column",_=this.m_startCol,p=this.m_endCol,g="top",s=i?o:n):(n=this.m_startCol,o=this.m_endCol,l=this.m_colHeader,r=this.m_columnHeaderLevelCount,a=this.m_startColHeader,h="width",d=this.m_startColPixel,c=this.m_endColPixel,m=this.m_currentScrollLeft,u="row",_=this.m_startRow,p=this.m_endRow,g=this.getResources().isRTLMode()?"right":"left",s=i?o:n);s<=o&&s>=n;){var y=this._getKey(this._getHeaderByIndex(s,r-1,l,r,a),e);null==y&&(y=this._getKey(this._getCellByIndex("column"===e?this.createIndex(this.m_startRow,s):this.createIndex(s,this.m_startCol)),e));var v=this._getCellDimension(null,s,y,e,h);if(!(i?c-v-f>t:d+v+f<m-t))break;for(var E,w=_;w<=p;w+=E){var S=this._getCellByIndex("column"===e?this.createIndex(w,s):this.createIndex(s,w)),H=S[this.getResources().getMappedAttribute("context")],x=H.extents[e];E=H.extents[u],1===x?this._remove(S):(H.extents[e]-=1,this.setElementDir(S,this.getElementDir(S,h)-v,h),i||(H.indexes[e]+=1,this.setElementDir(S,this.getElementDir(S,g)+v,g)));for(var b=0;b<E;b++){var R="column"===e?this.createIndex(w+b,s):this.createIndex(s,w+b);this._removeIndexFromDatabodyMap(R)}}f+=v,C+=1,s=i?s-1:s+1}return{dimensionChange:f,extentChange:C}},M.prototype.removeHeadersFromStartOfContainer=function(e,t,i,s,n,o,l,r){var a=0,h=0,d=null==t?e.firstChild:t.nextSibling;if(null==d)return{extentChange:0,dimensionChange:0};for(var c=this.m_utils.containsCSSClassName(d,n),m=c?d:d.firstChild,u=this.getElementDir(m,o);i+u<r-s;){if(this._remove(d),h+=u,a+=c?1:this._getAttribute(d,"extent",!0),i+=u,null==(d=null==t?e.firstChild:t.nextSibling))return{extentChange:a,dimensionChange:h};m=(c=this.m_utils.containsCSSClassName(d,n))?d:d.firstChild,u=this.getElementDir(m,o)}if(!c){var _=this.removeHeadersFromStartOfContainer(d,d.firstChild,i,s,n,o,l,r);this._setAttribute(d,"start",this._getAttribute(d,"start",!0)+_.extentChange),this._setAttribute(d,"extent",this._getAttribute(d,"extent",!0)-_.extentChange),this.setElementDir(m,this.getElementDir(m,l)+_.dimensionChange,l),this.setElementDir(m,this.getElementDir(m,o)-_.dimensionChange,o),a+=_.extentChange,h+=_.dimensionChange}return{extentChange:a,dimensionChange:h}},M.prototype.removeHeadersFromEndOfContainer=function(e,t,i,s,n){for(var o=0,l=0,r=e.lastChild,a=this.m_utils.containsCSSClassName(r,s),h=a?r:r.firstChild,d=this.getElementDir(h,n);t-d>i;)this._remove(r),l+=d,o+=a?1:this._getAttribute(r,"extent",!0),t-=d,r=e.lastChild,h=(a=this.m_utils.containsCSSClassName(r,s))?r:r.firstChild,d=this.getElementDir(h,n);if(!a){var c=this.removeHeadersFromEndOfContainer(r,t,i,s,n);this._setAttribute(r,"extent",this._getAttribute(r,"extent",!0)-c.extentChange),this.setElementDir(h,this.getElementDir(h,n)-c.dimensionChange,n),o+=c.extentChange,l+=c.dimensionChange}return{extentChange:o,dimensionChange:l}},M.prototype.removeColumnHeadersFromLeft=function(){var e,t;if(this.m_endColHeader-this.m_startColHeader>this.MAX_COLUMN_THRESHOLD){var i=this.m_colHeader.firstChild;e=this.getColumnThreshold(),this.m_startColHeaderPixel<=this.m_currentScrollLeft-e&&(t=this.removeHeadersFromStartOfContainer(i,null,this.m_startColHeaderPixel,e,this.getMappedStyle("colheadercell"),"width",this.getResources().isRTLMode()?"right":"left",this.m_currentScrollLeft),this.m_startColHeaderPixel+=t.dimensionChange,this.m_startColHeader+=t.extentChange)}if(this.m_endColEndHeader-this.m_startColEndHeader>this.MAX_COLUMN_THRESHOLD){var s=this.m_colEndHeader.firstChild;e=this.getColumnThreshold(),this.m_startColEndHeaderPixel<this.m_currentScrollLeft-e&&(t=this.removeHeadersFromStartOfContainer(s,null,this.m_startColEndHeaderPixel,e,this.getMappedStyle("colendheadercell"),"width",this.getResources().isRTLMode()?"right":"left",this.m_currentScrollLeft),this.m_startColEndHeaderPixel+=t.dimensionChange,this.m_startColEndHeader+=t.extentChange)}},M.prototype.removeColumnsFromLeft=function(e){if(this.m_endCol-this.m_startCol>this.MAX_COLUMN_THRESHOLD){var t=e.firstChild.childNodes,i=this.getColumnThreshold();if(t.length<1)return;var s=this._removeCellsAlongAxis("column",i,!1);this.m_startColPixel+=s.dimensionChange,this.m_startCol+=s.extentChange}},M.prototype.removeColumnHeadersFromRight=function(){var e,t,i=this.m_currentScrollLeft+this.getViewportWidth()+this.getColumnThreshold();this.m_endColHeader-this.m_startColHeader>this.MAX_COLUMN_THRESHOLD&&(e=this.m_colHeader.firstChild,this.m_endColHeaderPixel>i&&(this.m_stopColumnHeaderFetch&&(this.m_stopColumnHeaderFetch=!1),t=this.removeHeadersFromEndOfContainer(e,this.m_endColHeaderPixel,i,this.getMappedStyle("colheadercell"),"width"),this.m_endColHeaderPixel-=t.dimensionChange,this.m_endColHeader-=t.extentChange)),this.m_endColEndHeader-this.m_startColEndHeader>this.MAX_COLUMN_THRESHOLD&&(e=this.m_colEndHeader.firstChild,this.m_endColEndHeaderPixel>i&&(this.m_stopColumnEndHeaderFetch&&(this.m_stopColumnEndHeaderFetch=!1),t=this.removeHeadersFromEndOfContainer(e,this.m_endColEndHeaderPixel,i,this.getMappedStyle("colendheadercell"),"width"),this.m_endColEndHeaderPixel-=t.dimensionChange,this.m_endColEndHeader-=t.extentChange))},M.prototype.removeColumnsFromRight=function(e){if(this.m_endCol-this.m_startCol>this.MAX_COLUMN_THRESHOLD){var t=e.firstChild.childNodes,i=this.m_currentScrollLeft+this.getViewportWidth()+this.getColumnThreshold();if(this.m_endColPixel<=i||t.length<1)return;this.m_stopColumnFetch&&(this.m_stopColumnFetch=!1);var s=this._removeCellsAlongAxis("column",i,!0);this.m_endColPixel-=s.dimensionChange,this.m_endCol-=s.extentChange}},M.prototype.removeRowHeadersFromTop=function(){var e,t;if(this.m_endRowHeader-this.m_startRowHeader>this.MAX_ROW_THRESHOLD){var i=this.m_rowHeader.firstChild;t=this.getRowThreshold(),this.m_startRowHeaderPixel>=this.m_currentScrollTop-t||(e=this.removeHeadersFromStartOfContainer(i,null,this.m_startRowHeaderPixel,t,this.getMappedStyle("rowheadercell"),"height","top",this.m_currentScrollTop),this.m_startRowHeaderPixel+=e.dimensionChange,this.m_startRowHeader+=e.extentChange)}if(this.m_endRowEndHeader-this.m_startRowEndHeader>this.MAX_ROW_THRESHOLD){var s=this.m_rowEndHeader.firstChild;t=this.getRowThreshold(),this.m_startRowEndHeaderPixel>=this.m_currentScrollTop-t||(e=this.removeHeadersFromStartOfContainer(s,null,this.m_startRowEndHeaderPixel,t,this.getMappedStyle("rowendheadercell"),"height","top",this.m_currentScrollTop),this.m_startRowEndHeaderPixel+=e.dimensionChange,this.m_startRowEndHeader+=e.extentChange)}},M.prototype.removeRowsFromTop=function(e){if(this.m_endRow-this.m_startRow>this.MAX_ROW_THRESHOLD){var t=this.getRowThreshold();if(this.m_startRowPixel>=this.m_currentScrollTop-t)return;var i=this._removeCellsAlongAxis("row",t,!1);this.m_startRowPixel+=i.dimensionChange,this.m_startRow+=i.extentChange}},M.prototype.removeRowHeadersFromBottom=function(){var e,t=this.m_currentScrollTop+this.getViewportHeight()+this.getRowThreshold();if(this.m_endRowHeader-this.m_startRowHeader>this.MAX_ROW_THRESHOLD){var i=this.m_rowHeader.firstChild;this.m_endRowHeaderPixel<=t||(this.m_stopRowHeaderFetch&&(this.m_stopRowHeaderFetch=!1),e=this.removeHeadersFromEndOfContainer(i,this.m_endRowHeaderPixel,t,this.getMappedStyle("rowheadercell"),"height"),this.m_endRowHeaderPixel-=e.dimensionChange,this.m_endRowHeader-=e.extentChange)}if(this.m_endRowEndHeader-this.m_startRowEndHeader>this.MAX_ROW_THRESHOLD){var s=this.m_rowEndHeader.firstChild;this.m_endRowEndHeaderPixel<=t||(this.m_stopRowEndHeaderFetch&&(this.m_stopRowEndHeaderFetch=!1),e=this.removeHeadersFromEndOfContainer(s,this.m_endRowEndHeaderPixel,t,this.getMappedStyle("rowendheadercell"),"height"),this.m_endRowEndHeaderPixel-=e.dimensionChange,this.m_endRowEndHeader-=e.extentChange)}},M.prototype.removeRowsFromBottom=function(e){if(this.m_endRow-this.m_startRow>this.MAX_ROW_THRESHOLD){var t=this.m_currentScrollTop+this.getViewportHeight()+this.getRowThreshold();if(this.m_endRowPixel<=t)return;this.m_stopRowFetch&&(this.m_stopRowFetch=!1);var i=this._removeCellsAlongAxis("row",t,!0);this.m_endRowPixel-=i.dimensionChange,this.m_endRow-=i.extentChange}},M.prototype.handleContextMenuGesture=function(e,t,i){var s,n,o,l,r=e.originalEvent.target,a=this.findCell(r),h=!1;if(null===a&&(a=this.findHeader(r))&&(h=!0,l=this.getHeaderCellAxis(a)),"touch"===t&&null!=a){s=h?this.getHeaderCellIndex(a):this.getCellIndexes(a);let t=h?this._isHeaderInsideSelection(s,l):this._isContainSelection(s);(!this.isMultipleSelection()||!t||this._isDatabodyCellActive()&&s.row!==this.m_active.indexes.row&&s.column!==this.m_active.indexes.column)&&(this._isSelectionEnabled()?this.handleDatabodyClickSelection(e.originalEvent):this.handleDatabodyClickActive(e.originalEvent))}if(!this.m_utils._isNodeEditableOrClickable(r,this.m_root)){if(null==a||h)if(null==(a=this.findHeader(r)||this.findLabel(r))){var d="disable";n={resize:d,resizeWidth:d,resizeHeight:d,sortRow:d,sortCol:d,cut:d,paste:d,sortColAsc:d,sortColDsc:d,sortRowAsc:d,sortRowDsc:d},o=a}else(n=this._getHeaderCapability(a)).resizeFitToContent=h?"enable":"disable","column"!==l&&"columnEnd"!==l||!this.m_selectionFrontier||"column"!==this.m_selectionFrontier.axis?"row"!==l&&"rowEnd"!==l||!this.m_selectionFrontier||"row"!==this.m_selectionFrontier.axis||(n.resizeWidth="disable"):n.resizeHeight="disable",o=a;else s=this.getCellIndexes(a),this.isMultipleSelection()&&this._isContainSelection(s)?(o=this._getActiveElement(),this._isDatabodyCellActive()?(null==o&&(o=a),(n="keyboard"===t?this._getCellCapability(o):this._getCellCapability(o,a)).resizeFitToContent="disable"):(n=this._getHeaderCapability(o,a)).resizeFitToContent="enable"):(o=a,(n=this._getCellCapability(o)).resizeFitToContent="disable"),this.m_selectionFrontier&&"row"===this.m_selectionFrontier.axis?n.resizeWidth="disable":this.m_selectionFrontier&&"column"===this.m_selectionFrontier.axis&&(n.resizeHeight="disable");i.call(null,{capabilities:n,launcher:o},e,t)}},M.prototype._getCellCapability=function(e,t){var i=!0,s=!0,n="disable",o="enable",l={resize:n,resizeWidth:n,resizeHeight:n,sortRow:n,sortCol:n,cut:n,cutCells:n,copyCells:n,paste:n,pasteCells:n,fill:n,sortColAsc:n,sortColDsc:n,sortRowAsc:n,sortRowDsc:n};if(null!=t&&(i=this._getIndex(e,"column")===this._getIndex(t,"column"),!1===(s=this._getKey(e,"row")===this._getKey(t,"row"))&&!1===i))return l;this.m_options.isCopyEnabled()&&(l.copyCells=o),this.m_options.isCutEnabled()&&(l.cutCells=o),this.m_options.isPasteEnabled()&&(l.pasteCells=o),this.m_options.isFloodFillEnabled()&&(l.fill=o);var r=this.getHeaderFromCell(e,"row"),a=this.getHeaderFromCell(e,"column"),h=this.getResources().getMappedAttribute("resizable"),d=this.getResources().getMappedAttribute("sortable");if(null!=a&&i&&("true"===a.getAttribute(h)&&(l.resize=o,l.resizeWidth=o),"true"===a.getAttribute(d))){l.sortCol=o,l.sortColAsc=o,l.sortColDsc=o;var c=a.getAttribute(this.getResources().getMappedAttribute("sortDir"));"ascending"===c?l.sortColAsc=n:"descending"===c&&(l.sortColDsc=n)}return null!=r&&s&&(this._isMoveEnabled("row")&&(l.cut=o,l.paste=o),"true"===r.getAttribute(d)&&(l.sortRow=o,l.sortRowAsc=o,l.sortRowDsc=o),null!=r&&("true"===r.getAttribute(h)&&(l.resize=o,l.resizeHeight=o),"true"===r.getAttribute(d)&&(l.sortRow=o))),l},M.prototype._getHeaderCapability=function(e,t){var i=!0,s=!0,n="disable",o="enable",l={resize:n,resizeWidth:n,resizeHeight:n,sortRow:n,sortCol:n,cut:n,paste:n,sortColAsc:n,sortColDsc:n,sortRowAsc:n,sortRowDsc:n};if(null!=t&&(i=this.getHeaderCellIndex(e)===this._getIndex(t,"column"),!1===(s=this._getKey(e,"row")===this._getKey(t,"row"))&&!1===i))return l;var r=this.getHeaderCellAxis(e),a=this.getResources().getMappedAttribute("resizable"),h=this.getResources().getMappedAttribute("sortable");if(null!==e)if("column"!==r&&"columnEnd"!==r||!i){if(s&&(this._isMoveEnabled("row")&&(l.cut=o,l.paste=o),"true"===e.getAttribute(a)&&(l.resize=o,l.resizeHeight=o),l.resizeWidth=this.m_options.isResizable(r,"width"),"true"===e.getAttribute(h))){l.sortRow=o,l.sortRowAsc=o,l.sortRowDsc=o;let t=e.getAttribute(this.getResources().getMappedAttribute("sortDir"));"ascending"===t?l.sortRowAsc=n:"descending"===t&&(l.sortRowDsc=n)}}else if("true"===e.getAttribute(a)&&(l.resizeWidth=o,l.resize=o),l.resizeHeight=this.m_options.isResizable(r,"height"),"true"===e.getAttribute(h)){l.sortCol=o,l.sortColAsc=o,l.sortColDsc=o;var d=e.getAttribute(this.getResources().getMappedAttribute("sortDir"));"ascending"===d?l.sortColAsc=n:"descending"===d&&(l.sortColDsc=n)}return l.resize=l.resizeHeight===o||l.resizeWidth===o?o:n,l},M.prototype.handleContextMenuReturn=function(e,t,i){var s,n;if(null!=this.m_active&&(s=this._getActiveElement()),t===this.m_resources.getMappedCommand("resizeHeight")||t===this.m_resources.getMappedCommand("resizeWidth"))this.isResizeEnabled()&&this.handleContextMenuResize(e,t,i,s);else if(t===this.m_resources.getMappedCommand("resizeFitToContent")){let t,i=this.findCell(e.target);i&&(t=this.getHeaderFromCell(i,this.m_selectionFrontier.axis)),t||(t=this.findHeader(e.target)),t||(t=this.findLabel(e.target)),t&&(this.m_resizingElement=t);const s=this.getHeaderCellAxis(this.m_resizingElement),n=this.getHeaderCellLevel(this.m_resizingElement);let o=!1;("row"!==s&&"rowEnd"!==s||n!==this.m_rowHeaderLevelCount-1)&&("column"!==s&&"columnEnd"!==s||n!==this.m_columnHeaderLevelCount-1)||(o=!0),o&&this.isResizeEnabled()&&this._getHeadersForResizeFitToContent(e)}else t===this.m_resources.getMappedCommand("sortColAsc")||t===this.m_resources.getMappedCommand("sortColDsc")?(n=t===this.m_resources.getMappedCommand("sortColAsc")?"ascending":"descending",this.m_utils.containsCSSClassName(s,this.getMappedStyle("cell"))&&(s=this.getHeaderFromCell(s,"column")),this._isDOMElementSortable(s)&&this._handleCellSort(e,n,s)):t===this.m_resources.getMappedCommand("sortRowAsc")||t===this.m_resources.getMappedCommand("sortRowDsc")?(n=t===this.m_resources.getMappedCommand("sortRowAsc")?"ascending":"descending",this.m_utils.containsCSSClassName(s,this.getMappedStyle("cell"))&&(s=this.getHeaderFromCell(s,"row")),this._isDOMElementSortable(s)&&this._handleCellSort(e,n,s)):t===this.m_resources.getMappedCommand("cut")?this._handleCut(e,s):t===this.m_resources.getMappedCommand("paste")?this._handlePaste(e,s):t===this.m_resources.getMappedCommand("cutCells")?this._handleCutCells(e,s):t===this.m_resources.getMappedCommand("copyCells")?this._handleCopyCells(e,s):t===this.m_resources.getMappedCommand("pasteCells")?this._handlePasteCells(e,s):t===this.m_resources.getMappedCommand("autoFill")?this._handleAutofill(e,s):t===this.m_resources.getMappedCommand("discontiguousSelection")&&this.setDiscontiguousSelectionMode(i)},M.prototype._isSortEnabled=function(e,t){var i=this.getDataSource().getCapability("sort"),s=this.m_options.isSortable(e,t);return!("enable"!==s&&"auto"!==s||"full"!==i&&i!==e)&&(!this._isDataGridProvider()||null!=t.metadata.sortDirection)},M.prototype._isParentNode=function(e){return!!this._isDataGridProvider()&&(e.metadata.expanded&&null!==e.metadata.expanded)},M.prototype._isRequired=function(e){return!!this._isDataGridProvider()&&!0===e.metadata.showRequired},M.prototype._isHierarchicalGroup=function(e){return null==e.metadata.treeDepth},M.prototype._isLeafNode=function(e){if(!e.metadata)return!1;const t=e.metadata.treeDepth;return!!this._isDataGridProvider()&&(null!=t&&0!==t)},M.prototype._isDOMElementSortable=function(e){if(null==e)return!1;var t=this.findHeader(e);return null!=t&&"true"===t.getAttribute(this.getResources().getMappedAttribute("sortable"))},M.prototype._isSelectionEnabled=function(){return"none"!==this.m_options.getSelectionCardinality()},M.prototype.isMultipleSelection=function(){return"multiple"===this.m_options.getSelectionCardinality()},M.prototype.isResizeEnabled=function(){return this.m_options.isResizable("row","width")||this.m_options.isResizable("row","height")||this.m_options.isResizable("column","width")||this.m_options.isResizable("column","height")||this.m_options.isResizable("rowEnd","width")||this.m_options.isResizable("rowEnd","height")||this.m_options.isResizable("columnEnd","width")||this.m_options.isResizable("columnEnd","height")},M.prototype._isHeaderResizeEnabled=function(e,t){return"column"===e||"columnEnd"===e?"enable"===this.m_options.isResizable(e,"width",t):("row"===e||"rowEnd"===e)&&"enable"===this.m_options.isResizable(e,"height",t)},M.prototype.handleMouseMove=function(e){this.isResizeEnabled()&&!1===this.m_databodyDragState&&this.handleResize(e)},M.prototype.handleRowHeaderMouseMove=function(e){0===e.buttons&&this.handleMouseUp(e),this.m_databodyMove?this._handleMove(e):this.m_headerDragState&&(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&-1!==this.m_selectionFrontier.axis.indexOf("row")||this.m_deselectInfo&&this.m_deselectInfo.axis&&-1!==this.m_deselectInfo.axis.indexOf("row"))?this.extendSelectionHeader(e.target,e,!0,this.m_deselectInProgress):this.m_isResizing||this.handleMouseMove(e)},M.prototype.handleColumnHeaderMouseMove=function(e){0===e.buttons&&this.handleMouseUp(e),this.m_headerDragState&&(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&-1!==this.m_selectionFrontier.axis.indexOf("column")||this.m_deselectInfo&&this.m_deselectInfo.axis&&-1!==this.m_deselectInfo.axis.indexOf("column"))?this.extendSelectionHeader(e.target,e,!0,this.m_deselectInProgress):this.m_isResizing||this.handleMouseMove(e)},M.prototype.handleHeaderLabelMouseMove=function(e){this.m_isResizing||this.handleMouseMove(e)},M.prototype.handleHeaderMouseDown=function(e){var t;this._exitActionableMode();var i=e.target;if(this._isEditOrEnter()){var s=this._getActiveElement();if(!1===this._leaveEditing(e,s,!1))return}if(!this._isDisclosureIcon(i)){if(0===e.button){if((this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortascending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdescending")))&&this._isDOMElementSortable(i))return e.preventDefault(),void this._handleSortIconMouseDown(i);if(this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortIcon"))&&this._isDOMElementSortable(i.lastChild))return e.preventDefault(),void this._handleSortIconMouseDown(i.lastChild);this.isResizeEnabled()&&(t=this.handleResizeMouseDown(e),this._highlightResizeMouseDown());var n=this.m_utils.ctrlEquivalent(e);this.m_isResizing||n||!this._isMoveOnElementEnabled(this.findHeader(i))||(this.m_databodyMove=!0,this.m_currentX=e.pageX,this.m_currentY=e.pageY,t=!0)}if(!this.m_isResizing&&"default"===this.manageHeaderCursor(e,!1)){this.m_root.contains(document.activeElement)&&document.activeElement!==this.m_root||(this.m_externalFocus=!0);var o=this.m_options.getSelectionMode(),l=this.findHeader(i)[this.getResources().getMappedAttribute("context")];if(!this._isSelectionEnabled()||!this.isMultipleSelection()||"row"===o&&-1===l.axis.indexOf("row")||this.m_databodyMove)if("row"===o&&-1!==l.axis.indexOf("row")&&this._isSelectionEnabled())this.handleHeaderClickSelection(e);else if("row"===o&&-1!==l.axis.indexOf("column")&&this._isSelectionEnabled()){let t=!1;e.shiftKey||(t=!0),this.handleHeaderClickActive(e,t)}else this.handleHeaderClickActive(e);else 0===e.button&&(this.m_headerDragState=!0),this.handleHeaderClickSelection(e)}this.m_options.isFloodFillEnabled()&&this.m_bottomFloodFillIconContainer&&this.m_bottomFloodFillIconContainer.parentNode&&(this.m_bottomFloodFillIconContainer.parentNode.removeChild(this.m_bottomFloodFillIconContainer),this.m_bottomFloodFillIconContainer.removeEventListener("mouseover",this.handleDatabodyMouseMove)),!0===t&&e.preventDefault()}},M.prototype.handleHeaderLabelMouseDown=function(e){var t;this.isResizeEnabled()&&(t=this.handleResizeMouseDown(e),this._highlightResizeMouseDown()),!0===t&&e.preventDefault()},M.prototype.handleMouseUp=function(e){this.m_headerDragState=!1,this.m_databodyDragState=!1,this.m_deselectInProgress=!1,this.m_databodyMove?this._handleMoveMouseUp(e,!1):this.isResizeEnabled()&&this.handleResizeMouseUp(e),this.m_databodyMove=!1},M.prototype.shouldHoverHeader=function(e){const t=null==e?null:this.getHeaderCellAxis(e),i="row"===t||"rowEnd"===t,s=this.m_options.getSelectionMode();return this._isSelectionEnabled()&&(this.isMultipleSelection()&&"cell"===s||"row"===s&&i)},M.prototype.handleHeaderMouseOver=function(e){var t=e.target,i=this.findHeader(t);!this.m_isResizing&&"default"===this.manageHeaderCursor(e,!1)&&this.shouldHoverHeader(i)&&this.m_utils.addCSSClassName(i,this.getMappedStyle("hover"))},M.prototype.handleHeaderMouseOut=function(e){var t=e.target;this.m_utils.removeCSSClassName(this.findHeader(t),this.getMappedStyle("hover")),!this.m_isResizing&&this.m_resizingElement&&(this.m_resizingElement.style.cursor="",null!=this.m_resizingElementSibling&&(this.m_resizingElementSibling.style.cursor="")),this._isDOMElementSortable(t)&&this._handleSortMouseOut(e)},M.prototype.handleHeaderMouseUp=function(e){this.handleDragAnchorChange(e),this.m_headerDragState=!1,this.m_databodyDragState=!1,this.m_deselectInProgress=!1,this.m_floodFillDragState&&(this.unhighlightFloodFillRange(),this.m_selectionRange=null,this.m_floodFillRange=null,this.m_floodFillDirection=null,this.m_databody.style.cursor="default",this.m_cursor="default"),this.m_databodyMove&&this._handleMoveMouseUp(e,!0)},M.prototype.handleCornerMouseDown=function(e){let t,i=e.target,s=this.m_utils.containsCSSClassName(i,this.getMappedStyle("rowendheaderlabel"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("columnendheaderlabel")),n=this.findLabel(i);null!=n&&(t=s,this._setActive(n,this._createActiveObject(n),e,t),this.handleHeaderLabelMouseDown(e))},M.prototype.handleCornerMouseOver=function(e){var t=e.target;this._isSelectionEnabled()&&this.isMultipleSelection()&&this.m_utils.addCSSClassName(this.findLabel(t),this.getMappedStyle("hover"));let i=this.findLabel(t);this.m_isResizing||null===i||this.handleMouseMove(e)},M.prototype.handleCornerMouseMove=function(e){var t=e.target;let i=this.findLabel(t);this.m_isResizing||null===i||this.handleMouseMove(e)},M.prototype.handleCornerMouseOut=function(e){var t=e.target;this.m_utils.removeCSSClassName(this.findLabel(t),this.getMappedStyle("hover"))},M.prototype.handleCornerClick=function(e){this._handleSelectAll(e)},M.prototype.handleHeaderClick=function(e){var t=e.target;(this.m_utils.containsCSSClassName(t,this.getMappedStyle("sortascending"))||this.m_utils.containsCSSClassName(t,this.getMappedStyle("sortdescending"))||this.m_utils.containsCSSClassName(t,this.getMappedStyle("sortdefault")))&&this._isDOMElementSortable(t)||this.m_utils.containsCSSClassName(t,this.getMappedStyle("sortIcon"))&&this._isDOMElementSortable(t.lastChild)?(this._removeTouchSelectionAffordance(),this._handleHeaderSort(e),e.preventDefault()):this._isDisclosureIcon(e.target)&&(this._removeTouchSelectionAffordance(),this._handleExpandCollapseRequest(e),e.preventDefault())},M.prototype.handleHeaderDoubleClick=function(e){if(this.m_cursor=this.manageHeaderCursor(e,!1),"col-resize"===this.m_cursor||"row-resize"===this.m_cursor){this.m_resizingElement||(this.m_resizingElement=this.findHeader(e.target));const t=this.getHeaderCellAxis(this.m_resizingElement),i=this.getHeaderCellLevel(this.m_resizingElement);let s=!1;("row"!==t&&"rowEnd"!==t||i!==this.m_rowHeaderLevelCount-1||"row-resize"!==this.m_cursor)&&("column"!==t&&"columnEnd"!==t||i!==this.m_columnHeaderLevelCount-1||"col-resize"!==this.m_cursor)||(s=!0),s&&this.isResizeEnabled()&&this._getHeadersForResizeFitToContent(e)}},M.prototype._getHeadersForResizeFitToContent=function(e){const t=this.getHeaderCellAxis(this.m_resizingElement),i=this.getHeaderCellIndex(this.m_resizingElement);let s=[];if(this._isSelectionEnabled()&&this.isMultipleSelection()&&this.m_selection.length){let e=this.m_selection[0];s=this._getHeadersWithinSelection(e,i,t)}s.length||s.push(this.m_resizingElement),s.forEach(i=>{this.handleResizeFitToContent(e,i,t)})},M.prototype._getHeadersWithinSelection=function(e,t,i){let s,n,o,l,r,a,h,d=[];if("column"===i?(s=this.m_startColHeader,n=this.m_columnHeaderLevelCount-1,o=this.m_columnHeaderLevelCount,l=this.m_colHeader,r="column"):"columnEnd"===i?(s=this.m_startColEndHeader,n=this.m_columnEndHeaderLevelCount-1,o=this.m_columnEndHeaderLevelCount,l=this.m_colEndHeader,r="column"):"row"===i?(s=this.m_startRowHeader,n=this.m_rowHeaderLevelCount-1,o=this.m_rowHeaderLevelCount,l=this.m_rowHeader,r="row"):(s=this.m_startRowEndHeader,n=this.m_rowEndHeaderLevelCount-1,o=this.m_rowEndHeaderLevelCount,l=this.m_rowEndHeader,r="row"),0===e.startIndex.column&&-1===e.endIndex.column&&0===e.startIndex.row&&-1===e.endIndex.row){a=0,h="row"===r?this.m_endRowHeader-this.m_startRowHeader:this.m_endColHeader-this.m_startColHeader}else 0===e.startIndex.column&&-1===e.endIndex.column||void 0===e.startIndex.column?e.startIndex.row<=t&&t<=e.endIndex.row&&("row"===i||"rowEnd"===i)&&(a=e.startIndex.row,h=e.endIndex.row):(0===e.startIndex.row&&-1===e.endIndex.row||void 0===e.startIndex.row)&&e.startIndex.column<=t&&t<=e.endIndex.column&&("column"===i||"columnEnd"===i)&&(a=e.startIndex.column,h=e.endIndex.column);for(let e=a;e<=h;e++){let t=this._getHeaderByIndex(e,n,l,o,s);t&&d.push(t)}return d},M.prototype.handleDatabodyMouseDown=function(e){var t=e.target,i=this.findCell(t);if(null!=i){if(this._isEditOrEnter()){var s=this._getActiveElement();if(i===s)return;if(!1===this._leaveEditing(e,s,!1))return}else this._exitActionableMode();var n=this.m_utils.ctrlEquivalent(e);0!==e.button||n||this._isMoveOnElementEnabled(i)&&(this.m_databodyMove=!0,this.m_currentX=e.pageX,this.m_currentY=e.pageY),this.m_root.contains(document.activeElement)&&document.activeElement!==this.m_root||(this.m_externalFocus=!0),this._isGridEditable()&&(this.m_shouldFocus=!this._isFocusableElementBeforeCell(t)),this._isSelectionEnabled()?(this.isMultipleSelection()&&0===e.button&&(this.m_databodyDragState=!0),this.handleDatabodyClickSelection(e)):this.handleDatabodyClickActive(e)}else this.m_scrollbarFocus=!0},M.prototype.handleDatabodyMouseOut=function(e){if(!this.m_databodyMove){var t=e.target,i=this.findCell(t);this._setCellHover(i,"remove")}},M.prototype.handleDatabodyMouseOver=function(e){if(!this.m_databodyMove){var t=e.target,i=this.findCell(t);this._setCellHover(i,"add")}},M.prototype._setCellHover=function(e,t){if(null!=e&&this._isSelectionEnabled()){var i=this.m_options.getSelectionMode();if("cell"===i)"add"===t?this.m_utils.addCSSClassName(e,this.getMappedStyle("hover")):this.m_utils.removeCSSClassName(e,this.getMappedStyle("hover"));else if("row"===i)for(var s=this._getIndex(e,"row"),n=this._getSelectionStartAndEnd(this.createIndex(s,this.m_startCol),this.createIndex(s,this.m_endCol),0),o=n.min.row;o<=n.max.row;o++)this._highlightCellsAlongAxis(o,"row","index",t,["hover"])}},M.prototype.handleDatabodyDoubleClick=function(e){if(this._isGridEditable()){var t=e.target,i=this.findCell(t);if("edit"===this._getCurrentMode()){var s=this._getActiveElement();if(i===s)return;if(!this._handleExitEdit(e,s))return}this._handleEditable(e,i),this._handleEdit(e,i)}},M.prototype.handleDatabodyMouseMove=function(e){0===e.buttons&&this.handleMouseUp(e),this.m_databodyMove?this._handleMove(e):this.m_databodyDragState?this.m_floodFillDragState?this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this.m_selectionRange||(this.m_selectionRange=this.GetSelection()),this.handleDatabodyFloodFillDrag(e)):this.handleDatabodySelectionDrag(e):this.m_headerDragState&&(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&(-1!==this.m_selectionFrontier.axis.indexOf("row")||-1!==this.m_selectionFrontier.axis.indexOf("column"))||this.m_deselectInfo&&this.m_deselectInfo.axis&&(-1!==this.m_deselectInfo.axis.indexOf("row")||-1!==this.m_deselectInfo.axis.indexOf("column")))&&this.extendSelectionHeader(e.target,e,!0,this.m_deselectInProgress)},M.prototype.handleDatabodyMouseUp=function(e){this.m_databodyDragState=!1,this.m_headerDragState=!1,this.m_deselectInProgress=!1,this.m_databodyMove&&this._handleMoveMouseUp(e,!0),this.m_options.isFloodFillEnabled()&&this.m_floodFillDragState&&(this._handleFloodFillMouseUp(e),this.m_floodFillDragState=!1)},M.prototype.handleDatabodyKeyUp=function(e){this.m_deselectInProgress&&(this.m_deselectInProgress=e.shiftKey)},M.prototype.handleDatabodyKeyDown=function(e){var t,i=this.m_utils.ctrlEquivalent(e);if(!(e.defaultPrevented&&i&&(this.keyCodes.LEFT_KEY||this.keyCodes.RIGHT_KEY)||this.m_animating)){t=null!=this.m_active&&"header"===this.m_active.type?this._getActionFromKeyDown(e,this.m_active.axis,!1):null!=this.m_active&&"label"===this.m_active.type?this._getActionFromKeyDown(e,this.m_active.axis,!0):this._getActionFromKeyDown(e,"cell",!1);var s=this._getActiveElement();null!=t&&t.call(this,e,s)&&e.preventDefault()}},M.prototype.findPos=function(e){if(e){var t=this.findPos(e.offsetParent),i=this.getElementTranslationXYZ(e.offsetParent);return[parseInt(t[0],10)+parseInt(e.offsetLeft,10)+i[0],parseInt(t[1],10)+parseInt(e.offsetTop,10)+i[1]]}return[0,0]},M.prototype._findHeaderOffset=function(e,t,i){if(i||(i=[0,0]),e!==t){for(;!e.offsetParent;)e=e.parentElement;return e.offsetLeft&&(i[0]+=parseInt(e.offsetLeft,10)),e.offsetTop&&(i[1]+=parseInt(e.offsetTop,10)),this._findHeaderOffset(e.offsetParent,t,i)}return i},M.prototype.getElementTranslationXYZ=function(e){if(e){var t=document.defaultView.getComputedStyle(e,null),i=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform"),s=i.substr(7,i.length-8).split(", ");return[isNaN(parseInt(s[4],10))?0:parseInt(s[4],10),isNaN(parseInt(s[5],10))?0:parseInt(s[5],10),isNaN(parseInt(s[6],10))?0:parseInt(s[6],10)]}return[0,0,0]},M.prototype.handleDatabodyMouseWheel=function(e){var t,i=this.find(e.target,"header");if(null==i&&(i=this.find(e.target,"endheader")),i&&(t=i===this.m_rowHeader||i===this.m_rowEndHeader?"row":"column"),("row"!==t||this.m_stopRowHeaderFetch&&this.m_stopRowEndHeaderFetch&&this.m_stopRowFetch)&&("column"!==t||this.m_stopColumnHeaderFetch&&this.m_stopColumnEndHeaderFetch&&this.m_stopColumnFetch)||e.preventDefault(),!this.m_animating){var s=this.m_utils.getMousewheelScrollDelta(e),n=s.deltaX,o=s.deltaY;"row"===t?n=0:"column"===t&&(o=0);var l=Math.max(0,Math.min(this._getMaxScrollHeight(),this.m_currentScrollTop-o));this._getMaxScrollHeight()!==l&&0!==l&&this.find(e.target,"header")&&e.preventDefault(),this.scrollDelta(n,o)}},M.prototype.handleTouchStart=function(e){var t=e.touches.length,i=e.touches[0].target;if(1===t){if(this.m_startX=e.touches[0].pageX,this.m_startY=e.touches[0].pageY,this.m_currentX=this.m_startX,this.m_currentY=this.m_startY,this.m_prevX=this.m_startX,this.m_prevY=this.m_startY,this.m_startTime=(new Date).getTime(),this.m_touchActive=!0,this.isMultipleSelection()){i.classList.contains(this.getMappedStyle("selectaffordance"))&&(i=i.parentNode);var s=null;if(i===this.m_topSelectIconContainer?s="top":i===this.m_bottomSelectIconContainer&&(s="bottom"),s){this.m_touchMultipleSelect=!0;var n=this.GetSelection();this.m_touchSelectAnchor="top"===s?n[n.length-1].endIndex:n[n.length-1].startIndex}}!this.m_touchMultipleSelect&&this._isMoveOnElementEnabled(this.findCell(i))&&(this.m_databodyMove=!0)}else this.handleTouchCancel(e)},M.prototype.handleTouchMove=function(e){var t=e.target;if(this.m_touchActive){e.cancelable&&e.preventDefault(),this.m_currentX=e.touches[0].pageX,this.m_currentY=e.touches[0].pageY;var i=this.m_currentX-this.m_prevX,s=this.m_currentY-this.m_prevY,n=this.adjustTouchScroll(i,s);if(i=n[0],s=n[1],this.getResources().isRTLMode()&&(i*=-1),this.m_touchMultipleSelect)this.handleDatabodySelectionDrag(e),this.m_utils.isTouchDeviceNotIOS()||e.preventDefault();else if(this.m_databodyMove)this._removeTouchSelectionAffordance(),this._handleMove(e),this.m_utils.isTouchDeviceNotIOS()||e.preventDefault();else if(this._isEditOrEnter()&&this.m_utils.isTouchDeviceNotIOS()){var o=this._getActiveElement();this.findCell(t)!==o&&this._handleNonSwipeScroll(i,s)}else this._handleNonSwipeScroll(i,s);this.m_prevX=this.m_currentX,this.m_prevY=this.m_currentY}else this.handleTouchCancel(e)},M.prototype.handleTouchEnd=function(e){var t,i=e.target;if(this._isEditOrEnter()){if(t=this._getActiveElement(),this.findCell(i)===t)return void this.handleTouchCancel(e);this._leaveEditing(e,t,!1)}else this._exitActionableMode();if(null!=this.m_lastTapTime&&this.m_startTime-this.m_lastTapTime<250&&this.m_lastTapTarget===i?(this.m_lastTapTime=null,this.m_lastTapTarget=null,null!=(t=this.findCell(i))&&(this._handleEditable(e,t),this._handleEdit(e,t),e.cancelable&&e.preventDefault())):(this.m_lastTapTarget=e.target,this.m_lastTapTime=(new Date).getTime()),this.m_touchActive&&!e.defaultPrevented)if(this.m_touchMultipleSelect)e.cancelable&&e.preventDefault(),this.m_touchMultipleSelect=!1;else{var s=this.m_lastTapTime-this.m_startTime;if(this.m_currentX===this.m_startX&&this.m_currentY===this.m_startY)return this.m_databodyMove=!1,this._isSelectionEnabled()&&s<M.CONTEXT_MENU_TAP_HOLD_DURATION?void this.handleDatabodyClickSelection(e):void this.handleDatabodyClickActive(e);if(this.m_databodyMove)return e.cancelable&&e.preventDefault(),this.m_databodyMove=!1,void this._handleMoveMouseUp(e,!0);this.m_utils.isTouchDeviceNotIOS()&&this._handleSwipe(e)}this.handleTouchCancel(e)},M.prototype._calculateMomentum=function(e,t,i,s,n,o){var l,r=e-t,a=Math.abs(r)/i,h=a*a/(2*M.DECELERATION_FACTOR)*(r<0?-1:1),d=a/M.DECELERATION_FACTOR;return o&&(h*=-1),s-h>n?(l=Math.max(-1*M.MAX_OVERSCROLL_PIXEL,h),h=s-n,d=(r=n-s)/a):s-h<0&&(l=Math.min(M.MAX_OVERSCROLL_PIXEL,h),h=s,d=(r=s)/a),{destination:Math.round(h),duration:Math.min(Math.max(M.MIN_SWIPE_TRANSITION_DURATION,d),M.MAX_SWIPE_TRANSITION_DURATION),overScroll:l}},M.prototype.handleTouchCancel=function(e){this.m_databodyMove&&(this._handleMoveMouseUp(e,!1),this.m_databodyMove=!1),this.m_touchSelectAnchor=null,this.m_touchMultipleSelect=!1,this.m_touchActive=!1,this.m_startX=0,this.m_startY=0,this.m_prevX=0,this.m_prevY=0,this.m_currentX=0,this.m_currentY=0,this.m_startTime=0},M.prototype.handleHeaderTouchStart=function(e){this.m_touchStart=(new Date).getTime();var t=e.touches.length,i=e.target;if(1===t){this.m_startX=e.touches[0].pageX,this.m_startY=e.touches[0].pageY,this.m_currentX=this.m_startX,this.m_currentY=this.m_startY,this.m_prevX=this.m_startX,this.m_prevY=this.m_startY,this.m_touchActive=!0;var s=this.findHeader(i);this.isResizeEnabled()&&(this.handleResize(e),this.handleResizeMouseDown(e),this._highlightResizeMouseDown()),!this.m_isResizing&&this._isMoveOnElementEnabled(s)&&(this.m_databodyMove=!0)}else this.handleHeaderTouchCancel(e)},M.prototype.handleHeaderTouchMove=function(e){if(this.m_touchActive){e.cancelable&&e.preventDefault(),this.m_currentX=e.touches[0].pageX,this.m_currentY=e.touches[0].pageY;var t=this.m_currentX-this.m_prevX,i=this.m_currentY-this.m_prevY;if(this.m_isResizing&&this.isResizeEnabled())this.handleResize(e);else if(this.m_databodyMove)this._removeTouchSelectionAffordance(),this._handleMove(e);else{var s=e.target,n=this.findHeader(s),o=this.getHeaderCellAxis(n);"column"===o||"columnEnd"===o?this._handleNonSwipeScroll(t,0):this._handleNonSwipeScroll(0,i)}this.m_prevX=this.m_currentX,this.m_prevY=this.m_currentY}else this.handleTouchCancel(e)},M.prototype.handleHeaderTouchEnd=function(e){var t;if(this.m_touchActive&&!e.defaultPrevented){var i=e.target;if(this.m_isResizing&&this.isResizeEnabled())this.handleResizeMouseUp(e),this.m_currentX!==this.m_startX&&this.m_currentY!==this.m_startY&&e.cancelable&&e.preventDefault();else if(this.m_currentX===this.m_startX&&this.m_currentY===this.m_startY){var s=this.m_options.getSelectionMode(),n=(t=this.findHeader(i))[this.getResources().getMappedAttribute("context")],o=this.m_root.getAttribute("id"),l=document.querySelector("#"+o+"contextmenu");l&&"none"===l.style.display&&((this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortascending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdescending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdefault")))&&this._isDOMElementSortable(i)?(e.cancelable&&e.preventDefault(),this._removeTouchSelectionAffordance(),this._handleSortIconMouseDown(i),this._handleHeaderSort(e)):this._isDisclosureIcon(i)?(this._removeTouchSelectionAffordance(),this._handleExpandCollapseRequest(e),e.preventDefault()):!this._isSelectionEnabled()||!this.isMultipleSelection()||"row"===s&&-1===n.axis.indexOf("row")||this.m_databodyMove?"row"===s&&-1!==n.axis.indexOf("row")&&this._isSelectionEnabled()?this.handleHeaderClickSelection(e):this.handleHeaderClickActive(e):(0===e.button&&(this.m_headerDragState=!0),this.handleHeaderClickSelection(e)))}else this.m_databodyMove?(e.cancelable&&e.preventDefault(),this.m_databodyMove=!1,this._handleMoveMouseUp(e,!0)):(t=this.findHeader(i),this._handleSwipe(e,this.getHeaderCellAxis(t)))}this.handleHeaderTouchCancel(e)},M.prototype.handleHeaderTouchCancel=function(e){this.m_databodyMove&&(this._handleMoveMouseUp(e,!1),this.m_databodyMove=!1),this.m_touchActive=!1,this.m_startX=0,this.m_startY=0,this.m_prevX=0,this.m_prevY=0,this.m_currentX=0,this.m_currentY=0},M.prototype._handleNonSwipeScroll=function(e,t){var i=(new Date).getTime();this._disableTouchScrollAnimation();var s=this.adjustTouchScroll(e,t);e=s[0],t=s[1],this.scrollDelta(e,t),i-this.m_startTime>M.TAP_AND_SCROLL_RESET&&(this.m_startX=this.m_currentX,this.m_startY=this.m_currentY,this.m_startTime=(new Date).getTime())},M.prototype._handleSwipe=function(e,t){var i=(new Date).getTime()-this.m_startTime,s=this.getResources().isRTLMode(),n=this.m_currentX-this.m_startX,o=this.m_currentY-this.m_startY;if(s&&(n*=-1),Math.abs(n)<M.MIN_SWIPE_DISTANCE&&Math.abs(o)<M.MIN_SWIPE_DISTANCE&&i<M.MIN_SWIPE_DURATION)e.cancelable&&e.preventDefault(),this._isSelectionEnabled()&&this._scrollTouchSelectionAffordance();else if(i<M.MAX_SWIPE_DURATION){var l,r;if(e.cancelable&&e.preventDefault(),"row"!==t&&"rowEnd"!==t?(l=this._calculateMomentum(this.m_currentX,this.m_startX,i,this.m_currentScrollLeft,this.m_scrollWidth,s),isNaN(l.overScroll)||(l.overScroll>0||this.m_stopColumnFetch)&&(this.m_extraScrollOverX=-1*l.overScroll)):(l={duration:0,destination:0},n=0),"column"!==t&&"columnEnd"!==t?(r=this._calculateMomentum(this.m_currentY,this.m_startY,i,this.m_currentScrollTop,this.m_scrollHeight),isNaN(r.overScroll)||(r.overScroll>0||this.m_stopRowFetch)&&(this.m_extraScrollOverY=-1*r.overScroll)):(r={duration:0,destination:0},o=0),this.m_utils.isTouchDeviceNotIOS()){var a=Math.max(l.duration,r.duration);this.m_databody.firstChild.style.transitionDuration=a+"ms",this.m_rowHeader.firstChild.style.transitionDuration=a+"ms",this.m_colHeader.firstChild.style.transitionDuration=a+"ms",this.m_rowEndHeader.firstChild.style.transitionDuration=a+"ms",this.m_colEndHeader.firstChild.style.transitionDuration=a+"ms"}n+=l.destination,o+=r.destination;var h=this.adjustTouchScroll(n,o);n=h[0],o=h[1],this.scrollDelta(n,o)}},M.prototype.fireEvent=function(e,t){if(null!=e&&null!=t){var i=this.callbacks[e];return null==i||i(t)}},M.prototype.addListener=function(e,t){this.callbacks[e]=t},M.prototype.setElementHeight=function(e,t){e.style.height=t+"px"},M.prototype.getElementHeight=function(e){return this.getElementDir(e,"height")},M.prototype.setElementWidth=function(e,t){e.style.width=t+"px"},M.prototype.getElementWidth=function(e){return this.getElementDir(e,"width")},M.prototype.setElementDir=function(e,t,i){e.style[i]=t+"px"},M.prototype.getElementDir=function(e,t){var i;return e.style[t].indexOf("px")>-1&&-1===e.style[t].indexOf("e")?parseFloat(e.style[t]):(document.body.contains(e)?i=Math.round(e["offset"+t.charAt(0).toUpperCase()+t.slice(1)]):(e.style.visibility="hidden",this.m_root.appendChild(e),i=Math.round(e["offset"+t.charAt(0).toUpperCase()+t.slice(1)]),this.m_root.removeChild(e),e.style.visibility=""),i)},M.prototype._computeElementWidthAndHeight=function(e){var t={};return e.style.width.indexOf("px")>-1&&-1===e.style.width.indexOf("e")&&(t.width=parseFloat(e.style.width)),e.style.height.indexOf("px")>-1&&-1===e.style.height.indexOf("e")&&(t.height=parseFloat(e.style.height)),null!=t.width&&null!=t.height||(document.body.contains(e)?(t.width=Math.round(e.offsetWidth),t.height=Math.round(e.offsetHeight)):(e.style.visibility="hidden",this.m_root.appendChild(e),t.width=Math.round(e.offsetWidth),t.height=Math.round(e.offsetHeight),this.m_root.removeChild(e),e.style.visibility="")),t},M.BEFORE=1,M.AFTER=2,M.INSIDE=3,M.prototype._isInViewport=function(e){var t=e.row,i=e.column;return-1===t&&-1===i?-1:-1===t?this._isColumnIndexInViewport(i):-1===i?this._isRowIndexInViewport(t):i>=this.m_startCol&&i<=this.m_endCol&&t>=this.m_startRow&&t<=this.m_endRow?M.INSIDE:-1},M.prototype._isAxisIndexInViewport=function(e,t){return-1===e?-1:"column"===t?this._isColumnIndexInViewport(e):"row"===t?this._isRowIndexInViewport(e):-1},M.prototype._isColumnIndexInViewport=function(e){return e<this.m_startCol?M.BEFORE:e>this.m_endCol?M.AFTER:M.INSIDE},M.prototype._isRowIndexInViewport=function(e){return e<this.m_startRow?M.BEFORE:e>this.m_endRow?M.AFTER:M.INSIDE},M.prototype._isCellBoundaryInViewport=function(e,t,i,s){var n=this._getViewportTop(),o=this._getViewportBottom(),l=this._getViewportLeft(),r=this._getViewportRight();return(s<=o&&s>n||i>=n&&i<o)&&(t<=r&&t>l||e>=l&&e<r)},M.prototype.queueModelEvent=function(e){return!(this.m_initialized&&!this.m_processingEventQueue&&!this.m_animating&&!this.m_processingModelEvent)&&(null==this.m_modelEvents&&(this.m_modelEvents=[]),this.m_modelEvents.push(e),!0)},M.prototype.handleModelEvent=function(e,t){if(void 0!==t||!this.queueModelEvent(e)){var i=e.operation,s=e.keys,n=e.indexes,o=e.result,l=e.header,r=e.endheader,a=e.silent,h=!1;if(this.m_processingModelEvent=!0,e.detail)"delete"===i&&this._handleDeleteRangeEvent(e.detail),"insert"===i&&this._handleInsertRangeEvent(e.detail),"update"===i&&this._handleUpdateRangeEvent(e.detail),"refresh"===i&&this._handleModelRefreshEvent(e.detail);else if("insert"===i)this._adjustActive(i,n),this.m_shouldFocus=!0,this._adjustSelectionOnModelChange(i,s,n),null!=o?(this._handleModelInsertRangeEvent(o,l,r),h=!0):this._handleModelInsertEvent(n,s);else if("update"===i)this._handleModelUpdateEvent(n,s,o),h=!0;else if("delete"===i){let t;if(this._isEditOrEnter()&&(t=this._getCellByIndex(this.m_active.indexes)),t){let i=this.getCellIndexes(t),s=!1;n.forEach(e=>{e.row!==i.row&&e.column!==i.column||(s=!0)}),s&&(this._handleExitEditable(e,t),this._handleExitEdit(e,t))}this._adjustSelectionOnModelChange(i,s,n),this.m_utils.supportsTransitions()?(Array.isArray(s)||(s=new Array(s)),this._handleModelDeleteEventWithAnimation(e,s),s.length>0&&(h=!0)):(this._handleModelDeleteEvent(n,s,a),this._adjustActive(i,n))}else"refresh"===i||"reset"===i?this._handleModelRefreshEvent():"sync"===i&&this._handleModelSyncEvent(e);this.m_processingModelEvent=!1,!h&&t&&this._runModelEventQueue()}},M.prototype._adjustActive=function(e,t){var i,s;if(null!=this.m_active){if("cell"===this.m_active.type)s=!1,i=this.m_active.indexes.row;else{if("header"!==this.m_active.type||"row"!==this.m_active.axis)return;s=!0,i=this.m_active.index}if(Array.isArray(t)||(t=new Array(t)),!0===this.m_moveActive){if("insert"===e)return void(s?this.m_active.index=t[0].row:this.m_active.indexes.row=t[0].row);if("delete"===e&&t[0].row===i)return}for(var n="insert"===e?1:-1,o=0;o<t.length;o++){var l=this._isDataGridProvider()?t[o]:t[o].row;l<i?s?this.m_active.index+=n:this.m_active.indexes.row+=n:l===i&&"delete"===e&&this._setActive(null,null)}}},M.prototype._adjustSelectionOnModelChange=function(e,t,i){Array.isArray(t)||(t=new Array(t)),Array.isArray(i)||(i=new Array(i));var s=this.GetSelection();if(null!=t&&null!=i&&t.length===i.length&&0!==s.length)for(var n="insert"===e?1:-1,o=0;o<t.length;o++)for(var l,r=t[o].row,a=i[o].row,h=s.length-1;h>=0;h--){var d=s[h],c=d.startKey.row,m=d.endKey.row,u=d.startIndex.row,_=d.endIndex.row;if(c===r){if(m===r&&"delete"===e){s.splice(h,1);continue}l=this._getKey(this._getAxisCellsByIndex(d.startIndex.row+1,"row")[0],"row"),d.startKey.row=l,d.endIndex.row+=n}else m===r?(l=this._getKey(this._getAxisCellsByIndex(d.startIndex.row-1,"row")[0],"row"),d.endKey.row=l,d.endIndex.row+=n):a<=u?(d.startIndex.row+=n,d.endIndex.row+=n):a<_&&(d.endIndex.row+=n)}else if(this.m_moveActive&&"insert"===e){var p;if(this._isSelectionEnabled()&&this._isDatabodyCellActive())p="cell"===this.m_options.getSelectionMode()?this.createRange(this.m_active.indexes,this.m_active.indexes,t[0],t[0]):this.createRange(i[0],i[0],t[0],t[0]),this.m_selectionFrontier=this.m_active.indexes,s.push(p);this.m_moveActive=!1}},M.prototype._simpleAdjustSelectionOnChange=function(e,t,i){let s=this.GetSelection(),n="insert"===e?1:-1;for(let o=0;o<t.length;o++){let l=t[o];for(let t=s.length-1;t>=0;t--){let o=s[t],r=o.startIndex[i],a=o.endIndex[i];if(r===l){if(a===l&&"delete"===e){s.splice(t,1);continue}if("delete"===e){let e=this._getKey(this._getAxisCellsByIndex(o.startIndex[i]+1,i)[0],i);o.startKey[i]=e}else o.startIndex[i]+=n;o.endIndex[i]+=n}else if(a===l){if("delete"===e){let e=this._getKey(this._getAxisCellsByIndex(o.endIndex[i]-1,i)[0],i);o.endKey[i]=e}o.endIndex[i]+=n}else l<r?(o.startIndex[i]+=n,o.endIndex[i]+=n):l<a&&(o.endIndex[i]+=n)}}},M.prototype._handleInsertRangeEvent=function(e){let t=e.axis,i=e.ranges;if(0===i.length)return void this.fillViewport();i.sort(function(e,t){return e.offset-t.offset});let s=i.shift(),n=s.offset,o=s.count,l=this._isAxisIndexInViewport(n,t);if(l===M.INSIDE){let i=n,l=o,r=this.m_startCol,a=this.m_endCol-this.m_startCol+1;"column"===t&&(i=this.m_startRow,l=this.m_endRow-this.m_startRow+1,r=n,a=o);let h,d=document.createDocumentFragment(),c=document.createDocumentFragment(),m=new Promise(function(e){h=e}),u={axis:t,range:s,headerFragment:d,endHeaderFragment:c,totalDimension:0,promiseResolve:h};this.fetchHeaders(t,n,d,c,o,{success:this._handleInsertRangeHeaderFetchSuccess.bind(this,u),error:this.handleCellsFetchError}),this.fetchCells(this.m_databody,i,r,l,a,{success:this._handleInsertRangeCellFetchSuccess.bind(this,u),error:this.handleCellsFetchError}),m.then(this._handleInsertRangeEvent.bind(this,e))}else if(l===M.BEFORE){let i=this.m_avgRowHeight,s=i*o,l=this.m_rowHeader,r=this.m_rowEndHeader;"row"===t?(this.m_endRow>=0&&(this.m_startRow+=o,this.m_endRow+=o,this.m_startRowPixel+=s,this.m_endRowPixel+=s),this.m_endRowHeader>=0&&(this.m_startRowHeader+=o,this.m_endRowHeader+=o,this.m_startRowHeaderPixel+=s,this.m_endRowHeaderPixel+=s),this.m_endRowEndHeader>=0&&(this.m_startRowEndHeader+=o,this.m_endRowEndHeader+=o,this.m_startRowEndHeaderPixel+=s,this.m_endRowEndHeaderPixel+=s)):(i=this.m_avgColWidth,s=i*o,l=this.m_colHeader,r=this.m_colEndHeader,this.m_endCol>=0&&(this.m_startCol+=o,this.m_endCol+=o,this.m_startColPixel+=s,this.m_endColPixel+=s),this.m_endColHeader>=0&&(this.m_startColHeader+=o,this.m_endColHeader+=o,this.m_startColHeaderPixel+=s,this.m_endColHeaderPixel+=s),this.m_endColEndHeader>=0&&(this.m_startColEndHeader+=o,this.m_endColEndHeader+=o,this.m_startColEndHeaderPixel+=s,this.m_endColEndHeaderPixel+=s));let a=new Array(o).fill(n).map((e,t)=>e+t),h=new Array(o).fill(i);this._modifyAndPushCells(a,h,t,l,r,!0),this._refreshDatabodyMap(),this._handleInsertRangeEvent(e)}else l===M.AFTER&&("row"===t?(this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1):(this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1),this._handleInsertRangeEvent(e))},M.prototype._handleUpdateRangeEvent=function(e){let t=e.ranges;if(0===t.length)return this._highlightActive(),this.applySelection(),void this.fillViewport();t.sort(function(e,t){return e.offset-t.offset});let i=t.shift(),s=i.rowOffset,n=i.columnOffset,o=-1===i.rowCount?this._getMaxBottom():i.rowCount,l=-1===i.columnCount?this._getMaxRight():i.columnCount,r=s+o-1,a=n+l-1,h=this._isAxisIndexInViewport(s,"row"),d=this._isAxisIndexInViewport(r,"row"),c=this._isAxisIndexInViewport(n,"column"),m=this._isAxisIndexInViewport(a,"column");if(h!==M.AFTER&&d!==M.BEFORE&&c!==M.AFTER&&m!==M.BEFORE){let t;h===M.BEFORE&&(s=this._getMaxTop()),d===M.AFTER&&(r=this._getMaxBottom()),c===M.BEFORE&&(n=this._getMaxLeft()),m===M.AFTER&&(a=this._getMaxRight()),o=r-s+1,l=a-n+1;let i=new Promise(function(e){t=e}),u={promiseResolve:t};this.fetchCells(this.m_databody,s,n,o,l,{success:this._handleUpdateRangeFetchSuccess.bind(this,u),error:this.handleCellsFetchError}),i.then(this._handleUpdateRangeEvent.bind(this,e))}else this._handleUpdateRangeEvent(e)},M.prototype._handleInsertRangeHeaderFetchSuccess=function(e,t,i,s){const n=i.axis;this._signalTaskEnd(),this.m_fetching[n]=!1;const o=this.getResources().isRTLMode()?"right":"left",l=i.start,r=e.headerFragment,a=e.endHeaderFragment,h="row"===n?"top":o;let d,c,m,u,_,p,g,f,C,y,v,E,w=0,S=0;if(null!=t){for(f=this.getMappedStyle("headercell"),"row"===n?(d=this.m_rowHeader,c=this.m_startRowHeader,y=this.m_rowHeaderLevelCount,f+=" "+this.getMappedStyle("rowheadercell")):(d=this.m_colHeader,c=this.m_startColHeader,y=this.m_columnHeaderLevelCount,f+=" "+this.getMappedStyle("colheadercell")),m=this._getHeaderByIndex(l,y-1,d,y,c),u=this.getElementDir(m,h),_=t.getCount(),C=this.getRendererOrTemplate(n);_-w>0;)"row"===n?(v=0,E=u+S):(v=u+S,E=0),p=l+w,g=this.buildLevelHeaders(r,p,0,v,E,!0,!1,C,t,n,f,y),w+=g.count,S+=g.totalHeaderDimension;S>e.totalDimension&&(e.totalDimension=S)}if(S=0,w=0,null!=s){for(f=this.getMappedStyle("endheadercell"),"row"===n?(d=this.m_rowEndHeader,c=this.m_startRowEndHeader,y=this.m_rowEndHeaderLevelCount,f+=" "+this.getMappedStyle("rowendheadercell")):(d=this.m_colEndHeader,c=this.m_startColEndHeader,y=this.m_columnEndHeaderLevelCount,f+=" "+this.getMappedStyle("colendheadercell")),m=this._getHeaderByIndex(l,y-1,d,y,c),u=this.getElementDir(m,h),_=s.getCount(),C=this.getRendererOrTemplate(n+"End");_-w>0;)"row"===n?(v=0,E=u+S):(v=u+S,E=0),p=l+w,g=this.buildLevelHeaders(a,p,0,v,E,!0,!1,C,s,n+"End",f,y),w+=g.count,S+=g.totalHeaderDimension;S>e.totalDimension&&(e.totalDimension=S)}},M.prototype._handleInsertRangeCellFetchSuccess=function(e,t,i){const s=e.range,n=e.axis,o=e.headerFragment,l=e.endHeaderFragment;let r=e.totalDimension;const a=this.getResources().isRTLMode()?"right":"left",h=document.createDocumentFragment();let d=this.m_rowHeader,c=this.m_rowEndHeader;if("column"===n&&(d=this.m_colHeader,c=this.m_colEndHeader),this._signalTaskEnd(),this.m_fetching.cells=!1,this.unhighlightSelection(),t){const e=i[0].start,s=i[1].start,o=this._getCellByIndex(this.createIndex(e,s)),l="row"===n?this.getElementDir(o,"top"):this.m_startRowPixel,d="row"===n?this.m_startColPixel:this.getElementDir(o,a),c=this._addCellsToFragment(h,t,e,l,s,d);r=Math.max(r,"row"===n?c.totalRowHeight:c.totalColumnWidth)}const m=s.offset,u=s.count;let _=new Array(u).fill(m).map((e,t)=>e+t),p=new Array(u).fill(r/u),g=h.childNodes.length,f=o.childNodes.length,C=l.childNodes.length;const y=this.m_databody.firstChild;if(this._modifyAndPushCells(_,p,n,d,c,!0),this._simpleAdjustSelectionOnChange("insert",_,n),h.childNodes.length&&(y.appendChild(h),this._refreshDatabodyMap()),this._insertHeaders(n,m,o,l),this.hideStatusText(),"row"===n){g&&(this.m_endRow+=u,this.m_endRowPixel+=r,this.m_stopRowFetch=!1),f&&(this.m_endRowHeader+=u,this.m_endRowHeaderPixel+=r,this.m_stopRowHeaderFetch=!1),C&&(this.m_endRowEndHeader+=u,this.m_endRowEndHeaderPixel+=r,this.m_stopRowEndHeaderFetch=!1);let e=this.getElementHeight(y)-r;this.setElementHeight(y,e),this.updateRowBanding()}else if("column"===n){g&&(this.m_endCol+=u,this.m_endColPixel+=r,this.m_stopColumnFetch=!1),f&&(this.m_endColHeader+=u,this.m_endColHeaderPixel+=r,this.m_stopColumnHeaderFetch=!1),C&&(this.m_endColEndHeader+=u,this.m_endColEndHeaderPixel+=r,this.m_stopColumnEndHeaderFetch=!1);var v=this.getElementWidth(y)-r;this.setElementWidth(y,v),this.updateColumnBanding()}this.applySelection(),this._resetHeaderHighLight(),this.resizeGrid(),e.promiseResolve()},M.prototype._insertHeaders=function(e,t,i,s){let n,o=this.m_rowHeader,l=this.m_rowEndHeader,r=this.m_rowHeaderLevelCount,a=this.m_rowEndHeaderLevelCount,h=this.m_startRowHeader,d=this.m_startRowEndHeader,c="height",m="top";"column"===e&&(o=this.m_colHeader,l=this.m_colEndHeader,r=this.m_columnHeaderLevelCount,a=this.m_columnEndHeaderLevelCount,h=this.m_startColHeader,d=this.m_startColEndHeader,c="width",m=this.getResources().isRTLMode()?"right":"left");let u=(e,t,i,s,n,o)=>{for(;e.childNodes.length;){let l,r=e.firstChild;l=this.m_utils.containsCSSClassName(r,this.getMappedStyle("groupingcontainer"))?r.firstChild:r;let a=l.extentInfo,h=a.more.before,d=a.more.after,c=l[this.getResources().getMappedAttribute("context")],m=c.index,_=c.extent,p=c.level;if(h){let e=this._getHeaderContainer(m-1,p,0,null,t,i),s=e.firstChild;l[this.getResources().getMappedAttribute("context")].extent+=_;let o=this._getAttribute(e,"extent",!0);this._setAttribute(e,"extent",o+_);let r=this.getElementDir(s,n),a=this.getElementDir(l,n);this.setElementDir(s,r+a,n)}else if(d){let e=this._getHeaderContainer(m+_,p,0,null,t,i),s=e.firstChild,r=s[this.getResources().getMappedAttribute("context")];r.extent+=_,r.index-=_;let a=this._getAttribute(e,"extent",!0);this._setAttribute(e,"extent",a+_);let h=this._getAttribute(e,"start",!0);this._setAttribute(e,"start",h-_);let d=this.getElementDir(s,n),c=this.getElementDir(l,n);this.setElementDir(s,d+c,n);let u=this.getElementDir(s,o);this.setElementDir(s,u-c,o)}else{let e=this._getHeaderContainer(m,p,0,null,t,i);if(e){let n=this._getHeaderByIndex(m-1,p,t,i,s);if(null===n||n.parentNode!==e){let t=p===i-1?e.childNodes[1]:e.childNodes[0];e.insertBefore(l,t)}else n.nextSibling&&n.nextSibling.parentNode===e?e.insertBefore(l,n.nextSibling):e.appendChild(l)}else{let e=this._getHeaderContainer(m-1,p,0,null,t,i);if(null===e){let e=t.firstChild;e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}else e.nextSibling?e.parentNode.insertBefore(r,e.nextSibling):e.parentNode.appendChild(r)}}if(h||d){let l=r.querySelector("."+this.getMappedStyle("groupingcontainer"));l&&u(l,t,i,s,n,o),e.removeChild(r)}}};i.childNodes.length&&(1===r?(n=this._getHeaderByIndex(t,r-1,o,r,h),o.firstChild.insertBefore(i,n)):u(i,o,r,h,c,m)),s.childNodes.length&&(1===a?(n=this._getHeaderByIndex(t,a-1,l,a,d),l.firstChild.insertBefore(s,n)):u(s,l,a,d,c,m))},M.prototype._handleModelInsertEvent=function(e,t){var i=this._isInViewport(e);if(i===M.INSIDE||i===M.AFTER&&e.row===this.m_endRow+1)null!=t.row&&(this._databodyEmpty()?(this.empty(),this.refresh(this.m_root)):(this._modifyAxisCellContextIndex("row",e.row,this.m_endRow-e.row+1,1),this._refreshDatabodyMap(),this.fetchHeaders("row",e.row,this.m_rowHeader,this.m_rowEndHeader,1,{success:this._handleHeaderInsertsFetchSuccess}),this.fetchCells(this.m_databody,e.row,this.m_startCol,1,this.m_endCol-this.m_startCol+1,{success:this._handleCellInsertsFetchSuccess})));else{if(i===M.BEFORE){this._modifyAxisCellContextIndex("row",0,this.m_endRow+1,1),this._refreshDatabodyMap(),this.m_startRow+=1,this.m_startRowHeader+=1,this.m_endRow+=1,this.m_endRowHeader+=1,this.m_startRowPixel+=this.m_avgRowHeight,this.m_startRowHeaderPixel+=this.m_avgRowHeight,this.m_endRowPixel+=this.m_avgRowHeight,this.m_endRowHeaderPixel+=this.m_avgRowHeight;var s=this.m_databody.firstChild.firstChild;null!=s&&this.pushRowsDown(s,this.m_avgRowHeight);var n=this.m_rowHeader.firstChild.firstChild;null!=n&&this.pushRowsDown(n,this.m_avgRowHeight);var o=this.m_rowEndHeader.firstChild.firstChild;null!=o&&this.pushRowsDown(o,this.m_avgRowHeight)}this.scrollToIndex(e)}},M.prototype._handleCellInsertsFetchSuccess=function(e,t){this.m_resizeRequired=!0,this.handleCellsFetchSuccess(e,t,this.m_endRow>=t[0].start);var i=t[0].start;this._scrollRowIntoViewport(i),this._isHighWatermarkScrolling()||this._cleanupViewport("top"),this.updateRowBanding(),this.m_stopRowFetch=!1,-1!==this.m_endRowHeader&&(this.m_stopRowHeaderFetch=!1),-1!==this.m_endRowEndHeader&&(this.m_stopRowEndHeaderFetch=!1),this.fillViewport()},M.prototype._handleHeaderInsertsFetchSuccess=function(e,t,i){this.m_resizeRequired=!0,this.handleHeadersFetchSuccess(e,t,i,this.m_endRowHeader>=t.start)},M.prototype._scrollRowIntoViewport=function(e){var t=this._getAxisCellsByIndex(e,"row");if(null!=t){var i=this._getViewportTop(),s=this._getViewportBottom(),n=this.getElementDir(t[0],"top"),o=i-n;(o>0||(o=s-n)<0)&&this.scrollDelta(0,o)}},M.prototype._handleModelInsertRangeEvent=function(e,t,i){var s,n,o,l,r,a,h,d,c=this._databodyEmpty(),m=e.getStart("row"),u=e.getCount("row"),_=e.getStart("column"),p=e.getCount("column");if(!(m>this.m_endRow+1))if(c)this.empty(),this.refresh(this.m_root);else if(this.m_utils.supportsTransitions()){if(null!=t){s=document.createDocumentFragment();var g=t.getCount();for(l=0,n=0,a=this.getMappedStyle("headercell")+" "+this.getMappedStyle("rowheadercell"),h=this.getRendererOrTemplate("row");g-n>0;)o=m+n,n+=(r=this.buildLevelHeaders(s,o,0,0,l,!0,m!==this.m_endRowHeader+1,h,t,"row",a,this.m_rowHeaderLevelCount)).count,l+=r.totalHeaderDimension}if(null!=i){d=document.createDocumentFragment();var f=i.getCount();for(l=0,n=0,a=this.getMappedStyle("endheadercell")+" "+this.getMappedStyle("rowendheadercell"),h=this.getRendererOrTemplate("rowEnd");f-n>0;)o=m+n,n+=(r=this.buildLevelHeaders(d,o,0,0,l,!0,m!==this.m_endRowEndHeader+1,h,i,"rowEnd",a,this.m_rowEndHeaderLevelCount)).count,l+=r.totalHeaderDimension}var C=document.createDocumentFragment();if(r=this._addCellsToFragment(C,e,m,0,_,0),!(0!==C.childNodes.length||null!=s&&0!==s.childNodes.length||null!=d&&0!==d.childNodes.length))return;this._insertRowsWithAnimation(C,s,d,m,e.getCount("row"),r.totalRowHeight,_,p)}else{var y={axis:"row",start:m,count:u},v={axis:"column",start:_,count:p};if(null!=t){var E={axis:"row",header:this.m_rowHeader,endHeader:this.m_rowEndHeader,start:m,count:t.getCount()};this.m_fetching.row=E,this._handleHeaderInsertsFetchSuccess(t,E,i)}this._modifyAxisCellContextIndex("row",m,this.m_endRow-m+1,u),this._refreshDatabodyMap(),this._handleCellInsertsFetchSuccess(e,[y,v])}},M.prototype._handleModelUpdateEvent=function(e,t,i){if(this._isInViewport(e)===M.INSIDE)if(null!=i){var s=this.getRendererOrTemplate("cell"),n=this.m_options.getColumnBandingInterval();this._updateCellsInRow(i,i.getStart("row"),s,this.m_startCol,n)}else-1!==this.m_endRowHeader&&this.fetchHeaders("row",e.row,this.m_rowHeader,this.m_rowEndHeader,1,{success:this._handleHeaderUpdatesFetchSuccess,error:this.handleHeadersFetchError}),this.fetchCells(this.m_databody,e.row,this.m_startCol,1,this.m_endCol-this.m_startCol+1,{success:this._handleCellUpdatesFetchSuccess,error:this.handleCellsFetchError})},M.prototype._handleHeaderUpdatesFetchSuccess=function(e,t,i){var s=t.axis;this.m_fetching[s]=!1;var n=t.start;this._replaceHeaders(this.buildRowHeaders.bind(this),e,this.m_rowHeader,n,this.m_startRowHeader),this._replaceHeaders(this.buildRowEndHeaders.bind(this),i,this.m_rowEndHeader,n,this.m_startRowEndHeader);var o=this.m_rowHeader.firstChild.childNodes[n-this.m_startRowHeader];null==this.m_active||"header"!==this.m_active.type||"row"!==this.m_active.axis&&"rowEnd"!==this.m_active.axis||this._getKey(o,"row")!==this.m_active.key||this._highlightActive(),this._signalTaskEnd()},M.prototype._replaceHeaders=function(e,t,i,s,n){if(null!=t){var o=e(i,t,s,1,!0,!0),l=i.firstChild,r=l.childNodes[s-n];l.replaceChild(o,r)}},M.prototype._handleCellUpdatesFetchSuccess=function(e,t){this.m_fetching.cells=!1;var i=t[0].start,s=this.getRendererOrTemplate("cell"),n=this.m_options.getColumnBandingInterval();this._updateCellsInRow(e,i,s,this.m_startCol,n),this._signalTaskEnd()},M.prototype._getUpdateAnimationDuration=function(){return M.UPDATE_ANIMATION_DURATION},M.prototype._updateCellsInRow=function(e,t,i,s,n){var o,l=this._getUpdateAnimationDuration(),r=this._getAxisCellsByIndex(t,"row"),a=this.getElementDir(r[0],"top");if(0!==l&&this.m_utils.supportsTransitions()){var h=this;h._signalTaskStart(),this._removeFromArray(r),o=document.createDocumentFragment(),this._addCellsToFragment(o,e,t,a,s,this.m_startColPixel),r=o.childNodes;for(var d=this.getElementWidth(this.m_databody),c=0;c<r.length;c++)this.addTransformMoveStyle(r[c],0,0,"linear",d,0,0);this._populateDatabody(this.m_databody.firstChild,o),r=this._getAxisCellsByIndex(t,"row"),this.hideStatusText();this._onTransitionEnd(r[r.length-1],function(){for(var e=0;e<r.length;e++)h.removeTransformMoveStyle(r[e]);h._isSelectionEnabled()&&h.applySelection(),h._highlightActive(),h._signalTaskEnd(),h._runModelEventQueue()},l),setTimeout(function(){for(var e=0;e<r.length;e++)h.addTransformMoveStyle(r[e],l+"ms",0,"linear",0,0,0)},0)}else this._removeFromArray(r),o=document.createDocumentFragment(),this._addCellsToFragment(o,e,t,a,s,this.m_startColPixel),this._populateDatabody(this.m_databody.firstChild,o),this._isSelectionEnabled()&&this.applySelection(),this._highlightActive(),this.hideStatusText()},M.prototype._handleUpdateRangeFetchSuccess=function(e,t,i){this.m_fetching.cells=!1;const s=i[0].start,n=s+t.getCount("row")-1,o=i[1].start,l=o+t.getCount("column")-1;var r=this._getCellsInRange(s,o,n,l);const a=this.getElementDir(r[0],"top"),h=this.getResources().isRTLMode()?"right":"left",d=this.getElementDir(r[0],h);this._removeFromArray(r);let c=document.createDocumentFragment();this._addCellsToFragment(c,t,s,a,o,d),this._populateDatabody(this.m_databody.firstChild,c),this.hideStatusText(),this._signalTaskEnd(),e.promiseResolve()},M.prototype._removeAndModifyCells=function(e,t){e.forEach(e=>{let i=e[this.getResources().getMappedAttribute("context")];1===i.extents[t]?this._remove(e):i.extent[t]-=1})},M.prototype._removeAndModifyHeaders=function(e,t,i,s,n){e.forEach(e=>{let o=e[this.getResources().getMappedAttribute("context")],l=o.extent,r=e.parentNode;if(1===l)this._remove(e),0===r.childNodes.length&&this._remove(r);else{let l=this.getElementDir(e,i);this.setElementDir(e,l-t,i),o.extent-=1;let a=o.index;if(a===n){o.index+=1;let i=this.getElementDir(e,s);this.setElementDir(e,i+t,s)}if(r.classList.contains(this.getMappedStyle("groupingcontainer"))){let e=this._getAttribute(r,"extent",!0),t=this._getAttribute(r,"start",!0);this._setAttribute(r,"extent",e-1),a===n&&this._setAttribute(r,"start",t+1)}}})},M.prototype._handleDeleteRangeEvent=function(e){let t=e.ranges,i=new Set,s=e.axis,n=this.getResources().isRTLMode()?"right":"left",o=this.m_selection;for(let e=0;e<o.length;e++)this._applyBorderClassesAroundRange(this.getElementsInRange(o[e]),o[e],!1,"Selected");t.forEach(function(e){let t=e.offset,s=e.count;for(var n=0;n<s;n++)i.add(t+n)});let l=Array.from(i);l.sort(function(e,t){return t-e});let r=0,a=0,h=0,d=0,c=0,m=this.m_rowHeader,u=this.m_startRowHeader,_=this.m_startRowEndHeader,p=this.m_rowEndHeader,g=this.m_rowHeaderLevelCount,f=this.m_rowEndHeaderLevelCount,C=this.m_avgRowHeight,y=-1!==this.m_endRow,v=-1!==this.m_endRowHeader,E=-1!==this.m_endRowEndHeader,w="height",S="top";"column"===s&&(u=this.m_startColHeader,_=this.m_startColEndHeader,m=this.m_colHeader,p=this.m_colEndHeader,g=this.m_columnHeaderLevelCount,f=this.m_columnEndHeaderLevelCount,C=this.m_avgColWidth,y=-1!==this.m_endCol,v=-1!==this.m_endColHeader,E=-1!==this.m_endColEndHeader,w="width",S=n);let H,x=[];if(this._isEditOrEnter()&&(H=this._getCellByIndex(this.m_active.indexes)),H){let t=this.getCellIndexes(H),i=!1;l.forEach(e=>{("row"===s&&e===t.row||"column"===s&&e===t.column)&&(i=!0)}),i&&(this._handleExitEditable(e,H),this._handleExitEdit(e,H))}for(let e=0;e<l.length;e++){let t=l[e],i=0,n=this._isAxisIndexInViewport(t,s);if(n===M.BEFORE||n===M.INSIDE){if(n===M.BEFORE)d+=1,i=C,r+=i;else if(n===M.INSIDE){c+=1,i=this.getElementDir(this._getCellOrHeaderByIndex(t,s),w),a+=i;let e=this._getAxisCellsByIndex(t,s);null!=e&&this._removeAndModifyCells(e,s);let n=this._getHeadersByIndex(t,m,g,u);n.length&&this._removeAndModifyHeaders(n,i,w,S,t);let o=this._getHeadersByIndex(t,p,f,_);o.length&&this._removeAndModifyHeaders(o,i,w,S,t)}x.unshift(i)}else n===M.AFTER&&"scroll"===this.m_options.getScrollPolicy()&&(h+=i)}this._adjustActive("delete",l),l.reverse(),this._modifyAndPushCells(l,x,s,m,p,!1),this._simpleAdjustSelectionOnChange("delete",l.reverse(),s),this._refreshDatabodyMap();let b={};Object.assign(b,this.m_active.indexes);let R=this._getCellByIndex(b);if("row"===s)for(;!R&&b.row-1>0;)b.row-=1,R=this._getCellByIndex(b);R&&(this._setActiveByIndex(b,e),this._highlightActive());var I=r+a+h,A=this.m_databody.firstChild;if("row"===s){y&&(this.m_startRow-=d,this.m_endRow=this.m_endRow-d-c,this.m_startRowPixel-=r,this.m_endRowPixel=this.m_endRowPixel-r-a,this.m_stopRowFetch=!1),v&&(this.m_startRowHeader-=d,this.m_endRowHeader=this.m_endRowHeader-d-c,this.m_startRowHeaderPixel-=r,this.m_endRowHeaderPixel=this.m_endRowHeaderPixel-r-a,this.m_stopRowHeaderFetch=!1),E&&(this.m_startRowEndHeader-=d,this.m_endRowEndHeader=this.m_endRowEndHeader-d-c,this.m_startRowEndHeaderPixel-=r,this.m_endRowEndHeaderPixel=this.m_endRowEndHeaderPixel-r-a,this.m_stopRowEndHeaderFetch=!1);var L=this.getElementHeight(A)-I;this.setElementHeight(A,L),this.updateRowBanding()}else if("column"===s){y&&(this.m_startCol-=d,this.m_endCol=this.m_endCol-d-c,this.m_startColPixel-=r,this.m_endColPixel=this.m_endColPixel-r-a,this.m_stopColumnFetch=!1),v&&(this.m_startColHeader-=d,this.m_endColHeader=this.m_endColHeader-d-c,this.m_startColHeaderPixel-=r,this.m_endColHeaderPixel=this.m_endColHeaderPixel-r-a,this.m_stopColumnHeaderFetch=!1),E&&(this.m_startColEndHeader-=d,this.m_endColEndHeader=this.m_endColEndHeader-d-c,this.m_startColEndHeaderPixel-=r,this.m_endColEndHeaderPixel=this.m_endColEndHeaderPixel-r-a,this.m_stopColumnEndHeaderFetch=!1);var D=this.getElementWidth(A)-I;this.setElementWidth(A,D),this.updateColumnBanding()}this.applySelection(),this.m_utils.isTouchDevice()&&(this.GetSelection().length?this._moveTouchSelectionAffordance():this._removeTouchSelectionAffordance(!0)),this.resizeGrid(),this.m_resizeRequired=!0,this.fillViewport()},M.prototype._handleModelDeleteEvent=function(e,t,i){var s,n,o,l;Array.isArray(t)||(t=new Array(t),e=new Array(e));for(var r=0,a=0,h=0,d=0,c=0,m=0;m<t.length;m++){var u=t[m],_=e[m];if(null!=u.row){var p=0,g=u.row,f=this._isInViewport(_);f===M.BEFORE?(this._modifyAxisCellContextIndex("row",this.m_startRow,this.m_endRow-this.m_startRow+1,-1),d+=1,r+=this.m_avgRowHeight,this.m_startRowPixel-=this.m_avgRowHeight,this.m_endRowPixel-=this.m_avgRowHeight,-1!==this.m_endRowHeader&&(this.m_startRowHeaderPixel-=this.m_avgRowHeight,this.m_endRowHeaderPixel-=this.m_avgRowHeight),null!=(l=this._getAxisCellsByKey(g,"row"))&&this.pushRowsUp(this.m_startRow,this.m_avgRowHeight),null!=(n=this.m_rowHeader.firstChild.firstChild)&&this.pushRowHeadersUp(n,this.m_avgRowHeight),null!=(o=this.m_rowEndHeader.firstChild.firstChild)&&this.pushRowHeadersUp(o,this.m_avgRowHeight)):f===M.INSIDE?(c+=1,null!=(l=this._getAxisCellsByKey(g,"row"))&&(p=this.calculateRowHeight(l[0]),_=l[0][this.getResources().getMappedAttribute("context")].indexes.row,this._modifyAxisCellContextIndex("row",_+1,this.m_endRow-_,-1),this._removeFromArray(l),this.pushRowsUp(_,p),this.m_endRowPixel-=p),null!=(n=this._findHeaderByKey(g,this.m_rowHeader,this.getMappedStyle("rowheadercell")))&&(p=this.calculateRowHeaderHeight(n),s=n.nextSibling,this._remove(n),this.pushRowHeadersUp(s,p),this.m_endRowHeaderPixel-=p),null!=(o=this._findHeaderByKey(g,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")))&&(p=this.calculateRowHeaderHeight(o),s=o.nextSibling,this._remove(o),this.pushRowHeadersUp(s,p),this.m_endRowEndHeaderPixel-=p),a+=p):"scroll"===this.m_options.getScrollPolicy()&&(h+=this.m_avgRowHeight)}}this._refreshDatabodyMap(),this.m_startRow-=d,this.m_endRow=this.m_endRow-d-c,-1!==this.m_endRowHeader&&(this.m_startRowHeader-=d,this.m_endRowHeader=this.m_endRowHeader-d-c),-1!==this.m_endRowEndHeader&&(this.m_startRowEndHeader-=d,this.m_endRowEndHeader=this.m_endRowEndHeader-d-c);var C=r+a+h,y=this.m_databody.firstChild,v=this.getElementHeight(y)-C;this.setElementHeight(y,v),this.resizeGrid(),i||!0===this.m_moveActive||(this.m_resizeRequired=!0,this.m_stopRowFetch=!1,-1!==this.m_endRowHeader&&(this.m_stopRowHeaderFetch=!1),-1!==this.m_endRowEndHeader&&(this.m_stopRowEndHeaderFetch=!1),this.fillViewport()),this.updateRowBanding()},M.prototype._handleModelDeleteEventWithAnimation=function(e,t){this._collapseRowsWithAnimation(e,t)},M.prototype._collapseRowsWithAnimation=function(e,t){var i,s,n,o,l,r,a,h;let d=e.indexes;if(0!==t.length){var c=this;c._signalTaskStart();var m=this.m_processingEventQueue?1:M.COLLAPSE_ANIMATION_DURATION,u=[],_=0,p=-1!==this.m_endRowHeader,g=-1!==this.m_endRowEndHeader,f=this.m_databody.firstChild,C=this._getIndex(this._getAxisCellsByKey(t[0].row,"row")[0],"row")-1;for(s=C;s>=this.m_startRow&&(i=this._getAxisCellsByIndex(s,"row"),!(this.getElementDir(i[0],"top")+this.getElementHeight(i[0])<this.m_currentScrollTop));s--)for(n=0;n<i.length;n++)this.changeStyleProperty(i[n],this.getCssSupport("z-index"),10);if(p)for(l=[],o=this._findHeaderByKey(t[0].row,this.m_rowHeader,this.getMappedStyle("rowheadercell")).previousSibling;o&&!(this.getElementDir(o,"top")+this.getElementHeight(o)<this.m_currentScrollTop);)this.changeStyleProperty(o,this.getCssSupport("z-index"),10),o=o.previousSibling;if(g)for(r=[],o=this._findHeaderByKey(t[0].row,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")).previousSibling;o&&!(this.getElementDir(o,"top")+this.getElementHeight(o)<this.m_currentScrollTop);)this.changeStyleProperty(o,this.getCssSupport("z-index"),10),o=o.previousSibling;for(s=0;s<t.length;s++){var y=t[s].row;if((i=this._getAxisCellsByKey(y,"row")).length)for(u.push(i),_+=this.getElementHeight(i[0]),n=0;n<i.length;n++)this.setElementDir(i[n],this.getElementDir(i[n],"top")-_,"top"),this.addTransformMoveStyle(i[n],0,0,"linear",0,_,0);p&&null!=(a=this._findHeaderByKey(y,this.m_rowHeader,this.getMappedStyle("rowheadercell")))&&(l.push(a),this.setElementDir(a,this.getElementDir(a,"top")-_,"top"),this.addTransformMoveStyle(a,0,0,"linear",0,_,0)),g&&null!=(h=this._findHeaderByKey(y,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")))&&(r.push(h),this.setElementDir(h,this.getElementDir(h,"top")-_,"top"),this.addTransformMoveStyle(h,0,0,"linear",0,_,0))}for(s=C+t.length+1;s<=this.m_endRow;s++){for(i=this._getAxisCellsByIndex(s,"row"),n=0;n<i.length;n++)this.setElementDir(i[n],this.getElementDir(i[n],"top")-_,"top"),this.addTransformMoveStyle(i[n],0,0,"linear",0,_,0);p&&(a=a.nextSibling,this.setElementDir(a,this.getElementDir(a,"top")-_,"top"),this.addTransformMoveStyle(a,0,0,"linear",0,_,0)),g&&(h=h.nextSibling,this.setElementDir(h,this.getElementDir(h,"top")-_,"top"),this.addTransformMoveStyle(h,0,0,"linear",0,_,0))}var v=this._getCellByIndex(this.createIndex(this.m_endRow,this.m_endCol));c._onTransitionEnd(v,function(){u.length&&c._modifyAxisCellContextIndex("row",C+t.length+1,c.m_endRow-(C+t.length),-1*t.length),p&&l.length&&c._modifyAxisHeaderContextIndex("row",C+t.length+1,c.m_endRow-(C+t.length),-1*t.length),g&&r.length&&c._modifyAxisHeaderContextIndex("rowEnd",C+t.length+1,c.m_endRow-(C+t.length),-1*t.length);for(var e=0;e<u.length;e++){for(var i=0;i<u[e].length;i++)c._remove(u[e][i]);p&&c._remove(l[e]),g&&c._remove(r[e])}c._adjustActive("delete",d),c._refreshDatabodyMap(),c._isEditOrEnter()&&(c._highlightActiveObject(c.m_active,c.m_prevActive),c._updateEdgeCellBorders("")),c.m_endRow-=u.length,c.m_endRowPixel-=_,c.m_stopRowFetch=!1,p&&(c.m_endRowHeader-=l.length,c.m_endRowHeaderPixel-=_,c.m_stopRowHeaderFetch=!1),g&&(c.m_endRowEndHeader-=l.length,c.m_endRowEndHeaderPixel-=_,c.m_stopRowEndHeaderFetch=!1),c.setElementHeight(f,c.m_endRowPixel-c.m_startRowPixel),c.resizeGrid(),c.updateRowBanding(),null==c.m_modelEvents||0!==c.m_modelEvents.length||c.m_moveActive||c.fillViewport(),c._handleAnimationEnd()},m),this.m_animating=!0,setTimeout(function(){for(s=C+1;s<=c.m_endRow;s++){for(i=c._getAxisCellsByIndex(s,"row"),n=0;n<i.length;n++)c.addTransformMoveStyle(i[n],m+"ms",0,"ease-out",0,0,0);p&&(a=c._getHeaderByIndex(s,0,c.m_rowHeader,c.m_rowHeaderLevelCount,c.m_startRowHeader),c.addTransformMoveStyle(a,m+"ms",0,"ease-out",0,0,0)),g&&(h=c._getHeaderByIndex(s,0,c.m_rowEndHeader,c.m_rowEndHeaderLevelCount,c.m_startRowEndHeader),c.addTransformMoveStyle(h,m+"ms",0,"ease-out",0,0,0))}},0)}},M.prototype._handleAnimationEnd=function(){var e,t=this.m_databody.firstChild,i=this.m_rowHeader.firstChild,s=this.m_rowEndHeader.firstChild;for(e=0;e<t.childNodes.length;e++)this.removeTransformMoveStyle(t.childNodes[e]),this.changeStyleProperty(t.childNodes[e],this.getCssSupport("z-index"),null,"remove");if(-1!==this.m_endRowHeader)for(e=0;e<i.childNodes.length;e++)this.removeTransformMoveStyle(i.childNodes[e]),this.changeStyleProperty(i.childNodes[e],this.getCssSupport("z-index"),null,"remove");if(-1!==this.m_endRowEndHeader)for(e=0;e<s.childNodes.length;e++)this.removeTransformMoveStyle(s.childNodes[e]),this.changeStyleProperty(s.childNodes[e],this.getCssSupport("z-index"),null,"remove");this.m_animating=!1,this._runModelEventQueue(),this._signalTaskEnd()},M.prototype._getCellOrHeaderByKey=function(e,t){var i=null,s=this._getAxisCellsByKey(e,t,!0);return null!=s&&s.length>0&&(i=s[0]),null==i&&("row"===t?null==(i=this._findHeaderByKey(e,this.m_rowHeader,this.getMappedStyle("rowheadercell")))&&(i=this._findHeaderByKey(e,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell"))):"column"===t&&null==(i=this._findHeaderByKey(e,this.m_colHeader,this.getMappedStyle("colheadercell")))&&(i=this._findHeaderByKey(e,this.m_colEndHeader,this.getMappedStyle("colendheadercell")))),i},M.prototype._findHeaderByKey=function(e,t,i){if(null==t)return null;var s;s=t.getElementsByClassName?t.getElementsByClassName(i):t.childNodes;for(var n=0;n<s.length;n++){var o=s[n],l=this._getKey(o);if(this._shallowThenDeepCompare(l,e))return o}return null},M.prototype._handleModelRefreshEvent=function(){var e=this.getVisibility();this.m_focusOnRefresh=this.m_root.contains(document.activeElement),this.m_updateScrollPostionOnRefreshCallback(),e===M.VISIBILITY_STATE_VISIBLE?(this.empty(),null!=this.m_root.offsetParent?this.refresh(this.m_root):this.setVisibility(M.VISIBILITY_STATE_REFRESH)):e===M.VISIBILITY_STATE_HIDDEN&&(this.empty(),this.setVisibility(M.VISIBILITY_STATE_REFRESH))},M.prototype._handleModelSyncEvent=function(e){var t=e.pageSize;this.m_fetching={},this.m_startRow=0,this.m_endRow=-1,this.m_startRowHeader=0,this.m_endRowHeader=-1,this.m_startRowEndHeader=0,this.m_endRowEndHeader=-1,this.m_startRowPixel=0,this.m_endRowPixel=0,this.m_startRowHeaderPixel=0,this.m_endRowHeaderPixel=0,this.m_startRowEndHeaderPixel=0,this.m_endRowEndHeaderPixel=0,this.m_startCol=0,this.m_endCol=-1,this.m_startColHeader=0,this.m_endColHeader=-1,this.m_startColEndHeader=0,this.m_endColEndHeader=-1,this.m_startColPixel=0,this.m_endColPixel=0,this.m_startColHeaderPixel=0,this.m_endColHeaderPixel=0,this.m_startColEndHeaderPixel=0,this.m_endColEndHeaderPixel=0,this.m_rowHeaderLevelCount=void 0,this.m_columnHeaderLevelCount=void 0,this.m_rowEndHeaderLevelCount=void 0,this.m_columnEndHeaderLevelCount=void 0,this.m_avgRowHeight=void 0,this.m_avgColWidth=void 0,this.m_isEstimateRowCount=void 0,this.m_isEstimateColumnCount=void 0,this.m_stopRowFetch=!1,this.m_stopRowHeaderFetch=!1,this.m_stopRowEndHeaderFetch=!1,this.m_stopColumnFetch=!1,this.m_stopColumnHeaderFetch=!1,this.m_stopColumnEndHeaderFetch=!1,this._clearScrollPositionKeys(),this.m_selection=null,this.m_selectionRange=null,this.m_active=null,this.m_prevActive=null,this.m_trueIndex={},null!=this.m_empty&&(this.m_root.removeChild(this.m_empty),this.m_empty=null),this._showHeader(this.m_rowHeader),this._showHeader(this.m_colHeader),this._showHeader(this.m_rowEndHeader),this._showHeader(this.m_colEndHeader),this._emptyHeaders(),this._emptyHeaderLabels();var i=this.m_databody.firstChild;null!=i&&this._emptyDatabody(i),this.m_initialized=!1,this.fetchHeaders("row",0,this.m_rowHeader,this.m_rowEndHeader,t,{success:function(e,t,i){this.handleHeadersFetchSuccess(e,t,i,!1)}}),this.fetchHeaders("column",0,this.m_colHeader,this.m_colEndHeader,void 0,{success:function(e,t,i){this.handleHeadersFetchSuccess(e,t,i,!1)}}),this.fetchCells(this.m_databody,0,0,t,null,{success:function(e,t){this.handleCellsFetchSuccess(e,t)}})},M.prototype._emptyHeaders=function(){var e=this.m_rowHeader.firstChild,t=this.m_rowEndHeader.firstChild;null!=e&&this.m_utils.empty(e),null!=t&&this.m_utils.empty(t);var i=this.m_colHeader.firstChild,s=this.m_colEndHeader.firstChild;null!=i&&this.m_utils.empty(i),null!=s&&this.m_utils.empty(s)},M.prototype._emptyHeaderLabels=function(){var e=this.m_headerLabels.row,t=this.m_headerLabels.rowEnd,i=this.m_headerLabels.column,s=this.m_headerLabels.columnEnd;e&&e.length&&e.forEach(e=>{this.m_utils.empty(e)}),t&&t.length&&t.forEach(e=>{this.m_utils.empty(e)}),i&&i.length&&i.forEach(e=>{this.m_utils.empty(e)}),s&&s.length&&s.forEach(e=>{this.m_utils.empty(e)})},M.prototype._setActiveByIndex=function(e,t,i,s,n){return this._setActive(this._getCellByIndex(e),{type:"cell",indexes:e},t,i,s,n)},M.prototype._updateActive=function(e,t,i){var s;if(null==e)this._setActive(null,null,null,!0,!1,i);else if(null!=e.keys)s=this._getCellByKeys(e.keys);else if(null!=e.indexes)s=this._getCellByIndex(e.indexes);else if(null!=e.axis){var n=null==e.level?0:e.level;"column"===e.axis?null!=e.key?s=this._findHeaderByKey(e.key,this.m_colHeader,this.getMappedStyle("colheadercell")):null!=e.index&&(s=this._getHeaderByIndex(e.index,n,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader)):"row"===e.axis?null!=e.key?s=this._findHeaderByKey(e.key,this.m_rowHeader,this.getMappedStyle("rowheadercell")):null!=e.index&&(s=this._getHeaderByIndex(e.index,n,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader)):"columnEnd"===e.axis?null!=e.key?s=this._findHeaderByKey(e.key,this.m_colEndHeader,this.getMappedStyle("colendheadercell")):null!=e.index&&(s=this._getHeaderByIndex(e.index,n,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader)):"rowEnd"===e.axis&&(null!=e.key?s=this._findHeaderByKey(e.key,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")):null!=e.index&&(s=this._getHeaderByIndex(e.index,n,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader)))}null!=s&&(t||(this.m_shouldFocus=!1),this._setActive(s,e,null,!0,!1,i))},M.prototype._setActive=function(e,t,i,s,n,o){var l;if(null==t||o||this._scrollToActive(t),null!=e)if(l=this._createActiveObject(e),this._compareActive(l,this.m_active)){if(n||this._fireBeforeCurrentCellEvent(l,this.m_active,i))return this.m_prevActive=this.m_active,this.m_active=l,i&&"mousedown"===i.type&&(this.m_trueIndex=null),s&&this._isSelectionEnabled()&&this._clearSelection(i),this._unhighlightActiveObject(this.m_prevActive),this._highlightActiveObject(this.m_active,this.m_prevActive),this._manageMoveCursor(),this._isGridEditable()&&"cell"===l.type&&(this._setEditableClone(e),this._updateEdgeCellBorders("")),n||this._fireCurrentCellEvent(l,i),!0}else this._highlightActive();else if(!this.m_scrollIndexAfterFetch&&!this.m_scrollHeaderAfterFetch)return(n||this._fireBeforeCurrentCellEvent(l,this.m_active,i))&&(this.m_prevActive=this.m_active,this.m_active=null,this._unhighlightActiveObject(this.m_prevActive),n||this._fireCurrentCellEvent(l,i)),!0;return!1},M.prototype._createActiveObject=function(e){var t=e[this.getResources().getMappedAttribute("context")];return this.m_utils.containsCSSClassName(e,this.getMappedStyle("headercell"))||this.m_utils.containsCSSClassName(e,this.getMappedStyle("endheadercell"))?{type:"header",axis:t.axis,index:this.getHeaderCellIndex(e),key:t.key,level:t.level}:this.m_utils.containsCSSClassName(e,this.getMappedStyle("headerlabel"))?{type:"label",axis:t.axis,level:t.level}:{type:"cell",indexes:{row:t.indexes.row,column:t.indexes.column},keys:{row:t.keys.row,column:t.keys.column},extents:{row:t.extents.row,column:t.extents.column}}},M.prototype._getActiveElement=function(){return this._getElementFromActiveObject(this.m_active)},M.prototype._getElementFromActiveObject=function(e){if(null!=e){if("header"!==e.type)return"label"===e.type?this._getLabel(e.axis,e.level):this._getCellByIndex(e.indexes);if("row"===e.axis)return this._findHeaderByKey(e.key,this.m_rowHeader,this.getMappedStyle("rowheadercell"));if("column"===e.axis)return this._findHeaderByKey(e.key,this.m_colHeader,this.getMappedStyle("colheadercell"));if("rowEnd"===e.axis)return this._findHeaderByKey(e.key,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell"));if("columnEnd"===e.axis)return this._findHeaderByKey(e.key,this.m_colEndHeader,this.getMappedStyle("colendheadercell"))}return null},M.prototype._compareActive=function(e,t){if(null==e&&null==t)return!1;if(null==e&&null!=t||null!=e&&null==t)return!0;if(e.type!==t.type)return!0;if("header"===e.type){if(e.index!==t.index||e.key!==t.key||e.axis!==t.axis||e.level!==t.level)return!0}else if("label"===e.type){if(e.axis!==t.axis||e.level!==t.level)return!0}else if(e.indexes.row!==t.indexes.row||e.indexes.column!==t.indexes.column||e.keys.row!==t.keys.row||e.keys.column!==t.keys.column)return!0;return!1},M.prototype._fireBeforeCurrentCellEvent=function(e,t,i){var s={event:i,ui:{currentCell:e,previousCurrentCell:t}};return this.fireEvent("beforeCurrentCell",s)},M.prototype._fireCurrentCellEvent=function(e,t){var i={event:t,ui:e};return this.fireEvent("currentCell",i)},M.prototype._isDatabodyCellActive=function(){return null!=this.m_active&&"cell"===this.m_active.type},M.prototype._updateActiveContext=function(e,t){var i,s,n,o={};if("header"===e.type){i=e.axis;var l=e.index;s=e.level,"row"===e.axis?(this.m_rowHeaderLevelCount>1&&(null!=t&&s===t.level&&i===t.axis||(o.level=s)),null!=t&&l===t.index&&i===t.axis||(o.rowHeader=l)):"column"===i?(this.m_columnHeaderLevelCount>1&&(null!=t&&s===t.level&&i===t.axis||(o.level=s)),null!=t&&l===t.index&&i===t.axis||(o.columnHeader=l)):"rowEnd"===e.axis?(this.m_rowEndHeaderLevelCount>1&&(null!=t&&s===t.level&&i===t.axis||(o.level=s)),null!=t&&l===t.index&&i===t.axis||(o.rowEndHeader=l)):"columnEnd"===i&&(this.m_columnEndHeaderLevelCount>1&&(null!=t&&s===t.level&&i===t.axis||(o.level=s)),null!=t&&l===t.index&&i===t.axis||(o.columnEndHeader=l)),this._updateContextInfo(o,n)}else"cell"===e.type?(null==t||"cell"!==t.type||null==e||this.m_externalFocus||(e.indexes.row===t.indexes.row?n="row":e.indexes.column===t.indexes.column&&(n="column")),this._updateContextInfo(e,n)):"label"===e.type&&(i=e.axis,s=e.level,(null==t||"label"!==t.type||"label"===t.type&&t.axis!==i||this.m_externalFocus)&&("column"===i?o.columnHeaderLabel=s:"row"===i?o.rowHeaderLabel=s:"rowEnd"===i?o.rowEndHeaderLabel=s:"columnEnd"===i&&(o.columnEndHeaderLabel=s)),this._updateContextInfo(o,n))},M.prototype.handleDatabodyClickActive=function(e){var t=e.target,i=this.findCell(t);null!=i&&this._setActive(i,this._createActiveObject(i),e)},M.prototype.handleHeaderClickActive=function(e,t){var i=e.target,s=this.findHeader(i);null!=s&&(t||this._clearSelection(e),this._setActive(s,this._createActiveObject(s),e))},M.prototype._scrollToActive=function(e){"header"===e.type?this.scrollToHeader(e):"cell"===e.type&&this.scrollToIndex(e.indexes)},M.prototype._getCellByKeys=function(e){if(null==e||null==e.row||null==e.column||null==this.m_databody||null==this.m_databody.firstChild)return null;for(var t=this.m_databody.firstChild.getElementsByClassName(this.getMappedStyle("cell")),i=0;i<t.length;i++){var s=t[i],n=this._getKey(s,"row");if(this._shallowThenDeepCompare(n,e.row)){var o=this._getKey(s,"column");if(this._shallowThenDeepCompare(o,e.column))return s}}return null},M.prototype._shallowThenDeepCompare=function(e,t){return e===t||this._compareValuesCallback(e,t)},M.prototype.getCellKeys=function(e){var t=e[this.getResources().getMappedAttribute("context")];return this.createIndex(t.keys.row,t.keys.column)},M.prototype.getCellIndexes=function(e){var t=e[this.getResources().getMappedAttribute("context")];return this.createIndex(t.indexes.row,t.indexes.column)},M.prototype.getCellExtents=function(e){var t=e[this.getResources().getMappedAttribute("context")];return this.createIndex(t.extents.row,t.extents.column)},M.prototype.getCellEndIndexes=function(e){var t=this.getCellIndexes(e),i=this.getCellExtents(e);return this.createIndex(t.row+(i.row-1),t.column+(i.column-1))},M.prototype._getIndex=function(e,t){if(null!=e){if(null==t||!this.m_utils.containsCSSClassName(e,this.getMappedStyle("cell")))return this.getHeaderCellIndex(e);var i=e[this.getResources().getMappedAttribute("context")];if("row"===t)return i.indexes.row;if("column"===t)return i.indexes.column}return null},M.prototype._getExtent=function(e,t){if(null!=e){if(null==t||!this.m_utils.containsCSSClassName(e,this.getMappedStyle("cell")))return parseInt(this._getAttribute(e,"extent",!0),10);var i=e[this.getResources().getMappedAttribute("context")];if("row"===t)return i.extents.row;if("column"===t)return i.extents.column}return null},M.prototype.getHeaderCellIndex=function(e){var t,i,s;switch(this.getHeaderCellAxis(e)){case"column":t=this.m_columnHeaderLevelCount,i=this.m_startColHeader;break;case"row":t=this.m_rowHeaderLevelCount,i=this.m_startRowHeader;break;case"columnEnd":t=this.m_columnEndHeaderLevelCount,i=this.m_startColEndHeader;break;case"rowEnd":t=this.m_rowEndHeaderLevelCount,i=this.m_startRowEndHeader;break;default:return-1}if(t>1){if(s=this._getAttribute(e.parentNode,"start",!0),e===e.parentNode.firstChild)return s;s-=1}else s=i;for(;e.previousSibling;)s+=1,e=e.previousSibling;return s},M.prototype.getHeaderCellAxis=function(e){return this.m_utils.containsCSSClassName(e,this.getMappedStyle("colheadercell"))?"column":this.m_utils.containsCSSClassName(e,this.getMappedStyle("rowheadercell"))?"row":this.m_utils.containsCSSClassName(e,this.getMappedStyle("rowendheadercell"))?"rowEnd":this.m_utils.containsCSSClassName(e,this.getMappedStyle("colendheadercell"))?"columnEnd":null},M.prototype.getHeaderCellLevel=function(e){if(this.m_utils.containsCSSClassName(e,this.getMappedStyle("colheadercell"))){if(1===this.m_columnHeaderLevelCount)return 0}else if(this.m_utils.containsCSSClassName(e,this.getMappedStyle("rowheadercell"))){if(1===this.m_rowHeaderLevelCount)return 0}else if(this.m_utils.containsCSSClassName(e,this.getMappedStyle("colendheadercell"))){if(1===this.m_columnEndHeaderLevelCount)return 0}else if(this.m_utils.containsCSSClassName(e,this.getMappedStyle("rowendheadercell"))&&1===this.m_rowEndHeaderLevelCount)return 0;var t=this._getAttribute(e.parentNode,"level",!0);return e===e.parentNode.firstChild?t:t+this.getHeaderCellDepth(e.parentNode.firstChild)},M.prototype.getHeaderCellDepth=function(e){return this._getAttribute(e,"depth",!0)},M.prototype.getHeaderLabelLevel=function(e){let t=e[this.getResources().getMappedAttribute("context")];return t?t.level:null},M.prototype.getHeaderLabelAxis=function(e){let t=e[this.getResources().getMappedAttribute("context")];return t?t.axis:null},M.prototype._getResizeHeaderMode=function(e){var t="row";return(this.m_utils.containsCSSClassName(e,this.getMappedStyle("colheadercell"))||this.m_utils.containsCSSClassName(e,this.getMappedStyle("colendheadercell"))||this.m_utils.containsCSSClassName(e,this.getMappedStyle("columnheaderlabel"))||this.m_utils.containsCSSClassName(e,this.getMappedStyle("columnendheaderlabel")))&&(t="column"),t},M.prototype.findCellOrHeader=function(e){var t=this.findCell(e);return null==t&&(t=this.findHeader(e)),t},M.prototype.findCell=function(e){return this.find(e,"cell")},M.prototype.findLabel=function(e){return this.find(e,"headerlabel")},M.prototype.find=function(e,t,i){return null==e||e===this.getRootElement()?null:(null==i&&(i=this.getMappedStyle(t)),null==i?null:this.m_utils.containsCSSClassName(e,i)?e:this.find(e.parentNode,t,i))},M.prototype._highlightActive=function(e){this._highlightActiveObject(this.m_active,this.m_prevActive,e)},M.prototype._unhighlightActive=function(e){this._unhighlightActiveObject(this.m_active,e)},M.prototype._highlightActiveObject=function(e,t,i){if(null==i&&this.m_utils.shouldOffsetOutline()&&(i=["offsetOutline"]),null!=e){var s=this._getElementFromActiveObject(e);null!=s&&(this.m_focusInHandler(s),null!=i&&this._highlightElement(s,i),this._isCellEditable()&&"cell"===e.type&&this._applyBorderClassesAroundRange(s,{startIndex:e.indexes},!0,"Edit"),this._setAriaProperties(e,t,s))}},M.prototype._unhighlightActiveObject=function(e,t){if(null==t&&this.m_utils.shouldOffsetOutline()&&(t=["offsetOutline"]),null!=e){var i=this._getElementFromActiveObject(e);null!=i&&(this.m_focusOutHandler(i),null!=t&&this._unhighlightElement(i,t),this._isGridEditable()&&"cell"===e.type&&this._applyBorderClassesAroundRange(i,{startIndex:e.indexes},!1,"Edit"),this._unsetAriaProperties(i))}},M.prototype._highlightCellsAlongAxis=function(e,t,i,s,n){for(var o="key"===i?this._getAxisCellsByKey(e,t):this._getAxisCellsByIndex(e,t),l=0;l<o.length;l++)"add"===s?this._highlightElement(o[l],n):this._unhighlightElement(o[l],n)},M.prototype._highlightElement=function(e,t){for(var i=0;i<t.length;i++){var s=this.getMappedStyle(t[i]);this.m_utils.addCSSClassName(e,s)}},M.prototype._unhighlightElement=function(e,t){for(var i=0;i<t.length;i++){var s=this.getMappedStyle(t[i]);this.m_utils.removeCSSClassName(e,s)}},M.prototype._unhighlightElementsByClassName=function(e,t){if(e.length&&t.length)for(var i=0;i<e.length;i++)this._unhighlightElement(e[i],t)},M.prototype._setAriaProperties=function(e,t,i){var s=this.getLabelledBy(e,t,i);this._updateActiveContext(e,t),i.setAttribute("tabIndex",0),i.setAttribute("aria-labelledby",s),null!=this.m_cellToFocus&&this.m_cellToFocus===i||!1===this.m_shouldFocus||i.focus(),this.m_shouldFocus=null},M.prototype._unsetAriaProperties=function(e){null!=e&&(e.setAttribute("tabIndex",-1),e.removeAttribute("aria-labelledby"))},M.prototype.getLabelledBy=function(e,t,i){var s,n,o,l,r="",a=[];const h=i[this.getResources().getMappedAttribute("metadata")];if("header"===e.type){null==t||"header"!==t.type||this.m_externalFocus||("row"===t.axis?s=this._getHeaderByIndex(t.index,t.level,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader):"column"===t.axis?s=this._getHeaderByIndex(t.index,t.level,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader):"rowEnd"===t.axis?s=this._getHeaderByIndex(t.index,t.level,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader):"columnEnd"===t.axis&&(s=this._getHeaderByIndex(t.index,t.level,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader))),r=[this.createSubId("context"),this._getHeaderAndParentIds(i,s)].join(" ");var d=i.getAttribute(this.getResources().getMappedAttribute("sortDir"));"ascending"===d?(n="accessibleSortAscending",r=r+" "+this.createSubId("state")):"descending"===d?(n="accessibleSortDescending",r=r+" "+this.createSubId("state")):this._getAttribute(i,"sortable")&&(n="accessibleSortable",r=r+" "+this.createSubId("state")),null!=n&&a.push({key:n,args:{id:""}}),h&&h.metadata&&("expanded"===h.metadata.expanded?a.push({key:"accessibleExpanded",args:{}}):"collapsed"===h.metadata.expanded&&a.push({key:"accessibleCollapsed",args:{}})),i.setAttribute("tabIndex",0)}else if("label"===e.type)r=[this.createSubId("context"),this._getActiveElement().id].join(" ");else{null!=t&&("header"===t.type?(o="row"===t.axis?t.index:null,l="column"===t.axis?t.index:null):"cell"===t.type&&(o=t.indexes.row,l=t.indexes.column));var m=this._getHeaderLabelledBy("row",this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader,this.m_endRowHeader,e.indexes.row,o,i),u=this._getHeaderLabelledBy("rowEnd",this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader,this.m_endRowEndHeader,e.indexes.row,o,i),_=this._getHeaderLabelledBy("column",this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader,this.m_endColHeader,e.indexes.column,l,i),p=this._getHeaderLabelledBy("columnEnd",this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader,this.m_endColEndHeader,e.indexes.column,l,i),g=e.extents.row,f=e.extents.column;g>1&&a.push({key:"accessibleRowSpanContext",args:{extent:g}}),f>1&&a.push({key:"accessibleColumnSpanContext",args:{extent:f}}),r=(r=[this.createSubId("context"),m,u,_,p,i.id,this.createSubId("state")].join(" ")).replace(/ +(?= )/g,"")}!0===this.m_externalFocus&&(null!=this.m_root.id&&(r=[this.m_root.id,r].join(" ")),r=[this.createSubId("summary"),r].join(" "),this.m_externalFocus=!1);let C=c.getActionableElementsInNode(i);return C&&C.length>0&&a.push({key:"accessibleContainsControls"}),this._updateStateInfo(a),r},M.prototype.getHeaderFromCell=function(e,t,i){var s,n,o,l,r,a;return"row"===t?null!=this.m_rowHeader&&(s=this._getIndex(e,"row"),n=this._getExtent(e,"row"),o=this.m_rowHeaderLevelCount-1,l=this.m_rowHeader,r=this.m_rowHeaderLevelCount,a=this.m_startRowHeader):"column"===t?null!=this.m_colHeader&&(s=this._getIndex(e,"column"),n=this._getExtent(e,"column"),o=this.m_columnHeaderLevelCount-1,l=this.m_colHeader,r=this.m_columnHeaderLevelCount,a=this.m_startColHeader):"rowEnd"===t?null!=this.m_rowEndHeader&&(s=this._getIndex(e,"row"),n=this._getExtent(e,"row"),o=this.m_rowEndHeaderLevelCount-1,l=this.m_rowEndHeader,r=this.m_rowEndHeaderLevelCount,a=this.m_startRowEndHeader):"columnEnd"===t&&null!=this.m_colEndHeader&&(s=this._getIndex(e,"column"),n=this._getExtent(e,"column"),o=this.m_columnEndHeaderLevelCount-1,l=this.m_colEndHeader,r=this.m_columnEndHeaderLevelCount,a=this.m_startColEndHeader),null!=s&&null!=o&&s>-1?(i&&(s+=n-1),this._getHeaderByIndex(s,o,l,r,a)):null},M.prototype._trimRangeForSelectionMode=function(e){return"row"===this.m_options.getSelectionMode()?this.createRange(this.createIndex(e.startIndex.row),this.createIndex(e.endIndex.row)):e},M.prototype.createRange=function(e,t,i,s){var n,o,l,r,a,h,d,c;return t&&(e.row<t.row||-1===t.row?(n=e.row,o=t.row,i&&(a=i.row,h=s.row)):(n=t.row,o=e.row,i&&(a=s.row,h=i.row)),isNaN(e.column)||isNaN(t.column)?(e={row:n},t={row:o},i&&(i={row:a,column:d},s={row:h,column:c})):(e.column<t.column||-1===t.column?(l=e.column,r=t.column,i&&(d=i.column,c=s.column)):(l=t.column,r=e.column,i&&(d=s.column,c=i.column)),e={row:n,column:l},t={row:o,column:r},i&&(i={row:a,column:d},s={row:h,column:c}))),i?{startIndex:e,endIndex:t,startKey:i,endKey:s}:{startIndex:e,endIndex:t}},M.prototype._createRangeWithKeys=function(e,t,i){this._keys(e,this._createRangeStartKeyCallback.bind(this,t,i))},M.prototype._createRangeStartKeyCallback=function(e,t,i,s){null!=e&&null!=s&&e.row===s.row&&e.column===s.column?this._createRangeEndKeyCallback(i,s,t,i,s):e?this._keys(e,this._createRangeEndKeyCallback.bind(this,i,s,t)):t.call(this,{startIndex:s,endIndex:s,startKey:i,endKey:i})},M.prototype._createRangeEndKeyCallback=function(e,t,i,s,n){i.call(this,this.createRange(t,n,e,s))},M.prototype.getEndIndex=function(e){return null==e.endIndex?e.startIndex:e.endIndex},M.prototype.getElementsInRange=function(e,t,i,s,n){var o,l,r,a,h;null==t&&(t=this.m_startRow),null==i&&(i=this.m_endRow+1);var d=e.startIndex,c=this.getEndIndex(e),m=d.row,u=c.row;if(-1===u&&(u=Number.MAX_VALUE),i<m||u<t)return null;if(!isNaN(d.column)&&!isNaN(c.column)&&(o=d.column,-1===(l=c.column)&&(l=Number.MAX_VALUE),this.m_endCol+1<o||l<this.m_startCol))return null;var _=[];if(null==this.m_databody.firstChild)return null;if(m=Math.max(this.m_startRow,m),u=Math.min(this.m_endRow,u),isNaN(o)||isNaN(l))for(o=Math.max(0,this.m_startCol),l=Math.max(o,this.m_endCol),r=m;r<=u;r+=1)for(a=o;a<=l;a+=1)null!=(h=this._getCellByIndex(this.createIndex(r,a)))&&-1===_.indexOf(h)&&_.push(h);else for(o=Math.max(this.m_startCol,o),l=Math.min(this.m_endCol,l),r=m;r<=u;r+=1)for(a=o;a<=l;a+=1)null!=(h=this._getCellByIndex(this.createIndex(r,a)))&&-1===_.indexOf(h)&&_.push(h);return _},M.prototype._getRangeInView=function(e){let t=e.startIndex,i=this.getEndIndex(e),s=t.row,n=i.row,o=t.column,l=i.column;return-1===n&&(n=Number.MAX_VALUE),-1===l&&(l=Number.MAX_VALUE),s=Math.max(this.m_startRow,s),n=Math.min(this.m_endRow,n),(isNaN(t.column)||isNaN(i.column))&&(o=Math.max(0,this.m_startCol),l=Math.max(o,this.m_endCol)),o=Math.max(this.m_startCol,o),l=Math.min(this.m_endCol,l),this.createRange(this.createIndex(s,o),this.createIndex(n,l))},M.prototype._applyBorderClassesAroundRange=function(e,t,i,s){if(null==this.m_databody.firstChild||null==e||0===e.length)return;let n=this._getRangeInView(t),o=n.startIndex.row,l=n.startIndex.column,r=n.endIndex.row,a=n.endIndex.column,h=0===o,d=0===l,c=h?0:o-1,m=r,u=d?0:l-1,_=a;for(let e=o;e<=r;e++){let t=this._getCellByIndex(this.createIndex(e,u)),n=this._getCellByIndex(this.createIndex(e,_)),o=(d?"start":"end")+s,l="end"+s;i?(this._highlightElement(t,[o]),this._highlightElement(n,[l])):(this._unhighlightElement(t,[o]),this._unhighlightElement(n,[l]))}for(let e=l;e<=a;e++){let t=this._getCellByIndex(this.createIndex(c,e)),n=this._getCellByIndex(this.createIndex(m,e)),o=(h?"top":"bottom")+s,l="bottom"+s;i?(this._highlightElement(t,[o]),this._highlightElement(n,[l])):(this._unhighlightElement(t,[o]),this._unhighlightElement(n,[l]))}},M.prototype.readCurrentContent=function(){var e,t;if(null==this.m_active)return!1;if("header"===this.m_active.type)e={},"row"===this.m_active.axis?(this.m_rowHeaderLevelCount>1&&(e.level=this.m_active.level),e.rowHeader=this.m_active.index):(this.m_columnHeaderLevelCount>1&&(e.level=this.m_active.level),e.columnHeader=this.m_active.index),t=this._getActiveElement();else if("cell"===this.m_active.type){if(e=this.m_active.indexes,this._isSelectionEnabled()&&this.isMultipleSelection()&&null!=this.m_selectionFrontier&&(e=this.m_selectionFrontier),null==e)return!1;var i=this.createRange(e),s=this.getElementsInRange(i);if(null==s||0===s.length)return!1;t=s[0]}else t=this._getActiveElement();this._updateActiveContext(this.m_active,this.m_prevActive),this.m_placeHolder.tabIndex=-1;var n=t.getAttribute("aria-labelledby");return this.m_placeHolder.setAttribute("aria-labelledby",n+" "+t.id),this.m_placeHolder===document.activeElement?t.focus():this.m_placeHolder.focus(),!0},M.prototype._enterActionableMode=function(e,t){return this._setFocusToFirstFocusableElement(e,t)&&(this.m_focusOutHandler(e),this.setActionableMode(!0)),!1},M.prototype._exitActionableMode=function(){if(this.isActionableMode()){var e=this._getActiveElement();this.setActionableMode(!1),c.disableAllFocusableElements(e),this.m_focusInHandler(e)}},M.prototype._reRenderCell=function(e,t,i,s){var n=this.getRendererOrTemplate("cell"),o=e[this.getResources().getMappedAttribute("context")],l=e[this.getResources().getMappedAttribute("metadata")];if(o.mode=t,this.m_utils.empty(e),this.m_utils.containsCSSClassName(e,i)?this.m_utils.removeCSSClassName(e,i):this.m_utils.addCSSClassName(e,i),s){for(;s.hasChildNodes();)e.appendChild(s.firstChild);this._destroyEditableClone()}else this._renderContent(n,o,e,o.data,this.buildCellTemplateContext(o,l))},M.prototype._setEditableClone=function(e){if(this._destroyEditableClone(),null!=e){var t=e.cloneNode(!1);t.removeAttribute("id"),this._createUniqueId(t),t[this.getResources().getMappedAttribute("context")]=e[this.getResources().getMappedAttribute("context")],t[this.getResources().getMappedAttribute("metadata")]=e[this.getResources().getMappedAttribute("metadata")],t[this.getResources().getMappedAttribute("context")].parentElement=t,this.m_root.appendChild(t),this._reRenderCell(t,"edit",this.getMappedStyle("cellEdit"),null),t.style.display="none",t[this.getResources().getMappedAttribute("context")].parentElement=e,this.m_editableClone=t}},M.prototype._destroyEditableClone=function(){this.m_editableClone&&(null!=this.m_editableClone.parentNode&&this.m_root.removeChild(this.m_editableClone),delete this.m_editableClone)},M.prototype.isArrowKey=function(e){return e===this.keyCodes.UP_KEY||e===this.keyCodes.DOWN_KEY||e===this.keyCodes.LEFT_KEY||e===this.keyCodes.RIGHT_KEY},M.prototype.createIndex=function(e,t){var i={};return void 0!==e&&(i.row=e),void 0!==t&&(i.column=t),i},M.prototype.checkCorners=function(e,t,i){return"column"===this.m_selectionFrontier.axis&&this.m_columnHeaderLevelCount!==this.m_selectionFrontier.level||"row"===this.m_selectionFrontier.axis&&this.m_rowHeaderLevelCount!==this.m_selectionFrontier.level||"rowEnd"===this.m_selectionFrontier.axis&&this.m_rowEndHeaderLevelCount!==this.m_selectionFrontier.level||"columnEnd"===this.m_selectionFrontier.axis&&this.m_columnEndHeaderLevelCount!==this.m_selectionFrontier.level||(-1!==e.indexOf("row")?t===i.startIndex.row&&this.m_selectionFrontier.end===i.endIndex.row||t===i.endIndex.row&&this.m_selectionFrontier.end===i.startIndex.row:-1!==e.indexOf("column")&&(t===i.startIndex.column&&this.m_selectionFrontier.end===i.endIndex.column||t===i.endIndex.column&&this.m_selectionFrontier.end===i.startIndex.column))},M.prototype.handleLabelFocusChange=function(e,t,i,s){var n,o,l,r,a;if(!this.isFetchComplete())return!0;this.getResources().isRTLMode()&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY));var h=this.m_active.axis,d=this.m_active.level;switch("column"===h?(l=this.m_colHeader,r=this.m_startColHeader,a=this.m_columnHeaderLevelCount):"row"===h&&(l=this.m_rowHeader,r=this.m_startRowHeader,a=this.m_rowHeaderLevelCount),"columnEnd"===h&&(e===this.keyCodes.DOWN_KEY?e=this.keyCodes.UP_KEY:e===this.keyCodes.UP_KEY&&(e=this.keyCodes.DOWN_KEY),l=this.m_colEndHeader,r=this.m_startColEndHeader,a=this.m_columnEndHeaderLevelCount),"rowEnd"===h&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY),l=this.m_rowEndHeader,r=this.m_startRowEndHeader,a=this.m_rowEndHeaderLevelCount),e){case this.keyCodes.DOWN_KEY:"row"!==h&&"rowEnd"!==h||(n=this._getHeaderByIndex(r,d,l,a,r),this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(n,{type:"header",index:r,level:d,axis:h},t)),"column"!==h&&"columnEnd"!==h||((n=this.m_headerLabels[h][d+1])?this._setActive(n,{type:"label",level:d+1,axis:h},t):"column"===h&&d===a-1&&this.m_headerLabels.row.length?(n=this.m_headerLabels.row[this.m_headerLabels.row.length-1],this._setActive(n,{type:"label",level:this.m_headerLabels.row.length-1,axis:"row"},t)):d===a-1&&(o="column"===h?this.m_startRowHeader:this.m_endRowHeader,n=this._getHeaderByIndex(o,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),n&&this._setActive(n,{type:"header",index:o,level:d,axis:"row"},t)));break;case this.keyCodes.UP_KEY:"row"===h&&d===a-1&&this.m_headerLabels.column.length&&(n=this.m_headerLabels.column[this.m_headerLabels.column.length-1],this._setActive(n,{type:"label",level:this.m_headerLabels.column.length-1,axis:"column"},t)),"column"!==h&&"columnEnd"!==h||(n=this.m_headerLabels[h][d-1])&&this._setActive(n,{type:"label",level:d-1,axis:h},t);break;case this.keyCodes.RIGHT_KEY:"row"!==h&&"rowEnd"!==h||((n=this.m_headerLabels[h][d+1])?this._setActive(n,{type:"label",level:d+1,axis:h},t):d===a-1&&(o="row"===h?this.m_startColHeader:this.m_endColHeader,(n=this._getHeaderByIndex(o,this.m_columnHeaderLevelCount,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader))&&(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(n,{type:"header",index:o,level:d,axis:"column"},t)))),"column"!==h&&"columnEnd"!==h||(n=this._getHeaderByIndex(r,d,l,a,r),this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(n,{type:"header",index:r,level:d,axis:h},t));break;case this.keyCodes.LEFT_KEY:"row"!==h&&"rowEnd"!==h||(n=this.m_headerLabels[h][d-1])&&this._setActive(n,{type:"label",level:d-1,axis:h},t)}return!0},M.prototype.handleHeaderFocusChange=function(e,t,i,s,n){var o,l,r,a,h,d,c,m,u;if(!this.isFetchComplete())return!0;this.getResources().isRTLMode()&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY));var _=this.m_active.axis,p=this.m_active.index,g=this.m_active.level,f=this._getActiveElement(),C=null!=f?this._getAttribute(f,"depth",!0):1;if(_||p||!this.m_active||(_=this.m_selectionFrontier.axis,p=this.m_active.indexes[_]),t.shiftKey&&!i&&this.m_selectionFrontier&&this.isMultipleSelection()&&(i=this.checkHeaderToDatabody(_,e)),!(i&&this.isArrowKey(e)&&this.isHeaderSelectionType(this.m_selectionFrontier)&&this.checkCorners(_,p,this.m_selection[this.m_selection.length-1]))||(_=this.m_selectionFrontier.axis,p=this.m_selectionFrontier.index,g=this.m_selectionFrontier.level,-1===p&&(p=this.m_active.indexes[_]),"cell"!==this.m_active.type||(e!==this.keyCodes.LEFT_KEY&&e!==this.keyCodes.RIGHT_KEY||-1===_.indexOf("row"))&&(e!==this.keyCodes.UP_KEY&&e!==this.keyCodes.DOWN_KEY||-1===_.indexOf("column")))){"column"===_?(h=this.m_colHeader,d=this.m_startColHeader,c=this.m_endColHeader,m=this.m_columnHeaderLevelCount,u=this.m_stopColumnHeaderFetch):"row"===_&&(h=this.m_rowHeader,d=this.m_startRowHeader,c=this.m_endRowHeader,m=this.m_rowHeaderLevelCount,u=this.m_stopRowHeaderFetch),"columnEnd"===_&&(e===this.keyCodes.DOWN_KEY?e=this.keyCodes.UP_KEY:e===this.keyCodes.UP_KEY&&(e=this.keyCodes.DOWN_KEY),h=this.m_colEndHeader,d=this.m_startColEndHeader,c=this.m_endColEndHeader,m=this.m_columnEndHeaderLevelCount,u=this.m_stopColumnEndHeaderFetch),"rowEnd"===_&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY),h=this.m_rowEndHeader,d=this.m_startRowEndHeader,c=this.m_endRowEndHeader,m=this.m_rowEndHeaderLevelCount,u=this.m_stopRowEndHeaderFetch),i&&this.isArrowKey(e)&&this.isHeaderSelectionType(this.m_selectionFrontier)&&(C=null!=(f=this._getHeaderByIndex(p,g,h,m,d))?this._getAttribute(f,"depth",!0):1);var y=this._isSelectionEnabled()?this.selectAndFocus.bind(this):this._setActiveByIndex.bind(this);switch(e){case this.keyCodes.LEFT_KEY:if("column"===_||"columnEnd"===_)if(p>0){if(s&&this.m_headerLabels[_][g]){this._setActive(this.m_headerLabels[_][g],{type:"label",level:g,axis:_},t);break}if("column"===_&&s&&this.m_headerLabels.row[this.m_rowHeaderLevelCount-1]){this._setActive(this.m_headerLabels.row[this.m_rowHeaderLevelCount-1],{type:"label",level:this.m_rowHeaderLevelCount-1,axis:"row"},t);break}if(1===m)r=p-1,l=null!=f?f.previousSibling:null,a=g;else if(r=null!=(l=this._getHeaderByIndex(p-1,g,h,m,d))?this._getAttribute(l.parentNode,"start",!0):p-1,a=null!=l?this.getHeaderCellLevel(l):g,r<0)break;i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&"row"!==this.m_options.getSelectionMode()&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive())}else this.m_headerLabels[_][g]?this._setActive(this.m_headerLabels[_][g],{type:"label",level:g,axis:_},t):"column"===_&&this.m_headerLabels.row[this.m_rowHeaderLevelCount-1]&&this._setActive(this.m_headerLabels.row[this.m_rowHeaderLevelCount-1],{type:"label",level:this.m_rowHeaderLevelCount-1,axis:"row"},t);else("row"===_||"rowEnd"===_)&&g>0&&(l=this._getHeaderByIndex(p,g-1,h,m,d),r=this._getAttribute(l.parentNode,"start",!0),a=this.getHeaderCellLevel(l),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive()));break;case this.keyCodes.RIGHT_KEY:if("rowEnd"===_&&s&&-1!==this.m_endRowHeader)l=this._getHeaderByIndex(p,this.m_rowHeaderLevelCount,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:p,level:this.m_rowHeaderLevelCount,axis:_},t),this._highlightActive());else if("row"===_&&s&&-1!==this.m_endRowEndHeader)l=this._getHeaderByIndex(p,this.m_rowEndHeaderLevelCount,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:p,level:this.m_rowEndHeaderLevelCount,axis:_},t),this._highlightActive());else if("row"===_||"rowEnd"===_)if(g+C>=m&&!i)if(this.m_trueIndex={row:p},n){if("row"===_){let e=this._getEmptyCellNeighborIndex({row:p,column:-1},{right:!0},this._getMaxRight(),this.m_endRowEndHeader);if(e)if(e.cell)y(e.cell,t);else if(e.header){let e=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowEndHeaderLevelCount-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader);this._setActive(e,{type:"header",index:p,level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},t,!0)}}else if("rowEnd"===_){let e=this._getEmptyCellNeighborIndex({row:p,column:this.m_endCol+1},{left:!0},this._getMaxLeft(),this.m_startRowHeader);if(e.cell)y(e.cell,t);else if(e.header){let e=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader);this._setActive(e,{type:"header",index:p,level:this.m_rowHeaderLevelCount-1,axis:"row"},t,!0)}}}else o="row"===_?this.createIndex(p,0):this._isHighWatermarkScrolling()?this.createIndex(p,this.m_endCol):this.createIndex(p,this.getDataSource().getCount("column")-1),this._isSelectionEnabled()?this.selectAndFocus(o,t):(this._setActiveByIndex(o,t),this._highlightActive());else l=this._getHeaderByIndex(p,g+C,h,m,d),r=this._getAttribute(l.parentNode,"start",!0),a=this.getHeaderCellLevel(l),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive());else"column"===_&&s&&this.m_headerLabels.rowEnd[this.m_rowEndHeaderLevelCount-1]?this._setActive(this.m_headerLabels.rowEnd[this.m_rowEndHeaderLevelCount-1],{type:"label",level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},t):(1===m?(r=p+1,l=null!=f?f.nextSibling:null,a=g):(g===m-1?(r=p+1,l=this._getHeaderByIndex(r,g,h,m,d)):(r=null!=f?this._getAttribute(f.parentNode,"start",!0)+this._getAttribute(f.parentNode,"extent",!0):p+1,l=this._getHeaderByIndex(r,g,h,m,d)),a=null!=l?this.getHeaderCellLevel(l):g),r>c&&u||!(this._isCountUnknown("column")||r<this.getDataSource().getCount("column"))?"column"===_&&this.m_headerLabels.rowEnd[this.m_rowEndHeaderLevelCount-1]&&this._setActive(this.m_headerLabels.rowEnd[this.m_rowEndHeaderLevelCount-1],{type:"label",level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},t):i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&"row"!==this.m_options.getSelectionMode()&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive()));break;case this.keyCodes.UP_KEY:if("row"===_||"rowEnd"===_){if(s&&this.m_headerLabels[_][g]){this._setActive(this.m_headerLabels[_][g],{type:"label",level:g,axis:_},t);break}if("row"===_&&s&&this.m_headerLabels.column[this.m_columnHeaderLevelCount-1]){this._setActive(this.m_headerLabels.column[this.m_columnHeaderLevelCount-1],{type:"label",level:this.m_columnHeaderLevelCount-1,axis:"column"},t);break}if(p>0){if(1===m)r=p-1,l=null!=f?f.previousSibling:null,a=g;else if(g===m-1?(r=p-1,l=this._getHeaderByIndex(r,g,h,m,d)):r=null!=(l=null!=f?this._getHeaderByIndex(this._getAttribute(f.parentNode,"start",!0)-1,g,h,m,d):null)?this._getAttribute(l.parentNode,"start",!0):p-1,a=null!=l?this.getHeaderCellLevel(l):g,r<0)break;i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this.m_selectionFrontier={},this._clearSelection(t)),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive())}else this.m_headerLabels[_][g]?this._setActive(this.m_headerLabels[_][g],{type:"label",level:g,axis:_},t):"row"===_&&this.m_headerLabels.column[this.m_columnHeaderLevelCount-1]&&this._setActive(this.m_headerLabels.column[this.m_columnHeaderLevelCount-1],{type:"label",level:this.m_columnHeaderLevelCount-1,axis:"column"},t)}else("column"===_||"columnEnd"===_)&&g>0&&(l=this._getHeaderByIndex(p,g-1,h,m,d),r=this._getAttribute(l.parentNode,"start",!0),a=this.getHeaderCellLevel(l),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this.m_selectionFrontier={},this._clearSelection(t)),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive()));break;case this.keyCodes.DOWN_KEY:if("columnEnd"===_&&s&&-1!==this.m_endColHeader)l=this._getHeaderByIndex(p,this.m_columnHeaderLevelCount,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this.m_selectionFrontier={},this._clearSelection(t)),this._setActive(l,{type:"header",index:p,level:this.m_columnHeaderLevelCount,axis:_},t),this._highlightActive());else if("column"===_&&s&&-1!==this.m_endColEndHeader)l=this._getHeaderByIndex(p,this.m_columnEndHeaderLevelCount,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:p,level:this.m_columnEndHeaderLevelCount,axis:_},t),this._highlightActive());else if("column"===_||"columnEnd"===_)if(g+C>=m&&!i)if(this.m_trueIndex={column:p},n){if("column"===_){let e=this._getEmptyCellNeighborIndex({row:0,column:this.m_trueIndex.column},{down:!0},this._getMaxBottom(),this.m_endColEndHeader);if(e)if(e.cell)y(e.cell,t);else if(e.header){let e=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnEndHeaderLevelCount-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader);this._setActive(e,{type:"header",index:p,level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},t,!0)}}else if("columnEnd"===_){let e=this._getEmptyCellNeighborIndex({row:this.m_endRow+1,column:this.m_trueIndex.column},{up:!0},this._getMaxTop(),this.m_startColHeader);if(e)if(e.cell)y(e.cell,t);else if(e.header){let e=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader);this._setActive(e,{type:"header",index:p,level:this.m_columnHeaderLevelCount-1,axis:"column"},t,!0)}}}else o="column"===_?this.createIndex(0,p):this._isHighWatermarkScrolling()?this.createIndex(this.m_endRow,p):this.createIndex(this.getDataSource().getCount("row")-1,p),this._isSelectionEnabled()?this.selectAndFocus(o,t):(this._setActiveByIndex(o,t),this._highlightActive());else l=this._getHeaderByIndex(p,g+C,h,m,d),r=this._getAttribute(l.parentNode,"start",!0),a=this.getHeaderCellLevel(l),i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive());else"row"===_&&s&&this.m_headerLabels.columnEnd[this.m_columnEndHeaderLevelCount-1]?this._setActive(this.m_headerLabels.columnEnd[this.m_columnEndHeaderLevelCount-1],{type:"label",level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},t):(1===m?(r=p+1,l=null!=f?f.nextSibling:null,a=g):(g===m-1?(r=p+1,l=this._getHeaderByIndex(r,g,h,m,d)):(r=null!=f?this._getAttribute(f.parentNode,"start",!0)+this._getAttribute(f.parentNode,"extent",!0):p+1,l=this._getHeaderByIndex(r,g,h,m,d)),a=null!=l?this.getHeaderCellLevel(l):g),r>c&&u||!(this._isCountUnknown("row")||r<this.getDataSource().getCount("row"))?"row"===_&&this.m_headerLabels.columnEnd[this.m_columnEndHeaderLevelCount-1]&&this._setActive(this.m_headerLabels.columnEnd[this.m_rowEndHeaderLevelCount-1],{type:"label",level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},t):i?this.extendSelectionHeader(l,t,!0):(this._isSelectionEnabled()&&!this.m_discontiguousSelection&&(this._clearSelection(t),this.m_selectionFrontier={}),this._setActive(l,{type:"header",index:r,level:a,axis:_},t),this._highlightActive()));break;case this.keyCodes.PAGEUP_KEY:"row"!==_&&"rowEnd"!==_||(f=this._getHeaderByIndex(0,g,h,m,d),this._setActive(f,{type:"header",index:0,level:g,axis:_},t));break;case this.keyCodes.PAGEDOWN_KEY:"row"!==_&&"rowEnd"!==_||(p=this._isCountUnknown("row")||this._isHighWatermarkScrolling()?Math.max(0,c):Math.max(0,this.getDataSource().getCount("row")-1),f=this._getHeaderByIndex(p,g,h,m,d),this._setActive(f,{type:"header",index:p,level:g,axis:_},t));break;case this.keyCodes.HOME_KEY:"column"!==_&&"columnEnd"!==_||(f=this._getHeaderByIndex(0,g,h,m,d),this._setActive(f,{type:"header",index:0,level:g,axis:_},t));break;case this.keyCodes.END_KEY:"column"!==_&&"columnEnd"!==_||(p=this._isCountUnknown("column")||this._isHighWatermarkScrolling()?Math.max(0,c):Math.max(0,this.getDataSource().getCount("column")-1),f=this._getHeaderByIndex(p,g,h,m,d),this._setActive(f,{type:"header",index:p,level:g,axis:_},t))}return!0}},M.prototype.checkHeaderToDatabody=function(e,t){return!("row"===e&&this.m_rowHeaderLevelCount===this.m_selectionFrontier.level&&t===this.keyCodes.RIGHT_KEY||"rowEnd"===e&&this.m_rowEndHeaderLevelCount===this.m_selectionFrontier.level&&t===this.keyCodes.LEFT_KEY||"column"===e&&this.m_columnHeaderLevelCount===this.m_selectionFrontier.level&&t===this.keyCodes.DOWN_KEY||"columnEnd"===e&&this.m_columnEndHeaderLevelCount===this.m_selectionFrontier.level&&t===this.keyCodes.UP_KEY)},M.prototype._getHeaderLabelledBy=function(e,t,i,s,n,o,l,r){var a;if(-1!==n&&(o!==l||this.m_externalFocus)){var h=this.getHeaderFromCell(r,e);return null!=l&&(a=this._getHeaderByIndex(l,i-1,t,i,s)),this._getHeaderAndParentIds(h,a)}return""},M.prototype._getHeaderAndParentIds=function(e,t){var i="",s=[];if(null==e)return"";var n=this._getHeaderAndParents(e);null!=t&&(s=this._getHeaderAndParents(t));for(var o=0;o<n.length;o++)s[o]===n[o]&&o!==n.length-1||(i+=(""===i?"":" ")+n[o].id);return i},M.prototype._getHeaderAndParents=function(e){var t,i=[e],s=this.getHeaderCellAxis(e),n=this.getHeaderCellLevel(e),o=this._getLabel(s,n);if("row"===s?t=this.m_rowHeaderLevelCount:"column"===s?t=this.m_columnHeaderLevelCount:"rowEnd"===s?t=this.m_rowEndHeaderLevelCount:"columnEnd"===s&&(t=this.m_columnEndHeaderLevelCount),o&&i.unshift(o),1===t)return i;for(n===t-1&&(e=e.parentNode.firstChild,i.unshift(e),n-=1,(o=this._getLabel(s,n))&&i.unshift(o));n>0;)e=e.parentNode.parentNode.firstChild,i.unshift(e),n-=1,(o=this._getLabel(s,n))&&i.unshift(o);return i},M.prototype.isHeaderSelectionType=function(e){return!(!e||!e.axis)},M.prototype._isChildEmpty=function(e){if(e){let t=e.textContent.trim();return!(e.children.length>0||t.length>0)}return!1},M.prototype._isNeighborCellEmpty=function(e,t){let i=this._getIndex(e,"row"),s=this._getIndex(e,"column");if("row"===t){let t=this._getCellByIndex({row:i,column:s-1}),n=this._getCellByIndex({row:i,column:s+1});if((this._isChildEmpty(t)||this._isChildEmpty(n))&&!this._isChildEmpty(e))return!0}else if("column"===t){let t=this._getCellByIndex({row:i-1,column:s}),n=this._getCellByIndex({row:i+1,column:s});if((this._isChildEmpty(t)||this._isChildEmpty(n))&&!this._isChildEmpty(e))return!0}return!1},M.prototype._getEmptyCellNeighborIndex=function(e,t,i,s){let n,o,l,r,a,h,d,c=e.row,m=e.column,u=Object.create({}),_=t.left||t.right,p=t.up||t.down,g=t.right||t.down,f=t.left||t.up;_?(n="row",o=m,l=c):p&&(n="column",o=c,r=m),g?(a=1,d=i):f&&(a=-1,d=i-1);let C,y=o;for(;f?y>=i:y<=i;){if(g?C=y<i:f&&(C=y>i),_?r=y===i?d:y+a:p&&(l=y===i?d:y+a),h=this._getCellByIndex({row:l,column:r}),C&&this._isNeighborCellEmpty(h,n))return u.cell=this.createIndex(l,r),u;if(y===i){let e;return g?e=(t.right?this._isLastColumn(y):this._isLastRow(y))&&-1!==s:f&&(e=0===y),e?(u.header=!0,u):(u.cell=this.createIndex(l,r),u)}y+=a}return null},M.prototype.handleFocusChange=function(e,t,i,s,n,o=!1,l=!1){var r,a,h,d=1,c=1;if(!this.isFetchComplete())return!0;if(t){if(r=this.m_selectionFrontier,this.isHeaderSelectionType(this.m_selectionFrontier))return void this.handleHeaderFocusChange(e,i,t,n)}else r=this.m_active.indexes;if(null!=r){null==this.m_trueIndex&&(this.m_trueIndex={}),this.getResources().isRTLMode()&&(e===this.keyCodes.LEFT_KEY?e=this.keyCodes.RIGHT_KEY:e===this.keyCodes.RIGHT_KEY&&(e=this.keyCodes.LEFT_KEY));var m=this._isSelectionEnabled()?this.selectAndFocus.bind(this):this._setActiveByIndex.bind(this),u=r.row,_=r.column,p=this._getCellByIndex(r);if(p){var g=p[this.getResources().getMappedAttribute("context")];d=g.extents.row,c=g.extents.column}switch(e){case this.keyCodes.LEFT_KEY:if(this.m_trueIndex.row||t||(this.m_trueIndex={row:u}),o){let e=g.indexes.row,t=g.indexes.column,s=this._getEmptyCellNeighborIndex({row:e,column:t},{left:!0},this._getMaxLeft(),this.m_startRowHeader);s&&(s.cell?m(s.cell,i):s.header&&(h=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),this._setActive(h,{type:"header",index:this.m_trueIndex.row,level:this.m_rowHeaderLevelCount-1,axis:"row"},i,!0)))}else _>0&&(!n||-1===this.m_endRowHeader)?"row"===this.m_options.getSelectionMode()?(a=this.createIndex(this.m_trueIndex.row,_-1),this._setActiveByIndex(a,i)):(t?(a=this.createIndex(u,_-1),this.extendSelection(a,i,e)):m(a=this.createIndex(this.m_trueIndex.row,_-1),i),_-1==0&&this._setAccInfoText("accessibleFirstColumn")):!t&&s&&(h=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),this.m_discontiguousSelection?this.discontiguousHeaderSetActiveFromDatabody(i,"row",h,this.m_rowHeaderLevelCount):this._setActive(h,{type:"header",index:this.m_trueIndex.row,level:this.m_rowHeaderLevelCount-1,axis:"row"},i,!0));break;case this.keyCodes.RIGHT_KEY:if(this.m_trueIndex.row||t||(this.m_trueIndex={row:u}),o){let e=g.indexes.row,t=g.indexes.column,s=this._getEmptyCellNeighborIndex({row:e,column:t},{right:!0},this._getMaxRight(),this.m_endRowEndHeader);s&&(s.cell?m(s.cell,i):s.header&&(h=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowEndHeaderLevelCount-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),this._setActive(h,{type:"header",index:this.m_trueIndex.row,level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},i,!0)))}else this._isLastColumn(_+(c-1))||n&&-1!==this.m_endRowEndHeader?-1!==this.m_endRowEndHeader&&s?(h=this._getHeaderByIndex(this.m_trueIndex.row,this.m_rowEndHeaderLevelCount-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),this.m_discontiguousSelection?this.discontiguousHeaderSetActiveFromDatabody(i,"rowEnd",h,this.m_rowEndHeaderLevelCount):this._setActive(h,{type:"header",index:this.m_trueIndex.row,level:this.m_rowEndHeaderLevelCount-1,axis:"rowEnd"},i,!0)):t||m(r,i):"row"===this.m_options.getSelectionMode()?(a=this.createIndex(this.m_trueIndex.row,_+c),this._setActiveByIndex(a,i)):(t?(a=this.createIndex(u,_+1),this.extendSelection(a,i,e)):m(a=this.createIndex(this.m_trueIndex.row,_+c),i),this._isLastColumn(_+c)&&this._setAccInfoText("accessibleLastColumn"));break;case this.keyCodes.UP_KEY:if(this.m_trueIndex.column||t||(this.m_trueIndex={column:_}),o){let e=g.indexes.row,t=g.indexes.column,s=this._getEmptyCellNeighborIndex({row:e,column:t},{up:!0},this._getMaxTop(),this.m_startColHeader);s&&(s.cell?m(s.cell,i):s.header&&(h=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),this._setActive(h,{type:"header",index:this.m_trueIndex.column,level:this.m_columnHeaderLevelCount-1,axis:"column"},i,!0)))}else u>0&&(!n||-1===this.m_endColHeader)?(t?(a=this.createIndex(u-1,_),this.extendSelection(a,i,e)):m(a=this.createIndex(u-1,this.m_trueIndex.column),i),u-1==0&&this._setAccInfoText("accessibleFirstRow")):!t&&s&&(h=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),this.m_discontiguousSelection?this.discontiguousHeaderSetActiveFromDatabody(i,"column",h,this.m_columnHeaderLevelCount):this._setActive(h,{type:"header",index:this.m_trueIndex.column,level:this.m_columnHeaderLevelCount-1,axis:"column"},i,!0));break;case this.keyCodes.DOWN_KEY:if(this.m_trueIndex.column||t||(this.m_trueIndex={column:_}),o){let e=g.indexes.row,t=g.indexes.column,s=this._getEmptyCellNeighborIndex({row:e,column:t},{down:!0},this._getMaxBottom(),this.m_endColEndHeader);s&&(s.cell?m(s.cell,i):s.header&&(h=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnEndHeaderLevelCount-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),this._setActive(h,{type:"header",index:this.m_trueIndex.column,level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},i,!0)))}else this._isLastRow(u+(d-1))||n&&-1!==this.m_endColEndHeader?-1!==this.m_endColEndHeader&&s?(h=this._getHeaderByIndex(this.m_trueIndex.column,this.m_columnEndHeaderLevelCount-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),this.m_discontiguousSelection?this.discontiguousHeaderSetActiveFromDatabody(i,"columnEnd",h,this.m_columnEndHeaderLevelCount):this._setActive(h,{type:"header",index:this.m_trueIndex.column,level:this.m_columnEndHeaderLevelCount-1,axis:"columnEnd"},i,!0)):t||m(r,i):(t?(a=this.createIndex(u+1,_),this.extendSelection(a,i,e)):m(a=this.createIndex(u+d,this.m_trueIndex.column),i),this._isLastRow(u+d)&&this._setAccInfoText("accessibleLastRow"));break;case this.keyCodes.HOME_KEY:if(l)m(this.createIndex(0,0),i);else this.m_trueIndex.row||(this.m_trueIndex={row:u}),m(a=this.createIndex(this.m_trueIndex.row,0),i);break;case this.keyCodes.END_KEY:if(this.m_trueIndex.row||(this.m_trueIndex={row:u,column:_}),l){let e;e=this._isCountUnknown("column")||this._isHighWatermarkScrolling()?this.createIndex(Math.max(0,this.m_endRow),Math.max(0,this.m_endCol)):this.createIndex(Math.max(0,this.getDataSource().getCount("row")-1),Math.max(0,this.getDataSource().getCount("column")-1)),m(e,i)}else m(a=this._isCountUnknown("column")||this._isHighWatermarkScrolling()?this.createIndex(this.m_trueIndex.row,Math.max(0,this.m_endCol)):this.createIndex(this.m_trueIndex.row,Math.max(0,this.getDataSource().getCount("column")-1)),i);break;case this.keyCodes.PAGEUP_KEY:this.m_trueIndex.column||(this.m_trueIndex={column:_}),m(a=this.createIndex(0,_),i);break;case this.keyCodes.PAGEDOWN_KEY:this.m_trueIndex.column||(this.m_trueIndex={column:_}),m(a=this._isCountUnknown("column")||this._isHighWatermarkScrolling()?this.createIndex(Math.max(0,this.m_endRow),this.m_trueIndex.column):this.createIndex(Math.max(0,this.getDataSource().getCount("row")-1),this.m_trueIndex.column),i)}return!0}},M.prototype.scrollToIndex=function(e,t,i){var s,n,o=e.row,l=e.column;t&&(this.m_shouldFocus=!1),i&&(e.scrollToOrigin=!0);var r=this.getResources().isRTLMode()?"right":"left",a=0,h=0,d=this._getViewportTop(),c=this._getViewportBottom(),m=this._getViewportLeft(),u=this._getViewportRight();if(o<this.m_startRow||o>this.m_endRow){var _;_=o<this.m_startRow?this.m_avgRowHeight*o:this.m_avgRowHeight*(o+1)-c+d,h=this.m_currentScrollTop-_,this.m_scrollIndexAfterFetch=e,s=!0}else{var p;null===(n=this._getCellByIndex(e))?(n=this._getFirstCellWithMatchingStartIndex(o,"row"),p=this.m_sizingManager.getSize("row",this._getKey(n,"row"))):p=this.getElementHeight(n);var g=this.getElementDir(n,"top");i||e.scrollToOrigin?h=d-g:g+p>c?h=c-(g+p):g<d&&(h=d-g)}if(!isNaN(l)&&!0!==s)if(l<this.m_startCol||l>this.m_endCol){var f;f=l<this.m_startCol?this.m_avgColWidth*l:this.m_avgColWidth*(l+1)-u+m,a=this.m_currentScrollLeft-f,this.m_scrollIndexAfterFetch=e}else{var C;null===(n=this._getCellByIndex(e))?(n=this._getFirstCellWithMatchingStartIndex(l,"column"),C=this.m_sizingManager.getSize("column",this._getKey(n,"column"))):C=this.getElementWidth(n);var y=this.getElementDir(n,r);i||e.scrollToOrigin||y<m?a=m-y:y+C>u&&(a=u-(y+C))}0!==a||0!==h?(null!=(n=this._getCellByIndex(e))&&!0!==t&&!1!==this.m_shouldFocus&&(this.m_cellToFocus=n),this.scrollDelta(a,h)):null!=this.m_scrollIndexAfterFetch&&(t||!1===this.m_shouldFocus||this._setActiveByIndex(this.m_scrollIndexAfterFetch,null,!1,!1,!0))&&(this.m_scrollIndexAfterFetch=null)},M.prototype.scrollToHeader=function(e){var t,i,s,n,o,l,r,a,h,d=e.axis,c=e.index,m=e.level,u=0;"row"===d?(t=this.m_startRowHeader,i=this.m_endRowHeader,s=this.m_avgRowHeight,n=this.m_currentScrollTop,a=this._getViewportTop(),h=this._getViewportBottom()):"column"===d?(t=this.m_startColHeader,i=this.m_endColHeader,s=this.m_avgColWidth,n=this.m_currentScrollLeft,a=this._getViewportLeft(),h=this._getViewportRight()):"rowEnd"===d?(t=this.m_startRowEndHeader,i=this.m_endRowEndHeader,s=this.m_avgRowHeight,n=this.m_currentScrollTop,a=this._getViewportTop(),h=this._getViewportBottom()):"columnEnd"===d&&(t=this.m_startColEndHeader,i=this.m_endColEndHeader,s=this.m_avgColWidth,n=this.m_currentScrollLeft,a=this._getViewportLeft(),h=this._getViewportRight());var _=h-a;c<t||c>i?(u=n-(c<t?s*c:s*(c+1)-_),this.m_scrollHeaderAfterFetch=e):("row"===d||"rowEnd"===d?(r="row"===d?this._getHeaderByIndex(c,m,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader):this._getHeaderByIndex(c,m,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),o=this.getElementDir(r,"top"),l=this.getElementHeight(r)):"column"!==d&&"columnEnd"!==d||(r="column"===d?this._getHeaderByIndex(c,m,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader):this._getHeaderByIndex(c,m,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),o=this.getElementDir(r,this.getResources().isRTLMode()?"right":"left"),l=this.getElementWidth(r)),_>l?o+l>h?u=h-(o+l):o<a&&(u=a-o):u=a-o),0!==u?(null!=r&&!1!==this.m_shouldFocus&&(this.m_cellToFocus=r),"row"===d||"rowEnd"===d?this.scrollDelta(0,u):this.scrollDelta(u,0)):null!=this.m_scrollHeaderAfterFetch&&(this._updateActive(e,!0,!0),this.m_scrollHeaderAfterFetch=null)},M.prototype.findHeader=function(e,t,i){if(null==t&&(t=this.getMappedStyle("headercell")),null==i&&(i=this.getMappedStyle("endheadercell")),null!=t){if(this.m_utils.containsCSSClassName(e,t)||this.m_utils.containsCSSClassName(e,i))return e;if(e.parentNode)return this.findHeader(e.parentNode,t,i);if(e===this.m_root)return null}return null},M.prototype.updateRowBanding=function(){var e=this.m_options.getRowBandingInterval();if(e>0)for(var t=this.m_databody.firstChild.childNodes,i=this.getMappedStyle("banded"),s=0;s<t.length;s++){var n=t[s],o=this._getIndex(n,"row");Math.floor(o/e)%2==1?this.m_utils.containsCSSClassName(n,i)||this.m_utils.addCSSClassName(n,i):this.m_utils.containsCSSClassName(n,i)&&this.m_utils.removeCSSClassName(n,i)}},M.prototype.updateColumnBanding=function(){var e=this.m_options.getColumnBandingInterval();if(e>0)for(var t=this.m_databody.firstChild.childNodes,i=this.getMappedStyle("banded"),s=0;s<t.length;s+=1){var n=t[s],o=this._getIndex(n,"column");Math.floor(o/e)%2==1?this.m_utils.containsCSSClassName(n,i)||this.m_utils.addCSSClassName(n,i):this.m_utils.containsCSSClassName(n,i)&&this.m_utils.removeCSSClassName(n,i)}},M.prototype._removeBanding=function(){for(var e=this.m_databody.firstChild.childNodes,t=this.getMappedStyle("banded"),i=0;i<e.length;i++)this.m_utils.containsCSSClassName(e[i],t)&&this.m_utils.removeCSSClassName(e[i],t)},M.prototype._setAccInfoText=function(e,t){var i=this.getResources().getTranslatedText(e,t);null!=i&&(this.m_accInfo.textContent=i)},M.prototype.handleExpandEvent=function(e,t){void 0===t&&this.queueModelEvent(e)?e.operation="expand":(this._setAccInfoText("accessibleRowExpanded"),this.populateAccInfo(),t&&this._runModelEventQueue())},M.prototype.handleCollapseEvent=function(e,t){void 0===t&&this.queueModelEvent(e)?e.operation="collapse":(this._setAccInfoText("accessibleRowCollapsed"),this.populateAccInfo(),t&&this._runModelEventQueue())},M.prototype._getKey=function(e,t){return null!=e&&e[this.getResources().getMappedAttribute("context")]?null!=t&&this.m_utils.containsCSSClassName(e,this.getMappedStyle("cell"))?e[this.getResources().getMappedAttribute("context")].keys[t]:e[this.getResources().getMappedAttribute("context")].key:null},M.prototype._getActiveKey=function(e,t){if(t&&null!=this.m_prevActive){if("header"===this.m_prevActive.type&&(this.m_prevActive.axis===e||this.m_prevActive.axis===e+"End"))return this.m_prevActive.key;if("cell"===this.m_prevActive.type)return this.m_prevActive.keys[e]}else if(null!=this.m_active){if("header"===this.m_active.type&&(this.m_active.axis===e||this.m_active.axis===e+"End"))return this.m_active.key;if("cell"===this.m_active.type)return this.m_active.keys[e]}return null},M.prototype._handleCut=function(e,t){null==t&&(t=e.target);var i=this.findCellOrHeader(t);if(this._isMoveOnElementEnabled(i)){if(null!=this.m_cutCells)for(var s=0;s<this.m_cutCells.length;s++)this.m_utils.removeCSSClassName(this.m_cutCells[s],this.getMappedStyle("cut"));var n=this._getKey(i,"row");return this.m_cutCells=this._getAxisCellsByKey(n,"row"),this.m_cutRowHeader=this._findHeaderByKey(n,this.m_rowHeader,this.getMappedStyle("rowheadercell")),this.m_cutRowEndHeader=this._findHeaderByKey(n,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")),this._highlightCellsAlongAxis(n,"row","key","add",["cut"]),null!==this.m_cutRowHeader&&this.m_utils.addCSSClassName(this.m_cutRowHeader,this.getMappedStyle("cut")),null!==this.m_cutRowEndHeader&&this.m_utils.addCSSClassName(this.m_cutRowEndHeader,this.getMappedStyle("cut")),!0}return!1},M.prototype._handleCutCells=function(e,t){if(null==t&&(t=e.target),this._isDataGridProvider()&&this._isSelectionEnabled()&&this.m_options.isCutEnabled()){this.m_selectionRange&&this.m_selectionRange.length&&this.unhighlightFloodFillRange(this.m_selectionRange[0]);let t=this.m_selection[this.m_selection.length-1];this.m_selectionRange=[t],this.m_dataTransferAction="cut";var i={event:e,ui:{action:this.m_dataTransferAction,sourceRange:this.m_selectionRange[0]}};if(!this.fireEvent("cutRequest",i))return!0;this.highlightFloodFillRange(t),this.m_options.isFloodFillEnabled()&&this._removeFloodFillAffordance()}return!0},M.prototype._handleCopyCells=function(e,t){if(null==t&&(t=e.target),this._isDataGridProvider()&&this._isSelectionEnabled()&&this.m_options.isCopyEnabled()){this.m_selectionRange&&this.m_selectionRange.length&&this.unhighlightFloodFillRange(this.m_selectionRange[0]);let t=this.m_selection[this.m_selection.length-1];this.m_selectionRange=[t],this.m_dataTransferAction="copy";let i={event:e,ui:{action:this.m_dataTransferAction,sourceRange:this.m_selectionRange[0]}};return!this.fireEvent("copyRequest",i)||(this.highlightFloodFillRange(t),this.m_options.isFloodFillEnabled()&&this._removeFloodFillAffordance(),!0)}return!1},M.prototype._handlePaste=function(e,t){if(null==t&&(t=e.target),null!=this.m_cutCells){for(var i=0;i<this.m_cutCells.length;i++)this.m_utils.removeCSSClassName(this.m_cutCells[i],this.getMappedStyle("cut"));null!==this.m_cutRowHeader&&(this.m_utils.removeCSSClassName(this.m_cutRowHeader,this.getMappedStyle("cut")),this.m_cutRowHeader=null),null!==this.m_cutRowEndHeader&&(this.m_utils.removeCSSClassName(this.m_cutRowEndHeader,this.getMappedStyle("cut")),this.m_cutRowEndHeader=null);var s=this._getKey(this.findCellOrHeader(t),"row"),n=this._getKey(this.m_cutCells[0],"row");n!==s&&(this._isSelectionEnabled()&&this._clearSelection(e),this._isDatabodyCellActive()&&this._unhighlightActive(),this.m_moveActive=!0,this.getDataSource().move(n,s)),this.m_cutCells=null}return!0},M.prototype._handlePasteCells=function(e,t){if(null==t&&(t=e.target),this._isDataGridProvider()&&this.m_options.isPasteEnabled())if(this.m_selectionRange&&this._isSelectionEnabled()&&!this.m_discontiguousSelection&&1===this.m_selection.length){let t={event:e,ui:{action:this.m_dataTransferAction,sourceRange:this.m_selectionRange[0],targetRange:this.m_selection[0]}};if(!this.fireEvent("pasteRequest",t))return!0;this.unhighlightFloodFillRange(this.m_selectionRange[0]),this.m_selectionRange=null,this.m_dataTransferAction=null}else if(!this.m_selectionRange){let t={event:e,ui:{action:"unknown",sourceRange:{},targetRange:this.m_selection[0]}};if(!this.fireEvent("pasteRequest",t))return!0;this.m_selectionRange=null,this.m_dataTransferAction=null}return!0},M.prototype._handleAutofill=function(e,t){if(null==t&&(t=e.target),this._isDataGridProvider()&&this._isSelectionEnabled()&&!this.m_discontiguousSelection&&this.m_options.isFloodFillEnabled()&&1===this.m_selection.length){let t="down";"keydown"===e.type&&(t="d"===e.key?"down":"end");let s=this.m_selection[0].startIndex,n=this.m_selection[0].endIndex,o=this.createRange(s,n),l=this.createRange(s,n),r=!1;if("down"===t?(o.endIndex.row=o.startIndex.row,l.startIndex.row=o.startIndex.row+1,l.startIndex.row>=o.startIndex.row&&l.startIndex.row<=l.endIndex.row&&(r=!0)):(o.endIndex.column=o.startIndex.column,l.startIndex.column=o.startIndex.column+1,l.startIndex.column>=o.startIndex.column&&l.startIndex.column<=l.endIndex.column&&(r=!0)),r){var i={event:e,ui:{action:t,sourceRange:o,targetRange:l}};if(!this.fireEvent("fillRequest",i))return!0}return this.unhighlightFloodFillRange(this.m_selection[0]),this._removeFloodFillAffordance(),this.m_selectionRange=null,this.m_dataTransferAction=null,this.m_floodFillDirection=null,!0}return!1},M.prototype._handleCancelReorder=function(e,t){if(null!=this.m_cutCells){for(var i=0;i<this.m_cutCells.length;i++)this.m_utils.removeCSSClassName(this.m_cutCells[i],this.getMappedStyle("cut"));return this.m_cutCells=null,null!==this.m_cutRowHeader&&(this.m_utils.removeCSSClassName(this.m_cutRowHeader,this.getMappedStyle("cut")),this.m_cutRowHeader=null),null!==this.m_cutRowEndHeader&&(this.m_utils.removeCSSClassName(this.m_cutRowEndHeader,this.getMappedStyle("cut")),this.m_cutRowEndHeader=null),!0}null!==this.m_dataTransferAction&&(this.unhighlightFloodFillRange(this.m_selectionRange[0]),this.m_selectionRange=null,this.m_dataTransferAction=null)},M.prototype._handleMove=function(e){if(null==this.m_moveCells){var t=e.target,i=this.findCellOrHeader(t),s=this._getKey(i,"row");this.m_originalMoveIndex=this._getIndex(i,"row"),this.m_moveIndex=this.m_originalMoveIndex,this.m_moveCells=this._getAxisCellsByIndex(this.m_moveIndex,"row"),this.m_moveRowHeader=this._findHeaderByKey(s,this.m_rowHeader,this.getMappedStyle("rowheadercell")),this.m_moveRowEndHeader=this._findHeaderByKey(s,this.m_rowEndHeader,this.getMappedStyle("rowendheadercell")),this._highlightCellsAlongAxis(this.m_moveIndex,"row","index","add",["drag"]),this.m_originalTop=this.getElementDir(this.m_moveCells[0],"top"),this.m_dropTarget=document.createElement("div"),this.m_utils.addCSSClassName(this.m_dropTarget,this.getMappedStyle("drop")),this.setElementHeight(this.m_dropTarget,this.calculateRowHeight(this.m_moveCells[0])),this.setElementDir(this.m_dropTarget,this.m_originalTop,"top"),this.m_databody.firstChild.appendChild(this.m_dropTarget),this._addHeaderDropTarget(this.m_moveRowHeader,this.m_rowHeader,!1),this._addHeaderDropTarget(this.m_moveRowEndHeader,this.m_rowEndHeader,!0)}this.m_utils.isTouchDevice()||(this.m_prevY=this.m_currentY,this.m_currentY=e.pageY);for(var n=this.m_currentY-this.m_prevY,o=this.calculateRowHeight(this.m_moveCells[0]),l=0;l<this.m_moveCells.length;l++)this.setElementDir(this.m_moveCells[l],this.getElementDir(this.m_moveCells[l],"top")+n,"top");null!==this.m_moveRowHeader&&this.setElementDir(this.m_moveRowHeader,this.getElementDir(this.m_moveRowHeader,"top")+n,"top"),null!==this.m_moveRowEndHeader&&this.setElementDir(this.m_moveRowEndHeader,this.getElementDir(this.m_moveRowEndHeader,"top")+n,"top");var r=this.m_moveIndex+1,a=this.m_moveIndex-1,h=this._getCellByIndex(this.createIndex(r,this.m_startCol)),d=this._getCellByIndex(this.createIndex(a,this.m_startCol));null!=h&&this.getElementDir(h,"top")<this.getElementDir(this.m_moveCells[0],"top")+o/2?this._moveDropRows("nextSibling",r):null!=d&&this.getElementDir(d,"top")>this.getElementDir(this.m_moveCells[0],"top")-o/2&&this._moveDropRows("previousSibling",a)},M.prototype._addHeaderDropTarget=function(e,t,i){var s;null!==e&&(null==e.style.height&&this.setElementHeight(e,this.calculateRowHeight(e)),this.m_utils.addCSSClassName(e,this.getMappedStyle("drag")),s=document.createElement("div"),this.m_utils.addCSSClassName(s,this.getMappedStyle("drop")),this.setElementHeight(s,this.calculateRowHeight(e)),this.setElementDir(s,this.m_originalTop,"top"),t.firstChild.appendChild(s),i?this.m_dropTargetEndHeader=s:this.m_dropTargetHeader=s)},M.prototype._moveDropRows=function(e,t){var i,s,n,o,l;"nextSibling"===e?(l=this._getAxisCellsByIndex(t,"row"),i=this.m_originalTop+this.calculateRowHeight(l[0]),s=this.m_originalTop):(l=this._getAxisCellsByIndex(t,"row"),s=(i=this.getElementDir(l[0],"top"))+this.calculateRowHeight(l[0])),this.setElementDir(this.m_dropTarget,i,"top");for(var r=0;r<l.length;r++)this.setElementDir(l[r],s,"top");null!==this.m_moveRowHeader&&(n=this.m_moveRowHeader.parentNode,this.setElementDir(this.m_dropTargetHeader,i,"top"),this.setElementDir(this.m_moveRowHeader[e],s,"top")),null!==this.m_moveRowEndHeader&&(o=this.m_moveRowEndHeader.parentNode,this.setElementDir(this.m_dropTargetEndHeader,i,"top"),this.setElementDir(this.m_moveRowEndHeader[e],s,"top")),this.m_originalTop=i,this._highlightCellsAlongAxis(this.m_moveIndex+1,"row","index","remove",["activedrop"]),"nextSibling"===e?(this._modifyAxisCellContextIndex("row",this.m_moveIndex,1,1),this._modifyAxisCellContextIndex("row",this.m_moveIndex+1,1,-1),this.m_moveIndex+=1,null!==this.m_moveRowHeader&&n&&n.insertBefore(this.m_moveRowHeader,this.m_moveRowHeader[e][e]),null!==this.m_moveRowEndHeader&&o&&o.insertBefore(this.m_moveRowEndHeader,this.m_moveRowEndHeader[e][e])):(this._modifyAxisCellContextIndex("row",this.m_moveIndex,1,-1),this._modifyAxisCellContextIndex("row",this.m_moveIndex-1,1,1),this.m_moveIndex-=1,null!==this.m_moveRowHeader&&n&&n.insertBefore(this.m_moveRowHeader,this.m_moveRowHeader[e]),null!==this.m_moveRowEndHeader&&o&&o.insertBefore(this.m_moveRowEndHeader,this.m_moveRowEndHeader[e])),this._refreshDatabodyMap(),this._highlightCellsAlongAxis(this.m_moveIndex+1,"row","index","add",["activedrop"])},M.prototype._isMoveEnabled=function(e){var t=this.getDataSource().getCapability("move");return"enable"===this.m_options.isMoveable("row")&&("full"===t||t===e)},M.prototype._handleMoveMouseUp=function(e,t){if(null!=this.m_moveCells){this._remove(this.m_dropTarget),null!==this.m_moveRowHeader&&this._remove(this.m_dropTargetHeader),null!==this.m_moveRowEndHeader&&this._remove(this.m_dropTargetEndHeader),null!=this.m_active&&"column"!==this.m_active.axis&&(this.m_moveActive=!0),this._isSelectionEnabled()&&this._clearSelection(e);var i=this.m_moveCells[0],s=this._getKey(i,"row");if(!0===t){var n=this.m_moveIndex+1,o=this._getKey(this._getCellByIndex(this.createIndex(n,this.m_startCol)),"row");this.getDataSource().move(s,o)}else this.getDataSource().move(s,s);this.m_moveCells=null,this.m_originalMoveIndex=null,this.m_moveIndex=null}this.m_databodyMove=!1},M.prototype._handleFloodFillMouseUp=function(e){if(this.m_floodFillRange&&this.m_floodFillRange.length){var t={event:e,ui:{action:this.m_floodFillDirection,sourceRange:this.m_selectionRange[0],targetRange:this.m_floodFillRange[0]}};if(!this.fireEvent("fillRequest",t))return!0;this.unhighlightFloodFillRange()}return this.m_selectionRange=null,this.m_floodFillRange=null,this.m_floodFillDirection=null,this.m_databody&&(this.m_databody.style.cursor="default"),this.m_cursor="default",!0},M.prototype._isMoveOnElementEnabled=function(e){return!(null==e||!this._isMoveEnabled("row")||this._getActiveKey("row")!==this._getKey(e,"row"))},M.prototype._manageMoveCursor=function(){var e=this._getActiveKey("row"),t=this._getActiveKey("row",!0),i=this.getMappedStyle("draggable"),s=this.getMappedStyle("rowheadercell"),n=this.getMappedStyle("rowendheadercell");if(null!=t){this._highlightCellsAlongAxis(t,"row","key","remove",["draggable"]);var o=this._findHeaderByKey(t,this.m_rowHeader,s);this.m_utils.containsCSSClassName(o,i)&&this.m_utils.removeCSSClassName(o,i),o=this._findHeaderByKey(t,this.m_rowEndHeader,n),this.m_utils.containsCSSClassName(o,i)&&this.m_utils.removeCSSClassName(o,i)}if(null!=e){var l=this._getAxisCellsByKey(e,"row");if(this._isMoveOnElementEnabled(l[0])){this._highlightCellsAlongAxis(e,"row","key","add",["draggable"]);var r=this._findHeaderByKey(e,this.m_rowHeader,s);this.m_utils.addCSSClassName(r,i);var a=this._findHeaderByKey(e,this.m_rowEndHeader,n);this.m_utils.addCSSClassName(a,i)}}},M.prototype.handleRootFocus=function(e,t){if(this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("focus")),this._clearFocusoutTimeout(),this._clearFocusoutBusyState(),!t){if(this._clearOpenPopupListeners(),!this.m_root.contains(document.activeElement)||document.activeElement===this.m_root&&0===this.m_root.tabIndex||document.activeElement===this.m_databody&&this.m_scrollbarFocus&&0===this.m_root.tabIndex){this.m_externalFocus=!0,this._isCellEditable()?this._setAccInfoText("accessibleEditableMode"):this._isGridEditable()&&this._setAccInfoText("accessibleNavigationMode");var i=!1;if(!0===this.m_scrollbarFocus&&(this.m_shouldFocus=!1,this.m_scrollbarFocus=!1,i=!0),null!=this.m_active||this._databodyEmpty())null!=this.m_active&&this._highlightActive();else{var s=this.createIndex(0,0);i||this.scrollToIndex(s),this._setActiveByIndex(s,e,null,null,i)}}this.m_root.tabIndex=-1}},M.prototype._handlePopupFocusout=function(e){this.handleRootBlur(e,!0)},M.prototype._handlePopupFocusin=function(e){this.handleRootFocus(e,!0)},M.prototype.handleRootBlur=function(e,t){if(this._clearFocusoutTimeout(),!t){this._clearOpenPopupListeners();var i=p.getLogicalChildPopup(this.m_root);if(null!=i)return this._openPopup=i,t=!1,this._handlePopupFocusinListener=this._handlePopupFocusin.bind(this),this._handlePopupFocusoutListener=this._handlePopupFocusout.bind(this),i.addEventListener("focusin",this._handlePopupFocusinListener),void i.addEventListener("focusout",this._handlePopupFocusoutListener)}this._setFocusoutBusyState(),this.m_focusoutTimeout=setTimeout(function(){if(!this.m_root.contains(document.activeElement)||!0===t){this.m_root.tabIndex=0;var i=this._getActiveElement();null!=i&&(this._unsetAriaProperties(i),this._isEditOrEnter()&&!this.m_animating&&this._leaveEditing(e,i,!1,!1))}this._clearFocusoutBusyState()}.bind(this),100),null==this.m_moveRow&&this.m_utils.removeCSSClassName(this.m_root,this.getMappedStyle("focus"))},M.prototype._clearOpenPopupListeners=function(){null!=this._openPopup&&(this._openPopup.removeEventListener("focusin",this._handlePopupFocusinListener),this._openPopup.removeEventListener("focusout",this._handlePopupFocusoutListener),this._openPopup=null),this._handlePopupFocusinListener=null,this._handlePopupFocusoutListener=null},M.prototype._handlePopupFocusout=function(e){this.handleRootBlur(e,!0)},M.prototype._handlePopupFocusin=function(e){this.handleRootFocus(e,!0)},M.prototype._clearFocusoutTimeout=function(){this.m_focusoutTimeout&&(clearTimeout(this.m_focusoutTimeout),this.m_focusoutTimeout=null)},M.prototype._setFocusoutBusyState=function(){if(!this.m_focusoutResolveFunc){var e=d.getContext(this.m_root).getBusyContext(),t={description:"Datagrid component 'is handling focusout."};this.m_focusoutResolveFunc=e.addBusyState(t)}},M.prototype._clearFocusoutBusyState=function(){this.m_focusoutResolveFunc&&(this.m_focusoutResolveFunc(),this.m_focusoutResolveFunc=null)},M.prototype.calculateRowHeight=function(e){return""!==e.style.height?this.getElementHeight(e):null!=e.nextSibling?this.getElementDir(e.nextSibling,"top")-this.getElementDir(e,"top"):this.m_endRowPixel-this.getElementDir(e,"top")},M.prototype.calculateRowHeaderHeight=function(e){return""!==e.style.height?this.getElementHeight(e):null!=e.nextSibling?this.getElementDir(e.nextSibling,"top")-this.getElementDir(e,"top"):this.m_endRowHeaderPixel-this.getElementDir(e,"top")},M.prototype.calculateRowHeaderLabelHeight=function(e){return this.getElementHeight(e)},M.prototype.calculateColumnWidth=function(e){if(""!==e.style.width)return this.getElementWidth(e);var t=this.getResources().isRTLMode()?"right":"left";return null!=e.nextSibling?this.getElementDir(e.nextSibling,t)-this.getElementDir(e,t):this.m_endColPixel-this.getElementDir(e,t)},M.prototype.calculateColumnHeaderWidth=function(e){if(""!==e.style.width)return this.getElementWidth(e);var t=this.getResources().isRTLMode()?"right":"left";return null!=e.nextSibling?this.getElementDir(e.nextSibling,t)-this.getElementDir(e,t):this.m_endColHeaderPixel-this.getElementDir(e,t)},M.prototype._databodyEmpty=function(){return null==this.m_databody.firstChild||null==this.m_databody.firstChild.firstChild},M.prototype.changeStyleProperty=function(e,t,i,s){void 0!==t&&(e.style[t]="remove"===s?"":i)},M.prototype.addTransformMoveStyle=function(e,t,i,s,n,o,l){this.changeStyleProperty(e,this.getCssSupport("transition-delay"),i),this.changeStyleProperty(e,this.getCssSupport("transition-timing-function"),s),this.changeStyleProperty(e,this.getCssSupport("transition-duration"),t),this.changeStyleProperty(e,this.getCssSupport("transform"),"translate3d("+n+"px,"+o+"px,"+l+"px)")},M.prototype.removeTransformMoveStyle=function(e){this.changeStyleProperty(e,this.getCssSupport("transition-delay"),null,"remove"),this.changeStyleProperty(e,this.getCssSupport("transition-timing-function"),null,"remove"),this.changeStyleProperty(e,this.getCssSupport("transition-duration"),null,"remove"),this.changeStyleProperty(e,this.getCssSupport("transform"),null,"remove")},M.prototype.getCssSupport=function(e){var t=["","-moz-","-webkit-","-o-","-ms-","-khtml-"],i=document.documentElement;for(var s=0;s<t.length;s++){var n=(t[s]+e).replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});if("Ms"===n.substr(0,2)&&(n="m"+n.substr(1)),n in i.style)return n}},M.prototype._refreshDatabodyMap=function(){this._clearDatabodyMap(),this._addNodesToDatabodyMap(this.m_databody.firstChild.childNodes)},M.prototype._populateDatabody=function(e,t){this._addNodesToDatabodyMap(t.childNodes),e.appendChild(t),this.m_subtreeAttachedCallback(e)},M.prototype._emptyDatabody=function(e){this._clearDatabodyMap(),this.m_utils.empty(e)},M.prototype._addNodesToDatabodyMap=function(e){for(var t=0;t<e.length;t++){var i=e[t];if(this.m_utils.containsCSSClassName(i,this.getMappedStyle("cell"))){var s=this.getCellIndexes(i),n=this.getCellExtents(i),o=i.id;this._addToDatabodyMap(s,o,n)}}},M.prototype._addToDatabodyMap=function(e,t,i){for(var s=i.row,n=i.column,o=0;o<s;o++)for(var l=0;l<n;l++)this._addIndexToDatabodyMap(this.createIndex(e.row+o,e.column+l),t)},M.prototype._addIndexToDatabodyMap=function(e,t){var i="r"+e.row+"c"+e.column;this.m_databodyMap.set(i,t)},M.prototype._removeIndexFromDatabodyMap=function(e){var t="r"+e.row+"c"+e.column;return this.m_databodyMap.delete(t)},M.prototype._getFromDatabodyMap=function(e){var t="r"+e.row+"c"+e.column;return this.m_databodyMap.get(t)},M.prototype._clearDatabodyMap=function(){return this.m_databodyMap.clear()},M.prototype._modifyAxisCellContextIndex=function(e,t,i,s){for(var n=t;n<t+i;n++)for(var o=this._getAxisCellsByIndex(n,e),l=0;l<o.length;l++){o[l][this.getResources().getMappedAttribute("context")].indexes[e]+=s}},M.prototype._modifyAxisHeaderContextIndex=function(e,t,i,s){for(var n=t;n<t+i;n++){var o;o="row"===e?this._getHeadersByIndex(n,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader):this._getHeadersByIndex(n,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader);for(var l=0;l<o.length;l++){o[l][this.getResources().getMappedAttribute("context")].index+=s}}},M.prototype._getCellOrHeaderByIndex=function(e,t){var i=null,s=this._getAxisCellsByIndex(e,t,!0);return null!=s&&s.length>0&&(i=s[0]),null==i&&("row"===t&&null==(i=this._getHeaderByIndex(e,0,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader))&&(i=this._getHeaderByIndex(e,0,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader)),"column"===t&&null==(i=this._getHeaderByIndex(e,0,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader))&&(i=this._getHeaderByIndex(e,0,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader))),i},M.prototype._getLabel=function(e,t){return this.m_headerLabels[e][t]},M.prototype._getCellByIndex=function(e){var t=this._getFromDatabodyMap(e);return null!=t?this.m_databody.querySelector("#"+t):null},M.prototype._getCellsInRange=function(e,t,i,s){let n=[];for(let o=e;o<=i;o++)for(let e=t;e<=s;e++){let t=this._getCellByIndex(this.createIndex(o,e));t&&n.push(t)}return n},M.prototype._getFirstCellWithMatchingStartIndex=function(e,t){let i,s,n="row"===t?this.m_startCol:this.m_startRow,o="row"===t?this.m_endCol:this.m_endRow;for(let l=n;l<=o;l++)if(i=this.createIndex("row"===t?e:l,"row"===t?l:e),s=this._getCellByIndex(i),this._getIndex(s,t)===e)return s;return null},M.prototype._getAxisCellsByIndex=function(e,t,i){for(var s,n="row"===t?this.m_startCol:this.m_startRow,o="row"===t?this.m_endCol:this.m_endRow,l=[],r=n;r<=o;r+=s){var a=this._getCellByIndex(this.createIndex("row"===t?e:r,"row"===t?r:e));if(null!=a){if(s=this.getCellExtents(a)["row"===t?"column":"row"],l.push(a),i)break}else s=1}return l},M.prototype._getAxisCellsByKey=function(e,t,i){if(null==e||null==this.m_databody||null==this.m_databody.firstChild)return null;for(var s=[],n=this.m_databody.firstChild.childNodes,o=0;o<n.length;o++){var l=n[o];if(this.m_utils.containsCSSClassName(l,this.getMappedStyle("cell")))if(this._getKey(l,t)===e&&(s.push(l),i))break}return s},M.prototype._setupActions=function(){this.actions={ACTIONABLE:this._handleActionable,EXIT_ACTIONABLE:this._handleExitActionable,TAB_NEXT_IN_CELL:c.handleActionableTab,TAB_PREV_IN_CELL:c.handleActionablePrevTab,EDITABLE:this._handleEditable,EXIT_EDITABLE:this._handleExitEditable,DATA_ENTRY:this._handleDataEntry,EXIT_DATA_ENTRY:this._handleExitDataEntry,EDIT:this._handleEdit,EXIT_EDIT:this._handleExitEdit,CANCEL_EDIT:this._handleCancelEdit,NO_OP:this._handleNoOp,FOCUS_LEFT:this._handleFocusLeft,FOCUS_LEFT_NON_EMPTY_CELL:this._handleFocusLeftNonEmptyCell,FOCUS_RIGHT:this._handleFocusRight,FOCUS_RIGHT_NON_EMPTY_CELL:this._handleFocusRightNonEmptyCell,FOCUS_UP:this._handleFocusUp,FOCUS_UP_NON_EMPTY_CELL:this._handleFocusUpNonEmptyCell,FOCUS_DOWN:this._handleFocusDown,FOCUS_DOWN_NON_EMPTY_CELL:this._handleFocusDownNonEmptyCell,FOCUS_ROW_FIRST:this._handleFocusRowFirst,FOCUS_ROW_LAST:this._handleFocusRowLast,FOCUS_COLUMN_FIRST:this._handleFocusColumnFirst,FOCUS_COLUMN_LAST:this._handleFocusColumnLast,FOCUS_COLUMN_HEADER:this._handleFocusColumnHeader,FOCUS_COLUMN_END_HEADER:this._handleFocusColumnEndHeader,FOCUS_ROW_HEADER:this._handleFocusRowHeader,FOCUS_ROW_END_HEADER:this._handleFocusRowEndHeader,FOCUS_FIRST_CELL_IN_GRID:this._handleFocusFirstCellInGrid,FOCUS_LAST_CELL_IN_GRID:this._handleFocusLastCellInGrid,READ_CELL:this.readCurrentContent,SORT:this._handleSortKey,EXPAND:this._handleExpandKey,COLLAPSE:this._handleCollapseKey,SELECT_DISCONTIGUOUS:this._handleSelectDiscontiguous,SELECT_EXTEND_LEFT:this._handleExtendSelectionLeft,SELECT_EXTEND_RIGHT:this._handleExtendSelectionRight,SELECT_EXTEND_UP:this._handleExtendSelectionUp,SELECT_EXTEND_DOWN:this._handleExtendSelectionDown,SELECT_ROW:this._handleSelectRow,SELECT_COLUMN:this._handleSelectColumn,SELECT_ALL:this._handleSelectAll,CUT:this._handleCut,CUT_CELLS:this._handleCutCells,COPY_CELLS:this._handleCopyCells,CANCEL_REORDER:this._handleCancelReorder,PASTE:this._handlePaste,PASTE_CELLS:this._handlePasteCells,FILL:this._handleAutofill}},M.prototype._getActionFromKeyDown=function(e,t,i){var s={cellOrHeader:t,isLabel:i,readOnly:!this._isCellEditable(),currentMode:this._getCurrentMode(),activeMove:null!=this.m_cutCells||null!=this.m_dataTransferAction,rowMove:this._isMoveEnabled("row"),columnSort:"column"===t&&this._isDOMElementSortable(this._getActiveElement()),rowSort:"row"===t&&this._isDOMElementSortable(this._getActiveElement()),selection:this._isSelectionEnabled(),selectionMode:this.m_options.getSelectionMode(),multipleSelection:this.isMultipleSelection(),expandCollapse:this._isTargetExpandCollapseEnabled(e.target)};return this._isDataGridProvider()&&(s.cutCells=!0,s.copyCells=!0,s.pasteCells=!0),this.m_options.isFloodFillEnabled()&&(s.fill=!0),this.actions[this.m_keyboardHandler.getAction(e,s)]},M.prototype.isActionableMode=function(){return"actionable"===this.m_currentMode},M.prototype.setActionableMode=function(e){this.m_currentMode=e?"actionable":"navigation",this._setAccInfoText(this.isActionableMode()?"accessibleActionableMode":"accessibleNavigationMode")},M.prototype._handleActionable=function(e,t){return this._enterActionableMode(t,e),!1},M.prototype._handleExitActionable=function(e,t){return this._exitActionableMode(),this._highlightActive(),!1},M.prototype._getEditMode=function(){return null==this.m_editMode&&(this.m_editMode=this.m_options.getEditMode()),this.m_editMode},M.prototype._getCurrentMode=function(){return null==this.m_currentMode&&(this.m_currentMode="navigation"),this.m_currentMode},M.prototype._isEditOrEnter=function(){return"edit"===this._getCurrentMode()},M.prototype._isGridEditable=function(){var e=this._getEditMode();return"cellNavigation"===e||"cellEdit"===e},M.prototype._isCellEditable=function(){return"cellEdit"===this._getEditMode()},M.prototype._handleEditable=function(e,t){return this._isGridEditable()?(this.m_editMode=null,this.m_setOptionCallback("editMode","cellEdit",{_context:{writeback:!0,internalSet:!0}}),this.m_utils.removeCSSClassName(this.m_root,this.getMappedStyle("readOnly")),this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("editable")),this._updateEdgeCellBorders(""),this._setAccInfoText("accessibleEditableMode"),this._setEditableClone(t)):this._handleActionable(e,t),!1},M.prototype._handleExitEditable=function(e,t){this.m_editMode=null,this.m_setOptionCallback("editMode","cellNavigation",{_context:{writeback:!0,internalSet:!0}}),this.m_utils.addCSSClassName(this.m_root,this.getMappedStyle("readOnly")),this.m_utils.removeCSSClassName(this.m_root,this.getMappedStyle("editable")),this._updateEdgeCellBorders("none"),this._setAccInfoText("accessibleNavigationMode"),this._destroyEditableClone()},M.prototype._handleDataEntry=function(e,t){var i={event:e,ui:{cell:t,cellContext:t[this.getResources().getMappedAttribute("context")]}};return this.fireEvent("beforeEdit",i)&&(this._removeFloodFillAffordance(),this._reRenderCell(t,"edit",this.getMappedStyle("cellEdit"),this.m_editableClone),this._overwriteFlag=!0,this._setFocusToFirstFocusableElement(t)?this.m_currentMode="edit":this.m_utils.removeCSSClassName(t,this.getMappedStyle("cellEdit")),this._overwriteFlag=!1),!1},M.prototype._handleExitDataEntry=function(e,t){return this._leaveEditing(e,t,!1)},M.prototype._handleEdit=function(e,t){var i={event:e,ui:{cell:t,cellContext:t[this.getResources().getMappedAttribute("context")]}},s=this.fireEvent("beforeEdit",i);if(s){this._removeFloodFillAffordance(),this._reRenderCell(t,"edit",this.getMappedStyle("cellEdit"),this.m_editableClone),this.m_currentMode="edit";var n=this;d.getContext(t).getBusyContext().whenReady().then(function(){n._setFocusToFirstFocusableElement(t)||(n.m_utils.removeCSSClassName(t,n.getMappedStyle("cellEdit")),n.m_currentMode="navigation")})}else s=!1,this._enterActionableMode(t);return s},M.prototype._handleExitEdit=function(e,t){return this._leaveEditing(e,t,!1)},M.prototype._handleCancelEdit=function(e,t){return!!this._leaveEditing(e,t,!0)&&(this._setEditableClone(t),!0)},M.prototype._leaveEditing=function(e,t,i,s){var n={event:e,ui:{cell:t,cellContext:t[this.getResources().getMappedAttribute("context")],cancelEdit:i}};i||(c.disableAllFocusableElements(t),!1===s&&(this.m_shouldFocus=s),this._highlightActive());var o=this.fireEvent("beforeEditEnd",n);return o?(this.m_currentMode="navigation",c.disableAllFocusableElements(t),!1===s&&(this.m_shouldFocus=s),this._highlightActive(),this._reRenderCell(t,"navigation",this.getMappedStyle("cellEdit"),this.m_editableClone)):(o=!1,this._scrollToActive(this.m_active),this._setFocusToFirstFocusableElement(t)),o},M.prototype._handleFocusKey=function(e,t,i,s,n,o,l){var r,a=!0,h=!0;if(null!=this.m_active){if("cell"===this.m_active.type){if(this._isEditOrEnter()?(r=!0,a=this._leaveEditing(e,t,!1),h=!1):this.isActionableMode()&&this._exitActionableMode(),a){this.m_options.isFloodFillEnabled()&&this._removeFloodFillAffordance();var d=this.m_active,c=this.handleFocusChange(i,s,e,h,n,o,l);return this._isGridEditable()&&d!==this.m_active&&r&&this.m_utils.isTouchDevice()?this._handleDataEntry(e,this._getActiveElement()):c}return!0}if("header"===this.m_active.type)return this.handleHeaderFocusChange(i,e,s,n,o);if("label"===this.m_active.type)return this.handleLabelFocusChange(i,e,s,n)}return!1},M.prototype._handleFocusLeft=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.LEFT_KEY,!1,!1)},M.prototype._handleFocusLeftNonEmptyCell=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.LEFT_KEY,!1,!1,!0)},M.prototype._handleFocusRight=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.RIGHT_KEY,!1,!1)},M.prototype._handleFocusRightNonEmptyCell=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.RIGHT_KEY,!1,!1,!0)},M.prototype._handleFocusUp=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.UP_KEY,!1,!1)},M.prototype._handleFocusUpNonEmptyCell=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.UP_KEY,!1,!1,!0)},M.prototype._handleFocusDown=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.DOWN_KEY,!1,!1)},M.prototype._handleFocusDownNonEmptyCell=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.DOWN_KEY,!1,!1,!0)},M.prototype._handleFocusRowFirst=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.PAGEUP_KEY,!1,!1)},M.prototype._handleFocusRowLast=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.PAGEDOWN_KEY,!1,!1)},M.prototype._handleFocusColumnFirst=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.HOME_KEY,!1,!1)},M.prototype._handleFocusColumnLast=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.END_KEY,!1,!1)},M.prototype._handleFocusRowHeader=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.LEFT_KEY,!1,!0)},M.prototype._handleFocusRowEndHeader=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.RIGHT_KEY,!1,!0)},M.prototype._handleFocusColumnHeader=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.UP_KEY,!1,!0)},M.prototype._handleFocusColumnEndHeader=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.DOWN_KEY,!1,!0)},M.prototype._handleFocusFirstCellInGrid=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.HOME_KEY,!1,!1,!1,!0)},M.prototype._handleFocusLastCellInGrid=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.END_KEY,!1,!1,!1,!0)},M.prototype._handleSelectRow=function(e,t){var i,s,n,o,l=1;if(!this._isSelectionEnabled()||!this.isMultipleSelection()&&"row"!==this.m_options.getSelectionMode())return!1;if(this.m_utils.containsCSSClassName(t,this.getMappedStyle("cell")))i=o=this.m_active.indexes.row,s=o,n=this.m_rowHeaderLevelCount-1;else{if(null==this.m_active||"header"!==this.m_active.type||-1===this.m_active.axis.indexOf("row"))return!1;if(o=this.m_active.index,n=this.m_active.level,this.m_rowHeaderLevelCount-1===n)i=o,s=o;else{var r=this._getActiveElement();s=(i=this._getAttribute(r.parentNode,"start",!0))+(l=this._getAttribute(r.parentNode,"extent",!0))-1}}if(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&-1!==this.m_selectionFrontier.axis.indexOf("column"))return this._handleSelectAll(e),!0;if(this.setHeaderSelectionFrontier("row",s,o,n,t,!0),this._shouldDeselectHeader(o,l,"column")){var a=this.createIndex(o,0),h=this.createIndex(o+l-1,-1),d=this._getSelectionStartAndEnd(a,h,0),c=this.createRange(this.createIndex(d.min.row,0),this.createIndex(d.max.row,-1)),m=this._trimRangeForSelectionMode(c);return this.m_deselectInfo={selection:this.GetSelection()},this._deselectRange(m,e),!0}return this._selectEntireRow(i,s,e),this._setAccInfoText("accessibleRowSelected",{row:o+1}),!0},M.prototype._handleSelectColumn=function(e,t){var i,s,n,o,l=1;if(!this._isSelectionEnabled()||!this.isMultipleSelection()||"cell"!==this.m_options.getSelectionMode())return!1;if(this.m_utils.containsCSSClassName(t,this.getMappedStyle("cell")))i=o=this.m_active.indexes.column,s=o,n=this.m_columnHeaderLevelCount-1;else{if(null==this.m_active||"header"!==this.m_active.type||-1===this.m_active.axis.indexOf("column"))return!1;if(o=this.m_active.index,n=this.m_active.level,this.m_columnHeaderLevelCount-1===n)i=o,s=o;else{var r=this._getActiveElement();s=(i=this._getAttribute(r.parentNode,"start",!0))+(l=this._getAttribute(r.parentNode,"extent",!0))-1}}if(this.m_selectionFrontier&&this.m_selectionFrontier.axis&&-1!==this.m_selectionFrontier.axis.indexOf("row"))return this._handleSelectAll(e),!0;if(this.setHeaderSelectionFrontier("column",s,o,n,t,!0),this._shouldDeselectHeader(o,l,"row")){var a=this.createIndex(0,o),h=this.createIndex(-1,o+l-1),d=this._getSelectionStartAndEnd(a,h,0),c=this.createRange(this.createIndex(0,d.min.column),this.createIndex(-1,d.max.column)),m=this._trimRangeForSelectionMode(c);return this.m_deselectInfo={selection:this.GetSelection()},this._deselectRange(m,e),!0}return this._selectEntireColumn(i,s,e),this._setAccInfoText("accessibleColumnSelected",{column:o+1}),!0},M.prototype._handleSelectDiscontiguous=function(e,t){return this.setDiscontiguousSelectionMode(!this.m_discontiguousSelection),!0},M.prototype._handleExtendSelectionLeft=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.LEFT_KEY,!0,!1)},M.prototype._handleExtendSelectionRight=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.RIGHT_KEY,!0,!1)},M.prototype._handleExtendSelectionUp=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.UP_KEY,!0,!1)},M.prototype._handleExtendSelectionDown=function(e,t){return this._handleFocusKey(e,t,this.keyCodes.DOWN_KEY,!0,!1)},M.prototype._handleSortKey=function(e,t){return"true"===t.getAttribute(this.getResources().getMappedAttribute("sortable"))?(this._handleKeyboardSort(t,e),!0):this._handleActionable(e,t)},M.prototype._handleExpandKey=function(e,t){return!!this._isHeaderCollapsed(t)&&(this._handleExpandCollapseRequest(e),!0)},M.prototype._handleCollapseKey=function(e,t){return!!this._isHeaderExpanded(t)&&(this._handleExpandCollapseRequest(e),!0)},M.prototype._handleNoOp=function(e,t){return!1},M.RESIZE_OFFSET=5,M.RESIZE_TOUCH_OFFSET=8,M.prototype.handleResize=function(e){if(!1===this.m_isResizing){var t=this.find(e.target,"header"),i=this.find(e.target,"headerlabel");if(null==t&&(t=this.find(e.target,"endheader")),null!=t&&(t===this.m_rowHeader||t===this.m_colHeader||t===this.m_rowEndHeader||t===this.m_colEndHeader)||null!=i){let t=!1;i&&(t=!0),this.m_cursor=this.manageHeaderCursor(e,t),null!=this.m_resizingElement&&("default"===this.m_cursor?(this.m_resizingElement.style.cursor="",this._isSelectionEnabled()&&this.m_utils.addCSSClassName(e.target,this.getMappedStyle("hover")),null!=this.m_resizingElementSibling&&(this.m_resizingElementSibling.style.cursor="")):(this.m_resizingElement.style.cursor=this.m_cursor,this.m_utils.removeCSSClassName(e.target,this.getMappedStyle("hover")),null!=this.m_resizingElementSibling&&(this.m_resizingElementSibling.style.cursor=this.m_cursor)))}}else this.handleResizeMouseMove(e)},M.prototype.handleResizeMouseDown=function(e){return("col-resize"===this.m_cursor||"row-resize"===this.m_cursor)&&(this.m_isResizing=!0,this.m_utils.isTouchDevice()?(this.m_lastMouseX=e.touches[0].pageX,this.m_lastMouseY=e.touches[0].pageY):(document.addEventListener("mousemove",this.m_docMouseMoveListener,!1),document.addEventListener("mouseup",this.m_docMouseUpListener,!1),this.m_lastMouseX=e.pageX,this.m_lastMouseY=e.pageY),this.m_overResizeLeft=0,this.m_overResizeMinLeft=0,this.m_overResizeTop=0,this.m_overResizeMinTop=0,this.m_overResizeRight=0,this.m_overResizeBottom=0,this.m_orginalResizeDimensions={width:this.getElementWidth(this.m_resizingElement),height:this.getElementHeight(this.m_resizingElement)},!0)},M.prototype._resizeSelectedHeaders=function(e,t,i,s,n,o){let l,r=this.m_resizingElement,a=this.getHeaderCellAxis(this.m_resizingElement),h=this.getHeaderCellIndex(this.m_resizingElement),d=this._getResizeHeaderMode(this.m_resizingElement),c=this.getHeaderCellLevel(this.m_resizingElement),m=!1;if(("column"===a&&c===this.m_columnHeaderLevelCount-1||"row"===a&&c===this.m_rowHeaderLevelCount-1||"columnEnd"===a&&c===this.m_columnEndHeaderLevelCount-1||"rowEnd"===a&&c===this.m_rowEndHeaderLevelCount-1)&&(m=!0),this.m_selection&&this.m_selection.length&&m&&!this.m_discontiguousSelection&&(l=this._getHeadersWithinSelection(this.m_selection[0],h,a)),l&&l.length)for(let a=0;a<l.length;a++)r!==l[a]&&(this.m_resizingElement=l[a],"column"===d?this.resizeColWidth(this.getElementDir(l[a],"width"),s):this.resizeRowHeight(this.getElementDir(l[a],"height"),n)),this._fireResizeEvent(e,t,i,s,n,o);else"column"===d?this.resizeColWidth(this.getElementDir(this.m_resizingElement,"width"),s):this.resizeRowHeight(this.getElementDir(this.m_resizingElement,"height"),n),this._fireResizeEvent(e,t,i,s,n,o)},M.prototype._fireResizeEvent=function(e,t,i,s,n,o){let l={event:e,ui:{header:this._getKey(this.m_resizingElement),oldDimensions:{width:t,height:i},newDimensions:{width:s,height:n},size:o}};this.fireEvent("resize",l)},M.prototype.handleResizeMouseUp=function(e){if(!0===this.m_isResizing){var t=this.getElementWidth(this.m_resizingElement),i=this.getElementHeight(this.m_resizingElement);let s=this.m_orginalResizeDimensions.width,n=this.m_orginalResizeDimensions.height,o=this.m_resizingElement,l="col-resize"===this.m_cursor?o.style.width:o.style.height;t===this.m_orginalResizeDimensions.width&&i===this.m_orginalResizeDimensions.height||"col-resize"!==this.m_cursor&&"row-resize"!==this.m_cursor||this._resizeSelectedHeaders(e,s,n,t,i,l),o.style.cursor="",this._unhighlightResizeBorderColor(),this.m_isResizing=!1,this.m_cursor="default",null!=this.m_resizingElementSibling&&(this.m_resizingElementSibling.style.cursor=""),this.m_resizingElement=null,this.m_resizingElementMin=null,this.m_resizingElementSibling=null,this.m_orginalResizeDimensions=null,document.removeEventListener("mousemove",this.m_docMouseMoveListener,!1),document.removeEventListener("mouseup",this.m_docMouseUpListener,!1)}},M.prototype._isDOMElementResizable=function(e){return null!=e&&"true"===e.getAttribute(this.getResources().getMappedAttribute("resizable"))},M.prototype.manageHeaderCursor=function(e,t){var i,s,n,o,l,r,a,h,d;if((d=t?this.find(e.target,"headerlabel"):this.find(e.target,"headercell"))||t||(d=this.find(e.target,"endheadercell")),!d)return"default";var c=t?this.getHeaderLabelAxis(d):this.getHeaderCellAxis(d),m=t?this.getHeaderLabelLevel(d):this.getHeaderCellIndex(d),u=t?m:this.getHeaderCellLevel(d);if("column"===c?(l="enable"===this.m_options.isResizable(c,"height"),o=this._isDOMElementResizable(d),t?(a=null,r=null,h=this.m_headerLabels.column[m-1]):((a=this._getHeaderByIndex(m-1,u,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader))||(this.m_headerLabels.column.length?(a=this._getLabel("column",u),u===this.m_columnHeaderLevelCount-1&&this._isHeaderLabelCollision()&&(a=this.m_headerLabels.row[this.m_rowHeaderLevelCount-1])):a=this._getLabel("row",u)),r=this._isDOMElementResizable(a),h=this._getHeaderByIndex(m,u-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader))):"row"===c?(o="enable"===this.m_options.isResizable(c,"width"),l=t?"enable"===this.m_options.isResizable(c,"height"):this._isDOMElementResizable(d),t?(h=this.m_headerLabels.row[m-1],this._isHeaderLabelCollision()&&d===this.m_headerLabels.row[this.m_rowHeaderLevelCount-1]&&(a=this.m_headerLabels.column[this.m_columnHeaderLevelCount-1])):(a=this._getHeaderByIndex(m-1,u,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),r=this._isDOMElementResizable(a),h=this._getHeaderByIndex(m,u-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader))):"columnEnd"===c?(l="enable"===this.m_options.isResizable(c).height,o=this._isDOMElementResizable(d),t?(a=null,r=null,h=this.m_headerLabels.columnEnd[m-1]):((a=this._getHeaderByIndex(m-1,u,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader))||(a=this._getLabel("columnEnd",u)),r=this._isDOMElementResizable(a),h=this._getHeaderByIndex(m,u-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader))):"rowEnd"===c&&(o="enable"===this.m_options.isResizable(c).width,l=this._isDOMElementResizable(d),t?(a=this.m_headerLabels.rowEnd[m-1],r=this._isDOMElementResizable(a)):(a=this._getHeaderByIndex(m-1,u,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),r=this._isDOMElementResizable(a),h=this._getHeaderByIndex(m,u-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader))),this.m_utils.isTouchDevice())i=e.touches[0].pageX,s=e.touches[0].pageY,n=M.RESIZE_TOUCH_OFFSET;else{i=e.offsetX,s=e.offsetY,n=M.RESIZE_OFFSET;var _=this._findHeaderOffset(e.target,d);i+=_[0],s+=_[1]}var p=this.getHeaderEdgePixels(d),g=this.getResources().isRTLMode(),f="columnEnd"===c||"rowEnd"===c,C=i<p[0]+n,y=s<p[1]+n,v=i>p[2]-n,E=s>p[3]-n;if("column"===c||"columnEnd"===c){if(o&&(g?C:v))return this.m_resizingElement=d,"col-resize";if(r&&(g?v:C)){if(this.m_resizingElement=a,this.m_resizingElementSibling=d,null!==this.m_resizingElement)return"col-resize"}else if(l){if(!f&&E||f&&y)return this.m_resizingElement=d,"row-resize";if(!f&&y||f&&E)return this.m_resizingElement=h,this.m_resizingElementSibling=d,"row-resize"}}else if("row"===c||"rowEnd"===c){if(l&&E)return this.m_resizingElement=d,"row-resize";if(r&&y&&!t){if(this.m_resizingElement=a,this.m_resizingElementSibling=d,null!==this.m_resizingElement)return"row-resize"}else if(h&&y&&t&&a&&(this.m_resizingElement=h,this.m_resizingElementSibling=d,null!==this.m_resizingElement))return"row-resize";if(o){if(!f&&(g?C:v)||f&&(g?v:C))return this.m_resizingElement=d,"col-resize";if((!f&&(g?v:C)||f&&(g?C:v))&&(this.m_resizingElement=h,this.m_resizingElementSibling=d,null!==this.m_resizingElement))return"col-resize"}}return"default"},M.prototype.handleResizeMouseMove=function(e){var t,i,s,n,o;this.m_currentMouseX=e.pageX,this.m_currentMouseY=e.pageY,this.m_utils.isTouchDevice()?(this.m_currentMouseX=e.touches[0].pageX,this.m_currentMouseY=e.touches[0].pageY):(this.m_currentMouseX=e.pageX,this.m_currentMouseY=e.pageY),t=this._getResizeHeaderMode(this.m_resizingElement);var l=this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("endheadercell"))||this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("columnendheaderlabel"));let r=this.find(this.m_resizingElement,"headerlabel");"col-resize"===this.m_cursor?"column"===t?(l=!r&&l,i=this.calculateColumnHeaderWidth(this.m_resizingElement),s=this.getNewElementWidth("column",i,l,null,r),r?this.resizeRowWidth(s,s-i,l,r):this.resizeColWidth(i,s)):"row"===t&&(this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("rowendheaderlabel"))&&(l=!0),i=this.getElementWidth(this.m_resizingElement),s=this.getNewElementWidth("row",i,l,null,r),this.resizeRowWidth(s,s-i,l,r)):"row-resize"===this.m_cursor&&("row"===t?(n=this.calculateRowHeaderHeight(this.m_resizingElement),o=this.getNewElementHeight("row",n,l,null,r),r?this.resizeColHeight(o,o-n,l):this.resizeRowHeight(n,o)):"column"===t&&(n=this.getElementHeight(this.m_resizingElement),o=this.getNewElementHeight("column",n,l,null,r),this.resizeColHeight(o,o-n,l))),this.buildCorners(),this.m_utils.isTouchDevice()&&this._moveTouchSelectionAffordance(),this.m_lastMouseX=this.m_currentMouseX,this.m_lastMouseY=this.m_currentMouseY},M.prototype.resizeColWidth=function(e,t){var i,s=t-e;if(0!==s){if(null!=this.m_databody.firstChild)i=this.getElementWidth(this.m_databody.firstChild)+s,this.setElementWidth(this.m_databody.firstChild,i);this.resizeColumnWidthAndShift(s),this.m_endColPixel+=s,this.m_endColHeaderPixel+=s,this.m_endColEndHeaderPixel+=s,null!=i&&(this.m_avgColWidth=i/this.getDataSource().getCount("column")),this.manageResizeScrollbars()}},M.prototype.resizeRowHeight=function(e,t){var i,s=t-e;if(0!==s){if(null!=this.m_databody.firstChild)i=this.getElementHeight(this.m_databody.firstChild)+s,this.setElementHeight(this.m_databody.firstChild,i);this.resizeRowHeightAndShift(s),this.m_endRowPixel+=s,this.m_endRowHeaderPixel+=s,this.m_endRowEndHeaderPixel+=s,null!=i&&(this.m_avgRowHeight=i/this.getDataSource().getCount("row")),this.manageResizeScrollbars()}},M.prototype.resizeColHeight=function(e,t,i){if(0!==t){var s,n,o,l=!0,r=this.find(this.m_resizingElement,"headerlabel");if(r?"column"===(o=this.getHeaderLabelAxis(this.m_resizingElement))||"columnEnd"===o?n=this.getHeaderLabelLevel(this.m_resizingElement):"row"!==o&&"rowEnd"!==o||(n=this.m_columnHeaderLevelCount-1,l=!1):(n=this.getHeaderCellLevel(this.m_resizingElement)+(this.getHeaderCellDepth(this.m_resizingElement)-1),o=this.getHeaderCellAxis(this.m_resizingElement)),i?this.m_columnEndHeaderLevelHeights[n]+=t:(s=this.m_columnHeaderLevelHeights[n],this.m_columnHeaderLevelHeights[n]+=t),!i&&n===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length&&this._isHeaderLabelCollision()&&(l=!1),this.resizeColumnHeightsAndShift(t,n,i,l),i)this.m_colEndHeaderHeight+=t,this.setElementHeight(this.m_colEndHeader,this.m_colEndHeaderHeight);else{if(this.m_colHeaderHeight+=t,this.setElementHeight(this.m_colHeader,this.m_colHeaderHeight),0===this.m_headerLabels.column.length&&-1!==n)this._resizeHeaderLabelDirs(n,t,["row"],"height");else if(null!=this.m_columnHeaderLevelCount&&n===this.m_columnHeaderLevelCount-1)if(this.m_headerLabels.row.length){var a,h;if(r){if("column"===o)h=e,this.m_collisionResize=!0;else if("row"===o)a=t,this.m_collisionResize=!0;else if("rowEnd"===o)if(this._isHeaderLabelCollision()){let e=0;for(let t=0;t<this.m_columnHeaderLevelCount-1;t++)e+=this.getElementHeight(this.m_headerLabels.column[t]);let t=this.m_colHeaderHeight-e,i=this._calculateCollisionDimension(t,s,r,o);a=i.rowHeightChange,h=i.colHeight}else a=t,h=this.m_colHeaderHeight}else if(this._isHeaderLabelCollision()){let t=this._calculateCollisionDimension(e,s,!0,o);a=t.rowHeightChange,h=t.colHeight}else a=t,h=e;var d=this._getLabel("column",this.m_columnHeaderLevelCount-1);d&&this.setElementHeight(d,h),this._resizeHeaderLabelDirs(this.m_rowHeaderLevelCount-1,a,["row"],"height")}else{let t=["bottomResized"],i=this._getLabel("column",this.m_columnHeaderLevelCount-1);this._highlightElement(i.parentNode,t);let s=0;if("rowEnd"===o)for(let e=0;e<this.m_columnHeaderLevelCount-1;e++)s+=this.getElementHeight(this.m_headerLabels.column[e]);let n=e-s;this.setElementHeight(i,n)}else if(n<0){let t=this._getLabel("row",this.m_rowHeaderLevelCount-1),i=["bottomResized"];if(t&&n<0){this._highlightElement(t.parentNode,i);for(let i=0;i<this.m_rowHeaderLevelCount;i++)t=this._getLabel("row",i),this.setElementHeight(t,e)}}let i=this._getLabel("rowEnd",this.m_rowEndHeaderLevelCount-1),l=["bottomResized"];if(i){let t=-1===this.m_endColHeader?e:this.m_colHeaderHeight;this._highlightElement(i.parentNode,l);for(let e=0;e<this.m_rowEndHeaderLevelCount;e++)i=this._getLabel("rowEnd",e),this.setElementHeight(i,t)}}this.manageResizeScrollbars()}},M.prototype._calculateCollisionDimension=function(e,t,i,s){let n,o,l={},r=this._getMinValue("height",s,i);if(this.m_collisionResize){let l=this.getElementDir(this.m_headerLabels.row[this.m_rowHeaderLevelCount-1],"height"),a=this.getElementDir(this.m_headerLabels.column[this.m_columnHeaderLevelCount-1],"height"),h=l+a,d=a/h,c=l/h;l===r&&a===r?(n=Math.floor(e/2)-Math.floor(t/2),o=Math.ceil(e/2),this.m_collisionResize=!1):d>c?(o=Math.floor(e*d),n=e-o-l,l+n<this._getMinValue("height",s,i)&&(n=0)):(n=Math.floor(e*c)-l,l+n<this._getMinValue("height",s,i)&&(n=0),o=e-(l+n),o=Math.max(o,this._getMinValue("height",s,i)))}else n=Math.floor(e/2)-Math.floor(t/2),o=Math.ceil(e/2);return l.colHeight=o,l.rowHeightChange=n,l},M.prototype.resizeRowWidth=function(e,t,i,s){if(0!==t){var n;if(s){let e=this.getHeaderLabelAxis(this.m_resizingElement);"column"===e||"columnEnd"===e?n=this.m_rowHeaderLevelCount-1:"row"!==e&&"rowEnd"!==e||(n=this.getHeaderLabelLevel(this.m_resizingElement))}else n=this.getHeaderCellLevel(this.m_resizingElement)+(this.getHeaderCellDepth(this.m_resizingElement)-1);if(i?this.m_rowEndHeaderLevelWidths[n]+=t:this.m_rowHeaderLevelWidths[n]+=t,this.resizeRowWidthsAndShift(t,n,i),i)this.m_rowEndHeaderWidth+=t,this.setElementWidth(this.m_rowEndHeader,this.m_rowEndHeaderWidth);else{if(this.m_rowHeaderWidth+=t,n<0){let t=this.getResources().isRTLMode()?["startResized"]:["endResized"],i=this._getLabel("column",this.m_columnHeaderLevelCount-1);this._highlightElement(i.parentNode,t);for(let t=0;t<this.m_columnHeaderLevelCount;t++)i=this._getLabel("column",t),this.setElementWidth(i,e)}else this.setElementWidth(this.m_rowHeader,this.m_rowHeaderWidth),(n===this.m_rowHeaderLevelCount-1||0===this.m_headerLabels.row.length&&this.m_headerLabels.column.length)&&this._resizeHeaderLabelDirs(n,t,["column"],"width");let i=this._getLabel("columnEnd",this.m_columnEndHeaderLevelCount-1),s=this.getResources().isRTLMode()?["startResized"]:["endResized"];if(i){this._highlightElement(i.parentNode,s);let e=this.getElementWidth(i)+t;for(let t=0;t<this.m_columnEndHeaderLevelCount;t++)i=this._getLabel("columnEnd",t),this.setElementWidth(i,e)}}this.manageResizeScrollbars()}},M.prototype._resizeHeaderLabelDirs=function(e,t,i,s){for(var n=0;n<i.length;n++){for(var o=i[n],l=0;l<this.m_headerLabels[o].length;l++){var r=this.m_headerLabels[o][l];if(null!=r){var a=this.getElementDir(r,s)+t;this.setElementDir(r,a,s)}}this._highlightResizeLabelDirs(o,e)}},M.prototype._highlightResizeLabelDirs=function(e,t){let i=this.getResources().isRTLMode()?["startResized"]:["endResized"],s="column"===e?i:["bottomResized"];this.m_corner&&("column"===e&&t===this.m_columnHeaderLevelCount-1||"row"===e&&t===this.m_rowHeaderLevelCount-1)&&this._highlightElement(this.m_corner,s);let n=this._getLabel("rowEnd",this.m_columnHeaderLevelCount-1);n&&this._highlightElement(n.parentNode,s)},M.prototype._unhighlightResizeBorderColor=function(){let e=this.m_root.querySelectorAll(".oj-datagrid-resized-start,\n .oj-datagrid-resized-end, .oj-datagrid-resized-top, .oj-datagrid-resized-bottom");this._unhighlightElementsByClassName(e,["startResized","endResized","topResized","bottomResized"])},M.prototype.getNewElementWidth=function(e,t,i,s,n){var o;o=this._getMinValue("width",e,n),null==s&&(s=this.getResources().isRTLMode()?this.m_lastMouseX-this.m_currentMouseX:this.m_currentMouseX-this.m_lastMouseX),i&&"row"===e&&(s*=-1);var l=t+s+this.m_overResizeLeft+this.m_overResizeMinLeft+this.m_overResizeRight;if(l<o?(this.m_overResizeMinLeft+=s-o+t,l=o):(this.m_overResizeMinLeft=0,this.m_overResizeLeft=0),"row"===e){var r=this.getRowHeaderWidth()+this.getRowEndHeaderWidth()-t,a=Math.round(this.getWidth()-this.m_utils.getScrollbarSize()-1)-r;l>a?(this.m_overResizeRight+=s-a+t,l=a):this.m_overResizeRight=0}return l},M.prototype.getNewElementHeight=function(e,t,i,s,n){var o;let l=this._getMinValue("height",e,!0);if(n){if(o=l,"rowEnd"===this.getHeaderLabelAxis(this.m_resizingElement)&&this.m_headerLabels.column&&this.m_headerLabels.column.length){this._isHeaderLabelCollision()&&(o=2*l);for(let e=0;e<this.m_columnHeaderLevelCount-1;e++)o+=this.getElementHeight(this.m_headerLabels.column[e])}}else o=this._getMinValue("height",e,n);"column"===e&&!i&&this.getHeaderCellLevel(this.m_resizingElement)+this.getHeaderCellDepth(this.m_resizingElement)===this.m_columnHeaderLevelCount&&this._isHeaderLabelCollision()&&(o=2*l),null==s&&(s=this.m_currentMouseY-this.m_lastMouseY),i&&"column"===e&&(s*=-1);var r=t+s+this.m_overResizeTop+this.m_overResizeMinTop+this.m_overResizeBottom;if(r<o?(this.m_overResizeMinTop+=s-o+t,r=o):(this.m_overResizeMinTop=0,this.m_overResizeTop=0),"column"===e){var a=this.getColumnHeaderHeight()+this.getColumnEndHeaderHeight()-t,h=Math.round(this.getHeight()-this.m_utils.getScrollbarSize()-1)-a;r>h?(this.m_overResizeBottom+=s-h+t,r=h):this.m_overResizeBottom=0}return r},M.prototype._getMinValue=function(e,t,i){var s,n,o=this.m_resizingElement,l=this._getCellPaddingBorder(e,o),r=l;if(i)return Math.max(this.m_utils.isTouchDevice()?2*M.RESIZE_TOUCH_OFFSET:2*M.RESIZE_OFFSET,r);var a=this.getHeaderCellLevel(o),h=this.getHeaderCellDepth(o),d=this.getResources().getMappedAttribute("sortable");"true"===o.getAttribute(d)&&this._setSortContainerSize(this._getSortContainer(o),l),"column"===t&&"true"===o.getAttribute(d)&&(r="width"===e?this.m_sortContainerWidth:this.m_sortContainerHeight);var c=Math.max(this.m_utils.isTouchDevice()?2*M.RESIZE_TOUCH_OFFSET:2*M.RESIZE_OFFSET,r);if("column"===t&&(1===this.m_columnHeaderLevelCount||"width"===e&&this.m_columnHeaderLevelCount===a+1||"height"===e&&1===h)||"row"===t&&-1===this.m_endRowHeader||"column"===t&&-1===this.m_endColHeader||"row"===t&&(1===this.m_rowHeaderLevelCount||"height"===e&&this.m_rowHeaderLevelCount===a+1||"width"===e&&1===h))return c;var m=this.getHeaderCellIndex(o),u=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0),_=this.getElementDir(o,e);return"column"===t?"width"===e?(s=this._getHeaderByIndex(m+(u-1),this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),n=this.getElementDir(s,e)):n=this._getHeaderLevelDimension(a+(h-1),o,this.m_columnHeaderLevelHeights,"height",1):"row"===t&&("height"===e?(s=this._getHeaderByIndex(m+(u-1),this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),n=this.getElementDir(s,e)):n=this._getHeaderLevelDimension(a+(h-1),o,this.m_rowHeaderLevelWidths,"width",1)),_-(n-c)},M.prototype._getLabelMinValue=function(e){var t=this.m_resizingElement,i=this._getCellPaddingBorder(e,t);return Math.max(this.m_utils.isTouchDevice()?2*M.RESIZE_TOUCH_OFFSET:2*M.RESIZE_OFFSET,i)},M.prototype._setSortContainerSize=function(e,t){this.m_sortContainerWidth=this.getElementWidth(e)+t,this.m_sortContainerHeight=this.getElementHeight(e)},M.prototype._getCellPaddingBorder=function(e,t){if(null==this.m_resizingElementMin){for(var i=["top","right","bottom","left"],s="width"===e?1:0,n=0,o=window.getComputedStyle(t);s<4;s+=2)n+=parseFloat(o.getPropertyValue("padding-"+i[s])),n+=parseFloat(o.getPropertyValue("border-"+i[s]+"-width"));this.m_resizingElementMin=Math.round(n)}return this.m_resizingElementMin},M.prototype.manageResizeScrollbars=function(){var e=this.getWidth(),t=this.getHeight(),i=this.m_colHeader,s=this.m_colEndHeader,n=this.m_rowHeader,o=this.m_rowEndHeader,l=this.m_databody,r=l.firstChild,a=this.getColumnHeaderHeight(),h=this.getColumnEndHeaderHeight(),d=this.getRowHeaderWidth(),c=this.getRowEndHeaderWidth();if(-1===this.m_endRowHeader&&-1!==this.m_endColHeader){let e=this._getLabel("column",this.m_columnHeaderLevelCount-1);e&&(d=this.getElementWidth(e))}else if(-1!==this.m_endRowHeader&&-1===this.m_endColHeader){let e=this._getLabel("row",this.m_rowHeaderLevelCount-1);e&&(a=this.getElementHeight(e))}var m=t-a-h,u=e-d-c,_=this.m_utils.getScrollbarSize(),p=this.getResources().isRTLMode()?"right":"left";if(this._databodyEmpty()){var g;null==this.m_empty?(g=this._buildEmptyText(),this.m_root.appendChild(g)):(g=this.m_empty,this.setElementDir(g,this.m_endColHeader>=0?a:0,"top"));var f=this.getElementHeight(g),C=this.getElementWidth(g);f>this.getElementHeight(r)&&this.setElementHeight(r,f),C>this.getElementWidth(r)&&this.setElementWidth(r,C)}var y,v,E,w,S,H=this.getElementWidth(l.firstChild),x=this.getElementHeight(l.firstChild),b=this.isDatabodyHorizontalScrollbarRequired(u);b?(y=this.isDatabodyVerticalScrollbarRequired(m-_),l.style.overflow="auto"):(y=this.isDatabodyVerticalScrollbarRequired(m))?(b=this.isDatabodyHorizontalScrollbarRequired(u-_),l.style.overflow="auto"):l.style.overflow="hidden",this.m_hasHorizontalScroller=b,this.m_hasVerticalScroller=y,-1!==this.m_endColEndHeader?(v=Math.min(x+(b?_:0),m),E=b?v-_:v):(v=m,E=Math.min(x,b?v-_:v)),-1!==this.m_endRowEndHeader?(w=Math.min(H+(y?_:0),u),S=y?w-_:w):(w=u,S=Math.min(H,y?w-_:w));var R=d+S+(y?_:0),I=a+E+(b?_:0);if(this.setElementDir(n,0,p),this.setElementDir(n,a,"top"),this.setElementHeight(n,E),this.setElementDir(o,R,p),this.setElementDir(o,a,"top"),this.setElementHeight(o,E),this.setElementDir(i,d,p),this.setElementWidth(i,S),this.setElementDir(s,d,p),this.setElementDir(s,I,"top"),this.setElementWidth(s,S),this.setElementDir(l,a,"top"),this.setElementDir(l,d,p),this.setElementWidth(l,w),this.setElementHeight(l,v),-1===this.m_endRowHeader&&-1!==this.m_endColHeader&&this.m_rowHeaderScrollbarSpacer?(this.setElementDir(this.m_rowHeaderScrollbarSpacer,a,"top"),this.setElementHeight(this.m_rowHeaderScrollbarSpacer,v+h),this.setElementWidth(this.m_rowHeaderScrollbarSpacer,d)):-1!==this.m_endRowHeader&&-1===this.m_endColHeader&&this.m_columnHeaderScrollbarSpacer&&(this.setElementDir(this.m_columnHeaderScrollbarSpacer,d,"left"),this.setElementWidth(this.m_columnHeaderScrollbarSpacer,w+c),this.setElementHeight(this.m_columnHeaderScrollbarSpacer,a)),this.m_scrollWidth=H-S,this.m_scrollHeight=x-E,this.buildCorners(),this._adjustHeaderBorders(),this._updateGridlines(),this.m_utils.isTouchDevice()){var M=0,A=0;if(this.m_currentScrollLeft>this.m_scrollWidth&&(M=this.m_scrollWidth-this.m_currentScrollLeft),this.m_currentScrollTop>this.m_scrollHeight&&(A=this.m_scrollHeight-this.m_currentScrollTop),0!==M||0!==A){this.m_utils.isTouchDeviceNotIOS()&&this._disableTouchScrollAnimation();var L=this.adjustTouchScroll(M,A);M=L[0],A=L[1],this.scrollDelta(M,A)}}},M.prototype.resizeColumnWidthAndShift=function(e){var t=this.getResources().isRTLMode()?"right":"left",i=this.m_colHeader.style.display,s=this.m_colEndHeader.style.display;this.m_databody.style.display="none",this.m_colHeader.style.display="none",this.m_colEndHeader.style.display="none";var n=this.getHeaderCellIndex(this.m_resizingElement);this.m_columnHeaderLevelCount>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(n+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1);var o,l=this.createIndex(-1,n),r=this.getElementsInRange(this.createRange(l,l));for(let e=0;e<r.length;e++)o=this.getResources().isRTLMode()?["startResized"]:["endResized"],this._highlightElement(r[e],o);this._shiftHeadersAlongAxisInContainer(this.m_colHeader.firstChild,n,e,t,this.getMappedStyle("colheadercell"),"column"),this._shiftHeadersAlongAxisInContainer(this.m_colEndHeader.firstChild,n,e,t,this.getMappedStyle("colendheadercell"),"column"),this._shiftCellsAlongAxis("column",e,n),this.m_databody.style.display="",this.m_colHeader.style.display=i,this.m_colEndHeader.style.display=s},M.prototype._shiftCellsAlongAxis=function(e,t,i,s){var n,o,l,r,a,h=[];if(null==s&&(s=!1),"row"===e?(n="height",o="top",l=this.m_endRow,r=this.m_startCol,a=this.m_endCol):(n="width",o=this.getResources().isRTLMode()?"right":"left",l=this.m_endCol,r=this.m_startRow,a=this.m_endRow),null!=this.m_databody.firstChild)for(var d=r;d<=a;d++){var c="row"===e?this.createIndex(i,d):this.createIndex(d,i),m=this._getCellByIndex(c),u=m[this.getResources().getMappedAttribute("context")],_=u.indexes[e],p=u.extents[e],g=i-_,f=p-g;h[d]&&h[d][i]||!0===s||(this.setElementDir(m,this.getElementDir(m,n)+t,n),"row"===e?this._updateTempArray(h,!0,d,i,u.extents.column,p-g):this._updateTempArray(h,!0,d,i,u.extents.row,p-g));var C=i;!0!==s&&(C=i+f);for(var y=C;y<=l;y++)if(!h[d]||!h[d][y]){c="row"===e?this.createIndex(y,d):this.createIndex(d,y),p=(u=(m=this._getCellByIndex(c))[this.getResources().getMappedAttribute("context")]).extents[e];var v=this.getElementDir(m,o)+t;this.setElementDir(m,v,o),"row"===e?this._updateTempArray(h,!0,d,y,u.extents.column,p):this._updateTempArray(h,!0,d,y,u.extents.row,p)}}},M.prototype.resizeRowHeightAndShift=function(e){var t=this.m_rowHeader.style.display,i=this.m_rowEndHeader.style.display;this.m_databody.style.display="none",this.m_rowHeader.style.display="none",this.m_rowEndHeader.style.display="none";var s=this.getHeaderCellIndex(this.m_resizingElement);this.m_rowHeaderLevelCount>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(s+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1);var n,o=this.createIndex(s,-1),l=this.getElementsInRange(this.createRange(o,o));for(let e=0;e<l.length;e++)n=["bottomResized"],this._highlightElement(l[e],n);this._shiftHeadersAlongAxisInContainer(this.m_rowHeader.firstChild,s,e,"top",this.getMappedStyle("rowheadercell"),"row"),this._shiftHeadersAlongAxisInContainer(this.m_rowEndHeader.firstChild,s,e,"top",this.getMappedStyle("rowendheadercell"),"row"),this._shiftCellsAlongAxis("row",e,s),this.m_databody.style.display="",this.m_rowHeader.style.display=t,this.m_rowEndHeader.style.display=i},M.prototype._shiftHeadersAlongAxisInContainer=function(e,t,i,s,n,o){var l,r,a,h,d=0,c=e.lastChild;if(null!=c){var m,u=this.m_utils.containsCSSClassName(c,n);for(u?(r=c.parentNode,l=c,a=this.getHeaderCellIndex(l)):(r=c,l=c.firstChild,a=this._getAttribute(r,"start",!0));t<a;)if(u)h=this.getElementDir(l,s)+i,this.setElementDir(l,h,s),c=c.previousSibling,u=this.m_utils.containsCSSClassName(c,n),r=c.parentNode,l=c,a=this.getHeaderCellIndex(l);else{for(var _=r.getElementsByClassName(n),p=0;p<_.length;p++)h=this.getElementDir(_[p],s)+i,this.setElementDir(_[p],h,s);c=c.previousSibling,u=this.m_utils.containsCSSClassName(c,n),r=c,l=c.firstChild,a=this._getAttribute(r,"start",!0)}if(this.m_resizingElement&&(m=this.getHeaderCellLevel(this.m_resizingElement)),"column"===o?(d=this.getElementWidth(l)+i,this.setElementWidth(l,d)):"row"===o?(d=this.getElementHeight(l)+i,this.setElementHeight(l,d)):null==o&&(h=this.getElementDir(l,s)+i,this.setElementDir(l,h,s)),"row"===o||"column"===o){let e=this.getResources().isRTLMode()?["startResized"]:["endResized"],t="row"===o?["bottomResized"]:e;void 0!==m&&this.getHeaderCellLevel(l)>=m&&this._highlightElement(l,t),l!==this.m_resizingElement||l!==r.lastChild&&l!==r.firstChild||this._highlightResizeBorder(t,o)}u||null==l.nextSibling?null!=o&&this.m_sizingManager.setSize(o,this._getKey(l),d):this._shiftHeadersAlongAxisInContainer(c,t,i,s,n,o)}},M.prototype._highlightResizeBorder=function(e,t){let i=this.getHeaderCellIndex(this.m_resizingElement),s="column"===t?this.m_columnHeaderLevelCount:this.m_rowHeaderLevelCount,n=this.m_resizingElement[this.getResources().getMappedAttribute("context")],o=n.index+n.extent-1;for(let n=0;n<s-1;n++){let l;l="row"===t?this._getHeaderByIndex(i,n,this.m_rowHeader,s,this.m_startRowHeader):this._getHeaderByIndex(i,n,this.m_colHeader,s,this.m_startColumnHeader);let r=l[this.getResources().getMappedAttribute("context")];r.index+r.extent-1===o&&this._highlightElement(l,e)}},M.prototype.resizeColumnHeightsAndShift=function(e,t,i,s){var n,o,l,r;i?(n=this.m_colEndHeader,o=this.getMappedStyle("colendheadercell"),l="columnEnd",r="bottom"):(n=this.m_colHeader,o=this.getMappedStyle("colheadercell"),l="column",r="top"),n.style.display="none",this.m_databody.style.display="none",s&&this._shiftLabelsDir(this.m_headerLabels[l],e,t,r,l),this._shiftHeadersDirInContainer(n.firstChild,e,t,r,o,l),n.style.display="",this.m_databody.style.display=""},M.prototype.resizeRowWidthsAndShift=function(e,t,i){var s,n,o,l;i?(s=this.m_rowEndHeader,n=this.getMappedStyle("rowendheadercell"),o="rowEnd",l=this.getResources().isRTLMode()?"left":"right"):(s=this.m_rowHeader,n=this.getMappedStyle("rowheadercell"),o="row",l=this.getResources().isRTLMode()?"right":"left"),s.style.display="none",this.m_databody.style.display="none",this._shiftLabelsDir(this.m_headerLabels[o],e,t,l,o),this._shiftHeadersDirInContainer(s.firstChild,e,t,l,n,o),s.style.display="",this.m_databody.style.display=""},M.prototype._shiftLabelsDir=function(e,t,i,s,n){for(var o=0;o<e.length;o++){var l,r=e[o];if(o===i)if("column"===n||"columnEnd"===n)if(l=this.getElementHeight(r)+t,this.setElementHeight(r,l),"column"===n&&this._isHeaderLabelCollision()&&i===this.m_columnHeaderLevelCount-1){let e=["bottomResized"];this._highlightElement(this.m_corner,e)}else if("columnEnd"===n){let e=["topResized"],t=this._getLabel("columnEnd",this.m_columnEndHeaderLevelCount-1);t&&this._highlightElement(t,e)}else{let e="column"===n?["bottomResized"]:["topResized"];this._highlightElement(r,e)}else{l=this.getElementWidth(r)+t,this.setElementWidth(r,l);let e=this.getResources().isRTLMode()?["startResized"]:["endResized"],i=this.getResources().isRTLMode()?["endResized"]:["startResized"],s="row"===n?e:i;this._highlightElement(r,s);let o=this._getLabel("columnEnd",this.m_columnEndHeaderLevelCount-1);o&&this._highlightElement(o.parentNode,s)}o>i&&(l=this.getElementDir(r,s)+t,this.setElementDir(r,l,s))}},M.prototype._shiftHeadersDirInContainer=function(e,t,i,s,n,o){for(var l=e.childNodes,r=0;r<l.length;r++){var a,h,d=l[r];if(this.m_utils.containsCSSClassName(d,n)){a=this.getHeaderCellLevel(d);var c=this.getHeaderCellDepth(d);if(a<=i&&i<a+c){if("column"===o||"columnEnd"===o){if(h=this.getElementHeight(d)+t,this.setElementHeight(d,h),this.m_resizingElement){var m=this.getMappedStyle("colendheadercell");if(this.m_utils.containsCSSClassName(d,m)){let e=["topResized"];this._highlightElement(d,e)}else{let e=["bottomResized"];this._highlightElement(d,e)}}}else if(h=this.getElementWidth(d)+t,this.setElementWidth(d,h),this.m_resizingElement){var u=this.getMappedStyle("rowendheadercell");if(this.m_utils.containsCSSClassName(d,u)){let e=this.getResources().isRTLMode()?["endResized"]:["startResized"];this._highlightElement(d,e)}else{let e=this.getResources().isRTLMode()?["startResized"]:["endResized"];this._highlightElement(d,e)}}}else a>i&&(h=this.getElementDir(d,s)+t,this.setElementDir(d,h,s))}else if((a=this._getAttribute(d,"level",!0))<=i)this._shiftHeadersDirInContainer(d,t,i,s,n,o);else for(var _=d.getElementsByClassName(n),p=0;p<_.length;p++)h=this.getElementDir(_[p],s)+t,this.setElementDir(_[p],h,s)}},M.prototype.handleContextMenuResize=function(e,t,i,s){this.m_overResizeLeft=0,this.m_overResizeMinLeft=0,this.m_overResizeTop=0,this.m_overResizeMinTop=0,this.m_overResizeRight=0,this.m_overResizeBottom=0;var n=parseFloat(i,10),o=n-this.getElementWidth(s),l=n-this.getElementHeight(s);this.m_utils.containsCSSClassName(s,this.getMappedStyle("cell"))&&(s=t===this.m_resources.getMappedCommand("resizeHeight")?this.getHeaderFromCell(s,"row",!0):this.getHeaderFromCell(s,"column",!0)),this.m_isResizing=!0,this.m_resizingElement=s;let r=this.find(this.m_resizingElement,"headerlabel");var a=this.getElementWidth(s),h=this.getElementHeight(s),d=this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("endheadercell"))||this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("columnendheaderlabel"))||this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("rowendheaderlabel"));if(t===this.m_resources.getMappedCommand("resizeWidth")){if(a!==n)if("column"===this._getResizeHeaderMode(this.m_resizingElement)){if(this._isDOMElementResizable(this.m_resizingElement))if(r)this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("columnendheaderlabel"))&&(d=!1),this.resizeRowWidth(n,n-a,d,r),this._fireResizeEvent(e,a,h,n,h,n);else{let t=this.getNewElementWidth("column",a,d,o,r);this.resizeColWidth(a,t),this._resizeSelectedHeaders(e,a,h,n,h,n)}}else this.resizeRowWidth(n,n-a,d,r),this._fireResizeEvent(e,a,h,n,h,n)}else if(t===this.m_resources.getMappedCommand("resizeHeight")&&h!==n)if("column"===this._getResizeHeaderMode(this.m_resizingElement))this.resizeColHeight(n,n-h,d),this._fireResizeEvent(e,a,h,a,n,n);else if(this._isDOMElementResizable(this.m_resizingElement)){let t=this.getNewElementHeight("row",h,d,l,r);r?(this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("rowendheaderlabel"))&&(d=!1),this.resizeColHeight(t,t-h,d),this._fireResizeEvent(e,a,h,a,n,n)):(this.resizeRowHeight(h,t),this._resizeSelectedHeaders(e,a,h,a,t,n))}var c=this.getElementWidth(s),m=this.getElementHeight(s);c===a&&m===h||(this.buildCorners(),this.m_utils.isTouchDevice()&&this._moveTouchSelectionAffordance()),this._unhighlightResizeBorderColor(),this.m_resizingElement=null,this.m_resizingElementMin=null,this.m_isResizing=!1},M.prototype._getResizeNestedHeaderIndex=function(e,t){let i=this.getHeaderCellIndex(this.m_resizingElement),s=t?this.m_columnEndHeaderLevelCount:this.m_columnHeaderLevelCount,n=t?this.m_rowEndHeaderLevelCount:this.m_rowHeaderLevelCount;return("column"===e||"columnEnd"===e?s:n)>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(i+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1),i},M.prototype._highlightResizeMouseDown=function(){let e,t,i=this.getHeaderCellIndex(this.m_resizingElement),s=this._getResizeHeaderMode(this.m_resizingElement),n=this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("endheadercell"))||this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("columnendheaderlabel")),o=this.getResources().isRTLMode()?"right":"left",l=this.find(this.m_resizingElement,"headerlabel");if("col-resize"===this.m_cursor)if("column"===s)if(n=!l&&n,l)t=this.getHeaderLabelAxis(this.m_resizingElement),"column"===t||"columnEnd"===t?e=this.m_rowHeaderLevelCount-1:"row"!==t&&"rowEnd"!==t||(e=this.getHeaderLabelLevel(this.m_resizingElement)),this.resizeRowWidthsAndShift(0,e,n),n||(e===this.m_rowHeaderLevelCount-1||0===this.m_headerLabels.row.length&&this.m_headerLabels.column.length)&&this._highlightResizeLabelDirs("column",e);else{this.m_columnHeaderLevelCount>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(i+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1);let e,t=this.createIndex(-1,i),s=this.getElementsInRange(this.createRange(t,t));for(let t=0;t<s.length;t++)e=this.getResources().isRTLMode()?["startResized"]:["endResized"],this._highlightElement(s[t],e);this._shiftHeadersAlongAxisInContainer(this.m_colHeader.firstChild,i,0,o,this.getMappedStyle("colheadercell"),"column"),this._shiftHeadersAlongAxisInContainer(this.m_colEndHeader.firstChild,i,0,o,this.getMappedStyle("colendheadercell"),"column")}else"row"===s&&(this.m_utils.containsCSSClassName(this.m_resizingElement,this.getMappedStyle("rowendheaderlabel"))&&(n=!0),l?(t=this.getHeaderLabelAxis(this.m_resizingElement),"column"===t||"columnEnd"===t?e=this.m_rowHeaderLevelCount-1:"row"!==t&&"rowEnd"!==t||(e=this.getHeaderLabelLevel(this.m_resizingElement))):e=this.getHeaderCellLevel(this.m_resizingElement)+(this.getHeaderCellDepth(this.m_resizingElement)-1),this.resizeRowWidthsAndShift(0,e,n),n||(e===this.m_rowHeaderLevelCount-1||0===this.m_headerLabels.row.length&&this.m_headerLabels.column.length)&&this._highlightResizeLabelDirs("column",e));else if("row-resize"===this.m_cursor)if("row"===s)if(l){let i=!0;t=this.getHeaderLabelAxis(this.m_resizingElement),"column"===t||"columnEnd"===t?e=this.getHeaderLabelLevel(this.m_resizingElement):"row"!==t&&"rowEnd"!==t||(e=this.m_columnHeaderLevelCount-1,i=!1),!n&&e===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length&&this._isHeaderLabelCollision()&&(i=!1),this.resizeColumnHeightsAndShift(0,e,n,i),n||(0===this.m_headerLabels.column.length||e===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length)&&this._highlightResizeLabelDirs("row",e)}else{this.m_rowHeaderLevelCount>1&&this.m_resizingElement===this.m_resizingElement.parentNode.firstChild&&null!=this.m_resizingElement.nextSibling&&(i+=this._getAttribute(this.m_resizingElement.parentNode,"extent",!0)-1);let e,t=this.createIndex(i,-1),s=this.getElementsInRange(this.createRange(t,t));for(let t=0;t<s.length;t++)e=["bottomResized"],this._highlightElement(s[t],e);this._shiftHeadersAlongAxisInContainer(this.m_rowHeader.firstChild,i,0,"top",this.getMappedStyle("rowheadercell"),"row"),this._shiftHeadersAlongAxisInContainer(this.m_rowEndHeader.firstChild,i,0,"top",this.getMappedStyle("rowendheadercell"),"row")}else{let i=!0;l?(t=this.getHeaderLabelAxis(this.m_resizingElement),"column"===t||"columnEnd"===t?e=this.getHeaderLabelLevel(this.m_resizingElement):"row"!==t&&"rowEnd"!==t||(e=this.m_columnHeaderLevelCount-1,i=!1)):(e=this.getHeaderCellLevel(this.m_resizingElement)+(this.getHeaderCellDepth(this.m_resizingElement)-1),t=this.getHeaderCellAxis(this.m_resizingElement)),!n&&e===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length&&this._isHeaderLabelCollision()&&(i=!1),this.resizeColumnHeightsAndShift(0,e,n,i),n||(0===this.m_headerLabels.column.length||e===this.m_columnHeaderLevelCount-1&&this.m_headerLabels.row.length)&&this._highlightResizeLabelDirs("row",e)}},M.prototype.handleResizeFitToContent=function(e,t,i){let s=this.find(t,"header")||this.find(t,"endheadercell"),n=this.m_utils.containsCSSClassName(t,this.getMappedStyle("endheadercell"));if(!s){let e=this.findCell(t);if(!e)return;t=this.getHeaderFromCell(e,i)}this.m_resizingElement=t;let o,l=this.m_resizingElement,r=this.getHeaderCellAxis(l);if("column"===r||"columnEnd"===r){let e=s?this._getResizeNestedHeaderIndex(r,n):this.getHeaderCellIndex(l);this.m_resizingElement=n?this._getHeaderByIndex(e,this.m_columnEndHeaderLevelCount-1,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader):this._getHeaderByIndex(e,this.m_columnHeaderLevelCount-1,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader);let t=this.calculateColumnHeaderWidth(this.m_resizingElement),i=this.createIndex(-1,e);o=this.getElementsInRange(this.createRange(i,i)),o.push(l);let a=this._calculateResizeFitToContentValue(o,"column");this.resizeColWidth(t,a)}else if("row"===r||"rowEnd"===r){let e=s?this._getResizeNestedHeaderIndex(r,n):this.getHeaderCellIndex(l);this.m_resizingElement=n?this._getHeaderByIndex(e,this.m_rowEndHeaderLevelCount-1,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader):this._getHeaderByIndex(e,this.m_rowHeaderLevelCount-1,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader);let t=this.calculateRowHeaderHeight(this.m_resizingElement),i=this.createIndex(e,-1);o=this.getElementsInRange(this.createRange(i,i)),o.push(l);let a=this._calculateResizeFitToContentValue(o,"row");this.resizeRowHeight(t,a)}this._unhighlightResizeBorderColor()},M.prototype._calculateResizeFitToContentValue=function(e,t){let i,s="height";"column"===t&&(s="width");let n=this._getMinValue(s,t,!1),o=document.createElement("div");if("width"===s){o.style.display="inline-flex",o.style.flexFlow="column nowrap",o.style.justifyContent="flex-start",o.style.alignItems="stretch";for(let t=0;t<e.length;t++){let i=e[t].cloneNode(!0);i.classList.remove(...i.classList),i.style[s]="",i.style.whiteSpace="nowrap !important",i.style.overflow="hidden",o.appendChild(i)}}else if("height"===s){o.style.display="flex";for(let t=0;t<e.length;t++){let i=e[t].cloneNode(!0);i.style[s]="",i.style.whiteSpace="break-spaces",o.appendChild(i)}}o.style.visibility="hidden",o.style.top="0px",this.m_root.appendChild(o);let l="column"===t?this.m_databody.offsetWidth:this.m_databody.offsetHeight,r="column"===t?this._getCellPaddingBorder(s,this.m_resizingElement):0;return i=("column"===t?Math.ceil(o.firstElementChild.getBoundingClientRect().width):Math.ceil(o.firstElementChild.getBoundingClientRect().height))+r,i=i<n?n:i,i=i>l?l:i,this.m_root.removeChild(o),i},M.prototype.getHeaderEdgePixels=function(e){var t,i,s=0,n=0;if(this.m_utils.isTouchDevice()){var o=this.findPos(e);s=o[0],n=o[1]}return this.m_utils.containsCSSClassName(e,this.getMappedStyle("colheadercell"))?(t=this.calculateColumnHeaderWidth(e),i=this.getElementHeight(e)):(t=this.getElementWidth(e),i=this.calculateRowHeaderHeight(e)),[s,n,s+t,n+i]},M.prototype.getHeaderLabelEdgePixels=function(e){var t,i,s=this.findPos(e),n=s[0],o=s[1];return this.m_utils.containsCSSClassName(e,this.getMappedStyle("columnheaderlabel"))?(t=this.calculateColumnHeaderWidth(e),i=this.getElementHeight(e)):(t=this.getElementWidth(e),i=this.calculateRowHeaderLabelHeight(e)),[n,o,n+t,o+i]},M.prototype.unhighlightSelection=function(){for(var e=this.GetSelection(),t=0;t<e.length;t+=1)this.unhighlightRange(e[t]);this.getResources()&&this._clearHeaderHighLight()},M.prototype.unhighlightRange=function(e){var t=this.getElementsInRange(e);this.unhighlightElems(t),this._applyBorderClassesAroundRange(t,e,!1,"Selected")},M.prototype.highlightRange=function(e,t){const i=this.getHeadersByRange(e,"row"),s=this.getHeadersByRange(e,"column");this._highlightHeaders(e,i,s);var n,o=this.getElementsInRange(e);(this.highlightElems(o,e),this._applyBorderClassesAroundRange(o,e,!0,"Selected"),t)&&(n=1===this.GetSelection().length?o.length:this._getCurrentSelectionCellCount(),this._setAccInfoText("accessibleMultiCellSelected",{num:n}))},M.prototype.getHeadersByRange=function(e,t){const i=new Set;let s,n,o,l;if("row"===t&&this.m_rowHeaderLevelCount>0){for(e.endIndex&&e.endIndex.row&&(l=e.endIndex.row),l?-1===l&&(l=this.m_endRowHeader):l=e.startIndex.row,n=Math.max(this.m_startRowHeader,e.startIndex.row);n<=l;n++)for(s=this._getHeadersByIndex(n,this.m_rowHeader,this.m_rowHeaderLevelCount,this.m_startRowHeader),o=0;o<s.length;o++)i.add(s[o])}else if("column"===t&&this.m_columnHeaderLevelCount>0){for(e.endIndex&&e.endIndex.column&&(l=e.endIndex.column),l?-1===l&&(l=this.m_endColHeader):l=e.startIndex.column,n=Math.max(this.m_startColHeader,e.startIndex.column);n<=l;n++)for(s=this._getHeadersByIndex(n,this.m_colHeader,this.m_columnHeaderLevelCount,this.m_startColHeader),o=0;o<s.length;o++)i.add(s[o])}if("row"===t&&this.m_rowEndHeaderLevelCount>0){for(e.endIndex&&e.endIndex.row&&(l=e.endIndex.row),l?-1===l&&(l=this.m_endRowHeader):l=e.startIndex.row,n=Math.max(this.m_startRowEndHeader,e.startIndex.row);n<=l;n++)for(s=this._getHeadersByIndex(n,this.m_rowEndHeader,this.m_rowEndHeaderLevelCount,this.m_startRowEndHeader),o=0;o<s.length;o++)i.add(s[o])}else if("column"===t&&this.m_columnEndHeaderLevelCount>0){for(e.endIndex&&e.endIndex.column&&(l=e.endIndex.column),l?-1===l&&(l=this.m_endColHeader):l=e.startIndex.column,n=Math.max(this.m_startColEndHeader,e.startIndex.column);n<=l;n++)for(s=this._getHeadersByIndex(n,this.m_colEndHeader,this.m_columnEndHeaderLevelCount,this.m_startColEndHeader),o=0;o<s.length;o++)i.add(s[o])}return i},M.prototype._highlightHeaders=function(e,t,i){t.forEach(t=>{const i=t[this.getResources().getMappedAttribute("context")];null==e.endIndex.column||-1===e.endIndex.row&&-1===e.endIndex.column||-1===e.endIndex.column&&0===e.startIndex.column&&this._isHeaderSelected(i,"row")?(t.classList.remove(this.getMappedStyle("headerPartialSelected")),t.classList.add(this.getMappedStyle("headerAllSelected"))):(t.classList.remove(this.getMappedStyle("headerAllSelected")),t.classList.add(this.getMappedStyle("headerPartialSelected")))}),i.forEach(t=>{const i=t[this.getResources().getMappedAttribute("context")];-1===e.endIndex.row&&-1===e.endIndex.column||-1===e.endIndex.row&&0===e.startIndex.row&&this._isHeaderSelected(i,"column")?(t.classList.remove(this.getMappedStyle("headerPartialSelected")),t.classList.add(this.getMappedStyle("headerAllSelected"))):(t.classList.remove(this.getMappedStyle("headerAllSelected")),t.classList.add(this.getMappedStyle("headerPartialSelected")))})},M.prototype._isHeaderSelected=function(e,t){let i=!1;return this.GetSelection().forEach(s=>{e.index>=s.startIndex[t]&&e.index+(e.extent-1)<=s.endIndex[t]&&(i=!0)}),i},M.prototype._clearHeaderHighLight=function(){const e="."+this.getMappedStyle("headerPartialSelected")+"."+this.getMappedStyle("headercell"),t=this.m_root.querySelectorAll(e),i="."+this.getMappedStyle("headerPartialSelected")+"."+this.getMappedStyle("endheadercell"),s=[...t,...this.m_root.querySelectorAll(i)];for(let e=0;e<s.length;e++)s[e].classList.remove(this.getMappedStyle("headerPartialSelected"));const n="."+this.getMappedStyle("headerAllSelected")+"."+this.getMappedStyle("headercell"),o=this.m_root.querySelectorAll(n);for(let e=0;e<o.length;e++)o[e].classList.remove(this.getMappedStyle("headerAllSelected"))},M.prototype._getCurrentSelectionCellCount=function(){for(var e=0,t=this.GetSelection(),i=0;i<t.length;i++){var s=this.getElementsInRange(t[i]);null!=s&&(e+=s.length)}return e},M.prototype.unhighlightElems=function(e){if(null!=e&&0!==e.length)for(let t=0;t<e.length;t+=1){let i=e[t],s=["selected","topSelected","bottomSelected","startSelected","endSelected"];this._unhighlightElement(i,s)}},M.prototype.highlightElems=function(e){if(null!=e&&0!==e.length)for(let t=0;t<e.length;t+=1)this._highlightElement(e[t],["selected"])},M.prototype.applySelection=function(e,t,i,s){for(var n=this.GetSelection(),o=0;o<n.length;o+=1){var l=this.getElementsInRange(n[o],e,t,i,s);this.highlightElems(l),this._applyBorderClassesAroundRange(l,n[o],!0,"Selected")}},M.prototype.handleDatabodySelectionDrag=function(e){var t,i;if(this.m_utils.isTouchDevice()?t=this.findCell(document.elementFromPoint(e.touches[0].clientX,e.touches[0].clientY)):(i=e.target,t=this.findCell(i)),null!=t){var s=this.getCellIndexes(t);this.m_deselectInProgress?this.extendDeselection(s,e):this.isHeaderSelectionType(this.m_selectionFrontier)?this.extendSelectionHeader(t,e):this.extendSelection(s,e)}},M.prototype.handleHeaderClickSelection=function(e){var t,i,s,n,o=e.target,l=this.findHeader(o),r=e.shiftKey,a=this.isMultipleSelection(),h=this.m_utils.ctrlEquivalent(e);if(r&&a||!l||this._setActive(l,this._createActiveObject(l),e),null==this.m_active||"header"!==this.m_active.type&&!e.shiftKey)return!1;var d=l[this.getResources().getMappedAttribute("context")];if(t=d.axis,i=d.index,n=d.extent,h&&this._shouldDeselectHeader(i,n,t)){var c,m,u,_;-1!==t.indexOf("row")?(c=this.createIndex(i,0),m=this.createIndex(i+n-1,-1),_=this._getSelectionStartAndEnd(c,m,0),u=this.createRange(this.createIndex(_.min.row,0),this.createIndex(_.max.row,-1))):(c=this.createIndex(0,i),m=this.createIndex(-1,i+n-1),_=this._getSelectionStartAndEnd(c,m,0),u=this.createRange(this.createIndex(0,_.min.column),this.createIndex(-1,_.max.column)));var p=this._trimRangeForSelectionMode(u);return this.m_deselectInfo={anchor:p.startIndex,selection:this.GetSelection(),axis:-1!==t.indexOf("row")?"row":"column",sourceParent:l},void(this.m_deselectInProgress=this._deselectRange(p,e))}"header"===this.m_active.type&&(t=this.m_active.axis,i=this.m_active.index,s=this.m_active.level),this.m_utils.isTouchDevice()?(this._removeTouchSelectionAffordance(),this._selectHeader(t,i,s,e)):r&&a?(null==t&&(t=d.axis),(-1!==t.indexOf("row")&&-1!==d.axis.indexOf("row")||-1!==t.indexOf("column")&&-1!==d.axis.indexOf("column"))&&this.extendSelectionHeader(l,e)):2!==e.button&&this._selectHeader(t,i,s,e)},M.prototype.discontiguousHeaderSetActiveFromDatabody=function(e,t,i,s){var n=t.replace("End",""),o=this.m_selection[this.m_selection.length-1];this.unhighlightSelection(),o.startIndex.row===this.m_active.indexes.row&&o.endIndex.row===this.m_active.indexes.row&&o.startIndex.column===this.m_active.indexes.column&&o.endIndex.column===this.m_active.indexes.column&&this.m_selection.pop(),this._setActive(i,{type:"header",index:this.m_trueIndex[n],level:s-1,axis:t},e,!1),this.rehighlightSelection()},M.prototype.handleDragAnchorChange=function(e){if(this.m_headerDragState){var t,i,s=e.target,n=this.findHeader(s),o=n[this.getResources().getMappedAttribute("context")],l=this._getActiveElement(),r=l[this.getResources().getMappedAttribute("context")],a=this._getAttribute(l.parentNode,"start",!0),h=a+(this._getAttribute(l.parentNode,"extent",!0)-1);if(!o.extent)return;1===o.extent?(t=o.index,i=o.index):i=(t=this._getAttribute(n.parentNode,"start",!0))+(this._getAttribute(n.parentNode,"extent",!0)-1),1!==r.extent?(t<=a&&i>=h||t>=a&&i<=h)&&this._setActive(n,this._createActiveObject(n),e):t!==i&&t<=a&&a<=i&&this._setActive(n,this._createActiveObject(n),e)}},M.prototype.handleDatabodyClickSelection=function(e){var t,i=e.target,s=this.findCell(i);if(null!=s&&(t=this.getCellIndexes(s)),null!=t){if(this.isMultipleSelection()&&2===e.button&&this._isContainSelection(t))return;var n=this.m_utils.ctrlEquivalent(e),o=e.shiftKey;if(this.m_utils.containsCSSClassName(s,this.getMappedStyle("selected"))&&n){this.m_deselectInfo={anchor:t,selection:this.GetSelection()};var l=this.getCellEndIndexes(s),r=this._trimRangeForSelectionMode(this.createRange(t,l));return void(this.m_deselectInProgress=this._deselectRange(r,e))}this.isMultipleSelection()?(this._removeTouchSelectionAffordance(),this.m_utils.isTouchDevice()?(null!=this.m_active&&this._unhighlightActive(),this.selectAndFocus(t,e,!1)):n?n&&o?this.extendSelection(t,e):this.selectAndFocus(t,e,!0):o?this.extendSelection(t,e):this.selectAndFocus(t,e,!1)):this.selectAndFocus(t,e,!1)}},M.prototype._doRangesOverlap=function(e,t){var i=e.startIndex,s=i.column,n=i.row,o=e.endIndex,l=o.column,r=o.row,a=t.startIndex,h=a.column,d=a.row,c=t.endIndex,m=c.column,u=c.row;return(s<=m||-1===m||void 0===m)&&(l>=h||-1===l||void 0===l)&&(n<=u||-1===u)&&(r>=d||-1===r)},M.prototype._isRangeValid=function(e){return(e.startIndex.row<=e.endIndex.row||e.startIndex.row>=0&&-1===e.endIndex.row)&&(e.startIndex.column<=e.endIndex.column||e.startIndex.column>=0&&-1===e.endIndex.column||void 0===e.startIndex.column&&void 0===e.endIndex.column)},M.prototype._deselectRange=function(e,t){var i=this.m_deselectInfo.selection,s=e.startIndex,n=s.column,o=s.row,l=e.endIndex,r=l.column,a=l.row,h=!1,d=[],c=0,m=[],u=this;return i.forEach(function(t){var i=t.startIndex,s=i.column,l=i.row,_=t.endIndex,p=_.column,g=_.row;if(this._doRangesOverlap(t,e)){var f,C,y=function(e,t,i){return new Promise(function(s){u._createRangeWithKeys(e,t,function(e){d[i]=e,s()})})};h=!0,l<o&&(f=this.createIndex(l,s),C=this.createIndex(o-1,p),this._isRangeValid({startIndex:f,endIndex:C})&&(m.push(y(f,C,c)),c+=1)),-1!==a&&(f=this.createIndex(a+1,s),C=this.createIndex(g,p),this._isRangeValid({startIndex:f,endIndex:C})&&(m.push(y(f,C,c)),c+=1)),s<n&&void 0!==s&&(f=this.createIndex(Math.max(o,l),s),C=this.createIndex(Math.min(-1===a?g:a,-1===g?a:g),n-1),this._isRangeValid({startIndex:f,endIndex:C})&&(m.push(y(f,C,c)),c+=1)),-1!==r&&void 0!==s&&(f=this.createIndex(Math.max(o,l),r+1),C=this.createIndex(Math.min(-1===a?g:a,-1===g?a:g),p),this._isRangeValid({startIndex:f,endIndex:C})&&(m.push(y(f,C,c)),c+=1))}else d[c]=t,c+=1},this),!!h&&(Promise.all(m).then(function(){var e=u.m_selection;u.SetSelection(d),u._compareSelectionAndFire(t,e)}),!0)},M.prototype._shouldDeselectHeader=function(e,t,i){var s,n,o=this.GetSelection();"row"===i||"rowEnd"===i?(s="row",n="column"):(s="column",n="row");var l=!1,r=this.m_options.getSelectionMode();return o.forEach(function(i){var o=i.startIndex[n],a=i.endIndex[n];if(0===o&&-1===a||"row"===r&&"row"===s){var h=i.startIndex[s],d=i.endIndex[s];h<=e&&(d>=e+t-1||-1===d)&&(l=!0)}}),l},M.prototype._handleSelectAll=function(e){return!(!this._isSelectionEnabled()||!this.isMultipleSelection())&&("row"===this.m_options.getSelectionMode()?this._selectRange(this.createIndex(0),this.createIndex(-1),e):this._selectRange(this.createIndex(0,0),this.createIndex(-1,-1),e),this.m_utils.isTouchDevice()&&this.m_topSelectIconContainer&&this.m_bottomSelectIconContainer&&(this.m_topSelectIconContainer.parentNode.removeChild(this.m_topSelectIconContainer),this.m_bottomSelectIconContainer.parentNode.removeChild(this.m_bottomSelectIconContainer)),!0)},M.prototype._isContainSelection=function(e,t){null==t&&(t=this.GetSelection());for(var i=0;i<t.length;i+=1){var s=t[i],n=s.startIndex,o=this.getEndIndex(s),l=n.row,r=o.row;if(e.row>=l&&(-1===r||e.row<=r)){var a=n.column,h=o.column;if(isNaN(a)||isNaN(h))return!0;if(e.column>=a&&(-1===h||e.column<=h))return!0}}return!1},M.prototype._isHeaderInsideSelection=function(e,t){const i=this.GetSelection();for(let s=0;s<i.length;s+=1){let n=i[s],o=n.startIndex,l=this.getEndIndex(n),r=o.row,a=l.row,h=o.column,d=l.column;if("column"===t||"columnEnd"===t){if(e>=h&&(-1===d||e<=d)&&0===r&&-1===a)return!0}else if(("row"===t||"rowEnd"===t)&&e>=r&&(-1===a||e<=a)&&0===h&&-1===d)return!0}return!1},M.prototype._getContainedSelectionCssClass=function(e,t){var i=[],s={contains:!1,class:[]};null==t&&(t=this.GetSelection());for(var n=0;n<t.length;n+=1){var o=t[n],l=o.startIndex,r=this.getEndIndex(o),a=l.row,h=r.row;if(e.row>=a&&(-1===h||e.row<=h)){e.row===a&&i.push("topSelected"),e.row===h&&i.push("bottomSelected");var d=l.column,c=r.column;(isNaN(d)||isNaN(c))&&(s.contains=!0,s.class=i),e.column>=d&&(-1===c||e.column<=c)&&(s.contains=!0,s.class=i)}}return s},M.prototype._compareSelections=function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i+=1){for(var s=!1,n=0;n<t.length;n+=1)this._compareIndividualSelectionObjects(e[i],t[n])&&(s=!0);if(!1===s)return!1}return!0},M.prototype._compareIndividualSelectionObjects=function(e,t){return e.startIndex.row===t.startIndex.row&&e.startIndex.column===t.startIndex.column&&e.endIndex.row===t.endIndex.row&&e.endIndex.column===t.endIndex.column},M.prototype._clearSelection=function(e){this.unhighlightSelection(),this._removeTouchSelectionAffordance();var t=this.GetSelection();this.m_selection=[],this._compareSelectionAndFire(e,t)},M.prototype.setDiscontiguousSelectionMode=function(e){this.m_discontiguousSelection=e,this._setAccInfoText(e?"accessibleRangeSelectModeOn":"accessibleRangeSelectModeOff")},M.prototype._selectEntireRow=function(e,t,i){var s=this.createIndex(e,0),n=this.createIndex(t,-1),o=this._getSelectionStartAndEnd(s,n,0);"row"===this.m_options.getSelectionMode()?this._selectRange(this.createIndex(o.min.row),this.createIndex(o.max.row),i):this._selectRange(this.createIndex(o.min.row,0),this.createIndex(o.max.row,-1),i)},M.prototype._selectEntireColumn=function(e,t,i){var s=this.createIndex(0,e),n=this.createIndex(-1,t),o=this._getSelectionStartAndEnd(s,n,0);this._selectRange(this.createIndex(0,o.min.column),this.createIndex(-1,o.max.column),i)},M.prototype._selectRange=function(e,t,i){this.unhighlightSelection(),this._createRangeWithKeys(e,t,this._selectRangeCallback.bind(this,i))},M.prototype._selectRangeCallback=function(e,t){var i,s=this.GetSelection();(i=this.m_discontiguousSelection||!e||this.m_utils.ctrlEquivalent(e)&&this.isMultipleSelection()&&0===e.button?this.m_utils.ctrlEquivalent(e)&&this.isMultipleSelection()&&!0===e.shiftKey?s.slice(0,s.length-1):s.slice(0):[]).push(t),this.m_selection=i,this.rehighlightSelection(),this._isDatabodyCellActive()&&e.target[this.getResources().getMappedAttribute("context")]&&!e.target[this.getResources().getMappedAttribute("context")].axis&&!this.m_selectionFrontier.axis&&(this.m_selectionFrontier=this.m_active.indexes,this._highlightActive()),this._compareSelectionAndFire(e,s)},M.prototype.rehighlightSelection=function(){for(var e=0;e<this.m_selection.length;e++)this.highlightRange(this.m_selection[e])},M.prototype.GetSelection=function(){return null==this.m_selection&&(this.m_selection=[]),this.m_selection},M.prototype.SetSelection=function(e){void 0!==e&&(null===e&&(e=[]),this.unhighlightSelection(),this.m_selection=e,this._resetHeaderHighLight(),null!=this.m_databody&&this.applySelection(this.m_startRow,this.m_endRow,this.m_startCol,this.m_endCol),this.m_bottomFloodFillIconContainer&&(1===this.m_selection.length?this._moveFloodFillAffordance():this._removeFloodFillAffordance()))},M.prototype.fireSelectionEvent=function(e,t){var i={event:e,ui:{selection:this.GetSelection(),previousSelection:t}};this.fireEvent("select",i)},M.prototype.extendSelection=function(e,t,i){if("header"!==this.m_active.type){var s;if(this.m_utils.isTouchDevice())s=this.m_touchSelectAnchor;else s={row:this.m_active.indexes.row,column:this.m_active.indexes.column};if(null!=s){this._resetSelectionFrontierFocus();var n=this._updateSelectionFrontier(s,e,i),o=n.min,l=n.max;if("row"===this.m_options.getSelectionMode()&&(o=this.createIndex(o.row),l=this.createIndex(l.row)),this.m_discontiguousSelection&&(this.m_deselectInProgress||this._isContainSelection(s,this.GetSelection().slice(0,-1)))){this.m_deselectInProgress||(this.m_deselectInfo={anchor:s,selection:this.GetSelection()});var r=this._trimRangeForSelectionMode(this.createRange(o,l));this.m_deselectInProgress=this._deselectRange(r,t)}else this._createRangeWithKeys(o,l,this._extendSelectionCallback.bind(this,t,s))}}},M.prototype.extendDeselection=function(e,t){var i=this.m_deselectInfo.anchor,s=this._updateSelectionFrontier(i,e),n=s.min,o=s.max,l=this._trimRangeForSelectionMode(this.createRange(n,o));this._deselectRange(l,t)},M.prototype.extendSelectionHeader=function(e,t,i,s){if(null!==e){var n=this.findCellOrHeader(e);if(null!==n){var o,l,r,a,h,d=n[this.getResources().getMappedAttribute("context")];if(null==i&&(i=this.m_discontiguousSelection),d){if(d.cell)a=r=-1!==this.m_selectionFrontier.axis.indexOf("column")?d.indexes.column:d.indexes.row,h=r;else{if(this.m_selectionFrontier&&d.index===this.m_selectionFrontier.index&&d.level===this.m_selectionFrontier.level)return;1===d.extent?(r=d.index,a=d.index,h=d.index):a=(r=this._getAttribute(e.parentNode,"start",!0))+(this._getAttribute(e.parentNode,"extent",!0)-1)}var c=s?this.m_deselectInfo.sourceParent:this._getActiveElement();if(c){var m,u,_,p=c[this.getResources().getMappedAttribute("context")];if(s?(l=this.m_deselectInfo.axis,o=this.m_deselectInfo.anchor[l],u=(m=this._getAttribute(c.parentNode,"start",!0))+(this._getAttribute(c.parentNode,"extent",!0)-1)):this.m_utils.isTouchDevice()?(-1===(o=-1!==this.m_selectionFrontier.axis.indexOf("column")?this.m_touchSelectAnchor.column:this.m_touchSelectAnchor.row)&&(o=0),m=o,u=o,l=this.m_selectionFrontier.axis):(u=(m=this._getAttribute(c.parentNode,"start",!0))+(this._getAttribute(c.parentNode,"extent",!0)-1),"header"===this.m_active.type&&(l=this.m_active.axis,o=this.m_active.index)),"cell"===this.m_active.type?(_=1,o=-1!==(l=d.axis).indexOf("row")?this.m_active.indexes.row:this.m_active.indexes.column):_=p.extent,i&&!s){var g=this.m_selection[this.m_selection.length-1];this.unhighlightSelection(),g&&this.checkCorners(l,o,g)&&this.m_selection.pop()}if(1!==_?r<=m&&a>=u||r>=m&&a<=u?(this.m_headerDragState||this._setActive(n,this._createActiveObject(n),t),o=r,h=a):r>m&&a>u?(o=m,h=a):r<m&&a<u&&(o=r,h=u):1===_&&r!==a&&(r<=o&&o<=a?(this.m_headerDragState||"cell"===this.m_active.type||this._setActive(n,this._createActiveObject(n),t),o=r,h=a):r<=o&&a<=o?(h=o,o=r):r>=o&&a>=o&&(h=a)),d.cell?this.setHeaderSelectionFrontier(l,h,h,this.m_selectionFrontier.level,n,!0):this.setHeaderSelectionFrontier(l,h,d.index,d.level,n,!0),!s&&l)-1!==l.indexOf("column")?this._selectEntireColumn(o,h,t):-1!==l.indexOf("row")&&this._selectEntireRow(o,h,t);else{var f,C=Math.min(o,h),y=Math.max(o,h);f=null!=l&&-1!==l.indexOf("row")?this.createRange(this.createIndex(C,0),this.createIndex(y,-1)):this.createRange(this.createIndex(0,C),this.createIndex(-1,y));var v=this._trimRangeForSelectionMode(f);this._deselectRange(v,t)}}}}}},M.prototype._updateSelectionFrontier=function(e,t,i){var s,n,o;if("row"===this.m_options.getSelectionMode()?(s=this.createIndex(e.row,this.m_startCol),n=this.createIndex(t.row,this.m_endCol)):(s=e,n=t),null!=i){if(this.m_deselectInProgress)o=this.createRange(this.m_deselectInfo.anchor,this.m_selectionFrontier);else{var l=this.GetSelection();o=l[this._getLastAnchoredSelectionIndex(l,s)]}var r=o.startIndex,a=o.endIndex;r.row===this.m_selectionFrontier.row&&s.row!==r.row?s.row=a.row:a.row===this.m_selectionFrontier.row&&s.row!==a.row&&(s.row=r.row),r.column===this.m_selectionFrontier.column&&s.column!==r.column?s.column=a.column:a.column===this.m_selectionFrontier.column&&s.column!==a.column&&(s.column=r.column)}var h=this._getSelectionStartAndEnd(s,n,0),d=n;if(null!=i){var c=h.min,m=h.max;for("row"===this.m_options.getSelectionMode()&&(c=this.createIndex(c.row),m=this.createIndex(m.row));this._compareIndividualSelectionObjects(o,this.createRange(c,m));){if(i===this.keyCodes.LEFT_KEY){if(0===n.column)break;n.column-=1}else if(i===this.keyCodes.RIGHT_KEY){if(n.column===this.m_endCol)break;n.column+=1}else if(i===this.keyCodes.UP_KEY){if(0===n.row)break;n.row-=1}else{if(i!==this.keyCodes.DOWN_KEY)break;if(n.row===this.m_endRow)break;n.row+=1}c=(h=this._getSelectionStartAndEnd(s,n,0)).min,m=h.max,"row"===this.m_options.getSelectionMode()&&(c=this.createIndex(c.row),m=this.createIndex(m.row))}i===this.keyCodes.LEFT_KEY?(d.column=c.column<s.column?c.column:m.column,d.row=c.row<s.row?c.row:m.row):i===this.keyCodes.RIGHT_KEY?(d.column=m.column>s.column?m.column:c.column,d.row=c.row<s.row?c.row:m.row):i===this.keyCodes.UP_KEY?(d.row=c.row<s.row?c.row:m.row,d.column=c.column<s.column?c.column:m.column):i===this.keyCodes.DOWN_KEY&&(d.row=m.row>s.row?m.row:c.row,d.column=c.column<s.column?c.column:m.column)}else d=this.getCellIndexes(this._getCellByIndex(d));return"row"===this.m_options.getSelectionMode()&&(d=this.createIndex(d.row,this.m_active.indexes.column)),this.m_selectionFrontier=d,h},M.prototype._getMinOrMax=function(e,t,i){return isNaN(e)?isNaN(t)?null:t:isNaN(t)?e:i(e,t)},M.prototype._getSelectionStartAndEnd=function(e,t,i){var s=this.getElementsInRange(this.createRange(e,t));if(null==s||s.length===i)return{min:e,max:t};for(var n={row:this._getMinOrMax(e.row,t.row,Math.min),column:this._getMinOrMax(e.column,t.column,Math.min)},o={row:this._getMinOrMax(e.row,t.row,Math.max),column:this._getMinOrMax(e.column,t.column,Math.max)},l=0;l<s.length;l++){var r=this.getCellIndexes(s[l]),a=this.getCellEndIndexes(s[l]);(r.row<n.row||null==n.row)&&(n.row=r.row),(r.column<n.column||null==n.column)&&(n.column=r.column),(a.row>o.row||null==o.row)&&(o.row=a.row),(a.column>o.column||null==o.column)&&(o.column=a.column)}return this._getSelectionStartAndEnd(n,o,s.length)},M.prototype._getLastAnchoredSelectionIndex=function(e,t){var i;for(i=e.length-1;i>-1;i--)if(this._isContainSelection(t,[e[i]]))return i;return i-1},M.prototype._extendSelectionCallback=function(e,t,i){var s=this.GetSelection(),n=this._getLastAnchoredSelectionIndex(s,t),o=s[n];if(null!=o){var l=o.startIndex.row===i.startIndex.row;null!=o.startIndex.column&&null!=i.startIndex.column&&(l=l&&o.startIndex.column===i.startIndex.column);var r=o.endIndex.row===i.endIndex.row;if(null!=o.endIndex.column&&null!=i.endIndex.column&&(r=r&&o.endIndex.column===i.endIndex.column),!l||!r){var a;if(this.m_discontiguousSelection||e&&this.m_utils.ctrlEquivalent(e)&&0===e.button?(a=s.slice(0),this.unhighlightRange(o),a.splice(n,1)):(a=[],this.unhighlightSelection()),a.push(i),this.m_selection=a,this.m_discontiguousSelection||e&&this.m_utils.ctrlEquivalent(e)&&0===e.button)for(var h=0;h<this.m_selection.length;h++)this.highlightRange(this.m_selection[h]);else this.highlightRange(i,!0);this._makeSelectionFrontierFocus(),this._compareSelectionAndFire(e,s)}}},M.prototype._resetSelectionFrontierFocus=function(){if(!(null==this.m_selectionFrontier||this._isDatabodyCellActive()&&this.m_selectionFrontier.row===this.m_active.indexes.row&&this.m_selectionFrontier.column===this.m_active.indexes.column)){var e=this.createRange(this.m_selectionFrontier),t=this.getElementsInRange(e);null!=t&&t.length>0&&this._unsetAriaProperties(t[0])}},M.prototype._makeSelectionFrontierFocus=function(){if(!(null==this.m_selectionFrontier||this._isDatabodyCellActive()&&this.m_selectionFrontier.row===this.m_active.indexes.row&&this.m_selectionFrontier.column===this.m_active.indexes.column)){if(this._isDatabodyCellActive()){var e=this.createRange(this.m_active.indexes),t=this.getElementsInRange(e);null!=t&&t.length>0&&this._unsetAriaProperties(t[0])}var i=this.createRange(this.m_selectionFrontier),s=this.getElementsInRange(i);if(null!=s&&0!==s.length){this._updateContextInfo(this.m_selectionFrontier);var n=this.m_utils.containsCSSClassName(s[0],this.getMappedStyle("row"))?s[0].firstChild:s[0];this._setAriaProperties(this._createActiveObject(n),null,n)}}},M.prototype._selectHeader=function(e,t,i,s){var n,o;if(-1!==e.indexOf("row")&&this.m_rowHeaderLevelCount-1===i||-1!==e.indexOf("column")&&this.m_columnHeaderLevelCount-1===i)n=t,o=t;else{var l=this._getActiveElement();o=(n=this._getAttribute(l.parentNode,"start",!0))+(this._getAttribute(l.parentNode,"extent",!0)-1)}-1!==e.indexOf("row")?((n===o&&!this.isMultipleSelection()||this.isMultipleSelection())&&(this.setHeaderSelectionFrontier(e,o,t,i,s.target,!0),this._selectEntireRow(n,o,s)),this._setAccInfoText("accessibleRowSelected",{row:t+1})):-1!==e.indexOf("column")&&(this.setHeaderSelectionFrontier(e,o,t,i,s.target,!0),this._selectEntireColumn(n,o,s),this._setAccInfoText("accessibleColumnSelected",{column:t+1})),this.isMultipleSelection()&&(this.m_headerDragState=!0)},M.prototype.setHeaderSelectionFrontier=function(e,t,i,s,n,o){o&&(this.m_selectionFrontier={}),this.m_selectionFrontier.axis=e,this.m_selectionFrontier.end=t,this.m_selectionFrontier.index=i,this.m_selectionFrontier.level=s,this.m_selectionFrontier.target=n},M.prototype._resetHeaderHighLight=function(){this.GetSelection().forEach(e=>{var t=this.getHeadersByRange(e,"row"),i=this.getHeadersByRange(e,"column");this._highlightHeaders(e,t,i)})},M.prototype.updateSelectionHeader=function(){this.m_selectionFrontier&&this.m_selectionFrontier.target&&(this.m_utils.isTouchDevice()&&this.m_selection.length&&(this.m_touchSelectAnchor=this.m_selection[this.m_selection.length-1].startIndex),this.extendSelectionHeader(this.m_selectionFrontier.target,null)),this._resetHeaderHighLight()},M.prototype.selectAndFocus=function(e,t,i){null==i&&(i=!1),this._resetSelectionFrontierFocus(),this._setActiveByIndex(e,t),"row"===this.m_options.getSelectionMode()&&(e=this.createIndex(e.row));var s=this._getSelectionStartAndEnd(e,e,0),n=s.min,o=s.max;"row"===this.m_options.getSelectionMode()&&(n=this.createIndex(n.row),o=this.createIndex(o.row)),this._createRangeWithKeys(n,o,this._selectAndFocusRangeCallback.bind(this,n,t,i))},M.prototype._selectAndFocusRangeCallback=function(e,t,i,s){var n=this.GetSelection(),o=n.slice(0);if(!i)if(this.m_discontiguousSelection||!t||this.isMultipleSelection()&&this.m_utils.ctrlEquivalent(t)&&0===t.button){if(this._isDatabodyCellActive()&&null!=this.m_prevActive&&"cell"===this.m_prevActive.type&&this.m_selectionFrontier.row===this.m_prevActive.indexes.row&&this.m_selectionFrontier.column===this.m_prevActive.indexes.column&&!this.m_utils.isTouchDevice()&&(t.keyCode||!this.isMultipleSelection())){o.pop();var l=this._getContainedSelectionCssClass(this.m_prevActive.indexes,o);if(l.contains){var r=l.class;if(r.length){var a=[];-1===r.indexOf("topSelected")&&a.push("topSelected"),-1===r.indexOf("bottomSelected")&&a.push("bottomSelected"),this._unhighlightElement(this._getCellByIndex(this.m_prevActive.indexes),a)}else this._unhighlightElement(this._getCellByIndex(this.m_prevActive.indexes),["topSelected","bottomSelected"])}else this._unhighlightElement(this._getCellByIndex(this.m_prevActive.indexes),["selected","topSelected","bottomSelected"])}}else this.unhighlightSelection(),o=[];this.m_selectionFrontier=e,o.push(s),this.m_selection=o,this.highlightRange(s),this._compareSelectionAndFire(t,n)},M.prototype._compareSelectionAndFire=function(e,t){var i=this.GetSelection();this.isMultipleSelection()&&i.length>0&&(this.m_utils.isTouchDevice()?(this._addTouchSelectionAffordance(e),this._moveTouchSelectionAffordance()):this.m_options.isFloodFillEnabled()&&this._isSelectionEnabled()&&!this.m_discontiguousSelection&&"cell"===this.m_active.type&&(this._addFloodfillAffordance(e),this._moveFloodFillAffordance())),this._compareSelections(i,t)||(this._resetHeaderHighLight(),this.fireSelectionEvent(e,t))},M.prototype._addTouchSelectionAffordance=function(e){if(null==this.m_topSelectIconContainer&&null==this.m_bottomSelectIconContainer){var t=e.target,i=this.findCell(t);if(i||(i=this.findHeader(t)),!i)return;this.m_topSelectIconContainer=document.createElement("div"),this.m_topSelectIconContainer.className=this.getMappedStyle("toucharea");var s=document.createElement("div");s.className=this.getMappedStyle("selectaffordance"),s.setAttribute("role","button"),s.setAttribute("aria-label",this.getResources().getTranslatedText("accessibleSelectionAffordanceTop")),this.m_topSelectIconContainer.appendChild(s),this.m_bottomSelectIconContainer=document.createElement("div"),this.m_bottomSelectIconContainer.className=this.getMappedStyle("toucharea");var n=document.createElement("div");n.className=this.getMappedStyle("selectaffordance"),n.setAttribute("role","button"),n.setAttribute("aria-label",this.getResources().getTranslatedText("accessibleSelectionAffordanceBottom")),this.m_bottomSelectIconContainer.appendChild(n),this.m_databody.firstChild.appendChild(this.m_topSelectIconContainer),this.m_databody.firstChild.appendChild(this.m_bottomSelectIconContainer),this.m_touchSelectionAffordanceHeight=this.m_topSelectIconContainer.firstElementChild.offsetHeight,this.m_touchSelectionAffordanceWidth=this.m_topSelectIconContainer.firstElementChild.offsetWidth}},M.prototype._addRoundedAffordanceClasses=function(e,t,i,s){if(e&&t)i||"row"!==s?i||"column"!==s?(e.classList.add(this.getMappedStyle("selectaffordancetopcornerbounded")),t.classList.add(this.getMappedStyle("selectaffordancebottomcornerbounded"))):(e.classList.add(this.getMappedStyle("selectaffordancetopcolumn")),t.classList.add(this.getMappedStyle("selectaffordancebottomcolumn"))):(e.classList.add(this.getMappedStyle("selectaffordancetoprow")),t.classList.add(this.getMappedStyle("selectaffordancebottomrow")));else if(t){let e;e=i||"row"!==s?i||"column"!==s?"selectaffordancebottomcornerbounded":"selectaffordancebottomcolumn":"selectaffordancebottomrow",t.classList.add(this.getMappedStyle(e))}},M.prototype._clearRoundedAffordanceClasses=function(e,t){e&&(e.classList.remove(this.getMappedStyle("selectaffordancetopcornerbounded")),e.classList.remove(this.getMappedStyle("selectaffordancetopcolumn")),e.classList.remove(this.getMappedStyle("selectaffordancetoprow"))),t.classList.remove(this.getMappedStyle("selectaffordancebottomcornerbounded")),t.classList.remove(this.getMappedStyle("selectaffordancebottomcolumn")),t.classList.remove(this.getMappedStyle("selectaffordancebottomrow"))},M.prototype._removeTouchSelectionAffordance=function(e){(this._isDatabodyCellActive()||e)&&this.m_topSelectIconContainer&&this.m_topSelectIconContainer.parentNode&&(this.m_topSelectIconContainer.parentNode.removeChild(this.m_topSelectIconContainer),this.m_bottomSelectIconContainer.parentNode.removeChild(this.m_bottomSelectIconContainer))},M.prototype._moveTouchSelectionAffordance=function(){var e,t,i=this.getResources().isRTLMode()?"right":"left",s=this.GetSelection();if(s.length>0){var n=this.m_options.getSelectionMode(),o=this._getTouchSelectionAffordanceSize();if(null!=this.m_topSelectIconContainer&&null!=this.m_bottomSelectIconContainer){var l=this.m_topSelectIconContainer.firstElementChild,r=this.m_bottomSelectIconContainer.firstElementChild;if(this._clearRoundedAffordanceClasses(l,r),"row"===n||-1!==s[s.length-1].endIndex.row&&-1===s[s.length-1].endIndex.column){this._addRoundedAffordanceClasses(l,r,!1,"row");const n=this.getElementWidth(this.m_databody)/2+this.m_currentScrollLeft-o/2;let a;if(this.setElementDir(this.m_topSelectIconContainer,n,i),this.setElementDir(this.m_bottomSelectIconContainer,n,i),e=this._getAxisCellsByKey(s[s.length-1].startKey.row,"row"),(t=this._getAxisCellsByKey(s[s.length-1].endKey.row,"row"))&&t.length&&(a=t[0]),!a){let e=this.createIndex(-1,0),t=this.getElementsInRange(this.createRange(e,e));a=t[t.length-1]}this.setElementDir(this.m_topSelectIconContainer,this.getElementDir(e[0],"top")-this.m_touchSelectionAffordanceHeight-1,"top"),this.setElementDir(this.m_bottomSelectIconContainer,this.getElementDir(a,"top")+this.getElementHeight(a)-o+this.m_touchSelectionAffordanceHeight,"top")}else if(-1!==s[s.length-1].endIndex.column&&-1===s[s.length-1].endIndex.row){this._addRoundedAffordanceClasses(l,r,!1,"column"),e=this._getAxisCellsByKey(s[s.length-1].startKey.column,"column"),t=this._getAxisCellsByKey(s[s.length-1].endKey.column,"column");var a=this.getElementHeight(this.m_databody)/2+this.m_currentScrollTop-o/2;this.setElementDir(this.m_topSelectIconContainer,a,"top"),this.setElementDir(this.m_bottomSelectIconContainer,a,"top"),this.setElementDir(this.m_topSelectIconContainer,this.getElementDir(e[0],"left")-this.m_touchSelectionAffordanceWidth-2,"left"),this.setElementDir(this.m_bottomSelectIconContainer,this.getElementDir(t[0],"left")+this.getElementWidth(t[0])-(o-this.m_touchSelectionAffordanceWidth-1),"left")}else{this._addRoundedAffordanceClasses(l,r,!0);var h=this._getCellByIndex(s[s.length-1].startIndex),d=this._getCellByIndex(s[s.length-1].endIndex);if(!d){let e=this.createIndex(-1,-1),t=this.getElementsInRange(this.createRange(e,e));d=t[t.length-1]}this.setElementDir(this.m_topSelectIconContainer,this.getElementDir(h,"top")-this.m_touchSelectionAffordanceHeight-1,"top"),this.setElementDir(this.m_bottomSelectIconContainer,this.getElementDir(d,"top")+this.getElementHeight(d)-o+this.m_touchSelectionAffordanceWidth,"top"),this.setElementDir(this.m_topSelectIconContainer,this.getElementDir(h,i)-this.m_touchSelectionAffordanceWidth-2,i),this.setElementDir(this.m_bottomSelectIconContainer,this.getElementDir(d,i)+this.getElementWidth(d)-(o-this.m_touchSelectionAffordanceWidth),i)}null==this.m_topSelectIconContainer.parentNode&&(this.m_databody.firstChild.appendChild(this.m_topSelectIconContainer),this.m_databody.firstChild.appendChild(this.m_bottomSelectIconContainer))}}},M.prototype._scrollTouchSelectionAffordance=function(){var e,t,i=this.m_options.getSelectionMode();if("row"===i)null!=this.m_topSelectIconContainer&&(t=this.getResources().isRTLMode()?"right":"left",e=this.getElementWidth(this.m_databody)/2+this.m_currentScrollLeft,this.setElementDir(this.m_topSelectIconContainer,e,t),this.setElementDir(this.m_bottomSelectIconContainer,e,t));else if("cell"===i&&this.isHeaderSelectionType(this.m_selectionFrontier)&&null!=this.m_topSelectIconContainer)if(-1!==this.m_selectionFrontier.axis.indexOf("row"))t=this.getResources().isRTLMode()?"right":"left",e=this.getElementWidth(this.m_databody)/2+this.m_currentScrollLeft,this.setElementDir(this.m_topSelectIconContainer,e,t),this.setElementDir(this.m_bottomSelectIconContainer,e,t);else{var s=this.getElementHeight(this.m_databody)/2+this.m_currentScrollTop;this.setElementDir(this.m_topSelectIconContainer,s,"top"),this.setElementDir(this.m_bottomSelectIconContainer,s,"top")}},M.prototype._getTouchSelectionAffordanceSize=function(){if(null==this.m_touchSelectionAffordanceSize){var e=document.createElement("div");e.className=this.getMappedStyle("toucharea"),e.style.visibilty="hidden",e.style.top="0px",e.style.visibilty="0px",this.m_root.appendChild(e);var t=e.offsetWidth;this.m_root.removeChild(e),this.m_touchSelectionAffordanceSize=t}return this.m_touchSelectionAffordanceSize},M.SORT_ANIMATION_DURATION=800,M.prototype._handleSortContainerMouseOver=function(e){var t=e.target,i=this.findHeader(t),s=this._getSortIcon(i);this.m_utils.containsCSSClassName(e.currentTarget,this.getMappedStyle("sortIcon"))&&(this.m_utils.addCSSClassName(e.currentTarget,this.getMappedStyle("hover")),this.m_utils.addCSSClassName(s,this.getMappedStyle("hover")),this.m_utils.addCSSClassName(s,this.getMappedStyle("enabled")),this.m_utils.removeCSSClassName(s,this.getMappedStyle("disabled")))},M.prototype._handleSortMouseOut=function(e){if(!this._databodyEmpty()){var t,i=e.target,s=e.relatedTarget,n=this.findHeader(i);null!=n&&null!=s&&n===this.findHeader(s)||this._displaySortIcon(n),(t=this._getSortIcon(n))&&(this.m_utils.removeCSSClassName(t,this.getMappedStyle("hover")),this.m_utils.containsCSSClassName(t,this.getMappedStyle("selected"))||(this.m_utils.addCSSClassName(t,this.getMappedStyle("disabled")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("enabled"))));var o=this._getSortContainer(n);o&&(this.m_utils.removeCSSClassName(o,this.getMappedStyle("hover")),this.m_utils.removeCSSClassName(o,this.getMappedStyle("selected")))}},M.prototype._handleSortIconMouseDown=function(e){this._databodyEmpty()||(this.m_utils.addCSSClassName(e,this.getMappedStyle("selected")),this.m_utils.removeCSSClassName(e,this.getMappedStyle("disabled")))},M.prototype._toggleSortIconDirection=function(e,t){if(null!=e){var i=this._getSortIcon(e);"descending"===t&&(this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortascending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdefault")))?(this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortascending")),this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortdefault")),this.m_utils.addCSSClassName(i,this.getMappedStyle("sortdescending"))):"ascending"===t&&(this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdescending"))||this.m_utils.containsCSSClassName(i,this.getMappedStyle("sortdefault")))?(this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortdescending")),this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortdefault")),this.m_utils.addCSSClassName(i,this.getMappedStyle("sortascending"))):"default"===t&&(this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortdescending")),this.m_utils.removeCSSClassName(i,this.getMappedStyle("sortascending")),this.m_utils.addCSSClassName(i,this.getMappedStyle("sortdefault")))}},M.prototype._displaySortIcon=function(e){var t=!1;if(null!=e){var i=this._getSortIcon(e);null!=this.m_sortInfo&&(t=this.m_sortInfo.key===this._getKey(e)),t&&this.m_utils.addCSSClassName(i,this.getMappedStyle("default"))}},M.prototype._buildSortIcon=function(e,t,i){var s=document.createElement("div");this.m_utils.addCSSClassName(s,this.getMappedStyle("iconContainer")),this.m_utils.addCSSClassName(s,this.getMappedStyle("sortIcon"));var n=document.createElement("div"),o=this.getMappedStyle("icon")+" "+this.getMappedStyle("clickableicon"),l=null!=this.m_sortInfo&&this.m_sortInfo.axis===i?this.m_sortInfo.key:null;if(e.key===l){var r=null!=this.m_sortInfo&&this.m_sortInfo.axis===i?this.m_sortInfo.direction:null;"ascending"===r?(n.className=this.getMappedStyle("sortascending")+" "+o,t.setAttribute(this.getResources().getMappedAttribute("sortDir"),r),n.setAttribute("title",this.getResources().getTranslatedText("labelSortDsc"))):"descending"===r?(n.className=this.getMappedStyle("sortdescending")+" "+o,t.setAttribute(this.getResources().getMappedAttribute("sortDir"),r),n.setAttribute("title",this.getResources().getTranslatedText("labelSortAsc"))):(n.className=this.getMappedStyle("sortdefault")+" "+o,n.setAttribute("title",this.getResources().getTranslatedText("labelSortAsc")))}else o+=" "+this.getMappedStyle("disabled"),n.className=this.getMappedStyle("sortdefault")+" "+o,n.setAttribute("title",this.getResources().getTranslatedText("labelSortAsc"));return s.appendChild(n),s.addEventListener("mouseover",this._handleSortContainerMouseOver.bind(this)),s},M.prototype._handleKeyboardSort=function(e,t){if(!this._databodyEmpty()){var i=e.getAttribute(this.getResources().getMappedAttribute("sortDir"));i=null==i||"descending"===i?"ascending":"descending",this._doHeaderSort(t,e,i)}},M.prototype._handleHeaderSort=function(e,t){if(!this._databodyEmpty()){var i=e.target,s=this.findHeader(i);null!=s&&(null==t&&(t=null!=this.m_sortInfo&&this.m_sortInfo.key===this._getKey(s)&&"ascending"===this.m_sortInfo.direction?"descending":"ascending"),this._doHeaderSort(e,s,t))}},M.prototype._handleCellSort=function(e,t,i){null==i||this._databodyEmpty()||(this._removeTouchSelectionAffordance(),this._doHeaderSort(e,i,t))},M.prototype._doHeaderSort=function(e,t,i){if(!0!==this.m_isSorting){this.m_delayedSort=null;var s=this._getKey(t),n=this._getAxis(t);if(this._removeSortSelection(),t.setAttribute(this.getResources().getMappedAttribute("sortDir"),i),this.m_sortInfo={event:e,key:s,axis:n,direction:i,header:t},this._toggleSortIconDirection(t,i),this._addSortSelection(),this._setAccInfoText("ascending"===i?"accessibleSortAscending":"accessibleSortDescending",{id:s}),null!=i&&null!=s&&null!=n)if(this._isDataGridProvider())this._fireSortRequestEvent(n);else{this.m_isSorting=!0,this.showStatusText();var o={axis:n,key:s,direction:i};this.getDataSource().sort(o,{success:this._handleSortSuccess.bind(this),error:this._handleSortError.bind(this)})}}else this.m_delayedSort={event:e,header:t,direction:i}},M.prototype._handleSortError=function(){this.hideStatusText()},M.prototype._removeSortSelection=function(){if(null!=this.m_sortInfo){var e;if(!(e="column"===this.m_sortInfo.axis?this._findHeaderByKey(this.m_sortInfo.key,this.m_colHeader,this.getMappedStyle("colheadercell")):this._findHeaderByKey(this.m_sortInfo.key,this.m_rowHeader,this.getMappedStyle("rowheadercell"))))return;e.removeAttribute(this.getResources().getMappedAttribute("sortDir"));var t=this._getSortIcon(e);this._toggleSortIconDirection(e,"default"),"descending"===this.m_sortInfo.direction&&(this.m_utils.removeCSSClassName(t,this.getMappedStyle("sortdescending")),this.m_utils.addCSSClassName(t,this.getMappedStyle("sortascending"))),this.m_utils.addCSSClassName(t,this.getMappedStyle("disabled")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("enabled")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("default")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("selected")),this.m_utils.removeCSSClassName(this._getSortContainer(e),this.getMappedStyle("enabled"))}},M.prototype._addSortSelection=function(){if(null!=this.m_sortInfo){var e;e="column"===this.m_sortInfo.axis?this._findHeaderByKey(this.m_sortInfo.key,this.m_colHeader,this.getMappedStyle("colheadercell")):this._findHeaderByKey(this.m_sortInfo.key,this.m_rowHeader,this.getMappedStyle("rowheadercell"));var t=this._getSortIcon(e);this.m_utils.addCSSClassName(t,this.getMappedStyle("default")),this.m_utils.removeCSSClassName(t,this.getMappedStyle("disabled")),this.m_utils.addCSSClassName(t,this.getMappedStyle("selected"))}},M.prototype._getAxis=function(e){var t=this.getMappedStyle("colheadercell"),i=this.getMappedStyle("rowheadercell");return this.m_utils.containsCSSClassName(e,t)?"column":this.m_utils.containsCSSClassName(e,i)?"row":null},M.prototype._handleSortSuccess=function(){this.hideStatusText(),this._isDatabodyCellActive()?this._indexes({row:this.m_active.keys.row,column:this.m_active.keys.column},this._handlePreSortScrolling):this._fetchForSort(this.m_startRow,this.m_endRow-this.m_startRow+1,!1)},M.prototype._handlePreSortScrolling=function(e){var t=(-1===e.row?0:e.row)*this.m_avgRowHeight,i=t+this.m_avgRowHeight,s=this._isHighWatermarkScrolling();if(this.m_currentScrollTop<=t&&i<=this.m_currentScrollTop+this.getElementHeight(this.m_databody)||s)this._fetchForSort(this.m_startRow,this.m_endRow-this.m_startRow+1,!1);else{this.m_currentScrollTop=Math.min(t,this._getMaxScrollHeight());var n=Math.floor(this.m_currentScrollTop/this.m_avgRowHeight),o=n*this.m_avgRowHeight;this.m_startRow=n,this.m_endRow=-1,this.m_startRowHeader=n,this.m_endRowHeader=-1,this.m_startRowPixel=o,this.m_endRowPixel=o,this.m_startRowHeaderPixel=o,this.m_endRowHeaderPixel=o,this._fetchForSort(n,null,!0)}},M.prototype._fetchForSort=function(e,t,i){var s=document.createDocumentFragment(),n=document.createDocumentFragment();this.fetchHeaders("row",e,s,n,t,{success:this.handleHeadersFetchSuccessForSort.bind(this),error:this.handleCellsFetchError}),this.fetchCells(this.m_databody,e,this.m_startCol,t,this.m_endCol-this.m_startCol+1,{success:this.handleCellsFetchSuccessForSort.bind(this,s,n,i),error:this.handleCellsFetchError})},M.prototype.handleHeadersFetchSuccessForSort=function(e,t,i,s){var n,o,l,r,a,h,d,c=t.axis,m=t.start,u=t.header,_=t.endHeader;if(this.m_fetching[c]=!1,null!=e){for(n=e.getCount(),r=0,o=0,h=this.getMappedStyle("headercell")+" "+this.getMappedStyle("rowheadercell"),d=this.getRendererOrTemplate("row");n-o>0;)l=m+o,o+=(a=this.buildLevelHeaders(u,l,0,0,this.m_startRowPixel+r,!0,s,d,e,"row",h,this.m_rowHeaderLevelCount)).count,r+=a.totalHeaderDimension;this.m_endRowHeader=this.m_startRowHeader+(n-1),this.m_endRowHeaderPixel=this.m_startRowHeaderPixel+r}if(null!=i){for(n=i.getCount(),r=0,o=0,h=this.getMappedStyle("endheadercell")+" "+this.getMappedStyle("rowendheadercell"),d=this.getRendererOrTemplate("rowEnd");n-o>0;)l=m+o,o+=(a=this.buildLevelHeaders(_,l,0,0,this.m_startRowPixel+r,!0,s,d,i,"rowEnd",h,this.m_rowEndHeaderLevelCount)).count,r+=a.totalHeaderDimension;this.m_endRowEndHeader=this.m_startRowEndHeader+(n-1),this.m_endRowEndHeaderPixel=this.m_startRowEndHeaderPixel+r}this._signalTaskEnd()},M.prototype.handleCellsFetchSuccessForSort=function(e,t,i,s,n){var o;this.m_fetching.cells=!1;var l=M.SORT_ANIMATION_DURATION;this.isFetchComplete()&&this.hideStatusText();var r=n[0].start,a=s.getCount("row"),h=n[1].start,c=document.createDocumentFragment(),m=this._addCellsToFragment(c,s,r,this.m_startRowPixel,h,this.m_startColPixel);this.m_endRow=this.m_startRow+(a-1),this.m_endRowPixel=this.m_startRowPixel+m.totalRowHeight;var u=this.m_databody.firstChild,_=this.m_rowHeader.firstChild,p=this.m_rowEndHeader.firstChild;if(!0===i&&(o=this._isHighWatermarkScrolling(),this.m_utils.isTouchDeviceNotIOS()?(this._disableTouchScrollAnimation(),this.scrollTo(this.m_currentScrollLeft,this.m_currentScrollTop)):(this.m_silentScroll=!0,this.m_databody.scrollTop=this.m_currentScrollTop,this._syncScroller())),!l||!this.m_utils.supportsTransitions()||1===a||this.m_rowHeaderLevelCount>1&&null!=this.m_rowHeaderLevelCount||!1===o)this._signalTaskStart(),this._handleSortEnd(c,e,t);else if(this.m_isCustomElementCallback()){this._signalTaskStart("processing sort render");let i=document.createElement("div"),s=document.createElement("div"),n=document.createElement("div");i.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),s.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),n.setAttribute(this.getResources().getMappedAttribute("busyContext"),""),i.className=this.getMappedStyle("info"),s.className=this.getMappedStyle("info"),n.className=this.getMappedStyle("info"),i.appendChild(c),s.appendChild(e),n.appendChild(t),this.m_root.appendChild(i),this.m_root.appendChild(s),this.m_root.appendChild(n);var g=d.getContext(i).getBusyContext().whenReady(),f=d.getContext(s).getBusyContext().whenReady(),C=d.getContext(n).getBusyContext().whenReady();Promise.all([g,f,C]).then(function(){for(;i.childNodes.length>0;)c.appendChild(i.childNodes[0]);for(;s.childNodes.length>0;)e.appendChild(s.childNodes[0]);for(;n.childNodes.length>0;)t.appendChild(n.childNodes[0]);this.m_root.removeChild(i),this.m_root.removeChild(s),this.m_root.removeChild(n),this._signalTaskEnd(),this.processSortAnimationToPosition(l,0,"ease-in",_,e,u,c,p,t)}.bind(this))}else this.processSortAnimationToPosition(l,0,"ease-in",_,e,u,c,p,t);this._signalTaskEnd()},M.prototype._handleSortEnd=function(e,t,i,s,n,o){var l;if(t.childNodes.length>1){if(l=this.m_rowHeader.firstChild,n)for(let e=0;e<n.length;e++){let i=n[e];t.insertBefore(i.element,t.childNodes[i.index])}this.m_utils.empty(l),l.appendChild(t),this.m_subtreeAttachedCallback(l)}if(i.childNodes.length>1){if(l=this.m_rowEndHeader.firstChild,o)for(let e=0;e<o.length;e++){let t=o[e];i.insertBefore(t.element,i.childNodes[t.index])}this.m_utils.empty(l),l.appendChild(i),this.m_subtreeAttachedCallback(l)}var r=this.m_databody.firstChild,a=this.m_rowHeader.firstChild,h=this.m_rowEndHeader.firstChild;if(s)for(let t=0;t<s.length;t++)e.appendChild(s[t]);this._emptyDatabody(r),this._populateDatabody(r,e),this._fireSortEvent(),this._restoreActive(),this.m_isSorting=!1,this._doDelayedSort(),this.m_animating=!1;for(let e=0;e<r.childNodes.length;e++)this.removeTransformMoveStyle(r.childNodes[e]);if(-1!==this.m_endRowHeader)for(let e=0;e<a.childNodes.length;e++)this.removeTransformMoveStyle(a.childNodes[e]);if(-1!==this.m_endRowEndHeader)for(let e=0;e<h.childNodes.length;e++)this.removeTransformMoveStyle(h.childNodes[e]);this._signalTaskEnd(),this._runModelEventQueue()},M.prototype.processSortAnimationToPosition=function(e,t,i,s,n,o,l,r,a){var h,d,c,m,u,_,p,g,f,C,y=this;this._signalTaskStart();var v=n.childNodes.length>1,E=a.childNodes.length>1,w=this.getResources().isRTLMode()?"right":"left",S=this._getViewportBottom(),H=this._getViewportLeft(),x=this._getViewportRight(),b={},R={},I=[];for(m=0;m<o.childNodes.length;m++)u=o.childNodes[m],h=this._getKey(u,"row"),C=(f=this.getElementDir(u,w))+this.getElementWidth(u),_=(d=this.getElementDir(u,"top"))+this.getElementHeight(u),this._isCellBoundaryInViewport(f,C,d,_)&&(b[h]?b[h].cell.push(u):(c=S,b[h]={cell:[u],oldTop:d,newTop:c}),c-d!=0&&(g=u));for(m=0;m<s.childNodes.length;m++)v&&(u=s.childNodes[m],h=this._getKey(u,"row"),_=(d=this.getElementDir(u,"top"))+this.getElementHeight(u),this._isCellBoundaryInViewport(H,x,d,_)&&(c=S,b[h]||(b[h]={oldTop:d,newTop:c}),b[h].rowHeader=u));for(m=0;m<r.childNodes.length;m++)v&&(u=r.childNodes[m],h=this._getKey(u,"row"),_=(d=this.getElementDir(u,"top"))+this.getElementHeight(u),this._isCellBoundaryInViewport(H,x,d,_)&&(c=S,b[h]||(b[h]={oldTop:d,newTop:c}),b[h].rowEndHeader=u));for(m=0;m<l.childNodes.length;m++)u=l.childNodes[m],h=this._getKey(u,"row"),c=this.getElementDir(u,"top"),b[h]?b[h].newTop=c:(d=S,p=c+this.getElementHeight(u),C=(f=this.getElementDir(u,w))+this.getElementWidth(u),this._isCellBoundaryInViewport(f,C,c,p)&&(this.changeStyleProperty(u,this.getCssSupport("transform"),"translate3d(0px,"+d+"px,0px)"),I.push(u),R[h]?R[h].cell.push(u):R[h]={cell:[u],oldTop:d,newTop:c,add:!0},c-d!=0&&(g=u)));for(let e=0;e<I.length;e++)o.appendChild(I[e]);var M=[];for(m=0;m<n.childNodes.length;m++)if(v){var A=n.childNodes[m];h=this._getKey(A,"row"),b[h]||(p=(c=this.getElementDir(A,"top"))+this.getElementHeight(A),d=S,this._isCellBoundaryInViewport(H,x,c,p)&&(this.changeStyleProperty(A,this.getCssSupport("transform"),"translate3d(0px,"+d+"px,0px)"),M.push({element:A,index:m}),R[h]||(R[h]={oldTop:d,newTop:c,add:!0}),R[h].rowHeader=A))}for(let e=0;e<M.length;e++)s.appendChild(M[e].element);var L=[];for(m=0;m<a.childNodes.length;m++)if(E){var D=a.childNodes[m];h=this._getKey(D,"row"),b[h]||(p=(c=this.getElementDir(D,"top"))+this.getElementHeight(D),d=S,this._isCellBoundaryInViewport(H,-1,c,p)&&(this.changeStyleProperty(D,this.getCssSupport("transform"),"translate3d(0px,"+d+"px,0px)"),L.push({element:D,index:m}),R[h].rowEndHeader=D,R[h]||(R[h]={oldTop:d,newTop:c,add:!0})))}for(let e=0;e<L.length;e++)r.appendChild(L[e].element);if(null!=g){var T=this._handleSortEnd.bind(this,l,n,a,I,M,L);y._onTransitionEnd(g,T,e),this.m_animating=!0,setTimeout(function(){var s,n,o,l,r=0,a=Object.keys(b);for(l=0;l<a.length;l++){if(h=a[l],o=b[a[l]],n=t+"ms",s=o.newTop-o.oldTop,o.cell)for(r=0;r<o.cell.length;r++)y.addTransformMoveStyle(o.cell[r],e/2+"ms",n,i,0,s,0);v&&o.rowHeader&&y.addTransformMoveStyle(o.rowHeader,e/2+"ms",n,i,0,s,0),E&&o.rowEndHeader&&y.addTransformMoveStyle(o.rowEndHeader,e/2+"ms",n,i,0,s,0)}for(a=Object.keys(R),l=0;l<a.length;l++){if(h=a[l],o=R[a[l]],n=t*r+"ms",s=0,o.cell)for(var d=0;d<o.cell.length;d++)y.addTransformMoveStyle(o.cell[d],e/2+"ms",n,i,0,s,0);v&&o.rowHeader&&y.addTransformMoveStyle(o.rowHeader,e/2+"ms",n,i,0,s,0),E&&o.rowEndHeader&&y.addTransformMoveStyle(o.rowEndHeader,e/2+"ms",n,i,0,s,0)}},0)}else this._handleSortEnd(l,n,a)},M.prototype._restoreActive=function(){if(null!=this.m_active){var e=this.m_active.axis,t=this.m_sortInfo.originalEvent;if("cell"===this.m_active.type){var i=this._getCellByKeys(this.m_active.keys);if(null!=i){var s=this.getCellIndexes(i);this._isSelectionEnabled()?this.selectAndFocus(s,t):this._setActiveByIndex(s,t)}else this._setActive(null,null,t,!0),this._isSelectionEnabled()&&this._clearSelection(t)}else if("row"===e||"rowEnd"===e){var n="row"===e?this.m_rowHeader:this.m_rowEndHeader,o="row"===e?this.getMappedStyle("rowheadercell"):this.getMappedStyle("rowendheadercell"),l=this._findHeaderByKey(this.m_active.key,n,o);if(null!=l){var r=l[this.getResources().getMappedAttribute("context")];this._setActive(l,{type:"header",axis:e,index:r.index,key:r.key,level:r.level},t)}else this._setActive(null,null,t)}}},M.prototype._getSortIcon=function(e){return e.lastChild.firstChild},M.prototype._getSortContainer=function(e){return e.lastChild},M.prototype._fireSortEvent=function(){var e={event:this.m_sortInfo.event,ui:{header:this.m_sortInfo.key,direction:this.m_sortInfo.direction}};this.fireEvent("sort",e)},M.prototype._fireSortRequestEvent=function(){let e=this.m_sortInfo.header[this.getResources().getMappedAttribute("context")],t=this.m_sortInfo.header[this.getResources().getMappedAttribute("metadata")],i=this.buildHeaderTemplateContext(e,t).item;var s={event:this.m_sortInfo.event,ui:{direction:this.m_sortInfo.direction,item:i,axis:this.m_sortInfo.axis}};this.fireEvent("sortRequest",s)},M.prototype._doDelayedSort=function(){null!=this.m_delayedSort?this._doHeaderSort(this.m_delayedSort.event,this.m_delayedSort.header,this.m_delayedSort.direction):this.fillViewport()},M.prototype._fireExpandRequestEvent=function(e){const t=this.findHeader(e.target),i=t[this.getResources().getMappedAttribute("context")],s=t[this.getResources().getMappedAttribute("metadata")],n={item:this.buildHeaderTemplateContext(i,s).item,axis:i.axis},o=this._getDisclosureIcon(t);this.m_utils.removeCSSClassName(o,this.getMappedStyle("collapsed")),this.m_utils.addCSSClassName(o,this.getMappedStyle("expanded")),this.fireEvent("expandRequest",n)},M.prototype._fireCollapseRequestEvent=function(e){const t=this.findHeader(e.target),i=t[this.getResources().getMappedAttribute("context")],s=t[this.getResources().getMappedAttribute("metadata")],n={item:this.buildHeaderTemplateContext(i,s).item,axis:i.axis},o=this._getDisclosureIcon(t);this.m_utils.removeCSSClassName(o,this.getMappedStyle("expanded")),this.m_utils.addCSSClassName(o,this.getMappedStyle("collapsed")),this.fireEvent("collapseRequest",n)},M.prototype._handleExpandCollapseRequest=function(e){this._isHeaderExpanded(e.target)?this._fireCollapseRequestEvent(e):this._isHeaderCollapsed(e.target)&&this._fireExpandRequestEvent(e)},M.prototype._isTargetExpandCollapseEnabled=function(e){return this._isHeaderCollapsed(e)||this._isHeaderExpanded(e)},M.prototype._isHeaderCollapsed=function(e){const t=this._getDisclosureIcon(e);return!!t&&this.m_utils.containsCSSClassName(t,this.getMappedStyle("collapsed"))},M.prototype._isHeaderExpanded=function(e){const t=this._getDisclosureIcon(e);return!!t&&this.m_utils.containsCSSClassName(t,this.getMappedStyle("expanded"))},M.prototype._buildDisclosureIcon=function(e){const t=document.createElement("div");t.classList.add(this.getMappedStyle("iconContainer")),t.classList.add(this.getMappedStyle("disclosureIcon"));const i=document.createElement("div");let s;return i.classList.add(this.getMappedStyle("icon")),i.classList.add(this.getMappedStyle("clickableicon")),"expanded"===e.metadata.expanded?(i.classList.add(this.getMappedStyle("expanded")),s=this.getResources().getTranslatedText("collapsedText")):"collapsed"===e.metadata.expanded&&(i.classList.add(this.getMappedStyle("collapsed")),s=this.getResources().getTranslatedText("expandedText")),t.setAttribute("title",s),t.appendChild(i),t.addEventListener("mouseover",this._handleExpandCollapseContainerMouseOver.bind(this)),t.addEventListener("mouseout",this._handleDisclosureMouseOut.bind(this)),t},M.prototype._handleExpandCollapseContainerMouseOver=function(e){const t=e.target,i=this.findHeader(t),s=this._getDisclosureIcon(i);this.m_utils.containsCSSClassName(e.currentTarget,this.getMappedStyle("disclosureIcon"))&&(this.m_utils.addCSSClassName(e.currentTarget,this.getMappedStyle("hover")),this.m_utils.addCSSClassName(s,this.getMappedStyle("hover")),this.m_utils.addCSSClassName(s,this.getMappedStyle("enabled")),this.m_utils.removeCSSClassName(s,this.getMappedStyle("disabled")))},M.prototype._buildSpacer=function(e){const t=document.createElement("span");return this._addDataGridSpacerClass(t),this._addIndentation(e,t),t},M.prototype._getTreeDepth=function(e){return e.metadata.treeDepth?e.metadata.treeDepth:null},M.prototype._addDataGridSpacerClass=function(e){this.m_utils.addCSSClassName(e,this.getMappedStyle("spacer"))},M.prototype._isLeaf=function(e){return!e.metadata.expanded||null===e.metadata.expanded},M.prototype._addIndentation=function(e,t){let i=this._getTreeDepth(e);null!==i&&this._appendSpacerClass(i,t,e)},M.prototype._appendSpacerClass=function(e,t,i){t.style.width=e*M.SPACER_DEFAULT_WIDTH+(this._isLeaf(i)?M.SPACER_DEFAULT_WIDTH:0)+"rem"},M.prototype._handleDisclosureMouseOut=function(e){const t=e.target,i=this.findHeader(t),s=this._getDisclosureIcon(i);this.m_utils.containsCSSClassName(e.currentTarget,this.getMappedStyle("disclosureIcon"))&&(this.m_utils.removeCSSClassName(e.currentTarget,this.getMappedStyle("hover")),this.m_utils.removeCSSClassName(s,this.getMappedStyle("hover")),this.m_utils.removeCSSClassName(s,this.getMappedStyle("enabled")))},M.prototype._isDisclosureIcon=function(e){return this.m_utils.containsCSSClassName(e,this.getMappedStyle("icon"))},M.prototype._getDisclosureIcon=function(e){return this.m_utils.containsCSSClassName(e,this.getMappedStyle("icon"))?e:e.getElementsByClassName(this.getMappedStyle("icon"))[0]},M.prototype._getDisclosureIconContainer=function(e){return e.firstChild};const A=function(e){this.datagridprovider=e,this.pendingHeaderCallback={},this._registerEventListeners(),this.totalRowCount=-1,this.totalColumnCount=-1,this.rowKeyMap=new T,this.columnKeyMap=new T,A.superclass.constructor.call(this)};function L(e,t,i){this.results=e,this.rowKeyMap=t,this.columnKeyMap=i,this.databodyResults=e.results.databody,this.rowStart=this.results.rowOffset,this.rowCount=this.results.rowCount,this.rowEnd=this.rowStart+this.rowCount-1,this.columnStart=this.results.columnOffset,this.columnCount=this.results.columnCount,this.columnEnd=this.columnStart+this.columnCount-1,this.lastItem=null}function D(e,t,i){this.results=e,this.axis=t,this.axisResults=e.results[this.axis+"Header"],this.axisLabels=e.results[this.axis+"HeaderLabel"],"row"===this.axis||"rowEnd"===this.axis?(this.start=this.results.rowOffset,this.count=this.results.rowCount):(this.start=this.results.columnOffset,this.count=this.results.columnCount),this.end=this.start+this.count-1,this.lastItem=null,this.keyMap=i,this.levelCount=null}function T(){this.keyMap=new Map,this.nextKey=0,this.set=(e,t,i,s)=>{const n=""+this.nextKey;null==s&&(s=1);for(let o=0;o<s;o++){let s=null==t?t:t+o,l=this.pairIndexLevel(e,s,i);this.keyMap.set(l,n)}return this.nextKey+=1,n},this.get=(e,t,i,s)=>{const n=this.pairIndexLevel(e,t,i);let o=this.keyMap.get(n);return null==o&&(o=this.set(e,t,i,s)),o},this.pairIndexLevel=(e,t,i)=>null==t||null!=i&&t===i-1?""+e:e+","+t,this.handleChange=(e,t)=>{let i=new Set;e.forEach(function(e){let t=e.offset,s=e.count;for(var n=0;n<s;n++)i.add(t+n)});let s=Array.from(i);s.sort(function(e,t){return e-t});let n=new Map;this.keyMap.forEach((e,i)=>{let o=i.split(","),l=parseInt(o[0],10),r=o[1];if(t&&s.some(e=>e===l))return;let a=0;if(l>=s[0]){let e=l;a=s.findIndex(i=>(!t&&e>=i&&(e+=1),i>e)),-1===a&&(a=s.length)}let h=t?l-a:l+a,d=this.pairIndexLevel(h,r);n.set(d,e)}),this.keyMap=n}}a.Object.createSubclass(A,a.DataGridDataSource,"DataGridProviderDataGridDataSource"),A.prototype.fetchHeaders=function(e,t,i){if(null!=t){var s=e.axis,n={headerRange:e,callbacks:t,callbackObjects:i};this.pendingHeaderCallback[s]=n}},A.prototype.fetchCells=function(e,t,i){let s,n,o,l;for(let t=0;t<e.length;t+=1){let i=e[t];"row"===i.axis?(s=i.start,n=i.count):"column"===i.axis&&(o=i.start,l=i.count)}let r,a=this.pendingHeaderCallback.row,h=this.pendingHeaderCallback.column;this.pendingHeaderCallback={},r=a&&h?["all"]:a?["databody","rowHeader","rowEndHeader","rowHeaderLabel","rowEndHeaderLabel"]:h?["databody","columnHeader","columnEndHeader","columnHeaderLabel","columnEndHeaderLabel"]:["databody"];let d={rowOffset:s,columnOffset:o,rowCount:n,columnCount:l,fetchRegions:new Set(r)},c=(s,n)=>{let o,l,r;null!=n?(s.results=Object.assign({},s.results,n.results),null!=n.next&&(o=n.next)):null!=s.next&&(o=s.next),this.totalRowCount=s.totalRowCount,this.totalColumnCount=s.totalColumnCount;let d=s.results;if(h&&(!o||null!=d.columnHeader&&null!=d.columnEndHeader&&null!=d.columnHeaderLabel&&null!=d.columnEndHeaderLabel)&&(l=h.callbacks,null!=l&&null!=l.success)){let e,t;r=h.callbackObjects,null!=d.columnHeader&&(e=new D(s,"column",this.columnKeyMap)),null!=d.columnEndHeader&&(t=new D(s,"columnEnd",this.columnKeyMap)),l.success.call(r.success,e,h.headerRange,t)}if(a&&(!o||null!=d.rowHeader&&null!=d.rowEndHeader&&null!=d.rowHeaderLabel&&null!=d.rowEndHeaderLabel)&&(l=a.callbacks,null!=l&&null!=l.success)){let e,t;r=a.callbackObjects,null!=d.rowHeader&&(e=new D(s,"row",this.rowKeyMap)),null!=d.rowEndHeader&&(t=new D(s,"rowEnd",this.rowKeyMap)),l.success.call(r.success,e,a.headerRange,t)}if(null!=t&&null!=t.success&&!o){let n=new L(s,this.rowKeyMap,this.columnKeyMap);t.success.call(i.success,n,e)}o&&o.then(c.bind(this,s))};this.datagridprovider.fetchByOffset(d).then(c)},A.prototype.getCapability=function(e){return"sort"===e?"full":"sort"===e||"move"===e?"none":null},A.prototype.getCount=function(e){return"row"===e?this.totalRowCount:"column"===e?this.totalColumnCount:-1},A.prototype.getCountPrecision=function(){return"exact"},A.prototype.indexes=function(){return{row:-1,column:-1}},A.prototype.keys=function(){return{row:null,column:null}},A.prototype.move=function(){},A.prototype.moveOK=function(){return"invalid"},A.prototype.sort=function(){},A.prototype._registerEventListeners=function(){this._addListener=this._handleDataGridProviderAddEvent.bind(this),this._removeListener=this._handleDataGridProviderRemoveEvent.bind(this),this._updateListener=this._handleDataGridProviderUpdateEvent.bind(this),this._refreshListener=this._handleDataGridProviderRefreshEvent.bind(this),this.datagridprovider.addEventListener("add",this._addListener),this.datagridprovider.addEventListener("remove",this._removeListener),this.datagridprovider.addEventListener("update",this._updateListener),this.datagridprovider.addEventListener("refresh",this._refreshListener)},A.prototype._handleDataGridProviderAddEvent=function(e){var t={source:this,operation:"insert",detail:e.detail};("row"===e.detail.axis?this.rowKeyMap:this.columnKeyMap).handleChange(e.detail.ranges,!1),this.handleEvent("change",t)},A.prototype._handleDataGridProviderRemoveEvent=function(e){var t={source:this,operation:"delete",detail:e.detail};("row"===e.detail.axis?this.rowKeyMap:this.columnKeyMap).handleChange(e.detail.ranges,!0),this.handleEvent("change",t)},A.prototype._handleDataGridProviderUpdateEvent=function(e){var t={source:this,operation:"update",detail:e.detail};this.handleEvent("change",t)},A.prototype._handleDataGridProviderRefreshEvent=function(){this.rowKeyMap=new T,this.columnKeyMap=new T;var e={source:this,operation:"refresh"};this.handleEvent("change",e)},L.prototype.getData=function(e){return this._findItemByIndex(e.row,e.column).data},L.prototype.getMetadata=function(e){let t=this._findItemByIndex(e.row,e.column);return{metadata:t.metadata,keys:{row:this.rowKeyMap.get(t.rowIndex),column:this.columnKeyMap.get(t.columnIndex)}}},L.prototype.getCount=function(e){if(null!=this.databodyResults){if("row"===e)return this.rowCount;if("column"===e)return this.columnCount}return 0},L.prototype.getExtent=function(e){let t=!1,i=!1,s=!1,n=!1,o=this._findItemByIndex(e.row,e.column),l=o.rowIndex,r=o.rowExtent,a=l+r-1,h=o.columnIndex,d=o.columnExtent,c=h+d-1;return l<this.rowStart&&(r-=this.rowStart-l,t=!0),a>this.rowEnd&&(r-=a-this.rowEnd,i=!0),h<this.columnStart&&(d-=this.columnStart-h,s=!0),c>this.columnEnd&&(d-=c-this.columnEnd,n=!0),{row:{extent:r,more:{before:t,after:i}},column:{extent:d,more:{before:s,after:n}}}},L.prototype._findItemByIndex=function(e,t){let i=i=>{let s=i.rowIndex,n=i.rowExtent,o=i.columnIndex,l=i.columnExtent;return e>=s&&e<s+n&&t>=o&&t<o+l};return null!=this.lastItem&&i(this.lastItem)||(this.lastItem=this.databodyResults.find(i)),this.lastItem},D.prototype.getData=function(e,t){return this._findItemByIndexLevel(e,t).data},D.prototype.getMetadata=function(e,t){let i=this._findItemByIndexLevel(e,t),s=i.metadata.sortDirection;return null!=s&&(s="unsorted"===i.metadata.sortDirection?null:s),{metadata:i.metadata,key:this.keyMap.get(i.index,i.level,this.getLevelCount(),i.depth),sortDirection:s}},D.prototype.getLevelCount=function(){if(null==this.levelCount){let e=0;null!=this.axisResults&&this.axisResults.forEach(t=>{let i=t.level+t.depth-1;i>e&&(e=i)}),this.levelCount=e+1}return this.levelCount},D.prototype.getExtent=function(e,t){let i=this._findItemByIndexLevel(e,t),s=i.extent,n=i.index,o=i.index+s-1,l=!1,r=!1;return n<this.start&&(s-=this.start-n,l=!0),o>this.end&&(s-=o-this.end,r=!0),{extent:s,more:{before:l,after:r}}},D.prototype.getLabel=function(e){return null!=this.axisLabels?this.axisLabels[e].data:null},D.prototype.getDepth=function(e,t){return this._findItemByIndexLevel(e,t).depth},D.prototype.getCount=function(){return null!=this.axisResults?this.count:0},D.prototype._findItemByIndexLevel=function(e,t){let i=i=>{let s=i.index,n=i.extent,o=i.level,l=i.depth;return e>=s&&e<s+n&&t>=o&&t<o+l};return null!=this.lastItem&&i(this.lastItem)||(this.lastItem=this.axisResults.find(i)),this.lastItem},a.__registerWidget("oj.ojDataGrid",g.oj.baseComponent,{widgetEventPrefix:"oj",options:{bandingInterval:{row:0,column:0},data:null,gridlines:{horizontal:"visible",vertical:"visible"},scrollToKey:"auto",scrollPosition:{x:0,y:0},selectionMode:{cell:"none",row:"none"},dnd:{reorder:{row:"disable"}},dataTransferOptions:{cut:"disable",copy:"disable",paste:"disable",fill:"disable"},scrollPolicy:"auto",scrollPolicyOptions:{maxRowCount:500,maxColumnCount:500},selection:[],currentCell:null,editMode:"none",header:{row:{className:null,label:{renderer:null,className:null,style:null},renderer:null,resizable:{width:"disable",height:"disable"},sortable:"auto",style:null},column:{className:null,label:{renderer:null,className:null,style:null},renderer:null,resizable:{width:"disable",height:"disable"},sortable:"auto",style:null},columnEnd:{className:null,label:{renderer:null,className:null,style:null},renderer:null,resizable:{width:"disable",height:"disable"},style:null},rowEnd:{className:null,label:{renderer:null,className:null,style:null},renderer:null,resizable:{width:"disable",height:"disable"},style:null}},cell:{className:null,renderer:null,style:null},resize:null,sort:null,sortRequest:null,collapseRequest:null,expandRequest:null,ready:null,scroll:null,beforeCurrentCell:null,beforeEdit:null,beforeEditEnd:null,cutRequest:null,copyRequest:null,pasteRequest:null,fillRequest:null},_ComponentCreate:function(){this._super(),this.root=this.element[0],this.rootId=this.root.getAttribute("id"),this.grid=new M(this.root),this.grid.setVisibility(M.VISIBILITY_STATE_RENDER),g(this.root).addClass("oj-datagrid oj-component"),g(this.root).attr(h._OJ_CONTAINER_ATTR,this.widgetName),c.disableDefaultBrowserStyling(this.root),this.redrawSet={data:"all",header:["className","renderer","style","template"]}},_AfterCreate:function(){var e=this;this._unregisterResizeListener(this.root),this._removeAllChildren(),this._super(),this.resources=new v(this._GetReadingDirection(),this._getTranslation.bind(e),{showIndicatorDelay:C.getCachedCSSVarValues(["--oj-private-core-global-loading-indicator-delay-duration"])[0]},this.widgetName),this._setDataSource(),this._setSelection(),null!=this.datasource&&(this.grid.SetDataSource(this.datasource),this._addContextMenu(),this._isCreate=!0,this.grid._addDataSourceEventListeners()),this._checkSelectionMode(this.options),this.grid.SetOptions(this.options,this._WrapCustomElementRenderer.bind(e)),this.grid.SetResources(this.resources),this.grid.SetCreateContextCallback(this._modifyContext.bind(e)),this.grid.SetFixContextCallback(this._FixRendererContext.bind(e)),this.grid.SetRemoveCallback(this._remove.bind(e)),this.grid.SetUniqueIdCallback(this._uniqueId.bind(e)),this.grid.SetCompareValuesCallback(this._compareValues.bind(e)),this.grid.SetNotReadyCallback(this._NotReady.bind(e)),this.grid.SetMakeReadyCallback(this._MakeReady.bind(e)),this.grid.SetOptionCallback(this.option.bind(e)),this.grid.SetSubtreeAttachedCallback(h.subtreeAttached),this.grid.SetContextCallback(d.getContext),this.grid.SetCustomElementCallback(this._IsCustomElement.bind(e)),this.grid.SetUpdateScrollPostionOnRefreshCallback(this._updateScrollPositionOnRefresh.bind(e)),this.grid.SetCustomElement(this._GetCustomElement()),this._focusable({applyHighlight:!0,setupHandlers:function(t,i){e.grid.SetFocusableCallback.call(e.grid,function(e){return t(g(e))},function(e){return i(g(e))})}}),this._registerEventListeners(),this._possiblyRenderOrRefresh()},_SetupResources:function(){this._super(),this.setupResources()},setupResources:function(){null!=this.datasource&&(this._isCreate||this.grid._addDataSourceEventListeners(),this.grid._addDomEventListeners(),this._registerResizeListener(this.root)),this._isCreate=!1},_ReleaseResources:function(){this._super(),this.releaseResources()},releaseResources:function(){this.grid._removeDataSourceEventListeners(),this.grid._removeDomEventListeners(),this._unregisterResizeListener(this.root)},_registerEventListeners:function(){var e=this;this.grid.addListener("resize",function(t){e._trigger("resize",t.event,t.ui)}),this.grid.addListener("select",function(t){e.option("selection",t.ui.selection,{_context:{originalEvent:t.event,internalSet:!0},changed:!0})}),this.grid.addListener("currentCell",function(t){e.option("currentCell",t.ui,{_context:{originalEvent:t.event,internalSet:!0},changed:!0})}),this.grid.addListener("beforeCurrentCell",function(t){return e._trigger("beforeCurrentCell",t.event,t.ui)}),this.grid.addListener("sort",function(t){var i=e._trigger2("sort",t.event,t.ui);e.grid.SetSortOriginalEvent(i.event)}),this.grid.addListener("sortRequest",function(t){return e._trigger("sortRequest",t.event,t.ui)}),this.grid.addListener("expandRequest",function(t){return e._trigger("expandRequest",t.event,t)}),this.grid.addListener("collapseRequest",function(t){return e._trigger("collapseRequest",t.event,t)}),this.grid.addListener("keydown",function(t){return e._trigger("keydown",t.event,t.ui)}),this.grid.addListener("ready",function(){e._trigger("ready",null,{})}),this.grid.addListener("scroll",function(t){e._trigger("scroll",t.event,t.ui)}),this.grid.addListener("beforeEdit",function(t){return e._trigger("beforeEdit",t.event,t.ui)}),this.grid.addListener("beforeEditEnd",function(t){return e._trigger("beforeEditEnd",t.event,t.ui)}),this.grid.addListener("cutRequest",function(t){return e._trigger("cutRequest",t.event,t.ui)}),this.grid.addListener("copyRequest",function(t){return e._trigger("copyRequest",t.event,t.ui)}),this.grid.addListener("pasteRequest",function(t){return e._trigger("pasteRequest",t.event,t.ui)}),this.grid.addListener("fillRequest",function(t){return e._trigger("fillRequest",t.event,t.ui)})},refresh:function(){this._super();let e=!this._IsCustomElement()||null!=this._defaultContextMenu;e?this._ReleaseResources():this.releaseResources(),this._removeAllChildren(),this._defaultContextMenu&&(this.options.contextMenu=null,this._defaultContextMenu=null),this._setDataSource(),null!=this.datasource&&(a.FlattenedTreeDataGridDataSource&&this.datasource instanceof a.FlattenedTreeDataGridDataSource&&(this.datasource.Destroy(),this.datasource.Init()),this.grid.SetDataSource(this.datasource),this._addContextMenu()),this.grid.SetOptions(this.options,this._WrapCustomElementRenderer.bind(this)),this.resources.setRTLMode(this._GetReadingDirection()),this.grid.SetResources(this.resources),e?this._SetupResources():this.setupResources(),this.grid.getVisibility()!==M.VISIBILITY_STATE_RENDER&&this.grid.setVisibility(M.VISIBILITY_STATE_REFRESH),this._possiblyRenderOrRefresh()},_updateScrollPositionOnRefresh:function(){var e,t=this.options.selection;if(null!=t&&0!==t.length){e={};var i=t[t.length-1];i&&(i.startKey?(e.rowKey=i.startKey.row,e.columnKey=i.startKey.column):i.startIndex&&(e.rowIndex=0,e.columnIndex=0))}else e={x:0,y:0};this.option("scrollPosition",e,{_context:{internalSet:!0},changed:!1})},_destroy:function(){g(this.root).removeAttr(h._OJ_CONTAINER_ATTR),null!=this.datasource&&this.datasource.Destroy&&this.datasource.Destroy(),this.grid.destroy(),this._unregisterResizeListener(this.root),g(this.root).empty(),this._MakeReady()},_setOptions:function(e,t){if(this.datasource){var i=this._handleOptionUpdate(e,t);this._super(e,t),"refresh"===i?this.refresh():"pass"===i&&this.grid.UpdateOptions(e,t)}else this._super(e,t),null!=e.data&&this.refresh()},_checkSelectionMode:function(e){var t=e.selectionMode;if(t&&t.row&&t.cell&&"none"!==t.row&&"none"!==t.cell)throw new Error("JET DataGrid does not support selectionMode on cell and row simultaneously.")},_NotifyShown:function(){this._super(),this._possiblyRenderOrRefresh()},_NotifyHidden:function(){this._super(),this.grid.getVisibility()===M.VISIBILITY_STATE_VISIBLE&&this.grid.setVisibility(M.VISIBILITY_STATE_HIDDEN)},_NotifyAttached:function(){this._super(),this._possiblyRenderOrRefresh()&&this.grid._initiateScrollOnAttached()},_NotifyDetached:function(){this._super(),this.grid.getVisibility()===M.VISIBILITY_STATE_VISIBLE&&this.grid.setVisibility(M.VISIBILITY_STATE_HIDDEN)},_handleOptionUpdate:function(e,t){for(var i="ignore",s=Object.keys(e),n=0;n<s.length;n++){switch(s[n]){case"bandingInterval":case"currentCell":case"editMode":case"gridlines":case"scrollPosition":case"selection":i="pass";break;case"beforeCurrentCell":case"beforeEdit":case"beforeEditEnd":case"cutRequest":case"copyRequest":case"pasteRequest":case"fillRequest":case"create":case"disabled":case"dnd":case"optionChange":case"ready":case"resize":case"rootAttributes":case"scroll":case"sort":break;case"selectionMode":this._checkSelectionMode(e),i="pass";break;case"cell":case"header":var o=t.subkey;if(null!=o){var l=o.split(".");if("resizable"===l[1]||"sortable"===l[1]){i="pass";break}}return"refresh";case"data":return this._updateScrollPositionOnRefresh(),"refresh";case"contextMenu":case"scrollPolicy":default:return"refresh"}}return i},_isResizeEnabled:function(e,t){return!(!this.options.header[e]||!this.options.header[e].resizable)&&"disable"!==this.options.header[e].resizable[t]},_isSortEnabled:function(e){return!!this.options.header[e]&&"disable"!==this.options.header[e].sortable},_removeAllChildren:function(){for(var e=this.root.children,t=e.length-1;t>=0;t--)"TEMPLATE"!==e[t].tagName&&"OJ-SURROGATE"!==e[t].tagName&&("OJ-MENU"!==e[t].tagName||"OJ-MENU"===e[t].tagName&&"contextMenu"!==e[t].slot)&&this.root.removeChild(e[t])},_GetDefaultContextMenu:function(){return this._defaultContextMenu},_addContextMenu:function(){var e=this,t=e._IsCustomElement(),i=this._GetContextMenu()?this._GetContextMenu():this._menuContainer;if(i){null==this._menuItemsSetByGrid&&(this._menuItemsSetByGrid=[]),this._menuContainer=i;var s=(i=g(i)).find("[data-oj-command]"),n=[];s.each(function(){var i=e._shouldUpdateListItem(this,t);if(i.shouldUpdate){var s=g(this).attr("data-oj-command").split("-");if(t){var o=e._getContextMenuText(s[s.length-1],t);i.itemToUpdate?(i.itemToUpdate.textContent=o,n.push(i.itemToUpdate)):(i.toFirstChild,this.textContent=o,n.push(this))}else{var l=g(e._buildContextMenuItem(s[s.length-1],t));g(this).replaceWith(l),n.push(l.children("a").get(0))}}}),this._menuItemsSetByGrid=n,i.data("oj-ojMenu")&&(t?i[0].refresh():i.ojMenu("refresh"))}else null!=this.datasource&&(i=this._createDefaultContextMenu())&&(this._defaultContextMenu=i[0]);i&&this._addMenuSelectListener(i)},_shouldUpdateListItem:function(e,t){var i,s=!1;if(t){if(null!=e.firstElementChild&&"opt"===e.firstElementChild.getAttribute("ojmenu")?(i=_.CustomElementUtils.getSlotMap(e.firstElementChild),s=!0):i=_.CustomElementUtils.getSlotMap(e),!i[""]||0===i[""].length)return{shouldUpdate:!0,toFirstChild:s};if(i[""]){var n=this._menuItemsSetByGrid.indexOf(e);if(-1!==n)return{shouldUpdate:!0,itemToUpdate:this._menuItemsSetByGrid[n]}}return{shouldUpdate:!1}}var o=g(e).children("a");return{shouldUpdate:0===o.length||-1!==this._menuItemsSetByGrid.indexOf(o.get(0))}},_addMenuSelectListener:function(e){var t=this._handleContextMenuSelect.bind(this);this._IsCustomElement()?e[0].addEventListener("ojAction",t):e.on("ojselect",t)},_createDefaultContextMenu:function(){let e,t,i,s,n,o,l=null,r=null,a=null;const h=this._IsCustomElement();o=h?this._createCustomElementContextMenu():this._createWidgetContextMenu(),(this._isResizeEnabled("column","height")||this._isResizeEnabled("row","height"))&&(l=this._buildContextMenuItem("resizeHeight",h)),(this._isResizeEnabled("column","width")||this._isResizeEnabled("row","width"))&&(r=this._buildContextMenuItem("resizeWidth",h)),(this._isResizeEnabled("column","width")||this._isResizeEnabled("column","height")||this._isResizeEnabled("row","width")||this._isResizeEnabled("row","height"))&&(a=this._buildContextMenuItem("resizeFitToContent",h));const d=this.datasource.getCapability("sort");if(this._isSortEnabled("column")&&("column"!==d&&"full"!==d||(e=this._buildContextMenuItem("sortCol",h))),this._isSortEnabled("row")&&("row"!==d&&"full"!==d||(t=this._buildContextMenuItem("sortRow",h))),"enable"===this.options.dnd.reorder.row)switch(this.datasource.getCapability("move")){case"none":break;default:h?(s=new DocumentFragment,s.appendChild(this._buildContextMenuOjOption("cut")),s.appendChild(this._buildContextMenuOjOption("paste")),s.appendChild(this._buildContextMenuDivider())):(s=new DocumentFragment,s.appendChild(this._buildContextMenuListItem("cut")),s.appendChild(this._buildContextMenuListItem("paste")))}let c=[];if(c=Object.keys(this.options.dataTransferOptions).filter(e=>"enable"===this.options.dataTransferOptions[e]),c.length){let e=this.options.dataTransferOptions;n=new DocumentFragment,h?("enable"===e.cut&&n.appendChild(this._buildContextMenuOjOption("cutCells")),"enable"===e.copy&&n.appendChild(this._buildContextMenuOjOption("copyCells")),"enable"===e.paste&&n.appendChild(this._buildContextMenuOjOption("pasteCells")),"enable"===e.fill&&n.appendChild(this._buildContextMenuOjOption("autoFill")),n.appendChild(this._buildContextMenuDivider())):("enable"===e.cut&&n.appendChild(this._buildContextMenuListItem("cutCells")),"enable"===e.copy&&n.appendChild(this._buildContextMenuListItem("copyCells")),"enable"===e.paste&&n.appendChild(this._buildContextMenuListItem("pasteCells")),"enable"===e.fill&&n.appendChild(this._buildContextMenuListItem("autoFill")))}return this._isMultipleSelection()&&m.isTouchSupported()&&(this._discontiguousSelection=!1,h?(i=document.createElement("oj-menu-select-many"),i.setAttribute("data-oj-binding-provider","none"),i.appendChild(this._buildContextMenuOjOption("discontiguousSelection"))):i=this._buildContextMenuListItem("discontiguousSelection")),l||r||a||e||t||s||i||n?(n&&o.appendChild(n),l&&o.appendChild(l),r&&o.appendChild(r),a&&o.appendChild(a),(e||t)&&((l||r||a)&&o.appendChild(this._buildContextMenuDivider()),e&&o.appendChild(e),t&&o.appendChild(t)),s&&((l||r||a||e||t)&&o.appendChild(this._buildContextMenuDivider()),o.appendChild(s)),i&&((l||r||a||e||t||s)&&o.appendChild(this._buildContextMenuDivider()),o.appendChild(i)),h||g(o).ojMenu(),this.option("contextMenu",o,{_context:{internalSet:!0}}),g(o)):null},_createCustomElementContextMenu:function(){const e=document.createElement("oj-menu");return e.setAttribute("data-oj-binding-provider","none"),e.setAttribute("id",this.rootId+"contextmenu"),e.style.display="none",this.root.appendChild(e),e},_createWidgetContextMenu:function(){const e=document.createElement("ul");return e.setAttribute("id",this.rootId+"contextmenu"),e.style.display="none",this.root.appendChild(e),e},_buildContextMenuItem:function(e,t){if(t){if("resize"===e){const e=new DocumentFragment;return e.appendChild(this._buildContextMenuOjOption("resizeRow")),e.appendChild(this._buildContextMenuOjOption("resizeColumn")),e}if("sortCol"===e){const e=new DocumentFragment;return e.appendChild(this._buildContextMenuOjOption("sortColAsc")),e.appendChild(this._buildContextMenuOjOption("sortColDsc")),e}if("sortRow"===e){const e=new DocumentFragment;return e.appendChild(this._buildContextMenuOjOption("sortRowAsc")),e.appendChild(this._buildContextMenuOjOption("sortRowDsc")),e}if(-1!==Object.keys(this.resources.commands).indexOf(e))return this._buildContextMenuOjOption(e)}else{if("resize"===e){const e=this._buildContextMenuListItem("resize"),t=document.createElement("ul");return t.appendChild(this._buildContextMenuListItem("resizeWidth")),t.appendChild(this._buildContextMenuListItem("resizeHeight")),e.appendChild(t),e}if("sortCol"===e){const e=this._buildContextMenuListItem("sortCol"),t=document.createElement("ul");return t.appendChild(this._buildContextMenuListItem("sortColAsc")),t.appendChild(this._buildContextMenuListItem("sortColDsc")),e.appendChild(t),e}if("sortRow"===e){const e=this._buildContextMenuListItem("sortRow"),t=document.createElement("ul");return t.appendChild(this._buildContextMenuListItem("sortRowAsc")),t.appendChild(this._buildContextMenuListItem("sortRowDsc")),e.appendChild(t),e}if(-1!==Object.keys(this.resources.commands).indexOf(e))return this._buildContextMenuListItem(e)}},_buildContextMenuOjOption:function(e){const t=document.createElement("oj-option");let i;if(t.setAttribute("data-oj-command",this._getMappedCommand(e)),-1!==["cutCells","copyCells","pasteCells"].indexOf(e)){i=document.createElement("span");let t=e.indexOf("Cells"),s=e.slice(0,t);i=document.createElement("span"),i.setAttribute("slot","startIcon"),i.setAttribute("class","oj-ux-ico-"+s)}return t.textContent=this._getContextMenuText(e),i&&t.appendChild(i),t},_buildContextMenuDivider:function(){const e=document.createElement("oj-option");return e.textContent="---",e},_buildContextMenuListItem:function(e){const t=document.createElement("li");return t.setAttribute("data-oj-command",this._getMappedCommand(e)),t.appendChild(this._buildContextMenuLabel(e)),t},_getContextMenuText:function(e){var t=this._IsCustomElement();t&&"discontiguousSelection"===e&&(e="SelectMultiple"),"resizeWidth"===e?e="resizeColumn":"resizeHeight"===e&&(e="resizeRow");let i="label"+e.charAt(0).toUpperCase()+e.slice(1);return t||"discontiguousSelection"!==e||(i="labelEnableNonContiguous"),this._getTranslation(i)},_buildContextMenuLabel:function(e){const t=this._getContextMenuText(e),i=document.createElement("a");return i.setAttribute("href","#"),i.textContent=t,i},_getDataGridContextMenu:function(){return this._GetContextMenu()||this._GetDefaultContextMenu()},_getTranslation:function(e,t){return this.getTranslatedString(e,t)},_handleResizeDialog:function(e){var t,i;this._IsCustomElement()?(t=document.getElementById(this.rootId+"inputNumber").value,i=document.getElementById(this.rootId+"modal").getAttribute("dimension"),document.getElementById(this.rootId+"modal").close()):(t=g("#"+this.rootId+"inputNumber").ojInputNumber("option","value"),g("#"+this.rootId+"modal").ojDialog("close")),this.grid.handleContextMenuReturn(this.contextMenuEvent,this._getMappedCommand(i),t),this.contextMenuEvent.target.focus()},_buildResizeDialog:function(e,t,i){var s,n,o,l,r,a,h,c,m,u=this._IsCustomElement(),_=this;if(u)if(s=document.getElementById(this.rootId+"inputNumber"),null===(o=document.getElementById(this.rootId+"modal"))||null===s){(o=document.createElement("oj-dialog")).id=this.rootId+"modal",o.setAttribute("data-oj-binding-provider","none"),o.setAttribute("initial-focus","firstFocusable"),o.className=this._getMappedStyle("resizeDialog"),(l=document.createElement("div")).setAttribute("slot","header"),(r=document.createElement("div")).setAttribute("slot","body"),(a=document.createElement("div")).setAttribute("slot","footer"),(m=document.createElement("h5")).textContent=e,l.appendChild(m),l.className=this._getMappedStyle("dialogTitle"),o.appendChild(l),o.appendChild(r),o.appendChild(a),(s=document.createElement("oj-input-number")).id=this.rootId+"inputNumber",s.setAttribute("label-edge","inside"),s.setAttribute("user-assistance-density","efficient"),"width"===i?(s.setAttribute("label-hint",this._getTranslation("columnWidth")),o.setAttribute("dimension","resizeWidth")):(s.setAttribute("label-hint",this._getTranslation("rowHeight")),o.setAttribute("dimension","resizeHeight")),o.setAttribute("title",e),(h=document.createElement("oj-button")).id=this.rootId+"modalcancel",h.style.margin="5px",(c=document.createElement("oj-button")).id=this.rootId+"modalsubmit",c.style.margin="5px",c.setAttribute("chroming","callToAction"),r.appendChild(s),a.appendChild(h),a.appendChild(c),this.root.appendChild(o),h.textContent=this._getTranslation("labelResizeDialogCancel"),c.textContent=this._getTranslation("labelResizeDialogApply"),n=function(){c.disabled=!1,s.value=0,o.close()},h.addEventListener("click",n),c.addEventListener("click",this._handleResizeDialog.bind(this)),s.setAttribute("max",2e3),s.setAttribute("min",20),s.setAttribute("step",1),s.setAttribute("value",t),s.setAttribute("display-options",'{"converterHint": "none", "validatorHint": "none"}'),s.addEventListener("validChanged",function(e){"valid"===e.detail.value?c.disabled=!1:c.disabled=!0});o.setAttribute("position",JSON.stringify({my:{horizontal:"center",vertical:"center"},at:{horizontal:"center",vertical:"center"},collision:"none"})),d.getContext(o).getBusyContext().whenReady().then(function(){o.open(_.root)})}else s.setAttribute("max",2e3),s.setAttribute("min",20),s.setAttribute("step",1),s.setAttribute("value",t),s.setAttribute("label-edge","inside"),s.setAttribute("user-assistance-density","efficient"),s.setAttribute("display-options",'{"converterHint": "none", "validatorHint": "none"}'),"width"===i?(s.setAttribute("label-hint",this._getTranslation("columnWidth")),o.setAttribute("dimension","resizeWidth")):(s.setAttribute("label-hint",this._getTranslation("rowHeight")),o.setAttribute("dimension","resizeHeight")),o.setAttribute("dialog-title",e),o.open(_.root);else o=g("#"+this.rootId+"modal"),s=g("#"+this.rootId+"inputNumber"),0===o.length||0===s.length?((o=document.createElement("div")).id=this.rootId+"modal",l=document.createElement("div"),r=document.createElement("div"),a=document.createElement("div"),l.className=this._getMappedStyle("dialogTitle"),o.appendChild(l),o.appendChild(r),o.appendChild(a),(m=document.createElement("h5")).textContent=e,l.appendChild(m),(s=document.createElement("input")).id=this.rootId+"inputNumber",s.setAttribute("label-edge","inside"),(h=document.createElement("oj-button")).id=this.rootId+"modalcancel",h.style.margin="5px",(c=document.createElement("oj-button")).id=this.rootId+"modalsubmit",c.style.margin="5px",r.appendChild(s),a.appendChild(h),a.appendChild(c),this.root.appendChild(o),g(h).ojButton({component:"ojButton",label:this._getTranslation("labelResizeDialogCancel")}),g(c).ojButton({component:"ojButton",label:this._getTranslation("labelResizeDialogApply")}),n=function(){g(c).ojButton({disabled:!1}),g(s).ojInputNumber({value:0}),g(o).ojDialog("close")},h.addEventListener("click",n),c.addEventListener("click",this._handleResizeDialog.bind(this)),g(s).ojInputNumber({component:"ojInputNumber",max:1e3,min:20,step:1,value:t}),"width"===i?(s.setAttribute("label-hint",this._getTranslation("columnWidth")),o.setAttribute("dialog-title","resizeWidth")):(s.setAttribute("label-hint",this._getTranslation("rowHeight")),o.setAttribute("dialog-title","resizeHeight")),g(s).on("change",function(){g(c).ojButton({disabled:!g(s).ojInputNumber("validate")})}),g(o).ojDialog({initialFocus:"firstFocusable",position:{my:"center center",at:"center center",collision:"none",of:g(this.root)}}),g(o).ojDialog("open")):(s.ojInputNumber("option","value",t),s.setAttribute("label-edge","inside"),o.find("."+this._getMappedStyle("dialogTitle"))[0].firstChild.textContent=e,o.ojDialog("open"))},_handleContextMenuSelect:function(e,t){var i;if(i=t?t.item:g(e.target),this.menuItemFunction=i.attr("data-oj-command"),this.menuItemFunction===this._getMappedCommand("sortColAsc")||this.menuItemFunction===this._getMappedCommand("sortColDsc")||this.menuItemFunction===this._getMappedCommand("sortRowAsc")||this.menuItemFunction===this._getMappedCommand("sortRowDsc")||this.menuItemFunction===this._getMappedCommand("cut")||this.menuItemFunction===this._getMappedCommand("paste")||this.menuItemFunction===this._getMappedCommand("cutCells")||this.menuItemFunction===this._getMappedCommand("pasteCells")||this.menuItemFunction===this._getMappedCommand("copyCells")||this.menuItemFunction===this._getMappedCommand("autoFill"))this.grid.handleContextMenuReturn(this.contextMenuEvent,this.menuItemFunction,null);else if(this.menuItemFunction===this._getMappedCommand("resizeWidth")||this.menuItemFunction===this._getMappedCommand("resizeHeight")){var s=g(this.contextMenuEvent.target).closest("."+this._getMappedStyle("cell"));if(0===s.length&&(s=g(this.contextMenuEvent.target).closest("."+this._getMappedStyle("headercell"))),0===s.length&&(s=g(this.contextMenuEvent.target).closest("."+this._getMappedStyle("endheadercell"))),0===s.length&&(s=g(this.contextMenuEvent.target).closest("."+this._getMappedStyle("headerlabel"))),s.length>0){var n=this.menuItemFunction===this._getMappedCommand("resizeWidth")?s.outerWidth():s.outerHeight(),o=this.menuItemFunction===this._getMappedCommand("resizeWidth")?"width":"height",l="width"===o?this._getTranslation("resizeColumnDialog"):this._getTranslation("resizeRowDialog");this._buildResizeDialog(l,n,o)}}else if(this.menuItemFunction===this._getMappedCommand("resizeFitToContent"))this.grid.handleContextMenuReturn(this.contextMenuEvent,this.menuItemFunction,null);else if(this.menuItemFunction===this._getMappedCommand("discontiguousSelection")){let e;this._discontiguousSelection=!this._discontiguousSelection,this.grid.handleContextMenuReturn(this.contextMenuEvent,this.menuItemFunction,this._discontiguousSelection);e=this._IsCustomElement()?"labelSelectMultiple":this._discontiguousSelection?"labelDisableNonContiguous":"labelEnableNonContiguous",i.children().first().text(this._getTranslation(e))}},_NotifyContextMenuGesture:function(e,t,i){this.grid.handleContextMenuGesture(t,i,this._contextMenuGestureCallback.bind(this))},_contextMenuGestureCallback:function(e,t,i){if(null!=e){this.contextMenuEvent=t.originalEvent;var s=e.launcher,n=e.capabilities;this._manageContextMenu(n);var o="keyboard"===i?{position:{of:s},launcher:g(s)}:{launcher:g(s)};this._OpenContextMenu(t,i,o)}},_addContextMenuCapability:function(e){var t=g(this._getDataGridContextMenu());this._IsCustomElement()?t.find("[data-oj-command="+e+"]").attr("disabled")||t.find("[data-oj-command="+e+"]").attr("disabled",!0):t.find("[data-oj-command="+e+"]").hasClass("oj-disabled")||t.find("[data-oj-command="+e+"]").addClass("oj-disabled")},_removeContextMenuCapability:function(e){g(this._getDataGridContextMenu()).find("[data-oj-command="+e+"]").removeClass("oj-disabled").attr("disabled",!1)},_manageContextMenu:function(e){for(var t=Object.keys(e),i=0;i<t.length;i++){var s=t[i],n=this.resources.getMappedCommand(s);"disable"===e[s]?this._addContextMenuCapability(n):this._removeContextMenuCapability(n)}},_findCellIndex:function(e){return e[this._getMappedAttribute("context")].indexes},_setDataSource:function(){null!=this.options.data?this.options.data.fetchByOffset&&!this.options.data.fetchFirst?this.datasource=new A(this.options.data):a.DataProviderFeatureChecker.isDataProvider(this.options.data)?(this.datasource=new E(this.options.data),"randomAccess"!==this.options.data.getCapability("fetchByOffset").implementation&&"scroll"===this.options.scrollPolicy&&(f.error("oj.DataProvider does not support fetchByOffset and scrollPolicy is set to scroll. scrollPolicy will fall back to auto."),this.options.scrollPolicy="auto")):this.datasource=this.options.data:this.datasource=null},_setSelection:function(){var e=this.options.selection;null!=e&&this.grid.SetSelection(e)},_modifyContext:function(e){e.component=h.__GetWidgetConstructor(this.element,"ojDataGrid")},_setAccessibleContext:function(e){this.grid.SetAccessibleContext(e)},_unregisterResizeListener:function(e){e&&this._resizeHandler&&(m.removeResizeListener(e,this._resizeHandler),this._resizeHandler=null)},_registerResizeListener:function(e){e&&(null==this._resizeHandler&&(this._resizeHandler=this._handleResize.bind(this)),m.addResizeListener(e,this._resizeHandler))},_handleResize:function(e,t){e>0&&t>0&&(this._possiblyRenderOrRefresh(),this.grid.HandleResize(e,t))},getNodeBySubId:function(e){var t;if(null==e)return this.element?this.element[0]:null;var i=e.subId;if("oj-datagrid-cell"===i){var s=e.rowIndex,n=e.columnIndex;t=g(this.grid._getCellByIndex({row:s,column:n}))}else if("oj-datagrid-sort-icon"===i||"oj-datagrid-sort-ascending"===i||"oj-datagrid-sort-default"===i||"oj-datagrid-sort-descending"===i||"oj-datagrid-header"===i){var o,l=e.axis,r=e.index,a=null==e.level?0:e.level;if("column"===l?o=this._getHeaderByIndex(r,a,g(document.getElementById(this.rootId+":columnHeader")),this.grid.getStartColumnHeader()):"row"===l?o=this._getHeaderByIndex(r,a,g(document.getElementById(this.rootId+":rowHeader")),this.grid.getStartRowHeader()):"columnEnd"===l?o=this._getHeaderByIndex(r,a,g(document.getElementById(this.rootId+":columnEndHeader")),this.grid.getStartColumnEndHeader()):"rowEnd"===l&&(o=this._getHeaderByIndex(r,a,g(document.getElementById(this.rootId+":rowEndHeader")),this.grid.getStartRowEndHeader())),null==o)return null;if("oj-datagrid-sort-icon"===i)return o.children("."+this._getMappedStyle("sortIcon")).children().get(0);t="oj-datagrid-sort-ascending"===i?o.find("."+this._getMappedStyle("sortascending")):"oj-datagrid-sort-default"===i?o.find("."+this._getMappedStyle("sortdefault")):"oj-datagrid-sort-descending"===i?o.find("."+this._getMappedStyle("sortdescending")):o}else"oj-datagrid-header-label"===i&&(t=g(this.grid._getLabel(e.axis,e.level)));return null!=t&&t.length>0?t[0]:null},getSubIdByNode:function(e){var t,i=g(e).closest("."+this._getMappedStyle("cell"));if(i.length>0){var s=this._findCellIndex(i[0]);return{subId:"oj-datagrid-cell",rowIndex:s.row,columnIndex:s.column}}var n=g(e).closest("."+this._getMappedStyle("headercell"));if(0===n.length&&(n=g(e).closest("."+this._getMappedStyle("endheadercell"))),n.length>0)return t=n[0][this._getMappedAttribute("context")],{subId:g(e).hasClass(this._getMappedStyle("sortascending"))?"oj-datagrid-sort-ascending":g(e).hasClass(this._getMappedStyle("sortdefault"))?"oj-datagrid-sort-default":g(e).hasClass(this._getMappedStyle("sortdescending"))?"oj-datagrid-sort-descending":"oj-datagrid-header",axis:t.axis,index:this._getHeaderIndex(n),level:t.level};var o=g(e).closest("."+this._getMappedStyle("headerlabel"));return o.length>0?{subId:"oj-datagrid-header-label",axis:(t=o[0][this._getMappedAttribute("context")]).axis,level:t.level}:null},getContextByNode:function(e){var t,i,s=g(e).closest("."+this._getMappedStyle("cell"));if(s.length>0)return t=s[0][this._getMappedAttribute("context")],(i=a.CollectionUtils.copyInto({},t,void 0,!0)).subId="oj-datagrid-cell",i;var n=g(e).closest("."+this._getMappedStyle("headercell"));if(0===n.length&&(n=g(e).closest("."+this._getMappedStyle("endheadercell"))),n.length>0)return t=n[0][this._getMappedAttribute("context")],(i=a.CollectionUtils.copyInto({},t,void 0,!0)).subId="oj-datagrid-header",i.index=this._getHeaderIndex(n),i;var o=g(e).closest("."+this._getMappedStyle("headerlabel"));return o.length>0?(t=o[0][this._getMappedAttribute("context")],(i=a.CollectionUtils.copyInto({},t,void 0,!0)).subId="oj-datagrid-header-label",i):null},_getMappedStyle:function(e){return this.resources.getMappedStyle(e)},_getMappedAttribute:function(e){return this.resources.getMappedAttribute(e)},_getMappedCommand:function(e){return this.resources.getMappedCommand(e)},_isDataGridSizingAvailable:function(){return null!=this.root.offsetParent},_possiblyRenderOrRefresh:function(){var e=this.grid.getVisibility(),t=!1;return this._isDataGridSizingAvailable()?(e===M.VISIBILITY_STATE_RENDER?(this.grid.render(this.root),t=!0):e===M.VISIBILITY_STATE_REFRESH&&(this.grid.refresh(this.root),t=!0),this.grid.setVisibility(M.VISIBILITY_STATE_VISIBLE)):e===M.VISIBILITY_STATE_VISIBLE&&this.grid.setVisibility(M.VISIBILITY_STATE_HIDDEN),t},_getHeaderByIndex:function(e,t,i,s){if(t<0)return null;var n=i.children().first().children().last();if(n.hasClass(this._getMappedStyle("headercell")))return i.children().first().children("."+this._getMappedStyle("headercell")).eq(e-s);if(n.hasClass(this._getMappedStyle("endheadercell")))return i.children().first().children("."+this._getMappedStyle("endheadercell")).eq(e-s);var o=this._getGroupingContainer(e,t,0,i.children().first().children());if(null==o)return null;if(t<=parseInt(o.attr(this._getMappedAttribute("level")),10)+parseInt(o.children().eq(0).attr(this._getMappedAttribute("depth")),10)-1)return o.children().eq(0);var l=e-(s=parseInt(o.attr(this._getMappedAttribute("start")),10))+1;return o.children().eq(l)},_getGroupingContainer:function(e,t,i,s){if(null==s.eq(1)||s.eq(1).hasClass(this._getMappedStyle("headercell"))||s.eq(1).hasClass(this._getMappedStyle("endheadercell")))return t===i?s.eq(0).parent():null;var n,o=s.parent().parent();for(n=o.hasClass(this._getMappedStyle("header"))||o.hasClass(this._getMappedStyle("endheader"))?0:1;n<s.length;n++){var l=parseInt(s.eq(n).attr(this._getMappedAttribute("start")),10),r=parseInt(s.eq(n).attr(this._getMappedAttribute("extent")),10),a=parseInt(s.eq(n).children().eq(0).attr(this._getMappedAttribute("depth")),10);if(e>=l&&e<l+r)return t<i+a?s.eq(n):this._getGroupingContainer(e,t,i+a,s.eq(n).children())}return null},_getHeaderIndex:function(e){var t;if(e.parent().hasClass(this._getMappedStyle("groupingcontainer"))){if(t=parseInt(e.parent().attr(this._getMappedAttribute("start")),10),e.get(0)===e.parent().children(":first").get(0))return t;t-=1}else t=e.hasClass(this._getMappedStyle("rowheadercell"))?this.grid.getStartRowHeader():e.hasClass(this._getMappedStyle("colheadercell"))?this.grid.getStartColumnHeader():e.hasClass(this._getMappedStyle("colendheadercell"))?this.grid.getStartColumnEndHeader():this.grid.getStartRowEndHeader();return t+=e.index()},_isMultipleSelection:function(){return null!=this.options.selectionMode&&("multiple"===this.options.selectionMode.row||"multiple"===this.options.selectionMode.cell)},_remove:function(e){g(e).remove()},_uniqueId:function(e,t){t?g(e).removeUniqueId():g(e).uniqueId()},_compareValues:function(e,t){return a.Object.compareValues(e,t)},scrollTo:function(e){this.grid.scroll(e)},whenReady:function(){if(this._ready)return Promise.resolve(!0);if(!this._readyPromise){var e=this;this._readyPromise=new Promise(function(t){e._readyPromiseResolve=t})}return this._readyPromise},_NotReady:function(){if(this._ready=!1,!this._readyResolveFunc){var e=d.getContext(this.element[0]).getBusyContext(),t={description:"The component identified by '"+this.element.attr("id")+"' is being loaded."};this._readyResolveFunc=e.addBusyState(t)}},_MakeReady:function(){this._readyPromiseResolve&&(this._readyPromiseResolve(!0),this._readyPromiseResolve=null),this._ready=!0,this._readyPromise=null,this._readyResolveFunc&&(this._readyResolveFunc(),this._readyResolveFunc=null)},_CompareOptionValues:function(e,t,i){switch(e){case"currentCell":case"selection":return a.Object.compareValues(t,i);default:return this._super(e,t,i)}}}),M.prototype.unhighlightFloodFillRange=function(e){null==e&&(e=this.GetFloodFillRange()[0]),null!=e&&this._applyBorderClassesAroundRange(this.getElementsInRange(e),e,!1,"Floodfill")},M.prototype.highlightFloodFillRange=function(e){this._applyBorderClassesAroundRange(this.getElementsInRange(e),e,!0,"Floodfill")},M.prototype.handleDatabodyFloodFillDrag=function(e){var t=e.target,i=this.findCell(t);if(null!=i){var s=this.getCellIndexes(i);this.extendFloodFillSelection(s,e)}},M.prototype.GetFloodFillRange=function(){return null==this.m_floodFillRange&&(this.m_floodFillRange=[]),this.m_floodFillRange},M.prototype.extendFloodFillSelection=function(e,t){if("header"===this.m_active.type)return;var i;if(null==(i={row:this.m_active.indexes.row,column:this.m_active.indexes.column}))return;let s,n=!1;s||(s=this.m_selection);let o,l=s[0].startIndex,r=s[0].endIndex;e.row>=l.row&&e.row<=r.row&&(n=!0,e.column>r.column?o="right":e.column<l.column&&(o="left"),e.row=r.row);let a=!1;e.column>=l.column&&e.column<=r.column&&(a=!0,e.row>r.row?o="bottom":e.row<l.row&&(o="top"));let h=l.row===r.row,d=l.column===r.column;if(h&&e.row===l.row&&a||d&&e.column===l.column&&n)return this.unhighlightFloodFillRange(),void(this.m_floodFillRange=[]);if((!n&&!a||e.column<=r.column&&!n)&&(e.column=r.column),n||a||(e.row>r.row?o="bottom":e.row<l.row&&(o="top")),o){let s=l,n=e;this._createRangeWithKeys(s,n,this._extendFloodFillSelectionCallback.bind(this,t,i,o))}else this.unhighlightFloodFillRange()},M.prototype._extendFloodFillSelectionCallback=function(e,t,i,s){let n=s;"top"===i?n.endIndex.row-=1:"bottom"===i?n.startIndex.row=this.m_selectionRange[0].endIndex.row+1:"left"===i?n.endIndex.column-=1:n.startIndex.column=this.m_selectionRange[0].endIndex.column+1;let o=[];this.unhighlightFloodFillRange(),o.push(n),this.m_floodFillRange=o,this.m_floodFillDirection="flood",this.highlightFloodFillRange(n)},M.prototype._addFloodfillAffordance=function(e){if(null==this.m_bottomFloodFillIconContainer){var t=e.target,i=this.findCell(t);if(i||(i=this.findHeader(t)),!i)return;this.m_bottomFloodFillIconContainer=document.createElement("div"),this.m_bottomFloodFillIconContainer.className=this.getMappedStyle("toucharea");var s=document.createElement("div");s.className=this.getMappedStyle("floodfillaffordance"),s.setAttribute("role","button"),this.m_bottomFloodFillIconContainer.appendChild(s),this.m_databody.firstChild.appendChild(this.m_bottomFloodFillIconContainer),this.m_floodFillAffordanceHeight=this.m_bottomFloodFillIconContainer.firstElementChild.offsetHeight,this.m_floodFillAffordanceWidth=this.m_bottomFloodFillIconContainer.firstElementChild.offsetWidth,this.m_options.isFloodFillEnabled()&&(this.m_bottomFloodFillIconContainer.addEventListener("mouseover",this.handleFloodFillAffordanceMouseOver.bind(this)),this.m_bottomFloodFillIconContainer.addEventListener("mousedown",this.handleFloodFillAffordanceMouseDown.bind(this)),this.m_bottomFloodFillIconContainer.addEventListener("mouseup",this.handleFloodFillAffordanceMouseUp.bind(this)),this.m_bottomFloodFillIconContainer.addEventListener("mouseleave",this.handleFloodFillAffordanceMouseLeave.bind(this)))}},M.prototype.handleFloodFillAffordanceMouseOver=function(e){0===e.buttons&&(this.m_databody.style.cursor="crosshair",this.m_cursor="crosshair")},M.prototype.handleFloodFillAffordanceMouseDown=function(){this.m_databodyDragState=!0,this.m_floodFillDragState=!0,this.m_selectionRange=null,this.m_floodFillRange=null,this.m_databody.style.cursor="crosshair",this.m_cursor="crosshair"},M.prototype.handleFloodFillAffordanceMouseUp=function(){this.m_databodyDragState=!1,this.m_floodFillDragState=!1,this.m_databody.style.cursor="default",this.m_cursor="default",this.m_selectionRange=null,this.m_floodFillRange=null},M.prototype.handleFloodFillAffordanceMouseLeave=function(e){0===e.buttons&&(this.m_databodyDragState=!1,this.m_floodFillDragState=!1,this.m_databody.style.cursor="default",this.m_cursor="default")},M.prototype._removeFloodFillAffordance=function(){this._isDatabodyCellActive()&&this.m_bottomFloodFillIconContainer&&this.m_bottomFloodFillIconContainer.parentNode&&(this.m_databody.style.cursor="default",this.m_cursor="default",this.m_bottomFloodFillIconContainer.parentNode.removeChild(this.m_bottomFloodFillIconContainer))},M.prototype._moveFloodFillAffordance=function(){var e=this.getResources().isRTLMode()?"right":"left",t=this.GetSelection();if(t.length>0){var i=this._getTouchSelectionAffordanceSize();if(null!=this.m_bottomFloodFillIconContainer){var s=this._getCellByIndex(t[t.length-1].endIndex);s?(this.setElementDir(this.m_bottomFloodFillIconContainer,this.getElementDir(s,"top")+this.getElementHeight(s)-i+this.m_floodFillAffordanceHeight+1,"top"),this.setElementDir(this.m_bottomFloodFillIconContainer,this.getElementDir(s,e)+this.getElementWidth(s)-(i-this.m_floodFillAffordanceWidth)+1,e),this.m_databody.firstChild.appendChild(this.m_bottomFloodFillIconContainer)):this._removeFloodFillAffordance()}}}});
9
9
  //# sourceMappingURL=ojdatagrid.js.map