@pfct/purple 1.5.0-rc.5 → 1.5.0-rc.7

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 (311) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/chunks/clsx.C11secjj.js +1 -0
  3. package/dist/chunks/clsx.OuTLNxxd.js +16 -0
  4. package/dist/chunks/index.55uP5Llv.js +23 -0
  5. package/dist/chunks/index.BB3W3jfD.js +58 -0
  6. package/dist/chunks/index.BKH_IfIv.js +734 -0
  7. package/dist/chunks/index.BSjRagb_.js +5 -0
  8. package/dist/chunks/index.Bl_fYP4h.js +78 -0
  9. package/dist/chunks/index.C6gQFc3A.js +1 -0
  10. package/dist/chunks/index.CDFgfSC_.js +106 -0
  11. package/dist/chunks/index.COC-ih10.js +1 -0
  12. package/dist/chunks/index.CSxTWj2O.js +1 -0
  13. package/dist/chunks/index.C_vToOO_.js +1 -0
  14. package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
  15. package/dist/chunks/index.Cw8-3kaP.js +1 -0
  16. package/dist/chunks/index.Cwg-luV1.js +60 -0
  17. package/dist/chunks/index.D1sqxe4V.js +13 -0
  18. package/dist/chunks/index.D44slB7j.js +1 -0
  19. package/dist/chunks/index.DBTu0V6e.js +1658 -0
  20. package/dist/chunks/index.DC_I05Aq.js +1 -0
  21. package/dist/chunks/index.DMhXgOEz.js +1 -0
  22. package/dist/chunks/index.DoZ51x4G.js +41 -0
  23. package/dist/chunks/index.DuekHEmj.js +6 -0
  24. package/dist/chunks/index.IrMKAFqG.js +773 -0
  25. package/dist/chunks/index.ZuOrgs85.js +1 -0
  26. package/dist/chunks/index.dlWziLJm.js +1 -0
  27. package/dist/chunks/index.styled.BPTg13oV.js +354 -0
  28. package/dist/chunks/{index.styled.Bc4yfmzB.js → index.styled.CcpQ8zPL.js} +294 -381
  29. package/dist/chunks/index.wFBaTsPC.js +537 -0
  30. package/dist/components/Accordion/index.cjs.js +1 -1
  31. package/dist/components/Accordion/index.es.js +493 -342
  32. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  33. package/dist/components/Badge/BaseBadge/index.es.js +1 -1
  34. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  35. package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
  36. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  37. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +25 -27
  38. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  39. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
  40. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  41. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
  42. package/dist/components/BottomSheet/index.cjs.js +1 -1
  43. package/dist/components/BottomSheet/index.es.js +1 -1
  44. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  45. package/dist/components/Button/BaseButton/index.es.js +1 -1
  46. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  47. package/dist/components/Button/DoubleButton/index.es.js +7 -3
  48. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  49. package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
  50. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  51. package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
  52. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  53. package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
  54. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  55. package/dist/components/Button/SingleButton/index.es.js +1 -1
  56. package/dist/components/Button/index.cjs.js +1 -1
  57. package/dist/components/Button/index.es.js +1 -1
  58. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  59. package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
  60. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  61. package/dist/components/Chips/ChipItem/index.es.js +24 -26
  62. package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
  63. package/dist/components/Chips/ChipItem/index.styled.es.js +22 -24
  64. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  65. package/dist/components/Chips/ChipsFrame/index.es.js +23 -23
  66. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  67. package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
  68. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  69. package/dist/components/Control/CheckMark/index.es.js +19 -21
  70. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  71. package/dist/components/Control/RadioButton/index.es.js +1 -1
  72. package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
  73. package/dist/components/Control/RadioButton/index.styled.es.js +19 -21
  74. package/dist/components/Control/Switch/index.cjs.js +1 -1
  75. package/dist/components/Control/Switch/index.es.js +19 -21
  76. package/dist/components/Control/index.cjs.js +1 -1
  77. package/dist/components/Control/index.d.ts +2 -1
  78. package/dist/components/Control/index.es.js +4 -4
  79. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  80. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +20 -22
  81. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  82. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +20 -22
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
  85. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +20 -22
  87. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +20 -22
  89. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +20 -22
  91. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +30 -32
  93. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
  95. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
  96. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +2 -2
  97. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  98. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +17 -17
  99. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  100. package/dist/components/DatePicker/BaseDatePicker/index.es.js +29 -31
  101. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  102. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
  103. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  104. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +18 -20
  105. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  106. package/dist/components/Input/NumberInput/index.es.js +51 -53
  107. package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
  108. package/dist/components/Input/PostfixInput/index.util.es.js +22 -24
  109. package/dist/components/Input/TextField/index.cjs.js +1 -1
  110. package/dist/components/Input/TextField/index.es.js +13 -13
  111. package/dist/components/Input/index.cjs.js +1 -1
  112. package/dist/components/Input/index.es.js +30 -32
  113. package/dist/components/List/index.cjs.js +1 -1
  114. package/dist/components/List/index.es.js +8 -8
  115. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  116. package/dist/components/Loading/ProgressBar/index.es.js +1 -1
  117. package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
  118. package/dist/components/Loading/ProgressBar/index.styled.es.js +20 -22
  119. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  120. package/dist/components/Loading/Spinner/index.es.js +1 -1
  121. package/dist/components/Loading/index.cjs.js +1 -1
  122. package/dist/components/Loading/index.es.js +1 -1
  123. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  124. package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
  125. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  126. package/dist/components/MiniButton/IconMiniButton/index.es.js +3 -3
  127. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  128. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +13 -13
  129. package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
  130. package/dist/components/MiniButton/common/index.styled.es.js +21 -23
  131. package/dist/components/Modal/index.cjs.js +1 -1
  132. package/dist/components/Modal/index.d.ts +14 -27
  133. package/dist/components/Modal/index.es.js +99 -7
  134. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  135. package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
  136. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  137. package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
  138. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  139. package/dist/components/Navigation/PageNavigationBar/index.es.js +13 -13
  140. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  141. package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
  142. package/dist/components/Navigation/index.cjs.js +1 -1
  143. package/dist/components/Navigation/index.es.js +15 -15
  144. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  145. package/dist/components/OverlayRoot/index.es.js +19 -21
  146. package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
  147. package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
  148. package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
  149. package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
  150. package/dist/components/SelectBox/index.cjs.js +1 -1
  151. package/dist/components/SelectBox/index.es.js +21 -21
  152. package/dist/components/SelectBox/index.styled.cjs.js +1 -1
  153. package/dist/components/SelectBox/index.styled.es.js +26 -28
  154. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  155. package/dist/components/Tabs/FillTabs/index.es.js +21 -23
  156. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  157. package/dist/components/Tabs/TextTabs/index.es.js +25 -27
  158. package/dist/components/Tag/index.cjs.js +1 -1
  159. package/dist/components/Tag/index.es.js +3 -3
  160. package/dist/components/Tag/index.styled.cjs.js +1 -1
  161. package/dist/components/Tag/index.styled.es.js +19 -21
  162. package/dist/components/Terms/index.cjs.js +1 -1
  163. package/dist/components/Terms/index.es.js +16 -17
  164. package/dist/components/TextArea/index.cjs.js +1 -0
  165. package/dist/components/TextArea/index.d.ts +80 -0
  166. package/dist/components/TextArea/index.es.js +30 -0
  167. package/dist/components/Title/index.cjs.js +1 -1
  168. package/dist/components/Title/index.es.js +3 -3
  169. package/dist/components/Title/index.styled.cjs.js +1 -1
  170. package/dist/components/Title/index.styled.es.js +22 -24
  171. package/dist/components/Toast/index.cjs.js +1 -0
  172. package/dist/components/Toast/index.d.ts +5 -0
  173. package/dist/components/Toast/index.es.js +36 -0
  174. package/dist/components/index.cjs.js +1 -1
  175. package/dist/components/index.d.ts +5 -3
  176. package/dist/components/index.es.js +164 -142
  177. package/dist/components/ui/bottomSheet.cjs.js +13 -13
  178. package/dist/components/ui/bottomSheet.es.js +76 -71
  179. package/dist/components/ui/button.cjs.js +1 -1
  180. package/dist/components/ui/button.es.js +4 -4
  181. package/dist/components/ui/checkbox.cjs.js +1 -0
  182. package/dist/components/ui/checkbox.d.ts +9 -0
  183. package/dist/components/ui/checkbox.es.js +448 -0
  184. package/dist/components/ui/dialog.cjs.js +1 -1
  185. package/dist/components/ui/dialog.es.js +30 -30
  186. package/dist/components/ui/drawer.cjs.js +1 -1
  187. package/dist/components/ui/drawer.es.js +2 -2
  188. package/dist/components/ui/impact-tooltip.cjs.js +1 -0
  189. package/dist/components/ui/impact-tooltip.d.ts +16 -0
  190. package/dist/components/ui/impact-tooltip.es.js +461 -0
  191. package/dist/components/ui/share-ui.cjs.js +1 -1
  192. package/dist/components/ui/share-ui.es.js +2 -2
  193. package/dist/components/ui/tooltip.cjs.js +1 -0
  194. package/dist/components/ui/tooltip.d.ts +9 -0
  195. package/dist/components/ui/tooltip.es.js +387 -0
  196. package/dist/components/ui/typography.cjs.js +1 -1
  197. package/dist/components/ui/typography.es.js +3 -3
  198. package/dist/core/Colors/index.cjs.js +1 -1
  199. package/dist/core/Colors/index.d.ts +0 -4
  200. package/dist/core/Colors/index.es.js +4 -8
  201. package/dist/core/Display/Mobile.cjs.js +1 -1
  202. package/dist/core/Display/Mobile.es.js +1 -1
  203. package/dist/core/Display/Pc.cjs.js +1 -1
  204. package/dist/core/Display/Pc.es.js +1 -1
  205. package/dist/core/Display/index.styled.cjs.js +1 -1
  206. package/dist/core/Display/index.styled.es.js +20 -22
  207. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  208. package/dist/core/Typography/BaseTypography/index.es.js +2 -2
  209. package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
  210. package/dist/hooks/useLayoutIsMobile.es.js +20 -22
  211. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  212. package/dist/icons/src/aliases/aliases.d.ts +12 -12
  213. package/dist/icons/src/aliases/aliases.es.js +40 -40
  214. package/dist/icons/src/aliases/index.cjs.js +1 -1
  215. package/dist/icons/src/aliases/index.es.js +80 -80
  216. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  217. package/dist/icons/src/aliases/prefixed.d.ts +16 -16
  218. package/dist/icons/src/aliases/prefixed.es.js +46 -46
  219. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  220. package/dist/icons/src/aliases/suffixed.d.ts +17 -17
  221. package/dist/icons/src/aliases/suffixed.es.js +48 -48
  222. package/dist/icons/src/icons/index.cjs.js +1 -1
  223. package/dist/icons/src/icons/index.d.ts +9 -9
  224. package/dist/icons/src/icons/index.es.js +30 -30
  225. package/dist/index.cjs.js +1 -1
  226. package/dist/index.es.js +372 -350
  227. package/dist/lib/utils.cjs.js +1 -1
  228. package/dist/lib/utils.es.js +2729 -2
  229. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  230. package/dist/library/BasicLayout/Footer.d.ts +2 -2
  231. package/dist/library/BasicLayout/Footer.es.js +62 -60
  232. package/dist/library/BasicLayout/index.cjs.js +1 -1
  233. package/dist/library/BasicLayout/index.d.ts +1 -1
  234. package/dist/library/BasicLayout/index.es.js +23 -25
  235. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  236. package/dist/library/BasicLayout/index.styled.es.js +48 -50
  237. package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
  238. package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
  239. package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
  240. package/dist/utils/GenerateColorStyle/index.es.js +8 -8
  241. package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
  242. package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +20 -22
  243. package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
  244. package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +20 -22
  245. package/dist/utils/index.cjs.js +1 -1
  246. package/dist/utils/index.es.js +8 -8
  247. package/package.json +9 -4
  248. package/dist/chunks/index.B0KRXeX3.js +0 -205
  249. package/dist/chunks/index.BiFBNKMb.js +0 -51
  250. package/dist/chunks/index.C4mr2-78.js +0 -1
  251. package/dist/chunks/index.CAOufkQO.js +0 -1072
  252. package/dist/chunks/index.Dazlhpef.js +0 -45
  253. package/dist/chunks/index.DnJQUgiG.js +0 -1
  254. package/dist/chunks/index.SS1p-Ys5.js +0 -1
  255. package/dist/chunks/index.styled.cvcvIoeD.js +0 -412
  256. package/dist/chunks/utils.B9KdtH6G.js +0 -2493
  257. package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
  258. package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
  259. package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
  260. package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
  261. package/dist/components/Control/CheckBox/index.cjs.js +0 -1
  262. package/dist/components/Control/CheckBox/index.d.ts +0 -12
  263. package/dist/components/Control/CheckBox/index.es.js +0 -96
  264. package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
  265. package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
  266. package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
  267. package/dist/components/Modal/BaseModal/index.cjs.js +0 -1
  268. package/dist/components/Modal/BaseModal/index.d.ts +0 -9
  269. package/dist/components/Modal/BaseModal/index.es.js +0 -8
  270. package/dist/components/Modal/BaseModal/index.styled.cjs.js +0 -7
  271. package/dist/components/Modal/BaseModal/index.styled.d.ts +0 -6
  272. package/dist/components/Modal/BaseModal/index.styled.es.js +0 -12
  273. package/dist/components/Modal/index.styled.cjs.js +0 -42
  274. package/dist/components/Modal/index.styled.d.ts +0 -29
  275. package/dist/components/Modal/index.styled.es.js +0 -56
  276. package/dist/components/Stepper/Step.cjs.js +0 -1
  277. package/dist/components/Stepper/Step.d.ts +0 -13
  278. package/dist/components/Stepper/Step.es.js +0 -46
  279. package/dist/components/Stepper/index.cjs.js +0 -1
  280. package/dist/components/Stepper/index.d.ts +0 -10
  281. package/dist/components/Stepper/index.es.js +0 -35
  282. package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
  283. package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
  284. package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
  285. package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
  286. package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
  287. package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -80
  288. package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
  289. package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
  290. package/dist/components/ToastMessage/Toast/index.es.js +0 -32
  291. package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
  292. package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
  293. package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
  294. package/dist/components/ToastMessage/index.cjs.js +0 -1
  295. package/dist/components/ToastMessage/index.d.ts +0 -1
  296. package/dist/components/ToastMessage/index.es.js +0 -4
  297. package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
  298. package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
  299. package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
  300. package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
  301. package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
  302. package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
  303. package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
  304. package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
  305. package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
  306. package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
  307. package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
  308. package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
  309. package/dist/components/Tooltip/index.cjs.js +0 -1
  310. package/dist/components/Tooltip/index.d.ts +0 -6
  311. package/dist/components/Tooltip/index.es.js +0 -6
@@ -0,0 +1,1658 @@
1
+ import * as y from "react";
2
+ import { useLayoutEffect as Te } from "react";
3
+ import { c as xt } from "./index.Bl_fYP4h.js";
4
+ import { P as tt, d as Me, u as Ne } from "./index.Cwg-luV1.js";
5
+ import { u as ht } from "./index.DLcqcWxM.js";
6
+ import { a as Fe, u as Ct } from "./index.55uP5Llv.js";
7
+ import { j as _ } from "./jsx-runtime.Drh4NO5G.js";
8
+ import * as ke from "react-dom";
9
+ import We from "react-dom";
10
+ import { c as $e } from "./index.CDFgfSC_.js";
11
+ import { u as At } from "./index.DuekHEmj.js";
12
+ var Be = "DismissableLayer", Pt = "dismissableLayer.update", _e = "dismissableLayer.pointerDownOutside", He = "dismissableLayer.focusOutside", Vt, te = y.createContext({
13
+ layers: /* @__PURE__ */ new Set(),
14
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
15
+ branches: /* @__PURE__ */ new Set()
16
+ }), je = y.forwardRef(
17
+ (t, e) => {
18
+ const {
19
+ disableOutsidePointerEvents: n = !1,
20
+ onEscapeKeyDown: o,
21
+ onPointerDownOutside: r,
22
+ onFocusOutside: i,
23
+ onInteractOutside: s,
24
+ onDismiss: c,
25
+ ...f
26
+ } = t, l = y.useContext(te), [a, u] = y.useState(null), p = (a == null ? void 0 : a.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = y.useState({}), m = ht(e, (v) => u(v)), h = Array.from(l.layers), [w] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), g = h.indexOf(w), x = a ? h.indexOf(a) : -1, P = l.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= g, A = Ve((v) => {
27
+ const O = v.target, M = [...l.branches].some((C) => C.contains(O));
28
+ !b || M || (r == null || r(v), s == null || s(v), v.defaultPrevented || c == null || c());
29
+ }, p), R = Ye((v) => {
30
+ const O = v.target;
31
+ [...l.branches].some((C) => C.contains(O)) || (i == null || i(v), s == null || s(v), v.defaultPrevented || c == null || c());
32
+ }, p);
33
+ return Fe((v) => {
34
+ x === l.layers.size - 1 && (o == null || o(v), !v.defaultPrevented && c && (v.preventDefault(), c()));
35
+ }, p), y.useEffect(() => {
36
+ if (a)
37
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Vt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(a)), l.layers.add(a), Yt(), () => {
38
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Vt);
39
+ };
40
+ }, [a, p, n, l]), y.useEffect(() => () => {
41
+ a && (l.layers.delete(a), l.layersWithOutsidePointerEventsDisabled.delete(a), Yt());
42
+ }, [a, l]), y.useEffect(() => {
43
+ const v = () => d({});
44
+ return document.addEventListener(Pt, v), () => document.removeEventListener(Pt, v);
45
+ }, []), /* @__PURE__ */ _.jsx(
46
+ tt.div,
47
+ {
48
+ ...f,
49
+ ref: m,
50
+ style: {
51
+ pointerEvents: P ? b ? "auto" : "none" : void 0,
52
+ ...t.style
53
+ },
54
+ onFocusCapture: xt(t.onFocusCapture, R.onFocusCapture),
55
+ onBlurCapture: xt(t.onBlurCapture, R.onBlurCapture),
56
+ onPointerDownCapture: xt(
57
+ t.onPointerDownCapture,
58
+ A.onPointerDownCapture
59
+ )
60
+ }
61
+ );
62
+ }
63
+ );
64
+ je.displayName = Be;
65
+ var Ie = "DismissableLayerBranch", ze = y.forwardRef((t, e) => {
66
+ const n = y.useContext(te), o = y.useRef(null), r = ht(e, o);
67
+ return y.useEffect(() => {
68
+ const i = o.current;
69
+ if (i)
70
+ return n.branches.add(i), () => {
71
+ n.branches.delete(i);
72
+ };
73
+ }, [n.branches]), /* @__PURE__ */ _.jsx(tt.div, { ...t, ref: r });
74
+ });
75
+ ze.displayName = Ie;
76
+ function Ve(t, e = globalThis == null ? void 0 : globalThis.document) {
77
+ const n = Ct(t), o = y.useRef(!1), r = y.useRef(() => {
78
+ });
79
+ return y.useEffect(() => {
80
+ const i = (c) => {
81
+ if (c.target && !o.current) {
82
+ let f = function() {
83
+ ee(
84
+ _e,
85
+ n,
86
+ l,
87
+ { discrete: !0 }
88
+ );
89
+ };
90
+ const l = { originalEvent: c };
91
+ c.pointerType === "touch" ? (e.removeEventListener("click", r.current), r.current = f, e.addEventListener("click", r.current, { once: !0 })) : f();
92
+ } else
93
+ e.removeEventListener("click", r.current);
94
+ o.current = !1;
95
+ }, s = window.setTimeout(() => {
96
+ e.addEventListener("pointerdown", i);
97
+ }, 0);
98
+ return () => {
99
+ window.clearTimeout(s), e.removeEventListener("pointerdown", i), e.removeEventListener("click", r.current);
100
+ };
101
+ }, [e, n]), {
102
+ // ensures we check React component tree (not just DOM tree)
103
+ onPointerDownCapture: () => o.current = !0
104
+ };
105
+ }
106
+ function Ye(t, e = globalThis == null ? void 0 : globalThis.document) {
107
+ const n = Ct(t), o = y.useRef(!1);
108
+ return y.useEffect(() => {
109
+ const r = (i) => {
110
+ i.target && !o.current && ee(He, n, { originalEvent: i }, {
111
+ discrete: !1
112
+ });
113
+ };
114
+ return e.addEventListener("focusin", r), () => e.removeEventListener("focusin", r);
115
+ }, [e, n]), {
116
+ onFocusCapture: () => o.current = !0,
117
+ onBlurCapture: () => o.current = !1
118
+ };
119
+ }
120
+ function Yt() {
121
+ const t = new CustomEvent(Pt);
122
+ document.dispatchEvent(t);
123
+ }
124
+ function ee(t, e, n, { discrete: o }) {
125
+ const r = n.originalEvent.target, i = new CustomEvent(t, { bubbles: !1, cancelable: !0, detail: n });
126
+ e && r.addEventListener(t, e, { once: !0 }), o ? Me(r, i) : r.dispatchEvent(i);
127
+ }
128
+ const Xe = ["top", "right", "bottom", "left"], Z = Math.min, $ = Math.max, ut = Math.round, at = Math.floor, V = (t) => ({
129
+ x: t,
130
+ y: t
131
+ }), Ue = {
132
+ left: "right",
133
+ right: "left",
134
+ bottom: "top",
135
+ top: "bottom"
136
+ }, qe = {
137
+ start: "end",
138
+ end: "start"
139
+ };
140
+ function Et(t, e, n) {
141
+ return $(t, Z(e, n));
142
+ }
143
+ function U(t, e) {
144
+ return typeof t == "function" ? t(e) : t;
145
+ }
146
+ function q(t) {
147
+ return t.split("-")[0];
148
+ }
149
+ function et(t) {
150
+ return t.split("-")[1];
151
+ }
152
+ function St(t) {
153
+ return t === "x" ? "y" : "x";
154
+ }
155
+ function Dt(t) {
156
+ return t === "y" ? "height" : "width";
157
+ }
158
+ function z(t) {
159
+ return ["top", "bottom"].includes(q(t)) ? "y" : "x";
160
+ }
161
+ function Lt(t) {
162
+ return St(z(t));
163
+ }
164
+ function Ze(t, e, n) {
165
+ n === void 0 && (n = !1);
166
+ const o = et(t), r = Lt(t), i = Dt(r);
167
+ let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
168
+ return e.reference[i] > e.floating[i] && (s = dt(s)), [s, dt(s)];
169
+ }
170
+ function Ke(t) {
171
+ const e = dt(t);
172
+ return [Rt(t), e, Rt(e)];
173
+ }
174
+ function Rt(t) {
175
+ return t.replace(/start|end/g, (e) => qe[e]);
176
+ }
177
+ function Ge(t, e, n) {
178
+ const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
179
+ switch (t) {
180
+ case "top":
181
+ case "bottom":
182
+ return n ? e ? r : o : e ? o : r;
183
+ case "left":
184
+ case "right":
185
+ return e ? i : s;
186
+ default:
187
+ return [];
188
+ }
189
+ }
190
+ function Je(t, e, n, o) {
191
+ const r = et(t);
192
+ let i = Ge(q(t), n === "start", o);
193
+ return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(Rt)))), i;
194
+ }
195
+ function dt(t) {
196
+ return t.replace(/left|right|bottom|top/g, (e) => Ue[e]);
197
+ }
198
+ function Qe(t) {
199
+ return {
200
+ top: 0,
201
+ right: 0,
202
+ bottom: 0,
203
+ left: 0,
204
+ ...t
205
+ };
206
+ }
207
+ function ne(t) {
208
+ return typeof t != "number" ? Qe(t) : {
209
+ top: t,
210
+ right: t,
211
+ bottom: t,
212
+ left: t
213
+ };
214
+ }
215
+ function pt(t) {
216
+ const {
217
+ x: e,
218
+ y: n,
219
+ width: o,
220
+ height: r
221
+ } = t;
222
+ return {
223
+ width: o,
224
+ height: r,
225
+ top: n,
226
+ left: e,
227
+ right: e + o,
228
+ bottom: n + r,
229
+ x: e,
230
+ y: n
231
+ };
232
+ }
233
+ function Xt(t, e, n) {
234
+ let {
235
+ reference: o,
236
+ floating: r
237
+ } = t;
238
+ const i = z(e), s = Lt(e), c = Dt(s), f = q(e), l = i === "y", a = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, p = o[c] / 2 - r[c] / 2;
239
+ let d;
240
+ switch (f) {
241
+ case "top":
242
+ d = {
243
+ x: a,
244
+ y: o.y - r.height
245
+ };
246
+ break;
247
+ case "bottom":
248
+ d = {
249
+ x: a,
250
+ y: o.y + o.height
251
+ };
252
+ break;
253
+ case "right":
254
+ d = {
255
+ x: o.x + o.width,
256
+ y: u
257
+ };
258
+ break;
259
+ case "left":
260
+ d = {
261
+ x: o.x - r.width,
262
+ y: u
263
+ };
264
+ break;
265
+ default:
266
+ d = {
267
+ x: o.x,
268
+ y: o.y
269
+ };
270
+ }
271
+ switch (et(e)) {
272
+ case "start":
273
+ d[s] -= p * (n && l ? -1 : 1);
274
+ break;
275
+ case "end":
276
+ d[s] += p * (n && l ? -1 : 1);
277
+ break;
278
+ }
279
+ return d;
280
+ }
281
+ const tn = async (t, e, n) => {
282
+ const {
283
+ placement: o = "bottom",
284
+ strategy: r = "absolute",
285
+ middleware: i = [],
286
+ platform: s
287
+ } = n, c = i.filter(Boolean), f = await (s.isRTL == null ? void 0 : s.isRTL(e));
288
+ let l = await s.getElementRects({
289
+ reference: t,
290
+ floating: e,
291
+ strategy: r
292
+ }), {
293
+ x: a,
294
+ y: u
295
+ } = Xt(l, o, f), p = o, d = {}, m = 0;
296
+ for (let h = 0; h < c.length; h++) {
297
+ const {
298
+ name: w,
299
+ fn: g
300
+ } = c[h], {
301
+ x,
302
+ y: P,
303
+ data: b,
304
+ reset: A
305
+ } = await g({
306
+ x: a,
307
+ y: u,
308
+ initialPlacement: o,
309
+ placement: p,
310
+ strategy: r,
311
+ middlewareData: d,
312
+ rects: l,
313
+ platform: s,
314
+ elements: {
315
+ reference: t,
316
+ floating: e
317
+ }
318
+ });
319
+ a = x ?? a, u = P ?? u, d = {
320
+ ...d,
321
+ [w]: {
322
+ ...d[w],
323
+ ...b
324
+ }
325
+ }, A && m <= 50 && (m++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (l = A.rects === !0 ? await s.getElementRects({
326
+ reference: t,
327
+ floating: e,
328
+ strategy: r
329
+ }) : A.rects), {
330
+ x: a,
331
+ y: u
332
+ } = Xt(l, p, f)), h = -1);
333
+ }
334
+ return {
335
+ x: a,
336
+ y: u,
337
+ placement: p,
338
+ strategy: r,
339
+ middlewareData: d
340
+ };
341
+ };
342
+ async function rt(t, e) {
343
+ var n;
344
+ e === void 0 && (e = {});
345
+ const {
346
+ x: o,
347
+ y: r,
348
+ platform: i,
349
+ rects: s,
350
+ elements: c,
351
+ strategy: f
352
+ } = t, {
353
+ boundary: l = "clippingAncestors",
354
+ rootBoundary: a = "viewport",
355
+ elementContext: u = "floating",
356
+ altBoundary: p = !1,
357
+ padding: d = 0
358
+ } = U(e, t), m = ne(d), w = c[p ? u === "floating" ? "reference" : "floating" : u], g = pt(await i.getClippingRect({
359
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
360
+ boundary: l,
361
+ rootBoundary: a,
362
+ strategy: f
363
+ })), x = u === "floating" ? {
364
+ x: o,
365
+ y: r,
366
+ width: s.floating.width,
367
+ height: s.floating.height
368
+ } : s.reference, P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), b = await (i.isElement == null ? void 0 : i.isElement(P)) ? await (i.getScale == null ? void 0 : i.getScale(P)) || {
369
+ x: 1,
370
+ y: 1
371
+ } : {
372
+ x: 1,
373
+ y: 1
374
+ }, A = pt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
375
+ elements: c,
376
+ rect: x,
377
+ offsetParent: P,
378
+ strategy: f
379
+ }) : x);
380
+ return {
381
+ top: (g.top - A.top + m.top) / b.y,
382
+ bottom: (A.bottom - g.bottom + m.bottom) / b.y,
383
+ left: (g.left - A.left + m.left) / b.x,
384
+ right: (A.right - g.right + m.right) / b.x
385
+ };
386
+ }
387
+ const en = (t) => ({
388
+ name: "arrow",
389
+ options: t,
390
+ async fn(e) {
391
+ const {
392
+ x: n,
393
+ y: o,
394
+ placement: r,
395
+ rects: i,
396
+ platform: s,
397
+ elements: c,
398
+ middlewareData: f
399
+ } = e, {
400
+ element: l,
401
+ padding: a = 0
402
+ } = U(t, e) || {};
403
+ if (l == null)
404
+ return {};
405
+ const u = ne(a), p = {
406
+ x: n,
407
+ y: o
408
+ }, d = Lt(r), m = Dt(d), h = await s.getDimensions(l), w = d === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", P = w ? "clientHeight" : "clientWidth", b = i.reference[m] + i.reference[d] - p[d] - i.floating[m], A = p[d] - i.reference[d], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
409
+ let v = R ? R[P] : 0;
410
+ (!v || !await (s.isElement == null ? void 0 : s.isElement(R))) && (v = c.floating[P] || i.floating[m]);
411
+ const O = b / 2 - A / 2, M = v / 2 - h[m] / 2 - 1, C = Z(u[g], M), F = Z(u[x], M), k = C, D = v - h[m] - F, S = v / 2 - h[m] / 2 + O, W = Et(k, S, D), L = !f.arrow && et(r) != null && S !== W && i.reference[m] / 2 - (S < k ? C : F) - h[m] / 2 < 0, T = L ? S < k ? S - k : S - D : 0;
412
+ return {
413
+ [d]: p[d] + T,
414
+ data: {
415
+ [d]: W,
416
+ centerOffset: S - W - T,
417
+ ...L && {
418
+ alignmentOffset: T
419
+ }
420
+ },
421
+ reset: L
422
+ };
423
+ }
424
+ }), nn = function(t) {
425
+ return t === void 0 && (t = {}), {
426
+ name: "flip",
427
+ options: t,
428
+ async fn(e) {
429
+ var n, o;
430
+ const {
431
+ placement: r,
432
+ middlewareData: i,
433
+ rects: s,
434
+ initialPlacement: c,
435
+ platform: f,
436
+ elements: l
437
+ } = e, {
438
+ mainAxis: a = !0,
439
+ crossAxis: u = !0,
440
+ fallbackPlacements: p,
441
+ fallbackStrategy: d = "bestFit",
442
+ fallbackAxisSideDirection: m = "none",
443
+ flipAlignment: h = !0,
444
+ ...w
445
+ } = U(t, e);
446
+ if ((n = i.arrow) != null && n.alignmentOffset)
447
+ return {};
448
+ const g = q(r), x = z(c), P = q(c) === c, b = await (f.isRTL == null ? void 0 : f.isRTL(l.floating)), A = p || (P || !h ? [dt(c)] : Ke(c)), R = m !== "none";
449
+ !p && R && A.push(...Je(c, h, m, b));
450
+ const v = [c, ...A], O = await rt(e, w), M = [];
451
+ let C = ((o = i.flip) == null ? void 0 : o.overflows) || [];
452
+ if (a && M.push(O[g]), u) {
453
+ const S = Ze(r, s, b);
454
+ M.push(O[S[0]], O[S[1]]);
455
+ }
456
+ if (C = [...C, {
457
+ placement: r,
458
+ overflows: M
459
+ }], !M.every((S) => S <= 0)) {
460
+ var F, k;
461
+ const S = (((F = i.flip) == null ? void 0 : F.index) || 0) + 1, W = v[S];
462
+ if (W && (!(u === "alignment" ? x !== z(W) : !1) || // We leave the current main axis only if every placement on that axis
463
+ // overflows the main axis.
464
+ C.every((E) => E.overflows[0] > 0 && z(E.placement) === x)))
465
+ return {
466
+ data: {
467
+ index: S,
468
+ overflows: C
469
+ },
470
+ reset: {
471
+ placement: W
472
+ }
473
+ };
474
+ let L = (k = C.filter((T) => T.overflows[0] <= 0).sort((T, E) => T.overflows[1] - E.overflows[1])[0]) == null ? void 0 : k.placement;
475
+ if (!L)
476
+ switch (d) {
477
+ case "bestFit": {
478
+ var D;
479
+ const T = (D = C.filter((E) => {
480
+ if (R) {
481
+ const N = z(E.placement);
482
+ return N === x || // Create a bias to the `y` side axis due to horizontal
483
+ // reading directions favoring greater width.
484
+ N === "y";
485
+ }
486
+ return !0;
487
+ }).map((E) => [E.placement, E.overflows.filter((N) => N > 0).reduce((N, I) => N + I, 0)]).sort((E, N) => E[1] - N[1])[0]) == null ? void 0 : D[0];
488
+ T && (L = T);
489
+ break;
490
+ }
491
+ case "initialPlacement":
492
+ L = c;
493
+ break;
494
+ }
495
+ if (r !== L)
496
+ return {
497
+ reset: {
498
+ placement: L
499
+ }
500
+ };
501
+ }
502
+ return {};
503
+ }
504
+ };
505
+ };
506
+ function Ut(t, e) {
507
+ return {
508
+ top: t.top - e.height,
509
+ right: t.right - e.width,
510
+ bottom: t.bottom - e.height,
511
+ left: t.left - e.width
512
+ };
513
+ }
514
+ function qt(t) {
515
+ return Xe.some((e) => t[e] >= 0);
516
+ }
517
+ const on = function(t) {
518
+ return t === void 0 && (t = {}), {
519
+ name: "hide",
520
+ options: t,
521
+ async fn(e) {
522
+ const {
523
+ rects: n
524
+ } = e, {
525
+ strategy: o = "referenceHidden",
526
+ ...r
527
+ } = U(t, e);
528
+ switch (o) {
529
+ case "referenceHidden": {
530
+ const i = await rt(e, {
531
+ ...r,
532
+ elementContext: "reference"
533
+ }), s = Ut(i, n.reference);
534
+ return {
535
+ data: {
536
+ referenceHiddenOffsets: s,
537
+ referenceHidden: qt(s)
538
+ }
539
+ };
540
+ }
541
+ case "escaped": {
542
+ const i = await rt(e, {
543
+ ...r,
544
+ altBoundary: !0
545
+ }), s = Ut(i, n.floating);
546
+ return {
547
+ data: {
548
+ escapedOffsets: s,
549
+ escaped: qt(s)
550
+ }
551
+ };
552
+ }
553
+ default:
554
+ return {};
555
+ }
556
+ }
557
+ };
558
+ };
559
+ async function rn(t, e) {
560
+ const {
561
+ placement: n,
562
+ platform: o,
563
+ elements: r
564
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n), c = et(n), f = z(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, a = i && f ? -1 : 1, u = U(e, t);
565
+ let {
566
+ mainAxis: p,
567
+ crossAxis: d,
568
+ alignmentAxis: m
569
+ } = typeof u == "number" ? {
570
+ mainAxis: u,
571
+ crossAxis: 0,
572
+ alignmentAxis: null
573
+ } : {
574
+ mainAxis: u.mainAxis || 0,
575
+ crossAxis: u.crossAxis || 0,
576
+ alignmentAxis: u.alignmentAxis
577
+ };
578
+ return c && typeof m == "number" && (d = c === "end" ? m * -1 : m), f ? {
579
+ x: d * a,
580
+ y: p * l
581
+ } : {
582
+ x: p * l,
583
+ y: d * a
584
+ };
585
+ }
586
+ const sn = function(t) {
587
+ return t === void 0 && (t = 0), {
588
+ name: "offset",
589
+ options: t,
590
+ async fn(e) {
591
+ var n, o;
592
+ const {
593
+ x: r,
594
+ y: i,
595
+ placement: s,
596
+ middlewareData: c
597
+ } = e, f = await rn(e, t);
598
+ return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
599
+ x: r + f.x,
600
+ y: i + f.y,
601
+ data: {
602
+ ...f,
603
+ placement: s
604
+ }
605
+ };
606
+ }
607
+ };
608
+ }, cn = function(t) {
609
+ return t === void 0 && (t = {}), {
610
+ name: "shift",
611
+ options: t,
612
+ async fn(e) {
613
+ const {
614
+ x: n,
615
+ y: o,
616
+ placement: r
617
+ } = e, {
618
+ mainAxis: i = !0,
619
+ crossAxis: s = !1,
620
+ limiter: c = {
621
+ fn: (w) => {
622
+ let {
623
+ x: g,
624
+ y: x
625
+ } = w;
626
+ return {
627
+ x: g,
628
+ y: x
629
+ };
630
+ }
631
+ },
632
+ ...f
633
+ } = U(t, e), l = {
634
+ x: n,
635
+ y: o
636
+ }, a = await rt(e, f), u = z(q(r)), p = St(u);
637
+ let d = l[p], m = l[u];
638
+ if (i) {
639
+ const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = d + a[w], P = d - a[g];
640
+ d = Et(x, d, P);
641
+ }
642
+ if (s) {
643
+ const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", x = m + a[w], P = m - a[g];
644
+ m = Et(x, m, P);
645
+ }
646
+ const h = c.fn({
647
+ ...e,
648
+ [p]: d,
649
+ [u]: m
650
+ });
651
+ return {
652
+ ...h,
653
+ data: {
654
+ x: h.x - n,
655
+ y: h.y - o,
656
+ enabled: {
657
+ [p]: i,
658
+ [u]: s
659
+ }
660
+ }
661
+ };
662
+ }
663
+ };
664
+ }, ln = function(t) {
665
+ return t === void 0 && (t = {}), {
666
+ options: t,
667
+ fn(e) {
668
+ const {
669
+ x: n,
670
+ y: o,
671
+ placement: r,
672
+ rects: i,
673
+ middlewareData: s
674
+ } = e, {
675
+ offset: c = 0,
676
+ mainAxis: f = !0,
677
+ crossAxis: l = !0
678
+ } = U(t, e), a = {
679
+ x: n,
680
+ y: o
681
+ }, u = z(r), p = St(u);
682
+ let d = a[p], m = a[u];
683
+ const h = U(c, e), w = typeof h == "number" ? {
684
+ mainAxis: h,
685
+ crossAxis: 0
686
+ } : {
687
+ mainAxis: 0,
688
+ crossAxis: 0,
689
+ ...h
690
+ };
691
+ if (f) {
692
+ const P = p === "y" ? "height" : "width", b = i.reference[p] - i.floating[P] + w.mainAxis, A = i.reference[p] + i.reference[P] - w.mainAxis;
693
+ d < b ? d = b : d > A && (d = A);
694
+ }
695
+ if (l) {
696
+ var g, x;
697
+ const P = p === "y" ? "width" : "height", b = ["top", "left"].includes(q(r)), A = i.reference[u] - i.floating[P] + (b && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (b ? 0 : w.crossAxis), R = i.reference[u] + i.reference[P] + (b ? 0 : ((x = s.offset) == null ? void 0 : x[u]) || 0) - (b ? w.crossAxis : 0);
698
+ m < A ? m = A : m > R && (m = R);
699
+ }
700
+ return {
701
+ [p]: d,
702
+ [u]: m
703
+ };
704
+ }
705
+ };
706
+ }, an = function(t) {
707
+ return t === void 0 && (t = {}), {
708
+ name: "size",
709
+ options: t,
710
+ async fn(e) {
711
+ var n, o;
712
+ const {
713
+ placement: r,
714
+ rects: i,
715
+ platform: s,
716
+ elements: c
717
+ } = e, {
718
+ apply: f = () => {
719
+ },
720
+ ...l
721
+ } = U(t, e), a = await rt(e, l), u = q(r), p = et(r), d = z(r) === "y", {
722
+ width: m,
723
+ height: h
724
+ } = i.floating;
725
+ let w, g;
726
+ u === "top" || u === "bottom" ? (w = u, g = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = p === "end" ? "top" : "bottom");
727
+ const x = h - a.top - a.bottom, P = m - a.left - a.right, b = Z(h - a[w], x), A = Z(m - a[g], P), R = !e.middlewareData.shift;
728
+ let v = b, O = A;
729
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (O = P), (o = e.middlewareData.shift) != null && o.enabled.y && (v = x), R && !p) {
730
+ const C = $(a.left, 0), F = $(a.right, 0), k = $(a.top, 0), D = $(a.bottom, 0);
731
+ d ? O = m - 2 * (C !== 0 || F !== 0 ? C + F : $(a.left, a.right)) : v = h - 2 * (k !== 0 || D !== 0 ? k + D : $(a.top, a.bottom));
732
+ }
733
+ await f({
734
+ ...e,
735
+ availableWidth: O,
736
+ availableHeight: v
737
+ });
738
+ const M = await s.getDimensions(c.floating);
739
+ return m !== M.width || h !== M.height ? {
740
+ reset: {
741
+ rects: !0
742
+ }
743
+ } : {};
744
+ }
745
+ };
746
+ };
747
+ function gt() {
748
+ return typeof window < "u";
749
+ }
750
+ function nt(t) {
751
+ return oe(t) ? (t.nodeName || "").toLowerCase() : "#document";
752
+ }
753
+ function B(t) {
754
+ var e;
755
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
756
+ }
757
+ function X(t) {
758
+ var e;
759
+ return (e = (oe(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
760
+ }
761
+ function oe(t) {
762
+ return gt() ? t instanceof Node || t instanceof B(t).Node : !1;
763
+ }
764
+ function H(t) {
765
+ return gt() ? t instanceof Element || t instanceof B(t).Element : !1;
766
+ }
767
+ function Y(t) {
768
+ return gt() ? t instanceof HTMLElement || t instanceof B(t).HTMLElement : !1;
769
+ }
770
+ function Zt(t) {
771
+ return !gt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof B(t).ShadowRoot;
772
+ }
773
+ function st(t) {
774
+ const {
775
+ overflow: e,
776
+ overflowX: n,
777
+ overflowY: o,
778
+ display: r
779
+ } = j(t);
780
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(r);
781
+ }
782
+ function fn(t) {
783
+ return ["table", "td", "th"].includes(nt(t));
784
+ }
785
+ function wt(t) {
786
+ return [":popover-open", ":modal"].some((e) => {
787
+ try {
788
+ return t.matches(e);
789
+ } catch {
790
+ return !1;
791
+ }
792
+ });
793
+ }
794
+ function Tt(t) {
795
+ const e = Mt(), n = H(t) ? j(t) : t;
796
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
797
+ }
798
+ function un(t) {
799
+ let e = K(t);
800
+ for (; Y(e) && !Q(e); ) {
801
+ if (Tt(e))
802
+ return e;
803
+ if (wt(e))
804
+ return null;
805
+ e = K(e);
806
+ }
807
+ return null;
808
+ }
809
+ function Mt() {
810
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
811
+ }
812
+ function Q(t) {
813
+ return ["html", "body", "#document"].includes(nt(t));
814
+ }
815
+ function j(t) {
816
+ return B(t).getComputedStyle(t);
817
+ }
818
+ function yt(t) {
819
+ return H(t) ? {
820
+ scrollLeft: t.scrollLeft,
821
+ scrollTop: t.scrollTop
822
+ } : {
823
+ scrollLeft: t.scrollX,
824
+ scrollTop: t.scrollY
825
+ };
826
+ }
827
+ function K(t) {
828
+ if (nt(t) === "html")
829
+ return t;
830
+ const e = (
831
+ // Step into the shadow DOM of the parent of a slotted node.
832
+ t.assignedSlot || // DOM Element detected.
833
+ t.parentNode || // ShadowRoot detected.
834
+ Zt(t) && t.host || // Fallback.
835
+ X(t)
836
+ );
837
+ return Zt(e) ? e.host : e;
838
+ }
839
+ function re(t) {
840
+ const e = K(t);
841
+ return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && st(e) ? e : re(e);
842
+ }
843
+ function it(t, e, n) {
844
+ var o;
845
+ e === void 0 && (e = []), n === void 0 && (n = !0);
846
+ const r = re(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = B(r);
847
+ if (i) {
848
+ const c = Ot(s);
849
+ return e.concat(s, s.visualViewport || [], st(r) ? r : [], c && n ? it(c) : []);
850
+ }
851
+ return e.concat(r, it(r, [], n));
852
+ }
853
+ function Ot(t) {
854
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
855
+ }
856
+ function ie(t) {
857
+ const e = j(t);
858
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
859
+ const r = Y(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = ut(n) !== i || ut(o) !== s;
860
+ return c && (n = i, o = s), {
861
+ width: n,
862
+ height: o,
863
+ $: c
864
+ };
865
+ }
866
+ function Nt(t) {
867
+ return H(t) ? t : t.contextElement;
868
+ }
869
+ function J(t) {
870
+ const e = Nt(t);
871
+ if (!Y(e))
872
+ return V(1);
873
+ const n = e.getBoundingClientRect(), {
874
+ width: o,
875
+ height: r,
876
+ $: i
877
+ } = ie(e);
878
+ let s = (i ? ut(n.width) : n.width) / o, c = (i ? ut(n.height) : n.height) / r;
879
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
880
+ x: s,
881
+ y: c
882
+ };
883
+ }
884
+ const dn = /* @__PURE__ */ V(0);
885
+ function se(t) {
886
+ const e = B(t);
887
+ return !Mt() || !e.visualViewport ? dn : {
888
+ x: e.visualViewport.offsetLeft,
889
+ y: e.visualViewport.offsetTop
890
+ };
891
+ }
892
+ function pn(t, e, n) {
893
+ return e === void 0 && (e = !1), !n || e && n !== B(t) ? !1 : e;
894
+ }
895
+ function G(t, e, n, o) {
896
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
897
+ const r = t.getBoundingClientRect(), i = Nt(t);
898
+ let s = V(1);
899
+ e && (o ? H(o) && (s = J(o)) : s = J(t));
900
+ const c = pn(i, n, o) ? se(i) : V(0);
901
+ let f = (r.left + c.x) / s.x, l = (r.top + c.y) / s.y, a = r.width / s.x, u = r.height / s.y;
902
+ if (i) {
903
+ const p = B(i), d = o && H(o) ? B(o) : o;
904
+ let m = p, h = Ot(m);
905
+ for (; h && o && d !== m; ) {
906
+ const w = J(h), g = h.getBoundingClientRect(), x = j(h), P = g.left + (h.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = g.top + (h.clientTop + parseFloat(x.paddingTop)) * w.y;
907
+ f *= w.x, l *= w.y, a *= w.x, u *= w.y, f += P, l += b, m = B(h), h = Ot(m);
908
+ }
909
+ }
910
+ return pt({
911
+ width: a,
912
+ height: u,
913
+ x: f,
914
+ y: l
915
+ });
916
+ }
917
+ function Ft(t, e) {
918
+ const n = yt(t).scrollLeft;
919
+ return e ? e.left + n : G(X(t)).left + n;
920
+ }
921
+ function ce(t, e, n) {
922
+ n === void 0 && (n = !1);
923
+ const o = t.getBoundingClientRect(), r = o.left + e.scrollLeft - (n ? 0 : (
924
+ // RTL <body> scrollbar.
925
+ Ft(t, o)
926
+ )), i = o.top + e.scrollTop;
927
+ return {
928
+ x: r,
929
+ y: i
930
+ };
931
+ }
932
+ function mn(t) {
933
+ let {
934
+ elements: e,
935
+ rect: n,
936
+ offsetParent: o,
937
+ strategy: r
938
+ } = t;
939
+ const i = r === "fixed", s = X(o), c = e ? wt(e.floating) : !1;
940
+ if (o === s || c && i)
941
+ return n;
942
+ let f = {
943
+ scrollLeft: 0,
944
+ scrollTop: 0
945
+ }, l = V(1);
946
+ const a = V(0), u = Y(o);
947
+ if ((u || !u && !i) && ((nt(o) !== "body" || st(s)) && (f = yt(o)), Y(o))) {
948
+ const d = G(o);
949
+ l = J(o), a.x = d.x + o.clientLeft, a.y = d.y + o.clientTop;
950
+ }
951
+ const p = s && !u && !i ? ce(s, f, !0) : V(0);
952
+ return {
953
+ width: n.width * l.x,
954
+ height: n.height * l.y,
955
+ x: n.x * l.x - f.scrollLeft * l.x + a.x + p.x,
956
+ y: n.y * l.y - f.scrollTop * l.y + a.y + p.y
957
+ };
958
+ }
959
+ function hn(t) {
960
+ return Array.from(t.getClientRects());
961
+ }
962
+ function gn(t) {
963
+ const e = X(t), n = yt(t), o = t.ownerDocument.body, r = $(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = $(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
964
+ let s = -n.scrollLeft + Ft(t);
965
+ const c = -n.scrollTop;
966
+ return j(o).direction === "rtl" && (s += $(e.clientWidth, o.clientWidth) - r), {
967
+ width: r,
968
+ height: i,
969
+ x: s,
970
+ y: c
971
+ };
972
+ }
973
+ function wn(t, e) {
974
+ const n = B(t), o = X(t), r = n.visualViewport;
975
+ let i = o.clientWidth, s = o.clientHeight, c = 0, f = 0;
976
+ if (r) {
977
+ i = r.width, s = r.height;
978
+ const l = Mt();
979
+ (!l || l && e === "fixed") && (c = r.offsetLeft, f = r.offsetTop);
980
+ }
981
+ return {
982
+ width: i,
983
+ height: s,
984
+ x: c,
985
+ y: f
986
+ };
987
+ }
988
+ function yn(t, e) {
989
+ const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = Y(t) ? J(t) : V(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, f = r * i.x, l = o * i.y;
990
+ return {
991
+ width: s,
992
+ height: c,
993
+ x: f,
994
+ y: l
995
+ };
996
+ }
997
+ function Kt(t, e, n) {
998
+ let o;
999
+ if (e === "viewport")
1000
+ o = wn(t, n);
1001
+ else if (e === "document")
1002
+ o = gn(X(t));
1003
+ else if (H(e))
1004
+ o = yn(e, n);
1005
+ else {
1006
+ const r = se(t);
1007
+ o = {
1008
+ x: e.x - r.x,
1009
+ y: e.y - r.y,
1010
+ width: e.width,
1011
+ height: e.height
1012
+ };
1013
+ }
1014
+ return pt(o);
1015
+ }
1016
+ function le(t, e) {
1017
+ const n = K(t);
1018
+ return n === e || !H(n) || Q(n) ? !1 : j(n).position === "fixed" || le(n, e);
1019
+ }
1020
+ function xn(t, e) {
1021
+ const n = e.get(t);
1022
+ if (n)
1023
+ return n;
1024
+ let o = it(t, [], !1).filter((c) => H(c) && nt(c) !== "body"), r = null;
1025
+ const i = j(t).position === "fixed";
1026
+ let s = i ? K(t) : t;
1027
+ for (; H(s) && !Q(s); ) {
1028
+ const c = j(s), f = Tt(s);
1029
+ !f && c.position === "fixed" && (r = null), (i ? !f && !r : !f && c.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || st(s) && !f && le(t, s)) ? o = o.filter((a) => a !== s) : r = c, s = K(s);
1030
+ }
1031
+ return e.set(t, o), o;
1032
+ }
1033
+ function vn(t) {
1034
+ let {
1035
+ element: e,
1036
+ boundary: n,
1037
+ rootBoundary: o,
1038
+ strategy: r
1039
+ } = t;
1040
+ const s = [...n === "clippingAncestors" ? wt(e) ? [] : xn(e, this._c) : [].concat(n), o], c = s[0], f = s.reduce((l, a) => {
1041
+ const u = Kt(e, a, r);
1042
+ return l.top = $(u.top, l.top), l.right = Z(u.right, l.right), l.bottom = Z(u.bottom, l.bottom), l.left = $(u.left, l.left), l;
1043
+ }, Kt(e, c, r));
1044
+ return {
1045
+ width: f.right - f.left,
1046
+ height: f.bottom - f.top,
1047
+ x: f.left,
1048
+ y: f.top
1049
+ };
1050
+ }
1051
+ function bn(t) {
1052
+ const {
1053
+ width: e,
1054
+ height: n
1055
+ } = ie(t);
1056
+ return {
1057
+ width: e,
1058
+ height: n
1059
+ };
1060
+ }
1061
+ function An(t, e, n) {
1062
+ const o = Y(e), r = X(e), i = n === "fixed", s = G(t, !0, i, e);
1063
+ let c = {
1064
+ scrollLeft: 0,
1065
+ scrollTop: 0
1066
+ };
1067
+ const f = V(0);
1068
+ function l() {
1069
+ f.x = Ft(r);
1070
+ }
1071
+ if (o || !o && !i)
1072
+ if ((nt(e) !== "body" || st(r)) && (c = yt(e)), o) {
1073
+ const d = G(e, !0, i, e);
1074
+ f.x = d.x + e.clientLeft, f.y = d.y + e.clientTop;
1075
+ } else r && l();
1076
+ i && !o && r && l();
1077
+ const a = r && !o && !i ? ce(r, c) : V(0), u = s.left + c.scrollLeft - f.x - a.x, p = s.top + c.scrollTop - f.y - a.y;
1078
+ return {
1079
+ x: u,
1080
+ y: p,
1081
+ width: s.width,
1082
+ height: s.height
1083
+ };
1084
+ }
1085
+ function vt(t) {
1086
+ return j(t).position === "static";
1087
+ }
1088
+ function Gt(t, e) {
1089
+ if (!Y(t) || j(t).position === "fixed")
1090
+ return null;
1091
+ if (e)
1092
+ return e(t);
1093
+ let n = t.offsetParent;
1094
+ return X(t) === n && (n = n.ownerDocument.body), n;
1095
+ }
1096
+ function ae(t, e) {
1097
+ const n = B(t);
1098
+ if (wt(t))
1099
+ return n;
1100
+ if (!Y(t)) {
1101
+ let r = K(t);
1102
+ for (; r && !Q(r); ) {
1103
+ if (H(r) && !vt(r))
1104
+ return r;
1105
+ r = K(r);
1106
+ }
1107
+ return n;
1108
+ }
1109
+ let o = Gt(t, e);
1110
+ for (; o && fn(o) && vt(o); )
1111
+ o = Gt(o, e);
1112
+ return o && Q(o) && vt(o) && !Tt(o) ? n : o || un(t) || n;
1113
+ }
1114
+ const Pn = async function(t) {
1115
+ const e = this.getOffsetParent || ae, n = this.getDimensions, o = await n(t.floating);
1116
+ return {
1117
+ reference: An(t.reference, await e(t.floating), t.strategy),
1118
+ floating: {
1119
+ x: 0,
1120
+ y: 0,
1121
+ width: o.width,
1122
+ height: o.height
1123
+ }
1124
+ };
1125
+ };
1126
+ function En(t) {
1127
+ return j(t).direction === "rtl";
1128
+ }
1129
+ const Rn = {
1130
+ convertOffsetParentRelativeRectToViewportRelativeRect: mn,
1131
+ getDocumentElement: X,
1132
+ getClippingRect: vn,
1133
+ getOffsetParent: ae,
1134
+ getElementRects: Pn,
1135
+ getClientRects: hn,
1136
+ getDimensions: bn,
1137
+ getScale: J,
1138
+ isElement: H,
1139
+ isRTL: En
1140
+ };
1141
+ function fe(t, e) {
1142
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1143
+ }
1144
+ function On(t, e) {
1145
+ let n = null, o;
1146
+ const r = X(t);
1147
+ function i() {
1148
+ var c;
1149
+ clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
1150
+ }
1151
+ function s(c, f) {
1152
+ c === void 0 && (c = !1), f === void 0 && (f = 1), i();
1153
+ const l = t.getBoundingClientRect(), {
1154
+ left: a,
1155
+ top: u,
1156
+ width: p,
1157
+ height: d
1158
+ } = l;
1159
+ if (c || e(), !p || !d)
1160
+ return;
1161
+ const m = at(u), h = at(r.clientWidth - (a + p)), w = at(r.clientHeight - (u + d)), g = at(a), P = {
1162
+ rootMargin: -m + "px " + -h + "px " + -w + "px " + -g + "px",
1163
+ threshold: $(0, Z(1, f)) || 1
1164
+ };
1165
+ let b = !0;
1166
+ function A(R) {
1167
+ const v = R[0].intersectionRatio;
1168
+ if (v !== f) {
1169
+ if (!b)
1170
+ return s();
1171
+ v ? s(!1, v) : o = setTimeout(() => {
1172
+ s(!1, 1e-7);
1173
+ }, 1e3);
1174
+ }
1175
+ v === 1 && !fe(l, t.getBoundingClientRect()) && s(), b = !1;
1176
+ }
1177
+ try {
1178
+ n = new IntersectionObserver(A, {
1179
+ ...P,
1180
+ // Handle <iframe>s
1181
+ root: r.ownerDocument
1182
+ });
1183
+ } catch {
1184
+ n = new IntersectionObserver(A, P);
1185
+ }
1186
+ n.observe(t);
1187
+ }
1188
+ return s(!0), i;
1189
+ }
1190
+ function Cn(t, e, n, o) {
1191
+ o === void 0 && (o = {});
1192
+ const {
1193
+ ancestorScroll: r = !0,
1194
+ ancestorResize: i = !0,
1195
+ elementResize: s = typeof ResizeObserver == "function",
1196
+ layoutShift: c = typeof IntersectionObserver == "function",
1197
+ animationFrame: f = !1
1198
+ } = o, l = Nt(t), a = r || i ? [...l ? it(l) : [], ...it(e)] : [];
1199
+ a.forEach((g) => {
1200
+ r && g.addEventListener("scroll", n, {
1201
+ passive: !0
1202
+ }), i && g.addEventListener("resize", n);
1203
+ });
1204
+ const u = l && c ? On(l, n) : null;
1205
+ let p = -1, d = null;
1206
+ s && (d = new ResizeObserver((g) => {
1207
+ let [x] = g;
1208
+ x && x.target === l && d && (d.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1209
+ var P;
1210
+ (P = d) == null || P.observe(e);
1211
+ })), n();
1212
+ }), l && !f && d.observe(l), d.observe(e));
1213
+ let m, h = f ? G(t) : null;
1214
+ f && w();
1215
+ function w() {
1216
+ const g = G(t);
1217
+ h && !fe(h, g) && n(), h = g, m = requestAnimationFrame(w);
1218
+ }
1219
+ return n(), () => {
1220
+ var g;
1221
+ a.forEach((x) => {
1222
+ r && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
1223
+ }), u == null || u(), (g = d) == null || g.disconnect(), d = null, f && cancelAnimationFrame(m);
1224
+ };
1225
+ }
1226
+ const Sn = sn, Dn = cn, Ln = nn, Tn = an, Mn = on, Jt = en, Nn = ln, Fn = (t, e, n) => {
1227
+ const o = /* @__PURE__ */ new Map(), r = {
1228
+ platform: Rn,
1229
+ ...n
1230
+ }, i = {
1231
+ ...r.platform,
1232
+ _c: o
1233
+ };
1234
+ return tn(t, e, {
1235
+ ...r,
1236
+ platform: i
1237
+ });
1238
+ };
1239
+ var kn = typeof document < "u", Wn = function() {
1240
+ }, ft = kn ? Te : Wn;
1241
+ function mt(t, e) {
1242
+ if (t === e)
1243
+ return !0;
1244
+ if (typeof t != typeof e)
1245
+ return !1;
1246
+ if (typeof t == "function" && t.toString() === e.toString())
1247
+ return !0;
1248
+ let n, o, r;
1249
+ if (t && e && typeof t == "object") {
1250
+ if (Array.isArray(t)) {
1251
+ if (n = t.length, n !== e.length) return !1;
1252
+ for (o = n; o-- !== 0; )
1253
+ if (!mt(t[o], e[o]))
1254
+ return !1;
1255
+ return !0;
1256
+ }
1257
+ if (r = Object.keys(t), n = r.length, n !== Object.keys(e).length)
1258
+ return !1;
1259
+ for (o = n; o-- !== 0; )
1260
+ if (!{}.hasOwnProperty.call(e, r[o]))
1261
+ return !1;
1262
+ for (o = n; o-- !== 0; ) {
1263
+ const i = r[o];
1264
+ if (!(i === "_owner" && t.$$typeof) && !mt(t[i], e[i]))
1265
+ return !1;
1266
+ }
1267
+ return !0;
1268
+ }
1269
+ return t !== t && e !== e;
1270
+ }
1271
+ function ue(t) {
1272
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1273
+ }
1274
+ function Qt(t, e) {
1275
+ const n = ue(t);
1276
+ return Math.round(e * n) / n;
1277
+ }
1278
+ function bt(t) {
1279
+ const e = y.useRef(t);
1280
+ return ft(() => {
1281
+ e.current = t;
1282
+ }), e;
1283
+ }
1284
+ function $n(t) {
1285
+ t === void 0 && (t = {});
1286
+ const {
1287
+ placement: e = "bottom",
1288
+ strategy: n = "absolute",
1289
+ middleware: o = [],
1290
+ platform: r,
1291
+ elements: {
1292
+ reference: i,
1293
+ floating: s
1294
+ } = {},
1295
+ transform: c = !0,
1296
+ whileElementsMounted: f,
1297
+ open: l
1298
+ } = t, [a, u] = y.useState({
1299
+ x: 0,
1300
+ y: 0,
1301
+ strategy: n,
1302
+ placement: e,
1303
+ middlewareData: {},
1304
+ isPositioned: !1
1305
+ }), [p, d] = y.useState(o);
1306
+ mt(p, o) || d(o);
1307
+ const [m, h] = y.useState(null), [w, g] = y.useState(null), x = y.useCallback((E) => {
1308
+ E !== R.current && (R.current = E, h(E));
1309
+ }, []), P = y.useCallback((E) => {
1310
+ E !== v.current && (v.current = E, g(E));
1311
+ }, []), b = i || m, A = s || w, R = y.useRef(null), v = y.useRef(null), O = y.useRef(a), M = f != null, C = bt(f), F = bt(r), k = bt(l), D = y.useCallback(() => {
1312
+ if (!R.current || !v.current)
1313
+ return;
1314
+ const E = {
1315
+ placement: e,
1316
+ strategy: n,
1317
+ middleware: p
1318
+ };
1319
+ F.current && (E.platform = F.current), Fn(R.current, v.current, E).then((N) => {
1320
+ const I = {
1321
+ ...N,
1322
+ // The floating element's position may be recomputed while it's closed
1323
+ // but still mounted (such as when transitioning out). To ensure
1324
+ // `isPositioned` will be `false` initially on the next open, avoid
1325
+ // setting it to `true` when `open === false` (must be specified).
1326
+ isPositioned: k.current !== !1
1327
+ };
1328
+ S.current && !mt(O.current, I) && (O.current = I, ke.flushSync(() => {
1329
+ u(I);
1330
+ }));
1331
+ });
1332
+ }, [p, e, n, F, k]);
1333
+ ft(() => {
1334
+ l === !1 && O.current.isPositioned && (O.current.isPositioned = !1, u((E) => ({
1335
+ ...E,
1336
+ isPositioned: !1
1337
+ })));
1338
+ }, [l]);
1339
+ const S = y.useRef(!1);
1340
+ ft(() => (S.current = !0, () => {
1341
+ S.current = !1;
1342
+ }), []), ft(() => {
1343
+ if (b && (R.current = b), A && (v.current = A), b && A) {
1344
+ if (C.current)
1345
+ return C.current(b, A, D);
1346
+ D();
1347
+ }
1348
+ }, [b, A, D, C, M]);
1349
+ const W = y.useMemo(() => ({
1350
+ reference: R,
1351
+ floating: v,
1352
+ setReference: x,
1353
+ setFloating: P
1354
+ }), [x, P]), L = y.useMemo(() => ({
1355
+ reference: b,
1356
+ floating: A
1357
+ }), [b, A]), T = y.useMemo(() => {
1358
+ const E = {
1359
+ position: n,
1360
+ left: 0,
1361
+ top: 0
1362
+ };
1363
+ if (!L.floating)
1364
+ return E;
1365
+ const N = Qt(L.floating, a.x), I = Qt(L.floating, a.y);
1366
+ return c ? {
1367
+ ...E,
1368
+ transform: "translate(" + N + "px, " + I + "px)",
1369
+ ...ue(L.floating) >= 1.5 && {
1370
+ willChange: "transform"
1371
+ }
1372
+ } : {
1373
+ position: n,
1374
+ left: N,
1375
+ top: I
1376
+ };
1377
+ }, [n, c, L.floating, a.x, a.y]);
1378
+ return y.useMemo(() => ({
1379
+ ...a,
1380
+ update: D,
1381
+ refs: W,
1382
+ elements: L,
1383
+ floatingStyles: T
1384
+ }), [a, D, W, L, T]);
1385
+ }
1386
+ const Bn = (t) => {
1387
+ function e(n) {
1388
+ return {}.hasOwnProperty.call(n, "current");
1389
+ }
1390
+ return {
1391
+ name: "arrow",
1392
+ options: t,
1393
+ fn(n) {
1394
+ const {
1395
+ element: o,
1396
+ padding: r
1397
+ } = typeof t == "function" ? t(n) : t;
1398
+ return o && e(o) ? o.current != null ? Jt({
1399
+ element: o.current,
1400
+ padding: r
1401
+ }).fn(n) : {} : o ? Jt({
1402
+ element: o,
1403
+ padding: r
1404
+ }).fn(n) : {};
1405
+ }
1406
+ };
1407
+ }, _n = (t, e) => ({
1408
+ ...Sn(t),
1409
+ options: [t, e]
1410
+ }), Hn = (t, e) => ({
1411
+ ...Dn(t),
1412
+ options: [t, e]
1413
+ }), jn = (t, e) => ({
1414
+ ...Nn(t),
1415
+ options: [t, e]
1416
+ }), In = (t, e) => ({
1417
+ ...Ln(t),
1418
+ options: [t, e]
1419
+ }), zn = (t, e) => ({
1420
+ ...Tn(t),
1421
+ options: [t, e]
1422
+ }), Vn = (t, e) => ({
1423
+ ...Mn(t),
1424
+ options: [t, e]
1425
+ }), Yn = (t, e) => ({
1426
+ ...Bn(t),
1427
+ options: [t, e]
1428
+ });
1429
+ var Xn = "Arrow", de = y.forwardRef((t, e) => {
1430
+ const { children: n, width: o = 10, height: r = 5, ...i } = t;
1431
+ return /* @__PURE__ */ _.jsx(
1432
+ tt.svg,
1433
+ {
1434
+ ...i,
1435
+ ref: e,
1436
+ width: o,
1437
+ height: r,
1438
+ viewBox: "0 0 30 10",
1439
+ preserveAspectRatio: "none",
1440
+ children: t.asChild ? n : /* @__PURE__ */ _.jsx("polygon", { points: "0,0 30,0 15,10" })
1441
+ }
1442
+ );
1443
+ });
1444
+ de.displayName = Xn;
1445
+ var Un = de, kt = "Popper", [pe, uo] = $e(kt), [qn, me] = pe(kt), he = (t) => {
1446
+ const { __scopePopper: e, children: n } = t, [o, r] = y.useState(null);
1447
+ return /* @__PURE__ */ _.jsx(qn, { scope: e, anchor: o, onAnchorChange: r, children: n });
1448
+ };
1449
+ he.displayName = kt;
1450
+ var ge = "PopperAnchor", we = y.forwardRef(
1451
+ (t, e) => {
1452
+ const { __scopePopper: n, virtualRef: o, ...r } = t, i = me(ge, n), s = y.useRef(null), c = ht(e, s);
1453
+ return y.useEffect(() => {
1454
+ i.onAnchorChange((o == null ? void 0 : o.current) || s.current);
1455
+ }), o ? null : /* @__PURE__ */ _.jsx(tt.div, { ...r, ref: c });
1456
+ }
1457
+ );
1458
+ we.displayName = ge;
1459
+ var Wt = "PopperContent", [Zn, Kn] = pe(Wt), ye = y.forwardRef(
1460
+ (t, e) => {
1461
+ var $t, Bt, _t, Ht, jt, It;
1462
+ const {
1463
+ __scopePopper: n,
1464
+ side: o = "bottom",
1465
+ sideOffset: r = 0,
1466
+ align: i = "center",
1467
+ alignOffset: s = 0,
1468
+ arrowPadding: c = 0,
1469
+ avoidCollisions: f = !0,
1470
+ collisionBoundary: l = [],
1471
+ collisionPadding: a = 0,
1472
+ sticky: u = "partial",
1473
+ hideWhenDetached: p = !1,
1474
+ updatePositionStrategy: d = "optimized",
1475
+ onPlaced: m,
1476
+ ...h
1477
+ } = t, w = me(Wt, n), [g, x] = y.useState(null), P = ht(e, (ot) => x(ot)), [b, A] = y.useState(null), R = Ne(b), v = (R == null ? void 0 : R.width) ?? 0, O = (R == null ? void 0 : R.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), C = typeof a == "number" ? a : { top: 0, right: 0, bottom: 0, left: 0, ...a }, F = Array.isArray(l) ? l : [l], k = F.length > 0, D = {
1478
+ padding: C,
1479
+ boundary: F.filter(Jn),
1480
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1481
+ altBoundary: k
1482
+ }, { refs: S, floatingStyles: W, placement: L, isPositioned: T, middlewareData: E } = $n({
1483
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1484
+ strategy: "fixed",
1485
+ placement: M,
1486
+ whileElementsMounted: (...ot) => Cn(...ot, {
1487
+ animationFrame: d === "always"
1488
+ }),
1489
+ elements: {
1490
+ reference: w.anchor
1491
+ },
1492
+ middleware: [
1493
+ _n({ mainAxis: r + O, alignmentAxis: s }),
1494
+ f && Hn({
1495
+ mainAxis: !0,
1496
+ crossAxis: !1,
1497
+ limiter: u === "partial" ? jn() : void 0,
1498
+ ...D
1499
+ }),
1500
+ f && In({ ...D }),
1501
+ zn({
1502
+ ...D,
1503
+ apply: ({ elements: ot, rects: zt, availableWidth: Ce, availableHeight: Se }) => {
1504
+ const { width: De, height: Le } = zt.reference, lt = ot.floating.style;
1505
+ lt.setProperty("--radix-popper-available-width", `${Ce}px`), lt.setProperty("--radix-popper-available-height", `${Se}px`), lt.setProperty("--radix-popper-anchor-width", `${De}px`), lt.setProperty("--radix-popper-anchor-height", `${Le}px`);
1506
+ }
1507
+ }),
1508
+ b && Yn({ element: b, padding: c }),
1509
+ Qn({ arrowWidth: v, arrowHeight: O }),
1510
+ p && Vn({ strategy: "referenceHidden", ...D })
1511
+ ]
1512
+ }), [N, I] = be(L), ct = Ct(m);
1513
+ At(() => {
1514
+ T && (ct == null || ct());
1515
+ }, [T, ct]);
1516
+ const Ae = ($t = E.arrow) == null ? void 0 : $t.x, Pe = (Bt = E.arrow) == null ? void 0 : Bt.y, Ee = ((_t = E.arrow) == null ? void 0 : _t.centerOffset) !== 0, [Re, Oe] = y.useState();
1517
+ return At(() => {
1518
+ g && Oe(window.getComputedStyle(g).zIndex);
1519
+ }, [g]), /* @__PURE__ */ _.jsx(
1520
+ "div",
1521
+ {
1522
+ ref: S.setFloating,
1523
+ "data-radix-popper-content-wrapper": "",
1524
+ style: {
1525
+ ...W,
1526
+ transform: T ? W.transform : "translate(0, -200%)",
1527
+ // keep off the page when measuring
1528
+ minWidth: "max-content",
1529
+ zIndex: Re,
1530
+ "--radix-popper-transform-origin": [
1531
+ (Ht = E.transformOrigin) == null ? void 0 : Ht.x,
1532
+ (jt = E.transformOrigin) == null ? void 0 : jt.y
1533
+ ].join(" "),
1534
+ // hide the content if using the hide middleware and should be hidden
1535
+ // set visibility to hidden and disable pointer events so the UI behaves
1536
+ // as if the PopperContent isn't there at all
1537
+ ...((It = E.hide) == null ? void 0 : It.referenceHidden) && {
1538
+ visibility: "hidden",
1539
+ pointerEvents: "none"
1540
+ }
1541
+ },
1542
+ dir: t.dir,
1543
+ children: /* @__PURE__ */ _.jsx(
1544
+ Zn,
1545
+ {
1546
+ scope: n,
1547
+ placedSide: N,
1548
+ onArrowChange: A,
1549
+ arrowX: Ae,
1550
+ arrowY: Pe,
1551
+ shouldHideArrow: Ee,
1552
+ children: /* @__PURE__ */ _.jsx(
1553
+ tt.div,
1554
+ {
1555
+ "data-side": N,
1556
+ "data-align": I,
1557
+ ...h,
1558
+ ref: P,
1559
+ style: {
1560
+ ...h.style,
1561
+ // if the PopperContent hasn't been placed yet (not all measurements done)
1562
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
1563
+ animation: T ? void 0 : "none"
1564
+ }
1565
+ }
1566
+ )
1567
+ }
1568
+ )
1569
+ }
1570
+ );
1571
+ }
1572
+ );
1573
+ ye.displayName = Wt;
1574
+ var xe = "PopperArrow", Gn = {
1575
+ top: "bottom",
1576
+ right: "left",
1577
+ bottom: "top",
1578
+ left: "right"
1579
+ }, ve = y.forwardRef(function(e, n) {
1580
+ const { __scopePopper: o, ...r } = e, i = Kn(xe, o), s = Gn[i.placedSide];
1581
+ return (
1582
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1583
+ // doesn't report size as we'd expect on SVG elements.
1584
+ // it reports their bounding box which is effectively the largest path inside the SVG.
1585
+ /* @__PURE__ */ _.jsx(
1586
+ "span",
1587
+ {
1588
+ ref: i.onArrowChange,
1589
+ style: {
1590
+ position: "absolute",
1591
+ left: i.arrowX,
1592
+ top: i.arrowY,
1593
+ [s]: 0,
1594
+ transformOrigin: {
1595
+ top: "",
1596
+ right: "0 0",
1597
+ bottom: "center 0",
1598
+ left: "100% 0"
1599
+ }[i.placedSide],
1600
+ transform: {
1601
+ top: "translateY(100%)",
1602
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
1603
+ bottom: "rotate(180deg)",
1604
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
1605
+ }[i.placedSide],
1606
+ visibility: i.shouldHideArrow ? "hidden" : void 0
1607
+ },
1608
+ children: /* @__PURE__ */ _.jsx(
1609
+ Un,
1610
+ {
1611
+ ...r,
1612
+ ref: n,
1613
+ style: {
1614
+ ...r.style,
1615
+ // ensures the element can be measured correctly (mostly for if SVG)
1616
+ display: "block"
1617
+ }
1618
+ }
1619
+ )
1620
+ }
1621
+ )
1622
+ );
1623
+ });
1624
+ ve.displayName = xe;
1625
+ function Jn(t) {
1626
+ return t !== null;
1627
+ }
1628
+ var Qn = (t) => ({
1629
+ name: "transformOrigin",
1630
+ options: t,
1631
+ fn(e) {
1632
+ var w, g, x;
1633
+ const { placement: n, rects: o, middlewareData: r } = e, s = ((w = r.arrow) == null ? void 0 : w.centerOffset) !== 0, c = s ? 0 : t.arrowWidth, f = s ? 0 : t.arrowHeight, [l, a] = be(n), u = { start: "0%", center: "50%", end: "100%" }[a], p = (((g = r.arrow) == null ? void 0 : g.x) ?? 0) + c / 2, d = (((x = r.arrow) == null ? void 0 : x.y) ?? 0) + f / 2;
1634
+ let m = "", h = "";
1635
+ return l === "bottom" ? (m = s ? u : `${p}px`, h = `${-f}px`) : l === "top" ? (m = s ? u : `${p}px`, h = `${o.floating.height + f}px`) : l === "right" ? (m = `${-f}px`, h = s ? u : `${d}px`) : l === "left" && (m = `${o.floating.width + f}px`, h = s ? u : `${d}px`), { data: { x: m, y: h } };
1636
+ }
1637
+ });
1638
+ function be(t) {
1639
+ const [e, n = "center"] = t.split("-");
1640
+ return [e, n];
1641
+ }
1642
+ var po = he, mo = we, ho = ye, go = ve, to = "Portal", eo = y.forwardRef((t, e) => {
1643
+ var c;
1644
+ const { container: n, ...o } = t, [r, i] = y.useState(!1);
1645
+ At(() => i(!0), []);
1646
+ const s = n || r && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
1647
+ return s ? We.createPortal(/* @__PURE__ */ _.jsx(tt.div, { ...o, ref: e }), s) : null;
1648
+ });
1649
+ eo.displayName = to;
1650
+ export {
1651
+ mo as A,
1652
+ ho as C,
1653
+ je as D,
1654
+ eo as P,
1655
+ po as R,
1656
+ go as a,
1657
+ uo as c
1658
+ };