@commercelayer/app-elements 7.7.7 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +1,37 @@
1
1
  "use client";
2
- import { c as z, t as M, m as dr, a as pr, b as me, d as ve, n as ht, e as Be, g as fr, f as Kr, h as Ur, s as ot, i as hr, k as Vr, l as vr, o as mr, p as qr, q as jr, r as Yt, v as $r, w as Gr, x as zr, y as Lt, z as Ae, A as Xr, j as ae, B as G, C as pe, D as be, E as bt, F as xt, G as Dr, H as Et, J as gr, K as Zr, L as Ft, M as Te, N as Jr, O as en, P as tn, Q as st, R as rn, S as nn, I as an, T as on, U as sn, V as ln, W as cn } from "./main-BYGjFWqQ.js";
3
- import * as k from "react";
4
- import v, { useLayoutEffect as yr, cloneElement as wr, createRef as Me, Component as X, useRef as _t, useEffect as At, useCallback as un, createElement as dn, forwardRef as pn, useMemo as fn } from "react";
5
- import * as hn from "react-dom";
6
- import vn from "react-dom";
7
- import { p as mn } from "./parseISO-C0IskGp8.js";
8
- function br(o, n, t) {
9
- return z(o, +M(o) + n);
10
- }
11
- function Dn(o, n, t) {
12
- return br(o, n * dr);
2
+ import { c as z, t as S, m as pr, a as fr, b as me, d as ve, n as vt, e as Be, g as hr, f as Ur, h as Vr, s as ot, i as vr, k as qr, l as mr, o as Dr, p as jr, q as $r, r as Yt, v as Gr, w as zr, x as Xr, y as Lt, z as Ae, A as Zr, j as ae, B as G, C as pe, D as _e, E as _t, F as xt, G as gr, H as Et, J as yr, K as Jr, L as Ft, M as Te, N as en, O as tn, P as rn, Q as st, R as nn, S as an, I as on, T as sn, U as ln, V as cn, W as un } from "./main-Dvwj3-yx.js";
3
+ import * as M from "react";
4
+ import v, { useLayoutEffect as wr, cloneElement as br, createRef as Ce, Component as X, useRef as kt, useEffect as At, useCallback as dn, createElement as pn, forwardRef as fn, useMemo as hn } from "react";
5
+ import * as vn from "react-dom";
6
+ import mn from "react-dom";
7
+ import { p as Dn } from "./parseISO-CgvDJuXY.js";
8
+ function _r(o, n, t) {
9
+ return z(o, +S(o) + n);
10
+ }
11
+ function gn(o, n, t) {
12
+ return _r(o, n * pr);
13
13
  }
14
14
  function Ke(o, n, t) {
15
- const e = M(o, t?.in);
16
- return e.setTime(e.getTime() + n * pr), e;
15
+ const e = S(o, t?.in);
16
+ return e.setTime(e.getTime() + n * fr), e;
17
17
  }
18
18
  function Pt(o, n, t) {
19
19
  return me(o, n * 3, t);
20
20
  }
21
- function gn(o, n, t) {
22
- return br(o, n * 1e3);
21
+ function yn(o, n, t) {
22
+ return _r(o, n * 1e3);
23
23
  }
24
24
  function it(o, n, t) {
25
25
  return ve(o, n * 7, t);
26
26
  }
27
- function ge(o, n, t) {
27
+ function ye(o, n, t) {
28
28
  return me(o, n * 12, t);
29
29
  }
30
30
  function Ht(o, n) {
31
31
  let t, e = n?.in;
32
32
  return o.forEach((r) => {
33
33
  !e && typeof r == "object" && (e = z.bind(null, r));
34
- const a = M(r, e);
34
+ const a = S(r, e);
35
35
  (!t || t < a || isNaN(+a)) && (t = a);
36
36
  }), z(e, t || NaN);
37
37
  }
@@ -39,32 +39,32 @@ function Wt(o, n) {
39
39
  let t, e = n?.in;
40
40
  return o.forEach((r) => {
41
41
  !e && typeof r == "object" && (e = z.bind(null, r));
42
- const a = M(r, e);
42
+ const a = S(r, e);
43
43
  (!t || t > a || isNaN(+a)) && (t = a);
44
44
  }), z(e, t || NaN);
45
45
  }
46
- function we(o, n) {
47
- const t = M(o, n?.in);
46
+ function be(o, n) {
47
+ const t = S(o, n?.in);
48
48
  return Math.trunc(t.getMonth() / 3) + 1;
49
49
  }
50
50
  function lt(o, n, t) {
51
- const [e, r] = ht(
51
+ const [e, r] = vt(
52
52
  t?.in,
53
53
  o,
54
54
  n
55
- ), a = e.getFullYear() - r.getFullYear(), s = we(e) - we(r);
55
+ ), a = e.getFullYear() - r.getFullYear(), s = be(e) - be(r);
56
56
  return a * 4 + s;
57
57
  }
58
58
  function ct(o, n, t) {
59
- const [e, r] = ht(
59
+ const [e, r] = vt(
60
60
  t?.in,
61
61
  o,
62
62
  n
63
63
  );
64
64
  return e.getFullYear() - r.getFullYear();
65
65
  }
66
- function yn(o, n, t) {
67
- const [e, r] = ht(
66
+ function wn(o, n, t) {
67
+ const [e, r] = vt(
68
68
  t?.in,
69
69
  o,
70
70
  n
@@ -79,62 +79,62 @@ function Qt(o, n) {
79
79
  const t = o.getFullYear() - n.getFullYear() || o.getMonth() - n.getMonth() || o.getDate() - n.getDate() || o.getHours() - n.getHours() || o.getMinutes() - n.getMinutes() || o.getSeconds() - n.getSeconds() || o.getMilliseconds() - n.getMilliseconds();
80
80
  return t < 0 ? -1 : t > 0 ? 1 : t;
81
81
  }
82
- function kt(o, n) {
83
- const t = M(o, n?.in), e = t.getMonth(), r = e - e % 3;
82
+ function Mt(o, n) {
83
+ const t = S(o, n?.in), e = t.getMonth(), r = e - e % 3;
84
84
  return t.setMonth(r, 1), t.setHours(0, 0, 0, 0), t;
85
85
  }
86
- function _r(o, n) {
87
- const t = M(o, n?.in);
86
+ function kr(o, n) {
87
+ const t = S(o, n?.in);
88
88
  return t.setDate(1), t.setHours(0, 0, 0, 0), t;
89
89
  }
90
- function kr(o, n) {
91
- const t = M(o, n?.in), e = t.getFullYear();
90
+ function Mr(o, n) {
91
+ const t = S(o, n?.in), e = t.getFullYear();
92
92
  return t.setFullYear(e + 1, 0, 0), t.setHours(23, 59, 59, 999), t;
93
93
  }
94
- function wn(o, n) {
95
- const t = fr(), e = t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, r = M(o, n?.in), a = r.getDay(), s = (a < e ? -7 : 0) + 6 - (a - e);
94
+ function bn(o, n) {
95
+ const t = hr(), e = t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, r = S(o, n?.in), a = r.getDay(), s = (a < e ? -7 : 0) + 6 - (a - e);
96
96
  return r.setDate(r.getDate() + s), r.setHours(23, 59, 59, 999), r;
97
97
  }
98
98
  function Bt(o, n) {
99
- return M(o, n?.in).getDate();
100
- }
101
- function bn(o, n) {
102
- return M(o, n?.in).getDay();
99
+ return S(o, n?.in).getDate();
103
100
  }
104
101
  function _n(o, n) {
105
- const t = M(o, n?.in), e = t.getFullYear(), r = t.getMonth(), a = z(t, 0);
102
+ return S(o, n?.in).getDay();
103
+ }
104
+ function kn(o, n) {
105
+ const t = S(o, n?.in), e = t.getFullYear(), r = t.getMonth(), a = z(t, 0);
106
106
  return a.setFullYear(e, r + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
107
107
  }
108
108
  function se(o, n) {
109
- return M(o, n?.in).getHours();
109
+ return S(o, n?.in).getHours();
110
110
  }
111
- function kn(o, n) {
112
- const t = M(o, n?.in).getDay();
111
+ function Mn(o, n) {
112
+ const t = S(o, n?.in).getDay();
113
113
  return t === 0 ? 7 : t;
114
114
  }
115
115
  function ie(o, n) {
116
- return M(o, n?.in).getMinutes();
116
+ return S(o, n?.in).getMinutes();
117
117
  }
118
118
  function ee(o, n) {
119
- return M(o, n?.in).getMonth();
120
- }
121
- function _e(o) {
122
- return M(o).getSeconds();
119
+ return S(o, n?.in).getMonth();
123
120
  }
124
- function Mt(o) {
125
- return +M(o);
121
+ function ke(o) {
122
+ return S(o).getSeconds();
126
123
  }
127
- function E(o, n) {
128
- return M(o, n?.in).getFullYear();
124
+ function Ct(o) {
125
+ return +S(o);
129
126
  }
130
- function Ce(o, n) {
131
- return +M(o) > +M(n);
127
+ function P(o, n) {
128
+ return S(o, n?.in).getFullYear();
132
129
  }
133
- function Mn(o, n) {
134
- return +M(o) == +M(n);
130
+ function Se(o, n) {
131
+ return +S(o) > +S(n);
135
132
  }
136
133
  function Cn(o, n) {
137
- const t = Sn(n) ? new n(0) : z(n, 0);
134
+ return +S(o) == +S(n);
135
+ }
136
+ function Sn(o, n) {
137
+ const t = xn(n) ? new n(0) : z(n, 0);
138
138
  return t.setFullYear(o.getFullYear(), o.getMonth(), o.getDate()), t.setHours(
139
139
  o.getHours(),
140
140
  o.getMinutes(),
@@ -142,17 +142,17 @@ function Cn(o, n) {
142
142
  o.getMilliseconds()
143
143
  ), t;
144
144
  }
145
- function Sn(o) {
145
+ function xn(o) {
146
146
  return typeof o == "function" && o.prototype?.constructor === o;
147
147
  }
148
- const xn = 10;
149
- class Mr {
148
+ const En = 10;
149
+ class Cr {
150
150
  subPriority = 0;
151
151
  validate(n, t) {
152
152
  return !0;
153
153
  }
154
154
  }
155
- class En extends Mr {
155
+ class Pn extends Cr {
156
156
  constructor(n, t, e, r, a) {
157
157
  super(), this.value = n, this.validateValue = t, this.setValue = e, this.priority = r, a && (this.subPriority = a);
158
158
  }
@@ -163,21 +163,21 @@ class En extends Mr {
163
163
  return this.setValue(n, t, this.value, e);
164
164
  }
165
165
  }
166
- class Pn extends Mr {
167
- priority = xn;
166
+ class Tn extends Cr {
167
+ priority = En;
168
168
  subPriority = -1;
169
169
  constructor(n, t) {
170
170
  super(), this.context = n || ((e) => z(t, e));
171
171
  }
172
172
  set(n, t) {
173
- return t.timestampIsSet ? n : z(n, Cn(n, this.context));
173
+ return t.timestampIsSet ? n : z(n, Sn(n, this.context));
174
174
  }
175
175
  }
176
- class N {
176
+ class Y {
177
177
  run(n, t, e, r) {
178
178
  const a = this.parse(n, t, e, r);
179
179
  return a ? {
180
- setter: new En(
180
+ setter: new Pn(
181
181
  a.value,
182
182
  this.validate,
183
183
  this.set,
@@ -191,7 +191,7 @@ class N {
191
191
  return !0;
192
192
  }
193
193
  }
194
- class Tn extends N {
194
+ class On extends Y {
195
195
  priority = 140;
196
196
  parse(n, t, e) {
197
197
  switch (t) {
@@ -281,14 +281,14 @@ function de(o, n) {
281
281
  };
282
282
  const e = t[1] === "+" ? 1 : -1, r = t[2] ? parseInt(t[2], 10) : 0, a = t[3] ? parseInt(t[3], 10) : 0, s = t[5] ? parseInt(t[5], 10) : 0;
283
283
  return {
284
- value: e * (r * dr + a * pr + s * Kr),
284
+ value: e * (r * pr + a * fr + s * Ur),
285
285
  rest: n.slice(t[0].length)
286
286
  };
287
287
  }
288
- function Cr(o) {
288
+ function Sr(o) {
289
289
  return Q(V.anyDigitsSigned, o);
290
290
  }
291
- function B(o, n) {
291
+ function K(o, n) {
292
292
  switch (o) {
293
293
  case 1:
294
294
  return Q(V.singleDigit, n);
@@ -330,7 +330,7 @@ function Tt(o) {
330
330
  return 0;
331
331
  }
332
332
  }
333
- function Sr(o, n) {
333
+ function xr(o, n) {
334
334
  const t = n > 0, e = t ? n : 1 - n;
335
335
  let r;
336
336
  if (e <= 50)
@@ -341,10 +341,10 @@ function Sr(o, n) {
341
341
  }
342
342
  return t ? r : 1 - r;
343
343
  }
344
- function xr(o) {
344
+ function Er(o) {
345
345
  return o % 400 === 0 || o % 4 === 0 && o % 100 !== 0;
346
346
  }
347
- class On extends N {
347
+ class Nn extends Y {
348
348
  priority = 130;
349
349
  incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
350
350
  parse(n, t, e) {
@@ -354,7 +354,7 @@ class On extends N {
354
354
  });
355
355
  switch (t) {
356
356
  case "y":
357
- return q(B(4, n), r);
357
+ return q(K(4, n), r);
358
358
  case "yo":
359
359
  return q(
360
360
  e.ordinalNumber(n, {
@@ -363,7 +363,7 @@ class On extends N {
363
363
  r
364
364
  );
365
365
  default:
366
- return q(B(t.length, n), r);
366
+ return q(K(t.length, n), r);
367
367
  }
368
368
  }
369
369
  validate(n, t) {
@@ -372,7 +372,7 @@ class On extends N {
372
372
  set(n, t, e) {
373
373
  const r = n.getFullYear();
374
374
  if (e.isTwoDigitYear) {
375
- const s = Sr(
375
+ const s = xr(
376
376
  e.year,
377
377
  r
378
378
  );
@@ -382,7 +382,7 @@ class On extends N {
382
382
  return n.setFullYear(a, 0, 1), n.setHours(0, 0, 0, 0), n;
383
383
  }
384
384
  }
385
- class Nn extends N {
385
+ class Rn extends Y {
386
386
  priority = 130;
387
387
  parse(n, t, e) {
388
388
  const r = (a) => ({
@@ -391,7 +391,7 @@ class Nn extends N {
391
391
  });
392
392
  switch (t) {
393
393
  case "Y":
394
- return q(B(4, n), r);
394
+ return q(K(4, n), r);
395
395
  case "Yo":
396
396
  return q(
397
397
  e.ordinalNumber(n, {
@@ -400,16 +400,16 @@ class Nn extends N {
400
400
  r
401
401
  );
402
402
  default:
403
- return q(B(t.length, n), r);
403
+ return q(K(t.length, n), r);
404
404
  }
405
405
  }
406
406
  validate(n, t) {
407
407
  return t.isTwoDigitYear || t.year > 0;
408
408
  }
409
409
  set(n, t, e, r) {
410
- const a = Ur(n, r);
410
+ const a = Vr(n, r);
411
411
  if (e.isTwoDigitYear) {
412
- const i = Sr(
412
+ const i = xr(
413
413
  e.year,
414
414
  a
415
415
  );
@@ -438,14 +438,14 @@ class Nn extends N {
438
438
  "T"
439
439
  ];
440
440
  }
441
- class Rn extends N {
441
+ class In extends Y {
442
442
  priority = 130;
443
443
  parse(n, t) {
444
444
  return ut(t === "R" ? 4 : t.length, n);
445
445
  }
446
446
  set(n, t, e) {
447
447
  const r = z(n, 0);
448
- return r.setFullYear(e, 0, 4), r.setHours(0, 0, 0, 0), hr(r);
448
+ return r.setFullYear(e, 0, 4), r.setHours(0, 0, 0, 0), vr(r);
449
449
  }
450
450
  incompatibleTokens = [
451
451
  "G",
@@ -465,7 +465,7 @@ class Rn extends N {
465
465
  "T"
466
466
  ];
467
467
  }
468
- class In extends N {
468
+ class Yn extends Y {
469
469
  priority = 130;
470
470
  parse(n, t) {
471
471
  return ut(t === "u" ? 4 : t.length, n);
@@ -475,14 +475,14 @@ class In extends N {
475
475
  }
476
476
  incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
477
477
  }
478
- class Yn extends N {
478
+ class Ln extends Y {
479
479
  priority = 120;
480
480
  parse(n, t, e) {
481
481
  switch (t) {
482
482
  // 1, 2, 3, 4
483
483
  case "Q":
484
484
  case "QQ":
485
- return B(t.length, n);
485
+ return K(t.length, n);
486
486
  // 1st, 2nd, 3rd, 4th
487
487
  case "Qo":
488
488
  return e.ordinalNumber(n, { unit: "quarter" });
@@ -537,14 +537,14 @@ class Yn extends N {
537
537
  "T"
538
538
  ];
539
539
  }
540
- class Ln extends N {
540
+ class Fn extends Y {
541
541
  priority = 120;
542
542
  parse(n, t, e) {
543
543
  switch (t) {
544
544
  // 1, 2, 3, 4
545
545
  case "q":
546
546
  case "qq":
547
- return B(t.length, n);
547
+ return K(t.length, n);
548
548
  // 1st, 2nd, 3rd, 4th
549
549
  case "qo":
550
550
  return e.ordinalNumber(n, { unit: "quarter" });
@@ -599,7 +599,7 @@ class Ln extends N {
599
599
  "T"
600
600
  ];
601
601
  }
602
- class Fn extends N {
602
+ class An extends Y {
603
603
  incompatibleTokens = [
604
604
  "Y",
605
605
  "R",
@@ -627,7 +627,7 @@ class Fn extends N {
627
627
  );
628
628
  // 01, 02, ..., 12
629
629
  case "MM":
630
- return q(B(2, n), r);
630
+ return q(K(2, n), r);
631
631
  // 1st, 2nd, ..., 12th
632
632
  case "Mo":
633
633
  return q(
@@ -662,7 +662,7 @@ class Fn extends N {
662
662
  return n.setMonth(e, 1), n.setHours(0, 0, 0, 0), n;
663
663
  }
664
664
  }
665
- class An extends N {
665
+ class Hn extends Y {
666
666
  priority = 110;
667
667
  parse(n, t, e) {
668
668
  const r = (a) => a - 1;
@@ -675,7 +675,7 @@ class An extends N {
675
675
  );
676
676
  // 01, 02, ..., 12
677
677
  case "LL":
678
- return q(B(2, n), r);
678
+ return q(K(2, n), r);
679
679
  // 1st, 2nd, ..., 12th
680
680
  case "Lo":
681
681
  return q(
@@ -725,11 +725,11 @@ class An extends N {
725
725
  "T"
726
726
  ];
727
727
  }
728
- function Hn(o, n, t) {
729
- const e = M(o, t?.in), r = Vr(e, t) - n;
730
- return e.setDate(e.getDate() - r * 7), M(e, t?.in);
728
+ function Wn(o, n, t) {
729
+ const e = S(o, t?.in), r = qr(e, t) - n;
730
+ return e.setDate(e.getDate() - r * 7), S(e, t?.in);
731
731
  }
732
- class Wn extends N {
732
+ class Qn extends Y {
733
733
  priority = 100;
734
734
  parse(n, t, e) {
735
735
  switch (t) {
@@ -738,14 +738,14 @@ class Wn extends N {
738
738
  case "wo":
739
739
  return e.ordinalNumber(n, { unit: "week" });
740
740
  default:
741
- return B(t.length, n);
741
+ return K(t.length, n);
742
742
  }
743
743
  }
744
744
  validate(n, t) {
745
745
  return t >= 1 && t <= 53;
746
746
  }
747
747
  set(n, t, e, r) {
748
- return ot(Hn(n, e, r), r);
748
+ return ot(Wn(n, e, r), r);
749
749
  }
750
750
  incompatibleTokens = [
751
751
  "y",
@@ -763,11 +763,11 @@ class Wn extends N {
763
763
  "T"
764
764
  ];
765
765
  }
766
- function Qn(o, n, t) {
767
- const e = M(o, t?.in), r = vr(e, t) - n;
766
+ function Bn(o, n, t) {
767
+ const e = S(o, t?.in), r = mr(e, t) - n;
768
768
  return e.setDate(e.getDate() - r * 7), e;
769
769
  }
770
- class Bn extends N {
770
+ class Kn extends Y {
771
771
  priority = 100;
772
772
  parse(n, t, e) {
773
773
  switch (t) {
@@ -776,14 +776,14 @@ class Bn extends N {
776
776
  case "Io":
777
777
  return e.ordinalNumber(n, { unit: "week" });
778
778
  default:
779
- return B(t.length, n);
779
+ return K(t.length, n);
780
780
  }
781
781
  }
782
782
  validate(n, t) {
783
783
  return t >= 1 && t <= 53;
784
784
  }
785
785
  set(n, t, e) {
786
- return hr(Qn(n, e));
786
+ return vr(Bn(n, e));
787
787
  }
788
788
  incompatibleTokens = [
789
789
  "y",
@@ -802,7 +802,7 @@ class Bn extends N {
802
802
  "T"
803
803
  ];
804
804
  }
805
- const Kn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Un = [
805
+ const Un = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Vn = [
806
806
  31,
807
807
  29,
808
808
  31,
@@ -816,7 +816,7 @@ const Kn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Un = [
816
816
  30,
817
817
  31
818
818
  ];
819
- class Vn extends N {
819
+ class qn extends Y {
820
820
  priority = 90;
821
821
  subPriority = 1;
822
822
  parse(n, t, e) {
@@ -826,12 +826,12 @@ class Vn extends N {
826
826
  case "do":
827
827
  return e.ordinalNumber(n, { unit: "date" });
828
828
  default:
829
- return B(t.length, n);
829
+ return K(t.length, n);
830
830
  }
831
831
  }
832
832
  validate(n, t) {
833
- const e = n.getFullYear(), r = xr(e), a = n.getMonth();
834
- return r ? t >= 1 && t <= Un[a] : t >= 1 && t <= Kn[a];
833
+ const e = n.getFullYear(), r = Er(e), a = n.getMonth();
834
+ return r ? t >= 1 && t <= Vn[a] : t >= 1 && t <= Un[a];
835
835
  }
836
836
  set(n, t, e) {
837
837
  return n.setDate(e), n.setHours(0, 0, 0, 0), n;
@@ -851,7 +851,7 @@ class Vn extends N {
851
851
  "T"
852
852
  ];
853
853
  }
854
- class qn extends N {
854
+ class jn extends Y {
855
855
  priority = 90;
856
856
  subpriority = 1;
857
857
  parse(n, t, e) {
@@ -862,12 +862,12 @@ class qn extends N {
862
862
  case "Do":
863
863
  return e.ordinalNumber(n, { unit: "date" });
864
864
  default:
865
- return B(t.length, n);
865
+ return K(t.length, n);
866
866
  }
867
867
  }
868
868
  validate(n, t) {
869
869
  const e = n.getFullYear();
870
- return xr(e) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
870
+ return Er(e) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
871
871
  }
872
872
  set(n, t, e) {
873
873
  return n.setMonth(0, e), n.setHours(0, 0, 0, 0), n;
@@ -891,10 +891,10 @@ class qn extends N {
891
891
  ];
892
892
  }
893
893
  function Ot(o, n, t) {
894
- const e = fr(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? e.weekStartsOn ?? e.locale?.options?.weekStartsOn ?? 0, a = M(o, t?.in), s = a.getDay(), l = (n % 7 + 7) % 7, u = 7 - r, c = n < 0 || n > 6 ? n - (s + u) % 7 : (l + u) % 7 - (s + u) % 7;
894
+ const e = hr(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? e.weekStartsOn ?? e.locale?.options?.weekStartsOn ?? 0, a = S(o, t?.in), s = a.getDay(), l = (n % 7 + 7) % 7, u = 7 - r, c = n < 0 || n > 6 ? n - (s + u) % 7 : (l + u) % 7 - (s + u) % 7;
895
895
  return ve(a, c, t);
896
896
  }
897
- class jn extends N {
897
+ class $n extends Y {
898
898
  priority = 90;
899
899
  parse(n, t, e) {
900
900
  switch (t) {
@@ -930,7 +930,7 @@ class jn extends N {
930
930
  }
931
931
  incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
932
932
  }
933
- class $n extends N {
933
+ class Gn extends Y {
934
934
  priority = 90;
935
935
  parse(n, t, e, r) {
936
936
  const a = (s) => {
@@ -941,7 +941,7 @@ class $n extends N {
941
941
  // 3
942
942
  case "e":
943
943
  case "ee":
944
- return q(B(t.length, n), a);
944
+ return q(K(t.length, n), a);
945
945
  // 3rd
946
946
  case "eo":
947
947
  return q(
@@ -996,7 +996,7 @@ class $n extends N {
996
996
  "T"
997
997
  ];
998
998
  }
999
- class Gn extends N {
999
+ class zn extends Y {
1000
1000
  priority = 90;
1001
1001
  parse(n, t, e, r) {
1002
1002
  const a = (s) => {
@@ -1007,7 +1007,7 @@ class Gn extends N {
1007
1007
  // 3
1008
1008
  case "c":
1009
1009
  case "cc":
1010
- return q(B(t.length, n), a);
1010
+ return q(K(t.length, n), a);
1011
1011
  // 3rd
1012
1012
  case "co":
1013
1013
  return q(
@@ -1062,11 +1062,11 @@ class Gn extends N {
1062
1062
  "T"
1063
1063
  ];
1064
1064
  }
1065
- function zn(o, n, t) {
1066
- const e = M(o, t?.in), r = kn(e, t), a = n - r;
1065
+ function Xn(o, n, t) {
1066
+ const e = S(o, t?.in), r = Mn(e, t), a = n - r;
1067
1067
  return ve(e, a, t);
1068
1068
  }
1069
- class Xn extends N {
1069
+ class Zn extends Y {
1070
1070
  priority = 90;
1071
1071
  parse(n, t, e) {
1072
1072
  const r = (a) => a === 0 ? 7 : a;
@@ -1074,7 +1074,7 @@ class Xn extends N {
1074
1074
  // 2
1075
1075
  case "i":
1076
1076
  case "ii":
1077
- return B(t.length, n);
1077
+ return K(t.length, n);
1078
1078
  // 2nd
1079
1079
  case "io":
1080
1080
  return e.ordinalNumber(n, { unit: "day" });
@@ -1137,7 +1137,7 @@ class Xn extends N {
1137
1137
  return t >= 1 && t <= 7;
1138
1138
  }
1139
1139
  set(n, t, e) {
1140
- return n = zn(n, e), n.setHours(0, 0, 0, 0), n;
1140
+ return n = Xn(n, e), n.setHours(0, 0, 0, 0), n;
1141
1141
  }
1142
1142
  incompatibleTokens = [
1143
1143
  "y",
@@ -1157,7 +1157,7 @@ class Xn extends N {
1157
1157
  "T"
1158
1158
  ];
1159
1159
  }
1160
- class Zn extends N {
1160
+ class Jn extends Y {
1161
1161
  priority = 80;
1162
1162
  parse(n, t, e) {
1163
1163
  switch (t) {
@@ -1194,7 +1194,7 @@ class Zn extends N {
1194
1194
  }
1195
1195
  incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
1196
1196
  }
1197
- class Jn extends N {
1197
+ class ea extends Y {
1198
1198
  priority = 80;
1199
1199
  parse(n, t, e) {
1200
1200
  switch (t) {
@@ -1231,7 +1231,7 @@ class Jn extends N {
1231
1231
  }
1232
1232
  incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
1233
1233
  }
1234
- class ea extends N {
1234
+ class ta extends Y {
1235
1235
  priority = 80;
1236
1236
  parse(n, t, e) {
1237
1237
  switch (t) {
@@ -1268,7 +1268,7 @@ class ea extends N {
1268
1268
  }
1269
1269
  incompatibleTokens = ["a", "b", "t", "T"];
1270
1270
  }
1271
- class ta extends N {
1271
+ class ra extends Y {
1272
1272
  priority = 70;
1273
1273
  parse(n, t, e) {
1274
1274
  switch (t) {
@@ -1277,7 +1277,7 @@ class ta extends N {
1277
1277
  case "ho":
1278
1278
  return e.ordinalNumber(n, { unit: "hour" });
1279
1279
  default:
1280
- return B(t.length, n);
1280
+ return K(t.length, n);
1281
1281
  }
1282
1282
  }
1283
1283
  validate(n, t) {
@@ -1289,7 +1289,7 @@ class ta extends N {
1289
1289
  }
1290
1290
  incompatibleTokens = ["H", "K", "k", "t", "T"];
1291
1291
  }
1292
- class ra extends N {
1292
+ class na extends Y {
1293
1293
  priority = 70;
1294
1294
  parse(n, t, e) {
1295
1295
  switch (t) {
@@ -1298,7 +1298,7 @@ class ra extends N {
1298
1298
  case "Ho":
1299
1299
  return e.ordinalNumber(n, { unit: "hour" });
1300
1300
  default:
1301
- return B(t.length, n);
1301
+ return K(t.length, n);
1302
1302
  }
1303
1303
  }
1304
1304
  validate(n, t) {
@@ -1309,7 +1309,7 @@ class ra extends N {
1309
1309
  }
1310
1310
  incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
1311
1311
  }
1312
- class na extends N {
1312
+ class aa extends Y {
1313
1313
  priority = 70;
1314
1314
  parse(n, t, e) {
1315
1315
  switch (t) {
@@ -1318,7 +1318,7 @@ class na extends N {
1318
1318
  case "Ko":
1319
1319
  return e.ordinalNumber(n, { unit: "hour" });
1320
1320
  default:
1321
- return B(t.length, n);
1321
+ return K(t.length, n);
1322
1322
  }
1323
1323
  }
1324
1324
  validate(n, t) {
@@ -1329,7 +1329,7 @@ class na extends N {
1329
1329
  }
1330
1330
  incompatibleTokens = ["h", "H", "k", "t", "T"];
1331
1331
  }
1332
- class aa extends N {
1332
+ class oa extends Y {
1333
1333
  priority = 70;
1334
1334
  parse(n, t, e) {
1335
1335
  switch (t) {
@@ -1338,7 +1338,7 @@ class aa extends N {
1338
1338
  case "ko":
1339
1339
  return e.ordinalNumber(n, { unit: "hour" });
1340
1340
  default:
1341
- return B(t.length, n);
1341
+ return K(t.length, n);
1342
1342
  }
1343
1343
  }
1344
1344
  validate(n, t) {
@@ -1350,7 +1350,7 @@ class aa extends N {
1350
1350
  }
1351
1351
  incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
1352
1352
  }
1353
- class oa extends N {
1353
+ class sa extends Y {
1354
1354
  priority = 60;
1355
1355
  parse(n, t, e) {
1356
1356
  switch (t) {
@@ -1359,7 +1359,7 @@ class oa extends N {
1359
1359
  case "mo":
1360
1360
  return e.ordinalNumber(n, { unit: "minute" });
1361
1361
  default:
1362
- return B(t.length, n);
1362
+ return K(t.length, n);
1363
1363
  }
1364
1364
  }
1365
1365
  validate(n, t) {
@@ -1370,7 +1370,7 @@ class oa extends N {
1370
1370
  }
1371
1371
  incompatibleTokens = ["t", "T"];
1372
1372
  }
1373
- class sa extends N {
1373
+ class ia extends Y {
1374
1374
  priority = 50;
1375
1375
  parse(n, t, e) {
1376
1376
  switch (t) {
@@ -1379,7 +1379,7 @@ class sa extends N {
1379
1379
  case "so":
1380
1380
  return e.ordinalNumber(n, { unit: "second" });
1381
1381
  default:
1382
- return B(t.length, n);
1382
+ return K(t.length, n);
1383
1383
  }
1384
1384
  }
1385
1385
  validate(n, t) {
@@ -1390,18 +1390,18 @@ class sa extends N {
1390
1390
  }
1391
1391
  incompatibleTokens = ["t", "T"];
1392
1392
  }
1393
- class ia extends N {
1393
+ class la extends Y {
1394
1394
  priority = 30;
1395
1395
  parse(n, t) {
1396
1396
  const e = (r) => Math.trunc(r * Math.pow(10, -t.length + 3));
1397
- return q(B(t.length, n), e);
1397
+ return q(K(t.length, n), e);
1398
1398
  }
1399
1399
  set(n, t, e) {
1400
1400
  return n.setMilliseconds(e), n;
1401
1401
  }
1402
1402
  incompatibleTokens = ["t", "T"];
1403
1403
  }
1404
- class la extends N {
1404
+ class ca extends Y {
1405
1405
  priority = 10;
1406
1406
  parse(n, t) {
1407
1407
  switch (t) {
@@ -1429,12 +1429,12 @@ class la extends N {
1429
1429
  set(n, t, e) {
1430
1430
  return t.timestampIsSet ? n : z(
1431
1431
  n,
1432
- n.getTime() - mr(n) - e
1432
+ n.getTime() - Dr(n) - e
1433
1433
  );
1434
1434
  }
1435
1435
  incompatibleTokens = ["t", "T", "x"];
1436
1436
  }
1437
- class ca extends N {
1437
+ class ua extends Y {
1438
1438
  priority = 10;
1439
1439
  parse(n, t) {
1440
1440
  switch (t) {
@@ -1462,97 +1462,97 @@ class ca extends N {
1462
1462
  set(n, t, e) {
1463
1463
  return t.timestampIsSet ? n : z(
1464
1464
  n,
1465
- n.getTime() - mr(n) - e
1465
+ n.getTime() - Dr(n) - e
1466
1466
  );
1467
1467
  }
1468
1468
  incompatibleTokens = ["t", "T", "X"];
1469
1469
  }
1470
- class ua extends N {
1470
+ class da extends Y {
1471
1471
  priority = 40;
1472
1472
  parse(n) {
1473
- return Cr(n);
1473
+ return Sr(n);
1474
1474
  }
1475
1475
  set(n, t, e) {
1476
1476
  return [z(n, e * 1e3), { timestampIsSet: !0 }];
1477
1477
  }
1478
1478
  incompatibleTokens = "*";
1479
1479
  }
1480
- class da extends N {
1480
+ class pa extends Y {
1481
1481
  priority = 20;
1482
1482
  parse(n) {
1483
- return Cr(n);
1483
+ return Sr(n);
1484
1484
  }
1485
1485
  set(n, t, e) {
1486
1486
  return [z(n, e), { timestampIsSet: !0 }];
1487
1487
  }
1488
1488
  incompatibleTokens = "*";
1489
1489
  }
1490
- const pa = {
1491
- G: new Tn(),
1492
- y: new On(),
1493
- Y: new Nn(),
1494
- R: new Rn(),
1495
- u: new In(),
1496
- Q: new Yn(),
1497
- q: new Ln(),
1498
- M: new Fn(),
1499
- L: new An(),
1500
- w: new Wn(),
1501
- I: new Bn(),
1502
- d: new Vn(),
1503
- D: new qn(),
1504
- E: new jn(),
1505
- e: new $n(),
1506
- c: new Gn(),
1507
- i: new Xn(),
1508
- a: new Zn(),
1509
- b: new Jn(),
1510
- B: new ea(),
1511
- h: new ta(),
1512
- H: new ra(),
1513
- K: new na(),
1514
- k: new aa(),
1515
- m: new oa(),
1516
- s: new sa(),
1517
- S: new ia(),
1518
- X: new la(),
1519
- x: new ca(),
1520
- t: new ua(),
1521
- T: new da()
1522
- }, fa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ha = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, va = /^'([^]*?)'?$/, ma = /''/g, Da = /\S/, ga = /[a-zA-Z]/;
1523
- function ya(o, n, t, e) {
1524
- const r = () => z(e?.in || t, NaN), a = qr(), s = e?.locale ?? a.locale ?? jr, i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, l = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0;
1490
+ const fa = {
1491
+ G: new On(),
1492
+ y: new Nn(),
1493
+ Y: new Rn(),
1494
+ R: new In(),
1495
+ u: new Yn(),
1496
+ Q: new Ln(),
1497
+ q: new Fn(),
1498
+ M: new An(),
1499
+ L: new Hn(),
1500
+ w: new Qn(),
1501
+ I: new Kn(),
1502
+ d: new qn(),
1503
+ D: new jn(),
1504
+ E: new $n(),
1505
+ e: new Gn(),
1506
+ c: new zn(),
1507
+ i: new Zn(),
1508
+ a: new Jn(),
1509
+ b: new ea(),
1510
+ B: new ta(),
1511
+ h: new ra(),
1512
+ H: new na(),
1513
+ K: new aa(),
1514
+ k: new oa(),
1515
+ m: new sa(),
1516
+ s: new ia(),
1517
+ S: new la(),
1518
+ X: new ca(),
1519
+ x: new ua(),
1520
+ t: new da(),
1521
+ T: new pa()
1522
+ }, ha = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, va = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ma = /^'([^]*?)'?$/, Da = /''/g, ga = /\S/, ya = /[a-zA-Z]/;
1523
+ function wa(o, n, t, e) {
1524
+ const r = () => z(e?.in || t, NaN), a = jr(), s = e?.locale ?? a.locale ?? $r, i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, l = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0;
1525
1525
  if (!n)
1526
- return o ? r() : M(t, e?.in);
1526
+ return o ? r() : S(t, e?.in);
1527
1527
  const u = {
1528
1528
  firstWeekContainsDate: i,
1529
1529
  weekStartsOn: l,
1530
1530
  locale: s
1531
- }, c = [new Pn(e?.in, t)], d = n.match(ha).map((h) => {
1532
- const D = h[0];
1533
- if (D in Yt) {
1534
- const w = Yt[D];
1531
+ }, c = [new Tn(e?.in, t)], d = n.match(va).map((h) => {
1532
+ const g = h[0];
1533
+ if (g in Yt) {
1534
+ const w = Yt[g];
1535
1535
  return w(h, s.formatLong);
1536
1536
  }
1537
1537
  return h;
1538
- }).join("").match(fa), p = [];
1538
+ }).join("").match(ha), p = [];
1539
1539
  for (let h of d) {
1540
- const D = h[0], w = pa[D];
1540
+ const g = h[0], w = fa[g];
1541
1541
  if (w) {
1542
1542
  const { incompatibleTokens: b } = w;
1543
1543
  if (Array.isArray(b)) {
1544
- const I = p.find(
1545
- (L) => b.includes(L.token) || L.token === D
1544
+ const R = p.find(
1545
+ (F) => b.includes(F.token) || F.token === g
1546
1546
  );
1547
- if (I)
1547
+ if (R)
1548
1548
  throw new RangeError(
1549
- `The format string mustn't contain \`${I.fullToken}\` and \`${h}\` at the same time`
1549
+ `The format string mustn't contain \`${R.fullToken}\` and \`${h}\` at the same time`
1550
1550
  );
1551
1551
  } else if (w.incompatibleTokens === "*" && p.length > 0)
1552
1552
  throw new RangeError(
1553
1553
  `The format string mustn't contain \`${h}\` and any other token at the same time`
1554
1554
  );
1555
- p.push({ token: D, fullToken: h });
1555
+ p.push({ token: g, fullToken: h });
1556
1556
  const _ = w.run(
1557
1557
  o,
1558
1558
  h,
@@ -1563,100 +1563,100 @@ function ya(o, n, t, e) {
1563
1563
  return r();
1564
1564
  c.push(_.setter), o = _.rest;
1565
1565
  } else {
1566
- if (D.match(ga))
1566
+ if (g.match(ya))
1567
1567
  throw new RangeError(
1568
- "Format string contains an unescaped latin alphabet character `" + D + "`"
1568
+ "Format string contains an unescaped latin alphabet character `" + g + "`"
1569
1569
  );
1570
- if (h === "''" ? h = "'" : D === "'" && (h = wa(h)), o.indexOf(h) === 0)
1570
+ if (h === "''" ? h = "'" : g === "'" && (h = ba(h)), o.indexOf(h) === 0)
1571
1571
  o = o.slice(h.length);
1572
1572
  else
1573
1573
  return r();
1574
1574
  }
1575
1575
  }
1576
- if (o.length > 0 && Da.test(o))
1576
+ if (o.length > 0 && ga.test(o))
1577
1577
  return r();
1578
- const f = c.map((h) => h.priority).sort((h, D) => D - h).filter((h, D, w) => w.indexOf(h) === D).map(
1579
- (h) => c.filter((D) => D.priority === h).sort((D, w) => w.subPriority - D.subPriority)
1578
+ const f = c.map((h) => h.priority).sort((h, g) => g - h).filter((h, g, w) => w.indexOf(h) === g).map(
1579
+ (h) => c.filter((g) => g.priority === h).sort((g, w) => w.subPriority - g.subPriority)
1580
1580
  ).map((h) => h[0]);
1581
- let m = M(t, e?.in);
1581
+ let m = S(t, e?.in);
1582
1582
  if (isNaN(+m)) return r();
1583
- const g = {};
1583
+ const D = {};
1584
1584
  for (const h of f) {
1585
1585
  if (!h.validate(m, u))
1586
1586
  return r();
1587
- const D = h.set(m, g, u);
1588
- Array.isArray(D) ? (m = D[0], Object.assign(g, D[1])) : m = D;
1587
+ const g = h.set(m, D, u);
1588
+ Array.isArray(g) ? (m = g[0], Object.assign(D, g[1])) : m = g;
1589
1589
  }
1590
1590
  return m;
1591
1591
  }
1592
- function wa(o) {
1593
- return o.match(va)[1].replace(ma, "'");
1592
+ function ba(o) {
1593
+ return o.match(ma)[1].replace(Da, "'");
1594
1594
  }
1595
- function ba(o, n, t) {
1596
- const [e, r] = ht(
1595
+ function _a(o, n, t) {
1596
+ const [e, r] = vt(
1597
1597
  t?.in,
1598
1598
  o,
1599
1599
  n
1600
1600
  );
1601
- return +kt(e) == +kt(r);
1601
+ return +Mt(e) == +Mt(r);
1602
1602
  }
1603
1603
  function Ue(o, n, t) {
1604
- const e = +M(o, t?.in), [r, a] = [
1605
- +M(n.start, t?.in),
1606
- +M(n.end, t?.in)
1604
+ const e = +S(o, t?.in), [r, a] = [
1605
+ +S(n.start, t?.in),
1606
+ +S(n.end, t?.in)
1607
1607
  ].sort((s, i) => s - i);
1608
1608
  return e >= r && e <= a;
1609
1609
  }
1610
1610
  function re(o, n, t) {
1611
- const e = M(o, t?.in), r = e.getFullYear(), a = e.getDate(), s = z(o, 0);
1611
+ const e = S(o, t?.in), r = e.getFullYear(), a = e.getDate(), s = z(o, 0);
1612
1612
  s.setFullYear(r, n, 15), s.setHours(0, 0, 0, 0);
1613
- const i = _n(s);
1613
+ const i = kn(s);
1614
1614
  return e.setMonth(n, Math.min(a, i)), e;
1615
1615
  }
1616
1616
  function et(o, n, t) {
1617
- const e = M(o, t?.in);
1617
+ const e = S(o, t?.in);
1618
1618
  return e.setHours(n), e;
1619
1619
  }
1620
1620
  function tt(o, n, t) {
1621
- const e = M(o, t?.in);
1621
+ const e = S(o, t?.in);
1622
1622
  return e.setMinutes(n), e;
1623
1623
  }
1624
1624
  function Re(o, n, t) {
1625
- const e = M(o, t?.in), r = Math.trunc(e.getMonth() / 3) + 1, a = n - r;
1625
+ const e = S(o, t?.in), r = Math.trunc(e.getMonth() / 3) + 1, a = n - r;
1626
1626
  return re(e, e.getMonth() + a * 3);
1627
1627
  }
1628
1628
  function rt(o, n, t) {
1629
- const e = M(o, t?.in);
1629
+ const e = S(o, t?.in);
1630
1630
  return e.setSeconds(n), e;
1631
1631
  }
1632
1632
  function le(o, n, t) {
1633
- const e = M(o, t?.in);
1633
+ const e = S(o, t?.in);
1634
1634
  return isNaN(+e) ? z(o, NaN) : (e.setFullYear(n), e);
1635
1635
  }
1636
- function Er(o, n, t) {
1636
+ function Pr(o, n, t) {
1637
1637
  return Pt(o, -1, t);
1638
1638
  }
1639
1639
  function Kt(o, n, t) {
1640
1640
  return it(o, -1, t);
1641
1641
  }
1642
1642
  function Ye(o, n, t) {
1643
- return ge(o, -n, t);
1643
+ return ye(o, -n, t);
1644
1644
  }
1645
- const _a = {}, He = {};
1646
- function Ee(o, n) {
1645
+ const ka = {}, He = {};
1646
+ function De(o, n) {
1647
1647
  try {
1648
- const e = (_a[o] ||= new Intl.DateTimeFormat("en-US", {
1648
+ const e = (ka[o] ||= new Intl.DateTimeFormat("en-US", {
1649
1649
  timeZone: o,
1650
1650
  timeZoneName: "longOffset"
1651
1651
  }).format)(n).split("GMT")[1];
1652
1652
  return e in He ? He[e] : Ut(e, e.split(":"));
1653
1653
  } catch {
1654
1654
  if (o in He) return He[o];
1655
- const t = o?.match(ka);
1655
+ const t = o?.match(Ma);
1656
1656
  return t ? Ut(o, t.slice(1)) : NaN;
1657
1657
  }
1658
1658
  }
1659
- const ka = /([+-]\d\d):?(\d\d)?/;
1659
+ const Ma = /([+-]\d\d):?(\d\d)?/;
1660
1660
  function Ut(o, n) {
1661
1661
  const t = +(n[0] || 0), e = +(n[1] || 0), r = +(n[2] || 0) / 60;
1662
1662
  return He[o] = t * 60 + e > 0 ? t * 60 + e + r : t * 60 - e - r;
@@ -1664,7 +1664,7 @@ function Ut(o, n) {
1664
1664
  class fe extends Date {
1665
1665
  //#region static
1666
1666
  constructor(...n) {
1667
- super(), n.length > 1 && typeof n[n.length - 1] == "string" && (this.timeZone = n.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Ee(this.timeZone, this)) ? this.setTime(NaN) : n.length ? typeof n[0] == "number" && (n.length === 1 || n.length === 2 && typeof n[1] != "number") ? this.setTime(n[0]) : typeof n[0] == "string" ? this.setTime(+new Date(n[0])) : n[0] instanceof Date ? this.setTime(+n[0]) : (this.setTime(+new Date(...n)), Pr(this), Ct(this)) : this.setTime(Date.now());
1667
+ super(), n.length > 1 && typeof n[n.length - 1] == "string" && (this.timeZone = n.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(De(this.timeZone, this)) ? this.setTime(NaN) : n.length ? typeof n[0] == "number" && (n.length === 1 || n.length === 2 && typeof n[1] != "number") ? this.setTime(n[0]) : typeof n[0] == "string" ? this.setTime(+new Date(n[0])) : n[0] instanceof Date ? this.setTime(+n[0]) : (this.setTime(+new Date(...n)), Tr(this, n)) : this.setTime(Date.now());
1668
1668
  }
1669
1669
  static tz(n, ...t) {
1670
1670
  return t.length ? new fe(...t, n) : new fe(Date.now(), n);
@@ -1675,13 +1675,13 @@ class fe extends Date {
1675
1675
  return new fe(+this, n);
1676
1676
  }
1677
1677
  getTimezoneOffset() {
1678
- const n = -Ee(this.timeZone, this);
1678
+ const n = -De(this.timeZone, this);
1679
1679
  return n > 0 ? Math.floor(n) : Math.ceil(n);
1680
1680
  }
1681
1681
  //#endregion
1682
1682
  //#region time
1683
1683
  setTime(n) {
1684
- return Date.prototype.setTime.apply(this, arguments), Ct(this), +this;
1684
+ return Date.prototype.setTime.apply(this, arguments), dt(this), +this;
1685
1685
  }
1686
1686
  //#endregion
1687
1687
  //#region date-fns integration
@@ -1697,56 +1697,77 @@ Object.getOwnPropertyNames(Date.prototype).forEach((o) => {
1697
1697
  fe.prototype[n] && (o.startsWith("get") ? fe.prototype[o] = function() {
1698
1698
  return this.internal[n]();
1699
1699
  } : (fe.prototype[o] = function() {
1700
- return Date.prototype[n].apply(this.internal, arguments), Ma(this), +this;
1700
+ return Date.prototype[n].apply(this.internal, arguments), Ca(this), +this;
1701
1701
  }, fe.prototype[n] = function() {
1702
- return Date.prototype[n].apply(this, arguments), Ct(this), +this;
1702
+ return Date.prototype[n].apply(this, arguments), dt(this), +this;
1703
1703
  }));
1704
1704
  });
1705
- function Ct(o) {
1706
- o.internal.setTime(+o), o.internal.setUTCSeconds(o.internal.getUTCSeconds() - Math.round(-Ee(o.timeZone, o) * 60));
1707
- }
1708
- function Ma(o) {
1709
- Date.prototype.setFullYear.call(o, o.internal.getUTCFullYear(), o.internal.getUTCMonth(), o.internal.getUTCDate()), Date.prototype.setHours.call(o, o.internal.getUTCHours(), o.internal.getUTCMinutes(), o.internal.getUTCSeconds(), o.internal.getUTCMilliseconds()), Pr(o);
1710
- }
1711
- function Pr(o) {
1712
- const n = Ee(o.timeZone, o), t = n > 0 ? Math.floor(n) : Math.ceil(n), e = /* @__PURE__ */ new Date(+o);
1713
- e.setUTCHours(e.getUTCHours() - 1);
1714
- const r = -(/* @__PURE__ */ new Date(+o)).getTimezoneOffset(), a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), s = r - a, i = Date.prototype.getHours.apply(o) !== o.internal.getUTCHours();
1715
- s && i && o.internal.setUTCMinutes(o.internal.getUTCMinutes() + s);
1716
- const l = r - t;
1717
- l && Date.prototype.setUTCMinutes.call(o, Date.prototype.getUTCMinutes.call(o) + l);
1718
- const u = /* @__PURE__ */ new Date(+o);
1719
- u.setUTCSeconds(0);
1720
- const c = r > 0 ? u.getSeconds() : (u.getSeconds() - 60) % 60, d = Math.round(-(Ee(o.timeZone, o) * 60)) % 60;
1721
- (d || c) && (o.internal.setUTCSeconds(o.internal.getUTCSeconds() + d), Date.prototype.setUTCSeconds.call(o, Date.prototype.getUTCSeconds.call(o) + d + c));
1722
- const p = Ee(o.timeZone, o), f = p > 0 ? Math.floor(p) : Math.ceil(p), g = -(/* @__PURE__ */ new Date(+o)).getTimezoneOffset() - f, h = f !== t, D = g - l;
1723
- if (h && D) {
1724
- Date.prototype.setUTCMinutes.call(o, Date.prototype.getUTCMinutes.call(o) + D);
1725
- const w = Ee(o.timeZone, o), b = w > 0 ? Math.floor(w) : Math.ceil(w), _ = f - b;
1726
- _ && (o.internal.setUTCMinutes(o.internal.getUTCMinutes() + _), Date.prototype.setUTCMinutes.call(o, Date.prototype.getUTCMinutes.call(o) + _));
1705
+ function dt(o) {
1706
+ o.internal.setTime(+o), o.internal.setUTCSeconds(o.internal.getUTCSeconds() - // Round after converting minutes to seconds to avoid fractional offset
1707
+ // precision errors from historical offsets.
1708
+ Math.round(-De(o.timeZone, o) * 60));
1709
+ }
1710
+ function Ca(o) {
1711
+ Date.prototype.setFullYear.call(o, o.internal.getUTCFullYear(), o.internal.getUTCMonth(), o.internal.getUTCDate()), Date.prototype.setHours.call(o, o.internal.getUTCHours(), o.internal.getUTCMinutes(), o.internal.getUTCSeconds(), o.internal.getUTCMilliseconds()), Tr(o);
1712
+ }
1713
+ function Tr(o, n) {
1714
+ const t = Array.isArray(n) ? Sa(n) : +o.internal, e = De(o.timeZone, o), r = e > 0 ? Math.floor(e) : Math.ceil(e), a = /* @__PURE__ */ new Date(+o);
1715
+ a.setUTCHours(a.getUTCHours() - 1);
1716
+ const s = -(/* @__PURE__ */ new Date(+o)).getTimezoneOffset(), i = -(/* @__PURE__ */ new Date(+a)).getTimezoneOffset(), l = s - i;
1717
+ let u = s;
1718
+ if (l && s !== r) {
1719
+ const x = Date.prototype.getHours.apply(o), A = Array.isArray(n) ? n[3] || 0 : o.internal.getUTCHours();
1720
+ if (x !== A) {
1721
+ const I = /* @__PURE__ */ new Date(+o), C = s - r;
1722
+ C && I.setUTCMinutes(I.getUTCMinutes() + C);
1723
+ const O = De(o.timeZone, I);
1724
+ (O > 0 ? Math.floor(O) : Math.ceil(O)) === r && (u = i);
1725
+ }
1727
1726
  }
1727
+ const c = u - r;
1728
+ c && Date.prototype.setUTCMinutes.call(o, Date.prototype.getUTCMinutes.call(o) + c);
1729
+ const d = /* @__PURE__ */ new Date(+o);
1730
+ d.setUTCSeconds(0);
1731
+ const p = s > 0 ? d.getSeconds() : (d.getSeconds() - 60) % 60, f = Math.round(-(De(o.timeZone, o) * 60)) % 60;
1732
+ (f || p) && Date.prototype.setUTCSeconds.call(o, Date.prototype.getUTCSeconds.call(o) + f + p);
1733
+ const m = De(o.timeZone, o), D = m > 0 ? Math.floor(m) : Math.ceil(m), g = -(/* @__PURE__ */ new Date(+o)).getTimezoneOffset() - D, w = D !== r, b = g - c, _ = D - r, R = t - D * 60 * 1e3, F = _ > 0 && qt(o) - t === _ * 60 * 1e3 && qt(o, R) !== t;
1734
+ if (w && b && !F) {
1735
+ Date.prototype.setUTCMinutes.call(o, Date.prototype.getUTCMinutes.call(o) + b);
1736
+ const x = De(o.timeZone, o), A = x > 0 ? Math.floor(x) : Math.ceil(x), I = D - A;
1737
+ I && b < 0 && Date.prototype.setUTCMinutes.call(o, Date.prototype.getUTCMinutes.call(o) + I);
1738
+ }
1739
+ dt(o);
1740
+ const k = (n ? t : t + f * 1e3) - +o.internal;
1741
+ k && Math.abs(k) < 1800 * 1e3 && (Date.prototype.setTime.call(o, +o + k), dt(o));
1742
+ }
1743
+ function Sa(o) {
1744
+ return Date.UTC(o[0], o.length > 1 ? o[1] : 0, o.length > 2 ? o[2] : 1, ...o.slice(3));
1728
1745
  }
1729
- var Ca = typeof document < "u", Sa = function() {
1730
- }, dt = Ca ? yr : Sa;
1731
- const xa = {
1732
- ...k
1733
- }, Ea = xa.useInsertionEffect, Pa = Ea || ((o) => o());
1734
- function Ta(o) {
1735
- const n = k.useRef(() => {
1746
+ function qt(o, n) {
1747
+ const t = new Date(n ?? +o);
1748
+ return t.setUTCSeconds(t.getUTCSeconds() - Math.round(-De(o.timeZone, t) * 60)), +t;
1749
+ }
1750
+ var xa = typeof document < "u", Ea = function() {
1751
+ }, pt = xa ? wr : Ea;
1752
+ const Pa = {
1753
+ ...M
1754
+ }, Ta = Pa.useInsertionEffect, Oa = Ta || ((o) => o());
1755
+ function Na(o) {
1756
+ const n = M.useRef(() => {
1736
1757
  if (process.env.NODE_ENV !== "production")
1737
1758
  throw new Error("Cannot call an event handler while rendering.");
1738
1759
  });
1739
- return Pa(() => {
1760
+ return Oa(() => {
1740
1761
  n.current = o;
1741
- }), k.useCallback(function() {
1762
+ }), M.useCallback(function() {
1742
1763
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
1743
1764
  e[r] = arguments[r];
1744
1765
  return n.current == null ? void 0 : n.current(...e);
1745
1766
  }, []);
1746
1767
  }
1747
- var Oa = typeof document < "u", Na = function() {
1748
- }, nt = Oa ? yr : Na;
1749
- function pt(o, n) {
1768
+ var Ra = typeof document < "u", Ia = function() {
1769
+ }, nt = Ra ? wr : Ia;
1770
+ function ft(o, n) {
1750
1771
  if (o === n)
1751
1772
  return !0;
1752
1773
  if (typeof o != typeof n)
@@ -1758,7 +1779,7 @@ function pt(o, n) {
1758
1779
  if (Array.isArray(o)) {
1759
1780
  if (t = o.length, t !== n.length) return !1;
1760
1781
  for (e = t; e-- !== 0; )
1761
- if (!pt(o[e], n[e]))
1782
+ if (!ft(o[e], n[e]))
1762
1783
  return !1;
1763
1784
  return !0;
1764
1785
  }
@@ -1769,27 +1790,27 @@ function pt(o, n) {
1769
1790
  return !1;
1770
1791
  for (e = t; e-- !== 0; ) {
1771
1792
  const a = r[e];
1772
- if (!(a === "_owner" && o.$$typeof) && !pt(o[a], n[a]))
1793
+ if (!(a === "_owner" && o.$$typeof) && !ft(o[a], n[a]))
1773
1794
  return !1;
1774
1795
  }
1775
1796
  return !0;
1776
1797
  }
1777
1798
  return o !== o && n !== n;
1778
1799
  }
1779
- function Tr(o) {
1800
+ function Or(o) {
1780
1801
  return typeof window > "u" ? 1 : (o.ownerDocument.defaultView || window).devicePixelRatio || 1;
1781
1802
  }
1782
- function qt(o, n) {
1783
- const t = Tr(o);
1803
+ function jt(o, n) {
1804
+ const t = Or(o);
1784
1805
  return Math.round(n * t) / t;
1785
1806
  }
1786
- function mt(o) {
1787
- const n = k.useRef(o);
1807
+ function Dt(o) {
1808
+ const n = M.useRef(o);
1788
1809
  return nt(() => {
1789
1810
  n.current = o;
1790
1811
  }), n;
1791
1812
  }
1792
- function Ra(o) {
1813
+ function Ya(o) {
1793
1814
  o === void 0 && (o = {});
1794
1815
  const {
1795
1816
  placement: n = "bottom",
@@ -1803,66 +1824,66 @@ function Ra(o) {
1803
1824
  transform: i = !0,
1804
1825
  whileElementsMounted: l,
1805
1826
  open: u
1806
- } = o, [c, d] = k.useState({
1827
+ } = o, [c, d] = M.useState({
1807
1828
  x: 0,
1808
1829
  y: 0,
1809
1830
  strategy: t,
1810
1831
  placement: n,
1811
1832
  middlewareData: {},
1812
1833
  isPositioned: !1
1813
- }), [p, f] = k.useState(e);
1814
- pt(p, e) || f(e);
1815
- const [m, g] = k.useState(null), [h, D] = k.useState(null), w = k.useCallback(($) => {
1834
+ }), [p, f] = M.useState(e);
1835
+ ft(p, e) || f(e);
1836
+ const [m, D] = M.useState(null), [h, g] = M.useState(null), w = M.useCallback(($) => {
1837
+ $ !== F.current && (F.current = $, D($));
1838
+ }, []), b = M.useCallback(($) => {
1816
1839
  $ !== L.current && (L.current = $, g($));
1817
- }, []), b = k.useCallback(($) => {
1818
- $ !== Y.current && (Y.current = $, D($));
1819
- }, []), _ = a || m, I = s || h, L = k.useRef(null), Y = k.useRef(null), C = k.useRef(c), T = l != null, W = mt(l), H = mt(r), S = mt(u), R = k.useCallback(() => {
1820
- if (!L.current || !Y.current)
1840
+ }, []), _ = a || m, R = s || h, F = M.useRef(null), L = M.useRef(null), k = M.useRef(c), x = l != null, A = Dt(l), I = Dt(r), C = Dt(u), O = M.useCallback(() => {
1841
+ if (!F.current || !L.current)
1821
1842
  return;
1822
1843
  const $ = {
1823
1844
  placement: n,
1824
1845
  strategy: t,
1825
1846
  middleware: p
1826
1847
  };
1827
- H.current && ($.platform = H.current), zr(L.current, Y.current, $).then((Se) => {
1848
+ I.current && ($.platform = I.current), Xr(F.current, L.current, $).then((xe) => {
1828
1849
  const Oe = {
1829
- ...Se,
1850
+ ...xe,
1830
1851
  // The floating element's position may be recomputed while it's closed
1831
1852
  // but still mounted (such as when transitioning out). To ensure
1832
1853
  // `isPositioned` will be `false` initially on the next open, avoid
1833
1854
  // setting it to `true` when `open === false` (must be specified).
1834
- isPositioned: S.current !== !1
1855
+ isPositioned: C.current !== !1
1835
1856
  };
1836
- K.current && !pt(C.current, Oe) && (C.current = Oe, hn.flushSync(() => {
1857
+ B.current && !ft(k.current, Oe) && (k.current = Oe, vn.flushSync(() => {
1837
1858
  d(Oe);
1838
1859
  }));
1839
1860
  });
1840
- }, [p, n, t, H, S]);
1861
+ }, [p, n, t, I, C]);
1841
1862
  nt(() => {
1842
- u === !1 && C.current.isPositioned && (C.current.isPositioned = !1, d(($) => ({
1863
+ u === !1 && k.current.isPositioned && (k.current.isPositioned = !1, d(($) => ({
1843
1864
  ...$,
1844
1865
  isPositioned: !1
1845
1866
  })));
1846
1867
  }, [u]);
1847
- const K = k.useRef(!1);
1848
- nt(() => (K.current = !0, () => {
1849
- K.current = !1;
1868
+ const B = M.useRef(!1);
1869
+ nt(() => (B.current = !0, () => {
1870
+ B.current = !1;
1850
1871
  }), []), nt(() => {
1851
- if (_ && (L.current = _), I && (Y.current = I), _ && I) {
1852
- if (W.current)
1853
- return W.current(_, I, R);
1854
- R();
1872
+ if (_ && (F.current = _), R && (L.current = R), _ && R) {
1873
+ if (A.current)
1874
+ return A.current(_, R, O);
1875
+ O();
1855
1876
  }
1856
- }, [_, I, R, W, T]);
1857
- const j = k.useMemo(() => ({
1858
- reference: L,
1859
- floating: Y,
1877
+ }, [_, R, O, A, x]);
1878
+ const j = M.useMemo(() => ({
1879
+ reference: F,
1880
+ floating: L,
1860
1881
  setReference: w,
1861
1882
  setFloating: b
1862
- }), [w, b]), U = k.useMemo(() => ({
1883
+ }), [w, b]), U = M.useMemo(() => ({
1863
1884
  reference: _,
1864
- floating: I
1865
- }), [_, I]), F = k.useMemo(() => {
1885
+ floating: R
1886
+ }), [_, R]), H = M.useMemo(() => {
1866
1887
  const $ = {
1867
1888
  position: t,
1868
1889
  left: 0,
@@ -1870,28 +1891,28 @@ function Ra(o) {
1870
1891
  };
1871
1892
  if (!U.floating)
1872
1893
  return $;
1873
- const Se = qt(U.floating, c.x), Oe = qt(U.floating, c.y);
1894
+ const xe = jt(U.floating, c.x), Oe = jt(U.floating, c.y);
1874
1895
  return i ? {
1875
1896
  ...$,
1876
- transform: "translate(" + Se + "px, " + Oe + "px)",
1877
- ...Tr(U.floating) >= 1.5 && {
1897
+ transform: "translate(" + xe + "px, " + Oe + "px)",
1898
+ ...Or(U.floating) >= 1.5 && {
1878
1899
  willChange: "transform"
1879
1900
  }
1880
1901
  } : {
1881
1902
  position: t,
1882
- left: Se,
1903
+ left: xe,
1883
1904
  top: Oe
1884
1905
  };
1885
1906
  }, [t, i, U.floating, c.x, c.y]);
1886
- return k.useMemo(() => ({
1907
+ return M.useMemo(() => ({
1887
1908
  ...c,
1888
- update: R,
1909
+ update: O,
1889
1910
  refs: j,
1890
1911
  elements: U,
1891
- floatingStyles: F
1892
- }), [c, R, j, U, F]);
1912
+ floatingStyles: H
1913
+ }), [c, O, j, U, H]);
1893
1914
  }
1894
- const Ia = (o) => {
1915
+ const La = (o) => {
1895
1916
  function n(t) {
1896
1917
  return {}.hasOwnProperty.call(t, "current");
1897
1918
  }
@@ -1912,48 +1933,48 @@ const Ia = (o) => {
1912
1933
  }).fn(t) : {};
1913
1934
  }
1914
1935
  };
1915
- }, Ya = (o, n) => {
1916
- const t = Gr(o);
1936
+ }, Fa = (o, n) => {
1937
+ const t = zr(o);
1917
1938
  return {
1918
1939
  name: t.name,
1919
1940
  fn: t.fn,
1920
1941
  options: [o, n]
1921
1942
  };
1922
- }, La = (o, n) => {
1923
- const t = $r(o);
1943
+ }, Aa = (o, n) => {
1944
+ const t = Gr(o);
1924
1945
  return {
1925
1946
  name: t.name,
1926
1947
  fn: t.fn,
1927
1948
  options: [o, n]
1928
1949
  };
1929
- }, Fa = (o, n) => {
1930
- const t = Ia(o);
1950
+ }, Ha = (o, n) => {
1951
+ const t = La(o);
1931
1952
  return {
1932
1953
  name: t.name,
1933
1954
  fn: t.fn,
1934
1955
  options: [o, n]
1935
1956
  };
1936
- }, Aa = {
1937
- ...k
1957
+ }, Wa = {
1958
+ ...M
1938
1959
  };
1939
- let jt = !1, Ha = 0;
1940
- const $t = () => (
1960
+ let $t = !1, Qa = 0;
1961
+ const Gt = () => (
1941
1962
  // Ensure the id is unique with multiple independent versions of Floating UI
1942
1963
  // on <React 18
1943
- "floating-ui-" + Math.random().toString(36).slice(2, 6) + Ha++
1964
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + Qa++
1944
1965
  );
1945
- function Wa() {
1946
- const [o, n] = k.useState(() => jt ? $t() : void 0);
1947
- return dt(() => {
1948
- o == null && n($t());
1949
- }, []), k.useEffect(() => {
1950
- jt = !0;
1966
+ function Ba() {
1967
+ const [o, n] = M.useState(() => $t ? Gt() : void 0);
1968
+ return pt(() => {
1969
+ o == null && n(Gt());
1970
+ }, []), M.useEffect(() => {
1971
+ $t = !0;
1951
1972
  }, []), o;
1952
1973
  }
1953
- const Qa = Aa.useId, Or = Qa || Wa;
1974
+ const Ka = Wa.useId, Nr = Ka || Ba;
1954
1975
  let Ve;
1955
1976
  process.env.NODE_ENV !== "production" && (Ve = /* @__PURE__ */ new Set());
1956
- function Ba() {
1977
+ function Ua() {
1957
1978
  for (var o, n = arguments.length, t = new Array(n), e = 0; e < n; e++)
1958
1979
  t[e] = arguments[e];
1959
1980
  const r = "Floating UI: " + t.join(" ");
@@ -1962,7 +1983,7 @@ function Ba() {
1962
1983
  (a = Ve) == null || a.add(r), console.warn(r);
1963
1984
  }
1964
1985
  }
1965
- function Ka() {
1986
+ function Va() {
1966
1987
  for (var o, n = arguments.length, t = new Array(n), e = 0; e < n; e++)
1967
1988
  t[e] = arguments[e];
1968
1989
  const r = "Floating UI: " + t.join(" ");
@@ -1971,7 +1992,7 @@ function Ka() {
1971
1992
  (a = Ve) == null || a.add(r), console.error(r);
1972
1993
  }
1973
1994
  }
1974
- const Ua = /* @__PURE__ */ k.forwardRef(function(n, t) {
1995
+ const qa = /* @__PURE__ */ M.forwardRef(function(n, t) {
1975
1996
  const {
1976
1997
  context: {
1977
1998
  placement: e,
@@ -1992,66 +2013,66 @@ const Ua = /* @__PURE__ */ k.forwardRef(function(n, t) {
1992
2013
  d: f,
1993
2014
  style: {
1994
2015
  transform: m,
1995
- ...g
2016
+ ...D
1996
2017
  } = {},
1997
2018
  ...h
1998
2019
  } = n;
1999
- process.env.NODE_ENV !== "production" && (t || Ba("The `ref` prop is required for `FloatingArrow`."));
2000
- const D = Or(), [w, b] = k.useState(!1);
2001
- if (dt(() => {
2020
+ process.env.NODE_ENV !== "production" && (t || Ua("The `ref` prop is required for `FloatingArrow`."));
2021
+ const g = Nr(), [w, b] = M.useState(!1);
2022
+ if (pt(() => {
2002
2023
  if (!r) return;
2003
- Xr(r).direction === "rtl" && b(!0);
2024
+ Zr(r).direction === "rtl" && b(!0);
2004
2025
  }, [r]), !r)
2005
2026
  return null;
2006
- const [_, I] = e.split("-"), L = _ === "top" || _ === "bottom";
2007
- let Y = d;
2008
- (L && s != null && s.x || !L && s != null && s.y) && (Y = null);
2009
- const C = c * 2, T = C / 2, W = i / 2 * (u / -8 + 1), H = l / 2 * u / 4, S = !!f, R = Y && I === "end" ? "bottom" : "top";
2010
- let K = Y && I === "end" ? "right" : "left";
2011
- Y && w && (K = I === "end" ? "left" : "right");
2012
- const j = a?.x != null ? Y || a.x : "", U = a?.y != null ? Y || a.y : "", F = f || "M0,0" + (" H" + i) + (" L" + (i - W) + "," + (l - H)) + (" Q" + i / 2 + "," + l + " " + W + "," + (l - H)) + " Z", $ = {
2013
- top: S ? "rotate(180deg)" : "",
2014
- left: S ? "rotate(90deg)" : "rotate(-90deg)",
2015
- bottom: S ? "" : "rotate(180deg)",
2016
- right: S ? "rotate(-90deg)" : "rotate(90deg)"
2027
+ const [_, R] = e.split("-"), F = _ === "top" || _ === "bottom";
2028
+ let L = d;
2029
+ (F && s != null && s.x || !F && s != null && s.y) && (L = null);
2030
+ const k = c * 2, x = k / 2, A = i / 2 * (u / -8 + 1), I = l / 2 * u / 4, C = !!f, O = L && R === "end" ? "bottom" : "top";
2031
+ let B = L && R === "end" ? "right" : "left";
2032
+ L && w && (B = R === "end" ? "left" : "right");
2033
+ const j = a?.x != null ? L || a.x : "", U = a?.y != null ? L || a.y : "", H = f || "M0,0" + (" H" + i) + (" L" + (i - A) + "," + (l - I)) + (" Q" + i / 2 + "," + l + " " + A + "," + (l - I)) + " Z", $ = {
2034
+ top: C ? "rotate(180deg)" : "",
2035
+ left: C ? "rotate(90deg)" : "rotate(-90deg)",
2036
+ bottom: C ? "" : "rotate(180deg)",
2037
+ right: C ? "rotate(-90deg)" : "rotate(90deg)"
2017
2038
  }[_];
2018
2039
  return /* @__PURE__ */ ae.jsxs("svg", {
2019
2040
  ...h,
2020
2041
  "aria-hidden": !0,
2021
2042
  ref: t,
2022
- width: S ? i : i + C,
2043
+ width: C ? i : i + k,
2023
2044
  height: i,
2024
2045
  viewBox: "0 0 " + i + " " + (l > i ? l : i),
2025
2046
  style: {
2026
2047
  position: "absolute",
2027
2048
  pointerEvents: "none",
2028
- [K]: j,
2029
- [R]: U,
2030
- [_]: L || S ? "100%" : "calc(100% - " + C / 2 + "px)",
2031
- transform: [$, m].filter((Se) => !!Se).join(" "),
2032
- ...g
2049
+ [B]: j,
2050
+ [O]: U,
2051
+ [_]: F || C ? "100%" : "calc(100% - " + k / 2 + "px)",
2052
+ transform: [$, m].filter((xe) => !!xe).join(" "),
2053
+ ...D
2033
2054
  },
2034
- children: [C > 0 && /* @__PURE__ */ ae.jsx("path", {
2035
- clipPath: "url(#" + D + ")",
2055
+ children: [k > 0 && /* @__PURE__ */ ae.jsx("path", {
2056
+ clipPath: "url(#" + g + ")",
2036
2057
  fill: "none",
2037
2058
  stroke: p,
2038
- strokeWidth: C + (f ? 0 : 1),
2039
- d: F
2059
+ strokeWidth: k + (f ? 0 : 1),
2060
+ d: H
2040
2061
  }), /* @__PURE__ */ ae.jsx("path", {
2041
- stroke: C && !f ? h.fill : "none",
2042
- d: F
2062
+ stroke: k && !f ? h.fill : "none",
2063
+ d: H
2043
2064
  }), /* @__PURE__ */ ae.jsx("clipPath", {
2044
- id: D,
2065
+ id: g,
2045
2066
  children: /* @__PURE__ */ ae.jsx("rect", {
2046
- x: -T,
2047
- y: T * (S ? -1 : 1),
2048
- width: i + C,
2067
+ x: -x,
2068
+ y: x * (C ? -1 : 1),
2069
+ width: i + k,
2049
2070
  height: i
2050
2071
  })
2051
2072
  })]
2052
2073
  });
2053
2074
  });
2054
- function Va() {
2075
+ function ja() {
2055
2076
  const o = /* @__PURE__ */ new Map();
2056
2077
  return {
2057
2078
  emit(n, t) {
@@ -2067,35 +2088,35 @@ function Va() {
2067
2088
  }
2068
2089
  };
2069
2090
  }
2070
- const qa = /* @__PURE__ */ k.createContext(null), ja = /* @__PURE__ */ k.createContext(null), $a = () => {
2091
+ const $a = /* @__PURE__ */ M.createContext(null), Ga = /* @__PURE__ */ M.createContext(null), za = () => {
2071
2092
  var o;
2072
- return ((o = k.useContext(qa)) == null ? void 0 : o.id) || null;
2073
- }, Ga = () => k.useContext(ja);
2074
- function za(o) {
2093
+ return ((o = M.useContext($a)) == null ? void 0 : o.id) || null;
2094
+ }, Xa = () => M.useContext(Ga);
2095
+ function Za(o) {
2075
2096
  const {
2076
2097
  open: n = !1,
2077
2098
  onOpenChange: t,
2078
2099
  elements: e
2079
- } = o, r = Or(), a = k.useRef({}), [s] = k.useState(() => Va()), i = $a() != null;
2100
+ } = o, r = Nr(), a = M.useRef({}), [s] = M.useState(() => ja()), i = za() != null;
2080
2101
  if (process.env.NODE_ENV !== "production") {
2081
2102
  const f = e.reference;
2082
- f && !Ae(f) && Ka("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
2103
+ f && !Ae(f) && Va("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
2083
2104
  }
2084
- const [l, u] = k.useState(e.reference), c = Ta((f, m, g) => {
2105
+ const [l, u] = M.useState(e.reference), c = Na((f, m, D) => {
2085
2106
  a.current.openEvent = f ? m : void 0, s.emit("openchange", {
2086
2107
  open: f,
2087
2108
  event: m,
2088
- reason: g,
2109
+ reason: D,
2089
2110
  nested: i
2090
- }), t?.(f, m, g);
2091
- }), d = k.useMemo(() => ({
2111
+ }), t?.(f, m, D);
2112
+ }), d = M.useMemo(() => ({
2092
2113
  setPositionReference: u
2093
- }), []), p = k.useMemo(() => ({
2114
+ }), []), p = M.useMemo(() => ({
2094
2115
  reference: l || e.reference || null,
2095
2116
  floating: e.floating || null,
2096
2117
  domReference: e.reference
2097
2118
  }), [l, e.reference, e.floating]);
2098
- return k.useMemo(() => ({
2119
+ return M.useMemo(() => ({
2099
2120
  dataRef: a,
2100
2121
  open: n,
2101
2122
  onOpenChange: c,
@@ -2105,22 +2126,22 @@ function za(o) {
2105
2126
  refs: d
2106
2127
  }), [n, c, p, s, r, d]);
2107
2128
  }
2108
- function Xa(o) {
2129
+ function Ja(o) {
2109
2130
  o === void 0 && (o = {});
2110
2131
  const {
2111
2132
  nodeId: n
2112
- } = o, t = za({
2133
+ } = o, t = Za({
2113
2134
  ...o,
2114
2135
  elements: {
2115
2136
  reference: null,
2116
2137
  floating: null,
2117
2138
  ...o.elements
2118
2139
  }
2119
- }), e = o.rootContext || t, r = e.elements, [a, s] = k.useState(null), [i, l] = k.useState(null), c = r?.domReference || a, d = k.useRef(null), p = Ga();
2120
- dt(() => {
2140
+ }), e = o.rootContext || t, r = e.elements, [a, s] = M.useState(null), [i, l] = M.useState(null), c = r?.domReference || a, d = M.useRef(null), p = Xa();
2141
+ pt(() => {
2121
2142
  c && (d.current = c);
2122
2143
  }, [c]);
2123
- const f = Ra({
2144
+ const f = Ya({
2124
2145
  ...o,
2125
2146
  elements: {
2126
2147
  ...r,
@@ -2128,43 +2149,43 @@ function Xa(o) {
2128
2149
  reference: i
2129
2150
  }
2130
2151
  }
2131
- }), m = k.useCallback((b) => {
2152
+ }), m = M.useCallback((b) => {
2132
2153
  const _ = Ae(b) ? {
2133
2154
  getBoundingClientRect: () => b.getBoundingClientRect(),
2134
2155
  getClientRects: () => b.getClientRects(),
2135
2156
  contextElement: b
2136
2157
  } : b;
2137
2158
  l(_), f.refs.setReference(_);
2138
- }, [f.refs]), g = k.useCallback((b) => {
2159
+ }, [f.refs]), D = M.useCallback((b) => {
2139
2160
  (Ae(b) || b === null) && (d.current = b, s(b)), (Ae(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
2140
2161
  // `null` to support `positionReference` + an unstable `reference`
2141
2162
  // callback ref.
2142
2163
  b !== null && !Ae(b)) && f.refs.setReference(b);
2143
- }, [f.refs]), h = k.useMemo(() => ({
2164
+ }, [f.refs]), h = M.useMemo(() => ({
2144
2165
  ...f.refs,
2145
- setReference: g,
2166
+ setReference: D,
2146
2167
  setPositionReference: m,
2147
2168
  domReference: d
2148
- }), [f.refs, g, m]), D = k.useMemo(() => ({
2169
+ }), [f.refs, D, m]), g = M.useMemo(() => ({
2149
2170
  ...f.elements,
2150
2171
  domReference: c
2151
- }), [f.elements, c]), w = k.useMemo(() => ({
2172
+ }), [f.elements, c]), w = M.useMemo(() => ({
2152
2173
  ...f,
2153
2174
  ...e,
2154
2175
  refs: h,
2155
- elements: D,
2176
+ elements: g,
2156
2177
  nodeId: n
2157
- }), [f, h, D, n, e]);
2158
- return dt(() => {
2178
+ }), [f, h, g, n, e]);
2179
+ return pt(() => {
2159
2180
  e.dataRef.current.floatingContext = w;
2160
2181
  const b = p?.nodesRef.current.find((_) => _.id === n);
2161
2182
  b && (b.context = w);
2162
- }), k.useMemo(() => ({
2183
+ }), M.useMemo(() => ({
2163
2184
  ...f,
2164
2185
  context: w,
2165
2186
  refs: h,
2166
- elements: D
2167
- }), [f, h, D, w]);
2187
+ elements: g
2188
+ }), [f, h, g, w]);
2168
2189
  }
2169
2190
  var St = function(n, t) {
2170
2191
  return St = Object.setPrototypeOf || {
@@ -2183,29 +2204,29 @@ function Z(o, n) {
2183
2204
  }
2184
2205
  o.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
2185
2206
  }
2186
- var x = function() {
2187
- return x = Object.assign || function(t) {
2207
+ var E = function() {
2208
+ return E = Object.assign || function(t) {
2188
2209
  for (var e, r = 1, a = arguments.length; r < a; r++) {
2189
2210
  e = arguments[r];
2190
2211
  for (var s in e) Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]);
2191
2212
  }
2192
2213
  return t;
2193
- }, x.apply(this, arguments);
2214
+ }, E.apply(this, arguments);
2194
2215
  };
2195
2216
  function he(o, n, t) {
2196
2217
  if (t || arguments.length === 2) for (var e = 0, r = n.length, a; e < r; e++)
2197
2218
  (a || !(e in n)) && (a || (a = Array.prototype.slice.call(n, 0, e)), a[e] = n[e]);
2198
2219
  return o.concat(a || Array.prototype.slice.call(n));
2199
2220
  }
2200
- var Za = function(o) {
2221
+ var eo = function(o) {
2201
2222
  var n = o.showTimeSelectOnly, t = n === void 0 ? !1 : n, e = o.showTime, r = e === void 0 ? !1 : e, a = o.className, s = o.children, i = o.inline, l = t ? "Choose Time" : "Choose Date".concat(r ? " and Time" : "");
2202
2223
  return v.createElement("div", { className: a, "aria-label": l, role: i ? void 0 : "dialog", "aria-modal": i ? void 0 : "true" }, s);
2203
- }, Ja = function(o, n) {
2204
- var t = _t(null), e = _t(o);
2224
+ }, to = function(o, n) {
2225
+ var t = kt(null), e = kt(o);
2205
2226
  At(function() {
2206
2227
  e.current = o;
2207
2228
  }, [o]);
2208
- var r = un(function(a) {
2229
+ var r = dn(function(a) {
2209
2230
  var s, i = a.composed && a.composedPath && a.composedPath().find(function(l) {
2210
2231
  return l instanceof Node;
2211
2232
  }) || a.target;
@@ -2216,8 +2237,8 @@ var Za = function(o) {
2216
2237
  document.removeEventListener("mousedown", r);
2217
2238
  };
2218
2239
  }, [r]), t;
2219
- }, vt = function(o) {
2220
- var n = o.children, t = o.onClickOutside, e = o.className, r = o.containerRef, a = o.style, s = o.ignoreClass, i = Ja(t, s);
2240
+ }, mt = function(o) {
2241
+ var n = o.children, t = o.onClickOutside, e = o.className, r = o.containerRef, a = o.style, s = o.ignoreClass, i = to(t, s);
2221
2242
  return v.createElement("div", { className: e, style: a, ref: function(l) {
2222
2243
  i.current = l, r && (r.current = l);
2223
2244
  } }, n);
@@ -2225,32 +2246,32 @@ var Za = function(o) {
2225
2246
  (function(o) {
2226
2247
  o.ArrowUp = "ArrowUp", o.ArrowDown = "ArrowDown", o.ArrowLeft = "ArrowLeft", o.ArrowRight = "ArrowRight", o.PageUp = "PageUp", o.PageDown = "PageDown", o.Home = "Home", o.End = "End", o.Enter = "Enter", o.Space = " ", o.Tab = "Tab", o.Escape = "Escape", o.Backspace = "Backspace", o.X = "x";
2227
2248
  })(y || (y = {}));
2228
- function Nr() {
2249
+ function Rr() {
2229
2250
  var o = typeof window < "u" ? window : globalThis;
2230
2251
  return o;
2231
2252
  }
2232
2253
  var qe = 12;
2233
- function O(o) {
2254
+ function N(o) {
2234
2255
  if (o == null)
2235
2256
  return /* @__PURE__ */ new Date();
2236
- var n = typeof o == "string" ? mn(o) : M(o);
2257
+ var n = typeof o == "string" ? Dn(o) : S(o);
2237
2258
  return ne(n) ? n : /* @__PURE__ */ new Date();
2238
2259
  }
2239
2260
  function Ne(o, n, t, e, r) {
2240
- r === void 0 && (r = O());
2261
+ r === void 0 && (r = N());
2241
2262
  for (var a = Le(t) || Le(Nt()), s = Array.isArray(n) ? n : [n], i = 0, l = s; i < l.length; i++) {
2242
- var u = l[i], c = ya(o, u, r, {
2263
+ var u = l[i], c = wa(o, u, r, {
2243
2264
  locale: a
2244
2265
  });
2245
- if (ne(c) && (!e || o === A(c, u, t)))
2266
+ if (ne(c) && (!e || o === W(c, u, t)))
2246
2267
  return c;
2247
2268
  }
2248
2269
  return null;
2249
2270
  }
2250
2271
  function ne(o, n) {
2251
- return bt(o) && !pe(o, /* @__PURE__ */ new Date("1/1/1800"));
2272
+ return _t(o) && !pe(o, /* @__PURE__ */ new Date("1/1/1800"));
2252
2273
  }
2253
- function A(o, n, t) {
2274
+ function W(o, n, t) {
2254
2275
  if (t === "en")
2255
2276
  return Ft(o, n, {
2256
2277
  useAdditionalWeekYearTokens: !0,
@@ -2265,16 +2286,16 @@ function A(o, n, t) {
2265
2286
  }
2266
2287
  function te(o, n) {
2267
2288
  var t = n.dateFormat, e = n.locale, r = Array.isArray(t) && t.length > 0 ? t[0] : t;
2268
- return o && A(o, r, e) || "";
2289
+ return o && W(o, r, e) || "";
2269
2290
  }
2270
- var Rr = " - ";
2271
- function eo(o, n, t) {
2291
+ var Ir = " - ";
2292
+ function ro(o, n, t) {
2272
2293
  if (!o && !n)
2273
2294
  return "";
2274
- var e = o ? te(o, t) : "", r = n ? te(n, t) : "", a = t.rangeSeparator || Rr;
2295
+ var e = o ? te(o, t) : "", r = n ? te(n, t) : "", a = t.rangeSeparator || Ir;
2275
2296
  return "".concat(e).concat(a).concat(r);
2276
2297
  }
2277
- function to(o, n) {
2298
+ function no(o, n) {
2278
2299
  if (!o?.length)
2279
2300
  return "";
2280
2301
  var t = o[0] ? te(o[0], n) : "";
@@ -2291,60 +2312,60 @@ function $e(o, n) {
2291
2312
  var t = n.hour, e = t === void 0 ? 0 : t, r = n.minute, a = r === void 0 ? 0 : r, s = n.second, i = s === void 0 ? 0 : s;
2292
2313
  return et(tt(rt(o, i), a), e);
2293
2314
  }
2294
- function ro(o) {
2295
- return vr(o);
2315
+ function ao(o) {
2316
+ return mr(o);
2296
2317
  }
2297
- function no(o, n) {
2298
- return A(o, "ddd", n);
2318
+ function oo(o, n) {
2319
+ return W(o, "ddd", n);
2299
2320
  }
2300
2321
  function We(o) {
2301
2322
  return xt(o);
2302
2323
  }
2303
- function ke(o, n, t) {
2324
+ function Me(o, n, t) {
2304
2325
  var e = Le(n || Nt());
2305
2326
  return ot(o, {
2306
2327
  locale: e,
2307
2328
  weekStartsOn: t
2308
2329
  });
2309
2330
  }
2310
- function ye(o) {
2311
- return _r(o);
2331
+ function we(o) {
2332
+ return kr(o);
2312
2333
  }
2313
2334
  function Qe(o) {
2314
2335
  return Et(o);
2315
2336
  }
2316
- function Gt(o) {
2317
- return kt(o);
2337
+ function zt(o) {
2338
+ return Mt(o);
2318
2339
  }
2319
- function zt() {
2320
- return xt(O());
2340
+ function Xt() {
2341
+ return xt(N());
2321
2342
  }
2322
- function Xt(o) {
2323
- return Dr(o);
2343
+ function Zt(o) {
2344
+ return gr(o);
2324
2345
  }
2325
- function ao(o) {
2326
- return wn(o);
2346
+ function so(o) {
2347
+ return bn(o);
2327
2348
  }
2328
- function oo(o) {
2329
- return gr(o);
2349
+ function io(o) {
2350
+ return yr(o);
2330
2351
  }
2331
2352
  function ce(o, n) {
2332
- return o && n ? Jr(o, n) : !o && !n;
2353
+ return o && n ? en(o, n) : !o && !n;
2333
2354
  }
2334
2355
  function J(o, n) {
2335
- return o && n ? en(o, n) : !o && !n;
2356
+ return o && n ? tn(o, n) : !o && !n;
2336
2357
  }
2337
- function ft(o, n) {
2338
- return o && n ? ba(o, n) : !o && !n;
2358
+ function ht(o, n) {
2359
+ return o && n ? _a(o, n) : !o && !n;
2339
2360
  }
2340
- function P(o, n) {
2341
- return o && n ? Zr(o, n) : !o && !n;
2361
+ function T(o, n) {
2362
+ return o && n ? Jr(o, n) : !o && !n;
2342
2363
  }
2343
2364
  function Pe(o, n) {
2344
- return o && n ? Mn(o, n) : !o && !n;
2365
+ return o && n ? Cn(o, n) : !o && !n;
2345
2366
  }
2346
- function xe(o, n, t) {
2347
- var e, r = xt(n), a = Dr(t);
2367
+ function Ee(o, n, t) {
2368
+ var e, r = xt(n), a = gr(t);
2348
2369
  try {
2349
2370
  e = Ue(o, { start: r, end: a });
2350
2371
  } catch {
@@ -2353,47 +2374,47 @@ function xe(o, n, t) {
2353
2374
  return e;
2354
2375
  }
2355
2376
  function Nt() {
2356
- var o = Nr();
2377
+ var o = Rr();
2357
2378
  return o.__localeId__;
2358
2379
  }
2359
2380
  function Le(o) {
2360
2381
  if (typeof o == "string") {
2361
- var n = Nr();
2382
+ var n = Rr();
2362
2383
  return n.__localeData__ ? n.__localeData__[o] : void 0;
2363
2384
  } else
2364
2385
  return o;
2365
2386
  }
2366
- function so(o, n, t) {
2367
- return n(A(o, "EEEE", t));
2387
+ function lo(o, n, t) {
2388
+ return n(W(o, "EEEE", t));
2368
2389
  }
2369
- function io(o, n) {
2370
- return A(o, "EEEEEE", n);
2390
+ function co(o, n) {
2391
+ return W(o, "EEEEEE", n);
2371
2392
  }
2372
- function lo(o, n) {
2373
- return A(o, "EEE", n);
2393
+ function uo(o, n) {
2394
+ return W(o, "EEE", n);
2374
2395
  }
2375
2396
  function Rt(o, n) {
2376
- return A(re(O(), o), "LLLL", n);
2397
+ return W(re(N(), o), "LLLL", n);
2377
2398
  }
2378
- function Ir(o, n) {
2379
- return A(re(O(), o), "LLL", n);
2399
+ function Yr(o, n) {
2400
+ return W(re(N(), o), "LLL", n);
2380
2401
  }
2381
- function co(o, n) {
2382
- return A(Re(O(), o), "QQQ", n);
2402
+ function po(o, n) {
2403
+ return W(Re(N(), o), "QQQ", n);
2383
2404
  }
2384
2405
  function oe(o, n) {
2385
2406
  var t = n === void 0 ? {} : n, e = t.minDate, r = t.maxDate, a = t.excludeDates, s = t.excludeDateIntervals, i = t.includeDates, l = t.includeDateIntervals, u = t.filterDate, c = t.disabled;
2386
2407
  return c ? !0 : je(o, { minDate: e, maxDate: r }) || a && a.some(function(d) {
2387
- return d instanceof Date ? P(o, d) : P(o, d.date);
2408
+ return d instanceof Date ? T(o, d) : T(o, d.date);
2388
2409
  }) || s && s.some(function(d) {
2389
2410
  var p = d.start, f = d.end;
2390
2411
  return Ue(o, { start: p, end: f });
2391
2412
  }) || i && !i.some(function(d) {
2392
- return P(o, d);
2413
+ return T(o, d);
2393
2414
  }) || l && !l.some(function(d) {
2394
2415
  var p = d.start, f = d.end;
2395
2416
  return Ue(o, { start: p, end: f });
2396
- }) || u && !u(O(o)) || !1;
2417
+ }) || u && !u(N(o)) || !1;
2397
2418
  }
2398
2419
  function It(o, n) {
2399
2420
  var t = n === void 0 ? {} : n, e = t.excludeDates, r = t.excludeDateIntervals;
@@ -2402,25 +2423,25 @@ function It(o, n) {
2402
2423
  return Ue(o, { start: s, end: i });
2403
2424
  }) : e && e.some(function(a) {
2404
2425
  var s;
2405
- return a instanceof Date ? P(o, a) : P(o, (s = a.date) !== null && s !== void 0 ? s : /* @__PURE__ */ new Date());
2426
+ return a instanceof Date ? T(o, a) : T(o, (s = a.date) !== null && s !== void 0 ? s : /* @__PURE__ */ new Date());
2406
2427
  }) || !1;
2407
2428
  }
2408
- function Yr(o, n) {
2429
+ function Lr(o, n) {
2409
2430
  var t = n === void 0 ? {} : n, e = t.minDate, r = t.maxDate, a = t.excludeDates, s = t.includeDates, i = t.filterDate;
2410
2431
  return je(o, {
2411
- minDate: e ? _r(e) : void 0,
2412
- maxDate: r ? gr(r) : void 0
2432
+ minDate: e ? kr(e) : void 0,
2433
+ maxDate: r ? yr(r) : void 0
2413
2434
  }) || a?.some(function(l) {
2414
2435
  return J(o, l instanceof Date ? l : l.date);
2415
2436
  }) || s && !s.some(function(l) {
2416
2437
  return J(o, l);
2417
- }) || i && !i(O(o)) || !1;
2438
+ }) || i && !i(N(o)) || !1;
2418
2439
  }
2419
2440
  function Ge(o, n, t, e) {
2420
- var r = E(o), a = ee(o), s = E(n), i = ee(n), l = E(e);
2441
+ var r = P(o), a = ee(o), s = P(n), i = ee(n), l = P(e);
2421
2442
  return r === s && r === l ? a <= t && t <= i : r < s ? l === r && a <= t || l === s && i >= t || l < s && l > r : !1;
2422
2443
  }
2423
- function uo(o, n) {
2444
+ function fo(o, n) {
2424
2445
  var t = n === void 0 ? {} : n, e = t.minDate, r = t.maxDate, a = t.excludeDates, s = t.includeDates;
2425
2446
  return je(o, { minDate: e, maxDate: r }) || a && a.some(function(i) {
2426
2447
  return J(i instanceof Date ? i : i.date, o);
@@ -2431,15 +2452,15 @@ function uo(o, n) {
2431
2452
  function ze(o, n) {
2432
2453
  var t = n === void 0 ? {} : n, e = t.minDate, r = t.maxDate, a = t.excludeDates, s = t.includeDates, i = t.filterDate, l = t.disabled;
2433
2454
  return l ? !0 : je(o, { minDate: e, maxDate: r }) || a?.some(function(u) {
2434
- return ft(o, u instanceof Date ? u : u.date);
2455
+ return ht(o, u instanceof Date ? u : u.date);
2435
2456
  }) || s && !s.some(function(u) {
2436
- return ft(o, u);
2437
- }) || i && !i(O(o)) || !1;
2457
+ return ht(o, u);
2458
+ }) || i && !i(N(o)) || !1;
2438
2459
  }
2439
2460
  function Xe(o, n, t) {
2440
- if (!n || !t || !bt(n) || !bt(t))
2461
+ if (!n || !t || !_t(n) || !_t(t))
2441
2462
  return !1;
2442
- var e = E(n), r = E(t);
2463
+ var e = P(n), r = P(t);
2443
2464
  return e <= o && r >= o;
2444
2465
  }
2445
2466
  function at(o, n) {
@@ -2449,40 +2470,40 @@ function at(o, n) {
2449
2470
  var u = new Date(o, 0, 1);
2450
2471
  return je(u, {
2451
2472
  minDate: e ? Et(e) : void 0,
2452
- maxDate: r ? kr(r) : void 0
2473
+ maxDate: r ? Mr(r) : void 0
2453
2474
  }) || a?.some(function(c) {
2454
2475
  return ce(u, c instanceof Date ? c : c.date);
2455
2476
  }) || s && !s.some(function(c) {
2456
2477
  return ce(u, c);
2457
- }) || i && !i(O(u)) || !1;
2478
+ }) || i && !i(N(u)) || !1;
2458
2479
  }
2459
2480
  function Ze(o, n, t, e) {
2460
- var r = E(o), a = we(o), s = E(n), i = we(n), l = E(e);
2481
+ var r = P(o), a = be(o), s = P(n), i = be(n), l = P(e);
2461
2482
  return r === s && r === l ? a <= t && t <= i : r < s ? l === r && a <= t || l === s && i >= t || l < s && l > r : !1;
2462
2483
  }
2463
2484
  function je(o, n) {
2464
2485
  var t, e = n === void 0 ? {} : n, r = e.minDate, a = e.maxDate;
2465
2486
  return (t = r && Be(o, r) < 0 || a && Be(o, a) > 0) !== null && t !== void 0 ? t : !1;
2466
2487
  }
2467
- function Zt(o, n) {
2488
+ function Jt(o, n) {
2468
2489
  return n.some(function(t) {
2469
- return se(t) === se(o) && ie(t) === ie(o) && _e(t) === _e(o);
2490
+ return se(t) === se(o) && ie(t) === ie(o) && ke(t) === ke(o);
2470
2491
  });
2471
2492
  }
2472
- function Jt(o, n) {
2493
+ function er(o, n) {
2473
2494
  var t = n === void 0 ? {} : n, e = t.excludeTimes, r = t.includeTimes, a = t.filterTime;
2474
- return e && Zt(o, e) || r && !Zt(o, r) || a && !a(o) || !1;
2495
+ return e && Jt(o, e) || r && !Jt(o, r) || a && !a(o) || !1;
2475
2496
  }
2476
- function er(o, n) {
2497
+ function tr(o, n) {
2477
2498
  var t = n.minTime, e = n.maxTime;
2478
2499
  if (!t || !e)
2479
2500
  throw new Error("Both minTime and maxTime props required");
2480
- var r = O();
2481
- r = et(r, se(o)), r = tt(r, ie(o)), r = rt(r, _e(o));
2482
- var a = O();
2483
- a = et(a, se(t)), a = tt(a, ie(t)), a = rt(a, _e(t));
2484
- var s = O();
2485
- s = et(s, se(e)), s = tt(s, ie(e)), s = rt(s, _e(e));
2501
+ var r = N();
2502
+ r = et(r, se(o)), r = tt(r, ie(o)), r = rt(r, ke(o));
2503
+ var a = N();
2504
+ a = et(a, se(t)), a = tt(a, ie(t)), a = rt(a, ke(t));
2505
+ var s = N();
2506
+ s = et(s, se(e)), s = tt(s, ie(e)), s = rt(s, ke(e));
2486
2507
  var i;
2487
2508
  try {
2488
2509
  i = !Ue(r, { start: a, end: s });
@@ -2491,51 +2512,51 @@ function er(o, n) {
2491
2512
  }
2492
2513
  return i;
2493
2514
  }
2494
- function tr(o, n) {
2515
+ function rr(o, n) {
2495
2516
  var t = n === void 0 ? {} : n, e = t.minDate, r = t.includeDates, a = Te(o, 1);
2496
2517
  return e && st(e, a) > 0 || r && r.every(function(s) {
2497
2518
  return st(s, a) > 0;
2498
2519
  }) || !1;
2499
2520
  }
2500
- function rr(o, n) {
2521
+ function nr(o, n) {
2501
2522
  var t = n === void 0 ? {} : n, e = t.maxDate, r = t.includeDates, a = me(o, 1);
2502
2523
  return e && st(a, e) > 0 || r && r.every(function(s) {
2503
2524
  return st(a, s) > 0;
2504
2525
  }) || !1;
2505
2526
  }
2506
- function po(o, n) {
2507
- var t = n === void 0 ? {} : n, e = t.minDate, r = t.includeDates, a = Et(o), s = Er(a);
2527
+ function ho(o, n) {
2528
+ var t = n === void 0 ? {} : n, e = t.minDate, r = t.includeDates, a = Et(o), s = Pr(a);
2508
2529
  return e && lt(e, s) > 0 || r && r.every(function(i) {
2509
2530
  return lt(i, s) > 0;
2510
2531
  }) || !1;
2511
2532
  }
2512
- function fo(o, n) {
2513
- var t = n === void 0 ? {} : n, e = t.maxDate, r = t.includeDates, a = kr(o), s = Pt(a, 1);
2533
+ function vo(o, n) {
2534
+ var t = n === void 0 ? {} : n, e = t.maxDate, r = t.includeDates, a = Mr(o), s = Pt(a, 1);
2514
2535
  return e && lt(s, e) > 0 || r && r.every(function(i) {
2515
2536
  return lt(s, i) > 0;
2516
2537
  }) || !1;
2517
2538
  }
2518
- function nr(o, n) {
2539
+ function ar(o, n) {
2519
2540
  var t = n === void 0 ? {} : n, e = t.minDate, r = t.includeDates, a = Ye(o, 1);
2520
2541
  return e && ct(e, a) > 0 || r && r.every(function(s) {
2521
2542
  return ct(s, a) > 0;
2522
2543
  }) || !1;
2523
2544
  }
2524
- function ho(o, n) {
2525
- var t = n === void 0 ? {} : n, e = t.minDate, r = t.yearItemNumber, a = r === void 0 ? qe : r, s = Qe(Ye(o, a)), i = De(s, a).endPeriod, l = e && E(e);
2545
+ function mo(o, n) {
2546
+ var t = n === void 0 ? {} : n, e = t.minDate, r = t.yearItemNumber, a = r === void 0 ? qe : r, s = Qe(Ye(o, a)), i = ge(s, a).endPeriod, l = e && P(e);
2526
2547
  return l && l > i || !1;
2527
2548
  }
2528
- function ar(o, n) {
2529
- var t = n === void 0 ? {} : n, e = t.maxDate, r = t.includeDates, a = ge(o, 1);
2549
+ function or(o, n) {
2550
+ var t = n === void 0 ? {} : n, e = t.maxDate, r = t.includeDates, a = ye(o, 1);
2530
2551
  return e && ct(a, e) > 0 || r && r.every(function(s) {
2531
2552
  return ct(a, s) > 0;
2532
2553
  }) || !1;
2533
2554
  }
2534
- function vo(o, n) {
2535
- var t = n === void 0 ? {} : n, e = t.maxDate, r = t.yearItemNumber, a = r === void 0 ? qe : r, s = ge(o, a), i = De(s, a).startPeriod, l = e && E(e);
2555
+ function Do(o, n) {
2556
+ var t = n === void 0 ? {} : n, e = t.maxDate, r = t.yearItemNumber, a = r === void 0 ? qe : r, s = ye(o, a), i = ge(s, a).startPeriod, l = e && P(e);
2536
2557
  return l && l < i || !1;
2537
2558
  }
2538
- function Lr(o) {
2559
+ function Fr(o) {
2539
2560
  var n = o.minDate, t = o.includeDates;
2540
2561
  if (t && n) {
2541
2562
  var e = t.filter(function(r) {
@@ -2544,7 +2565,7 @@ function Lr(o) {
2544
2565
  return Wt(e);
2545
2566
  } else return t ? Wt(t) : n;
2546
2567
  }
2547
- function Fr(o) {
2568
+ function Ar(o) {
2548
2569
  var n = o.maxDate, t = o.includeDates;
2549
2570
  if (t && n) {
2550
2571
  var e = t.filter(function(r) {
@@ -2553,13 +2574,13 @@ function Fr(o) {
2553
2574
  return Ht(e);
2554
2575
  } else return t ? Ht(t) : n;
2555
2576
  }
2556
- function or(o, n) {
2577
+ function sr(o, n) {
2557
2578
  var t;
2558
2579
  o === void 0 && (o = []), n === void 0 && (n = "react-datepicker__day--highlighted");
2559
2580
  for (var e = /* @__PURE__ */ new Map(), r = 0, a = o.length; r < a; r++) {
2560
2581
  var s = o[r];
2561
- if (be(s)) {
2562
- var i = A(s, "MM.dd.yyyy"), l = e.get(i) || [];
2582
+ if (_e(s)) {
2583
+ var i = W(s, "MM.dd.yyyy"), l = e.get(i) || [];
2563
2584
  l.includes(n) || (l.push(n), e.set(i, l));
2564
2585
  } else if (typeof s == "object") {
2565
2586
  var u = Object.keys(s), c = (t = u[0]) !== null && t !== void 0 ? t : "", d = s[c];
@@ -2567,7 +2588,7 @@ function or(o, n) {
2567
2588
  for (var p = 0, f = d.length; p < f; p++) {
2568
2589
  var m = d[p];
2569
2590
  if (m) {
2570
- var i = A(m, "MM.dd.yyyy"), l = e.get(i) || [];
2591
+ var i = W(m, "MM.dd.yyyy"), l = e.get(i) || [];
2571
2592
  l.includes(c) || (l.push(c), e.set(i, l));
2572
2593
  }
2573
2594
  }
@@ -2575,22 +2596,22 @@ function or(o, n) {
2575
2596
  }
2576
2597
  return e;
2577
2598
  }
2578
- function mo(o, n) {
2599
+ function go(o, n) {
2579
2600
  return o.length !== n.length ? !1 : o.every(function(t, e) {
2580
2601
  return t === n[e];
2581
2602
  });
2582
2603
  }
2583
- function Do(o, n) {
2604
+ function yo(o, n) {
2584
2605
  o === void 0 && (o = []), n === void 0 && (n = "react-datepicker__day--holidays");
2585
2606
  var t = /* @__PURE__ */ new Map();
2586
2607
  return o.forEach(function(e) {
2587
2608
  var r = e.date, a = e.holidayName;
2588
- if (be(r)) {
2589
- var s = A(r, "MM.dd.yyyy"), i = t.get(s) || {
2609
+ if (_e(r)) {
2610
+ var s = W(r, "MM.dd.yyyy"), i = t.get(s) || {
2590
2611
  className: "",
2591
2612
  holidayNames: []
2592
2613
  };
2593
- if (!("className" in i && i.className === n && mo(i.holidayNames, [a]))) {
2614
+ if (!("className" in i && i.className === n && go(i.holidayNames, [a]))) {
2594
2615
  i.className = n;
2595
2616
  var l = i.holidayNames;
2596
2617
  i.holidayNames = l ? he(he([], l, !0), [a], !1) : [a], t.set(s, i);
@@ -2598,50 +2619,50 @@ function Do(o, n) {
2598
2619
  }
2599
2620
  }), t;
2600
2621
  }
2601
- function go(o, n, t, e, r) {
2622
+ function wo(o, n, t, e, r) {
2602
2623
  for (var a = r.length, s = [], i = 0; i < a; i++) {
2603
2624
  var l = o, u = r[i];
2604
- u && (l = Dn(l, se(u)), l = Ke(l, ie(u)), l = gn(l, _e(u)));
2625
+ u && (l = gn(l, se(u)), l = Ke(l, ie(u)), l = yn(l, ke(u)));
2605
2626
  var c = Ke(o, (t + 1) * e);
2606
- Ce(l, n) && pe(l, c) && u != null && s.push(u);
2627
+ Se(l, n) && pe(l, c) && u != null && s.push(u);
2607
2628
  }
2608
2629
  return s;
2609
2630
  }
2610
- function sr(o) {
2631
+ function ir(o) {
2611
2632
  return o < 10 ? "0".concat(o) : "".concat(o);
2612
2633
  }
2613
- function De(o, n) {
2634
+ function ge(o, n) {
2614
2635
  n === void 0 && (n = qe);
2615
- var t = Math.ceil(E(o) / n) * n, e = t - (n - 1);
2636
+ var t = Math.ceil(P(o) / n) * n, e = t - (n - 1);
2616
2637
  return { startPeriod: e, endPeriod: t };
2617
2638
  }
2618
- function yo(o) {
2639
+ function bo(o) {
2619
2640
  var n = new Date(o.getFullYear(), o.getMonth(), o.getDate()), t = new Date(o.getFullYear(), o.getMonth(), o.getDate(), 24);
2620
2641
  return Math.round((+t - +n) / 36e5);
2621
2642
  }
2622
- function ir(o) {
2643
+ function lr(o) {
2623
2644
  var n = o.getSeconds(), t = o.getMilliseconds();
2624
- return M(o.getTime() - n * 1e3 - t);
2645
+ return S(o.getTime() - n * 1e3 - t);
2625
2646
  }
2626
- function Ar(o, n) {
2627
- return ir(o).getTime() === ir(n).getTime();
2647
+ function Hr(o, n) {
2648
+ return lr(o).getTime() === lr(n).getTime();
2628
2649
  }
2629
- function lr(o) {
2630
- if (!be(o))
2650
+ function cr(o) {
2651
+ if (!_e(o))
2631
2652
  throw new Error("Invalid date");
2632
2653
  var n = new Date(o);
2633
2654
  return n.setHours(0, 0, 0, 0), n;
2634
2655
  }
2635
- function Dt(o, n) {
2636
- if (!be(o) || !be(n))
2656
+ function gt(o, n) {
2657
+ if (!_e(o) || !_e(n))
2637
2658
  throw new Error("Invalid date received");
2638
- var t = lr(o), e = lr(n);
2659
+ var t = cr(o), e = cr(n);
2639
2660
  return pe(t, e);
2640
2661
  }
2641
- function Hr(o) {
2662
+ function Wr(o) {
2642
2663
  return o.key === y.Space;
2643
2664
  }
2644
- var wo = (
2665
+ var _o = (
2645
2666
  /** @class */
2646
2667
  (function(o) {
2647
2668
  Z(n, o);
@@ -2658,7 +2679,7 @@ var wo = (
2658
2679
  (s = (a = e.props).onChange) === null || s === void 0 || s.call(a, u);
2659
2680
  }, e.renderTimeInput = function() {
2660
2681
  var r = e.state.time, a = e.props, s = a.date, i = a.timeString, l = a.customTimeInput;
2661
- return l ? wr(l, {
2682
+ return l ? br(l, {
2662
2683
  date: s,
2663
2684
  value: r,
2664
2685
  onChange: e.onTimeChange
@@ -2689,13 +2710,13 @@ var wo = (
2689
2710
  );
2690
2711
  }, n;
2691
2712
  })(X)
2692
- ), bo = (
2713
+ ), ko = (
2693
2714
  /** @class */
2694
2715
  (function(o) {
2695
2716
  Z(n, o);
2696
2717
  function n() {
2697
2718
  var t = o !== null && o.apply(this, arguments) || this;
2698
- return t.dayEl = Me(), t.handleClick = function(e) {
2719
+ return t.dayEl = Ce(), t.handleClick = function(e) {
2699
2720
  !t.isDisabled() && t.props.onClick && t.props.onClick(e);
2700
2721
  }, t.handleMouseEnter = function(e) {
2701
2722
  !t.isDisabled() && t.props.onMouseEnter && t.props.onMouseEnter(e);
@@ -2703,7 +2724,7 @@ var wo = (
2703
2724
  var r, a, s = e.key;
2704
2725
  s === y.Space && (e.preventDefault(), e.key = y.Enter), (a = (r = t.props).handleOnKeyDown) === null || a === void 0 || a.call(r, e);
2705
2726
  }, t.isSameDay = function(e) {
2706
- return P(t.props.day, e);
2727
+ return T(t.props.day, e);
2707
2728
  }, t.isKeyboardSelected = function() {
2708
2729
  var e;
2709
2730
  if (t.props.disabledKeyboardNavigation)
@@ -2729,39 +2750,39 @@ var wo = (
2729
2750
  excludeDateIntervals: t.props.excludeDateIntervals
2730
2751
  });
2731
2752
  }, t.isStartOfWeek = function() {
2732
- return P(t.props.day, ke(t.props.day, t.props.locale, t.props.calendarStartDay));
2753
+ return T(t.props.day, Me(t.props.day, t.props.locale, t.props.calendarStartDay));
2733
2754
  }, t.isSameWeek = function(e) {
2734
- return t.props.showWeekPicker && P(e, ke(t.props.day, t.props.locale, t.props.calendarStartDay));
2755
+ return t.props.showWeekPicker && T(e, Me(t.props.day, t.props.locale, t.props.calendarStartDay));
2735
2756
  }, t.isSameDayOrWeek = function(e) {
2736
2757
  return t.isSameDay(e) || t.isSameWeek(e);
2737
2758
  }, t.getHighLightedClass = function() {
2738
2759
  var e = t.props, r = e.day, a = e.highlightDates;
2739
2760
  if (!a)
2740
2761
  return !1;
2741
- var s = A(r, "MM.dd.yyyy");
2762
+ var s = W(r, "MM.dd.yyyy");
2742
2763
  return a.get(s);
2743
2764
  }, t.getHolidaysClass = function() {
2744
2765
  var e, r = t.props, a = r.day, s = r.holidays;
2745
2766
  if (!s)
2746
2767
  return [void 0];
2747
- var i = A(a, "MM.dd.yyyy");
2768
+ var i = W(a, "MM.dd.yyyy");
2748
2769
  return s.has(i) ? [(e = s.get(i)) === null || e === void 0 ? void 0 : e.className] : [void 0];
2749
2770
  }, t.isInRange = function() {
2750
2771
  var e = t.props, r = e.day, a = e.startDate, s = e.endDate;
2751
- return !a || !s ? !1 : xe(r, a, s);
2772
+ return !a || !s ? !1 : Ee(r, a, s);
2752
2773
  }, t.isInSelectingRange = function() {
2753
2774
  var e, r = t.props, a = r.day, s = r.selectsStart, i = r.selectsEnd, l = r.selectsRange, u = r.selectsDisabledDaysInRange, c = r.startDate, d = r.swapRange, p = r.endDate, f = (e = t.props.selectingDate) !== null && e !== void 0 ? e : t.props.preSelection;
2754
2775
  if (!(s || i || l) || !f || !u && t.isDisabled())
2755
2776
  return !1;
2756
2777
  if (s && p && (pe(f, p) || Pe(f, p)))
2757
- return xe(a, f, p);
2758
- if (i && c && (Ce(f, c) || Pe(f, c)))
2759
- return xe(a, c, f);
2778
+ return Ee(a, f, p);
2779
+ if (i && c && (Se(f, c) || Pe(f, c)))
2780
+ return Ee(a, c, f);
2760
2781
  if (l && c && !p) {
2761
- if (Pe(f, c) || Ce(f, c))
2762
- return xe(a, c, f);
2782
+ if (Pe(f, c) || Se(f, c))
2783
+ return Ee(a, c, f);
2763
2784
  if (d && pe(f, c))
2764
- return xe(a, f, c);
2785
+ return Ee(a, f, c);
2765
2786
  }
2766
2787
  return !1;
2767
2788
  }, t.isSelectingRangeStart = function() {
@@ -2769,28 +2790,28 @@ var wo = (
2769
2790
  if (!t.isInSelectingRange())
2770
2791
  return !1;
2771
2792
  var r = t.props, a = r.day, s = r.startDate, i = r.selectsStart, l = r.swapRange, u = r.selectsRange, c = (e = t.props.selectingDate) !== null && e !== void 0 ? e : t.props.preSelection;
2772
- return i ? P(a, c) : u && l && s && c ? P(a, pe(c, s) ? c : s) : P(a, s);
2793
+ return i ? T(a, c) : u && l && s && c ? T(a, pe(c, s) ? c : s) : T(a, s);
2773
2794
  }, t.isSelectingRangeEnd = function() {
2774
2795
  var e;
2775
2796
  if (!t.isInSelectingRange())
2776
2797
  return !1;
2777
2798
  var r = t.props, a = r.day, s = r.endDate, i = r.selectsEnd, l = r.selectsRange, u = r.swapRange, c = r.startDate, d = (e = t.props.selectingDate) !== null && e !== void 0 ? e : t.props.preSelection;
2778
- return i ? P(a, d) : l && u && c && d ? P(a, pe(d, c) ? c : d) : l ? P(a, d) : P(a, s);
2799
+ return i ? T(a, d) : l && u && c && d ? T(a, pe(d, c) ? c : d) : l ? T(a, d) : T(a, s);
2779
2800
  }, t.isRangeStart = function() {
2780
2801
  var e = t.props, r = e.day, a = e.startDate, s = e.endDate;
2781
- return !a || !s ? !1 : P(a, r);
2802
+ return !a || !s ? !1 : T(a, r);
2782
2803
  }, t.isRangeEnd = function() {
2783
2804
  var e = t.props, r = e.day, a = e.startDate, s = e.endDate;
2784
- return !a || !s ? !1 : P(s, r);
2805
+ return !a || !s ? !1 : T(s, r);
2785
2806
  }, t.isWeekend = function() {
2786
- var e = bn(t.props.day);
2807
+ var e = _n(t.props.day);
2787
2808
  return e === 0 || e === 6;
2788
2809
  }, t.isAfterMonth = function() {
2789
2810
  return t.props.month !== void 0 && (t.props.month + 1) % 12 === ee(t.props.day);
2790
2811
  }, t.isBeforeMonth = function() {
2791
2812
  return t.props.month !== void 0 && (ee(t.props.day) + 1) % 12 === t.props.month;
2792
2813
  }, t.isCurrentDay = function() {
2793
- return t.isSameDay(O());
2814
+ return t.isSameDay(N());
2794
2815
  }, t.isSelected = function() {
2795
2816
  var e;
2796
2817
  return t.props.selectsMultiple ? (e = t.props.selectedDates) === null || e === void 0 ? void 0 : e.some(function(r) {
@@ -2798,7 +2819,7 @@ var wo = (
2798
2819
  }) : t.isSameDayOrWeek(t.props.selected);
2799
2820
  }, t.getClassNames = function(e) {
2800
2821
  var r = t.props.dayClassName ? t.props.dayClassName(e) : void 0;
2801
- return G("react-datepicker__day", r, "react-datepicker__day--" + no(t.props.day), {
2822
+ return G("react-datepicker__day", r, "react-datepicker__day--" + oo(t.props.day), {
2802
2823
  "react-datepicker__day--disabled": t.isDisabled(),
2803
2824
  "react-datepicker__day--excluded": t.isExcluded(),
2804
2825
  "react-datepicker__day--selected": t.isSelected(),
@@ -2815,17 +2836,17 @@ var wo = (
2815
2836
  }, t.getHighLightedClass(), t.getHolidaysClass());
2816
2837
  }, t.getAriaLabel = function() {
2817
2838
  var e = t.props, r = e.day, a = e.ariaLabelPrefixWhenEnabled, s = a === void 0 ? "Choose" : a, i = e.ariaLabelPrefixWhenDisabled, l = i === void 0 ? "Not available" : i, u = t.isDisabled() || t.isExcluded() ? l : s;
2818
- return "".concat(u, " ").concat(A(r, "PPPP", t.props.locale));
2839
+ return "".concat(u, " ").concat(W(r, "PPPP", t.props.locale));
2819
2840
  }, t.getTitle = function() {
2820
- var e = t.props, r = e.day, a = e.holidays, s = a === void 0 ? /* @__PURE__ */ new Map() : a, i = e.excludeDates, l = A(r, "MM.dd.yyyy"), u = [];
2841
+ var e = t.props, r = e.day, a = e.holidays, s = a === void 0 ? /* @__PURE__ */ new Map() : a, i = e.excludeDates, l = W(r, "MM.dd.yyyy"), u = [];
2821
2842
  return s.has(l) && u.push.apply(u, s.get(l).holidayNames), t.isExcluded() && u.push(i?.filter(function(c) {
2822
- return c instanceof Date ? P(c, r) : P(c?.date, r);
2843
+ return c instanceof Date ? T(c, r) : T(c?.date, r);
2823
2844
  }).map(function(c) {
2824
2845
  if (!(c instanceof Date))
2825
2846
  return c?.message;
2826
2847
  })), u.join(", ");
2827
2848
  }, t.getTabIndex = function() {
2828
- var e = t.props.selected, r = t.props.preSelection, a = !(t.props.showWeekPicker && (t.props.showWeekNumber || !t.isStartOfWeek())) && (t.isKeyboardSelected() || t.isSameDay(e) && P(r, e)) ? 0 : -1;
2849
+ var e = t.props.selected, r = t.props.preSelection, a = !(t.props.showWeekPicker && (t.props.showWeekNumber || !t.isStartOfWeek())) && (t.isKeyboardSelected() || t.isSameDay(e) && T(r, e)) ? 0 : -1;
2829
2850
  return a;
2830
2851
  }, t.handleFocusDay = function() {
2831
2852
  var e;
@@ -2861,24 +2882,24 @@ var wo = (
2861
2882
  );
2862
2883
  }, n;
2863
2884
  })(X)
2864
- ), _o = (
2885
+ ), Mo = (
2865
2886
  /** @class */
2866
2887
  (function(o) {
2867
2888
  Z(n, o);
2868
2889
  function n() {
2869
2890
  var t = o !== null && o.apply(this, arguments) || this;
2870
- return t.weekNumberEl = Me(), t.handleClick = function(e) {
2891
+ return t.weekNumberEl = Ce(), t.handleClick = function(e) {
2871
2892
  t.props.onClick && t.props.onClick(e);
2872
2893
  }, t.handleOnKeyDown = function(e) {
2873
2894
  var r, a, s = e.key;
2874
2895
  s === y.Space && (e.preventDefault(), e.key = y.Enter), (a = (r = t.props).handleOnKeyDown) === null || a === void 0 || a.call(r, e);
2875
2896
  }, t.isKeyboardSelected = function() {
2876
- return !t.props.disabledKeyboardNavigation && !P(t.props.date, t.props.selected) && P(t.props.date, t.props.preSelection);
2897
+ return !t.props.disabledKeyboardNavigation && !T(t.props.date, t.props.selected) && T(t.props.date, t.props.preSelection);
2877
2898
  }, t.getTabIndex = function() {
2878
- return t.props.showWeekPicker && t.props.showWeekNumber && (t.isKeyboardSelected() || P(t.props.date, t.props.selected) && P(t.props.preSelection, t.props.selected)) ? 0 : -1;
2899
+ return t.props.showWeekPicker && t.props.showWeekNumber && (t.isKeyboardSelected() || T(t.props.date, t.props.selected) && T(t.props.preSelection, t.props.selected)) ? 0 : -1;
2879
2900
  }, t.handleFocusWeekNumber = function(e) {
2880
2901
  var r = !1;
2881
- t.getTabIndex() === 0 && !e?.isInputFocused && P(t.props.date, t.props.preSelection) && ((!document.activeElement || document.activeElement === document.body) && (r = !0), t.props.inline && !t.props.shouldFocusDayInline && (r = !1), t.props.containerRef && t.props.containerRef.current && t.props.containerRef.current.contains(document.activeElement) && document.activeElement && document.activeElement.classList.contains("react-datepicker__week-number") && (r = !0)), r && t.weekNumberEl.current && t.weekNumberEl.current.focus({ preventScroll: !0 });
2902
+ t.getTabIndex() === 0 && !e?.isInputFocused && T(t.props.date, t.props.preSelection) && ((!document.activeElement || document.activeElement === document.body) && (r = !0), t.props.inline && !t.props.shouldFocusDayInline && (r = !1), t.props.containerRef && t.props.containerRef.current && t.props.containerRef.current.contains(document.activeElement) && document.activeElement && document.activeElement.classList.contains("react-datepicker__week-number") && (r = !0)), r && t.weekNumberEl.current && t.weekNumberEl.current.focus({ preventScroll: !0 });
2882
2903
  }, t;
2883
2904
  }
2884
2905
  return Object.defineProperty(n, "defaultProps", {
@@ -2897,12 +2918,12 @@ var wo = (
2897
2918
  var t = this.props, e = t.weekNumber, r = t.isWeekDisabled, a = t.ariaLabelPrefix, s = a === void 0 ? n.defaultProps.ariaLabelPrefix : a, i = t.onClick, l = {
2898
2919
  "react-datepicker__week-number": !0,
2899
2920
  "react-datepicker__week-number--clickable": !!i && !r,
2900
- "react-datepicker__week-number--selected": !!i && P(this.props.date, this.props.selected)
2921
+ "react-datepicker__week-number--selected": !!i && T(this.props.date, this.props.selected)
2901
2922
  };
2902
2923
  return v.createElement("div", { ref: this.weekNumberEl, className: G(l), "aria-label": "".concat(s, " ").concat(this.props.weekNumber), onClick: this.handleClick, onKeyDown: this.handleOnKeyDown, tabIndex: this.getTabIndex(), role: "gridcell" }, e);
2903
2924
  }, n;
2904
2925
  })(X)
2905
- ), ko = (
2926
+ ), Co = (
2906
2927
  /** @class */
2907
2928
  (function(o) {
2908
2929
  Z(n, o);
@@ -2934,7 +2955,7 @@ var wo = (
2934
2955
  }
2935
2956
  typeof t.props.onWeekSelect == "function" && t.props.onWeekSelect(u, r, a), t.props.showWeekPicker && t.handleDayClick(u, a), ((s = t.props.shouldCloseOnSelect) !== null && s !== void 0 ? s : n.defaultProps.shouldCloseOnSelect) && ((l = (i = t.props).setOpen) === null || l === void 0 || l.call(i, !1));
2936
2957
  }, t.formatWeekNumber = function(e) {
2937
- return t.props.formatWeekNumber ? t.props.formatWeekNumber(e) : ro(e);
2958
+ return t.props.formatWeekNumber ? t.props.formatWeekNumber(e) : ao(e);
2938
2959
  }, t.isWeekDisabled = function() {
2939
2960
  for (var e = t.startOfWeek(), r = ve(e, 6), a = new Date(e); a <= r; ) {
2940
2961
  if (!t.isDisabled(a))
@@ -2946,16 +2967,16 @@ var wo = (
2946
2967
  var e = t.startOfWeek(), r = [], a = t.formatWeekNumber(e);
2947
2968
  if (t.props.showWeekNumber) {
2948
2969
  var s = t.props.onWeekSelect || t.props.showWeekPicker ? t.handleWeekClick.bind(t, e, a) : void 0;
2949
- r.push(v.createElement(_o, x({ key: "W" }, n.defaultProps, t.props, { weekNumber: a, isWeekDisabled: t.isWeekDisabled(), date: e, onClick: s })));
2970
+ r.push(v.createElement(Mo, E({ key: "W" }, n.defaultProps, t.props, { weekNumber: a, isWeekDisabled: t.isWeekDisabled(), date: e, onClick: s })));
2950
2971
  }
2951
2972
  return r.concat([0, 1, 2, 3, 4, 5, 6].map(function(i) {
2952
2973
  var l = ve(e, i);
2953
- return v.createElement(bo, x({}, n.defaultProps, t.props, { ariaLabelPrefixWhenEnabled: t.props.chooseDayAriaLabelPrefix, ariaLabelPrefixWhenDisabled: t.props.disabledDayAriaLabelPrefix, key: l.valueOf(), day: l, onClick: t.handleDayClick.bind(t, l), onMouseEnter: t.handleDayMouseEnter.bind(t, l) }));
2974
+ return v.createElement(ko, E({}, n.defaultProps, t.props, { ariaLabelPrefixWhenEnabled: t.props.chooseDayAriaLabelPrefix, ariaLabelPrefixWhenDisabled: t.props.disabledDayAriaLabelPrefix, key: l.valueOf(), day: l, onClick: t.handleDayClick.bind(t, l), onMouseEnter: t.handleDayMouseEnter.bind(t, l) }));
2954
2975
  }));
2955
2976
  }, t.startOfWeek = function() {
2956
- return ke(t.props.day, t.props.locale, t.props.calendarStartDay);
2977
+ return Me(t.props.day, t.props.locale, t.props.calendarStartDay);
2957
2978
  }, t.isKeyboardSelected = function() {
2958
- return !t.props.disabledKeyboardNavigation && !P(t.startOfWeek(), t.props.selected) && P(t.startOfWeek(), t.props.preSelection);
2979
+ return !t.props.disabledKeyboardNavigation && !T(t.startOfWeek(), t.props.selected) && T(t.startOfWeek(), t.props.preSelection);
2959
2980
  }, t;
2960
2981
  }
2961
2982
  return Object.defineProperty(n, "defaultProps", {
@@ -2969,17 +2990,17 @@ var wo = (
2969
2990
  }), n.prototype.render = function() {
2970
2991
  var t = {
2971
2992
  "react-datepicker__week": !0,
2972
- "react-datepicker__week--selected": P(this.startOfWeek(), this.props.selected),
2993
+ "react-datepicker__week--selected": T(this.startOfWeek(), this.props.selected),
2973
2994
  "react-datepicker__week--keyboard-selected": this.isKeyboardSelected()
2974
2995
  }, e = this.props.weekClassName ? this.props.weekClassName(this.startOfWeek()) : void 0;
2975
2996
  return v.createElement("div", { className: G(t, e), role: "row" }, this.renderDays());
2976
2997
  }, n;
2977
2998
  })(X)
2978
- ), Fe, Mo = 6, Ie = {
2999
+ ), Fe, So = 6, Ie = {
2979
3000
  TWO_COLUMNS: "two_columns",
2980
3001
  THREE_COLUMNS: "three_columns",
2981
3002
  FOUR_COLUMNS: "four_columns"
2982
- }, gt = (Fe = {}, Fe[Ie.TWO_COLUMNS] = {
3003
+ }, yt = (Fe = {}, Fe[Ie.TWO_COLUMNS] = {
2983
3004
  grid: [
2984
3005
  [0, 1],
2985
3006
  [2, 3],
@@ -3005,19 +3026,19 @@ var wo = (
3005
3026
  ],
3006
3027
  verticalNavigationOffset: 4
3007
3028
  }, Fe), Je = 1;
3008
- function cr(o, n) {
3029
+ function ur(o, n) {
3009
3030
  return o ? Ie.FOUR_COLUMNS : n ? Ie.TWO_COLUMNS : Ie.THREE_COLUMNS;
3010
3031
  }
3011
- var Co = (
3032
+ var xo = (
3012
3033
  /** @class */
3013
3034
  (function(o) {
3014
3035
  Z(n, o);
3015
3036
  function n() {
3016
3037
  var t = o !== null && o.apply(this, arguments) || this;
3017
3038
  return t.MONTH_REFS = he([], Array(12), !0).map(function() {
3018
- return Me();
3039
+ return Ce();
3019
3040
  }), t.QUARTER_REFS = he([], Array(4), !0).map(function() {
3020
- return Me();
3041
+ return Ce();
3021
3042
  }), t.isDisabled = function(e) {
3022
3043
  return oe(e, {
3023
3044
  minDate: t.props.minDate,
@@ -3048,13 +3069,13 @@ var Co = (
3048
3069
  return !s || !i ? !1 : J(re(a, e), s);
3049
3070
  }, t.isRangeStartQuarter = function(e) {
3050
3071
  var r = t.props, a = r.day, s = r.startDate, i = r.endDate;
3051
- return !s || !i ? !1 : ft(Re(a, e), s);
3072
+ return !s || !i ? !1 : ht(Re(a, e), s);
3052
3073
  }, t.isRangeEndMonth = function(e) {
3053
3074
  var r = t.props, a = r.day, s = r.startDate, i = r.endDate;
3054
3075
  return !s || !i ? !1 : J(re(a, e), i);
3055
3076
  }, t.isRangeEndQuarter = function(e) {
3056
3077
  var r = t.props, a = r.day, s = r.startDate, i = r.endDate;
3057
- return !s || !i ? !1 : ft(Re(a, e), i);
3078
+ return !s || !i ? !1 : ht(Re(a, e), i);
3058
3079
  }, t.isInSelectingRangeMonth = function(e) {
3059
3080
  var r, a = t.props, s = a.day, i = a.selectsStart, l = a.selectsEnd, u = a.selectsRange, c = a.startDate, d = a.endDate, p = (r = t.props.selectingDate) !== null && r !== void 0 ? r : t.props.preSelection;
3060
3081
  return !(i || l || u) || !p ? !1 : i && d ? Ge(p, d, e, s) : l && c || u && c && !d ? Ge(c, p, e, s) : !1;
@@ -3077,17 +3098,17 @@ var Co = (
3077
3098
  var r = t.props.day, a = ve(e, 6);
3078
3099
  return J(e, r) || J(a, r);
3079
3100
  }, t.isCurrentMonth = function(e, r) {
3080
- return E(e) === E(O()) && r === ee(O());
3101
+ return P(e) === P(N()) && r === ee(N());
3081
3102
  }, t.isCurrentQuarter = function(e, r) {
3082
- return E(e) === E(O()) && r === we(O());
3103
+ return P(e) === P(N()) && r === be(N());
3083
3104
  }, t.isSelectedMonth = function(e, r, a) {
3084
- return ee(a) === r && E(e) === E(a);
3105
+ return ee(a) === r && P(e) === P(a);
3085
3106
  }, t.isSelectMonthInList = function(e, r, a) {
3086
3107
  return a.some(function(s) {
3087
3108
  return t.isSelectedMonth(e, r, s);
3088
3109
  });
3089
3110
  }, t.isSelectedQuarter = function(e, r, a) {
3090
- return we(a) === r && E(e) === E(a);
3111
+ return be(a) === r && P(e) === P(a);
3091
3112
  }, t.isSelectQuarterInList = function(e, r, a) {
3092
3113
  return a.some(function(s) {
3093
3114
  return t.isSelectedQuarter(e, r, s);
@@ -3098,20 +3119,20 @@ var Co = (
3098
3119
  return t.isSelectedMonth(r, l, u);
3099
3120
  }) : !!a && t.isSelectedMonth(r, l, a);
3100
3121
  }, t.isQuarterSelected = function() {
3101
- var e = t.props, r = e.day, a = e.selected, s = e.selectedDates, i = e.selectsMultiple, l = we(r);
3122
+ var e = t.props, r = e.day, a = e.selected, s = e.selectedDates, i = e.selectsMultiple, l = be(r);
3102
3123
  return i ? s?.some(function(u) {
3103
3124
  return t.isSelectedQuarter(r, l, u);
3104
3125
  }) : !!a && t.isSelectedQuarter(r, l, a);
3105
3126
  }, t.renderWeeks = function() {
3106
3127
  if (!ne(t.props.day))
3107
3128
  return [];
3108
- for (var e = [], r = t.props.fixedHeight, a = 0, s = !1, i = ke(ye(t.props.day), t.props.locale, t.props.calendarStartDay), l = function(m) {
3109
- return t.props.showWeekPicker ? ke(m, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
3129
+ for (var e = [], r = t.props.fixedHeight, a = 0, s = !1, i = Me(we(t.props.day), t.props.locale, t.props.calendarStartDay), l = function(m) {
3130
+ return t.props.showWeekPicker ? Me(m, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
3110
3131
  }, u = function(m) {
3111
- return t.props.showWeekPicker ? ke(m, t.props.locale, t.props.calendarStartDay) : t.props.selected;
3112
- }, c = t.props.selected ? u(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(v.createElement(ko, x({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: a, day: i, month: ee(t.props.day), onDayClick: t.handleDayClick, onDayMouseEnter: t.handleDayMouseEnter, selected: c, preSelection: d, showWeekNumber: t.props.showWeekNumbers }))), !s; ) {
3132
+ return t.props.showWeekPicker ? Me(m, t.props.locale, t.props.calendarStartDay) : t.props.selected;
3133
+ }, c = t.props.selected ? u(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(v.createElement(Co, E({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: a, day: i, month: ee(t.props.day), onDayClick: t.handleDayClick, onDayMouseEnter: t.handleDayMouseEnter, selected: c, preSelection: d, showWeekNumber: t.props.showWeekNumbers }))), !s; ) {
3113
3134
  a++, i = it(i, 1);
3114
- var p = r && a >= Mo, f = !r && !t.isWeekInMonth(i);
3135
+ var p = r && a >= So, f = !r && !t.isWeekInMonth(i);
3115
3136
  if (p || f)
3116
3137
  if (t.props.peekNextMonth)
3117
3138
  s = !0;
@@ -3121,55 +3142,55 @@ var Co = (
3121
3142
  return e;
3122
3143
  }, t.onMonthClick = function(e, r) {
3123
3144
  var a = t.isMonthDisabledForLabelDate(r), s = a.isDisabled, i = a.labelDate;
3124
- s || t.handleDayClick(ye(i), e);
3145
+ s || t.handleDayClick(we(i), e);
3125
3146
  }, t.onMonthMouseEnter = function(e) {
3126
3147
  var r = t.isMonthDisabledForLabelDate(e), a = r.isDisabled, s = r.labelDate;
3127
- a || t.handleDayMouseEnter(ye(s));
3148
+ a || t.handleDayMouseEnter(we(s));
3128
3149
  }, t.handleMonthNavigation = function(e, r) {
3129
3150
  var a, s, i, l;
3130
3151
  (s = (a = t.props).setPreSelection) === null || s === void 0 || s.call(a, r), (l = (i = t.MONTH_REFS[e]) === null || i === void 0 ? void 0 : i.current) === null || l === void 0 || l.focus();
3131
3152
  }, t.handleKeyboardNavigation = function(e, r, a) {
3132
3153
  var s, i = t.props, l = i.selected, u = i.preSelection, c = i.setPreSelection, d = i.minDate, p = i.maxDate, f = i.showFourColumnMonthYearPicker, m = i.showTwoColumnMonthYearPicker;
3133
3154
  if (u) {
3134
- var g = cr(f, m), h = t.getVerticalOffset(g), D = (s = gt[g]) === null || s === void 0 ? void 0 : s.grid, w = function(Y, C, T) {
3135
- var W, H, S = C, R = T;
3136
- switch (Y) {
3155
+ var D = ur(f, m), h = t.getVerticalOffset(D), g = (s = yt[D]) === null || s === void 0 ? void 0 : s.grid, w = function(L, k, x) {
3156
+ var A, I, C = k, O = x;
3157
+ switch (L) {
3137
3158
  case y.ArrowRight:
3138
- S = me(C, Je), R = T === 11 ? 0 : T + Je;
3159
+ C = me(k, Je), O = x === 11 ? 0 : x + Je;
3139
3160
  break;
3140
3161
  case y.ArrowLeft:
3141
- S = Te(C, Je), R = T === 0 ? 11 : T - Je;
3162
+ C = Te(k, Je), O = x === 0 ? 11 : x - Je;
3142
3163
  break;
3143
3164
  case y.ArrowUp:
3144
- S = Te(C, h), R = !((W = D?.[0]) === null || W === void 0) && W.includes(T) ? T + 12 - h : T - h;
3165
+ C = Te(k, h), O = !((A = g?.[0]) === null || A === void 0) && A.includes(x) ? x + 12 - h : x - h;
3145
3166
  break;
3146
3167
  case y.ArrowDown:
3147
- S = me(C, h), R = !((H = D?.[D.length - 1]) === null || H === void 0) && H.includes(T) ? T - 12 + h : T + h;
3168
+ C = me(k, h), O = !((I = g?.[g.length - 1]) === null || I === void 0) && I.includes(x) ? x - 12 + h : x + h;
3148
3169
  break;
3149
3170
  }
3150
- return { newCalculatedDate: S, newCalculatedMonth: R };
3151
- }, b = function(Y, C, T) {
3152
- for (var W = 40, H = Y, S = !1, R = 0, K = w(H, C, T), j = K.newCalculatedDate, U = K.newCalculatedMonth; !S; ) {
3153
- if (R >= W) {
3154
- j = C, U = T;
3171
+ return { newCalculatedDate: C, newCalculatedMonth: O };
3172
+ }, b = function(L, k, x) {
3173
+ for (var A = 40, I = L, C = !1, O = 0, B = w(I, k, x), j = B.newCalculatedDate, U = B.newCalculatedMonth; !C; ) {
3174
+ if (O >= A) {
3175
+ j = k, U = x;
3155
3176
  break;
3156
3177
  }
3157
3178
  if (d && j < d) {
3158
- H = y.ArrowRight;
3159
- var F = w(H, j, U);
3160
- j = F.newCalculatedDate, U = F.newCalculatedMonth;
3179
+ I = y.ArrowRight;
3180
+ var H = w(I, j, U);
3181
+ j = H.newCalculatedDate, U = H.newCalculatedMonth;
3161
3182
  }
3162
3183
  if (p && j > p) {
3163
- H = y.ArrowLeft;
3164
- var F = w(H, j, U);
3165
- j = F.newCalculatedDate, U = F.newCalculatedMonth;
3184
+ I = y.ArrowLeft;
3185
+ var H = w(I, j, U);
3186
+ j = H.newCalculatedDate, U = H.newCalculatedMonth;
3166
3187
  }
3167
- if (uo(j, t.props)) {
3168
- var F = w(H, j, U);
3169
- j = F.newCalculatedDate, U = F.newCalculatedMonth;
3188
+ if (fo(j, t.props)) {
3189
+ var H = w(I, j, U);
3190
+ j = H.newCalculatedDate, U = H.newCalculatedMonth;
3170
3191
  } else
3171
- S = !0;
3172
- R++;
3192
+ C = !0;
3193
+ O++;
3173
3194
  }
3174
3195
  return { newCalculatedDate: j, newCalculatedMonth: U };
3175
3196
  };
@@ -3177,28 +3198,28 @@ var Co = (
3177
3198
  t.isMonthDisabled(a) || (t.onMonthClick(e, a), c?.(l));
3178
3199
  return;
3179
3200
  }
3180
- var _ = b(r, u, a), I = _.newCalculatedDate, L = _.newCalculatedMonth;
3201
+ var _ = b(r, u, a), R = _.newCalculatedDate, F = _.newCalculatedMonth;
3181
3202
  switch (r) {
3182
3203
  case y.ArrowRight:
3183
3204
  case y.ArrowLeft:
3184
3205
  case y.ArrowUp:
3185
3206
  case y.ArrowDown:
3186
- t.handleMonthNavigation(L, I);
3207
+ t.handleMonthNavigation(F, R);
3187
3208
  break;
3188
3209
  }
3189
3210
  }
3190
3211
  }, t.getVerticalOffset = function(e) {
3191
3212
  var r, a;
3192
- return (a = (r = gt[e]) === null || r === void 0 ? void 0 : r.verticalNavigationOffset) !== null && a !== void 0 ? a : 0;
3213
+ return (a = (r = yt[e]) === null || r === void 0 ? void 0 : r.verticalNavigationOffset) !== null && a !== void 0 ? a : 0;
3193
3214
  }, t.onMonthKeyDown = function(e, r) {
3194
3215
  var a = t.props, s = a.disabledKeyboardNavigation, i = a.handleOnMonthKeyDown, l = e.key;
3195
3216
  l !== y.Tab && e.preventDefault(), s || t.handleKeyboardNavigation(e, l, r), i && i(e);
3196
3217
  }, t.onQuarterClick = function(e, r) {
3197
3218
  var a = Re(t.props.day, r);
3198
- ze(a, t.props) || t.handleDayClick(Gt(a), e);
3219
+ ze(a, t.props) || t.handleDayClick(zt(a), e);
3199
3220
  }, t.onQuarterMouseEnter = function(e) {
3200
3221
  var r = Re(t.props.day, e);
3201
- ze(r, t.props) || t.handleDayMouseEnter(Gt(r));
3222
+ ze(r, t.props) || t.handleDayMouseEnter(zt(r));
3202
3223
  }, t.handleQuarterNavigation = function(e, r) {
3203
3224
  var a, s, i, l;
3204
3225
  t.isDisabled(r) || t.isExcluded(r) || ((s = (a = t.props).setPreSelection) === null || s === void 0 || s.call(a, r), (l = (i = t.QUARTER_REFS[e - 1]) === null || i === void 0 ? void 0 : i.current) === null || l === void 0 || l.focus());
@@ -3217,7 +3238,7 @@ var Co = (
3217
3238
  case y.ArrowLeft:
3218
3239
  if (!t.props.preSelection)
3219
3240
  break;
3220
- t.handleQuarterNavigation(r === 1 ? 4 : r - 1, Er(t.props.preSelection));
3241
+ t.handleQuarterNavigation(r === 1 ? 4 : r - 1, Pr(t.props.preSelection));
3221
3242
  break;
3222
3243
  }
3223
3244
  }, t.isMonthDisabledForLabelDate = function(e) {
@@ -3226,7 +3247,7 @@ var Co = (
3226
3247
  isDisabled: !0,
3227
3248
  labelDate: re(s, e)
3228
3249
  } : {
3229
- isDisabled: (r = (l || u || c || d) && Yr(p, t.props)) !== null && r !== void 0 ? r : !1,
3250
+ isDisabled: (r = (l || u || c || d) && Lr(p, t.props)) !== null && r !== void 0 ? r : !1,
3230
3251
  labelDate: p
3231
3252
  };
3232
3253
  }, t.isMonthDisabled = function(e) {
@@ -3254,16 +3275,16 @@ var Co = (
3254
3275
  }, t.getQuarterTabIndex = function(e) {
3255
3276
  if (t.props.preSelection == null)
3256
3277
  return "-1";
3257
- var r = we(t.props.preSelection), a = ze(t.props.day, t.props), s = e === r && !(a || t.props.disabledKeyboardNavigation) ? "0" : "-1";
3278
+ var r = be(t.props.preSelection), a = ze(t.props.day, t.props), s = e === r && !(a || t.props.disabledKeyboardNavigation) ? "0" : "-1";
3258
3279
  return s;
3259
3280
  }, t.getAriaLabel = function(e) {
3260
3281
  var r = t.props, a = r.chooseDayAriaLabelPrefix, s = a === void 0 ? "Choose" : a, i = r.disabledDayAriaLabelPrefix, l = i === void 0 ? "Not available" : i, u = r.day, c = r.locale, d = re(u, e), p = t.isDisabled(d) || t.isExcluded(d) ? l : s;
3261
- return "".concat(p, " ").concat(A(d, "MMMM yyyy", c));
3282
+ return "".concat(p, " ").concat(W(d, "MMMM yyyy", c));
3262
3283
  }, t.getQuarterClassNames = function(e) {
3263
- var r = t.props, a = r.day, s = r.startDate, i = r.endDate, l = r.minDate, u = r.maxDate, c = r.excludeDates, d = r.includeDates, p = r.filterDate, f = r.preSelection, m = r.disabledKeyboardNavigation, g = r.disabled, h = (l || u || c || d || p || g) && ze(Re(a, e), t.props), D = t.getSelection();
3284
+ var r = t.props, a = r.day, s = r.startDate, i = r.endDate, l = r.minDate, u = r.maxDate, c = r.excludeDates, d = r.includeDates, p = r.filterDate, f = r.preSelection, m = r.disabledKeyboardNavigation, D = r.disabled, h = (l || u || c || d || p || D) && ze(Re(a, e), t.props), g = t.getSelection();
3264
3285
  return G("react-datepicker__quarter-text", "react-datepicker__quarter-".concat(e), {
3265
3286
  "react-datepicker__quarter-text--disabled": h,
3266
- "react-datepicker__quarter-text--selected": D ? t.isSelectQuarterInList(a, e, D) : void 0,
3287
+ "react-datepicker__quarter-text--selected": g ? t.isSelectQuarterInList(a, e, g) : void 0,
3267
3288
  "react-datepicker__quarter-text--keyboard-selected": !m && f && t.isSelectedQuarter(a, e, f) && !t.isQuarterSelected() && !h,
3268
3289
  "react-datepicker__quarter-text--in-selecting-range": t.isInSelectingRangeQuarter(e),
3269
3290
  "react-datepicker__quarter-text--in-range": s && i ? Ze(s, i, e, a) : void 0,
@@ -3272,19 +3293,19 @@ var Co = (
3272
3293
  "react-datepicker__quarter-text--today": t.isCurrentQuarter(a, e)
3273
3294
  });
3274
3295
  }, t.getMonthContent = function(e) {
3275
- var r = t.props, a = r.showFullMonthYearPicker, s = r.renderMonthContent, i = r.locale, l = r.day, u = Ir(e, i), c = Rt(e, i);
3296
+ var r = t.props, a = r.showFullMonthYearPicker, s = r.renderMonthContent, i = r.locale, l = r.day, u = Yr(e, i), c = Rt(e, i);
3276
3297
  return s ? s(e, u, c, l) : a ? c : u;
3277
3298
  }, t.getQuarterContent = function(e) {
3278
- var r, a = t.props, s = a.renderQuarterContent, i = a.locale, l = co(e, i);
3299
+ var r, a = t.props, s = a.renderQuarterContent, i = a.locale, l = po(e, i);
3279
3300
  return (r = s?.(e, l)) !== null && r !== void 0 ? r : l;
3280
3301
  }, t.renderMonths = function() {
3281
- var e, r = t.props, a = r.showTwoColumnMonthYearPicker, s = r.showFourColumnMonthYearPicker, i = r.day, l = r.selected, u = (e = gt[cr(s, a)]) === null || e === void 0 ? void 0 : e.grid;
3302
+ var e, r = t.props, a = r.showTwoColumnMonthYearPicker, s = r.showFourColumnMonthYearPicker, i = r.day, l = r.selected, u = (e = yt[ur(s, a)]) === null || e === void 0 ? void 0 : e.grid;
3282
3303
  return u?.map(function(c, d) {
3283
3304
  return v.createElement("div", { className: "react-datepicker__month-wrapper", key: d }, c.map(function(p, f) {
3284
3305
  return v.createElement("div", { ref: t.MONTH_REFS[p], key: f, onClick: function(m) {
3285
3306
  t.onMonthClick(m, p);
3286
3307
  }, onKeyDown: function(m) {
3287
- Hr(m) && (m.preventDefault(), m.key = y.Enter), t.onMonthKeyDown(m, p);
3308
+ Wr(m) && (m.preventDefault(), m.key = y.Enter), t.onMonthKeyDown(m, p);
3288
3309
  }, onMouseEnter: t.props.usePointerEvent ? void 0 : function() {
3289
3310
  return t.onMonthMouseEnter(p);
3290
3311
  }, onPointerEnter: t.props.usePointerEvent ? function() {
@@ -3319,7 +3340,7 @@ var Co = (
3319
3340
  if (e)
3320
3341
  return [e];
3321
3342
  }, n.prototype.render = function() {
3322
- var t = this.props, e = t.showMonthYearPicker, r = t.showQuarterYearPicker, a = t.day, s = t.ariaLabelPrefix, i = s === void 0 ? "Month " : s, l = i ? i.trim() + " " : "", u = ne(a) ? "".concat(l).concat(A(a, "MMMM, yyyy", this.props.locale)) : "", c = e || r;
3343
+ var t = this.props, e = t.showMonthYearPicker, r = t.showQuarterYearPicker, a = t.day, s = t.ariaLabelPrefix, i = s === void 0 ? "Month " : s, l = i ? i.trim() + " " : "", u = ne(a) ? "".concat(l).concat(W(a, "MMMM, yyyy", this.props.locale)) : "", c = e || r;
3323
3344
  return c ? v.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": u, role: "listbox" }, e ? this.renderMonths() : this.renderQuarters()) : v.createElement(
3324
3345
  "div",
3325
3346
  { role: "table" },
@@ -3328,7 +3349,7 @@ var Co = (
3328
3349
  );
3329
3350
  }, n;
3330
3351
  })(X)
3331
- ), So = (
3352
+ ), Eo = (
3332
3353
  /** @class */
3333
3354
  (function(o) {
3334
3355
  Z(n, o);
@@ -3371,10 +3392,10 @@ var Co = (
3371
3392
  }, t;
3372
3393
  }
3373
3394
  return n.prototype.render = function() {
3374
- return v.createElement(vt, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
3395
+ return v.createElement(mt, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
3375
3396
  }, n;
3376
3397
  })(X)
3377
- ), xo = (
3398
+ ), Po = (
3378
3399
  /** @class */
3379
3400
  (function(o) {
3380
3401
  Z(n, o);
@@ -3398,7 +3419,7 @@ var Co = (
3398
3419
  v.createElement("span", { className: "react-datepicker__month-read-view--selected-month" }, r[t.props.month])
3399
3420
  );
3400
3421
  }, t.renderDropdown = function(e) {
3401
- return v.createElement(So, x({ key: "dropdown" }, t.props, { monthNames: e, onChange: t.onChange, onCancel: t.toggleDropdown }));
3422
+ return v.createElement(Eo, E({ key: "dropdown" }, t.props, { monthNames: e, onChange: t.onChange, onCancel: t.toggleDropdown }));
3402
3423
  }, t.renderScrollMode = function(e) {
3403
3424
  var r = t.state.dropdownVisible, a = [t.renderReadView(!r, e)];
3404
3425
  return r && a.unshift(t.renderDropdown(e)), a;
@@ -3412,7 +3433,7 @@ var Co = (
3412
3433
  }
3413
3434
  return n.prototype.render = function() {
3414
3435
  var t = this, e = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map(this.props.useShortMonthInDropdown ? function(a) {
3415
- return Ir(a, t.props.locale);
3436
+ return Yr(a, t.props.locale);
3416
3437
  } : function(a) {
3417
3438
  return Rt(a, t.props.locale);
3418
3439
  }), r;
@@ -3428,12 +3449,12 @@ var Co = (
3428
3449
  }, n;
3429
3450
  })(X)
3430
3451
  );
3431
- function Eo(o, n) {
3432
- for (var t = [], e = ye(o), r = ye(n); !Ce(e, r); )
3433
- t.push(O(e)), e = me(e, 1);
3452
+ function To(o, n) {
3453
+ for (var t = [], e = we(o), r = we(n); !Se(e, r); )
3454
+ t.push(N(e)), e = me(e, 1);
3434
3455
  return t;
3435
3456
  }
3436
- var Po = (
3457
+ var Oo = (
3437
3458
  /** @class */
3438
3459
  (function(o) {
3439
3460
  Z(n, o);
@@ -3441,12 +3462,12 @@ var Po = (
3441
3462
  var e = o.call(this, t) || this;
3442
3463
  return e.renderOptions = function() {
3443
3464
  return e.state.monthYearsList.map(function(r) {
3444
- var a = Mt(r), s = ce(e.props.date, r) && J(e.props.date, r);
3465
+ var a = Ct(r), s = ce(e.props.date, r) && J(e.props.date, r);
3445
3466
  return v.createElement(
3446
3467
  "div",
3447
3468
  { className: s ? "react-datepicker__month-year-option--selected_month-year" : "react-datepicker__month-year-option", key: a, onClick: e.onChange.bind(e, a), "aria-selected": s ? "true" : void 0 },
3448
3469
  s ? v.createElement("span", { className: "react-datepicker__month-year-option--selected" }, "✓") : "",
3449
- A(r, e.props.dateFormat, e.props.locale)
3470
+ W(r, e.props.dateFormat, e.props.locale)
3450
3471
  );
3451
3472
  });
3452
3473
  }, e.onChange = function(r) {
@@ -3454,7 +3475,7 @@ var Po = (
3454
3475
  }, e.handleClickOutside = function() {
3455
3476
  e.props.onCancel();
3456
3477
  }, e.state = {
3457
- monthYearsList: Eo(e.props.minDate, e.props.maxDate)
3478
+ monthYearsList: To(e.props.minDate, e.props.maxDate)
3458
3479
  }, e;
3459
3480
  }
3460
3481
  return n.prototype.render = function() {
@@ -3462,10 +3483,10 @@ var Po = (
3462
3483
  "react-datepicker__month-year-dropdown": !0,
3463
3484
  "react-datepicker__month-year-dropdown--scrollable": this.props.scrollableMonthYearDropdown
3464
3485
  });
3465
- return v.createElement(vt, { className: t, onClickOutside: this.handleClickOutside }, this.renderOptions());
3486
+ return v.createElement(mt, { className: t, onClickOutside: this.handleClickOutside }, this.renderOptions());
3466
3487
  }, n;
3467
3488
  })(X)
3468
- ), To = (
3489
+ ), No = (
3469
3490
  /** @class */
3470
3491
  (function(o) {
3471
3492
  Z(n, o);
@@ -3474,17 +3495,17 @@ var Po = (
3474
3495
  return t.state = {
3475
3496
  dropdownVisible: !1
3476
3497
  }, t.renderSelectOptions = function() {
3477
- for (var e = ye(t.props.minDate), r = ye(t.props.maxDate), a = []; !Ce(e, r); ) {
3478
- var s = Mt(e);
3479
- a.push(v.createElement("option", { key: s, value: s }, A(e, t.props.dateFormat, t.props.locale))), e = me(e, 1);
3498
+ for (var e = we(t.props.minDate), r = we(t.props.maxDate), a = []; !Se(e, r); ) {
3499
+ var s = Ct(e);
3500
+ a.push(v.createElement("option", { key: s, value: s }, W(e, t.props.dateFormat, t.props.locale))), e = me(e, 1);
3480
3501
  }
3481
3502
  return a;
3482
3503
  }, t.onSelectChange = function(e) {
3483
3504
  t.onChange(parseInt(e.target.value));
3484
3505
  }, t.renderSelectMode = function() {
3485
- return v.createElement("select", { value: Mt(ye(t.props.date)), className: "react-datepicker__month-year-select", onChange: t.onSelectChange }, t.renderSelectOptions());
3506
+ return v.createElement("select", { value: Ct(we(t.props.date)), className: "react-datepicker__month-year-select", onChange: t.onSelectChange }, t.renderSelectOptions());
3486
3507
  }, t.renderReadView = function(e) {
3487
- var r = A(t.props.date, t.props.dateFormat, t.props.locale);
3508
+ var r = W(t.props.date, t.props.dateFormat, t.props.locale);
3488
3509
  return v.createElement(
3489
3510
  "div",
3490
3511
  { key: "read", style: { visibility: e ? "visible" : "hidden" }, className: "react-datepicker__month-year-read-view", onClick: t.toggleDropdown },
@@ -3492,13 +3513,13 @@ var Po = (
3492
3513
  v.createElement("span", { className: "react-datepicker__month-year-read-view--selected-month-year" }, r)
3493
3514
  );
3494
3515
  }, t.renderDropdown = function() {
3495
- return v.createElement(Po, x({ key: "dropdown" }, t.props, { onChange: t.onChange, onCancel: t.toggleDropdown }));
3516
+ return v.createElement(Oo, E({ key: "dropdown" }, t.props, { onChange: t.onChange, onCancel: t.toggleDropdown }));
3496
3517
  }, t.renderScrollMode = function() {
3497
3518
  var e = t.state.dropdownVisible, r = [t.renderReadView(!e)];
3498
3519
  return e && r.unshift(t.renderDropdown()), r;
3499
3520
  }, t.onChange = function(e) {
3500
3521
  t.toggleDropdown();
3501
- var r = O(e);
3522
+ var r = N(e);
3502
3523
  ce(t.props.date, r) && J(t.props.date, r) || t.props.onChange(r);
3503
3524
  }, t.toggleDropdown = function() {
3504
3525
  return t.setState({
@@ -3519,7 +3540,7 @@ var Po = (
3519
3540
  return v.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, t);
3520
3541
  }, n;
3521
3542
  })(X)
3522
- ), Oo = (
3543
+ ), Ro = (
3523
3544
  /** @class */
3524
3545
  (function(o) {
3525
3546
  Z(n, o);
@@ -3534,39 +3555,39 @@ var Po = (
3534
3555
  });
3535
3556
  }, t.handleClick = function(e) {
3536
3557
  var r, a;
3537
- (t.props.minTime || t.props.maxTime) && er(e, t.props) || (t.props.excludeTimes || t.props.includeTimes || t.props.filterTime) && Jt(e, t.props) || (a = (r = t.props).onChange) === null || a === void 0 || a.call(r, e);
3558
+ (t.props.minTime || t.props.maxTime) && tr(e, t.props) || (t.props.excludeTimes || t.props.includeTimes || t.props.filterTime) && er(e, t.props) || (a = (r = t.props).onChange) === null || a === void 0 || a.call(r, e);
3538
3559
  }, t.isSelectedTime = function(e) {
3539
- return t.props.selected && Ar(t.props.selected, e);
3560
+ return t.props.selected && Hr(t.props.selected, e);
3540
3561
  }, t.isDisabledTime = function(e) {
3541
- return (t.props.minTime || t.props.maxTime) && er(e, t.props) || (t.props.excludeTimes || t.props.includeTimes || t.props.filterTime) && Jt(e, t.props);
3562
+ return (t.props.minTime || t.props.maxTime) && tr(e, t.props) || (t.props.excludeTimes || t.props.includeTimes || t.props.filterTime) && er(e, t.props);
3542
3563
  }, t.liClasses = function(e) {
3543
3564
  var r, a = [
3544
3565
  "react-datepicker__time-list-item",
3545
3566
  t.props.timeClassName ? t.props.timeClassName(e) : void 0
3546
3567
  ];
3547
- return t.isSelectedTime(e) && a.push("react-datepicker__time-list-item--selected"), t.isDisabledTime(e) && a.push("react-datepicker__time-list-item--disabled"), t.props.injectTimes && (se(e) * 3600 + ie(e) * 60 + _e(e)) % (((r = t.props.intervals) !== null && r !== void 0 ? r : n.defaultProps.intervals) * 60) !== 0 && a.push("react-datepicker__time-list-item--injected"), a.join(" ");
3568
+ return t.isSelectedTime(e) && a.push("react-datepicker__time-list-item--selected"), t.isDisabledTime(e) && a.push("react-datepicker__time-list-item--disabled"), t.props.injectTimes && (se(e) * 3600 + ie(e) * 60 + ke(e)) % (((r = t.props.intervals) !== null && r !== void 0 ? r : n.defaultProps.intervals) * 60) !== 0 && a.push("react-datepicker__time-list-item--injected"), a.join(" ");
3548
3569
  }, t.handleOnKeyDown = function(e, r) {
3549
3570
  var a, s;
3550
3571
  e.key === y.Space && (e.preventDefault(), e.key = y.Enter), (e.key === y.ArrowUp || e.key === y.ArrowLeft) && e.target instanceof HTMLElement && e.target.previousSibling && (e.preventDefault(), e.target.previousSibling instanceof HTMLElement && e.target.previousSibling.focus()), (e.key === y.ArrowDown || e.key === y.ArrowRight) && e.target instanceof HTMLElement && e.target.nextSibling && (e.preventDefault(), e.target.nextSibling instanceof HTMLElement && e.target.nextSibling.focus()), e.key === y.Enter && t.handleClick(r), (s = (a = t.props).handleOnKeyDown) === null || s === void 0 || s.call(a, e);
3551
3572
  }, t.renderTimes = function() {
3552
- for (var e, r = [], a = typeof t.props.format == "string" ? t.props.format : "p", s = (e = t.props.intervals) !== null && e !== void 0 ? e : n.defaultProps.intervals, i = t.props.selected || t.props.openToDate || O(), l = We(i), u = t.props.injectTimes && t.props.injectTimes.sort(function(h, D) {
3553
- return h.getTime() - D.getTime();
3554
- }), c = 60 * yo(i), d = c / s, p = 0; p < d; p++) {
3573
+ for (var e, r = [], a = typeof t.props.format == "string" ? t.props.format : "p", s = (e = t.props.intervals) !== null && e !== void 0 ? e : n.defaultProps.intervals, i = t.props.selected || t.props.openToDate || N(), l = We(i), u = t.props.injectTimes && t.props.injectTimes.sort(function(h, g) {
3574
+ return h.getTime() - g.getTime();
3575
+ }), c = 60 * bo(i), d = c / s, p = 0; p < d; p++) {
3555
3576
  var f = Ke(l, p * s);
3556
3577
  if (r.push(f), u) {
3557
- var m = go(l, f, p, s, u);
3578
+ var m = wo(l, f, p, s, u);
3558
3579
  r = r.concat(m);
3559
3580
  }
3560
3581
  }
3561
- var g = r.reduce(function(h, D) {
3562
- return D.getTime() <= i.getTime() ? D : h;
3582
+ var D = r.reduce(function(h, g) {
3583
+ return g.getTime() <= i.getTime() ? g : h;
3563
3584
  }, r[0]);
3564
3585
  return r.map(function(h) {
3565
- return v.createElement("li", { key: h.valueOf(), onClick: t.handleClick.bind(t, h), className: t.liClasses(h), ref: function(D) {
3566
- h === g && (t.centerLi = D);
3567
- }, onKeyDown: function(D) {
3568
- t.handleOnKeyDown(D, h);
3569
- }, tabIndex: h === g ? 0 : -1, role: "option", "aria-selected": t.isSelectedTime(h) ? "true" : void 0, "aria-disabled": t.isDisabledTime(h) ? "true" : void 0 }, A(h, a, t.props.locale));
3586
+ return v.createElement("li", { key: h.valueOf(), onClick: t.handleClick.bind(t, h), className: t.liClasses(h), ref: function(g) {
3587
+ h === D && (t.centerLi = g);
3588
+ }, onKeyDown: function(g) {
3589
+ t.handleOnKeyDown(g, h);
3590
+ }, tabIndex: h === D ? 0 : -1, role: "option", "aria-selected": t.isSelectedTime(h) ? "true" : void 0, "aria-disabled": t.isDisabledTime(h) ? "true" : void 0 }, W(h, a, t.props.locale));
3570
3591
  });
3571
3592
  }, t.renderTimeCaption = function() {
3572
3593
  return t.props.showTimeCaption === !1 ? v.createElement(v.Fragment, null) : v.createElement(
@@ -3625,14 +3646,14 @@ var Po = (
3625
3646
  return e.offsetTop - (t / 2 - e.clientHeight / 2);
3626
3647
  }, n;
3627
3648
  })(X)
3628
- ), ur = 3, No = (
3649
+ ), dr = 3, Io = (
3629
3650
  /** @class */
3630
3651
  (function(o) {
3631
3652
  Z(n, o);
3632
3653
  function n(t) {
3633
3654
  var e = o.call(this, t) || this;
3634
3655
  return e.YEAR_REFS = he([], Array(e.props.yearItemNumber), !0).map(function() {
3635
- return Me();
3656
+ return Ce();
3636
3657
  }), e.isDisabled = function(r) {
3637
3658
  return oe(r, {
3638
3659
  minDate: e.props.minDate,
@@ -3659,17 +3680,17 @@ var Po = (
3659
3680
  }, e.handleYearNavigation = function(r, a) {
3660
3681
  var s, i, l, u, c = e.props, d = c.date, p = c.yearItemNumber;
3661
3682
  if (!(d === void 0 || p === void 0)) {
3662
- var f = De(d, p).startPeriod;
3683
+ var f = ge(d, p).startPeriod;
3663
3684
  e.isDisabled(a) || e.isExcluded(a) || ((i = (s = e.props).setPreSelection) === null || i === void 0 || i.call(s, a), r - f < 0 ? e.updateFocusOnPaginate(p - (f - r)) : r - f >= p ? e.updateFocusOnPaginate(Math.abs(p - (r - f))) : (u = (l = e.YEAR_REFS[r - f]) === null || l === void 0 ? void 0 : l.current) === null || u === void 0 || u.focus());
3664
3685
  }
3665
3686
  }, e.isSameDay = function(r, a) {
3666
- return P(r, a);
3687
+ return T(r, a);
3667
3688
  }, e.isCurrentYear = function(r) {
3668
- return r === E(O());
3689
+ return r === P(N());
3669
3690
  }, e.isRangeStart = function(r) {
3670
- return e.props.startDate && e.props.endDate && ce(le(O(), r), e.props.startDate);
3691
+ return e.props.startDate && e.props.endDate && ce(le(N(), r), e.props.startDate);
3671
3692
  }, e.isRangeEnd = function(r) {
3672
- return e.props.startDate && e.props.endDate && ce(le(O(), r), e.props.endDate);
3693
+ return e.props.startDate && e.props.endDate && ce(le(N(), r), e.props.endDate);
3673
3694
  }, e.isInRange = function(r) {
3674
3695
  return Xe(r, e.props.startDate, e.props.endDate);
3675
3696
  }, e.isInSelectingRange = function(r) {
@@ -3679,24 +3700,24 @@ var Po = (
3679
3700
  var a;
3680
3701
  if (!e.isInSelectingRange(r))
3681
3702
  return !1;
3682
- var s = e.props, i = s.startDate, l = s.selectsStart, u = le(O(), r);
3703
+ var s = e.props, i = s.startDate, l = s.selectsStart, u = le(N(), r);
3683
3704
  return l ? ce(u, (a = e.selectingDate()) !== null && a !== void 0 ? a : null) : ce(u, i ?? null);
3684
3705
  }, e.isSelectingRangeEnd = function(r) {
3685
3706
  var a;
3686
3707
  if (!e.isInSelectingRange(r))
3687
3708
  return !1;
3688
- var s = e.props, i = s.endDate, l = s.selectsEnd, u = s.selectsRange, c = le(O(), r);
3709
+ var s = e.props, i = s.endDate, l = s.selectsEnd, u = s.selectsRange, c = le(N(), r);
3689
3710
  return l || u ? ce(c, (a = e.selectingDate()) !== null && a !== void 0 ? a : null) : ce(c, i ?? null);
3690
3711
  }, e.isKeyboardSelected = function(r) {
3691
3712
  if (!(e.props.disabledKeyboardNavigation || e.props.date === void 0 || e.props.preSelection == null)) {
3692
- var a = e.props, s = a.minDate, i = a.maxDate, l = a.excludeDates, u = a.includeDates, c = a.filterDate, d = a.selected, p = Qe(le(e.props.date, r)), f = (s || i || l || u || c) && at(r, e.props), m = !!d && P(p, Qe(d)), g = P(p, Qe(e.props.preSelection));
3693
- return !e.props.inline && !m && g && !f;
3713
+ var a = e.props, s = a.minDate, i = a.maxDate, l = a.excludeDates, u = a.includeDates, c = a.filterDate, d = a.selected, p = Qe(le(e.props.date, r)), f = (s || i || l || u || c) && at(r, e.props), m = !!d && T(p, Qe(d)), D = T(p, Qe(e.props.preSelection));
3714
+ return !e.props.inline && !m && D && !f;
3694
3715
  }
3695
3716
  }, e.isSelectedYear = function(r) {
3696
3717
  var a = e.props, s = a.selectsMultiple, i = a.selected, l = a.selectedDates;
3697
3718
  return s ? l?.some(function(u) {
3698
- return r === E(u);
3699
- }) : !!i && r === E(i);
3719
+ return r === P(u);
3720
+ }) : !!i && r === P(i);
3700
3721
  }, e.onYearClick = function(r, a) {
3701
3722
  var s = e.props.date;
3702
3723
  s !== void 0 && e.handleYearClick(Qe(le(s, a)), r);
@@ -3712,7 +3733,7 @@ var Po = (
3712
3733
  case y.ArrowRight:
3713
3734
  if (e.props.preSelection == null)
3714
3735
  break;
3715
- e.handleYearNavigation(a + 1, ge(e.props.preSelection, 1));
3736
+ e.handleYearNavigation(a + 1, ye(e.props.preSelection, 1));
3716
3737
  break;
3717
3738
  case y.ArrowLeft:
3718
3739
  if (e.props.preSelection == null)
@@ -3722,23 +3743,23 @@ var Po = (
3722
3743
  case y.ArrowUp: {
3723
3744
  if (c === void 0 || d === void 0 || e.props.preSelection == null)
3724
3745
  break;
3725
- var f = De(c, d).startPeriod, m = ur, g = a - m;
3726
- if (g < f) {
3746
+ var f = ge(c, d).startPeriod, m = dr, D = a - m;
3747
+ if (D < f) {
3727
3748
  var h = d % m;
3728
- a >= f && a < f + h ? m = h : m += h, g = a - m;
3749
+ a >= f && a < f + h ? m = h : m += h, D = a - m;
3729
3750
  }
3730
- e.handleYearNavigation(g, Ye(e.props.preSelection, m));
3751
+ e.handleYearNavigation(D, Ye(e.props.preSelection, m));
3731
3752
  break;
3732
3753
  }
3733
3754
  case y.ArrowDown: {
3734
3755
  if (c === void 0 || d === void 0 || e.props.preSelection == null)
3735
3756
  break;
3736
- var D = De(c, d).endPeriod, m = ur, g = a + m;
3737
- if (g > D) {
3757
+ var g = ge(c, d).endPeriod, m = dr, D = a + m;
3758
+ if (D > g) {
3738
3759
  var h = d % m;
3739
- a <= D && a > D - h ? m = h : m += h, g = a + m;
3760
+ a <= g && a > g - h ? m = h : m += h, D = a + m;
3740
3761
  }
3741
- e.handleYearNavigation(g, ge(e.props.preSelection, m));
3762
+ e.handleYearNavigation(D, ye(e.props.preSelection, m));
3742
3763
  break;
3743
3764
  }
3744
3765
  }
@@ -3760,7 +3781,7 @@ var Po = (
3760
3781
  }, e.getYearTabIndex = function(r) {
3761
3782
  if (e.props.disabledKeyboardNavigation || e.props.preSelection == null)
3762
3783
  return "-1";
3763
- var a = E(e.props.preSelection), s = at(r, e.props);
3784
+ var a = P(e.props.preSelection), s = at(r, e.props);
3764
3785
  return r === a && !s ? "0" : "-1";
3765
3786
  }, e.getYearContent = function(r) {
3766
3787
  return e.props.renderYearContent ? e.props.renderYearContent(r) : r;
@@ -3770,20 +3791,20 @@ var Po = (
3770
3791
  var t = this, e = [], r = this.props, a = r.date, s = r.yearItemNumber, i = r.onYearMouseEnter, l = r.onYearMouseLeave;
3771
3792
  if (a === void 0)
3772
3793
  return null;
3773
- for (var u = De(a, s), c = u.startPeriod, d = u.endPeriod, p = function(g) {
3774
- e.push(v.createElement("div", { ref: f.YEAR_REFS[g - c], onClick: function(h) {
3775
- t.onYearClick(h, g);
3794
+ for (var u = ge(a, s), c = u.startPeriod, d = u.endPeriod, p = function(D) {
3795
+ e.push(v.createElement("div", { ref: f.YEAR_REFS[D - c], onClick: function(h) {
3796
+ t.onYearClick(h, D);
3776
3797
  }, onKeyDown: function(h) {
3777
- Hr(h) && (h.preventDefault(), h.key = y.Enter), t.onYearKeyDown(h, g);
3778
- }, tabIndex: Number(f.getYearTabIndex(g)), className: f.getYearClassNames(g), onMouseEnter: f.props.usePointerEvent ? void 0 : function(h) {
3779
- return i(h, g);
3798
+ Wr(h) && (h.preventDefault(), h.key = y.Enter), t.onYearKeyDown(h, D);
3799
+ }, tabIndex: Number(f.getYearTabIndex(D)), className: f.getYearClassNames(D), onMouseEnter: f.props.usePointerEvent ? void 0 : function(h) {
3800
+ return i(h, D);
3780
3801
  }, onPointerEnter: f.props.usePointerEvent ? function(h) {
3781
- return i(h, g);
3802
+ return i(h, D);
3782
3803
  } : void 0, onMouseLeave: f.props.usePointerEvent ? void 0 : function(h) {
3783
- return l(h, g);
3804
+ return l(h, D);
3784
3805
  }, onPointerLeave: f.props.usePointerEvent ? function(h) {
3785
- return l(h, g);
3786
- } : void 0, key: g, "aria-current": f.isCurrentYear(g) ? "date" : void 0 }, f.getYearContent(g)));
3806
+ return l(h, D);
3807
+ } : void 0, key: D, "aria-current": f.isCurrentYear(D) ? "date" : void 0 }, f.getYearContent(D)));
3787
3808
  }, f = this, m = c; m <= d; m++)
3788
3809
  p(m);
3789
3810
  return v.createElement(
@@ -3794,14 +3815,14 @@ var Po = (
3794
3815
  }, n;
3795
3816
  })(X)
3796
3817
  );
3797
- function Ro(o, n, t, e) {
3818
+ function Yo(o, n, t, e) {
3798
3819
  for (var r = [], a = 0; a < 2 * n + 1; a++) {
3799
3820
  var s = o + n - a, i = !0;
3800
- t && (i = E(t) <= s), e && i && (i = E(e) >= s), i && r.push(s);
3821
+ t && (i = P(t) <= s), e && i && (i = P(e) >= s), i && r.push(s);
3801
3822
  }
3802
3823
  return r;
3803
3824
  }
3804
- var Io = (
3825
+ var Lo = (
3805
3826
  /** @class */
3806
3827
  (function(o) {
3807
3828
  Z(n, o);
@@ -3835,7 +3856,7 @@ var Io = (
3835
3856
  i === d ? v.createElement("span", { className: "react-datepicker__year-option--selected" }, "✓") : "",
3836
3857
  d
3837
3858
  );
3838
- }), u = e.props.minDate ? E(e.props.minDate) : null, c = e.props.maxDate ? E(e.props.maxDate) : null;
3859
+ }), u = e.props.minDate ? P(e.props.minDate) : null, c = e.props.maxDate ? P(e.props.maxDate) : null;
3839
3860
  return (!c || !e.state.yearsList.find(function(d) {
3840
3861
  return d === c;
3841
3862
  })) && l.unshift(v.createElement(
@@ -3867,8 +3888,8 @@ var Io = (
3867
3888
  };
3868
3889
  var r = t.yearDropdownItemNumber, a = t.scrollableYearDropdown, s = r || (a ? 10 : 5);
3869
3890
  return e.state = {
3870
- yearsList: Ro(e.props.year, s, e.props.minDate, e.props.maxDate)
3871
- }, e.dropdownRef = Me(), e;
3891
+ yearsList: Yo(e.props.year, s, e.props.minDate, e.props.maxDate)
3892
+ }, e.dropdownRef = Ce(), e;
3872
3893
  }
3873
3894
  return n.prototype.componentDidMount = function() {
3874
3895
  var t = this.dropdownRef.current;
@@ -3883,10 +3904,10 @@ var Io = (
3883
3904
  "react-datepicker__year-dropdown": !0,
3884
3905
  "react-datepicker__year-dropdown--scrollable": this.props.scrollableYearDropdown
3885
3906
  });
3886
- return v.createElement(vt, { className: t, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
3907
+ return v.createElement(mt, { className: t, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
3887
3908
  }, n;
3888
3909
  })(X)
3889
- ), Yo = (
3910
+ ), Fo = (
3890
3911
  /** @class */
3891
3912
  (function(o) {
3892
3913
  Z(n, o);
@@ -3895,7 +3916,7 @@ var Io = (
3895
3916
  return t.state = {
3896
3917
  dropdownVisible: !1
3897
3918
  }, t.renderSelectOptions = function() {
3898
- for (var e = t.props.minDate ? E(t.props.minDate) : 1900, r = t.props.maxDate ? E(t.props.maxDate) : 2100, a = [], s = e; s <= r; s++)
3919
+ for (var e = t.props.minDate ? P(t.props.minDate) : 1900, r = t.props.maxDate ? P(t.props.maxDate) : 2100, a = [], s = e; s <= r; s++)
3899
3920
  a.push(v.createElement("option", { key: s, value: s }, s));
3900
3921
  return a;
3901
3922
  }, t.onSelectChange = function(e) {
@@ -3910,7 +3931,7 @@ var Io = (
3910
3931
  v.createElement("span", { className: "react-datepicker__year-read-view--selected-year" }, t.props.year)
3911
3932
  );
3912
3933
  }, t.renderDropdown = function() {
3913
- return v.createElement(Io, x({ key: "dropdown" }, t.props, { onChange: t.onChange, onCancel: t.toggleDropdown }));
3934
+ return v.createElement(Lo, E({ key: "dropdown" }, t.props, { onChange: t.onChange, onCancel: t.toggleDropdown }));
3914
3935
  }, t.renderScrollMode = function() {
3915
3936
  var e = t.state.dropdownVisible, r = [t.renderReadView(!e)];
3916
3937
  return e && r.unshift(t.renderDropdown()), r;
@@ -3946,16 +3967,16 @@ var Io = (
3946
3967
  return v.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, t);
3947
3968
  }, n;
3948
3969
  })(X)
3949
- ), Lo = [
3970
+ ), Ao = [
3950
3971
  "react-datepicker__year-select",
3951
3972
  "react-datepicker__month-select",
3952
3973
  "react-datepicker__month-year-select"
3953
- ], Wr = "react-datepicker-ignore-onclickoutside", Fo = function(o) {
3974
+ ], Qr = "react-datepicker-ignore-onclickoutside", Ho = function(o) {
3954
3975
  var n = (o.className || "").split(/\s+/);
3955
- return Lo.some(function(t) {
3976
+ return Ao.some(function(t) {
3956
3977
  return n.indexOf(t) >= 0;
3957
3978
  });
3958
- }, Ao = (
3979
+ }, Wo = (
3959
3980
  /** @class */
3960
3981
  (function(o) {
3961
3982
  Z(n, o);
@@ -3967,10 +3988,10 @@ var Io = (
3967
3988
  return e.containerRef.current;
3968
3989
  }, e.handleDropdownFocus = function(r) {
3969
3990
  var a, s;
3970
- Fo(r.target) && ((s = (a = e.props).onDropdownFocus) === null || s === void 0 || s.call(a, r));
3991
+ Ho(r.target) && ((s = (a = e.props).onDropdownFocus) === null || s === void 0 || s.call(a, r));
3971
3992
  }, e.getDateInView = function() {
3972
- var r = e.props, a = r.preSelection, s = r.selected, i = r.openToDate, l = Lr(e.props), u = Fr(e.props), c = O(), d = i || s || a;
3973
- return d || (l && pe(c, l) ? l : u && Ce(c, u) ? u : c);
3993
+ var r = e.props, a = r.preSelection, s = r.selected, i = r.openToDate, l = Fr(e.props), u = Ar(e.props), c = N(), d = i || s || a;
3994
+ return d || (l && pe(c, l) ? l : u && Se(c, u) ? u : c);
3974
3995
  }, e.increaseMonth = function() {
3975
3996
  e.setState(function(r) {
3976
3997
  var a = r.date;
@@ -3996,7 +4017,7 @@ var Io = (
3996
4017
  }, e.handleMonthMouseLeave = function() {
3997
4018
  e.setState({ selectingDate: void 0 }), e.props.onMonthMouseLeave && e.props.onMonthMouseLeave();
3998
4019
  }, e.handleYearMouseEnter = function(r, a) {
3999
- e.setState({ selectingDate: le(O(), a) }), e.props.onYearMouseEnter && e.props.onYearMouseEnter(r, a);
4020
+ e.setState({ selectingDate: le(N(), a) }), e.props.onYearMouseEnter && e.props.onYearMouseEnter(r, a);
4000
4021
  }, e.handleYearMouseLeave = function(r, a) {
4001
4022
  e.props.onYearMouseLeave && e.props.onYearMouseLeave(r, a);
4002
4023
  }, e.handleYearChange = function(r) {
@@ -4005,7 +4026,7 @@ var Io = (
4005
4026
  }, e.getEnabledPreSelectionDateForMonth = function(r) {
4006
4027
  if (!oe(r, e.props))
4007
4028
  return r;
4008
- for (var a = ye(r), s = oo(r), i = yn(s, a), l = null, u = 0; u <= i; u++) {
4029
+ for (var a = we(r), s = io(r), i = wn(s, a), l = null, u = 0; u <= i; u++) {
4009
4030
  var c = ve(a, u);
4010
4031
  if (!oe(c, e.props)) {
4011
4032
  l = c;
@@ -4043,7 +4064,7 @@ var Io = (
4043
4064
  e.setState(function(a) {
4044
4065
  var s = a.date;
4045
4066
  return {
4046
- date: le(re(s, ee(r)), E(r))
4067
+ date: le(re(s, ee(r)), P(r))
4047
4068
  };
4048
4069
  }, function() {
4049
4070
  return e.handleMonthYearChange(e.state.date);
@@ -4051,7 +4072,7 @@ var Io = (
4051
4072
  }, e.header = function(r) {
4052
4073
  if (r === void 0 && (r = e.state.date), !ne(r))
4053
4074
  return [];
4054
- var a = e.props.disabled, s = ke(r, e.props.locale, e.props.calendarStartDay), i = [];
4075
+ var a = e.props.disabled, s = Me(r, e.props.locale, e.props.calendarStartDay), i = [];
4055
4076
  return e.props.showWeekNumbers && i.push(v.createElement(
4056
4077
  "div",
4057
4078
  { key: "W", className: "react-datepicker__day-name ".concat(a ? "react-datepicker__day-name--disabled" : ""), role: "columnheader" },
@@ -4062,12 +4083,12 @@ var Io = (
4062
4083
  return v.createElement(
4063
4084
  "div",
4064
4085
  { key: l, role: "columnheader", className: G("react-datepicker__day-name", d, a ? "react-datepicker__day-name--disabled" : "") },
4065
- v.createElement("span", { className: "react-datepicker__sr-only" }, A(u, "EEEE", e.props.locale)),
4086
+ v.createElement("span", { className: "react-datepicker__sr-only" }, W(u, "EEEE", e.props.locale)),
4066
4087
  v.createElement("span", { "aria-hidden": "true" }, c)
4067
4088
  );
4068
4089
  }));
4069
4090
  }, e.formatWeekday = function(r, a) {
4070
- return e.props.formatWeekDay ? so(r, e.props.formatWeekDay, a) : e.props.useWeekdaysShort ? lo(r, a) : io(r, a);
4091
+ return e.props.formatWeekDay ? lo(r, e.props.formatWeekDay, a) : e.props.useWeekdaysShort ? uo(r, a) : co(r, a);
4071
4092
  }, e.decreaseYear = function() {
4072
4093
  e.setState(function(r) {
4073
4094
  var a, s = r.date;
@@ -4088,16 +4109,16 @@ var Io = (
4088
4109
  d = !0;
4089
4110
  break;
4090
4111
  case e.props.showMonthYearPicker:
4091
- d = nr(e.state.date, e.props);
4112
+ d = ar(e.state.date, e.props);
4092
4113
  break;
4093
4114
  case e.props.showYearPicker:
4094
- d = ho(e.state.date, e.props);
4115
+ d = mo(e.state.date, e.props);
4095
4116
  break;
4096
4117
  case e.props.showQuarterYearPicker:
4097
- d = po(e.state.date, e.props);
4118
+ d = ho(e.state.date, e.props);
4098
4119
  break;
4099
4120
  default:
4100
- d = tr(c, e.props);
4121
+ d = rr(c, e.props);
4101
4122
  break;
4102
4123
  }
4103
4124
  if (!(!((s = e.props.forceShowMonthNavigation) !== null && s !== void 0 ? s : n.defaultProps.forceShowMonthNavigation) && !e.props.showDisabledMonthNavigation && d || e.props.showTimeSelectOnly)) {
@@ -4109,11 +4130,11 @@ var Io = (
4109
4130
  "react-datepicker__navigation--previous"
4110
4131
  ], m = e.decreaseMonth;
4111
4132
  (e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (m = e.decreaseYear), d && e.props.showDisabledMonthNavigation && (f.push("react-datepicker__navigation--previous--disabled"), m = void 0);
4112
- var g = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, h = e.props, D = h.previousMonthButtonLabel, w = D === void 0 ? n.defaultProps.previousMonthButtonLabel : D, b = h.previousYearButtonLabel, _ = b === void 0 ? n.defaultProps.previousYearButtonLabel : b, I = e.props, L = I.previousMonthAriaLabel, Y = L === void 0 ? typeof w == "string" ? w : "Previous Month" : L, C = I.previousYearAriaLabel, T = C === void 0 ? typeof _ == "string" ? _ : "Previous Year" : C;
4133
+ var D = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, h = e.props, g = h.previousMonthButtonLabel, w = g === void 0 ? n.defaultProps.previousMonthButtonLabel : g, b = h.previousYearButtonLabel, _ = b === void 0 ? n.defaultProps.previousYearButtonLabel : b, R = e.props, F = R.previousMonthAriaLabel, L = F === void 0 ? typeof w == "string" ? w : "Previous Month" : F, k = R.previousYearAriaLabel, x = k === void 0 ? typeof _ == "string" ? _ : "Previous Year" : k;
4113
4134
  return v.createElement(
4114
4135
  "button",
4115
- { type: "button", className: f.join(" "), onClick: m, onKeyDown: e.props.handleOnKeyDown, "aria-label": g ? T : Y },
4116
- v.createElement("span", { className: p.join(" ") }, g ? _ : w)
4136
+ { type: "button", className: f.join(" "), onClick: m, onKeyDown: e.props.handleOnKeyDown, "aria-label": D ? x : L },
4137
+ v.createElement("span", { className: p.join(" ") }, D ? _ : w)
4117
4138
  );
4118
4139
  }
4119
4140
  }
@@ -4121,7 +4142,7 @@ var Io = (
4121
4142
  e.setState(function(r) {
4122
4143
  var a, s = r.date;
4123
4144
  return {
4124
- date: ge(s, e.props.showYearPicker ? (a = e.props.yearItemNumber) !== null && a !== void 0 ? a : n.defaultProps.yearItemNumber : 1)
4145
+ date: ye(s, e.props.showYearPicker ? (a = e.props.yearItemNumber) !== null && a !== void 0 ? a : n.defaultProps.yearItemNumber : 1)
4125
4146
  };
4126
4147
  }, function() {
4127
4148
  return e.handleYearChange(e.state.date);
@@ -4135,16 +4156,16 @@ var Io = (
4135
4156
  a = !0;
4136
4157
  break;
4137
4158
  case e.props.showMonthYearPicker:
4138
- a = ar(e.state.date, e.props);
4159
+ a = or(e.state.date, e.props);
4139
4160
  break;
4140
4161
  case e.props.showYearPicker:
4141
- a = vo(e.state.date, e.props);
4162
+ a = Do(e.state.date, e.props);
4142
4163
  break;
4143
4164
  case e.props.showQuarterYearPicker:
4144
- a = fo(e.state.date, e.props);
4165
+ a = vo(e.state.date, e.props);
4145
4166
  break;
4146
4167
  default:
4147
- a = rr(e.state.date, e.props);
4168
+ a = nr(e.state.date, e.props);
4148
4169
  break;
4149
4170
  }
4150
4171
  if (!(!((r = e.props.forceShowMonthNavigation) !== null && r !== void 0 ? r : n.defaultProps.forceShowMonthNavigation) && !e.props.showDisabledMonthNavigation && a || e.props.showTimeSelectOnly)) {
@@ -4158,10 +4179,10 @@ var Io = (
4158
4179
  e.props.showTimeSelect && s.push("react-datepicker__navigation--next--with-time"), e.props.todayButton && s.push("react-datepicker__navigation--next--with-today-button");
4159
4180
  var l = e.increaseMonth;
4160
4181
  (e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (l = e.increaseYear), a && e.props.showDisabledMonthNavigation && (s.push("react-datepicker__navigation--next--disabled"), l = void 0);
4161
- var u = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, c = e.props, d = c.nextMonthButtonLabel, p = d === void 0 ? n.defaultProps.nextMonthButtonLabel : d, f = c.nextYearButtonLabel, m = f === void 0 ? n.defaultProps.nextYearButtonLabel : f, g = e.props, h = g.nextMonthAriaLabel, D = h === void 0 ? typeof p == "string" ? p : "Next Month" : h, w = g.nextYearAriaLabel, b = w === void 0 ? typeof m == "string" ? m : "Next Year" : w;
4182
+ var u = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, c = e.props, d = c.nextMonthButtonLabel, p = d === void 0 ? n.defaultProps.nextMonthButtonLabel : d, f = c.nextYearButtonLabel, m = f === void 0 ? n.defaultProps.nextYearButtonLabel : f, D = e.props, h = D.nextMonthAriaLabel, g = h === void 0 ? typeof p == "string" ? p : "Next Month" : h, w = D.nextYearAriaLabel, b = w === void 0 ? typeof m == "string" ? m : "Next Year" : w;
4162
4183
  return v.createElement(
4163
4184
  "button",
4164
- { type: "button", className: s.join(" "), onClick: l, onKeyDown: e.props.handleOnKeyDown, "aria-label": u ? b : D },
4185
+ { type: "button", className: s.join(" "), onClick: l, onKeyDown: e.props.handleOnKeyDown, "aria-label": u ? b : g },
4165
4186
  v.createElement("span", { className: i.join(" ") }, u ? m : p)
4166
4187
  );
4167
4188
  }
@@ -4169,18 +4190,18 @@ var Io = (
4169
4190
  }, e.renderCurrentMonth = function(r) {
4170
4191
  r === void 0 && (r = e.state.date);
4171
4192
  var a = ["react-datepicker__current-month"];
4172
- return e.props.showYearDropdown && a.push("react-datepicker__current-month--hasYearDropdown"), e.props.showMonthDropdown && a.push("react-datepicker__current-month--hasMonthDropdown"), e.props.showMonthYearDropdown && a.push("react-datepicker__current-month--hasMonthYearDropdown"), v.createElement("h2", { className: a.join(" ") }, ne(r) ? A(r, e.props.dateFormat, e.props.locale) : "");
4193
+ return e.props.showYearDropdown && a.push("react-datepicker__current-month--hasYearDropdown"), e.props.showMonthDropdown && a.push("react-datepicker__current-month--hasMonthDropdown"), e.props.showMonthYearDropdown && a.push("react-datepicker__current-month--hasMonthYearDropdown"), v.createElement("h2", { className: a.join(" ") }, ne(r) ? W(r, e.props.dateFormat, e.props.locale) : "");
4173
4194
  }, e.renderYearDropdown = function(r) {
4174
4195
  if (r === void 0 && (r = !1), !(!e.props.showYearDropdown || r))
4175
- return v.createElement(Yo, x({}, n.defaultProps, e.props, { date: e.state.date, onChange: e.changeYear, year: E(e.state.date) }));
4196
+ return v.createElement(Fo, E({}, n.defaultProps, e.props, { date: e.state.date, onChange: e.changeYear, year: P(e.state.date) }));
4176
4197
  }, e.renderMonthDropdown = function(r) {
4177
4198
  if (r === void 0 && (r = !1), !(!e.props.showMonthDropdown || r))
4178
- return v.createElement(xo, x({}, n.defaultProps, e.props, { month: ee(e.state.date), onChange: e.changeMonth }));
4199
+ return v.createElement(Po, E({}, n.defaultProps, e.props, { month: ee(e.state.date), onChange: e.changeMonth }));
4179
4200
  }, e.renderMonthYearDropdown = function(r) {
4180
4201
  if (r === void 0 && (r = !1), !(!e.props.showMonthYearDropdown || r))
4181
- return v.createElement(To, x({}, n.defaultProps, e.props, { date: e.state.date, onChange: e.changeMonthYear }));
4202
+ return v.createElement(No, E({}, n.defaultProps, e.props, { date: e.state.date, onChange: e.changeMonthYear }));
4182
4203
  }, e.handleTodayButtonClick = function(r) {
4183
- e.props.onSelect(zt(), r), e.props.setPreSelection && e.props.setPreSelection(zt());
4204
+ e.props.onSelect(Xt(), r), e.props.setPreSelection && e.props.setPreSelection(Xt());
4184
4205
  }, e.renderTodayButton = function() {
4185
4206
  if (!(!e.props.todayButton || e.props.showTimeSelectOnly))
4186
4207
  return v.createElement("div", { className: "react-datepicker__today-button", onClick: e.handleTodayButtonClick }, e.props.todayButton);
@@ -4206,17 +4227,17 @@ var Io = (
4206
4227
  return null;
4207
4228
  var u = e.props, c = u.showYearPicker, d = u.yearItemNumber, p;
4208
4229
  if (c) {
4209
- var f = De(i, d), m = f.startPeriod, g = f.endPeriod;
4230
+ var f = ge(i, d), m = f.startPeriod, D = f.endPeriod;
4210
4231
  p = {
4211
4232
  startYear: m,
4212
- endYear: g
4233
+ endYear: D
4213
4234
  };
4214
4235
  }
4215
- var h = tr(e.state.date, e.props), D = rr(e.state.date, e.props), w = nr(e.state.date, e.props), b = ar(e.state.date, e.props);
4216
- return v.createElement("div", { className: "react-datepicker__header react-datepicker__header--custom", onFocus: e.props.onDropdownFocus }, (s = (a = e.props).renderCustomHeader) === null || s === void 0 ? void 0 : s.call(a, x(x(x({}, e.state), c && { visibleYearsRange: p }), { customHeaderCount: l, monthDate: i, changeMonth: e.changeMonth, changeYear: e.changeYear, decreaseMonth: e.decreaseMonth, increaseMonth: e.increaseMonth, decreaseYear: e.decreaseYear, increaseYear: e.increaseYear, prevMonthButtonDisabled: h, nextMonthButtonDisabled: D, prevYearButtonDisabled: w, nextYearButtonDisabled: b })));
4236
+ var h = rr(e.state.date, e.props), g = nr(e.state.date, e.props), w = ar(e.state.date, e.props), b = or(e.state.date, e.props);
4237
+ return v.createElement("div", { className: "react-datepicker__header react-datepicker__header--custom", onFocus: e.props.onDropdownFocus }, (s = (a = e.props).renderCustomHeader) === null || s === void 0 ? void 0 : s.call(a, E(E(E({}, e.state), c && { visibleYearsRange: p }), { customHeaderCount: l, monthDate: i, changeMonth: e.changeMonth, changeYear: e.changeYear, decreaseMonth: e.decreaseMonth, increaseMonth: e.increaseMonth, decreaseYear: e.decreaseYear, increaseYear: e.increaseYear, prevMonthButtonDisabled: h, nextMonthButtonDisabled: g, prevYearButtonDisabled: w, nextYearButtonDisabled: b })));
4217
4238
  }, e.renderYearHeader = function(r) {
4218
- var a = r.monthDate, s = e.props, i = s.showYearPicker, l = s.yearItemNumber, u = l === void 0 ? n.defaultProps.yearItemNumber : l, c = De(a, u), d = c.startPeriod, p = c.endPeriod;
4219
- return v.createElement("div", { className: "react-datepicker__header react-datepicker-year-header" }, i ? "".concat(d, " - ").concat(p) : E(a));
4239
+ var a = r.monthDate, s = e.props, i = s.showYearPicker, l = s.yearItemNumber, u = l === void 0 ? n.defaultProps.yearItemNumber : l, c = ge(a, u), d = c.startPeriod, p = c.endPeriod;
4240
+ return v.createElement("div", { className: "react-datepicker__header react-datepicker-year-header" }, i ? "".concat(d, " - ").concat(p) : P(a));
4220
4241
  }, e.renderHeader = function(r) {
4221
4242
  var a = r.monthDate, s = r.i, i = s === void 0 ? 0 : s, l = { monthDate: a, i };
4222
4243
  switch (!0) {
@@ -4230,15 +4251,15 @@ var Io = (
4230
4251
  }, e.renderMonths = function() {
4231
4252
  var r, a;
4232
4253
  if (!(e.props.showTimeSelectOnly || e.props.showYearPicker)) {
4233
- for (var s = [], i = (r = e.props.monthsShown) !== null && r !== void 0 ? r : n.defaultProps.monthsShown, l = e.props.showPreviousMonths ? i - 1 : 0, u = e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? ge(e.state.date, l) : Te(e.state.date, l), c = (a = e.props.monthSelectedIn) !== null && a !== void 0 ? a : l, d = 0; d < i; ++d) {
4234
- var p = d - c + l, f = e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? ge(u, p) : me(u, p), m = "month-".concat(d), g = d < i - 1, h = d > 0;
4254
+ for (var s = [], i = (r = e.props.monthsShown) !== null && r !== void 0 ? r : n.defaultProps.monthsShown, l = e.props.showPreviousMonths ? i - 1 : 0, u = e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? ye(e.state.date, l) : Te(e.state.date, l), c = (a = e.props.monthSelectedIn) !== null && a !== void 0 ? a : l, d = 0; d < i; ++d) {
4255
+ var p = d - c + l, f = e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? ye(u, p) : me(u, p), m = "month-".concat(d), D = d < i - 1, h = d > 0;
4235
4256
  s.push(v.createElement(
4236
4257
  "div",
4237
- { key: m, ref: function(D) {
4238
- e.monthContainer = D ?? void 0;
4258
+ { key: m, ref: function(g) {
4259
+ e.monthContainer = g ?? void 0;
4239
4260
  }, className: "react-datepicker__month-container" },
4240
4261
  e.renderHeader({ monthDate: f, i: d }),
4241
- v.createElement(Co, x({}, n.defaultProps, e.props, { containerRef: e.containerRef, ariaLabelPrefix: e.props.monthAriaLabelPrefix, day: f, onDayClick: e.handleDayClick, handleOnKeyDown: e.props.handleOnDayKeyDown, handleOnMonthKeyDown: e.props.handleOnKeyDown, onDayMouseEnter: e.handleDayMouseEnter, onMouseLeave: e.handleMonthMouseLeave, orderInDisplay: d, selectingDate: e.state.selectingDate, monthShowsDuplicateDaysEnd: g, monthShowsDuplicateDaysStart: h, dayNamesHeader: e.renderDayNamesHeader(f) }))
4262
+ v.createElement(xo, E({}, n.defaultProps, e.props, { containerRef: e.containerRef, ariaLabelPrefix: e.props.monthAriaLabelPrefix, day: f, onDayClick: e.handleDayClick, handleOnKeyDown: e.props.handleOnDayKeyDown, handleOnMonthKeyDown: e.props.handleOnKeyDown, onDayMouseEnter: e.handleDayMouseEnter, onMouseLeave: e.handleMonthMouseLeave, orderInDisplay: d, selectingDate: e.state.selectingDate, monthShowsDuplicateDaysEnd: D, monthShowsDuplicateDaysStart: h, dayNamesHeader: e.renderDayNamesHeader(f) }))
4242
4263
  ));
4243
4264
  }
4244
4265
  return s;
@@ -4249,25 +4270,25 @@ var Io = (
4249
4270
  "div",
4250
4271
  { className: "react-datepicker__year--container" },
4251
4272
  e.renderHeader({ monthDate: e.state.date }),
4252
- v.createElement(No, x({}, n.defaultProps, e.props, { selectingDate: e.state.selectingDate, date: e.state.date, onDayClick: e.handleDayClick, clearSelectingDate: e.clearSelectingDate, onYearMouseEnter: e.handleYearMouseEnter, onYearMouseLeave: e.handleYearMouseLeave }))
4273
+ v.createElement(Io, E({}, n.defaultProps, e.props, { selectingDate: e.state.selectingDate, date: e.state.date, onDayClick: e.handleDayClick, clearSelectingDate: e.clearSelectingDate, onYearMouseEnter: e.handleYearMouseEnter, onYearMouseLeave: e.handleYearMouseLeave }))
4253
4274
  );
4254
4275
  }, e.renderTimeSection = function() {
4255
4276
  if (e.props.showTimeSelect && (e.state.monthContainer || e.props.showTimeSelectOnly))
4256
- return v.createElement(Oo, x({}, n.defaultProps, e.props, { onChange: e.props.onTimeChange, format: e.props.timeFormat, intervals: e.props.timeIntervals, monthRef: e.state.monthContainer }));
4277
+ return v.createElement(Ro, E({}, n.defaultProps, e.props, { onChange: e.props.onTimeChange, format: e.props.timeFormat, intervals: e.props.timeIntervals, monthRef: e.state.monthContainer }));
4257
4278
  }, e.renderInputTimeSection = function() {
4258
- var r = e.props.selected ? new Date(e.props.selected) : void 0, a = r && ne(r) && !!e.props.selected, s = a ? "".concat(sr(r.getHours()), ":").concat(sr(r.getMinutes())) : "";
4279
+ var r = e.props.selected ? new Date(e.props.selected) : void 0, a = r && ne(r) && !!e.props.selected, s = a ? "".concat(ir(r.getHours()), ":").concat(ir(r.getMinutes())) : "";
4259
4280
  if (e.props.showTimeInput)
4260
- return v.createElement(wo, x({}, n.defaultProps, e.props, { date: r, timeString: s, onChange: e.props.onTimeChange }));
4281
+ return v.createElement(_o, E({}, n.defaultProps, e.props, { date: r, timeString: s, onChange: e.props.onTimeChange }));
4261
4282
  }, e.renderAriaLiveRegion = function() {
4262
4283
  var r;
4263
4284
  if (!ne(e.state.date))
4264
4285
  return v.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" });
4265
- var a = De(e.state.date, (r = e.props.yearItemNumber) !== null && r !== void 0 ? r : n.defaultProps.yearItemNumber), s = a.startPeriod, i = a.endPeriod, l;
4266
- return e.props.showYearPicker ? l = "".concat(s, " - ").concat(i) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = E(e.state.date) : l = "".concat(Rt(ee(e.state.date), e.props.locale), " ").concat(E(e.state.date)), v.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, e.state.isRenderAriaLiveMessage && l);
4286
+ var a = ge(e.state.date, (r = e.props.yearItemNumber) !== null && r !== void 0 ? r : n.defaultProps.yearItemNumber), s = a.startPeriod, i = a.endPeriod, l;
4287
+ return e.props.showYearPicker ? l = "".concat(s, " - ").concat(i) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = P(e.state.date) : l = "".concat(Rt(ee(e.state.date), e.props.locale), " ").concat(P(e.state.date)), v.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, e.state.isRenderAriaLiveMessage && l);
4267
4288
  }, e.renderChildren = function() {
4268
4289
  if (e.props.children)
4269
4290
  return v.createElement("div", { className: "react-datepicker__children-container" }, e.props.children);
4270
- }, e.containerRef = Me(), e.state = {
4291
+ }, e.containerRef = Ce(), e.state = {
4271
4292
  date: e.getDateInView(),
4272
4293
  selectingDate: void 0,
4273
4294
  monthContainer: void 0,
@@ -4279,7 +4300,7 @@ var Io = (
4279
4300
  return {
4280
4301
  monthsShown: 1,
4281
4302
  forceShowMonthNavigation: !1,
4282
- outsideClickIgnoreClass: Wr,
4303
+ outsideClickIgnoreClass: Qr,
4283
4304
  timeCaption: "Time",
4284
4305
  previousYearButtonLabel: "Previous Year",
4285
4306
  nextYearButtonLabel: "Next Year",
@@ -4297,20 +4318,20 @@ var Io = (
4297
4318
  })());
4298
4319
  }, n.prototype.componentDidUpdate = function(t) {
4299
4320
  var e = this;
4300
- if (this.props.preSelection && ne(this.props.preSelection) && (!P(this.props.preSelection, t.preSelection) || this.props.monthSelectedIn !== t.monthSelectedIn)) {
4321
+ if (this.props.preSelection && ne(this.props.preSelection) && (!T(this.props.preSelection, t.preSelection) || this.props.monthSelectedIn !== t.monthSelectedIn)) {
4301
4322
  var r = !J(this.state.date, this.props.preSelection);
4302
4323
  this.setState({
4303
4324
  date: this.props.preSelection
4304
4325
  }, function() {
4305
4326
  return r && e.handleCustomMonthChange(e.state.date);
4306
4327
  });
4307
- } else this.props.openToDate && !P(this.props.openToDate, t.openToDate) && this.setState({
4328
+ } else this.props.openToDate && !T(this.props.openToDate, t.openToDate) && this.setState({
4308
4329
  date: this.props.openToDate
4309
4330
  });
4310
4331
  }, n.prototype.render = function() {
4311
- var t = this.props.container || Za;
4332
+ var t = this.props.container || eo;
4312
4333
  return v.createElement(
4313
- vt,
4334
+ mt,
4314
4335
  { onClickOutside: this.handleClickOutside, style: { display: "contents" }, ignoreClass: this.props.outsideClickIgnoreClass },
4315
4336
  v.createElement(
4316
4337
  "div",
@@ -4334,7 +4355,7 @@ var Io = (
4334
4355
  );
4335
4356
  }, n;
4336
4357
  })(X)
4337
- ), Ho = function(o) {
4358
+ ), Qo = function(o) {
4338
4359
  var n = o.icon, t = o.className, e = t === void 0 ? "" : t, r = o.onClick, a = "react-datepicker__calendar-icon";
4339
4360
  if (typeof n == "string")
4340
4361
  return v.createElement("i", { className: "".concat(a, " ").concat(n, " ").concat(e), "aria-hidden": "true", onClick: r });
@@ -4352,7 +4373,7 @@ var Io = (
4352
4373
  { className: "".concat(a, " ").concat(e), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", onClick: r },
4353
4374
  v.createElement("path", { d: "M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z" })
4354
4375
  );
4355
- }, Qr = (
4376
+ }, Br = (
4356
4377
  /** @class */
4357
4378
  (function(o) {
4358
4379
  Z(n, o);
@@ -4365,12 +4386,12 @@ var Io = (
4365
4386
  }, n.prototype.componentWillUnmount = function() {
4366
4387
  this.portalRoot && this.portalRoot.removeChild(this.el);
4367
4388
  }, n.prototype.render = function() {
4368
- return vn.createPortal(this.props.children, this.el);
4389
+ return mn.createPortal(this.props.children, this.el);
4369
4390
  }, n;
4370
4391
  })(X)
4371
- ), Wo = "[tabindex], a, button, input, select, textarea", Qo = function(o) {
4392
+ ), Bo = "[tabindex], a, button, input, select, textarea", Ko = function(o) {
4372
4393
  return (o instanceof HTMLAnchorElement || !o.disabled) && o.tabIndex !== -1;
4373
- }, Br = (
4394
+ }, Kr = (
4374
4395
  /** @class */
4375
4396
  (function(o) {
4376
4397
  Z(n, o);
@@ -4378,14 +4399,14 @@ var Io = (
4378
4399
  var e = o.call(this, t) || this;
4379
4400
  return e.getTabChildren = function() {
4380
4401
  var r;
4381
- return Array.prototype.slice.call((r = e.tabLoopRef.current) === null || r === void 0 ? void 0 : r.querySelectorAll(Wo), 1, -1).filter(Qo);
4402
+ return Array.prototype.slice.call((r = e.tabLoopRef.current) === null || r === void 0 ? void 0 : r.querySelectorAll(Bo), 1, -1).filter(Ko);
4382
4403
  }, e.handleFocusStart = function() {
4383
4404
  var r = e.getTabChildren();
4384
4405
  r && r.length > 1 && r[r.length - 1].focus();
4385
4406
  }, e.handleFocusEnd = function() {
4386
4407
  var r = e.getTabChildren();
4387
4408
  r && r.length > 1 && r[0].focus();
4388
- }, e.tabLoopRef = Me(), e;
4409
+ }, e.tabLoopRef = Ce(), e;
4389
4410
  }
4390
4411
  return n.prototype.render = function() {
4391
4412
  var t;
@@ -4401,61 +4422,61 @@ var Io = (
4401
4422
  }, n;
4402
4423
  })(X)
4403
4424
  );
4404
- function Bo(o) {
4425
+ function Uo(o) {
4405
4426
  function n(t) {
4406
- var e, r = typeof t.hidePopper == "boolean" ? t.hidePopper : !0, a = _t(null), s = Xa(x({ open: !r, whileElementsMounted: rn, placement: t.popperPlacement, middleware: he([
4407
- La({ padding: 15 }),
4408
- Ya(10),
4427
+ var e, r = typeof t.hidePopper == "boolean" ? t.hidePopper : !0, a = kt(null), s = Ja(E({ open: !r, whileElementsMounted: nn, placement: t.popperPlacement, middleware: he([
4428
+ Aa({ padding: 15 }),
4429
+ Fa(10),
4409
4430
  // eslint-disable-next-line react-hooks/refs -- Floating UI requires refs to be passed during render
4410
- Fa({ element: a })
4411
- ], (e = t.popperModifiers) !== null && e !== void 0 ? e : [], !0) }, t.popperProps)), i = x(x({}, t), { hidePopper: r, popperProps: x(x({}, s), { arrowRef: a }) });
4412
- return v.createElement(o, x({}, i));
4431
+ Ha({ element: a })
4432
+ ], (e = t.popperModifiers) !== null && e !== void 0 ? e : [], !0) }, t.popperProps)), i = E(E({}, t), { hidePopper: r, popperProps: E(E({}, s), { arrowRef: a }) });
4433
+ return v.createElement(o, E({}, i));
4413
4434
  }
4414
4435
  return n.displayName = "withFloating(".concat(o.displayName || o.name || "Component", ")"), n;
4415
4436
  }
4416
- var Ko = function(o) {
4437
+ var Vo = function(o) {
4417
4438
  var n = o.className, t = o.wrapperClassName, e = o.hidePopper, r = e === void 0 ? !0 : e, a = o.popperComponent, s = o.targetComponent, i = o.enableTabLoop, l = o.popperOnKeyDown, u = o.portalId, c = o.portalHost, d = o.popperProps, p = o.showArrow, f = void 0;
4418
4439
  if (!r) {
4419
4440
  var m = G("react-datepicker-popper", n);
4420
4441
  f = v.createElement(
4421
- Br,
4442
+ Kr,
4422
4443
  { enableTabLoop: i },
4423
4444
  v.createElement(
4424
4445
  "div",
4425
4446
  { ref: d.refs.setFloating, style: d.floatingStyles, className: m, "data-placement": d.placement, onKeyDown: l },
4426
4447
  a,
4427
- p && v.createElement(Ua, { ref: d.arrowRef, context: d.context, fill: "currentColor", strokeWidth: 1, height: 8, width: 16, style: { transform: "translateY(-1px)" }, className: "react-datepicker__triangle" })
4448
+ p && v.createElement(qa, { ref: d.arrowRef, context: d.context, fill: "currentColor", strokeWidth: 1, height: 8, width: 16, style: { transform: "translateY(-1px)" }, className: "react-datepicker__triangle" })
4428
4449
  )
4429
4450
  );
4430
4451
  }
4431
- o.popperContainer && (f = dn(o.popperContainer, {}, f)), u && !r && (f = v.createElement(Qr, { portalId: u, portalHost: c }, f));
4432
- var g = G("react-datepicker-wrapper", t);
4452
+ o.popperContainer && (f = pn(o.popperContainer, {}, f)), u && !r && (f = v.createElement(Br, { portalId: u, portalHost: c }, f));
4453
+ var D = G("react-datepicker-wrapper", t);
4433
4454
  return v.createElement(
4434
4455
  v.Fragment,
4435
4456
  null,
4436
- v.createElement("div", { ref: d.refs.setReference, className: g }, s),
4457
+ v.createElement("div", { ref: d.refs.setReference, className: D }, s),
4437
4458
  f
4438
4459
  );
4439
- }, Uo = Bo(Ko);
4440
- function Vo(o, n) {
4441
- return o && n ? ee(o) !== ee(n) || E(o) !== E(n) : o !== n;
4460
+ }, qo = Uo(Vo);
4461
+ function jo(o, n) {
4462
+ return o && n ? ee(o) !== ee(n) || P(o) !== P(n) : o !== n;
4442
4463
  }
4443
- var yt = "Date input not valid.", qo = (
4464
+ var wt = "Date input not valid.", $o = (
4444
4465
  /** @class */
4445
4466
  (function(o) {
4446
4467
  Z(n, o);
4447
4468
  function n(t) {
4448
4469
  var e = o.call(this, t) || this;
4449
4470
  return e.calendar = null, e.input = null, e.getPreSelection = function() {
4450
- return e.props.openToDate ? e.props.openToDate : e.props.selectsEnd && e.props.startDate ? e.props.startDate : e.props.selectsStart && e.props.endDate ? e.props.endDate : O();
4471
+ return e.props.openToDate ? e.props.openToDate : e.props.selectsEnd && e.props.startDate ? e.props.startDate : e.props.selectsStart && e.props.endDate ? e.props.endDate : N();
4451
4472
  }, e.modifyHolidays = function() {
4452
4473
  var r;
4453
4474
  return (r = e.props.holidays) === null || r === void 0 ? void 0 : r.reduce(function(a, s) {
4454
4475
  var i = new Date(s.date);
4455
- return ne(i) ? he(he([], a, !0), [x(x({}, s), { date: i })], !1) : a;
4476
+ return ne(i) ? he(he([], a, !0), [E(E({}, s), { date: i })], !1) : a;
4456
4477
  }, []);
4457
4478
  }, e.calcInitialState = function() {
4458
- var r, a = e.getPreSelection(), s = Lr(e.props), i = Fr(e.props), l = s && pe(a, We(s)) ? s : i && Ce(a, Xt(i)) ? i : a;
4479
+ var r, a = e.getPreSelection(), s = Fr(e.props), i = Ar(e.props), l = s && pe(a, We(s)) ? s : i && Se(a, Zt(i)) ? i : a;
4459
4480
  return {
4460
4481
  open: e.props.startOpen || !1,
4461
4482
  preventFocus: !1,
@@ -4463,7 +4484,7 @@ var yt = "Date input not valid.", qo = (
4463
4484
  preSelection: (r = e.props.selectsRange ? e.props.startDate : e.props.selected) !== null && r !== void 0 ? r : l,
4464
4485
  // transforming highlighted days (perhaps nested array)
4465
4486
  // to flat Map for faster access in day.jsx
4466
- highlightDates: or(e.props.highlightDates),
4487
+ highlightDates: sr(e.props.highlightDates),
4467
4488
  focused: !1,
4468
4489
  // used to focus day in inline version after month has changed, but not on
4469
4490
  // initial render
@@ -4472,22 +4493,22 @@ var yt = "Date input not valid.", qo = (
4472
4493
  wasHidden: !1
4473
4494
  };
4474
4495
  }, e.getInputValue = function() {
4475
- var r, a = e.props, s = a.locale, i = a.startDate, l = a.endDate, u = a.rangeSeparator, c = a.selected, d = a.selectedDates, p = a.selectsMultiple, f = a.selectsRange, m = a.value, g = (r = e.props.dateFormat) !== null && r !== void 0 ? r : n.defaultProps.dateFormat, h = e.state.inputValue;
4476
- return typeof m == "string" ? m : typeof h == "string" ? h : f ? eo(i, l, {
4477
- dateFormat: g,
4496
+ var r, a = e.props, s = a.locale, i = a.startDate, l = a.endDate, u = a.rangeSeparator, c = a.selected, d = a.selectedDates, p = a.selectsMultiple, f = a.selectsRange, m = a.value, D = (r = e.props.dateFormat) !== null && r !== void 0 ? r : n.defaultProps.dateFormat, h = e.state.inputValue;
4497
+ return typeof m == "string" ? m : typeof h == "string" ? h : f ? ro(i, l, {
4498
+ dateFormat: D,
4478
4499
  locale: s,
4479
4500
  rangeSeparator: u
4480
- }) : p ? to(d ?? [], {
4481
- dateFormat: g,
4501
+ }) : p ? no(d ?? [], {
4502
+ dateFormat: D,
4482
4503
  locale: s
4483
4504
  }) : te(c, {
4484
- dateFormat: g,
4505
+ dateFormat: D,
4485
4506
  locale: s
4486
4507
  });
4487
4508
  }, e.resetHiddenStatus = function() {
4488
- e.setState(x(x({}, e.state), { wasHidden: !1 }));
4509
+ e.setState(E(E({}, e.state), { wasHidden: !1 }));
4489
4510
  }, e.setHiddenStatus = function() {
4490
- e.setState(x(x({}, e.state), { wasHidden: !0 }));
4511
+ e.setState(E(E({}, e.state), { wasHidden: !0 }));
4491
4512
  }, e.setHiddenStateOnVisibilityHidden = function() {
4492
4513
  document.visibilityState === "hidden" && e.setHiddenStatus();
4493
4514
  }, e.clearPreventFocusTimeout = function() {
@@ -4506,7 +4527,7 @@ var yt = "Date input not valid.", qo = (
4506
4527
  a === void 0 && (a = !1), e.setState({
4507
4528
  open: r,
4508
4529
  preSelection: r && e.state.open ? e.state.preSelection : e.calcInitialState().preSelection,
4509
- lastPreSelectChange: wt
4530
+ lastPreSelectChange: bt
4510
4531
  }, function() {
4511
4532
  r || e.setState(function(s) {
4512
4533
  return {
@@ -4517,7 +4538,7 @@ var yt = "Date input not valid.", qo = (
4517
4538
  });
4518
4539
  });
4519
4540
  }, e.inputOk = function() {
4520
- return be(e.state.preSelection);
4541
+ return _e(e.state.preSelection);
4521
4542
  }, e.isCalendarOpen = function() {
4522
4543
  return e.props.open === void 0 ? e.state.open && !e.props.disabled && !e.props.readOnly : e.props.open;
4523
4544
  }, e.handleFocus = function(r) {
@@ -4538,7 +4559,7 @@ var yt = "Date input not valid.", qo = (
4538
4559
  }, e.handleDropdownFocus = function() {
4539
4560
  e.cancelFocusInput();
4540
4561
  }, e.resetInputValue = function() {
4541
- e.setState(x(x({}, e.state), { inputValue: null }));
4562
+ e.setState(E(E({}, e.state), { inputValue: null }));
4542
4563
  }, e.handleBlur = function(r) {
4543
4564
  var a, s;
4544
4565
  (!e.state.open || e.props.withPortal || e.props.showTimeInput) && ((s = (a = e.props).onBlur) === null || s === void 0 || s.call(a, r)), e.resetInputValue(), e.state.open && e.props.open === !1 && e.setOpen(!1), e.setState({ focused: !1 });
@@ -4552,50 +4573,50 @@ var yt = "Date input not valid.", qo = (
4552
4573
  if (!(e.props.onChangeRaw && (e.props.onChangeRaw.apply(e, u), !d || typeof d.isDefaultPrevented != "function" || d.isDefaultPrevented()))) {
4553
4574
  e.setState({
4554
4575
  inputValue: d?.target instanceof HTMLInputElement ? d.target.value : null,
4555
- lastPreSelectChange: jo
4576
+ lastPreSelectChange: Go
4556
4577
  });
4557
- var p = e.props, f = p.selectsRange, m = p.startDate, g = p.endDate, h = (r = e.props.dateFormat) !== null && r !== void 0 ? r : n.defaultProps.dateFormat, D = (a = e.props.strictParsing) !== null && a !== void 0 ? a : n.defaultProps.strictParsing, w = d?.target instanceof HTMLInputElement ? d.target.value : "";
4578
+ var p = e.props, f = p.selectsRange, m = p.startDate, D = p.endDate, h = (r = e.props.dateFormat) !== null && r !== void 0 ? r : n.defaultProps.dateFormat, g = (a = e.props.strictParsing) !== null && a !== void 0 ? a : n.defaultProps.strictParsing, w = d?.target instanceof HTMLInputElement ? d.target.value : "";
4558
4579
  if (f) {
4559
- var b = e.props.rangeSeparator, _ = b.trim(), I = w.split(h.includes(_) ? b : _, 2).map(function(R) {
4560
- return R.trim();
4561
- }), L = I[0], Y = I[1], C = Ne(L ?? "", h, e.props.locale, D), T = C ? Ne(Y ?? "", h, e.props.locale, D) : null, W = m?.getTime() !== C?.getTime(), H = g?.getTime() !== T?.getTime();
4562
- if (!W && !H || C && oe(C, e.props) || T && oe(T, e.props))
4580
+ var b = e.props.rangeSeparator, _ = b.trim(), R = w.split(h.includes(_) ? b : _, 2).map(function(O) {
4581
+ return O.trim();
4582
+ }), F = R[0], L = R[1], k = Ne(F ?? "", h, e.props.locale, g), x = k ? Ne(L ?? "", h, e.props.locale, g) : null, A = m?.getTime() !== k?.getTime(), I = D?.getTime() !== x?.getTime();
4583
+ if (!A && !I || k && oe(k, e.props) || x && oe(x, e.props))
4563
4584
  return;
4564
- (i = (s = e.props).onChange) === null || i === void 0 || i.call(s, [C, T], d);
4585
+ (i = (s = e.props).onChange) === null || i === void 0 || i.call(s, [k, x], d);
4565
4586
  } else {
4566
- var S = Ne(w, h, e.props.locale, D, (l = e.props.selected) !== null && l !== void 0 ? l : void 0);
4567
- (S || !w) && e.setSelected(S, d, !0);
4587
+ var C = Ne(w, h, e.props.locale, g, (l = e.props.selected) !== null && l !== void 0 ? l : void 0);
4588
+ (C || !w) && e.setSelected(C, d, !0);
4568
4589
  }
4569
4590
  }
4570
4591
  }, e.handleSelect = function(r, a, s) {
4571
4592
  var i;
4572
4593
  if (!e.props.readOnly) {
4573
- var l = e.props, u = l.selectsRange, c = l.startDate, d = l.endDate, p = l.locale, f = l.swapRange, m = (i = e.props.dateFormat) !== null && i !== void 0 ? i : n.defaultProps.dateFormat, g = !u || c && !d && (f || !Dt(r, c));
4574
- if (e.props.shouldCloseOnSelect && !e.props.showTimeSelect && g && e.sendFocusBackToInput(), e.props.onChangeRaw) {
4594
+ var l = e.props, u = l.selectsRange, c = l.startDate, d = l.endDate, p = l.locale, f = l.swapRange, m = (i = e.props.dateFormat) !== null && i !== void 0 ? i : n.defaultProps.dateFormat, D = !u || c && !d && (f || !gt(r, c));
4595
+ if (e.props.shouldCloseOnSelect && !e.props.showTimeSelect && D && e.sendFocusBackToInput(), e.props.onChangeRaw) {
4575
4596
  var h = te(r, {
4576
4597
  dateFormat: m,
4577
4598
  locale: p
4578
4599
  });
4579
4600
  e.props.onChangeRaw(a, { date: r, formattedDate: h });
4580
4601
  }
4581
- e.setSelected(r, a, !1, s), e.props.showDateSelect && e.setState({ isRenderAriaLiveMessage: !0 }), !e.props.shouldCloseOnSelect || e.props.showTimeSelect ? e.setPreSelection(r) : g && e.setOpen(!1);
4602
+ e.setSelected(r, a, !1, s), e.props.showDateSelect && e.setState({ isRenderAriaLiveMessage: !0 }), !e.props.shouldCloseOnSelect || e.props.showTimeSelect ? e.setPreSelection(r) : D && e.setOpen(!1);
4582
4603
  }
4583
4604
  }, e.setSelected = function(r, a, s, i) {
4584
4605
  var l, u, c = r;
4585
4606
  if (e.props.showYearPicker) {
4586
- if (c !== null && at(E(c), e.props))
4607
+ if (c !== null && at(P(c), e.props))
4587
4608
  return;
4588
4609
  } else if (e.props.showMonthYearPicker) {
4589
- if (c !== null && Yr(c, e.props))
4610
+ if (c !== null && Lr(c, e.props))
4590
4611
  return;
4591
4612
  } else if (c !== null && oe(c, e.props))
4592
4613
  return;
4593
- var d = e.props, p = d.onChange, f = d.selectsRange, m = d.startDate, g = d.endDate, h = d.selectsMultiple, D = d.selectedDates, w = d.minTime, b = d.swapRange;
4614
+ var d = e.props, p = d.onChange, f = d.selectsRange, m = d.startDate, D = d.endDate, h = d.selectsMultiple, g = d.selectedDates, w = d.minTime, b = d.swapRange;
4594
4615
  if (!Pe(e.props.selected, c) || e.props.allowSameDay || f || h)
4595
4616
  if (c !== null && (e.props.selected && (!s || !e.props.showTimeSelect && !e.props.showTimeSelectOnly && !e.props.showTimeInput) && (c = $e(c, {
4596
4617
  hour: se(e.props.selected),
4597
4618
  minute: ie(e.props.selected),
4598
- second: _e(e.props.selected)
4619
+ second: ke(e.props.selected)
4599
4620
  })), !s && (e.props.showTimeSelect || e.props.showTimeSelectOnly) && w && (c = $e(c, {
4600
4621
  hour: w.getHours(),
4601
4622
  minute: w.getMinutes(),
@@ -4603,39 +4624,39 @@ var yt = "Date input not valid.", qo = (
4603
4624
  })), e.props.inline || e.setState({
4604
4625
  preSelection: c
4605
4626
  }), e.props.focusSelectedMonth || e.setState({ monthSelectedIn: i })), f) {
4606
- var _ = !m && !g, I = m && !g, L = !m && !!g, Y = m && g;
4607
- _ ? p?.([c, null], a) : I ? c === null ? p?.([null, null], a) : Dt(c, m) ? p?.(b ? [c, m] : [c, null], a) : p?.([m, c], a) : L && (c && Dt(c, g) ? p?.([c, g], a) : p?.([c, null], a)), Y && p?.([c, null], a);
4627
+ var _ = !m && !D, R = m && !D, F = !m && !!D, L = m && D;
4628
+ _ ? p?.([c, null], a) : R ? c === null ? p?.([null, null], a) : gt(c, m) ? p?.(b ? [c, m] : [c, null], a) : p?.([m, c], a) : F && (c && gt(c, D) ? p?.([c, D], a) : p?.([c, null], a)), L && p?.([c, null], a);
4608
4629
  } else if (h) {
4609
4630
  if (c !== null)
4610
- if (!D?.length)
4631
+ if (!g?.length)
4611
4632
  p?.([c], a);
4612
4633
  else {
4613
- var C = D.some(function(W) {
4614
- return P(W, c);
4634
+ var k = g.some(function(A) {
4635
+ return T(A, c);
4615
4636
  });
4616
- if (C) {
4617
- var T = D.filter(function(W) {
4618
- return !P(W, c);
4637
+ if (k) {
4638
+ var x = g.filter(function(A) {
4639
+ return !T(A, c);
4619
4640
  });
4620
- p?.(T, a);
4641
+ p?.(x, a);
4621
4642
  } else
4622
- p?.(he(he([], D, !0), [c], !1), a);
4643
+ p?.(he(he([], g, !0), [c], !1), a);
4623
4644
  }
4624
4645
  } else
4625
4646
  p?.(c, a);
4626
4647
  s || ((u = (l = e.props).onSelect) === null || u === void 0 || u.call(l, c, a), e.setState({ inputValue: null }));
4627
4648
  }, e.setPreSelection = function(r) {
4628
4649
  if (!e.props.readOnly) {
4629
- var a = be(e.props.minDate), s = be(e.props.maxDate), i = !0;
4650
+ var a = _e(e.props.minDate), s = _e(e.props.maxDate), i = !0;
4630
4651
  if (r) {
4631
4652
  var l = We(r);
4632
4653
  if (a && s)
4633
- i = xe(r, e.props.minDate, e.props.maxDate);
4654
+ i = Ee(r, e.props.minDate, e.props.maxDate);
4634
4655
  else if (a) {
4635
4656
  var u = We(e.props.minDate);
4636
- i = Ce(r, u) || Pe(l, u);
4657
+ i = Se(r, u) || Pe(l, u);
4637
4658
  } else if (s) {
4638
- var c = Xt(e.props.maxDate);
4659
+ var c = Zt(e.props.maxDate);
4639
4660
  i = pe(r, c) || Pe(l, c);
4640
4661
  }
4641
4662
  }
@@ -4660,15 +4681,15 @@ var yt = "Date input not valid.", qo = (
4660
4681
  var r, a;
4661
4682
  !e.props.disabled && !e.props.readOnly && e.setOpen(!0), (a = (r = e.props).onInputClick) === null || a === void 0 || a.call(r);
4662
4683
  }, e.handleTimeOnlyArrowKey = function(r) {
4663
- var a, s, i, l, u = e.props.selected || e.state.preSelection || O(), c = (a = e.props.timeIntervals) !== null && a !== void 0 ? a : 30, d = (s = e.props.dateFormat) !== null && s !== void 0 ? s : n.defaultProps.dateFormat, p = Array.isArray(d) ? d[0] : d, f = We(u), m = se(u) * 60 + ie(u), g = 1440 - c, h;
4684
+ var a, s, i, l, u = e.props.selected || e.state.preSelection || N(), c = (a = e.props.timeIntervals) !== null && a !== void 0 ? a : 30, d = (s = e.props.dateFormat) !== null && s !== void 0 ? s : n.defaultProps.dateFormat, p = Array.isArray(d) ? d[0] : d, f = We(u), m = se(u) * 60 + ie(u), D = 1440 - c, h;
4664
4685
  if (r === y.ArrowUp) {
4665
- var D = Math.max(0, m - c);
4666
- h = Ke(f, D);
4686
+ var g = Math.max(0, m - c);
4687
+ h = Ke(f, g);
4667
4688
  } else {
4668
- var D = Math.min(g, m + c);
4669
- h = Ke(f, D);
4689
+ var g = Math.min(D, m + c);
4690
+ h = Ke(f, g);
4670
4691
  }
4671
- var w = A(h, p || n.defaultProps.dateFormat, e.props.locale);
4692
+ var w = W(h, p || n.defaultProps.dateFormat, e.props.locale);
4672
4693
  if (e.setState({
4673
4694
  preSelection: h,
4674
4695
  inputValue: w
@@ -4682,34 +4703,34 @@ var yt = "Date input not valid.", qo = (
4682
4703
  });
4683
4704
  }
4684
4705
  }, e.handleTimeOnlyEnterKey = function(r) {
4685
- var a, s, i, l, u = r.target, c = u.value, d = (a = e.props.dateFormat) !== null && a !== void 0 ? a : n.defaultProps.dateFormat, p = e.props.timeFormat || "p", f = e.state.preSelection || e.props.selected || O(), m = Ne(c, d, e.props.locale, (s = e.props.strictParsing) !== null && s !== void 0 ? s : !1, f), g = f;
4706
+ var a, s, i, l, u = r.target, c = u.value, d = (a = e.props.dateFormat) !== null && a !== void 0 ? a : n.defaultProps.dateFormat, p = e.props.timeFormat || "p", f = e.state.preSelection || e.props.selected || N(), m = Ne(c, d, e.props.locale, (s = e.props.strictParsing) !== null && s !== void 0 ? s : !1, f), D = f;
4686
4707
  if (m && ne(m))
4687
- g = m;
4708
+ D = m;
4688
4709
  else {
4689
4710
  var h = ((i = e.calendar) === null || i === void 0 ? void 0 : i.containerRef.current) instanceof Element && e.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");
4690
4711
  if (h instanceof HTMLElement) {
4691
- var D = (l = h.textContent) === null || l === void 0 ? void 0 : l.trim();
4692
- if (D) {
4693
- var w = Ne(D, p, e.props.locale, !1, f);
4694
- w && ne(w) && (g = w);
4712
+ var g = (l = h.textContent) === null || l === void 0 ? void 0 : l.trim();
4713
+ if (g) {
4714
+ var w = Ne(g, p, e.props.locale, !1, f);
4715
+ w && ne(w) && (D = w);
4695
4716
  }
4696
4717
  }
4697
4718
  }
4698
- e.handleTimeChange(g), e.setOpen(!1), e.sendFocusBackToInput();
4719
+ e.handleTimeChange(D), e.setOpen(!1), e.sendFocusBackToInput();
4699
4720
  }, e.scrollToTimeOption = function(r) {
4700
4721
  var a, s;
4701
4722
  if (!((a = e.calendar) === null || a === void 0) && a.containerRef.current) {
4702
4723
  for (var i = e.calendar.containerRef.current, l = Array.from(i.querySelectorAll(".react-datepicker__time-list-item")), u = null, c = 1 / 0, d = e.props.timeFormat || "p", p = 0, f = l; p < f.length; p++) {
4703
- var m = f[p], g = (s = m.textContent) === null || s === void 0 ? void 0 : s.trim();
4704
- if (g) {
4705
- var h = Ne(g, d, e.props.locale, !1, r);
4724
+ var m = f[p], D = (s = m.textContent) === null || s === void 0 ? void 0 : s.trim();
4725
+ if (D) {
4726
+ var h = Ne(D, d, e.props.locale, !1, r);
4706
4727
  if (h && ne(h)) {
4707
- if (Ar(h, r)) {
4728
+ if (Hr(h, r)) {
4708
4729
  u = m;
4709
4730
  break;
4710
4731
  }
4711
- var D = Math.abs(h.getTime() - r.getTime());
4712
- D < c && (c = D, u = m);
4732
+ var g = Math.abs(h.getTime() - r.getTime());
4733
+ g < c && (c = g, u = m);
4713
4734
  }
4714
4735
  }
4715
4736
  }
@@ -4745,8 +4766,8 @@ var yt = "Date input not valid.", qo = (
4745
4766
  f instanceof HTMLElement && f.focus({ preventScroll: !0 });
4746
4767
  return;
4747
4768
  }
4748
- var m = O(e.state.preSelection);
4749
- d === y.Enter ? (r.preventDefault(), r.target.blur(), e.inputOk() && e.state.lastPreSelectChange === wt ? (e.handleSelect(m, r), !e.props.shouldCloseOnSelect && e.setPreSelection(m)) : e.setOpen(!1)) : d === y.Escape ? (r.preventDefault(), r.target.blur(), e.sendFocusBackToInput(), e.setOpen(!1)) : d === y.Tab && e.setOpen(!1), e.inputOk() || (c = (u = e.props).onInputError) === null || c === void 0 || c.call(u, { code: 1, msg: yt });
4769
+ var m = N(e.state.preSelection);
4770
+ d === y.Enter ? (r.preventDefault(), r.target.blur(), e.inputOk() && e.state.lastPreSelectChange === bt ? (e.handleSelect(m, r), !e.props.shouldCloseOnSelect && e.setPreSelection(m)) : e.setOpen(!1)) : d === y.Escape ? (r.preventDefault(), r.target.blur(), e.sendFocusBackToInput(), e.setOpen(!1)) : d === y.Tab && e.setOpen(!1), e.inputOk() || (c = (u = e.props).onInputError) === null || c === void 0 || c.call(u, { code: 1, msg: wt });
4750
4771
  }
4751
4772
  }, e.onPortalKeyDown = function(r) {
4752
4773
  var a = r.key;
@@ -4758,56 +4779,56 @@ var yt = "Date input not valid.", qo = (
4758
4779
  });
4759
4780
  }));
4760
4781
  }, e.onDayKeyDown = function(r) {
4761
- var a, s, i, l, u, c, d = e.props, p = d.minDate, f = d.maxDate, m = d.disabledKeyboardNavigation, g = d.showWeekPicker, h = d.shouldCloseOnSelect, D = d.locale, w = d.calendarStartDay, b = d.adjustDateOnChange, _ = d.inline;
4782
+ var a, s, i, l, u, c, d = e.props, p = d.minDate, f = d.maxDate, m = d.disabledKeyboardNavigation, D = d.showWeekPicker, h = d.shouldCloseOnSelect, g = d.locale, w = d.calendarStartDay, b = d.adjustDateOnChange, _ = d.inline;
4762
4783
  if ((s = (a = e.props).onKeyDown) === null || s === void 0 || s.call(a, r), !m) {
4763
- var I = r.key, L = r.shiftKey, Y = O(e.state.preSelection), C = function(H, S) {
4764
- var R = S;
4765
- switch (H) {
4784
+ var R = r.key, F = r.shiftKey, L = N(e.state.preSelection), k = function(I, C) {
4785
+ var O = C;
4786
+ switch (I) {
4766
4787
  case y.ArrowRight:
4767
- R = g ? it(S, 1) : ve(S, 1);
4788
+ O = D ? it(C, 1) : ve(C, 1);
4768
4789
  break;
4769
4790
  case y.ArrowLeft:
4770
- R = g ? Kt(S) : tn(S, 1);
4791
+ O = D ? Kt(C) : rn(C, 1);
4771
4792
  break;
4772
4793
  case y.ArrowUp:
4773
- R = Kt(S);
4794
+ O = Kt(C);
4774
4795
  break;
4775
4796
  case y.ArrowDown:
4776
- R = it(S, 1);
4797
+ O = it(C, 1);
4777
4798
  break;
4778
4799
  case y.PageUp:
4779
- R = L ? Ye(S, 1) : Te(S, 1);
4800
+ O = F ? Ye(C, 1) : Te(C, 1);
4780
4801
  break;
4781
4802
  case y.PageDown:
4782
- R = L ? ge(S, 1) : me(S, 1);
4803
+ O = F ? ye(C, 1) : me(C, 1);
4783
4804
  break;
4784
4805
  case y.Home:
4785
- R = ke(S, D, w);
4806
+ O = Me(C, g, w);
4786
4807
  break;
4787
4808
  case y.End:
4788
- R = ao(S);
4809
+ O = so(C);
4789
4810
  break;
4790
4811
  }
4791
- return R;
4792
- }, T = function(H, S) {
4793
- for (var R = 40, K = H, j = !1, U = 0, F = C(H, S); !j; ) {
4794
- if (U >= R) {
4795
- F = S;
4812
+ return O;
4813
+ }, x = function(I, C) {
4814
+ for (var O = 40, B = I, j = !1, U = 0, H = k(I, C); !j; ) {
4815
+ if (U >= O) {
4816
+ H = C;
4796
4817
  break;
4797
4818
  }
4798
- p && F < p && (K = y.ArrowRight, F = oe(p, e.props) ? C(K, F) : p), f && F > f && (K = y.ArrowLeft, F = oe(f, e.props) ? C(K, F) : f), oe(F, e.props) ? ((K === y.PageUp || K === y.Home) && (K = y.ArrowRight), (K === y.PageDown || K === y.End) && (K = y.ArrowLeft), F = C(K, F)) : j = !0, U++;
4819
+ p && H < p && (B = y.ArrowRight, H = oe(p, e.props) ? k(B, H) : p), f && H > f && (B = y.ArrowLeft, H = oe(f, e.props) ? k(B, H) : f), oe(H, e.props) ? ((B === y.PageUp || B === y.Home) && (B = y.ArrowRight), (B === y.PageDown || B === y.End) && (B = y.ArrowLeft), H = k(B, H)) : j = !0, U++;
4799
4820
  }
4800
- return F;
4821
+ return H;
4801
4822
  };
4802
- if (I === y.Enter) {
4803
- r.preventDefault(), e.handleSelect(Y, r), !h && e.setPreSelection(Y);
4823
+ if (R === y.Enter) {
4824
+ r.preventDefault(), e.handleSelect(L, r), !h && e.setPreSelection(L);
4804
4825
  return;
4805
- } else if (I === y.Escape) {
4806
- r.preventDefault(), e.setOpen(!1), e.inputOk() || (l = (i = e.props).onInputError) === null || l === void 0 || l.call(i, { code: 1, msg: yt });
4826
+ } else if (R === y.Escape) {
4827
+ r.preventDefault(), e.setOpen(!1), e.inputOk() || (l = (i = e.props).onInputError) === null || l === void 0 || l.call(i, { code: 1, msg: wt });
4807
4828
  return;
4808
4829
  }
4809
- var W = null;
4810
- switch (I) {
4830
+ var A = null;
4831
+ switch (R) {
4811
4832
  case y.ArrowLeft:
4812
4833
  case y.ArrowRight:
4813
4834
  case y.ArrowUp:
@@ -4816,14 +4837,14 @@ var yt = "Date input not valid.", qo = (
4816
4837
  case y.PageDown:
4817
4838
  case y.Home:
4818
4839
  case y.End:
4819
- W = T(I, Y);
4840
+ A = x(R, L);
4820
4841
  break;
4821
4842
  }
4822
- if (!W) {
4823
- (c = (u = e.props).onInputError) === null || c === void 0 || c.call(u, { code: 1, msg: yt });
4843
+ if (!A) {
4844
+ (c = (u = e.props).onInputError) === null || c === void 0 || c.call(u, { code: 1, msg: wt });
4824
4845
  return;
4825
4846
  }
4826
- r.preventDefault(), e.setState({ lastPreSelectChange: wt }), b && e.setSelected(W), e.setPreSelection(W), _ && e.setState({ shouldFocusDayInline: !0 });
4847
+ r.preventDefault(), e.setState({ lastPreSelectChange: bt }), b && e.setSelected(A), e.setPreSelection(A), _ && e.setState({ shouldFocusDayInline: !0 });
4827
4848
  }
4828
4849
  }, e.onPopperKeyDown = function(r) {
4829
4850
  var a = r.key;
@@ -4838,9 +4859,9 @@ var yt = "Date input not valid.", qo = (
4838
4859
  typeof e.props.closeOnScroll == "boolean" && e.props.closeOnScroll ? (r.target === document || r.target === document.documentElement || r.target === document.body) && e.setOpen(!1) : typeof e.props.closeOnScroll == "function" && e.props.closeOnScroll(r) && e.setOpen(!1);
4839
4860
  }, e.renderCalendar = function() {
4840
4861
  var r, a;
4841
- return !e.props.inline && !e.isCalendarOpen() ? null : v.createElement(Ao, x({ showMonthYearDropdown: void 0, ref: function(s) {
4862
+ return !e.props.inline && !e.isCalendarOpen() ? null : v.createElement(Wo, E({ showMonthYearDropdown: void 0, ref: function(s) {
4842
4863
  e.calendar = s;
4843
- } }, e.props, e.state, { setOpen: e.setOpen, dateFormat: (r = e.props.dateFormatCalendar) !== null && r !== void 0 ? r : n.defaultProps.dateFormatCalendar, onSelect: e.handleSelect, onClickOutside: e.handleCalendarClickOutside, holidays: Do(e.modifyHolidays()), outsideClickIgnoreClass: e.props.outsideClickIgnoreClass, onDropdownFocus: e.handleDropdownFocus, onTimeChange: e.handleTimeChange, className: e.props.calendarClassName, container: e.props.calendarContainer, handleOnKeyDown: e.props.onKeyDown, handleOnDayKeyDown: e.onDayKeyDown, setPreSelection: e.setPreSelection, dropdownMode: (a = e.props.dropdownMode) !== null && a !== void 0 ? a : n.defaultProps.dropdownMode }), e.props.children);
4864
+ } }, e.props, e.state, { setOpen: e.setOpen, dateFormat: (r = e.props.dateFormatCalendar) !== null && r !== void 0 ? r : n.defaultProps.dateFormatCalendar, onSelect: e.handleSelect, onClickOutside: e.handleCalendarClickOutside, holidays: yo(e.modifyHolidays()), outsideClickIgnoreClass: e.props.outsideClickIgnoreClass, onDropdownFocus: e.handleDropdownFocus, onTimeChange: e.handleTimeChange, className: e.props.calendarClassName, container: e.props.calendarContainer, handleOnKeyDown: e.props.onKeyDown, handleOnDayKeyDown: e.onDayKeyDown, setPreSelection: e.setPreSelection, dropdownMode: (a = e.props.dropdownMode) !== null && a !== void 0 ? a : n.defaultProps.dropdownMode }), e.props.children);
4844
4865
  }, e.renderAriaLiveRegion = function() {
4845
4866
  var r, a = e.props.locale, s = (r = e.props.dateFormat) !== null && r !== void 0 ? r : n.defaultProps.dateFormat, i = e.props.showTimeInput || e.props.showTimeSelect, l = i ? "PPPPp" : "PPPP", u;
4846
4867
  return e.props.selectsRange ? u = "Selected start date: ".concat(te(e.props.startDate, {
@@ -4857,13 +4878,13 @@ var yt = "Date input not valid.", qo = (
4857
4878
  locale: a
4858
4879
  })), v.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, u);
4859
4880
  }, e.renderDateInput = function() {
4860
- var r, a, s, i, l, u, c = G(e.props.className, (r = {}, r[e.props.outsideClickIgnoreClass || n.defaultProps.outsideClickIgnoreClass] = e.state.open, r)), d = e.props.customInput || v.createElement("input", { type: "text" }), p = e.props.customInputRef || "ref", f = {}, m = (s = e.props["aria-describedby"]) !== null && s !== void 0 ? s : e.props.ariaDescribedBy, g = (i = e.props["aria-invalid"]) !== null && i !== void 0 ? i : e.props.ariaInvalid, h = (l = e.props["aria-labelledby"]) !== null && l !== void 0 ? l : e.props.ariaLabelledBy, D = (u = e.props["aria-required"]) !== null && u !== void 0 ? u : e.props.ariaRequired;
4861
- return m != null && (f["aria-describedby"] = m), g != null && (f["aria-invalid"] = g), h != null && (f["aria-labelledby"] = h), D != null && (f["aria-required"] = D), wr(d, x((a = {}, a[p] = function(w) {
4881
+ var r, a, s, i, l, u, c = G(e.props.className, (r = {}, r[e.props.outsideClickIgnoreClass || n.defaultProps.outsideClickIgnoreClass] = e.state.open, r)), d = e.props.customInput || v.createElement("input", { type: "text" }), p = e.props.customInputRef || "ref", f = {}, m = (s = e.props["aria-describedby"]) !== null && s !== void 0 ? s : e.props.ariaDescribedBy, D = (i = e.props["aria-invalid"]) !== null && i !== void 0 ? i : e.props.ariaInvalid, h = (l = e.props["aria-labelledby"]) !== null && l !== void 0 ? l : e.props.ariaLabelledBy, g = (u = e.props["aria-required"]) !== null && u !== void 0 ? u : e.props.ariaRequired;
4882
+ return m != null && (f["aria-describedby"] = m), D != null && (f["aria-invalid"] = D), h != null && (f["aria-labelledby"] = h), g != null && (f["aria-required"] = g), br(d, E((a = {}, a[p] = function(w) {
4862
4883
  e.input = w;
4863
4884
  }, a.value = e.getInputValue(), a.onBlur = e.handleBlur, a.onChange = e.handleChange, a.onClick = e.onInputClick, a.onFocus = e.handleFocus, a.onKeyDown = e.onInputKeyDown, a.id = e.props.id, a.name = e.props.name, a.form = e.props.form, a.autoFocus = e.props.autoFocus, a.placeholder = e.props.placeholderText, a.disabled = e.props.disabled, a.autoComplete = e.props.autoComplete, a.className = G(d.props.className, c), a.title = e.props.title, a.readOnly = e.props.readOnly, a.required = e.props.required, a.tabIndex = e.props.tabIndex, a), f));
4864
4885
  }, e.renderClearButton = function() {
4865
- var r = e.props, a = r.isClearable, s = r.disabled, i = r.selected, l = r.startDate, u = r.endDate, c = r.clearButtonTitle, d = r.clearButtonClassName, p = d === void 0 ? "" : d, f = r.ariaLabelClose, m = f === void 0 ? "Close" : f, g = r.selectedDates, h = r.readOnly;
4866
- return a && !h && (i != null || l != null || u != null || g?.length) ? v.createElement("button", { type: "button", className: G("react-datepicker__close-icon", p, { "react-datepicker__close-icon--disabled": s }), disabled: s, "aria-label": m, onClick: e.onClearClick, title: c, tabIndex: -1 }) : null;
4886
+ var r = e.props, a = r.isClearable, s = r.disabled, i = r.selected, l = r.startDate, u = r.endDate, c = r.clearButtonTitle, d = r.clearButtonClassName, p = d === void 0 ? "" : d, f = r.ariaLabelClose, m = f === void 0 ? "Close" : f, D = r.selectedDates, h = r.readOnly;
4887
+ return a && !h && (i != null || l != null || u != null || D?.length) ? v.createElement("button", { type: "button", className: G("react-datepicker__close-icon", p, { "react-datepicker__close-icon--disabled": s }), disabled: s, "aria-label": m, onClick: e.onClearClick, title: c, tabIndex: -1 }) : null;
4867
4888
  }, e.state = e.calcInitialState(), e.preventFocusTimeout = void 0, e;
4868
4889
  }
4869
4890
  return Object.defineProperty(n, "defaultProps", {
@@ -4877,9 +4898,9 @@ var yt = "Date input not valid.", qo = (
4877
4898
  dropdownMode: "scroll",
4878
4899
  preventOpenOnFocus: !1,
4879
4900
  monthsShown: 1,
4880
- outsideClickIgnoreClass: Wr,
4901
+ outsideClickIgnoreClass: Qr,
4881
4902
  readOnly: !1,
4882
- rangeSeparator: Rr,
4903
+ rangeSeparator: Ir,
4883
4904
  withPortal: !1,
4884
4905
  selectsDisabledDaysInRange: !1,
4885
4906
  shouldCloseOnSelect: !0,
@@ -4923,8 +4944,8 @@ var yt = "Date input not valid.", qo = (
4923
4944
  window.addEventListener("scroll", this.onScroll, !0), document.addEventListener("visibilitychange", this.setHiddenStateOnVisibilityHidden);
4924
4945
  }, n.prototype.componentDidUpdate = function(t, e) {
4925
4946
  var r, a, s, i;
4926
- t.inline && Vo(t.selected, this.props.selected) && this.setPreSelection(this.props.selected), this.state.monthSelectedIn !== void 0 && t.monthsShown !== this.props.monthsShown && this.setState({ monthSelectedIn: 0 }), this.props.selectsRange && this.state.monthSelectedIn !== 0 && this.setState({ monthSelectedIn: 0 }), t.highlightDates !== this.props.highlightDates && this.setState({
4927
- highlightDates: or(this.props.highlightDates)
4947
+ t.inline && jo(t.selected, this.props.selected) && this.setPreSelection(this.props.selected), this.state.monthSelectedIn !== void 0 && t.monthsShown !== this.props.monthsShown && this.setState({ monthSelectedIn: 0 }), this.props.selectsRange && this.state.monthSelectedIn !== 0 && this.setState({ monthSelectedIn: 0 }), t.highlightDates !== this.props.highlightDates && this.setState({
4948
+ highlightDates: sr(this.props.highlightDates)
4928
4949
  }), !e.focused && !Pe(t.selected, this.props.selected) && this.setState({ inputValue: null }), e.open !== this.state.open && (e.open === !1 && this.state.open === !0 && ((a = (r = this.props).onCalendarOpen) === null || a === void 0 || a.call(r)), e.open === !0 && this.state.open === !1 && ((i = (s = this.props).onCalendarClose) === null || i === void 0 || i.call(s)));
4929
4950
  }, n.prototype.componentWillUnmount = function() {
4930
4951
  this.clearPreventFocusTimeout(), window.removeEventListener("scroll", this.onScroll, !0), document.removeEventListener("visibilitychange", this.setHiddenStateOnVisibilityHidden);
@@ -4933,7 +4954,7 @@ var yt = "Date input not valid.", qo = (
4933
4954
  return a && console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."), v.createElement(
4934
4955
  "div",
4935
4956
  { className: "react-datepicker__input-container".concat(e ? " react-datepicker__view-calendar-icon" : "") },
4936
- e && v.createElement(Ho, x({ icon: r, className: G(s, !s && a, l && "react-datepicker-ignore-onclickoutside") }, i ? {
4957
+ e && v.createElement(Qo, E({ icon: r, className: G(s, !s && a, l && "react-datepicker-ignore-onclickoutside") }, i ? {
4937
4958
  onClick: this.toggleCalendar
4938
4959
  } : null)),
4939
4960
  this.state.isRenderAriaLiveMessage && this.renderAriaLiveRegion(),
@@ -4946,22 +4967,22 @@ var yt = "Date input not valid.", qo = (
4946
4967
  return t;
4947
4968
  if (this.props.withPortal) {
4948
4969
  var e = this.state.open ? v.createElement(
4949
- Br,
4970
+ Kr,
4950
4971
  { enableTabLoop: this.props.enableTabLoop },
4951
4972
  v.createElement("div", { className: "react-datepicker__portal", tabIndex: -1, onKeyDown: this.onPortalKeyDown }, t)
4952
4973
  ) : null;
4953
- return this.state.open && this.props.portalId && (e = v.createElement(Qr, x({ portalId: this.props.portalId }, this.props), e)), v.createElement(
4974
+ return this.state.open && this.props.portalId && (e = v.createElement(Br, E({ portalId: this.props.portalId }, this.props), e)), v.createElement(
4954
4975
  "div",
4955
4976
  null,
4956
4977
  this.renderInputContainer(),
4957
4978
  e
4958
4979
  );
4959
4980
  }
4960
- return v.createElement(Uo, x({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: t, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
4981
+ return v.createElement(qo, E({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: t, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
4961
4982
  }, n;
4962
4983
  })(X)
4963
- ), jo = "input", wt = "navigate";
4964
- const $o = pn(
4984
+ ), Go = "input", bt = "navigate";
4985
+ const zo = fn(
4965
4986
  ({
4966
4987
  onChange: o,
4967
4988
  value: n,
@@ -4978,16 +4999,16 @@ const $o = pn(
4978
4999
  hint: p,
4979
5000
  feedback: f,
4980
5001
  preventOpenOnFocus: m,
4981
- fixedPopper: g = !1,
5002
+ fixedPopper: D = !1,
4982
5003
  ...h
4983
- }, D) => {
4984
- const w = fn(() => {
5004
+ }, g) => {
5005
+ const w = hn(() => {
4985
5006
  if (n == null) return null;
4986
5007
  const _ = new fe(n, s);
4987
- return nn(_) ? _ : n;
4988
- }, [n, s]), b = a ?? Go(r);
5008
+ return an(_) ? _ : n;
5009
+ }, [n, s]), b = a ?? Xo(r);
4989
5010
  return /* @__PURE__ */ ae.jsx(
4990
- an,
5011
+ on,
4991
5012
  {
4992
5013
  ...h,
4993
5014
  className: t,
@@ -4996,10 +5017,10 @@ const $o = pn(
4996
5017
  label: u,
4997
5018
  children: /* @__PURE__ */ ae.jsxs("div", { className: "relative w-full", children: [
4998
5019
  /* @__PURE__ */ ae.jsx(
4999
- qo,
5020
+ $o,
5000
5021
  {
5001
- ref: D,
5002
- popperProps: g ? {
5022
+ ref: g,
5023
+ popperProps: D ? {
5003
5024
  strategy: "fixed"
5004
5025
  } : void 0,
5005
5026
  selected: w,
@@ -5009,18 +5030,18 @@ const $o = pn(
5009
5030
  placeholderText: c === !0 ? b.toLowerCase() : i,
5010
5031
  minDate: l,
5011
5032
  openToDate: w ?? l,
5012
- className: on(
5033
+ className: sn(
5013
5034
  "block w-full px-4 py-2.5 placeholder:text-gray-400 font-normal text-sm",
5014
5035
  "rounded outline-0",
5015
5036
  "transition duration-500 ease-in-out focus:outline-0 focus:border-primary-light",
5016
- sn(f),
5037
+ ln(f),
5017
5038
  e
5018
5039
  ),
5019
5040
  preventOpenOnFocus: m,
5020
5041
  fixedHeight: !0
5021
5042
  }
5022
5043
  ),
5023
- /* @__PURE__ */ ae.jsx("div", { className: "absolute top-0 bottom-0 right-4 flex items-center pointer-events-none touch-none", children: /* @__PURE__ */ ae.jsx(ln, {}) }),
5044
+ /* @__PURE__ */ ae.jsx("div", { className: "absolute top-0 bottom-0 right-4 flex items-center pointer-events-none touch-none", children: /* @__PURE__ */ ae.jsx(cn, {}) }),
5024
5045
  w != null && d === !0 ? /* @__PURE__ */ ae.jsx(
5025
5046
  "button",
5026
5047
  {
@@ -5029,7 +5050,7 @@ const $o = pn(
5029
5050
  onClick: () => {
5030
5051
  o(null);
5031
5052
  },
5032
- children: /* @__PURE__ */ ae.jsx(cn, {})
5053
+ children: /* @__PURE__ */ ae.jsx(un, {})
5033
5054
  }
5034
5055
  ) : null
5035
5056
  ] })
@@ -5037,10 +5058,10 @@ const $o = pn(
5037
5058
  );
5038
5059
  }
5039
5060
  );
5040
- $o.displayName = "InputDateComponent";
5041
- function Go(o) {
5061
+ zo.displayName = "InputDateComponent";
5062
+ function Xo(o) {
5042
5063
  return `${new Date(2023, 11, 15).toLocaleDateString().replace("15", "dd").replace("12", "MM").replace("2023", "yyyy")}${o ? ", h:mm aa" : ""}`;
5043
5064
  }
5044
5065
  export {
5045
- $o as InputDateComponent
5066
+ zo as InputDateComponent
5046
5067
  };