@grapadigital/shared-app-modules 0.0.51 → 0.0.53

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.
package/dist/shadcn.js CHANGED
@@ -1,21 +1,22 @@
1
- import { a as yt, j as N, c as y, f as be, L as pn, S as pt, C as bn, g as nt, B as bt, I as wn, h as vn, i as kn } from "./chuncks/hover-card.BUI2HANt.js";
2
- import { ar as fs, au as hs, as as ms, at as gs, k as ys, ai as ps, aj as bs, am as ws, an as vs, ak as ks, ao as Ms, al as Ds, aq as xs, ap as Os, D as Ss, v as Cs, w as Ws, x as Ns, y as Ts, z as _s, A as Ys, E as Es, F as Ps, G as Fs, a8 as Bs, ac as Is, ad as js, ah as Hs, af as As, ae as zs, aa as qs, a9 as Gs, ag as Rs, ab as $s, aw as Vs, ay as Ls, ax as Qs, a4 as Xs, a7 as Us, a6 as Zs, a5 as Ks, av as Js, l as ei, p as ti, m as ni, r as ri, q as oi, u as ai, t as si, s as ii, o as ui, n as ci, H as di, K as li, M as fi, Q as hi, O as mi, N as gi, P as yi, J as pi, Y as bi, _ as wi, a3 as vi, a2 as ki, $ as Mi, a0 as Di, Z as xi, a1 as Oi, U as Si, X as Ci, V as Wi, W as Ni, b as Ti, e as _i, T as Yi, d as Ei } from "./chuncks/hover-card.BUI2HANt.js";
3
- import * as Se from "react";
4
- import f, { useMemo as ge, createContext as Mn, useContext as Dn, useCallback as R, useRef as Oe, useLayoutEffect as xn, useState as Ge, useEffect as On } from "react";
5
- import { C as Fi, e as Bi, a as Ii, f as ji, c as Hi, b as Ai, d as zi } from "./chuncks/card.DAFUB9do.js";
6
- function za(e) {
7
- const [t, n] = Se.useState(!1);
8
- return Se.useEffect(() => {
9
- function r(s) {
10
- n(s.matches);
1
+ import { a as Xe, j as N, c as y, e as le, L as zt, S as Qe, C as Ht, f as $e, B as et, I as qt, T as Gt, g as $t } from "./chuncks/hover-card.CPpEGc8n.js";
2
+ import { au as Or, ax as Wr, av as Sr, aw as Nr, h as Tr, al as _r, am as Er, ap as Pr, aq as Br, an as Ir, ar as Yr, ao as Fr, at as jr, as as Ar, D as zr, t as Hr, u as qr, v as Gr, w as $r, x as Rr, y as Vr, z as Zr, A as Ur, E as Kr, ab as Lr, af as Jr, ag as Xr, ak as Qr, ai as es, ah as ts, ad as ns, ac as os, aj as as, ae as rs, H as ss, d as is, b as ls, a3 as ds, a6 as us, a5 as cs, a4 as fs, ay as hs, i as ms, n as ps, k as ys, p as gs, o as bs, s as vs, r as ks, q as ws, m as Ms, l as Ds, F as xs, J as Cs, K as Os, P as Ws, N as Ss, M as Ns, O as Ts, G as _s, X as Es, Z as Ps, a2 as Bs, a1 as Is, _ as Ys, $ as Fs, Y as js, a0 as As, Q as zs, W as Hs, U as qs, V as Gs, a7 as $s, a9 as Rs, aa as Vs, a8 as Zs } from "./chuncks/hover-card.CPpEGc8n.js";
3
+ import * as pe from "react";
4
+ import c, { useMemo as ie, createContext as Rt, useContext as Vt, useCallback as H, useRef as me, useLayoutEffect as Zt, useState as Ee, useEffect as Ut } from "react";
5
+ import { C as Ks, e as Ls, a as Js, f as Xs, c as Qs, b as ei, d as ti } from "./chuncks/card.Bq2U-dSX.js";
6
+ import { addDays as Kt, addMonths as Lt, addWeeks as Jt, addYears as Xt, differenceInCalendarDays as Qt, differenceInCalendarMonths as en, eachMonthOfInterval as tn, eachYearOfInterval as nn, endOfISOWeek as on, endOfMonth as an, endOfWeek as rn, endOfYear as sn, format as ln, getISOWeek as dn, getMonth as un, getYear as cn, getWeek as fn, isAfter as hn, isBefore as mn, isDate as pn, isSameDay as yn, isSameMonth as gn, isSameYear as bn, max as vn, min as kn, setMonth as wn, setYear as Mn, startOfDay as Dn, startOfISOWeek as xn, startOfMonth as Cn, startOfWeek as On, startOfYear as Wn } from "date-fns";
7
+ function tr(e) {
8
+ const [t, o] = pe.useState(!1);
9
+ return pe.useEffect(() => {
10
+ function n(l) {
11
+ o(l.matches);
11
12
  }
12
- const o = matchMedia(e);
13
- return o.addEventListener("change", r), n(o.matches), () => o.removeEventListener("change", r);
13
+ const a = matchMedia(e);
14
+ return a.addEventListener("change", n), o(a.matches), () => a.removeEventListener("change", n);
14
15
  }, [e]), t;
15
16
  }
16
- const Sn = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Cn = yt("chevron-right", Sn);
17
- const Wn = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Nn = yt("chevron-left", Wn);
18
- function qa({
17
+ const Sn = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Nn = Xe("chevron-right", Sn);
18
+ const Tn = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], _n = Xe("chevron-left", Tn);
19
+ function nr({
19
20
  className: e,
20
21
  ...t
21
22
  }) {
@@ -27,7 +28,7 @@ function qa({
27
28
  }
28
29
  );
29
30
  }
30
- function Ga({ className: e, ...t }) {
31
+ function or({ className: e, ...t }) {
31
32
  return /* @__PURE__ */ N.jsx(
32
33
  "fieldset",
33
34
  {
@@ -41,10 +42,10 @@ function Ga({ className: e, ...t }) {
41
42
  }
42
43
  );
43
44
  }
44
- function Ra({
45
+ function ar({
45
46
  className: e,
46
47
  variant: t = "legend",
47
- ...n
48
+ ...o
48
49
  }) {
49
50
  return /* @__PURE__ */ N.jsx(
50
51
  "legend",
@@ -57,11 +58,11 @@ function Ra({
57
58
  "data-[variant=label]:text-sm",
58
59
  e
59
60
  ),
60
- ...n
61
+ ...o
61
62
  }
62
63
  );
63
64
  }
64
- function $a({ className: e, ...t }) {
65
+ function rr({ className: e, ...t }) {
65
66
  return /* @__PURE__ */ N.jsx(
66
67
  "div",
67
68
  {
@@ -74,7 +75,7 @@ function $a({ className: e, ...t }) {
74
75
  }
75
76
  );
76
77
  }
77
- const Tn = be(
78
+ const En = le(
78
79
  "group/field data-[invalid=true]:text-destructive flex w-full gap-3",
79
80
  {
80
81
  variants: {
@@ -97,10 +98,10 @@ const Tn = be(
97
98
  }
98
99
  }
99
100
  );
100
- function Va({
101
+ function sr({
101
102
  className: e,
102
103
  orientation: t = "vertical",
103
- ...n
104
+ ...o
104
105
  }) {
105
106
  return /* @__PURE__ */ N.jsx(
106
107
  "div",
@@ -108,12 +109,12 @@ function Va({
108
109
  role: "group",
109
110
  "data-slot": "field",
110
111
  "data-orientation": t,
111
- className: y(Tn({ orientation: t }), e),
112
- ...n
112
+ className: y(En({ orientation: t }), e),
113
+ ...o
113
114
  }
114
115
  );
115
116
  }
116
- function La({ className: e, ...t }) {
117
+ function ir({ className: e, ...t }) {
117
118
  return /* @__PURE__ */ N.jsx(
118
119
  "div",
119
120
  {
@@ -126,12 +127,12 @@ function La({ className: e, ...t }) {
126
127
  }
127
128
  );
128
129
  }
129
- function Qa({
130
+ function lr({
130
131
  className: e,
131
132
  ...t
132
133
  }) {
133
134
  return /* @__PURE__ */ N.jsx(
134
- pn,
135
+ zt,
135
136
  {
136
137
  "data-slot": "field-label",
137
138
  className: y(
@@ -144,7 +145,7 @@ function Qa({
144
145
  }
145
146
  );
146
147
  }
147
- function Xa({ className: e, ...t }) {
148
+ function dr({ className: e, ...t }) {
148
149
  return /* @__PURE__ */ N.jsx(
149
150
  "div",
150
151
  {
@@ -157,7 +158,7 @@ function Xa({ className: e, ...t }) {
157
158
  }
158
159
  );
159
160
  }
160
- function Ua({ className: e, ...t }) {
161
+ function ur({ className: e, ...t }) {
161
162
  return /* @__PURE__ */ N.jsx(
162
163
  "p",
163
164
  {
@@ -172,10 +173,10 @@ function Ua({ className: e, ...t }) {
172
173
  }
173
174
  );
174
175
  }
175
- function Za({
176
+ function cr({
176
177
  children: e,
177
178
  className: t,
178
- ...n
179
+ ...o
179
180
  }) {
180
181
  return /* @__PURE__ */ N.jsxs(
181
182
  "div",
@@ -186,9 +187,9 @@ function Za({
186
187
  "relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
187
188
  t
188
189
  ),
189
- ...n,
190
+ ...o,
190
191
  children: [
191
- /* @__PURE__ */ N.jsx(pt, { className: "absolute inset-0 top-1/2" }),
192
+ /* @__PURE__ */ N.jsx(Qe, { className: "absolute inset-0 top-1/2" }),
192
193
  e && /* @__PURE__ */ N.jsx(
193
194
  "span",
194
195
  {
@@ -201,349 +202,175 @@ function Za({
201
202
  }
202
203
  );
203
204
  }
204
- function Ka({
205
+ function fr({
205
206
  className: e,
206
207
  children: t,
207
- errors: n,
208
- ...r
208
+ errors: o,
209
+ ...n
209
210
  }) {
210
- const o = ge(() => t || (n ? n?.length === 1 && n[0]?.message ? n[0].message : /* @__PURE__ */ N.jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: n.map(
211
- (s, a) => s?.message && /* @__PURE__ */ N.jsx("li", { children: s.message }, a)
212
- ) }) : null), [t, n]);
213
- return o ? /* @__PURE__ */ N.jsx(
211
+ const a = ie(() => t || (o ? o?.length === 1 && o[0]?.message ? o[0].message : /* @__PURE__ */ N.jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: o.map(
212
+ (l, r) => l?.message && /* @__PURE__ */ N.jsx("li", { children: l.message }, r)
213
+ ) }) : null), [t, o]);
214
+ return a ? /* @__PURE__ */ N.jsx(
214
215
  "div",
215
216
  {
216
217
  role: "alert",
217
218
  "data-slot": "field-error",
218
219
  className: y("text-destructive text-sm font-normal", e),
219
- ...r,
220
- children: o
220
+ ...n,
221
+ children: a
221
222
  }
222
223
  ) : null;
223
224
  }
224
- function _n(e, t, n = "long") {
225
+ function Pn(e, t, o = "long") {
225
226
  return new Intl.DateTimeFormat("en-US", {
226
227
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
227
228
  hour: "numeric",
228
229
  timeZone: e,
229
- timeZoneName: n
230
+ timeZoneName: o
230
231
  }).format(t).split(/\s/g).slice(2).join(" ");
231
232
  }
232
- const Yn = {}, me = {};
233
- function ie(e, t) {
233
+ const Bn = {}, se = {};
234
+ function ne(e, t) {
234
235
  try {
235
- const r = (Yn[e] ||= new Intl.DateTimeFormat("en-US", {
236
+ const n = (Bn[e] ||= new Intl.DateTimeFormat("en-US", {
236
237
  timeZone: e,
237
238
  timeZoneName: "longOffset"
238
239
  }).format)(t).split("GMT")[1];
239
- return r in me ? me[r] : rt(r, r.split(":"));
240
+ return n in se ? se[n] : Re(n, n.split(":"));
240
241
  } catch {
241
- if (e in me) return me[e];
242
- const n = e?.match(En);
243
- return n ? rt(e, n.slice(1)) : NaN;
242
+ if (e in se) return se[e];
243
+ const o = e?.match(In);
244
+ return o ? Re(e, o.slice(1)) : NaN;
244
245
  }
245
246
  }
246
- const En = /([+-]\d\d):?(\d\d)?/;
247
- function rt(e, t) {
248
- const n = +(t[0] || 0), r = +(t[1] || 0), o = +(t[2] || 0) / 60;
249
- return me[e] = n * 60 + r > 0 ? n * 60 + r + o : n * 60 - r - o;
247
+ const In = /([+-]\d\d):?(\d\d)?/;
248
+ function Re(e, t) {
249
+ const o = +(t[0] || 0), n = +(t[1] || 0), a = +(t[2] || 0) / 60;
250
+ return se[e] = o * 60 + n > 0 ? o * 60 + n + a : o * 60 - n - a;
250
251
  }
251
- class Z extends Date {
252
+ class U extends Date {
252
253
  //#region static
253
254
  constructor(...t) {
254
- super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ie(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)), wt(this), Re(this)) : this.setTime(Date.now());
255
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ne(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)), tt(this), Pe(this)) : this.setTime(Date.now());
255
256
  }
256
- static tz(t, ...n) {
257
- return n.length ? new Z(...n, t) : new Z(Date.now(), t);
257
+ static tz(t, ...o) {
258
+ return o.length ? new U(...o, t) : new U(Date.now(), t);
258
259
  }
259
260
  //#endregion
260
261
  //#region time zone
261
262
  withTimeZone(t) {
262
- return new Z(+this, t);
263
+ return new U(+this, t);
263
264
  }
264
265
  getTimezoneOffset() {
265
- const t = -ie(this.timeZone, this);
266
+ const t = -ne(this.timeZone, this);
266
267
  return t > 0 ? Math.floor(t) : Math.ceil(t);
267
268
  }
268
269
  //#endregion
269
270
  //#region time
270
271
  setTime(t) {
271
- return Date.prototype.setTime.apply(this, arguments), Re(this), +this;
272
+ return Date.prototype.setTime.apply(this, arguments), Pe(this), +this;
272
273
  }
273
274
  //#endregion
274
275
  //#region date-fns integration
275
276
  [Symbol.for("constructDateFrom")](t) {
276
- return new Z(+new Date(t), this.timeZone);
277
+ return new U(+new Date(t), this.timeZone);
277
278
  }
278
279
  //#endregion
279
280
  }
280
- const ot = /^(get|set)(?!UTC)/;
281
+ const Ve = /^(get|set)(?!UTC)/;
281
282
  Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
282
- if (!ot.test(e)) return;
283
- const t = e.replace(ot, "$1UTC");
284
- Z.prototype[t] && (e.startsWith("get") ? Z.prototype[e] = function() {
283
+ if (!Ve.test(e)) return;
284
+ const t = e.replace(Ve, "$1UTC");
285
+ U.prototype[t] && (e.startsWith("get") ? U.prototype[e] = function() {
285
286
  return this.internal[t]();
286
- } : (Z.prototype[e] = function() {
287
- return Date.prototype[t].apply(this.internal, arguments), Pn(this), +this;
288
- }, Z.prototype[t] = function() {
289
- return Date.prototype[t].apply(this, arguments), Re(this), +this;
287
+ } : (U.prototype[e] = function() {
288
+ return Date.prototype[t].apply(this.internal, arguments), Yn(this), +this;
289
+ }, U.prototype[t] = function() {
290
+ return Date.prototype[t].apply(this, arguments), Pe(this), +this;
290
291
  }));
291
292
  });
292
- function Re(e) {
293
- e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-ie(e.timeZone, e) * 60));
294
- }
295
- function Pn(e) {
296
- 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()), wt(e);
297
- }
298
- function wt(e) {
299
- const t = ie(e.timeZone, e), n = t > 0 ? Math.floor(t) : Math.ceil(t), r = /* @__PURE__ */ new Date(+e);
300
- r.setUTCHours(r.getUTCHours() - 1);
301
- const o = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), s = -(/* @__PURE__ */ new Date(+r)).getTimezoneOffset(), a = o - s, i = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
302
- a && i && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + a);
303
- const u = o - n;
304
- u && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + u);
293
+ function Pe(e) {
294
+ e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-ne(e.timeZone, e) * 60));
295
+ }
296
+ function Yn(e) {
297
+ 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()), tt(e);
298
+ }
299
+ function tt(e) {
300
+ const t = ne(e.timeZone, e), o = t > 0 ? Math.floor(t) : Math.ceil(t), n = /* @__PURE__ */ new Date(+e);
301
+ n.setUTCHours(n.getUTCHours() - 1);
302
+ const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), l = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), r = a - l, s = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
303
+ r && s && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + r);
304
+ const i = a - o;
305
+ i && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + i);
305
306
  const d = /* @__PURE__ */ new Date(+e);
306
307
  d.setUTCSeconds(0);
307
- const l = o > 0 ? d.getSeconds() : (d.getSeconds() - 60) % 60, c = Math.round(-(ie(e.timeZone, e) * 60)) % 60;
308
- (c || l) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + c), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + c + l));
309
- const h = ie(e.timeZone, e), b = h > 0 ? Math.floor(h) : Math.ceil(h), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - b, k = b !== n, O = W - u;
310
- if (k && O) {
311
- Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + O);
312
- const T = ie(e.timeZone, e), v = T > 0 ? Math.floor(T) : Math.ceil(T), D = b - v;
308
+ const f = a > 0 ? d.getSeconds() : (d.getSeconds() - 60) % 60, u = Math.round(-(ne(e.timeZone, e) * 60)) % 60;
309
+ (u || f) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + u), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + u + f));
310
+ const h = ne(e.timeZone, e), b = h > 0 ? Math.floor(h) : Math.ceil(h), S = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - b, w = b !== o, C = S - i;
311
+ if (w && C) {
312
+ Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + C);
313
+ const T = ne(e.timeZone, e), k = T > 0 ? Math.floor(T) : Math.ceil(T), D = b - k;
313
314
  D && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + D), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + D));
314
315
  }
315
316
  }
316
- class te extends Z {
317
+ class X extends U {
317
318
  //#region static
318
- static tz(t, ...n) {
319
- return n.length ? new te(...n, t) : new te(Date.now(), t);
319
+ static tz(t, ...o) {
320
+ return o.length ? new X(...o, t) : new X(Date.now(), t);
320
321
  }
321
322
  //#endregion
322
323
  //#region representation
323
324
  toISOString() {
324
- const [t, n, r] = this.tzComponents(), o = `${t}${n}:${r}`;
325
- return this.internal.toISOString().slice(0, -1) + o;
325
+ const [t, o, n] = this.tzComponents(), a = `${t}${o}:${n}`;
326
+ return this.internal.toISOString().slice(0, -1) + a;
326
327
  }
327
328
  toString() {
328
329
  return `${this.toDateString()} ${this.toTimeString()}`;
329
330
  }
330
331
  toDateString() {
331
- const [t, n, r, o] = this.internal.toUTCString().split(" ");
332
- return `${t?.slice(0, -1)} ${r} ${n} ${o}`;
332
+ const [t, o, n, a] = this.internal.toUTCString().split(" ");
333
+ return `${t?.slice(0, -1)} ${n} ${o} ${a}`;
333
334
  }
334
335
  toTimeString() {
335
- const t = this.internal.toUTCString().split(" ")[4], [n, r, o] = this.tzComponents();
336
- return `${t} GMT${n}${r}${o} (${_n(this.timeZone, this)})`;
336
+ const t = this.internal.toUTCString().split(" ")[4], [o, n, a] = this.tzComponents();
337
+ return `${t} GMT${o}${n}${a} (${Pn(this.timeZone, this)})`;
337
338
  }
338
- toLocaleString(t, n) {
339
+ toLocaleString(t, o) {
339
340
  return Date.prototype.toLocaleString.call(this, t, {
340
- ...n,
341
- timeZone: n?.timeZone || this.timeZone
341
+ ...o,
342
+ timeZone: o?.timeZone || this.timeZone
342
343
  });
343
344
  }
344
- toLocaleDateString(t, n) {
345
+ toLocaleDateString(t, o) {
345
346
  return Date.prototype.toLocaleDateString.call(this, t, {
346
- ...n,
347
- timeZone: n?.timeZone || this.timeZone
347
+ ...o,
348
+ timeZone: o?.timeZone || this.timeZone
348
349
  });
349
350
  }
350
- toLocaleTimeString(t, n) {
351
+ toLocaleTimeString(t, o) {
351
352
  return Date.prototype.toLocaleTimeString.call(this, t, {
352
- ...n,
353
- timeZone: n?.timeZone || this.timeZone
353
+ ...o,
354
+ timeZone: o?.timeZone || this.timeZone
354
355
  });
355
356
  }
356
357
  //#endregion
357
358
  //#region private
358
359
  tzComponents() {
359
- const t = this.getTimezoneOffset(), n = t > 0 ? "-" : "+", r = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), o = String(Math.abs(t) % 60).padStart(2, "0");
360
- return [n, r, o];
360
+ const t = this.getTimezoneOffset(), o = t > 0 ? "-" : "+", n = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), a = String(Math.abs(t) % 60).padStart(2, "0");
361
+ return [o, n, a];
361
362
  }
362
363
  //#endregion
363
364
  withTimeZone(t) {
364
- return new te(+this, t);
365
+ return new X(+this, t);
365
366
  }
366
367
  //#region date-fns integration
367
368
  [Symbol.for("constructDateFrom")](t) {
368
- return new te(+new Date(t), this.timeZone);
369
+ return new X(+new Date(t), this.timeZone);
369
370
  }
370
371
  //#endregion
371
372
  }
372
- const vt = 6048e5, Fn = 864e5, at = Symbol.for("constructDateFrom");
373
- function j(e, t) {
374
- 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);
375
- }
376
- function P(e, t) {
377
- return j(t || e, e);
378
- }
379
- function kt(e, t, n) {
380
- const r = P(e, n?.in);
381
- return isNaN(t) ? j(e, NaN) : (t && r.setDate(r.getDate() + t), r);
382
- }
383
- function Mt(e, t, n) {
384
- const r = P(e, n?.in);
385
- if (isNaN(t)) return j(e, NaN);
386
- if (!t)
387
- return r;
388
- const o = r.getDate(), s = j(e, r.getTime());
389
- s.setMonth(r.getMonth() + t + 1, 0);
390
- const a = s.getDate();
391
- return o >= a ? s : (r.setFullYear(
392
- s.getFullYear(),
393
- s.getMonth(),
394
- o
395
- ), r);
396
- }
397
- let Bn = {};
398
- function we() {
399
- return Bn;
400
- }
401
- function de(e, t) {
402
- const n = we(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = P(e, t?.in), s = o.getDay(), a = (s < r ? 7 : 0) + s - r;
403
- return o.setDate(o.getDate() - a), o.setHours(0, 0, 0, 0), o;
404
- }
405
- function ye(e, t) {
406
- return de(e, { ...t, weekStartsOn: 1 });
407
- }
408
- function Dt(e, t) {
409
- const n = P(e, t?.in), r = n.getFullYear(), o = j(n, 0);
410
- o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
411
- const s = ye(o), a = j(n, 0);
412
- a.setFullYear(r, 0, 4), a.setHours(0, 0, 0, 0);
413
- const i = ye(a);
414
- return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
415
- }
416
- function st(e) {
417
- const t = P(e), n = new Date(
418
- Date.UTC(
419
- t.getFullYear(),
420
- t.getMonth(),
421
- t.getDate(),
422
- t.getHours(),
423
- t.getMinutes(),
424
- t.getSeconds(),
425
- t.getMilliseconds()
426
- )
427
- );
428
- return n.setUTCFullYear(t.getFullYear()), +e - +n;
429
- }
430
- function le(e, ...t) {
431
- const n = j.bind(
432
- null,
433
- t.find((r) => typeof r == "object")
434
- );
435
- return t.map(n);
436
- }
437
- function pe(e, t) {
438
- const n = P(e, t?.in);
439
- return n.setHours(0, 0, 0, 0), n;
440
- }
441
- function xt(e, t, n) {
442
- const [r, o] = le(
443
- n?.in,
444
- e,
445
- t
446
- ), s = pe(r), a = pe(o), i = +s - st(s), u = +a - st(a);
447
- return Math.round((i - u) / Fn);
448
- }
449
- function In(e, t) {
450
- const n = Dt(e, t), r = j(e, 0);
451
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), ye(r);
452
- }
453
- function jn(e, t, n) {
454
- return kt(e, t * 7, n);
455
- }
456
- function Hn(e, t, n) {
457
- return Mt(e, t * 12, n);
458
- }
459
- function An(e, t) {
460
- let n, r = t?.in;
461
- return e.forEach((o) => {
462
- !r && typeof o == "object" && (r = j.bind(null, o));
463
- const s = P(o, r);
464
- (!n || n < s || isNaN(+s)) && (n = s);
465
- }), j(r, n || NaN);
466
- }
467
- function zn(e, t) {
468
- let n, r = t?.in;
469
- return e.forEach((o) => {
470
- !r && typeof o == "object" && (r = j.bind(null, o));
471
- const s = P(o, r);
472
- (!n || n > s || isNaN(+s)) && (n = s);
473
- }), j(r, n || NaN);
474
- }
475
- function qn(e, t, n) {
476
- const [r, o] = le(
477
- n?.in,
478
- e,
479
- t
480
- );
481
- return +pe(r) == +pe(o);
482
- }
483
- function Ot(e) {
484
- return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
485
- }
486
- function Gn(e) {
487
- return !(!Ot(e) && typeof e != "number" || isNaN(+P(e)));
488
- }
489
- function Rn(e, t, n) {
490
- const [r, o] = le(
491
- n?.in,
492
- e,
493
- t
494
- ), s = r.getFullYear() - o.getFullYear(), a = r.getMonth() - o.getMonth();
495
- return s * 12 + a;
496
- }
497
- function $n(e, t) {
498
- const n = P(e, t?.in), r = n.getMonth();
499
- return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
500
- }
501
- function St(e, t) {
502
- const [n, r] = le(e, t.start, t.end);
503
- return { start: n, end: r };
504
- }
505
- function Vn(e, t) {
506
- const { start: n, end: r } = St(t?.in, e);
507
- let o = +n > +r;
508
- const s = o ? +n : +r, a = o ? r : n;
509
- a.setHours(0, 0, 0, 0), a.setDate(1);
510
- let i = 1;
511
- const u = [];
512
- for (; +a <= s; )
513
- u.push(j(n, a)), a.setMonth(a.getMonth() + i);
514
- return o ? u.reverse() : u;
515
- }
516
- function Ln(e, t) {
517
- const n = P(e, t?.in);
518
- return n.setDate(1), n.setHours(0, 0, 0, 0), n;
519
- }
520
- function Qn(e, t) {
521
- const n = P(e, t?.in), r = n.getFullYear();
522
- return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
523
- }
524
- function Ct(e, t) {
525
- const n = P(e, t?.in);
526
- return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
527
- }
528
- function Xn(e, t) {
529
- const { start: n, end: r } = St(t?.in, e);
530
- let o = +n > +r;
531
- const s = o ? +n : +r, a = o ? r : n;
532
- a.setHours(0, 0, 0, 0), a.setMonth(0, 1);
533
- let i = 1;
534
- const u = [];
535
- for (; +a <= s; )
536
- u.push(j(n, a)), a.setFullYear(a.getFullYear() + i);
537
- return o ? u.reverse() : u;
538
- }
539
- function Wt(e, t) {
540
- const n = we(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = P(e, t?.in), s = o.getDay(), a = (s < r ? -7 : 0) + 6 - (s - r);
541
- return o.setDate(o.getDate() + a), o.setHours(23, 59, 59, 999), o;
542
- }
543
- function Un(e, t) {
544
- return Wt(e, { ...t, weekStartsOn: 1 });
545
- }
546
- const Zn = {
373
+ const Fn = {
547
374
  lessThanXSeconds: {
548
375
  one: "less than a second",
549
376
  other: "less than {{count}} seconds"
@@ -605,77 +432,77 @@ const Zn = {
605
432
  one: "almost 1 year",
606
433
  other: "almost {{count}} years"
607
434
  }
608
- }, Kn = (e, t, n) => {
609
- let r;
610
- const o = Zn[e];
611
- return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
435
+ }, jn = (e, t, o) => {
436
+ let n;
437
+ const a = Fn[e];
438
+ return typeof a == "string" ? n = a : t === 1 ? n = a.one : n = a.other.replace("{{count}}", t.toString()), o?.addSuffix ? o.comparison && o.comparison > 0 ? "in " + n : n + " ago" : n;
612
439
  };
613
- function je(e) {
440
+ function We(e) {
614
441
  return (t = {}) => {
615
- const n = t.width ? String(t.width) : e.defaultWidth;
616
- return e.formats[n] || e.formats[e.defaultWidth];
442
+ const o = t.width ? String(t.width) : e.defaultWidth;
443
+ return e.formats[o] || e.formats[e.defaultWidth];
617
444
  };
618
445
  }
619
- const Jn = {
446
+ const An = {
620
447
  full: "EEEE, MMMM do, y",
621
448
  long: "MMMM do, y",
622
449
  medium: "MMM d, y",
623
450
  short: "MM/dd/yyyy"
624
- }, er = {
451
+ }, zn = {
625
452
  full: "h:mm:ss a zzzz",
626
453
  long: "h:mm:ss a z",
627
454
  medium: "h:mm:ss a",
628
455
  short: "h:mm a"
629
- }, tr = {
456
+ }, Hn = {
630
457
  full: "{{date}} 'at' {{time}}",
631
458
  long: "{{date}} 'at' {{time}}",
632
459
  medium: "{{date}}, {{time}}",
633
460
  short: "{{date}}, {{time}}"
634
- }, nr = {
635
- date: je({
636
- formats: Jn,
461
+ }, qn = {
462
+ date: We({
463
+ formats: An,
637
464
  defaultWidth: "full"
638
465
  }),
639
- time: je({
640
- formats: er,
466
+ time: We({
467
+ formats: zn,
641
468
  defaultWidth: "full"
642
469
  }),
643
- dateTime: je({
644
- formats: tr,
470
+ dateTime: We({
471
+ formats: Hn,
645
472
  defaultWidth: "full"
646
473
  })
647
- }, rr = {
474
+ }, Gn = {
648
475
  lastWeek: "'last' eeee 'at' p",
649
476
  yesterday: "'yesterday at' p",
650
477
  today: "'today at' p",
651
478
  tomorrow: "'tomorrow at' p",
652
479
  nextWeek: "eeee 'at' p",
653
480
  other: "P"
654
- }, or = (e, t, n, r) => rr[e];
655
- function fe(e) {
656
- return (t, n) => {
657
- const r = n?.context ? String(n.context) : "standalone";
658
- let o;
659
- if (r === "formatting" && e.formattingValues) {
660
- const a = e.defaultFormattingWidth || e.defaultWidth, i = n?.width ? String(n.width) : a;
661
- o = e.formattingValues[i] || e.formattingValues[a];
481
+ }, $n = (e, t, o, n) => Gn[e];
482
+ function ae(e) {
483
+ return (t, o) => {
484
+ const n = o?.context ? String(o.context) : "standalone";
485
+ let a;
486
+ if (n === "formatting" && e.formattingValues) {
487
+ const r = e.defaultFormattingWidth || e.defaultWidth, s = o?.width ? String(o.width) : r;
488
+ a = e.formattingValues[s] || e.formattingValues[r];
662
489
  } else {
663
- const a = e.defaultWidth, i = n?.width ? String(n.width) : e.defaultWidth;
664
- o = e.values[i] || e.values[a];
490
+ const r = e.defaultWidth, s = o?.width ? String(o.width) : e.defaultWidth;
491
+ a = e.values[s] || e.values[r];
665
492
  }
666
- const s = e.argumentCallback ? e.argumentCallback(t) : t;
667
- return o[s];
493
+ const l = e.argumentCallback ? e.argumentCallback(t) : t;
494
+ return a[l];
668
495
  };
669
496
  }
670
- const ar = {
497
+ const Rn = {
671
498
  narrow: ["B", "A"],
672
499
  abbreviated: ["BC", "AD"],
673
500
  wide: ["Before Christ", "Anno Domini"]
674
- }, sr = {
501
+ }, Vn = {
675
502
  narrow: ["1", "2", "3", "4"],
676
503
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
677
504
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
678
- }, ir = {
505
+ }, Zn = {
679
506
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
680
507
  abbreviated: [
681
508
  "Jan",
@@ -705,7 +532,7 @@ const ar = {
705
532
  "November",
706
533
  "December"
707
534
  ]
708
- }, ur = {
535
+ }, Un = {
709
536
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
710
537
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
711
538
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -718,7 +545,7 @@ const ar = {
718
545
  "Friday",
719
546
  "Saturday"
720
547
  ]
721
- }, cr = {
548
+ }, Kn = {
722
549
  narrow: {
723
550
  am: "a",
724
551
  pm: "p",
@@ -749,7 +576,7 @@ const ar = {
749
576
  evening: "evening",
750
577
  night: "night"
751
578
  }
752
- }, dr = {
579
+ }, Ln = {
753
580
  narrow: {
754
581
  am: "a",
755
582
  pm: "p",
@@ -780,101 +607,101 @@ const ar = {
780
607
  evening: "in the evening",
781
608
  night: "at night"
782
609
  }
783
- }, lr = (e, t) => {
784
- const n = Number(e), r = n % 100;
785
- if (r > 20 || r < 10)
786
- switch (r % 10) {
610
+ }, Jn = (e, t) => {
611
+ const o = Number(e), n = o % 100;
612
+ if (n > 20 || n < 10)
613
+ switch (n % 10) {
787
614
  case 1:
788
- return n + "st";
615
+ return o + "st";
789
616
  case 2:
790
- return n + "nd";
617
+ return o + "nd";
791
618
  case 3:
792
- return n + "rd";
619
+ return o + "rd";
793
620
  }
794
- return n + "th";
795
- }, fr = {
796
- ordinalNumber: lr,
797
- era: fe({
798
- values: ar,
621
+ return o + "th";
622
+ }, Xn = {
623
+ ordinalNumber: Jn,
624
+ era: ae({
625
+ values: Rn,
799
626
  defaultWidth: "wide"
800
627
  }),
801
- quarter: fe({
802
- values: sr,
628
+ quarter: ae({
629
+ values: Vn,
803
630
  defaultWidth: "wide",
804
631
  argumentCallback: (e) => e - 1
805
632
  }),
806
- month: fe({
807
- values: ir,
633
+ month: ae({
634
+ values: Zn,
808
635
  defaultWidth: "wide"
809
636
  }),
810
- day: fe({
811
- values: ur,
637
+ day: ae({
638
+ values: Un,
812
639
  defaultWidth: "wide"
813
640
  }),
814
- dayPeriod: fe({
815
- values: cr,
641
+ dayPeriod: ae({
642
+ values: Kn,
816
643
  defaultWidth: "wide",
817
- formattingValues: dr,
644
+ formattingValues: Ln,
818
645
  defaultFormattingWidth: "wide"
819
646
  })
820
647
  };
821
- function he(e) {
822
- return (t, n = {}) => {
823
- const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
824
- if (!s)
648
+ function re(e) {
649
+ return (t, o = {}) => {
650
+ const n = o.width, a = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], l = t.match(a);
651
+ if (!l)
825
652
  return null;
826
- const a = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? mr(i, (c) => c.test(a)) : (
653
+ const r = l[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(s) ? eo(s, (u) => u.test(r)) : (
827
654
  // [TODO] -- I challenge you to fix the type
828
- hr(i, (c) => c.test(a))
655
+ Qn(s, (u) => u.test(r))
829
656
  );
830
657
  let d;
831
- d = e.valueCallback ? e.valueCallback(u) : u, d = n.valueCallback ? (
658
+ d = e.valueCallback ? e.valueCallback(i) : i, d = o.valueCallback ? (
832
659
  // [TODO] -- I challenge you to fix the type
833
- n.valueCallback(d)
660
+ o.valueCallback(d)
834
661
  ) : d;
835
- const l = t.slice(a.length);
836
- return { value: d, rest: l };
662
+ const f = t.slice(r.length);
663
+ return { value: d, rest: f };
837
664
  };
838
665
  }
839
- function hr(e, t) {
840
- for (const n in e)
841
- if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
842
- return n;
666
+ function Qn(e, t) {
667
+ for (const o in e)
668
+ if (Object.prototype.hasOwnProperty.call(e, o) && t(e[o]))
669
+ return o;
843
670
  }
844
- function mr(e, t) {
845
- for (let n = 0; n < e.length; n++)
846
- if (t(e[n]))
847
- return n;
671
+ function eo(e, t) {
672
+ for (let o = 0; o < e.length; o++)
673
+ if (t(e[o]))
674
+ return o;
848
675
  }
849
- function gr(e) {
850
- return (t, n = {}) => {
851
- const r = t.match(e.matchPattern);
852
- if (!r) return null;
853
- const o = r[0], s = t.match(e.parsePattern);
854
- if (!s) return null;
855
- let a = e.valueCallback ? e.valueCallback(s[0]) : s[0];
856
- a = n.valueCallback ? n.valueCallback(a) : a;
857
- const i = t.slice(o.length);
858
- return { value: a, rest: i };
676
+ function to(e) {
677
+ return (t, o = {}) => {
678
+ const n = t.match(e.matchPattern);
679
+ if (!n) return null;
680
+ const a = n[0], l = t.match(e.parsePattern);
681
+ if (!l) return null;
682
+ let r = e.valueCallback ? e.valueCallback(l[0]) : l[0];
683
+ r = o.valueCallback ? o.valueCallback(r) : r;
684
+ const s = t.slice(a.length);
685
+ return { value: r, rest: s };
859
686
  };
860
687
  }
861
- const yr = /^(\d+)(th|st|nd|rd)?/i, pr = /\d+/i, br = {
688
+ const no = /^(\d+)(th|st|nd|rd)?/i, oo = /\d+/i, ao = {
862
689
  narrow: /^(b|a)/i,
863
690
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
864
691
  wide: /^(before christ|before common era|anno domini|common era)/i
865
- }, wr = {
692
+ }, ro = {
866
693
  any: [/^b/i, /^(a|c)/i]
867
- }, vr = {
694
+ }, so = {
868
695
  narrow: /^[1234]/i,
869
696
  abbreviated: /^q[1234]/i,
870
697
  wide: /^[1234](th|st|nd|rd)? quarter/i
871
- }, kr = {
698
+ }, io = {
872
699
  any: [/1/i, /2/i, /3/i, /4/i]
873
- }, Mr = {
700
+ }, lo = {
874
701
  narrow: /^[jfmasond]/i,
875
702
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
876
703
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
877
- }, Dr = {
704
+ }, uo = {
878
705
  narrow: [
879
706
  /^j/i,
880
707
  /^f/i,
@@ -903,18 +730,18 @@ const yr = /^(\d+)(th|st|nd|rd)?/i, pr = /\d+/i, br = {
903
730
  /^n/i,
904
731
  /^d/i
905
732
  ]
906
- }, xr = {
733
+ }, co = {
907
734
  narrow: /^[smtwf]/i,
908
735
  short: /^(su|mo|tu|we|th|fr|sa)/i,
909
736
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
910
737
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
911
- }, Or = {
738
+ }, fo = {
912
739
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
913
740
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
914
- }, Sr = {
741
+ }, ho = {
915
742
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
916
743
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
917
- }, Cr = {
744
+ }, mo = {
918
745
  any: {
919
746
  am: /^a/i,
920
747
  pm: /^p/i,
@@ -925,892 +752,87 @@ const yr = /^(\d+)(th|st|nd|rd)?/i, pr = /\d+/i, br = {
925
752
  evening: /evening/i,
926
753
  night: /night/i
927
754
  }
928
- }, Wr = {
929
- ordinalNumber: gr({
930
- matchPattern: yr,
931
- parsePattern: pr,
755
+ }, po = {
756
+ ordinalNumber: to({
757
+ matchPattern: no,
758
+ parsePattern: oo,
932
759
  valueCallback: (e) => parseInt(e, 10)
933
760
  }),
934
- era: he({
935
- matchPatterns: br,
761
+ era: re({
762
+ matchPatterns: ao,
936
763
  defaultMatchWidth: "wide",
937
- parsePatterns: wr,
764
+ parsePatterns: ro,
938
765
  defaultParseWidth: "any"
939
766
  }),
940
- quarter: he({
941
- matchPatterns: vr,
767
+ quarter: re({
768
+ matchPatterns: so,
942
769
  defaultMatchWidth: "wide",
943
- parsePatterns: kr,
770
+ parsePatterns: io,
944
771
  defaultParseWidth: "any",
945
772
  valueCallback: (e) => e + 1
946
773
  }),
947
- month: he({
948
- matchPatterns: Mr,
774
+ month: re({
775
+ matchPatterns: lo,
949
776
  defaultMatchWidth: "wide",
950
- parsePatterns: Dr,
777
+ parsePatterns: uo,
951
778
  defaultParseWidth: "any"
952
779
  }),
953
- day: he({
954
- matchPatterns: xr,
780
+ day: re({
781
+ matchPatterns: co,
955
782
  defaultMatchWidth: "wide",
956
- parsePatterns: Or,
783
+ parsePatterns: fo,
957
784
  defaultParseWidth: "any"
958
785
  }),
959
- dayPeriod: he({
960
- matchPatterns: Sr,
786
+ dayPeriod: re({
787
+ matchPatterns: ho,
961
788
  defaultMatchWidth: "any",
962
- parsePatterns: Cr,
789
+ parsePatterns: mo,
963
790
  defaultParseWidth: "any"
964
791
  })
965
- }, $e = {
792
+ }, nt = {
966
793
  code: "en-US",
967
- formatDistance: Kn,
968
- formatLong: nr,
969
- formatRelative: or,
970
- localize: fr,
971
- match: Wr,
794
+ formatDistance: jn,
795
+ formatLong: qn,
796
+ formatRelative: $n,
797
+ localize: Xn,
798
+ match: po,
972
799
  options: {
973
800
  weekStartsOn: 0,
974
801
  firstWeekContainsDate: 1
975
802
  }
976
- };
977
- function Nr(e, t) {
978
- const n = P(e, t?.in);
979
- return xt(n, Ct(n)) + 1;
980
- }
981
- function Nt(e, t) {
982
- const n = P(e, t?.in), r = +ye(n) - +In(n);
983
- return Math.round(r / vt) + 1;
984
- }
985
- function Tt(e, t) {
986
- const n = P(e, t?.in), r = n.getFullYear(), o = we(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = j(t?.in || e, 0);
987
- a.setFullYear(r + 1, 0, s), a.setHours(0, 0, 0, 0);
988
- const i = de(a, t), u = j(t?.in || e, 0);
989
- u.setFullYear(r, 0, s), u.setHours(0, 0, 0, 0);
990
- const d = de(u, t);
991
- return +n >= +i ? r + 1 : +n >= +d ? r : r - 1;
992
- }
993
- function Tr(e, t) {
994
- const n = we(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = Tt(e, t), s = j(t?.in || e, 0);
995
- return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), de(s, t);
996
- }
997
- function _t(e, t) {
998
- const n = P(e, t?.in), r = +de(n, t) - +Tr(n, t);
999
- return Math.round(r / vt) + 1;
1000
- }
1001
- function Y(e, t) {
1002
- const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
1003
- return n + r;
1004
- }
1005
- const ae = {
1006
- // Year
1007
- y(e, t) {
1008
- const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
1009
- return Y(t === "yy" ? r % 100 : r, t.length);
1010
- },
1011
- // Month
1012
- M(e, t) {
1013
- const n = e.getMonth();
1014
- return t === "M" ? String(n + 1) : Y(n + 1, 2);
1015
- },
1016
- // Day of the month
1017
- d(e, t) {
1018
- return Y(e.getDate(), t.length);
1019
- },
1020
- // AM or PM
1021
- a(e, t) {
1022
- const n = e.getHours() / 12 >= 1 ? "pm" : "am";
1023
- switch (t) {
1024
- case "a":
1025
- case "aa":
1026
- return n.toUpperCase();
1027
- case "aaa":
1028
- return n;
1029
- case "aaaaa":
1030
- return n[0];
1031
- case "aaaa":
1032
- default:
1033
- return n === "am" ? "a.m." : "p.m.";
1034
- }
1035
- },
1036
- // Hour [1-12]
1037
- h(e, t) {
1038
- return Y(e.getHours() % 12 || 12, t.length);
1039
- },
1040
- // Hour [0-23]
1041
- H(e, t) {
1042
- return Y(e.getHours(), t.length);
1043
- },
1044
- // Minute
1045
- m(e, t) {
1046
- return Y(e.getMinutes(), t.length);
1047
- },
1048
- // Second
1049
- s(e, t) {
1050
- return Y(e.getSeconds(), t.length);
1051
- },
1052
- // Fraction of second
1053
- S(e, t) {
1054
- const n = t.length, r = e.getMilliseconds(), o = Math.trunc(
1055
- r * Math.pow(10, n - 3)
1056
- );
1057
- return Y(o, t.length);
1058
- }
1059
- }, ce = {
1060
- midnight: "midnight",
1061
- noon: "noon",
1062
- morning: "morning",
1063
- afternoon: "afternoon",
1064
- evening: "evening",
1065
- night: "night"
1066
- }, it = {
1067
- // Era
1068
- G: function(e, t, n) {
1069
- const r = e.getFullYear() > 0 ? 1 : 0;
1070
- switch (t) {
1071
- // AD, BC
1072
- case "G":
1073
- case "GG":
1074
- case "GGG":
1075
- return n.era(r, { width: "abbreviated" });
1076
- // A, B
1077
- case "GGGGG":
1078
- return n.era(r, { width: "narrow" });
1079
- // Anno Domini, Before Christ
1080
- case "GGGG":
1081
- default:
1082
- return n.era(r, { width: "wide" });
1083
- }
1084
- },
1085
- // Year
1086
- y: function(e, t, n) {
1087
- if (t === "yo") {
1088
- const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
1089
- return n.ordinalNumber(o, { unit: "year" });
1090
- }
1091
- return ae.y(e, t);
1092
- },
1093
- // Local week-numbering year
1094
- Y: function(e, t, n, r) {
1095
- const o = Tt(e, r), s = o > 0 ? o : 1 - o;
1096
- if (t === "YY") {
1097
- const a = s % 100;
1098
- return Y(a, 2);
1099
- }
1100
- return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : Y(s, t.length);
1101
- },
1102
- // ISO week-numbering year
1103
- R: function(e, t) {
1104
- const n = Dt(e);
1105
- return Y(n, t.length);
1106
- },
1107
- // Extended year. This is a single number designating the year of this calendar system.
1108
- // The main difference between `y` and `u` localizers are B.C. years:
1109
- // | Year | `y` | `u` |
1110
- // |------|-----|-----|
1111
- // | AC 1 | 1 | 1 |
1112
- // | BC 1 | 1 | 0 |
1113
- // | BC 2 | 2 | -1 |
1114
- // Also `yy` always returns the last two digits of a year,
1115
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
1116
- u: function(e, t) {
1117
- const n = e.getFullYear();
1118
- return Y(n, t.length);
1119
- },
1120
- // Quarter
1121
- Q: function(e, t, n) {
1122
- const r = Math.ceil((e.getMonth() + 1) / 3);
1123
- switch (t) {
1124
- // 1, 2, 3, 4
1125
- case "Q":
1126
- return String(r);
1127
- // 01, 02, 03, 04
1128
- case "QQ":
1129
- return Y(r, 2);
1130
- // 1st, 2nd, 3rd, 4th
1131
- case "Qo":
1132
- return n.ordinalNumber(r, { unit: "quarter" });
1133
- // Q1, Q2, Q3, Q4
1134
- case "QQQ":
1135
- return n.quarter(r, {
1136
- width: "abbreviated",
1137
- context: "formatting"
1138
- });
1139
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
1140
- case "QQQQQ":
1141
- return n.quarter(r, {
1142
- width: "narrow",
1143
- context: "formatting"
1144
- });
1145
- // 1st quarter, 2nd quarter, ...
1146
- case "QQQQ":
1147
- default:
1148
- return n.quarter(r, {
1149
- width: "wide",
1150
- context: "formatting"
1151
- });
1152
- }
1153
- },
1154
- // Stand-alone quarter
1155
- q: function(e, t, n) {
1156
- const r = Math.ceil((e.getMonth() + 1) / 3);
1157
- switch (t) {
1158
- // 1, 2, 3, 4
1159
- case "q":
1160
- return String(r);
1161
- // 01, 02, 03, 04
1162
- case "qq":
1163
- return Y(r, 2);
1164
- // 1st, 2nd, 3rd, 4th
1165
- case "qo":
1166
- return n.ordinalNumber(r, { unit: "quarter" });
1167
- // Q1, Q2, Q3, Q4
1168
- case "qqq":
1169
- return n.quarter(r, {
1170
- width: "abbreviated",
1171
- context: "standalone"
1172
- });
1173
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
1174
- case "qqqqq":
1175
- return n.quarter(r, {
1176
- width: "narrow",
1177
- context: "standalone"
1178
- });
1179
- // 1st quarter, 2nd quarter, ...
1180
- case "qqqq":
1181
- default:
1182
- return n.quarter(r, {
1183
- width: "wide",
1184
- context: "standalone"
1185
- });
1186
- }
1187
- },
1188
- // Month
1189
- M: function(e, t, n) {
1190
- const r = e.getMonth();
1191
- switch (t) {
1192
- case "M":
1193
- case "MM":
1194
- return ae.M(e, t);
1195
- // 1st, 2nd, ..., 12th
1196
- case "Mo":
1197
- return n.ordinalNumber(r + 1, { unit: "month" });
1198
- // Jan, Feb, ..., Dec
1199
- case "MMM":
1200
- return n.month(r, {
1201
- width: "abbreviated",
1202
- context: "formatting"
1203
- });
1204
- // J, F, ..., D
1205
- case "MMMMM":
1206
- return n.month(r, {
1207
- width: "narrow",
1208
- context: "formatting"
1209
- });
1210
- // January, February, ..., December
1211
- case "MMMM":
1212
- default:
1213
- return n.month(r, { width: "wide", context: "formatting" });
1214
- }
1215
- },
1216
- // Stand-alone month
1217
- L: function(e, t, n) {
1218
- const r = e.getMonth();
1219
- switch (t) {
1220
- // 1, 2, ..., 12
1221
- case "L":
1222
- return String(r + 1);
1223
- // 01, 02, ..., 12
1224
- case "LL":
1225
- return Y(r + 1, 2);
1226
- // 1st, 2nd, ..., 12th
1227
- case "Lo":
1228
- return n.ordinalNumber(r + 1, { unit: "month" });
1229
- // Jan, Feb, ..., Dec
1230
- case "LLL":
1231
- return n.month(r, {
1232
- width: "abbreviated",
1233
- context: "standalone"
1234
- });
1235
- // J, F, ..., D
1236
- case "LLLLL":
1237
- return n.month(r, {
1238
- width: "narrow",
1239
- context: "standalone"
1240
- });
1241
- // January, February, ..., December
1242
- case "LLLL":
1243
- default:
1244
- return n.month(r, { width: "wide", context: "standalone" });
1245
- }
1246
- },
1247
- // Local week of year
1248
- w: function(e, t, n, r) {
1249
- const o = _t(e, r);
1250
- return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : Y(o, t.length);
1251
- },
1252
- // ISO week of year
1253
- I: function(e, t, n) {
1254
- const r = Nt(e);
1255
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : Y(r, t.length);
1256
- },
1257
- // Day of the month
1258
- d: function(e, t, n) {
1259
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : ae.d(e, t);
1260
- },
1261
- // Day of year
1262
- D: function(e, t, n) {
1263
- const r = Nr(e);
1264
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Y(r, t.length);
1265
- },
1266
- // Day of week
1267
- E: function(e, t, n) {
1268
- const r = e.getDay();
1269
- switch (t) {
1270
- // Tue
1271
- case "E":
1272
- case "EE":
1273
- case "EEE":
1274
- return n.day(r, {
1275
- width: "abbreviated",
1276
- context: "formatting"
1277
- });
1278
- // T
1279
- case "EEEEE":
1280
- return n.day(r, {
1281
- width: "narrow",
1282
- context: "formatting"
1283
- });
1284
- // Tu
1285
- case "EEEEEE":
1286
- return n.day(r, {
1287
- width: "short",
1288
- context: "formatting"
1289
- });
1290
- // Tuesday
1291
- case "EEEE":
1292
- default:
1293
- return n.day(r, {
1294
- width: "wide",
1295
- context: "formatting"
1296
- });
1297
- }
1298
- },
1299
- // Local day of week
1300
- e: function(e, t, n, r) {
1301
- const o = e.getDay(), s = (o - r.weekStartsOn + 8) % 7 || 7;
1302
- switch (t) {
1303
- // Numerical value (Nth day of week with current locale or weekStartsOn)
1304
- case "e":
1305
- return String(s);
1306
- // Padded numerical value
1307
- case "ee":
1308
- return Y(s, 2);
1309
- // 1st, 2nd, ..., 7th
1310
- case "eo":
1311
- return n.ordinalNumber(s, { unit: "day" });
1312
- case "eee":
1313
- return n.day(o, {
1314
- width: "abbreviated",
1315
- context: "formatting"
1316
- });
1317
- // T
1318
- case "eeeee":
1319
- return n.day(o, {
1320
- width: "narrow",
1321
- context: "formatting"
1322
- });
1323
- // Tu
1324
- case "eeeeee":
1325
- return n.day(o, {
1326
- width: "short",
1327
- context: "formatting"
1328
- });
1329
- // Tuesday
1330
- case "eeee":
1331
- default:
1332
- return n.day(o, {
1333
- width: "wide",
1334
- context: "formatting"
1335
- });
1336
- }
1337
- },
1338
- // Stand-alone local day of week
1339
- c: function(e, t, n, r) {
1340
- const o = e.getDay(), s = (o - r.weekStartsOn + 8) % 7 || 7;
1341
- switch (t) {
1342
- // Numerical value (same as in `e`)
1343
- case "c":
1344
- return String(s);
1345
- // Padded numerical value
1346
- case "cc":
1347
- return Y(s, t.length);
1348
- // 1st, 2nd, ..., 7th
1349
- case "co":
1350
- return n.ordinalNumber(s, { unit: "day" });
1351
- case "ccc":
1352
- return n.day(o, {
1353
- width: "abbreviated",
1354
- context: "standalone"
1355
- });
1356
- // T
1357
- case "ccccc":
1358
- return n.day(o, {
1359
- width: "narrow",
1360
- context: "standalone"
1361
- });
1362
- // Tu
1363
- case "cccccc":
1364
- return n.day(o, {
1365
- width: "short",
1366
- context: "standalone"
1367
- });
1368
- // Tuesday
1369
- case "cccc":
1370
- default:
1371
- return n.day(o, {
1372
- width: "wide",
1373
- context: "standalone"
1374
- });
1375
- }
1376
- },
1377
- // ISO day of week
1378
- i: function(e, t, n) {
1379
- const r = e.getDay(), o = r === 0 ? 7 : r;
1380
- switch (t) {
1381
- // 2
1382
- case "i":
1383
- return String(o);
1384
- // 02
1385
- case "ii":
1386
- return Y(o, t.length);
1387
- // 2nd
1388
- case "io":
1389
- return n.ordinalNumber(o, { unit: "day" });
1390
- // Tue
1391
- case "iii":
1392
- return n.day(r, {
1393
- width: "abbreviated",
1394
- context: "formatting"
1395
- });
1396
- // T
1397
- case "iiiii":
1398
- return n.day(r, {
1399
- width: "narrow",
1400
- context: "formatting"
1401
- });
1402
- // Tu
1403
- case "iiiiii":
1404
- return n.day(r, {
1405
- width: "short",
1406
- context: "formatting"
1407
- });
1408
- // Tuesday
1409
- case "iiii":
1410
- default:
1411
- return n.day(r, {
1412
- width: "wide",
1413
- context: "formatting"
1414
- });
1415
- }
1416
- },
1417
- // AM or PM
1418
- a: function(e, t, n) {
1419
- const o = e.getHours() / 12 >= 1 ? "pm" : "am";
1420
- switch (t) {
1421
- case "a":
1422
- case "aa":
1423
- return n.dayPeriod(o, {
1424
- width: "abbreviated",
1425
- context: "formatting"
1426
- });
1427
- case "aaa":
1428
- return n.dayPeriod(o, {
1429
- width: "abbreviated",
1430
- context: "formatting"
1431
- }).toLowerCase();
1432
- case "aaaaa":
1433
- return n.dayPeriod(o, {
1434
- width: "narrow",
1435
- context: "formatting"
1436
- });
1437
- case "aaaa":
1438
- default:
1439
- return n.dayPeriod(o, {
1440
- width: "wide",
1441
- context: "formatting"
1442
- });
1443
- }
1444
- },
1445
- // AM, PM, midnight, noon
1446
- b: function(e, t, n) {
1447
- const r = e.getHours();
1448
- let o;
1449
- switch (r === 12 ? o = ce.noon : r === 0 ? o = ce.midnight : o = r / 12 >= 1 ? "pm" : "am", t) {
1450
- case "b":
1451
- case "bb":
1452
- return n.dayPeriod(o, {
1453
- width: "abbreviated",
1454
- context: "formatting"
1455
- });
1456
- case "bbb":
1457
- return n.dayPeriod(o, {
1458
- width: "abbreviated",
1459
- context: "formatting"
1460
- }).toLowerCase();
1461
- case "bbbbb":
1462
- return n.dayPeriod(o, {
1463
- width: "narrow",
1464
- context: "formatting"
1465
- });
1466
- case "bbbb":
1467
- default:
1468
- return n.dayPeriod(o, {
1469
- width: "wide",
1470
- context: "formatting"
1471
- });
1472
- }
1473
- },
1474
- // in the morning, in the afternoon, in the evening, at night
1475
- B: function(e, t, n) {
1476
- const r = e.getHours();
1477
- let o;
1478
- switch (r >= 17 ? o = ce.evening : r >= 12 ? o = ce.afternoon : r >= 4 ? o = ce.morning : o = ce.night, t) {
1479
- case "B":
1480
- case "BB":
1481
- case "BBB":
1482
- return n.dayPeriod(o, {
1483
- width: "abbreviated",
1484
- context: "formatting"
1485
- });
1486
- case "BBBBB":
1487
- return n.dayPeriod(o, {
1488
- width: "narrow",
1489
- context: "formatting"
1490
- });
1491
- case "BBBB":
1492
- default:
1493
- return n.dayPeriod(o, {
1494
- width: "wide",
1495
- context: "formatting"
1496
- });
1497
- }
1498
- },
1499
- // Hour [1-12]
1500
- h: function(e, t, n) {
1501
- if (t === "ho") {
1502
- let r = e.getHours() % 12;
1503
- return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1504
- }
1505
- return ae.h(e, t);
1506
- },
1507
- // Hour [0-23]
1508
- H: function(e, t, n) {
1509
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : ae.H(e, t);
1510
- },
1511
- // Hour [0-11]
1512
- K: function(e, t, n) {
1513
- const r = e.getHours() % 12;
1514
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : Y(r, t.length);
1515
- },
1516
- // Hour [1-24]
1517
- k: function(e, t, n) {
1518
- let r = e.getHours();
1519
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : Y(r, t.length);
1520
- },
1521
- // Minute
1522
- m: function(e, t, n) {
1523
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : ae.m(e, t);
1524
- },
1525
- // Second
1526
- s: function(e, t, n) {
1527
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : ae.s(e, t);
1528
- },
1529
- // Fraction of second
1530
- S: function(e, t) {
1531
- return ae.S(e, t);
1532
- },
1533
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1534
- X: function(e, t, n) {
1535
- const r = e.getTimezoneOffset();
1536
- if (r === 0)
1537
- return "Z";
1538
- switch (t) {
1539
- // Hours and optional minutes
1540
- case "X":
1541
- return ct(r);
1542
- // Hours, minutes and optional seconds without `:` delimiter
1543
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1544
- // so this token always has the same output as `XX`
1545
- case "XXXX":
1546
- case "XX":
1547
- return se(r);
1548
- // Hours, minutes and optional seconds with `:` delimiter
1549
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1550
- // so this token always has the same output as `XXX`
1551
- case "XXXXX":
1552
- case "XXX":
1553
- // Hours and minutes with `:` delimiter
1554
- default:
1555
- return se(r, ":");
1556
- }
1557
- },
1558
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1559
- x: function(e, t, n) {
1560
- const r = e.getTimezoneOffset();
1561
- switch (t) {
1562
- // Hours and optional minutes
1563
- case "x":
1564
- return ct(r);
1565
- // Hours, minutes and optional seconds without `:` delimiter
1566
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1567
- // so this token always has the same output as `xx`
1568
- case "xxxx":
1569
- case "xx":
1570
- return se(r);
1571
- // Hours, minutes and optional seconds with `:` delimiter
1572
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1573
- // so this token always has the same output as `xxx`
1574
- case "xxxxx":
1575
- case "xxx":
1576
- // Hours and minutes with `:` delimiter
1577
- default:
1578
- return se(r, ":");
1579
- }
1580
- },
1581
- // Timezone (GMT)
1582
- O: function(e, t, n) {
1583
- const r = e.getTimezoneOffset();
1584
- switch (t) {
1585
- // Short
1586
- case "O":
1587
- case "OO":
1588
- case "OOO":
1589
- return "GMT" + ut(r, ":");
1590
- // Long
1591
- case "OOOO":
1592
- default:
1593
- return "GMT" + se(r, ":");
1594
- }
1595
- },
1596
- // Timezone (specific non-location)
1597
- z: function(e, t, n) {
1598
- const r = e.getTimezoneOffset();
1599
- switch (t) {
1600
- // Short
1601
- case "z":
1602
- case "zz":
1603
- case "zzz":
1604
- return "GMT" + ut(r, ":");
1605
- // Long
1606
- case "zzzz":
1607
- default:
1608
- return "GMT" + se(r, ":");
1609
- }
1610
- },
1611
- // Seconds timestamp
1612
- t: function(e, t, n) {
1613
- const r = Math.trunc(+e / 1e3);
1614
- return Y(r, t.length);
1615
- },
1616
- // Milliseconds timestamp
1617
- T: function(e, t, n) {
1618
- return Y(+e, t.length);
1619
- }
1620
- };
1621
- function ut(e, t = "") {
1622
- const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), s = r % 60;
1623
- return s === 0 ? n + String(o) : n + String(o) + t + Y(s, 2);
1624
- }
1625
- function ct(e, t) {
1626
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + Y(Math.abs(e) / 60, 2) : se(e, t);
1627
- }
1628
- function se(e, t = "") {
1629
- const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Y(Math.trunc(r / 60), 2), s = Y(r % 60, 2);
1630
- return n + o + t + s;
1631
- }
1632
- const dt = (e, t) => {
1633
- switch (e) {
1634
- case "P":
1635
- return t.date({ width: "short" });
1636
- case "PP":
1637
- return t.date({ width: "medium" });
1638
- case "PPP":
1639
- return t.date({ width: "long" });
1640
- case "PPPP":
1641
- default:
1642
- return t.date({ width: "full" });
1643
- }
1644
- }, Yt = (e, t) => {
1645
- switch (e) {
1646
- case "p":
1647
- return t.time({ width: "short" });
1648
- case "pp":
1649
- return t.time({ width: "medium" });
1650
- case "ppp":
1651
- return t.time({ width: "long" });
1652
- case "pppp":
1653
- default:
1654
- return t.time({ width: "full" });
1655
- }
1656
- }, _r = (e, t) => {
1657
- const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
1658
- if (!o)
1659
- return dt(e, t);
1660
- let s;
1661
- switch (r) {
1662
- case "P":
1663
- s = t.dateTime({ width: "short" });
1664
- break;
1665
- case "PP":
1666
- s = t.dateTime({ width: "medium" });
1667
- break;
1668
- case "PPP":
1669
- s = t.dateTime({ width: "long" });
1670
- break;
1671
- case "PPPP":
1672
- default:
1673
- s = t.dateTime({ width: "full" });
1674
- break;
1675
- }
1676
- return s.replace("{{date}}", dt(r, t)).replace("{{time}}", Yt(o, t));
1677
- }, Yr = {
1678
- p: Yt,
1679
- P: _r
1680
- }, Er = /^D+$/, Pr = /^Y+$/, Fr = ["D", "DD", "YY", "YYYY"];
1681
- function Br(e) {
1682
- return Er.test(e);
1683
- }
1684
- function Ir(e) {
1685
- return Pr.test(e);
1686
- }
1687
- function jr(e, t, n) {
1688
- const r = Hr(e, t, n);
1689
- if (console.warn(r), Fr.includes(e)) throw new RangeError(r);
1690
- }
1691
- function Hr(e, t, n) {
1692
- const r = e[0] === "Y" ? "years" : "days of the month";
1693
- 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`;
1694
- }
1695
- const Ar = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qr = /^'([^]*?)'?$/, Gr = /''/g, Rr = /[a-zA-Z]/;
1696
- function $r(e, t, n) {
1697
- const r = we(), o = n?.locale ?? r.locale ?? $e, s = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, a = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = P(e, n?.in);
1698
- if (!Gn(i))
1699
- throw new RangeError("Invalid time value");
1700
- let u = t.match(zr).map((l) => {
1701
- const c = l[0];
1702
- if (c === "p" || c === "P") {
1703
- const h = Yr[c];
1704
- return h(l, o.formatLong);
1705
- }
1706
- return l;
1707
- }).join("").match(Ar).map((l) => {
1708
- if (l === "''")
1709
- return { isToken: !1, value: "'" };
1710
- const c = l[0];
1711
- if (c === "'")
1712
- return { isToken: !1, value: Vr(l) };
1713
- if (it[c])
1714
- return { isToken: !0, value: l };
1715
- if (c.match(Rr))
1716
- throw new RangeError(
1717
- "Format string contains an unescaped latin alphabet character `" + c + "`"
1718
- );
1719
- return { isToken: !1, value: l };
1720
- });
1721
- o.localize.preprocessor && (u = o.localize.preprocessor(i, u));
1722
- const d = {
1723
- firstWeekContainsDate: s,
1724
- weekStartsOn: a,
1725
- locale: o
1726
- };
1727
- return u.map((l) => {
1728
- if (!l.isToken) return l.value;
1729
- const c = l.value;
1730
- (!n?.useAdditionalWeekYearTokens && Ir(c) || !n?.useAdditionalDayOfYearTokens && Br(c)) && jr(c, t, String(e));
1731
- const h = it[c[0]];
1732
- return h(i, c, o.localize, d);
1733
- }).join("");
1734
- }
1735
- function Vr(e) {
1736
- const t = e.match(qr);
1737
- return t ? t[1].replace(Gr, "'") : e;
1738
- }
1739
- function Lr(e, t) {
1740
- const n = P(e, t?.in), r = n.getFullYear(), o = n.getMonth(), s = j(n, 0);
1741
- return s.setFullYear(r, o + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
1742
- }
1743
- function Qr(e, t) {
1744
- return P(e, t?.in).getMonth();
1745
- }
1746
- function Xr(e, t) {
1747
- return P(e, t?.in).getFullYear();
1748
- }
1749
- function Ur(e, t) {
1750
- return +P(e) > +P(t);
1751
- }
1752
- function Zr(e, t) {
1753
- return +P(e) < +P(t);
1754
- }
1755
- function Kr(e, t, n) {
1756
- const [r, o] = le(
1757
- n?.in,
1758
- e,
1759
- t
1760
- );
1761
- return r.getFullYear() === o.getFullYear() && r.getMonth() === o.getMonth();
1762
- }
1763
- function Jr(e, t, n) {
1764
- const [r, o] = le(
1765
- n?.in,
1766
- e,
1767
- t
1768
- );
1769
- return r.getFullYear() === o.getFullYear();
1770
- }
1771
- function eo(e, t, n) {
1772
- const r = P(e, n?.in), o = r.getFullYear(), s = r.getDate(), a = j(e, 0);
1773
- a.setFullYear(o, t, 15), a.setHours(0, 0, 0, 0);
1774
- const i = Lr(a);
1775
- return r.setMonth(t, Math.min(s, i)), r;
1776
- }
1777
- function to(e, t, n) {
1778
- const r = P(e, n?.in);
1779
- return isNaN(+r) ? j(e, NaN) : (r.setFullYear(t), r);
803
+ }, Ze = 5, yo = 4;
804
+ function go(e, t) {
805
+ const o = t.startOfMonth(e), n = o.getDay() > 0 ? o.getDay() : 7, a = t.addDays(e, -n + 1), l = t.addDays(a, Ze * 7 - 1);
806
+ return t.getMonth(e) === t.getMonth(l) ? Ze : yo;
1780
807
  }
1781
- const lt = 5, no = 4;
1782
- function ro(e, t) {
1783
- const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, o = t.addDays(e, -r + 1), s = t.addDays(o, lt * 7 - 1);
1784
- return t.getMonth(e) === t.getMonth(s) ? lt : no;
808
+ function ot(e, t) {
809
+ const o = t.startOfMonth(e), n = o.getDay();
810
+ return n === 1 ? o : n === 0 ? t.addDays(o, -6) : t.addDays(o, -1 * (n - 1));
1785
811
  }
1786
- function Et(e, t) {
1787
- const n = t.startOfMonth(e), r = n.getDay();
1788
- return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
812
+ function bo(e, t) {
813
+ const o = ot(e, t), n = go(e, t);
814
+ return t.addDays(o, n * 7 - 1);
1789
815
  }
1790
- function oo(e, t) {
1791
- const n = Et(e, t), r = ro(e, t);
1792
- return t.addDays(n, r * 7 - 1);
1793
- }
1794
- class q {
816
+ class A {
1795
817
  /**
1796
818
  * Creates an instance of `DateLib`.
1797
819
  *
1798
820
  * @param options Configuration options for the date library.
1799
821
  * @param overrides Custom overrides for the date library functions.
1800
822
  */
1801
- constructor(t, n) {
1802
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? te.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, o, s) => this.overrides?.newDate ? this.overrides.newDate(r, o, s) : this.options.timeZone ? new te(r, o, s, this.options.timeZone) : new Date(r, o, s), this.addDays = (r, o) => this.overrides?.addDays ? this.overrides.addDays(r, o) : kt(r, o), this.addMonths = (r, o) => this.overrides?.addMonths ? this.overrides.addMonths(r, o) : Mt(r, o), this.addWeeks = (r, o) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, o) : jn(r, o), this.addYears = (r, o) => this.overrides?.addYears ? this.overrides.addYears(r, o) : Hn(r, o), this.differenceInCalendarDays = (r, o) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, o) : xt(r, o), this.differenceInCalendarMonths = (r, o) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, o) : Rn(r, o), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Vn(r), this.eachYearOfInterval = (r) => {
1803
- const o = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Xn(r), s = new Set(o.map((i) => this.getYear(i)));
1804
- if (s.size === o.length)
1805
- return o;
1806
- const a = [];
1807
- return s.forEach((i) => {
1808
- a.push(new Date(i, 0, 1));
1809
- }), a;
1810
- }, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : oo(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Un(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : $n(r), this.endOfWeek = (r, o) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, o) : Wt(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : Qn(r), this.format = (r, o, s) => {
1811
- const a = this.overrides?.format ? this.overrides.format(r, o, this.options) : $r(r, o, this.options);
1812
- return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(a) : a;
1813
- }, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : Nt(r), this.getMonth = (r, o) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : Qr(r, this.options), this.getYear = (r, o) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : Xr(r, this.options), this.getWeek = (r, o) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : _t(r, this.options), this.isAfter = (r, o) => this.overrides?.isAfter ? this.overrides.isAfter(r, o) : Ur(r, o), this.isBefore = (r, o) => this.overrides?.isBefore ? this.overrides.isBefore(r, o) : Zr(r, o), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : Ot(r), this.isSameDay = (r, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, o) : qn(r, o), this.isSameMonth = (r, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, o) : Kr(r, o), this.isSameYear = (r, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, o) : Jr(r, o), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : An(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : zn(r), this.setMonth = (r, o) => this.overrides?.setMonth ? this.overrides.setMonth(r, o) : eo(r, o), this.setYear = (r, o) => this.overrides?.setYear ? this.overrides.setYear(r, o) : to(r, o), this.startOfBroadcastWeek = (r, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : Et(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : pe(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : ye(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : Ln(r), this.startOfWeek = (r, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : de(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : Ct(r), this.options = { locale: $e, ...t }, this.overrides = n;
823
+ constructor(t, o) {
824
+ this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? X.tz(this.options.timeZone) : new this.Date(), this.newDate = (n, a, l) => this.overrides?.newDate ? this.overrides.newDate(n, a, l) : this.options.timeZone ? new X(n, a, l, this.options.timeZone) : new Date(n, a, l), this.addDays = (n, a) => this.overrides?.addDays ? this.overrides.addDays(n, a) : Kt(n, a), this.addMonths = (n, a) => this.overrides?.addMonths ? this.overrides.addMonths(n, a) : Lt(n, a), this.addWeeks = (n, a) => this.overrides?.addWeeks ? this.overrides.addWeeks(n, a) : Jt(n, a), this.addYears = (n, a) => this.overrides?.addYears ? this.overrides.addYears(n, a) : Xt(n, a), this.differenceInCalendarDays = (n, a) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, a) : Qt(n, a), this.differenceInCalendarMonths = (n, a) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, a) : en(n, a), this.eachMonthOfInterval = (n) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : tn(n), this.eachYearOfInterval = (n) => {
825
+ const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) : nn(n), l = new Set(a.map((s) => this.getYear(s)));
826
+ if (l.size === a.length)
827
+ return a;
828
+ const r = [];
829
+ return l.forEach((s) => {
830
+ r.push(new Date(s, 0, 1));
831
+ }), r;
832
+ }, this.endOfBroadcastWeek = (n) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : bo(n, this), this.endOfISOWeek = (n) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(n) : on(n), this.endOfMonth = (n) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(n) : an(n), this.endOfWeek = (n, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(n, a) : rn(n, this.options), this.endOfYear = (n) => this.overrides?.endOfYear ? this.overrides.endOfYear(n) : sn(n), this.format = (n, a, l) => {
833
+ const r = this.overrides?.format ? this.overrides.format(n, a, this.options) : ln(n, a, this.options);
834
+ return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(r) : r;
835
+ }, this.getISOWeek = (n) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(n) : dn(n), this.getMonth = (n, a) => this.overrides?.getMonth ? this.overrides.getMonth(n, this.options) : un(n, this.options), this.getYear = (n, a) => this.overrides?.getYear ? this.overrides.getYear(n, this.options) : cn(n, this.options), this.getWeek = (n, a) => this.overrides?.getWeek ? this.overrides.getWeek(n, this.options) : fn(n, this.options), this.isAfter = (n, a) => this.overrides?.isAfter ? this.overrides.isAfter(n, a) : hn(n, a), this.isBefore = (n, a) => this.overrides?.isBefore ? this.overrides.isBefore(n, a) : mn(n, a), this.isDate = (n) => this.overrides?.isDate ? this.overrides.isDate(n) : pn(n), this.isSameDay = (n, a) => this.overrides?.isSameDay ? this.overrides.isSameDay(n, a) : yn(n, a), this.isSameMonth = (n, a) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(n, a) : gn(n, a), this.isSameYear = (n, a) => this.overrides?.isSameYear ? this.overrides.isSameYear(n, a) : bn(n, a), this.max = (n) => this.overrides?.max ? this.overrides.max(n) : vn(n), this.min = (n) => this.overrides?.min ? this.overrides.min(n) : kn(n), this.setMonth = (n, a) => this.overrides?.setMonth ? this.overrides.setMonth(n, a) : wn(n, a), this.setYear = (n, a) => this.overrides?.setYear ? this.overrides.setYear(n, a) : Mn(n, a), this.startOfBroadcastWeek = (n, a) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : ot(n, this), this.startOfDay = (n) => this.overrides?.startOfDay ? this.overrides.startOfDay(n) : Dn(n), this.startOfISOWeek = (n) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(n) : xn(n), this.startOfMonth = (n) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(n) : Cn(n), this.startOfWeek = (n, a) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(n, this.options) : On(n, this.options), this.startOfYear = (n) => this.overrides?.startOfYear ? this.overrides.startOfYear(n) : Wn(n), this.options = { locale: nt, ...t }, this.overrides = o;
1814
836
  }
1815
837
  /**
1816
838
  * Generates a mapping of Arabic digits (0-9) to the target numbering system
@@ -1820,12 +842,12 @@ class q {
1820
842
  * @returns A record mapping Arabic digits to the target numerals.
1821
843
  */
1822
844
  getDigitMap() {
1823
- const { numerals: t = "latn" } = this.options, n = new Intl.NumberFormat("en-US", {
845
+ const { numerals: t = "latn" } = this.options, o = new Intl.NumberFormat("en-US", {
1824
846
  numberingSystem: t
1825
- }), r = {};
1826
- for (let o = 0; o < 10; o++)
1827
- r[o.toString()] = n.format(o);
1828
- return r;
847
+ }), n = {};
848
+ for (let a = 0; a < 10; a++)
849
+ n[a.toString()] = o.format(a);
850
+ return n;
1829
851
  }
1830
852
  /**
1831
853
  * Replaces Arabic digits in a string with the target numbering system digits.
@@ -1835,8 +857,8 @@ class q {
1835
857
  * @returns The string with digits replaced.
1836
858
  */
1837
859
  replaceDigits(t) {
1838
- const n = this.getDigitMap();
1839
- return t.replace(/\d/g, (r) => n[r] || r);
860
+ const o = this.getDigitMap();
861
+ return t.replace(/\d/g, (n) => o[n] || n);
1840
862
  }
1841
863
  /**
1842
864
  * Formats a number using the configured numbering system.
@@ -1854,7 +876,7 @@ class q {
1854
876
  */
1855
877
  getMonthYearOrder() {
1856
878
  const t = this.options.locale?.code;
1857
- return t && q.yearFirstLocales.has(t) ? "year-first" : "month-first";
879
+ return t && A.yearFirstLocales.has(t) ? "year-first" : "month-first";
1858
880
  }
1859
881
  /**
1860
882
  * Formats the month/year pair respecting locale conventions.
@@ -1862,22 +884,22 @@ class q {
1862
884
  * @since 9.11.0
1863
885
  */
1864
886
  formatMonthYear(t) {
1865
- const { locale: n, timeZone: r, numerals: o } = this.options, s = n?.code;
1866
- if (s && q.yearFirstLocales.has(s))
887
+ const { locale: o, timeZone: n, numerals: a } = this.options, l = o?.code;
888
+ if (l && A.yearFirstLocales.has(l))
1867
889
  try {
1868
- return new Intl.DateTimeFormat(s, {
890
+ return new Intl.DateTimeFormat(l, {
1869
891
  month: "long",
1870
892
  year: "numeric",
1871
- timeZone: r,
1872
- numberingSystem: o
893
+ timeZone: n,
894
+ numberingSystem: a
1873
895
  }).format(t);
1874
896
  } catch {
1875
897
  }
1876
- const a = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
1877
- return this.format(t, a);
898
+ const r = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
899
+ return this.format(t, r);
1878
900
  }
1879
901
  }
1880
- q.yearFirstLocales = /* @__PURE__ */ new Set([
902
+ A.yearFirstLocales = /* @__PURE__ */ new Set([
1881
903
  "eu",
1882
904
  "hu",
1883
905
  "ja",
@@ -1896,10 +918,10 @@ q.yearFirstLocales = /* @__PURE__ */ new Set([
1896
918
  "zh-HK",
1897
919
  "zh-TW"
1898
920
  ]);
1899
- const K = new q();
1900
- class Pt {
1901
- constructor(t, n, r = K) {
1902
- 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");
921
+ const K = new A();
922
+ class at {
923
+ constructor(t, o, n = K) {
924
+ this.date = t, this.displayMonth = o, this.outside = !!(o && !n.isSameMonth(t, o)), this.dateLib = n, this.isoDate = n.format(t, "yyyy-MM-dd"), this.displayMonthId = n.format(o, "yyyy-MM"), this.dateMonthId = n.format(t, "yyyy-MM");
1903
925
  }
1904
926
  /**
1905
927
  * Checks if this day is equal to another `CalendarDay`, considering both the
@@ -1912,293 +934,293 @@ class Pt {
1912
934
  return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
1913
935
  }
1914
936
  }
1915
- class ao {
1916
- constructor(t, n) {
1917
- this.date = t, this.weeks = n;
937
+ class vo {
938
+ constructor(t, o) {
939
+ this.date = t, this.weeks = o;
1918
940
  }
1919
941
  }
1920
- class so {
1921
- constructor(t, n) {
1922
- this.days = n, this.weekNumber = t;
942
+ class ko {
943
+ constructor(t, o) {
944
+ this.days = o, this.weekNumber = t;
1923
945
  }
1924
946
  }
1925
- function io(e) {
1926
- return f.createElement("button", { ...e });
947
+ function wo(e) {
948
+ return c.createElement("button", { ...e });
1927
949
  }
1928
- function uo(e) {
1929
- return f.createElement("span", { ...e });
950
+ function Mo(e) {
951
+ return c.createElement("span", { ...e });
1930
952
  }
1931
- function co(e) {
1932
- const { size: t = 24, orientation: n = "left", className: r } = e;
953
+ function Do(e) {
954
+ const { size: t = 24, orientation: o = "left", className: n } = e;
1933
955
  return (
1934
956
  // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
1935
- f.createElement(
957
+ c.createElement(
1936
958
  "svg",
1937
- { className: r, width: t, height: t, viewBox: "0 0 24 24" },
1938
- n === "up" && f.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
1939
- n === "down" && f.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
1940
- n === "left" && f.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
1941
- n === "right" && f.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
959
+ { className: n, width: t, height: t, viewBox: "0 0 24 24" },
960
+ o === "up" && c.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
961
+ o === "down" && c.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
962
+ o === "left" && c.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
963
+ o === "right" && c.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
1942
964
  )
1943
965
  );
1944
966
  }
1945
- function lo(e) {
1946
- const { day: t, modifiers: n, ...r } = e;
1947
- return f.createElement("td", { ...r });
967
+ function xo(e) {
968
+ const { day: t, modifiers: o, ...n } = e;
969
+ return c.createElement("td", { ...n });
1948
970
  }
1949
- function fo(e) {
1950
- const { day: t, modifiers: n, ...r } = e, o = f.useRef(null);
1951
- return f.useEffect(() => {
1952
- n.focused && o.current?.focus();
1953
- }, [n.focused]), f.createElement("button", { ref: o, ...r });
971
+ function Co(e) {
972
+ const { day: t, modifiers: o, ...n } = e, a = c.useRef(null);
973
+ return c.useEffect(() => {
974
+ o.focused && a.current?.focus();
975
+ }, [o.focused]), c.createElement("button", { ref: a, ...n });
1954
976
  }
1955
- var g;
977
+ var p;
1956
978
  (function(e) {
1957
979
  e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
1958
- })(g || (g = {}));
980
+ })(p || (p = {}));
1959
981
  var B;
1960
982
  (function(e) {
1961
983
  e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
1962
984
  })(B || (B = {}));
1963
- var L;
985
+ var $;
1964
986
  (function(e) {
1965
987
  e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
1966
- })(L || (L = {}));
1967
- var z;
988
+ })($ || ($ = {}));
989
+ var j;
1968
990
  (function(e) {
1969
991
  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";
1970
- })(z || (z = {}));
1971
- function ho(e) {
1972
- const { options: t, className: n, components: r, classNames: o, ...s } = e, a = [o[g.Dropdown], n].join(" "), i = t?.find(({ value: u }) => u === s.value);
1973
- return f.createElement(
992
+ })(j || (j = {}));
993
+ function Oo(e) {
994
+ const { options: t, className: o, components: n, classNames: a, ...l } = e, r = [a[p.Dropdown], o].join(" "), s = t?.find(({ value: i }) => i === l.value);
995
+ return c.createElement(
1974
996
  "span",
1975
- { "data-disabled": s.disabled, className: o[g.DropdownRoot] },
1976
- f.createElement(r.Select, { className: a, ...s }, t?.map(({ value: u, label: d, disabled: l }) => f.createElement(r.Option, { key: u, value: u, disabled: l }, d))),
1977
- f.createElement(
997
+ { "data-disabled": l.disabled, className: a[p.DropdownRoot] },
998
+ c.createElement(n.Select, { className: r, ...l }, t?.map(({ value: i, label: d, disabled: f }) => c.createElement(n.Option, { key: i, value: i, disabled: f }, d))),
999
+ c.createElement(
1978
1000
  "span",
1979
- { className: o[g.CaptionLabel], "aria-hidden": !0 },
1980
- i?.label,
1981
- f.createElement(r.Chevron, { orientation: "down", size: 18, className: o[g.Chevron] })
1001
+ { className: a[p.CaptionLabel], "aria-hidden": !0 },
1002
+ s?.label,
1003
+ c.createElement(n.Chevron, { orientation: "down", size: 18, className: a[p.Chevron] })
1982
1004
  )
1983
1005
  );
1984
1006
  }
1985
- function mo(e) {
1986
- return f.createElement("div", { ...e });
1007
+ function Wo(e) {
1008
+ return c.createElement("div", { ...e });
1987
1009
  }
1988
- function go(e) {
1989
- return f.createElement("div", { ...e });
1010
+ function So(e) {
1011
+ return c.createElement("div", { ...e });
1990
1012
  }
1991
- function yo(e) {
1992
- const { calendarMonth: t, displayIndex: n, ...r } = e;
1993
- return f.createElement("div", { ...r }, e.children);
1013
+ function No(e) {
1014
+ const { calendarMonth: t, displayIndex: o, ...n } = e;
1015
+ return c.createElement("div", { ...n }, e.children);
1994
1016
  }
1995
- function po(e) {
1996
- const { calendarMonth: t, displayIndex: n, ...r } = e;
1997
- return f.createElement("div", { ...r });
1017
+ function To(e) {
1018
+ const { calendarMonth: t, displayIndex: o, ...n } = e;
1019
+ return c.createElement("div", { ...n });
1998
1020
  }
1999
- function bo(e) {
2000
- return f.createElement("table", { ...e });
1021
+ function _o(e) {
1022
+ return c.createElement("table", { ...e });
2001
1023
  }
2002
- function wo(e) {
2003
- return f.createElement("div", { ...e });
1024
+ function Eo(e) {
1025
+ return c.createElement("div", { ...e });
2004
1026
  }
2005
- const Ft = Mn(void 0);
2006
- function ve() {
2007
- const e = Dn(Ft);
1027
+ const rt = Rt(void 0);
1028
+ function de() {
1029
+ const e = Vt(rt);
2008
1030
  if (e === void 0)
2009
1031
  throw new Error("useDayPicker() must be used within a custom component.");
2010
1032
  return e;
2011
1033
  }
2012
- function vo(e) {
2013
- const { components: t } = ve();
2014
- return f.createElement(t.Dropdown, { ...e });
2015
- }
2016
- function ko(e) {
2017
- const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: o, ...s } = e, { components: a, classNames: i, labels: { labelPrevious: u, labelNext: d } } = ve(), l = R((h) => {
2018
- o && n?.(h);
2019
- }, [o, n]), c = R((h) => {
2020
- r && t?.(h);
2021
- }, [r, t]);
2022
- return f.createElement(
1034
+ function Po(e) {
1035
+ const { components: t } = de();
1036
+ return c.createElement(t.Dropdown, { ...e });
1037
+ }
1038
+ function Bo(e) {
1039
+ const { onPreviousClick: t, onNextClick: o, previousMonth: n, nextMonth: a, ...l } = e, { components: r, classNames: s, labels: { labelPrevious: i, labelNext: d } } = de(), f = H((h) => {
1040
+ a && o?.(h);
1041
+ }, [a, o]), u = H((h) => {
1042
+ n && t?.(h);
1043
+ }, [n, t]);
1044
+ return c.createElement(
2023
1045
  "nav",
2024
- { ...s },
2025
- f.createElement(
2026
- a.PreviousMonthButton,
2027
- { type: "button", className: i[g.PreviousMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": u(r), onClick: c },
2028
- f.createElement(a.Chevron, { disabled: r ? void 0 : !0, className: i[g.Chevron], orientation: "left" })
1046
+ { ...l },
1047
+ c.createElement(
1048
+ r.PreviousMonthButton,
1049
+ { type: "button", className: s[p.PreviousMonthButton], tabIndex: n ? void 0 : -1, "aria-disabled": n ? void 0 : !0, "aria-label": i(n), onClick: u },
1050
+ c.createElement(r.Chevron, { disabled: n ? void 0 : !0, className: s[p.Chevron], orientation: "left" })
2029
1051
  ),
2030
- f.createElement(
2031
- a.NextMonthButton,
2032
- { type: "button", className: i[g.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": d(o), onClick: l },
2033
- f.createElement(a.Chevron, { disabled: o ? void 0 : !0, orientation: "right", className: i[g.Chevron] })
1052
+ c.createElement(
1053
+ r.NextMonthButton,
1054
+ { type: "button", className: s[p.NextMonthButton], tabIndex: a ? void 0 : -1, "aria-disabled": a ? void 0 : !0, "aria-label": d(a), onClick: f },
1055
+ c.createElement(r.Chevron, { disabled: a ? void 0 : !0, orientation: "right", className: s[p.Chevron] })
2034
1056
  )
2035
1057
  );
2036
1058
  }
2037
- function Mo(e) {
2038
- const { components: t } = ve();
2039
- return f.createElement(t.Button, { ...e });
1059
+ function Io(e) {
1060
+ const { components: t } = de();
1061
+ return c.createElement(t.Button, { ...e });
2040
1062
  }
2041
- function Do(e) {
2042
- return f.createElement("option", { ...e });
1063
+ function Yo(e) {
1064
+ return c.createElement("option", { ...e });
2043
1065
  }
2044
- function xo(e) {
2045
- const { components: t } = ve();
2046
- return f.createElement(t.Button, { ...e });
1066
+ function Fo(e) {
1067
+ const { components: t } = de();
1068
+ return c.createElement(t.Button, { ...e });
2047
1069
  }
2048
- function Oo(e) {
2049
- const { rootRef: t, ...n } = e;
2050
- return f.createElement("div", { ...n, ref: t });
1070
+ function jo(e) {
1071
+ const { rootRef: t, ...o } = e;
1072
+ return c.createElement("div", { ...o, ref: t });
2051
1073
  }
2052
- function So(e) {
2053
- return f.createElement("select", { ...e });
1074
+ function Ao(e) {
1075
+ return c.createElement("select", { ...e });
2054
1076
  }
2055
- function Co(e) {
2056
- const { week: t, ...n } = e;
2057
- return f.createElement("tr", { ...n });
1077
+ function zo(e) {
1078
+ const { week: t, ...o } = e;
1079
+ return c.createElement("tr", { ...o });
2058
1080
  }
2059
- function Wo(e) {
2060
- return f.createElement("th", { ...e });
1081
+ function Ho(e) {
1082
+ return c.createElement("th", { ...e });
2061
1083
  }
2062
- function No(e) {
2063
- return f.createElement(
1084
+ function qo(e) {
1085
+ return c.createElement(
2064
1086
  "thead",
2065
1087
  { "aria-hidden": !0 },
2066
- f.createElement("tr", { ...e })
1088
+ c.createElement("tr", { ...e })
2067
1089
  );
2068
1090
  }
2069
- function To(e) {
2070
- const { week: t, ...n } = e;
2071
- return f.createElement("th", { ...n });
1091
+ function Go(e) {
1092
+ const { week: t, ...o } = e;
1093
+ return c.createElement("th", { ...o });
2072
1094
  }
2073
- function _o(e) {
2074
- return f.createElement("th", { ...e });
1095
+ function $o(e) {
1096
+ return c.createElement("th", { ...e });
2075
1097
  }
2076
- function Yo(e) {
2077
- return f.createElement("tbody", { ...e });
1098
+ function Ro(e) {
1099
+ return c.createElement("tbody", { ...e });
2078
1100
  }
2079
- function Eo(e) {
2080
- const { components: t } = ve();
2081
- return f.createElement(t.Dropdown, { ...e });
1101
+ function Vo(e) {
1102
+ const { components: t } = de();
1103
+ return c.createElement(t.Dropdown, { ...e });
2082
1104
  }
2083
- const Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1105
+ const Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2084
1106
  __proto__: null,
2085
- Button: io,
2086
- CaptionLabel: uo,
2087
- Chevron: co,
2088
- Day: lo,
2089
- DayButton: fo,
2090
- Dropdown: ho,
2091
- DropdownNav: mo,
2092
- Footer: go,
2093
- Month: yo,
2094
- MonthCaption: po,
2095
- MonthGrid: bo,
2096
- Months: wo,
2097
- MonthsDropdown: vo,
2098
- Nav: ko,
2099
- NextMonthButton: Mo,
2100
- Option: Do,
2101
- PreviousMonthButton: xo,
2102
- Root: Oo,
2103
- Select: So,
2104
- Week: Co,
2105
- WeekNumber: To,
2106
- WeekNumberHeader: _o,
2107
- Weekday: Wo,
2108
- Weekdays: No,
2109
- Weeks: Yo,
2110
- YearsDropdown: Eo
1107
+ Button: wo,
1108
+ CaptionLabel: Mo,
1109
+ Chevron: Do,
1110
+ Day: xo,
1111
+ DayButton: Co,
1112
+ Dropdown: Oo,
1113
+ DropdownNav: Wo,
1114
+ Footer: So,
1115
+ Month: No,
1116
+ MonthCaption: To,
1117
+ MonthGrid: _o,
1118
+ Months: Eo,
1119
+ MonthsDropdown: Po,
1120
+ Nav: Bo,
1121
+ NextMonthButton: Io,
1122
+ Option: Yo,
1123
+ PreviousMonthButton: Fo,
1124
+ Root: jo,
1125
+ Select: Ao,
1126
+ Week: zo,
1127
+ WeekNumber: Go,
1128
+ WeekNumberHeader: $o,
1129
+ Weekday: Ho,
1130
+ Weekdays: qo,
1131
+ Weeks: Ro,
1132
+ YearsDropdown: Vo
2111
1133
  }, Symbol.toStringTag, { value: "Module" }));
2112
- function ne(e, t, n = !1, r = K) {
2113
- let { from: o, to: s } = e;
2114
- const { differenceInCalendarDays: a, isSameDay: i } = r;
2115
- return o && s ? (a(s, o) < 0 && ([o, s] = [s, o]), a(t, o) >= (n ? 1 : 0) && a(s, t) >= (n ? 1 : 0)) : !n && s ? i(s, t) : !n && o ? i(o, t) : !1;
1134
+ function Q(e, t, o = !1, n = K) {
1135
+ let { from: a, to: l } = e;
1136
+ const { differenceInCalendarDays: r, isSameDay: s } = n;
1137
+ return a && l ? (r(l, a) < 0 && ([a, l] = [l, a]), r(t, a) >= (o ? 1 : 0) && r(l, t) >= (o ? 1 : 0)) : !o && l ? s(l, t) : !o && a ? s(a, t) : !1;
2116
1138
  }
2117
- function Ve(e) {
1139
+ function Be(e) {
2118
1140
  return !!(e && typeof e == "object" && "before" in e && "after" in e);
2119
1141
  }
2120
- function Ce(e) {
1142
+ function ye(e) {
2121
1143
  return !!(e && typeof e == "object" && "from" in e);
2122
1144
  }
2123
- function Le(e) {
1145
+ function Ie(e) {
2124
1146
  return !!(e && typeof e == "object" && "after" in e);
2125
1147
  }
2126
- function Qe(e) {
1148
+ function Ye(e) {
2127
1149
  return !!(e && typeof e == "object" && "before" in e);
2128
1150
  }
2129
- function Bt(e) {
1151
+ function st(e) {
2130
1152
  return !!(e && typeof e == "object" && "dayOfWeek" in e);
2131
1153
  }
2132
- function It(e, t) {
1154
+ function it(e, t) {
2133
1155
  return Array.isArray(e) && e.every(t.isDate);
2134
1156
  }
2135
- function re(e, t, n = K) {
2136
- const r = Array.isArray(t) ? t : [t], { isSameDay: o, differenceInCalendarDays: s, isAfter: a } = n;
2137
- return r.some((i) => {
2138
- if (typeof i == "boolean")
2139
- return i;
2140
- if (n.isDate(i))
2141
- return o(e, i);
2142
- if (It(i, n))
2143
- return i.includes(e);
2144
- if (Ce(i))
2145
- return ne(i, e, !1, n);
2146
- if (Bt(i))
2147
- return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
2148
- if (Ve(i)) {
2149
- const u = s(i.before, e), d = s(i.after, e), l = u > 0, c = d < 0;
2150
- return a(i.before, i.after) ? c && l : l || c;
1157
+ function ee(e, t, o = K) {
1158
+ const n = Array.isArray(t) ? t : [t], { isSameDay: a, differenceInCalendarDays: l, isAfter: r } = o;
1159
+ return n.some((s) => {
1160
+ if (typeof s == "boolean")
1161
+ return s;
1162
+ if (o.isDate(s))
1163
+ return a(e, s);
1164
+ if (it(s, o))
1165
+ return s.includes(e);
1166
+ if (ye(s))
1167
+ return Q(s, e, !1, o);
1168
+ if (st(s))
1169
+ return Array.isArray(s.dayOfWeek) ? s.dayOfWeek.includes(e.getDay()) : s.dayOfWeek === e.getDay();
1170
+ if (Be(s)) {
1171
+ const i = l(s.before, e), d = l(s.after, e), f = i > 0, u = d < 0;
1172
+ return r(s.before, s.after) ? u && f : f || u;
2151
1173
  }
2152
- return Le(i) ? s(e, i.after) > 0 : Qe(i) ? s(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
1174
+ return Ie(s) ? l(e, s.after) > 0 : Ye(s) ? l(s.before, e) > 0 : typeof s == "function" ? s(e) : !1;
2153
1175
  });
2154
1176
  }
2155
- function Fo(e, t, n, r, o) {
2156
- const { disabled: s, hidden: a, modifiers: i, showOutsideDays: u, broadcastCalendar: d, today: l = o.today() } = t, { isSameDay: c, isSameMonth: h, startOfMonth: b, isBefore: x, endOfMonth: W, isAfter: k } = o, O = n && b(n), T = r && W(r), v = {
1177
+ function Uo(e, t, o, n, a) {
1178
+ const { disabled: l, hidden: r, modifiers: s, showOutsideDays: i, broadcastCalendar: d, today: f = a.today() } = t, { isSameDay: u, isSameMonth: h, startOfMonth: b, isBefore: x, endOfMonth: S, isAfter: w } = a, C = o && b(o), T = n && S(n), k = {
2157
1179
  [B.focused]: [],
2158
1180
  [B.outside]: [],
2159
1181
  [B.disabled]: [],
2160
1182
  [B.hidden]: [],
2161
1183
  [B.today]: []
2162
1184
  }, D = {};
2163
- for (const p of e) {
2164
- const { date: m, displayMonth: S } = p, F = !!(S && !h(m, S)), H = !!(O && x(m, O)), I = !!(T && k(m, T)), Q = !!(s && re(m, s, o)), oe = !!(a && re(m, a, o)) || H || I || // Broadcast calendar will show outside days as default
2165
- !d && !u && F || d && u === !1 && F, J = c(m, l);
2166
- F && v.outside.push(p), Q && v.disabled.push(p), oe && v.hidden.push(p), J && v.today.push(p), i && Object.keys(i).forEach((G) => {
2167
- const ue = i?.[G];
2168
- ue && re(m, ue, o) && (D[G] ? D[G].push(p) : D[G] = [p]);
1185
+ for (const g of e) {
1186
+ const { date: m, displayMonth: O } = g, P = !!(O && !h(m, O)), Y = !!(C && x(m, C)), I = !!(T && w(m, T)), R = !!(l && ee(m, l, a)), te = !!(r && ee(m, r, a)) || Y || I || // Broadcast calendar will show outside days as default
1187
+ !d && !i && P || d && i === !1 && P, L = u(m, f);
1188
+ P && k.outside.push(g), R && k.disabled.push(g), te && k.hidden.push(g), L && k.today.push(g), s && Object.keys(s).forEach((z) => {
1189
+ const oe = s?.[z];
1190
+ oe && ee(m, oe, a) && (D[z] ? D[z].push(g) : D[z] = [g]);
2169
1191
  });
2170
1192
  }
2171
- return (p) => {
1193
+ return (g) => {
2172
1194
  const m = {
2173
1195
  [B.focused]: !1,
2174
1196
  [B.disabled]: !1,
2175
1197
  [B.hidden]: !1,
2176
1198
  [B.outside]: !1,
2177
1199
  [B.today]: !1
2178
- }, S = {};
2179
- for (const F in v) {
2180
- const H = v[F];
2181
- m[F] = H.some((I) => I === p);
1200
+ }, O = {};
1201
+ for (const P in k) {
1202
+ const Y = k[P];
1203
+ m[P] = Y.some((I) => I === g);
2182
1204
  }
2183
- for (const F in D)
2184
- S[F] = D[F].some((H) => H === p);
1205
+ for (const P in D)
1206
+ O[P] = D[P].some((Y) => Y === g);
2185
1207
  return {
2186
1208
  ...m,
2187
1209
  // custom modifiers should override all the previous ones
2188
- ...S
1210
+ ...O
2189
1211
  };
2190
1212
  };
2191
1213
  }
2192
- function Bo(e, t, n = {}) {
2193
- return Object.entries(e).filter(([, o]) => o === !0).reduce((o, [s]) => (n[s] ? o.push(n[s]) : t[B[s]] ? o.push(t[B[s]]) : t[L[s]] && o.push(t[L[s]]), o), [t[g.Day]]);
1214
+ function Ko(e, t, o = {}) {
1215
+ return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [l]) => (o[l] ? a.push(o[l]) : t[B[l]] ? a.push(t[B[l]]) : t[$[l]] && a.push(t[$[l]]), a), [t[p.Day]]);
2194
1216
  }
2195
- function Io(e) {
1217
+ function Lo(e) {
2196
1218
  return {
2197
- ...Po,
1219
+ ...Zo,
2198
1220
  ...e
2199
1221
  };
2200
1222
  }
2201
- function jo(e) {
1223
+ function Jo(e) {
2202
1224
  const t = {
2203
1225
  "data-mode": e.mode ?? void 0,
2204
1226
  "data-required": "required" in e ? e.required : void 0,
@@ -2207,335 +1229,335 @@ function jo(e) {
2207
1229
  "data-broadcast-calendar": e.broadcastCalendar || void 0,
2208
1230
  "data-nav-layout": e.navLayout || void 0
2209
1231
  };
2210
- return Object.entries(e).forEach(([n, r]) => {
2211
- n.startsWith("data-") && (t[n] = r);
1232
+ return Object.entries(e).forEach(([o, n]) => {
1233
+ o.startsWith("data-") && (t[o] = n);
2212
1234
  }), t;
2213
1235
  }
2214
- function Xe() {
1236
+ function Fe() {
2215
1237
  const e = {};
2216
- for (const t in g)
2217
- e[g[t]] = `rdp-${g[t]}`;
1238
+ for (const t in p)
1239
+ e[p[t]] = `rdp-${p[t]}`;
2218
1240
  for (const t in B)
2219
1241
  e[B[t]] = `rdp-${B[t]}`;
2220
- for (const t in L)
2221
- e[L[t]] = `rdp-${L[t]}`;
2222
- for (const t in z)
2223
- e[z[t]] = `rdp-${z[t]}`;
1242
+ for (const t in $)
1243
+ e[$[t]] = `rdp-${$[t]}`;
1244
+ for (const t in j)
1245
+ e[j[t]] = `rdp-${j[t]}`;
2224
1246
  return e;
2225
1247
  }
2226
- function jt(e, t, n) {
2227
- return (n ?? new q(t)).formatMonthYear(e);
1248
+ function lt(e, t, o) {
1249
+ return (o ?? new A(t)).formatMonthYear(e);
2228
1250
  }
2229
- const Ho = jt;
2230
- function Ao(e, t, n) {
2231
- return (n ?? new q(t)).format(e, "d");
1251
+ const Xo = lt;
1252
+ function Qo(e, t, o) {
1253
+ return (o ?? new A(t)).format(e, "d");
2232
1254
  }
2233
- function zo(e, t = K) {
1255
+ function ea(e, t = K) {
2234
1256
  return t.format(e, "LLLL");
2235
1257
  }
2236
- function qo(e, t, n) {
2237
- return (n ?? new q(t)).format(e, "cccccc");
1258
+ function ta(e, t, o) {
1259
+ return (o ?? new A(t)).format(e, "cccccc");
2238
1260
  }
2239
- function Go(e, t = K) {
1261
+ function na(e, t = K) {
2240
1262
  return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
2241
1263
  }
2242
- function Ro() {
1264
+ function oa() {
2243
1265
  return "";
2244
1266
  }
2245
- function Ht(e, t = K) {
1267
+ function dt(e, t = K) {
2246
1268
  return t.format(e, "yyyy");
2247
1269
  }
2248
- const $o = Ht, Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1270
+ const aa = dt, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2249
1271
  __proto__: null,
2250
- formatCaption: jt,
2251
- formatDay: Ao,
2252
- formatMonthCaption: Ho,
2253
- formatMonthDropdown: zo,
2254
- formatWeekNumber: Go,
2255
- formatWeekNumberHeader: Ro,
2256
- formatWeekdayName: qo,
2257
- formatYearCaption: $o,
2258
- formatYearDropdown: Ht
1272
+ formatCaption: lt,
1273
+ formatDay: Qo,
1274
+ formatMonthCaption: Xo,
1275
+ formatMonthDropdown: ea,
1276
+ formatWeekNumber: na,
1277
+ formatWeekNumberHeader: oa,
1278
+ formatWeekdayName: ta,
1279
+ formatYearCaption: aa,
1280
+ formatYearDropdown: dt
2259
1281
  }, Symbol.toStringTag, { value: "Module" }));
2260
- function Lo(e) {
1282
+ function sa(e) {
2261
1283
  return e?.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e?.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
2262
- ...Vo,
1284
+ ...ra,
2263
1285
  ...e
2264
1286
  };
2265
1287
  }
2266
- function Qo(e, t, n, r, o) {
2267
- const { startOfMonth: s, startOfYear: a, endOfYear: i, eachMonthOfInterval: u, getMonth: d } = o;
2268
- return u({
2269
- start: a(e),
2270
- end: i(e)
1288
+ function ia(e, t, o, n, a) {
1289
+ const { startOfMonth: l, startOfYear: r, endOfYear: s, eachMonthOfInterval: i, getMonth: d } = a;
1290
+ return i({
1291
+ start: r(e),
1292
+ end: s(e)
2271
1293
  }).map((h) => {
2272
- const b = r.formatMonthDropdown(h, o), x = d(h), W = t && h < s(t) || n && h > s(n) || !1;
2273
- return { value: x, label: b, disabled: W };
1294
+ const b = n.formatMonthDropdown(h, a), x = d(h), S = t && h < l(t) || o && h > l(o) || !1;
1295
+ return { value: x, label: b, disabled: S };
2274
1296
  });
2275
1297
  }
2276
- function Xo(e, t = {}, n = {}) {
2277
- let r = { ...t?.[g.Day] };
2278
- return Object.entries(e).filter(([, o]) => o === !0).forEach(([o]) => {
2279
- r = {
2280
- ...r,
2281
- ...n?.[o]
1298
+ function la(e, t = {}, o = {}) {
1299
+ let n = { ...t?.[p.Day] };
1300
+ return Object.entries(e).filter(([, a]) => a === !0).forEach(([a]) => {
1301
+ n = {
1302
+ ...n,
1303
+ ...o?.[a]
2282
1304
  };
2283
- }), r;
1305
+ }), n;
2284
1306
  }
2285
- function Uo(e, t, n, r) {
2286
- const o = r ?? e.today(), s = n ? e.startOfBroadcastWeek(o, e) : t ? e.startOfISOWeek(o) : e.startOfWeek(o), a = [];
2287
- for (let i = 0; i < 7; i++) {
2288
- const u = e.addDays(s, i);
2289
- a.push(u);
1307
+ function da(e, t, o, n) {
1308
+ const a = n ?? e.today(), l = o ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), r = [];
1309
+ for (let s = 0; s < 7; s++) {
1310
+ const i = e.addDays(l, s);
1311
+ r.push(i);
2290
1312
  }
2291
- return a;
1313
+ return r;
2292
1314
  }
2293
- function Zo(e, t, n, r, o = !1) {
1315
+ function ua(e, t, o, n, a = !1) {
2294
1316
  if (!e || !t)
2295
1317
  return;
2296
- const { startOfYear: s, endOfYear: a, eachYearOfInterval: i, getYear: u } = r, d = s(e), l = a(t), c = i({ start: d, end: l });
2297
- return o && c.reverse(), c.map((h) => {
2298
- const b = n.formatYearDropdown(h, r);
1318
+ const { startOfYear: l, endOfYear: r, eachYearOfInterval: s, getYear: i } = n, d = l(e), f = r(t), u = s({ start: d, end: f });
1319
+ return a && u.reverse(), u.map((h) => {
1320
+ const b = o.formatYearDropdown(h, n);
2299
1321
  return {
2300
- value: u(h),
1322
+ value: i(h),
2301
1323
  label: b,
2302
1324
  disabled: !1
2303
1325
  };
2304
1326
  });
2305
1327
  }
2306
- function At(e, t, n, r) {
2307
- let o = (r ?? new q(n)).format(e, "PPPP");
2308
- return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
1328
+ function ut(e, t, o, n) {
1329
+ let a = (n ?? new A(o)).format(e, "PPPP");
1330
+ return t.today && (a = `Today, ${a}`), t.selected && (a = `${a}, selected`), a;
2309
1331
  }
2310
- const Ko = At;
2311
- function zt(e, t, n) {
2312
- return (n ?? new q(t)).formatMonthYear(e);
1332
+ const ca = ut;
1333
+ function ct(e, t, o) {
1334
+ return (o ?? new A(t)).formatMonthYear(e);
2313
1335
  }
2314
- const Jo = zt;
2315
- function ea(e, t, n, r) {
2316
- let o = (r ?? new q(n)).format(e, "PPPP");
2317
- return t?.today && (o = `Today, ${o}`), o;
1336
+ const fa = ct;
1337
+ function ha(e, t, o, n) {
1338
+ let a = (n ?? new A(o)).format(e, "PPPP");
1339
+ return t?.today && (a = `Today, ${a}`), a;
2318
1340
  }
2319
- function ta(e) {
1341
+ function ma(e) {
2320
1342
  return "Choose the Month";
2321
1343
  }
2322
- function na() {
1344
+ function pa() {
2323
1345
  return "";
2324
1346
  }
2325
- function ra(e) {
1347
+ function ya(e) {
2326
1348
  return "Go to the Next Month";
2327
1349
  }
2328
- function oa(e) {
1350
+ function ga(e) {
2329
1351
  return "Go to the Previous Month";
2330
1352
  }
2331
- function aa(e, t, n) {
2332
- return (n ?? new q(t)).format(e, "cccc");
1353
+ function ba(e, t, o) {
1354
+ return (o ?? new A(t)).format(e, "cccc");
2333
1355
  }
2334
- function sa(e, t) {
1356
+ function va(e, t) {
2335
1357
  return `Week ${e}`;
2336
1358
  }
2337
- function ia(e) {
1359
+ function ka(e) {
2338
1360
  return "Week Number";
2339
1361
  }
2340
- function ua(e) {
1362
+ function wa(e) {
2341
1363
  return "Choose the Year";
2342
1364
  }
2343
- const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1365
+ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2344
1366
  __proto__: null,
2345
- labelCaption: Jo,
2346
- labelDay: Ko,
2347
- labelDayButton: At,
2348
- labelGrid: zt,
2349
- labelGridcell: ea,
2350
- labelMonthDropdown: ta,
2351
- labelNav: na,
2352
- labelNext: ra,
2353
- labelPrevious: oa,
2354
- labelWeekNumber: sa,
2355
- labelWeekNumberHeader: ia,
2356
- labelWeekday: aa,
2357
- labelYearDropdown: ua
2358
- }, Symbol.toStringTag, { value: "Module" })), ke = (e) => e instanceof HTMLElement ? e : null, He = (e) => [
1367
+ labelCaption: fa,
1368
+ labelDay: ca,
1369
+ labelDayButton: ut,
1370
+ labelGrid: ct,
1371
+ labelGridcell: ha,
1372
+ labelMonthDropdown: ma,
1373
+ labelNav: pa,
1374
+ labelNext: ya,
1375
+ labelPrevious: ga,
1376
+ labelWeekNumber: va,
1377
+ labelWeekNumberHeader: ka,
1378
+ labelWeekday: ba,
1379
+ labelYearDropdown: wa
1380
+ }, Symbol.toStringTag, { value: "Module" })), ue = (e) => e instanceof HTMLElement ? e : null, Se = (e) => [
2359
1381
  ...e.querySelectorAll("[data-animated-month]") ?? []
2360
- ], da = (e) => ke(e.querySelector("[data-animated-month]")), Ae = (e) => ke(e.querySelector("[data-animated-caption]")), ze = (e) => ke(e.querySelector("[data-animated-weeks]")), la = (e) => ke(e.querySelector("[data-animated-nav]")), fa = (e) => ke(e.querySelector("[data-animated-weekdays]"));
2361
- function ha(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2362
- const a = Oe(null), i = Oe(r), u = Oe(!1);
2363
- xn(() => {
2364
- const d = i.current;
2365
- if (i.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
1382
+ ], Da = (e) => ue(e.querySelector("[data-animated-month]")), Ne = (e) => ue(e.querySelector("[data-animated-caption]")), Te = (e) => ue(e.querySelector("[data-animated-weeks]")), xa = (e) => ue(e.querySelector("[data-animated-nav]")), Ca = (e) => ue(e.querySelector("[data-animated-weekdays]"));
1383
+ function Oa(e, t, { classNames: o, months: n, focused: a, dateLib: l }) {
1384
+ const r = me(null), s = me(n), i = me(!1);
1385
+ Zt(() => {
1386
+ const d = s.current;
1387
+ if (s.current = n, !t || !e.current || // safety check because the ref can be set to anything by consumers
2366
1388
  !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
2367
- r.length === 0 || d.length === 0 || r.length !== d.length)
1389
+ n.length === 0 || d.length === 0 || n.length !== d.length)
2368
1390
  return;
2369
- const l = s.isSameMonth(r[0].date, d[0].date), c = s.isAfter(r[0].date, d[0].date), h = c ? n[z.caption_after_enter] : n[z.caption_before_enter], b = c ? n[z.weeks_after_enter] : n[z.weeks_before_enter], x = a.current, W = e.current.cloneNode(!0);
2370
- if (W instanceof HTMLElement ? (He(W).forEach((v) => {
2371
- if (!(v instanceof HTMLElement))
1391
+ const f = l.isSameMonth(n[0].date, d[0].date), u = l.isAfter(n[0].date, d[0].date), h = u ? o[j.caption_after_enter] : o[j.caption_before_enter], b = u ? o[j.weeks_after_enter] : o[j.weeks_before_enter], x = r.current, S = e.current.cloneNode(!0);
1392
+ if (S instanceof HTMLElement ? (Se(S).forEach((k) => {
1393
+ if (!(k instanceof HTMLElement))
2372
1394
  return;
2373
- const D = da(v);
2374
- D && v.contains(D) && v.removeChild(D);
2375
- const p = Ae(v);
2376
- p && p.classList.remove(h);
2377
- const m = ze(v);
1395
+ const D = Da(k);
1396
+ D && k.contains(D) && k.removeChild(D);
1397
+ const g = Ne(k);
1398
+ g && g.classList.remove(h);
1399
+ const m = Te(k);
2378
1400
  m && m.classList.remove(b);
2379
- }), a.current = W) : a.current = null, u.current || l || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
2380
- o)
1401
+ }), r.current = S) : r.current = null, i.current || f || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
1402
+ a)
2381
1403
  return;
2382
- const k = x instanceof HTMLElement ? He(x) : [], O = He(e.current);
2383
- if (O?.every((T) => T instanceof HTMLElement) && k && k.every((T) => T instanceof HTMLElement)) {
2384
- u.current = !0, e.current.style.isolation = "isolate";
2385
- const T = la(e.current);
2386
- T && (T.style.zIndex = "1"), O.forEach((v, D) => {
2387
- const p = k[D];
2388
- if (!p)
1404
+ const w = x instanceof HTMLElement ? Se(x) : [], C = Se(e.current);
1405
+ if (C?.every((T) => T instanceof HTMLElement) && w && w.every((T) => T instanceof HTMLElement)) {
1406
+ i.current = !0, e.current.style.isolation = "isolate";
1407
+ const T = xa(e.current);
1408
+ T && (T.style.zIndex = "1"), C.forEach((k, D) => {
1409
+ const g = w[D];
1410
+ if (!g)
2389
1411
  return;
2390
- v.style.position = "relative", v.style.overflow = "hidden";
2391
- const m = Ae(v);
1412
+ k.style.position = "relative", k.style.overflow = "hidden";
1413
+ const m = Ne(k);
2392
1414
  m && m.classList.add(h);
2393
- const S = ze(v);
2394
- S && S.classList.add(b);
2395
- const F = () => {
2396
- u.current = !1, e.current && (e.current.style.isolation = ""), T && (T.style.zIndex = ""), m && m.classList.remove(h), S && S.classList.remove(b), v.style.position = "", v.style.overflow = "", v.contains(p) && v.removeChild(p);
1415
+ const O = Te(k);
1416
+ O && O.classList.add(b);
1417
+ const P = () => {
1418
+ i.current = !1, e.current && (e.current.style.isolation = ""), T && (T.style.zIndex = ""), m && m.classList.remove(h), O && O.classList.remove(b), k.style.position = "", k.style.overflow = "", k.contains(g) && k.removeChild(g);
2397
1419
  };
2398
- p.style.pointerEvents = "none", p.style.position = "absolute", p.style.overflow = "hidden", p.setAttribute("aria-hidden", "true");
2399
- const H = fa(p);
2400
- H && (H.style.opacity = "0");
2401
- const I = Ae(p);
2402
- I && (I.classList.add(c ? n[z.caption_before_exit] : n[z.caption_after_exit]), I.addEventListener("animationend", F));
2403
- const Q = ze(p);
2404
- Q && Q.classList.add(c ? n[z.weeks_before_exit] : n[z.weeks_after_exit]), v.insertBefore(p, v.firstChild);
1420
+ g.style.pointerEvents = "none", g.style.position = "absolute", g.style.overflow = "hidden", g.setAttribute("aria-hidden", "true");
1421
+ const Y = Ca(g);
1422
+ Y && (Y.style.opacity = "0");
1423
+ const I = Ne(g);
1424
+ I && (I.classList.add(u ? o[j.caption_before_exit] : o[j.caption_after_exit]), I.addEventListener("animationend", P));
1425
+ const R = Te(g);
1426
+ R && R.classList.add(u ? o[j.weeks_before_exit] : o[j.weeks_after_exit]), k.insertBefore(g, k.firstChild);
2405
1427
  });
2406
1428
  }
2407
1429
  });
2408
1430
  }
2409
- function ma(e, t, n, r) {
2410
- const o = e[0], s = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: u } = n ?? {}, { addDays: d, differenceInCalendarDays: l, differenceInCalendarMonths: c, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: x, endOfWeek: W, isAfter: k, startOfBroadcastWeek: O, startOfISOWeek: T, startOfWeek: v } = r, D = u ? O(o, r) : a ? T(o) : v(o), p = u ? h(s) : a ? b(x(s)) : W(x(s)), m = t && (u ? h(t) : a ? b(t) : W(t)), S = m && k(p, m) ? m : p, F = l(S, D), H = c(s, o) + 1, I = [];
2411
- for (let J = 0; J <= F; J++) {
2412
- const G = d(D, J);
2413
- I.push(G);
1431
+ function Wa(e, t, o, n) {
1432
+ const a = e[0], l = e[e.length - 1], { ISOWeek: r, fixedWeeks: s, broadcastCalendar: i } = o ?? {}, { addDays: d, differenceInCalendarDays: f, differenceInCalendarMonths: u, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: x, endOfWeek: S, isAfter: w, startOfBroadcastWeek: C, startOfISOWeek: T, startOfWeek: k } = n, D = i ? C(a, n) : r ? T(a) : k(a), g = i ? h(l) : r ? b(x(l)) : S(x(l)), m = t && (i ? h(t) : r ? b(t) : S(t)), O = m && w(g, m) ? m : g, P = f(O, D), Y = u(l, a) + 1, I = [];
1433
+ for (let L = 0; L <= P; L++) {
1434
+ const z = d(D, L);
1435
+ I.push(z);
2414
1436
  }
2415
- const oe = (u ? 35 : 42) * H;
2416
- if (i && I.length < oe) {
2417
- const J = oe - I.length;
2418
- for (let G = 0; G < J; G++) {
2419
- const ue = d(I[I.length - 1], 1);
2420
- I.push(ue);
1437
+ const te = (i ? 35 : 42) * Y;
1438
+ if (s && I.length < te) {
1439
+ const L = te - I.length;
1440
+ for (let z = 0; z < L; z++) {
1441
+ const oe = d(I[I.length - 1], 1);
1442
+ I.push(oe);
2421
1443
  }
2422
1444
  }
2423
1445
  return I;
2424
1446
  }
2425
- function ga(e) {
1447
+ function Sa(e) {
2426
1448
  const t = [];
2427
- return e.reduce((n, r) => {
2428
- const o = r.weeks.reduce((s, a) => s.concat(a.days.slice()), t.slice());
2429
- return n.concat(o.slice());
1449
+ return e.reduce((o, n) => {
1450
+ const a = n.weeks.reduce((l, r) => l.concat(r.days.slice()), t.slice());
1451
+ return o.concat(a.slice());
2430
1452
  }, t.slice());
2431
1453
  }
2432
- function ya(e, t, n, r) {
2433
- const { numberOfMonths: o = 1 } = n, s = [];
2434
- for (let a = 0; a < o; a++) {
2435
- const i = r.addMonths(e, a);
2436
- if (t && i > t)
1454
+ function Na(e, t, o, n) {
1455
+ const { numberOfMonths: a = 1 } = o, l = [];
1456
+ for (let r = 0; r < a; r++) {
1457
+ const s = n.addMonths(e, r);
1458
+ if (t && s > t)
2437
1459
  break;
2438
- s.push(i);
1460
+ l.push(s);
2439
1461
  }
2440
- return s;
2441
- }
2442
- function ft(e, t, n, r) {
2443
- const { month: o, defaultMonth: s, today: a = r.today(), numberOfMonths: i = 1 } = e;
2444
- let u = o || s || a;
2445
- const { differenceInCalendarMonths: d, addMonths: l, startOfMonth: c } = r;
2446
- if (n && d(n, u) < i - 1) {
2447
- const h = -1 * (i - 1);
2448
- u = l(n, h);
1462
+ return l;
1463
+ }
1464
+ function Ue(e, t, o, n) {
1465
+ const { month: a, defaultMonth: l, today: r = n.today(), numberOfMonths: s = 1 } = e;
1466
+ let i = a || l || r;
1467
+ const { differenceInCalendarMonths: d, addMonths: f, startOfMonth: u } = n;
1468
+ if (o && d(o, i) < s - 1) {
1469
+ const h = -1 * (s - 1);
1470
+ i = f(o, h);
2449
1471
  }
2450
- return t && d(u, t) < 0 && (u = t), c(u);
2451
- }
2452
- function pa(e, t, n, r) {
2453
- const { addDays: o, endOfBroadcastWeek: s, endOfISOWeek: a, endOfMonth: i, endOfWeek: u, getISOWeek: d, getWeek: l, startOfBroadcastWeek: c, startOfISOWeek: h, startOfWeek: b } = r, x = e.reduce((W, k) => {
2454
- const O = n.broadcastCalendar ? c(k, r) : n.ISOWeek ? h(k) : b(k), T = n.broadcastCalendar ? s(k) : n.ISOWeek ? a(i(k)) : u(i(k)), v = t.filter((S) => S >= O && S <= T), D = n.broadcastCalendar ? 35 : 42;
2455
- if (n.fixedWeeks && v.length < D) {
2456
- const S = t.filter((F) => {
2457
- const H = D - v.length;
2458
- return F > T && F <= o(T, H);
1472
+ return t && d(i, t) < 0 && (i = t), u(i);
1473
+ }
1474
+ function Ta(e, t, o, n) {
1475
+ const { addDays: a, endOfBroadcastWeek: l, endOfISOWeek: r, endOfMonth: s, endOfWeek: i, getISOWeek: d, getWeek: f, startOfBroadcastWeek: u, startOfISOWeek: h, startOfWeek: b } = n, x = e.reduce((S, w) => {
1476
+ const C = o.broadcastCalendar ? u(w, n) : o.ISOWeek ? h(w) : b(w), T = o.broadcastCalendar ? l(w) : o.ISOWeek ? r(s(w)) : i(s(w)), k = t.filter((O) => O >= C && O <= T), D = o.broadcastCalendar ? 35 : 42;
1477
+ if (o.fixedWeeks && k.length < D) {
1478
+ const O = t.filter((P) => {
1479
+ const Y = D - k.length;
1480
+ return P > T && P <= a(T, Y);
2459
1481
  });
2460
- v.push(...S);
1482
+ k.push(...O);
2461
1483
  }
2462
- const p = v.reduce((S, F) => {
2463
- const H = n.ISOWeek ? d(F) : l(F), I = S.find((oe) => oe.weekNumber === H), Q = new Pt(F, k, r);
2464
- return I ? I.days.push(Q) : S.push(new so(H, [Q])), S;
2465
- }, []), m = new ao(k, p);
2466
- return W.push(m), W;
1484
+ const g = k.reduce((O, P) => {
1485
+ const Y = o.ISOWeek ? d(P) : f(P), I = O.find((te) => te.weekNumber === Y), R = new at(P, w, n);
1486
+ return I ? I.days.push(R) : O.push(new ko(Y, [R])), O;
1487
+ }, []), m = new vo(w, g);
1488
+ return S.push(m), S;
2467
1489
  }, []);
2468
- return n.reverseMonths ? x.reverse() : x;
2469
- }
2470
- function ba(e, t) {
2471
- let { startMonth: n, endMonth: r } = e;
2472
- const { startOfYear: o, startOfDay: s, startOfMonth: a, endOfMonth: i, addYears: u, endOfYear: d, newDate: l, today: c } = t, { fromYear: h, toYear: b, fromMonth: x, toMonth: W } = e;
2473
- !n && x && (n = x), !n && h && (n = t.newDate(h, 0, 1)), !r && W && (r = W), !r && b && (r = l(b, 11, 31));
2474
- const k = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
2475
- return n ? n = a(n) : h ? n = l(h, 0, 1) : !n && k && (n = o(u(e.today ?? c(), -100))), r ? r = i(r) : b ? r = l(b, 11, 31) : !r && k && (r = d(e.today ?? c())), [
2476
- n && s(n),
2477
- r && s(r)
1490
+ return o.reverseMonths ? x.reverse() : x;
1491
+ }
1492
+ function _a(e, t) {
1493
+ let { startMonth: o, endMonth: n } = e;
1494
+ const { startOfYear: a, startOfDay: l, startOfMonth: r, endOfMonth: s, addYears: i, endOfYear: d, newDate: f, today: u } = t, { fromYear: h, toYear: b, fromMonth: x, toMonth: S } = e;
1495
+ !o && x && (o = x), !o && h && (o = t.newDate(h, 0, 1)), !n && S && (n = S), !n && b && (n = f(b, 11, 31));
1496
+ const w = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
1497
+ return o ? o = r(o) : h ? o = f(h, 0, 1) : !o && w && (o = a(i(e.today ?? u(), -100))), n ? n = s(n) : b ? n = f(b, 11, 31) : !n && w && (n = d(e.today ?? u())), [
1498
+ o && l(o),
1499
+ n && l(n)
2478
1500
  ];
2479
1501
  }
2480
- function wa(e, t, n, r) {
2481
- if (n.disableNavigation)
1502
+ function Ea(e, t, o, n) {
1503
+ if (o.disableNavigation)
2482
1504
  return;
2483
- const { pagedNavigation: o, numberOfMonths: s = 1 } = n, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: u } = r, d = o ? s : 1, l = a(e);
1505
+ const { pagedNavigation: a, numberOfMonths: l = 1 } = o, { startOfMonth: r, addMonths: s, differenceInCalendarMonths: i } = n, d = a ? l : 1, f = r(e);
2484
1506
  if (!t)
2485
- return i(l, d);
2486
- if (!(u(t, e) < s))
2487
- return i(l, d);
1507
+ return s(f, d);
1508
+ if (!(i(t, e) < l))
1509
+ return s(f, d);
2488
1510
  }
2489
- function va(e, t, n, r) {
2490
- if (n.disableNavigation)
1511
+ function Pa(e, t, o, n) {
1512
+ if (o.disableNavigation)
2491
1513
  return;
2492
- const { pagedNavigation: o, numberOfMonths: s } = n, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: u } = r, d = o ? s ?? 1 : 1, l = a(e);
1514
+ const { pagedNavigation: a, numberOfMonths: l } = o, { startOfMonth: r, addMonths: s, differenceInCalendarMonths: i } = n, d = a ? l ?? 1 : 1, f = r(e);
2493
1515
  if (!t)
2494
- return i(l, -d);
2495
- if (!(u(l, t) <= 0))
2496
- return i(l, -d);
1516
+ return s(f, -d);
1517
+ if (!(i(f, t) <= 0))
1518
+ return s(f, -d);
2497
1519
  }
2498
- function ka(e) {
1520
+ function Ba(e) {
2499
1521
  const t = [];
2500
- return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
1522
+ return e.reduce((o, n) => o.concat(n.weeks.slice()), t.slice());
2501
1523
  }
2502
- function We(e, t) {
2503
- const [n, r] = Ge(e);
2504
- return [t === void 0 ? n : t, r];
1524
+ function ge(e, t) {
1525
+ const [o, n] = Ee(e);
1526
+ return [t === void 0 ? o : t, n];
2505
1527
  }
2506
- function Ma(e, t) {
2507
- const [n, r] = ba(e, t), { startOfMonth: o, endOfMonth: s } = t, a = ft(e, n, r, t), [i, u] = We(
2508
- a,
1528
+ function Ia(e, t) {
1529
+ const [o, n] = _a(e, t), { startOfMonth: a, endOfMonth: l } = t, r = Ue(e, o, n, t), [s, i] = ge(
1530
+ r,
2509
1531
  // initialMonth is always computed from props.month if provided
2510
- e.month ? a : void 0
1532
+ e.month ? r : void 0
2511
1533
  );
2512
- On(() => {
2513
- const D = ft(e, n, r, t);
2514
- u(D);
1534
+ Ut(() => {
1535
+ const D = Ue(e, o, n, t);
1536
+ i(D);
2515
1537
  }, [e.timeZone]);
2516
- const { months: d, weeks: l, days: c, previousMonth: h, nextMonth: b } = ge(() => {
2517
- const D = ya(i, r, { numberOfMonths: e.numberOfMonths }, t), p = ma(D, e.endMonth ? s(e.endMonth) : void 0, {
1538
+ const { months: d, weeks: f, days: u, previousMonth: h, nextMonth: b } = ie(() => {
1539
+ const D = Na(s, n, { numberOfMonths: e.numberOfMonths }, t), g = Wa(D, e.endMonth ? l(e.endMonth) : void 0, {
2518
1540
  ISOWeek: e.ISOWeek,
2519
1541
  fixedWeeks: e.fixedWeeks,
2520
1542
  broadcastCalendar: e.broadcastCalendar
2521
- }, t), m = pa(D, p, {
1543
+ }, t), m = Ta(D, g, {
2522
1544
  broadcastCalendar: e.broadcastCalendar,
2523
1545
  fixedWeeks: e.fixedWeeks,
2524
1546
  ISOWeek: e.ISOWeek,
2525
1547
  reverseMonths: e.reverseMonths
2526
- }, t), S = ka(m), F = ga(m), H = va(i, n, e, t), I = wa(i, r, e, t);
1548
+ }, t), O = Ba(m), P = Sa(m), Y = Pa(s, o, e, t), I = Ea(s, n, e, t);
2527
1549
  return {
2528
1550
  months: m,
2529
- weeks: S,
2530
- days: F,
2531
- previousMonth: H,
1551
+ weeks: O,
1552
+ days: P,
1553
+ previousMonth: Y,
2532
1554
  nextMonth: I
2533
1555
  };
2534
1556
  }, [
2535
1557
  t,
2536
- i.getTime(),
2537
- r?.getTime(),
1558
+ s.getTime(),
2538
1559
  n?.getTime(),
1560
+ o?.getTime(),
2539
1561
  e.disableNavigation,
2540
1562
  e.broadcastCalendar,
2541
1563
  e.endMonth?.getTime(),
@@ -2544,228 +1566,228 @@ function Ma(e, t) {
2544
1566
  e.numberOfMonths,
2545
1567
  e.pagedNavigation,
2546
1568
  e.reverseMonths
2547
- ]), { disableNavigation: x, onMonthChange: W } = e, k = (D) => l.some((p) => p.days.some((m) => m.isEqualTo(D))), O = (D) => {
1569
+ ]), { disableNavigation: x, onMonthChange: S } = e, w = (D) => f.some((g) => g.days.some((m) => m.isEqualTo(D))), C = (D) => {
2548
1570
  if (x)
2549
1571
  return;
2550
- let p = o(D);
2551
- n && p < o(n) && (p = o(n)), r && p > o(r) && (p = o(r)), u(p), W?.(p);
1572
+ let g = a(D);
1573
+ o && g < a(o) && (g = a(o)), n && g > a(n) && (g = a(n)), i(g), S?.(g);
2552
1574
  };
2553
1575
  return {
2554
1576
  months: d,
2555
- weeks: l,
2556
- days: c,
2557
- navStart: n,
2558
- navEnd: r,
1577
+ weeks: f,
1578
+ days: u,
1579
+ navStart: o,
1580
+ navEnd: n,
2559
1581
  previousMonth: h,
2560
1582
  nextMonth: b,
2561
- goToMonth: O,
1583
+ goToMonth: C,
2562
1584
  goToDay: (D) => {
2563
- k(D) || O(D.date);
1585
+ w(D) || C(D.date);
2564
1586
  }
2565
1587
  };
2566
1588
  }
2567
- var U;
1589
+ var Z;
2568
1590
  (function(e) {
2569
1591
  e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
2570
- })(U || (U = {}));
2571
- function ht(e) {
1592
+ })(Z || (Z = {}));
1593
+ function Ke(e) {
2572
1594
  return !e[B.disabled] && !e[B.hidden] && !e[B.outside];
2573
1595
  }
2574
- function Da(e, t, n, r) {
2575
- let o, s = -1;
2576
- for (const a of e) {
2577
- const i = t(a);
2578
- ht(i) && (i[B.focused] && s < U.FocusedModifier ? (o = a, s = U.FocusedModifier) : r?.isEqualTo(a) && s < U.LastFocused ? (o = a, s = U.LastFocused) : n(a.date) && s < U.Selected ? (o = a, s = U.Selected) : i[B.today] && s < U.Today && (o = a, s = U.Today));
1596
+ function Ya(e, t, o, n) {
1597
+ let a, l = -1;
1598
+ for (const r of e) {
1599
+ const s = t(r);
1600
+ Ke(s) && (s[B.focused] && l < Z.FocusedModifier ? (a = r, l = Z.FocusedModifier) : n?.isEqualTo(r) && l < Z.LastFocused ? (a = r, l = Z.LastFocused) : o(r.date) && l < Z.Selected ? (a = r, l = Z.Selected) : s[B.today] && l < Z.Today && (a = r, l = Z.Today));
2579
1601
  }
2580
- return o || (o = e.find((a) => ht(t(a)))), o;
1602
+ return a || (a = e.find((r) => Ke(t(r)))), a;
2581
1603
  }
2582
- function xa(e, t, n, r, o, s, a) {
2583
- const { ISOWeek: i, broadcastCalendar: u } = s, { addDays: d, addMonths: l, addWeeks: c, addYears: h, endOfBroadcastWeek: b, endOfISOWeek: x, endOfWeek: W, max: k, min: O, startOfBroadcastWeek: T, startOfISOWeek: v, startOfWeek: D } = a;
1604
+ function Fa(e, t, o, n, a, l, r) {
1605
+ const { ISOWeek: s, broadcastCalendar: i } = l, { addDays: d, addMonths: f, addWeeks: u, addYears: h, endOfBroadcastWeek: b, endOfISOWeek: x, endOfWeek: S, max: w, min: C, startOfBroadcastWeek: T, startOfISOWeek: k, startOfWeek: D } = r;
2584
1606
  let m = {
2585
1607
  day: d,
2586
- week: c,
2587
- month: l,
1608
+ week: u,
1609
+ month: f,
2588
1610
  year: h,
2589
- startOfWeek: (S) => u ? T(S, a) : i ? v(S) : D(S),
2590
- endOfWeek: (S) => u ? b(S) : i ? x(S) : W(S)
2591
- }[e](n, t === "after" ? 1 : -1);
2592
- return t === "before" && r ? m = k([r, m]) : t === "after" && o && (m = O([o, m])), m;
1611
+ startOfWeek: (O) => i ? T(O, r) : s ? k(O) : D(O),
1612
+ endOfWeek: (O) => i ? b(O) : s ? x(O) : S(O)
1613
+ }[e](o, t === "after" ? 1 : -1);
1614
+ return t === "before" && n ? m = w([n, m]) : t === "after" && a && (m = C([a, m])), m;
2593
1615
  }
2594
- function qt(e, t, n, r, o, s, a, i = 0) {
2595
- if (i > 365)
1616
+ function ft(e, t, o, n, a, l, r, s = 0) {
1617
+ if (s > 365)
2596
1618
  return;
2597
- const u = xa(e, t, n.date, r, o, s, a), d = !!(s.disabled && re(u, s.disabled, a)), l = !!(s.hidden && re(u, s.hidden, a)), c = u, h = new Pt(u, c, a);
2598
- return !d && !l ? h : qt(e, t, h, r, o, s, a, i + 1);
1619
+ const i = Fa(e, t, o.date, n, a, l, r), d = !!(l.disabled && ee(i, l.disabled, r)), f = !!(l.hidden && ee(i, l.hidden, r)), u = i, h = new at(i, u, r);
1620
+ return !d && !f ? h : ft(e, t, h, n, a, l, r, s + 1);
2599
1621
  }
2600
- function Oa(e, t, n, r, o) {
2601
- const { autoFocus: s } = e, [a, i] = Ge(), u = Da(t.days, n, r || (() => !1), a), [d, l] = Ge(s ? u : void 0);
1622
+ function ja(e, t, o, n, a) {
1623
+ const { autoFocus: l } = e, [r, s] = Ee(), i = Ya(t.days, o, n || (() => !1), r), [d, f] = Ee(l ? i : void 0);
2602
1624
  return {
2603
- isFocusTarget: (W) => !!u?.isEqualTo(W),
2604
- setFocused: l,
1625
+ isFocusTarget: (S) => !!i?.isEqualTo(S),
1626
+ setFocused: f,
2605
1627
  focused: d,
2606
1628
  blur: () => {
2607
- i(d), l(void 0);
1629
+ s(d), f(void 0);
2608
1630
  },
2609
- moveFocus: (W, k) => {
1631
+ moveFocus: (S, w) => {
2610
1632
  if (!d)
2611
1633
  return;
2612
- const O = qt(W, k, d, t.navStart, t.navEnd, e, o);
2613
- O && (e.disableNavigation && !t.days.some((v) => v.isEqualTo(O)) || (t.goToDay(O), l(O)));
1634
+ const C = ft(S, w, d, t.navStart, t.navEnd, e, a);
1635
+ C && (e.disableNavigation && !t.days.some((k) => k.isEqualTo(C)) || (t.goToDay(C), f(C)));
2614
1636
  }
2615
1637
  };
2616
1638
  }
2617
- function Sa(e, t) {
2618
- const { selected: n, required: r, onSelect: o } = e, [s, a] = We(n, o ? n : void 0), i = o ? n : s, { isSameDay: u } = t, d = (b) => i?.some((x) => u(x, b)) ?? !1, { min: l, max: c } = e;
1639
+ function Aa(e, t) {
1640
+ const { selected: o, required: n, onSelect: a } = e, [l, r] = ge(o, a ? o : void 0), s = a ? o : l, { isSameDay: i } = t, d = (b) => s?.some((x) => i(x, b)) ?? !1, { min: f, max: u } = e;
2619
1641
  return {
2620
- selected: i,
2621
- select: (b, x, W) => {
2622
- let k = [...i ?? []];
1642
+ selected: s,
1643
+ select: (b, x, S) => {
1644
+ let w = [...s ?? []];
2623
1645
  if (d(b)) {
2624
- if (i?.length === l || r && i?.length === 1)
1646
+ if (s?.length === f || n && s?.length === 1)
2625
1647
  return;
2626
- k = i?.filter((O) => !u(O, b));
1648
+ w = s?.filter((C) => !i(C, b));
2627
1649
  } else
2628
- i?.length === c ? k = [b] : k = [...k, b];
2629
- return o || a(k), o?.(k, b, x, W), k;
1650
+ s?.length === u ? w = [b] : w = [...w, b];
1651
+ return a || r(w), a?.(w, b, x, S), w;
2630
1652
  },
2631
1653
  isSelected: d
2632
1654
  };
2633
1655
  }
2634
- function Ca(e, t, n = 0, r = 0, o = !1, s = K) {
2635
- const { from: a, to: i } = t || {}, { isSameDay: u, isAfter: d, isBefore: l } = s;
2636
- let c;
2637
- if (!a && !i)
2638
- c = { from: e, to: n > 0 ? void 0 : e };
2639
- else if (a && !i)
2640
- u(a, e) ? n === 0 ? c = { from: a, to: e } : o ? c = { from: a, to: void 0 } : c = void 0 : l(e, a) ? c = { from: e, to: a } : c = { from: a, to: e };
2641
- else if (a && i)
2642
- if (u(a, e) && u(i, e))
2643
- o ? c = { from: a, to: i } : c = void 0;
2644
- else if (u(a, e))
2645
- c = { from: a, to: n > 0 ? void 0 : e };
2646
- else if (u(i, e))
2647
- c = { from: e, to: n > 0 ? void 0 : e };
2648
- else if (l(e, a))
2649
- c = { from: e, to: i };
2650
- else if (d(e, a))
2651
- c = { from: a, to: e };
2652
- else if (d(e, i))
2653
- c = { from: a, to: e };
1656
+ function za(e, t, o = 0, n = 0, a = !1, l = K) {
1657
+ const { from: r, to: s } = t || {}, { isSameDay: i, isAfter: d, isBefore: f } = l;
1658
+ let u;
1659
+ if (!r && !s)
1660
+ u = { from: e, to: o > 0 ? void 0 : e };
1661
+ else if (r && !s)
1662
+ i(r, e) ? o === 0 ? u = { from: r, to: e } : a ? u = { from: r, to: void 0 } : u = void 0 : f(e, r) ? u = { from: e, to: r } : u = { from: r, to: e };
1663
+ else if (r && s)
1664
+ if (i(r, e) && i(s, e))
1665
+ a ? u = { from: r, to: s } : u = void 0;
1666
+ else if (i(r, e))
1667
+ u = { from: r, to: o > 0 ? void 0 : e };
1668
+ else if (i(s, e))
1669
+ u = { from: e, to: o > 0 ? void 0 : e };
1670
+ else if (f(e, r))
1671
+ u = { from: e, to: s };
1672
+ else if (d(e, r))
1673
+ u = { from: r, to: e };
1674
+ else if (d(e, s))
1675
+ u = { from: r, to: e };
2654
1676
  else
2655
1677
  throw new Error("Invalid range");
2656
- if (c?.from && c?.to) {
2657
- const h = s.differenceInCalendarDays(c.to, c.from);
2658
- r > 0 && h > r ? c = { from: e, to: void 0 } : n > 1 && h < n && (c = { from: e, to: void 0 });
1678
+ if (u?.from && u?.to) {
1679
+ const h = l.differenceInCalendarDays(u.to, u.from);
1680
+ n > 0 && h > n ? u = { from: e, to: void 0 } : o > 1 && h < o && (u = { from: e, to: void 0 });
2659
1681
  }
2660
- return c;
2661
- }
2662
- function Wa(e, t, n = K) {
2663
- const r = Array.isArray(t) ? t : [t];
2664
- let o = e.from;
2665
- const s = n.differenceInCalendarDays(e.to, e.from), a = Math.min(s, 6);
2666
- for (let i = 0; i <= a; i++) {
2667
- if (r.includes(o.getDay()))
1682
+ return u;
1683
+ }
1684
+ function Ha(e, t, o = K) {
1685
+ const n = Array.isArray(t) ? t : [t];
1686
+ let a = e.from;
1687
+ const l = o.differenceInCalendarDays(e.to, e.from), r = Math.min(l, 6);
1688
+ for (let s = 0; s <= r; s++) {
1689
+ if (n.includes(a.getDay()))
2668
1690
  return !0;
2669
- o = n.addDays(o, 1);
1691
+ a = o.addDays(a, 1);
2670
1692
  }
2671
1693
  return !1;
2672
1694
  }
2673
- function mt(e, t, n = K) {
2674
- return ne(e, t.from, !1, n) || ne(e, t.to, !1, n) || ne(t, e.from, !1, n) || ne(t, e.to, !1, n);
1695
+ function Le(e, t, o = K) {
1696
+ return Q(e, t.from, !1, o) || Q(e, t.to, !1, o) || Q(t, e.from, !1, o) || Q(t, e.to, !1, o);
2675
1697
  }
2676
- function Na(e, t, n = K) {
2677
- const r = Array.isArray(t) ? t : [t];
2678
- if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? ne(e, i, !1, n) : It(i, n) ? i.some((u) => ne(e, u, !1, n)) : Ce(i) ? i.from && i.to ? mt(e, { from: i.from, to: i.to }, n) : !1 : Bt(i) ? Wa(e, i.dayOfWeek, n) : Ve(i) ? n.isAfter(i.before, i.after) ? mt(e, {
2679
- from: n.addDays(i.after, 1),
2680
- to: n.addDays(i.before, -1)
2681
- }, n) : re(e.from, i, n) || re(e.to, i, n) : Le(i) || Qe(i) ? re(e.from, i, n) || re(e.to, i, n) : !1))
1698
+ function qa(e, t, o = K) {
1699
+ const n = Array.isArray(t) ? t : [t];
1700
+ if (n.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : o.isDate(s) ? Q(e, s, !1, o) : it(s, o) ? s.some((i) => Q(e, i, !1, o)) : ye(s) ? s.from && s.to ? Le(e, { from: s.from, to: s.to }, o) : !1 : st(s) ? Ha(e, s.dayOfWeek, o) : Be(s) ? o.isAfter(s.before, s.after) ? Le(e, {
1701
+ from: o.addDays(s.after, 1),
1702
+ to: o.addDays(s.before, -1)
1703
+ }, o) : ee(e.from, s, o) || ee(e.to, s, o) : Ie(s) || Ye(s) ? ee(e.from, s, o) || ee(e.to, s, o) : !1))
2682
1704
  return !0;
2683
- const a = r.filter((i) => typeof i == "function");
2684
- if (a.length) {
2685
- let i = e.from;
2686
- const u = n.differenceInCalendarDays(e.to, e.from);
2687
- for (let d = 0; d <= u; d++) {
2688
- if (a.some((l) => l(i)))
1705
+ const r = n.filter((s) => typeof s == "function");
1706
+ if (r.length) {
1707
+ let s = e.from;
1708
+ const i = o.differenceInCalendarDays(e.to, e.from);
1709
+ for (let d = 0; d <= i; d++) {
1710
+ if (r.some((f) => f(s)))
2689
1711
  return !0;
2690
- i = n.addDays(i, 1);
1712
+ s = o.addDays(s, 1);
2691
1713
  }
2692
1714
  }
2693
1715
  return !1;
2694
1716
  }
2695
- function Ta(e, t) {
2696
- const { disabled: n, excludeDisabled: r, selected: o, required: s, onSelect: a } = e, [i, u] = We(o, a ? o : void 0), d = a ? o : i;
1717
+ function Ga(e, t) {
1718
+ const { disabled: o, excludeDisabled: n, selected: a, required: l, onSelect: r } = e, [s, i] = ge(a, r ? a : void 0), d = r ? a : s;
2697
1719
  return {
2698
1720
  selected: d,
2699
1721
  select: (h, b, x) => {
2700
- const { min: W, max: k } = e, O = h ? Ca(h, d, W, k, s, t) : void 0;
2701
- return r && n && O?.from && O.to && Na({ from: O.from, to: O.to }, n, t) && (O.from = h, O.to = void 0), a || u(O), a?.(O, h, b, x), O;
1722
+ const { min: S, max: w } = e, C = h ? za(h, d, S, w, l, t) : void 0;
1723
+ return n && o && C?.from && C.to && qa({ from: C.from, to: C.to }, o, t) && (C.from = h, C.to = void 0), r || i(C), r?.(C, h, b, x), C;
2702
1724
  },
2703
- isSelected: (h) => d && ne(d, h, !1, t)
1725
+ isSelected: (h) => d && Q(d, h, !1, t)
2704
1726
  };
2705
1727
  }
2706
- function _a(e, t) {
2707
- const { selected: n, required: r, onSelect: o } = e, [s, a] = We(n, o ? n : void 0), i = o ? n : s, { isSameDay: u } = t;
1728
+ function $a(e, t) {
1729
+ const { selected: o, required: n, onSelect: a } = e, [l, r] = ge(o, a ? o : void 0), s = a ? o : l, { isSameDay: i } = t;
2708
1730
  return {
2709
- selected: i,
2710
- select: (c, h, b) => {
2711
- let x = c;
2712
- return !r && i && i && u(c, i) && (x = void 0), o || a(x), o?.(x, c, h, b), x;
1731
+ selected: s,
1732
+ select: (u, h, b) => {
1733
+ let x = u;
1734
+ return !n && s && s && i(u, s) && (x = void 0), a || r(x), a?.(x, u, h, b), x;
2713
1735
  },
2714
- isSelected: (c) => i ? u(i, c) : !1
1736
+ isSelected: (u) => s ? i(s, u) : !1
2715
1737
  };
2716
1738
  }
2717
- function Ya(e, t) {
2718
- const n = _a(e, t), r = Sa(e, t), o = Ta(e, t);
1739
+ function Ra(e, t) {
1740
+ const o = $a(e, t), n = Aa(e, t), a = Ga(e, t);
2719
1741
  switch (e.mode) {
2720
1742
  case "single":
2721
- return n;
1743
+ return o;
2722
1744
  case "multiple":
2723
- return r;
1745
+ return n;
2724
1746
  case "range":
2725
- return o;
1747
+ return a;
2726
1748
  default:
2727
1749
  return;
2728
1750
  }
2729
1751
  }
2730
- function A(e, t) {
2731
- return e instanceof te && e.timeZone === t ? e : new te(e, t);
1752
+ function F(e, t) {
1753
+ return e instanceof X && e.timeZone === t ? e : new X(e, t);
2732
1754
  }
2733
- function gt(e, t) {
2734
- return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? A(e, t) : Array.isArray(e) ? e.map((n) => n instanceof Date ? A(n, t) : n) : Ce(e) ? {
1755
+ function Je(e, t) {
1756
+ return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? F(e, t) : Array.isArray(e) ? e.map((o) => o instanceof Date ? F(o, t) : o) : ye(e) ? {
2735
1757
  ...e,
2736
- from: e.from ? A(e.from, t) : e.from,
2737
- to: e.to ? A(e.to, t) : e.to
2738
- } : Ve(e) ? {
2739
- before: A(e.before, t),
2740
- after: A(e.after, t)
2741
- } : Le(e) ? {
2742
- after: A(e.after, t)
2743
- } : Qe(e) ? {
2744
- before: A(e.before, t)
1758
+ from: e.from ? F(e.from, t) : e.from,
1759
+ to: e.to ? F(e.to, t) : e.to
1760
+ } : Be(e) ? {
1761
+ before: F(e.before, t),
1762
+ after: F(e.after, t)
1763
+ } : Ie(e) ? {
1764
+ after: F(e.after, t)
1765
+ } : Ye(e) ? {
1766
+ before: F(e.before, t)
2745
1767
  } : e;
2746
1768
  }
2747
- function qe(e, t) {
2748
- return e && (Array.isArray(e) ? e.map((n) => gt(n, t)) : gt(e, t));
1769
+ function _e(e, t) {
1770
+ return e && (Array.isArray(e) ? e.map((o) => Je(o, t)) : Je(e, t));
2749
1771
  }
2750
- function Ea(e) {
1772
+ function Va(e) {
2751
1773
  let t = e;
2752
- const n = t.timeZone;
2753
- if (n && (t = {
1774
+ const o = t.timeZone;
1775
+ if (o && (t = {
2754
1776
  ...e,
2755
- timeZone: n
2756
- }, t.today && (t.today = A(t.today, n)), t.month && (t.month = A(t.month, n)), t.defaultMonth && (t.defaultMonth = A(t.defaultMonth, n)), t.startMonth && (t.startMonth = A(t.startMonth, n)), t.endMonth && (t.endMonth = A(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = A(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = t.selected?.map((M) => A(M, n)) : t.mode === "range" && t.selected && (t.selected = {
2757
- from: t.selected.from ? A(t.selected.from, n) : t.selected.from,
2758
- to: t.selected.to ? A(t.selected.to, n) : t.selected.to
2759
- }), t.disabled !== void 0 && (t.disabled = qe(t.disabled, n)), t.hidden !== void 0 && (t.hidden = qe(t.hidden, n)), t.modifiers)) {
1777
+ timeZone: o
1778
+ }, t.today && (t.today = F(t.today, o)), t.month && (t.month = F(t.month, o)), t.defaultMonth && (t.defaultMonth = F(t.defaultMonth, o)), t.startMonth && (t.startMonth = F(t.startMonth, o)), t.endMonth && (t.endMonth = F(t.endMonth, o)), t.mode === "single" && t.selected ? t.selected = F(t.selected, o) : t.mode === "multiple" && t.selected ? t.selected = t.selected?.map((M) => F(M, o)) : t.mode === "range" && t.selected && (t.selected = {
1779
+ from: t.selected.from ? F(t.selected.from, o) : t.selected.from,
1780
+ to: t.selected.to ? F(t.selected.to, o) : t.selected.to
1781
+ }), t.disabled !== void 0 && (t.disabled = _e(t.disabled, o)), t.hidden !== void 0 && (t.hidden = _e(t.hidden, o)), t.modifiers)) {
2760
1782
  const M = {};
2761
1783
  Object.keys(t.modifiers).forEach((E) => {
2762
- M[E] = qe(t.modifiers?.[E], n);
1784
+ M[E] = _e(t.modifiers?.[E], o);
2763
1785
  }), t.modifiers = M;
2764
1786
  }
2765
- const { components: r, formatters: o, labels: s, dateLib: a, locale: i, classNames: u } = ge(() => {
2766
- const M = { ...$e, ...t.locale };
1787
+ const { components: n, formatters: a, labels: l, dateLib: r, locale: s, classNames: i } = ie(() => {
1788
+ const M = { ...nt, ...t.locale };
2767
1789
  return {
2768
- dateLib: new q({
1790
+ dateLib: new A({
2769
1791
  locale: M,
2770
1792
  weekStartsOn: t.broadcastCalendar ? 1 : t.weekStartsOn,
2771
1793
  firstWeekContainsDate: t.firstWeekContainsDate,
@@ -2774,11 +1796,11 @@ function Ea(e) {
2774
1796
  timeZone: t.timeZone,
2775
1797
  numerals: t.numerals
2776
1798
  }, t.dateLib),
2777
- components: Io(t.components),
2778
- formatters: Lo(t.formatters),
2779
- labels: { ...ca, ...t.labels },
1799
+ components: Lo(t.components),
1800
+ formatters: sa(t.formatters),
1801
+ labels: { ...Ma, ...t.labels },
2780
1802
  locale: M,
2781
- classNames: { ...Xe(), ...t.classNames }
1803
+ classNames: { ...Fe(), ...t.classNames }
2782
1804
  };
2783
1805
  }, [
2784
1806
  t.locale,
@@ -2795,110 +1817,110 @@ function Ea(e) {
2795
1817
  t.labels,
2796
1818
  t.classNames
2797
1819
  ]);
2798
- t.today || (t = { ...t, today: a.today() });
2799
- const { captionLayout: d, mode: l, navLayout: c, numberOfMonths: h = 1, onDayBlur: b, onDayClick: x, onDayFocus: W, onDayKeyDown: k, onDayMouseEnter: O, onDayMouseLeave: T, onNextClick: v, onPrevClick: D, showWeekNumber: p, styles: m } = t, { formatCaption: S, formatDay: F, formatMonthDropdown: H, formatWeekNumber: I, formatWeekNumberHeader: Q, formatWeekdayName: oe, formatYearDropdown: J } = o, G = Ma(t, a), { days: ue, months: Me, navStart: Ne, navEnd: Te, previousMonth: $, nextMonth: V, goToMonth: ee } = G, _e = Fo(ue, t, Ne, Te, a), { isSelected: Ye, select: Ee, selected: De } = Ya(t, a) ?? {}, { blur: Ue, focused: Ze, isFocusTarget: Gt, moveFocus: Ke, setFocused: xe } = Oa(t, G, _e, Ye ?? (() => !1), a), { labelDayButton: Rt, labelGridcell: $t, labelGrid: Vt, labelMonthDropdown: Lt, labelNav: Je, labelPrevious: Qt, labelNext: Xt, labelWeekday: Ut, labelWeekNumber: Zt, labelWeekNumberHeader: Kt, labelYearDropdown: Jt } = s, en = ge(() => Uo(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), et = l !== void 0 || x !== void 0, Pe = R(() => {
2800
- $ && (ee($), D?.($));
2801
- }, [$, ee, D]), Fe = R(() => {
2802
- V && (ee(V), v?.(V));
2803
- }, [ee, V, v]), tn = R((M, E) => (w) => {
2804
- w.preventDefault(), w.stopPropagation(), xe(M), !E.disabled && (Ee?.(M.date, E, w), x?.(M.date, E, w));
2805
- }, [Ee, x, xe]), nn = R((M, E) => (w) => {
2806
- xe(M), W?.(M.date, E, w);
2807
- }, [W, xe]), rn = R((M, E) => (w) => {
2808
- Ue(), b?.(M.date, E, w);
2809
- }, [Ue, b]), on = R((M, E) => (w) => {
1820
+ t.today || (t = { ...t, today: r.today() });
1821
+ const { captionLayout: d, mode: f, navLayout: u, numberOfMonths: h = 1, onDayBlur: b, onDayClick: x, onDayFocus: S, onDayKeyDown: w, onDayMouseEnter: C, onDayMouseLeave: T, onNextClick: k, onPrevClick: D, showWeekNumber: g, styles: m } = t, { formatCaption: O, formatDay: P, formatMonthDropdown: Y, formatWeekNumber: I, formatWeekNumberHeader: R, formatWeekdayName: te, formatYearDropdown: L } = a, z = Ia(t, r), { days: oe, months: ce, navStart: be, navEnd: ve, previousMonth: q, nextMonth: G, goToMonth: J } = z, ke = Uo(oe, t, be, ve, r), { isSelected: we, select: Me, selected: fe } = Ra(t, r) ?? {}, { blur: je, focused: Ae, isFocusTarget: ht, moveFocus: ze, setFocused: he } = ja(t, z, ke, we ?? (() => !1), r), { labelDayButton: mt, labelGridcell: pt, labelGrid: yt, labelMonthDropdown: gt, labelNav: He, labelPrevious: bt, labelNext: vt, labelWeekday: kt, labelWeekNumber: wt, labelWeekNumberHeader: Mt, labelYearDropdown: Dt } = l, xt = ie(() => da(r, t.ISOWeek, t.broadcastCalendar, t.today), [r, t.ISOWeek, t.broadcastCalendar, t.today]), qe = f !== void 0 || x !== void 0, De = H(() => {
1822
+ q && (J(q), D?.(q));
1823
+ }, [q, J, D]), xe = H(() => {
1824
+ G && (J(G), k?.(G));
1825
+ }, [J, G, k]), Ct = H((M, E) => (v) => {
1826
+ v.preventDefault(), v.stopPropagation(), he(M), !E.disabled && (Me?.(M.date, E, v), x?.(M.date, E, v));
1827
+ }, [Me, x, he]), Ot = H((M, E) => (v) => {
1828
+ he(M), S?.(M.date, E, v);
1829
+ }, [S, he]), Wt = H((M, E) => (v) => {
1830
+ je(), b?.(M.date, E, v);
1831
+ }, [je, b]), St = H((M, E) => (v) => {
2810
1832
  const _ = {
2811
1833
  ArrowLeft: [
2812
- w.shiftKey ? "month" : "day",
1834
+ v.shiftKey ? "month" : "day",
2813
1835
  t.dir === "rtl" ? "after" : "before"
2814
1836
  ],
2815
1837
  ArrowRight: [
2816
- w.shiftKey ? "month" : "day",
1838
+ v.shiftKey ? "month" : "day",
2817
1839
  t.dir === "rtl" ? "before" : "after"
2818
1840
  ],
2819
- ArrowDown: [w.shiftKey ? "year" : "week", "after"],
2820
- ArrowUp: [w.shiftKey ? "year" : "week", "before"],
2821
- PageUp: [w.shiftKey ? "year" : "month", "before"],
2822
- PageDown: [w.shiftKey ? "year" : "month", "after"],
1841
+ ArrowDown: [v.shiftKey ? "year" : "week", "after"],
1842
+ ArrowUp: [v.shiftKey ? "year" : "week", "before"],
1843
+ PageUp: [v.shiftKey ? "year" : "month", "before"],
1844
+ PageDown: [v.shiftKey ? "year" : "month", "after"],
2823
1845
  Home: ["startOfWeek", "before"],
2824
1846
  End: ["endOfWeek", "after"]
2825
1847
  };
2826
- if (_[w.key]) {
2827
- w.preventDefault(), w.stopPropagation();
2828
- const [X, C] = _[w.key];
2829
- Ke(X, C);
1848
+ if (_[v.key]) {
1849
+ v.preventDefault(), v.stopPropagation();
1850
+ const [V, W] = _[v.key];
1851
+ ze(V, W);
2830
1852
  }
2831
- k?.(M.date, E, w);
2832
- }, [Ke, k, t.dir]), an = R((M, E) => (w) => {
2833
- O?.(M.date, E, w);
2834
- }, [O]), sn = R((M, E) => (w) => {
2835
- T?.(M.date, E, w);
2836
- }, [T]), un = R((M) => (E) => {
2837
- const w = Number(E.target.value), _ = a.setMonth(a.startOfMonth(M), w);
2838
- ee(_);
2839
- }, [a, ee]), cn = R((M) => (E) => {
2840
- const w = Number(E.target.value), _ = a.setYear(a.startOfMonth(M), w);
2841
- ee(_);
2842
- }, [a, ee]), { className: dn, style: ln } = ge(() => ({
2843
- className: [u[g.Root], t.className].filter(Boolean).join(" "),
2844
- style: { ...m?.[g.Root], ...t.style }
2845
- }), [u, t.className, t.style, m]), fn = jo(t), tt = Oe(null);
2846
- ha(tt, !!t.animate, {
2847
- classNames: u,
2848
- months: Me,
2849
- focused: Ze,
2850
- dateLib: a
1853
+ w?.(M.date, E, v);
1854
+ }, [ze, w, t.dir]), Nt = H((M, E) => (v) => {
1855
+ C?.(M.date, E, v);
1856
+ }, [C]), Tt = H((M, E) => (v) => {
1857
+ T?.(M.date, E, v);
1858
+ }, [T]), _t = H((M) => (E) => {
1859
+ const v = Number(E.target.value), _ = r.setMonth(r.startOfMonth(M), v);
1860
+ J(_);
1861
+ }, [r, J]), Et = H((M) => (E) => {
1862
+ const v = Number(E.target.value), _ = r.setYear(r.startOfMonth(M), v);
1863
+ J(_);
1864
+ }, [r, J]), { className: Pt, style: Bt } = ie(() => ({
1865
+ className: [i[p.Root], t.className].filter(Boolean).join(" "),
1866
+ style: { ...m?.[p.Root], ...t.style }
1867
+ }), [i, t.className, t.style, m]), It = Jo(t), Ge = me(null);
1868
+ Oa(Ge, !!t.animate, {
1869
+ classNames: i,
1870
+ months: ce,
1871
+ focused: Ae,
1872
+ dateLib: r
2851
1873
  });
2852
- const hn = {
1874
+ const Yt = {
2853
1875
  dayPickerProps: t,
2854
- selected: De,
2855
- select: Ee,
2856
- isSelected: Ye,
2857
- months: Me,
2858
- nextMonth: V,
2859
- previousMonth: $,
2860
- goToMonth: ee,
2861
- getModifiers: _e,
2862
- components: r,
2863
- classNames: u,
1876
+ selected: fe,
1877
+ select: Me,
1878
+ isSelected: we,
1879
+ months: ce,
1880
+ nextMonth: G,
1881
+ previousMonth: q,
1882
+ goToMonth: J,
1883
+ getModifiers: ke,
1884
+ components: n,
1885
+ classNames: i,
2864
1886
  styles: m,
2865
- labels: s,
2866
- formatters: o
1887
+ labels: l,
1888
+ formatters: a
2867
1889
  };
2868
- return f.createElement(
2869
- Ft.Provider,
2870
- { value: hn },
2871
- f.createElement(
2872
- r.Root,
2873
- { rootRef: t.animate ? tt : void 0, className: dn, style: ln, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...fn },
2874
- f.createElement(
2875
- r.Months,
2876
- { className: u[g.Months], style: m?.[g.Months] },
2877
- !t.hideNavigation && !c && f.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: u[g.Nav], style: m?.[g.Nav], "aria-label": Je(), onPreviousClick: Pe, onNextClick: Fe, previousMonth: $, nextMonth: V }),
2878
- Me.map((M, E) => f.createElement(
2879
- r.Month,
1890
+ return c.createElement(
1891
+ rt.Provider,
1892
+ { value: Yt },
1893
+ c.createElement(
1894
+ n.Root,
1895
+ { rootRef: t.animate ? Ge : void 0, className: Pt, style: Bt, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...It },
1896
+ c.createElement(
1897
+ n.Months,
1898
+ { className: i[p.Months], style: m?.[p.Months] },
1899
+ !t.hideNavigation && !u && c.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[p.Nav], style: m?.[p.Nav], "aria-label": He(), onPreviousClick: De, onNextClick: xe, previousMonth: q, nextMonth: G }),
1900
+ ce.map((M, E) => c.createElement(
1901
+ n.Month,
2880
1902
  {
2881
1903
  "data-animated-month": t.animate ? "true" : void 0,
2882
- className: u[g.Month],
2883
- style: m?.[g.Month],
1904
+ className: i[p.Month],
1905
+ style: m?.[p.Month],
2884
1906
  // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
2885
1907
  key: E,
2886
1908
  displayIndex: E,
2887
1909
  calendarMonth: M
2888
1910
  },
2889
- c === "around" && !t.hideNavigation && E === 0 && f.createElement(
2890
- r.PreviousMonthButton,
2891
- { type: "button", className: u[g.PreviousMonthButton], tabIndex: $ ? void 0 : -1, "aria-disabled": $ ? void 0 : !0, "aria-label": Qt($), onClick: Pe, "data-animated-button": t.animate ? "true" : void 0 },
2892
- f.createElement(r.Chevron, { disabled: $ ? void 0 : !0, className: u[g.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
1911
+ u === "around" && !t.hideNavigation && E === 0 && c.createElement(
1912
+ n.PreviousMonthButton,
1913
+ { type: "button", className: i[p.PreviousMonthButton], tabIndex: q ? void 0 : -1, "aria-disabled": q ? void 0 : !0, "aria-label": bt(q), onClick: De, "data-animated-button": t.animate ? "true" : void 0 },
1914
+ c.createElement(n.Chevron, { disabled: q ? void 0 : !0, className: i[p.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
2893
1915
  ),
2894
- f.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: u[g.MonthCaption], style: m?.[g.MonthCaption], calendarMonth: M, displayIndex: E }, d?.startsWith("dropdown") ? f.createElement(
2895
- r.DropdownNav,
2896
- { className: u[g.Dropdowns], style: m?.[g.Dropdowns] },
1916
+ c.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: i[p.MonthCaption], style: m?.[p.MonthCaption], calendarMonth: M, displayIndex: E }, d?.startsWith("dropdown") ? c.createElement(
1917
+ n.DropdownNav,
1918
+ { className: i[p.Dropdowns], style: m?.[p.Dropdowns] },
2897
1919
  (() => {
2898
- const w = d === "dropdown" || d === "dropdown-months" ? f.createElement(r.MonthsDropdown, { key: "month", className: u[g.MonthsDropdown], "aria-label": Lt(), classNames: u, components: r, disabled: !!t.disableNavigation, onChange: un(M.date), options: Qo(M.date, Ne, Te, o, a), style: m?.[g.Dropdown], value: a.getMonth(M.date) }) : f.createElement("span", { key: "month" }, H(M.date, a)), _ = d === "dropdown" || d === "dropdown-years" ? f.createElement(r.YearsDropdown, { key: "year", className: u[g.YearsDropdown], "aria-label": Jt(a.options), classNames: u, components: r, disabled: !!t.disableNavigation, onChange: cn(M.date), options: Zo(Ne, Te, o, a, !!t.reverseYears), style: m?.[g.Dropdown], value: a.getYear(M.date) }) : f.createElement("span", { key: "year" }, J(M.date, a));
2899
- return a.getMonthYearOrder() === "year-first" ? [_, w] : [w, _];
1920
+ const v = d === "dropdown" || d === "dropdown-months" ? c.createElement(n.MonthsDropdown, { key: "month", className: i[p.MonthsDropdown], "aria-label": gt(), classNames: i, components: n, disabled: !!t.disableNavigation, onChange: _t(M.date), options: ia(M.date, be, ve, a, r), style: m?.[p.Dropdown], value: r.getMonth(M.date) }) : c.createElement("span", { key: "month" }, Y(M.date, r)), _ = d === "dropdown" || d === "dropdown-years" ? c.createElement(n.YearsDropdown, { key: "year", className: i[p.YearsDropdown], "aria-label": Dt(r.options), classNames: i, components: n, disabled: !!t.disableNavigation, onChange: Et(M.date), options: ua(be, ve, a, r, !!t.reverseYears), style: m?.[p.Dropdown], value: r.getYear(M.date) }) : c.createElement("span", { key: "year" }, L(M.date, r));
1921
+ return r.getMonthYearOrder() === "year-first" ? [_, v] : [v, _];
2900
1922
  })(),
2901
- f.createElement("span", { role: "status", "aria-live": "polite", style: {
1923
+ c.createElement("span", { role: "status", "aria-live": "polite", style: {
2902
1924
  border: 0,
2903
1925
  clip: "rect(0 0 0 0)",
2904
1926
  height: "1px",
@@ -2909,209 +1931,209 @@ function Ea(e) {
2909
1931
  width: "1px",
2910
1932
  whiteSpace: "nowrap",
2911
1933
  wordWrap: "normal"
2912
- } }, S(M.date, a.options, a))
2913
- ) : f.createElement(r.CaptionLabel, { className: u[g.CaptionLabel], role: "status", "aria-live": "polite" }, S(M.date, a.options, a))),
2914
- c === "around" && !t.hideNavigation && E === h - 1 && f.createElement(
2915
- r.NextMonthButton,
2916
- { type: "button", className: u[g.NextMonthButton], tabIndex: V ? void 0 : -1, "aria-disabled": V ? void 0 : !0, "aria-label": Xt(V), onClick: Fe, "data-animated-button": t.animate ? "true" : void 0 },
2917
- f.createElement(r.Chevron, { disabled: V ? void 0 : !0, className: u[g.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
1934
+ } }, O(M.date, r.options, r))
1935
+ ) : c.createElement(n.CaptionLabel, { className: i[p.CaptionLabel], role: "status", "aria-live": "polite" }, O(M.date, r.options, r))),
1936
+ u === "around" && !t.hideNavigation && E === h - 1 && c.createElement(
1937
+ n.NextMonthButton,
1938
+ { type: "button", className: i[p.NextMonthButton], tabIndex: G ? void 0 : -1, "aria-disabled": G ? void 0 : !0, "aria-label": vt(G), onClick: xe, "data-animated-button": t.animate ? "true" : void 0 },
1939
+ c.createElement(n.Chevron, { disabled: G ? void 0 : !0, className: i[p.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
2918
1940
  ),
2919
- E === h - 1 && c === "after" && !t.hideNavigation && f.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: u[g.Nav], style: m?.[g.Nav], "aria-label": Je(), onPreviousClick: Pe, onNextClick: Fe, previousMonth: $, nextMonth: V }),
2920
- f.createElement(
2921
- r.MonthGrid,
2922
- { role: "grid", "aria-multiselectable": l === "multiple" || l === "range", "aria-label": Vt(M.date, a.options, a) || void 0, className: u[g.MonthGrid], style: m?.[g.MonthGrid] },
2923
- !t.hideWeekdays && f.createElement(
2924
- r.Weekdays,
2925
- { "data-animated-weekdays": t.animate ? "true" : void 0, className: u[g.Weekdays], style: m?.[g.Weekdays] },
2926
- p && f.createElement(r.WeekNumberHeader, { "aria-label": Kt(a.options), className: u[g.WeekNumberHeader], style: m?.[g.WeekNumberHeader], scope: "col" }, Q()),
2927
- en.map((w) => f.createElement(r.Weekday, { "aria-label": Ut(w, a.options, a), className: u[g.Weekday], key: String(w), style: m?.[g.Weekday], scope: "col" }, oe(w, a.options, a)))
1941
+ E === h - 1 && u === "after" && !t.hideNavigation && c.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: i[p.Nav], style: m?.[p.Nav], "aria-label": He(), onPreviousClick: De, onNextClick: xe, previousMonth: q, nextMonth: G }),
1942
+ c.createElement(
1943
+ n.MonthGrid,
1944
+ { role: "grid", "aria-multiselectable": f === "multiple" || f === "range", "aria-label": yt(M.date, r.options, r) || void 0, className: i[p.MonthGrid], style: m?.[p.MonthGrid] },
1945
+ !t.hideWeekdays && c.createElement(
1946
+ n.Weekdays,
1947
+ { "data-animated-weekdays": t.animate ? "true" : void 0, className: i[p.Weekdays], style: m?.[p.Weekdays] },
1948
+ g && c.createElement(n.WeekNumberHeader, { "aria-label": Mt(r.options), className: i[p.WeekNumberHeader], style: m?.[p.WeekNumberHeader], scope: "col" }, R()),
1949
+ xt.map((v) => c.createElement(n.Weekday, { "aria-label": kt(v, r.options, r), className: i[p.Weekday], key: String(v), style: m?.[p.Weekday], scope: "col" }, te(v, r.options, r)))
2928
1950
  ),
2929
- f.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: u[g.Weeks], style: m?.[g.Weeks] }, M.weeks.map((w) => f.createElement(
2930
- r.Week,
2931
- { className: u[g.Week], key: w.weekNumber, style: m?.[g.Week], week: w },
2932
- p && f.createElement(r.WeekNumber, { week: w, style: m?.[g.WeekNumber], "aria-label": Zt(w.weekNumber, {
2933
- locale: i
2934
- }), className: u[g.WeekNumber], scope: "row", role: "rowheader" }, I(w.weekNumber, a)),
2935
- w.days.map((_) => {
2936
- const { date: X } = _, C = _e(_);
2937
- if (C[B.focused] = !C.hidden && !!Ze?.isEqualTo(_), C[L.selected] = Ye?.(X) || C.selected, Ce(De)) {
2938
- const { from: Be, to: Ie } = De;
2939
- C[L.range_start] = !!(Be && Ie && a.isSameDay(X, Be)), C[L.range_end] = !!(Be && Ie && a.isSameDay(X, Ie)), C[L.range_middle] = ne(De, X, !0, a);
1951
+ c.createElement(n.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: i[p.Weeks], style: m?.[p.Weeks] }, M.weeks.map((v) => c.createElement(
1952
+ n.Week,
1953
+ { className: i[p.Week], key: v.weekNumber, style: m?.[p.Week], week: v },
1954
+ g && c.createElement(n.WeekNumber, { week: v, style: m?.[p.WeekNumber], "aria-label": wt(v.weekNumber, {
1955
+ locale: s
1956
+ }), className: i[p.WeekNumber], scope: "row", role: "rowheader" }, I(v.weekNumber, r)),
1957
+ v.days.map((_) => {
1958
+ const { date: V } = _, W = ke(_);
1959
+ if (W[B.focused] = !W.hidden && !!Ae?.isEqualTo(_), W[$.selected] = we?.(V) || W.selected, ye(fe)) {
1960
+ const { from: Ce, to: Oe } = fe;
1961
+ W[$.range_start] = !!(Ce && Oe && r.isSameDay(V, Ce)), W[$.range_end] = !!(Ce && Oe && r.isSameDay(V, Oe)), W[$.range_middle] = Q(fe, V, !0, r);
2940
1962
  }
2941
- const mn = Xo(C, m, t.modifiersStyles), gn = Bo(C, u, t.modifiersClassNames), yn = !et && !C.hidden ? $t(X, C, a.options, a) : void 0;
2942
- return f.createElement(r.Day, { key: `${_.isoDate}_${_.displayMonthId}`, day: _, modifiers: C, className: gn.join(" "), style: mn, role: "gridcell", "aria-selected": C.selected || void 0, "aria-label": yn, "data-day": _.isoDate, "data-month": _.outside ? _.dateMonthId : void 0, "data-selected": C.selected || void 0, "data-disabled": C.disabled || void 0, "data-hidden": C.hidden || void 0, "data-outside": _.outside || void 0, "data-focused": C.focused || void 0, "data-today": C.today || void 0 }, !C.hidden && et ? f.createElement(r.DayButton, { className: u[g.DayButton], style: m?.[g.DayButton], type: "button", day: _, modifiers: C, disabled: !C.focused && C.disabled || void 0, "aria-disabled": C.focused && C.disabled || void 0, tabIndex: Gt(_) ? 0 : -1, "aria-label": Rt(X, C, a.options, a), onClick: tn(_, C), onBlur: rn(_, C), onFocus: nn(_, C), onKeyDown: on(_, C), onMouseEnter: an(_, C), onMouseLeave: sn(_, C) }, F(X, a.options, a)) : !C.hidden && F(_.date, a.options, a));
1963
+ const Ft = la(W, m, t.modifiersStyles), jt = Ko(W, i, t.modifiersClassNames), At = !qe && !W.hidden ? pt(V, W, r.options, r) : void 0;
1964
+ return c.createElement(n.Day, { key: `${_.isoDate}_${_.displayMonthId}`, day: _, modifiers: W, className: jt.join(" "), style: Ft, role: "gridcell", "aria-selected": W.selected || void 0, "aria-label": At, "data-day": _.isoDate, "data-month": _.outside ? _.dateMonthId : void 0, "data-selected": W.selected || void 0, "data-disabled": W.disabled || void 0, "data-hidden": W.hidden || void 0, "data-outside": _.outside || void 0, "data-focused": W.focused || void 0, "data-today": W.today || void 0 }, !W.hidden && qe ? c.createElement(n.DayButton, { className: i[p.DayButton], style: m?.[p.DayButton], type: "button", day: _, modifiers: W, disabled: !W.focused && W.disabled || void 0, "aria-disabled": W.focused && W.disabled || void 0, tabIndex: ht(_) ? 0 : -1, "aria-label": mt(V, W, r.options, r), onClick: Ct(_, W), onBlur: Wt(_, W), onFocus: Ot(_, W), onKeyDown: St(_, W), onMouseEnter: Nt(_, W), onMouseLeave: Tt(_, W) }, P(V, r.options, r)) : !W.hidden && P(_.date, r.options, r));
2943
1965
  })
2944
1966
  )))
2945
1967
  )
2946
1968
  ))
2947
1969
  ),
2948
- t.footer && f.createElement(r.Footer, { className: u[g.Footer], style: m?.[g.Footer], role: "status", "aria-live": "polite" }, t.footer)
1970
+ t.footer && c.createElement(n.Footer, { className: i[p.Footer], style: m?.[p.Footer], role: "status", "aria-live": "polite" }, t.footer)
2949
1971
  )
2950
1972
  );
2951
1973
  }
2952
- function Ja({
1974
+ function hr({
2953
1975
  className: e,
2954
1976
  classNames: t,
2955
- showOutsideDays: n = !0,
2956
- captionLayout: r = "label",
2957
- buttonVariant: o = "ghost",
2958
- formatters: s,
2959
- components: a,
2960
- ...i
1977
+ showOutsideDays: o = !0,
1978
+ captionLayout: n = "label",
1979
+ buttonVariant: a = "ghost",
1980
+ formatters: l,
1981
+ components: r,
1982
+ ...s
2961
1983
  }) {
2962
- const u = Xe();
1984
+ const i = Fe();
2963
1985
  return /* @__PURE__ */ N.jsx(
2964
- Ea,
1986
+ Va,
2965
1987
  {
2966
- showOutsideDays: n,
1988
+ showOutsideDays: o,
2967
1989
  className: y(
2968
1990
  "bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
2969
1991
  String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
2970
1992
  String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
2971
1993
  e
2972
1994
  ),
2973
- captionLayout: r,
1995
+ captionLayout: n,
2974
1996
  formatters: {
2975
1997
  formatMonthDropdown: (d) => d.toLocaleString("default", { month: "short" }),
2976
- ...s
1998
+ ...l
2977
1999
  },
2978
2000
  classNames: {
2979
- root: y("w-fit", u.root),
2001
+ root: y("w-fit", i.root),
2980
2002
  months: y(
2981
2003
  "relative flex flex-col gap-4 md:flex-row",
2982
- u.months
2004
+ i.months
2983
2005
  ),
2984
- month: y("flex w-full flex-col gap-4", u.month),
2006
+ month: y("flex w-full flex-col gap-4", i.month),
2985
2007
  nav: y(
2986
2008
  "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
2987
- u.nav
2009
+ i.nav
2988
2010
  ),
2989
2011
  button_previous: y(
2990
- nt({ variant: o }),
2012
+ $e({ variant: a }),
2991
2013
  "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
2992
- u.button_previous
2014
+ i.button_previous
2993
2015
  ),
2994
2016
  button_next: y(
2995
- nt({ variant: o }),
2017
+ $e({ variant: a }),
2996
2018
  "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
2997
- u.button_next
2019
+ i.button_next
2998
2020
  ),
2999
2021
  month_caption: y(
3000
2022
  "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",
3001
- u.month_caption
2023
+ i.month_caption
3002
2024
  ),
3003
2025
  dropdowns: y(
3004
2026
  "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",
3005
- u.dropdowns
2027
+ i.dropdowns
3006
2028
  ),
3007
2029
  dropdown_root: y(
3008
2030
  "has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",
3009
- u.dropdown_root
2031
+ i.dropdown_root
3010
2032
  ),
3011
2033
  dropdown: y(
3012
2034
  "bg-popover absolute inset-0 opacity-0",
3013
- u.dropdown
2035
+ i.dropdown
3014
2036
  ),
3015
2037
  caption_label: y(
3016
2038
  "select-none font-medium",
3017
- r === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",
3018
- u.caption_label
2039
+ n === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",
2040
+ i.caption_label
3019
2041
  ),
3020
2042
  table: "w-full border-collapse",
3021
- weekdays: y("flex", u.weekdays),
2043
+ weekdays: y("flex", i.weekdays),
3022
2044
  weekday: y(
3023
2045
  "text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",
3024
- u.weekday
2046
+ i.weekday
3025
2047
  ),
3026
- week: y("mt-2 flex w-full", u.week),
2048
+ week: y("mt-2 flex w-full", i.week),
3027
2049
  week_number_header: y(
3028
2050
  "w-[--cell-size] select-none",
3029
- u.week_number_header
2051
+ i.week_number_header
3030
2052
  ),
3031
2053
  week_number: y(
3032
2054
  "text-muted-foreground select-none text-[0.8rem]",
3033
- u.week_number
2055
+ i.week_number
3034
2056
  ),
3035
2057
  day: y(
3036
2058
  "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",
3037
- u.day
2059
+ i.day
3038
2060
  ),
3039
2061
  range_start: y(
3040
2062
  "bg-accent rounded-l-md",
3041
- u.range_start
2063
+ i.range_start
3042
2064
  ),
3043
- range_middle: y("rounded-none", u.range_middle),
3044
- range_end: y("bg-accent rounded-r-md", u.range_end),
2065
+ range_middle: y("rounded-none", i.range_middle),
2066
+ range_end: y("bg-accent rounded-r-md", i.range_end),
3045
2067
  today: y(
3046
2068
  "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
3047
- u.today
2069
+ i.today
3048
2070
  ),
3049
2071
  outside: y(
3050
2072
  "text-muted-foreground aria-selected:text-muted-foreground",
3051
- u.outside
2073
+ i.outside
3052
2074
  ),
3053
2075
  disabled: y(
3054
2076
  "text-muted-foreground opacity-50",
3055
- u.disabled
2077
+ i.disabled
3056
2078
  ),
3057
- hidden: y("invisible", u.hidden),
2079
+ hidden: y("invisible", i.hidden),
3058
2080
  ...t
3059
2081
  },
3060
2082
  components: {
3061
- Root: ({ className: d, rootRef: l, ...c }) => /* @__PURE__ */ N.jsx(
2083
+ Root: ({ className: d, rootRef: f, ...u }) => /* @__PURE__ */ N.jsx(
3062
2084
  "div",
3063
2085
  {
3064
2086
  "data-slot": "calendar",
3065
- ref: l,
2087
+ ref: f,
3066
2088
  className: y(d),
3067
- ...c
2089
+ ...u
3068
2090
  }
3069
2091
  ),
3070
- Chevron: ({ className: d, orientation: l, ...c }) => l === "left" ? /* @__PURE__ */ N.jsx(Nn, { className: y("size-4", d), ...c }) : l === "right" ? /* @__PURE__ */ N.jsx(
3071
- Cn,
2092
+ Chevron: ({ className: d, orientation: f, ...u }) => f === "left" ? /* @__PURE__ */ N.jsx(_n, { className: y("size-4", d), ...u }) : f === "right" ? /* @__PURE__ */ N.jsx(
2093
+ Nn,
3072
2094
  {
3073
2095
  className: y("size-4", d),
3074
- ...c
2096
+ ...u
3075
2097
  }
3076
- ) : /* @__PURE__ */ N.jsx(bn, { className: y("size-4", d), ...c }),
3077
- DayButton: Pa,
3078
- WeekNumber: ({ children: d, ...l }) => /* @__PURE__ */ N.jsx("td", { ...l, children: /* @__PURE__ */ N.jsx("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children: d }) }),
3079
- ...a
2098
+ ) : /* @__PURE__ */ N.jsx(Ht, { className: y("size-4", d), ...u }),
2099
+ DayButton: Za,
2100
+ WeekNumber: ({ children: d, ...f }) => /* @__PURE__ */ N.jsx("td", { ...f, children: /* @__PURE__ */ N.jsx("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children: d }) }),
2101
+ ...r
3080
2102
  },
3081
- ...i
2103
+ ...s
3082
2104
  }
3083
2105
  );
3084
2106
  }
3085
- function Pa({
2107
+ function Za({
3086
2108
  className: e,
3087
2109
  day: t,
3088
- modifiers: n,
3089
- ...r
2110
+ modifiers: o,
2111
+ ...n
3090
2112
  }) {
3091
- const o = Xe(), s = Se.useRef(null);
3092
- return Se.useEffect(() => {
3093
- n.focused && s.current?.focus();
3094
- }, [n.focused]), /* @__PURE__ */ N.jsx(
3095
- bt,
2113
+ const a = Fe(), l = pe.useRef(null);
2114
+ return pe.useEffect(() => {
2115
+ o.focused && l.current?.focus();
2116
+ }, [o.focused]), /* @__PURE__ */ N.jsx(
2117
+ et,
3096
2118
  {
3097
- ref: s,
2119
+ ref: l,
3098
2120
  variant: "ghost",
3099
2121
  size: "icon",
3100
2122
  "data-day": t.date.toLocaleDateString(),
3101
- "data-selected-single": n.selected && !n.range_start && !n.range_end && !n.range_middle,
3102
- "data-range-start": n.range_start,
3103
- "data-range-end": n.range_end,
3104
- "data-range-middle": n.range_middle,
2123
+ "data-selected-single": o.selected && !o.range_start && !o.range_end && !o.range_middle,
2124
+ "data-range-start": o.range_start,
2125
+ "data-range-end": o.range_end,
2126
+ "data-range-middle": o.range_middle,
3105
2127
  className: y(
3106
2128
  "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
3107
- o.day,
2129
+ a.day,
3108
2130
  e
3109
2131
  ),
3110
- ...r
2132
+ ...n
3111
2133
  }
3112
2134
  );
3113
2135
  }
3114
- function es({ className: e, ...t }) {
2136
+ function mr({ className: e, ...t }) {
3115
2137
  return /* @__PURE__ */ N.jsx(
3116
2138
  "div",
3117
2139
  {
@@ -3135,7 +2157,7 @@ function es({ className: e, ...t }) {
3135
2157
  }
3136
2158
  );
3137
2159
  }
3138
- const Fa = be(
2160
+ const Ua = le(
3139
2161
  "text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
3140
2162
  {
3141
2163
  variants: {
@@ -3151,10 +2173,10 @@ const Fa = be(
3151
2173
  }
3152
2174
  }
3153
2175
  );
3154
- function ts({
2176
+ function pr({
3155
2177
  className: e,
3156
2178
  align: t = "inline-start",
3157
- ...n
2179
+ ...o
3158
2180
  }) {
3159
2181
  return /* @__PURE__ */ N.jsx(
3160
2182
  "div",
@@ -3162,15 +2184,15 @@ function ts({
3162
2184
  role: "group",
3163
2185
  "data-slot": "input-group-addon",
3164
2186
  "data-align": t,
3165
- className: y(Fa({ align: t }), e),
3166
- onClick: (r) => {
3167
- r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
2187
+ className: y(Ua({ align: t }), e),
2188
+ onClick: (n) => {
2189
+ n.target.closest("button") || n.currentTarget.parentElement?.querySelector("input")?.focus();
3168
2190
  },
3169
- ...n
2191
+ ...o
3170
2192
  }
3171
2193
  );
3172
2194
  }
3173
- const Ba = be(
2195
+ const Ka = le(
3174
2196
  "flex items-center gap-2 text-sm shadow-none",
3175
2197
  {
3176
2198
  variants: {
@@ -3186,25 +2208,25 @@ const Ba = be(
3186
2208
  }
3187
2209
  }
3188
2210
  );
3189
- function ns({
2211
+ function yr({
3190
2212
  className: e,
3191
2213
  type: t = "button",
3192
- variant: n = "ghost",
3193
- size: r = "xs",
3194
- ...o
2214
+ variant: o = "ghost",
2215
+ size: n = "xs",
2216
+ ...a
3195
2217
  }) {
3196
2218
  return /* @__PURE__ */ N.jsx(
3197
- bt,
2219
+ et,
3198
2220
  {
3199
2221
  type: t,
3200
- "data-size": r,
3201
- variant: n,
3202
- className: y(Ba({ size: r }), e),
3203
- ...o
2222
+ "data-size": n,
2223
+ variant: o,
2224
+ className: y(Ka({ size: n }), e),
2225
+ ...a
3204
2226
  }
3205
2227
  );
3206
2228
  }
3207
- function rs({ className: e, ...t }) {
2229
+ function gr({ className: e, ...t }) {
3208
2230
  return /* @__PURE__ */ N.jsx(
3209
2231
  "span",
3210
2232
  {
@@ -3216,12 +2238,12 @@ function rs({ className: e, ...t }) {
3216
2238
  }
3217
2239
  );
3218
2240
  }
3219
- function os({
2241
+ function br({
3220
2242
  className: e,
3221
2243
  ...t
3222
2244
  }) {
3223
2245
  return /* @__PURE__ */ N.jsx(
3224
- wn,
2246
+ qt,
3225
2247
  {
3226
2248
  "data-slot": "input-group-control",
3227
2249
  className: y(
@@ -3232,12 +2254,12 @@ function os({
3232
2254
  }
3233
2255
  );
3234
2256
  }
3235
- function as({
2257
+ function vr({
3236
2258
  className: e,
3237
2259
  ...t
3238
2260
  }) {
3239
2261
  return /* @__PURE__ */ N.jsx(
3240
- vn,
2262
+ Gt,
3241
2263
  {
3242
2264
  "data-slot": "input-group-control",
3243
2265
  className: y(
@@ -3248,7 +2270,7 @@ function as({
3248
2270
  }
3249
2271
  );
3250
2272
  }
3251
- const Ia = be(
2273
+ const La = le(
3252
2274
  "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
3253
2275
  {
3254
2276
  variants: {
@@ -3262,10 +2284,10 @@ const Ia = be(
3262
2284
  }
3263
2285
  }
3264
2286
  );
3265
- function ss({
2287
+ function kr({
3266
2288
  className: e,
3267
2289
  orientation: t,
3268
- ...n
2290
+ ...o
3269
2291
  }) {
3270
2292
  return /* @__PURE__ */ N.jsx(
3271
2293
  "div",
@@ -3273,35 +2295,35 @@ function ss({
3273
2295
  role: "group",
3274
2296
  "data-slot": "button-group",
3275
2297
  "data-orientation": t,
3276
- className: y(Ia({ orientation: t }), e),
3277
- ...n
2298
+ className: y(La({ orientation: t }), e),
2299
+ ...o
3278
2300
  }
3279
2301
  );
3280
2302
  }
3281
- function is({
2303
+ function wr({
3282
2304
  className: e,
3283
2305
  asChild: t = !1,
3284
- ...n
2306
+ ...o
3285
2307
  }) {
3286
- const r = t ? kn : "div";
2308
+ const n = t ? $t : "div";
3287
2309
  return /* @__PURE__ */ N.jsx(
3288
- r,
2310
+ n,
3289
2311
  {
3290
2312
  className: y(
3291
2313
  "bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
3292
2314
  e
3293
2315
  ),
3294
- ...n
2316
+ ...o
3295
2317
  }
3296
2318
  );
3297
2319
  }
3298
- function us({
2320
+ function Mr({
3299
2321
  className: e,
3300
2322
  orientation: t = "vertical",
3301
- ...n
2323
+ ...o
3302
2324
  }) {
3303
2325
  return /* @__PURE__ */ N.jsx(
3304
- pt,
2326
+ Qe,
3305
2327
  {
3306
2328
  "data-slot": "button-group-separator",
3307
2329
  orientation: t,
@@ -3309,11 +2331,11 @@ function us({
3309
2331
  "bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
3310
2332
  e
3311
2333
  ),
3312
- ...n
2334
+ ...o
3313
2335
  }
3314
2336
  );
3315
2337
  }
3316
- const ja = be(
2338
+ const Ja = le(
3317
2339
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
3318
2340
  {
3319
2341
  variants: {
@@ -3329,123 +2351,123 @@ const ja = be(
3329
2351
  }
3330
2352
  }
3331
2353
  );
3332
- function cs({ className: e, variant: t, ...n }) {
3333
- return /* @__PURE__ */ N.jsx("div", { className: y(ja({ variant: t }), e), ...n });
2354
+ function Dr({ className: e, variant: t, ...o }) {
2355
+ return /* @__PURE__ */ N.jsx("div", { className: y(Ja({ variant: t }), e), ...o });
3334
2356
  }
3335
2357
  export {
3336
- fs as Accordion,
3337
- hs as AccordionContent,
3338
- ms as AccordionItem,
3339
- gs as AccordionTrigger,
3340
- cs as Badge,
3341
- bt as Button,
3342
- ss as ButtonGroup,
3343
- us as ButtonGroupSeparator,
3344
- is as ButtonGroupText,
3345
- Ja as Calendar,
3346
- Pa as CalendarDayButton,
3347
- Fi as Card,
3348
- Bi as CardAction,
3349
- Ii as CardContent,
3350
- ji as CardDescription,
3351
- Hi as CardFooter,
3352
- Ai as CardHeader,
3353
- zi as CardTitle,
3354
- ys as Checkbox,
3355
- ps as Command,
3356
- bs as CommandDialog,
3357
- ws as CommandEmpty,
3358
- vs as CommandGroup,
3359
- ks as CommandInput,
3360
- Ms as CommandItem,
3361
- Ds as CommandList,
3362
- xs as CommandSeparator,
3363
- Os as CommandShortcut,
3364
- Ss as Dialog,
3365
- Cs as DialogClose,
3366
- Ws as DialogContent,
3367
- Ns as DialogDescription,
3368
- Ts as DialogFooter,
3369
- _s as DialogHeader,
3370
- Ys as DialogOverlay,
3371
- Es as DialogPortal,
3372
- Ps as DialogTitle,
3373
- Fs as DialogTrigger,
3374
- Bs as Drawer,
3375
- Is as DrawerClose,
3376
- js as DrawerContent,
3377
- Hs as DrawerDescription,
3378
- As as DrawerFooter,
3379
- zs as DrawerHeader,
3380
- qs as DrawerOverlay,
3381
- Gs as DrawerPortal,
3382
- Rs as DrawerTitle,
3383
- $s as DrawerTrigger,
3384
- Va as Field,
3385
- La as FieldContent,
3386
- Ua as FieldDescription,
3387
- Ka as FieldError,
3388
- $a as FieldGroup,
3389
- Qa as FieldLabel,
3390
- Ra as FieldLegend,
3391
- Za as FieldSeparator,
3392
- Ga as FieldSet,
3393
- Xa as FieldTitle,
3394
- Vs as HoverCard,
3395
- Ls as HoverCardContent,
3396
- Qs as HoverCardTrigger,
3397
- wn as Input,
3398
- es as InputGroup,
3399
- ts as InputGroupAddon,
3400
- ns as InputGroupButton,
3401
- os as InputGroupInput,
3402
- rs as InputGroupText,
3403
- as as InputGroupTextarea,
3404
- pn as Label,
3405
- Xs as Popover,
3406
- Us as PopoverAnchor,
3407
- Zs as PopoverContent,
3408
- Ks as PopoverTrigger,
3409
- Js as Progress,
3410
- ei as Select,
3411
- ti as SelectContent,
3412
- ni as SelectGroup,
3413
- ri as SelectItem,
3414
- oi as SelectLabel,
3415
- ai as SelectScrollDownButton,
3416
- si as SelectScrollUpButton,
3417
- ii as SelectSeparator,
3418
- ui as SelectTrigger,
3419
- ci as SelectValue,
3420
- pt as Separator,
3421
- di as Sheet,
3422
- li as SheetClose,
3423
- fi as SheetContent,
3424
- hi as SheetDescription,
3425
- mi as SheetFooter,
3426
- gi as SheetHeader,
3427
- yi as SheetTitle,
3428
- pi as SheetTrigger,
3429
- qa as Skeleton,
3430
- bi as Table,
3431
- wi as TableBody,
3432
- vi as TableCaption,
3433
- ki as TableCell,
3434
- Mi as TableFooter,
3435
- Di as TableHead,
3436
- xi as TableHeader,
3437
- Oi as TableRow,
3438
- Si as Tabs,
3439
- Ci as TabsContent,
3440
- Wi as TabsList,
3441
- Ni as TabsTrigger,
3442
- vn as Textarea,
3443
- Ti as Tooltip,
3444
- _i as TooltipContent,
3445
- Yi as TooltipProvider,
3446
- Ei as TooltipTrigger,
3447
- ja as badgeVariants,
3448
- Ia as buttonGroupVariants,
2358
+ Or as Accordion,
2359
+ Wr as AccordionContent,
2360
+ Sr as AccordionItem,
2361
+ Nr as AccordionTrigger,
2362
+ Dr as Badge,
2363
+ et as Button,
2364
+ kr as ButtonGroup,
2365
+ Mr as ButtonGroupSeparator,
2366
+ wr as ButtonGroupText,
2367
+ hr as Calendar,
2368
+ Za as CalendarDayButton,
2369
+ Ks as Card,
2370
+ Ls as CardAction,
2371
+ Js as CardContent,
2372
+ Xs as CardDescription,
2373
+ Qs as CardFooter,
2374
+ ei as CardHeader,
2375
+ ti as CardTitle,
2376
+ Tr as Checkbox,
2377
+ _r as Command,
2378
+ Er as CommandDialog,
2379
+ Pr as CommandEmpty,
2380
+ Br as CommandGroup,
2381
+ Ir as CommandInput,
2382
+ Yr as CommandItem,
2383
+ Fr as CommandList,
2384
+ jr as CommandSeparator,
2385
+ Ar as CommandShortcut,
2386
+ zr as Dialog,
2387
+ Hr as DialogClose,
2388
+ qr as DialogContent,
2389
+ Gr as DialogDescription,
2390
+ $r as DialogFooter,
2391
+ Rr as DialogHeader,
2392
+ Vr as DialogOverlay,
2393
+ Zr as DialogPortal,
2394
+ Ur as DialogTitle,
2395
+ Kr as DialogTrigger,
2396
+ Lr as Drawer,
2397
+ Jr as DrawerClose,
2398
+ Xr as DrawerContent,
2399
+ Qr as DrawerDescription,
2400
+ es as DrawerFooter,
2401
+ ts as DrawerHeader,
2402
+ ns as DrawerOverlay,
2403
+ os as DrawerPortal,
2404
+ as as DrawerTitle,
2405
+ rs as DrawerTrigger,
2406
+ sr as Field,
2407
+ ir as FieldContent,
2408
+ ur as FieldDescription,
2409
+ fr as FieldError,
2410
+ rr as FieldGroup,
2411
+ lr as FieldLabel,
2412
+ ar as FieldLegend,
2413
+ cr as FieldSeparator,
2414
+ or as FieldSet,
2415
+ dr as FieldTitle,
2416
+ ss as HoverCard,
2417
+ is as HoverCardContent,
2418
+ ls as HoverCardTrigger,
2419
+ qt as Input,
2420
+ mr as InputGroup,
2421
+ pr as InputGroupAddon,
2422
+ yr as InputGroupButton,
2423
+ br as InputGroupInput,
2424
+ gr as InputGroupText,
2425
+ vr as InputGroupTextarea,
2426
+ zt as Label,
2427
+ ds as Popover,
2428
+ us as PopoverAnchor,
2429
+ cs as PopoverContent,
2430
+ fs as PopoverTrigger,
2431
+ hs as Progress,
2432
+ ms as Select,
2433
+ ps as SelectContent,
2434
+ ys as SelectGroup,
2435
+ gs as SelectItem,
2436
+ bs as SelectLabel,
2437
+ vs as SelectScrollDownButton,
2438
+ ks as SelectScrollUpButton,
2439
+ ws as SelectSeparator,
2440
+ Ms as SelectTrigger,
2441
+ Ds as SelectValue,
2442
+ Qe as Separator,
2443
+ xs as Sheet,
2444
+ Cs as SheetClose,
2445
+ Os as SheetContent,
2446
+ Ws as SheetDescription,
2447
+ Ss as SheetFooter,
2448
+ Ns as SheetHeader,
2449
+ Ts as SheetTitle,
2450
+ _s as SheetTrigger,
2451
+ nr as Skeleton,
2452
+ Es as Table,
2453
+ Ps as TableBody,
2454
+ Bs as TableCaption,
2455
+ Is as TableCell,
2456
+ Ys as TableFooter,
2457
+ Fs as TableHead,
2458
+ js as TableHeader,
2459
+ As as TableRow,
2460
+ zs as Tabs,
2461
+ Hs as TabsContent,
2462
+ qs as TabsList,
2463
+ Gs as TabsTrigger,
2464
+ Gt as Textarea,
2465
+ $s as Tooltip,
2466
+ Rs as TooltipContent,
2467
+ Vs as TooltipProvider,
2468
+ Zs as TooltipTrigger,
2469
+ Ja as badgeVariants,
2470
+ La as buttonGroupVariants,
3449
2471
  y as cn,
3450
- za as useMediaQuery
2472
+ tr as useMediaQuery
3451
2473
  };