@krosoft/react 0.0.75 → 0.0.77

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 (79) hide show
  1. package/dist/Combination-CzdDhqdB.js +564 -0
  2. package/dist/DataTable-CjFA9p4V.js +2216 -0
  3. package/dist/{DateRangePicker-BAn4LMHi.js → DateRangePicker-rrXXEYz8.js} +19 -16
  4. package/dist/LoadingState-CqRLmkxn.js +29 -0
  5. package/dist/{MetricCard-H--Bf1Ib.js → MetricCard-88djqC4o.js} +22 -20
  6. package/dist/{ThemeSelector-DQmkKmzE.js → ThemeSelector-sTd9T2OD.js} +8 -8
  7. package/dist/{Topbar-CFALRIJn.js → Topbar-BqC05zWP.js} +27 -26
  8. package/dist/{badge-C4pCH7IL.js → badge-kADcbb2Y.js} +1 -1
  9. package/dist/{calendar-cHag6u-j.js → calendar-BMReToKR.js} +771 -802
  10. package/dist/card-7XPLAra3.js +23 -0
  11. package/dist/checkbox-BI6Lm_p-.js +358 -0
  12. package/dist/chevron-down-ki5-dwtL.js +11 -0
  13. package/dist/components/core/cards/index.js +1 -1
  14. package/dist/components/core/index.d.ts +1 -0
  15. package/dist/components/core/index.d.ts.map +1 -1
  16. package/dist/components/core/index.js +25 -14
  17. package/dist/components/core/inputs/index.js +1 -1
  18. package/dist/components/core/navbar/index.js +1 -1
  19. package/dist/components/core/states/CardSkeleton.d.ts +3 -0
  20. package/dist/components/core/states/CardSkeleton.d.ts.map +1 -0
  21. package/dist/components/core/states/CardsSkeleton.d.ts +7 -0
  22. package/dist/components/core/states/CardsSkeleton.d.ts.map +1 -0
  23. package/dist/components/core/states/index.d.ts +2 -0
  24. package/dist/components/core/states/index.d.ts.map +1 -1
  25. package/dist/components/core/states/index.js +5 -3
  26. package/dist/components/core/table/DataTable.d.ts +5 -0
  27. package/dist/components/core/table/DataTable.d.ts.map +1 -0
  28. package/dist/components/core/table/TableActions.d.ts +8 -0
  29. package/dist/components/core/table/TableActions.d.ts.map +1 -0
  30. package/dist/components/core/table/TableBody.d.ts +21 -0
  31. package/dist/components/core/table/TableBody.d.ts.map +1 -0
  32. package/dist/components/core/table/TableBulkActions.d.ts +9 -0
  33. package/dist/components/core/table/TableBulkActions.d.ts.map +1 -0
  34. package/dist/components/core/table/TableHeader.d.ts +23 -0
  35. package/dist/components/core/table/TableHeader.d.ts.map +1 -0
  36. package/dist/components/core/table/TablePagination.d.ts +14 -0
  37. package/dist/components/core/table/TablePagination.d.ts.map +1 -0
  38. package/dist/components/core/table/TableSettings.d.ts +9 -0
  39. package/dist/components/core/table/TableSettings.d.ts.map +1 -0
  40. package/dist/components/core/table/index.d.ts +10 -0
  41. package/dist/components/core/table/index.d.ts.map +1 -0
  42. package/dist/components/core/table/index.js +11 -0
  43. package/dist/components/core/theme/index.js +1 -1
  44. package/dist/components/index.js +62 -48
  45. package/dist/components/ui/checkbox.d.ts +5 -0
  46. package/dist/components/ui/checkbox.d.ts.map +1 -0
  47. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  48. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  49. package/dist/components/ui/index.d.ts +1 -0
  50. package/dist/components/ui/index.d.ts.map +1 -1
  51. package/dist/components/ui/index.js +33 -30
  52. package/dist/components/ui/select.d.ts +1 -1
  53. package/dist/components/ui/select.d.ts.map +1 -1
  54. package/dist/constants/datatable.d.ts +3 -0
  55. package/dist/constants/datatable.d.ts.map +1 -0
  56. package/dist/{index-BQOmHRsD.js → floating-ui.react-dom-BPCyLQfI.js} +315 -323
  57. package/dist/hooks/ui/useDataTable.d.ts +4 -0
  58. package/dist/hooks/ui/useDataTable.d.ts.map +1 -0
  59. package/dist/loader-circle-BhJXKs31.js +11 -0
  60. package/dist/select-B-hcmC3K.js +1468 -0
  61. package/dist/{tooltip-Dep8OR3c.js → tooltip-gI1Mp9DG.js} +1 -1
  62. package/dist/types/BulkAction.d.ts +8 -0
  63. package/dist/types/BulkAction.d.ts.map +1 -0
  64. package/dist/types/ColumnDef.d.ts +11 -0
  65. package/dist/types/ColumnDef.d.ts.map +1 -0
  66. package/dist/types/DataTableProps.d.ts +19 -0
  67. package/dist/types/DataTableProps.d.ts.map +1 -0
  68. package/dist/types/RowAction.d.ts +8 -0
  69. package/dist/types/RowAction.d.ts.map +1 -0
  70. package/dist/types/UseDataTableProps.d.ts +13 -0
  71. package/dist/types/UseDataTableProps.d.ts.map +1 -0
  72. package/dist/types/UseDataTableResult.d.ts +34 -0
  73. package/dist/types/UseDataTableResult.d.ts.map +1 -0
  74. package/dist/types/index.d.ts +7 -0
  75. package/dist/types/index.d.ts.map +1 -0
  76. package/dist/types/index.js +1 -0
  77. package/package.json +5 -3
  78. package/dist/LoadingState-C0uS6aGT.js +0 -19
  79. package/dist/select-Dv9bdUCB.js +0 -2023
@@ -1,12 +1,13 @@
1
- import { jsx as C, jsxs as ht, Fragment as Xt } from "react/jsx-runtime";
2
- import * as v from "react";
3
- import p, { createContext as Er, useContext as xr, useCallback as ee, useRef as qe, useLayoutEffect as Wr, useState as it, useEffect as Pr, useMemo as $e } from "react";
4
- import { c as Lt, q as Qt, u as pe, a as ct, d as _r, e as Z, f as ke, p as je, v as Fr, b as Je } from "./index-BQOmHRsD.js";
5
- import { c as $ } from "./index-gWiv5-6R.js";
6
- import * as Zt from "react-dom";
7
- import Yr from "react-dom";
8
- import { c as mt } from "./createLucideIcon-CRdjzt2A.js";
9
- const Ir = Lt(
1
+ import { jsx as S, jsxs as ht, Fragment as Kt } from "react/jsx-runtime";
2
+ import * as b from "react";
3
+ import p, { createContext as Sr, useContext as Er, useCallback as ee, useRef as qe, useLayoutEffect as xr, useState as it, useEffect as Wr, useMemo as je } from "react";
4
+ import { c as Xt, h as Lt, u as pe, d as ct, i as Pr, f as Z, j as ke, a as $e, e as _r, b as Je } from "./floating-ui.react-dom-BPCyLQfI.js";
5
+ import { c as K } from "./index-gWiv5-6R.js";
6
+ import * as Qt from "react-dom";
7
+ import Fr from "react-dom";
8
+ import { c as Yr } from "./createLucideIcon-CRdjzt2A.js";
9
+ import { a as Ir, b as Rr } from "./checkbox-BI6Lm_p-.js";
10
+ const Ar = Xt(
10
11
  "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
11
12
  {
12
13
  variants: {
@@ -19,31 +20,28 @@ const Ir = Lt(
19
20
  variant: "default"
20
21
  }
21
22
  }
22
- ), Rr = v.forwardRef(
23
- ({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ C("div", { ref: r, role: "alert", className: $(Ir({ variant: t }), e), ...n })
23
+ ), Br = b.forwardRef(
24
+ ({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ S("div", { ref: r, role: "alert", className: K(Ar({ variant: t }), e), ...n })
24
25
  );
25
- Rr.displayName = "Alert";
26
- const Ar = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("h5", { ref: n, className: $("mb-1 font-medium leading-none tracking-tight", e), ...t }));
27
- Ar.displayName = "AlertTitle";
28
- const Br = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", { ref: n, className: $("text-sm [&_p]:leading-relaxed", e), ...t }));
29
- Br.displayName = "AlertDescription";
30
- const Hr = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", { ref: n, className: $("rounded-lg border bg-card text-card-foreground shadow-sm", e), ...t }));
31
- Hr.displayName = "Card";
32
- const qr = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", { ref: n, className: $("flex flex-col space-y-1.5 p-6", e), ...t }));
33
- qr.displayName = "CardHeader";
34
- const $r = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("h3", { ref: n, className: $("text-2xl font-semibold leading-none tracking-tight", e), ...t }));
35
- $r.displayName = "CardTitle";
36
- const jr = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("p", { ref: n, className: $("text-sm text-muted-foreground", e), ...t }));
37
- jr.displayName = "CardDescription";
38
- const Vr = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", { ref: n, className: $("p-6 pt-0", e), ...t }));
39
- Vr.displayName = "CardContent";
40
- const zr = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", { ref: n, className: $("flex items-center p-6 pt-0", e), ...t }));
41
- zr.displayName = "CardFooter";
42
- const Ur = v.forwardRef(({ className: e, type: t, ...n }, r) => /* @__PURE__ */ C(
26
+ Br.displayName = "Alert";
27
+ const Hr = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ S("h5", { ref: n, className: K("mb-1 font-medium leading-none tracking-tight", e), ...t }));
28
+ Hr.displayName = "AlertTitle";
29
+ const qr = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ S("div", { ref: n, className: K("text-sm [&_p]:leading-relaxed", e), ...t }));
30
+ qr.displayName = "AlertDescription";
31
+ /**
32
+ * @license lucide-react v1.16.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */
37
+ const jr = [
38
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
39
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
40
+ ], $r = Yr("x", jr), Vr = b.forwardRef(({ className: e, type: t, ...n }, r) => /* @__PURE__ */ S(
43
41
  "input",
44
42
  {
45
43
  type: t,
46
- className: $(
44
+ className: K(
47
45
  "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
48
46
  e
49
47
  ),
@@ -51,32 +49,32 @@ const Ur = v.forwardRef(({ className: e, type: t, ...n }, r) => /* @__PURE__ */
51
49
  ...n
52
50
  }
53
51
  ));
54
- Ur.displayName = "Input";
55
- function Gr(e) {
56
- const t = e + "CollectionProvider", [n, r] = Qt(t), [o, a] = n(
52
+ Vr.displayName = "Input";
53
+ function zr(e) {
54
+ const t = e + "CollectionProvider", [n, r] = Lt(t), [o, a] = n(
57
55
  t,
58
56
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
59
- ), s = (b) => {
60
- const { scope: m, children: T } = b, y = p.useRef(null), h = p.useRef(/* @__PURE__ */ new Map()).current;
61
- return /* @__PURE__ */ C(o, { scope: m, itemMap: h, collectionRef: y, children: T });
57
+ ), s = (v) => {
58
+ const { scope: m, children: T } = v, y = p.useRef(null), h = p.useRef(/* @__PURE__ */ new Map()).current;
59
+ return /* @__PURE__ */ S(o, { scope: m, itemMap: h, collectionRef: y, children: T });
62
60
  };
63
61
  s.displayName = t;
64
62
  const i = e + "CollectionSlot", c = ct(i), u = p.forwardRef(
65
- (b, m) => {
66
- const { scope: T, children: y } = b, h = a(i, T), k = pe(m, h.collectionRef);
67
- return /* @__PURE__ */ C(c, { ref: k, children: y });
63
+ (v, m) => {
64
+ const { scope: T, children: y } = v, h = a(i, T), k = pe(m, h.collectionRef);
65
+ return /* @__PURE__ */ S(c, { ref: k, children: y });
68
66
  }
69
67
  );
70
68
  u.displayName = i;
71
69
  const d = e + "CollectionItemSlot", f = "data-radix-collection-item", g = ct(d), w = p.forwardRef(
72
- (b, m) => {
73
- const { scope: T, children: y, ...h } = b, k = p.useRef(null), M = pe(m, k), l = a(d, T);
74
- return p.useEffect(() => (l.itemMap.set(k, { ref: k, ...h }), () => void l.itemMap.delete(k))), /* @__PURE__ */ C(g, { [f]: "", ref: M, children: y });
70
+ (v, m) => {
71
+ const { scope: T, children: y, ...h } = v, k = p.useRef(null), M = pe(m, k), l = a(d, T);
72
+ return p.useEffect(() => (l.itemMap.set(k, { ref: k, ...h }), () => void l.itemMap.delete(k))), /* @__PURE__ */ S(g, { [f]: "", ref: M, children: y });
75
73
  }
76
74
  );
77
75
  w.displayName = d;
78
- function N(b) {
79
- const m = a(e + "CollectionConsumer", b);
76
+ function N(v) {
77
+ const m = a(e + "CollectionConsumer", v);
80
78
  return p.useCallback(() => {
81
79
  const y = m.collectionRef.current;
82
80
  if (!y) return [];
@@ -92,7 +90,7 @@ function Gr(e) {
92
90
  r
93
91
  ];
94
92
  }
95
- var Kr = [
93
+ var Ur = [
96
94
  "a",
97
95
  "button",
98
96
  "div",
@@ -110,21 +108,21 @@ var Kr = [
110
108
  "span",
111
109
  "svg",
112
110
  "ul"
113
- ], ue = Kr.reduce((e, t) => {
114
- const n = ct(`Primitive.${t}`), r = v.forwardRef((o, a) => {
111
+ ], ue = Ur.reduce((e, t) => {
112
+ const n = ct(`Primitive.${t}`), r = b.forwardRef((o, a) => {
115
113
  const { asChild: s, ...i } = o, c = s ? n : t;
116
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ C(c, { ...i, ref: a });
114
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ S(c, { ...i, ref: a });
117
115
  });
118
116
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
119
117
  }, {});
120
- function Jt(e, t) {
121
- e && Zt.flushSync(() => e.dispatchEvent(t));
118
+ function Zt(e, t) {
119
+ e && Qt.flushSync(() => e.dispatchEvent(t));
122
120
  }
123
- var Xr = "DismissableLayer", ut = "dismissableLayer.update", Lr = "dismissableLayer.pointerDownOutside", Qr = "dismissableLayer.focusOutside", Pt, en = v.createContext({
121
+ var Gr = "DismissableLayer", ut = "dismissableLayer.update", Kr = "dismissableLayer.pointerDownOutside", Xr = "dismissableLayer.focusOutside", Wt, Jt = b.createContext({
124
122
  layers: /* @__PURE__ */ new Set(),
125
123
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
126
124
  branches: /* @__PURE__ */ new Set()
127
- }), tn = v.forwardRef(
125
+ }), en = b.forwardRef(
128
126
  (e, t) => {
129
127
  const {
130
128
  disableOutsidePointerEvents: n = !1,
@@ -134,26 +132,26 @@ var Xr = "DismissableLayer", ut = "dismissableLayer.update", Lr = "dismissableLa
134
132
  onInteractOutside: s,
135
133
  onDismiss: i,
136
134
  ...c
137
- } = e, u = v.useContext(en), [d, f] = v.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, w] = v.useState({}), N = pe(t, (O) => f(O)), b = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), T = b.indexOf(m), y = d ? b.indexOf(d) : -1, h = u.layersWithOutsidePointerEventsDisabled.size > 0, k = y >= T, M = Jr((O) => {
135
+ } = e, u = b.useContext(Jt), [d, f] = b.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, w] = b.useState({}), N = pe(t, (O) => f(O)), v = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), T = v.indexOf(m), y = d ? v.indexOf(d) : -1, h = u.layersWithOutsidePointerEventsDisabled.size > 0, k = y >= T, M = Qr((O) => {
138
136
  const W = O.target, P = [...u.branches].some((F) => F.contains(W));
139
137
  !k || P || (o == null || o(O), s == null || s(O), O.defaultPrevented || i == null || i());
140
- }, g), l = eo((O) => {
138
+ }, g), l = Zr((O) => {
141
139
  const W = O.target;
142
140
  [...u.branches].some((F) => F.contains(W)) || (a == null || a(O), s == null || s(O), O.defaultPrevented || i == null || i());
143
141
  }, g);
144
- return _r((O) => {
142
+ return Pr((O) => {
145
143
  y === u.layers.size - 1 && (r == null || r(O), !O.defaultPrevented && i && (O.preventDefault(), i()));
146
- }, g), v.useEffect(() => {
144
+ }, g), b.useEffect(() => {
147
145
  if (d)
148
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Pt = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), _t(), () => {
149
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Pt);
146
+ return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Wt = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), Pt(), () => {
147
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Wt);
150
148
  };
151
- }, [d, g, n, u]), v.useEffect(() => () => {
152
- d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), _t());
153
- }, [d, u]), v.useEffect(() => {
149
+ }, [d, g, n, u]), b.useEffect(() => () => {
150
+ d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Pt());
151
+ }, [d, u]), b.useEffect(() => {
154
152
  const O = () => w({});
155
153
  return document.addEventListener(ut, O), () => document.removeEventListener(ut, O);
156
- }, []), /* @__PURE__ */ C(
154
+ }, []), /* @__PURE__ */ S(
157
155
  ue.div,
158
156
  {
159
157
  ...c,
@@ -172,27 +170,27 @@ var Xr = "DismissableLayer", ut = "dismissableLayer.update", Lr = "dismissableLa
172
170
  );
173
171
  }
174
172
  );
175
- tn.displayName = Xr;
176
- var Zr = "DismissableLayerBranch", nn = v.forwardRef((e, t) => {
177
- const n = v.useContext(en), r = v.useRef(null), o = pe(t, r);
178
- return v.useEffect(() => {
173
+ en.displayName = Gr;
174
+ var Lr = "DismissableLayerBranch", tn = b.forwardRef((e, t) => {
175
+ const n = b.useContext(Jt), r = b.useRef(null), o = pe(t, r);
176
+ return b.useEffect(() => {
179
177
  const a = r.current;
180
178
  if (a)
181
179
  return n.branches.add(a), () => {
182
180
  n.branches.delete(a);
183
181
  };
184
- }, [n.branches]), /* @__PURE__ */ C(ue.div, { ...e, ref: o });
182
+ }, [n.branches]), /* @__PURE__ */ S(ue.div, { ...e, ref: o });
185
183
  });
186
- nn.displayName = Zr;
187
- function Jr(e, t = globalThis == null ? void 0 : globalThis.document) {
188
- const n = ke(e), r = v.useRef(!1), o = v.useRef(() => {
184
+ tn.displayName = Lr;
185
+ function Qr(e, t = globalThis == null ? void 0 : globalThis.document) {
186
+ const n = ke(e), r = b.useRef(!1), o = b.useRef(() => {
189
187
  });
190
- return v.useEffect(() => {
188
+ return b.useEffect(() => {
191
189
  const a = (i) => {
192
190
  if (i.target && !r.current) {
193
191
  let c = function() {
194
- rn(
195
- Lr,
192
+ nn(
193
+ Kr,
196
194
  n,
197
195
  u,
198
196
  { discrete: !0 }
@@ -214,11 +212,11 @@ function Jr(e, t = globalThis == null ? void 0 : globalThis.document) {
214
212
  onPointerDownCapture: () => r.current = !0
215
213
  };
216
214
  }
217
- function eo(e, t = globalThis == null ? void 0 : globalThis.document) {
218
- const n = ke(e), r = v.useRef(!1);
219
- return v.useEffect(() => {
215
+ function Zr(e, t = globalThis == null ? void 0 : globalThis.document) {
216
+ const n = ke(e), r = b.useRef(!1);
217
+ return b.useEffect(() => {
220
218
  const o = (a) => {
221
- a.target && !r.current && rn(Qr, n, { originalEvent: a }, {
219
+ a.target && !r.current && nn(Xr, n, { originalEvent: a }, {
222
220
  discrete: !1
223
221
  });
224
222
  };
@@ -228,32 +226,32 @@ function eo(e, t = globalThis == null ? void 0 : globalThis.document) {
228
226
  onBlurCapture: () => r.current = !1
229
227
  };
230
228
  }
231
- function _t() {
229
+ function Pt() {
232
230
  const e = new CustomEvent(ut);
233
231
  document.dispatchEvent(e);
234
232
  }
235
- function rn(e, t, n, { discrete: r }) {
233
+ function nn(e, t, n, { discrete: r }) {
236
234
  const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
237
- t && o.addEventListener(e, t, { once: !0 }), r ? Jt(o, a) : o.dispatchEvent(a);
235
+ t && o.addEventListener(e, t, { once: !0 }), r ? Zt(o, a) : o.dispatchEvent(a);
238
236
  }
239
- var to = tn, no = nn, ro = "Portal", on = v.forwardRef((e, t) => {
237
+ var Jr = en, eo = tn, to = "Portal", rn = b.forwardRef((e, t) => {
240
238
  var i;
241
- const { container: n, ...r } = e, [o, a] = v.useState(!1);
242
- je(() => a(!0), []);
239
+ const { container: n, ...r } = e, [o, a] = b.useState(!1);
240
+ $e(() => a(!0), []);
243
241
  const s = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
244
- return s ? Yr.createPortal(/* @__PURE__ */ C(ue.div, { ...r, ref: t }), s) : null;
242
+ return s ? Fr.createPortal(/* @__PURE__ */ S(ue.div, { ...r, ref: t }), s) : null;
245
243
  });
246
- on.displayName = ro;
247
- function oo(e, t) {
248
- return v.useReducer((n, r) => t[n][r] ?? n, e);
244
+ rn.displayName = to;
245
+ function no(e, t) {
246
+ return b.useReducer((n, r) => t[n][r] ?? n, e);
249
247
  }
250
- var an = (e) => {
251
- const { present: t, children: n } = e, r = ao(t), o = typeof n == "function" ? n({ present: r.isPresent }) : v.Children.only(n), a = pe(r.ref, so(o));
252
- return typeof n == "function" || r.isPresent ? v.cloneElement(o, { ref: a }) : null;
248
+ var on = (e) => {
249
+ const { present: t, children: n } = e, r = ro(t), o = typeof n == "function" ? n({ present: r.isPresent }) : b.Children.only(n), a = pe(r.ref, oo(o));
250
+ return typeof n == "function" || r.isPresent ? b.cloneElement(o, { ref: a }) : null;
253
251
  };
254
- an.displayName = "Presence";
255
- function ao(e) {
256
- const [t, n] = v.useState(), r = v.useRef(null), o = v.useRef(e), a = v.useRef("none"), s = e ? "mounted" : "unmounted", [i, c] = oo(s, {
252
+ on.displayName = "Presence";
253
+ function ro(e) {
254
+ const [t, n] = b.useState(), r = b.useRef(null), o = b.useRef(e), a = b.useRef("none"), s = e ? "mounted" : "unmounted", [i, c] = no(s, {
257
255
  mounted: {
258
256
  UNMOUNT: "unmounted",
259
257
  ANIMATION_OUT: "unmountSuspended"
@@ -266,21 +264,21 @@ function ao(e) {
266
264
  MOUNT: "mounted"
267
265
  }
268
266
  });
269
- return v.useEffect(() => {
267
+ return b.useEffect(() => {
270
268
  const u = Be(r.current);
271
269
  a.current = i === "mounted" ? u : "none";
272
- }, [i]), je(() => {
270
+ }, [i]), $e(() => {
273
271
  const u = r.current, d = o.current;
274
272
  if (d !== e) {
275
273
  const g = a.current, w = Be(u);
276
274
  e ? c("MOUNT") : w === "none" || (u == null ? void 0 : u.display) === "none" ? c("UNMOUNT") : c(d && g !== w ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
277
275
  }
278
- }, [e, c]), je(() => {
276
+ }, [e, c]), $e(() => {
279
277
  if (t) {
280
278
  let u;
281
279
  const d = t.ownerDocument.defaultView ?? window, f = (w) => {
282
- const b = Be(r.current).includes(CSS.escape(w.animationName));
283
- if (w.target === t && b && (c("ANIMATION_END"), !o.current)) {
280
+ const v = Be(r.current).includes(CSS.escape(w.animationName));
281
+ if (w.target === t && v && (c("ANIMATION_END"), !o.current)) {
284
282
  const m = t.style.animationFillMode;
285
283
  t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
286
284
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = m);
@@ -296,7 +294,7 @@ function ao(e) {
296
294
  c("ANIMATION_END");
297
295
  }, [t, c]), {
298
296
  isPresent: ["mounted", "unmountSuspended"].includes(i),
299
- ref: v.useCallback((u) => {
297
+ ref: b.useCallback((u) => {
300
298
  r.current = u ? getComputedStyle(u) : null, n(u);
301
299
  }, [])
302
300
  };
@@ -304,12 +302,12 @@ function ao(e) {
304
302
  function Be(e) {
305
303
  return (e == null ? void 0 : e.animationName) || "none";
306
304
  }
307
- function so(e) {
305
+ function oo(e) {
308
306
  var r, o;
309
307
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
310
308
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
311
309
  }
312
- var io = Object.freeze({
310
+ var ao = Object.freeze({
313
311
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
314
312
  position: "absolute",
315
313
  border: 0,
@@ -321,18 +319,18 @@ var io = Object.freeze({
321
319
  clip: "rect(0, 0, 0, 0)",
322
320
  whiteSpace: "nowrap",
323
321
  wordWrap: "normal"
324
- }), co = "VisuallyHidden", yt = v.forwardRef(
325
- (e, t) => /* @__PURE__ */ C(
322
+ }), so = "VisuallyHidden", mt = b.forwardRef(
323
+ (e, t) => /* @__PURE__ */ S(
326
324
  ue.span,
327
325
  {
328
326
  ...e,
329
327
  ref: t,
330
- style: { ...io, ...e.style }
328
+ style: { ...ao, ...e.style }
331
329
  }
332
330
  )
333
331
  );
334
- yt.displayName = co;
335
- var gt = "ToastProvider", [wt, uo, lo] = Gr("Toast"), [sn] = Qt("Toast", [lo]), [fo, ze] = sn(gt), cn = (e) => {
332
+ mt.displayName = so;
333
+ var yt = "ToastProvider", [gt, io, co] = zr("Toast"), [an] = Lt("Toast", [co]), [uo, ze] = an(yt), sn = (e) => {
336
334
  const {
337
335
  __scopeToast: t,
338
336
  label: n = "Notification",
@@ -340,11 +338,11 @@ var gt = "ToastProvider", [wt, uo, lo] = Gr("Toast"), [sn] = Qt("Toast", [lo]),
340
338
  swipeDirection: o = "right",
341
339
  swipeThreshold: a = 50,
342
340
  children: s
343
- } = e, [i, c] = v.useState(null), [u, d] = v.useState(0), f = v.useRef(!1), g = v.useRef(!1);
341
+ } = e, [i, c] = b.useState(null), [u, d] = b.useState(0), f = b.useRef(!1), g = b.useRef(!1);
344
342
  return n.trim() || console.error(
345
- `Invalid prop \`label\` supplied to \`${gt}\`. Expected non-empty \`string\`.`
346
- ), /* @__PURE__ */ C(wt.Provider, { scope: t, children: /* @__PURE__ */ C(
347
- fo,
343
+ `Invalid prop \`label\` supplied to \`${yt}\`. Expected non-empty \`string\`.`
344
+ ), /* @__PURE__ */ S(gt.Provider, { scope: t, children: /* @__PURE__ */ S(
345
+ uo,
348
346
  {
349
347
  scope: t,
350
348
  label: n,
@@ -354,30 +352,30 @@ var gt = "ToastProvider", [wt, uo, lo] = Gr("Toast"), [sn] = Qt("Toast", [lo]),
354
352
  toastCount: u,
355
353
  viewport: i,
356
354
  onViewportChange: c,
357
- onToastAdd: v.useCallback(() => d((w) => w + 1), []),
358
- onToastRemove: v.useCallback(() => d((w) => w - 1), []),
355
+ onToastAdd: b.useCallback(() => d((w) => w + 1), []),
356
+ onToastRemove: b.useCallback(() => d((w) => w - 1), []),
359
357
  isFocusedToastEscapeKeyDownRef: f,
360
358
  isClosePausedRef: g,
361
359
  children: s
362
360
  }
363
361
  ) });
364
362
  };
365
- cn.displayName = gt;
366
- var un = "ToastViewport", ho = ["F8"], dt = "toast.viewportPause", lt = "toast.viewportResume", dn = v.forwardRef(
363
+ sn.displayName = yt;
364
+ var cn = "ToastViewport", lo = ["F8"], dt = "toast.viewportPause", lt = "toast.viewportResume", un = b.forwardRef(
367
365
  (e, t) => {
368
366
  const {
369
367
  __scopeToast: n,
370
- hotkey: r = ho,
368
+ hotkey: r = lo,
371
369
  label: o = "Notifications ({hotkey})",
372
370
  ...a
373
- } = e, s = ze(un, n), i = uo(n), c = v.useRef(null), u = v.useRef(null), d = v.useRef(null), f = v.useRef(null), g = pe(t, f, s.onViewportChange), w = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), N = s.toastCount > 0;
374
- v.useEffect(() => {
371
+ } = e, s = ze(cn, n), i = io(n), c = b.useRef(null), u = b.useRef(null), d = b.useRef(null), f = b.useRef(null), g = pe(t, f, s.onViewportChange), w = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), N = s.toastCount > 0;
372
+ b.useEffect(() => {
375
373
  const m = (T) => {
376
374
  var h;
377
375
  r.length !== 0 && r.every((k) => T[k] || T.code === k) && ((h = f.current) == null || h.focus());
378
376
  };
379
377
  return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
380
- }, [r]), v.useEffect(() => {
378
+ }, [r]), b.useEffect(() => {
381
379
  const m = c.current, T = f.current;
382
380
  if (N && m && T) {
383
381
  const y = () => {
@@ -400,17 +398,17 @@ var un = "ToastViewport", ho = ["F8"], dt = "toast.viewportPause", lt = "toast.v
400
398
  };
401
399
  }
402
400
  }, [N, s.isClosePausedRef]);
403
- const b = v.useCallback(
401
+ const v = b.useCallback(
404
402
  ({ tabbingDirection: m }) => {
405
403
  const y = i().map((h) => {
406
- const k = h.ref.current, M = [k, ...No(k)];
404
+ const k = h.ref.current, M = [k, ...ko(k)];
407
405
  return m === "forwards" ? M : M.reverse();
408
406
  });
409
407
  return (m === "forwards" ? y.reverse() : y).flat();
410
408
  },
411
409
  [i]
412
410
  );
413
- return v.useEffect(() => {
411
+ return b.useEffect(() => {
414
412
  const m = f.current;
415
413
  if (m) {
416
414
  const T = (y) => {
@@ -422,14 +420,14 @@ var un = "ToastViewport", ho = ["F8"], dt = "toast.viewportPause", lt = "toast.v
422
420
  (M = u.current) == null || M.focus();
423
421
  return;
424
422
  }
425
- const V = b({ tabbingDirection: P ? "backwards" : "forwards" }), U = V.findIndex((S) => S === W);
426
- et(V.slice(U + 1)) ? y.preventDefault() : P ? (l = u.current) == null || l.focus() : (O = d.current) == null || O.focus();
423
+ const $ = v({ tabbingDirection: P ? "backwards" : "forwards" }), z = $.findIndex((C) => C === W);
424
+ et($.slice(z + 1)) ? y.preventDefault() : P ? (l = u.current) == null || l.focus() : (O = d.current) == null || O.focus();
427
425
  }
428
426
  };
429
427
  return m.addEventListener("keydown", T), () => m.removeEventListener("keydown", T);
430
428
  }
431
- }, [i, b]), /* @__PURE__ */ ht(
432
- no,
429
+ }, [i, v]), /* @__PURE__ */ ht(
430
+ eo,
433
431
  {
434
432
  ref: c,
435
433
  role: "region",
@@ -437,25 +435,25 @@ var un = "ToastViewport", ho = ["F8"], dt = "toast.viewportPause", lt = "toast.v
437
435
  tabIndex: -1,
438
436
  style: { pointerEvents: N ? void 0 : "none" },
439
437
  children: [
440
- N && /* @__PURE__ */ C(
438
+ N && /* @__PURE__ */ S(
441
439
  ft,
442
440
  {
443
441
  ref: u,
444
442
  onFocusFromOutsideViewport: () => {
445
- const m = b({
443
+ const m = v({
446
444
  tabbingDirection: "forwards"
447
445
  });
448
446
  et(m);
449
447
  }
450
448
  }
451
449
  ),
452
- /* @__PURE__ */ C(wt.Slot, { scope: n, children: /* @__PURE__ */ C(ue.ol, { tabIndex: -1, ...a, ref: g }) }),
453
- N && /* @__PURE__ */ C(
450
+ /* @__PURE__ */ S(gt.Slot, { scope: n, children: /* @__PURE__ */ S(ue.ol, { tabIndex: -1, ...a, ref: g }) }),
451
+ N && /* @__PURE__ */ S(
454
452
  ft,
455
453
  {
456
454
  ref: d,
457
455
  onFocusFromOutsideViewport: () => {
458
- const m = b({
456
+ const m = v({
459
457
  tabbingDirection: "backwards"
460
458
  });
461
459
  et(m);
@@ -467,12 +465,12 @@ var un = "ToastViewport", ho = ["F8"], dt = "toast.viewportPause", lt = "toast.v
467
465
  );
468
466
  }
469
467
  );
470
- dn.displayName = un;
471
- var ln = "ToastFocusProxy", ft = v.forwardRef(
468
+ un.displayName = cn;
469
+ var dn = "ToastFocusProxy", ft = b.forwardRef(
472
470
  (e, t) => {
473
- const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = ze(ln, n);
474
- return /* @__PURE__ */ C(
475
- yt,
471
+ const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = ze(dn, n);
472
+ return /* @__PURE__ */ S(
473
+ mt,
476
474
  {
477
475
  tabIndex: 0,
478
476
  ...o,
@@ -487,17 +485,17 @@ var ln = "ToastFocusProxy", ft = v.forwardRef(
487
485
  );
488
486
  }
489
487
  );
490
- ft.displayName = ln;
491
- var _e = "Toast", mo = "toast.swipeStart", yo = "toast.swipeMove", go = "toast.swipeCancel", wo = "toast.swipeEnd", fn = v.forwardRef(
488
+ ft.displayName = dn;
489
+ var _e = "Toast", fo = "toast.swipeStart", ho = "toast.swipeMove", mo = "toast.swipeCancel", yo = "toast.swipeEnd", ln = b.forwardRef(
492
490
  (e, t) => {
493
- const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...s } = e, [i, c] = Fr({
491
+ const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...s } = e, [i, c] = _r({
494
492
  prop: r,
495
493
  defaultProp: o ?? !0,
496
494
  onChange: a,
497
495
  caller: _e
498
496
  });
499
- return /* @__PURE__ */ C(an, { present: n || i, children: /* @__PURE__ */ C(
500
- po,
497
+ return /* @__PURE__ */ S(on, { present: n || i, children: /* @__PURE__ */ S(
498
+ vo,
501
499
  {
502
500
  open: i,
503
501
  ...s,
@@ -523,11 +521,11 @@ var _e = "Toast", mo = "toast.swipeStart", yo = "toast.swipeMove", go = "toast.s
523
521
  ) });
524
522
  }
525
523
  );
526
- fn.displayName = _e;
527
- var [vo, bo] = sn(_e, {
524
+ ln.displayName = _e;
525
+ var [go, wo] = an(_e, {
528
526
  onClose() {
529
527
  }
530
- }), po = v.forwardRef(
528
+ }), vo = b.forwardRef(
531
529
  (e, t) => {
532
530
  const {
533
531
  __scopeToast: n,
@@ -543,88 +541,88 @@ var [vo, bo] = sn(_e, {
543
541
  onSwipeCancel: g,
544
542
  onSwipeEnd: w,
545
543
  ...N
546
- } = e, b = ze(_e, n), [m, T] = v.useState(null), y = pe(t, (S) => T(S)), h = v.useRef(null), k = v.useRef(null), M = o || b.duration, l = v.useRef(0), O = v.useRef(M), W = v.useRef(0), { onToastAdd: P, onToastRemove: F } = b, B = ke(() => {
547
- var z;
548
- (m == null ? void 0 : m.contains(document.activeElement)) && ((z = b.viewport) == null || z.focus()), s();
549
- }), V = v.useCallback(
550
- (S) => {
551
- !S || S === 1 / 0 || (window.clearTimeout(W.current), l.current = (/* @__PURE__ */ new Date()).getTime(), W.current = window.setTimeout(B, S));
544
+ } = e, v = ze(_e, n), [m, T] = b.useState(null), y = pe(t, (C) => T(C)), h = b.useRef(null), k = b.useRef(null), M = o || v.duration, l = b.useRef(0), O = b.useRef(M), W = b.useRef(0), { onToastAdd: P, onToastRemove: F } = v, B = ke(() => {
545
+ var V;
546
+ (m == null ? void 0 : m.contains(document.activeElement)) && ((V = v.viewport) == null || V.focus()), s();
547
+ }), $ = b.useCallback(
548
+ (C) => {
549
+ !C || C === 1 / 0 || (window.clearTimeout(W.current), l.current = (/* @__PURE__ */ new Date()).getTime(), W.current = window.setTimeout(B, C));
552
550
  },
553
551
  [B]
554
552
  );
555
- v.useEffect(() => {
556
- const S = b.viewport;
557
- if (S) {
558
- const z = () => {
559
- V(O.current), u == null || u();
553
+ b.useEffect(() => {
554
+ const C = v.viewport;
555
+ if (C) {
556
+ const V = () => {
557
+ $(O.current), u == null || u();
560
558
  }, X = () => {
561
559
  const le = (/* @__PURE__ */ new Date()).getTime() - l.current;
562
560
  O.current = O.current - le, window.clearTimeout(W.current), c == null || c();
563
561
  };
564
- return S.addEventListener(dt, X), S.addEventListener(lt, z), () => {
565
- S.removeEventListener(dt, X), S.removeEventListener(lt, z);
562
+ return C.addEventListener(dt, X), C.addEventListener(lt, V), () => {
563
+ C.removeEventListener(dt, X), C.removeEventListener(lt, V);
566
564
  };
567
565
  }
568
- }, [b.viewport, M, c, u, V]), v.useEffect(() => {
569
- a && !b.isClosePausedRef.current && V(M);
570
- }, [a, M, b.isClosePausedRef, V]), v.useEffect(() => (P(), () => F()), [P, F]);
571
- const U = v.useMemo(() => m ? bn(m) : null, [m]);
572
- return b.viewport ? /* @__PURE__ */ ht(Xt, { children: [
573
- U && /* @__PURE__ */ C(
574
- Mo,
566
+ }, [v.viewport, M, c, u, $]), b.useEffect(() => {
567
+ a && !v.isClosePausedRef.current && $(M);
568
+ }, [a, M, v.isClosePausedRef, $]), b.useEffect(() => (P(), () => F()), [P, F]);
569
+ const z = b.useMemo(() => m ? vn(m) : null, [m]);
570
+ return v.viewport ? /* @__PURE__ */ ht(Kt, { children: [
571
+ z && /* @__PURE__ */ S(
572
+ bo,
575
573
  {
576
574
  __scopeToast: n,
577
575
  role: "status",
578
576
  "aria-live": r === "foreground" ? "assertive" : "polite",
579
- children: U
577
+ children: z
580
578
  }
581
579
  ),
582
- /* @__PURE__ */ C(vo, { scope: n, onClose: B, children: Zt.createPortal(
583
- /* @__PURE__ */ C(wt.ItemSlot, { scope: n, children: /* @__PURE__ */ C(
584
- to,
580
+ /* @__PURE__ */ S(go, { scope: n, onClose: B, children: Qt.createPortal(
581
+ /* @__PURE__ */ S(gt.ItemSlot, { scope: n, children: /* @__PURE__ */ S(
582
+ Jr,
585
583
  {
586
584
  asChild: !0,
587
585
  onEscapeKeyDown: Z(i, () => {
588
- b.isFocusedToastEscapeKeyDownRef.current || B(), b.isFocusedToastEscapeKeyDownRef.current = !1;
586
+ v.isFocusedToastEscapeKeyDownRef.current || B(), v.isFocusedToastEscapeKeyDownRef.current = !1;
589
587
  }),
590
- children: /* @__PURE__ */ C(
588
+ children: /* @__PURE__ */ S(
591
589
  ue.li,
592
590
  {
593
591
  tabIndex: 0,
594
592
  "data-state": a ? "open" : "closed",
595
- "data-swipe-direction": b.swipeDirection,
593
+ "data-swipe-direction": v.swipeDirection,
596
594
  ...N,
597
595
  ref: y,
598
596
  style: { userSelect: "none", touchAction: "none", ...e.style },
599
- onKeyDown: Z(e.onKeyDown, (S) => {
600
- S.key === "Escape" && (i == null || i(S.nativeEvent), S.nativeEvent.defaultPrevented || (b.isFocusedToastEscapeKeyDownRef.current = !0, B()));
597
+ onKeyDown: Z(e.onKeyDown, (C) => {
598
+ C.key === "Escape" && (i == null || i(C.nativeEvent), C.nativeEvent.defaultPrevented || (v.isFocusedToastEscapeKeyDownRef.current = !0, B()));
601
599
  }),
602
- onPointerDown: Z(e.onPointerDown, (S) => {
603
- S.button === 0 && (h.current = { x: S.clientX, y: S.clientY });
600
+ onPointerDown: Z(e.onPointerDown, (C) => {
601
+ C.button === 0 && (h.current = { x: C.clientX, y: C.clientY });
604
602
  }),
605
- onPointerMove: Z(e.onPointerMove, (S) => {
603
+ onPointerMove: Z(e.onPointerMove, (C) => {
606
604
  if (!h.current) return;
607
- const z = S.clientX - h.current.x, X = S.clientY - h.current.y, le = !!k.current, fe = ["left", "right"].includes(b.swipeDirection), G = ["left", "up"].includes(b.swipeDirection) ? Math.min : Math.max, L = fe ? G(0, z) : 0, ne = fe ? 0 : G(0, X), ve = S.pointerType === "touch" ? 10 : 2, ae = { x: L, y: ne }, ge = { originalEvent: S, delta: ae };
608
- le ? (k.current = ae, He(yo, f, ge, {
605
+ const V = C.clientX - h.current.x, X = C.clientY - h.current.y, le = !!k.current, fe = ["left", "right"].includes(v.swipeDirection), U = ["left", "up"].includes(v.swipeDirection) ? Math.min : Math.max, L = fe ? U(0, V) : 0, ne = fe ? 0 : U(0, X), ve = C.pointerType === "touch" ? 10 : 2, ae = { x: L, y: ne }, ge = { originalEvent: C, delta: ae };
606
+ le ? (k.current = ae, He(ho, f, ge, {
609
607
  discrete: !1
610
- })) : Ft(ae, b.swipeDirection, ve) ? (k.current = ae, He(mo, d, ge, {
608
+ })) : _t(ae, v.swipeDirection, ve) ? (k.current = ae, He(fo, d, ge, {
611
609
  discrete: !1
612
- }), S.target.setPointerCapture(S.pointerId)) : (Math.abs(z) > ve || Math.abs(X) > ve) && (h.current = null);
610
+ }), C.target.setPointerCapture(C.pointerId)) : (Math.abs(V) > ve || Math.abs(X) > ve) && (h.current = null);
613
611
  }),
614
- onPointerUp: Z(e.onPointerUp, (S) => {
615
- const z = k.current, X = S.target;
616
- if (X.hasPointerCapture(S.pointerId) && X.releasePointerCapture(S.pointerId), k.current = null, h.current = null, z) {
617
- const le = S.currentTarget, fe = { originalEvent: S, delta: z };
618
- Ft(z, b.swipeDirection, b.swipeThreshold) ? He(wo, w, fe, {
612
+ onPointerUp: Z(e.onPointerUp, (C) => {
613
+ const V = k.current, X = C.target;
614
+ if (X.hasPointerCapture(C.pointerId) && X.releasePointerCapture(C.pointerId), k.current = null, h.current = null, V) {
615
+ const le = C.currentTarget, fe = { originalEvent: C, delta: V };
616
+ _t(V, v.swipeDirection, v.swipeThreshold) ? He(yo, w, fe, {
619
617
  discrete: !0
620
618
  }) : He(
621
- go,
619
+ mo,
622
620
  g,
623
621
  fe,
624
622
  {
625
623
  discrete: !0
626
624
  }
627
- ), le.addEventListener("click", (G) => G.preventDefault(), {
625
+ ), le.addEventListener("click", (U) => U.preventDefault(), {
628
626
  once: !0
629
627
  });
630
628
  }
@@ -633,47 +631,47 @@ var [vo, bo] = sn(_e, {
633
631
  )
634
632
  }
635
633
  ) }),
636
- b.viewport
634
+ v.viewport
637
635
  ) })
638
636
  ] }) : null;
639
637
  }
640
- ), Mo = (e) => {
641
- const { __scopeToast: t, children: n, ...r } = e, o = ze(_e, t), [a, s] = v.useState(!1), [i, c] = v.useState(!1);
642
- return ko(() => s(!0)), v.useEffect(() => {
638
+ ), bo = (e) => {
639
+ const { __scopeToast: t, children: n, ...r } = e, o = ze(_e, t), [a, s] = b.useState(!1), [i, c] = b.useState(!1);
640
+ return Do(() => s(!0)), b.useEffect(() => {
643
641
  const u = window.setTimeout(() => c(!0), 1e3);
644
642
  return () => window.clearTimeout(u);
645
- }, []), i ? null : /* @__PURE__ */ C(on, { asChild: !0, children: /* @__PURE__ */ C(yt, { ...r, children: a && /* @__PURE__ */ ht(Xt, { children: [
643
+ }, []), i ? null : /* @__PURE__ */ S(rn, { asChild: !0, children: /* @__PURE__ */ S(mt, { ...r, children: a && /* @__PURE__ */ ht(Kt, { children: [
646
644
  o.label,
647
645
  " ",
648
646
  n
649
647
  ] }) }) });
650
- }, Do = "ToastTitle", hn = v.forwardRef(
648
+ }, po = "ToastTitle", fn = b.forwardRef(
651
649
  (e, t) => {
652
650
  const { __scopeToast: n, ...r } = e;
653
- return /* @__PURE__ */ C(ue.div, { ...r, ref: t });
651
+ return /* @__PURE__ */ S(ue.div, { ...r, ref: t });
654
652
  }
655
653
  );
656
- hn.displayName = Do;
657
- var Oo = "ToastDescription", mn = v.forwardRef(
654
+ fn.displayName = po;
655
+ var Mo = "ToastDescription", hn = b.forwardRef(
658
656
  (e, t) => {
659
657
  const { __scopeToast: n, ...r } = e;
660
- return /* @__PURE__ */ C(ue.div, { ...r, ref: t });
658
+ return /* @__PURE__ */ S(ue.div, { ...r, ref: t });
661
659
  }
662
660
  );
663
- mn.displayName = Oo;
664
- var yn = "ToastAction", gn = v.forwardRef(
661
+ hn.displayName = Mo;
662
+ var mn = "ToastAction", yn = b.forwardRef(
665
663
  (e, t) => {
666
664
  const { altText: n, ...r } = e;
667
- return n.trim() ? /* @__PURE__ */ C(vn, { altText: n, asChild: !0, children: /* @__PURE__ */ C(vt, { ...r, ref: t }) }) : (console.error(
668
- `Invalid prop \`altText\` supplied to \`${yn}\`. Expected non-empty \`string\`.`
665
+ return n.trim() ? /* @__PURE__ */ S(wn, { altText: n, asChild: !0, children: /* @__PURE__ */ S(wt, { ...r, ref: t }) }) : (console.error(
666
+ `Invalid prop \`altText\` supplied to \`${mn}\`. Expected non-empty \`string\`.`
669
667
  ), null);
670
668
  }
671
669
  );
672
- gn.displayName = yn;
673
- var wn = "ToastClose", vt = v.forwardRef(
670
+ yn.displayName = mn;
671
+ var gn = "ToastClose", wt = b.forwardRef(
674
672
  (e, t) => {
675
- const { __scopeToast: n, ...r } = e, o = bo(wn, n);
676
- return /* @__PURE__ */ C(vn, { asChild: !0, children: /* @__PURE__ */ C(
673
+ const { __scopeToast: n, ...r } = e, o = wo(gn, n);
674
+ return /* @__PURE__ */ S(wn, { asChild: !0, children: /* @__PURE__ */ S(
677
675
  ue.button,
678
676
  {
679
677
  type: "button",
@@ -684,10 +682,10 @@ var wn = "ToastClose", vt = v.forwardRef(
684
682
  ) });
685
683
  }
686
684
  );
687
- vt.displayName = wn;
688
- var vn = v.forwardRef((e, t) => {
685
+ wt.displayName = gn;
686
+ var wn = b.forwardRef((e, t) => {
689
687
  const { __scopeToast: n, altText: r, ...o } = e;
690
- return /* @__PURE__ */ C(
688
+ return /* @__PURE__ */ S(
691
689
  ue.div,
692
690
  {
693
691
  "data-radix-toast-announce-exclude": "",
@@ -697,42 +695,42 @@ var vn = v.forwardRef((e, t) => {
697
695
  }
698
696
  );
699
697
  });
700
- function bn(e) {
698
+ function vn(e) {
701
699
  const t = [];
702
700
  return Array.from(e.childNodes).forEach((r) => {
703
- if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), To(r)) {
701
+ if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), Oo(r)) {
704
702
  const o = r.ariaHidden || r.hidden || r.style.display === "none", a = r.dataset.radixToastAnnounceExclude === "";
705
703
  if (!o)
706
704
  if (a) {
707
705
  const s = r.dataset.radixToastAnnounceAlt;
708
706
  s && t.push(s);
709
707
  } else
710
- t.push(...bn(r));
708
+ t.push(...vn(r));
711
709
  }
712
710
  }), t;
713
711
  }
714
712
  function He(e, t, n, { discrete: r }) {
715
713
  const o = n.originalEvent.currentTarget, a = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
716
- t && o.addEventListener(e, t, { once: !0 }), r ? Jt(o, a) : o.dispatchEvent(a);
714
+ t && o.addEventListener(e, t, { once: !0 }), r ? Zt(o, a) : o.dispatchEvent(a);
717
715
  }
718
- var Ft = (e, t, n = 0) => {
716
+ var _t = (e, t, n = 0) => {
719
717
  const r = Math.abs(e.x), o = Math.abs(e.y), a = r > o;
720
718
  return t === "left" || t === "right" ? a && r > n : !a && o > n;
721
719
  };
722
- function ko(e = () => {
720
+ function Do(e = () => {
723
721
  }) {
724
722
  const t = ke(e);
725
- je(() => {
723
+ $e(() => {
726
724
  let n = 0, r = 0;
727
725
  return n = window.requestAnimationFrame(() => r = window.requestAnimationFrame(t)), () => {
728
726
  window.cancelAnimationFrame(n), window.cancelAnimationFrame(r);
729
727
  };
730
728
  }, [t]);
731
729
  }
732
- function To(e) {
730
+ function Oo(e) {
733
731
  return e.nodeType === e.ELEMENT_NODE;
734
732
  }
735
- function No(e) {
733
+ function ko(e) {
736
734
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
737
735
  acceptNode: (r) => {
738
736
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -746,43 +744,20 @@ function et(e) {
746
744
  const t = document.activeElement;
747
745
  return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
748
746
  }
749
- var Co = cn, pn = dn, Mn = fn, Dn = hn, On = mn, kn = gn, Tn = vt;
750
- /**
751
- * @license lucide-react v1.16.0 - ISC
752
- *
753
- * This source code is licensed under the ISC license.
754
- * See the LICENSE file in the root directory of this source tree.
755
- */
756
- const So = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Eo = mt("chevron-left", So);
757
- /**
758
- * @license lucide-react v1.16.0 - ISC
759
- *
760
- * This source code is licensed under the ISC license.
761
- * See the LICENSE file in the root directory of this source tree.
762
- */
763
- const xo = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Wo = mt("chevron-right", xo);
764
- /**
765
- * @license lucide-react v1.16.0 - ISC
766
- *
767
- * This source code is licensed under the ISC license.
768
- * See the LICENSE file in the root directory of this source tree.
769
- */
770
- const Po = [
771
- ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
772
- ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
773
- ], _o = mt("x", Po), Hi = Co, Fo = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
774
- pn,
747
+ var To = sn, bn = un, pn = ln, Mn = fn, Dn = hn, On = yn, kn = wt;
748
+ const _i = To, No = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ S(
749
+ bn,
775
750
  {
776
751
  ref: n,
777
- className: $(
752
+ className: K(
778
753
  "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
779
754
  e
780
755
  ),
781
756
  ...t
782
757
  }
783
758
  ));
784
- Fo.displayName = pn.displayName;
785
- const Yo = Lt(
759
+ No.displayName = bn.displayName;
760
+ const Co = Xt(
786
761
  "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
787
762
  {
788
763
  variants: {
@@ -795,60 +770,60 @@ const Yo = Lt(
795
770
  variant: "default"
796
771
  }
797
772
  }
798
- ), Io = v.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ C(
799
- Mn,
773
+ ), So = b.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ S(
774
+ pn,
800
775
  {
801
776
  ref: r,
802
- className: $(Yo({ variant: t }), e),
777
+ className: K(Co({ variant: t }), e),
803
778
  ...n
804
779
  }
805
780
  ));
806
- Io.displayName = Mn.displayName;
807
- const Ro = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
808
- kn,
781
+ So.displayName = pn.displayName;
782
+ const Eo = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ S(
783
+ On,
809
784
  {
810
785
  ref: n,
811
- className: $(
786
+ className: K(
812
787
  "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",
813
788
  e
814
789
  ),
815
790
  ...t
816
791
  }
817
792
  ));
818
- Ro.displayName = kn.displayName;
819
- const Ao = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
820
- Tn,
793
+ Eo.displayName = On.displayName;
794
+ const xo = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ S(
795
+ kn,
821
796
  {
822
797
  ref: n,
823
- className: $(
798
+ className: K(
824
799
  "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
825
800
  e
826
801
  ),
827
802
  "toast-close": "",
828
803
  ...t,
829
- children: /* @__PURE__ */ C(_o, { className: "size-4" })
804
+ children: /* @__PURE__ */ S($r, { className: "size-4" })
830
805
  }
831
806
  ));
832
- Ao.displayName = Tn.displayName;
833
- const Bo = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
834
- Dn,
807
+ xo.displayName = kn.displayName;
808
+ const Wo = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ S(
809
+ Mn,
835
810
  {
836
811
  ref: n,
837
- className: $("text-sm font-semibold", e),
812
+ className: K("text-sm font-semibold", e),
838
813
  ...t
839
814
  }
840
815
  ));
841
- Bo.displayName = Dn.displayName;
842
- const Ho = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
843
- On,
816
+ Wo.displayName = Mn.displayName;
817
+ const Po = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ S(
818
+ Dn,
844
819
  {
845
820
  ref: n,
846
- className: $("text-sm opacity-90", e),
821
+ className: K("text-sm opacity-90", e),
847
822
  ...t
848
823
  }
849
824
  ));
850
- Ho.displayName = On.displayName;
851
- function qo(e, t, n = "long") {
825
+ Po.displayName = Dn.displayName;
826
+ function _o(e, t, n = "long") {
852
827
  return new Intl.DateTimeFormat("en-US", {
853
828
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
854
829
  hour: "numeric",
@@ -863,22 +838,22 @@ function he(e, t) {
863
838
  timeZone: e,
864
839
  timeZoneName: "longOffset"
865
840
  }).format))(t).split("GMT")[1];
866
- return r in Ee ? Ee[r] : Yt(r, r.split(":"));
841
+ return r in Ee ? Ee[r] : Ft(r, r.split(":"));
867
842
  } catch {
868
843
  if (e in Ee) return Ee[e];
869
- const n = e == null ? void 0 : e.match($o);
870
- return n ? Yt(e, n.slice(1)) : NaN;
844
+ const n = e == null ? void 0 : e.match(Fo);
845
+ return n ? Ft(e, n.slice(1)) : NaN;
871
846
  }
872
847
  }
873
- const $o = /([+-]\d\d):?(\d\d)?/;
874
- function Yt(e, t) {
848
+ const Fo = /([+-]\d\d):?(\d\d)?/;
849
+ function Ft(e, t) {
875
850
  const n = +(t[0] || 0), r = +(t[1] || 0), o = +(t[2] || 0) / 60;
876
851
  return Ee[e] = n * 60 + r > 0 ? n * 60 + r + o : n * 60 - r - o;
877
852
  }
878
853
  class ce extends Date {
879
854
  //#region static
880
855
  constructor(...t) {
881
- super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(he(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), Nn(this, t)) : this.setTime(Date.now());
856
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(he(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), Tn(this, t)) : this.setTime(Date.now());
882
857
  }
883
858
  static tz(t, ...n) {
884
859
  return n.length ? new ce(...n, t) : new ce(Date.now(), t);
@@ -904,14 +879,14 @@ class ce extends Date {
904
879
  }
905
880
  //#endregion
906
881
  }
907
- const It = /^(get|set)(?!UTC)/;
882
+ const Yt = /^(get|set)(?!UTC)/;
908
883
  Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
909
- if (!It.test(e)) return;
910
- const t = e.replace(It, "$1UTC");
884
+ if (!Yt.test(e)) return;
885
+ const t = e.replace(Yt, "$1UTC");
911
886
  ce.prototype[t] && (e.startsWith("get") ? ce.prototype[e] = function() {
912
887
  return this.internal[t]();
913
888
  } : (ce.prototype[e] = function() {
914
- return Date.prototype[t].apply(this.internal, arguments), jo(this), +this;
889
+ return Date.prototype[t].apply(this.internal, arguments), Yo(this), +this;
915
890
  }, ce.prototype[t] = function() {
916
891
  return Date.prototype[t].apply(this, arguments), Ve(this), +this;
917
892
  }));
@@ -921,21 +896,21 @@ function Ve(e) {
921
896
  // precision errors from historical offsets.
922
897
  Math.round(-he(e.timeZone, e) * 60));
923
898
  }
924
- function jo(e) {
925
- Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), Nn(e);
899
+ function Yo(e) {
900
+ Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), Tn(e);
926
901
  }
927
- function Nn(e, t) {
928
- const n = Array.isArray(t) ? Vo(t) : +e.internal, r = he(e.timeZone, e), o = r > 0 ? Math.floor(r) : Math.ceil(r), a = /* @__PURE__ */ new Date(+e);
902
+ function Tn(e, t) {
903
+ const n = Array.isArray(t) ? Io(t) : +e.internal, r = he(e.timeZone, e), o = r > 0 ? Math.floor(r) : Math.ceil(r), a = /* @__PURE__ */ new Date(+e);
929
904
  a.setUTCHours(a.getUTCHours() - 1);
930
905
  const s = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), i = -(/* @__PURE__ */ new Date(+a)).getTimezoneOffset(), c = s - i;
931
906
  let u = s;
932
907
  if (c && s !== o) {
933
908
  const P = Date.prototype.getHours.apply(e), F = Array.isArray(t) ? t[3] || 0 : e.internal.getUTCHours();
934
909
  if (P !== F) {
935
- const B = /* @__PURE__ */ new Date(+e), V = s - o;
936
- V && B.setUTCMinutes(B.getUTCMinutes() + V);
937
- const U = he(e.timeZone, B);
938
- (U > 0 ? Math.floor(U) : Math.ceil(U)) === o && (u = i);
910
+ const B = /* @__PURE__ */ new Date(+e), $ = s - o;
911
+ $ && B.setUTCMinutes(B.getUTCMinutes() + $);
912
+ const z = he(e.timeZone, B);
913
+ (z > 0 ? Math.floor(z) : Math.ceil(z)) === o && (u = i);
939
914
  }
940
915
  }
941
916
  const d = u - o;
@@ -944,27 +919,27 @@ function Nn(e, t) {
944
919
  f.setUTCSeconds(0);
945
920
  const g = s > 0 ? f.getSeconds() : (f.getSeconds() - 60) % 60, w = Math.round(-(he(e.timeZone, e) * 60)) % 60;
946
921
  (w || g) && Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + w + g);
947
- const N = he(e.timeZone, e), b = N > 0 ? Math.floor(N) : Math.ceil(N), T = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - b, y = b !== o, h = T - d, k = b - o, M = n - b * 60 * 1e3, l = k > 0 && Rt(e) - n === k * 60 * 1e3 && Rt(e, M) !== n;
922
+ const N = he(e.timeZone, e), v = N > 0 ? Math.floor(N) : Math.ceil(N), T = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - v, y = v !== o, h = T - d, k = v - o, M = n - v * 60 * 1e3, l = k > 0 && It(e) - n === k * 60 * 1e3 && It(e, M) !== n;
948
923
  if (y && h && !l) {
949
924
  Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + h);
950
- const P = he(e.timeZone, e), F = P > 0 ? Math.floor(P) : Math.ceil(P), B = b - F;
925
+ const P = he(e.timeZone, e), F = P > 0 ? Math.floor(P) : Math.ceil(P), B = v - F;
951
926
  B && h < 0 && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + B);
952
927
  }
953
928
  Ve(e);
954
929
  const W = (t ? n : n + w * 1e3) - +e.internal;
955
930
  W && Math.abs(W) < 1800 * 1e3 && (Date.prototype.setTime.call(e, +e + W), Ve(e));
956
931
  }
957
- function Vo(e) {
932
+ function Io(e) {
958
933
  return Date.UTC(e[0], e.length > 1 ? e[1] : 0, e.length > 2 ? e[2] : 1, ...e.slice(3));
959
934
  }
960
- function Rt(e, t) {
935
+ function It(e, t) {
961
936
  const n = new Date(t ?? +e);
962
937
  return n.setUTCSeconds(n.getUTCSeconds() - Math.round(-he(e.timeZone, n) * 60)), +n;
963
938
  }
964
- class K extends ce {
939
+ class G extends ce {
965
940
  //#region static
966
941
  static tz(t, ...n) {
967
- return n.length ? new K(...n, t) : new K(Date.now(), t);
942
+ return n.length ? new G(...n, t) : new G(Date.now(), t);
968
943
  }
969
944
  //#endregion
970
945
  //#region representation
@@ -981,7 +956,7 @@ class K extends ce {
981
956
  }
982
957
  toTimeString() {
983
958
  const t = this.internal.toUTCString().split(" ")[4], [n, r, o] = this.tzComponents();
984
- return `${t} GMT${n}${r}${o} (${qo(this.timeZone, this)})`;
959
+ return `${t} GMT${n}${r}${o} (${_o(this.timeZone, this)})`;
985
960
  }
986
961
  toLocaleString(t, n) {
987
962
  return Date.prototype.toLocaleString.call(this, t, {
@@ -1009,26 +984,26 @@ class K extends ce {
1009
984
  }
1010
985
  //#endregion
1011
986
  withTimeZone(t) {
1012
- return new K(+this, t);
987
+ return new G(+this, t);
1013
988
  }
1014
989
  //#region date-fns integration
1015
990
  [Symbol.for("constructDateFrom")](t) {
1016
- return new K(+new Date(t), this.timeZone);
991
+ return new G(+new Date(t), this.timeZone);
1017
992
  }
1018
993
  //#endregion
1019
994
  }
1020
- const Cn = 6048e5, zo = 864e5, At = Symbol.for("constructDateFrom");
995
+ const Nn = 6048e5, Ro = 864e5, Rt = Symbol.for("constructDateFrom");
1021
996
  function j(e, t) {
1022
- return typeof e == "function" ? e(t) : e && typeof e == "object" && At in e ? e[At](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
997
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && Rt in e ? e[Rt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1023
998
  }
1024
999
  function A(e, t) {
1025
1000
  return j(t || e, e);
1026
1001
  }
1027
- function Sn(e, t, n) {
1002
+ function Cn(e, t, n) {
1028
1003
  const r = A(e, n == null ? void 0 : n.in);
1029
1004
  return isNaN(t) ? j(e, NaN) : (t && r.setDate(r.getDate() + t), r);
1030
1005
  }
1031
- function En(e, t, n) {
1006
+ function Sn(e, t, n) {
1032
1007
  const r = A(e, n == null ? void 0 : n.in);
1033
1008
  if (isNaN(t)) return j(e, NaN);
1034
1009
  if (!t)
@@ -1042,9 +1017,9 @@ function En(e, t, n) {
1042
1017
  o
1043
1018
  ), r);
1044
1019
  }
1045
- let Uo = {};
1020
+ let Ao = {};
1046
1021
  function Fe() {
1047
- return Uo;
1022
+ return Ao;
1048
1023
  }
1049
1024
  function Te(e, t) {
1050
1025
  var i, c, u, d;
@@ -1054,7 +1029,7 @@ function Te(e, t) {
1054
1029
  function We(e, t) {
1055
1030
  return Te(e, { ...t, weekStartsOn: 1 });
1056
1031
  }
1057
- function xn(e, t) {
1032
+ function En(e, t) {
1058
1033
  const n = A(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = j(n, 0);
1059
1034
  o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
1060
1035
  const a = We(o), s = j(n, 0);
@@ -1062,7 +1037,7 @@ function xn(e, t) {
1062
1037
  const i = We(s);
1063
1038
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
1064
1039
  }
1065
- function Bt(e) {
1040
+ function At(e) {
1066
1041
  const t = A(e), n = new Date(
1067
1042
  Date.UTC(
1068
1043
  t.getFullYear(),
@@ -1087,25 +1062,25 @@ function Pe(e, t) {
1087
1062
  const n = A(e, t == null ? void 0 : t.in);
1088
1063
  return n.setHours(0, 0, 0, 0), n;
1089
1064
  }
1090
- function bt(e, t, n) {
1065
+ function vt(e, t, n) {
1091
1066
  const [r, o] = Ne(
1092
1067
  n == null ? void 0 : n.in,
1093
1068
  e,
1094
1069
  t
1095
- ), a = Pe(r), s = Pe(o), i = +a - Bt(a), c = +s - Bt(s);
1096
- return Math.round((i - c) / zo);
1070
+ ), a = Pe(r), s = Pe(o), i = +a - At(a), c = +s - At(s);
1071
+ return Math.round((i - c) / Ro);
1097
1072
  }
1098
- function Go(e, t) {
1099
- const n = xn(e, t), r = j(e, 0);
1073
+ function Bo(e, t) {
1074
+ const n = En(e, t), r = j(e, 0);
1100
1075
  return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), We(r);
1101
1076
  }
1102
- function Ko(e, t, n) {
1103
- return Sn(e, t * 7, n);
1077
+ function Ho(e, t, n) {
1078
+ return Cn(e, t * 7, n);
1104
1079
  }
1105
- function Xo(e, t, n) {
1106
- return En(e, t * 12, n);
1080
+ function qo(e, t, n) {
1081
+ return Sn(e, t * 12, n);
1107
1082
  }
1108
- function Lo(e, t) {
1083
+ function jo(e, t) {
1109
1084
  let n, r = t == null ? void 0 : t.in;
1110
1085
  return e.forEach((o) => {
1111
1086
  !r && typeof o == "object" && (r = j.bind(null, o));
@@ -1113,7 +1088,7 @@ function Lo(e, t) {
1113
1088
  (!n || n < a || isNaN(+a)) && (n = a);
1114
1089
  }), j(r, n || NaN);
1115
1090
  }
1116
- function Qo(e, t) {
1091
+ function $o(e, t) {
1117
1092
  let n, r = t == null ? void 0 : t.in;
1118
1093
  return e.forEach((o) => {
1119
1094
  !r && typeof o == "object" && (r = j.bind(null, o));
@@ -1121,7 +1096,7 @@ function Qo(e, t) {
1121
1096
  (!n || n > a || isNaN(+a)) && (n = a);
1122
1097
  }), j(r, n || NaN);
1123
1098
  }
1124
- function Zo(e, t, n) {
1099
+ function Vo(e, t, n) {
1125
1100
  const [r, o] = Ne(
1126
1101
  n == null ? void 0 : n.in,
1127
1102
  e,
@@ -1129,13 +1104,13 @@ function Zo(e, t, n) {
1129
1104
  );
1130
1105
  return +Pe(r) == +Pe(o);
1131
1106
  }
1132
- function Wn(e) {
1107
+ function xn(e) {
1133
1108
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1134
1109
  }
1135
- function Jo(e) {
1136
- return !(!Wn(e) && typeof e != "number" || isNaN(+A(e)));
1110
+ function zo(e) {
1111
+ return !(!xn(e) && typeof e != "number" || isNaN(+A(e)));
1137
1112
  }
1138
- function Pn(e, t, n) {
1113
+ function Wn(e, t, n) {
1139
1114
  const [r, o] = Ne(
1140
1115
  n == null ? void 0 : n.in,
1141
1116
  e,
@@ -1143,16 +1118,16 @@ function Pn(e, t, n) {
1143
1118
  ), a = r.getFullYear() - o.getFullYear(), s = r.getMonth() - o.getMonth();
1144
1119
  return a * 12 + s;
1145
1120
  }
1146
- function ea(e, t) {
1121
+ function Uo(e, t) {
1147
1122
  const n = A(e, t == null ? void 0 : t.in), r = n.getMonth();
1148
1123
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
1149
1124
  }
1150
- function _n(e, t) {
1125
+ function Pn(e, t) {
1151
1126
  const [n, r] = Ne(e, t.start, t.end);
1152
1127
  return { start: n, end: r };
1153
1128
  }
1154
- function ta(e, t) {
1155
- const { start: n, end: r } = _n(t == null ? void 0 : t.in, e);
1129
+ function Go(e, t) {
1130
+ const { start: n, end: r } = Pn(t == null ? void 0 : t.in, e);
1156
1131
  let o = +n > +r;
1157
1132
  const a = o ? +n : +r, s = o ? r : n;
1158
1133
  s.setHours(0, 0, 0, 0), s.setDate(1);
@@ -1162,20 +1137,20 @@ function ta(e, t) {
1162
1137
  c.push(j(n, s)), s.setMonth(s.getMonth() + i);
1163
1138
  return o ? c.reverse() : c;
1164
1139
  }
1165
- function na(e, t) {
1140
+ function Ko(e, t) {
1166
1141
  const n = A(e, t == null ? void 0 : t.in);
1167
1142
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
1168
1143
  }
1169
- function ra(e, t) {
1144
+ function Xo(e, t) {
1170
1145
  const n = A(e, t == null ? void 0 : t.in), r = n.getFullYear();
1171
1146
  return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
1172
1147
  }
1173
- function Fn(e, t) {
1148
+ function _n(e, t) {
1174
1149
  const n = A(e, t == null ? void 0 : t.in);
1175
1150
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
1176
1151
  }
1177
- function oa(e, t) {
1178
- const { start: n, end: r } = _n(t == null ? void 0 : t.in, e);
1152
+ function Lo(e, t) {
1153
+ const { start: n, end: r } = Pn(t == null ? void 0 : t.in, e);
1179
1154
  let o = +n > +r;
1180
1155
  const a = o ? +n : +r, s = o ? r : n;
1181
1156
  s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
@@ -1185,15 +1160,15 @@ function oa(e, t) {
1185
1160
  c.push(j(n, s)), s.setFullYear(s.getFullYear() + i);
1186
1161
  return o ? c.reverse() : c;
1187
1162
  }
1188
- function Yn(e, t) {
1163
+ function Fn(e, t) {
1189
1164
  var i, c, u, d;
1190
1165
  const n = Fe(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = A(e, t == null ? void 0 : t.in), a = o.getDay(), s = (a < r ? -7 : 0) + 6 - (a - r);
1191
1166
  return o.setDate(o.getDate() + s), o.setHours(23, 59, 59, 999), o;
1192
1167
  }
1193
- function aa(e, t) {
1194
- return Yn(e, { ...t, weekStartsOn: 1 });
1168
+ function Qo(e, t) {
1169
+ return Fn(e, { ...t, weekStartsOn: 1 });
1195
1170
  }
1196
- const sa = {
1171
+ const Zo = {
1197
1172
  lessThanXSeconds: {
1198
1173
  one: "less than a second",
1199
1174
  other: "less than {{count}} seconds"
@@ -1255,9 +1230,9 @@ const sa = {
1255
1230
  one: "almost 1 year",
1256
1231
  other: "almost {{count}} years"
1257
1232
  }
1258
- }, ia = (e, t, n) => {
1233
+ }, Jo = (e, t, n) => {
1259
1234
  let r;
1260
- const o = sa[e];
1235
+ const o = Zo[e];
1261
1236
  return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
1262
1237
  };
1263
1238
  function nt(e) {
@@ -1266,42 +1241,42 @@ function nt(e) {
1266
1241
  return e.formats[n] || e.formats[e.defaultWidth];
1267
1242
  };
1268
1243
  }
1269
- const ca = {
1244
+ const ea = {
1270
1245
  full: "EEEE, MMMM do, y",
1271
1246
  long: "MMMM do, y",
1272
1247
  medium: "MMM d, y",
1273
1248
  short: "MM/dd/yyyy"
1274
- }, ua = {
1249
+ }, ta = {
1275
1250
  full: "h:mm:ss a zzzz",
1276
1251
  long: "h:mm:ss a z",
1277
1252
  medium: "h:mm:ss a",
1278
1253
  short: "h:mm a"
1279
- }, da = {
1254
+ }, na = {
1280
1255
  full: "{{date}} 'at' {{time}}",
1281
1256
  long: "{{date}} 'at' {{time}}",
1282
1257
  medium: "{{date}}, {{time}}",
1283
1258
  short: "{{date}}, {{time}}"
1284
- }, la = {
1259
+ }, ra = {
1285
1260
  date: nt({
1286
- formats: ca,
1261
+ formats: ea,
1287
1262
  defaultWidth: "full"
1288
1263
  }),
1289
1264
  time: nt({
1290
- formats: ua,
1265
+ formats: ta,
1291
1266
  defaultWidth: "full"
1292
1267
  }),
1293
1268
  dateTime: nt({
1294
- formats: da,
1269
+ formats: na,
1295
1270
  defaultWidth: "full"
1296
1271
  })
1297
- }, fa = {
1272
+ }, oa = {
1298
1273
  lastWeek: "'last' eeee 'at' p",
1299
1274
  yesterday: "'yesterday at' p",
1300
1275
  today: "'today at' p",
1301
1276
  tomorrow: "'tomorrow at' p",
1302
1277
  nextWeek: "eeee 'at' p",
1303
1278
  other: "P"
1304
- }, ha = (e, t, n, r) => fa[e];
1279
+ }, aa = (e, t, n, r) => oa[e];
1305
1280
  function Ce(e) {
1306
1281
  return (t, n) => {
1307
1282
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -1317,15 +1292,15 @@ function Ce(e) {
1317
1292
  return o[a];
1318
1293
  };
1319
1294
  }
1320
- const ma = {
1295
+ const sa = {
1321
1296
  narrow: ["B", "A"],
1322
1297
  abbreviated: ["BC", "AD"],
1323
1298
  wide: ["Before Christ", "Anno Domini"]
1324
- }, ya = {
1299
+ }, ia = {
1325
1300
  narrow: ["1", "2", "3", "4"],
1326
1301
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1327
1302
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1328
- }, ga = {
1303
+ }, ca = {
1329
1304
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1330
1305
  abbreviated: [
1331
1306
  "Jan",
@@ -1355,7 +1330,7 @@ const ma = {
1355
1330
  "November",
1356
1331
  "December"
1357
1332
  ]
1358
- }, wa = {
1333
+ }, ua = {
1359
1334
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
1360
1335
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1361
1336
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -1368,7 +1343,7 @@ const ma = {
1368
1343
  "Friday",
1369
1344
  "Saturday"
1370
1345
  ]
1371
- }, va = {
1346
+ }, da = {
1372
1347
  narrow: {
1373
1348
  am: "a",
1374
1349
  pm: "p",
@@ -1399,7 +1374,7 @@ const ma = {
1399
1374
  evening: "evening",
1400
1375
  night: "night"
1401
1376
  }
1402
- }, ba = {
1377
+ }, la = {
1403
1378
  narrow: {
1404
1379
  am: "a",
1405
1380
  pm: "p",
@@ -1430,7 +1405,7 @@ const ma = {
1430
1405
  evening: "in the evening",
1431
1406
  night: "at night"
1432
1407
  }
1433
- }, pa = (e, t) => {
1408
+ }, fa = (e, t) => {
1434
1409
  const n = Number(e), r = n % 100;
1435
1410
  if (r > 20 || r < 10)
1436
1411
  switch (r % 10) {
@@ -1442,29 +1417,29 @@ const ma = {
1442
1417
  return n + "rd";
1443
1418
  }
1444
1419
  return n + "th";
1445
- }, Ma = {
1446
- ordinalNumber: pa,
1420
+ }, ha = {
1421
+ ordinalNumber: fa,
1447
1422
  era: Ce({
1448
- values: ma,
1423
+ values: sa,
1449
1424
  defaultWidth: "wide"
1450
1425
  }),
1451
1426
  quarter: Ce({
1452
- values: ya,
1427
+ values: ia,
1453
1428
  defaultWidth: "wide",
1454
1429
  argumentCallback: (e) => e - 1
1455
1430
  }),
1456
1431
  month: Ce({
1457
- values: ga,
1432
+ values: ca,
1458
1433
  defaultWidth: "wide"
1459
1434
  }),
1460
1435
  day: Ce({
1461
- values: wa,
1436
+ values: ua,
1462
1437
  defaultWidth: "wide"
1463
1438
  }),
1464
1439
  dayPeriod: Ce({
1465
- values: va,
1440
+ values: da,
1466
1441
  defaultWidth: "wide",
1467
- formattingValues: ba,
1442
+ formattingValues: la,
1468
1443
  defaultFormattingWidth: "wide"
1469
1444
  })
1470
1445
  };
@@ -1473,9 +1448,9 @@ function Se(e) {
1473
1448
  const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(o);
1474
1449
  if (!a)
1475
1450
  return null;
1476
- const s = a[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? Oa(i, (f) => f.test(s)) : (
1451
+ const s = a[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? ya(i, (f) => f.test(s)) : (
1477
1452
  // [TODO] -- I challenge you to fix the type
1478
- Da(i, (f) => f.test(s))
1453
+ ma(i, (f) => f.test(s))
1479
1454
  );
1480
1455
  let u;
1481
1456
  u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
@@ -1486,17 +1461,17 @@ function Se(e) {
1486
1461
  return { value: u, rest: d };
1487
1462
  };
1488
1463
  }
1489
- function Da(e, t) {
1464
+ function ma(e, t) {
1490
1465
  for (const n in e)
1491
1466
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
1492
1467
  return n;
1493
1468
  }
1494
- function Oa(e, t) {
1469
+ function ya(e, t) {
1495
1470
  for (let n = 0; n < e.length; n++)
1496
1471
  if (t(e[n]))
1497
1472
  return n;
1498
1473
  }
1499
- function ka(e) {
1474
+ function ga(e) {
1500
1475
  return (t, n = {}) => {
1501
1476
  const r = t.match(e.matchPattern);
1502
1477
  if (!r) return null;
@@ -1508,23 +1483,23 @@ function ka(e) {
1508
1483
  return { value: s, rest: i };
1509
1484
  };
1510
1485
  }
1511
- const Ta = /^(\d+)(th|st|nd|rd)?/i, Na = /\d+/i, Ca = {
1486
+ const wa = /^(\d+)(th|st|nd|rd)?/i, va = /\d+/i, ba = {
1512
1487
  narrow: /^(b|a)/i,
1513
1488
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1514
1489
  wide: /^(before christ|before common era|anno domini|common era)/i
1515
- }, Sa = {
1490
+ }, pa = {
1516
1491
  any: [/^b/i, /^(a|c)/i]
1517
- }, Ea = {
1492
+ }, Ma = {
1518
1493
  narrow: /^[1234]/i,
1519
1494
  abbreviated: /^q[1234]/i,
1520
1495
  wide: /^[1234](th|st|nd|rd)? quarter/i
1521
- }, xa = {
1496
+ }, Da = {
1522
1497
  any: [/1/i, /2/i, /3/i, /4/i]
1523
- }, Wa = {
1498
+ }, Oa = {
1524
1499
  narrow: /^[jfmasond]/i,
1525
1500
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1526
1501
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1527
- }, Pa = {
1502
+ }, ka = {
1528
1503
  narrow: [
1529
1504
  /^j/i,
1530
1505
  /^f/i,
@@ -1553,18 +1528,18 @@ const Ta = /^(\d+)(th|st|nd|rd)?/i, Na = /\d+/i, Ca = {
1553
1528
  /^n/i,
1554
1529
  /^d/i
1555
1530
  ]
1556
- }, _a = {
1531
+ }, Ta = {
1557
1532
  narrow: /^[smtwf]/i,
1558
1533
  short: /^(su|mo|tu|we|th|fr|sa)/i,
1559
1534
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1560
1535
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1561
- }, Fa = {
1536
+ }, Na = {
1562
1537
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1563
1538
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1564
- }, Ya = {
1539
+ }, Ca = {
1565
1540
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1566
1541
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1567
- }, Ia = {
1542
+ }, Sa = {
1568
1543
  any: {
1569
1544
  am: /^a/i,
1570
1545
  pm: /^p/i,
@@ -1575,64 +1550,64 @@ const Ta = /^(\d+)(th|st|nd|rd)?/i, Na = /\d+/i, Ca = {
1575
1550
  evening: /evening/i,
1576
1551
  night: /night/i
1577
1552
  }
1578
- }, Ra = {
1579
- ordinalNumber: ka({
1580
- matchPattern: Ta,
1581
- parsePattern: Na,
1553
+ }, Ea = {
1554
+ ordinalNumber: ga({
1555
+ matchPattern: wa,
1556
+ parsePattern: va,
1582
1557
  valueCallback: (e) => parseInt(e, 10)
1583
1558
  }),
1584
1559
  era: Se({
1585
- matchPatterns: Ca,
1560
+ matchPatterns: ba,
1586
1561
  defaultMatchWidth: "wide",
1587
- parsePatterns: Sa,
1562
+ parsePatterns: pa,
1588
1563
  defaultParseWidth: "any"
1589
1564
  }),
1590
1565
  quarter: Se({
1591
- matchPatterns: Ea,
1566
+ matchPatterns: Ma,
1592
1567
  defaultMatchWidth: "wide",
1593
- parsePatterns: xa,
1568
+ parsePatterns: Da,
1594
1569
  defaultParseWidth: "any",
1595
1570
  valueCallback: (e) => e + 1
1596
1571
  }),
1597
1572
  month: Se({
1598
- matchPatterns: Wa,
1573
+ matchPatterns: Oa,
1599
1574
  defaultMatchWidth: "wide",
1600
- parsePatterns: Pa,
1575
+ parsePatterns: ka,
1601
1576
  defaultParseWidth: "any"
1602
1577
  }),
1603
1578
  day: Se({
1604
- matchPatterns: _a,
1579
+ matchPatterns: Ta,
1605
1580
  defaultMatchWidth: "wide",
1606
- parsePatterns: Fa,
1581
+ parsePatterns: Na,
1607
1582
  defaultParseWidth: "any"
1608
1583
  }),
1609
1584
  dayPeriod: Se({
1610
- matchPatterns: Ya,
1585
+ matchPatterns: Ca,
1611
1586
  defaultMatchWidth: "any",
1612
- parsePatterns: Ia,
1587
+ parsePatterns: Sa,
1613
1588
  defaultParseWidth: "any"
1614
1589
  })
1615
1590
  }, Oe = {
1616
1591
  code: "en-US",
1617
- formatDistance: ia,
1618
- formatLong: la,
1619
- formatRelative: ha,
1620
- localize: Ma,
1621
- match: Ra,
1592
+ formatDistance: Jo,
1593
+ formatLong: ra,
1594
+ formatRelative: aa,
1595
+ localize: ha,
1596
+ match: Ea,
1622
1597
  options: {
1623
1598
  weekStartsOn: 0,
1624
1599
  firstWeekContainsDate: 1
1625
1600
  }
1626
1601
  };
1627
- function Aa(e, t) {
1602
+ function xa(e, t) {
1628
1603
  const n = A(e, t == null ? void 0 : t.in);
1629
- return bt(n, Fn(n)) + 1;
1604
+ return vt(n, _n(n)) + 1;
1630
1605
  }
1631
- function pt(e, t) {
1632
- const n = A(e, t == null ? void 0 : t.in), r = +We(n) - +Go(n);
1633
- return Math.round(r / Cn) + 1;
1606
+ function bt(e, t) {
1607
+ const n = A(e, t == null ? void 0 : t.in), r = +We(n) - +Bo(n);
1608
+ return Math.round(r / Nn) + 1;
1634
1609
  }
1635
- function In(e, t) {
1610
+ function Yn(e, t) {
1636
1611
  var d, f, g, w;
1637
1612
  const n = A(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = Fe(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((w = (g = o.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, s = j((t == null ? void 0 : t.in) || e, 0);
1638
1613
  s.setFullYear(r + 1, 0, a), s.setHours(0, 0, 0, 0);
@@ -1641,14 +1616,14 @@ function In(e, t) {
1641
1616
  const u = Te(c, t);
1642
1617
  return +n >= +i ? r + 1 : +n >= +u ? r : r - 1;
1643
1618
  }
1644
- function Ba(e, t) {
1619
+ function Wa(e, t) {
1645
1620
  var i, c, u, d;
1646
- const n = Fe(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = In(e, t), a = j((t == null ? void 0 : t.in) || e, 0);
1621
+ const n = Fe(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = Yn(e, t), a = j((t == null ? void 0 : t.in) || e, 0);
1647
1622
  return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Te(a, t);
1648
1623
  }
1649
- function Mt(e, t) {
1650
- const n = A(e, t == null ? void 0 : t.in), r = +Te(n, t) - +Ba(n, t);
1651
- return Math.round(r / Cn) + 1;
1624
+ function pt(e, t) {
1625
+ const n = A(e, t == null ? void 0 : t.in), r = +Te(n, t) - +Wa(n, t);
1626
+ return Math.round(r / Nn) + 1;
1652
1627
  }
1653
1628
  function R(e, t) {
1654
1629
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
@@ -1715,7 +1690,7 @@ const we = {
1715
1690
  afternoon: "afternoon",
1716
1691
  evening: "evening",
1717
1692
  night: "night"
1718
- }, Ht = {
1693
+ }, Bt = {
1719
1694
  // Era
1720
1695
  G: function(e, t, n) {
1721
1696
  const r = e.getFullYear() > 0 ? 1 : 0;
@@ -1744,7 +1719,7 @@ const we = {
1744
1719
  },
1745
1720
  // Local week-numbering year
1746
1721
  Y: function(e, t, n, r) {
1747
- const o = In(e, r), a = o > 0 ? o : 1 - o;
1722
+ const o = Yn(e, r), a = o > 0 ? o : 1 - o;
1748
1723
  if (t === "YY") {
1749
1724
  const s = a % 100;
1750
1725
  return R(s, 2);
@@ -1753,7 +1728,7 @@ const we = {
1753
1728
  },
1754
1729
  // ISO week-numbering year
1755
1730
  R: function(e, t) {
1756
- const n = xn(e);
1731
+ const n = En(e);
1757
1732
  return R(n, t.length);
1758
1733
  },
1759
1734
  // Extended year. This is a single number designating the year of this calendar system.
@@ -1898,12 +1873,12 @@ const we = {
1898
1873
  },
1899
1874
  // Local week of year
1900
1875
  w: function(e, t, n, r) {
1901
- const o = Mt(e, r);
1876
+ const o = pt(e, r);
1902
1877
  return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : R(o, t.length);
1903
1878
  },
1904
1879
  // ISO week of year
1905
1880
  I: function(e, t, n) {
1906
- const r = pt(e);
1881
+ const r = bt(e);
1907
1882
  return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : R(r, t.length);
1908
1883
  },
1909
1884
  // Day of the month
@@ -1912,7 +1887,7 @@ const we = {
1912
1887
  },
1913
1888
  // Day of year
1914
1889
  D: function(e, t, n) {
1915
- const r = Aa(e);
1890
+ const r = xa(e);
1916
1891
  return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : R(r, t.length);
1917
1892
  },
1918
1893
  // Day of week
@@ -2190,7 +2165,7 @@ const we = {
2190
2165
  switch (t) {
2191
2166
  // Hours and optional minutes
2192
2167
  case "X":
2193
- return $t(r);
2168
+ return qt(r);
2194
2169
  // Hours, minutes and optional seconds without `:` delimiter
2195
2170
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2196
2171
  // so this token always has the same output as `XX`
@@ -2213,7 +2188,7 @@ const we = {
2213
2188
  switch (t) {
2214
2189
  // Hours and optional minutes
2215
2190
  case "x":
2216
- return $t(r);
2191
+ return qt(r);
2217
2192
  // Hours, minutes and optional seconds without `:` delimiter
2218
2193
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2219
2194
  // so this token always has the same output as `xx`
@@ -2238,7 +2213,7 @@ const we = {
2238
2213
  case "O":
2239
2214
  case "OO":
2240
2215
  case "OOO":
2241
- return "GMT" + qt(r, ":");
2216
+ return "GMT" + Ht(r, ":");
2242
2217
  // Long
2243
2218
  case "OOOO":
2244
2219
  default:
@@ -2253,7 +2228,7 @@ const we = {
2253
2228
  case "z":
2254
2229
  case "zz":
2255
2230
  case "zzz":
2256
- return "GMT" + qt(r, ":");
2231
+ return "GMT" + Ht(r, ":");
2257
2232
  // Long
2258
2233
  case "zzzz":
2259
2234
  default:
@@ -2270,11 +2245,11 @@ const we = {
2270
2245
  return R(+e, t.length);
2271
2246
  }
2272
2247
  };
2273
- function qt(e, t = "") {
2248
+ function Ht(e, t = "") {
2274
2249
  const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), a = r % 60;
2275
2250
  return a === 0 ? n + String(o) : n + String(o) + t + R(a, 2);
2276
2251
  }
2277
- function $t(e, t) {
2252
+ function qt(e, t) {
2278
2253
  return e % 60 === 0 ? (e > 0 ? "-" : "+") + R(Math.abs(e) / 60, 2) : be(e, t);
2279
2254
  }
2280
2255
  function be(e, t = "") {
@@ -2293,7 +2268,7 @@ const jt = (e, t) => {
2293
2268
  default:
2294
2269
  return t.date({ width: "full" });
2295
2270
  }
2296
- }, Rn = (e, t) => {
2271
+ }, In = (e, t) => {
2297
2272
  switch (e) {
2298
2273
  case "p":
2299
2274
  return t.time({ width: "short" });
@@ -2305,7 +2280,7 @@ const jt = (e, t) => {
2305
2280
  default:
2306
2281
  return t.time({ width: "full" });
2307
2282
  }
2308
- }, Ha = (e, t) => {
2283
+ }, Pa = (e, t) => {
2309
2284
  const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
2310
2285
  if (!o)
2311
2286
  return jt(e, t);
@@ -2325,47 +2300,47 @@ const jt = (e, t) => {
2325
2300
  a = t.dateTime({ width: "full" });
2326
2301
  break;
2327
2302
  }
2328
- return a.replace("{{date}}", jt(r, t)).replace("{{time}}", Rn(o, t));
2329
- }, qa = {
2330
- p: Rn,
2331
- P: Ha
2332
- }, $a = /^D+$/, ja = /^Y+$/, Va = ["D", "DD", "YY", "YYYY"];
2333
- function za(e) {
2334
- return $a.test(e);
2303
+ return a.replace("{{date}}", jt(r, t)).replace("{{time}}", In(o, t));
2304
+ }, _a = {
2305
+ p: In,
2306
+ P: Pa
2307
+ }, Fa = /^D+$/, Ya = /^Y+$/, Ia = ["D", "DD", "YY", "YYYY"];
2308
+ function Ra(e) {
2309
+ return Fa.test(e);
2335
2310
  }
2336
- function Ua(e) {
2337
- return ja.test(e);
2311
+ function Aa(e) {
2312
+ return Ya.test(e);
2338
2313
  }
2339
- function Ga(e, t, n) {
2340
- const r = Ka(e, t, n);
2341
- if (console.warn(r), Va.includes(e)) throw new RangeError(r);
2314
+ function Ba(e, t, n) {
2315
+ const r = Ha(e, t, n);
2316
+ if (console.warn(r), Ia.includes(e)) throw new RangeError(r);
2342
2317
  }
2343
- function Ka(e, t, n) {
2318
+ function Ha(e, t, n) {
2344
2319
  const r = e[0] === "Y" ? "years" : "days of the month";
2345
2320
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2346
2321
  }
2347
- const Xa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, La = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Qa = /^'([^]*?)'?$/, Za = /''/g, Ja = /[a-zA-Z]/;
2322
+ const qa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ja = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $a = /^'([^]*?)'?$/, Va = /''/g, za = /[a-zA-Z]/;
2348
2323
  function xe(e, t, n) {
2349
- var d, f, g, w, N, b, m, T;
2350
- const r = Fe(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Oe, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((w = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((b = (N = n == null ? void 0 : n.locale) == null ? void 0 : N.options) == null ? void 0 : b.weekStartsOn) ?? r.weekStartsOn ?? ((T = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : T.weekStartsOn) ?? 0, i = A(e, n == null ? void 0 : n.in);
2351
- if (!Jo(i))
2324
+ var d, f, g, w, N, v, m, T;
2325
+ const r = Fe(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Oe, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((w = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((v = (N = n == null ? void 0 : n.locale) == null ? void 0 : N.options) == null ? void 0 : v.weekStartsOn) ?? r.weekStartsOn ?? ((T = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : T.weekStartsOn) ?? 0, i = A(e, n == null ? void 0 : n.in);
2326
+ if (!zo(i))
2352
2327
  throw new RangeError("Invalid time value");
2353
- let c = t.match(La).map((y) => {
2328
+ let c = t.match(ja).map((y) => {
2354
2329
  const h = y[0];
2355
2330
  if (h === "p" || h === "P") {
2356
- const k = qa[h];
2331
+ const k = _a[h];
2357
2332
  return k(y, o.formatLong);
2358
2333
  }
2359
2334
  return y;
2360
- }).join("").match(Xa).map((y) => {
2335
+ }).join("").match(qa).map((y) => {
2361
2336
  if (y === "''")
2362
2337
  return { isToken: !1, value: "'" };
2363
2338
  const h = y[0];
2364
2339
  if (h === "'")
2365
- return { isToken: !1, value: es(y) };
2366
- if (Ht[h])
2340
+ return { isToken: !1, value: Ua(y) };
2341
+ if (Bt[h])
2367
2342
  return { isToken: !0, value: y };
2368
- if (h.match(Ja))
2343
+ if (h.match(za))
2369
2344
  throw new RangeError(
2370
2345
  "Format string contains an unescaped latin alphabet character `" + h + "`"
2371
2346
  );
@@ -2380,32 +2355,32 @@ function xe(e, t, n) {
2380
2355
  return c.map((y) => {
2381
2356
  if (!y.isToken) return y.value;
2382
2357
  const h = y.value;
2383
- (!(n != null && n.useAdditionalWeekYearTokens) && Ua(h) || !(n != null && n.useAdditionalDayOfYearTokens) && za(h)) && Ga(h, t, String(e));
2384
- const k = Ht[h[0]];
2358
+ (!(n != null && n.useAdditionalWeekYearTokens) && Aa(h) || !(n != null && n.useAdditionalDayOfYearTokens) && Ra(h)) && Ba(h, t, String(e));
2359
+ const k = Bt[h[0]];
2385
2360
  return k(i, h, o.localize, u);
2386
2361
  }).join("");
2387
2362
  }
2388
- function es(e) {
2389
- const t = e.match(Qa);
2390
- return t ? t[1].replace(Za, "'") : e;
2363
+ function Ua(e) {
2364
+ const t = e.match($a);
2365
+ return t ? t[1].replace(Va, "'") : e;
2391
2366
  }
2392
- function ts(e, t) {
2367
+ function Ga(e, t) {
2393
2368
  const n = A(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = n.getMonth(), a = j(n, 0);
2394
2369
  return a.setFullYear(r, o + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
2395
2370
  }
2396
- function ns(e, t) {
2371
+ function Ka(e, t) {
2397
2372
  return A(e, t == null ? void 0 : t.in).getMonth();
2398
2373
  }
2399
- function rs(e, t) {
2374
+ function Xa(e, t) {
2400
2375
  return A(e, t == null ? void 0 : t.in).getFullYear();
2401
2376
  }
2402
- function os(e, t) {
2377
+ function La(e, t) {
2403
2378
  return +A(e) > +A(t);
2404
2379
  }
2405
- function as(e, t) {
2380
+ function Qa(e, t) {
2406
2381
  return +A(e) < +A(t);
2407
2382
  }
2408
- function ss(e, t, n) {
2383
+ function Za(e, t, n) {
2409
2384
  const [r, o] = Ne(
2410
2385
  n == null ? void 0 : n.in,
2411
2386
  e,
@@ -2413,7 +2388,7 @@ function ss(e, t, n) {
2413
2388
  );
2414
2389
  return r.getFullYear() === o.getFullYear() && r.getMonth() === o.getMonth();
2415
2390
  }
2416
- function is(e, t, n) {
2391
+ function Ja(e, t, n) {
2417
2392
  const [r, o] = Ne(
2418
2393
  n == null ? void 0 : n.in,
2419
2394
  e,
@@ -2421,30 +2396,30 @@ function is(e, t, n) {
2421
2396
  );
2422
2397
  return r.getFullYear() === o.getFullYear();
2423
2398
  }
2424
- function cs(e, t, n) {
2399
+ function es(e, t, n) {
2425
2400
  const r = A(e, n == null ? void 0 : n.in), o = r.getFullYear(), a = r.getDate(), s = j(e, 0);
2426
2401
  s.setFullYear(o, t, 15), s.setHours(0, 0, 0, 0);
2427
- const i = ts(s);
2402
+ const i = Ga(s);
2428
2403
  return r.setMonth(t, Math.min(a, i)), r;
2429
2404
  }
2430
- function us(e, t, n) {
2405
+ function ts(e, t, n) {
2431
2406
  const r = A(e, n == null ? void 0 : n.in);
2432
2407
  return isNaN(+r) ? j(e, NaN) : (r.setFullYear(t), r);
2433
2408
  }
2434
- const Vt = 5, ds = 4;
2435
- function ls(e, t) {
2436
- const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, o = t.addDays(e, -r + 1), a = t.addDays(o, Vt * 7 - 1);
2437
- return t.getMonth(e) === t.getMonth(a) ? Vt : ds;
2409
+ const $t = 5, ns = 4;
2410
+ function rs(e, t) {
2411
+ const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, o = t.addDays(e, -r + 1), a = t.addDays(o, $t * 7 - 1);
2412
+ return t.getMonth(e) === t.getMonth(a) ? $t : ns;
2438
2413
  }
2439
- function An(e, t) {
2414
+ function Rn(e, t) {
2440
2415
  const n = t.startOfMonth(e), r = n.getDay();
2441
2416
  return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
2442
2417
  }
2443
- function fs(e, t) {
2444
- const n = An(e, t), r = ls(e, t);
2418
+ function os(e, t) {
2419
+ const n = Rn(e, t), r = rs(e, t);
2445
2420
  return t.addDays(n, r * 7 - 1);
2446
2421
  }
2447
- const Bn = {
2422
+ const An = {
2448
2423
  ...Oe,
2449
2424
  labels: {
2450
2425
  labelDayButton: (e, t, n, r) => {
@@ -2489,36 +2464,36 @@ class J {
2489
2464
  if ((o = this.overrides) != null && o.today)
2490
2465
  return this.overrides.today();
2491
2466
  if (this.options.timeZone)
2492
- return K.tz(this.options.timeZone);
2467
+ return G.tz(this.options.timeZone);
2493
2468
  const r = this.options.Date ?? Date;
2494
2469
  return new r();
2495
2470
  }, this.newDate = (r, o, a) => {
2496
2471
  var s;
2497
- return (s = this.overrides) != null && s.newDate ? this.overrides.newDate(r, o, a) : this.options.timeZone ? new K(r, o, a, this.options.timeZone) : new Date(r, o, a);
2472
+ return (s = this.overrides) != null && s.newDate ? this.overrides.newDate(r, o, a) : this.options.timeZone ? new G(r, o, a, this.options.timeZone) : new Date(r, o, a);
2498
2473
  }, this.addDays = (r, o) => {
2499
2474
  var a;
2500
- return (a = this.overrides) != null && a.addDays ? this.overrides.addDays(r, o) : Sn(r, o);
2475
+ return (a = this.overrides) != null && a.addDays ? this.overrides.addDays(r, o) : Cn(r, o);
2501
2476
  }, this.addMonths = (r, o) => {
2502
2477
  var a;
2503
- return (a = this.overrides) != null && a.addMonths ? this.overrides.addMonths(r, o) : En(r, o);
2478
+ return (a = this.overrides) != null && a.addMonths ? this.overrides.addMonths(r, o) : Sn(r, o);
2504
2479
  }, this.addWeeks = (r, o) => {
2505
2480
  var a;
2506
- return (a = this.overrides) != null && a.addWeeks ? this.overrides.addWeeks(r, o) : Ko(r, o);
2481
+ return (a = this.overrides) != null && a.addWeeks ? this.overrides.addWeeks(r, o) : Ho(r, o);
2507
2482
  }, this.addYears = (r, o) => {
2508
2483
  var a;
2509
- return (a = this.overrides) != null && a.addYears ? this.overrides.addYears(r, o) : Xo(r, o);
2484
+ return (a = this.overrides) != null && a.addYears ? this.overrides.addYears(r, o) : qo(r, o);
2510
2485
  }, this.differenceInCalendarDays = (r, o) => {
2511
2486
  var a;
2512
- return (a = this.overrides) != null && a.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, o) : bt(r, o);
2487
+ return (a = this.overrides) != null && a.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, o) : vt(r, o);
2513
2488
  }, this.differenceInCalendarMonths = (r, o) => {
2514
2489
  var a;
2515
- return (a = this.overrides) != null && a.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, o) : Pn(r, o);
2490
+ return (a = this.overrides) != null && a.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, o) : Wn(r, o);
2516
2491
  }, this.eachMonthOfInterval = (r) => {
2517
2492
  var o;
2518
- return (o = this.overrides) != null && o.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : ta(r);
2493
+ return (o = this.overrides) != null && o.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Go(r);
2519
2494
  }, this.eachYearOfInterval = (r) => {
2520
2495
  var i;
2521
- const o = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : oa(r), a = new Set(o.map((c) => this.getYear(c)));
2496
+ const o = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Lo(r), a = new Set(o.map((c) => this.getYear(c)));
2522
2497
  if (a.size === o.length)
2523
2498
  return o;
2524
2499
  const s = [];
@@ -2527,68 +2502,68 @@ class J {
2527
2502
  }), s;
2528
2503
  }, this.endOfBroadcastWeek = (r) => {
2529
2504
  var o;
2530
- return (o = this.overrides) != null && o.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : fs(r, this);
2505
+ return (o = this.overrides) != null && o.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : os(r, this);
2531
2506
  }, this.endOfISOWeek = (r) => {
2532
2507
  var o;
2533
- return (o = this.overrides) != null && o.endOfISOWeek ? this.overrides.endOfISOWeek(r) : aa(r);
2508
+ return (o = this.overrides) != null && o.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Qo(r);
2534
2509
  }, this.endOfMonth = (r) => {
2535
2510
  var o;
2536
- return (o = this.overrides) != null && o.endOfMonth ? this.overrides.endOfMonth(r) : ea(r);
2511
+ return (o = this.overrides) != null && o.endOfMonth ? this.overrides.endOfMonth(r) : Uo(r);
2537
2512
  }, this.endOfWeek = (r, o) => {
2538
2513
  var a;
2539
- return (a = this.overrides) != null && a.endOfWeek ? this.overrides.endOfWeek(r, o) : Yn(r, this.options);
2514
+ return (a = this.overrides) != null && a.endOfWeek ? this.overrides.endOfWeek(r, o) : Fn(r, this.options);
2540
2515
  }, this.endOfYear = (r) => {
2541
2516
  var o;
2542
- return (o = this.overrides) != null && o.endOfYear ? this.overrides.endOfYear(r) : ra(r);
2517
+ return (o = this.overrides) != null && o.endOfYear ? this.overrides.endOfYear(r) : Xo(r);
2543
2518
  }, this.format = (r, o, a) => {
2544
2519
  var i;
2545
2520
  const s = (i = this.overrides) != null && i.format ? this.overrides.format(r, o, this.options) : xe(r, o, this.options);
2546
2521
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(s) : s;
2547
2522
  }, this.getISOWeek = (r) => {
2548
2523
  var o;
2549
- return (o = this.overrides) != null && o.getISOWeek ? this.overrides.getISOWeek(r) : pt(r);
2524
+ return (o = this.overrides) != null && o.getISOWeek ? this.overrides.getISOWeek(r) : bt(r);
2550
2525
  }, this.getMonth = (r, o) => {
2551
2526
  var a;
2552
- return (a = this.overrides) != null && a.getMonth ? this.overrides.getMonth(r, this.options) : ns(r, this.options);
2527
+ return (a = this.overrides) != null && a.getMonth ? this.overrides.getMonth(r, this.options) : Ka(r, this.options);
2553
2528
  }, this.getYear = (r, o) => {
2554
2529
  var a;
2555
- return (a = this.overrides) != null && a.getYear ? this.overrides.getYear(r, this.options) : rs(r, this.options);
2530
+ return (a = this.overrides) != null && a.getYear ? this.overrides.getYear(r, this.options) : Xa(r, this.options);
2556
2531
  }, this.getWeek = (r, o) => {
2557
2532
  var a;
2558
- return (a = this.overrides) != null && a.getWeek ? this.overrides.getWeek(r, this.options) : Mt(r, this.options);
2533
+ return (a = this.overrides) != null && a.getWeek ? this.overrides.getWeek(r, this.options) : pt(r, this.options);
2559
2534
  }, this.isAfter = (r, o) => {
2560
2535
  var a;
2561
- return (a = this.overrides) != null && a.isAfter ? this.overrides.isAfter(r, o) : os(r, o);
2536
+ return (a = this.overrides) != null && a.isAfter ? this.overrides.isAfter(r, o) : La(r, o);
2562
2537
  }, this.isBefore = (r, o) => {
2563
2538
  var a;
2564
- return (a = this.overrides) != null && a.isBefore ? this.overrides.isBefore(r, o) : as(r, o);
2539
+ return (a = this.overrides) != null && a.isBefore ? this.overrides.isBefore(r, o) : Qa(r, o);
2565
2540
  }, this.isDate = (r) => {
2566
2541
  var o;
2567
- return (o = this.overrides) != null && o.isDate ? this.overrides.isDate(r) : Wn(r);
2542
+ return (o = this.overrides) != null && o.isDate ? this.overrides.isDate(r) : xn(r);
2568
2543
  }, this.isSameDay = (r, o) => {
2569
2544
  var a;
2570
- return (a = this.overrides) != null && a.isSameDay ? this.overrides.isSameDay(r, o) : Zo(r, o);
2545
+ return (a = this.overrides) != null && a.isSameDay ? this.overrides.isSameDay(r, o) : Vo(r, o);
2571
2546
  }, this.isSameMonth = (r, o) => {
2572
2547
  var a;
2573
- return (a = this.overrides) != null && a.isSameMonth ? this.overrides.isSameMonth(r, o) : ss(r, o);
2548
+ return (a = this.overrides) != null && a.isSameMonth ? this.overrides.isSameMonth(r, o) : Za(r, o);
2574
2549
  }, this.isSameYear = (r, o) => {
2575
2550
  var a;
2576
- return (a = this.overrides) != null && a.isSameYear ? this.overrides.isSameYear(r, o) : is(r, o);
2551
+ return (a = this.overrides) != null && a.isSameYear ? this.overrides.isSameYear(r, o) : Ja(r, o);
2577
2552
  }, this.max = (r) => {
2578
2553
  var o;
2579
- return (o = this.overrides) != null && o.max ? this.overrides.max(r) : Lo(r);
2554
+ return (o = this.overrides) != null && o.max ? this.overrides.max(r) : jo(r);
2580
2555
  }, this.min = (r) => {
2581
2556
  var o;
2582
- return (o = this.overrides) != null && o.min ? this.overrides.min(r) : Qo(r);
2557
+ return (o = this.overrides) != null && o.min ? this.overrides.min(r) : $o(r);
2583
2558
  }, this.setMonth = (r, o) => {
2584
2559
  var a;
2585
- return (a = this.overrides) != null && a.setMonth ? this.overrides.setMonth(r, o) : cs(r, o);
2560
+ return (a = this.overrides) != null && a.setMonth ? this.overrides.setMonth(r, o) : es(r, o);
2586
2561
  }, this.setYear = (r, o) => {
2587
2562
  var a;
2588
- return (a = this.overrides) != null && a.setYear ? this.overrides.setYear(r, o) : us(r, o);
2563
+ return (a = this.overrides) != null && a.setYear ? this.overrides.setYear(r, o) : ts(r, o);
2589
2564
  }, this.startOfBroadcastWeek = (r, o) => {
2590
2565
  var a;
2591
- return (a = this.overrides) != null && a.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : An(r, this);
2566
+ return (a = this.overrides) != null && a.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : Rn(r, this);
2592
2567
  }, this.startOfDay = (r) => {
2593
2568
  var o;
2594
2569
  return (o = this.overrides) != null && o.startOfDay ? this.overrides.startOfDay(r) : Pe(r);
@@ -2597,14 +2572,14 @@ class J {
2597
2572
  return (o = this.overrides) != null && o.startOfISOWeek ? this.overrides.startOfISOWeek(r) : We(r);
2598
2573
  }, this.startOfMonth = (r) => {
2599
2574
  var o;
2600
- return (o = this.overrides) != null && o.startOfMonth ? this.overrides.startOfMonth(r) : na(r);
2575
+ return (o = this.overrides) != null && o.startOfMonth ? this.overrides.startOfMonth(r) : Ko(r);
2601
2576
  }, this.startOfWeek = (r, o) => {
2602
2577
  var a;
2603
2578
  return (a = this.overrides) != null && a.startOfWeek ? this.overrides.startOfWeek(r, this.options) : Te(r, this.options);
2604
2579
  }, this.startOfYear = (r) => {
2605
2580
  var o;
2606
- return (o = this.overrides) != null && o.startOfYear ? this.overrides.startOfYear(r) : Fn(r);
2607
- }, this.options = { locale: Bn, ...t }, this.overrides = n;
2581
+ return (o = this.overrides) != null && o.startOfYear ? this.overrides.startOfYear(r) : _n(r);
2582
+ }, this.options = { locale: An, ...t }, this.overrides = n;
2608
2583
  }
2609
2584
  /**
2610
2585
  * Generates a mapping of Arabic digits (0-9) to the target numbering system
@@ -2692,7 +2667,7 @@ J.yearFirstLocales = /* @__PURE__ */ new Set([
2692
2667
  "zh-TW"
2693
2668
  ]);
2694
2669
  const de = new J();
2695
- class Hn {
2670
+ class Bn {
2696
2671
  constructor(t, n, r = de) {
2697
2672
  this.date = t, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(t, n)), this.dateLib = r, this.isoDate = r.format(t, "yyyy-MM-dd"), this.displayMonthId = r.format(n, "yyyy-MM"), this.dateMonthId = r.format(t, "yyyy-MM");
2698
2673
  }
@@ -2707,20 +2682,20 @@ class Hn {
2707
2682
  return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
2708
2683
  }
2709
2684
  }
2710
- class hs {
2685
+ class as {
2711
2686
  constructor(t, n) {
2712
2687
  this.date = t, this.weeks = n;
2713
2688
  }
2714
2689
  }
2715
- class ms {
2690
+ class ss {
2716
2691
  constructor(t, n) {
2717
2692
  this.days = n, this.weekNumber = t;
2718
2693
  }
2719
2694
  }
2720
- function ys(e) {
2695
+ function is(e) {
2721
2696
  return p.createElement("span", { ...e });
2722
2697
  }
2723
- function gs(e) {
2698
+ function cs(e) {
2724
2699
  const { size: t = 24, orientation: n = "left", className: r, style: o } = e;
2725
2700
  return p.createElement(
2726
2701
  "svg",
@@ -2731,11 +2706,11 @@ function gs(e) {
2731
2706
  n === "right" && p.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
2732
2707
  );
2733
2708
  }
2734
- function ws(e) {
2709
+ function us(e) {
2735
2710
  const { day: t, modifiers: n, ...r } = e;
2736
2711
  return p.createElement("td", { ...r });
2737
2712
  }
2738
- function vs(e) {
2713
+ function ds(e) {
2739
2714
  const { day: t, modifiers: n, ...r } = e, o = p.useRef(null);
2740
2715
  return p.useEffect(() => {
2741
2716
  var a;
@@ -2758,14 +2733,14 @@ var Q;
2758
2733
  (function(e) {
2759
2734
  e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
2760
2735
  })(Q || (Q = {}));
2761
- const qn = Er(void 0);
2736
+ const Hn = Sr(void 0);
2762
2737
  function Ue() {
2763
- const e = xr(qn);
2738
+ const e = Er(Hn);
2764
2739
  if (e === void 0)
2765
2740
  throw new Error("useDayPicker() must be used within a custom component.");
2766
2741
  return e;
2767
2742
  }
2768
- function bs(e) {
2743
+ function ls(e) {
2769
2744
  const { options: t, className: n, ...r } = e, { classNames: o, components: a, styles: s } = Ue(), i = [o[D.Dropdown], n].join(" "), c = t == null ? void 0 : t.find(({ value: u }) => u === r.value);
2770
2745
  return p.createElement(
2771
2746
  "span",
@@ -2779,31 +2754,31 @@ function bs(e) {
2779
2754
  )
2780
2755
  );
2781
2756
  }
2782
- function ps(e) {
2757
+ function fs(e) {
2783
2758
  return p.createElement("div", { ...e });
2784
2759
  }
2785
- function Ms(e) {
2760
+ function hs(e) {
2786
2761
  return p.createElement("div", { ...e });
2787
2762
  }
2788
- function Ds(e) {
2763
+ function ms(e) {
2789
2764
  const { calendarMonth: t, displayIndex: n, ...r } = e;
2790
2765
  return p.createElement("div", { ...r }, e.children);
2791
2766
  }
2792
- function Os(e) {
2767
+ function ys(e) {
2793
2768
  const { calendarMonth: t, displayIndex: n, ...r } = e;
2794
2769
  return p.createElement("div", { ...r });
2795
2770
  }
2796
- function ks(e) {
2771
+ function gs(e) {
2797
2772
  return p.createElement("table", { ...e });
2798
2773
  }
2799
- function Ts(e) {
2774
+ function ws(e) {
2800
2775
  return p.createElement("div", { ...e });
2801
2776
  }
2802
- function Ns(e) {
2777
+ function vs(e) {
2803
2778
  const { components: t } = Ue();
2804
2779
  return p.createElement(t.Dropdown, { ...e });
2805
2780
  }
2806
- function Cs(e) {
2781
+ function bs(e) {
2807
2782
  const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: o, ...a } = e, { components: s, classNames: i, styles: c, labels: { labelPrevious: u, labelNext: d } } = Ue(), f = ee((w) => {
2808
2783
  o && (n == null || n(w));
2809
2784
  }, [o, n]), g = ee((w) => {
@@ -2824,96 +2799,96 @@ function Cs(e) {
2824
2799
  )
2825
2800
  );
2826
2801
  }
2827
- function Ss(e) {
2802
+ function ps(e) {
2828
2803
  return p.createElement("button", { ...e });
2829
2804
  }
2830
- function Es(e) {
2805
+ function Ms(e) {
2831
2806
  return p.createElement("option", { ...e });
2832
2807
  }
2833
- function xs(e) {
2808
+ function Ds(e) {
2834
2809
  return p.createElement("button", { ...e });
2835
2810
  }
2836
- function Ws(e) {
2811
+ function Os(e) {
2837
2812
  const { rootRef: t, ...n } = e;
2838
2813
  return p.createElement("div", { ...n, ref: t });
2839
2814
  }
2840
- function Ps(e) {
2815
+ function ks(e) {
2841
2816
  return p.createElement("select", { ...e });
2842
2817
  }
2843
- function _s(e) {
2818
+ function Ts(e) {
2844
2819
  const { week: t, ...n } = e;
2845
2820
  return p.createElement("tr", { ...n });
2846
2821
  }
2847
- function Fs(e) {
2822
+ function Ns(e) {
2848
2823
  return p.createElement("th", { ...e });
2849
2824
  }
2850
- function Ys(e) {
2825
+ function Cs(e) {
2851
2826
  return p.createElement(
2852
2827
  "thead",
2853
2828
  { "aria-hidden": !0 },
2854
2829
  p.createElement("tr", { ...e })
2855
2830
  );
2856
2831
  }
2857
- function Is(e) {
2832
+ function Ss(e) {
2858
2833
  const { week: t, ...n } = e;
2859
2834
  return p.createElement("th", { ...n });
2860
2835
  }
2861
- function Rs(e) {
2836
+ function Es(e) {
2862
2837
  return p.createElement("th", { ...e });
2863
2838
  }
2864
- function As(e) {
2839
+ function xs(e) {
2865
2840
  return p.createElement("tbody", { ...e });
2866
2841
  }
2867
- function Bs(e) {
2842
+ function Ws(e) {
2868
2843
  const { components: t } = Ue();
2869
2844
  return p.createElement(t.Dropdown, { ...e });
2870
2845
  }
2871
- const Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2846
+ const Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2872
2847
  __proto__: null,
2873
- CaptionLabel: ys,
2874
- Chevron: gs,
2875
- Day: ws,
2876
- DayButton: vs,
2877
- Dropdown: bs,
2878
- DropdownNav: ps,
2879
- Footer: Ms,
2880
- Month: Ds,
2881
- MonthCaption: Os,
2882
- MonthGrid: ks,
2883
- Months: Ts,
2884
- MonthsDropdown: Ns,
2885
- Nav: Cs,
2886
- NextMonthButton: Ss,
2887
- Option: Es,
2888
- PreviousMonthButton: xs,
2889
- Root: Ws,
2890
- Select: Ps,
2891
- Week: _s,
2892
- WeekNumber: Is,
2893
- WeekNumberHeader: Rs,
2894
- Weekday: Fs,
2895
- Weekdays: Ys,
2896
- Weeks: As,
2897
- YearsDropdown: Bs
2848
+ CaptionLabel: is,
2849
+ Chevron: cs,
2850
+ Day: us,
2851
+ DayButton: ds,
2852
+ Dropdown: ls,
2853
+ DropdownNav: fs,
2854
+ Footer: hs,
2855
+ Month: ms,
2856
+ MonthCaption: ys,
2857
+ MonthGrid: gs,
2858
+ Months: ws,
2859
+ MonthsDropdown: vs,
2860
+ Nav: bs,
2861
+ NextMonthButton: ps,
2862
+ Option: Ms,
2863
+ PreviousMonthButton: Ds,
2864
+ Root: Os,
2865
+ Select: ks,
2866
+ Week: Ts,
2867
+ WeekNumber: Ss,
2868
+ WeekNumberHeader: Es,
2869
+ Weekday: Ns,
2870
+ Weekdays: Cs,
2871
+ Weeks: xs,
2872
+ YearsDropdown: Ws
2898
2873
  }, Symbol.toStringTag, { value: "Module" }));
2899
2874
  function me(e, t, n = !1, r = de) {
2900
2875
  let { from: o, to: a } = e;
2901
2876
  const { differenceInCalendarDays: s, isSameDay: i } = r;
2902
2877
  return o && a ? (s(a, o) < 0 && ([o, a] = [a, o]), s(t, o) >= (n ? 1 : 0) && s(a, t) >= (n ? 1 : 0)) : !n && a ? i(a, t) : !n && o ? i(o, t) : !1;
2903
2878
  }
2904
- function Dt(e) {
2879
+ function Mt(e) {
2905
2880
  return !!(e && typeof e == "object" && "before" in e && "after" in e);
2906
2881
  }
2907
2882
  function Ge(e) {
2908
2883
  return !!(e && typeof e == "object" && "from" in e);
2909
2884
  }
2910
- function Ot(e) {
2885
+ function Dt(e) {
2911
2886
  return !!(e && typeof e == "object" && "after" in e);
2912
2887
  }
2913
- function kt(e) {
2888
+ function Ot(e) {
2914
2889
  return !!(e && typeof e == "object" && "before" in e);
2915
2890
  }
2916
- function $n(e) {
2891
+ function qn(e) {
2917
2892
  return !!(e && typeof e == "object" && "dayOfWeek" in e);
2918
2893
  }
2919
2894
  function jn(e, t) {
@@ -2930,17 +2905,17 @@ function ye(e, t, n = de) {
2930
2905
  return i.some((c) => o(e, c));
2931
2906
  if (Ge(i))
2932
2907
  return me(i, e, !1, n);
2933
- if ($n(i))
2908
+ if (qn(i))
2934
2909
  return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
2935
- if (Dt(i)) {
2910
+ if (Mt(i)) {
2936
2911
  const c = a(i.before, e), u = a(i.after, e), d = c > 0, f = u < 0;
2937
2912
  return s(i.before, i.after) ? f && d : d || f;
2938
2913
  }
2939
- return Ot(i) ? a(e, i.after) > 0 : kt(i) ? a(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
2914
+ return Dt(i) ? a(e, i.after) > 0 : Ot(i) ? a(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
2940
2915
  });
2941
2916
  }
2942
- function qs(e, t, n, r, o) {
2943
- const { disabled: a, hidden: s, modifiers: i, showOutsideDays: c, broadcastCalendar: u, today: d = o.today() } = t, { isSameDay: f, isSameMonth: g, startOfMonth: w, isBefore: N, endOfMonth: b, isAfter: m } = o, T = n && w(n), y = r && b(r), h = {
2917
+ function _s(e, t, n, r, o) {
2918
+ const { disabled: a, hidden: s, modifiers: i, showOutsideDays: c, broadcastCalendar: u, today: d = o.today() } = t, { isSameDay: f, isSameMonth: g, startOfMonth: w, isBefore: N, endOfMonth: v, isAfter: m } = o, T = n && w(n), y = r && v(r), h = {
2944
2919
  [H.focused]: [],
2945
2920
  [H.outside]: [],
2946
2921
  [H.disabled]: [],
@@ -2948,11 +2923,11 @@ function qs(e, t, n, r, o) {
2948
2923
  [H.today]: []
2949
2924
  }, k = {};
2950
2925
  for (const M of e) {
2951
- const { date: l, displayMonth: O } = M, W = !!(O && !g(l, O)), P = !!(T && N(l, T)), F = !!(y && m(l, y)), B = !!(a && ye(l, a, o)), V = !!(s && ye(l, s, o)) || P || F || // Broadcast calendar will show outside days as default
2952
- !u && !c && W || u && c === !1 && W, U = f(l, d);
2953
- W && h.outside.push(M), B && h.disabled.push(M), V && h.hidden.push(M), U && h.today.push(M), i && Object.keys(i).forEach((S) => {
2954
- const z = i == null ? void 0 : i[S];
2955
- z && ye(l, z, o) && (k[S] ? k[S].push(M) : k[S] = [M]);
2926
+ const { date: l, displayMonth: O } = M, W = !!(O && !g(l, O)), P = !!(T && N(l, T)), F = !!(y && m(l, y)), B = !!(a && ye(l, a, o)), $ = !!(s && ye(l, s, o)) || P || F || // Broadcast calendar will show outside days as default
2927
+ !u && !c && W || u && c === !1 && W, z = f(l, d);
2928
+ W && h.outside.push(M), B && h.disabled.push(M), $ && h.hidden.push(M), z && h.today.push(M), i && Object.keys(i).forEach((C) => {
2929
+ const V = i == null ? void 0 : i[C];
2930
+ V && ye(l, V, o) && (k[C] ? k[C].push(M) : k[C] = [M]);
2956
2931
  });
2957
2932
  }
2958
2933
  return (M) => {
@@ -2976,16 +2951,16 @@ function qs(e, t, n, r, o) {
2976
2951
  };
2977
2952
  };
2978
2953
  }
2979
- function $s(e, t, n = {}) {
2954
+ function Fs(e, t, n = {}) {
2980
2955
  return Object.entries(e).filter(([, o]) => o === !0).reduce((o, [a]) => (n[a] ? o.push(n[a]) : t[H[a]] ? o.push(t[H[a]]) : t[oe[a]] && o.push(t[oe[a]]), o), [t[D.Day]]);
2981
2956
  }
2982
- function js(e) {
2957
+ function Ys(e) {
2983
2958
  return {
2984
- ...Hs,
2959
+ ...Ps,
2985
2960
  ...e
2986
2961
  };
2987
2962
  }
2988
- function Vs(e) {
2963
+ function Is(e) {
2989
2964
  const t = {
2990
2965
  "data-mode": e.mode ?? void 0,
2991
2966
  "data-required": "required" in e ? e.required : void 0,
@@ -2998,7 +2973,7 @@ function Vs(e) {
2998
2973
  n.startsWith("data-") && (t[n] = r);
2999
2974
  }), t;
3000
2975
  }
3001
- function zs() {
2976
+ function Rs() {
3002
2977
  const e = {};
3003
2978
  for (const t in D)
3004
2979
  e[D[t]] = `rdp-${D[t]}`;
@@ -3010,123 +2985,123 @@ function zs() {
3010
2985
  e[Q[t]] = `rdp-${Q[t]}`;
3011
2986
  return e;
3012
2987
  }
3013
- function Us(e, t, n) {
2988
+ function As(e, t, n) {
3014
2989
  return (n ?? new J(t)).formatMonthYear(e);
3015
2990
  }
3016
- function Gs(e, t, n) {
2991
+ function Bs(e, t, n) {
3017
2992
  return (n ?? new J(t)).format(e, "d");
3018
2993
  }
3019
- function Ks(e, t = de) {
2994
+ function Hs(e, t = de) {
3020
2995
  return t.format(e, "LLLL");
3021
2996
  }
3022
- function Xs(e, t, n) {
2997
+ function qs(e, t, n) {
3023
2998
  return (n ?? new J(t)).format(e, "cccccc");
3024
2999
  }
3025
- function Ls(e, t = de) {
3000
+ function js(e, t = de) {
3026
3001
  return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
3027
3002
  }
3028
- function Qs() {
3003
+ function $s() {
3029
3004
  return "";
3030
3005
  }
3031
- function Zs(e, t = de) {
3006
+ function Vs(e, t = de) {
3032
3007
  return t.format(e, "yyyy");
3033
3008
  }
3034
- const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3009
+ const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3035
3010
  __proto__: null,
3036
- formatCaption: Us,
3037
- formatDay: Gs,
3038
- formatMonthDropdown: Ks,
3039
- formatWeekNumber: Ls,
3040
- formatWeekNumberHeader: Qs,
3041
- formatWeekdayName: Xs,
3042
- formatYearDropdown: Zs
3011
+ formatCaption: As,
3012
+ formatDay: Bs,
3013
+ formatMonthDropdown: Hs,
3014
+ formatWeekNumber: js,
3015
+ formatWeekNumberHeader: $s,
3016
+ formatWeekdayName: qs,
3017
+ formatYearDropdown: Vs
3043
3018
  }, Symbol.toStringTag, { value: "Module" }));
3044
- function ei(e) {
3019
+ function Us(e) {
3045
3020
  return {
3046
- ...Js,
3021
+ ...zs,
3047
3022
  ...e
3048
3023
  };
3049
3024
  }
3050
- function Vn(e, t, n, r) {
3025
+ function $n(e, t, n, r) {
3051
3026
  let o = (r ?? new J(n)).format(e, "PPPP");
3052
3027
  return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
3053
3028
  }
3054
- function zn(e, t, n) {
3029
+ function Vn(e, t, n) {
3055
3030
  return (n ?? new J(t)).formatMonthYear(e);
3056
3031
  }
3057
- function Un(e, t, n, r) {
3032
+ function zn(e, t, n, r) {
3058
3033
  let o = (r ?? new J(n)).format(e, "PPPP");
3059
3034
  return t != null && t.today && (o = `Today, ${o}`), o;
3060
3035
  }
3061
- function Gn(e) {
3036
+ function Un(e) {
3062
3037
  return "Choose the Month";
3063
3038
  }
3064
- function Kn() {
3039
+ function Gn() {
3065
3040
  return "";
3066
3041
  }
3067
- const ti = "Go to the Next Month";
3068
- function Xn(e, t) {
3069
- return ti;
3042
+ const Gs = "Go to the Next Month";
3043
+ function Kn(e, t) {
3044
+ return Gs;
3070
3045
  }
3071
- function Ln(e) {
3046
+ function Xn(e) {
3072
3047
  return "Go to the Previous Month";
3073
3048
  }
3074
- function Qn(e, t, n) {
3049
+ function Ln(e, t, n) {
3075
3050
  return (n ?? new J(t)).format(e, "cccc");
3076
3051
  }
3077
- function Zn(e, t) {
3052
+ function Qn(e, t) {
3078
3053
  return `Week ${e}`;
3079
3054
  }
3080
- function Jn(e) {
3055
+ function Zn(e) {
3081
3056
  return "Week Number";
3082
3057
  }
3083
- function er(e) {
3058
+ function Jn(e) {
3084
3059
  return "Choose the Year";
3085
3060
  }
3086
- const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3061
+ const Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3087
3062
  __proto__: null,
3088
- labelDayButton: Vn,
3089
- labelGrid: zn,
3090
- labelGridcell: Un,
3091
- labelMonthDropdown: Gn,
3092
- labelNav: Kn,
3093
- labelNext: Xn,
3094
- labelPrevious: Ln,
3095
- labelWeekNumber: Zn,
3096
- labelWeekNumberHeader: Jn,
3097
- labelWeekday: Qn,
3098
- labelYearDropdown: er
3063
+ labelDayButton: $n,
3064
+ labelGrid: Vn,
3065
+ labelGridcell: zn,
3066
+ labelMonthDropdown: Un,
3067
+ labelNav: Gn,
3068
+ labelNext: Kn,
3069
+ labelPrevious: Xn,
3070
+ labelWeekNumber: Qn,
3071
+ labelWeekNumberHeader: Zn,
3072
+ labelWeekday: Ln,
3073
+ labelYearDropdown: Jn
3099
3074
  }, Symbol.toStringTag, { value: "Module" })), re = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
3100
- function ri(e, t) {
3075
+ function Xs(e, t) {
3101
3076
  var r;
3102
3077
  const n = ((r = t.locale) == null ? void 0 : r.labels) ?? {};
3103
3078
  return {
3104
- ...ni,
3079
+ ...Ks,
3105
3080
  ...e ?? {},
3106
- labelDayButton: re(Vn, e == null ? void 0 : e.labelDayButton, n.labelDayButton),
3107
- labelMonthDropdown: re(Gn, e == null ? void 0 : e.labelMonthDropdown, n.labelMonthDropdown),
3108
- labelNext: re(Xn, e == null ? void 0 : e.labelNext, n.labelNext),
3109
- labelPrevious: re(Ln, e == null ? void 0 : e.labelPrevious, n.labelPrevious),
3110
- labelWeekNumber: re(Zn, e == null ? void 0 : e.labelWeekNumber, n.labelWeekNumber),
3111
- labelYearDropdown: re(er, e == null ? void 0 : e.labelYearDropdown, n.labelYearDropdown),
3112
- labelGrid: re(zn, e == null ? void 0 : e.labelGrid, n.labelGrid),
3113
- labelGridcell: re(Un, e == null ? void 0 : e.labelGridcell, n.labelGridcell),
3114
- labelNav: re(Kn, e == null ? void 0 : e.labelNav, n.labelNav),
3115
- labelWeekNumberHeader: re(Jn, e == null ? void 0 : e.labelWeekNumberHeader, n.labelWeekNumberHeader),
3116
- labelWeekday: re(Qn, e == null ? void 0 : e.labelWeekday, n.labelWeekday)
3081
+ labelDayButton: re($n, e == null ? void 0 : e.labelDayButton, n.labelDayButton),
3082
+ labelMonthDropdown: re(Un, e == null ? void 0 : e.labelMonthDropdown, n.labelMonthDropdown),
3083
+ labelNext: re(Kn, e == null ? void 0 : e.labelNext, n.labelNext),
3084
+ labelPrevious: re(Xn, e == null ? void 0 : e.labelPrevious, n.labelPrevious),
3085
+ labelWeekNumber: re(Qn, e == null ? void 0 : e.labelWeekNumber, n.labelWeekNumber),
3086
+ labelYearDropdown: re(Jn, e == null ? void 0 : e.labelYearDropdown, n.labelYearDropdown),
3087
+ labelGrid: re(Vn, e == null ? void 0 : e.labelGrid, n.labelGrid),
3088
+ labelGridcell: re(zn, e == null ? void 0 : e.labelGridcell, n.labelGridcell),
3089
+ labelNav: re(Gn, e == null ? void 0 : e.labelNav, n.labelNav),
3090
+ labelWeekNumberHeader: re(Zn, e == null ? void 0 : e.labelWeekNumberHeader, n.labelWeekNumberHeader),
3091
+ labelWeekday: re(Ln, e == null ? void 0 : e.labelWeekday, n.labelWeekday)
3117
3092
  };
3118
3093
  }
3119
- function oi(e, t, n, r, o) {
3094
+ function Ls(e, t, n, r, o) {
3120
3095
  const { startOfMonth: a, startOfYear: s, endOfYear: i, eachMonthOfInterval: c, getMonth: u } = o;
3121
3096
  return c({
3122
3097
  start: s(e),
3123
3098
  end: i(e)
3124
3099
  }).map((g) => {
3125
- const w = r.formatMonthDropdown(g, o), N = u(g), b = t && g < a(t) || n && g > a(n) || !1;
3126
- return { value: N, label: w, disabled: b };
3100
+ const w = r.formatMonthDropdown(g, o), N = u(g), v = t && g < a(t) || n && g > a(n) || !1;
3101
+ return { value: N, label: w, disabled: v };
3127
3102
  });
3128
3103
  }
3129
- function ai(e, t = {}, n = {}) {
3104
+ function Qs(e, t = {}, n = {}) {
3130
3105
  let r = { ...t == null ? void 0 : t[D.Day] };
3131
3106
  return Object.entries(e).filter(([, o]) => o === !0).forEach(([o]) => {
3132
3107
  r = {
@@ -3135,7 +3110,7 @@ function ai(e, t = {}, n = {}) {
3135
3110
  };
3136
3111
  }), r;
3137
3112
  }
3138
- function si(e, t, n, r) {
3113
+ function Zs(e, t, n, r) {
3139
3114
  const o = r ?? e.today(), a = n ? e.startOfBroadcastWeek(o, e) : t ? e.startOfISOWeek(o) : e.startOfWeek(o), s = [];
3140
3115
  for (let i = 0; i < 7; i++) {
3141
3116
  const c = e.addDays(a, i);
@@ -3143,7 +3118,7 @@ function si(e, t, n, r) {
3143
3118
  }
3144
3119
  return s;
3145
3120
  }
3146
- function ii(e, t, n, r, o = !1) {
3121
+ function Js(e, t, n, r, o = !1) {
3147
3122
  if (!e || !t)
3148
3123
  return;
3149
3124
  const { startOfYear: a, endOfYear: s, eachYearOfInterval: i, getYear: c } = r, u = a(e), d = s(t), f = i({ start: u, end: d });
@@ -3156,18 +3131,18 @@ function ii(e, t, n, r, o = !1) {
3156
3131
  };
3157
3132
  });
3158
3133
  }
3159
- function ci(e, t = {}) {
3134
+ function ei(e, t = {}) {
3160
3135
  var i;
3161
3136
  const { weekStartsOn: n, locale: r } = t, o = n ?? ((i = r == null ? void 0 : r.options) == null ? void 0 : i.weekStartsOn) ?? 0, a = (c) => {
3162
3137
  const u = typeof c == "number" || typeof c == "string" ? new Date(c) : c;
3163
- return new K(u.getFullYear(), u.getMonth(), u.getDate(), 12, 0, 0, e);
3138
+ return new G(u.getFullYear(), u.getMonth(), u.getDate(), 12, 0, 0, e);
3164
3139
  }, s = (c) => {
3165
3140
  const u = a(c);
3166
3141
  return new Date(u.getFullYear(), u.getMonth(), u.getDate(), 0, 0, 0, 0);
3167
3142
  };
3168
3143
  return {
3169
- today: () => a(K.tz(e)),
3170
- newDate: (c, u, d) => new K(c, u, d, 12, 0, 0, e),
3144
+ today: () => a(G.tz(e)),
3145
+ newDate: (c, u, d) => new G(c, u, d, 12, 0, 0, e),
3171
3146
  startOfDay: (c) => a(c),
3172
3147
  startOfWeek: (c, u) => {
3173
3148
  const d = a(c), f = (u == null ? void 0 : u.weekStartsOn) ?? o, g = (d.getDay() - f + 7) % 7;
@@ -3202,9 +3177,9 @@ function ci(e, t = {}) {
3202
3177
  return u.setMonth(11, 31), u;
3203
3178
  },
3204
3179
  eachMonthOfInterval: (c) => {
3205
- const u = a(c.start), d = a(c.end), f = [], g = new K(u.getFullYear(), u.getMonth(), 1, 12, 0, 0, e), w = d.getFullYear() * 12 + d.getMonth();
3180
+ const u = a(c.start), d = a(c.end), f = [], g = new G(u.getFullYear(), u.getMonth(), 1, 12, 0, 0, e), w = d.getFullYear() * 12 + d.getMonth();
3206
3181
  for (; g.getFullYear() * 12 + g.getMonth() <= w; )
3207
- f.push(new K(g, e)), g.setMonth(g.getMonth() + 1, 1);
3182
+ f.push(new G(g, e)), g.setMonth(g.getMonth() + 1, 1);
3208
3183
  return f;
3209
3184
  },
3210
3185
  // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
@@ -3226,61 +3201,61 @@ function ci(e, t = {}) {
3226
3201
  return d.setFullYear(d.getFullYear() + u), d;
3227
3202
  },
3228
3203
  eachYearOfInterval: (c) => {
3229
- const u = a(c.start), d = a(c.end), f = [], g = new K(u.getFullYear(), 0, 1, 12, 0, 0, e);
3204
+ const u = a(c.start), d = a(c.end), f = [], g = new G(u.getFullYear(), 0, 1, 12, 0, 0, e);
3230
3205
  for (; g.getFullYear() <= d.getFullYear(); )
3231
- f.push(new K(g, e)), g.setFullYear(g.getFullYear() + 1, 0, 1);
3206
+ f.push(new G(g, e)), g.setFullYear(g.getFullYear() + 1, 0, 1);
3232
3207
  return f;
3233
3208
  },
3234
3209
  getWeek: (c, u) => {
3235
3210
  var f;
3236
3211
  const d = s(c);
3237
- return Mt(d, {
3212
+ return pt(d, {
3238
3213
  weekStartsOn: (u == null ? void 0 : u.weekStartsOn) ?? o,
3239
3214
  firstWeekContainsDate: (u == null ? void 0 : u.firstWeekContainsDate) ?? ((f = r == null ? void 0 : r.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1
3240
3215
  });
3241
3216
  },
3242
3217
  getISOWeek: (c) => {
3243
3218
  const u = s(c);
3244
- return pt(u);
3219
+ return bt(u);
3245
3220
  },
3246
3221
  differenceInCalendarDays: (c, u) => {
3247
3222
  const d = s(c), f = s(u);
3248
- return bt(d, f);
3223
+ return vt(d, f);
3249
3224
  },
3250
3225
  differenceInCalendarMonths: (c, u) => {
3251
3226
  const d = s(c), f = s(u);
3252
- return Pn(d, f);
3227
+ return Wn(d, f);
3253
3228
  }
3254
3229
  };
3255
3230
  }
3256
3231
  const Ye = (e) => e instanceof HTMLElement ? e : null, rt = (e) => [
3257
3232
  ...e.querySelectorAll("[data-animated-month]") ?? []
3258
- ], ui = (e) => Ye(e.querySelector("[data-animated-month]")), ot = (e) => Ye(e.querySelector("[data-animated-caption]")), at = (e) => Ye(e.querySelector("[data-animated-weeks]")), di = (e) => Ye(e.querySelector("[data-animated-nav]")), li = (e) => Ye(e.querySelector("[data-animated-weekdays]"));
3259
- function fi(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
3233
+ ], ti = (e) => Ye(e.querySelector("[data-animated-month]")), ot = (e) => Ye(e.querySelector("[data-animated-caption]")), at = (e) => Ye(e.querySelector("[data-animated-weeks]")), ni = (e) => Ye(e.querySelector("[data-animated-nav]")), ri = (e) => Ye(e.querySelector("[data-animated-weekdays]"));
3234
+ function oi(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
3260
3235
  const s = qe(null), i = qe(r), c = qe(!1);
3261
- Wr(() => {
3236
+ xr(() => {
3262
3237
  const u = i.current;
3263
3238
  if (i.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
3264
3239
  !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
3265
3240
  r.length === 0 || u.length === 0 || r.length !== u.length)
3266
3241
  return;
3267
- const d = a.isSameMonth(r[0].date, u[0].date), f = a.isAfter(r[0].date, u[0].date), g = f ? n[Q.caption_after_enter] : n[Q.caption_before_enter], w = f ? n[Q.weeks_after_enter] : n[Q.weeks_before_enter], N = s.current, b = e.current.cloneNode(!0);
3268
- if (b instanceof HTMLElement ? (rt(b).forEach((h) => {
3242
+ const d = a.isSameMonth(r[0].date, u[0].date), f = a.isAfter(r[0].date, u[0].date), g = f ? n[Q.caption_after_enter] : n[Q.caption_before_enter], w = f ? n[Q.weeks_after_enter] : n[Q.weeks_before_enter], N = s.current, v = e.current.cloneNode(!0);
3243
+ if (v instanceof HTMLElement ? (rt(v).forEach((h) => {
3269
3244
  if (!(h instanceof HTMLElement))
3270
3245
  return;
3271
- const k = ui(h);
3246
+ const k = ti(h);
3272
3247
  k && h.contains(k) && h.removeChild(k);
3273
3248
  const M = ot(h);
3274
3249
  M && M.classList.remove(g);
3275
3250
  const l = at(h);
3276
3251
  l && l.classList.remove(w);
3277
- }), s.current = b) : s.current = null, c.current || d || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
3252
+ }), s.current = v) : s.current = null, c.current || d || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
3278
3253
  o)
3279
3254
  return;
3280
3255
  const m = N instanceof HTMLElement ? rt(N) : [], T = rt(e.current);
3281
3256
  if (T != null && T.every((y) => y instanceof HTMLElement) && (m != null && m.every((y) => y instanceof HTMLElement))) {
3282
3257
  c.current = !0, e.current.style.isolation = "isolate";
3283
- const y = di(e.current);
3258
+ const y = ni(e.current);
3284
3259
  y && (y.style.zIndex = "1"), T.forEach((h, k) => {
3285
3260
  const M = m[k];
3286
3261
  if (!M)
@@ -3294,7 +3269,7 @@ function fi(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
3294
3269
  c.current = !1, e.current && (e.current.style.isolation = ""), y && (y.style.zIndex = ""), l && l.classList.remove(g), O && O.classList.remove(w), h.style.position = "", h.style.overflow = "", h.contains(M) && h.removeChild(M);
3295
3270
  };
3296
3271
  M.style.pointerEvents = "none", M.style.position = "absolute", M.style.overflow = "hidden", M.setAttribute("aria-hidden", "true");
3297
- const P = li(M);
3272
+ const P = ri(M);
3298
3273
  P && (P.style.opacity = "0");
3299
3274
  const F = ot(M);
3300
3275
  F && (F.classList.add(f ? n[Q.caption_before_exit] : n[Q.caption_after_exit]), F.addEventListener("animationend", W));
@@ -3304,30 +3279,30 @@ function fi(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
3304
3279
  }
3305
3280
  });
3306
3281
  }
3307
- function hi(e, t, n, r) {
3308
- const o = e[0], a = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: f, endOfBroadcastWeek: g, endOfISOWeek: w, endOfMonth: N, endOfWeek: b, isAfter: m, startOfBroadcastWeek: T, startOfISOWeek: y, startOfWeek: h } = r, k = c ? T(o, r) : s ? y(o) : h(o), M = c ? g(a) : s ? w(N(a)) : b(N(a)), l = t && (c ? g(t) : s ? w(t) : b(t)), O = l && m(M, l) ? l : M, W = d(O, k), P = f(a, o) + 1, F = [];
3309
- for (let U = 0; U <= W; U++) {
3310
- const S = u(k, U);
3311
- F.push(S);
3312
- }
3313
- const V = (c ? 35 : 42) * P;
3314
- if (i && F.length < V) {
3315
- const U = V - F.length;
3316
- for (let S = 0; S < U; S++) {
3317
- const z = u(F[F.length - 1], 1);
3318
- F.push(z);
3282
+ function ai(e, t, n, r) {
3283
+ const o = e[0], a = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: f, endOfBroadcastWeek: g, endOfISOWeek: w, endOfMonth: N, endOfWeek: v, isAfter: m, startOfBroadcastWeek: T, startOfISOWeek: y, startOfWeek: h } = r, k = c ? T(o, r) : s ? y(o) : h(o), M = c ? g(a) : s ? w(N(a)) : v(N(a)), l = t && (c ? g(t) : s ? w(t) : v(t)), O = l && m(M, l) ? l : M, W = d(O, k), P = f(a, o) + 1, F = [];
3284
+ for (let z = 0; z <= W; z++) {
3285
+ const C = u(k, z);
3286
+ F.push(C);
3287
+ }
3288
+ const $ = (c ? 35 : 42) * P;
3289
+ if (i && F.length < $) {
3290
+ const z = $ - F.length;
3291
+ for (let C = 0; C < z; C++) {
3292
+ const V = u(F[F.length - 1], 1);
3293
+ F.push(V);
3319
3294
  }
3320
3295
  }
3321
3296
  return F;
3322
3297
  }
3323
- function mi(e) {
3298
+ function si(e) {
3324
3299
  const t = [];
3325
3300
  return e.reduce((n, r) => {
3326
3301
  const o = r.weeks.reduce((a, s) => a.concat(s.days.slice()), t.slice());
3327
3302
  return n.concat(o.slice());
3328
3303
  }, t.slice());
3329
3304
  }
3330
- function yi(e, t, n, r) {
3305
+ function ii(e, t, n, r) {
3331
3306
  const { numberOfMonths: o = 1 } = n, a = [];
3332
3307
  for (let s = 0; s < o; s++) {
3333
3308
  const i = r.addMonths(e, s);
@@ -3337,7 +3312,7 @@ function yi(e, t, n, r) {
3337
3312
  }
3338
3313
  return a;
3339
3314
  }
3340
- function zt(e, t, n, r) {
3315
+ function Vt(e, t, n, r) {
3341
3316
  const { month: o, defaultMonth: a, today: s = r.today(), numberOfMonths: i = 1 } = e;
3342
3317
  let c = o || a || s;
3343
3318
  const { differenceInCalendarMonths: u, addMonths: d, startOfMonth: f } = r;
@@ -3347,8 +3322,8 @@ function zt(e, t, n, r) {
3347
3322
  }
3348
3323
  return t && u(c, t) < 0 && (c = t), f(c);
3349
3324
  }
3350
- function gi(e, t, n, r) {
3351
- const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: s, endOfMonth: i, endOfWeek: c, getISOWeek: u, getWeek: d, startOfBroadcastWeek: f, startOfISOWeek: g, startOfWeek: w } = r, N = e.reduce((b, m) => {
3325
+ function ci(e, t, n, r) {
3326
+ const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: s, endOfMonth: i, endOfWeek: c, getISOWeek: u, getWeek: d, startOfBroadcastWeek: f, startOfISOWeek: g, startOfWeek: w } = r, N = e.reduce((v, m) => {
3352
3327
  const T = n.broadcastCalendar ? f(m, r) : n.ISOWeek ? g(m) : w(m), y = n.broadcastCalendar ? a(m) : n.ISOWeek ? s(i(m)) : c(i(m)), h = t.filter((O) => O >= T && O <= y), k = n.broadcastCalendar ? 35 : 42;
3353
3328
  if (n.fixedWeeks && h.length < k) {
3354
3329
  const O = t.filter((W) => {
@@ -3358,14 +3333,14 @@ function gi(e, t, n, r) {
3358
3333
  h.push(...O);
3359
3334
  }
3360
3335
  const M = h.reduce((O, W) => {
3361
- const P = n.ISOWeek ? u(W) : d(W), F = O.find((V) => V.weekNumber === P), B = new Hn(W, m, r);
3362
- return F ? F.days.push(B) : O.push(new ms(P, [B])), O;
3363
- }, []), l = new hs(m, M);
3364
- return b.push(l), b;
3336
+ const P = n.ISOWeek ? u(W) : d(W), F = O.find(($) => $.weekNumber === P), B = new Bn(W, m, r);
3337
+ return F ? F.days.push(B) : O.push(new ss(P, [B])), O;
3338
+ }, []), l = new as(m, M);
3339
+ return v.push(l), v;
3365
3340
  }, []);
3366
3341
  return n.reverseMonths ? N.reverse() : N;
3367
3342
  }
3368
- function wi(e, t) {
3343
+ function ui(e, t) {
3369
3344
  let { startMonth: n, endMonth: r } = e;
3370
3345
  const { startOfYear: o, startOfDay: a, startOfMonth: s, endOfMonth: i, addYears: c, endOfYear: u, today: d } = t, f = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
3371
3346
  return n ? n = s(n) : !n && f && (n = o(c(e.today ?? d(), -100))), r ? r = i(r) : !r && f && (r = u(e.today ?? d())), [
@@ -3373,7 +3348,7 @@ function wi(e, t) {
3373
3348
  r && a(r)
3374
3349
  ];
3375
3350
  }
3376
- function vi(e, t, n, r) {
3351
+ function di(e, t, n, r) {
3377
3352
  if (n.disableNavigation)
3378
3353
  return;
3379
3354
  const { pagedNavigation: o, numberOfMonths: a = 1 } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: c } = r, u = o ? a : 1, d = s(e);
@@ -3382,7 +3357,7 @@ function vi(e, t, n, r) {
3382
3357
  if (!(c(t, e) < a))
3383
3358
  return i(d, u);
3384
3359
  }
3385
- function bi(e, t, n, r) {
3360
+ function li(e, t, n, r) {
3386
3361
  if (n.disableNavigation)
3387
3362
  return;
3388
3363
  const { pagedNavigation: o, numberOfMonths: a } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: c } = r, u = o ? a ?? 1 : 1, d = s(e);
@@ -3391,7 +3366,7 @@ function bi(e, t, n, r) {
3391
3366
  if (!(c(d, t) <= 0))
3392
3367
  return i(d, -u);
3393
3368
  }
3394
- function pi(e) {
3369
+ function fi(e) {
3395
3370
  const t = [];
3396
3371
  return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
3397
3372
  }
@@ -3399,28 +3374,28 @@ function Ke(e, t) {
3399
3374
  const [n, r] = it(e);
3400
3375
  return [t === void 0 ? n : t, r];
3401
3376
  }
3402
- function Mi(e, t) {
3377
+ function hi(e, t) {
3403
3378
  var k;
3404
- const [n, r] = wi(e, t), { startOfMonth: o, endOfMonth: a } = t, s = zt(e, n, r, t), [i, c] = Ke(
3379
+ const [n, r] = ui(e, t), { startOfMonth: o, endOfMonth: a } = t, s = Vt(e, n, r, t), [i, c] = Ke(
3405
3380
  s,
3406
3381
  // initialMonth is always computed from props.month if provided
3407
3382
  e.month ? s : void 0
3408
3383
  );
3409
- Pr(() => {
3410
- const M = zt(e, n, r, t);
3384
+ Wr(() => {
3385
+ const M = Vt(e, n, r, t);
3411
3386
  c(M);
3412
3387
  }, [e.timeZone]);
3413
- const { months: u, weeks: d, days: f, previousMonth: g, nextMonth: w } = $e(() => {
3414
- const M = yi(i, r, { numberOfMonths: e.numberOfMonths }, t), l = hi(M, e.endMonth ? a(e.endMonth) : void 0, {
3388
+ const { months: u, weeks: d, days: f, previousMonth: g, nextMonth: w } = je(() => {
3389
+ const M = ii(i, r, { numberOfMonths: e.numberOfMonths }, t), l = ai(M, e.endMonth ? a(e.endMonth) : void 0, {
3415
3390
  ISOWeek: e.ISOWeek,
3416
3391
  fixedWeeks: e.fixedWeeks,
3417
3392
  broadcastCalendar: e.broadcastCalendar
3418
- }, t), O = gi(M, l, {
3393
+ }, t), O = ci(M, l, {
3419
3394
  broadcastCalendar: e.broadcastCalendar,
3420
3395
  fixedWeeks: e.fixedWeeks,
3421
3396
  ISOWeek: e.ISOWeek,
3422
3397
  reverseMonths: e.reverseMonths
3423
- }, t), W = pi(O), P = mi(O), F = bi(i, n, e, t), B = vi(i, r, e, t);
3398
+ }, t), W = fi(O), P = si(O), F = li(i, n, e, t), B = di(i, r, e, t);
3424
3399
  return {
3425
3400
  months: O,
3426
3401
  weeks: W,
@@ -3441,11 +3416,11 @@ function Mi(e, t) {
3441
3416
  e.numberOfMonths,
3442
3417
  e.pagedNavigation,
3443
3418
  e.reverseMonths
3444
- ]), { disableNavigation: N, onMonthChange: b } = e, m = (M) => d.some((l) => l.days.some((O) => O.isEqualTo(M))), T = (M) => {
3419
+ ]), { disableNavigation: N, onMonthChange: v } = e, m = (M) => d.some((l) => l.days.some((O) => O.isEqualTo(M))), T = (M) => {
3445
3420
  if (N)
3446
3421
  return;
3447
3422
  let l = o(M);
3448
- n && l < o(n) && (l = o(n)), r && l > o(r) && (l = o(r)), c(l), b == null || b(l);
3423
+ n && l < o(n) && (l = o(n)), r && l > o(r) && (l = o(r)), c(l), v == null || v(l);
3449
3424
  };
3450
3425
  return {
3451
3426
  months: u,
@@ -3465,57 +3440,57 @@ var ie;
3465
3440
  (function(e) {
3466
3441
  e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
3467
3442
  })(ie || (ie = {}));
3468
- function Ut(e) {
3443
+ function zt(e) {
3469
3444
  return !e[H.disabled] && !e[H.hidden] && !e[H.outside];
3470
3445
  }
3471
- function Di(e, t, n, r) {
3446
+ function mi(e, t, n, r) {
3472
3447
  let o, a = -1;
3473
3448
  for (const s of e) {
3474
3449
  const i = t(s);
3475
- Ut(i) && (i[H.focused] && a < ie.FocusedModifier ? (o = s, a = ie.FocusedModifier) : r != null && r.isEqualTo(s) && a < ie.LastFocused ? (o = s, a = ie.LastFocused) : n(s.date) && a < ie.Selected ? (o = s, a = ie.Selected) : i[H.today] && a < ie.Today && (o = s, a = ie.Today));
3450
+ zt(i) && (i[H.focused] && a < ie.FocusedModifier ? (o = s, a = ie.FocusedModifier) : r != null && r.isEqualTo(s) && a < ie.LastFocused ? (o = s, a = ie.LastFocused) : n(s.date) && a < ie.Selected ? (o = s, a = ie.Selected) : i[H.today] && a < ie.Today && (o = s, a = ie.Today));
3476
3451
  }
3477
- return o || (o = e.find((s) => Ut(t(s)))), o;
3452
+ return o || (o = e.find((s) => zt(t(s)))), o;
3478
3453
  }
3479
- function Oi(e, t, n, r, o, a, s) {
3480
- const { ISOWeek: i, broadcastCalendar: c } = a, { addDays: u, addMonths: d, addWeeks: f, addYears: g, endOfBroadcastWeek: w, endOfISOWeek: N, endOfWeek: b, max: m, min: T, startOfBroadcastWeek: y, startOfISOWeek: h, startOfWeek: k } = s;
3454
+ function yi(e, t, n, r, o, a, s) {
3455
+ const { ISOWeek: i, broadcastCalendar: c } = a, { addDays: u, addMonths: d, addWeeks: f, addYears: g, endOfBroadcastWeek: w, endOfISOWeek: N, endOfWeek: v, max: m, min: T, startOfBroadcastWeek: y, startOfISOWeek: h, startOfWeek: k } = s;
3481
3456
  let l = {
3482
3457
  day: u,
3483
3458
  week: f,
3484
3459
  month: d,
3485
3460
  year: g,
3486
3461
  startOfWeek: (O) => c ? y(O, s) : i ? h(O) : k(O),
3487
- endOfWeek: (O) => c ? w(O) : i ? N(O) : b(O)
3462
+ endOfWeek: (O) => c ? w(O) : i ? N(O) : v(O)
3488
3463
  }[e](n, t === "after" ? 1 : -1);
3489
3464
  return t === "before" && r ? l = m([r, l]) : t === "after" && o && (l = T([o, l])), l;
3490
3465
  }
3491
- function tr(e, t, n, r, o, a, s, i = 0) {
3466
+ function er(e, t, n, r, o, a, s, i = 0) {
3492
3467
  if (i > 365)
3493
3468
  return;
3494
- const c = Oi(e, t, n.date, r, o, a, s), u = !!(a.disabled && ye(c, a.disabled, s)), d = !!(a.hidden && ye(c, a.hidden, s)), f = c, g = new Hn(c, f, s);
3495
- return !u && !d ? g : tr(e, t, g, r, o, a, s, i + 1);
3469
+ const c = yi(e, t, n.date, r, o, a, s), u = !!(a.disabled && ye(c, a.disabled, s)), d = !!(a.hidden && ye(c, a.hidden, s)), f = c, g = new Bn(c, f, s);
3470
+ return !u && !d ? g : er(e, t, g, r, o, a, s, i + 1);
3496
3471
  }
3497
- function ki(e, t, n, r, o) {
3498
- const { autoFocus: a } = e, [s, i] = it(), c = Di(t.days, n, r || (() => !1), s), [u, d] = it(a ? c : void 0);
3472
+ function gi(e, t, n, r, o) {
3473
+ const { autoFocus: a } = e, [s, i] = it(), c = mi(t.days, n, r || (() => !1), s), [u, d] = it(a ? c : void 0);
3499
3474
  return {
3500
- isFocusTarget: (b) => !!(c != null && c.isEqualTo(b)),
3475
+ isFocusTarget: (v) => !!(c != null && c.isEqualTo(v)),
3501
3476
  setFocused: d,
3502
3477
  focused: u,
3503
3478
  blur: () => {
3504
3479
  i(u), d(void 0);
3505
3480
  },
3506
- moveFocus: (b, m) => {
3481
+ moveFocus: (v, m) => {
3507
3482
  if (!u)
3508
3483
  return;
3509
- const T = tr(b, m, u, t.navStart, t.navEnd, e, o);
3484
+ const T = er(v, m, u, t.navStart, t.navEnd, e, o);
3510
3485
  T && (e.disableNavigation && !t.days.some((h) => h.isEqualTo(T)) || (t.goToDay(T), d(T)));
3511
3486
  }
3512
3487
  };
3513
3488
  }
3514
- function Ti(e, t) {
3489
+ function wi(e, t) {
3515
3490
  const { selected: n, required: r, onSelect: o } = e, [a, s] = Ke(n, o ? n : void 0), i = o ? n : a, { isSameDay: c } = t, u = (w) => (i == null ? void 0 : i.some((N) => c(N, w))) ?? !1, { min: d, max: f } = e;
3516
3491
  return {
3517
3492
  selected: i,
3518
- select: (w, N, b) => {
3493
+ select: (w, N, v) => {
3519
3494
  let m = [...i ?? []];
3520
3495
  if (u(w)) {
3521
3496
  if ((i == null ? void 0 : i.length) === d || r && (i == null ? void 0 : i.length) === 1)
@@ -3523,12 +3498,12 @@ function Ti(e, t) {
3523
3498
  m = i == null ? void 0 : i.filter((T) => !c(T, w));
3524
3499
  } else
3525
3500
  (i == null ? void 0 : i.length) === f ? m = [w] : m = [...m, w];
3526
- return o || s(m), o == null || o(m, w, N, b), m;
3501
+ return o || s(m), o == null || o(m, w, N, v), m;
3527
3502
  },
3528
3503
  isSelected: u
3529
3504
  };
3530
3505
  }
3531
- function Ni(e, t, n = 0, r = 0, o = !1, a = de) {
3506
+ function vi(e, t, n = 0, r = 0, o = !1, a = de) {
3532
3507
  const { from: s, to: i } = t || {}, { isSameDay: c, isAfter: u, isBefore: d } = a;
3533
3508
  let f;
3534
3509
  if (!s && !i)
@@ -3556,7 +3531,7 @@ function Ni(e, t, n = 0, r = 0, o = !1, a = de) {
3556
3531
  }
3557
3532
  return f;
3558
3533
  }
3559
- function Ci(e, t, n = de) {
3534
+ function bi(e, t, n = de) {
3560
3535
  const r = Array.isArray(t) ? t : [t];
3561
3536
  let o = e.from;
3562
3537
  const a = n.differenceInCalendarDays(e.to, e.from), s = Math.min(a, 6);
@@ -3567,15 +3542,15 @@ function Ci(e, t, n = de) {
3567
3542
  }
3568
3543
  return !1;
3569
3544
  }
3570
- function Gt(e, t, n = de) {
3545
+ function Ut(e, t, n = de) {
3571
3546
  return me(e, t.from, !1, n) || me(e, t.to, !1, n) || me(t, e.from, !1, n) || me(t, e.to, !1, n);
3572
3547
  }
3573
- function Si(e, t, n = de) {
3548
+ function pi(e, t, n = de) {
3574
3549
  const r = Array.isArray(t) ? t : [t];
3575
- if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? me(e, i, !1, n) : jn(i, n) ? i.some((c) => me(e, c, !1, n)) : Ge(i) ? i.from && i.to ? Gt(e, { from: i.from, to: i.to }, n) : !1 : $n(i) ? Ci(e, i.dayOfWeek, n) : Dt(i) ? n.isAfter(i.before, i.after) ? Gt(e, {
3550
+ if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? me(e, i, !1, n) : jn(i, n) ? i.some((c) => me(e, c, !1, n)) : Ge(i) ? i.from && i.to ? Ut(e, { from: i.from, to: i.to }, n) : !1 : qn(i) ? bi(e, i.dayOfWeek, n) : Mt(i) ? n.isAfter(i.before, i.after) ? Ut(e, {
3576
3551
  from: n.addDays(i.after, 1),
3577
3552
  to: n.addDays(i.before, -1)
3578
- }, n) : ye(e.from, i, n) || ye(e.to, i, n) : Ot(i) || kt(i) ? ye(e.from, i, n) || ye(e.to, i, n) : !1))
3553
+ }, n) : ye(e.from, i, n) || ye(e.to, i, n) : Dt(i) || Ot(i) ? ye(e.from, i, n) || ye(e.to, i, n) : !1))
3579
3554
  return !0;
3580
3555
  const s = r.filter((i) => typeof i == "function");
3581
3556
  if (s.length) {
@@ -3589,23 +3564,23 @@ function Si(e, t, n = de) {
3589
3564
  }
3590
3565
  return !1;
3591
3566
  }
3592
- function Ei(e, t) {
3567
+ function Mi(e, t) {
3593
3568
  const { disabled: n, excludeDisabled: r, resetOnSelect: o, selected: a, required: s, onSelect: i } = e, [c, u] = Ke(a, i ? a : void 0), d = i ? a : c;
3594
3569
  return {
3595
3570
  selected: d,
3596
- select: (w, N, b) => {
3571
+ select: (w, N, v) => {
3597
3572
  const { min: m, max: T } = e;
3598
3573
  let y;
3599
3574
  if (w) {
3600
3575
  const h = d == null ? void 0 : d.from, k = d == null ? void 0 : d.to, M = !!h && !!k, l = !!h && !!k && t.isSameDay(h, k) && t.isSameDay(w, h);
3601
- o && (M || !(d != null && d.from)) ? !s && l ? y = void 0 : y = { from: w, to: void 0 } : y = Ni(w, d, m, T, s, t);
3576
+ o && (M || !(d != null && d.from)) ? !s && l ? y = void 0 : y = { from: w, to: void 0 } : y = vi(w, d, m, T, s, t);
3602
3577
  }
3603
- return r && n && (y != null && y.from) && y.to && Si({ from: y.from, to: y.to }, n, t) && (y.from = w, y.to = void 0), i || u(y), i == null || i(y, w, N, b), y;
3578
+ return r && n && (y != null && y.from) && y.to && pi({ from: y.from, to: y.to }, n, t) && (y.from = w, y.to = void 0), i || u(y), i == null || i(y, w, N, v), y;
3604
3579
  },
3605
3580
  isSelected: (w) => d && me(d, w, !1, t)
3606
3581
  };
3607
3582
  }
3608
- function xi(e, t) {
3583
+ function Di(e, t) {
3609
3584
  const { selected: n, required: r, onSelect: o } = e, [a, s] = Ke(n, o ? n : void 0), i = o ? n : a, { isSameDay: c } = t;
3610
3585
  return {
3611
3586
  selected: i,
@@ -3616,8 +3591,8 @@ function xi(e, t) {
3616
3591
  isSelected: (f) => i ? c(i, f) : !1
3617
3592
  };
3618
3593
  }
3619
- function Wi(e, t) {
3620
- const n = xi(e, t), r = Ti(e, t), o = Ei(e, t);
3594
+ function Oi(e, t) {
3595
+ const n = Di(e, t), r = wi(e, t), o = Mi(e, t);
3621
3596
  switch (e.mode) {
3622
3597
  case "single":
3623
3598
  return n;
@@ -3630,36 +3605,36 @@ function Wi(e, t) {
3630
3605
  }
3631
3606
  }
3632
3607
  function te(e, t) {
3633
- return e instanceof K && e.timeZone === t ? e : new K(e, t);
3608
+ return e instanceof G && e.timeZone === t ? e : new G(e, t);
3634
3609
  }
3635
3610
  function De(e, t, n) {
3636
3611
  return te(e, t);
3637
3612
  }
3638
- function Kt(e, t, n) {
3613
+ function Gt(e, t, n) {
3639
3614
  return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? De(e, t) : Array.isArray(e) ? e.map((r) => r instanceof Date ? De(r, t) : r) : Ge(e) ? {
3640
3615
  ...e,
3641
3616
  from: e.from ? te(e.from, t) : e.from,
3642
3617
  to: e.to ? te(e.to, t) : e.to
3643
- } : Dt(e) ? {
3618
+ } : Mt(e) ? {
3644
3619
  before: De(e.before, t),
3645
3620
  after: De(e.after, t)
3646
- } : Ot(e) ? {
3621
+ } : Dt(e) ? {
3647
3622
  after: De(e.after, t)
3648
- } : kt(e) ? {
3623
+ } : Ot(e) ? {
3649
3624
  before: De(e.before, t)
3650
3625
  } : e;
3651
3626
  }
3652
3627
  function st(e, t, n) {
3653
- return e && (Array.isArray(e) ? e.map((r) => Kt(r, t)) : Kt(e, t));
3628
+ return e && (Array.isArray(e) ? e.map((r) => Gt(r, t)) : Gt(e, t));
3654
3629
  }
3655
- function Pi(e) {
3656
- var Wt;
3630
+ function ki(e) {
3631
+ var xt;
3657
3632
  let t = e;
3658
3633
  const n = t.timeZone;
3659
3634
  if (n && (t = {
3660
3635
  ...e,
3661
3636
  timeZone: n
3662
- }, t.today && (t.today = te(t.today, n)), t.month && (t.month = te(t.month, n)), t.defaultMonth && (t.defaultMonth = te(t.defaultMonth, n)), t.startMonth && (t.startMonth = te(t.startMonth, n)), t.endMonth && (t.endMonth = te(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = te(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (Wt = t.selected) == null ? void 0 : Wt.map((E) => te(E, n)) : t.mode === "range" && t.selected && (t.selected = {
3637
+ }, t.today && (t.today = te(t.today, n)), t.month && (t.month = te(t.month, n)), t.defaultMonth && (t.defaultMonth = te(t.defaultMonth, n)), t.startMonth && (t.startMonth = te(t.startMonth, n)), t.endMonth && (t.endMonth = te(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = te(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (xt = t.selected) == null ? void 0 : xt.map((E) => te(E, n)) : t.mode === "range" && t.selected && (t.selected = {
3663
3638
  from: t.selected.from ? te(t.selected.from, n) : t.selected.from,
3664
3639
  to: t.selected.to ? te(t.selected.to, n) : t.selected.to
3665
3640
  }), t.disabled !== void 0 && (t.disabled = st(t.disabled, n)), t.hidden !== void 0 && (t.hidden = st(t.hidden, n)), t.modifiers)) {
@@ -3669,8 +3644,8 @@ function Pi(e) {
3669
3644
  E[_] = st((x = t.modifiers) == null ? void 0 : x[_], n);
3670
3645
  }), t.modifiers = E;
3671
3646
  }
3672
- const { components: r, formatters: o, labels: a, dateLib: s, locale: i, classNames: c } = $e(() => {
3673
- const E = { ...Bn, ...t.locale }, _ = t.broadcastCalendar ? 1 : t.weekStartsOn, x = t.noonSafe && t.timeZone ? ci(t.timeZone, {
3647
+ const { components: r, formatters: o, labels: a, dateLib: s, locale: i, classNames: c } = je(() => {
3648
+ const E = { ...An, ...t.locale }, _ = t.broadcastCalendar ? 1 : t.weekStartsOn, x = t.noonSafe && t.timeZone ? ei(t.timeZone, {
3674
3649
  weekStartsOn: _,
3675
3650
  locale: E
3676
3651
  }) : void 0, q = t.dateLib && x ? { ...x, ...t.dateLib } : t.dateLib ?? x, I = new J({
@@ -3684,11 +3659,11 @@ function Pi(e) {
3684
3659
  }, q);
3685
3660
  return {
3686
3661
  dateLib: I,
3687
- components: js(t.components),
3688
- formatters: ei(t.formatters),
3689
- labels: ri(t.labels, I.options),
3662
+ components: Ys(t.components),
3663
+ formatters: Us(t.formatters),
3664
+ labels: Xs(t.labels, I.options),
3690
3665
  locale: E,
3691
- classNames: { ...zs(), ...t.classNames }
3666
+ classNames: { ...Rs(), ...t.classNames }
3692
3667
  };
3693
3668
  }, [
3694
3669
  t.locale,
@@ -3707,17 +3682,17 @@ function Pi(e) {
3707
3682
  t.classNames
3708
3683
  ]);
3709
3684
  t.today || (t = { ...t, today: s.today() });
3710
- const { captionLayout: u, mode: d, navLayout: f, numberOfMonths: g = 1, onDayBlur: w, onDayClick: N, onDayFocus: b, onDayKeyDown: m, onDayMouseEnter: T, onDayMouseLeave: y, onNextClick: h, onPrevClick: k, showWeekNumber: M, styles: l } = t, { formatCaption: O, formatDay: W, formatMonthDropdown: P, formatWeekNumber: F, formatWeekNumberHeader: B, formatWeekdayName: V, formatYearDropdown: U } = o, S = Mi(t, s), { days: z, months: X, navStart: le, navEnd: fe, previousMonth: G, nextMonth: L, goToMonth: ne } = S, ve = qs(z, t, le, fe, s), { isSelected: ae, select: ge, selected: Ie } = Wi(t, s) ?? {}, { blur: Tt, focused: Re, isFocusTarget: nr, moveFocus: Nt, setFocused: Ae } = ki(t, S, ve, ae ?? (() => !1), s), { labelDayButton: rr, labelGridcell: or, labelGrid: ar, labelMonthDropdown: sr, labelNav: Ct, labelPrevious: ir, labelNext: cr, labelWeekday: ur, labelWeekNumber: dr, labelWeekNumberHeader: lr, labelYearDropdown: fr } = a, hr = $e(() => si(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), St = d !== void 0 || N !== void 0, Xe = ee(() => {
3711
- G && (ne(G), k == null || k(G));
3712
- }, [G, ne, k]), Le = ee(() => {
3685
+ const { captionLayout: u, mode: d, navLayout: f, numberOfMonths: g = 1, onDayBlur: w, onDayClick: N, onDayFocus: v, onDayKeyDown: m, onDayMouseEnter: T, onDayMouseLeave: y, onNextClick: h, onPrevClick: k, showWeekNumber: M, styles: l } = t, { formatCaption: O, formatDay: W, formatMonthDropdown: P, formatWeekNumber: F, formatWeekNumberHeader: B, formatWeekdayName: $, formatYearDropdown: z } = o, C = hi(t, s), { days: V, months: X, navStart: le, navEnd: fe, previousMonth: U, nextMonth: L, goToMonth: ne } = C, ve = _s(V, t, le, fe, s), { isSelected: ae, select: ge, selected: Ie } = Oi(t, s) ?? {}, { blur: kt, focused: Re, isFocusTarget: tr, moveFocus: Tt, setFocused: Ae } = gi(t, C, ve, ae ?? (() => !1), s), { labelDayButton: nr, labelGridcell: rr, labelGrid: or, labelMonthDropdown: ar, labelNav: Nt, labelPrevious: sr, labelNext: ir, labelWeekday: cr, labelWeekNumber: ur, labelWeekNumberHeader: dr, labelYearDropdown: lr } = a, fr = je(() => Zs(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), Ct = d !== void 0 || N !== void 0, Xe = ee(() => {
3686
+ U && (ne(U), k == null || k(U));
3687
+ }, [U, ne, k]), Le = ee(() => {
3713
3688
  L && (ne(L), h == null || h(L));
3714
- }, [ne, L, h]), mr = ee((E, _) => (x) => {
3689
+ }, [ne, L, h]), hr = ee((E, _) => (x) => {
3715
3690
  x.preventDefault(), x.stopPropagation(), Ae(E), !_.disabled && (ge == null || ge(E.date, _, x), N == null || N(E.date, _, x));
3716
- }, [ge, N, Ae]), yr = ee((E, _) => (x) => {
3717
- Ae(E), b == null || b(E.date, _, x);
3718
- }, [b, Ae]), gr = ee((E, _) => (x) => {
3719
- Tt(), w == null || w(E.date, _, x);
3720
- }, [Tt, w]), wr = ee((E, _) => (x) => {
3691
+ }, [ge, N, Ae]), mr = ee((E, _) => (x) => {
3692
+ Ae(E), v == null || v(E.date, _, x);
3693
+ }, [v, Ae]), yr = ee((E, _) => (x) => {
3694
+ kt(), w == null || w(E.date, _, x);
3695
+ }, [kt, w]), gr = ee((E, _) => (x) => {
3721
3696
  const q = {
3722
3697
  ArrowLeft: [
3723
3698
  x.shiftKey ? "month" : "day",
@@ -3737,44 +3712,44 @@ function Pi(e) {
3737
3712
  if (q[x.key]) {
3738
3713
  x.preventDefault(), x.stopPropagation();
3739
3714
  const [I, se] = q[x.key];
3740
- Nt(I, se);
3715
+ Tt(I, se);
3741
3716
  }
3742
3717
  m == null || m(E.date, _, x);
3743
- }, [Nt, m, t.dir]), vr = ee((E, _) => (x) => {
3718
+ }, [Tt, m, t.dir]), wr = ee((E, _) => (x) => {
3744
3719
  T == null || T(E.date, _, x);
3745
- }, [T]), br = ee((E, _) => (x) => {
3720
+ }, [T]), vr = ee((E, _) => (x) => {
3746
3721
  y == null || y(E.date, _, x);
3747
- }, [y]), pr = ee((E, _) => (x) => {
3722
+ }, [y]), br = ee((E, _) => (x) => {
3748
3723
  const q = Number(x.target.value), I = s.setMonth(s.startOfMonth(E), q);
3749
3724
  ne(s.addMonths(I, -_));
3750
- }, [s, ne]), Mr = ee((E, _) => (x) => {
3725
+ }, [s, ne]), pr = ee((E, _) => (x) => {
3751
3726
  const q = Number(x.target.value), I = s.setYear(s.startOfMonth(E), q);
3752
3727
  ne(s.addMonths(I, -_));
3753
- }, [s, ne]), { className: Dr, style: Or } = $e(() => ({
3728
+ }, [s, ne]), { className: Mr, style: Dr } = je(() => ({
3754
3729
  className: [c[D.Root], t.className].filter(Boolean).join(" "),
3755
3730
  style: { ...l == null ? void 0 : l[D.Root], ...t.style }
3756
- }), [c, t.className, t.style, l]), kr = Vs(t), Et = (E) => {
3731
+ }), [c, t.className, t.style, l]), Or = Is(t), St = (E) => {
3757
3732
  const _ = l == null ? void 0 : l[D.Dropdown], x = l == null ? void 0 : l[E];
3758
3733
  if (!(!_ && !x))
3759
3734
  return {
3760
3735
  ..._,
3761
3736
  ...x
3762
3737
  };
3763
- }, xt = qe(null);
3764
- fi(xt, !!t.animate, {
3738
+ }, Et = qe(null);
3739
+ oi(Et, !!t.animate, {
3765
3740
  classNames: c,
3766
3741
  months: X,
3767
3742
  focused: Re,
3768
3743
  dateLib: s
3769
3744
  });
3770
- const Tr = {
3745
+ const kr = {
3771
3746
  dayPickerProps: t,
3772
3747
  selected: Ie,
3773
3748
  select: ge,
3774
3749
  isSelected: ae,
3775
3750
  months: X,
3776
3751
  nextMonth: L,
3777
- previousMonth: G,
3752
+ previousMonth: U,
3778
3753
  goToMonth: ne,
3779
3754
  getModifiers: ve,
3780
3755
  components: r,
@@ -3784,15 +3759,15 @@ function Pi(e) {
3784
3759
  formatters: o
3785
3760
  };
3786
3761
  return p.createElement(
3787
- qn.Provider,
3788
- { value: Tr },
3762
+ Hn.Provider,
3763
+ { value: kr },
3789
3764
  p.createElement(
3790
3765
  r.Root,
3791
- { rootRef: t.animate ? xt : void 0, className: Dr, style: Or, dir: t.dir, id: t.id, lang: t.lang ?? i.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...kr },
3766
+ { rootRef: t.animate ? Et : void 0, className: Mr, style: Dr, dir: t.dir, id: t.id, lang: t.lang ?? i.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Or },
3792
3767
  p.createElement(
3793
3768
  r.Months,
3794
3769
  { className: c[D.Months], style: l == null ? void 0 : l[D.Months] },
3795
- !t.hideNavigation && !f && p.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[D.Nav], style: l == null ? void 0 : l[D.Nav], "aria-label": Ct(), onPreviousClick: Xe, onNextClick: Le, previousMonth: G, nextMonth: L }),
3770
+ !t.hideNavigation && !f && p.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[D.Nav], style: l == null ? void 0 : l[D.Nav], "aria-label": Nt(), onPreviousClick: Xe, onNextClick: Le, previousMonth: U, nextMonth: L }),
3796
3771
  X.map((E, _) => {
3797
3772
  const x = t.reverseMonths ? X.length - 1 - _ : _;
3798
3773
  return p.createElement(
@@ -3808,14 +3783,14 @@ function Pi(e) {
3808
3783
  },
3809
3784
  f === "around" && !t.hideNavigation && _ === 0 && p.createElement(
3810
3785
  r.PreviousMonthButton,
3811
- { type: "button", className: c[D.PreviousMonthButton], style: l == null ? void 0 : l[D.PreviousMonthButton], tabIndex: G ? void 0 : -1, "aria-disabled": G ? void 0 : !0, "aria-label": ir(G), onClick: Xe, "data-animated-button": t.animate ? "true" : void 0 },
3812
- p.createElement(r.Chevron, { disabled: G ? void 0 : !0, className: c[D.Chevron], style: l == null ? void 0 : l[D.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
3786
+ { type: "button", className: c[D.PreviousMonthButton], style: l == null ? void 0 : l[D.PreviousMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label": sr(U), onClick: Xe, "data-animated-button": t.animate ? "true" : void 0 },
3787
+ p.createElement(r.Chevron, { disabled: U ? void 0 : !0, className: c[D.Chevron], style: l == null ? void 0 : l[D.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
3813
3788
  ),
3814
3789
  p.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: c[D.MonthCaption], style: l == null ? void 0 : l[D.MonthCaption], calendarMonth: E, displayIndex: _ }, u != null && u.startsWith("dropdown") ? p.createElement(
3815
3790
  r.DropdownNav,
3816
3791
  { className: c[D.Dropdowns], style: l == null ? void 0 : l[D.Dropdowns] },
3817
3792
  (() => {
3818
- const q = u === "dropdown" || u === "dropdown-months" ? p.createElement(r.MonthsDropdown, { key: "month", className: c[D.MonthsDropdown], "aria-label": sr(), disabled: !!t.disableNavigation, onChange: pr(E.date, x), options: oi(E.date, le, fe, o, s), style: Et(D.MonthsDropdown), value: s.getMonth(E.date) }) : p.createElement("span", { key: "month" }, P(E.date, s)), I = u === "dropdown" || u === "dropdown-years" ? p.createElement(r.YearsDropdown, { key: "year", className: c[D.YearsDropdown], "aria-label": fr(s.options), disabled: !!t.disableNavigation, onChange: Mr(E.date, x), options: ii(le, fe, o, s, !!t.reverseYears), style: Et(D.YearsDropdown), value: s.getYear(E.date) }) : p.createElement("span", { key: "year" }, U(E.date, s));
3793
+ const q = u === "dropdown" || u === "dropdown-months" ? p.createElement(r.MonthsDropdown, { key: "month", className: c[D.MonthsDropdown], "aria-label": ar(), disabled: !!t.disableNavigation, onChange: br(E.date, x), options: Ls(E.date, le, fe, o, s), style: St(D.MonthsDropdown), value: s.getMonth(E.date) }) : p.createElement("span", { key: "month" }, P(E.date, s)), I = u === "dropdown" || u === "dropdown-years" ? p.createElement(r.YearsDropdown, { key: "year", className: c[D.YearsDropdown], "aria-label": lr(s.options), disabled: !!t.disableNavigation, onChange: pr(E.date, x), options: Js(le, fe, o, s, !!t.reverseYears), style: St(D.YearsDropdown), value: s.getYear(E.date) }) : p.createElement("span", { key: "year" }, z(E.date, s));
3819
3794
  return s.getMonthYearOrder() === "year-first" ? [I, q] : [q, I];
3820
3795
  })(),
3821
3796
  p.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -3833,23 +3808,23 @@ function Pi(e) {
3833
3808
  ) : p.createElement(r.CaptionLabel, { className: c[D.CaptionLabel], style: l == null ? void 0 : l[D.CaptionLabel], role: "status", "aria-live": "polite" }, O(E.date, s.options, s))),
3834
3809
  f === "around" && !t.hideNavigation && _ === g - 1 && p.createElement(
3835
3810
  r.NextMonthButton,
3836
- { type: "button", className: c[D.NextMonthButton], style: l == null ? void 0 : l[D.NextMonthButton], tabIndex: L ? void 0 : -1, "aria-disabled": L ? void 0 : !0, "aria-label": cr(L), onClick: Le, "data-animated-button": t.animate ? "true" : void 0 },
3811
+ { type: "button", className: c[D.NextMonthButton], style: l == null ? void 0 : l[D.NextMonthButton], tabIndex: L ? void 0 : -1, "aria-disabled": L ? void 0 : !0, "aria-label": ir(L), onClick: Le, "data-animated-button": t.animate ? "true" : void 0 },
3837
3812
  p.createElement(r.Chevron, { disabled: L ? void 0 : !0, className: c[D.Chevron], style: l == null ? void 0 : l[D.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
3838
3813
  ),
3839
- _ === g - 1 && f === "after" && !t.hideNavigation && p.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[D.Nav], style: l == null ? void 0 : l[D.Nav], "aria-label": Ct(), onPreviousClick: Xe, onNextClick: Le, previousMonth: G, nextMonth: L }),
3814
+ _ === g - 1 && f === "after" && !t.hideNavigation && p.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[D.Nav], style: l == null ? void 0 : l[D.Nav], "aria-label": Nt(), onPreviousClick: Xe, onNextClick: Le, previousMonth: U, nextMonth: L }),
3840
3815
  p.createElement(
3841
3816
  r.MonthGrid,
3842
- { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": ar(E.date, s.options, s) || void 0, className: c[D.MonthGrid], style: l == null ? void 0 : l[D.MonthGrid] },
3817
+ { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": or(E.date, s.options, s) || void 0, className: c[D.MonthGrid], style: l == null ? void 0 : l[D.MonthGrid] },
3843
3818
  !t.hideWeekdays && p.createElement(
3844
3819
  r.Weekdays,
3845
3820
  { "data-animated-weekdays": t.animate ? "true" : void 0, className: c[D.Weekdays], style: l == null ? void 0 : l[D.Weekdays] },
3846
- M && p.createElement(r.WeekNumberHeader, { "aria-label": lr(s.options), className: c[D.WeekNumberHeader], style: l == null ? void 0 : l[D.WeekNumberHeader], scope: "col" }, B()),
3847
- hr.map((q) => p.createElement(r.Weekday, { "aria-label": ur(q, s.options, s), className: c[D.Weekday], key: String(q), style: l == null ? void 0 : l[D.Weekday], scope: "col" }, V(q, s.options, s)))
3821
+ M && p.createElement(r.WeekNumberHeader, { "aria-label": dr(s.options), className: c[D.WeekNumberHeader], style: l == null ? void 0 : l[D.WeekNumberHeader], scope: "col" }, B()),
3822
+ fr.map((q) => p.createElement(r.Weekday, { "aria-label": cr(q, s.options, s), className: c[D.Weekday], key: String(q), style: l == null ? void 0 : l[D.Weekday], scope: "col" }, $(q, s.options, s)))
3848
3823
  ),
3849
3824
  p.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[D.Weeks], style: l == null ? void 0 : l[D.Weeks] }, E.weeks.map((q) => p.createElement(
3850
3825
  r.Week,
3851
3826
  { className: c[D.Week], key: q.weekNumber, style: l == null ? void 0 : l[D.Week], week: q },
3852
- M && p.createElement(r.WeekNumber, { week: q, style: l == null ? void 0 : l[D.WeekNumber], "aria-label": dr(q.weekNumber, {
3827
+ M && p.createElement(r.WeekNumber, { week: q, style: l == null ? void 0 : l[D.WeekNumber], "aria-label": ur(q.weekNumber, {
3853
3828
  locale: i
3854
3829
  }), className: c[D.WeekNumber], scope: "row", role: "rowheader" }, F(q.weekNumber, s)),
3855
3830
  q.days.map((I) => {
@@ -3858,8 +3833,8 @@ function Pi(e) {
3858
3833
  const { from: Qe, to: Ze } = Ie;
3859
3834
  Y[oe.range_start] = !!(Qe && Ze && s.isSameDay(se, Qe)), Y[oe.range_end] = !!(Qe && Ze && s.isSameDay(se, Ze)), Y[oe.range_middle] = me(Ie, se, !0, s);
3860
3835
  }
3861
- const Nr = ai(Y, l, t.modifiersStyles), Cr = $s(Y, c, t.modifiersClassNames), Sr = !St && !Y.hidden ? or(se, Y, s.options, s) : void 0;
3862
- return p.createElement(r.Day, { key: `${I.isoDate}_${I.displayMonthId}`, day: I, modifiers: Y, className: Cr.join(" "), style: Nr, role: "gridcell", "aria-selected": Y.selected || void 0, "aria-label": Sr, "data-day": I.isoDate, "data-month": I.outside ? I.dateMonthId : void 0, "data-selected": Y.selected || void 0, "data-disabled": Y.disabled || void 0, "data-hidden": Y.hidden || void 0, "data-outside": I.outside || void 0, "data-focused": Y.focused || void 0, "data-today": Y.today || void 0 }, !Y.hidden && St ? p.createElement(r.DayButton, { className: c[D.DayButton], style: l == null ? void 0 : l[D.DayButton], type: "button", day: I, modifiers: Y, disabled: !Y.focused && Y.disabled || void 0, "aria-disabled": Y.focused && Y.disabled || void 0, tabIndex: nr(I) ? 0 : -1, "aria-label": rr(se, Y, s.options, s), onClick: mr(I, Y), onBlur: gr(I, Y), onFocus: yr(I, Y), onKeyDown: wr(I, Y), onMouseEnter: vr(I, Y), onMouseLeave: br(I, Y) }, W(se, s.options, s)) : !Y.hidden && W(I.date, s.options, s));
3836
+ const Tr = Qs(Y, l, t.modifiersStyles), Nr = Fs(Y, c, t.modifiersClassNames), Cr = !Ct && !Y.hidden ? rr(se, Y, s.options, s) : void 0;
3837
+ return p.createElement(r.Day, { key: `${I.isoDate}_${I.displayMonthId}`, day: I, modifiers: Y, className: Nr.join(" "), style: Tr, role: "gridcell", "aria-selected": Y.selected || void 0, "aria-label": Cr, "data-day": I.isoDate, "data-month": I.outside ? I.dateMonthId : void 0, "data-selected": Y.selected || void 0, "data-disabled": Y.disabled || void 0, "data-hidden": Y.hidden || void 0, "data-outside": I.outside || void 0, "data-focused": Y.focused || void 0, "data-today": Y.today || void 0 }, !Y.hidden && Ct ? p.createElement(r.DayButton, { className: c[D.DayButton], style: l == null ? void 0 : l[D.DayButton], type: "button", day: I, modifiers: Y, disabled: !Y.focused && Y.disabled || void 0, "aria-disabled": Y.focused && Y.disabled || void 0, tabIndex: tr(I) ? 0 : -1, "aria-label": nr(se, Y, s.options, s), onClick: hr(I, Y), onBlur: yr(I, Y), onFocus: mr(I, Y), onKeyDown: gr(I, Y), onMouseEnter: wr(I, Y), onMouseLeave: vr(I, Y) }, W(se, s.options, s)) : !Y.hidden && W(I.date, s.options, s));
3863
3838
  })
3864
3839
  )))
3865
3840
  )
@@ -3870,24 +3845,24 @@ function Pi(e) {
3870
3845
  )
3871
3846
  );
3872
3847
  }
3873
- function _i({ className: e, classNames: t, showOutsideDays: n = !0, ...r }) {
3874
- return /* @__PURE__ */ C(
3875
- Pi,
3848
+ function Ti({ className: e, classNames: t, showOutsideDays: n = !0, ...r }) {
3849
+ return /* @__PURE__ */ S(
3850
+ ki,
3876
3851
  {
3877
3852
  showOutsideDays: n,
3878
- className: $("p-3 pointer-events-auto", e),
3853
+ className: K("p-3 pointer-events-auto", e),
3879
3854
  classNames: {
3880
3855
  months: "flex flex-col gap-2 relative sm:flex-row",
3881
3856
  month: "flex flex-col gap-4",
3882
3857
  month_caption: "flex justify-center pt-1 relative items-center w-full",
3883
3858
  caption_label: "text-sm font-medium",
3884
3859
  nav: "flex items-center gap-1 absolute h-7 w-full z-10",
3885
- button_previous: $(Je({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute left-1"),
3886
- button_next: $(Je({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute right-1"),
3860
+ button_previous: K(Je({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute left-1"),
3861
+ button_next: K(Je({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute right-1"),
3887
3862
  weekdays: "flex justify-center",
3888
3863
  weekday: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem] text-center flex items-center justify-center",
3889
3864
  week: "flex w-full mt-2",
3890
- day: $(
3865
+ day: K(
3891
3866
  "group relative size-9 p-0 text-center text-sm focus-within:relative focus-within:z-20",
3892
3867
  "[&:has([aria-selected].day-range-end)]:rounded-r-md",
3893
3868
  "[&:has([aria-selected])]:bg-accent",
@@ -3895,7 +3870,7 @@ function _i({ className: e, classNames: t, showOutsideDays: n = !0, ...r }) {
3895
3870
  "last:[&:has([aria-selected])]:rounded-r-md",
3896
3871
  "[&:has([aria-selected].day-outside)]:bg-accent/50"
3897
3872
  ),
3898
- day_button: $(Je({ variant: "ghost" }), "size-9 p-0 font-normal aria-selected:opacity-100"),
3873
+ day_button: K(Je({ variant: "ghost" }), "size-9 p-0 font-normal aria-selected:opacity-100"),
3899
3874
  range_start: "day-range-start rounded-l-md",
3900
3875
  range_end: "day-range-end rounded-r-md",
3901
3876
  selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
@@ -3907,36 +3882,30 @@ function _i({ className: e, classNames: t, showOutsideDays: n = !0, ...r }) {
3907
3882
  ...t
3908
3883
  },
3909
3884
  components: {
3910
- Chevron: ({ orientation: o, ...a }) => /* @__PURE__ */ C(o === "left" ? Eo : Wo, { className: "h-4 w-4", ...a })
3885
+ Chevron: ({ orientation: o, ...a }) => /* @__PURE__ */ S(o === "left" ? Ir : Rr, { className: "size-4", ...a })
3911
3886
  },
3912
3887
  ...r
3913
3888
  }
3914
3889
  );
3915
3890
  }
3916
- _i.displayName = "Calendar";
3891
+ Ti.displayName = "Calendar";
3917
3892
  export {
3918
- Rr as A,
3919
- _i as C,
3920
- Ur as I,
3921
- Io as T,
3922
- _o as X,
3923
- Br as a,
3924
- Ar as b,
3925
- Hr as c,
3926
- Vr as d,
3927
- jr as e,
3928
- zr as f,
3929
- qr as g,
3930
- $r as h,
3931
- Ro as i,
3932
- Ao as j,
3933
- Ho as k,
3934
- Hi as l,
3935
- Bo as m,
3936
- Fo as n,
3937
- nt as o,
3938
- Ce as p,
3939
- Se as q,
3940
- ka as r,
3941
- xe as s
3893
+ Br as A,
3894
+ Ti as C,
3895
+ Vr as I,
3896
+ So as T,
3897
+ $r as X,
3898
+ qr as a,
3899
+ Hr as b,
3900
+ Eo as c,
3901
+ xo as d,
3902
+ Po as e,
3903
+ _i as f,
3904
+ Wo as g,
3905
+ No as h,
3906
+ nt as i,
3907
+ Ce as j,
3908
+ Se as k,
3909
+ ga as l,
3910
+ xe as m
3942
3911
  };