@prolibu-suite/cobalt-core 0.1.2 → 0.2.0

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 (555) hide show
  1. package/custom-elements.json +15359 -5571
  2. package/dist/cjs/co-accordion.cjs.entry.js +19 -4
  3. package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
  4. package/dist/cjs/co-autocomplete.cjs.entry.js +51 -6
  5. package/dist/cjs/co-avatar.cjs.entry.js +40 -7
  6. package/dist/cjs/co-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/co-button-group.cjs.entry.js +1 -1
  8. package/dist/cjs/co-button.cjs.entry.js +10 -5
  9. package/dist/cjs/co-calendar_3.cjs.entry.js +692 -0
  10. package/dist/cjs/co-card.cjs.entry.js +21 -4
  11. package/dist/cjs/co-checkbox-group.cjs.entry.js +7 -5
  12. package/dist/cjs/co-checkbox.cjs.entry.js +4 -4
  13. package/dist/cjs/co-chip.cjs.entry.js +3 -3
  14. package/dist/cjs/co-color-picker.cjs.entry.js +109 -0
  15. package/dist/cjs/co-column-picker.cjs.entry.js +443 -0
  16. package/dist/cjs/co-combobox.cjs.entry.js +51 -15
  17. package/dist/cjs/co-command-search.cjs.entry.js +14 -7
  18. package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
  19. package/dist/cjs/co-data-table.cjs.entry.js +17 -5
  20. package/dist/cjs/co-date-picker.cjs.entry.js +177 -0
  21. package/dist/cjs/co-date-range-picker.cjs.entry.js +378 -0
  22. package/dist/cjs/co-date-range.cjs.entry.js +13 -259
  23. package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
  24. package/dist/cjs/co-fab.cjs.entry.js +3 -3
  25. package/dist/cjs/co-file-field.cjs.entry.js +498 -0
  26. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  27. package/dist/cjs/co-icon-button.cjs.entry.js +4 -4
  28. package/dist/cjs/co-icon.cjs.entry.js +7 -4
  29. package/dist/cjs/co-input.cjs.entry.js +13 -8
  30. package/dist/cjs/co-json-field.cjs.entry.js +109 -0
  31. package/dist/cjs/co-lightbox.cjs.entry.js +344 -0
  32. package/dist/cjs/co-list-item.cjs.entry.js +14 -4
  33. package/dist/cjs/co-loader.cjs.entry.js +1 -1
  34. package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
  35. package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
  36. package/dist/cjs/co-menu.cjs.entry.js +2 -2
  37. package/dist/cjs/co-modal.cjs.entry.js +13 -3
  38. package/dist/cjs/co-navbar.cjs.entry.js +4 -4
  39. package/dist/cjs/co-number-field.cjs.entry.js +47 -11
  40. package/dist/cjs/co-overlay.cjs.entry.js +2 -2
  41. package/dist/cjs/co-page-header.cjs.entry.js +2 -2
  42. package/dist/cjs/co-phone-field.cjs.entry.js +376 -0
  43. package/dist/cjs/co-popover.cjs.entry.js +4 -4
  44. package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
  45. package/dist/cjs/co-progress-circle.cjs.entry.js +38 -0
  46. package/dist/cjs/co-radio-group.cjs.entry.js +7 -5
  47. package/dist/cjs/co-radio.cjs.entry.js +4 -4
  48. package/dist/cjs/co-rating.cjs.entry.js +4 -4
  49. package/dist/cjs/co-ref-field.cjs.entry.js +191 -21
  50. package/dist/cjs/co-rich-text-editor.cjs.entry.js +235 -0
  51. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +184 -0
  52. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +82 -0
  53. package/dist/cjs/co-row.cjs.entry.js +3 -3
  54. package/dist/cjs/co-select.cjs.entry.js +119 -18
  55. package/dist/cjs/co-separator.cjs.entry.js +2 -2
  56. package/dist/cjs/co-sidebar-nav.cjs.entry.js +30 -5
  57. package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
  58. package/dist/cjs/co-slider.cjs.entry.js +3 -3
  59. package/dist/cjs/co-switch.cjs.entry.js +9 -6
  60. package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
  61. package/dist/cjs/co-tab.cjs.entry.js +3 -3
  62. package/dist/cjs/co-tags-field.cjs.entry.js +205 -0
  63. package/dist/cjs/co-textarea.cjs.entry.js +92 -0
  64. package/dist/cjs/co-toast.cjs.entry.js +2 -2
  65. package/dist/cjs/co-toggle-button-group.cjs.entry.js +7 -4
  66. package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
  67. package/dist/cjs/co-tooltip.cjs.entry.js +12 -6
  68. package/dist/cjs/co-transfer-list.cjs.entry.js +20 -6
  69. package/dist/cjs/cobalt.cjs.js +2 -2
  70. package/dist/cjs/dateI18n-BdiNAl0_.js +106 -0
  71. package/dist/cjs/dates-D8D-aS5d.js +432 -0
  72. package/dist/cjs/index-CaEJnpZe.js +27213 -0
  73. package/dist/cjs/{index-BEovErzl.js → index-DoFnrUVH.js} +79 -11
  74. package/dist/cjs/loader.cjs.js +2 -2
  75. package/dist/cjs/normalizeText-B-v-XPKf.js +96 -0
  76. package/dist/cjs/overlayScroll-ifzDNeyb.js +25 -0
  77. package/dist/cjs/overlayscrollbars-BlBHo2Xx.js +2842 -0
  78. package/dist/cjs/{positioning-DozpXyBd.js → positioning-DwHW399W.js} +40 -25
  79. package/dist/cjs/requiredMark-DA6y-4rp.js +16 -0
  80. package/dist/cjs/sanitizer-CjHZAkOm.js +1883 -0
  81. package/dist/cobalt/cobalt.css +1 -1
  82. package/dist/cobalt/cobalt.esm.js +1 -1
  83. package/dist/cobalt/{p-1021f612.entry.js → p-01fc77c4.entry.js} +1 -1
  84. package/dist/cobalt/p-0a6d8061.entry.js +1 -0
  85. package/dist/cobalt/{p-ff6a647c.entry.js → p-0bf288cd.entry.js} +1 -1
  86. package/dist/cobalt/p-136bdbd2.entry.js +1 -0
  87. package/dist/cobalt/{p-1b7d6808.entry.js → p-15708d32.entry.js} +1 -1
  88. package/dist/cobalt/{p-cc93ab05.entry.js → p-1578b019.entry.js} +1 -1
  89. package/dist/cobalt/{p-1b5c723a.entry.js → p-1e0282b8.entry.js} +1 -1
  90. package/dist/cobalt/p-23d48581.entry.js +1 -0
  91. package/dist/cobalt/p-2718ff27.entry.js +1 -0
  92. package/dist/cobalt/p-273afd93.entry.js +1 -0
  93. package/dist/cobalt/{p-c9b0e73f.entry.js → p-2b4d8535.entry.js} +1 -1
  94. package/dist/cobalt/p-3190d715.entry.js +1 -0
  95. package/dist/cobalt/p-3f9b3fcb.entry.js +1 -0
  96. package/dist/cobalt/p-41228dce.entry.js +1 -0
  97. package/dist/cobalt/{p-5a13e3a0.entry.js → p-44672953.entry.js} +1 -1
  98. package/dist/cobalt/{p-4cf6d1f4.entry.js → p-522fcdb7.entry.js} +1 -1
  99. package/dist/cobalt/p-53ce9023.entry.js +1 -0
  100. package/dist/cobalt/{p-4d8ff00a.entry.js → p-54f26e95.entry.js} +1 -1
  101. package/dist/cobalt/p-5d01bd4d.entry.js +1 -0
  102. package/dist/cobalt/p-5e7141aa.entry.js +1 -0
  103. package/dist/cobalt/p-5f905739.entry.js +1 -0
  104. package/dist/cobalt/{p-fb047df8.entry.js → p-6404bd21.entry.js} +1 -1
  105. package/dist/cobalt/p-654bbc2a.entry.js +1 -0
  106. package/dist/cobalt/p-6678ac0a.entry.js +1 -0
  107. package/dist/cobalt/{p-e808916c.entry.js → p-66a912dd.entry.js} +1 -1
  108. package/dist/cobalt/p-6759ee1c.entry.js +1 -0
  109. package/dist/cobalt/p-69a40bfd.entry.js +1 -0
  110. package/dist/cobalt/p-6a6a62cb.entry.js +1 -0
  111. package/dist/cobalt/p-6d43b6cd.entry.js +1 -0
  112. package/dist/cobalt/p-759c3dd0.entry.js +1 -0
  113. package/dist/cobalt/p-782f729f.entry.js +1 -0
  114. package/dist/cobalt/{p-ebd1555e.entry.js → p-7ef766c6.entry.js} +1 -1
  115. package/dist/cobalt/p-7f818368.entry.js +1 -0
  116. package/dist/cobalt/p-83b89bf8.entry.js +1 -0
  117. package/dist/cobalt/p-88dc561a.entry.js +1 -0
  118. package/dist/cobalt/{p-4905b51d.entry.js → p-8c27aff7.entry.js} +1 -1
  119. package/dist/cobalt/{p-a7fa4484.entry.js → p-95d14878.entry.js} +1 -1
  120. package/dist/cobalt/{p-1d7da33f.entry.js → p-97c20011.entry.js} +1 -1
  121. package/dist/cobalt/p-996179f7.entry.js +1 -0
  122. package/dist/cobalt/p-9c533830.entry.js +1 -0
  123. package/dist/cobalt/p-9d89bf47.entry.js +1 -0
  124. package/dist/cobalt/p-BKmfyPZK.js +2 -0
  125. package/dist/cobalt/p-BchB6Hdr.js +1 -0
  126. package/dist/cobalt/p-C1DCLOEl.js +1 -0
  127. package/dist/cobalt/p-C2mZ7x_Y.js +1 -0
  128. package/dist/cobalt/p-CQY6Ul7q.js +1 -0
  129. package/dist/cobalt/p-CyYF8IJE.js +1 -0
  130. package/dist/cobalt/p-DcK0GGZC.js +2 -0
  131. package/dist/cobalt/p-DqyWGweA.js +1 -0
  132. package/dist/cobalt/p-Qqq8fysz.js +1 -0
  133. package/dist/cobalt/p-aa17c70b.entry.js +1 -0
  134. package/dist/cobalt/{p-416bb5ae.entry.js → p-aa63812a.entry.js} +1 -1
  135. package/dist/cobalt/p-ad4c1b41.entry.js +1 -0
  136. package/dist/cobalt/p-ae4d3207.entry.js +1 -0
  137. package/dist/cobalt/p-af64da37.entry.js +1 -0
  138. package/dist/cobalt/p-b758c2e6.entry.js +1 -0
  139. package/dist/cobalt/p-bb07da22.entry.js +1 -0
  140. package/dist/cobalt/p-beb9c11d.entry.js +1 -0
  141. package/dist/cobalt/p-c6a242e4.entry.js +1 -0
  142. package/dist/cobalt/p-c87285b6.entry.js +1 -0
  143. package/dist/cobalt/p-cd57e8b4.entry.js +1 -0
  144. package/dist/cobalt/{p-4ffba5a3.entry.js → p-ce3a535f.entry.js} +1 -1
  145. package/dist/cobalt/p-d17e1444.entry.js +1 -0
  146. package/dist/cobalt/p-d958566a.entry.js +1 -0
  147. package/dist/cobalt/p-dd873bf8.entry.js +1 -0
  148. package/dist/cobalt/p-def448e4.entry.js +1 -0
  149. package/dist/cobalt/p-e4de8865.entry.js +1 -0
  150. package/dist/cobalt/{p-3b2f7959.entry.js → p-e8b58332.entry.js} +1 -1
  151. package/dist/cobalt/p-eba0bf7f.entry.js +1 -0
  152. package/dist/cobalt/p-f0e8fa7d.entry.js +1 -0
  153. package/dist/cobalt/{p-e50c4c6f.entry.js → p-f2c5cb74.entry.js} +1 -1
  154. package/dist/cobalt/p-f8728b21.entry.js +1 -0
  155. package/dist/cobalt/{p-697df797.entry.js → p-f97ad9ad.entry.js} +1 -1
  156. package/dist/cobalt/p-fad3605d.entry.js +1 -0
  157. package/dist/cobalt/{p-319937c3.entry.js → p-fe9e85b6.entry.js} +1 -1
  158. package/dist/cobalt/p-ff2690e5.entry.js +1 -0
  159. package/dist/cobalt/p-ox7HzCZn.js +10 -0
  160. package/dist/collection/collection-manifest.json +17 -1
  161. package/dist/collection/components/co-accordion/co-accordion.css +19 -1
  162. package/dist/collection/components/co-accordion/co-accordion.js +46 -4
  163. package/dist/collection/components/co-autocomplete/co-autocomplete.css +725 -7
  164. package/dist/collection/components/co-autocomplete/co-autocomplete.js +88 -4
  165. package/dist/collection/components/co-avatar/co-avatar.css +7 -0
  166. package/dist/collection/components/co-avatar/co-avatar.js +35 -6
  167. package/dist/collection/components/co-button/co-button.css +8 -5
  168. package/dist/collection/components/co-button/co-button.js +46 -3
  169. package/dist/collection/components/co-calendar/co-calendar.css +236 -0
  170. package/dist/collection/components/co-calendar/co-calendar.js +728 -0
  171. package/dist/collection/components/co-card/co-card.css +28 -5
  172. package/dist/collection/components/co-card/co-card.js +47 -4
  173. package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
  174. package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +26 -0
  175. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +25 -3
  176. package/dist/collection/components/co-chip/co-chip.js +2 -2
  177. package/dist/collection/components/co-color-picker/co-color-picker.css +224 -0
  178. package/dist/collection/components/co-color-picker/co-color-picker.js +333 -0
  179. package/dist/collection/components/co-color-picker/presets.js +19 -0
  180. package/dist/collection/components/co-column-picker/co-column-picker.css +490 -0
  181. package/dist/collection/components/co-column-picker/co-column-picker.js +675 -0
  182. package/dist/collection/components/co-column-picker/column-picker-node.js +34 -0
  183. package/dist/collection/components/co-column-picker/utils/column-picker-tree.js +221 -0
  184. package/dist/collection/components/co-combobox/co-combobox.css +788 -21
  185. package/dist/collection/components/co-combobox/co-combobox.js +130 -15
  186. package/dist/collection/components/co-command-search/co-command-search.css +4 -0
  187. package/dist/collection/components/co-command-search/co-command-search.js +12 -5
  188. package/dist/collection/components/co-data-table/co-data-table.css +1 -1
  189. package/dist/collection/components/co-data-table/co-data-table.js +15 -3
  190. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  191. package/dist/collection/components/co-date-field/co-date-field.css +239 -0
  192. package/dist/collection/components/co-date-field/co-date-field.js +746 -0
  193. package/dist/collection/components/co-date-picker/co-date-picker.css +112 -0
  194. package/dist/collection/components/co-date-picker/co-date-picker.js +801 -0
  195. package/dist/collection/components/co-date-range/co-date-range.css +3 -254
  196. package/dist/collection/components/co-date-range/co-date-range.js +29 -433
  197. package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +251 -0
  198. package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +1142 -0
  199. package/dist/collection/components/co-drawer/co-drawer.css +19 -0
  200. package/dist/collection/components/co-drawer/co-drawer.js +46 -2
  201. package/dist/collection/components/co-empty-state/co-empty-state.js +1 -1
  202. package/dist/collection/components/co-fab/co-fab.js +2 -2
  203. package/dist/collection/components/co-file-field/co-file-field.css +389 -0
  204. package/dist/collection/components/co-file-field/co-file-field.js +841 -0
  205. package/dist/collection/components/co-file-field/co-file-field.utils.js +47 -0
  206. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  207. package/dist/collection/components/co-icon/co-icon.js +6 -3
  208. package/dist/collection/components/co-icon-button/co-icon-button.css +10 -0
  209. package/dist/collection/components/co-icon-button/co-icon-button.js +4 -4
  210. package/dist/collection/components/co-input/co-input.css +56 -10
  211. package/dist/collection/components/co-input/co-input.js +34 -9
  212. package/dist/collection/components/co-json-field/co-json-field.css +169 -0
  213. package/dist/collection/components/co-json-field/co-json-field.js +453 -0
  214. package/dist/collection/components/co-lightbox/co-lightbox.css +164 -0
  215. package/dist/collection/components/co-lightbox/co-lightbox.js +451 -0
  216. package/dist/collection/components/co-list-item/co-list-item.css +5 -0
  217. package/dist/collection/components/co-list-item/co-list-item.js +12 -2
  218. package/dist/collection/components/co-menu/co-menu.js +1 -1
  219. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  220. package/dist/collection/components/co-modal/co-modal.css +17 -3
  221. package/dist/collection/components/co-modal/co-modal.js +51 -1
  222. package/dist/collection/components/co-navbar/co-navbar.css +1 -1
  223. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  224. package/dist/collection/components/co-number-field/co-number-field.css +70 -0
  225. package/dist/collection/components/co-number-field/co-number-field.js +143 -13
  226. package/dist/collection/components/co-overlay/co-overlay.js +1 -1
  227. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  228. package/dist/collection/components/co-phone-field/co-phone-field.css +265 -0
  229. package/dist/collection/components/co-phone-field/co-phone-field.js +392 -0
  230. package/dist/collection/components/co-phone-field/dial-codes.js +208 -0
  231. package/dist/collection/components/co-popover/co-popover.js +2 -2
  232. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  233. package/dist/collection/components/co-progress-circle/co-progress-circle.css +50 -0
  234. package/dist/collection/components/co-progress-circle/co-progress-circle.js +148 -0
  235. package/dist/collection/components/co-radio/co-radio.js +3 -3
  236. package/dist/collection/components/co-radio-group/co-radio-group.css +26 -0
  237. package/dist/collection/components/co-radio-group/co-radio-group.js +25 -3
  238. package/dist/collection/components/co-rating/co-rating.js +3 -3
  239. package/dist/collection/components/co-ref-field/co-ref-field.css +816 -54
  240. package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
  241. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +238 -0
  242. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +868 -0
  243. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +55 -0
  244. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +289 -0
  245. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +78 -0
  246. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +232 -0
  247. package/dist/collection/components/co-row/co-row.js +2 -2
  248. package/dist/collection/components/co-select/co-select.css +845 -7
  249. package/dist/collection/components/co-select/co-select.js +240 -17
  250. package/dist/collection/components/co-separator/co-separator.js +1 -1
  251. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  252. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +29 -4
  253. package/dist/collection/components/co-slider/co-slider.js +2 -2
  254. package/dist/collection/components/co-switch/co-switch.css +17 -0
  255. package/dist/collection/components/co-switch/co-switch.js +27 -4
  256. package/dist/collection/components/co-tab/co-tab.js +2 -2
  257. package/dist/collection/components/co-tab-group/co-tab-group.js +1 -1
  258. package/dist/collection/components/co-tags-field/co-tags-field.css +272 -0
  259. package/dist/collection/components/co-tags-field/co-tags-field.js +590 -0
  260. package/dist/collection/components/co-textarea/co-textarea.css +261 -0
  261. package/dist/collection/components/co-textarea/co-textarea.js +484 -0
  262. package/dist/collection/components/co-toast/co-toast.js +1 -1
  263. package/dist/collection/components/co-toggle-button/co-toggle-button.css +6 -4
  264. package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
  265. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +16 -0
  266. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +25 -2
  267. package/dist/collection/components/co-tooltip/co-tooltip.css +16 -0
  268. package/dist/collection/components/co-tooltip/co-tooltip.js +9 -3
  269. package/dist/collection/components/co-transfer-list/co-transfer-list.css +683 -7
  270. package/dist/collection/components/co-transfer-list/co-transfer-list.js +17 -4
  271. package/dist/collection/utils/dateI18n.js +101 -0
  272. package/dist/collection/utils/fileI18n.js +76 -0
  273. package/dist/collection/utils/icon-config.js +22 -0
  274. package/dist/collection/utils/lightboxI18n.js +42 -0
  275. package/dist/collection/utils/normalizeText.js +94 -0
  276. package/dist/collection/utils/overlayScroll.js +20 -0
  277. package/dist/collection/utils/positioning.js +40 -25
  278. package/dist/collection/utils/requiredMark.js +11 -0
  279. package/dist/components/co-accordion.js +1 -1
  280. package/dist/components/co-autocomplete.js +1 -1
  281. package/dist/components/co-avatar.js +1 -1
  282. package/dist/components/co-button.js +1 -1
  283. package/dist/components/co-calendar.d.ts +11 -0
  284. package/dist/components/co-calendar.js +1 -0
  285. package/dist/components/co-card.js +1 -1
  286. package/dist/components/co-checkbox-group.js +1 -1
  287. package/dist/components/co-checkbox.js +1 -1
  288. package/dist/components/co-chip.js +1 -1
  289. package/dist/components/co-color-picker.d.ts +11 -0
  290. package/dist/components/co-color-picker.js +1 -0
  291. package/dist/components/co-column-picker.d.ts +11 -0
  292. package/dist/components/co-column-picker.js +1 -0
  293. package/dist/components/co-combobox.js +1 -1
  294. package/dist/components/co-command-search.js +1 -1
  295. package/dist/components/co-data-table-pagination.js +1 -1
  296. package/dist/components/co-data-table.js +1 -1
  297. package/dist/components/co-date-field.d.ts +11 -0
  298. package/dist/components/co-date-field.js +1 -0
  299. package/dist/components/co-date-picker.d.ts +11 -0
  300. package/dist/components/co-date-picker.js +1 -0
  301. package/dist/components/co-date-range-picker.d.ts +11 -0
  302. package/dist/components/co-date-range-picker.js +1 -0
  303. package/dist/components/co-date-range.js +1 -1
  304. package/dist/components/co-drawer.js +1 -1
  305. package/dist/components/co-empty-state.js +1 -1
  306. package/dist/components/co-fab.js +1 -1
  307. package/dist/components/co-file-field.d.ts +11 -0
  308. package/dist/components/co-file-field.js +1 -0
  309. package/dist/components/co-helper-text.js +1 -1
  310. package/dist/components/co-icon-button.js +1 -1
  311. package/dist/components/co-icon.js +1 -1
  312. package/dist/components/co-input.js +1 -1
  313. package/dist/components/co-json-field.d.ts +11 -0
  314. package/dist/components/co-json-field.js +1 -0
  315. package/dist/components/co-lightbox.d.ts +11 -0
  316. package/dist/components/co-lightbox.js +1 -0
  317. package/dist/components/co-list-item.js +1 -1
  318. package/dist/components/co-menu-divider.js +1 -1
  319. package/dist/components/co-menu-item.js +1 -1
  320. package/dist/components/co-menu.js +1 -1
  321. package/dist/components/co-modal.js +1 -1
  322. package/dist/components/co-navbar.js +1 -1
  323. package/dist/components/co-number-field.js +1 -1
  324. package/dist/components/co-overlay.js +1 -1
  325. package/dist/components/co-page-header.js +1 -1
  326. package/dist/components/co-phone-field.d.ts +11 -0
  327. package/dist/components/co-phone-field.js +1 -0
  328. package/dist/components/co-popover.js +1 -1
  329. package/dist/components/co-progress-bar.js +1 -1
  330. package/dist/components/co-progress-circle.d.ts +11 -0
  331. package/dist/components/co-progress-circle.js +1 -0
  332. package/dist/components/co-radio-group.js +1 -1
  333. package/dist/components/co-radio.js +1 -1
  334. package/dist/components/co-rating.js +1 -1
  335. package/dist/components/co-ref-field.js +1 -1
  336. package/dist/components/co-rich-text-editor.d.ts +11 -0
  337. package/dist/components/co-rich-text-editor.js +1 -0
  338. package/dist/components/co-rich-text-toolbar.d.ts +11 -0
  339. package/dist/components/co-rich-text-toolbar.js +1 -0
  340. package/dist/components/co-rich-text-viewer.d.ts +11 -0
  341. package/dist/components/co-rich-text-viewer.js +1 -0
  342. package/dist/components/co-row.js +1 -1
  343. package/dist/components/co-select.js +1 -1
  344. package/dist/components/co-separator.js +1 -1
  345. package/dist/components/co-sidebar-nav.js +1 -1
  346. package/dist/components/co-sidebar.js +1 -1
  347. package/dist/components/co-slider.js +1 -1
  348. package/dist/components/co-switch.js +1 -1
  349. package/dist/components/co-tab-group.js +1 -1
  350. package/dist/components/co-tab.js +1 -1
  351. package/dist/components/co-tags-field.d.ts +11 -0
  352. package/dist/components/co-tags-field.js +1 -0
  353. package/dist/components/co-textarea.d.ts +11 -0
  354. package/dist/components/co-textarea.js +1 -0
  355. package/dist/components/co-toast.js +1 -1
  356. package/dist/components/co-toggle-button-group.js +1 -1
  357. package/dist/components/co-toggle-button.js +1 -1
  358. package/dist/components/co-tooltip.js +1 -1
  359. package/dist/components/co-transfer-list.js +1 -1
  360. package/dist/components/index.js +1 -1
  361. package/dist/components/{p-FBICWTuN.js → p-BXdfh__-.js} +1 -1
  362. package/dist/components/p-BchB6Hdr.js +1 -0
  363. package/dist/components/p-BeWXpX8I.js +1 -0
  364. package/dist/components/p-BiW0ubLs.js +1 -0
  365. package/dist/components/p-C1DCLOEl.js +1 -0
  366. package/dist/components/p-C2mZ7x_Y.js +1 -0
  367. package/dist/components/p-C9tHLXKS.js +1 -0
  368. package/dist/components/p-CQY6Ul7q.js +1 -0
  369. package/dist/components/p-CWneqh4n.js +1 -0
  370. package/dist/components/{p-B18FTYLq.js → p-CaMgu2_g.js} +1 -1
  371. package/dist/components/p-CyYF8IJE.js +1 -0
  372. package/dist/components/p-DBhNS7JD.js +1 -0
  373. package/dist/components/p-DObrQi5F.js +1 -0
  374. package/dist/components/p-DPi_U-Kl.js +1 -0
  375. package/dist/components/p-DcK0GGZC.js +2 -0
  376. package/dist/components/p-DqyWGweA.js +1 -0
  377. package/dist/components/{p-cpdUXBiS.js → p-MiSJXuBx.js} +1 -1
  378. package/dist/components/p-Sgn-2g8m.js +1 -0
  379. package/dist/components/{p-Cr8Yc0zj.js → p-jDjfGZJp.js} +1 -1
  380. package/dist/components/p-o8hrDIKe.js +1 -0
  381. package/dist/components/p-ox7HzCZn.js +10 -0
  382. package/dist/esm/co-accordion.entry.js +19 -4
  383. package/dist/esm/co-app-shell.entry.js +1 -1
  384. package/dist/esm/co-autocomplete.entry.js +51 -6
  385. package/dist/esm/co-avatar.entry.js +39 -6
  386. package/dist/esm/co-badge.entry.js +1 -1
  387. package/dist/esm/co-button-group.entry.js +1 -1
  388. package/dist/esm/co-button.entry.js +10 -5
  389. package/dist/esm/co-calendar_3.entry.js +688 -0
  390. package/dist/esm/co-card.entry.js +21 -4
  391. package/dist/esm/co-checkbox-group.entry.js +7 -5
  392. package/dist/esm/co-checkbox.entry.js +4 -4
  393. package/dist/esm/co-chip.entry.js +3 -3
  394. package/dist/esm/co-color-picker.entry.js +107 -0
  395. package/dist/esm/co-column-picker.entry.js +441 -0
  396. package/dist/esm/co-combobox.entry.js +51 -15
  397. package/dist/esm/co-command-search.entry.js +14 -7
  398. package/dist/esm/co-data-table-pagination.entry.js +5 -5
  399. package/dist/esm/co-data-table.entry.js +17 -5
  400. package/dist/esm/co-date-picker.entry.js +175 -0
  401. package/dist/esm/co-date-range-picker.entry.js +376 -0
  402. package/dist/esm/co-date-range.entry.js +13 -259
  403. package/dist/esm/co-empty-state.entry.js +2 -2
  404. package/dist/esm/co-fab.entry.js +3 -3
  405. package/dist/esm/co-file-field.entry.js +496 -0
  406. package/dist/esm/co-helper-text.entry.js +3 -3
  407. package/dist/esm/co-icon-button.entry.js +4 -4
  408. package/dist/esm/co-icon.entry.js +7 -4
  409. package/dist/esm/co-input.entry.js +13 -8
  410. package/dist/esm/co-json-field.entry.js +107 -0
  411. package/dist/esm/co-lightbox.entry.js +342 -0
  412. package/dist/esm/co-list-item.entry.js +14 -4
  413. package/dist/esm/co-loader.entry.js +1 -1
  414. package/dist/esm/co-menu-divider.entry.js +2 -2
  415. package/dist/esm/co-menu-item.entry.js +1 -1
  416. package/dist/esm/co-menu.entry.js +2 -2
  417. package/dist/esm/co-modal.entry.js +13 -3
  418. package/dist/esm/co-navbar.entry.js +4 -4
  419. package/dist/esm/co-number-field.entry.js +47 -11
  420. package/dist/esm/co-overlay.entry.js +2 -2
  421. package/dist/esm/co-page-header.entry.js +2 -2
  422. package/dist/esm/co-phone-field.entry.js +374 -0
  423. package/dist/esm/co-popover.entry.js +4 -4
  424. package/dist/esm/co-progress-bar.entry.js +3 -3
  425. package/dist/esm/co-progress-circle.entry.js +36 -0
  426. package/dist/esm/co-radio-group.entry.js +7 -5
  427. package/dist/esm/co-radio.entry.js +4 -4
  428. package/dist/esm/co-rating.entry.js +4 -4
  429. package/dist/esm/co-ref-field.entry.js +191 -21
  430. package/dist/esm/co-rich-text-editor.entry.js +233 -0
  431. package/dist/esm/co-rich-text-toolbar.entry.js +182 -0
  432. package/dist/esm/co-rich-text-viewer.entry.js +80 -0
  433. package/dist/esm/co-row.entry.js +3 -3
  434. package/dist/esm/co-select.entry.js +119 -18
  435. package/dist/esm/co-separator.entry.js +2 -2
  436. package/dist/esm/co-sidebar-nav.entry.js +30 -5
  437. package/dist/esm/co-sidebar.entry.js +3 -3
  438. package/dist/esm/co-slider.entry.js +3 -3
  439. package/dist/esm/co-switch.entry.js +9 -6
  440. package/dist/esm/co-tab-group.entry.js +2 -2
  441. package/dist/esm/co-tab.entry.js +3 -3
  442. package/dist/esm/co-tags-field.entry.js +203 -0
  443. package/dist/esm/co-textarea.entry.js +90 -0
  444. package/dist/esm/co-toast.entry.js +2 -2
  445. package/dist/esm/co-toggle-button-group.entry.js +7 -4
  446. package/dist/esm/co-toggle-button.entry.js +4 -4
  447. package/dist/esm/co-tooltip.entry.js +12 -6
  448. package/dist/esm/co-transfer-list.entry.js +20 -6
  449. package/dist/esm/cobalt.js +3 -3
  450. package/dist/esm/dateI18n-C1DCLOEl.js +103 -0
  451. package/dist/esm/dates-CyYF8IJE.js +416 -0
  452. package/dist/esm/{index-B0lqrhFo.js → index-BKmfyPZK.js} +79 -11
  453. package/dist/esm/index-BjAqSidM.js +27200 -0
  454. package/dist/esm/loader.js +3 -3
  455. package/dist/esm/normalizeText-CQY6Ul7q.js +92 -0
  456. package/dist/esm/overlayScroll-Bpv882_z.js +23 -0
  457. package/dist/esm/overlayscrollbars-ox7HzCZn.js +2840 -0
  458. package/dist/esm/{positioning-Am-OlB8h.js → positioning-C2mZ7x_Y.js} +40 -25
  459. package/dist/esm/requiredMark-DFvtYtkE.js +14 -0
  460. package/dist/esm/sanitizer-DcK0GGZC.js +1880 -0
  461. package/dist/types/components/co-accordion/co-accordion.d.ts +12 -2
  462. package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +11 -0
  463. package/dist/types/components/co-avatar/co-avatar.d.ts +6 -2
  464. package/dist/types/components/co-button/co-button.d.ts +4 -0
  465. package/dist/types/components/co-calendar/co-calendar.d.ts +108 -0
  466. package/dist/types/components/co-card/co-card.d.ts +10 -2
  467. package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +2 -0
  468. package/dist/types/components/co-color-picker/co-color-picker.d.ts +48 -0
  469. package/dist/types/components/co-color-picker/presets.d.ts +10 -0
  470. package/dist/types/components/co-column-picker/co-column-picker.d.ts +60 -0
  471. package/dist/types/components/co-column-picker/column-picker-node.d.ts +18 -0
  472. package/dist/types/components/co-column-picker/utils/column-picker-tree.d.ts +37 -0
  473. package/dist/types/components/co-combobox/co-combobox.d.ts +14 -1
  474. package/dist/types/components/co-command-search/co-command-search.d.ts +2 -0
  475. package/dist/types/components/co-data-table/co-data-table.d.ts +1 -0
  476. package/dist/types/components/co-date-field/co-date-field.d.ts +96 -0
  477. package/dist/types/components/co-date-picker/co-date-picker.d.ts +92 -0
  478. package/dist/types/components/co-date-range/co-date-range.d.ts +12 -50
  479. package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +112 -0
  480. package/dist/types/components/co-drawer/co-drawer.d.ts +4 -0
  481. package/dist/types/components/co-file-field/co-file-field.d.ts +146 -0
  482. package/dist/types/components/co-file-field/co-file-field.utils.d.ts +18 -0
  483. package/dist/types/components/co-icon-button/co-icon-button.d.ts +1 -1
  484. package/dist/types/components/co-input/co-input.d.ts +4 -1
  485. package/dist/types/components/co-json-field/co-json-field.d.ts +66 -0
  486. package/dist/types/components/co-lightbox/co-lightbox.d.ts +95 -0
  487. package/dist/types/components/co-list-item/co-list-item.d.ts +1 -0
  488. package/dist/types/components/co-modal/co-modal.d.ts +4 -0
  489. package/dist/types/components/co-number-field/co-number-field.d.ts +16 -2
  490. package/dist/types/components/co-phone-field/co-phone-field.d.ts +56 -0
  491. package/dist/types/components/co-phone-field/dial-codes.d.ts +14 -0
  492. package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +16 -0
  493. package/dist/types/components/co-radio-group/co-radio-group.d.ts +2 -0
  494. package/dist/types/components/co-ref-field/co-ref-field.d.ts +54 -1
  495. package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +94 -0
  496. package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +42 -0
  497. package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +32 -0
  498. package/dist/types/components/co-select/co-select.d.ts +31 -1
  499. package/dist/types/components/co-switch/co-switch.d.ts +2 -0
  500. package/dist/types/components/co-tags-field/co-tags-field.d.ts +82 -0
  501. package/dist/types/components/co-textarea/co-textarea.d.ts +65 -0
  502. package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +2 -0
  503. package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +4 -0
  504. package/dist/types/components.d.ts +3796 -422
  505. package/dist/types/utils/dateI18n.d.ts +39 -0
  506. package/dist/types/utils/fileI18n.d.ts +34 -0
  507. package/dist/types/utils/icon-config.d.ts +20 -0
  508. package/dist/types/utils/lightboxI18n.d.ts +12 -0
  509. package/dist/types/utils/normalizeText.d.ts +41 -0
  510. package/dist/types/utils/overlayScroll.d.ts +17 -0
  511. package/dist/types/utils/positioning.d.ts +7 -14
  512. package/dist/types/utils/requiredMark.d.ts +13 -0
  513. package/package.json +9 -1
  514. package/dist/cjs/co-drawer.cjs.entry.js +0 -75
  515. package/dist/cjs/color-YhUkm10t.js +0 -32
  516. package/dist/cobalt/p-08afdc51.entry.js +0 -1
  517. package/dist/cobalt/p-1d3338b6.entry.js +0 -1
  518. package/dist/cobalt/p-1d91ec93.entry.js +0 -1
  519. package/dist/cobalt/p-230a23f3.entry.js +0 -1
  520. package/dist/cobalt/p-31bc842d.entry.js +0 -1
  521. package/dist/cobalt/p-37c1f700.entry.js +0 -1
  522. package/dist/cobalt/p-4dd7499c.entry.js +0 -1
  523. package/dist/cobalt/p-4e7ce8ee.entry.js +0 -1
  524. package/dist/cobalt/p-6793c51e.entry.js +0 -1
  525. package/dist/cobalt/p-689e38b3.entry.js +0 -1
  526. package/dist/cobalt/p-7028880b.entry.js +0 -1
  527. package/dist/cobalt/p-72113ec2.entry.js +0 -1
  528. package/dist/cobalt/p-8e54e74d.entry.js +0 -1
  529. package/dist/cobalt/p-92c39eed.entry.js +0 -1
  530. package/dist/cobalt/p-9887b828.entry.js +0 -1
  531. package/dist/cobalt/p-9a5c6600.entry.js +0 -1
  532. package/dist/cobalt/p-Am-OlB8h.js +0 -1
  533. package/dist/cobalt/p-B0lqrhFo.js +0 -2
  534. package/dist/cobalt/p-BG4WRR22.js +0 -1
  535. package/dist/cobalt/p-a1b248ad.entry.js +0 -1
  536. package/dist/cobalt/p-a470b764.entry.js +0 -1
  537. package/dist/cobalt/p-a4d55b1a.entry.js +0 -1
  538. package/dist/cobalt/p-b6840df4.entry.js +0 -1
  539. package/dist/cobalt/p-b89d54d9.entry.js +0 -1
  540. package/dist/cobalt/p-ba84631a.entry.js +0 -1
  541. package/dist/cobalt/p-c7517f86.entry.js +0 -1
  542. package/dist/cobalt/p-ca41eec2.entry.js +0 -1
  543. package/dist/cobalt/p-d29c77cb.entry.js +0 -1
  544. package/dist/cobalt/p-d9d8b10e.entry.js +0 -1
  545. package/dist/cobalt/p-da55678f.entry.js +0 -1
  546. package/dist/cobalt/p-dc5598d1.entry.js +0 -1
  547. package/dist/cobalt/p-e2c9cb00.entry.js +0 -1
  548. package/dist/cobalt/p-ebd68f56.entry.js +0 -1
  549. package/dist/cobalt/p-f051f44d.entry.js +0 -1
  550. package/dist/cobalt/p-fe1447a3.entry.js +0 -1
  551. package/dist/components/p-Am-OlB8h.js +0 -1
  552. package/dist/components/p-BG4WRR22.js +0 -1
  553. package/dist/components/p-wwWquAtm.js +0 -1
  554. package/dist/esm/co-drawer.entry.js +0 -73
  555. package/dist/esm/color-BG4WRR22.js +0 -30
@@ -0,0 +1,2842 @@
1
+ 'use strict';
2
+
3
+ /*!
4
+ * OverlayScrollbars
5
+ * Version: 2.16.0
6
+ *
7
+ * Copyright (c) Rene Haas | KingSora.
8
+ * https://github.com/KingSora
9
+ *
10
+ * Released under the MIT license.
11
+ */
12
+ const createCache = (t, n) => {
13
+ const {o: o, i: s, u: e} = t;
14
+ let c = o;
15
+ let r;
16
+ const cacheUpdateContextual = (t, n) => {
17
+ const o = c;
18
+ const i = t;
19
+ const l = n || (s ? !s(o, i) : o !== i);
20
+ if (l || e) {
21
+ c = i;
22
+ r = o;
23
+ }
24
+ return [ c, l, r ];
25
+ };
26
+ const cacheUpdateIsolated = t => cacheUpdateContextual(n(c, r), t);
27
+ const getCurrentCache = t => [ c, !!t, r ];
28
+ return [ n ? cacheUpdateIsolated : cacheUpdateContextual, getCurrentCache ];
29
+ };
30
+
31
+ const t = typeof window !== "undefined" && typeof HTMLElement !== "undefined" && !!window.document;
32
+
33
+ const n = t ? window : {};
34
+
35
+ const o = Math.max;
36
+
37
+ const s = Math.min;
38
+
39
+ const e = Math.round;
40
+
41
+ const c = Math.abs;
42
+
43
+ const r = Math.sign;
44
+
45
+ const i = n.cancelAnimationFrame;
46
+
47
+ const l = n.requestAnimationFrame;
48
+
49
+ const a = n.setTimeout;
50
+
51
+ const u = n.clearTimeout;
52
+
53
+ const getApi = t => typeof n[t] !== "undefined" ? n[t] : void 0;
54
+
55
+ const f = getApi("MutationObserver");
56
+
57
+ const _ = getApi("IntersectionObserver");
58
+
59
+ const d = getApi("ResizeObserver");
60
+
61
+ const p = getApi("ScrollTimeline");
62
+
63
+ const isUndefined = t => t === void 0;
64
+
65
+ const isNull = t => t === null;
66
+
67
+ const isNumber = t => typeof t === "number";
68
+
69
+ const isString = t => typeof t === "string";
70
+
71
+ const isBoolean = t => typeof t === "boolean";
72
+
73
+ const isFunction = t => typeof t === "function";
74
+
75
+ const isArray = t => Array.isArray(t);
76
+
77
+ const isObject = t => typeof t === "object" && !isArray(t) && !isNull(t);
78
+
79
+ const isArrayLike = t => {
80
+ const n = !!t && t.length;
81
+ const o = isNumber(n) && n > -1 && n % 1 == 0;
82
+ return isArray(t) || !isFunction(t) && o ? n > 0 && isObject(t) ? n - 1 in t : true : false;
83
+ };
84
+
85
+ const isPlainObject = t => !!t && t.constructor === Object;
86
+
87
+ const isHTMLElement = t => t instanceof HTMLElement;
88
+
89
+ const isElement = t => t instanceof Element;
90
+
91
+ function each(t, n) {
92
+ if (isArrayLike(t)) {
93
+ for (let o = 0; o < t.length; o++) {
94
+ if (n(t[o], o, t) === false) {
95
+ break;
96
+ }
97
+ }
98
+ } else if (t) {
99
+ each(Object.keys(t), (o => n(t[o], o, t)));
100
+ }
101
+ return t;
102
+ }
103
+
104
+ const inArray = (t, n) => t.indexOf(n) >= 0;
105
+
106
+ const concat = (t, n) => t.concat(n);
107
+
108
+ const push = (t, n, o) => {
109
+ if (!isString(n) && isArrayLike(n)) {
110
+ Array.prototype.push.apply(t, n);
111
+ } else {
112
+ t.push(n);
113
+ }
114
+ return t;
115
+ };
116
+
117
+ const from = t => Array.from(t || []);
118
+
119
+ const createOrKeepArray = t => {
120
+ if (isArray(t)) {
121
+ return t;
122
+ }
123
+ return !isString(t) && isArrayLike(t) ? from(t) : [ t ];
124
+ };
125
+
126
+ const isEmptyArray = t => !!t && !t.length;
127
+
128
+ const deduplicateArray = t => from(new Set(t));
129
+
130
+ const runEachAndClear = (t, n, o) => {
131
+ const runFn = t => t ? t.apply(void 0, n || []) : true;
132
+ each(t, runFn);
133
+ if (!o) {
134
+ t.length = 0;
135
+ }
136
+ };
137
+
138
+ const v = "paddingTop";
139
+
140
+ const g = "paddingRight";
141
+
142
+ const h = "paddingLeft";
143
+
144
+ const b = "paddingBottom";
145
+
146
+ const y = "marginLeft";
147
+
148
+ const w = "marginRight";
149
+
150
+ const S = "marginBottom";
151
+
152
+ const m = "overflowX";
153
+
154
+ const O = "overflowY";
155
+
156
+ const C = "width";
157
+
158
+ const $ = "height";
159
+
160
+ const x = "visible";
161
+
162
+ const H = "hidden";
163
+
164
+ const E = "scroll";
165
+
166
+ const capitalizeFirstLetter = t => {
167
+ const n = String(t || "");
168
+ return n ? n[0].toUpperCase() + n.slice(1) : "";
169
+ };
170
+
171
+ const equal = (t, n, o, s) => {
172
+ if (t && n) {
173
+ let s = true;
174
+ each(o, (o => {
175
+ const e = t[o];
176
+ const c = n[o];
177
+ if (e !== c) {
178
+ s = false;
179
+ }
180
+ }));
181
+ return s;
182
+ }
183
+ return false;
184
+ };
185
+
186
+ const equalWH = (t, n) => equal(t, n, [ "w", "h" ]);
187
+
188
+ const equalXY = (t, n) => equal(t, n, [ "x", "y" ]);
189
+
190
+ const equalTRBL = (t, n) => equal(t, n, [ "t", "r", "b", "l" ]);
191
+
192
+ const bind = (t, ...n) => t.bind(0, ...n);
193
+
194
+ const selfClearTimeout = t => {
195
+ let n;
196
+ const o = t ? a : l;
197
+ const s = t ? u : i;
198
+ return [ e => {
199
+ s(n);
200
+ n = o((() => e()), isFunction(t) ? t() : t);
201
+ }, () => s(n) ];
202
+ };
203
+
204
+ const getDebouncer = t => {
205
+ const n = isFunction(t) ? t() : t;
206
+ if (isNumber(n)) {
207
+ const t = n ? a : l;
208
+ const o = n ? u : i;
209
+ return s => {
210
+ const e = t((() => s()), n);
211
+ return () => {
212
+ o(e);
213
+ };
214
+ };
215
+ }
216
+ return n && n._;
217
+ };
218
+
219
+ const debounce = (t, n) => {
220
+ const {p: o, v: s, S: e, m: c} = n || {};
221
+ let r;
222
+ let i;
223
+ let l;
224
+ let a;
225
+ const u = function invokeFunctionToDebounce(n) {
226
+ if (i) {
227
+ i();
228
+ }
229
+ if (r) {
230
+ r();
231
+ }
232
+ a = i = r = l = void 0;
233
+ t.apply(this, n);
234
+ };
235
+ const mergeParms = t => c && l ? c(l, t) : t;
236
+ const flush = () => {
237
+ if (i && l) {
238
+ u(mergeParms(l) || l);
239
+ }
240
+ };
241
+ const f = function debouncedFn() {
242
+ const t = from(arguments);
243
+ const n = getDebouncer(o);
244
+ if (n) {
245
+ const o = typeof e === "function" ? e() : e;
246
+ const c = getDebouncer(s);
247
+ const f = mergeParms(t);
248
+ const _ = f || t;
249
+ const d = u.bind(0, _);
250
+ if (i) {
251
+ i();
252
+ }
253
+ if (o && !a) {
254
+ d();
255
+ a = true;
256
+ i = n((() => a = void 0));
257
+ } else {
258
+ i = n(d);
259
+ if (c && !r) {
260
+ r = c(flush);
261
+ }
262
+ }
263
+ l = _;
264
+ } else {
265
+ u(t);
266
+ }
267
+ };
268
+ f.O = flush;
269
+ return f;
270
+ };
271
+
272
+ const hasOwnProperty = (t, n) => Object.prototype.hasOwnProperty.call(t, n);
273
+
274
+ const keys = t => t ? Object.keys(t) : [];
275
+
276
+ const assignDeep = (t, n, o, s, e, c, r) => {
277
+ const i = [ n, o, s, e, c, r ];
278
+ if ((typeof t !== "object" || isNull(t)) && !isFunction(t)) {
279
+ t = {};
280
+ }
281
+ each(i, (n => {
282
+ each(n, ((o, s) => {
283
+ const e = n[s];
284
+ if (t === e) {
285
+ return true;
286
+ }
287
+ const c = isArray(e);
288
+ if (e && isPlainObject(e)) {
289
+ const n = t[s];
290
+ let o = n;
291
+ if (c && !isArray(n)) {
292
+ o = [];
293
+ } else if (!c && !isPlainObject(n)) {
294
+ o = {};
295
+ }
296
+ t[s] = assignDeep(o, e);
297
+ } else {
298
+ t[s] = c ? e.slice() : e;
299
+ }
300
+ }));
301
+ }));
302
+ return t;
303
+ };
304
+
305
+ const removeUndefinedProperties = (t, n) => each(assignDeep({}, t), ((t, n, o) => {
306
+ if (t === void 0) {
307
+ delete o[n];
308
+ } else if (t && isPlainObject(t)) {
309
+ o[n] = removeUndefinedProperties(t);
310
+ }
311
+ }));
312
+
313
+ const isEmptyObject = t => !keys(t).length;
314
+
315
+ const noop = () => {};
316
+
317
+ const capNumber = (t, n, e) => o(t, s(n, e));
318
+
319
+ const getDomTokensArray = t => deduplicateArray((isArray(t) ? t : (t || "").split(" ")).filter((t => t)));
320
+
321
+ const getAttr = (t, n) => t && t.getAttribute(n);
322
+
323
+ const hasAttr = (t, n) => t && t.hasAttribute(n);
324
+
325
+ const setAttrs = (t, n, o) => {
326
+ each(getDomTokensArray(n), (n => {
327
+ if (t) {
328
+ t.setAttribute(n, String(o || ""));
329
+ }
330
+ }));
331
+ };
332
+
333
+ const removeAttrs = (t, n) => {
334
+ each(getDomTokensArray(n), (n => t && t.removeAttribute(n)));
335
+ };
336
+
337
+ const domTokenListAttr = (t, n) => {
338
+ const o = getDomTokensArray(getAttr(t, n));
339
+ const s = bind(setAttrs, t, n);
340
+ const domTokenListOperation = (t, n) => {
341
+ const s = new Set(o);
342
+ each(getDomTokensArray(t), (t => {
343
+ s[n](t);
344
+ }));
345
+ return from(s).join(" ");
346
+ };
347
+ return {
348
+ C: t => s(domTokenListOperation(t, "delete")),
349
+ $: t => s(domTokenListOperation(t, "add")),
350
+ H: t => {
351
+ const n = getDomTokensArray(t);
352
+ return n.reduce(((t, n) => t && o.includes(n)), n.length > 0);
353
+ }
354
+ };
355
+ };
356
+
357
+ const removeAttrClass = (t, n, o) => {
358
+ domTokenListAttr(t, n).C(o);
359
+ return bind(addAttrClass, t, n, o);
360
+ };
361
+
362
+ const addAttrClass = (t, n, o) => {
363
+ domTokenListAttr(t, n).$(o);
364
+ return bind(removeAttrClass, t, n, o);
365
+ };
366
+
367
+ const addRemoveAttrClass = (t, n, o, s) => (s ? addAttrClass : removeAttrClass)(t, n, o);
368
+
369
+ const hasAttrClass = (t, n, o) => domTokenListAttr(t, n).H(o);
370
+
371
+ const createDomTokenListClass = t => domTokenListAttr(t, "class");
372
+
373
+ const removeClass = (t, n) => {
374
+ createDomTokenListClass(t).C(n);
375
+ };
376
+
377
+ const addClass = (t, n) => {
378
+ createDomTokenListClass(t).$(n);
379
+ return bind(removeClass, t, n);
380
+ };
381
+
382
+ const find = (t, n) => {
383
+ const o = n ? isElement(n) && n : document;
384
+ return o ? from(o.querySelectorAll(t)) : [];
385
+ };
386
+
387
+ const findFirst = (t, n) => {
388
+ const o = n ? isElement(n) && n : document;
389
+ return o && o.querySelector(t);
390
+ };
391
+
392
+ const is = (t, n) => isElement(t) && t.matches(n);
393
+
394
+ const isBodyElement = t => is(t, "body");
395
+
396
+ const contents = t => t ? from(t.childNodes) : [];
397
+
398
+ const parent = t => t && t.parentElement;
399
+
400
+ const closest = (t, n) => isElement(t) && t.closest(n);
401
+
402
+ const getFocusedElement = t => document.activeElement;
403
+
404
+ const liesBetween = (t, n, o) => {
405
+ const s = closest(t, n);
406
+ const e = t && findFirst(o, s);
407
+ const c = closest(e, n) === s;
408
+ return s && e ? s === t || e === t || c && closest(closest(t, o), n) !== s : false;
409
+ };
410
+
411
+ const removeElements = t => {
412
+ each(createOrKeepArray(t), (t => {
413
+ const n = parent(t);
414
+ if (t && n) {
415
+ n.removeChild(t);
416
+ }
417
+ }));
418
+ };
419
+
420
+ const appendChildren = (t, n) => bind(removeElements, t && n && each(createOrKeepArray(n), (n => {
421
+ if (n) {
422
+ t.appendChild(n);
423
+ }
424
+ })));
425
+
426
+ let D;
427
+
428
+ const getTrustedTypePolicy = () => D;
429
+
430
+ const setTrustedTypePolicy = t => {
431
+ D = t;
432
+ };
433
+
434
+ const createDiv = t => {
435
+ const n = document.createElement("div");
436
+ setAttrs(n, "class", t);
437
+ return n;
438
+ };
439
+
440
+ const createDOM = t => {
441
+ const n = createDiv();
442
+ const o = getTrustedTypePolicy();
443
+ const s = t.trim();
444
+ n.innerHTML = o ? o.createHTML(s) : s;
445
+ return each(contents(n), (t => removeElements(t)));
446
+ };
447
+
448
+ const getCSSVal = (t, n) => t.getPropertyValue(n) || t[n] || "";
449
+
450
+ const validFiniteNumber = t => {
451
+ const n = t || 0;
452
+ return isFinite(n) ? n : 0;
453
+ };
454
+
455
+ const parseToZeroOrNumber = t => validFiniteNumber(parseFloat(t || ""));
456
+
457
+ const roundCssNumber = t => Math.round(t * 1e4) / 1e4;
458
+
459
+ const numberToCssPx = t => `${roundCssNumber(validFiniteNumber(t))}px`;
460
+
461
+ function setStyles(t, n) {
462
+ t && n && each(n, ((n, o) => {
463
+ try {
464
+ const s = t.style;
465
+ const e = isNull(n) || isBoolean(n) ? "" : isNumber(n) ? numberToCssPx(n) : n;
466
+ if (o.indexOf("--") === 0) {
467
+ s.setProperty(o, e);
468
+ } else {
469
+ s[o] = e;
470
+ }
471
+ } catch (s) {}
472
+ }));
473
+ }
474
+
475
+ function getStyles(t, o, s) {
476
+ const e = isString(o);
477
+ let c = e ? "" : {};
478
+ if (t) {
479
+ const r = n.getComputedStyle(t, s) || t.style;
480
+ c = e ? getCSSVal(r, o) : from(o).reduce(((t, n) => {
481
+ t[n] = getCSSVal(r, n);
482
+ return t;
483
+ }), c);
484
+ }
485
+ return c;
486
+ }
487
+
488
+ const topRightBottomLeft = (t, n, o) => {
489
+ const s = n ? `${n}-` : "";
490
+ const e = o ? `-${o}` : "";
491
+ const c = `${s}top${e}`;
492
+ const r = `${s}right${e}`;
493
+ const i = `${s}bottom${e}`;
494
+ const l = `${s}left${e}`;
495
+ const a = getStyles(t, [ c, r, i, l ]);
496
+ return {
497
+ t: parseToZeroOrNumber(a[c]),
498
+ r: parseToZeroOrNumber(a[r]),
499
+ b: parseToZeroOrNumber(a[i]),
500
+ l: parseToZeroOrNumber(a[l])
501
+ };
502
+ };
503
+
504
+ const getTrasformTranslateValue = (t, n) => `translate${isObject(t) ? `(${t.x},${t.y})` : `${n ? "X" : "Y"}(${t})`}`;
505
+
506
+ const elementHasDimensions = t => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length);
507
+
508
+ const z = {
509
+ w: 0,
510
+ h: 0
511
+ };
512
+
513
+ const getElmWidthHeightProperty = (t, n) => n ? {
514
+ w: n[`${t}Width`],
515
+ h: n[`${t}Height`]
516
+ } : z;
517
+
518
+ const getWindowSize = t => getElmWidthHeightProperty("inner", t || n);
519
+
520
+ const I = bind(getElmWidthHeightProperty, "offset");
521
+
522
+ const A = bind(getElmWidthHeightProperty, "client");
523
+
524
+ const T = bind(getElmWidthHeightProperty, "scroll");
525
+
526
+ const getFractionalSize = t => {
527
+ const n = parseFloat(getStyles(t, C)) || 0;
528
+ const o = parseFloat(getStyles(t, $)) || 0;
529
+ return {
530
+ w: n - e(n),
531
+ h: o - e(o)
532
+ };
533
+ };
534
+
535
+ const getBoundingClientRect = t => t.getBoundingClientRect();
536
+
537
+ const hasDimensions = t => !!t && elementHasDimensions(t);
538
+
539
+ const domRectHasDimensions = t => !!(t && (t[$] || t[C]));
540
+
541
+ const domRectAppeared = (t, n) => {
542
+ const o = domRectHasDimensions(t);
543
+ const s = domRectHasDimensions(n);
544
+ return !s && o;
545
+ };
546
+
547
+ const removeEventListener = (t, n, o, s) => {
548
+ each(getDomTokensArray(n), (n => {
549
+ if (t) {
550
+ t.removeEventListener(n, o, s);
551
+ }
552
+ }));
553
+ };
554
+
555
+ const addEventListener = (t, n, o, s) => {
556
+ var e;
557
+ const c = (e = s && s.D) != null ? e : true;
558
+ const r = s && s.I || false;
559
+ const i = s && s.A || false;
560
+ const l = {
561
+ passive: c,
562
+ capture: r
563
+ };
564
+ return bind(runEachAndClear, getDomTokensArray(n).map((n => {
565
+ const s = i ? e => {
566
+ removeEventListener(t, n, s, r);
567
+ if (o) {
568
+ o(e);
569
+ }
570
+ } : o;
571
+ if (t) {
572
+ t.addEventListener(n, s, l);
573
+ }
574
+ return bind(removeEventListener, t, n, s, r);
575
+ })));
576
+ };
577
+
578
+ const stopPropagation = t => t.stopPropagation();
579
+
580
+ const preventDefault = t => t.preventDefault();
581
+
582
+ const stopAndPrevent = t => stopPropagation(t) || preventDefault(t);
583
+
584
+ const scrollElementTo = (t, n) => {
585
+ const {x: o, y: s} = isNumber(n) ? {
586
+ x: n,
587
+ y: n
588
+ } : n || {};
589
+ isNumber(o) && (t.scrollLeft = o);
590
+ isNumber(s) && (t.scrollTop = s);
591
+ };
592
+
593
+ const getElementScroll = t => ({
594
+ x: t.scrollLeft,
595
+ y: t.scrollTop
596
+ });
597
+
598
+ const getZeroScrollCoordinates = () => ({
599
+ T: {
600
+ x: 0,
601
+ y: 0
602
+ },
603
+ k: {
604
+ x: 0,
605
+ y: 0
606
+ }
607
+ });
608
+
609
+ const sanitizeScrollCoordinates = (t, n) => {
610
+ const {T: o, k: s} = t;
611
+ const {w: e, h: i} = n;
612
+ const sanitizeAxis = (t, n, o) => {
613
+ let s = r(t) * o;
614
+ let e = r(n) * o;
615
+ if (s === e) {
616
+ const o = c(t);
617
+ const r = c(n);
618
+ e = o > r ? 0 : e;
619
+ s = o < r ? 0 : s;
620
+ }
621
+ s = s === e ? 0 : s;
622
+ return [ s + 0, e + 0 ];
623
+ };
624
+ const [l, a] = sanitizeAxis(o.x, s.x, e);
625
+ const [u, f] = sanitizeAxis(o.y, s.y, i);
626
+ return {
627
+ T: {
628
+ x: l,
629
+ y: u
630
+ },
631
+ k: {
632
+ x: a,
633
+ y: f
634
+ }
635
+ };
636
+ };
637
+
638
+ const isDefaultDirectionScrollCoordinates = ({T: t, k: n}) => {
639
+ const getAxis = (t, n) => t === 0 && t <= n;
640
+ return {
641
+ x: getAxis(t.x, n.x),
642
+ y: getAxis(t.y, n.y)
643
+ };
644
+ };
645
+
646
+ const getScrollCoordinatesPercent = ({T: t, k: n}, o) => {
647
+ const getAxis = (t, n, o) => capNumber(0, 1, (t - o) / (t - n) || 0);
648
+ return {
649
+ x: getAxis(t.x, n.x, o.x),
650
+ y: getAxis(t.y, n.y, o.y)
651
+ };
652
+ };
653
+
654
+ const focusElement = t => {
655
+ if (t && t.focus) {
656
+ t.focus({
657
+ preventScroll: true,
658
+ focusVisible: false
659
+ });
660
+ }
661
+ };
662
+
663
+ const manageListener = (t, n) => {
664
+ each(createOrKeepArray(n), t);
665
+ };
666
+
667
+ const createEventListenerHub = t => {
668
+ const n = new Map;
669
+ const removeEvent = (t, o) => {
670
+ if (t) {
671
+ const s = n.get(t);
672
+ manageListener((t => {
673
+ if (s) {
674
+ s[t ? "delete" : "clear"](t);
675
+ }
676
+ }), o);
677
+ } else {
678
+ n.forEach((t => {
679
+ t.clear();
680
+ }));
681
+ n.clear();
682
+ }
683
+ };
684
+ const addEvent = (t, o) => {
685
+ if (isString(t)) {
686
+ const s = n.get(t) || new Set;
687
+ n.set(t, s);
688
+ manageListener((t => {
689
+ if (isFunction(t)) {
690
+ s.add(t);
691
+ }
692
+ }), o);
693
+ return bind(removeEvent, t, o);
694
+ }
695
+ if (isBoolean(o) && o) {
696
+ removeEvent();
697
+ }
698
+ const s = keys(t);
699
+ const e = [];
700
+ each(s, (n => {
701
+ const o = t[n];
702
+ if (o) {
703
+ push(e, addEvent(n, o));
704
+ }
705
+ }));
706
+ return bind(runEachAndClear, e);
707
+ };
708
+ const triggerEvent = (t, o) => {
709
+ each(from(n.get(t)), (t => {
710
+ if (o && !isEmptyArray(o)) {
711
+ t.apply(0, o);
712
+ } else {
713
+ t();
714
+ }
715
+ }));
716
+ };
717
+ addEvent(t || {});
718
+ return [ addEvent, removeEvent, triggerEvent ];
719
+ };
720
+
721
+ const k = {};
722
+
723
+ const M = {};
724
+
725
+ const addPlugins = t => {
726
+ each(t, (t => each(t, ((n, o) => {
727
+ k[o] = t[o];
728
+ }))));
729
+ };
730
+
731
+ const registerPluginModuleInstances = (t, n, o) => keys(t).map((s => {
732
+ const {static: e, instance: c} = t[s];
733
+ const [r, i, l] = o || [];
734
+ const a = o ? c : e;
735
+ if (a) {
736
+ const t = o ? a(r, i, n) : a(n);
737
+ return (l || M)[s] = t;
738
+ }
739
+ }));
740
+
741
+ const getInstancePluginModuleInstance = (t, n) => t[n];
742
+
743
+ const getStaticPluginModuleInstance = t => getInstancePluginModuleInstance(M, t);
744
+
745
+ const R = "__osOptionsValidationPlugin";
746
+
747
+ const V = `data-overlayscrollbars`;
748
+
749
+ const L = "os-environment";
750
+
751
+ const P = `${L}-scrollbar-hidden`;
752
+
753
+ const U = `${V}-initialize`;
754
+
755
+ const N = "noClipping";
756
+
757
+ const q = `${V}-body`;
758
+
759
+ const B = V;
760
+
761
+ const F = "host";
762
+
763
+ const j = `${V}-viewport`;
764
+
765
+ const X = m;
766
+
767
+ const Y = O;
768
+
769
+ const W = "arrange";
770
+
771
+ const J = "measuring";
772
+
773
+ const G = "scrolling";
774
+
775
+ const K = "scrollbarHidden";
776
+
777
+ const Q = "noContent";
778
+
779
+ const Z = `${V}-padding`;
780
+
781
+ const tt = `${V}-content`;
782
+
783
+ const nt = "os-size-observer";
784
+
785
+ const ot = `${nt}-appear`;
786
+
787
+ const st = `${nt}-listener`;
788
+
789
+ const it = "os-trinsic-observer";
790
+
791
+ const lt = "os-theme-none";
792
+
793
+ const at = "os-scrollbar";
794
+
795
+ const ut = `${at}-rtl`;
796
+
797
+ const ft = `${at}-horizontal`;
798
+
799
+ const _t = `${at}-vertical`;
800
+
801
+ const dt = `${at}-track`;
802
+
803
+ const pt = `${at}-handle`;
804
+
805
+ const vt = `${at}-visible`;
806
+
807
+ const gt = `${at}-cornerless`;
808
+
809
+ const ht = `${at}-interaction`;
810
+
811
+ const bt = `${at}-unusable`;
812
+
813
+ const yt = `${at}-auto-hide`;
814
+
815
+ const wt = `${yt}-hidden`;
816
+
817
+ const St = `${at}-wheel`;
818
+
819
+ const mt = `${dt}-interactive`;
820
+
821
+ const Ot = `${pt}-interactive`;
822
+
823
+ const Ct = "__osSizeObserverPlugin";
824
+
825
+ const getShowNativeOverlaidScrollbars = (t, n) => {
826
+ const {M: o} = n;
827
+ const [s, e] = t("showNativeOverlaidScrollbars");
828
+ return [ s && o.x && o.y, e ];
829
+ };
830
+
831
+ const overflowIsVisible = t => t.indexOf(x) === 0;
832
+
833
+ const overflowBehaviorToOverflowStyle = t => t.replace(`${x}-`, "");
834
+
835
+ const overflowCssValueToOverflowStyle = (t, n) => {
836
+ if (t === "auto") {
837
+ return n ? E : H;
838
+ }
839
+ const o = t || H;
840
+ return [ H, E, x ].includes(o) ? o : H;
841
+ };
842
+
843
+ const getElementOverflowStyle = (t, n) => {
844
+ const {overflowX: o, overflowY: s} = getStyles(t, [ m, O ]);
845
+ return {
846
+ x: overflowCssValueToOverflowStyle(o, n.x),
847
+ y: overflowCssValueToOverflowStyle(s, n.y)
848
+ };
849
+ };
850
+
851
+ const xt = "__osScrollbarsHidingPlugin";
852
+
853
+ const Et = "__osClickScrollPlugin";
854
+
855
+ const opsStringify = t => JSON.stringify(t, ((t, n) => {
856
+ if (isFunction(n)) {
857
+ throw 0;
858
+ }
859
+ return n;
860
+ }));
861
+
862
+ const getPropByPath = (t, n) => t ? `${n}`.split(".").reduce(((t, n) => t && hasOwnProperty(t, n) ? t[n] : void 0), t) : void 0;
863
+
864
+ const zt = [ 0, 33 ];
865
+
866
+ const It = [ 33, 99 ];
867
+
868
+ const At = [ 222, 666, true ];
869
+
870
+ const Tt = {
871
+ paddingAbsolute: false,
872
+ showNativeOverlaidScrollbars: false,
873
+ update: {
874
+ elementEvents: [ [ "img", "load" ] ],
875
+ debounce: {
876
+ mutation: zt,
877
+ resize: null,
878
+ event: It,
879
+ env: At
880
+ },
881
+ attributes: null,
882
+ ignoreMutation: null,
883
+ flowDirectionStyles: null
884
+ },
885
+ overflow: {
886
+ x: "scroll",
887
+ y: "scroll"
888
+ },
889
+ scrollbars: {
890
+ theme: "os-theme-dark",
891
+ visibility: "auto",
892
+ autoHide: "never",
893
+ autoHideDelay: 1300,
894
+ autoHideSuspend: false,
895
+ dragScroll: true,
896
+ clickScroll: false,
897
+ pointers: [ "mouse", "touch", "pen" ]
898
+ }
899
+ };
900
+
901
+ const getOptionsDiff = (t, n) => {
902
+ const o = {};
903
+ const s = concat(keys(n), keys(t));
904
+ each(s, (s => {
905
+ const e = t[s];
906
+ const c = n[s];
907
+ if (isObject(e) && isObject(c)) {
908
+ assignDeep(o[s] = {}, getOptionsDiff(e, c));
909
+ if (isEmptyObject(o[s])) {
910
+ delete o[s];
911
+ }
912
+ } else if (hasOwnProperty(n, s) && c !== e) {
913
+ let t = true;
914
+ if (isArray(e) || isArray(c)) {
915
+ try {
916
+ if (opsStringify(e) === opsStringify(c)) {
917
+ t = false;
918
+ }
919
+ } catch (r) {}
920
+ }
921
+ if (t) {
922
+ o[s] = c;
923
+ }
924
+ }
925
+ }));
926
+ return o;
927
+ };
928
+
929
+ const createOptionCheck = (t, n, o) => s => [ getPropByPath(t, s), o || getPropByPath(n, s) !== void 0 ];
930
+
931
+ let kt;
932
+
933
+ const getNonce = () => kt;
934
+
935
+ const setNonce = t => {
936
+ kt = t;
937
+ };
938
+
939
+ let Mt;
940
+
941
+ const createEnvironment = () => {
942
+ const getNativeScrollbarSize = (t, n, o) => {
943
+ appendChildren(document.body, t);
944
+ appendChildren(document.body, t);
945
+ const s = A(t);
946
+ const e = I(t);
947
+ const c = getFractionalSize(n);
948
+ if (o) {
949
+ removeElements(t);
950
+ }
951
+ return {
952
+ x: e.h - s.h + c.h,
953
+ y: e.w - s.w + c.w
954
+ };
955
+ };
956
+ const getNativeScrollbarsHiding = t => {
957
+ let n = false;
958
+ const o = addClass(t, P);
959
+ try {
960
+ n = getStyles(t, "scrollbar-width") === "none" || getStyles(t, "display", "::-webkit-scrollbar") === "none";
961
+ } catch (s) {}
962
+ o();
963
+ return n;
964
+ };
965
+ const t = `.${L}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${L} div{width:200%;height:200%;margin:10px 0}.${P}{scrollbar-width:none!important}.${P}::-webkit-scrollbar,.${P}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`;
966
+ const o = createDOM(`<div class="${L}"><div></div><style>${t}</style></div>`);
967
+ const s = o[0];
968
+ const e = s.firstChild;
969
+ const c = s.lastChild;
970
+ const r = getNonce();
971
+ if (r) {
972
+ c.nonce = r;
973
+ }
974
+ const [i, , l] = createEventListenerHub();
975
+ const [a, u] = createCache({
976
+ o: getNativeScrollbarSize(s, e),
977
+ i: equalXY
978
+ }, bind(getNativeScrollbarSize, s, e, true));
979
+ const [f] = u();
980
+ const _ = getNativeScrollbarsHiding(s);
981
+ const d = {
982
+ x: f.x === 0,
983
+ y: f.y === 0
984
+ };
985
+ const v = {
986
+ elements: {
987
+ host: null,
988
+ padding: !_,
989
+ viewport: t => _ && isBodyElement(t) && t,
990
+ content: false
991
+ },
992
+ scrollbars: {
993
+ slot: true
994
+ },
995
+ cancel: {
996
+ nativeScrollbarsOverlaid: false,
997
+ body: null
998
+ }
999
+ };
1000
+ const g = assignDeep({}, Tt);
1001
+ const h = bind(assignDeep, {}, g);
1002
+ const b = bind(assignDeep, {}, v);
1003
+ const y = {
1004
+ U: f,
1005
+ M: d,
1006
+ P: _,
1007
+ J: !!p,
1008
+ G: bind(i, "r"),
1009
+ K: b,
1010
+ Z: t => assignDeep(v, t) && b(),
1011
+ tt: h,
1012
+ nt: t => assignDeep(g, t) && h(),
1013
+ ot: assignDeep({}, v),
1014
+ st: assignDeep({}, g)
1015
+ };
1016
+ removeAttrs(s, "style");
1017
+ removeElements(s);
1018
+ addEventListener(n, "resize", (() => {
1019
+ l("r", []);
1020
+ }));
1021
+ if (isFunction(n.matchMedia) && !_ && (!d.x || !d.y)) {
1022
+ const addZoomListener = t => {
1023
+ const o = n.matchMedia(`(resolution: ${n.devicePixelRatio}dppx)`);
1024
+ addEventListener(o, "change", (() => {
1025
+ t();
1026
+ addZoomListener(t);
1027
+ }), {
1028
+ A: true
1029
+ });
1030
+ };
1031
+ addZoomListener((() => {
1032
+ const [t, n] = a();
1033
+ assignDeep(y.U, t);
1034
+ l("r", [ n ]);
1035
+ }));
1036
+ }
1037
+ return y;
1038
+ };
1039
+
1040
+ const getEnvironment = () => {
1041
+ if (!Mt) {
1042
+ Mt = createEnvironment();
1043
+ }
1044
+ return Mt;
1045
+ };
1046
+
1047
+ const createEventContentChange = (t, n, o) => {
1048
+ let s = false;
1049
+ const e = o ? new WeakMap : false;
1050
+ const destroy = () => {
1051
+ s = true;
1052
+ };
1053
+ const updateElements = c => {
1054
+ if (e && o) {
1055
+ const r = o.map((n => {
1056
+ const [o, s] = n || [];
1057
+ const e = s && o ? (c || find)(o, t) : [];
1058
+ return [ e, s ];
1059
+ }));
1060
+ each(r, (o => each(o[0], (c => {
1061
+ const r = o[1];
1062
+ const i = e.get(c) || [];
1063
+ const l = t.contains(c);
1064
+ if (l && r) {
1065
+ const t = addEventListener(c, r, (o => {
1066
+ if (s) {
1067
+ t();
1068
+ e.delete(c);
1069
+ } else {
1070
+ n(o);
1071
+ }
1072
+ }));
1073
+ e.set(c, push(i, t));
1074
+ } else {
1075
+ runEachAndClear(i);
1076
+ e.delete(c);
1077
+ }
1078
+ }))));
1079
+ }
1080
+ };
1081
+ updateElements();
1082
+ return [ destroy, updateElements ];
1083
+ };
1084
+
1085
+ const createDOMObserver = (t, n, o, s) => {
1086
+ let e = false;
1087
+ const {et: c, ct: r, rt: i, it: l, lt: a, ut: u} = s || {};
1088
+ const [_, d] = createEventContentChange(t, (() => e && o(true)), i);
1089
+ const p = c || [];
1090
+ const v = r || [];
1091
+ const g = concat(p, v);
1092
+ const observerCallback = (e, c) => {
1093
+ if (!isEmptyArray(c)) {
1094
+ const r = a || noop;
1095
+ const i = u || noop;
1096
+ const f = [];
1097
+ const _ = [];
1098
+ let p = false;
1099
+ let g = false;
1100
+ each(c, (o => {
1101
+ const {attributeName: e, target: c, type: a, oldValue: u, addedNodes: d, removedNodes: h} = o;
1102
+ const b = a === "attributes";
1103
+ const y = a === "childList";
1104
+ const w = t === c;
1105
+ const S = b && e;
1106
+ const m = S && getAttr(c, e || "");
1107
+ const O = isString(m) ? m : null;
1108
+ const C = S && u !== O;
1109
+ const $ = inArray(v, e) && C;
1110
+ if (n && (y || !w)) {
1111
+ const n = b && C;
1112
+ const a = n && l && is(c, l);
1113
+ const _ = a ? !r(c, e, u, O) : !b || n;
1114
+ const p = _ && !i(o, !!a, t, s);
1115
+ each(d, (t => push(f, t)));
1116
+ each(h, (t => push(f, t)));
1117
+ g = g || p;
1118
+ }
1119
+ if (!n && w && C && !r(c, e, u, O)) {
1120
+ push(_, e);
1121
+ p = p || $;
1122
+ }
1123
+ }));
1124
+ d((t => deduplicateArray(f).reduce(((n, o) => {
1125
+ push(n, find(t, o));
1126
+ return is(o, t) ? push(n, o) : n;
1127
+ }), [])));
1128
+ if (n) {
1129
+ if (!e && g) {
1130
+ o(false);
1131
+ }
1132
+ return [ false ];
1133
+ }
1134
+ if (!isEmptyArray(_) || p) {
1135
+ const t = [ deduplicateArray(_), p ];
1136
+ if (!e) {
1137
+ o.apply(0, t);
1138
+ }
1139
+ return t;
1140
+ }
1141
+ }
1142
+ };
1143
+ const h = new f(bind(observerCallback, false));
1144
+ return [ () => {
1145
+ h.observe(t, {
1146
+ attributes: true,
1147
+ attributeOldValue: true,
1148
+ attributeFilter: g,
1149
+ subtree: n,
1150
+ childList: n,
1151
+ characterData: n
1152
+ });
1153
+ e = true;
1154
+ return () => {
1155
+ if (e) {
1156
+ _();
1157
+ h.disconnect();
1158
+ e = false;
1159
+ }
1160
+ };
1161
+ }, () => {
1162
+ if (e) {
1163
+ return observerCallback(true, h.takeRecords());
1164
+ }
1165
+ } ];
1166
+ };
1167
+
1168
+ let Rt = null;
1169
+
1170
+ const createSizeObserver = (t, n, o) => {
1171
+ const {ft: s} = o || {};
1172
+ const e = getStaticPluginModuleInstance(Ct);
1173
+ const [c] = createCache({
1174
+ o: false,
1175
+ u: true
1176
+ });
1177
+ return () => {
1178
+ const o = [];
1179
+ const r = createDOM(`<div class="${nt}"><div class="${st}"></div></div>`);
1180
+ const i = r[0];
1181
+ const l = i.firstChild;
1182
+ const onSizeChangedCallbackProxy = t => {
1183
+ const o = isArray(t) && !isEmptyArray(t);
1184
+ let s = false;
1185
+ let e = false;
1186
+ if (o) {
1187
+ const n = t[0];
1188
+ const [o, , r] = c(n.contentRect);
1189
+ const i = domRectHasDimensions(o);
1190
+ e = domRectAppeared(o, r);
1191
+ s = !e && !i;
1192
+ } else {
1193
+ e = t === true;
1194
+ }
1195
+ if (!s) {
1196
+ n({
1197
+ _t: true,
1198
+ ft: e
1199
+ });
1200
+ }
1201
+ };
1202
+ if (d) {
1203
+ if (!isBoolean(Rt)) {
1204
+ const n = new d(noop);
1205
+ n.observe(t, {
1206
+ get box() {
1207
+ Rt = true;
1208
+ }
1209
+ });
1210
+ Rt = Rt || false;
1211
+ n.disconnect();
1212
+ }
1213
+ const n = debounce(onSizeChangedCallbackProxy, {
1214
+ p: 0,
1215
+ v: 0
1216
+ });
1217
+ const resizeObserverCallback = t => n(t);
1218
+ const s = new d(resizeObserverCallback);
1219
+ s.observe(Rt ? t : l);
1220
+ push(o, [ () => {
1221
+ s.disconnect();
1222
+ }, !Rt && appendChildren(t, i) ]);
1223
+ if (Rt) {
1224
+ const n = new d(resizeObserverCallback);
1225
+ n.observe(t, {
1226
+ box: "border-box"
1227
+ });
1228
+ push(o, (() => n.disconnect()));
1229
+ }
1230
+ } else if (e) {
1231
+ const [n, c] = e(l, onSizeChangedCallbackProxy, s);
1232
+ push(o, concat([ addClass(i, ot), addEventListener(i, "animationstart", n), appendChildren(t, i) ], c));
1233
+ } else {
1234
+ return noop;
1235
+ }
1236
+ return bind(runEachAndClear, o);
1237
+ };
1238
+ };
1239
+
1240
+ const createTrinsicObserver = (t, n) => {
1241
+ let o;
1242
+ const isHeightIntrinsic = t => t.h === 0 || t.isIntersecting || t.intersectionRatio > 0;
1243
+ const s = createDiv(it);
1244
+ const [e] = createCache({
1245
+ o: false
1246
+ });
1247
+ const triggerOnTrinsicChangedCallback = (t, o) => {
1248
+ if (t) {
1249
+ const s = e(isHeightIntrinsic(t));
1250
+ const [, c] = s;
1251
+ return c && !o && n(s) && [ s ];
1252
+ }
1253
+ };
1254
+ const intersectionObserverCallback = (t, n) => triggerOnTrinsicChangedCallback(n.pop(), t);
1255
+ return [ () => {
1256
+ const n = [];
1257
+ if (_) {
1258
+ o = new _(bind(intersectionObserverCallback, false), {
1259
+ root: t
1260
+ });
1261
+ o.observe(s);
1262
+ push(n, (() => {
1263
+ o.disconnect();
1264
+ }));
1265
+ } else {
1266
+ const onSizeChanged = () => {
1267
+ const t = I(s);
1268
+ triggerOnTrinsicChangedCallback(t);
1269
+ };
1270
+ push(n, createSizeObserver(s, onSizeChanged)());
1271
+ onSizeChanged();
1272
+ }
1273
+ return bind(runEachAndClear, push(n, appendChildren(t, s)));
1274
+ }, () => o && intersectionObserverCallback(true, o.takeRecords()) ];
1275
+ };
1276
+
1277
+ const createObserversSetup = (t, n, o, s) => {
1278
+ let e;
1279
+ let c;
1280
+ let r;
1281
+ let i;
1282
+ let l;
1283
+ let a;
1284
+ let u;
1285
+ let f;
1286
+ const _ = `[${B}]`;
1287
+ const p = `[${j}]`;
1288
+ const v = [ "id", "class", "style", "open", "wrap", "cols", "rows" ];
1289
+ const {dt: g, vt: h, L: b, gt: y, ht: w, V: S, bt: m, yt: O, wt: C, St: $} = t;
1290
+ const getDirectionIsRTL = t => getStyles(t, "direction") === "rtl";
1291
+ const createDebouncedObservesUpdate = () => {
1292
+ let t;
1293
+ let n;
1294
+ let o;
1295
+ const e = debounce(s, {
1296
+ p: () => t,
1297
+ v: () => n,
1298
+ S: () => o,
1299
+ m(t, n) {
1300
+ const [o] = t;
1301
+ const [s] = n;
1302
+ return [ concat(keys(o), keys(s)).reduce(((t, n) => {
1303
+ t[n] = o[n] || s[n];
1304
+ return t;
1305
+ }), {}) ];
1306
+ }
1307
+ });
1308
+ const fn = (s, c) => {
1309
+ if (isArray(c)) {
1310
+ const [s, e, r] = c;
1311
+ t = s;
1312
+ n = e;
1313
+ o = r;
1314
+ } else if (isNumber(c)) {
1315
+ t = c;
1316
+ n = false;
1317
+ o = false;
1318
+ } else {
1319
+ t = false;
1320
+ n = false;
1321
+ o = false;
1322
+ }
1323
+ e(s);
1324
+ };
1325
+ fn.O = e.O;
1326
+ return fn;
1327
+ };
1328
+ const x = {
1329
+ Ot: false,
1330
+ B: getDirectionIsRTL(g)
1331
+ };
1332
+ const H = getEnvironment();
1333
+ const E = getStaticPluginModuleInstance(xt);
1334
+ const [D] = createCache({
1335
+ i: equalWH,
1336
+ o: {
1337
+ w: 0,
1338
+ h: 0
1339
+ }
1340
+ }, (() => {
1341
+ const s = E && E.R(t, n, x, H, o).Y;
1342
+ const e = m && S;
1343
+ const c = !e && hasAttrClass(h, B, N);
1344
+ const r = !S && O(W);
1345
+ const i = r && getElementScroll(y);
1346
+ const l = i && $();
1347
+ const a = C(J, c);
1348
+ const u = r && s && s();
1349
+ const f = T(b);
1350
+ const _ = getFractionalSize(b);
1351
+ if (u) {
1352
+ u();
1353
+ }
1354
+ scrollElementTo(y, i);
1355
+ if (l) {
1356
+ l();
1357
+ }
1358
+ if (c) {
1359
+ a();
1360
+ }
1361
+ return {
1362
+ w: f.w + _.w,
1363
+ h: f.h + _.h
1364
+ };
1365
+ }));
1366
+ const z = createDebouncedObservesUpdate();
1367
+ const setDirection = t => {
1368
+ const n = getDirectionIsRTL(g);
1369
+ assignDeep(t, {
1370
+ Ct: f !== n
1371
+ });
1372
+ assignDeep(x, {
1373
+ B: n
1374
+ });
1375
+ f = n;
1376
+ };
1377
+ const onTrinsicChanged = (t, n) => {
1378
+ const [o, e] = t;
1379
+ const c = {
1380
+ $t: e
1381
+ };
1382
+ assignDeep(x, {
1383
+ Ot: o
1384
+ });
1385
+ if (!n) {
1386
+ s(c);
1387
+ }
1388
+ return c;
1389
+ };
1390
+ const onSizeChanged = ({_t: t, ft: n}) => {
1391
+ const o = n ? s : z;
1392
+ const e = {
1393
+ _t: t || n,
1394
+ ft: n
1395
+ };
1396
+ setDirection(e);
1397
+ o(e, c);
1398
+ };
1399
+ const onContentMutation = (t, n) => {
1400
+ const [, o] = D();
1401
+ const s = {
1402
+ xt: o
1403
+ };
1404
+ setDirection(s);
1405
+ if (o && !n) {
1406
+ z(s, t ? r : e);
1407
+ }
1408
+ return s;
1409
+ };
1410
+ const onHostMutation = (t, n, o) => {
1411
+ const s = {
1412
+ Ht: n
1413
+ };
1414
+ setDirection(s);
1415
+ if (n && !o) {
1416
+ z(s, e);
1417
+ }
1418
+ return s;
1419
+ };
1420
+ const [I, A] = w ? createTrinsicObserver(h, onTrinsicChanged) : [];
1421
+ const k = !S && createSizeObserver(h, onSizeChanged, {
1422
+ ft: true
1423
+ });
1424
+ const [M, R] = createDOMObserver(h, false, onHostMutation, {
1425
+ ct: v,
1426
+ et: v
1427
+ });
1428
+ const V = S && d && new d((t => {
1429
+ const n = t[t.length - 1].contentRect;
1430
+ onSizeChanged({
1431
+ _t: true,
1432
+ ft: domRectAppeared(n, u)
1433
+ });
1434
+ u = n;
1435
+ }));
1436
+ return [ () => {
1437
+ if (V) {
1438
+ V.observe(h);
1439
+ }
1440
+ const t = k && k();
1441
+ const n = I && I();
1442
+ const o = M();
1443
+ const s = H.G((t => {
1444
+ const [, n] = D();
1445
+ z({
1446
+ Et: t,
1447
+ xt: n,
1448
+ _t: m
1449
+ }, i);
1450
+ }));
1451
+ return () => {
1452
+ if (V) {
1453
+ V.disconnect();
1454
+ }
1455
+ if (t) {
1456
+ t();
1457
+ }
1458
+ if (n) {
1459
+ n();
1460
+ }
1461
+ if (a) {
1462
+ a();
1463
+ }
1464
+ o();
1465
+ s();
1466
+ };
1467
+ }, ({Dt: t, zt: n, It: o}) => {
1468
+ const s = {};
1469
+ const [u] = t("update.ignoreMutation");
1470
+ const [f, d] = t("update.attributes");
1471
+ const [g, h] = t("update.elementEvents");
1472
+ const [y, m] = t("update.debounce");
1473
+ const O = h || d;
1474
+ const C = n || o;
1475
+ const ignoreMutationFromOptions = t => isFunction(u) && !!u(t);
1476
+ if (O) {
1477
+ if (l) {
1478
+ l();
1479
+ }
1480
+ if (a) {
1481
+ a();
1482
+ }
1483
+ const [t, n] = createDOMObserver(w || b, true, onContentMutation, {
1484
+ et: concat(v, f || []),
1485
+ rt: g,
1486
+ it: _,
1487
+ ut: (t, n) => {
1488
+ const {target: o, attributeName: s} = t;
1489
+ const e = !n && s && !S ? liesBetween(o, _, p) : false;
1490
+ return e || !!closest(o, `.${at}`) || ignoreMutationFromOptions(t);
1491
+ }
1492
+ });
1493
+ a = t();
1494
+ l = n;
1495
+ }
1496
+ if (m) {
1497
+ z.O();
1498
+ if (isArray(y) || isNumber(y)) {
1499
+ e = y;
1500
+ c = false;
1501
+ r = It;
1502
+ i = At;
1503
+ } else if (isPlainObject(y)) {
1504
+ e = y.mutation;
1505
+ c = y.resize;
1506
+ r = y.event;
1507
+ i = y.env;
1508
+ } else {
1509
+ e = false;
1510
+ c = false;
1511
+ r = false;
1512
+ i = false;
1513
+ }
1514
+ }
1515
+ if (C) {
1516
+ const t = R();
1517
+ const n = A && A();
1518
+ const o = l && l();
1519
+ if (t) {
1520
+ assignDeep(s, onHostMutation(t[0], t[1], C));
1521
+ }
1522
+ if (n) {
1523
+ assignDeep(s, onTrinsicChanged(n[0], C));
1524
+ }
1525
+ if (o) {
1526
+ assignDeep(s, onContentMutation(o[0], C));
1527
+ }
1528
+ }
1529
+ setDirection(s);
1530
+ return s;
1531
+ }, x ];
1532
+ };
1533
+
1534
+ const resolveInitialization = (t, n) => isFunction(n) ? n.apply(0, t) : n;
1535
+
1536
+ const staticInitializationElement = (t, n, o, s) => {
1537
+ const e = isUndefined(s) ? o : s;
1538
+ const c = resolveInitialization(t, e);
1539
+ return c || n.apply(0, t);
1540
+ };
1541
+
1542
+ const dynamicInitializationElement = (t, n, o, s) => {
1543
+ const e = isUndefined(s) ? o : s;
1544
+ const c = resolveInitialization(t, e);
1545
+ return !!c && (isHTMLElement(c) ? c : n.apply(0, t));
1546
+ };
1547
+
1548
+ const cancelInitialization = (t, n) => {
1549
+ const {nativeScrollbarsOverlaid: o, body: s} = n || {};
1550
+ const {M: e, P: c, K: r} = getEnvironment();
1551
+ const {nativeScrollbarsOverlaid: i, body: l} = r().cancel;
1552
+ const a = o != null ? o : i;
1553
+ const u = isUndefined(s) ? l : s;
1554
+ const f = (e.x || e.y) && a;
1555
+ const _ = t && (isNull(u) ? !c : u);
1556
+ return !!f || !!_;
1557
+ };
1558
+
1559
+ const createScrollbarsSetupElements = (t, n, o, s) => {
1560
+ const e = "--os-viewport-percent";
1561
+ const c = "--os-scroll-percent";
1562
+ const r = "--os-scroll-direction";
1563
+ const {K: i} = getEnvironment();
1564
+ const {scrollbars: l} = i();
1565
+ const {slot: a} = l;
1566
+ const {dt: u, vt: f, L: _, At: d, gt: v, bt: g, V: h} = n;
1567
+ const {scrollbars: b} = d ? {} : t;
1568
+ const {slot: y} = b || {};
1569
+ const w = [];
1570
+ const S = [];
1571
+ const m = [];
1572
+ const O = dynamicInitializationElement([ u, f, _ ], (() => h && g ? u : f), a, y);
1573
+ const initScrollTimeline = t => {
1574
+ if (p) {
1575
+ let n = null;
1576
+ let s = [];
1577
+ const e = new p({
1578
+ source: v,
1579
+ axis: t
1580
+ });
1581
+ const cancelAnimation = () => {
1582
+ if (n) {
1583
+ n.cancel();
1584
+ }
1585
+ n = null;
1586
+ };
1587
+ const _setScrollPercentAnimation = c => {
1588
+ const {Tt: r} = o;
1589
+ const i = isDefaultDirectionScrollCoordinates(r)[t];
1590
+ const l = t === "x";
1591
+ const a = [ getTrasformTranslateValue(0, l), getTrasformTranslateValue(`calc(-100% + 100cq${l ? "w" : "h"})`, l) ];
1592
+ const u = i ? a : a.reverse();
1593
+ if (s[0] === u[0] && s[1] === u[1]) {
1594
+ return cancelAnimation;
1595
+ }
1596
+ s = u;
1597
+ cancelAnimation();
1598
+ n = c.kt.animate({
1599
+ clear: [ "left" ],
1600
+ transform: u
1601
+ }, {
1602
+ timeline: e
1603
+ });
1604
+ return cancelAnimation;
1605
+ };
1606
+ return {
1607
+ Mt: _setScrollPercentAnimation
1608
+ };
1609
+ }
1610
+ };
1611
+ const C = {
1612
+ x: initScrollTimeline("x"),
1613
+ y: initScrollTimeline("y")
1614
+ };
1615
+ const getViewportPercent = () => {
1616
+ const {Rt: t, Vt: n} = o;
1617
+ const getAxisValue = (t, n) => capNumber(0, 1, t / (t + n) || 0);
1618
+ return {
1619
+ x: getAxisValue(n.x, t.x),
1620
+ y: getAxisValue(n.y, t.y)
1621
+ };
1622
+ };
1623
+ const scrollbarStructureAddRemoveClass = (t, n, o) => {
1624
+ const s = o ? addClass : removeClass;
1625
+ each(t, (t => {
1626
+ s(t.Lt, n);
1627
+ }));
1628
+ };
1629
+ const scrollbarStyle = (t, n) => {
1630
+ each(t, (t => {
1631
+ const [o, s] = n(t);
1632
+ setStyles(o, s);
1633
+ }));
1634
+ };
1635
+ const scrollbarsAddRemoveClass = (t, n, o) => {
1636
+ const s = isBoolean(o);
1637
+ const e = s ? o : true;
1638
+ const c = s ? !o : true;
1639
+ if (e) {
1640
+ scrollbarStructureAddRemoveClass(S, t, n);
1641
+ }
1642
+ if (c) {
1643
+ scrollbarStructureAddRemoveClass(m, t, n);
1644
+ }
1645
+ };
1646
+ const refreshScrollbarsHandleLength = () => {
1647
+ const t = getViewportPercent();
1648
+ const createScrollbarStyleFn = t => n => [ n.Lt, {
1649
+ [e]: roundCssNumber(t) + ""
1650
+ } ];
1651
+ scrollbarStyle(S, createScrollbarStyleFn(t.x));
1652
+ scrollbarStyle(m, createScrollbarStyleFn(t.y));
1653
+ };
1654
+ const refreshScrollbarsHandleOffset = () => {
1655
+ if (!p) {
1656
+ const {Tt: t} = o;
1657
+ const n = getScrollCoordinatesPercent(t, getElementScroll(v));
1658
+ const createScrollbarStyleFn = t => n => [ n.Lt, {
1659
+ [c]: roundCssNumber(t) + ""
1660
+ } ];
1661
+ scrollbarStyle(S, createScrollbarStyleFn(n.x));
1662
+ scrollbarStyle(m, createScrollbarStyleFn(n.y));
1663
+ }
1664
+ };
1665
+ const refreshScrollbarsScrollCoordinates = () => {
1666
+ const {Tt: t} = o;
1667
+ const n = isDefaultDirectionScrollCoordinates(t);
1668
+ const createScrollbarStyleFn = t => n => [ n.Lt, {
1669
+ [r]: t ? "0" : "1"
1670
+ } ];
1671
+ scrollbarStyle(S, createScrollbarStyleFn(n.x));
1672
+ scrollbarStyle(m, createScrollbarStyleFn(n.y));
1673
+ if (p) {
1674
+ S.forEach(C.x.Mt);
1675
+ m.forEach(C.y.Mt);
1676
+ }
1677
+ };
1678
+ const refreshScrollbarsScrollbarOffset = () => {
1679
+ if (h && !g) {
1680
+ const {Rt: t, Tt: n} = o;
1681
+ const s = isDefaultDirectionScrollCoordinates(n);
1682
+ const e = getScrollCoordinatesPercent(n, getElementScroll(v));
1683
+ const styleScrollbarPosition = n => {
1684
+ const {Lt: o} = n;
1685
+ const c = parent(o) === _ && o;
1686
+ const getTranslateValue = (t, n, o) => {
1687
+ const s = n * t;
1688
+ return numberToCssPx(o ? s : -s);
1689
+ };
1690
+ return [ c, c && {
1691
+ transform: getTrasformTranslateValue({
1692
+ x: getTranslateValue(e.x, t.x, s.x),
1693
+ y: getTranslateValue(e.y, t.y, s.y)
1694
+ })
1695
+ } ];
1696
+ };
1697
+ scrollbarStyle(S, styleScrollbarPosition);
1698
+ scrollbarStyle(m, styleScrollbarPosition);
1699
+ }
1700
+ };
1701
+ const generateScrollbarDOM = t => {
1702
+ const n = t ? "x" : "y";
1703
+ const o = t ? ft : _t;
1704
+ const e = createDiv(`${at} ${o}`);
1705
+ const c = createDiv(dt);
1706
+ const r = createDiv(pt);
1707
+ const i = {
1708
+ Lt: e,
1709
+ Pt: c,
1710
+ kt: r
1711
+ };
1712
+ const l = C[n];
1713
+ push(t ? S : m, i);
1714
+ push(w, [ appendChildren(e, c), appendChildren(c, r), bind(removeElements, e), l && l.Mt(i), s(i, scrollbarsAddRemoveClass, t) ]);
1715
+ return i;
1716
+ };
1717
+ const $ = bind(generateScrollbarDOM, true);
1718
+ const x = bind(generateScrollbarDOM, false);
1719
+ const appendElements = () => {
1720
+ appendChildren(O, S[0].Lt);
1721
+ appendChildren(O, m[0].Lt);
1722
+ return bind(runEachAndClear, w);
1723
+ };
1724
+ $();
1725
+ x();
1726
+ return [ {
1727
+ Ut: refreshScrollbarsHandleLength,
1728
+ Nt: refreshScrollbarsHandleOffset,
1729
+ qt: refreshScrollbarsScrollCoordinates,
1730
+ Bt: refreshScrollbarsScrollbarOffset,
1731
+ Ft: scrollbarsAddRemoveClass,
1732
+ jt: {
1733
+ Xt: S,
1734
+ Yt: $,
1735
+ Wt: bind(scrollbarStyle, S)
1736
+ },
1737
+ Jt: {
1738
+ Xt: m,
1739
+ Yt: x,
1740
+ Wt: bind(scrollbarStyle, m)
1741
+ }
1742
+ }, appendElements ];
1743
+ };
1744
+
1745
+ const createScrollbarsSetupEvents = (t, n, o, s, r) => (i, l, u) => {
1746
+ const {vt: f, L: _, V: d, gt: p, Gt: v, St: g} = n;
1747
+ const {Lt: h, Pt: b, kt: y} = i;
1748
+ const [w, S] = selfClearTimeout(333);
1749
+ const [m, O] = selfClearTimeout(444);
1750
+ const scrollOffsetElementScrollBy = t => {
1751
+ if (isFunction(p.scrollBy)) {
1752
+ p.scrollBy({
1753
+ behavior: "smooth",
1754
+ left: t.x,
1755
+ top: t.y
1756
+ });
1757
+ }
1758
+ };
1759
+ const createInteractiveScrollEvents = () => {
1760
+ const n = "pointerup pointercancel lostpointercapture";
1761
+ const r = `client${u ? "X" : "Y"}`;
1762
+ const i = u ? C : $;
1763
+ const l = u ? "left" : "top";
1764
+ const a = u ? "w" : "h";
1765
+ const f = u ? "x" : "y";
1766
+ const _ = [];
1767
+ return addEventListener(b, "pointerdown", s((s => {
1768
+ const d = closest(s.target, `.${pt}`) === y;
1769
+ const h = d ? y : b;
1770
+ const w = t.scrollbars;
1771
+ const S = w[d ? "dragScroll" : "clickScroll"];
1772
+ const {button: C, isPrimary: $, pointerType: x} = s;
1773
+ const {pointers: H} = w;
1774
+ const E = C === 0 && $ && S && (H || []).includes(x);
1775
+ if (E) {
1776
+ runEachAndClear(_);
1777
+ O();
1778
+ const t = !d && (s.shiftKey || S === "instant");
1779
+ const w = bind(getBoundingClientRect, y);
1780
+ const C = bind(getBoundingClientRect, b);
1781
+ const getHandleOffset = (t, n) => (t || w())[l] - (n || C())[l];
1782
+ const $ = e(getBoundingClientRect(p)[i]) / I(p)[a] || 1;
1783
+ const x = getElementScroll(p)[f];
1784
+ const scrollRelative = t => {
1785
+ scrollElementTo(p, {
1786
+ [f]: x + t
1787
+ });
1788
+ };
1789
+ const moveHandleRelative = t => {
1790
+ const {Rt: n} = o;
1791
+ const s = I(b)[a] - I(y)[a];
1792
+ const e = 1 / $ * t / s;
1793
+ scrollRelative(e * n[f]);
1794
+ };
1795
+ const H = s[r];
1796
+ const E = w();
1797
+ const D = C();
1798
+ const z = E[i];
1799
+ const A = getHandleOffset(E, D) + z / 2;
1800
+ const T = H - D[l];
1801
+ const k = T - A;
1802
+ const M = d ? 0 : k;
1803
+ const releasePointerCapture = t => {
1804
+ runEachAndClear(L);
1805
+ h.releasePointerCapture(t.pointerId);
1806
+ };
1807
+ const R = d || t;
1808
+ const V = g();
1809
+ const L = [ addEventListener(v, n, releasePointerCapture), addEventListener(v, "selectstart", (t => preventDefault(t)), {
1810
+ D: false
1811
+ }), addEventListener(b, n, releasePointerCapture), R && addEventListener(b, "pointermove", (t => moveHandleRelative(M + t[r] - H))), R && (() => {
1812
+ const t = getElementScroll(p);
1813
+ V();
1814
+ const n = getElementScroll(p);
1815
+ const o = {
1816
+ x: n.x - t.x,
1817
+ y: n.y - t.y
1818
+ };
1819
+ if (c(o.x) > 3 || c(o.y) > 3) {
1820
+ g();
1821
+ scrollElementTo(p, t);
1822
+ scrollOffsetElementScrollBy(o);
1823
+ m(V);
1824
+ }
1825
+ }) ];
1826
+ h.setPointerCapture(s.pointerId);
1827
+ if (t) {
1828
+ moveHandleRelative(k);
1829
+ } else if (!d) {
1830
+ const t = getStaticPluginModuleInstance(Et);
1831
+ if (t) {
1832
+ const {Vt: n} = o;
1833
+ const s = t(scrollRelative, moveHandleRelative, bind(getHandleOffset), k, n[f], S, !!u, (t => {
1834
+ if (t) {
1835
+ V();
1836
+ } else {
1837
+ push(L, V);
1838
+ }
1839
+ }));
1840
+ push(L, s);
1841
+ push(_, bind(s, true));
1842
+ }
1843
+ }
1844
+ }
1845
+ })));
1846
+ };
1847
+ let x = true;
1848
+ return bind(runEachAndClear, [ addEventListener(y, "pointermove pointerleave", s(r)), addEventListener(h, "pointerenter", s((() => {
1849
+ l(ht, true);
1850
+ }))), addEventListener(h, "pointerleave pointercancel", s((() => {
1851
+ l(ht, false);
1852
+ }))), addEventListener(h, "wheel", s((t => {
1853
+ const {deltaX: n, deltaY: o, deltaMode: s} = t;
1854
+ if (x && s === 0 && parent(h) === f) {
1855
+ scrollOffsetElementScrollBy({
1856
+ x: n,
1857
+ y: o
1858
+ });
1859
+ }
1860
+ x = false;
1861
+ l(St, true);
1862
+ w((() => {
1863
+ x = true;
1864
+ l(St);
1865
+ }));
1866
+ preventDefault(t);
1867
+ })), {
1868
+ D: false,
1869
+ I: true
1870
+ }), !d && addEventListener(h, "mousedown", s((() => {
1871
+ const t = getFocusedElement();
1872
+ if (hasAttr(t, j) || hasAttr(t, B) || t === document.body) {
1873
+ a(bind(focusElement, _), 25);
1874
+ }
1875
+ }))), addEventListener(h, "pointerdown", (() => {
1876
+ const t = addEventListener(v, "click", (t => {
1877
+ n();
1878
+ stopAndPrevent(t);
1879
+ }), {
1880
+ A: true,
1881
+ I: true,
1882
+ D: false
1883
+ });
1884
+ const n = addEventListener(v, "pointerup pointercancel", (() => {
1885
+ n();
1886
+ setTimeout(t, 150);
1887
+ }), {
1888
+ I: true,
1889
+ D: true
1890
+ });
1891
+ }), {
1892
+ I: true,
1893
+ D: true
1894
+ }), createInteractiveScrollEvents(), S, O ]);
1895
+ };
1896
+
1897
+ const createScrollbarsSetup = (t, n, o, s, e, c, r) => {
1898
+ let i;
1899
+ let l;
1900
+ let a;
1901
+ let u;
1902
+ let f;
1903
+ let _ = noop;
1904
+ let d = 0;
1905
+ const p = [ "mouse", "pen" ];
1906
+ const skipEventIfSleeping = t => n => {
1907
+ if (!o.Kt) {
1908
+ t(n);
1909
+ }
1910
+ };
1911
+ const isHoverablePointerType = t => p.includes(t.pointerType);
1912
+ const [v, g] = selfClearTimeout();
1913
+ const [h, b] = selfClearTimeout(100);
1914
+ const [y, w] = selfClearTimeout(50);
1915
+ const [S, m] = selfClearTimeout((() => d));
1916
+ const [O, C] = createScrollbarsSetupElements(t, c, e, createScrollbarsSetupEvents(n, c, e, skipEventIfSleeping, (t => isHoverablePointerType(t) && manageScrollbarsAutoHideInstantInteraction())));
1917
+ const {vt: $, Qt: H, bt: D} = c;
1918
+ const {Ft: z, Ut: I, Nt: A, qt: T, Bt: k} = O;
1919
+ const manageScrollbarsAutoHide = (t, n) => {
1920
+ m();
1921
+ const hide = t => {
1922
+ if (o.Kt) {
1923
+ return;
1924
+ }
1925
+ z(wt, t);
1926
+ };
1927
+ if (t) {
1928
+ hide();
1929
+ } else {
1930
+ const t = a ? !i : true;
1931
+ if (d > 0 && !n) {
1932
+ S(bind(hide, t));
1933
+ } else {
1934
+ hide(t);
1935
+ }
1936
+ }
1937
+ };
1938
+ const manageScrollbarsAutoHideInstantInteraction = () => {
1939
+ if (a ? !i : !u) {
1940
+ manageScrollbarsAutoHide(true);
1941
+ h((() => {
1942
+ manageScrollbarsAutoHide(false);
1943
+ }));
1944
+ }
1945
+ };
1946
+ const onHostMouseEnter = t => {
1947
+ if (isHoverablePointerType(t)) {
1948
+ i = true;
1949
+ if (!o.Kt && a) {
1950
+ manageScrollbarsAutoHide(true);
1951
+ }
1952
+ }
1953
+ };
1954
+ const onHostMouseLeave = t => {
1955
+ if (isHoverablePointerType(t)) {
1956
+ i = false;
1957
+ if (!o.Kt && a) {
1958
+ manageScrollbarsAutoHide(false);
1959
+ }
1960
+ }
1961
+ };
1962
+ const manageAutoHideSuspension = t => {
1963
+ z(yt, t, true);
1964
+ z(yt, t, false);
1965
+ };
1966
+ const M = [ m, b, w, g, () => _(), addEventListener($, "pointerover", onHostMouseEnter, {
1967
+ A: true
1968
+ }), addEventListener($, "pointerenter", onHostMouseEnter), addEventListener($, "pointerleave", onHostMouseLeave), addEventListener($, "pointermove", skipEventIfSleeping((t => {
1969
+ if (isHoverablePointerType(t) && l) {
1970
+ manageScrollbarsAutoHideInstantInteraction();
1971
+ }
1972
+ }))), addEventListener(H, "scroll", skipEventIfSleeping((t => {
1973
+ v((() => {
1974
+ A();
1975
+ manageScrollbarsAutoHideInstantInteraction();
1976
+ }));
1977
+ r(t);
1978
+ k();
1979
+ }))) ];
1980
+ const R = getStaticPluginModuleInstance(xt);
1981
+ return [ () => bind(runEachAndClear, push(M, C())), ({Dt: t, It: n, Zt: o, tn: c}) => {
1982
+ const {nn: r, sn: i, en: p, cn: v} = c || {};
1983
+ const {Ct: g, ft: h} = o || {};
1984
+ const {B: b} = s;
1985
+ const {M: w, P: S} = getEnvironment();
1986
+ const {rn: m, j: O} = e;
1987
+ const [C, $] = t("showNativeOverlaidScrollbars");
1988
+ const [M, V] = t("scrollbars.theme");
1989
+ const [L, P] = t("scrollbars.visibility");
1990
+ const [U, N] = t("scrollbars.autoHide");
1991
+ const [q, B] = t("scrollbars.autoHideSuspend");
1992
+ const [F] = t("scrollbars.autoHideDelay");
1993
+ const [j, X] = t("scrollbars.dragScroll");
1994
+ const [Y, W] = t("scrollbars.clickScroll");
1995
+ const [J, G] = t("overflow");
1996
+ const K = h && !n;
1997
+ const Q = r || i || v || g || n;
1998
+ const Z = p || P || G;
1999
+ const tt = C && w.x && w.y;
2000
+ const nt = !S && !R;
2001
+ const ot = tt || nt;
2002
+ const setScrollbarVisibility = (t, n, o) => {
2003
+ const s = t.includes(E) && (L === x || L === "auto" && n === E);
2004
+ z(vt, s, o);
2005
+ return s;
2006
+ };
2007
+ d = F;
2008
+ if ($ || nt) {
2009
+ z(lt, ot);
2010
+ }
2011
+ if (V) {
2012
+ z(f);
2013
+ z(M, true);
2014
+ f = M;
2015
+ }
2016
+ if (B || K) {
2017
+ manageAutoHideSuspension(!q);
2018
+ if (K && q) {
2019
+ if (O.x || O.y) {
2020
+ _();
2021
+ y((() => {
2022
+ _ = addEventListener(H, E, skipEventIfSleeping(bind(manageAutoHideSuspension, true)), {
2023
+ A: true
2024
+ });
2025
+ }));
2026
+ } else {
2027
+ manageAutoHideSuspension(true);
2028
+ }
2029
+ }
2030
+ }
2031
+ if (N) {
2032
+ l = U === "move";
2033
+ a = U === "leave";
2034
+ u = U === "never";
2035
+ manageScrollbarsAutoHide(u, true);
2036
+ }
2037
+ if (X) {
2038
+ z(Ot, j);
2039
+ }
2040
+ if (W) {
2041
+ z(mt, !!Y);
2042
+ }
2043
+ if (Z) {
2044
+ const t = setScrollbarVisibility(J.x, m.x, true);
2045
+ const n = setScrollbarVisibility(J.y, m.y, false);
2046
+ const o = t && n;
2047
+ z(gt, !o);
2048
+ }
2049
+ if (Q) {
2050
+ A();
2051
+ I();
2052
+ k();
2053
+ if (v) {
2054
+ T();
2055
+ }
2056
+ z(bt, !O.x, true);
2057
+ z(bt, !O.y, false);
2058
+ z(ut, b && !D);
2059
+ }
2060
+ }, {}, O ];
2061
+ };
2062
+
2063
+ const createStructureSetupElements = t => {
2064
+ const o = getEnvironment();
2065
+ const {K: s, P: e} = o;
2066
+ const {elements: c} = s();
2067
+ const {padding: r, viewport: i, content: l} = c;
2068
+ const a = isHTMLElement(t);
2069
+ const u = a ? {} : t;
2070
+ const {elements: f} = u;
2071
+ const {padding: _, viewport: d, content: p} = f || {};
2072
+ const v = a ? t : u.target;
2073
+ const g = isBodyElement(v);
2074
+ const h = v.ownerDocument;
2075
+ const b = h.documentElement;
2076
+ const getDocumentWindow = () => h.defaultView || n;
2077
+ const y = bind(staticInitializationElement, [ v ]);
2078
+ const w = bind(dynamicInitializationElement, [ v ]);
2079
+ const S = bind(createDiv, "");
2080
+ const C = bind(y, S, i);
2081
+ const $ = bind(w, S, l);
2082
+ const elementHasOverflow = t => {
2083
+ const n = I(t);
2084
+ const o = T(t);
2085
+ const s = getStyles(t, m);
2086
+ const e = getStyles(t, O);
2087
+ return o.w - n.w > 0 && !overflowIsVisible(s) || o.h - n.h > 0 && !overflowIsVisible(e);
2088
+ };
2089
+ const x = C(d);
2090
+ const H = x === v;
2091
+ const E = H && g;
2092
+ const D = !H && $(p);
2093
+ const z = !H && x === D;
2094
+ const A = E ? b : x;
2095
+ const k = E ? A : v;
2096
+ const M = !H && w(S, r, _);
2097
+ const R = !z && D;
2098
+ const V = [ R, A, M, k ].map((t => isHTMLElement(t) && !parent(t) && t));
2099
+ const elementIsGenerated = t => t && inArray(V, t);
2100
+ const L = !elementIsGenerated(A) && elementHasOverflow(A) ? A : v;
2101
+ const P = E ? b : A;
2102
+ const N = E ? h : A;
2103
+ const X = {
2104
+ dt: v,
2105
+ vt: k,
2106
+ L: A,
2107
+ ln: M,
2108
+ ht: R,
2109
+ gt: P,
2110
+ Qt: N,
2111
+ an: g ? b : L,
2112
+ Gt: h,
2113
+ bt: g,
2114
+ At: a,
2115
+ V: H,
2116
+ un: getDocumentWindow,
2117
+ yt: t => hasAttrClass(A, j, t),
2118
+ wt: (t, n) => addRemoveAttrClass(A, j, t, n),
2119
+ St: () => addRemoveAttrClass(P, j, G, true)
2120
+ };
2121
+ const {dt: Y, vt: W, ln: J, L: Q, ht: nt} = X;
2122
+ const ot = [ () => {
2123
+ removeAttrs(W, [ B, U ]);
2124
+ removeAttrs(Y, U);
2125
+ if (g) {
2126
+ removeAttrs(b, [ U, B ]);
2127
+ }
2128
+ } ];
2129
+ let st = contents([ nt, Q, J, W, Y ].find((t => t && !elementIsGenerated(t))));
2130
+ const et = E ? Y : nt || Q;
2131
+ const ct = bind(runEachAndClear, ot);
2132
+ const appendElements = () => {
2133
+ const t = getDocumentWindow();
2134
+ const n = getFocusedElement();
2135
+ const unwrap = t => {
2136
+ appendChildren(parent(t), contents(t));
2137
+ removeElements(t);
2138
+ };
2139
+ const prepareWrapUnwrapFocus = t => addEventListener(t, "focusin focusout focus blur", stopAndPrevent, {
2140
+ I: true,
2141
+ D: false
2142
+ });
2143
+ const o = "tabindex";
2144
+ const s = getAttr(Q, o);
2145
+ const c = prepareWrapUnwrapFocus(n);
2146
+ setAttrs(W, B, H ? "" : F);
2147
+ setAttrs(J, Z, "");
2148
+ setAttrs(Q, j, "");
2149
+ setAttrs(nt, tt, "");
2150
+ if (!H) {
2151
+ setAttrs(Q, o, s || "-1");
2152
+ if (g) {
2153
+ setAttrs(b, q, "");
2154
+ }
2155
+ }
2156
+ appendChildren(et, st);
2157
+ appendChildren(W, J);
2158
+ appendChildren(J || W, !H && Q);
2159
+ appendChildren(Q, nt);
2160
+ push(ot, [ c, () => {
2161
+ const t = getFocusedElement();
2162
+ const n = elementIsGenerated(Q);
2163
+ const e = n && t === Q ? Y : t;
2164
+ const c = prepareWrapUnwrapFocus(e);
2165
+ removeAttrs(J, Z);
2166
+ removeAttrs(nt, tt);
2167
+ removeAttrs(Q, j);
2168
+ if (g) {
2169
+ removeAttrs(b, q);
2170
+ }
2171
+ if (s) {
2172
+ setAttrs(Q, o, s);
2173
+ } else {
2174
+ removeAttrs(Q, o);
2175
+ }
2176
+ if (elementIsGenerated(nt)) {
2177
+ unwrap(nt);
2178
+ }
2179
+ if (n) {
2180
+ unwrap(Q);
2181
+ }
2182
+ if (elementIsGenerated(J)) {
2183
+ unwrap(J);
2184
+ }
2185
+ focusElement(e);
2186
+ c();
2187
+ } ]);
2188
+ if (e && !H) {
2189
+ addAttrClass(Q, j, K);
2190
+ push(ot, bind(removeAttrs, Q, j));
2191
+ }
2192
+ focusElement(!H && g && n === Y && t.top === t ? Q : n);
2193
+ c();
2194
+ st = 0;
2195
+ return ct;
2196
+ };
2197
+ return [ X, appendElements, ct ];
2198
+ };
2199
+
2200
+ const createTrinsicUpdateSegment = ({ht: t}) => ({Zt: n, fn: o, It: s}) => {
2201
+ const {$t: e} = n || {};
2202
+ const {Ot: c} = o;
2203
+ const r = t && (e || s);
2204
+ if (r) {
2205
+ setStyles(t, {
2206
+ [$]: c && "100%"
2207
+ });
2208
+ }
2209
+ };
2210
+
2211
+ const createPaddingUpdateSegment = ({vt: t, ln: n, L: o, V: s}, e) => {
2212
+ const [c, r] = createCache({
2213
+ i: equalTRBL,
2214
+ o: topRightBottomLeft()
2215
+ }, bind(topRightBottomLeft, t, "padding", ""));
2216
+ return ({Dt: t, Zt: i, fn: l, It: a}) => {
2217
+ let [u, f] = r(a);
2218
+ const {P: _} = getEnvironment();
2219
+ const {_t: d, xt: p, Ct: m} = i || {};
2220
+ const {B: O} = l;
2221
+ const [$, x] = t("paddingAbsolute");
2222
+ const H = a || p;
2223
+ if (d || f || H) {
2224
+ [u, f] = c(a);
2225
+ }
2226
+ const E = !s && (x || m || f);
2227
+ if (E) {
2228
+ const t = !$ || !n && !_;
2229
+ const s = u.r + u.l;
2230
+ const c = u.t + u.b;
2231
+ const r = {
2232
+ [w]: t && !O ? -s : 0,
2233
+ [S]: t ? -c : 0,
2234
+ [y]: t && O ? -s : 0,
2235
+ top: t ? -u.t : 0,
2236
+ right: t ? O ? -u.r : "auto" : 0,
2237
+ left: t ? O ? "auto" : -u.l : 0,
2238
+ [C]: t && `calc(100% + ${s}px)`
2239
+ };
2240
+ const i = {
2241
+ [v]: t ? u.t : 0,
2242
+ [g]: t ? u.r : 0,
2243
+ [b]: t ? u.b : 0,
2244
+ [h]: t ? u.l : 0
2245
+ };
2246
+ setStyles(n || o, r);
2247
+ setStyles(o, i);
2248
+ assignDeep(e, {
2249
+ ln: u,
2250
+ _n: !t,
2251
+ F: n ? i : assignDeep({}, r, i)
2252
+ });
2253
+ }
2254
+ return {
2255
+ dn: E
2256
+ };
2257
+ };
2258
+ };
2259
+
2260
+ const createOverflowUpdateSegment = (t, s) => {
2261
+ const e = getEnvironment();
2262
+ const {vt: r, ln: i, L: a, V: u, Qt: f, gt: _, bt: d, wt: p, un: v} = t;
2263
+ const {P: g} = e;
2264
+ const h = d && u;
2265
+ const b = bind(o, 0);
2266
+ const y = {
2267
+ display: () => false,
2268
+ direction: t => t !== "ltr",
2269
+ flexDirection: t => t.endsWith("-reverse"),
2270
+ writingMode: t => t !== "horizontal-tb"
2271
+ };
2272
+ const w = keys(y);
2273
+ const S = {
2274
+ i: equalWH,
2275
+ o: {
2276
+ w: 0,
2277
+ h: 0
2278
+ }
2279
+ };
2280
+ const m = {
2281
+ i: equalXY,
2282
+ o: {}
2283
+ };
2284
+ const setMeasuringMode = t => {
2285
+ p(J, !h && t);
2286
+ };
2287
+ const getFlowDirectionStyles = () => getStyles(a, w);
2288
+ const getMeasuredScrollCoordinates = (t, n) => {
2289
+ const o = !keys(t).length;
2290
+ const s = n ? true : w.some((n => {
2291
+ const o = t[n];
2292
+ return isString(o) && y[n](o);
2293
+ }));
2294
+ if (o || !s || !hasDimensions(a)) {
2295
+ return {
2296
+ T: {
2297
+ x: 0,
2298
+ y: 0
2299
+ },
2300
+ k: {
2301
+ x: 1,
2302
+ y: 1
2303
+ }
2304
+ };
2305
+ }
2306
+ setMeasuringMode(true);
2307
+ const e = getElementScroll(_);
2308
+ const r = addEventListener(f, E, (t => {
2309
+ const n = getElementScroll(_);
2310
+ if (t.isTrusted && n.x === e.x && n.y === e.y) {
2311
+ stopPropagation(t);
2312
+ }
2313
+ }), {
2314
+ I: true,
2315
+ A: true
2316
+ });
2317
+ const i = p(Q, true);
2318
+ scrollElementTo(_, {
2319
+ x: 0,
2320
+ y: 0
2321
+ });
2322
+ i();
2323
+ const u = getElementScroll(_);
2324
+ const d = T(_);
2325
+ scrollElementTo(_, {
2326
+ x: d.w,
2327
+ y: d.h
2328
+ });
2329
+ const v = getElementScroll(_);
2330
+ const g = {
2331
+ x: v.x - u.x,
2332
+ y: v.y - u.y
2333
+ };
2334
+ scrollElementTo(_, {
2335
+ x: -d.w,
2336
+ y: -d.h
2337
+ });
2338
+ const h = getElementScroll(_);
2339
+ const b = {
2340
+ x: h.x - u.x,
2341
+ y: h.y - u.y
2342
+ };
2343
+ const S = {
2344
+ x: c(g.x) >= c(b.x) ? v.x : h.x,
2345
+ y: c(g.y) >= c(b.y) ? v.y : h.y
2346
+ };
2347
+ scrollElementTo(_, e);
2348
+ l((() => r()));
2349
+ return {
2350
+ T: u,
2351
+ k: S
2352
+ };
2353
+ };
2354
+ const getOverflowAmount = (t, o) => {
2355
+ const s = n.devicePixelRatio % 1 !== 0 ? 1 : 0;
2356
+ const e = {
2357
+ w: b(t.w - o.w),
2358
+ h: b(t.h - o.h)
2359
+ };
2360
+ return {
2361
+ w: e.w > s ? e.w : 0,
2362
+ h: e.h > s ? e.h : 0
2363
+ };
2364
+ };
2365
+ const getViewportOverflowStyle = (t, n) => {
2366
+ const getAxisOverflowStyle = (t, n, o, s) => {
2367
+ const e = t === x ? H : overflowBehaviorToOverflowStyle(t);
2368
+ const c = overflowIsVisible(t);
2369
+ const r = overflowIsVisible(o);
2370
+ if (!n && !s) {
2371
+ return H;
2372
+ }
2373
+ if (c && r) {
2374
+ return x;
2375
+ }
2376
+ if (c) {
2377
+ const t = n ? x : H;
2378
+ return n && s ? e : t;
2379
+ }
2380
+ const i = r && s ? x : H;
2381
+ return n ? e : i;
2382
+ };
2383
+ return {
2384
+ x: getAxisOverflowStyle(n.x, t.x, n.y, t.y),
2385
+ y: getAxisOverflowStyle(n.y, t.y, n.x, t.x)
2386
+ };
2387
+ };
2388
+ const setViewportOverflowStyle = t => {
2389
+ const createAllOverflowStyleClassNames = t => [ x, H, E ].map((n => createViewportOverflowStyleClassName(overflowCssValueToOverflowStyle(n), t)));
2390
+ const n = createAllOverflowStyleClassNames(true).concat(createAllOverflowStyleClassNames()).join(" ");
2391
+ p(n);
2392
+ p(keys(t).map((n => createViewportOverflowStyleClassName(t[n], n === "x"))).join(" "), true);
2393
+ };
2394
+ const [O, C] = createCache(S, bind(getFractionalSize, a));
2395
+ const [$, D] = createCache(S, bind(T, a));
2396
+ const [z, I] = createCache(S);
2397
+ const [k] = createCache(m);
2398
+ const [M, R] = createCache(S);
2399
+ const [V] = createCache(m);
2400
+ const [L] = createCache({
2401
+ i: (t, n) => equal(t, n, deduplicateArray(concat(keys(t), keys(n)))),
2402
+ o: {}
2403
+ });
2404
+ const [P, U] = createCache({
2405
+ i: (t, n) => equalXY(t.T, n.T) && equalXY(t.k, n.k),
2406
+ o: getZeroScrollCoordinates()
2407
+ });
2408
+ const q = getStaticPluginModuleInstance(xt);
2409
+ const createViewportOverflowStyleClassName = (t, n) => {
2410
+ const o = n ? X : Y;
2411
+ return `${o}${capitalizeFirstLetter(t)}`;
2412
+ };
2413
+ return ({Dt: n, Zt: o, fn: c, It: l}, {dn: u}) => {
2414
+ const {_t: f, Ht: _, xt: d, Ct: y, ft: w, Et: S} = o || {};
2415
+ const m = q && q.R(t, s, c, e, n);
2416
+ const {X: x, Y: H, W: E} = m || {};
2417
+ const [T, F] = getShowNativeOverlaidScrollbars(n, e);
2418
+ const [j, X] = n("overflow");
2419
+ const Y = overflowIsVisible(j.x);
2420
+ const W = overflowIsVisible(j.y);
2421
+ const J = f || u || d || y || S || F;
2422
+ let G = C(l);
2423
+ let Q = D(l);
2424
+ let tt = I(l);
2425
+ let nt = R(l);
2426
+ if (F && g) {
2427
+ p(K, !T);
2428
+ }
2429
+ if (J) {
2430
+ if (hasAttrClass(r, B, N)) {
2431
+ setMeasuringMode(true);
2432
+ }
2433
+ const t = H && H();
2434
+ const [n] = G = O(l);
2435
+ const [o] = Q = $(l);
2436
+ const s = A(a);
2437
+ const e = h && getWindowSize(v());
2438
+ const c = {
2439
+ w: b(o.w + n.w),
2440
+ h: b(o.h + n.h)
2441
+ };
2442
+ const i = {
2443
+ w: b((e ? e.w : s.w + b(s.w - o.w)) + n.w),
2444
+ h: b((e ? e.h : s.h + b(s.h - o.h)) + n.h)
2445
+ };
2446
+ if (t) {
2447
+ t();
2448
+ }
2449
+ nt = M(i);
2450
+ tt = z(getOverflowAmount(c, i), l);
2451
+ }
2452
+ const [ot, st] = nt;
2453
+ const [et, ct] = tt;
2454
+ const [rt, it] = Q;
2455
+ const [lt, at] = G;
2456
+ const [ut] = k({
2457
+ x: et.w > 0,
2458
+ y: et.h > 0
2459
+ });
2460
+ const ft = Y && W && (ut.x || ut.y) || Y && ut.x && !ut.y || W && ut.y && !ut.x;
2461
+ const _t = u || y || S || at || it || st || ct || X || F || J || _ && h;
2462
+ const [dt] = n("update.flowDirectionStyles");
2463
+ const [pt, vt] = L(dt ? dt(a) || {} : getFlowDirectionStyles(), l);
2464
+ const gt = y || w || vt || l;
2465
+ const [ht, bt] = gt ? P(getMeasuredScrollCoordinates(pt, !!dt), l) : U();
2466
+ let yt = getViewportOverflowStyle(ut, j);
2467
+ setMeasuringMode(false);
2468
+ if (_t) {
2469
+ setViewportOverflowStyle(yt);
2470
+ yt = getElementOverflowStyle(a, ut);
2471
+ if (E && x) {
2472
+ x(yt, rt, lt);
2473
+ setStyles(a, E(yt));
2474
+ }
2475
+ }
2476
+ const [wt, St] = V(yt);
2477
+ addRemoveAttrClass(r, B, N, ft);
2478
+ addRemoveAttrClass(i, Z, N, ft);
2479
+ assignDeep(s, {
2480
+ rn: wt,
2481
+ Vt: {
2482
+ x: ot.w,
2483
+ y: ot.h
2484
+ },
2485
+ Rt: {
2486
+ x: et.w,
2487
+ y: et.h
2488
+ },
2489
+ j: ut,
2490
+ Tt: sanitizeScrollCoordinates(ht, et)
2491
+ });
2492
+ return {
2493
+ en: St,
2494
+ nn: st,
2495
+ sn: ct,
2496
+ cn: bt || ct
2497
+ };
2498
+ };
2499
+ };
2500
+
2501
+ const createStructureSetup = t => {
2502
+ const [n, o, s] = createStructureSetupElements(t);
2503
+ const e = {
2504
+ ln: {
2505
+ t: 0,
2506
+ r: 0,
2507
+ b: 0,
2508
+ l: 0
2509
+ },
2510
+ _n: false,
2511
+ F: {
2512
+ [w]: 0,
2513
+ [S]: 0,
2514
+ [y]: 0,
2515
+ [v]: 0,
2516
+ [g]: 0,
2517
+ [b]: 0,
2518
+ [h]: 0
2519
+ },
2520
+ Vt: {
2521
+ x: 0,
2522
+ y: 0
2523
+ },
2524
+ Rt: {
2525
+ x: 0,
2526
+ y: 0
2527
+ },
2528
+ rn: {
2529
+ x: H,
2530
+ y: H
2531
+ },
2532
+ j: {
2533
+ x: false,
2534
+ y: false
2535
+ },
2536
+ Tt: getZeroScrollCoordinates()
2537
+ };
2538
+ const {dt: c, gt: r, V: i, St: l} = n;
2539
+ const {P: a, M: u} = getEnvironment();
2540
+ const f = !a && (u.x || u.y);
2541
+ const _ = [ createTrinsicUpdateSegment(n), createPaddingUpdateSegment(n, e), createOverflowUpdateSegment(n, e) ];
2542
+ return [ o, t => {
2543
+ const n = {};
2544
+ const o = f;
2545
+ const s = o && getElementScroll(r);
2546
+ const e = s && l();
2547
+ each(_, (o => {
2548
+ assignDeep(n, o(t, n) || {});
2549
+ }));
2550
+ scrollElementTo(r, s);
2551
+ if (e) {
2552
+ e();
2553
+ }
2554
+ if (!i) {
2555
+ scrollElementTo(c, 0);
2556
+ }
2557
+ return n;
2558
+ }, e, n, s ];
2559
+ };
2560
+
2561
+ const createSetups = (t, n, o, s) => {
2562
+ let e = false;
2563
+ const c = {
2564
+ Kt: false,
2565
+ pn: false
2566
+ };
2567
+ const r = createOptionCheck(n, {});
2568
+ const [i, l, a, u, f] = createStructureSetup(t);
2569
+ const [_, d, p] = createObserversSetup(u, a, r, (t => {
2570
+ update({}, t);
2571
+ }));
2572
+ const [v, g, , h] = createScrollbarsSetup(t, n, c, p, a, u, s);
2573
+ const updateHintsAreTruthy = t => keys(t).some((n => !!t[n]));
2574
+ const update = (t, s) => {
2575
+ const {Kt: r, pn: i} = c;
2576
+ if (i || r && e) {
2577
+ return false;
2578
+ }
2579
+ const {vn: a, It: u, zt: f} = t;
2580
+ const _ = a || {};
2581
+ const v = !!u || !e;
2582
+ const h = {
2583
+ Dt: createOptionCheck(n, _, v),
2584
+ vn: _,
2585
+ It: v
2586
+ };
2587
+ const b = s || d(assignDeep({}, h, {
2588
+ zt: f
2589
+ }));
2590
+ const y = l(assignDeep({}, h, {
2591
+ fn: p,
2592
+ Zt: b
2593
+ }));
2594
+ g(assignDeep({}, h, {
2595
+ Zt: b,
2596
+ tn: y
2597
+ }));
2598
+ const w = updateHintsAreTruthy(b);
2599
+ const S = updateHintsAreTruthy(y);
2600
+ const m = w || S || !isEmptyObject(_) || v;
2601
+ e = true;
2602
+ if (m) {
2603
+ o(t, {
2604
+ Zt: b,
2605
+ tn: y
2606
+ });
2607
+ }
2608
+ return m;
2609
+ };
2610
+ return [ () => {
2611
+ const {an: t, gt: n, St: o} = u;
2612
+ const s = getElementScroll(t);
2613
+ const e = [ _(), i(), v(), () => {
2614
+ c.pn = true;
2615
+ } ];
2616
+ const r = o();
2617
+ scrollElementTo(n, s);
2618
+ r();
2619
+ return bind(runEachAndClear, e);
2620
+ }, update, t => {
2621
+ const n = c.Kt;
2622
+ c.Kt = t;
2623
+ if (!t && n !== t) {
2624
+ update({
2625
+ It: true,
2626
+ zt: true
2627
+ });
2628
+ }
2629
+ }, () => {
2630
+ g({
2631
+ Dt: createOptionCheck(n, {}, false),
2632
+ vn: {},
2633
+ It: false
2634
+ });
2635
+ }, () => ({
2636
+ gn: c,
2637
+ hn: p,
2638
+ bn: a
2639
+ }), {
2640
+ yn: u,
2641
+ wn: h
2642
+ }, f ];
2643
+ };
2644
+
2645
+ const Vt = new WeakMap;
2646
+
2647
+ const addInstance = (t, n) => {
2648
+ Vt.set(t, n);
2649
+ };
2650
+
2651
+ const removeInstance = t => {
2652
+ Vt.delete(t);
2653
+ };
2654
+
2655
+ const getInstance = t => Vt.get(t);
2656
+
2657
+ const OverlayScrollbars = (t, n, o) => {
2658
+ const {tt: s} = getEnvironment();
2659
+ const e = isHTMLElement(t);
2660
+ const c = e ? t : t.target;
2661
+ const r = getInstance(c);
2662
+ if (n && !r) {
2663
+ const r = [];
2664
+ const i = {};
2665
+ const validateOptions = t => {
2666
+ const n = removeUndefinedProperties(t);
2667
+ const o = getStaticPluginModuleInstance(R);
2668
+ return o ? o(n, true) : n;
2669
+ };
2670
+ const l = assignDeep({}, s(), validateOptions(n));
2671
+ const [a, u, f] = createEventListenerHub();
2672
+ const [_, d, p] = createEventListenerHub(o);
2673
+ const triggerEvent = (t, n) => {
2674
+ p(t, n);
2675
+ f(t, n);
2676
+ };
2677
+ const [v, g, h, b, y, w, S] = createSetups(t, l, (({vn: t, It: n}, {Zt: o, tn: s}) => {
2678
+ const {_t: e, Ct: c, $t: r, xt: i, Ht: l, ft: a} = o;
2679
+ const {nn: u, sn: f, en: _, cn: d} = s;
2680
+ triggerEvent("updated", [ m, {
2681
+ updateHints: {
2682
+ sizeChanged: !!e,
2683
+ directionChanged: !!c,
2684
+ heightIntrinsicChanged: !!r,
2685
+ overflowEdgeChanged: !!u,
2686
+ overflowAmountChanged: !!f,
2687
+ overflowStyleChanged: !!_,
2688
+ scrollCoordinatesChanged: !!d,
2689
+ contentMutation: !!i,
2690
+ hostMutation: !!l,
2691
+ appear: !!a
2692
+ },
2693
+ changedOptions: t || {},
2694
+ force: !!n
2695
+ } ]);
2696
+ }), (t => triggerEvent("scroll", [ m, t ])));
2697
+ const destroy = t => {
2698
+ const {gn: n} = y();
2699
+ const {pn: o} = n;
2700
+ if (o) {
2701
+ return;
2702
+ }
2703
+ removeInstance(c);
2704
+ runEachAndClear(r);
2705
+ triggerEvent("destroyed", [ m, t ]);
2706
+ u();
2707
+ d();
2708
+ };
2709
+ const update = t => g({
2710
+ It: t,
2711
+ zt: true
2712
+ });
2713
+ const m = {
2714
+ options(t, n) {
2715
+ if (t) {
2716
+ const o = n ? s() : {};
2717
+ const e = getOptionsDiff(l, assignDeep(o, validateOptions(t)));
2718
+ if (!isEmptyObject(e)) {
2719
+ assignDeep(l, e);
2720
+ g({
2721
+ vn: e
2722
+ });
2723
+ }
2724
+ }
2725
+ return assignDeep({}, l);
2726
+ },
2727
+ on: _,
2728
+ off: (t, n) => {
2729
+ if (t && n) {
2730
+ d(t, n);
2731
+ }
2732
+ },
2733
+ state() {
2734
+ const {gn: t, hn: n, bn: o} = y();
2735
+ const {pn: s, Kt: e} = t;
2736
+ const {B: c} = n;
2737
+ const {Vt: r, Rt: i, rn: l, j: a, ln: u, _n: f, Tt: _} = o;
2738
+ return assignDeep({}, {
2739
+ overflowEdge: r,
2740
+ overflowAmount: i,
2741
+ overflowStyle: l,
2742
+ hasOverflow: a,
2743
+ scrollCoordinates: {
2744
+ start: _.T,
2745
+ end: _.k
2746
+ },
2747
+ padding: u,
2748
+ paddingAbsolute: f,
2749
+ directionRTL: c,
2750
+ sleeping: e,
2751
+ destroyed: s
2752
+ });
2753
+ },
2754
+ elements() {
2755
+ const {dt: t, vt: n, ln: o, L: s, ht: e, gt: c, Qt: r} = w.yn;
2756
+ const {jt: i, Jt: l} = w.wn;
2757
+ const translateScrollbarStructure = t => {
2758
+ const {kt: n, Pt: o, Lt: s} = t;
2759
+ return {
2760
+ scrollbar: s,
2761
+ track: o,
2762
+ handle: n
2763
+ };
2764
+ };
2765
+ const translateScrollbarsSetupElement = t => {
2766
+ const {Xt: n, Yt: o} = t;
2767
+ const s = translateScrollbarStructure(n[0]);
2768
+ return assignDeep({}, s, {
2769
+ clone: () => {
2770
+ const t = translateScrollbarStructure(o());
2771
+ b();
2772
+ return t;
2773
+ }
2774
+ });
2775
+ };
2776
+ return assignDeep({}, {
2777
+ target: t,
2778
+ host: n,
2779
+ padding: o || s,
2780
+ viewport: s,
2781
+ content: e || s,
2782
+ scrollOffsetElement: c,
2783
+ scrollEventElement: r,
2784
+ scrollbarHorizontal: translateScrollbarsSetupElement(i),
2785
+ scrollbarVertical: translateScrollbarsSetupElement(l)
2786
+ });
2787
+ },
2788
+ update: update,
2789
+ destroy: bind(destroy, false),
2790
+ sleep: h,
2791
+ plugin: t => i[keys(t)[0]]
2792
+ };
2793
+ push(r, [ S ]);
2794
+ addInstance(c, m);
2795
+ registerPluginModuleInstances(k, OverlayScrollbars, [ m, a, i ]);
2796
+ if (cancelInitialization(w.yn.bt, !e && t.cancel)) {
2797
+ destroy(true);
2798
+ return m;
2799
+ }
2800
+ push(r, v());
2801
+ triggerEvent("initialized", [ m ]);
2802
+ m.update();
2803
+ return m;
2804
+ }
2805
+ return r;
2806
+ };
2807
+
2808
+ OverlayScrollbars.plugin = t => {
2809
+ const n = isArray(t);
2810
+ const o = n ? t : [ t ];
2811
+ const s = o.map((t => registerPluginModuleInstances(t, OverlayScrollbars)[0]));
2812
+ addPlugins(o);
2813
+ return n ? s : s[0];
2814
+ };
2815
+
2816
+ OverlayScrollbars.valid = t => {
2817
+ const n = t && t.elements;
2818
+ const o = isFunction(n) && n();
2819
+ return isPlainObject(o) && !!getInstance(o.target);
2820
+ };
2821
+
2822
+ OverlayScrollbars.env = () => {
2823
+ const {U: t, M: n, P: o, J: s, ot: e, st: c, K: r, Z: i, tt: l, nt: a} = getEnvironment();
2824
+ return assignDeep({}, {
2825
+ scrollbarsSize: t,
2826
+ scrollbarsOverlaid: n,
2827
+ scrollbarsHiding: o,
2828
+ scrollTimeline: s,
2829
+ staticDefaultInitialization: e,
2830
+ staticDefaultOptions: c,
2831
+ getDefaultInitialization: r,
2832
+ setDefaultInitialization: i,
2833
+ getDefaultOptions: l,
2834
+ setDefaultOptions: a
2835
+ });
2836
+ };
2837
+
2838
+ OverlayScrollbars.nonce = setNonce;
2839
+
2840
+ OverlayScrollbars.trustedTypePolicy = setTrustedTypePolicy;
2841
+
2842
+ exports.OverlayScrollbars = OverlayScrollbars;