@midas-ds/components 10.1.1 → 10.3.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 (383) hide show
  1. package/AccordionItem-BGWiWjxA.cjs +1 -0
  2. package/AccordionItem-ChHpW8EW.js +320 -0
  3. package/BadgeContainer-DM8TdyMT.js +37 -0
  4. package/BadgeContainer-I1XA3OCl.cjs +1 -0
  5. package/Breadcrumbs-CwDUNIqF.js +250 -0
  6. package/Breadcrumbs-DtjJ1UmU.cjs +1 -0
  7. package/Button-BoJl6JGM.cjs +1 -0
  8. package/Button-Csih3v23.js +38 -0
  9. package/Button-DjBChs7s.js +340 -0
  10. package/Button-htW9qIsS.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/ButtonGroup-DUqW5dzM.cjs +1 -0
  14. package/ButtonGroup-DvVvear6.js +22 -0
  15. package/CHANGELOG.md +68 -0
  16. package/Card-0G0mj9q5.cjs +1 -0
  17. package/Card-yrtGzt70.js +131 -0
  18. package/CharacterCounter-BL_nZHya.js +22 -0
  19. package/CharacterCounter-CHcTDHO-.cjs +1 -0
  20. package/Checkbox-5HINZdGu.js +263 -0
  21. package/Checkbox-DqcPg5hz.cjs +1 -0
  22. package/CheckboxGroup-BBrSMuDY.cjs +1 -0
  23. package/CheckboxGroup-CLgixk2p.js +243 -0
  24. package/Collection-BIDsXNhi.cjs +1 -0
  25. package/Collection-Brgjpkne.js +576 -0
  26. package/ColorSchemeSwitch-BpzQ7g0b.js +106 -0
  27. package/ColorSchemeSwitch-C-qWuqkU.cjs +16 -0
  28. package/ComboBox-CVDyp2a-.js +1379 -0
  29. package/ComboBox-CWJUg9Xx.cjs +1 -0
  30. package/DateField-DeDhiYnW.cjs +1 -0
  31. package/DateField-DhU3q-rG.js +47 -0
  32. package/DateInputDivider-ADvOavHw.cjs +1 -0
  33. package/DateInputDivider-CF4xWsMT.js +2904 -0
  34. package/DateRangePicker-BsAHhy99.cjs +6 -0
  35. package/DateRangePicker-ziD1_k1W.js +881 -0
  36. package/Dialog-B8GTYbvu.cjs +1 -0
  37. package/Dialog-BOrYdX50.cjs +1 -0
  38. package/Dialog-CXNu48AC.js +208 -0
  39. package/Dialog-D14MbJ7o.js +1633 -0
  40. package/DragAndDrop-DNth776R.cjs +1 -0
  41. package/DragAndDrop-o3ruz_SR.js +60 -0
  42. package/Dropdown-CJ6My6EI.cjs +6 -0
  43. package/Dropdown-Df58j43I.js +84 -0
  44. package/FieldError-CAcjosk_.js +46 -0
  45. package/FieldError-CKBb2-mp.cjs +1 -0
  46. package/FileUpload-CxCOtyB9.cjs +2 -0
  47. package/FileUpload-D6qoEAjn.js +2373 -0
  48. package/FocusScope-5c9SVBcR.cjs +1 -0
  49. package/FocusScope-CxkURfoc.js +625 -0
  50. package/Form-BuOomA4T.cjs +1 -0
  51. package/Form-CXcEMuBf.js +5 -0
  52. package/Grid--OhtgCo6.js +27 -0
  53. package/Grid-DVQtOcu9.cjs +1 -0
  54. package/GridItem-DlbSdRmB.js +246 -0
  55. package/GridItem-XgHmZWXY.cjs +1 -0
  56. package/Group-B6EslsHZ.js +44 -0
  57. package/Group-CgiqQHH1.cjs +1 -0
  58. package/Heading-BFtiin0g.js +46 -0
  59. package/Heading-mHhCbGjY.cjs +1 -0
  60. package/Hidden-BxRZGdEW.cjs +1 -0
  61. package/Hidden-C9KWUR7b.js +34 -0
  62. package/InfoBanner-BLM-TJJ6.js +83 -0
  63. package/InfoBanner-C2kTIsrB.cjs +1 -0
  64. package/Input-BTzwcf72.js +41 -0
  65. package/Input-DKSAYvsw.cjs +1 -0
  66. package/Label-7Ybb99CE.cjs +1 -0
  67. package/Label-BwJrdqEE.js +70 -0
  68. package/Layout-1g6bMH62.cjs +16 -0
  69. package/Layout-Ey8flY7E.js +468 -0
  70. package/Link-B88l_oaE.cjs +6 -0
  71. package/Link-BQhauBuw.cjs +1 -0
  72. package/Link-DX5BbBnn.js +59 -0
  73. package/Link-yNO2-sqx.js +71 -0
  74. package/LinkButton-CBpGLETx.cjs +6 -0
  75. package/LinkButton-o6uS1XsR.js +69 -0
  76. package/ListBox-DP9M4H6R.cjs +1 -0
  77. package/ListBox-GnVK_Pdq.js +529 -0
  78. package/ListBoxButton-DPBrtXyv.cjs +1 -0
  79. package/ListBoxButton-D_J3jlP0.js +15 -0
  80. package/ListBoxSection-BGaigBnG.cjs +1 -0
  81. package/ListBoxSection-C0BGnpB4.js +1058 -0
  82. package/ListKeyboardDelegate-DNI8GQtX.js +167 -0
  83. package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
  84. package/Logo-BIrOEINM.js +133 -0
  85. package/Logo-DT2_2O43.cjs +1 -0
  86. package/OverlayArrow-CDLXPTew.js +506 -0
  87. package/OverlayArrow-D75k-EMl.cjs +1 -0
  88. package/Popover-BGGXeD54.js +38 -0
  89. package/Popover-CqNWzPf-.cjs +1 -0
  90. package/ProgressBar-DMSg-Prr.js +53 -0
  91. package/ProgressBar-Jbg28j2a.cjs +1 -0
  92. package/RSPContexts-BW2SEIqe.js +11 -0
  93. package/RSPContexts-D8hmBfGm.cjs +1 -0
  94. package/Radio-BwqrdhQE.cjs +1 -0
  95. package/Radio-Cz29wPXd.js +311 -0
  96. package/RangeCalendar-BehUaydF.cjs +11 -0
  97. package/RangeCalendar-RAlAHlNL.js +1683 -0
  98. package/SearchField-CxMwDeUM.cjs +6 -0
  99. package/SearchField-IlvZ3Kh6.js +362 -0
  100. package/Select-2q1iSzAX.cjs +1 -0
  101. package/Select-BVQZtoi9.js +646 -0
  102. package/SelectionManager-B4ORduja.js +1032 -0
  103. package/SelectionManager-CwYux2h3.cjs +1 -0
  104. package/Separator-Cu9fYKUM.js +59 -0
  105. package/Separator-DECIYLtZ.cjs +1 -0
  106. package/Skeleton-BAwbfKBW.cjs +1 -0
  107. package/Skeleton-BePDRmrO.js +40 -0
  108. package/Spinner-D31SXm-U.js +41 -0
  109. package/Spinner-P35rvvsl.cjs +6 -0
  110. package/Table-B40CGLT-.cjs +16 -0
  111. package/Table-F4oYBtUM.js +2447 -0
  112. package/Tabs-B4oZJkZG.js +404 -0
  113. package/Tabs-DA2qXhzb.cjs +1 -0
  114. package/Tag-DPAGmcMK.cjs +1 -0
  115. package/Tag-Du7GvSv2.js +745 -0
  116. package/Text-3MNwRMpI.cjs +1 -0
  117. package/Text-B2K-BJKQ.cjs +1 -0
  118. package/Text-BoXuUVVH.js +15 -0
  119. package/Text-jWWg0B20.js +32 -0
  120. package/TextArea-C7JZ_pQd.cjs +1 -0
  121. package/TextArea-XeBCSyzl.js +191 -0
  122. package/TextField-BgNdhZi_.cjs +1 -0
  123. package/TextField-C-hTPukq.js +119 -0
  124. package/TextField.module-BcpPBWnD.js +13 -0
  125. package/TextField.module-Dw5Rtn9y.cjs +1 -0
  126. package/Toast-AbDA1BOs.cjs +1 -0
  127. package/Toast-Btg21Xge.js +989 -0
  128. package/ToggleButtonGroup-B5yz1tm2.js +210 -0
  129. package/ToggleButtonGroup-BFDoj0P6.cjs +1 -0
  130. package/Tooltip-CMLs7WMw.js +283 -0
  131. package/Tooltip-DeBuBKhS.cjs +1 -0
  132. package/VisuallyHidden-CLWHbz2n.cjs +1 -0
  133. package/VisuallyHidden-ZCYf65q4.js +40 -0
  134. package/accordion/index.cjs +1 -0
  135. package/accordion/index.js +5 -0
  136. package/arrow-right-Dg8sttFO.js +14 -0
  137. package/arrow-right-QJ2gXPKQ.cjs +6 -0
  138. package/assets/AccordionItem.css +1 -0
  139. package/assets/BadgeContainer.css +1 -0
  140. package/assets/Breadcrumbs.css +1 -0
  141. package/assets/Button.css +1 -0
  142. package/assets/ButtonGroup.css +1 -0
  143. package/assets/Card.css +1 -0
  144. package/assets/CharacterCounter.css +1 -0
  145. package/assets/Checkbox.css +1 -0
  146. package/assets/ColorSchemeSwitch.css +1 -0
  147. package/assets/ComboBox.css +1 -0
  148. package/assets/DateField.css +1 -0
  149. package/assets/DateInputDivider.css +1 -0
  150. package/assets/DateRangePicker.css +1 -0
  151. package/assets/Dialog.css +1 -0
  152. package/assets/Dropdown.css +1 -0
  153. package/assets/FieldError.css +1 -0
  154. package/assets/FileUpload.css +1 -0
  155. package/assets/GridItem.css +1 -0
  156. package/assets/Heading.css +1 -0
  157. package/assets/InfoBanner.css +1 -0
  158. package/assets/Label.css +1 -0
  159. package/assets/Layout.css +1 -0
  160. package/assets/Link.css +1 -0
  161. package/assets/LinkButton.css +1 -0
  162. package/assets/ListBoxSection.css +1 -0
  163. package/assets/Logo.css +1 -0
  164. package/assets/Popover.css +1 -0
  165. package/assets/ProgressBar.css +1 -0
  166. package/assets/Radio.css +1 -0
  167. package/assets/RangeCalendar.css +1 -0
  168. package/assets/SearchField.css +1 -0
  169. package/assets/Select.css +1 -0
  170. package/assets/Skeleton.css +1 -0
  171. package/assets/Spinner.css +1 -0
  172. package/assets/Table.css +1 -0
  173. package/assets/Tabs.css +1 -0
  174. package/assets/Tag.css +1 -0
  175. package/assets/Text.css +1 -0
  176. package/assets/TextField.css +1 -0
  177. package/assets/Toast.css +1 -0
  178. package/assets/ToggleButtonGroup.css +1 -0
  179. package/assets/Tooltip.css +1 -0
  180. package/badge/index.cjs +1 -0
  181. package/badge/index.js +5 -0
  182. package/breadcrumbs/index.cjs +1 -0
  183. package/breadcrumbs/index.js +4 -0
  184. package/button/index.cjs +1 -0
  185. package/button/index.js +6 -0
  186. package/calendar/CalendarHeader.d.ts +2 -1
  187. package/calendar/index.cjs +1 -0
  188. package/calendar/index.js +5 -0
  189. package/card/index.cjs +1 -0
  190. package/card/index.js +10 -0
  191. package/character-counter/index.cjs +1 -0
  192. package/character-counter/index.js +4 -0
  193. package/check-CLF6Yxza.js +11 -0
  194. package/check-D_KoootC.cjs +6 -0
  195. package/checkbox/Checkbox.d.ts +2 -2
  196. package/checkbox/CheckboxGroup.d.ts +8 -8
  197. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  198. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  199. package/checkbox/CheckboxInner.d.ts +2 -0
  200. package/checkbox/SingleCheckbox.d.ts +3 -0
  201. package/checkbox/context.d.ts +3 -0
  202. package/checkbox/index.cjs +1 -0
  203. package/checkbox/index.d.ts +2 -1
  204. package/checkbox/index.js +6 -0
  205. package/checkbox/intl/translations.json.d.ts +35 -0
  206. package/checkbox/types.d.ts +14 -0
  207. package/checkbox/useSelectAll.d.ts +7 -0
  208. package/chevron-down-Cd1bkzXT.js +13 -0
  209. package/chevron-down-jl83cllc.cjs +6 -0
  210. package/circle-check-B9HYcH7Z.js +26 -0
  211. package/circle-check-BGo8gML8.cjs +11 -0
  212. package/clsx-C11secjj.cjs +1 -0
  213. package/clsx-OuTLNxxd.js +16 -0
  214. package/color-scheme-switch/index.cjs +1 -0
  215. package/color-scheme-switch/index.js +4 -0
  216. package/combobox/ComboBox.d.ts +3 -1
  217. package/combobox/index.cjs +1 -0
  218. package/combobox/index.js +7 -0
  219. package/common/types.d.ts +2 -0
  220. package/context-C81gPYvC.js +80 -0
  221. package/context-DjwhtgxQ.cjs +1 -0
  222. package/createLucideIcon-Cg_wkoIA.cjs +21 -0
  223. package/createLucideIcon-DeWljiyi.js +79 -0
  224. package/date-field/DateField.d.ts +3 -0
  225. package/date-field/index.cjs +1 -0
  226. package/date-field/index.js +8 -0
  227. package/date-picker/DatePicker.d.ts +3 -0
  228. package/date-picker/DateRangePicker.d.ts +3 -0
  229. package/date-picker/index.cjs +1 -0
  230. package/date-picker/index.js +5 -0
  231. package/dropdown/index.cjs +1 -0
  232. package/dropdown/index.js +5 -0
  233. package/field-error/FieldError.d.ts +4 -1
  234. package/field-error/index.cjs +1 -0
  235. package/field-error/index.js +4 -0
  236. package/file-upload/FileUpload.d.ts +3 -0
  237. package/file-upload/index.cjs +1 -0
  238. package/file-upload/index.js +4 -0
  239. package/filterDOMProps-BS2lrgFA.cjs +1 -0
  240. package/filterDOMProps-D6KHYVBX.js +24 -0
  241. package/getScrollParent-BhFcYrwL.js +9 -0
  242. package/getScrollParent-DDJu9WHU.cjs +1 -0
  243. package/grid/Grid.d.ts +15 -4
  244. package/grid/GridItem.d.ts +31 -2
  245. package/grid/index.cjs +1 -0
  246. package/grid/index.d.ts +2 -2
  247. package/grid/index.js +8 -0
  248. package/heading/index.cjs +1 -0
  249. package/heading/index.js +4 -0
  250. package/index-CGRFP4CC.js +120 -0
  251. package/index-Dsz3aiWt.cjs +17 -0
  252. package/index.cjs +1 -169
  253. package/index.d.ts +1 -1
  254. package/index.js +129 -29979
  255. package/inertValue-B3AFhVG4.cjs +1 -0
  256. package/inertValue-B7loUihk.js +8 -0
  257. package/info-BZwphdye.js +15 -0
  258. package/info-CIEIENo6.cjs +6 -0
  259. package/info-banner/index.cjs +1 -0
  260. package/info-banner/index.js +4 -0
  261. package/label/InfoPopover.d.ts +9 -0
  262. package/label/LabelWrapper.d.ts +11 -0
  263. package/label/index.cjs +1 -0
  264. package/label/index.d.ts +1 -0
  265. package/label/index.js +4 -0
  266. package/layout/index.cjs +1 -0
  267. package/layout/index.js +8 -0
  268. package/link/index.cjs +1 -0
  269. package/link/index.js +6 -0
  270. package/link-button/index.cjs +1 -0
  271. package/link-button/index.js +6 -0
  272. package/list-box/index.cjs +1 -0
  273. package/list-box/index.js +9 -0
  274. package/logo/index.cjs +1 -0
  275. package/logo/index.js +4 -0
  276. package/modal/index.cjs +1 -0
  277. package/modal/index.js +6 -0
  278. package/number-BE8InLgI.js +6 -0
  279. package/number-E0x3H9cL.cjs +1 -0
  280. package/package.json +4 -4
  281. package/popover/Popover.d.ts +7 -0
  282. package/popover/index.cjs +1 -0
  283. package/popover/index.d.ts +1 -0
  284. package/popover/index.js +4 -0
  285. package/progress-bar/index.cjs +1 -0
  286. package/progress-bar/index.js +4 -0
  287. package/radio/Radio.d.ts +3 -0
  288. package/radio/index.cjs +1 -0
  289. package/radio/index.js +5 -0
  290. package/scrollIntoView-C8doLzDd.cjs +1 -0
  291. package/scrollIntoView-Hwb_aaNf.js +87 -0
  292. package/search-field/index.cjs +1 -0
  293. package/search-field/index.js +4 -0
  294. package/select/index.cjs +1 -0
  295. package/select/index.js +4 -0
  296. package/skeleton/Skeleton.d.ts +5 -0
  297. package/skeleton/index.cjs +1 -0
  298. package/skeleton/index.js +4 -0
  299. package/spinner/index.cjs +1 -0
  300. package/spinner/index.js +4 -0
  301. package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
  302. package/square-arrow-out-up-right-V4Gd08uI.cjs +6 -0
  303. package/table/Table.d.ts +7 -1
  304. package/table/index.cjs +1 -0
  305. package/table/index.js +9 -0
  306. package/tabs/index.cjs +1 -0
  307. package/tabs/index.js +4 -0
  308. package/tag/index.cjs +1 -0
  309. package/tag/index.js +5 -0
  310. package/text/index.cjs +1 -0
  311. package/text/index.js +4 -0
  312. package/textfield/TextFieldBase.d.ts +2 -0
  313. package/textfield/index.cjs +1 -0
  314. package/textfield/index.js +7 -0
  315. package/theme/index.cjs +1 -0
  316. package/theme/index.d.ts +4 -0
  317. package/{theme.js → theme/index.js} +2 -2
  318. package/theme/tokens.d.ts +10 -0
  319. package/toast/index.cjs +1 -0
  320. package/toast/index.js +9 -0
  321. package/toggle-button/index.cjs +1 -0
  322. package/toggle-button/index.js +5 -0
  323. package/tokens-p6pg1Cea.cjs +1 -0
  324. package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
  325. package/tooltip/index.cjs +1 -0
  326. package/tooltip/index.js +5 -0
  327. package/triangle-alert-DJW8U7jL.cjs +6 -0
  328. package/triangle-alert-wxyxspAl.js +21 -0
  329. package/useButton-B8dB9sot.js +47 -0
  330. package/useButton-cpNi-fY4.cjs +1 -0
  331. package/useControlledState-D0L6S_5r.cjs +1 -0
  332. package/useControlledState-u436Wbp1.js +30 -0
  333. package/useDateFormatter-CnxoJ4jF.cjs +1 -0
  334. package/useDateFormatter-EHm4auIg.js +1571 -0
  335. package/useEvent-DxBxMX2V.cjs +1 -0
  336. package/useEvent-IsD2Awnh.js +21 -0
  337. package/useField-CXKYU74k.cjs +1 -0
  338. package/useField-DvpGZkw_.js +35 -0
  339. package/useFilter-BTgDWHVx.cjs +1 -0
  340. package/useFilter-CUq74PQ2.js +35 -0
  341. package/useFocusRing-CbImDrwF.cjs +1 -0
  342. package/useFocusRing-XnR3cZjO.js +82 -0
  343. package/useFocusable-C8uh8K4g.js +125 -0
  344. package/useFocusable-NUVSFcRC.cjs +1 -0
  345. package/useFormValidation-BIGzfO9h.js +215 -0
  346. package/useFormValidation-ClximP89.cjs +1 -0
  347. package/useHasTabbableChild-C-1mZUQe.js +34 -0
  348. package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
  349. package/useHighlightSelectionDescription-CnBDT86u.js +567 -0
  350. package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
  351. package/useHover-DjIHtjGN.js +490 -0
  352. package/useHover-_mv5J4_q.cjs +1 -0
  353. package/useLabels-BDwkBYbE.js +17 -0
  354. package/useLabels-BLOfc6Y-.cjs +1 -0
  355. package/useListState-Bx8u4IFG.cjs +1 -0
  356. package/useListState-CrZFZffI.js +132 -0
  357. package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
  358. package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
  359. package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
  360. package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
  361. package/useObserveElement-BdI4zgd7.js +27 -0
  362. package/useObserveElement-MhzEsCkX.cjs +1 -0
  363. package/usePress-0AjDbW9R.cjs +7 -0
  364. package/usePress-CNjmDzap.js +542 -0
  365. package/useSingleSelectListState-0AGHxvy3.js +34 -0
  366. package/useSingleSelectListState-Cl3KV5E1.cjs +1 -0
  367. package/useTextField--czJtyNd.cjs +1 -0
  368. package/useTextField-Cw-33OP_.js +86 -0
  369. package/useToggleState-Bz5rAf4C.js +18 -0
  370. package/useToggleState-DoIkSQdj.cjs +1 -0
  371. package/useUpdateEffect-C5YQs_1w.cjs +1 -0
  372. package/useUpdateEffect-CCDx8D4X.js +13 -0
  373. package/utils-BNtZbAib.cjs +1 -0
  374. package/utils-DIMfEPAt.js +308 -0
  375. package/x-H8Zrx8-x.cjs +6 -0
  376. package/x-JK7i-TQC.js +14 -0
  377. package/flex/Flex.d.ts +0 -17
  378. package/flex/FlexItem.d.ts +0 -15
  379. package/flex/index.d.ts +0 -2
  380. package/index.css +0 -1
  381. package/theme.cjs +0 -1
  382. package/tokens-COoF1t17.cjs +0 -1
  383. /package/{global.css → assets/global.css} +0 -0
@@ -0,0 +1,1571 @@
1
+ import { _ as G } from "./usePress-CNjmDzap.js";
2
+ import { $ as yr } from "./context-C81gPYvC.js";
3
+ import { useRef as mr, useMemo as br } from "react";
4
+ function gr(r, e) {
5
+ let t = mr(null);
6
+ return r && t.current && e(r, t.current) && (r = t.current), t.current = r, r;
7
+ }
8
+ function I(r, e) {
9
+ return r - e * Math.floor(r / e);
10
+ }
11
+ const Fe = 1721426;
12
+ function w(r, e, t, n) {
13
+ e = Q(r, e);
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);
16
+ }
17
+ function M(r) {
18
+ return r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0);
19
+ }
20
+ function Q(r, e) {
21
+ return r === "BC" ? 1 - e : e;
22
+ }
23
+ function j(r) {
24
+ let e = "AD";
25
+ return r <= 0 && (e = "BC", r = 1 - r), [
26
+ e,
27
+ r
28
+ ];
29
+ }
30
+ const Mr = {
31
+ standard: [
32
+ 31,
33
+ 28,
34
+ 31,
35
+ 30,
36
+ 31,
37
+ 30,
38
+ 31,
39
+ 31,
40
+ 30,
41
+ 31,
42
+ 30,
43
+ 31
44
+ ],
45
+ leapyear: [
46
+ 31,
47
+ 29,
48
+ 31,
49
+ 30,
50
+ 31,
51
+ 30,
52
+ 31,
53
+ 31,
54
+ 30,
55
+ 31,
56
+ 30,
57
+ 31
58
+ ]
59
+ };
60
+ class $ {
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);
66
+ }
67
+ toJulianDay(e) {
68
+ return w(e.era, e.year, e.month, e.day);
69
+ }
70
+ getDaysInMonth(e) {
71
+ return Mr[M(e.year) ? "leapyear" : "standard"][e.month - 1];
72
+ }
73
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
74
+ getMonthsInYear(e) {
75
+ return 12;
76
+ }
77
+ getDaysInYear(e) {
78
+ return M(e.year) ? 366 : 365;
79
+ }
80
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
81
+ getYearsInEra(e) {
82
+ return 9999;
83
+ }
84
+ getEras() {
85
+ return [
86
+ "BC",
87
+ "AD"
88
+ ];
89
+ }
90
+ isInverseEra(e) {
91
+ return e.era === "BC";
92
+ }
93
+ balanceDate(e) {
94
+ e.year <= 0 && (e.era = e.era === "BC" ? "AD" : "BC", e.year = 1 - e.year);
95
+ }
96
+ constructor() {
97
+ this.identifier = "gregory";
98
+ }
99
+ }
100
+ const pr = {
101
+ "001": 1,
102
+ AD: 1,
103
+ AE: 6,
104
+ AF: 6,
105
+ AI: 1,
106
+ AL: 1,
107
+ AM: 1,
108
+ AN: 1,
109
+ AR: 1,
110
+ AT: 1,
111
+ AU: 1,
112
+ AX: 1,
113
+ AZ: 1,
114
+ BA: 1,
115
+ BE: 1,
116
+ BG: 1,
117
+ BH: 6,
118
+ BM: 1,
119
+ BN: 1,
120
+ BY: 1,
121
+ CH: 1,
122
+ CL: 1,
123
+ CM: 1,
124
+ CN: 1,
125
+ CR: 1,
126
+ CY: 1,
127
+ CZ: 1,
128
+ DE: 1,
129
+ DJ: 6,
130
+ DK: 1,
131
+ DZ: 6,
132
+ EC: 1,
133
+ EE: 1,
134
+ EG: 6,
135
+ ES: 1,
136
+ FI: 1,
137
+ FJ: 1,
138
+ FO: 1,
139
+ FR: 1,
140
+ GB: 1,
141
+ GE: 1,
142
+ GF: 1,
143
+ GP: 1,
144
+ GR: 1,
145
+ HR: 1,
146
+ HU: 1,
147
+ IE: 1,
148
+ IQ: 6,
149
+ IR: 6,
150
+ IS: 1,
151
+ IT: 1,
152
+ JO: 6,
153
+ KG: 1,
154
+ KW: 6,
155
+ KZ: 1,
156
+ LB: 1,
157
+ LI: 1,
158
+ LK: 1,
159
+ LT: 1,
160
+ LU: 1,
161
+ LV: 1,
162
+ LY: 6,
163
+ MC: 1,
164
+ MD: 1,
165
+ ME: 1,
166
+ MK: 1,
167
+ MN: 1,
168
+ MQ: 1,
169
+ MV: 5,
170
+ MY: 1,
171
+ NL: 1,
172
+ NO: 1,
173
+ NZ: 1,
174
+ OM: 6,
175
+ PL: 1,
176
+ QA: 6,
177
+ RE: 1,
178
+ RO: 1,
179
+ RS: 1,
180
+ RU: 1,
181
+ SD: 6,
182
+ SE: 1,
183
+ SI: 1,
184
+ SK: 1,
185
+ SM: 1,
186
+ SY: 6,
187
+ TJ: 1,
188
+ TM: 1,
189
+ TR: 1,
190
+ UA: 1,
191
+ UY: 1,
192
+ UZ: 1,
193
+ VA: 1,
194
+ VN: 1,
195
+ XK: 1
196
+ };
197
+ function Oe(r, e) {
198
+ return e = h(e, r.calendar), r.era === e.era && r.year === e.year && r.month === e.month && r.day === e.day;
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;
202
+ }
203
+ function Mt(r, e) {
204
+ return _e(r.calendar, e.calendar) && Oe(r, e);
205
+ }
206
+ function _e(r, e) {
207
+ var t, n, a, o;
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
+ }
210
+ function pt(r, e) {
211
+ return Oe(r, vr(e));
212
+ }
213
+ const Dr = {
214
+ sun: 0,
215
+ mon: 1,
216
+ tue: 2,
217
+ wed: 3,
218
+ thu: 4,
219
+ fri: 5,
220
+ sat: 6
221
+ };
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;
224
+ return o < 0 && (o += 7), o;
225
+ }
226
+ function wr(r) {
227
+ return y(Date.now(), r);
228
+ }
229
+ function vr(r) {
230
+ return Yr(wr(r));
231
+ }
232
+ function Ne(r, e) {
233
+ return r.calendar.toJulianDay(r) - e.calendar.toJulianDay(e);
234
+ }
235
+ function He(r, e) {
236
+ return De(r) - De(e);
237
+ }
238
+ function De(r) {
239
+ return r.hour * 36e5 + r.minute * 6e4 + r.second * 1e3 + r.millisecond;
240
+ }
241
+ let ee = null;
242
+ function Pe() {
243
+ return ee == null && (ee = new Intl.DateTimeFormat().resolvedOptions().timeZone), ee;
244
+ }
245
+ function H(r) {
246
+ return r.subtract({
247
+ days: r.day - 1
248
+ });
249
+ }
250
+ function Dt(r) {
251
+ return r.add({
252
+ days: r.calendar.getDaysInMonth(r) - r.day
253
+ });
254
+ }
255
+ function wt(r) {
256
+ return H(r.subtract({
257
+ months: r.month - 1
258
+ }));
259
+ }
260
+ function vt(r) {
261
+ return r.calendar.getMinimumMonthInYear ? r.calendar.getMinimumMonthInYear(r) : 1;
262
+ }
263
+ function At(r) {
264
+ return r.calendar.getMinimumDayInMonth ? r.calendar.getMinimumDayInMonth(r) : 1;
265
+ }
266
+ function Ar(r, e, t) {
267
+ let n = qe(r, e, t);
268
+ return r.subtract({
269
+ days: n
270
+ });
271
+ }
272
+ function Et(r, e, t) {
273
+ return Ar(r, e, t).add({
274
+ days: 6
275
+ });
276
+ }
277
+ const we = /* @__PURE__ */ new Map();
278
+ function Er(r) {
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;
282
+ }
283
+ let e = r.split("-")[1];
284
+ return e === "u" ? void 0 : e;
285
+ }
286
+ function xr(r) {
287
+ let e = Er(r);
288
+ return e && pr[e] || 0;
289
+ }
290
+ function xt(r, e, t) {
291
+ let n = r.calendar.getDaysInMonth(r);
292
+ return Math.ceil((qe(H(r), e, t) + n) / 7);
293
+ }
294
+ function Ct(r, e) {
295
+ return r && e ? r.compare(e) <= 0 ? r : e : r || e;
296
+ }
297
+ function It(r, e) {
298
+ return r && e ? r.compare(e) >= 0 ? r : e : r || e;
299
+ }
300
+ function B(r) {
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);
304
+ }
305
+ function Ze(r, e, t, n, a, o, i) {
306
+ let f = /* @__PURE__ */ new Date();
307
+ return f.setUTCHours(n, a, o, i), f.setUTCFullYear(r, e - 1, t), f.getTime();
308
+ }
309
+ function ie(r, e) {
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;
314
+ }
315
+ const ve = /* @__PURE__ */ new Map();
316
+ function Ve(r, e) {
317
+ let t = ve.get(e);
318
+ t || (t = new Intl.DateTimeFormat("en-US", {
319
+ timeZone: e,
320
+ hour12: !1,
321
+ era: "short",
322
+ year: "numeric",
323
+ month: "numeric",
324
+ day: "numeric",
325
+ hour: "numeric",
326
+ minute: "numeric",
327
+ second: "numeric"
328
+ }), ve.set(e, t));
329
+ let n = t.formatToParts(new Date(r)), a = {};
330
+ for (let o of n) o.type !== "literal" && (a[o.type] = o.value);
331
+ return {
332
+ // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
333
+ year: a.era === "BC" || a.era === "B" ? -a.year + 1 : +a.year,
334
+ month: +a.month,
335
+ day: +a.day,
336
+ hour: a.hour === "24" ? 0 : +a.hour,
337
+ minute: +a.minute,
338
+ second: +a.second
339
+ };
340
+ }
341
+ const Ae = 864e5;
342
+ function Cr(r, e, t, n) {
343
+ return (t === n ? [
344
+ t
345
+ ] : [
346
+ t,
347
+ n
348
+ ]).filter((o) => Ir(r, e, o));
349
+ }
350
+ function Ir(r, e, t) {
351
+ let n = Ve(t, e);
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
+ }
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") {
358
+ n = h(n, new $());
359
+ let c = /* @__PURE__ */ new Date(), l = Q(n.era, n.year);
360
+ return c.setFullYear(l, n.month - 1, n.day), c.setHours(n.hour, n.minute, n.second, n.millisecond), c.getTime();
361
+ }
362
+ let a = B(n), o = ie(a - Ae, e), i = ie(a + Ae, e), f = Cr(n, e, a - o, a - i);
363
+ if (f.length === 1) return f[0];
364
+ if (f.length > 1) switch (t) {
365
+ case "compatible":
366
+ case "earlier":
367
+ return f[0];
368
+ case "later":
369
+ return f[f.length - 1];
370
+ case "reject":
371
+ throw new RangeError("Multiple possible absolute times found");
372
+ }
373
+ switch (t) {
374
+ case "earlier":
375
+ return Math.min(a - o, a - i);
376
+ case "compatible":
377
+ case "later":
378
+ return Math.max(a - o, a - i);
379
+ case "reject":
380
+ throw new RangeError("No such absolute time found");
381
+ }
382
+ }
383
+ function We(r, e, t = "compatible") {
384
+ return new Date(d(r, e, t));
385
+ }
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);
389
+ }
390
+ function Yr(r) {
391
+ return new s(r.calendar, r.era, r.year, r.month, r.day);
392
+ }
393
+ function T(r, e) {
394
+ let t = 0, n = 0, a = 0, o = 0;
395
+ if ("timeZone" in r) ({ hour: t, minute: n, second: a, millisecond: o } = r);
396
+ 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);
398
+ }
399
+ function h(r, e) {
400
+ if (_e(r.calendar, e)) return r;
401
+ 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;
403
+ }
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);
409
+ }
410
+ function Br(r) {
411
+ let e = B(r) - r.offset;
412
+ return new Date(e);
413
+ }
414
+ function Tr(r, e) {
415
+ let t = B(r) - r.offset;
416
+ return h(y(t, e), r.calendar);
417
+ }
418
+ 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);
422
+ let a = t.calendar.getYearsInEra(t);
423
+ if (t.year > a) {
424
+ var o, i;
425
+ let c = (o = (i = t.calendar).isInverseEra) === null || o === void 0 ? void 0 : o.call(i, t);
426
+ t.year = a, t.month = c ? 1 : t.calendar.getMonthsInYear(t), t.day = c ? 1 : t.calendar.getDaysInMonth(t);
427
+ }
428
+ t.month < 1 && (t.month = 1, t.day = 1);
429
+ let f = t.calendar.getMonthsInYear(t);
430
+ 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
+ }
432
+ function fe(r, e) {
433
+ var t, n;
434
+ !((t = (n = r.calendar).isInverseEra) === null || t === void 0) && t.call(n, r) && (e = -e), r.year += e;
435
+ }
436
+ function ce(r) {
437
+ for (; r.month < 1; )
438
+ fe(r, -1), r.month += r.calendar.getMonthsInYear(r);
439
+ let e = 0;
440
+ for (; r.month > (e = r.calendar.getMonthsInYear(r)); )
441
+ r.month -= e, fe(r, 1);
442
+ }
443
+ function Ur(r) {
444
+ for (; r.day < 1; )
445
+ r.month--, ce(r), r.day += r.calendar.getDaysInMonth(r);
446
+ for (; r.day > r.calendar.getDaysInMonth(r); )
447
+ r.day -= r.calendar.getDaysInMonth(r), r.month++, ce(r);
448
+ }
449
+ function Ke(r) {
450
+ 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
+ }
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
+ }
455
+ function he(r) {
456
+ let e = {};
457
+ for (let t in r) typeof r[t] == "number" && (e[t] = -r[t]);
458
+ return e;
459
+ }
460
+ function Ge(r, e) {
461
+ return X(r, he(e));
462
+ }
463
+ function $e(r, e) {
464
+ 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;
466
+ }
467
+ function L(r, e) {
468
+ 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;
470
+ }
471
+ function Jr(r) {
472
+ 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
+ let e = Math.floor(r.hour / 24);
474
+ return r.hour = F(r.hour, 24), e;
475
+ }
476
+ function je(r) {
477
+ 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
+ }
479
+ function F(r, e) {
480
+ let t = r % e;
481
+ return t < 0 && (t += e), t;
482
+ }
483
+ function Xe(r, e) {
484
+ return r.hour += e.hours || 0, r.minute += e.minutes || 0, r.second += e.seconds || 0, r.millisecond += e.milliseconds || 0, Jr(r);
485
+ }
486
+ function ze(r, e) {
487
+ let t = r.copy();
488
+ return Xe(t, e), t;
489
+ }
490
+ function Rr(r, e) {
491
+ return ze(r, he(e));
492
+ }
493
+ function de(r, e, t, n) {
494
+ let a = r.copy();
495
+ switch (e) {
496
+ case "era": {
497
+ let f = r.calendar.getEras(), c = f.indexOf(r.era);
498
+ 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);
500
+ break;
501
+ }
502
+ case "year":
503
+ 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);
505
+ break;
506
+ case "month":
507
+ a.month = m(r.month, t, 1, r.calendar.getMonthsInYear(r), n == null ? void 0 : n.round);
508
+ break;
509
+ case "day":
510
+ a.day = m(r.day, t, 1, r.calendar.getDaysInMonth(r), n == null ? void 0 : n.round);
511
+ break;
512
+ default:
513
+ throw new Error("Unsupported field " + e);
514
+ }
515
+ return r.calendar.balanceDate && r.calendar.balanceDate(a), v(a), a;
516
+ }
517
+ function ye(r, e, t, n) {
518
+ let a = r.copy();
519
+ switch (e) {
520
+ case "hour": {
521
+ let o = r.hour, i = 0, f = 23;
522
+ if ((n == null ? void 0 : n.hourCycle) === 12) {
523
+ let c = o >= 12;
524
+ i = c ? 12 : 0, f = c ? 23 : 11;
525
+ }
526
+ a.hour = m(o, t, i, f, n == null ? void 0 : n.round);
527
+ break;
528
+ }
529
+ case "minute":
530
+ a.minute = m(r.minute, t, 0, 59, n == null ? void 0 : n.round);
531
+ break;
532
+ case "second":
533
+ a.second = m(r.second, t, 0, 59, n == null ? void 0 : n.round);
534
+ break;
535
+ case "millisecond":
536
+ a.millisecond = m(r.millisecond, t, 0, 999, n == null ? void 0 : n.round);
537
+ break;
538
+ default:
539
+ throw new Error("Unsupported field " + e);
540
+ }
541
+ return a;
542
+ }
543
+ function m(r, e, t, n, a = !1) {
544
+ if (a) {
545
+ r += Math.sign(e), r < t && (r = n);
546
+ let o = Math.abs(e);
547
+ e > 0 ? r = Math.ceil(r / o) * o : r = Math.floor(r / o) * o, r > n && (r = t);
548
+ } else
549
+ r += e, r < t ? r = n - (t - r - 1) : r > n && (r = t + (r - n - 1));
550
+ return r;
551
+ }
552
+ function er(r, e) {
553
+ let t;
554
+ 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), {
556
+ years: e.years,
557
+ months: e.months,
558
+ weeks: e.weeks,
559
+ days: e.days
560
+ });
561
+ t = d(a, r.timeZone);
562
+ } else
563
+ t = B(r) - r.offset;
564
+ 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);
566
+ return h(n, r.calendar);
567
+ }
568
+ function Lr(r, e) {
569
+ return er(r, he(e));
570
+ }
571
+ function kr(r, e, t, n) {
572
+ switch (e) {
573
+ case "hour": {
574
+ let a = 0, o = 23;
575
+ if ((n == null ? void 0 : n.hourCycle) === 12) {
576
+ let b = r.hour >= 12;
577
+ a = b ? 12 : 0, o = b ? 23 : 11;
578
+ }
579
+ let i = T(r), f = h(L(i, {
580
+ hour: a
581
+ }), 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, {
585
+ 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);
591
+ }
592
+ case "minute":
593
+ case "second":
594
+ case "millisecond":
595
+ return ye(r, e, t, n);
596
+ case "era":
597
+ case "year":
598
+ case "month":
599
+ 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
+ }
603
+ default:
604
+ throw new Error("Unsupported field " + e);
605
+ }
606
+ }
607
+ function Qr(r, e, t) {
608
+ let n = T(r), a = L($e(n, e), e);
609
+ 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
+ }
613
+ function rr(r) {
614
+ 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
+ }
616
+ function tr(r) {
617
+ let e = h(r, new $()), t;
618
+ 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
+ }
620
+ function nr(r) {
621
+ return `${tr(r)}T${rr(r)}`;
622
+ }
623
+ function Fr(r) {
624
+ let e = Math.sign(r) < 0 ? "-" : "+";
625
+ r = Math.abs(r);
626
+ let t = Math.floor(r / 36e5), n = r % 36e5 / 6e4;
627
+ return `${e}${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
628
+ }
629
+ function Or(r) {
630
+ return `${nr(r)}${Fr(r.offset)}[${r.timeZone}]`;
631
+ }
632
+ function me(r) {
633
+ let e = typeof r[0] == "object" ? r.shift() : new $(), t;
634
+ if (typeof r[0] == "string") t = r.shift();
635
+ else {
636
+ let i = e.getEras();
637
+ t = i[i.length - 1];
638
+ }
639
+ let n = r.shift(), a = r.shift(), o = r.shift();
640
+ return [
641
+ e,
642
+ t,
643
+ n,
644
+ a,
645
+ o
646
+ ];
647
+ }
648
+ var _r = /* @__PURE__ */ new WeakMap();
649
+ class s {
650
+ /** Returns a copy of this date. */
651
+ copy() {
652
+ return this.era ? new s(this.calendar, this.era, this.year, this.month, this.day) : new s(this.calendar, this.year, this.month, this.day);
653
+ }
654
+ /** Returns a new `CalendarDate` with the given duration added to it. */
655
+ add(e) {
656
+ return X(this, e);
657
+ }
658
+ /** Returns a new `CalendarDate` with the given duration subtracted from it. */
659
+ subtract(e) {
660
+ return Ge(this, e);
661
+ }
662
+ /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
663
+ set(e) {
664
+ return $e(this, e);
665
+ }
666
+ /**
667
+ * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
668
+ * When the resulting value reaches the limits of the field, it wraps around.
669
+ */
670
+ cycle(e, t, n) {
671
+ return de(this, e, t, n);
672
+ }
673
+ /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
674
+ toDate(e) {
675
+ return We(this, e);
676
+ }
677
+ /** Converts the date to an ISO 8601 formatted string. */
678
+ toString() {
679
+ return tr(this);
680
+ }
681
+ /** 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
+ compare(e) {
683
+ return Ne(this, e);
684
+ }
685
+ constructor(...e) {
686
+ G(this, _r, {
687
+ writable: !0,
688
+ value: void 0
689
+ });
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);
692
+ }
693
+ }
694
+ var qr = /* @__PURE__ */ new WeakMap();
695
+ class ar {
696
+ /** Returns a copy of this time. */
697
+ copy() {
698
+ return new ar(this.hour, this.minute, this.second, this.millisecond);
699
+ }
700
+ /** Returns a new `Time` with the given duration added to it. */
701
+ add(e) {
702
+ return ze(this, e);
703
+ }
704
+ /** Returns a new `Time` with the given duration subtracted from it. */
705
+ subtract(e) {
706
+ return Rr(this, e);
707
+ }
708
+ /** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */
709
+ set(e) {
710
+ return L(this, e);
711
+ }
712
+ /**
713
+ * Returns a new `Time` with the given field adjusted by a specified amount.
714
+ * When the resulting value reaches the limits of the field, it wraps around.
715
+ */
716
+ cycle(e, t, n) {
717
+ return ye(this, e, t, n);
718
+ }
719
+ /** Converts the time to an ISO 8601 formatted string. */
720
+ toString() {
721
+ return rr(this);
722
+ }
723
+ /** 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
+ compare(e) {
725
+ return He(this, e);
726
+ }
727
+ constructor(e = 0, t = 0, n = 0, a = 0) {
728
+ G(this, qr, {
729
+ writable: !0,
730
+ value: void 0
731
+ }), this.hour = e, this.minute = t, this.second = n, this.millisecond = a, je(this);
732
+ }
733
+ }
734
+ var Nr = /* @__PURE__ */ new WeakMap();
735
+ class P {
736
+ /** Returns a copy of this date. */
737
+ 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);
739
+ }
740
+ /** Returns a new `CalendarDateTime` with the given duration added to it. */
741
+ add(e) {
742
+ return X(this, e);
743
+ }
744
+ /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
745
+ subtract(e) {
746
+ return Ge(this, e);
747
+ }
748
+ /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
749
+ set(e) {
750
+ return $e(L(this, e), e);
751
+ }
752
+ /**
753
+ * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
754
+ * When the resulting value reaches the limits of the field, it wraps around.
755
+ */
756
+ cycle(e, t, n) {
757
+ switch (e) {
758
+ case "era":
759
+ case "year":
760
+ case "month":
761
+ case "day":
762
+ return de(this, e, t, n);
763
+ default:
764
+ return ye(this, e, t, n);
765
+ }
766
+ }
767
+ /** Converts the date to a native JavaScript Date object in the given time zone. */
768
+ toDate(e, t) {
769
+ return We(this, e, t);
770
+ }
771
+ /** Converts the date to an ISO 8601 formatted string. */
772
+ toString() {
773
+ return nr(this);
774
+ }
775
+ /** 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
+ compare(e) {
777
+ let t = Ne(this, e);
778
+ return t === 0 ? He(this, T(e)) : t;
779
+ }
780
+ constructor(...e) {
781
+ G(this, Nr, {
782
+ writable: !0,
783
+ value: void 0
784
+ });
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);
787
+ }
788
+ }
789
+ var Hr = /* @__PURE__ */ new WeakMap();
790
+ class k {
791
+ /** Returns a copy of this date. */
792
+ 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);
794
+ }
795
+ /** Returns a new `ZonedDateTime` with the given duration added to it. */
796
+ add(e) {
797
+ return er(this, e);
798
+ }
799
+ /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
800
+ subtract(e) {
801
+ return Lr(this, e);
802
+ }
803
+ /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
804
+ set(e, t) {
805
+ return Qr(this, e, t);
806
+ }
807
+ /**
808
+ * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
809
+ * When the resulting value reaches the limits of the field, it wraps around.
810
+ */
811
+ cycle(e, t, n) {
812
+ return kr(this, e, t, n);
813
+ }
814
+ /** Converts the date to a native JavaScript Date object. */
815
+ toDate() {
816
+ return Br(this);
817
+ }
818
+ /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
819
+ toString() {
820
+ return Or(this);
821
+ }
822
+ /** Converts the date to an ISO 8601 formatted string in UTC. */
823
+ toAbsoluteString() {
824
+ return this.toDate().toISOString();
825
+ }
826
+ /** 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
+ compare(e) {
828
+ return this.toDate().getTime() - Sr(e, this.timeZone).toDate().getTime();
829
+ }
830
+ constructor(...e) {
831
+ G(this, Hr, {
832
+ writable: !0,
833
+ value: void 0
834
+ });
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);
837
+ }
838
+ }
839
+ const Y = [
840
+ [
841
+ 1868,
842
+ 9,
843
+ 8
844
+ ],
845
+ [
846
+ 1912,
847
+ 7,
848
+ 30
849
+ ],
850
+ [
851
+ 1926,
852
+ 12,
853
+ 25
854
+ ],
855
+ [
856
+ 1989,
857
+ 1,
858
+ 8
859
+ ],
860
+ [
861
+ 2019,
862
+ 5,
863
+ 1
864
+ ]
865
+ ], Pr = [
866
+ [
867
+ 1912,
868
+ 7,
869
+ 29
870
+ ],
871
+ [
872
+ 1926,
873
+ 12,
874
+ 24
875
+ ],
876
+ [
877
+ 1989,
878
+ 1,
879
+ 7
880
+ ],
881
+ [
882
+ 2019,
883
+ 4,
884
+ 30
885
+ ]
886
+ ], _ = [
887
+ 1867,
888
+ 1911,
889
+ 1925,
890
+ 1988,
891
+ 2018
892
+ ], g = [
893
+ "meiji",
894
+ "taisho",
895
+ "showa",
896
+ "heisei",
897
+ "reiwa"
898
+ ];
899
+ function Ee(r) {
900
+ 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
+ return e === -1 ? Y.length - 1 : e === 0 ? 0 : e - 1;
902
+ }
903
+ function re(r) {
904
+ let e = _[g.indexOf(r.era)];
905
+ if (!e) throw new Error("Unknown era: " + r.era);
906
+ return new s(r.year + e, r.month, r.day);
907
+ }
908
+ class Zr extends $ {
909
+ 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);
912
+ }
913
+ toJulianDay(e) {
914
+ return super.toJulianDay(re(e));
915
+ }
916
+ 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);
919
+ }
920
+ constrainDate(e) {
921
+ let t = g.indexOf(e.era), n = Pr[t];
922
+ if (n != null) {
923
+ let [a, o, i] = n, f = a - _[t];
924
+ 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
+ }
926
+ if (e.year === 1 && t >= 0) {
927
+ let [, a, o] = Y[t];
928
+ e.month = Math.max(a, e.month), e.month === a && (e.day = Math.max(o, e.day));
929
+ }
930
+ }
931
+ getEras() {
932
+ return g;
933
+ }
934
+ getYearsInEra(e) {
935
+ let t = g.indexOf(e.era), n = Y[t], a = Y[t + 1];
936
+ if (a == null)
937
+ return 9999 - n[0] + 1;
938
+ let o = a[0] - n[0];
939
+ return (e.month < a[1] || e.month === a[1] && e.day < a[2]) && o++, o;
940
+ }
941
+ getDaysInMonth(e) {
942
+ return super.getDaysInMonth(re(e));
943
+ }
944
+ getMinimumMonthInYear(e) {
945
+ let t = xe(e);
946
+ return t ? t[1] : 1;
947
+ }
948
+ getMinimumDayInMonth(e) {
949
+ let t = xe(e);
950
+ return t && e.month === t[1] ? t[2] : 1;
951
+ }
952
+ constructor(...e) {
953
+ super(...e), this.identifier = "japanese";
954
+ }
955
+ }
956
+ function xe(r) {
957
+ if (r.year === 1) {
958
+ let e = g.indexOf(r.era);
959
+ return Y[e];
960
+ }
961
+ }
962
+ const or = -543;
963
+ class Vr extends $ {
964
+ 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);
967
+ }
968
+ toJulianDay(e) {
969
+ return super.toJulianDay(Ce(e));
970
+ }
971
+ getEras() {
972
+ return [
973
+ "BE"
974
+ ];
975
+ }
976
+ getDaysInMonth(e) {
977
+ return super.getDaysInMonth(Ce(e));
978
+ }
979
+ balanceDate() {
980
+ }
981
+ constructor(...e) {
982
+ super(...e), this.identifier = "buddhist";
983
+ }
984
+ }
985
+ function Ce(r) {
986
+ let [e, t] = j(r.year + or);
987
+ return new s(e, t, r.month, r.day);
988
+ }
989
+ const Z = 1911;
990
+ function ir(r) {
991
+ return r.era === "minguo" ? r.year + Z : 1 - r.year + Z;
992
+ }
993
+ function Ie(r) {
994
+ let e = r - Z;
995
+ return e > 0 ? [
996
+ "minguo",
997
+ e
998
+ ] : [
999
+ "before_minguo",
1000
+ 1 - e
1001
+ ];
1002
+ }
1003
+ class Wr extends $ {
1004
+ fromJulianDay(e) {
1005
+ let t = super.fromJulianDay(e), n = Q(t.era, t.year), [a, o] = Ie(n);
1006
+ return new s(this, a, o, t.month, t.day);
1007
+ }
1008
+ toJulianDay(e) {
1009
+ return super.toJulianDay(Ye(e));
1010
+ }
1011
+ getEras() {
1012
+ return [
1013
+ "before_minguo",
1014
+ "minguo"
1015
+ ];
1016
+ }
1017
+ balanceDate(e) {
1018
+ let [t, n] = Ie(ir(e));
1019
+ e.era = t, e.year = n;
1020
+ }
1021
+ isInverseEra(e) {
1022
+ return e.era === "before_minguo";
1023
+ }
1024
+ getDaysInMonth(e) {
1025
+ return super.getDaysInMonth(Ye(e));
1026
+ }
1027
+ getYearsInEra(e) {
1028
+ return e.era === "before_minguo" ? 9999 : 9999 - Z;
1029
+ }
1030
+ constructor(...e) {
1031
+ super(...e), this.identifier = "roc";
1032
+ }
1033
+ }
1034
+ function Ye(r) {
1035
+ let [e, t] = j(ir(r));
1036
+ return new s(e, t, r.month, r.day);
1037
+ }
1038
+ const Se = 1948320, Be = [
1039
+ 0,
1040
+ 31,
1041
+ 62,
1042
+ 93,
1043
+ 124,
1044
+ 155,
1045
+ 186,
1046
+ 216,
1047
+ 246,
1048
+ 276,
1049
+ 306,
1050
+ 336
1051
+ // Esfand
1052
+ ];
1053
+ class Kr {
1054
+ 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;
1056
+ return new s(this, n, i + 1, f);
1057
+ }
1058
+ 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;
1061
+ }
1062
+ getMonthsInYear() {
1063
+ return 12;
1064
+ }
1065
+ getDaysInMonth(e) {
1066
+ return e.month <= 6 ? 31 : e.month <= 11 || I(25 * e.year + 11, 33) < 8 ? 30 : 29;
1067
+ }
1068
+ getEras() {
1069
+ return [
1070
+ "AP"
1071
+ ];
1072
+ }
1073
+ getYearsInEra() {
1074
+ return 9377;
1075
+ }
1076
+ constructor() {
1077
+ this.identifier = "persian";
1078
+ }
1079
+ }
1080
+ const te = 78, Te = 80;
1081
+ class Gr extends $ {
1082
+ 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);
1085
+ let i, f;
1086
+ if (a < o)
1087
+ i = 1, f = a + 1;
1088
+ else {
1089
+ let c = a - o;
1090
+ c < 155 ? (i = Math.floor(c / 31) + 2, f = c % 31 + 1) : (c -= 155, i = Math.floor(c / 30) + 7, f = c % 30 + 1);
1091
+ }
1092
+ return new s(this, n, i, f);
1093
+ }
1094
+ 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);
1097
+ }
1098
+ getDaysInMonth(e) {
1099
+ return e.month === 1 && M(e.year + te) || e.month >= 2 && e.month <= 6 ? 31 : 30;
1100
+ }
1101
+ getYearsInEra() {
1102
+ return 9919;
1103
+ }
1104
+ getEras() {
1105
+ return [
1106
+ "saka"
1107
+ ];
1108
+ }
1109
+ balanceDate() {
1110
+ }
1111
+ constructor(...e) {
1112
+ super(...e), this.identifier = "indian";
1113
+ }
1114
+ }
1115
+ const V = 1948440, Ue = 1948439, u = 1300, C = 1600, jr = 460322;
1116
+ function W(r, e, t, n) {
1117
+ return n + Math.ceil(29.5 * (t - 1)) + (e - 1) * 354 + Math.floor((3 + 11 * e) / 30) + r - 1;
1118
+ }
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;
1121
+ return new s(r, n, a, o);
1122
+ }
1123
+ function Je(r) {
1124
+ return (14 + 11 * r) % 30 < 11;
1125
+ }
1126
+ class be {
1127
+ fromJulianDay(e) {
1128
+ return fr(this, V, e);
1129
+ }
1130
+ toJulianDay(e) {
1131
+ return W(V, e.year, e.month, e.day);
1132
+ }
1133
+ getDaysInMonth(e) {
1134
+ let t = 29 + e.month % 2;
1135
+ return e.month === 12 && Je(e.year) && t++, t;
1136
+ }
1137
+ getMonthsInYear() {
1138
+ return 12;
1139
+ }
1140
+ getDaysInYear(e) {
1141
+ return Je(e.year) ? 355 : 354;
1142
+ }
1143
+ getYearsInEra() {
1144
+ return 9665;
1145
+ }
1146
+ getEras() {
1147
+ return [
1148
+ "AH"
1149
+ ];
1150
+ }
1151
+ constructor() {
1152
+ this.identifier = "islamic-civil";
1153
+ }
1154
+ }
1155
+ class Xr extends be {
1156
+ fromJulianDay(e) {
1157
+ return fr(this, Ue, e);
1158
+ }
1159
+ toJulianDay(e) {
1160
+ return W(Ue, e.year, e.month, e.day);
1161
+ }
1162
+ constructor(...e) {
1163
+ super(...e), this.identifier = "islamic-tbla";
1164
+ }
1165
+ }
1166
+ const zr = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
1167
+ let se, S;
1168
+ function q(r) {
1169
+ return jr + S[r - u];
1170
+ }
1171
+ function J(r, e) {
1172
+ let t = r - u, n = 1 << 11 - (e - 1);
1173
+ return se[t] & n ? 30 : 29;
1174
+ }
1175
+ function Re(r, e) {
1176
+ let t = q(r);
1177
+ for (let n = 1; n < e; n++) t += J(r, n);
1178
+ return t;
1179
+ }
1180
+ function Le(r) {
1181
+ return S[r + 1 - u] - S[r - u];
1182
+ }
1183
+ class et extends be {
1184
+ fromJulianDay(e) {
1185
+ let t = e - V, n = q(u), a = q(C);
1186
+ if (t < n || t > a) return super.fromJulianDay(e);
1187
+ {
1188
+ let o = u - 1, i = 1, f = 1;
1189
+ for (; f > 0; ) {
1190
+ o++, f = t - q(o) + 1;
1191
+ let c = Le(o);
1192
+ if (f === c) {
1193
+ i = 12;
1194
+ break;
1195
+ } else if (f < c) {
1196
+ let l = J(o, i);
1197
+ for (i = 1; f > l; )
1198
+ f -= l, i++, l = J(o, i);
1199
+ break;
1200
+ }
1201
+ }
1202
+ return new s(this, o, i, t - Re(o, i) + 1);
1203
+ }
1204
+ }
1205
+ toJulianDay(e) {
1206
+ return e.year < u || e.year > C ? super.toJulianDay(e) : V + Re(e.year, e.month) + (e.day - 1);
1207
+ }
1208
+ getDaysInMonth(e) {
1209
+ return e.year < u || e.year > C ? super.getDaysInMonth(e) : J(e.year, e.month);
1210
+ }
1211
+ getDaysInYear(e) {
1212
+ return e.year < u || e.year > C ? super.getDaysInYear(e) : Le(e.year);
1213
+ }
1214
+ 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);
1217
+ let e = 0;
1218
+ for (let t = u; t <= C; t++) {
1219
+ S[t - u] = e;
1220
+ for (let n = 1; n <= 12; n++) e += J(t, n);
1221
+ }
1222
+ }
1223
+ }
1224
+ }
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;
1228
+ }
1229
+ function N(r) {
1230
+ 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;
1232
+ }
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;
1236
+ }
1237
+ function R(r) {
1238
+ return N(r) + at(r);
1239
+ }
1240
+ function lr(r) {
1241
+ return R(r + 1) - R(r);
1242
+ }
1243
+ function ot(r) {
1244
+ let e = lr(r);
1245
+ switch (e > 380 && (e -= 30), e) {
1246
+ case 353:
1247
+ return 0;
1248
+ case 354:
1249
+ return 1;
1250
+ case 355:
1251
+ return 2;
1252
+ }
1253
+ }
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;
1258
+ }
1259
+ class it {
1260
+ 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);
1262
+ for (; i < 1; )
1263
+ a--, o = R(a), i = Math.floor(t - o);
1264
+ let f = 1, c = 0;
1265
+ for (; c < i; )
1266
+ c += O(a, f), f++;
1267
+ f--, c -= O(a, f);
1268
+ let l = i - c;
1269
+ return new s(this, a, f, l);
1270
+ }
1271
+ 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;
1275
+ }
1276
+ getDaysInMonth(e) {
1277
+ return O(e.year, e.month);
1278
+ }
1279
+ getMonthsInYear(e) {
1280
+ return D(e.year) ? 13 : 12;
1281
+ }
1282
+ getDaysInYear(e) {
1283
+ return lr(e.year);
1284
+ }
1285
+ getYearsInEra() {
1286
+ return 9999;
1287
+ }
1288
+ getEras() {
1289
+ return [
1290
+ "AM"
1291
+ ];
1292
+ }
1293
+ 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++);
1295
+ }
1296
+ constructor() {
1297
+ this.identifier = "hebrew";
1298
+ }
1299
+ }
1300
+ const le = 1723856, Qe = 1824665, ue = 5500;
1301
+ function K(r, e, t, n) {
1302
+ return r + 365 * e + Math.floor(e / 4) + 30 * (t - 1) + n - 1;
1303
+ }
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);
1306
+ return [
1307
+ t,
1308
+ n,
1309
+ a
1310
+ ];
1311
+ }
1312
+ function ur(r) {
1313
+ return Math.floor(r % 4 / 3);
1314
+ }
1315
+ function hr(r, e) {
1316
+ return e % 13 !== 0 ? 30 : ur(r) + 5;
1317
+ }
1318
+ class Me {
1319
+ 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);
1322
+ }
1323
+ toJulianDay(e) {
1324
+ let t = e.year;
1325
+ return e.era === "AA" && (t -= ue), K(le, t, e.month, e.day);
1326
+ }
1327
+ getDaysInMonth(e) {
1328
+ return hr(e.year, e.month);
1329
+ }
1330
+ getMonthsInYear() {
1331
+ return 13;
1332
+ }
1333
+ getDaysInYear(e) {
1334
+ return 365 + ur(e.year);
1335
+ }
1336
+ getYearsInEra(e) {
1337
+ return e.era === "AA" ? 9999 : 9991;
1338
+ }
1339
+ getEras() {
1340
+ return [
1341
+ "AA",
1342
+ "AM"
1343
+ ];
1344
+ }
1345
+ constructor() {
1346
+ this.identifier = "ethiopic";
1347
+ }
1348
+ }
1349
+ class ft extends Me {
1350
+ fromJulianDay(e) {
1351
+ let [t, n, a] = ge(le, e);
1352
+ return t += ue, new s(this, "AA", t, n, a);
1353
+ }
1354
+ getEras() {
1355
+ return [
1356
+ "AA"
1357
+ ];
1358
+ }
1359
+ getYearsInEra() {
1360
+ return 9999;
1361
+ }
1362
+ constructor(...e) {
1363
+ super(...e), this.identifier = "ethioaa";
1364
+ }
1365
+ }
1366
+ class ct extends Me {
1367
+ fromJulianDay(e) {
1368
+ let [t, n, a] = ge(Qe, e), o = "CE";
1369
+ return t <= 0 && (o = "BCE", t = 1 - t), new s(this, o, t, n, a);
1370
+ }
1371
+ toJulianDay(e) {
1372
+ let t = e.year;
1373
+ return e.era === "BCE" && (t = 1 - t), K(Qe, t, e.month, e.day);
1374
+ }
1375
+ getDaysInMonth(e) {
1376
+ let t = e.year;
1377
+ return e.era === "BCE" && (t = 1 - t), hr(t, e.month);
1378
+ }
1379
+ isInverseEra(e) {
1380
+ return e.era === "BCE";
1381
+ }
1382
+ balanceDate(e) {
1383
+ e.year <= 0 && (e.era = e.era === "BCE" ? "CE" : "BCE", e.year = 1 - e.year);
1384
+ }
1385
+ getEras() {
1386
+ return [
1387
+ "BCE",
1388
+ "CE"
1389
+ ];
1390
+ }
1391
+ getYearsInEra(e) {
1392
+ return e.era === "BCE" ? 9999 : 9715;
1393
+ }
1394
+ constructor(...e) {
1395
+ super(...e), this.identifier = "coptic";
1396
+ }
1397
+ }
1398
+ function Yt(r) {
1399
+ switch (r) {
1400
+ case "buddhist":
1401
+ return new Vr();
1402
+ case "ethiopic":
1403
+ return new Me();
1404
+ case "ethioaa":
1405
+ return new ft();
1406
+ case "coptic":
1407
+ return new ct();
1408
+ case "hebrew":
1409
+ return new it();
1410
+ case "indian":
1411
+ return new Gr();
1412
+ case "islamic-civil":
1413
+ return new be();
1414
+ case "islamic-tbla":
1415
+ return new Xr();
1416
+ case "islamic-umalqura":
1417
+ return new et();
1418
+ case "japanese":
1419
+ return new Zr();
1420
+ case "persian":
1421
+ return new Kr();
1422
+ case "roc":
1423
+ return new Wr();
1424
+ case "gregory":
1425
+ default:
1426
+ return new $();
1427
+ }
1428
+ }
1429
+ let ne = /* @__PURE__ */ new Map();
1430
+ class st {
1431
+ /** Formats a date as a string according to the locale and format options passed to the constructor. */
1432
+ format(e) {
1433
+ return this.formatter.format(e);
1434
+ }
1435
+ /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */
1436
+ formatToParts(e) {
1437
+ return this.formatter.formatToParts(e);
1438
+ }
1439
+ /** Formats a date range as a string. */
1440
+ formatRange(e, t) {
1441
+ if (typeof this.formatter.formatRange == "function")
1442
+ return this.formatter.formatRange(e, t);
1443
+ if (t < e) throw new RangeError("End date must be >= start date");
1444
+ return `${this.formatter.format(e)} – ${this.formatter.format(t)}`;
1445
+ }
1446
+ /** Formats a date range as an array of parts. */
1447
+ formatRangeToParts(e, t) {
1448
+ if (typeof this.formatter.formatRangeToParts == "function")
1449
+ return this.formatter.formatRangeToParts(e, t);
1450
+ if (t < e) throw new RangeError("End date must be >= start date");
1451
+ let n = this.formatter.formatToParts(e), a = this.formatter.formatToParts(t);
1452
+ return [
1453
+ ...n.map((o) => ({
1454
+ ...o,
1455
+ source: "startRange"
1456
+ })),
1457
+ {
1458
+ type: "literal",
1459
+ value: " – ",
1460
+ source: "shared"
1461
+ },
1462
+ ...a.map((o) => ({
1463
+ ...o,
1464
+ source: "endRange"
1465
+ }))
1466
+ ];
1467
+ }
1468
+ /** Returns the resolved formatting options based on the values passed to the constructor. */
1469
+ resolvedOptions() {
1470
+ 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;
1472
+ }
1473
+ constructor(e, t = {}) {
1474
+ this.formatter = $r(e, t), this.options = t;
1475
+ }
1476
+ }
1477
+ const lt = {
1478
+ true: {
1479
+ // Only Japanese uses the h11 style for 12 hour time. All others use h12.
1480
+ ja: "h11"
1481
+ },
1482
+ false: {}
1483
+ };
1484
+ function $r(r, e = {}) {
1485
+ if (typeof e.hour12 == "boolean" && ut()) {
1486
+ e = {
1487
+ ...e
1488
+ };
1489
+ let a = lt[String(e.hour12)][r.split("-")[0]], o = e.hour12 ? "h12" : "h23";
1490
+ e.hourCycle = a ?? o, delete e.hour12;
1491
+ }
1492
+ 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);
1494
+ let n = new Intl.DateTimeFormat(r, e);
1495
+ return ne.set(t, n), n;
1496
+ }
1497
+ let ae = null;
1498
+ function ut() {
1499
+ return ae == null && (ae = new Intl.DateTimeFormat("en-US", {
1500
+ hour: "numeric",
1501
+ hour12: !1
1502
+ }).format(new Date(2020, 2, 3, 0)) === "24"), ae;
1503
+ }
1504
+ let oe = null;
1505
+ function ht() {
1506
+ return oe == null && (oe = new Intl.DateTimeFormat("fr", {
1507
+ hour: "numeric",
1508
+ hour12: !1
1509
+ }).resolvedOptions().hourCycle === "h12"), oe;
1510
+ }
1511
+ function $t(r, e) {
1512
+ if (!e.timeStyle && !e.hour) return;
1513
+ r = r.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, ""), r += (r.includes("-u-") ? "" : "-u") + "-nu-latn";
1514
+ let t = $r(r, {
1515
+ ...e,
1516
+ timeZone: void 0
1517
+ // use local timezone
1518
+ }), 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);
1519
+ if (n === 0 && a === 23) return "h23";
1520
+ if (n === 24 && a === 23) return "h24";
1521
+ if (n === 0 && a === 11) return "h11";
1522
+ if (n === 12 && a === 11) return "h12";
1523
+ throw new Error("Unexpected hour cycle result");
1524
+ }
1525
+ function St(r) {
1526
+ r = gr(r ?? {}, dt);
1527
+ let { locale: e } = yr();
1528
+ return br(() => new st(e, r), [
1529
+ e,
1530
+ r
1531
+ ]);
1532
+ }
1533
+ function dt(r, e) {
1534
+ if (r === e) return !0;
1535
+ let t = Object.keys(r), n = Object.keys(e);
1536
+ if (t.length !== n.length) return !1;
1537
+ for (let a of t)
1538
+ if (e[a] !== r[a]) return !1;
1539
+ return !0;
1540
+ }
1541
+ export {
1542
+ st as $,
1543
+ At as A,
1544
+ vt as B,
1545
+ T as a,
1546
+ 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,
1560
+ h as p,
1561
+ _e as q,
1562
+ qe as r,
1563
+ Et as s,
1564
+ $ as t,
1565
+ Yt as u,
1566
+ gt as v,
1567
+ Pe as w,
1568
+ s as x,
1569
+ wr as y,
1570
+ ar as z
1571
+ };