konsolpro-custom-ui 0.0.327

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 (369) hide show
  1. package/README.md +146 -0
  2. package/dist/chunks/accept-icon-X_bMUe5T.js +17 -0
  3. package/dist/chunks/account-balance-icon-CKxx1j3X.js +17 -0
  4. package/dist/chunks/add-circle-icon-D3XpY2oT.js +17 -0
  5. package/dist/chunks/add-icon-CZXR66VL.js +17 -0
  6. package/dist/chunks/alfa-icon-Cx0WqCux.js +17 -0
  7. package/dist/chunks/android-icon-6SCGu50U.js +17 -0
  8. package/dist/chunks/apple-icon-yya6O1xg.js +17 -0
  9. package/dist/chunks/arrow-back-icon-C_VwBDNK.js +17 -0
  10. package/dist/chunks/arrow-back-ios-icon-CB5K_mmJ.js +17 -0
  11. package/dist/chunks/arrow-down-icon-DFvg75P7.js +17 -0
  12. package/dist/chunks/arrow-forward-icon-BI4dm_L2.js +17 -0
  13. package/dist/chunks/arrow-left-icon-8yWT42A8.js +17 -0
  14. package/dist/chunks/arrow-right-icon-Bnx7GHux.js +17 -0
  15. package/dist/chunks/arrow-up-icon-DU7VVzN8.js +17 -0
  16. package/dist/chunks/attach-file-icon-OrT7tthI.js +17 -0
  17. package/dist/chunks/autorenew-icon-B0bI6Xt-.js +17 -0
  18. package/dist/chunks/baltiyskiy-icon-CXAJY9LH.js +17 -0
  19. package/dist/chunks/bill-error-icon-q8_KROAY.js +17 -0
  20. package/dist/chunks/bill-icon-Cw2GE_VB.js +17 -0
  21. package/dist/chunks/bill-in-progress-icon-BTsO5Mh5.js +17 -0
  22. package/dist/chunks/bill-warning-icon-3Y-dONd_.js +17 -0
  23. package/dist/chunks/bills-error-icon-CcDGUJrx.js +17 -0
  24. package/dist/chunks/bills-icon-BU_adAs0.js +17 -0
  25. package/dist/chunks/bills-in-progress-icon-RVEtPz7l.js +17 -0
  26. package/dist/chunks/bills-warning-icon-CNgWvumi.js +17 -0
  27. package/dist/chunks/block-icon-DGlp9c33.js +17 -0
  28. package/dist/chunks/bolt-fill-icon-DZjyKq8N.js +17 -0
  29. package/dist/chunks/bolt-icon-CJsvLlL-.js +17 -0
  30. package/dist/chunks/book-icon-BdaCKIQB.js +17 -0
  31. package/dist/chunks/business-center-icon-C5X-e-6I.js +17 -0
  32. package/dist/chunks/calendar-icon-B1cogiSd.js +17 -0
  33. package/dist/chunks/call-icon-DslHaQOP.js +17 -0
  34. package/dist/chunks/cancel-fill-DPYenlCk.js +17 -0
  35. package/dist/chunks/check-circle-fill-ne1MhahL.js +17 -0
  36. package/dist/chunks/check-circle-icon-BWhJprgU.js +17 -0
  37. package/dist/chunks/close-icon-CtbXesC0.js +17 -0
  38. package/dist/chunks/clsx-OuTLNxxd.js +16 -0
  39. package/dist/chunks/combobox-primitive-context-B_ldR_VA.js +4030 -0
  40. package/dist/chunks/cookie-DJ-U7h-A.js +17 -0
  41. package/dist/chunks/copy-icon-BWyncDVB.js +17 -0
  42. package/dist/chunks/credit-card-icon-DS1ckDU7.js +17 -0
  43. package/dist/chunks/delete-icon-Bk1ZmhBo.js +17 -0
  44. package/dist/chunks/document-icon-DcmQhRhY.js +17 -0
  45. package/dist/chunks/done-icon-BZEAL7mI.js +17 -0
  46. package/dist/chunks/download-icon-BvWPcT7W.js +17 -0
  47. package/dist/chunks/edit-icon-_3venQRC.js +17 -0
  48. package/dist/chunks/embla-carousel-react.esm-ZaRSnfTq.js +1252 -0
  49. package/dist/chunks/error-fill-icon--8j3Zcfq.js +17 -0
  50. package/dist/chunks/error-icon-BJWk5B-s.js +17 -0
  51. package/dist/chunks/error-icon-CgJ3zr06.js +17 -0
  52. package/dist/chunks/europa-icon-DbElF2Uc.js +17 -0
  53. package/dist/chunks/failed-icon-YP2jq4UN.js +17 -0
  54. package/dist/chunks/file-error-icon-630wBy1K.js +17 -0
  55. package/dist/chunks/file-success-icon-BTk5SYAM.js +17 -0
  56. package/dist/chunks/filter-icon-D_3_SQsN.js +17 -0
  57. package/dist/chunks/flag-icon-DmWEp4ya.js +17 -0
  58. package/dist/chunks/format-DoKcg9cH.js +1223 -0
  59. package/dist/chunks/full-screen-exit-icon-BHwq-9P-.js +17 -0
  60. package/dist/chunks/full-screen-icon-Dpl__xtk.js +17 -0
  61. package/dist/chunks/gazprom-icon-CRfKLTvP.js +17 -0
  62. package/dist/chunks/group-icon-BfSRHuvp.js +17 -0
  63. package/dist/chunks/help-icon-BMdlItds.js +17 -0
  64. package/dist/chunks/home-icon-Dc6LzbVw.js +17 -0
  65. package/dist/chunks/home-icon-Mag5Wxqq.js +17 -0
  66. package/dist/chunks/index-1Er1dKQf.js +13 -0
  67. package/dist/chunks/index-BJD1rYeT.js +57 -0
  68. package/dist/chunks/index-BO6p208a.js +48 -0
  69. package/dist/chunks/index-BZPx6jYI.js +8 -0
  70. package/dist/chunks/index-BxWD79NI.js +517 -0
  71. package/dist/chunks/index-ByaXH_ih.js +10 -0
  72. package/dist/chunks/index-CHDs-SiB.js +27 -0
  73. package/dist/chunks/index-CN5JEZ5H.js +79 -0
  74. package/dist/chunks/index-Ctjv6tIJ.js +1381 -0
  75. package/dist/chunks/index-DLcqcWxM.js +29 -0
  76. package/dist/chunks/index-DLeNytVF.js +9 -0
  77. package/dist/chunks/index-DYfkNB0n.js +54 -0
  78. package/dist/chunks/index-DuekHEmj.js +6 -0
  79. package/dist/chunks/index-DwYXX2sM.js +13 -0
  80. package/dist/chunks/index-E4d_Gd-w.js +91 -0
  81. package/dist/chunks/index-I8P2QgPV.js +258 -0
  82. package/dist/chunks/index-NPrw3_0K.js +14 -0
  83. package/dist/chunks/index-PsqJG3fE.js +75 -0
  84. package/dist/chunks/info-fill-icon-BzE09Xg8.js +17 -0
  85. package/dist/chunks/info-icon-BcUNe5kE.js +17 -0
  86. package/dist/chunks/inventory-icon-CFV8amBs.js +17 -0
  87. package/dist/chunks/link-icon-BUAymb0P.js +17 -0
  88. package/dist/chunks/list-icon-ChePCGxK.js +17 -0
  89. package/dist/chunks/location-icon-Bf9Wbg65.js +17 -0
  90. package/dist/chunks/logout-icon-DN86wp7N.js +17 -0
  91. package/dist/chunks/mail-icon-DCZPsZFE.js +17 -0
  92. package/dist/chunks/manage-accounts-icon-BkyuUTj3.js +17 -0
  93. package/dist/chunks/menu-icon-DWObHD95.js +17 -0
  94. package/dist/chunks/mkb-icon-CEkVt-7P.js +17 -0
  95. package/dist/chunks/more-horiz-icon-CSK7Ackl.js +17 -0
  96. package/dist/chunks/more-vert-icon-NA1tYTse.js +17 -0
  97. package/dist/chunks/mts-icon-Bq4YDYEy.js +17 -0
  98. package/dist/chunks/normal-icon-CYvIFN5j.js +17 -0
  99. package/dist/chunks/north-east-icon-Dh7-1BBW.js +17 -0
  100. package/dist/chunks/open-in-full-icon-DzhRd5Mx.js +17 -0
  101. package/dist/chunks/open-in-new-icon-A7MgnnyP.js +17 -0
  102. package/dist/chunks/otkritie-icon-yGwVocEY.js +17 -0
  103. package/dist/chunks/otp-icon-BQQXMe3b.js +17 -0
  104. package/dist/chunks/outgoing-main-icon-BAH2vddG.js +17 -0
  105. package/dist/chunks/page-info-icon-BiVNFu71.js +17 -0
  106. package/dist/chunks/passport-main-DNL65kJJ.js +17 -0
  107. package/dist/chunks/passport-registration-BGywpRar.js +17 -0
  108. package/dist/chunks/passport-selfie-Dsqd0uOf.js +17 -0
  109. package/dist/chunks/payment-icon-C-B7L4WP.js +17 -0
  110. package/dist/chunks/person-add-C-3pZhgM.js +17 -0
  111. package/dist/chunks/person-icon-Bo5NxPRQ.js +17 -0
  112. package/dist/chunks/person-search-icon-CwVm_XAL.js +17 -0
  113. package/dist/chunks/pincode-icon-BA-e4pBH.js +17 -0
  114. package/dist/chunks/play-icon-Bnj3hsIf.js +17 -0
  115. package/dist/chunks/popover-kFSgc5Lv.js +748 -0
  116. package/dist/chunks/progress-activity-icon-YbJGzvxH.js +17 -0
  117. package/dist/chunks/psb-icon-CxKzLVG5.js +17 -0
  118. package/dist/chunks/qiwi-icon-B795Q_fW.js +17 -0
  119. package/dist/chunks/raiffeisen-icon-CgcBX8eY.js +17 -0
  120. package/dist/chunks/refresh-icon-ac1oOwX8.js +17 -0
  121. package/dist/chunks/remove-icon-CTuoG0Vq.js +17 -0
  122. package/dist/chunks/ru-CUCVR8Pn.js +661 -0
  123. package/dist/chunks/russian-standart-icon-CI8j1Do6.js +17 -0
  124. package/dist/chunks/saint-petersburg-icon-DbffjI2W.js +17 -0
  125. package/dist/chunks/save-icon-DnF5revo.js +17 -0
  126. package/dist/chunks/sber-icon-b7d9_o7J.js +17 -0
  127. package/dist/chunks/sberid-icon-DgQtjRjD.js +17 -0
  128. package/dist/chunks/scenario-icon-BcnFsqUA.js +17 -0
  129. package/dist/chunks/scroll-area-TRRhxrjX.js +629 -0
  130. package/dist/chunks/search-icon-CortrXrC.js +17 -0
  131. package/dist/chunks/segment-icon-Bzm7cziF.js +17 -0
  132. package/dist/chunks/send-icon-BTztERTu.js +17 -0
  133. package/dist/chunks/settings-icon-D_wgjUsM.js +17 -0
  134. package/dist/chunks/shield-icon-BwpxkU5E.js +17 -0
  135. package/dist/chunks/signed-icon-DTQlKmWU.js +17 -0
  136. package/dist/chunks/skb-icon-BgDQolTL.js +17 -0
  137. package/dist/chunks/sms-icon-4p-ON5VX.js +17 -0
  138. package/dist/chunks/support-icon-CBHKGKq8.js +17 -0
  139. package/dist/chunks/tbank-icon-ByKW0pBb.js +17 -0
  140. package/dist/chunks/telegramm-icon-C2ZR2jdg.js +17 -0
  141. package/dist/chunks/thumbs-up-icon-BArjyDfk.js +17 -0
  142. package/dist/chunks/time-icon-DsWMo47L.js +17 -0
  143. package/dist/chunks/tinkoffid-icon-C6lsspZk.js +19 -0
  144. package/dist/chunks/tochka-icon-CoQ_r9Lz.js +17 -0
  145. package/dist/chunks/tooltip-BxRtZLBR.js +836 -0
  146. package/dist/chunks/trending-down-icon-DlHKI37F.js +17 -0
  147. package/dist/chunks/trending-up-icon-IEwGHi9c.js +17 -0
  148. package/dist/chunks/trust-icon-DcfUVGZ_.js +17 -0
  149. package/dist/chunks/tslib.es6-fInlAbov.js +27 -0
  150. package/dist/chunks/unfold-icon-S3J7xXHf.js +17 -0
  151. package/dist/chunks/uni-icon-gK006vr0.js +17 -0
  152. package/dist/chunks/upload-icon-CwzthQEL.js +17 -0
  153. package/dist/chunks/uploader-BN38rjbw.js +28387 -0
  154. package/dist/chunks/uralsib-icon-C-ZbdvlL.js +17 -0
  155. package/dist/chunks/uralskiy-icon-Djqv-ZYN.js +17 -0
  156. package/dist/chunks/utils-TbLXCoKm.js +2752 -0
  157. package/dist/chunks/visibility-off-icon-BA_I97Vw.js +17 -0
  158. package/dist/chunks/visibility-on-icon-C9VmKsvX.js +17 -0
  159. package/dist/chunks/vozrozhdenie-icon-CCMRNn95.js +17 -0
  160. package/dist/chunks/vtb-icon-BtfO1_Gx.js +17 -0
  161. package/dist/chunks/waiting-icon-lpQJA4wB.js +17 -0
  162. package/dist/chunks/wallet-icon-D0r9bDRg.js +17 -0
  163. package/dist/chunks/warning-icon-BmlgMY27.js +17 -0
  164. package/dist/chunks/work-icon-D7I-74Mk.js +17 -0
  165. package/dist/chunks/yandex-icon-CepqpI49.js +17 -0
  166. package/dist/chunks/zoom-in-icon-ZWEJANob.js +17 -0
  167. package/dist/chunks/zoom-out-icon-CeFz3G6V.js +17 -0
  168. package/dist/fonts/CoFoSansMono-Regular.otf +0 -0
  169. package/dist/fonts/Graphik-Bold.otf +0 -0
  170. package/dist/fonts/Graphik-Medium.otf +0 -0
  171. package/dist/fonts/Graphik-Regular.otf +0 -0
  172. package/dist/lib/icon/icon.js +38 -0
  173. package/dist/lib/icon/icons.js +353 -0
  174. package/dist/lib/icon/index.js +4 -0
  175. package/dist/lib/icon-banks/icon-banks.js +21 -0
  176. package/dist/lib/icon-banks/icons-banks.js +106 -0
  177. package/dist/lib/icon-banks/index.js +4 -0
  178. package/dist/lib/icon-documents/icon-document.js +26 -0
  179. package/dist/lib/icon-documents/icons-document.js +57 -0
  180. package/dist/lib/icon-documents/index.js +4 -0
  181. package/dist/lib/index.js +192 -0
  182. package/dist/lib/ui/accordion.js +474 -0
  183. package/dist/lib/ui/alert.js +8 -0
  184. package/dist/lib/ui/autocomplete.js +110 -0
  185. package/dist/lib/ui/avatar.js +333 -0
  186. package/dist/lib/ui/button.js +37 -0
  187. package/dist/lib/ui/calendar.js +121 -0
  188. package/dist/lib/ui/card.js +121 -0
  189. package/dist/lib/ui/carousel.js +55 -0
  190. package/dist/lib/ui/checkbox.js +363 -0
  191. package/dist/lib/ui/combobox-base/combobox-base.js +16 -0
  192. package/dist/lib/ui/combobox-base/index.js +4 -0
  193. package/dist/lib/ui/combobox-primitive/combobox-primitive-context.js +7 -0
  194. package/dist/lib/ui/combobox-primitive/components/Item.js +9 -0
  195. package/dist/lib/ui/combobox-primitive/components/combobox-actions.js +35 -0
  196. package/dist/lib/ui/combobox-primitive/components/combobox-container.js +59 -0
  197. package/dist/lib/ui/combobox-primitive/components/combobox-input.js +52 -0
  198. package/dist/lib/ui/combobox-primitive/components/combobox-item-renderer.js +101 -0
  199. package/dist/lib/ui/combobox-primitive/components/combobox-menu.js +56 -0
  200. package/dist/lib/ui/combobox-primitive/components/index.js +18 -0
  201. package/dist/lib/ui/combobox-primitive/components/item-view.js +53 -0
  202. package/dist/lib/ui/combobox-primitive/components/list.js +9 -0
  203. package/dist/lib/ui/combobox-primitive/constants.js +129 -0
  204. package/dist/lib/ui/combobox-primitive/hooks.js +31 -0
  205. package/dist/lib/ui/combobox-primitive/index.js +21 -0
  206. package/dist/lib/ui/combobox-primitive/types.js +1 -0
  207. package/dist/lib/ui/combobox-primitive/utils.js +60 -0
  208. package/dist/lib/ui/combobox.js +9 -0
  209. package/dist/lib/ui/command.js +1016 -0
  210. package/dist/lib/ui/customizable-carousel.js +431 -0
  211. package/dist/lib/ui/date-picker.js +288 -0
  212. package/dist/lib/ui/date-range-picker/constants.js +25 -0
  213. package/dist/lib/ui/date-range-picker/locales.js +116 -0
  214. package/dist/lib/ui/date-range-picker.js +392 -0
  215. package/dist/lib/ui/dialog/dialog-base/dialog-base.js +9 -0
  216. package/dist/lib/ui/dialog/dialog-base/index.js +6 -0
  217. package/dist/lib/ui/dialog/dialog-base/use-base-dialog.js +57 -0
  218. package/dist/lib/ui/dialog/dialog-primitive/dialog-primitive.js +17 -0
  219. package/dist/lib/ui/dialog/dialog-primitive/index.js +4 -0
  220. package/dist/lib/ui/dialog/index.js +7 -0
  221. package/dist/lib/ui/dialog/utils.js +32 -0
  222. package/dist/lib/ui/divider.js +8 -0
  223. package/dist/lib/ui/dropdown.js +13 -0
  224. package/dist/lib/ui/input-number/index.js +4 -0
  225. package/dist/lib/ui/input-number/input-number.js +6 -0
  226. package/dist/lib/ui/input.js +12 -0
  227. package/dist/lib/ui/link.js +167 -0
  228. package/dist/lib/ui/masked-input.js +6 -0
  229. package/dist/lib/ui/modal.js +41 -0
  230. package/dist/lib/ui/otp-input.js +8 -0
  231. package/dist/lib/ui/phone-input/constants.js +21 -0
  232. package/dist/lib/ui/phone-input/locales/ru.json.js +277 -0
  233. package/dist/lib/ui/phone-input/locales/tg.json.js +263 -0
  234. package/dist/lib/ui/phone-input/locales/uz.json.js +263 -0
  235. package/dist/lib/ui/phone-input/phone-input-utils.js +15 -0
  236. package/dist/lib/ui/phone-input/phone-input.js +20 -0
  237. package/dist/lib/ui/phone-input/phone-mask.js +261 -0
  238. package/dist/lib/ui/popover.js +10 -0
  239. package/dist/lib/ui/progress.js +140 -0
  240. package/dist/lib/ui/radio.js +10 -0
  241. package/dist/lib/ui/schedule-calendar/calendar-day-card.js +37 -0
  242. package/dist/lib/ui/schedule-calendar/constants.js +6 -0
  243. package/dist/lib/ui/schedule-calendar/embla-calendar-card.js +46 -0
  244. package/dist/lib/ui/schedule-calendar/embla-calendar-strip.js +52 -0
  245. package/dist/lib/ui/schedule-calendar/index.js +27 -0
  246. package/dist/lib/ui/schedule-calendar/schedule-calendar-strip.js +163 -0
  247. package/dist/lib/ui/schedule-calendar/schedule-header.js +66 -0
  248. package/dist/lib/ui/schedule-calendar/use-schedule-calendar.js +44 -0
  249. package/dist/lib/ui/schedule-calendar/use-schedule-sync.js +45 -0
  250. package/dist/lib/ui/schedule-calendar/utils.js +49 -0
  251. package/dist/lib/ui/scroll-area.js +7 -0
  252. package/dist/lib/ui/segments.js +376 -0
  253. package/dist/lib/ui/select.js +18 -0
  254. package/dist/lib/ui/spinner.js +57 -0
  255. package/dist/lib/ui/stepper.js +70 -0
  256. package/dist/lib/ui/switch.js +281 -0
  257. package/dist/lib/ui/tabs.js +301 -0
  258. package/dist/lib/ui/tag.js +113 -0
  259. package/dist/lib/ui/textarea.js +8 -0
  260. package/dist/lib/ui/time-picker.js +130 -0
  261. package/dist/lib/ui/time-range-picker.js +198 -0
  262. package/dist/lib/ui/timeline.js +36 -0
  263. package/dist/lib/ui/toaster.js +1002 -0
  264. package/dist/lib/ui/tooltip.js +10 -0
  265. package/dist/lib/ui/typography.js +36 -0
  266. package/dist/lib/ui/uploader.js +10 -0
  267. package/dist/styles/konsolpro-custom-ui.css +1 -0
  268. package/dist/styles/variables.css +279 -0
  269. package/dist/types/components/icon/icon.d.ts +10 -0
  270. package/dist/types/components/icon/icons.d.ts +105 -0
  271. package/dist/types/components/icon/index.d.ts +3 -0
  272. package/dist/types/components/icon-banks/icon-banks.d.ts +7 -0
  273. package/dist/types/components/icon-banks/icons-banks.d.ts +28 -0
  274. package/dist/types/components/icon-banks/index.d.ts +3 -0
  275. package/dist/types/components/icon-documents/icon-document.d.ts +9 -0
  276. package/dist/types/components/icon-documents/icons-document.d.ts +13 -0
  277. package/dist/types/components/icon-documents/index.d.ts +3 -0
  278. package/dist/types/components/index.d.ts +49 -0
  279. package/dist/types/components/ui/accordion.d.ts +13 -0
  280. package/dist/types/components/ui/alert.d.ts +16 -0
  281. package/dist/types/components/ui/autocomplete.d.ts +23 -0
  282. package/dist/types/components/ui/avatar.d.ts +27 -0
  283. package/dist/types/components/ui/button.d.ts +35 -0
  284. package/dist/types/components/ui/calendar.d.ts +4 -0
  285. package/dist/types/components/ui/card.d.ts +38 -0
  286. package/dist/types/components/ui/carousel.d.ts +11 -0
  287. package/dist/types/components/ui/checkbox.d.ts +26 -0
  288. package/dist/types/components/ui/combobox-base/combobox-base.d.ts +10 -0
  289. package/dist/types/components/ui/combobox-base/index.d.ts +1 -0
  290. package/dist/types/components/ui/combobox-primitive/combobox-primitive-context.d.ts +54 -0
  291. package/dist/types/components/ui/combobox-primitive/components/Item.d.ts +3 -0
  292. package/dist/types/components/ui/combobox-primitive/components/combobox-actions.d.ts +5 -0
  293. package/dist/types/components/ui/combobox-primitive/components/combobox-container.d.ts +5 -0
  294. package/dist/types/components/ui/combobox-primitive/components/combobox-input.d.ts +5 -0
  295. package/dist/types/components/ui/combobox-primitive/components/combobox-item-renderer.d.ts +10 -0
  296. package/dist/types/components/ui/combobox-primitive/components/combobox-menu.d.ts +6 -0
  297. package/dist/types/components/ui/combobox-primitive/components/index.d.ts +8 -0
  298. package/dist/types/components/ui/combobox-primitive/components/item-view.d.ts +3 -0
  299. package/dist/types/components/ui/combobox-primitive/components/list.d.ts +3 -0
  300. package/dist/types/components/ui/combobox-primitive/constants.d.ts +47 -0
  301. package/dist/types/components/ui/combobox-primitive/hooks.d.ts +8 -0
  302. package/dist/types/components/ui/combobox-primitive/index.d.ts +3 -0
  303. package/dist/types/components/ui/combobox-primitive/types.d.ts +62 -0
  304. package/dist/types/components/ui/combobox-primitive/utils.d.ts +25 -0
  305. package/dist/types/components/ui/combobox.d.ts +34 -0
  306. package/dist/types/components/ui/command.d.ts +78 -0
  307. package/dist/types/components/ui/customizable-carousel.d.ts +148 -0
  308. package/dist/types/components/ui/date-picker.d.ts +37 -0
  309. package/dist/types/components/ui/date-range-picker/constants.d.ts +22 -0
  310. package/dist/types/components/ui/date-range-picker/locales.d.ts +3 -0
  311. package/dist/types/components/ui/date-range-picker.d.ts +46 -0
  312. package/dist/types/components/ui/dialog/dialog-base/dialog-base.d.ts +41 -0
  313. package/dist/types/components/ui/dialog/dialog-base/index.d.ts +3 -0
  314. package/dist/types/components/ui/dialog/dialog-base/use-base-dialog.d.ts +35 -0
  315. package/dist/types/components/ui/dialog/dialog-primitive/dialog-primitive.d.ts +36 -0
  316. package/dist/types/components/ui/dialog/dialog-primitive/index.d.ts +2 -0
  317. package/dist/types/components/ui/dialog/index.d.ts +2 -0
  318. package/dist/types/components/ui/dialog/utils.d.ts +6 -0
  319. package/dist/types/components/ui/divider.d.ts +6 -0
  320. package/dist/types/components/ui/dropdown.d.ts +53 -0
  321. package/dist/types/components/ui/input-number/index.d.ts +2 -0
  322. package/dist/types/components/ui/input-number/input-number.d.ts +43 -0
  323. package/dist/types/components/ui/input.d.ts +58 -0
  324. package/dist/types/components/ui/link.d.ts +28 -0
  325. package/dist/types/components/ui/masked-input.d.ts +12 -0
  326. package/dist/types/components/ui/modal.d.ts +26 -0
  327. package/dist/types/components/ui/otp-input.d.ts +49 -0
  328. package/dist/types/components/ui/phone-input/constants.d.ts +18 -0
  329. package/dist/types/components/ui/phone-input/locales/ru.json.d.ts +252 -0
  330. package/dist/types/components/ui/phone-input/locales/tg.json.d.ts +261 -0
  331. package/dist/types/components/ui/phone-input/locales/uz.json.d.ts +261 -0
  332. package/dist/types/components/ui/phone-input/phone-input-utils.d.ts +2 -0
  333. package/dist/types/components/ui/phone-input/phone-input.d.ts +24 -0
  334. package/dist/types/components/ui/phone-input/phone-mask.d.ts +233 -0
  335. package/dist/types/components/ui/popover.d.ts +7 -0
  336. package/dist/types/components/ui/progress.d.ts +4 -0
  337. package/dist/types/components/ui/radio.d.ts +37 -0
  338. package/dist/types/components/ui/schedule-calendar/calendar-day-card.d.ts +9 -0
  339. package/dist/types/components/ui/schedule-calendar/constants.d.ts +3 -0
  340. package/dist/types/components/ui/schedule-calendar/embla-calendar-card.d.ts +9 -0
  341. package/dist/types/components/ui/schedule-calendar/embla-calendar-strip.d.ts +14 -0
  342. package/dist/types/components/ui/schedule-calendar/index.d.ts +16 -0
  343. package/dist/types/components/ui/schedule-calendar/schedule-calendar-strip.d.ts +36 -0
  344. package/dist/types/components/ui/schedule-calendar/schedule-header.d.ts +26 -0
  345. package/dist/types/components/ui/schedule-calendar/use-schedule-calendar.d.ts +27 -0
  346. package/dist/types/components/ui/schedule-calendar/use-schedule-sync.d.ts +39 -0
  347. package/dist/types/components/ui/schedule-calendar/utils.d.ts +12 -0
  348. package/dist/types/components/ui/scroll-area.d.ts +9 -0
  349. package/dist/types/components/ui/segments.d.ts +44 -0
  350. package/dist/types/components/ui/select.d.ts +95 -0
  351. package/dist/types/components/ui/spinner.d.ts +12 -0
  352. package/dist/types/components/ui/stepper.d.ts +11 -0
  353. package/dist/types/components/ui/switch.d.ts +24 -0
  354. package/dist/types/components/ui/tabs.d.ts +25 -0
  355. package/dist/types/components/ui/tag.d.ts +28 -0
  356. package/dist/types/components/ui/textarea.d.ts +17 -0
  357. package/dist/types/components/ui/time-picker.d.ts +15 -0
  358. package/dist/types/components/ui/time-range-picker.d.ts +26 -0
  359. package/dist/types/components/ui/timeline.d.ts +17 -0
  360. package/dist/types/components/ui/toaster.d.ts +45 -0
  361. package/dist/types/components/ui/tooltip.d.ts +8 -0
  362. package/dist/types/components/ui/typography.d.ts +25 -0
  363. package/dist/types/components/ui/uploader.d.ts +52 -0
  364. package/dist/types/index.d.ts +1 -0
  365. package/dist/types/lib/utils.d.ts +14 -0
  366. package/dist/types/main.d.ts +0 -0
  367. package/dist/types/utils/use-device-detector.d.ts +1 -0
  368. package/dist/vite.svg +1 -0
  369. package/package.json +171 -0
@@ -0,0 +1,1381 @@
1
+ var ne = Object.defineProperty, oe = Object.defineProperties;
2
+ var ie = Object.getOwnPropertyDescriptors;
3
+ var ft = Object.getOwnPropertySymbols;
4
+ var kt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable;
5
+ var Mt = (t, e, n) => e in t ? ne(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, A = (t, e) => {
6
+ for (var n in e || (e = {}))
7
+ kt.call(e, n) && Mt(t, n, e[n]);
8
+ if (ft)
9
+ for (var n of ft(e))
10
+ Ft.call(e, n) && Mt(t, n, e[n]);
11
+ return t;
12
+ }, O = (t, e) => oe(t, ie(e));
13
+ var tt = (t, e) => {
14
+ var n = {};
15
+ for (var o in t)
16
+ kt.call(t, o) && e.indexOf(o) < 0 && (n[o] = t[o]);
17
+ if (t != null && ft)
18
+ for (var o of ft(t))
19
+ e.indexOf(o) < 0 && Ft.call(t, o) && (n[o] = t[o]);
20
+ return n;
21
+ };
22
+ var _ = (t, e, n) => new Promise((o, i) => {
23
+ var r = (l) => {
24
+ try {
25
+ c(n.next(l));
26
+ } catch (f) {
27
+ i(f);
28
+ }
29
+ }, s = (l) => {
30
+ try {
31
+ c(n.throw(l));
32
+ } catch (f) {
33
+ i(f);
34
+ }
35
+ }, c = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(r, s);
36
+ c((n = n.apply(t, e)).next());
37
+ });
38
+ import * as S from "react";
39
+ import { useLayoutEffect as re } from "react";
40
+ import * as se from "react-dom";
41
+ import ce from "react-dom";
42
+ import { P as jt } from "./index-BJD1rYeT.js";
43
+ import { jsx as bt } from "react/jsx-runtime";
44
+ import { u as le } from "./index-DuekHEmj.js";
45
+ const fe = ["top", "right", "bottom", "left"], Q = Math.min, $ = Math.max, dt = Math.round, at = Math.floor, q = (t) => ({
46
+ x: t,
47
+ y: t
48
+ }), ae = {
49
+ left: "right",
50
+ right: "left",
51
+ bottom: "top",
52
+ top: "bottom"
53
+ }, ue = {
54
+ start: "end",
55
+ end: "start"
56
+ };
57
+ function At(t, e, n) {
58
+ return $(t, Q(e, n));
59
+ }
60
+ function K(t, e) {
61
+ return typeof t == "function" ? t(e) : t;
62
+ }
63
+ function G(t) {
64
+ return t.split("-")[0];
65
+ }
66
+ function it(t) {
67
+ return t.split("-")[1];
68
+ }
69
+ function Ct(t) {
70
+ return t === "x" ? "y" : "x";
71
+ }
72
+ function Pt(t) {
73
+ return t === "y" ? "height" : "width";
74
+ }
75
+ function Y(t) {
76
+ return ["top", "bottom"].includes(G(t)) ? "y" : "x";
77
+ }
78
+ function Et(t) {
79
+ return Ct(Y(t));
80
+ }
81
+ function de(t, e, n) {
82
+ n === void 0 && (n = !1);
83
+ const o = it(t), i = Et(t), r = Pt(i);
84
+ let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
85
+ return e.reference[r] > e.floating[r] && (s = mt(s)), [s, mt(s)];
86
+ }
87
+ function me(t) {
88
+ const e = mt(t);
89
+ return [Rt(t), e, Rt(e)];
90
+ }
91
+ function Rt(t) {
92
+ return t.replace(/start|end/g, (e) => ue[e]);
93
+ }
94
+ function he(t, e, n) {
95
+ const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
96
+ switch (t) {
97
+ case "top":
98
+ case "bottom":
99
+ return n ? e ? i : o : e ? o : i;
100
+ case "left":
101
+ case "right":
102
+ return e ? r : s;
103
+ default:
104
+ return [];
105
+ }
106
+ }
107
+ function ge(t, e, n, o) {
108
+ const i = it(t);
109
+ let r = he(G(t), n === "start", o);
110
+ return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(Rt)))), r;
111
+ }
112
+ function mt(t) {
113
+ return t.replace(/left|right|bottom|top/g, (e) => ae[e]);
114
+ }
115
+ function pe(t) {
116
+ return A({
117
+ top: 0,
118
+ right: 0,
119
+ bottom: 0,
120
+ left: 0
121
+ }, t);
122
+ }
123
+ function It(t) {
124
+ return typeof t != "number" ? pe(t) : {
125
+ top: t,
126
+ right: t,
127
+ bottom: t,
128
+ left: t
129
+ };
130
+ }
131
+ function ht(t) {
132
+ const {
133
+ x: e,
134
+ y: n,
135
+ width: o,
136
+ height: i
137
+ } = t;
138
+ return {
139
+ width: o,
140
+ height: i,
141
+ top: n,
142
+ left: e,
143
+ right: e + o,
144
+ bottom: n + i,
145
+ x: e,
146
+ y: n
147
+ };
148
+ }
149
+ function $t(t, e, n) {
150
+ let {
151
+ reference: o,
152
+ floating: i
153
+ } = t;
154
+ const r = Y(e), s = Et(e), c = Pt(s), l = G(e), f = r === "y", d = o.x + o.width / 2 - i.width / 2, a = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
155
+ let u;
156
+ switch (l) {
157
+ case "top":
158
+ u = {
159
+ x: d,
160
+ y: o.y - i.height
161
+ };
162
+ break;
163
+ case "bottom":
164
+ u = {
165
+ x: d,
166
+ y: o.y + o.height
167
+ };
168
+ break;
169
+ case "right":
170
+ u = {
171
+ x: o.x + o.width,
172
+ y: a
173
+ };
174
+ break;
175
+ case "left":
176
+ u = {
177
+ x: o.x - i.width,
178
+ y: a
179
+ };
180
+ break;
181
+ default:
182
+ u = {
183
+ x: o.x,
184
+ y: o.y
185
+ };
186
+ }
187
+ switch (it(e)) {
188
+ case "start":
189
+ u[s] -= m * (n && f ? -1 : 1);
190
+ break;
191
+ case "end":
192
+ u[s] += m * (n && f ? -1 : 1);
193
+ break;
194
+ }
195
+ return u;
196
+ }
197
+ const we = (t, e, n) => _(null, null, function* () {
198
+ const {
199
+ placement: o = "bottom",
200
+ strategy: i = "absolute",
201
+ middleware: r = [],
202
+ platform: s
203
+ } = n, c = r.filter(Boolean), l = yield s.isRTL == null ? void 0 : s.isRTL(e);
204
+ let f = yield s.getElementRects({
205
+ reference: t,
206
+ floating: e,
207
+ strategy: i
208
+ }), {
209
+ x: d,
210
+ y: a
211
+ } = $t(f, o, l), m = o, u = {}, h = 0;
212
+ for (let g = 0; g < c.length; g++) {
213
+ const {
214
+ name: p,
215
+ fn: x
216
+ } = c[g], {
217
+ x: b,
218
+ y: v,
219
+ data: w,
220
+ reset: y
221
+ } = yield x({
222
+ x: d,
223
+ y: a,
224
+ initialPlacement: o,
225
+ placement: m,
226
+ strategy: i,
227
+ middlewareData: u,
228
+ rects: f,
229
+ platform: s,
230
+ elements: {
231
+ reference: t,
232
+ floating: e
233
+ }
234
+ });
235
+ d = b != null ? b : d, a = v != null ? v : a, u = O(A({}, u), {
236
+ [p]: A(A({}, u[p]), w)
237
+ }), y && h <= 50 && (h++, typeof y == "object" && (y.placement && (m = y.placement), y.rects && (f = y.rects === !0 ? yield s.getElementRects({
238
+ reference: t,
239
+ floating: e,
240
+ strategy: i
241
+ }) : y.rects), {
242
+ x: d,
243
+ y: a
244
+ } = $t(f, m, l)), g = -1);
245
+ }
246
+ return {
247
+ x: d,
248
+ y: a,
249
+ placement: m,
250
+ strategy: i,
251
+ middlewareData: u
252
+ };
253
+ });
254
+ function st(t, e) {
255
+ return _(this, null, function* () {
256
+ var n;
257
+ e === void 0 && (e = {});
258
+ const {
259
+ x: o,
260
+ y: i,
261
+ platform: r,
262
+ rects: s,
263
+ elements: c,
264
+ strategy: l
265
+ } = t, {
266
+ boundary: f = "clippingAncestors",
267
+ rootBoundary: d = "viewport",
268
+ elementContext: a = "floating",
269
+ altBoundary: m = !1,
270
+ padding: u = 0
271
+ } = K(e, t), h = It(u), p = c[m ? a === "floating" ? "reference" : "floating" : a], x = ht(yield r.getClippingRect({
272
+ element: (n = yield r.isElement == null ? void 0 : r.isElement(p)) == null || n ? p : p.contextElement || (yield r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
273
+ boundary: f,
274
+ rootBoundary: d,
275
+ strategy: l
276
+ })), b = a === "floating" ? {
277
+ x: o,
278
+ y: i,
279
+ width: s.floating.width,
280
+ height: s.floating.height
281
+ } : s.reference, v = yield r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating), w = (yield r.isElement == null ? void 0 : r.isElement(v)) ? (yield r.getScale == null ? void 0 : r.getScale(v)) || {
282
+ x: 1,
283
+ y: 1
284
+ } : {
285
+ x: 1,
286
+ y: 1
287
+ }, y = ht(r.convertOffsetParentRelativeRectToViewportRelativeRect ? yield r.convertOffsetParentRelativeRectToViewportRelativeRect({
288
+ elements: c,
289
+ rect: b,
290
+ offsetParent: v,
291
+ strategy: l
292
+ }) : b);
293
+ return {
294
+ top: (x.top - y.top + h.top) / w.y,
295
+ bottom: (y.bottom - x.bottom + h.bottom) / w.y,
296
+ left: (x.left - y.left + h.left) / w.x,
297
+ right: (y.right - x.right + h.right) / w.x
298
+ };
299
+ });
300
+ }
301
+ const xe = (t) => ({
302
+ name: "arrow",
303
+ options: t,
304
+ fn(n) {
305
+ return _(this, null, function* () {
306
+ const {
307
+ x: o,
308
+ y: i,
309
+ placement: r,
310
+ rects: s,
311
+ platform: c,
312
+ elements: l,
313
+ middlewareData: f
314
+ } = n, {
315
+ element: d,
316
+ padding: a = 0
317
+ } = K(t, n) || {};
318
+ if (d == null)
319
+ return {};
320
+ const m = It(a), u = {
321
+ x: o,
322
+ y: i
323
+ }, h = Et(r), g = Pt(h), p = yield c.getDimensions(d), x = h === "y", b = x ? "top" : "left", v = x ? "bottom" : "right", w = x ? "clientHeight" : "clientWidth", y = s.reference[g] + s.reference[h] - u[h] - s.floating[g], P = u[h] - s.reference[h], C = yield c.getOffsetParent == null ? void 0 : c.getOffsetParent(d);
324
+ let T = C ? C[w] : 0;
325
+ (!T || !(yield c.isElement == null ? void 0 : c.isElement(C))) && (T = l.floating[w] || s.floating[g]);
326
+ const H = y / 2 - P / 2, F = T / 2 - p[g] / 2 - 1, D = Q(m[b], F), V = Q(m[v], F), M = D, N = T - p[g] - V, k = T / 2 - p[g] / 2 + H, E = At(M, k, N), I = !f.arrow && it(r) != null && k !== E && s.reference[g] / 2 - (k < M ? D : V) - p[g] / 2 < 0, R = I ? k < M ? k - M : k - N : 0;
327
+ return {
328
+ [h]: u[h] + R,
329
+ data: A({
330
+ [h]: E,
331
+ centerOffset: k - E - R
332
+ }, I && {
333
+ alignmentOffset: R
334
+ }),
335
+ reset: I
336
+ };
337
+ });
338
+ }
339
+ }), ye = function(t) {
340
+ return t === void 0 && (t = {}), {
341
+ name: "flip",
342
+ options: t,
343
+ fn(n) {
344
+ return _(this, null, function* () {
345
+ var o, i;
346
+ const {
347
+ placement: r,
348
+ middlewareData: s,
349
+ rects: c,
350
+ initialPlacement: l,
351
+ platform: f,
352
+ elements: d
353
+ } = n, k = K(t, n), {
354
+ mainAxis: a = !0,
355
+ crossAxis: m = !0,
356
+ fallbackPlacements: u,
357
+ fallbackStrategy: h = "bestFit",
358
+ fallbackAxisSideDirection: g = "none",
359
+ flipAlignment: p = !0
360
+ } = k, x = tt(k, [
361
+ "mainAxis",
362
+ "crossAxis",
363
+ "fallbackPlacements",
364
+ "fallbackStrategy",
365
+ "fallbackAxisSideDirection",
366
+ "flipAlignment"
367
+ ]);
368
+ if ((o = s.arrow) != null && o.alignmentOffset)
369
+ return {};
370
+ const b = G(r), v = Y(l), w = G(l) === l, y = yield f.isRTL == null ? void 0 : f.isRTL(d.floating), P = u || (w || !p ? [mt(l)] : me(l)), C = g !== "none";
371
+ !u && C && P.push(...ge(l, p, g, y));
372
+ const T = [l, ...P], H = yield st(n, x), F = [];
373
+ let D = ((i = s.flip) == null ? void 0 : i.overflows) || [];
374
+ if (a && F.push(H[b]), m) {
375
+ const E = de(r, c, y);
376
+ F.push(H[E[0]], H[E[1]]);
377
+ }
378
+ if (D = [...D, {
379
+ placement: r,
380
+ overflows: F
381
+ }], !F.every((E) => E <= 0)) {
382
+ var V, M;
383
+ const E = (((V = s.flip) == null ? void 0 : V.index) || 0) + 1, I = T[E];
384
+ if (I && (!(m === "alignment" ? v !== Y(I) : !1) || // We leave the current main axis only if every placement on that axis
385
+ // overflows the main axis.
386
+ D.every((L) => L.overflows[0] > 0 && Y(L.placement) === v)))
387
+ return {
388
+ data: {
389
+ index: E,
390
+ overflows: D
391
+ },
392
+ reset: {
393
+ placement: I
394
+ }
395
+ };
396
+ let R = (M = D.filter((W) => W.overflows[0] <= 0).sort((W, L) => W.overflows[1] - L.overflows[1])[0]) == null ? void 0 : M.placement;
397
+ if (!R)
398
+ switch (h) {
399
+ case "bestFit": {
400
+ var N;
401
+ const W = (N = D.filter((L) => {
402
+ if (C) {
403
+ const J = Y(L.placement);
404
+ return J === v || // Create a bias to the `y` side axis due to horizontal
405
+ // reading directions favoring greater width.
406
+ J === "y";
407
+ }
408
+ return !0;
409
+ }).map((L) => [L.placement, L.overflows.filter((J) => J > 0).reduce((J, ee) => J + ee, 0)]).sort((L, J) => L[1] - J[1])[0]) == null ? void 0 : N[0];
410
+ W && (R = W);
411
+ break;
412
+ }
413
+ case "initialPlacement":
414
+ R = l;
415
+ break;
416
+ }
417
+ if (r !== R)
418
+ return {
419
+ reset: {
420
+ placement: R
421
+ }
422
+ };
423
+ }
424
+ return {};
425
+ });
426
+ }
427
+ };
428
+ };
429
+ function Bt(t, e) {
430
+ return {
431
+ top: t.top - e.height,
432
+ right: t.right - e.width,
433
+ bottom: t.bottom - e.height,
434
+ left: t.left - e.width
435
+ };
436
+ }
437
+ function Nt(t) {
438
+ return fe.some((e) => t[e] >= 0);
439
+ }
440
+ const ve = function(t) {
441
+ return t === void 0 && (t = {}), {
442
+ name: "hide",
443
+ options: t,
444
+ fn(n) {
445
+ return _(this, null, function* () {
446
+ const {
447
+ rects: o
448
+ } = n, s = K(t, n), {
449
+ strategy: i = "referenceHidden"
450
+ } = s, r = tt(s, [
451
+ "strategy"
452
+ ]);
453
+ switch (i) {
454
+ case "referenceHidden": {
455
+ const c = yield st(n, O(A({}, r), {
456
+ elementContext: "reference"
457
+ })), l = Bt(c, o.reference);
458
+ return {
459
+ data: {
460
+ referenceHiddenOffsets: l,
461
+ referenceHidden: Nt(l)
462
+ }
463
+ };
464
+ }
465
+ case "escaped": {
466
+ const c = yield st(n, O(A({}, r), {
467
+ altBoundary: !0
468
+ })), l = Bt(c, o.floating);
469
+ return {
470
+ data: {
471
+ escapedOffsets: l,
472
+ escaped: Nt(l)
473
+ }
474
+ };
475
+ }
476
+ default:
477
+ return {};
478
+ }
479
+ });
480
+ }
481
+ };
482
+ };
483
+ function be(t, e) {
484
+ return _(this, null, function* () {
485
+ const {
486
+ placement: n,
487
+ platform: o,
488
+ elements: i
489
+ } = t, r = yield o.isRTL == null ? void 0 : o.isRTL(i.floating), s = G(n), c = it(n), l = Y(n) === "y", f = ["left", "top"].includes(s) ? -1 : 1, d = r && l ? -1 : 1, a = K(e, t);
490
+ let {
491
+ mainAxis: m,
492
+ crossAxis: u,
493
+ alignmentAxis: h
494
+ } = typeof a == "number" ? {
495
+ mainAxis: a,
496
+ crossAxis: 0,
497
+ alignmentAxis: null
498
+ } : {
499
+ mainAxis: a.mainAxis || 0,
500
+ crossAxis: a.crossAxis || 0,
501
+ alignmentAxis: a.alignmentAxis
502
+ };
503
+ return c && typeof h == "number" && (u = c === "end" ? h * -1 : h), l ? {
504
+ x: u * d,
505
+ y: m * f
506
+ } : {
507
+ x: m * f,
508
+ y: u * d
509
+ };
510
+ });
511
+ }
512
+ const Ae = function(t) {
513
+ return t === void 0 && (t = 0), {
514
+ name: "offset",
515
+ options: t,
516
+ fn(n) {
517
+ return _(this, null, function* () {
518
+ var o, i;
519
+ const {
520
+ x: r,
521
+ y: s,
522
+ placement: c,
523
+ middlewareData: l
524
+ } = n, f = yield be(n, t);
525
+ return c === ((o = l.offset) == null ? void 0 : o.placement) && (i = l.arrow) != null && i.alignmentOffset ? {} : {
526
+ x: r + f.x,
527
+ y: s + f.y,
528
+ data: O(A({}, f), {
529
+ placement: c
530
+ })
531
+ };
532
+ });
533
+ }
534
+ };
535
+ }, Re = function(t) {
536
+ return t === void 0 && (t = {}), {
537
+ name: "shift",
538
+ options: t,
539
+ fn(n) {
540
+ return _(this, null, function* () {
541
+ const {
542
+ x: o,
543
+ y: i,
544
+ placement: r
545
+ } = n, x = K(t, n), {
546
+ mainAxis: s = !0,
547
+ crossAxis: c = !1,
548
+ limiter: l = {
549
+ fn: (b) => {
550
+ let {
551
+ x: v,
552
+ y: w
553
+ } = b;
554
+ return {
555
+ x: v,
556
+ y: w
557
+ };
558
+ }
559
+ }
560
+ } = x, f = tt(x, [
561
+ "mainAxis",
562
+ "crossAxis",
563
+ "limiter"
564
+ ]), d = {
565
+ x: o,
566
+ y: i
567
+ }, a = yield st(n, f), m = Y(G(r)), u = Ct(m);
568
+ let h = d[u], g = d[m];
569
+ if (s) {
570
+ const b = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", w = h + a[b], y = h - a[v];
571
+ h = At(w, h, y);
572
+ }
573
+ if (c) {
574
+ const b = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", w = g + a[b], y = g - a[v];
575
+ g = At(w, g, y);
576
+ }
577
+ const p = l.fn(O(A({}, n), {
578
+ [u]: h,
579
+ [m]: g
580
+ }));
581
+ return O(A({}, p), {
582
+ data: {
583
+ x: p.x - o,
584
+ y: p.y - i,
585
+ enabled: {
586
+ [u]: s,
587
+ [m]: c
588
+ }
589
+ }
590
+ });
591
+ });
592
+ }
593
+ };
594
+ }, Oe = function(t) {
595
+ return t === void 0 && (t = {}), {
596
+ options: t,
597
+ fn(e) {
598
+ const {
599
+ x: n,
600
+ y: o,
601
+ placement: i,
602
+ rects: r,
603
+ middlewareData: s
604
+ } = e, {
605
+ offset: c = 0,
606
+ mainAxis: l = !0,
607
+ crossAxis: f = !0
608
+ } = K(t, e), d = {
609
+ x: n,
610
+ y: o
611
+ }, a = Y(i), m = Ct(a);
612
+ let u = d[m], h = d[a];
613
+ const g = K(c, e), p = typeof g == "number" ? {
614
+ mainAxis: g,
615
+ crossAxis: 0
616
+ } : A({
617
+ mainAxis: 0,
618
+ crossAxis: 0
619
+ }, g);
620
+ if (l) {
621
+ const v = m === "y" ? "height" : "width", w = r.reference[m] - r.floating[v] + p.mainAxis, y = r.reference[m] + r.reference[v] - p.mainAxis;
622
+ u < w ? u = w : u > y && (u = y);
623
+ }
624
+ if (f) {
625
+ var x, b;
626
+ const v = m === "y" ? "width" : "height", w = ["top", "left"].includes(G(i)), y = r.reference[a] - r.floating[v] + (w && ((x = s.offset) == null ? void 0 : x[a]) || 0) + (w ? 0 : p.crossAxis), P = r.reference[a] + r.reference[v] + (w ? 0 : ((b = s.offset) == null ? void 0 : b[a]) || 0) - (w ? p.crossAxis : 0);
627
+ h < y ? h = y : h > P && (h = P);
628
+ }
629
+ return {
630
+ [m]: u,
631
+ [a]: h
632
+ };
633
+ }
634
+ };
635
+ }, Ce = function(t) {
636
+ return t === void 0 && (t = {}), {
637
+ name: "size",
638
+ options: t,
639
+ fn(n) {
640
+ return _(this, null, function* () {
641
+ var o, i;
642
+ const {
643
+ placement: r,
644
+ rects: s,
645
+ platform: c,
646
+ elements: l
647
+ } = n, D = K(t, n), {
648
+ apply: f = () => {
649
+ }
650
+ } = D, d = tt(D, [
651
+ "apply"
652
+ ]), a = yield st(n, d), m = G(r), u = it(r), h = Y(r) === "y", {
653
+ width: g,
654
+ height: p
655
+ } = s.floating;
656
+ let x, b;
657
+ m === "top" || m === "bottom" ? (x = m, b = u === ((yield c.isRTL == null ? void 0 : c.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (b = m, x = u === "end" ? "top" : "bottom");
658
+ const v = p - a.top - a.bottom, w = g - a.left - a.right, y = Q(p - a[x], v), P = Q(g - a[b], w), C = !n.middlewareData.shift;
659
+ let T = y, H = P;
660
+ if ((o = n.middlewareData.shift) != null && o.enabled.x && (H = w), (i = n.middlewareData.shift) != null && i.enabled.y && (T = v), C && !u) {
661
+ const V = $(a.left, 0), M = $(a.right, 0), N = $(a.top, 0), k = $(a.bottom, 0);
662
+ h ? H = g - 2 * (V !== 0 || M !== 0 ? V + M : $(a.left, a.right)) : T = p - 2 * (N !== 0 || k !== 0 ? N + k : $(a.top, a.bottom));
663
+ }
664
+ yield f(O(A({}, n), {
665
+ availableWidth: H,
666
+ availableHeight: T
667
+ }));
668
+ const F = yield c.getDimensions(l.floating);
669
+ return g !== F.width || p !== F.height ? {
670
+ reset: {
671
+ rects: !0
672
+ }
673
+ } : {};
674
+ });
675
+ }
676
+ };
677
+ };
678
+ function pt() {
679
+ return typeof window != "undefined";
680
+ }
681
+ function rt(t) {
682
+ return Yt(t) ? (t.nodeName || "").toLowerCase() : "#document";
683
+ }
684
+ function B(t) {
685
+ var e;
686
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
687
+ }
688
+ function U(t) {
689
+ var e;
690
+ return (e = (Yt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
691
+ }
692
+ function Yt(t) {
693
+ return pt() ? t instanceof Node || t instanceof B(t).Node : !1;
694
+ }
695
+ function z(t) {
696
+ return pt() ? t instanceof Element || t instanceof B(t).Element : !1;
697
+ }
698
+ function X(t) {
699
+ return pt() ? t instanceof HTMLElement || t instanceof B(t).HTMLElement : !1;
700
+ }
701
+ function Wt(t) {
702
+ return !pt() || typeof ShadowRoot == "undefined" ? !1 : t instanceof ShadowRoot || t instanceof B(t).ShadowRoot;
703
+ }
704
+ function lt(t) {
705
+ const {
706
+ overflow: e,
707
+ overflowX: n,
708
+ overflowY: o,
709
+ display: i
710
+ } = j(t);
711
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
712
+ }
713
+ function Pe(t) {
714
+ return ["table", "td", "th"].includes(rt(t));
715
+ }
716
+ function wt(t) {
717
+ return [":popover-open", ":modal"].some((e) => {
718
+ try {
719
+ return t.matches(e);
720
+ } catch (n) {
721
+ return !1;
722
+ }
723
+ });
724
+ }
725
+ function St(t) {
726
+ const e = Lt(), n = z(t) ? j(t) : t;
727
+ 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));
728
+ }
729
+ function Ee(t) {
730
+ let e = Z(t);
731
+ for (; X(e) && !ot(e); ) {
732
+ if (St(e))
733
+ return e;
734
+ if (wt(e))
735
+ return null;
736
+ e = Z(e);
737
+ }
738
+ return null;
739
+ }
740
+ function Lt() {
741
+ return typeof CSS == "undefined" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
742
+ }
743
+ function ot(t) {
744
+ return ["html", "body", "#document"].includes(rt(t));
745
+ }
746
+ function j(t) {
747
+ return B(t).getComputedStyle(t);
748
+ }
749
+ function xt(t) {
750
+ return z(t) ? {
751
+ scrollLeft: t.scrollLeft,
752
+ scrollTop: t.scrollTop
753
+ } : {
754
+ scrollLeft: t.scrollX,
755
+ scrollTop: t.scrollY
756
+ };
757
+ }
758
+ function Z(t) {
759
+ if (rt(t) === "html")
760
+ return t;
761
+ const e = (
762
+ // Step into the shadow DOM of the parent of a slotted node.
763
+ t.assignedSlot || // DOM Element detected.
764
+ t.parentNode || // ShadowRoot detected.
765
+ Wt(t) && t.host || // Fallback.
766
+ U(t)
767
+ );
768
+ return Wt(e) ? e.host : e;
769
+ }
770
+ function qt(t) {
771
+ const e = Z(t);
772
+ return ot(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : X(e) && lt(e) ? e : qt(e);
773
+ }
774
+ function ct(t, e, n) {
775
+ var o;
776
+ e === void 0 && (e = []), n === void 0 && (n = !0);
777
+ const i = qt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = B(i);
778
+ if (r) {
779
+ const c = Ot(s);
780
+ return e.concat(s, s.visualViewport || [], lt(i) ? i : [], c && n ? ct(c) : []);
781
+ }
782
+ return e.concat(i, ct(i, [], n));
783
+ }
784
+ function Ot(t) {
785
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
786
+ }
787
+ function Xt(t) {
788
+ const e = j(t);
789
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
790
+ const i = X(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = dt(n) !== r || dt(o) !== s;
791
+ return c && (n = r, o = s), {
792
+ width: n,
793
+ height: o,
794
+ $: c
795
+ };
796
+ }
797
+ function Tt(t) {
798
+ return z(t) ? t : t.contextElement;
799
+ }
800
+ function nt(t) {
801
+ const e = Tt(t);
802
+ if (!X(e))
803
+ return q(1);
804
+ const n = e.getBoundingClientRect(), {
805
+ width: o,
806
+ height: i,
807
+ $: r
808
+ } = Xt(e);
809
+ let s = (r ? dt(n.width) : n.width) / o, c = (r ? dt(n.height) : n.height) / i;
810
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
811
+ x: s,
812
+ y: c
813
+ };
814
+ }
815
+ const Se = /* @__PURE__ */ q(0);
816
+ function Ut(t) {
817
+ const e = B(t);
818
+ return !Lt() || !e.visualViewport ? Se : {
819
+ x: e.visualViewport.offsetLeft,
820
+ y: e.visualViewport.offsetTop
821
+ };
822
+ }
823
+ function Le(t, e, n) {
824
+ return e === void 0 && (e = !1), !n || e && n !== B(t) ? !1 : e;
825
+ }
826
+ function et(t, e, n, o) {
827
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
828
+ const i = t.getBoundingClientRect(), r = Tt(t);
829
+ let s = q(1);
830
+ e && (o ? z(o) && (s = nt(o)) : s = nt(t));
831
+ const c = Le(r, n, o) ? Ut(r) : q(0);
832
+ let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, d = i.width / s.x, a = i.height / s.y;
833
+ if (r) {
834
+ const m = B(r), u = o && z(o) ? B(o) : o;
835
+ let h = m, g = Ot(h);
836
+ for (; g && o && u !== h; ) {
837
+ const p = nt(g), x = g.getBoundingClientRect(), b = j(g), v = x.left + (g.clientLeft + parseFloat(b.paddingLeft)) * p.x, w = x.top + (g.clientTop + parseFloat(b.paddingTop)) * p.y;
838
+ l *= p.x, f *= p.y, d *= p.x, a *= p.y, l += v, f += w, h = B(g), g = Ot(h);
839
+ }
840
+ }
841
+ return ht({
842
+ width: d,
843
+ height: a,
844
+ x: l,
845
+ y: f
846
+ });
847
+ }
848
+ function Dt(t, e) {
849
+ const n = xt(t).scrollLeft;
850
+ return e ? e.left + n : et(U(t)).left + n;
851
+ }
852
+ function Kt(t, e, n) {
853
+ n === void 0 && (n = !1);
854
+ const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
855
+ // RTL <body> scrollbar.
856
+ Dt(t, o)
857
+ )), r = o.top + e.scrollTop;
858
+ return {
859
+ x: i,
860
+ y: r
861
+ };
862
+ }
863
+ function Te(t) {
864
+ let {
865
+ elements: e,
866
+ rect: n,
867
+ offsetParent: o,
868
+ strategy: i
869
+ } = t;
870
+ const r = i === "fixed", s = U(o), c = e ? wt(e.floating) : !1;
871
+ if (o === s || c && r)
872
+ return n;
873
+ let l = {
874
+ scrollLeft: 0,
875
+ scrollTop: 0
876
+ }, f = q(1);
877
+ const d = q(0), a = X(o);
878
+ if ((a || !a && !r) && ((rt(o) !== "body" || lt(s)) && (l = xt(o)), X(o))) {
879
+ const u = et(o);
880
+ f = nt(o), d.x = u.x + o.clientLeft, d.y = u.y + o.clientTop;
881
+ }
882
+ const m = s && !a && !r ? Kt(s, l, !0) : q(0);
883
+ return {
884
+ width: n.width * f.x,
885
+ height: n.height * f.y,
886
+ x: n.x * f.x - l.scrollLeft * f.x + d.x + m.x,
887
+ y: n.y * f.y - l.scrollTop * f.y + d.y + m.y
888
+ };
889
+ }
890
+ function De(t) {
891
+ return Array.from(t.getClientRects());
892
+ }
893
+ function Me(t) {
894
+ const e = U(t), n = xt(t), o = t.ownerDocument.body, i = $(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = $(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
895
+ let s = -n.scrollLeft + Dt(t);
896
+ const c = -n.scrollTop;
897
+ return j(o).direction === "rtl" && (s += $(e.clientWidth, o.clientWidth) - i), {
898
+ width: i,
899
+ height: r,
900
+ x: s,
901
+ y: c
902
+ };
903
+ }
904
+ function ke(t, e) {
905
+ const n = B(t), o = U(t), i = n.visualViewport;
906
+ let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
907
+ if (i) {
908
+ r = i.width, s = i.height;
909
+ const f = Lt();
910
+ (!f || f && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
911
+ }
912
+ return {
913
+ width: r,
914
+ height: s,
915
+ x: c,
916
+ y: l
917
+ };
918
+ }
919
+ function Fe(t, e) {
920
+ const n = et(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = X(t) ? nt(t) : q(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, f = o * r.y;
921
+ return {
922
+ width: s,
923
+ height: c,
924
+ x: l,
925
+ y: f
926
+ };
927
+ }
928
+ function Ht(t, e, n) {
929
+ let o;
930
+ if (e === "viewport")
931
+ o = ke(t, n);
932
+ else if (e === "document")
933
+ o = Me(U(t));
934
+ else if (z(e))
935
+ o = Fe(e, n);
936
+ else {
937
+ const i = Ut(t);
938
+ o = {
939
+ x: e.x - i.x,
940
+ y: e.y - i.y,
941
+ width: e.width,
942
+ height: e.height
943
+ };
944
+ }
945
+ return ht(o);
946
+ }
947
+ function Gt(t, e) {
948
+ const n = Z(t);
949
+ return n === e || !z(n) || ot(n) ? !1 : j(n).position === "fixed" || Gt(n, e);
950
+ }
951
+ function $e(t, e) {
952
+ const n = e.get(t);
953
+ if (n)
954
+ return n;
955
+ let o = ct(t, [], !1).filter((c) => z(c) && rt(c) !== "body"), i = null;
956
+ const r = j(t).position === "fixed";
957
+ let s = r ? Z(t) : t;
958
+ for (; z(s) && !ot(s); ) {
959
+ const c = j(s), l = St(s);
960
+ !l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || lt(s) && !l && Gt(t, s)) ? o = o.filter((d) => d !== s) : i = c, s = Z(s);
961
+ }
962
+ return e.set(t, o), o;
963
+ }
964
+ function Be(t) {
965
+ let {
966
+ element: e,
967
+ boundary: n,
968
+ rootBoundary: o,
969
+ strategy: i
970
+ } = t;
971
+ const s = [...n === "clippingAncestors" ? wt(e) ? [] : $e(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((f, d) => {
972
+ const a = Ht(e, d, i);
973
+ return f.top = $(a.top, f.top), f.right = Q(a.right, f.right), f.bottom = Q(a.bottom, f.bottom), f.left = $(a.left, f.left), f;
974
+ }, Ht(e, c, i));
975
+ return {
976
+ width: l.right - l.left,
977
+ height: l.bottom - l.top,
978
+ x: l.left,
979
+ y: l.top
980
+ };
981
+ }
982
+ function Ne(t) {
983
+ const {
984
+ width: e,
985
+ height: n
986
+ } = Xt(t);
987
+ return {
988
+ width: e,
989
+ height: n
990
+ };
991
+ }
992
+ function We(t, e, n) {
993
+ const o = X(e), i = U(e), r = n === "fixed", s = et(t, !0, r, e);
994
+ let c = {
995
+ scrollLeft: 0,
996
+ scrollTop: 0
997
+ };
998
+ const l = q(0);
999
+ function f() {
1000
+ l.x = Dt(i);
1001
+ }
1002
+ if (o || !o && !r)
1003
+ if ((rt(e) !== "body" || lt(i)) && (c = xt(e)), o) {
1004
+ const u = et(e, !0, r, e);
1005
+ l.x = u.x + e.clientLeft, l.y = u.y + e.clientTop;
1006
+ } else i && f();
1007
+ r && !o && i && f();
1008
+ const d = i && !o && !r ? Kt(i, c) : q(0), a = s.left + c.scrollLeft - l.x - d.x, m = s.top + c.scrollTop - l.y - d.y;
1009
+ return {
1010
+ x: a,
1011
+ y: m,
1012
+ width: s.width,
1013
+ height: s.height
1014
+ };
1015
+ }
1016
+ function yt(t) {
1017
+ return j(t).position === "static";
1018
+ }
1019
+ function Vt(t, e) {
1020
+ if (!X(t) || j(t).position === "fixed")
1021
+ return null;
1022
+ if (e)
1023
+ return e(t);
1024
+ let n = t.offsetParent;
1025
+ return U(t) === n && (n = n.ownerDocument.body), n;
1026
+ }
1027
+ function Jt(t, e) {
1028
+ const n = B(t);
1029
+ if (wt(t))
1030
+ return n;
1031
+ if (!X(t)) {
1032
+ let i = Z(t);
1033
+ for (; i && !ot(i); ) {
1034
+ if (z(i) && !yt(i))
1035
+ return i;
1036
+ i = Z(i);
1037
+ }
1038
+ return n;
1039
+ }
1040
+ let o = Vt(t, e);
1041
+ for (; o && Pe(o) && yt(o); )
1042
+ o = Vt(o, e);
1043
+ return o && ot(o) && yt(o) && !St(o) ? n : o || Ee(t) || n;
1044
+ }
1045
+ const He = function(t) {
1046
+ return _(this, null, function* () {
1047
+ const e = this.getOffsetParent || Jt, n = this.getDimensions, o = yield n(t.floating);
1048
+ return {
1049
+ reference: We(t.reference, yield e(t.floating), t.strategy),
1050
+ floating: {
1051
+ x: 0,
1052
+ y: 0,
1053
+ width: o.width,
1054
+ height: o.height
1055
+ }
1056
+ };
1057
+ });
1058
+ };
1059
+ function Ve(t) {
1060
+ return j(t).direction === "rtl";
1061
+ }
1062
+ const _e = {
1063
+ convertOffsetParentRelativeRectToViewportRelativeRect: Te,
1064
+ getDocumentElement: U,
1065
+ getClippingRect: Be,
1066
+ getOffsetParent: Jt,
1067
+ getElementRects: He,
1068
+ getClientRects: De,
1069
+ getDimensions: Ne,
1070
+ getScale: nt,
1071
+ isElement: z,
1072
+ isRTL: Ve
1073
+ };
1074
+ function Qt(t, e) {
1075
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1076
+ }
1077
+ function ze(t, e) {
1078
+ let n = null, o;
1079
+ const i = U(t);
1080
+ function r() {
1081
+ var c;
1082
+ clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
1083
+ }
1084
+ function s(c, l) {
1085
+ c === void 0 && (c = !1), l === void 0 && (l = 1), r();
1086
+ const f = t.getBoundingClientRect(), {
1087
+ left: d,
1088
+ top: a,
1089
+ width: m,
1090
+ height: u
1091
+ } = f;
1092
+ if (c || e(), !m || !u)
1093
+ return;
1094
+ const h = at(a), g = at(i.clientWidth - (d + m)), p = at(i.clientHeight - (a + u)), x = at(d), v = {
1095
+ rootMargin: -h + "px " + -g + "px " + -p + "px " + -x + "px",
1096
+ threshold: $(0, Q(1, l)) || 1
1097
+ };
1098
+ let w = !0;
1099
+ function y(P) {
1100
+ const C = P[0].intersectionRatio;
1101
+ if (C !== l) {
1102
+ if (!w)
1103
+ return s();
1104
+ C ? s(!1, C) : o = setTimeout(() => {
1105
+ s(!1, 1e-7);
1106
+ }, 1e3);
1107
+ }
1108
+ C === 1 && !Qt(f, t.getBoundingClientRect()) && s(), w = !1;
1109
+ }
1110
+ try {
1111
+ n = new IntersectionObserver(y, O(A({}, v), {
1112
+ // Handle <iframe>s
1113
+ root: i.ownerDocument
1114
+ }));
1115
+ } catch (P) {
1116
+ n = new IntersectionObserver(y, v);
1117
+ }
1118
+ n.observe(t);
1119
+ }
1120
+ return s(!0), r;
1121
+ }
1122
+ function fn(t, e, n, o) {
1123
+ o === void 0 && (o = {});
1124
+ const {
1125
+ ancestorScroll: i = !0,
1126
+ ancestorResize: r = !0,
1127
+ elementResize: s = typeof ResizeObserver == "function",
1128
+ layoutShift: c = typeof IntersectionObserver == "function",
1129
+ animationFrame: l = !1
1130
+ } = o, f = Tt(t), d = i || r ? [...f ? ct(f) : [], ...ct(e)] : [];
1131
+ d.forEach((x) => {
1132
+ i && x.addEventListener("scroll", n, {
1133
+ passive: !0
1134
+ }), r && x.addEventListener("resize", n);
1135
+ });
1136
+ const a = f && c ? ze(f, n) : null;
1137
+ let m = -1, u = null;
1138
+ s && (u = new ResizeObserver((x) => {
1139
+ let [b] = x;
1140
+ b && b.target === f && u && (u.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1141
+ var v;
1142
+ (v = u) == null || v.observe(e);
1143
+ })), n();
1144
+ }), f && !l && u.observe(f), u.observe(e));
1145
+ let h, g = l ? et(t) : null;
1146
+ l && p();
1147
+ function p() {
1148
+ const x = et(t);
1149
+ g && !Qt(g, x) && n(), g = x, h = requestAnimationFrame(p);
1150
+ }
1151
+ return n(), () => {
1152
+ var x;
1153
+ d.forEach((b) => {
1154
+ i && b.removeEventListener("scroll", n), r && b.removeEventListener("resize", n);
1155
+ }), a == null || a(), (x = u) == null || x.disconnect(), u = null, l && cancelAnimationFrame(h);
1156
+ };
1157
+ }
1158
+ const je = Ae, Ie = Re, Ye = ye, qe = Ce, Xe = ve, _t = xe, Ue = Oe, Ke = (t, e, n) => {
1159
+ const o = /* @__PURE__ */ new Map(), i = A({
1160
+ platform: _e
1161
+ }, n), r = O(A({}, i.platform), {
1162
+ _c: o
1163
+ });
1164
+ return we(t, e, O(A({}, i), {
1165
+ platform: r
1166
+ }));
1167
+ };
1168
+ var Ge = typeof document != "undefined", Je = function() {
1169
+ }, ut = Ge ? re : Je;
1170
+ function gt(t, e) {
1171
+ if (t === e)
1172
+ return !0;
1173
+ if (typeof t != typeof e)
1174
+ return !1;
1175
+ if (typeof t == "function" && t.toString() === e.toString())
1176
+ return !0;
1177
+ let n, o, i;
1178
+ if (t && e && typeof t == "object") {
1179
+ if (Array.isArray(t)) {
1180
+ if (n = t.length, n !== e.length) return !1;
1181
+ for (o = n; o-- !== 0; )
1182
+ if (!gt(t[o], e[o]))
1183
+ return !1;
1184
+ return !0;
1185
+ }
1186
+ if (i = Object.keys(t), n = i.length, n !== Object.keys(e).length)
1187
+ return !1;
1188
+ for (o = n; o-- !== 0; )
1189
+ if (!{}.hasOwnProperty.call(e, i[o]))
1190
+ return !1;
1191
+ for (o = n; o-- !== 0; ) {
1192
+ const r = i[o];
1193
+ if (!(r === "_owner" && t.$$typeof) && !gt(t[r], e[r]))
1194
+ return !1;
1195
+ }
1196
+ return !0;
1197
+ }
1198
+ return t !== t && e !== e;
1199
+ }
1200
+ function Zt(t) {
1201
+ return typeof window == "undefined" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1202
+ }
1203
+ function zt(t, e) {
1204
+ const n = Zt(t);
1205
+ return Math.round(e * n) / n;
1206
+ }
1207
+ function vt(t) {
1208
+ const e = S.useRef(t);
1209
+ return ut(() => {
1210
+ e.current = t;
1211
+ }), e;
1212
+ }
1213
+ function an(t) {
1214
+ t === void 0 && (t = {});
1215
+ const {
1216
+ placement: e = "bottom",
1217
+ strategy: n = "absolute",
1218
+ middleware: o = [],
1219
+ platform: i,
1220
+ elements: {
1221
+ reference: r,
1222
+ floating: s
1223
+ } = {},
1224
+ transform: c = !0,
1225
+ whileElementsMounted: l,
1226
+ open: f
1227
+ } = t, [d, a] = S.useState({
1228
+ x: 0,
1229
+ y: 0,
1230
+ strategy: n,
1231
+ placement: e,
1232
+ middlewareData: {},
1233
+ isPositioned: !1
1234
+ }), [m, u] = S.useState(o);
1235
+ gt(m, o) || u(o);
1236
+ const [h, g] = S.useState(null), [p, x] = S.useState(null), b = S.useCallback((R) => {
1237
+ R !== P.current && (P.current = R, g(R));
1238
+ }, []), v = S.useCallback((R) => {
1239
+ R !== C.current && (C.current = R, x(R));
1240
+ }, []), w = r || h, y = s || p, P = S.useRef(null), C = S.useRef(null), T = S.useRef(d), H = l != null, F = vt(l), D = vt(i), V = vt(f), M = S.useCallback(() => {
1241
+ if (!P.current || !C.current)
1242
+ return;
1243
+ const R = {
1244
+ placement: e,
1245
+ strategy: n,
1246
+ middleware: m
1247
+ };
1248
+ D.current && (R.platform = D.current), Ke(P.current, C.current, R).then((W) => {
1249
+ const L = O(A({}, W), {
1250
+ // The floating element's position may be recomputed while it's closed
1251
+ // but still mounted (such as when transitioning out). To ensure
1252
+ // `isPositioned` will be `false` initially on the next open, avoid
1253
+ // setting it to `true` when `open === false` (must be specified).
1254
+ isPositioned: V.current !== !1
1255
+ });
1256
+ N.current && !gt(T.current, L) && (T.current = L, se.flushSync(() => {
1257
+ a(L);
1258
+ }));
1259
+ });
1260
+ }, [m, e, n, D, V]);
1261
+ ut(() => {
1262
+ f === !1 && T.current.isPositioned && (T.current.isPositioned = !1, a((R) => O(A({}, R), {
1263
+ isPositioned: !1
1264
+ })));
1265
+ }, [f]);
1266
+ const N = S.useRef(!1);
1267
+ ut(() => (N.current = !0, () => {
1268
+ N.current = !1;
1269
+ }), []), ut(() => {
1270
+ if (w && (P.current = w), y && (C.current = y), w && y) {
1271
+ if (F.current)
1272
+ return F.current(w, y, M);
1273
+ M();
1274
+ }
1275
+ }, [w, y, M, F, H]);
1276
+ const k = S.useMemo(() => ({
1277
+ reference: P,
1278
+ floating: C,
1279
+ setReference: b,
1280
+ setFloating: v
1281
+ }), [b, v]), E = S.useMemo(() => ({
1282
+ reference: w,
1283
+ floating: y
1284
+ }), [w, y]), I = S.useMemo(() => {
1285
+ const R = {
1286
+ position: n,
1287
+ left: 0,
1288
+ top: 0
1289
+ };
1290
+ if (!E.floating)
1291
+ return R;
1292
+ const W = zt(E.floating, d.x), L = zt(E.floating, d.y);
1293
+ return c ? A(O(A({}, R), {
1294
+ transform: "translate(" + W + "px, " + L + "px)"
1295
+ }), Zt(E.floating) >= 1.5 && {
1296
+ willChange: "transform"
1297
+ }) : {
1298
+ position: n,
1299
+ left: W,
1300
+ top: L
1301
+ };
1302
+ }, [n, c, E.floating, d.x, d.y]);
1303
+ return S.useMemo(() => O(A({}, d), {
1304
+ update: M,
1305
+ refs: k,
1306
+ elements: E,
1307
+ floatingStyles: I
1308
+ }), [d, M, k, E, I]);
1309
+ }
1310
+ const Qe = (t) => {
1311
+ function e(n) {
1312
+ return {}.hasOwnProperty.call(n, "current");
1313
+ }
1314
+ return {
1315
+ name: "arrow",
1316
+ options: t,
1317
+ fn(n) {
1318
+ const {
1319
+ element: o,
1320
+ padding: i
1321
+ } = typeof t == "function" ? t(n) : t;
1322
+ return o && e(o) ? o.current != null ? _t({
1323
+ element: o.current,
1324
+ padding: i
1325
+ }).fn(n) : {} : o ? _t({
1326
+ element: o,
1327
+ padding: i
1328
+ }).fn(n) : {};
1329
+ }
1330
+ };
1331
+ }, un = (t, e) => O(A({}, je(t)), {
1332
+ options: [t, e]
1333
+ }), dn = (t, e) => O(A({}, Ie(t)), {
1334
+ options: [t, e]
1335
+ }), mn = (t, e) => O(A({}, Ue(t)), {
1336
+ options: [t, e]
1337
+ }), hn = (t, e) => O(A({}, Ye(t)), {
1338
+ options: [t, e]
1339
+ }), gn = (t, e) => O(A({}, qe(t)), {
1340
+ options: [t, e]
1341
+ }), pn = (t, e) => O(A({}, Xe(t)), {
1342
+ options: [t, e]
1343
+ }), wn = (t, e) => O(A({}, Qe(t)), {
1344
+ options: [t, e]
1345
+ });
1346
+ var Ze = "Arrow", te = S.forwardRef((t, e) => {
1347
+ const s = t, { children: n, width: o = 10, height: i = 5 } = s, r = tt(s, ["children", "width", "height"]);
1348
+ return /* @__PURE__ */ bt(
1349
+ jt.svg,
1350
+ O(A({}, r), {
1351
+ ref: e,
1352
+ width: o,
1353
+ height: i,
1354
+ viewBox: "0 0 30 10",
1355
+ preserveAspectRatio: "none",
1356
+ children: t.asChild ? n : /* @__PURE__ */ bt("polygon", { points: "0,0 30,0 15,10" })
1357
+ })
1358
+ );
1359
+ });
1360
+ te.displayName = Ze;
1361
+ var xn = te, tn = "Portal", en = S.forwardRef((t, e) => {
1362
+ var l;
1363
+ const c = t, { container: n } = c, o = tt(c, ["container"]), [i, r] = S.useState(!1);
1364
+ le(() => r(!0), []);
1365
+ const s = n || i && ((l = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : l.body);
1366
+ return s ? ce.createPortal(/* @__PURE__ */ bt(jt.div, O(A({}, o), { ref: e })), s) : null;
1367
+ });
1368
+ en.displayName = tn;
1369
+ export {
1370
+ en as P,
1371
+ xn as R,
1372
+ gn as a,
1373
+ wn as b,
1374
+ fn as c,
1375
+ hn as f,
1376
+ pn as h,
1377
+ mn as l,
1378
+ un as o,
1379
+ dn as s,
1380
+ an as u
1381
+ };