urfu-ui-kit-react 0.0.56 → 0.0.57

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.
@@ -2,7 +2,7 @@ var Ni = Object.defineProperty;
2
2
  var Ri = (n, a, t) => a in n ? Ni(n, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[a] = t;
3
3
  var re = (n, a, t) => Ri(n, typeof a != "symbol" ? a + "" : a, t);
4
4
  import * as fe from "react";
5
- import Y, { createElement as Po, Component as qe, useLayoutEffect as No, useEffect as We, cloneElement as Ro, createRef as Ft, useRef as at, useState as ve, useMemo as ji } from "react";
5
+ import Y, { createElement as Po, Component as Ve, useLayoutEffect as No, useEffect as We, cloneElement as Ro, createRef as Ft, useRef as at, useState as ve, useMemo as ji } from "react";
6
6
  import * as Ii from "react-dom";
7
7
  import ea, { findDOMNode as Fi, createPortal as Sn } from "react-dom";
8
8
  function jo(n) {
@@ -70,10 +70,10 @@ function Yi() {
70
70
  Te.unshift("Warning: " + K), Function.prototype.apply.call(console[x], console, Te);
71
71
  }
72
72
  }
73
- var I = !1, k = !1, q = !1, A = !1, X = !1, B;
73
+ var I = !1, k = !1, G = !1, A = !1, X = !1, B;
74
74
  B = Symbol.for("react.module.reference");
75
75
  function le(x) {
76
- return !!(typeof x == "string" || typeof x == "function" || x === e || x === o || X || x === r || x === u || x === d || A || x === b || I || k || q || typeof x == "object" && x !== null && (x.$$typeof === g || x.$$typeof === f || x.$$typeof === i || x.$$typeof === s || x.$$typeof === l || // This needs to include all possible module reference object
76
+ return !!(typeof x == "string" || typeof x == "function" || x === e || x === o || X || x === r || x === u || x === d || A || x === b || I || k || G || typeof x == "object" && x !== null && (x.$$typeof === g || x.$$typeof === f || x.$$typeof === i || x.$$typeof === s || x.$$typeof === l || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
@@ -134,14 +134,14 @@ function Yi() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var $ = Object.assign, R = 0, W, G, de, h, m, y, v;
137
+ var $ = Object.assign, R = 0, W, V, de, h, m, y, v;
138
138
  function c() {
139
139
  }
140
140
  c.__reactDisabledLog = !0;
141
141
  function T() {
142
142
  {
143
143
  if (R === 0) {
144
- W = console.log, G = console.info, de = console.warn, h = console.error, m = console.group, y = console.groupCollapsed, v = console.groupEnd;
144
+ W = console.log, V = console.info, de = console.warn, h = console.error, m = console.group, y = console.groupCollapsed, v = console.groupEnd;
145
145
  var x = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
@@ -174,7 +174,7 @@ function Yi() {
174
174
  value: W
175
175
  }),
176
176
  info: $({}, x, {
177
- value: G
177
+ value: V
178
178
  }),
179
179
  warn: $({}, x, {
180
180
  value: de
@@ -210,16 +210,16 @@ function Yi() {
210
210
  ` + F + x;
211
211
  }
212
212
  }
213
- var U = !1, V;
213
+ var U = !1, q;
214
214
  {
215
215
  var P = typeof WeakMap == "function" ? WeakMap : Map;
216
- V = new P();
216
+ q = new P();
217
217
  }
218
218
  function S(x, K) {
219
219
  if (!x || U)
220
220
  return "";
221
221
  {
222
- var te = V.get(x);
222
+ var te = q.get(x);
223
223
  if (te !== void 0)
224
224
  return te;
225
225
  }
@@ -274,7 +274,7 @@ function Yi() {
274
274
  if (Ae--, Be--, Be < 0 || ye[Ae] !== et[Be]) {
275
275
  var ct = `
276
276
  ` + ye[Ae].replace(" at new ", " at ");
277
- return x.displayName && ct.includes("<anonymous>") && (ct = ct.replace("<anonymous>", x.displayName)), typeof x == "function" && V.set(x, ct), ct;
277
+ return x.displayName && ct.includes("<anonymous>") && (ct = ct.replace("<anonymous>", x.displayName)), typeof x == "function" && q.set(x, ct), ct;
278
278
  }
279
279
  while (Ae >= 1 && Be >= 0);
280
280
  break;
@@ -284,12 +284,12 @@ function Yi() {
284
284
  U = !1, z.current = Te, Q(), Error.prepareStackTrace = _e;
285
285
  }
286
286
  var Zt = x ? x.displayName || x.name : "", $t = Zt ? H(Zt) : "";
287
- return typeof x == "function" && V.set(x, $t), $t;
287
+ return typeof x == "function" && q.set(x, $t), $t;
288
288
  }
289
- function N(x, K, te) {
289
+ function L(x, K, te) {
290
290
  return S(x, !1);
291
291
  }
292
- function L(x) {
292
+ function N(x) {
293
293
  var K = x.prototype;
294
294
  return !!(K && K.isReactComponent);
295
295
  }
@@ -297,7 +297,7 @@ function Yi() {
297
297
  if (x == null)
298
298
  return "";
299
299
  if (typeof x == "function")
300
- return S(x, L(x));
300
+ return S(x, N(x));
301
301
  if (typeof x == "string")
302
302
  return H(x);
303
303
  switch (x) {
@@ -309,7 +309,7 @@ function Yi() {
309
309
  if (typeof x == "object")
310
310
  switch (x.$$typeof) {
311
311
  case l:
312
- return N(x.render);
312
+ return L(x.render);
313
313
  case f:
314
314
  return Z(x.type, K, te);
315
315
  case g: {
@@ -353,7 +353,7 @@ function Yi() {
353
353
  function Re(x) {
354
354
  return Fe(x);
355
355
  }
356
- function Ve(x) {
356
+ function qe(x) {
357
357
  {
358
358
  var K = typeof Symbol == "function" && Symbol.toStringTag, te = K && x[Symbol.toStringTag] || x.constructor.name || "Object";
359
359
  return te;
@@ -371,7 +371,7 @@ function Yi() {
371
371
  }
372
372
  function ne(x) {
373
373
  if (Xe(x))
374
- return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(x)), Ze(x);
374
+ return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(x)), Ze(x);
375
375
  }
376
376
  var ue = E.ReactCurrentOwner, oe = {
377
377
  key: !0,
@@ -653,8 +653,8 @@ function Ai() {
653
653
  var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, g = n ? Symbol.for("react.suspense_list") : 60120, b = n ? Symbol.for("react.memo") : 60115, C = n ? Symbol.for("react.lazy") : 60116, w = n ? Symbol.for("react.block") : 60121, _ = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, O = n ? Symbol.for("react.scope") : 60119;
654
654
  function M(k) {
655
655
  if (typeof k == "object" && k !== null) {
656
- var q = k.$$typeof;
657
- switch (q) {
656
+ var G = k.$$typeof;
657
+ switch (G) {
658
658
  case a:
659
659
  switch (k = k.type, k) {
660
660
  case l:
@@ -673,11 +673,11 @@ function Ai() {
673
673
  case i:
674
674
  return k;
675
675
  default:
676
- return q;
676
+ return G;
677
677
  }
678
678
  }
679
679
  case t:
680
- return q;
680
+ return G;
681
681
  }
682
682
  }
683
683
  }
@@ -731,20 +731,20 @@ function Wi() {
731
731
  }
732
732
  function I(S) {
733
733
  if (typeof S == "object" && S !== null) {
734
- var N = S.$$typeof;
735
- switch (N) {
734
+ var L = S.$$typeof;
735
+ switch (L) {
736
736
  case a:
737
- var L = S.type;
738
- switch (L) {
737
+ var N = S.type;
738
+ switch (N) {
739
739
  case l:
740
740
  case u:
741
741
  case e:
742
742
  case o:
743
743
  case r:
744
744
  case f:
745
- return L;
745
+ return N;
746
746
  default:
747
- var Z = L && L.$$typeof;
747
+ var Z = N && N.$$typeof;
748
748
  switch (Z) {
749
749
  case s:
750
750
  case d:
@@ -753,15 +753,15 @@ function Wi() {
753
753
  case i:
754
754
  return Z;
755
755
  default:
756
- return N;
756
+ return L;
757
757
  }
758
758
  }
759
759
  case t:
760
- return N;
760
+ return L;
761
761
  }
762
762
  }
763
763
  }
764
- var k = l, q = u, A = s, X = i, B = a, le = d, J = e, se = C, j = b, $ = t, R = o, W = r, G = f, de = !1;
764
+ var k = l, G = u, A = s, X = i, B = a, le = d, J = e, se = C, j = b, $ = t, R = o, W = r, V = f, de = !1;
765
765
  function h(S) {
766
766
  return de || (de = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(S) || I(S) === l;
767
767
  }
@@ -795,13 +795,13 @@ function Wi() {
795
795
  function U(S) {
796
796
  return I(S) === o;
797
797
  }
798
- function V(S) {
798
+ function q(S) {
799
799
  return I(S) === r;
800
800
  }
801
801
  function P(S) {
802
802
  return I(S) === f;
803
803
  }
804
- Se.AsyncMode = k, Se.ConcurrentMode = q, Se.ContextConsumer = A, Se.ContextProvider = X, Se.Element = B, Se.ForwardRef = le, Se.Fragment = J, Se.Lazy = se, Se.Memo = j, Se.Portal = $, Se.Profiler = R, Se.StrictMode = W, Se.Suspense = G, Se.isAsyncMode = h, Se.isConcurrentMode = m, Se.isContextConsumer = y, Se.isContextProvider = v, Se.isElement = c, Se.isForwardRef = T, Se.isFragment = Q, Se.isLazy = z, Se.isMemo = F, Se.isPortal = H, Se.isProfiler = U, Se.isStrictMode = V, Se.isSuspense = P, Se.isValidElementType = M, Se.typeOf = I;
804
+ Se.AsyncMode = k, Se.ConcurrentMode = G, Se.ContextConsumer = A, Se.ContextProvider = X, Se.Element = B, Se.ForwardRef = le, Se.Fragment = J, Se.Lazy = se, Se.Memo = j, Se.Portal = $, Se.Profiler = R, Se.StrictMode = W, Se.Suspense = V, Se.isAsyncMode = h, Se.isConcurrentMode = m, Se.isContextConsumer = y, Se.isContextProvider = v, Se.isElement = c, Se.isForwardRef = T, Se.isFragment = Q, Se.isLazy = z, Se.isMemo = F, Se.isPortal = H, Se.isProfiler = U, Se.isStrictMode = q, Se.isSuspense = P, Se.isValidElementType = M, Se.typeOf = I;
805
805
  }()), Se;
806
806
  }
807
807
  var Ea;
@@ -956,7 +956,7 @@ function Bi() {
956
956
  arrayOf: M,
957
957
  element: I(),
958
958
  elementType: k(),
959
- instanceOf: q,
959
+ instanceOf: G,
960
960
  node: le(),
961
961
  objectOf: X,
962
962
  oneOf: A,
@@ -974,22 +974,22 @@ function Bi() {
974
974
  function _(m) {
975
975
  if (process.env.NODE_ENV !== "production")
976
976
  var y = {}, v = 0;
977
- function c(Q, z, F, H, U, V, P) {
978
- if (H = H || g, V = V || F, P !== t) {
977
+ function c(Q, z, F, H, U, q, P) {
978
+ if (H = H || g, q = q || F, P !== t) {
979
979
  if (l) {
980
980
  var S = new Error(
981
981
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
982
982
  );
983
983
  throw S.name = "Invariant Violation", S;
984
984
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
985
- var N = H + ":" + F;
986
- !y[N] && // Avoid spamming the console because they are often not actionable except for lib authors
985
+ var L = H + ":" + F;
986
+ !y[L] && // Avoid spamming the console because they are often not actionable except for lib authors
987
987
  v < 3 && (o(
988
- "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
989
- ), y[N] = !0, v++);
988
+ "You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
989
+ ), y[L] = !0, v++);
990
990
  }
991
991
  }
992
- return z[F] == null ? Q ? z[F] === null ? new w("The " + U + " `" + V + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new w("The " + U + " `" + V + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : m(z, F, H, U, V);
992
+ return z[F] == null ? Q ? z[F] === null ? new w("The " + U + " `" + q + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new w("The " + U + " `" + q + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : m(z, F, H, U, q);
993
993
  }
994
994
  var T = c.bind(null, !1);
995
995
  return T.isRequired = c.bind(null, !0), T;
@@ -998,9 +998,9 @@ function Bi() {
998
998
  function y(v, c, T, Q, z, F) {
999
999
  var H = v[c], U = W(H);
1000
1000
  if (U !== m) {
1001
- var V = G(H);
1001
+ var q = V(H);
1002
1002
  return new w(
1003
- "Invalid " + Q + " `" + z + "` of type " + ("`" + V + "` supplied to `" + T + "`, expected ") + ("`" + m + "`."),
1003
+ "Invalid " + Q + " `" + z + "` of type " + ("`" + q + "` supplied to `" + T + "`, expected ") + ("`" + m + "`."),
1004
1004
  { expectedType: m }
1005
1005
  );
1006
1006
  }
@@ -1021,9 +1021,9 @@ function Bi() {
1021
1021
  return new w("Invalid " + Q + " `" + z + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected an array."));
1022
1022
  }
1023
1023
  for (var U = 0; U < F.length; U++) {
1024
- var V = m(F, U, T, Q, z + "[" + U + "]", t);
1025
- if (V instanceof Error)
1026
- return V;
1024
+ var q = m(F, U, T, Q, z + "[" + U + "]", t);
1025
+ if (q instanceof Error)
1026
+ return q;
1027
1027
  }
1028
1028
  return null;
1029
1029
  }
@@ -1051,7 +1051,7 @@ function Bi() {
1051
1051
  }
1052
1052
  return _(m);
1053
1053
  }
1054
- function q(m) {
1054
+ function G(m) {
1055
1055
  function y(v, c, T, Q, z) {
1056
1056
  if (!(v[c] instanceof m)) {
1057
1057
  var F = m.name || g, H = h(v[c]);
@@ -1071,8 +1071,8 @@ function Bi() {
1071
1071
  if (C(F, m[H]))
1072
1072
  return null;
1073
1073
  var U = JSON.stringify(m, function(P, S) {
1074
- var N = G(S);
1075
- return N === "symbol" ? String(S) : S;
1074
+ var L = V(S);
1075
+ return L === "symbol" ? String(S) : S;
1076
1076
  });
1077
1077
  return new w("Invalid " + Q + " `" + z + "` of value `" + String(F) + "` " + ("supplied to `" + T + "`, expected one of " + U + "."));
1078
1078
  }
@@ -1087,9 +1087,9 @@ function Bi() {
1087
1087
  return new w("Invalid " + Q + " `" + z + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected an object."));
1088
1088
  for (var U in F)
1089
1089
  if (e(F, U)) {
1090
- var V = m(F, U, T, Q, z + "." + U, t);
1091
- if (V instanceof Error)
1092
- return V;
1090
+ var q = m(F, U, T, Q, z + "." + U, t);
1091
+ if (q instanceof Error)
1092
+ return q;
1093
1093
  }
1094
1094
  return null;
1095
1095
  }
@@ -1106,14 +1106,14 @@ function Bi() {
1106
1106
  ), i;
1107
1107
  }
1108
1108
  function c(T, Q, z, F, H) {
1109
- for (var U = [], V = 0; V < m.length; V++) {
1110
- var P = m[V], S = P(T, Q, z, F, H, t);
1109
+ for (var U = [], q = 0; q < m.length; q++) {
1110
+ var P = m[q], S = P(T, Q, z, F, H, t);
1111
1111
  if (S == null)
1112
1112
  return null;
1113
1113
  S.data && e(S.data, "expectedType") && U.push(S.data.expectedType);
1114
1114
  }
1115
- var N = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
1116
- return new w("Invalid " + F + " `" + H + "` supplied to " + ("`" + z + "`" + N + "."));
1115
+ var L = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
1116
+ return new w("Invalid " + F + " `" + H + "` supplied to " + ("`" + z + "`" + L + "."));
1117
1117
  }
1118
1118
  return _(c);
1119
1119
  }
@@ -1134,10 +1134,10 @@ function Bi() {
1134
1134
  if (H !== "object")
1135
1135
  return new w("Invalid " + Q + " `" + z + "` of type `" + H + "` " + ("supplied to `" + T + "`, expected `object`."));
1136
1136
  for (var U in m) {
1137
- var V = m[U];
1138
- if (typeof V != "function")
1139
- return J(T, Q, z, U, G(V));
1140
- var P = V(F, U, T, Q, z + "." + U, t);
1137
+ var q = m[U];
1138
+ if (typeof q != "function")
1139
+ return J(T, Q, z, U, V(q));
1140
+ var P = q(F, U, T, Q, z + "." + U, t);
1141
1141
  if (P)
1142
1142
  return P;
1143
1143
  }
@@ -1151,16 +1151,16 @@ function Bi() {
1151
1151
  if (H !== "object")
1152
1152
  return new w("Invalid " + Q + " `" + z + "` of type `" + H + "` " + ("supplied to `" + T + "`, expected `object`."));
1153
1153
  var U = a({}, v[c], m);
1154
- for (var V in U) {
1155
- var P = m[V];
1156
- if (e(m, V) && typeof P != "function")
1157
- return J(T, Q, z, V, G(P));
1154
+ for (var q in U) {
1155
+ var P = m[q];
1156
+ if (e(m, q) && typeof P != "function")
1157
+ return J(T, Q, z, q, V(P));
1158
1158
  if (!P)
1159
1159
  return new w(
1160
- "Invalid " + Q + " `" + z + "` key `" + V + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(v[c], null, " ") + `
1160
+ "Invalid " + Q + " `" + z + "` key `" + q + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(v[c], null, " ") + `
1161
1161
  Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
1162
1162
  );
1163
- var S = P(F, V, T, Q, z + "." + V, t);
1163
+ var S = P(F, q, T, Q, z + "." + q, t);
1164
1164
  if (S)
1165
1165
  return S;
1166
1166
  }
@@ -1208,7 +1208,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
1208
1208
  var y = typeof m;
1209
1209
  return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : R(y, m) ? "symbol" : y;
1210
1210
  }
1211
- function G(m) {
1211
+ function V(m) {
1212
1212
  if (typeof m > "u" || m === null)
1213
1213
  return "" + m;
1214
1214
  var y = W(m);
@@ -1221,7 +1221,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
1221
1221
  return y;
1222
1222
  }
1223
1223
  function de(m) {
1224
- var y = G(m);
1224
+ var y = V(m);
1225
1225
  switch (y) {
1226
1226
  case "array":
1227
1227
  case "object":
@@ -1241,7 +1241,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
1241
1241
  }, kr;
1242
1242
  }
1243
1243
  var _r, Ra;
1244
- function Vi() {
1244
+ function qi() {
1245
1245
  if (Ra) return _r;
1246
1246
  Ra = 1;
1247
1247
  var n = ta();
@@ -1289,10 +1289,10 @@ function Vi() {
1289
1289
  }, _r;
1290
1290
  }
1291
1291
  if (process.env.NODE_ENV !== "production") {
1292
- var qi = Io(), Gi = !0;
1293
- Hr.exports = Bi()(qi.isElement, Gi);
1292
+ var Vi = Io(), Gi = !0;
1293
+ Hr.exports = Bi()(Vi.isElement, Gi);
1294
1294
  } else
1295
- Hr.exports = Vi()();
1295
+ Hr.exports = qi()();
1296
1296
  var Qi = Hr.exports;
1297
1297
  const D = /* @__PURE__ */ jo(Qi), Ui = ({
1298
1298
  title: n = "",
@@ -1552,10 +1552,10 @@ function rs(n) {
1552
1552
  return ++n;
1553
1553
  };
1554
1554
  }
1555
- var as = rs(), Vr, jn = {}, Cr = {}, os = ["touchstart", "touchmove"], is = "ignore-react-onclickoutside";
1555
+ var as = rs(), qr, jn = {}, Cr = {}, os = ["touchstart", "touchmove"], is = "ignore-react-onclickoutside";
1556
1556
  function Ia(n, a) {
1557
1557
  var t = {}, e = os.indexOf(a) !== -1;
1558
- return e && Vr && (t.passive = !n.props.preventDefault), t;
1558
+ return e && qr && (t.passive = !n.props.preventDefault), t;
1559
1559
  }
1560
1560
  function sr(n, a) {
1561
1561
  var t, e, r = n.displayName || n.name || "Component";
@@ -1583,7 +1583,7 @@ function sr(n, a) {
1583
1583
  return typeof d.setClickOutsideRef == "function" ? d.setClickOutsideRef() : Fi(d);
1584
1584
  }, u.enableOnClickOutside = function() {
1585
1585
  if (!(typeof document > "u" || Cr[u._uid])) {
1586
- typeof Vr > "u" && (Vr = ns()), Cr[u._uid] = !0;
1586
+ typeof qr > "u" && (qr = ns()), Cr[u._uid] = !0;
1587
1587
  var d = u.props.eventTypes;
1588
1588
  d.forEach || (d = [d]), jn[u._uid] = function(f) {
1589
1589
  if (u.componentNode !== null && !(u.initTimeStamp > f.timeStamp) && (u.props.preventDefault && f.preventDefault(), u.props.stopPropagation && f.stopPropagation(), !(u.props.excludeScrollbar && ts(f)))) {
@@ -1625,7 +1625,7 @@ function sr(n, a) {
1625
1625
  var d = Zi(u, ["excludeScrollbar"]);
1626
1626
  return n.prototype && n.prototype.isReactComponent ? d.ref = this.getRef : d.wrappedRef = this.getRef, d.disableOnClickOutside = this.disableOnClickOutside, d.enableOnClickOutside = this.enableOnClickOutside, Po(n, d);
1627
1627
  }, i;
1628
- }(qe), t.displayName = "OnClickOutside(" + r + ")", t.defaultProps = {
1628
+ }(Ve), t.displayName = "OnClickOutside(" + r + ")", t.defaultProps = {
1629
1629
  eventTypes: ["mousedown", "touchstart"],
1630
1630
  excludeScrollbar: !1,
1631
1631
  outsideClickIgnoreClass: is,
@@ -1654,7 +1654,7 @@ const Yo = 6048e5, ss = 864e5, lr = 6e4, cr = 36e5, ls = 1e3;
1654
1654
  function cs(n, a) {
1655
1655
  return na(n, a * cr);
1656
1656
  }
1657
- function qr(n, a) {
1657
+ function Vr(n, a) {
1658
1658
  return na(n, a * lr);
1659
1659
  }
1660
1660
  function pt(n, a) {
@@ -1711,12 +1711,12 @@ function zn(n, a) {
1711
1711
  const t = ae(n), e = ae(a), r = t.getFullYear() - e.getFullYear(), o = t.getMonth() - e.getMonth();
1712
1712
  return r * 12 + o;
1713
1713
  }
1714
- function Vt(n) {
1714
+ function qt(n) {
1715
1715
  const a = ae(n);
1716
1716
  return Math.trunc(a.getMonth() / 3) + 1;
1717
1717
  }
1718
1718
  function Kn(n, a) {
1719
- const t = ae(n), e = ae(a), r = t.getFullYear() - e.getFullYear(), o = Vt(t) - Vt(e);
1719
+ const t = ae(n), e = ae(a), r = t.getFullYear() - e.getFullYear(), o = qt(t) - qt(e);
1720
1720
  return r * 4 + o;
1721
1721
  }
1722
1722
  function Xn(n, a) {
@@ -2126,7 +2126,7 @@ const Ns = /^(\d+)(th|st|nd|rd)?/i, Rs = /\d+/i, js = {
2126
2126
  evening: /evening/i,
2127
2127
  night: /night/i
2128
2128
  }
2129
- }, Vs = {
2129
+ }, qs = {
2130
2130
  ordinalNumber: $o({
2131
2131
  matchPattern: Ns,
2132
2132
  parsePattern: Rs,
@@ -2169,7 +2169,7 @@ const Ns = /^(\d+)(th|st|nd|rd)?/i, Rs = /\d+/i, js = {
2169
2169
  formatLong: bs,
2170
2170
  formatRelative: xs,
2171
2171
  localize: Os,
2172
- match: Vs,
2172
+ match: qs,
2173
2173
  options: {
2174
2174
  weekStartsOn: 0,
2175
2175
  firstWeekContainsDate: 1
@@ -2179,7 +2179,7 @@ function ur(n) {
2179
2179
  const a = ae(n), t = Me(n, 0);
2180
2180
  return t.setFullYear(a.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
2181
2181
  }
2182
- function qs(n) {
2182
+ function Vs(n) {
2183
2183
  const a = ae(n);
2184
2184
  return xn(a, ur(a)) + 1;
2185
2185
  }
@@ -2221,7 +2221,7 @@ function Qs(n, a) {
2221
2221
  const t = Kt(), e = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((l = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = oa(n, a), o = Me(n, 0);
2222
2222
  return o.setFullYear(r, 0, e), o.setHours(0, 0, 0, 0), ht(o, a);
2223
2223
  }
2224
- function Vo(n, a) {
2224
+ function qo(n, a) {
2225
2225
  const t = ae(n), e = +ht(t, a) - +Qs(t, a);
2226
2226
  return Math.round(e / Yo) + 1;
2227
2227
  }
@@ -2450,7 +2450,7 @@ const Pt = {
2450
2450
  },
2451
2451
  // Local week of year
2452
2452
  w: function(n, a, t, e) {
2453
- const r = Vo(n, e);
2453
+ const r = qo(n, e);
2454
2454
  return a === "wo" ? t.ordinalNumber(r, { unit: "week" }) : Ee(r, a.length);
2455
2455
  },
2456
2456
  // ISO week of year
@@ -2464,7 +2464,7 @@ const Pt = {
2464
2464
  },
2465
2465
  // Day of year
2466
2466
  D: function(n, a, t) {
2467
- const e = qs(n);
2467
+ const e = Vs(n);
2468
2468
  return a === "Do" ? t.ordinalNumber(e, { unit: "dayOfYear" }) : Ee(e, a.length);
2469
2469
  },
2470
2470
  // Day of week
@@ -2803,7 +2803,7 @@ const Aa = (n, a) => {
2803
2803
  default:
2804
2804
  return a.date({ width: "full" });
2805
2805
  }
2806
- }, qo = (n, a) => {
2806
+ }, Vo = (n, a) => {
2807
2807
  switch (n) {
2808
2808
  case "p":
2809
2809
  return a.time({ width: "short" });
@@ -2835,9 +2835,9 @@ const Aa = (n, a) => {
2835
2835
  o = a.dateTime({ width: "full" });
2836
2836
  break;
2837
2837
  }
2838
- return o.replace("{{date}}", Aa(e, a)).replace("{{time}}", qo(r, a));
2838
+ return o.replace("{{date}}", Aa(e, a)).replace("{{time}}", Vo(r, a));
2839
2839
  }, Zn = {
2840
- p: qo,
2840
+ p: Vo,
2841
2841
  P: Us
2842
2842
  }, zs = /^D+$/, Ks = /^Y+$/, Xs = ["D", "DD", "YY", "YYYY"];
2843
2843
  function Go(n) {
@@ -3599,7 +3599,7 @@ class _l extends ke {
3599
3599
  }
3600
3600
  }
3601
3601
  function Cl(n, a, t) {
3602
- const e = ae(n), r = Vo(e, t) - a;
3602
+ const e = ae(n), r = qo(e, t) - a;
3603
3603
  return e.setDate(e.getDate() - r * 7), e;
3604
3604
  }
3605
3605
  class Sl extends ke {
@@ -4215,7 +4215,7 @@ class Bl extends ke {
4215
4215
  return t.setHours(r, 0, 0, 0), t;
4216
4216
  }
4217
4217
  }
4218
- class Vl extends ke {
4218
+ class ql extends ke {
4219
4219
  constructor() {
4220
4220
  super(...arguments);
4221
4221
  re(this, "priority", 70);
@@ -4238,7 +4238,7 @@ class Vl extends ke {
4238
4238
  return t.getHours() >= 12 && r < 12 ? t.setHours(r + 12, 0, 0, 0) : t.setHours(r, 0, 0, 0), t;
4239
4239
  }
4240
4240
  }
4241
- class ql extends ke {
4241
+ class Vl extends ke {
4242
4242
  constructor() {
4243
4243
  super(...arguments);
4244
4244
  re(this, "priority", 70);
@@ -4445,8 +4445,8 @@ const Jl = {
4445
4445
  B: new $l(),
4446
4446
  h: new Hl(),
4447
4447
  H: new Bl(),
4448
- K: new Vl(),
4449
- k: new ql(),
4448
+ K: new ql(),
4449
+ k: new Vl(),
4450
4450
  m: new Gl(),
4451
4451
  s: new Ql(),
4452
4452
  S: new Ul(),
@@ -4456,8 +4456,8 @@ const Jl = {
4456
4456
  T: new Zl()
4457
4457
  }, ec = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, nc = /^'([^]*?)'?$/, rc = /''/g, ac = /\S/, oc = /[a-zA-Z]/;
4458
4458
  function Sr(n, a, t, e) {
4459
- var w, _, E, O, M, I, k, q;
4460
- const r = dl(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? Ho, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((_ = (w = e == null ? void 0 : e.locale) == null ? void 0 : w.options) == null ? void 0 : _.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (E = r.locale) == null ? void 0 : E.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((I = (M = e == null ? void 0 : e.locale) == null ? void 0 : M.options) == null ? void 0 : I.weekStartsOn) ?? r.weekStartsOn ?? ((q = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : q.weekStartsOn) ?? 0;
4459
+ var w, _, E, O, M, I, k, G;
4460
+ const r = dl(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? Ho, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((_ = (w = e == null ? void 0 : e.locale) == null ? void 0 : w.options) == null ? void 0 : _.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (E = r.locale) == null ? void 0 : E.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((I = (M = e == null ? void 0 : e.locale) == null ? void 0 : M.options) == null ? void 0 : I.weekStartsOn) ?? r.weekStartsOn ?? ((G = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : G.weekStartsOn) ?? 0;
4461
4461
  if (a === "")
4462
4462
  return n === "" ? ae(t) : Me(t, NaN);
4463
4463
  const l = {
@@ -4673,7 +4673,7 @@ function en(n, a) {
4673
4673
  const t = ae(n), e = Math.trunc(t.getMonth() / 3) + 1, r = a - e;
4674
4674
  return st(t, t.getMonth() + r * 3);
4675
4675
  }
4676
- function Vn(n, a) {
4676
+ function qn(n, a) {
4677
4677
  const t = ae(n);
4678
4678
  return t.setSeconds(a), t;
4679
4679
  }
@@ -4694,7 +4694,7 @@ function on(n, a) {
4694
4694
  function ei(n, a) {
4695
4695
  return ra(n, -a);
4696
4696
  }
4697
- function Va(n, a) {
4697
+ function qa(n, a) {
4698
4698
  return Qn(n, -a);
4699
4699
  }
4700
4700
  function sn(n, a) {
@@ -4720,7 +4720,7 @@ function rt(n) {
4720
4720
  function Ct(n) {
4721
4721
  return n instanceof HTMLElement || n instanceof lt(n).HTMLElement;
4722
4722
  }
4723
- function qa(n) {
4723
+ function Va(n) {
4724
4724
  return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof lt(n).ShadowRoot;
4725
4725
  }
4726
4726
  function En(n) {
@@ -4784,10 +4784,10 @@ function Yt(n) {
4784
4784
  // Step into the shadow DOM of the parent of a slotted node.
4785
4785
  n.assignedSlot || // DOM Element detected.
4786
4786
  n.parentNode || // ShadowRoot detected.
4787
- qa(n) && n.host || // Fallback.
4787
+ Va(n) && n.host || // Fallback.
4788
4788
  Tt(n)
4789
4789
  );
4790
- return qa(a) ? a.host : a;
4790
+ return Va(a) ? a.host : a;
4791
4791
  }
4792
4792
  function ni(n) {
4793
4793
  const a = Yt(n);
@@ -4799,7 +4799,7 @@ function kn(n, a, t) {
4799
4799
  const r = ni(n), o = r === ((e = n.ownerDocument) == null ? void 0 : e.body), i = lt(r);
4800
4800
  return o ? a.concat(i, i.visualViewport || [], En(r) ? r : [], i.frameElement && t ? kn(i.frameElement) : []) : a.concat(r, kn(r, [], t));
4801
4801
  }
4802
- const cn = Math.min, qt = Math.max, tr = Math.round, Fn = Math.floor, At = (n) => ({
4802
+ const cn = Math.min, Vt = Math.max, tr = Math.round, Fn = Math.floor, At = (n) => ({
4803
4803
  x: n,
4804
4804
  y: n
4805
4805
  }), Mc = {
@@ -4812,7 +4812,7 @@ const cn = Math.min, qt = Math.max, tr = Math.round, Fn = Math.floor, At = (n) =
4812
4812
  end: "start"
4813
4813
  };
4814
4814
  function Tc(n, a, t) {
4815
- return qt(n, cn(a, t));
4815
+ return Vt(n, cn(a, t));
4816
4816
  }
4817
4817
  function pr(n, a) {
4818
4818
  return typeof n == "function" ? n(a) : n;
@@ -5079,17 +5079,17 @@ const Ac = (n) => ({
5079
5079
  const f = ri(d), g = {
5080
5080
  x: t,
5081
5081
  y: e
5082
- }, b = da(r), C = ua(b), w = await i.getDimensions(u), _ = b === "y", E = _ ? "top" : "left", O = _ ? "bottom" : "right", M = _ ? "clientHeight" : "clientWidth", I = o.reference[C] + o.reference[b] - g[b] - o.floating[C], k = g[b] - o.reference[b], q = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
5083
- let A = q ? q[M] : 0;
5084
- (!A || !await (i.isElement == null ? void 0 : i.isElement(q))) && (A = s.floating[M] || o.floating[C]);
5085
- const X = I / 2 - k / 2, B = A / 2 - w[C] / 2 - 1, le = cn(f[E], B), J = cn(f[O], B), se = le, j = A - w[C] - J, $ = A / 2 - w[C] / 2 + X, R = Tc(se, $, j), W = !l.arrow && Mn(r) != null && $ !== R && o.reference[C] / 2 - ($ < se ? le : J) - w[C] / 2 < 0, G = W ? $ < se ? $ - se : $ - j : 0;
5082
+ }, b = da(r), C = ua(b), w = await i.getDimensions(u), _ = b === "y", E = _ ? "top" : "left", O = _ ? "bottom" : "right", M = _ ? "clientHeight" : "clientWidth", I = o.reference[C] + o.reference[b] - g[b] - o.floating[C], k = g[b] - o.reference[b], G = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
5083
+ let A = G ? G[M] : 0;
5084
+ (!A || !await (i.isElement == null ? void 0 : i.isElement(G))) && (A = s.floating[M] || o.floating[C]);
5085
+ const X = I / 2 - k / 2, B = A / 2 - w[C] / 2 - 1, le = cn(f[E], B), J = cn(f[O], B), se = le, j = A - w[C] - J, $ = A / 2 - w[C] / 2 + X, R = Tc(se, $, j), W = !l.arrow && Mn(r) != null && $ !== R && o.reference[C] / 2 - ($ < se ? le : J) - w[C] / 2 < 0, V = W ? $ < se ? $ - se : $ - j : 0;
5086
5086
  return {
5087
- [b]: g[b] + G,
5087
+ [b]: g[b] + V,
5088
5088
  data: {
5089
5089
  [b]: R,
5090
- centerOffset: $ - R - G,
5090
+ centerOffset: $ - R - V,
5091
5091
  ...W && {
5092
- alignmentOffset: G
5092
+ alignmentOffset: V
5093
5093
  }
5094
5094
  },
5095
5095
  reset: W
@@ -5119,8 +5119,8 @@ const Ac = (n) => ({
5119
5119
  } = pr(n, a);
5120
5120
  if ((t = o.arrow) != null && t.alignmentOffset)
5121
5121
  return {};
5122
- const E = un(r), O = _n(s), M = un(s) === s, I = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = g || (M || !w ? [nr(s)] : Rc(s)), q = C !== "none";
5123
- !g && q && k.push(...Ic(s, w, C, I));
5122
+ const E = un(r), O = _n(s), M = un(s) === s, I = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = g || (M || !w ? [nr(s)] : Rc(s)), G = C !== "none";
5123
+ !g && G && k.push(...Ic(s, w, C, I));
5124
5124
  const A = [s, ...k], X = await Yc(a, _), B = [];
5125
5125
  let le = ((e = o.flip) == null ? void 0 : e.overflows) || [];
5126
5126
  if (d && B.push(X[E]), f) {
@@ -5143,13 +5143,13 @@ const Ac = (n) => ({
5143
5143
  placement: R
5144
5144
  }
5145
5145
  };
5146
- let W = (se = le.filter((G) => G.overflows[0] <= 0).sort((G, de) => G.overflows[1] - de.overflows[1])[0]) == null ? void 0 : se.placement;
5146
+ let W = (se = le.filter((V) => V.overflows[0] <= 0).sort((V, de) => V.overflows[1] - de.overflows[1])[0]) == null ? void 0 : se.placement;
5147
5147
  if (!W)
5148
5148
  switch (b) {
5149
5149
  case "bestFit": {
5150
5150
  var j;
5151
- const G = (j = le.filter((de) => {
5152
- if (q) {
5151
+ const V = (j = le.filter((de) => {
5152
+ if (G) {
5153
5153
  const h = _n(de.placement);
5154
5154
  return h === O || // Create a bias to the `y` side axis due to horizontal
5155
5155
  // reading directions favoring greater width.
@@ -5157,7 +5157,7 @@ const Ac = (n) => ({
5157
5157
  }
5158
5158
  return !0;
5159
5159
  }).map((de) => [de.placement, de.overflows.filter((h) => h > 0).reduce((h, m) => h + m, 0)]).sort((de, h) => de[1] - h[1])[0]) == null ? void 0 : j[0];
5160
- G && (W = G);
5160
+ V && (W = V);
5161
5161
  break;
5162
5162
  }
5163
5163
  case "initialPlacement":
@@ -5262,7 +5262,7 @@ function oi(n) {
5262
5262
  y: a.visualViewport.offsetTop
5263
5263
  };
5264
5264
  }
5265
- function Vc(n, a, t) {
5265
+ function qc(n, a, t) {
5266
5266
  return a === void 0 && (a = !1), !t || a && t !== lt(n) ? !1 : a;
5267
5267
  }
5268
5268
  function zt(n, a, t, e) {
@@ -5270,7 +5270,7 @@ function zt(n, a, t, e) {
5270
5270
  const r = n.getBoundingClientRect(), o = fa(n);
5271
5271
  let i = At(1);
5272
5272
  a && (e ? rt(e) && (i = nn(e)) : i = nn(n));
5273
- const s = Vc(o, t, e) ? oi(o) : At(0);
5273
+ const s = qc(o, t, e) ? oi(o) : At(0);
5274
5274
  let l = (r.left + s.x) / i.x, u = (r.top + s.y) / i.y, d = r.width / i.x, f = r.height / i.y;
5275
5275
  if (o) {
5276
5276
  const g = lt(o), b = e && rt(e) ? lt(e) : e;
@@ -5287,7 +5287,7 @@ function zt(n, a, t, e) {
5287
5287
  y: u
5288
5288
  });
5289
5289
  }
5290
- function qc(n) {
5290
+ function Vc(n) {
5291
5291
  let {
5292
5292
  elements: a,
5293
5293
  rect: t,
@@ -5320,10 +5320,10 @@ function ii(n) {
5320
5320
  return zt(Tt(n)).left + fr(n).scrollLeft;
5321
5321
  }
5322
5322
  function Qc(n) {
5323
- const a = Tt(n), t = fr(n), e = n.ownerDocument.body, r = qt(a.scrollWidth, a.clientWidth, e.scrollWidth, e.clientWidth), o = qt(a.scrollHeight, a.clientHeight, e.scrollHeight, e.clientHeight);
5323
+ const a = Tt(n), t = fr(n), e = n.ownerDocument.body, r = Vt(a.scrollWidth, a.clientWidth, e.scrollWidth, e.clientWidth), o = Vt(a.scrollHeight, a.clientHeight, e.scrollHeight, e.clientHeight);
5324
5324
  let i = -t.scrollLeft + ii(n);
5325
5325
  const s = -t.scrollTop;
5326
- return dt(e).direction === "rtl" && (i += qt(a.clientWidth, e.clientWidth) - r), {
5326
+ return dt(e).direction === "rtl" && (i += Vt(a.clientWidth, e.clientWidth) - r), {
5327
5327
  width: r,
5328
5328
  height: o,
5329
5329
  x: i,
@@ -5398,7 +5398,7 @@ function Xc(n) {
5398
5398
  } = n;
5399
5399
  const i = [...t === "clippingAncestors" ? dr(a) ? [] : Kc(a, this._c) : [].concat(t), e], s = i[0], l = i.reduce((u, d) => {
5400
5400
  const f = Qa(a, d, r);
5401
- return u.top = qt(f.top, u.top), u.right = cn(f.right, u.right), u.bottom = cn(f.bottom, u.bottom), u.left = qt(f.left, u.left), u;
5401
+ return u.top = Vt(f.top, u.top), u.right = cn(f.right, u.right), u.bottom = cn(f.bottom, u.bottom), u.left = Vt(f.left, u.left), u;
5402
5402
  }, Qa(a, s, r));
5403
5403
  return {
5404
5404
  width: l.right - l.left,
@@ -5477,7 +5477,7 @@ function tu(n) {
5477
5477
  return dt(n).direction === "rtl";
5478
5478
  }
5479
5479
  const nu = {
5480
- convertOffsetParentRelativeRectToViewportRelativeRect: qc,
5480
+ convertOffsetParentRelativeRectToViewportRelativeRect: Vc,
5481
5481
  getDocumentElement: Tt,
5482
5482
  getClippingRect: Xc,
5483
5483
  getOffsetParent: li,
@@ -5507,15 +5507,15 @@ function ru(n, a) {
5507
5507
  return;
5508
5508
  const b = Fn(d), C = Fn(r.clientWidth - (u + f)), w = Fn(r.clientHeight - (d + g)), _ = Fn(u), O = {
5509
5509
  rootMargin: -b + "px " + -C + "px " + -w + "px " + -_ + "px",
5510
- threshold: qt(0, cn(1, l)) || 1
5510
+ threshold: Vt(0, cn(1, l)) || 1
5511
5511
  };
5512
5512
  let M = !0;
5513
5513
  function I(k) {
5514
- const q = k[0].intersectionRatio;
5515
- if (q !== l) {
5514
+ const G = k[0].intersectionRatio;
5515
+ if (G !== l) {
5516
5516
  if (!M)
5517
5517
  return i();
5518
- q ? i(!1, q) : e = setTimeout(() => {
5518
+ G ? i(!1, G) : e = setTimeout(() => {
5519
5519
  i(!1, 1e-7);
5520
5520
  }, 1e3);
5521
5521
  }
@@ -5583,7 +5583,7 @@ const ou = Hc, iu = Wc, za = Ac, su = (n, a, t) => {
5583
5583
  platform: o
5584
5584
  });
5585
5585
  };
5586
- var qn = typeof document < "u" ? No : We;
5586
+ var Vn = typeof document < "u" ? No : We;
5587
5587
  function ar(n, a) {
5588
5588
  if (n === a)
5589
5589
  return !0;
@@ -5623,7 +5623,7 @@ function Ka(n, a) {
5623
5623
  }
5624
5624
  function Xa(n) {
5625
5625
  const a = fe.useRef(n);
5626
- return qn(() => {
5626
+ return Vn(() => {
5627
5627
  a.current = n;
5628
5628
  }), a;
5629
5629
  }
@@ -5650,19 +5650,19 @@ function lu(n) {
5650
5650
  isPositioned: !1
5651
5651
  }), [g, b] = fe.useState(e);
5652
5652
  ar(g, e) || b(e);
5653
- const [C, w] = fe.useState(null), [_, E] = fe.useState(null), O = fe.useCallback((G) => {
5654
- G !== q.current && (q.current = G, w(G));
5655
- }, []), M = fe.useCallback((G) => {
5656
- G !== A.current && (A.current = G, E(G));
5657
- }, []), I = o || C, k = i || _, q = fe.useRef(null), A = fe.useRef(null), X = fe.useRef(d), B = l != null, le = Xa(l), J = Xa(r), se = fe.useCallback(() => {
5658
- if (!q.current || !A.current)
5653
+ const [C, w] = fe.useState(null), [_, E] = fe.useState(null), O = fe.useCallback((V) => {
5654
+ V !== G.current && (G.current = V, w(V));
5655
+ }, []), M = fe.useCallback((V) => {
5656
+ V !== A.current && (A.current = V, E(V));
5657
+ }, []), I = o || C, k = i || _, G = fe.useRef(null), A = fe.useRef(null), X = fe.useRef(d), B = l != null, le = Xa(l), J = Xa(r), se = fe.useCallback(() => {
5658
+ if (!G.current || !A.current)
5659
5659
  return;
5660
- const G = {
5660
+ const V = {
5661
5661
  placement: a,
5662
5662
  strategy: t,
5663
5663
  middleware: g
5664
5664
  };
5665
- J.current && (G.platform = J.current), su(q.current, A.current, G).then((de) => {
5665
+ J.current && (V.platform = J.current), su(G.current, A.current, V).then((de) => {
5666
5666
  const h = {
5667
5667
  ...de,
5668
5668
  isPositioned: !0
@@ -5672,24 +5672,24 @@ function lu(n) {
5672
5672
  }));
5673
5673
  });
5674
5674
  }, [g, a, t, J]);
5675
- qn(() => {
5676
- u === !1 && X.current.isPositioned && (X.current.isPositioned = !1, f((G) => ({
5677
- ...G,
5675
+ Vn(() => {
5676
+ u === !1 && X.current.isPositioned && (X.current.isPositioned = !1, f((V) => ({
5677
+ ...V,
5678
5678
  isPositioned: !1
5679
5679
  })));
5680
5680
  }, [u]);
5681
5681
  const j = fe.useRef(!1);
5682
- qn(() => (j.current = !0, () => {
5682
+ Vn(() => (j.current = !0, () => {
5683
5683
  j.current = !1;
5684
- }), []), qn(() => {
5685
- if (I && (q.current = I), k && (A.current = k), I && k) {
5684
+ }), []), Vn(() => {
5685
+ if (I && (G.current = I), k && (A.current = k), I && k) {
5686
5686
  if (le.current)
5687
5687
  return le.current(I, k, se);
5688
5688
  se();
5689
5689
  }
5690
5690
  }, [I, k, se, le, B]);
5691
5691
  const $ = fe.useMemo(() => ({
5692
- reference: q,
5692
+ reference: G,
5693
5693
  floating: A,
5694
5694
  setReference: O,
5695
5695
  setFloating: M
@@ -5697,16 +5697,16 @@ function lu(n) {
5697
5697
  reference: I,
5698
5698
  floating: k
5699
5699
  }), [I, k]), W = fe.useMemo(() => {
5700
- const G = {
5700
+ const V = {
5701
5701
  position: t,
5702
5702
  left: 0,
5703
5703
  top: 0
5704
5704
  };
5705
5705
  if (!R.floating)
5706
- return G;
5706
+ return V;
5707
5707
  const de = Ka(R.floating, d.x), h = Ka(R.floating, d.y);
5708
5708
  return s ? {
5709
- ...G,
5709
+ ...V,
5710
5710
  transform: "translate(" + de + "px, " + h + "px)",
5711
5711
  ...ci(R.floating) >= 1.5 && {
5712
5712
  willChange: "transform"
@@ -5848,10 +5848,10 @@ const xu = /* @__PURE__ */ fe.forwardRef(function(a, t) {
5848
5848
  dt(r).direction === "rtl" && O(!0);
5849
5849
  }, [r]), !r)
5850
5850
  return null;
5851
- const M = u * 2, I = M / 2, k = i / 2 * (l / -8 + 1), q = s / 2 * l / 4, [A, X] = e.split("-"), B = !!g, le = A === "top" || A === "bottom", J = d && X === "end" ? "bottom" : "top";
5851
+ const M = u * 2, I = M / 2, k = i / 2 * (l / -8 + 1), G = s / 2 * l / 4, [A, X] = e.split("-"), B = !!g, le = A === "top" || A === "bottom", J = d && X === "end" ? "bottom" : "top";
5852
5852
  let se = d && X === "end" ? "right" : "left";
5853
5853
  d && E && (se = X === "end" ? "left" : "right");
5854
- const j = (o == null ? void 0 : o.x) != null ? d || o.x : "", $ = (o == null ? void 0 : o.y) != null ? d || o.y : "", R = g || "M0,0" + (" H" + i) + (" L" + (i - k) + "," + (s - q)) + (" Q" + i / 2 + "," + s + " " + k + "," + (s - q)) + " Z", W = {
5854
+ const j = (o == null ? void 0 : o.x) != null ? d || o.x : "", $ = (o == null ? void 0 : o.y) != null ? d || o.y : "", R = g || "M0,0" + (" H" + i) + (" L" + (i - k) + "," + (s - G)) + (" Q" + i / 2 + "," + s + " " + k + "," + (s - G)) + " Z", W = {
5855
5855
  top: B ? "rotate(180deg)" : "",
5856
5856
  left: B ? "rotate(90deg)" : "rotate(-90deg)",
5857
5857
  bottom: B ? "" : "rotate(180deg)",
@@ -6132,7 +6132,7 @@ function Ru(n, a) {
6132
6132
  }
6133
6133
  function Or(n, a) {
6134
6134
  var t = a.hour, e = t === void 0 ? 0 : t, r = a.minute, o = r === void 0 ? 0 : r, i = a.second, s = i === void 0 ? 0 : i;
6135
- return Hn(Bn(Vn(n, s), o), e);
6135
+ return Hn(Bn(qn(n, s), o), e);
6136
6136
  }
6137
6137
  function ju(n) {
6138
6138
  return aa(n);
@@ -6299,7 +6299,7 @@ function Zr(n, a) {
6299
6299
  }) || s && !s(Oe(l)) || !1;
6300
6300
  }
6301
6301
  function An(n, a, t, e) {
6302
- var r = me(n), o = Vt(n), i = me(a), s = Vt(a), l = me(e);
6302
+ var r = me(n), o = qt(n), i = me(a), s = qt(a), l = me(e);
6303
6303
  return r === i && r === l ? o <= t && t <= s : r < i ? l === r && o <= t || l === i && s >= t || l < i && l > r : !1;
6304
6304
  }
6305
6305
  function Tn(n, a) {
@@ -6320,11 +6320,11 @@ function oo(n, a) {
6320
6320
  if (!t || !e)
6321
6321
  throw new Error("Both minTime and maxTime props required");
6322
6322
  var r = Oe();
6323
- r = Hn(r, kt(n)), r = Bn(r, _t(n)), r = Vn(r, Ot(n));
6323
+ r = Hn(r, kt(n)), r = Bn(r, _t(n)), r = qn(r, Ot(n));
6324
6324
  var o = Oe();
6325
- o = Hn(o, kt(t)), o = Bn(o, _t(t)), o = Vn(o, Ot(t));
6325
+ o = Hn(o, kt(t)), o = Bn(o, _t(t)), o = qn(o, Ot(t));
6326
6326
  var i = Oe();
6327
- i = Hn(i, kt(e)), i = Bn(i, _t(e)), i = Vn(i, Ot(e));
6327
+ i = Hn(i, kt(e)), i = Bn(i, _t(e)), i = qn(i, Ot(e));
6328
6328
  var s;
6329
6329
  try {
6330
6330
  s = !Dn(r, { start: o, end: i });
@@ -6351,7 +6351,7 @@ function Bu(n, a) {
6351
6351
  return Kn(s, i) > 0;
6352
6352
  }) || !1;
6353
6353
  }
6354
- function Vu(n, a) {
6354
+ function qu(n, a) {
6355
6355
  var t = a === void 0 ? {} : a, e = t.maxDate, r = t.includeDates, o = Wo(n), i = ra(o, 1);
6356
6356
  return e && Kn(i, e) > 0 || r && r.every(function(s) {
6357
6357
  return Kn(i, s) > 0;
@@ -6363,7 +6363,7 @@ function lo(n, a) {
6363
6363
  return Xn(i, o) > 0;
6364
6364
  }) || !1;
6365
6365
  }
6366
- function qu(n, a) {
6366
+ function Vu(n, a) {
6367
6367
  var t = a === void 0 ? {} : a, e = t.minDate, r = t.yearItemNumber, o = r === void 0 ? On : r, i = yn(sn(n, o)), s = Rt(i, o).endPeriod, l = e && me(e);
6368
6368
  return l && l > s || !1;
6369
6369
  }
@@ -6443,8 +6443,8 @@ function Uu(n, a) {
6443
6443
  function zu(n, a, t, e, r) {
6444
6444
  for (var o = r.length, i = [], s = 0; s < o; s++) {
6445
6445
  var l = n, u = r[s];
6446
- u && (l = cs(l, kt(u)), l = qr(l, _t(u)), l = us(l, Ot(u)));
6447
- var d = qr(n, (t + 1) * e);
6446
+ u && (l = cs(l, kt(u)), l = Vr(l, _t(u)), l = us(l, Ot(u)));
6447
+ var d = Vr(n, (t + 1) * e);
6448
6448
  Lt(l, a) && Ut(l, d) && u != null && i.push(u);
6449
6449
  }
6450
6450
  return i;
@@ -6527,7 +6527,7 @@ var Zu = (
6527
6527
  )
6528
6528
  );
6529
6529
  }, a;
6530
- }(qe)
6530
+ }(Ve)
6531
6531
  ), Ju = (
6532
6532
  /** @class */
6533
6533
  function(n) {
@@ -6686,7 +6686,7 @@ var Zu = (
6686
6686
  this.props.monthShowsDuplicateDaysEnd && this.isAfterMonth() || this.props.monthShowsDuplicateDaysStart && this.isBeforeMonth()
6687
6687
  );
6688
6688
  }, a;
6689
- }(qe)
6689
+ }(Ve)
6690
6690
  ), ed = (
6691
6691
  /** @class */
6692
6692
  function(n) {
@@ -6728,7 +6728,7 @@ var Zu = (
6728
6728
  };
6729
6729
  return Y.createElement("div", { ref: this.weekNumberEl, className: Ge(s), "aria-label": "".concat(o, " ").concat(this.props.weekNumber), onClick: this.handleClick, onKeyDown: this.handleOnKeyDown, tabIndex: this.getTabIndex() }, e);
6730
6730
  }, a;
6731
- }(qe)
6731
+ }(Ve)
6732
6732
  ), td = (
6733
6733
  /** @class */
6734
6734
  function(n) {
@@ -6794,7 +6794,7 @@ var Zu = (
6794
6794
  };
6795
6795
  return Y.createElement("div", { className: Ge(t) }, this.renderDays());
6796
6796
  }, a;
6797
- }(qe)
6797
+ }(Ve)
6798
6798
  ), gn, nd = 6, rn = {
6799
6799
  TWO_COLUMNS: "two_columns",
6800
6800
  THREE_COLUMNS: "three_columns",
@@ -6898,7 +6898,7 @@ var rd = (
6898
6898
  }, t.isCurrentMonth = function(e, r) {
6899
6899
  return me(e) === me(Oe()) && r === Ke(Oe());
6900
6900
  }, t.isCurrentQuarter = function(e, r) {
6901
- return me(e) === me(Oe()) && r === Vt(Oe());
6901
+ return me(e) === me(Oe()) && r === qt(Oe());
6902
6902
  }, t.isSelectedMonth = function(e, r, o) {
6903
6903
  return Ke(o) === r && me(e) === me(o);
6904
6904
  }, t.isSelectMonthInList = function(e, r, o) {
@@ -6906,7 +6906,7 @@ var rd = (
6906
6906
  return t.isSelectedMonth(e, r, i);
6907
6907
  });
6908
6908
  }, t.isSelectedQuarter = function(e, r, o) {
6909
- return Vt(e) === r && me(e) === me(o);
6909
+ return qt(e) === r && me(e) === me(o);
6910
6910
  }, t.renderWeeks = function() {
6911
6911
  for (var e = [], r = t.props.fixedHeight, o = 0, i = !1, s = jt(It(t.props.day), t.props.locale, t.props.calendarStartDay), l = function(C) {
6912
6912
  return t.props.showWeekPicker ? jt(C, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
@@ -6959,17 +6959,17 @@ var rd = (
6959
6959
  }
6960
6960
  if (f && R < f) {
6961
6961
  J = ee.ArrowRight;
6962
- var G = O(J, R, W);
6963
- R = G.newCalculatedDate, W = G.newCalculatedMonth;
6962
+ var V = O(J, R, W);
6963
+ R = V.newCalculatedDate, W = V.newCalculatedMonth;
6964
6964
  }
6965
6965
  if (g && R > g) {
6966
6966
  J = ee.ArrowLeft;
6967
- var G = O(J, R, W);
6968
- R = G.newCalculatedDate, W = G.newCalculatedMonth;
6967
+ var V = O(J, R, W);
6968
+ R = V.newCalculatedDate, W = V.newCalculatedMonth;
6969
6969
  }
6970
6970
  if (Hu(R, t.props)) {
6971
- var G = O(J, R, W);
6972
- R = G.newCalculatedDate, W = G.newCalculatedMonth;
6971
+ var V = O(J, R, W);
6972
+ R = V.newCalculatedDate, W = V.newCalculatedMonth;
6973
6973
  } else
6974
6974
  se = !0;
6975
6975
  j++;
@@ -6980,13 +6980,13 @@ var rd = (
6980
6980
  t.isMonthDisabled(o) || (t.onMonthClick(e, o), d == null || d(l));
6981
6981
  return;
6982
6982
  }
6983
- var I = M(r, u, o), k = I.newCalculatedDate, q = I.newCalculatedMonth;
6983
+ var I = M(r, u, o), k = I.newCalculatedDate, G = I.newCalculatedMonth;
6984
6984
  switch (r) {
6985
6985
  case ee.ArrowRight:
6986
6986
  case ee.ArrowLeft:
6987
6987
  case ee.ArrowUp:
6988
6988
  case ee.ArrowDown:
6989
- t.handleMonthNavigation(q, k);
6989
+ t.handleMonthNavigation(G, k);
6990
6990
  break;
6991
6991
  }
6992
6992
  }
@@ -7054,7 +7054,7 @@ var rd = (
7054
7054
  }, t.getQuarterTabIndex = function(e) {
7055
7055
  if (t.props.preSelection == null)
7056
7056
  return "-1";
7057
- var r = Vt(t.props.preSelection), o = !t.props.disabledKeyboardNavigation && e === r ? "0" : "-1";
7057
+ var r = qt(t.props.preSelection), o = !t.props.disabledKeyboardNavigation && e === r ? "0" : "-1";
7058
7058
  return o;
7059
7059
  }, t.getAriaLabel = function(e) {
7060
7060
  var r = t.props, o = r.chooseDayAriaLabelPrefix, i = o === void 0 ? "Choose" : o, s = r.disabledDayAriaLabelPrefix, l = s === void 0 ? "Not available" : s, u = r.day, d = r.locale, f = st(u, e), g = t.isDisabled(f) || t.isExcluded(f) ? l : i;
@@ -7121,7 +7121,7 @@ var rd = (
7121
7121
  var t = this.props, e = t.showMonthYearPicker, r = t.showQuarterYearPicker, o = t.day, i = t.ariaLabelPrefix, s = i === void 0 ? "Month " : i, l = s ? s.trim() + " " : "";
7122
7122
  return Y.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": "".concat(l).concat(Ne(o, "MMMM, yyyy", this.props.locale)), role: "listbox" }, e ? this.renderMonths() : r ? this.renderQuarters() : this.renderWeeks());
7123
7123
  }, a;
7124
- }(qe)
7124
+ }(Ve)
7125
7125
  ), ad = (
7126
7126
  /** @class */
7127
7127
  function(n) {
@@ -7148,7 +7148,7 @@ var rd = (
7148
7148
  return a.prototype.render = function() {
7149
7149
  return Y.createElement("div", { className: "react-datepicker__month-dropdown" }, this.renderOptions());
7150
7150
  }, a;
7151
- }(qe)
7151
+ }(Ve)
7152
7152
  ), od = sr(ad), id = (
7153
7153
  /** @class */
7154
7154
  function(n) {
@@ -7201,7 +7201,7 @@ var rd = (
7201
7201
  }
7202
7202
  return Y.createElement("div", { className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode) }, r);
7203
7203
  }, a;
7204
- }(qe)
7204
+ }(Ve)
7205
7205
  );
7206
7206
  function sd(n, a) {
7207
7207
  for (var t = [], e = It(n), r = It(a); !Lt(e, r); )
@@ -7239,7 +7239,7 @@ var ld = (
7239
7239
  });
7240
7240
  return Y.createElement("div", { className: t }, this.renderOptions());
7241
7241
  }, a;
7242
- }(qe)
7242
+ }(Ve)
7243
7243
  ), cd = sr(ld), ud = (
7244
7244
  /** @class */
7245
7245
  function(n) {
@@ -7293,7 +7293,7 @@ var ld = (
7293
7293
  }
7294
7294
  return Y.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, t);
7295
7295
  }, a;
7296
- }(qe)
7296
+ }(Ve)
7297
7297
  ), dd = (
7298
7298
  /** @class */
7299
7299
  function(n) {
@@ -7327,7 +7327,7 @@ var ld = (
7327
7327
  for (var e, r = [], o = t.props.format ? t.props.format : "p", i = (e = t.props.intervals) !== null && e !== void 0 ? e : a.defaultProps.intervals, s = t.props.selected || t.props.openToDate || Oe(), l = Gn(s), u = t.props.injectTimes && t.props.injectTimes.sort(function(_, E) {
7328
7328
  return _.getTime() - E.getTime();
7329
7329
  }), d = 60 * Ku(s), f = d / i, g = 0; g < f; g++) {
7330
- var b = qr(l, g * i);
7330
+ var b = Vr(l, g * i);
7331
7331
  if (r.push(b), u) {
7332
7332
  var C = zu(l, b, g, i, u);
7333
7333
  r = r.concat(C);
@@ -7386,7 +7386,7 @@ var ld = (
7386
7386
  }, a.calcCenterPosition = function(t, e) {
7387
7387
  return e.offsetTop - (t / 2 - e.clientHeight / 2);
7388
7388
  }, a;
7389
- }(qe)
7389
+ }(Ve)
7390
7390
  ), vo = 3, fd = (
7391
7391
  /** @class */
7392
7392
  function(n) {
@@ -7554,7 +7554,7 @@ var ld = (
7554
7554
  Y.createElement("div", { className: "react-datepicker__year-wrapper", onMouseLeave: this.props.usePointerEvent ? void 0 : this.props.clearSelectingDate, onPointerLeave: this.props.usePointerEvent ? this.props.clearSelectingDate : void 0 }, e)
7555
7555
  );
7556
7556
  }, a;
7557
- }(qe)
7557
+ }(Ve)
7558
7558
  );
7559
7559
  function pd(n, a, t, e) {
7560
7560
  for (var r = [], o = 0; o < 2 * a + 1; o++) {
@@ -7627,7 +7627,7 @@ var hd = (
7627
7627
  });
7628
7628
  return Y.createElement("div", { className: t, ref: this.dropdownRef }, this.renderOptions());
7629
7629
  }, a;
7630
- }(qe)
7630
+ }(Ve)
7631
7631
  ), md = sr(hd), gd = (
7632
7632
  /** @class */
7633
7633
  function(n) {
@@ -7686,7 +7686,7 @@ var hd = (
7686
7686
  }
7687
7687
  return Y.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, t);
7688
7688
  }, a;
7689
- }(qe)
7689
+ }(Ve)
7690
7690
  ), vd = [
7691
7691
  "react-datepicker__year-select",
7692
7692
  "react-datepicker__month-select",
@@ -7804,7 +7804,7 @@ var hd = (
7804
7804
  o = lo(e.state.date, e.props);
7805
7805
  break;
7806
7806
  case e.props.showYearPicker:
7807
- o = qu(e.state.date, e.props);
7807
+ o = Vu(e.state.date, e.props);
7808
7808
  break;
7809
7809
  case e.props.showQuarterYearPicker:
7810
7810
  o = Bu(e.state.date, e.props);
@@ -7851,7 +7851,7 @@ var hd = (
7851
7851
  o = Gu(e.state.date, e.props);
7852
7852
  break;
7853
7853
  case e.props.showQuarterYearPicker:
7854
- o = Vu(e.state.date, e.props);
7854
+ o = qu(e.state.date, e.props);
7855
7855
  break;
7856
7856
  default:
7857
7857
  o = so(e.state.date, e.props);
@@ -8031,7 +8031,7 @@ var hd = (
8031
8031
  )
8032
8032
  );
8033
8033
  }, a;
8034
- }(qe)
8034
+ }(Ve)
8035
8035
  ), wd = function(n) {
8036
8036
  var a = n.icon, t = n.className, e = t === void 0 ? "" : t, r = n.onClick, o = "react-datepicker__calendar-icon";
8037
8037
  return typeof a == "string" ? Y.createElement("i", { className: "".concat(o, " ").concat(a, " ").concat(e), "aria-hidden": "true", onClick: r }) : Y.isValidElement(a) ? Y.cloneElement(a, {
@@ -8059,7 +8059,7 @@ var hd = (
8059
8059
  }, a.prototype.render = function() {
8060
8060
  return ea.createPortal(this.props.children, this.el);
8061
8061
  }, a;
8062
- }(qe)
8062
+ }(Ve)
8063
8063
  ), xd = "[tabindex], a, button, input, select, textarea", Dd = function(n) {
8064
8064
  return (n instanceof HTMLAnchorElement || !n.disabled) && n.tabIndex !== -1;
8065
8065
  }, yi = (
@@ -8091,7 +8091,7 @@ var hd = (
8091
8091
  }, a.defaultProps = {
8092
8092
  enableTabLoop: !0
8093
8093
  }, a;
8094
- }(qe)
8094
+ }(Ve)
8095
8095
  );
8096
8096
  function kd(n) {
8097
8097
  var a = function(t) {
@@ -8143,7 +8143,7 @@ var _d = (
8143
8143
  w
8144
8144
  );
8145
8145
  }, a;
8146
- }(qe)
8146
+ }(Ve)
8147
8147
  ), Cd = kd(_d), yo = "react-datepicker-ignore-onclickoutside", Sd = sr(bd);
8148
8148
  function Ed(n, a) {
8149
8149
  return n && a ? Ke(n) !== Ke(a) || me(n) !== me(a) : n !== a;
@@ -8286,10 +8286,10 @@ var Nr = "Date input not valid.", Md = (
8286
8286
  if (!(_ != null && _.length))
8287
8287
  f ? f([u], o) : a.defaultProps.onChange;
8288
8288
  else {
8289
- var q = _.some(function(B) {
8289
+ var G = _.some(function(B) {
8290
8290
  return we(B, u);
8291
8291
  });
8292
- if (q) {
8292
+ if (G) {
8293
8293
  var A = _.filter(function(B) {
8294
8294
  return !we(B, u);
8295
8295
  });
@@ -8368,17 +8368,17 @@ var Nr = "Date input not valid.", Md = (
8368
8368
  }, e.onDayKeyDown = function(r) {
8369
8369
  var o, i, s, l, u = e.props, d = u.minDate, f = u.maxDate, g = u.disabledKeyboardNavigation, b = u.showWeekPicker, C = u.shouldCloseOnSelect, w = u.locale, _ = u.calendarStartDay, E = u.adjustDateOnChange, O = u.inline;
8370
8370
  if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, r), !g) {
8371
- var M = r.key, I = r.shiftKey, k = Oe(e.state.preSelection), q = function(j, $) {
8371
+ var M = r.key, I = r.shiftKey, k = Oe(e.state.preSelection), G = function(j, $) {
8372
8372
  var R = $;
8373
8373
  switch (j) {
8374
8374
  case ee.ArrowRight:
8375
8375
  R = b ? Qn($, 1) : Wt($, 1);
8376
8376
  break;
8377
8377
  case ee.ArrowLeft:
8378
- R = b ? Va($, 1) : Cc($, 1);
8378
+ R = b ? qa($, 1) : Cc($, 1);
8379
8379
  break;
8380
8380
  case ee.ArrowUp:
8381
- R = Va($, 1);
8381
+ R = qa($, 1);
8382
8382
  break;
8383
8383
  case ee.ArrowDown:
8384
8384
  R = Qn($, 1);
@@ -8398,12 +8398,12 @@ var Nr = "Date input not valid.", Md = (
8398
8398
  }
8399
8399
  return R;
8400
8400
  }, A = function(j, $) {
8401
- for (var R = 40, W = j, G = !1, de = 0, h = q(j, $); !G; ) {
8401
+ for (var R = 40, W = j, V = !1, de = 0, h = G(j, $); !V; ) {
8402
8402
  if (de >= R) {
8403
8403
  h = $;
8404
8404
  break;
8405
8405
  }
8406
- d && h < d && (W = ee.ArrowRight, h = Nt(d, e.props) ? q(W, h) : d), f && h > f && (W = ee.ArrowLeft, h = Nt(f, e.props) ? q(W, h) : f), Nt(h, e.props) ? ((W === ee.PageUp || W === ee.Home) && (W = ee.ArrowRight), (W === ee.PageDown || W === ee.End) && (W = ee.ArrowLeft), h = q(W, h)) : G = !0, de++;
8406
+ d && h < d && (W = ee.ArrowRight, h = Nt(d, e.props) ? G(W, h) : d), f && h > f && (W = ee.ArrowLeft, h = Nt(f, e.props) ? G(W, h) : f), Nt(h, e.props) ? ((W === ee.PageUp || W === ee.Home) && (W = ee.ArrowRight), (W === ee.PageDown || W === ee.End) && (W = ee.ArrowLeft), h = G(W, h)) : V = !0, de++;
8407
8407
  }
8408
8408
  return h;
8409
8409
  };
@@ -8601,7 +8601,7 @@ var Nr = "Date input not valid.", Md = (
8601
8601
  }
8602
8602
  return Y.createElement(Cd, De({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: t, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
8603
8603
  }, a;
8604
- }(qe)
8604
+ }(Ve)
8605
8605
  ), Od = "input", Rr = "navigate";
8606
8606
  function bo(n, a, t) {
8607
8607
  const e = ht(n, t), r = ht(a, t);
@@ -8718,29 +8718,29 @@ function Td() {
8718
8718
  function I(h, m) {
8719
8719
  var y = h.maskChar, v = h.mask, c = h.prefix;
8720
8720
  if (!y) {
8721
- for ((m = q(h, "", m, 0)).length < c.length && (m = c); m.length < v.length && w(h, m.length); ) m += v[m.length];
8721
+ for ((m = G(h, "", m, 0)).length < c.length && (m = c); m.length < v.length && w(h, m.length); ) m += v[m.length];
8722
8722
  return m;
8723
8723
  }
8724
- if (m) return q(h, I(h, ""), m, 0);
8724
+ if (m) return G(h, I(h, ""), m, 0);
8725
8725
  for (var T = 0; T < v.length; T++) w(h, T) ? m += v[T] : m += y;
8726
8726
  return m;
8727
8727
  }
8728
8728
  function k(h, m, y, v) {
8729
8729
  var c = y + v, T = h.maskChar, Q = h.mask, z = h.prefix, F = m.split("");
8730
- if (T) return F.map(function(U, V) {
8731
- return V < y || c <= V ? U : w(h, V) ? Q[V] : T;
8730
+ if (T) return F.map(function(U, q) {
8731
+ return q < y || c <= q ? U : w(h, q) ? Q[q] : T;
8732
8732
  }).join("");
8733
8733
  for (var H = c; H < F.length; H++) w(h, H) && (F[H] = "");
8734
8734
  return y = Math.max(z.length, y), F.splice(y, c - y), m = F.join(""), I(h, m);
8735
8735
  }
8736
- function q(h, m, y, v) {
8736
+ function G(h, m, y, v) {
8737
8737
  var c = h.mask, T = h.maskChar, Q = h.prefix, z = y.split(""), F = M(h, m);
8738
8738
  return !T && v > m.length && (m += c.slice(m.length, v)), z.every(function(H) {
8739
8739
  for (; S = H, w(h, P = v) && S !== c[P]; ) {
8740
- if (v >= m.length && (m += c[v]), U = H, V = v, T && w(h, V) && U === T) return !0;
8740
+ if (v >= m.length && (m += c[v]), U = H, q = v, T && w(h, q) && U === T) return !0;
8741
8741
  if (++v >= c.length) return !1;
8742
8742
  }
8743
- var U, V, P, S;
8743
+ var U, q, P, S;
8744
8744
  return !_(h, v, H) && H !== T || (v < m.length ? m = T || F || v < Q.length ? m.slice(0, v) + H + m.slice(v + 1) : (m = m.slice(0, v) + H + m.slice(v), I(h, m)) : T || (m += H), ++v < c.length);
8745
8745
  }), m;
8746
8746
  }
@@ -8764,8 +8764,8 @@ function Td() {
8764
8764
  return h || h === 0 ? h + "" : "";
8765
8765
  }
8766
8766
  function J(h, m, y, v, c) {
8767
- var T = h.mask, Q = h.prefix, z = h.lastEditablePosition, F = m, H = "", U = 0, V = 0, P = Math.min(c.start, y.start);
8768
- return y.end > c.start ? V = (U = A(h, v, H = F.slice(c.start, y.end), P)) ? c.length : 0 : F.length < v.length && (V = v.length - F.length), F = v, V && (V === 1 && !c.length && (P = c.start === y.start ? B(h, y.start) : X(h, y.start)), F = k(h, F, P, V)), F = q(h, F, H, P), (P += U) >= T.length ? P = T.length : P < Q.length && !U ? P = Q.length : P >= Q.length && P < z && U && (P = B(h, P)), H || (H = null), { value: F = I(h, F), enteredString: H, selection: { start: P, end: P } };
8767
+ var T = h.mask, Q = h.prefix, z = h.lastEditablePosition, F = m, H = "", U = 0, q = 0, P = Math.min(c.start, y.start);
8768
+ return y.end > c.start ? q = (U = A(h, v, H = F.slice(c.start, y.end), P)) ? c.length : 0 : F.length < v.length && (q = v.length - F.length), F = v, q && (q === 1 && !c.length && (P = c.start === y.start ? B(h, y.start) : X(h, y.start)), F = k(h, F, P, q)), F = G(h, F, H, P), (P += U) >= T.length ? P = T.length : P < Q.length && !U ? P = Q.length : P >= Q.length && P < z && U && (P = B(h, P)), H || (H = null), { value: F = I(h, F), enteredString: H, selection: { start: P, end: P } };
8769
8769
  }
8770
8770
  function se() {
8771
8771
  var h = new RegExp("windows", "i"), m = new RegExp("phone", "i"), y = navigator.userAgent;
@@ -8785,7 +8785,7 @@ function Td() {
8785
8785
  return setTimeout(h, 1e3 / 60);
8786
8786
  })(h);
8787
8787
  }
8788
- function G(h) {
8788
+ function V(h) {
8789
8789
  (R() || clearTimeout)(h);
8790
8790
  }
8791
8791
  var de = function(h) {
@@ -8796,100 +8796,100 @@ function Td() {
8796
8796
  }, c.runSaveSelectionLoop = function() {
8797
8797
  c.saveSelectionLoopDeferId === null && c.saveSelectionLoop();
8798
8798
  }, c.stopSaveSelectionLoop = function() {
8799
- c.saveSelectionLoopDeferId !== null && (G(c.saveSelectionLoopDeferId), c.saveSelectionLoopDeferId = null, c.previousSelection = null);
8799
+ c.saveSelectionLoopDeferId !== null && (V(c.saveSelectionLoopDeferId), c.saveSelectionLoopDeferId = null, c.previousSelection = null);
8800
8800
  }, c.getInputDOMNode = function() {
8801
8801
  if (!c.mounted) return null;
8802
- var N = t.findDOMNode(s(s(c))), L = typeof window < "u" && N instanceof window.Element;
8803
- if (N && !L) return null;
8804
- if (N.nodeName !== "INPUT" && (N = N.querySelector("input")), !N) throw new Error("react-input-mask: inputComponent doesn't contain input node");
8805
- return N;
8802
+ var L = t.findDOMNode(s(s(c))), N = typeof window < "u" && L instanceof window.Element;
8803
+ if (L && !N) return null;
8804
+ if (L.nodeName !== "INPUT" && (L = L.querySelector("input")), !L) throw new Error("react-input-mask: inputComponent doesn't contain input node");
8805
+ return L;
8806
8806
  }, c.getInputValue = function() {
8807
- var N = c.getInputDOMNode();
8808
- return N ? N.value : null;
8809
- }, c.setInputValue = function(N) {
8810
8807
  var L = c.getInputDOMNode();
8811
- L && (c.value = N, L.value = N);
8808
+ return L ? L.value : null;
8809
+ }, c.setInputValue = function(L) {
8810
+ var N = c.getInputDOMNode();
8811
+ N && (c.value = L, N.value = L);
8812
8812
  }, c.setCursorToEnd = function() {
8813
- var N = O(c.maskOptions, c.value), L = B(c.maskOptions, N);
8814
- L !== null && c.setCursorPosition(L);
8815
- }, c.setSelection = function(N, L, Z) {
8813
+ var L = O(c.maskOptions, c.value), N = B(c.maskOptions, L);
8814
+ N !== null && c.setCursorPosition(N);
8815
+ }, c.setSelection = function(L, N, Z) {
8816
8816
  Z === void 0 && (Z = {});
8817
8817
  var ie = c.getInputDOMNode(), ce = c.isFocused();
8818
- ie && ce && (Z.deferred || d(ie, N, L), c.selectionDeferId !== null && G(c.selectionDeferId), c.selectionDeferId = W(function() {
8819
- c.selectionDeferId = null, d(ie, N, L);
8820
- }), c.previousSelection = { start: N, end: L, length: Math.abs(L - N) });
8818
+ ie && ce && (Z.deferred || d(ie, L, N), c.selectionDeferId !== null && V(c.selectionDeferId), c.selectionDeferId = W(function() {
8819
+ c.selectionDeferId = null, d(ie, L, N);
8820
+ }), c.previousSelection = { start: L, end: N, length: Math.abs(N - L) });
8821
8821
  }, c.getSelection = function() {
8822
8822
  return f(c.getInputDOMNode());
8823
8823
  }, c.getCursorPosition = function() {
8824
8824
  return c.getSelection().start;
8825
- }, c.setCursorPosition = function(N) {
8826
- c.setSelection(N, N);
8825
+ }, c.setCursorPosition = function(L) {
8826
+ c.setSelection(L, L);
8827
8827
  }, c.isFocused = function() {
8828
8828
  return c.focused;
8829
8829
  }, c.getBeforeMaskedValueChangeConfig = function() {
8830
- var N = c.maskOptions, L = N.mask, Z = N.maskChar, ie = N.permanents, ce = N.formatChars;
8831
- return { mask: L, maskChar: Z, permanents: ie, alwaysShowMask: !!c.props.alwaysShowMask, formatChars: ce };
8832
- }, c.isInputAutofilled = function(N, L, Z, ie) {
8830
+ var L = c.maskOptions, N = L.mask, Z = L.maskChar, ie = L.permanents, ce = L.formatChars;
8831
+ return { mask: N, maskChar: Z, permanents: ie, alwaysShowMask: !!c.props.alwaysShowMask, formatChars: ce };
8832
+ }, c.isInputAutofilled = function(L, N, Z, ie) {
8833
8833
  var ce = c.getInputDOMNode();
8834
8834
  try {
8835
8835
  if (ce.matches(":-webkit-autofill")) return !0;
8836
8836
  } catch {
8837
8837
  }
8838
- return !c.focused || ie.end < Z.length && L.end === N.length;
8839
- }, c.onChange = function(N) {
8840
- var L = s(s(c)).beforePasteState, Z = s(s(c)).previousSelection, ie = c.props.beforeMaskedValueChange, ce = c.getInputValue(), pe = c.value, ge = c.getSelection();
8841
- c.isInputAutofilled(ce, ge, pe, Z) && (pe = I(c.maskOptions, ""), Z = { start: 0, end: 0, length: 0 }), L && (Z = L.selection, pe = L.value, ge = { start: Z.start + ce.length, end: Z.start + ce.length, length: 0 }, ce = pe.slice(0, Z.start) + ce + pe.slice(Z.end), c.beforePasteState = null);
8842
- var xe = J(c.maskOptions, ce, ge, pe, Z), Fe = xe.enteredString, Re = xe.selection, Ve = xe.value;
8838
+ return !c.focused || ie.end < Z.length && N.end === L.length;
8839
+ }, c.onChange = function(L) {
8840
+ var N = s(s(c)).beforePasteState, Z = s(s(c)).previousSelection, ie = c.props.beforeMaskedValueChange, ce = c.getInputValue(), pe = c.value, ge = c.getSelection();
8841
+ c.isInputAutofilled(ce, ge, pe, Z) && (pe = I(c.maskOptions, ""), Z = { start: 0, end: 0, length: 0 }), N && (Z = N.selection, pe = N.value, ge = { start: Z.start + ce.length, end: Z.start + ce.length, length: 0 }, ce = pe.slice(0, Z.start) + ce + pe.slice(Z.end), c.beforePasteState = null);
8842
+ var xe = J(c.maskOptions, ce, ge, pe, Z), Fe = xe.enteredString, Re = xe.selection, qe = xe.value;
8843
8843
  if (j(ie)) {
8844
- var Xe = ie({ value: Ve, selection: Re }, { value: pe, selection: Z }, Fe, c.getBeforeMaskedValueChangeConfig());
8845
- Ve = Xe.value, Re = Xe.selection;
8844
+ var Xe = ie({ value: qe, selection: Re }, { value: pe, selection: Z }, Fe, c.getBeforeMaskedValueChangeConfig());
8845
+ qe = Xe.value, Re = Xe.selection;
8846
8846
  }
8847
- c.setInputValue(Ve), j(c.props.onChange) && c.props.onChange(N), c.isWindowsPhoneBrowser ? c.setSelection(Re.start, Re.end, { deferred: !0 }) : c.setSelection(Re.start, Re.end);
8848
- }, c.onFocus = function(N) {
8849
- var L = c.props.beforeMaskedValueChange, Z = c.maskOptions, ie = Z.mask, ce = Z.prefix;
8847
+ c.setInputValue(qe), j(c.props.onChange) && c.props.onChange(L), c.isWindowsPhoneBrowser ? c.setSelection(Re.start, Re.end, { deferred: !0 }) : c.setSelection(Re.start, Re.end);
8848
+ }, c.onFocus = function(L) {
8849
+ var N = c.props.beforeMaskedValueChange, Z = c.maskOptions, ie = Z.mask, ce = Z.prefix;
8850
8850
  if (c.focused = !0, c.mounted = !0, ie) {
8851
8851
  if (c.value) O(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
8852
8852
  else {
8853
8853
  var pe = I(c.maskOptions, ce), ge = I(c.maskOptions, pe), xe = O(c.maskOptions, ge), Fe = B(c.maskOptions, xe), Re = { start: Fe, end: Fe };
8854
- if (j(L)) {
8855
- var Ve = L({ value: ge, selection: Re }, { value: c.value, selection: null }, null, c.getBeforeMaskedValueChangeConfig());
8856
- ge = Ve.value, Re = Ve.selection;
8854
+ if (j(N)) {
8855
+ var qe = N({ value: ge, selection: Re }, { value: c.value, selection: null }, null, c.getBeforeMaskedValueChangeConfig());
8856
+ ge = qe.value, Re = qe.selection;
8857
8857
  }
8858
8858
  var Xe = ge !== c.getInputValue();
8859
- Xe && c.setInputValue(ge), Xe && j(c.props.onChange) && c.props.onChange(N), c.setSelection(Re.start, Re.end);
8859
+ Xe && c.setInputValue(ge), Xe && j(c.props.onChange) && c.props.onChange(L), c.setSelection(Re.start, Re.end);
8860
8860
  }
8861
8861
  c.runSaveSelectionLoop();
8862
8862
  }
8863
- j(c.props.onFocus) && c.props.onFocus(N);
8864
- }, c.onBlur = function(N) {
8865
- var L = c.props.beforeMaskedValueChange, Z = c.maskOptions.mask;
8863
+ j(c.props.onFocus) && c.props.onFocus(L);
8864
+ }, c.onBlur = function(L) {
8865
+ var N = c.props.beforeMaskedValueChange, Z = c.maskOptions.mask;
8866
8866
  if (c.stopSaveSelectionLoop(), c.focused = !1, Z && !c.props.alwaysShowMask && E(c.maskOptions, c.value)) {
8867
8867
  var ie = "";
8868
- j(L) && (ie = L({ value: ie, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
8868
+ j(N) && (ie = N({ value: ie, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
8869
8869
  var ce = ie !== c.getInputValue();
8870
- ce && c.setInputValue(ie), ce && j(c.props.onChange) && c.props.onChange(N);
8870
+ ce && c.setInputValue(ie), ce && j(c.props.onChange) && c.props.onChange(L);
8871
8871
  }
8872
- j(c.props.onBlur) && c.props.onBlur(N);
8873
- }, c.onMouseDown = function(N) {
8872
+ j(c.props.onBlur) && c.props.onBlur(L);
8873
+ }, c.onMouseDown = function(L) {
8874
8874
  if (!c.focused && document.addEventListener) {
8875
- c.mouseDownX = N.clientX, c.mouseDownY = N.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
8876
- var L = function Z(ie) {
8875
+ c.mouseDownX = L.clientX, c.mouseDownY = L.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
8876
+ var N = function Z(ie) {
8877
8877
  if (document.removeEventListener("mouseup", Z), c.focused) {
8878
8878
  var ce = Math.abs(ie.clientX - c.mouseDownX), pe = Math.abs(ie.clientY - c.mouseDownY), ge = Math.max(ce, pe), xe = (/* @__PURE__ */ new Date()).getTime() - c.mouseDownTime;
8879
8879
  (ge <= 10 && xe <= 200 || ge <= 5 && xe <= 300) && c.setCursorToEnd();
8880
8880
  }
8881
8881
  };
8882
- document.addEventListener("mouseup", L);
8882
+ document.addEventListener("mouseup", N);
8883
8883
  }
8884
- j(c.props.onMouseDown) && c.props.onMouseDown(N);
8885
- }, c.onPaste = function(N) {
8886
- j(c.props.onPaste) && c.props.onPaste(N), N.defaultPrevented || (c.beforePasteState = { value: c.getInputValue(), selection: c.getSelection() }, c.setInputValue(""));
8887
- }, c.handleRef = function(N) {
8888
- c.props.children == null && j(c.props.inputRef) && c.props.inputRef(N);
8884
+ j(c.props.onMouseDown) && c.props.onMouseDown(L);
8885
+ }, c.onPaste = function(L) {
8886
+ j(c.props.onPaste) && c.props.onPaste(L), L.defaultPrevented || (c.beforePasteState = { value: c.getInputValue(), selection: c.getSelection() }, c.setInputValue(""));
8887
+ }, c.handleRef = function(L) {
8888
+ c.props.children == null && j(c.props.inputRef) && c.props.inputRef(L);
8889
8889
  };
8890
- var T = v.mask, Q = v.maskChar, z = v.formatChars, F = v.alwaysShowMask, H = v.beforeMaskedValueChange, U = v.defaultValue, V = v.value;
8891
- c.maskOptions = C(T, Q, z), U == null && (U = ""), V == null && (V = U);
8892
- var P = le(V);
8890
+ var T = v.mask, Q = v.maskChar, z = v.formatChars, F = v.alwaysShowMask, H = v.beforeMaskedValueChange, U = v.defaultValue, q = v.value;
8891
+ c.maskOptions = C(T, Q, z), U == null && (U = ""), q == null && (q = U);
8892
+ var P = le(q);
8893
8893
  if (c.maskOptions.mask && (F || P) && (P = I(c.maskOptions, P), j(H))) {
8894
8894
  var S = v.value;
8895
8895
  v.value == null && (S = U), P = H({ value: P, selection: null }, { value: S = le(S), selection: null }, null, c.getBeforeMaskedValueChangeConfig()).value;
@@ -8901,28 +8901,28 @@ function Td() {
8901
8901
  return y.componentDidMount = function() {
8902
8902
  this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = se(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
8903
8903
  }, y.componentDidUpdate = function() {
8904
- var v = this.previousSelection, c = this.props, T = c.beforeMaskedValueChange, Q = c.alwaysShowMask, z = c.mask, F = c.maskChar, H = c.formatChars, U = this.maskOptions, V = Q || this.isFocused(), P = this.props.value != null, S = P ? le(this.props.value) : this.value, N = v ? v.start : null;
8904
+ var v = this.previousSelection, c = this.props, T = c.beforeMaskedValueChange, Q = c.alwaysShowMask, z = c.mask, F = c.maskChar, H = c.formatChars, U = this.maskOptions, q = Q || this.isFocused(), P = this.props.value != null, S = P ? le(this.props.value) : this.value, L = v ? v.start : null;
8905
8905
  if (this.maskOptions = C(z, F, H), this.maskOptions.mask) {
8906
8906
  !U.mask && this.isFocused() && this.runSaveSelectionLoop();
8907
- var L = this.maskOptions.mask && this.maskOptions.mask !== U.mask;
8908
- if (U.mask || P || (S = this.getInputValue()), (L || this.maskOptions.mask && (S || V)) && (S = I(this.maskOptions, S)), L) {
8907
+ var N = this.maskOptions.mask && this.maskOptions.mask !== U.mask;
8908
+ if (U.mask || P || (S = this.getInputValue()), (N || this.maskOptions.mask && (S || q)) && (S = I(this.maskOptions, S)), N) {
8909
8909
  var Z = O(this.maskOptions, S);
8910
- (N === null || Z < N) && (N = M(this.maskOptions, S) ? Z : B(this.maskOptions, Z));
8910
+ (L === null || Z < L) && (L = M(this.maskOptions, S) ? Z : B(this.maskOptions, Z));
8911
8911
  }
8912
- !this.maskOptions.mask || !E(this.maskOptions, S) || V || P && this.props.value || (S = "");
8913
- var ie = { start: N, end: N };
8912
+ !this.maskOptions.mask || !E(this.maskOptions, S) || q || P && this.props.value || (S = "");
8913
+ var ie = { start: L, end: L };
8914
8914
  if (j(T)) {
8915
8915
  var ce = T({ value: S, selection: ie }, { value: this.value, selection: this.previousSelection }, null, this.getBeforeMaskedValueChangeConfig());
8916
8916
  S = ce.value, ie = ce.selection;
8917
8917
  }
8918
8918
  this.value = S;
8919
8919
  var pe = this.getInputValue() !== this.value;
8920
- pe ? (this.setInputValue(this.value), this.forceUpdate()) : L && this.forceUpdate();
8920
+ pe ? (this.setInputValue(this.value), this.forceUpdate()) : N && this.forceUpdate();
8921
8921
  var ge = !1;
8922
8922
  ie.start != null && ie.end != null && (ge = !v || v.start !== ie.start || v.end !== ie.end), (ge || pe) && this.setSelection(ie.start, ie.end);
8923
8923
  } else U.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
8924
8924
  }, y.componentWillUnmount = function() {
8925
- this.mounted = !1, this.selectionDeferId !== null && G(this.selectionDeferId), this.stopSaveSelectionLoop();
8925
+ this.mounted = !1, this.selectionDeferId !== null && V(this.selectionDeferId), this.stopSaveSelectionLoop();
8926
8926
  }, y.render = function() {
8927
8927
  var v, c = this.props, T = (c.mask, c.alwaysShowMask, c.maskChar, c.formatChars, c.inputRef, c.beforeMaskedValueChange, c.children), Q = i(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]);
8928
8928
  if (T) {
@@ -9130,13 +9130,13 @@ function Rd() {
9130
9130
  function I(h, m) {
9131
9131
  var y = h.maskChar, v = h.mask, c = h.prefix;
9132
9132
  if (!y) {
9133
- for (m = q(h, "", m, 0), m.length < c.length && (m = c); m.length < v.length && w(h, m.length); )
9133
+ for (m = G(h, "", m, 0), m.length < c.length && (m = c); m.length < v.length && w(h, m.length); )
9134
9134
  m += v[m.length];
9135
9135
  return m;
9136
9136
  }
9137
9137
  if (m) {
9138
9138
  var T = I(h, "");
9139
- return q(h, T, m, 0);
9139
+ return G(h, T, m, 0);
9140
9140
  }
9141
9141
  for (var Q = 0; Q < v.length; Q++)
9142
9142
  w(h, Q) ? m += v[Q] : m += y;
@@ -9149,30 +9149,30 @@ function Rd() {
9149
9149
  w(h, H) && (F[H] = "");
9150
9150
  return y = Math.max(z.length, y), F.splice(y, c - y), m = F.join(""), I(h, m);
9151
9151
  }
9152
- return F.map(function(U, V) {
9153
- return V < y || V >= c ? U : w(h, V) ? Q[V] : T;
9152
+ return F.map(function(U, q) {
9153
+ return q < y || q >= c ? U : w(h, q) ? Q[q] : T;
9154
9154
  }).join("");
9155
9155
  }
9156
- function q(h, m, y, v) {
9156
+ function G(h, m, y, v) {
9157
9157
  var c = h.mask, T = h.maskChar, Q = h.prefix, z = y.split(""), F = M(h, m), H = function(P, S) {
9158
9158
  return !w(h, P) || S === c[P];
9159
9159
  }, U = function(P, S) {
9160
9160
  return !T || !w(h, S) || P !== T;
9161
9161
  };
9162
- return !T && v > m.length && (m += c.slice(m.length, v)), z.every(function(V) {
9163
- for (; !H(v, V); ) {
9164
- if (v >= m.length && (m += c[v]), !U(V, v))
9162
+ return !T && v > m.length && (m += c.slice(m.length, v)), z.every(function(q) {
9163
+ for (; !H(v, q); ) {
9164
+ if (v >= m.length && (m += c[v]), !U(q, v))
9165
9165
  return !0;
9166
9166
  if (v++, v >= c.length)
9167
9167
  return !1;
9168
9168
  }
9169
- var P = _(h, v, V) || V === T;
9170
- return P ? (v < m.length ? T || F || v < Q.length ? m = m.slice(0, v) + V + m.slice(v + 1) : (m = m.slice(0, v) + V + m.slice(v), m = I(h, m)) : T || (m += V), v++, v < c.length) : !0;
9169
+ var P = _(h, v, q) || q === T;
9170
+ return P ? (v < m.length ? T || F || v < Q.length ? m = m.slice(0, v) + q + m.slice(v + 1) : (m = m.slice(0, v) + q + m.slice(v), m = I(h, m)) : T || (m += q), v++, v < c.length) : !0;
9171
9171
  }), m;
9172
9172
  }
9173
9173
  function A(h, m, y, v) {
9174
- var c = h.mask, T = h.maskChar, Q = y.split(""), z = v, F = function(U, V) {
9175
- return !w(h, U) || V === c[U];
9174
+ var c = h.mask, T = h.maskChar, Q = y.split(""), z = v, F = function(U, q) {
9175
+ return !w(h, U) || q === c[U];
9176
9176
  };
9177
9177
  return Q.every(function(H) {
9178
9178
  for (; !F(v, H); )
@@ -9198,15 +9198,15 @@ function Rd() {
9198
9198
  return !h && h !== 0 ? "" : h + "";
9199
9199
  }
9200
9200
  function J(h, m, y, v, c) {
9201
- var T = h.mask, Q = h.prefix, z = h.lastEditablePosition, F = m, H = "", U = 0, V = 0, P = Math.min(c.start, y.start);
9202
- if (y.end > c.start ? (H = F.slice(c.start, y.end), U = A(h, v, H, P), U ? V = c.length : V = 0) : F.length < v.length && (V = v.length - F.length), F = v, V) {
9203
- if (V === 1 && !c.length) {
9201
+ var T = h.mask, Q = h.prefix, z = h.lastEditablePosition, F = m, H = "", U = 0, q = 0, P = Math.min(c.start, y.start);
9202
+ if (y.end > c.start ? (H = F.slice(c.start, y.end), U = A(h, v, H, P), U ? q = c.length : q = 0) : F.length < v.length && (q = v.length - F.length), F = v, q) {
9203
+ if (q === 1 && !c.length) {
9204
9204
  var S = c.start === y.start;
9205
9205
  P = S ? B(h, y.start) : X(h, y.start);
9206
9206
  }
9207
- F = k(h, F, P, V);
9207
+ F = k(h, F, P, q);
9208
9208
  }
9209
- return F = q(h, F, H, P), P = P + U, P >= T.length ? P = T.length : P < Q.length && !U ? P = Q.length : P >= Q.length && P < z && U && (P = B(h, P)), F = I(h, F), H || (H = null), {
9209
+ return F = G(h, F, H, P), P = P + U, P >= T.length ? P = T.length : P < Q.length && !U ? P = Q.length : P >= Q.length && P < z && U && (P = B(h, P)), F = I(h, F), H || (H = null), {
9210
9210
  value: F,
9211
9211
  enteredString: H,
9212
9212
  selection: {
@@ -9234,7 +9234,7 @@ function Rd() {
9234
9234
  return setTimeout(h, 1e3 / 60);
9235
9235
  }, y(h);
9236
9236
  }
9237
- function G(h) {
9237
+ function V(h) {
9238
9238
  var m = R() || clearTimeout;
9239
9239
  m(h);
9240
9240
  }
@@ -9247,49 +9247,49 @@ function Rd() {
9247
9247
  }, c.runSaveSelectionLoop = function() {
9248
9248
  c.saveSelectionLoopDeferId === null && c.saveSelectionLoop();
9249
9249
  }, c.stopSaveSelectionLoop = function() {
9250
- c.saveSelectionLoopDeferId !== null && (G(c.saveSelectionLoopDeferId), c.saveSelectionLoopDeferId = null, c.previousSelection = null);
9250
+ c.saveSelectionLoopDeferId !== null && (V(c.saveSelectionLoopDeferId), c.saveSelectionLoopDeferId = null, c.previousSelection = null);
9251
9251
  }, c.getInputDOMNode = function() {
9252
9252
  if (!c.mounted)
9253
9253
  return null;
9254
- var L = t.findDOMNode(u(u(c))), Z = typeof window < "u" && L instanceof window.Element;
9255
- if (L && !Z)
9254
+ var N = t.findDOMNode(u(u(c))), Z = typeof window < "u" && N instanceof window.Element;
9255
+ if (N && !Z)
9256
9256
  return null;
9257
- if (L.nodeName !== "INPUT" && (L = L.querySelector("input")), !L)
9257
+ if (N.nodeName !== "INPUT" && (N = N.querySelector("input")), !N)
9258
9258
  throw new Error("react-input-mask: inputComponent doesn't contain input node");
9259
- return L;
9259
+ return N;
9260
9260
  }, c.getInputValue = function() {
9261
- var L = c.getInputDOMNode();
9262
- return L ? L.value : null;
9263
- }, c.setInputValue = function(L) {
9261
+ var N = c.getInputDOMNode();
9262
+ return N ? N.value : null;
9263
+ }, c.setInputValue = function(N) {
9264
9264
  var Z = c.getInputDOMNode();
9265
- Z && (c.value = L, Z.value = L);
9265
+ Z && (c.value = N, Z.value = N);
9266
9266
  }, c.setCursorToEnd = function() {
9267
- var L = O(c.maskOptions, c.value), Z = B(c.maskOptions, L);
9267
+ var N = O(c.maskOptions, c.value), Z = B(c.maskOptions, N);
9268
9268
  Z !== null && c.setCursorPosition(Z);
9269
- }, c.setSelection = function(L, Z, ie) {
9269
+ }, c.setSelection = function(N, Z, ie) {
9270
9270
  ie === void 0 && (ie = {});
9271
9271
  var ce = c.getInputDOMNode(), pe = c.isFocused();
9272
9272
  if (!(!ce || !pe)) {
9273
9273
  var ge = ie, xe = ge.deferred;
9274
- xe || d(ce, L, Z), c.selectionDeferId !== null && G(c.selectionDeferId), c.selectionDeferId = W(function() {
9275
- c.selectionDeferId = null, d(ce, L, Z);
9274
+ xe || d(ce, N, Z), c.selectionDeferId !== null && V(c.selectionDeferId), c.selectionDeferId = W(function() {
9275
+ c.selectionDeferId = null, d(ce, N, Z);
9276
9276
  }), c.previousSelection = {
9277
- start: L,
9277
+ start: N,
9278
9278
  end: Z,
9279
- length: Math.abs(Z - L)
9279
+ length: Math.abs(Z - N)
9280
9280
  };
9281
9281
  }
9282
9282
  }, c.getSelection = function() {
9283
- var L = c.getInputDOMNode();
9284
- return f(L);
9283
+ var N = c.getInputDOMNode();
9284
+ return f(N);
9285
9285
  }, c.getCursorPosition = function() {
9286
9286
  return c.getSelection().start;
9287
- }, c.setCursorPosition = function(L) {
9288
- c.setSelection(L, L);
9287
+ }, c.setCursorPosition = function(N) {
9288
+ c.setSelection(N, N);
9289
9289
  }, c.isFocused = function() {
9290
9290
  return c.focused;
9291
9291
  }, c.getBeforeMaskedValueChangeConfig = function() {
9292
- var L = c.maskOptions, Z = L.mask, ie = L.maskChar, ce = L.permanents, pe = L.formatChars, ge = c.props.alwaysShowMask;
9292
+ var N = c.maskOptions, Z = N.mask, ie = N.maskChar, ce = N.permanents, pe = N.formatChars, ge = c.props.alwaysShowMask;
9293
9293
  return {
9294
9294
  mask: Z,
9295
9295
  maskChar: ie,
@@ -9297,15 +9297,15 @@ function Rd() {
9297
9297
  alwaysShowMask: !!ge,
9298
9298
  formatChars: pe
9299
9299
  };
9300
- }, c.isInputAutofilled = function(L, Z, ie, ce) {
9300
+ }, c.isInputAutofilled = function(N, Z, ie, ce) {
9301
9301
  var pe = c.getInputDOMNode();
9302
9302
  try {
9303
9303
  if (pe.matches(":-webkit-autofill"))
9304
9304
  return !0;
9305
9305
  } catch {
9306
9306
  }
9307
- return c.focused ? ce.end < ie.length && Z.end === L.length : !0;
9308
- }, c.onChange = function(L) {
9307
+ return c.focused ? ce.end < ie.length && Z.end === N.length : !0;
9308
+ }, c.onChange = function(N) {
9309
9309
  var Z = u(u(c)), ie = Z.beforePasteState, ce = u(u(c)), pe = ce.previousSelection, ge = c.props.beforeMaskedValueChange, xe = c.getInputValue(), Fe = c.value, Re = c.getSelection();
9310
9310
  c.isInputAutofilled(xe, Re, Fe, pe) && (Fe = I(c.maskOptions, ""), pe = {
9311
9311
  start: 0,
@@ -9316,7 +9316,7 @@ function Rd() {
9316
9316
  end: pe.start + xe.length,
9317
9317
  length: 0
9318
9318
  }, xe = Fe.slice(0, pe.start) + xe + Fe.slice(pe.end), c.beforePasteState = null);
9319
- var Ve = J(c.maskOptions, xe, Re, Fe, pe), Xe = Ve.enteredString, Ze = Ve.selection, ne = Ve.value;
9319
+ var qe = J(c.maskOptions, xe, Re, Fe, pe), Xe = qe.enteredString, Ze = qe.selection, ne = qe.value;
9320
9320
  if (j(ge)) {
9321
9321
  var ue = ge({
9322
9322
  value: ne,
@@ -9327,36 +9327,36 @@ function Rd() {
9327
9327
  }, Xe, c.getBeforeMaskedValueChangeConfig());
9328
9328
  ne = ue.value, Ze = ue.selection;
9329
9329
  }
9330
- c.setInputValue(ne), j(c.props.onChange) && c.props.onChange(L), c.isWindowsPhoneBrowser ? c.setSelection(Ze.start, Ze.end, {
9330
+ c.setInputValue(ne), j(c.props.onChange) && c.props.onChange(N), c.isWindowsPhoneBrowser ? c.setSelection(Ze.start, Ze.end, {
9331
9331
  deferred: !0
9332
9332
  }) : c.setSelection(Ze.start, Ze.end);
9333
- }, c.onFocus = function(L) {
9333
+ }, c.onFocus = function(N) {
9334
9334
  var Z = c.props.beforeMaskedValueChange, ie = c.maskOptions, ce = ie.mask, pe = ie.prefix;
9335
9335
  if (c.focused = !0, c.mounted = !0, ce) {
9336
9336
  if (c.value)
9337
9337
  O(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
9338
9338
  else {
9339
- var ge = I(c.maskOptions, pe), xe = I(c.maskOptions, ge), Fe = O(c.maskOptions, xe), Re = B(c.maskOptions, Fe), Ve = {
9339
+ var ge = I(c.maskOptions, pe), xe = I(c.maskOptions, ge), Fe = O(c.maskOptions, xe), Re = B(c.maskOptions, Fe), qe = {
9340
9340
  start: Re,
9341
9341
  end: Re
9342
9342
  };
9343
9343
  if (j(Z)) {
9344
9344
  var Xe = Z({
9345
9345
  value: xe,
9346
- selection: Ve
9346
+ selection: qe
9347
9347
  }, {
9348
9348
  value: c.value,
9349
9349
  selection: null
9350
9350
  }, null, c.getBeforeMaskedValueChangeConfig());
9351
- xe = Xe.value, Ve = Xe.selection;
9351
+ xe = Xe.value, qe = Xe.selection;
9352
9352
  }
9353
9353
  var Ze = xe !== c.getInputValue();
9354
- Ze && c.setInputValue(xe), Ze && j(c.props.onChange) && c.props.onChange(L), c.setSelection(Ve.start, Ve.end);
9354
+ Ze && c.setInputValue(xe), Ze && j(c.props.onChange) && c.props.onChange(N), c.setSelection(qe.start, qe.end);
9355
9355
  }
9356
9356
  c.runSaveSelectionLoop();
9357
9357
  }
9358
- j(c.props.onFocus) && c.props.onFocus(L);
9359
- }, c.onBlur = function(L) {
9358
+ j(c.props.onFocus) && c.props.onFocus(N);
9359
+ }, c.onBlur = function(N) {
9360
9360
  var Z = c.props.beforeMaskedValueChange, ie = c.maskOptions.mask;
9361
9361
  if (c.stopSaveSelectionLoop(), c.focused = !1, ie && !c.props.alwaysShowMask && E(c.maskOptions, c.value)) {
9362
9362
  var ce = "";
@@ -9371,12 +9371,12 @@ function Rd() {
9371
9371
  ce = pe.value;
9372
9372
  }
9373
9373
  var ge = ce !== c.getInputValue();
9374
- ge && c.setInputValue(ce), ge && j(c.props.onChange) && c.props.onChange(L);
9374
+ ge && c.setInputValue(ce), ge && j(c.props.onChange) && c.props.onChange(N);
9375
9375
  }
9376
- j(c.props.onBlur) && c.props.onBlur(L);
9377
- }, c.onMouseDown = function(L) {
9376
+ j(c.props.onBlur) && c.props.onBlur(N);
9377
+ }, c.onMouseDown = function(N) {
9378
9378
  if (!c.focused && document.addEventListener) {
9379
- c.mouseDownX = L.clientX, c.mouseDownY = L.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
9379
+ c.mouseDownX = N.clientX, c.mouseDownY = N.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
9380
9380
  var Z = function ie(ce) {
9381
9381
  if (document.removeEventListener("mouseup", ie), !!c.focused) {
9382
9382
  var pe = Math.abs(ce.clientX - c.mouseDownX), ge = Math.abs(ce.clientY - c.mouseDownY), xe = Math.max(pe, ge), Fe = (/* @__PURE__ */ new Date()).getTime() - c.mouseDownTime;
@@ -9385,29 +9385,29 @@ function Rd() {
9385
9385
  };
9386
9386
  document.addEventListener("mouseup", Z);
9387
9387
  }
9388
- j(c.props.onMouseDown) && c.props.onMouseDown(L);
9389
- }, c.onPaste = function(L) {
9390
- j(c.props.onPaste) && c.props.onPaste(L), L.defaultPrevented || (c.beforePasteState = {
9388
+ j(c.props.onMouseDown) && c.props.onMouseDown(N);
9389
+ }, c.onPaste = function(N) {
9390
+ j(c.props.onPaste) && c.props.onPaste(N), N.defaultPrevented || (c.beforePasteState = {
9391
9391
  value: c.getInputValue(),
9392
9392
  selection: c.getSelection()
9393
9393
  }, c.setInputValue(""));
9394
- }, c.handleRef = function(L) {
9395
- c.props.children == null && j(c.props.inputRef) && c.props.inputRef(L);
9394
+ }, c.handleRef = function(N) {
9395
+ c.props.children == null && j(c.props.inputRef) && c.props.inputRef(N);
9396
9396
  };
9397
- var T = v.mask, Q = v.maskChar, z = v.formatChars, F = v.alwaysShowMask, H = v.beforeMaskedValueChange, U = v.defaultValue, V = v.value;
9398
- c.maskOptions = C(T, Q, z), U == null && (U = ""), V == null && (V = U);
9399
- var P = le(V);
9397
+ var T = v.mask, Q = v.maskChar, z = v.formatChars, F = v.alwaysShowMask, H = v.beforeMaskedValueChange, U = v.defaultValue, q = v.value;
9398
+ c.maskOptions = C(T, Q, z), U == null && (U = ""), q == null && (q = U);
9399
+ var P = le(q);
9400
9400
  if (c.maskOptions.mask && (F || P) && (P = I(c.maskOptions, P), j(H))) {
9401
9401
  var S = v.value;
9402
9402
  v.value == null && (S = U), S = le(S);
9403
- var N = H({
9403
+ var L = H({
9404
9404
  value: P,
9405
9405
  selection: null
9406
9406
  }, {
9407
9407
  value: S,
9408
9408
  selection: null
9409
9409
  }, null, c.getBeforeMaskedValueChangeConfig());
9410
- P = N.value;
9410
+ P = L.value;
9411
9411
  }
9412
9412
  return c.value = P, c;
9413
9413
  }
@@ -9415,46 +9415,46 @@ function Rd() {
9415
9415
  return y.componentDidMount = function() {
9416
9416
  this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = se(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
9417
9417
  }, y.componentDidUpdate = function() {
9418
- var c = this.previousSelection, T = this.props, Q = T.beforeMaskedValueChange, z = T.alwaysShowMask, F = T.mask, H = T.maskChar, U = T.formatChars, V = this.maskOptions, P = z || this.isFocused(), S = this.props.value != null, N = S ? le(this.props.value) : this.value, L = c ? c.start : null;
9418
+ var c = this.previousSelection, T = this.props, Q = T.beforeMaskedValueChange, z = T.alwaysShowMask, F = T.mask, H = T.maskChar, U = T.formatChars, q = this.maskOptions, P = z || this.isFocused(), S = this.props.value != null, L = S ? le(this.props.value) : this.value, N = c ? c.start : null;
9419
9419
  if (this.maskOptions = C(F, H, U), this.maskOptions.mask)
9420
- !V.mask && this.isFocused() && this.runSaveSelectionLoop();
9420
+ !q.mask && this.isFocused() && this.runSaveSelectionLoop();
9421
9421
  else {
9422
- V.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
9422
+ q.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
9423
9423
  return;
9424
9424
  }
9425
- var Z = this.maskOptions.mask && this.maskOptions.mask !== V.mask;
9426
- if (!V.mask && !S && (N = this.getInputValue()), (Z || this.maskOptions.mask && (N || P)) && (N = I(this.maskOptions, N)), Z) {
9427
- var ie = O(this.maskOptions, N);
9428
- (L === null || ie < L) && (M(this.maskOptions, N) ? L = ie : L = B(this.maskOptions, ie));
9425
+ var Z = this.maskOptions.mask && this.maskOptions.mask !== q.mask;
9426
+ if (!q.mask && !S && (L = this.getInputValue()), (Z || this.maskOptions.mask && (L || P)) && (L = I(this.maskOptions, L)), Z) {
9427
+ var ie = O(this.maskOptions, L);
9428
+ (N === null || ie < N) && (M(this.maskOptions, L) ? N = ie : N = B(this.maskOptions, ie));
9429
9429
  }
9430
- this.maskOptions.mask && E(this.maskOptions, N) && !P && (!S || !this.props.value) && (N = "");
9430
+ this.maskOptions.mask && E(this.maskOptions, L) && !P && (!S || !this.props.value) && (L = "");
9431
9431
  var ce = {
9432
- start: L,
9433
- end: L
9432
+ start: N,
9433
+ end: N
9434
9434
  };
9435
9435
  if (j(Q)) {
9436
9436
  var pe = Q({
9437
- value: N,
9437
+ value: L,
9438
9438
  selection: ce
9439
9439
  }, {
9440
9440
  value: this.value,
9441
9441
  selection: this.previousSelection
9442
9442
  }, null, this.getBeforeMaskedValueChangeConfig());
9443
- N = pe.value, ce = pe.selection;
9443
+ L = pe.value, ce = pe.selection;
9444
9444
  }
9445
- this.value = N;
9445
+ this.value = L;
9446
9446
  var ge = this.getInputValue() !== this.value;
9447
9447
  ge ? (this.setInputValue(this.value), this.forceUpdate()) : Z && this.forceUpdate();
9448
9448
  var xe = !1;
9449
9449
  ce.start != null && ce.end != null && (xe = !c || c.start !== ce.start || c.end !== ce.end), (xe || ge) && this.setSelection(ce.start, ce.end);
9450
9450
  }, y.componentWillUnmount = function() {
9451
- this.mounted = !1, this.selectionDeferId !== null && G(this.selectionDeferId), this.stopSaveSelectionLoop();
9451
+ this.mounted = !1, this.selectionDeferId !== null && V(this.selectionDeferId), this.stopSaveSelectionLoop();
9452
9452
  }, y.render = function() {
9453
9453
  var c = this.props, T = c.mask;
9454
9454
  c.alwaysShowMask;
9455
9455
  var Q = c.maskChar, z = c.formatChars, F = c.inputRef;
9456
9456
  c.beforeMaskedValueChange;
9457
- var H = c.children, U = l(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]), V;
9457
+ var H = c.children, U = l(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]), q;
9458
9458
  if (process.env.NODE_ENV !== "production" && r(
9459
9459
  // parse mask to test against actual mask prop as this.maskOptions
9460
9460
  // will be updated later in componentDidUpdate
@@ -9465,20 +9465,20 @@ function Rd() {
9465
9465
  var P = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], S = i({}, U);
9466
9466
  P.forEach(function(Z) {
9467
9467
  return delete S[Z];
9468
- }), V = H(S);
9469
- var N = P.filter(function(Z) {
9470
- return V.props[Z] != null && V.props[Z] !== U[Z];
9468
+ }), q = H(S);
9469
+ var L = P.filter(function(Z) {
9470
+ return q.props[Z] != null && q.props[Z] !== U[Z];
9471
9471
  });
9472
- N.length && (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: " + N.join(", ")) : e(!1)), process.env.NODE_ENV !== "production" && r(!F, "react-input-mask: inputRef is ignored when children is passed, attach ref to the children instead");
9472
+ L.length && (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: " + L.join(", ")) : e(!1)), process.env.NODE_ENV !== "production" && r(!F, "react-input-mask: inputRef is ignored when children is passed, attach ref to the children instead");
9473
9473
  } else
9474
- V = a.createElement("input", i({
9474
+ q = a.createElement("input", i({
9475
9475
  ref: this.handleRef
9476
9476
  }, U));
9477
- var L = {
9477
+ var N = {
9478
9478
  onFocus: this.onFocus,
9479
9479
  onBlur: this.onBlur
9480
9480
  };
9481
- return this.maskOptions.mask && (!U.disabled && !U.readOnly && (L.onChange = this.onChange, L.onPaste = this.onPaste, L.onMouseDown = this.onMouseDown), U.value != null && (L.value = this.value)), V = a.cloneElement(V, L), V;
9481
+ return this.maskOptions.mask && (!U.disabled && !U.readOnly && (N.onChange = this.onChange, N.onPaste = this.onPaste, N.onMouseDown = this.onMouseDown), U.value != null && (N.value = this.value)), q = a.cloneElement(q, N), q;
9482
9482
  }, m;
9483
9483
  }(a.Component);
9484
9484
  return Lr = de, Lr;
@@ -9734,7 +9734,7 @@ function Bd(n) {
9734
9734
  return "'в следующую " + a + " в' p";
9735
9735
  }
9736
9736
  }
9737
- const Vd = {
9737
+ const qd = {
9738
9738
  lastWeek: (n, a, t) => {
9739
9739
  const e = n.getDay();
9740
9740
  return bo(n, a, t) ? _o(e) : Hd(e);
@@ -9747,8 +9747,8 @@ const Vd = {
9747
9747
  return bo(n, a, t) ? _o(e) : Bd(e);
9748
9748
  },
9749
9749
  other: "P"
9750
- }, qd = (n, a, t, e) => {
9751
- const r = Vd[n];
9750
+ }, Vd = (n, a, t, e) => {
9751
+ const r = qd[n];
9752
9752
  return typeof r == "function" ? r(a, t, e) : r;
9753
9753
  }, Gd = {
9754
9754
  narrow: ["до н.э.", "н.э."],
@@ -10033,7 +10033,7 @@ const Vd = {
10033
10033
  code: "ru",
10034
10034
  formatDistance: Ld,
10035
10035
  formatLong: $d,
10036
- formatRelative: qd,
10036
+ formatRelative: Vd,
10037
10037
  localize: ef,
10038
10038
  match: hf,
10039
10039
  options: {
@@ -10411,61 +10411,63 @@ const $n = (n) => {
10411
10411
  resize: E,
10412
10412
  onMouseDown: O
10413
10413
  }) => {
10414
- var U, V;
10415
- const M = `${n}th${a}`, I = "auto", [k, q] = ve(), [A, X] = ve(), [B, le] = ve(), [J, se] = ve(), [j, $] = ve(0), [R, W] = ve(""), [G, de] = ve(), [h, m] = ve(!1), y = at(), v = hr(() => {
10414
+ var U, q;
10415
+ console.log("🚀 ~ uncheckedValues:", f);
10416
+ const M = `${n}th${a}`, I = "auto", [k, G] = ve(), [A, X] = ve(), [B, le] = ve(), [J, se] = ve(), [j, $] = ve(0), [R, W] = ve(""), [V, de] = ve(), [h, m] = ve(!1), y = at(), v = hr(() => {
10416
10417
  u === M && d(void 0);
10417
10418
  }), c = (P) => {
10418
10419
  let S = 0;
10419
- for (let N = P; N > 0; N--)
10420
- S = i[N - 1].width ? S + i[N - 1].width : S;
10420
+ for (let L = P; L > 0; L--)
10421
+ S = i[L - 1].width ? S + i[L - 1].width : S;
10421
10422
  return S;
10422
10423
  }, T = () => {
10423
10424
  Q(s.field);
10424
10425
  }, Q = (P) => {
10425
- const S = P === (w == null ? void 0 : w.column) && !(w != null && w.asc) ? void 0 : P, N = {
10426
+ const S = P === (w == null ? void 0 : w.column) && !(w != null && w.asc) ? void 0 : P, L = {
10426
10427
  column: S,
10427
10428
  asc: S === void 0 ? void 0 : (w == null ? void 0 : w.column) === P ? !(w != null && w.asc) : !0
10428
10429
  };
10429
- _ == null || _(N);
10430
+ _ == null || _(L);
10430
10431
  }, z = (P, S) => {
10431
- var N;
10432
+ var L;
10432
10433
  return /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
10433
10434
  /* @__PURE__ */ p.jsx(
10434
10435
  "input",
10435
10436
  {
10436
10437
  id: S,
10437
10438
  type: "checkbox",
10438
- checked: ((N = f[S]) == null ? void 0 : N.find((L) => L === P)) !== P,
10439
+ checked: ((L = f[S]) == null ? void 0 : L.find((N) => N === P)) !== P,
10439
10440
  onChange: () => F(P, S)
10440
10441
  }
10441
10442
  ),
10442
10443
  /* @__PURE__ */ p.jsx("div", { className: "u-checkbox-input" })
10443
10444
  ] });
10444
10445
  }, F = (P, S) => {
10446
+ var L;
10445
10447
  g(
10446
10448
  S in f ? f[S].filter((N) => N !== P).length === 0 ? Object.keys(f).filter((N) => N !== S).reduce(
10447
- (N, L) => ({ ...N, [L]: f[L] }),
10449
+ (N, Z) => ({ ...N, [Z]: f[Z] }),
10448
10450
  {}
10449
- ) : f[S].find((N) => N === P) ? {
10451
+ ) : ((L = f[S]) == null ? void 0 : L.find((N) => N === P)) === P ? {
10450
10452
  ...f,
10451
10453
  [S]: f[S].filter((N) => N !== P)
10452
10454
  } : { ...f, [S]: [...f[S], P] } : { ...f, [S]: [P] }
10453
10455
  );
10454
10456
  }, H = (P, S) => {
10455
10457
  g(
10456
- S in f ? f[S].every((N) => P.includes(N)) ? Object.keys(f).filter((N) => N !== S).reduce(
10457
- (N, L) => ({ ...N, [L]: f[L] }),
10458
+ S in f ? f[S].every((L) => P.includes(L)) ? Object.keys(f).filter((L) => L !== S).reduce(
10459
+ (L, N) => ({ ...L, [N]: f[N] }),
10458
10460
  {}
10459
10461
  ) : R.length > 0 ? {
10460
10462
  ...f,
10461
- [S]: P.every((N) => f[S].includes(N)) ? f[S].filter((N) => !P.includes(N)) : P.every((N) => !f[S].includes(N)) ? f[S].concat(P) : f[S].filter(
10462
- (N) => !P.find((L) => L === N)
10463
+ [S]: P.every((L) => f[S].includes(L)) ? f[S].filter((L) => !P.includes(L)) : P.every((L) => !f[S].includes(L)) ? f[S].concat(P) : f[S].filter(
10464
+ (L) => !P.find((N) => N === L)
10463
10465
  )
10464
10466
  } : {
10465
10467
  ...f,
10466
- [S]: f[S].filter((N) => !P.find((L) => L === N)).concat(P)
10467
- } : { ...f, [S]: P }
10468
- );
10468
+ [S]: f[S].filter((L) => !P.find((N) => N === L)).concat(P)
10469
+ } : R.length > 0 && !h ? { ...f, [S]: V } : { ...f, [S]: P }
10470
+ ), R.length > 0 && m(!0);
10469
10471
  };
10470
10472
  return We(() => {
10471
10473
  de(
@@ -10480,19 +10482,19 @@ const $n = (n) => {
10480
10482
  (S = (P = y == null ? void 0 : y.current) == null ? void 0 : P.getBoundingClientRect()) == null ? void 0 : S.height
10481
10483
  );
10482
10484
  }, []), We(() => {
10483
- R.length === 0 && m(!1);
10485
+ console.log("FT", s.filterType), R.length > 0 && s.field in f && f[s.field].length !== 0 && m(!0), R.length === 0 && m(!1);
10484
10486
  }, [R]), We(() => {
10485
10487
  const P = (k == null ? void 0 : k.typeFilterSearch.id) ?? "exact";
10486
- B && !k && P === "exact" && q({ typeFilterSearch: Mo[2] }), u && b((S) => {
10487
- const N = S.findIndex((L) => L.id === s.field);
10488
- if (N !== -1) {
10489
- const L = [...S];
10490
- return L[N] = {
10488
+ B && !k && P === "exact" && G({ typeFilterSearch: Mo[2] }), u && b((S) => {
10489
+ const L = S.findIndex((N) => N.id === s.field);
10490
+ if (L !== -1) {
10491
+ const N = [...S];
10492
+ return N[L] = {
10491
10493
  type: P,
10492
10494
  begin: B || null,
10493
10495
  end: J || null,
10494
10496
  id: s.field
10495
- }, L;
10497
+ }, N;
10496
10498
  } else
10497
10499
  return [
10498
10500
  ...S,
@@ -10506,22 +10508,22 @@ const $n = (n) => {
10506
10508
  });
10507
10509
  }, [B, J, k]), We(() => {
10508
10510
  var P, S;
10509
- s.filterType === "string" && (!k && R.length > 0 && q({ typeFilterSearch: Oo[0] }), R ? k ? wf(
10511
+ s.filterType === "string" && (!k && R.length > 0 && G({ typeFilterSearch: Oo[0] }), R ? k ? wf(
10510
10512
  (P = k == null ? void 0 : k.typeFilterSearch) == null ? void 0 : P.id,
10511
10513
  R,
10512
10514
  X,
10513
- G
10514
- ) : bi(R, X, G) : X(
10515
+ V
10516
+ ) : bi(R, X, V) : X(
10515
10517
  Ar(
10516
10518
  Wr(s.filterOptions),
10517
10519
  C
10518
10520
  )
10519
- )), s.filterType === "number" && (!k && R.length > 0 && q({ typeFilterSearch: To[0] }), R ? k ? xf(
10521
+ )), s.filterType === "number" && (!k && R.length > 0 && G({ typeFilterSearch: To[0] }), R ? k ? xf(
10520
10522
  (S = k == null ? void 0 : k.typeFilterSearch) == null ? void 0 : S.id,
10521
10523
  R,
10522
10524
  X,
10523
- G
10524
- ) : wi(R, X, G) : X(
10525
+ V
10526
+ ) : wi(R, X, V) : X(
10525
10527
  Ar(
10526
10528
  Wr(s.filterOptions),
10527
10529
  C
@@ -10710,7 +10712,7 @@ const $n = (n) => {
10710
10712
  keySelect: "typeFilterSearch",
10711
10713
  value: k == null ? void 0 : k.typeFilterSearch,
10712
10714
  options: Mo,
10713
- onChange: q,
10715
+ onChange: G,
10714
10716
  height: 38,
10715
10717
  width: "100%",
10716
10718
  className: "",
@@ -10768,7 +10770,7 @@ const $n = (n) => {
10768
10770
  onChange: le
10769
10771
  }
10770
10772
  ),
10771
- ((V = k == null ? void 0 : k.typeFilterSearch) == null ? void 0 : V.title) === "Между" && /* @__PURE__ */ p.jsx(
10773
+ ((q = k == null ? void 0 : k.typeFilterSearch) == null ? void 0 : q.title) === "Между" && /* @__PURE__ */ p.jsx(
10772
10774
  Co,
10773
10775
  {
10774
10776
  isClearable: !0,
@@ -10819,7 +10821,7 @@ const $n = (n) => {
10819
10821
  keySelect: "typeFilterSearch",
10820
10822
  value: k == null ? void 0 : k.typeFilterSearch,
10821
10823
  options: Oo,
10822
- onChange: q,
10824
+ onChange: G,
10823
10825
  height: 38,
10824
10826
  width: "100%",
10825
10827
  className: "",
@@ -10881,13 +10883,11 @@ const $n = (n) => {
10881
10883
  "input",
10882
10884
  {
10883
10885
  type: "checkbox",
10884
- onChange: () => {
10885
- H(A, s.field), R.length > 0 && m(!0);
10886
- },
10886
+ onChange: () => H(A, s.field),
10887
10887
  checked: A.every(
10888
10888
  (P) => {
10889
10889
  var S;
10890
- return !((S = f[s.field]) != null && S.some((N) => N === P));
10890
+ return !((S = f[s.field]) != null && S.some((L) => L === P));
10891
10891
  }
10892
10892
  )
10893
10893
  }
@@ -10989,7 +10989,7 @@ const $n = (n) => {
10989
10989
  keySelect: "typeFilterSearch",
10990
10990
  value: k == null ? void 0 : k.typeFilterSearch,
10991
10991
  options: To,
10992
- onChange: q,
10992
+ onChange: G,
10993
10993
  height: 38,
10994
10994
  width: "100%",
10995
10995
  className: "",
@@ -11051,13 +11051,11 @@ const $n = (n) => {
11051
11051
  "input",
11052
11052
  {
11053
11053
  type: "checkbox",
11054
- onChange: () => {
11055
- H(A, s.field), R.length > 0 && m(!0);
11056
- },
11054
+ onChange: () => H(A, s.field),
11057
11055
  checked: A.every(
11058
11056
  (P) => {
11059
11057
  var S;
11060
- return !((S = f[s.field]) != null && S.some((N) => N === P));
11058
+ return !((S = f[s.field]) != null && S.some((L) => L === P));
11061
11059
  }
11062
11060
  )
11063
11061
  }
@@ -11113,7 +11111,7 @@ const $n = (n) => {
11113
11111
  overflow: "hidden",
11114
11112
  textOverflow: "ellipsis"
11115
11113
  },
11116
- children: P
11114
+ children: s.roundUpTo ? P.toFixed(s.roundUpTo) : P
11117
11115
  }
11118
11116
  )
11119
11117
  ]
@@ -11157,7 +11155,7 @@ const $n = (n) => {
11157
11155
  keySelect: "typeFilterSearch",
11158
11156
  value: k == null ? void 0 : k.typeFilterSearch,
11159
11157
  options: Ef,
11160
- onChange: q,
11158
+ onChange: G,
11161
11159
  height: 38,
11162
11160
  width: "100%",
11163
11161
  className: "",
@@ -11340,8 +11338,8 @@ const Of = ({
11340
11338
  }) => {
11341
11339
  const E = (M) => typeof M == "number" ? `${M}px` : String(M), O = (M) => {
11342
11340
  e(M);
11343
- const I = document.getElementById(`input-expand${t}`), k = document.createRange(), q = window.getSelection();
11344
- k.selectNodeContents(I), k.collapse(!1), q.removeAllRanges(), q.addRange(k);
11341
+ const I = document.getElementById(`input-expand${t}`), k = document.createRange(), G = window.getSelection();
11342
+ k.selectNodeContents(I), k.collapse(!1), G.removeAllRanges(), G.addRange(k);
11345
11343
  };
11346
11344
  return /* @__PURE__ */ p.jsxs("div", { className: `u-react-input-expand-container ${f}`, style: { position: "relative" }, children: [
11347
11345
  /* @__PURE__ */ p.jsxs(
@@ -11440,7 +11438,7 @@ const Tf = ({
11440
11438
  setFiles: O,
11441
11439
  multiple: M = !1
11442
11440
  }) => {
11443
- const I = at(null), k = (j) => typeof j == "number" ? `${j}px` : String(j), q = (j) => j == null ? void 0 : j.toLocaleString("ru", { day: "numeric", month: "numeric", year: "numeric" }), A = (j) => j > 1048576 ? (j / 1024 / 1024).toFixed(1) + "Мб" : j > 1024 ? (j / 1024).toFixed(1) + "Кб" : j.toFixed(1) + "б", X = (j) => {
11441
+ const I = at(null), k = (j) => typeof j == "number" ? `${j}px` : String(j), G = (j) => j == null ? void 0 : j.toLocaleString("ru", { day: "numeric", month: "numeric", year: "numeric" }), A = (j) => j > 1048576 ? (j / 1024 / 1024).toFixed(1) + "Мб" : j > 1024 ? (j / 1024).toFixed(1) + "Кб" : j.toFixed(1) + "б", X = (j) => {
11444
11442
  switch (j.split(".").pop().toLowerCase()) {
11445
11443
  case "pdf":
11446
11444
  return "pdf";
@@ -11478,7 +11476,7 @@ const Tf = ({
11478
11476
  }, le = (j) => {
11479
11477
  const R = Array.from(j.target.files).filter(
11480
11478
  (W) => !E.some(
11481
- (G) => G.name === W.name
11479
+ (V) => V.name === W.name
11482
11480
  )
11483
11481
  );
11484
11482
  R.length > 0 && O((W) => [...W, ...R]), I.current.value = "";
@@ -11535,7 +11533,7 @@ const Tf = ({
11535
11533
  /* @__PURE__ */ p.jsx("p", { children: j.name }),
11536
11534
  /* @__PURE__ */ p.jsxs("div", { className: "u-file-cell-content-props", children: [
11537
11535
  /* @__PURE__ */ p.jsx("span", { children: A(j.size) }),
11538
- /* @__PURE__ */ p.jsx("span", { children: q(j.lastModifiedDate) })
11536
+ /* @__PURE__ */ p.jsx("span", { children: G(j.lastModifiedDate) })
11539
11537
  ] })
11540
11538
  ] }) }),
11541
11539
  /* @__PURE__ */ p.jsx("button", { type: "button", onClick: () => se($) })
@@ -11545,7 +11543,7 @@ const Tf = ({
11545
11543
  /* @__PURE__ */ p.jsx("p", { children: E[0].name }),
11546
11544
  /* @__PURE__ */ p.jsxs("div", { className: "u-file-cell-content-props", children: [
11547
11545
  /* @__PURE__ */ p.jsx("span", { children: A(E[0].size) }),
11548
- /* @__PURE__ */ p.jsx("span", { children: q(E[0].lastModifiedDate) })
11546
+ /* @__PURE__ */ p.jsx("span", { children: G(E[0].lastModifiedDate) })
11549
11547
  ] })
11550
11548
  ] }) }),
11551
11549
  /* @__PURE__ */ p.jsx("button", { type: "button", onClick: () => se(0) })
@@ -11594,7 +11592,7 @@ const Pf = ({
11594
11592
  validationOnWithoutText: M,
11595
11593
  absoluteValidationText: I
11596
11594
  }) => {
11597
- const k = (X) => typeof X == "number" ? `${X}px` : String(X), q = (X) => {
11595
+ const k = (X) => typeof X == "number" ? `${X}px` : String(X), G = (X) => {
11598
11596
  let B = document.getElementById(`num-minus-${X}`);
11599
11597
  const J = B == null ? void 0 : B.nextElementSibling;
11600
11598
  J == null || J.stepDown();
@@ -11638,7 +11636,7 @@ const Pf = ({
11638
11636
  className: "u-number-down",
11639
11637
  type: "button",
11640
11638
  onClick: () => {
11641
- q(`${r}`);
11639
+ G(`${r}`);
11642
11640
  },
11643
11641
  id: `num-minus-${r}`
11644
11642
  }
@@ -11699,7 +11697,7 @@ const Nf = ({
11699
11697
  validationOnWithoutText: M,
11700
11698
  absoluteValidationText: I
11701
11699
  }) => {
11702
- const k = (q) => typeof q == "number" ? `${q}px` : String(q);
11700
+ const k = (G) => typeof G == "number" ? `${G}px` : String(G);
11703
11701
  return /* @__PURE__ */ p.jsxs("div", { className: `u-react-input-container ${w}`, style: { position: "relative" }, children: [
11704
11702
  /* @__PURE__ */ p.jsxs(
11705
11703
  "div",
@@ -11945,15 +11943,15 @@ const mr = (n, a, t) => {
11945
11943
  portalOn: f,
11946
11944
  isSearchable: g
11947
11945
  }) => {
11948
- const [b, C] = ve(!1), [w, _] = ve(""), [E, O] = ve(null), [M, I] = ve(null), k = at(), q = Ff(w, 300), A = ji(() => t.filter(($) => $.label.toLowerCase().includes((q || "").toLowerCase())), [q, t]), X = hr(() => {
11946
+ const [b, C] = ve(!1), [w, _] = ve(""), [E, O] = ve(null), [M, I] = ve(null), k = at(), G = Ff(w, 300), A = ji(() => t.filter(($) => $.label.toLowerCase().includes((G || "").toLowerCase())), [G, t]), X = hr(() => {
11949
11947
  C(!1), O(null);
11950
11948
  }), B = at(null), le = at(null);
11951
11949
  mr(le, B, () => {
11952
11950
  C(!1), O(null);
11953
11951
  });
11954
11952
  const J = ($) => {
11955
- const { x: R, y: W, width: G, height: de } = $.getBoundingClientRect();
11956
- O({ x: R, y: W + 60 + de + window.scrollY }), I(G);
11953
+ const { x: R, y: W, width: V, height: de } = $.getBoundingClientRect();
11954
+ O({ x: R, y: W + 60 + de + window.scrollY }), I(V);
11957
11955
  }, se = ($) => {
11958
11956
  r.some((R) => R.value == $.value) ? o(r.filter((R) => R.value != $.value)) : o([...r, $]), g && (_(""), k.current.focus());
11959
11957
  }, j = ($) => {
@@ -11963,8 +11961,8 @@ const mr = (n, a, t) => {
11963
11961
  const $ = B.current;
11964
11962
  if (!$) return;
11965
11963
  const R = new ResizeObserver(() => {
11966
- const { x: W, y: G, width: de, height: h } = $.getBoundingClientRect();
11967
- O({ x: W, y: G + 60 + h + window.scrollY }), I(de);
11964
+ const { x: W, y: V, width: de, height: h } = $.getBoundingClientRect();
11965
+ O({ x: W, y: V + 60 + h + window.scrollY }), I(de);
11968
11966
  });
11969
11967
  return R.observe($), () => {
11970
11968
  R.disconnect();
@@ -12328,7 +12326,7 @@ const Hf = ({
12328
12326
  absoluteValidationText: _,
12329
12327
  portalOn: E
12330
12328
  }) => {
12331
- const [O, M] = ve(!1), [I, k] = ve(""), [q, A] = ve(null), [X, B] = ve(null), le = hr(() => {
12329
+ const [O, M] = ve(!1), [I, k] = ve(""), [G, A] = ve(null), [X, B] = ve(null), le = hr(() => {
12332
12330
  M(!1), A(null);
12333
12331
  }), J = at(null), se = at(null);
12334
12332
  mr(se, J, () => {
@@ -12337,8 +12335,8 @@ const Hf = ({
12337
12335
  const j = t.filter(
12338
12336
  (W) => W.label.toLowerCase().includes(I.toLowerCase())
12339
12337
  ), $ = (W) => typeof W == "number" ? `${W}px` : String(W), R = (W) => {
12340
- const { x: G, y: de, width: h } = W.getBoundingClientRect();
12341
- A({ x: G, y: de + 90 + window.scrollY }), B(h);
12338
+ const { x: V, y: de, width: h } = W.getBoundingClientRect();
12339
+ A({ x: V, y: de + 90 + window.scrollY }), B(h);
12342
12340
  };
12343
12341
  return We(() => {
12344
12342
  d && Object.keys(d).length == 0 && k("");
@@ -12346,12 +12344,12 @@ const Hf = ({
12346
12344
  if (I.length > 0) {
12347
12345
  const W = J.current;
12348
12346
  if (!W) return;
12349
- const G = new ResizeObserver(() => {
12347
+ const V = new ResizeObserver(() => {
12350
12348
  const { x: de, y: h, width: m, height: y } = W.getBoundingClientRect();
12351
12349
  A({ x: de, y: h + 60 + y + window.scrollY }), B(m);
12352
12350
  });
12353
- return G.observe(W), () => {
12354
- G.disconnect();
12351
+ return V.observe(W), () => {
12352
+ V.disconnect();
12355
12353
  };
12356
12354
  }
12357
12355
  }, [I]), We(() => {
@@ -12421,14 +12419,14 @@ const Hf = ({
12421
12419
  placeholder: d != null && d.label && Object.keys(d).length ? d.label : u
12422
12420
  }
12423
12421
  ),
12424
- O && E ? q && Sn(
12422
+ O && E ? G && Sn(
12425
12423
  /* @__PURE__ */ p.jsx(
12426
12424
  "div",
12427
12425
  {
12428
12426
  ref: se,
12429
12427
  className: "u-selectbox-options",
12430
- style: { width: X, left: q == null ? void 0 : q.x, top: (q == null ? void 0 : q.y) - 60, opacity: 1, visibility: "visible", height: "fit-content", zIndex: 1e3, display: "block" },
12431
- children: j.map((W, G) => /* @__PURE__ */ p.jsx(
12428
+ style: { width: X, left: G == null ? void 0 : G.x, top: (G == null ? void 0 : G.y) - 60, opacity: 1, visibility: "visible", height: "fit-content", zIndex: 1e3, display: "block" },
12429
+ children: j.map((W, V) => /* @__PURE__ */ p.jsx(
12432
12430
  "div",
12433
12431
  {
12434
12432
  className: "u-selectbox-option",
@@ -12443,12 +12441,12 @@ const Hf = ({
12443
12441
  } : null,
12444
12442
  children: W.label
12445
12443
  },
12446
- G
12444
+ V
12447
12445
  ))
12448
12446
  }
12449
12447
  ),
12450
12448
  document.body
12451
- ) : /* @__PURE__ */ p.jsx("div", { className: "u-selectbox-options", children: j.length > 0 ? j.map((W, G) => /* @__PURE__ */ p.jsx(
12449
+ ) : /* @__PURE__ */ p.jsx("div", { className: "u-selectbox-options", children: j.length > 0 ? j.map((W, V) => /* @__PURE__ */ p.jsx(
12452
12450
  "div",
12453
12451
  {
12454
12452
  className: "u-selectbox-option",
@@ -12463,7 +12461,7 @@ const Hf = ({
12463
12461
  } : null,
12464
12462
  children: W.label
12465
12463
  },
12466
- G
12464
+ V
12467
12465
  )) : /* @__PURE__ */ p.jsx("div", { children: "Ничего не найдено" }) })
12468
12466
  ]
12469
12467
  }
@@ -12511,15 +12509,15 @@ const Bf = ({
12511
12509
  disabled: O,
12512
12510
  portalOn: M
12513
12511
  }) => {
12514
- const [I, k] = ve(!1), [q, A] = ve(null), [X, B] = ve(null), le = hr(() => {
12512
+ const [I, k] = ve(!1), [G, A] = ve(null), [X, B] = ve(null), le = hr(() => {
12515
12513
  k(!1), A(null);
12516
12514
  }), J = at(null), se = at(null);
12517
12515
  mr(se, J, () => {
12518
12516
  k(!1), A(null);
12519
12517
  });
12520
12518
  const j = (R) => typeof R == "number" ? `${R}px` : String(R), $ = (R) => {
12521
- const { x: W, y: G, width: de } = R.getBoundingClientRect();
12522
- A({ x: W, y: G + 90 + window.scrollY }), B(de);
12519
+ const { x: W, y: V, width: de } = R.getBoundingClientRect();
12520
+ A({ x: W, y: V + 90 + window.scrollY }), B(de);
12523
12521
  };
12524
12522
  return /* @__PURE__ */ p.jsxs("div", { className: `u-react-select-container ${b}`, style: { position: "relative" }, children: [
12525
12523
  /* @__PURE__ */ p.jsxs(
@@ -12606,19 +12604,19 @@ const Bf = ({
12606
12604
  ]
12607
12605
  }
12608
12606
  ),
12609
- M ? q && Sn(
12607
+ M ? G && Sn(
12610
12608
  /* @__PURE__ */ p.jsx(
12611
12609
  "div",
12612
12610
  {
12613
12611
  ref: se,
12614
12612
  className: "u-selectbox-options",
12615
- style: { width: X, left: q == null ? void 0 : q.x, top: (q == null ? void 0 : q.y) - 60, opacity: 1, visibility: "visible", height: "fit-content", zIndex: 1e3, display: "block" },
12613
+ style: { width: X, left: G == null ? void 0 : G.x, top: (G == null ? void 0 : G.y) - 60, opacity: 1, visibility: "visible", height: "fit-content", zIndex: 1e3, display: "block" },
12616
12614
  children: t.map((R, W) => /* @__PURE__ */ p.jsx(
12617
12615
  "div",
12618
12616
  {
12619
12617
  className: "u-selectbox-option",
12620
- onClick: (G) => {
12621
- G.stopPropagation(), g(R), k(!1), A(null);
12618
+ onClick: (V) => {
12619
+ V.stopPropagation(), g(R), k(!1), A(null);
12622
12620
  },
12623
12621
  style: Object.assign(
12624
12622
  {
@@ -12647,8 +12645,8 @@ const Bf = ({
12647
12645
  "div",
12648
12646
  {
12649
12647
  className: "u-selectbox-option",
12650
- onClick: (G) => {
12651
- G.stopPropagation(), g(R), k(!1);
12648
+ onClick: (V) => {
12649
+ V.stopPropagation(), g(R), k(!1);
12652
12650
  },
12653
12651
  style: Object.assign(
12654
12652
  {
@@ -12692,7 +12690,7 @@ Bf.propTypes = {
12692
12690
  onChange: D.func,
12693
12691
  className: D.string
12694
12692
  };
12695
- const Vf = ({
12693
+ const qf = ({
12696
12694
  size: n = "medium",
12697
12695
  variant: a = "",
12698
12696
  children: t,
@@ -12720,13 +12718,13 @@ const Vf = ({
12720
12718
  };
12721
12719
  return /* @__PURE__ */ p.jsx("div", { id: r, className: `u-status${n === "large" ? " u-status-large" : ""}${i(a)} ${e}`, ...o, children: t });
12722
12720
  };
12723
- Vf.propTypes = {
12721
+ qf.propTypes = {
12724
12722
  children: D.string,
12725
12723
  variant: D.string,
12726
12724
  size: D.string,
12727
12725
  className: D.string
12728
12726
  };
12729
- const qf = ({
12727
+ const Vf = ({
12730
12728
  data: n,
12731
12729
  columns: a,
12732
12730
  borders: t = "horizontal",
@@ -12749,22 +12747,22 @@ const qf = ({
12749
12747
  resize: M,
12750
12748
  onDrop: I,
12751
12749
  maxHeight: k,
12752
- minHeight: q,
12750
+ minHeight: G,
12753
12751
  whereFindChecked: A = "",
12754
12752
  filterEmptyLabel: X = "Не указано",
12755
12753
  virtualizationOn: B
12756
12754
  }) => {
12757
12755
  var Ze;
12758
- const le = a.map((ne) => ne.width), [J, se] = ve([]), [j, $] = ve(), [R, W] = ve([]), [G, de] = ve(
12756
+ const le = a.map((ne) => ne.width), [J, se] = ve([]), [j, $] = ve(), [R, W] = ve([]), [V, de] = ve(
12759
12757
  a.filter((ne) => ne.hidden !== !0)
12760
- ), [h, m] = ve([]), [y, v] = ve([]), [c, T] = ve(), [Q, z] = ve(!1), F = at(), [H, U] = ve(0), V = 100, P = 20, S = () => V * H, N = () => V * (R.length - (H + P + 1)), L = (ne, ue) => {
12758
+ ), [h, m] = ve([]), [y, v] = ve([]), [c, T] = ve(), [Q, z] = ve(!1), F = at(), [H, U] = ve(0), q = 100, P = 20, S = () => q * H, L = () => q * (R.length - (H + P + 1)), N = (ne, ue) => {
12761
12759
  const oe = [...J];
12762
12760
  oe[ne] = ue < le[ne] ? le[ne] : ue, se(oe);
12763
12761
  }, Z = (ne, ue) => {
12764
12762
  ne.preventDefault();
12765
12763
  const oe = ne.clientX, Le = (mt) => {
12766
12764
  const Ue = mt.clientX - oe, Je = J[ue] + Ue;
12767
- L(ue, Je);
12765
+ N(ue, Je);
12768
12766
  }, Ye = () => {
12769
12767
  document.removeEventListener("mousemove", Le), document.removeEventListener("mouseup", Ye);
12770
12768
  };
@@ -12803,7 +12801,7 @@ const qf = ({
12803
12801
  );
12804
12802
  }), Ue = ne.length === 0 || Object.keys(Ye).some(
12805
12803
  (ze) => ne.some(
12806
- (Pe) => Pe.id === ze && Ve(
12804
+ (Pe) => Pe.id === ze && qe(
12807
12805
  Ye[ze],
12808
12806
  Pe.type,
12809
12807
  Pe.begin,
@@ -12832,7 +12830,7 @@ const qf = ({
12832
12830
  }), W(oe);
12833
12831
  }
12834
12832
  }, [n, h, y, c]);
12835
- const Ve = (ne, ue, oe, Le) => {
12833
+ const qe = (ne, ue, oe, Le) => {
12836
12834
  const Ye = new Date(ne);
12837
12835
  switch (ue) {
12838
12836
  case "before":
@@ -12857,7 +12855,7 @@ const qf = ({
12857
12855
  R.slice(H, H + P + 1).length > P ? (z(!1), U(
12858
12856
  Math.min(
12859
12857
  R.length - P - 1,
12860
- Math.floor(ue.scrollTop / V)
12858
+ Math.floor(ue.scrollTop / q)
12861
12859
  )
12862
12860
  )) : z(!0);
12863
12861
  };
@@ -12871,14 +12869,14 @@ const qf = ({
12871
12869
  {
12872
12870
  id: E,
12873
12871
  className: `u-table${["horizontal", "vertical", "none", "both"].includes(t) ? ge(t) : ""}${e ? " striped" : ""}${r ? " not-active-lines" : ""}${o ? " thead-fixed" : ""}${i ? " header-borders" : ""}${C ? " " + C : ""}`,
12874
- style: { maxHeight: k, minHeight: q },
12872
+ style: { maxHeight: k, minHeight: G },
12875
12873
  ref: B && F,
12876
12874
  children: /* @__PURE__ */ p.jsxs("table", { className: "table", children: [
12877
- /* @__PURE__ */ p.jsx("thead", { style: { zIndex: "2" }, children: /* @__PURE__ */ p.jsx("tr", { children: G == null ? void 0 : G.map(
12875
+ /* @__PURE__ */ p.jsx("thead", { style: { zIndex: "2" }, children: /* @__PURE__ */ p.jsx("tr", { children: V == null ? void 0 : V.map(
12878
12876
  (ne, ue) => ne.filterOn ? /* @__PURE__ */ p.jsx(
12879
12877
  xi,
12880
12878
  {
12881
- columns: G,
12879
+ columns: V,
12882
12880
  column: ne,
12883
12881
  id: E,
12884
12882
  cellStyle: u,
@@ -12987,7 +12985,7 @@ const qf = ({
12987
12985
  onDragStart: (oe) => Fe(oe, String(ue)),
12988
12986
  onDragOver: (oe) => xe(oe),
12989
12987
  onDrop: (oe) => Re(oe, ue),
12990
- children: G == null ? void 0 : G.map((oe, Le) => /* @__PURE__ */ p.jsx(
12988
+ children: V == null ? void 0 : V.map((oe, Le) => /* @__PURE__ */ p.jsx(
12991
12989
  "td",
12992
12990
  {
12993
12991
  id: `${E}td${ue}${Le}`,
@@ -13032,7 +13030,7 @@ const qf = ({
13032
13030
  B && /* @__PURE__ */ p.jsx(
13033
13031
  "div",
13034
13032
  {
13035
- style: { height: Q ? 0 : N() }
13033
+ style: { height: Q ? 0 : L() }
13036
13034
  }
13037
13035
  )
13038
13036
  ] })
@@ -13040,7 +13038,7 @@ const qf = ({
13040
13038
  }
13041
13039
  ) : /* @__PURE__ */ p.jsx("div", { children: b }) });
13042
13040
  };
13043
- qf.propTypes = {
13041
+ Vf.propTypes = {
13044
13042
  data: D.array,
13045
13043
  columns: D.array,
13046
13044
  verticalBorders: D.bool,
@@ -13159,8 +13157,8 @@ const Uf = ({
13159
13157
  }
13160
13158
  }, [g]);
13161
13159
  const _ = (O, M, I) => {
13162
- const { x: k, y: q, width: A } = O.target.getBoundingClientRect();
13163
- s({ x: k + A / 2, y: q + 12 + window.scrollY - l + 37 }), f(M), b(`u-tooltip${I}`);
13160
+ const { x: k, y: G, width: A } = O.target.getBoundingClientRect();
13161
+ s({ x: k + A / 2, y: G + 12 + window.scrollY - l + 37 }), f(M), b(`u-tooltip${I}`);
13164
13162
  }, E = () => {
13165
13163
  s(null), b(""), u(null), w(!1);
13166
13164
  };
@@ -13203,9 +13201,9 @@ const zf = ({
13203
13201
  id: M,
13204
13202
  disabled: I
13205
13203
  }) => {
13206
- const [k, q] = ve(null), [A, X] = ve([]), [B, le] = ve(!1), J = at(null), se = at(null);
13204
+ const [k, G] = ve(null), [A, X] = ve([]), [B, le] = ve(!1), J = at(null), se = at(null);
13207
13205
  mr(se, J, () => {
13208
- le(!1), q(null);
13206
+ le(!1), G(null);
13209
13207
  });
13210
13208
  const j = (h) => typeof h == "number" ? `${h}px` : String(h), $ = (h, m) => {
13211
13209
  h.stopPropagation(), X((y) => y != null && y.includes(m) ? y.filter((v) => v !== m) : [...y, m]);
@@ -13220,7 +13218,7 @@ const zf = ({
13220
13218
  }), y;
13221
13219
  }, W = ({ node: h, counter: m }) => {
13222
13220
  const y = E.filter((z) => z.parentId === h.id), v = m + 1, c = A == null ? void 0 : A.includes(h.id), T = R(h), Q = () => {
13223
- f(h), le(!1), q(null);
13221
+ f(h), le(!1), G(null);
13224
13222
  };
13225
13223
  return /* @__PURE__ */ p.jsxs("ul", { className: "treeview-list", children: [
13226
13224
  /* @__PURE__ */ p.jsxs("li", { style: { paddingLeft: `calc(${m} * 16px)` }, className: "treeview-list__item", children: [
@@ -13230,9 +13228,9 @@ const zf = ({
13230
13228
  ] }),
13231
13229
  c && y.map((z) => /* @__PURE__ */ p.jsx(W, { node: z, counter: v }, z.id))
13232
13230
  ] });
13233
- }, G = E == null ? void 0 : E.filter((h) => h.parentId === null), de = (h) => {
13231
+ }, V = E == null ? void 0 : E.filter((h) => h.parentId === null), de = (h) => {
13234
13232
  const { x: m, y } = h.target.getBoundingClientRect();
13235
- q({ x: m, y: y + 90 + window.scrollY });
13233
+ G({ x: m, y: y + 90 + window.scrollY });
13236
13234
  };
13237
13235
  return /* @__PURE__ */ p.jsxs("div", { className: `u-react-select-container ${g}`, style: { position: "relative" }, children: [
13238
13236
  /* @__PURE__ */ p.jsxs(
@@ -13272,7 +13270,7 @@ const zf = ({
13272
13270
  "div",
13273
13271
  {
13274
13272
  onClick: (h) => {
13275
- !B && O ? de(h) : q(null), le(!B);
13273
+ !B && O ? de(h) : G(null), le(!B);
13276
13274
  },
13277
13275
  className: `u-selectbox-select ${B ? "u-selectbox-select-open" : ""}`,
13278
13276
  id: `u-selectbox-select${M}`,
@@ -13291,7 +13289,7 @@ const zf = ({
13291
13289
  "i",
13292
13290
  {
13293
13291
  onClick: (h) => {
13294
- q(null), d(h), le(!1);
13292
+ G(null), d(h), le(!1);
13295
13293
  },
13296
13294
  className: "u-selectbox-select-icon-cross"
13297
13295
  }
@@ -13316,7 +13314,7 @@ const zf = ({
13316
13314
  ref: se,
13317
13315
  style: { left: k == null ? void 0 : k.x, top: (k == null ? void 0 : k.y) - 60, opacity: 1, visibility: "visible", height: "fit-content", zIndex: 1e3, display: "block", width: "auto" },
13318
13316
  className: "u-selectbox-options",
13319
- children: /* @__PURE__ */ p.jsx("div", { className: "treeview", children: G == null ? void 0 : G.map((h) => /* @__PURE__ */ p.jsx(W, { node: h, counter: 0 }, h.id)) })
13317
+ children: /* @__PURE__ */ p.jsx("div", { className: "treeview", children: V == null ? void 0 : V.map((h) => /* @__PURE__ */ p.jsx(W, { node: h, counter: 0 }, h.id)) })
13320
13318
  }
13321
13319
  ),
13322
13320
  document.body
@@ -13325,7 +13323,7 @@ const zf = ({
13325
13323
  {
13326
13324
  ref: se,
13327
13325
  className: "u-selectbox-options",
13328
- children: /* @__PURE__ */ p.jsx("div", { className: "treeview", children: G == null ? void 0 : G.map((h) => /* @__PURE__ */ p.jsx(W, { node: h, counter: 0 }, h.id)) })
13326
+ children: /* @__PURE__ */ p.jsx("div", { className: "treeview", children: V == null ? void 0 : V.map((h) => /* @__PURE__ */ p.jsx(W, { node: h, counter: 0 }, h.id)) })
13329
13327
  }
13330
13328
  )
13331
13329
  ]
@@ -13374,8 +13372,8 @@ export {
13374
13372
  $f as Search,
13375
13373
  Hf as SearchSelect,
13376
13374
  Bf as Select,
13377
- Vf as Status,
13378
- qf as Table,
13375
+ qf as Status,
13376
+ Vf as Table,
13379
13377
  Gf as Tabs,
13380
13378
  Qf as Textarea,
13381
13379
  Uf as Tooltip,