@midas-ds/components 12.0.0 → 12.1.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 (458) hide show
  1. package/AccordionItem-C9dBt-tQ.js +335 -0
  2. package/AccordionItem-SOfjXh3V.cjs +1 -0
  3. package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
  4. package/BadgeContainer-su0iCJKy.cjs +1 -0
  5. package/Breadcrumbs-BAHJMPsu.js +271 -0
  6. package/Breadcrumbs-DUcHHI_2.cjs +1 -0
  7. package/Button-CMIbSc4-.cjs +1 -0
  8. package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
  9. package/{Button-akT6Hvug.js → Button-DYcmg49Z.js} +2 -2
  10. package/{Button-DQm2iqKU.cjs → Button-DrL5Jv-s.cjs} +1 -1
  11. package/Button.module-BNLcvARn.cjs +1 -0
  12. package/Button.module-Bax2YU6N.js +14 -0
  13. package/ButtonGroup-ClYTgaRc.cjs +1 -0
  14. package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
  15. package/CHANGELOG.md +65 -0
  16. package/Card-BDDyGAMA.js +131 -0
  17. package/Card-mj5lCIR4.cjs +1 -0
  18. package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
  19. package/CharacterCounter-DT7A0wWP.js +22 -0
  20. package/Checkbox-BtM2rFh9.js +278 -0
  21. package/Checkbox-CvdIG43J.cjs +1 -0
  22. package/CheckboxGroup-C94as9Xt.cjs +1 -0
  23. package/CheckboxGroup-CjcDYBRk.js +157 -0
  24. package/Collection-B0_WAieZ.js +625 -0
  25. package/Collection-BvWp2xBd.cjs +1 -0
  26. package/{ColorSchemeSwitch-DyZ9FAKG.js → ColorSchemeSwitch-C4PMYeD5.js} +20 -28
  27. package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +3 -3
  28. package/ComboBox-B2EmfOyr.cjs +1 -0
  29. package/{ComboBox-Dn3tQzri.js → ComboBox-BWXJZyOR.js} +522 -507
  30. package/DateField-CcQJYDLD.js +47 -0
  31. package/DateField-IpCiF81R.cjs +1 -0
  32. package/{DateInputDivider-CJEGWmG0.js → DateInputDivider-CXkUdlzc.js} +936 -839
  33. package/DateInputDivider-Cf5GZHlM.cjs +1 -0
  34. package/DateRangePicker-B2BJO1KC.js +889 -0
  35. package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
  36. package/Dialog-B8swxl24.js +1643 -0
  37. package/Dialog-DR6nEqMT.cjs +1 -0
  38. package/Dialog-DgJobm71.cjs +1 -0
  39. package/Dialog-P3frHOdq.js +240 -0
  40. package/DragAndDrop-Dw8JZmrn.cjs +1 -0
  41. package/DragAndDrop-PrUJv--B.js +75 -0
  42. package/{Dropdown-BWbdSQ9U.js → Dropdown-CIvWpN3v.js} +8 -8
  43. package/{Dropdown-CJ-sujKv.cjs → Dropdown-DJ2vWAqk.cjs} +2 -2
  44. package/FieldError-Cornph2A.cjs +1 -0
  45. package/FieldError-DdvFyIf4.js +48 -0
  46. package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
  47. package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
  48. package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
  49. package/FocusScope-Uy3DiY0-.cjs +1 -0
  50. package/{Grid-Db5wZrw6.cjs → Grid-WbEkSCGh.cjs} +1 -1
  51. package/{Grid-B2av0vt8.js → Grid-s8ovKDi8.js} +1 -1
  52. package/GridItem-CIVF1fRW.cjs +1 -0
  53. package/GridItem-D3FZyyO-.js +243 -0
  54. package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
  55. package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
  56. package/Heading-BQlmb5Tm.js +46 -0
  57. package/Heading-D3FR_KXb.cjs +1 -0
  58. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  59. package/InfoBanner-CqjnTYaa.cjs +1 -0
  60. package/InfoBanner-CrA8MS3v.js +83 -0
  61. package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
  62. package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
  63. package/{Label-ByWt6Lfh.js → Label-BG7G0iyG.js} +24 -28
  64. package/Label-C00qz3kQ.cjs +1 -0
  65. package/Layout-Bta_Cpq_.cjs +16 -0
  66. package/Layout-CG-Qxr_1.js +482 -0
  67. package/{Link-Dnnv00g9.js → Link-BtxKZ0h3.js} +16 -16
  68. package/Link-Bx6avHVl.cjs +6 -0
  69. package/Link-CbFSuEI1.js +73 -0
  70. package/Link-wM7cVPlS.cjs +1 -0
  71. package/LinkButton-BvXu6vAH.cjs +6 -0
  72. package/LinkButton-D3EnZ65v.js +69 -0
  73. package/ListBox-ICZKGluC.cjs +1 -0
  74. package/ListBox-LncMQt6I.js +523 -0
  75. package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
  76. package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
  77. package/ListBoxSection-BCPv9H50.js +1085 -0
  78. package/ListBoxSection-Dx75ZinL.cjs +1 -0
  79. package/{ListKeyboardDelegate-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
  80. package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
  81. package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
  82. package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
  83. package/OverlayArrow-ByH6lM-H.cjs +1 -0
  84. package/OverlayArrow-CvNuu3e3.js +519 -0
  85. package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
  86. package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
  87. package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
  88. package/PressResponder-DbnYqwGB.cjs +1 -0
  89. package/ProgressBar-CdXHEJh6.js +53 -0
  90. package/ProgressBar-CjuHokVZ.cjs +1 -0
  91. package/Radio-Bll-7H8O.cjs +1 -0
  92. package/Radio-DoWx2AE1.js +333 -0
  93. package/RangeCalendar-A4WQIG7P.cjs +6 -0
  94. package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-D7eFVAPP.js} +638 -630
  95. package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
  96. package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
  97. package/{SearchField-Ma3KB8Em.cjs → SearchField-BbrUZpQm.cjs} +2 -2
  98. package/{SearchField-B0dlPqsW.js → SearchField-F2FKgYds.js} +29 -33
  99. package/Select-BnbDXwgD.cjs +1 -0
  100. package/Select-Dpi3LhbI.js +654 -0
  101. package/{SelectionManager-BdKKuso-.js → SelectionManager-Bq-Gw1UT.js} +291 -282
  102. package/SelectionManager-BtbHoHpA.cjs +1 -0
  103. package/Separator-CM0KPvsX.js +105 -0
  104. package/Separator-Cfv2pbWf.cjs +1 -0
  105. package/Separator-DH-5wu9X.js +77 -0
  106. package/Separator-Dgin8BNW.cjs +1 -0
  107. package/Skeleton-BpYj25p8.js +37 -0
  108. package/Skeleton-DMOxEwnd.cjs +1 -0
  109. package/Spinner-D1UBuLy4.cjs +6 -0
  110. package/Spinner-DTKb_LAA.js +47 -0
  111. package/TabList-D4WwgQY3.cjs +1 -0
  112. package/TabList-D9tl2s85.js +397 -0
  113. package/Table-C6k3PiiC.cjs +16 -0
  114. package/{Table-CTS0J_sQ.js → Table-CkN3y69S.js} +856 -798
  115. package/Tag-7dHEMQum.cjs +1 -0
  116. package/Tag-BUJ20HHw.js +765 -0
  117. package/Text-BAFsaON-.cjs +1 -0
  118. package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
  119. package/{Text-wuw0HQoa.cjs → Text-BtPiT2P1.cjs} +1 -1
  120. package/Text-CmlsaWMA.js +32 -0
  121. package/TextArea-BCikUXaD.cjs +1 -0
  122. package/TextArea-h5_oBQH1.js +125 -0
  123. package/TextField-Bm5916AD.cjs +1 -0
  124. package/TextField-_UY8CXtW.js +134 -0
  125. package/TextField.module-C9Zm9unF.js +13 -0
  126. package/TextField.module-GTQtNO0r.cjs +1 -0
  127. package/{Toast-BnzpC_5v.js → Toast-BBkWczCk.js} +202 -214
  128. package/{Toast-BEh5yYzO.cjs → Toast-DclaxvZM.cjs} +1 -1
  129. package/ToggleButtonGroup-BGG64PK1.js +214 -0
  130. package/ToggleButtonGroup-Da330GRT.cjs +1 -0
  131. package/Tooltip-BHAtsp9k.js +281 -0
  132. package/Tooltip-CZa9n5sT.cjs +1 -0
  133. package/{VisuallyHidden-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
  134. package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
  135. package/accordion/index.cjs +1 -1
  136. package/accordion/index.js +1 -1
  137. package/assets/AccordionItem.css +1 -1
  138. package/assets/BadgeContainer.css +1 -1
  139. package/assets/Breadcrumbs.css +1 -1
  140. package/assets/Button.css +1 -1
  141. package/assets/ButtonGroup.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/CharacterCounter.css +1 -1
  144. package/assets/Checkbox.css +1 -1
  145. package/assets/ComboBox.css +1 -1
  146. package/assets/DateField.css +1 -1
  147. package/assets/DateInputDivider.css +1 -1
  148. package/assets/DateRangePicker.css +1 -1
  149. package/assets/Dialog.css +1 -1
  150. package/assets/Dropdown.css +1 -1
  151. package/assets/FieldError.css +1 -1
  152. package/assets/FileUpload.css +1 -1
  153. package/assets/GridItem.css +1 -1
  154. package/assets/Heading.css +1 -1
  155. package/assets/InfoBanner.css +1 -1
  156. package/assets/Label.css +1 -1
  157. package/assets/Layout.css +1 -1
  158. package/assets/Link.css +1 -1
  159. package/assets/LinkButton.css +1 -1
  160. package/assets/ListBoxSection.css +1 -1
  161. package/assets/Logo.css +1 -1
  162. package/assets/Popover.css +1 -1
  163. package/assets/ProgressBar.css +1 -1
  164. package/assets/Radio.css +1 -1
  165. package/assets/RangeCalendar.css +1 -1
  166. package/assets/SearchField.css +1 -1
  167. package/assets/Select.css +1 -1
  168. package/assets/Separator.css +1 -0
  169. package/assets/Skeleton.css +1 -1
  170. package/assets/Spinner.css +1 -1
  171. package/assets/TabList.css +1 -1
  172. package/assets/Table.css +1 -1
  173. package/assets/Tag.css +1 -1
  174. package/assets/Text.css +1 -1
  175. package/assets/TextField.css +1 -1
  176. package/assets/Toast.css +1 -1
  177. package/assets/ToggleButtonGroup.css +1 -1
  178. package/assets/Tooltip.css +1 -1
  179. package/assets/theme.css +1 -1
  180. package/assets/variables.css +1 -0
  181. package/badge/index.cjs +1 -1
  182. package/badge/index.js +1 -1
  183. package/breadcrumbs/index.cjs +1 -1
  184. package/breadcrumbs/index.js +1 -1
  185. package/button/index.cjs +1 -1
  186. package/button/index.js +2 -2
  187. package/calendar/index.cjs +1 -1
  188. package/calendar/index.js +1 -1
  189. package/card/index.cjs +1 -1
  190. package/card/index.js +1 -1
  191. package/character-counter/index.cjs +1 -1
  192. package/character-counter/index.js +1 -1
  193. package/checkbox/index.cjs +1 -1
  194. package/checkbox/index.js +2 -2
  195. package/chevron-right-0-sUFBiR.cjs +6 -0
  196. package/chevron-right-BYYHEJjK.js +11 -0
  197. package/color-scheme-switch/index.cjs +1 -1
  198. package/color-scheme-switch/index.js +1 -1
  199. package/combobox/index.cjs +1 -1
  200. package/combobox/index.d.ts +1 -1
  201. package/combobox/index.js +1 -1
  202. package/combobox/intl/translations.json.d.ts +4 -2
  203. package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
  204. package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
  205. package/date-field/index.cjs +1 -1
  206. package/date-field/index.js +2 -2
  207. package/date-picker/index.cjs +1 -1
  208. package/date-picker/index.js +1 -1
  209. package/dropdown/Dropdown.d.ts +18 -0
  210. package/dropdown/index.cjs +1 -1
  211. package/dropdown/index.js +1 -1
  212. package/field-error/index.cjs +1 -1
  213. package/field-error/index.js +1 -1
  214. package/file-upload/index.cjs +1 -1
  215. package/file-upload/index.js +1 -1
  216. package/filterDOMProps-RRlKPKX0.cjs +1 -0
  217. package/filterDOMProps-wsa9OcNI.js +65 -0
  218. package/grid/index.cjs +1 -1
  219. package/grid/index.js +2 -2
  220. package/heading/index.cjs +1 -1
  221. package/heading/index.js +1 -1
  222. package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
  223. package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
  224. package/index.cjs +1 -1
  225. package/index.d.ts +2 -0
  226. package/index.js +140 -125
  227. package/inertValue-B3AFhVG4.cjs +1 -0
  228. package/info-banner/index.cjs +1 -1
  229. package/info-banner/index.js +1 -1
  230. package/label/index.cjs +1 -1
  231. package/label/index.js +1 -1
  232. package/layout/index.cjs +1 -1
  233. package/layout/index.js +1 -1
  234. package/link/index.cjs +1 -1
  235. package/link/index.js +2 -2
  236. package/link-button/index.cjs +1 -1
  237. package/link-button/index.js +2 -2
  238. package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
  239. package/list-box/index.cjs +1 -1
  240. package/list-box/index.d.ts +1 -0
  241. package/list-box/index.js +6 -5
  242. package/list-box/intl/translations.json.d.ts +11 -0
  243. package/logo/index.cjs +1 -1
  244. package/logo/index.js +1 -1
  245. package/menu/Menu.d.ts +13 -0
  246. package/menu/MenuItem.d.ts +5 -0
  247. package/menu/MenuPopover.d.ts +3 -0
  248. package/menu/MenuSection.d.ts +3 -0
  249. package/menu/Separator.d.ts +3 -0
  250. package/menu/index.cjs +1 -0
  251. package/menu/index.d.ts +5 -0
  252. package/menu/index.js +8 -0
  253. package/mergeProps-BSsN7Bgk.js +117 -0
  254. package/mergeProps-JhcJ7uJL.cjs +1 -0
  255. package/modal/index.cjs +1 -1
  256. package/modal/index.js +2 -2
  257. package/package.json +6 -4
  258. package/popover/index.cjs +1 -1
  259. package/popover/index.js +1 -1
  260. package/progress-bar/index.cjs +1 -1
  261. package/progress-bar/index.js +1 -1
  262. package/radio/index.cjs +1 -1
  263. package/radio/index.js +1 -1
  264. package/search-field/index.cjs +1 -1
  265. package/search-field/index.js +1 -1
  266. package/select/Select.d.ts +1 -1
  267. package/select/index.cjs +1 -1
  268. package/select/index.js +1 -1
  269. package/skeleton/index.cjs +1 -1
  270. package/skeleton/index.js +1 -1
  271. package/spinner/index.cjs +1 -1
  272. package/spinner/index.js +1 -1
  273. package/table/index.cjs +1 -1
  274. package/table/index.js +1 -1
  275. package/tabs/index.cjs +1 -1
  276. package/tabs/index.js +1 -1
  277. package/tag/index.cjs +1 -1
  278. package/tag/index.js +1 -1
  279. package/text/index.cjs +1 -1
  280. package/text/index.js +1 -1
  281. package/textfield/Input.d.ts +7 -2
  282. package/textfield/PasswordField.d.ts +1 -1
  283. package/textfield/index.cjs +1 -1
  284. package/textfield/index.js +1 -1
  285. package/theme/generated-object.d.ts +384 -0
  286. package/theme/generated-tokens.d.ts +334 -0
  287. package/theme/index.cjs +1 -1
  288. package/theme/index.d.ts +4 -1
  289. package/theme/index.js +4037 -14
  290. package/theme/tokens.d.ts +30 -1
  291. package/toast/index.cjs +1 -1
  292. package/toast/index.js +1 -1
  293. package/toggle-button/index.cjs +1 -1
  294. package/toggle-button/index.js +1 -1
  295. package/{tokens-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
  296. package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
  297. package/tooltip/index.cjs +1 -1
  298. package/tooltip/index.js +1 -1
  299. package/useButton-D6iUB8cN.js +56 -0
  300. package/useButton-R8-i3HLC.cjs +1 -0
  301. package/useDateFormatter-2B0vgHc-.cjs +1 -0
  302. package/{useDateFormatter-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
  303. package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
  304. package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
  305. package/useEvent-3ZO5TPSH.cjs +1 -0
  306. package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
  307. package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
  308. package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
  309. package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
  310. package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
  311. package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
  312. package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
  313. package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
  314. package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
  315. package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
  316. package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
  317. package/useFormValidation-BQIRxgbU.cjs +1 -0
  318. package/useFormValidation-L0UHvOsP.js +217 -0
  319. package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
  320. package/useHasTabbableChild-CJcLnolh.cjs +1 -0
  321. package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
  322. package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
  323. package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
  324. package/useHover-DGAmG7jt.cjs +1 -0
  325. package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
  326. package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
  327. package/useListState-D2IEg6_e.cjs +1 -0
  328. package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
  329. package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
  330. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  331. package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
  332. package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
  333. package/useObserveElement-MhzEsCkX.cjs +1 -0
  334. package/usePress-CicXV7UO.cjs +7 -0
  335. package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
  336. package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
  337. package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
  338. package/useTextField-BC5X_AO_.js +89 -0
  339. package/useTextField-Cxpfu0U3.cjs +1 -0
  340. package/useToggleState-BVOqL4hI.js +21 -0
  341. package/useToggleState-SqDyNfRi.cjs +1 -0
  342. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  343. package/utils/types.d.ts +4 -0
  344. package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
  345. package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
  346. package/utils-DFIwp4PB.js +262 -0
  347. package/utils-__vrf9VZ.cjs +1 -0
  348. package/AccordionItem-DEiRuizp.js +0 -361
  349. package/AccordionItem-Dhr7uo8u.cjs +0 -1
  350. package/BadgeContainer-CxVmqJ7g.cjs +0 -1
  351. package/Breadcrumbs-CEyKlcGU.js +0 -262
  352. package/Breadcrumbs-CnGzvtbn.cjs +0 -1
  353. package/Button-DZzQGk-L.cjs +0 -1
  354. package/Button.module-D-mPLRxe.js +0 -14
  355. package/Button.module-goCEz5qs.cjs +0 -1
  356. package/ButtonGroup-DUqW5dzM.cjs +0 -1
  357. package/Card-CwwVnA_a.js +0 -131
  358. package/Card-DPfOZC7f.cjs +0 -1
  359. package/CharacterCounter-DPphWPzA.js +0 -22
  360. package/Checkbox-BN_3F2Hl.js +0 -264
  361. package/Checkbox-CZtCj4yR.cjs +0 -1
  362. package/CheckboxGroup--xgOT1Do.js +0 -159
  363. package/CheckboxGroup-DGHaqRvb.cjs +0 -1
  364. package/Collection-B1xL4EdF.cjs +0 -1
  365. package/Collection-C5vE9MtJ.js +0 -577
  366. package/ComboBox-UadZMhiR.cjs +0 -1
  367. package/DateField-CNEoLyf5.cjs +0 -1
  368. package/DateField-CZmLugT0.js +0 -47
  369. package/DateInputDivider-CCjiq90K.cjs +0 -1
  370. package/DateRangePicker-DhgLEa9P.cjs +0 -6
  371. package/DateRangePicker-WQ97Psz7.js +0 -870
  372. package/Dialog-BT0tVGQb.cjs +0 -1
  373. package/Dialog-BuJdAr0D.js +0 -1611
  374. package/Dialog-DYK8lySl.cjs +0 -1
  375. package/Dialog-L53DWF0Z.js +0 -220
  376. package/DragAndDrop-DKxsUpmW.js +0 -60
  377. package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
  378. package/FieldError-BlKkw9YL.js +0 -46
  379. package/FieldError-BvU0sueN.cjs +0 -1
  380. package/FocusScope-CAgWgk3N.cjs +0 -1
  381. package/GridItem-BnyULDnc.cjs +0 -1
  382. package/GridItem-orSzD7H5.js +0 -243
  383. package/Heading-DDhdwRAW.js +0 -46
  384. package/Heading-OUPkdoEJ.cjs +0 -1
  385. package/InfoBanner-DpLcq_1R.cjs +0 -1
  386. package/InfoBanner-U5hxOipC.js +0 -99
  387. package/Label-COpr4xVt.cjs +0 -1
  388. package/Layout-BR3Or1Ga.cjs +0 -16
  389. package/Layout-Bdqauktv.js +0 -498
  390. package/Link-CM2N5Jq-.js +0 -72
  391. package/Link-Dq8IFDBx.cjs +0 -6
  392. package/Link-ceVlGaWQ.cjs +0 -1
  393. package/LinkButton-BJA9_HzL.cjs +0 -6
  394. package/LinkButton-DH3Nfdis.js +0 -69
  395. package/ListBox-D0u9svwm.cjs +0 -1
  396. package/ListBox-y_dw__MI.js +0 -531
  397. package/ListBoxButton-C2zp-gXD.cjs +0 -1
  398. package/ListBoxButton-DiseS_LX.js +0 -15
  399. package/ListBoxSection-Cv-gN76G.js +0 -1058
  400. package/ListBoxSection-DtsigmC1.cjs +0 -1
  401. package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
  402. package/OverlayArrow-8praV_Xy.cjs +0 -1
  403. package/OverlayArrow-DfkRZlgG.js +0 -507
  404. package/PressResponder-Bm3_RM9c.cjs +0 -1
  405. package/ProgressBar-D5mNQTID.cjs +0 -1
  406. package/ProgressBar-wQirOG1N.js +0 -53
  407. package/Radio-BIomn_sP.js +0 -313
  408. package/Radio-CxvJ5Wrl.cjs +0 -1
  409. package/RangeCalendar-BvvZ2SBj.cjs +0 -11
  410. package/Select-769RSZ9V.js +0 -664
  411. package/Select-Go5x0zWl.cjs +0 -1
  412. package/SelectionManager-BvREZgeu.cjs +0 -1
  413. package/Separator-CggS0R7Q.js +0 -59
  414. package/Separator-DBsDhqCr.cjs +0 -1
  415. package/Skeleton-BAwbfKBW.cjs +0 -1
  416. package/Skeleton-BePDRmrO.js +0 -40
  417. package/Spinner-AXFRWuT6.js +0 -51
  418. package/Spinner-yHx_DX_4.cjs +0 -6
  419. package/TabList-0gj27e_e.js +0 -386
  420. package/TabList-Cqpup53E.cjs +0 -1
  421. package/Table-BhtlNY9P.cjs +0 -16
  422. package/Tag-B9M-nBTM.js +0 -748
  423. package/Tag-DkW6zaIS.cjs +0 -1
  424. package/Text-BUDAzDjW.js +0 -32
  425. package/Text-DA_gK6a2.cjs +0 -1
  426. package/TextArea-CSrrYY05.cjs +0 -1
  427. package/TextArea-DphcH6wE.js +0 -119
  428. package/TextField-CsyRTSEG.js +0 -120
  429. package/TextField-P5yICj5z.cjs +0 -1
  430. package/TextField.module-BcpPBWnD.js +0 -13
  431. package/TextField.module-Dw5Rtn9y.cjs +0 -1
  432. package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
  433. package/ToggleButtonGroup-CuxAKB3-.js +0 -211
  434. package/Tooltip-Bz0xCZSw.cjs +0 -1
  435. package/Tooltip-EuEQtHZj.js +0 -285
  436. package/filterDOMProps-BS2lrgFA.cjs +0 -1
  437. package/filterDOMProps-D6KHYVBX.js +0 -24
  438. package/inertValue-BWmZ1afe.cjs +0 -1
  439. package/mergeProps-BYJQ6N1s.js +0 -115
  440. package/mergeProps-C7Sx47fA.cjs +0 -1
  441. package/useButton-CWHoXYnj.js +0 -47
  442. package/useButton-CwOQUGtY.cjs +0 -1
  443. package/useDateFormatter-bzjwqA2K.cjs +0 -1
  444. package/useEvent-CGRyLM2c.cjs +0 -1
  445. package/useFormValidation-BW2NSTM4.js +0 -215
  446. package/useFormValidation-DSRwb9US.cjs +0 -1
  447. package/useHasTabbableChild-CogBR_6o.cjs +0 -1
  448. package/useHover-CaFzQrR_.cjs +0 -1
  449. package/useListState-TtWy_rDI.cjs +0 -1
  450. package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
  451. package/useObserveElement-BzEr5D32.cjs +0 -1
  452. package/usePress-BOGIOlm8.cjs +0 -7
  453. package/useTextField-BVIOd8Ld.cjs +0 -1
  454. package/useTextField-DFkSHoQN.js +0 -86
  455. package/useToggleState-Bz5rAf4C.js +0 -18
  456. package/useToggleState-DoIkSQdj.cjs +0 -1
  457. package/utils-C5-CzvX2.cjs +0 -1
  458. package/utils-CuqJqFqQ.js +0 -234
@@ -1,33 +1,33 @@
1
- import { _ as G } from "./usePress-B_jgTf4k.js";
2
- import { $ as yr } from "./context-Dl_saGB6.js";
3
- import { useRef as mr, useMemo as br } from "react";
4
- function gr(r, e) {
5
- let t = mr(null);
1
+ import { _ as j } from "./usePress-DMUpU0GU.js";
2
+ import { $ as mr } from "./context-CGNJ3grH.js";
3
+ import { useRef as br, useMemo as gr } from "react";
4
+ function Mr(r, e) {
5
+ let t = br(null);
6
6
  return r && t.current && e(r, t.current) && (r = t.current), t.current = r, r;
7
7
  }
8
- function I(r, e) {
8
+ function S(r, e) {
9
9
  return r - e * Math.floor(r / e);
10
10
  }
11
- const Fe = 1721426;
12
- function w(r, e, t, n) {
13
- e = Q(r, e);
11
+ const _e = 1721426;
12
+ function v(r, e, t, n) {
13
+ e = _(r, e);
14
14
  let a = e - 1, o = -2;
15
- return t <= 2 ? o = 0 : M(e) && (o = -1), Fe - 1 + 365 * a + Math.floor(a / 4) - Math.floor(a / 100) + Math.floor(a / 400) + Math.floor((367 * t - 362) / 12 + o + n);
15
+ return t <= 2 ? o = 0 : D(e) && (o = -1), _e - 1 + 365 * a + Math.floor(a / 4) - Math.floor(a / 100) + Math.floor(a / 400) + Math.floor((367 * t - 362) / 12 + o + n);
16
16
  }
17
- function M(r) {
17
+ function D(r) {
18
18
  return r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0);
19
19
  }
20
- function Q(r, e) {
20
+ function _(r, e) {
21
21
  return r === "BC" ? 1 - e : e;
22
22
  }
23
- function j(r) {
23
+ function X(r) {
24
24
  let e = "AD";
25
25
  return r <= 0 && (e = "BC", r = 1 - r), [
26
26
  e,
27
27
  r
28
28
  ];
29
29
  }
30
- const Mr = {
30
+ const Dr = {
31
31
  standard: [
32
32
  31,
33
33
  28,
@@ -59,23 +59,23 @@ const Mr = {
59
59
  };
60
60
  class $ {
61
61
  fromJulianDay(e) {
62
- let t = e, n = t - Fe, a = Math.floor(n / 146097), o = I(n, 146097), i = Math.floor(o / 36524), f = I(o, 36524), c = Math.floor(f / 1461), l = I(f, 1461), A = Math.floor(l / 365), E = a * 400 + i * 100 + c * 4 + A + (i !== 4 && A !== 4 ? 1 : 0), [x, p] = j(E), b = t - w(x, p, 1, 1), z = 2;
63
- t < w(x, p, 3, 1) ? z = 0 : M(p) && (z = 1);
64
- let pe = Math.floor(((b + z) * 12 + 373) / 367), dr = t - w(x, p, pe, 1) + 1;
65
- return new s(x, p, pe, dr);
62
+ let t = e, n = t - _e, a = Math.floor(n / 146097), o = S(n, 146097), i = Math.floor(o / 36524), f = S(o, 36524), c = Math.floor(f / 1461), l = S(f, 1461), E = Math.floor(l / 365), I = a * 400 + i * 100 + c * 4 + E + (i !== 4 && E !== 4 ? 1 : 0), [x, p] = X(I), g = t - v(x, p, 1, 1), ee = 2;
63
+ t < v(x, p, 3, 1) ? ee = 0 : D(p) && (ee = 1);
64
+ let pe = Math.floor(((g + ee) * 12 + 373) / 367), yr = t - v(x, p, pe, 1) + 1;
65
+ return new s(x, p, pe, yr);
66
66
  }
67
67
  toJulianDay(e) {
68
- return w(e.era, e.year, e.month, e.day);
68
+ return v(e.era, e.year, e.month, e.day);
69
69
  }
70
70
  getDaysInMonth(e) {
71
- return Mr[M(e.year) ? "leapyear" : "standard"][e.month - 1];
71
+ return Dr[D(e.year) ? "leapyear" : "standard"][e.month - 1];
72
72
  }
73
73
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
74
74
  getMonthsInYear(e) {
75
75
  return 12;
76
76
  }
77
77
  getDaysInYear(e) {
78
- return M(e.year) ? 366 : 365;
78
+ return D(e.year) ? 366 : 365;
79
79
  }
80
80
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
81
81
  getYearsInEra(e) {
@@ -194,23 +194,23 @@ const pr = {
194
194
  VN: 1,
195
195
  XK: 1
196
196
  };
197
- function Oe(r, e) {
197
+ function Fe(r, e) {
198
198
  return e = h(e, r.calendar), r.era === e.era && r.year === e.year && r.month === e.month && r.day === e.day;
199
199
  }
200
- function gt(r, e) {
201
- return e = h(e, r.calendar), r = H(r), e = H(e), r.era === e.era && r.year === e.year && r.month === e.month;
200
+ function pt(r, e) {
201
+ return e = h(e, r.calendar), r = Z(r), e = Z(e), r.era === e.era && r.year === e.year && r.month === e.month;
202
202
  }
203
- function Mt(r, e) {
204
- return _e(r.calendar, e.calendar) && Oe(r, e);
203
+ function wt(r, e) {
204
+ return Ne(r.calendar, e.calendar) && Fe(r, e);
205
205
  }
206
- function _e(r, e) {
206
+ function Ne(r, e) {
207
207
  var t, n, a, o;
208
208
  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;
209
209
  }
210
- function pt(r, e) {
211
- return Oe(r, vr(e));
210
+ function vt(r, e) {
211
+ return Fe(r, Ar(e));
212
212
  }
213
- const Dr = {
213
+ const wr = {
214
214
  sun: 0,
215
215
  mon: 1,
216
216
  tue: 2,
@@ -220,101 +220,101 @@ const Dr = {
220
220
  sat: 6
221
221
  };
222
222
  function qe(r, e, t) {
223
- let n = r.calendar.toJulianDay(r), a = t ? Dr[t] : xr(e), o = Math.ceil(n + 1 - a) % 7;
223
+ let n = r.calendar.toJulianDay(r), a = t ? wr[t] : xr(e), o = Math.ceil(n + 1 - a) % 7;
224
224
  return o < 0 && (o += 7), o;
225
225
  }
226
- function wr(r) {
227
- return y(Date.now(), r);
228
- }
229
226
  function vr(r) {
230
- return Yr(wr(r));
227
+ return m(Date.now(), r);
231
228
  }
232
- function Ne(r, e) {
233
- return r.calendar.toJulianDay(r) - e.calendar.toJulianDay(e);
229
+ function Ar(r) {
230
+ return Yr(vr(r));
234
231
  }
235
232
  function He(r, e) {
236
- return De(r) - De(e);
233
+ return r.calendar.toJulianDay(r) - e.calendar.toJulianDay(e);
234
+ }
235
+ function Pe(r, e) {
236
+ return we(r) - we(e);
237
237
  }
238
- function De(r) {
238
+ function we(r) {
239
239
  return r.hour * 36e5 + r.minute * 6e4 + r.second * 1e3 + r.millisecond;
240
240
  }
241
- let ee = null;
242
- function Pe() {
243
- return ee == null && (ee = new Intl.DateTimeFormat().resolvedOptions().timeZone), ee;
241
+ let re = null;
242
+ function Ze() {
243
+ return re == null && (re = new Intl.DateTimeFormat().resolvedOptions().timeZone), re;
244
244
  }
245
- function H(r) {
245
+ function Z(r) {
246
246
  return r.subtract({
247
247
  days: r.day - 1
248
248
  });
249
249
  }
250
- function Dt(r) {
250
+ function At(r) {
251
251
  return r.add({
252
252
  days: r.calendar.getDaysInMonth(r) - r.day
253
253
  });
254
254
  }
255
- function wt(r) {
256
- return H(r.subtract({
255
+ function Et(r) {
256
+ return Z(r.subtract({
257
257
  months: r.month - 1
258
258
  }));
259
259
  }
260
- function vt(r) {
260
+ function It(r) {
261
261
  return r.calendar.getMinimumMonthInYear ? r.calendar.getMinimumMonthInYear(r) : 1;
262
262
  }
263
- function At(r) {
263
+ function xt(r) {
264
264
  return r.calendar.getMinimumDayInMonth ? r.calendar.getMinimumDayInMonth(r) : 1;
265
265
  }
266
- function Ar(r, e, t) {
266
+ function Er(r, e, t) {
267
267
  let n = qe(r, e, t);
268
268
  return r.subtract({
269
269
  days: n
270
270
  });
271
271
  }
272
- function Et(r, e, t) {
273
- return Ar(r, e, t).add({
272
+ function Ct(r, e, t) {
273
+ return Er(r, e, t).add({
274
274
  days: 6
275
275
  });
276
276
  }
277
- const we = /* @__PURE__ */ new Map();
278
- function Er(r) {
277
+ const ve = /* @__PURE__ */ new Map();
278
+ function Ir(r) {
279
279
  if (Intl.Locale) {
280
- let t = we.get(r);
281
- return t || (t = new Intl.Locale(r).maximize().region, t && we.set(r, t)), t;
280
+ let t = ve.get(r);
281
+ return t || (t = new Intl.Locale(r).maximize().region, t && ve.set(r, t)), t;
282
282
  }
283
283
  let e = r.split("-")[1];
284
284
  return e === "u" ? void 0 : e;
285
285
  }
286
286
  function xr(r) {
287
- let e = Er(r);
287
+ let e = Ir(r);
288
288
  return e && pr[e] || 0;
289
289
  }
290
- function xt(r, e, t) {
290
+ function St(r, e, t) {
291
291
  let n = r.calendar.getDaysInMonth(r);
292
- return Math.ceil((qe(H(r), e, t) + n) / 7);
292
+ return Math.ceil((qe(Z(r), e, t) + n) / 7);
293
293
  }
294
- function Ct(r, e) {
294
+ function Yt(r, e) {
295
295
  return r && e ? r.compare(e) <= 0 ? r : e : r || e;
296
296
  }
297
- function It(r, e) {
297
+ function Bt(r, e) {
298
298
  return r && e ? r.compare(e) >= 0 ? r : e : r || e;
299
299
  }
300
- function B(r) {
300
+ function T(r) {
301
301
  r = h(r, new $());
302
- let e = Q(r.era, r.year);
303
- return Ze(e, r.month, r.day, r.hour, r.minute, r.second, r.millisecond);
302
+ let e = _(r.era, r.year);
303
+ return Ve(e, r.month, r.day, r.hour, r.minute, r.second, r.millisecond);
304
304
  }
305
- function Ze(r, e, t, n, a, o, i) {
305
+ function Ve(r, e, t, n, a, o, i) {
306
306
  let f = /* @__PURE__ */ new Date();
307
307
  return f.setUTCHours(n, a, o, i), f.setUTCFullYear(r, e - 1, t), f.getTime();
308
308
  }
309
- function ie(r, e) {
309
+ function fe(r, e) {
310
310
  if (e === "UTC") return 0;
311
- if (r > 0 && e === Pe()) return new Date(r).getTimezoneOffset() * -6e4;
312
- let { year: t, month: n, day: a, hour: o, minute: i, second: f } = Ve(r, e);
313
- return Ze(t, n, a, o, i, f, 0) - Math.floor(r / 1e3) * 1e3;
311
+ if (r > 0 && e === Ze()) return new Date(r).getTimezoneOffset() * -6e4;
312
+ let { year: t, month: n, day: a, hour: o, minute: i, second: f } = We(r, e);
313
+ return Ve(t, n, a, o, i, f, 0) - Math.floor(r / 1e3) * 1e3;
314
314
  }
315
- const ve = /* @__PURE__ */ new Map();
316
- function Ve(r, e) {
317
- let t = ve.get(e);
315
+ const Ae = /* @__PURE__ */ new Map();
316
+ function We(r, e) {
317
+ let t = Ae.get(e);
318
318
  t || (t = new Intl.DateTimeFormat("en-US", {
319
319
  timeZone: e,
320
320
  hour12: !1,
@@ -325,7 +325,7 @@ function Ve(r, e) {
325
325
  hour: "numeric",
326
326
  minute: "numeric",
327
327
  second: "numeric"
328
- }), ve.set(e, t));
328
+ }), Ae.set(e, t));
329
329
  let n = t.formatToParts(new Date(r)), a = {};
330
330
  for (let o of n) o.type !== "literal" && (a[o.type] = o.value);
331
331
  return {
@@ -338,30 +338,31 @@ function Ve(r, e) {
338
338
  second: +a.second
339
339
  };
340
340
  }
341
- const Ae = 864e5;
341
+ const Ee = 864e5;
342
342
  function Cr(r, e, t, n) {
343
343
  return (t === n ? [
344
344
  t
345
345
  ] : [
346
346
  t,
347
347
  n
348
- ]).filter((o) => Ir(r, e, o));
348
+ ]).filter((o) => Sr(r, e, o));
349
349
  }
350
- function Ir(r, e, t) {
351
- let n = Ve(t, e);
350
+ function Sr(r, e, t) {
351
+ let n = We(t, e);
352
352
  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;
353
353
  }
354
- function d(r, e, t = "compatible") {
355
- let n = T(r);
356
- if (e === "UTC") return B(n);
357
- if (e === Pe() && t === "compatible") {
354
+ function y(r, e, t = "compatible") {
355
+ let n = R(r);
356
+ if (e === "UTC") return T(n);
357
+ if (e === Ze() && t === "compatible") {
358
358
  n = h(n, new $());
359
- let c = /* @__PURE__ */ new Date(), l = Q(n.era, n.year);
359
+ let c = /* @__PURE__ */ new Date(), l = _(n.era, n.year);
360
360
  return c.setFullYear(l, n.month - 1, n.day), c.setHours(n.hour, n.minute, n.second, n.millisecond), c.getTime();
361
361
  }
362
- let a = B(n), o = ie(a - Ae, e), i = ie(a + Ae, e), f = Cr(n, e, a - o, a - i);
362
+ let a = T(n), o = fe(a - Ee, e), i = fe(a + Ee, e), f = Cr(n, e, a - o, a - i);
363
363
  if (f.length === 1) return f[0];
364
364
  if (f.length > 1) switch (t) {
365
+ // 'compatible' means 'earlier' for "fall back" transitions
365
366
  case "compatible":
366
367
  case "earlier":
367
368
  return f[0];
@@ -373,6 +374,7 @@ function d(r, e, t = "compatible") {
373
374
  switch (t) {
374
375
  case "earlier":
375
376
  return Math.min(a - o, a - i);
377
+ // 'compatible' means 'later' for "spring forward" transitions
376
378
  case "compatible":
377
379
  case "later":
378
380
  return Math.max(a - o, a - i);
@@ -380,45 +382,45 @@ function d(r, e, t = "compatible") {
380
382
  throw new RangeError("No such absolute time found");
381
383
  }
382
384
  }
383
- function We(r, e, t = "compatible") {
384
- return new Date(d(r, e, t));
385
+ function Ke(r, e, t = "compatible") {
386
+ return new Date(y(r, e, t));
385
387
  }
386
- function y(r, e) {
387
- let t = ie(r, e), n = new Date(r + t), a = n.getUTCFullYear(), o = n.getUTCMonth() + 1, i = n.getUTCDate(), f = n.getUTCHours(), c = n.getUTCMinutes(), l = n.getUTCSeconds(), A = n.getUTCMilliseconds();
388
- return new k(a < 1 ? "BC" : "AD", a < 1 ? -a + 1 : a, o, i, e, t, f, c, l, A);
388
+ function m(r, e) {
389
+ let t = fe(r, e), n = new Date(r + t), a = n.getUTCFullYear(), o = n.getUTCMonth() + 1, i = n.getUTCDate(), f = n.getUTCHours(), c = n.getUTCMinutes(), l = n.getUTCSeconds(), E = n.getUTCMilliseconds();
390
+ return new Q(a < 1 ? "BC" : "AD", a < 1 ? -a + 1 : a, o, i, e, t, f, c, l, E);
389
391
  }
390
392
  function Yr(r) {
391
393
  return new s(r.calendar, r.era, r.year, r.month, r.day);
392
394
  }
393
- function T(r, e) {
395
+ function R(r, e) {
394
396
  let t = 0, n = 0, a = 0, o = 0;
395
397
  if ("timeZone" in r) ({ hour: t, minute: n, second: a, millisecond: o } = r);
396
398
  else if ("hour" in r && !e) return r;
397
- 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);
399
+ return e && ({ hour: t, minute: n, second: a, millisecond: o } = e), new O(r.calendar, r.era, r.year, r.month, r.day, t, n, a, o);
398
400
  }
399
401
  function h(r, e) {
400
- if (_e(r.calendar, e)) return r;
402
+ if (Ne(r.calendar, e)) return r;
401
403
  let t = e.fromJulianDay(r.calendar.toJulianDay(r)), n = r.copy();
402
- return n.calendar = e, n.era = t.era, n.year = t.year, n.month = t.month, n.day = t.day, v(n), n;
404
+ return n.calendar = e, n.era = t.era, n.year = t.year, n.month = t.month, n.day = t.day, A(n), n;
403
405
  }
404
- function Sr(r, e, t) {
405
- if (r instanceof k)
406
- return r.timeZone === e ? r : Tr(r, e);
407
- let n = d(r, e, t);
408
- return y(n, e);
406
+ function Br(r, e, t) {
407
+ if (r instanceof Q)
408
+ return r.timeZone === e ? r : Rr(r, e);
409
+ let n = y(r, e, t);
410
+ return m(n, e);
409
411
  }
410
- function Br(r) {
411
- let e = B(r) - r.offset;
412
+ function Tr(r) {
413
+ let e = T(r) - r.offset;
412
414
  return new Date(e);
413
415
  }
414
- function Tr(r, e) {
415
- let t = B(r) - r.offset;
416
- return h(y(t, e), r.calendar);
416
+ function Rr(r, e) {
417
+ let t = T(r) - r.offset;
418
+ return h(m(t, e), r.calendar);
417
419
  }
418
420
  const U = 36e5;
419
- function X(r, e) {
420
- let t = r.copy(), n = "hour" in t ? Xe(t, e) : 0;
421
- fe(t, e.years || 0), t.calendar.balanceYearMonth && t.calendar.balanceYearMonth(t, r), t.month += e.months || 0, ce(t), Ke(t), t.day += (e.weeks || 0) * 7, t.day += e.days || 0, t.day += n, Ur(t), t.calendar.balanceDate && t.calendar.balanceDate(t), t.year < 1 && (t.year = 1, t.month = 1, t.day = 1);
421
+ function z(r, e) {
422
+ let t = r.copy(), n = "hour" in t ? ze(t, e) : 0;
423
+ ce(t, e.years || 0), t.calendar.balanceYearMonth && t.calendar.balanceYearMonth(t, r), t.month += e.months || 0, se(t), Ge(t), t.day += (e.weeks || 0) * 7, t.day += e.days || 0, t.day += n, Ur(t), t.calendar.balanceDate && t.calendar.balanceDate(t), t.year < 1 && (t.year = 1, t.month = 1, t.day = 1);
422
424
  let a = t.calendar.getYearsInEra(t);
423
425
  if (t.year > a) {
424
426
  var o, i;
@@ -429,92 +431,92 @@ function X(r, e) {
429
431
  let f = t.calendar.getMonthsInYear(t);
430
432
  return t.month > f && (t.month = f, t.day = t.calendar.getDaysInMonth(t)), t.day = Math.max(1, Math.min(t.calendar.getDaysInMonth(t), t.day)), t;
431
433
  }
432
- function fe(r, e) {
434
+ function ce(r, e) {
433
435
  var t, n;
434
436
  !((t = (n = r.calendar).isInverseEra) === null || t === void 0) && t.call(n, r) && (e = -e), r.year += e;
435
437
  }
436
- function ce(r) {
438
+ function se(r) {
437
439
  for (; r.month < 1; )
438
- fe(r, -1), r.month += r.calendar.getMonthsInYear(r);
440
+ ce(r, -1), r.month += r.calendar.getMonthsInYear(r);
439
441
  let e = 0;
440
442
  for (; r.month > (e = r.calendar.getMonthsInYear(r)); )
441
- r.month -= e, fe(r, 1);
443
+ r.month -= e, ce(r, 1);
442
444
  }
443
445
  function Ur(r) {
444
446
  for (; r.day < 1; )
445
- r.month--, ce(r), r.day += r.calendar.getDaysInMonth(r);
447
+ r.month--, se(r), r.day += r.calendar.getDaysInMonth(r);
446
448
  for (; r.day > r.calendar.getDaysInMonth(r); )
447
- r.day -= r.calendar.getDaysInMonth(r), r.month++, ce(r);
449
+ r.day -= r.calendar.getDaysInMonth(r), r.month++, se(r);
448
450
  }
449
- function Ke(r) {
451
+ function Ge(r) {
450
452
  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));
451
453
  }
452
- function v(r) {
453
- r.calendar.constrainDate && r.calendar.constrainDate(r), r.year = Math.max(1, Math.min(r.calendar.getYearsInEra(r), r.year)), Ke(r);
454
+ function A(r) {
455
+ r.calendar.constrainDate && r.calendar.constrainDate(r), r.year = Math.max(1, Math.min(r.calendar.getYearsInEra(r), r.year)), Ge(r);
454
456
  }
455
- function he(r) {
457
+ function $e(r) {
456
458
  let e = {};
457
459
  for (let t in r) typeof r[t] == "number" && (e[t] = -r[t]);
458
460
  return e;
459
461
  }
460
- function Ge(r, e) {
461
- return X(r, he(e));
462
+ function je(r, e) {
463
+ return z(r, $e(e));
462
464
  }
463
- function $e(r, e) {
465
+ function de(r, e) {
464
466
  let t = r.copy();
465
- 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;
467
+ 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), A(t), t;
466
468
  }
467
- function L(r, e) {
469
+ function k(r, e) {
468
470
  let t = r.copy();
469
- 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), je(t), t;
471
+ 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), Xe(t), t;
470
472
  }
471
473
  function Jr(r) {
472
474
  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);
473
475
  let e = Math.floor(r.hour / 24);
474
476
  return r.hour = F(r.hour, 24), e;
475
477
  }
476
- function je(r) {
478
+ function Xe(r) {
477
479
  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));
478
480
  }
479
481
  function F(r, e) {
480
482
  let t = r % e;
481
483
  return t < 0 && (t += e), t;
482
484
  }
483
- function Xe(r, e) {
485
+ function ze(r, e) {
484
486
  return r.hour += e.hours || 0, r.minute += e.minutes || 0, r.second += e.seconds || 0, r.millisecond += e.milliseconds || 0, Jr(r);
485
487
  }
486
- function ze(r, e) {
488
+ function er(r, e) {
487
489
  let t = r.copy();
488
- return Xe(t, e), t;
490
+ return ze(t, e), t;
489
491
  }
490
- function Rr(r, e) {
491
- return ze(r, he(e));
492
+ function Lr(r, e) {
493
+ return er(r, $e(e));
492
494
  }
493
- function de(r, e, t, n) {
495
+ function ye(r, e, t, n) {
494
496
  let a = r.copy();
495
497
  switch (e) {
496
498
  case "era": {
497
499
  let f = r.calendar.getEras(), c = f.indexOf(r.era);
498
500
  if (c < 0) throw new Error("Invalid era: " + r.era);
499
- c = m(c, t, 0, f.length - 1, n == null ? void 0 : n.round), a.era = f[c], v(a);
501
+ c = b(c, t, 0, f.length - 1, n == null ? void 0 : n.round), a.era = f[c], A(a);
500
502
  break;
501
503
  }
502
504
  case "year":
503
505
  var o, i;
504
- !((o = (i = a.calendar).isInverseEra) === null || o === void 0) && o.call(i, 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);
506
+ !((o = (i = a.calendar).isInverseEra) === null || o === void 0) && o.call(i, a) && (t = -t), a.year = b(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);
505
507
  break;
506
508
  case "month":
507
- a.month = m(r.month, t, 1, r.calendar.getMonthsInYear(r), n == null ? void 0 : n.round);
509
+ a.month = b(r.month, t, 1, r.calendar.getMonthsInYear(r), n == null ? void 0 : n.round);
508
510
  break;
509
511
  case "day":
510
- a.day = m(r.day, t, 1, r.calendar.getDaysInMonth(r), n == null ? void 0 : n.round);
512
+ a.day = b(r.day, t, 1, r.calendar.getDaysInMonth(r), n == null ? void 0 : n.round);
511
513
  break;
512
514
  default:
513
515
  throw new Error("Unsupported field " + e);
514
516
  }
515
- return r.calendar.balanceDate && r.calendar.balanceDate(a), v(a), a;
517
+ return r.calendar.balanceDate && r.calendar.balanceDate(a), A(a), a;
516
518
  }
517
- function ye(r, e, t, n) {
519
+ function me(r, e, t, n) {
518
520
  let a = r.copy();
519
521
  switch (e) {
520
522
  case "hour": {
@@ -523,24 +525,24 @@ function ye(r, e, t, n) {
523
525
  let c = o >= 12;
524
526
  i = c ? 12 : 0, f = c ? 23 : 11;
525
527
  }
526
- a.hour = m(o, t, i, f, n == null ? void 0 : n.round);
528
+ a.hour = b(o, t, i, f, n == null ? void 0 : n.round);
527
529
  break;
528
530
  }
529
531
  case "minute":
530
- a.minute = m(r.minute, t, 0, 59, n == null ? void 0 : n.round);
532
+ a.minute = b(r.minute, t, 0, 59, n == null ? void 0 : n.round);
531
533
  break;
532
534
  case "second":
533
- a.second = m(r.second, t, 0, 59, n == null ? void 0 : n.round);
535
+ a.second = b(r.second, t, 0, 59, n == null ? void 0 : n.round);
534
536
  break;
535
537
  case "millisecond":
536
- a.millisecond = m(r.millisecond, t, 0, 999, n == null ? void 0 : n.round);
538
+ a.millisecond = b(r.millisecond, t, 0, 999, n == null ? void 0 : n.round);
537
539
  break;
538
540
  default:
539
541
  throw new Error("Unsupported field " + e);
540
542
  }
541
543
  return a;
542
544
  }
543
- function m(r, e, t, n, a = !1) {
545
+ function b(r, e, t, n, a = !1) {
544
546
  if (a) {
545
547
  r += Math.sign(e), r < t && (r = n);
546
548
  let o = Math.abs(e);
@@ -549,87 +551,105 @@ function m(r, e, t, n, a = !1) {
549
551
  r += e, r < t ? r = n - (t - r - 1) : r > n && (r = t + (r - n - 1));
550
552
  return r;
551
553
  }
552
- function er(r, e) {
554
+ function rr(r, e) {
553
555
  let t;
554
556
  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) {
555
- let a = X(T(r), {
557
+ let a = z(R(r), {
556
558
  years: e.years,
557
559
  months: e.months,
558
560
  weeks: e.weeks,
559
561
  days: e.days
560
562
  });
561
- t = d(a, r.timeZone);
563
+ t = y(a, r.timeZone);
562
564
  } else
563
- t = B(r) - r.offset;
565
+ t = T(r) - r.offset;
564
566
  t += e.milliseconds || 0, t += (e.seconds || 0) * 1e3, t += (e.minutes || 0) * 6e4, t += (e.hours || 0) * 36e5;
565
- let n = y(t, r.timeZone);
567
+ let n = m(t, r.timeZone);
566
568
  return h(n, r.calendar);
567
569
  }
568
- function Lr(r, e) {
569
- return er(r, he(e));
570
+ function kr(r, e) {
571
+ return rr(r, $e(e));
570
572
  }
571
- function kr(r, e, t, n) {
573
+ function Or(r, e, t, n) {
572
574
  switch (e) {
573
575
  case "hour": {
574
576
  let a = 0, o = 23;
575
577
  if ((n == null ? void 0 : n.hourCycle) === 12) {
576
- let b = r.hour >= 12;
577
- a = b ? 12 : 0, o = b ? 23 : 11;
578
+ let g = r.hour >= 12;
579
+ a = g ? 12 : 0, o = g ? 23 : 11;
578
580
  }
579
- let i = T(r), f = h(L(i, {
581
+ let i = R(r), f = h(k(i, {
580
582
  hour: a
581
583
  }), new $()), c = [
582
- d(f, r.timeZone, "earlier"),
583
- d(f, r.timeZone, "later")
584
- ].filter((b) => y(b, r.timeZone).day === f.day)[0], l = h(L(i, {
584
+ y(f, r.timeZone, "earlier"),
585
+ y(f, r.timeZone, "later")
586
+ ].filter((g) => m(g, r.timeZone).day === f.day)[0], l = h(k(i, {
585
587
  hour: o
586
- }), new $()), A = [
587
- d(l, r.timeZone, "earlier"),
588
- d(l, r.timeZone, "later")
589
- ].filter((b) => y(b, r.timeZone).day === l.day).pop(), E = B(r) - r.offset, x = Math.floor(E / U), p = E % U;
590
- return E = m(x, t, Math.floor(c / U), Math.floor(A / U), n == null ? void 0 : n.round) * U + p, h(y(E, r.timeZone), r.calendar);
588
+ }), new $()), E = [
589
+ y(l, r.timeZone, "earlier"),
590
+ y(l, r.timeZone, "later")
591
+ ].filter((g) => m(g, r.timeZone).day === l.day).pop(), I = T(r) - r.offset, x = Math.floor(I / U), p = I % U;
592
+ return I = b(x, t, Math.floor(c / U), Math.floor(E / U), n == null ? void 0 : n.round) * U + p, h(m(I, r.timeZone), r.calendar);
591
593
  }
592
594
  case "minute":
593
595
  case "second":
594
596
  case "millisecond":
595
- return ye(r, e, t, n);
597
+ return me(r, e, t, n);
596
598
  case "era":
597
599
  case "year":
598
600
  case "month":
599
601
  case "day": {
600
- let a = de(T(r), e, t, n), o = d(a, r.timeZone);
601
- return h(y(o, r.timeZone), r.calendar);
602
+ let a = ye(R(r), e, t, n), o = y(a, r.timeZone);
603
+ return h(m(o, r.timeZone), r.calendar);
602
604
  }
603
605
  default:
604
606
  throw new Error("Unsupported field " + e);
605
607
  }
606
608
  }
607
609
  function Qr(r, e, t) {
608
- let n = T(r), a = L($e(n, e), e);
610
+ let n = R(r), a = k(de(n, e), e);
609
611
  if (a.compare(n) === 0) return r;
610
- let o = d(a, r.timeZone, t);
611
- return h(y(o, r.timeZone), r.calendar);
612
+ let o = y(a, r.timeZone, t);
613
+ return h(m(o, r.timeZone), r.calendar);
614
+ }
615
+ const _r = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/, Fr = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
616
+ function Tt(r) {
617
+ let e = r.match(_r);
618
+ if (!e) throw new Error("Invalid ISO 8601 date string: " + r);
619
+ let t = new s(d(e[1], 0, 9999), d(e[2], 1, 12), 1);
620
+ return t.day = d(e[3], 1, t.calendar.getDaysInMonth(t)), t;
621
+ }
622
+ function Rt(r) {
623
+ let e = r.match(Fr);
624
+ if (!e) throw new Error("Invalid ISO 8601 date time string: " + r);
625
+ let t = d(e[1], -9999, 9999), n = t < 1 ? "BC" : "AD", a = new O(n, t < 1 ? -t + 1 : t, d(e[2], 1, 12), 1, e[4] ? d(e[4], 0, 23) : 0, e[5] ? d(e[5], 0, 59) : 0, e[6] ? d(e[6], 0, 59) : 0, e[7] ? d(e[7], 0, 1 / 0) * 1e3 : 0);
626
+ return a.day = d(e[3], 0, a.calendar.getDaysInMonth(a)), a;
627
+ }
628
+ function d(r, e, t) {
629
+ let n = Number(r);
630
+ if (n < e || n > t) throw new RangeError(`Value out of range: ${e} <= ${n} <= ${t}`);
631
+ return n;
612
632
  }
613
- function rr(r) {
633
+ function tr(r) {
614
634
  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) : ""}`;
615
635
  }
616
- function tr(r) {
636
+ function nr(r) {
617
637
  let e = h(r, new $()), t;
618
638
  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")}`;
619
639
  }
620
- function nr(r) {
621
- return `${tr(r)}T${rr(r)}`;
640
+ function ar(r) {
641
+ return `${nr(r)}T${tr(r)}`;
622
642
  }
623
- function Fr(r) {
643
+ function Nr(r) {
624
644
  let e = Math.sign(r) < 0 ? "-" : "+";
625
645
  r = Math.abs(r);
626
646
  let t = Math.floor(r / 36e5), n = r % 36e5 / 6e4;
627
647
  return `${e}${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
628
648
  }
629
- function Or(r) {
630
- return `${nr(r)}${Fr(r.offset)}[${r.timeZone}]`;
649
+ function qr(r) {
650
+ return `${ar(r)}${Nr(r.offset)}[${r.timeZone}]`;
631
651
  }
632
- function me(r) {
652
+ function be(r) {
633
653
  let e = typeof r[0] == "object" ? r.shift() : new $(), t;
634
654
  if (typeof r[0] == "string") t = r.shift();
635
655
  else {
@@ -645,7 +665,7 @@ function me(r) {
645
665
  o
646
666
  ];
647
667
  }
648
- var _r = /* @__PURE__ */ new WeakMap();
668
+ var Hr = /* @__PURE__ */ new WeakMap();
649
669
  class s {
650
670
  /** Returns a copy of this date. */
651
671
  copy() {
@@ -653,101 +673,101 @@ class s {
653
673
  }
654
674
  /** Returns a new `CalendarDate` with the given duration added to it. */
655
675
  add(e) {
656
- return X(this, e);
676
+ return z(this, e);
657
677
  }
658
678
  /** Returns a new `CalendarDate` with the given duration subtracted from it. */
659
679
  subtract(e) {
660
- return Ge(this, e);
680
+ return je(this, e);
661
681
  }
662
682
  /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
663
683
  set(e) {
664
- return $e(this, e);
684
+ return de(this, e);
665
685
  }
666
686
  /**
667
687
  * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
668
688
  * When the resulting value reaches the limits of the field, it wraps around.
669
689
  */
670
690
  cycle(e, t, n) {
671
- return de(this, e, t, n);
691
+ return ye(this, e, t, n);
672
692
  }
673
693
  /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
674
694
  toDate(e) {
675
- return We(this, e);
695
+ return Ke(this, e);
676
696
  }
677
697
  /** Converts the date to an ISO 8601 formatted string. */
678
698
  toString() {
679
- return tr(this);
699
+ return nr(this);
680
700
  }
681
701
  /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
682
702
  compare(e) {
683
- return Ne(this, e);
703
+ return He(this, e);
684
704
  }
685
705
  constructor(...e) {
686
- G(this, _r, {
706
+ j(this, Hr, {
687
707
  writable: !0,
688
708
  value: void 0
689
709
  });
690
- let [t, n, a, o, i] = me(e);
691
- this.calendar = t, this.era = n, this.year = a, this.month = o, this.day = i, v(this);
710
+ let [t, n, a, o, i] = be(e);
711
+ this.calendar = t, this.era = n, this.year = a, this.month = o, this.day = i, A(this);
692
712
  }
693
713
  }
694
- var qr = /* @__PURE__ */ new WeakMap();
695
- class ar {
714
+ var Pr = /* @__PURE__ */ new WeakMap();
715
+ class or {
696
716
  /** Returns a copy of this time. */
697
717
  copy() {
698
- return new ar(this.hour, this.minute, this.second, this.millisecond);
718
+ return new or(this.hour, this.minute, this.second, this.millisecond);
699
719
  }
700
720
  /** Returns a new `Time` with the given duration added to it. */
701
721
  add(e) {
702
- return ze(this, e);
722
+ return er(this, e);
703
723
  }
704
724
  /** Returns a new `Time` with the given duration subtracted from it. */
705
725
  subtract(e) {
706
- return Rr(this, e);
726
+ return Lr(this, e);
707
727
  }
708
728
  /** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */
709
729
  set(e) {
710
- return L(this, e);
730
+ return k(this, e);
711
731
  }
712
732
  /**
713
733
  * Returns a new `Time` with the given field adjusted by a specified amount.
714
734
  * When the resulting value reaches the limits of the field, it wraps around.
715
735
  */
716
736
  cycle(e, t, n) {
717
- return ye(this, e, t, n);
737
+ return me(this, e, t, n);
718
738
  }
719
739
  /** Converts the time to an ISO 8601 formatted string. */
720
740
  toString() {
721
- return rr(this);
741
+ return tr(this);
722
742
  }
723
743
  /** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */
724
744
  compare(e) {
725
- return He(this, e);
745
+ return Pe(this, e);
726
746
  }
727
747
  constructor(e = 0, t = 0, n = 0, a = 0) {
728
- G(this, qr, {
748
+ j(this, Pr, {
729
749
  writable: !0,
730
750
  value: void 0
731
- }), this.hour = e, this.minute = t, this.second = n, this.millisecond = a, je(this);
751
+ }), this.hour = e, this.minute = t, this.second = n, this.millisecond = a, Xe(this);
732
752
  }
733
753
  }
734
- var Nr = /* @__PURE__ */ new WeakMap();
735
- class P {
754
+ var Zr = /* @__PURE__ */ new WeakMap();
755
+ class O {
736
756
  /** Returns a copy of this date. */
737
757
  copy() {
738
- 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);
758
+ return this.era ? new O(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond) : new O(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
739
759
  }
740
760
  /** Returns a new `CalendarDateTime` with the given duration added to it. */
741
761
  add(e) {
742
- return X(this, e);
762
+ return z(this, e);
743
763
  }
744
764
  /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
745
765
  subtract(e) {
746
- return Ge(this, e);
766
+ return je(this, e);
747
767
  }
748
768
  /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
749
769
  set(e) {
750
- return $e(L(this, e), e);
770
+ return de(k(this, e), e);
751
771
  }
752
772
  /**
753
773
  * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
@@ -759,46 +779,46 @@ class P {
759
779
  case "year":
760
780
  case "month":
761
781
  case "day":
762
- return de(this, e, t, n);
763
- default:
764
782
  return ye(this, e, t, n);
783
+ default:
784
+ return me(this, e, t, n);
765
785
  }
766
786
  }
767
787
  /** Converts the date to a native JavaScript Date object in the given time zone. */
768
788
  toDate(e, t) {
769
- return We(this, e, t);
789
+ return Ke(this, e, t);
770
790
  }
771
791
  /** Converts the date to an ISO 8601 formatted string. */
772
792
  toString() {
773
- return nr(this);
793
+ return ar(this);
774
794
  }
775
795
  /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
776
796
  compare(e) {
777
- let t = Ne(this, e);
778
- return t === 0 ? He(this, T(e)) : t;
797
+ let t = He(this, e);
798
+ return t === 0 ? Pe(this, R(e)) : t;
779
799
  }
780
800
  constructor(...e) {
781
- G(this, Nr, {
801
+ j(this, Zr, {
782
802
  writable: !0,
783
803
  value: void 0
784
804
  });
785
- let [t, n, a, o, i] = me(e);
786
- this.calendar = t, this.era = n, this.year = a, this.month = o, this.day = i, this.hour = e.shift() || 0, this.minute = e.shift() || 0, this.second = e.shift() || 0, this.millisecond = e.shift() || 0, v(this);
805
+ let [t, n, a, o, i] = be(e);
806
+ this.calendar = t, this.era = n, this.year = a, this.month = o, this.day = i, this.hour = e.shift() || 0, this.minute = e.shift() || 0, this.second = e.shift() || 0, this.millisecond = e.shift() || 0, A(this);
787
807
  }
788
808
  }
789
- var Hr = /* @__PURE__ */ new WeakMap();
790
- class k {
809
+ var Vr = /* @__PURE__ */ new WeakMap();
810
+ class Q {
791
811
  /** Returns a copy of this date. */
792
812
  copy() {
793
- 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);
813
+ return this.era ? new Q(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond) : new Q(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
794
814
  }
795
815
  /** Returns a new `ZonedDateTime` with the given duration added to it. */
796
816
  add(e) {
797
- return er(this, e);
817
+ return rr(this, e);
798
818
  }
799
819
  /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
800
820
  subtract(e) {
801
- return Lr(this, e);
821
+ return kr(this, e);
802
822
  }
803
823
  /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
804
824
  set(e, t) {
@@ -809,15 +829,15 @@ class k {
809
829
  * When the resulting value reaches the limits of the field, it wraps around.
810
830
  */
811
831
  cycle(e, t, n) {
812
- return kr(this, e, t, n);
832
+ return Or(this, e, t, n);
813
833
  }
814
834
  /** Converts the date to a native JavaScript Date object. */
815
835
  toDate() {
816
- return Br(this);
836
+ return Tr(this);
817
837
  }
818
838
  /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
819
839
  toString() {
820
- return Or(this);
840
+ return qr(this);
821
841
  }
822
842
  /** Converts the date to an ISO 8601 formatted string in UTC. */
823
843
  toAbsoluteString() {
@@ -825,15 +845,15 @@ class k {
825
845
  }
826
846
  /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
827
847
  compare(e) {
828
- return this.toDate().getTime() - Sr(e, this.timeZone).toDate().getTime();
848
+ return this.toDate().getTime() - Br(e, this.timeZone).toDate().getTime();
829
849
  }
830
850
  constructor(...e) {
831
- G(this, Hr, {
851
+ j(this, Vr, {
832
852
  writable: !0,
833
853
  value: void 0
834
854
  });
835
- let [t, n, a, o, i] = me(e), f = e.shift(), c = e.shift();
836
- this.calendar = t, this.era = n, this.year = a, this.month = o, this.day = i, this.timeZone = f, this.offset = c, this.hour = e.shift() || 0, this.minute = e.shift() || 0, this.second = e.shift() || 0, this.millisecond = e.shift() || 0, v(this);
855
+ let [t, n, a, o, i] = be(e), f = e.shift(), c = e.shift();
856
+ this.calendar = t, this.era = n, this.year = a, this.month = o, this.day = i, this.timeZone = f, this.offset = c, this.hour = e.shift() || 0, this.minute = e.shift() || 0, this.second = e.shift() || 0, this.millisecond = e.shift() || 0, A(this);
837
857
  }
838
858
  }
839
859
  const Y = [
@@ -862,7 +882,7 @@ const Y = [
862
882
  5,
863
883
  1
864
884
  ]
865
- ], Pr = [
885
+ ], Wr = [
866
886
  [
867
887
  1912,
868
888
  7,
@@ -883,44 +903,44 @@ const Y = [
883
903
  4,
884
904
  30
885
905
  ]
886
- ], _ = [
906
+ ], q = [
887
907
  1867,
888
908
  1911,
889
909
  1925,
890
910
  1988,
891
911
  2018
892
- ], g = [
912
+ ], M = [
893
913
  "meiji",
894
914
  "taisho",
895
915
  "showa",
896
916
  "heisei",
897
917
  "reiwa"
898
918
  ];
899
- function Ee(r) {
919
+ function Ie(r) {
900
920
  const e = Y.findIndex(([t, n, a]) => r.year < t || r.year === t && r.month < n || r.year === t && r.month === n && r.day < a);
901
921
  return e === -1 ? Y.length - 1 : e === 0 ? 0 : e - 1;
902
922
  }
903
- function re(r) {
904
- let e = _[g.indexOf(r.era)];
923
+ function te(r) {
924
+ let e = q[M.indexOf(r.era)];
905
925
  if (!e) throw new Error("Unknown era: " + r.era);
906
926
  return new s(r.year + e, r.month, r.day);
907
927
  }
908
- class Zr extends $ {
928
+ class Kr extends $ {
909
929
  fromJulianDay(e) {
910
- let t = super.fromJulianDay(e), n = Ee(t);
911
- return new s(this, g[n], t.year - _[n], t.month, t.day);
930
+ let t = super.fromJulianDay(e), n = Ie(t);
931
+ return new s(this, M[n], t.year - q[n], t.month, t.day);
912
932
  }
913
933
  toJulianDay(e) {
914
- return super.toJulianDay(re(e));
934
+ return super.toJulianDay(te(e));
915
935
  }
916
936
  balanceDate(e) {
917
- let t = re(e), n = Ee(t);
918
- g[n] !== e.era && (e.era = g[n], e.year = t.year - _[n]), this.constrainDate(e);
937
+ let t = te(e), n = Ie(t);
938
+ M[n] !== e.era && (e.era = M[n], e.year = t.year - q[n]), this.constrainDate(e);
919
939
  }
920
940
  constrainDate(e) {
921
- let t = g.indexOf(e.era), n = Pr[t];
941
+ let t = M.indexOf(e.era), n = Wr[t];
922
942
  if (n != null) {
923
- let [a, o, i] = n, f = a - _[t];
943
+ let [a, o, i] = n, f = a - q[t];
924
944
  e.year = Math.max(1, Math.min(f, e.year)), e.year === f && (e.month = Math.min(o, e.month), e.month === o && (e.day = Math.min(i, e.day)));
925
945
  }
926
946
  if (e.year === 1 && t >= 0) {
@@ -929,17 +949,17 @@ class Zr extends $ {
929
949
  }
930
950
  }
931
951
  getEras() {
932
- return g;
952
+ return M;
933
953
  }
934
954
  getYearsInEra(e) {
935
- let t = g.indexOf(e.era), n = Y[t], a = Y[t + 1];
955
+ let t = M.indexOf(e.era), n = Y[t], a = Y[t + 1];
936
956
  if (a == null)
937
957
  return 9999 - n[0] + 1;
938
958
  let o = a[0] - n[0];
939
959
  return (e.month < a[1] || e.month === a[1] && e.day < a[2]) && o++, o;
940
960
  }
941
961
  getDaysInMonth(e) {
942
- return super.getDaysInMonth(re(e));
962
+ return super.getDaysInMonth(te(e));
943
963
  }
944
964
  getMinimumMonthInYear(e) {
945
965
  let t = xe(e);
@@ -955,15 +975,15 @@ class Zr extends $ {
955
975
  }
956
976
  function xe(r) {
957
977
  if (r.year === 1) {
958
- let e = g.indexOf(r.era);
978
+ let e = M.indexOf(r.era);
959
979
  return Y[e];
960
980
  }
961
981
  }
962
- const or = -543;
963
- class Vr extends $ {
982
+ const ir = -543;
983
+ class Gr extends $ {
964
984
  fromJulianDay(e) {
965
- let t = super.fromJulianDay(e), n = Q(t.era, t.year);
966
- return new s(this, n - or, t.month, t.day);
985
+ let t = super.fromJulianDay(e), n = _(t.era, t.year);
986
+ return new s(this, n - ir, t.month, t.day);
967
987
  }
968
988
  toJulianDay(e) {
969
989
  return super.toJulianDay(Ce(e));
@@ -983,15 +1003,15 @@ class Vr extends $ {
983
1003
  }
984
1004
  }
985
1005
  function Ce(r) {
986
- let [e, t] = j(r.year + or);
1006
+ let [e, t] = X(r.year + ir);
987
1007
  return new s(e, t, r.month, r.day);
988
1008
  }
989
- const Z = 1911;
990
- function ir(r) {
991
- return r.era === "minguo" ? r.year + Z : 1 - r.year + Z;
1009
+ const V = 1911;
1010
+ function fr(r) {
1011
+ return r.era === "minguo" ? r.year + V : 1 - r.year + V;
992
1012
  }
993
- function Ie(r) {
994
- let e = r - Z;
1013
+ function Se(r) {
1014
+ let e = r - V;
995
1015
  return e > 0 ? [
996
1016
  "minguo",
997
1017
  e
@@ -1000,9 +1020,9 @@ function Ie(r) {
1000
1020
  1 - e
1001
1021
  ];
1002
1022
  }
1003
- class Wr extends $ {
1023
+ class jr extends $ {
1004
1024
  fromJulianDay(e) {
1005
- let t = super.fromJulianDay(e), n = Q(t.era, t.year), [a, o] = Ie(n);
1025
+ let t = super.fromJulianDay(e), n = _(t.era, t.year), [a, o] = Se(n);
1006
1026
  return new s(this, a, o, t.month, t.day);
1007
1027
  }
1008
1028
  toJulianDay(e) {
@@ -1015,7 +1035,7 @@ class Wr extends $ {
1015
1035
  ];
1016
1036
  }
1017
1037
  balanceDate(e) {
1018
- let [t, n] = Ie(ir(e));
1038
+ let [t, n] = Se(fr(e));
1019
1039
  e.era = t, e.year = n;
1020
1040
  }
1021
1041
  isInverseEra(e) {
@@ -1025,17 +1045,17 @@ class Wr extends $ {
1025
1045
  return super.getDaysInMonth(Ye(e));
1026
1046
  }
1027
1047
  getYearsInEra(e) {
1028
- return e.era === "before_minguo" ? 9999 : 9999 - Z;
1048
+ return e.era === "before_minguo" ? 9999 : 9999 - V;
1029
1049
  }
1030
1050
  constructor(...e) {
1031
1051
  super(...e), this.identifier = "roc";
1032
1052
  }
1033
1053
  }
1034
1054
  function Ye(r) {
1035
- let [e, t] = j(ir(r));
1055
+ let [e, t] = X(fr(r));
1036
1056
  return new s(e, t, r.month, r.day);
1037
1057
  }
1038
- const Se = 1948320, Be = [
1058
+ const Be = 1948320, Te = [
1039
1059
  0,
1040
1060
  31,
1041
1061
  62,
@@ -1050,20 +1070,20 @@ const Se = 1948320, Be = [
1050
1070
  336
1051
1071
  // Esfand
1052
1072
  ];
1053
- class Kr {
1073
+ class Xr {
1054
1074
  fromJulianDay(e) {
1055
- let t = e - Se, n = 1 + Math.floor((33 * t + 3) / 12053), a = 365 * (n - 1) + Math.floor((8 * n + 21) / 33), o = t - a, i = o < 216 ? Math.floor(o / 31) : Math.floor((o - 6) / 30), f = o - Be[i] + 1;
1075
+ let t = e - Be, n = 1 + Math.floor((33 * t + 3) / 12053), a = 365 * (n - 1) + Math.floor((8 * n + 21) / 33), o = t - a, i = o < 216 ? Math.floor(o / 31) : Math.floor((o - 6) / 30), f = o - Te[i] + 1;
1056
1076
  return new s(this, n, i + 1, f);
1057
1077
  }
1058
1078
  toJulianDay(e) {
1059
- let t = Se - 1 + 365 * (e.year - 1) + Math.floor((8 * e.year + 21) / 33);
1060
- return t += Be[e.month - 1], t += e.day, t;
1079
+ let t = Be - 1 + 365 * (e.year - 1) + Math.floor((8 * e.year + 21) / 33);
1080
+ return t += Te[e.month - 1], t += e.day, t;
1061
1081
  }
1062
1082
  getMonthsInYear() {
1063
1083
  return 12;
1064
1084
  }
1065
1085
  getDaysInMonth(e) {
1066
- return e.month <= 6 ? 31 : e.month <= 11 || I(25 * e.year + 11, 33) < 8 ? 30 : 29;
1086
+ return e.month <= 6 ? 31 : e.month <= 11 || S(25 * e.year + 11, 33) < 8 ? 30 : 29;
1067
1087
  }
1068
1088
  getEras() {
1069
1089
  return [
@@ -1077,11 +1097,11 @@ class Kr {
1077
1097
  this.identifier = "persian";
1078
1098
  }
1079
1099
  }
1080
- const te = 78, Te = 80;
1081
- class Gr extends $ {
1100
+ const ne = 78, Re = 80;
1101
+ class zr extends $ {
1082
1102
  fromJulianDay(e) {
1083
- let t = super.fromJulianDay(e), n = t.year - te, a = e - w(t.era, t.year, 1, 1), o;
1084
- a < Te ? (n--, o = M(t.year - 1) ? 31 : 30, a += o + 155 + 90 + 10) : (o = M(t.year) ? 31 : 30, a -= Te);
1103
+ let t = super.fromJulianDay(e), n = t.year - ne, a = e - v(t.era, t.year, 1, 1), o;
1104
+ a < Re ? (n--, o = D(t.year - 1) ? 31 : 30, a += o + 155 + 90 + 10) : (o = D(t.year) ? 31 : 30, a -= Re);
1085
1105
  let i, f;
1086
1106
  if (a < o)
1087
1107
  i = 1, f = a + 1;
@@ -1092,11 +1112,11 @@ class Gr extends $ {
1092
1112
  return new s(this, n, i, f);
1093
1113
  }
1094
1114
  toJulianDay(e) {
1095
- let t = e.year + te, [n, a] = j(t), o, i;
1096
- return M(a) ? (o = 31, i = w(n, a, 3, 21)) : (o = 30, i = w(n, a, 3, 22)), e.month === 1 ? i + e.day - 1 : (i += o + Math.min(e.month - 2, 5) * 31, e.month >= 8 && (i += (e.month - 7) * 30), i += e.day - 1, i);
1115
+ let t = e.year + ne, [n, a] = X(t), o, i;
1116
+ return D(a) ? (o = 31, i = v(n, a, 3, 21)) : (o = 30, i = v(n, a, 3, 22)), e.month === 1 ? i + e.day - 1 : (i += o + Math.min(e.month - 2, 5) * 31, e.month >= 8 && (i += (e.month - 7) * 30), i += e.day - 1, i);
1097
1117
  }
1098
1118
  getDaysInMonth(e) {
1099
- return e.month === 1 && M(e.year + te) || e.month >= 2 && e.month <= 6 ? 31 : 30;
1119
+ return e.month === 1 && D(e.year + ne) || e.month >= 2 && e.month <= 6 ? 31 : 30;
1100
1120
  }
1101
1121
  getYearsInEra() {
1102
1122
  return 9919;
@@ -1112,23 +1132,23 @@ class Gr extends $ {
1112
1132
  super(...e), this.identifier = "indian";
1113
1133
  }
1114
1134
  }
1115
- const V = 1948440, Ue = 1948439, u = 1300, C = 1600, jr = 460322;
1116
- function W(r, e, t, n) {
1135
+ const W = 1948440, Ue = 1948439, u = 1300, C = 1600, et = 460322;
1136
+ function K(r, e, t, n) {
1117
1137
  return n + Math.ceil(29.5 * (t - 1)) + (e - 1) * 354 + Math.floor((3 + 11 * e) / 30) + r - 1;
1118
1138
  }
1119
- function fr(r, e, t) {
1120
- 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;
1139
+ function cr(r, e, t) {
1140
+ let n = Math.floor((30 * (t - e) + 10646) / 10631), a = Math.min(12, Math.ceil((t - (29 + K(e, n, 1, 1))) / 29.5) + 1), o = t - K(e, n, a, 1) + 1;
1121
1141
  return new s(r, n, a, o);
1122
1142
  }
1123
1143
  function Je(r) {
1124
1144
  return (14 + 11 * r) % 30 < 11;
1125
1145
  }
1126
- class be {
1146
+ class ge {
1127
1147
  fromJulianDay(e) {
1128
- return fr(this, V, e);
1148
+ return cr(this, W, e);
1129
1149
  }
1130
1150
  toJulianDay(e) {
1131
- return W(V, e.year, e.month, e.day);
1151
+ return K(W, e.year, e.month, e.day);
1132
1152
  }
1133
1153
  getDaysInMonth(e) {
1134
1154
  let t = 29 + e.month % 2;
@@ -1152,43 +1172,43 @@ class be {
1152
1172
  this.identifier = "islamic-civil";
1153
1173
  }
1154
1174
  }
1155
- class Xr extends be {
1175
+ class rt extends ge {
1156
1176
  fromJulianDay(e) {
1157
- return fr(this, Ue, e);
1177
+ return cr(this, Ue, e);
1158
1178
  }
1159
1179
  toJulianDay(e) {
1160
- return W(Ue, e.year, e.month, e.day);
1180
+ return K(Ue, e.year, e.month, e.day);
1161
1181
  }
1162
1182
  constructor(...e) {
1163
1183
  super(...e), this.identifier = "islamic-tbla";
1164
1184
  }
1165
1185
  }
1166
- const zr = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
1167
- let se, S;
1168
- function q(r) {
1169
- return jr + S[r - u];
1186
+ const tt = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
1187
+ let le, B;
1188
+ function H(r) {
1189
+ return et + B[r - u];
1170
1190
  }
1171
1191
  function J(r, e) {
1172
1192
  let t = r - u, n = 1 << 11 - (e - 1);
1173
- return se[t] & n ? 30 : 29;
1193
+ return (le[t] & n) === 0 ? 29 : 30;
1174
1194
  }
1175
- function Re(r, e) {
1176
- let t = q(r);
1195
+ function Le(r, e) {
1196
+ let t = H(r);
1177
1197
  for (let n = 1; n < e; n++) t += J(r, n);
1178
1198
  return t;
1179
1199
  }
1180
- function Le(r) {
1181
- return S[r + 1 - u] - S[r - u];
1200
+ function ke(r) {
1201
+ return B[r + 1 - u] - B[r - u];
1182
1202
  }
1183
- class et extends be {
1203
+ class nt extends ge {
1184
1204
  fromJulianDay(e) {
1185
- let t = e - V, n = q(u), a = q(C);
1205
+ let t = e - W, n = H(u), a = H(C);
1186
1206
  if (t < n || t > a) return super.fromJulianDay(e);
1187
1207
  {
1188
1208
  let o = u - 1, i = 1, f = 1;
1189
1209
  for (; f > 0; ) {
1190
- o++, f = t - q(o) + 1;
1191
- let c = Le(o);
1210
+ o++, f = t - H(o) + 1;
1211
+ let c = ke(o);
1192
1212
  if (f === c) {
1193
1213
  i = 12;
1194
1214
  break;
@@ -1199,88 +1219,90 @@ class et extends be {
1199
1219
  break;
1200
1220
  }
1201
1221
  }
1202
- return new s(this, o, i, t - Re(o, i) + 1);
1222
+ return new s(this, o, i, t - Le(o, i) + 1);
1203
1223
  }
1204
1224
  }
1205
1225
  toJulianDay(e) {
1206
- return e.year < u || e.year > C ? super.toJulianDay(e) : V + Re(e.year, e.month) + (e.day - 1);
1226
+ return e.year < u || e.year > C ? super.toJulianDay(e) : W + Le(e.year, e.month) + (e.day - 1);
1207
1227
  }
1208
1228
  getDaysInMonth(e) {
1209
1229
  return e.year < u || e.year > C ? super.getDaysInMonth(e) : J(e.year, e.month);
1210
1230
  }
1211
1231
  getDaysInYear(e) {
1212
- return e.year < u || e.year > C ? super.getDaysInYear(e) : Le(e.year);
1232
+ return e.year < u || e.year > C ? super.getDaysInYear(e) : ke(e.year);
1213
1233
  }
1214
1234
  constructor() {
1215
- if (super(), this.identifier = "islamic-umalqura", se || (se = new Uint16Array(Uint8Array.from(atob(zr), (e) => e.charCodeAt(0)).buffer)), !S) {
1216
- S = new Uint32Array(C - u + 1);
1235
+ if (super(), this.identifier = "islamic-umalqura", le || (le = new Uint16Array(Uint8Array.from(atob(tt), (e) => e.charCodeAt(0)).buffer)), !B) {
1236
+ B = new Uint32Array(C - u + 1);
1217
1237
  let e = 0;
1218
1238
  for (let t = u; t <= C; t++) {
1219
- S[t - u] = e;
1239
+ B[t - u] = e;
1220
1240
  for (let n = 1; n <= 12; n++) e += J(t, n);
1221
1241
  }
1222
1242
  }
1223
1243
  }
1224
1244
  }
1225
- const ke = 347997, cr = 1080, sr = 24 * cr, rt = 29, tt = 12 * cr + 793, nt = rt * sr + tt;
1226
- function D(r) {
1227
- return I(r * 7 + 1, 19) < 7;
1245
+ const Oe = 347997, sr = 1080, lr = 24 * sr, at = 29, ot = 12 * sr + 793, it = at * lr + ot;
1246
+ function w(r) {
1247
+ return S(r * 7 + 1, 19) < 7;
1228
1248
  }
1229
- function N(r) {
1249
+ function P(r) {
1230
1250
  let e = Math.floor((235 * r - 234) / 19), t = 12084 + 13753 * e, n = e * 29 + Math.floor(t / 25920);
1231
- return I(3 * (n + 1), 7) < 3 && (n += 1), n;
1251
+ return S(3 * (n + 1), 7) < 3 && (n += 1), n;
1232
1252
  }
1233
- function at(r) {
1234
- let e = N(r - 1), t = N(r);
1235
- return N(r + 1) - t === 356 ? 2 : t - e === 382 ? 1 : 0;
1253
+ function ft(r) {
1254
+ let e = P(r - 1), t = P(r);
1255
+ return P(r + 1) - t === 356 ? 2 : t - e === 382 ? 1 : 0;
1236
1256
  }
1237
- function R(r) {
1238
- return N(r) + at(r);
1257
+ function L(r) {
1258
+ return P(r) + ft(r);
1239
1259
  }
1240
- function lr(r) {
1241
- return R(r + 1) - R(r);
1260
+ function ur(r) {
1261
+ return L(r + 1) - L(r);
1242
1262
  }
1243
- function ot(r) {
1244
- let e = lr(r);
1263
+ function ct(r) {
1264
+ let e = ur(r);
1245
1265
  switch (e > 380 && (e -= 30), e) {
1246
1266
  case 353:
1247
1267
  return 0;
1268
+ // deficient
1248
1269
  case 354:
1249
1270
  return 1;
1271
+ // normal
1250
1272
  case 355:
1251
1273
  return 2;
1252
1274
  }
1253
1275
  }
1254
- function O(r, e) {
1255
- if (e >= 6 && !D(r) && e++, e === 4 || e === 7 || e === 9 || e === 11 || e === 13) return 29;
1256
- let t = ot(r);
1257
- return e === 2 ? t === 2 ? 30 : 29 : e === 3 ? t === 0 ? 29 : 30 : e === 6 ? D(r) ? 30 : 0 : 30;
1276
+ function N(r, e) {
1277
+ if (e >= 6 && !w(r) && e++, e === 4 || e === 7 || e === 9 || e === 11 || e === 13) return 29;
1278
+ let t = ct(r);
1279
+ return e === 2 ? t === 2 ? 30 : 29 : e === 3 ? t === 0 ? 29 : 30 : e === 6 ? w(r) ? 30 : 0 : 30;
1258
1280
  }
1259
- class it {
1281
+ class st {
1260
1282
  fromJulianDay(e) {
1261
- let t = e - ke, n = t * sr / nt, a = Math.floor((19 * n + 234) / 235) + 1, o = R(a), i = Math.floor(t - o);
1283
+ let t = e - Oe, n = t * lr / it, a = Math.floor((19 * n + 234) / 235) + 1, o = L(a), i = Math.floor(t - o);
1262
1284
  for (; i < 1; )
1263
- a--, o = R(a), i = Math.floor(t - o);
1285
+ a--, o = L(a), i = Math.floor(t - o);
1264
1286
  let f = 1, c = 0;
1265
1287
  for (; c < i; )
1266
- c += O(a, f), f++;
1267
- f--, c -= O(a, f);
1288
+ c += N(a, f), f++;
1289
+ f--, c -= N(a, f);
1268
1290
  let l = i - c;
1269
1291
  return new s(this, a, f, l);
1270
1292
  }
1271
1293
  toJulianDay(e) {
1272
- let t = R(e.year);
1273
- for (let n = 1; n < e.month; n++) t += O(e.year, n);
1274
- return t + e.day + ke;
1294
+ let t = L(e.year);
1295
+ for (let n = 1; n < e.month; n++) t += N(e.year, n);
1296
+ return t + e.day + Oe;
1275
1297
  }
1276
1298
  getDaysInMonth(e) {
1277
- return O(e.year, e.month);
1299
+ return N(e.year, e.month);
1278
1300
  }
1279
1301
  getMonthsInYear(e) {
1280
- return D(e.year) ? 13 : 12;
1302
+ return w(e.year) ? 13 : 12;
1281
1303
  }
1282
1304
  getDaysInYear(e) {
1283
- return lr(e.year);
1305
+ return ur(e.year);
1284
1306
  }
1285
1307
  getYearsInEra() {
1286
1308
  return 9999;
@@ -1291,47 +1313,47 @@ class it {
1291
1313
  ];
1292
1314
  }
1293
1315
  balanceYearMonth(e, t) {
1294
- 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++);
1316
+ t.year !== e.year && (w(t.year) && !w(e.year) && t.month > 6 ? e.month-- : !w(t.year) && w(e.year) && t.month > 6 && e.month++);
1295
1317
  }
1296
1318
  constructor() {
1297
1319
  this.identifier = "hebrew";
1298
1320
  }
1299
1321
  }
1300
- const le = 1723856, Qe = 1824665, ue = 5500;
1301
- function K(r, e, t, n) {
1322
+ const ue = 1723856, Qe = 1824665, he = 5500;
1323
+ function G(r, e, t, n) {
1302
1324
  return r + 365 * e + Math.floor(e / 4) + 30 * (t - 1) + n - 1;
1303
1325
  }
1304
- function ge(r, e) {
1305
- 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);
1326
+ function Me(r, e) {
1327
+ let t = Math.floor(4 * (e - r) / 1461), n = 1 + Math.floor((e - G(r, t, 1, 1)) / 30), a = e + 1 - G(r, t, n, 1);
1306
1328
  return [
1307
1329
  t,
1308
1330
  n,
1309
1331
  a
1310
1332
  ];
1311
1333
  }
1312
- function ur(r) {
1334
+ function hr(r) {
1313
1335
  return Math.floor(r % 4 / 3);
1314
1336
  }
1315
- function hr(r, e) {
1316
- return e % 13 !== 0 ? 30 : ur(r) + 5;
1337
+ function $r(r, e) {
1338
+ return e % 13 !== 0 ? 30 : hr(r) + 5;
1317
1339
  }
1318
- class Me {
1340
+ class De {
1319
1341
  fromJulianDay(e) {
1320
- let [t, n, a] = ge(le, e), o = "AM";
1321
- return t <= 0 && (o = "AA", t += ue), new s(this, o, t, n, a);
1342
+ let [t, n, a] = Me(ue, e), o = "AM";
1343
+ return t <= 0 && (o = "AA", t += he), new s(this, o, t, n, a);
1322
1344
  }
1323
1345
  toJulianDay(e) {
1324
1346
  let t = e.year;
1325
- return e.era === "AA" && (t -= ue), K(le, t, e.month, e.day);
1347
+ return e.era === "AA" && (t -= he), G(ue, t, e.month, e.day);
1326
1348
  }
1327
1349
  getDaysInMonth(e) {
1328
- return hr(e.year, e.month);
1350
+ return $r(e.year, e.month);
1329
1351
  }
1330
1352
  getMonthsInYear() {
1331
1353
  return 13;
1332
1354
  }
1333
1355
  getDaysInYear(e) {
1334
- return 365 + ur(e.year);
1356
+ return 365 + hr(e.year);
1335
1357
  }
1336
1358
  getYearsInEra(e) {
1337
1359
  return e.era === "AA" ? 9999 : 9991;
@@ -1346,10 +1368,10 @@ class Me {
1346
1368
  this.identifier = "ethiopic";
1347
1369
  }
1348
1370
  }
1349
- class ft extends Me {
1371
+ class lt extends De {
1350
1372
  fromJulianDay(e) {
1351
- let [t, n, a] = ge(le, e);
1352
- return t += ue, new s(this, "AA", t, n, a);
1373
+ let [t, n, a] = Me(ue, e);
1374
+ return t += he, new s(this, "AA", t, n, a);
1353
1375
  }
1354
1376
  getEras() {
1355
1377
  return [
@@ -1363,18 +1385,18 @@ class ft extends Me {
1363
1385
  super(...e), this.identifier = "ethioaa";
1364
1386
  }
1365
1387
  }
1366
- class ct extends Me {
1388
+ class ut extends De {
1367
1389
  fromJulianDay(e) {
1368
- let [t, n, a] = ge(Qe, e), o = "CE";
1390
+ let [t, n, a] = Me(Qe, e), o = "CE";
1369
1391
  return t <= 0 && (o = "BCE", t = 1 - t), new s(this, o, t, n, a);
1370
1392
  }
1371
1393
  toJulianDay(e) {
1372
1394
  let t = e.year;
1373
- return e.era === "BCE" && (t = 1 - t), K(Qe, t, e.month, e.day);
1395
+ return e.era === "BCE" && (t = 1 - t), G(Qe, t, e.month, e.day);
1374
1396
  }
1375
1397
  getDaysInMonth(e) {
1376
1398
  let t = e.year;
1377
- return e.era === "BCE" && (t = 1 - t), hr(t, e.month);
1399
+ return e.era === "BCE" && (t = 1 - t), $r(t, e.month);
1378
1400
  }
1379
1401
  isInverseEra(e) {
1380
1402
  return e.era === "BCE";
@@ -1395,39 +1417,39 @@ class ct extends Me {
1395
1417
  super(...e), this.identifier = "coptic";
1396
1418
  }
1397
1419
  }
1398
- function Yt(r) {
1420
+ function Ut(r) {
1399
1421
  switch (r) {
1400
1422
  case "buddhist":
1401
- return new Vr();
1423
+ return new Gr();
1402
1424
  case "ethiopic":
1403
- return new Me();
1425
+ return new De();
1404
1426
  case "ethioaa":
1405
- return new ft();
1427
+ return new lt();
1406
1428
  case "coptic":
1407
- return new ct();
1429
+ return new ut();
1408
1430
  case "hebrew":
1409
- return new it();
1431
+ return new st();
1410
1432
  case "indian":
1411
- return new Gr();
1433
+ return new zr();
1412
1434
  case "islamic-civil":
1413
- return new be();
1435
+ return new ge();
1414
1436
  case "islamic-tbla":
1415
- return new Xr();
1437
+ return new rt();
1416
1438
  case "islamic-umalqura":
1417
- return new et();
1439
+ return new nt();
1418
1440
  case "japanese":
1419
- return new Zr();
1420
- case "persian":
1421
1441
  return new Kr();
1442
+ case "persian":
1443
+ return new Xr();
1422
1444
  case "roc":
1423
- return new Wr();
1445
+ return new jr();
1424
1446
  case "gregory":
1425
1447
  default:
1426
1448
  return new $();
1427
1449
  }
1428
1450
  }
1429
- let ne = /* @__PURE__ */ new Map();
1430
- class st {
1451
+ let ae = /* @__PURE__ */ new Map();
1452
+ class ht {
1431
1453
  /** Formats a date as a string according to the locale and format options passed to the constructor. */
1432
1454
  format(e) {
1433
1455
  return this.formatter.format(e);
@@ -1468,50 +1490,50 @@ class st {
1468
1490
  /** Returns the resolved formatting options based on the values passed to the constructor. */
1469
1491
  resolvedOptions() {
1470
1492
  let e = this.formatter.resolvedOptions();
1471
- return ht() && (this.resolvedHourCycle || (this.resolvedHourCycle = $t(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;
1493
+ return yt() && (this.resolvedHourCycle || (this.resolvedHourCycle = mt(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;
1472
1494
  }
1473
1495
  constructor(e, t = {}) {
1474
- this.formatter = $r(e, t), this.options = t;
1496
+ this.formatter = dr(e, t), this.options = t;
1475
1497
  }
1476
1498
  }
1477
- const lt = {
1499
+ const $t = {
1478
1500
  true: {
1479
1501
  // Only Japanese uses the h11 style for 12 hour time. All others use h12.
1480
1502
  ja: "h11"
1481
1503
  },
1482
1504
  false: {}
1483
1505
  };
1484
- function $r(r, e = {}) {
1485
- if (typeof e.hour12 == "boolean" && ut()) {
1506
+ function dr(r, e = {}) {
1507
+ if (typeof e.hour12 == "boolean" && dt()) {
1486
1508
  e = {
1487
1509
  ...e
1488
1510
  };
1489
- let a = lt[String(e.hour12)][r.split("-")[0]], o = e.hour12 ? "h12" : "h23";
1511
+ let a = $t[String(e.hour12)][r.split("-")[0]], o = e.hour12 ? "h12" : "h23";
1490
1512
  e.hourCycle = a ?? o, delete e.hour12;
1491
1513
  }
1492
1514
  let t = r + (e ? Object.entries(e).sort((a, o) => a[0] < o[0] ? -1 : 1).join() : "");
1493
- if (ne.has(t)) return ne.get(t);
1515
+ if (ae.has(t)) return ae.get(t);
1494
1516
  let n = new Intl.DateTimeFormat(r, e);
1495
- return ne.set(t, n), n;
1517
+ return ae.set(t, n), n;
1496
1518
  }
1497
- let ae = null;
1498
- function ut() {
1499
- return ae == null && (ae = new Intl.DateTimeFormat("en-US", {
1519
+ let oe = null;
1520
+ function dt() {
1521
+ return oe == null && (oe = new Intl.DateTimeFormat("en-US", {
1500
1522
  hour: "numeric",
1501
1523
  hour12: !1
1502
- }).format(new Date(2020, 2, 3, 0)) === "24"), ae;
1524
+ }).format(new Date(2020, 2, 3, 0)) === "24"), oe;
1503
1525
  }
1504
- let oe = null;
1505
- function ht() {
1506
- return oe == null && (oe = new Intl.DateTimeFormat("fr", {
1526
+ let ie = null;
1527
+ function yt() {
1528
+ return ie == null && (ie = new Intl.DateTimeFormat("fr", {
1507
1529
  hour: "numeric",
1508
1530
  hour12: !1
1509
- }).resolvedOptions().hourCycle === "h12"), oe;
1531
+ }).resolvedOptions().hourCycle === "h12"), ie;
1510
1532
  }
1511
- function $t(r, e) {
1533
+ function mt(r, e) {
1512
1534
  if (!e.timeStyle && !e.hour) return;
1513
1535
  r = r.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, ""), r += (r.includes("-u-") ? "" : "-u") + "-nu-latn";
1514
- let t = $r(r, {
1536
+ let t = dr(r, {
1515
1537
  ...e,
1516
1538
  timeZone: void 0
1517
1539
  // use local timezone
@@ -1522,15 +1544,15 @@ function $t(r, e) {
1522
1544
  if (n === 12 && a === 11) return "h12";
1523
1545
  throw new Error("Unexpected hour cycle result");
1524
1546
  }
1525
- function St(r) {
1526
- r = gr(r ?? {}, dt);
1527
- let { locale: e } = yr();
1528
- return br(() => new st(e, r), [
1547
+ function Jt(r) {
1548
+ r = Mr(r ?? {}, bt);
1549
+ let { locale: e } = mr();
1550
+ return gr(() => new ht(e, r), [
1529
1551
  e,
1530
1552
  r
1531
1553
  ]);
1532
1554
  }
1533
- function dt(r, e) {
1555
+ function bt(r, e) {
1534
1556
  if (r === e) return !0;
1535
1557
  let t = Object.keys(r), n = Object.keys(e);
1536
1558
  if (t.length !== n.length) return !1;
@@ -1539,33 +1561,35 @@ function dt(r, e) {
1539
1561
  return !0;
1540
1562
  }
1541
1563
  export {
1542
- st as $,
1543
- At as A,
1544
- vt as B,
1545
- T as a,
1564
+ ht as $,
1565
+ xt as A,
1566
+ It as B,
1567
+ Rt as C,
1568
+ Tt as D,
1569
+ R as a,
1546
1570
  Yr as b,
1547
- St as c,
1548
- Oe as d,
1549
- H as e,
1550
- Dt as f,
1551
- Ar as g,
1552
- vr as h,
1553
- xt as i,
1554
- gr as j,
1555
- Mt as k,
1556
- pt as l,
1557
- It as m,
1558
- Ct as n,
1559
- wt as o,
1571
+ Jt as c,
1572
+ Fe as d,
1573
+ Z as e,
1574
+ At as f,
1575
+ Er as g,
1576
+ Ar as h,
1577
+ St as i,
1578
+ Mr as j,
1579
+ wt as k,
1580
+ vt as l,
1581
+ Bt as m,
1582
+ Yt as n,
1583
+ Et as o,
1560
1584
  h as p,
1561
- _e as q,
1585
+ Ne as q,
1562
1586
  qe as r,
1563
- Et as s,
1587
+ Ct as s,
1564
1588
  $ as t,
1565
- Yt as u,
1566
- gt as v,
1567
- Pe as w,
1589
+ Ut as u,
1590
+ pt as v,
1591
+ Ze as w,
1568
1592
  s as x,
1569
- wr as y,
1570
- ar as z
1593
+ vr as y,
1594
+ or as z
1571
1595
  };