@servicetitan/anvil2 1.2.2 → 1.2.3

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 (353) hide show
  1. package/Alert-6336e146.cjs +2 -0
  2. package/Alert-6336e146.cjs.map +1 -0
  3. package/Alert-6faa0b05.js +88 -0
  4. package/Alert-6faa0b05.js.map +1 -0
  5. package/Alert.cjs +1 -1
  6. package/Alert.css +1 -1
  7. package/Alert.js +1 -1
  8. package/{Announcement-0ef0c8f7.js → Announcement-d04009ea.js} +26 -26
  9. package/Announcement-d04009ea.js.map +1 -0
  10. package/Announcement-fff87b68.cjs +2 -0
  11. package/Announcement-fff87b68.cjs.map +1 -0
  12. package/Announcement.cjs +1 -1
  13. package/Announcement.css +1 -1
  14. package/Announcement.js +1 -1
  15. package/AnvilProvider.cjs +1 -1
  16. package/AnvilProvider.js +1 -1
  17. package/Avatar.cjs +1 -1
  18. package/Avatar.js +7 -7
  19. package/Badge-0073b5a1.cjs +2 -0
  20. package/{Badge-29ed0c9e.cjs.map → Badge-0073b5a1.cjs.map} +1 -1
  21. package/Badge-f761458c.js +35 -0
  22. package/Badge-f761458c.js.map +1 -0
  23. package/Badge.cjs +1 -1
  24. package/Badge.css +1 -1
  25. package/Badge.js +1 -1
  26. package/Button-268ba8a9.cjs +2 -0
  27. package/Button-268ba8a9.cjs.map +1 -0
  28. package/Button-d05507c5.js +289 -0
  29. package/Button-d05507c5.js.map +1 -0
  30. package/Button.cjs +1 -1
  31. package/Button.cjs.map +1 -1
  32. package/Button.css +1 -1
  33. package/Button.js +46 -14
  34. package/Button.js.map +1 -1
  35. package/ButtonCompound.cjs +1 -1
  36. package/ButtonCompound.cjs.map +1 -1
  37. package/ButtonCompound.js +45 -13
  38. package/ButtonCompound.js.map +1 -1
  39. package/ButtonLink.cjs +1 -1
  40. package/ButtonLink.cjs.map +1 -1
  41. package/ButtonLink.js +46 -14
  42. package/ButtonLink.js.map +1 -1
  43. package/ButtonToggle.cjs +1 -1
  44. package/ButtonToggle.cjs.map +1 -1
  45. package/ButtonToggle.js +46 -14
  46. package/ButtonToggle.js.map +1 -1
  47. package/{Calendar-fc2373b7.js → Calendar-073dc10d.js} +821 -821
  48. package/{Calendar-fc2373b7.js.map → Calendar-073dc10d.js.map} +1 -1
  49. package/{Calendar-e0743dcf.cjs → Calendar-706f41ff.cjs} +2 -2
  50. package/{Calendar-e0743dcf.cjs.map → Calendar-706f41ff.cjs.map} +1 -1
  51. package/Calendar.cjs +1 -1
  52. package/Calendar.css +1 -1
  53. package/Calendar.js +1 -1
  54. package/Card-33f3ad0a.js +51 -0
  55. package/Card-33f3ad0a.js.map +1 -0
  56. package/Card-92ebca1f.cjs +2 -0
  57. package/Card-92ebca1f.cjs.map +1 -0
  58. package/Card.cjs +1 -1
  59. package/Card.css +1 -1
  60. package/Card.js +1 -1
  61. package/{Checkbox-e2b0e7d0.js → Checkbox-d503c3b6.js} +41 -41
  62. package/Checkbox-d503c3b6.js.map +1 -0
  63. package/Checkbox-edf070c3.cjs +2 -0
  64. package/Checkbox-edf070c3.cjs.map +1 -0
  65. package/Checkbox.cjs +1 -1
  66. package/Checkbox.css +1 -1
  67. package/Checkbox.d.ts +25 -4
  68. package/Checkbox.js +4 -4
  69. package/{Chip-dbc470f4.js → Chip-a8eb2656.js} +31 -31
  70. package/Chip-a8eb2656.js.map +1 -0
  71. package/Chip-b52e1bd7.cjs +2 -0
  72. package/Chip-b52e1bd7.cjs.map +1 -0
  73. package/Chip.cjs +1 -1
  74. package/Chip.css +1 -1
  75. package/Chip.js +1 -1
  76. package/Combobox.cjs +1 -1
  77. package/Combobox.cjs.map +1 -1
  78. package/Combobox.js +65 -32
  79. package/Combobox.js.map +1 -1
  80. package/Details.cjs +1 -1
  81. package/Details.cjs.map +1 -1
  82. package/Details.js +54 -22
  83. package/Details.js.map +1 -1
  84. package/Dialog.cjs +1 -1
  85. package/Dialog.cjs.map +1 -1
  86. package/Dialog.js +70 -38
  87. package/Dialog.js.map +1 -1
  88. package/Divider-86c1f4ea.cjs +2 -0
  89. package/Divider-86c1f4ea.cjs.map +1 -0
  90. package/Divider-edca965e.js +74 -0
  91. package/Divider-edca965e.js.map +1 -0
  92. package/Divider.cjs +1 -1
  93. package/Divider.css +1 -1
  94. package/Divider.js +1 -1
  95. package/Drawer-6c2a6e0c.cjs +2 -0
  96. package/{Drawer-989d1d8a.cjs.map → Drawer-6c2a6e0c.cjs.map} +1 -1
  97. package/{Drawer-b81924d3.js → Drawer-f68286e8.js} +56 -56
  98. package/Drawer-f68286e8.js.map +1 -0
  99. package/Drawer.cjs +1 -1
  100. package/Drawer.css +1 -1
  101. package/Drawer.js +1 -1
  102. package/Flex-4b128a0e.cjs +2 -0
  103. package/{Flex-740ea6ba.cjs.map → Flex-4b128a0e.cjs.map} +1 -1
  104. package/{Flex-15fbb5a2.js → Flex-f6e67921.js} +2 -2
  105. package/{Flex-15fbb5a2.js.map → Flex-f6e67921.js.map} +1 -1
  106. package/Flex.cjs +1 -1
  107. package/Flex.css +1 -1
  108. package/Flex.js +1 -1
  109. package/{Grid-674805a9.cjs → Grid-8226f7a1.cjs} +2 -2
  110. package/{Grid-674805a9.cjs.map → Grid-8226f7a1.cjs.map} +1 -1
  111. package/{Grid-043bde66.js → Grid-992de375.js} +15 -15
  112. package/{Grid-043bde66.js.map → Grid-992de375.js.map} +1 -1
  113. package/Grid.cjs +1 -1
  114. package/Grid.css +1 -1
  115. package/Grid.js +1 -1
  116. package/{Helper-74a1f07f-18441e16.js → Helper-74a1f07f-067ae3f7.js} +2 -2
  117. package/{Helper-74a1f07f-18441e16.js.map → Helper-74a1f07f-067ae3f7.js.map} +1 -1
  118. package/{Helper-74a1f07f-2aeadeae.cjs → Helper-74a1f07f-6cf9865b.cjs} +2 -2
  119. package/{Helper-74a1f07f-2aeadeae.cjs.map → Helper-74a1f07f-6cf9865b.cjs.map} +1 -1
  120. package/Icon-ae9b951b.cjs +2 -0
  121. package/Icon-ae9b951b.cjs.map +1 -0
  122. package/Icon-fa8f3dc8.js +47 -0
  123. package/Icon-fa8f3dc8.js.map +1 -0
  124. package/Icon.cjs +1 -1
  125. package/Icon.css +1 -1
  126. package/Icon.js +1 -1
  127. package/Link.cjs +1 -1
  128. package/Link.cjs.map +1 -1
  129. package/Link.d.ts +2 -1
  130. package/Link.js +49 -17
  131. package/Link.js.map +1 -1
  132. package/{ListView-b33a9948.cjs → ListView-14d80585.cjs} +2 -2
  133. package/{ListView-b33a9948.cjs.map → ListView-14d80585.cjs.map} +1 -1
  134. package/{ListView-dac3c924.js → ListView-1f75e2de.js} +26 -26
  135. package/{ListView-dac3c924.js.map → ListView-1f75e2de.js.map} +1 -1
  136. package/ListView.cjs +1 -1
  137. package/ListView.css +1 -1
  138. package/ListView.js +1 -1
  139. package/Listbox-306a8d62.cjs +2 -0
  140. package/{Listbox-873403e9.cjs.map → Listbox-306a8d62.cjs.map} +1 -1
  141. package/{Listbox-7a43984b.js → Listbox-cdf02568.js} +81 -81
  142. package/{Listbox-7a43984b.js.map → Listbox-cdf02568.js.map} +1 -1
  143. package/Listbox.cjs +1 -1
  144. package/Listbox.css +1 -1
  145. package/Listbox.js +1 -1
  146. package/Menu.cjs +1 -1
  147. package/Menu.cjs.map +1 -1
  148. package/Menu.d.ts +7 -2
  149. package/Menu.js +3 -3
  150. package/Overflow.cjs +1 -1
  151. package/Overflow.cjs.map +1 -1
  152. package/Overflow.js +56 -24
  153. package/Overflow.js.map +1 -1
  154. package/Page.cjs +1 -1
  155. package/Page.js +2 -2
  156. package/Popover.cjs +1 -1
  157. package/Popover.cjs.map +1 -1
  158. package/Popover.d.ts +22 -1
  159. package/Popover.js +68 -36
  160. package/Popover.js.map +1 -1
  161. package/ProgressBar-29d21945.cjs +2 -0
  162. package/ProgressBar-29d21945.cjs.map +1 -0
  163. package/{ProgressBar-f9325dbe.js → ProgressBar-5f350a3f.js} +93 -93
  164. package/ProgressBar-5f350a3f.js.map +1 -0
  165. package/ProgressBar.cjs +1 -1
  166. package/ProgressBar.css +1 -1
  167. package/ProgressBar.js +1 -1
  168. package/Radio-4189b000.js +124 -0
  169. package/Radio-4189b000.js.map +1 -0
  170. package/Radio-abd4d3fd.cjs +2 -0
  171. package/Radio-abd4d3fd.cjs.map +1 -0
  172. package/Radio.cjs +1 -1
  173. package/Radio.cjs.map +1 -1
  174. package/Radio.css +1 -1
  175. package/Radio.d.ts +18 -4
  176. package/Radio.js +1 -1
  177. package/Radio.js.map +1 -1
  178. package/{SideNav-369bf761.cjs → SideNav-6de704fd.cjs} +6 -6
  179. package/{SideNav-369bf761.cjs.map → SideNav-6de704fd.cjs.map} +1 -1
  180. package/{SideNav-94ab00f0.js → SideNav-e92d850f.js} +136 -136
  181. package/{SideNav-94ab00f0.js.map → SideNav-e92d850f.js.map} +1 -1
  182. package/SideNav.cjs +2 -2
  183. package/SideNav.css +1 -1
  184. package/SideNav.js +1 -1
  185. package/Stepper-e776cc28.cjs +2 -0
  186. package/Stepper-e776cc28.cjs.map +1 -0
  187. package/{Stepper-54e47376.js → Stepper-fa554908.js} +140 -140
  188. package/Stepper-fa554908.js.map +1 -0
  189. package/Stepper.cjs +1 -1
  190. package/Stepper.css +1 -1
  191. package/Stepper.js +1 -1
  192. package/Switch-285b3272.cjs +2 -0
  193. package/Switch-285b3272.cjs.map +1 -0
  194. package/Switch-b0a37fc1.js +54 -0
  195. package/Switch-b0a37fc1.js.map +1 -0
  196. package/Switch.cjs +1 -1
  197. package/Switch.css +1 -1
  198. package/Switch.js +1 -1
  199. package/{Tab-120468a3.js → Tab-1934a4ca.js} +80 -80
  200. package/{Tab-120468a3.js.map → Tab-1934a4ca.js.map} +1 -1
  201. package/Tab-ad70a0a5.cjs +10 -0
  202. package/{Tab-3de6894a.cjs.map → Tab-ad70a0a5.cjs.map} +1 -1
  203. package/Tab.cjs +1 -1
  204. package/Tab.css +1 -1
  205. package/Tab.js +1 -1
  206. package/{Text-a7747376.js → Text-4c30916c.js} +31 -31
  207. package/Text-4c30916c.js.map +1 -0
  208. package/Text-ed02cc62.cjs +2 -0
  209. package/Text-ed02cc62.cjs.map +1 -0
  210. package/Text.cjs +1 -1
  211. package/Text.css +1 -1
  212. package/Text.js +1 -1
  213. package/TextField.cjs +1 -1
  214. package/TextField.cjs.map +1 -1
  215. package/TextField.js +47 -15
  216. package/TextField.js.map +1 -1
  217. package/Textarea.cjs +1 -1
  218. package/Textarea.cjs.map +1 -1
  219. package/Textarea.js +51 -19
  220. package/Textarea.js.map +1 -1
  221. package/ThemeProvider.cjs +1 -1
  222. package/ThemeProvider.js +1 -1
  223. package/{Toast-4bab713a.cjs → Toast-834c85cd.cjs} +6 -6
  224. package/{Toast-4bab713a.cjs.map → Toast-834c85cd.cjs.map} +1 -1
  225. package/{Toast-5b02b7c0.js → Toast-f15e9d36.js} +141 -141
  226. package/Toast-f15e9d36.js.map +1 -0
  227. package/Toast.cjs +1 -1
  228. package/Toast.css +1 -1
  229. package/Toast.js +1 -1
  230. package/Tooltip.cjs +1 -1
  231. package/Tooltip.cjs.map +1 -1
  232. package/Tooltip.d.ts +2 -1
  233. package/Tooltip.js +47 -17
  234. package/Tooltip.js.map +1 -1
  235. package/anvil2.cjs +1 -1
  236. package/anvil2.d.ts +62 -11
  237. package/anvil2.js +40 -40
  238. package/floating-ui.react-5347095a.cjs +178 -0
  239. package/floating-ui.react-5347095a.cjs.map +1 -0
  240. package/{floating-ui.react-3f85fcd1.js → floating-ui.react-8d61182d.js} +5666 -5654
  241. package/floating-ui.react-8d61182d.js.map +1 -0
  242. package/index-098ca719-3c14c40c.js +307 -0
  243. package/index-098ca719-3c14c40c.js.map +1 -0
  244. package/index-098ca719-8e068129.cjs +2 -0
  245. package/index-098ca719-8e068129.cjs.map +1 -0
  246. package/index-098ca719.css +1 -0
  247. package/{index-5654965e.js → index-439b5871.js} +4 -4
  248. package/{index-5654965e.js.map → index-439b5871.js.map} +1 -1
  249. package/{index-a6d2f789.js → index-8ee9499c.js} +682 -673
  250. package/{index-a6d2f789.js.map → index-8ee9499c.js.map} +1 -1
  251. package/{index-ebc2776c.js → index-ab05dabf.js} +2 -2
  252. package/{index-ebc2776c.js.map → index-ab05dabf.js.map} +1 -1
  253. package/{index-0c3dd58b.cjs → index-acdc415f.cjs} +2 -2
  254. package/{index-0c3dd58b.cjs.map → index-acdc415f.cjs.map} +1 -1
  255. package/{index-d46fa8de-cc49032b.cjs → index-d46fa8de-08092573.cjs} +2 -2
  256. package/{index-d46fa8de-cc49032b.cjs.map → index-d46fa8de-08092573.cjs.map} +1 -1
  257. package/{index-d46fa8de-997b6b08.js → index-d46fa8de-8695742b.js} +15 -15
  258. package/{index-d46fa8de-997b6b08.js.map → index-d46fa8de-8695742b.js.map} +1 -1
  259. package/index-da56edbc-372336bd.js +120 -0
  260. package/index-da56edbc-372336bd.js.map +1 -0
  261. package/index-da56edbc-53f59f54.cjs +2 -0
  262. package/index-da56edbc-53f59f54.cjs.map +1 -0
  263. package/index-da56edbc.css +1 -0
  264. package/{index-51c8d206.cjs → index-dfb6272f.cjs} +5 -5
  265. package/{index-51c8d206.cjs.map → index-dfb6272f.cjs.map} +1 -1
  266. package/{index-30317fba.cjs → index-f6c22572.cjs} +2 -2
  267. package/{index-30317fba.cjs.map → index-f6c22572.cjs.map} +1 -1
  268. package/index3.css +1 -1
  269. package/package.json +33 -33
  270. package/token.cjs +1 -1
  271. package/token.js +1 -1
  272. package/useAccessibleColor.cjs +1 -1
  273. package/useAccessibleColor.js +29 -29
  274. package/useLinkStyles.cjs +1 -1
  275. package/useLinkStyles.js +29 -29
  276. package/useMergeRefs.cjs +1 -1
  277. package/useMergeRefs.js +30 -30
  278. package/usePrefersColorScheme.cjs +1 -1
  279. package/usePrefersColorScheme.js +29 -29
  280. package/useSwipe.cjs +1 -1
  281. package/useSwipe.js +29 -29
  282. package/Alert-017471de.js +0 -88
  283. package/Alert-017471de.js.map +0 -1
  284. package/Alert-3ae85e66.cjs +0 -2
  285. package/Alert-3ae85e66.cjs.map +0 -1
  286. package/Announcement-0ef0c8f7.js.map +0 -1
  287. package/Announcement-3540ab95.cjs +0 -2
  288. package/Announcement-3540ab95.cjs.map +0 -1
  289. package/Badge-29ed0c9e.cjs +0 -2
  290. package/Badge-2dc92a40.js +0 -35
  291. package/Badge-2dc92a40.js.map +0 -1
  292. package/Button-dbbb8dc0.js +0 -289
  293. package/Button-dbbb8dc0.js.map +0 -1
  294. package/Button-df4be721.cjs +0 -2
  295. package/Button-df4be721.cjs.map +0 -1
  296. package/Card-42198f6c.cjs +0 -2
  297. package/Card-42198f6c.cjs.map +0 -1
  298. package/Card-d7d23388.js +0 -51
  299. package/Card-d7d23388.js.map +0 -1
  300. package/Checkbox-949d5f00.cjs +0 -2
  301. package/Checkbox-949d5f00.cjs.map +0 -1
  302. package/Checkbox-e2b0e7d0.js.map +0 -1
  303. package/Chip-c1c9ff14.cjs +0 -2
  304. package/Chip-c1c9ff14.cjs.map +0 -1
  305. package/Chip-dbc470f4.js.map +0 -1
  306. package/Divider-6e94652c.js +0 -74
  307. package/Divider-6e94652c.js.map +0 -1
  308. package/Divider-9719b490.cjs +0 -2
  309. package/Divider-9719b490.cjs.map +0 -1
  310. package/Drawer-989d1d8a.cjs +0 -2
  311. package/Drawer-b81924d3.js.map +0 -1
  312. package/Flex-740ea6ba.cjs +0 -2
  313. package/Icon-7dc0db59.js +0 -47
  314. package/Icon-7dc0db59.js.map +0 -1
  315. package/Icon-d02abfdd.cjs +0 -2
  316. package/Icon-d02abfdd.cjs.map +0 -1
  317. package/Listbox-873403e9.cjs +0 -2
  318. package/Menu-0a24f1ba.js +0 -284
  319. package/Menu-0a24f1ba.js.map +0 -1
  320. package/Menu-869a24e2.cjs +0 -2
  321. package/Menu-869a24e2.cjs.map +0 -1
  322. package/Menu.css +0 -1
  323. package/ProgressBar-2589ad1b.cjs +0 -2
  324. package/ProgressBar-2589ad1b.cjs.map +0 -1
  325. package/ProgressBar-f9325dbe.js.map +0 -1
  326. package/Radio-c81308ef.js +0 -124
  327. package/Radio-c81308ef.js.map +0 -1
  328. package/Radio-e11ee699.cjs +0 -2
  329. package/Radio-e11ee699.cjs.map +0 -1
  330. package/Stepper-54e47376.js.map +0 -1
  331. package/Stepper-e26d5bac.cjs +0 -2
  332. package/Stepper-e26d5bac.cjs.map +0 -1
  333. package/Switch-c4977b9b.js +0 -54
  334. package/Switch-c4977b9b.js.map +0 -1
  335. package/Switch-f1d54e52.cjs +0 -2
  336. package/Switch-f1d54e52.cjs.map +0 -1
  337. package/Tab-3de6894a.cjs +0 -10
  338. package/Text-a7747376.js.map +0 -1
  339. package/Text-eefa573a.cjs +0 -2
  340. package/Text-eefa573a.cjs.map +0 -1
  341. package/Toast-5b02b7c0.js.map +0 -1
  342. package/floating-ui.react-3f85fcd1.js.map +0 -1
  343. package/floating-ui.react-518bb704.cjs +0 -178
  344. package/floating-ui.react-518bb704.cjs.map +0 -1
  345. package/index-f3ce3681-94450aba.js +0 -120
  346. package/index-f3ce3681-94450aba.js.map +0 -1
  347. package/index-f3ce3681-b0bee9d9.cjs +0 -2
  348. package/index-f3ce3681-b0bee9d9.cjs.map +0 -1
  349. package/index-f3ce3681.css +0 -1
  350. package/ui-react-7152d718.js +0 -53
  351. package/ui-react-7152d718.js.map +0 -1
  352. package/ui-react-7f005f46.cjs +0 -2
  353. package/ui-react-7f005f46.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- var Bi=require("./Calendar.css");const S=require("./jsx-runtime-944c88e2-2b81c205.cjs"),b=require("react"),Ft=require("./Button-df4be721.cjs"),Ve=require("./index-67d20edb.cjs"),Fr=require("./useLayoutPropsUtil-e307abc7-3826ee09.cjs"),Cr=require("./useSwipe-82769b09-dba26ed2.cjs"),Vr=require("./SrOnly-ecf7240b.cjs");function Wr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Xe=Wr(b);class fe extends Error{}class Lr extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $r extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Zr extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class we extends fe{}class kn extends fe{constructor(e){super(`Invalid unit ${e}`)}}class Z extends fe{}class ne extends fe{constructor(){super("Zone is an abstract class")}}const c="numeric",K="short",z="long",et={year:c,month:c,day:c},Sn={year:c,month:K,day:c},Ar={year:c,month:K,day:c,weekday:K},On={year:c,month:z,day:c},Tn={year:c,month:z,day:c,weekday:z},vn={hour:c,minute:c},Mn={hour:c,minute:c,second:c},Dn={hour:c,minute:c,second:c,timeZoneName:K},Nn={hour:c,minute:c,second:c,timeZoneName:z},xn={hour:c,minute:c,hourCycle:"h23"},In={hour:c,minute:c,second:c,hourCycle:"h23"},En={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:K},bn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:z},Fn={year:c,month:c,day:c,hour:c,minute:c},Cn={year:c,month:c,day:c,hour:c,minute:c,second:c},Vn={year:c,month:K,day:c,hour:c,minute:c},Wn={year:c,month:K,day:c,hour:c,minute:c,second:c},_r={year:c,month:K,day:c,weekday:K,hour:c,minute:c},Ln={year:c,month:z,day:c,hour:c,minute:c,timeZoneName:K},$n={year:c,month:z,day:c,hour:c,minute:c,second:c,timeZoneName:K},Zn={year:c,month:z,day:c,weekday:z,hour:c,minute:c,timeZoneName:z},An={year:c,month:z,day:c,weekday:z,hour:c,minute:c,second:c,timeZoneName:z};class Ze{get type(){throw new ne}get name(){throw new ne}get ianaName(){return this.name}get isUniversal(){throw new ne}offsetName(e,n){throw new ne}formatOffset(e,n){throw new ne}offset(e){throw new ne}equals(e){throw new ne}get isValid(){throw new ne}}let yt=null;class lt extends Ze{static get instance(){return yt===null&&(yt=new lt),yt}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return jn(e,n,r)}formatOffset(e,n){return We(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Je={};function zr(t){return Je[t]||(Je[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Je[t]}const Rr={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Ur(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,l,u,d]=r;return[a,s,i,o,l,u,d]}function qr(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:i,value:a}=n[s],o=Rr[i];i==="era"?r[o]=a:w(o)||(r[o]=parseInt(a,10))}return r}let qe={};class ee extends Ze{static create(e){return qe[e]||(qe[e]=new ee(e)),qe[e]}static resetCache(){qe={},Je={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ee.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return jn(e,n,r,this.name)}formatOffset(e,n){return We(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=zr(this.name);let[s,i,a,o,l,u,d]=r.formatToParts?qr(r,n):Ur(r,n);o==="BC"&&(s=-Math.abs(s)+1);const v=ct({year:s,month:i,day:a,hour:l===24?0:l,minute:u,second:d,millisecond:0});let f=+n;const g=f%1e3;return f-=g>=0?g:1e3+g,(v-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ut={};function Hr(t,e={}){const n=JSON.stringify([t,e]);let r=Ut[n];return r||(r=new Intl.ListFormat(t,e),Ut[n]=r),r}let vt={};function Mt(t,e={}){const n=JSON.stringify([t,e]);let r=vt[n];return r||(r=new Intl.DateTimeFormat(t,e),vt[n]=r),r}let Dt={};function Yr(t,e={}){const n=JSON.stringify([t,e]);let r=Dt[n];return r||(r=new Intl.NumberFormat(t,e),Dt[n]=r),r}let Nt={};function Pr(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=Nt[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Nt[s]=i),i}let Fe=null;function jr(){return Fe||(Fe=new Intl.DateTimeFormat().resolvedOptions().locale,Fe)}let qt={};function Gr(t){let e=qt[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,qt[t]=e}return e}function Jr(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,s;try{r=Mt(t).resolvedOptions(),s=t}catch{const l=t.substring(0,n);r=Mt(l).resolvedOptions(),s=l}const{numberingSystem:i,calendar:a}=r;return[s,i,a]}}function Br(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Kr(t){const e=[];for(let n=1;n<=12;n++){const r=y.utc(2009,n,1);e.push(t(r))}return e}function Qr(t){const e=[];for(let n=1;n<=7;n++){const r=y.utc(2016,11,13+n);e.push(t(r))}return e}function He(t,e,n,r){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):r(e)}function Xr(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class es{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const o={useGrouping:!1,...r};r.padTo>0&&(o.minimumIntegerDigits=r.padTo),this.inf=Yr(e,o)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Lt(e,3);return F(n,this.padTo)}}}class ts{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&ee.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Mt(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ns{constructor(e,n,r){this.opts={style:"long",...r},!n&&Yn()&&(this.rtf=Pr(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Ts(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const rs={firstDay:1,minimalDays:4,weekend:[6,7]};class D{static fromOpts(e){return D.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,s,i=!1){const a=e||I.defaultLocale,o=a||(i?"en-US":jr()),l=n||I.defaultNumberingSystem,u=r||I.defaultOutputCalendar,d=xt(s)||I.defaultWeekSettings;return new D(o,l,u,d,a)}static resetCache(){Fe=null,vt={},Dt={},Nt={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:s}={}){return D.create(e,n,r,s)}constructor(e,n,r,s,i){const[a,o,l]=Jr(e);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=r||l||null,this.weekSettings=s,this.intl=Br(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Xr(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:D.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,xt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return He(this,e,Bn,()=>{const r=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=Kr(i=>this.extract(i,r,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return He(this,e,Xn,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Qr(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return He(this,void 0,()=>er,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[y.utc(2016,11,13,9),y.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return He(this,e,tr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[y.utc(-40,1,1),y.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new es(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new ts(e,this.intl,n)}relFormatter(e={}){return new ns(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Hr(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Pn()?Gr(this.locale):rs}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let gt=null;class L extends Ze{static get utcInstance(){return gt===null&&(gt=new L(0)),gt}static instance(e){return e===0?L.utcInstance:new L(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new L(dt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${We(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${We(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return We(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class ss extends Ze{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ae(t,e){if(w(t)||t===null)return e;if(t instanceof Ze)return t;if(os(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?lt.instance:n==="utc"||n==="gmt"?L.utcInstance:L.parseSpecifier(n)||ee.create(t)}else return de(t)?L.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new ss(t)}let Ht=()=>Date.now(),Yt="system",Pt=null,jt=null,Gt=null,Jt=60,Bt,Kt=null;class I{static get now(){return Ht}static set now(e){Ht=e}static set defaultZone(e){Yt=e}static get defaultZone(){return ae(Yt,lt.instance)}static get defaultLocale(){return Pt}static set defaultLocale(e){Pt=e}static get defaultNumberingSystem(){return jt}static set defaultNumberingSystem(e){jt=e}static get defaultOutputCalendar(){return Gt}static set defaultOutputCalendar(e){Gt=e}static get defaultWeekSettings(){return Kt}static set defaultWeekSettings(e){Kt=xt(e)}static get twoDigitCutoffYear(){return Jt}static set twoDigitCutoffYear(e){Jt=e%100}static get throwOnInvalid(){return Bt}static set throwOnInvalid(e){Bt=e}static resetCaches(){D.resetCache(),ee.resetCache()}}class B{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const _n=[0,31,59,90,120,151,181,212,243,273,304,334],zn=[0,31,60,91,121,152,182,213,244,274,305,335];function q(t,e){return new B("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Ct(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function Rn(t,e,n){return n+(Ae(t)?zn:_n)[e-1]}function Un(t,e){const n=Ae(t)?zn:_n,r=n.findIndex(i=>i<e),s=e-n[r];return{month:r+1,day:s}}function Vt(t,e){return(t-e+7)%7+1}function tt(t,e=4,n=1){const{year:r,month:s,day:i}=t,a=Rn(r,s,i),o=Vt(Ct(r,s,i),n);let l=Math.floor((a-o+14-e)/7),u;return l<1?(u=r-1,l=$e(u,e,n)):l>$e(r,e,n)?(u=r+1,l=1):u=r,{weekYear:u,weekNumber:l,weekday:o,...ft(t)}}function Qt(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,a=Vt(Ct(r,1,e),n),o=pe(r);let l=s*7+i-a-7+e,u;l<1?(u=r-1,l+=pe(u)):l>o?(u=r+1,l-=pe(r)):u=r;const{month:d,day:m}=Un(u,l);return{year:u,month:d,day:m,...ft(t)}}function wt(t){const{year:e,month:n,day:r}=t,s=Rn(e,n,r);return{year:e,ordinal:s,...ft(t)}}function Xt(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Un(e,n);return{year:e,month:r,day:s,...ft(t)}}function en(t,e){if(!w(t.localWeekday)||!w(t.localWeekNumber)||!w(t.localWeekYear)){if(!w(t.weekday)||!w(t.weekNumber)||!w(t.weekYear))throw new we("Cannot mix locale-based week fields with ISO-based week fields");return w(t.localWeekday)||(t.weekday=t.localWeekday),w(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),w(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function is(t,e=4,n=1){const r=ut(t.weekYear),s=H(t.weekNumber,1,$e(t.weekYear,e,n)),i=H(t.weekday,1,7);return r?s?i?!1:q("weekday",t.weekday):q("week",t.weekNumber):q("weekYear",t.weekYear)}function as(t){const e=ut(t.year),n=H(t.ordinal,1,pe(t.year));return e?n?!1:q("ordinal",t.ordinal):q("year",t.year)}function qn(t){const e=ut(t.year),n=H(t.month,1,12),r=H(t.day,1,nt(t.year,t.month));return e?n?r?!1:q("day",t.day):q("month",t.month):q("year",t.year)}function Hn(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=H(e,0,23)||e===24&&n===0&&r===0&&s===0,a=H(n,0,59),o=H(r,0,59),l=H(s,0,999);return i?a?o?l?!1:q("millisecond",s):q("second",r):q("minute",n):q("hour",e)}function w(t){return typeof t>"u"}function de(t){return typeof t=="number"}function ut(t){return typeof t=="number"&&t%1===0}function os(t){return typeof t=="string"}function ls(t){return Object.prototype.toString.call(t)==="[object Date]"}function Yn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Pn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function us(t){return Array.isArray(t)?t:[t]}function tn(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const i=[e(s),s];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function cs(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Se(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function xt(t){if(t==null)return null;if(typeof t!="object")throw new Z("Week settings must be an object");if(!H(t.firstDay,1,7)||!H(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!H(e,1,7)))throw new Z("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function H(t,e,n){return ut(t)&&t>=e&&t<=n}function ds(t,e){return t-e*Math.floor(t/e)}function F(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function ie(t){if(!(w(t)||t===null||t===""))return parseInt(t,10)}function le(t){if(!(w(t)||t===null||t===""))return parseFloat(t)}function Wt(t){if(!(w(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Lt(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Ae(t){return t%4===0&&(t%100!==0||t%400===0)}function pe(t){return Ae(t)?366:365}function nt(t,e){const n=ds(e-1,12)+1,r=t+(e-n)/12;return n===2?Ae(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ct(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function nn(t,e,n){return-Vt(Ct(t,1,e),n)+e-1}function $e(t,e=4,n=1){const r=nn(t,e,n),s=nn(t+1,e,n);return(pe(t)-r+s)/7}function It(t){return t>99?t:t>I.twoDigitCutoffYear?1900+t:2e3+t}function jn(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function dt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function Gn(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Z(`Invalid unit value ${t}`);return e}function rt(t,e){const n={};for(const r in t)if(Se(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=Gn(s)}return n}function We(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${F(n,2)}:${F(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${F(n,2)}${F(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ft(t){return cs(t,["hour","minute","second","millisecond"])}const fs=["January","February","March","April","May","June","July","August","September","October","November","December"],Jn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hs=["J","F","M","A","M","J","J","A","S","O","N","D"];function Bn(t){switch(t){case"narrow":return[...hs];case"short":return[...Jn];case"long":return[...fs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Kn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Qn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ms=["M","T","W","T","F","S","S"];function Xn(t){switch(t){case"narrow":return[...ms];case"short":return[...Qn];case"long":return[...Kn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const er=["AM","PM"],ys=["Before Christ","Anno Domini"],gs=["BC","AD"],ws=["B","A"];function tr(t){switch(t){case"narrow":return[...ws];case"short":return[...gs];case"long":return[...ys];default:return null}}function ps(t){return er[t.hour<12?0:1]}function ks(t,e){return Xn(e)[t.weekday-1]}function Ss(t,e){return Bn(e)[t.month-1]}function Os(t,e){return tr(e)[t.year<0?0:1]}function Ts(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${s[t][0]}`;case-1:return m?"yesterday":`last ${s[t][0]}`;case 0:return m?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,u=s[t],d=r?l?u[1]:u[2]||u[1]:l?s[t][0]:t;return a?`${o} ${d} ago`:`in ${o} ${d}`}function rn(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const vs={D:et,DD:Sn,DDD:On,DDDD:Tn,t:vn,tt:Mn,ttt:Dn,tttt:Nn,T:xn,TT:In,TTT:En,TTTT:bn,f:Fn,ff:Vn,fff:Ln,ffff:Zn,F:Cn,FF:Wn,FFF:$n,FFFF:An};class V{static create(e,n={}){return new V(e,n)}static parseFormat(e){let n=null,r="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?(r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),n=null,r="",s=!s):s||o===n?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,n=o)}return r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return vs[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return F(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(f,g)=>this.loc.extract(e,f,g),a=f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"",o=()=>r?ps(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(f,g)=>r?Ss(e,f):i(g?{month:f}:{month:f,day:"numeric"},"month"),u=(f,g)=>r?ks(e,f):i(g?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),d=f=>{const g=V.macroTokenToFormatOpts(f);return g?this.formatWithSystemDefault(e,g):f},m=f=>r?Os(e,f):i({era:f},"era"),v=f=>{switch(f){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(f)}};return rn(V.parseFormat(n),v)}formatDurationFromString(e,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=l=>u=>{const d=r(u);return d?this.num(l.get(d),u.length):u},i=V.parseFormat(n),a=i.reduce((l,{literal:u,val:d})=>u?l:l.concat(d),[]),o=e.shiftTo(...a.map(r).filter(l=>l));return rn(i,s(o))}}const nr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Oe(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Te(...t){return e=>t.reduce(([n,r,s],i)=>{const[a,o,l]=i(e,s);return[{...n,...a},o||r,l]},[{},null,1]).slice(0,2)}function ve(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function rr(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=ie(e[n+s]);return[r,null,n+s]}}const sr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ms=`(?:${sr.source}?(?:\\[(${nr.source})\\])?)?`,$t=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ir=RegExp(`${$t.source}${Ms}`),Zt=RegExp(`(?:T${ir.source})?`),Ds=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ns=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xs=/(\d{4})-?(\d{3})/,Is=rr("weekYear","weekNumber","weekDay"),Es=rr("year","ordinal"),bs=/(\d{4})-(\d\d)-(\d\d)/,ar=RegExp(`${$t.source} ?(?:${sr.source}|(${nr.source}))?`),Fs=RegExp(`(?: ${ar.source})?`);function ke(t,e,n){const r=t[e];return w(r)?n:ie(r)}function Cs(t,e){return[{year:ke(t,e),month:ke(t,e+1,1),day:ke(t,e+2,1)},null,e+3]}function Me(t,e){return[{hours:ke(t,e,0),minutes:ke(t,e+1,0),seconds:ke(t,e+2,0),milliseconds:Wt(t[e+3])},null,e+4]}function _e(t,e){const n=!t[e]&&!t[e+1],r=dt(t[e+1],t[e+2]),s=n?null:L.instance(r);return[{},s,e+3]}function ze(t,e){const n=t[e]?ee.create(t[e]):null;return[{},n,e+1]}const Vs=RegExp(`^T?${$t.source}$`),Ws=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ls(t){const[e,n,r,s,i,a,o,l,u]=t,d=e[0]==="-",m=l&&l[0]==="-",v=(f,g=!1)=>f!==void 0&&(g||f&&d)?-f:f;return[{years:v(le(n)),months:v(le(r)),weeks:v(le(s)),days:v(le(i)),hours:v(le(a)),minutes:v(le(o)),seconds:v(le(l),l==="-0"),milliseconds:v(Wt(u),m)}]}const $s={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function At(t,e,n,r,s,i,a){const o={year:e.length===2?It(ie(e)):ie(e),month:Jn.indexOf(n)+1,day:ie(r),hour:ie(s),minute:ie(i)};return a&&(o.second=ie(a)),t&&(o.weekday=t.length>3?Kn.indexOf(t)+1:Qn.indexOf(t)+1),o}const Zs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function As(t){const[,e,n,r,s,i,a,o,l,u,d,m]=t,v=At(e,s,r,n,i,a,o);let f;return l?f=$s[l]:u?f=0:f=dt(d,m),[v,new L(f)]}function _s(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const zs=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Rs=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Us=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function sn(t){const[,e,n,r,s,i,a,o]=t;return[At(e,s,r,n,i,a,o),L.utcInstance]}function qs(t){const[,e,n,r,s,i,a,o]=t;return[At(e,o,n,r,s,i,a),L.utcInstance]}const Hs=Oe(Ds,Zt),Ys=Oe(Ns,Zt),Ps=Oe(xs,Zt),js=Oe(ir),or=Te(Cs,Me,_e,ze),Gs=Te(Is,Me,_e,ze),Js=Te(Es,Me,_e,ze),Bs=Te(Me,_e,ze);function Ks(t){return ve(t,[Hs,or],[Ys,Gs],[Ps,Js],[js,Bs])}function Qs(t){return ve(_s(t),[Zs,As])}function Xs(t){return ve(t,[zs,sn],[Rs,sn],[Us,qs])}function ei(t){return ve(t,[Ws,Ls])}const ti=Te(Me);function ni(t){return ve(t,[Vs,ti])}const ri=Oe(bs,Fs),si=Oe(ar),ii=Te(Me,_e,ze);function ai(t){return ve(t,[ri,or],[si,ii])}const an="Invalid Duration",lr={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},oi={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lr},U=146097/400,ye=146097/4800,li={years:{quarters:4,months:12,weeks:U/7,days:U,hours:U*24,minutes:U*24*60,seconds:U*24*60*60,milliseconds:U*24*60*60*1e3},quarters:{months:3,weeks:U/28,days:U/4,hours:U*24/4,minutes:U*24*60/4,seconds:U*24*60*60/4,milliseconds:U*24*60*60*1e3/4},months:{weeks:ye/7,days:ye,hours:ye*24,minutes:ye*24*60,seconds:ye*24*60*60,milliseconds:ye*24*60*60*1e3},...lr},ce=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ui=ce.slice(0).reverse();function re(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new T(r)}function ur(t,e){let n=e.milliseconds??0;for(const r of ui.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function on(t,e){const n=ur(t,e)<0?-1:1;ce.reduceRight((r,s)=>{if(w(e[s]))return r;if(r){const i=e[r]*n,a=t[s][r],o=Math.floor(i/a);e[s]+=o*n,e[r]-=o*a*n}return s},null),ce.reduce((r,s)=>{if(w(e[s]))return r;if(r){const i=e[r]%1;e[r]-=i,e[s]+=i*t[r][s]}return s},null)}function ci(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class T{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?li:oi;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||D.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return T.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Z(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new T({values:rt(e,T.normalizeUnit),loc:D.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(de(e))return T.fromMillis(e);if(T.isDuration(e))return e;if(typeof e=="object")return T.fromObject(e);throw new Z(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=ei(e);return r?T.fromObject(r,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=ni(e);return r?T.fromObject(r,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the Duration is invalid");const r=e instanceof B?e:new B(e,n);if(I.throwOnInvalid)throw new Zr(r);return new T({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new kn(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?V.create(this.loc,r).formatDurationFromString(this,e):an}toHuman(e={}){if(!this.isValid)return an;const n=ce.map(r=>{const s=this.values[r];return w(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(s)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Lt(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},y.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ur(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e),r={};for(const s of ce)(Se(n.values,s)||Se(this.values,s))&&(r[s]=n.get(s)+this.get(s));return re(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Gn(e(this.values[r],r));return re(this,{values:n},!0)}get(e){return this[T.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...rt(e,T.normalizeUnit)};return re(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return re(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return on(this.matrix,e),re(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=ci(this.normalize().shiftToAll().toObject());return re(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>T.normalizeUnit(a));const n={},r={},s=this.toObject();let i;for(const a of ce)if(e.indexOf(a)>=0){i=a;let o=0;for(const u in r)o+=this.matrix[u][a]*r[u],r[u]=0;de(s[a])&&(o+=s[a]);const l=Math.trunc(o);n[a]=l,r[a]=(o*1e3-l*1e3)/1e3}else de(s[a])&&(r[a]=s[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return on(this.matrix,n),re(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return re(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of ce)if(!n(this.values[r],e.values[r]))return!1;return!0}}const ge="Invalid Interval";function di(t,e){return!t||!t.isValid?x.invalid("missing or invalid start"):!e||!e.isValid?x.invalid("missing or invalid end"):e<t?x.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class x{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the Interval is invalid");const r=e instanceof B?e:new B(e,n);if(I.throwOnInvalid)throw new $r(r);return new x({invalid:r})}static fromDateTimes(e,n){const r=be(e),s=be(n),i=di(r,s);return i??new x({start:r,end:s})}static after(e,n){const r=T.fromDurationLike(n),s=be(e);return x.fromDateTimes(s,s.plus(r))}static before(e,n){const r=T.fromDurationLike(n),s=be(e);return x.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let i,a;try{i=y.fromISO(r,n),a=i.isValid}catch{a=!1}let o,l;try{o=y.fromISO(s,n),l=o.isValid}catch{l=!1}if(a&&l)return x.fromDateTimes(i,o);if(a){const u=T.fromISO(s,n);if(u.isValid)return x.after(i,u)}else if(l){const u=T.fromISO(r,n);if(u.isValid)return x.before(o,u)}}return x.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:r.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(r,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?x.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(be).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),r=[];let{s}=this,i=0;for(;s<this.e;){const a=n[i]||this.e,o=+a>+this.e?this.e:a;r.push(x.fromDateTimes(s,o)),s=o,i+=1}return r}splitBy(e){const n=T.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const a=[];for(;r<this.e;){const o=this.start.plus(n.mapUnits(l=>l*s));i=+o>+this.e?this.e:o,a.push(x.fromDateTimes(r,i)),r=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:x.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return x.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((l,u)=>l.time-u.time);for(const l of o)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&s.push(x.fromDateTimes(n,l.time)),n=null);return x.merge(s)}difference(...e){return x.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ge}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=et,n={}){return this.isValid?V.create(this.s.loc.clone(n),e).formatInterval(this):ge}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ge}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ge}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ge}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:ge}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):T.invalid(this.invalidReason)}mapEndpoints(e){return x.fromDateTimes(e(this.s),e(this.e))}}class Ce{static hasDST(e=I.defaultZone){const n=y.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ee.isValidZone(e)}static normalizeZone(e){return ae(e,I.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||D.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||D.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||D.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||D.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return D.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return D.create(n,null,"gregory").eras(e)}static features(){return{relative:Yn(),localeWeek:Pn()}}}function ln(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(T.fromMillis(r).as("days"))}function fi(t,e,n){const r=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const d=ln(l,u);return(d-d%7)/7}],["days",ln]],s={},i=t;let a,o;for(const[l,u]of r)n.indexOf(l)>=0&&(a=l,s[l]=u(t,e),o=i.plus(s),o>e?(s[l]--,t=i.plus(s),t>e&&(o=t,s[l]--,t=i.plus(s))):t=o);return[t,s,o,a]}function hi(t,e,n,r){let[s,i,a,o]=fi(t,e,n);const l=e-s,u=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);u.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+l/(a-s)));const d=T.fromObject(i,r);return u.length>0?T.fromMillis(l,r).shiftTo(...u).plus(d):d}const _t={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},un={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mi=_t.hanidec.replace(/[\[|\]]/g,"").split("");function yi(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(_t.hanidec)!==-1)e+=mi.indexOf(t[n]);else for(const s in un){const[i,a]=un[s];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}function G({numberingSystem:t},e=""){return new RegExp(`${_t[t||"latn"]}${e}`)}const gi="missing Intl.DateTimeFormat.formatToParts support";function M(t,e=n=>n){return{regex:t,deser:([n])=>e(yi(n))}}const wi=String.fromCharCode(160),cr=`[ ${wi}]`,dr=new RegExp(cr,"g");function pi(t){return t.replace(/\./g,"\\.?").replace(dr,cr)}function cn(t){return t.replace(/\./g,"").replace(dr," ").toLowerCase()}function J(t,e){return t===null?null:{regex:RegExp(t.map(pi).join("|")),deser:([n])=>t.findIndex(r=>cn(n)===cn(r))+e}}function dn(t,e){return{regex:t,deser:([,n,r])=>dt(n,r),groups:e}}function Ye(t){return{regex:t,deser:([e])=>e}}function ki(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Si(t,e){const n=G(e),r=G(e,"{2}"),s=G(e,"{3}"),i=G(e,"{4}"),a=G(e,"{6}"),o=G(e,"{1,2}"),l=G(e,"{1,3}"),u=G(e,"{1,6}"),d=G(e,"{1,9}"),m=G(e,"{2,4}"),v=G(e,"{4,6}"),f=p=>({regex:RegExp(ki(p.val)),deser:([C])=>C,literal:!0}),E=(p=>{if(t.literal)return f(p);switch(p.val){case"G":return J(e.eras("short"),0);case"GG":return J(e.eras("long"),0);case"y":return M(u);case"yy":return M(m,It);case"yyyy":return M(i);case"yyyyy":return M(v);case"yyyyyy":return M(a);case"M":return M(o);case"MM":return M(r);case"MMM":return J(e.months("short",!0),1);case"MMMM":return J(e.months("long",!0),1);case"L":return M(o);case"LL":return M(r);case"LLL":return J(e.months("short",!1),1);case"LLLL":return J(e.months("long",!1),1);case"d":return M(o);case"dd":return M(r);case"o":return M(l);case"ooo":return M(s);case"HH":return M(r);case"H":return M(o);case"hh":return M(r);case"h":return M(o);case"mm":return M(r);case"m":return M(o);case"q":return M(o);case"qq":return M(r);case"s":return M(o);case"ss":return M(r);case"S":return M(l);case"SSS":return M(s);case"u":return Ye(d);case"uu":return Ye(o);case"uuu":return M(n);case"a":return J(e.meridiems(),0);case"kkkk":return M(i);case"kk":return M(m,It);case"W":return M(o);case"WW":return M(r);case"E":case"c":return M(n);case"EEE":return J(e.weekdays("short",!1),1);case"EEEE":return J(e.weekdays("long",!1),1);case"ccc":return J(e.weekdays("short",!0),1);case"cccc":return J(e.weekdays("long",!0),1);case"Z":case"ZZ":return dn(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return dn(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Ye(/[a-z_+-/]{1,256}?/i);case" ":return Ye(/[^\S\n\r]/);default:return f(p)}})(t)||{invalidReason:gi};return E.token=t,E}const Oi={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Ti(t,e,n){const{type:r,value:s}=t;if(r==="literal"){const l=/^\s+$/.test(s);return{literal:!l,val:l?" ":s}}const i=e[r];let a=r;r==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let o=Oi[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function vi(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function Mi(t,e,n){const r=t.match(e);if(r){const s={};let i=1;for(const a in n)if(Se(n,a)){const o=n[a],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(i,i+l))),i+=l}return[r,s]}else return[r,{}]}function Di(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return w(t.z)||(n=ee.create(t.z)),w(t.Z)||(n||(n=new L(t.Z)),r=t.Z),w(t.q)||(t.M=(t.q-1)*3+1),w(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),w(t.u)||(t.S=Wt(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),n,r]}let pt=null;function Ni(){return pt||(pt=y.fromMillis(1555555555555)),pt}function xi(t,e){if(t.literal)return t;const n=V.macroTokenToFormatOpts(t.val),r=mr(n,e);return r==null||r.includes(void 0)?t:r}function fr(t,e){return Array.prototype.concat(...t.map(n=>xi(n,e)))}function hr(t,e,n){const r=fr(V.parseFormat(n),t),s=r.map(a=>Si(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[a,o]=vi(s),l=RegExp(a,"i"),[u,d]=Mi(e,l,o),[m,v,f]=d?Di(d):[null,null,void 0];if(Se(d,"a")&&Se(d,"H"))throw new we("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:l,rawMatches:u,matches:d,result:m,zone:v,specificOffset:f}}}function Ii(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=hr(t,e,n);return[r,s,i,a]}function mr(t,e){if(!t)return null;const r=V.create(e,t).dtFormatter(Ni()),s=r.formatToParts(),i=r.resolvedOptions();return s.map(a=>Ti(a,t,i))}const kt="Invalid DateTime",fn=864e13;function Pe(t){return new B("unsupported zone",`the zone "${t.name}" is not supported`)}function St(t){return t.weekData===null&&(t.weekData=tt(t.c)),t.weekData}function Ot(t){return t.localWeekData===null&&(t.localWeekData=tt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ue(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new y({...n,...e,old:n})}function yr(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=n.offset(r);return s===i?[r,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function je(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Be(t,e,n){return yr(ct(t),e,n)}function hn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:s,day:Math.min(t.c.day,nt(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=T.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=ct(i);let[l,u]=yr(o,n,t.zone);return a!==0&&(l+=a,u=t.zone.offset(l)),{ts:l,o:u}}function Ee(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&Object.keys(t).length!==0||e){const l=e||o,u=y.fromObject(t,{...n,zone:l,specificOffset:i});return a?u:u.setZone(o)}else return y.invalid(new B("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Ge(t,e,n=!0){return t.isValid?V.create(D.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Tt(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=F(t.c.year,n?6:4),e?(r+="-",r+=F(t.c.month),r+="-",r+=F(t.c.day)):(r+=F(t.c.month),r+=F(t.c.day)),r}function mn(t,e,n,r,s,i){let a=F(t.c.hour);return e?(a+=":",a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(a+=":")):a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(a+=F(t.c.second),(t.c.millisecond!==0||!r)&&(a+=".",a+=F(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=F(Math.trunc(-t.o/60)),a+=":",a+=F(Math.trunc(-t.o%60))):(a+="+",a+=F(Math.trunc(t.o/60)),a+=":",a+=F(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const gr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ei={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bi={ordinal:1,hour:0,minute:0,second:0,millisecond:0},wr=["year","month","day","hour","minute","second","millisecond"],Fi=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ci=["year","ordinal","hour","minute","second","millisecond"];function Vi(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new kn(t);return e}function yn(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Vi(t)}}function gn(t,e){const n=ae(e.zone,I.defaultZone),r=D.fromObject(e),s=I.now();let i,a;if(w(t.year))i=s;else{for(const u of wr)w(t[u])&&(t[u]=gr[u]);const o=qn(t)||Hn(t);if(o)return y.invalid(o);const l=n.offset(s);[i,a]=Be(t,l,n)}return new y({ts:i,zone:n,loc:r,o:a})}function wn(t,e,n){const r=w(n.round)?!0:n.round,s=(a,o)=>(a=Lt(a,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(a,o)),i=a=>n.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(n.unit)return s(i(n.unit),n.unit);for(const a of n.units){const o=i(a);if(Math.abs(o)>=1)return s(o,a)}return s(t>e?-0:0,n.units[n.units.length-1])}function pn(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class y{constructor(e){const n=e.zone||I.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new B("invalid input"):null)||(n.isValid?null:Pe(n));this.ts=w(e.ts)?I.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const o=n.offset(this.ts);s=je(this.ts,o),r=Number.isNaN(s.year)?new B("invalid input"):null,s=r?null:s,i=r?null:o}this._zone=n,this.loc=e.loc||D.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new y({})}static local(){const[e,n]=pn(arguments),[r,s,i,a,o,l,u]=n;return gn({year:r,month:s,day:i,hour:a,minute:o,second:l,millisecond:u},e)}static utc(){const[e,n]=pn(arguments),[r,s,i,a,o,l,u]=n;return e.zone=L.utcInstance,gn({year:r,month:s,day:i,hour:a,minute:o,second:l,millisecond:u},e)}static fromJSDate(e,n={}){const r=ls(e)?e.valueOf():NaN;if(Number.isNaN(r))return y.invalid("invalid input");const s=ae(n.zone,I.defaultZone);return s.isValid?new y({ts:r,zone:s,loc:D.fromObject(n)}):y.invalid(Pe(s))}static fromMillis(e,n={}){if(de(e))return e<-fn||e>fn?y.invalid("Timestamp out of range"):new y({ts:e,zone:ae(n.zone,I.defaultZone),loc:D.fromObject(n)});throw new Z(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(de(e))return new y({ts:e*1e3,zone:ae(n.zone,I.defaultZone),loc:D.fromObject(n)});throw new Z("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=ae(n.zone,I.defaultZone);if(!r.isValid)return y.invalid(Pe(r));const s=D.fromObject(n),i=rt(e,yn),{minDaysInFirstWeek:a,startOfWeek:o}=en(i,s),l=I.now(),u=w(n.specificOffset)?r.offset(l):n.specificOffset,d=!w(i.ordinal),m=!w(i.year),v=!w(i.month)||!w(i.day),f=m||v,g=i.weekYear||i.weekNumber;if((f||d)&&g)throw new we("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&d)throw new we("Can't mix ordinal dates with month/day");const E=g||i.weekday&&!f;let p,C,R=je(l,u);E?(p=Fi,C=Ei,R=tt(R,a,o)):d?(p=Ci,C=bi,R=wt(R)):(p=wr,C=gr);let $=!1;for(const j of p){const he=i[j];w(he)?$?i[j]=C[j]:i[j]=R[j]:$=!0}const Q=E?is(i,a,o):d?as(i):qn(i),oe=Q||Hn(i);if(oe)return y.invalid(oe);const Y=E?Qt(i,a,o):d?Xt(i):i,[X,A]=Be(Y,u,r),P=new y({ts:X,zone:r,o:A,loc:s});return i.weekday&&f&&e.weekday!==P.weekday?y.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${P.toISO()}`):P}static fromISO(e,n={}){const[r,s]=Ks(e);return Ee(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=Qs(e);return Ee(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=Xs(e);return Ee(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(w(e)||w(n))throw new Z("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,a=D.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,l,u,d]=Ii(a,e,n);return d?y.invalid(d):Ee(o,l,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return y.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=ai(e);return Ee(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the DateTime is invalid");const r=e instanceof B?e:new B(e,n);if(I.throwOnInvalid)throw new Lr(r);return new y({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=mr(e,D.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return fr(V.parseFormat(e),D.fromObject(n)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?St(this).weekYear:NaN}get weekNumber(){return this.isValid?St(this).weekNumber:NaN}get weekday(){return this.isValid?St(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ot(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ot(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ot(this).weekYear:NaN}get ordinal(){return this.isValid?wt(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ce.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ce.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ce.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ce.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=ct(this.c),s=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-s*n),o=this.zone.offset(r-i*n);if(a===o)return[this];const l=r-a*n,u=r-o*n,d=je(l,a),m=je(u,o);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[ue(this,{ts:l}),ue(this,{ts:u})]:[this]}get isInLeapYear(){return Ae(this.year)}get daysInMonth(){return nt(this.year,this.month)}get daysInYear(){return this.isValid?pe(this.year):NaN}get weeksInWeekYear(){return this.isValid?$e(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?$e(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=V.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(L.instance(e),n)}toLocal(){return this.setZone(I.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=ae(e,I.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const i=e.offset(this.ts),a=this.toObject();[s]=Be(a,i,e)}return ue(this,{ts:s,zone:e})}else return y.invalid(Pe(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return ue(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=rt(e,yn),{minDaysInFirstWeek:r,startOfWeek:s}=en(n,this.loc),i=!w(n.weekYear)||!w(n.weekNumber)||!w(n.weekday),a=!w(n.ordinal),o=!w(n.year),l=!w(n.month)||!w(n.day),u=o||l,d=n.weekYear||n.weekNumber;if((u||a)&&d)throw new we("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new we("Can't mix ordinal dates with month/day");let m;i?m=Qt({...tt(this.c,r,s),...n},r,s):w(n.ordinal)?(m={...this.toObject(),...n},w(n.day)&&(m.day=Math.min(nt(m.year,m.month),m.day))):m=Xt({...wt(this.c),...n});const[v,f]=Be(m,this.o,this.zone);return ue(this,{ts:v,o:f})}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return ue(this,hn(this,n))}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e).negate();return ue(this,hn(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},s=T.normalizeUnit(e);switch(s){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(s==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?V.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):kt}toLocaleString(e=et,n={}){return this.isValid?V.create(this.loc.clone(n),e).formatDateTime(this):kt}toLocaleParts(e={}){return this.isValid?V.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a=e==="extended";let o=Tt(this,a);return o+="T",o+=mn(this,a,n,r,s,i),o}toISODate({format:e="extended"}={}){return this.isValid?Tt(this,e==="extended"):null}toISOWeekDate(){return Ge(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(s?"T":"")+mn(this,a==="extended",n,e,r,i):null}toRFC2822(){return Ge(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ge(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Tt(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Ge(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():kt}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return T.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=us(n).map(T.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,l=a?e:this,u=hi(o,l,i,s);return a?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(y.now(),e,n)}until(e){return this.isValid?x.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,r)<=s&&s<=i.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||y.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),wn(n,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?wn(e.base||y.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(y.isDateTime))throw new Z("min requires all arguments be DateTimes");return tn(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(y.isDateTime))throw new Z("max requires all arguments be DateTimes");return tn(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:i=null}=r,a=D.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return hr(a,e,n)}static fromStringExplain(e,n,r={}){return y.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return et}static get DATE_MED(){return Sn}static get DATE_MED_WITH_WEEKDAY(){return Ar}static get DATE_FULL(){return On}static get DATE_HUGE(){return Tn}static get TIME_SIMPLE(){return vn}static get TIME_WITH_SECONDS(){return Mn}static get TIME_WITH_SHORT_OFFSET(){return Dn}static get TIME_WITH_LONG_OFFSET(){return Nn}static get TIME_24_SIMPLE(){return xn}static get TIME_24_WITH_SECONDS(){return In}static get TIME_24_WITH_SHORT_OFFSET(){return En}static get TIME_24_WITH_LONG_OFFSET(){return bn}static get DATETIME_SHORT(){return Fn}static get DATETIME_SHORT_WITH_SECONDS(){return Cn}static get DATETIME_MED(){return Vn}static get DATETIME_MED_WITH_SECONDS(){return Wn}static get DATETIME_MED_WITH_WEEKDAY(){return _r}static get DATETIME_FULL(){return Ln}static get DATETIME_FULL_WITH_SECONDS(){return $n}static get DATETIME_HUGE(){return Zn}static get DATETIME_HUGE_WITH_SECONDS(){return An}}function be(t){if(y.isDateTime(t))return t;if(t&&t.valueOf&&de(t.valueOf()))return y.fromJSDate(t);if(t&&typeof t=="object")return y.fromObject(t);throw new Z(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Wi="_calendar_1nxns_4",Li="_header_1nxns_17",$i="_heading_1nxns_42",Zi="_controller_1nxns_48",Ai="_spacer_1nxns_56",_i="_fadein_1nxns_1",zi="_cell_1nxns_69",Ri="_overflow_1nxns_99",Ui="_content_1nxns_102",qi="_weekday_1nxns_105",Hi="_range_1nxns_130",Yi="_selected_1nxns_140",Pi="_unavailable_1nxns_148",N={calendar:Wi,header:Li,heading:$i,controller:Zi,spacer:Ai,"day-grid":"_day-grid_1nxns_59",fadein:_i,cell:zi,overflow:Ri,content:Ui,weekday:qi,"range-first":"_range-first_1nxns_130","range-last":"_range-last_1nxns_130",range:Hi,selected:Yi,unavailable:Pi,"hover-last":"_hover-last_1nxns_206","range-fill":"_range-fill_1nxns_210","range-disabled":"_range-disabled_1nxns_220","controller-button":"_controller-button_1nxns_228"},ji=t=>Xe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t},Xe.createElement("path",{d:"M14.71 15.88 10.83 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L8.71 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42z"})),_=(t,e)=>{if(!(!t||!e))return!!(t.hasSame(e,"month")&&t.hasSame(e,"year")&&t.hasSame(e,"day"))},Le=(t,e)=>{if(!(!t||!e))return!!(t.hasSame(e,"month")&&t.hasSame(e,"year"))},se=(t,e,n)=>{const r=new Set;return e.forEach(s=>{r.add(y.fromISO(s,{zone:n}).startOf("day").toISO())}),r.has(y.fromISO(t.toISO(),{zone:n}).startOf("day").toISO())},Ke=(t,e)=>e&&e.toMillis()>t.toMillis(),Qe=(t,e)=>e&&e.toMillis()<t.toMillis();function Et(t,e,n,r){if(t.start&&_(t.start,e)&&!t.end){n(s=>({...s,end:e})),r==null||r({value:{start:t.start.startOf("day").toISO()??void 0,end:e.startOf("day").toISO()??void 0}});return}if(!t.start&&!t.end||t.start&&t.end||t.start&&!t.end&&t.start.startOf("day").toMillis()>e.startOf("day").toMillis()){n({start:e,end:null}),r==null||r({value:{start:e.startOf("day").toISO()??void 0,end:void 0}});return}if(t.start&&!t.end&&t.start.startOf("day").toMillis()<e.startOf("day").toMillis()){n(s=>({...s,end:e})),r==null||r({value:{start:t.start.startOf("day").toISO()??void 0,end:e.startOf("day").toISO()??void 0}});return}if(!t.start&&t.end){n(s=>({...s,start:e})),r==null||r({value:{start:e.startOf("day").toISO()??void 0,end:t.end.startOf("day").toISO()??void 0}});return}}const st=b.forwardRef((t,e)=>{const{onClick:n,className:r,...s}=t,{focusedDate:i,setFocusedDate:a,minDate:o}=ht(),l=u=>{n==null||n(u);const d=i.minus({month:1}).endOf("month"),m=i.minus({month:1});if(o!==null){if(m.toMillis()>=(o==null?void 0:o.toMillis())){a(m);return}Le(d,i)||a(o);return}a(m)};return S.fr.jsx(Ft.C,{ref:e,onClick:l,className:Ve.cx(N["controller-button"],r),appearance:"ghost",size:"small",icon:ji,"aria-label":"Previous Month",...s})});st.displayName="CalendarPrev";const Gi=t=>Xe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t},Xe.createElement("path",{d:"M9.29 15.88 13.17 12 9.29 8.12a.996.996 0 1 1 1.41-1.41l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3a.996.996 0 0 1-1.41 0c-.38-.39-.39-1.03 0-1.42z"})),it=b.forwardRef((t,e)=>{const{onClick:n,className:r,...s}=t,{focusedDate:i,setFocusedDate:a,maxDate:o}=ht(),l=u=>{n==null||n(u);const d=i.plus({month:1}).startOf("month"),m=i.plus({month:1});if(o!==null){if(m.toMillis()<=(o==null?void 0:o.toMillis())){a(m);return}Le(d,i)||a(o);return}a(m)};return S.fr.jsx(Ft.C,{onClick:l,appearance:"ghost",size:"small",className:Ve.cx(N["controller-button"],r),icon:Gi,"aria-label":"Next Month",ref:e,...s})});it.displayName="CalendarNext";const at=b.forwardRef((t,e)=>{const{className:n,...r}=t,s=ht(),{value:i,setValue:a,focusedDate:o,setFocusedDate:l,hoveredDate:u,setHoveredDate:d,onSelection:m,locale:v,minDate:f,maxDate:g,unavailableDates:E,timeZone:p,controlled:C,id:R,range:$,dateFormat:Q,startDay:oe}=s,Y=b.useRef(!1),X=Ve.cx(N.grid,n),A=b.useCallback(h=>{if(!(g!==null&&h.toMillis()>(g==null?void 0:g.toMillis()))){if(se(h,E,p)){let k=h.plus({days:1});for(let O=0;O<365&&!(g!==null&&k.toMillis()>(g==null?void 0:g.toMillis()));O++)if(se(k,E,p))k=k.plus({days:1});else{l(k);break}return}l(h)}},[g,l,p,E]),P=h=>{if(!(f!==null&&h.toMillis()<(f==null?void 0:f.toMillis()))){if(se(h,E,p)){let k=h.minus({days:1});for(let O=0;O<365&&!(f!==null&&k.toMillis()<(f==null?void 0:f.toMillis()));O++)if(se(k,E,p))k=k.minus({days:1});else{l(k);break}return}l(h)}},j=(h,k)=>$?i.start&&i.end?h.toMillis()>=i.start.startOf("day").toMillis()&&h.toMillis()<=i.end.endOf("day").toMillis():_(h,i.start):_(h,k??i),he=h=>$&&i.start&&i.end?h.toMillis()>=i.start.startOf("day").toMillis()&&h.toMillis()<=i.end.endOf("day").toMillis()&&!_(i.start,h)&&!_(i.end,h):!1,De=h=>{switch(h.code){case"Space":case"Enter":if(h.preventDefault(),!$){!C&&a(_(i,o)?null:o),m==null||m({value:_(i,o)?void 0:o.setZone(p).startOf("day").toISO()??void 0});break}Et(i,o,a,m);break;case"ArrowLeft":h.preventDefault(),P(o.minus({days:1}));break;case"ArrowRight":h.preventDefault(),A(o.plus({days:1}));break;case"ArrowUp":h.preventDefault(),P(o.minus({days:7}));break;case"ArrowDown":h.preventDefault(),A(o.plus({days:7}));break;case"PageUp":if(h.preventDefault(),h.shiftKey){P(o.minus({years:1}));break}P(o.minus({months:1}));break;case"PageDown":if(h.preventDefault(),h.shiftKey){A(o.plus({years:1}));break}A(o.plus({months:1}));break}};let te=6;switch(oe){case"Monday":te=0;break;case"Sunday":default:te=6}const Ne=[];for(let h=0;h<7;h++){const k=(te+h)%7;Ne.push(Ce.weekdays("narrow",{locale:v})[k])}const me=o.startOf("month"),Re=o.endOf("month"),Ue=Array.from(new Array(me.daysInMonth)).map((h,k)=>me.plus({days:k})),xe=[];if(me.weekday!==te+1)for(let h=1;h<8;h++){const k=me.minus({days:h});if(xe.push(k),k.weekday===te+1)break}xe.reverse();const kr=Array.from(new Array(14)).map((h,k)=>Re.plus({days:k+1})),zt=[...xe,...Ue,...kr],Sr=[...Array(Math.ceil(zt.length/7))].map((h,k)=>zt.slice(7*k,7+7*k)).slice(0,6),Or=h=>{if(l(h),!$){m==null||m({value:h.setZone(p).startOf("day").toISO()??void 0}),!C&&a(h);return}Et(i,h,a,m)},Tr=h=>{d(h)},vr=()=>{d(void 0)},Mr=h=>{d(h),l(h)},Dr=()=>{d(void 0)},Nr=h=>{if(h==="left"){const k=o.plus({month:1});if(Ke(k,f)||Qe(k,g))return;l(k);return}if(h==="right"){const k=o.minus({month:1});if(Ke(k,f)||Qe(k,g))return;l(k);return}},{direction:Ji,...xr}=Cr.E(Nr);return b.useEffect(()=>{Y.current&&setTimeout(()=>{const h=document.getElementById(`${R}-${o.toISODate()}`);h==null||h.focus()},100)},[o,R]),b.useEffect(()=>{se(o,E,p)&&A(o.plus({days:1}))},[o,A,p,E]),S.fr.jsxs(S.fr.Fragment,{children:[S.fr.jsxs("table",{ref:e,onFocus:()=>{Y.current=!0},onBlur:()=>{Y.current=!1},className:X,onMouseLeave:Dr,role:"grid",...r,...xr,children:[S.fr.jsxs("thead",{"aria-hidden":!0,className:N.weekdays,children:[S.fr.jsx("tr",{children:Ne.map((h,k)=>S.fr.jsx("th",{scope:"col",className:N.weekday,children:h},`${h}${k}`))}),S.fr.jsx("tr",{className:N.spacer,children:S.fr.jsx("td",{colSpan:7})})]}),S.fr.jsx("tbody",{className:N["day-grid"],children:Sr.map((h,k)=>S.fr.jsx("tr",{children:h.map(O=>{const Rt=!Le(O,o)||Ke(O,f)||Qe(O,g)||se(O,E,p),mt=se(O,E,p),Ie=$&&u&&i.start&&!i.end&&O.toMillis()>i.start.toMillis()&&O.toMillis()<=u.toMillis(),Ir=Ve.cx(N.cell,{[N.selected]:!mt&&j(O),[N["range-first"]]:$&&i.start&&(i.end||u)&&_(O,i.start),[N["range-last"]]:$&&(i.start&&i.end&&_(O,i.end)||Ie&&_(O,u)),[N.range]:he(O)||Ie,[N.unavailable]:mt,[N.overflow]:!Le(O,o),[N["hover-last"]]:Ie&&_(O,u)}),Er=f!==null&&O.toMillis()<=(f==null?void 0:f.toMillis()),br=g!==null&&O.toMillis()>=(g==null?void 0:g.toMillis());return S.fr.jsxs("td",{"aria-disabled":!Le(O,o),role:"gridcell",children:[!mt&&(he(O)||Ie)?S.fr.jsx("div",{role:"presentation",className:Ve.cx(N["range-fill"],{[N["range-disabled"]]:Rt,[N["hover-last"]]:Ie&&_(O,u)})}):null,S.fr.jsx("button",{onClick:()=>Or(O),onFocus:()=>Tr(O),onBlur:()=>vr(),className:Ir,onKeyDown:De,onMouseEnter:()=>Mr(O),tabIndex:_(O,o)?0:-1,disabled:Rt?!0:void 0,"aria-label":`${O.toLocaleString(Q)}${j(O)?" selected":""}${Er?", You are on the first available date":""}${br?", You are on the last available date":""}`,id:`${R}-${O.toISODate()}`,children:O.day})]},O.toISODate())})},k))},o.startOf("month").toMillis())]}),$&&i?S.fr.jsx(Vr.p,{"aria-live":"polite",children:`Range starts at ${i.start&&i.start.toLocaleString(Q)}, ${i.end?`ends at ${i.end.toLocaleString(Q)}`:"select an end date"}`}):null]})});at.displayName="CalendarMonth";const ot=b.forwardRef((t,e)=>{const{onClick:n,...r}=t,{setFocusedDate:s,value:i,setValue:a,timeZone:o,unavailableDates:l,onSelection:u,minDate:d,maxDate:m,controlled:v,range:f}=ht(),g=y.fromISO(y.now().toISO(),{zone:o}).startOf("day"),E=C=>{if(s(g),!f){u==null||u({value:g.startOf("day").toISO()??void 0}),!v&&a(g);return}Et(i,g,a,u)},p=Qe(g,m)||Ke(g,d)||se(g,l,o);return S.fr.jsx(Ft.C,{ref:e,onClick:E,appearance:"secondary",disabled:p,size:"small",...r,children:"Today"})});ot.displayName="CalendarNow";const bt=b.createContext(null),pr=b.forwardRef((t,e)=>{const n=b.useId(),{layoutStyles:r,componentProps:s}=Fr.J(t),{children:i,focusedDate:a,defaultFocusedDate:o,locale:l=Intl.DateTimeFormat().resolvedOptions().locale,timeZone:u=Intl.DateTimeFormat().resolvedOptions().timeZone,startDay:d="Sunday",minDate:m,maxDate:v,unavailableDates:f=[],id:g,style:E,value:p,defaultValue:C,onSelection:R,range:$,...Q}=s,oe={...E,...r},Y=p?typeof p=="string"?W(p,u):{start:p.start?W(p.start,u):null,end:p.end?W(p.end,u):null}:null,X=C?typeof C=="string"?W(C,u)??null:{start:C.start?W(C.start,u):null,end:C!=null&&C.end?W(C.end,u):null}:null,A=typeof p=="string"?W(y.now().toISO(),u):{start:W(y.now().toISO(),u),end:W(y.now().toISO(),u)},[P,j]=b.useState(Y??X??A),he=()=>!y.isDateTime(Y)&&!y.isDateTime(X)&&!y.isDateTime(A)?(Y==null?void 0:Y.start)??(X==null?void 0:X.start)??A.start:Y??X??A,[De,te]=b.useState(he()),[Ne,me]=b.useState();b.useEffect(()=>{a&&te(W(a,u))},[a,u]),b.useEffect(()=>{},[f,u]),b.useEffect(()=>{p&&j(()=>typeof p=="string"?W(p,u):{start:p.start?W(p.start,u):null,end:p.end?W(p.end,u):null})},[p,u]);const Re=b.useMemo(()=>{const xe={weekday:"long",month:"long",day:"2-digit",year:"numeric"};return{focusedDate:De,setFocusedDate:te,hoveredDate:Ne,setHoveredDate:me,value:P,setValue:j,timeZone:u,id:g??n,onSelection:R,controlled:!!p,range:$,minDate:m?W(m,u):null,maxDate:v?W(v,u):null,unavailableDates:new Set(f),locale:l,dateFormat:xe,startDay:d}},[De,Ne,g,l,v,m,p,R,$,u,n,f,P,d]),Ue=()=>De.setLocale(l).toLocaleString({month:"long",year:"numeric"});return"range"in Q&&Q.range===!0?S.fr.jsx(bt.Provider,{value:Re,children:S.fr.jsxs("div",{ref:e,id:g??n,className:N.calendar,style:oe,...Q,children:[S.fr.jsxs("div",{className:N.header,children:[S.fr.jsx("span",{className:N.heading,children:Ue()}),S.fr.jsxs("span",{className:N.controller,children:[S.fr.jsx(ot,{}),S.fr.jsx(st,{}),S.fr.jsx(it,{})]})]}),S.fr.jsx(at,{})]})}):S.fr.jsx(bt.Provider,{value:Re,children:S.fr.jsxs("div",{ref:e,id:g??n,style:oe,className:N.calendar,...Q,children:[S.fr.jsxs("div",{className:N.header,children:[S.fr.jsx("span",{className:N.heading,children:Ue()}),S.fr.jsxs("span",{className:N.controller,children:[S.fr.jsx(ot,{}),S.fr.jsx(st,{}),S.fr.jsx(it,{})]})]}),S.fr.jsx(at,{})]})})});function ht(){const t=b.useContext(bt);if(!t)throw new Error("useCalendar must be used within a <Calendar>");return t}function W(t,e){return y.fromISO(t,{zone:e}).startOf("day")}pr.displayName="Calendar";exports.Yt=pr;exports.at=at;exports.nt=ot;exports.rt=it;exports.st=st;
2
- //# sourceMappingURL=Calendar-e0743dcf.cjs.map
1
+ var Bi=require("./Calendar.css");const S=require("./jsx-runtime-944c88e2-2b81c205.cjs"),b=require("react"),Ft=require("./Button-268ba8a9.cjs"),Ve=require("./index-67d20edb.cjs"),Fr=require("./useLayoutPropsUtil-e307abc7-3826ee09.cjs"),Cr=require("./useSwipe-82769b09-dba26ed2.cjs"),Vr=require("./SrOnly-ecf7240b.cjs");function Wr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Xe=Wr(b);class fe extends Error{}class Lr extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $r extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Zr extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class we extends fe{}class kn extends fe{constructor(e){super(`Invalid unit ${e}`)}}class Z extends fe{}class ne extends fe{constructor(){super("Zone is an abstract class")}}const c="numeric",K="short",q="long",et={year:c,month:c,day:c},Sn={year:c,month:K,day:c},zr={year:c,month:K,day:c,weekday:K},On={year:c,month:q,day:c},Tn={year:c,month:q,day:c,weekday:q},vn={hour:c,minute:c},Mn={hour:c,minute:c,second:c},Dn={hour:c,minute:c,second:c,timeZoneName:K},Nn={hour:c,minute:c,second:c,timeZoneName:q},In={hour:c,minute:c,hourCycle:"h23"},En={hour:c,minute:c,second:c,hourCycle:"h23"},xn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:K},bn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:q},Fn={year:c,month:c,day:c,hour:c,minute:c},Cn={year:c,month:c,day:c,hour:c,minute:c,second:c},Vn={year:c,month:K,day:c,hour:c,minute:c},Wn={year:c,month:K,day:c,hour:c,minute:c,second:c},Ar={year:c,month:K,day:c,weekday:K,hour:c,minute:c},Ln={year:c,month:q,day:c,hour:c,minute:c,timeZoneName:K},$n={year:c,month:q,day:c,hour:c,minute:c,second:c,timeZoneName:K},Zn={year:c,month:q,day:c,weekday:q,hour:c,minute:c,timeZoneName:q},zn={year:c,month:q,day:c,weekday:q,hour:c,minute:c,second:c,timeZoneName:q};class Ze{get type(){throw new ne}get name(){throw new ne}get ianaName(){return this.name}get isUniversal(){throw new ne}offsetName(e,n){throw new ne}formatOffset(e,n){throw new ne}offset(e){throw new ne}equals(e){throw new ne}get isValid(){throw new ne}}let yt=null;class lt extends Ze{static get instance(){return yt===null&&(yt=new lt),yt}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return jn(e,n,r)}formatOffset(e,n){return We(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Je={};function qr(t){return Je[t]||(Je[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Je[t]}const _r={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Rr(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,l,u,d]=r;return[a,s,i,o,l,u,d]}function Ur(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:i,value:a}=n[s],o=_r[i];i==="era"?r[o]=a:w(o)||(r[o]=parseInt(a,10))}return r}let Ue={};class ee extends Ze{static create(e){return Ue[e]||(Ue[e]=new ee(e)),Ue[e]}static resetCache(){Ue={},Je={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ee.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return jn(e,n,r,this.name)}formatOffset(e,n){return We(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=qr(this.name);let[s,i,a,o,l,u,d]=r.formatToParts?Ur(r,n):Rr(r,n);o==="BC"&&(s=-Math.abs(s)+1);const v=ct({year:s,month:i,day:a,hour:l===24?0:l,minute:u,second:d,millisecond:0});let f=+n;const g=f%1e3;return f-=g>=0?g:1e3+g,(v-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Rt={};function Hr(t,e={}){const n=JSON.stringify([t,e]);let r=Rt[n];return r||(r=new Intl.ListFormat(t,e),Rt[n]=r),r}let vt={};function Mt(t,e={}){const n=JSON.stringify([t,e]);let r=vt[n];return r||(r=new Intl.DateTimeFormat(t,e),vt[n]=r),r}let Dt={};function Yr(t,e={}){const n=JSON.stringify([t,e]);let r=Dt[n];return r||(r=new Intl.NumberFormat(t,e),Dt[n]=r),r}let Nt={};function Pr(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=Nt[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Nt[s]=i),i}let Fe=null;function jr(){return Fe||(Fe=new Intl.DateTimeFormat().resolvedOptions().locale,Fe)}let Ut={};function Gr(t){let e=Ut[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Ut[t]=e}return e}function Jr(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,s;try{r=Mt(t).resolvedOptions(),s=t}catch{const l=t.substring(0,n);r=Mt(l).resolvedOptions(),s=l}const{numberingSystem:i,calendar:a}=r;return[s,i,a]}}function Br(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Kr(t){const e=[];for(let n=1;n<=12;n++){const r=y.utc(2009,n,1);e.push(t(r))}return e}function Qr(t){const e=[];for(let n=1;n<=7;n++){const r=y.utc(2016,11,13+n);e.push(t(r))}return e}function He(t,e,n,r){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):r(e)}function Xr(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class es{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const o={useGrouping:!1,...r};r.padTo>0&&(o.minimumIntegerDigits=r.padTo),this.inf=Yr(e,o)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Lt(e,3);return F(n,this.padTo)}}}class ts{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&ee.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Mt(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ns{constructor(e,n,r){this.opts={style:"long",...r},!n&&Yn()&&(this.rtf=Pr(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Ts(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const rs={firstDay:1,minimalDays:4,weekend:[6,7]};class D{static fromOpts(e){return D.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,s,i=!1){const a=e||E.defaultLocale,o=a||(i?"en-US":jr()),l=n||E.defaultNumberingSystem,u=r||E.defaultOutputCalendar,d=It(s)||E.defaultWeekSettings;return new D(o,l,u,d,a)}static resetCache(){Fe=null,vt={},Dt={},Nt={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:s}={}){return D.create(e,n,r,s)}constructor(e,n,r,s,i){const[a,o,l]=Jr(e);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=r||l||null,this.weekSettings=s,this.intl=Br(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Xr(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:D.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,It(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return He(this,e,Bn,()=>{const r=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=Kr(i=>this.extract(i,r,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return He(this,e,Xn,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Qr(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return He(this,void 0,()=>er,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[y.utc(2016,11,13,9),y.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return He(this,e,tr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[y.utc(-40,1,1),y.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new es(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new ts(e,this.intl,n)}relFormatter(e={}){return new ns(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Hr(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Pn()?Gr(this.locale):rs}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let gt=null;class L extends Ze{static get utcInstance(){return gt===null&&(gt=new L(0)),gt}static instance(e){return e===0?L.utcInstance:new L(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new L(dt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${We(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${We(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return We(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class ss extends Ze{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ae(t,e){if(w(t)||t===null)return e;if(t instanceof Ze)return t;if(os(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?lt.instance:n==="utc"||n==="gmt"?L.utcInstance:L.parseSpecifier(n)||ee.create(t)}else return de(t)?L.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new ss(t)}let Ht=()=>Date.now(),Yt="system",Pt=null,jt=null,Gt=null,Jt=60,Bt,Kt=null;class E{static get now(){return Ht}static set now(e){Ht=e}static set defaultZone(e){Yt=e}static get defaultZone(){return ae(Yt,lt.instance)}static get defaultLocale(){return Pt}static set defaultLocale(e){Pt=e}static get defaultNumberingSystem(){return jt}static set defaultNumberingSystem(e){jt=e}static get defaultOutputCalendar(){return Gt}static set defaultOutputCalendar(e){Gt=e}static get defaultWeekSettings(){return Kt}static set defaultWeekSettings(e){Kt=It(e)}static get twoDigitCutoffYear(){return Jt}static set twoDigitCutoffYear(e){Jt=e%100}static get throwOnInvalid(){return Bt}static set throwOnInvalid(e){Bt=e}static resetCaches(){D.resetCache(),ee.resetCache()}}class B{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const An=[0,31,59,90,120,151,181,212,243,273,304,334],qn=[0,31,60,91,121,152,182,213,244,274,305,335];function U(t,e){return new B("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Ct(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function _n(t,e,n){return n+(ze(t)?qn:An)[e-1]}function Rn(t,e){const n=ze(t)?qn:An,r=n.findIndex(i=>i<e),s=e-n[r];return{month:r+1,day:s}}function Vt(t,e){return(t-e+7)%7+1}function tt(t,e=4,n=1){const{year:r,month:s,day:i}=t,a=_n(r,s,i),o=Vt(Ct(r,s,i),n);let l=Math.floor((a-o+14-e)/7),u;return l<1?(u=r-1,l=$e(u,e,n)):l>$e(r,e,n)?(u=r+1,l=1):u=r,{weekYear:u,weekNumber:l,weekday:o,...ft(t)}}function Qt(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,a=Vt(Ct(r,1,e),n),o=pe(r);let l=s*7+i-a-7+e,u;l<1?(u=r-1,l+=pe(u)):l>o?(u=r+1,l-=pe(r)):u=r;const{month:d,day:m}=Rn(u,l);return{year:u,month:d,day:m,...ft(t)}}function wt(t){const{year:e,month:n,day:r}=t,s=_n(e,n,r);return{year:e,ordinal:s,...ft(t)}}function Xt(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Rn(e,n);return{year:e,month:r,day:s,...ft(t)}}function en(t,e){if(!w(t.localWeekday)||!w(t.localWeekNumber)||!w(t.localWeekYear)){if(!w(t.weekday)||!w(t.weekNumber)||!w(t.weekYear))throw new we("Cannot mix locale-based week fields with ISO-based week fields");return w(t.localWeekday)||(t.weekday=t.localWeekday),w(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),w(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function is(t,e=4,n=1){const r=ut(t.weekYear),s=H(t.weekNumber,1,$e(t.weekYear,e,n)),i=H(t.weekday,1,7);return r?s?i?!1:U("weekday",t.weekday):U("week",t.weekNumber):U("weekYear",t.weekYear)}function as(t){const e=ut(t.year),n=H(t.ordinal,1,pe(t.year));return e?n?!1:U("ordinal",t.ordinal):U("year",t.year)}function Un(t){const e=ut(t.year),n=H(t.month,1,12),r=H(t.day,1,nt(t.year,t.month));return e?n?r?!1:U("day",t.day):U("month",t.month):U("year",t.year)}function Hn(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=H(e,0,23)||e===24&&n===0&&r===0&&s===0,a=H(n,0,59),o=H(r,0,59),l=H(s,0,999);return i?a?o?l?!1:U("millisecond",s):U("second",r):U("minute",n):U("hour",e)}function w(t){return typeof t>"u"}function de(t){return typeof t=="number"}function ut(t){return typeof t=="number"&&t%1===0}function os(t){return typeof t=="string"}function ls(t){return Object.prototype.toString.call(t)==="[object Date]"}function Yn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Pn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function us(t){return Array.isArray(t)?t:[t]}function tn(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const i=[e(s),s];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function cs(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Se(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function It(t){if(t==null)return null;if(typeof t!="object")throw new Z("Week settings must be an object");if(!H(t.firstDay,1,7)||!H(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!H(e,1,7)))throw new Z("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function H(t,e,n){return ut(t)&&t>=e&&t<=n}function ds(t,e){return t-e*Math.floor(t/e)}function F(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function ie(t){if(!(w(t)||t===null||t===""))return parseInt(t,10)}function le(t){if(!(w(t)||t===null||t===""))return parseFloat(t)}function Wt(t){if(!(w(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Lt(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function ze(t){return t%4===0&&(t%100!==0||t%400===0)}function pe(t){return ze(t)?366:365}function nt(t,e){const n=ds(e-1,12)+1,r=t+(e-n)/12;return n===2?ze(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ct(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function nn(t,e,n){return-Vt(Ct(t,1,e),n)+e-1}function $e(t,e=4,n=1){const r=nn(t,e,n),s=nn(t+1,e,n);return(pe(t)-r+s)/7}function Et(t){return t>99?t:t>E.twoDigitCutoffYear?1900+t:2e3+t}function jn(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function dt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function Gn(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Z(`Invalid unit value ${t}`);return e}function rt(t,e){const n={};for(const r in t)if(Se(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=Gn(s)}return n}function We(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${F(n,2)}:${F(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${F(n,2)}${F(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ft(t){return cs(t,["hour","minute","second","millisecond"])}const fs=["January","February","March","April","May","June","July","August","September","October","November","December"],Jn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hs=["J","F","M","A","M","J","J","A","S","O","N","D"];function Bn(t){switch(t){case"narrow":return[...hs];case"short":return[...Jn];case"long":return[...fs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Kn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Qn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ms=["M","T","W","T","F","S","S"];function Xn(t){switch(t){case"narrow":return[...ms];case"short":return[...Qn];case"long":return[...Kn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const er=["AM","PM"],ys=["Before Christ","Anno Domini"],gs=["BC","AD"],ws=["B","A"];function tr(t){switch(t){case"narrow":return[...ws];case"short":return[...gs];case"long":return[...ys];default:return null}}function ps(t){return er[t.hour<12?0:1]}function ks(t,e){return Xn(e)[t.weekday-1]}function Ss(t,e){return Bn(e)[t.month-1]}function Os(t,e){return tr(e)[t.year<0?0:1]}function Ts(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${s[t][0]}`;case-1:return m?"yesterday":`last ${s[t][0]}`;case 0:return m?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,u=s[t],d=r?l?u[1]:u[2]||u[1]:l?s[t][0]:t;return a?`${o} ${d} ago`:`in ${o} ${d}`}function rn(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const vs={D:et,DD:Sn,DDD:On,DDDD:Tn,t:vn,tt:Mn,ttt:Dn,tttt:Nn,T:In,TT:En,TTT:xn,TTTT:bn,f:Fn,ff:Vn,fff:Ln,ffff:Zn,F:Cn,FF:Wn,FFF:$n,FFFF:zn};class V{static create(e,n={}){return new V(e,n)}static parseFormat(e){let n=null,r="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?(r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),n=null,r="",s=!s):s||o===n?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,n=o)}return r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return vs[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return F(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(f,g)=>this.loc.extract(e,f,g),a=f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"",o=()=>r?ps(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(f,g)=>r?Ss(e,f):i(g?{month:f}:{month:f,day:"numeric"},"month"),u=(f,g)=>r?ks(e,f):i(g?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),d=f=>{const g=V.macroTokenToFormatOpts(f);return g?this.formatWithSystemDefault(e,g):f},m=f=>r?Os(e,f):i({era:f},"era"),v=f=>{switch(f){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(f)}};return rn(V.parseFormat(n),v)}formatDurationFromString(e,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=l=>u=>{const d=r(u);return d?this.num(l.get(d),u.length):u},i=V.parseFormat(n),a=i.reduce((l,{literal:u,val:d})=>u?l:l.concat(d),[]),o=e.shiftTo(...a.map(r).filter(l=>l));return rn(i,s(o))}}const nr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Oe(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Te(...t){return e=>t.reduce(([n,r,s],i)=>{const[a,o,l]=i(e,s);return[{...n,...a},o||r,l]},[{},null,1]).slice(0,2)}function ve(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function rr(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=ie(e[n+s]);return[r,null,n+s]}}const sr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ms=`(?:${sr.source}?(?:\\[(${nr.source})\\])?)?`,$t=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ir=RegExp(`${$t.source}${Ms}`),Zt=RegExp(`(?:T${ir.source})?`),Ds=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ns=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Is=/(\d{4})-?(\d{3})/,Es=rr("weekYear","weekNumber","weekDay"),xs=rr("year","ordinal"),bs=/(\d{4})-(\d\d)-(\d\d)/,ar=RegExp(`${$t.source} ?(?:${sr.source}|(${nr.source}))?`),Fs=RegExp(`(?: ${ar.source})?`);function ke(t,e,n){const r=t[e];return w(r)?n:ie(r)}function Cs(t,e){return[{year:ke(t,e),month:ke(t,e+1,1),day:ke(t,e+2,1)},null,e+3]}function Me(t,e){return[{hours:ke(t,e,0),minutes:ke(t,e+1,0),seconds:ke(t,e+2,0),milliseconds:Wt(t[e+3])},null,e+4]}function Ae(t,e){const n=!t[e]&&!t[e+1],r=dt(t[e+1],t[e+2]),s=n?null:L.instance(r);return[{},s,e+3]}function qe(t,e){const n=t[e]?ee.create(t[e]):null;return[{},n,e+1]}const Vs=RegExp(`^T?${$t.source}$`),Ws=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ls(t){const[e,n,r,s,i,a,o,l,u]=t,d=e[0]==="-",m=l&&l[0]==="-",v=(f,g=!1)=>f!==void 0&&(g||f&&d)?-f:f;return[{years:v(le(n)),months:v(le(r)),weeks:v(le(s)),days:v(le(i)),hours:v(le(a)),minutes:v(le(o)),seconds:v(le(l),l==="-0"),milliseconds:v(Wt(u),m)}]}const $s={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function zt(t,e,n,r,s,i,a){const o={year:e.length===2?Et(ie(e)):ie(e),month:Jn.indexOf(n)+1,day:ie(r),hour:ie(s),minute:ie(i)};return a&&(o.second=ie(a)),t&&(o.weekday=t.length>3?Kn.indexOf(t)+1:Qn.indexOf(t)+1),o}const Zs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function zs(t){const[,e,n,r,s,i,a,o,l,u,d,m]=t,v=zt(e,s,r,n,i,a,o);let f;return l?f=$s[l]:u?f=0:f=dt(d,m),[v,new L(f)]}function As(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const qs=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,_s=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Rs=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function sn(t){const[,e,n,r,s,i,a,o]=t;return[zt(e,s,r,n,i,a,o),L.utcInstance]}function Us(t){const[,e,n,r,s,i,a,o]=t;return[zt(e,o,n,r,s,i,a),L.utcInstance]}const Hs=Oe(Ds,Zt),Ys=Oe(Ns,Zt),Ps=Oe(Is,Zt),js=Oe(ir),or=Te(Cs,Me,Ae,qe),Gs=Te(Es,Me,Ae,qe),Js=Te(xs,Me,Ae,qe),Bs=Te(Me,Ae,qe);function Ks(t){return ve(t,[Hs,or],[Ys,Gs],[Ps,Js],[js,Bs])}function Qs(t){return ve(As(t),[Zs,zs])}function Xs(t){return ve(t,[qs,sn],[_s,sn],[Rs,Us])}function ei(t){return ve(t,[Ws,Ls])}const ti=Te(Me);function ni(t){return ve(t,[Vs,ti])}const ri=Oe(bs,Fs),si=Oe(ar),ii=Te(Me,Ae,qe);function ai(t){return ve(t,[ri,or],[si,ii])}const an="Invalid Duration",lr={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},oi={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lr},R=146097/400,ye=146097/4800,li={years:{quarters:4,months:12,weeks:R/7,days:R,hours:R*24,minutes:R*24*60,seconds:R*24*60*60,milliseconds:R*24*60*60*1e3},quarters:{months:3,weeks:R/28,days:R/4,hours:R*24/4,minutes:R*24*60/4,seconds:R*24*60*60/4,milliseconds:R*24*60*60*1e3/4},months:{weeks:ye/7,days:ye,hours:ye*24,minutes:ye*24*60,seconds:ye*24*60*60,milliseconds:ye*24*60*60*1e3},...lr},ce=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ui=ce.slice(0).reverse();function re(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new T(r)}function ur(t,e){let n=e.milliseconds??0;for(const r of ui.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function on(t,e){const n=ur(t,e)<0?-1:1;ce.reduceRight((r,s)=>{if(w(e[s]))return r;if(r){const i=e[r]*n,a=t[s][r],o=Math.floor(i/a);e[s]+=o*n,e[r]-=o*a*n}return s},null),ce.reduce((r,s)=>{if(w(e[s]))return r;if(r){const i=e[r]%1;e[r]-=i,e[s]+=i*t[r][s]}return s},null)}function ci(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class T{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?li:oi;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||D.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return T.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Z(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new T({values:rt(e,T.normalizeUnit),loc:D.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(de(e))return T.fromMillis(e);if(T.isDuration(e))return e;if(typeof e=="object")return T.fromObject(e);throw new Z(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=ei(e);return r?T.fromObject(r,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=ni(e);return r?T.fromObject(r,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the Duration is invalid");const r=e instanceof B?e:new B(e,n);if(E.throwOnInvalid)throw new Zr(r);return new T({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new kn(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?V.create(this.loc,r).formatDurationFromString(this,e):an}toHuman(e={}){if(!this.isValid)return an;const n=ce.map(r=>{const s=this.values[r];return w(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(s)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Lt(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},y.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ur(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e),r={};for(const s of ce)(Se(n.values,s)||Se(this.values,s))&&(r[s]=n.get(s)+this.get(s));return re(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Gn(e(this.values[r],r));return re(this,{values:n},!0)}get(e){return this[T.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...rt(e,T.normalizeUnit)};return re(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return re(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return on(this.matrix,e),re(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=ci(this.normalize().shiftToAll().toObject());return re(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>T.normalizeUnit(a));const n={},r={},s=this.toObject();let i;for(const a of ce)if(e.indexOf(a)>=0){i=a;let o=0;for(const u in r)o+=this.matrix[u][a]*r[u],r[u]=0;de(s[a])&&(o+=s[a]);const l=Math.trunc(o);n[a]=l,r[a]=(o*1e3-l*1e3)/1e3}else de(s[a])&&(r[a]=s[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return on(this.matrix,n),re(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return re(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of ce)if(!n(this.values[r],e.values[r]))return!1;return!0}}const ge="Invalid Interval";function di(t,e){return!t||!t.isValid?I.invalid("missing or invalid start"):!e||!e.isValid?I.invalid("missing or invalid end"):e<t?I.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class I{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the Interval is invalid");const r=e instanceof B?e:new B(e,n);if(E.throwOnInvalid)throw new $r(r);return new I({invalid:r})}static fromDateTimes(e,n){const r=be(e),s=be(n),i=di(r,s);return i??new I({start:r,end:s})}static after(e,n){const r=T.fromDurationLike(n),s=be(e);return I.fromDateTimes(s,s.plus(r))}static before(e,n){const r=T.fromDurationLike(n),s=be(e);return I.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let i,a;try{i=y.fromISO(r,n),a=i.isValid}catch{a=!1}let o,l;try{o=y.fromISO(s,n),l=o.isValid}catch{l=!1}if(a&&l)return I.fromDateTimes(i,o);if(a){const u=T.fromISO(s,n);if(u.isValid)return I.after(i,u)}else if(l){const u=T.fromISO(r,n);if(u.isValid)return I.before(o,u)}}return I.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:r.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(r,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?I.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(be).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),r=[];let{s}=this,i=0;for(;s<this.e;){const a=n[i]||this.e,o=+a>+this.e?this.e:a;r.push(I.fromDateTimes(s,o)),s=o,i+=1}return r}splitBy(e){const n=T.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const a=[];for(;r<this.e;){const o=this.start.plus(n.mapUnits(l=>l*s));i=+o>+this.e?this.e:o,a.push(I.fromDateTimes(r,i)),r=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:I.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return I.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((l,u)=>l.time-u.time);for(const l of o)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&s.push(I.fromDateTimes(n,l.time)),n=null);return I.merge(s)}difference(...e){return I.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ge}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=et,n={}){return this.isValid?V.create(this.s.loc.clone(n),e).formatInterval(this):ge}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ge}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ge}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ge}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:ge}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):T.invalid(this.invalidReason)}mapEndpoints(e){return I.fromDateTimes(e(this.s),e(this.e))}}class Ce{static hasDST(e=E.defaultZone){const n=y.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ee.isValidZone(e)}static normalizeZone(e){return ae(e,E.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||D.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||D.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||D.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||D.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return D.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return D.create(n,null,"gregory").eras(e)}static features(){return{relative:Yn(),localeWeek:Pn()}}}function ln(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(T.fromMillis(r).as("days"))}function fi(t,e,n){const r=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const d=ln(l,u);return(d-d%7)/7}],["days",ln]],s={},i=t;let a,o;for(const[l,u]of r)n.indexOf(l)>=0&&(a=l,s[l]=u(t,e),o=i.plus(s),o>e?(s[l]--,t=i.plus(s),t>e&&(o=t,s[l]--,t=i.plus(s))):t=o);return[t,s,o,a]}function hi(t,e,n,r){let[s,i,a,o]=fi(t,e,n);const l=e-s,u=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);u.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+l/(a-s)));const d=T.fromObject(i,r);return u.length>0?T.fromMillis(l,r).shiftTo(...u).plus(d):d}const At={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},un={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mi=At.hanidec.replace(/[\[|\]]/g,"").split("");function yi(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(At.hanidec)!==-1)e+=mi.indexOf(t[n]);else for(const s in un){const[i,a]=un[s];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}function G({numberingSystem:t},e=""){return new RegExp(`${At[t||"latn"]}${e}`)}const gi="missing Intl.DateTimeFormat.formatToParts support";function M(t,e=n=>n){return{regex:t,deser:([n])=>e(yi(n))}}const wi=String.fromCharCode(160),cr=`[ ${wi}]`,dr=new RegExp(cr,"g");function pi(t){return t.replace(/\./g,"\\.?").replace(dr,cr)}function cn(t){return t.replace(/\./g,"").replace(dr," ").toLowerCase()}function J(t,e){return t===null?null:{regex:RegExp(t.map(pi).join("|")),deser:([n])=>t.findIndex(r=>cn(n)===cn(r))+e}}function dn(t,e){return{regex:t,deser:([,n,r])=>dt(n,r),groups:e}}function Ye(t){return{regex:t,deser:([e])=>e}}function ki(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Si(t,e){const n=G(e),r=G(e,"{2}"),s=G(e,"{3}"),i=G(e,"{4}"),a=G(e,"{6}"),o=G(e,"{1,2}"),l=G(e,"{1,3}"),u=G(e,"{1,6}"),d=G(e,"{1,9}"),m=G(e,"{2,4}"),v=G(e,"{4,6}"),f=p=>({regex:RegExp(ki(p.val)),deser:([C])=>C,literal:!0}),x=(p=>{if(t.literal)return f(p);switch(p.val){case"G":return J(e.eras("short"),0);case"GG":return J(e.eras("long"),0);case"y":return M(u);case"yy":return M(m,Et);case"yyyy":return M(i);case"yyyyy":return M(v);case"yyyyyy":return M(a);case"M":return M(o);case"MM":return M(r);case"MMM":return J(e.months("short",!0),1);case"MMMM":return J(e.months("long",!0),1);case"L":return M(o);case"LL":return M(r);case"LLL":return J(e.months("short",!1),1);case"LLLL":return J(e.months("long",!1),1);case"d":return M(o);case"dd":return M(r);case"o":return M(l);case"ooo":return M(s);case"HH":return M(r);case"H":return M(o);case"hh":return M(r);case"h":return M(o);case"mm":return M(r);case"m":return M(o);case"q":return M(o);case"qq":return M(r);case"s":return M(o);case"ss":return M(r);case"S":return M(l);case"SSS":return M(s);case"u":return Ye(d);case"uu":return Ye(o);case"uuu":return M(n);case"a":return J(e.meridiems(),0);case"kkkk":return M(i);case"kk":return M(m,Et);case"W":return M(o);case"WW":return M(r);case"E":case"c":return M(n);case"EEE":return J(e.weekdays("short",!1),1);case"EEEE":return J(e.weekdays("long",!1),1);case"ccc":return J(e.weekdays("short",!0),1);case"cccc":return J(e.weekdays("long",!0),1);case"Z":case"ZZ":return dn(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return dn(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Ye(/[a-z_+-/]{1,256}?/i);case" ":return Ye(/[^\S\n\r]/);default:return f(p)}})(t)||{invalidReason:gi};return x.token=t,x}const Oi={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Ti(t,e,n){const{type:r,value:s}=t;if(r==="literal"){const l=/^\s+$/.test(s);return{literal:!l,val:l?" ":s}}const i=e[r];let a=r;r==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let o=Oi[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function vi(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function Mi(t,e,n){const r=t.match(e);if(r){const s={};let i=1;for(const a in n)if(Se(n,a)){const o=n[a],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(i,i+l))),i+=l}return[r,s]}else return[r,{}]}function Di(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return w(t.z)||(n=ee.create(t.z)),w(t.Z)||(n||(n=new L(t.Z)),r=t.Z),w(t.q)||(t.M=(t.q-1)*3+1),w(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),w(t.u)||(t.S=Wt(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),n,r]}let pt=null;function Ni(){return pt||(pt=y.fromMillis(1555555555555)),pt}function Ii(t,e){if(t.literal)return t;const n=V.macroTokenToFormatOpts(t.val),r=mr(n,e);return r==null||r.includes(void 0)?t:r}function fr(t,e){return Array.prototype.concat(...t.map(n=>Ii(n,e)))}function hr(t,e,n){const r=fr(V.parseFormat(n),t),s=r.map(a=>Si(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[a,o]=vi(s),l=RegExp(a,"i"),[u,d]=Mi(e,l,o),[m,v,f]=d?Di(d):[null,null,void 0];if(Se(d,"a")&&Se(d,"H"))throw new we("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:l,rawMatches:u,matches:d,result:m,zone:v,specificOffset:f}}}function Ei(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=hr(t,e,n);return[r,s,i,a]}function mr(t,e){if(!t)return null;const r=V.create(e,t).dtFormatter(Ni()),s=r.formatToParts(),i=r.resolvedOptions();return s.map(a=>Ti(a,t,i))}const kt="Invalid DateTime",fn=864e13;function Pe(t){return new B("unsupported zone",`the zone "${t.name}" is not supported`)}function St(t){return t.weekData===null&&(t.weekData=tt(t.c)),t.weekData}function Ot(t){return t.localWeekData===null&&(t.localWeekData=tt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ue(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new y({...n,...e,old:n})}function yr(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=n.offset(r);return s===i?[r,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function je(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Be(t,e,n){return yr(ct(t),e,n)}function hn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:s,day:Math.min(t.c.day,nt(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=T.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=ct(i);let[l,u]=yr(o,n,t.zone);return a!==0&&(l+=a,u=t.zone.offset(l)),{ts:l,o:u}}function xe(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&Object.keys(t).length!==0||e){const l=e||o,u=y.fromObject(t,{...n,zone:l,specificOffset:i});return a?u:u.setZone(o)}else return y.invalid(new B("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Ge(t,e,n=!0){return t.isValid?V.create(D.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Tt(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=F(t.c.year,n?6:4),e?(r+="-",r+=F(t.c.month),r+="-",r+=F(t.c.day)):(r+=F(t.c.month),r+=F(t.c.day)),r}function mn(t,e,n,r,s,i){let a=F(t.c.hour);return e?(a+=":",a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(a+=":")):a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(a+=F(t.c.second),(t.c.millisecond!==0||!r)&&(a+=".",a+=F(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=F(Math.trunc(-t.o/60)),a+=":",a+=F(Math.trunc(-t.o%60))):(a+="+",a+=F(Math.trunc(t.o/60)),a+=":",a+=F(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const gr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},xi={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bi={ordinal:1,hour:0,minute:0,second:0,millisecond:0},wr=["year","month","day","hour","minute","second","millisecond"],Fi=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ci=["year","ordinal","hour","minute","second","millisecond"];function Vi(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new kn(t);return e}function yn(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Vi(t)}}function gn(t,e){const n=ae(e.zone,E.defaultZone),r=D.fromObject(e),s=E.now();let i,a;if(w(t.year))i=s;else{for(const u of wr)w(t[u])&&(t[u]=gr[u]);const o=Un(t)||Hn(t);if(o)return y.invalid(o);const l=n.offset(s);[i,a]=Be(t,l,n)}return new y({ts:i,zone:n,loc:r,o:a})}function wn(t,e,n){const r=w(n.round)?!0:n.round,s=(a,o)=>(a=Lt(a,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(a,o)),i=a=>n.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(n.unit)return s(i(n.unit),n.unit);for(const a of n.units){const o=i(a);if(Math.abs(o)>=1)return s(o,a)}return s(t>e?-0:0,n.units[n.units.length-1])}function pn(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class y{constructor(e){const n=e.zone||E.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new B("invalid input"):null)||(n.isValid?null:Pe(n));this.ts=w(e.ts)?E.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const o=n.offset(this.ts);s=je(this.ts,o),r=Number.isNaN(s.year)?new B("invalid input"):null,s=r?null:s,i=r?null:o}this._zone=n,this.loc=e.loc||D.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new y({})}static local(){const[e,n]=pn(arguments),[r,s,i,a,o,l,u]=n;return gn({year:r,month:s,day:i,hour:a,minute:o,second:l,millisecond:u},e)}static utc(){const[e,n]=pn(arguments),[r,s,i,a,o,l,u]=n;return e.zone=L.utcInstance,gn({year:r,month:s,day:i,hour:a,minute:o,second:l,millisecond:u},e)}static fromJSDate(e,n={}){const r=ls(e)?e.valueOf():NaN;if(Number.isNaN(r))return y.invalid("invalid input");const s=ae(n.zone,E.defaultZone);return s.isValid?new y({ts:r,zone:s,loc:D.fromObject(n)}):y.invalid(Pe(s))}static fromMillis(e,n={}){if(de(e))return e<-fn||e>fn?y.invalid("Timestamp out of range"):new y({ts:e,zone:ae(n.zone,E.defaultZone),loc:D.fromObject(n)});throw new Z(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(de(e))return new y({ts:e*1e3,zone:ae(n.zone,E.defaultZone),loc:D.fromObject(n)});throw new Z("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=ae(n.zone,E.defaultZone);if(!r.isValid)return y.invalid(Pe(r));const s=D.fromObject(n),i=rt(e,yn),{minDaysInFirstWeek:a,startOfWeek:o}=en(i,s),l=E.now(),u=w(n.specificOffset)?r.offset(l):n.specificOffset,d=!w(i.ordinal),m=!w(i.year),v=!w(i.month)||!w(i.day),f=m||v,g=i.weekYear||i.weekNumber;if((f||d)&&g)throw new we("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&d)throw new we("Can't mix ordinal dates with month/day");const x=g||i.weekday&&!f;let p,C,_=je(l,u);x?(p=Fi,C=xi,_=tt(_,a,o)):d?(p=Ci,C=bi,_=wt(_)):(p=wr,C=gr);let $=!1;for(const j of p){const he=i[j];w(he)?$?i[j]=C[j]:i[j]=_[j]:$=!0}const Q=x?is(i,a,o):d?as(i):Un(i),oe=Q||Hn(i);if(oe)return y.invalid(oe);const Y=x?Qt(i,a,o):d?Xt(i):i,[X,z]=Be(Y,u,r),P=new y({ts:X,zone:r,o:z,loc:s});return i.weekday&&f&&e.weekday!==P.weekday?y.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${P.toISO()}`):P}static fromISO(e,n={}){const[r,s]=Ks(e);return xe(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=Qs(e);return xe(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=Xs(e);return xe(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(w(e)||w(n))throw new Z("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,a=D.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,l,u,d]=Ei(a,e,n);return d?y.invalid(d):xe(o,l,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return y.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=ai(e);return xe(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the DateTime is invalid");const r=e instanceof B?e:new B(e,n);if(E.throwOnInvalid)throw new Lr(r);return new y({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=mr(e,D.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return fr(V.parseFormat(e),D.fromObject(n)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?St(this).weekYear:NaN}get weekNumber(){return this.isValid?St(this).weekNumber:NaN}get weekday(){return this.isValid?St(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ot(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ot(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ot(this).weekYear:NaN}get ordinal(){return this.isValid?wt(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ce.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ce.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ce.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ce.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=ct(this.c),s=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-s*n),o=this.zone.offset(r-i*n);if(a===o)return[this];const l=r-a*n,u=r-o*n,d=je(l,a),m=je(u,o);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[ue(this,{ts:l}),ue(this,{ts:u})]:[this]}get isInLeapYear(){return ze(this.year)}get daysInMonth(){return nt(this.year,this.month)}get daysInYear(){return this.isValid?pe(this.year):NaN}get weeksInWeekYear(){return this.isValid?$e(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?$e(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=V.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(L.instance(e),n)}toLocal(){return this.setZone(E.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=ae(e,E.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const i=e.offset(this.ts),a=this.toObject();[s]=Be(a,i,e)}return ue(this,{ts:s,zone:e})}else return y.invalid(Pe(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return ue(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=rt(e,yn),{minDaysInFirstWeek:r,startOfWeek:s}=en(n,this.loc),i=!w(n.weekYear)||!w(n.weekNumber)||!w(n.weekday),a=!w(n.ordinal),o=!w(n.year),l=!w(n.month)||!w(n.day),u=o||l,d=n.weekYear||n.weekNumber;if((u||a)&&d)throw new we("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new we("Can't mix ordinal dates with month/day");let m;i?m=Qt({...tt(this.c,r,s),...n},r,s):w(n.ordinal)?(m={...this.toObject(),...n},w(n.day)&&(m.day=Math.min(nt(m.year,m.month),m.day))):m=Xt({...wt(this.c),...n});const[v,f]=Be(m,this.o,this.zone);return ue(this,{ts:v,o:f})}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return ue(this,hn(this,n))}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e).negate();return ue(this,hn(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},s=T.normalizeUnit(e);switch(s){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(s==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?V.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):kt}toLocaleString(e=et,n={}){return this.isValid?V.create(this.loc.clone(n),e).formatDateTime(this):kt}toLocaleParts(e={}){return this.isValid?V.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a=e==="extended";let o=Tt(this,a);return o+="T",o+=mn(this,a,n,r,s,i),o}toISODate({format:e="extended"}={}){return this.isValid?Tt(this,e==="extended"):null}toISOWeekDate(){return Ge(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(s?"T":"")+mn(this,a==="extended",n,e,r,i):null}toRFC2822(){return Ge(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ge(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Tt(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Ge(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():kt}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return T.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=us(n).map(T.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,l=a?e:this,u=hi(o,l,i,s);return a?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(y.now(),e,n)}until(e){return this.isValid?I.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,r)<=s&&s<=i.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||y.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),wn(n,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?wn(e.base||y.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(y.isDateTime))throw new Z("min requires all arguments be DateTimes");return tn(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(y.isDateTime))throw new Z("max requires all arguments be DateTimes");return tn(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:i=null}=r,a=D.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return hr(a,e,n)}static fromStringExplain(e,n,r={}){return y.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return et}static get DATE_MED(){return Sn}static get DATE_MED_WITH_WEEKDAY(){return zr}static get DATE_FULL(){return On}static get DATE_HUGE(){return Tn}static get TIME_SIMPLE(){return vn}static get TIME_WITH_SECONDS(){return Mn}static get TIME_WITH_SHORT_OFFSET(){return Dn}static get TIME_WITH_LONG_OFFSET(){return Nn}static get TIME_24_SIMPLE(){return In}static get TIME_24_WITH_SECONDS(){return En}static get TIME_24_WITH_SHORT_OFFSET(){return xn}static get TIME_24_WITH_LONG_OFFSET(){return bn}static get DATETIME_SHORT(){return Fn}static get DATETIME_SHORT_WITH_SECONDS(){return Cn}static get DATETIME_MED(){return Vn}static get DATETIME_MED_WITH_SECONDS(){return Wn}static get DATETIME_MED_WITH_WEEKDAY(){return Ar}static get DATETIME_FULL(){return Ln}static get DATETIME_FULL_WITH_SECONDS(){return $n}static get DATETIME_HUGE(){return Zn}static get DATETIME_HUGE_WITH_SECONDS(){return zn}}function be(t){if(y.isDateTime(t))return t;if(t&&t.valueOf&&de(t.valueOf()))return y.fromJSDate(t);if(t&&typeof t=="object")return y.fromObject(t);throw new Z(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Wi="_calendar_1qrsz_4",Li="_header_1qrsz_17",$i="_heading_1qrsz_42",Zi="_controller_1qrsz_48",zi="_spacer_1qrsz_56",Ai="_fadein_1qrsz_1",qi="_cell_1qrsz_69",_i="_overflow_1qrsz_99",Ri="_content_1qrsz_102",Ui="_weekday_1qrsz_105",Hi="_range_1qrsz_130",Yi="_selected_1qrsz_140",Pi="_unavailable_1qrsz_148",N={calendar:Wi,header:Li,heading:$i,controller:Zi,spacer:zi,"day-grid":"_day-grid_1qrsz_59",fadein:Ai,cell:qi,overflow:_i,content:Ri,weekday:Ui,"range-first":"_range-first_1qrsz_130","range-last":"_range-last_1qrsz_130",range:Hi,selected:Yi,unavailable:Pi,"hover-last":"_hover-last_1qrsz_206","range-fill":"_range-fill_1qrsz_210","range-disabled":"_range-disabled_1qrsz_220","controller-button":"_controller-button_1qrsz_228"},ji=t=>Xe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t},Xe.createElement("path",{d:"M14.71 15.88 10.83 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L8.71 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42z"})),A=(t,e)=>{if(!(!t||!e))return!!(t.hasSame(e,"month")&&t.hasSame(e,"year")&&t.hasSame(e,"day"))},Le=(t,e)=>{if(!(!t||!e))return!!(t.hasSame(e,"month")&&t.hasSame(e,"year"))},se=(t,e,n)=>{const r=new Set;return e.forEach(s=>{r.add(y.fromISO(s,{zone:n}).startOf("day").toISO())}),r.has(y.fromISO(t.toISO(),{zone:n}).startOf("day").toISO())},Ke=(t,e)=>e&&e.toMillis()>t.toMillis(),Qe=(t,e)=>e&&e.toMillis()<t.toMillis();function xt(t,e,n,r){if(t.start&&A(t.start,e)&&!t.end){n(s=>({...s,end:e})),r==null||r({value:{start:t.start.startOf("day").toISO()??void 0,end:e.startOf("day").toISO()??void 0}});return}if(!t.start&&!t.end||t.start&&t.end||t.start&&!t.end&&t.start.startOf("day").toMillis()>e.startOf("day").toMillis()){n({start:e,end:null}),r==null||r({value:{start:e.startOf("day").toISO()??void 0,end:void 0}});return}if(t.start&&!t.end&&t.start.startOf("day").toMillis()<e.startOf("day").toMillis()){n(s=>({...s,end:e})),r==null||r({value:{start:t.start.startOf("day").toISO()??void 0,end:e.startOf("day").toISO()??void 0}});return}if(!t.start&&t.end){n(s=>({...s,start:e})),r==null||r({value:{start:e.startOf("day").toISO()??void 0,end:t.end.startOf("day").toISO()??void 0}});return}}const st=b.forwardRef((t,e)=>{const{onClick:n,className:r,...s}=t,{focusedDate:i,setFocusedDate:a,minDate:o}=ht(),l=u=>{n==null||n(u);const d=i.minus({month:1}).endOf("month"),m=i.minus({month:1});if(o!==null){if(m.toMillis()>=(o==null?void 0:o.toMillis())){a(m);return}Le(d,i)||a(o);return}a(m)};return S.fr.jsx(Ft.k,{ref:e,onClick:l,className:Ve.cx(N["controller-button"],r),appearance:"ghost",size:"small",icon:ji,"aria-label":"Previous Month",...s})});st.displayName="CalendarPrev";const Gi=t=>Xe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t},Xe.createElement("path",{d:"M9.29 15.88 13.17 12 9.29 8.12a.996.996 0 1 1 1.41-1.41l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3a.996.996 0 0 1-1.41 0c-.38-.39-.39-1.03 0-1.42z"})),it=b.forwardRef((t,e)=>{const{onClick:n,className:r,...s}=t,{focusedDate:i,setFocusedDate:a,maxDate:o}=ht(),l=u=>{n==null||n(u);const d=i.plus({month:1}).startOf("month"),m=i.plus({month:1});if(o!==null){if(m.toMillis()<=(o==null?void 0:o.toMillis())){a(m);return}Le(d,i)||a(o);return}a(m)};return S.fr.jsx(Ft.k,{onClick:l,appearance:"ghost",size:"small",className:Ve.cx(N["controller-button"],r),icon:Gi,"aria-label":"Next Month",ref:e,...s})});it.displayName="CalendarNext";const at=b.forwardRef((t,e)=>{const{className:n,...r}=t,s=ht(),{value:i,setValue:a,focusedDate:o,setFocusedDate:l,hoveredDate:u,setHoveredDate:d,onSelection:m,locale:v,minDate:f,maxDate:g,unavailableDates:x,timeZone:p,controlled:C,id:_,range:$,dateFormat:Q,startDay:oe}=s,Y=b.useRef(!1),X=Ve.cx(N.grid,n),z=b.useCallback(h=>{if(!(g!==null&&h.toMillis()>(g==null?void 0:g.toMillis()))){if(se(h,x,p)){let k=h.plus({days:1});for(let O=0;O<365&&!(g!==null&&k.toMillis()>(g==null?void 0:g.toMillis()));O++)if(se(k,x,p))k=k.plus({days:1});else{l(k);break}return}l(h)}},[g,l,p,x]),P=h=>{if(!(f!==null&&h.toMillis()<(f==null?void 0:f.toMillis()))){if(se(h,x,p)){let k=h.minus({days:1});for(let O=0;O<365&&!(f!==null&&k.toMillis()<(f==null?void 0:f.toMillis()));O++)if(se(k,x,p))k=k.minus({days:1});else{l(k);break}return}l(h)}},j=(h,k)=>$?i.start&&i.end?h.toMillis()>=i.start.startOf("day").toMillis()&&h.toMillis()<=i.end.endOf("day").toMillis():A(h,i.start):A(h,k??i),he=h=>$&&i.start&&i.end?h.toMillis()>=i.start.startOf("day").toMillis()&&h.toMillis()<=i.end.endOf("day").toMillis()&&!A(i.start,h)&&!A(i.end,h):!1,De=h=>{switch(h.code){case"Space":case"Enter":if(h.preventDefault(),!$){!C&&a(A(i,o)?null:o),m==null||m({value:A(i,o)?void 0:o.setZone(p).startOf("day").toISO()??void 0});break}xt(i,o,a,m);break;case"ArrowLeft":h.preventDefault(),P(o.minus({days:1}));break;case"ArrowRight":h.preventDefault(),z(o.plus({days:1}));break;case"ArrowUp":h.preventDefault(),P(o.minus({days:7}));break;case"ArrowDown":h.preventDefault(),z(o.plus({days:7}));break;case"PageUp":if(h.preventDefault(),h.shiftKey){P(o.minus({years:1}));break}P(o.minus({months:1}));break;case"PageDown":if(h.preventDefault(),h.shiftKey){z(o.plus({years:1}));break}z(o.plus({months:1}));break}};let te=6;switch(oe){case"Monday":te=0;break;case"Sunday":default:te=6}const Ne=[];for(let h=0;h<7;h++){const k=(te+h)%7;Ne.push(Ce.weekdays("narrow",{locale:v})[k])}const me=o.startOf("month"),_e=o.endOf("month"),Re=Array.from(new Array(me.daysInMonth)).map((h,k)=>me.plus({days:k})),Ie=[];if(me.weekday!==te+1)for(let h=1;h<8;h++){const k=me.minus({days:h});if(Ie.push(k),k.weekday===te+1)break}Ie.reverse();const kr=Array.from(new Array(14)).map((h,k)=>_e.plus({days:k+1})),qt=[...Ie,...Re,...kr],Sr=[...Array(Math.ceil(qt.length/7))].map((h,k)=>qt.slice(7*k,7+7*k)).slice(0,6),Or=h=>{if(l(h),!$){m==null||m({value:h.setZone(p).startOf("day").toISO()??void 0}),!C&&a(h);return}xt(i,h,a,m)},Tr=h=>{d(h)},vr=()=>{d(void 0)},Mr=h=>{d(h),l(h)},Dr=()=>{d(void 0)},Nr=h=>{if(h==="left"){const k=o.plus({month:1});if(Ke(k,f)||Qe(k,g))return;l(k);return}if(h==="right"){const k=o.minus({month:1});if(Ke(k,f)||Qe(k,g))return;l(k);return}},{direction:Ji,...Ir}=Cr.E(Nr);return b.useEffect(()=>{Y.current&&setTimeout(()=>{const h=document.getElementById(`${_}-${o.toISODate()}`);h==null||h.focus()},100)},[o,_]),b.useEffect(()=>{se(o,x,p)&&z(o.plus({days:1}))},[o,z,p,x]),S.fr.jsxs(S.fr.Fragment,{children:[S.fr.jsxs("table",{ref:e,onFocus:()=>{Y.current=!0},onBlur:()=>{Y.current=!1},className:X,onMouseLeave:Dr,role:"grid",...r,...Ir,children:[S.fr.jsxs("thead",{"aria-hidden":!0,className:N.weekdays,children:[S.fr.jsx("tr",{children:Ne.map((h,k)=>S.fr.jsx("th",{scope:"col",className:N.weekday,children:h},`${h}${k}`))}),S.fr.jsx("tr",{className:N.spacer,children:S.fr.jsx("td",{colSpan:7})})]}),S.fr.jsx("tbody",{className:N["day-grid"],children:Sr.map((h,k)=>S.fr.jsx("tr",{children:h.map(O=>{const _t=!Le(O,o)||Ke(O,f)||Qe(O,g)||se(O,x,p),mt=se(O,x,p),Ee=$&&u&&i.start&&!i.end&&O.toMillis()>i.start.toMillis()&&O.toMillis()<=u.toMillis(),Er=Ve.cx(N.cell,{[N.selected]:!mt&&j(O),[N["range-first"]]:$&&i.start&&(i.end||u)&&A(O,i.start),[N["range-last"]]:$&&(i.start&&i.end&&A(O,i.end)||Ee&&A(O,u)),[N.range]:he(O)||Ee,[N.unavailable]:mt,[N.overflow]:!Le(O,o),[N["hover-last"]]:Ee&&A(O,u)}),xr=f!==null&&O.toMillis()<=(f==null?void 0:f.toMillis()),br=g!==null&&O.toMillis()>=(g==null?void 0:g.toMillis());return S.fr.jsxs("td",{"aria-disabled":!Le(O,o),role:"gridcell",children:[!mt&&(he(O)||Ee)?S.fr.jsx("div",{role:"presentation",className:Ve.cx(N["range-fill"],{[N["range-disabled"]]:_t,[N["hover-last"]]:Ee&&A(O,u)})}):null,S.fr.jsx("button",{onClick:()=>Or(O),onFocus:()=>Tr(O),onBlur:()=>vr(),className:Er,onKeyDown:De,onMouseEnter:()=>Mr(O),tabIndex:A(O,o)?0:-1,disabled:_t?!0:void 0,"aria-label":`${O.toLocaleString(Q)}${j(O)?" selected":""}${xr?", You are on the first available date":""}${br?", You are on the last available date":""}`,id:`${_}-${O.toISODate()}`,children:O.day})]},O.toISODate())})},k))},o.startOf("month").toMillis())]}),$&&i?S.fr.jsx(Vr.p,{"aria-live":"polite",children:`Range starts at ${i.start&&i.start.toLocaleString(Q)}, ${i.end?`ends at ${i.end.toLocaleString(Q)}`:"select an end date"}`}):null]})});at.displayName="CalendarMonth";const ot=b.forwardRef((t,e)=>{const{onClick:n,...r}=t,{setFocusedDate:s,value:i,setValue:a,timeZone:o,unavailableDates:l,onSelection:u,minDate:d,maxDate:m,controlled:v,range:f}=ht(),g=y.fromISO(y.now().toISO(),{zone:o}).startOf("day"),x=C=>{if(s(g),!f){u==null||u({value:g.startOf("day").toISO()??void 0}),!v&&a(g);return}xt(i,g,a,u)},p=Qe(g,m)||Ke(g,d)||se(g,l,o);return S.fr.jsx(Ft.k,{ref:e,onClick:x,appearance:"secondary",disabled:p,size:"small",...r,children:"Today"})});ot.displayName="CalendarNow";const bt=b.createContext(null),pr=b.forwardRef((t,e)=>{const n=b.useId(),{layoutStyles:r,componentProps:s}=Fr.J(t),{children:i,focusedDate:a,defaultFocusedDate:o,locale:l=Intl.DateTimeFormat().resolvedOptions().locale,timeZone:u=Intl.DateTimeFormat().resolvedOptions().timeZone,startDay:d="Sunday",minDate:m,maxDate:v,unavailableDates:f=[],id:g,style:x,value:p,defaultValue:C,onSelection:_,range:$,...Q}=s,oe={...x,...r},Y=p?typeof p=="string"?W(p,u):{start:p.start?W(p.start,u):null,end:p.end?W(p.end,u):null}:null,X=C?typeof C=="string"?W(C,u)??null:{start:C.start?W(C.start,u):null,end:C!=null&&C.end?W(C.end,u):null}:null,z=typeof p=="string"?W(y.now().toISO(),u):{start:W(y.now().toISO(),u),end:W(y.now().toISO(),u)},[P,j]=b.useState(Y??X??z),he=()=>!y.isDateTime(Y)&&!y.isDateTime(X)&&!y.isDateTime(z)?(Y==null?void 0:Y.start)??(X==null?void 0:X.start)??z.start:Y??X??z,[De,te]=b.useState(he()),[Ne,me]=b.useState();b.useEffect(()=>{a&&te(W(a,u))},[a,u]),b.useEffect(()=>{},[f,u]),b.useEffect(()=>{p&&j(()=>typeof p=="string"?W(p,u):{start:p.start?W(p.start,u):null,end:p.end?W(p.end,u):null})},[p,u]);const _e=b.useMemo(()=>{const Ie={weekday:"long",month:"long",day:"2-digit",year:"numeric"};return{focusedDate:De,setFocusedDate:te,hoveredDate:Ne,setHoveredDate:me,value:P,setValue:j,timeZone:u,id:g??n,onSelection:_,controlled:!!p,range:$,minDate:m?W(m,u):null,maxDate:v?W(v,u):null,unavailableDates:new Set(f),locale:l,dateFormat:Ie,startDay:d}},[De,Ne,g,l,v,m,p,_,$,u,n,f,P,d]),Re=()=>De.setLocale(l).toLocaleString({month:"long",year:"numeric"});return"range"in Q&&Q.range===!0?S.fr.jsx(bt.Provider,{value:_e,children:S.fr.jsxs("div",{ref:e,id:g??n,className:N.calendar,style:oe,...Q,children:[S.fr.jsxs("div",{className:N.header,children:[S.fr.jsx("span",{className:N.heading,children:Re()}),S.fr.jsxs("span",{className:N.controller,children:[S.fr.jsx(ot,{}),S.fr.jsx(st,{}),S.fr.jsx(it,{})]})]}),S.fr.jsx(at,{})]})}):S.fr.jsx(bt.Provider,{value:_e,children:S.fr.jsxs("div",{ref:e,id:g??n,style:oe,className:N.calendar,...Q,children:[S.fr.jsxs("div",{className:N.header,children:[S.fr.jsx("span",{className:N.heading,children:Re()}),S.fr.jsxs("span",{className:N.controller,children:[S.fr.jsx(ot,{}),S.fr.jsx(st,{}),S.fr.jsx(it,{})]})]}),S.fr.jsx(at,{})]})})});function ht(){const t=b.useContext(bt);if(!t)throw new Error("useCalendar must be used within a <Calendar>");return t}function W(t,e){return y.fromISO(t,{zone:e}).startOf("day")}pr.displayName="Calendar";exports.Vt=pr;exports.at=at;exports.nt=ot;exports.rt=it;exports.st=st;
2
+ //# sourceMappingURL=Calendar-706f41ff.cjs.map