@ganpatiinfo/gids-core-web 16.0.0 → 18.0.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 (271) hide show
  1. package/dist/css/elements.css +4 -0
  2. package/dist/css/elements.css.map +1 -1
  3. package/dist/css/index.css +701 -4
  4. package/dist/css/index.css.map +1 -1
  5. package/dist/custom-elements.json +7 -1
  6. package/dist/gids-action-bar.js +1 -1
  7. package/dist/gids-activity-gauge.js +1 -1
  8. package/dist/gids-advanced-tooltip.js +1 -1
  9. package/dist/gids-bar-chart.js +1 -1
  10. package/dist/gids-bento-card.d.ts +11 -0
  11. package/dist/gids-bento-card.js +1 -0
  12. package/dist/gids-calendar-header-panel.js +1 -1
  13. package/dist/gids-calendar-month-list.js +1 -1
  14. package/dist/gids-calendar-year-list.js +1 -1
  15. package/dist/gids-calendar.js +1 -1
  16. package/dist/gids-carousel.d.ts +11 -0
  17. package/dist/gids-carousel.js +1 -0
  18. package/dist/gids-chart-legend-item.js +1 -1
  19. package/dist/gids-chart-legend.js +1 -1
  20. package/dist/gids-chart.js +1 -1
  21. package/dist/gids-chevron-button.js +1 -1
  22. package/dist/gids-dot.js +1 -1
  23. package/dist/gids-dropdown-field.js +1 -1
  24. package/dist/gids-dropdown-picker.js +1 -1
  25. package/dist/gids-dropdown.js +1 -1
  26. package/dist/gids-expansion-body-list-item.js +1 -1
  27. package/dist/gids-expansion-body-list.js +1 -1
  28. package/dist/gids-expansion-group.js +1 -1
  29. package/dist/gids-expansion.js +1 -1
  30. package/dist/gids-field.js +1 -1
  31. package/dist/gids-filter.js +1 -1
  32. package/dist/gids-flyout-panel.d.ts +11 -0
  33. package/dist/gids-flyout-panel.js +1 -0
  34. package/dist/gids-header-navigation-item.js +1 -1
  35. package/dist/gids-header-navigation.js +1 -1
  36. package/dist/gids-icon.js +1 -1
  37. package/dist/gids-input.js +1 -1
  38. package/dist/gids-level-gauge.js +1 -1
  39. package/dist/gids-line-chart.js +1 -1
  40. package/dist/gids-md-table.js +1 -1
  41. package/dist/gids-notification.js +1 -1
  42. package/dist/gids-overflow-container.js +1 -1
  43. package/dist/gids-overlay-provider.js +1 -1
  44. package/dist/gids-password-field.js +1 -1
  45. package/dist/gids-pie-chart.js +1 -1
  46. package/dist/gids-popover.js +1 -1
  47. package/dist/gids-profile-menu-header.js +1 -1
  48. package/dist/gids-profile-menu.js +1 -1
  49. package/dist/gids-profile.js +1 -1
  50. package/dist/gids-progress-circle.js +1 -1
  51. package/dist/gids-scrim.js +1 -1
  52. package/dist/gids-skeleton.js +1 -1
  53. package/dist/gids-snackbar.js +1 -1
  54. package/dist/gids-tab-item.js +1 -1
  55. package/dist/gids-tab.js +1 -1
  56. package/dist/gids-text-field.js +1 -1
  57. package/dist/gids-toggle-button.js +1 -1
  58. package/dist/gids-tooltip.js +1 -1
  59. package/dist/gids-transfer-list.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/{p-CoS0NuDU.js → p-4zKS6zkg.js} +1 -1
  62. package/dist/{p-Degg_WJz.js → p-83YZrIJw.js} +1 -1
  63. package/dist/{p-oJFgjzK5.js → p-B0hLXifA.js} +1 -1
  64. package/dist/{p-Bf3p-DY2.js → p-B4hcsDH0.js} +1 -1
  65. package/dist/{p-Dd-ec-e0.js → p-BdsUwTgh.js} +1 -1
  66. package/dist/p-BkxmRN-4.js +1 -0
  67. package/dist/p-BsC3-MVH.js +1 -0
  68. package/dist/{p-CiWZdp48.js → p-BthkC6NU.js} +1 -1
  69. package/dist/p-C-Lpfqcg.js +1 -0
  70. package/dist/{p-pVSQxFDF.js → p-C6GHG170.js} +1 -1
  71. package/dist/{p-DGXqnrKo.js → p-CBiu-Vh3.js} +1 -1
  72. package/dist/{p-Co23kQaH.js → p-CH4nrjpL.js} +1 -1
  73. package/dist/p-CIxuyUAl.js +1 -0
  74. package/dist/{p-DiTjFG30.js → p-CMW3SjbP.js} +1 -1
  75. package/dist/p-CPgZgSBN.js +1 -0
  76. package/dist/p-CTri3IsV.js +1 -0
  77. package/dist/{p-CaauwQNd.js → p-CZ_9Mt3B.js} +1 -1
  78. package/dist/{p-DAuO4g6g.js → p-Cacy0Dji.js} +1 -1
  79. package/dist/p-CcKHKwS0.js +1 -0
  80. package/dist/p-Cf3Ny79u.js +1 -0
  81. package/dist/{p-DbaNvRpS.js → p-CrqHKmjy.js} +1 -1
  82. package/dist/{p-UDG6tkD1.js → p-Cz9nwmgK.js} +1 -1
  83. package/dist/{p-Bs8TP3Rb.js → p-D0coZTd2.js} +1 -1
  84. package/dist/{p-CCpxJ8wu.js → p-DKOr5iAk.js} +1 -1
  85. package/dist/{p-Chb2OeFe.js → p-DYjV5XrH.js} +1 -1
  86. package/dist/{p-C-HyXFGR.js → p-DZ6xQXis.js} +1 -1
  87. package/dist/{p-CHGTBObD.js → p-DaB_FzcG.js} +1 -1
  88. package/dist/{p-DxX3B1f0.js → p-DgKrPmDn.js} +1 -1
  89. package/dist/p-Dg_WeHpV.js +1 -0
  90. package/dist/p-Do_VlNHg.js +1 -0
  91. package/dist/{p-DELTZ9Fh.js → p-DrDadv7P.js} +1 -1
  92. package/dist/p-Dw_kb9MC.js +1 -0
  93. package/dist/p-GcC8pCKF.js +1 -0
  94. package/dist/{p-BrYLEey4.js → p-KQxuw_F-.js} +1 -1
  95. package/dist/{p-d-t7__OQ.js → p-PcSMc4jQ.js} +1 -1
  96. package/dist/p-iQRr_fAH.js +1 -0
  97. package/dist/{p-u06XOrpj.js → p-j2_DKwBz.js} +1 -1
  98. package/dist/p-jGho9nbS.js +1 -0
  99. package/dist/{p-Bzjuvoza.js → p-xbqOQZl9.js} +1 -1
  100. package/dist/types/components/html/_GidsCarouselControl/GidsCarouselControl.d.ts +6 -0
  101. package/dist/types/components/html/_GidsCarouselPagination/GidsCarouselPagination.d.ts +5 -0
  102. package/dist/types/components/html/_GidsCarouselPaginationItem/GidsCarouselPaginationItem.d.ts +5 -0
  103. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +6 -1
  104. package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +2 -1
  105. package/dist/types/components/webComponents/GidsBentoCard/GidsBentoCard.d.ts +34 -0
  106. package/dist/types/components/webComponents/GidsCarousel/GidsCarousel.d.ts +49 -0
  107. package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +24 -0
  108. package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +2 -0
  109. package/dist/types/components/webComponents/GidsProfile/GidsProfile.d.ts +4 -0
  110. package/dist/types/components/webComponents/GidsProfileMenu/GidsProfileMenu.d.ts +4 -0
  111. package/dist/types/components.d.ts +168 -2
  112. package/dist-bundled/es/gids-action-bar.js +9 -9
  113. package/dist-bundled/es/gids-activity-gauge.js +1 -1
  114. package/dist-bundled/es/gids-advanced-tooltip.js +2 -2
  115. package/dist-bundled/es/gids-bar-chart.js +1 -1
  116. package/dist-bundled/es/gids-bento-card.js +84 -0
  117. package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
  118. package/dist-bundled/es/gids-calendar-month-list.js +1 -1
  119. package/dist-bundled/es/gids-calendar-year-list.js +2 -2
  120. package/dist-bundled/es/gids-calendar.js +24 -24
  121. package/dist-bundled/es/gids-carousel.js +179 -0
  122. package/dist-bundled/es/gids-chart-legend-item.js +3 -3
  123. package/dist-bundled/es/gids-chart-legend.js +4 -4
  124. package/dist-bundled/es/gids-chart.js +11 -11
  125. package/dist-bundled/es/gids-chevron-button.js +3 -3
  126. package/dist-bundled/es/gids-dot.js +3 -3
  127. package/dist-bundled/es/gids-dropdown-field.js +9 -9
  128. package/dist-bundled/es/gids-dropdown-picker.js +4 -4
  129. package/dist-bundled/es/gids-dropdown.js +4 -4
  130. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  131. package/dist-bundled/es/gids-expansion-body-list.js +3 -3
  132. package/dist-bundled/es/gids-expansion-group.js +4 -4
  133. package/dist-bundled/es/gids-expansion.js +3 -3
  134. package/dist-bundled/es/gids-field.js +4 -4
  135. package/dist-bundled/es/gids-filter.js +2 -2
  136. package/dist-bundled/es/gids-flyout-panel.js +110 -0
  137. package/dist-bundled/es/gids-header-navigation-item.js +1 -1
  138. package/dist-bundled/es/gids-header-navigation.js +5 -5
  139. package/dist-bundled/es/gids-icon.js +4 -4
  140. package/dist-bundled/es/gids-input.js +2 -2
  141. package/dist-bundled/es/gids-level-gauge.js +2 -2
  142. package/dist-bundled/es/gids-line-chart.js +4 -4
  143. package/dist-bundled/es/gids-md-table.js +5 -5
  144. package/dist-bundled/es/gids-notification.js +1 -1
  145. package/dist-bundled/es/gids-overflow-container.js +5 -5
  146. package/dist-bundled/es/gids-overlay-provider.js +4 -4
  147. package/dist-bundled/es/gids-password-field.js +15 -15
  148. package/dist-bundled/es/gids-pie-chart.js +4 -4
  149. package/dist-bundled/es/gids-popover.js +4 -4
  150. package/dist-bundled/es/gids-profile-menu-header.js +1 -1
  151. package/dist-bundled/es/gids-profile-menu.js +3 -3
  152. package/dist-bundled/es/gids-profile.js +40 -34
  153. package/dist-bundled/es/gids-progress-circle.js +1 -1
  154. package/dist-bundled/es/gids-scrim.js +2 -2
  155. package/dist-bundled/es/gids-skeleton.js +9 -9
  156. package/dist-bundled/es/gids-snackbar.js +1 -1
  157. package/dist-bundled/es/gids-tab-item.js +7 -7
  158. package/dist-bundled/es/gids-tab.js +2 -2
  159. package/dist-bundled/es/gids-text-field.js +16 -16
  160. package/dist-bundled/es/gids-toggle-button.js +1 -1
  161. package/dist-bundled/es/gids-tooltip.js +7 -7
  162. package/dist-bundled/es/gids-transfer-list.js +7 -7
  163. package/dist-bundled/es/index.js +2 -2
  164. package/dist-bundled/es/{p-CoS0NuDU-ByDvQAzA.js → p-4zKS6zkg-CujzUjb6.js} +3 -3
  165. package/dist-bundled/es/{p-Degg_WJz-ORZcjc8G.js → p-83YZrIJw-Cu-e6WD3.js} +3 -3
  166. package/dist-bundled/es/{p-oJFgjzK5-CzagP1qD.js → p-B0hLXifA-CoImnX3T.js} +4 -4
  167. package/dist-bundled/es/p-BKcvOO8o-DcnO39au.js +1065 -0
  168. package/dist-bundled/es/{p-Dd-ec-e0-BqX_F6y0.js → p-BdsUwTgh-Cc7AQBsx.js} +9 -9
  169. package/dist-bundled/es/{p-Dg2yoUxw-DliMstZy.js → p-BkxmRN-4-DSiXCW8b.js} +5 -5
  170. package/dist-bundled/es/{p-C2POfZhu-DzG_JxV6.js → p-BsC3-MVH-j4fPhip5.js} +1 -1
  171. package/dist-bundled/es/{p-CiWZdp48-1vf7Xh2R.js → p-BthkC6NU-F03MhDw7.js} +7 -7
  172. package/dist-bundled/es/{p-DMNS1d8v-BX8e_AsY.js → p-C-Lpfqcg-DIuBhXzX.js} +5 -5
  173. package/dist-bundled/es/{p-pVSQxFDF-CsWxUaZX.js → p-C6GHG170-Di8lwQkY.js} +4 -4
  174. package/dist-bundled/es/{p-DGXqnrKo-C7feKS94.js → p-CBiu-Vh3-r-McGzCb.js} +9 -9
  175. package/dist-bundled/es/{p-Co23kQaH-QJyKkzgc.js → p-CH4nrjpL-CrEJXTn0.js} +9 -9
  176. package/dist-bundled/es/{p-DObJEzlz-tt9h5cuI.js → p-CIxuyUAl-B2DxRM64.js} +4 -4
  177. package/dist-bundled/es/{p-DiTjFG30-CQkxfu2K.js → p-CMW3SjbP-ZYYIF_i6.js} +4 -4
  178. package/dist-bundled/es/p-CPgZgSBN-DsTNcUR7.js +7 -0
  179. package/dist-bundled/es/p-CTri3IsV-B1u0rrXF.js +122 -0
  180. package/dist-bundled/es/{p-CaauwQNd-D6_PbcRr.js → p-CZ_9Mt3B-BIYkPAXM.js} +1 -1
  181. package/dist-bundled/es/{p-DAuO4g6g-C8miaL-N.js → p-Cacy0Dji-D-D254kT.js} +7 -7
  182. package/dist-bundled/es/{p-CXFvqDBs-offadaUn.js → p-CcKHKwS0-Bw63tTOA.js} +1 -1
  183. package/dist-bundled/es/p-Cf3Ny79u-VGT_IyGI.js +82 -0
  184. package/dist-bundled/es/{p-DbaNvRpS-r7kCW1TY.js → p-CrqHKmjy-DwSsCofb.js} +10 -10
  185. package/dist-bundled/es/{p-UDG6tkD1-JTLPxkEn.js → p-Cz9nwmgK-BO8HUAvD.js} +10 -10
  186. package/dist-bundled/es/{p-Bs8TP3Rb-BdcS7d5q.js → p-D0coZTd2-KhJZ57gK.js} +3 -3
  187. package/dist-bundled/es/{p-CCpxJ8wu-CMYQqNoP.js → p-DKOr5iAk-DA3Kc4Cn.js} +9 -9
  188. package/dist-bundled/es/{p-Chb2OeFe-DDv_WPhe.js → p-DYjV5XrH-CI9LfBFx.js} +3 -3
  189. package/dist-bundled/es/{p-C-HyXFGR-UnFcWLOQ.js → p-DZ6xQXis-XT86MMis.js} +7 -7
  190. package/dist-bundled/es/{p-CHGTBObD-D_K9_Tmh.js → p-DaB_FzcG-DnRTURxL.js} +1 -1
  191. package/dist-bundled/es/{p-DxX3B1f0-D1URliVh.js → p-DgKrPmDn-C2CSKicX.js} +6 -6
  192. package/dist-bundled/es/{p-UVmSPzTd-CR1higgJ.js → p-Dg_WeHpV-DehzGL6g.js} +9 -9
  193. package/dist-bundled/es/{p-UxDcM-C5-BJO4X0jM.js → p-Do_VlNHg-_g7lcvwR.js} +2 -2
  194. package/dist-bundled/es/{p-DELTZ9Fh-Byr0nLtY.js → p-DrDadv7P-D4rbSYTr.js} +4 -4
  195. package/dist-bundled/es/{p-bhEHIxPv-ujyxL30O.js → p-Dw_kb9MC-BTd0lrGA.js} +36 -21
  196. package/dist-bundled/es/{p-CZBiavxU-CIstIm2b.js → p-GcC8pCKF-CZJFTFeN.js} +10 -10
  197. package/dist-bundled/es/{p-BrYLEey4-DuajY4uD.js → p-KQxuw_F--BTSoDfF9.js} +9 -9
  198. package/dist-bundled/es/{p-d-t7__OQ-CKPQZt2t.js → p-PcSMc4jQ-CzYLaIZr.js} +14 -14
  199. package/dist-bundled/es/{p-D4Pimu_8-ARSuGBs4.js → p-iQRr_fAH-ClfWEu03.js} +13 -13
  200. package/dist-bundled/es/{p-u06XOrpj-C1tNznDd.js → p-j2_DKwBz-CqyuxxnN.js} +8 -8
  201. package/dist-bundled/es/{p-Bw2pVReY-K9pdG-hw.js → p-jGho9nbS-BDiBvsn2.js} +10 -10
  202. package/dist-bundled/es/{p-Bzjuvoza-CzNs69NV.js → p-xbqOQZl9-BK9vjfj7.js} +15 -15
  203. package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
  204. package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
  205. package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
  206. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  207. package/dist-bundled/umd/gids-bento-card.umd.js +5 -0
  208. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  209. package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
  210. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  211. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  212. package/dist-bundled/umd/gids-carousel.umd.js +5 -0
  213. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  214. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  215. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  216. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  217. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  218. package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
  219. package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
  220. package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
  221. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  222. package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
  223. package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
  224. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  225. package/dist-bundled/umd/gids-field.umd.js +2 -2
  226. package/dist-bundled/umd/gids-filter.umd.js +3 -3
  227. package/dist-bundled/umd/gids-flyout-panel.umd.js +5 -0
  228. package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
  229. package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
  230. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  231. package/dist-bundled/umd/gids-input.umd.js +2 -2
  232. package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
  233. package/dist-bundled/umd/gids-md-table.umd.js +1 -1
  234. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  235. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  236. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  237. package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
  238. package/dist-bundled/umd/gids-popover.umd.js +2 -2
  239. package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
  240. package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
  241. package/dist-bundled/umd/gids-profile.umd.js +2 -2
  242. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  243. package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
  244. package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
  245. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  246. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  247. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  248. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  249. package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
  250. package/dist-bundled/umd/index.umd.js +2 -2
  251. package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
  252. package/package.json +29 -5
  253. package/dist/p-B8kX8Vqv.js +0 -1
  254. package/dist/p-BBszCFSA.js +0 -1
  255. package/dist/p-Bw2pVReY.js +0 -1
  256. package/dist/p-C2POfZhu.js +0 -1
  257. package/dist/p-CXFvqDBs.js +0 -1
  258. package/dist/p-CZBiavxU.js +0 -1
  259. package/dist/p-CcpdJCql.js +0 -1
  260. package/dist/p-D4Pimu_8.js +0 -1
  261. package/dist/p-DMNS1d8v.js +0 -1
  262. package/dist/p-DObJEzlz.js +0 -1
  263. package/dist/p-Dg2yoUxw.js +0 -1
  264. package/dist/p-UVmSPzTd.js +0 -1
  265. package/dist/p-UxDcM-C5.js +0 -1
  266. package/dist/p-bhEHIxPv.js +0 -1
  267. package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +0 -7
  268. package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +0 -115
  269. package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +0 -1024
  270. package/dist-bundled/es/p-CcpdJCql-CkEW2RAp.js +0 -64
  271. /package/dist-bundled/es/{p-Bf3p-DY2-CPqEc-vc.js → p-B4hcsDH0-CPqEc-vc.js} +0 -0
@@ -0,0 +1,1065 @@
1
+ const I = Math.min, C = Math.max, it = Math.round, ot = Math.floor, W = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), zt = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ };
10
+ function gt(t, e, n) {
11
+ return C(t, I(e, n));
12
+ }
13
+ function Q(t, e) {
14
+ return typeof t == "function" ? t(e) : t;
15
+ }
16
+ function X(t) {
17
+ return t.split("-")[0];
18
+ }
19
+ function Z(t) {
20
+ return t.split("-")[1];
21
+ }
22
+ function Pt(t) {
23
+ return t === "x" ? "y" : "x";
24
+ }
25
+ function xt(t) {
26
+ return t === "y" ? "height" : "width";
27
+ }
28
+ function V(t) {
29
+ const e = t[0];
30
+ return e === "t" || e === "b" ? "y" : "x";
31
+ }
32
+ function yt(t) {
33
+ return Pt(V(t));
34
+ }
35
+ function It(t, e, n) {
36
+ n === void 0 && (n = !1);
37
+ const o = Z(t), i = yt(t), r = xt(i);
38
+ let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
39
+ return e.reference[r] > e.floating[r] && (s = st(s)), [s, st(s)];
40
+ }
41
+ function Xt(t) {
42
+ const e = st(t);
43
+ return [pt(t), e, pt(e)];
44
+ }
45
+ function pt(t) {
46
+ return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
47
+ }
48
+ const Ot = ["left", "right"], At = ["right", "left"], Yt = ["top", "bottom"], jt = ["bottom", "top"];
49
+ function qt(t, e, n) {
50
+ switch (t) {
51
+ case "top":
52
+ case "bottom":
53
+ return n ? e ? At : Ot : e ? Ot : At;
54
+ case "left":
55
+ case "right":
56
+ return e ? Yt : jt;
57
+ default:
58
+ return [];
59
+ }
60
+ }
61
+ function Ut(t, e, n, o) {
62
+ const i = Z(t);
63
+ let r = qt(X(t), n === "start", o);
64
+ return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(pt)))), r;
65
+ }
66
+ function st(t) {
67
+ const e = X(t);
68
+ return zt[e] + t.slice(e.length);
69
+ }
70
+ function Kt(t) {
71
+ return {
72
+ top: 0,
73
+ right: 0,
74
+ bottom: 0,
75
+ left: 0,
76
+ ...t
77
+ };
78
+ }
79
+ function Ft(t) {
80
+ return typeof t != "number" ? Kt(t) : {
81
+ top: t,
82
+ right: t,
83
+ bottom: t,
84
+ left: t
85
+ };
86
+ }
87
+ function rt(t) {
88
+ const {
89
+ x: e,
90
+ y: n,
91
+ width: o,
92
+ height: i
93
+ } = t;
94
+ return {
95
+ width: o,
96
+ height: i,
97
+ top: n,
98
+ left: e,
99
+ right: e + o,
100
+ bottom: n + i,
101
+ x: e,
102
+ y: n
103
+ };
104
+ }
105
+ function Ct(t, e, n) {
106
+ let {
107
+ reference: o,
108
+ floating: i
109
+ } = t;
110
+ const r = V(e), s = yt(e), c = xt(s), l = X(e), u = r === "y", a = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
111
+ let f;
112
+ switch (l) {
113
+ case "top":
114
+ f = {
115
+ x: a,
116
+ y: o.y - i.height
117
+ };
118
+ break;
119
+ case "bottom":
120
+ f = {
121
+ x: a,
122
+ y: o.y + o.height
123
+ };
124
+ break;
125
+ case "right":
126
+ f = {
127
+ x: o.x + o.width,
128
+ y: d
129
+ };
130
+ break;
131
+ case "left":
132
+ f = {
133
+ x: o.x - i.width,
134
+ y: d
135
+ };
136
+ break;
137
+ default:
138
+ f = {
139
+ x: o.x,
140
+ y: o.y
141
+ };
142
+ }
143
+ switch (Z(e)) {
144
+ case "start":
145
+ f[s] -= m * (n && u ? -1 : 1);
146
+ break;
147
+ case "end":
148
+ f[s] += m * (n && u ? -1 : 1);
149
+ break;
150
+ }
151
+ return f;
152
+ }
153
+ async function Gt(t, e) {
154
+ var n;
155
+ e === void 0 && (e = {});
156
+ const {
157
+ x: o,
158
+ y: i,
159
+ platform: r,
160
+ rects: s,
161
+ elements: c,
162
+ strategy: l
163
+ } = t, {
164
+ boundary: u = "clippingAncestors",
165
+ rootBoundary: a = "viewport",
166
+ elementContext: d = "floating",
167
+ altBoundary: m = !1,
168
+ padding: f = 0
169
+ } = Q(e, t), h = Ft(f), w = c[m ? d === "floating" ? "reference" : "floating" : d], p = rt(await r.getClippingRect({
170
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(w))) == null || n ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
171
+ boundary: u,
172
+ rootBoundary: a,
173
+ strategy: l
174
+ })), x = d === "floating" ? {
175
+ x: o,
176
+ y: i,
177
+ width: s.floating.width,
178
+ height: s.floating.height
179
+ } : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), v = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
180
+ x: 1,
181
+ y: 1
182
+ } : {
183
+ x: 1,
184
+ y: 1
185
+ }, R = rt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
186
+ elements: c,
187
+ rect: x,
188
+ offsetParent: y,
189
+ strategy: l
190
+ }) : x);
191
+ return {
192
+ top: (p.top - R.top + h.top) / v.y,
193
+ bottom: (R.bottom - p.bottom + h.bottom) / v.y,
194
+ left: (p.left - R.left + h.left) / v.x,
195
+ right: (R.right - p.right + h.right) / v.x
196
+ };
197
+ }
198
+ const Jt = 50, Qt = async (t, e, n) => {
199
+ const {
200
+ placement: o = "bottom",
201
+ strategy: i = "absolute",
202
+ middleware: r = [],
203
+ platform: s
204
+ } = n, c = s.detectOverflow ? s : {
205
+ ...s,
206
+ detectOverflow: Gt
207
+ }, l = await (s.isRTL == null ? void 0 : s.isRTL(e));
208
+ let u = await s.getElementRects({
209
+ reference: t,
210
+ floating: e,
211
+ strategy: i
212
+ }), {
213
+ x: a,
214
+ y: d
215
+ } = Ct(u, o, l), m = o, f = 0;
216
+ const h = {};
217
+ for (let g = 0; g < r.length; g++) {
218
+ const w = r[g];
219
+ if (!w)
220
+ continue;
221
+ const {
222
+ name: p,
223
+ fn: x
224
+ } = w, {
225
+ x: y,
226
+ y: v,
227
+ data: R,
228
+ reset: b
229
+ } = await x({
230
+ x: a,
231
+ y: d,
232
+ initialPlacement: o,
233
+ placement: m,
234
+ strategy: i,
235
+ middlewareData: h,
236
+ rects: u,
237
+ platform: c,
238
+ elements: {
239
+ reference: t,
240
+ floating: e
241
+ }
242
+ });
243
+ a = y ?? a, d = v ?? d, h[p] = {
244
+ ...h[p],
245
+ ...R
246
+ }, b && f < Jt && (f++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (u = b.rects === !0 ? await s.getElementRects({
247
+ reference: t,
248
+ floating: e,
249
+ strategy: i
250
+ }) : b.rects), {
251
+ x: a,
252
+ y: d
253
+ } = Ct(u, m, l)), g = -1);
254
+ }
255
+ return {
256
+ x: a,
257
+ y: d,
258
+ placement: m,
259
+ strategy: i,
260
+ middlewareData: h
261
+ };
262
+ }, Zt = (t) => ({
263
+ name: "arrow",
264
+ options: t,
265
+ async fn(e) {
266
+ const {
267
+ x: n,
268
+ y: o,
269
+ placement: i,
270
+ rects: r,
271
+ platform: s,
272
+ elements: c,
273
+ middlewareData: l
274
+ } = e, {
275
+ element: u,
276
+ padding: a = 0
277
+ } = Q(t, e) || {};
278
+ if (u == null)
279
+ return {};
280
+ const d = Ft(a), m = {
281
+ x: n,
282
+ y: o
283
+ }, f = yt(i), h = xt(f), g = await s.getDimensions(u), w = f === "y", p = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", v = r.reference[h] + r.reference[f] - m[f] - r.floating[h], R = m[f] - r.reference[f], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
284
+ let O = b ? b[y] : 0;
285
+ (!O || !await (s.isElement == null ? void 0 : s.isElement(b))) && (O = c.floating[y] || r.floating[h]);
286
+ const N = v / 2 - R / 2, F = O / 2 - g[h] / 2 - 1, E = I(d[p], F), _ = I(d[x], F), M = E, H = O - g[h] - _, A = O / 2 - g[h] / 2 + N, j = gt(M, A, H), B = !l.arrow && Z(i) != null && A !== j && r.reference[h] / 2 - (A < M ? E : _) - g[h] / 2 < 0, L = B ? A < M ? A - M : A - H : 0;
287
+ return {
288
+ [f]: m[f] + L,
289
+ data: {
290
+ [f]: j,
291
+ centerOffset: A - j - L,
292
+ ...B && {
293
+ alignmentOffset: L
294
+ }
295
+ },
296
+ reset: B
297
+ };
298
+ }
299
+ }), te = function(t) {
300
+ return t === void 0 && (t = {}), {
301
+ name: "flip",
302
+ options: t,
303
+ async fn(e) {
304
+ var n, o;
305
+ const {
306
+ placement: i,
307
+ middlewareData: r,
308
+ rects: s,
309
+ initialPlacement: c,
310
+ platform: l,
311
+ elements: u
312
+ } = e, {
313
+ mainAxis: a = !0,
314
+ crossAxis: d = !0,
315
+ fallbackPlacements: m,
316
+ fallbackStrategy: f = "bestFit",
317
+ fallbackAxisSideDirection: h = "none",
318
+ flipAlignment: g = !0,
319
+ ...w
320
+ } = Q(t, e);
321
+ if ((n = r.arrow) != null && n.alignmentOffset)
322
+ return {};
323
+ const p = X(i), x = V(c), y = X(c) === c, v = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), R = m || (y || !g ? [st(c)] : Xt(c)), b = h !== "none";
324
+ !m && b && R.push(...Ut(c, g, h, v));
325
+ const O = [c, ...R], N = await l.detectOverflow(e, w), F = [];
326
+ let E = ((o = r.flip) == null ? void 0 : o.overflows) || [];
327
+ if (a && F.push(N[p]), d) {
328
+ const A = It(i, s, v);
329
+ F.push(N[A[0]], N[A[1]]);
330
+ }
331
+ if (E = [...E, {
332
+ placement: i,
333
+ overflows: F
334
+ }], !F.every((A) => A <= 0)) {
335
+ var _, M;
336
+ const A = (((_ = r.flip) == null ? void 0 : _.index) || 0) + 1, j = O[A];
337
+ if (j && (!(d === "alignment" ? x !== V(j) : !1) || // We leave the current main axis only if every placement on that axis
338
+ // overflows the main axis.
339
+ E.every((T) => V(T.placement) === x ? T.overflows[0] > 0 : !0)))
340
+ return {
341
+ data: {
342
+ index: A,
343
+ overflows: E
344
+ },
345
+ reset: {
346
+ placement: j
347
+ }
348
+ };
349
+ let B = (M = E.filter((L) => L.overflows[0] <= 0).sort((L, T) => L.overflows[1] - T.overflows[1])[0]) == null ? void 0 : M.placement;
350
+ if (!B)
351
+ switch (f) {
352
+ case "bestFit": {
353
+ var H;
354
+ const L = (H = E.filter((T) => {
355
+ if (b) {
356
+ const z = V(T.placement);
357
+ return z === x || // Create a bias to the `y` side axis due to horizontal
358
+ // reading directions favoring greater width.
359
+ z === "y";
360
+ }
361
+ return !0;
362
+ }).map((T) => [T.placement, T.overflows.filter((z) => z > 0).reduce((z, Ht) => z + Ht, 0)]).sort((T, z) => T[1] - z[1])[0]) == null ? void 0 : H[0];
363
+ L && (B = L);
364
+ break;
365
+ }
366
+ case "initialPlacement":
367
+ B = c;
368
+ break;
369
+ }
370
+ if (i !== B)
371
+ return {
372
+ reset: {
373
+ placement: B
374
+ }
375
+ };
376
+ }
377
+ return {};
378
+ }
379
+ };
380
+ }, ee = /* @__PURE__ */ new Set(["left", "top"]);
381
+ async function ne(t, e) {
382
+ const {
383
+ placement: n,
384
+ platform: o,
385
+ elements: i
386
+ } = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = X(n), c = Z(n), l = V(n) === "y", u = ee.has(s) ? -1 : 1, a = r && l ? -1 : 1, d = Q(e, t);
387
+ let {
388
+ mainAxis: m,
389
+ crossAxis: f,
390
+ alignmentAxis: h
391
+ } = typeof d == "number" ? {
392
+ mainAxis: d,
393
+ crossAxis: 0,
394
+ alignmentAxis: null
395
+ } : {
396
+ mainAxis: d.mainAxis || 0,
397
+ crossAxis: d.crossAxis || 0,
398
+ alignmentAxis: d.alignmentAxis
399
+ };
400
+ return c && typeof h == "number" && (f = c === "end" ? h * -1 : h), l ? {
401
+ x: f * a,
402
+ y: m * u
403
+ } : {
404
+ x: m * u,
405
+ y: f * a
406
+ };
407
+ }
408
+ const oe = function(t) {
409
+ return t === void 0 && (t = 0), {
410
+ name: "offset",
411
+ options: t,
412
+ async fn(e) {
413
+ var n, o;
414
+ const {
415
+ x: i,
416
+ y: r,
417
+ placement: s,
418
+ middlewareData: c
419
+ } = e, l = await ne(e, t);
420
+ return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
421
+ x: i + l.x,
422
+ y: r + l.y,
423
+ data: {
424
+ ...l,
425
+ placement: s
426
+ }
427
+ };
428
+ }
429
+ };
430
+ }, ie = function(t) {
431
+ return t === void 0 && (t = {}), {
432
+ name: "shift",
433
+ options: t,
434
+ async fn(e) {
435
+ const {
436
+ x: n,
437
+ y: o,
438
+ placement: i,
439
+ platform: r
440
+ } = e, {
441
+ mainAxis: s = !0,
442
+ crossAxis: c = !1,
443
+ limiter: l = {
444
+ fn: (p) => {
445
+ let {
446
+ x,
447
+ y
448
+ } = p;
449
+ return {
450
+ x,
451
+ y
452
+ };
453
+ }
454
+ },
455
+ ...u
456
+ } = Q(t, e), a = {
457
+ x: n,
458
+ y: o
459
+ }, d = await r.detectOverflow(e, u), m = V(X(i)), f = Pt(m);
460
+ let h = a[f], g = a[m];
461
+ if (s) {
462
+ const p = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", y = h + d[p], v = h - d[x];
463
+ h = gt(y, h, v);
464
+ }
465
+ if (c) {
466
+ const p = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = g + d[p], v = g - d[x];
467
+ g = gt(y, g, v);
468
+ }
469
+ const w = l.fn({
470
+ ...e,
471
+ [f]: h,
472
+ [m]: g
473
+ });
474
+ return {
475
+ ...w,
476
+ data: {
477
+ x: w.x - n,
478
+ y: w.y - o,
479
+ enabled: {
480
+ [f]: s,
481
+ [m]: c
482
+ }
483
+ }
484
+ };
485
+ }
486
+ };
487
+ }, se = function(t) {
488
+ return t === void 0 && (t = {}), {
489
+ name: "size",
490
+ options: t,
491
+ async fn(e) {
492
+ var n, o;
493
+ const {
494
+ placement: i,
495
+ rects: r,
496
+ platform: s,
497
+ elements: c
498
+ } = e, {
499
+ apply: l = () => {
500
+ },
501
+ ...u
502
+ } = Q(t, e), a = await s.detectOverflow(e, u), d = X(i), m = Z(i), f = V(i) === "y", {
503
+ width: h,
504
+ height: g
505
+ } = r.floating;
506
+ let w, p;
507
+ d === "top" || d === "bottom" ? (w = d, p = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (p = d, w = m === "end" ? "top" : "bottom");
508
+ const x = g - a.top - a.bottom, y = h - a.left - a.right, v = I(g - a[w], x), R = I(h - a[p], y), b = !e.middlewareData.shift;
509
+ let O = v, N = R;
510
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (N = y), (o = e.middlewareData.shift) != null && o.enabled.y && (O = x), b && !m) {
511
+ const E = C(a.left, 0), _ = C(a.right, 0), M = C(a.top, 0), H = C(a.bottom, 0);
512
+ f ? N = h - 2 * (E !== 0 || _ !== 0 ? E + _ : C(a.left, a.right)) : O = g - 2 * (M !== 0 || H !== 0 ? M + H : C(a.top, a.bottom));
513
+ }
514
+ await l({
515
+ ...e,
516
+ availableWidth: N,
517
+ availableHeight: O
518
+ });
519
+ const F = await s.getDimensions(c.floating);
520
+ return h !== F.width || g !== F.height ? {
521
+ reset: {
522
+ rects: !0
523
+ }
524
+ } : {};
525
+ }
526
+ };
527
+ };
528
+ function ct() {
529
+ return typeof window < "u";
530
+ }
531
+ function tt(t) {
532
+ return Mt(t) ? (t.nodeName || "").toLowerCase() : "#document";
533
+ }
534
+ function S(t) {
535
+ var e;
536
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
537
+ }
538
+ function k(t) {
539
+ var e;
540
+ return (e = (Mt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
541
+ }
542
+ function Mt(t) {
543
+ return ct() ? t instanceof Node || t instanceof S(t).Node : !1;
544
+ }
545
+ function D(t) {
546
+ return ct() ? t instanceof Element || t instanceof S(t).Element : !1;
547
+ }
548
+ function $(t) {
549
+ return ct() ? t instanceof HTMLElement || t instanceof S(t).HTMLElement : !1;
550
+ }
551
+ function St(t) {
552
+ return !ct() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof S(t).ShadowRoot;
553
+ }
554
+ function nt(t) {
555
+ const {
556
+ overflow: e,
557
+ overflowX: n,
558
+ overflowY: o,
559
+ display: i
560
+ } = P(t);
561
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && i !== "inline" && i !== "contents";
562
+ }
563
+ function re(t) {
564
+ return /^(table|td|th)$/.test(tt(t));
565
+ }
566
+ function lt(t) {
567
+ try {
568
+ if (t.matches(":popover-open"))
569
+ return !0;
570
+ } catch {
571
+ }
572
+ try {
573
+ return t.matches(":modal");
574
+ } catch {
575
+ return !1;
576
+ }
577
+ }
578
+ const ce = /transform|translate|scale|rotate|perspective|filter/, le = /paint|layout|strict|content/, q = (t) => !!t && t !== "none";
579
+ let ut;
580
+ function vt(t) {
581
+ const e = D(t) ? P(t) : t;
582
+ return q(e.transform) || q(e.translate) || q(e.scale) || q(e.rotate) || q(e.perspective) || !bt() && (q(e.backdropFilter) || q(e.filter)) || ce.test(e.willChange || "") || le.test(e.contain || "");
583
+ }
584
+ function ae(t) {
585
+ let e = Y(t);
586
+ for (; $(e) && !J(e); ) {
587
+ if (vt(e))
588
+ return e;
589
+ if (lt(e))
590
+ return null;
591
+ e = Y(e);
592
+ }
593
+ return null;
594
+ }
595
+ function bt() {
596
+ return ut == null && (ut = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ut;
597
+ }
598
+ function J(t) {
599
+ return /^(html|body|#document)$/.test(tt(t));
600
+ }
601
+ function P(t) {
602
+ return S(t).getComputedStyle(t);
603
+ }
604
+ function at(t) {
605
+ return D(t) ? {
606
+ scrollLeft: t.scrollLeft,
607
+ scrollTop: t.scrollTop
608
+ } : {
609
+ scrollLeft: t.scrollX,
610
+ scrollTop: t.scrollY
611
+ };
612
+ }
613
+ function Y(t) {
614
+ if (tt(t) === "html")
615
+ return t;
616
+ const e = (
617
+ // Step into the shadow DOM of the parent of a slotted node.
618
+ t.assignedSlot || // DOM Element detected.
619
+ t.parentNode || // ShadowRoot detected.
620
+ St(t) && t.host || // Fallback.
621
+ k(t)
622
+ );
623
+ return St(e) ? e.host : e;
624
+ }
625
+ function Wt(t) {
626
+ const e = Y(t);
627
+ return J(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : $(e) && nt(e) ? e : Wt(e);
628
+ }
629
+ function et(t, e, n) {
630
+ var o;
631
+ e === void 0 && (e = []), n === void 0 && (n = !0);
632
+ const i = Wt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = S(i);
633
+ if (r) {
634
+ const c = wt(s);
635
+ return e.concat(s, s.visualViewport || [], nt(i) ? i : [], c && n ? et(c) : []);
636
+ } else
637
+ return e.concat(i, et(i, [], n));
638
+ }
639
+ function wt(t) {
640
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
641
+ }
642
+ function kt(t) {
643
+ const e = P(t);
644
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
645
+ const i = $(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = it(n) !== r || it(o) !== s;
646
+ return c && (n = r, o = s), {
647
+ width: n,
648
+ height: o,
649
+ $: c
650
+ };
651
+ }
652
+ function Rt(t) {
653
+ return D(t) ? t : t.contextElement;
654
+ }
655
+ function G(t) {
656
+ const e = Rt(t);
657
+ if (!$(e))
658
+ return W(1);
659
+ const n = e.getBoundingClientRect(), {
660
+ width: o,
661
+ height: i,
662
+ $: r
663
+ } = kt(e);
664
+ let s = (r ? it(n.width) : n.width) / o, c = (r ? it(n.height) : n.height) / i;
665
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
666
+ x: s,
667
+ y: c
668
+ };
669
+ }
670
+ const fe = /* @__PURE__ */ W(0);
671
+ function Nt(t) {
672
+ const e = S(t);
673
+ return !bt() || !e.visualViewport ? fe : {
674
+ x: e.visualViewport.offsetLeft,
675
+ y: e.visualViewport.offsetTop
676
+ };
677
+ }
678
+ function ue(t, e, n) {
679
+ return e === void 0 && (e = !1), !n || e && n !== S(t) ? !1 : e;
680
+ }
681
+ function K(t, e, n, o) {
682
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
683
+ const i = t.getBoundingClientRect(), r = Rt(t);
684
+ let s = W(1);
685
+ e && (o ? D(o) && (s = G(o)) : s = G(t));
686
+ const c = ue(r, n, o) ? Nt(r) : W(0);
687
+ let l = (i.left + c.x) / s.x, u = (i.top + c.y) / s.y, a = i.width / s.x, d = i.height / s.y;
688
+ if (r) {
689
+ const m = S(r), f = o && D(o) ? S(o) : o;
690
+ let h = m, g = wt(h);
691
+ for (; g && o && f !== h; ) {
692
+ const w = G(g), p = g.getBoundingClientRect(), x = P(g), y = p.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, v = p.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
693
+ l *= w.x, u *= w.y, a *= w.x, d *= w.y, l += y, u += v, h = S(g), g = wt(h);
694
+ }
695
+ }
696
+ return rt({
697
+ width: a,
698
+ height: d,
699
+ x: l,
700
+ y: u
701
+ });
702
+ }
703
+ function ft(t, e) {
704
+ const n = at(t).scrollLeft;
705
+ return e ? e.left + n : K(k(t)).left + n;
706
+ }
707
+ function Bt(t, e) {
708
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - ft(t, n), i = n.top + e.scrollTop;
709
+ return {
710
+ x: o,
711
+ y: i
712
+ };
713
+ }
714
+ function de(t) {
715
+ let {
716
+ elements: e,
717
+ rect: n,
718
+ offsetParent: o,
719
+ strategy: i
720
+ } = t;
721
+ const r = i === "fixed", s = k(o), c = e ? lt(e.floating) : !1;
722
+ if (o === s || c && r)
723
+ return n;
724
+ let l = {
725
+ scrollLeft: 0,
726
+ scrollTop: 0
727
+ }, u = W(1);
728
+ const a = W(0), d = $(o);
729
+ if ((d || !d && !r) && ((tt(o) !== "body" || nt(s)) && (l = at(o)), d)) {
730
+ const f = K(o);
731
+ u = G(o), a.x = f.x + o.clientLeft, a.y = f.y + o.clientTop;
732
+ }
733
+ const m = s && !d && !r ? Bt(s, l) : W(0);
734
+ return {
735
+ width: n.width * u.x,
736
+ height: n.height * u.y,
737
+ x: n.x * u.x - l.scrollLeft * u.x + a.x + m.x,
738
+ y: n.y * u.y - l.scrollTop * u.y + a.y + m.y
739
+ };
740
+ }
741
+ function me(t) {
742
+ return Array.from(t.getClientRects());
743
+ }
744
+ function he(t) {
745
+ const e = k(t), n = at(t), o = t.ownerDocument.body, i = C(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = C(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
746
+ let s = -n.scrollLeft + ft(t);
747
+ const c = -n.scrollTop;
748
+ return P(o).direction === "rtl" && (s += C(e.clientWidth, o.clientWidth) - i), {
749
+ width: i,
750
+ height: r,
751
+ x: s,
752
+ y: c
753
+ };
754
+ }
755
+ const Et = 25;
756
+ function ge(t, e) {
757
+ const n = S(t), o = k(t), i = n.visualViewport;
758
+ let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
759
+ if (i) {
760
+ r = i.width, s = i.height;
761
+ const a = bt();
762
+ (!a || a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
763
+ }
764
+ const u = ft(o);
765
+ if (u <= 0) {
766
+ const a = o.ownerDocument, d = a.body, m = getComputedStyle(d), f = a.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - d.clientWidth - f);
767
+ h <= Et && (r -= h);
768
+ } else u <= Et && (r += u);
769
+ return {
770
+ width: r,
771
+ height: s,
772
+ x: c,
773
+ y: l
774
+ };
775
+ }
776
+ function pe(t, e) {
777
+ const n = K(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = $(t) ? G(t) : W(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, u = o * r.y;
778
+ return {
779
+ width: s,
780
+ height: c,
781
+ x: l,
782
+ y: u
783
+ };
784
+ }
785
+ function Lt(t, e, n) {
786
+ let o;
787
+ if (e === "viewport")
788
+ o = ge(t, n);
789
+ else if (e === "document")
790
+ o = he(k(t));
791
+ else if (D(e))
792
+ o = pe(e, n);
793
+ else {
794
+ const i = Nt(t);
795
+ o = {
796
+ x: e.x - i.x,
797
+ y: e.y - i.y,
798
+ width: e.width,
799
+ height: e.height
800
+ };
801
+ }
802
+ return rt(o);
803
+ }
804
+ function Vt(t, e) {
805
+ const n = Y(t);
806
+ return n === e || !D(n) || J(n) ? !1 : P(n).position === "fixed" || Vt(n, e);
807
+ }
808
+ function we(t, e) {
809
+ const n = e.get(t);
810
+ if (n)
811
+ return n;
812
+ let o = et(t, [], !1).filter((c) => D(c) && tt(c) !== "body"), i = null;
813
+ const r = P(t).position === "fixed";
814
+ let s = r ? Y(t) : t;
815
+ for (; D(s) && !J(s); ) {
816
+ const c = P(s), l = vt(s);
817
+ !l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || nt(s) && !l && Vt(t, s)) ? o = o.filter((a) => a !== s) : i = c, s = Y(s);
818
+ }
819
+ return e.set(t, o), o;
820
+ }
821
+ function xe(t) {
822
+ let {
823
+ element: e,
824
+ boundary: n,
825
+ rootBoundary: o,
826
+ strategy: i
827
+ } = t;
828
+ const s = [...n === "clippingAncestors" ? lt(e) ? [] : we(e, this._c) : [].concat(n), o], c = Lt(e, s[0], i);
829
+ let l = c.top, u = c.right, a = c.bottom, d = c.left;
830
+ for (let m = 1; m < s.length; m++) {
831
+ const f = Lt(e, s[m], i);
832
+ l = C(f.top, l), u = I(f.right, u), a = I(f.bottom, a), d = C(f.left, d);
833
+ }
834
+ return {
835
+ width: u - d,
836
+ height: a - l,
837
+ x: d,
838
+ y: l
839
+ };
840
+ }
841
+ function ye(t) {
842
+ const {
843
+ width: e,
844
+ height: n
845
+ } = kt(t);
846
+ return {
847
+ width: e,
848
+ height: n
849
+ };
850
+ }
851
+ function ve(t, e, n) {
852
+ const o = $(e), i = k(e), r = n === "fixed", s = K(t, !0, r, e);
853
+ let c = {
854
+ scrollLeft: 0,
855
+ scrollTop: 0
856
+ };
857
+ const l = W(0);
858
+ function u() {
859
+ l.x = ft(i);
860
+ }
861
+ if (o || !o && !r)
862
+ if ((tt(e) !== "body" || nt(i)) && (c = at(e)), o) {
863
+ const f = K(e, !0, r, e);
864
+ l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
865
+ } else i && u();
866
+ r && !o && i && u();
867
+ const a = i && !o && !r ? Bt(i, c) : W(0), d = s.left + c.scrollLeft - l.x - a.x, m = s.top + c.scrollTop - l.y - a.y;
868
+ return {
869
+ x: d,
870
+ y: m,
871
+ width: s.width,
872
+ height: s.height
873
+ };
874
+ }
875
+ function dt(t) {
876
+ return P(t).position === "static";
877
+ }
878
+ function Tt(t, e) {
879
+ if (!$(t) || P(t).position === "fixed")
880
+ return null;
881
+ if (e)
882
+ return e(t);
883
+ let n = t.offsetParent;
884
+ return k(t) === n && (n = n.ownerDocument.body), n;
885
+ }
886
+ function $t(t, e) {
887
+ const n = S(t);
888
+ if (lt(t))
889
+ return n;
890
+ if (!$(t)) {
891
+ let i = Y(t);
892
+ for (; i && !J(i); ) {
893
+ if (D(i) && !dt(i))
894
+ return i;
895
+ i = Y(i);
896
+ }
897
+ return n;
898
+ }
899
+ let o = Tt(t, e);
900
+ for (; o && re(o) && dt(o); )
901
+ o = Tt(o, e);
902
+ return o && J(o) && dt(o) && !vt(o) ? n : o || ae(t) || n;
903
+ }
904
+ const be = async function(t) {
905
+ const e = this.getOffsetParent || $t, n = this.getDimensions, o = await n(t.floating);
906
+ return {
907
+ reference: ve(t.reference, await e(t.floating), t.strategy),
908
+ floating: {
909
+ x: 0,
910
+ y: 0,
911
+ width: o.width,
912
+ height: o.height
913
+ }
914
+ };
915
+ };
916
+ function Re(t) {
917
+ return P(t).direction === "rtl";
918
+ }
919
+ const Oe = {
920
+ convertOffsetParentRelativeRectToViewportRelativeRect: de,
921
+ getDocumentElement: k,
922
+ getClippingRect: xe,
923
+ getOffsetParent: $t,
924
+ getElementRects: be,
925
+ getClientRects: me,
926
+ getDimensions: ye,
927
+ getScale: G,
928
+ isElement: D,
929
+ isRTL: Re
930
+ };
931
+ function _t(t, e) {
932
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
933
+ }
934
+ function Ae(t, e) {
935
+ let n = null, o;
936
+ const i = k(t);
937
+ function r() {
938
+ var c;
939
+ clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
940
+ }
941
+ function s(c, l) {
942
+ c === void 0 && (c = !1), l === void 0 && (l = 1), r();
943
+ const u = t.getBoundingClientRect(), {
944
+ left: a,
945
+ top: d,
946
+ width: m,
947
+ height: f
948
+ } = u;
949
+ if (c || e(), !m || !f)
950
+ return;
951
+ const h = ot(d), g = ot(i.clientWidth - (a + m)), w = ot(i.clientHeight - (d + f)), p = ot(a), y = {
952
+ rootMargin: -h + "px " + -g + "px " + -w + "px " + -p + "px",
953
+ threshold: C(0, I(1, l)) || 1
954
+ };
955
+ let v = !0;
956
+ function R(b) {
957
+ const O = b[0].intersectionRatio;
958
+ if (O !== l) {
959
+ if (!v)
960
+ return s();
961
+ O ? s(!1, O) : o = setTimeout(() => {
962
+ s(!1, 1e-7);
963
+ }, 1e3);
964
+ }
965
+ O === 1 && !_t(u, t.getBoundingClientRect()) && s(), v = !1;
966
+ }
967
+ try {
968
+ n = new IntersectionObserver(R, {
969
+ ...y,
970
+ // Handle <iframe>s
971
+ root: i.ownerDocument
972
+ });
973
+ } catch {
974
+ n = new IntersectionObserver(R, y);
975
+ }
976
+ n.observe(t);
977
+ }
978
+ return s(!0), r;
979
+ }
980
+ function Le(t, e, n, o) {
981
+ o === void 0 && (o = {});
982
+ const {
983
+ ancestorScroll: i = !0,
984
+ ancestorResize: r = !0,
985
+ elementResize: s = typeof ResizeObserver == "function",
986
+ layoutShift: c = typeof IntersectionObserver == "function",
987
+ animationFrame: l = !1
988
+ } = o, u = Rt(t), a = i || r ? [...u ? et(u) : [], ...e ? et(e) : []] : [];
989
+ a.forEach((p) => {
990
+ i && p.addEventListener("scroll", n, {
991
+ passive: !0
992
+ }), r && p.addEventListener("resize", n);
993
+ });
994
+ const d = u && c ? Ae(u, n) : null;
995
+ let m = -1, f = null;
996
+ s && (f = new ResizeObserver((p) => {
997
+ let [x] = p;
998
+ x && x.target === u && f && e && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
999
+ var y;
1000
+ (y = f) == null || y.observe(e);
1001
+ })), n();
1002
+ }), u && !l && f.observe(u), e && f.observe(e));
1003
+ let h, g = l ? K(t) : null;
1004
+ l && w();
1005
+ function w() {
1006
+ const p = K(t);
1007
+ g && !_t(g, p) && n(), g = p, h = requestAnimationFrame(w);
1008
+ }
1009
+ return n(), () => {
1010
+ var p;
1011
+ a.forEach((x) => {
1012
+ i && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
1013
+ }), d?.(), (p = f) == null || p.disconnect(), f = null, l && cancelAnimationFrame(h);
1014
+ };
1015
+ }
1016
+ const Te = oe, De = ie, Pe = te, Fe = se, Me = Zt, We = (t, e, n) => {
1017
+ const o = /* @__PURE__ */ new Map(), i = {
1018
+ platform: Oe,
1019
+ ...n
1020
+ }, r = {
1021
+ ...i.platform,
1022
+ _c: o
1023
+ };
1024
+ return Qt(t, e, {
1025
+ ...i,
1026
+ platform: r
1027
+ });
1028
+ };
1029
+ function Dt(t) {
1030
+ var e;
1031
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
1032
+ }
1033
+ const Ce = /transform|translate|scale|rotate|perspective|filter/, Se = /paint|layout|strict|content/, U = (t) => !!t && t !== "none";
1034
+ let mt;
1035
+ function Ee(t) {
1036
+ const e = (n = t, typeof window < "u" && (n instanceof Element || n instanceof Dt(n).Element) ? Dt(o = t).getComputedStyle(o) : t);
1037
+ var n, o;
1038
+ return U(e.transform) || U(e.translate) || U(e.scale) || U(e.rotate) || U(e.perspective) || (mt == null && (mt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), !mt && (U(e.backdropFilter) || U(e.filter))) || Ce.test(e.willChange || "") || Se.test(e.contain || "");
1039
+ }
1040
+ function ke(t) {
1041
+ return (function(e) {
1042
+ for (let n = e; n; n = ht(n)) if (n instanceof Element && getComputedStyle(n).display === "none") return null;
1043
+ for (let n = ht(e); n; n = ht(n)) {
1044
+ if (!(n instanceof Element)) continue;
1045
+ const o = getComputedStyle(n);
1046
+ if (o.display !== "contents" && (o.position !== "static" || Ee(o) || n.tagName === "BODY"))
1047
+ return n;
1048
+ }
1049
+ return null;
1050
+ })(t);
1051
+ }
1052
+ function ht(t) {
1053
+ return t.assignedSlot ? t.assignedSlot : t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode;
1054
+ }
1055
+ export {
1056
+ Me as a,
1057
+ Le as b,
1058
+ We as c,
1059
+ Pe as d,
1060
+ Fe as e,
1061
+ ke as f,
1062
+ Te as o,
1063
+ Oe as p,
1064
+ De as s
1065
+ };