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,4030 @@
1
+ var Jr = Object.defineProperty, Qr = Object.defineProperties;
2
+ var eo = Object.getOwnPropertyDescriptors;
3
+ var tt = Object.getOwnPropertySymbols;
4
+ var vn = Object.prototype.hasOwnProperty, yn = Object.prototype.propertyIsEnumerable;
5
+ var mn = (e, t, r) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, B = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ vn.call(t, r) && mn(e, r, t[r]);
8
+ if (tt)
9
+ for (var r of tt(t))
10
+ yn.call(t, r) && mn(e, r, t[r]);
11
+ return e;
12
+ }, ne = (e, t) => Qr(e, eo(t));
13
+ var qe = (e, t) => {
14
+ var r = {};
15
+ for (var o in e)
16
+ vn.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
17
+ if (e != null && tt)
18
+ for (var o of tt(e))
19
+ t.indexOf(o) < 0 && yn.call(e, o) && (r[o] = e[o]);
20
+ return r;
21
+ };
22
+ var xe = (e, t, r) => new Promise((o, i) => {
23
+ var n = (a) => {
24
+ try {
25
+ u(r.next(a));
26
+ } catch (d) {
27
+ i(d);
28
+ }
29
+ }, s = (a) => {
30
+ try {
31
+ u(r.throw(a));
32
+ } catch (d) {
33
+ i(d);
34
+ }
35
+ }, u = (a) => a.done ? o(a.value) : Promise.resolve(a.value).then(n, s);
36
+ u((r = r.apply(e, t)).next());
37
+ });
38
+ import { jsx as to } from "react/jsx-runtime";
39
+ import * as j from "react";
40
+ import gt, { useLayoutEffect as Ut, useRef as ce, useCallback as se, useEffect as ge, useMemo as ht, useReducer as no, cloneElement as ro, Component as oo, createContext as io, useContext as so } from "react";
41
+ import * as Qn from "react-dom";
42
+ import { _ as mt } from "./tslib.es6-fInlAbov.js";
43
+ var $s = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
44
+ function uo(e) {
45
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
46
+ }
47
+ function Ot() {
48
+ return typeof window != "undefined";
49
+ }
50
+ function Be(e) {
51
+ return er(e) ? (e.nodeName || "").toLowerCase() : "#document";
52
+ }
53
+ function pe(e) {
54
+ var t;
55
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
56
+ }
57
+ function Ee(e) {
58
+ var t;
59
+ return (t = (er(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
60
+ }
61
+ function er(e) {
62
+ return Ot() ? e instanceof Node || e instanceof pe(e).Node : !1;
63
+ }
64
+ function ae(e) {
65
+ return Ot() ? e instanceof Element || e instanceof pe(e).Element : !1;
66
+ }
67
+ function Ie(e) {
68
+ return Ot() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
69
+ }
70
+ function _n(e) {
71
+ return !Ot() || typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
72
+ }
73
+ const ao = /* @__PURE__ */ new Set(["inline", "contents"]);
74
+ function Ge(e) {
75
+ const {
76
+ overflow: t,
77
+ overflowX: r,
78
+ overflowY: o,
79
+ display: i
80
+ } = me(e);
81
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + r) && !ao.has(i);
82
+ }
83
+ const co = /* @__PURE__ */ new Set(["table", "td", "th"]);
84
+ function lo(e) {
85
+ return co.has(Be(e));
86
+ }
87
+ const fo = [":popover-open", ":modal"];
88
+ function Ct(e) {
89
+ return fo.some((t) => {
90
+ try {
91
+ return e.matches(t);
92
+ } catch (r) {
93
+ return !1;
94
+ }
95
+ });
96
+ }
97
+ const po = ["transform", "translate", "scale", "rotate", "perspective"], go = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ho = ["paint", "layout", "strict", "content"];
98
+ function zt(e) {
99
+ const t = Xt(), r = ae(e) ? me(e) : e;
100
+ return po.some((o) => r[o] ? r[o] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || go.some((o) => (r.willChange || "").includes(o)) || ho.some((o) => (r.contain || "").includes(o));
101
+ }
102
+ function mo(e) {
103
+ let t = Te(e);
104
+ for (; Ie(t) && !Le(t); ) {
105
+ if (zt(t))
106
+ return t;
107
+ if (Ct(t))
108
+ return null;
109
+ t = Te(t);
110
+ }
111
+ return null;
112
+ }
113
+ function Xt() {
114
+ return typeof CSS == "undefined" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
115
+ }
116
+ const vo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
117
+ function Le(e) {
118
+ return vo.has(Be(e));
119
+ }
120
+ function me(e) {
121
+ return pe(e).getComputedStyle(e);
122
+ }
123
+ function St(e) {
124
+ return ae(e) ? {
125
+ scrollLeft: e.scrollLeft,
126
+ scrollTop: e.scrollTop
127
+ } : {
128
+ scrollLeft: e.scrollX,
129
+ scrollTop: e.scrollY
130
+ };
131
+ }
132
+ function Te(e) {
133
+ if (Be(e) === "html")
134
+ return e;
135
+ const t = (
136
+ // Step into the shadow DOM of the parent of a slotted node.
137
+ e.assignedSlot || // DOM Element detected.
138
+ e.parentNode || // ShadowRoot detected.
139
+ _n(e) && e.host || // Fallback.
140
+ Ee(e)
141
+ );
142
+ return _n(t) ? t.host : t;
143
+ }
144
+ function tr(e) {
145
+ const t = Te(e);
146
+ return Le(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && Ge(t) ? t : tr(t);
147
+ }
148
+ function Xe(e, t, r) {
149
+ var o;
150
+ t === void 0 && (t = []), r === void 0 && (r = !0);
151
+ const i = tr(e), n = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = pe(i);
152
+ if (n) {
153
+ const u = Ft(s);
154
+ return t.concat(s, s.visualViewport || [], Ge(i) ? i : [], u && r ? Xe(u) : []);
155
+ }
156
+ return t.concat(i, Xe(i, [], r));
157
+ }
158
+ function Ft(e) {
159
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
160
+ }
161
+ const Fe = Math.min, de = Math.max, vt = Math.round, nt = Math.floor, _e = (e) => ({
162
+ x: e,
163
+ y: e
164
+ }), yo = {
165
+ left: "right",
166
+ right: "left",
167
+ bottom: "top",
168
+ top: "bottom"
169
+ }, _o = {
170
+ start: "end",
171
+ end: "start"
172
+ };
173
+ function In(e, t, r) {
174
+ return de(e, Fe(t, r));
175
+ }
176
+ function Ze(e, t) {
177
+ return typeof e == "function" ? e(t) : e;
178
+ }
179
+ function Pe(e) {
180
+ return e.split("-")[0];
181
+ }
182
+ function Je(e) {
183
+ return e.split("-")[1];
184
+ }
185
+ function nr(e) {
186
+ return e === "x" ? "y" : "x";
187
+ }
188
+ function rr(e) {
189
+ return e === "y" ? "height" : "width";
190
+ }
191
+ const Io = /* @__PURE__ */ new Set(["top", "bottom"]);
192
+ function Ce(e) {
193
+ return Io.has(Pe(e)) ? "y" : "x";
194
+ }
195
+ function or(e) {
196
+ return nr(Ce(e));
197
+ }
198
+ function Eo(e, t, r) {
199
+ r === void 0 && (r = !1);
200
+ const o = Je(e), i = or(e), n = rr(i);
201
+ let s = i === "x" ? o === (r ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
202
+ return t.reference[n] > t.floating[n] && (s = yt(s)), [s, yt(s)];
203
+ }
204
+ function wo(e) {
205
+ const t = yt(e);
206
+ return [Kt(e), t, Kt(t)];
207
+ }
208
+ function Kt(e) {
209
+ return e.replace(/start|end/g, (t) => _o[t]);
210
+ }
211
+ const En = ["left", "right"], wn = ["right", "left"], bo = ["top", "bottom"], xo = ["bottom", "top"];
212
+ function Oo(e, t, r) {
213
+ switch (e) {
214
+ case "top":
215
+ case "bottom":
216
+ return r ? t ? wn : En : t ? En : wn;
217
+ case "left":
218
+ case "right":
219
+ return t ? bo : xo;
220
+ default:
221
+ return [];
222
+ }
223
+ }
224
+ function Co(e, t, r, o) {
225
+ const i = Je(e);
226
+ let n = Oo(Pe(e), r === "start", o);
227
+ return i && (n = n.map((s) => s + "-" + i), t && (n = n.concat(n.map(Kt)))), n;
228
+ }
229
+ function yt(e) {
230
+ return e.replace(/left|right|bottom|top/g, (t) => yo[t]);
231
+ }
232
+ function So(e) {
233
+ return B({
234
+ top: 0,
235
+ right: 0,
236
+ bottom: 0,
237
+ left: 0
238
+ }, e);
239
+ }
240
+ function Ro(e) {
241
+ return typeof e != "number" ? So(e) : {
242
+ top: e,
243
+ right: e,
244
+ bottom: e,
245
+ left: e
246
+ };
247
+ }
248
+ function _t(e) {
249
+ const {
250
+ x: t,
251
+ y: r,
252
+ width: o,
253
+ height: i
254
+ } = e;
255
+ return {
256
+ width: o,
257
+ height: i,
258
+ top: r,
259
+ left: t,
260
+ right: t + o,
261
+ bottom: r + i,
262
+ x: t,
263
+ y: r
264
+ };
265
+ }
266
+ var Do = typeof document != "undefined", To = function() {
267
+ }, Ke = Do ? Ut : To;
268
+ const Po = B({}, j);
269
+ function rt(e) {
270
+ const t = j.useRef(e);
271
+ return Ke(() => {
272
+ t.current = e;
273
+ }), t;
274
+ }
275
+ const Mo = Po.useInsertionEffect, No = Mo || ((e) => e());
276
+ function Ao(e) {
277
+ const t = j.useRef(() => {
278
+ if (process.env.NODE_ENV !== "production")
279
+ throw new Error("Cannot call an event handler while rendering.");
280
+ });
281
+ return No(() => {
282
+ t.current = e;
283
+ }), j.useCallback(function() {
284
+ for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++)
285
+ o[i] = arguments[i];
286
+ return t.current == null ? void 0 : t.current(...o);
287
+ }, []);
288
+ }
289
+ function bn(e, t, r) {
290
+ let {
291
+ reference: o,
292
+ floating: i
293
+ } = e;
294
+ const n = Ce(t), s = or(t), u = rr(s), a = Pe(t), d = n === "y", h = o.x + o.width / 2 - i.width / 2, m = o.y + o.height / 2 - i.height / 2, y = o[u] / 2 - i[u] / 2;
295
+ let v;
296
+ switch (a) {
297
+ case "top":
298
+ v = {
299
+ x: h,
300
+ y: o.y - i.height
301
+ };
302
+ break;
303
+ case "bottom":
304
+ v = {
305
+ x: h,
306
+ y: o.y + o.height
307
+ };
308
+ break;
309
+ case "right":
310
+ v = {
311
+ x: o.x + o.width,
312
+ y: m
313
+ };
314
+ break;
315
+ case "left":
316
+ v = {
317
+ x: o.x - i.width,
318
+ y: m
319
+ };
320
+ break;
321
+ default:
322
+ v = {
323
+ x: o.x,
324
+ y: o.y
325
+ };
326
+ }
327
+ switch (Je(t)) {
328
+ case "start":
329
+ v[s] -= y * (r && d ? -1 : 1);
330
+ break;
331
+ case "end":
332
+ v[s] += y * (r && d ? -1 : 1);
333
+ break;
334
+ }
335
+ return v;
336
+ }
337
+ const Vo = (e, t, r) => xe(null, null, function* () {
338
+ const {
339
+ placement: o = "bottom",
340
+ strategy: i = "absolute",
341
+ middleware: n = [],
342
+ platform: s
343
+ } = r, u = n.filter(Boolean), a = yield s.isRTL == null ? void 0 : s.isRTL(t);
344
+ let d = yield s.getElementRects({
345
+ reference: e,
346
+ floating: t,
347
+ strategy: i
348
+ }), {
349
+ x: h,
350
+ y: m
351
+ } = bn(d, o, a), y = o, v = {}, E = 0;
352
+ for (let I = 0; I < u.length; I++) {
353
+ const {
354
+ name: g,
355
+ fn: w
356
+ } = u[I], {
357
+ x: c,
358
+ y: l,
359
+ data: p,
360
+ reset: f
361
+ } = yield w({
362
+ x: h,
363
+ y: m,
364
+ initialPlacement: o,
365
+ placement: y,
366
+ strategy: i,
367
+ middlewareData: v,
368
+ rects: d,
369
+ platform: s,
370
+ elements: {
371
+ reference: e,
372
+ floating: t
373
+ }
374
+ });
375
+ h = c != null ? c : h, m = l != null ? l : m, v = ne(B({}, v), {
376
+ [g]: B(B({}, v[g]), p)
377
+ }), f && E <= 50 && (E++, typeof f == "object" && (f.placement && (y = f.placement), f.rects && (d = f.rects === !0 ? yield s.getElementRects({
378
+ reference: e,
379
+ floating: t,
380
+ strategy: i
381
+ }) : f.rects), {
382
+ x: h,
383
+ y: m
384
+ } = bn(d, y, a)), I = -1);
385
+ }
386
+ return {
387
+ x: h,
388
+ y: m,
389
+ placement: y,
390
+ strategy: i,
391
+ middlewareData: v
392
+ };
393
+ });
394
+ function Gt(e, t) {
395
+ return xe(this, null, function* () {
396
+ var r;
397
+ t === void 0 && (t = {});
398
+ const {
399
+ x: o,
400
+ y: i,
401
+ platform: n,
402
+ rects: s,
403
+ elements: u,
404
+ strategy: a
405
+ } = e, {
406
+ boundary: d = "clippingAncestors",
407
+ rootBoundary: h = "viewport",
408
+ elementContext: m = "floating",
409
+ altBoundary: y = !1,
410
+ padding: v = 0
411
+ } = Ze(t, e), E = Ro(v), g = u[y ? m === "floating" ? "reference" : "floating" : m], w = _t(yield n.getClippingRect({
412
+ element: (r = yield n.isElement == null ? void 0 : n.isElement(g)) == null || r ? g : g.contextElement || (yield n.getDocumentElement == null ? void 0 : n.getDocumentElement(u.floating)),
413
+ boundary: d,
414
+ rootBoundary: h,
415
+ strategy: a
416
+ })), c = m === "floating" ? {
417
+ x: o,
418
+ y: i,
419
+ width: s.floating.width,
420
+ height: s.floating.height
421
+ } : s.reference, l = yield n.getOffsetParent == null ? void 0 : n.getOffsetParent(u.floating), p = (yield n.isElement == null ? void 0 : n.isElement(l)) ? (yield n.getScale == null ? void 0 : n.getScale(l)) || {
422
+ x: 1,
423
+ y: 1
424
+ } : {
425
+ x: 1,
426
+ y: 1
427
+ }, f = _t(n.convertOffsetParentRelativeRectToViewportRelativeRect ? yield n.convertOffsetParentRelativeRectToViewportRelativeRect({
428
+ elements: u,
429
+ rect: c,
430
+ offsetParent: l,
431
+ strategy: a
432
+ }) : c);
433
+ return {
434
+ top: (w.top - f.top + E.top) / p.y,
435
+ bottom: (f.bottom - w.bottom + E.bottom) / p.y,
436
+ left: (w.left - f.left + E.left) / p.x,
437
+ right: (f.right - w.right + E.right) / p.x
438
+ };
439
+ });
440
+ }
441
+ const ko = function(e) {
442
+ return e === void 0 && (e = {}), {
443
+ name: "flip",
444
+ options: e,
445
+ fn(r) {
446
+ return xe(this, null, function* () {
447
+ var o, i;
448
+ const {
449
+ placement: n,
450
+ middlewareData: s,
451
+ rects: u,
452
+ initialPlacement: a,
453
+ platform: d,
454
+ elements: h
455
+ } = r, te = Ze(e, r), {
456
+ mainAxis: m = !0,
457
+ crossAxis: y = !0,
458
+ fallbackPlacements: v,
459
+ fallbackStrategy: E = "bestFit",
460
+ fallbackAxisSideDirection: I = "none",
461
+ flipAlignment: g = !0
462
+ } = te, w = qe(te, [
463
+ "mainAxis",
464
+ "crossAxis",
465
+ "fallbackPlacements",
466
+ "fallbackStrategy",
467
+ "fallbackAxisSideDirection",
468
+ "flipAlignment"
469
+ ]);
470
+ if ((o = s.arrow) != null && o.alignmentOffset)
471
+ return {};
472
+ const c = Pe(n), l = Ce(a), p = Pe(a) === a, f = yield d.isRTL == null ? void 0 : d.isRTL(h.floating), D = v || (p || !g ? [yt(a)] : wo(a)), N = I !== "none";
473
+ !v && N && D.push(...Co(a, g, I, f));
474
+ const T = [a, ...D], L = yield Gt(r, w), V = [];
475
+ let H = ((i = s.flip) == null ? void 0 : i.overflows) || [];
476
+ if (m && V.push(L[c]), y) {
477
+ const U = Eo(n, u, f);
478
+ V.push(L[U[0]], L[U[1]]);
479
+ }
480
+ if (H = [...H, {
481
+ placement: n,
482
+ overflows: V
483
+ }], !V.every((U) => U <= 0)) {
484
+ var q, z;
485
+ const U = (((q = s.flip) == null ? void 0 : q.index) || 0) + 1, oe = T[U];
486
+ if (oe && (!(y === "alignment" ? l !== Ce(oe) : !1) || // We leave the current main axis only if every placement on that axis
487
+ // overflows the main axis.
488
+ H.every((_) => Ce(_.placement) === l ? _.overflows[0] > 0 : !0)))
489
+ return {
490
+ data: {
491
+ index: U,
492
+ overflows: H
493
+ },
494
+ reset: {
495
+ placement: oe
496
+ }
497
+ };
498
+ let X = (z = H.filter((re) => re.overflows[0] <= 0).sort((re, _) => re.overflows[1] - _.overflows[1])[0]) == null ? void 0 : z.placement;
499
+ if (!X)
500
+ switch (E) {
501
+ case "bestFit": {
502
+ var A;
503
+ const re = (A = H.filter((_) => {
504
+ if (N) {
505
+ const S = Ce(_.placement);
506
+ return S === l || // Create a bias to the `y` side axis due to horizontal
507
+ // reading directions favoring greater width.
508
+ S === "y";
509
+ }
510
+ return !0;
511
+ }).map((_) => [_.placement, _.overflows.filter((S) => S > 0).reduce((S, R) => S + R, 0)]).sort((_, S) => _[1] - S[1])[0]) == null ? void 0 : A[0];
512
+ re && (X = re);
513
+ break;
514
+ }
515
+ case "initialPlacement":
516
+ X = a;
517
+ break;
518
+ }
519
+ if (n !== X)
520
+ return {
521
+ reset: {
522
+ placement: X
523
+ }
524
+ };
525
+ }
526
+ return {};
527
+ });
528
+ }
529
+ };
530
+ }, $o = /* @__PURE__ */ new Set(["left", "top"]);
531
+ function Ho(e, t) {
532
+ return xe(this, null, function* () {
533
+ const {
534
+ placement: r,
535
+ platform: o,
536
+ elements: i
537
+ } = e, n = yield o.isRTL == null ? void 0 : o.isRTL(i.floating), s = Pe(r), u = Je(r), a = Ce(r) === "y", d = $o.has(s) ? -1 : 1, h = n && a ? -1 : 1, m = Ze(t, e);
538
+ let {
539
+ mainAxis: y,
540
+ crossAxis: v,
541
+ alignmentAxis: E
542
+ } = typeof m == "number" ? {
543
+ mainAxis: m,
544
+ crossAxis: 0,
545
+ alignmentAxis: null
546
+ } : {
547
+ mainAxis: m.mainAxis || 0,
548
+ crossAxis: m.crossAxis || 0,
549
+ alignmentAxis: m.alignmentAxis
550
+ };
551
+ return u && typeof E == "number" && (v = u === "end" ? E * -1 : E), a ? {
552
+ x: v * h,
553
+ y: y * d
554
+ } : {
555
+ x: y * d,
556
+ y: v * h
557
+ };
558
+ });
559
+ }
560
+ const Lo = function(e) {
561
+ return e === void 0 && (e = 0), {
562
+ name: "offset",
563
+ options: e,
564
+ fn(r) {
565
+ return xe(this, null, function* () {
566
+ var o, i;
567
+ const {
568
+ x: n,
569
+ y: s,
570
+ placement: u,
571
+ middlewareData: a
572
+ } = r, d = yield Ho(r, e);
573
+ return u === ((o = a.offset) == null ? void 0 : o.placement) && (i = a.arrow) != null && i.alignmentOffset ? {} : {
574
+ x: n + d.x,
575
+ y: s + d.y,
576
+ data: ne(B({}, d), {
577
+ placement: u
578
+ })
579
+ };
580
+ });
581
+ }
582
+ };
583
+ }, Fo = function(e) {
584
+ return e === void 0 && (e = {}), {
585
+ name: "shift",
586
+ options: e,
587
+ fn(r) {
588
+ return xe(this, null, function* () {
589
+ const {
590
+ x: o,
591
+ y: i,
592
+ placement: n
593
+ } = r, w = Ze(e, r), {
594
+ mainAxis: s = !0,
595
+ crossAxis: u = !1,
596
+ limiter: a = {
597
+ fn: (c) => {
598
+ let {
599
+ x: l,
600
+ y: p
601
+ } = c;
602
+ return {
603
+ x: l,
604
+ y: p
605
+ };
606
+ }
607
+ }
608
+ } = w, d = qe(w, [
609
+ "mainAxis",
610
+ "crossAxis",
611
+ "limiter"
612
+ ]), h = {
613
+ x: o,
614
+ y: i
615
+ }, m = yield Gt(r, d), y = Ce(Pe(n)), v = nr(y);
616
+ let E = h[v], I = h[y];
617
+ if (s) {
618
+ const c = v === "y" ? "top" : "left", l = v === "y" ? "bottom" : "right", p = E + m[c], f = E - m[l];
619
+ E = In(p, E, f);
620
+ }
621
+ if (u) {
622
+ const c = y === "y" ? "top" : "left", l = y === "y" ? "bottom" : "right", p = I + m[c], f = I - m[l];
623
+ I = In(p, I, f);
624
+ }
625
+ const g = a.fn(ne(B({}, r), {
626
+ [v]: E,
627
+ [y]: I
628
+ }));
629
+ return ne(B({}, g), {
630
+ data: {
631
+ x: g.x - o,
632
+ y: g.y - i,
633
+ enabled: {
634
+ [v]: s,
635
+ [y]: u
636
+ }
637
+ }
638
+ });
639
+ });
640
+ }
641
+ };
642
+ }, Ko = function(e) {
643
+ return e === void 0 && (e = {}), {
644
+ name: "size",
645
+ options: e,
646
+ fn(r) {
647
+ return xe(this, null, function* () {
648
+ var o, i;
649
+ const {
650
+ placement: n,
651
+ rects: s,
652
+ platform: u,
653
+ elements: a
654
+ } = r, H = Ze(e, r), {
655
+ apply: d = () => {
656
+ }
657
+ } = H, h = qe(H, [
658
+ "apply"
659
+ ]), m = yield Gt(r, h), y = Pe(n), v = Je(n), E = Ce(n) === "y", {
660
+ width: I,
661
+ height: g
662
+ } = s.floating;
663
+ let w, c;
664
+ y === "top" || y === "bottom" ? (w = y, c = v === ((yield u.isRTL == null ? void 0 : u.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (c = y, w = v === "end" ? "top" : "bottom");
665
+ const l = g - m.top - m.bottom, p = I - m.left - m.right, f = Fe(g - m[w], l), D = Fe(I - m[c], p), N = !r.middlewareData.shift;
666
+ let T = f, L = D;
667
+ if ((o = r.middlewareData.shift) != null && o.enabled.x && (L = p), (i = r.middlewareData.shift) != null && i.enabled.y && (T = l), N && !v) {
668
+ const q = de(m.left, 0), z = de(m.right, 0), A = de(m.top, 0), te = de(m.bottom, 0);
669
+ E ? L = I - 2 * (q !== 0 || z !== 0 ? q + z : de(m.left, m.right)) : T = g - 2 * (A !== 0 || te !== 0 ? A + te : de(m.top, m.bottom));
670
+ }
671
+ yield d(ne(B({}, r), {
672
+ availableWidth: L,
673
+ availableHeight: T
674
+ }));
675
+ const V = yield u.getDimensions(a.floating);
676
+ return I !== V.width || g !== V.height ? {
677
+ reset: {
678
+ rects: !0
679
+ }
680
+ } : {};
681
+ });
682
+ }
683
+ };
684
+ };
685
+ function ir(e) {
686
+ const t = me(e);
687
+ let r = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
688
+ const i = Ie(e), n = i ? e.offsetWidth : r, s = i ? e.offsetHeight : o, u = vt(r) !== n || vt(o) !== s;
689
+ return u && (r = n, o = s), {
690
+ width: r,
691
+ height: o,
692
+ $: u
693
+ };
694
+ }
695
+ function Zt(e) {
696
+ return ae(e) ? e : e.contextElement;
697
+ }
698
+ function He(e) {
699
+ const t = Zt(e);
700
+ if (!Ie(t))
701
+ return _e(1);
702
+ const r = t.getBoundingClientRect(), {
703
+ width: o,
704
+ height: i,
705
+ $: n
706
+ } = ir(t);
707
+ let s = (n ? vt(r.width) : r.width) / o, u = (n ? vt(r.height) : r.height) / i;
708
+ return (!s || !Number.isFinite(s)) && (s = 1), (!u || !Number.isFinite(u)) && (u = 1), {
709
+ x: s,
710
+ y: u
711
+ };
712
+ }
713
+ const jo = /* @__PURE__ */ _e(0);
714
+ function sr(e) {
715
+ const t = pe(e);
716
+ return !Xt() || !t.visualViewport ? jo : {
717
+ x: t.visualViewport.offsetLeft,
718
+ y: t.visualViewport.offsetTop
719
+ };
720
+ }
721
+ function Bo(e, t, r) {
722
+ return t === void 0 && (t = !1), !r || t && r !== pe(e) ? !1 : t;
723
+ }
724
+ function Ve(e, t, r, o) {
725
+ t === void 0 && (t = !1), r === void 0 && (r = !1);
726
+ const i = e.getBoundingClientRect(), n = Zt(e);
727
+ let s = _e(1);
728
+ t && (o ? ae(o) && (s = He(o)) : s = He(e));
729
+ const u = Bo(n, r, o) ? sr(n) : _e(0);
730
+ let a = (i.left + u.x) / s.x, d = (i.top + u.y) / s.y, h = i.width / s.x, m = i.height / s.y;
731
+ if (n) {
732
+ const y = pe(n), v = o && ae(o) ? pe(o) : o;
733
+ let E = y, I = Ft(E);
734
+ for (; I && o && v !== E; ) {
735
+ const g = He(I), w = I.getBoundingClientRect(), c = me(I), l = w.left + (I.clientLeft + parseFloat(c.paddingLeft)) * g.x, p = w.top + (I.clientTop + parseFloat(c.paddingTop)) * g.y;
736
+ a *= g.x, d *= g.y, h *= g.x, m *= g.y, a += l, d += p, E = pe(I), I = Ft(E);
737
+ }
738
+ }
739
+ return _t({
740
+ width: h,
741
+ height: m,
742
+ x: a,
743
+ y: d
744
+ });
745
+ }
746
+ function Rt(e, t) {
747
+ const r = St(e).scrollLeft;
748
+ return t ? t.left + r : Ve(Ee(e)).left + r;
749
+ }
750
+ function ur(e, t) {
751
+ const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - Rt(e, r), i = r.top + t.scrollTop;
752
+ return {
753
+ x: o,
754
+ y: i
755
+ };
756
+ }
757
+ function Wo(e) {
758
+ let {
759
+ elements: t,
760
+ rect: r,
761
+ offsetParent: o,
762
+ strategy: i
763
+ } = e;
764
+ const n = i === "fixed", s = Ee(o), u = t ? Ct(t.floating) : !1;
765
+ if (o === s || u && n)
766
+ return r;
767
+ let a = {
768
+ scrollLeft: 0,
769
+ scrollTop: 0
770
+ }, d = _e(1);
771
+ const h = _e(0), m = Ie(o);
772
+ if ((m || !m && !n) && ((Be(o) !== "body" || Ge(s)) && (a = St(o)), Ie(o))) {
773
+ const v = Ve(o);
774
+ d = He(o), h.x = v.x + o.clientLeft, h.y = v.y + o.clientTop;
775
+ }
776
+ const y = s && !m && !n ? ur(s, a) : _e(0);
777
+ return {
778
+ width: r.width * d.x,
779
+ height: r.height * d.y,
780
+ x: r.x * d.x - a.scrollLeft * d.x + h.x + y.x,
781
+ y: r.y * d.y - a.scrollTop * d.y + h.y + y.y
782
+ };
783
+ }
784
+ function qo(e) {
785
+ return Array.from(e.getClientRects());
786
+ }
787
+ function Yo(e) {
788
+ const t = Ee(e), r = St(e), o = e.ownerDocument.body, i = de(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), n = de(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
789
+ let s = -r.scrollLeft + Rt(e);
790
+ const u = -r.scrollTop;
791
+ return me(o).direction === "rtl" && (s += de(t.clientWidth, o.clientWidth) - i), {
792
+ width: i,
793
+ height: n,
794
+ x: s,
795
+ y: u
796
+ };
797
+ }
798
+ const xn = 25;
799
+ function Uo(e, t) {
800
+ const r = pe(e), o = Ee(e), i = r.visualViewport;
801
+ let n = o.clientWidth, s = o.clientHeight, u = 0, a = 0;
802
+ if (i) {
803
+ n = i.width, s = i.height;
804
+ const h = Xt();
805
+ (!h || h && t === "fixed") && (u = i.offsetLeft, a = i.offsetTop);
806
+ }
807
+ const d = Rt(o);
808
+ if (d <= 0) {
809
+ const h = o.ownerDocument, m = h.body, y = getComputedStyle(m), v = h.compatMode === "CSS1Compat" && parseFloat(y.marginLeft) + parseFloat(y.marginRight) || 0, E = Math.abs(o.clientWidth - m.clientWidth - v);
810
+ E <= xn && (n -= E);
811
+ } else d <= xn && (n += d);
812
+ return {
813
+ width: n,
814
+ height: s,
815
+ x: u,
816
+ y: a
817
+ };
818
+ }
819
+ const zo = /* @__PURE__ */ new Set(["absolute", "fixed"]);
820
+ function Xo(e, t) {
821
+ const r = Ve(e, !0, t === "fixed"), o = r.top + e.clientTop, i = r.left + e.clientLeft, n = Ie(e) ? He(e) : _e(1), s = e.clientWidth * n.x, u = e.clientHeight * n.y, a = i * n.x, d = o * n.y;
822
+ return {
823
+ width: s,
824
+ height: u,
825
+ x: a,
826
+ y: d
827
+ };
828
+ }
829
+ function On(e, t, r) {
830
+ let o;
831
+ if (t === "viewport")
832
+ o = Uo(e, r);
833
+ else if (t === "document")
834
+ o = Yo(Ee(e));
835
+ else if (ae(t))
836
+ o = Xo(t, r);
837
+ else {
838
+ const i = sr(e);
839
+ o = {
840
+ x: t.x - i.x,
841
+ y: t.y - i.y,
842
+ width: t.width,
843
+ height: t.height
844
+ };
845
+ }
846
+ return _t(o);
847
+ }
848
+ function ar(e, t) {
849
+ const r = Te(e);
850
+ return r === t || !ae(r) || Le(r) ? !1 : me(r).position === "fixed" || ar(r, t);
851
+ }
852
+ function Go(e, t) {
853
+ const r = t.get(e);
854
+ if (r)
855
+ return r;
856
+ let o = Xe(e, [], !1).filter((u) => ae(u) && Be(u) !== "body"), i = null;
857
+ const n = me(e).position === "fixed";
858
+ let s = n ? Te(e) : e;
859
+ for (; ae(s) && !Le(s); ) {
860
+ const u = me(s), a = zt(s);
861
+ !a && u.position === "fixed" && (i = null), (n ? !a && !i : !a && u.position === "static" && !!i && zo.has(i.position) || Ge(s) && !a && ar(e, s)) ? o = o.filter((h) => h !== s) : i = u, s = Te(s);
862
+ }
863
+ return t.set(e, o), o;
864
+ }
865
+ function Zo(e) {
866
+ let {
867
+ element: t,
868
+ boundary: r,
869
+ rootBoundary: o,
870
+ strategy: i
871
+ } = e;
872
+ const s = [...r === "clippingAncestors" ? Ct(t) ? [] : Go(t, this._c) : [].concat(r), o], u = s[0], a = s.reduce((d, h) => {
873
+ const m = On(t, h, i);
874
+ return d.top = de(m.top, d.top), d.right = Fe(m.right, d.right), d.bottom = Fe(m.bottom, d.bottom), d.left = de(m.left, d.left), d;
875
+ }, On(t, u, i));
876
+ return {
877
+ width: a.right - a.left,
878
+ height: a.bottom - a.top,
879
+ x: a.left,
880
+ y: a.top
881
+ };
882
+ }
883
+ function Jo(e) {
884
+ const {
885
+ width: t,
886
+ height: r
887
+ } = ir(e);
888
+ return {
889
+ width: t,
890
+ height: r
891
+ };
892
+ }
893
+ function Qo(e, t, r) {
894
+ const o = Ie(t), i = Ee(t), n = r === "fixed", s = Ve(e, !0, n, t);
895
+ let u = {
896
+ scrollLeft: 0,
897
+ scrollTop: 0
898
+ };
899
+ const a = _e(0);
900
+ function d() {
901
+ a.x = Rt(i);
902
+ }
903
+ if (o || !o && !n)
904
+ if ((Be(t) !== "body" || Ge(i)) && (u = St(t)), o) {
905
+ const v = Ve(t, !0, n, t);
906
+ a.x = v.x + t.clientLeft, a.y = v.y + t.clientTop;
907
+ } else i && d();
908
+ n && !o && i && d();
909
+ const h = i && !o && !n ? ur(i, u) : _e(0), m = s.left + u.scrollLeft - a.x - h.x, y = s.top + u.scrollTop - a.y - h.y;
910
+ return {
911
+ x: m,
912
+ y,
913
+ width: s.width,
914
+ height: s.height
915
+ };
916
+ }
917
+ function Mt(e) {
918
+ return me(e).position === "static";
919
+ }
920
+ function Cn(e, t) {
921
+ if (!Ie(e) || me(e).position === "fixed")
922
+ return null;
923
+ if (t)
924
+ return t(e);
925
+ let r = e.offsetParent;
926
+ return Ee(e) === r && (r = r.ownerDocument.body), r;
927
+ }
928
+ function cr(e, t) {
929
+ const r = pe(e);
930
+ if (Ct(e))
931
+ return r;
932
+ if (!Ie(e)) {
933
+ let i = Te(e);
934
+ for (; i && !Le(i); ) {
935
+ if (ae(i) && !Mt(i))
936
+ return i;
937
+ i = Te(i);
938
+ }
939
+ return r;
940
+ }
941
+ let o = Cn(e, t);
942
+ for (; o && lo(o) && Mt(o); )
943
+ o = Cn(o, t);
944
+ return o && Le(o) && Mt(o) && !zt(o) ? r : o || mo(e) || r;
945
+ }
946
+ const ei = function(e) {
947
+ return xe(this, null, function* () {
948
+ const t = this.getOffsetParent || cr, r = this.getDimensions, o = yield r(e.floating);
949
+ return {
950
+ reference: Qo(e.reference, yield t(e.floating), e.strategy),
951
+ floating: {
952
+ x: 0,
953
+ y: 0,
954
+ width: o.width,
955
+ height: o.height
956
+ }
957
+ };
958
+ });
959
+ };
960
+ function ti(e) {
961
+ return me(e).direction === "rtl";
962
+ }
963
+ const ni = {
964
+ convertOffsetParentRelativeRectToViewportRelativeRect: Wo,
965
+ getDocumentElement: Ee,
966
+ getClippingRect: Zo,
967
+ getOffsetParent: cr,
968
+ getElementRects: ei,
969
+ getClientRects: qo,
970
+ getDimensions: Jo,
971
+ getScale: He,
972
+ isElement: ae,
973
+ isRTL: ti
974
+ };
975
+ function lr(e, t) {
976
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
977
+ }
978
+ function ri(e, t) {
979
+ let r = null, o;
980
+ const i = Ee(e);
981
+ function n() {
982
+ var u;
983
+ clearTimeout(o), (u = r) == null || u.disconnect(), r = null;
984
+ }
985
+ function s(u, a) {
986
+ u === void 0 && (u = !1), a === void 0 && (a = 1), n();
987
+ const d = e.getBoundingClientRect(), {
988
+ left: h,
989
+ top: m,
990
+ width: y,
991
+ height: v
992
+ } = d;
993
+ if (u || t(), !y || !v)
994
+ return;
995
+ const E = nt(m), I = nt(i.clientWidth - (h + y)), g = nt(i.clientHeight - (m + v)), w = nt(h), l = {
996
+ rootMargin: -E + "px " + -I + "px " + -g + "px " + -w + "px",
997
+ threshold: de(0, Fe(1, a)) || 1
998
+ };
999
+ let p = !0;
1000
+ function f(D) {
1001
+ const N = D[0].intersectionRatio;
1002
+ if (N !== a) {
1003
+ if (!p)
1004
+ return s();
1005
+ N ? s(!1, N) : o = setTimeout(() => {
1006
+ s(!1, 1e-7);
1007
+ }, 1e3);
1008
+ }
1009
+ N === 1 && !lr(d, e.getBoundingClientRect()) && s(), p = !1;
1010
+ }
1011
+ try {
1012
+ r = new IntersectionObserver(f, ne(B({}, l), {
1013
+ // Handle <iframe>s
1014
+ root: i.ownerDocument
1015
+ }));
1016
+ } catch (D) {
1017
+ r = new IntersectionObserver(f, l);
1018
+ }
1019
+ r.observe(e);
1020
+ }
1021
+ return s(!0), n;
1022
+ }
1023
+ function oi(e, t, r, o) {
1024
+ o === void 0 && (o = {});
1025
+ const {
1026
+ ancestorScroll: i = !0,
1027
+ ancestorResize: n = !0,
1028
+ elementResize: s = typeof ResizeObserver == "function",
1029
+ layoutShift: u = typeof IntersectionObserver == "function",
1030
+ animationFrame: a = !1
1031
+ } = o, d = Zt(e), h = i || n ? [...d ? Xe(d) : [], ...Xe(t)] : [];
1032
+ h.forEach((w) => {
1033
+ i && w.addEventListener("scroll", r, {
1034
+ passive: !0
1035
+ }), n && w.addEventListener("resize", r);
1036
+ });
1037
+ const m = d && u ? ri(d, r) : null;
1038
+ let y = -1, v = null;
1039
+ s && (v = new ResizeObserver((w) => {
1040
+ let [c] = w;
1041
+ c && c.target === d && v && (v.unobserve(t), cancelAnimationFrame(y), y = requestAnimationFrame(() => {
1042
+ var l;
1043
+ (l = v) == null || l.observe(t);
1044
+ })), r();
1045
+ }), d && !a && v.observe(d), v.observe(t));
1046
+ let E, I = a ? Ve(e) : null;
1047
+ a && g();
1048
+ function g() {
1049
+ const w = Ve(e);
1050
+ I && !lr(I, w) && r(), I = w, E = requestAnimationFrame(g);
1051
+ }
1052
+ return r(), () => {
1053
+ var w;
1054
+ h.forEach((c) => {
1055
+ i && c.removeEventListener("scroll", r), n && c.removeEventListener("resize", r);
1056
+ }), m == null || m(), (w = v) == null || w.disconnect(), v = null, a && cancelAnimationFrame(E);
1057
+ };
1058
+ }
1059
+ const ii = Lo, si = Fo, ui = ko, ai = Ko, ci = (e, t, r) => {
1060
+ const o = /* @__PURE__ */ new Map(), i = B({
1061
+ platform: ni
1062
+ }, r), n = ne(B({}, i.platform), {
1063
+ _c: o
1064
+ });
1065
+ return Vo(e, t, ne(B({}, i), {
1066
+ platform: n
1067
+ }));
1068
+ };
1069
+ var li = typeof document != "undefined", fi = function() {
1070
+ }, lt = li ? Ut : fi;
1071
+ function It(e, t) {
1072
+ if (e === t)
1073
+ return !0;
1074
+ if (typeof e != typeof t)
1075
+ return !1;
1076
+ if (typeof e == "function" && e.toString() === t.toString())
1077
+ return !0;
1078
+ let r, o, i;
1079
+ if (e && t && typeof e == "object") {
1080
+ if (Array.isArray(e)) {
1081
+ if (r = e.length, r !== t.length) return !1;
1082
+ for (o = r; o-- !== 0; )
1083
+ if (!It(e[o], t[o]))
1084
+ return !1;
1085
+ return !0;
1086
+ }
1087
+ if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length)
1088
+ return !1;
1089
+ for (o = r; o-- !== 0; )
1090
+ if (!{}.hasOwnProperty.call(t, i[o]))
1091
+ return !1;
1092
+ for (o = r; o-- !== 0; ) {
1093
+ const n = i[o];
1094
+ if (!(n === "_owner" && e.$$typeof) && !It(e[n], t[n]))
1095
+ return !1;
1096
+ }
1097
+ return !0;
1098
+ }
1099
+ return e !== e && t !== t;
1100
+ }
1101
+ function fr(e) {
1102
+ return typeof window == "undefined" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1103
+ }
1104
+ function Sn(e, t) {
1105
+ const r = fr(e);
1106
+ return Math.round(t * r) / r;
1107
+ }
1108
+ function Nt(e) {
1109
+ const t = j.useRef(e);
1110
+ return lt(() => {
1111
+ t.current = e;
1112
+ }), t;
1113
+ }
1114
+ function di(e) {
1115
+ e === void 0 && (e = {});
1116
+ const {
1117
+ placement: t = "bottom",
1118
+ strategy: r = "absolute",
1119
+ middleware: o = [],
1120
+ platform: i,
1121
+ elements: {
1122
+ reference: n,
1123
+ floating: s
1124
+ } = {},
1125
+ transform: u = !0,
1126
+ whileElementsMounted: a,
1127
+ open: d
1128
+ } = e, [h, m] = j.useState({
1129
+ x: 0,
1130
+ y: 0,
1131
+ strategy: r,
1132
+ placement: t,
1133
+ middlewareData: {},
1134
+ isPositioned: !1
1135
+ }), [y, v] = j.useState(o);
1136
+ It(y, o) || v(o);
1137
+ const [E, I] = j.useState(null), [g, w] = j.useState(null), c = j.useCallback((X) => {
1138
+ X !== D.current && (D.current = X, I(X));
1139
+ }, []), l = j.useCallback((X) => {
1140
+ X !== N.current && (N.current = X, w(X));
1141
+ }, []), p = n || E, f = s || g, D = j.useRef(null), N = j.useRef(null), T = j.useRef(h), L = a != null, V = Nt(a), H = Nt(i), q = Nt(d), z = j.useCallback(() => {
1142
+ if (!D.current || !N.current)
1143
+ return;
1144
+ const X = {
1145
+ placement: t,
1146
+ strategy: r,
1147
+ middleware: y
1148
+ };
1149
+ H.current && (X.platform = H.current), ci(D.current, N.current, X).then((re) => {
1150
+ const _ = ne(B({}, re), {
1151
+ // The floating element's position may be recomputed while it's closed
1152
+ // but still mounted (such as when transitioning out). To ensure
1153
+ // `isPositioned` will be `false` initially on the next open, avoid
1154
+ // setting it to `true` when `open === false` (must be specified).
1155
+ isPositioned: q.current !== !1
1156
+ });
1157
+ A.current && !It(T.current, _) && (T.current = _, Qn.flushSync(() => {
1158
+ m(_);
1159
+ }));
1160
+ });
1161
+ }, [y, t, r, H, q]);
1162
+ lt(() => {
1163
+ d === !1 && T.current.isPositioned && (T.current.isPositioned = !1, m((X) => ne(B({}, X), {
1164
+ isPositioned: !1
1165
+ })));
1166
+ }, [d]);
1167
+ const A = j.useRef(!1);
1168
+ lt(() => (A.current = !0, () => {
1169
+ A.current = !1;
1170
+ }), []), lt(() => {
1171
+ if (p && (D.current = p), f && (N.current = f), p && f) {
1172
+ if (V.current)
1173
+ return V.current(p, f, z);
1174
+ z();
1175
+ }
1176
+ }, [p, f, z, V, L]);
1177
+ const te = j.useMemo(() => ({
1178
+ reference: D,
1179
+ floating: N,
1180
+ setReference: c,
1181
+ setFloating: l
1182
+ }), [c, l]), U = j.useMemo(() => ({
1183
+ reference: p,
1184
+ floating: f
1185
+ }), [p, f]), oe = j.useMemo(() => {
1186
+ const X = {
1187
+ position: r,
1188
+ left: 0,
1189
+ top: 0
1190
+ };
1191
+ if (!U.floating)
1192
+ return X;
1193
+ const re = Sn(U.floating, h.x), _ = Sn(U.floating, h.y);
1194
+ return u ? B(ne(B({}, X), {
1195
+ transform: "translate(" + re + "px, " + _ + "px)"
1196
+ }), fr(U.floating) >= 1.5 && {
1197
+ willChange: "transform"
1198
+ }) : {
1199
+ position: r,
1200
+ left: re,
1201
+ top: _
1202
+ };
1203
+ }, [r, u, U.floating, h.x, h.y]);
1204
+ return j.useMemo(() => ne(B({}, h), {
1205
+ update: z,
1206
+ refs: te,
1207
+ elements: U,
1208
+ floatingStyles: oe
1209
+ }), [h, z, te, U, oe]);
1210
+ }
1211
+ const pi = (e, t) => ne(B({}, ii(e)), {
1212
+ options: [e, t]
1213
+ }), gi = (e, t) => ne(B({}, si(e)), {
1214
+ options: [e, t]
1215
+ }), hi = (e, t) => ne(B({}, ui(e)), {
1216
+ options: [e, t]
1217
+ }), mi = (e, t) => ne(B({}, ai(e)), {
1218
+ options: [e, t]
1219
+ }), vi = B({}, j);
1220
+ let Rn = !1, yi = 0;
1221
+ const Dn = () => (
1222
+ // Ensure the id is unique with multiple independent versions of Floating UI
1223
+ // on <React 18
1224
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + yi++
1225
+ );
1226
+ function _i() {
1227
+ const [e, t] = j.useState(() => Rn ? Dn() : void 0);
1228
+ return Ke(() => {
1229
+ e == null && t(Dn());
1230
+ }, []), j.useEffect(() => {
1231
+ Rn = !0;
1232
+ }, []), e;
1233
+ }
1234
+ const Ii = vi.useId, Ei = Ii || _i;
1235
+ let jt;
1236
+ process.env.NODE_ENV !== "production" && (jt = /* @__PURE__ */ new Set());
1237
+ function wi() {
1238
+ for (var e, t = arguments.length, r = new Array(t), o = 0; o < t; o++)
1239
+ r[o] = arguments[o];
1240
+ const i = "Floating UI: " + r.join(" ");
1241
+ if (!((e = jt) != null && e.has(i))) {
1242
+ var n;
1243
+ (n = jt) == null || n.add(i), console.error(i);
1244
+ }
1245
+ }
1246
+ function bi() {
1247
+ const e = /* @__PURE__ */ new Map();
1248
+ return {
1249
+ emit(t, r) {
1250
+ var o;
1251
+ (o = e.get(t)) == null || o.forEach((i) => i(r));
1252
+ },
1253
+ on(t, r) {
1254
+ e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(r);
1255
+ },
1256
+ off(t, r) {
1257
+ var o;
1258
+ (o = e.get(t)) == null || o.delete(r);
1259
+ }
1260
+ };
1261
+ }
1262
+ const xi = /* @__PURE__ */ j.createContext(null), Oi = /* @__PURE__ */ j.createContext(null), Ci = () => {
1263
+ var e;
1264
+ return ((e = j.useContext(xi)) == null ? void 0 : e.id) || null;
1265
+ }, Si = () => j.useContext(Oi);
1266
+ function Ri(e) {
1267
+ const {
1268
+ open: t = !1,
1269
+ onOpenChange: r,
1270
+ elements: o
1271
+ } = e, i = Ei(), n = j.useRef({}), [s] = j.useState(() => bi()), u = Ci() != null;
1272
+ if (process.env.NODE_ENV !== "production") {
1273
+ const v = o.reference;
1274
+ v && !ae(v) && wi("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
1275
+ }
1276
+ const [a, d] = j.useState(o.reference), h = Ao((v, E, I) => {
1277
+ n.current.openEvent = v ? E : void 0, s.emit("openchange", {
1278
+ open: v,
1279
+ event: E,
1280
+ reason: I,
1281
+ nested: u
1282
+ }), r == null || r(v, E, I);
1283
+ }), m = j.useMemo(() => ({
1284
+ setPositionReference: d
1285
+ }), []), y = j.useMemo(() => ({
1286
+ reference: a || o.reference || null,
1287
+ floating: o.floating || null,
1288
+ domReference: o.reference
1289
+ }), [a, o.reference, o.floating]);
1290
+ return j.useMemo(() => ({
1291
+ dataRef: n,
1292
+ open: t,
1293
+ onOpenChange: h,
1294
+ elements: y,
1295
+ events: s,
1296
+ floatingId: i,
1297
+ refs: m
1298
+ }), [t, h, y, s, i, m]);
1299
+ }
1300
+ function Di(e) {
1301
+ e === void 0 && (e = {});
1302
+ const {
1303
+ nodeId: t
1304
+ } = e, r = Ri(ne(B({}, e), {
1305
+ elements: B({
1306
+ reference: null,
1307
+ floating: null
1308
+ }, e.elements)
1309
+ })), o = e.rootContext || r, i = o.elements, [n, s] = j.useState(null), [u, a] = j.useState(null), h = (i == null ? void 0 : i.domReference) || n, m = j.useRef(null), y = Si();
1310
+ Ke(() => {
1311
+ h && (m.current = h);
1312
+ }, [h]);
1313
+ const v = di(ne(B({}, e), {
1314
+ elements: B(B({}, i), u && {
1315
+ reference: u
1316
+ })
1317
+ })), E = j.useCallback((l) => {
1318
+ const p = ae(l) ? {
1319
+ getBoundingClientRect: () => l.getBoundingClientRect(),
1320
+ getClientRects: () => l.getClientRects(),
1321
+ contextElement: l
1322
+ } : l;
1323
+ a(p), v.refs.setReference(p);
1324
+ }, [v.refs]), I = j.useCallback((l) => {
1325
+ (ae(l) || l === null) && (m.current = l, s(l)), (ae(v.refs.reference.current) || v.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
1326
+ // `null` to support `positionReference` + an unstable `reference`
1327
+ // callback ref.
1328
+ l !== null && !ae(l)) && v.refs.setReference(l);
1329
+ }, [v.refs]), g = j.useMemo(() => ne(B({}, v.refs), {
1330
+ setReference: I,
1331
+ setPositionReference: E,
1332
+ domReference: m
1333
+ }), [v.refs, I, E]), w = j.useMemo(() => ne(B({}, v.elements), {
1334
+ domReference: h
1335
+ }), [v.elements, h]), c = j.useMemo(() => ne(B(B({}, v), o), {
1336
+ refs: g,
1337
+ elements: w,
1338
+ nodeId: t
1339
+ }), [v, g, w, t, o]);
1340
+ return Ke(() => {
1341
+ o.dataRef.current.floatingContext = c;
1342
+ const l = y == null ? void 0 : y.nodesRef.current.find((p) => p.id === t);
1343
+ l && (l.context = c);
1344
+ }), j.useMemo(() => ne(B({}, v), {
1345
+ context: c,
1346
+ refs: g,
1347
+ elements: w
1348
+ }), [v, g, w, c]);
1349
+ }
1350
+ const Tn = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, r) => (r ? "-" : "") + t.toLowerCase());
1351
+ function ke(e, t) {
1352
+ return typeof e == "function" ? e(t) : e;
1353
+ }
1354
+ function Ti(e, t) {
1355
+ const [r, o] = j.useState(e);
1356
+ return e && !r && o(!0), j.useEffect(() => {
1357
+ if (!e && r) {
1358
+ const i = setTimeout(() => o(!1), t);
1359
+ return () => clearTimeout(i);
1360
+ }
1361
+ }, [e, r, t]), r;
1362
+ }
1363
+ function Pi(e, t) {
1364
+ t === void 0 && (t = {});
1365
+ const {
1366
+ open: r,
1367
+ elements: {
1368
+ floating: o
1369
+ }
1370
+ } = e, {
1371
+ duration: i = 250
1372
+ } = t, s = (typeof i == "number" ? i : i.close) || 0, [u, a] = j.useState("unmounted"), d = Ti(r, s);
1373
+ return !d && u === "close" && a("unmounted"), Ke(() => {
1374
+ if (o) {
1375
+ if (r) {
1376
+ a("initial");
1377
+ const h = requestAnimationFrame(() => {
1378
+ Qn.flushSync(() => {
1379
+ a("open");
1380
+ });
1381
+ });
1382
+ return () => {
1383
+ cancelAnimationFrame(h);
1384
+ };
1385
+ }
1386
+ a("close");
1387
+ }
1388
+ }, [r, o]), {
1389
+ isMounted: d,
1390
+ status: u
1391
+ };
1392
+ }
1393
+ function Mi(e, t) {
1394
+ t === void 0 && (t = {});
1395
+ const {
1396
+ initial: r = {
1397
+ opacity: 0
1398
+ },
1399
+ open: o,
1400
+ close: i,
1401
+ common: n,
1402
+ duration: s = 250
1403
+ } = t, u = e.placement, a = u.split("-")[0], d = j.useMemo(() => ({
1404
+ side: a,
1405
+ placement: u
1406
+ }), [a, u]), h = typeof s == "number", m = (h ? s : s.open) || 0, y = (h ? s : s.close) || 0, [v, E] = j.useState(() => B(B({}, ke(n, d)), ke(r, d))), {
1407
+ isMounted: I,
1408
+ status: g
1409
+ } = Pi(e, {
1410
+ duration: s
1411
+ }), w = rt(r), c = rt(o), l = rt(i), p = rt(n);
1412
+ return Ke(() => {
1413
+ const f = ke(w.current, d), D = ke(l.current, d), N = ke(p.current, d), T = ke(c.current, d) || Object.keys(f).reduce((L, V) => (L[V] = "", L), {});
1414
+ if (g === "initial" && E((L) => B(B({
1415
+ transitionProperty: L.transitionProperty
1416
+ }, N), f)), g === "open" && E(B(B({
1417
+ transitionProperty: Object.keys(T).map(Tn).join(","),
1418
+ transitionDuration: m + "ms"
1419
+ }, N), T)), g === "close") {
1420
+ const L = D || f;
1421
+ E(B(B({
1422
+ transitionProperty: Object.keys(L).map(Tn).join(","),
1423
+ transitionDuration: y + "ms"
1424
+ }, N), L));
1425
+ }
1426
+ }, [y, l, w, c, p, m, g, d]), {
1427
+ isMounted: I,
1428
+ styles: v
1429
+ };
1430
+ }
1431
+ function Oe(e, t) {
1432
+ if (e == null) return {};
1433
+ var r = {};
1434
+ for (var o in e) if ({}.hasOwnProperty.call(e, o)) {
1435
+ if (t.indexOf(o) !== -1) continue;
1436
+ r[o] = e[o];
1437
+ }
1438
+ return r;
1439
+ }
1440
+ function Y() {
1441
+ return Y = Object.assign ? Object.assign.bind() : function(e) {
1442
+ for (var t = 1; t < arguments.length; t++) {
1443
+ var r = arguments[t];
1444
+ for (var o in r) ({}).hasOwnProperty.call(r, o) && (e[o] = r[o]);
1445
+ }
1446
+ return e;
1447
+ }, Y.apply(null, arguments);
1448
+ }
1449
+ function Bt(e, t) {
1450
+ return Bt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
1451
+ return r.__proto__ = o, r;
1452
+ }, Bt(e, t);
1453
+ }
1454
+ function Ni(e, t) {
1455
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Bt(e, t);
1456
+ }
1457
+ var ot = { exports: {} }, it = { exports: {} }, G = {};
1458
+ /** @license React v16.13.1
1459
+ * react-is.production.min.js
1460
+ *
1461
+ * Copyright (c) Facebook, Inc. and its affiliates.
1462
+ *
1463
+ * This source code is licensed under the MIT license found in the
1464
+ * LICENSE file in the root directory of this source tree.
1465
+ */
1466
+ var Pn;
1467
+ function Ai() {
1468
+ if (Pn) return G;
1469
+ Pn = 1;
1470
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, n = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, I = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, c = e ? Symbol.for("react.scope") : 60119;
1471
+ function l(f) {
1472
+ if (typeof f == "object" && f !== null) {
1473
+ var D = f.$$typeof;
1474
+ switch (D) {
1475
+ case t:
1476
+ switch (f = f.type, f) {
1477
+ case a:
1478
+ case d:
1479
+ case o:
1480
+ case n:
1481
+ case i:
1482
+ case m:
1483
+ return f;
1484
+ default:
1485
+ switch (f = f && f.$$typeof, f) {
1486
+ case u:
1487
+ case h:
1488
+ case E:
1489
+ case v:
1490
+ case s:
1491
+ return f;
1492
+ default:
1493
+ return D;
1494
+ }
1495
+ }
1496
+ case r:
1497
+ return D;
1498
+ }
1499
+ }
1500
+ }
1501
+ function p(f) {
1502
+ return l(f) === d;
1503
+ }
1504
+ return G.AsyncMode = a, G.ConcurrentMode = d, G.ContextConsumer = u, G.ContextProvider = s, G.Element = t, G.ForwardRef = h, G.Fragment = o, G.Lazy = E, G.Memo = v, G.Portal = r, G.Profiler = n, G.StrictMode = i, G.Suspense = m, G.isAsyncMode = function(f) {
1505
+ return p(f) || l(f) === a;
1506
+ }, G.isConcurrentMode = p, G.isContextConsumer = function(f) {
1507
+ return l(f) === u;
1508
+ }, G.isContextProvider = function(f) {
1509
+ return l(f) === s;
1510
+ }, G.isElement = function(f) {
1511
+ return typeof f == "object" && f !== null && f.$$typeof === t;
1512
+ }, G.isForwardRef = function(f) {
1513
+ return l(f) === h;
1514
+ }, G.isFragment = function(f) {
1515
+ return l(f) === o;
1516
+ }, G.isLazy = function(f) {
1517
+ return l(f) === E;
1518
+ }, G.isMemo = function(f) {
1519
+ return l(f) === v;
1520
+ }, G.isPortal = function(f) {
1521
+ return l(f) === r;
1522
+ }, G.isProfiler = function(f) {
1523
+ return l(f) === n;
1524
+ }, G.isStrictMode = function(f) {
1525
+ return l(f) === i;
1526
+ }, G.isSuspense = function(f) {
1527
+ return l(f) === m;
1528
+ }, G.isValidElementType = function(f) {
1529
+ return typeof f == "string" || typeof f == "function" || f === o || f === d || f === n || f === i || f === m || f === y || typeof f == "object" && f !== null && (f.$$typeof === E || f.$$typeof === v || f.$$typeof === s || f.$$typeof === u || f.$$typeof === h || f.$$typeof === g || f.$$typeof === w || f.$$typeof === c || f.$$typeof === I);
1530
+ }, G.typeOf = l, G;
1531
+ }
1532
+ var Z = {};
1533
+ /** @license React v16.13.1
1534
+ * react-is.development.js
1535
+ *
1536
+ * Copyright (c) Facebook, Inc. and its affiliates.
1537
+ *
1538
+ * This source code is licensed under the MIT license found in the
1539
+ * LICENSE file in the root directory of this source tree.
1540
+ */
1541
+ var Mn;
1542
+ function Vi() {
1543
+ return Mn || (Mn = 1, process.env.NODE_ENV !== "production" && function() {
1544
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, n = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, I = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, c = e ? Symbol.for("react.scope") : 60119;
1545
+ function l(O) {
1546
+ return typeof O == "string" || typeof O == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1547
+ O === o || O === d || O === n || O === i || O === m || O === y || typeof O == "object" && O !== null && (O.$$typeof === E || O.$$typeof === v || O.$$typeof === s || O.$$typeof === u || O.$$typeof === h || O.$$typeof === g || O.$$typeof === w || O.$$typeof === c || O.$$typeof === I);
1548
+ }
1549
+ function p(O) {
1550
+ if (typeof O == "object" && O !== null) {
1551
+ var ie = O.$$typeof;
1552
+ switch (ie) {
1553
+ case t:
1554
+ var M = O.type;
1555
+ switch (M) {
1556
+ case a:
1557
+ case d:
1558
+ case o:
1559
+ case n:
1560
+ case i:
1561
+ case m:
1562
+ return M;
1563
+ default:
1564
+ var ve = M && M.$$typeof;
1565
+ switch (ve) {
1566
+ case u:
1567
+ case h:
1568
+ case E:
1569
+ case v:
1570
+ case s:
1571
+ return ve;
1572
+ default:
1573
+ return ie;
1574
+ }
1575
+ }
1576
+ case r:
1577
+ return ie;
1578
+ }
1579
+ }
1580
+ }
1581
+ var f = a, D = d, N = u, T = s, L = t, V = h, H = o, q = E, z = v, A = r, te = n, U = i, oe = m, X = !1;
1582
+ function re(O) {
1583
+ return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(O) || p(O) === a;
1584
+ }
1585
+ function _(O) {
1586
+ return p(O) === d;
1587
+ }
1588
+ function S(O) {
1589
+ return p(O) === u;
1590
+ }
1591
+ function R(O) {
1592
+ return p(O) === s;
1593
+ }
1594
+ function C(O) {
1595
+ return typeof O == "object" && O !== null && O.$$typeof === t;
1596
+ }
1597
+ function x(O) {
1598
+ return p(O) === h;
1599
+ }
1600
+ function P(O) {
1601
+ return p(O) === o;
1602
+ }
1603
+ function k(O) {
1604
+ return p(O) === E;
1605
+ }
1606
+ function $(O) {
1607
+ return p(O) === v;
1608
+ }
1609
+ function F(O) {
1610
+ return p(O) === r;
1611
+ }
1612
+ function W(O) {
1613
+ return p(O) === n;
1614
+ }
1615
+ function K(O) {
1616
+ return p(O) === i;
1617
+ }
1618
+ function ee(O) {
1619
+ return p(O) === m;
1620
+ }
1621
+ Z.AsyncMode = f, Z.ConcurrentMode = D, Z.ContextConsumer = N, Z.ContextProvider = T, Z.Element = L, Z.ForwardRef = V, Z.Fragment = H, Z.Lazy = q, Z.Memo = z, Z.Portal = A, Z.Profiler = te, Z.StrictMode = U, Z.Suspense = oe, Z.isAsyncMode = re, Z.isConcurrentMode = _, Z.isContextConsumer = S, Z.isContextProvider = R, Z.isElement = C, Z.isForwardRef = x, Z.isFragment = P, Z.isLazy = k, Z.isMemo = $, Z.isPortal = F, Z.isProfiler = W, Z.isStrictMode = K, Z.isSuspense = ee, Z.isValidElementType = l, Z.typeOf = p;
1622
+ }()), Z;
1623
+ }
1624
+ var Nn;
1625
+ function dr() {
1626
+ return Nn || (Nn = 1, process.env.NODE_ENV === "production" ? it.exports = Ai() : it.exports = Vi()), it.exports;
1627
+ }
1628
+ /*
1629
+ object-assign
1630
+ (c) Sindre Sorhus
1631
+ @license MIT
1632
+ */
1633
+ var At, An;
1634
+ function ki() {
1635
+ if (An) return At;
1636
+ An = 1;
1637
+ var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
1638
+ function o(n) {
1639
+ if (n == null)
1640
+ throw new TypeError("Object.assign cannot be called with null or undefined");
1641
+ return Object(n);
1642
+ }
1643
+ function i() {
1644
+ try {
1645
+ if (!Object.assign)
1646
+ return !1;
1647
+ var n = new String("abc");
1648
+ if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
1649
+ return !1;
1650
+ for (var s = {}, u = 0; u < 10; u++)
1651
+ s["_" + String.fromCharCode(u)] = u;
1652
+ var a = Object.getOwnPropertyNames(s).map(function(h) {
1653
+ return s[h];
1654
+ });
1655
+ if (a.join("") !== "0123456789")
1656
+ return !1;
1657
+ var d = {};
1658
+ return "abcdefghijklmnopqrst".split("").forEach(function(h) {
1659
+ d[h] = h;
1660
+ }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
1661
+ } catch (h) {
1662
+ return !1;
1663
+ }
1664
+ }
1665
+ return At = i() ? Object.assign : function(n, s) {
1666
+ for (var u, a = o(n), d, h = 1; h < arguments.length; h++) {
1667
+ u = Object(arguments[h]);
1668
+ for (var m in u)
1669
+ t.call(u, m) && (a[m] = u[m]);
1670
+ if (e) {
1671
+ d = e(u);
1672
+ for (var y = 0; y < d.length; y++)
1673
+ r.call(u, d[y]) && (a[d[y]] = u[d[y]]);
1674
+ }
1675
+ }
1676
+ return a;
1677
+ }, At;
1678
+ }
1679
+ var Vt, Vn;
1680
+ function Jt() {
1681
+ if (Vn) return Vt;
1682
+ Vn = 1;
1683
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1684
+ return Vt = e, Vt;
1685
+ }
1686
+ var kt, kn;
1687
+ function pr() {
1688
+ return kn || (kn = 1, kt = Function.call.bind(Object.prototype.hasOwnProperty)), kt;
1689
+ }
1690
+ var $t, $n;
1691
+ function $i() {
1692
+ if ($n) return $t;
1693
+ $n = 1;
1694
+ var e = function() {
1695
+ };
1696
+ if (process.env.NODE_ENV !== "production") {
1697
+ var t = /* @__PURE__ */ Jt(), r = {}, o = /* @__PURE__ */ pr();
1698
+ e = function(n) {
1699
+ var s = "Warning: " + n;
1700
+ typeof console != "undefined" && console.error(s);
1701
+ try {
1702
+ throw new Error(s);
1703
+ } catch (u) {
1704
+ }
1705
+ };
1706
+ }
1707
+ function i(n, s, u, a, d) {
1708
+ if (process.env.NODE_ENV !== "production") {
1709
+ for (var h in n)
1710
+ if (o(n, h)) {
1711
+ var m;
1712
+ try {
1713
+ if (typeof n[h] != "function") {
1714
+ var y = Error(
1715
+ (a || "React class") + ": " + u + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1716
+ );
1717
+ throw y.name = "Invariant Violation", y;
1718
+ }
1719
+ m = n[h](s, h, a, u, null, t);
1720
+ } catch (E) {
1721
+ m = E;
1722
+ }
1723
+ if (m && !(m instanceof Error) && e(
1724
+ (a || "React class") + ": type specification of " + u + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1725
+ ), m instanceof Error && !(m.message in r)) {
1726
+ r[m.message] = !0;
1727
+ var v = d ? d() : "";
1728
+ e(
1729
+ "Failed " + u + " type: " + m.message + (v != null ? v : "")
1730
+ );
1731
+ }
1732
+ }
1733
+ }
1734
+ }
1735
+ return i.resetWarningCache = function() {
1736
+ process.env.NODE_ENV !== "production" && (r = {});
1737
+ }, $t = i, $t;
1738
+ }
1739
+ var Ht, Hn;
1740
+ function Hi() {
1741
+ if (Hn) return Ht;
1742
+ Hn = 1;
1743
+ var e = dr(), t = ki(), r = /* @__PURE__ */ Jt(), o = /* @__PURE__ */ pr(), i = /* @__PURE__ */ $i(), n = function() {
1744
+ };
1745
+ process.env.NODE_ENV !== "production" && (n = function(u) {
1746
+ var a = "Warning: " + u;
1747
+ typeof console != "undefined" && console.error(a);
1748
+ try {
1749
+ throw new Error(a);
1750
+ } catch (d) {
1751
+ }
1752
+ });
1753
+ function s() {
1754
+ return null;
1755
+ }
1756
+ return Ht = function(u, a) {
1757
+ var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
1758
+ function m(_) {
1759
+ var S = _ && (d && _[d] || _[h]);
1760
+ if (typeof S == "function")
1761
+ return S;
1762
+ }
1763
+ var y = "<<anonymous>>", v = {
1764
+ array: w("array"),
1765
+ bigint: w("bigint"),
1766
+ bool: w("boolean"),
1767
+ func: w("function"),
1768
+ number: w("number"),
1769
+ object: w("object"),
1770
+ string: w("string"),
1771
+ symbol: w("symbol"),
1772
+ any: c(),
1773
+ arrayOf: l,
1774
+ element: p(),
1775
+ elementType: f(),
1776
+ instanceOf: D,
1777
+ node: V(),
1778
+ objectOf: T,
1779
+ oneOf: N,
1780
+ oneOfType: L,
1781
+ shape: q,
1782
+ exact: z
1783
+ };
1784
+ function E(_, S) {
1785
+ return _ === S ? _ !== 0 || 1 / _ === 1 / S : _ !== _ && S !== S;
1786
+ }
1787
+ function I(_, S) {
1788
+ this.message = _, this.data = S && typeof S == "object" ? S : {}, this.stack = "";
1789
+ }
1790
+ I.prototype = Error.prototype;
1791
+ function g(_) {
1792
+ if (process.env.NODE_ENV !== "production")
1793
+ var S = {}, R = 0;
1794
+ function C(P, k, $, F, W, K, ee) {
1795
+ if (F = F || y, K = K || $, ee !== r) {
1796
+ if (a) {
1797
+ var O = new Error(
1798
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1799
+ );
1800
+ throw O.name = "Invariant Violation", O;
1801
+ } else if (process.env.NODE_ENV !== "production" && typeof console != "undefined") {
1802
+ var ie = F + ":" + $;
1803
+ !S[ie] && // Avoid spamming the console because they are often not actionable except for lib authors
1804
+ R < 3 && (n(
1805
+ "You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1806
+ ), S[ie] = !0, R++);
1807
+ }
1808
+ }
1809
+ return k[$] == null ? P ? k[$] === null ? new I("The " + W + " `" + K + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new I("The " + W + " `" + K + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : _(k, $, F, W, K);
1810
+ }
1811
+ var x = C.bind(null, !1);
1812
+ return x.isRequired = C.bind(null, !0), x;
1813
+ }
1814
+ function w(_) {
1815
+ function S(R, C, x, P, k, $) {
1816
+ var F = R[C], W = U(F);
1817
+ if (W !== _) {
1818
+ var K = oe(F);
1819
+ return new I(
1820
+ "Invalid " + P + " `" + k + "` of type " + ("`" + K + "` supplied to `" + x + "`, expected ") + ("`" + _ + "`."),
1821
+ { expectedType: _ }
1822
+ );
1823
+ }
1824
+ return null;
1825
+ }
1826
+ return g(S);
1827
+ }
1828
+ function c() {
1829
+ return g(s);
1830
+ }
1831
+ function l(_) {
1832
+ function S(R, C, x, P, k) {
1833
+ if (typeof _ != "function")
1834
+ return new I("Property `" + k + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
1835
+ var $ = R[C];
1836
+ if (!Array.isArray($)) {
1837
+ var F = U($);
1838
+ return new I("Invalid " + P + " `" + k + "` of type " + ("`" + F + "` supplied to `" + x + "`, expected an array."));
1839
+ }
1840
+ for (var W = 0; W < $.length; W++) {
1841
+ var K = _($, W, x, P, k + "[" + W + "]", r);
1842
+ if (K instanceof Error)
1843
+ return K;
1844
+ }
1845
+ return null;
1846
+ }
1847
+ return g(S);
1848
+ }
1849
+ function p() {
1850
+ function _(S, R, C, x, P) {
1851
+ var k = S[R];
1852
+ if (!u(k)) {
1853
+ var $ = U(k);
1854
+ return new I("Invalid " + x + " `" + P + "` of type " + ("`" + $ + "` supplied to `" + C + "`, expected a single ReactElement."));
1855
+ }
1856
+ return null;
1857
+ }
1858
+ return g(_);
1859
+ }
1860
+ function f() {
1861
+ function _(S, R, C, x, P) {
1862
+ var k = S[R];
1863
+ if (!e.isValidElementType(k)) {
1864
+ var $ = U(k);
1865
+ return new I("Invalid " + x + " `" + P + "` of type " + ("`" + $ + "` supplied to `" + C + "`, expected a single ReactElement type."));
1866
+ }
1867
+ return null;
1868
+ }
1869
+ return g(_);
1870
+ }
1871
+ function D(_) {
1872
+ function S(R, C, x, P, k) {
1873
+ if (!(R[C] instanceof _)) {
1874
+ var $ = _.name || y, F = re(R[C]);
1875
+ return new I("Invalid " + P + " `" + k + "` of type " + ("`" + F + "` supplied to `" + x + "`, expected ") + ("instance of `" + $ + "`."));
1876
+ }
1877
+ return null;
1878
+ }
1879
+ return g(S);
1880
+ }
1881
+ function N(_) {
1882
+ if (!Array.isArray(_))
1883
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? n(
1884
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1885
+ ) : n("Invalid argument supplied to oneOf, expected an array.")), s;
1886
+ function S(R, C, x, P, k) {
1887
+ for (var $ = R[C], F = 0; F < _.length; F++)
1888
+ if (E($, _[F]))
1889
+ return null;
1890
+ var W = JSON.stringify(_, function(ee, O) {
1891
+ var ie = oe(O);
1892
+ return ie === "symbol" ? String(O) : O;
1893
+ });
1894
+ return new I("Invalid " + P + " `" + k + "` of value `" + String($) + "` " + ("supplied to `" + x + "`, expected one of " + W + "."));
1895
+ }
1896
+ return g(S);
1897
+ }
1898
+ function T(_) {
1899
+ function S(R, C, x, P, k) {
1900
+ if (typeof _ != "function")
1901
+ return new I("Property `" + k + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
1902
+ var $ = R[C], F = U($);
1903
+ if (F !== "object")
1904
+ return new I("Invalid " + P + " `" + k + "` of type " + ("`" + F + "` supplied to `" + x + "`, expected an object."));
1905
+ for (var W in $)
1906
+ if (o($, W)) {
1907
+ var K = _($, W, x, P, k + "." + W, r);
1908
+ if (K instanceof Error)
1909
+ return K;
1910
+ }
1911
+ return null;
1912
+ }
1913
+ return g(S);
1914
+ }
1915
+ function L(_) {
1916
+ if (!Array.isArray(_))
1917
+ return process.env.NODE_ENV !== "production" && n("Invalid argument supplied to oneOfType, expected an instance of array."), s;
1918
+ for (var S = 0; S < _.length; S++) {
1919
+ var R = _[S];
1920
+ if (typeof R != "function")
1921
+ return n(
1922
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(R) + " at index " + S + "."
1923
+ ), s;
1924
+ }
1925
+ function C(x, P, k, $, F) {
1926
+ for (var W = [], K = 0; K < _.length; K++) {
1927
+ var ee = _[K], O = ee(x, P, k, $, F, r);
1928
+ if (O == null)
1929
+ return null;
1930
+ O.data && o(O.data, "expectedType") && W.push(O.data.expectedType);
1931
+ }
1932
+ var ie = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
1933
+ return new I("Invalid " + $ + " `" + F + "` supplied to " + ("`" + k + "`" + ie + "."));
1934
+ }
1935
+ return g(C);
1936
+ }
1937
+ function V() {
1938
+ function _(S, R, C, x, P) {
1939
+ return A(S[R]) ? null : new I("Invalid " + x + " `" + P + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
1940
+ }
1941
+ return g(_);
1942
+ }
1943
+ function H(_, S, R, C, x) {
1944
+ return new I(
1945
+ (_ || "React class") + ": " + S + " type `" + R + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
1946
+ );
1947
+ }
1948
+ function q(_) {
1949
+ function S(R, C, x, P, k) {
1950
+ var $ = R[C], F = U($);
1951
+ if (F !== "object")
1952
+ return new I("Invalid " + P + " `" + k + "` of type `" + F + "` " + ("supplied to `" + x + "`, expected `object`."));
1953
+ for (var W in _) {
1954
+ var K = _[W];
1955
+ if (typeof K != "function")
1956
+ return H(x, P, k, W, oe(K));
1957
+ var ee = K($, W, x, P, k + "." + W, r);
1958
+ if (ee)
1959
+ return ee;
1960
+ }
1961
+ return null;
1962
+ }
1963
+ return g(S);
1964
+ }
1965
+ function z(_) {
1966
+ function S(R, C, x, P, k) {
1967
+ var $ = R[C], F = U($);
1968
+ if (F !== "object")
1969
+ return new I("Invalid " + P + " `" + k + "` of type `" + F + "` " + ("supplied to `" + x + "`, expected `object`."));
1970
+ var W = t({}, R[C], _);
1971
+ for (var K in W) {
1972
+ var ee = _[K];
1973
+ if (o(_, K) && typeof ee != "function")
1974
+ return H(x, P, k, K, oe(ee));
1975
+ if (!ee)
1976
+ return new I(
1977
+ "Invalid " + P + " `" + k + "` key `" + K + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(R[C], null, " ") + `
1978
+ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
1979
+ );
1980
+ var O = ee($, K, x, P, k + "." + K, r);
1981
+ if (O)
1982
+ return O;
1983
+ }
1984
+ return null;
1985
+ }
1986
+ return g(S);
1987
+ }
1988
+ function A(_) {
1989
+ switch (typeof _) {
1990
+ case "number":
1991
+ case "string":
1992
+ case "undefined":
1993
+ return !0;
1994
+ case "boolean":
1995
+ return !_;
1996
+ case "object":
1997
+ if (Array.isArray(_))
1998
+ return _.every(A);
1999
+ if (_ === null || u(_))
2000
+ return !0;
2001
+ var S = m(_);
2002
+ if (S) {
2003
+ var R = S.call(_), C;
2004
+ if (S !== _.entries) {
2005
+ for (; !(C = R.next()).done; )
2006
+ if (!A(C.value))
2007
+ return !1;
2008
+ } else
2009
+ for (; !(C = R.next()).done; ) {
2010
+ var x = C.value;
2011
+ if (x && !A(x[1]))
2012
+ return !1;
2013
+ }
2014
+ } else
2015
+ return !1;
2016
+ return !0;
2017
+ default:
2018
+ return !1;
2019
+ }
2020
+ }
2021
+ function te(_, S) {
2022
+ return _ === "symbol" ? !0 : S ? S["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && S instanceof Symbol : !1;
2023
+ }
2024
+ function U(_) {
2025
+ var S = typeof _;
2026
+ return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : te(S, _) ? "symbol" : S;
2027
+ }
2028
+ function oe(_) {
2029
+ if (typeof _ == "undefined" || _ === null)
2030
+ return "" + _;
2031
+ var S = U(_);
2032
+ if (S === "object") {
2033
+ if (_ instanceof Date)
2034
+ return "date";
2035
+ if (_ instanceof RegExp)
2036
+ return "regexp";
2037
+ }
2038
+ return S;
2039
+ }
2040
+ function X(_) {
2041
+ var S = oe(_);
2042
+ switch (S) {
2043
+ case "array":
2044
+ case "object":
2045
+ return "an " + S;
2046
+ case "boolean":
2047
+ case "date":
2048
+ case "regexp":
2049
+ return "a " + S;
2050
+ default:
2051
+ return S;
2052
+ }
2053
+ }
2054
+ function re(_) {
2055
+ return !_.constructor || !_.constructor.name ? y : _.constructor.name;
2056
+ }
2057
+ return v.checkPropTypes = i, v.resetWarningCache = i.resetWarningCache, v.PropTypes = v, v;
2058
+ }, Ht;
2059
+ }
2060
+ var Lt, Ln;
2061
+ function Li() {
2062
+ if (Ln) return Lt;
2063
+ Ln = 1;
2064
+ var e = /* @__PURE__ */ Jt();
2065
+ function t() {
2066
+ }
2067
+ function r() {
2068
+ }
2069
+ return r.resetWarningCache = t, Lt = function() {
2070
+ function o(s, u, a, d, h, m) {
2071
+ if (m !== e) {
2072
+ var y = new Error(
2073
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2074
+ );
2075
+ throw y.name = "Invariant Violation", y;
2076
+ }
2077
+ }
2078
+ o.isRequired = o;
2079
+ function i() {
2080
+ return o;
2081
+ }
2082
+ var n = {
2083
+ array: o,
2084
+ bigint: o,
2085
+ bool: o,
2086
+ func: o,
2087
+ number: o,
2088
+ object: o,
2089
+ string: o,
2090
+ symbol: o,
2091
+ any: o,
2092
+ arrayOf: i,
2093
+ element: o,
2094
+ elementType: o,
2095
+ instanceOf: i,
2096
+ node: o,
2097
+ objectOf: i,
2098
+ oneOf: i,
2099
+ oneOfType: i,
2100
+ shape: i,
2101
+ exact: i,
2102
+ checkPropTypes: r,
2103
+ resetWarningCache: t
2104
+ };
2105
+ return n.PropTypes = n, n;
2106
+ }, Lt;
2107
+ }
2108
+ var Fn;
2109
+ function Fi() {
2110
+ if (Fn) return ot.exports;
2111
+ if (Fn = 1, process.env.NODE_ENV !== "production") {
2112
+ var e = dr(), t = !0;
2113
+ ot.exports = /* @__PURE__ */ Hi()(e.isElement, t);
2114
+ } else
2115
+ ot.exports = /* @__PURE__ */ Li()();
2116
+ return ot.exports;
2117
+ }
2118
+ var Ki = /* @__PURE__ */ Fi();
2119
+ const b = /* @__PURE__ */ uo(Ki);
2120
+ var st = { exports: {} }, J = {};
2121
+ /**
2122
+ * @license React
2123
+ * react-is.production.min.js
2124
+ *
2125
+ * Copyright (c) Facebook, Inc. and its affiliates.
2126
+ *
2127
+ * This source code is licensed under the MIT license found in the
2128
+ * LICENSE file in the root directory of this source tree.
2129
+ */
2130
+ var Kn;
2131
+ function ji() {
2132
+ if (Kn) return J;
2133
+ Kn = 1;
2134
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), n = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"), a = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), E;
2135
+ E = Symbol.for("react.module.reference");
2136
+ function I(g) {
2137
+ if (typeof g == "object" && g !== null) {
2138
+ var w = g.$$typeof;
2139
+ switch (w) {
2140
+ case e:
2141
+ switch (g = g.type, g) {
2142
+ case r:
2143
+ case i:
2144
+ case o:
2145
+ case d:
2146
+ case h:
2147
+ return g;
2148
+ default:
2149
+ switch (g = g && g.$$typeof, g) {
2150
+ case u:
2151
+ case s:
2152
+ case a:
2153
+ case y:
2154
+ case m:
2155
+ case n:
2156
+ return g;
2157
+ default:
2158
+ return w;
2159
+ }
2160
+ }
2161
+ case t:
2162
+ return w;
2163
+ }
2164
+ }
2165
+ }
2166
+ return J.ContextConsumer = s, J.ContextProvider = n, J.Element = e, J.ForwardRef = a, J.Fragment = r, J.Lazy = y, J.Memo = m, J.Portal = t, J.Profiler = i, J.StrictMode = o, J.Suspense = d, J.SuspenseList = h, J.isAsyncMode = function() {
2167
+ return !1;
2168
+ }, J.isConcurrentMode = function() {
2169
+ return !1;
2170
+ }, J.isContextConsumer = function(g) {
2171
+ return I(g) === s;
2172
+ }, J.isContextProvider = function(g) {
2173
+ return I(g) === n;
2174
+ }, J.isElement = function(g) {
2175
+ return typeof g == "object" && g !== null && g.$$typeof === e;
2176
+ }, J.isForwardRef = function(g) {
2177
+ return I(g) === a;
2178
+ }, J.isFragment = function(g) {
2179
+ return I(g) === r;
2180
+ }, J.isLazy = function(g) {
2181
+ return I(g) === y;
2182
+ }, J.isMemo = function(g) {
2183
+ return I(g) === m;
2184
+ }, J.isPortal = function(g) {
2185
+ return I(g) === t;
2186
+ }, J.isProfiler = function(g) {
2187
+ return I(g) === i;
2188
+ }, J.isStrictMode = function(g) {
2189
+ return I(g) === o;
2190
+ }, J.isSuspense = function(g) {
2191
+ return I(g) === d;
2192
+ }, J.isSuspenseList = function(g) {
2193
+ return I(g) === h;
2194
+ }, J.isValidElementType = function(g) {
2195
+ return typeof g == "string" || typeof g == "function" || g === r || g === i || g === o || g === d || g === h || g === v || typeof g == "object" && g !== null && (g.$$typeof === y || g.$$typeof === m || g.$$typeof === n || g.$$typeof === s || g.$$typeof === a || g.$$typeof === E || g.getModuleId !== void 0);
2196
+ }, J.typeOf = I, J;
2197
+ }
2198
+ var Q = {};
2199
+ /**
2200
+ * @license React
2201
+ * react-is.development.js
2202
+ *
2203
+ * Copyright (c) Facebook, Inc. and its affiliates.
2204
+ *
2205
+ * This source code is licensed under the MIT license found in the
2206
+ * LICENSE file in the root directory of this source tree.
2207
+ */
2208
+ var jn;
2209
+ function Bi() {
2210
+ return jn || (jn = 1, process.env.NODE_ENV !== "production" && function() {
2211
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), n = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"), a = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), E = !1, I = !1, g = !1, w = !1, c = !1, l;
2212
+ l = Symbol.for("react.module.reference");
2213
+ function p(M) {
2214
+ return !!(typeof M == "string" || typeof M == "function" || M === r || M === i || c || M === o || M === d || M === h || w || M === v || E || I || g || typeof M == "object" && M !== null && (M.$$typeof === y || M.$$typeof === m || M.$$typeof === n || M.$$typeof === s || M.$$typeof === a || // This needs to include all possible module reference object
2215
+ // types supported by any Flight configuration anywhere since
2216
+ // we don't know which Flight build this will end up being used
2217
+ // with.
2218
+ M.$$typeof === l || M.getModuleId !== void 0));
2219
+ }
2220
+ function f(M) {
2221
+ if (typeof M == "object" && M !== null) {
2222
+ var ve = M.$$typeof;
2223
+ switch (ve) {
2224
+ case e:
2225
+ var ye = M.type;
2226
+ switch (ye) {
2227
+ case r:
2228
+ case i:
2229
+ case o:
2230
+ case d:
2231
+ case h:
2232
+ return ye;
2233
+ default:
2234
+ var Me = ye && ye.$$typeof;
2235
+ switch (Me) {
2236
+ case u:
2237
+ case s:
2238
+ case a:
2239
+ case y:
2240
+ case m:
2241
+ case n:
2242
+ return Me;
2243
+ default:
2244
+ return ve;
2245
+ }
2246
+ }
2247
+ case t:
2248
+ return ve;
2249
+ }
2250
+ }
2251
+ }
2252
+ var D = s, N = n, T = e, L = a, V = r, H = y, q = m, z = t, A = i, te = o, U = d, oe = h, X = !1, re = !1;
2253
+ function _(M) {
2254
+ return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
2255
+ }
2256
+ function S(M) {
2257
+ return re || (re = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
2258
+ }
2259
+ function R(M) {
2260
+ return f(M) === s;
2261
+ }
2262
+ function C(M) {
2263
+ return f(M) === n;
2264
+ }
2265
+ function x(M) {
2266
+ return typeof M == "object" && M !== null && M.$$typeof === e;
2267
+ }
2268
+ function P(M) {
2269
+ return f(M) === a;
2270
+ }
2271
+ function k(M) {
2272
+ return f(M) === r;
2273
+ }
2274
+ function $(M) {
2275
+ return f(M) === y;
2276
+ }
2277
+ function F(M) {
2278
+ return f(M) === m;
2279
+ }
2280
+ function W(M) {
2281
+ return f(M) === t;
2282
+ }
2283
+ function K(M) {
2284
+ return f(M) === i;
2285
+ }
2286
+ function ee(M) {
2287
+ return f(M) === o;
2288
+ }
2289
+ function O(M) {
2290
+ return f(M) === d;
2291
+ }
2292
+ function ie(M) {
2293
+ return f(M) === h;
2294
+ }
2295
+ Q.ContextConsumer = D, Q.ContextProvider = N, Q.Element = T, Q.ForwardRef = L, Q.Fragment = V, Q.Lazy = H, Q.Memo = q, Q.Portal = z, Q.Profiler = A, Q.StrictMode = te, Q.Suspense = U, Q.SuspenseList = oe, Q.isAsyncMode = _, Q.isConcurrentMode = S, Q.isContextConsumer = R, Q.isContextProvider = C, Q.isElement = x, Q.isForwardRef = P, Q.isFragment = k, Q.isLazy = $, Q.isMemo = F, Q.isPortal = W, Q.isProfiler = K, Q.isStrictMode = ee, Q.isSuspense = O, Q.isSuspenseList = ie, Q.isValidElementType = p, Q.typeOf = f;
2296
+ }()), Q;
2297
+ }
2298
+ var Bn;
2299
+ function Wi() {
2300
+ return Bn || (Bn = 1, process.env.NODE_ENV === "production" ? st.exports = ji() : st.exports = Bi()), st.exports;
2301
+ }
2302
+ var Wn = Wi();
2303
+ const qn = (e) => typeof e == "object" && e != null && e.nodeType === 1, Yn = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", ut = (e, t) => {
2304
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
2305
+ const r = getComputedStyle(e, null);
2306
+ return Yn(r.overflowY, t) || Yn(r.overflowX, t) || ((o) => {
2307
+ const i = ((n) => {
2308
+ if (!n.ownerDocument || !n.ownerDocument.defaultView) return null;
2309
+ try {
2310
+ return n.ownerDocument.defaultView.frameElement;
2311
+ } catch (s) {
2312
+ return null;
2313
+ }
2314
+ })(o);
2315
+ return !!i && (i.clientHeight < o.scrollHeight || i.clientWidth < o.scrollWidth);
2316
+ })(e);
2317
+ }
2318
+ return !1;
2319
+ }, at = (e, t, r, o, i, n, s, u) => n < e && s > t || n > e && s < t ? 0 : n <= e && u <= r || s >= t && u >= r ? n - e - o : s > t && u < r || n < e && u > r ? s - t + i : 0, qi = (e) => {
2320
+ const t = e.parentElement;
2321
+ return t == null ? e.getRootNode().host || null : t;
2322
+ }, Yi = (e, t) => {
2323
+ var r, o, i, n;
2324
+ if (typeof document == "undefined") return [];
2325
+ const { inline: s, boundary: u, skipOverflowHiddenElements: a } = t, d = typeof u == "function" ? u : (z) => z !== u;
2326
+ if (!qn(e)) throw new TypeError("Invalid target");
2327
+ const h = document.scrollingElement || document.documentElement, m = [];
2328
+ let y = e;
2329
+ for (; qn(y) && d(y); ) {
2330
+ if (y = qi(y), y === h) {
2331
+ m.push(y);
2332
+ break;
2333
+ }
2334
+ y != null && y === document.body && ut(y) && !ut(document.documentElement) || y != null && ut(y, a) && m.push(y);
2335
+ }
2336
+ const v = (o = (r = window.visualViewport) == null ? void 0 : r.width) != null ? o : innerWidth, E = (n = (i = window.visualViewport) == null ? void 0 : i.height) != null ? n : innerHeight, { scrollX: I, scrollY: g } = window, { height: w, width: c, top: l, right: p, bottom: f, left: D } = e.getBoundingClientRect(), { top: N, right: T, left: L } = ((z) => {
2337
+ const A = window.getComputedStyle(z);
2338
+ return { top: parseFloat(A.scrollMarginTop) || 0, right: parseFloat(A.scrollMarginRight) || 0, bottom: parseFloat(A.scrollMarginBottom) || 0, left: parseFloat(A.scrollMarginLeft) || 0 };
2339
+ })(e);
2340
+ let V = l - N, H = s === "center" ? D + c / 2 - L + T : s === "end" ? p + T : D - L;
2341
+ const q = [];
2342
+ for (let z = 0; z < m.length; z++) {
2343
+ const A = m[z], { height: te, width: U, top: oe, right: X, bottom: re, left: _ } = A.getBoundingClientRect();
2344
+ if (l >= 0 && D >= 0 && f <= E && p <= v && (A === h && !ut(A) || l >= oe && f <= re && D >= _ && p <= X)) return q;
2345
+ const S = getComputedStyle(A), R = parseInt(S.borderLeftWidth, 10), C = parseInt(S.borderTopWidth, 10), x = parseInt(S.borderRightWidth, 10), P = parseInt(S.borderBottomWidth, 10);
2346
+ let k = 0, $ = 0;
2347
+ const F = "offsetWidth" in A ? A.offsetWidth - A.clientWidth - R - x : 0, W = "offsetHeight" in A ? A.offsetHeight - A.clientHeight - C - P : 0, K = "offsetWidth" in A ? A.offsetWidth === 0 ? 0 : U / A.offsetWidth : 0, ee = "offsetHeight" in A ? A.offsetHeight === 0 ? 0 : te / A.offsetHeight : 0;
2348
+ if (h === A) k = at(g, g + E, E, C, P, g + V, g + V + w, w), $ = s === "start" ? H : s === "center" ? H - v / 2 : s === "end" ? H - v : at(I, I + v, v, R, x, I + H, I + H + c, c), k = Math.max(0, k + g), $ = Math.max(0, $ + I);
2349
+ else {
2350
+ k = at(oe, re, te, C, P + W, V, V + w, w), $ = s === "start" ? H - _ - R : s === "center" ? H - (_ + U / 2) + F / 2 : s === "end" ? H - X + x + F : at(_, X, U, R, x + F, H, H + c, c);
2351
+ const { scrollLeft: O, scrollTop: ie } = A;
2352
+ k = ee === 0 ? 0 : Math.max(0, Math.min(ie + k / ee, A.scrollHeight - te / ee + W)), $ = K === 0 ? 0 : Math.max(0, Math.min(O + $ / K, A.scrollWidth - U / K + F)), V += ie - k, H += O - $;
2353
+ }
2354
+ q.push({ el: A, top: k, left: $ });
2355
+ }
2356
+ return q;
2357
+ };
2358
+ var Ui = 0;
2359
+ function Un(e) {
2360
+ return typeof e == "function" ? e : fe;
2361
+ }
2362
+ function fe() {
2363
+ }
2364
+ function gr(e, t) {
2365
+ if (e) {
2366
+ var r = Yi(e, {
2367
+ boundary: t
2368
+ });
2369
+ r.forEach(function(o) {
2370
+ var i = o.el, n = o.top, s = o.left;
2371
+ i.scrollTop = n, i.scrollLeft = s;
2372
+ });
2373
+ }
2374
+ }
2375
+ function zn(e, t, r) {
2376
+ var o = e === t || t instanceof r.Node && e.contains && e.contains(t);
2377
+ return o;
2378
+ }
2379
+ function Qt(e, t) {
2380
+ var r;
2381
+ function o() {
2382
+ r && clearTimeout(r);
2383
+ }
2384
+ function i() {
2385
+ for (var n = arguments.length, s = new Array(n), u = 0; u < n; u++)
2386
+ s[u] = arguments[u];
2387
+ o(), r = setTimeout(function() {
2388
+ r = null, e.apply(void 0, s);
2389
+ }, t);
2390
+ }
2391
+ return i.cancel = o, i;
2392
+ }
2393
+ function ue() {
2394
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
2395
+ t[r] = arguments[r];
2396
+ return function(o) {
2397
+ for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), s = 1; s < i; s++)
2398
+ n[s - 1] = arguments[s];
2399
+ return t.some(function(u) {
2400
+ return u && u.apply(void 0, [o].concat(n)), o.preventDownshiftDefault || o.hasOwnProperty("nativeEvent") && o.nativeEvent.preventDownshiftDefault;
2401
+ });
2402
+ };
2403
+ }
2404
+ function $e() {
2405
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
2406
+ t[r] = arguments[r];
2407
+ return function(o) {
2408
+ t.forEach(function(i) {
2409
+ typeof i == "function" ? i(o) : i && (i.current = o);
2410
+ });
2411
+ };
2412
+ }
2413
+ function hr() {
2414
+ return String(Ui++);
2415
+ }
2416
+ function zi(e) {
2417
+ var t = e.isOpen, r = e.resultCount, o = e.previousResultCount;
2418
+ return t ? r ? r !== o ? r + " result" + (r === 1 ? " is" : "s are") + " available, use up and down arrow keys to navigate. Press Enter key to select." : "" : "No results are available." : "";
2419
+ }
2420
+ function Xn(e, t) {
2421
+ return e = Array.isArray(e) ? (
2422
+ /* istanbul ignore next (preact) */
2423
+ e[0]
2424
+ ) : e, !e && t ? t : e;
2425
+ }
2426
+ function mr(e) {
2427
+ return typeof e.type == "string";
2428
+ }
2429
+ function vr(e) {
2430
+ return e.props;
2431
+ }
2432
+ function Xi(e, t) {
2433
+ console.error('The property "' + t + '" is required in "' + e + '"');
2434
+ }
2435
+ var Gi = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
2436
+ function ct(e) {
2437
+ e === void 0 && (e = {});
2438
+ var t = {};
2439
+ return Gi.forEach(function(r) {
2440
+ e.hasOwnProperty(r) && (t[r] = e[r]);
2441
+ }), t;
2442
+ }
2443
+ function Et(e, t) {
2444
+ return !e || !t ? e : Object.keys(e).reduce(function(r, o) {
2445
+ return r[o] = wt(t, o) ? t[o] : e[o], r;
2446
+ }, {});
2447
+ }
2448
+ function wt(e, t) {
2449
+ return e[t] !== void 0;
2450
+ }
2451
+ function Wt(e) {
2452
+ var t = e.key, r = e.keyCode;
2453
+ return r >= 37 && r <= 40 && t.indexOf("Arrow") !== 0 ? "Arrow" + t : t;
2454
+ }
2455
+ function Zi(e) {
2456
+ return Object.prototype.toString.call(e) === "[object Object]";
2457
+ }
2458
+ function Ae(e, t, r, o, i) {
2459
+ var n = r.length;
2460
+ if (n === 0)
2461
+ return -1;
2462
+ var s = n - 1;
2463
+ (typeof e != "number" || e < 0 || e > s) && (e = t > 0 ? -1 : s + 1);
2464
+ var u = e + t;
2465
+ u < 0 ? u = s : u > s && (u = 0);
2466
+ var a = je(u, t < 0, r, o, i);
2467
+ return a === -1 ? e >= n ? -1 : e : a;
2468
+ }
2469
+ function je(e, t, r, o, i) {
2470
+ i === void 0 && (i = !1);
2471
+ var n = r.length;
2472
+ if (t) {
2473
+ for (var s = e; s >= 0; s--)
2474
+ if (!o(r[s], s))
2475
+ return s;
2476
+ } else
2477
+ for (var u = e; u < n; u++)
2478
+ if (!o(r[u], u))
2479
+ return u;
2480
+ return i ? je(t ? n - 1 : 0, t, r, o) : -1;
2481
+ }
2482
+ function bt(e, t, r, o) {
2483
+ return o === void 0 && (o = !0), r && t.some(function(i) {
2484
+ return i && (zn(i, e, r) || o && zn(i, r.document.activeElement, r));
2485
+ });
2486
+ }
2487
+ var en = fe;
2488
+ process.env.NODE_ENV !== "production" && (en = function(t, r, o) {
2489
+ var i = "This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";
2490
+ Object.keys(t).forEach(function(n) {
2491
+ r[n] !== void 0 && o[n] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + n + '" to be uncontrolled. ' + i) : r[n] === void 0 && o[n] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + n + '" to be controlled. ' + i);
2492
+ });
2493
+ });
2494
+ var Ji = Qt(function(e) {
2495
+ yr(e).textContent = "";
2496
+ }, 500);
2497
+ function yr(e) {
2498
+ var t = e.getElementById("a11y-status-message");
2499
+ return t || (t = e.createElement("div"), t.setAttribute("id", "a11y-status-message"), t.setAttribute("role", "status"), t.setAttribute("aria-live", "polite"), t.setAttribute("aria-relevant", "additions text"), Object.assign(t.style, {
2500
+ border: "0",
2501
+ clip: "rect(0 0 0 0)",
2502
+ height: "1px",
2503
+ margin: "-1px",
2504
+ overflow: "hidden",
2505
+ padding: "0",
2506
+ position: "absolute",
2507
+ width: "1px"
2508
+ }), e.body.appendChild(t), t);
2509
+ }
2510
+ function _r(e, t) {
2511
+ if (!(!e || !t)) {
2512
+ var r = yr(t);
2513
+ r.textContent = e, Ji(t);
2514
+ }
2515
+ }
2516
+ function Qi(e) {
2517
+ var t = e == null ? void 0 : e.getElementById("a11y-status-message");
2518
+ t && t.remove();
2519
+ }
2520
+ var Ir = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Er = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, wr = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, ft = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, dt = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, br = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, xr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, Or = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, Cr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, Sr = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, Rr = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Dr = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Tr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, qt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Pr = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, Mr = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, Nr = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, es = /* @__PURE__ */ Object.freeze({
2521
+ __proto__: null,
2522
+ blurButton: Pr,
2523
+ blurInput: Rr,
2524
+ changeInput: Dr,
2525
+ clickButton: qt,
2526
+ clickItem: Sr,
2527
+ controlledPropUpdatedSelectedItem: Mr,
2528
+ itemMouseEnter: wr,
2529
+ keyDownArrowDown: dt,
2530
+ keyDownArrowUp: ft,
2531
+ keyDownEnd: Cr,
2532
+ keyDownEnter: xr,
2533
+ keyDownEscape: br,
2534
+ keyDownHome: Or,
2535
+ keyDownSpaceButton: Tr,
2536
+ mouseUp: Er,
2537
+ touchEnd: Nr,
2538
+ unknown: Ir
2539
+ }), ts = ["refKey", "ref"], ns = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], rs = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], os = ["refKey", "ref"], is = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], ss = /* @__PURE__ */ function() {
2540
+ var e = /* @__PURE__ */ function(t) {
2541
+ function r(i) {
2542
+ var n;
2543
+ n = t.call(this, i) || this, n.id = n.props.id || "downshift-" + hr(), n.menuId = n.props.menuId || n.id + "-menu", n.labelId = n.props.labelId || n.id + "-label", n.inputId = n.props.inputId || n.id + "-input", n.getItemId = n.props.getItemId || function(c) {
2544
+ return n.id + "-item-" + c;
2545
+ }, n.items = [], n.itemCount = null, n.previousResultCount = 0, n.timeoutIds = [], n.internalSetTimeout = function(c, l) {
2546
+ var p = setTimeout(function() {
2547
+ n.timeoutIds = n.timeoutIds.filter(function(f) {
2548
+ return f !== p;
2549
+ }), c();
2550
+ }, l);
2551
+ n.timeoutIds.push(p);
2552
+ }, n.setItemCount = function(c) {
2553
+ n.itemCount = c;
2554
+ }, n.unsetItemCount = function() {
2555
+ n.itemCount = null;
2556
+ }, n.isItemDisabled = function(c, l) {
2557
+ var p = n.getItemNodeFromIndex(l);
2558
+ return p && p.hasAttribute("disabled");
2559
+ }, n.setHighlightedIndex = function(c, l) {
2560
+ c === void 0 && (c = n.props.defaultHighlightedIndex), l === void 0 && (l = {}), l = ct(l), n.internalSetState(Y({
2561
+ highlightedIndex: c
2562
+ }, l));
2563
+ }, n.clearSelection = function(c) {
2564
+ n.internalSetState({
2565
+ selectedItem: null,
2566
+ inputValue: "",
2567
+ highlightedIndex: n.props.defaultHighlightedIndex,
2568
+ isOpen: n.props.defaultIsOpen
2569
+ }, c);
2570
+ }, n.selectItem = function(c, l, p) {
2571
+ l = ct(l), n.internalSetState(Y({
2572
+ isOpen: n.props.defaultIsOpen,
2573
+ highlightedIndex: n.props.defaultHighlightedIndex,
2574
+ selectedItem: c,
2575
+ inputValue: n.props.itemToString(c)
2576
+ }, l), p);
2577
+ }, n.selectItemAtIndex = function(c, l, p) {
2578
+ var f = n.items[c];
2579
+ f != null && n.selectItem(f, l, p);
2580
+ }, n.selectHighlightedItem = function(c, l) {
2581
+ return n.selectItemAtIndex(n.getState().highlightedIndex, c, l);
2582
+ }, n.internalSetState = function(c, l) {
2583
+ var p, f, D = {}, N = typeof c == "function";
2584
+ return !N && c.hasOwnProperty("inputValue") && n.props.onInputValueChange(c.inputValue, Y({}, n.getStateAndHelpers(), c)), n.setState(function(T) {
2585
+ var L;
2586
+ T = n.getState(T);
2587
+ var V = N ? c(T) : c;
2588
+ V = n.props.stateReducer(T, V), p = V.hasOwnProperty("selectedItem");
2589
+ var H = {};
2590
+ return p && V.selectedItem !== T.selectedItem && (f = V.selectedItem), (L = V).type || (L.type = Ir), Object.keys(V).forEach(function(q) {
2591
+ T[q] !== V[q] && (D[q] = V[q]), q !== "type" && (V[q], wt(n.props, q) || (H[q] = V[q]));
2592
+ }), N && V.hasOwnProperty("inputValue") && n.props.onInputValueChange(V.inputValue, Y({}, n.getStateAndHelpers(), V)), H;
2593
+ }, function() {
2594
+ Un(l)();
2595
+ var T = Object.keys(D).length > 1;
2596
+ T && n.props.onStateChange(D, n.getStateAndHelpers()), p && n.props.onSelect(c.selectedItem, n.getStateAndHelpers()), f !== void 0 && n.props.onChange(f, n.getStateAndHelpers()), n.props.onUserAction(D, n.getStateAndHelpers());
2597
+ });
2598
+ }, n.rootRef = function(c) {
2599
+ return n._rootNode = c;
2600
+ }, n.getRootProps = function(c, l) {
2601
+ var p, f = c === void 0 ? {} : c, D = f.refKey, N = D === void 0 ? "ref" : D, T = f.ref, L = Oe(f, ts), V = l === void 0 ? {} : l, H = V.suppressRefError, q = H === void 0 ? !1 : H;
2602
+ n.getRootProps.called = !0, n.getRootProps.refKey = N, n.getRootProps.suppressRefError = q;
2603
+ var z = n.getState(), A = z.isOpen;
2604
+ return Y((p = {}, p[N] = $e(T, n.rootRef), p.role = "combobox", p["aria-expanded"] = A, p["aria-haspopup"] = "listbox", p["aria-owns"] = A ? n.menuId : void 0, p["aria-labelledby"] = n.labelId, p), L);
2605
+ }, n.keyDownHandlers = {
2606
+ ArrowDown: function(l) {
2607
+ var p = this;
2608
+ if (l.preventDefault(), this.getState().isOpen) {
2609
+ var f = l.shiftKey ? 5 : 1;
2610
+ this.moveHighlightedIndex(f, {
2611
+ type: dt
2612
+ });
2613
+ } else
2614
+ this.internalSetState({
2615
+ isOpen: !0,
2616
+ type: dt
2617
+ }, function() {
2618
+ var D = p.getItemCount();
2619
+ if (D > 0) {
2620
+ var N = p.getState(), T = N.highlightedIndex, L = Ae(T, 1, {
2621
+ length: D
2622
+ }, p.isItemDisabled, !0);
2623
+ p.setHighlightedIndex(L, {
2624
+ type: dt
2625
+ });
2626
+ }
2627
+ });
2628
+ },
2629
+ ArrowUp: function(l) {
2630
+ var p = this;
2631
+ if (l.preventDefault(), this.getState().isOpen) {
2632
+ var f = l.shiftKey ? -5 : -1;
2633
+ this.moveHighlightedIndex(f, {
2634
+ type: ft
2635
+ });
2636
+ } else
2637
+ this.internalSetState({
2638
+ isOpen: !0,
2639
+ type: ft
2640
+ }, function() {
2641
+ var D = p.getItemCount();
2642
+ if (D > 0) {
2643
+ var N = p.getState(), T = N.highlightedIndex, L = Ae(T, -1, {
2644
+ length: D
2645
+ }, p.isItemDisabled, !0);
2646
+ p.setHighlightedIndex(L, {
2647
+ type: ft
2648
+ });
2649
+ }
2650
+ });
2651
+ },
2652
+ Enter: function(l) {
2653
+ if (l.which !== 229) {
2654
+ var p = this.getState(), f = p.isOpen, D = p.highlightedIndex;
2655
+ if (f && D != null) {
2656
+ l.preventDefault();
2657
+ var N = this.items[D], T = this.getItemNodeFromIndex(D);
2658
+ if (N == null || T && T.hasAttribute("disabled"))
2659
+ return;
2660
+ this.selectHighlightedItem({
2661
+ type: xr
2662
+ });
2663
+ }
2664
+ }
2665
+ },
2666
+ Escape: function(l) {
2667
+ l.preventDefault(), this.reset(Y({
2668
+ type: br
2669
+ }, !this.state.isOpen && {
2670
+ selectedItem: null,
2671
+ inputValue: ""
2672
+ }));
2673
+ }
2674
+ }, n.buttonKeyDownHandlers = Y({}, n.keyDownHandlers, {
2675
+ " ": function(l) {
2676
+ l.preventDefault(), this.toggleMenu({
2677
+ type: Tr
2678
+ });
2679
+ }
2680
+ }), n.inputKeyDownHandlers = Y({}, n.keyDownHandlers, {
2681
+ Home: function(l) {
2682
+ var p = this.getState(), f = p.isOpen;
2683
+ if (f) {
2684
+ l.preventDefault();
2685
+ var D = this.getItemCount();
2686
+ if (!(D <= 0 || !f)) {
2687
+ var N = je(0, !1, {
2688
+ length: D
2689
+ }, this.isItemDisabled);
2690
+ this.setHighlightedIndex(N, {
2691
+ type: Or
2692
+ });
2693
+ }
2694
+ }
2695
+ },
2696
+ End: function(l) {
2697
+ var p = this.getState(), f = p.isOpen;
2698
+ if (f) {
2699
+ l.preventDefault();
2700
+ var D = this.getItemCount();
2701
+ if (!(D <= 0 || !f)) {
2702
+ var N = je(D - 1, !0, {
2703
+ length: D
2704
+ }, this.isItemDisabled);
2705
+ this.setHighlightedIndex(N, {
2706
+ type: Cr
2707
+ });
2708
+ }
2709
+ }
2710
+ }
2711
+ }), n.getToggleButtonProps = function(c) {
2712
+ var l = c === void 0 ? {} : c, p = l.onClick;
2713
+ l.onPress;
2714
+ var f = l.onKeyDown, D = l.onKeyUp, N = l.onBlur, T = Oe(l, ns), L = n.getState(), V = L.isOpen, H = {
2715
+ onClick: ue(p, n.buttonHandleClick),
2716
+ onKeyDown: ue(f, n.buttonHandleKeyDown),
2717
+ onKeyUp: ue(D, n.buttonHandleKeyUp),
2718
+ onBlur: ue(N, n.buttonHandleBlur)
2719
+ }, q = T.disabled ? {} : H;
2720
+ return Y({
2721
+ type: "button",
2722
+ role: "button",
2723
+ "aria-label": V ? "close menu" : "open menu",
2724
+ "aria-haspopup": !0,
2725
+ "data-toggle": !0
2726
+ }, q, T);
2727
+ }, n.buttonHandleKeyUp = function(c) {
2728
+ c.preventDefault();
2729
+ }, n.buttonHandleKeyDown = function(c) {
2730
+ var l = Wt(c);
2731
+ n.buttonKeyDownHandlers[l] && n.buttonKeyDownHandlers[l].call(n, c);
2732
+ }, n.buttonHandleClick = function(c) {
2733
+ if (c.preventDefault(), n.props.environment) {
2734
+ var l = n.props.environment.document, p = l.body, f = l.activeElement;
2735
+ p && p === f && c.target.focus();
2736
+ }
2737
+ process.env.NODE_ENV === "test" ? n.toggleMenu({
2738
+ type: qt
2739
+ }) : n.internalSetTimeout(function() {
2740
+ return n.toggleMenu({
2741
+ type: qt
2742
+ });
2743
+ });
2744
+ }, n.buttonHandleBlur = function(c) {
2745
+ var l = c.target;
2746
+ n.internalSetTimeout(function() {
2747
+ if (!(n.isMouseDown || !n.props.environment)) {
2748
+ var p = n.props.environment.document.activeElement;
2749
+ (p == null || p.id !== n.inputId) && p !== l && n.reset({
2750
+ type: Pr
2751
+ });
2752
+ }
2753
+ });
2754
+ }, n.getLabelProps = function(c) {
2755
+ return Y({
2756
+ htmlFor: n.inputId,
2757
+ id: n.labelId
2758
+ }, c);
2759
+ }, n.getInputProps = function(c) {
2760
+ var l = c === void 0 ? {} : c, p = l.onKeyDown, f = l.onBlur, D = l.onChange, N = l.onInput;
2761
+ l.onChangeText;
2762
+ var T = Oe(l, rs), L, V = {};
2763
+ L = "onChange";
2764
+ var H = n.getState(), q = H.inputValue, z = H.isOpen, A = H.highlightedIndex;
2765
+ if (!T.disabled) {
2766
+ var te;
2767
+ V = (te = {}, te[L] = ue(D, N, n.inputHandleChange), te.onKeyDown = ue(p, n.inputHandleKeyDown), te.onBlur = ue(f, n.inputHandleBlur), te);
2768
+ }
2769
+ return Y({
2770
+ "aria-autocomplete": "list",
2771
+ "aria-activedescendant": z && typeof A == "number" && A >= 0 ? n.getItemId(A) : void 0,
2772
+ "aria-controls": z ? n.menuId : void 0,
2773
+ "aria-labelledby": T && T["aria-label"] ? void 0 : n.labelId,
2774
+ // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
2775
+ // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
2776
+ autoComplete: "off",
2777
+ value: q,
2778
+ id: n.inputId
2779
+ }, V, T);
2780
+ }, n.inputHandleKeyDown = function(c) {
2781
+ var l = Wt(c);
2782
+ l && n.inputKeyDownHandlers[l] && n.inputKeyDownHandlers[l].call(n, c);
2783
+ }, n.inputHandleChange = function(c) {
2784
+ n.internalSetState({
2785
+ type: Dr,
2786
+ isOpen: !0,
2787
+ inputValue: c.target.value,
2788
+ highlightedIndex: n.props.defaultHighlightedIndex
2789
+ });
2790
+ }, n.inputHandleBlur = function() {
2791
+ n.internalSetTimeout(function() {
2792
+ var c;
2793
+ if (!(n.isMouseDown || !n.props.environment)) {
2794
+ var l = n.props.environment.document.activeElement, p = (l == null || (c = l.dataset) == null ? void 0 : c.toggle) && n._rootNode && n._rootNode.contains(l);
2795
+ p || n.reset({
2796
+ type: Rr
2797
+ });
2798
+ }
2799
+ });
2800
+ }, n.menuRef = function(c) {
2801
+ n._menuNode = c;
2802
+ }, n.getMenuProps = function(c, l) {
2803
+ var p, f = c === void 0 ? {} : c, D = f.refKey, N = D === void 0 ? "ref" : D, T = f.ref, L = Oe(f, os), V = l === void 0 ? {} : l, H = V.suppressRefError, q = H === void 0 ? !1 : H;
2804
+ return n.getMenuProps.called = !0, n.getMenuProps.refKey = N, n.getMenuProps.suppressRefError = q, Y((p = {}, p[N] = $e(T, n.menuRef), p.role = "listbox", p["aria-labelledby"] = L && L["aria-label"] ? void 0 : n.labelId, p.id = n.menuId, p), L);
2805
+ }, n.getItemProps = function(c) {
2806
+ var l, p = c === void 0 ? {} : c, f = p.onMouseMove, D = p.onMouseDown, N = p.onClick;
2807
+ p.onPress;
2808
+ var T = p.index, L = p.item, V = L === void 0 ? process.env.NODE_ENV === "production" ? (
2809
+ /* istanbul ignore next */
2810
+ void 0
2811
+ ) : Xi("getItemProps", "item") : L, H = Oe(p, is);
2812
+ T === void 0 ? (n.items.push(V), T = n.items.indexOf(V)) : n.items[T] = V;
2813
+ var q = "onClick", z = N, A = (l = {
2814
+ // onMouseMove is used over onMouseEnter here. onMouseMove
2815
+ // is only triggered on actual mouse movement while onMouseEnter
2816
+ // can fire on DOM changes, interrupting keyboard navigation
2817
+ onMouseMove: ue(f, function() {
2818
+ T !== n.getState().highlightedIndex && (n.setHighlightedIndex(T, {
2819
+ type: wr
2820
+ }), n.avoidScrolling = !0, n.internalSetTimeout(function() {
2821
+ return n.avoidScrolling = !1;
2822
+ }, 250));
2823
+ }),
2824
+ onMouseDown: ue(D, function(U) {
2825
+ U.preventDefault();
2826
+ })
2827
+ }, l[q] = ue(z, function() {
2828
+ n.selectItemAtIndex(T, {
2829
+ type: Sr
2830
+ });
2831
+ }), l), te = H.disabled ? {
2832
+ onMouseDown: A.onMouseDown
2833
+ } : A;
2834
+ return Y({
2835
+ id: n.getItemId(T),
2836
+ role: "option",
2837
+ "aria-selected": n.getState().highlightedIndex === T
2838
+ }, te, H);
2839
+ }, n.clearItems = function() {
2840
+ n.items = [];
2841
+ }, n.reset = function(c, l) {
2842
+ c === void 0 && (c = {}), c = ct(c), n.internalSetState(function(p) {
2843
+ var f = p.selectedItem;
2844
+ return Y({
2845
+ isOpen: n.props.defaultIsOpen,
2846
+ highlightedIndex: n.props.defaultHighlightedIndex,
2847
+ inputValue: n.props.itemToString(f)
2848
+ }, c);
2849
+ }, l);
2850
+ }, n.toggleMenu = function(c, l) {
2851
+ c === void 0 && (c = {}), c = ct(c), n.internalSetState(function(p) {
2852
+ var f = p.isOpen;
2853
+ return Y({
2854
+ isOpen: !f
2855
+ }, f && {
2856
+ highlightedIndex: n.props.defaultHighlightedIndex
2857
+ }, c);
2858
+ }, function() {
2859
+ var p = n.getState(), f = p.isOpen, D = p.highlightedIndex;
2860
+ f && n.getItemCount() > 0 && typeof D == "number" && n.setHighlightedIndex(D, c), Un(l)();
2861
+ });
2862
+ }, n.openMenu = function(c) {
2863
+ n.internalSetState({
2864
+ isOpen: !0
2865
+ }, c);
2866
+ }, n.closeMenu = function(c) {
2867
+ n.internalSetState({
2868
+ isOpen: !1
2869
+ }, c);
2870
+ }, n.updateStatus = Qt(function() {
2871
+ var c;
2872
+ if ((c = n.props) != null && (c = c.environment) != null && c.document) {
2873
+ var l = n.getState(), p = n.items[l.highlightedIndex], f = n.getItemCount(), D = n.props.getA11yStatusMessage(Y({
2874
+ itemToString: n.props.itemToString,
2875
+ previousResultCount: n.previousResultCount,
2876
+ resultCount: f,
2877
+ highlightedItem: p
2878
+ }, l));
2879
+ n.previousResultCount = f, _r(D, n.props.environment.document);
2880
+ }
2881
+ }, 200);
2882
+ var s = n.props, u = s.defaultHighlightedIndex, a = s.initialHighlightedIndex, d = a === void 0 ? u : a, h = s.defaultIsOpen, m = s.initialIsOpen, y = m === void 0 ? h : m, v = s.initialInputValue, E = v === void 0 ? "" : v, I = s.initialSelectedItem, g = I === void 0 ? null : I, w = n.getState({
2883
+ highlightedIndex: d,
2884
+ isOpen: y,
2885
+ inputValue: E,
2886
+ selectedItem: g
2887
+ });
2888
+ return w.selectedItem != null && n.props.initialInputValue === void 0 && (w.inputValue = n.props.itemToString(w.selectedItem)), n.state = w, n;
2889
+ }
2890
+ Ni(r, t);
2891
+ var o = r.prototype;
2892
+ return o.internalClearTimeouts = function() {
2893
+ this.timeoutIds.forEach(function(n) {
2894
+ clearTimeout(n);
2895
+ }), this.timeoutIds = [];
2896
+ }, o.getState = function(n) {
2897
+ return n === void 0 && (n = this.state), Et(n, this.props);
2898
+ }, o.getItemCount = function() {
2899
+ var n = this.items.length;
2900
+ return this.itemCount != null ? n = this.itemCount : this.props.itemCount !== void 0 && (n = this.props.itemCount), n;
2901
+ }, o.getItemNodeFromIndex = function(n) {
2902
+ return this.props.environment ? this.props.environment.document.getElementById(this.getItemId(n)) : null;
2903
+ }, o.scrollHighlightedItemIntoView = function() {
2904
+ {
2905
+ var n = this.getItemNodeFromIndex(this.getState().highlightedIndex);
2906
+ this.props.scrollIntoView(n, this._menuNode);
2907
+ }
2908
+ }, o.moveHighlightedIndex = function(n, s) {
2909
+ var u = this.getItemCount(), a = this.getState(), d = a.highlightedIndex;
2910
+ if (u > 0) {
2911
+ var h = Ae(d, n, {
2912
+ length: u
2913
+ }, this.isItemDisabled, !0);
2914
+ this.setHighlightedIndex(h, s);
2915
+ }
2916
+ }, o.getStateAndHelpers = function() {
2917
+ var n = this.getState(), s = n.highlightedIndex, u = n.inputValue, a = n.selectedItem, d = n.isOpen, h = this.props.itemToString, m = this.id, y = this.getRootProps, v = this.getToggleButtonProps, E = this.getLabelProps, I = this.getMenuProps, g = this.getInputProps, w = this.getItemProps, c = this.openMenu, l = this.closeMenu, p = this.toggleMenu, f = this.selectItem, D = this.selectItemAtIndex, N = this.selectHighlightedItem, T = this.setHighlightedIndex, L = this.clearSelection, V = this.clearItems, H = this.reset, q = this.setItemCount, z = this.unsetItemCount, A = this.internalSetState;
2918
+ return {
2919
+ // prop getters
2920
+ getRootProps: y,
2921
+ getToggleButtonProps: v,
2922
+ getLabelProps: E,
2923
+ getMenuProps: I,
2924
+ getInputProps: g,
2925
+ getItemProps: w,
2926
+ // actions
2927
+ reset: H,
2928
+ openMenu: c,
2929
+ closeMenu: l,
2930
+ toggleMenu: p,
2931
+ selectItem: f,
2932
+ selectItemAtIndex: D,
2933
+ selectHighlightedItem: N,
2934
+ setHighlightedIndex: T,
2935
+ clearSelection: L,
2936
+ clearItems: V,
2937
+ setItemCount: q,
2938
+ unsetItemCount: z,
2939
+ setState: A,
2940
+ // props
2941
+ itemToString: h,
2942
+ // derived
2943
+ id: m,
2944
+ // state
2945
+ highlightedIndex: s,
2946
+ inputValue: u,
2947
+ isOpen: d,
2948
+ selectedItem: a
2949
+ };
2950
+ }, o.componentDidMount = function() {
2951
+ var n = this;
2952
+ if (process.env.NODE_ENV !== "production" && this.getMenuProps.called && !this.getMenuProps.suppressRefError && Gn(this._menuNode, this.getMenuProps), !this.props.environment)
2953
+ this.cleanup = function() {
2954
+ n.internalClearTimeouts();
2955
+ };
2956
+ else {
2957
+ var s = function() {
2958
+ n.isMouseDown = !0;
2959
+ }, u = function(v) {
2960
+ n.isMouseDown = !1;
2961
+ var E = bt(v.target, [n._rootNode, n._menuNode], n.props.environment);
2962
+ !E && n.getState().isOpen && n.reset({
2963
+ type: Er
2964
+ }, function() {
2965
+ return n.props.onOuterClick(n.getStateAndHelpers());
2966
+ });
2967
+ }, a = function() {
2968
+ n.isTouchMove = !1;
2969
+ }, d = function() {
2970
+ n.isTouchMove = !0;
2971
+ }, h = function(v) {
2972
+ var E = bt(v.target, [n._rootNode, n._menuNode], n.props.environment, !1);
2973
+ !n.isTouchMove && !E && n.getState().isOpen && n.reset({
2974
+ type: Nr
2975
+ }, function() {
2976
+ return n.props.onOuterClick(n.getStateAndHelpers());
2977
+ });
2978
+ }, m = this.props.environment;
2979
+ m.addEventListener("mousedown", s), m.addEventListener("mouseup", u), m.addEventListener("touchstart", a), m.addEventListener("touchmove", d), m.addEventListener("touchend", h), this.cleanup = function() {
2980
+ n.internalClearTimeouts(), n.updateStatus.cancel(), m.removeEventListener("mousedown", s), m.removeEventListener("mouseup", u), m.removeEventListener("touchstart", a), m.removeEventListener("touchmove", d), m.removeEventListener("touchend", h);
2981
+ };
2982
+ }
2983
+ }, o.shouldScroll = function(n, s) {
2984
+ var u = this.props.highlightedIndex === void 0 ? this.getState() : this.props, a = u.highlightedIndex, d = s.highlightedIndex === void 0 ? n : s, h = d.highlightedIndex, m = a && this.getState().isOpen && !n.isOpen, y = a !== h;
2985
+ return m || y;
2986
+ }, o.componentDidUpdate = function(n, s) {
2987
+ process.env.NODE_ENV !== "production" && (en(this.state, n, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && Gn(this._menuNode, this.getMenuProps)), wt(this.props, "selectedItem") && this.props.selectedItemChanged(n.selectedItem, this.props.selectedItem) && this.internalSetState({
2988
+ type: Mr,
2989
+ inputValue: this.props.itemToString(this.props.selectedItem)
2990
+ }), !this.avoidScrolling && this.shouldScroll(s, n) && this.scrollHighlightedItemIntoView(), this.updateStatus();
2991
+ }, o.componentWillUnmount = function() {
2992
+ this.cleanup();
2993
+ }, o.render = function() {
2994
+ var n = Xn(this.props.children, fe);
2995
+ this.clearItems(), this.getRootProps.called = !1, this.getRootProps.refKey = void 0, this.getRootProps.suppressRefError = void 0, this.getMenuProps.called = !1, this.getMenuProps.refKey = void 0, this.getMenuProps.suppressRefError = void 0, this.getLabelProps.called = !1, this.getInputProps.called = !1;
2996
+ var s = Xn(n(this.getStateAndHelpers()));
2997
+ if (!s)
2998
+ return null;
2999
+ if (this.getRootProps.called || this.props.suppressRefError)
3000
+ return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && us(s, this.getRootProps), s;
3001
+ if (mr(s))
3002
+ return /* @__PURE__ */ ro(s, this.getRootProps(vr(s)));
3003
+ if (process.env.NODE_ENV !== "production")
3004
+ throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
3005
+ }, r;
3006
+ }(oo);
3007
+ return e.defaultProps = {
3008
+ defaultHighlightedIndex: null,
3009
+ defaultIsOpen: !1,
3010
+ getA11yStatusMessage: zi,
3011
+ itemToString: function(r) {
3012
+ return r == null ? "" : (process.env.NODE_ENV !== "production" && Zi(r) && !r.hasOwnProperty("toString") && console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.", "The object that was passed:", r), String(r));
3013
+ },
3014
+ onStateChange: fe,
3015
+ onInputValueChange: fe,
3016
+ onUserAction: fe,
3017
+ onChange: fe,
3018
+ onSelect: fe,
3019
+ onOuterClick: fe,
3020
+ selectedItemChanged: function(r, o) {
3021
+ return r !== o;
3022
+ },
3023
+ environment: (
3024
+ /* istanbul ignore next (ssr) */
3025
+ typeof window == "undefined" ? void 0 : window
3026
+ ),
3027
+ stateReducer: function(r, o) {
3028
+ return o;
3029
+ },
3030
+ suppressRefError: !1,
3031
+ scrollIntoView: gr
3032
+ }, e.stateChangeTypes = es, e;
3033
+ }();
3034
+ process.env.NODE_ENV !== "production" && (ss.propTypes = {
3035
+ children: b.func,
3036
+ defaultHighlightedIndex: b.number,
3037
+ defaultIsOpen: b.bool,
3038
+ initialHighlightedIndex: b.number,
3039
+ initialSelectedItem: b.any,
3040
+ initialInputValue: b.string,
3041
+ initialIsOpen: b.bool,
3042
+ getA11yStatusMessage: b.func,
3043
+ itemToString: b.func,
3044
+ onChange: b.func,
3045
+ onSelect: b.func,
3046
+ onStateChange: b.func,
3047
+ onInputValueChange: b.func,
3048
+ onUserAction: b.func,
3049
+ onOuterClick: b.func,
3050
+ selectedItemChanged: b.func,
3051
+ stateReducer: b.func,
3052
+ itemCount: b.number,
3053
+ id: b.string,
3054
+ environment: b.shape({
3055
+ addEventListener: b.func.isRequired,
3056
+ removeEventListener: b.func.isRequired,
3057
+ document: b.shape({
3058
+ createElement: b.func.isRequired,
3059
+ getElementById: b.func.isRequired,
3060
+ activeElement: b.any.isRequired,
3061
+ body: b.any.isRequired
3062
+ }).isRequired,
3063
+ Node: b.func.isRequired
3064
+ }),
3065
+ suppressRefError: b.bool,
3066
+ scrollIntoView: b.func,
3067
+ // things we keep in state for uncontrolled components
3068
+ // but can accept as props for controlled components
3069
+ /* eslint-disable react/no-unused-prop-types */
3070
+ selectedItem: b.any,
3071
+ isOpen: b.bool,
3072
+ inputValue: b.string,
3073
+ highlightedIndex: b.number,
3074
+ labelId: b.string,
3075
+ inputId: b.string,
3076
+ menuId: b.string,
3077
+ getItemId: b.func
3078
+ /* eslint-enable react/no-unused-prop-types */
3079
+ });
3080
+ function Gn(e, t) {
3081
+ var r = t.refKey;
3082
+ e || console.error('downshift: The ref prop "' + r + '" from getMenuProps was not applied correctly on your menu element.');
3083
+ }
3084
+ function us(e, t) {
3085
+ var r = t.refKey, o = r !== "ref", i = !mr(e);
3086
+ i && !o && !Wn.isForwardRef(e) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !i && o && console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + r + '"'), !Wn.isForwardRef(e) && !vr(e)[r] && console.error('downshift: You must apply the ref prop "' + r + '" from getRootProps onto your root element.');
3087
+ }
3088
+ var Ar = {
3089
+ highlightedIndex: -1,
3090
+ isOpen: !1,
3091
+ selectedItem: null,
3092
+ inputValue: ""
3093
+ };
3094
+ function as(e, t, r) {
3095
+ var o = e.props, i = e.type, n = {};
3096
+ Object.keys(t).forEach(function(s) {
3097
+ cs(s, e, t, r), r[s] !== t[s] && (n[s] = r[s]);
3098
+ }), o.onStateChange && Object.keys(n).length && o.onStateChange(Y({
3099
+ type: i
3100
+ }, n));
3101
+ }
3102
+ function cs(e, t, r, o) {
3103
+ var i = t.props, n = t.type, s = "on" + tn(e) + "Change";
3104
+ i[s] && o[e] !== void 0 && o[e] !== r[e] && i[s](Y({
3105
+ type: n
3106
+ }, o));
3107
+ }
3108
+ function ls(e, t) {
3109
+ return t.changes;
3110
+ }
3111
+ var Zn = Qt(function(e, t) {
3112
+ _r(e, t);
3113
+ }, 200), fs = typeof window != "undefined" && typeof window.document != "undefined" && typeof window.document.createElement != "undefined" ? Ut : ge, ds = "useId" in gt ? function(t) {
3114
+ var r = t.id, o = t.labelId, i = t.menuId, n = t.getItemId, s = t.toggleButtonId, u = t.inputId, a = "downshift-" + gt.useId();
3115
+ r || (r = a);
3116
+ var d = ce({
3117
+ labelId: o || r + "-label",
3118
+ menuId: i || r + "-menu",
3119
+ getItemId: n || function(h) {
3120
+ return r + "-item-" + h;
3121
+ },
3122
+ toggleButtonId: s || r + "-toggle-button",
3123
+ inputId: u || r + "-input"
3124
+ });
3125
+ return d.current;
3126
+ } : function(t) {
3127
+ var r = t.id, o = r === void 0 ? "downshift-" + hr() : r, i = t.labelId, n = t.menuId, s = t.getItemId, u = t.toggleButtonId, a = t.inputId, d = ce({
3128
+ labelId: i || o + "-label",
3129
+ menuId: n || o + "-menu",
3130
+ getItemId: s || function(h) {
3131
+ return o + "-item-" + h;
3132
+ },
3133
+ toggleButtonId: u || o + "-toggle-button",
3134
+ inputId: a || o + "-input"
3135
+ });
3136
+ return d.current;
3137
+ };
3138
+ function ps(e, t, r, o) {
3139
+ var i, n;
3140
+ if (e === void 0) {
3141
+ if (t === void 0)
3142
+ throw new Error(o);
3143
+ i = r[t], n = t;
3144
+ } else
3145
+ n = t === void 0 ? r.indexOf(e) : t, i = e;
3146
+ return [i, n];
3147
+ }
3148
+ function tn(e) {
3149
+ return "" + e.slice(0, 1).toUpperCase() + e.slice(1);
3150
+ }
3151
+ function Vr(e) {
3152
+ var t = ce(e);
3153
+ return t.current = e, t;
3154
+ }
3155
+ function gs(e, t, r, o) {
3156
+ var i = ce(), n = ce(), s = se(function(v, E) {
3157
+ n.current = E, v = Et(v, E.props);
3158
+ var I = e(v, E), g = E.props.stateReducer(v, Y({}, E, {
3159
+ changes: I
3160
+ }));
3161
+ return g;
3162
+ }, [e]), u = no(s, t, r), a = u[0], d = u[1], h = Vr(t), m = se(function(v) {
3163
+ return d(Y({
3164
+ props: h.current
3165
+ }, v));
3166
+ }, [h]), y = n.current;
3167
+ return ge(function() {
3168
+ var v = Et(i.current, y == null ? void 0 : y.props), E = y && i.current && !o(v, a);
3169
+ E && as(y, v, a), i.current = a;
3170
+ }, [a, y, o]), [a, m];
3171
+ }
3172
+ var Ye = {
3173
+ itemToString: function(t) {
3174
+ return t ? String(t) : "";
3175
+ },
3176
+ itemToKey: function(t) {
3177
+ return t;
3178
+ },
3179
+ stateReducer: ls,
3180
+ scrollIntoView: gr,
3181
+ environment: (
3182
+ /* istanbul ignore next (ssr) */
3183
+ typeof window == "undefined" ? void 0 : window
3184
+ )
3185
+ };
3186
+ function De(e, t, r) {
3187
+ r === void 0 && (r = Ar);
3188
+ var o = e["default" + tn(t)];
3189
+ return o !== void 0 ? o : r[t];
3190
+ }
3191
+ function Ue(e, t, r) {
3192
+ r === void 0 && (r = Ar);
3193
+ var o = e[t];
3194
+ if (o !== void 0)
3195
+ return o;
3196
+ var i = e["initial" + tn(t)];
3197
+ return i !== void 0 ? i : De(e, t, r);
3198
+ }
3199
+ function hs(e) {
3200
+ var t = Ue(e, "selectedItem"), r = Ue(e, "isOpen"), o = Is(e), i = Ue(e, "inputValue");
3201
+ return {
3202
+ highlightedIndex: o < 0 && t && r ? e.items.findIndex(function(n) {
3203
+ return e.itemToKey(n) === e.itemToKey(t);
3204
+ }) : o,
3205
+ isOpen: r,
3206
+ selectedItem: t,
3207
+ inputValue: i
3208
+ };
3209
+ }
3210
+ function ze(e, t, r) {
3211
+ var o = e.items, i = e.initialHighlightedIndex, n = e.defaultHighlightedIndex, s = e.isItemDisabled, u = e.itemToKey, a = t.selectedItem, d = t.highlightedIndex;
3212
+ return o.length === 0 ? -1 : i !== void 0 && d === i && !s(o[i], i) ? i : n !== void 0 && !s(o[n], n) ? n : a ? o.findIndex(function(h) {
3213
+ return u(a) === u(h);
3214
+ }) : r < 0 && !s(o[o.length - 1], o.length - 1) ? o.length - 1 : r > 0 && !s(o[0], 0) ? 0 : -1;
3215
+ }
3216
+ function ms(e, t, r) {
3217
+ var o = ce({
3218
+ isMouseDown: !1,
3219
+ isTouchMove: !1,
3220
+ isTouchEnd: !1
3221
+ });
3222
+ return ge(function() {
3223
+ if (!e)
3224
+ return fe;
3225
+ var i = r.map(function(h) {
3226
+ return h.current;
3227
+ });
3228
+ function n() {
3229
+ o.current.isTouchEnd = !1, o.current.isMouseDown = !0;
3230
+ }
3231
+ function s(h) {
3232
+ o.current.isMouseDown = !1, bt(h.target, i, e) || t();
3233
+ }
3234
+ function u() {
3235
+ o.current.isTouchEnd = !1, o.current.isTouchMove = !1;
3236
+ }
3237
+ function a() {
3238
+ o.current.isTouchMove = !0;
3239
+ }
3240
+ function d(h) {
3241
+ o.current.isTouchEnd = !0, !o.current.isTouchMove && !bt(h.target, i, e, !1) && t();
3242
+ }
3243
+ return e.addEventListener("mousedown", n), e.addEventListener("mouseup", s), e.addEventListener("touchstart", u), e.addEventListener("touchmove", a), e.addEventListener("touchend", d), function() {
3244
+ e.removeEventListener("mousedown", n), e.removeEventListener("mouseup", s), e.removeEventListener("touchstart", u), e.removeEventListener("touchmove", a), e.removeEventListener("touchend", d);
3245
+ };
3246
+ }, [r, e, t]), o.current;
3247
+ }
3248
+ var kr = function() {
3249
+ return fe;
3250
+ };
3251
+ process.env.NODE_ENV !== "production" && (kr = function() {
3252
+ for (var t = arguments.length, r = new Array(t), o = 0; o < t; o++)
3253
+ r[o] = arguments[o];
3254
+ var i = ce(r.reduce(function(s, u) {
3255
+ return s[u] = {}, s;
3256
+ }, {}));
3257
+ ge(function() {
3258
+ Object.keys(i.current).forEach(function(s) {
3259
+ var u = i.current[s];
3260
+ if (!Object.keys(u).length) {
3261
+ console.error("downshift: You forgot to call the " + s + " getter function on your component / element.");
3262
+ return;
3263
+ }
3264
+ var a = u.suppressRefError, d = u.refKey, h = u.elementRef;
3265
+ a || h != null && h.current || console.error('downshift: The ref prop "' + d + '" from ' + s + " was not applied correctly on your element.");
3266
+ });
3267
+ }, []);
3268
+ var n = se(function(s, u, a, d) {
3269
+ i.current[s] = {
3270
+ suppressRefError: u,
3271
+ refKey: a,
3272
+ elementRef: d
3273
+ };
3274
+ }, []);
3275
+ return n;
3276
+ });
3277
+ function vs(e, t, r, o) {
3278
+ o === void 0 && (o = {});
3279
+ var i = o.document, n = Dt();
3280
+ ge(function() {
3281
+ if (!(!e || n || !i)) {
3282
+ var s = e(t);
3283
+ Zn(s, i);
3284
+ }
3285
+ }, r), ge(function() {
3286
+ return function() {
3287
+ Zn.cancel(), Qi(i);
3288
+ };
3289
+ }, [i]);
3290
+ }
3291
+ function ys(e) {
3292
+ var t = e.highlightedIndex, r = e.isOpen, o = e.itemRefs, i = e.getItemNodeFromIndex, n = e.menuElement, s = e.scrollIntoView, u = ce(!0);
3293
+ return fs(function() {
3294
+ t < 0 || !r || !Object.keys(o.current).length || (u.current === !1 ? u.current = !0 : s(i(t), n));
3295
+ }, [t]), u;
3296
+ }
3297
+ var $r = fe;
3298
+ process.env.NODE_ENV !== "production" && ($r = function(t) {
3299
+ var r = t.props, o = t.state, i = ce(r), n = Dt();
3300
+ ge(function() {
3301
+ n || (en(o, i.current, r), i.current = r);
3302
+ }, [o, r, n]);
3303
+ });
3304
+ function Jn(e, t, r) {
3305
+ var o;
3306
+ r === void 0 && (r = !0);
3307
+ var i = ((o = e.items) == null ? void 0 : o.length) && t >= 0;
3308
+ return Y({
3309
+ isOpen: !1,
3310
+ highlightedIndex: -1
3311
+ }, i && Y({
3312
+ selectedItem: e.items[t],
3313
+ isOpen: De(e, "isOpen"),
3314
+ highlightedIndex: De(e, "highlightedIndex")
3315
+ }, r && {
3316
+ inputValue: e.itemToString(e.items[t])
3317
+ }));
3318
+ }
3319
+ function _s(e, t) {
3320
+ return e.isOpen === t.isOpen && e.inputValue === t.inputValue && e.highlightedIndex === t.highlightedIndex && e.selectedItem === t.selectedItem;
3321
+ }
3322
+ function Dt() {
3323
+ var e = gt.useRef(!0);
3324
+ return gt.useEffect(function() {
3325
+ return e.current = !1, function() {
3326
+ e.current = !0;
3327
+ };
3328
+ }, []), e.current;
3329
+ }
3330
+ function Yt(e) {
3331
+ var t = De(e, "highlightedIndex");
3332
+ return t > -1 && e.isItemDisabled(e.items[t], t) ? -1 : t;
3333
+ }
3334
+ function Is(e) {
3335
+ var t = Ue(e, "highlightedIndex");
3336
+ return t > -1 && e.isItemDisabled(e.items[t], t) ? -1 : t;
3337
+ }
3338
+ var pt = {
3339
+ environment: b.shape({
3340
+ addEventListener: b.func.isRequired,
3341
+ removeEventListener: b.func.isRequired,
3342
+ document: b.shape({
3343
+ createElement: b.func.isRequired,
3344
+ getElementById: b.func.isRequired,
3345
+ activeElement: b.any.isRequired,
3346
+ body: b.any.isRequired
3347
+ }).isRequired,
3348
+ Node: b.func.isRequired
3349
+ }),
3350
+ itemToString: b.func,
3351
+ itemToKey: b.func,
3352
+ stateReducer: b.func
3353
+ }, Hr = Y({}, pt, {
3354
+ getA11yStatusMessage: b.func,
3355
+ highlightedIndex: b.number,
3356
+ defaultHighlightedIndex: b.number,
3357
+ initialHighlightedIndex: b.number,
3358
+ isOpen: b.bool,
3359
+ defaultIsOpen: b.bool,
3360
+ initialIsOpen: b.bool,
3361
+ selectedItem: b.any,
3362
+ initialSelectedItem: b.any,
3363
+ defaultSelectedItem: b.any,
3364
+ id: b.string,
3365
+ labelId: b.string,
3366
+ menuId: b.string,
3367
+ getItemId: b.func,
3368
+ toggleButtonId: b.string,
3369
+ onSelectedItemChange: b.func,
3370
+ onHighlightedIndexChange: b.func,
3371
+ onStateChange: b.func,
3372
+ onIsOpenChange: b.func,
3373
+ scrollIntoView: b.func
3374
+ });
3375
+ function Es(e, t, r) {
3376
+ var o = t.type, i = t.props, n;
3377
+ switch (o) {
3378
+ case r.ItemMouseMove:
3379
+ n = {
3380
+ highlightedIndex: t.disabled ? -1 : t.index
3381
+ };
3382
+ break;
3383
+ case r.MenuMouseLeave:
3384
+ n = {
3385
+ highlightedIndex: -1
3386
+ };
3387
+ break;
3388
+ case r.ToggleButtonClick:
3389
+ case r.FunctionToggleMenu:
3390
+ n = {
3391
+ isOpen: !e.isOpen,
3392
+ highlightedIndex: e.isOpen ? -1 : ze(i, e, 0)
3393
+ };
3394
+ break;
3395
+ case r.FunctionOpenMenu:
3396
+ n = {
3397
+ isOpen: !0,
3398
+ highlightedIndex: ze(i, e, 0)
3399
+ };
3400
+ break;
3401
+ case r.FunctionCloseMenu:
3402
+ n = {
3403
+ isOpen: !1
3404
+ };
3405
+ break;
3406
+ case r.FunctionSetHighlightedIndex:
3407
+ n = {
3408
+ highlightedIndex: i.isItemDisabled(i.items[t.highlightedIndex], t.highlightedIndex) ? -1 : t.highlightedIndex
3409
+ };
3410
+ break;
3411
+ case r.FunctionSetInputValue:
3412
+ n = {
3413
+ inputValue: t.inputValue
3414
+ };
3415
+ break;
3416
+ case r.FunctionReset:
3417
+ n = {
3418
+ highlightedIndex: Yt(i),
3419
+ isOpen: De(i, "isOpen"),
3420
+ selectedItem: De(i, "selectedItem"),
3421
+ inputValue: De(i, "inputValue")
3422
+ };
3423
+ break;
3424
+ default:
3425
+ throw new Error("Reducer called without proper action type.");
3426
+ }
3427
+ return Y({}, e, n);
3428
+ }
3429
+ mt(mt({}, Hr), { items: b.array.isRequired, isItemDisabled: b.func });
3430
+ mt(mt({}, Ye), { isItemDisabled: function() {
3431
+ return !1;
3432
+ } });
3433
+ process.env.NODE_ENV;
3434
+ process.env.NODE_ENV;
3435
+ process.env.NODE_ENV;
3436
+ process.env.NODE_ENV;
3437
+ process.env.NODE_ENV;
3438
+ process.env.NODE_ENV;
3439
+ process.env.NODE_ENV;
3440
+ process.env.NODE_ENV;
3441
+ process.env.NODE_ENV;
3442
+ process.env.NODE_ENV;
3443
+ process.env.NODE_ENV;
3444
+ process.env.NODE_ENV;
3445
+ process.env.NODE_ENV;
3446
+ process.env.NODE_ENV;
3447
+ process.env.NODE_ENV;
3448
+ process.env.NODE_ENV;
3449
+ process.env.NODE_ENV;
3450
+ process.env.NODE_ENV;
3451
+ process.env.NODE_ENV;
3452
+ process.env.NODE_ENV;
3453
+ process.env.NODE_ENV;
3454
+ process.env.NODE_ENV;
3455
+ process.env.NODE_ENV;
3456
+ var nn = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, rn = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, on = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, sn = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, un = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, an = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, cn = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, ln = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, fn = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, xt = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, dn = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, Lr = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, Fr = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, pn = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, Kr = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, jr = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, Br = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, Wr = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, qr = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, gn = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, Yr = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, Ur = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, hn = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, zr = /* @__PURE__ */ Object.freeze({
3457
+ __proto__: null,
3458
+ ControlledPropUpdatedSelectedItem: hn,
3459
+ FunctionCloseMenu: Wr,
3460
+ FunctionOpenMenu: Br,
3461
+ FunctionReset: Ur,
3462
+ FunctionSelectItem: gn,
3463
+ FunctionSetHighlightedIndex: qr,
3464
+ FunctionSetInputValue: Yr,
3465
+ FunctionToggleMenu: jr,
3466
+ InputBlur: xt,
3467
+ InputChange: fn,
3468
+ InputClick: dn,
3469
+ InputKeyDownArrowDown: nn,
3470
+ InputKeyDownArrowUp: rn,
3471
+ InputKeyDownEnd: un,
3472
+ InputKeyDownEnter: ln,
3473
+ InputKeyDownEscape: on,
3474
+ InputKeyDownHome: sn,
3475
+ InputKeyDownPageDown: cn,
3476
+ InputKeyDownPageUp: an,
3477
+ ItemClick: pn,
3478
+ ItemMouseMove: Fr,
3479
+ MenuMouseLeave: Lr,
3480
+ ToggleButtonClick: Kr
3481
+ });
3482
+ function ws(e) {
3483
+ var t = hs(e), r = t.selectedItem, o = t.inputValue;
3484
+ return o === "" && r && e.defaultInputValue === void 0 && e.initialInputValue === void 0 && e.inputValue === void 0 && (o = e.itemToString(r)), Y({}, t, {
3485
+ inputValue: o
3486
+ });
3487
+ }
3488
+ var bs = Y({}, Hr, {
3489
+ items: b.array.isRequired,
3490
+ isItemDisabled: b.func,
3491
+ inputValue: b.string,
3492
+ defaultInputValue: b.string,
3493
+ initialInputValue: b.string,
3494
+ inputId: b.string,
3495
+ onInputValueChange: b.func
3496
+ });
3497
+ function xs(e, t, r, o) {
3498
+ var i = ce(), n = gs(e, t, r, o), s = n[0], u = n[1], a = Dt();
3499
+ return ge(function() {
3500
+ if (wt(t, "selectedItem")) {
3501
+ if (!a) {
3502
+ var d = t.itemToKey(t.selectedItem) !== t.itemToKey(i.current);
3503
+ d && u({
3504
+ type: hn,
3505
+ inputValue: t.itemToString(t.selectedItem)
3506
+ });
3507
+ }
3508
+ i.current = s.selectedItem === i.current ? t.selectedItem : s.selectedItem;
3509
+ }
3510
+ }, [s.selectedItem, t.selectedItem]), [Et(s, t), u];
3511
+ }
3512
+ var Xr = fe;
3513
+ process.env.NODE_ENV !== "production" && (Xr = function(t, r) {
3514
+ b.checkPropTypes(bs, t, "prop", r.name);
3515
+ });
3516
+ var Os = Y({}, Ye, {
3517
+ isItemDisabled: function() {
3518
+ return !1;
3519
+ }
3520
+ });
3521
+ function Cs(e, t) {
3522
+ var r, o = t.type, i = t.props, n = t.altKey, s;
3523
+ switch (o) {
3524
+ case pn:
3525
+ s = {
3526
+ isOpen: De(i, "isOpen"),
3527
+ highlightedIndex: Yt(i),
3528
+ selectedItem: i.items[t.index],
3529
+ inputValue: i.itemToString(i.items[t.index])
3530
+ };
3531
+ break;
3532
+ case nn:
3533
+ e.isOpen ? s = {
3534
+ highlightedIndex: Ae(e.highlightedIndex, 1, i.items, i.isItemDisabled, !0)
3535
+ } : s = {
3536
+ highlightedIndex: n && e.selectedItem == null ? -1 : ze(i, e, 1),
3537
+ isOpen: i.items.length >= 0
3538
+ };
3539
+ break;
3540
+ case rn:
3541
+ e.isOpen ? n ? s = Jn(i, e.highlightedIndex) : s = {
3542
+ highlightedIndex: Ae(e.highlightedIndex, -1, i.items, i.isItemDisabled, !0)
3543
+ } : s = {
3544
+ highlightedIndex: ze(i, e, -1),
3545
+ isOpen: i.items.length >= 0
3546
+ };
3547
+ break;
3548
+ case ln:
3549
+ s = Jn(i, e.highlightedIndex);
3550
+ break;
3551
+ case on:
3552
+ s = Y({
3553
+ isOpen: !1,
3554
+ highlightedIndex: -1
3555
+ }, !e.isOpen && {
3556
+ selectedItem: null,
3557
+ inputValue: ""
3558
+ });
3559
+ break;
3560
+ case an:
3561
+ s = {
3562
+ highlightedIndex: Ae(e.highlightedIndex, -10, i.items, i.isItemDisabled, !0)
3563
+ };
3564
+ break;
3565
+ case cn:
3566
+ s = {
3567
+ highlightedIndex: Ae(e.highlightedIndex, 10, i.items, i.isItemDisabled, !0)
3568
+ };
3569
+ break;
3570
+ case sn:
3571
+ s = {
3572
+ highlightedIndex: je(0, !1, i.items, i.isItemDisabled)
3573
+ };
3574
+ break;
3575
+ case un:
3576
+ s = {
3577
+ highlightedIndex: je(i.items.length - 1, !0, i.items, i.isItemDisabled)
3578
+ };
3579
+ break;
3580
+ case xt:
3581
+ s = Y({
3582
+ isOpen: !1,
3583
+ highlightedIndex: -1
3584
+ }, e.highlightedIndex >= 0 && ((r = i.items) == null ? void 0 : r.length) && t.selectItem && {
3585
+ selectedItem: i.items[e.highlightedIndex],
3586
+ inputValue: i.itemToString(i.items[e.highlightedIndex])
3587
+ });
3588
+ break;
3589
+ case fn:
3590
+ s = {
3591
+ isOpen: !0,
3592
+ highlightedIndex: Yt(i),
3593
+ inputValue: t.inputValue
3594
+ };
3595
+ break;
3596
+ case dn:
3597
+ s = {
3598
+ isOpen: !e.isOpen,
3599
+ highlightedIndex: e.isOpen ? -1 : ze(i, e, 0)
3600
+ };
3601
+ break;
3602
+ case gn:
3603
+ s = {
3604
+ selectedItem: t.selectedItem,
3605
+ inputValue: i.itemToString(t.selectedItem)
3606
+ };
3607
+ break;
3608
+ case hn:
3609
+ s = {
3610
+ inputValue: t.inputValue
3611
+ };
3612
+ break;
3613
+ default:
3614
+ return Es(e, t, zr);
3615
+ }
3616
+ return Y({}, e, s);
3617
+ }
3618
+ var Ss = ["onMouseLeave", "refKey", "ref"], Rs = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Ds = ["onClick", "onPress", "refKey", "ref"], Ts = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
3619
+ le.stateChangeTypes = zr;
3620
+ function le(e) {
3621
+ e === void 0 && (e = {}), Xr(e, le);
3622
+ var t = Y({}, Os, e), r = t.items, o = t.scrollIntoView, i = t.environment, n = t.getA11yStatusMessage, s = xs(Cs, t, ws, _s), u = s[0], a = s[1], d = u.isOpen, h = u.highlightedIndex, m = u.selectedItem, y = u.inputValue, v = ce(null), E = ce({}), I = ce(null), g = ce(null), w = Dt(), c = ds(t), l = ce(), p = Vr({
3623
+ state: u,
3624
+ props: t
3625
+ }), f = se(function(R) {
3626
+ return E.current[c.getItemId(R)];
3627
+ }, [c]);
3628
+ vs(n, u, [d, h, m, y], i);
3629
+ var D = ys({
3630
+ menuElement: v.current,
3631
+ highlightedIndex: h,
3632
+ isOpen: d,
3633
+ itemRefs: E,
3634
+ scrollIntoView: o,
3635
+ getItemNodeFromIndex: f
3636
+ });
3637
+ $r({
3638
+ props: t,
3639
+ state: u
3640
+ }), ge(function() {
3641
+ var R = Ue(t, "isOpen");
3642
+ R && I.current && I.current.focus();
3643
+ }, []), ge(function() {
3644
+ w || (l.current = r.length);
3645
+ });
3646
+ var N = ms(i, se(function() {
3647
+ p.current.state.isOpen && a({
3648
+ type: xt,
3649
+ selectItem: !1
3650
+ });
3651
+ }, [a, p]), ht(function() {
3652
+ return [v, g, I];
3653
+ }, [v.current, g.current, I.current])), T = kr("getInputProps", "getMenuProps");
3654
+ ge(function() {
3655
+ d || (E.current = {});
3656
+ }, [d]), ge(function() {
3657
+ var R;
3658
+ !d || !(i != null && i.document) || !(I != null && (R = I.current) != null && R.focus) || i.document.activeElement !== I.current && I.current.focus();
3659
+ }, [d, i]);
3660
+ var L = ht(function() {
3661
+ return {
3662
+ ArrowDown: function(C) {
3663
+ C.preventDefault(), a({
3664
+ type: nn,
3665
+ altKey: C.altKey
3666
+ });
3667
+ },
3668
+ ArrowUp: function(C) {
3669
+ C.preventDefault(), a({
3670
+ type: rn,
3671
+ altKey: C.altKey
3672
+ });
3673
+ },
3674
+ Home: function(C) {
3675
+ p.current.state.isOpen && (C.preventDefault(), a({
3676
+ type: sn
3677
+ }));
3678
+ },
3679
+ End: function(C) {
3680
+ p.current.state.isOpen && (C.preventDefault(), a({
3681
+ type: un
3682
+ }));
3683
+ },
3684
+ Escape: function(C) {
3685
+ var x = p.current.state;
3686
+ (x.isOpen || x.inputValue || x.selectedItem || x.highlightedIndex > -1) && (C.preventDefault(), a({
3687
+ type: on
3688
+ }));
3689
+ },
3690
+ Enter: function(C) {
3691
+ var x = p.current.state;
3692
+ !x.isOpen || C.which === 229 || (C.preventDefault(), a({
3693
+ type: ln
3694
+ }));
3695
+ },
3696
+ PageUp: function(C) {
3697
+ p.current.state.isOpen && (C.preventDefault(), a({
3698
+ type: an
3699
+ }));
3700
+ },
3701
+ PageDown: function(C) {
3702
+ p.current.state.isOpen && (C.preventDefault(), a({
3703
+ type: cn
3704
+ }));
3705
+ }
3706
+ };
3707
+ }, [a, p]), V = se(function(R) {
3708
+ return Y({
3709
+ id: c.labelId,
3710
+ htmlFor: c.inputId
3711
+ }, R);
3712
+ }, [c]), H = se(function(R, C) {
3713
+ var x, P = R === void 0 ? {} : R, k = P.onMouseLeave, $ = P.refKey, F = $ === void 0 ? "ref" : $, W = P.ref, K = Oe(P, Ss), ee = C === void 0 ? {} : C, O = ee.suppressRefError, ie = O === void 0 ? !1 : O;
3714
+ return T("getMenuProps", ie, F, v), Y((x = {}, x[F] = $e(W, function(M) {
3715
+ v.current = M;
3716
+ }), x.id = c.menuId, x.role = "listbox", x["aria-labelledby"] = K && K["aria-label"] ? void 0 : "" + c.labelId, x.onMouseLeave = ue(k, function() {
3717
+ a({
3718
+ type: Lr
3719
+ });
3720
+ }), x), K);
3721
+ }, [a, T, c]), q = se(function(R) {
3722
+ var C, x, P = R === void 0 ? {} : R, k = P.item, $ = P.index, F = P.refKey, W = F === void 0 ? "ref" : F, K = P.ref, ee = P.onMouseMove, O = P.onMouseDown, ie = P.onClick;
3723
+ P.onPress;
3724
+ var M = P.disabled, ve = Oe(P, Rs);
3725
+ M !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
3726
+ var ye = p.current, Me = ye.props, we = ye.state, Qe = ps(k, $, Me.items, "Pass either item or index to getItemProps!"), Tt = Qe[0], be = Qe[1], We = Me.isItemDisabled(Tt, be), Pt = "onClick", et = ie, Se = function() {
3727
+ N.isTouchEnd || be === we.highlightedIndex || (D.current = !1, a({
3728
+ type: Fr,
3729
+ index: be,
3730
+ disabled: We
3731
+ }));
3732
+ }, Ne = function() {
3733
+ a({
3734
+ type: pn,
3735
+ index: be
3736
+ });
3737
+ }, Re = function(Zr) {
3738
+ return Zr.preventDefault();
3739
+ };
3740
+ return Y((C = {}, C[W] = $e(K, function(he) {
3741
+ he && (E.current[c.getItemId(be)] = he);
3742
+ }), C["aria-disabled"] = We, C["aria-selected"] = be === we.highlightedIndex, C.id = c.getItemId(be), C.role = "option", C), !We && (x = {}, x[Pt] = ue(et, Ne), x), {
3743
+ onMouseMove: ue(ee, Se),
3744
+ onMouseDown: ue(O, Re)
3745
+ }, ve);
3746
+ }, [a, c, p, N, D]), z = se(function(R) {
3747
+ var C, x = R === void 0 ? {} : R, P = x.onClick;
3748
+ x.onPress;
3749
+ var k = x.refKey, $ = k === void 0 ? "ref" : k, F = x.ref, W = Oe(x, Ds), K = p.current.state, ee = function() {
3750
+ a({
3751
+ type: Kr
3752
+ });
3753
+ };
3754
+ return Y((C = {}, C[$] = $e(F, function(O) {
3755
+ g.current = O;
3756
+ }), C["aria-controls"] = c.menuId, C["aria-expanded"] = K.isOpen, C.id = c.toggleButtonId, C.tabIndex = -1, C), !W.disabled && Y({}, {
3757
+ onClick: ue(P, ee)
3758
+ }), W);
3759
+ }, [a, p, c]), A = se(function(R, C) {
3760
+ var x, P = R === void 0 ? {} : R, k = P.onKeyDown, $ = P.onChange, F = P.onInput, W = P.onBlur;
3761
+ P.onChangeText;
3762
+ var K = P.onClick, ee = P.refKey, O = ee === void 0 ? "ref" : ee, ie = P.ref, M = Oe(P, Ts), ve = C === void 0 ? {} : C, ye = ve.suppressRefError, Me = ye === void 0 ? !1 : ye;
3763
+ T("getInputProps", Me, O, I);
3764
+ var we = p.current.state, Qe = function(Re) {
3765
+ var he = Wt(Re);
3766
+ he && L[he] && L[he](Re);
3767
+ }, Tt = function(Re) {
3768
+ a({
3769
+ type: fn,
3770
+ inputValue: Re.target.value
3771
+ });
3772
+ }, be = function(Re) {
3773
+ if (i != null && i.document && we.isOpen && !N.isMouseDown) {
3774
+ var he = Re.relatedTarget === null && i.document.activeElement !== i.document.body;
3775
+ a({
3776
+ type: xt,
3777
+ selectItem: !he
3778
+ });
3779
+ }
3780
+ }, We = function() {
3781
+ a({
3782
+ type: dn
3783
+ });
3784
+ }, Pt = "onChange", et = {};
3785
+ if (!M.disabled) {
3786
+ var Se;
3787
+ et = (Se = {}, Se[Pt] = ue($, F, Tt), Se.onKeyDown = ue(k, Qe), Se.onBlur = ue(W, be), Se.onClick = ue(K, We), Se);
3788
+ }
3789
+ return Y((x = {}, x[O] = $e(ie, function(Ne) {
3790
+ I.current = Ne;
3791
+ }), x["aria-activedescendant"] = we.isOpen && we.highlightedIndex > -1 ? c.getItemId(we.highlightedIndex) : "", x["aria-autocomplete"] = "list", x["aria-controls"] = c.menuId, x["aria-expanded"] = we.isOpen, x["aria-labelledby"] = M && M["aria-label"] ? void 0 : c.labelId, x.autoComplete = "off", x.id = c.inputId, x.role = "combobox", x.value = we.inputValue, x), et, M);
3792
+ }, [a, c, i, L, p, N, T]), te = se(function() {
3793
+ a({
3794
+ type: jr
3795
+ });
3796
+ }, [a]), U = se(function() {
3797
+ a({
3798
+ type: Wr
3799
+ });
3800
+ }, [a]), oe = se(function() {
3801
+ a({
3802
+ type: Br
3803
+ });
3804
+ }, [a]), X = se(function(R) {
3805
+ a({
3806
+ type: qr,
3807
+ highlightedIndex: R
3808
+ });
3809
+ }, [a]), re = se(function(R) {
3810
+ a({
3811
+ type: gn,
3812
+ selectedItem: R
3813
+ });
3814
+ }, [a]), _ = se(function(R) {
3815
+ a({
3816
+ type: Yr,
3817
+ inputValue: R
3818
+ });
3819
+ }, [a]), S = se(function() {
3820
+ a({
3821
+ type: Ur
3822
+ });
3823
+ }, [a]);
3824
+ return {
3825
+ // prop getters.
3826
+ getItemProps: q,
3827
+ getLabelProps: V,
3828
+ getMenuProps: H,
3829
+ getInputProps: A,
3830
+ getToggleButtonProps: z,
3831
+ // actions.
3832
+ toggleMenu: te,
3833
+ openMenu: oe,
3834
+ closeMenu: U,
3835
+ setHighlightedIndex: X,
3836
+ setInputValue: _,
3837
+ selectItem: re,
3838
+ reset: S,
3839
+ // state.
3840
+ highlightedIndex: h,
3841
+ isOpen: d,
3842
+ selectedItem: m,
3843
+ inputValue: y
3844
+ };
3845
+ }
3846
+ pt.stateReducer, pt.itemToKey, pt.environment, b.array, b.array, b.array, b.func, b.number, b.number, b.number, b.func, b.func, b.string, b.string;
3847
+ Ye.itemToKey, Ye.stateReducer, Ye.environment;
3848
+ process.env.NODE_ENV;
3849
+ process.env.NODE_ENV;
3850
+ process.env.NODE_ENV;
3851
+ process.env.NODE_ENV;
3852
+ process.env.NODE_ENV;
3853
+ process.env.NODE_ENV;
3854
+ process.env.NODE_ENV;
3855
+ process.env.NODE_ENV;
3856
+ process.env.NODE_ENV;
3857
+ process.env.NODE_ENV;
3858
+ process.env.NODE_ENV;
3859
+ process.env.NODE_ENV;
3860
+ process.env.NODE_ENV;
3861
+ process.env.NODE_ENV;
3862
+ const Gr = io(null);
3863
+ function Hs() {
3864
+ const e = so(Gr);
3865
+ if (!e)
3866
+ throw new Error("useComboboxPrimitiveContext must be used within ComboboxPrimitiveProvider");
3867
+ return e;
3868
+ }
3869
+ function Ps({
3870
+ items: e,
3871
+ value: t = null,
3872
+ onChange: r,
3873
+ onSearch: o,
3874
+ onBlur: i,
3875
+ disabled: n,
3876
+ getLabel: s,
3877
+ isOpen: u,
3878
+ onOpenChange: a
3879
+ }) {
3880
+ const d = se((g, w) => {
3881
+ const { type: c, changes: l } = w;
3882
+ switch (c) {
3883
+ case le.stateChangeTypes.ItemClick:
3884
+ case le.stateChangeTypes.InputKeyDownEnter:
3885
+ case le.stateChangeTypes.InputKeyDownEscape:
3886
+ case le.stateChangeTypes.InputBlur:
3887
+ return ne(B({}, l), {
3888
+ // Сохраняем inputValue из изменений, но предотвращаем вызов onInputValueChange
3889
+ inputValue: l.selectedItem ? s(l.selectedItem.value) : l.inputValue || ""
3890
+ });
3891
+ case le.stateChangeTypes.FunctionSelectItem:
3892
+ return ne(B({}, l), {
3893
+ inputValue: l.selectedItem ? s(l.selectedItem.value) : l.inputValue || ""
3894
+ });
3895
+ default:
3896
+ return l;
3897
+ }
3898
+ }, [s]), I = le({
3899
+ items: e,
3900
+ stateReducer: d,
3901
+ selectedItem: t,
3902
+ isOpen: u,
3903
+ onIsOpenChange: (g) => {
3904
+ a == null || a(g.isOpen), g.isOpen || m(g.selectedItem ? s(g.selectedItem.value) : "");
3905
+ },
3906
+ itemToString: (g) => g ? s(g == null ? void 0 : g.value) : "",
3907
+ onInputValueChange: ({ inputValue: g, type: w }) => {
3908
+ n || w !== le.stateChangeTypes.ItemClick && w !== le.stateChangeTypes.InputKeyDownEnter && w !== le.stateChangeTypes.InputKeyDownEscape && w !== le.stateChangeTypes.InputBlur && w !== le.stateChangeTypes.FunctionSelectItem && (o == null || o(g));
3909
+ },
3910
+ onSelectedItemChange: ({ selectedItem: g }) => {
3911
+ if (n)
3912
+ return;
3913
+ const w = (g == null ? void 0 : g.value) !== void 0 && (g == null ? void 0 : g.value) !== null ? g.value : null;
3914
+ r == null || r(w);
3915
+ }
3916
+ }), { selectItem: h, setInputValue: m, getInputProps: y } = I, v = qe(I, ["selectItem", "setInputValue", "getInputProps"]), E = se((g) => {
3917
+ const w = y(g);
3918
+ return ne(B({}, w), {
3919
+ onBlur: (c) => {
3920
+ var l;
3921
+ (l = w.onBlur) == null || l.call(w, c), i == null || i(c);
3922
+ }
3923
+ });
3924
+ }, [y, i]);
3925
+ return ne(B({}, v), {
3926
+ selectItem: h,
3927
+ getInputProps: E,
3928
+ setInputValue: m
3929
+ });
3930
+ }
3931
+ function Ms(e, t) {
3932
+ const { refs: r, floatingStyles: o, context: i } = Di({
3933
+ open: e && !t,
3934
+ placement: "bottom-start",
3935
+ whileElementsMounted: oi,
3936
+ middleware: [
3937
+ pi(4),
3938
+ hi(),
3939
+ gi(),
3940
+ mi({
3941
+ apply({ rects: u }) {
3942
+ const a = r.floating.current;
3943
+ a && Object.assign(a.style, {
3944
+ width: `${u.reference.width}px`
3945
+ });
3946
+ }
3947
+ })
3948
+ ]
3949
+ }), { isMounted: n, styles: s } = Mi(i, {
3950
+ duration: 200
3951
+ });
3952
+ return {
3953
+ refs: r,
3954
+ floatingStyles: o,
3955
+ isMounted: n,
3956
+ transitionStyles: s
3957
+ };
3958
+ }
3959
+ function Ls({
3960
+ children: e,
3961
+ items: t,
3962
+ value: r = null,
3963
+ onChange: o,
3964
+ onSearch: i,
3965
+ onBlur: n,
3966
+ size: s = "sm",
3967
+ fullWidth: u = !0,
3968
+ transparent: a = !1,
3969
+ disabled: d = !1,
3970
+ error: h,
3971
+ placeholder: m = "Поиск...",
3972
+ getLabel: y,
3973
+ loading: v = !1,
3974
+ isOpen: E,
3975
+ onOpenChange: I,
3976
+ onClear: g,
3977
+ clearable: w
3978
+ }) {
3979
+ const c = se(y, []), l = ht(() => r ? {
3980
+ value: r,
3981
+ label: c(r)
3982
+ } : null, [r, c]), p = Ps({
3983
+ items: t,
3984
+ value: l,
3985
+ onChange: o,
3986
+ onSearch: i,
3987
+ onBlur: n,
3988
+ disabled: d,
3989
+ getLabel: c,
3990
+ isOpen: E,
3991
+ onOpenChange: I
3992
+ }), f = Ms(p.isOpen, v), D = ht(() => ({
3993
+ // Combobox состояние
3994
+ getInputProps: p.getInputProps,
3995
+ getItemProps: p.getItemProps,
3996
+ getMenuProps: p.getMenuProps,
3997
+ getToggleButtonProps: p.getToggleButtonProps,
3998
+ isOpen: p.isOpen,
3999
+ onOpenChange: I,
4000
+ selectedItem: p.selectedItem,
4001
+ setInputValue: p.setInputValue,
4002
+ selectItem: p.selectItem,
4003
+ // Floating UI состояние
4004
+ refs: f.refs,
4005
+ floatingStyles: f.floatingStyles,
4006
+ isMounted: f.isMounted,
4007
+ transitionStyles: f.transitionStyles,
4008
+ // Пропсы компонента
4009
+ size: s,
4010
+ fullWidth: u,
4011
+ transparent: a,
4012
+ disabled: d,
4013
+ error: h,
4014
+ placeholder: m,
4015
+ onBlur: n,
4016
+ loading: v,
4017
+ items: t,
4018
+ getLabel: c,
4019
+ onClear: g,
4020
+ clearable: w
4021
+ }), [p, f, s, u, a, d, h, m, n, t, c, I]);
4022
+ return /* @__PURE__ */ to(Gr.Provider, { value: D, children: e });
4023
+ }
4024
+ export {
4025
+ Ls as C,
4026
+ b as P,
4027
+ $s as c,
4028
+ uo as g,
4029
+ Hs as u
4030
+ };