@hybridcore/ui 1.6.13 → 1.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/AccordionSummary-DUtr16g6.js +781 -0
  2. package/dist/Add-Bk8R160M.js +403 -0
  3. package/dist/Button-Cem3nbwc.js +357 -0
  4. package/dist/ButtonBase-DObmf4Q_.js +886 -0
  5. package/dist/Delete-CVJ6FeDn.js +203 -0
  6. package/dist/FormGroup-BRj1o7-E.js +89 -0
  7. package/dist/InputLabel-CjD30ZHz.js +341 -0
  8. package/dist/MenuItem-BKvRGLvM.js +233 -0
  9. package/dist/Modal-BVYydOr5.js +1156 -0
  10. package/dist/Paper-B1HV8GyO.js +582 -0
  11. package/dist/Select-Bfhvigsx.js +3914 -0
  12. package/dist/Source-BSZST_GH.js +4410 -0
  13. package/dist/SwitchBase-BEK49kdS.js +235 -0
  14. package/dist/Text-ChJRuaD8.js +2197 -0
  15. package/dist/TextField-Ca9ykixI.js +696 -0
  16. package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
  17. package/dist/Typography-D3X-Y5fh.js +178 -0
  18. package/dist/Vector-BmuhQO4p.js +3606 -0
  19. package/dist/Vector-DfTqQEln.js +1735 -0
  20. package/dist/WKT-2wsDT-nq.js +2310 -0
  21. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  22. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  23. package/dist/assets/index.css +1 -1
  24. package/dist/assets/index2.css +1 -1
  25. package/dist/assets/index3.css +1 -0
  26. package/dist/assets/index4.css +1 -0
  27. package/dist/clsx-OuTLNxxd.js +16 -0
  28. package/dist/components/button/styled.js +1 -1
  29. package/dist/components/charts/_common/format.js +126 -82
  30. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  31. package/dist/components/collapsible-card/index.js +30 -21
  32. package/dist/components/collapsible-card/styled.js +14 -16
  33. package/dist/components/color-picker/index.js +3358 -2228
  34. package/dist/components/color-picker/styled.js +7 -87
  35. package/dist/components/confirm/dialog.js +7 -89
  36. package/dist/components/confirm/index.js +1 -1
  37. package/dist/components/data-map/index.js +1 -1
  38. package/dist/components/data-map/logic.js +20 -20
  39. package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
  40. package/dist/components/date-range-picker/index.js +454 -466
  41. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  42. package/dist/components/duration-select/index.js +10 -10
  43. package/dist/components/duration-select/styled.js +1 -1
  44. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  45. package/dist/components/geometry-picker/edit/index.js +1 -1
  46. package/dist/components/geometry-picker/geometry/index.js +1 -1
  47. package/dist/components/geometry-picker/kml/index.js +11 -11
  48. package/dist/components/geometry-picker/map/logic.js +3656 -145
  49. package/dist/components/geometry-picker/map/style.js +17 -18
  50. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
  51. package/dist/components/heat-map/index.js +1 -1
  52. package/dist/components/heat-map/logic.js +1924 -77
  53. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
  54. package/dist/components/instance-hierarchy-table/styled.js +16 -18
  55. package/dist/components/map/helpers/mapbox.js +15 -17
  56. package/dist/components/map/helpers/ol.js +27 -386
  57. package/dist/components/map/index.js +10 -11
  58. package/dist/components/map/logic.js +22 -22
  59. package/dist/components/map/styled.js +27 -31
  60. package/dist/components/phone-input/index.js +9 -10
  61. package/dist/components/property-mapping/index.js +1 -1
  62. package/dist/components/prr-map/index.js +1 -1
  63. package/dist/components/prr-map/logic.js +26 -27
  64. package/dist/components/raster-grid-map/index.js +1 -1
  65. package/dist/components/raster-grid-map/logic.js +57 -60
  66. package/dist/components/sortable-list/index.js +1264 -1091
  67. package/dist/components/template-form/components/property-list/index.js +32 -36
  68. package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
  69. package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
  70. package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
  71. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
  72. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
  73. package/dist/components/tree-select/index.js +16 -16
  74. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  75. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  76. package/dist/createSvgIcon-D7U1nd99.js +185 -0
  77. package/dist/debounce-46wSf_lW.js +15 -0
  78. package/dist/dialog-BtJhjyF5.js +664 -0
  79. package/dist/extends-C3382pL0.js +22 -0
  80. package/dist/formControlState-vgaj2ksH.js +10 -0
  81. package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
  82. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  83. package/dist/index-DH6qsPBn.js +153 -0
  84. package/dist/index.esm-DAf19hyR.js +318 -0
  85. package/dist/math-Bvt2Ubuz.js +704 -0
  86. package/dist/ol-yOE-NV0X.js +7465 -0
  87. package/dist/ownerWindow-wg6foiOE.js +10 -0
  88. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  89. package/dist/styled-DD4BkuVf.js +350 -0
  90. package/dist/useControlled-BYdyS7Pn.js +31 -0
  91. package/dist/useFormControl-CatNKXAi.js +10 -0
  92. package/dist/useId-BW-oWmul.js +19 -0
  93. package/dist/useSlot-u4t0X96G.js +42 -0
  94. package/package.json +1 -1
  95. package/dist/index.esm-UfGMjYOL.js +0 -197
@@ -1,27 +1,28 @@
1
- import { jsxs as ba, jsx as _t } from "react/jsx-runtime";
2
- import f, { useMemo as sn, forwardRef as pa, useState as Pe, useCallback as Ae, useImperativeHandle as wa, Component as Da, useLayoutEffect as Oa, useEffect as yt, useRef as Ke } from "react";
3
- import { findDOMNode as xa, createPortal as Ea } from "react-dom";
4
- import { P as l } from "../../index-C__OZmYy.js";
5
- import { c as At, a as Er } from "../../_commonjsHelpers-BVfed4GL.js";
6
- import { DateRangePickerRoot as Sa, DateRangePickerLabel as Ca } from "./styled.js";
7
- import { c as _a } from "../../createReactComponent-C7L-DMHj.js";
8
- import { I as Aa } from "../../IconX-C2wmVYSK.js";
9
- import '../../assets/index2.css';/**
1
+ import { jsxs as ga, jsx as _t } from "react/jsx-runtime";
2
+ import f, { useMemo as sn, forwardRef as ba, useState as Pe, useCallback as Ae, useImperativeHandle as pa, Component as wa, useLayoutEffect as Da, useEffect as yt, useRef as Ke } from "react";
3
+ import { findDOMNode as Oa, createPortal as xa } from "react-dom";
4
+ import { P as l } from "../../index-CblbdqjE.js";
5
+ import { c as We } from "../../clsx-OuTLNxxd.js";
6
+ import { c as At, g as Er } from "../../_commonjsHelpers-BkfeUUK-.js";
7
+ import { DateRangePickerRoot as Ea, DateRangePickerLabel as Sa } from "./styled.js";
8
+ import { c as Ca } from "../../createReactComponent-C7L-DMHj.js";
9
+ import { I as _a } from "../../IconX-C2wmVYSK.js";
10
+ import '../../assets/index4.css';/**
10
11
  * @license @tabler/icons-react v3.44.0 - MIT
11
12
  *
12
13
  * This source code is licensed under the MIT license.
13
14
  * See the LICENSE file in the root directory of this source tree.
14
15
  */
15
- const Pa = [["path", { d: "M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12", key: "svg-0" }], ["path", { d: "M16 3v4", key: "svg-1" }], ["path", { d: "M8 3v4", key: "svg-2" }], ["path", { d: "M4 11h16", key: "svg-3" }], ["path", { d: "M11 15h1", key: "svg-4" }], ["path", { d: "M12 15v3", key: "svg-5" }]], Na = _a("outline", "calendar", "Calendar", Pa);
16
+ const Aa = [["path", { d: "M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12", key: "svg-0" }], ["path", { d: "M16 3v4", key: "svg-1" }], ["path", { d: "M8 3v4", key: "svg-2" }], ["path", { d: "M4 11h16", key: "svg-3" }], ["path", { d: "M11 15h1", key: "svg-4" }], ["path", { d: "M12 15v3", key: "svg-5" }]], Pa = Ca("outline", "calendar", "Calendar", Aa);
16
17
  var X = function(e, t, r) {
17
18
  if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
18
19
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
19
20
  return e.concat(o || Array.prototype.slice.call(t));
20
- }, ka = ["onCopy", "onCut", "onPaste"], La = [
21
+ }, Na = ["onCopy", "onCut", "onPaste"], ka = [
21
22
  "onCompositionEnd",
22
23
  "onCompositionStart",
23
24
  "onCompositionUpdate"
24
- ], Ta = ["onFocus", "onBlur"], Ia = ["onInput", "onInvalid", "onReset", "onSubmit"], Ma = ["onLoad", "onError"], ja = ["onKeyDown", "onKeyPress", "onKeyUp"], Fa = [
25
+ ], La = ["onFocus", "onBlur"], Ta = ["onInput", "onInvalid", "onReset", "onSubmit"], Ia = ["onLoad", "onError"], Ma = ["onKeyDown", "onKeyPress", "onKeyUp"], ja = [
25
26
  "onAbort",
26
27
  "onCanPlay",
27
28
  "onCanPlayThrough",
@@ -45,7 +46,7 @@ var X = function(e, t, r) {
45
46
  "onTimeUpdate",
46
47
  "onVolumeChange",
47
48
  "onWaiting"
48
- ], Wa = [
49
+ ], Fa = [
49
50
  "onClick",
50
51
  "onContextMenu",
51
52
  "onDoubleClick",
@@ -56,7 +57,7 @@ var X = function(e, t, r) {
56
57
  "onMouseOut",
57
58
  "onMouseOver",
58
59
  "onMouseUp"
59
- ], Va = [
60
+ ], Wa = [
60
61
  "onDrag",
61
62
  "onDragEnd",
62
63
  "onDragEnter",
@@ -65,7 +66,7 @@ var X = function(e, t, r) {
65
66
  "onDragOver",
66
67
  "onDragStart",
67
68
  "onDrop"
68
- ], Ra = ["onSelect"], $a = ["onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"], Ya = [
69
+ ], Va = ["onSelect"], Ra = ["onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"], $a = [
69
70
  "onPointerDown",
70
71
  "onPointerMove",
71
72
  "onPointerUp",
@@ -76,52 +77,39 @@ var X = function(e, t, r) {
76
77
  "onPointerLeave",
77
78
  "onPointerOver",
78
79
  "onPointerOut"
79
- ], Ba = ["onScroll"], qa = ["onWheel"], Ua = [
80
+ ], Ya = ["onScroll"], Ba = ["onWheel"], qa = [
80
81
  "onAnimationStart",
81
82
  "onAnimationEnd",
82
83
  "onAnimationIteration"
83
- ], Ha = ["onTransitionEnd"], Ga = ["onToggle"], Ka = ["onChange"], Za = X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X([], ka, !0), La, !0), Ta, !0), Ia, !0), Ma, !0), ja, !0), Fa, !0), Wa, !0), Va, !0), Ra, !0), $a, !0), Ya, !0), Ba, !0), qa, !0), Ua, !0), Ha, !0), Ka, !0), Ga, !0);
84
- function za(e, t) {
84
+ ], Ua = ["onTransitionEnd"], Ha = ["onToggle"], Ga = ["onChange"], Ka = X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X([], Na, !0), ka, !0), La, !0), Ta, !0), Ia, !0), Ma, !0), ja, !0), Fa, !0), Wa, !0), Va, !0), Ra, !0), $a, !0), Ya, !0), Ba, !0), qa, !0), Ua, !0), Ga, !0), Ha, !0);
85
+ function Za(e, t) {
85
86
  var r = {};
86
- return Za.forEach(function(n) {
87
+ return Ka.forEach(function(n) {
87
88
  var a = e[n];
88
89
  a && (r[n] = a);
89
90
  }), r;
90
91
  }
91
- function Sr(e) {
92
- var t, r, n = "";
93
- if (typeof e == "string" || typeof e == "number") n += e;
94
- else if (typeof e == "object") if (Array.isArray(e)) {
95
- var a = e.length;
96
- for (t = 0; t < a; t++) e[t] && (r = Sr(e[t])) && (n && (n += " "), n += r);
97
- } else for (r in e) e[r] && (n && (n += " "), n += r);
98
- return n;
99
- }
100
- function We() {
101
- for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = Sr(e)) && (n && (n += " "), n += t);
102
- return n;
103
- }
104
- const Xa = (e, t, r, n) => {
92
+ const za = (e, t, r, n) => {
105
93
  if (r === "length" || r === "prototype" || r === "arguments" || r === "caller")
106
94
  return;
107
95
  const a = Object.getOwnPropertyDescriptor(e, r), o = Object.getOwnPropertyDescriptor(t, r);
108
- !Ja(a, o) && n || Object.defineProperty(e, r, o);
109
- }, Ja = function(e, t) {
96
+ !Xa(a, o) && n || Object.defineProperty(e, r, o);
97
+ }, Xa = function(e, t) {
110
98
  return e === void 0 || e.configurable || e.writable === t.writable && e.enumerable === t.enumerable && e.configurable === t.configurable && (e.writable || e.value === t.value);
111
- }, Qa = (e, t) => {
99
+ }, Ja = (e, t) => {
112
100
  const r = Object.getPrototypeOf(t);
113
101
  r !== Object.getPrototypeOf(e) && Object.setPrototypeOf(e, r);
114
- }, eo = (e, t) => `/* Wrapped ${e}*/
115
- ${t}`, to = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), no = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"), ro = (e, t, r) => {
116
- const n = r === "" ? "" : `with ${r.trim()}() `, a = eo.bind(null, n, t.toString());
117
- Object.defineProperty(a, "name", no), Object.defineProperty(e, "toString", { ...to, value: a });
118
- }, ao = (e, t, { ignoreNonConfigurable: r = !1 } = {}) => {
102
+ }, Qa = (e, t) => `/* Wrapped ${e}*/
103
+ ${t}`, eo = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), to = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"), no = (e, t, r) => {
104
+ const n = r === "" ? "" : `with ${r.trim()}() `, a = Qa.bind(null, n, t.toString());
105
+ Object.defineProperty(a, "name", to), Object.defineProperty(e, "toString", { ...eo, value: a });
106
+ }, ro = (e, t, { ignoreNonConfigurable: r = !1 } = {}) => {
119
107
  const { name: n } = e;
120
108
  for (const a of Reflect.ownKeys(t))
121
- Xa(e, t, a, r);
122
- return Qa(e, t), ro(e, t, n), e;
109
+ za(e, t, a, r);
110
+ return Ja(e, t), no(e, t, n), e;
123
111
  };
124
- var oo = ao, fn = { exports: {} }, io = () => {
112
+ var ao = ro, fn = { exports: {} }, oo = () => {
125
113
  const e = {};
126
114
  return e.promise = new Promise((t, r) => {
127
115
  e.resolve = t, e.reject = r;
@@ -129,23 +117,23 @@ var oo = ao, fn = { exports: {} }, io = () => {
129
117
  };
130
118
  (function(e, t) {
131
119
  var r = At && At.__awaiter || function(i, u, c, s) {
132
- return new (c || (c = Promise))(function(v, d) {
120
+ return new (c || (c = Promise))(function(d, v) {
133
121
  function m(g) {
134
122
  try {
135
123
  b(s.next(g));
136
124
  } catch (w) {
137
- d(w);
125
+ v(w);
138
126
  }
139
127
  }
140
128
  function y(g) {
141
129
  try {
142
130
  b(s.throw(g));
143
131
  } catch (w) {
144
- d(w);
132
+ v(w);
145
133
  }
146
134
  }
147
135
  function b(g) {
148
- g.done ? v(g.value) : new c(function(w) {
136
+ g.done ? d(g.value) : new c(function(w) {
149
137
  w(g.value);
150
138
  }).then(m, y);
151
139
  }
@@ -155,22 +143,22 @@ var oo = ao, fn = { exports: {} }, io = () => {
155
143
  return i && i.__esModule ? i : { default: i };
156
144
  };
157
145
  Object.defineProperty(t, "__esModule", { value: !0 });
158
- const a = n(io);
146
+ const a = n(oo);
159
147
  function o(i, u = "maxAge") {
160
- let c, s, v;
161
- const d = () => r(this, void 0, void 0, function* () {
148
+ let c, s, d;
149
+ const v = () => r(this, void 0, void 0, function* () {
162
150
  if (c !== void 0)
163
151
  return;
164
152
  const b = (g) => r(this, void 0, void 0, function* () {
165
- v = a.default();
153
+ d = a.default();
166
154
  const w = g[1][u] - Date.now();
167
155
  if (w <= 0) {
168
- i.delete(g[0]), v.resolve();
156
+ i.delete(g[0]), d.resolve();
169
157
  return;
170
158
  }
171
159
  return c = g[0], s = setTimeout(() => {
172
- i.delete(g[0]), v && v.resolve();
173
- }, w), typeof s.unref == "function" && s.unref(), v.promise;
160
+ i.delete(g[0]), d && d.resolve();
161
+ }, w), typeof s.unref == "function" && s.unref(), d.promise;
174
162
  });
175
163
  try {
176
164
  for (const g of i)
@@ -179,19 +167,19 @@ var oo = ao, fn = { exports: {} }, io = () => {
179
167
  }
180
168
  c = void 0;
181
169
  }), m = () => {
182
- c = void 0, s !== void 0 && (clearTimeout(s), s = void 0), v !== void 0 && (v.reject(void 0), v = void 0);
170
+ c = void 0, s !== void 0 && (clearTimeout(s), s = void 0), d !== void 0 && (d.reject(void 0), d = void 0);
183
171
  }, y = i.set.bind(i);
184
172
  return i.set = (b, g) => {
185
173
  i.has(b) && i.delete(b);
186
174
  const w = y(b, g);
187
- return c && c === b && m(), d(), w;
188
- }, d(), i;
175
+ return c && c === b && m(), v(), w;
176
+ }, v(), i;
189
177
  }
190
178
  t.default = o, e.exports = o, e.exports.default = o;
191
179
  })(fn, fn.exports);
192
- var lo = fn.exports;
193
- const uo = oo, co = lo, nn = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), Tt = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
194
- typeof n == "number" && co(r);
180
+ var io = fn.exports;
181
+ const lo = ao, uo = io, nn = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Tt = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
182
+ typeof n == "number" && uo(r);
195
183
  const a = function(...o) {
196
184
  const i = t ? t(o) : o[0], u = r.get(i);
197
185
  if (u)
@@ -202,9 +190,9 @@ const uo = oo, co = lo, nn = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */
202
190
  maxAge: n ? Date.now() + n : Number.POSITIVE_INFINITY
203
191
  }), c;
204
192
  };
205
- return uo(a, e, {
193
+ return lo(a, e, {
206
194
  ignoreNonConfigurable: !0
207
- }), Cr.set(a, r), a;
195
+ }), Sr.set(a, r), a;
208
196
  };
209
197
  Tt.decorator = (e = {}) => (t, r, n) => {
210
198
  const a = t[r];
@@ -219,62 +207,62 @@ Tt.decorator = (e = {}) => (t, r, n) => {
219
207
  };
220
208
  };
221
209
  Tt.clear = (e) => {
222
- const t = Cr.get(e);
210
+ const t = Sr.get(e);
223
211
  if (!t)
224
212
  throw new TypeError("Can't clear a function that was not memoized!");
225
213
  if (typeof t.clear != "function")
226
214
  throw new TypeError("The cache Map can't be cleared!");
227
215
  t.clear();
228
216
  };
229
- var so = Tt;
230
- const _r = /* @__PURE__ */ Er(so);
231
- function fo(e) {
217
+ var co = Tt;
218
+ const Cr = /* @__PURE__ */ Er(co);
219
+ function so(e) {
232
220
  return typeof e == "string";
233
221
  }
234
- function vo(e, t, r) {
222
+ function fo(e, t, r) {
235
223
  return r.indexOf(e) === t;
236
224
  }
237
- function mo(e) {
225
+ function vo(e) {
238
226
  return e.toLowerCase() === e;
239
227
  }
240
228
  function Zn(e) {
241
229
  return e.indexOf(",") === -1 ? e : e.split(",");
242
230
  }
243
- function vn(e) {
231
+ function dn(e) {
244
232
  if (!e)
245
233
  return e;
246
234
  if (e === "C" || e === "posix" || e === "POSIX")
247
235
  return "en-US";
248
236
  if (e.indexOf(".") !== -1) {
249
237
  var t = e.split(".")[0], r = t === void 0 ? "" : t;
250
- return vn(r);
238
+ return dn(r);
251
239
  }
252
240
  if (e.indexOf("@") !== -1) {
253
241
  var n = e.split("@")[0], r = n === void 0 ? "" : n;
254
- return vn(r);
242
+ return dn(r);
255
243
  }
256
- if (e.indexOf("-") === -1 || !mo(e))
244
+ if (e.indexOf("-") === -1 || !vo(e))
257
245
  return e;
258
246
  var a = e.split("-"), o = a[0], i = a[1], u = i === void 0 ? "" : i;
259
247
  return "".concat(o, "-").concat(u.toUpperCase());
260
248
  }
261
- function yo(e) {
249
+ function mo(e) {
262
250
  var t = e === void 0 ? {} : e, r = t.useFallbackLocale, n = r === void 0 ? !0 : r, a = t.fallbackLocale, o = a === void 0 ? "en-US" : a, i = [];
263
251
  if (typeof navigator < "u") {
264
- for (var u = navigator.languages || [], c = [], s = 0, v = u; s < v.length; s++) {
265
- var d = v[s];
266
- c = c.concat(Zn(d));
252
+ for (var u = navigator.languages || [], c = [], s = 0, d = u; s < d.length; s++) {
253
+ var v = d[s];
254
+ c = c.concat(Zn(v));
267
255
  }
268
256
  var m = navigator.language, y = m && Zn(m);
269
257
  i = i.concat(c, y);
270
258
  }
271
- return n && i.push(o), i.filter(fo).map(vn).filter(vo);
259
+ return n && i.push(o), i.filter(so).map(dn).filter(fo);
272
260
  }
273
- var ho = _r(yo, { cacheKey: JSON.stringify });
274
- function go(e) {
275
- return ho(e)[0] || null;
261
+ var yo = Cr(mo, { cacheKey: JSON.stringify });
262
+ function ho(e) {
263
+ return yo(e)[0] || null;
276
264
  }
277
- var An = _r(go, { cacheKey: JSON.stringify });
265
+ var An = Cr(ho, { cacheKey: JSON.stringify });
278
266
  function Ie(e, t, r) {
279
267
  return function(a, o) {
280
268
  o === void 0 && (o = r);
@@ -321,17 +309,17 @@ function it(e) {
321
309
  var t = C(e), r = t + (-t + 1) % 100, n = /* @__PURE__ */ new Date();
322
310
  return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
323
311
  }
324
- var bo = Ie(C, it, -100), Ar = Ie(C, it, 100), Pn = Dt(Ar), po = Ie(C, Pn, -100), Pr = Ot(it, Pn);
312
+ var go = Ie(C, it, -100), _r = Ie(C, it, 100), Pn = Dt(_r), bo = Ie(C, Pn, -100), Ar = Ot(it, Pn);
325
313
  function Me(e) {
326
314
  var t = C(e), r = t + (-t + 1) % 10, n = /* @__PURE__ */ new Date();
327
315
  return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
328
316
  }
329
- var Nr = Ie(C, Me, -10), Nn = Ie(C, Me, 10), xt = Dt(Nn), kr = Ie(C, xt, -10), Lr = Ot(Me, xt);
317
+ var Pr = Ie(C, Me, -10), Nn = Ie(C, Me, 10), xt = Dt(Nn), Nr = Ie(C, xt, -10), kr = Ot(Me, xt);
330
318
  function ze(e) {
331
319
  var t = C(e), r = /* @__PURE__ */ new Date();
332
320
  return r.setFullYear(t, 0, 1), r.setHours(0, 0, 0, 0), r;
333
321
  }
334
- var Tr = Ie(C, ze, -1), kn = Ie(C, ze, 1), Et = Dt(kn), Ir = Ie(C, Et, -1), wo = Ot(ze, Et);
322
+ var Lr = Ie(C, ze, -1), kn = Ie(C, ze, 1), Et = Dt(kn), Tr = Ie(C, Et, -1), po = Ot(ze, Et);
335
323
  function Ln(e, t) {
336
324
  return function(n, a) {
337
325
  a === void 0 && (a = t);
@@ -343,8 +331,8 @@ function $e(e) {
343
331
  var t = C(e), r = Re(e), n = /* @__PURE__ */ new Date();
344
332
  return n.setFullYear(t, r, 1), n.setHours(0, 0, 0, 0), n;
345
333
  }
346
- var Mr = Ln($e, -1), Tn = Ln($e, 1), lt = Dt(Tn), jr = Ln(lt, -1), Do = Ot($e, lt);
347
- function Oo(e, t) {
334
+ var Ir = Ln($e, -1), Tn = Ln($e, 1), lt = Dt(Tn), Mr = Ln(lt, -1), wo = Ot($e, lt);
335
+ function Do(e, t) {
348
336
  return function(n, a) {
349
337
  a === void 0 && (a = t);
350
338
  var o = C(n), i = Re(n), u = Ve(n) + a, c = /* @__PURE__ */ new Date();
@@ -355,7 +343,7 @@ function ut(e) {
355
343
  var t = C(e), r = Re(e), n = Ve(e), a = /* @__PURE__ */ new Date();
356
344
  return a.setFullYear(t, r, n), a.setHours(0, 0, 0, 0), a;
357
345
  }
358
- var xo = Oo(ut, 1), $t = Dt(xo), Eo = Ot(ut, $t);
346
+ var Oo = Do(ut, 1), $t = Dt(Oo), xo = Ot(ut, $t);
359
347
  function In(e) {
360
348
  return Ve(lt(e));
361
349
  }
@@ -364,15 +352,15 @@ function mt(e, t) {
364
352
  var r = "".concat(e);
365
353
  return r.length >= t ? e : "0000".concat(r).slice(-t);
366
354
  }
367
- function So(e) {
355
+ function Eo(e) {
368
356
  var t = mt(C(e), 4), r = mt(Te(e));
369
357
  return "".concat(t, "-").concat(r);
370
358
  }
371
- function Co(e) {
359
+ function So(e) {
372
360
  var t = mt(C(e), 4), r = mt(Te(e)), n = mt(Ve(e));
373
361
  return "".concat(t, "-").concat(r, "-").concat(n);
374
362
  }
375
- var vt, T = {
363
+ var dt, T = {
376
364
  GREGORY: "gregory",
377
365
  HEBREW: "hebrew",
378
366
  ISLAMIC: "islamic",
@@ -382,7 +370,7 @@ var vt, T = {
382
370
  HEBREW: "Hebrew",
383
371
  ISO_8601: "ISO 8601",
384
372
  US: "US"
385
- }, _o = (vt = {}, vt[T.GREGORY] = [
373
+ }, Co = (dt = {}, dt[T.GREGORY] = [
386
374
  "en-CA",
387
375
  "en-US",
388
376
  "es-AR",
@@ -402,7 +390,7 @@ var vt, T = {
402
390
  "es-SV",
403
391
  "es-VE",
404
392
  "pt-BR"
405
- ], vt[T.HEBREW] = ["he", "he-IL"], vt[T.ISLAMIC] = [
393
+ ], dt[T.HEBREW] = ["he", "he-IL"], dt[T.ISLAMIC] = [
406
394
  // ar-LB, ar-MA intentionally missing
407
395
  "ar",
408
396
  "ar-AE",
@@ -423,8 +411,8 @@ var vt, T = {
423
411
  "dv-MV",
424
412
  "ps",
425
413
  "ps-AR"
426
- ], vt), Mn = [0, 1, 2, 3, 4, 5, 6], rn = /* @__PURE__ */ new Map();
427
- function Ao(e) {
414
+ ], dt), Mn = [0, 1, 2, 3, 4, 5, 6], rn = /* @__PURE__ */ new Map();
415
+ function _o(e) {
428
416
  return function(r, n) {
429
417
  var a = r || An();
430
418
  rn.has(a) || rn.set(a, /* @__PURE__ */ new Map());
@@ -432,23 +420,23 @@ function Ao(e) {
432
420
  return o.has(e) || o.set(e, new Intl.DateTimeFormat(a || void 0, e).format), o.get(e)(n);
433
421
  };
434
422
  }
435
- function Po(e) {
423
+ function Ao(e) {
436
424
  var t = new Date(e);
437
425
  return new Date(t.setHours(12));
438
426
  }
439
427
  function Xe(e) {
440
428
  return function(t, r) {
441
- return Ao(e)(t, Po(r));
429
+ return _o(e)(t, Ao(r));
442
430
  };
443
431
  }
444
- var No = { day: "numeric" }, ko = {
432
+ var Po = { day: "numeric" }, No = {
445
433
  day: "numeric",
446
434
  month: "long",
447
435
  year: "numeric"
448
- }, Lo = { month: "long" }, To = {
436
+ }, ko = { month: "long" }, Lo = {
449
437
  month: "long",
450
438
  year: "numeric"
451
- }, Io = { weekday: "short" }, Mo = { weekday: "long" }, jo = { year: "numeric" }, Fo = Xe(No), Wo = Xe(ko), Vo = Xe(Lo), Fr = Xe(To), Ro = Xe(Io), $o = Xe(Mo), Yt = Xe(jo), Yo = Mn[0], Bo = Mn[5], zn = Mn[6];
439
+ }, To = { weekday: "short" }, Io = { weekday: "long" }, Mo = { year: "numeric" }, jo = Xe(Po), Fo = Xe(No), Wo = Xe(ko), jr = Xe(Lo), Vo = Xe(To), Ro = Xe(Io), Yt = Xe(Mo), $o = Mn[0], Yo = Mn[5], zn = Mn[6];
452
440
  function ht(e, t) {
453
441
  t === void 0 && (t = T.ISO_8601);
454
442
  var r = e.getDay();
@@ -464,24 +452,24 @@ function ht(e, t) {
464
452
  throw new Error("Unsupported calendar type.");
465
453
  }
466
454
  }
467
- function qo(e) {
455
+ function Bo(e) {
468
456
  var t = it(e);
469
457
  return C(t);
470
458
  }
471
- function Uo(e) {
459
+ function qo(e) {
472
460
  var t = Me(e);
473
461
  return C(t);
474
462
  }
475
- function dn(e, t) {
463
+ function vn(e, t) {
476
464
  t === void 0 && (t = T.ISO_8601);
477
465
  var r = C(e), n = Re(e), a = e.getDate() - ht(e, t);
478
466
  return new Date(r, n, a);
479
467
  }
480
- function Ho(e, t) {
468
+ function Uo(e, t) {
481
469
  t === void 0 && (t = T.ISO_8601);
482
- var r = t === T.GREGORY ? T.GREGORY : T.ISO_8601, n = dn(e, t), a = C(e) + 1, o, i;
470
+ var r = t === T.GREGORY ? T.GREGORY : T.ISO_8601, n = vn(e, t), a = C(e) + 1, o, i;
483
471
  do
484
- o = new Date(a, 0, r === T.ISO_8601 ? 4 : 1), i = dn(o, t), a -= 1;
472
+ o = new Date(a, 0, r === T.ISO_8601 ? 4 : 1), i = vn(o, t), a -= 1;
485
473
  while (e < i);
486
474
  return Math.round((n.getTime() - i.getTime()) / (864e5 * 7)) + 1;
487
475
  }
@@ -501,24 +489,24 @@ function Ze(e, t) {
501
489
  throw new Error("Invalid rangeType: ".concat(e));
502
490
  }
503
491
  }
504
- function Go(e, t) {
492
+ function Ho(e, t) {
505
493
  switch (e) {
506
494
  case "century":
507
- return bo(t);
495
+ return go(t);
508
496
  case "decade":
509
- return Nr(t);
497
+ return Pr(t);
510
498
  case "year":
511
- return Tr(t);
499
+ return Lr(t);
512
500
  case "month":
513
- return Mr(t);
501
+ return Ir(t);
514
502
  default:
515
503
  throw new Error("Invalid rangeType: ".concat(e));
516
504
  }
517
505
  }
518
- function Wr(e, t) {
506
+ function Fr(e, t) {
519
507
  switch (e) {
520
508
  case "century":
521
- return Ar(t);
509
+ return _r(t);
522
510
  case "decade":
523
511
  return Nn(t);
524
512
  case "year":
@@ -529,19 +517,19 @@ function Wr(e, t) {
529
517
  throw new Error("Invalid rangeType: ".concat(e));
530
518
  }
531
519
  }
532
- function Ko(e, t) {
520
+ function Go(e, t) {
533
521
  switch (e) {
534
522
  case "decade":
535
- return Nr(t, -100);
523
+ return Pr(t, -100);
536
524
  case "year":
537
- return Tr(t, -10);
525
+ return Lr(t, -10);
538
526
  case "month":
539
- return Mr(t, -12);
527
+ return Ir(t, -12);
540
528
  default:
541
529
  throw new Error("Invalid rangeType: ".concat(e));
542
530
  }
543
531
  }
544
- function Zo(e, t) {
532
+ function Ko(e, t) {
545
533
  switch (e) {
546
534
  case "decade":
547
535
  return Nn(t, 100);
@@ -553,7 +541,7 @@ function Zo(e, t) {
553
541
  throw new Error("Invalid rangeType: ".concat(e));
554
542
  }
555
543
  }
556
- function Vr(e, t) {
544
+ function Wr(e, t) {
557
545
  switch (e) {
558
546
  case "century":
559
547
  return Pn(t);
@@ -569,28 +557,28 @@ function Vr(e, t) {
569
557
  throw new Error("Invalid rangeType: ".concat(e));
570
558
  }
571
559
  }
572
- function zo(e, t) {
560
+ function Zo(e, t) {
573
561
  switch (e) {
574
562
  case "century":
575
- return po(t);
563
+ return bo(t);
576
564
  case "decade":
577
- return kr(t);
565
+ return Nr(t);
578
566
  case "year":
579
- return Ir(t);
567
+ return Tr(t);
580
568
  case "month":
581
- return jr(t);
569
+ return Mr(t);
582
570
  default:
583
571
  throw new Error("Invalid rangeType: ".concat(e));
584
572
  }
585
573
  }
586
- function Xo(e, t) {
574
+ function zo(e, t) {
587
575
  switch (e) {
588
576
  case "decade":
589
- return kr(t, -100);
577
+ return Nr(t, -100);
590
578
  case "year":
591
- return Ir(t, -10);
579
+ return Tr(t, -10);
592
580
  case "month":
593
- return jr(t, -12);
581
+ return Mr(t, -12);
594
582
  default:
595
583
  throw new Error("Invalid rangeType: ".concat(e));
596
584
  }
@@ -598,66 +586,66 @@ function Xo(e, t) {
598
586
  function Xn(e, t) {
599
587
  switch (e) {
600
588
  case "century":
601
- return Pr(t);
589
+ return Ar(t);
602
590
  case "decade":
603
- return Lr(t);
591
+ return kr(t);
604
592
  case "year":
605
- return wo(t);
593
+ return po(t);
606
594
  case "month":
607
- return Do(t);
595
+ return wo(t);
608
596
  case "day":
609
- return Eo(t);
597
+ return xo(t);
610
598
  default:
611
599
  throw new Error("Invalid rangeType: ".concat(e));
612
600
  }
613
601
  }
614
- function Jo(e, t, r) {
602
+ function Xo(e, t, r) {
615
603
  var n = [t, r].sort(function(a, o) {
616
604
  return a.getTime() - o.getTime();
617
605
  });
618
- return [Ze(e, n[0]), Vr(e, n[1])];
606
+ return [Ze(e, n[0]), Wr(e, n[1])];
619
607
  }
620
- function Rr(e, t, r) {
608
+ function Vr(e, t, r) {
621
609
  return t === void 0 && (t = Yt), r.map(function(n) {
622
610
  return t(e, n);
623
611
  }).join(" – ");
624
612
  }
625
- function Qo(e, t, r) {
626
- return Rr(e, t, Pr(r));
613
+ function Jo(e, t, r) {
614
+ return Vr(e, t, Ar(r));
627
615
  }
628
- function $r(e, t, r) {
629
- return Rr(e, t, Lr(r));
616
+ function Rr(e, t, r) {
617
+ return Vr(e, t, kr(r));
630
618
  }
631
- function ei(e) {
619
+ function Qo(e) {
632
620
  return e.getDay() === (/* @__PURE__ */ new Date()).getDay();
633
621
  }
634
- function Yr(e, t) {
622
+ function $r(e, t) {
635
623
  t === void 0 && (t = T.ISO_8601);
636
624
  var r = e.getDay();
637
625
  switch (t) {
638
626
  case T.ISLAMIC:
639
627
  case T.HEBREW:
640
- return r === Bo || r === zn;
628
+ return r === Yo || r === zn;
641
629
  case T.ISO_8601:
642
630
  case T.GREGORY:
643
- return r === zn || r === Yo;
631
+ return r === zn || r === $o;
644
632
  default:
645
633
  throw new Error("Unsupported calendar type.");
646
634
  }
647
635
  }
648
636
  var _e = "react-calendar__navigation";
649
- function ti(e) {
650
- var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Fr : n, o = e.formatYear, i = o === void 0 ? Yt : o, u = e.locale, c = e.maxDate, s = e.minDate, v = e.navigationAriaLabel, d = v === void 0 ? "" : v, m = e.navigationAriaLive, y = e.navigationLabel, b = e.next2AriaLabel, g = b === void 0 ? "" : b, w = e.next2Label, D = w === void 0 ? "»" : w, x = e.nextAriaLabel, A = x === void 0 ? "" : x, P = e.nextLabel, $ = P === void 0 ? "›" : P, Y = e.prev2AriaLabel, H = Y === void 0 ? "" : Y, k = e.prev2Label, J = k === void 0 ? "«" : k, Q = e.prevAriaLabel, se = Q === void 0 ? "" : Q, ee = e.prevLabel, oe = ee === void 0 ? "‹" : ee, ie = e.setActiveStartDate, fe = e.showDoubleView, M = e.view, ve = e.views, be = ve.indexOf(M) > 0, te = M !== "century", N = Go(M, t), G = te ? Ko(M, t) : void 0, U = Wr(M, t), de = te ? Zo(M, t) : void 0, he = function() {
637
+ function ei(e) {
638
+ var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? jr : n, o = e.formatYear, i = o === void 0 ? Yt : o, u = e.locale, c = e.maxDate, s = e.minDate, d = e.navigationAriaLabel, v = d === void 0 ? "" : d, m = e.navigationAriaLive, y = e.navigationLabel, b = e.next2AriaLabel, g = b === void 0 ? "" : b, w = e.next2Label, D = w === void 0 ? "»" : w, x = e.nextAriaLabel, A = x === void 0 ? "" : x, P = e.nextLabel, $ = P === void 0 ? "›" : P, Y = e.prev2AriaLabel, H = Y === void 0 ? "" : Y, k = e.prev2Label, J = k === void 0 ? "«" : k, Q = e.prevAriaLabel, se = Q === void 0 ? "" : Q, ee = e.prevLabel, oe = ee === void 0 ? "‹" : ee, ie = e.setActiveStartDate, fe = e.showDoubleView, M = e.view, de = e.views, be = de.indexOf(M) > 0, te = M !== "century", N = Ho(M, t), G = te ? Go(M, t) : void 0, U = Fr(M, t), ve = te ? Ko(M, t) : void 0, he = function() {
651
639
  if (N.getFullYear() < 0)
652
640
  return !0;
653
- var L = zo(M, t);
641
+ var L = Zo(M, t);
654
642
  return s && s >= L;
655
643
  }(), me = te && function() {
656
644
  if (G.getFullYear() < 0)
657
645
  return !0;
658
- var L = Xo(M, t);
646
+ var L = zo(M, t);
659
647
  return s && s >= L;
660
- }(), xe = c && c < U, Ee = te && c && c < de;
648
+ }(), xe = c && c < U, Ee = te && c && c < ve;
661
649
  function K() {
662
650
  ie(N, "prev");
663
651
  }
@@ -668,15 +656,15 @@ function ti(e) {
668
656
  ie(U, "next");
669
657
  }
670
658
  function Ne() {
671
- ie(de, "next2");
659
+ ie(ve, "next2");
672
660
  }
673
661
  function Se(L) {
674
662
  var ge = function() {
675
663
  switch (M) {
676
664
  case "century":
677
- return Qo(u, i, L);
665
+ return Jo(u, i, L);
678
666
  case "decade":
679
- return $r(u, i, L);
667
+ return Rr(u, i, L);
680
668
  case "year":
681
669
  return i(u, L);
682
670
  case "month":
@@ -696,7 +684,7 @@ function ti(e) {
696
684
  var L = "".concat(_e, "__label");
697
685
  return f.createElement(
698
686
  "button",
699
- { "aria-label": d, "aria-live": m, className: L, disabled: !be, onClick: r, style: { flexGrow: 1 }, type: "button" },
687
+ { "aria-label": v, "aria-live": m, className: L, disabled: !be, onClick: r, style: { flexGrow: 1 }, type: "button" },
700
688
  f.createElement("span", { className: "".concat(L, "__labelText ").concat(L, "__labelText--from") }, Se(t)),
701
689
  fe ? f.createElement(
702
690
  f.Fragment,
@@ -724,7 +712,7 @@ var nt = function() {
724
712
  }
725
713
  return e;
726
714
  }, nt.apply(this, arguments);
727
- }, ni = function(e, t) {
715
+ }, ti = function(e, t) {
728
716
  var r = {};
729
717
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
730
718
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -736,24 +724,24 @@ function Jn(e) {
736
724
  return "".concat(e, "%");
737
725
  }
738
726
  function jn(e) {
739
- var t = e.children, r = e.className, n = e.count, a = e.direction, o = e.offset, i = e.style, u = e.wrap, c = ni(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
740
- return f.createElement("div", nt({ className: r, style: nt({ display: "flex", flexDirection: a, flexWrap: u ? "wrap" : "nowrap" }, i) }, c), f.Children.map(t, function(s, v) {
741
- var d = o && v === 0 ? Jn(100 * o / n) : null;
727
+ var t = e.children, r = e.className, n = e.count, a = e.direction, o = e.offset, i = e.style, u = e.wrap, c = ti(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
728
+ return f.createElement("div", nt({ className: r, style: nt({ display: "flex", flexDirection: a, flexWrap: u ? "wrap" : "nowrap" }, i) }, c), f.Children.map(t, function(s, d) {
729
+ var v = o && d === 0 ? Jn(100 * o / n) : null;
742
730
  return f.cloneElement(s, nt(nt({}, s.props), { style: {
743
731
  flexBasis: Jn(100 / n),
744
732
  flexShrink: 0,
745
733
  flexGrow: 0,
746
734
  overflow: "hidden",
747
- marginLeft: d,
748
- marginInlineStart: d,
735
+ marginLeft: v,
736
+ marginInlineStart: v,
749
737
  marginInlineEnd: 0
750
738
  } }));
751
739
  }));
752
740
  }
753
- var ri = process.env.NODE_ENV !== "production", Br = function() {
741
+ var ni = process.env.NODE_ENV !== "production", Yr = function() {
754
742
  };
755
- if (ri) {
756
- var ai = function(t, r) {
743
+ if (ni) {
744
+ var ri = function(t, r) {
757
745
  var n = arguments.length;
758
746
  r = new Array(n > 1 ? n - 1 : 0);
759
747
  for (var a = 1; a < n; a++)
@@ -767,7 +755,7 @@ if (ri) {
767
755
  } catch {
768
756
  }
769
757
  };
770
- Br = function(e, t, r) {
758
+ Yr = function(e, t, r) {
771
759
  var n = arguments.length;
772
760
  r = new Array(n > 2 ? n - 2 : 0);
773
761
  for (var a = 2; a < n; a++)
@@ -776,26 +764,26 @@ if (ri) {
776
764
  throw new Error(
777
765
  "`warning(condition, format, ...args)` requires a warning message argument"
778
766
  );
779
- e || ai.apply(null, [t].concat(r));
767
+ e || ri.apply(null, [t].concat(r));
780
768
  };
781
769
  }
782
- var oi = Br;
783
- const ii = /* @__PURE__ */ Er(oi);
770
+ var ai = Yr;
771
+ const oi = /* @__PURE__ */ Er(ai);
784
772
  var et;
785
- function li(e, t, r) {
773
+ function ii(e, t, r) {
786
774
  return t && t > e ? t : r && r < e ? r : e;
787
775
  }
788
776
  function gt(e, t) {
789
777
  return t[0] <= e && t[1] >= e;
790
778
  }
791
- function ui(e, t) {
779
+ function li(e, t) {
792
780
  return e[0] <= t[0] && e[1] >= t[1];
793
781
  }
794
- function qr(e, t) {
782
+ function Br(e, t) {
795
783
  return gt(e[0], t) || gt(e[1], t);
796
784
  }
797
785
  function Qn(e, t, r) {
798
- var n = qr(t, e), a = [];
786
+ var n = Br(t, e), a = [];
799
787
  if (n) {
800
788
  a.push(r);
801
789
  var o = gt(e[0], t), i = gt(e[1], t);
@@ -803,10 +791,10 @@ function Qn(e, t, r) {
803
791
  }
804
792
  return a;
805
793
  }
806
- function ci(e) {
794
+ function ui(e) {
807
795
  return Array.isArray(e) ? e[0] !== null && e[1] !== null : e !== null;
808
796
  }
809
- function si(e) {
797
+ function ci(e) {
810
798
  if (!e)
811
799
  throw new Error("args is required");
812
800
  var t = e.value, r = e.date, n = e.hover, a = "react-calendar__tile", o = [a];
@@ -820,7 +808,7 @@ function si(e) {
820
808
  throw new Error("dateType is required when date is not an array of two dates");
821
809
  return Xn(y, r);
822
810
  }();
823
- if (gt(i, u) && o.push("".concat(a, "--now")), !t || !ci(t))
811
+ if (gt(i, u) && o.push("".concat(a, "--now")), !t || !ui(t))
824
812
  return o;
825
813
  var c = function() {
826
814
  if (Array.isArray(t))
@@ -830,33 +818,33 @@ function si(e) {
830
818
  throw new Error("valueType is required when value is not an array of two dates");
831
819
  return Xn(y, t);
832
820
  }();
833
- ui(c, u) ? o.push("".concat(a, "--active")) : qr(c, u) && o.push("".concat(a, "--hasActive"));
821
+ li(c, u) ? o.push("".concat(a, "--active")) : Br(c, u) && o.push("".concat(a, "--hasActive"));
834
822
  var s = Qn(c, u, "".concat(a, "--range"));
835
823
  o.push.apply(o, s);
836
- var v = Array.isArray(t) ? t : [t];
837
- if (n && v.length === 1) {
838
- var d = n > c[0] ? [c[0], n] : [n, c[0]], m = Qn(d, u, "".concat(a, "--hover"));
824
+ var d = Array.isArray(t) ? t : [t];
825
+ if (n && d.length === 1) {
826
+ var v = n > c[0] ? [c[0], n] : [n, c[0]], m = Qn(v, u, "".concat(a, "--hover"));
839
827
  o.push.apply(o, m);
840
828
  }
841
829
  return o;
842
830
  }
843
- var fi = (et = {}, et[tt.ARABIC] = T.ISLAMIC, et[tt.HEBREW] = T.HEBREW, et[tt.ISO_8601] = T.ISO_8601, et[tt.US] = T.GREGORY, et);
844
- function vi(e) {
831
+ var si = (et = {}, et[tt.ARABIC] = T.ISLAMIC, et[tt.HEBREW] = T.HEBREW, et[tt.ISO_8601] = T.ISO_8601, et[tt.US] = T.GREGORY, et);
832
+ function fi(e) {
845
833
  return e !== void 0 && e in tt;
846
834
  }
847
835
  var er = !1;
848
836
  function Bt(e) {
849
- if (vi(e)) {
850
- var t = fi[e];
851
- return ii(er, 'Specifying calendarType="'.concat(e, '" is deprecated. Use calendarType="').concat(t, '" instead.')), er = !0, t;
837
+ if (fi(e)) {
838
+ var t = si[e];
839
+ return oi(er, 'Specifying calendarType="'.concat(e, '" is deprecated. Use calendarType="').concat(t, '" instead.')), er = !0, t;
852
840
  }
853
841
  return e;
854
842
  }
855
843
  function qt(e) {
856
- for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, o = e.dateType, i = e.end, u = e.hover, c = e.offset, s = e.renderTile, v = e.start, d = e.step, m = d === void 0 ? 1 : d, y = e.value, b = e.valueType, g = [], w = v; w <= i; w += m) {
844
+ for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, o = e.dateType, i = e.end, u = e.hover, c = e.offset, s = e.renderTile, d = e.start, v = e.step, m = v === void 0 ? 1 : v, y = e.value, b = e.valueType, g = [], w = d; w <= i; w += m) {
857
845
  var D = a(w);
858
846
  g.push(s({
859
- classes: si({
847
+ classes: ci({
860
848
  date: D,
861
849
  dateType: o,
862
850
  hover: u,
@@ -869,7 +857,7 @@ function qt(e) {
869
857
  return f.createElement(jn, { className: t, count: n, offset: c, wrap: !0 }, g);
870
858
  }
871
859
  function Ut(e) {
872
- var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, o = e.formatAbbr, i = e.locale, u = e.maxDate, c = e.maxDateTransform, s = e.minDate, v = e.minDateTransform, d = e.onClick, m = e.onMouseOver, y = e.style, b = e.tileClassName, g = e.tileContent, w = e.tileDisabled, D = e.view, x = sn(function() {
860
+ var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, o = e.formatAbbr, i = e.locale, u = e.maxDate, c = e.maxDateTransform, s = e.minDate, d = e.minDateTransform, v = e.onClick, m = e.onMouseOver, y = e.style, b = e.tileClassName, g = e.tileContent, w = e.tileDisabled, D = e.view, x = sn(function() {
873
861
  var P = { activeStartDate: t, date: a, view: D };
874
862
  return typeof b == "function" ? b(P) : b;
875
863
  }, [t, a, b, D]), A = sn(function() {
@@ -878,8 +866,8 @@ function Ut(e) {
878
866
  }, [t, a, g, D]);
879
867
  return f.createElement(
880
868
  "button",
881
- { className: We(n, x), disabled: s && v(s) > a || u && c(u) < a || w && w({ activeStartDate: t, date: a, view: D }), onClick: d ? function(P) {
882
- return d(a, P);
869
+ { className: We(n, x), disabled: s && d(s) > a || u && c(u) < a || w && w({ activeStartDate: t, date: a, view: D }), onClick: v ? function(P) {
870
+ return v(a, P);
883
871
  } : void 0, onFocus: m ? function() {
884
872
  return m(a);
885
873
  } : void 0, onMouseOver: m ? function() {
@@ -905,9 +893,9 @@ var mn = function() {
905
893
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
906
894
  return r;
907
895
  }, tr = "react-calendar__century-view__decades__decade";
908
- function mi(e) {
896
+ function vi(e) {
909
897
  var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, o = a === void 0 ? Yt : a, i = di(e, ["classes", "currentCentury", "formatYear"]), u = i.date, c = i.locale, s = [];
910
- return r && s.push.apply(s, r), s.push(tr), it(u).getFullYear() !== n && s.push("".concat(tr, "--neighboringCentury")), f.createElement(Ut, mn({}, i, { classes: s, maxDateTransform: xt, minDateTransform: Me, view: "century" }), $r(c, o, u));
898
+ return r && s.push.apply(s, r), s.push(tr), it(u).getFullYear() !== n && s.push("".concat(tr, "--neighboringCentury")), f.createElement(Ut, mn({}, i, { classes: s, maxDateTransform: xt, minDateTransform: Me, view: "century" }), Rr(c, o, u));
911
899
  }
912
900
  var yn = function() {
913
901
  return yn = Object.assign || function(e) {
@@ -925,18 +913,18 @@ var yn = function() {
925
913
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
926
914
  return r;
927
915
  };
928
- function yi(e) {
929
- var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, o = e.valueType, i = nr(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), u = qo(t), c = u + (n ? 119 : 99);
916
+ function mi(e) {
917
+ var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, o = e.valueType, i = nr(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), u = Bo(t), c = u + (n ? 119 : 99);
930
918
  return f.createElement(qt, { className: "react-calendar__century-view__decades", dateTransform: Me, dateType: "decade", end: c, hover: r, renderTile: function(s) {
931
- var v = s.date, d = nr(s, ["date"]);
932
- return f.createElement(mi, yn({ key: v.getTime() }, i, d, { activeStartDate: t, currentCentury: u, date: v }));
919
+ var d = s.date, v = nr(s, ["date"]);
920
+ return f.createElement(vi, yn({ key: d.getTime() }, i, v, { activeStartDate: t, currentCentury: u, date: d }));
933
921
  }, start: u, step: 10, value: a, valueType: o });
934
922
  }
935
923
  var rr = function(e, t, r) {
936
924
  if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
937
925
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
938
926
  return e.concat(o || Array.prototype.slice.call(t));
939
- }, hi = Object.values(T), gi = Object.values(tt), hn = ["century", "decade", "year", "month"], Ur = l.oneOf(rr(rr([], hi, !0), gi, !0)), It = l.oneOfType([
927
+ }, yi = Object.values(T), hi = Object.values(tt), hn = ["century", "decade", "year", "month"], qr = l.oneOf(rr(rr([], yi, !0), hi, !0)), It = l.oneOfType([
940
928
  l.string,
941
929
  l.arrayOf(l.string)
942
930
  ]), Fn = function(t, r, n) {
@@ -955,15 +943,15 @@ var rr = function(e, t, r) {
955
943
  return new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, expected instance of `Date`."));
956
944
  var u = t.minDate;
957
945
  return u && i < u ? new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, maxDate cannot be smaller than minDate.")) : null;
958
- }, bi = l.oneOfType([
946
+ }, gi = l.oneOfType([
959
947
  l.func,
960
948
  l.exact({
961
949
  current: l.any
962
950
  })
963
- ]), pi = l.arrayOf(l.oneOfType([l.instanceOf(Date), l.oneOf([null])]).isRequired), wi = l.oneOfType([
951
+ ]), bi = l.arrayOf(l.oneOfType([l.instanceOf(Date), l.oneOf([null])]).isRequired), pi = l.oneOfType([
964
952
  l.instanceOf(Date),
965
953
  l.oneOf([null]),
966
- pi
954
+ bi
967
955
  ]);
968
956
  l.arrayOf(l.oneOf(hn));
969
957
  var Mt = function(t, r, n) {
@@ -976,7 +964,7 @@ Mt.isRequired = function(t, r, n, a, o) {
976
964
  var i = t, u = r, c = i[u];
977
965
  return c ? Mt(t, r, n) : new Error("The prop `".concat(r, "` is marked as required in `").concat(n, "`, but its value is `").concat(c, "`."));
978
966
  };
979
- var Di = function(e) {
967
+ var wi = function(e) {
980
968
  return l.arrayOf(e);
981
969
  }, Ht = {
982
970
  activeStartDate: l.instanceOf(Date).isRequired,
@@ -988,7 +976,7 @@ var Di = function(e) {
988
976
  onMouseOver: l.func,
989
977
  tileClassName: l.oneOfType([l.func, It]),
990
978
  tileContent: l.oneOfType([l.func, l.node]),
991
- value: wi,
979
+ value: pi,
992
980
  valueType: l.oneOf(["century", "decade", "year", "month", "day"]).isRequired
993
981
  };
994
982
  l.instanceOf(Date).isRequired, l.arrayOf(l.string.isRequired).isRequired, l.instanceOf(Date).isRequired, l.string, l.func, l.func, l.objectOf(l.oneOfType([l.string, l.number])), l.oneOfType([l.func, It]), l.oneOfType([l.func, l.node]), l.func;
@@ -1000,13 +988,13 @@ var bt = function() {
1000
988
  }
1001
989
  return e;
1002
990
  }, bt.apply(this, arguments);
1003
- }, Hr = function(t) {
991
+ }, Ur = function(t) {
1004
992
  function r() {
1005
- return f.createElement(yi, bt({}, t));
993
+ return f.createElement(mi, bt({}, t));
1006
994
  }
1007
995
  return f.createElement("div", { className: "react-calendar__century-view" }, r());
1008
996
  };
1009
- Hr.propTypes = bt(bt({}, Ht), { showNeighboringCentury: l.bool });
997
+ Ur.propTypes = bt(bt({}, Ht), { showNeighboringCentury: l.bool });
1010
998
  var gn = function() {
1011
999
  return gn = Object.assign || function(e) {
1012
1000
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -1015,7 +1003,7 @@ var gn = function() {
1015
1003
  }
1016
1004
  return e;
1017
1005
  }, gn.apply(this, arguments);
1018
- }, Oi = function(e, t) {
1006
+ }, Di = function(e, t) {
1019
1007
  var r = {};
1020
1008
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1021
1009
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1023,8 +1011,8 @@ var gn = function() {
1023
1011
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1024
1012
  return r;
1025
1013
  }, ar = "react-calendar__decade-view__years__year";
1026
- function xi(e) {
1027
- var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, o = a === void 0 ? Yt : a, i = Oi(e, ["classes", "currentDecade", "formatYear"]), u = i.date, c = i.locale, s = [];
1014
+ function Oi(e) {
1015
+ var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, o = a === void 0 ? Yt : a, i = Di(e, ["classes", "currentDecade", "formatYear"]), u = i.date, c = i.locale, s = [];
1028
1016
  return r && s.push.apply(s, r), s.push(ar), Me(u).getFullYear() !== n && s.push("".concat(ar, "--neighboringDecade")), f.createElement(Ut, gn({}, i, { classes: s, maxDateTransform: Et, minDateTransform: ze, view: "decade" }), o(c, u));
1029
1017
  }
1030
1018
  var bn = function() {
@@ -1043,11 +1031,11 @@ var bn = function() {
1043
1031
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1044
1032
  return r;
1045
1033
  };
1046
- function Ei(e) {
1047
- var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, o = e.valueType, i = or(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), u = Uo(t), c = u + (n ? 11 : 9);
1034
+ function xi(e) {
1035
+ var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, o = e.valueType, i = or(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), u = qo(t), c = u + (n ? 11 : 9);
1048
1036
  return f.createElement(qt, { className: "react-calendar__decade-view__years", dateTransform: ze, dateType: "year", end: c, hover: r, renderTile: function(s) {
1049
- var v = s.date, d = or(s, ["date"]);
1050
- return f.createElement(xi, bn({ key: v.getTime() }, i, d, { activeStartDate: t, currentDecade: u, date: v }));
1037
+ var d = s.date, v = or(s, ["date"]);
1038
+ return f.createElement(Oi, bn({ key: d.getTime() }, i, v, { activeStartDate: t, currentDecade: u, date: d }));
1051
1039
  }, start: u, value: a, valueType: o });
1052
1040
  }
1053
1041
  var pt = function() {
@@ -1058,13 +1046,13 @@ var pt = function() {
1058
1046
  }
1059
1047
  return e;
1060
1048
  }, pt.apply(this, arguments);
1061
- }, Gr = function(t) {
1049
+ }, Hr = function(t) {
1062
1050
  function r() {
1063
- return f.createElement(Ei, pt({}, t));
1051
+ return f.createElement(xi, pt({}, t));
1064
1052
  }
1065
1053
  return f.createElement("div", { className: "react-calendar__decade-view" }, r());
1066
1054
  };
1067
- Gr.propTypes = pt(pt({}, Ht), { showNeighboringDecade: l.bool });
1055
+ Hr.propTypes = pt(pt({}, Ht), { showNeighboringDecade: l.bool });
1068
1056
  var pn = function() {
1069
1057
  return pn = Object.assign || function(e) {
1070
1058
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -1073,7 +1061,7 @@ var pn = function() {
1073
1061
  }
1074
1062
  return e;
1075
1063
  }, pn.apply(this, arguments);
1076
- }, Si = function(e, t) {
1064
+ }, Ei = function(e, t) {
1077
1065
  var r = {};
1078
1066
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1079
1067
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1084,10 +1072,10 @@ var pn = function() {
1084
1072
  if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
1085
1073
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1086
1074
  return e.concat(o || Array.prototype.slice.call(t));
1087
- }, Ci = "react-calendar__year-view__months__month";
1088
- function _i(e) {
1089
- var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? Vo : n, o = e.formatMonthYear, i = o === void 0 ? Fr : o, u = Si(e, ["classes", "formatMonth", "formatMonthYear"]), c = u.date, s = u.locale;
1090
- return f.createElement(Ut, pn({}, u, { classes: ir(ir([], r, !0), [Ci], !1), formatAbbr: i, maxDateTransform: lt, minDateTransform: $e, view: "year" }), a(s, c));
1075
+ }, Si = "react-calendar__year-view__months__month";
1076
+ function Ci(e) {
1077
+ var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? Wo : n, o = e.formatMonthYear, i = o === void 0 ? jr : o, u = Ei(e, ["classes", "formatMonth", "formatMonthYear"]), c = u.date, s = u.locale;
1078
+ return f.createElement(Ut, pn({}, u, { classes: ir(ir([], r, !0), [Si], !1), formatAbbr: i, maxDateTransform: lt, minDateTransform: $e, view: "year" }), a(s, c));
1091
1079
  }
1092
1080
  var wn = function() {
1093
1081
  return wn = Object.assign || function(e) {
@@ -1105,14 +1093,14 @@ var wn = function() {
1105
1093
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1106
1094
  return r;
1107
1095
  };
1108
- function Ai(e) {
1096
+ function _i(e) {
1109
1097
  var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, o = lr(e, ["activeStartDate", "hover", "value", "valueType"]), i = 0, u = 11, c = C(t);
1110
1098
  return f.createElement(qt, { className: "react-calendar__year-view__months", dateTransform: function(s) {
1111
- var v = /* @__PURE__ */ new Date();
1112
- return v.setFullYear(c, s, 1), $e(v);
1099
+ var d = /* @__PURE__ */ new Date();
1100
+ return d.setFullYear(c, s, 1), $e(d);
1113
1101
  }, dateType: "month", end: u, hover: r, renderTile: function(s) {
1114
- var v = s.date, d = lr(s, ["date"]);
1115
- return f.createElement(_i, wn({ key: v.getTime() }, o, d, { activeStartDate: t, date: v }));
1102
+ var d = s.date, v = lr(s, ["date"]);
1103
+ return f.createElement(Ci, wn({ key: d.getTime() }, o, v, { activeStartDate: t, date: d }));
1116
1104
  }, start: i, value: n, valueType: a });
1117
1105
  }
1118
1106
  var jt = function() {
@@ -1123,13 +1111,13 @@ var jt = function() {
1123
1111
  }
1124
1112
  return e;
1125
1113
  }, jt.apply(this, arguments);
1126
- }, Kr = function(t) {
1114
+ }, Gr = function(t) {
1127
1115
  function r() {
1128
- return f.createElement(Ai, jt({}, t));
1116
+ return f.createElement(_i, jt({}, t));
1129
1117
  }
1130
1118
  return f.createElement("div", { className: "react-calendar__year-view" }, r());
1131
1119
  };
1132
- Kr.propTypes = jt({}, Ht);
1120
+ Gr.propTypes = jt({}, Ht);
1133
1121
  var Dn = function() {
1134
1122
  return Dn = Object.assign || function(e) {
1135
1123
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -1138,7 +1126,7 @@ var Dn = function() {
1138
1126
  }
1139
1127
  return e;
1140
1128
  }, Dn.apply(this, arguments);
1141
- }, Pi = function(e, t) {
1129
+ }, Ai = function(e, t) {
1142
1130
  var r = {};
1143
1131
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1144
1132
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1146,9 +1134,9 @@ var Dn = function() {
1146
1134
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1147
1135
  return r;
1148
1136
  }, an = "react-calendar__month-view__days__day";
1149
- function Ni(e) {
1150
- var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, o = e.formatDay, i = o === void 0 ? Fo : o, u = e.formatLongDate, c = u === void 0 ? Wo : u, s = Pi(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), v = Bt(t), d = s.date, m = s.locale, y = [];
1151
- return n && y.push.apply(y, n), y.push(an), Yr(d, v) && y.push("".concat(an, "--weekend")), d.getMonth() !== a && y.push("".concat(an, "--neighboringMonth")), f.createElement(Ut, Dn({}, s, { classes: y, formatAbbr: c, maxDateTransform: $t, minDateTransform: ut, view: "month" }), i(m, d));
1137
+ function Pi(e) {
1138
+ var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, o = e.formatDay, i = o === void 0 ? jo : o, u = e.formatLongDate, c = u === void 0 ? Fo : u, s = Ai(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), d = Bt(t), v = s.date, m = s.locale, y = [];
1139
+ return n && y.push.apply(y, n), y.push(an), $r(v, d) && y.push("".concat(an, "--weekend")), v.getMonth() !== a && y.push("".concat(an, "--neighboringMonth")), f.createElement(Ut, Dn({}, s, { classes: y, formatAbbr: c, maxDateTransform: $t, minDateTransform: ut, view: "month" }), i(m, v));
1152
1140
  }
1153
1141
  var On = function() {
1154
1142
  return On = Object.assign || function(e) {
@@ -1166,14 +1154,14 @@ var On = function() {
1166
1154
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1167
1155
  return r;
1168
1156
  };
1169
- function ki(e) {
1170
- var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, o = e.showNeighboringMonth, i = e.value, u = e.valueType, c = ur(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), s = Bt(r), v = C(t), d = Re(t), m = a || o, y = ht(t, s), b = m ? 0 : y, g = (m ? -y : 0) + 1, w = function() {
1157
+ function Ni(e) {
1158
+ var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, o = e.showNeighboringMonth, i = e.value, u = e.valueType, c = ur(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), s = Bt(r), d = C(t), v = Re(t), m = a || o, y = ht(t, s), b = m ? 0 : y, g = (m ? -y : 0) + 1, w = function() {
1171
1159
  if (a)
1172
1160
  return g + 6 * 7 - 1;
1173
1161
  var D = In(t);
1174
1162
  if (o) {
1175
1163
  var x = /* @__PURE__ */ new Date();
1176
- x.setFullYear(v, d, D), x.setHours(0, 0, 0, 0);
1164
+ x.setFullYear(d, v, D), x.setHours(0, 0, 0, 0);
1177
1165
  var A = 7 - ht(x, s) - 1;
1178
1166
  return D + A;
1179
1167
  }
@@ -1181,23 +1169,23 @@ function ki(e) {
1181
1169
  }();
1182
1170
  return f.createElement(qt, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(D) {
1183
1171
  var x = /* @__PURE__ */ new Date();
1184
- return x.setFullYear(v, d, D), ut(x);
1172
+ return x.setFullYear(d, v, D), ut(x);
1185
1173
  }, dateType: "day", hover: n, end: w, renderTile: function(D) {
1186
1174
  var x = D.date, A = ur(D, ["date"]);
1187
- return f.createElement(Ni, On({ key: x.getTime() }, c, A, { activeStartDate: t, calendarType: r, currentMonthIndex: d, date: x }));
1175
+ return f.createElement(Pi, On({ key: x.getTime() }, c, A, { activeStartDate: t, calendarType: r, currentMonthIndex: v, date: x }));
1188
1176
  }, offset: b, start: g, value: i, valueType: u });
1189
1177
  }
1190
- var Zr = "react-calendar__month-view__weekdays", on = "".concat(Zr, "__weekday");
1191
- function Li(e) {
1192
- for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? Ro : r, a = e.formatWeekday, o = a === void 0 ? $o : a, i = e.locale, u = e.onMouseLeave, c = Bt(t), s = /* @__PURE__ */ new Date(), v = $e(s), d = C(v), m = Re(v), y = [], b = 1; b <= 7; b += 1) {
1193
- var g = new Date(d, m, b - ht(v, c)), w = o(i, g);
1178
+ var Kr = "react-calendar__month-view__weekdays", on = "".concat(Kr, "__weekday");
1179
+ function ki(e) {
1180
+ for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? Vo : r, a = e.formatWeekday, o = a === void 0 ? Ro : a, i = e.locale, u = e.onMouseLeave, c = Bt(t), s = /* @__PURE__ */ new Date(), d = $e(s), v = C(d), m = Re(d), y = [], b = 1; b <= 7; b += 1) {
1181
+ var g = new Date(v, m, b - ht(d, c)), w = o(i, g);
1194
1182
  y.push(f.createElement(
1195
1183
  "div",
1196
- { key: b, className: We(on, ei(g) && "".concat(on, "--current"), Yr(g, c) && "".concat(on, "--weekend")) },
1184
+ { key: b, className: We(on, Qo(g) && "".concat(on, "--current"), $r(g, c) && "".concat(on, "--weekend")) },
1197
1185
  f.createElement("abbr", { "aria-label": w, title: w }, n(i, g).replace(".", ""))
1198
1186
  ));
1199
1187
  }
1200
- return f.createElement(jn, { className: Zr, count: 7, onFocus: u, onMouseOver: u }, y);
1188
+ return f.createElement(jn, { className: Kr, count: 7, onFocus: u, onMouseOver: u }, y);
1201
1189
  }
1202
1190
  var Ft = function() {
1203
1191
  return Ft = Object.assign || function(e) {
@@ -1215,7 +1203,7 @@ var Ft = function() {
1215
1203
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1216
1204
  return r;
1217
1205
  }, sr = "react-calendar__tile";
1218
- function Ti(e) {
1206
+ function Li(e) {
1219
1207
  var t = e.onClickWeekNumber, r = e.weekNumber, n = f.createElement("span", null, r);
1220
1208
  if (t) {
1221
1209
  var a = e.date, o = e.onClickWeekNumber, i = e.weekNumber, u = cr(e, ["date", "onClickWeekNumber", "weekNumber"]);
@@ -1228,24 +1216,24 @@ function Ti(e) {
1228
1216
  return f.createElement("div", Ft({}, u, { className: sr }), n);
1229
1217
  }
1230
1218
  }
1231
- function Ii(e) {
1219
+ function Ti(e) {
1232
1220
  var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave, o = e.showFixedNumberOfWeeks, i = Bt(r), u = function() {
1233
1221
  if (o)
1234
1222
  return 6;
1235
- var v = In(t), d = ht(t, i), m = v - (7 - d);
1223
+ var d = In(t), v = ht(t, i), m = d - (7 - v);
1236
1224
  return 1 + Math.ceil(m / 7);
1237
1225
  }(), c = function() {
1238
- for (var v = C(t), d = Re(t), m = Ve(t), y = [], b = 0; b < u; b += 1)
1239
- y.push(dn(new Date(v, d, m + b * 7), i));
1226
+ for (var d = C(t), v = Re(t), m = Ve(t), y = [], b = 0; b < u; b += 1)
1227
+ y.push(vn(new Date(d, v, m + b * 7), i));
1240
1228
  return y;
1241
- }(), s = c.map(function(v) {
1242
- return Ho(v, i);
1229
+ }(), s = c.map(function(d) {
1230
+ return Uo(d, i);
1243
1231
  });
1244
- return f.createElement(jn, { className: "react-calendar__month-view__weekNumbers", count: u, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 } }, s.map(function(v, d) {
1245
- var m = c[d];
1232
+ return f.createElement(jn, { className: "react-calendar__month-view__weekNumbers", count: u, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 } }, s.map(function(d, v) {
1233
+ var m = c[v];
1246
1234
  if (!m)
1247
1235
  throw new Error("date is not defined");
1248
- return f.createElement(Ti, { key: v, date: m, onClickWeekNumber: n, weekNumber: v });
1236
+ return f.createElement(Li, { key: d, date: m, onClickWeekNumber: n, weekNumber: d });
1249
1237
  }));
1250
1238
  }
1251
1239
  var wt = function() {
@@ -1256,7 +1244,7 @@ var wt = function() {
1256
1244
  }
1257
1245
  return e;
1258
1246
  }, wt.apply(this, arguments);
1259
- }, Mi = function(e, t) {
1247
+ }, Ii = function(e, t) {
1260
1248
  var r = {};
1261
1249
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1262
1250
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1264,30 +1252,30 @@ var wt = function() {
1264
1252
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1265
1253
  return r;
1266
1254
  };
1267
- function ji(e) {
1255
+ function Mi(e) {
1268
1256
  if (e)
1269
- for (var t = 0, r = Object.entries(_o); t < r.length; t++) {
1257
+ for (var t = 0, r = Object.entries(Co); t < r.length; t++) {
1270
1258
  var n = r[t], a = n[0], o = n[1];
1271
1259
  if (o.includes(e))
1272
1260
  return a;
1273
1261
  }
1274
1262
  return T.ISO_8601;
1275
1263
  }
1276
- var zr = function(t) {
1277
- var r = t.activeStartDate, n = t.locale, a = t.onMouseLeave, o = t.showFixedNumberOfWeeks, i = t.calendarType, u = i === void 0 ? ji(n) : i, c = t.formatShortWeekday, s = t.formatWeekday, v = t.onClickWeekNumber, d = t.showWeekNumbers, m = Mi(t, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
1264
+ var Zr = function(t) {
1265
+ var r = t.activeStartDate, n = t.locale, a = t.onMouseLeave, o = t.showFixedNumberOfWeeks, i = t.calendarType, u = i === void 0 ? Mi(n) : i, c = t.formatShortWeekday, s = t.formatWeekday, d = t.onClickWeekNumber, v = t.showWeekNumbers, m = Ii(t, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
1278
1266
  function y() {
1279
- return f.createElement(Li, { calendarType: u, formatShortWeekday: c, formatWeekday: s, locale: n, onMouseLeave: a });
1267
+ return f.createElement(ki, { calendarType: u, formatShortWeekday: c, formatWeekday: s, locale: n, onMouseLeave: a });
1280
1268
  }
1281
1269
  function b() {
1282
- return d ? f.createElement(Ii, { activeStartDate: r, calendarType: u, onClickWeekNumber: v, onMouseLeave: a, showFixedNumberOfWeeks: o }) : null;
1270
+ return v ? f.createElement(Ti, { activeStartDate: r, calendarType: u, onClickWeekNumber: d, onMouseLeave: a, showFixedNumberOfWeeks: o }) : null;
1283
1271
  }
1284
1272
  function g() {
1285
- return f.createElement(ki, wt({ calendarType: u }, m));
1273
+ return f.createElement(Ni, wt({ calendarType: u }, m));
1286
1274
  }
1287
1275
  var w = "react-calendar__month-view";
1288
1276
  return f.createElement(
1289
1277
  "div",
1290
- { className: We(w, d ? "".concat(w, "--weekNumbers") : "") },
1278
+ { className: We(w, v ? "".concat(w, "--weekNumbers") : "") },
1291
1279
  f.createElement(
1292
1280
  "div",
1293
1281
  { style: {
@@ -1307,7 +1295,7 @@ var zr = function(t) {
1307
1295
  )
1308
1296
  );
1309
1297
  };
1310
- zr.propTypes = wt(wt({}, Ht), { calendarType: Ur, formatDay: l.func, formatLongDate: l.func, formatShortWeekday: l.func, formatWeekday: l.func, onClickWeekNumber: l.func, onMouseLeave: l.func, showFixedNumberOfWeeks: l.bool, showNeighboringMonth: l.bool, showWeekNumbers: l.bool });
1298
+ Zr.propTypes = wt(wt({}, Ht), { calendarType: qr, formatDay: l.func, formatLongDate: l.func, formatShortWeekday: l.func, formatWeekday: l.func, onClickWeekNumber: l.func, onMouseLeave: l.func, showFixedNumberOfWeeks: l.bool, showNeighboringMonth: l.bool, showWeekNumbers: l.bool });
1311
1299
  var rt = function() {
1312
1300
  return rt = Object.assign || function(e) {
1313
1301
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -1316,62 +1304,62 @@ var rt = function() {
1316
1304
  }
1317
1305
  return e;
1318
1306
  }, rt.apply(this, arguments);
1319
- }, Pt = "react-calendar", ot = ["century", "decade", "year", "month"], Fi = ["decade", "year", "month", "day"], Vn = /* @__PURE__ */ new Date();
1307
+ }, Pt = "react-calendar", ot = ["century", "decade", "year", "month"], ji = ["decade", "year", "month", "day"], Vn = /* @__PURE__ */ new Date();
1320
1308
  Vn.setFullYear(1, 0, 1);
1321
1309
  Vn.setHours(0, 0, 0, 0);
1322
- var Wi = /* @__PURE__ */ new Date(864e13);
1323
- function dt(e) {
1310
+ var Fi = /* @__PURE__ */ new Date(864e13);
1311
+ function vt(e) {
1324
1312
  return e instanceof Date ? e : new Date(e);
1325
1313
  }
1326
- function Xr(e, t) {
1314
+ function zr(e, t) {
1327
1315
  return ot.slice(ot.indexOf(e), ot.indexOf(t) + 1);
1328
1316
  }
1329
- function Vi(e, t, r) {
1330
- var n = Xr(t, r);
1317
+ function Wi(e, t, r) {
1318
+ var n = zr(t, r);
1331
1319
  return n.indexOf(e) !== -1;
1332
1320
  }
1333
1321
  function Rn(e, t, r) {
1334
- return e && Vi(e, t, r) ? e : r;
1322
+ return e && Wi(e, t, r) ? e : r;
1335
1323
  }
1336
- function Jr(e) {
1324
+ function Xr(e) {
1337
1325
  var t = ot.indexOf(e);
1338
- return Fi[t];
1326
+ return ji[t];
1339
1327
  }
1340
- function Ri(e, t) {
1328
+ function Vi(e, t) {
1341
1329
  var r = Array.isArray(e) ? e[t] : e;
1342
1330
  if (!r)
1343
1331
  return null;
1344
- var n = dt(r);
1332
+ var n = vt(r);
1345
1333
  if (isNaN(n.getTime()))
1346
1334
  throw new Error("Invalid date: ".concat(e));
1347
1335
  return n;
1348
1336
  }
1349
- function Qr(e, t) {
1350
- var r = e.value, n = e.minDate, a = e.maxDate, o = e.maxDetail, i = Ri(r, t);
1337
+ function Jr(e, t) {
1338
+ var r = e.value, n = e.minDate, a = e.maxDate, o = e.maxDetail, i = Vi(r, t);
1351
1339
  if (!i)
1352
1340
  return null;
1353
- var u = Jr(o), c = function() {
1341
+ var u = Xr(o), c = function() {
1354
1342
  switch (t) {
1355
1343
  case 0:
1356
1344
  return Ze(u, i);
1357
1345
  case 1:
1358
- return Vr(u, i);
1346
+ return Wr(u, i);
1359
1347
  default:
1360
1348
  throw new Error("Invalid index value: ".concat(t));
1361
1349
  }
1362
1350
  }();
1363
- return li(c, n, a);
1351
+ return ii(c, n, a);
1364
1352
  }
1365
1353
  var $n = function(e) {
1366
- return Qr(e, 0);
1367
- }, ea = function(e) {
1368
- return Qr(e, 1);
1369
- }, $i = function(e) {
1370
- return [$n, ea].map(function(t) {
1354
+ return Jr(e, 0);
1355
+ }, Qr = function(e) {
1356
+ return Jr(e, 1);
1357
+ }, Ri = function(e) {
1358
+ return [$n, Qr].map(function(t) {
1371
1359
  return t(e);
1372
1360
  });
1373
1361
  };
1374
- function ta(e) {
1362
+ function ea(e) {
1375
1363
  var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail, o = e.value, i = e.view, u = Rn(i, a, r), c = $n({
1376
1364
  value: o,
1377
1365
  minDate: n,
@@ -1380,15 +1368,15 @@ function ta(e) {
1380
1368
  }) || /* @__PURE__ */ new Date();
1381
1369
  return Ze(u, c);
1382
1370
  }
1383
- function Yi(e) {
1384
- var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, o = e.maxDate, i = e.maxDetail, u = e.minDate, c = e.minDetail, s = e.value, v = e.view, d = Rn(v, c, i), m = t || r;
1385
- return m ? Ze(d, m) : ta({
1371
+ function $i(e) {
1372
+ var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, o = e.maxDate, i = e.maxDetail, u = e.minDate, c = e.minDetail, s = e.value, d = e.view, v = Rn(d, c, i), m = t || r;
1373
+ return m ? Ze(v, m) : ea({
1386
1374
  maxDate: o,
1387
1375
  maxDetail: i,
1388
1376
  minDate: u,
1389
1377
  minDetail: c,
1390
1378
  value: s || n,
1391
- view: v || a
1379
+ view: d || a
1392
1380
  });
1393
1381
  }
1394
1382
  function ln(e) {
@@ -1397,10 +1385,10 @@ function ln(e) {
1397
1385
  function Nt(e, t) {
1398
1386
  return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
1399
1387
  }
1400
- var na = pa(function(t, r) {
1401
- var n = t.activeStartDate, a = t.allowPartialRange, o = t.calendarType, i = t.className, u = t.defaultActiveStartDate, c = t.defaultValue, s = t.defaultView, v = t.formatDay, d = t.formatLongDate, m = t.formatMonth, y = t.formatMonthYear, b = t.formatShortWeekday, g = t.formatWeekday, w = t.formatYear, D = t.goToRangeStartOnSelect, x = D === void 0 ? !0 : D, A = t.inputRef, P = t.locale, $ = t.maxDate, Y = $ === void 0 ? Wi : $, H = t.maxDetail, k = H === void 0 ? "month" : H, J = t.minDate, Q = J === void 0 ? Vn : J, se = t.minDetail, ee = se === void 0 ? "century" : se, oe = t.navigationAriaLabel, ie = t.navigationAriaLive, fe = t.navigationLabel, M = t.next2AriaLabel, ve = t.next2Label, be = t.nextAriaLabel, te = t.nextLabel, N = t.onActiveStartDateChange, G = t.onChange, U = t.onClickDay, de = t.onClickDecade, he = t.onClickMonth, me = t.onClickWeekNumber, xe = t.onClickYear, Ee = t.onDrillDown, K = t.onDrillUp, ye = t.onViewChange, Ye = t.prev2AriaLabel, Ne = t.prev2Label, Se = t.prevAriaLabel, ne = t.prevLabel, L = t.returnValue, ge = L === void 0 ? "start" : L, Z = t.selectRange, ke = t.showDoubleView, pe = t.showFixedNumberOfWeeks, Je = t.showNavigation, je = Je === void 0 ? !0 : Je, ct = t.showNeighboringCentury, st = t.showNeighboringDecade, Le = t.showNeighboringMonth, Be = Le === void 0 ? !0 : Le, ft = t.showWeekNumbers, Qe = t.tileClassName, qe = t.tileContent, Ue = t.tileDisabled, h = t.value, O = t.view, _ = Pe(u), p = _[0], S = _[1], j = Pe(null), W = j[0], R = j[1], I = Pe(Array.isArray(c) ? c.map(function(E) {
1402
- return E !== null ? dt(E) : null;
1403
- }) : c != null ? dt(c) : null), z = I[0], re = I[1], B = Pe(s), He = B[0], Ge = B[1], ue = n || p || Yi({
1388
+ var ta = ba(function(t, r) {
1389
+ var n = t.activeStartDate, a = t.allowPartialRange, o = t.calendarType, i = t.className, u = t.defaultActiveStartDate, c = t.defaultValue, s = t.defaultView, d = t.formatDay, v = t.formatLongDate, m = t.formatMonth, y = t.formatMonthYear, b = t.formatShortWeekday, g = t.formatWeekday, w = t.formatYear, D = t.goToRangeStartOnSelect, x = D === void 0 ? !0 : D, A = t.inputRef, P = t.locale, $ = t.maxDate, Y = $ === void 0 ? Fi : $, H = t.maxDetail, k = H === void 0 ? "month" : H, J = t.minDate, Q = J === void 0 ? Vn : J, se = t.minDetail, ee = se === void 0 ? "century" : se, oe = t.navigationAriaLabel, ie = t.navigationAriaLive, fe = t.navigationLabel, M = t.next2AriaLabel, de = t.next2Label, be = t.nextAriaLabel, te = t.nextLabel, N = t.onActiveStartDateChange, G = t.onChange, U = t.onClickDay, ve = t.onClickDecade, he = t.onClickMonth, me = t.onClickWeekNumber, xe = t.onClickYear, Ee = t.onDrillDown, K = t.onDrillUp, ye = t.onViewChange, Ye = t.prev2AriaLabel, Ne = t.prev2Label, Se = t.prevAriaLabel, ne = t.prevLabel, L = t.returnValue, ge = L === void 0 ? "start" : L, Z = t.selectRange, ke = t.showDoubleView, pe = t.showFixedNumberOfWeeks, Je = t.showNavigation, je = Je === void 0 ? !0 : Je, ct = t.showNeighboringCentury, st = t.showNeighboringDecade, Le = t.showNeighboringMonth, Be = Le === void 0 ? !0 : Le, ft = t.showWeekNumbers, Qe = t.tileClassName, qe = t.tileContent, Ue = t.tileDisabled, h = t.value, O = t.view, _ = Pe(u), p = _[0], S = _[1], j = Pe(null), W = j[0], R = j[1], I = Pe(Array.isArray(c) ? c.map(function(E) {
1390
+ return E !== null ? vt(E) : null;
1391
+ }) : c != null ? vt(c) : null), z = I[0], re = I[1], B = Pe(s), He = B[0], Ge = B[1], ue = n || p || $i({
1404
1392
  activeStartDate: n,
1405
1393
  defaultActiveStartDate: u,
1406
1394
  defaultValue: c,
@@ -1416,17 +1404,17 @@ var na = pa(function(t, r) {
1416
1404
  return Z && ln(z) ? z : h !== void 0 ? h : z;
1417
1405
  }();
1418
1406
  return E ? Array.isArray(E) ? E.map(function(V) {
1419
- return V !== null ? dt(V) : null;
1420
- }) : E !== null ? dt(E) : null : null;
1421
- }(), St = Jr(k), F = Rn(O || He, ee, k), Ce = Xr(ee, k), va = Z ? W : null, Zt = Ce.indexOf(F) < Ce.length - 1, Hn = Ce.indexOf(F) > 0, Gn = Ae(function(E) {
1407
+ return V !== null ? vt(V) : null;
1408
+ }) : E !== null ? vt(E) : null : null;
1409
+ }(), St = Xr(k), F = Rn(O || He, ee, k), Ce = zr(ee, k), fa = Z ? W : null, Zt = Ce.indexOf(F) < Ce.length - 1, Hn = Ce.indexOf(F) > 0, Gn = Ae(function(E) {
1422
1410
  var V = function() {
1423
1411
  switch (ge) {
1424
1412
  case "start":
1425
1413
  return $n;
1426
1414
  case "end":
1427
- return ea;
1415
+ return Qr;
1428
1416
  case "range":
1429
- return $i;
1417
+ return Ri;
1430
1418
  default:
1431
1419
  throw new Error("Invalid returnValue.");
1432
1420
  }
@@ -1450,7 +1438,7 @@ var na = pa(function(t, r) {
1450
1438
  var q = function() {
1451
1439
  switch (F) {
1452
1440
  case "century":
1453
- return de;
1441
+ return ve;
1454
1442
  case "decade":
1455
1443
  return xe;
1456
1444
  case "year":
@@ -1462,7 +1450,7 @@ var na = pa(function(t, r) {
1462
1450
  }
1463
1451
  }();
1464
1452
  q && q(E, V);
1465
- }, [U, de, he, xe, F]), Xt = Ae(function(E, V) {
1453
+ }, [U, ve, he, xe, F]), Xt = Ae(function(E, V) {
1466
1454
  if (Zt) {
1467
1455
  Ct(E, V);
1468
1456
  var q = Ce[Ce.indexOf(F) + 1];
@@ -1523,7 +1511,7 @@ var na = pa(function(t, r) {
1523
1511
  throw new Error("previousValue is required");
1524
1512
  if (Array.isArray(q))
1525
1513
  throw new Error("previousValue must not be an array");
1526
- De = Jo(St, q, E);
1514
+ De = Xo(St, q, E);
1527
1515
  }
1528
1516
  else
1529
1517
  De = Gn(E);
@@ -1531,7 +1519,7 @@ var na = pa(function(t, r) {
1531
1519
  // Range selection turned off
1532
1520
  !Z || // Range selection turned on, first value
1533
1521
  we || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
1534
- x ? ta({
1522
+ x ? ea({
1535
1523
  maxDate: Y,
1536
1524
  maxDetail: k,
1537
1525
  minDate: Q,
@@ -1541,16 +1529,16 @@ var na = pa(function(t, r) {
1541
1529
  }) : null
1542
1530
  );
1543
1531
  V.persist(), S(tn), re(De);
1544
- var ha = {
1532
+ var ya = {
1545
1533
  action: "onChange",
1546
1534
  activeStartDate: tn,
1547
1535
  value: De,
1548
1536
  view: F
1549
1537
  };
1550
- if (N && !Nt(ue, tn) && N(ha), G)
1538
+ if (N && !Nt(ue, tn) && N(ya), G)
1551
1539
  if (Z) {
1552
- var ga = ln(De);
1553
- if (!ga)
1540
+ var ha = ln(De);
1541
+ if (!ha)
1554
1542
  G(De || null, V);
1555
1543
  else if (a) {
1556
1544
  if (Array.isArray(De))
@@ -1582,7 +1570,7 @@ var na = pa(function(t, r) {
1582
1570
  function en() {
1583
1571
  R(null);
1584
1572
  }
1585
- wa(r, function() {
1573
+ pa(r, function() {
1586
1574
  return {
1587
1575
  activeStartDate: ue,
1588
1576
  drillDown: Xt,
@@ -1594,9 +1582,9 @@ var na = pa(function(t, r) {
1594
1582
  };
1595
1583
  }, [ue, Xt, Jt, Qt, zt, ce, F]);
1596
1584
  function Kn(E) {
1597
- var V = E ? Wr(F, ue) : Ze(F, ue), q = Zt ? Xt : Qt, we = {
1585
+ var V = E ? Fr(F, ue) : Ze(F, ue), q = Zt ? Xt : Qt, we = {
1598
1586
  activeStartDate: V,
1599
- hover: va,
1587
+ hover: fa,
1600
1588
  locale: P,
1601
1589
  maxDate: Y,
1602
1590
  minDate: Q,
@@ -1610,25 +1598,25 @@ var na = pa(function(t, r) {
1610
1598
  };
1611
1599
  switch (F) {
1612
1600
  case "century":
1613
- return f.createElement(Hr, rt({ formatYear: w, showNeighboringCentury: ct }, we));
1601
+ return f.createElement(Ur, rt({ formatYear: w, showNeighboringCentury: ct }, we));
1614
1602
  case "decade":
1615
- return f.createElement(Gr, rt({ formatYear: w, showNeighboringDecade: st }, we));
1603
+ return f.createElement(Hr, rt({ formatYear: w, showNeighboringDecade: st }, we));
1616
1604
  case "year":
1617
- return f.createElement(Kr, rt({ formatMonth: m, formatMonthYear: y }, we));
1605
+ return f.createElement(Gr, rt({ formatMonth: m, formatMonthYear: y }, we));
1618
1606
  case "month":
1619
- return f.createElement(zr, rt({ calendarType: o, formatDay: v, formatLongDate: d, formatShortWeekday: b, formatWeekday: g, onClickWeekNumber: me, onMouseLeave: Z ? en : void 0, showFixedNumberOfWeeks: typeof pe < "u" ? pe : ke, showNeighboringMonth: Be, showWeekNumbers: ft }, we));
1607
+ return f.createElement(Zr, rt({ calendarType: o, formatDay: d, formatLongDate: v, formatShortWeekday: b, formatWeekday: g, onClickWeekNumber: me, onMouseLeave: Z ? en : void 0, showFixedNumberOfWeeks: typeof pe < "u" ? pe : ke, showNeighboringMonth: Be, showWeekNumbers: ft }, we));
1620
1608
  default:
1621
1609
  throw new Error("Invalid view: ".concat(F, "."));
1622
1610
  }
1623
1611
  }
1624
- function ma() {
1625
- return je ? f.createElement(ti, { activeStartDate: ue, drillUp: Jt, formatMonthYear: y, formatYear: w, locale: P, maxDate: Y, minDate: Q, navigationAriaLabel: oe, navigationAriaLive: ie, navigationLabel: fe, next2AriaLabel: M, next2Label: ve, nextAriaLabel: be, nextLabel: te, prev2AriaLabel: Ye, prev2Label: Ne, prevAriaLabel: Se, prevLabel: ne, setActiveStartDate: zt, showDoubleView: ke, view: F, views: Ce }) : null;
1612
+ function va() {
1613
+ return je ? f.createElement(ei, { activeStartDate: ue, drillUp: Jt, formatMonthYear: y, formatYear: w, locale: P, maxDate: Y, minDate: Q, navigationAriaLabel: oe, navigationAriaLive: ie, navigationLabel: fe, next2AriaLabel: M, next2Label: de, nextAriaLabel: be, nextLabel: te, prev2AriaLabel: Ye, prev2Label: Ne, prevAriaLabel: Se, prevLabel: ne, setActiveStartDate: zt, showDoubleView: ke, view: F, views: Ce }) : null;
1626
1614
  }
1627
- var ya = Array.isArray(ce) ? ce : [ce];
1615
+ var ma = Array.isArray(ce) ? ce : [ce];
1628
1616
  return f.createElement(
1629
1617
  "div",
1630
- { className: We(Pt, Z && ya.length === 1 && "".concat(Pt, "--selectRange"), ke && "".concat(Pt, "--doubleView"), i), ref: A },
1631
- ma(),
1618
+ { className: We(Pt, Z && ma.length === 1 && "".concat(Pt, "--selectRange"), ke && "".concat(Pt, "--doubleView"), i), ref: A },
1619
+ va(),
1632
1620
  f.createElement(
1633
1621
  "div",
1634
1622
  { className: "".concat(Pt, "__viewContainer"), onBlur: Z ? en : void 0, onMouseLeave: Z ? en : void 0 },
@@ -1636,14 +1624,14 @@ var na = pa(function(t, r) {
1636
1624
  ke ? Kn(!0) : null
1637
1625
  )
1638
1626
  );
1639
- }), fr = l.instanceOf(Date), vr = l.oneOfType([l.string, l.instanceOf(Date)]), dr = l.oneOfType([vr, Di(vr)]);
1640
- na.propTypes = {
1627
+ }), fr = l.instanceOf(Date), dr = l.oneOfType([l.string, l.instanceOf(Date)]), vr = l.oneOfType([dr, wi(dr)]);
1628
+ ta.propTypes = {
1641
1629
  activeStartDate: fr,
1642
1630
  allowPartialRange: l.bool,
1643
- calendarType: Ur,
1631
+ calendarType: qr,
1644
1632
  className: It,
1645
1633
  defaultActiveStartDate: fr,
1646
- defaultValue: dr,
1634
+ defaultValue: vr,
1647
1635
  defaultView: Mt,
1648
1636
  formatDay: l.func,
1649
1637
  formatLongDate: l.func,
@@ -1653,7 +1641,7 @@ na.propTypes = {
1653
1641
  formatWeekday: l.func,
1654
1642
  formatYear: l.func,
1655
1643
  goToRangeStartOnSelect: l.bool,
1656
- inputRef: bi,
1644
+ inputRef: gi,
1657
1645
  locale: l.string,
1658
1646
  maxDate: Wn,
1659
1647
  maxDetail: l.oneOf(ot),
@@ -1692,7 +1680,7 @@ na.propTypes = {
1692
1680
  tileClassName: l.oneOfType([l.func, It]),
1693
1681
  tileContent: l.oneOfType([l.func, l.node]),
1694
1682
  tileDisabled: l.func,
1695
- value: dr,
1683
+ value: vr,
1696
1684
  view: Mt
1697
1685
  };
1698
1686
  function ae(e) {
@@ -1726,9 +1714,9 @@ function mr(e, t) {
1726
1714
  }
1727
1715
  };
1728
1716
  }
1729
- var Bi = process.env.NODE_ENV === "production";
1717
+ var Yi = process.env.NODE_ENV === "production";
1730
1718
  function yr(e, t) {
1731
- if (!Bi) {
1719
+ if (!Yi) {
1732
1720
  if (e)
1733
1721
  return;
1734
1722
  var r = "Warning: " + t;
@@ -1739,7 +1727,7 @@ function yr(e, t) {
1739
1727
  }
1740
1728
  }
1741
1729
  }
1742
- var qi = /* @__PURE__ */ function() {
1730
+ var Bi = /* @__PURE__ */ function() {
1743
1731
  var e = function(t, r) {
1744
1732
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
1745
1733
  n.__proto__ = a;
@@ -1764,14 +1752,14 @@ var qi = /* @__PURE__ */ function() {
1764
1752
  }
1765
1753
  return e;
1766
1754
  }, Fe.apply(this, arguments);
1767
- }, Ui = function(e, t) {
1755
+ }, qi = function(e, t) {
1768
1756
  var r = {};
1769
1757
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1770
1758
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1771
1759
  for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
1772
1760
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1773
1761
  return r;
1774
- }, ra = typeof document < "u", hr = ra && "CSS" in window && "supports" in window.CSS && CSS.supports("display", "contents"), Hi = ra && "MutationObserver" in window;
1762
+ }, na = typeof document < "u", hr = na && "CSS" in window && "supports" in window.CSS && CSS.supports("display", "contents"), Ui = na && "MutationObserver" in window;
1775
1763
  function kt(e) {
1776
1764
  return e.charAt(0).toUpperCase() + e.slice(1);
1777
1765
  }
@@ -1786,11 +1774,11 @@ function gr(e) {
1786
1774
  }
1787
1775
  return document.documentElement;
1788
1776
  }
1789
- function aa(e) {
1777
+ function ra(e) {
1790
1778
  var t = e.axis, r = e.container, n = e.element, a = e.invertAxis, o = e.scrollContainer, i = e.secondary, u = e.spacing, c = window.getComputedStyle(n), s = r.parentElement;
1791
1779
  if (!s)
1792
1780
  return;
1793
- var v = mr(s, o), d = mr(s, document.documentElement), m = t === "x", y = m ? "left" : "top", b = m ? "right" : "bottom", g = m ? "width" : "height", w = "overflow".concat(kt(y)), D = "overflow".concat(kt(b)), x = "scroll".concat(kt(y)), A = kt(g), P = "offset".concat(A), $ = "client".concat(A), Y = "min-".concat(g), H = o[P] - o[$], k = typeof u == "object" ? u[y] : u, J = -Math.max(v[w], d[w] + document.documentElement[x]) - k, Q = typeof u == "object" ? u[b] : u, se = -Math.max(v[D], d[D] - document.documentElement[x]) - Q - H;
1781
+ var d = mr(s, o), v = mr(s, document.documentElement), m = t === "x", y = m ? "left" : "top", b = m ? "right" : "bottom", g = m ? "width" : "height", w = "overflow".concat(kt(y)), D = "overflow".concat(kt(b)), x = "scroll".concat(kt(y)), A = kt(g), P = "offset".concat(A), $ = "client".concat(A), Y = "min-".concat(g), H = o[P] - o[$], k = typeof u == "object" ? u[y] : u, J = -Math.max(d[w], v[w] + document.documentElement[x]) - k, Q = typeof u == "object" ? u[b] : u, se = -Math.max(d[D], v[D] - document.documentElement[x]) - Q - H;
1794
1782
  i && (J += s[$], se += s[$]);
1795
1783
  var ee = n[P];
1796
1784
  function oe() {
@@ -1806,35 +1794,35 @@ function aa(e) {
1806
1794
  function M() {
1807
1795
  return fe(J, oe);
1808
1796
  }
1809
- function ve() {
1797
+ function de() {
1810
1798
  return fe(se, ie);
1811
1799
  }
1812
1800
  function be() {
1813
1801
  var N = J > se, G = c.getPropertyValue(Y), U = G ? parseInt(G, 10) : null;
1814
- function de(he) {
1802
+ function ve(he) {
1815
1803
  yr(!U || he >= U, "<Fit />'s child will not fit anywhere with its current ".concat(Y, " of ").concat(U, "px."));
1816
1804
  var me = Math.max(he, U || 0);
1817
1805
  yr(!1, "<Fit />'s child needed to have its ".concat(g, " decreased to ").concat(me, "px.")), n.style[g] = "".concat(me, "px");
1818
1806
  }
1819
- N ? (de(J), oe()) : (de(se), ie());
1807
+ N ? (ve(J), oe()) : (ve(se), ie());
1820
1808
  }
1821
1809
  var te;
1822
- a ? te = M() || ve() : te = ve() || M(), te || be();
1810
+ a ? te = M() || de() : te = de() || M(), te || be();
1811
+ }
1812
+ function Hi(e) {
1813
+ ra(e);
1823
1814
  }
1824
1815
  function Gi(e) {
1825
- aa(e);
1816
+ ra(Fe(Fe({}, e), { axis: e.axis === "x" ? "y" : "x", secondary: !0 }));
1826
1817
  }
1827
1818
  function Ki(e) {
1828
- aa(Fe(Fe({}, e), { axis: e.axis === "x" ? "y" : "x", secondary: !0 }));
1829
- }
1830
- function Zi(e) {
1831
- var t = e.invertAxis, r = e.invertSecondaryAxis, n = Ui(e, ["invertAxis", "invertSecondaryAxis"]);
1832
- Gi(Fe(Fe({}, n), { invertAxis: t })), Ki(Fe(Fe({}, n), { invertAxis: r }));
1819
+ var t = e.invertAxis, r = e.invertSecondaryAxis, n = qi(e, ["invertAxis", "invertSecondaryAxis"]);
1820
+ Hi(Fe(Fe({}, n), { invertAxis: t })), Gi(Fe(Fe({}, n), { invertAxis: r }));
1833
1821
  }
1834
- var zi = (
1822
+ var Zi = (
1835
1823
  /** @class */
1836
1824
  function(e) {
1837
- qi(t, e);
1825
+ Bi(t, e);
1838
1826
  function t() {
1839
1827
  var r = e !== null && e.apply(this, arguments) || this;
1840
1828
  return r.fit = function() {
@@ -1845,12 +1833,12 @@ var zi = (
1845
1833
  r.elementWidth = u, r.elementHeight = c;
1846
1834
  var s = o.parentElement;
1847
1835
  if (s) {
1848
- var v = window.getComputedStyle(i), d = v.position;
1849
- d !== "absolute" && (i.style.position = "absolute");
1836
+ var d = window.getComputedStyle(i), v = d.position;
1837
+ v !== "absolute" && (i.style.position = "absolute");
1850
1838
  var m = window.getComputedStyle(s), y = m.position;
1851
1839
  y !== "relative" && y !== "absolute" && (s.style.position = "relative");
1852
1840
  var b = r.props, g = b.invertAxis, w = b.invertSecondaryAxis, D = b.mainAxis, x = D === void 0 ? "y" : D, A = b.spacing, P = A === void 0 ? 8 : A;
1853
- Zi({
1841
+ Ki({
1854
1842
  axis: x,
1855
1843
  container: o,
1856
1844
  element: i,
@@ -1867,7 +1855,7 @@ var zi = (
1867
1855
  return t.prototype.componentDidMount = function() {
1868
1856
  var r = this;
1869
1857
  if (!hr) {
1870
- var n = xa(this);
1858
+ var n = Oa(this);
1871
1859
  if (!n || !(n instanceof HTMLElement))
1872
1860
  return;
1873
1861
  this.container = n, this.element = n, this.scrollContainer = gr(n);
@@ -1876,7 +1864,7 @@ var zi = (
1876
1864
  var a = function() {
1877
1865
  r.fit();
1878
1866
  };
1879
- if (Hi && this.element) {
1867
+ if (Ui && this.element) {
1880
1868
  var o = new MutationObserver(a);
1881
1869
  o.observe(this.element, {
1882
1870
  attributes: !0,
@@ -1905,14 +1893,14 @@ var zi = (
1905
1893
  })
1906
1894
  ])
1907
1895
  }, t;
1908
- }(Da)
1896
+ }(wa)
1909
1897
  );
1910
- function Xi(e) {
1898
+ function zi(e) {
1911
1899
  var t = e.children;
1912
1900
  return f.createElement("span", { className: "react-date-picker__inputGroup__divider" }, t);
1913
1901
  }
1914
- var Ji = ["normal", "small-caps"];
1915
- function oa(e) {
1902
+ var Xi = ["normal", "small-caps"];
1903
+ function aa(e) {
1916
1904
  if (!e)
1917
1905
  return "";
1918
1906
  var t = window.getComputedStyle(e);
@@ -1921,11 +1909,11 @@ function oa(e) {
1921
1909
  var r = t.fontFamily !== "";
1922
1910
  if (!r)
1923
1911
  return "";
1924
- var n = Ji.includes(t.fontVariant) ? t.fontVariant : "normal";
1912
+ var n = Xi.includes(t.fontVariant) ? t.fontVariant : "normal";
1925
1913
  return "".concat(t.fontStyle, " ").concat(n, " ").concat(t.fontWeight, " ").concat(t.fontSize, " / ").concat(t.lineHeight, " ").concat(t.fontFamily);
1926
1914
  }
1927
1915
  var br;
1928
- function Qi(e, t) {
1916
+ function Ji(e, t) {
1929
1917
  var r = br || (br = document.createElement("canvas")), n = r.getContext("2d");
1930
1918
  if (!n)
1931
1919
  return null;
@@ -1936,17 +1924,17 @@ function Qi(e, t) {
1936
1924
  function Wt(e) {
1937
1925
  if (typeof document > "u" || !e)
1938
1926
  return null;
1939
- var t = oa(e), r = e.value || e.placeholder, n = Qi(r, t);
1927
+ var t = aa(e), r = e.value || e.placeholder, n = Ji(r, t);
1940
1928
  return n === null ? null : (e.style.width = "".concat(n, "px"), n);
1941
1929
  }
1942
- var Yn = typeof document < "u", el = Yn ? Oa : yt, tl = Yn && /(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent), nl = Yn && /Firefox/.test(navigator.userAgent);
1943
- function rl(e) {
1930
+ var Yn = typeof document < "u", Qi = Yn ? Da : yt, el = Yn && /(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent), tl = Yn && /Firefox/.test(navigator.userAgent);
1931
+ function nl(e) {
1944
1932
  var t = e.target;
1945
- tl ? requestAnimationFrame(function() {
1933
+ el ? requestAnimationFrame(function() {
1946
1934
  return t.select();
1947
1935
  }) : t.select();
1948
1936
  }
1949
- function al(e) {
1937
+ function rl(e) {
1950
1938
  if (document.readyState === "complete")
1951
1939
  return;
1952
1940
  function t() {
@@ -1954,10 +1942,10 @@ function al(e) {
1954
1942
  }
1955
1943
  window.addEventListener("load", t);
1956
1944
  }
1957
- function ol(e) {
1945
+ function al(e) {
1958
1946
  if (!document.fonts)
1959
1947
  return;
1960
- var t = oa(e);
1948
+ var t = aa(e);
1961
1949
  if (!t)
1962
1950
  return;
1963
1951
  var r = document.fonts.check(t);
@@ -1968,7 +1956,7 @@ function ol(e) {
1968
1956
  }
1969
1957
  document.fonts.addEventListener("loadingdone", n);
1970
1958
  }
1971
- function il(e) {
1959
+ function ol(e) {
1972
1960
  if (e && "selectionStart" in e && e.selectionStart !== null && "selectionEnd" in e && e.selectionEnd !== null)
1973
1961
  return e.value.slice(e.selectionStart, e.selectionEnd);
1974
1962
  if ("getSelection" in window) {
@@ -1977,45 +1965,45 @@ function il(e) {
1977
1965
  }
1978
1966
  return null;
1979
1967
  }
1980
- function ll(e) {
1968
+ function il(e) {
1981
1969
  if (e !== null)
1982
1970
  return function(r) {
1983
- if (!nl) {
1984
- var n = r.key, a = r.target, o = a.value, i = n.length === 1 && /\d/.test(n), u = il(a);
1971
+ if (!tl) {
1972
+ var n = r.key, a = r.target, o = a.value, i = n.length === 1 && /\d/.test(n), u = ol(a);
1985
1973
  (!i || !(u || o.length < e)) && r.preventDefault();
1986
1974
  }
1987
1975
  };
1988
1976
  }
1989
1977
  function Bn(e) {
1990
- var t = e.ariaLabel, r = e.autoFocus, n = e.className, a = e.disabled, o = e.inputRef, i = e.max, u = e.min, c = e.name, s = e.nameForClass, v = e.onChange, d = e.onKeyDown, m = e.onKeyUp, y = e.placeholder, b = y === void 0 ? "--" : y, g = e.required, w = e.showLeadingZeros, D = e.step, x = e.value;
1991
- el(function() {
1992
- !o || !o.current || (Wt(o.current), al(o.current), ol(o.current));
1978
+ var t = e.ariaLabel, r = e.autoFocus, n = e.className, a = e.disabled, o = e.inputRef, i = e.max, u = e.min, c = e.name, s = e.nameForClass, d = e.onChange, v = e.onKeyDown, m = e.onKeyUp, y = e.placeholder, b = y === void 0 ? "--" : y, g = e.required, w = e.showLeadingZeros, D = e.step, x = e.value;
1979
+ Qi(function() {
1980
+ !o || !o.current || (Wt(o.current), rl(o.current), al(o.current));
1993
1981
  }, [o, x]);
1994
1982
  var A = w && x && Number(x) < 10 && (x === "0" || !x.toString().startsWith("0")), P = i ? i.toString().length : null;
1995
1983
  return f.createElement(
1996
1984
  f.Fragment,
1997
1985
  null,
1998
1986
  A ? f.createElement("span", { className: "".concat(n, "__leadingZero") }, "0") : null,
1999
- f.createElement("input", { "aria-label": t, autoComplete: "off", autoFocus: r, className: We("".concat(n, "__input"), "".concat(n, "__").concat(s || c), A && "".concat(n, "__input--hasLeadingZero")), "data-input": "true", disabled: a, inputMode: "numeric", max: i, min: u, name: c, onChange: v, onFocus: rl, onKeyDown: d, onKeyPress: ll(P), onKeyUp: function($) {
1987
+ f.createElement("input", { "aria-label": t, autoComplete: "off", autoFocus: r, className: We("".concat(n, "__input"), "".concat(n, "__").concat(s || c), A && "".concat(n, "__input--hasLeadingZero")), "data-input": "true", disabled: a, inputMode: "numeric", max: i, min: u, name: c, onChange: d, onFocus: nl, onKeyDown: v, onKeyPress: il(P), onKeyUp: function($) {
2000
1988
  Wt($.target), m && m($);
2001
1989
  }, placeholder: b, ref: o, required: g, step: D, type: "number", value: x !== null ? x : "" })
2002
1990
  );
2003
1991
  }
2004
- function ul(e, t, r) {
1992
+ function ll(e, t, r) {
2005
1993
  return t && t > e ? t : r && r < e ? r : e;
2006
1994
  }
2007
- function ia(e) {
1995
+ function oa(e) {
2008
1996
  return e !== null && e !== !1 && !Number.isNaN(Number(e));
2009
1997
  }
2010
1998
  function Gt() {
2011
1999
  for (var e = [], t = 0; t < arguments.length; t++)
2012
2000
  e[t] = arguments[t];
2013
- return Math.min.apply(Math, e.filter(ia));
2001
+ return Math.min.apply(Math, e.filter(oa));
2014
2002
  }
2015
2003
  function Kt() {
2016
2004
  for (var e = [], t = 0; t < arguments.length; t++)
2017
2005
  e[t] = arguments[t];
2018
- return Math.max.apply(Math, e.filter(ia));
2006
+ return Math.max.apply(Math, e.filter(oa));
2019
2007
  }
2020
2008
  var xn = function() {
2021
2009
  return xn = Object.assign || function(e) {
@@ -2025,7 +2013,7 @@ var xn = function() {
2025
2013
  }
2026
2014
  return e;
2027
2015
  }, xn.apply(this, arguments);
2028
- }, cl = function(e, t) {
2016
+ }, ul = function(e, t) {
2029
2017
  var r = {};
2030
2018
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2031
2019
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2033,12 +2021,12 @@ var xn = function() {
2033
2021
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
2034
2022
  return r;
2035
2023
  };
2036
- function sl(e) {
2037
- var t = e.maxDate, r = e.minDate, n = e.month, a = e.year, o = cl(e, ["maxDate", "minDate", "month", "year"]), i = function() {
2024
+ function cl(e) {
2025
+ var t = e.maxDate, r = e.minDate, n = e.month, a = e.year, o = ul(e, ["maxDate", "minDate", "month", "year"]), i = function() {
2038
2026
  return n ? In(new Date(Number(a), Number(n) - 1, 1)) : 31;
2039
2027
  }();
2040
- function u(v) {
2041
- return a === C(v).toString() && n === Te(v).toString();
2028
+ function u(d) {
2029
+ return a === C(d).toString() && n === Te(d).toString();
2042
2030
  }
2043
2031
  var c = Gt(i, t && u(t) && Ve(t)), s = Kt(1, r && u(r) && Ve(r));
2044
2032
  return f.createElement(Bn, xn({ max: c, min: s, name: "day" }, o));
@@ -2051,7 +2039,7 @@ var En = function() {
2051
2039
  }
2052
2040
  return e;
2053
2041
  }, En.apply(this, arguments);
2054
- }, fl = function(e, t) {
2042
+ }, sl = function(e, t) {
2055
2043
  var r = {};
2056
2044
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2057
2045
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2059,8 +2047,8 @@ var En = function() {
2059
2047
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
2060
2048
  return r;
2061
2049
  };
2062
- function vl(e) {
2063
- var t = e.maxDate, r = e.minDate, n = e.year, a = fl(e, ["maxDate", "minDate", "year"]);
2050
+ function fl(e) {
2051
+ var t = e.maxDate, r = e.minDate, n = e.year, a = sl(e, ["maxDate", "minDate", "year"]);
2064
2052
  function o(c) {
2065
2053
  return c && n === C(c).toString();
2066
2054
  }
@@ -2080,27 +2068,27 @@ function dl(e) {
2080
2068
  var t = new Date(e);
2081
2069
  return new Date(t.setHours(12));
2082
2070
  }
2083
- function la(e) {
2071
+ function ia(e) {
2084
2072
  return function(t, r) {
2085
2073
  return Sn(e)(t, dl(r));
2086
2074
  };
2087
2075
  }
2088
- var ml = { month: "long" }, yl = { month: "short" }, hl = la(ml), gl = la(yl), bl = function(e, t, r) {
2076
+ var vl = { month: "long" }, ml = { month: "short" }, yl = ia(vl), hl = ia(ml), gl = function(e, t, r) {
2089
2077
  if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
2090
2078
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
2091
2079
  return e.concat(o || Array.prototype.slice.call(t));
2092
2080
  };
2093
- function pl(e) {
2094
- var t = e.ariaLabel, r = e.autoFocus, n = e.className, a = e.disabled, o = e.inputRef, i = e.locale, u = e.maxDate, c = e.minDate, s = e.onChange, v = e.onKeyDown, d = e.placeholder, m = d === void 0 ? "--" : d, y = e.required, b = e.short, g = e.value, w = e.year;
2081
+ function bl(e) {
2082
+ var t = e.ariaLabel, r = e.autoFocus, n = e.className, a = e.disabled, o = e.inputRef, i = e.locale, u = e.maxDate, c = e.minDate, s = e.onChange, d = e.onKeyDown, v = e.placeholder, m = v === void 0 ? "--" : v, y = e.required, b = e.short, g = e.value, w = e.year;
2095
2083
  function D(H) {
2096
2084
  return H && w === C(H).toString();
2097
2085
  }
2098
- var x = Gt(12, u && D(u) && Te(u)), A = Kt(1, c && D(c) && Te(c)), P = bl([], Array(12), !0).map(function(H, k) {
2086
+ var x = Gt(12, u && D(u) && Te(u)), A = Kt(1, c && D(c) && Te(c)), P = gl([], Array(12), !0).map(function(H, k) {
2099
2087
  return new Date(2019, k, 1);
2100
- }), $ = "month", Y = b ? gl : hl;
2088
+ }), $ = "month", Y = b ? hl : yl;
2101
2089
  return f.createElement(
2102
2090
  "select",
2103
- { "aria-label": t, autoFocus: r, className: We("".concat(n, "__input"), "".concat(n, "__").concat($)), "data-input": "true", "data-select": "true", disabled: a, name: $, onChange: s, onKeyDown: v, ref: o, required: y, value: g !== null ? g : "" },
2091
+ { "aria-label": t, autoFocus: r, className: We("".concat(n, "__input"), "".concat(n, "__").concat($)), "data-input": "true", "data-select": "true", disabled: a, name: $, onChange: s, onKeyDown: d, ref: o, required: y, value: g !== null ? g : "" },
2104
2092
  !g && f.createElement("option", { value: "" }, m),
2105
2093
  P.map(function(H) {
2106
2094
  var k = Te(H), J = k < A || k > x;
@@ -2116,7 +2104,7 @@ var Cn = function() {
2116
2104
  }
2117
2105
  return e;
2118
2106
  }, Cn.apply(this, arguments);
2119
- }, wl = function(e, t) {
2107
+ }, pl = function(e, t) {
2120
2108
  var r = {};
2121
2109
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2122
2110
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2124,14 +2112,14 @@ var Cn = function() {
2124
2112
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
2125
2113
  return r;
2126
2114
  };
2127
- function Dl(e) {
2128
- var t = e.maxDate, r = e.minDate, n = e.placeholder, a = n === void 0 ? "----" : n, o = e.valueType, i = wl(e, ["maxDate", "minDate", "placeholder", "valueType"]), u = Gt(275760, t && C(t)), c = Kt(1, r && C(r)), s = /* @__PURE__ */ function() {
2115
+ function wl(e) {
2116
+ var t = e.maxDate, r = e.minDate, n = e.placeholder, a = n === void 0 ? "----" : n, o = e.valueType, i = pl(e, ["maxDate", "minDate", "placeholder", "valueType"]), u = Gt(275760, t && C(t)), c = Kt(1, r && C(r)), s = /* @__PURE__ */ function() {
2129
2117
  return o === "century" ? 10 : 1;
2130
2118
  }();
2131
2119
  return f.createElement(Bn, Cn({ max: u, min: c, name: "year", placeholder: a, step: s }, i));
2132
2120
  }
2133
- function Ol(e) {
2134
- var t = e.ariaLabel, r = e.disabled, n = e.maxDate, a = e.minDate, o = e.name, i = e.onChange, u = e.required, c = e.value, s = e.valueType, v = function() {
2121
+ function Dl(e) {
2122
+ var t = e.ariaLabel, r = e.disabled, n = e.maxDate, a = e.minDate, o = e.name, i = e.onChange, u = e.required, c = e.value, s = e.valueType, d = function() {
2135
2123
  switch (s) {
2136
2124
  case "decade":
2137
2125
  case "year":
@@ -2143,15 +2131,15 @@ function Ol(e) {
2143
2131
  default:
2144
2132
  throw new Error("Invalid valueType");
2145
2133
  }
2146
- }(), d = function() {
2134
+ }(), v = function() {
2147
2135
  switch (s) {
2148
2136
  case "decade":
2149
2137
  case "year":
2150
2138
  return C;
2151
2139
  case "month":
2152
- return So;
2140
+ return Eo;
2153
2141
  case "day":
2154
- return Co;
2142
+ return So;
2155
2143
  default:
2156
2144
  throw new Error("Invalid valueType");
2157
2145
  }
@@ -2159,13 +2147,13 @@ function Ol(e) {
2159
2147
  function m(y) {
2160
2148
  y.stopPropagation();
2161
2149
  }
2162
- return f.createElement("input", { "aria-label": t, disabled: r, hidden: !0, max: n ? d(n) : void 0, min: a ? d(a) : void 0, name: o, onChange: i, onFocus: m, required: u, style: {
2150
+ return f.createElement("input", { "aria-label": t, disabled: r, hidden: !0, max: n ? v(n) : void 0, min: a ? v(a) : void 0, name: o, onChange: i, onFocus: m, required: u, style: {
2163
2151
  visibility: "hidden",
2164
2152
  position: "absolute",
2165
2153
  zIndex: "-999"
2166
- }, type: v, value: c ? d(c) : "" });
2154
+ }, type: d, value: c ? v(c) : "" });
2167
2155
  }
2168
- function xl(e, t) {
2156
+ function Ol(e, t) {
2169
2157
  switch (e) {
2170
2158
  case "decade":
2171
2159
  return Me(t);
@@ -2179,7 +2167,7 @@ function xl(e, t) {
2179
2167
  throw new Error("Invalid rangeType: ".concat(e));
2180
2168
  }
2181
2169
  }
2182
- function El(e, t) {
2170
+ function xl(e, t) {
2183
2171
  switch (e) {
2184
2172
  case "decade":
2185
2173
  return xt(t);
@@ -2208,100 +2196,100 @@ var at = function() {
2208
2196
  }, Lt = {}, Rt = /* @__PURE__ */ new Date();
2209
2197
  Rt.setFullYear(1, 0, 1);
2210
2198
  Rt.setHours(0, 0, 0, 0);
2211
- var pr = /* @__PURE__ */ new Date(864e13), qn = ["century", "decade", "year", "month"], Sl = Vt(Vt([], qn.slice(1), !0), ["day"], !1);
2212
- function Cl(e) {
2199
+ var pr = /* @__PURE__ */ new Date(864e13), qn = ["century", "decade", "year", "month"], El = Vt(Vt([], qn.slice(1), !0), ["day"], !1);
2200
+ function Sl(e) {
2213
2201
  return e instanceof Date ? e : new Date(e);
2214
2202
  }
2215
- function ua(e) {
2203
+ function la(e) {
2216
2204
  var t = qn.indexOf(e);
2217
- return Sl[t];
2205
+ return El[t];
2218
2206
  }
2219
- function _l(e, t) {
2207
+ function Cl(e, t) {
2220
2208
  var r = Array.isArray(e) ? e[t] : e;
2221
2209
  if (!r)
2222
2210
  return null;
2223
- var n = Cl(r);
2211
+ var n = Sl(r);
2224
2212
  if (isNaN(n.getTime()))
2225
2213
  throw new Error("Invalid date: ".concat(e));
2226
2214
  return n;
2227
2215
  }
2228
- function ca(e, t) {
2229
- var r = e.value, n = e.minDate, a = e.maxDate, o = e.maxDetail, i = _l(r, t);
2216
+ function ua(e, t) {
2217
+ var r = e.value, n = e.minDate, a = e.maxDate, o = e.maxDetail, i = Cl(r, t);
2230
2218
  if (!i)
2231
2219
  return null;
2232
- var u = ua(o), c = function() {
2220
+ var u = la(o), c = function() {
2233
2221
  switch (t) {
2234
2222
  case 0:
2235
- return xl(u, i);
2223
+ return Ol(u, i);
2236
2224
  case 1:
2237
- return El(u, i);
2225
+ return xl(u, i);
2238
2226
  default:
2239
2227
  throw new Error("Invalid index value: ".concat(t));
2240
2228
  }
2241
2229
  }();
2242
- return ul(c, n, a);
2230
+ return ll(c, n, a);
2243
2231
  }
2244
2232
  var _n = function(e) {
2245
- return ca(e, 0);
2246
- }, sa = function(e) {
2247
- return ca(e, 1);
2248
- }, Al = function(e) {
2249
- return [_n, sa].map(function(t) {
2233
+ return ua(e, 0);
2234
+ }, ca = function(e) {
2235
+ return ua(e, 1);
2236
+ }, _l = function(e) {
2237
+ return [_n, ca].map(function(t) {
2250
2238
  return t(e);
2251
2239
  });
2252
2240
  };
2253
- function Pl(e) {
2241
+ function Al(e) {
2254
2242
  return e.dataset.input === "true";
2255
2243
  }
2256
2244
  function wr(e, t) {
2257
2245
  var r = e;
2258
2246
  do
2259
2247
  r = r[t];
2260
- while (r && !Pl(r));
2248
+ while (r && !Al(r));
2261
2249
  return r;
2262
2250
  }
2263
2251
  function cn(e) {
2264
2252
  e && e.focus();
2265
2253
  }
2266
- function Nl(e, t, r) {
2254
+ function Pl(e, t, r) {
2267
2255
  var n = [], a = new RegExp(Object.keys(t).map(function(i) {
2268
2256
  return "".concat(i, "+");
2269
2257
  }).join("|"), "g"), o = e.match(a);
2270
2258
  return e.split(a).reduce(function(i, u, c) {
2271
2259
  var s = u && // eslint-disable-next-line react/no-array-index-key
2272
- f.createElement(Xi, { key: "separator_".concat(c) }, u), v = Vt(Vt([], i, !0), [s], !1), d = o && o[c];
2273
- if (d) {
2274
- var m = t[d] || t[Object.keys(t).find(function(y) {
2275
- return d.match(y);
2260
+ f.createElement(zi, { key: "separator_".concat(c) }, u), d = Vt(Vt([], i, !0), [s], !1), v = o && o[c];
2261
+ if (v) {
2262
+ var m = t[v] || t[Object.keys(t).find(function(y) {
2263
+ return v.match(y);
2276
2264
  })];
2277
2265
  if (!m)
2278
- return v;
2279
- !r && n.includes(m) ? v.push(d) : (v.push(m(d, c)), n.push(m));
2266
+ return d;
2267
+ !r && n.includes(m) ? d.push(v) : (d.push(m(v, c)), n.push(m));
2280
2268
  }
2281
- return v;
2269
+ return d;
2282
2270
  }, []);
2283
2271
  }
2284
2272
  function Dr(e) {
2285
- var t = e.autoFocus, r = e.className, n = e.dayAriaLabel, a = e.dayPlaceholder, o = e.disabled, i = e.format, u = e.isCalendarOpen, c = u === void 0 ? null : u, s = e.locale, v = e.maxDate, d = e.maxDetail, m = d === void 0 ? "month" : d, y = e.minDate, b = e.monthAriaLabel, g = e.monthPlaceholder, w = e.name, D = w === void 0 ? "date" : w, x = e.nativeInputAriaLabel, A = e.onChange, P = e.onInvalidChange, $ = e.required, Y = e.returnValue, H = Y === void 0 ? "start" : Y, k = e.showLeadingZeros, J = e.value, Q = e.yearAriaLabel, se = e.yearPlaceholder, ee = Pe(null), oe = ee[0], ie = ee[1], fe = Pe(null), M = fe[0], ve = fe[1], be = Pe(null), te = be[0], N = be[1], G = Pe(null), U = G[0], de = G[1], he = Ke(null), me = Ke(null), xe = Ke(null), Ee = Ke(null), K = Pe(c), ye = K[0], Ye = K[1], Ne = Ke();
2273
+ var t = e.autoFocus, r = e.className, n = e.dayAriaLabel, a = e.dayPlaceholder, o = e.disabled, i = e.format, u = e.isCalendarOpen, c = u === void 0 ? null : u, s = e.locale, d = e.maxDate, v = e.maxDetail, m = v === void 0 ? "month" : v, y = e.minDate, b = e.monthAriaLabel, g = e.monthPlaceholder, w = e.name, D = w === void 0 ? "date" : w, x = e.nativeInputAriaLabel, A = e.onChange, P = e.onInvalidChange, $ = e.required, Y = e.returnValue, H = Y === void 0 ? "start" : Y, k = e.showLeadingZeros, J = e.value, Q = e.yearAriaLabel, se = e.yearPlaceholder, ee = Pe(null), oe = ee[0], ie = ee[1], fe = Pe(null), M = fe[0], de = fe[1], be = Pe(null), te = be[0], N = be[1], G = Pe(null), U = G[0], ve = G[1], he = Ke(null), me = Ke(null), xe = Ke(null), Ee = Ke(null), K = Pe(c), ye = K[0], Ye = K[1], Ne = Ke();
2286
2274
  yt(function() {
2287
2275
  Ye(c);
2288
2276
  }, [c]), yt(function() {
2289
2277
  var h = _n({
2290
2278
  value: J,
2291
2279
  minDate: y,
2292
- maxDate: v,
2280
+ maxDate: d,
2293
2281
  maxDetail: m
2294
2282
  });
2295
- h ? (ie(C(h).toString()), ve(Te(h).toString()), N(Ve(h).toString()), de(h)) : (ie(null), ve(null), N(null), de(null));
2283
+ h ? (ie(C(h).toString()), de(Te(h).toString()), N(Ve(h).toString()), ve(h)) : (ie(null), de(null), N(null), ve(null));
2296
2284
  }, [
2297
2285
  J,
2298
2286
  y,
2299
- v,
2287
+ d,
2300
2288
  m,
2301
2289
  // Toggling calendar visibility resets values
2302
2290
  ye
2303
2291
  ]);
2304
- var Se = ua(m), ne = function() {
2292
+ var Se = la(m), ne = function() {
2305
2293
  var h = qn.indexOf(m), O = Lt[h] || function() {
2306
2294
  var _ = { year: "numeric" };
2307
2295
  return h >= 2 && (_.month = "numeric"), h >= 3 && (_.day = "numeric"), Lt[h] = _, _;
@@ -2314,9 +2302,9 @@ function Dr(e) {
2314
2302
  case "start":
2315
2303
  return _n;
2316
2304
  case "end":
2317
- return sa;
2305
+ return ca;
2318
2306
  case "range":
2319
- return Al;
2307
+ return _l;
2320
2308
  default:
2321
2309
  throw new Error("Invalid returnValue.");
2322
2310
  }
@@ -2324,7 +2312,7 @@ function Dr(e) {
2324
2312
  return O({
2325
2313
  value: h,
2326
2314
  minDate: y,
2327
- maxDate: v,
2315
+ maxDate: d,
2328
2316
  maxDetail: m
2329
2317
  });
2330
2318
  }
@@ -2426,7 +2414,7 @@ function Dr(e) {
2426
2414
  ie(p);
2427
2415
  break;
2428
2416
  case "month":
2429
- ve(p);
2417
+ de(p);
2430
2418
  break;
2431
2419
  case "day":
2432
2420
  N(p);
@@ -2449,7 +2437,7 @@ function Dr(e) {
2449
2437
  var Le = {
2450
2438
  className: r,
2451
2439
  disabled: o,
2452
- maxDate: v || pr,
2440
+ maxDate: d || pr,
2453
2441
  minDate: y || Rt,
2454
2442
  onChange: ct,
2455
2443
  onKeyDown: pe,
@@ -2461,7 +2449,7 @@ function Dr(e) {
2461
2449
  if (h && h.length > 2)
2462
2450
  throw new Error("Unsupported token: ".concat(h));
2463
2451
  var _ = h && h.length === 2;
2464
- return f.createElement(sl, at({ key: "day" }, Le, {
2452
+ return f.createElement(cl, at({ key: "day" }, Le, {
2465
2453
  ariaLabel: n,
2466
2454
  // eslint-disable-next-line jsx-a11y/no-autofocus
2467
2455
  autoFocus: O === 0 && t,
@@ -2477,7 +2465,7 @@ function Dr(e) {
2477
2465
  if (h && h.length > 4)
2478
2466
  throw new Error("Unsupported token: ".concat(h));
2479
2467
  if (h.length > 2)
2480
- return f.createElement(pl, at({ key: "month" }, Le, {
2468
+ return f.createElement(bl, at({ key: "month" }, Le, {
2481
2469
  ariaLabel: b,
2482
2470
  // eslint-disable-next-line jsx-a11y/no-autofocus
2483
2471
  autoFocus: O === 0 && t,
@@ -2489,7 +2477,7 @@ function Dr(e) {
2489
2477
  year: oe
2490
2478
  }));
2491
2479
  var _ = h && h.length === 2;
2492
- return f.createElement(vl, at({ key: "month" }, Le, {
2480
+ return f.createElement(fl, at({ key: "month" }, Le, {
2493
2481
  ariaLabel: b,
2494
2482
  // eslint-disable-next-line jsx-a11y/no-autofocus
2495
2483
  autoFocus: O === 0 && t,
@@ -2501,7 +2489,7 @@ function Dr(e) {
2501
2489
  }));
2502
2490
  }
2503
2491
  function Qe(h, O) {
2504
- return f.createElement(Dl, at({ key: "year" }, Le, {
2492
+ return f.createElement(wl, at({ key: "year" }, Le, {
2505
2493
  ariaLabel: Q,
2506
2494
  // eslint-disable-next-line jsx-a11y/no-autofocus
2507
2495
  autoFocus: O === 0 && t,
@@ -2517,10 +2505,10 @@ function Dr(e) {
2517
2505
  M: ft,
2518
2506
  y: Qe
2519
2507
  }, O = typeof i < "u";
2520
- return Nl(ge, h, O);
2508
+ return Pl(ge, h, O);
2521
2509
  }
2522
2510
  function Ue() {
2523
- return f.createElement(Ol, { key: "date", ariaLabel: x, disabled: o, maxDate: v || pr, minDate: y || Rt, name: D, onChange: st, required: $, value: U, valueType: Se });
2511
+ return f.createElement(Dl, { key: "date", ariaLabel: x, disabled: o, maxDate: d || pr, minDate: y || Rt, name: D, onChange: st, required: $, value: U, valueType: Se });
2524
2512
  }
2525
2513
  return (
2526
2514
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
@@ -2532,7 +2520,7 @@ function Dr(e) {
2532
2520
  )
2533
2521
  );
2534
2522
  }
2535
- var kl = function(t, r, n) {
2523
+ var Nl = function(t, r, n) {
2536
2524
  var a = t, o = r, i = a[o];
2537
2525
  if (!i)
2538
2526
  return null;
@@ -2540,7 +2528,7 @@ var kl = function(t, r, n) {
2540
2528
  return new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, expected instance of `Date`."));
2541
2529
  var u = t.maxDate;
2542
2530
  return u && i > u ? new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, minDate cannot be larger than maxDate.")) : null;
2543
- }, Ll = function(t, r, n) {
2531
+ }, kl = function(t, r, n) {
2544
2532
  var a = t, o = r, i = a[o];
2545
2533
  if (!i)
2546
2534
  return null;
@@ -2548,7 +2536,7 @@ var kl = function(t, r, n) {
2548
2536
  return new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, expected instance of `Date`."));
2549
2537
  var u = t.minDate;
2550
2538
  return u && i < u ? new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, maxDate cannot be smaller than minDate.")) : null;
2551
- }, Tl = function(e) {
2539
+ }, Ll = function(e) {
2552
2540
  return l.arrayOf(e);
2553
2541
  }, Oe = function() {
2554
2542
  return Oe = Object.assign || function(e) {
@@ -2565,26 +2553,26 @@ var kl = function(t, r, n) {
2565
2553
  for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
2566
2554
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
2567
2555
  return r;
2568
- }, Il = typeof document < "u", le = "react-daterange-picker", Ml = ["mousedown", "focusin", "touchstart"], jl = ["century", "decade", "year", "month"], fa = {
2556
+ }, Tl = typeof document < "u", le = "react-daterange-picker", Il = ["mousedown", "focusin", "touchstart"], Ml = ["century", "decade", "year", "month"], sa = {
2569
2557
  xmlns: "http://www.w3.org/2000/svg",
2570
2558
  width: 19,
2571
2559
  height: 19,
2572
2560
  viewBox: "0 0 19 19",
2573
2561
  stroke: "black",
2574
2562
  strokeWidth: 2
2575
- }, Fl = f.createElement(
2563
+ }, jl = f.createElement(
2576
2564
  "svg",
2577
- Oe({}, fa, { className: "".concat(le, "__calendar-button__icon ").concat(le, "__button__icon") }),
2565
+ Oe({}, sa, { className: "".concat(le, "__calendar-button__icon ").concat(le, "__button__icon") }),
2578
2566
  f.createElement("rect", { fill: "none", height: "15", width: "15", x: "2", y: "2" }),
2579
2567
  f.createElement("line", { x1: "6", x2: "6", y1: "0", y2: "4" }),
2580
2568
  f.createElement("line", { x1: "13", x2: "13", y1: "0", y2: "4" })
2581
- ), Wl = f.createElement(
2569
+ ), Fl = f.createElement(
2582
2570
  "svg",
2583
- Oe({}, fa, { className: "".concat(le, "__clear-button__icon ").concat(le, "__button__icon") }),
2571
+ Oe({}, sa, { className: "".concat(le, "__clear-button__icon ").concat(le, "__button__icon") }),
2584
2572
  f.createElement("line", { x1: "4", x2: "15", y1: "4", y2: "15" }),
2585
2573
  f.createElement("line", { x1: "15", x2: "4", y1: "4", y2: "15" })
2586
2574
  ), Un = function(t) {
2587
- var r = t.autoFocus, n = t.calendarAriaLabel, a = t.calendarIcon, o = a === void 0 ? Fl : a, i = t.className, u = t.clearAriaLabel, c = t.clearIcon, s = c === void 0 ? Wl : c, v = t.closeCalendar, d = v === void 0 ? !0 : v, m = t["data-testid"], y = t.dayAriaLabel, b = t.dayPlaceholder, g = t.disableCalendar, w = t.disabled, D = t.format, x = t.id, A = t.isOpen, P = A === void 0 ? null : A, $ = t.locale, Y = t.maxDate, H = t.maxDetail, k = H === void 0 ? "month" : H, J = t.minDate, Q = t.monthAriaLabel, se = t.monthPlaceholder, ee = t.name, oe = ee === void 0 ? "daterange" : ee, ie = t.nativeInputAriaLabel, fe = t.onCalendarClose, M = t.onCalendarOpen, ve = t.onChange, be = t.onFocus, te = t.onInvalidChange, N = t.openCalendarOnFocus, G = N === void 0 ? !0 : N, U = t.rangeDivider, de = U === void 0 ? "–" : U, he = t.required, me = t.shouldCloseCalendar, xe = t.shouldOpenCalendar, Ee = t.showLeadingZeros, K = t.value, ye = t.yearAriaLabel, Ye = t.yearPlaceholder, Ne = Or(t, ["autoFocus", "calendarAriaLabel", "calendarIcon", "className", "clearAriaLabel", "clearIcon", "closeCalendar", "data-testid", "dayAriaLabel", "dayPlaceholder", "disableCalendar", "disabled", "format", "id", "isOpen", "locale", "maxDate", "maxDetail", "minDate", "monthAriaLabel", "monthPlaceholder", "name", "nativeInputAriaLabel", "onCalendarClose", "onCalendarOpen", "onChange", "onFocus", "onInvalidChange", "openCalendarOnFocus", "rangeDivider", "required", "shouldCloseCalendar", "shouldOpenCalendar", "showLeadingZeros", "value", "yearAriaLabel", "yearPlaceholder"]), Se = Pe(P), ne = Se[0], L = Se[1], ge = Ke(null), Z = Ke(null);
2575
+ var r = t.autoFocus, n = t.calendarAriaLabel, a = t.calendarIcon, o = a === void 0 ? jl : a, i = t.className, u = t.clearAriaLabel, c = t.clearIcon, s = c === void 0 ? Fl : c, d = t.closeCalendar, v = d === void 0 ? !0 : d, m = t["data-testid"], y = t.dayAriaLabel, b = t.dayPlaceholder, g = t.disableCalendar, w = t.disabled, D = t.format, x = t.id, A = t.isOpen, P = A === void 0 ? null : A, $ = t.locale, Y = t.maxDate, H = t.maxDetail, k = H === void 0 ? "month" : H, J = t.minDate, Q = t.monthAriaLabel, se = t.monthPlaceholder, ee = t.name, oe = ee === void 0 ? "daterange" : ee, ie = t.nativeInputAriaLabel, fe = t.onCalendarClose, M = t.onCalendarOpen, de = t.onChange, be = t.onFocus, te = t.onInvalidChange, N = t.openCalendarOnFocus, G = N === void 0 ? !0 : N, U = t.rangeDivider, ve = U === void 0 ? "–" : U, he = t.required, me = t.shouldCloseCalendar, xe = t.shouldOpenCalendar, Ee = t.showLeadingZeros, K = t.value, ye = t.yearAriaLabel, Ye = t.yearPlaceholder, Ne = Or(t, ["autoFocus", "calendarAriaLabel", "calendarIcon", "className", "clearAriaLabel", "clearIcon", "closeCalendar", "data-testid", "dayAriaLabel", "dayPlaceholder", "disableCalendar", "disabled", "format", "id", "isOpen", "locale", "maxDate", "maxDetail", "minDate", "monthAriaLabel", "monthPlaceholder", "name", "nativeInputAriaLabel", "onCalendarClose", "onCalendarOpen", "onChange", "onFocus", "onInvalidChange", "openCalendarOnFocus", "rangeDivider", "required", "shouldCloseCalendar", "shouldOpenCalendar", "showLeadingZeros", "value", "yearAriaLabel", "yearPlaceholder"]), Se = Pe(P), ne = Se[0], L = Se[1], ge = Ke(null), Z = Ke(null);
2588
2576
  yt(function() {
2589
2577
  L(P);
2590
2578
  }, [P]);
@@ -2600,7 +2588,7 @@ var kl = function(t, r, n) {
2600
2588
  ne ? pe({ reason: "buttonClick" }) : ke({ reason: "buttonClick" });
2601
2589
  }
2602
2590
  function je(p, S) {
2603
- S === void 0 && (S = d), S && pe({ reason: "select" }), ve && ve(p);
2591
+ S === void 0 && (S = v), S && pe({ reason: "select" }), de && de(p);
2604
2592
  }
2605
2593
  function ct(p, S) {
2606
2594
  var j = (Array.isArray(p) ? p : [p])[0], W = Array.isArray(K) ? K : [K], R = W[1], I = R ? new Date(R) : null;
@@ -2627,7 +2615,7 @@ var kl = function(t, r, n) {
2627
2615
  var S = ge.current, j = Z.current, W = "composedPath" in p ? p.composedPath()[0] : p.target;
2628
2616
  W && S && !S.contains(W) && (!j || !j.contains(W)) && pe({ reason: "outsideAction" });
2629
2617
  }, [Z, pe, ge]), Ue = Ae(function(p) {
2630
- p === void 0 && (p = ne), Ml.forEach(function(S) {
2618
+ p === void 0 && (p = ne), Il.forEach(function(S) {
2631
2619
  p ? document.addEventListener(S, qe) : document.removeEventListener(S, qe);
2632
2620
  }), p ? document.addEventListener("keydown", Be) : document.removeEventListener("keydown", Be);
2633
2621
  }, [ne, qe, Be]);
@@ -2658,7 +2646,7 @@ var kl = function(t, r, n) {
2658
2646
  returnValue: "start",
2659
2647
  value: S
2660
2648
  })),
2661
- f.createElement("span", { className: "".concat(le, "__range-divider") }, de),
2649
+ f.createElement("span", { className: "".concat(le, "__range-divider") }, ve),
2662
2650
  f.createElement(Dr, Oe({}, I, { name: "".concat(oe, "_to"), onChange: st, returnValue: "end", value: j })),
2663
2651
  s !== null && f.createElement("button", { "aria-label": u, className: "".concat(le, "__clear-button ").concat(le, "__button"), disabled: w, onClick: ft, onFocus: Qe, type: "button" }, typeof s == "function" ? f.createElement(s) : s),
2664
2652
  o !== null && !g && f.createElement("button", { "aria-label": n, className: "".concat(le, "__calendar-button ").concat(le, "__button"), disabled: w, onClick: Je, onFocus: Qe, type: "button" }, typeof o == "function" ? f.createElement(o) : o)
@@ -2669,11 +2657,11 @@ var kl = function(t, r, n) {
2669
2657
  return null;
2670
2658
  var p = t.calendarClassName;
2671
2659
  t.className, t.onChange;
2672
- var S = t.portalContainer, j = t.value, W = Or(t, ["calendarClassName", "className", "onChange", "portalContainer", "value"]), R = "".concat(le, "__calendar"), I = We(R, "".concat(R, "--").concat(ne ? "open" : "closed")), z = f.createElement(na, Oe({ className: p, onChange: function(re) {
2660
+ var S = t.portalContainer, j = t.value, W = Or(t, ["calendarClassName", "className", "onChange", "portalContainer", "value"]), R = "".concat(le, "__calendar"), I = We(R, "".concat(R, "--").concat(ne ? "open" : "closed")), z = f.createElement(ta, Oe({ className: p, onChange: function(re) {
2673
2661
  return je(re);
2674
2662
  }, selectRange: !0, value: j }, W));
2675
- return S ? Ea(f.createElement("div", { ref: Z, className: I }, z), S) : f.createElement(
2676
- zi,
2663
+ return S ? xa(f.createElement("div", { ref: Z, className: I }, z), S) : f.createElement(
2664
+ Zi,
2677
2665
  null,
2678
2666
  f.createElement("div", { ref: function(re) {
2679
2667
  re && !ne && re.removeAttribute("style");
@@ -2681,7 +2669,7 @@ var kl = function(t, r, n) {
2681
2669
  );
2682
2670
  }
2683
2671
  var _ = sn(function() {
2684
- return za(Ne);
2672
+ return Za(Ne);
2685
2673
  }, [Ne]);
2686
2674
  return f.createElement(
2687
2675
  "div",
@@ -2689,7 +2677,7 @@ var kl = function(t, r, n) {
2689
2677
  h(),
2690
2678
  O()
2691
2679
  );
2692
- }, xr = l.oneOfType([l.string, l.instanceOf(Date)]), Vl = l.oneOfType([xr, Tl(xr)]);
2680
+ }, xr = l.oneOfType([l.string, l.instanceOf(Date)]), Wl = l.oneOfType([xr, Ll(xr)]);
2693
2681
  Un.propTypes = {
2694
2682
  autoFocus: l.bool,
2695
2683
  calendarAriaLabel: l.string,
@@ -2708,9 +2696,9 @@ Un.propTypes = {
2708
2696
  id: l.string,
2709
2697
  isOpen: l.bool,
2710
2698
  locale: l.string,
2711
- maxDate: Ll,
2712
- maxDetail: l.oneOf(jl),
2713
- minDate: kl,
2699
+ maxDate: kl,
2700
+ maxDetail: l.oneOf(Ml),
2701
+ minDate: Nl,
2714
2702
  monthAriaLabel: l.string,
2715
2703
  monthPlaceholder: l.string,
2716
2704
  name: l.string,
@@ -2723,16 +2711,16 @@ Un.propTypes = {
2723
2711
  rangeDivider: l.node,
2724
2712
  required: l.bool,
2725
2713
  showLeadingZeros: l.bool,
2726
- value: Vl,
2714
+ value: Wl,
2727
2715
  yearAriaLabel: l.string,
2728
2716
  yearPlaceholder: l.string
2729
2717
  };
2730
- Il && (Un.propTypes.portalContainer = l.instanceOf(HTMLElement));
2718
+ Tl && (Un.propTypes.portalContainer = l.instanceOf(HTMLElement));
2731
2719
  const Kl = ({ label: e, sx: t, ...r }) => {
2732
2720
  const n = Array.isArray(r.value) ? r.value[0] : r.value;
2733
- return /* @__PURE__ */ ba(Sa, { sx: t, children: [
2721
+ return /* @__PURE__ */ ga(Ea, { sx: t, children: [
2734
2722
  /* @__PURE__ */ _t(
2735
- Ca,
2723
+ Sa,
2736
2724
  {
2737
2725
  variant: "caption",
2738
2726
  className: "react-daterange-picker__label",
@@ -2743,8 +2731,8 @@ const Kl = ({ label: e, sx: t, ...r }) => {
2743
2731
  Un,
2744
2732
  {
2745
2733
  ...r,
2746
- calendarIcon: /* @__PURE__ */ _t(Na, { color: "action" }),
2747
- clearIcon: n ? /* @__PURE__ */ _t(Aa, { color: "error" }) : null
2734
+ calendarIcon: /* @__PURE__ */ _t(Pa, { color: "action" }),
2735
+ clearIcon: n ? /* @__PURE__ */ _t(_a, { color: "error" }) : null
2748
2736
  }
2749
2737
  )
2750
2738
  ] });