@midas-ds/components 10.1.0 → 10.2.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 (401) hide show
  1. package/AccordionItem-DZT76sWu.js +320 -0
  2. package/AccordionItem-Z_c9MpAM.cjs +1 -0
  3. package/BadgeContainer-D3RtqcPF.js +37 -0
  4. package/BadgeContainer-DeUgqGqb.cjs +1 -0
  5. package/Breadcrumbs-CmZXtTiS.js +250 -0
  6. package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
  7. package/Button-CbFRzRrF.js +38 -0
  8. package/Button-DnhqHU01.cjs +1 -0
  9. package/Button-ZOQy9Ivu.js +78 -0
  10. package/Button-iSiWjocA.cjs +1 -0
  11. package/Button.module-CMMhIrkn.js +14 -0
  12. package/Button.module-DO5s9hOk.cjs +1 -0
  13. package/ButtonGroup-DUqW5dzM.cjs +1 -0
  14. package/ButtonGroup-DvVvear6.js +22 -0
  15. package/CHANGELOG.md +81 -0
  16. package/Card-C0BFW3wJ.cjs +1 -0
  17. package/Card-CaKKKv9k.js +131 -0
  18. package/CharacterCounter-CPGdboVJ.js +22 -0
  19. package/CharacterCounter-CrY8QRuY.cjs +1 -0
  20. package/Checkbox-CvFsn_FL.js +380 -0
  21. package/Checkbox-DSxGAJX2.cjs +1 -0
  22. package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
  23. package/CheckboxGroup-Dij9zKlF.js +54 -0
  24. package/Collection-C5ONNBqd.js +576 -0
  25. package/Collection-Csx3L9gh.cjs +1 -0
  26. package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
  27. package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
  28. package/ComboBox-BCaqPEIH.js +1375 -0
  29. package/ComboBox-gveQKHU3.cjs +1 -0
  30. package/DateField-CAQlzuDD.js +46 -0
  31. package/DateField-deVVFwKA.cjs +1 -0
  32. package/DateInputDivider-DnUxETEC.cjs +1 -0
  33. package/DateInputDivider-Dx8n1Lxp.js +2908 -0
  34. package/DateRangePicker-BmBvwqo6.js +881 -0
  35. package/DateRangePicker-BzfitoK0.cjs +6 -0
  36. package/Dialog-Bd5hK360.cjs +1 -0
  37. package/Dialog-Bxx8cBEq.js +208 -0
  38. package/Dialog-CYxThuMl.js +1609 -0
  39. package/Dialog-CwTEAujZ.cjs +1 -0
  40. package/DragAndDrop-CSwmPhxC.js +60 -0
  41. package/DragAndDrop-HvycSrKY.cjs +1 -0
  42. package/Dropdown-CaGon9OR.cjs +6 -0
  43. package/Dropdown-nkjzsVYX.js +84 -0
  44. package/FieldError-BZw8UzBk.cjs +1 -0
  45. package/FieldError-CZikNDxX.js +28 -0
  46. package/FieldError-DqdfJ3fs.cjs +1 -0
  47. package/FieldError-Dv3bBEjh.js +23 -0
  48. package/FileUpload-DYRZ0M9F.cjs +2 -0
  49. package/FileUpload-ULwcYDxs.js +2372 -0
  50. package/FocusScope-DwIqdYpQ.js +625 -0
  51. package/FocusScope-NaPbvuuS.cjs +1 -0
  52. package/Form-BuOomA4T.cjs +1 -0
  53. package/Form-CXcEMuBf.js +5 -0
  54. package/Grid--OhtgCo6.js +27 -0
  55. package/Grid-DVQtOcu9.cjs +1 -0
  56. package/GridItem-DlbSdRmB.js +246 -0
  57. package/GridItem-XgHmZWXY.cjs +1 -0
  58. package/Group-CeSsSQVC.js +44 -0
  59. package/Group-CgiqQHH1.cjs +1 -0
  60. package/Heading-BY5-QN4S.js +46 -0
  61. package/Heading-DoJAtYZf.cjs +1 -0
  62. package/Hidden-B5ir3Lei.js +34 -0
  63. package/Hidden-BxRZGdEW.cjs +1 -0
  64. package/InfoBanner-BS-dAfzO.cjs +1 -0
  65. package/InfoBanner-CVIBFSWx.js +82 -0
  66. package/Input-D8Ku_FQz.js +41 -0
  67. package/Input-DKSAYvsw.cjs +1 -0
  68. package/Label-C9ivwkAd.js +21 -0
  69. package/Label-CUV21CAv.cjs +1 -0
  70. package/Label-DkDOsmUF.js +16 -0
  71. package/Label-IMWAyoKb.cjs +1 -0
  72. package/Layout-BWeHHnqU.cjs +16 -0
  73. package/Layout-CCt_2L1k.js +468 -0
  74. package/Link-B-nus-FT.js +71 -0
  75. package/Link-DsnCtNeI.cjs +6 -0
  76. package/Link-SHMbeyIP.cjs +1 -0
  77. package/Link-uFowN4qv.js +59 -0
  78. package/LinkButton-CuBilDML.js +69 -0
  79. package/LinkButton-CymMrcGL.cjs +6 -0
  80. package/ListBox-CDOsQChA.cjs +1 -0
  81. package/ListBox-DOi_y_Lt.js +530 -0
  82. package/ListBoxButton-CFeNhJhr.cjs +1 -0
  83. package/ListBoxButton-O6zN3P4W.js +15 -0
  84. package/ListBoxSection-C1aLKL9p.js +1058 -0
  85. package/ListBoxSection-DGCP6xpf.cjs +1 -0
  86. package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
  87. package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
  88. package/LiveAnnouncer-B6177m92.js +51 -0
  89. package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
  90. package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
  91. package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
  92. package/Logo-BIrOEINM.js +133 -0
  93. package/Logo-DT2_2O43.cjs +1 -0
  94. package/NumberFormatter-DewVDY5w.cjs +1 -0
  95. package/NumberFormatter-DgOUVrge.js +119 -0
  96. package/OverlayArrow-D75k-EMl.cjs +1 -0
  97. package/OverlayArrow-DorA4Rbr.js +506 -0
  98. package/PressResponder-C06O3Z5P.cjs +1 -0
  99. package/PressResponder-CVEg5kND.js +33 -0
  100. package/ProgressBar-Bkw9zavs.cjs +1 -0
  101. package/ProgressBar-CEX2WNoW.js +77 -0
  102. package/ProgressBar-Dqh3ftSP.cjs +1 -0
  103. package/ProgressBar-gmAzSsrz.js +53 -0
  104. package/RSPContexts-BW2SEIqe.js +11 -0
  105. package/RSPContexts-D8hmBfGm.cjs +1 -0
  106. package/Radio-CDKrvQe4.cjs +1 -0
  107. package/Radio-_ukSkxPT.js +311 -0
  108. package/RangeCalendar-cbCKBPZv.cjs +11 -0
  109. package/RangeCalendar-uXwoBL-O.js +1685 -0
  110. package/SearchField-6yBGiojX.cjs +6 -0
  111. package/SearchField-DYl2uo7o.js +362 -0
  112. package/Select-CpHjd1tp.cjs +1 -0
  113. package/Select-PvCqY7Lp.js +646 -0
  114. package/SelectionManager-6H88Cv6B.js +1033 -0
  115. package/SelectionManager-C5NGBzvz.cjs +1 -0
  116. package/Separator-LYnFqh4L.js +60 -0
  117. package/Separator-nPra6kD-.cjs +1 -0
  118. package/Skeleton-BAwbfKBW.cjs +1 -0
  119. package/Skeleton-BePDRmrO.js +40 -0
  120. package/Spinner-D31SXm-U.js +41 -0
  121. package/Spinner-DAJtfxqJ.cjs +6 -0
  122. package/Table-B_N7wUmA.js +2451 -0
  123. package/Table-D9vNc_y-.cjs +16 -0
  124. package/Tabs-Ct6D83aR.js +404 -0
  125. package/Tabs-Dtcl2oK2.cjs +1 -0
  126. package/Tag-CVFkzg3s.cjs +1 -0
  127. package/Tag-g6HN-YCv.js +748 -0
  128. package/Text-3MNwRMpI.cjs +1 -0
  129. package/Text-B2K-BJKQ.cjs +1 -0
  130. package/Text-BN-g1iWi.js +32 -0
  131. package/Text-B_H68Tvq.js +15 -0
  132. package/TextArea-DSiQ578a.js +206 -0
  133. package/TextArea-cVyGBRbL.cjs +1 -0
  134. package/TextField-B70CL2qz.cjs +1 -0
  135. package/TextField-DBaRuNj7.js +119 -0
  136. package/TextField.module-BcpPBWnD.js +13 -0
  137. package/TextField.module-Dw5Rtn9y.cjs +1 -0
  138. package/Toast-CjpldAI8.js +988 -0
  139. package/Toast-DrkOGy4d.cjs +1 -0
  140. package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
  141. package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
  142. package/Tooltip-BAIjaYax.js +283 -0
  143. package/Tooltip-CiWg4zIC.cjs +1 -0
  144. package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
  145. package/VisuallyHidden-D-4z1VgU.js +40 -0
  146. package/accordion/index.cjs +1 -0
  147. package/accordion/index.js +5 -0
  148. package/arrow-right-Cw48o2oW.cjs +6 -0
  149. package/arrow-right-Dg8sttFO.js +14 -0
  150. package/assets/AccordionItem.css +1 -0
  151. package/assets/BadgeContainer.css +1 -0
  152. package/assets/Breadcrumbs.css +1 -0
  153. package/assets/Button.css +1 -0
  154. package/assets/ButtonGroup.css +1 -0
  155. package/assets/Card.css +1 -0
  156. package/assets/CharacterCounter.css +1 -0
  157. package/assets/Checkbox.css +1 -0
  158. package/assets/ColorSchemeSwitch.css +1 -0
  159. package/assets/ComboBox.css +1 -0
  160. package/assets/DateField.css +1 -0
  161. package/assets/DateInputDivider.css +1 -0
  162. package/assets/DateRangePicker.css +1 -0
  163. package/assets/Dialog.css +1 -0
  164. package/assets/Dropdown.css +1 -0
  165. package/assets/FieldError.css +1 -0
  166. package/assets/FileUpload.css +1 -0
  167. package/assets/GridItem.css +1 -0
  168. package/assets/Heading.css +1 -0
  169. package/assets/InfoBanner.css +1 -0
  170. package/assets/Label.css +1 -0
  171. package/assets/Layout.css +1 -0
  172. package/assets/Link.css +1 -0
  173. package/assets/LinkButton.css +1 -0
  174. package/assets/ListBoxSection.css +1 -0
  175. package/assets/Logo.css +1 -0
  176. package/assets/ProgressBar.css +1 -0
  177. package/assets/Radio.css +1 -0
  178. package/assets/RangeCalendar.css +1 -0
  179. package/assets/SearchField.css +1 -0
  180. package/assets/Select.css +1 -0
  181. package/assets/Skeleton.css +1 -0
  182. package/assets/Spinner.css +1 -0
  183. package/assets/Table.css +1 -0
  184. package/assets/Tabs.css +1 -0
  185. package/assets/Tag.css +1 -0
  186. package/assets/Text.css +1 -0
  187. package/assets/TextField.css +1 -0
  188. package/assets/Toast.css +1 -0
  189. package/assets/ToggleButtonGroup.css +1 -0
  190. package/assets/Tooltip.css +1 -0
  191. package/badge/index.cjs +1 -0
  192. package/badge/index.js +5 -0
  193. package/breadcrumbs/index.cjs +1 -0
  194. package/breadcrumbs/index.js +4 -0
  195. package/button/index.cjs +1 -0
  196. package/button/index.js +6 -0
  197. package/calendar/CalendarHeader.d.ts +2 -1
  198. package/calendar/index.cjs +1 -0
  199. package/calendar/index.js +5 -0
  200. package/card/Card.d.ts +3 -0
  201. package/card/index.cjs +1 -0
  202. package/card/index.js +10 -0
  203. package/character-counter/index.cjs +1 -0
  204. package/character-counter/index.js +4 -0
  205. package/check-CLF6Yxza.js +11 -0
  206. package/check-Dw9c62O4.cjs +6 -0
  207. package/checkbox/index.cjs +1 -0
  208. package/checkbox/index.js +6 -0
  209. package/chevron-down-C2E7aZ3N.cjs +6 -0
  210. package/chevron-down-Cd1bkzXT.js +13 -0
  211. package/clsx-C11secjj.cjs +1 -0
  212. package/clsx-OuTLNxxd.js +16 -0
  213. package/color-scheme-switch/index.cjs +1 -0
  214. package/color-scheme-switch/index.js +4 -0
  215. package/combobox/ComboBox.d.ts +9 -5
  216. package/combobox/index.cjs +1 -0
  217. package/combobox/index.d.ts +1 -1
  218. package/combobox/index.js +7 -0
  219. package/combobox/types.d.ts +6 -0
  220. package/combobox/utils.d.ts +3 -10
  221. package/common/types.d.ts +2 -0
  222. package/context-B8cn10po.js +80 -0
  223. package/context-DjwhtgxQ.cjs +1 -0
  224. package/createLucideIcon-DAY4oS-S.cjs +21 -0
  225. package/createLucideIcon-DeWljiyi.js +79 -0
  226. package/date-field/index.cjs +1 -0
  227. package/date-field/index.js +8 -0
  228. package/date-picker/index.cjs +1 -0
  229. package/date-picker/index.js +5 -0
  230. package/dropdown/index.cjs +1 -0
  231. package/dropdown/index.js +5 -0
  232. package/field-error/FieldError.d.ts +4 -1
  233. package/field-error/index.cjs +1 -0
  234. package/field-error/index.js +4 -0
  235. package/file-upload/index.cjs +1 -0
  236. package/file-upload/index.js +4 -0
  237. package/filterDOMProps-BS2lrgFA.cjs +1 -0
  238. package/filterDOMProps-D6KHYVBX.js +24 -0
  239. package/focusSafely-Bqfo_DH7.cjs +1 -0
  240. package/focusSafely-C48ucRUz.js +56 -0
  241. package/getScrollParent-DuKmPmUa.cjs +1 -0
  242. package/getScrollParent-Ru2U2LlM.js +9 -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-BSMrH_Du.js +120 -0
  251. package/index-D97L3EBk.cjs +17 -0
  252. package/index.cjs +1 -164
  253. package/index.d.ts +1 -1
  254. package/index.js +127 -30044
  255. package/inertValue-B7loUihk.js +8 -0
  256. package/inertValue-BWmZ1afe.cjs +1 -0
  257. package/info-DkzVqB8I.js +38 -0
  258. package/info-DlzSeKbc.cjs +16 -0
  259. package/info-banner/index.cjs +1 -0
  260. package/info-banner/index.js +4 -0
  261. package/label/index.cjs +1 -0
  262. package/label/index.js +4 -0
  263. package/layout/index.cjs +1 -0
  264. package/layout/index.js +8 -0
  265. package/link/Link.d.ts +4 -1
  266. package/link/index.cjs +1 -0
  267. package/link/index.js +6 -0
  268. package/link-button/LinkButton.d.ts +24 -1
  269. package/link-button/index.cjs +1 -0
  270. package/link-button/index.js +6 -0
  271. package/list-box/ListBox.d.ts +4 -0
  272. package/list-box/ListBoxButton.d.ts +2 -0
  273. package/list-box/ListBoxItem.d.ts +3 -0
  274. package/list-box/ListBoxPopover.d.ts +3 -0
  275. package/list-box/ListBoxSection.d.ts +8 -0
  276. package/list-box/index.cjs +1 -0
  277. package/list-box/index.d.ts +6 -0
  278. package/list-box/index.js +9 -0
  279. package/list-box/types.d.ts +23 -0
  280. package/logo/index.cjs +1 -0
  281. package/logo/index.js +4 -0
  282. package/modal/index.cjs +1 -0
  283. package/modal/index.js +6 -0
  284. package/number-BE8InLgI.js +6 -0
  285. package/number-E0x3H9cL.cjs +1 -0
  286. package/package.json +4 -4
  287. package/progress-bar/index.cjs +1 -0
  288. package/progress-bar/index.js +4 -0
  289. package/radio/index.cjs +1 -0
  290. package/radio/index.js +5 -0
  291. package/scrollIntoView-ClEACHUk.js +57 -0
  292. package/scrollIntoView-DRSoJp89.cjs +1 -0
  293. package/search-field/index.cjs +1 -0
  294. package/search-field/index.js +4 -0
  295. package/select/HiddenMultiSelect.d.ts +5 -4
  296. package/select/MultiSelectValueTag.d.ts +11 -0
  297. package/select/Select.d.ts +2 -77
  298. package/select/SelectFieldError.d.ts +8 -0
  299. package/select/SelectListBox.d.ts +4 -3
  300. package/select/SelectTrigger.d.ts +10 -0
  301. package/select/index.cjs +1 -0
  302. package/select/index.d.ts +1 -0
  303. package/select/index.js +4 -0
  304. package/select/types.d.ts +188 -0
  305. package/select/useMultiSelect.d.ts +4 -21
  306. package/select/useMultiSelectListState.d.ts +3 -15
  307. package/select/useMultiSelectState.d.ts +3 -19
  308. package/skeleton/Skeleton.d.ts +5 -0
  309. package/skeleton/index.cjs +1 -0
  310. package/skeleton/index.js +4 -0
  311. package/spinner/index.cjs +1 -0
  312. package/spinner/index.js +4 -0
  313. package/square-arrow-out-up-right-BCAO2eJs.cjs +6 -0
  314. package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
  315. package/table/Table.d.ts +7 -1
  316. package/table/index.cjs +1 -0
  317. package/table/index.js +9 -0
  318. package/tabs/index.cjs +1 -0
  319. package/tabs/index.js +4 -0
  320. package/tag/index.cjs +1 -0
  321. package/tag/index.js +5 -0
  322. package/text/index.cjs +1 -0
  323. package/text/index.js +4 -0
  324. package/textfield/index.cjs +1 -0
  325. package/textfield/index.js +7 -0
  326. package/theme/index.cjs +1 -0
  327. package/theme/index.d.ts +4 -0
  328. package/{theme.js → theme/index.js} +2 -2
  329. package/theme/tokens.d.ts +10 -0
  330. package/toast/index.cjs +1 -0
  331. package/toast/index.js +9 -0
  332. package/toggle-button/index.cjs +1 -0
  333. package/toggle-button/index.js +5 -0
  334. package/tokens-p6pg1Cea.cjs +1 -0
  335. package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
  336. package/tooltip/index.cjs +1 -0
  337. package/tooltip/index.js +5 -0
  338. package/triangle-alert-C0lvfCYH.cjs +6 -0
  339. package/triangle-alert-wxyxspAl.js +21 -0
  340. package/useButton-B1Fa-6qE.cjs +1 -0
  341. package/useButton-C-Lq7CNY.js +47 -0
  342. package/useCollator-C_ozeWLo.cjs +1 -0
  343. package/useCollator-CgZcHC8N.js +11 -0
  344. package/useControlledState-D0L6S_5r.cjs +1 -0
  345. package/useControlledState-u436Wbp1.js +30 -0
  346. package/useDateFormatter-C53Uxdli.js +1571 -0
  347. package/useDateFormatter-g2maMTGH.cjs +1 -0
  348. package/useDescription-CVKhFa3c.js +32 -0
  349. package/useDescription-DmQYSEES.cjs +1 -0
  350. package/useEvent-CjkbBniY.cjs +1 -0
  351. package/useEvent-Cyd2ZL0c.js +21 -0
  352. package/useField-B1RU0GKs.cjs +1 -0
  353. package/useField-BPMAlIbU.js +35 -0
  354. package/useFilter-ChIbnALW.js +35 -0
  355. package/useFilter-CtIwF2qW.cjs +1 -0
  356. package/useFocusRing-BDGH3lpn.js +82 -0
  357. package/useFocusRing-CbImDrwF.cjs +1 -0
  358. package/useFocusable-CaedRTpB.js +74 -0
  359. package/useFocusable-CuPQ7Cm5.cjs +1 -0
  360. package/useFormValidation-ClximP89.cjs +1 -0
  361. package/useFormValidation-R8hQIjWP.js +215 -0
  362. package/useHasTabbableChild-DgphNvnk.cjs +1 -0
  363. package/useHasTabbableChild-DsD9AJwE.js +34 -0
  364. package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
  365. package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
  366. package/useHover-_mv5J4_q.cjs +1 -0
  367. package/useHover-qRAon4nS.js +490 -0
  368. package/useLabel-DDdAJ1JO.js +23 -0
  369. package/useLabel-m_S5xkHy.cjs +1 -0
  370. package/useLabels-BLOfc6Y-.cjs +1 -0
  371. package/useLabels-BZjoZA1Z.js +17 -0
  372. package/useListState-Ca2-uZMO.cjs +1 -0
  373. package/useListState-DFQ9d-uE.js +132 -0
  374. package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
  375. package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
  376. package/useObserveElement-BdI4zgd7.js +27 -0
  377. package/useObserveElement-BzEr5D32.cjs +1 -0
  378. package/usePress-BFa6cT9o.cjs +7 -0
  379. package/usePress-CUJ3pMOw.js +542 -0
  380. package/useSingleSelectListState-C-nB8cug.js +34 -0
  381. package/useSingleSelectListState-MGNxUTum.cjs +1 -0
  382. package/useTextField-5OZQPyOW.js +86 -0
  383. package/useTextField-CtUDWsUl.cjs +1 -0
  384. package/useToggleState-Bz5rAf4C.js +18 -0
  385. package/useToggleState-DoIkSQdj.cjs +1 -0
  386. package/useUpdateEffect-CCDx8D4X.js +13 -0
  387. package/useUpdateEffect-sk3kiVGz.cjs +1 -0
  388. package/utils/test.d.ts +1 -1
  389. package/utils-BNtZbAib.cjs +1 -0
  390. package/utils-HNTsIwux.js +308 -0
  391. package/x-CvxiAZTW.cjs +6 -0
  392. package/x-JK7i-TQC.js +14 -0
  393. package/flex/Flex.d.ts +0 -17
  394. package/flex/FlexItem.d.ts +0 -15
  395. package/flex/index.d.ts +0 -2
  396. package/index.css +0 -1
  397. package/select/SelectPopover.d.ts +0 -10
  398. package/theme.cjs +0 -1
  399. package/tokens-COoF1t17.cjs +0 -1
  400. /package/{global.css → assets/global.css} +0 -0
  401. /package/{select → list-box}/SectionedListLayout.d.ts +0 -0
@@ -0,0 +1,1571 @@
1
+ import { _ as G } from "./usePress-CUJ3pMOw.js";
2
+ import { $ as yr } from "./context-B8cn10po.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
+ };