welcome-ui 8.1.0 → 8.1.1

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 (287) hide show
  1. package/dist/{AXB53BZF-XKOjjeWO.mjs → AXB53BZF-BOEe01VW.mjs} +3 -3
  2. package/dist/Accordion.mjs +23 -30
  3. package/dist/Alert.mjs +70 -76
  4. package/dist/AspectRatio.mjs +9 -9
  5. package/dist/Avatar.mjs +47 -48
  6. package/dist/{BYC7LY2E-CWSI38FM.mjs → BYC7LY2E-B1IDizRs.mjs} +127 -128
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +168 -172
  10. package/dist/Button.mjs +67 -72
  11. package/dist/ButtonGroup.mjs +12 -13
  12. package/dist/Card.mjs +14 -14
  13. package/dist/Checkbox.mjs +2 -2
  14. package/dist/ClearButton.mjs +15 -15
  15. package/dist/CloseButton.mjs +9 -9
  16. package/dist/{CustomPopper-B2Cqfph4.mjs → CustomInput-IA_gVoXd.mjs} +1445 -1466
  17. package/dist/DatePicker.mjs +80 -81
  18. package/dist/DateTimePicker.mjs +61 -66
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +172 -188
  21. package/dist/DropdownMenu.mjs +411 -414
  22. package/dist/Field.mjs +91 -103
  23. package/dist/FieldGroup.mjs +9 -12
  24. package/dist/FileDrop.mjs +556 -587
  25. package/dist/FileUpload.mjs +71 -92
  26. package/dist/Files.mjs +46 -46
  27. package/dist/Flex.mjs +13 -13
  28. package/dist/Grid.mjs +29 -29
  29. package/dist/Hint.mjs +12 -12
  30. package/dist/{ITI7HKP4-C89kOQb8.mjs → ITI7HKP4-EL9KXYBU.mjs} +67 -68
  31. package/dist/Icon.mjs +25 -25
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +22 -22
  34. package/dist/InputText.mjs +58 -66
  35. package/dist/{JC64G2H7-afsomHuH.mjs → JC64G2H7-BzklVBKM.mjs} +46 -47
  36. package/dist/{KUU7WJ55-CzsjuIMv.mjs → KUU7WJ55-CS4NemC6.mjs} +1 -1
  37. package/dist/LVA2YJMS-DDEmK0pp.mjs +1482 -0
  38. package/dist/Label.mjs +35 -37
  39. package/dist/Link.mjs +28 -32
  40. package/dist/Loader.mjs +16 -20
  41. package/dist/Logo.mjs +42 -55
  42. package/dist/{MTZPJQMC-TybFZCho.mjs → MTZPJQMC-CMjAwC0N.mjs} +2 -2
  43. package/dist/Modal.mjs +253 -276
  44. package/dist/{NLEBE274-oSxMftGy.mjs → NLEBE274-QOMV1l7e.mjs} +9 -9
  45. package/dist/{P2CTZE2T-DOT1mNnX.mjs → P2CTZE2T-Cl2w7OLV.mjs} +48 -49
  46. package/dist/{P4IRICAX-CWSZLTGz.mjs → P4IRICAX-DezbJY4s.mjs} +3 -3
  47. package/dist/Pagination.mjs +104 -104
  48. package/dist/PasswordInput.mjs +34 -35
  49. package/dist/Picker.mjs +33 -35
  50. package/dist/Popover.mjs +99 -106
  51. package/dist/{QYJ6MIDR-DJ-vUdAM.mjs → QYJ6MIDR-Bb0O5xUM.mjs} +30 -31
  52. package/dist/Radio.mjs +48 -54
  53. package/dist/RadioGroup.mjs +47 -47
  54. package/dist/RadioTab.mjs +35 -37
  55. package/dist/{SYRFVSLH-B6m278Vb.mjs → SYRFVSLH-jn06-eLy.mjs} +10 -11
  56. package/dist/Search.mjs +159 -175
  57. package/dist/Select.mjs +338 -373
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +336 -359
  60. package/dist/Stack.mjs +24 -22
  61. package/dist/Swiper.mjs +224 -231
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +200 -205
  64. package/dist/Tag.mjs +53 -55
  65. package/dist/Text.mjs +47 -49
  66. package/dist/Textarea.mjs +40 -40
  67. package/dist/TimePicker.mjs +57 -58
  68. package/dist/Toast.mjs +128 -135
  69. package/dist/Toggle.mjs +24 -27
  70. package/dist/Tooltip.mjs +99 -103
  71. package/dist/UniversalLink.mjs +15 -15
  72. package/dist/{VEVQD5MH-0w9Y7Ytc.mjs → VEVQD5MH-CuegL0m0.mjs} +3 -3
  73. package/dist/{VGCJ63VH-C0UPBY-5.mjs → VGCJ63VH-BMzoZtCu.mjs} +38 -39
  74. package/dist/VariantIcon.mjs +22 -14
  75. package/dist/WelcomeLoader.mjs +121 -122
  76. package/dist/WuiProvider.mjs +58 -69
  77. package/dist/{X5NMLKT6-BJw3xE-K.mjs → X5NMLKT6-CvSCix-_.mjs} +2 -2
  78. package/dist/{YV4JVR4I-DPC8mMuG.mjs → YV4JVR4I-Bh7B7TET.mjs} +57 -57
  79. package/dist/{field-styles-BVlRlvuu.mjs → field-styles-CfVLcVQp.mjs} +1 -1
  80. package/dist/{hex-to-rgba-DU_XzKIK.mjs → hex-to-rgba-BIDK-3ab.mjs} +2 -2
  81. package/dist/hide-focus-rings-root-BNyva1yb.mjs +14 -0
  82. package/dist/{index-5HBq1O6Z.mjs → index-5PUh49rV.mjs} +73 -74
  83. package/dist/index-B0gDDiFm.mjs +66 -0
  84. package/dist/index-B22SHR8h.mjs +26 -0
  85. package/dist/{index-DAZ1SYdj.mjs → index-BNGGwOCo.mjs} +7 -7
  86. package/dist/{index-SQQQ4dEE.mjs → index-BQtDgQBH.mjs} +8 -8
  87. package/dist/index-BhcLigYU.mjs +77 -0
  88. package/dist/{index-QaLwIvZS.mjs → index-Bkl89twW.mjs} +8 -8
  89. package/dist/{index-BaLGEKs7.mjs → index-C7zM96J_.mjs} +8 -8
  90. package/dist/index-CQD9fgf_.mjs +11 -0
  91. package/dist/index-CmsWSKKs.mjs +11 -0
  92. package/dist/{index-DvzWKxKE.mjs → index-DqBUFsqP.mjs} +7 -7
  93. package/dist/index-u1oHKa7X.mjs +16 -0
  94. package/dist/index-wr_b5GSV.mjs +36 -0
  95. package/dist/radio-group-RFyDp0KD.mjs +51 -0
  96. package/dist/theme.mjs +801 -801
  97. package/dist/throttle-BDBzFeFj.mjs +13 -0
  98. package/dist/types/components/Accordion/index.d.ts +1 -1
  99. package/dist/types/components/Accordion/styles.d.ts +2 -2
  100. package/dist/types/components/Accordion/theme.d.ts +1 -1
  101. package/dist/types/components/Alert/index.d.ts +2 -2
  102. package/dist/types/components/Alert/styles.d.ts +9 -9
  103. package/dist/types/components/Alert/theme.d.ts +3 -3
  104. package/dist/types/components/AspectRatio/styles.d.ts +2 -3
  105. package/dist/types/components/Avatar/index.d.ts +3 -2
  106. package/dist/types/components/Avatar/styles.d.ts +8 -8
  107. package/dist/types/components/Avatar/theme.d.ts +3 -3
  108. package/dist/types/components/Avatar/utils.d.ts +1 -1
  109. package/dist/types/components/Badge/index.d.ts +2 -2
  110. package/dist/types/components/Badge/styles.d.ts +5 -5
  111. package/dist/types/components/Badge/theme.d.ts +1 -1
  112. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  113. package/dist/types/components/Breadcrumb/index.d.ts +2 -2
  114. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  115. package/dist/types/components/Button/index.d.ts +5 -4
  116. package/dist/types/components/Button/styles.d.ts +1 -1
  117. package/dist/types/components/Button/theme.d.ts +7 -7
  118. package/dist/types/components/ButtonGroup/index.d.ts +4 -4
  119. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  120. package/dist/types/components/Card/index.d.ts +3 -2
  121. package/dist/types/components/Card/theme.d.ts +1 -1
  122. package/dist/types/components/Checkbox/index.d.ts +2 -2
  123. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  124. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  125. package/dist/types/components/ClearButton/index.d.ts +6 -5
  126. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  127. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  128. package/dist/types/components/DatePicker/index.d.ts +3 -3
  129. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  130. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  131. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  132. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  133. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  134. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  135. package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
  136. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  137. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  138. package/dist/types/components/Drawer/index.d.ts +12 -12
  139. package/dist/types/components/Drawer/styles.d.ts +5 -5
  140. package/dist/types/components/Drawer/theme.d.ts +2 -2
  141. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  142. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  143. package/dist/types/components/Field/index.d.ts +8 -8
  144. package/dist/types/components/Field/styles.d.ts +1 -1
  145. package/dist/types/components/Field/utils.d.ts +1 -1
  146. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  147. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  148. package/dist/types/components/FileDrop/index.d.ts +20 -20
  149. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  150. package/dist/types/components/FileUpload/index.d.ts +13 -13
  151. package/dist/types/components/Files/index.d.ts +5 -5
  152. package/dist/types/components/Files/types.d.ts +1 -1
  153. package/dist/types/components/Hint/index.d.ts +2 -1
  154. package/dist/types/components/Hint/theme.d.ts +1 -1
  155. package/dist/types/components/Icon/index.d.ts +3 -3
  156. package/dist/types/components/Icon/styles.d.ts +3 -3
  157. package/dist/types/components/Icon/theme.d.ts +3 -3
  158. package/dist/types/components/Icons/Sun/content.json.d.ts +1 -2
  159. package/dist/types/components/Icons/index.d.ts +2 -2
  160. package/dist/types/components/IconsFont/index.d.ts +3 -2
  161. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  162. package/dist/types/components/InputText/index.d.ts +1 -1
  163. package/dist/types/components/InputText/styles.d.ts +1 -1
  164. package/dist/types/components/Label/index.d.ts +3 -2
  165. package/dist/types/components/Label/theme.d.ts +1 -1
  166. package/dist/types/components/Link/index.d.ts +5 -5
  167. package/dist/types/components/Link/styles.d.ts +4 -4
  168. package/dist/types/components/Link/theme.d.ts +1 -1
  169. package/dist/types/components/Loader/index.d.ts +1 -1
  170. package/dist/types/components/Loader/styles.d.ts +4 -4
  171. package/dist/types/components/Loader/theme.d.ts +4 -4
  172. package/dist/types/components/Logo/Solutions.d.ts +2 -1
  173. package/dist/types/components/Logo/Symbol.d.ts +2 -1
  174. package/dist/types/components/Logo/Wui.d.ts +2 -1
  175. package/dist/types/components/Logo/index.d.ts +5 -5
  176. package/dist/types/components/Modal/Assets/Backdrop.d.ts +6 -5
  177. package/dist/types/components/Modal/Assets/Iframe.d.ts +2 -1
  178. package/dist/types/components/Modal/Assets/index.d.ts +9 -9
  179. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  180. package/dist/types/components/Modal/Close.d.ts +4 -3
  181. package/dist/types/components/Modal/Content.d.ts +5 -3
  182. package/dist/types/components/Modal/Footer.d.ts +1 -1
  183. package/dist/types/components/Modal/Header.d.ts +2 -2
  184. package/dist/types/components/Modal/index.d.ts +17 -17
  185. package/dist/types/components/Modal/styles.d.ts +7 -7
  186. package/dist/types/components/Modal/theme.d.ts +2 -2
  187. package/dist/types/components/Pagination/index.d.ts +2 -2
  188. package/dist/types/components/Pagination/theme.d.ts +1 -1
  189. package/dist/types/components/Pagination/utils.d.ts +1 -1
  190. package/dist/types/components/Picker/index.d.ts +1 -1
  191. package/dist/types/components/Picker/styles.d.ts +1 -1
  192. package/dist/types/components/Popover/Arrow.d.ts +2 -1
  193. package/dist/types/components/Popover/Content.d.ts +3 -2
  194. package/dist/types/components/Popover/Popover.d.ts +5 -4
  195. package/dist/types/components/Popover/PopoverHover.d.ts +4 -3
  196. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  197. package/dist/types/components/Popover/styles.d.ts +4 -4
  198. package/dist/types/components/Popover/theme.d.ts +1 -1
  199. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  200. package/dist/types/components/Radio/index.d.ts +3 -3
  201. package/dist/types/components/Radio/styles.d.ts +5 -5
  202. package/dist/types/components/Radio/theme.d.ts +1 -1
  203. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  204. package/dist/types/components/RadioTab/index.d.ts +3 -3
  205. package/dist/types/components/RadioTab/styles.d.ts +9 -3
  206. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  207. package/dist/types/components/Search/index.d.ts +5 -5
  208. package/dist/types/components/Select/index.d.ts +11 -11
  209. package/dist/types/components/Select/styles.d.ts +6 -6
  210. package/dist/types/components/Select/utils.d.ts +7 -11
  211. package/dist/types/components/Shape/index.d.ts +1 -1
  212. package/dist/types/components/Shape/styles.d.ts +3 -3
  213. package/dist/types/components/Slider/Range.d.ts +3 -3
  214. package/dist/types/components/Slider/index.d.ts +2 -2
  215. package/dist/types/components/Slider/styles.d.ts +16 -16
  216. package/dist/types/components/Slider/theme.d.ts +1 -1
  217. package/dist/types/components/Stack/index.d.ts +1 -1
  218. package/dist/types/components/Swiper/index.d.ts +17 -16
  219. package/dist/types/components/Swiper/styles.d.ts +53 -53
  220. package/dist/types/components/Swiper/theme.d.ts +1 -1
  221. package/dist/types/components/System/index.d.ts +14 -14
  222. package/dist/types/components/Table/index.d.ts +7 -6
  223. package/dist/types/components/Table/styles.d.ts +1 -1
  224. package/dist/types/components/Table/theme.d.ts +1 -1
  225. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  226. package/dist/types/components/Tabs/TabList.d.ts +4 -4
  227. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  228. package/dist/types/components/Tabs/styles.d.ts +2 -2
  229. package/dist/types/components/Tabs/theme.d.ts +2 -2
  230. package/dist/types/components/Tag/index.d.ts +3 -2
  231. package/dist/types/components/Tag/styles.d.ts +1 -1
  232. package/dist/types/components/Tag/theme.d.ts +2 -2
  233. package/dist/types/components/Text/index.d.ts +2 -2
  234. package/dist/types/components/Textarea/index.d.ts +1 -1
  235. package/dist/types/components/Textarea/theme.d.ts +1 -1
  236. package/dist/types/components/TimePicker/index.d.ts +2 -2
  237. package/dist/types/components/Toast/Growl.d.ts +1 -1
  238. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  239. package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
  240. package/dist/types/components/Toast/index.d.ts +6 -6
  241. package/dist/types/components/Toast/styles.d.ts +16 -16
  242. package/dist/types/components/Toast/theme.d.ts +2 -2
  243. package/dist/types/components/Toast/utils.d.ts +13 -13
  244. package/dist/types/components/Toggle/index.d.ts +3 -3
  245. package/dist/types/components/Toggle/styles.d.ts +4 -5
  246. package/dist/types/components/Toggle/theme.d.ts +5 -5
  247. package/dist/types/components/Tooltip/index.d.ts +2 -2
  248. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  249. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  250. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  251. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  252. package/dist/types/components/VariantIcon/theme.d.ts +2 -2
  253. package/dist/types/components/WuiProvider/font.d.ts +5 -3
  254. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  255. package/dist/types/theme/colors.d.ts +11 -3
  256. package/dist/types/theme/dark.d.ts +1 -1
  257. package/dist/types/theme/defaultFields.d.ts +10 -10
  258. package/dist/types/theme/fonts.d.ts +5 -5
  259. package/dist/types/theme/index.d.ts +31 -31
  260. package/dist/types/theme/screens.d.ts +1 -1
  261. package/dist/types/theme/space.d.ts +1 -1
  262. package/dist/types/theme/typography.d.ts +1 -1
  263. package/dist/types/utils/field-styles.d.ts +6 -6
  264. package/dist/types/utils/index.d.ts +2 -2
  265. package/dist/types/utils/ts-utils.d.ts +1 -1
  266. package/dist/types/utils/use-copy-text.d.ts +1 -1
  267. package/dist/types/utils/use-create-portal.d.ts +1 -1
  268. package/dist/types/utils/use-viewport.d.ts +2 -2
  269. package/dist/types/utils/wrap-children.d.ts +1 -1
  270. package/dist/{use-fork-ref-DvaCTfQ_.mjs → use-fork-ref-CUZErtAC.mjs} +3 -4
  271. package/dist/{use-viewport-CWpjoHXy.mjs → use-viewport-CfklieD-.mjs} +2 -2
  272. package/dist/utils.mjs +29 -102
  273. package/dist/wrap-children-aq69jtFP.mjs +12 -0
  274. package/package.json +28 -4
  275. package/dist/LVA2YJMS-C-kJ1lkr.mjs +0 -873
  276. package/dist/hide-focus-rings-root-CCXdysih.mjs +0 -15
  277. package/dist/index-CYmF7qCH.mjs +0 -11
  278. package/dist/index-C_k-m0Rl.mjs +0 -36
  279. package/dist/index-D8v_VJ9z.mjs +0 -26
  280. package/dist/index-DpkNUfAS.mjs +0 -11
  281. package/dist/index-i_anpNhw.mjs +0 -66
  282. package/dist/index-wl3X6EM1.mjs +0 -16
  283. package/dist/jsx-runtime-B7I4PJ0H.mjs +0 -613
  284. package/dist/radio-group-C0fUHvam.mjs +0 -52
  285. package/dist/throttle-CW18pWlW.mjs +0 -13
  286. package/dist/wrap-children-DBSD-X5-.mjs +0 -9
  287. package/dist/{downshift.esm-B7Jil1wW.mjs → downshift.esm-D0ns_SQs.mjs} +9 -9
@@ -0,0 +1,1482 @@
1
+ "use client";
2
+ import * as j from "react";
3
+ import Pt, { isValidElement as sr, useMemo as Ve, useState as re, useLayoutEffect as cr, useEffect as V, useRef as he, useCallback as Ot, useReducer as fr, createContext as lr, useContext as dr } from "react";
4
+ var vr = Object.defineProperty, pr = Object.defineProperties, br = Object.getOwnPropertyDescriptors, me = Object.getOwnPropertySymbols, Ct = Object.prototype.hasOwnProperty, St = Object.prototype.propertyIsEnumerable, dt = (e, t, n) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
5
+ for (var n in t || (t = {}))
6
+ Ct.call(t, n) && dt(e, n, t[n]);
7
+ if (me)
8
+ for (var n of me(t))
9
+ St.call(t, n) && dt(e, n, t[n]);
10
+ return e;
11
+ }, L = (e, t) => pr(e, br(t)), Ft = (e, t) => {
12
+ var n = {};
13
+ for (var o in e)
14
+ Ct.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
15
+ if (e != null && me)
16
+ for (var o of me(e))
17
+ t.indexOf(o) < 0 && St.call(e, o) && (n[o] = e[o]);
18
+ return n;
19
+ }, gr = Object.defineProperty, yr = Object.defineProperties, mr = Object.getOwnPropertyDescriptors, Ee = Object.getOwnPropertySymbols, Dt = Object.prototype.hasOwnProperty, At = Object.prototype.propertyIsEnumerable, vt = (e, t, n) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Le = (e, t) => {
20
+ for (var n in t || (t = {}))
21
+ Dt.call(t, n) && vt(e, n, t[n]);
22
+ if (Ee)
23
+ for (var n of Ee(t))
24
+ At.call(t, n) && vt(e, n, t[n]);
25
+ return e;
26
+ }, Er = (e, t) => yr(e, mr(t)), pn = (e, t) => {
27
+ var n = {};
28
+ for (var o in e)
29
+ Dt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
30
+ if (e != null && Ee)
31
+ for (var o of Ee(e))
32
+ t.indexOf(o) < 0 && At.call(e, o) && (n[o] = e[o]);
33
+ return n;
34
+ };
35
+ function bn(...e) {
36
+ }
37
+ function gn(e, t) {
38
+ if (hr(e)) {
39
+ const n = _r(t) ? t() : t;
40
+ return e(n);
41
+ }
42
+ return e;
43
+ }
44
+ function hr(e) {
45
+ return typeof e == "function";
46
+ }
47
+ function _r(e) {
48
+ return typeof e == "function";
49
+ }
50
+ function $e(e, t) {
51
+ return typeof Object.hasOwn == "function" ? Object.hasOwn(e, t) : Object.prototype.hasOwnProperty.call(e, t);
52
+ }
53
+ function yn(...e) {
54
+ return (...t) => {
55
+ for (const n of e)
56
+ typeof n == "function" && n(...t);
57
+ };
58
+ }
59
+ function mn(e) {
60
+ return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
61
+ }
62
+ function En(e, t) {
63
+ const n = Le({}, e);
64
+ for (const o of t)
65
+ $e(n, o) && delete n[o];
66
+ return n;
67
+ }
68
+ function hn(e, t) {
69
+ const n = {};
70
+ for (const o of t)
71
+ $e(e, o) && (n[o] = e[o]);
72
+ return n;
73
+ }
74
+ function _n(e) {
75
+ return e;
76
+ }
77
+ function Rn(e, t) {
78
+ if (!e)
79
+ throw typeof t != "string" ? new Error("Invariant failed") : new Error(t);
80
+ }
81
+ function wn(e) {
82
+ return Object.keys(e);
83
+ }
84
+ function Tn(e, ...t) {
85
+ const n = typeof e == "function" ? e(...t) : e;
86
+ return n == null ? !1 : !n;
87
+ }
88
+ function Rr(e) {
89
+ return e.disabled || e["aria-disabled"] === !0 || e["aria-disabled"] === "true";
90
+ }
91
+ function wr(e) {
92
+ const t = {};
93
+ for (const n in e)
94
+ e[n] !== void 0 && (t[n] = e[n]);
95
+ return t;
96
+ }
97
+ function xn(...e) {
98
+ for (const t of e)
99
+ if (t !== void 0) return t;
100
+ }
101
+ function Tr(e, t) {
102
+ typeof e == "function" ? e(t) : e && (e.current = t);
103
+ }
104
+ function xr(e) {
105
+ return !e || !sr(e) ? !1 : "ref" in e.props || "ref" in e;
106
+ }
107
+ function Pr(e) {
108
+ return xr(e) ? x({}, e.props).ref || e.ref : null;
109
+ }
110
+ function Or(e, t) {
111
+ const n = x({}, e);
112
+ for (const o in t) {
113
+ if (!$e(t, o)) continue;
114
+ if (o === "className") {
115
+ const s = "className";
116
+ n[s] = e[s] ? `${e[s]} ${t[s]}` : t[s];
117
+ continue;
118
+ }
119
+ if (o === "style") {
120
+ const s = "style";
121
+ n[s] = e[s] ? x(x({}, e[s]), t[s]) : t[s];
122
+ continue;
123
+ }
124
+ const i = t[o];
125
+ if (typeof i == "function" && o.startsWith("on")) {
126
+ const s = e[o];
127
+ if (typeof s == "function") {
128
+ n[o] = (...v) => {
129
+ i(...v), s(...v);
130
+ };
131
+ continue;
132
+ }
133
+ }
134
+ n[o] = i;
135
+ }
136
+ return n;
137
+ }
138
+ var X = Cr();
139
+ function Cr() {
140
+ var e;
141
+ return typeof window < "u" && !!((e = window.document) != null && e.createElement);
142
+ }
143
+ function Q(e) {
144
+ return e ? "self" in e ? e.document : e.ownerDocument || document : document;
145
+ }
146
+ function Pn(e) {
147
+ return e ? "self" in e ? e.self : Q(e).defaultView || window : self;
148
+ }
149
+ function G(e, t = !1) {
150
+ const { activeElement: n } = Q(e);
151
+ if (!(n != null && n.nodeName))
152
+ return null;
153
+ if (We(n) && n.contentDocument)
154
+ return G(
155
+ n.contentDocument.body,
156
+ t
157
+ );
158
+ if (t) {
159
+ const o = n.getAttribute("aria-activedescendant");
160
+ if (o) {
161
+ const i = Q(n).getElementById(o);
162
+ if (i)
163
+ return i;
164
+ }
165
+ }
166
+ return n;
167
+ }
168
+ function ee(e, t) {
169
+ return e === t || e.contains(t);
170
+ }
171
+ function We(e) {
172
+ return e.tagName === "IFRAME";
173
+ }
174
+ function Sr(e) {
175
+ const t = e.tagName.toLowerCase();
176
+ return t === "button" ? !0 : t === "input" && e.type ? Fr.indexOf(e.type) !== -1 : !1;
177
+ }
178
+ var Fr = [
179
+ "button",
180
+ "color",
181
+ "file",
182
+ "image",
183
+ "reset",
184
+ "submit"
185
+ ];
186
+ function Dr(e) {
187
+ if (typeof e.checkVisibility == "function")
188
+ return e.checkVisibility();
189
+ const t = e;
190
+ return t.offsetWidth > 0 || t.offsetHeight > 0 || e.getClientRects().length > 0;
191
+ }
192
+ function Ye(e) {
193
+ try {
194
+ const t = e instanceof HTMLInputElement && e.selectionStart !== null, n = e.tagName === "TEXTAREA";
195
+ return t || n || !1;
196
+ } catch {
197
+ return !1;
198
+ }
199
+ }
200
+ function On(e) {
201
+ return e.isContentEditable || Ye(e);
202
+ }
203
+ function Cn(e) {
204
+ if (Ye(e))
205
+ return e.value;
206
+ if (e.isContentEditable) {
207
+ const t = Q(e).createRange();
208
+ return t.selectNodeContents(e), t.toString();
209
+ }
210
+ return "";
211
+ }
212
+ function Sn(e) {
213
+ let t = 0, n = 0;
214
+ if (Ye(e))
215
+ t = e.selectionStart || 0, n = e.selectionEnd || 0;
216
+ else if (e.isContentEditable) {
217
+ const o = Q(e).getSelection();
218
+ if (o != null && o.rangeCount && o.anchorNode && ee(e, o.anchorNode) && o.focusNode && ee(e, o.focusNode)) {
219
+ const i = o.getRangeAt(0), s = i.cloneRange();
220
+ s.selectNodeContents(e), s.setEnd(i.startContainer, i.startOffset), t = s.toString().length, s.setEnd(i.endContainer, i.endOffset), n = s.toString().length;
221
+ }
222
+ }
223
+ return { start: t, end: n };
224
+ }
225
+ function Ar(e, t) {
226
+ const n = ["dialog", "menu", "listbox", "tree", "grid"], o = e == null ? void 0 : e.getAttribute("role");
227
+ return o && n.indexOf(o) !== -1 ? o : t;
228
+ }
229
+ function Fn(e, t) {
230
+ var n;
231
+ const o = {
232
+ menu: "menuitem",
233
+ listbox: "option",
234
+ tree: "treeitem"
235
+ }, i = Ar(e);
236
+ return i && (n = o[i]) != null ? n : t;
237
+ }
238
+ function jr(e) {
239
+ if (!e) return null;
240
+ const t = (n) => n === "auto" || n === "scroll";
241
+ if (e.clientHeight && e.scrollHeight > e.clientHeight) {
242
+ const { overflowY: n } = getComputedStyle(e);
243
+ if (t(n)) return e;
244
+ } else if (e.clientWidth && e.scrollWidth > e.clientWidth) {
245
+ const { overflowX: n } = getComputedStyle(e);
246
+ if (t(n)) return e;
247
+ }
248
+ return jr(e.parentElement) || document.scrollingElement || document.body;
249
+ }
250
+ function Dn(e, t) {
251
+ const n = e.map((i, s) => [s, i]);
252
+ let o = !1;
253
+ return n.sort(([i, s], [v, l]) => {
254
+ const b = t(s), m = t(l);
255
+ return b === m || !b || !m ? 0 : Ir(b, m) ? (i > v && (o = !0), -1) : (i < v && (o = !0), 1);
256
+ }), o ? n.map(([i, s]) => s) : e;
257
+ }
258
+ function Ir(e, t) {
259
+ return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
260
+ }
261
+ function kr() {
262
+ return X && !!navigator.maxTouchPoints;
263
+ }
264
+ function jt() {
265
+ return X ? /mac|iphone|ipad|ipod/i.test(navigator.platform) : !1;
266
+ }
267
+ function Mr() {
268
+ return X && jt() && /apple/i.test(navigator.vendor);
269
+ }
270
+ function An() {
271
+ return X && /firefox\//i.test(navigator.userAgent);
272
+ }
273
+ function jn() {
274
+ return X && navigator.platform.startsWith("Mac") && !kr();
275
+ }
276
+ function Nr(e) {
277
+ return !!(e.currentTarget && !ee(e.currentTarget, e.target));
278
+ }
279
+ function pt(e) {
280
+ return e.target === e.currentTarget;
281
+ }
282
+ function In(e) {
283
+ const t = e.currentTarget;
284
+ if (!t) return !1;
285
+ const n = jt();
286
+ if (n && !e.metaKey || !n && !e.ctrlKey) return !1;
287
+ const o = t.tagName.toLowerCase();
288
+ return o === "a" || o === "button" && t.type === "submit" || o === "input" && t.type === "submit";
289
+ }
290
+ function kn(e) {
291
+ const t = e.currentTarget;
292
+ if (!t) return !1;
293
+ const n = t.tagName.toLowerCase();
294
+ return e.altKey ? n === "a" || n === "button" && t.type === "submit" || n === "input" && t.type === "submit" : !1;
295
+ }
296
+ function Mn(e, t, n) {
297
+ const o = new Event(t, n);
298
+ return e.dispatchEvent(o);
299
+ }
300
+ function Nn(e, t) {
301
+ const n = new FocusEvent("blur", t), o = e.dispatchEvent(n), i = Er(Le({}, t), { bubbles: !0 });
302
+ return e.dispatchEvent(new FocusEvent("focusout", i)), o;
303
+ }
304
+ function Vn(e, t, n) {
305
+ const o = new KeyboardEvent(t, n);
306
+ return e.dispatchEvent(o);
307
+ }
308
+ function Ln(e, t) {
309
+ const n = new MouseEvent("click", t);
310
+ return e.dispatchEvent(n);
311
+ }
312
+ function Vr(e, t) {
313
+ const n = t || e.currentTarget, o = e.relatedTarget;
314
+ return !o || !ee(n, o);
315
+ }
316
+ function Me(e, t, n, o) {
317
+ const s = ((l) => {
318
+ const b = requestAnimationFrame(l);
319
+ return () => cancelAnimationFrame(b);
320
+ })(() => {
321
+ e.removeEventListener(t, v, !0), n();
322
+ }), v = () => {
323
+ s(), n();
324
+ };
325
+ return e.addEventListener(t, v, { once: !0, capture: !0 }), s;
326
+ }
327
+ function M(e, t, n, o = window) {
328
+ const i = [];
329
+ try {
330
+ o.document.addEventListener(e, t, n);
331
+ for (const v of Array.from(o.frames))
332
+ i.push(M(e, t, n, v));
333
+ } catch {
334
+ }
335
+ return () => {
336
+ try {
337
+ o.document.removeEventListener(e, t, n);
338
+ } catch {
339
+ }
340
+ for (const v of i)
341
+ v();
342
+ };
343
+ }
344
+ var Be = x({}, j), bt = Be.useId;
345
+ Be.useDeferredValue;
346
+ var gt = Be.useInsertionEffect, _e = X ? cr : V;
347
+ function $n(e) {
348
+ const t = he(e);
349
+ return _e(() => {
350
+ t.current = e;
351
+ }), t;
352
+ }
353
+ function N(e) {
354
+ const t = he(() => {
355
+ throw new Error("Cannot call an event handler while rendering.");
356
+ });
357
+ return gt ? gt(() => {
358
+ t.current = e;
359
+ }) : t.current = e, Ot((...n) => {
360
+ var o;
361
+ return (o = t.current) == null ? void 0 : o.call(t, ...n);
362
+ }, []);
363
+ }
364
+ function Wn(e) {
365
+ const [t, n] = re(null);
366
+ return _e(() => {
367
+ if (t == null || !e) return;
368
+ let o = null;
369
+ return e((i) => (o = i, t)), () => {
370
+ e(o);
371
+ };
372
+ }, [t, e]), [t, n];
373
+ }
374
+ function Ke(...e) {
375
+ return Ve(() => {
376
+ if (e.some(Boolean))
377
+ return (t) => {
378
+ for (const n of e)
379
+ Tr(n, t);
380
+ };
381
+ }, e);
382
+ }
383
+ function Yn(e) {
384
+ if (bt) {
385
+ const o = bt();
386
+ return e || o;
387
+ }
388
+ const [t, n] = re(e);
389
+ return _e(() => {
390
+ if (e || t) return;
391
+ const o = Math.random().toString(36).slice(2, 8);
392
+ n(`id-${o}`);
393
+ }, [e, t]), e || t;
394
+ }
395
+ function Lr(e, t) {
396
+ const n = (s) => {
397
+ if (typeof s == "string")
398
+ return s;
399
+ }, [o, i] = re(() => n(t));
400
+ return _e(() => {
401
+ const s = e && "current" in e ? e.current : e;
402
+ i((s == null ? void 0 : s.tagName.toLowerCase()) || n(t));
403
+ }, [e, t]), o;
404
+ }
405
+ function Bn(e, t) {
406
+ const n = he(!1);
407
+ V(() => {
408
+ if (n.current)
409
+ return e();
410
+ n.current = !0;
411
+ }, t), V(
412
+ () => () => {
413
+ n.current = !1;
414
+ },
415
+ []
416
+ );
417
+ }
418
+ function Kn() {
419
+ return fr(() => [], []);
420
+ }
421
+ function Un(e) {
422
+ return N(
423
+ typeof e == "function" ? e : () => e
424
+ );
425
+ }
426
+ function qn(e, t, n = []) {
427
+ const o = Ot(
428
+ (i) => (e.wrapElement && (i = e.wrapElement(i)), t(i)),
429
+ [...n, e.wrapElement]
430
+ );
431
+ return L(x({}, e), { wrapElement: o });
432
+ }
433
+ function Xn(e = !1, t) {
434
+ const [n, o] = re(null);
435
+ return { portalRef: Ke(o, t), portalNode: n, domReady: !e || n };
436
+ }
437
+ function Gn(e, t, n) {
438
+ const o = e.onLoadedMetadataCapture, i = Ve(() => Object.assign(() => {
439
+ }, L(x({}, o), { [t]: n })), [o, t, n]);
440
+ return [o == null ? void 0 : o[t], { onLoadedMetadataCapture: i }];
441
+ }
442
+ function Jn() {
443
+ return V(() => {
444
+ M("mousemove", Wr, !0), M("mousedown", ge, !0), M("mouseup", ge, !0), M("keydown", ge, !0), M("scroll", ge, !0);
445
+ }, []), N(() => Ue);
446
+ }
447
+ var Ue = !1, yt = 0, mt = 0;
448
+ function $r(e) {
449
+ const t = e.movementX || e.screenX - yt, n = e.movementY || e.screenY - mt;
450
+ return yt = e.screenX, mt = e.screenY, t || n || process.env.NODE_ENV === "test";
451
+ }
452
+ function Wr(e) {
453
+ $r(e) && (Ue = !0);
454
+ }
455
+ function ge() {
456
+ Ue = !1;
457
+ }
458
+ var ye = { exports: {} }, z = {}, Et;
459
+ function Yr() {
460
+ if (Et) return z;
461
+ Et = 1;
462
+ var e = Pt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
463
+ function v(l, b, m) {
464
+ var g, _ = {}, C = null, Y = null;
465
+ m !== void 0 && (C = "" + m), b.key !== void 0 && (C = "" + b.key), b.ref !== void 0 && (Y = b.ref);
466
+ for (g in b) o.call(b, g) && !s.hasOwnProperty(g) && (_[g] = b[g]);
467
+ if (l && l.defaultProps) for (g in b = l.defaultProps, b) _[g] === void 0 && (_[g] = b[g]);
468
+ return { $$typeof: t, type: l, key: C, ref: Y, props: _, _owner: i.current };
469
+ }
470
+ return z.Fragment = n, z.jsx = v, z.jsxs = v, z;
471
+ }
472
+ var Z = {}, ht;
473
+ function Br() {
474
+ return ht || (ht = 1, process.env.NODE_ENV !== "production" && function() {
475
+ var e = Pt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), l = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), ne = Symbol.iterator, we = "@@iterator";
476
+ function oe(r) {
477
+ if (r === null || typeof r != "object")
478
+ return null;
479
+ var a = ne && r[ne] || r[we];
480
+ return typeof a == "function" ? a : null;
481
+ }
482
+ var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
483
+ function T(r) {
484
+ {
485
+ for (var a = arguments.length, u = new Array(a > 1 ? a - 1 : 0), f = 1; f < a; f++)
486
+ u[f - 1] = arguments[f];
487
+ ae("error", r, u);
488
+ }
489
+ }
490
+ function ae(r, a, u) {
491
+ {
492
+ var f = k.ReactDebugCurrentFrame, y = f.getStackAddendum();
493
+ y !== "" && (a += "%s", u = u.concat([y]));
494
+ var E = u.map(function(p) {
495
+ return String(p);
496
+ });
497
+ E.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, E);
498
+ }
499
+ }
500
+ var Te = !1, ie = !1, xe = !1, ue = !1, Pe = !1, se;
501
+ se = Symbol.for("react.module.reference");
502
+ function Oe(r) {
503
+ return !!(typeof r == "string" || typeof r == "function" || r === o || r === s || Pe || r === i || r === m || r === g || ue || r === Y || Te || ie || xe || typeof r == "object" && r !== null && (r.$$typeof === C || r.$$typeof === _ || r.$$typeof === v || r.$$typeof === l || r.$$typeof === b || // This needs to include all possible module reference object
504
+ // types supported by any Flight configuration anywhere since
505
+ // we don't know which Flight build this will end up being used
506
+ // with.
507
+ r.$$typeof === se || r.getModuleId !== void 0));
508
+ }
509
+ function ce(r, a, u) {
510
+ var f = r.displayName;
511
+ if (f)
512
+ return f;
513
+ var y = a.displayName || a.name || "";
514
+ return y !== "" ? u + "(" + y + ")" : u;
515
+ }
516
+ function fe(r) {
517
+ return r.displayName || "Context";
518
+ }
519
+ function D(r) {
520
+ if (r == null)
521
+ return null;
522
+ if (typeof r.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
523
+ return r.displayName || r.name || null;
524
+ if (typeof r == "string")
525
+ return r;
526
+ switch (r) {
527
+ case o:
528
+ return "Fragment";
529
+ case n:
530
+ return "Portal";
531
+ case s:
532
+ return "Profiler";
533
+ case i:
534
+ return "StrictMode";
535
+ case m:
536
+ return "Suspense";
537
+ case g:
538
+ return "SuspenseList";
539
+ }
540
+ if (typeof r == "object")
541
+ switch (r.$$typeof) {
542
+ case l:
543
+ var a = r;
544
+ return fe(a) + ".Consumer";
545
+ case v:
546
+ var u = r;
547
+ return fe(u._context) + ".Provider";
548
+ case b:
549
+ return ce(r, r.render, "ForwardRef");
550
+ case _:
551
+ var f = r.displayName || null;
552
+ return f !== null ? f : D(r.type) || "Memo";
553
+ case C: {
554
+ var y = r, E = y._payload, p = y._init;
555
+ try {
556
+ return D(p(E));
557
+ } catch {
558
+ return null;
559
+ }
560
+ }
561
+ }
562
+ return null;
563
+ }
564
+ var A = Object.assign, $ = 0, c, h, P, I, le, J, Je;
565
+ function He() {
566
+ }
567
+ He.__reactDisabledLog = !0;
568
+ function kt() {
569
+ {
570
+ if ($ === 0) {
571
+ c = console.log, h = console.info, P = console.warn, I = console.error, le = console.group, J = console.groupCollapsed, Je = console.groupEnd;
572
+ var r = {
573
+ configurable: !0,
574
+ enumerable: !0,
575
+ value: He,
576
+ writable: !0
577
+ };
578
+ Object.defineProperties(console, {
579
+ info: r,
580
+ log: r,
581
+ warn: r,
582
+ error: r,
583
+ group: r,
584
+ groupCollapsed: r,
585
+ groupEnd: r
586
+ });
587
+ }
588
+ $++;
589
+ }
590
+ }
591
+ function Mt() {
592
+ {
593
+ if ($--, $ === 0) {
594
+ var r = {
595
+ configurable: !0,
596
+ enumerable: !0,
597
+ writable: !0
598
+ };
599
+ Object.defineProperties(console, {
600
+ log: A({}, r, {
601
+ value: c
602
+ }),
603
+ info: A({}, r, {
604
+ value: h
605
+ }),
606
+ warn: A({}, r, {
607
+ value: P
608
+ }),
609
+ error: A({}, r, {
610
+ value: I
611
+ }),
612
+ group: A({}, r, {
613
+ value: le
614
+ }),
615
+ groupCollapsed: A({}, r, {
616
+ value: J
617
+ }),
618
+ groupEnd: A({}, r, {
619
+ value: Je
620
+ })
621
+ });
622
+ }
623
+ $ < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
624
+ }
625
+ }
626
+ var Ce = k.ReactCurrentDispatcher, Se;
627
+ function de(r, a, u) {
628
+ {
629
+ if (Se === void 0)
630
+ try {
631
+ throw Error();
632
+ } catch (y) {
633
+ var f = y.stack.trim().match(/\n( *(at )?)/);
634
+ Se = f && f[1] || "";
635
+ }
636
+ return `
637
+ ` + Se + r;
638
+ }
639
+ }
640
+ var Fe = !1, ve;
641
+ {
642
+ var Nt = typeof WeakMap == "function" ? WeakMap : Map;
643
+ ve = new Nt();
644
+ }
645
+ function ze(r, a) {
646
+ if (!r || Fe)
647
+ return "";
648
+ {
649
+ var u = ve.get(r);
650
+ if (u !== void 0)
651
+ return u;
652
+ }
653
+ var f;
654
+ Fe = !0;
655
+ var y = Error.prepareStackTrace;
656
+ Error.prepareStackTrace = void 0;
657
+ var E;
658
+ E = Ce.current, Ce.current = null, kt();
659
+ try {
660
+ if (a) {
661
+ var p = function() {
662
+ throw Error();
663
+ };
664
+ if (Object.defineProperty(p.prototype, "props", {
665
+ set: function() {
666
+ throw Error();
667
+ }
668
+ }), typeof Reflect == "object" && Reflect.construct) {
669
+ try {
670
+ Reflect.construct(p, []);
671
+ } catch (S) {
672
+ f = S;
673
+ }
674
+ Reflect.construct(r, [], p);
675
+ } else {
676
+ try {
677
+ p.call();
678
+ } catch (S) {
679
+ f = S;
680
+ }
681
+ r.call(p.prototype);
682
+ }
683
+ } else {
684
+ try {
685
+ throw Error();
686
+ } catch (S) {
687
+ f = S;
688
+ }
689
+ r();
690
+ }
691
+ } catch (S) {
692
+ if (S && f && typeof S.stack == "string") {
693
+ for (var d = S.stack.split(`
694
+ `), O = f.stack.split(`
695
+ `), R = d.length - 1, w = O.length - 1; R >= 1 && w >= 0 && d[R] !== O[w]; )
696
+ w--;
697
+ for (; R >= 1 && w >= 0; R--, w--)
698
+ if (d[R] !== O[w]) {
699
+ if (R !== 1 || w !== 1)
700
+ do
701
+ if (R--, w--, w < 0 || d[R] !== O[w]) {
702
+ var F = `
703
+ ` + d[R].replace(" at new ", " at ");
704
+ return r.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", r.displayName)), typeof r == "function" && ve.set(r, F), F;
705
+ }
706
+ while (R >= 1 && w >= 0);
707
+ break;
708
+ }
709
+ }
710
+ } finally {
711
+ Fe = !1, Ce.current = E, Mt(), Error.prepareStackTrace = y;
712
+ }
713
+ var K = r ? r.displayName || r.name : "", W = K ? de(K) : "";
714
+ return typeof r == "function" && ve.set(r, W), W;
715
+ }
716
+ function Vt(r, a, u) {
717
+ return ze(r, !1);
718
+ }
719
+ function Lt(r) {
720
+ var a = r.prototype;
721
+ return !!(a && a.isReactComponent);
722
+ }
723
+ function pe(r, a, u) {
724
+ if (r == null)
725
+ return "";
726
+ if (typeof r == "function")
727
+ return ze(r, Lt(r));
728
+ if (typeof r == "string")
729
+ return de(r);
730
+ switch (r) {
731
+ case m:
732
+ return de("Suspense");
733
+ case g:
734
+ return de("SuspenseList");
735
+ }
736
+ if (typeof r == "object")
737
+ switch (r.$$typeof) {
738
+ case b:
739
+ return Vt(r.render);
740
+ case _:
741
+ return pe(r.type, a, u);
742
+ case C: {
743
+ var f = r, y = f._payload, E = f._init;
744
+ try {
745
+ return pe(E(y), a, u);
746
+ } catch {
747
+ }
748
+ }
749
+ }
750
+ return "";
751
+ }
752
+ var H = Object.prototype.hasOwnProperty, Ze = {}, Qe = k.ReactDebugCurrentFrame;
753
+ function be(r) {
754
+ if (r) {
755
+ var a = r._owner, u = pe(r.type, r._source, a ? a.type : null);
756
+ Qe.setExtraStackFrame(u);
757
+ } else
758
+ Qe.setExtraStackFrame(null);
759
+ }
760
+ function $t(r, a, u, f, y) {
761
+ {
762
+ var E = Function.call.bind(H);
763
+ for (var p in r)
764
+ if (E(r, p)) {
765
+ var d = void 0;
766
+ try {
767
+ if (typeof r[p] != "function") {
768
+ var O = Error((f || "React class") + ": " + u + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
769
+ throw O.name = "Invariant Violation", O;
770
+ }
771
+ d = r[p](a, p, f, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
772
+ } catch (R) {
773
+ d = R;
774
+ }
775
+ d && !(d instanceof Error) && (be(y), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", u, p, typeof d), be(null)), d instanceof Error && !(d.message in Ze) && (Ze[d.message] = !0, be(y), T("Failed %s type: %s", u, d.message), be(null));
776
+ }
777
+ }
778
+ }
779
+ var Wt = Array.isArray;
780
+ function De(r) {
781
+ return Wt(r);
782
+ }
783
+ function Yt(r) {
784
+ {
785
+ var a = typeof Symbol == "function" && Symbol.toStringTag, u = a && r[Symbol.toStringTag] || r.constructor.name || "Object";
786
+ return u;
787
+ }
788
+ }
789
+ function Bt(r) {
790
+ try {
791
+ return et(r), !1;
792
+ } catch {
793
+ return !0;
794
+ }
795
+ }
796
+ function et(r) {
797
+ return "" + r;
798
+ }
799
+ function tt(r) {
800
+ if (Bt(r))
801
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Yt(r)), et(r);
802
+ }
803
+ var rt = k.ReactCurrentOwner, Kt = {
804
+ key: !0,
805
+ ref: !0,
806
+ __self: !0,
807
+ __source: !0
808
+ }, nt, ot;
809
+ function Ut(r) {
810
+ if (H.call(r, "ref")) {
811
+ var a = Object.getOwnPropertyDescriptor(r, "ref").get;
812
+ if (a && a.isReactWarning)
813
+ return !1;
814
+ }
815
+ return r.ref !== void 0;
816
+ }
817
+ function qt(r) {
818
+ if (H.call(r, "key")) {
819
+ var a = Object.getOwnPropertyDescriptor(r, "key").get;
820
+ if (a && a.isReactWarning)
821
+ return !1;
822
+ }
823
+ return r.key !== void 0;
824
+ }
825
+ function Xt(r, a) {
826
+ typeof r.ref == "string" && rt.current;
827
+ }
828
+ function Gt(r, a) {
829
+ {
830
+ var u = function() {
831
+ nt || (nt = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
832
+ };
833
+ u.isReactWarning = !0, Object.defineProperty(r, "key", {
834
+ get: u,
835
+ configurable: !0
836
+ });
837
+ }
838
+ }
839
+ function Jt(r, a) {
840
+ {
841
+ var u = function() {
842
+ ot || (ot = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
843
+ };
844
+ u.isReactWarning = !0, Object.defineProperty(r, "ref", {
845
+ get: u,
846
+ configurable: !0
847
+ });
848
+ }
849
+ }
850
+ var Ht = function(r, a, u, f, y, E, p) {
851
+ var d = {
852
+ // This tag allows us to uniquely identify this as a React Element
853
+ $$typeof: t,
854
+ // Built-in properties that belong on the element
855
+ type: r,
856
+ key: a,
857
+ ref: u,
858
+ props: p,
859
+ // Record the component responsible for creating this element.
860
+ _owner: E
861
+ };
862
+ return d._store = {}, Object.defineProperty(d._store, "validated", {
863
+ configurable: !1,
864
+ enumerable: !1,
865
+ writable: !0,
866
+ value: !1
867
+ }), Object.defineProperty(d, "_self", {
868
+ configurable: !1,
869
+ enumerable: !1,
870
+ writable: !1,
871
+ value: f
872
+ }), Object.defineProperty(d, "_source", {
873
+ configurable: !1,
874
+ enumerable: !1,
875
+ writable: !1,
876
+ value: y
877
+ }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
878
+ };
879
+ function zt(r, a, u, f, y) {
880
+ {
881
+ var E, p = {}, d = null, O = null;
882
+ u !== void 0 && (tt(u), d = "" + u), qt(a) && (tt(a.key), d = "" + a.key), Ut(a) && (O = a.ref, Xt(a, y));
883
+ for (E in a)
884
+ H.call(a, E) && !Kt.hasOwnProperty(E) && (p[E] = a[E]);
885
+ if (r && r.defaultProps) {
886
+ var R = r.defaultProps;
887
+ for (E in R)
888
+ p[E] === void 0 && (p[E] = R[E]);
889
+ }
890
+ if (d || O) {
891
+ var w = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
892
+ d && Gt(p, w), O && Jt(p, w);
893
+ }
894
+ return Ht(r, d, O, y, f, rt.current, p);
895
+ }
896
+ }
897
+ var Ae = k.ReactCurrentOwner, at = k.ReactDebugCurrentFrame;
898
+ function B(r) {
899
+ if (r) {
900
+ var a = r._owner, u = pe(r.type, r._source, a ? a.type : null);
901
+ at.setExtraStackFrame(u);
902
+ } else
903
+ at.setExtraStackFrame(null);
904
+ }
905
+ var je;
906
+ je = !1;
907
+ function Ie(r) {
908
+ return typeof r == "object" && r !== null && r.$$typeof === t;
909
+ }
910
+ function it() {
911
+ {
912
+ if (Ae.current) {
913
+ var r = D(Ae.current.type);
914
+ if (r)
915
+ return `
916
+
917
+ Check the render method of \`` + r + "`.";
918
+ }
919
+ return "";
920
+ }
921
+ }
922
+ function Zt(r) {
923
+ return "";
924
+ }
925
+ var ut = {};
926
+ function Qt(r) {
927
+ {
928
+ var a = it();
929
+ if (!a) {
930
+ var u = typeof r == "string" ? r : r.displayName || r.name;
931
+ u && (a = `
932
+
933
+ Check the top-level render call using <` + u + ">.");
934
+ }
935
+ return a;
936
+ }
937
+ }
938
+ function st(r, a) {
939
+ {
940
+ if (!r._store || r._store.validated || r.key != null)
941
+ return;
942
+ r._store.validated = !0;
943
+ var u = Qt(a);
944
+ if (ut[u])
945
+ return;
946
+ ut[u] = !0;
947
+ var f = "";
948
+ r && r._owner && r._owner !== Ae.current && (f = " It was passed a child from " + D(r._owner.type) + "."), B(r), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, f), B(null);
949
+ }
950
+ }
951
+ function ct(r, a) {
952
+ {
953
+ if (typeof r != "object")
954
+ return;
955
+ if (De(r))
956
+ for (var u = 0; u < r.length; u++) {
957
+ var f = r[u];
958
+ Ie(f) && st(f, a);
959
+ }
960
+ else if (Ie(r))
961
+ r._store && (r._store.validated = !0);
962
+ else if (r) {
963
+ var y = oe(r);
964
+ if (typeof y == "function" && y !== r.entries)
965
+ for (var E = y.call(r), p; !(p = E.next()).done; )
966
+ Ie(p.value) && st(p.value, a);
967
+ }
968
+ }
969
+ }
970
+ function er(r) {
971
+ {
972
+ var a = r.type;
973
+ if (a == null || typeof a == "string")
974
+ return;
975
+ var u;
976
+ if (typeof a == "function")
977
+ u = a.propTypes;
978
+ else if (typeof a == "object" && (a.$$typeof === b || // Note: Memo only checks outer props here.
979
+ // Inner props are checked in the reconciler.
980
+ a.$$typeof === _))
981
+ u = a.propTypes;
982
+ else
983
+ return;
984
+ if (u) {
985
+ var f = D(a);
986
+ $t(u, r.props, "prop", f, r);
987
+ } else if (a.PropTypes !== void 0 && !je) {
988
+ je = !0;
989
+ var y = D(a);
990
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
991
+ }
992
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
993
+ }
994
+ }
995
+ function tr(r) {
996
+ {
997
+ for (var a = Object.keys(r.props), u = 0; u < a.length; u++) {
998
+ var f = a[u];
999
+ if (f !== "children" && f !== "key") {
1000
+ B(r), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), B(null);
1001
+ break;
1002
+ }
1003
+ }
1004
+ r.ref !== null && (B(r), T("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
1005
+ }
1006
+ }
1007
+ var ft = {};
1008
+ function lt(r, a, u, f, y, E) {
1009
+ {
1010
+ var p = Oe(r);
1011
+ if (!p) {
1012
+ var d = "";
1013
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1014
+ var O = Zt();
1015
+ O ? d += O : d += it();
1016
+ var R;
1017
+ r === null ? R = "null" : De(r) ? R = "array" : r !== void 0 && r.$$typeof === t ? (R = "<" + (D(r.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : R = typeof r, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, d);
1018
+ }
1019
+ var w = zt(r, a, u, y, E);
1020
+ if (w == null)
1021
+ return w;
1022
+ if (p) {
1023
+ var F = a.children;
1024
+ if (F !== void 0)
1025
+ if (f)
1026
+ if (De(F)) {
1027
+ for (var K = 0; K < F.length; K++)
1028
+ ct(F[K], r);
1029
+ Object.freeze && Object.freeze(F);
1030
+ } else
1031
+ T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1032
+ else
1033
+ ct(F, r);
1034
+ }
1035
+ if (H.call(a, "key")) {
1036
+ var W = D(r), S = Object.keys(a).filter(function(ur) {
1037
+ return ur !== "key";
1038
+ }), ke = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
1039
+ if (!ft[W + ke]) {
1040
+ var ir = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
1041
+ T(`A props object containing a "key" prop is being spread into JSX:
1042
+ let props = %s;
1043
+ <%s {...props} />
1044
+ React keys must be passed directly to JSX without using spread:
1045
+ let props = %s;
1046
+ <%s key={someKey} {...props} />`, ke, W, ir, W), ft[W + ke] = !0;
1047
+ }
1048
+ }
1049
+ return r === o ? tr(w) : er(w), w;
1050
+ }
1051
+ }
1052
+ function rr(r, a, u) {
1053
+ return lt(r, a, u, !0);
1054
+ }
1055
+ function nr(r, a, u) {
1056
+ return lt(r, a, u, !1);
1057
+ }
1058
+ var or = nr, ar = rr;
1059
+ Z.Fragment = o, Z.jsx = or, Z.jsxs = ar;
1060
+ }()), Z;
1061
+ }
1062
+ var _t;
1063
+ function Kr() {
1064
+ return _t || (_t = 1, process.env.NODE_ENV === "production" ? ye.exports = Yr() : ye.exports = Br()), ye.exports;
1065
+ }
1066
+ var U = Kr();
1067
+ function Ur(e) {
1068
+ const t = j.forwardRef((n, o) => e(L(x({}, n), { ref: o })));
1069
+ return t.displayName = e.displayName || e.name, t;
1070
+ }
1071
+ function Hn(e, t) {
1072
+ return j.memo(e, t);
1073
+ }
1074
+ function qr(e, t) {
1075
+ const n = t, { wrapElement: o, render: i } = n, s = Ft(n, ["wrapElement", "render"]), v = Ke(t.ref, Pr(i));
1076
+ let l;
1077
+ if (j.isValidElement(i)) {
1078
+ const b = L(x({}, i.props), { ref: v });
1079
+ l = j.cloneElement(i, Or(s, b));
1080
+ } else i ? l = i(s) : l = /* @__PURE__ */ U.jsx(e, x({}, s));
1081
+ return o ? o(l) : l;
1082
+ }
1083
+ function Xr(e) {
1084
+ const t = (n = {}) => e(n);
1085
+ return t.displayName = e.name, t;
1086
+ }
1087
+ function zn(e = [], t = []) {
1088
+ const n = j.createContext(void 0), o = j.createContext(void 0), i = () => j.useContext(n), s = (m = !1) => {
1089
+ const g = j.useContext(o), _ = i();
1090
+ return m ? g : g || _;
1091
+ }, v = () => {
1092
+ const m = j.useContext(o), g = i();
1093
+ if (!(m && m === g))
1094
+ return g;
1095
+ }, l = (m) => e.reduceRight(
1096
+ (g, _) => /* @__PURE__ */ U.jsx(_, L(x({}, m), { children: g })),
1097
+ /* @__PURE__ */ U.jsx(n.Provider, x({}, m))
1098
+ );
1099
+ return {
1100
+ context: n,
1101
+ scopedContext: o,
1102
+ useContext: i,
1103
+ useScopedContext: s,
1104
+ useProviderContext: v,
1105
+ ContextProvider: l,
1106
+ ScopedContextProvider: (m) => /* @__PURE__ */ U.jsx(l, L(x({}, m), { children: t.reduceRight(
1107
+ (g, _) => /* @__PURE__ */ U.jsx(_, L(x({}, m), { children: g })),
1108
+ /* @__PURE__ */ U.jsx(o.Provider, x({}, m))
1109
+ ) }))
1110
+ };
1111
+ }
1112
+ var Gr = lr(!0), Re = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
1113
+ function Jr(e) {
1114
+ return Number.parseInt(e.getAttribute("tabindex") || "0", 10) < 0;
1115
+ }
1116
+ function q(e) {
1117
+ return !(!e.matches(Re) || !Dr(e) || e.closest("[inert]"));
1118
+ }
1119
+ function te(e) {
1120
+ if (!q(e) || Jr(e)) return !1;
1121
+ if (!("form" in e) || !e.form || e.checked || e.type !== "radio") return !0;
1122
+ const t = e.form.elements.namedItem(e.name);
1123
+ if (!t || !("length" in t)) return !0;
1124
+ const n = G(e);
1125
+ return !n || n === e || !("form" in n) || n.form !== e.form || n.name !== e.name;
1126
+ }
1127
+ function qe(e, t) {
1128
+ const n = Array.from(
1129
+ e.querySelectorAll(Re)
1130
+ );
1131
+ t && n.unshift(e);
1132
+ const o = n.filter(q);
1133
+ return o.forEach((i, s) => {
1134
+ if (We(i) && i.contentDocument) {
1135
+ const v = i.contentDocument.body;
1136
+ o.splice(s, 1, ...qe(v));
1137
+ }
1138
+ }), o;
1139
+ }
1140
+ function Xe(e, t, n) {
1141
+ const o = Array.from(
1142
+ e.querySelectorAll(Re)
1143
+ ), i = o.filter(te);
1144
+ return t && te(e) && i.unshift(e), i.forEach((s, v) => {
1145
+ if (We(s) && s.contentDocument) {
1146
+ const l = s.contentDocument.body, b = Xe(
1147
+ l,
1148
+ !1,
1149
+ n
1150
+ );
1151
+ i.splice(v, 1, ...b);
1152
+ }
1153
+ }), !i.length && n ? o : i;
1154
+ }
1155
+ function Zn(e, t, n) {
1156
+ const [o] = Xe(
1157
+ e,
1158
+ t,
1159
+ n
1160
+ );
1161
+ return o || null;
1162
+ }
1163
+ function Hr(e, t, n, o) {
1164
+ const i = G(e), s = qe(e, t), v = s.indexOf(i), l = s.slice(v + 1);
1165
+ return l.find(te) || (n ? s.find(te) : null) || (o ? l[0] : null) || null;
1166
+ }
1167
+ function Qn(e, t) {
1168
+ return Hr(
1169
+ document.body,
1170
+ !1,
1171
+ e,
1172
+ t
1173
+ );
1174
+ }
1175
+ function zr(e, t, n, o) {
1176
+ const i = G(e), s = qe(e, t).reverse(), v = s.indexOf(i);
1177
+ return s.slice(v + 1).find(te) || null || null || null;
1178
+ }
1179
+ function eo(e, t) {
1180
+ return zr(
1181
+ document.body,
1182
+ !1
1183
+ );
1184
+ }
1185
+ function Zr(e) {
1186
+ for (; e && !q(e); )
1187
+ e = e.closest(Re);
1188
+ return e || null;
1189
+ }
1190
+ function Rt(e) {
1191
+ const t = G(e);
1192
+ if (!t) return !1;
1193
+ if (t === e) return !0;
1194
+ const n = t.getAttribute("aria-activedescendant");
1195
+ return n ? n === e.id : !1;
1196
+ }
1197
+ function Qr(e) {
1198
+ const t = G(e);
1199
+ if (!t) return !1;
1200
+ if (ee(e, t)) return !0;
1201
+ const n = t.getAttribute("aria-activedescendant");
1202
+ return !n || !("id" in e) ? !1 : n === e.id ? !0 : !!e.querySelector(`#${CSS.escape(n)}`);
1203
+ }
1204
+ function en(e) {
1205
+ !Qr(e) && q(e) && e.focus();
1206
+ }
1207
+ function tn(e) {
1208
+ var t;
1209
+ const n = (t = e.getAttribute("tabindex")) != null ? t : "";
1210
+ e.setAttribute("data-tabindex", n), e.setAttribute("tabindex", "-1");
1211
+ }
1212
+ function to(e, t) {
1213
+ const n = Xe(e, t);
1214
+ for (const o of n)
1215
+ tn(o);
1216
+ }
1217
+ function ro(e) {
1218
+ const t = e.querySelectorAll("[data-tabindex]"), n = (o) => {
1219
+ const i = o.getAttribute("data-tabindex");
1220
+ o.removeAttribute("data-tabindex"), i ? o.setAttribute("tabindex", i) : o.removeAttribute("tabindex");
1221
+ };
1222
+ e.hasAttribute("data-tabindex") && n(e);
1223
+ for (const o of t)
1224
+ n(o);
1225
+ }
1226
+ function no(e, t) {
1227
+ "scrollIntoView" in e ? (e.focus({ preventScroll: !0 }), e.scrollIntoView(Le({ block: "nearest", inline: "nearest" }, t))) : e.focus();
1228
+ }
1229
+ var rn = "div", wt = Mr(), nn = [
1230
+ "text",
1231
+ "search",
1232
+ "url",
1233
+ "tel",
1234
+ "email",
1235
+ "password",
1236
+ "number",
1237
+ "date",
1238
+ "month",
1239
+ "week",
1240
+ "time",
1241
+ "datetime",
1242
+ "datetime-local"
1243
+ ], It = Symbol("safariFocusAncestor");
1244
+ function oo(e) {
1245
+ return e ? !!e[It] : !1;
1246
+ }
1247
+ function Tt(e, t) {
1248
+ e && (e[It] = t);
1249
+ }
1250
+ function on(e) {
1251
+ const { tagName: t, readOnly: n, type: o } = e;
1252
+ return t === "TEXTAREA" && !n || t === "SELECT" && !n ? !0 : t === "INPUT" && !n ? nn.includes(o) : !!(e.isContentEditable || e.getAttribute("role") === "combobox" && e.dataset.name);
1253
+ }
1254
+ function an(e) {
1255
+ return "labels" in e ? e.labels : null;
1256
+ }
1257
+ function xt(e) {
1258
+ return e.tagName.toLowerCase() === "input" && e.type ? e.type === "radio" || e.type === "checkbox" : !1;
1259
+ }
1260
+ function un(e) {
1261
+ return e ? e === "button" || e === "summary" || e === "input" || e === "select" || e === "textarea" || e === "a" : !0;
1262
+ }
1263
+ function sn(e) {
1264
+ return e ? e === "button" || e === "input" || e === "select" || e === "textarea" : !0;
1265
+ }
1266
+ function cn(e, t, n, o, i) {
1267
+ return e ? t ? n && !o ? -1 : void 0 : n ? i : i || 0 : i;
1268
+ }
1269
+ function Ne(e, t) {
1270
+ return N((n) => {
1271
+ e == null || e(n), !n.defaultPrevented && t && (n.stopPropagation(), n.preventDefault());
1272
+ });
1273
+ }
1274
+ var Ge = !0;
1275
+ function fn(e) {
1276
+ const t = e.target;
1277
+ t && "hasAttribute" in t && (t.hasAttribute("data-focus-visible") || (Ge = !1));
1278
+ }
1279
+ function ln(e) {
1280
+ e.metaKey || e.ctrlKey || e.altKey || (Ge = !0);
1281
+ }
1282
+ var dn = Xr(
1283
+ function(t) {
1284
+ var n = t, {
1285
+ focusable: o = !0,
1286
+ accessibleWhenDisabled: i,
1287
+ autoFocus: s,
1288
+ onFocusVisible: v
1289
+ } = n, l = Ft(n, [
1290
+ "focusable",
1291
+ "accessibleWhenDisabled",
1292
+ "autoFocus",
1293
+ "onFocusVisible"
1294
+ ]);
1295
+ const b = he(null);
1296
+ V(() => {
1297
+ o && (M("mousedown", fn, !0), M("keydown", ln, !0));
1298
+ }, [o]), wt && V(() => {
1299
+ if (!o) return;
1300
+ const c = b.current;
1301
+ if (!c || !xt(c)) return;
1302
+ const h = an(c);
1303
+ if (!h) return;
1304
+ const P = () => queueMicrotask(() => c.focus());
1305
+ for (const I of h)
1306
+ I.addEventListener("mouseup", P);
1307
+ return () => {
1308
+ for (const I of h)
1309
+ I.removeEventListener("mouseup", P);
1310
+ };
1311
+ }, [o]);
1312
+ const m = o && Rr(l), g = !!m && !i, [_, C] = re(!1);
1313
+ V(() => {
1314
+ o && g && _ && C(!1);
1315
+ }, [o, g, _]), V(() => {
1316
+ if (!o || !_) return;
1317
+ const c = b.current;
1318
+ if (!c || typeof IntersectionObserver > "u") return;
1319
+ const h = new IntersectionObserver(() => {
1320
+ q(c) || C(!1);
1321
+ });
1322
+ return h.observe(c), () => h.disconnect();
1323
+ }, [o, _]);
1324
+ const Y = Ne(
1325
+ l.onKeyPressCapture,
1326
+ m
1327
+ ), ne = Ne(
1328
+ l.onMouseDownCapture,
1329
+ m
1330
+ ), we = Ne(l.onClickCapture, m), oe = l.onMouseDown, k = N((c) => {
1331
+ if (oe == null || oe(c), c.defaultPrevented || !o) return;
1332
+ const h = c.currentTarget;
1333
+ if (!wt || Nr(c) || !Sr(h) && !xt(h)) return;
1334
+ let P = !1;
1335
+ const I = () => {
1336
+ P = !0;
1337
+ }, le = { capture: !0, once: !0 };
1338
+ h.addEventListener("focusin", I, le);
1339
+ const J = Zr(h.parentElement);
1340
+ Tt(J, !0), Me(h, "mouseup", () => {
1341
+ h.removeEventListener("focusin", I, !0), Tt(J, !1), !P && en(h);
1342
+ });
1343
+ }), T = (c, h) => {
1344
+ if (h && (c.currentTarget = h), !o) return;
1345
+ const P = c.currentTarget;
1346
+ P && Rt(P) && (v == null || v(c), !c.defaultPrevented && (P.dataset.focusVisible = "true", C(!0)));
1347
+ }, ae = l.onKeyDownCapture, Te = N((c) => {
1348
+ if (ae == null || ae(c), c.defaultPrevented || !o || _ || c.metaKey || c.altKey || c.ctrlKey || !pt(c)) return;
1349
+ const h = c.currentTarget;
1350
+ Me(h, "focusout", () => T(c, h));
1351
+ }), ie = l.onFocusCapture, xe = N((c) => {
1352
+ if (ie == null || ie(c), c.defaultPrevented || !o) return;
1353
+ if (!pt(c)) {
1354
+ C(!1);
1355
+ return;
1356
+ }
1357
+ const h = c.currentTarget, P = () => T(c, h);
1358
+ Ge || on(c.target) ? Me(c.target, "focusout", P) : C(!1);
1359
+ }), ue = l.onBlur, Pe = N((c) => {
1360
+ ue == null || ue(c), o && Vr(c) && C(!1);
1361
+ }), se = dr(Gr), Oe = N((c) => {
1362
+ o && s && c && se && queueMicrotask(() => {
1363
+ Rt(c) || q(c) && c.focus();
1364
+ });
1365
+ }), ce = Lr(b), fe = o && un(ce), D = o && sn(ce), A = l.style, $ = Ve(() => g ? x({ pointerEvents: "none" }, A) : A, [g, A]);
1366
+ return l = L(x({
1367
+ "data-focus-visible": o && _ || void 0,
1368
+ "data-autofocus": s || void 0,
1369
+ "aria-disabled": m || void 0
1370
+ }, l), {
1371
+ ref: Ke(b, Oe, l.ref),
1372
+ style: $,
1373
+ tabIndex: cn(
1374
+ o,
1375
+ g,
1376
+ fe,
1377
+ D,
1378
+ l.tabIndex
1379
+ ),
1380
+ disabled: D && g ? !0 : void 0,
1381
+ // TODO: Test Focusable contentEditable.
1382
+ contentEditable: m ? void 0 : l.contentEditable,
1383
+ onKeyPressCapture: Y,
1384
+ onClickCapture: we,
1385
+ onMouseDownCapture: ne,
1386
+ onMouseDown: k,
1387
+ onKeyDownCapture: Te,
1388
+ onFocusCapture: xe,
1389
+ onBlur: Pe
1390
+ }), wr(l);
1391
+ }
1392
+ );
1393
+ Ur(function(t) {
1394
+ const n = dn(t);
1395
+ return qr(rn, n);
1396
+ });
1397
+ export {
1398
+ $e as $,
1399
+ pn as A,
1400
+ Er as B,
1401
+ xn as C,
1402
+ Le as D,
1403
+ qn as E,
1404
+ _e as F,
1405
+ Pn as G,
1406
+ Bn as H,
1407
+ Q as I,
1408
+ _n as J,
1409
+ Nr as K,
1410
+ On as L,
1411
+ Mr as M,
1412
+ Sn as N,
1413
+ Cn as O,
1414
+ jr as P,
1415
+ yn as Q,
1416
+ Dn as R,
1417
+ Wn as S,
1418
+ no as T,
1419
+ Nn as U,
1420
+ Rt as V,
1421
+ G as W,
1422
+ Vn as X,
1423
+ Tn as Y,
1424
+ ee as Z,
1425
+ Ft as _,
1426
+ Gn as a,
1427
+ En as a0,
1428
+ hn as a1,
1429
+ wn as a2,
1430
+ gn as a3,
1431
+ bn as a4,
1432
+ $n as a5,
1433
+ Xn as a6,
1434
+ Jn as a7,
1435
+ M as a8,
1436
+ Qr as a9,
1437
+ Xe as aa,
1438
+ mn as ab,
1439
+ Mn as ac,
1440
+ Fn as ad,
1441
+ kn as ae,
1442
+ In as af,
1443
+ jt as ag,
1444
+ jn as ah,
1445
+ Dr as ai,
1446
+ oo as aj,
1447
+ Gr as ak,
1448
+ Tr as al,
1449
+ Vr as am,
1450
+ Qn as an,
1451
+ eo as ao,
1452
+ ro as ap,
1453
+ to as aq,
1454
+ Zn as ar,
1455
+ q as as,
1456
+ en as at,
1457
+ N as b,
1458
+ Xr as c,
1459
+ L as d,
1460
+ Ke as e,
1461
+ Ur as f,
1462
+ x as g,
1463
+ qr as h,
1464
+ Rn as i,
1465
+ Lr as j,
1466
+ Sr as k,
1467
+ Rr as l,
1468
+ dn as m,
1469
+ Ln as n,
1470
+ pt as o,
1471
+ Ye as p,
1472
+ An as q,
1473
+ Me as r,
1474
+ Ar as s,
1475
+ U as t,
1476
+ Un as u,
1477
+ zn as v,
1478
+ Hn as w,
1479
+ Yn as x,
1480
+ Kn as y,
1481
+ wr as z
1482
+ };