@pareto-engineering/design-system 5.13.1 → 5.13.3-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/dist/{ExposePlainTextPlugin-DeW6mVaE.js → ExposePlainTextPlugin-21aMiDtd.js} +1 -1
  2. package/dist/{FormBuilder-DWHYIZCN.js → FormBuilder-D-D63IHE.js} +69 -69
  3. package/dist/{YAxis-ULEXP-uu.js → YAxis-BrfWZMKv.js} +7 -7
  4. package/dist/assets/FormBuilder.css +1 -1
  5. package/dist/assets/MetaCard.css +1 -1
  6. package/dist/assets/SnapScroller.css +1 -1
  7. package/dist/assets/SocialMediaShareButton.css +1 -1
  8. package/dist/exports.module-BY48WvdE.js +20 -0
  9. package/dist/{generateCategoricalChart-ar2rowoi.js → generateCategoricalChart-Ca9TKPy7.js} +97 -97
  10. package/dist/{index-CxkFVI6N.js → index-BOVlDh8S.js} +2 -2
  11. package/dist/{index-BUor0nOw.js → index-C3TenDWn.js} +27 -27
  12. package/dist/{index-C_b9PQD8.js → index-C4uazrih.js} +190 -217
  13. package/dist/index.js +14 -14
  14. package/dist/stories/StyleGuide/helpers.js +2 -2
  15. package/dist/stories/a/AppContext.stories.js +2 -2
  16. package/dist/stories/a/AreaChart.stories.js +2 -2
  17. package/dist/stories/a/BarChart.stories.js +2 -2
  18. package/dist/stories/a/BlurOverlay.stories.js +2 -2
  19. package/dist/stories/a/ContentTree.stories.js +2 -2
  20. package/dist/stories/a/Conversation.stories.js +2 -2
  21. package/dist/stories/a/DatePicker.stories.js +8 -8
  22. package/dist/stories/a/DotInfo.stories.js +2 -2
  23. package/dist/stories/a/Figure.stories.js +2 -2
  24. package/dist/stories/a/HamburgerButton.stories.js +2 -2
  25. package/dist/stories/a/IconList.stories.js +2 -2
  26. package/dist/stories/a/Label.stories.js +2 -2
  27. package/dist/stories/a/LoadingCircle.stories.js +2 -2
  28. package/dist/stories/a/MetaCard.stories.js +2 -2
  29. package/dist/stories/a/Notification.stories.js +2 -2
  30. package/dist/stories/a/NotificationStack.stories.js +2 -2
  31. package/dist/stories/a/People.stories.js +2 -2
  32. package/dist/stories/a/PieChart.stories.js +2 -2
  33. package/dist/stories/a/Popover.stories.js +2 -2
  34. package/dist/stories/a/ProgressBar.stories.js +2 -2
  35. package/dist/stories/a/Quote.stories.js +2 -2
  36. package/dist/stories/a/Removable.stories.js +2 -2
  37. package/dist/stories/a/SVG.stories.js +3 -3
  38. package/dist/stories/a/SnapScroller.stories.js +2 -2
  39. package/dist/stories/a/Spinner.stories.js +2 -2
  40. package/dist/stories/a/TextSteps.stories.js +2 -2
  41. package/dist/stories/a/Timestamp.stories.js +39 -28
  42. package/dist/stories/a/Tip.stories.js +2 -2
  43. package/dist/stories/a/ToggleSwitch.stories.js +3 -3
  44. package/dist/stories/a/Tooltip.stories.js +2 -2
  45. package/dist/stories/a/XMLEditor.stories.js +2 -2
  46. package/dist/stories/b/Button/Button.stories.js +2 -2
  47. package/dist/stories/b/Button/Group.stories.js +2 -2
  48. package/dist/stories/b/Card/Card.stories.js +5 -5
  49. package/dist/stories/b/Card/Group.stories.js +2 -2
  50. package/dist/stories/b/Logo.stories.js +2 -2
  51. package/dist/stories/b/Page.stories.js +2 -2
  52. package/dist/stories/b/SocialMediaButton.stories.js +2 -2
  53. package/dist/stories/b/ThemeSelector.stories.js +2 -2
  54. package/dist/stories/b/Title.stories.js +2 -2
  55. package/dist/stories/c/Modal.stories.js +2 -2
  56. package/dist/stories/c/Shortener.stories.js +2 -2
  57. package/dist/stories/c/SocialMediaShareButton.stories.js +2 -2
  58. package/dist/stories/f/Checkbox.stories.js +5 -5
  59. package/dist/stories/f/ChoicesInput.stories.js +17 -17
  60. package/dist/stories/f/Combobox.stories.js +2 -2
  61. package/dist/stories/f/Description.stories.js +2 -2
  62. package/dist/stories/f/DragAndDropFileUpload.stories.js +23 -23
  63. package/dist/stories/f/EditorInput.stories.js +2 -2
  64. package/dist/stories/f/FileUpload.stories.js +2 -2
  65. package/dist/stories/f/HighlightedTextInput.stories.js +2 -2
  66. package/dist/stories/f/Label.stories.js +2 -2
  67. package/dist/stories/f/LinkInput.stories.js +2 -2
  68. package/dist/stories/f/RadioInput.stories.js +2 -2
  69. package/dist/stories/f/RatingsInput.stories.js +5 -5
  70. package/dist/stories/f/SelectInput.stories.js +12 -12
  71. package/dist/stories/f/TextInput.stories.js +9 -9
  72. package/dist/stories/f/TextareaInput.stories.js +6 -6
  73. package/dist/stories/g/DragAndDrop.stories.js +6 -6
  74. package/dist/stories/g/ExpandableLexicalPreview.stories.js +6 -6
  75. package/dist/stories/g/FormBuilder.stories.js +2 -2
  76. package/dist/ui/a/AnimatedBlobs/AnimatedBlobs.js +2 -2
  77. package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +4 -4
  78. package/dist/ui/a/AnimatedGradient/index.js +1 -1
  79. package/dist/ui/a/AppContext/ContextProvider.js +1 -1
  80. package/dist/ui/a/BlurOverlay/BlurOverlay.js +2 -2
  81. package/dist/ui/a/Charts/AreaChart/AreaChart.js +6 -6
  82. package/dist/ui/a/Charts/BarChart/BarChart.js +4 -4
  83. package/dist/ui/a/Charts/Common/CustomLegend/CustomLegend.js +2 -2
  84. package/dist/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +2 -2
  85. package/dist/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +2 -2
  86. package/dist/ui/a/Charts/PieChart/PieChart.js +119 -119
  87. package/dist/ui/a/ContentTree/ContentTree.js +3 -3
  88. package/dist/ui/a/ContentTree/common/Tree/Tree.js +4 -4
  89. package/dist/ui/a/ContentTree/common/Tree/index.js +1 -1
  90. package/dist/ui/a/ContentTree/common/index.js +1 -1
  91. package/dist/ui/a/ContentTree/index.js +1 -1
  92. package/dist/ui/a/Conversation/Conversation.js +4 -4
  93. package/dist/ui/a/Conversation/common/Message/Message.js +2 -2
  94. package/dist/ui/a/Conversation/index.js +3 -3
  95. package/dist/ui/a/DatePicker/DatePicker.js +2493 -7
  96. package/dist/ui/a/DatePicker/index.js +2 -2
  97. package/dist/ui/a/DotInfo/DotInfo.js +2 -2
  98. package/dist/ui/a/Figure/Figure.js +2 -2
  99. package/dist/ui/a/HamburgerButton/HamburgerButton.js +2 -2
  100. package/dist/ui/a/IconList/IconList.js +2 -2
  101. package/dist/ui/a/IconList/common/Item/Item.js +2 -2
  102. package/dist/ui/a/Label/Label.js +2 -2
  103. package/dist/ui/a/LoadingCircle/LoadingCircle.js +2 -2
  104. package/dist/ui/a/MetaCard/MetaCard.js +2 -2
  105. package/dist/ui/a/Notification/Notification.js +4 -4
  106. package/dist/ui/a/Notification/index.js +1 -1
  107. package/dist/ui/a/NotificationStack/NotificationStack.js +3 -3
  108. package/dist/ui/a/NotificationStack/index.js +1 -1
  109. package/dist/ui/a/People/People.js +2 -2
  110. package/dist/ui/a/People/common/Person/Person.js +2 -2
  111. package/dist/ui/a/Popover/Popover.js +2 -2
  112. package/dist/ui/a/ProgressBar/ProgressBar.js +2 -2
  113. package/dist/ui/a/Quote/Quote.js +2 -2
  114. package/dist/ui/a/Removable/Removable.js +2 -2
  115. package/dist/ui/a/SVG/SVG.js +2 -2
  116. package/dist/ui/a/SVG/common/UseSVG/UseSVG.js +1 -1
  117. package/dist/ui/a/SnapScroller/SnapScroller.js +2 -2
  118. package/dist/ui/a/Spinner/Spinner.js +2 -2
  119. package/dist/ui/a/TextSteps/TextSteps.js +2 -2
  120. package/dist/ui/a/ThroughPutIndicator/ThroughPutIndicator.js +2 -2
  121. package/dist/ui/a/Timestamp/Timestamp.js +154 -133
  122. package/dist/ui/a/Tip/Tip.js +2 -2
  123. package/dist/ui/a/ToggleSwitch/ToggleSwitch.js +1 -1
  124. package/dist/ui/a/Tooltip/Tooltip.js +2 -2
  125. package/dist/ui/a/XMLEditor/XMLEditor.js +16 -16
  126. package/dist/ui/a/XMLEditor/common/index.js +1 -1
  127. package/dist/ui/a/XMLEditor/common/theme.js +1 -1
  128. package/dist/ui/a/index.js +14 -14
  129. package/dist/ui/b/Button/Button.js +4 -4
  130. package/dist/ui/b/Button/common/Group/Group.js +2 -2
  131. package/dist/ui/b/Button/index.js +1 -1
  132. package/dist/ui/b/Card/Card.js +4 -4
  133. package/dist/ui/b/Card/common/Group/Group.js +4 -4
  134. package/dist/ui/b/Card/common/Group/index.js +1 -1
  135. package/dist/ui/b/Card/common/Section/Section.js +2 -2
  136. package/dist/ui/b/Card/common/index.js +1 -1
  137. package/dist/ui/b/Card/index.js +1 -1
  138. package/dist/ui/b/Logo/Logo.js +5 -5
  139. package/dist/ui/b/Logo/index.js +2 -2
  140. package/dist/ui/b/Page/Page.js +4 -4
  141. package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +3 -3
  142. package/dist/ui/b/Page/common/PageHelmet/index.js +1 -1
  143. package/dist/ui/b/Page/common/Section/Section.js +2 -2
  144. package/dist/ui/b/Page/common/index.js +1 -1
  145. package/dist/ui/b/Page/index.js +1 -1
  146. package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +5 -5
  147. package/dist/ui/b/SocialMediaButton/index.js +1 -1
  148. package/dist/ui/b/ThemeSelector/ThemeSelector.js +5 -5
  149. package/dist/ui/b/ThemeSelector/index.js +1 -1
  150. package/dist/ui/b/Title/Title.js +2 -2
  151. package/dist/ui/b/index.js +3 -3
  152. package/dist/ui/c/Modal/Modal.js +3 -3
  153. package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +4 -4
  154. package/dist/ui/c/Modal/common/ModalHeader/index.js +1 -1
  155. package/dist/ui/c/Modal/common/index.js +1 -1
  156. package/dist/ui/c/Modal/index.js +1 -1
  157. package/dist/ui/c/Shortener/Shortener.js +4 -4
  158. package/dist/ui/c/Shortener/index.js +1 -1
  159. package/dist/ui/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
  160. package/dist/ui/c/index.js +1 -1
  161. package/dist/ui/f/FormInput/FormInput.js +3 -3
  162. package/dist/ui/f/FormInput/index.js +1 -1
  163. package/dist/ui/f/common/CharacterCount/CharacterCount.js +1 -1
  164. package/dist/ui/f/common/Debugger/Debugger.js +2 -2
  165. package/dist/ui/f/common/Debugger/index.js +2 -2
  166. package/dist/ui/f/common/Description/Description.js +2 -2
  167. package/dist/ui/f/common/Hint/Hint.js +2 -2
  168. package/dist/ui/f/common/Label/Label.js +2 -2
  169. package/dist/ui/f/common/index.js +1 -1
  170. package/dist/ui/f/common/utils/lookUpInputValueFromOptions.js +1 -1
  171. package/dist/ui/f/fields/Checkbox/Checkbox.js +3 -3
  172. package/dist/ui/f/fields/Checkbox/index.js +2 -2
  173. package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +3 -3
  174. package/dist/ui/f/fields/ChoicesInput/common/Choice/common/ImageChoice/ImageChoice.js +1 -1
  175. package/dist/ui/f/fields/ChoicesInput/common/Choice/common/TextChoice/TextChoice.js +1 -1
  176. package/dist/ui/f/fields/ChoicesInput/index.js +1 -1
  177. package/dist/ui/f/fields/DragAndDropFileUpload/DragAndDropFileUpload.js +2 -2
  178. package/dist/ui/f/fields/DragAndDropFileUpload/index.js +1 -1
  179. package/dist/ui/f/fields/EditorInput/EditorInput.js +4 -4
  180. package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +5 -5
  181. package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +1 -1
  182. package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +4 -4
  183. package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +1 -1
  184. package/dist/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.js +2 -2
  185. package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +5 -5
  186. package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +1 -1
  187. package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +4 -4
  188. package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +1 -1
  189. package/dist/ui/f/fields/EditorInput/common/index.js +2 -2
  190. package/dist/ui/f/fields/EditorInput/index.js +1 -1
  191. package/dist/ui/f/fields/FileUpload/FileUpload.js +3 -3
  192. package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +4 -4
  193. package/dist/ui/f/fields/FileUpload/common/Preview/index.js +1 -1
  194. package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/PreviewNewRegistration.js +4 -4
  195. package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/index.js +1 -1
  196. package/dist/ui/f/fields/FileUpload/common/index.js +1 -1
  197. package/dist/ui/f/fields/FileUpload/index.js +2 -2
  198. package/dist/ui/f/fields/HighlightedTextInput/HighlightedTextInput.js +2 -2
  199. package/dist/ui/f/fields/HighlightedTextInput/index.js +1 -1
  200. package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +3 -3
  201. package/dist/ui/f/fields/LatexPreviewInput/convertLatexToHtml.js +3088 -3088
  202. package/dist/ui/f/fields/LatexPreviewInput/index.js +1 -1
  203. package/dist/ui/f/fields/LinkInput/LinkInput.js +4 -4
  204. package/dist/ui/f/fields/LinkInput/index.js +2 -2
  205. package/dist/ui/f/fields/PasswordInput/PasswordInput.js +2 -2
  206. package/dist/ui/f/fields/PasswordInput/index.js +2 -2
  207. package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +1 -1
  208. package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +3 -3
  209. package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
  210. package/dist/ui/f/fields/QueryCombobox/common/Menu/Menu.js +3 -3
  211. package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +3 -3
  212. package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
  213. package/dist/ui/f/fields/QueryCombobox/common/index.js +1 -1
  214. package/dist/ui/f/fields/QueryCombobox/index.js +1 -1
  215. package/dist/ui/f/fields/RadioInput/RadioInput.js +2 -2
  216. package/dist/ui/f/fields/RatingsInput/RatingsInput.js +3 -3
  217. package/dist/ui/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
  218. package/dist/ui/f/fields/RatingsInput/index.js +1 -1
  219. package/dist/ui/f/fields/SearchDropdown/SearchDropdown.js +3 -3
  220. package/dist/ui/f/fields/SearchDropdown/index.js +1 -1
  221. package/dist/ui/f/fields/SelectInput/SelectInput.js +4 -4
  222. package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +4 -4
  223. package/dist/ui/f/fields/SelectInput/common/Menu/index.js +1 -1
  224. package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +4 -4
  225. package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +1 -1
  226. package/dist/ui/f/fields/SelectInput/common/Single/Single.js +4 -4
  227. package/dist/ui/f/fields/SelectInput/common/Single/index.js +1 -1
  228. package/dist/ui/f/fields/SelectInput/common/index.js +1 -1
  229. package/dist/ui/f/fields/SelectInput/index.js +2 -2
  230. package/dist/ui/f/fields/SelectSingle/SelectSingle.js +3 -3
  231. package/dist/ui/f/fields/TextInput/TextInput.js +2 -2
  232. package/dist/ui/f/fields/TextInput/index.js +1 -1
  233. package/dist/ui/f/fields/TextareaInput/TextareaInput.js +3 -3
  234. package/dist/ui/f/fields/TextareaInput/index.js +2 -2
  235. package/dist/ui/f/fields/ToggleInput/ToggleInput.js +4 -4
  236. package/dist/ui/f/fields/ToggleInput/index.js +2 -2
  237. package/dist/ui/f/fields/index.js +12 -12
  238. package/dist/ui/f/index.js +17 -17
  239. package/dist/ui/g/DragAndDrop/DragAndDrop.js +1 -1
  240. package/dist/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.js +1 -1
  241. package/dist/ui/g/DragAndDrop/common/MultiSectionDragAndDrop/MultiSectionDragAndDrop.js +1 -1
  242. package/dist/ui/g/DragAndDrop/common/SingleListDragAndDrop/SingleListDragAndDrop.js +1 -1
  243. package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +4 -4
  244. package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +4 -4
  245. package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +1 -1
  246. package/dist/ui/g/ExpandableLexicalPreview/common/index.js +1 -1
  247. package/dist/ui/g/ExpandableLexicalPreview/index.js +1 -1
  248. package/dist/ui/g/FormBuilder/FormBuilder.js +4 -4
  249. package/dist/ui/g/FormBuilder/common/Builder/Builder.js +4 -4
  250. package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +4 -4
  251. package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +1 -1
  252. package/dist/ui/g/FormBuilder/common/Builder/common/AutoQASection/AutoQASection.js +3 -3
  253. package/dist/ui/g/FormBuilder/common/Builder/common/AutoQASection/index.js +1 -1
  254. package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +3 -3
  255. package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +1 -1
  256. package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +4 -4
  257. package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +1 -1
  258. package/dist/ui/g/FormBuilder/common/Builder/common/index.js +1 -1
  259. package/dist/ui/g/FormBuilder/common/Builder/index.js +1 -1
  260. package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +3 -3
  261. package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +4 -4
  262. package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +1 -1
  263. package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +1 -1
  264. package/dist/ui/g/FormBuilder/common/Renderer/index.js +1 -1
  265. package/dist/ui/g/FormBuilder/common/index.js +1 -1
  266. package/dist/ui/g/FormBuilder/index.js +1 -1
  267. package/dist/ui/g/index.js +4 -4
  268. package/dist/ui/index.js +14 -14
  269. package/package.json +4 -4
  270. package/dist/DatePicker-DHuh_8q6.js +0 -1305
  271. package/dist/exports.module-DmUnHWIJ.js +0 -20
@@ -1,9 +1,2495 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import { D as e } from "../../../DatePicker-DHuh_8q6.js";
4
- import "../../../index-CxkFVI6N.js";
5
- import "../../../exports.module-DmUnHWIJ.js";
6
- import "../../../index-C_b9PQD8.js";
1
+ import { jsx as d, jsxs as p, Fragment as Y } from "react/jsx-runtime";
2
+ import { createContext as q, forwardRef as Mt, useContext as Q, useState as z, useEffect as ue, useLayoutEffect as _t, useRef as kt } from "react";
3
+ import { P as C } from "../../../index-BOVlDh8S.js";
4
+ import { s as Nt } from "../../../exports.module-BY48WvdE.js";
5
+ import { f as ae } from "../../../index-C4uazrih.js";
6
+ import '../../../assets/DatePicker.css';const ke = 6048e5, Pt = 864e5, Ee = Symbol.for("constructDateFrom");
7
+ function x(e, n) {
8
+ return typeof e == "function" ? e(n) : e && typeof e == "object" && Ee in e ? e[Ee](n) : e instanceof Date ? new e.constructor(n) : new Date(n);
9
+ }
10
+ function N(e, n) {
11
+ return x(n || e, e);
12
+ }
13
+ function S(e, n, t) {
14
+ const r = N(e, t == null ? void 0 : t.in);
15
+ return isNaN(n) ? x((t == null ? void 0 : t.in) || e, NaN) : (n && r.setDate(r.getDate() + n), r);
16
+ }
17
+ function F(e, n, t) {
18
+ const r = N(e, t == null ? void 0 : t.in);
19
+ if (isNaN(n)) return x((t == null ? void 0 : t.in) || e, NaN);
20
+ if (!n)
21
+ return r;
22
+ const a = r.getDate(), o = x((t == null ? void 0 : t.in) || e, r.getTime());
23
+ o.setMonth(r.getMonth() + n + 1, 0);
24
+ const i = o.getDate();
25
+ return a >= i ? o : (r.setFullYear(
26
+ o.getFullYear(),
27
+ o.getMonth(),
28
+ a
29
+ ), r);
30
+ }
31
+ let Ot = {};
32
+ function ee() {
33
+ return Ot;
34
+ }
35
+ function I(e, n) {
36
+ var s, u, c, l;
37
+ const t = ee(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((u = (s = n == null ? void 0 : n.locale) == null ? void 0 : s.options) == null ? void 0 : u.weekStartsOn) ?? t.weekStartsOn ?? ((l = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : l.weekStartsOn) ?? 0, a = N(e, n == null ? void 0 : n.in), o = a.getDay(), i = (o < r ? 7 : 0) + o - r;
38
+ return a.setDate(a.getDate() - i), a.setHours(0, 0, 0, 0), a;
39
+ }
40
+ function A(e, n) {
41
+ return I(e, { ...n, weekStartsOn: 1 });
42
+ }
43
+ function Xe(e, n) {
44
+ const t = N(e, n == null ? void 0 : n.in), r = t.getFullYear(), a = x(t, 0);
45
+ a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
46
+ const o = A(a), i = x(t, 0);
47
+ i.setFullYear(r, 0, 4), i.setHours(0, 0, 0, 0);
48
+ const s = A(i);
49
+ return t.getTime() >= o.getTime() ? r + 1 : t.getTime() >= s.getTime() ? r : r - 1;
50
+ }
51
+ function ie(e) {
52
+ const n = N(e), t = new Date(
53
+ Date.UTC(
54
+ n.getFullYear(),
55
+ n.getMonth(),
56
+ n.getDate(),
57
+ n.getHours(),
58
+ n.getMinutes(),
59
+ n.getSeconds(),
60
+ n.getMilliseconds()
61
+ )
62
+ );
63
+ return t.setUTCFullYear(n.getFullYear()), +e - +t;
64
+ }
65
+ function $(e, ...n) {
66
+ const t = x.bind(
67
+ null,
68
+ e || n.find((r) => typeof r == "object")
69
+ );
70
+ return n.map(t);
71
+ }
72
+ function V(e, n) {
73
+ const t = N(e, n == null ? void 0 : n.in);
74
+ return t.setHours(0, 0, 0, 0), t;
75
+ }
76
+ function L(e, n, t) {
77
+ const [r, a] = $(
78
+ t == null ? void 0 : t.in,
79
+ e,
80
+ n
81
+ ), o = V(r), i = V(a), s = +o - ie(o), u = +i - ie(i);
82
+ return Math.round((s - u) / Pt);
83
+ }
84
+ function xt(e, n) {
85
+ const t = Xe(e, n), r = x(e, 0);
86
+ return r.setFullYear(t, 0, 4), r.setHours(0, 0, 0, 0), A(r);
87
+ }
88
+ function Me(e, n, t) {
89
+ return S(e, n * 7, t);
90
+ }
91
+ function Ct(e, n, t) {
92
+ return F(e, n * 12, t);
93
+ }
94
+ function pt(e, n) {
95
+ let t, r = n == null ? void 0 : n.in;
96
+ return e.forEach((a) => {
97
+ !r && typeof a == "object" && (r = x.bind(null, a));
98
+ const o = N(a, r);
99
+ (!t || t < o || isNaN(+o)) && (t = o);
100
+ }), x(r, t || NaN);
101
+ }
102
+ function St(e, n) {
103
+ let t, r = n == null ? void 0 : n.in;
104
+ return e.forEach((a) => {
105
+ !r && typeof a == "object" && (r = x.bind(null, a));
106
+ const o = N(a, r);
107
+ (!t || t > o || isNaN(+o)) && (t = o);
108
+ }), x(r, t || NaN);
109
+ }
110
+ function W(e, n, t) {
111
+ const [r, a] = $(
112
+ t == null ? void 0 : t.in,
113
+ e,
114
+ n
115
+ );
116
+ return +V(r) == +V(a);
117
+ }
118
+ function Ne(e) {
119
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
120
+ }
121
+ function Wt(e) {
122
+ return !(!Ne(e) && typeof e != "number" || isNaN(+N(e)));
123
+ }
124
+ function Z(e, n, t) {
125
+ const [r, a] = $(
126
+ t == null ? void 0 : t.in,
127
+ e,
128
+ n
129
+ ), o = r.getFullYear() - a.getFullYear(), i = r.getMonth() - a.getMonth();
130
+ return o * 12 + i;
131
+ }
132
+ function Tt(e, n, t) {
133
+ const [r, a] = $(
134
+ t == null ? void 0 : t.in,
135
+ e,
136
+ n
137
+ ), o = I(r, t), i = I(a, t), s = +o - ie(o), u = +i - ie(i);
138
+ return Math.round((s - u) / ke);
139
+ }
140
+ function Pe(e, n) {
141
+ const t = N(e, n == null ? void 0 : n.in), r = t.getMonth();
142
+ return t.setFullYear(t.getFullYear(), r + 1, 0), t.setHours(23, 59, 59, 999), t;
143
+ }
144
+ function T(e, n) {
145
+ const t = N(e, n == null ? void 0 : n.in);
146
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
147
+ }
148
+ function Ge(e, n) {
149
+ const t = N(e, n == null ? void 0 : n.in);
150
+ return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
151
+ }
152
+ function Oe(e, n) {
153
+ var s, u, c, l;
154
+ const t = ee(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((u = (s = n == null ? void 0 : n.locale) == null ? void 0 : s.options) == null ? void 0 : u.weekStartsOn) ?? t.weekStartsOn ?? ((l = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : l.weekStartsOn) ?? 0, a = N(e, n == null ? void 0 : n.in), o = a.getDay(), i = (o < r ? -7 : 0) + 6 - (o - r);
155
+ return a.setDate(a.getDate() + i), a.setHours(23, 59, 59, 999), a;
156
+ }
157
+ function Ve(e, n) {
158
+ return Oe(e, { ...n, weekStartsOn: 1 });
159
+ }
160
+ const Yt = {
161
+ lessThanXSeconds: {
162
+ one: "less than a second",
163
+ other: "less than {{count}} seconds"
164
+ },
165
+ xSeconds: {
166
+ one: "1 second",
167
+ other: "{{count}} seconds"
168
+ },
169
+ halfAMinute: "half a minute",
170
+ lessThanXMinutes: {
171
+ one: "less than a minute",
172
+ other: "less than {{count}} minutes"
173
+ },
174
+ xMinutes: {
175
+ one: "1 minute",
176
+ other: "{{count}} minutes"
177
+ },
178
+ aboutXHours: {
179
+ one: "about 1 hour",
180
+ other: "about {{count}} hours"
181
+ },
182
+ xHours: {
183
+ one: "1 hour",
184
+ other: "{{count}} hours"
185
+ },
186
+ xDays: {
187
+ one: "1 day",
188
+ other: "{{count}} days"
189
+ },
190
+ aboutXWeeks: {
191
+ one: "about 1 week",
192
+ other: "about {{count}} weeks"
193
+ },
194
+ xWeeks: {
195
+ one: "1 week",
196
+ other: "{{count}} weeks"
197
+ },
198
+ aboutXMonths: {
199
+ one: "about 1 month",
200
+ other: "about {{count}} months"
201
+ },
202
+ xMonths: {
203
+ one: "1 month",
204
+ other: "{{count}} months"
205
+ },
206
+ aboutXYears: {
207
+ one: "about 1 year",
208
+ other: "about {{count}} years"
209
+ },
210
+ xYears: {
211
+ one: "1 year",
212
+ other: "{{count}} years"
213
+ },
214
+ overXYears: {
215
+ one: "over 1 year",
216
+ other: "over {{count}} years"
217
+ },
218
+ almostXYears: {
219
+ one: "almost 1 year",
220
+ other: "almost {{count}} years"
221
+ }
222
+ }, Ft = (e, n, t) => {
223
+ let r;
224
+ const a = Yt[e];
225
+ return typeof a == "string" ? r = a : n === 1 ? r = a.one : r = a.other.replace("{{count}}", n.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
226
+ };
227
+ function me(e) {
228
+ return (n = {}) => {
229
+ const t = n.width ? String(n.width) : e.defaultWidth;
230
+ return e.formats[t] || e.formats[e.defaultWidth];
231
+ };
232
+ }
233
+ const Et = {
234
+ full: "EEEE, MMMM do, y",
235
+ long: "MMMM do, y",
236
+ medium: "MMM d, y",
237
+ short: "MM/dd/yyyy"
238
+ }, Lt = {
239
+ full: "h:mm:ss a zzzz",
240
+ long: "h:mm:ss a z",
241
+ medium: "h:mm:ss a",
242
+ short: "h:mm a"
243
+ }, It = {
244
+ full: "{{date}} 'at' {{time}}",
245
+ long: "{{date}} 'at' {{time}}",
246
+ medium: "{{date}}, {{time}}",
247
+ short: "{{date}}, {{time}}"
248
+ }, Rt = {
249
+ date: me({
250
+ formats: Et,
251
+ defaultWidth: "full"
252
+ }),
253
+ time: me({
254
+ formats: Lt,
255
+ defaultWidth: "full"
256
+ }),
257
+ dateTime: me({
258
+ formats: It,
259
+ defaultWidth: "full"
260
+ })
261
+ }, Bt = {
262
+ lastWeek: "'last' eeee 'at' p",
263
+ yesterday: "'yesterday at' p",
264
+ today: "'today at' p",
265
+ tomorrow: "'tomorrow at' p",
266
+ nextWeek: "eeee 'at' p",
267
+ other: "P"
268
+ }, jt = (e, n, t, r) => Bt[e];
269
+ function U(e) {
270
+ return (n, t) => {
271
+ const r = t != null && t.context ? String(t.context) : "standalone";
272
+ let a;
273
+ if (r === "formatting" && e.formattingValues) {
274
+ const i = e.defaultFormattingWidth || e.defaultWidth, s = t != null && t.width ? String(t.width) : i;
275
+ a = e.formattingValues[s] || e.formattingValues[i];
276
+ } else {
277
+ const i = e.defaultWidth, s = t != null && t.width ? String(t.width) : e.defaultWidth;
278
+ a = e.values[s] || e.values[i];
279
+ }
280
+ const o = e.argumentCallback ? e.argumentCallback(n) : n;
281
+ return a[o];
282
+ };
283
+ }
284
+ const Ht = {
285
+ narrow: ["B", "A"],
286
+ abbreviated: ["BC", "AD"],
287
+ wide: ["Before Christ", "Anno Domini"]
288
+ }, At = {
289
+ narrow: ["1", "2", "3", "4"],
290
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
291
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
292
+ }, qt = {
293
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
294
+ abbreviated: [
295
+ "Jan",
296
+ "Feb",
297
+ "Mar",
298
+ "Apr",
299
+ "May",
300
+ "Jun",
301
+ "Jul",
302
+ "Aug",
303
+ "Sep",
304
+ "Oct",
305
+ "Nov",
306
+ "Dec"
307
+ ],
308
+ wide: [
309
+ "January",
310
+ "February",
311
+ "March",
312
+ "April",
313
+ "May",
314
+ "June",
315
+ "July",
316
+ "August",
317
+ "September",
318
+ "October",
319
+ "November",
320
+ "December"
321
+ ]
322
+ }, Qt = {
323
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
324
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
325
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
326
+ wide: [
327
+ "Sunday",
328
+ "Monday",
329
+ "Tuesday",
330
+ "Wednesday",
331
+ "Thursday",
332
+ "Friday",
333
+ "Saturday"
334
+ ]
335
+ }, Xt = {
336
+ narrow: {
337
+ am: "a",
338
+ pm: "p",
339
+ midnight: "mi",
340
+ noon: "n",
341
+ morning: "morning",
342
+ afternoon: "afternoon",
343
+ evening: "evening",
344
+ night: "night"
345
+ },
346
+ abbreviated: {
347
+ am: "AM",
348
+ pm: "PM",
349
+ midnight: "midnight",
350
+ noon: "noon",
351
+ morning: "morning",
352
+ afternoon: "afternoon",
353
+ evening: "evening",
354
+ night: "night"
355
+ },
356
+ wide: {
357
+ am: "a.m.",
358
+ pm: "p.m.",
359
+ midnight: "midnight",
360
+ noon: "noon",
361
+ morning: "morning",
362
+ afternoon: "afternoon",
363
+ evening: "evening",
364
+ night: "night"
365
+ }
366
+ }, Gt = {
367
+ narrow: {
368
+ am: "a",
369
+ pm: "p",
370
+ midnight: "mi",
371
+ noon: "n",
372
+ morning: "in the morning",
373
+ afternoon: "in the afternoon",
374
+ evening: "in the evening",
375
+ night: "at night"
376
+ },
377
+ abbreviated: {
378
+ am: "AM",
379
+ pm: "PM",
380
+ midnight: "midnight",
381
+ noon: "noon",
382
+ morning: "in the morning",
383
+ afternoon: "in the afternoon",
384
+ evening: "in the evening",
385
+ night: "at night"
386
+ },
387
+ wide: {
388
+ am: "a.m.",
389
+ pm: "p.m.",
390
+ midnight: "midnight",
391
+ noon: "noon",
392
+ morning: "in the morning",
393
+ afternoon: "in the afternoon",
394
+ evening: "in the evening",
395
+ night: "at night"
396
+ }
397
+ }, Vt = (e, n) => {
398
+ const t = Number(e), r = t % 100;
399
+ if (r > 20 || r < 10)
400
+ switch (r % 10) {
401
+ case 1:
402
+ return t + "st";
403
+ case 2:
404
+ return t + "nd";
405
+ case 3:
406
+ return t + "rd";
407
+ }
408
+ return t + "th";
409
+ }, $t = {
410
+ ordinalNumber: Vt,
411
+ era: U({
412
+ values: Ht,
413
+ defaultWidth: "wide"
414
+ }),
415
+ quarter: U({
416
+ values: At,
417
+ defaultWidth: "wide",
418
+ argumentCallback: (e) => e - 1
419
+ }),
420
+ month: U({
421
+ values: qt,
422
+ defaultWidth: "wide"
423
+ }),
424
+ day: U({
425
+ values: Qt,
426
+ defaultWidth: "wide"
427
+ }),
428
+ dayPeriod: U({
429
+ values: Xt,
430
+ defaultWidth: "wide",
431
+ formattingValues: Gt,
432
+ defaultFormattingWidth: "wide"
433
+ })
434
+ };
435
+ function K(e) {
436
+ return (n, t = {}) => {
437
+ const r = t.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = n.match(a);
438
+ if (!o)
439
+ return null;
440
+ const i = o[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(s) ? Ut(s, (f) => f.test(i)) : (
441
+ // [TODO] -- I challenge you to fix the type
442
+ Jt(s, (f) => f.test(i))
443
+ );
444
+ let c;
445
+ c = e.valueCallback ? e.valueCallback(u) : u, c = t.valueCallback ? (
446
+ // [TODO] -- I challenge you to fix the type
447
+ t.valueCallback(c)
448
+ ) : c;
449
+ const l = n.slice(i.length);
450
+ return { value: c, rest: l };
451
+ };
452
+ }
453
+ function Jt(e, n) {
454
+ for (const t in e)
455
+ if (Object.prototype.hasOwnProperty.call(e, t) && n(e[t]))
456
+ return t;
457
+ }
458
+ function Ut(e, n) {
459
+ for (let t = 0; t < e.length; t++)
460
+ if (n(e[t]))
461
+ return t;
462
+ }
463
+ function Kt(e) {
464
+ return (n, t = {}) => {
465
+ const r = n.match(e.matchPattern);
466
+ if (!r) return null;
467
+ const a = r[0], o = n.match(e.parsePattern);
468
+ if (!o) return null;
469
+ let i = e.valueCallback ? e.valueCallback(o[0]) : o[0];
470
+ i = t.valueCallback ? t.valueCallback(i) : i;
471
+ const s = n.slice(a.length);
472
+ return { value: i, rest: s };
473
+ };
474
+ }
475
+ const zt = /^(\d+)(th|st|nd|rd)?/i, Zt = /\d+/i, en = {
476
+ narrow: /^(b|a)/i,
477
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
478
+ wide: /^(before christ|before common era|anno domini|common era)/i
479
+ }, tn = {
480
+ any: [/^b/i, /^(a|c)/i]
481
+ }, nn = {
482
+ narrow: /^[1234]/i,
483
+ abbreviated: /^q[1234]/i,
484
+ wide: /^[1234](th|st|nd|rd)? quarter/i
485
+ }, rn = {
486
+ any: [/1/i, /2/i, /3/i, /4/i]
487
+ }, an = {
488
+ narrow: /^[jfmasond]/i,
489
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
490
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
491
+ }, on = {
492
+ narrow: [
493
+ /^j/i,
494
+ /^f/i,
495
+ /^m/i,
496
+ /^a/i,
497
+ /^m/i,
498
+ /^j/i,
499
+ /^j/i,
500
+ /^a/i,
501
+ /^s/i,
502
+ /^o/i,
503
+ /^n/i,
504
+ /^d/i
505
+ ],
506
+ any: [
507
+ /^ja/i,
508
+ /^f/i,
509
+ /^mar/i,
510
+ /^ap/i,
511
+ /^may/i,
512
+ /^jun/i,
513
+ /^jul/i,
514
+ /^au/i,
515
+ /^s/i,
516
+ /^o/i,
517
+ /^n/i,
518
+ /^d/i
519
+ ]
520
+ }, sn = {
521
+ narrow: /^[smtwf]/i,
522
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
523
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
524
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
525
+ }, un = {
526
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
527
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
528
+ }, ln = {
529
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
530
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
531
+ }, cn = {
532
+ any: {
533
+ am: /^a/i,
534
+ pm: /^p/i,
535
+ midnight: /^mi/i,
536
+ noon: /^no/i,
537
+ morning: /morning/i,
538
+ afternoon: /afternoon/i,
539
+ evening: /evening/i,
540
+ night: /night/i
541
+ }
542
+ }, dn = {
543
+ ordinalNumber: Kt({
544
+ matchPattern: zt,
545
+ parsePattern: Zt,
546
+ valueCallback: (e) => parseInt(e, 10)
547
+ }),
548
+ era: K({
549
+ matchPatterns: en,
550
+ defaultMatchWidth: "wide",
551
+ parsePatterns: tn,
552
+ defaultParseWidth: "any"
553
+ }),
554
+ quarter: K({
555
+ matchPatterns: nn,
556
+ defaultMatchWidth: "wide",
557
+ parsePatterns: rn,
558
+ defaultParseWidth: "any",
559
+ valueCallback: (e) => e + 1
560
+ }),
561
+ month: K({
562
+ matchPatterns: an,
563
+ defaultMatchWidth: "wide",
564
+ parsePatterns: on,
565
+ defaultParseWidth: "any"
566
+ }),
567
+ day: K({
568
+ matchPatterns: sn,
569
+ defaultMatchWidth: "wide",
570
+ parsePatterns: un,
571
+ defaultParseWidth: "any"
572
+ }),
573
+ dayPeriod: K({
574
+ matchPatterns: ln,
575
+ defaultMatchWidth: "any",
576
+ parsePatterns: cn,
577
+ defaultParseWidth: "any"
578
+ })
579
+ }, $e = {
580
+ code: "en-US",
581
+ formatDistance: Ft,
582
+ formatLong: Rt,
583
+ formatRelative: jt,
584
+ localize: $t,
585
+ match: dn,
586
+ options: {
587
+ weekStartsOn: 0,
588
+ firstWeekContainsDate: 1
589
+ }
590
+ };
591
+ function fn(e, n) {
592
+ const t = N(e, n == null ? void 0 : n.in);
593
+ return L(t, Ge(t)) + 1;
594
+ }
595
+ function Je(e, n) {
596
+ const t = N(e, n == null ? void 0 : n.in), r = +A(t) - +xt(t);
597
+ return Math.round(r / ke) + 1;
598
+ }
599
+ function Ue(e, n) {
600
+ var l, f, h, m;
601
+ const t = N(e, n == null ? void 0 : n.in), r = t.getFullYear(), a = ee(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((m = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = x((n == null ? void 0 : n.in) || e, 0);
602
+ i.setFullYear(r + 1, 0, o), i.setHours(0, 0, 0, 0);
603
+ const s = I(i, n), u = x((n == null ? void 0 : n.in) || e, 0);
604
+ u.setFullYear(r, 0, o), u.setHours(0, 0, 0, 0);
605
+ const c = I(u, n);
606
+ return +t >= +s ? r + 1 : +t >= +c ? r : r - 1;
607
+ }
608
+ function hn(e, n) {
609
+ var s, u, c, l;
610
+ const t = ee(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (s = n == null ? void 0 : n.locale) == null ? void 0 : s.options) == null ? void 0 : u.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((l = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, a = Ue(e, n), o = x((n == null ? void 0 : n.in) || e, 0);
611
+ return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), I(o, n);
612
+ }
613
+ function Ke(e, n) {
614
+ const t = N(e, n == null ? void 0 : n.in), r = +I(t, n) - +hn(t, n);
615
+ return Math.round(r / ke) + 1;
616
+ }
617
+ function k(e, n) {
618
+ const t = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(n, "0");
619
+ return t + r;
620
+ }
621
+ const B = {
622
+ // Year
623
+ y(e, n) {
624
+ const t = e.getFullYear(), r = t > 0 ? t : 1 - t;
625
+ return k(n === "yy" ? r % 100 : r, n.length);
626
+ },
627
+ // Month
628
+ M(e, n) {
629
+ const t = e.getMonth();
630
+ return n === "M" ? String(t + 1) : k(t + 1, 2);
631
+ },
632
+ // Day of the month
633
+ d(e, n) {
634
+ return k(e.getDate(), n.length);
635
+ },
636
+ // AM or PM
637
+ a(e, n) {
638
+ const t = e.getHours() / 12 >= 1 ? "pm" : "am";
639
+ switch (n) {
640
+ case "a":
641
+ case "aa":
642
+ return t.toUpperCase();
643
+ case "aaa":
644
+ return t;
645
+ case "aaaaa":
646
+ return t[0];
647
+ case "aaaa":
648
+ default:
649
+ return t === "am" ? "a.m." : "p.m.";
650
+ }
651
+ },
652
+ // Hour [1-12]
653
+ h(e, n) {
654
+ return k(e.getHours() % 12 || 12, n.length);
655
+ },
656
+ // Hour [0-23]
657
+ H(e, n) {
658
+ return k(e.getHours(), n.length);
659
+ },
660
+ // Minute
661
+ m(e, n) {
662
+ return k(e.getMinutes(), n.length);
663
+ },
664
+ // Second
665
+ s(e, n) {
666
+ return k(e.getSeconds(), n.length);
667
+ },
668
+ // Fraction of second
669
+ S(e, n) {
670
+ const t = n.length, r = e.getMilliseconds(), a = Math.trunc(
671
+ r * Math.pow(10, t - 3)
672
+ );
673
+ return k(a, n.length);
674
+ }
675
+ }, G = {
676
+ midnight: "midnight",
677
+ noon: "noon",
678
+ morning: "morning",
679
+ afternoon: "afternoon",
680
+ evening: "evening",
681
+ night: "night"
682
+ }, Le = {
683
+ // Era
684
+ G: function(e, n, t) {
685
+ const r = e.getFullYear() > 0 ? 1 : 0;
686
+ switch (n) {
687
+ // AD, BC
688
+ case "G":
689
+ case "GG":
690
+ case "GGG":
691
+ return t.era(r, { width: "abbreviated" });
692
+ // A, B
693
+ case "GGGGG":
694
+ return t.era(r, { width: "narrow" });
695
+ // Anno Domini, Before Christ
696
+ case "GGGG":
697
+ default:
698
+ return t.era(r, { width: "wide" });
699
+ }
700
+ },
701
+ // Year
702
+ y: function(e, n, t) {
703
+ if (n === "yo") {
704
+ const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
705
+ return t.ordinalNumber(a, { unit: "year" });
706
+ }
707
+ return B.y(e, n);
708
+ },
709
+ // Local week-numbering year
710
+ Y: function(e, n, t, r) {
711
+ const a = Ue(e, r), o = a > 0 ? a : 1 - a;
712
+ if (n === "YY") {
713
+ const i = o % 100;
714
+ return k(i, 2);
715
+ }
716
+ return n === "Yo" ? t.ordinalNumber(o, { unit: "year" }) : k(o, n.length);
717
+ },
718
+ // ISO week-numbering year
719
+ R: function(e, n) {
720
+ const t = Xe(e);
721
+ return k(t, n.length);
722
+ },
723
+ // Extended year. This is a single number designating the year of this calendar system.
724
+ // The main difference between `y` and `u` localizers are B.C. years:
725
+ // | Year | `y` | `u` |
726
+ // |------|-----|-----|
727
+ // | AC 1 | 1 | 1 |
728
+ // | BC 1 | 1 | 0 |
729
+ // | BC 2 | 2 | -1 |
730
+ // Also `yy` always returns the last two digits of a year,
731
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
732
+ u: function(e, n) {
733
+ const t = e.getFullYear();
734
+ return k(t, n.length);
735
+ },
736
+ // Quarter
737
+ Q: function(e, n, t) {
738
+ const r = Math.ceil((e.getMonth() + 1) / 3);
739
+ switch (n) {
740
+ // 1, 2, 3, 4
741
+ case "Q":
742
+ return String(r);
743
+ // 01, 02, 03, 04
744
+ case "QQ":
745
+ return k(r, 2);
746
+ // 1st, 2nd, 3rd, 4th
747
+ case "Qo":
748
+ return t.ordinalNumber(r, { unit: "quarter" });
749
+ // Q1, Q2, Q3, Q4
750
+ case "QQQ":
751
+ return t.quarter(r, {
752
+ width: "abbreviated",
753
+ context: "formatting"
754
+ });
755
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
756
+ case "QQQQQ":
757
+ return t.quarter(r, {
758
+ width: "narrow",
759
+ context: "formatting"
760
+ });
761
+ // 1st quarter, 2nd quarter, ...
762
+ case "QQQQ":
763
+ default:
764
+ return t.quarter(r, {
765
+ width: "wide",
766
+ context: "formatting"
767
+ });
768
+ }
769
+ },
770
+ // Stand-alone quarter
771
+ q: function(e, n, t) {
772
+ const r = Math.ceil((e.getMonth() + 1) / 3);
773
+ switch (n) {
774
+ // 1, 2, 3, 4
775
+ case "q":
776
+ return String(r);
777
+ // 01, 02, 03, 04
778
+ case "qq":
779
+ return k(r, 2);
780
+ // 1st, 2nd, 3rd, 4th
781
+ case "qo":
782
+ return t.ordinalNumber(r, { unit: "quarter" });
783
+ // Q1, Q2, Q3, Q4
784
+ case "qqq":
785
+ return t.quarter(r, {
786
+ width: "abbreviated",
787
+ context: "standalone"
788
+ });
789
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
790
+ case "qqqqq":
791
+ return t.quarter(r, {
792
+ width: "narrow",
793
+ context: "standalone"
794
+ });
795
+ // 1st quarter, 2nd quarter, ...
796
+ case "qqqq":
797
+ default:
798
+ return t.quarter(r, {
799
+ width: "wide",
800
+ context: "standalone"
801
+ });
802
+ }
803
+ },
804
+ // Month
805
+ M: function(e, n, t) {
806
+ const r = e.getMonth();
807
+ switch (n) {
808
+ case "M":
809
+ case "MM":
810
+ return B.M(e, n);
811
+ // 1st, 2nd, ..., 12th
812
+ case "Mo":
813
+ return t.ordinalNumber(r + 1, { unit: "month" });
814
+ // Jan, Feb, ..., Dec
815
+ case "MMM":
816
+ return t.month(r, {
817
+ width: "abbreviated",
818
+ context: "formatting"
819
+ });
820
+ // J, F, ..., D
821
+ case "MMMMM":
822
+ return t.month(r, {
823
+ width: "narrow",
824
+ context: "formatting"
825
+ });
826
+ // January, February, ..., December
827
+ case "MMMM":
828
+ default:
829
+ return t.month(r, { width: "wide", context: "formatting" });
830
+ }
831
+ },
832
+ // Stand-alone month
833
+ L: function(e, n, t) {
834
+ const r = e.getMonth();
835
+ switch (n) {
836
+ // 1, 2, ..., 12
837
+ case "L":
838
+ return String(r + 1);
839
+ // 01, 02, ..., 12
840
+ case "LL":
841
+ return k(r + 1, 2);
842
+ // 1st, 2nd, ..., 12th
843
+ case "Lo":
844
+ return t.ordinalNumber(r + 1, { unit: "month" });
845
+ // Jan, Feb, ..., Dec
846
+ case "LLL":
847
+ return t.month(r, {
848
+ width: "abbreviated",
849
+ context: "standalone"
850
+ });
851
+ // J, F, ..., D
852
+ case "LLLLL":
853
+ return t.month(r, {
854
+ width: "narrow",
855
+ context: "standalone"
856
+ });
857
+ // January, February, ..., December
858
+ case "LLLL":
859
+ default:
860
+ return t.month(r, { width: "wide", context: "standalone" });
861
+ }
862
+ },
863
+ // Local week of year
864
+ w: function(e, n, t, r) {
865
+ const a = Ke(e, r);
866
+ return n === "wo" ? t.ordinalNumber(a, { unit: "week" }) : k(a, n.length);
867
+ },
868
+ // ISO week of year
869
+ I: function(e, n, t) {
870
+ const r = Je(e);
871
+ return n === "Io" ? t.ordinalNumber(r, { unit: "week" }) : k(r, n.length);
872
+ },
873
+ // Day of the month
874
+ d: function(e, n, t) {
875
+ return n === "do" ? t.ordinalNumber(e.getDate(), { unit: "date" }) : B.d(e, n);
876
+ },
877
+ // Day of year
878
+ D: function(e, n, t) {
879
+ const r = fn(e);
880
+ return n === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : k(r, n.length);
881
+ },
882
+ // Day of week
883
+ E: function(e, n, t) {
884
+ const r = e.getDay();
885
+ switch (n) {
886
+ // Tue
887
+ case "E":
888
+ case "EE":
889
+ case "EEE":
890
+ return t.day(r, {
891
+ width: "abbreviated",
892
+ context: "formatting"
893
+ });
894
+ // T
895
+ case "EEEEE":
896
+ return t.day(r, {
897
+ width: "narrow",
898
+ context: "formatting"
899
+ });
900
+ // Tu
901
+ case "EEEEEE":
902
+ return t.day(r, {
903
+ width: "short",
904
+ context: "formatting"
905
+ });
906
+ // Tuesday
907
+ case "EEEE":
908
+ default:
909
+ return t.day(r, {
910
+ width: "wide",
911
+ context: "formatting"
912
+ });
913
+ }
914
+ },
915
+ // Local day of week
916
+ e: function(e, n, t, r) {
917
+ const a = e.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
918
+ switch (n) {
919
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
920
+ case "e":
921
+ return String(o);
922
+ // Padded numerical value
923
+ case "ee":
924
+ return k(o, 2);
925
+ // 1st, 2nd, ..., 7th
926
+ case "eo":
927
+ return t.ordinalNumber(o, { unit: "day" });
928
+ case "eee":
929
+ return t.day(a, {
930
+ width: "abbreviated",
931
+ context: "formatting"
932
+ });
933
+ // T
934
+ case "eeeee":
935
+ return t.day(a, {
936
+ width: "narrow",
937
+ context: "formatting"
938
+ });
939
+ // Tu
940
+ case "eeeeee":
941
+ return t.day(a, {
942
+ width: "short",
943
+ context: "formatting"
944
+ });
945
+ // Tuesday
946
+ case "eeee":
947
+ default:
948
+ return t.day(a, {
949
+ width: "wide",
950
+ context: "formatting"
951
+ });
952
+ }
953
+ },
954
+ // Stand-alone local day of week
955
+ c: function(e, n, t, r) {
956
+ const a = e.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
957
+ switch (n) {
958
+ // Numerical value (same as in `e`)
959
+ case "c":
960
+ return String(o);
961
+ // Padded numerical value
962
+ case "cc":
963
+ return k(o, n.length);
964
+ // 1st, 2nd, ..., 7th
965
+ case "co":
966
+ return t.ordinalNumber(o, { unit: "day" });
967
+ case "ccc":
968
+ return t.day(a, {
969
+ width: "abbreviated",
970
+ context: "standalone"
971
+ });
972
+ // T
973
+ case "ccccc":
974
+ return t.day(a, {
975
+ width: "narrow",
976
+ context: "standalone"
977
+ });
978
+ // Tu
979
+ case "cccccc":
980
+ return t.day(a, {
981
+ width: "short",
982
+ context: "standalone"
983
+ });
984
+ // Tuesday
985
+ case "cccc":
986
+ default:
987
+ return t.day(a, {
988
+ width: "wide",
989
+ context: "standalone"
990
+ });
991
+ }
992
+ },
993
+ // ISO day of week
994
+ i: function(e, n, t) {
995
+ const r = e.getDay(), a = r === 0 ? 7 : r;
996
+ switch (n) {
997
+ // 2
998
+ case "i":
999
+ return String(a);
1000
+ // 02
1001
+ case "ii":
1002
+ return k(a, n.length);
1003
+ // 2nd
1004
+ case "io":
1005
+ return t.ordinalNumber(a, { unit: "day" });
1006
+ // Tue
1007
+ case "iii":
1008
+ return t.day(r, {
1009
+ width: "abbreviated",
1010
+ context: "formatting"
1011
+ });
1012
+ // T
1013
+ case "iiiii":
1014
+ return t.day(r, {
1015
+ width: "narrow",
1016
+ context: "formatting"
1017
+ });
1018
+ // Tu
1019
+ case "iiiiii":
1020
+ return t.day(r, {
1021
+ width: "short",
1022
+ context: "formatting"
1023
+ });
1024
+ // Tuesday
1025
+ case "iiii":
1026
+ default:
1027
+ return t.day(r, {
1028
+ width: "wide",
1029
+ context: "formatting"
1030
+ });
1031
+ }
1032
+ },
1033
+ // AM or PM
1034
+ a: function(e, n, t) {
1035
+ const a = e.getHours() / 12 >= 1 ? "pm" : "am";
1036
+ switch (n) {
1037
+ case "a":
1038
+ case "aa":
1039
+ return t.dayPeriod(a, {
1040
+ width: "abbreviated",
1041
+ context: "formatting"
1042
+ });
1043
+ case "aaa":
1044
+ return t.dayPeriod(a, {
1045
+ width: "abbreviated",
1046
+ context: "formatting"
1047
+ }).toLowerCase();
1048
+ case "aaaaa":
1049
+ return t.dayPeriod(a, {
1050
+ width: "narrow",
1051
+ context: "formatting"
1052
+ });
1053
+ case "aaaa":
1054
+ default:
1055
+ return t.dayPeriod(a, {
1056
+ width: "wide",
1057
+ context: "formatting"
1058
+ });
1059
+ }
1060
+ },
1061
+ // AM, PM, midnight, noon
1062
+ b: function(e, n, t) {
1063
+ const r = e.getHours();
1064
+ let a;
1065
+ switch (r === 12 ? a = G.noon : r === 0 ? a = G.midnight : a = r / 12 >= 1 ? "pm" : "am", n) {
1066
+ case "b":
1067
+ case "bb":
1068
+ return t.dayPeriod(a, {
1069
+ width: "abbreviated",
1070
+ context: "formatting"
1071
+ });
1072
+ case "bbb":
1073
+ return t.dayPeriod(a, {
1074
+ width: "abbreviated",
1075
+ context: "formatting"
1076
+ }).toLowerCase();
1077
+ case "bbbbb":
1078
+ return t.dayPeriod(a, {
1079
+ width: "narrow",
1080
+ context: "formatting"
1081
+ });
1082
+ case "bbbb":
1083
+ default:
1084
+ return t.dayPeriod(a, {
1085
+ width: "wide",
1086
+ context: "formatting"
1087
+ });
1088
+ }
1089
+ },
1090
+ // in the morning, in the afternoon, in the evening, at night
1091
+ B: function(e, n, t) {
1092
+ const r = e.getHours();
1093
+ let a;
1094
+ switch (r >= 17 ? a = G.evening : r >= 12 ? a = G.afternoon : r >= 4 ? a = G.morning : a = G.night, n) {
1095
+ case "B":
1096
+ case "BB":
1097
+ case "BBB":
1098
+ return t.dayPeriod(a, {
1099
+ width: "abbreviated",
1100
+ context: "formatting"
1101
+ });
1102
+ case "BBBBB":
1103
+ return t.dayPeriod(a, {
1104
+ width: "narrow",
1105
+ context: "formatting"
1106
+ });
1107
+ case "BBBB":
1108
+ default:
1109
+ return t.dayPeriod(a, {
1110
+ width: "wide",
1111
+ context: "formatting"
1112
+ });
1113
+ }
1114
+ },
1115
+ // Hour [1-12]
1116
+ h: function(e, n, t) {
1117
+ if (n === "ho") {
1118
+ let r = e.getHours() % 12;
1119
+ return r === 0 && (r = 12), t.ordinalNumber(r, { unit: "hour" });
1120
+ }
1121
+ return B.h(e, n);
1122
+ },
1123
+ // Hour [0-23]
1124
+ H: function(e, n, t) {
1125
+ return n === "Ho" ? t.ordinalNumber(e.getHours(), { unit: "hour" }) : B.H(e, n);
1126
+ },
1127
+ // Hour [0-11]
1128
+ K: function(e, n, t) {
1129
+ const r = e.getHours() % 12;
1130
+ return n === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) : k(r, n.length);
1131
+ },
1132
+ // Hour [1-24]
1133
+ k: function(e, n, t) {
1134
+ let r = e.getHours();
1135
+ return r === 0 && (r = 24), n === "ko" ? t.ordinalNumber(r, { unit: "hour" }) : k(r, n.length);
1136
+ },
1137
+ // Minute
1138
+ m: function(e, n, t) {
1139
+ return n === "mo" ? t.ordinalNumber(e.getMinutes(), { unit: "minute" }) : B.m(e, n);
1140
+ },
1141
+ // Second
1142
+ s: function(e, n, t) {
1143
+ return n === "so" ? t.ordinalNumber(e.getSeconds(), { unit: "second" }) : B.s(e, n);
1144
+ },
1145
+ // Fraction of second
1146
+ S: function(e, n) {
1147
+ return B.S(e, n);
1148
+ },
1149
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1150
+ X: function(e, n, t) {
1151
+ const r = e.getTimezoneOffset();
1152
+ if (r === 0)
1153
+ return "Z";
1154
+ switch (n) {
1155
+ // Hours and optional minutes
1156
+ case "X":
1157
+ return Re(r);
1158
+ // Hours, minutes and optional seconds without `:` delimiter
1159
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1160
+ // so this token always has the same output as `XX`
1161
+ case "XXXX":
1162
+ case "XX":
1163
+ return H(r);
1164
+ // Hours, minutes and optional seconds with `:` delimiter
1165
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1166
+ // so this token always has the same output as `XXX`
1167
+ case "XXXXX":
1168
+ case "XXX":
1169
+ // Hours and minutes with `:` delimiter
1170
+ default:
1171
+ return H(r, ":");
1172
+ }
1173
+ },
1174
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1175
+ x: function(e, n, t) {
1176
+ const r = e.getTimezoneOffset();
1177
+ switch (n) {
1178
+ // Hours and optional minutes
1179
+ case "x":
1180
+ return Re(r);
1181
+ // Hours, minutes and optional seconds without `:` delimiter
1182
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1183
+ // so this token always has the same output as `xx`
1184
+ case "xxxx":
1185
+ case "xx":
1186
+ return H(r);
1187
+ // Hours, minutes and optional seconds with `:` delimiter
1188
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1189
+ // so this token always has the same output as `xxx`
1190
+ case "xxxxx":
1191
+ case "xxx":
1192
+ // Hours and minutes with `:` delimiter
1193
+ default:
1194
+ return H(r, ":");
1195
+ }
1196
+ },
1197
+ // Timezone (GMT)
1198
+ O: function(e, n, t) {
1199
+ const r = e.getTimezoneOffset();
1200
+ switch (n) {
1201
+ // Short
1202
+ case "O":
1203
+ case "OO":
1204
+ case "OOO":
1205
+ return "GMT" + Ie(r, ":");
1206
+ // Long
1207
+ case "OOOO":
1208
+ default:
1209
+ return "GMT" + H(r, ":");
1210
+ }
1211
+ },
1212
+ // Timezone (specific non-location)
1213
+ z: function(e, n, t) {
1214
+ const r = e.getTimezoneOffset();
1215
+ switch (n) {
1216
+ // Short
1217
+ case "z":
1218
+ case "zz":
1219
+ case "zzz":
1220
+ return "GMT" + Ie(r, ":");
1221
+ // Long
1222
+ case "zzzz":
1223
+ default:
1224
+ return "GMT" + H(r, ":");
1225
+ }
1226
+ },
1227
+ // Seconds timestamp
1228
+ t: function(e, n, t) {
1229
+ const r = Math.trunc(+e / 1e3);
1230
+ return k(r, n.length);
1231
+ },
1232
+ // Milliseconds timestamp
1233
+ T: function(e, n, t) {
1234
+ return k(+e, n.length);
1235
+ }
1236
+ };
1237
+ function Ie(e, n = "") {
1238
+ const t = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), o = r % 60;
1239
+ return o === 0 ? t + String(a) : t + String(a) + n + k(o, 2);
1240
+ }
1241
+ function Re(e, n) {
1242
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + k(Math.abs(e) / 60, 2) : H(e, n);
1243
+ }
1244
+ function H(e, n = "") {
1245
+ const t = e > 0 ? "-" : "+", r = Math.abs(e), a = k(Math.trunc(r / 60), 2), o = k(r % 60, 2);
1246
+ return t + a + n + o;
1247
+ }
1248
+ const Be = (e, n) => {
1249
+ switch (e) {
1250
+ case "P":
1251
+ return n.date({ width: "short" });
1252
+ case "PP":
1253
+ return n.date({ width: "medium" });
1254
+ case "PPP":
1255
+ return n.date({ width: "long" });
1256
+ case "PPPP":
1257
+ default:
1258
+ return n.date({ width: "full" });
1259
+ }
1260
+ }, ze = (e, n) => {
1261
+ switch (e) {
1262
+ case "p":
1263
+ return n.time({ width: "short" });
1264
+ case "pp":
1265
+ return n.time({ width: "medium" });
1266
+ case "ppp":
1267
+ return n.time({ width: "long" });
1268
+ case "pppp":
1269
+ default:
1270
+ return n.time({ width: "full" });
1271
+ }
1272
+ }, mn = (e, n) => {
1273
+ const t = e.match(/(P+)(p+)?/) || [], r = t[1], a = t[2];
1274
+ if (!a)
1275
+ return Be(e, n);
1276
+ let o;
1277
+ switch (r) {
1278
+ case "P":
1279
+ o = n.dateTime({ width: "short" });
1280
+ break;
1281
+ case "PP":
1282
+ o = n.dateTime({ width: "medium" });
1283
+ break;
1284
+ case "PPP":
1285
+ o = n.dateTime({ width: "long" });
1286
+ break;
1287
+ case "PPPP":
1288
+ default:
1289
+ o = n.dateTime({ width: "full" });
1290
+ break;
1291
+ }
1292
+ return o.replace("{{date}}", Be(r, n)).replace("{{time}}", ze(a, n));
1293
+ }, vn = {
1294
+ p: ze,
1295
+ P: mn
1296
+ }, yn = /^D+$/, gn = /^Y+$/, bn = ["D", "DD", "YY", "YYYY"];
1297
+ function wn(e) {
1298
+ return yn.test(e);
1299
+ }
1300
+ function Dn(e) {
1301
+ return gn.test(e);
1302
+ }
1303
+ function Mn(e, n, t) {
1304
+ const r = _n(e, n, t);
1305
+ if (console.warn(r), bn.includes(e)) throw new RangeError(r);
1306
+ }
1307
+ function _n(e, n, t) {
1308
+ const r = e[0] === "Y" ? "years" : "days of the month";
1309
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1310
+ }
1311
+ const kn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Nn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Pn = /^'([^]*?)'?$/, On = /''/g, xn = /[a-zA-Z]/;
1312
+ function X(e, n, t) {
1313
+ var l, f, h, m, y, _, w, M;
1314
+ const r = ee(), a = (t == null ? void 0 : t.locale) ?? r.locale ?? $e, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (y = t == null ? void 0 : t.locale) == null ? void 0 : y.options) == null ? void 0 : _.weekStartsOn) ?? r.weekStartsOn ?? ((M = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : M.weekStartsOn) ?? 0, s = N(e, t == null ? void 0 : t.in);
1315
+ if (!Wt(s))
1316
+ throw new RangeError("Invalid time value");
1317
+ let u = n.match(Nn).map((D) => {
1318
+ const O = D[0];
1319
+ if (O === "p" || O === "P") {
1320
+ const j = vn[O];
1321
+ return j(D, a.formatLong);
1322
+ }
1323
+ return D;
1324
+ }).join("").match(kn).map((D) => {
1325
+ if (D === "''")
1326
+ return { isToken: !1, value: "'" };
1327
+ const O = D[0];
1328
+ if (O === "'")
1329
+ return { isToken: !1, value: Cn(D) };
1330
+ if (Le[O])
1331
+ return { isToken: !0, value: D };
1332
+ if (O.match(xn))
1333
+ throw new RangeError(
1334
+ "Format string contains an unescaped latin alphabet character `" + O + "`"
1335
+ );
1336
+ return { isToken: !1, value: D };
1337
+ });
1338
+ a.localize.preprocessor && (u = a.localize.preprocessor(s, u));
1339
+ const c = {
1340
+ firstWeekContainsDate: o,
1341
+ weekStartsOn: i,
1342
+ locale: a
1343
+ };
1344
+ return u.map((D) => {
1345
+ if (!D.isToken) return D.value;
1346
+ const O = D.value;
1347
+ (!(t != null && t.useAdditionalWeekYearTokens) && Dn(O) || !(t != null && t.useAdditionalDayOfYearTokens) && wn(O)) && Mn(O, n, String(e));
1348
+ const j = Le[O[0]];
1349
+ return j(s, O, a.localize, c);
1350
+ }).join("");
1351
+ }
1352
+ function Cn(e) {
1353
+ const n = e.match(Pn);
1354
+ return n ? n[1].replace(On, "'") : e;
1355
+ }
1356
+ function pn(e, n) {
1357
+ const t = N(e, n == null ? void 0 : n.in), r = t.getFullYear(), a = t.getMonth(), o = x(t, 0);
1358
+ return o.setFullYear(r, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
1359
+ }
1360
+ function Sn(e) {
1361
+ return Math.trunc(+N(e) / 1e3);
1362
+ }
1363
+ function Wn(e, n) {
1364
+ const t = N(e, n == null ? void 0 : n.in), r = t.getMonth();
1365
+ return t.setFullYear(t.getFullYear(), r + 1, 0), t.setHours(0, 0, 0, 0), N(t, n == null ? void 0 : n.in);
1366
+ }
1367
+ function Tn(e, n) {
1368
+ const t = N(e, n == null ? void 0 : n.in);
1369
+ return Tt(
1370
+ Wn(t, n),
1371
+ T(t, n),
1372
+ n
1373
+ ) + 1;
1374
+ }
1375
+ function _e(e, n) {
1376
+ return +N(e) > +N(n);
1377
+ }
1378
+ function Ze(e, n) {
1379
+ return +N(e) < +N(n);
1380
+ }
1381
+ function xe(e, n, t) {
1382
+ const [r, a] = $(
1383
+ t == null ? void 0 : t.in,
1384
+ e,
1385
+ n
1386
+ );
1387
+ return r.getFullYear() === a.getFullYear() && r.getMonth() === a.getMonth();
1388
+ }
1389
+ function Yn(e, n, t) {
1390
+ const [r, a] = $(
1391
+ t == null ? void 0 : t.in,
1392
+ e,
1393
+ n
1394
+ );
1395
+ return r.getFullYear() === a.getFullYear();
1396
+ }
1397
+ function ve(e, n, t) {
1398
+ return S(e, -n, t);
1399
+ }
1400
+ function ye(e, n, t) {
1401
+ const r = N(e, t == null ? void 0 : t.in), a = r.getFullYear(), o = r.getDate(), i = x(e, 0);
1402
+ i.setFullYear(a, n, 15), i.setHours(0, 0, 0, 0);
1403
+ const s = pn(i);
1404
+ return r.setMonth(n, Math.min(o, s)), r;
1405
+ }
1406
+ function je(e, n, t) {
1407
+ const r = N(e, t == null ? void 0 : t.in);
1408
+ return isNaN(+r) ? x(e, NaN) : (r.setFullYear(n), r);
1409
+ }
1410
+ var g = function() {
1411
+ return g = Object.assign || function(n) {
1412
+ for (var t, r = 1, a = arguments.length; r < a; r++) {
1413
+ t = arguments[r];
1414
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
1415
+ }
1416
+ return n;
1417
+ }, g.apply(this, arguments);
1418
+ };
1419
+ function Fn(e, n) {
1420
+ var t = {};
1421
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
1422
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1423
+ for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
1424
+ n.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (t[r[a]] = e[r[a]]);
1425
+ return t;
1426
+ }
1427
+ function et(e, n, t) {
1428
+ for (var r = 0, a = n.length, o; r < a; r++)
1429
+ (o || !(r in n)) && (o || (o = Array.prototype.slice.call(n, 0, r)), o[r] = n[r]);
1430
+ return e.concat(o || Array.prototype.slice.call(n));
1431
+ }
1432
+ function te(e) {
1433
+ return e.mode === "multiple";
1434
+ }
1435
+ function ne(e) {
1436
+ return e.mode === "range";
1437
+ }
1438
+ function le(e) {
1439
+ return e.mode === "single";
1440
+ }
1441
+ var En = {
1442
+ root: "rdp",
1443
+ multiple_months: "rdp-multiple_months",
1444
+ with_weeknumber: "rdp-with_weeknumber",
1445
+ vhidden: "rdp-vhidden",
1446
+ button_reset: "rdp-button_reset",
1447
+ button: "rdp-button",
1448
+ caption: "rdp-caption",
1449
+ caption_start: "rdp-caption_start",
1450
+ caption_end: "rdp-caption_end",
1451
+ caption_between: "rdp-caption_between",
1452
+ caption_label: "rdp-caption_label",
1453
+ caption_dropdowns: "rdp-caption_dropdowns",
1454
+ dropdown: "rdp-dropdown",
1455
+ dropdown_month: "rdp-dropdown_month",
1456
+ dropdown_year: "rdp-dropdown_year",
1457
+ dropdown_icon: "rdp-dropdown_icon",
1458
+ months: "rdp-months",
1459
+ month: "rdp-month",
1460
+ table: "rdp-table",
1461
+ tbody: "rdp-tbody",
1462
+ tfoot: "rdp-tfoot",
1463
+ head: "rdp-head",
1464
+ head_row: "rdp-head_row",
1465
+ head_cell: "rdp-head_cell",
1466
+ nav: "rdp-nav",
1467
+ nav_button: "rdp-nav_button",
1468
+ nav_button_previous: "rdp-nav_button_previous",
1469
+ nav_button_next: "rdp-nav_button_next",
1470
+ nav_icon: "rdp-nav_icon",
1471
+ row: "rdp-row",
1472
+ weeknumber: "rdp-weeknumber",
1473
+ cell: "rdp-cell",
1474
+ day: "rdp-day",
1475
+ day_today: "rdp-day_today",
1476
+ day_outside: "rdp-day_outside",
1477
+ day_selected: "rdp-day_selected",
1478
+ day_disabled: "rdp-day_disabled",
1479
+ day_hidden: "rdp-day_hidden",
1480
+ day_range_start: "rdp-day_range_start",
1481
+ day_range_end: "rdp-day_range_end",
1482
+ day_range_middle: "rdp-day_range_middle"
1483
+ };
1484
+ function Ln(e, n) {
1485
+ return X(e, "LLLL y", n);
1486
+ }
1487
+ function In(e, n) {
1488
+ return X(e, "d", n);
1489
+ }
1490
+ function Rn(e, n) {
1491
+ return X(e, "LLLL", n);
1492
+ }
1493
+ function Bn(e) {
1494
+ return "".concat(e);
1495
+ }
1496
+ function jn(e, n) {
1497
+ return X(e, "cccccc", n);
1498
+ }
1499
+ function Hn(e, n) {
1500
+ return X(e, "yyyy", n);
1501
+ }
1502
+ var An = /* @__PURE__ */ Object.freeze({
1503
+ __proto__: null,
1504
+ formatCaption: Ln,
1505
+ formatDay: In,
1506
+ formatMonthCaption: Rn,
1507
+ formatWeekNumber: Bn,
1508
+ formatWeekdayName: jn,
1509
+ formatYearCaption: Hn
1510
+ }), qn = function(e, n, t) {
1511
+ return X(e, "do MMMM (EEEE)", t);
1512
+ }, Qn = function() {
1513
+ return "Month: ";
1514
+ }, Xn = function() {
1515
+ return "Go to next month";
1516
+ }, Gn = function() {
1517
+ return "Go to previous month";
1518
+ }, Vn = function(e, n) {
1519
+ return X(e, "cccc", n);
1520
+ }, $n = function(e) {
1521
+ return "Week n. ".concat(e);
1522
+ }, Jn = function() {
1523
+ return "Year: ";
1524
+ }, Un = /* @__PURE__ */ Object.freeze({
1525
+ __proto__: null,
1526
+ labelDay: qn,
1527
+ labelMonthDropdown: Qn,
1528
+ labelNext: Xn,
1529
+ labelPrevious: Gn,
1530
+ labelWeekNumber: $n,
1531
+ labelWeekday: Vn,
1532
+ labelYearDropdown: Jn
1533
+ });
1534
+ function Kn() {
1535
+ var e = "buttons", n = En, t = $e, r = {}, a = {}, o = 1, i = {}, s = /* @__PURE__ */ new Date();
1536
+ return {
1537
+ captionLayout: e,
1538
+ classNames: n,
1539
+ formatters: An,
1540
+ labels: Un,
1541
+ locale: t,
1542
+ modifiersClassNames: r,
1543
+ modifiers: a,
1544
+ numberOfMonths: o,
1545
+ styles: i,
1546
+ today: s,
1547
+ mode: "default"
1548
+ };
1549
+ }
1550
+ function zn(e) {
1551
+ var n = e.fromYear, t = e.toYear, r = e.fromMonth, a = e.toMonth, o = e.fromDate, i = e.toDate;
1552
+ return r ? o = T(r) : n && (o = new Date(n, 0, 1)), a ? i = Pe(a) : t && (i = new Date(t, 11, 31)), {
1553
+ fromDate: o ? V(o) : void 0,
1554
+ toDate: i ? V(i) : void 0
1555
+ };
1556
+ }
1557
+ var tt = q(void 0);
1558
+ function Zn(e) {
1559
+ var n, t = e.initialProps, r = Kn(), a = zn(t), o = a.fromDate, i = a.toDate, s = (n = t.captionLayout) !== null && n !== void 0 ? n : r.captionLayout;
1560
+ s !== "buttons" && (!o || !i) && (s = "buttons");
1561
+ var u;
1562
+ (le(t) || te(t) || ne(t)) && (u = t.onSelect);
1563
+ var c = g(g(g({}, r), t), { captionLayout: s, classNames: g(g({}, r.classNames), t.classNames), components: g({}, t.components), formatters: g(g({}, r.formatters), t.formatters), fromDate: o, labels: g(g({}, r.labels), t.labels), mode: t.mode || r.mode, modifiers: g(g({}, r.modifiers), t.modifiers), modifiersClassNames: g(g({}, r.modifiersClassNames), t.modifiersClassNames), onSelect: u, styles: g(g({}, r.styles), t.styles), toDate: i });
1564
+ return d(tt.Provider, { value: c, children: e.children });
1565
+ }
1566
+ function P() {
1567
+ var e = Q(tt);
1568
+ if (!e)
1569
+ throw new Error("useDayPicker must be used within a DayPickerProvider.");
1570
+ return e;
1571
+ }
1572
+ function nt(e) {
1573
+ var n = P(), t = n.locale, r = n.classNames, a = n.styles, o = n.formatters.formatCaption;
1574
+ return d("div", { className: r.caption_label, style: a.caption_label, "aria-live": "polite", role: "presentation", id: e.id, children: o(e.displayMonth, { locale: t }) });
1575
+ }
1576
+ function er(e) {
1577
+ return d("svg", g({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, e, { children: d("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
1578
+ }
1579
+ function rt(e) {
1580
+ var n, t, r = e.onChange, a = e.value, o = e.children, i = e.caption, s = e.className, u = e.style, c = P(), l = (t = (n = c.components) === null || n === void 0 ? void 0 : n.IconDropdown) !== null && t !== void 0 ? t : er;
1581
+ return p("div", { className: s, style: u, children: [d("span", { className: c.classNames.vhidden, children: e["aria-label"] }), d("select", { name: e.name, "aria-label": e["aria-label"], className: c.classNames.dropdown, style: c.styles.dropdown, value: a, onChange: r, children: o }), p("div", { className: c.classNames.caption_label, style: c.styles.caption_label, "aria-hidden": "true", children: [i, d(l, { className: c.classNames.dropdown_icon, style: c.styles.dropdown_icon })] })] });
1582
+ }
1583
+ function tr(e) {
1584
+ var n, t = P(), r = t.fromDate, a = t.toDate, o = t.styles, i = t.locale, s = t.formatters.formatMonthCaption, u = t.classNames, c = t.components, l = t.labels.labelMonthDropdown;
1585
+ if (!r)
1586
+ return d(Y, {});
1587
+ if (!a)
1588
+ return d(Y, {});
1589
+ var f = [];
1590
+ if (Yn(r, a))
1591
+ for (var h = T(r), m = r.getMonth(); m <= a.getMonth(); m++)
1592
+ f.push(ye(h, m));
1593
+ else
1594
+ for (var h = T(/* @__PURE__ */ new Date()), m = 0; m <= 11; m++)
1595
+ f.push(ye(h, m));
1596
+ var y = function(w) {
1597
+ var M = Number(w.target.value), D = ye(T(e.displayMonth), M);
1598
+ e.onChange(D);
1599
+ }, _ = (n = c == null ? void 0 : c.Dropdown) !== null && n !== void 0 ? n : rt;
1600
+ return d(_, { name: "months", "aria-label": l(), className: u.dropdown_month, style: o.dropdown_month, onChange: y, value: e.displayMonth.getMonth(), caption: s(e.displayMonth, { locale: i }), children: f.map(function(w) {
1601
+ return d("option", { value: w.getMonth(), children: s(w, { locale: i }) }, w.getMonth());
1602
+ }) });
1603
+ }
1604
+ function nr(e) {
1605
+ var n, t = e.displayMonth, r = P(), a = r.fromDate, o = r.toDate, i = r.locale, s = r.styles, u = r.classNames, c = r.components, l = r.formatters.formatYearCaption, f = r.labels.labelYearDropdown, h = [];
1606
+ if (!a)
1607
+ return d(Y, {});
1608
+ if (!o)
1609
+ return d(Y, {});
1610
+ for (var m = a.getFullYear(), y = o.getFullYear(), _ = m; _ <= y; _++)
1611
+ h.push(je(Ge(/* @__PURE__ */ new Date()), _));
1612
+ var w = function(D) {
1613
+ var O = je(T(t), Number(D.target.value));
1614
+ e.onChange(O);
1615
+ }, M = (n = c == null ? void 0 : c.Dropdown) !== null && n !== void 0 ? n : rt;
1616
+ return d(M, { name: "years", "aria-label": f(), className: u.dropdown_year, style: s.dropdown_year, onChange: w, value: t.getFullYear(), caption: l(t, { locale: i }), children: h.map(function(D) {
1617
+ return d("option", { value: D.getFullYear(), children: l(D, { locale: i }) }, D.getFullYear());
1618
+ }) });
1619
+ }
1620
+ function rr(e, n) {
1621
+ var t = z(e), r = t[0], a = t[1], o = n === void 0 ? r : n;
1622
+ return [o, a];
1623
+ }
1624
+ function ar(e) {
1625
+ var n = e.month, t = e.defaultMonth, r = e.today, a = n || t || r || /* @__PURE__ */ new Date(), o = e.toDate, i = e.fromDate, s = e.numberOfMonths, u = s === void 0 ? 1 : s;
1626
+ if (o && Z(o, a) < 0) {
1627
+ var c = -1 * (u - 1);
1628
+ a = F(o, c);
1629
+ }
1630
+ return i && Z(a, i) < 0 && (a = i), T(a);
1631
+ }
1632
+ function or() {
1633
+ var e = P(), n = ar(e), t = rr(n, e.month), r = t[0], a = t[1], o = function(i) {
1634
+ var s;
1635
+ if (!e.disableNavigation) {
1636
+ var u = T(i);
1637
+ a(u), (s = e.onMonthChange) === null || s === void 0 || s.call(e, u);
1638
+ }
1639
+ };
1640
+ return [r, o];
1641
+ }
1642
+ function ir(e, n) {
1643
+ for (var t = n.reverseMonths, r = n.numberOfMonths, a = T(e), o = T(F(a, r)), i = Z(o, a), s = [], u = 0; u < i; u++) {
1644
+ var c = F(a, u);
1645
+ s.push(c);
1646
+ }
1647
+ return t && (s = s.reverse()), s;
1648
+ }
1649
+ function sr(e, n) {
1650
+ if (!n.disableNavigation) {
1651
+ var t = n.toDate, r = n.pagedNavigation, a = n.numberOfMonths, o = a === void 0 ? 1 : a, i = r ? o : 1, s = T(e);
1652
+ if (!t)
1653
+ return F(s, i);
1654
+ var u = Z(t, e);
1655
+ if (!(u < o))
1656
+ return F(s, i);
1657
+ }
1658
+ }
1659
+ function ur(e, n) {
1660
+ if (!n.disableNavigation) {
1661
+ var t = n.fromDate, r = n.pagedNavigation, a = n.numberOfMonths, o = a === void 0 ? 1 : a, i = r ? o : 1, s = T(e);
1662
+ if (!t)
1663
+ return F(s, -i);
1664
+ var u = Z(s, t);
1665
+ if (!(u <= 0))
1666
+ return F(s, -i);
1667
+ }
1668
+ }
1669
+ var at = q(void 0);
1670
+ function lr(e) {
1671
+ var n = P(), t = or(), r = t[0], a = t[1], o = ir(r, n), i = sr(r, n), s = ur(r, n), u = function(f) {
1672
+ return o.some(function(h) {
1673
+ return xe(f, h);
1674
+ });
1675
+ }, c = function(f, h) {
1676
+ u(f) || (h && Ze(f, h) ? a(F(f, 1 + n.numberOfMonths * -1)) : a(f));
1677
+ }, l = {
1678
+ currentMonth: r,
1679
+ displayMonths: o,
1680
+ goToMonth: a,
1681
+ goToDate: c,
1682
+ previousMonth: s,
1683
+ nextMonth: i,
1684
+ isDateDisplayed: u
1685
+ };
1686
+ return d(at.Provider, { value: l, children: e.children });
1687
+ }
1688
+ function re() {
1689
+ var e = Q(at);
1690
+ if (!e)
1691
+ throw new Error("useNavigation must be used within a NavigationProvider");
1692
+ return e;
1693
+ }
1694
+ function He(e) {
1695
+ var n, t = P(), r = t.classNames, a = t.styles, o = t.components, i = re().goToMonth, s = function(l) {
1696
+ i(F(l, e.displayIndex ? -e.displayIndex : 0));
1697
+ }, u = (n = o == null ? void 0 : o.CaptionLabel) !== null && n !== void 0 ? n : nt, c = d(u, { id: e.id, displayMonth: e.displayMonth });
1698
+ return p("div", { className: r.caption_dropdowns, style: a.caption_dropdowns, children: [d("div", { className: r.vhidden, children: c }), d(tr, { onChange: s, displayMonth: e.displayMonth }), d(nr, { onChange: s, displayMonth: e.displayMonth })] });
1699
+ }
1700
+ function cr(e) {
1701
+ return d("svg", g({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" }) }));
1702
+ }
1703
+ function dr(e) {
1704
+ return d("svg", g({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" }) }));
1705
+ }
1706
+ var se = Mt(function(e, n) {
1707
+ var t = P(), r = t.classNames, a = t.styles, o = [r.button_reset, r.button];
1708
+ e.className && o.push(e.className);
1709
+ var i = o.join(" "), s = g(g({}, a.button_reset), a.button);
1710
+ return e.style && Object.assign(s, e.style), d("button", g({}, e, { ref: n, type: "button", className: i, style: s }));
1711
+ });
1712
+ function fr(e) {
1713
+ var n, t, r = P(), a = r.dir, o = r.locale, i = r.classNames, s = r.styles, u = r.labels, c = u.labelPrevious, l = u.labelNext, f = r.components;
1714
+ if (!e.nextMonth && !e.previousMonth)
1715
+ return d(Y, {});
1716
+ var h = c(e.previousMonth, { locale: o }), m = [
1717
+ i.nav_button,
1718
+ i.nav_button_previous
1719
+ ].join(" "), y = l(e.nextMonth, { locale: o }), _ = [
1720
+ i.nav_button,
1721
+ i.nav_button_next
1722
+ ].join(" "), w = (n = f == null ? void 0 : f.IconRight) !== null && n !== void 0 ? n : dr, M = (t = f == null ? void 0 : f.IconLeft) !== null && t !== void 0 ? t : cr;
1723
+ return p("div", { className: i.nav, style: s.nav, children: [!e.hidePrevious && d(se, { name: "previous-month", "aria-label": h, className: m, style: s.nav_button_previous, disabled: !e.previousMonth, onClick: e.onPreviousClick, children: a === "rtl" ? d(w, { className: i.nav_icon, style: s.nav_icon }) : d(M, { className: i.nav_icon, style: s.nav_icon }) }), !e.hideNext && d(se, { name: "next-month", "aria-label": y, className: _, style: s.nav_button_next, disabled: !e.nextMonth, onClick: e.onNextClick, children: a === "rtl" ? d(M, { className: i.nav_icon, style: s.nav_icon }) : d(w, { className: i.nav_icon, style: s.nav_icon }) })] });
1724
+ }
1725
+ function Ae(e) {
1726
+ var n = P().numberOfMonths, t = re(), r = t.previousMonth, a = t.nextMonth, o = t.goToMonth, i = t.displayMonths, s = i.findIndex(function(y) {
1727
+ return xe(e.displayMonth, y);
1728
+ }), u = s === 0, c = s === i.length - 1, l = n > 1 && (u || !c), f = n > 1 && (c || !u), h = function() {
1729
+ r && o(r);
1730
+ }, m = function() {
1731
+ a && o(a);
1732
+ };
1733
+ return d(fr, { displayMonth: e.displayMonth, hideNext: l, hidePrevious: f, nextMonth: a, previousMonth: r, onPreviousClick: h, onNextClick: m });
1734
+ }
1735
+ function hr(e) {
1736
+ var n, t = P(), r = t.classNames, a = t.disableNavigation, o = t.styles, i = t.captionLayout, s = t.components, u = (n = s == null ? void 0 : s.CaptionLabel) !== null && n !== void 0 ? n : nt, c;
1737
+ return a ? c = d(u, { id: e.id, displayMonth: e.displayMonth }) : i === "dropdown" ? c = d(He, { displayMonth: e.displayMonth, id: e.id }) : i === "dropdown-buttons" ? c = p(Y, { children: [d(He, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id }), d(Ae, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id })] }) : c = p(Y, { children: [d(u, { id: e.id, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), d(Ae, { displayMonth: e.displayMonth, id: e.id })] }), d("div", { className: r.caption, style: o.caption, children: c });
1738
+ }
1739
+ function mr(e) {
1740
+ var n = P(), t = n.footer, r = n.styles, a = n.classNames.tfoot;
1741
+ return t ? d("tfoot", { className: a, style: r.tfoot, children: d("tr", { children: d("td", { colSpan: 8, children: t }) }) }) : d(Y, {});
1742
+ }
1743
+ function vr(e, n, t) {
1744
+ for (var r = t ? A(/* @__PURE__ */ new Date()) : I(/* @__PURE__ */ new Date(), { locale: e, weekStartsOn: n }), a = [], o = 0; o < 7; o++) {
1745
+ var i = S(r, o);
1746
+ a.push(i);
1747
+ }
1748
+ return a;
1749
+ }
1750
+ function yr() {
1751
+ var e = P(), n = e.classNames, t = e.styles, r = e.showWeekNumber, a = e.locale, o = e.weekStartsOn, i = e.ISOWeek, s = e.formatters.formatWeekdayName, u = e.labels.labelWeekday, c = vr(a, o, i);
1752
+ return p("tr", { style: t.head_row, className: n.head_row, children: [r && d("td", { style: t.head_cell, className: n.head_cell }), c.map(function(l, f) {
1753
+ return d("th", { scope: "col", className: n.head_cell, style: t.head_cell, "aria-label": u(l, { locale: a }), children: s(l, { locale: a }) }, f);
1754
+ })] });
1755
+ }
1756
+ function gr() {
1757
+ var e, n = P(), t = n.classNames, r = n.styles, a = n.components, o = (e = a == null ? void 0 : a.HeadRow) !== null && e !== void 0 ? e : yr;
1758
+ return d("thead", { style: r.head, className: t.head, children: d(o, {}) });
1759
+ }
1760
+ function br(e) {
1761
+ var n = P(), t = n.locale, r = n.formatters.formatDay;
1762
+ return d(Y, { children: r(e.date, { locale: t }) });
1763
+ }
1764
+ var Ce = q(void 0);
1765
+ function wr(e) {
1766
+ if (!te(e.initialProps)) {
1767
+ var n = {
1768
+ selected: void 0,
1769
+ modifiers: {
1770
+ disabled: []
1771
+ }
1772
+ };
1773
+ return d(Ce.Provider, { value: n, children: e.children });
1774
+ }
1775
+ return d(Dr, { initialProps: e.initialProps, children: e.children });
1776
+ }
1777
+ function Dr(e) {
1778
+ var n = e.initialProps, t = e.children, r = n.selected, a = n.min, o = n.max, i = function(c, l, f) {
1779
+ var h, m;
1780
+ (h = n.onDayClick) === null || h === void 0 || h.call(n, c, l, f);
1781
+ var y = !!(l.selected && a && (r == null ? void 0 : r.length) === a);
1782
+ if (!y) {
1783
+ var _ = !!(!l.selected && o && (r == null ? void 0 : r.length) === o);
1784
+ if (!_) {
1785
+ var w = r ? et([], r) : [];
1786
+ if (l.selected) {
1787
+ var M = w.findIndex(function(D) {
1788
+ return W(c, D);
1789
+ });
1790
+ w.splice(M, 1);
1791
+ } else
1792
+ w.push(c);
1793
+ (m = n.onSelect) === null || m === void 0 || m.call(n, w, c, l, f);
1794
+ }
1795
+ }
1796
+ }, s = {
1797
+ disabled: []
1798
+ };
1799
+ r && s.disabled.push(function(c) {
1800
+ var l = o && r.length > o - 1, f = r.some(function(h) {
1801
+ return W(h, c);
1802
+ });
1803
+ return !!(l && !f);
1804
+ });
1805
+ var u = {
1806
+ selected: r,
1807
+ onDayClick: i,
1808
+ modifiers: s
1809
+ };
1810
+ return d(Ce.Provider, { value: u, children: t });
1811
+ }
1812
+ function pe() {
1813
+ var e = Q(Ce);
1814
+ if (!e)
1815
+ throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");
1816
+ return e;
1817
+ }
1818
+ function Mr(e, n) {
1819
+ var t = n || {}, r = t.from, a = t.to;
1820
+ return r && a ? W(a, e) && W(r, e) ? void 0 : W(a, e) ? { from: a, to: void 0 } : W(r, e) ? void 0 : _e(r, e) ? { from: e, to: a } : { from: r, to: e } : a ? _e(e, a) ? { from: a, to: e } : { from: e, to: a } : r ? Ze(e, r) ? { from: e, to: r } : { from: r, to: e } : { from: e, to: void 0 };
1821
+ }
1822
+ var Se = q(void 0);
1823
+ function _r(e) {
1824
+ if (!ne(e.initialProps)) {
1825
+ var n = {
1826
+ selected: void 0,
1827
+ modifiers: {
1828
+ range_start: [],
1829
+ range_end: [],
1830
+ range_middle: [],
1831
+ disabled: []
1832
+ }
1833
+ };
1834
+ return d(Se.Provider, { value: n, children: e.children });
1835
+ }
1836
+ return d(kr, { initialProps: e.initialProps, children: e.children });
1837
+ }
1838
+ function kr(e) {
1839
+ var n = e.initialProps, t = e.children, r = n.selected, a = r || {}, o = a.from, i = a.to, s = n.min, u = n.max, c = function(m, y, _) {
1840
+ var w, M;
1841
+ (w = n.onDayClick) === null || w === void 0 || w.call(n, m, y, _);
1842
+ var D = Mr(m, r);
1843
+ (M = n.onSelect) === null || M === void 0 || M.call(n, D, m, y, _);
1844
+ }, l = {
1845
+ range_start: [],
1846
+ range_end: [],
1847
+ range_middle: [],
1848
+ disabled: []
1849
+ };
1850
+ if (o ? (l.range_start = [o], i ? (l.range_end = [i], W(o, i) || (l.range_middle = [
1851
+ {
1852
+ after: o,
1853
+ before: i
1854
+ }
1855
+ ])) : l.range_end = [o]) : i && (l.range_start = [i], l.range_end = [i]), s && (o && !i && l.disabled.push({
1856
+ after: ve(o, s - 1),
1857
+ before: S(o, s - 1)
1858
+ }), o && i && l.disabled.push({
1859
+ after: o,
1860
+ before: S(o, s - 1)
1861
+ }), !o && i && l.disabled.push({
1862
+ after: ve(i, s - 1),
1863
+ before: S(i, s - 1)
1864
+ })), u) {
1865
+ if (o && !i && (l.disabled.push({
1866
+ before: S(o, -u + 1)
1867
+ }), l.disabled.push({
1868
+ after: S(o, u - 1)
1869
+ })), o && i) {
1870
+ var f = L(i, o) + 1, h = u - f;
1871
+ l.disabled.push({
1872
+ before: ve(o, h)
1873
+ }), l.disabled.push({
1874
+ after: S(i, h)
1875
+ });
1876
+ }
1877
+ !o && i && (l.disabled.push({
1878
+ before: S(i, -u + 1)
1879
+ }), l.disabled.push({
1880
+ after: S(i, u - 1)
1881
+ }));
1882
+ }
1883
+ return d(Se.Provider, { value: { selected: r, onDayClick: c, modifiers: l }, children: t });
1884
+ }
1885
+ function We() {
1886
+ var e = Q(Se);
1887
+ if (!e)
1888
+ throw new Error("useSelectRange must be used within a SelectRangeProvider");
1889
+ return e;
1890
+ }
1891
+ function oe(e) {
1892
+ return Array.isArray(e) ? et([], e) : e !== void 0 ? [e] : [];
1893
+ }
1894
+ function Nr(e) {
1895
+ var n = {};
1896
+ return Object.entries(e).forEach(function(t) {
1897
+ var r = t[0], a = t[1];
1898
+ n[r] = oe(a);
1899
+ }), n;
1900
+ }
1901
+ var E;
1902
+ (function(e) {
1903
+ e.Outside = "outside", e.Disabled = "disabled", e.Selected = "selected", e.Hidden = "hidden", e.Today = "today", e.RangeStart = "range_start", e.RangeEnd = "range_end", e.RangeMiddle = "range_middle";
1904
+ })(E || (E = {}));
1905
+ var Pr = E.Selected, R = E.Disabled, Or = E.Hidden, xr = E.Today, ge = E.RangeEnd, be = E.RangeMiddle, we = E.RangeStart, Cr = E.Outside;
1906
+ function pr(e, n, t) {
1907
+ var r, a = (r = {}, r[Pr] = oe(e.selected), r[R] = oe(e.disabled), r[Or] = oe(e.hidden), r[xr] = [e.today], r[ge] = [], r[be] = [], r[we] = [], r[Cr] = [], r);
1908
+ return e.fromDate && a[R].push({ before: e.fromDate }), e.toDate && a[R].push({ after: e.toDate }), te(e) ? a[R] = a[R].concat(n.modifiers[R]) : ne(e) && (a[R] = a[R].concat(t.modifiers[R]), a[we] = t.modifiers[we], a[be] = t.modifiers[be], a[ge] = t.modifiers[ge]), a;
1909
+ }
1910
+ var ot = q(void 0);
1911
+ function Sr(e) {
1912
+ var n = P(), t = pe(), r = We(), a = pr(n, t, r), o = Nr(n.modifiers), i = g(g({}, a), o);
1913
+ return d(ot.Provider, { value: i, children: e.children });
1914
+ }
1915
+ function it() {
1916
+ var e = Q(ot);
1917
+ if (!e)
1918
+ throw new Error("useModifiers must be used within a ModifiersProvider");
1919
+ return e;
1920
+ }
1921
+ function Wr(e) {
1922
+ return !!(e && typeof e == "object" && "before" in e && "after" in e);
1923
+ }
1924
+ function Tr(e) {
1925
+ return !!(e && typeof e == "object" && "from" in e);
1926
+ }
1927
+ function Yr(e) {
1928
+ return !!(e && typeof e == "object" && "after" in e);
1929
+ }
1930
+ function Fr(e) {
1931
+ return !!(e && typeof e == "object" && "before" in e);
1932
+ }
1933
+ function Er(e) {
1934
+ return !!(e && typeof e == "object" && "dayOfWeek" in e);
1935
+ }
1936
+ function Lr(e, n) {
1937
+ var t, r = n.from, a = n.to;
1938
+ if (r && a) {
1939
+ var o = L(a, r) < 0;
1940
+ o && (t = [a, r], r = t[0], a = t[1]);
1941
+ var i = L(e, r) >= 0 && L(a, e) >= 0;
1942
+ return i;
1943
+ }
1944
+ return a ? W(a, e) : r ? W(r, e) : !1;
1945
+ }
1946
+ function Ir(e) {
1947
+ return Ne(e);
1948
+ }
1949
+ function Rr(e) {
1950
+ return Array.isArray(e) && e.every(Ne);
1951
+ }
1952
+ function Br(e, n) {
1953
+ return n.some(function(t) {
1954
+ if (typeof t == "boolean")
1955
+ return t;
1956
+ if (Ir(t))
1957
+ return W(e, t);
1958
+ if (Rr(t))
1959
+ return t.includes(e);
1960
+ if (Tr(t))
1961
+ return Lr(e, t);
1962
+ if (Er(t))
1963
+ return t.dayOfWeek.includes(e.getDay());
1964
+ if (Wr(t)) {
1965
+ var r = L(t.before, e), a = L(t.after, e), o = r > 0, i = a < 0, s = _e(t.before, t.after);
1966
+ return s ? i && o : o || i;
1967
+ }
1968
+ return Yr(t) ? L(e, t.after) > 0 : Fr(t) ? L(t.before, e) > 0 : typeof t == "function" ? t(e) : !1;
1969
+ });
1970
+ }
1971
+ function Te(e, n, t) {
1972
+ var r = Object.keys(n).reduce(function(o, i) {
1973
+ var s = n[i];
1974
+ return Br(e, s) && o.push(i), o;
1975
+ }, []), a = {};
1976
+ return r.forEach(function(o) {
1977
+ return a[o] = !0;
1978
+ }), t && !xe(e, t) && (a.outside = !0), a;
1979
+ }
1980
+ function jr(e, n) {
1981
+ for (var t = T(e[0]), r = Pe(e[e.length - 1]), a, o, i = t; i <= r; ) {
1982
+ var s = Te(i, n), u = !s.disabled && !s.hidden;
1983
+ if (!u) {
1984
+ i = S(i, 1);
1985
+ continue;
1986
+ }
1987
+ if (s.selected)
1988
+ return i;
1989
+ s.today && !o && (o = i), a || (a = i), i = S(i, 1);
1990
+ }
1991
+ return o || a;
1992
+ }
1993
+ var Hr = 365;
1994
+ function st(e, n) {
1995
+ var t = n.moveBy, r = n.direction, a = n.context, o = n.modifiers, i = n.retry, s = i === void 0 ? { count: 0, lastFocused: e } : i, u = a.weekStartsOn, c = a.fromDate, l = a.toDate, f = a.locale, h = {
1996
+ day: S,
1997
+ week: Me,
1998
+ month: F,
1999
+ year: Ct,
2000
+ startOfWeek: function(w) {
2001
+ return a.ISOWeek ? A(w) : I(w, { locale: f, weekStartsOn: u });
2002
+ },
2003
+ endOfWeek: function(w) {
2004
+ return a.ISOWeek ? Ve(w) : Oe(w, { locale: f, weekStartsOn: u });
2005
+ }
2006
+ }, m = h[t](e, r === "after" ? 1 : -1);
2007
+ r === "before" && c ? m = pt([c, m]) : r === "after" && l && (m = St([l, m]));
2008
+ var y = !0;
2009
+ if (o) {
2010
+ var _ = Te(m, o);
2011
+ y = !_.disabled && !_.hidden;
2012
+ }
2013
+ return y ? m : s.count > Hr ? s.lastFocused : st(m, {
2014
+ moveBy: t,
2015
+ direction: r,
2016
+ context: a,
2017
+ modifiers: o,
2018
+ retry: g(g({}, s), { count: s.count + 1 })
2019
+ });
2020
+ }
2021
+ var ut = q(void 0);
2022
+ function Ar(e) {
2023
+ var n = re(), t = it(), r = z(), a = r[0], o = r[1], i = z(), s = i[0], u = i[1], c = jr(n.displayMonths, t), l = a ?? (s && n.isDateDisplayed(s)) ? s : c, f = function() {
2024
+ u(a), o(void 0);
2025
+ }, h = function(w) {
2026
+ o(w);
2027
+ }, m = P(), y = function(w, M) {
2028
+ if (a) {
2029
+ var D = st(a, {
2030
+ moveBy: w,
2031
+ direction: M,
2032
+ context: m,
2033
+ modifiers: t
2034
+ });
2035
+ W(a, D) || (n.goToDate(D, a), h(D));
2036
+ }
2037
+ }, _ = {
2038
+ focusedDay: a,
2039
+ focusTarget: l,
2040
+ blur: f,
2041
+ focus: h,
2042
+ focusDayAfter: function() {
2043
+ return y("day", "after");
2044
+ },
2045
+ focusDayBefore: function() {
2046
+ return y("day", "before");
2047
+ },
2048
+ focusWeekAfter: function() {
2049
+ return y("week", "after");
2050
+ },
2051
+ focusWeekBefore: function() {
2052
+ return y("week", "before");
2053
+ },
2054
+ focusMonthBefore: function() {
2055
+ return y("month", "before");
2056
+ },
2057
+ focusMonthAfter: function() {
2058
+ return y("month", "after");
2059
+ },
2060
+ focusYearBefore: function() {
2061
+ return y("year", "before");
2062
+ },
2063
+ focusYearAfter: function() {
2064
+ return y("year", "after");
2065
+ },
2066
+ focusStartOfWeek: function() {
2067
+ return y("startOfWeek", "before");
2068
+ },
2069
+ focusEndOfWeek: function() {
2070
+ return y("endOfWeek", "after");
2071
+ }
2072
+ };
2073
+ return d(ut.Provider, { value: _, children: e.children });
2074
+ }
2075
+ function Ye() {
2076
+ var e = Q(ut);
2077
+ if (!e)
2078
+ throw new Error("useFocusContext must be used within a FocusProvider");
2079
+ return e;
2080
+ }
2081
+ function qr(e, n) {
2082
+ var t = it(), r = Te(e, t, n);
2083
+ return r;
2084
+ }
2085
+ var Fe = q(void 0);
2086
+ function Qr(e) {
2087
+ if (!le(e.initialProps)) {
2088
+ var n = {
2089
+ selected: void 0
2090
+ };
2091
+ return d(Fe.Provider, { value: n, children: e.children });
2092
+ }
2093
+ return d(Xr, { initialProps: e.initialProps, children: e.children });
2094
+ }
2095
+ function Xr(e) {
2096
+ var n = e.initialProps, t = e.children, r = function(o, i, s) {
2097
+ var u, c, l;
2098
+ if ((u = n.onDayClick) === null || u === void 0 || u.call(n, o, i, s), i.selected && !n.required) {
2099
+ (c = n.onSelect) === null || c === void 0 || c.call(n, void 0, o, i, s);
2100
+ return;
2101
+ }
2102
+ (l = n.onSelect) === null || l === void 0 || l.call(n, o, o, i, s);
2103
+ }, a = {
2104
+ selected: n.selected,
2105
+ onDayClick: r
2106
+ };
2107
+ return d(Fe.Provider, { value: a, children: t });
2108
+ }
2109
+ function lt() {
2110
+ var e = Q(Fe);
2111
+ if (!e)
2112
+ throw new Error("useSelectSingle must be used within a SelectSingleProvider");
2113
+ return e;
2114
+ }
2115
+ function Gr(e, n) {
2116
+ var t = P(), r = lt(), a = pe(), o = We(), i = Ye(), s = i.focusDayAfter, u = i.focusDayBefore, c = i.focusWeekAfter, l = i.focusWeekBefore, f = i.blur, h = i.focus, m = i.focusMonthBefore, y = i.focusMonthAfter, _ = i.focusYearBefore, w = i.focusYearAfter, M = i.focusStartOfWeek, D = i.focusEndOfWeek, O = function(b) {
2117
+ var v, de, fe, he;
2118
+ le(t) ? (v = r.onDayClick) === null || v === void 0 || v.call(r, e, n, b) : te(t) ? (de = a.onDayClick) === null || de === void 0 || de.call(a, e, n, b) : ne(t) ? (fe = o.onDayClick) === null || fe === void 0 || fe.call(o, e, n, b) : (he = t.onDayClick) === null || he === void 0 || he.call(t, e, n, b);
2119
+ }, j = function(b) {
2120
+ var v;
2121
+ h(e), (v = t.onDayFocus) === null || v === void 0 || v.call(t, e, n, b);
2122
+ }, ce = function(b) {
2123
+ var v;
2124
+ f(), (v = t.onDayBlur) === null || v === void 0 || v.call(t, e, n, b);
2125
+ }, J = function(b) {
2126
+ var v;
2127
+ (v = t.onDayMouseEnter) === null || v === void 0 || v.call(t, e, n, b);
2128
+ }, dt = function(b) {
2129
+ var v;
2130
+ (v = t.onDayMouseLeave) === null || v === void 0 || v.call(t, e, n, b);
2131
+ }, ft = function(b) {
2132
+ var v;
2133
+ (v = t.onDayPointerEnter) === null || v === void 0 || v.call(t, e, n, b);
2134
+ }, ht = function(b) {
2135
+ var v;
2136
+ (v = t.onDayPointerLeave) === null || v === void 0 || v.call(t, e, n, b);
2137
+ }, mt = function(b) {
2138
+ var v;
2139
+ (v = t.onDayTouchCancel) === null || v === void 0 || v.call(t, e, n, b);
2140
+ }, vt = function(b) {
2141
+ var v;
2142
+ (v = t.onDayTouchEnd) === null || v === void 0 || v.call(t, e, n, b);
2143
+ }, yt = function(b) {
2144
+ var v;
2145
+ (v = t.onDayTouchMove) === null || v === void 0 || v.call(t, e, n, b);
2146
+ }, gt = function(b) {
2147
+ var v;
2148
+ (v = t.onDayTouchStart) === null || v === void 0 || v.call(t, e, n, b);
2149
+ }, bt = function(b) {
2150
+ var v;
2151
+ (v = t.onDayKeyUp) === null || v === void 0 || v.call(t, e, n, b);
2152
+ }, wt = function(b) {
2153
+ var v;
2154
+ switch (b.key) {
2155
+ case "ArrowLeft":
2156
+ b.preventDefault(), b.stopPropagation(), t.dir === "rtl" ? s() : u();
2157
+ break;
2158
+ case "ArrowRight":
2159
+ b.preventDefault(), b.stopPropagation(), t.dir === "rtl" ? u() : s();
2160
+ break;
2161
+ case "ArrowDown":
2162
+ b.preventDefault(), b.stopPropagation(), c();
2163
+ break;
2164
+ case "ArrowUp":
2165
+ b.preventDefault(), b.stopPropagation(), l();
2166
+ break;
2167
+ case "PageUp":
2168
+ b.preventDefault(), b.stopPropagation(), b.shiftKey ? _() : m();
2169
+ break;
2170
+ case "PageDown":
2171
+ b.preventDefault(), b.stopPropagation(), b.shiftKey ? w() : y();
2172
+ break;
2173
+ case "Home":
2174
+ b.preventDefault(), b.stopPropagation(), M();
2175
+ break;
2176
+ case "End":
2177
+ b.preventDefault(), b.stopPropagation(), D();
2178
+ break;
2179
+ }
2180
+ (v = t.onDayKeyDown) === null || v === void 0 || v.call(t, e, n, b);
2181
+ }, Dt = {
2182
+ onClick: O,
2183
+ onFocus: j,
2184
+ onBlur: ce,
2185
+ onKeyDown: wt,
2186
+ onKeyUp: bt,
2187
+ onMouseEnter: J,
2188
+ onMouseLeave: dt,
2189
+ onPointerEnter: ft,
2190
+ onPointerLeave: ht,
2191
+ onTouchCancel: mt,
2192
+ onTouchEnd: vt,
2193
+ onTouchMove: yt,
2194
+ onTouchStart: gt
2195
+ };
2196
+ return Dt;
2197
+ }
2198
+ function Vr() {
2199
+ var e = P(), n = lt(), t = pe(), r = We(), a = le(e) ? n.selected : te(e) ? t.selected : ne(e) ? r.selected : void 0;
2200
+ return a;
2201
+ }
2202
+ function $r(e) {
2203
+ return Object.values(E).includes(e);
2204
+ }
2205
+ function Jr(e, n) {
2206
+ var t = [e.classNames.day];
2207
+ return Object.keys(n).forEach(function(r) {
2208
+ var a = e.modifiersClassNames[r];
2209
+ if (a)
2210
+ t.push(a);
2211
+ else if ($r(r)) {
2212
+ var o = e.classNames["day_".concat(r)];
2213
+ o && t.push(o);
2214
+ }
2215
+ }), t;
2216
+ }
2217
+ function Ur(e, n) {
2218
+ var t = g({}, e.styles.day);
2219
+ return Object.keys(n).forEach(function(r) {
2220
+ var a;
2221
+ t = g(g({}, t), (a = e.modifiersStyles) === null || a === void 0 ? void 0 : a[r]);
2222
+ }), t;
2223
+ }
2224
+ function Kr(e, n, t) {
2225
+ var r, a, o, i = P(), s = Ye(), u = qr(e, n), c = Gr(e, u), l = Vr(), f = !!(i.onDayClick || i.mode !== "default");
2226
+ ue(function() {
2227
+ var J;
2228
+ u.outside || s.focusedDay && f && W(s.focusedDay, e) && ((J = t.current) === null || J === void 0 || J.focus());
2229
+ }, [
2230
+ s.focusedDay,
2231
+ e,
2232
+ t,
2233
+ f,
2234
+ u.outside
2235
+ ]);
2236
+ var h = Jr(i, u).join(" "), m = Ur(i, u), y = !!(u.outside && !i.showOutsideDays || u.hidden), _ = (o = (a = i.components) === null || a === void 0 ? void 0 : a.DayContent) !== null && o !== void 0 ? o : br, w = d(_, { date: e, displayMonth: n, activeModifiers: u }), M = {
2237
+ style: m,
2238
+ className: h,
2239
+ children: w,
2240
+ role: "gridcell"
2241
+ }, D = s.focusTarget && W(s.focusTarget, e) && !u.outside, O = s.focusedDay && W(s.focusedDay, e), j = g(g(g({}, M), (r = { disabled: u.disabled, role: "gridcell" }, r["aria-selected"] = u.selected, r.tabIndex = O || D ? 0 : -1, r)), c), ce = {
2242
+ isButton: f,
2243
+ isHidden: y,
2244
+ activeModifiers: u,
2245
+ selectedDays: l,
2246
+ buttonProps: j,
2247
+ divProps: M
2248
+ };
2249
+ return ce;
2250
+ }
2251
+ function zr(e) {
2252
+ var n = kt(null), t = Kr(e.date, e.displayMonth, n);
2253
+ return t.isHidden ? d("div", { role: "gridcell" }) : t.isButton ? d(se, g({ name: "day", ref: n }, t.buttonProps)) : d("div", g({}, t.divProps));
2254
+ }
2255
+ function Zr(e) {
2256
+ var n = e.number, t = e.dates, r = P(), a = r.onWeekNumberClick, o = r.styles, i = r.classNames, s = r.locale, u = r.labels.labelWeekNumber, c = r.formatters.formatWeekNumber, l = c(Number(n), { locale: s });
2257
+ if (!a)
2258
+ return d("span", { className: i.weeknumber, style: o.weeknumber, children: l });
2259
+ var f = u(Number(n), { locale: s }), h = function(m) {
2260
+ a(n, t, m);
2261
+ };
2262
+ return d(se, { name: "week-number", "aria-label": f, className: i.weeknumber, style: o.weeknumber, onClick: h, children: l });
2263
+ }
2264
+ function ea(e) {
2265
+ var n, t, r = P(), a = r.styles, o = r.classNames, i = r.showWeekNumber, s = r.components, u = (n = s == null ? void 0 : s.Day) !== null && n !== void 0 ? n : zr, c = (t = s == null ? void 0 : s.WeekNumber) !== null && t !== void 0 ? t : Zr, l;
2266
+ return i && (l = d("td", { className: o.cell, style: a.cell, children: d(c, { number: e.weekNumber, dates: e.dates }) })), p("tr", { className: o.row, style: a.row, children: [l, e.dates.map(function(f) {
2267
+ return d("td", { className: o.cell, style: a.cell, role: "presentation", children: d(u, { displayMonth: e.displayMonth, date: f }) }, Sn(f));
2268
+ })] });
2269
+ }
2270
+ function qe(e, n, t) {
2271
+ for (var r = t != null && t.ISOWeek ? Ve(n) : Oe(n, t), a = t != null && t.ISOWeek ? A(e) : I(e, t), o = L(r, a), i = [], s = 0; s <= o; s++)
2272
+ i.push(S(a, s));
2273
+ var u = i.reduce(function(c, l) {
2274
+ var f = t != null && t.ISOWeek ? Je(l) : Ke(l, t), h = c.find(function(m) {
2275
+ return m.weekNumber === f;
2276
+ });
2277
+ return h ? (h.dates.push(l), c) : (c.push({
2278
+ weekNumber: f,
2279
+ dates: [l]
2280
+ }), c);
2281
+ }, []);
2282
+ return u;
2283
+ }
2284
+ function ta(e, n) {
2285
+ var t = qe(T(e), Pe(e), n);
2286
+ if (n != null && n.useFixedWeeks) {
2287
+ var r = Tn(e, n);
2288
+ if (r < 6) {
2289
+ var a = t[t.length - 1], o = a.dates[a.dates.length - 1], i = Me(o, 6 - r), s = qe(Me(o, 1), i, n);
2290
+ t.push.apply(t, s);
2291
+ }
2292
+ }
2293
+ return t;
2294
+ }
2295
+ function na(e) {
2296
+ var n, t, r, a = P(), o = a.locale, i = a.classNames, s = a.styles, u = a.hideHead, c = a.fixedWeeks, l = a.components, f = a.weekStartsOn, h = a.firstWeekContainsDate, m = a.ISOWeek, y = ta(e.displayMonth, {
2297
+ useFixedWeeks: !!c,
2298
+ ISOWeek: m,
2299
+ locale: o,
2300
+ weekStartsOn: f,
2301
+ firstWeekContainsDate: h
2302
+ }), _ = (n = l == null ? void 0 : l.Head) !== null && n !== void 0 ? n : gr, w = (t = l == null ? void 0 : l.Row) !== null && t !== void 0 ? t : ea, M = (r = l == null ? void 0 : l.Footer) !== null && r !== void 0 ? r : mr;
2303
+ return p("table", { id: e.id, className: i.table, style: s.table, role: "grid", "aria-labelledby": e["aria-labelledby"], children: [!u && d(_, {}), d("tbody", { className: i.tbody, style: s.tbody, children: y.map(function(D) {
2304
+ return d(w, { displayMonth: e.displayMonth, dates: D.dates, weekNumber: D.weekNumber }, D.weekNumber);
2305
+ }) }), d(M, { displayMonth: e.displayMonth })] });
2306
+ }
2307
+ function ra() {
2308
+ return !!(typeof window < "u" && window.document && window.document.createElement);
2309
+ }
2310
+ var aa = ra() ? _t : ue, De = !1, oa = 0;
2311
+ function Qe() {
2312
+ return "react-day-picker-".concat(++oa);
2313
+ }
2314
+ function ia(e) {
2315
+ var n, t = e ?? (De ? Qe() : null), r = z(t), a = r[0], o = r[1];
2316
+ return aa(function() {
2317
+ a === null && o(Qe());
2318
+ }, []), ue(function() {
2319
+ De === !1 && (De = !0);
2320
+ }, []), (n = e ?? a) !== null && n !== void 0 ? n : void 0;
2321
+ }
2322
+ function sa(e) {
2323
+ var n, t, r = P(), a = r.dir, o = r.classNames, i = r.styles, s = r.components, u = re().displayMonths, c = ia(r.id ? "".concat(r.id, "-").concat(e.displayIndex) : void 0), l = r.id ? "".concat(r.id, "-grid-").concat(e.displayIndex) : void 0, f = [o.month], h = i.month, m = e.displayIndex === 0, y = e.displayIndex === u.length - 1, _ = !m && !y;
2324
+ a === "rtl" && (n = [m, y], y = n[0], m = n[1]), m && (f.push(o.caption_start), h = g(g({}, h), i.caption_start)), y && (f.push(o.caption_end), h = g(g({}, h), i.caption_end)), _ && (f.push(o.caption_between), h = g(g({}, h), i.caption_between));
2325
+ var w = (t = s == null ? void 0 : s.Caption) !== null && t !== void 0 ? t : hr;
2326
+ return p("div", { className: f.join(" "), style: h, children: [d(w, { id: c, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), d(na, { id: l, "aria-labelledby": c, displayMonth: e.displayMonth })] }, e.displayIndex);
2327
+ }
2328
+ function ua(e) {
2329
+ var n = P(), t = n.classNames, r = n.styles;
2330
+ return d("div", { className: t.months, style: r.months, children: e.children });
2331
+ }
2332
+ function la(e) {
2333
+ var n, t, r = e.initialProps, a = P(), o = Ye(), i = re(), s = z(!1), u = s[0], c = s[1];
2334
+ ue(function() {
2335
+ a.initialFocus && o.focusTarget && (u || (o.focus(o.focusTarget), c(!0)));
2336
+ }, [
2337
+ a.initialFocus,
2338
+ u,
2339
+ o.focus,
2340
+ o.focusTarget,
2341
+ o
2342
+ ]);
2343
+ var l = [a.classNames.root, a.className];
2344
+ a.numberOfMonths > 1 && l.push(a.classNames.multiple_months), a.showWeekNumber && l.push(a.classNames.with_weeknumber);
2345
+ var f = g(g({}, a.styles.root), a.style), h = Object.keys(r).filter(function(y) {
2346
+ return y.startsWith("data-");
2347
+ }).reduce(function(y, _) {
2348
+ var w;
2349
+ return g(g({}, y), (w = {}, w[_] = r[_], w));
2350
+ }, {}), m = (t = (n = r.components) === null || n === void 0 ? void 0 : n.Months) !== null && t !== void 0 ? t : ua;
2351
+ return d("div", g({ className: l.join(" "), style: f, dir: a.dir, id: a.id, nonce: r.nonce, title: r.title, lang: r.lang }, h, { children: d(m, { children: i.displayMonths.map(function(y, _) {
2352
+ return d(sa, { displayIndex: _, displayMonth: y }, _);
2353
+ }) }) }));
2354
+ }
2355
+ function ca(e) {
2356
+ var n = e.children, t = Fn(e, ["children"]);
2357
+ return d(Zn, { initialProps: t, children: d(lr, { children: d(Qr, { initialProps: t, children: d(wr, { initialProps: t, children: d(_r, { initialProps: t, children: d(Sr, { children: d(Ar, { children: n }) }) }) }) }) }) });
2358
+ }
2359
+ function da(e) {
2360
+ return d(ca, g({}, e, { children: d(la, { initialProps: e }) }));
2361
+ }
2362
+ const fa = Nt.base, ha = "date-picker", ct = ({
2363
+ id: e,
2364
+ className: n,
2365
+ style: t,
2366
+ mode: r,
2367
+ selected: a,
2368
+ setSelection: o,
2369
+ fromMonth: i,
2370
+ toDate: s,
2371
+ customFooter: u,
2372
+ timeFrom: c,
2373
+ setTimeFrom: l,
2374
+ timeTo: f,
2375
+ setTimeTo: h,
2376
+ dateFormat: m,
2377
+ showDebugger: y,
2378
+ ..._
2379
+ }) => {
2380
+ const w = (M) => r === "single" ? ae(M, m) : r === "multiple" ? M.map((D) => ae(D, m)).join(", ") : r === "range" ? M.from && M.to ? `${ae(M.from, m)} - ${ae(M.to, m)}` : "Please pick an additional day." : null;
2381
+ return /* @__PURE__ */ p(
2382
+ "div",
2383
+ {
2384
+ id: e,
2385
+ className: [
2386
+ fa,
2387
+ ha,
2388
+ n
2389
+ ].filter((M) => M).join(" "),
2390
+ style: t,
2391
+ children: [
2392
+ /* @__PURE__ */ d(
2393
+ da,
2394
+ {
2395
+ mode: r,
2396
+ selected: a,
2397
+ onSelect: o,
2398
+ fromMonth: i,
2399
+ toDate: s,
2400
+ showOutsideDays: !0,
2401
+ footer: u || /* @__PURE__ */ p("div", { className: "default-footer", children: [
2402
+ l && /* @__PURE__ */ p(Y, { children: [
2403
+ /* @__PURE__ */ p("p", { className: "time-label s-1", children: [
2404
+ /* @__PURE__ */ d("span", { className: "icon", children: "C" }),
2405
+ "  Time"
2406
+ ] }),
2407
+ /* @__PURE__ */ p("div", { className: `time-inputs${f ? " multiple" : ""}`, children: [
2408
+ /* @__PURE__ */ d("input", { className: "s-1", type: "time", value: c, onChange: (M) => l(M.target.value) }),
2409
+ h && /* @__PURE__ */ p(Y, { children: [
2410
+ /* @__PURE__ */ d("span", { className: "icon s-2", children: "r" }),
2411
+ /* @__PURE__ */ d("input", { className: "s-1", type: "time", value: f, onChange: (M) => h(M.target.value) })
2412
+ ] })
2413
+ ] })
2414
+ ] }),
2415
+ /* @__PURE__ */ d("p", { className: "s-1 footer-text", children: a && w(a) })
2416
+ ] }),
2417
+ ..._
2418
+ }
2419
+ ),
2420
+ y && /* @__PURE__ */ d("div", { className: "debugger", children: /* @__PURE__ */ d("pre", { children: JSON.stringify(a, null, 2) }) })
2421
+ ]
2422
+ }
2423
+ );
2424
+ };
2425
+ ct.propTypes = {
2426
+ /**
2427
+ * The HTML id for this element
2428
+ */
2429
+ id: C.string,
2430
+ /**
2431
+ * The HTML class names for this element
2432
+ */
2433
+ className: C.string,
2434
+ /**
2435
+ * The React-written, css properties for this element.
2436
+ */
2437
+ style: C.objectOf(C.string),
2438
+ /**
2439
+ * The mode for this date picker.
2440
+ */
2441
+ mode: C.oneOf(["single", "multiple", "range"]),
2442
+ /**
2443
+ * The current selection.
2444
+ */
2445
+ // eslint-disable-next-line react/forbid-prop-types
2446
+ selected: C.objectOf(C.any).isRequired,
2447
+ /**
2448
+ * The function to update the selection.
2449
+ */
2450
+ setSelection: C.func.isRequired,
2451
+ /**
2452
+ * The earliest month to display.
2453
+ */
2454
+ fromMonth: C.instanceOf(Date),
2455
+ /**
2456
+ * The latest month to display.
2457
+ */
2458
+ toDate: C.instanceOf(Date),
2459
+ /**
2460
+ * Custom footer component.
2461
+ */
2462
+ customFooter: C.node,
2463
+ /**
2464
+ * The start time.
2465
+ */
2466
+ timeFrom: C.string,
2467
+ /**
2468
+ * The function to update the start time.
2469
+ */
2470
+ setTimeFrom: C.func,
2471
+ /**
2472
+ * The end time.
2473
+ */
2474
+ timeTo: C.string,
2475
+ /**
2476
+ * The function to update the end time.
2477
+ */
2478
+ setTimeTo: C.func,
2479
+ /**
2480
+ * The date format.
2481
+ */
2482
+ dateFormat: C.string,
2483
+ /**
2484
+ * Show the debugger.
2485
+ */
2486
+ showDebugger: C.bool
2487
+ };
2488
+ ct.defaultProps = {
2489
+ mode: "single",
2490
+ dateFormat: "PPP",
2491
+ showDebugger: !1
2492
+ };
7
2493
  export {
8
- e as default
2494
+ ct as default
9
2495
  };