@midas-ds/components 10.3.0 → 10.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/AccordionItem-BcsoC78F.cjs +1 -0
  2. package/{AccordionItem-ChHpW8EW.js → AccordionItem-BqsgiVWV.js} +38 -36
  3. package/Breadcrumbs-CfW5IuyE.cjs +1 -0
  4. package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D7eoibWk.js} +77 -65
  5. package/{Button-BoJl6JGM.cjs → Button-BXY5ZhqI.cjs} +1 -1
  6. package/{Button-Csih3v23.js → Button-BZUo7vsZ.js} +1 -1
  7. package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
  8. package/Button-DExMoP5f.cjs +1 -0
  9. package/CHANGELOG.md +28 -0
  10. package/{Card-yrtGzt70.js → Card-BaWSgtSF.js} +3 -3
  11. package/{Card-0G0mj9q5.cjs → Card-Cc1TNPcQ.cjs} +1 -1
  12. package/{CharacterCounter-CHcTDHO-.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
  13. package/{CharacterCounter-BL_nZHya.js → CharacterCounter-cLhqPZlk.js} +4 -4
  14. package/Checkbox-Co3h0hur.cjs +1 -0
  15. package/{Checkbox-5HINZdGu.js → Checkbox-LuUwTZ3W.js} +69 -68
  16. package/CheckboxGroup-CUA8_xSx.js +160 -0
  17. package/CheckboxGroup-DmUOM0xl.cjs +1 -0
  18. package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
  19. package/Collection-BtBX5IMY.cjs +1 -0
  20. package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-Cwono7Ap.js} +51 -35
  21. package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
  22. package/ComboBox-BBC7jhnm.cjs +1 -0
  23. package/{ComboBox-CVDyp2a-.js → ComboBox-HLIAbb2q.js} +309 -298
  24. package/{DateField-DeDhiYnW.cjs → DateField-B3VjOSde.cjs} +1 -1
  25. package/{DateField-DhU3q-rG.js → DateField-CnLEi7uX.js} +4 -4
  26. package/DateInputDivider-3BvwXXa9.cjs +1 -0
  27. package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
  28. package/DateRangePicker-BPlZ12r8.cjs +6 -0
  29. package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-CFOoGvut.js} +86 -83
  30. package/Dialog-CSnN6baf.cjs +1 -0
  31. package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
  32. package/Dialog-SqciohRY.js +221 -0
  33. package/Dialog-pSSy1zwf.cjs +1 -0
  34. package/DragAndDrop-BoEd260f.cjs +1 -0
  35. package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
  36. package/{Dropdown-Df58j43I.js → Dropdown-CkBp70BH.js} +2 -2
  37. package/{Dropdown-CJ6My6EI.cjs → Dropdown-DAsVShlt.cjs} +1 -1
  38. package/FieldError-B3YFj-an.js +23 -0
  39. package/FieldError-BbR-29BM.js +28 -0
  40. package/FieldError-MVsU-Mgw.cjs +1 -0
  41. package/FieldError-bRTpchvr.cjs +1 -0
  42. package/{FileUpload-D6qoEAjn.js → FileUpload-B4rv-wke.js} +496 -475
  43. package/{FileUpload-CxCOtyB9.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
  44. package/{FocusScope-CxkURfoc.js → FocusScope-D_hwN_TJ.js} +25 -24
  45. package/FocusScope-vcXLOQiu.cjs +1 -0
  46. package/Group-CpkUzEAs.js +45 -0
  47. package/Group-DOpbdoAi.cjs +1 -0
  48. package/{Heading-mHhCbGjY.cjs → Heading-CKTR4sOz.cjs} +1 -1
  49. package/{Heading-BFtiin0g.js → Heading-NxtGri2i.js} +1 -1
  50. package/{InfoBanner-BLM-TJJ6.js → InfoBanner-CBUoad7A.js} +47 -39
  51. package/InfoBanner-CVry6Y8i.cjs +1 -0
  52. package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
  53. package/Input-MJji5hhq.cjs +1 -0
  54. package/Label-CNmTN1YY.cjs +1 -0
  55. package/Label-TVxwGZ-O.js +78 -0
  56. package/Layout-Dw-oCqxd.cjs +16 -0
  57. package/Layout-amz9BESl.js +498 -0
  58. package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
  59. package/Link-CidjjqHb.cjs +1 -0
  60. package/{Link-B88l_oaE.cjs → Link-D92ftFi2.cjs} +1 -1
  61. package/{Link-DX5BbBnn.js → Link-DegonJfl.js} +1 -1
  62. package/{LinkButton-o6uS1XsR.js → LinkButton-CckYzfJ8.js} +1 -1
  63. package/{LinkButton-CBpGLETx.cjs → LinkButton-DKZ4z6zu.cjs} +1 -1
  64. package/ListBox-BCz5-23H.cjs +1 -0
  65. package/{ListBox-GnVK_Pdq.js → ListBox-C-isJIHL.js} +101 -99
  66. package/{ListBoxButton-D_J3jlP0.js → ListBoxButton-C_krklY0.js} +1 -1
  67. package/{ListBoxButton-DPBrtXyv.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
  68. package/{ListBoxSection-C0BGnpB4.js → ListBoxSection-BVR2xtOH.js} +9 -9
  69. package/ListBoxSection-CfQZoURJ.cjs +1 -0
  70. package/{ListKeyboardDelegate-DTg9h4v6.cjs → ListKeyboardDelegate-CPsZ7D83.cjs} +1 -1
  71. package/{ListKeyboardDelegate-DNI8GQtX.js → ListKeyboardDelegate-CY6t6y1t.js} +3 -3
  72. package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
  73. package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
  74. package/Logo-BpH0HC91.cjs +1 -0
  75. package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
  76. package/{OverlayArrow-CDLXPTew.js → OverlayArrow-CfhSYL46.js} +57 -56
  77. package/OverlayArrow-DpZ1FqOd.cjs +1 -0
  78. package/{Popover-BGGXeD54.js → Popover-C8VY1YKi.js} +2 -2
  79. package/{Popover-CqNWzPf-.cjs → Popover-CnAsw3wI.cjs} +1 -1
  80. package/{ProgressBar-DMSg-Prr.js → ProgressBar-BNCjpcv8.js} +2 -2
  81. package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-CcbxcWdT.cjs} +1 -1
  82. package/Radio-B2zfEFdq.cjs +1 -0
  83. package/{Radio-Cz29wPXd.js → Radio-CZYibh9r.js} +50 -47
  84. package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-B16b6tJD.js} +304 -293
  85. package/RangeCalendar-C1LFeOVk.cjs +11 -0
  86. package/SSRProvider-40TXmsUG.js +50 -0
  87. package/SSRProvider-Bc-sMhsT.cjs +1 -0
  88. package/SearchField-CML0kjtn.cjs +6 -0
  89. package/{SearchField-IlvZ3Kh6.js → SearchField-giwECmXS.js} +175 -166
  90. package/Select-DKey6CeS.cjs +1 -0
  91. package/Select-mwaAv20X.js +665 -0
  92. package/SelectionManager-D0jYUYcy.cjs +1 -0
  93. package/{SelectionManager-B4ORduja.js → SelectionManager-zsWy3vsd.js} +91 -90
  94. package/{Separator-DECIYLtZ.cjs → Separator-CxF-3jhR.cjs} +1 -1
  95. package/{Separator-Cu9fYKUM.js → Separator-Dn5LYN5I.js} +4 -4
  96. package/Spinner-CbJ6YAz-.js +53 -0
  97. package/Spinner-yHcy8YHC.cjs +6 -0
  98. package/TabList-7VtCiXxX.cjs +1 -0
  99. package/TabList-CthsM5h6.js +435 -0
  100. package/{Table-F4oYBtUM.js → Table-BcQPvJT3.js} +46 -44
  101. package/Table-DkvNp6xm.cjs +16 -0
  102. package/{Tag-Du7GvSv2.js → Tag-Bs8T2Ei7.js} +131 -129
  103. package/Tag-CFWZ2LQW.cjs +1 -0
  104. package/Text-92cPh38G.js +15 -0
  105. package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
  106. package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
  107. package/{Text-jWWg0B20.js → Text-DlKqpvSa.js} +1 -1
  108. package/TextArea-DBNAVWqL.js +119 -0
  109. package/TextArea-XJDfeXRs.cjs +1 -0
  110. package/TextField-BdK9KEQ5.cjs +1 -0
  111. package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
  112. package/{Toast-Btg21Xge.js → Toast-DPPvPhrF.js} +75 -68
  113. package/Toast-l1bKo2oA.cjs +1 -0
  114. package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
  115. package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-HOWNWtQZ.js} +46 -45
  116. package/{Tooltip-CMLs7WMw.js → Tooltip-5mLWn_wO.js} +29 -27
  117. package/Tooltip-pN5W3IK6.cjs +1 -0
  118. package/{VisuallyHidden-ZCYf65q4.js → VisuallyHidden-CYfmTSCD.js} +2 -2
  119. package/VisuallyHidden-Doyzl0F7.cjs +1 -0
  120. package/accordion/index.cjs +1 -1
  121. package/accordion/index.js +1 -1
  122. package/assets/Checkbox.css +1 -1
  123. package/assets/FileUpload.css +1 -1
  124. package/assets/RangeCalendar.css +1 -1
  125. package/assets/SearchField.css +1 -1
  126. package/assets/Spinner.css +1 -1
  127. package/assets/TabList.css +1 -0
  128. package/breadcrumbs/Breadcrumbs.d.ts +11 -7
  129. package/breadcrumbs/index.cjs +1 -1
  130. package/breadcrumbs/index.d.ts +1 -1
  131. package/breadcrumbs/index.js +1 -1
  132. package/button/index.cjs +1 -1
  133. package/button/index.js +1 -1
  134. package/calendar/CalendarGrid.d.ts +1 -0
  135. package/calendar/index.cjs +1 -1
  136. package/calendar/index.js +1 -1
  137. package/card/index.cjs +1 -1
  138. package/card/index.js +1 -1
  139. package/character-counter/index.cjs +1 -1
  140. package/character-counter/index.js +1 -1
  141. package/checkbox/Checkbox.d.ts +3 -1
  142. package/checkbox/index.cjs +1 -1
  143. package/checkbox/index.js +2 -2
  144. package/checkbox/intl/translations.json.d.ts +2 -30
  145. package/checkbox/types.d.ts +3 -1
  146. package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/color-scheme-switch/intl/translations.json.d.ts +15 -0
  150. package/combobox/index.cjs +1 -1
  151. package/combobox/index.js +1 -1
  152. package/combobox/intl/translations.json.d.ts +11 -0
  153. package/{context-C81gPYvC.js → context-CGNJ3grH.js} +1 -1
  154. package/context-Df3XbgBG.cjs +1 -0
  155. package/date-field/index.cjs +1 -1
  156. package/date-field/index.js +2 -2
  157. package/date-picker/index.cjs +1 -1
  158. package/date-picker/index.js +1 -1
  159. package/dropdown/index.cjs +1 -1
  160. package/dropdown/index.js +1 -1
  161. package/field-error/index.cjs +1 -1
  162. package/field-error/index.js +1 -1
  163. package/file-upload/FileUpload.d.ts +1 -0
  164. package/file-upload/index.cjs +1 -1
  165. package/file-upload/index.js +1 -1
  166. package/file-upload/intl/translations.json.d.ts +17 -0
  167. package/{getScrollParent-BhFcYrwL.js → getScrollParent-CT_L9LUr.js} +1 -1
  168. package/{getScrollParent-DDJu9WHU.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
  169. package/heading/index.cjs +1 -1
  170. package/heading/index.js +1 -1
  171. package/index.cjs +1 -1
  172. package/index.js +100 -97
  173. package/info-banner/index.cjs +1 -1
  174. package/info-banner/index.js +1 -1
  175. package/info-banner/intl/translations.json.d.ts +11 -0
  176. package/label/index.cjs +1 -1
  177. package/label/index.js +1 -1
  178. package/label/intl/translations.json.d.ts +11 -0
  179. package/layout/Layout.d.ts +1 -0
  180. package/layout/context/LayoutContext.d.ts +1 -0
  181. package/layout/index.cjs +1 -1
  182. package/layout/index.js +1 -1
  183. package/layout/intl/translations.json.d.ts +23 -0
  184. package/link/index.cjs +1 -1
  185. package/link/index.js +2 -2
  186. package/link-button/index.cjs +1 -1
  187. package/link-button/index.js +2 -2
  188. package/list-box/index.cjs +1 -1
  189. package/list-box/index.js +2 -2
  190. package/logo/index.cjs +1 -1
  191. package/logo/index.js +1 -1
  192. package/logo/intl/translations.json.d.ts +11 -0
  193. package/mergeProps-B5KXZAI3.cjs +1 -0
  194. package/mergeProps-C1U1OIeJ.js +115 -0
  195. package/modal/index.cjs +1 -1
  196. package/modal/index.js +2 -2
  197. package/modal/intl/translations.json.d.ts +11 -0
  198. package/package.json +1 -1
  199. package/popover/index.cjs +1 -1
  200. package/popover/index.js +1 -1
  201. package/progress-bar/index.cjs +1 -1
  202. package/progress-bar/index.js +1 -1
  203. package/radio/Radio.d.ts +1 -4
  204. package/radio/index.cjs +1 -1
  205. package/radio/index.js +1 -1
  206. package/{scrollIntoView-Hwb_aaNf.js → scrollIntoView-BLnsPvFA.js} +1 -1
  207. package/scrollIntoView-joIyo-Jt.cjs +1 -0
  208. package/search-field/index.cjs +1 -1
  209. package/search-field/index.js +1 -1
  210. package/search-field/intl/translations.json.d.ts +11 -0
  211. package/select/index.cjs +1 -1
  212. package/select/index.js +1 -1
  213. package/select/intl/translations.json.d.ts +17 -0
  214. package/spinner/Spinner.d.ts +1 -0
  215. package/spinner/index.cjs +1 -1
  216. package/spinner/index.js +1 -1
  217. package/spinner/intl/translations.json.d.ts +11 -0
  218. package/table/index.cjs +1 -1
  219. package/table/index.js +1 -1
  220. package/tabs/Tab.d.ts +4 -0
  221. package/tabs/TabList.d.ts +3 -0
  222. package/tabs/TabPanel.d.ts +4 -0
  223. package/tabs/Tabs.d.ts +11 -5
  224. package/tabs/index.cjs +1 -1
  225. package/tabs/index.d.ts +3 -0
  226. package/tabs/index.js +5 -2
  227. package/tag/index.cjs +1 -1
  228. package/tag/index.js +1 -1
  229. package/text/index.cjs +1 -1
  230. package/text/index.js +1 -1
  231. package/textfield/index.cjs +1 -1
  232. package/textfield/index.js +1 -1
  233. package/textfield/intl/translations.json.d.ts +0 -72
  234. package/theme/index.cjs +1 -1
  235. package/theme/index.d.ts +5 -0
  236. package/theme/index.js +2 -2
  237. package/theme/tokens.d.ts +5 -0
  238. package/toast/Toast.d.ts +5 -2
  239. package/toast/index.cjs +1 -1
  240. package/toast/index.js +1 -1
  241. package/toggle-button/index.cjs +1 -1
  242. package/toggle-button/index.js +1 -1
  243. package/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
  244. package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
  245. package/tooltip/index.cjs +1 -1
  246. package/tooltip/index.js +1 -1
  247. package/{useButton-B8dB9sot.js → useButton-1-Jf-oHj.js} +3 -3
  248. package/useButton-D60q0SQw.cjs +1 -0
  249. package/{useDateFormatter-CnxoJ4jF.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
  250. package/{useDateFormatter-EHm4auIg.js → useDateFormatter-BVCkxVdw.js} +2 -2
  251. package/{useEvent-IsD2Awnh.js → useEvent-CigwyJOw.js} +3 -3
  252. package/useEvent-DPxMu-X9.cjs +1 -0
  253. package/{useField-DvpGZkw_.js → useField-BEBXv5Mh.js} +4 -4
  254. package/useField-D1UkzeaI.cjs +1 -0
  255. package/{useFilter-CUq74PQ2.js → useFilter-CousKe2K.js} +1 -1
  256. package/{useFilter-BTgDWHVx.cjs → useFilter-e2oIVF_O.cjs} +1 -1
  257. package/useFocusRing-B-A1OLhU.cjs +1 -0
  258. package/useFocusRing-DOfBqnUN.js +33 -0
  259. package/useFocusWithin-CG8mAt2D.cjs +1 -0
  260. package/useFocusWithin-T1ifEM_s.js +54 -0
  261. package/{useFocusable-C8uh8K4g.js → useFocusable-ChPA2Jc7.js} +20 -18
  262. package/useFocusable-D7I1ujkW.cjs +1 -0
  263. package/useFormValidation-BlFGdPZB.cjs +1 -0
  264. package/{useFormValidation-BIGzfO9h.js → useFormValidation-BzzruZKm.js} +2 -2
  265. package/{useHasTabbableChild-C-1mZUQe.js → useHasTabbableChild-BE81d_ab.js} +2 -2
  266. package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
  267. package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
  268. package/{useHighlightSelectionDescription-CnBDT86u.js → useHighlightSelectionDescription-D73hrkmn.js} +5 -5
  269. package/useHover-BE_XKZKe.cjs +1 -0
  270. package/useHover-DQvJ3Y-W.js +262 -0
  271. package/useLabels-CSU0kbtJ.cjs +1 -0
  272. package/{useLabels-BDwkBYbE.js → useLabels-LrKQiY11.js} +1 -1
  273. package/{useListState-CrZFZffI.js → useListState-CebsX_1d.js} +1 -1
  274. package/{useListState-Bx8u4IFG.cjs → useListState-DymkJGDF.cjs} +1 -1
  275. package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
  276. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  277. package/useLocalizedStringFormatter-CL9MUZ8A.js +22 -0
  278. package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
  279. package/usePress-BooY_CAy.cjs +7 -0
  280. package/{usePress-CNjmDzap.js → usePress-DuR4pVsE.js} +129 -128
  281. package/{useSingleSelectListState-0AGHxvy3.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
  282. package/{useSingleSelectListState-Cl3KV5E1.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
  283. package/{useTextField-Cw-33OP_.js → useTextField-C-sUypsx.js} +8 -8
  284. package/useTextField-DnRrCg5o.cjs +1 -0
  285. package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
  286. package/utils-CoCR_Fce.js +234 -0
  287. package/utils-DHNZrQmj.cjs +1 -0
  288. package/utils-DJhAJHk_.js +152 -0
  289. package/utils-Dvdohqm9.cjs +1 -0
  290. package/AccordionItem-BGWiWjxA.cjs +0 -1
  291. package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
  292. package/Button-htW9qIsS.cjs +0 -1
  293. package/Checkbox-DqcPg5hz.cjs +0 -1
  294. package/CheckboxGroup-BBrSMuDY.cjs +0 -1
  295. package/CheckboxGroup-CLgixk2p.js +0 -243
  296. package/Collection-BIDsXNhi.cjs +0 -1
  297. package/ColorSchemeSwitch-C-qWuqkU.cjs +0 -16
  298. package/ComboBox-CWJUg9Xx.cjs +0 -1
  299. package/DateInputDivider-ADvOavHw.cjs +0 -1
  300. package/DateRangePicker-BsAHhy99.cjs +0 -6
  301. package/Dialog-B8GTYbvu.cjs +0 -1
  302. package/Dialog-BOrYdX50.cjs +0 -1
  303. package/Dialog-CXNu48AC.js +0 -208
  304. package/DragAndDrop-DNth776R.cjs +0 -1
  305. package/FieldError-CAcjosk_.js +0 -46
  306. package/FieldError-CKBb2-mp.cjs +0 -1
  307. package/FocusScope-5c9SVBcR.cjs +0 -1
  308. package/Group-B6EslsHZ.js +0 -44
  309. package/Group-CgiqQHH1.cjs +0 -1
  310. package/InfoBanner-C2kTIsrB.cjs +0 -1
  311. package/Input-DKSAYvsw.cjs +0 -1
  312. package/Label-7Ybb99CE.cjs +0 -1
  313. package/Label-BwJrdqEE.js +0 -70
  314. package/Layout-1g6bMH62.cjs +0 -16
  315. package/Layout-Ey8flY7E.js +0 -468
  316. package/Link-BQhauBuw.cjs +0 -1
  317. package/ListBox-DP9M4H6R.cjs +0 -1
  318. package/ListBoxSection-BGaigBnG.cjs +0 -1
  319. package/Logo-DT2_2O43.cjs +0 -1
  320. package/OverlayArrow-D75k-EMl.cjs +0 -1
  321. package/Radio-BwqrdhQE.cjs +0 -1
  322. package/RangeCalendar-BehUaydF.cjs +0 -11
  323. package/SearchField-CxMwDeUM.cjs +0 -6
  324. package/Select-2q1iSzAX.cjs +0 -1
  325. package/Select-BVQZtoi9.js +0 -646
  326. package/SelectionManager-CwYux2h3.cjs +0 -1
  327. package/Spinner-D31SXm-U.js +0 -41
  328. package/Spinner-P35rvvsl.cjs +0 -6
  329. package/Table-B40CGLT-.cjs +0 -16
  330. package/Tabs-B4oZJkZG.js +0 -404
  331. package/Tabs-DA2qXhzb.cjs +0 -1
  332. package/Tag-DPAGmcMK.cjs +0 -1
  333. package/Text-BoXuUVVH.js +0 -15
  334. package/TextArea-C7JZ_pQd.cjs +0 -1
  335. package/TextArea-XeBCSyzl.js +0 -191
  336. package/TextField-BgNdhZi_.cjs +0 -1
  337. package/Toast-AbDA1BOs.cjs +0 -1
  338. package/ToggleButtonGroup-BFDoj0P6.cjs +0 -1
  339. package/Tooltip-DeBuBKhS.cjs +0 -1
  340. package/VisuallyHidden-CLWHbz2n.cjs +0 -1
  341. package/assets/Tabs.css +0 -1
  342. package/context-DjwhtgxQ.cjs +0 -1
  343. package/scrollIntoView-C8doLzDd.cjs +0 -1
  344. package/useButton-cpNi-fY4.cjs +0 -1
  345. package/useEvent-DxBxMX2V.cjs +0 -1
  346. package/useField-CXKYU74k.cjs +0 -1
  347. package/useFocusRing-CbImDrwF.cjs +0 -1
  348. package/useFocusRing-XnR3cZjO.js +0 -82
  349. package/useFocusable-NUVSFcRC.cjs +0 -1
  350. package/useFormValidation-ClximP89.cjs +0 -1
  351. package/useHasTabbableChild-DCBTulUQ.cjs +0 -1
  352. package/useHighlightSelectionDescription-CzYucm61.cjs +0 -1
  353. package/useHover-DjIHtjGN.js +0 -490
  354. package/useHover-_mv5J4_q.cjs +0 -1
  355. package/useLabels-BLOfc6Y-.cjs +0 -1
  356. package/useLocalizedStringFormatter-BKoxGZf1.js +0 -96
  357. package/useLocalizedStringFormatter-BsxLt89S.cjs +0 -1
  358. package/useLocalizedStringFormatter-D3JQyjb4.js +0 -21
  359. package/useLocalizedStringFormatter-ioacM-Yt.cjs +0 -1
  360. package/usePress-0AjDbW9R.cjs +0 -7
  361. package/useTextField--czJtyNd.cjs +0 -1
  362. package/utils-BNtZbAib.cjs +0 -1
  363. package/utils-DIMfEPAt.js +0 -308
package/toast/Toast.d.ts CHANGED
@@ -8,14 +8,17 @@ export interface MidasToast {
8
8
  }
9
9
  interface ToastRegionProps<T> extends AriaToastRegionProps {
10
10
  state: ToastState<T>;
11
+ className?: string;
11
12
  }
12
13
  export interface ToastProps<T> extends AriaToastProps<T> {
13
14
  state: ToastState<T>;
14
15
  toast: QueuedToast<T>;
15
16
  children?: React.ReactNode;
17
+ className?: string;
16
18
  }
17
19
  interface ToastProviderProps extends AriaToastRegionProps {
18
20
  children?: ((state: ToastState<MidasToast>) => React.ReactNode) | React.ReactNode;
21
+ className?: string;
19
22
  }
20
23
  /**
21
24
  * Temporary implementation of https://github.com/adobe/react-spectrum/blob/main/packages/%40react-stately/toast/src/useToastState.ts#L59
@@ -25,6 +28,6 @@ export declare function useToastState<T>(props?: ToastStateProps): ToastState<T>
25
28
  export declare const toastQueue: ToastQueue<MidasToast>;
26
29
  export declare const GlobalToastRegion: (props: ToastProviderProps) => React.ReactPortal | null;
27
30
  export declare const ToastProvider: ({ children, ...props }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
28
- export declare function ToastRegion<T extends MidasToast>({ state, ...props }: ToastRegionProps<T>): import("react/jsx-runtime").JSX.Element;
29
- export declare function Toast<T extends MidasToast>({ state, ...props }: ToastProps<T>): import("react/jsx-runtime").JSX.Element;
31
+ export declare function ToastRegion<T extends MidasToast>({ state, className, ...props }: ToastRegionProps<T>): import("react/jsx-runtime").JSX.Element;
32
+ export declare function Toast<T extends MidasToast>({ state, className, ...props }: ToastProps<T>): import("react/jsx-runtime").JSX.Element;
30
33
  export {};
package/toast/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Toast-AbDA1BOs.cjs");exports.GlobalToastRegion=o.GlobalToastRegion;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.ToastRegion=o.ToastRegion;exports.toastQueue=o.toastQueue;exports.useToastState=o.useToastState;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Toast-l1bKo2oA.cjs");exports.GlobalToastRegion=o.GlobalToastRegion;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.ToastRegion=o.ToastRegion;exports.toastQueue=o.toastQueue;exports.useToastState=o.useToastState;
package/toast/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G as o, b as t, T as e, a as T, t as r, u } from "../Toast-Btg21Xge.js";
1
+ import { G as o, b as t, T as e, a as T, t as r, u } from "../Toast-DPPvPhrF.js";
2
2
  export {
3
3
  o as GlobalToastRegion,
4
4
  t as Toast,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ToggleButtonGroup-BFDoj0P6.cjs");exports.ToggleButton=o.ToggleButton;exports.ToggleButtonGroup=o.ToggleButtonGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ToggleButtonGroup-DH8IgR4G.cjs");exports.ToggleButton=o.ToggleButton;exports.ToggleButtonGroup=o.ToggleButtonGroup;
@@ -1,4 +1,4 @@
1
- import { T as g, a } from "../ToggleButtonGroup-B5yz1tm2.js";
1
+ import { T as g, a } from "../ToggleButtonGroup-HOWNWtQZ.js";
2
2
  export {
3
3
  g as ToggleButton,
4
4
  a as ToggleButtonGroup
@@ -1 +1 @@
1
- "use strict";const r={black:"#000000",white:"#ffffff",blackHover:"#0d0d0d",whiteHover:"#e6e6e6",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray110:"#737373",gray120:"#666666",gray130:"#5d5d5d",gray140:"#525252",gray150:"#474747",gray160:"#383838",gray170:"#333333",gray180:"#262626",gray190:"#212121",gray200:"#171717",blue10:"#eaf2f6",blue20:"#d5e5ed",blue40:"#abcbdb",blue50:"#94BCD1",blue60:"#82b0c9",blue70:"#6CA3C0",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue110:"#2C7399",blue120:"#29698C",blue130:"#25607f",blue150:"#143c50",purple80:"#b46ab4",purple110:"#954b95",red100:"#b90835",signalBlue10:"#eaf2f6",signalBlue100:"#0066cc",signalGreen20:"#d5f2d9",signalGreen30:"#bae5c5",signalGreen100:"#008d3c",signalYellow10:"#fff8e1",signalYellow100:"#fdb813",signalRed10:"#ffefef",signalRed20:"#ffdfdf",signalRed30:"#fcc8c8",signalRed40:"#f9b0b0",signalRed50:"#f69999",signalRed60:"#f38181",signalRed70:"#ef6a6a",signalRed80:"#eb4e4e",signalRed90:"#e93b3b",signalRed100:"#e62323",signalRed110:"#d12020",signalRed120:"#bc1d1d",signalRed130:"#a71919",signalRed140:"#921616",signalRed150:"#7d1313",signalRed160:"#691010",signalRed170:"#540d0d",signalRed180:"#3f0a0a",signalRed190:"#2a0606",signalRed200:"#150303"},a={fontFamily:'"Inter", sans-serif',lineHeight10:1,lineHeight20:1.125,lineHeight30:1.25,lineHeight40:1.375,lineHeight50:1.5,lineHeight60:1.75,lineHeight70:2,lineHeight80:2.25,lineHeight90:2.5,lineHeight100:2.75,fontSize10:"0.75rem",fontSize20:"0.875rem",fontSize30:"1rem",fontSize40:"1.125rem",fontSize50:"1.25rem",fontSize60:"1.5rem",fontSize70:"1.75rem",fontSize80:"2rem",fontSize90:"2.25rem",fontSize100:"2.625rem",weightThin:100,weightExtraLight:200,weightLight:300,weightRegular:400,weightMedium:500,weightSemiBold:600,weightBold:700,weightExtraBold:800,weightBlack:900},g={10:"0.125rem",20:"0.25rem",30:"0.5rem",40:"0.75rem",50:"1rem",60:"1.5rem",70:"2rem",80:"2.5rem",90:"3rem",100:"4rem",110:"5rem",120:"6rem"},i={focus:"0 0 0 2px light-dark(white, black), 0 0 0 4px light-dark(black, white)"},l={slow:"500ms",normal:"300ms",fast:"250ms"},e={sm:480,md:768,lg:1024,xl:1280},t={xs:`(max-width: ${e.sm-1}px)`,sm:`(min-width: ${e.sm}px)`,md:`(min-width: ${e.md}px)`,lg:`(min-width: ${e.lg}px)`,xl:`(min-width: ${e.xl}px)`,forcedColorsMode:"(forced-colors: active)",darkMode:"(prefers-color-scheme: dark)",prefersReducedMotion:"(prefers-reduced-motion: reduced)"},d={background:`light-dark(${r.white}, ${r.gray200})`,backgroundHover:`light-dark(${r.whiteHover}, ${r.gray190})`,backgroundInverse:`light-dark(${r.gray200}, ${r.gray10})`,layer01:`light-dark(${r.gray10}, ${r.gray180})`,layerHover01:`light-dark(${r.gray20}, ${r.gray170})`,layerSelected01:`light-dark(${r.gray30}, ${r.gray160})`,layerSelectedHover01:`light-dark(${r.gray40}, ${r.gray150})`,layer02:`light-dark(${r.white}, ${r.gray160})`,layerHover02:`light-dark(${r.whiteHover}, ${r.gray150})`,layerSelected02:`light-dark(${r.gray30}, ${r.gray140})`,layerSelectedHover02:`light-dark(${r.gray40}, ${r.gray130})`,layerAccent01:`light-dark(${r.gray30}, ${r.gray160})`,layerAccentHover01:`light-dark(${r.gray40}, ${r.gray150})`,layerAccentSelected01:`light-dark(${r.gray50}, ${r.gray140})`,layerAccent02:`light-dark(${r.gray10}, ${r.gray180})`,layerAccentHover02:`light-dark(${r.gray20}, ${r.gray170})`,layerAccentSelected02:`light-dark(${r.gray30}, ${r.gray160})`,brandPrimary:`light-dark(${r.red100}, ${r.red100})`,borderPrimary:`light-dark(${r.gray200}, ${r.gray10})`,borderSecondary:`light-dark(${r.gray110}, ${r.gray90})`,borderSubtle:`light-dark(${r.gray50}, ${r.gray160})`,borderTertiary:`light-dark(${r.blue150}, ${r.blue100})`,borderDisabled:`light-dark(${r.gray50}, ${r.gray140})`,field01:`light-dark(${r.gray10}, ${r.gray180})`,fieldHover01:`light-dark(${r.gray20}, ${r.gray170})`,fieldActive01:`light-dark(${r.gray30}, ${r.gray160})`,field02:`light-dark(${r.white}, ${r.gray160})`,fieldHover02:`light-dark(${r.whiteHover}, ${r.gray150})`,fieldActive02:`light-dark(${r.gray30}, ${r.gray140})`,fieldDisabled:`light-dark(${r.gray10}, ${r.gray180})`,fieldSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,skeleton01:`light-dark(${r.gray10}, ${r.gray180})`,skeleton02:`light-dark(${r.gray30}, ${r.gray160})`,iconPrimary:`light-dark(${r.gray200}, ${r.gray10})`,iconSecondary:`light-dark(${r.gray140}, ${r.gray70})`,iconTertiary:`light-dark(${r.blue150}, ${r.gray10})`,iconInverse:`light-dark(${r.white}, ${r.gray200})`,iconOnColor:`light-dark(${r.white}, ${r.white})`,iconDisabled:`light-dark(${r.gray50}, ${r.gray140})`,iconSuccess:`light-dark(${r.signalGreen100}, ${r.signalGreen100})`,iconInfo:`light-dark(${r.signalBlue100}, ${r.signalBlue100})`,iconWarning:`light-dark(${r.signalRed100}, ${r.signalRed100})`,iconImportant:`light-dark(${r.signalYellow100}, ${r.signalYellow100})`,linkEnabled:`light-dark(${r.blue120}, ${r.blue70})`,linkHover:`light-dark(${r.blue150}, ${r.blue50})`,linkPressed:`light-dark(${r.gray200}, ${r.blue40})`,linkVisited:`light-dark(${r.purple110}, ${r.purple80})`,supportBorderSuccess:`light-dark(${r.signalGreen100}, ${r.signalGreen100})`,supportBorderInfo:`light-dark(${r.signalBlue100}, ${r.signalBlue100})`,supportBorderImportant:`light-dark(${r.signalYellow100}, ${r.signalYellow100})`,supportBorderWarning:`light-dark(${r.signalRed100}, ${r.signalRed100})`,supportBackgroundSuccess:`light-dark(${r.signalGreen20}, ${r.gray180})`,supportBackgroundSuccessHover:`light-dark(${r.signalGreen30}, ${r.gray170})`,supportBackgroundInfo:`light-dark(${r.signalBlue10}, ${r.gray180})`,supportBackgroundImportant:`light-dark(${r.signalYellow10}, ${r.gray180})`,supportBackgroundWarning:`light-dark(${r.signalRed20}, ${r.gray180})`,supportBackgroundWarningHover:`light-dark(${r.signalRed30}, ${r.gray170})`,textPrimary:`light-dark(${r.gray200}, ${r.gray10})`,textSecondary:`light-dark(${r.gray140}, ${r.gray70})`,textTertiary:`light-dark(${r.blue150}, ${r.gray10})`,textOnColor:`light-dark(${r.white}, ${r.white})`,textInverse:`light-dark(${r.gray10}, ${r.gray200})`,textDisabled:`light-dark(${r.gray50}, ${r.gray140})`,textWarning:`light-dark(${r.signalRed100}, ${r.signalRed80})`,textPlaceholder:`light-dark(${r.gray70}, ${r.gray140})`,buttonBackgroundPrimary:`light-dark(${r.blue150}, ${r.blue100})`,buttonBackgroundPrimaryHover:`light-dark(${r.blue130}, ${r.blue130})`,buttonBackgroundPrimaryActive:`light-dark(${r.blue100}, ${r.blue150})`,buttonBackgroundSecondary:`light-dark(${r.white}, ${r.gray200})`,buttonBackgroundSecondaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundSecondaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundTertiaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundTertiaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundDanger:`light-dark(${r.signalRed100}, ${r.signalRed100})`,buttonBackgroundDangerHover:`light-dark(${r.signalRed120}, ${r.signalRed120})`,buttonBackgroundDangerActive:`light-dark(${r.signalRed150}, ${r.signalRed150})`,buttonBackgroundDisabled:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,buttonBorderSecondary:`light-dark(${r.blue150}, ${r.gray10})`,logoPrimary:`light-dark(${r.red100}, ${r.white})`,menuItemBackgroundHover:`light-dark(${r.gray20}, ${r.gray190})`,menuItemBackgroundSelected:`light-dark(${r.gray10}, ${r.gray180})`},n={base:1,above:10,modal:1e3,toast:1100,skipToContent:1200},o=Object.freeze(Object.defineProperty({__proto__:null,baseColors:r,breakpoints:t,semantic:d,spacing:g,states:i,transitions:l,typography:a,windowSizes:e,zIndex:n},Symbol.toStringTag,{value:"Module"}));exports.baseColors=r;exports.breakpoints=t;exports.semantic=d;exports.spacing=g;exports.states=i;exports.tokens=o;exports.transitions=l;exports.typography=a;exports.windowSizes=e;exports.zIndex=n;
1
+ "use strict";const r={black:"#000000",white:"#ffffff",blackHover:"#0d0d0d",whiteHover:"#e6e6e6",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray110:"#737373",gray120:"#666666",gray130:"#5d5d5d",gray140:"#525252",gray150:"#474747",gray160:"#383838",gray170:"#333333",gray180:"#262626",gray190:"#212121",gray200:"#171717",blue10:"#eaf2f6",blue20:"#d5e5ed",blue40:"#abcbdb",blue50:"#94BCD1",blue60:"#82b0c9",blue70:"#6CA3C0",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue110:"#2C7399",blue120:"#29698C",blue130:"#25607f",blue150:"#143c50",purple80:"#b46ab4",purple110:"#954b95",red100:"#b90835",signalBlue10:"#eaf2f6",signalBlue100:"#0066cc",signalGreen20:"#d5f2d9",signalGreen30:"#bae5c5",signalGreen100:"#008d3c",signalYellow10:"#fff8e1",signalYellow100:"#fdb813",signalRed10:"#ffefef",signalRed20:"#ffdfdf",signalRed30:"#fcc8c8",signalRed40:"#f9b0b0",signalRed50:"#f69999",signalRed60:"#f38181",signalRed70:"#ef6a6a",signalRed80:"#eb4e4e",signalRed90:"#e93b3b",signalRed100:"#e62323",signalRed110:"#d12020",signalRed120:"#bc1d1d",signalRed130:"#a71919",signalRed140:"#921616",signalRed150:"#7d1313",signalRed160:"#691010",signalRed170:"#540d0d",signalRed180:"#3f0a0a",signalRed190:"#2a0606",signalRed200:"#150303"},a={fontFamily:'"Inter", sans-serif',lineHeight10:1,lineHeight20:1.125,lineHeight30:1.25,lineHeight40:1.375,lineHeight50:1.5,lineHeight60:1.75,lineHeight70:2,lineHeight80:2.25,lineHeight90:2.5,lineHeight100:2.75,fontSize10:"0.75rem",fontSize20:"0.875rem",fontSize30:"1rem",fontSize40:"1.125rem",fontSize50:"1.25rem",fontSize60:"1.5rem",fontSize70:"1.75rem",fontSize80:"2rem",fontSize90:"2.25rem",fontSize100:"2.625rem",weightThin:100,weightExtraLight:200,weightLight:300,weightRegular:400,weightMedium:500,weightSemiBold:600,weightBold:700,weightExtraBold:800,weightBlack:900},g={10:"0.125rem",20:"0.25rem",30:"0.5rem",40:"0.75rem",50:"1rem",60:"1.5rem",70:"2rem",80:"2.5rem",90:"3rem",100:"4rem",110:"5rem",120:"6rem"},l={focus:"0 0 0 2px light-dark(white, black), 0 0 0 4px light-dark(black, white)"},i={slow:"500ms",normal:"300ms",fast:"250ms"},e={sm:480,md:768,lg:1024,xl:1280},t={xs:`(max-width: ${e.sm-1}px)`,sm:`(min-width: ${e.sm}px)`,md:`(min-width: ${e.md}px)`,lg:`(min-width: ${e.lg}px)`,xl:`(min-width: ${e.xl}px)`,forcedColorsMode:"(forced-colors: active)",darkMode:"(prefers-color-scheme: dark)",prefersReducedMotion:"(prefers-reduced-motion: reduced)"},d={background:`light-dark(${r.white}, ${r.gray200})`,backgroundHover:`light-dark(${r.whiteHover}, ${r.gray190})`,backgroundInverse:`light-dark(${r.gray200}, ${r.gray10})`,layer01:`light-dark(${r.gray10}, ${r.gray180})`,layerHover01:`light-dark(${r.gray20}, ${r.gray170})`,layerSelected01:`light-dark(${r.gray30}, ${r.gray160})`,layerSelectedHover01:`light-dark(${r.gray40}, ${r.gray150})`,layer02:`light-dark(${r.white}, ${r.gray160})`,layerHover02:`light-dark(${r.whiteHover}, ${r.gray150})`,layerSelected02:`light-dark(${r.gray30}, ${r.gray140})`,layerSelectedHover02:`light-dark(${r.gray40}, ${r.gray130})`,layerAccent01:`light-dark(${r.gray30}, ${r.gray160})`,layerAccentHover01:`light-dark(${r.gray40}, ${r.gray150})`,layerAccentSelected01:`light-dark(${r.gray50}, ${r.gray140})`,layerAccent02:`light-dark(${r.gray10}, ${r.gray180})`,layerAccentHover02:`light-dark(${r.gray20}, ${r.gray170})`,layerAccentSelected02:`light-dark(${r.gray30}, ${r.gray160})`,brandPrimary:`light-dark(${r.red100}, ${r.red100})`,borderPrimary:`light-dark(${r.gray200}, ${r.gray10})`,borderSecondary:`light-dark(${r.gray110}, ${r.gray90})`,borderSubtle:`light-dark(${r.gray50}, ${r.gray160})`,borderTertiary:`light-dark(${r.blue150}, ${r.blue100})`,borderDisabled:`light-dark(${r.gray50}, ${r.gray140})`,field01:`light-dark(${r.gray10}, ${r.gray180})`,fieldHover01:`light-dark(${r.gray20}, ${r.gray170})`,fieldActive01:`light-dark(${r.gray30}, ${r.gray160})`,field02:`light-dark(${r.white}, ${r.gray160})`,fieldHover02:`light-dark(${r.whiteHover}, ${r.gray150})`,fieldActive02:`light-dark(${r.gray30}, ${r.gray140})`,fieldDisabled:`light-dark(${r.gray10}, ${r.gray180})`,fieldSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,skeleton01:`light-dark(${r.gray10}, ${r.gray180})`,skeleton02:`light-dark(${r.gray30}, ${r.gray160})`,iconPrimary:`light-dark(${r.gray200}, ${r.gray10})`,iconSecondary:`light-dark(${r.gray140}, ${r.gray70})`,iconTertiary:`light-dark(${r.blue150}, ${r.gray10})`,iconInverse:`light-dark(${r.white}, ${r.gray200})`,iconOnColor:`light-dark(${r.white}, ${r.white})`,iconDisabled:`light-dark(${r.gray50}, ${r.gray140})`,iconSuccess:`light-dark(${r.signalGreen100}, ${r.signalGreen100})`,iconInfo:`light-dark(${r.signalBlue100}, ${r.signalBlue100})`,iconWarning:`light-dark(${r.signalRed100}, ${r.signalRed100})`,iconImportant:`light-dark(${r.signalYellow100}, ${r.signalYellow100})`,linkEnabled:`light-dark(${r.blue120}, ${r.blue70})`,linkHover:`light-dark(${r.blue150}, ${r.blue50})`,linkPressed:`light-dark(${r.gray200}, ${r.blue40})`,linkVisited:`light-dark(${r.purple110}, ${r.purple80})`,supportBorderSuccess:`light-dark(${r.signalGreen100}, ${r.signalGreen100})`,supportBorderInfo:`light-dark(${r.signalBlue100}, ${r.signalBlue100})`,supportBorderImportant:`light-dark(${r.signalYellow100}, ${r.signalYellow100})`,supportBorderWarning:`light-dark(${r.signalRed100}, ${r.signalRed100})`,supportBackgroundSuccess:`light-dark(${r.signalGreen20}, ${r.gray180})`,supportBackgroundSuccessHover:`light-dark(${r.signalGreen30}, ${r.gray170})`,supportBackgroundInfo:`light-dark(${r.signalBlue10}, ${r.gray180})`,supportBackgroundImportant:`light-dark(${r.signalYellow10}, ${r.gray180})`,supportBackgroundWarning:`light-dark(${r.signalRed20}, ${r.gray180})`,supportBackgroundWarningHover:`light-dark(${r.signalRed30}, ${r.gray170})`,textPrimary:`light-dark(${r.gray200}, ${r.gray10})`,textSecondary:`light-dark(${r.gray140}, ${r.gray70})`,textTertiary:`light-dark(${r.blue150}, ${r.gray10})`,textOnColor:`light-dark(${r.white}, ${r.white})`,textInverse:`light-dark(${r.gray10}, ${r.gray200})`,textDisabled:`light-dark(${r.gray50}, ${r.gray140})`,textWarning:`light-dark(${r.signalRed100}, ${r.signalRed80})`,textPlaceholder:`light-dark(${r.gray70}, ${r.gray140})`,buttonBackgroundPrimary:`light-dark(${r.blue150}, ${r.blue100})`,buttonBackgroundPrimaryHover:`light-dark(${r.blue130}, ${r.blue130})`,buttonBackgroundPrimaryActive:`light-dark(${r.blue100}, ${r.blue150})`,buttonBackgroundSecondary:`light-dark(${r.white}, ${r.gray200})`,buttonBackgroundSecondaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundSecondaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundTertiaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundTertiaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundDanger:`light-dark(${r.signalRed100}, ${r.signalRed100})`,buttonBackgroundDangerHover:`light-dark(${r.signalRed120}, ${r.signalRed120})`,buttonBackgroundDangerActive:`light-dark(${r.signalRed150}, ${r.signalRed150})`,buttonBackgroundDisabled:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,buttonBorderSecondary:`light-dark(${r.blue150}, ${r.gray10})`,calendarDateBackgroundHover:"light-dark(rgba(0 0 0 / 10%), rgba(255 255 255 / 10%))",calendarDateBackgroundSelected:`light-dark(${r.blue150}, ${r.blue80})`,calendarDateBackgroundStartRange:`light-dark(${r.blue150}, ${r.blue80})`,calendarDateBackgroundInRange:`light-dark(${r.blue20}, ${r.blue150})`,calendarDateBackgroundEndRange:`light-dark(${r.blue150}, ${r.blue80})`,logoPrimary:`light-dark(${r.red100}, ${r.white})`,menuItemBackgroundHover:`light-dark(${r.gray20}, ${r.gray190})`,menuItemBackgroundSelected:`light-dark(${r.gray10}, ${r.gray180})`},n={base:1,above:10,modal:1e3,toast:1100,skipToContent:1200},o=Object.freeze(Object.defineProperty({__proto__:null,baseColors:r,breakpoints:t,semantic:d,spacing:g,states:l,transitions:i,typography:a,windowSizes:e,zIndex:n},Symbol.toStringTag,{value:"Module"}));exports.baseColors=r;exports.breakpoints=t;exports.semantic=d;exports.spacing=g;exports.states=l;exports.tokens=o;exports.transitions=i;exports.typography=a;exports.windowSizes=e;exports.zIndex=n;
@@ -66,7 +66,7 @@ const r = {
66
66
  signalRed180: "#3f0a0a",
67
67
  signalRed190: "#2a0606",
68
68
  signalRed200: "#150303"
69
- }, a = {
69
+ }, e = {
70
70
  fontFamily: '"Inter", sans-serif',
71
71
  lineHeight10: 1,
72
72
  // 16px
@@ -148,17 +148,17 @@ const r = {
148
148
  slow: "500ms",
149
149
  normal: "300ms",
150
150
  fast: "250ms"
151
- }, e = {
151
+ }, a = {
152
152
  sm: 480,
153
153
  md: 768,
154
154
  lg: 1024,
155
155
  xl: 1280
156
156
  }, t = {
157
- xs: `(max-width: ${e.sm - 1}px)`,
158
- sm: `(min-width: ${e.sm}px)`,
159
- md: `(min-width: ${e.md}px)`,
160
- lg: `(min-width: ${e.lg}px)`,
161
- xl: `(min-width: ${e.xl}px)`,
157
+ xs: `(max-width: ${a.sm - 1}px)`,
158
+ sm: `(min-width: ${a.sm}px)`,
159
+ md: `(min-width: ${a.md}px)`,
160
+ lg: `(min-width: ${a.lg}px)`,
161
+ xl: `(min-width: ${a.xl}px)`,
162
162
  forcedColorsMode: "(forced-colors: active)",
163
163
  darkMode: "(prefers-color-scheme: dark)",
164
164
  prefersReducedMotion: "(prefers-reduced-motion: reduced)"
@@ -248,6 +248,11 @@ const r = {
248
248
  */
249
249
  buttonBackgroundSkeleton: `light-dark(${r.gray10}, ${r.gray180})`,
250
250
  buttonBorderSecondary: `light-dark(${r.blue150}, ${r.gray10})`,
251
+ calendarDateBackgroundHover: "light-dark(rgba(0 0 0 / 10%), rgba(255 255 255 / 10%))",
252
+ calendarDateBackgroundSelected: `light-dark(${r.blue150}, ${r.blue80})`,
253
+ calendarDateBackgroundStartRange: `light-dark(${r.blue150}, ${r.blue80})`,
254
+ calendarDateBackgroundInRange: `light-dark(${r.blue20}, ${r.blue150})`,
255
+ calendarDateBackgroundEndRange: `light-dark(${r.blue150}, ${r.blue80})`,
251
256
  logoPrimary: `light-dark(${r.red100}, ${r.white})`,
252
257
  menuItemBackgroundHover: `light-dark(${r.gray20}, ${r.gray190})`,
253
258
  menuItemBackgroundSelected: `light-dark(${r.gray10}, ${r.gray180})`
@@ -265,12 +270,12 @@ const r = {
265
270
  spacing: g,
266
271
  states: l,
267
272
  transitions: i,
268
- typography: a,
269
- windowSizes: e,
273
+ typography: e,
274
+ windowSizes: a,
270
275
  zIndex: n
271
276
  }, Symbol.toStringTag, { value: "Module" }));
272
277
  export {
273
- a,
278
+ e as a,
274
279
  r as b,
275
280
  l as c,
276
281
  i as d,
@@ -278,6 +283,6 @@ export {
278
283
  d as f,
279
284
  g as s,
280
285
  o as t,
281
- e as w,
286
+ a as w,
282
287
  n as z
283
288
  };
package/tooltip/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Tooltip-DeBuBKhS.cjs");exports.Tooltip=o.Tooltip;exports.TooltipTrigger=o.TooltipTrigger;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Tooltip-pN5W3IK6.cjs");exports.Tooltip=o.Tooltip;exports.TooltipTrigger=o.TooltipTrigger;
package/tooltip/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T, a } from "../Tooltip-CMLs7WMw.js";
1
+ import { T, a } from "../Tooltip-5mLWn_wO.js";
2
2
  export {
3
3
  T as Tooltip,
4
4
  a as TooltipTrigger
@@ -1,7 +1,7 @@
1
- import { c as d } from "./utils-DIMfEPAt.js";
1
+ import { a as d } from "./mergeProps-C1U1OIeJ.js";
2
2
  import { $ as C } from "./filterDOMProps-D6KHYVBX.js";
3
- import { a as D } from "./usePress-CNjmDzap.js";
4
- import { $ as F } from "./useFocusable-C8uh8K4g.js";
3
+ import { a as D } from "./usePress-DuR4pVsE.js";
4
+ import { $ as F } from "./useFocusable-ChPA2Jc7.js";
5
5
  function S(e, t) {
6
6
  let { elementType: s = "button", isDisabled: r, onPress: i, onPressStart: l, onPressEnd: c, onPressUp: p, onPressChange: f, preventFocusOnPress: u, allowFocusWhenDisabled: P, onClick: b, href: $, target: h, rel: m, type: o = "button" } = e, a;
7
7
  s === "button" ? a = {
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./mergeProps-B5KXZAI3.cjs"),D=require("./filterDOMProps-BS2lrgFA.cjs"),F=require("./usePress-BooY_CAy.cjs"),q=require("./useFocusable-D7I1ujkW.cjs");function O(e,t){let{elementType:s="button",isDisabled:r,onPress:i,onPressStart:c,onPressEnd:l,onPressUp:u,onPressChange:b,preventFocusOnPress:P,allowFocusWhenDisabled:f,onClick:p,href:$,target:x,rel:h,type:d="button"}=e,a;s==="button"?a={type:d,disabled:r}:a={role:"button",href:s==="a"&&!r?$:void 0,target:s==="a"?x:void 0,type:s==="input"?d:void 0,disabled:s==="input"?r:void 0,"aria-disabled":!r||s==="input"?void 0:r,rel:s==="a"?h:void 0};let{pressProps:g,isPressed:y}=F.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:c,onPressEnd:l,onPressChange:b,onPress:i,onPressUp:u,onClick:p,isDisabled:r,preventFocusOnPress:P,ref:t}),{focusableProps:n}=q.$f645667febf57a63$export$4c014de7c8940b4c(e,t);f&&(n.tabIndex=r?-1:n.tabIndex);let C=o.$3ef42575df84b30b$export$9d1611c77c2fe928(n,g,D.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}));return{isPressed:y,buttonProps:o.$3ef42575df84b30b$export$9d1611c77c2fe928(a,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}exports.$701a24aa0da5b062$export$ea18c227d4417cc3=O;
@@ -1 +1 @@
1
- "use strict";const G=require("./usePress-0AjDbW9R.cjs"),wr=require("./context-DjwhtgxQ.cjs"),He=require("react");function Pe(r,e){let t=He.useRef(null);return r&&t.current&&e(r,t.current)&&(r=t.current),t.current=r,r}function Y(r,e){return r-e*Math.floor(r/e)}const Ze=1721426;function w(r,e,t,n){e=Q(r,e);let a=e-1,o=-2;return t<=2?o=0:p(e)&&(o=-1),Ze-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*t-362)/12+o+n)}function p(r){return r%4===0&&(r%100!==0||r%400===0)}function Q(r,e){return r==="BC"?1-e:e}function j(r){let e="AD";return r<=0&&(e="BC",r=1-r),[e,r]}const xr={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class h{fromJulianDay(e){let t=e,n=t-Ze,a=Math.floor(n/146097),o=Y(n,146097),f=Math.floor(o/36524),c=Y(o,36524),i=Math.floor(c/1461),s=Y(c,1461),A=Math.floor(s/365),E=a*400+f*100+i*4+A+(f!==4&&A!==4?1:0),[C,M]=j(E),b=t-w(C,M,1,1),z=2;t<w(C,M,3,1)?z=0:p(M)&&(z=1);let Ae=Math.floor(((b+z)*12+373)/367),Dr=t-w(C,M,Ae,1)+1;return new l(C,M,Ae,Dr)}toJulianDay(e){return w(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return xr[p(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return p(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const vr={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function $e(r,e){return e=u(e,r.calendar),r.era===e.era&&r.year===e.year&&r.month===e.month&&r.day===e.day}function Ar(r,e){return e=u(e,r.calendar),r=_(r),e=_(e),r.era===e.era&&r.year===e.year&&r.month===e.month}function Er(r,e){return he(r.calendar,e.calendar)&&$e(r,e)}function he(r,e){var t,n,a,o;return(o=(a=(t=r.isEqual)===null||t===void 0?void 0:t.call(r,e))!==null&&a!==void 0?a:(n=e.isEqual)===null||n===void 0?void 0:n.call(e,r))!==null&&o!==void 0?o:r.identifier===e.identifier}function Cr(r,e){return $e(r,We(e))}const Ir={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function de(r,e,t){let n=r.calendar.toJulianDay(r),a=t?Ir[t]:Jr(e),o=Math.ceil(n+1-a)%7;return o<0&&(o+=7),o}function Ve(r){return y(Date.now(),r)}function We(r){return rr(Ve(r))}function Ke(r,e){return r.calendar.toJulianDay(r)-e.calendar.toJulianDay(e)}function Ge(r,e){return Ee(r)-Ee(e)}function Ee(r){return r.hour*36e5+r.minute*6e4+r.second*1e3+r.millisecond}let ee=null;function ye(){return ee==null&&(ee=new Intl.DateTimeFormat().resolvedOptions().timeZone),ee}function _(r){return r.subtract({days:r.day-1})}function Yr(r){return r.add({days:r.calendar.getDaysInMonth(r)-r.day})}function Sr(r){return _(r.subtract({months:r.month-1}))}function Br(r){return r.calendar.getMinimumMonthInYear?r.calendar.getMinimumMonthInYear(r):1}function Tr(r){return r.calendar.getMinimumDayInMonth?r.calendar.getMinimumDayInMonth(r):1}function je(r,e,t){let n=de(r,e,t);return r.subtract({days:n})}function Ur(r,e,t){return je(r,e,t).add({days:6})}const Ce=new Map;function Rr(r){if(Intl.Locale){let t=Ce.get(r);return t||(t=new Intl.Locale(r).maximize().region,t&&Ce.set(r,t)),t}let e=r.split("-")[1];return e==="u"?void 0:e}function Jr(r){let e=Rr(r);return e&&vr[e]||0}function _r(r,e,t){let n=r.calendar.getDaysInMonth(r);return Math.ceil((de(_(r),e,t)+n)/7)}function Lr(r,e){return r&&e?r.compare(e)<=0?r:e:r||e}function kr(r,e){return r&&e?r.compare(e)>=0?r:e:r||e}function T(r){r=u(r,new h);let e=Q(r.era,r.year);return Xe(e,r.month,r.day,r.hour,r.minute,r.second,r.millisecond)}function Xe(r,e,t,n,a,o,f){let c=new Date;return c.setUTCHours(n,a,o,f),c.setUTCFullYear(r,e-1,t),c.getTime()}function fe(r,e){if(e==="UTC")return 0;if(r>0&&e===ye())return new Date(r).getTimezoneOffset()*-6e4;let{year:t,month:n,day:a,hour:o,minute:f,second:c}=ze(r,e);return Xe(t,n,a,o,f,c,0)-Math.floor(r/1e3)*1e3}const Ie=new Map;function ze(r,e){let t=Ie.get(e);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ie.set(e,t));let n=t.formatToParts(new Date(r)),a={};for(let o of n)o.type!=="literal"&&(a[o.type]=o.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const Ye=864e5;function Qr(r,e,t,n){return(t===n?[t]:[t,n]).filter(o=>Fr(r,e,o))}function Fr(r,e,t){let n=ze(t,e);return r.year===n.year&&r.month===n.month&&r.day===n.day&&r.hour===n.hour&&r.minute===n.minute&&r.second===n.second}function d(r,e,t="compatible"){let n=x(r);if(e==="UTC")return T(n);if(e===ye()&&t==="compatible"){n=u(n,new h);let i=new Date,s=Q(n.era,n.year);return i.setFullYear(s,n.month-1,n.day),i.setHours(n.hour,n.minute,n.second,n.millisecond),i.getTime()}let a=T(n),o=fe(a-Ye,e),f=fe(a+Ye,e),c=Qr(n,e,a-o,a-f);if(c.length===1)return c[0];if(c.length>1)switch(t){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(a-o,a-f);case"compatible":case"later":return Math.max(a-o,a-f);case"reject":throw new RangeError("No such absolute time found")}}function er(r,e,t="compatible"){return new Date(d(r,e,t))}function y(r,e){let t=fe(r,e),n=new Date(r+t),a=n.getUTCFullYear(),o=n.getUTCMonth()+1,f=n.getUTCDate(),c=n.getUTCHours(),i=n.getUTCMinutes(),s=n.getUTCSeconds(),A=n.getUTCMilliseconds();return new k(a<1?"BC":"AD",a<1?-a+1:a,o,f,e,t,c,i,s,A)}function rr(r){return new l(r.calendar,r.era,r.year,r.month,r.day)}function x(r,e){let t=0,n=0,a=0,o=0;if("timeZone"in r)({hour:t,minute:n,second:a,millisecond:o}=r);else if("hour"in r&&!e)return r;return e&&({hour:t,minute:n,second:a,millisecond:o}=e),new P(r.calendar,r.era,r.year,r.month,r.day,t,n,a,o)}function u(r,e){if(he(r.calendar,e))return r;let t=e.fromJulianDay(r.calendar.toJulianDay(r)),n=r.copy();return n.calendar=e,n.era=t.era,n.year=t.year,n.month=t.month,n.day=t.day,v(n),n}function Or(r,e,t){if(r instanceof k)return r.timeZone===e?r:Nr(r,e);let n=d(r,e,t);return y(n,e)}function qr(r){let e=T(r)-r.offset;return new Date(e)}function Nr(r,e){let t=T(r)-r.offset;return u(y(t,e),r.calendar)}const U=36e5;function X(r,e){let t=r.copy(),n="hour"in t?or(t,e):0;ce(t,e.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,r),t.month+=e.months||0,ie(t),tr(t),t.day+=(e.weeks||0)*7,t.day+=e.days||0,t.day+=n,Hr(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let a=t.calendar.getYearsInEra(t);if(t.year>a){var o,f;let i=(o=(f=t.calendar).isInverseEra)===null||o===void 0?void 0:o.call(f,t);t.year=a,t.month=i?1:t.calendar.getMonthsInYear(t),t.day=i?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let c=t.calendar.getMonthsInYear(t);return t.month>c&&(t.month=c,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function ce(r,e){var t,n;!((t=(n=r.calendar).isInverseEra)===null||t===void 0)&&t.call(n,r)&&(e=-e),r.year+=e}function ie(r){for(;r.month<1;)ce(r,-1),r.month+=r.calendar.getMonthsInYear(r);let e=0;for(;r.month>(e=r.calendar.getMonthsInYear(r));)r.month-=e,ce(r,1)}function Hr(r){for(;r.day<1;)r.month--,ie(r),r.day+=r.calendar.getDaysInMonth(r);for(;r.day>r.calendar.getDaysInMonth(r);)r.day-=r.calendar.getDaysInMonth(r),r.month++,ie(r)}function tr(r){r.month=Math.max(1,Math.min(r.calendar.getMonthsInYear(r),r.month)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day))}function v(r){r.calendar.constrainDate&&r.calendar.constrainDate(r),r.year=Math.max(1,Math.min(r.calendar.getYearsInEra(r),r.year)),tr(r)}function me(r){let e={};for(let t in r)typeof r[t]=="number"&&(e[t]=-r[t]);return e}function nr(r,e){return X(r,me(e))}function be(r,e){let t=r.copy();return e.era!=null&&(t.era=e.era),e.year!=null&&(t.year=e.year),e.month!=null&&(t.month=e.month),e.day!=null&&(t.day=e.day),v(t),t}function L(r,e){let t=r.copy();return e.hour!=null&&(t.hour=e.hour),e.minute!=null&&(t.minute=e.minute),e.second!=null&&(t.second=e.second),e.millisecond!=null&&(t.millisecond=e.millisecond),ar(t),t}function Pr(r){r.second+=Math.floor(r.millisecond/1e3),r.millisecond=F(r.millisecond,1e3),r.minute+=Math.floor(r.second/60),r.second=F(r.second,60),r.hour+=Math.floor(r.minute/60),r.minute=F(r.minute,60);let e=Math.floor(r.hour/24);return r.hour=F(r.hour,24),e}function ar(r){r.millisecond=Math.max(0,Math.min(r.millisecond,1e3)),r.second=Math.max(0,Math.min(r.second,59)),r.minute=Math.max(0,Math.min(r.minute,59)),r.hour=Math.max(0,Math.min(r.hour,23))}function F(r,e){let t=r%e;return t<0&&(t+=e),t}function or(r,e){return r.hour+=e.hours||0,r.minute+=e.minutes||0,r.second+=e.seconds||0,r.millisecond+=e.milliseconds||0,Pr(r)}function fr(r,e){let t=r.copy();return or(t,e),t}function Zr(r,e){return fr(r,me(e))}function ge(r,e,t,n){let a=r.copy();switch(e){case"era":{let c=r.calendar.getEras(),i=c.indexOf(r.era);if(i<0)throw new Error("Invalid era: "+r.era);i=m(i,t,0,c.length-1,n==null?void 0:n.round),a.era=c[i],v(a);break}case"year":var o,f;!((o=(f=a.calendar).isInverseEra)===null||o===void 0)&&o.call(f,a)&&(t=-t),a.year=m(r.year,t,-1/0,9999,n==null?void 0:n.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,r);break;case"month":a.month=m(r.month,t,1,r.calendar.getMonthsInYear(r),n==null?void 0:n.round);break;case"day":a.day=m(r.day,t,1,r.calendar.getDaysInMonth(r),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return r.calendar.balanceDate&&r.calendar.balanceDate(a),v(a),a}function pe(r,e,t,n){let a=r.copy();switch(e){case"hour":{let o=r.hour,f=0,c=23;if((n==null?void 0:n.hourCycle)===12){let i=o>=12;f=i?12:0,c=i?23:11}a.hour=m(o,t,f,c,n==null?void 0:n.round);break}case"minute":a.minute=m(r.minute,t,0,59,n==null?void 0:n.round);break;case"second":a.second=m(r.second,t,0,59,n==null?void 0:n.round);break;case"millisecond":a.millisecond=m(r.millisecond,t,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return a}function m(r,e,t,n,a=!1){if(a){r+=Math.sign(e),r<t&&(r=n);let o=Math.abs(e);e>0?r=Math.ceil(r/o)*o:r=Math.floor(r/o)*o,r>n&&(r=t)}else r+=e,r<t?r=n-(t-r-1):r>n&&(r=t+(r-n-1));return r}function cr(r,e){let t;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let a=X(x(r),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});t=d(a,r.timeZone)}else t=T(r)-r.offset;t+=e.milliseconds||0,t+=(e.seconds||0)*1e3,t+=(e.minutes||0)*6e4,t+=(e.hours||0)*36e5;let n=y(t,r.timeZone);return u(n,r.calendar)}function Vr(r,e){return cr(r,me(e))}function Wr(r,e,t,n){switch(e){case"hour":{let a=0,o=23;if((n==null?void 0:n.hourCycle)===12){let b=r.hour>=12;a=b?12:0,o=b?23:11}let f=x(r),c=u(L(f,{hour:a}),new h),i=[d(c,r.timeZone,"earlier"),d(c,r.timeZone,"later")].filter(b=>y(b,r.timeZone).day===c.day)[0],s=u(L(f,{hour:o}),new h),A=[d(s,r.timeZone,"earlier"),d(s,r.timeZone,"later")].filter(b=>y(b,r.timeZone).day===s.day).pop(),E=T(r)-r.offset,C=Math.floor(E/U),M=E%U;return E=m(C,t,Math.floor(i/U),Math.floor(A/U),n==null?void 0:n.round)*U+M,u(y(E,r.timeZone),r.calendar)}case"minute":case"second":case"millisecond":return pe(r,e,t,n);case"era":case"year":case"month":case"day":{let a=ge(x(r),e,t,n),o=d(a,r.timeZone);return u(y(o,r.timeZone),r.calendar)}default:throw new Error("Unsupported field "+e)}}function Kr(r,e,t){let n=x(r),a=L(be(n,e),e);if(a.compare(n)===0)return r;let o=d(a,r.timeZone,t);return u(y(o,r.timeZone),r.calendar)}function ir(r){return`${String(r.hour).padStart(2,"0")}:${String(r.minute).padStart(2,"0")}:${String(r.second).padStart(2,"0")}${r.millisecond?String(r.millisecond/1e3).slice(1):""}`}function lr(r){let e=u(r,new h),t;return e.era==="BC"?t=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):t=String(e.year).padStart(4,"0"),`${t}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function sr(r){return`${lr(r)}T${ir(r)}`}function Gr(r){let e=Math.sign(r)<0?"-":"+";r=Math.abs(r);let t=Math.floor(r/36e5),n=r%36e5/6e4;return`${e}${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function jr(r){return`${sr(r)}${Gr(r.offset)}[${r.timeZone}]`}function Me(r){let e=typeof r[0]=="object"?r.shift():new h,t;if(typeof r[0]=="string")t=r.shift();else{let f=e.getEras();t=f[f.length-1]}let n=r.shift(),a=r.shift(),o=r.shift();return[e,t,n,a,o]}var Xr=new WeakMap;class l{copy(){return this.era?new l(this.calendar,this.era,this.year,this.month,this.day):new l(this.calendar,this.year,this.month,this.day)}add(e){return X(this,e)}subtract(e){return nr(this,e)}set(e){return be(this,e)}cycle(e,t,n){return ge(this,e,t,n)}toDate(e){return er(this,e)}toString(){return lr(this)}compare(e){return Ke(this,e)}constructor(...e){G._class_private_field_init(this,Xr,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,v(this)}}var zr=new WeakMap;class De{copy(){return new De(this.hour,this.minute,this.second,this.millisecond)}add(e){return fr(this,e)}subtract(e){return Zr(this,e)}set(e){return L(this,e)}cycle(e,t,n){return pe(this,e,t,n)}toString(){return ir(this)}compare(e){return Ge(this,e)}constructor(e=0,t=0,n=0,a=0){G._class_private_field_init(this,zr,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=a,ar(this)}}var et=new WeakMap;class P{copy(){return this.era?new P(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new P(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return X(this,e)}subtract(e){return nr(this,e)}set(e){return be(L(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return ge(this,e,t,n);default:return pe(this,e,t,n)}}toDate(e,t){return er(this,e,t)}toString(){return sr(this)}compare(e){let t=Ke(this,e);return t===0?Ge(this,x(e)):t}constructor(...e){G._class_private_field_init(this,et,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,v(this)}}var rt=new WeakMap;class k{copy(){return this.era?new k(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new k(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return cr(this,e)}subtract(e){return Vr(this,e)}set(e,t){return Kr(this,e,t)}cycle(e,t,n){return Wr(this,e,t,n)}toDate(){return qr(this)}toString(){return jr(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Or(e,this.timeZone).toDate().getTime()}constructor(...e){G._class_private_field_init(this,rt,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e),c=e.shift(),i=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,this.timeZone=c,this.offset=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,v(this)}}const S=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],tt=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],q=[1867,1911,1925,1988,2018],g=["meiji","taisho","showa","heisei","reiwa"];function Se(r){const e=S.findIndex(([t,n,a])=>r.year<t||r.year===t&&r.month<n||r.year===t&&r.month===n&&r.day<a);return e===-1?S.length-1:e===0?0:e-1}function re(r){let e=q[g.indexOf(r.era)];if(!e)throw new Error("Unknown era: "+r.era);return new l(r.year+e,r.month,r.day)}class nt extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Se(t);return new l(this,g[n],t.year-q[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(re(e))}balanceDate(e){let t=re(e),n=Se(t);g[n]!==e.era&&(e.era=g[n],e.year=t.year-q[n]),this.constrainDate(e)}constrainDate(e){let t=g.indexOf(e.era),n=tt[t];if(n!=null){let[a,o,f]=n,c=a-q[t];e.year=Math.max(1,Math.min(c,e.year)),e.year===c&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(f,e.day)))}if(e.year===1&&t>=0){let[,a,o]=S[t];e.month=Math.max(a,e.month),e.month===a&&(e.day=Math.max(o,e.day))}}getEras(){return g}getYearsInEra(e){let t=g.indexOf(e.era),n=S[t],a=S[t+1];if(a==null)return 9999-n[0]+1;let o=a[0]-n[0];return(e.month<a[1]||e.month===a[1]&&e.day<a[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(re(e))}getMinimumMonthInYear(e){let t=Be(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=Be(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function Be(r){if(r.year===1){let e=g.indexOf(r.era);return S[e]}}const ur=-543;class at extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Q(t.era,t.year);return new l(this,n-ur,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Te(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(Te(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function Te(r){let[e,t]=j(r.year+ur);return new l(e,t,r.month,r.day)}const Z=1911;function $r(r){return r.era==="minguo"?r.year+Z:1-r.year+Z}function Ue(r){let e=r-Z;return e>0?["minguo",e]:["before_minguo",1-e]}class ot extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Q(t.era,t.year),[a,o]=Ue(n);return new l(this,a,o,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Re(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=Ue($r(e));e.era=t,e.year=n}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(Re(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-Z}constructor(...e){super(...e),this.identifier="roc"}}function Re(r){let[e,t]=j($r(r));return new l(e,t,r.month,r.day)}const Je=1948320,_e=[0,31,62,93,124,155,186,216,246,276,306,336];class ft{fromJulianDay(e){let t=e-Je,n=1+Math.floor((33*t+3)/12053),a=365*(n-1)+Math.floor((8*n+21)/33),o=t-a,f=o<216?Math.floor(o/31):Math.floor((o-6)/30),c=o-_e[f]+1;return new l(this,n,f+1,c)}toJulianDay(e){let t=Je-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=_e[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||Y(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const te=78,Le=80;class ct extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-te,a=e-w(t.era,t.year,1,1),o;a<Le?(n--,o=p(t.year-1)?31:30,a+=o+155+90+10):(o=p(t.year)?31:30,a-=Le);let f,c;if(a<o)f=1,c=a+1;else{let i=a-o;i<155?(f=Math.floor(i/31)+2,c=i%31+1):(i-=155,f=Math.floor(i/30)+7,c=i%30+1)}return new l(this,n,f,c)}toJulianDay(e){let t=e.year+te,[n,a]=j(t),o,f;return p(a)?(o=31,f=w(n,a,3,21)):(o=30,f=w(n,a,3,22)),e.month===1?f+e.day-1:(f+=o+Math.min(e.month-2,5)*31,e.month>=8&&(f+=(e.month-7)*30),f+=e.day-1,f)}getDaysInMonth(e){return e.month===1&&p(e.year+te)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const V=1948440,ke=1948439,$=1300,I=1600,it=460322;function W(r,e,t,n){return n+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+r-1}function hr(r,e,t){let n=Math.floor((30*(t-e)+10646)/10631),a=Math.min(12,Math.ceil((t-(29+W(e,n,1,1)))/29.5)+1),o=t-W(e,n,a,1)+1;return new l(r,n,a,o)}function Qe(r){return(14+11*r)%30<11}class we{fromJulianDay(e){return hr(this,V,e)}toJulianDay(e){return W(V,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&Qe(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Qe(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lt extends we{fromJulianDay(e){return hr(this,ke,e)}toJulianDay(e){return W(ke,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const st="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let le,B;function N(r){return it+B[r-$]}function R(r,e){let t=r-$,n=1<<11-(e-1);return le[t]&n?30:29}function Fe(r,e){let t=N(r);for(let n=1;n<e;n++)t+=R(r,n);return t}function Oe(r){return B[r+1-$]-B[r-$]}class ut extends we{fromJulianDay(e){let t=e-V,n=N($),a=N(I);if(t<n||t>a)return super.fromJulianDay(e);{let o=$-1,f=1,c=1;for(;c>0;){o++,c=t-N(o)+1;let i=Oe(o);if(c===i){f=12;break}else if(c<i){let s=R(o,f);for(f=1;c>s;)c-=s,f++,s=R(o,f);break}}return new l(this,o,f,t-Fe(o,f)+1)}}toJulianDay(e){return e.year<$||e.year>I?super.toJulianDay(e):V+Fe(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<$||e.year>I?super.getDaysInMonth(e):R(e.year,e.month)}getDaysInYear(e){return e.year<$||e.year>I?super.getDaysInYear(e):Oe(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",le||(le=new Uint16Array(Uint8Array.from(atob(st),e=>e.charCodeAt(0)).buffer)),!B){B=new Uint32Array(I-$+1);let e=0;for(let t=$;t<=I;t++){B[t-$]=e;for(let n=1;n<=12;n++)e+=R(t,n)}}}}const qe=347997,dr=1080,yr=24*dr,$t=29,ht=12*dr+793,dt=$t*yr+ht;function D(r){return Y(r*7+1,19)<7}function H(r){let e=Math.floor((235*r-234)/19),t=12084+13753*e,n=e*29+Math.floor(t/25920);return Y(3*(n+1),7)<3&&(n+=1),n}function yt(r){let e=H(r-1),t=H(r);return H(r+1)-t===356?2:t-e===382?1:0}function J(r){return H(r)+yt(r)}function mr(r){return J(r+1)-J(r)}function mt(r){let e=mr(r);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function O(r,e){if(e>=6&&!D(r)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let t=mt(r);return e===2?t===2?30:29:e===3?t===0?29:30:e===6?D(r)?30:0:30}class bt{fromJulianDay(e){let t=e-qe,n=t*yr/dt,a=Math.floor((19*n+234)/235)+1,o=J(a),f=Math.floor(t-o);for(;f<1;)a--,o=J(a),f=Math.floor(t-o);let c=1,i=0;for(;i<f;)i+=O(a,c),c++;c--,i-=O(a,c);let s=f-i;return new l(this,a,c,s)}toJulianDay(e){let t=J(e.year);for(let n=1;n<e.month;n++)t+=O(e.year,n);return t+e.day+qe}getDaysInMonth(e){return O(e.year,e.month)}getMonthsInYear(e){return D(e.year)?13:12}getDaysInYear(e){return mr(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(D(t.year)&&!D(e.year)&&t.month>6?e.month--:!D(t.year)&&D(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const se=1723856,Ne=1824665,ue=5500;function K(r,e,t,n){return r+365*e+Math.floor(e/4)+30*(t-1)+n-1}function xe(r,e){let t=Math.floor(4*(e-r)/1461),n=1+Math.floor((e-K(r,t,1,1))/30),a=e+1-K(r,t,n,1);return[t,n,a]}function br(r){return Math.floor(r%4/3)}function gr(r,e){return e%13!==0?30:br(r)+5}class ve{fromJulianDay(e){let[t,n,a]=xe(se,e),o="AM";return t<=0&&(o="AA",t+=ue),new l(this,o,t,n,a)}toJulianDay(e){let t=e.year;return e.era==="AA"&&(t-=ue),K(se,t,e.month,e.day)}getDaysInMonth(e){return gr(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+br(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gt extends ve{fromJulianDay(e){let[t,n,a]=xe(se,e);return t+=ue,new l(this,"AA",t,n,a)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class pt extends ve{fromJulianDay(e){let[t,n,a]=xe(Ne,e),o="CE";return t<=0&&(o="BCE",t=1-t),new l(this,o,t,n,a)}toJulianDay(e){let t=e.year;return e.era==="BCE"&&(t=1-t),K(Ne,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era==="BCE"&&(t=1-t),gr(t,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Mt(r){switch(r){case"buddhist":return new at;case"ethiopic":return new ve;case"ethioaa":return new gt;case"coptic":return new pt;case"hebrew":return new bt;case"indian":return new ct;case"islamic-civil":return new we;case"islamic-tbla":return new lt;case"islamic-umalqura":return new ut;case"japanese":return new nt;case"persian":return new ft;case"roc":return new ot;case"gregory":default:return new h}}let ne=new Map;class pr{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),a=this.formatter.formatToParts(t);return[...n.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return xt()&&(this.resolvedHourCycle||(this.resolvedHourCycle=vt(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=Mr(e,t),this.options=t}}const Dt={true:{ja:"h11"},false:{}};function Mr(r,e={}){if(typeof e.hour12=="boolean"&&wt()){e={...e};let a=Dt[String(e.hour12)][r.split("-")[0]],o=e.hour12?"h12":"h23";e.hourCycle=a??o,delete e.hour12}let t=r+(e?Object.entries(e).sort((a,o)=>a[0]<o[0]?-1:1).join():"");if(ne.has(t))return ne.get(t);let n=new Intl.DateTimeFormat(r,e);return ne.set(t,n),n}let ae=null;function wt(){return ae==null&&(ae=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ae}let oe=null;function xt(){return oe==null&&(oe=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),oe}function vt(r,e){if(!e.timeStyle&&!e.hour)return;r=r.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),r+=(r.includes("-u-")?"":"-u")+"-nu-latn";let t=Mr(r,{...e,timeZone:void 0}),n=parseInt(t.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),a=parseInt(t.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(n===0&&a===23)return"h23";if(n===24&&a===23)return"h24";if(n===0&&a===11)return"h11";if(n===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}function At(r){r=Pe(r??{},Et);let{locale:e}=wr.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return He.useMemo(()=>new pr(e,r),[e,r])}function Et(r,e){if(r===e)return!0;let t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(let a of t)if(e[a]!==r[a])return!1;return!0}exports.$11d87f3f76e88657$export$93522d1a439f3617=rr;exports.$11d87f3f76e88657$export$b21e0b124e224484=x;exports.$11d87f3f76e88657$export$b4a036af3fc0b032=u;exports.$14e0f24ef4ac5c92$export$2061056d06d7cdf7=de;exports.$14e0f24ef4ac5c92$export$42c81a444fbfb5d4=je;exports.$14e0f24ef4ac5c92$export$461939dd4422153=Ve;exports.$14e0f24ef4ac5c92$export$5412ac11713b72ad=Br;exports.$14e0f24ef4ac5c92$export$5c333a116e949cdd=Lr;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=Cr;exports.$14e0f24ef4ac5c92$export$91b62ebf2ba703ee=Er;exports.$14e0f24ef4ac5c92$export$a18c89cbd24170ff=Ar;exports.$14e0f24ef4ac5c92$export$a2258d9c4118825c=Yr;exports.$14e0f24ef4ac5c92$export$a5a3b454ada2268e=_;exports.$14e0f24ef4ac5c92$export$a75f2bff57811055=kr;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ye;exports.$14e0f24ef4ac5c92$export$b2f4953d301981d5=Tr;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=_r;exports.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3=We;exports.$14e0f24ef4ac5c92$export$dbc69fd56b53d5e=he;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=$e;exports.$14e0f24ef4ac5c92$export$ef8b6d9133084f4e=Ur;exports.$14e0f24ef4ac5c92$export$f91e89d3d0406102=Sr;exports.$35ea8db9cb2ccb90$export$680ea196effce5f=De;exports.$35ea8db9cb2ccb90$export$99faa760c7908e4f=l;exports.$3b62074eb05584b2$export$80ee6245ec4f29ec=h;exports.$5a387cc49350e6db$export$722debc0e56fea39=Pe;exports.$64244302c3013299$export$dd0bbc9b26defe37=Mt;exports.$896ba0a80a8f4d36$export$85fd5fdf27bacc79=At;exports.$fb18d541ea1ad717$export$ad991b66133851cf=pr;
1
+ "use strict";const G=require("./usePress-BooY_CAy.cjs"),wr=require("./context-Df3XbgBG.cjs"),He=require("react");function Pe(r,e){let t=He.useRef(null);return r&&t.current&&e(r,t.current)&&(r=t.current),t.current=r,r}function Y(r,e){return r-e*Math.floor(r/e)}const Ze=1721426;function w(r,e,t,n){e=Q(r,e);let a=e-1,o=-2;return t<=2?o=0:p(e)&&(o=-1),Ze-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*t-362)/12+o+n)}function p(r){return r%4===0&&(r%100!==0||r%400===0)}function Q(r,e){return r==="BC"?1-e:e}function j(r){let e="AD";return r<=0&&(e="BC",r=1-r),[e,r]}const xr={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class h{fromJulianDay(e){let t=e,n=t-Ze,a=Math.floor(n/146097),o=Y(n,146097),f=Math.floor(o/36524),c=Y(o,36524),i=Math.floor(c/1461),s=Y(c,1461),A=Math.floor(s/365),E=a*400+f*100+i*4+A+(f!==4&&A!==4?1:0),[C,M]=j(E),b=t-w(C,M,1,1),z=2;t<w(C,M,3,1)?z=0:p(M)&&(z=1);let Ae=Math.floor(((b+z)*12+373)/367),Dr=t-w(C,M,Ae,1)+1;return new l(C,M,Ae,Dr)}toJulianDay(e){return w(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return xr[p(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return p(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const vr={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function $e(r,e){return e=u(e,r.calendar),r.era===e.era&&r.year===e.year&&r.month===e.month&&r.day===e.day}function Ar(r,e){return e=u(e,r.calendar),r=_(r),e=_(e),r.era===e.era&&r.year===e.year&&r.month===e.month}function Er(r,e){return he(r.calendar,e.calendar)&&$e(r,e)}function he(r,e){var t,n,a,o;return(o=(a=(t=r.isEqual)===null||t===void 0?void 0:t.call(r,e))!==null&&a!==void 0?a:(n=e.isEqual)===null||n===void 0?void 0:n.call(e,r))!==null&&o!==void 0?o:r.identifier===e.identifier}function Cr(r,e){return $e(r,We(e))}const Ir={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function de(r,e,t){let n=r.calendar.toJulianDay(r),a=t?Ir[t]:Jr(e),o=Math.ceil(n+1-a)%7;return o<0&&(o+=7),o}function Ve(r){return y(Date.now(),r)}function We(r){return rr(Ve(r))}function Ke(r,e){return r.calendar.toJulianDay(r)-e.calendar.toJulianDay(e)}function Ge(r,e){return Ee(r)-Ee(e)}function Ee(r){return r.hour*36e5+r.minute*6e4+r.second*1e3+r.millisecond}let ee=null;function ye(){return ee==null&&(ee=new Intl.DateTimeFormat().resolvedOptions().timeZone),ee}function _(r){return r.subtract({days:r.day-1})}function Yr(r){return r.add({days:r.calendar.getDaysInMonth(r)-r.day})}function Sr(r){return _(r.subtract({months:r.month-1}))}function Br(r){return r.calendar.getMinimumMonthInYear?r.calendar.getMinimumMonthInYear(r):1}function Tr(r){return r.calendar.getMinimumDayInMonth?r.calendar.getMinimumDayInMonth(r):1}function je(r,e,t){let n=de(r,e,t);return r.subtract({days:n})}function Ur(r,e,t){return je(r,e,t).add({days:6})}const Ce=new Map;function Rr(r){if(Intl.Locale){let t=Ce.get(r);return t||(t=new Intl.Locale(r).maximize().region,t&&Ce.set(r,t)),t}let e=r.split("-")[1];return e==="u"?void 0:e}function Jr(r){let e=Rr(r);return e&&vr[e]||0}function _r(r,e,t){let n=r.calendar.getDaysInMonth(r);return Math.ceil((de(_(r),e,t)+n)/7)}function Lr(r,e){return r&&e?r.compare(e)<=0?r:e:r||e}function kr(r,e){return r&&e?r.compare(e)>=0?r:e:r||e}function T(r){r=u(r,new h);let e=Q(r.era,r.year);return Xe(e,r.month,r.day,r.hour,r.minute,r.second,r.millisecond)}function Xe(r,e,t,n,a,o,f){let c=new Date;return c.setUTCHours(n,a,o,f),c.setUTCFullYear(r,e-1,t),c.getTime()}function fe(r,e){if(e==="UTC")return 0;if(r>0&&e===ye())return new Date(r).getTimezoneOffset()*-6e4;let{year:t,month:n,day:a,hour:o,minute:f,second:c}=ze(r,e);return Xe(t,n,a,o,f,c,0)-Math.floor(r/1e3)*1e3}const Ie=new Map;function ze(r,e){let t=Ie.get(e);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ie.set(e,t));let n=t.formatToParts(new Date(r)),a={};for(let o of n)o.type!=="literal"&&(a[o.type]=o.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const Ye=864e5;function Qr(r,e,t,n){return(t===n?[t]:[t,n]).filter(o=>Fr(r,e,o))}function Fr(r,e,t){let n=ze(t,e);return r.year===n.year&&r.month===n.month&&r.day===n.day&&r.hour===n.hour&&r.minute===n.minute&&r.second===n.second}function d(r,e,t="compatible"){let n=x(r);if(e==="UTC")return T(n);if(e===ye()&&t==="compatible"){n=u(n,new h);let i=new Date,s=Q(n.era,n.year);return i.setFullYear(s,n.month-1,n.day),i.setHours(n.hour,n.minute,n.second,n.millisecond),i.getTime()}let a=T(n),o=fe(a-Ye,e),f=fe(a+Ye,e),c=Qr(n,e,a-o,a-f);if(c.length===1)return c[0];if(c.length>1)switch(t){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(a-o,a-f);case"compatible":case"later":return Math.max(a-o,a-f);case"reject":throw new RangeError("No such absolute time found")}}function er(r,e,t="compatible"){return new Date(d(r,e,t))}function y(r,e){let t=fe(r,e),n=new Date(r+t),a=n.getUTCFullYear(),o=n.getUTCMonth()+1,f=n.getUTCDate(),c=n.getUTCHours(),i=n.getUTCMinutes(),s=n.getUTCSeconds(),A=n.getUTCMilliseconds();return new k(a<1?"BC":"AD",a<1?-a+1:a,o,f,e,t,c,i,s,A)}function rr(r){return new l(r.calendar,r.era,r.year,r.month,r.day)}function x(r,e){let t=0,n=0,a=0,o=0;if("timeZone"in r)({hour:t,minute:n,second:a,millisecond:o}=r);else if("hour"in r&&!e)return r;return e&&({hour:t,minute:n,second:a,millisecond:o}=e),new P(r.calendar,r.era,r.year,r.month,r.day,t,n,a,o)}function u(r,e){if(he(r.calendar,e))return r;let t=e.fromJulianDay(r.calendar.toJulianDay(r)),n=r.copy();return n.calendar=e,n.era=t.era,n.year=t.year,n.month=t.month,n.day=t.day,v(n),n}function Or(r,e,t){if(r instanceof k)return r.timeZone===e?r:Nr(r,e);let n=d(r,e,t);return y(n,e)}function qr(r){let e=T(r)-r.offset;return new Date(e)}function Nr(r,e){let t=T(r)-r.offset;return u(y(t,e),r.calendar)}const U=36e5;function X(r,e){let t=r.copy(),n="hour"in t?or(t,e):0;ce(t,e.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,r),t.month+=e.months||0,ie(t),tr(t),t.day+=(e.weeks||0)*7,t.day+=e.days||0,t.day+=n,Hr(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let a=t.calendar.getYearsInEra(t);if(t.year>a){var o,f;let i=(o=(f=t.calendar).isInverseEra)===null||o===void 0?void 0:o.call(f,t);t.year=a,t.month=i?1:t.calendar.getMonthsInYear(t),t.day=i?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let c=t.calendar.getMonthsInYear(t);return t.month>c&&(t.month=c,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function ce(r,e){var t,n;!((t=(n=r.calendar).isInverseEra)===null||t===void 0)&&t.call(n,r)&&(e=-e),r.year+=e}function ie(r){for(;r.month<1;)ce(r,-1),r.month+=r.calendar.getMonthsInYear(r);let e=0;for(;r.month>(e=r.calendar.getMonthsInYear(r));)r.month-=e,ce(r,1)}function Hr(r){for(;r.day<1;)r.month--,ie(r),r.day+=r.calendar.getDaysInMonth(r);for(;r.day>r.calendar.getDaysInMonth(r);)r.day-=r.calendar.getDaysInMonth(r),r.month++,ie(r)}function tr(r){r.month=Math.max(1,Math.min(r.calendar.getMonthsInYear(r),r.month)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day))}function v(r){r.calendar.constrainDate&&r.calendar.constrainDate(r),r.year=Math.max(1,Math.min(r.calendar.getYearsInEra(r),r.year)),tr(r)}function me(r){let e={};for(let t in r)typeof r[t]=="number"&&(e[t]=-r[t]);return e}function nr(r,e){return X(r,me(e))}function be(r,e){let t=r.copy();return e.era!=null&&(t.era=e.era),e.year!=null&&(t.year=e.year),e.month!=null&&(t.month=e.month),e.day!=null&&(t.day=e.day),v(t),t}function L(r,e){let t=r.copy();return e.hour!=null&&(t.hour=e.hour),e.minute!=null&&(t.minute=e.minute),e.second!=null&&(t.second=e.second),e.millisecond!=null&&(t.millisecond=e.millisecond),ar(t),t}function Pr(r){r.second+=Math.floor(r.millisecond/1e3),r.millisecond=F(r.millisecond,1e3),r.minute+=Math.floor(r.second/60),r.second=F(r.second,60),r.hour+=Math.floor(r.minute/60),r.minute=F(r.minute,60);let e=Math.floor(r.hour/24);return r.hour=F(r.hour,24),e}function ar(r){r.millisecond=Math.max(0,Math.min(r.millisecond,1e3)),r.second=Math.max(0,Math.min(r.second,59)),r.minute=Math.max(0,Math.min(r.minute,59)),r.hour=Math.max(0,Math.min(r.hour,23))}function F(r,e){let t=r%e;return t<0&&(t+=e),t}function or(r,e){return r.hour+=e.hours||0,r.minute+=e.minutes||0,r.second+=e.seconds||0,r.millisecond+=e.milliseconds||0,Pr(r)}function fr(r,e){let t=r.copy();return or(t,e),t}function Zr(r,e){return fr(r,me(e))}function ge(r,e,t,n){let a=r.copy();switch(e){case"era":{let c=r.calendar.getEras(),i=c.indexOf(r.era);if(i<0)throw new Error("Invalid era: "+r.era);i=m(i,t,0,c.length-1,n==null?void 0:n.round),a.era=c[i],v(a);break}case"year":var o,f;!((o=(f=a.calendar).isInverseEra)===null||o===void 0)&&o.call(f,a)&&(t=-t),a.year=m(r.year,t,-1/0,9999,n==null?void 0:n.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,r);break;case"month":a.month=m(r.month,t,1,r.calendar.getMonthsInYear(r),n==null?void 0:n.round);break;case"day":a.day=m(r.day,t,1,r.calendar.getDaysInMonth(r),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return r.calendar.balanceDate&&r.calendar.balanceDate(a),v(a),a}function pe(r,e,t,n){let a=r.copy();switch(e){case"hour":{let o=r.hour,f=0,c=23;if((n==null?void 0:n.hourCycle)===12){let i=o>=12;f=i?12:0,c=i?23:11}a.hour=m(o,t,f,c,n==null?void 0:n.round);break}case"minute":a.minute=m(r.minute,t,0,59,n==null?void 0:n.round);break;case"second":a.second=m(r.second,t,0,59,n==null?void 0:n.round);break;case"millisecond":a.millisecond=m(r.millisecond,t,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return a}function m(r,e,t,n,a=!1){if(a){r+=Math.sign(e),r<t&&(r=n);let o=Math.abs(e);e>0?r=Math.ceil(r/o)*o:r=Math.floor(r/o)*o,r>n&&(r=t)}else r+=e,r<t?r=n-(t-r-1):r>n&&(r=t+(r-n-1));return r}function cr(r,e){let t;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let a=X(x(r),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});t=d(a,r.timeZone)}else t=T(r)-r.offset;t+=e.milliseconds||0,t+=(e.seconds||0)*1e3,t+=(e.minutes||0)*6e4,t+=(e.hours||0)*36e5;let n=y(t,r.timeZone);return u(n,r.calendar)}function Vr(r,e){return cr(r,me(e))}function Wr(r,e,t,n){switch(e){case"hour":{let a=0,o=23;if((n==null?void 0:n.hourCycle)===12){let b=r.hour>=12;a=b?12:0,o=b?23:11}let f=x(r),c=u(L(f,{hour:a}),new h),i=[d(c,r.timeZone,"earlier"),d(c,r.timeZone,"later")].filter(b=>y(b,r.timeZone).day===c.day)[0],s=u(L(f,{hour:o}),new h),A=[d(s,r.timeZone,"earlier"),d(s,r.timeZone,"later")].filter(b=>y(b,r.timeZone).day===s.day).pop(),E=T(r)-r.offset,C=Math.floor(E/U),M=E%U;return E=m(C,t,Math.floor(i/U),Math.floor(A/U),n==null?void 0:n.round)*U+M,u(y(E,r.timeZone),r.calendar)}case"minute":case"second":case"millisecond":return pe(r,e,t,n);case"era":case"year":case"month":case"day":{let a=ge(x(r),e,t,n),o=d(a,r.timeZone);return u(y(o,r.timeZone),r.calendar)}default:throw new Error("Unsupported field "+e)}}function Kr(r,e,t){let n=x(r),a=L(be(n,e),e);if(a.compare(n)===0)return r;let o=d(a,r.timeZone,t);return u(y(o,r.timeZone),r.calendar)}function ir(r){return`${String(r.hour).padStart(2,"0")}:${String(r.minute).padStart(2,"0")}:${String(r.second).padStart(2,"0")}${r.millisecond?String(r.millisecond/1e3).slice(1):""}`}function lr(r){let e=u(r,new h),t;return e.era==="BC"?t=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):t=String(e.year).padStart(4,"0"),`${t}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function sr(r){return`${lr(r)}T${ir(r)}`}function Gr(r){let e=Math.sign(r)<0?"-":"+";r=Math.abs(r);let t=Math.floor(r/36e5),n=r%36e5/6e4;return`${e}${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function jr(r){return`${sr(r)}${Gr(r.offset)}[${r.timeZone}]`}function Me(r){let e=typeof r[0]=="object"?r.shift():new h,t;if(typeof r[0]=="string")t=r.shift();else{let f=e.getEras();t=f[f.length-1]}let n=r.shift(),a=r.shift(),o=r.shift();return[e,t,n,a,o]}var Xr=new WeakMap;class l{copy(){return this.era?new l(this.calendar,this.era,this.year,this.month,this.day):new l(this.calendar,this.year,this.month,this.day)}add(e){return X(this,e)}subtract(e){return nr(this,e)}set(e){return be(this,e)}cycle(e,t,n){return ge(this,e,t,n)}toDate(e){return er(this,e)}toString(){return lr(this)}compare(e){return Ke(this,e)}constructor(...e){G._class_private_field_init(this,Xr,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,v(this)}}var zr=new WeakMap;class De{copy(){return new De(this.hour,this.minute,this.second,this.millisecond)}add(e){return fr(this,e)}subtract(e){return Zr(this,e)}set(e){return L(this,e)}cycle(e,t,n){return pe(this,e,t,n)}toString(){return ir(this)}compare(e){return Ge(this,e)}constructor(e=0,t=0,n=0,a=0){G._class_private_field_init(this,zr,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=a,ar(this)}}var et=new WeakMap;class P{copy(){return this.era?new P(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new P(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return X(this,e)}subtract(e){return nr(this,e)}set(e){return be(L(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return ge(this,e,t,n);default:return pe(this,e,t,n)}}toDate(e,t){return er(this,e,t)}toString(){return sr(this)}compare(e){let t=Ke(this,e);return t===0?Ge(this,x(e)):t}constructor(...e){G._class_private_field_init(this,et,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,v(this)}}var rt=new WeakMap;class k{copy(){return this.era?new k(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new k(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return cr(this,e)}subtract(e){return Vr(this,e)}set(e,t){return Kr(this,e,t)}cycle(e,t,n){return Wr(this,e,t,n)}toDate(){return qr(this)}toString(){return jr(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Or(e,this.timeZone).toDate().getTime()}constructor(...e){G._class_private_field_init(this,rt,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e),c=e.shift(),i=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,this.timeZone=c,this.offset=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,v(this)}}const S=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],tt=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],q=[1867,1911,1925,1988,2018],g=["meiji","taisho","showa","heisei","reiwa"];function Se(r){const e=S.findIndex(([t,n,a])=>r.year<t||r.year===t&&r.month<n||r.year===t&&r.month===n&&r.day<a);return e===-1?S.length-1:e===0?0:e-1}function re(r){let e=q[g.indexOf(r.era)];if(!e)throw new Error("Unknown era: "+r.era);return new l(r.year+e,r.month,r.day)}class nt extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Se(t);return new l(this,g[n],t.year-q[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(re(e))}balanceDate(e){let t=re(e),n=Se(t);g[n]!==e.era&&(e.era=g[n],e.year=t.year-q[n]),this.constrainDate(e)}constrainDate(e){let t=g.indexOf(e.era),n=tt[t];if(n!=null){let[a,o,f]=n,c=a-q[t];e.year=Math.max(1,Math.min(c,e.year)),e.year===c&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(f,e.day)))}if(e.year===1&&t>=0){let[,a,o]=S[t];e.month=Math.max(a,e.month),e.month===a&&(e.day=Math.max(o,e.day))}}getEras(){return g}getYearsInEra(e){let t=g.indexOf(e.era),n=S[t],a=S[t+1];if(a==null)return 9999-n[0]+1;let o=a[0]-n[0];return(e.month<a[1]||e.month===a[1]&&e.day<a[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(re(e))}getMinimumMonthInYear(e){let t=Be(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=Be(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function Be(r){if(r.year===1){let e=g.indexOf(r.era);return S[e]}}const ur=-543;class at extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Q(t.era,t.year);return new l(this,n-ur,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Te(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(Te(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function Te(r){let[e,t]=j(r.year+ur);return new l(e,t,r.month,r.day)}const Z=1911;function $r(r){return r.era==="minguo"?r.year+Z:1-r.year+Z}function Ue(r){let e=r-Z;return e>0?["minguo",e]:["before_minguo",1-e]}class ot extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Q(t.era,t.year),[a,o]=Ue(n);return new l(this,a,o,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Re(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=Ue($r(e));e.era=t,e.year=n}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(Re(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-Z}constructor(...e){super(...e),this.identifier="roc"}}function Re(r){let[e,t]=j($r(r));return new l(e,t,r.month,r.day)}const Je=1948320,_e=[0,31,62,93,124,155,186,216,246,276,306,336];class ft{fromJulianDay(e){let t=e-Je,n=1+Math.floor((33*t+3)/12053),a=365*(n-1)+Math.floor((8*n+21)/33),o=t-a,f=o<216?Math.floor(o/31):Math.floor((o-6)/30),c=o-_e[f]+1;return new l(this,n,f+1,c)}toJulianDay(e){let t=Je-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=_e[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||Y(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const te=78,Le=80;class ct extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-te,a=e-w(t.era,t.year,1,1),o;a<Le?(n--,o=p(t.year-1)?31:30,a+=o+155+90+10):(o=p(t.year)?31:30,a-=Le);let f,c;if(a<o)f=1,c=a+1;else{let i=a-o;i<155?(f=Math.floor(i/31)+2,c=i%31+1):(i-=155,f=Math.floor(i/30)+7,c=i%30+1)}return new l(this,n,f,c)}toJulianDay(e){let t=e.year+te,[n,a]=j(t),o,f;return p(a)?(o=31,f=w(n,a,3,21)):(o=30,f=w(n,a,3,22)),e.month===1?f+e.day-1:(f+=o+Math.min(e.month-2,5)*31,e.month>=8&&(f+=(e.month-7)*30),f+=e.day-1,f)}getDaysInMonth(e){return e.month===1&&p(e.year+te)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const V=1948440,ke=1948439,$=1300,I=1600,it=460322;function W(r,e,t,n){return n+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+r-1}function hr(r,e,t){let n=Math.floor((30*(t-e)+10646)/10631),a=Math.min(12,Math.ceil((t-(29+W(e,n,1,1)))/29.5)+1),o=t-W(e,n,a,1)+1;return new l(r,n,a,o)}function Qe(r){return(14+11*r)%30<11}class we{fromJulianDay(e){return hr(this,V,e)}toJulianDay(e){return W(V,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&Qe(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Qe(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lt extends we{fromJulianDay(e){return hr(this,ke,e)}toJulianDay(e){return W(ke,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const st="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let le,B;function N(r){return it+B[r-$]}function R(r,e){let t=r-$,n=1<<11-(e-1);return le[t]&n?30:29}function Fe(r,e){let t=N(r);for(let n=1;n<e;n++)t+=R(r,n);return t}function Oe(r){return B[r+1-$]-B[r-$]}class ut extends we{fromJulianDay(e){let t=e-V,n=N($),a=N(I);if(t<n||t>a)return super.fromJulianDay(e);{let o=$-1,f=1,c=1;for(;c>0;){o++,c=t-N(o)+1;let i=Oe(o);if(c===i){f=12;break}else if(c<i){let s=R(o,f);for(f=1;c>s;)c-=s,f++,s=R(o,f);break}}return new l(this,o,f,t-Fe(o,f)+1)}}toJulianDay(e){return e.year<$||e.year>I?super.toJulianDay(e):V+Fe(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<$||e.year>I?super.getDaysInMonth(e):R(e.year,e.month)}getDaysInYear(e){return e.year<$||e.year>I?super.getDaysInYear(e):Oe(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",le||(le=new Uint16Array(Uint8Array.from(atob(st),e=>e.charCodeAt(0)).buffer)),!B){B=new Uint32Array(I-$+1);let e=0;for(let t=$;t<=I;t++){B[t-$]=e;for(let n=1;n<=12;n++)e+=R(t,n)}}}}const qe=347997,dr=1080,yr=24*dr,$t=29,ht=12*dr+793,dt=$t*yr+ht;function D(r){return Y(r*7+1,19)<7}function H(r){let e=Math.floor((235*r-234)/19),t=12084+13753*e,n=e*29+Math.floor(t/25920);return Y(3*(n+1),7)<3&&(n+=1),n}function yt(r){let e=H(r-1),t=H(r);return H(r+1)-t===356?2:t-e===382?1:0}function J(r){return H(r)+yt(r)}function mr(r){return J(r+1)-J(r)}function mt(r){let e=mr(r);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function O(r,e){if(e>=6&&!D(r)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let t=mt(r);return e===2?t===2?30:29:e===3?t===0?29:30:e===6?D(r)?30:0:30}class bt{fromJulianDay(e){let t=e-qe,n=t*yr/dt,a=Math.floor((19*n+234)/235)+1,o=J(a),f=Math.floor(t-o);for(;f<1;)a--,o=J(a),f=Math.floor(t-o);let c=1,i=0;for(;i<f;)i+=O(a,c),c++;c--,i-=O(a,c);let s=f-i;return new l(this,a,c,s)}toJulianDay(e){let t=J(e.year);for(let n=1;n<e.month;n++)t+=O(e.year,n);return t+e.day+qe}getDaysInMonth(e){return O(e.year,e.month)}getMonthsInYear(e){return D(e.year)?13:12}getDaysInYear(e){return mr(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(D(t.year)&&!D(e.year)&&t.month>6?e.month--:!D(t.year)&&D(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const se=1723856,Ne=1824665,ue=5500;function K(r,e,t,n){return r+365*e+Math.floor(e/4)+30*(t-1)+n-1}function xe(r,e){let t=Math.floor(4*(e-r)/1461),n=1+Math.floor((e-K(r,t,1,1))/30),a=e+1-K(r,t,n,1);return[t,n,a]}function br(r){return Math.floor(r%4/3)}function gr(r,e){return e%13!==0?30:br(r)+5}class ve{fromJulianDay(e){let[t,n,a]=xe(se,e),o="AM";return t<=0&&(o="AA",t+=ue),new l(this,o,t,n,a)}toJulianDay(e){let t=e.year;return e.era==="AA"&&(t-=ue),K(se,t,e.month,e.day)}getDaysInMonth(e){return gr(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+br(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gt extends ve{fromJulianDay(e){let[t,n,a]=xe(se,e);return t+=ue,new l(this,"AA",t,n,a)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class pt extends ve{fromJulianDay(e){let[t,n,a]=xe(Ne,e),o="CE";return t<=0&&(o="BCE",t=1-t),new l(this,o,t,n,a)}toJulianDay(e){let t=e.year;return e.era==="BCE"&&(t=1-t),K(Ne,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era==="BCE"&&(t=1-t),gr(t,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Mt(r){switch(r){case"buddhist":return new at;case"ethiopic":return new ve;case"ethioaa":return new gt;case"coptic":return new pt;case"hebrew":return new bt;case"indian":return new ct;case"islamic-civil":return new we;case"islamic-tbla":return new lt;case"islamic-umalqura":return new ut;case"japanese":return new nt;case"persian":return new ft;case"roc":return new ot;case"gregory":default:return new h}}let ne=new Map;class pr{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),a=this.formatter.formatToParts(t);return[...n.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return xt()&&(this.resolvedHourCycle||(this.resolvedHourCycle=vt(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=Mr(e,t),this.options=t}}const Dt={true:{ja:"h11"},false:{}};function Mr(r,e={}){if(typeof e.hour12=="boolean"&&wt()){e={...e};let a=Dt[String(e.hour12)][r.split("-")[0]],o=e.hour12?"h12":"h23";e.hourCycle=a??o,delete e.hour12}let t=r+(e?Object.entries(e).sort((a,o)=>a[0]<o[0]?-1:1).join():"");if(ne.has(t))return ne.get(t);let n=new Intl.DateTimeFormat(r,e);return ne.set(t,n),n}let ae=null;function wt(){return ae==null&&(ae=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ae}let oe=null;function xt(){return oe==null&&(oe=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),oe}function vt(r,e){if(!e.timeStyle&&!e.hour)return;r=r.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),r+=(r.includes("-u-")?"":"-u")+"-nu-latn";let t=Mr(r,{...e,timeZone:void 0}),n=parseInt(t.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),a=parseInt(t.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(n===0&&a===23)return"h23";if(n===24&&a===23)return"h24";if(n===0&&a===11)return"h11";if(n===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}function At(r){r=Pe(r??{},Et);let{locale:e}=wr.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return He.useMemo(()=>new pr(e,r),[e,r])}function Et(r,e){if(r===e)return!0;let t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(let a of t)if(e[a]!==r[a])return!1;return!0}exports.$11d87f3f76e88657$export$93522d1a439f3617=rr;exports.$11d87f3f76e88657$export$b21e0b124e224484=x;exports.$11d87f3f76e88657$export$b4a036af3fc0b032=u;exports.$14e0f24ef4ac5c92$export$2061056d06d7cdf7=de;exports.$14e0f24ef4ac5c92$export$42c81a444fbfb5d4=je;exports.$14e0f24ef4ac5c92$export$461939dd4422153=Ve;exports.$14e0f24ef4ac5c92$export$5412ac11713b72ad=Br;exports.$14e0f24ef4ac5c92$export$5c333a116e949cdd=Lr;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=Cr;exports.$14e0f24ef4ac5c92$export$91b62ebf2ba703ee=Er;exports.$14e0f24ef4ac5c92$export$a18c89cbd24170ff=Ar;exports.$14e0f24ef4ac5c92$export$a2258d9c4118825c=Yr;exports.$14e0f24ef4ac5c92$export$a5a3b454ada2268e=_;exports.$14e0f24ef4ac5c92$export$a75f2bff57811055=kr;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ye;exports.$14e0f24ef4ac5c92$export$b2f4953d301981d5=Tr;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=_r;exports.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3=We;exports.$14e0f24ef4ac5c92$export$dbc69fd56b53d5e=he;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=$e;exports.$14e0f24ef4ac5c92$export$ef8b6d9133084f4e=Ur;exports.$14e0f24ef4ac5c92$export$f91e89d3d0406102=Sr;exports.$35ea8db9cb2ccb90$export$680ea196effce5f=De;exports.$35ea8db9cb2ccb90$export$99faa760c7908e4f=l;exports.$3b62074eb05584b2$export$80ee6245ec4f29ec=h;exports.$5a387cc49350e6db$export$722debc0e56fea39=Pe;exports.$64244302c3013299$export$dd0bbc9b26defe37=Mt;exports.$896ba0a80a8f4d36$export$85fd5fdf27bacc79=At;exports.$fb18d541ea1ad717$export$ad991b66133851cf=pr;
@@ -1,5 +1,5 @@
1
- import { _ as G } from "./usePress-CNjmDzap.js";
2
- import { $ as yr } from "./context-C81gPYvC.js";
1
+ import { _ as G } from "./usePress-DuR4pVsE.js";
2
+ import { $ as yr } from "./context-CGNJ3grH.js";
3
3
  import { useRef as mr, useMemo as br } from "react";
4
4
  function gr(r, e) {
5
5
  let t = mr(null);
@@ -1,6 +1,6 @@
1
- import { f as l } from "./utils-DIMfEPAt.js";
1
+ import { d as l } from "./mergeProps-C1U1OIeJ.js";
2
2
  import { useEffect as u } from "react";
3
- function m(e, t, f, r) {
3
+ function i(e, t, f, r) {
4
4
  let a = l(f), c = f == null;
5
5
  u(() => {
6
6
  if (c || !e.current) return;
@@ -17,5 +17,5 @@ function m(e, t, f, r) {
17
17
  ]);
18
18
  }
19
19
  export {
20
- m as $
20
+ i as $
21
21
  };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("./mergeProps-B5KXZAI3.cjs"),$=require("react");function s(e,t,a,r){let c=u.$8ae05eaa5c114e9c$export$7f54fc3180508a52(a),f=a==null;$.useEffect(()=>{if(f||!e.current)return;let n=e.current;return n.addEventListener(t,c,r),()=>{n.removeEventListener(t,c,r)}},[e,t,r,f,c])}exports.$e9faafb641e167db$export$90fc3a17d93f704c=s;
@@ -1,7 +1,7 @@
1
- import { a as c } from "./Button-DjBChs7s.js";
2
- import { d as l, c as f } from "./utils-DIMfEPAt.js";
1
+ import { a as f } from "./Button-CFYdzG0H.js";
2
+ import { b as l, a as b } from "./mergeProps-C1U1OIeJ.js";
3
3
  function $(e) {
4
- let { description: r, errorMessage: o, isInvalid: i, validationState: d } = e, { labelProps: n, fieldProps: a } = c(e), s = l([
4
+ let { description: r, errorMessage: o, isInvalid: i, validationState: d } = e, { labelProps: n, fieldProps: a } = f(e), s = l([
5
5
  !!r,
6
6
  !!o,
7
7
  i,
@@ -12,7 +12,7 @@ function $(e) {
12
12
  i,
13
13
  d
14
14
  ]);
15
- return a = f(a, {
15
+ return a = b(a, {
16
16
  "aria-describedby": [
17
17
  s,
18
18
  // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./Button-DExMoP5f.cjs"),a=require("./mergeProps-B5KXZAI3.cjs");function b(e){let{description:o,errorMessage:d,isInvalid:i,validationState:t}=e,{labelProps:l,fieldProps:r}=n.$d191a55c9702f145$export$8467354a121f1b9f(e),s=a.$bdb11010cef70236$export$b4cc09c592e8fdb8([!!o,!!d,i,t]),c=a.$bdb11010cef70236$export$b4cc09c592e8fdb8([!!o,!!d,i,t]);return r=a.$3ef42575df84b30b$export$9d1611c77c2fe928(r,{"aria-describedby":[s,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:l,fieldProps:r,descriptionProps:{id:s},errorMessageProps:{id:c}}}exports.$2baaea4c71418dea$export$294aa081a6c6f55d=b;
@@ -1,4 +1,4 @@
1
- import { $ as p } from "./ListKeyboardDelegate-DNI8GQtX.js";
1
+ import { $ as p } from "./ListKeyboardDelegate-CY6t6y1t.js";
2
2
  import { useCallback as o, useMemo as $ } from "react";
3
3
  function F(h) {
4
4
  let l = p({
@@ -1 +1 @@
1
- "use strict";const u=require("./ListKeyboardDelegate-DTg9h4v6.cjs"),c=require("react");function C(h){let l=u.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",...h}),r=c.useCallback((a,e)=>e.length===0?!0:(a=a.normalize("NFC"),e=e.normalize("NFC"),l.compare(a.slice(0,e.length),e)===0),[l]),o=c.useCallback((a,e)=>e.length===0?!0:(a=a.normalize("NFC"),e=e.normalize("NFC"),l.compare(a.slice(-e.length),e)===0),[l]),f=c.useCallback((a,e)=>{if(e.length===0)return!0;a=a.normalize("NFC"),e=e.normalize("NFC");let t=0,n=e.length;for(;t+n<=a.length;t++){let m=a.slice(t,t+n);if(l.compare(e,m)===0)return!0}return!1},[l]);return c.useMemo(()=>({startsWith:r,endsWith:o,contains:f}),[r,o,f])}exports.$bb77f239b46e8c72$export$3274cf84b703fff=C;
1
+ "use strict";const u=require("./ListKeyboardDelegate-CPsZ7D83.cjs"),c=require("react");function C(h){let l=u.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",...h}),r=c.useCallback((a,e)=>e.length===0?!0:(a=a.normalize("NFC"),e=e.normalize("NFC"),l.compare(a.slice(0,e.length),e)===0),[l]),o=c.useCallback((a,e)=>e.length===0?!0:(a=a.normalize("NFC"),e=e.normalize("NFC"),l.compare(a.slice(-e.length),e)===0),[l]),f=c.useCallback((a,e)=>{if(e.length===0)return!0;a=a.normalize("NFC"),e=e.normalize("NFC");let t=0,n=e.length;for(;t+n<=a.length;t++){let m=a.slice(t,t+n);if(l.compare(e,m)===0)return!0}return!1},[l]);return c.useMemo(()=>({startsWith:r,endsWith:o,contains:f}),[r,o,f])}exports.$bb77f239b46e8c72$export$3274cf84b703fff=C;
@@ -0,0 +1 @@
1
+ "use strict";const u=require("./useHover-BE_XKZKe.cjs"),p=require("./useFocusWithin-CG8mAt2D.cjs"),s=require("react");function h(r={}){let{autoFocus:a=!1,isTextInput:f,within:c}=r,e=s.useRef({isFocused:!1,isFocusVisible:a||u.$507fabe10e71c6fb$export$b9b3dfddab17db27()}),[n,b]=s.useState(!1),[d,l]=s.useState(()=>e.current.isFocused&&e.current.isFocusVisible),i=s.useCallback(()=>l(e.current.isFocused&&e.current.isFocusVisible),[]),o=s.useCallback(t=>{e.current.isFocused=t,b(t),i()},[i]);u.$507fabe10e71c6fb$export$ec71b4b83ac08ec3(t=>{e.current.isFocusVisible=t,i()},[],{isTextInput:f});let{focusProps:F}=u.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6({isDisabled:c,onFocusChange:o}),{focusWithinProps:$}=p.$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!c,onFocusWithinChange:o});return{isFocused:n,isFocusVisible:d,focusProps:c?$:F}}exports.$f7dceffc5ad7768b$export$4e328f61c538687f=h;
@@ -0,0 +1,33 @@
1
+ import { a as $, b as x, c as h } from "./useHover-DQvJ3Y-W.js";
2
+ import { $ as V } from "./useFocusWithin-T1ifEM_s.js";
3
+ import { useRef as m, useState as c, useCallback as u } from "react";
4
+ function I(a = {}) {
5
+ let { autoFocus: r = !1, isTextInput: f, within: t } = a, e = m({
6
+ isFocused: !1,
7
+ isFocusVisible: r || $()
8
+ }), [b, d] = c(!1), [n, l] = c(() => e.current.isFocused && e.current.isFocusVisible), i = u(() => l(e.current.isFocused && e.current.isFocusVisible), []), o = u((s) => {
9
+ e.current.isFocused = s, d(s), i();
10
+ }, [
11
+ i
12
+ ]);
13
+ x((s) => {
14
+ e.current.isFocusVisible = s, i();
15
+ }, [], {
16
+ isTextInput: f
17
+ });
18
+ let { focusProps: p } = h({
19
+ isDisabled: t,
20
+ onFocusChange: o
21
+ }), { focusWithinProps: F } = V({
22
+ isDisabled: !t,
23
+ onFocusWithinChange: o
24
+ });
25
+ return {
26
+ isFocused: b,
27
+ isFocusVisible: n,
28
+ focusProps: t ? F : p
29
+ };
30
+ }
31
+ export {
32
+ I as $
33
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./utils-Dvdohqm9.cjs"),u=require("react");function x(h){let{isDisabled:F,onBlurWithin:c,onFocusWithin:o,onFocusWithinChange:r}=h,n=u.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=t.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),i=u.useCallback(e=>{e.currentTarget.contains(e.target)&&n.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(n.current.isFocusWithin=!1,l(),c&&c(e),r&&r(!1))},[c,r,n,l]),f=t.$8a9cb279dc87e130$export$715c682d09d639cc(i),g=u.useCallback(e=>{if(!e.currentTarget.contains(e.target))return;const a=t.$431fbd86ca7dc216$export$b204af158042fbac(e.target),W=t.$d4ee10de306f2510$export$cd4e5573fbe2b576(a);if(!n.current.isFocusWithin&&W===t.$d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)){o&&o(e),r&&r(!0),n.current.isFocusWithin=!0,f(e);let d=e.currentTarget;s(a,"focus",$=>{if(n.current.isFocusWithin&&!t.$d4ee10de306f2510$export$4282f70798064fe0(d,$.target)){let b=new a.defaultView.FocusEvent("blur",{relatedTarget:$.target});t.$8a9cb279dc87e130$export$c2b7abe5d61ec696(b,d);let p=t.$8a9cb279dc87e130$export$525bc4921d56d4a(b);i(p)}},{capture:!0})}},[o,r,f,s,i]);return F?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:g,onBlur:i}}}exports.$9ab94262bd0047c7$export$420e68273165f4ec=x;
@@ -0,0 +1,54 @@
1
+ import { $ as W, a as x, b as v, c as m, d as T, e as B, f as E, g as G } from "./utils-CoCR_Fce.js";
2
+ import { useRef as L, useCallback as $ } from "react";
3
+ function D(b) {
4
+ let { isDisabled: h, onBlurWithin: i, onFocusWithin: o, onFocusWithinChange: t } = b, r = L({
5
+ isFocusWithin: !1
6
+ }), { addGlobalListener: c, removeAllGlobalListeners: s } = W(), n = $((e) => {
7
+ e.currentTarget.contains(e.target) && r.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (r.current.isFocusWithin = !1, s(), i && i(e), t && t(!1));
8
+ }, [
9
+ i,
10
+ t,
11
+ r,
12
+ s
13
+ ]), u = x(n), g = $((e) => {
14
+ if (!e.currentTarget.contains(e.target)) return;
15
+ const a = v(e.target), p = m(a);
16
+ if (!r.current.isFocusWithin && p === T(e.nativeEvent)) {
17
+ o && o(e), t && t(!0), r.current.isFocusWithin = !0, u(e);
18
+ let f = e.currentTarget;
19
+ c(a, "focus", (l) => {
20
+ if (r.current.isFocusWithin && !B(f, l.target)) {
21
+ let d = new a.defaultView.FocusEvent("blur", {
22
+ relatedTarget: l.target
23
+ });
24
+ E(d, f);
25
+ let F = G(d);
26
+ n(F);
27
+ }
28
+ }, {
29
+ capture: !0
30
+ });
31
+ }
32
+ }, [
33
+ o,
34
+ t,
35
+ u,
36
+ c,
37
+ n
38
+ ]);
39
+ return h ? {
40
+ focusWithinProps: {
41
+ // These cannot be null, that would conflict in mergeProps
42
+ onFocus: void 0,
43
+ onBlur: void 0
44
+ }
45
+ } : {
46
+ focusWithinProps: {
47
+ onFocus: g,
48
+ onBlur: n
49
+ }
50
+ };
51
+ }
52
+ export {
53
+ D as $
54
+ };
@@ -1,7 +1,9 @@
1
- import { d as P, e as b, r as m, v as l, l as g } from "./useHover-DjIHtjGN.js";
2
- import { $ as y, l as E, c as $ } from "./utils-DIMfEPAt.js";
3
- import d, { useRef as D, useEffect as w, useContext as h } from "react";
4
- let a = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set();
1
+ import { f as x, c as P } from "./useHover-DQvJ3Y-W.js";
2
+ import { b as g, c as b, m as l } from "./utils-CoCR_Fce.js";
3
+ import { $ as y, a as $ } from "./mergeProps-C1U1OIeJ.js";
4
+ import { f as E } from "./utils-DJhAJHk_.js";
5
+ import c, { useRef as D, useEffect as w, useContext as h } from "react";
6
+ let a = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set();
5
7
  function p() {
6
8
  if (typeof window > "u") return;
7
9
  function e(t) {
@@ -17,8 +19,8 @@ function p() {
17
19
  if (!e(t) || !t.target) return;
18
20
  let o = a.get(t.target);
19
21
  if (o && (o.delete(t.propertyName), o.size === 0 && (t.target.removeEventListener("transitioncancel", n), a.delete(t.target)), a.size === 0)) {
20
- for (let f of c) f();
21
- c.clear();
22
+ for (let f of d) f();
23
+ d.clear();
22
24
  }
23
25
  };
24
26
  document.body.addEventListener("transitionrun", r), document.body.addEventListener("transitionend", n);
@@ -30,7 +32,7 @@ function C() {
30
32
  }
31
33
  function F(e) {
32
34
  requestAnimationFrame(() => {
33
- C(), a.size === 0 ? e() : c.add(e);
35
+ C(), a.size === 0 ? e() : d.add(e);
34
36
  });
35
37
  }
36
38
  function S(e, r) {
@@ -42,8 +44,8 @@ function S(e, r) {
42
44
  });
43
45
  }
44
46
  function L(e) {
45
- const r = P(e), n = b(r);
46
- if (m() === "virtual") {
47
+ const r = g(e), n = b(r);
48
+ if (x() === "virtual") {
47
49
  let t = n;
48
50
  F(() => {
49
51
  b(r) === t && e.isConnected && l(e);
@@ -83,24 +85,24 @@ function N(e) {
83
85
  }
84
86
  };
85
87
  }
86
- let x = /* @__PURE__ */ d.createContext(null);
88
+ let m = /* @__PURE__ */ c.createContext(null);
87
89
  function T(e) {
88
- let r = h(x) || {};
90
+ let r = h(m) || {};
89
91
  S(r, e);
90
92
  let { ref: n, ...t } = r;
91
93
  return t;
92
94
  }
93
- const z = /* @__PURE__ */ d.forwardRef(function(r, n) {
95
+ const R = /* @__PURE__ */ c.forwardRef(function(r, n) {
94
96
  let { children: t, ...o } = r, f = E(n), i = {
95
97
  ...o,
96
98
  ref: f
97
99
  };
98
- return /* @__PURE__ */ d.createElement(x.Provider, {
100
+ return /* @__PURE__ */ c.createElement(m.Provider, {
99
101
  value: i
100
102
  }, t);
101
103
  });
102
- function O(e, r) {
103
- let { focusProps: n } = g(e), { keyboardProps: t } = N(e), o = $(n, t), f = T(r), i = e.isDisabled ? {} : f, s = D(e.autoFocus);
104
+ function I(e, r) {
105
+ let { focusProps: n } = P(e), { keyboardProps: t } = N(e), o = $(n, t), f = T(r), i = e.isDisabled ? {} : f, s = D(e.autoFocus);
104
106
  w(() => {
105
107
  s.current && r.current && L(r.current), s.current = !1;
106
108
  }, [
@@ -115,10 +117,10 @@ function O(e, r) {
115
117
  };
116
118
  }
117
119
  export {
118
- O as $,
120
+ I as $,
119
121
  L as a,
120
- x as b,
121
- z as c,
122
+ m as b,
123
+ R as c,
122
124
  F as d,
123
125
  S as e,
124
126
  N as f
@@ -0,0 +1 @@
1
+ "use strict";const x=require("./useHover-BE_XKZKe.cjs"),d=require("./utils-Dvdohqm9.cjs"),$=require("./mergeProps-B5KXZAI3.cjs"),m=require("./utils-DHNZrQmj.cjs"),a=require("react");let f=new Map,b=new Set;function p(){if(typeof window>"u")return;function e(t){return"propertyName"in t}let r=t=>{if(!e(t)||!t.target)return;let o=f.get(t.target);o||(o=new Set,f.set(t.target,o),t.target.addEventListener("transitioncancel",n,{once:!0})),o.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let o=f.get(t.target);if(o&&(o.delete(t.propertyName),o.size===0&&(t.target.removeEventListener("transitioncancel",n),f.delete(t.target)),f.size===0)){for(let c of b)c();b.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?p():document.addEventListener("DOMContentLoaded",p));function D(){for(const[e]of f)"isConnected"in e&&!e.isConnected&&f.delete(e)}function P(e){requestAnimationFrame(()=>{D(),f.size===0?e():b.add(e)})}function g(e,r){$.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e&&e.ref&&r)return e.ref.current=r.current,()=>{e.ref&&(e.ref.current=null)}})}function y(e){const r=d.$431fbd86ca7dc216$export$b204af158042fbac(e),n=d.$d4ee10de306f2510$export$cd4e5573fbe2b576(r);if(x.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="virtual"){let t=n;P(()=>{d.$d4ee10de306f2510$export$cd4e5573fbe2b576(r)===t&&e.isConnected&&d.$7215afc6de606d6b$export$de79e2c695e052f3(e)})}else d.$7215afc6de606d6b$export$de79e2c695e052f3(e)}function v(e){if(!e)return;let r=!0;return n=>{let t={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){r&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):r=!0},continuePropagation(){r=!1},isPropagationStopped(){return r}};e(t),r&&n.stopPropagation()}}function E(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:v(e.onKeyDown),onKeyUp:v(e.onKeyUp)}}}let s=a.createContext(null);function w(e){let r=a.useContext(s)||{};g(r,e);let{ref:n,...t}=r;return t}const h=a.forwardRef(function(r,n){let{children:t,...o}=r,c=m.$df56164dff5785e2$export$4338b53315abf666(n),i={...o,ref:c};return a.createElement(s.Provider,{value:i},t)});function C(e,r){let{focusProps:n}=x.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6(e),{keyboardProps:t}=E(e),o=$.$3ef42575df84b30b$export$9d1611c77c2fe928(n,t),c=w(r),i=e.isDisabled?{}:c,u=a.useRef(e.autoFocus);a.useEffect(()=>{u.current&&r.current&&y(r.current),u.current=!1},[r]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:$.$3ef42575df84b30b$export$9d1611c77c2fe928({...o,tabIndex:l},i)}}exports.$3ad3f6e1647bc98d$export$80f3e147d781571c=y;exports.$46d819fcbaf35654$export$8f71654801c2f7cd=E;exports.$bbed8b41f857bcc0$export$24490316f764c430=P;exports.$e7801be82b4b2a53$export$4debdb1a3f0fa79e=g;exports.$f645667febf57a63$export$13f3202a3e5ddd5=h;exports.$f645667febf57a63$export$4c014de7c8940b4c=C;exports.$f645667febf57a63$export$f9762fab77588ecb=s;