@pismo/marola 2.1.31 → 2.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- import { jsx as Y, jsxs as Ae } from "react/jsx-runtime";
2
- import * as z from "react";
3
- import { useState as ce, useRef as ft, useEffect as Ue, useCallback as Ut } from "react";
4
- import { c as ut } from "../../clsx-OuTLNxxd.js";
5
- import { r as zt, d as J } from "../../dayjs.min-ClQKmc--.js";
6
- import { g as Ie } from "../../_commonjsHelpers-C6fGbg64.js";
1
+ import { jsx as B, jsxs as _e } from "react/jsx-runtime";
2
+ import * as J from "react";
3
+ import { useState as ce, useRef as dt, useEffect as Je, useCallback as Ut } from "react";
4
+ import { c as vt } from "../../clsx-OuTLNxxd.js";
5
+ import { r as zt, d as Z } from "../../dayjs.min-ClQKmc--.js";
6
+ import { g as Fe } from "../../_commonjsHelpers-C6fGbg64.js";
7
7
  import { DoubleInput as Xt } from "../DoubleInput/DoubleInput.js";
8
- import { Icon as ze } from "../Icon/Icon.js";
8
+ import { Icon as Ke } from "../Icon/Icon.js";
9
9
  import { Input as Jt } from "../Input/Input.js";
10
10
  import { isDisabled as Kt, getPreviousMonth as Gt, getNextMonth as Zt } from "./dateUtils.js";
11
11
  import { handleDatePickerKeyDown as Qt } from "./keyboardNavigation.js";
@@ -14,22 +14,22 @@ import { renderDualCalendarHeader as tr } from "./renderDualCalendarHeader.js";
14
14
  import { renderHeader as rr } from "./renderHeader.js";
15
15
  import { renderNavigatorInput as nr } from "./renderNavigatorInput.js";
16
16
  import { renderPeriodSelection as or } from "./renderPeriodSelection.js";
17
- import { s as ue } from "../../DatePicker.module-CFu_FsW6.js";
18
- import { P as b, g as ar, a as ir, b as _t, _ as Be, u as dt, c as sr, d as lr, e as cr } from "../../useSlotProps-CYHDC4TN.js";
19
- import { o as vt, c as pr } from "../../ownerDocument-By592Iy6.js";
20
- import { P as fr, H as mt } from "../../Portal-DJapUCn6.js";
21
- import { u as ht } from "../../useEnhancedEffect-CJGo-L3B.js";
17
+ import { s as ve } from "../../DatePicker.module-gd1PqICl.js";
18
+ import { P as y, g as ar, a as ir, b as Lt, _ as Ie, u as mt, c as sr, d as lr, e as cr } from "../../useSlotProps-CYHDC4TN.js";
19
+ import { o as ht, c as fr } from "../../ownerDocument-By592Iy6.js";
20
+ import { P as pr, H as yt } from "../../Portal-DJapUCn6.js";
21
+ import { u as gt } from "../../useEnhancedEffect-CJGo-L3B.js";
22
22
  import { C as ur } from "../../ClickAwayListener-Z08peX_P.js";
23
- const dr = b.oneOfType([b.func, b.object]);
24
- var $ = "top", F = "bottom", V = "right", B = "left", Ge = "auto", Me = [$, F, V, B], de = "start", Pe = "end", vr = "clippingParents", jt = "viewport", xe = "popper", mr = "reference", yt = /* @__PURE__ */ Me.reduce(function(t, e) {
25
- return t.concat([e + "-" + de, e + "-" + Pe]);
26
- }, []), Lt = /* @__PURE__ */ [].concat(Me, [Ge]).reduce(function(t, e) {
27
- return t.concat([e, e + "-" + de, e + "-" + Pe]);
23
+ const dr = y.oneOfType([y.func, y.object]);
24
+ var H = "top", U = "bottom", z = "right", N = "left", et = "auto", De = [H, U, z, N], me = "start", Ee = "end", vr = "clippingParents", St = "viewport", we = "popper", mr = "reference", bt = /* @__PURE__ */ De.reduce(function(t, e) {
25
+ return t.concat([e + "-" + me, e + "-" + Ee]);
26
+ }, []), Yt = /* @__PURE__ */ [].concat(De, [et]).reduce(function(t, e) {
27
+ return t.concat([e, e + "-" + me, e + "-" + Ee]);
28
28
  }, []), hr = "beforeRead", yr = "read", gr = "afterRead", br = "beforeMain", xr = "main", wr = "afterMain", Or = "beforeWrite", Pr = "write", Er = "afterWrite", Mr = [hr, yr, gr, br, xr, wr, Or, Pr, Er];
29
- function G(t) {
29
+ function ee(t) {
30
30
  return t ? (t.nodeName || "").toLowerCase() : null;
31
31
  }
32
- function W(t) {
32
+ function q(t) {
33
33
  if (t == null)
34
34
  return window;
35
35
  if (t.toString() !== "[object Window]") {
@@ -38,25 +38,25 @@ function W(t) {
38
38
  }
39
39
  return t;
40
40
  }
41
- function fe(t) {
42
- var e = W(t).Element;
41
+ function pe(t) {
42
+ var e = q(t).Element;
43
43
  return t instanceof e || t instanceof Element;
44
44
  }
45
- function q(t) {
46
- var e = W(t).HTMLElement;
45
+ function V(t) {
46
+ var e = q(t).HTMLElement;
47
47
  return t instanceof e || t instanceof HTMLElement;
48
48
  }
49
- function Ze(t) {
49
+ function tt(t) {
50
50
  if (typeof ShadowRoot > "u")
51
51
  return !1;
52
- var e = W(t).ShadowRoot;
52
+ var e = q(t).ShadowRoot;
53
53
  return t instanceof e || t instanceof ShadowRoot;
54
54
  }
55
55
  function Dr(t) {
56
56
  var e = t.state;
57
57
  Object.keys(e.elements).forEach(function(r) {
58
58
  var n = e.styles[r] || {}, o = e.attributes[r] || {}, a = e.elements[r];
59
- !q(a) || !G(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(l) {
59
+ !V(a) || !ee(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(l) {
60
60
  var i = o[l];
61
61
  i === !1 ? a.removeAttribute(l) : a.setAttribute(l, i === !0 ? "" : i);
62
62
  }));
@@ -77,10 +77,10 @@ function Rr(t) {
77
77
  };
78
78
  return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
79
79
  Object.keys(e.elements).forEach(function(n) {
80
- var o = e.elements[n], a = e.attributes[n] || {}, l = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), i = l.reduce(function(s, p) {
81
- return s[p] = "", s;
80
+ var o = e.elements[n], a = e.attributes[n] || {}, l = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), i = l.reduce(function(s, f) {
81
+ return s[f] = "", s;
82
82
  }, {});
83
- !q(o) || !G(o) || (Object.assign(o.style, i), Object.keys(a).forEach(function(s) {
83
+ !V(o) || !ee(o) || (Object.assign(o.style, i), Object.keys(a).forEach(function(s) {
84
84
  o.removeAttribute(s);
85
85
  }));
86
86
  });
@@ -94,37 +94,37 @@ const Tr = {
94
94
  effect: Rr,
95
95
  requires: ["computeStyles"]
96
96
  };
97
- function K(t) {
97
+ function Q(t) {
98
98
  return t.split("-")[0];
99
99
  }
100
- var pe = Math.max, He = Math.min, ve = Math.round;
101
- function Je() {
100
+ var fe = Math.max, We = Math.min, he = Math.round;
101
+ function Ze() {
102
102
  var t = navigator.userAgentData;
103
103
  return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
104
104
  return e.brand + "/" + e.version;
105
105
  }).join(" ") : navigator.userAgent;
106
106
  }
107
- function St() {
108
- return !/^((?!chrome|android).)*safari/i.test(Je());
107
+ function $t() {
108
+ return !/^((?!chrome|android).)*safari/i.test(Ze());
109
109
  }
110
- function me(t, e, r) {
110
+ function ye(t, e, r) {
111
111
  e === void 0 && (e = !1), r === void 0 && (r = !1);
112
112
  var n = t.getBoundingClientRect(), o = 1, a = 1;
113
- e && q(t) && (o = t.offsetWidth > 0 && ve(n.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && ve(n.height) / t.offsetHeight || 1);
114
- var l = fe(t) ? W(t) : window, i = l.visualViewport, s = !St() && r, p = (n.left + (s && i ? i.offsetLeft : 0)) / o, c = (n.top + (s && i ? i.offsetTop : 0)) / a, m = n.width / o, h = n.height / a;
113
+ e && V(t) && (o = t.offsetWidth > 0 && he(n.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && he(n.height) / t.offsetHeight || 1);
114
+ var l = pe(t) ? q(t) : window, i = l.visualViewport, s = !$t() && r, f = (n.left + (s && i ? i.offsetLeft : 0)) / o, c = (n.top + (s && i ? i.offsetTop : 0)) / a, v = n.width / o, m = n.height / a;
115
115
  return {
116
- width: m,
117
- height: h,
116
+ width: v,
117
+ height: m,
118
118
  top: c,
119
- right: p + m,
120
- bottom: c + h,
121
- left: p,
122
- x: p,
119
+ right: f + v,
120
+ bottom: c + m,
121
+ left: f,
122
+ x: f,
123
123
  y: c
124
124
  };
125
125
  }
126
- function Qe(t) {
127
- var e = me(t), r = t.offsetWidth, n = t.offsetHeight;
126
+ function rt(t) {
127
+ var e = ye(t), r = t.offsetWidth, n = t.offsetHeight;
128
128
  return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
129
129
  x: t.offsetLeft,
130
130
  y: t.offsetTop,
@@ -132,11 +132,11 @@ function Qe(t) {
132
132
  height: n
133
133
  };
134
134
  }
135
- function Yt(t, e) {
135
+ function Bt(t, e) {
136
136
  var r = e.getRootNode && e.getRootNode();
137
137
  if (t.contains(e))
138
138
  return !0;
139
- if (r && Ze(r)) {
139
+ if (r && tt(r)) {
140
140
  var n = e;
141
141
  do {
142
142
  if (n && t.isSameNode(n))
@@ -146,66 +146,66 @@ function Yt(t, e) {
146
146
  }
147
147
  return !1;
148
148
  }
149
- function Q(t) {
150
- return W(t).getComputedStyle(t);
149
+ function re(t) {
150
+ return q(t).getComputedStyle(t);
151
151
  }
152
152
  function Ar(t) {
153
- return ["table", "td", "th"].indexOf(G(t)) >= 0;
153
+ return ["table", "td", "th"].indexOf(ee(t)) >= 0;
154
154
  }
155
- function re(t) {
156
- return ((fe(t) ? t.ownerDocument : (
155
+ function ae(t) {
156
+ return ((pe(t) ? t.ownerDocument : (
157
157
  // $FlowFixMe[prop-missing]
158
158
  t.document
159
159
  )) || window.document).documentElement;
160
160
  }
161
- function We(t) {
162
- return G(t) === "html" ? t : (
161
+ function Ve(t) {
162
+ return ee(t) === "html" ? t : (
163
163
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
164
164
  // $FlowFixMe[incompatible-return]
165
165
  // $FlowFixMe[prop-missing]
166
166
  t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
167
167
  t.parentNode || // DOM Element detected
168
- (Ze(t) ? t.host : null) || // ShadowRoot detected
168
+ (tt(t) ? t.host : null) || // ShadowRoot detected
169
169
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
170
- re(t)
170
+ ae(t)
171
171
  );
172
172
  }
173
- function gt(t) {
174
- return !q(t) || // https://github.com/popperjs/popper-core/issues/837
175
- Q(t).position === "fixed" ? null : t.offsetParent;
173
+ function xt(t) {
174
+ return !V(t) || // https://github.com/popperjs/popper-core/issues/837
175
+ re(t).position === "fixed" ? null : t.offsetParent;
176
176
  }
177
177
  function kr(t) {
178
- var e = /firefox/i.test(Je()), r = /Trident/i.test(Je());
179
- if (r && q(t)) {
180
- var n = Q(t);
178
+ var e = /firefox/i.test(Ze()), r = /Trident/i.test(Ze());
179
+ if (r && V(t)) {
180
+ var n = re(t);
181
181
  if (n.position === "fixed")
182
182
  return null;
183
183
  }
184
- var o = We(t);
185
- for (Ze(o) && (o = o.host); q(o) && ["html", "body"].indexOf(G(o)) < 0; ) {
186
- var a = Q(o);
184
+ var o = Ve(t);
185
+ for (tt(o) && (o = o.host); V(o) && ["html", "body"].indexOf(ee(o)) < 0; ) {
186
+ var a = re(o);
187
187
  if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none")
188
188
  return o;
189
189
  o = o.parentNode;
190
190
  }
191
191
  return null;
192
192
  }
193
- function De(t) {
194
- for (var e = W(t), r = gt(t); r && Ar(r) && Q(r).position === "static"; )
195
- r = gt(r);
196
- return r && (G(r) === "html" || G(r) === "body" && Q(r).position === "static") ? e : r || kr(t) || e;
193
+ function Re(t) {
194
+ for (var e = q(t), r = xt(t); r && Ar(r) && re(r).position === "static"; )
195
+ r = xt(r);
196
+ return r && (ee(r) === "html" || ee(r) === "body" && re(r).position === "static") ? e : r || kr(t) || e;
197
197
  }
198
- function et(t) {
198
+ function nt(t) {
199
199
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
200
200
  }
201
- function we(t, e, r) {
202
- return pe(t, He(e, r));
201
+ function Oe(t, e, r) {
202
+ return fe(t, We(e, r));
203
203
  }
204
204
  function Cr(t, e, r) {
205
- var n = we(t, e, r);
205
+ var n = Oe(t, e, r);
206
206
  return n > r ? r : n;
207
207
  }
208
- function $t() {
208
+ function Ht() {
209
209
  return {
210
210
  top: 0,
211
211
  right: 0,
@@ -213,10 +213,10 @@ function $t() {
213
213
  left: 0
214
214
  };
215
215
  }
216
- function Bt(t) {
217
- return Object.assign({}, $t(), t);
216
+ function Nt(t) {
217
+ return Object.assign({}, Ht(), t);
218
218
  }
219
- function Ht(t, e) {
219
+ function It(t, e) {
220
220
  return e.reduce(function(r, n) {
221
221
  return r[n] = t, r;
222
222
  }, {});
@@ -224,18 +224,18 @@ function Ht(t, e) {
224
224
  var _r = function(e, r) {
225
225
  return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
226
226
  placement: r.placement
227
- })) : e, Bt(typeof e != "number" ? e : Ht(e, Me));
227
+ })) : e, Nt(typeof e != "number" ? e : It(e, De));
228
228
  };
229
229
  function jr(t) {
230
- var e, r = t.state, n = t.name, o = t.options, a = r.elements.arrow, l = r.modifiersData.popperOffsets, i = K(r.placement), s = et(i), p = [B, V].indexOf(i) >= 0, c = p ? "height" : "width";
230
+ var e, r = t.state, n = t.name, o = t.options, a = r.elements.arrow, l = r.modifiersData.popperOffsets, i = Q(r.placement), s = nt(i), f = [N, z].indexOf(i) >= 0, c = f ? "height" : "width";
231
231
  if (!(!a || !l)) {
232
- var m = _r(o.padding, r), h = Qe(a), f = s === "y" ? $ : B, O = s === "y" ? F : V, u = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], x = l[s] - r.rects.reference[s], D = De(a), R = D ? s === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, M = u / 2 - x / 2, d = m[f], y = R - h[c] - m[O], w = R / 2 - h[c] / 2 + M, v = we(d, w, y), A = s;
233
- r.modifiersData[n] = (e = {}, e[A] = v, e.centerOffset = v - w, e);
232
+ var v = _r(o.padding, r), m = rt(a), d = s === "y" ? H : N, x = s === "y" ? U : z, p = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], g = l[s] - r.rects.reference[s], P = Re(a), T = P ? s === "y" ? P.clientHeight || 0 : P.clientWidth || 0 : 0, O = p / 2 - g / 2, u = v[d], b = T - m[c] - v[x], h = T / 2 - m[c] / 2 + O, R = Oe(u, h, b), j = s;
233
+ r.modifiersData[n] = (e = {}, e[j] = R, e.centerOffset = R - h, e);
234
234
  }
235
235
  }
236
236
  function Lr(t) {
237
237
  var e = t.state, r = t.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
238
- o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Yt(e.elements.popper, o) && (e.elements.arrow = o));
238
+ o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Bt(e.elements.popper, o) && (e.elements.arrow = o));
239
239
  }
240
240
  const Sr = {
241
241
  name: "arrow",
@@ -246,7 +246,7 @@ const Sr = {
246
246
  requires: ["popperOffsets"],
247
247
  requiresIfExists: ["preventOverflow"]
248
248
  };
249
- function he(t) {
249
+ function ge(t) {
250
250
  return t.split("-")[1];
251
251
  }
252
252
  var Yr = {
@@ -258,69 +258,69 @@ var Yr = {
258
258
  function $r(t, e) {
259
259
  var r = t.x, n = t.y, o = e.devicePixelRatio || 1;
260
260
  return {
261
- x: ve(r * o) / o || 0,
262
- y: ve(n * o) / o || 0
261
+ x: he(r * o) / o || 0,
262
+ y: he(n * o) / o || 0
263
263
  };
264
264
  }
265
- function bt(t) {
266
- var e, r = t.popper, n = t.popperRect, o = t.placement, a = t.variation, l = t.offsets, i = t.position, s = t.gpuAcceleration, p = t.adaptive, c = t.roundOffsets, m = t.isFixed, h = l.x, f = h === void 0 ? 0 : h, O = l.y, u = O === void 0 ? 0 : O, x = typeof c == "function" ? c({
267
- x: f,
268
- y: u
265
+ function wt(t) {
266
+ var e, r = t.popper, n = t.popperRect, o = t.placement, a = t.variation, l = t.offsets, i = t.position, s = t.gpuAcceleration, f = t.adaptive, c = t.roundOffsets, v = t.isFixed, m = l.x, d = m === void 0 ? 0 : m, x = l.y, p = x === void 0 ? 0 : x, g = typeof c == "function" ? c({
267
+ x: d,
268
+ y: p
269
269
  }) : {
270
- x: f,
271
- y: u
270
+ x: d,
271
+ y: p
272
272
  };
273
- f = x.x, u = x.y;
274
- var D = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), M = B, d = $, y = window;
275
- if (p) {
276
- var w = De(r), v = "clientHeight", A = "clientWidth";
277
- if (w === W(r) && (w = re(r), Q(w).position !== "static" && i === "absolute" && (v = "scrollHeight", A = "scrollWidth")), w = w, o === $ || (o === B || o === V) && a === Pe) {
278
- d = F;
279
- var g = m && w === y && y.visualViewport ? y.visualViewport.height : (
273
+ d = g.x, p = g.y;
274
+ var P = l.hasOwnProperty("x"), T = l.hasOwnProperty("y"), O = N, u = H, b = window;
275
+ if (f) {
276
+ var h = Re(r), R = "clientHeight", j = "clientWidth";
277
+ if (h === q(r) && (h = ae(r), re(h).position !== "static" && i === "absolute" && (R = "scrollHeight", j = "scrollWidth")), h = h, o === H || (o === N || o === z) && a === Ee) {
278
+ u = U;
279
+ var M = v && h === b && b.visualViewport ? b.visualViewport.height : (
280
280
  // $FlowFixMe[prop-missing]
281
- w[v]
281
+ h[R]
282
282
  );
283
- u -= g - n.height, u *= s ? 1 : -1;
283
+ p -= M - n.height, p *= s ? 1 : -1;
284
284
  }
285
- if (o === B || (o === $ || o === F) && a === Pe) {
286
- M = V;
287
- var P = m && w === y && y.visualViewport ? y.visualViewport.width : (
285
+ if (o === N || (o === H || o === U) && a === Ee) {
286
+ O = z;
287
+ var E = v && h === b && b.visualViewport ? b.visualViewport.width : (
288
288
  // $FlowFixMe[prop-missing]
289
- w[A]
289
+ h[j]
290
290
  );
291
- f -= P - n.width, f *= s ? 1 : -1;
291
+ d -= E - n.width, d *= s ? 1 : -1;
292
292
  }
293
293
  }
294
- var E = Object.assign({
294
+ var C = Object.assign({
295
295
  position: i
296
- }, p && Yr), k = c === !0 ? $r({
297
- x: f,
298
- y: u
299
- }, W(r)) : {
300
- x: f,
301
- y: u
296
+ }, f && Yr), D = c === !0 ? $r({
297
+ x: d,
298
+ y: p
299
+ }, q(r)) : {
300
+ x: d,
301
+ y: p
302
302
  };
303
- if (f = k.x, u = k.y, s) {
304
- var j;
305
- return Object.assign({}, E, (j = {}, j[d] = R ? "0" : "", j[M] = D ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + f + "px, " + u + "px)" : "translate3d(" + f + "px, " + u + "px, 0)", j));
303
+ if (d = D.x, p = D.y, s) {
304
+ var _;
305
+ return Object.assign({}, C, (_ = {}, _[u] = T ? "0" : "", _[O] = P ? "0" : "", _.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + p + "px)" : "translate3d(" + d + "px, " + p + "px, 0)", _));
306
306
  }
307
- return Object.assign({}, E, (e = {}, e[d] = R ? u + "px" : "", e[M] = D ? f + "px" : "", e.transform = "", e));
307
+ return Object.assign({}, C, (e = {}, e[u] = T ? p + "px" : "", e[O] = P ? d + "px" : "", e.transform = "", e));
308
308
  }
309
309
  function Br(t) {
310
- var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, l = a === void 0 ? !0 : a, i = r.roundOffsets, s = i === void 0 ? !0 : i, p = {
311
- placement: K(e.placement),
312
- variation: he(e.placement),
310
+ var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, l = a === void 0 ? !0 : a, i = r.roundOffsets, s = i === void 0 ? !0 : i, f = {
311
+ placement: Q(e.placement),
312
+ variation: ge(e.placement),
313
313
  popper: e.elements.popper,
314
314
  popperRect: e.rects.popper,
315
315
  gpuAcceleration: o,
316
316
  isFixed: e.options.strategy === "fixed"
317
317
  };
318
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, bt(Object.assign({}, p, {
318
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, wt(Object.assign({}, f, {
319
319
  offsets: e.modifiersData.popperOffsets,
320
320
  position: e.options.strategy,
321
321
  adaptive: l,
322
322
  roundOffsets: s
323
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, bt(Object.assign({}, p, {
323
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, wt(Object.assign({}, f, {
324
324
  offsets: e.modifiersData.arrow,
325
325
  position: "absolute",
326
326
  adaptive: !1,
@@ -336,17 +336,17 @@ const Hr = {
336
336
  fn: Br,
337
337
  data: {}
338
338
  };
339
- var ke = {
339
+ var je = {
340
340
  passive: !0
341
341
  };
342
342
  function Nr(t) {
343
- var e = t.state, r = t.instance, n = t.options, o = n.scroll, a = o === void 0 ? !0 : o, l = n.resize, i = l === void 0 ? !0 : l, s = W(e.elements.popper), p = [].concat(e.scrollParents.reference, e.scrollParents.popper);
344
- return a && p.forEach(function(c) {
345
- c.addEventListener("scroll", r.update, ke);
346
- }), i && s.addEventListener("resize", r.update, ke), function() {
347
- a && p.forEach(function(c) {
348
- c.removeEventListener("scroll", r.update, ke);
349
- }), i && s.removeEventListener("resize", r.update, ke);
343
+ var e = t.state, r = t.instance, n = t.options, o = n.scroll, a = o === void 0 ? !0 : o, l = n.resize, i = l === void 0 ? !0 : l, s = q(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
344
+ return a && f.forEach(function(c) {
345
+ c.addEventListener("scroll", r.update, je);
346
+ }), i && s.addEventListener("resize", r.update, je), function() {
347
+ a && f.forEach(function(c) {
348
+ c.removeEventListener("scroll", r.update, je);
349
+ }), i && s.removeEventListener("resize", r.update, je);
350
350
  };
351
351
  }
352
352
  const Ir = {
@@ -364,7 +364,7 @@ var Wr = {
364
364
  bottom: "top",
365
365
  top: "bottom"
366
366
  };
367
- function Ce(t) {
367
+ function Le(t) {
368
368
  return t.replace(/left|right|bottom|top/g, function(e) {
369
369
  return Wr[e];
370
370
  });
@@ -373,61 +373,61 @@ var qr = {
373
373
  start: "end",
374
374
  end: "start"
375
375
  };
376
- function xt(t) {
376
+ function Ot(t) {
377
377
  return t.replace(/start|end/g, function(e) {
378
378
  return qr[e];
379
379
  });
380
380
  }
381
- function tt(t) {
382
- var e = W(t), r = e.pageXOffset, n = e.pageYOffset;
381
+ function ot(t) {
382
+ var e = q(t), r = e.pageXOffset, n = e.pageYOffset;
383
383
  return {
384
384
  scrollLeft: r,
385
385
  scrollTop: n
386
386
  };
387
387
  }
388
- function rt(t) {
389
- return me(re(t)).left + tt(t).scrollLeft;
388
+ function at(t) {
389
+ return ye(ae(t)).left + ot(t).scrollLeft;
390
390
  }
391
391
  function Fr(t, e) {
392
- var r = W(t), n = re(t), o = r.visualViewport, a = n.clientWidth, l = n.clientHeight, i = 0, s = 0;
392
+ var r = q(t), n = ae(t), o = r.visualViewport, a = n.clientWidth, l = n.clientHeight, i = 0, s = 0;
393
393
  if (o) {
394
394
  a = o.width, l = o.height;
395
- var p = St();
396
- (p || !p && e === "fixed") && (i = o.offsetLeft, s = o.offsetTop);
395
+ var f = $t();
396
+ (f || !f && e === "fixed") && (i = o.offsetLeft, s = o.offsetTop);
397
397
  }
398
398
  return {
399
399
  width: a,
400
400
  height: l,
401
- x: i + rt(t),
401
+ x: i + at(t),
402
402
  y: s
403
403
  };
404
404
  }
405
405
  function Vr(t) {
406
- var e, r = re(t), n = tt(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = pe(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = pe(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -n.scrollLeft + rt(t), s = -n.scrollTop;
407
- return Q(o || r).direction === "rtl" && (i += pe(r.clientWidth, o ? o.clientWidth : 0) - a), {
406
+ var e, r = ae(t), n = ot(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = fe(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = fe(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -n.scrollLeft + at(t), s = -n.scrollTop;
407
+ return re(o || r).direction === "rtl" && (i += fe(r.clientWidth, o ? o.clientWidth : 0) - a), {
408
408
  width: a,
409
409
  height: l,
410
410
  x: i,
411
411
  y: s
412
412
  };
413
413
  }
414
- function nt(t) {
415
- var e = Q(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
414
+ function it(t) {
415
+ var e = re(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
416
416
  return /auto|scroll|overlay|hidden/.test(r + o + n);
417
417
  }
418
- function Nt(t) {
419
- return ["html", "body", "#document"].indexOf(G(t)) >= 0 ? t.ownerDocument.body : q(t) && nt(t) ? t : Nt(We(t));
418
+ function Wt(t) {
419
+ return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body : V(t) && it(t) ? t : Wt(Ve(t));
420
420
  }
421
- function Oe(t, e) {
421
+ function Pe(t, e) {
422
422
  var r;
423
423
  e === void 0 && (e = []);
424
- var n = Nt(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = W(n), l = o ? [a].concat(a.visualViewport || [], nt(n) ? n : []) : n, i = e.concat(l);
424
+ var n = Wt(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = q(n), l = o ? [a].concat(a.visualViewport || [], it(n) ? n : []) : n, i = e.concat(l);
425
425
  return o ? i : (
426
426
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
427
- i.concat(Oe(We(l)))
427
+ i.concat(Pe(Ve(l)))
428
428
  );
429
429
  }
430
- function Ke(t) {
430
+ function Qe(t) {
431
431
  return Object.assign({}, t, {
432
432
  left: t.x,
433
433
  top: t.y,
@@ -436,47 +436,47 @@ function Ke(t) {
436
436
  });
437
437
  }
438
438
  function Ur(t, e) {
439
- var r = me(t, !1, e === "fixed");
439
+ var r = ye(t, !1, e === "fixed");
440
440
  return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
441
441
  }
442
- function wt(t, e, r) {
443
- return e === jt ? Ke(Fr(t, r)) : fe(e) ? Ur(e, r) : Ke(Vr(re(t)));
442
+ function Pt(t, e, r) {
443
+ return e === St ? Qe(Fr(t, r)) : pe(e) ? Ur(e, r) : Qe(Vr(ae(t)));
444
444
  }
445
445
  function zr(t) {
446
- var e = Oe(We(t)), r = ["absolute", "fixed"].indexOf(Q(t).position) >= 0, n = r && q(t) ? De(t) : t;
447
- return fe(n) ? e.filter(function(o) {
448
- return fe(o) && Yt(o, n) && G(o) !== "body";
446
+ var e = Pe(Ve(t)), r = ["absolute", "fixed"].indexOf(re(t).position) >= 0, n = r && V(t) ? Re(t) : t;
447
+ return pe(n) ? e.filter(function(o) {
448
+ return pe(o) && Bt(o, n) && ee(o) !== "body";
449
449
  }) : [];
450
450
  }
451
451
  function Xr(t, e, r, n) {
452
- var o = e === "clippingParents" ? zr(t) : [].concat(e), a = [].concat(o, [r]), l = a[0], i = a.reduce(function(s, p) {
453
- var c = wt(t, p, n);
454
- return s.top = pe(c.top, s.top), s.right = He(c.right, s.right), s.bottom = He(c.bottom, s.bottom), s.left = pe(c.left, s.left), s;
455
- }, wt(t, l, n));
452
+ var o = e === "clippingParents" ? zr(t) : [].concat(e), a = [].concat(o, [r]), l = a[0], i = a.reduce(function(s, f) {
453
+ var c = Pt(t, f, n);
454
+ return s.top = fe(c.top, s.top), s.right = We(c.right, s.right), s.bottom = We(c.bottom, s.bottom), s.left = fe(c.left, s.left), s;
455
+ }, Pt(t, l, n));
456
456
  return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
457
457
  }
458
- function It(t) {
459
- var e = t.reference, r = t.element, n = t.placement, o = n ? K(n) : null, a = n ? he(n) : null, l = e.x + e.width / 2 - r.width / 2, i = e.y + e.height / 2 - r.height / 2, s;
458
+ function qt(t) {
459
+ var e = t.reference, r = t.element, n = t.placement, o = n ? Q(n) : null, a = n ? ge(n) : null, l = e.x + e.width / 2 - r.width / 2, i = e.y + e.height / 2 - r.height / 2, s;
460
460
  switch (o) {
461
- case $:
461
+ case H:
462
462
  s = {
463
463
  x: l,
464
464
  y: e.y - r.height
465
465
  };
466
466
  break;
467
- case F:
467
+ case U:
468
468
  s = {
469
469
  x: l,
470
470
  y: e.y + e.height
471
471
  };
472
472
  break;
473
- case V:
473
+ case z:
474
474
  s = {
475
475
  x: e.x + e.width,
476
476
  y: i
477
477
  };
478
478
  break;
479
- case B:
479
+ case N:
480
480
  s = {
481
481
  x: e.x - r.width,
482
482
  y: i
@@ -488,113 +488,113 @@ function It(t) {
488
488
  y: e.y
489
489
  };
490
490
  }
491
- var p = o ? et(o) : null;
492
- if (p != null) {
493
- var c = p === "y" ? "height" : "width";
491
+ var f = o ? nt(o) : null;
492
+ if (f != null) {
493
+ var c = f === "y" ? "height" : "width";
494
494
  switch (a) {
495
- case de:
496
- s[p] = s[p] - (e[c] / 2 - r[c] / 2);
495
+ case me:
496
+ s[f] = s[f] - (e[c] / 2 - r[c] / 2);
497
497
  break;
498
- case Pe:
499
- s[p] = s[p] + (e[c] / 2 - r[c] / 2);
498
+ case Ee:
499
+ s[f] = s[f] + (e[c] / 2 - r[c] / 2);
500
500
  break;
501
501
  }
502
502
  }
503
503
  return s;
504
504
  }
505
- function Ee(t, e) {
505
+ function Me(t, e) {
506
506
  e === void 0 && (e = {});
507
- var r = e, n = r.placement, o = n === void 0 ? t.placement : n, a = r.strategy, l = a === void 0 ? t.strategy : a, i = r.boundary, s = i === void 0 ? vr : i, p = r.rootBoundary, c = p === void 0 ? jt : p, m = r.elementContext, h = m === void 0 ? xe : m, f = r.altBoundary, O = f === void 0 ? !1 : f, u = r.padding, x = u === void 0 ? 0 : u, D = Bt(typeof x != "number" ? x : Ht(x, Me)), R = h === xe ? mr : xe, M = t.rects.popper, d = t.elements[O ? R : h], y = Xr(fe(d) ? d : d.contextElement || re(t.elements.popper), s, c, l), w = me(t.elements.reference), v = It({
508
- reference: w,
509
- element: M,
507
+ var r = e, n = r.placement, o = n === void 0 ? t.placement : n, a = r.strategy, l = a === void 0 ? t.strategy : a, i = r.boundary, s = i === void 0 ? vr : i, f = r.rootBoundary, c = f === void 0 ? St : f, v = r.elementContext, m = v === void 0 ? we : v, d = r.altBoundary, x = d === void 0 ? !1 : d, p = r.padding, g = p === void 0 ? 0 : p, P = Nt(typeof g != "number" ? g : It(g, De)), T = m === we ? mr : we, O = t.rects.popper, u = t.elements[x ? T : m], b = Xr(pe(u) ? u : u.contextElement || ae(t.elements.popper), s, c, l), h = ye(t.elements.reference), R = qt({
508
+ reference: h,
509
+ element: O,
510
510
  placement: o
511
- }), A = Ke(Object.assign({}, M, v)), g = h === xe ? A : w, P = {
512
- top: y.top - g.top + D.top,
513
- bottom: g.bottom - y.bottom + D.bottom,
514
- left: y.left - g.left + D.left,
515
- right: g.right - y.right + D.right
516
- }, E = t.modifiersData.offset;
517
- if (h === xe && E) {
518
- var k = E[o];
519
- Object.keys(P).forEach(function(j) {
520
- var H = [V, F].indexOf(j) >= 0 ? 1 : -1, C = [$, F].indexOf(j) >= 0 ? "y" : "x";
521
- P[j] += k[C] * H;
511
+ }), j = Qe(Object.assign({}, O, R)), M = m === we ? j : h, E = {
512
+ top: b.top - M.top + P.top,
513
+ bottom: M.bottom - b.bottom + P.bottom,
514
+ left: b.left - M.left + P.left,
515
+ right: M.right - b.right + P.right
516
+ }, C = t.modifiersData.offset;
517
+ if (m === we && C) {
518
+ var D = C[o];
519
+ Object.keys(E).forEach(function(_) {
520
+ var L = [z, U].indexOf(_) >= 0 ? 1 : -1, S = [H, U].indexOf(_) >= 0 ? "y" : "x";
521
+ E[_] += D[S] * L;
522
522
  });
523
523
  }
524
- return P;
524
+ return E;
525
525
  }
526
526
  function Jr(t, e) {
527
527
  e === void 0 && (e = {});
528
- var r = e, n = r.placement, o = r.boundary, a = r.rootBoundary, l = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, p = s === void 0 ? Lt : s, c = he(n), m = c ? i ? yt : yt.filter(function(O) {
529
- return he(O) === c;
530
- }) : Me, h = m.filter(function(O) {
531
- return p.indexOf(O) >= 0;
528
+ var r = e, n = r.placement, o = r.boundary, a = r.rootBoundary, l = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? Yt : s, c = ge(n), v = c ? i ? bt : bt.filter(function(x) {
529
+ return ge(x) === c;
530
+ }) : De, m = v.filter(function(x) {
531
+ return f.indexOf(x) >= 0;
532
532
  });
533
- h.length === 0 && (h = m);
534
- var f = h.reduce(function(O, u) {
535
- return O[u] = Ee(t, {
536
- placement: u,
533
+ m.length === 0 && (m = v);
534
+ var d = m.reduce(function(x, p) {
535
+ return x[p] = Me(t, {
536
+ placement: p,
537
537
  boundary: o,
538
538
  rootBoundary: a,
539
539
  padding: l
540
- })[K(u)], O;
540
+ })[Q(p)], x;
541
541
  }, {});
542
- return Object.keys(f).sort(function(O, u) {
543
- return f[O] - f[u];
542
+ return Object.keys(d).sort(function(x, p) {
543
+ return d[x] - d[p];
544
544
  });
545
545
  }
546
546
  function Kr(t) {
547
- if (K(t) === Ge)
547
+ if (Q(t) === et)
548
548
  return [];
549
- var e = Ce(t);
550
- return [xt(t), e, xt(e)];
549
+ var e = Le(t);
550
+ return [Ot(t), e, Ot(e)];
551
551
  }
552
552
  function Gr(t) {
553
553
  var e = t.state, r = t.options, n = t.name;
554
554
  if (!e.modifiersData[n]._skip) {
555
- for (var o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !0 : l, s = r.fallbackPlacements, p = r.padding, c = r.boundary, m = r.rootBoundary, h = r.altBoundary, f = r.flipVariations, O = f === void 0 ? !0 : f, u = r.allowedAutoPlacements, x = e.options.placement, D = K(x), R = D === x, M = s || (R || !O ? [Ce(x)] : Kr(x)), d = [x].concat(M).reduce(function(N, U) {
556
- return N.concat(K(U) === Ge ? Jr(e, {
557
- placement: U,
555
+ for (var o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !0 : l, s = r.fallbackPlacements, f = r.padding, c = r.boundary, v = r.rootBoundary, m = r.altBoundary, d = r.flipVariations, x = d === void 0 ? !0 : d, p = r.allowedAutoPlacements, g = e.options.placement, P = Q(g), T = P === g, O = s || (T || !x ? [Le(g)] : Kr(g)), u = [g].concat(O).reduce(function(te, F) {
556
+ return te.concat(Q(F) === et ? Jr(e, {
557
+ placement: F,
558
558
  boundary: c,
559
- rootBoundary: m,
560
- padding: p,
561
- flipVariations: O,
562
- allowedAutoPlacements: u
563
- }) : U);
564
- }, []), y = e.rects.reference, w = e.rects.popper, v = /* @__PURE__ */ new Map(), A = !0, g = d[0], P = 0; P < d.length; P++) {
565
- var E = d[P], k = K(E), j = he(E) === de, H = [$, F].indexOf(k) >= 0, C = H ? "width" : "height", _ = Ee(e, {
566
- placement: E,
559
+ rootBoundary: v,
560
+ padding: f,
561
+ flipVariations: x,
562
+ allowedAutoPlacements: p
563
+ }) : F);
564
+ }, []), b = e.rects.reference, h = e.rects.popper, R = /* @__PURE__ */ new Map(), j = !0, M = u[0], E = 0; E < u.length; E++) {
565
+ var C = u[E], D = Q(C), _ = ge(C) === me, L = [H, U].indexOf(D) >= 0, S = L ? "width" : "height", w = Me(e, {
566
+ placement: C,
567
567
  boundary: c,
568
- rootBoundary: m,
569
- altBoundary: h,
570
- padding: p
571
- }), S = H ? j ? V : B : j ? F : $;
572
- y[C] > w[C] && (S = Ce(S));
573
- var L = Ce(S), X = [];
574
- if (a && X.push(_[k] <= 0), i && X.push(_[S] <= 0, _[L] <= 0), X.every(function(N) {
575
- return N;
568
+ rootBoundary: v,
569
+ altBoundary: m,
570
+ padding: f
571
+ }), k = L ? _ ? z : N : _ ? U : H;
572
+ b[S] > h[S] && (k = Le(k));
573
+ var $ = Le(k), X = [];
574
+ if (a && X.push(w[D] <= 0), i && X.push(w[k] <= 0, w[$] <= 0), X.every(function(te) {
575
+ return te;
576
576
  })) {
577
- g = E, A = !1;
577
+ M = C, j = !1;
578
578
  break;
579
579
  }
580
- v.set(E, X);
580
+ R.set(C, X);
581
581
  }
582
- if (A)
583
- for (var ee = O ? 3 : 1, ye = function(U) {
584
- var te = d.find(function(ae) {
585
- var Z = v.get(ae);
586
- if (Z)
587
- return Z.slice(0, U).every(function(ie) {
588
- return ie;
582
+ if (j)
583
+ for (var Y = x ? 3 : 1, ne = function(F) {
584
+ var se = u.find(function(ue) {
585
+ var K = R.get(ue);
586
+ if (K)
587
+ return K.slice(0, F).every(function(G) {
588
+ return G;
589
589
  });
590
590
  });
591
- if (te)
592
- return g = te, "break";
593
- }, ne = ee; ne > 0; ne--) {
594
- var oe = ye(ne);
591
+ if (se)
592
+ return M = se, "break";
593
+ }, ie = Y; ie > 0; ie--) {
594
+ var oe = ne(ie);
595
595
  if (oe === "break") break;
596
596
  }
597
- e.placement !== g && (e.modifiersData[n]._skip = !0, e.placement = g, e.reset = !0);
597
+ e.placement !== M && (e.modifiersData[n]._skip = !0, e.placement = M, e.reset = !0);
598
598
  }
599
599
  }
600
600
  const Zr = {
@@ -607,7 +607,7 @@ const Zr = {
607
607
  _skip: !1
608
608
  }
609
609
  };
610
- function Ot(t, e, r) {
610
+ function Et(t, e, r) {
611
611
  return r === void 0 && (r = {
612
612
  x: 0,
613
613
  y: 0
@@ -618,25 +618,25 @@ function Ot(t, e, r) {
618
618
  left: t.left - e.width - r.x
619
619
  };
620
620
  }
621
- function Pt(t) {
622
- return [$, V, F, B].some(function(e) {
621
+ function Mt(t) {
622
+ return [H, z, U, N].some(function(e) {
623
623
  return t[e] >= 0;
624
624
  });
625
625
  }
626
626
  function Qr(t) {
627
- var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, l = Ee(e, {
627
+ var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, l = Me(e, {
628
628
  elementContext: "reference"
629
- }), i = Ee(e, {
629
+ }), i = Me(e, {
630
630
  altBoundary: !0
631
- }), s = Ot(l, n), p = Ot(i, o, a), c = Pt(s), m = Pt(p);
631
+ }), s = Et(l, n), f = Et(i, o, a), c = Mt(s), v = Mt(f);
632
632
  e.modifiersData[r] = {
633
633
  referenceClippingOffsets: s,
634
- popperEscapeOffsets: p,
634
+ popperEscapeOffsets: f,
635
635
  isReferenceHidden: c,
636
- hasPopperEscaped: m
636
+ hasPopperEscaped: v
637
637
  }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
638
638
  "data-popper-reference-hidden": c,
639
- "data-popper-escaped": m
639
+ "data-popper-escaped": v
640
640
  });
641
641
  }
642
642
  const en = {
@@ -647,10 +647,10 @@ const en = {
647
647
  fn: Qr
648
648
  };
649
649
  function tn(t, e, r) {
650
- var n = K(t), o = [B, $].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
650
+ var n = Q(t), o = [N, H].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
651
651
  placement: t
652
652
  })) : r, l = a[0], i = a[1];
653
- return l = l || 0, i = (i || 0) * o, [B, V].indexOf(n) >= 0 ? {
653
+ return l = l || 0, i = (i || 0) * o, [N, z].indexOf(n) >= 0 ? {
654
654
  x: i,
655
655
  y: l
656
656
  } : {
@@ -659,10 +659,10 @@ function tn(t, e, r) {
659
659
  };
660
660
  }
661
661
  function rn(t) {
662
- var e = t.state, r = t.options, n = t.name, o = r.offset, a = o === void 0 ? [0, 0] : o, l = Lt.reduce(function(c, m) {
663
- return c[m] = tn(m, e.rects, a), c;
664
- }, {}), i = l[e.placement], s = i.x, p = i.y;
665
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += p), e.modifiersData[n] = l;
662
+ var e = t.state, r = t.options, n = t.name, o = r.offset, a = o === void 0 ? [0, 0] : o, l = Yt.reduce(function(c, v) {
663
+ return c[v] = tn(v, e.rects, a), c;
664
+ }, {}), i = l[e.placement], s = i.x, f = i.y;
665
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += f), e.modifiersData[n] = l;
666
666
  }
667
667
  const nn = {
668
668
  name: "offset",
@@ -673,7 +673,7 @@ const nn = {
673
673
  };
674
674
  function on(t) {
675
675
  var e = t.state, r = t.name;
676
- e.modifiersData[r] = It({
676
+ e.modifiersData[r] = qt({
677
677
  reference: e.rects.reference,
678
678
  element: e.rects.popper,
679
679
  placement: e.placement
@@ -690,36 +690,36 @@ function sn(t) {
690
690
  return t === "x" ? "y" : "x";
691
691
  }
692
692
  function ln(t) {
693
- var e = t.state, r = t.options, n = t.name, o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !1 : l, s = r.boundary, p = r.rootBoundary, c = r.altBoundary, m = r.padding, h = r.tether, f = h === void 0 ? !0 : h, O = r.tetherOffset, u = O === void 0 ? 0 : O, x = Ee(e, {
693
+ var e = t.state, r = t.options, n = t.name, o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !1 : l, s = r.boundary, f = r.rootBoundary, c = r.altBoundary, v = r.padding, m = r.tether, d = m === void 0 ? !0 : m, x = r.tetherOffset, p = x === void 0 ? 0 : x, g = Me(e, {
694
694
  boundary: s,
695
- rootBoundary: p,
696
- padding: m,
695
+ rootBoundary: f,
696
+ padding: v,
697
697
  altBoundary: c
698
- }), D = K(e.placement), R = he(e.placement), M = !R, d = et(D), y = sn(d), w = e.modifiersData.popperOffsets, v = e.rects.reference, A = e.rects.popper, g = typeof u == "function" ? u(Object.assign({}, e.rects, {
698
+ }), P = Q(e.placement), T = ge(e.placement), O = !T, u = nt(P), b = sn(u), h = e.modifiersData.popperOffsets, R = e.rects.reference, j = e.rects.popper, M = typeof p == "function" ? p(Object.assign({}, e.rects, {
699
699
  placement: e.placement
700
- })) : u, P = typeof g == "number" ? {
701
- mainAxis: g,
702
- altAxis: g
700
+ })) : p, E = typeof M == "number" ? {
701
+ mainAxis: M,
702
+ altAxis: M
703
703
  } : Object.assign({
704
704
  mainAxis: 0,
705
705
  altAxis: 0
706
- }, g), E = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, k = {
706
+ }, M), C = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, D = {
707
707
  x: 0,
708
708
  y: 0
709
709
  };
710
- if (w) {
710
+ if (h) {
711
711
  if (a) {
712
- var j, H = d === "y" ? $ : B, C = d === "y" ? F : V, _ = d === "y" ? "height" : "width", S = w[d], L = S + x[H], X = S - x[C], ee = f ? -A[_] / 2 : 0, ye = R === de ? v[_] : A[_], ne = R === de ? -A[_] : -v[_], oe = e.elements.arrow, N = f && oe ? Qe(oe) : {
712
+ var _, L = u === "y" ? H : N, S = u === "y" ? U : z, w = u === "y" ? "height" : "width", k = h[u], $ = k + g[L], X = k - g[S], Y = d ? -j[w] / 2 : 0, ne = T === me ? R[w] : j[w], ie = T === me ? -j[w] : -R[w], oe = e.elements.arrow, te = d && oe ? rt(oe) : {
713
713
  width: 0,
714
714
  height: 0
715
- }, U = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $t(), te = U[H], ae = U[C], Z = we(0, v[_], N[_]), ie = M ? v[_] / 2 - ee - Z - te - P.mainAxis : ye - Z - te - P.mainAxis, Fe = M ? -v[_] / 2 + ee + Z + ae + P.mainAxis : ne + Z + ae + P.mainAxis, ge = e.elements.arrow && De(e.elements.arrow), Re = ge ? d === "y" ? ge.clientTop || 0 : ge.clientLeft || 0 : 0, T = (j = E == null ? void 0 : E[d]) != null ? j : 0, I = S + ie - T - Re, se = S + Fe - T, be = we(f ? He(L, I) : L, S, f ? pe(X, se) : X);
716
- w[d] = be, k[d] = be - S;
715
+ }, F = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ht(), se = F[L], ue = F[S], K = Oe(0, R[w], te[w]), G = O ? R[w] / 2 - Y - K - se - E.mainAxis : ne - K - se - E.mainAxis, Te = O ? -R[w] / 2 + Y + K + ue + E.mainAxis : ie + K + ue + E.mainAxis, de = e.elements.arrow && Re(e.elements.arrow), Ae = de ? u === "y" ? de.clientTop || 0 : de.clientLeft || 0 : 0, ke = (_ = C == null ? void 0 : C[u]) != null ? _ : 0, be = k + G - ke - Ae, ze = k + Te - ke, Ce = Oe(d ? We($, be) : $, k, d ? fe(X, ze) : X);
716
+ h[u] = Ce, D[u] = Ce - k;
717
717
  }
718
718
  if (i) {
719
- var ot, Ft = d === "x" ? $ : B, Vt = d === "x" ? F : V, le = w[y], Te = y === "y" ? "height" : "width", at = le + x[Ft], it = le - x[Vt], Ve = [$, B].indexOf(D) !== -1, st = (ot = E == null ? void 0 : E[y]) != null ? ot : 0, lt = Ve ? at : le - v[Te] - A[Te] - st + P.altAxis, ct = Ve ? le + v[Te] + A[Te] - st - P.altAxis : it, pt = f && Ve ? Cr(lt, le, ct) : we(f ? lt : at, le, f ? ct : it);
720
- w[y] = pt, k[y] = pt - le;
719
+ var xe, A = u === "x" ? H : N, I = u === "x" ? U : z, W = h[b], le = b === "y" ? "height" : "width", st = W + g[A], lt = W - g[I], Xe = [H, N].indexOf(P) !== -1, ct = (xe = C == null ? void 0 : C[b]) != null ? xe : 0, ft = Xe ? st : W - R[le] - j[le] - ct + E.altAxis, pt = Xe ? W + R[le] + j[le] - ct - E.altAxis : lt, ut = d && Xe ? Cr(ft, W, pt) : Oe(d ? ft : st, W, d ? pt : lt);
720
+ h[b] = ut, D[b] = ut - W;
721
721
  }
722
- e.modifiersData[n] = k;
722
+ e.modifiersData[n] = D;
723
723
  }
724
724
  }
725
725
  const cn = {
@@ -729,30 +729,30 @@ const cn = {
729
729
  fn: ln,
730
730
  requiresIfExists: ["offset"]
731
731
  };
732
- function pn(t) {
732
+ function fn(t) {
733
733
  return {
734
734
  scrollLeft: t.scrollLeft,
735
735
  scrollTop: t.scrollTop
736
736
  };
737
737
  }
738
- function fn(t) {
739
- return t === W(t) || !q(t) ? tt(t) : pn(t);
738
+ function pn(t) {
739
+ return t === q(t) || !V(t) ? ot(t) : fn(t);
740
740
  }
741
741
  function un(t) {
742
- var e = t.getBoundingClientRect(), r = ve(e.width) / t.offsetWidth || 1, n = ve(e.height) / t.offsetHeight || 1;
742
+ var e = t.getBoundingClientRect(), r = he(e.width) / t.offsetWidth || 1, n = he(e.height) / t.offsetHeight || 1;
743
743
  return r !== 1 || n !== 1;
744
744
  }
745
745
  function dn(t, e, r) {
746
746
  r === void 0 && (r = !1);
747
- var n = q(e), o = q(e) && un(e), a = re(e), l = me(t, o, r), i = {
747
+ var n = V(e), o = V(e) && un(e), a = ae(e), l = ye(t, o, r), i = {
748
748
  scrollLeft: 0,
749
749
  scrollTop: 0
750
750
  }, s = {
751
751
  x: 0,
752
752
  y: 0
753
753
  };
754
- return (n || !n && !r) && ((G(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
755
- nt(a)) && (i = fn(e)), q(e) ? (s = me(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = rt(a))), {
754
+ return (n || !n && !r) && ((ee(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
755
+ it(a)) && (i = pn(e)), V(e) ? (s = ye(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = at(a))), {
756
756
  x: l.left + i.scrollLeft - s.x,
757
757
  y: l.top + i.scrollTop - s.y,
758
758
  width: l.width,
@@ -808,12 +808,12 @@ function yn(t) {
808
808
  return e[r];
809
809
  });
810
810
  }
811
- var Et = {
811
+ var Dt = {
812
812
  placement: "bottom",
813
813
  modifiers: [],
814
814
  strategy: "absolute"
815
815
  };
816
- function Mt() {
816
+ function Rt() {
817
817
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
818
818
  e[r] = arguments[r];
819
819
  return !e.some(function(n) {
@@ -822,13 +822,13 @@ function Mt() {
822
822
  }
823
823
  function gn(t) {
824
824
  t === void 0 && (t = {});
825
- var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, a = o === void 0 ? Et : o;
826
- return function(i, s, p) {
827
- p === void 0 && (p = a);
825
+ var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, a = o === void 0 ? Dt : o;
826
+ return function(i, s, f) {
827
+ f === void 0 && (f = a);
828
828
  var c = {
829
829
  placement: "bottom",
830
830
  orderedModifiers: [],
831
- options: Object.assign({}, Et, a),
831
+ options: Object.assign({}, Dt, a),
832
832
  modifiersData: {},
833
833
  elements: {
834
834
  reference: i,
@@ -836,18 +836,18 @@ function gn(t) {
836
836
  },
837
837
  attributes: {},
838
838
  styles: {}
839
- }, m = [], h = !1, f = {
839
+ }, v = [], m = !1, d = {
840
840
  state: c,
841
- setOptions: function(D) {
842
- var R = typeof D == "function" ? D(c.options) : D;
843
- u(), c.options = Object.assign({}, a, c.options, R), c.scrollParents = {
844
- reference: fe(i) ? Oe(i) : i.contextElement ? Oe(i.contextElement) : [],
845
- popper: Oe(s)
841
+ setOptions: function(P) {
842
+ var T = typeof P == "function" ? P(c.options) : P;
843
+ p(), c.options = Object.assign({}, a, c.options, T), c.scrollParents = {
844
+ reference: pe(i) ? Pe(i) : i.contextElement ? Pe(i.contextElement) : [],
845
+ popper: Pe(s)
846
846
  };
847
- var M = mn(yn([].concat(n, c.options.modifiers)));
848
- return c.orderedModifiers = M.filter(function(d) {
849
- return d.enabled;
850
- }), O(), f.update();
847
+ var O = mn(yn([].concat(n, c.options.modifiers)));
848
+ return c.orderedModifiers = O.filter(function(u) {
849
+ return u.enabled;
850
+ }), x(), d.update();
851
851
  },
852
852
  // Sync update – it will always be executed, even if not necessary. This
853
853
  // is useful for low frequency updates where sync behavior simplifies the
@@ -855,26 +855,26 @@ function gn(t) {
855
855
  // For high frequency updates (e.g. `resize` and `scroll` events), always
856
856
  // prefer the async Popper#update method
857
857
  forceUpdate: function() {
858
- if (!h) {
859
- var D = c.elements, R = D.reference, M = D.popper;
860
- if (Mt(R, M)) {
858
+ if (!m) {
859
+ var P = c.elements, T = P.reference, O = P.popper;
860
+ if (Rt(T, O)) {
861
861
  c.rects = {
862
- reference: dn(R, De(M), c.options.strategy === "fixed"),
863
- popper: Qe(M)
864
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
865
- return c.modifiersData[P.name] = Object.assign({}, P.data);
862
+ reference: dn(T, Re(O), c.options.strategy === "fixed"),
863
+ popper: rt(O)
864
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(E) {
865
+ return c.modifiersData[E.name] = Object.assign({}, E.data);
866
866
  });
867
- for (var d = 0; d < c.orderedModifiers.length; d++) {
867
+ for (var u = 0; u < c.orderedModifiers.length; u++) {
868
868
  if (c.reset === !0) {
869
- c.reset = !1, d = -1;
869
+ c.reset = !1, u = -1;
870
870
  continue;
871
871
  }
872
- var y = c.orderedModifiers[d], w = y.fn, v = y.options, A = v === void 0 ? {} : v, g = y.name;
873
- typeof w == "function" && (c = w({
872
+ var b = c.orderedModifiers[u], h = b.fn, R = b.options, j = R === void 0 ? {} : R, M = b.name;
873
+ typeof h == "function" && (c = h({
874
874
  state: c,
875
- options: A,
876
- name: g,
877
- instance: f
875
+ options: j,
876
+ name: M,
877
+ instance: d
878
878
  }) || c);
879
879
  }
880
880
  }
@@ -883,50 +883,50 @@ function gn(t) {
883
883
  // Async and optimistically optimized update – it will not be executed if
884
884
  // not necessary (debounced to run at most once-per-tick)
885
885
  update: hn(function() {
886
- return new Promise(function(x) {
887
- f.forceUpdate(), x(c);
886
+ return new Promise(function(g) {
887
+ d.forceUpdate(), g(c);
888
888
  });
889
889
  }),
890
890
  destroy: function() {
891
- u(), h = !0;
891
+ p(), m = !0;
892
892
  }
893
893
  };
894
- if (!Mt(i, s))
895
- return f;
896
- f.setOptions(p).then(function(x) {
897
- !h && p.onFirstUpdate && p.onFirstUpdate(x);
894
+ if (!Rt(i, s))
895
+ return d;
896
+ d.setOptions(f).then(function(g) {
897
+ !m && f.onFirstUpdate && f.onFirstUpdate(g);
898
898
  });
899
- function O() {
900
- c.orderedModifiers.forEach(function(x) {
901
- var D = x.name, R = x.options, M = R === void 0 ? {} : R, d = x.effect;
902
- if (typeof d == "function") {
903
- var y = d({
899
+ function x() {
900
+ c.orderedModifiers.forEach(function(g) {
901
+ var P = g.name, T = g.options, O = T === void 0 ? {} : T, u = g.effect;
902
+ if (typeof u == "function") {
903
+ var b = u({
904
904
  state: c,
905
- name: D,
906
- instance: f,
907
- options: M
908
- }), w = function() {
905
+ name: P,
906
+ instance: d,
907
+ options: O
908
+ }), h = function() {
909
909
  };
910
- m.push(y || w);
910
+ v.push(b || h);
911
911
  }
912
912
  });
913
913
  }
914
- function u() {
915
- m.forEach(function(x) {
916
- return x();
917
- }), m = [];
914
+ function p() {
915
+ v.forEach(function(g) {
916
+ return g();
917
+ }), v = [];
918
918
  }
919
- return f;
919
+ return d;
920
920
  };
921
921
  }
922
922
  var bn = [Ir, an, Hr, Tr, nn, Zr, cn, Sr, en], xn = /* @__PURE__ */ gn({
923
923
  defaultModifiers: bn
924
924
  });
925
- const Wt = "Popper";
925
+ const Ft = "Popper";
926
926
  function wn(t) {
927
- return ar(Wt, t);
927
+ return ar(Ft, t);
928
928
  }
929
- ir(Wt, ["root"]);
929
+ ir(Ft, ["root"]);
930
930
  const On = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], Pn = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
931
931
  function En(t, e) {
932
932
  if (e === "ltr")
@@ -944,18 +944,18 @@ function En(t, e) {
944
944
  return t;
945
945
  }
946
946
  }
947
- function Ne(t) {
947
+ function qe(t) {
948
948
  return typeof t == "function" ? t() : t;
949
949
  }
950
- function qe(t) {
950
+ function Ue(t) {
951
951
  return t.nodeType !== void 0;
952
952
  }
953
953
  function Mn(t) {
954
- return !qe(t);
954
+ return !Ue(t);
955
955
  }
956
956
  const Dn = () => lr({
957
957
  root: ["root"]
958
- }, cr(wn)), Rn = {}, Tn = /* @__PURE__ */ z.forwardRef(function(e, r) {
958
+ }, cr(wn)), Rn = {}, Tn = /* @__PURE__ */ J.forwardRef(function(e, r) {
959
959
  var n;
960
960
  const {
961
961
  anchorEl: o,
@@ -963,36 +963,36 @@ const Dn = () => lr({
963
963
  direction: l,
964
964
  disablePortal: i,
965
965
  modifiers: s,
966
- open: p,
966
+ open: f,
967
967
  placement: c,
968
- popperOptions: m,
969
- popperRef: h,
970
- slotProps: f = {},
971
- slots: O = {},
972
- TransitionProps: u
968
+ popperOptions: v,
969
+ popperRef: m,
970
+ slotProps: d = {},
971
+ slots: x = {},
972
+ TransitionProps: p
973
973
  // @ts-ignore internal logic
974
974
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
975
- } = e, x = _t(e, On), D = z.useRef(null), R = dt(D, r), M = z.useRef(null), d = dt(M, h), y = z.useRef(d);
976
- ht(() => {
977
- y.current = d;
978
- }, [d]), z.useImperativeHandle(h, () => M.current, []);
979
- const w = En(c, l), [v, A] = z.useState(w), [g, P] = z.useState(Ne(o));
980
- z.useEffect(() => {
981
- M.current && M.current.forceUpdate();
982
- }), z.useEffect(() => {
983
- o && P(Ne(o));
984
- }, [o]), ht(() => {
985
- if (!g || !p)
975
+ } = e, g = Lt(e, On), P = J.useRef(null), T = mt(P, r), O = J.useRef(null), u = mt(O, m), b = J.useRef(u);
976
+ gt(() => {
977
+ b.current = u;
978
+ }, [u]), J.useImperativeHandle(m, () => O.current, []);
979
+ const h = En(c, l), [R, j] = J.useState(h), [M, E] = J.useState(qe(o));
980
+ J.useEffect(() => {
981
+ O.current && O.current.forceUpdate();
982
+ }), J.useEffect(() => {
983
+ o && E(qe(o));
984
+ }, [o]), gt(() => {
985
+ if (!M || !f)
986
986
  return;
987
- const C = (L) => {
988
- A(L.placement);
987
+ const S = ($) => {
988
+ j($.placement);
989
989
  };
990
- if (process.env.NODE_ENV !== "production" && g && qe(g) && g.nodeType === 1) {
991
- const L = g.getBoundingClientRect();
992
- process.env.NODE_ENV !== "test" && L.top === 0 && L.left === 0 && L.right === 0 && L.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
990
+ if (process.env.NODE_ENV !== "production" && M && Ue(M) && M.nodeType === 1) {
991
+ const $ = M.getBoundingClientRect();
992
+ process.env.NODE_ENV !== "test" && $.top === 0 && $.left === 0 && $.right === 0 && $.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
993
993
  `));
994
994
  }
995
- let _ = [{
995
+ let w = [{
996
996
  name: "preventOverflow",
997
997
  options: {
998
998
  altBoundary: i
@@ -1007,40 +1007,40 @@ const Dn = () => lr({
1007
1007
  enabled: !0,
1008
1008
  phase: "afterWrite",
1009
1009
  fn: ({
1010
- state: L
1010
+ state: $
1011
1011
  }) => {
1012
- C(L);
1012
+ S($);
1013
1013
  }
1014
1014
  }];
1015
- s != null && (_ = _.concat(s)), m && m.modifiers != null && (_ = _.concat(m.modifiers));
1016
- const S = xn(g, D.current, Be({
1017
- placement: w
1018
- }, m, {
1019
- modifiers: _
1015
+ s != null && (w = w.concat(s)), v && v.modifiers != null && (w = w.concat(v.modifiers));
1016
+ const k = xn(M, P.current, Ie({
1017
+ placement: h
1018
+ }, v, {
1019
+ modifiers: w
1020
1020
  }));
1021
- return y.current(S), () => {
1022
- S.destroy(), y.current(null);
1021
+ return b.current(k), () => {
1022
+ k.destroy(), b.current(null);
1023
1023
  };
1024
- }, [g, i, s, p, m, w]);
1025
- const E = {
1026
- placement: v
1024
+ }, [M, i, s, f, v, h]);
1025
+ const C = {
1026
+ placement: R
1027
1027
  };
1028
- u !== null && (E.TransitionProps = u);
1029
- const k = Dn(), j = (n = O.root) != null ? n : "div", H = sr({
1030
- elementType: j,
1031
- externalSlotProps: f.root,
1032
- externalForwardedProps: x,
1028
+ p !== null && (C.TransitionProps = p);
1029
+ const D = Dn(), _ = (n = x.root) != null ? n : "div", L = sr({
1030
+ elementType: _,
1031
+ externalSlotProps: d.root,
1032
+ externalForwardedProps: g,
1033
1033
  additionalProps: {
1034
1034
  role: "tooltip",
1035
- ref: R
1035
+ ref: T
1036
1036
  },
1037
1037
  ownerState: e,
1038
- className: k.root
1038
+ className: D.root
1039
1039
  });
1040
- return /* @__PURE__ */ Y(j, Be({}, H, {
1041
- children: typeof a == "function" ? a(E) : a
1040
+ return /* @__PURE__ */ B(_, Ie({}, L, {
1041
+ children: typeof a == "function" ? a(C) : a
1042
1042
  }));
1043
- }), qt = /* @__PURE__ */ z.forwardRef(function(e, r) {
1043
+ }), Vt = /* @__PURE__ */ J.forwardRef(function(e, r) {
1044
1044
  const {
1045
1045
  anchorEl: n,
1046
1046
  children: o,
@@ -1048,64 +1048,64 @@ const Dn = () => lr({
1048
1048
  direction: l = "ltr",
1049
1049
  disablePortal: i = !1,
1050
1050
  keepMounted: s = !1,
1051
- modifiers: p,
1051
+ modifiers: f,
1052
1052
  open: c,
1053
- placement: m = "bottom",
1054
- popperOptions: h = Rn,
1055
- popperRef: f,
1056
- style: O,
1057
- transition: u = !1,
1058
- slotProps: x = {},
1059
- slots: D = {}
1060
- } = e, R = _t(e, Pn), [M, d] = z.useState(!0), y = () => {
1061
- d(!1);
1062
- }, w = () => {
1063
- d(!0);
1053
+ placement: v = "bottom",
1054
+ popperOptions: m = Rn,
1055
+ popperRef: d,
1056
+ style: x,
1057
+ transition: p = !1,
1058
+ slotProps: g = {},
1059
+ slots: P = {}
1060
+ } = e, T = Lt(e, Pn), [O, u] = J.useState(!0), b = () => {
1061
+ u(!1);
1062
+ }, h = () => {
1063
+ u(!0);
1064
1064
  };
1065
- if (!s && !c && (!u || M))
1065
+ if (!s && !c && (!p || O))
1066
1066
  return null;
1067
- let v;
1067
+ let R;
1068
1068
  if (a)
1069
- v = a;
1069
+ R = a;
1070
1070
  else if (n) {
1071
- const P = Ne(n);
1072
- v = P && qe(P) ? vt(P).body : vt(null).body;
1071
+ const E = qe(n);
1072
+ R = E && Ue(E) ? ht(E).body : ht(null).body;
1073
1073
  }
1074
- const A = !c && s && (!u || M) ? "none" : void 0, g = u ? {
1074
+ const j = !c && s && (!p || O) ? "none" : void 0, M = p ? {
1075
1075
  in: c,
1076
- onEnter: y,
1077
- onExited: w
1076
+ onEnter: b,
1077
+ onExited: h
1078
1078
  } : void 0;
1079
- return /* @__PURE__ */ Y(fr, {
1079
+ return /* @__PURE__ */ B(pr, {
1080
1080
  disablePortal: i,
1081
- container: v,
1082
- children: /* @__PURE__ */ Y(Tn, Be({
1081
+ container: R,
1082
+ children: /* @__PURE__ */ B(Tn, Ie({
1083
1083
  anchorEl: n,
1084
1084
  direction: l,
1085
1085
  disablePortal: i,
1086
- modifiers: p,
1086
+ modifiers: f,
1087
1087
  ref: r,
1088
- open: u ? !M : c,
1089
- placement: m,
1090
- popperOptions: h,
1091
- popperRef: f,
1092
- slotProps: x,
1093
- slots: D
1094
- }, R, {
1095
- style: Be({
1088
+ open: p ? !O : c,
1089
+ placement: v,
1090
+ popperOptions: m,
1091
+ popperRef: d,
1092
+ slotProps: g,
1093
+ slots: P
1094
+ }, T, {
1095
+ style: Ie({
1096
1096
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1097
1097
  position: "fixed",
1098
1098
  // Fix Popper.js display issue
1099
1099
  top: 0,
1100
1100
  left: 0,
1101
- display: A
1102
- }, O),
1103
- TransitionProps: g,
1101
+ display: j
1102
+ }, x),
1103
+ TransitionProps: M,
1104
1104
  children: o
1105
1105
  }))
1106
1106
  });
1107
1107
  });
1108
- process.env.NODE_ENV !== "production" && (qt.propTypes = {
1108
+ process.env.NODE_ENV !== "production" && (Vt.propTypes = {
1109
1109
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1110
1110
  // │ These PropTypes are generated from the TypeScript type definitions. │
1111
1111
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -1116,10 +1116,10 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
1116
1116
  * It's used to set the position of the popper.
1117
1117
  * The return value will passed as the reference object of the Popper instance.
1118
1118
  */
1119
- anchorEl: pr(b.oneOfType([mt, b.object, b.func]), (t) => {
1119
+ anchorEl: fr(y.oneOfType([yt, y.object, y.func]), (t) => {
1120
1120
  if (t.open) {
1121
- const e = Ne(t.anchorEl);
1122
- if (e && qe(e) && e.nodeType === 1) {
1121
+ const e = qe(t.anchorEl);
1122
+ if (e && Ue(e) && e.nodeType === 1) {
1123
1123
  const r = e.getBoundingClientRect();
1124
1124
  if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
1125
1125
  return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
@@ -1133,7 +1133,7 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
1133
1133
  /**
1134
1134
  * Popper render function or node.
1135
1135
  */
1136
- children: b.oneOfType([b.node, b.func]),
1136
+ children: y.oneOfType([y.node, y.func]),
1137
1137
  /**
1138
1138
  * An HTML element or function that returns one.
1139
1139
  * The `container` will have the portal children appended to it.
@@ -1144,24 +1144,24 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
1144
1144
  * By default, it uses the body of the top-level document object,
1145
1145
  * so it's simply `document.body` most of the time.
1146
1146
  */
1147
- container: b.oneOfType([mt, b.func]),
1147
+ container: y.oneOfType([yt, y.func]),
1148
1148
  /**
1149
1149
  * Direction of the text.
1150
1150
  * @default 'ltr'
1151
1151
  */
1152
- direction: b.oneOf(["ltr", "rtl"]),
1152
+ direction: y.oneOf(["ltr", "rtl"]),
1153
1153
  /**
1154
1154
  * The `children` will be under the DOM hierarchy of the parent component.
1155
1155
  * @default false
1156
1156
  */
1157
- disablePortal: b.bool,
1157
+ disablePortal: y.bool,
1158
1158
  /**
1159
1159
  * Always keep the children in the DOM.
1160
1160
  * This prop can be useful in SEO situation or
1161
1161
  * when you want to maximize the responsiveness of the Popper.
1162
1162
  * @default false
1163
1163
  */
1164
- keepMounted: b.bool,
1164
+ keepMounted: y.bool,
1165
1165
  /**
1166
1166
  * Popper.js is based on a "plugin-like" architecture,
1167
1167
  * most of its features are fully encapsulated "modifiers".
@@ -1171,35 +1171,35 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
1171
1171
  * For this reason, modifiers should be very performant to avoid bottlenecks.
1172
1172
  * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1173
1173
  */
1174
- modifiers: b.arrayOf(b.shape({
1175
- data: b.object,
1176
- effect: b.func,
1177
- enabled: b.bool,
1178
- fn: b.func,
1179
- name: b.any,
1180
- options: b.object,
1181
- phase: b.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1182
- requires: b.arrayOf(b.string),
1183
- requiresIfExists: b.arrayOf(b.string)
1174
+ modifiers: y.arrayOf(y.shape({
1175
+ data: y.object,
1176
+ effect: y.func,
1177
+ enabled: y.bool,
1178
+ fn: y.func,
1179
+ name: y.any,
1180
+ options: y.object,
1181
+ phase: y.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1182
+ requires: y.arrayOf(y.string),
1183
+ requiresIfExists: y.arrayOf(y.string)
1184
1184
  })),
1185
1185
  /**
1186
1186
  * If `true`, the component is shown.
1187
1187
  */
1188
- open: b.bool.isRequired,
1188
+ open: y.bool.isRequired,
1189
1189
  /**
1190
1190
  * Popper placement.
1191
1191
  * @default 'bottom'
1192
1192
  */
1193
- placement: b.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1193
+ placement: y.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1194
1194
  /**
1195
1195
  * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1196
1196
  * @default {}
1197
1197
  */
1198
- popperOptions: b.shape({
1199
- modifiers: b.array,
1200
- onFirstUpdate: b.func,
1201
- placement: b.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1202
- strategy: b.oneOf(["absolute", "fixed"])
1198
+ popperOptions: y.shape({
1199
+ modifiers: y.array,
1200
+ onFirstUpdate: y.func,
1201
+ placement: y.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1202
+ strategy: y.oneOf(["absolute", "fixed"])
1203
1203
  }),
1204
1204
  /**
1205
1205
  * A ref that points to the used popper instance.
@@ -1209,43 +1209,43 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
1209
1209
  * The props used for each slot inside the Popper.
1210
1210
  * @default {}
1211
1211
  */
1212
- slotProps: b.shape({
1213
- root: b.oneOfType([b.func, b.object])
1212
+ slotProps: y.shape({
1213
+ root: y.oneOfType([y.func, y.object])
1214
1214
  }),
1215
1215
  /**
1216
1216
  * The components used for each slot inside the Popper.
1217
1217
  * Either a string to use a HTML element or a component.
1218
1218
  * @default {}
1219
1219
  */
1220
- slots: b.shape({
1221
- root: b.elementType
1220
+ slots: y.shape({
1221
+ root: y.elementType
1222
1222
  }),
1223
1223
  /**
1224
1224
  * Help supporting a react-transition-group/Transition component.
1225
1225
  * @default false
1226
1226
  */
1227
- transition: b.bool
1227
+ transition: y.bool
1228
1228
  });
1229
- var _e = { exports: {} }, An = _e.exports, Dt;
1229
+ var Se = { exports: {} }, An = Se.exports, Tt;
1230
1230
  function kn() {
1231
- return Dt || (Dt = 1, function(t, e) {
1231
+ return Tt || (Tt = 1, function(t, e) {
1232
1232
  (function(r, n) {
1233
1233
  t.exports = n();
1234
1234
  })(An, function() {
1235
1235
  return function(r, n, o) {
1236
1236
  n.prototype.isBetween = function(a, l, i, s) {
1237
- var p = o(a), c = o(l), m = (s = s || "()")[0] === "(", h = s[1] === ")";
1238
- return (m ? this.isAfter(p, i) : !this.isBefore(p, i)) && (h ? this.isBefore(c, i) : !this.isAfter(c, i)) || (m ? this.isBefore(p, i) : !this.isAfter(p, i)) && (h ? this.isAfter(c, i) : !this.isBefore(c, i));
1237
+ var f = o(a), c = o(l), v = (s = s || "()")[0] === "(", m = s[1] === ")";
1238
+ return (v ? this.isAfter(f, i) : !this.isBefore(f, i)) && (m ? this.isBefore(c, i) : !this.isAfter(c, i)) || (v ? this.isBefore(f, i) : !this.isAfter(f, i)) && (m ? this.isAfter(c, i) : !this.isBefore(c, i));
1239
1239
  };
1240
1240
  };
1241
1241
  });
1242
- }(_e)), _e.exports;
1242
+ }(Se)), Se.exports;
1243
1243
  }
1244
1244
  var Cn = kn();
1245
- const _n = /* @__PURE__ */ Ie(Cn);
1246
- var je = { exports: {} }, jn = je.exports, Rt;
1245
+ const _n = /* @__PURE__ */ Fe(Cn);
1246
+ var Ye = { exports: {} }, jn = Ye.exports, At;
1247
1247
  function Ln() {
1248
- return Rt || (Rt = 1, function(t, e) {
1248
+ return At || (At = 1, function(t, e) {
1249
1249
  (function(r, n) {
1250
1250
  t.exports = n();
1251
1251
  })(jn, function() {
@@ -1256,13 +1256,13 @@ function Ln() {
1256
1256
  };
1257
1257
  };
1258
1258
  });
1259
- }(je)), je.exports;
1259
+ }(Ye)), Ye.exports;
1260
1260
  }
1261
1261
  var Sn = Ln();
1262
- const Yn = /* @__PURE__ */ Ie(Sn);
1263
- var Le = { exports: {} }, $n = Le.exports, Tt;
1262
+ const Yn = /* @__PURE__ */ Fe(Sn);
1263
+ var $e = { exports: {} }, $n = $e.exports, kt;
1264
1264
  function Bn() {
1265
- return Tt || (Tt = 1, function(t, e) {
1265
+ return kt || (kt = 1, function(t, e) {
1266
1266
  (function(r, n) {
1267
1267
  t.exports = n();
1268
1268
  })($n, function() {
@@ -1271,25 +1271,25 @@ function Bn() {
1271
1271
  var l = o.prototype, i = l.format;
1272
1272
  a.en.formats = r, l.format = function(s) {
1273
1273
  s === void 0 && (s = "YYYY-MM-DDTHH:mm:ssZ");
1274
- var p = this.$locale().formats, c = function(m, h) {
1275
- return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(f, O, u) {
1276
- var x = u && u.toUpperCase();
1277
- return O || h[u] || r[u] || h[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, R, M) {
1278
- return R || M.slice(1);
1274
+ var f = this.$locale().formats, c = function(v, m) {
1275
+ return v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(d, x, p) {
1276
+ var g = p && p.toUpperCase();
1277
+ return x || m[p] || r[p] || m[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(P, T, O) {
1278
+ return T || O.slice(1);
1279
1279
  });
1280
1280
  });
1281
- }(s, p === void 0 ? {} : p);
1281
+ }(s, f === void 0 ? {} : f);
1282
1282
  return i.call(this, c);
1283
1283
  };
1284
1284
  };
1285
1285
  });
1286
- }(Le)), Le.exports;
1286
+ }($e)), $e.exports;
1287
1287
  }
1288
1288
  var Hn = Bn();
1289
- const Nn = /* @__PURE__ */ Ie(Hn);
1290
- var Se = { exports: {} }, In = Se.exports, At;
1289
+ const Nn = /* @__PURE__ */ Fe(Hn);
1290
+ var Be = { exports: {} }, In = Be.exports, Ct;
1291
1291
  function Wn() {
1292
- return At || (At = 1, function(t, e) {
1292
+ return Ct || (Ct = 1, function(t, e) {
1293
1293
  (function(r, n) {
1294
1294
  t.exports = n();
1295
1295
  })(In, function() {
@@ -1300,13 +1300,13 @@ function Wn() {
1300
1300
  };
1301
1301
  };
1302
1302
  });
1303
- }(Se)), Se.exports;
1303
+ }(Be)), Be.exports;
1304
1304
  }
1305
1305
  var qn = Wn();
1306
- const Fn = /* @__PURE__ */ Ie(qn);
1307
- var Ye = { exports: {} }, Vn = Ye.exports, kt;
1306
+ const Fn = /* @__PURE__ */ Fe(qn);
1307
+ var He = { exports: {} }, Vn = He.exports, _t;
1308
1308
  function Un() {
1309
- return kt || (kt = 1, function(t, e) {
1309
+ return _t || (_t = 1, function(t, e) {
1310
1310
  (function(r, n) {
1311
1311
  t.exports = n();
1312
1312
  })(Vn, function() {
@@ -1315,12 +1315,12 @@ function Un() {
1315
1315
  return "[" + r + (n[(o - 20) % 10] || n[o] || n[0]) + "]";
1316
1316
  } };
1317
1317
  });
1318
- }(Ye)), Ye.exports;
1318
+ }(He)), He.exports;
1319
1319
  }
1320
1320
  Un();
1321
- var $e = { exports: {} }, zn = $e.exports, Ct;
1321
+ var Ne = { exports: {} }, zn = Ne.exports, jt;
1322
1322
  function Xn() {
1323
- return Ct || (Ct = 1, function(t, e) {
1323
+ return jt || (jt = 1, function(t, e) {
1324
1324
  (function(r, n) {
1325
1325
  t.exports = n(zt());
1326
1326
  })(zn, function(r) {
@@ -1332,14 +1332,14 @@ function Xn() {
1332
1332
  }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "alguns segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } };
1333
1333
  return o.default.locale(a, null, !0), a;
1334
1334
  });
1335
- }($e)), $e.exports;
1335
+ }(Ne)), Ne.exports;
1336
1336
  }
1337
1337
  Xn();
1338
- J.extend(_n);
1339
- J.extend(Fn);
1340
- J.extend(Nn);
1341
- J.extend(Yn);
1342
- const Xe = (t) => {
1338
+ Z.extend(_n);
1339
+ Z.extend(Fn);
1340
+ Z.extend(Nn);
1341
+ Z.extend(Yn);
1342
+ const Ge = (t) => {
1343
1343
  switch (t) {
1344
1344
  case "pt":
1345
1345
  return "Selecionar data";
@@ -1356,214 +1356,224 @@ const Xe = (t) => {
1356
1356
  maxDate: l,
1357
1357
  disableDates: i,
1358
1358
  onChange: s,
1359
- placement: p = "bottom-start",
1359
+ placement: f = "bottom-start",
1360
1360
  navigatorInput: c = !1,
1361
- className: m,
1362
- "data-testid": h = "date-picker"
1363
- } = t, f = e === "single" ? t.value : void 0, O = e === "range" ? t.values : void 0, u = e === "single" ? t.placeholder : void 0, x = e === "range" ? t.placeholders : void 0, D = e === "range" ? t.limit : void 0, R = f ? J(f).locale(n) : O ? J(O[1]).locale(n) : J().locale(n), M = u || Xe(n), d = x || [Xe(n), Xe(n)], [y, w] = ce(f ? J(f) : null), [v, A] = ce(
1364
- O ? [J(O[0]), J(O[1])] : [null, null]
1365
- ), [g, P] = ce(R), [E, k] = ce(!1), [j, H] = ce(!1), [C, _] = ce(r), [S, L] = ce(null), X = ft(null), ee = ft(null);
1366
- Ue(() => {
1367
- E || _(r);
1368
- }, [E, r]), Ue(() => {
1369
- E || L(null);
1370
- }, [E]);
1371
- const ye = (T) => {
1372
- if (e === "range" && j && T.key === "Escape") {
1373
- A([null, null]), H(!1);
1361
+ className: v,
1362
+ "data-testid": m = "date-picker",
1363
+ error: d
1364
+ } = t, x = e === "single" ? t.value : void 0, p = e === "range" ? t.values : void 0, g = e === "single" ? t.placeholder : void 0, P = e === "range" ? t.placeholders : void 0, T = e === "range" ? t.limit : void 0, O = e === "single" ? t.infoMessage : void 0, u = e === "range" ? t.infoMessages : void 0, b = e === "single" ? t.errorMessage : void 0, h = e === "range" ? t.errorMessages : void 0, R = x ? Z(x).locale(n) : p ? Z(p[1]).locale(n) : Z().locale(n), j = g || Ge(n), M = P || [Ge(n), Ge(n)], [E, C] = ce(x ? Z(x) : null), [D, _] = ce(
1365
+ p ? [Z(p[0]), Z(p[1])] : [null, null]
1366
+ ), [L, S] = ce(R), [w, k] = ce(!1), [$, X] = ce(!1), [Y, ne] = ce(r), [ie, oe] = ce(null), te = dt(null), F = dt(null);
1367
+ Je(() => {
1368
+ w || ne(r);
1369
+ }, [w, r]), Je(() => {
1370
+ w || oe(null);
1371
+ }, [w]);
1372
+ const se = (A) => {
1373
+ if (e === "range" && $ && A.key === "Escape") {
1374
+ _([null, null]), X(!1);
1374
1375
  return;
1375
1376
  }
1376
1377
  Qt(
1377
- T,
1378
- E,
1379
- C,
1380
- g,
1381
- P,
1378
+ A,
1379
+ w,
1380
+ Y,
1381
+ L,
1382
+ S,
1382
1383
  e,
1383
- oe,
1384
+ K,
1384
1385
  k
1385
1386
  );
1386
- }, ne = Ut(
1387
- (T) => {
1388
- if (!j) {
1389
- A([T, null]), H(!0);
1387
+ }, ue = Ut(
1388
+ (A) => {
1389
+ if (!$) {
1390
+ _([A, null]), X(!0);
1390
1391
  return;
1391
1392
  }
1392
- if (!v[0]) {
1393
- A([T, null]);
1393
+ if (!D[0]) {
1394
+ _([A, null]);
1394
1395
  return;
1395
1396
  }
1396
- if (T.isSame(v[0], "day")) return;
1397
- const [I, se] = T.isAfter(v[0]) ? [v[0], T] : [T, v[0]];
1398
- A([I, se]), H(!1), L(null), s([I, se]), k(!1);
1397
+ if (A.isSame(D[0], "day")) return;
1398
+ const [I, W] = A.isAfter(D[0]) ? [D[0], A] : [A, D[0]];
1399
+ _([I, W]), X(!1), oe(null), s([I, W]), k(!1);
1399
1400
  },
1400
- [j, v, s]
1401
- ), oe = (T) => {
1402
- Kt(T, a, l, i, e, v) || (e === "single" ? (w(T), P(T), s(T), k(!1)) : ne(T));
1403
- }, N = () => {
1404
- var T, I, se, be;
1405
- return e === "single" ? y ? r === "month" && !c ? y.locale(n).format("MMM") : r === "year" && !c ? y.locale(n).format("YYYY") : y.locale(n).format(o) : "" : e === "range" ? v[0] && v[1] && v[0].isSame(v[1], "day") ? v[0].locale(n).format(o) : [
1406
- ((I = (T = v[0]) == null ? void 0 : T.locale(n)) == null ? void 0 : I.format(o)) || "",
1407
- ((be = (se = v[1]) == null ? void 0 : se.locale(n)) == null ? void 0 : be.format(o)) || ""
1408
- ] : v[0] ? v[0].locale(n).format(o) : "";
1409
- }, U = () => {
1410
- P(C === "day" ? Gt(g) : C === "month" ? g.subtract(1, "year") : g.subtract(12, "years"));
1411
- }, te = () => {
1412
- P(C === "day" ? Zt(g) : C === "month" ? g.add(1, "year") : g.add(12, "years"));
1413
- }, ae = () => rr({
1414
- currentViewMode: C,
1415
- currentMonth: g,
1401
+ [$, D, s]
1402
+ ), K = (A) => {
1403
+ Kt(A, a, l, i, e, D) || (e === "single" ? (C(A), S(A), s(A), k(!1)) : ue(A));
1404
+ }, G = () => {
1405
+ var A, I, W, le;
1406
+ return e === "single" ? E ? r === "month" && !c ? E.locale(n).format("MMM") : r === "year" && !c ? E.locale(n).format("YYYY") : E.locale(n).format(o) : "" : e === "range" ? D[0] && D[1] && D[0].isSame(D[1], "day") ? D[0].locale(n).format(o) : [
1407
+ ((I = (A = D[0]) == null ? void 0 : A.locale(n)) == null ? void 0 : I.format(o)) || "",
1408
+ ((le = (W = D[1]) == null ? void 0 : W.locale(n)) == null ? void 0 : le.format(o)) || ""
1409
+ ] : D[0] ? D[0].locale(n).format(o) : "";
1410
+ }, Te = () => {
1411
+ S(Y === "day" ? Gt(L) : Y === "month" ? L.subtract(1, "year") : L.subtract(12, "years"));
1412
+ }, de = () => {
1413
+ S(Y === "day" ? Zt(L) : Y === "month" ? L.add(1, "year") : L.add(12, "years"));
1414
+ }, Ae = () => rr({
1415
+ currentViewMode: Y,
1416
+ currentMonth: L,
1416
1417
  locale: n,
1417
- navigateToPrevious: U,
1418
- navigateToNext: te,
1419
- setCurrentViewMode: _
1420
- }), Z = () => tr({
1421
- currentMonth: g,
1418
+ navigateToPrevious: Te,
1419
+ navigateToNext: de,
1420
+ setCurrentViewMode: ne
1421
+ }), ke = () => tr({
1422
+ currentMonth: L,
1422
1423
  locale: n,
1423
- setCurrentMonth: P
1424
- }), ie = (T = 0) => er({
1425
- currentMonth: T === 0 ? g : g.add(1, "month"),
1426
- selectedDate: y,
1427
- selectedRange: v,
1424
+ setCurrentMonth: S
1425
+ }), be = (A = 0) => er({
1426
+ currentMonth: A === 0 ? L : L.add(1, "month"),
1427
+ selectedDate: E,
1428
+ selectedRange: D,
1428
1429
  locale: n,
1429
1430
  mode: e,
1430
- isSelectingRange: j,
1431
- hoverDate: S,
1431
+ isSelectingRange: $,
1432
+ hoverDate: ie,
1432
1433
  minDate: a,
1433
1434
  maxDate: l,
1434
1435
  disableDates: i,
1435
- handleSelect: oe,
1436
- setHoverDate: L,
1437
- limit: D
1438
- }), Fe = () => /* @__PURE__ */ Ae(
1436
+ handleSelect: K,
1437
+ setHoverDate: oe,
1438
+ limit: T
1439
+ }), ze = () => /* @__PURE__ */ _e(
1439
1440
  "div",
1440
1441
  {
1441
- ref: ee,
1442
- className: ut(ue["datepicker-container"], e === "range" && ue["range-mode"]),
1443
- "data-testid": `${h}-content`,
1442
+ ref: F,
1443
+ className: vt(ve["datepicker-container"], e === "range" && ve["range-mode"]),
1444
+ "data-testid": `${m}-content`,
1444
1445
  children: [
1445
- e === "single" && ae(),
1446
- e === "range" && C === "day" && Z(),
1447
- e === "range" && C !== "day" && ae(),
1448
- C === "day" && e === "single" && ie(),
1449
- (C === "month" || C === "year") && or({
1450
- currentViewMode: C,
1451
- currentMonth: g,
1452
- selectedDate: y,
1446
+ e === "single" && Ae(),
1447
+ e === "range" && Y === "day" && ke(),
1448
+ e === "range" && Y !== "day" && Ae(),
1449
+ Y === "day" && e === "single" && be(),
1450
+ (Y === "month" || Y === "year") && or({
1451
+ currentViewMode: Y,
1452
+ currentMonth: L,
1453
+ selectedDate: E,
1453
1454
  locale: n,
1454
1455
  mode: e,
1455
1456
  initialViewMode: r,
1456
1457
  navigatorInput: c,
1457
- setCurrentMonth: P,
1458
- setSelectedDate: w,
1458
+ setCurrentMonth: S,
1459
+ setSelectedDate: C,
1459
1460
  onChange: s,
1460
- setCurrentViewMode: _,
1461
+ setCurrentViewMode: ne,
1461
1462
  setIsOpen: k
1462
1463
  }),
1463
- e === "range" && C === "day" && /* @__PURE__ */ Ae("div", { className: ue["dual-calendar-container"], children: [
1464
- ie(0),
1465
- ie(1)
1464
+ e === "range" && Y === "day" && /* @__PURE__ */ _e("div", { className: ve["dual-calendar-container"], children: [
1465
+ be(0),
1466
+ be(1)
1466
1467
  ] })
1467
1468
  ]
1468
1469
  }
1469
- ), ge = () => {
1470
- e === "range" ? (A([null, null]), s([null, null])) : (w(null), s(null));
1471
- }, Re = (T) => /* @__PURE__ */ Ae("span", { className: ue["datepicker-buttons-container"], children: [
1472
- T && /* @__PURE__ */ Y(
1470
+ ), Ce = () => {
1471
+ e === "range" ? (_([null, null]), s([null, null])) : (C(null), s(null));
1472
+ }, xe = (A) => /* @__PURE__ */ _e("span", { className: ve["datepicker-buttons-container"], children: [
1473
+ A && /* @__PURE__ */ B(
1473
1474
  "span",
1474
1475
  {
1475
1476
  onClick: (I) => {
1476
- I.preventDefault(), I.stopPropagation(), ge();
1477
+ I.preventDefault(), I.stopPropagation(), Ce();
1477
1478
  },
1478
- "data-testid": `${h}-toggle-icon-remove`,
1479
- children: /* @__PURE__ */ Y(ze, { icon: "circle-xmark" })
1479
+ "data-testid": `${m}-toggle-icon-remove`,
1480
+ children: /* @__PURE__ */ B(Ke, { icon: "circle-xmark" })
1480
1481
  }
1481
1482
  ),
1482
- /* @__PURE__ */ Y(
1483
+ /* @__PURE__ */ B(
1483
1484
  "span",
1484
1485
  {
1485
1486
  onClick: (I) => {
1486
- I.preventDefault(), I.stopPropagation(), k(!E);
1487
+ I.preventDefault(), I.stopPropagation(), k(!w);
1487
1488
  },
1488
- "data-testid": `${h}-toggle-icon`,
1489
- children: /* @__PURE__ */ Y(ze, { icon: "calendar-days" })
1489
+ "data-testid": `${m}-toggle-icon`,
1490
+ children: /* @__PURE__ */ B(Ke, { icon: "calendar-days" })
1490
1491
  }
1491
1492
  )
1492
1493
  ] });
1493
- return Ue(() => {
1494
- if (E && ee.current) {
1495
- const T = ee.current.querySelector("button");
1496
- T && T.focus();
1494
+ return Je(() => {
1495
+ if (w && F.current) {
1496
+ const A = F.current.querySelector("button");
1497
+ A && A.focus();
1497
1498
  }
1498
- }, [E]), /* @__PURE__ */ Y(ur, { onClickAway: () => k(!1), children: /* @__PURE__ */ Ae(
1499
+ }, [w]), /* @__PURE__ */ B(ur, { onClickAway: () => k(!1), children: /* @__PURE__ */ _e(
1499
1500
  "div",
1500
1501
  {
1501
- ref: X,
1502
- onKeyDown: ye,
1503
- className: ut(ue["datepicker-wrapper"], m),
1504
- "data-testid": h,
1502
+ ref: te,
1503
+ onKeyDown: se,
1504
+ className: vt(ve["datepicker-wrapper"], v),
1505
+ "data-testid": m,
1505
1506
  children: [
1506
1507
  c ? nr({
1507
- navigateToPrevious: U,
1508
- navigateToNext: te,
1509
- currentMonth: g,
1510
- selectedDate: y,
1508
+ navigateToPrevious: Te,
1509
+ navigateToNext: de,
1510
+ currentMonth: L,
1511
+ selectedDate: E,
1511
1512
  locale: n,
1512
- currentViewMode: C,
1513
+ currentViewMode: Y,
1513
1514
  mode: e,
1514
- setCurrentViewMode: _,
1515
+ setCurrentViewMode: ne,
1515
1516
  setIsOpen: k,
1516
- setSelectedDate: w,
1517
+ setSelectedDate: C,
1517
1518
  onChange: s
1518
- }) : /* @__PURE__ */ Y("div", { className: ue["datepicker-input-container"], "data-testid": `${h}-input-container`, children: e === "range" ? /* @__PURE__ */ Y("div", { style: { display: "flex" }, children: /* @__PURE__ */ Y(
1519
+ }) : /* @__PURE__ */ B("div", { className: ve["datepicker-input-container"], "data-testid": `${m}-input-container`, children: e === "range" ? /* @__PURE__ */ B("div", { style: { display: "flex" }, children: /* @__PURE__ */ B(
1519
1520
  Xt,
1520
1521
  {
1521
1522
  leftInputProps: {
1522
- value: N()[0],
1523
- onFocus: () => k(!E),
1524
- placeholder: d[0],
1523
+ value: G()[0],
1524
+ onFocus: () => k(!w),
1525
+ placeholder: M[0],
1526
+ infoMessage: u == null ? void 0 : u[0],
1527
+ errorMessage: h == null ? void 0 : h[0],
1528
+ error: d,
1525
1529
  "aria-label": "Date Picker Input",
1526
1530
  "aria-haspopup": "dialog",
1527
- "aria-expanded": E,
1531
+ "aria-expanded": w,
1528
1532
  "aria-controls": "date-picker-calendar"
1529
1533
  },
1530
1534
  rightInputProps: {
1531
- value: N()[1],
1532
- rightIcon: Re(!!(N()[0] && N()[1])),
1533
- onFocus: () => k(!E),
1534
- placeholder: d[1],
1535
+ value: G()[1],
1536
+ rightIcon: xe(!!(G()[0] && G()[1])),
1537
+ onFocus: () => k(!w),
1538
+ placeholder: M[1],
1539
+ infoMessage: u == null ? void 0 : u[1],
1540
+ errorMessage: h == null ? void 0 : h[1],
1541
+ error: d,
1535
1542
  "aria-label": "Date Picker Input",
1536
1543
  "aria-haspopup": "dialog",
1537
- "aria-expanded": E,
1544
+ "aria-expanded": w,
1538
1545
  "aria-controls": "date-picker-calendar"
1539
1546
  },
1540
- separator: /* @__PURE__ */ Y(ze, { icon: "arrow-right" })
1547
+ separator: /* @__PURE__ */ B(Ke, { icon: "arrow-right" })
1541
1548
  }
1542
- ) }) : /* @__PURE__ */ Y(
1549
+ ) }) : /* @__PURE__ */ B(
1543
1550
  Jt,
1544
1551
  {
1545
- placeholder: M,
1546
- value: N(),
1547
- onFocus: () => k(!E),
1552
+ placeholder: j,
1553
+ value: G(),
1554
+ onFocus: () => k(!w),
1548
1555
  "aria-label": "Date Picker Input",
1549
1556
  "aria-haspopup": "dialog",
1550
- "aria-expanded": E,
1557
+ "aria-expanded": w,
1551
1558
  "aria-controls": "date-picker-calendar",
1552
- rightIcon: Re(!!N())
1559
+ rightIcon: xe(!!G()),
1560
+ infoMessage: O,
1561
+ errorMessage: b,
1562
+ error: d
1553
1563
  }
1554
1564
  ) }),
1555
- /* @__PURE__ */ Y(
1556
- qt,
1565
+ /* @__PURE__ */ B(
1566
+ Vt,
1557
1567
  {
1558
- open: E,
1559
- anchorEl: X.current,
1560
- placement: p,
1568
+ open: w,
1569
+ anchorEl: te.current,
1570
+ placement: f,
1561
1571
  id: "date-picker-calendar",
1562
1572
  role: "dialog",
1563
1573
  "aria-modal": "true",
1564
1574
  "aria-label": "Date selection calendar",
1565
- "data-testid": `${h}-popper`,
1566
- children: Fe()
1575
+ "data-testid": `${m}-popper`,
1576
+ children: ze()
1567
1577
  }
1568
1578
  )
1569
1579
  ]