@eliseubatista99/react-scaffold-core 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/hooks/useFetch/useFetch.d.ts +10 -5
- package/dist/index.cjs.js +11 -11
- package/dist/index.es.js +945 -929
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -44,8 +44,8 @@ function Rn() {
|
|
|
44
44
|
rr = 1;
|
|
45
45
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
46
46
|
function r(i, a, s) {
|
|
47
|
-
var
|
|
48
|
-
if (s !== void 0 && (
|
|
47
|
+
var d = null;
|
|
48
|
+
if (s !== void 0 && (d = "" + s), a.key !== void 0 && (d = "" + a.key), "key" in a) {
|
|
49
49
|
s = {};
|
|
50
50
|
for (var l in a)
|
|
51
51
|
l !== "key" && (s[l] = a[l]);
|
|
@@ -53,7 +53,7 @@ function Rn() {
|
|
|
53
53
|
return a = s.ref, {
|
|
54
54
|
$$typeof: e,
|
|
55
55
|
type: i,
|
|
56
|
-
key:
|
|
56
|
+
key: d,
|
|
57
57
|
ref: a !== void 0 ? a : null,
|
|
58
58
|
props: s
|
|
59
59
|
};
|
|
@@ -85,11 +85,11 @@ function _n() {
|
|
|
85
85
|
return "Profiler";
|
|
86
86
|
case I:
|
|
87
87
|
return "StrictMode";
|
|
88
|
-
case
|
|
88
|
+
case g:
|
|
89
89
|
return "Suspense";
|
|
90
90
|
case w:
|
|
91
91
|
return "SuspenseList";
|
|
92
|
-
case
|
|
92
|
+
case b:
|
|
93
93
|
return "Activity";
|
|
94
94
|
}
|
|
95
95
|
if (typeof n == "object")
|
|
@@ -154,7 +154,7 @@ function _n() {
|
|
|
154
154
|
function s() {
|
|
155
155
|
return Error("react-stack-top-frame");
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function d(n) {
|
|
158
158
|
if (A.call(n, "key")) {
|
|
159
159
|
var c = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
160
160
|
if (c && c.isReactWarning) return !1;
|
|
@@ -179,7 +179,7 @@ function _n() {
|
|
|
179
179
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
180
180
|
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function f(n, c, O, $, D, z, N, W) {
|
|
183
183
|
return O = z.ref, n = {
|
|
184
184
|
$$typeof: L,
|
|
185
185
|
type: n,
|
|
@@ -211,19 +211,19 @@ function _n() {
|
|
|
211
211
|
value: W
|
|
212
212
|
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function v(n, c, O, $, D, z, N, W) {
|
|
215
215
|
var B = c.children;
|
|
216
216
|
if (B !== void 0)
|
|
217
217
|
if ($)
|
|
218
218
|
if (_(B)) {
|
|
219
219
|
for ($ = 0; $ < B.length; $++)
|
|
220
|
-
|
|
220
|
+
y(B[$]);
|
|
221
221
|
Object.freeze && Object.freeze(B);
|
|
222
222
|
} else
|
|
223
223
|
console.error(
|
|
224
224
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
225
225
|
);
|
|
226
|
-
else
|
|
226
|
+
else y(B);
|
|
227
227
|
if (A.call(c, "key")) {
|
|
228
228
|
B = e(n);
|
|
229
229
|
var K = Object.keys(c).filter(function(J) {
|
|
@@ -242,7 +242,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
242
242
|
B
|
|
243
243
|
), m[B + $] = !0);
|
|
244
244
|
}
|
|
245
|
-
if (B = null, O !== void 0 && (r(O), B = "" + O),
|
|
245
|
+
if (B = null, O !== void 0 && (r(O), B = "" + O), d(c) && (r(c.key), B = "" + c.key), "key" in c) {
|
|
246
246
|
O = {};
|
|
247
247
|
for (var G in c)
|
|
248
248
|
G !== "key" && (O[G] = c[G]);
|
|
@@ -250,7 +250,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
250
250
|
return B && l(
|
|
251
251
|
O,
|
|
252
252
|
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
253
|
-
),
|
|
253
|
+
), f(
|
|
254
254
|
n,
|
|
255
255
|
B,
|
|
256
256
|
z,
|
|
@@ -261,10 +261,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
261
261
|
W
|
|
262
262
|
);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function y(n) {
|
|
265
265
|
typeof n == "object" && n !== null && n.$$typeof === L && n._store && (n._store.validated = 1);
|
|
266
266
|
}
|
|
267
|
-
var S = V, L = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), U = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"),
|
|
267
|
+
var S = V, L = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), U = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), b = Symbol.for("react.activity"), h = Symbol.for("react.client.reference"), P = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, _ = Array.isArray, T = console.createTask ? console.createTask : function() {
|
|
268
268
|
return null;
|
|
269
269
|
};
|
|
270
270
|
S = {
|
|
@@ -278,7 +278,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
278
278
|
)(), H = T(i(s)), m = {};
|
|
279
279
|
ze.Fragment = p, ze.jsx = function(n, c, O, $, D) {
|
|
280
280
|
var z = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
281
|
-
return
|
|
281
|
+
return v(
|
|
282
282
|
n,
|
|
283
283
|
c,
|
|
284
284
|
O,
|
|
@@ -290,7 +290,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
290
290
|
);
|
|
291
291
|
}, ze.jsxs = function(n, c, O, $, D) {
|
|
292
292
|
var z = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
293
|
-
return
|
|
293
|
+
return v(
|
|
294
294
|
n,
|
|
295
295
|
c,
|
|
296
296
|
O,
|
|
@@ -374,17 +374,17 @@ var _t, or;
|
|
|
374
374
|
function Ln() {
|
|
375
375
|
if (or) return _t;
|
|
376
376
|
or = 1;
|
|
377
|
-
var e = "Expected a function", t = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i,
|
|
378
|
-
return
|
|
377
|
+
var e = "Expected a function", t = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, d = /^0o[0-7]+$/i, l = parseInt, u = typeof rt == "object" && rt && rt.Object === Object && rt, f = typeof self == "object" && self && self.Object === Object && self, v = u || f || Function("return this")(), y = Object.prototype, S = y.toString, L = Math.max, k = Math.min, p = function() {
|
|
378
|
+
return v.Date.now();
|
|
379
379
|
};
|
|
380
|
-
function I(
|
|
381
|
-
var R,
|
|
382
|
-
if (typeof
|
|
380
|
+
function I(g, w, x) {
|
|
381
|
+
var R, b, h, P, A, _, T = 0, E = !1, j = !1, o = !0;
|
|
382
|
+
if (typeof g != "function")
|
|
383
383
|
throw new TypeError(e);
|
|
384
384
|
w = q(w) || 0, C(x) && (E = !!x.leading, j = "maxWait" in x, h = j ? L(q(x.maxWait) || 0, w) : h, o = "trailing" in x ? !!x.trailing : o);
|
|
385
385
|
function H(W) {
|
|
386
|
-
var B = R, K =
|
|
387
|
-
return R =
|
|
386
|
+
var B = R, K = b;
|
|
387
|
+
return R = b = void 0, T = W, P = g.apply(K, B), P;
|
|
388
388
|
}
|
|
389
389
|
function m(W) {
|
|
390
390
|
return T = W, A = setTimeout(O, w), E ? H(W) : P;
|
|
@@ -404,17 +404,17 @@ function Ln() {
|
|
|
404
404
|
A = setTimeout(O, n(W));
|
|
405
405
|
}
|
|
406
406
|
function $(W) {
|
|
407
|
-
return A = void 0, o && R ? H(W) : (R =
|
|
407
|
+
return A = void 0, o && R ? H(W) : (R = b = void 0, P);
|
|
408
408
|
}
|
|
409
409
|
function D() {
|
|
410
|
-
A !== void 0 && clearTimeout(A), T = 0, R = _ =
|
|
410
|
+
A !== void 0 && clearTimeout(A), T = 0, R = _ = b = A = void 0;
|
|
411
411
|
}
|
|
412
412
|
function z() {
|
|
413
413
|
return A === void 0 ? P : $(p());
|
|
414
414
|
}
|
|
415
415
|
function N() {
|
|
416
416
|
var W = p(), B = c(W);
|
|
417
|
-
if (R = arguments,
|
|
417
|
+
if (R = arguments, b = this, _ = W, B) {
|
|
418
418
|
if (A === void 0)
|
|
419
419
|
return m(_);
|
|
420
420
|
if (j)
|
|
@@ -424,30 +424,30 @@ function Ln() {
|
|
|
424
424
|
}
|
|
425
425
|
return N.cancel = D, N.flush = z, N;
|
|
426
426
|
}
|
|
427
|
-
function C(
|
|
428
|
-
var w = typeof
|
|
429
|
-
return !!
|
|
427
|
+
function C(g) {
|
|
428
|
+
var w = typeof g;
|
|
429
|
+
return !!g && (w == "object" || w == "function");
|
|
430
430
|
}
|
|
431
|
-
function F(
|
|
432
|
-
return !!
|
|
431
|
+
function F(g) {
|
|
432
|
+
return !!g && typeof g == "object";
|
|
433
433
|
}
|
|
434
|
-
function U(
|
|
435
|
-
return typeof
|
|
434
|
+
function U(g) {
|
|
435
|
+
return typeof g == "symbol" || F(g) && S.call(g) == r;
|
|
436
436
|
}
|
|
437
|
-
function q(
|
|
438
|
-
if (typeof
|
|
439
|
-
return
|
|
440
|
-
if (U(
|
|
437
|
+
function q(g) {
|
|
438
|
+
if (typeof g == "number")
|
|
439
|
+
return g;
|
|
440
|
+
if (U(g))
|
|
441
441
|
return t;
|
|
442
|
-
if (C(
|
|
443
|
-
var w = typeof
|
|
444
|
-
|
|
442
|
+
if (C(g)) {
|
|
443
|
+
var w = typeof g.valueOf == "function" ? g.valueOf() : g;
|
|
444
|
+
g = C(w) ? w + "" : w;
|
|
445
445
|
}
|
|
446
|
-
if (typeof
|
|
447
|
-
return
|
|
448
|
-
|
|
449
|
-
var x = s.test(
|
|
450
|
-
return x ||
|
|
446
|
+
if (typeof g != "string")
|
|
447
|
+
return g === 0 ? g : +g;
|
|
448
|
+
g = g.replace(i, "");
|
|
449
|
+
var x = s.test(g);
|
|
450
|
+
return x || d.test(g) ? l(g.slice(2), x ? 2 : 8) : a.test(g) ? t : +g;
|
|
451
451
|
}
|
|
452
452
|
return _t = I, _t;
|
|
453
453
|
}
|
|
@@ -463,8 +463,8 @@ function yt() {
|
|
|
463
463
|
(function() {
|
|
464
464
|
var t = {}.hasOwnProperty;
|
|
465
465
|
function r() {
|
|
466
|
-
for (var s = "",
|
|
467
|
-
var l = arguments[
|
|
466
|
+
for (var s = "", d = 0; d < arguments.length; d++) {
|
|
467
|
+
var l = arguments[d];
|
|
468
468
|
l && (s = a(s, i(l)));
|
|
469
469
|
}
|
|
470
470
|
return s;
|
|
@@ -478,13 +478,13 @@ function yt() {
|
|
|
478
478
|
return r.apply(null, s);
|
|
479
479
|
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
480
480
|
return s.toString();
|
|
481
|
-
var
|
|
481
|
+
var d = "";
|
|
482
482
|
for (var l in s)
|
|
483
|
-
t.call(s, l) && s[l] && (
|
|
484
|
-
return
|
|
483
|
+
t.call(s, l) && s[l] && (d = a(d, l));
|
|
484
|
+
return d;
|
|
485
485
|
}
|
|
486
|
-
function a(s,
|
|
487
|
-
return
|
|
486
|
+
function a(s, d) {
|
|
487
|
+
return d ? s ? s + " " + d : s + d : s;
|
|
488
488
|
}
|
|
489
489
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
490
490
|
})();
|
|
@@ -571,7 +571,7 @@ function Ke() {
|
|
|
571
571
|
if (ur) return Y;
|
|
572
572
|
ur = 1, Object.defineProperty(Y, "__esModule", {
|
|
573
573
|
value: !0
|
|
574
|
-
}), Y.checkSpecKeys = Y.checkNavigable = Y.changeSlide = Y.canUseDOM = Y.canGoNext = void 0, Y.clamp =
|
|
574
|
+
}), Y.checkSpecKeys = Y.checkNavigable = Y.changeSlide = Y.canUseDOM = Y.canGoNext = void 0, Y.clamp = f, Y.extractObject = void 0, Y.filterSettings = H, Y.validSettings = Y.swipeStart = Y.swipeMove = Y.swipeEnd = Y.slidesOnRight = Y.slidesOnLeft = Y.slideHandler = Y.siblingDirection = Y.safePreventDefault = Y.lazyStartIndex = Y.lazySlidesOnRight = Y.lazySlidesOnLeft = Y.lazyEndIndex = Y.keyHandler = Y.initializedState = Y.getWidth = Y.getTrackLeft = Y.getTrackCSS = Y.getTrackAnimateCSS = Y.getTotalSlides = Y.getSwipeDirection = Y.getSlideCount = Y.getRequiredLazySlides = Y.getPreClones = Y.getPostClones = Y.getOnDemandLazySlides = Y.getNavigableIndexes = Y.getHeight = void 0;
|
|
575
575
|
var e = r(V), t = r(zr());
|
|
576
576
|
function r(m) {
|
|
577
577
|
return m && m.__esModule ? m : { default: m };
|
|
@@ -598,14 +598,14 @@ function Ke() {
|
|
|
598
598
|
for (var n = 1; n < arguments.length; n++) {
|
|
599
599
|
var c = arguments[n] != null ? arguments[n] : {};
|
|
600
600
|
n % 2 ? a(Object(c), !0).forEach(function(O) {
|
|
601
|
-
|
|
601
|
+
d(m, O, c[O]);
|
|
602
602
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(c)) : a(Object(c)).forEach(function(O) {
|
|
603
603
|
Object.defineProperty(m, O, Object.getOwnPropertyDescriptor(c, O));
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
return m;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function d(m, n, c) {
|
|
609
609
|
return (n = l(n)) in m ? Object.defineProperty(m, n, { value: c, enumerable: !0, configurable: !0, writable: !0 }) : m[n] = c, m;
|
|
610
610
|
}
|
|
611
611
|
function l(m) {
|
|
@@ -622,13 +622,13 @@ function Ke() {
|
|
|
622
622
|
}
|
|
623
623
|
return (n === "string" ? String : Number)(m);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function f(m, n, c) {
|
|
626
626
|
return Math.max(n, Math.min(m, c));
|
|
627
627
|
}
|
|
628
|
-
var
|
|
628
|
+
var v = Y.safePreventDefault = function(n) {
|
|
629
629
|
var c = ["onTouchStart", "onTouchMove", "onWheel"];
|
|
630
630
|
c.includes(n._reactName) || n.preventDefault();
|
|
631
|
-
},
|
|
631
|
+
}, y = Y.getOnDemandLazySlides = function(n) {
|
|
632
632
|
for (var c = [], O = S(n), $ = L(n), D = O; D < $; D++)
|
|
633
633
|
n.lazyLoadedList.indexOf(D) < 0 && c.push(D);
|
|
634
634
|
return c;
|
|
@@ -672,7 +672,7 @@ function Ke() {
|
|
|
672
672
|
}
|
|
673
673
|
var B = O && C(O.querySelector('[data-index="0"]')), K = B * n.slidesToShow, G = n.currentSlide === void 0 ? n.initialSlide : n.currentSlide;
|
|
674
674
|
n.rtl && n.currentSlide === void 0 && (G = c - 1 - n.initialSlide);
|
|
675
|
-
var J = n.lazyLoadedList || [], te =
|
|
675
|
+
var J = n.lazyLoadedList || [], te = y(s(s({}, n), {}, {
|
|
676
676
|
currentSlide: G,
|
|
677
677
|
lazyLoadedList: J
|
|
678
678
|
}));
|
|
@@ -691,7 +691,7 @@ function Ke() {
|
|
|
691
691
|
}, Y.slideHandler = function(n) {
|
|
692
692
|
var c = n.waitForAnimate, O = n.animating, $ = n.fade, D = n.infinite, z = n.index, N = n.slideCount, W = n.lazyLoad, B = n.currentSlide, K = n.centerMode, G = n.slidesToScroll, J = n.slidesToShow, te = n.useCSS, Z = n.lazyLoadedList;
|
|
693
693
|
if (c && O) return {};
|
|
694
|
-
var ee = z, ie, le, Q, oe = {}, ue = {}, ce = D ? z :
|
|
694
|
+
var ee = z, ie, le, Q, oe = {}, ue = {}, ce = D ? z : f(z, 0, N - 1);
|
|
695
695
|
if ($) {
|
|
696
696
|
if (!D && (z < 0 || z >= N)) return {};
|
|
697
697
|
z < 0 ? ee = z + N : z >= N && (ee = z - N), W && Z.indexOf(ee) < 0 && (Z = Z.concat(ee)), oe = {
|
|
@@ -708,12 +708,12 @@ function Ke() {
|
|
|
708
708
|
slideIndex: ee
|
|
709
709
|
})), Q = h(s(s({}, n), {}, {
|
|
710
710
|
slideIndex: ie
|
|
711
|
-
})), D || (le === Q && (ee = ie), le = Q), W && (Z = Z.concat(
|
|
711
|
+
})), D || (le === Q && (ee = ie), le = Q), W && (Z = Z.concat(y(s(s({}, n), {}, {
|
|
712
712
|
currentSlide: ee
|
|
713
713
|
})))), te ? (oe = {
|
|
714
714
|
animating: !0,
|
|
715
715
|
currentSlide: ie,
|
|
716
|
-
trackStyle:
|
|
716
|
+
trackStyle: b(s(s({}, n), {}, {
|
|
717
717
|
left: le
|
|
718
718
|
})),
|
|
719
719
|
lazyLoadedList: Z,
|
|
@@ -758,7 +758,7 @@ function Ke() {
|
|
|
758
758
|
}, Y.keyHandler = function(n, c, O) {
|
|
759
759
|
return n.target.tagName.match("TEXTAREA|INPUT|SELECT") || !c ? "" : n.keyCode === 37 ? O ? "next" : "previous" : n.keyCode === 39 ? O ? "previous" : "next" : "";
|
|
760
760
|
}, Y.swipeStart = function(n, c, O) {
|
|
761
|
-
return n.target.tagName === "IMG" &&
|
|
761
|
+
return n.target.tagName === "IMG" && v(n), !c || !O && n.type.indexOf("mouse") !== -1 ? "" : {
|
|
762
762
|
dragging: !0,
|
|
763
763
|
touchObject: {
|
|
764
764
|
startX: n.touches ? n.touches[0].pageX : n.clientX,
|
|
@@ -770,8 +770,8 @@ function Ke() {
|
|
|
770
770
|
}, Y.swipeMove = function(n, c) {
|
|
771
771
|
var O = c.scrolling, $ = c.animating, D = c.vertical, z = c.swipeToSlide, N = c.verticalSwiping, W = c.rtl, B = c.currentSlide, K = c.edgeFriction, G = c.edgeDragged, J = c.onEdge, te = c.swiped, Z = c.swiping, ee = c.slideCount, ie = c.slidesToScroll, le = c.infinite, Q = c.touchObject, oe = c.swipeEvent, ue = c.listHeight, ce = c.listWidth;
|
|
772
772
|
if (!O) {
|
|
773
|
-
if ($) return
|
|
774
|
-
D && z && N &&
|
|
773
|
+
if ($) return v(n);
|
|
774
|
+
D && z && N && v(n);
|
|
775
775
|
var pe, Re = {}, tt = h(c);
|
|
776
776
|
Q.curX = n.touches ? n.touches[0].pageX : n.clientX, Q.curY = n.touches ? n.touches[0].pageY : n.clientY, Q.swipeLength = Math.round(Math.sqrt(Math.pow(Q.curX - Q.startX, 2)));
|
|
777
777
|
var tr = Math.round(Math.sqrt(Math.pow(Q.curY - Q.startY, 2)));
|
|
@@ -789,12 +789,12 @@ function Ke() {
|
|
|
789
789
|
trackStyle: R(s(s({}, c), {}, {
|
|
790
790
|
left: pe
|
|
791
791
|
}))
|
|
792
|
-
}), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Re.swiping = !0,
|
|
792
|
+
}), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Re.swiping = !0, v(n)), Re;
|
|
793
793
|
}
|
|
794
794
|
}, Y.swipeEnd = function(n, c) {
|
|
795
795
|
var O = c.dragging, $ = c.swipe, D = c.touchObject, z = c.listWidth, N = c.touchThreshold, W = c.verticalSwiping, B = c.listHeight, K = c.swipeToSlide, G = c.scrolling, J = c.onSwipe, te = c.targetSlide, Z = c.currentSlide, ee = c.infinite;
|
|
796
796
|
if (!O)
|
|
797
|
-
return $ &&
|
|
797
|
+
return $ && v(n), {};
|
|
798
798
|
var ie = W ? B / N : z / N, le = F(D, W), Q = {
|
|
799
799
|
dragging: !1,
|
|
800
800
|
edgeDragged: !1,
|
|
@@ -807,16 +807,16 @@ function Ke() {
|
|
|
807
807
|
if (G || !D.swipeLength)
|
|
808
808
|
return Q;
|
|
809
809
|
if (D.swipeLength > ie) {
|
|
810
|
-
|
|
810
|
+
v(n), J && J(le);
|
|
811
811
|
var oe, ue, ce = ee ? Z : te;
|
|
812
812
|
switch (le) {
|
|
813
813
|
case "left":
|
|
814
814
|
case "up":
|
|
815
|
-
ue = ce + w(c), oe = K ?
|
|
815
|
+
ue = ce + w(c), oe = K ? g(c, ue) : ue, Q.currentDirection = 0;
|
|
816
816
|
break;
|
|
817
817
|
case "right":
|
|
818
818
|
case "down":
|
|
819
|
-
ue = ce - w(c), oe = K ?
|
|
819
|
+
ue = ce - w(c), oe = K ? g(c, ue) : ue, Q.currentDirection = 1;
|
|
820
820
|
break;
|
|
821
821
|
default:
|
|
822
822
|
oe = ce;
|
|
@@ -824,7 +824,7 @@ function Ke() {
|
|
|
824
824
|
Q.triggerSlideHandler = oe;
|
|
825
825
|
} else {
|
|
826
826
|
var pe = h(c);
|
|
827
|
-
Q.trackStyle =
|
|
827
|
+
Q.trackStyle = b(s(s({}, c), {}, {
|
|
828
828
|
left: pe
|
|
829
829
|
}));
|
|
830
830
|
}
|
|
@@ -834,7 +834,7 @@ function Ke() {
|
|
|
834
834
|
for (var c = n.infinite ? n.slideCount * 2 : n.slideCount, O = n.infinite ? n.slidesToShow * -1 : 0, $ = n.infinite ? n.slidesToShow * -1 : 0, D = []; O < c; )
|
|
835
835
|
D.push(O), O = $ + n.slidesToScroll, $ += Math.min(n.slidesToScroll, n.slidesToShow);
|
|
836
836
|
return D;
|
|
837
|
-
},
|
|
837
|
+
}, g = Y.checkNavigable = function(n, c) {
|
|
838
838
|
var O = q(n), $ = 0;
|
|
839
839
|
if (c > O[O.length - 1])
|
|
840
840
|
c = O[O.length - 1];
|
|
@@ -894,7 +894,7 @@ function Ke() {
|
|
|
894
894
|
return n.fade && (D = {
|
|
895
895
|
opacity: 1
|
|
896
896
|
}), c && (D.width = c), O && (D.height = O), window && !window.addEventListener && window.attachEvent && (n.vertical ? D.marginTop = n.left + "px" : D.marginLeft = n.left + "px"), D;
|
|
897
|
-
},
|
|
897
|
+
}, b = Y.getTrackAnimateCSS = function(n) {
|
|
898
898
|
x(n, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
|
|
899
899
|
var c = R(n);
|
|
900
900
|
return n.useTransform ? (c.WebkitTransition = "-webkit-transform " + n.speed + "ms " + n.cssEase, c.transition = "transform " + n.speed + "ms " + n.cssEase) : n.vertical ? c.transition = "top " + n.speed + "ms " + n.cssEase : c.transition = "left " + n.speed + "ms " + n.cssEase, c;
|
|
@@ -957,52 +957,52 @@ function Dn() {
|
|
|
957
957
|
value: !0
|
|
958
958
|
}), Fe.Track = void 0;
|
|
959
959
|
var e = i(V), t = i(yt()), r = Ke();
|
|
960
|
-
function i(
|
|
961
|
-
return
|
|
960
|
+
function i(b) {
|
|
961
|
+
return b && b.__esModule ? b : { default: b };
|
|
962
962
|
}
|
|
963
|
-
function a(
|
|
963
|
+
function a(b) {
|
|
964
964
|
"@babel/helpers - typeof";
|
|
965
965
|
return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(h) {
|
|
966
966
|
return typeof h;
|
|
967
967
|
} : function(h) {
|
|
968
968
|
return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : typeof h;
|
|
969
|
-
}, a(
|
|
969
|
+
}, a(b);
|
|
970
970
|
}
|
|
971
971
|
function s() {
|
|
972
|
-
return s = Object.assign ? Object.assign.bind() : function(
|
|
972
|
+
return s = Object.assign ? Object.assign.bind() : function(b) {
|
|
973
973
|
for (var h = 1; h < arguments.length; h++) {
|
|
974
974
|
var P = arguments[h];
|
|
975
975
|
for (var A in P)
|
|
976
|
-
({}).hasOwnProperty.call(P, A) && (
|
|
976
|
+
({}).hasOwnProperty.call(P, A) && (b[A] = P[A]);
|
|
977
977
|
}
|
|
978
|
-
return
|
|
978
|
+
return b;
|
|
979
979
|
}, s.apply(null, arguments);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
982
|
-
if (!(
|
|
981
|
+
function d(b, h) {
|
|
982
|
+
if (!(b instanceof h)) throw new TypeError("Cannot call a class as a function");
|
|
983
983
|
}
|
|
984
|
-
function l(
|
|
984
|
+
function l(b, h) {
|
|
985
985
|
for (var P = 0; P < h.length; P++) {
|
|
986
986
|
var A = h[P];
|
|
987
|
-
A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(
|
|
987
|
+
A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(b, U(A.key), A);
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
function u(
|
|
991
|
-
return h && l(
|
|
990
|
+
function u(b, h, P) {
|
|
991
|
+
return h && l(b.prototype, h), Object.defineProperty(b, "prototype", { writable: !1 }), b;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function f(b, h) {
|
|
994
994
|
if (typeof h != "function" && h !== null) throw new TypeError("Super expression must either be null or a function");
|
|
995
|
-
|
|
995
|
+
b.prototype = Object.create(h && h.prototype, { constructor: { value: b, writable: !0, configurable: !0 } }), Object.defineProperty(b, "prototype", { writable: !1 }), h && v(b, h);
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
return
|
|
997
|
+
function v(b, h) {
|
|
998
|
+
return v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(P, A) {
|
|
999
999
|
return P.__proto__ = A, P;
|
|
1000
|
-
},
|
|
1000
|
+
}, v(b, h);
|
|
1001
1001
|
}
|
|
1002
|
-
function b
|
|
1002
|
+
function y(b) {
|
|
1003
1003
|
var h = k();
|
|
1004
1004
|
return function() {
|
|
1005
|
-
var P, A = p(
|
|
1005
|
+
var P, A = p(b);
|
|
1006
1006
|
if (h) {
|
|
1007
1007
|
var _ = p(this).constructor;
|
|
1008
1008
|
P = Reflect.construct(A, arguments, _);
|
|
@@ -1010,69 +1010,69 @@ function Dn() {
|
|
|
1010
1010
|
return S(this, P);
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
function S(
|
|
1013
|
+
function S(b, h) {
|
|
1014
1014
|
if (h && (a(h) == "object" || typeof h == "function")) return h;
|
|
1015
1015
|
if (h !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1016
|
-
return L(
|
|
1016
|
+
return L(b);
|
|
1017
1017
|
}
|
|
1018
|
-
function L(
|
|
1019
|
-
if (
|
|
1020
|
-
return
|
|
1018
|
+
function L(b) {
|
|
1019
|
+
if (b === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1020
|
+
return b;
|
|
1021
1021
|
}
|
|
1022
1022
|
function k() {
|
|
1023
1023
|
try {
|
|
1024
|
-
var
|
|
1024
|
+
var b = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1025
1025
|
}));
|
|
1026
1026
|
} catch {
|
|
1027
1027
|
}
|
|
1028
1028
|
return (k = function() {
|
|
1029
|
-
return !!
|
|
1029
|
+
return !!b;
|
|
1030
1030
|
})();
|
|
1031
1031
|
}
|
|
1032
|
-
function p(
|
|
1032
|
+
function p(b) {
|
|
1033
1033
|
return p = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(h) {
|
|
1034
1034
|
return h.__proto__ || Object.getPrototypeOf(h);
|
|
1035
|
-
}, p(
|
|
1035
|
+
}, p(b);
|
|
1036
1036
|
}
|
|
1037
|
-
function I(
|
|
1038
|
-
var P = Object.keys(
|
|
1037
|
+
function I(b, h) {
|
|
1038
|
+
var P = Object.keys(b);
|
|
1039
1039
|
if (Object.getOwnPropertySymbols) {
|
|
1040
|
-
var A = Object.getOwnPropertySymbols(
|
|
1040
|
+
var A = Object.getOwnPropertySymbols(b);
|
|
1041
1041
|
h && (A = A.filter(function(_) {
|
|
1042
|
-
return Object.getOwnPropertyDescriptor(
|
|
1042
|
+
return Object.getOwnPropertyDescriptor(b, _).enumerable;
|
|
1043
1043
|
})), P.push.apply(P, A);
|
|
1044
1044
|
}
|
|
1045
1045
|
return P;
|
|
1046
1046
|
}
|
|
1047
|
-
function C(
|
|
1047
|
+
function C(b) {
|
|
1048
1048
|
for (var h = 1; h < arguments.length; h++) {
|
|
1049
1049
|
var P = arguments[h] != null ? arguments[h] : {};
|
|
1050
1050
|
h % 2 ? I(Object(P), !0).forEach(function(A) {
|
|
1051
|
-
F(
|
|
1052
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1053
|
-
Object.defineProperty(
|
|
1051
|
+
F(b, A, P[A]);
|
|
1052
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(b, Object.getOwnPropertyDescriptors(P)) : I(Object(P)).forEach(function(A) {
|
|
1053
|
+
Object.defineProperty(b, A, Object.getOwnPropertyDescriptor(P, A));
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
|
-
return
|
|
1056
|
+
return b;
|
|
1057
1057
|
}
|
|
1058
|
-
function F(
|
|
1059
|
-
return (h = U(h)) in
|
|
1058
|
+
function F(b, h, P) {
|
|
1059
|
+
return (h = U(h)) in b ? Object.defineProperty(b, h, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : b[h] = P, b;
|
|
1060
1060
|
}
|
|
1061
|
-
function U(
|
|
1062
|
-
var h = q(
|
|
1061
|
+
function U(b) {
|
|
1062
|
+
var h = q(b, "string");
|
|
1063
1063
|
return a(h) == "symbol" ? h : h + "";
|
|
1064
1064
|
}
|
|
1065
|
-
function q(
|
|
1066
|
-
if (a(
|
|
1067
|
-
var P =
|
|
1065
|
+
function q(b, h) {
|
|
1066
|
+
if (a(b) != "object" || !b) return b;
|
|
1067
|
+
var P = b[Symbol.toPrimitive];
|
|
1068
1068
|
if (P !== void 0) {
|
|
1069
|
-
var A = P.call(
|
|
1069
|
+
var A = P.call(b, h);
|
|
1070
1070
|
if (a(A) != "object") return A;
|
|
1071
1071
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1072
1072
|
}
|
|
1073
|
-
return (h === "string" ? String : Number)(
|
|
1073
|
+
return (h === "string" ? String : Number)(b);
|
|
1074
1074
|
}
|
|
1075
|
-
var
|
|
1075
|
+
var g = function(h) {
|
|
1076
1076
|
var P, A, _, T, E;
|
|
1077
1077
|
h.rtl ? E = h.slideCount - 1 - h.index : E = h.index, _ = E < 0 || E >= h.slideCount, h.centerMode ? (T = Math.floor(h.slidesToShow / 2), A = (E - h.currentSlide) % h.slideCount === 0, E > h.currentSlide - T - 1 && E <= h.currentSlide + T && (P = !0)) : P = h.currentSlide <= E && E < h.currentSlide + h.slidesToShow;
|
|
1078
1078
|
var j;
|
|
@@ -1103,7 +1103,7 @@ function Dn() {
|
|
|
1103
1103
|
!h.lazyLoad || h.lazyLoad && h.lazyLoadedList.indexOf(m) >= 0 ? n = H : n = /* @__PURE__ */ e.default.createElement("div", null);
|
|
1104
1104
|
var O = w(C(C({}, h), {}, {
|
|
1105
1105
|
index: m
|
|
1106
|
-
})), $ = n.props.className || "", D =
|
|
1106
|
+
})), $ = n.props.className || "", D = g(C(C({}, h), {}, {
|
|
1107
1107
|
index: m
|
|
1108
1108
|
}));
|
|
1109
1109
|
if (A.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
@@ -1120,7 +1120,7 @@ function Dn() {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
})), h.infinite && E > 1 && h.fade === !1 && !h.unslick) {
|
|
1122
1122
|
var z = E - m;
|
|
1123
|
-
z <= (0, r.getPreClones)(h) && (P = -z, P >= j && (n = H), D =
|
|
1123
|
+
z <= (0, r.getPreClones)(h) && (P = -z, P >= j && (n = H), D = g(C(C({}, h), {}, {
|
|
1124
1124
|
index: P
|
|
1125
1125
|
})), _.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1126
1126
|
key: "precloned" + x(n, P),
|
|
@@ -1132,7 +1132,7 @@ function Dn() {
|
|
|
1132
1132
|
onClick: function(W) {
|
|
1133
1133
|
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(c);
|
|
1134
1134
|
}
|
|
1135
|
-
}))), m < (0, r.getPostClones)(h) && (P = E + m, P < o && (n = H), D =
|
|
1135
|
+
}))), m < (0, r.getPostClones)(h) && (P = E + m, P < o && (n = H), D = g(C(C({}, h), {}, {
|
|
1136
1136
|
index: P
|
|
1137
1137
|
})), T.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1138
1138
|
key: "postcloned" + x(n, P),
|
|
@@ -1148,12 +1148,12 @@ function Dn() {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
}), h.rtl ? _.concat(A, T).reverse() : _.concat(A, T);
|
|
1150
1150
|
};
|
|
1151
|
-
return Fe.Track = /* @__PURE__ */ function(
|
|
1152
|
-
|
|
1153
|
-
var h =
|
|
1151
|
+
return Fe.Track = /* @__PURE__ */ function(b) {
|
|
1152
|
+
f(P, b);
|
|
1153
|
+
var h = y(P);
|
|
1154
1154
|
function P() {
|
|
1155
1155
|
var A;
|
|
1156
|
-
|
|
1156
|
+
d(this, P);
|
|
1157
1157
|
for (var _ = arguments.length, T = new Array(_), E = 0; E < _; E++)
|
|
1158
1158
|
T[E] = arguments[E];
|
|
1159
1159
|
return A = h.call.apply(h, [this].concat(T)), F(L(A), "node", null), F(L(A), "handleRef", function(j) {
|
|
@@ -1181,134 +1181,134 @@ var We = {}, fr;
|
|
|
1181
1181
|
function Mn() {
|
|
1182
1182
|
if (fr) return We;
|
|
1183
1183
|
fr = 1;
|
|
1184
|
-
function e(
|
|
1184
|
+
function e(g) {
|
|
1185
1185
|
"@babel/helpers - typeof";
|
|
1186
1186
|
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(w) {
|
|
1187
1187
|
return typeof w;
|
|
1188
1188
|
} : function(w) {
|
|
1189
1189
|
return w && typeof Symbol == "function" && w.constructor === Symbol && w !== Symbol.prototype ? "symbol" : typeof w;
|
|
1190
|
-
}, e(
|
|
1190
|
+
}, e(g);
|
|
1191
1191
|
}
|
|
1192
1192
|
Object.defineProperty(We, "__esModule", {
|
|
1193
1193
|
value: !0
|
|
1194
1194
|
}), We.Dots = void 0;
|
|
1195
1195
|
var t = a(V), r = a(yt()), i = Ke();
|
|
1196
|
-
function a(
|
|
1197
|
-
return
|
|
1196
|
+
function a(g) {
|
|
1197
|
+
return g && g.__esModule ? g : { default: g };
|
|
1198
1198
|
}
|
|
1199
|
-
function s(
|
|
1200
|
-
var x = Object.keys(
|
|
1199
|
+
function s(g, w) {
|
|
1200
|
+
var x = Object.keys(g);
|
|
1201
1201
|
if (Object.getOwnPropertySymbols) {
|
|
1202
|
-
var R = Object.getOwnPropertySymbols(
|
|
1203
|
-
w && (R = R.filter(function(
|
|
1204
|
-
return Object.getOwnPropertyDescriptor(
|
|
1202
|
+
var R = Object.getOwnPropertySymbols(g);
|
|
1203
|
+
w && (R = R.filter(function(b) {
|
|
1204
|
+
return Object.getOwnPropertyDescriptor(g, b).enumerable;
|
|
1205
1205
|
})), x.push.apply(x, R);
|
|
1206
1206
|
}
|
|
1207
1207
|
return x;
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function d(g) {
|
|
1210
1210
|
for (var w = 1; w < arguments.length; w++) {
|
|
1211
1211
|
var x = arguments[w] != null ? arguments[w] : {};
|
|
1212
1212
|
w % 2 ? s(Object(x), !0).forEach(function(R) {
|
|
1213
|
-
l(
|
|
1214
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1215
|
-
Object.defineProperty(
|
|
1213
|
+
l(g, R, x[R]);
|
|
1214
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(g, Object.getOwnPropertyDescriptors(x)) : s(Object(x)).forEach(function(R) {
|
|
1215
|
+
Object.defineProperty(g, R, Object.getOwnPropertyDescriptor(x, R));
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
|
-
return
|
|
1218
|
+
return g;
|
|
1219
1219
|
}
|
|
1220
|
-
function l(
|
|
1221
|
-
return (w =
|
|
1220
|
+
function l(g, w, x) {
|
|
1221
|
+
return (w = y(w)) in g ? Object.defineProperty(g, w, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : g[w] = x, g;
|
|
1222
1222
|
}
|
|
1223
|
-
function u(
|
|
1224
|
-
if (!(
|
|
1223
|
+
function u(g, w) {
|
|
1224
|
+
if (!(g instanceof w)) throw new TypeError("Cannot call a class as a function");
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function f(g, w) {
|
|
1227
1227
|
for (var x = 0; x < w.length; x++) {
|
|
1228
1228
|
var R = w[x];
|
|
1229
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(
|
|
1229
|
+
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(g, y(R.key), R);
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
|
-
function g
|
|
1233
|
-
return w &&
|
|
1232
|
+
function v(g, w, x) {
|
|
1233
|
+
return w && f(g.prototype, w), Object.defineProperty(g, "prototype", { writable: !1 }), g;
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1236
|
-
var w = S(
|
|
1235
|
+
function y(g) {
|
|
1236
|
+
var w = S(g, "string");
|
|
1237
1237
|
return e(w) == "symbol" ? w : w + "";
|
|
1238
1238
|
}
|
|
1239
|
-
function S(
|
|
1240
|
-
if (e(
|
|
1241
|
-
var x =
|
|
1239
|
+
function S(g, w) {
|
|
1240
|
+
if (e(g) != "object" || !g) return g;
|
|
1241
|
+
var x = g[Symbol.toPrimitive];
|
|
1242
1242
|
if (x !== void 0) {
|
|
1243
|
-
var R = x.call(
|
|
1243
|
+
var R = x.call(g, w);
|
|
1244
1244
|
if (e(R) != "object") return R;
|
|
1245
1245
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1246
1246
|
}
|
|
1247
|
-
return String(
|
|
1247
|
+
return String(g);
|
|
1248
1248
|
}
|
|
1249
|
-
function L(
|
|
1249
|
+
function L(g, w) {
|
|
1250
1250
|
if (typeof w != "function" && w !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1251
|
-
|
|
1251
|
+
g.prototype = Object.create(w && w.prototype, { constructor: { value: g, writable: !0, configurable: !0 } }), Object.defineProperty(g, "prototype", { writable: !1 }), w && k(g, w);
|
|
1252
1252
|
}
|
|
1253
|
-
function k(
|
|
1253
|
+
function k(g, w) {
|
|
1254
1254
|
return k = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(x, R) {
|
|
1255
1255
|
return x.__proto__ = R, x;
|
|
1256
|
-
}, k(
|
|
1256
|
+
}, k(g, w);
|
|
1257
1257
|
}
|
|
1258
|
-
function p(
|
|
1258
|
+
function p(g) {
|
|
1259
1259
|
var w = F();
|
|
1260
1260
|
return function() {
|
|
1261
|
-
var x, R = U(
|
|
1261
|
+
var x, R = U(g);
|
|
1262
1262
|
if (w) {
|
|
1263
|
-
var
|
|
1264
|
-
x = Reflect.construct(R, arguments,
|
|
1263
|
+
var b = U(this).constructor;
|
|
1264
|
+
x = Reflect.construct(R, arguments, b);
|
|
1265
1265
|
} else x = R.apply(this, arguments);
|
|
1266
1266
|
return I(this, x);
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
|
-
function I(
|
|
1269
|
+
function I(g, w) {
|
|
1270
1270
|
if (w && (e(w) == "object" || typeof w == "function")) return w;
|
|
1271
1271
|
if (w !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1272
|
-
return C(
|
|
1272
|
+
return C(g);
|
|
1273
1273
|
}
|
|
1274
|
-
function C(
|
|
1275
|
-
if (
|
|
1276
|
-
return
|
|
1274
|
+
function C(g) {
|
|
1275
|
+
if (g === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1276
|
+
return g;
|
|
1277
1277
|
}
|
|
1278
1278
|
function F() {
|
|
1279
1279
|
try {
|
|
1280
|
-
var
|
|
1280
|
+
var g = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1281
1281
|
}));
|
|
1282
1282
|
} catch {
|
|
1283
1283
|
}
|
|
1284
1284
|
return (F = function() {
|
|
1285
|
-
return !!
|
|
1285
|
+
return !!g;
|
|
1286
1286
|
})();
|
|
1287
1287
|
}
|
|
1288
|
-
function U(
|
|
1288
|
+
function U(g) {
|
|
1289
1289
|
return U = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(w) {
|
|
1290
1290
|
return w.__proto__ || Object.getPrototypeOf(w);
|
|
1291
|
-
}, U(
|
|
1291
|
+
}, U(g);
|
|
1292
1292
|
}
|
|
1293
1293
|
var q = function(w) {
|
|
1294
1294
|
var x;
|
|
1295
1295
|
return w.infinite ? x = Math.ceil(w.slideCount / w.slidesToScroll) : x = Math.ceil((w.slideCount - w.slidesToShow) / w.slidesToScroll) + 1, x;
|
|
1296
1296
|
};
|
|
1297
|
-
return We.Dots = /* @__PURE__ */ function(
|
|
1298
|
-
L(x,
|
|
1297
|
+
return We.Dots = /* @__PURE__ */ function(g) {
|
|
1298
|
+
L(x, g);
|
|
1299
1299
|
var w = p(x);
|
|
1300
1300
|
function x() {
|
|
1301
1301
|
return u(this, x), w.apply(this, arguments);
|
|
1302
1302
|
}
|
|
1303
|
-
return
|
|
1303
|
+
return v(x, [{
|
|
1304
1304
|
key: "clickHandler",
|
|
1305
|
-
value: function(
|
|
1306
|
-
h.preventDefault(), this.props.clickHandler(
|
|
1305
|
+
value: function(b, h) {
|
|
1306
|
+
h.preventDefault(), this.props.clickHandler(b);
|
|
1307
1307
|
}
|
|
1308
1308
|
}, {
|
|
1309
1309
|
key: "render",
|
|
1310
1310
|
value: function() {
|
|
1311
|
-
for (var
|
|
1311
|
+
for (var b = this.props, h = b.onMouseEnter, P = b.onMouseOver, A = b.onMouseLeave, _ = b.infinite, T = b.slidesToScroll, E = b.slidesToShow, j = b.slideCount, o = b.currentSlide, H = q({
|
|
1312
1312
|
slideCount: j,
|
|
1313
1313
|
slidesToScroll: T,
|
|
1314
1314
|
slidesToShow: E,
|
|
@@ -1333,7 +1333,7 @@ function Mn() {
|
|
|
1333
1333
|
onClick: B
|
|
1334
1334
|
})));
|
|
1335
1335
|
}
|
|
1336
|
-
return /* @__PURE__ */ t.default.cloneElement(this.props.appendDots(n),
|
|
1336
|
+
return /* @__PURE__ */ t.default.cloneElement(this.props.appendDots(n), d({
|
|
1337
1337
|
className: this.props.dotsClass
|
|
1338
1338
|
}, m));
|
|
1339
1339
|
}
|
|
@@ -1344,150 +1344,150 @@ var _e = {}, dr;
|
|
|
1344
1344
|
function $n() {
|
|
1345
1345
|
if (dr) return _e;
|
|
1346
1346
|
dr = 1;
|
|
1347
|
-
function e(
|
|
1347
|
+
function e(g) {
|
|
1348
1348
|
"@babel/helpers - typeof";
|
|
1349
1349
|
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(w) {
|
|
1350
1350
|
return typeof w;
|
|
1351
1351
|
} : function(w) {
|
|
1352
1352
|
return w && typeof Symbol == "function" && w.constructor === Symbol && w !== Symbol.prototype ? "symbol" : typeof w;
|
|
1353
|
-
}, e(
|
|
1353
|
+
}, e(g);
|
|
1354
1354
|
}
|
|
1355
1355
|
Object.defineProperty(_e, "__esModule", {
|
|
1356
1356
|
value: !0
|
|
1357
1357
|
}), _e.PrevArrow = _e.NextArrow = void 0;
|
|
1358
1358
|
var t = a(V), r = a(yt()), i = Ke();
|
|
1359
|
-
function a(
|
|
1360
|
-
return
|
|
1359
|
+
function a(g) {
|
|
1360
|
+
return g && g.__esModule ? g : { default: g };
|
|
1361
1361
|
}
|
|
1362
1362
|
function s() {
|
|
1363
|
-
return s = Object.assign ? Object.assign.bind() : function(
|
|
1363
|
+
return s = Object.assign ? Object.assign.bind() : function(g) {
|
|
1364
1364
|
for (var w = 1; w < arguments.length; w++) {
|
|
1365
1365
|
var x = arguments[w];
|
|
1366
1366
|
for (var R in x)
|
|
1367
|
-
({}).hasOwnProperty.call(x, R) && (
|
|
1367
|
+
({}).hasOwnProperty.call(x, R) && (g[R] = x[R]);
|
|
1368
1368
|
}
|
|
1369
|
-
return
|
|
1369
|
+
return g;
|
|
1370
1370
|
}, s.apply(null, arguments);
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1373
|
-
var x = Object.keys(
|
|
1372
|
+
function d(g, w) {
|
|
1373
|
+
var x = Object.keys(g);
|
|
1374
1374
|
if (Object.getOwnPropertySymbols) {
|
|
1375
|
-
var R = Object.getOwnPropertySymbols(
|
|
1376
|
-
w && (R = R.filter(function(
|
|
1377
|
-
return Object.getOwnPropertyDescriptor(
|
|
1375
|
+
var R = Object.getOwnPropertySymbols(g);
|
|
1376
|
+
w && (R = R.filter(function(b) {
|
|
1377
|
+
return Object.getOwnPropertyDescriptor(g, b).enumerable;
|
|
1378
1378
|
})), x.push.apply(x, R);
|
|
1379
1379
|
}
|
|
1380
1380
|
return x;
|
|
1381
1381
|
}
|
|
1382
|
-
function l(
|
|
1382
|
+
function l(g) {
|
|
1383
1383
|
for (var w = 1; w < arguments.length; w++) {
|
|
1384
1384
|
var x = arguments[w] != null ? arguments[w] : {};
|
|
1385
|
-
w % 2 ?
|
|
1386
|
-
u(
|
|
1387
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1388
|
-
Object.defineProperty(
|
|
1385
|
+
w % 2 ? d(Object(x), !0).forEach(function(R) {
|
|
1386
|
+
u(g, R, x[R]);
|
|
1387
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(g, Object.getOwnPropertyDescriptors(x)) : d(Object(x)).forEach(function(R) {
|
|
1388
|
+
Object.defineProperty(g, R, Object.getOwnPropertyDescriptor(x, R));
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
1391
|
-
return
|
|
1391
|
+
return g;
|
|
1392
1392
|
}
|
|
1393
|
-
function u(
|
|
1394
|
-
return (w = S(w)) in
|
|
1393
|
+
function u(g, w, x) {
|
|
1394
|
+
return (w = S(w)) in g ? Object.defineProperty(g, w, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : g[w] = x, g;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
if (!(
|
|
1396
|
+
function f(g, w) {
|
|
1397
|
+
if (!(g instanceof w)) throw new TypeError("Cannot call a class as a function");
|
|
1398
1398
|
}
|
|
1399
|
-
function g
|
|
1399
|
+
function v(g, w) {
|
|
1400
1400
|
for (var x = 0; x < w.length; x++) {
|
|
1401
1401
|
var R = w[x];
|
|
1402
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(
|
|
1402
|
+
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(g, S(R.key), R);
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return w && g
|
|
1405
|
+
function y(g, w, x) {
|
|
1406
|
+
return w && v(g.prototype, w), Object.defineProperty(g, "prototype", { writable: !1 }), g;
|
|
1407
1407
|
}
|
|
1408
|
-
function S(
|
|
1409
|
-
var w = L(
|
|
1408
|
+
function S(g) {
|
|
1409
|
+
var w = L(g, "string");
|
|
1410
1410
|
return e(w) == "symbol" ? w : w + "";
|
|
1411
1411
|
}
|
|
1412
|
-
function L(
|
|
1413
|
-
if (e(
|
|
1414
|
-
var x =
|
|
1412
|
+
function L(g, w) {
|
|
1413
|
+
if (e(g) != "object" || !g) return g;
|
|
1414
|
+
var x = g[Symbol.toPrimitive];
|
|
1415
1415
|
if (x !== void 0) {
|
|
1416
|
-
var R = x.call(
|
|
1416
|
+
var R = x.call(g, w);
|
|
1417
1417
|
if (e(R) != "object") return R;
|
|
1418
1418
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1419
1419
|
}
|
|
1420
|
-
return String(
|
|
1420
|
+
return String(g);
|
|
1421
1421
|
}
|
|
1422
|
-
function k(
|
|
1422
|
+
function k(g, w) {
|
|
1423
1423
|
if (typeof w != "function" && w !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1424
|
-
|
|
1424
|
+
g.prototype = Object.create(w && w.prototype, { constructor: { value: g, writable: !0, configurable: !0 } }), Object.defineProperty(g, "prototype", { writable: !1 }), w && p(g, w);
|
|
1425
1425
|
}
|
|
1426
|
-
function p(
|
|
1426
|
+
function p(g, w) {
|
|
1427
1427
|
return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(x, R) {
|
|
1428
1428
|
return x.__proto__ = R, x;
|
|
1429
|
-
}, p(
|
|
1429
|
+
}, p(g, w);
|
|
1430
1430
|
}
|
|
1431
|
-
function I(
|
|
1431
|
+
function I(g) {
|
|
1432
1432
|
var w = U();
|
|
1433
1433
|
return function() {
|
|
1434
|
-
var x, R = q(
|
|
1434
|
+
var x, R = q(g);
|
|
1435
1435
|
if (w) {
|
|
1436
|
-
var
|
|
1437
|
-
x = Reflect.construct(R, arguments,
|
|
1436
|
+
var b = q(this).constructor;
|
|
1437
|
+
x = Reflect.construct(R, arguments, b);
|
|
1438
1438
|
} else x = R.apply(this, arguments);
|
|
1439
1439
|
return C(this, x);
|
|
1440
1440
|
};
|
|
1441
1441
|
}
|
|
1442
|
-
function C(
|
|
1442
|
+
function C(g, w) {
|
|
1443
1443
|
if (w && (e(w) == "object" || typeof w == "function")) return w;
|
|
1444
1444
|
if (w !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1445
|
-
return F(
|
|
1445
|
+
return F(g);
|
|
1446
1446
|
}
|
|
1447
|
-
function F(
|
|
1448
|
-
if (
|
|
1449
|
-
return
|
|
1447
|
+
function F(g) {
|
|
1448
|
+
if (g === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1449
|
+
return g;
|
|
1450
1450
|
}
|
|
1451
1451
|
function U() {
|
|
1452
1452
|
try {
|
|
1453
|
-
var
|
|
1453
|
+
var g = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1454
1454
|
}));
|
|
1455
1455
|
} catch {
|
|
1456
1456
|
}
|
|
1457
1457
|
return (U = function() {
|
|
1458
|
-
return !!
|
|
1458
|
+
return !!g;
|
|
1459
1459
|
})();
|
|
1460
1460
|
}
|
|
1461
|
-
function q(
|
|
1461
|
+
function q(g) {
|
|
1462
1462
|
return q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(w) {
|
|
1463
1463
|
return w.__proto__ || Object.getPrototypeOf(w);
|
|
1464
|
-
}, q(
|
|
1464
|
+
}, q(g);
|
|
1465
1465
|
}
|
|
1466
|
-
return _e.PrevArrow = /* @__PURE__ */ function(
|
|
1467
|
-
k(x,
|
|
1466
|
+
return _e.PrevArrow = /* @__PURE__ */ function(g) {
|
|
1467
|
+
k(x, g);
|
|
1468
1468
|
var w = I(x);
|
|
1469
1469
|
function x() {
|
|
1470
|
-
return
|
|
1470
|
+
return f(this, x), w.apply(this, arguments);
|
|
1471
1471
|
}
|
|
1472
|
-
return
|
|
1472
|
+
return y(x, [{
|
|
1473
1473
|
key: "clickHandler",
|
|
1474
|
-
value: function(
|
|
1475
|
-
h && h.preventDefault(), this.props.clickHandler(
|
|
1474
|
+
value: function(b, h) {
|
|
1475
|
+
h && h.preventDefault(), this.props.clickHandler(b, h);
|
|
1476
1476
|
}
|
|
1477
1477
|
}, {
|
|
1478
1478
|
key: "render",
|
|
1479
1479
|
value: function() {
|
|
1480
|
-
var
|
|
1480
|
+
var b = {
|
|
1481
1481
|
"slick-arrow": !0,
|
|
1482
1482
|
"slick-prev": !0
|
|
1483
1483
|
}, h = this.clickHandler.bind(this, {
|
|
1484
1484
|
message: "previous"
|
|
1485
1485
|
});
|
|
1486
|
-
!this.props.infinite && (this.props.currentSlide === 0 || this.props.slideCount <= this.props.slidesToShow) && (
|
|
1486
|
+
!this.props.infinite && (this.props.currentSlide === 0 || this.props.slideCount <= this.props.slidesToShow) && (b["slick-disabled"] = !0, h = null);
|
|
1487
1487
|
var P = {
|
|
1488
1488
|
key: "0",
|
|
1489
1489
|
"data-role": "none",
|
|
1490
|
-
className: (0, r.default)(
|
|
1490
|
+
className: (0, r.default)(b),
|
|
1491
1491
|
style: {
|
|
1492
1492
|
display: "block"
|
|
1493
1493
|
},
|
|
@@ -1502,31 +1502,31 @@ function $n() {
|
|
|
1502
1502
|
}, P), " ", "Previous"), _;
|
|
1503
1503
|
}
|
|
1504
1504
|
}]), x;
|
|
1505
|
-
}(t.default.PureComponent), _e.NextArrow = /* @__PURE__ */ function(
|
|
1506
|
-
k(x,
|
|
1505
|
+
}(t.default.PureComponent), _e.NextArrow = /* @__PURE__ */ function(g) {
|
|
1506
|
+
k(x, g);
|
|
1507
1507
|
var w = I(x);
|
|
1508
1508
|
function x() {
|
|
1509
|
-
return
|
|
1509
|
+
return f(this, x), w.apply(this, arguments);
|
|
1510
1510
|
}
|
|
1511
|
-
return
|
|
1511
|
+
return y(x, [{
|
|
1512
1512
|
key: "clickHandler",
|
|
1513
|
-
value: function(
|
|
1514
|
-
h && h.preventDefault(), this.props.clickHandler(
|
|
1513
|
+
value: function(b, h) {
|
|
1514
|
+
h && h.preventDefault(), this.props.clickHandler(b, h);
|
|
1515
1515
|
}
|
|
1516
1516
|
}, {
|
|
1517
1517
|
key: "render",
|
|
1518
1518
|
value: function() {
|
|
1519
|
-
var
|
|
1519
|
+
var b = {
|
|
1520
1520
|
"slick-arrow": !0,
|
|
1521
1521
|
"slick-next": !0
|
|
1522
1522
|
}, h = this.clickHandler.bind(this, {
|
|
1523
1523
|
message: "next"
|
|
1524
1524
|
});
|
|
1525
|
-
(0, i.canGoNext)(this.props) || (
|
|
1525
|
+
(0, i.canGoNext)(this.props) || (b["slick-disabled"] = !0, h = null);
|
|
1526
1526
|
var P = {
|
|
1527
1527
|
key: "1",
|
|
1528
1528
|
"data-role": "none",
|
|
1529
|
-
className: (0, r.default)(
|
|
1529
|
+
className: (0, r.default)(b),
|
|
1530
1530
|
style: {
|
|
1531
1531
|
display: "block"
|
|
1532
1532
|
},
|
|
@@ -1583,8 +1583,8 @@ var Nr = function() {
|
|
|
1583
1583
|
}, t.prototype.forEach = function(r, i) {
|
|
1584
1584
|
i === void 0 && (i = null);
|
|
1585
1585
|
for (var a = 0, s = this.__entries__; a < s.length; a++) {
|
|
1586
|
-
var
|
|
1587
|
-
r.call(i,
|
|
1586
|
+
var d = s[a];
|
|
1587
|
+
r.call(i, d[1], d[0]);
|
|
1588
1588
|
}
|
|
1589
1589
|
}, t;
|
|
1590
1590
|
}()
|
|
@@ -1603,7 +1603,7 @@ function Hn(e, t) {
|
|
|
1603
1603
|
function s() {
|
|
1604
1604
|
r && (r = !1, e()), i && l();
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function d() {
|
|
1607
1607
|
In(s);
|
|
1608
1608
|
}
|
|
1609
1609
|
function l() {
|
|
@@ -1613,7 +1613,7 @@ function Hn(e, t) {
|
|
|
1613
1613
|
return;
|
|
1614
1614
|
i = !0;
|
|
1615
1615
|
} else
|
|
1616
|
-
r = !0, i = !1, setTimeout(
|
|
1616
|
+
r = !0, i = !1, setTimeout(d, t);
|
|
1617
1617
|
a = u;
|
|
1618
1618
|
}
|
|
1619
1619
|
return l;
|
|
@@ -1685,8 +1685,8 @@ function hr(e) {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
function Un(e) {
|
|
1687
1687
|
for (var t = ["top", "right", "bottom", "left"], r = {}, i = 0, a = t; i < a.length; i++) {
|
|
1688
|
-
var s = a[i],
|
|
1689
|
-
r[s] = mt(
|
|
1688
|
+
var s = a[i], d = e["padding-" + s];
|
|
1689
|
+
r[s] = mt(d);
|
|
1690
1690
|
}
|
|
1691
1691
|
return r;
|
|
1692
1692
|
}
|
|
@@ -1698,10 +1698,10 @@ function Vn(e) {
|
|
|
1698
1698
|
var t = e.clientWidth, r = e.clientHeight;
|
|
1699
1699
|
if (!t && !r)
|
|
1700
1700
|
return Wr;
|
|
1701
|
-
var i = je(e).getComputedStyle(e), a = Un(i), s = a.left + a.right,
|
|
1702
|
-
if (i.boxSizing === "border-box" && (Math.round(l + s) !== t && (l -= hr(i, "left", "right") + s), Math.round(u +
|
|
1703
|
-
var
|
|
1704
|
-
Math.abs(
|
|
1701
|
+
var i = je(e).getComputedStyle(e), a = Un(i), s = a.left + a.right, d = a.top + a.bottom, l = mt(i.width), u = mt(i.height);
|
|
1702
|
+
if (i.boxSizing === "border-box" && (Math.round(l + s) !== t && (l -= hr(i, "left", "right") + s), Math.round(u + d) !== r && (u -= hr(i, "top", "bottom") + d)), !Bn(e)) {
|
|
1703
|
+
var f = Math.round(l + s) - t, v = Math.round(u + d) - r;
|
|
1704
|
+
Math.abs(f) !== 1 && (l -= f), Math.abs(v) !== 1 && (u -= v);
|
|
1705
1705
|
}
|
|
1706
1706
|
return bt(a.left, a.top, l, u);
|
|
1707
1707
|
}
|
|
@@ -1719,8 +1719,8 @@ function Xn(e) {
|
|
|
1719
1719
|
return At ? qn(e) ? Yn(e) : Vn(e) : Wr;
|
|
1720
1720
|
}
|
|
1721
1721
|
function Gn(e) {
|
|
1722
|
-
var t = e.x, r = e.y, i = e.width, a = e.height, s = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object,
|
|
1723
|
-
return Fr(
|
|
1722
|
+
var t = e.x, r = e.y, i = e.width, a = e.height, s = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, d = Object.create(s.prototype);
|
|
1723
|
+
return Fr(d, {
|
|
1724
1724
|
x: t,
|
|
1725
1725
|
y: r,
|
|
1726
1726
|
width: i,
|
|
@@ -1729,7 +1729,7 @@ function Gn(e) {
|
|
|
1729
1729
|
right: t + i,
|
|
1730
1730
|
bottom: a + r,
|
|
1731
1731
|
left: t
|
|
1732
|
-
}),
|
|
1732
|
+
}), d;
|
|
1733
1733
|
}
|
|
1734
1734
|
function bt(e, t, r, i) {
|
|
1735
1735
|
return { x: e, y: t, width: r, height: i };
|
|
@@ -1840,27 +1840,27 @@ function ri() {
|
|
|
1840
1840
|
pr = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1841
1841
|
value: !0
|
|
1842
1842
|
}), Ne.InnerSlider = void 0;
|
|
1843
|
-
var e =
|
|
1844
|
-
function
|
|
1843
|
+
var e = f(V), t = f(jn()), r = f(Ln()), i = f(yt()), a = Ke(), s = Dn(), d = Mn(), l = $n(), u = f(ti);
|
|
1844
|
+
function f(_) {
|
|
1845
1845
|
return _ && _.__esModule ? _ : { default: _ };
|
|
1846
1846
|
}
|
|
1847
|
-
function
|
|
1847
|
+
function v(_) {
|
|
1848
1848
|
"@babel/helpers - typeof";
|
|
1849
|
-
return
|
|
1849
|
+
return v = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(T) {
|
|
1850
1850
|
return typeof T;
|
|
1851
1851
|
} : function(T) {
|
|
1852
1852
|
return T && typeof Symbol == "function" && T.constructor === Symbol && T !== Symbol.prototype ? "symbol" : typeof T;
|
|
1853
|
-
},
|
|
1853
|
+
}, v(_);
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1856
|
-
return
|
|
1855
|
+
function y() {
|
|
1856
|
+
return y = Object.assign ? Object.assign.bind() : function(_) {
|
|
1857
1857
|
for (var T = 1; T < arguments.length; T++) {
|
|
1858
1858
|
var E = arguments[T];
|
|
1859
1859
|
for (var j in E)
|
|
1860
1860
|
({}).hasOwnProperty.call(E, j) && (_[j] = E[j]);
|
|
1861
1861
|
}
|
|
1862
1862
|
return _;
|
|
1863
|
-
},
|
|
1863
|
+
}, y.apply(null, arguments);
|
|
1864
1864
|
}
|
|
1865
1865
|
function S(_, T) {
|
|
1866
1866
|
if (_ == null) return {};
|
|
@@ -1924,19 +1924,19 @@ function ri() {
|
|
|
1924
1924
|
return E.__proto__ = j, E;
|
|
1925
1925
|
}, q(_, T);
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function g(_) {
|
|
1928
1928
|
var T = R();
|
|
1929
1929
|
return function() {
|
|
1930
|
-
var E, j =
|
|
1930
|
+
var E, j = b(_);
|
|
1931
1931
|
if (T) {
|
|
1932
|
-
var o =
|
|
1932
|
+
var o = b(this).constructor;
|
|
1933
1933
|
E = Reflect.construct(j, arguments, o);
|
|
1934
1934
|
} else E = j.apply(this, arguments);
|
|
1935
1935
|
return w(this, E);
|
|
1936
1936
|
};
|
|
1937
1937
|
}
|
|
1938
1938
|
function w(_, T) {
|
|
1939
|
-
if (T && (
|
|
1939
|
+
if (T && (v(T) == "object" || typeof T == "function")) return T;
|
|
1940
1940
|
if (T !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1941
1941
|
return x(_);
|
|
1942
1942
|
}
|
|
@@ -1954,31 +1954,31 @@ function ri() {
|
|
|
1954
1954
|
return !!_;
|
|
1955
1955
|
})();
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1958
|
-
return
|
|
1957
|
+
function b(_) {
|
|
1958
|
+
return b = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(T) {
|
|
1959
1959
|
return T.__proto__ || Object.getPrototypeOf(T);
|
|
1960
|
-
},
|
|
1960
|
+
}, b(_);
|
|
1961
1961
|
}
|
|
1962
1962
|
function h(_, T, E) {
|
|
1963
1963
|
return (T = P(T)) in _ ? Object.defineProperty(_, T, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : _[T] = E, _;
|
|
1964
1964
|
}
|
|
1965
1965
|
function P(_) {
|
|
1966
1966
|
var T = A(_, "string");
|
|
1967
|
-
return
|
|
1967
|
+
return v(T) == "symbol" ? T : T + "";
|
|
1968
1968
|
}
|
|
1969
1969
|
function A(_, T) {
|
|
1970
|
-
if (
|
|
1970
|
+
if (v(_) != "object" || !_) return _;
|
|
1971
1971
|
var E = _[Symbol.toPrimitive];
|
|
1972
1972
|
if (E !== void 0) {
|
|
1973
1973
|
var j = E.call(_, T);
|
|
1974
|
-
if (
|
|
1974
|
+
if (v(j) != "object") return j;
|
|
1975
1975
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1976
1976
|
}
|
|
1977
1977
|
return (T === "string" ? String : Number)(_);
|
|
1978
1978
|
}
|
|
1979
1979
|
return Ne.InnerSlider = /* @__PURE__ */ function(_) {
|
|
1980
1980
|
U(E, _);
|
|
1981
|
-
var T =
|
|
1981
|
+
var T = g(E);
|
|
1982
1982
|
function E(j) {
|
|
1983
1983
|
var o;
|
|
1984
1984
|
I(this, E), o = T.call(this, j), h(x(o), "listRefHandler", function(m) {
|
|
@@ -2299,7 +2299,7 @@ function ri() {
|
|
|
2299
2299
|
onMouseEnter: z ? o.onDotsLeave : null,
|
|
2300
2300
|
onMouseOver: z ? o.onDotsOver : null,
|
|
2301
2301
|
onMouseLeave: z ? o.onDotsLeave : null
|
|
2302
|
-
}), $ = /* @__PURE__ */ e.default.createElement(
|
|
2302
|
+
}), $ = /* @__PURE__ */ e.default.createElement(d.Dots, D);
|
|
2303
2303
|
}
|
|
2304
2304
|
var N, W, B = (0, a.extractObject)(n, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
|
|
2305
2305
|
B.clickHandler = o.changeSlide, o.props.arrows && (N = /* @__PURE__ */ e.default.createElement(l.PrevArrow, B), W = /* @__PURE__ */ e.default.createElement(l.NextArrow, B));
|
|
@@ -2336,9 +2336,9 @@ function ri() {
|
|
|
2336
2336
|
}, ee = {
|
|
2337
2337
|
className: m,
|
|
2338
2338
|
style: o.props.style
|
|
2339
|
-
}), /* @__PURE__ */ e.default.createElement("div", ee, o.props.unslick ? "" : N, /* @__PURE__ */ e.default.createElement("div",
|
|
2339
|
+
}), /* @__PURE__ */ e.default.createElement("div", ee, o.props.unslick ? "" : N, /* @__PURE__ */ e.default.createElement("div", y({
|
|
2340
2340
|
ref: o.listRefHandler
|
|
2341
|
-
}, Z), /* @__PURE__ */ e.default.createElement(s.Track,
|
|
2341
|
+
}, Z), /* @__PURE__ */ e.default.createElement(s.Track, y({
|
|
2342
2342
|
ref: o.trackRefHandler
|
|
2343
2343
|
}, c), o.props.children)), o.props.unslick ? "" : W, o.props.unslick ? "" : $);
|
|
2344
2344
|
}), o.list = null, o.track = null, o.state = p(p({}, t.default), {}, {
|
|
@@ -2358,7 +2358,7 @@ function ri() {
|
|
|
2358
2358
|
H = !0;
|
|
2359
2359
|
break;
|
|
2360
2360
|
}
|
|
2361
|
-
if (!(
|
|
2361
|
+
if (!(v(o[c]) === "object" || typeof o[c] == "function" || isNaN(o[c])) && o[c] !== this.props[c]) {
|
|
2362
2362
|
H = !0;
|
|
2363
2363
|
break;
|
|
2364
2364
|
}
|
|
@@ -2387,15 +2387,15 @@ function ii() {
|
|
|
2387
2387
|
var s = /[height|width]$/;
|
|
2388
2388
|
return s.test(a);
|
|
2389
2389
|
}, r = function(a) {
|
|
2390
|
-
var s = "",
|
|
2391
|
-
return
|
|
2392
|
-
var
|
|
2393
|
-
l = e(l), t(l) && typeof
|
|
2390
|
+
var s = "", d = Object.keys(a);
|
|
2391
|
+
return d.forEach(function(l, u) {
|
|
2392
|
+
var f = a[l];
|
|
2393
|
+
l = e(l), t(l) && typeof f == "number" && (f = f + "px"), f === !0 ? s += l : f === !1 ? s += "not " + l : s += "(" + l + ": " + f + ")", u < d.length - 1 && (s += " and ");
|
|
2394
2394
|
}), s;
|
|
2395
2395
|
}, i = function(a) {
|
|
2396
2396
|
var s = "";
|
|
2397
|
-
return typeof a == "string" ? a : a instanceof Array ? (a.forEach(function(
|
|
2398
|
-
s += r(
|
|
2397
|
+
return typeof a == "string" ? a : a instanceof Array ? (a.forEach(function(d, l) {
|
|
2398
|
+
s += r(d), l < a.length - 1 && (s += ", ");
|
|
2399
2399
|
}), s) : r(a);
|
|
2400
2400
|
};
|
|
2401
2401
|
return Dt = i, Dt;
|
|
@@ -2406,84 +2406,84 @@ function ai() {
|
|
|
2406
2406
|
Object.defineProperty(e, "__esModule", {
|
|
2407
2407
|
value: !0
|
|
2408
2408
|
}), e.default = void 0;
|
|
2409
|
-
var t =
|
|
2410
|
-
function
|
|
2409
|
+
var t = d(V), r = ri(), i = d(ii()), a = d(zr()), s = Ke();
|
|
2410
|
+
function d(R) {
|
|
2411
2411
|
return R && R.__esModule ? R : { default: R };
|
|
2412
2412
|
}
|
|
2413
2413
|
function l(R) {
|
|
2414
2414
|
"@babel/helpers - typeof";
|
|
2415
|
-
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
2416
|
-
return typeof
|
|
2417
|
-
} : function(
|
|
2418
|
-
return
|
|
2415
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(b) {
|
|
2416
|
+
return typeof b;
|
|
2417
|
+
} : function(b) {
|
|
2418
|
+
return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
|
|
2419
2419
|
}, l(R);
|
|
2420
2420
|
}
|
|
2421
2421
|
function u() {
|
|
2422
2422
|
return u = Object.assign ? Object.assign.bind() : function(R) {
|
|
2423
|
-
for (var
|
|
2424
|
-
var h = arguments[
|
|
2423
|
+
for (var b = 1; b < arguments.length; b++) {
|
|
2424
|
+
var h = arguments[b];
|
|
2425
2425
|
for (var P in h)
|
|
2426
2426
|
({}).hasOwnProperty.call(h, P) && (R[P] = h[P]);
|
|
2427
2427
|
}
|
|
2428
2428
|
return R;
|
|
2429
2429
|
}, u.apply(null, arguments);
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function f(R, b) {
|
|
2432
2432
|
var h = Object.keys(R);
|
|
2433
2433
|
if (Object.getOwnPropertySymbols) {
|
|
2434
2434
|
var P = Object.getOwnPropertySymbols(R);
|
|
2435
|
-
|
|
2435
|
+
b && (P = P.filter(function(A) {
|
|
2436
2436
|
return Object.getOwnPropertyDescriptor(R, A).enumerable;
|
|
2437
2437
|
})), h.push.apply(h, P);
|
|
2438
2438
|
}
|
|
2439
2439
|
return h;
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2442
|
-
for (var
|
|
2443
|
-
var h = arguments[
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(h)) :
|
|
2441
|
+
function v(R) {
|
|
2442
|
+
for (var b = 1; b < arguments.length; b++) {
|
|
2443
|
+
var h = arguments[b] != null ? arguments[b] : {};
|
|
2444
|
+
b % 2 ? f(Object(h), !0).forEach(function(P) {
|
|
2445
|
+
g(R, P, h[P]);
|
|
2446
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(h)) : f(Object(h)).forEach(function(P) {
|
|
2447
2447
|
Object.defineProperty(R, P, Object.getOwnPropertyDescriptor(h, P));
|
|
2448
2448
|
});
|
|
2449
2449
|
}
|
|
2450
2450
|
return R;
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2453
|
-
if (!(R instanceof
|
|
2452
|
+
function y(R, b) {
|
|
2453
|
+
if (!(R instanceof b)) throw new TypeError("Cannot call a class as a function");
|
|
2454
2454
|
}
|
|
2455
|
-
function S(R,
|
|
2456
|
-
for (var h = 0; h <
|
|
2457
|
-
var P =
|
|
2455
|
+
function S(R, b) {
|
|
2456
|
+
for (var h = 0; h < b.length; h++) {
|
|
2457
|
+
var P = b[h];
|
|
2458
2458
|
P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(R, w(P.key), P);
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
-
function L(R,
|
|
2462
|
-
return
|
|
2461
|
+
function L(R, b, h) {
|
|
2462
|
+
return b && S(R.prototype, b), Object.defineProperty(R, "prototype", { writable: !1 }), R;
|
|
2463
2463
|
}
|
|
2464
|
-
function k(R,
|
|
2465
|
-
if (typeof
|
|
2466
|
-
R.prototype = Object.create(
|
|
2464
|
+
function k(R, b) {
|
|
2465
|
+
if (typeof b != "function" && b !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2466
|
+
R.prototype = Object.create(b && b.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), Object.defineProperty(R, "prototype", { writable: !1 }), b && p(R, b);
|
|
2467
2467
|
}
|
|
2468
|
-
function p(R,
|
|
2468
|
+
function p(R, b) {
|
|
2469
2469
|
return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(h, P) {
|
|
2470
2470
|
return h.__proto__ = P, h;
|
|
2471
|
-
}, p(R,
|
|
2471
|
+
}, p(R, b);
|
|
2472
2472
|
}
|
|
2473
2473
|
function I(R) {
|
|
2474
|
-
var
|
|
2474
|
+
var b = U();
|
|
2475
2475
|
return function() {
|
|
2476
2476
|
var h, P = q(R);
|
|
2477
|
-
if (
|
|
2477
|
+
if (b) {
|
|
2478
2478
|
var A = q(this).constructor;
|
|
2479
2479
|
h = Reflect.construct(P, arguments, A);
|
|
2480
2480
|
} else h = P.apply(this, arguments);
|
|
2481
2481
|
return C(this, h);
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
|
-
function C(R,
|
|
2485
|
-
if (
|
|
2486
|
-
if (
|
|
2484
|
+
function C(R, b) {
|
|
2485
|
+
if (b && (l(b) == "object" || typeof b == "function")) return b;
|
|
2486
|
+
if (b !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2487
2487
|
return F(R);
|
|
2488
2488
|
}
|
|
2489
2489
|
function F(R) {
|
|
@@ -2501,44 +2501,44 @@ function ai() {
|
|
|
2501
2501
|
})();
|
|
2502
2502
|
}
|
|
2503
2503
|
function q(R) {
|
|
2504
|
-
return q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(
|
|
2505
|
-
return
|
|
2504
|
+
return q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(b) {
|
|
2505
|
+
return b.__proto__ || Object.getPrototypeOf(b);
|
|
2506
2506
|
}, q(R);
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2509
|
-
return (
|
|
2508
|
+
function g(R, b, h) {
|
|
2509
|
+
return (b = w(b)) in R ? Object.defineProperty(R, b, { value: h, enumerable: !0, configurable: !0, writable: !0 }) : R[b] = h, R;
|
|
2510
2510
|
}
|
|
2511
2511
|
function w(R) {
|
|
2512
|
-
var
|
|
2513
|
-
return l(
|
|
2512
|
+
var b = x(R, "string");
|
|
2513
|
+
return l(b) == "symbol" ? b : b + "";
|
|
2514
2514
|
}
|
|
2515
|
-
function x(R,
|
|
2515
|
+
function x(R, b) {
|
|
2516
2516
|
if (l(R) != "object" || !R) return R;
|
|
2517
2517
|
var h = R[Symbol.toPrimitive];
|
|
2518
2518
|
if (h !== void 0) {
|
|
2519
|
-
var P = h.call(R,
|
|
2519
|
+
var P = h.call(R, b);
|
|
2520
2520
|
if (l(P) != "object") return P;
|
|
2521
2521
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2522
2522
|
}
|
|
2523
|
-
return (
|
|
2523
|
+
return (b === "string" ? String : Number)(R);
|
|
2524
2524
|
}
|
|
2525
2525
|
e.default = /* @__PURE__ */ function(R) {
|
|
2526
2526
|
k(h, R);
|
|
2527
|
-
var
|
|
2527
|
+
var b = I(h);
|
|
2528
2528
|
function h(P) {
|
|
2529
2529
|
var A;
|
|
2530
|
-
return
|
|
2530
|
+
return y(this, h), A = b.call(this, P), g(F(A), "innerSliderRefHandler", function(_) {
|
|
2531
2531
|
return A.innerSlider = _;
|
|
2532
|
-
}),
|
|
2532
|
+
}), g(F(A), "slickPrev", function() {
|
|
2533
2533
|
return A.innerSlider.slickPrev();
|
|
2534
|
-
}),
|
|
2534
|
+
}), g(F(A), "slickNext", function() {
|
|
2535
2535
|
return A.innerSlider.slickNext();
|
|
2536
|
-
}),
|
|
2536
|
+
}), g(F(A), "slickGoTo", function(_) {
|
|
2537
2537
|
var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2538
2538
|
return A.innerSlider.slickGoTo(_, T);
|
|
2539
|
-
}),
|
|
2539
|
+
}), g(F(A), "slickPause", function() {
|
|
2540
2540
|
return A.innerSlider.pause("paused");
|
|
2541
|
-
}),
|
|
2541
|
+
}), g(F(A), "slickPlay", function() {
|
|
2542
2542
|
return A.innerSlider.autoPlay("play");
|
|
2543
2543
|
}), A.state = {
|
|
2544
2544
|
breakpoint: null
|
|
@@ -2605,7 +2605,7 @@ function ai() {
|
|
|
2605
2605
|
var A = this, _, T;
|
|
2606
2606
|
this.state.breakpoint ? (T = this.props.responsive.filter(function(D) {
|
|
2607
2607
|
return D.breakpoint === A.state.breakpoint;
|
|
2608
|
-
}), _ = T[0].settings === "unslick" ? "unslick" :
|
|
2608
|
+
}), _ = T[0].settings === "unslick" ? "unslick" : v(v(v({}, a.default), this.props), T[0].settings)) : _ = v(v({}, a.default), this.props), _.centerMode && (_.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(_.slidesToScroll)), _.slidesToScroll = 1), _.fade && (_.slidesToShow > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(_.slidesToShow)), _.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(_.slidesToScroll)), _.slidesToShow = 1, _.slidesToScroll = 1);
|
|
2609
2609
|
var E = t.default.Children.toArray(this.props.children);
|
|
2610
2610
|
E = E.filter(function(D) {
|
|
2611
2611
|
return typeof D == "string" ? !!D.trim() : !!D;
|
|
@@ -2748,8 +2748,8 @@ function yi(e, t) {
|
|
|
2748
2748
|
return e.map(t).join("");
|
|
2749
2749
|
}
|
|
2750
2750
|
var St = 1, Le = 1, Xr = 0, he = 0, se = 0, De = "";
|
|
2751
|
-
function xt(e, t, r, i, a, s,
|
|
2752
|
-
return { value: e, root: t, parent: r, type: i, props: a, children: s, line: St, column: Le, length:
|
|
2751
|
+
function xt(e, t, r, i, a, s, d) {
|
|
2752
|
+
return { value: e, root: t, parent: r, type: i, props: a, children: s, line: St, column: Le, length: d, return: "" };
|
|
2753
2753
|
}
|
|
2754
2754
|
function Ue(e, t) {
|
|
2755
2755
|
return mi(xt("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
@@ -2865,12 +2865,12 @@ function ki(e) {
|
|
|
2865
2865
|
function Ci(e) {
|
|
2866
2866
|
return Kr(lt("", null, null, null, [""], e = Gr(e), 0, [0], e));
|
|
2867
2867
|
}
|
|
2868
|
-
function lt(e, t, r, i, a, s,
|
|
2869
|
-
for (var
|
|
2868
|
+
function lt(e, t, r, i, a, s, d, l, u) {
|
|
2869
|
+
for (var f = 0, v = 0, y = d, S = 0, L = 0, k = 0, p = 1, I = 1, C = 1, F = 0, U = "", q = a, g = s, w = i, x = U; I; )
|
|
2870
2870
|
switch (k = F, F = me()) {
|
|
2871
2871
|
// (
|
|
2872
2872
|
case 40:
|
|
2873
|
-
if (k != 108 && fe(x,
|
|
2873
|
+
if (k != 108 && fe(x, y - 1) == 58) {
|
|
2874
2874
|
zt(x += ne(st(F), "&", "&\f"), "&\f") != -1 && (C = -1);
|
|
2875
2875
|
break;
|
|
2876
2876
|
}
|
|
@@ -2904,7 +2904,7 @@ function lt(e, t, r, i, a, s, f, l, u) {
|
|
|
2904
2904
|
break;
|
|
2905
2905
|
// {
|
|
2906
2906
|
case 123 * p:
|
|
2907
|
-
l[
|
|
2907
|
+
l[f++] = ye(x) * C;
|
|
2908
2908
|
// } ; \0
|
|
2909
2909
|
case 125 * p:
|
|
2910
2910
|
case 59:
|
|
@@ -2915,17 +2915,17 @@ function lt(e, t, r, i, a, s, f, l, u) {
|
|
|
2915
2915
|
case 125:
|
|
2916
2916
|
I = 0;
|
|
2917
2917
|
// ;
|
|
2918
|
-
case 59 +
|
|
2919
|
-
C == -1 && (x = ne(x, /\f/g, "")), L > 0 && ye(x) -
|
|
2918
|
+
case 59 + v:
|
|
2919
|
+
C == -1 && (x = ne(x, /\f/g, "")), L > 0 && ye(x) - y && it(L > 32 ? wr(x + ";", i, r, y - 1) : wr(ne(x, " ", "") + ";", i, r, y - 2), u);
|
|
2920
2920
|
break;
|
|
2921
2921
|
// @ ;
|
|
2922
2922
|
case 59:
|
|
2923
2923
|
x += ";";
|
|
2924
2924
|
// { rule/at-rule
|
|
2925
2925
|
default:
|
|
2926
|
-
if (it(w = br(x, t, r,
|
|
2927
|
-
if (
|
|
2928
|
-
lt(x, t, w, w, q, s,
|
|
2926
|
+
if (it(w = br(x, t, r, f, v, a, l, U, q = [], g = [], y), s), F === 123)
|
|
2927
|
+
if (v === 0)
|
|
2928
|
+
lt(x, t, w, w, q, s, y, l, g);
|
|
2929
2929
|
else
|
|
2930
2930
|
switch (S === 99 && fe(x, 3) === 110 ? 100 : S) {
|
|
2931
2931
|
// d l m s
|
|
@@ -2933,17 +2933,17 @@ function lt(e, t, r, i, a, s, f, l, u) {
|
|
|
2933
2933
|
case 108:
|
|
2934
2934
|
case 109:
|
|
2935
2935
|
case 115:
|
|
2936
|
-
lt(e, w, w, i && it(br(e, w, w, 0, 0, a, l, U, a, q = [],
|
|
2936
|
+
lt(e, w, w, i && it(br(e, w, w, 0, 0, a, l, U, a, q = [], y), g), a, g, y, l, i ? q : g);
|
|
2937
2937
|
break;
|
|
2938
2938
|
default:
|
|
2939
|
-
lt(x, w, w, w, [""],
|
|
2939
|
+
lt(x, w, w, w, [""], g, 0, l, g);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
|
-
|
|
2942
|
+
f = v = L = 0, p = C = 1, U = x = "", y = d;
|
|
2943
2943
|
break;
|
|
2944
2944
|
// :
|
|
2945
2945
|
case 58:
|
|
2946
|
-
|
|
2946
|
+
y = 1 + ye(x), L = k;
|
|
2947
2947
|
default:
|
|
2948
2948
|
if (p < 1) {
|
|
2949
2949
|
if (F == 123)
|
|
@@ -2954,15 +2954,15 @@ function lt(e, t, r, i, a, s, f, l, u) {
|
|
|
2954
2954
|
switch (x += wt(F), F * p) {
|
|
2955
2955
|
// &
|
|
2956
2956
|
case 38:
|
|
2957
|
-
C =
|
|
2957
|
+
C = v > 0 ? 1 : (x += "\f", -1);
|
|
2958
2958
|
break;
|
|
2959
2959
|
// ,
|
|
2960
2960
|
case 44:
|
|
2961
|
-
l[
|
|
2961
|
+
l[f++] = (ye(x) - 1) * C, C = 1;
|
|
2962
2962
|
break;
|
|
2963
2963
|
// @
|
|
2964
2964
|
case 64:
|
|
2965
|
-
we() === 45 && (x += st(me())), S = we(),
|
|
2965
|
+
we() === 45 && (x += st(me())), S = we(), v = y = ye(U = x += ki(ot())), F++;
|
|
2966
2966
|
break;
|
|
2967
2967
|
// -
|
|
2968
2968
|
case 45:
|
|
@@ -2971,11 +2971,11 @@ function lt(e, t, r, i, a, s, f, l, u) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
return s;
|
|
2973
2973
|
}
|
|
2974
|
-
function br(e, t, r, i, a, s,
|
|
2975
|
-
for (var
|
|
2976
|
-
for (var C = 0, F = qe(e,
|
|
2974
|
+
function br(e, t, r, i, a, s, d, l, u, f, v) {
|
|
2975
|
+
for (var y = a - 1, S = a === 0 ? s : [""], L = Xt(S), k = 0, p = 0, I = 0; k < i; ++k)
|
|
2976
|
+
for (var C = 0, F = qe(e, y + 1, y = pi(p = d[k])), U = e; C < L; ++C)
|
|
2977
2977
|
(U = Br(p > 0 ? S[C] + " " + F : ne(F, /&\f/g, S[C]))) && (u[I++] = U);
|
|
2978
|
-
return xt(e, t, r, a === 0 ? qt : l, u,
|
|
2978
|
+
return xt(e, t, r, a === 0 ? qt : l, u, f, v);
|
|
2979
2979
|
}
|
|
2980
2980
|
function Pi(e, t, r) {
|
|
2981
2981
|
return xt(e, t, r, Vr, wt(bi()), qe(e, 2, -2), 0);
|
|
@@ -3007,9 +3007,9 @@ function Ei(e, t, r, i) {
|
|
|
3007
3007
|
function Ri(e) {
|
|
3008
3008
|
var t = Xt(e);
|
|
3009
3009
|
return function(r, i, a, s) {
|
|
3010
|
-
for (var
|
|
3011
|
-
|
|
3012
|
-
return
|
|
3010
|
+
for (var d = "", l = 0; l < t; l++)
|
|
3011
|
+
d += e[l](r, i, a, s) || "";
|
|
3012
|
+
return d;
|
|
3013
3013
|
};
|
|
3014
3014
|
}
|
|
3015
3015
|
function _i(e) {
|
|
@@ -3058,9 +3058,9 @@ var Ti = function(t, r, i) {
|
|
|
3058
3058
|
if (i = i.parent, !i) return;
|
|
3059
3059
|
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Sr.get(i)) && !a) {
|
|
3060
3060
|
Sr.set(t, !0);
|
|
3061
|
-
for (var s = [],
|
|
3062
|
-
for (var
|
|
3063
|
-
t.props[
|
|
3061
|
+
for (var s = [], d = Li(r, s), l = i.props, u = 0, f = 0; u < d.length; u++)
|
|
3062
|
+
for (var v = 0; v < l.length; v++, f++)
|
|
3063
|
+
t.props[f] = s[u] ? d[u].replace(/&\f/g, l[v]) : l[v] + " " + d[u];
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
3066
|
}, Mi = function(t) {
|
|
@@ -3253,8 +3253,8 @@ var $i = function(t, r, i, a) {
|
|
|
3253
3253
|
I.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
3256
|
-
var a = t.stylisPlugins || Ii, s = {},
|
|
3257
|
-
|
|
3256
|
+
var a = t.stylisPlugins || Ii, s = {}, d, l = [];
|
|
3257
|
+
d = t.container || document.head, Array.prototype.forEach.call(
|
|
3258
3258
|
// this means we will ignore elements which don't have a space in them which
|
|
3259
3259
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
3260
3260
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
@@ -3264,22 +3264,22 @@ var $i = function(t, r, i, a) {
|
|
|
3264
3264
|
l.push(p);
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
3267
|
-
var u,
|
|
3267
|
+
var u, f = [Di, Mi];
|
|
3268
3268
|
{
|
|
3269
|
-
var
|
|
3270
|
-
|
|
3271
|
-
})], S = Ri(
|
|
3269
|
+
var v, y = [Ei, _i(function(p) {
|
|
3270
|
+
v.insert(p);
|
|
3271
|
+
})], S = Ri(f.concat(a, y)), L = function(I) {
|
|
3272
3272
|
return Te(Ci(I), S);
|
|
3273
3273
|
};
|
|
3274
3274
|
u = function(I, C, F, U) {
|
|
3275
|
-
|
|
3275
|
+
v = F, L(I ? I + "{" + C.styles + "}" : C.styles), U && (k.inserted[C.name] = !0);
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
3278
|
var k = {
|
|
3279
3279
|
key: r,
|
|
3280
3280
|
sheet: new fi({
|
|
3281
3281
|
key: r,
|
|
3282
|
-
container:
|
|
3282
|
+
container: d,
|
|
3283
3283
|
nonce: t.nonce,
|
|
3284
3284
|
speedy: t.speedy,
|
|
3285
3285
|
prepend: t.prepend,
|
|
@@ -3428,14 +3428,14 @@ function Xe(e, t, r) {
|
|
|
3428
3428
|
}, a.name;
|
|
3429
3429
|
var s = r;
|
|
3430
3430
|
if (s.styles !== void 0) {
|
|
3431
|
-
var
|
|
3432
|
-
if (
|
|
3433
|
-
for (;
|
|
3431
|
+
var d = s.next;
|
|
3432
|
+
if (d !== void 0)
|
|
3433
|
+
for (; d !== void 0; )
|
|
3434
3434
|
be = {
|
|
3435
|
-
name:
|
|
3436
|
-
styles:
|
|
3435
|
+
name: d.name,
|
|
3436
|
+
styles: d.styles,
|
|
3437
3437
|
next: be
|
|
3438
|
-
},
|
|
3438
|
+
}, d = d.next;
|
|
3439
3439
|
var l = s.styles + ";";
|
|
3440
3440
|
return l;
|
|
3441
3441
|
}
|
|
@@ -3443,17 +3443,17 @@ function Xe(e, t, r) {
|
|
|
3443
3443
|
}
|
|
3444
3444
|
case "function": {
|
|
3445
3445
|
if (e !== void 0) {
|
|
3446
|
-
var u = be,
|
|
3447
|
-
return be = u, Xe(e, t,
|
|
3446
|
+
var u = be, f = r(e);
|
|
3447
|
+
return be = u, Xe(e, t, f);
|
|
3448
3448
|
}
|
|
3449
3449
|
break;
|
|
3450
3450
|
}
|
|
3451
3451
|
}
|
|
3452
|
-
var
|
|
3452
|
+
var v = r;
|
|
3453
3453
|
if (t == null)
|
|
3454
|
-
return
|
|
3455
|
-
var
|
|
3456
|
-
return
|
|
3454
|
+
return v;
|
|
3455
|
+
var y = t[v];
|
|
3456
|
+
return y !== void 0 ? y : v;
|
|
3457
3457
|
}
|
|
3458
3458
|
function Vi(e, t, r) {
|
|
3459
3459
|
var i = "";
|
|
@@ -3462,23 +3462,23 @@ function Vi(e, t, r) {
|
|
|
3462
3462
|
i += Xe(e, t, r[a]) + ";";
|
|
3463
3463
|
else
|
|
3464
3464
|
for (var s in r) {
|
|
3465
|
-
var
|
|
3466
|
-
if (typeof
|
|
3467
|
-
var l =
|
|
3465
|
+
var d = r[s];
|
|
3466
|
+
if (typeof d != "object") {
|
|
3467
|
+
var l = d;
|
|
3468
3468
|
t != null && t[l] !== void 0 ? i += s + "{" + t[l] + "}" : xr(l) && (i += Mt(s) + ":" + Or(s, l) + ";");
|
|
3469
|
-
} else if (Array.isArray(
|
|
3470
|
-
for (var u = 0; u <
|
|
3471
|
-
xr(
|
|
3469
|
+
} else if (Array.isArray(d) && typeof d[0] == "string" && (t == null || t[d[0]] === void 0))
|
|
3470
|
+
for (var u = 0; u < d.length; u++)
|
|
3471
|
+
xr(d[u]) && (i += Mt(s) + ":" + Or(s, d[u]) + ";");
|
|
3472
3472
|
else {
|
|
3473
|
-
var
|
|
3473
|
+
var f = Xe(e, t, d);
|
|
3474
3474
|
switch (s) {
|
|
3475
3475
|
case "animation":
|
|
3476
3476
|
case "animationName": {
|
|
3477
|
-
i += Mt(s) + ":" +
|
|
3477
|
+
i += Mt(s) + ":" + f + ";";
|
|
3478
3478
|
break;
|
|
3479
3479
|
}
|
|
3480
3480
|
default:
|
|
3481
|
-
i += s + "{" +
|
|
3481
|
+
i += s + "{" + f + "}";
|
|
3482
3482
|
}
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
@@ -3494,8 +3494,8 @@ function qi(e, t, r) {
|
|
|
3494
3494
|
if (s == null || s.raw === void 0)
|
|
3495
3495
|
i = !1, a += Xe(r, t, s);
|
|
3496
3496
|
else {
|
|
3497
|
-
var
|
|
3498
|
-
a +=
|
|
3497
|
+
var d = s;
|
|
3498
|
+
a += d[0];
|
|
3499
3499
|
}
|
|
3500
3500
|
for (var l = 1; l < e.length; l++)
|
|
3501
3501
|
if (a += Xe(r, t, e[l]), i) {
|
|
@@ -3503,11 +3503,11 @@ function qi(e, t, r) {
|
|
|
3503
3503
|
a += u[l];
|
|
3504
3504
|
}
|
|
3505
3505
|
kr.lastIndex = 0;
|
|
3506
|
-
for (var
|
|
3507
|
-
|
|
3508
|
-
var
|
|
3506
|
+
for (var f = "", v; (v = kr.exec(a)) !== null; )
|
|
3507
|
+
f += "-" + v[1];
|
|
3508
|
+
var y = Fi(a) + f;
|
|
3509
3509
|
return {
|
|
3510
|
-
name:
|
|
3510
|
+
name: y,
|
|
3511
3511
|
styles: a,
|
|
3512
3512
|
next: be
|
|
3513
3513
|
};
|
|
@@ -3547,8 +3547,8 @@ var Ki = function(t) {
|
|
|
3547
3547
|
var a;
|
|
3548
3548
|
if (r) {
|
|
3549
3549
|
var s = r.shouldForwardProp;
|
|
3550
|
-
a = t.__emotion_forwardProp && s ? function(
|
|
3551
|
-
return t.__emotion_forwardProp(
|
|
3550
|
+
a = t.__emotion_forwardProp && s ? function(d) {
|
|
3551
|
+
return t.__emotion_forwardProp(d) && s(d);
|
|
3552
3552
|
} : s;
|
|
3553
3553
|
}
|
|
3554
3554
|
return typeof a != "function" && i && (a = t.__emotion_forwardProp), a;
|
|
@@ -3558,48 +3558,48 @@ var Ki = function(t) {
|
|
|
3558
3558
|
return Ni(r, i, a);
|
|
3559
3559
|
}), null;
|
|
3560
3560
|
}, na = function e(t, r) {
|
|
3561
|
-
var i = t.__emotion_real === t, a = i && t.__emotion_base || t, s,
|
|
3562
|
-
r !== void 0 && (s = r.label,
|
|
3563
|
-
var l = Pr(t, r, i), u = l || Cr(a),
|
|
3561
|
+
var i = t.__emotion_real === t, a = i && t.__emotion_base || t, s, d;
|
|
3562
|
+
r !== void 0 && (s = r.label, d = r.target);
|
|
3563
|
+
var l = Pr(t, r, i), u = l || Cr(a), f = !u("as");
|
|
3564
3564
|
return function() {
|
|
3565
|
-
var
|
|
3566
|
-
if (s !== void 0 &&
|
|
3567
|
-
|
|
3565
|
+
var v = arguments, y = i && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
3566
|
+
if (s !== void 0 && y.push("label:" + s + ";"), v[0] == null || v[0].raw === void 0)
|
|
3567
|
+
y.push.apply(y, v);
|
|
3568
3568
|
else {
|
|
3569
|
-
var S =
|
|
3570
|
-
|
|
3571
|
-
for (var L =
|
|
3572
|
-
|
|
3569
|
+
var S = v[0];
|
|
3570
|
+
y.push(S[0]);
|
|
3571
|
+
for (var L = v.length, k = 1; k < L; k++)
|
|
3572
|
+
y.push(v[k], S[k]);
|
|
3573
3573
|
}
|
|
3574
3574
|
var p = Ki(function(I, C, F) {
|
|
3575
|
-
var U =
|
|
3575
|
+
var U = f && I.as || a, q = "", g = [], w = I;
|
|
3576
3576
|
if (I.theme == null) {
|
|
3577
3577
|
w = {};
|
|
3578
3578
|
for (var x in I)
|
|
3579
3579
|
w[x] = I[x];
|
|
3580
3580
|
w.theme = M.useContext(Ji);
|
|
3581
3581
|
}
|
|
3582
|
-
typeof I.className == "string" ? q = zi(C.registered,
|
|
3583
|
-
var R = qi(
|
|
3584
|
-
q += C.key + "-" + R.name,
|
|
3585
|
-
var
|
|
3582
|
+
typeof I.className == "string" ? q = zi(C.registered, g, I.className) : I.className != null && (q = I.className + " ");
|
|
3583
|
+
var R = qi(y.concat(g), C.registered, w);
|
|
3584
|
+
q += C.key + "-" + R.name, d !== void 0 && (q += " " + d);
|
|
3585
|
+
var b = f && l === void 0 ? Cr(U) : u, h = {};
|
|
3586
3586
|
for (var P in I)
|
|
3587
|
-
|
|
3587
|
+
f && P === "as" || b(P) && (h[P] = I[P]);
|
|
3588
3588
|
return h.className = q, F && (h.ref = F), /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(ra, {
|
|
3589
3589
|
cache: C,
|
|
3590
3590
|
serialized: R,
|
|
3591
3591
|
isStringTag: typeof U == "string"
|
|
3592
3592
|
}), /* @__PURE__ */ M.createElement(U, h));
|
|
3593
3593
|
});
|
|
3594
|
-
return p.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles =
|
|
3594
|
+
return p.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = y, p.__emotion_forwardProp = l, Object.defineProperty(p, "toString", {
|
|
3595
3595
|
value: function() {
|
|
3596
|
-
return "." +
|
|
3596
|
+
return "." + d;
|
|
3597
3597
|
}
|
|
3598
3598
|
}), p.withComponent = function(I, C) {
|
|
3599
3599
|
var F = e(I, Ht({}, r, C, {
|
|
3600
3600
|
shouldForwardProp: Pr(p, C, !0)
|
|
3601
3601
|
}));
|
|
3602
|
-
return F.apply(void 0,
|
|
3602
|
+
return F.apply(void 0, y);
|
|
3603
3603
|
}, p;
|
|
3604
3604
|
};
|
|
3605
3605
|
}, ia = [
|
|
@@ -3837,7 +3837,7 @@ const aa = Ee.div`
|
|
|
3837
3837
|
settings: r,
|
|
3838
3838
|
gap: i = 15
|
|
3839
3839
|
}) => {
|
|
3840
|
-
const [a, s] = V.useState(1),
|
|
3840
|
+
const [a, s] = V.useState(1), d = V.useRef(null), l = V.useRef(null);
|
|
3841
3841
|
var u = {
|
|
3842
3842
|
dots: !1,
|
|
3843
3843
|
speed: 500,
|
|
@@ -3848,7 +3848,7 @@ const aa = Ee.div`
|
|
|
3848
3848
|
rows: 1,
|
|
3849
3849
|
...r
|
|
3850
3850
|
};
|
|
3851
|
-
const
|
|
3851
|
+
const f = t.map((y, S) => /* @__PURE__ */ X.jsx(
|
|
3852
3852
|
oa,
|
|
3853
3853
|
{
|
|
3854
3854
|
ref: S === 0 ? l : void 0,
|
|
@@ -3856,27 +3856,27 @@ const aa = Ee.div`
|
|
|
3856
3856
|
paddingRight: `${i}px`,
|
|
3857
3857
|
overflow: "visible",
|
|
3858
3858
|
// marginLeft: index !== 0 ? "0px" : margin,
|
|
3859
|
-
...
|
|
3859
|
+
...y.styles
|
|
3860
3860
|
},
|
|
3861
3861
|
"data-testid": "carousel-slide-item",
|
|
3862
|
-
children:
|
|
3862
|
+
children: y.content
|
|
3863
3863
|
}
|
|
3864
|
-
)),
|
|
3864
|
+
)), v = () => {
|
|
3865
3865
|
if (u.slidesToShow) {
|
|
3866
3866
|
s(u.slidesToShow);
|
|
3867
3867
|
return;
|
|
3868
3868
|
}
|
|
3869
|
-
const
|
|
3870
|
-
let L = Math.floor(
|
|
3869
|
+
const y = (d.current?.offsetWidth || i + 1) - i, S = l.current?.offsetWidth || 1;
|
|
3870
|
+
let L = Math.floor(y / S);
|
|
3871
3871
|
L < 1 ? L = 1 : L > t.length && (L = t.length), console.debug("Slides to show > ", {
|
|
3872
|
-
container:
|
|
3872
|
+
container: y,
|
|
3873
3873
|
slide: S,
|
|
3874
3874
|
res: L
|
|
3875
3875
|
}), s(L);
|
|
3876
3876
|
};
|
|
3877
3877
|
return V.useEffect(() => {
|
|
3878
|
-
|
|
3879
|
-
}, [
|
|
3878
|
+
v();
|
|
3879
|
+
}, [d, l]), /* @__PURE__ */ X.jsx(aa, { ref: d, styles: { ...e }, children: f.length > 0 && /* @__PURE__ */ X.jsx(li, { ...u, slidesToShow: a, children: f }) });
|
|
3880
3880
|
}, ss = ({
|
|
3881
3881
|
name: e,
|
|
3882
3882
|
checked: t,
|
|
@@ -3884,7 +3884,7 @@ const aa = Ee.div`
|
|
|
3884
3884
|
styles: i,
|
|
3885
3885
|
label: a,
|
|
3886
3886
|
checkboxStyles: s,
|
|
3887
|
-
customCheckedRender:
|
|
3887
|
+
customCheckedRender: d,
|
|
3888
3888
|
customUncheckedRender: l
|
|
3889
3889
|
}) => /* @__PURE__ */ X.jsxs(
|
|
3890
3890
|
"div",
|
|
@@ -3946,7 +3946,7 @@ const aa = Ee.div`
|
|
|
3946
3946
|
...s
|
|
3947
3947
|
},
|
|
3948
3948
|
children: [
|
|
3949
|
-
t &&
|
|
3949
|
+
t && d,
|
|
3950
3950
|
!t && l
|
|
3951
3951
|
]
|
|
3952
3952
|
}
|
|
@@ -3966,11 +3966,11 @@ const aa = Ee.div`
|
|
|
3966
3966
|
t({ x: l.clientX, y: l.clientY });
|
|
3967
3967
|
}, s = (l) => {
|
|
3968
3968
|
i(!0);
|
|
3969
|
-
},
|
|
3969
|
+
}, d = (l) => {
|
|
3970
3970
|
i(!1);
|
|
3971
3971
|
};
|
|
3972
|
-
return window.addEventListener("pointermove", a), window.addEventListener("pointerdown", s), window.addEventListener("pointerup",
|
|
3973
|
-
window.removeEventListener("pointermove", a), window.removeEventListener("pointerdown", s), window.removeEventListener("pointerup",
|
|
3972
|
+
return window.addEventListener("pointermove", a), window.addEventListener("pointerdown", s), window.addEventListener("pointerup", d), () => {
|
|
3973
|
+
window.removeEventListener("pointermove", a), window.removeEventListener("pointerdown", s), window.removeEventListener("pointerup", d);
|
|
3974
3974
|
};
|
|
3975
3975
|
}, []), {
|
|
3976
3976
|
pointerPosition: e,
|
|
@@ -3982,9 +3982,9 @@ const aa = Ee.div`
|
|
|
3982
3982
|
onDragStart: r,
|
|
3983
3983
|
onDragEnd: i
|
|
3984
3984
|
}) => {
|
|
3985
|
-
const a = V.useRef(!1), s = V.useRef(!1), { pointerPosition:
|
|
3985
|
+
const a = V.useRef(!1), s = V.useRef(!1), { pointerPosition: d, isPointerDown: l } = sa(), u = V.useRef({
|
|
3986
3986
|
isDragging: !1
|
|
3987
|
-
}),
|
|
3987
|
+
}), f = V.useCallback(
|
|
3988
3988
|
(k) => {
|
|
3989
3989
|
if (!e || !e.current || !u.current)
|
|
3990
3990
|
return;
|
|
@@ -3992,20 +3992,20 @@ const aa = Ee.div`
|
|
|
3992
3992
|
return p.posY = k.y, p.posX = k.x, u.current.startPosX && u.current.posX && (p.distanceX = u.current.startPosX - u.current.posX), u.current.startPosY && u.current.posY && (p.distanceY = -(u.current.startPosY - u.current.posY)), p;
|
|
3993
3993
|
},
|
|
3994
3994
|
[]
|
|
3995
|
-
),
|
|
3995
|
+
), v = V.useCallback(
|
|
3996
3996
|
(k) => {
|
|
3997
3997
|
k.preventDefault(), k.stopPropagation(), u.current.isDragging = !0, u.current.startPosY = k.clientY, u.current.startPosX = k.clientX;
|
|
3998
|
-
const p =
|
|
3998
|
+
const p = f({ x: k.clientX, y: k.clientY });
|
|
3999
3999
|
p && (u.current = p, r?.(p));
|
|
4000
4000
|
},
|
|
4001
|
-
[
|
|
4002
|
-
),
|
|
4001
|
+
[f]
|
|
4002
|
+
), y = V.useCallback(
|
|
4003
4003
|
(k) => {
|
|
4004
4004
|
u.current.isDragging = !1;
|
|
4005
|
-
const p = d
|
|
4005
|
+
const p = f(d);
|
|
4006
4006
|
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0, u.current = p);
|
|
4007
4007
|
},
|
|
4008
|
-
[
|
|
4008
|
+
[f, d]
|
|
4009
4009
|
), S = V.useCallback(
|
|
4010
4010
|
(k) => {
|
|
4011
4011
|
if (console.debug(
|
|
@@ -4013,65 +4013,81 @@ const aa = Ee.div`
|
|
|
4013
4013
|
u.current.isDragging
|
|
4014
4014
|
), !u.current.isDragging)
|
|
4015
4015
|
return;
|
|
4016
|
-
const p = d
|
|
4016
|
+
const p = f(d);
|
|
4017
4017
|
console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p), u.current = p);
|
|
4018
4018
|
},
|
|
4019
|
-
[
|
|
4019
|
+
[f, d]
|
|
4020
4020
|
), L = V.useCallback(async () => {
|
|
4021
4021
|
if (!a.current) {
|
|
4022
4022
|
for (; !e?.current; )
|
|
4023
4023
|
await new Promise((k) => setTimeout(k, 300));
|
|
4024
|
-
a.current = !0, e.current.onpointerdown =
|
|
4024
|
+
a.current = !0, e.current.onpointerdown = v, e.current.style.touchAction = "none";
|
|
4025
4025
|
}
|
|
4026
|
-
}, [e?.current,
|
|
4026
|
+
}, [e?.current, v]);
|
|
4027
4027
|
V.useEffect(() => {
|
|
4028
4028
|
L();
|
|
4029
4029
|
}, [L]), V.useEffect(() => {
|
|
4030
4030
|
S();
|
|
4031
|
-
}, [
|
|
4032
|
-
l !== s.current && (s.current = l, l ||
|
|
4031
|
+
}, [d]), V.useEffect(() => {
|
|
4032
|
+
l !== s.current && (s.current = l, l || y());
|
|
4033
4033
|
}, [l, s.current]);
|
|
4034
4034
|
}, us = () => {
|
|
4035
|
-
const e = (
|
|
4036
|
-
if (!
|
|
4037
|
-
const
|
|
4038
|
-
for (const
|
|
4039
|
-
const
|
|
4040
|
-
Array.isArray(
|
|
4041
|
-
}
|
|
4042
|
-
const
|
|
4043
|
-
return
|
|
4044
|
-
}, t = async (
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4035
|
+
const e = (u, f) => {
|
|
4036
|
+
if (!f) return u;
|
|
4037
|
+
const v = new URLSearchParams();
|
|
4038
|
+
for (const S in f) {
|
|
4039
|
+
const L = f[S];
|
|
4040
|
+
Array.isArray(L) ? L.forEach((k) => v.append(S, String(k))) : L != null && v.append(S, String(L));
|
|
4041
|
+
}
|
|
4042
|
+
const y = v.toString();
|
|
4043
|
+
return y ? `${u}?${y}` : u;
|
|
4044
|
+
}, t = async (u) => {
|
|
4045
|
+
try {
|
|
4046
|
+
return {
|
|
4047
|
+
result: await u.json(),
|
|
4048
|
+
statusCode: u.status
|
|
4049
|
+
};
|
|
4050
|
+
} catch (f) {
|
|
4051
|
+
return {
|
|
4052
|
+
result: void 0,
|
|
4053
|
+
statusCode: u.status,
|
|
4054
|
+
error: f
|
|
4055
|
+
};
|
|
4056
|
+
}
|
|
4057
|
+
}, r = async (u, f, v, y) => {
|
|
4058
|
+
const S = await fetch(u, {
|
|
4059
|
+
method: f,
|
|
4060
|
+
headers: v,
|
|
4061
|
+
body: y
|
|
4062
|
+
});
|
|
4063
|
+
return t(S);
|
|
4064
|
+
};
|
|
4049
4065
|
return {
|
|
4050
|
-
get: async (
|
|
4051
|
-
const
|
|
4052
|
-
return
|
|
4066
|
+
get: async (u, f, v) => {
|
|
4067
|
+
const y = e(u, f);
|
|
4068
|
+
return r(y, "GET", { ...v });
|
|
4053
4069
|
},
|
|
4054
|
-
post: async (
|
|
4055
|
-
|
|
4070
|
+
post: async (u, f, v) => r(
|
|
4071
|
+
u,
|
|
4056
4072
|
"POST",
|
|
4057
|
-
{ "Content-Type": "application/json", ...
|
|
4058
|
-
JSON.stringify(
|
|
4073
|
+
{ "Content-Type": "application/json", ...v },
|
|
4074
|
+
JSON.stringify(f)
|
|
4059
4075
|
),
|
|
4060
|
-
put: async (
|
|
4061
|
-
|
|
4076
|
+
put: async (u, f, v) => r(
|
|
4077
|
+
u,
|
|
4062
4078
|
"PUT",
|
|
4063
|
-
{ "Content-Type": "application/json", ...
|
|
4064
|
-
JSON.stringify(
|
|
4079
|
+
{ "Content-Type": "application/json", ...v },
|
|
4080
|
+
JSON.stringify(f)
|
|
4065
4081
|
),
|
|
4066
|
-
patch: async (
|
|
4067
|
-
|
|
4082
|
+
patch: async (u, f, v) => r(
|
|
4083
|
+
u,
|
|
4068
4084
|
"PATCH",
|
|
4069
|
-
{ "Content-Type": "application/json", ...
|
|
4070
|
-
JSON.stringify(
|
|
4085
|
+
{ "Content-Type": "application/json", ...v },
|
|
4086
|
+
JSON.stringify(f)
|
|
4071
4087
|
),
|
|
4072
|
-
delete: async (
|
|
4073
|
-
const
|
|
4074
|
-
return
|
|
4088
|
+
delete: async (u, f, v) => {
|
|
4089
|
+
const y = e(u, f);
|
|
4090
|
+
return r(y, "DELETE", { ...v });
|
|
4075
4091
|
}
|
|
4076
4092
|
};
|
|
4077
4093
|
};
|
|
@@ -4107,20 +4123,20 @@ const ua = {
|
|
|
4107
4123
|
const t = window.innerWidth, r = window.innerHeight, i = ca(t, e), a = fa(t, e);
|
|
4108
4124
|
return { currentWidth: t, currentHeight: r, currentBreakpoint: i, currentSize: a };
|
|
4109
4125
|
}, ds = (e) => {
|
|
4110
|
-
const t = e.translations, r = e.language, i = (s,
|
|
4126
|
+
const t = e.translations, r = e.language, i = (s, d) => {
|
|
4111
4127
|
if (!s)
|
|
4112
4128
|
return;
|
|
4113
4129
|
let l = s[r];
|
|
4114
4130
|
if (l)
|
|
4115
|
-
return
|
|
4116
|
-
const
|
|
4117
|
-
l = l.replaceAll(`{{${u}}}`, `${
|
|
4131
|
+
return d && Object.keys(d).forEach((u) => {
|
|
4132
|
+
const f = d[u];
|
|
4133
|
+
l = l.replaceAll(`{{${u}}}`, `${f}`);
|
|
4118
4134
|
}), l;
|
|
4119
4135
|
};
|
|
4120
4136
|
return {
|
|
4121
|
-
t: (s,
|
|
4137
|
+
t: (s, d) => {
|
|
4122
4138
|
if (t[s]) {
|
|
4123
|
-
const l = i(t[s],
|
|
4139
|
+
const l = i(t[s], d);
|
|
4124
4140
|
return l ?? s;
|
|
4125
4141
|
}
|
|
4126
4142
|
return s;
|
|
@@ -4131,17 +4147,17 @@ const ua = {
|
|
|
4131
4147
|
var Ye = {}, Rr;
|
|
4132
4148
|
function da() {
|
|
4133
4149
|
if (Rr) return Ye;
|
|
4134
|
-
Rr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.parse =
|
|
4150
|
+
Rr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.parse = d, Ye.serialize = f;
|
|
4135
4151
|
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, i = /^[\u0020-\u003A\u003D-\u007E]*$/, a = Object.prototype.toString, s = /* @__PURE__ */ (() => {
|
|
4136
4152
|
const S = function() {
|
|
4137
4153
|
};
|
|
4138
4154
|
return S.prototype = /* @__PURE__ */ Object.create(null), S;
|
|
4139
4155
|
})();
|
|
4140
|
-
function
|
|
4156
|
+
function d(S, L) {
|
|
4141
4157
|
const k = new s(), p = S.length;
|
|
4142
4158
|
if (p < 2)
|
|
4143
4159
|
return k;
|
|
4144
|
-
const I = L?.decode ||
|
|
4160
|
+
const I = L?.decode || v;
|
|
4145
4161
|
let C = 0;
|
|
4146
4162
|
do {
|
|
4147
4163
|
const F = S.indexOf("=", C);
|
|
@@ -4152,10 +4168,10 @@ function da() {
|
|
|
4152
4168
|
C = S.lastIndexOf(";", F - 1) + 1;
|
|
4153
4169
|
continue;
|
|
4154
4170
|
}
|
|
4155
|
-
const
|
|
4171
|
+
const g = l(S, C, F), w = u(S, F, g), x = S.slice(g, w);
|
|
4156
4172
|
if (k[x] === void 0) {
|
|
4157
|
-
let R = l(S, F + 1, q),
|
|
4158
|
-
const h = I(S.slice(R,
|
|
4173
|
+
let R = l(S, F + 1, q), b = u(S, q, R);
|
|
4174
|
+
const h = I(S.slice(R, b));
|
|
4159
4175
|
k[x] = h;
|
|
4160
4176
|
}
|
|
4161
4177
|
C = q + 1;
|
|
@@ -4178,7 +4194,7 @@ function da() {
|
|
|
4178
4194
|
}
|
|
4179
4195
|
return k;
|
|
4180
4196
|
}
|
|
4181
|
-
function
|
|
4197
|
+
function f(S, L, k) {
|
|
4182
4198
|
const p = k?.encode || encodeURIComponent;
|
|
4183
4199
|
if (!e.test(S))
|
|
4184
4200
|
throw new TypeError(`argument name is invalid: ${S}`);
|
|
@@ -4204,7 +4220,7 @@ function da() {
|
|
|
4204
4220
|
C += "; Path=" + k.path;
|
|
4205
4221
|
}
|
|
4206
4222
|
if (k.expires) {
|
|
4207
|
-
if (!
|
|
4223
|
+
if (!y(k.expires) || !Number.isFinite(k.expires.valueOf()))
|
|
4208
4224
|
throw new TypeError(`option expires is invalid: ${k.expires}`);
|
|
4209
4225
|
C += "; Expires=" + k.expires.toUTCString();
|
|
4210
4226
|
}
|
|
@@ -4239,7 +4255,7 @@ function da() {
|
|
|
4239
4255
|
}
|
|
4240
4256
|
return C;
|
|
4241
4257
|
}
|
|
4242
|
-
function
|
|
4258
|
+
function v(S) {
|
|
4243
4259
|
if (S.indexOf("%") === -1)
|
|
4244
4260
|
return S;
|
|
4245
4261
|
try {
|
|
@@ -4248,7 +4264,7 @@ function da() {
|
|
|
4248
4264
|
return S;
|
|
4249
4265
|
}
|
|
4250
4266
|
}
|
|
4251
|
-
function
|
|
4267
|
+
function y(S) {
|
|
4252
4268
|
return a.call(S) === "[object Date]";
|
|
4253
4269
|
}
|
|
4254
4270
|
return Ye;
|
|
@@ -4267,10 +4283,10 @@ da();
|
|
|
4267
4283
|
var _r = "popstate";
|
|
4268
4284
|
function ha(e = {}) {
|
|
4269
4285
|
function t(i, a) {
|
|
4270
|
-
let { pathname: s, search:
|
|
4286
|
+
let { pathname: s, search: d, hash: l } = i.location;
|
|
4271
4287
|
return Ft(
|
|
4272
4288
|
"",
|
|
4273
|
-
{ pathname: s, search:
|
|
4289
|
+
{ pathname: s, search: d, hash: l },
|
|
4274
4290
|
// state defaults to `null` because `window.history.state` does
|
|
4275
4291
|
a.state && a.state.usr || null,
|
|
4276
4292
|
a.state && a.state.key || "default"
|
|
@@ -4341,26 +4357,26 @@ function Me(e) {
|
|
|
4341
4357
|
return t;
|
|
4342
4358
|
}
|
|
4343
4359
|
function ma(e, t, r, i = {}) {
|
|
4344
|
-
let { window: a = document.defaultView, v5Compat: s = !1 } = i,
|
|
4345
|
-
|
|
4346
|
-
function
|
|
4347
|
-
return (
|
|
4360
|
+
let { window: a = document.defaultView, v5Compat: s = !1 } = i, d = a.history, l = "POP", u = null, f = v();
|
|
4361
|
+
f == null && (f = 0, d.replaceState({ ...d.state, idx: f }, ""));
|
|
4362
|
+
function v() {
|
|
4363
|
+
return (d.state || { idx: null }).idx;
|
|
4348
4364
|
}
|
|
4349
|
-
function
|
|
4365
|
+
function y() {
|
|
4350
4366
|
l = "POP";
|
|
4351
|
-
let I =
|
|
4352
|
-
|
|
4367
|
+
let I = v(), C = I == null ? null : I - f;
|
|
4368
|
+
f = I, u && u({ action: l, location: p.location, delta: C });
|
|
4353
4369
|
}
|
|
4354
4370
|
function S(I, C) {
|
|
4355
4371
|
l = "PUSH";
|
|
4356
4372
|
let F = Ft(p.location, I, C);
|
|
4357
|
-
|
|
4358
|
-
let U = Tr(F,
|
|
4373
|
+
f = v() + 1;
|
|
4374
|
+
let U = Tr(F, f), q = p.createHref(F);
|
|
4359
4375
|
try {
|
|
4360
|
-
|
|
4361
|
-
} catch (
|
|
4362
|
-
if (
|
|
4363
|
-
throw
|
|
4376
|
+
d.pushState(U, "", q);
|
|
4377
|
+
} catch (g) {
|
|
4378
|
+
if (g instanceof DOMException && g.name === "DataCloneError")
|
|
4379
|
+
throw g;
|
|
4364
4380
|
a.location.assign(q);
|
|
4365
4381
|
}
|
|
4366
4382
|
s && u && u({ action: l, location: p.location, delta: 1 });
|
|
@@ -4368,9 +4384,9 @@ function ma(e, t, r, i = {}) {
|
|
|
4368
4384
|
function L(I, C) {
|
|
4369
4385
|
l = "REPLACE";
|
|
4370
4386
|
let F = Ft(p.location, I, C);
|
|
4371
|
-
|
|
4372
|
-
let U = Tr(F,
|
|
4373
|
-
|
|
4387
|
+
f = v();
|
|
4388
|
+
let U = Tr(F, f), q = p.createHref(F);
|
|
4389
|
+
d.replaceState(U, "", q), s && u && u({ action: l, location: p.location, delta: 0 });
|
|
4374
4390
|
}
|
|
4375
4391
|
function k(I) {
|
|
4376
4392
|
return va(I);
|
|
@@ -4380,13 +4396,13 @@ function ma(e, t, r, i = {}) {
|
|
|
4380
4396
|
return l;
|
|
4381
4397
|
},
|
|
4382
4398
|
get location() {
|
|
4383
|
-
return e(a,
|
|
4399
|
+
return e(a, d);
|
|
4384
4400
|
},
|
|
4385
4401
|
listen(I) {
|
|
4386
4402
|
if (u)
|
|
4387
4403
|
throw new Error("A history only accepts one active listener");
|
|
4388
|
-
return a.addEventListener(_r,
|
|
4389
|
-
a.removeEventListener(_r,
|
|
4404
|
+
return a.addEventListener(_r, y), u = I, () => {
|
|
4405
|
+
a.removeEventListener(_r, y), u = null;
|
|
4390
4406
|
};
|
|
4391
4407
|
},
|
|
4392
4408
|
createHref(I) {
|
|
@@ -4404,7 +4420,7 @@ function ma(e, t, r, i = {}) {
|
|
|
4404
4420
|
push: S,
|
|
4405
4421
|
replace: L,
|
|
4406
4422
|
go(I) {
|
|
4407
|
-
return
|
|
4423
|
+
return d.go(I);
|
|
4408
4424
|
}
|
|
4409
4425
|
};
|
|
4410
4426
|
return p;
|
|
@@ -4422,49 +4438,49 @@ function ga(e, t, r, i) {
|
|
|
4422
4438
|
let a = typeof t == "string" ? Me(t) : t, s = Oe(a.pathname || "/", r);
|
|
4423
4439
|
if (s == null)
|
|
4424
4440
|
return null;
|
|
4425
|
-
let
|
|
4426
|
-
ya(
|
|
4441
|
+
let d = nn(e);
|
|
4442
|
+
ya(d);
|
|
4427
4443
|
let l = null;
|
|
4428
|
-
for (let u = 0; l == null && u <
|
|
4429
|
-
let
|
|
4444
|
+
for (let u = 0; l == null && u < d.length; ++u) {
|
|
4445
|
+
let f = _a(s);
|
|
4430
4446
|
l = Ea(
|
|
4431
|
-
|
|
4432
|
-
|
|
4447
|
+
d[u],
|
|
4448
|
+
f,
|
|
4433
4449
|
i
|
|
4434
4450
|
);
|
|
4435
4451
|
}
|
|
4436
4452
|
return l;
|
|
4437
4453
|
}
|
|
4438
4454
|
function nn(e, t = [], r = [], i = "") {
|
|
4439
|
-
let a = (s,
|
|
4455
|
+
let a = (s, d, l) => {
|
|
4440
4456
|
let u = {
|
|
4441
4457
|
relativePath: l === void 0 ? s.path || "" : l,
|
|
4442
4458
|
caseSensitive: s.caseSensitive === !0,
|
|
4443
|
-
childrenIndex:
|
|
4459
|
+
childrenIndex: d,
|
|
4444
4460
|
route: s
|
|
4445
4461
|
};
|
|
4446
4462
|
u.relativePath.startsWith("/") && (ae(
|
|
4447
4463
|
u.relativePath.startsWith(i),
|
|
4448
4464
|
`Absolute route path "${u.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
4449
4465
|
), u.relativePath = u.relativePath.slice(i.length));
|
|
4450
|
-
let
|
|
4466
|
+
let f = xe([i, u.relativePath]), v = r.concat(u);
|
|
4451
4467
|
s.children && s.children.length > 0 && (ae(
|
|
4452
4468
|
// Our types know better, but runtime JS may not!
|
|
4453
4469
|
// @ts-expect-error
|
|
4454
4470
|
s.index !== !0,
|
|
4455
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${
|
|
4456
|
-
), nn(s.children, t,
|
|
4457
|
-
path:
|
|
4458
|
-
score: Ca(
|
|
4459
|
-
routesMeta:
|
|
4471
|
+
`Index routes must not have child routes. Please remove all child routes from route path "${f}".`
|
|
4472
|
+
), nn(s.children, t, v, f)), !(s.path == null && !s.index) && t.push({
|
|
4473
|
+
path: f,
|
|
4474
|
+
score: Ca(f, s.index),
|
|
4475
|
+
routesMeta: v
|
|
4460
4476
|
});
|
|
4461
4477
|
};
|
|
4462
|
-
return e.forEach((s,
|
|
4478
|
+
return e.forEach((s, d) => {
|
|
4463
4479
|
if (s.path === "" || !s.path?.includes("?"))
|
|
4464
|
-
a(s,
|
|
4480
|
+
a(s, d);
|
|
4465
4481
|
else
|
|
4466
4482
|
for (let l of an(s.path))
|
|
4467
|
-
a(s,
|
|
4483
|
+
a(s, d, l);
|
|
4468
4484
|
}), t;
|
|
4469
4485
|
}
|
|
4470
4486
|
function an(e) {
|
|
@@ -4473,12 +4489,12 @@ function an(e) {
|
|
|
4473
4489
|
let [r, ...i] = t, a = r.endsWith("?"), s = r.replace(/\?$/, "");
|
|
4474
4490
|
if (i.length === 0)
|
|
4475
4491
|
return a ? [s, ""] : [s];
|
|
4476
|
-
let
|
|
4492
|
+
let d = an(i.join("/")), l = [];
|
|
4477
4493
|
return l.push(
|
|
4478
|
-
...
|
|
4494
|
+
...d.map(
|
|
4479
4495
|
(u) => u === "" ? s : [s, u].join("/")
|
|
4480
4496
|
)
|
|
4481
|
-
), a && l.push(...
|
|
4497
|
+
), a && l.push(...d), l.map(
|
|
4482
4498
|
(u) => e.startsWith("/") && u === "" ? "/" : u
|
|
4483
4499
|
);
|
|
4484
4500
|
}
|
|
@@ -4512,32 +4528,32 @@ function Pa(e, t) {
|
|
|
4512
4528
|
);
|
|
4513
4529
|
}
|
|
4514
4530
|
function Ea(e, t, r = !1) {
|
|
4515
|
-
let { routesMeta: i } = e, a = {}, s = "/",
|
|
4531
|
+
let { routesMeta: i } = e, a = {}, s = "/", d = [];
|
|
4516
4532
|
for (let l = 0; l < i.length; ++l) {
|
|
4517
|
-
let u = i[l],
|
|
4518
|
-
{ path: u.relativePath, caseSensitive: u.caseSensitive, end:
|
|
4519
|
-
|
|
4533
|
+
let u = i[l], f = l === i.length - 1, v = s === "/" ? t : t.slice(s.length) || "/", y = gt(
|
|
4534
|
+
{ path: u.relativePath, caseSensitive: u.caseSensitive, end: f },
|
|
4535
|
+
v
|
|
4520
4536
|
), S = u.route;
|
|
4521
|
-
if (!
|
|
4537
|
+
if (!y && f && r && !i[i.length - 1].route.index && (y = gt(
|
|
4522
4538
|
{
|
|
4523
4539
|
path: u.relativePath,
|
|
4524
4540
|
caseSensitive: u.caseSensitive,
|
|
4525
4541
|
end: !1
|
|
4526
4542
|
},
|
|
4527
|
-
|
|
4528
|
-
)), !
|
|
4543
|
+
v
|
|
4544
|
+
)), !y)
|
|
4529
4545
|
return null;
|
|
4530
|
-
Object.assign(a,
|
|
4546
|
+
Object.assign(a, y.params), d.push({
|
|
4531
4547
|
// TODO: Can this as be avoided?
|
|
4532
4548
|
params: a,
|
|
4533
|
-
pathname: xe([s,
|
|
4549
|
+
pathname: xe([s, y.pathname]),
|
|
4534
4550
|
pathnameBase: Da(
|
|
4535
|
-
xe([s,
|
|
4551
|
+
xe([s, y.pathnameBase])
|
|
4536
4552
|
),
|
|
4537
4553
|
route: S
|
|
4538
|
-
}),
|
|
4554
|
+
}), y.pathnameBase !== "/" && (s = xe([s, y.pathnameBase]));
|
|
4539
4555
|
}
|
|
4540
|
-
return
|
|
4556
|
+
return d;
|
|
4541
4557
|
}
|
|
4542
4558
|
function gt(e, t) {
|
|
4543
4559
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
@@ -4547,21 +4563,21 @@ function gt(e, t) {
|
|
|
4547
4563
|
e.end
|
|
4548
4564
|
), a = t.match(r);
|
|
4549
4565
|
if (!a) return null;
|
|
4550
|
-
let s = a[0],
|
|
4566
|
+
let s = a[0], d = s.replace(/(.)\/+$/, "$1"), l = a.slice(1);
|
|
4551
4567
|
return {
|
|
4552
4568
|
params: i.reduce(
|
|
4553
|
-
(
|
|
4554
|
-
if (
|
|
4569
|
+
(f, { paramName: v, isOptional: y }, S) => {
|
|
4570
|
+
if (v === "*") {
|
|
4555
4571
|
let k = l[S] || "";
|
|
4556
|
-
|
|
4572
|
+
d = s.slice(0, s.length - k.length).replace(/(.)\/+$/, "$1");
|
|
4557
4573
|
}
|
|
4558
4574
|
const L = l[S];
|
|
4559
|
-
return
|
|
4575
|
+
return y && !L ? f[v] = void 0 : f[v] = (L || "").replace(/%2F/g, "/"), f;
|
|
4560
4576
|
},
|
|
4561
4577
|
{}
|
|
4562
4578
|
),
|
|
4563
4579
|
pathname: s,
|
|
4564
|
-
pathnameBase:
|
|
4580
|
+
pathnameBase: d,
|
|
4565
4581
|
pattern: e
|
|
4566
4582
|
};
|
|
4567
4583
|
}
|
|
@@ -4572,7 +4588,7 @@ function Ra(e, t = !1, r = !0) {
|
|
|
4572
4588
|
);
|
|
4573
4589
|
let i = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
4574
4590
|
/\/:([\w-]+)(\?)?/g,
|
|
4575
|
-
(
|
|
4591
|
+
(d, l, u) => (i.push({ paramName: l, isOptional: u != null }), u ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
4576
4592
|
);
|
|
4577
4593
|
return e.endsWith("*") ? (i.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, t ? void 0 : "i"), i];
|
|
4578
4594
|
}
|
|
@@ -4639,21 +4655,21 @@ function sn(e, t, r, i = !1) {
|
|
|
4639
4655
|
!a.search || !a.search.includes("#"),
|
|
4640
4656
|
$t("#", "search", "hash", a)
|
|
4641
4657
|
));
|
|
4642
|
-
let s = e === "" || a.pathname === "",
|
|
4643
|
-
if (
|
|
4658
|
+
let s = e === "" || a.pathname === "", d = s ? "/" : a.pathname, l;
|
|
4659
|
+
if (d == null)
|
|
4644
4660
|
l = r;
|
|
4645
4661
|
else {
|
|
4646
|
-
let
|
|
4647
|
-
if (!i &&
|
|
4648
|
-
let S =
|
|
4662
|
+
let y = t.length - 1;
|
|
4663
|
+
if (!i && d.startsWith("..")) {
|
|
4664
|
+
let S = d.split("/");
|
|
4649
4665
|
for (; S[0] === ".."; )
|
|
4650
|
-
S.shift(),
|
|
4666
|
+
S.shift(), y -= 1;
|
|
4651
4667
|
a.pathname = S.join("/");
|
|
4652
4668
|
}
|
|
4653
|
-
l =
|
|
4669
|
+
l = y >= 0 ? t[y] : "/";
|
|
4654
4670
|
}
|
|
4655
|
-
let u = Ta(a, l),
|
|
4656
|
-
return !u.pathname.endsWith("/") && (
|
|
4671
|
+
let u = Ta(a, l), f = d && d !== "/" && d.endsWith("/"), v = (s || d === ".") && r.endsWith("/");
|
|
4672
|
+
return !u.pathname.endsWith("/") && (f || v) && (u.pathname += "/"), u;
|
|
4657
4673
|
}
|
|
4658
4674
|
var xe = (e) => e.join("/").replace(/\/\/+/g, "/"), Da = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ma = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, $a = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
4659
4675
|
function Ia(e) {
|
|
@@ -4710,8 +4726,8 @@ function Na(e, { relative: t } = {}) {
|
|
|
4710
4726
|
// router loaded. We can help them understand how to avoid that.
|
|
4711
4727
|
"useHref() may be used only in the context of a <Router> component."
|
|
4712
4728
|
);
|
|
4713
|
-
let { basename: r, navigator: i } = M.useContext(Se), { hash: a, pathname: s, search:
|
|
4714
|
-
return r !== "/" && (l = s === "/" ? r : xe([r, s])), i.createHref({ pathname: l, search:
|
|
4729
|
+
let { basename: r, navigator: i } = M.useContext(Se), { hash: a, pathname: s, search: d } = et(e, { relative: t }), l = s;
|
|
4730
|
+
return r !== "/" && (l = s === "/" ? r : xe([r, s])), i.createHref({ pathname: l, search: d, hash: a });
|
|
4715
4731
|
}
|
|
4716
4732
|
function Qe() {
|
|
4717
4733
|
return M.useContext(Ze) != null;
|
|
@@ -4739,26 +4755,26 @@ function Fa() {
|
|
|
4739
4755
|
// router loaded. We can help them understand how to avoid that.
|
|
4740
4756
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
4741
4757
|
);
|
|
4742
|
-
let e = M.useContext($e), { basename: t, navigator: r } = M.useContext(Se), { matches: i } = M.useContext(ke), { pathname: a } = Ce(), s = JSON.stringify(on(i)),
|
|
4758
|
+
let e = M.useContext($e), { basename: t, navigator: r } = M.useContext(Se), { matches: i } = M.useContext(ke), { pathname: a } = Ce(), s = JSON.stringify(on(i)), d = M.useRef(!1);
|
|
4743
4759
|
return fn(() => {
|
|
4744
|
-
|
|
4760
|
+
d.current = !0;
|
|
4745
4761
|
}), M.useCallback(
|
|
4746
|
-
(u,
|
|
4747
|
-
if (ge(
|
|
4762
|
+
(u, f = {}) => {
|
|
4763
|
+
if (ge(d.current, cn), !d.current) return;
|
|
4748
4764
|
if (typeof u == "number") {
|
|
4749
4765
|
r.go(u);
|
|
4750
4766
|
return;
|
|
4751
4767
|
}
|
|
4752
|
-
let
|
|
4768
|
+
let v = sn(
|
|
4753
4769
|
u,
|
|
4754
4770
|
JSON.parse(s),
|
|
4755
4771
|
a,
|
|
4756
|
-
|
|
4772
|
+
f.relative === "path"
|
|
4757
4773
|
);
|
|
4758
|
-
e == null && t !== "/" && (
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4774
|
+
e == null && t !== "/" && (v.pathname = v.pathname === "/" ? t : xe([t, v.pathname])), (f.replace ? r.replace : r.push)(
|
|
4775
|
+
v,
|
|
4776
|
+
f.state,
|
|
4777
|
+
f
|
|
4762
4778
|
);
|
|
4763
4779
|
},
|
|
4764
4780
|
[
|
|
@@ -4793,34 +4809,34 @@ function dn(e, t, r, i) {
|
|
|
4793
4809
|
// router loaded. We can help them understand how to avoid that.
|
|
4794
4810
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
4795
4811
|
);
|
|
4796
|
-
let { navigator: a } = M.useContext(Se), { matches: s } = M.useContext(ke),
|
|
4812
|
+
let { navigator: a } = M.useContext(Se), { matches: s } = M.useContext(ke), d = s[s.length - 1], l = d ? d.params : {}, u = d ? d.pathname : "/", f = d ? d.pathnameBase : "/", v = d && d.route;
|
|
4797
4813
|
{
|
|
4798
|
-
let C =
|
|
4814
|
+
let C = v && v.path || "";
|
|
4799
4815
|
hn(
|
|
4800
4816
|
u,
|
|
4801
|
-
!
|
|
4817
|
+
!v || C.endsWith("*") || C.endsWith("*?"),
|
|
4802
4818
|
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
4803
4819
|
|
|
4804
4820
|
Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" : `${C}/*`}">.`
|
|
4805
4821
|
);
|
|
4806
4822
|
}
|
|
4807
|
-
let
|
|
4823
|
+
let y = Ce(), S;
|
|
4808
4824
|
if (t) {
|
|
4809
4825
|
let C = typeof t == "string" ? Me(t) : t;
|
|
4810
4826
|
ae(
|
|
4811
|
-
|
|
4812
|
-
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${
|
|
4827
|
+
f === "/" || C.pathname?.startsWith(f),
|
|
4828
|
+
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${C.pathname}" was given in the \`location\` prop.`
|
|
4813
4829
|
), S = C;
|
|
4814
4830
|
} else
|
|
4815
|
-
S =
|
|
4831
|
+
S = y;
|
|
4816
4832
|
let L = S.pathname || "/", k = L;
|
|
4817
|
-
if (
|
|
4818
|
-
let C =
|
|
4833
|
+
if (f !== "/") {
|
|
4834
|
+
let C = f.replace(/^\//, "").split("/");
|
|
4819
4835
|
k = "/" + L.replace(/^\//, "").split("/").slice(C.length).join("/");
|
|
4820
4836
|
}
|
|
4821
4837
|
let p = rn(e, { pathname: k });
|
|
4822
4838
|
ge(
|
|
4823
|
-
|
|
4839
|
+
v || p != null,
|
|
4824
4840
|
`No routes matched location "${S.pathname}${S.search}${S.hash}" `
|
|
4825
4841
|
), ge(
|
|
4826
4842
|
p == null || p[p.length - 1].route.element !== void 0 || p[p.length - 1].route.Component !== void 0 || p[p.length - 1].route.lazy !== void 0,
|
|
@@ -4831,12 +4847,12 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4831
4847
|
(C) => Object.assign({}, C, {
|
|
4832
4848
|
params: Object.assign({}, l, C.params),
|
|
4833
4849
|
pathname: xe([
|
|
4834
|
-
|
|
4850
|
+
f,
|
|
4835
4851
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
4836
4852
|
a.encodeLocation ? a.encodeLocation(C.pathname).pathname : C.pathname
|
|
4837
4853
|
]),
|
|
4838
|
-
pathnameBase: C.pathnameBase === "/" ?
|
|
4839
|
-
|
|
4854
|
+
pathnameBase: C.pathnameBase === "/" ? f : xe([
|
|
4855
|
+
f,
|
|
4840
4856
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
4841
4857
|
a.encodeLocation ? a.encodeLocation(C.pathnameBase).pathname : C.pathnameBase
|
|
4842
4858
|
])
|
|
@@ -4866,11 +4882,11 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4866
4882
|
) : I;
|
|
4867
4883
|
}
|
|
4868
4884
|
function Ua() {
|
|
4869
|
-
let e = Za(), t = Ia(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, i = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: i }, s = { padding: "2px 4px", backgroundColor: i },
|
|
4885
|
+
let e = Za(), t = Ia(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, i = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: i }, s = { padding: "2px 4px", backgroundColor: i }, d = null;
|
|
4870
4886
|
return console.error(
|
|
4871
4887
|
"Error handled by React Router default ErrorBoundary:",
|
|
4872
4888
|
e
|
|
4873
|
-
),
|
|
4889
|
+
), d = /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ M.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ M.createElement("code", { style: s }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ M.createElement("code", { style: s }, "errorElement"), " prop on your route.")), /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ M.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ M.createElement("pre", { style: a }, r) : null, d);
|
|
4874
4890
|
}
|
|
4875
4891
|
var Ya = /* @__PURE__ */ M.createElement(Ua, null), Va = class extends M.Component {
|
|
4876
4892
|
constructor(e) {
|
|
@@ -4929,7 +4945,7 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4929
4945
|
let a = e, s = r?.errors;
|
|
4930
4946
|
if (s != null) {
|
|
4931
4947
|
let u = a.findIndex(
|
|
4932
|
-
(
|
|
4948
|
+
(f) => f.route.id && s?.[f.route.id] !== void 0
|
|
4933
4949
|
);
|
|
4934
4950
|
ae(
|
|
4935
4951
|
u >= 0,
|
|
@@ -4941,31 +4957,31 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4941
4957
|
Math.min(a.length, u + 1)
|
|
4942
4958
|
);
|
|
4943
4959
|
}
|
|
4944
|
-
let
|
|
4960
|
+
let d = !1, l = -1;
|
|
4945
4961
|
if (r)
|
|
4946
4962
|
for (let u = 0; u < a.length; u++) {
|
|
4947
|
-
let
|
|
4948
|
-
if ((
|
|
4949
|
-
let { loaderData:
|
|
4950
|
-
if (
|
|
4951
|
-
|
|
4963
|
+
let f = a[u];
|
|
4964
|
+
if ((f.route.HydrateFallback || f.route.hydrateFallbackElement) && (l = u), f.route.id) {
|
|
4965
|
+
let { loaderData: v, errors: y } = r, S = f.route.loader && !v.hasOwnProperty(f.route.id) && (!y || y[f.route.id] === void 0);
|
|
4966
|
+
if (f.route.lazy || S) {
|
|
4967
|
+
d = !0, l >= 0 ? a = a.slice(0, l + 1) : a = [a[0]];
|
|
4952
4968
|
break;
|
|
4953
4969
|
}
|
|
4954
4970
|
}
|
|
4955
4971
|
}
|
|
4956
|
-
return a.reduceRight((u,
|
|
4957
|
-
let
|
|
4958
|
-
r && (
|
|
4972
|
+
return a.reduceRight((u, f, v) => {
|
|
4973
|
+
let y, S = !1, L = null, k = null;
|
|
4974
|
+
r && (y = s && f.route.id ? s[f.route.id] : void 0, L = f.route.errorElement || Ya, d && (l < 0 && v === 0 ? (hn(
|
|
4959
4975
|
"route-fallback",
|
|
4960
4976
|
!1,
|
|
4961
4977
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
4962
|
-
), S = !0, k = null) : l ===
|
|
4963
|
-
let p = t.concat(a.slice(0,
|
|
4978
|
+
), S = !0, k = null) : l === v && (S = !0, k = f.route.hydrateFallbackElement || null)));
|
|
4979
|
+
let p = t.concat(a.slice(0, v + 1)), I = () => {
|
|
4964
4980
|
let C;
|
|
4965
|
-
return
|
|
4981
|
+
return y ? C = L : S ? C = k : f.route.Component ? C = /* @__PURE__ */ M.createElement(f.route.Component, null) : f.route.element ? C = f.route.element : C = u, /* @__PURE__ */ M.createElement(
|
|
4966
4982
|
qa,
|
|
4967
4983
|
{
|
|
4968
|
-
match:
|
|
4984
|
+
match: f,
|
|
4969
4985
|
routeContext: {
|
|
4970
4986
|
outlet: u,
|
|
4971
4987
|
matches: p,
|
|
@@ -4975,13 +4991,13 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4975
4991
|
}
|
|
4976
4992
|
);
|
|
4977
4993
|
};
|
|
4978
|
-
return r && (
|
|
4994
|
+
return r && (f.route.ErrorBoundary || f.route.errorElement || v === 0) ? /* @__PURE__ */ M.createElement(
|
|
4979
4995
|
Va,
|
|
4980
4996
|
{
|
|
4981
4997
|
location: r.location,
|
|
4982
4998
|
revalidation: r.revalidation,
|
|
4983
4999
|
component: L,
|
|
4984
|
-
error:
|
|
5000
|
+
error: y,
|
|
4985
5001
|
children: I(),
|
|
4986
5002
|
routeContext: { outlet: null, matches: p, isDataRoute: !0 }
|
|
4987
5003
|
}
|
|
@@ -5073,38 +5089,38 @@ function to({
|
|
|
5073
5089
|
!Qe(),
|
|
5074
5090
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
5075
5091
|
);
|
|
5076
|
-
let
|
|
5092
|
+
let d = e.replace(/^\/*/, "/"), l = M.useMemo(
|
|
5077
5093
|
() => ({
|
|
5078
|
-
basename:
|
|
5094
|
+
basename: d,
|
|
5079
5095
|
navigator: a,
|
|
5080
5096
|
static: s,
|
|
5081
5097
|
future: {}
|
|
5082
5098
|
}),
|
|
5083
|
-
[
|
|
5099
|
+
[d, a, s]
|
|
5084
5100
|
);
|
|
5085
5101
|
typeof r == "string" && (r = Me(r));
|
|
5086
5102
|
let {
|
|
5087
5103
|
pathname: u = "/",
|
|
5088
|
-
search:
|
|
5089
|
-
hash:
|
|
5090
|
-
state:
|
|
5104
|
+
search: f = "",
|
|
5105
|
+
hash: v = "",
|
|
5106
|
+
state: y = null,
|
|
5091
5107
|
key: S = "default"
|
|
5092
5108
|
} = r, L = M.useMemo(() => {
|
|
5093
|
-
let k = Oe(u,
|
|
5109
|
+
let k = Oe(u, d);
|
|
5094
5110
|
return k == null ? null : {
|
|
5095
5111
|
location: {
|
|
5096
5112
|
pathname: k,
|
|
5097
|
-
search:
|
|
5098
|
-
hash:
|
|
5099
|
-
state:
|
|
5113
|
+
search: f,
|
|
5114
|
+
hash: v,
|
|
5115
|
+
state: y,
|
|
5100
5116
|
key: S
|
|
5101
5117
|
},
|
|
5102
5118
|
navigationType: i
|
|
5103
5119
|
};
|
|
5104
|
-
}, [
|
|
5120
|
+
}, [d, u, f, v, y, S, i]);
|
|
5105
5121
|
return ge(
|
|
5106
5122
|
L != null,
|
|
5107
|
-
`<Router basename="${
|
|
5123
|
+
`<Router basename="${d}"> is not able to match the URL "${u}${f}${v}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
5108
5124
|
), L == null ? null : /* @__PURE__ */ M.createElement(Se.Provider, { value: l }, /* @__PURE__ */ M.createElement(Ze.Provider, { children: t, value: L }));
|
|
5109
5125
|
}
|
|
5110
5126
|
function ro({
|
|
@@ -5133,7 +5149,7 @@ function Wt(e, t = []) {
|
|
|
5133
5149
|
!i.props.index || !i.props.children,
|
|
5134
5150
|
"An index route cannot have child routes."
|
|
5135
5151
|
);
|
|
5136
|
-
let
|
|
5152
|
+
let d = {
|
|
5137
5153
|
id: i.props.id || s.join("-"),
|
|
5138
5154
|
caseSensitive: i.props.caseSensitive,
|
|
5139
5155
|
element: i.props.element,
|
|
@@ -5151,10 +5167,10 @@ function Wt(e, t = []) {
|
|
|
5151
5167
|
handle: i.props.handle,
|
|
5152
5168
|
lazy: i.props.lazy
|
|
5153
5169
|
};
|
|
5154
|
-
i.props.children && (
|
|
5170
|
+
i.props.children && (d.children = Wt(
|
|
5155
5171
|
i.props.children,
|
|
5156
5172
|
s
|
|
5157
|
-
)), r.push(
|
|
5173
|
+
)), r.push(d);
|
|
5158
5174
|
}), r;
|
|
5159
5175
|
}
|
|
5160
5176
|
var ut = "get", ct = "application/x-www-form-urlencoded";
|
|
@@ -5222,7 +5238,7 @@ function It(e) {
|
|
|
5222
5238
|
), null) : e;
|
|
5223
5239
|
}
|
|
5224
5240
|
function fo(e, t) {
|
|
5225
|
-
let r, i, a, s,
|
|
5241
|
+
let r, i, a, s, d;
|
|
5226
5242
|
if (io(e)) {
|
|
5227
5243
|
let l = e.getAttribute("action");
|
|
5228
5244
|
i = l ? Oe(l, t) : null, r = e.getAttribute("method") || ut, a = It(e.getAttribute("enctype")) || ct, s = new FormData(e);
|
|
@@ -5234,20 +5250,20 @@ function fo(e, t) {
|
|
|
5234
5250
|
);
|
|
5235
5251
|
let u = e.getAttribute("formaction") || l.getAttribute("action");
|
|
5236
5252
|
if (i = u ? Oe(u, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || ut, a = It(e.getAttribute("formenctype")) || It(l.getAttribute("enctype")) || ct, s = new FormData(l, e), !uo()) {
|
|
5237
|
-
let { name:
|
|
5238
|
-
if (
|
|
5239
|
-
let S =
|
|
5253
|
+
let { name: f, type: v, value: y } = e;
|
|
5254
|
+
if (v === "image") {
|
|
5255
|
+
let S = f ? `${f}.` : "";
|
|
5240
5256
|
s.append(`${S}x`, "0"), s.append(`${S}y`, "0");
|
|
5241
|
-
} else
|
|
5257
|
+
} else f && s.append(f, y);
|
|
5242
5258
|
}
|
|
5243
5259
|
} else {
|
|
5244
5260
|
if (kt(e))
|
|
5245
5261
|
throw new Error(
|
|
5246
5262
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
5247
5263
|
);
|
|
5248
|
-
r = ut, i = null, a = ct,
|
|
5264
|
+
r = ut, i = null, a = ct, d = e;
|
|
5249
5265
|
}
|
|
5250
|
-
return s && a === "text/plain" && (
|
|
5266
|
+
return s && a === "text/plain" && (d = s, s = void 0), { action: i, method: r.toLowerCase(), encType: a, formData: s, body: d };
|
|
5251
5267
|
}
|
|
5252
5268
|
function Qt(e, t) {
|
|
5253
5269
|
if (e === !1 || e === null || typeof e > "u")
|
|
@@ -5278,8 +5294,8 @@ async function mo(e, t, r) {
|
|
|
5278
5294
|
e.map(async (a) => {
|
|
5279
5295
|
let s = t.routes[a.route.id];
|
|
5280
5296
|
if (s) {
|
|
5281
|
-
let
|
|
5282
|
-
return
|
|
5297
|
+
let d = await ho(s, r);
|
|
5298
|
+
return d.links ? d.links() : [];
|
|
5283
5299
|
}
|
|
5284
5300
|
return [];
|
|
5285
5301
|
})
|
|
@@ -5291,22 +5307,22 @@ async function mo(e, t, r) {
|
|
|
5291
5307
|
);
|
|
5292
5308
|
}
|
|
5293
5309
|
function Dr(e, t, r, i, a, s) {
|
|
5294
|
-
let
|
|
5310
|
+
let d = (u, f) => r[f] ? u.route.id !== r[f].route.id : !0, l = (u, f) => (
|
|
5295
5311
|
// param change, /users/123 -> /users/456
|
|
5296
|
-
r[
|
|
5312
|
+
r[f].pathname !== u.pathname || // splat param changed, which is not present in match.path
|
|
5297
5313
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
5298
|
-
r[
|
|
5314
|
+
r[f].route.path?.endsWith("*") && r[f].params["*"] !== u.params["*"]
|
|
5299
5315
|
);
|
|
5300
5316
|
return s === "assets" ? t.filter(
|
|
5301
|
-
(u,
|
|
5302
|
-
) : s === "data" ? t.filter((u,
|
|
5303
|
-
let
|
|
5304
|
-
if (!
|
|
5317
|
+
(u, f) => d(u, f) || l(u, f)
|
|
5318
|
+
) : s === "data" ? t.filter((u, f) => {
|
|
5319
|
+
let v = i.routes[u.route.id];
|
|
5320
|
+
if (!v || !v.hasLoader)
|
|
5305
5321
|
return !1;
|
|
5306
|
-
if (
|
|
5322
|
+
if (d(u, f) || l(u, f))
|
|
5307
5323
|
return !0;
|
|
5308
5324
|
if (u.route.shouldRevalidate) {
|
|
5309
|
-
let
|
|
5325
|
+
let y = u.route.shouldRevalidate({
|
|
5310
5326
|
currentUrl: new URL(
|
|
5311
5327
|
a.pathname + a.search + a.hash,
|
|
5312
5328
|
window.origin
|
|
@@ -5316,8 +5332,8 @@ function Dr(e, t, r, i, a, s) {
|
|
|
5316
5332
|
nextParams: u.params,
|
|
5317
5333
|
defaultShouldRevalidate: !0
|
|
5318
5334
|
});
|
|
5319
|
-
if (typeof
|
|
5320
|
-
return
|
|
5335
|
+
if (typeof y == "boolean")
|
|
5336
|
+
return y;
|
|
5321
5337
|
}
|
|
5322
5338
|
return !0;
|
|
5323
5339
|
}) : [];
|
|
@@ -5383,12 +5399,12 @@ function vn() {
|
|
|
5383
5399
|
), e;
|
|
5384
5400
|
}
|
|
5385
5401
|
function Oo(e, t) {
|
|
5386
|
-
let r = M.useContext(er), [i, a] = M.useState(!1), [s,
|
|
5402
|
+
let r = M.useContext(er), [i, a] = M.useState(!1), [s, d] = M.useState(!1), { onFocus: l, onBlur: u, onMouseEnter: f, onMouseLeave: v, onTouchStart: y } = t, S = M.useRef(null);
|
|
5387
5403
|
M.useEffect(() => {
|
|
5388
|
-
if (e === "render" &&
|
|
5404
|
+
if (e === "render" && d(!0), e === "viewport") {
|
|
5389
5405
|
let p = (C) => {
|
|
5390
5406
|
C.forEach((F) => {
|
|
5391
|
-
|
|
5407
|
+
d(F.isIntersecting);
|
|
5392
5408
|
});
|
|
5393
5409
|
}, I = new IntersectionObserver(p, { threshold: 0.5 });
|
|
5394
5410
|
return S.current && I.observe(S.current), () => {
|
|
@@ -5398,7 +5414,7 @@ function Oo(e, t) {
|
|
|
5398
5414
|
}, [e]), M.useEffect(() => {
|
|
5399
5415
|
if (i) {
|
|
5400
5416
|
let p = setTimeout(() => {
|
|
5401
|
-
|
|
5417
|
+
d(!0);
|
|
5402
5418
|
}, 100);
|
|
5403
5419
|
return () => {
|
|
5404
5420
|
clearTimeout(p);
|
|
@@ -5408,7 +5424,7 @@ function Oo(e, t) {
|
|
|
5408
5424
|
let L = () => {
|
|
5409
5425
|
a(!0);
|
|
5410
5426
|
}, k = () => {
|
|
5411
|
-
a(!1),
|
|
5427
|
+
a(!1), d(!1);
|
|
5412
5428
|
};
|
|
5413
5429
|
return r ? e !== "intent" ? [s, S, {}] : [
|
|
5414
5430
|
s,
|
|
@@ -5416,9 +5432,9 @@ function Oo(e, t) {
|
|
|
5416
5432
|
{
|
|
5417
5433
|
onFocus: Ve(l, L),
|
|
5418
5434
|
onBlur: Ve(u, k),
|
|
5419
|
-
onMouseEnter: Ve(
|
|
5420
|
-
onMouseLeave: Ve(
|
|
5421
|
-
onTouchStart: Ve(
|
|
5435
|
+
onMouseEnter: Ve(f, L),
|
|
5436
|
+
onMouseLeave: Ve(v, k),
|
|
5437
|
+
onTouchStart: Ve(y, L)
|
|
5422
5438
|
}
|
|
5423
5439
|
] : [!1, S, {}];
|
|
5424
5440
|
}
|
|
@@ -5442,8 +5458,8 @@ function Co(e) {
|
|
|
5442
5458
|
return M.useEffect(() => {
|
|
5443
5459
|
let s = !1;
|
|
5444
5460
|
return mo(e, t, r).then(
|
|
5445
|
-
(
|
|
5446
|
-
s || a(
|
|
5461
|
+
(d) => {
|
|
5462
|
+
s || a(d);
|
|
5447
5463
|
}
|
|
5448
5464
|
), () => {
|
|
5449
5465
|
s = !0;
|
|
@@ -5455,7 +5471,7 @@ function Po({
|
|
|
5455
5471
|
matches: t,
|
|
5456
5472
|
...r
|
|
5457
5473
|
}) {
|
|
5458
|
-
let i = Ce(), { manifest: a, routeModules: s } = vn(), { basename:
|
|
5474
|
+
let i = Ce(), { manifest: a, routeModules: s } = vn(), { basename: d } = mn(), { loaderData: l, matches: u } = xo(), f = M.useMemo(
|
|
5459
5475
|
() => Dr(
|
|
5460
5476
|
e,
|
|
5461
5477
|
t,
|
|
@@ -5465,7 +5481,7 @@ function Po({
|
|
|
5465
5481
|
"data"
|
|
5466
5482
|
),
|
|
5467
5483
|
[e, t, u, a, i]
|
|
5468
|
-
),
|
|
5484
|
+
), v = M.useMemo(
|
|
5469
5485
|
() => Dr(
|
|
5470
5486
|
e,
|
|
5471
5487
|
t,
|
|
@@ -5475,34 +5491,34 @@ function Po({
|
|
|
5475
5491
|
"assets"
|
|
5476
5492
|
),
|
|
5477
5493
|
[e, t, u, a, i]
|
|
5478
|
-
),
|
|
5494
|
+
), y = M.useMemo(() => {
|
|
5479
5495
|
if (e === i.pathname + i.search + i.hash)
|
|
5480
5496
|
return [];
|
|
5481
5497
|
let k = /* @__PURE__ */ new Set(), p = !1;
|
|
5482
5498
|
if (t.forEach((C) => {
|
|
5483
5499
|
let F = a.routes[C.route.id];
|
|
5484
|
-
!F || !F.hasLoader || (!
|
|
5500
|
+
!F || !F.hasLoader || (!f.some((U) => U.route.id === C.route.id) && C.route.id in l && s[C.route.id]?.shouldRevalidate || F.hasClientLoader ? p = !0 : k.add(C.route.id));
|
|
5485
5501
|
}), k.size === 0)
|
|
5486
5502
|
return [];
|
|
5487
|
-
let I = So(e,
|
|
5503
|
+
let I = So(e, d);
|
|
5488
5504
|
return p && k.size > 0 && I.searchParams.set(
|
|
5489
5505
|
"_routes",
|
|
5490
5506
|
t.filter((C) => k.has(C.route.id)).map((C) => C.route.id).join(",")
|
|
5491
5507
|
), [I.pathname + I.search];
|
|
5492
5508
|
}, [
|
|
5493
|
-
|
|
5509
|
+
d,
|
|
5494
5510
|
l,
|
|
5495
5511
|
i,
|
|
5496
5512
|
a,
|
|
5497
|
-
|
|
5513
|
+
f,
|
|
5498
5514
|
t,
|
|
5499
5515
|
e,
|
|
5500
5516
|
s
|
|
5501
5517
|
]), S = M.useMemo(
|
|
5502
|
-
() => vo(
|
|
5503
|
-
[
|
|
5504
|
-
), L = Co(
|
|
5505
|
-
return /* @__PURE__ */ M.createElement(M.Fragment, null,
|
|
5518
|
+
() => vo(v, a),
|
|
5519
|
+
[v, a]
|
|
5520
|
+
), L = Co(v);
|
|
5521
|
+
return /* @__PURE__ */ M.createElement(M.Fragment, null, y.map((k) => /* @__PURE__ */ M.createElement("link", { key: k, rel: "prefetch", as: "fetch", href: k, ...r })), S.map((k) => /* @__PURE__ */ M.createElement("link", { key: k, rel: "modulepreload", href: k, ...r })), L.map(({ key: k, link: p }) => (
|
|
5506
5522
|
// these don't spread `linkProps` because they are full link descriptors
|
|
5507
5523
|
// already with their own props
|
|
5508
5524
|
/* @__PURE__ */ M.createElement("link", { key: k, ...p })
|
|
@@ -5527,14 +5543,14 @@ function Ro({
|
|
|
5527
5543
|
}) {
|
|
5528
5544
|
let i = M.useRef();
|
|
5529
5545
|
i.current == null && (i.current = ha({ window: r, v5Compat: !0 }));
|
|
5530
|
-
let a = i.current, [s,
|
|
5546
|
+
let a = i.current, [s, d] = M.useState({
|
|
5531
5547
|
action: a.action,
|
|
5532
5548
|
location: a.location
|
|
5533
5549
|
}), l = M.useCallback(
|
|
5534
5550
|
(u) => {
|
|
5535
|
-
M.startTransition(() =>
|
|
5551
|
+
M.startTransition(() => d(u));
|
|
5536
5552
|
},
|
|
5537
|
-
[
|
|
5553
|
+
[d]
|
|
5538
5554
|
);
|
|
5539
5555
|
return M.useLayoutEffect(() => a.listen(l), [a, l]), /* @__PURE__ */ M.createElement(
|
|
5540
5556
|
to,
|
|
@@ -5554,38 +5570,38 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5554
5570
|
prefetch: i = "none",
|
|
5555
5571
|
relative: a,
|
|
5556
5572
|
reloadDocument: s,
|
|
5557
|
-
replace:
|
|
5573
|
+
replace: d,
|
|
5558
5574
|
state: l,
|
|
5559
5575
|
target: u,
|
|
5560
|
-
to:
|
|
5561
|
-
preventScrollReset:
|
|
5562
|
-
viewTransition:
|
|
5576
|
+
to: f,
|
|
5577
|
+
preventScrollReset: v,
|
|
5578
|
+
viewTransition: y,
|
|
5563
5579
|
...S
|
|
5564
5580
|
}, L) {
|
|
5565
|
-
let { basename: k } = M.useContext(Se), p = typeof
|
|
5566
|
-
if (typeof
|
|
5581
|
+
let { basename: k } = M.useContext(Se), p = typeof f == "string" && yn.test(f), I, C = !1;
|
|
5582
|
+
if (typeof f == "string" && p && (I = f, gn))
|
|
5567
5583
|
try {
|
|
5568
|
-
let
|
|
5569
|
-
h.origin ===
|
|
5584
|
+
let b = new URL(window.location.href), h = f.startsWith("//") ? new URL(b.protocol + f) : new URL(f), P = Oe(h.pathname, k);
|
|
5585
|
+
h.origin === b.origin && P != null ? f = P + h.search + h.hash : C = !0;
|
|
5570
5586
|
} catch {
|
|
5571
5587
|
ge(
|
|
5572
5588
|
!1,
|
|
5573
|
-
`<Link to="${
|
|
5589
|
+
`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
5574
5590
|
);
|
|
5575
5591
|
}
|
|
5576
|
-
let F = Na(
|
|
5592
|
+
let F = Na(f, { relative: a }), [U, q, g] = Oo(
|
|
5577
5593
|
i,
|
|
5578
5594
|
S
|
|
5579
|
-
), w = Lo(
|
|
5580
|
-
replace:
|
|
5595
|
+
), w = Lo(f, {
|
|
5596
|
+
replace: d,
|
|
5581
5597
|
state: l,
|
|
5582
5598
|
target: u,
|
|
5583
|
-
preventScrollReset:
|
|
5599
|
+
preventScrollReset: v,
|
|
5584
5600
|
relative: a,
|
|
5585
|
-
viewTransition:
|
|
5601
|
+
viewTransition: y
|
|
5586
5602
|
});
|
|
5587
|
-
function x(
|
|
5588
|
-
t && t(
|
|
5603
|
+
function x(b) {
|
|
5604
|
+
t && t(b), b.defaultPrevented || w(b);
|
|
5589
5605
|
}
|
|
5590
5606
|
let R = (
|
|
5591
5607
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
@@ -5593,7 +5609,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5593
5609
|
"a",
|
|
5594
5610
|
{
|
|
5595
5611
|
...S,
|
|
5596
|
-
...
|
|
5612
|
+
...g,
|
|
5597
5613
|
href: I || F,
|
|
5598
5614
|
onClick: C || s ? t : x,
|
|
5599
5615
|
ref: Eo(L, q),
|
|
@@ -5613,24 +5629,24 @@ var _o = M.forwardRef(
|
|
|
5613
5629
|
className: i = "",
|
|
5614
5630
|
end: a = !1,
|
|
5615
5631
|
style: s,
|
|
5616
|
-
to:
|
|
5632
|
+
to: d,
|
|
5617
5633
|
viewTransition: l,
|
|
5618
5634
|
children: u,
|
|
5619
|
-
...
|
|
5620
|
-
},
|
|
5621
|
-
let
|
|
5635
|
+
...f
|
|
5636
|
+
}, v) {
|
|
5637
|
+
let y = et(d, { relative: f.relative }), S = Ce(), L = M.useContext(Ot), { navigator: k, basename: p } = M.useContext(Se), I = L != null && // Conditional usage is OK here because the usage of a data router is static
|
|
5622
5638
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5623
|
-
Ho(
|
|
5639
|
+
Ho(y) && l === !0, C = k.encodeLocation ? k.encodeLocation(y).pathname : y.pathname, F = S.pathname, U = L && L.navigation && L.navigation.location ? L.navigation.location.pathname : null;
|
|
5624
5640
|
r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, C = C.toLowerCase()), U && p && (U = Oe(U, p) || U);
|
|
5625
5641
|
const q = C !== "/" && C.endsWith("/") ? C.length - 1 : C.length;
|
|
5626
|
-
let
|
|
5627
|
-
isActive:
|
|
5642
|
+
let g = F === C || !a && F.startsWith(C) && F.charAt(q) === "/", w = U != null && (U === C || !a && U.startsWith(C) && U.charAt(C.length) === "/"), x = {
|
|
5643
|
+
isActive: g,
|
|
5628
5644
|
isPending: w,
|
|
5629
5645
|
isTransitioning: I
|
|
5630
|
-
}, R =
|
|
5631
|
-
typeof i == "function" ?
|
|
5646
|
+
}, R = g ? t : void 0, b;
|
|
5647
|
+
typeof i == "function" ? b = i(x) : b = [
|
|
5632
5648
|
i,
|
|
5633
|
-
|
|
5649
|
+
g ? "active" : null,
|
|
5634
5650
|
w ? "pending" : null,
|
|
5635
5651
|
I ? "transitioning" : null
|
|
5636
5652
|
].filter(Boolean).join(" ");
|
|
@@ -5638,12 +5654,12 @@ var _o = M.forwardRef(
|
|
|
5638
5654
|
return /* @__PURE__ */ M.createElement(
|
|
5639
5655
|
bn,
|
|
5640
5656
|
{
|
|
5641
|
-
...
|
|
5657
|
+
...f,
|
|
5642
5658
|
"aria-current": R,
|
|
5643
|
-
className:
|
|
5644
|
-
ref:
|
|
5659
|
+
className: b,
|
|
5660
|
+
ref: v,
|
|
5645
5661
|
style: h,
|
|
5646
|
-
to:
|
|
5662
|
+
to: d,
|
|
5647
5663
|
viewTransition: l
|
|
5648
5664
|
},
|
|
5649
5665
|
typeof u == "function" ? u(x) : u
|
|
@@ -5659,27 +5675,27 @@ var To = M.forwardRef(
|
|
|
5659
5675
|
reloadDocument: i,
|
|
5660
5676
|
replace: a,
|
|
5661
5677
|
state: s,
|
|
5662
|
-
method:
|
|
5678
|
+
method: d = ut,
|
|
5663
5679
|
action: l,
|
|
5664
5680
|
onSubmit: u,
|
|
5665
|
-
relative:
|
|
5666
|
-
preventScrollReset:
|
|
5667
|
-
viewTransition:
|
|
5681
|
+
relative: f,
|
|
5682
|
+
preventScrollReset: v,
|
|
5683
|
+
viewTransition: y,
|
|
5668
5684
|
...S
|
|
5669
5685
|
}, L) => {
|
|
5670
|
-
let k = Io(), p = Ao(l, { relative:
|
|
5686
|
+
let k = Io(), p = Ao(l, { relative: f }), I = d.toLowerCase() === "get" ? "get" : "post", C = typeof l == "string" && yn.test(l), F = (U) => {
|
|
5671
5687
|
if (u && u(U), U.defaultPrevented) return;
|
|
5672
5688
|
U.preventDefault();
|
|
5673
|
-
let q = U.nativeEvent.submitter,
|
|
5689
|
+
let q = U.nativeEvent.submitter, g = q?.getAttribute("formmethod") || d;
|
|
5674
5690
|
k(q || U.currentTarget, {
|
|
5675
5691
|
fetcherKey: t,
|
|
5676
|
-
method:
|
|
5692
|
+
method: g,
|
|
5677
5693
|
navigate: r,
|
|
5678
5694
|
replace: a,
|
|
5679
5695
|
state: s,
|
|
5680
|
-
relative:
|
|
5681
|
-
preventScrollReset:
|
|
5682
|
-
viewTransition:
|
|
5696
|
+
relative: f,
|
|
5697
|
+
preventScrollReset: v,
|
|
5698
|
+
viewTransition: y
|
|
5683
5699
|
});
|
|
5684
5700
|
};
|
|
5685
5701
|
return /* @__PURE__ */ M.createElement(
|
|
@@ -5709,34 +5725,34 @@ function Lo(e, {
|
|
|
5709
5725
|
state: i,
|
|
5710
5726
|
preventScrollReset: a,
|
|
5711
5727
|
relative: s,
|
|
5712
|
-
viewTransition:
|
|
5728
|
+
viewTransition: d
|
|
5713
5729
|
} = {}) {
|
|
5714
|
-
let l = Kt(), u = Ce(),
|
|
5730
|
+
let l = Kt(), u = Ce(), f = et(e, { relative: s });
|
|
5715
5731
|
return M.useCallback(
|
|
5716
|
-
(
|
|
5717
|
-
if (so(
|
|
5718
|
-
|
|
5719
|
-
let
|
|
5732
|
+
(v) => {
|
|
5733
|
+
if (so(v, t)) {
|
|
5734
|
+
v.preventDefault();
|
|
5735
|
+
let y = r !== void 0 ? r : Ge(u) === Ge(f);
|
|
5720
5736
|
l(e, {
|
|
5721
|
-
replace:
|
|
5737
|
+
replace: y,
|
|
5722
5738
|
state: i,
|
|
5723
5739
|
preventScrollReset: a,
|
|
5724
5740
|
relative: s,
|
|
5725
|
-
viewTransition:
|
|
5741
|
+
viewTransition: d
|
|
5726
5742
|
});
|
|
5727
5743
|
}
|
|
5728
5744
|
},
|
|
5729
5745
|
[
|
|
5730
5746
|
u,
|
|
5731
5747
|
l,
|
|
5732
|
-
|
|
5748
|
+
f,
|
|
5733
5749
|
r,
|
|
5734
5750
|
i,
|
|
5735
5751
|
t,
|
|
5736
5752
|
e,
|
|
5737
5753
|
a,
|
|
5738
5754
|
s,
|
|
5739
|
-
|
|
5755
|
+
d
|
|
5740
5756
|
]
|
|
5741
5757
|
);
|
|
5742
5758
|
}
|
|
@@ -5756,16 +5772,16 @@ function Do(e) {
|
|
|
5756
5772
|
)
|
|
5757
5773
|
),
|
|
5758
5774
|
[i.search]
|
|
5759
|
-
), s = Kt(),
|
|
5775
|
+
), s = Kt(), d = M.useCallback(
|
|
5760
5776
|
(l, u) => {
|
|
5761
|
-
const
|
|
5777
|
+
const f = Ut(
|
|
5762
5778
|
typeof l == "function" ? l(a) : l
|
|
5763
5779
|
);
|
|
5764
|
-
r.current = !0, s("?" +
|
|
5780
|
+
r.current = !0, s("?" + f, u);
|
|
5765
5781
|
},
|
|
5766
5782
|
[s, a]
|
|
5767
5783
|
);
|
|
5768
|
-
return [a,
|
|
5784
|
+
return [a, d];
|
|
5769
5785
|
}
|
|
5770
5786
|
var Mo = 0, $o = () => `__${String(++Mo)}__`;
|
|
5771
5787
|
function Io() {
|
|
@@ -5775,17 +5791,17 @@ function Io() {
|
|
|
5775
5791
|
), { basename: t } = M.useContext(Se), r = Ja();
|
|
5776
5792
|
return M.useCallback(
|
|
5777
5793
|
async (i, a = {}) => {
|
|
5778
|
-
let { action: s, method:
|
|
5794
|
+
let { action: s, method: d, encType: l, formData: u, body: f } = fo(
|
|
5779
5795
|
i,
|
|
5780
5796
|
t
|
|
5781
5797
|
);
|
|
5782
5798
|
if (a.navigate === !1) {
|
|
5783
|
-
let
|
|
5784
|
-
await e.fetch(
|
|
5799
|
+
let v = a.fetcherKey || $o();
|
|
5800
|
+
await e.fetch(v, r, a.action || s, {
|
|
5785
5801
|
preventScrollReset: a.preventScrollReset,
|
|
5786
5802
|
formData: u,
|
|
5787
|
-
body:
|
|
5788
|
-
formMethod: a.method ||
|
|
5803
|
+
body: f,
|
|
5804
|
+
formMethod: a.method || d,
|
|
5789
5805
|
formEncType: a.encType || l,
|
|
5790
5806
|
flushSync: a.flushSync
|
|
5791
5807
|
});
|
|
@@ -5793,8 +5809,8 @@ function Io() {
|
|
|
5793
5809
|
await e.navigate(a.action || s, {
|
|
5794
5810
|
preventScrollReset: a.preventScrollReset,
|
|
5795
5811
|
formData: u,
|
|
5796
|
-
body:
|
|
5797
|
-
formMethod: a.method ||
|
|
5812
|
+
body: f,
|
|
5813
|
+
formMethod: a.method || d,
|
|
5798
5814
|
formEncType: a.encType || l,
|
|
5799
5815
|
replace: a.replace,
|
|
5800
5816
|
state: a.state,
|
|
@@ -5809,14 +5825,14 @@ function Io() {
|
|
|
5809
5825
|
function Ao(e, { relative: t } = {}) {
|
|
5810
5826
|
let { basename: r } = M.useContext(Se), i = M.useContext(ke);
|
|
5811
5827
|
ae(i, "useFormAction must be used inside a RouteContext");
|
|
5812
|
-
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) },
|
|
5828
|
+
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, d = Ce();
|
|
5813
5829
|
if (e == null) {
|
|
5814
|
-
s.search =
|
|
5830
|
+
s.search = d.search;
|
|
5815
5831
|
let l = new URLSearchParams(s.search), u = l.getAll("index");
|
|
5816
|
-
if (u.some((
|
|
5817
|
-
l.delete("index"), u.filter((
|
|
5818
|
-
let
|
|
5819
|
-
s.search =
|
|
5832
|
+
if (u.some((v) => v === "")) {
|
|
5833
|
+
l.delete("index"), u.filter((y) => y).forEach((y) => l.append("index", y));
|
|
5834
|
+
let v = l.toString();
|
|
5835
|
+
s.search = v ? `?${v}` : "";
|
|
5820
5836
|
}
|
|
5821
5837
|
}
|
|
5822
5838
|
return (!e || e === ".") && a.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (s.pathname = s.pathname === "/" ? r : xe([r, s.pathname])), Ge(s);
|
|
@@ -5833,8 +5849,8 @@ function Ho(e, t = {}) {
|
|
|
5833
5849
|
), a = et(e, { relative: t.relative });
|
|
5834
5850
|
if (!r.isTransitioning)
|
|
5835
5851
|
return !1;
|
|
5836
|
-
let s = Oe(r.currentLocation.pathname, i) || r.currentLocation.pathname,
|
|
5837
|
-
return gt(a.pathname,
|
|
5852
|
+
let s = Oe(r.currentLocation.pathname, i) || r.currentLocation.pathname, d = Oe(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
5853
|
+
return gt(a.pathname, d) != null || gt(a.pathname, s) != null;
|
|
5838
5854
|
}
|
|
5839
5855
|
[
|
|
5840
5856
|
...wo
|
|
@@ -5851,48 +5867,48 @@ const Sn = V.createContext({
|
|
|
5851
5867
|
() => Object.fromEntries(e.entries()),
|
|
5852
5868
|
[e]
|
|
5853
5869
|
), i = ve(
|
|
5854
|
-
(
|
|
5855
|
-
const
|
|
5856
|
-
return
|
|
5857
|
-
|
|
5858
|
-
}),
|
|
5870
|
+
(v) => {
|
|
5871
|
+
const y = {};
|
|
5872
|
+
return v.forEach((S) => {
|
|
5873
|
+
y[S] = e.get(S);
|
|
5874
|
+
}), y;
|
|
5859
5875
|
},
|
|
5860
5876
|
[e]
|
|
5861
5877
|
), a = ve(
|
|
5862
|
-
(
|
|
5863
|
-
const
|
|
5864
|
-
return
|
|
5878
|
+
(v) => {
|
|
5879
|
+
const y = e.get(v);
|
|
5880
|
+
return y == null || y == null, y;
|
|
5865
5881
|
},
|
|
5866
5882
|
[e]
|
|
5867
5883
|
), s = ve(
|
|
5868
|
-
(
|
|
5869
|
-
const
|
|
5870
|
-
|
|
5884
|
+
(v) => {
|
|
5885
|
+
const y = new URLSearchParams(e);
|
|
5886
|
+
y.delete(v), t(y);
|
|
5871
5887
|
},
|
|
5872
5888
|
[e, t]
|
|
5873
|
-
),
|
|
5874
|
-
(
|
|
5875
|
-
const
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
}), t(
|
|
5889
|
+
), d = ve(
|
|
5890
|
+
(v) => {
|
|
5891
|
+
const y = new URLSearchParams(e);
|
|
5892
|
+
v.forEach((S) => {
|
|
5893
|
+
y.delete(String(S));
|
|
5894
|
+
}), t(y);
|
|
5879
5895
|
},
|
|
5880
5896
|
[e, t]
|
|
5881
5897
|
), l = ve(() => {
|
|
5882
5898
|
t({});
|
|
5883
5899
|
}, [e, t]), u = ve(
|
|
5884
|
-
(
|
|
5900
|
+
(v, y) => {
|
|
5885
5901
|
t((S) => {
|
|
5886
5902
|
const L = new URLSearchParams(S);
|
|
5887
|
-
return
|
|
5903
|
+
return y == null ? L.delete(v) : L.set(v, String(y)), L;
|
|
5888
5904
|
});
|
|
5889
5905
|
},
|
|
5890
5906
|
[t]
|
|
5891
|
-
),
|
|
5892
|
-
(
|
|
5893
|
-
t((
|
|
5894
|
-
const S = new URLSearchParams(
|
|
5895
|
-
return Object.entries(
|
|
5907
|
+
), f = ve(
|
|
5908
|
+
(v) => {
|
|
5909
|
+
t((y) => {
|
|
5910
|
+
const S = new URLSearchParams(y);
|
|
5911
|
+
return Object.entries(v).forEach(([L, k]) => {
|
|
5896
5912
|
k == null ? S.delete(L) : S.set(L, String(k));
|
|
5897
5913
|
}), S;
|
|
5898
5914
|
});
|
|
@@ -5904,16 +5920,16 @@ const Sn = V.createContext({
|
|
|
5904
5920
|
get: a,
|
|
5905
5921
|
getMany: i,
|
|
5906
5922
|
set: u,
|
|
5907
|
-
setMany:
|
|
5923
|
+
setMany: f,
|
|
5908
5924
|
remove: s,
|
|
5909
|
-
removeMany:
|
|
5925
|
+
removeMany: d,
|
|
5910
5926
|
removeAll: l
|
|
5911
5927
|
};
|
|
5912
5928
|
}, hs = () => {
|
|
5913
5929
|
const e = Kt(), t = Ce(), r = zo(), i = Yt(Sn), a = (l) => {
|
|
5914
5930
|
const u = new URL(l.path, "http://dummy-base");
|
|
5915
|
-
return l.params && Object.entries(l.params).forEach(([
|
|
5916
|
-
|
|
5931
|
+
return l.params && Object.entries(l.params).forEach(([f, v]) => {
|
|
5932
|
+
v != null && u.searchParams.set(f, String(v));
|
|
5917
5933
|
}), u.pathname + u.search;
|
|
5918
5934
|
}, s = V.useCallback(
|
|
5919
5935
|
(l) => {
|
|
@@ -5921,7 +5937,7 @@ const Sn = V.createContext({
|
|
|
5921
5937
|
l.addToHistory !== !1 ? (e(u), i.addToHistory(u)) : (e(u, { replace: !0 }), i.popFromHistory(1), i.addToHistory(u));
|
|
5922
5938
|
},
|
|
5923
5939
|
[e]
|
|
5924
|
-
),
|
|
5940
|
+
), d = V.useCallback(
|
|
5925
5941
|
(l) => {
|
|
5926
5942
|
const u = l || 1;
|
|
5927
5943
|
e(-u), i.popFromHistory(u);
|
|
@@ -5932,7 +5948,7 @@ const Sn = V.createContext({
|
|
|
5932
5948
|
currentPath: t.pathname,
|
|
5933
5949
|
history: i.history,
|
|
5934
5950
|
searchParams: r,
|
|
5935
|
-
goBack:
|
|
5951
|
+
goBack: d,
|
|
5936
5952
|
goTo: s
|
|
5937
5953
|
};
|
|
5938
5954
|
}, ps = ({
|
|
@@ -5940,20 +5956,20 @@ const Sn = V.createContext({
|
|
|
5940
5956
|
routes: t,
|
|
5941
5957
|
children: r
|
|
5942
5958
|
}) => {
|
|
5943
|
-
const i = V.useRef([]), [a, s] = V.useState([]),
|
|
5944
|
-
i.current =
|
|
5945
|
-
}, []), l = (
|
|
5959
|
+
const i = V.useRef([]), [a, s] = V.useState([]), d = V.useCallback((y) => {
|
|
5960
|
+
i.current = y, s(y);
|
|
5961
|
+
}, []), l = (y, S = !1) => {
|
|
5946
5962
|
let L = [...i.current];
|
|
5947
|
-
S && (L = L.slice(0, L.length - 1)), L = [...L,
|
|
5948
|
-
}, u = (
|
|
5963
|
+
S && (L = L.slice(0, L.length - 1)), L = [...L, y], d(L);
|
|
5964
|
+
}, u = (y) => {
|
|
5949
5965
|
let S = "", L = [];
|
|
5950
|
-
return i.current.length === 0 ? "/" : (i.current.length <=
|
|
5966
|
+
return i.current.length === 0 ? "/" : (i.current.length <= y ? (S = i.current[0], L = [S]) : (L = i.current.slice(
|
|
5951
5967
|
0,
|
|
5952
|
-
i.current.length -
|
|
5953
|
-
), S = L[L.length - 1]),
|
|
5954
|
-
},
|
|
5955
|
-
|
|
5956
|
-
},
|
|
5968
|
+
i.current.length - y
|
|
5969
|
+
), S = L[L.length - 1]), d(L), S);
|
|
5970
|
+
}, f = (y) => {
|
|
5971
|
+
d(y);
|
|
5972
|
+
}, v = t.map((y) => /* @__PURE__ */ X.jsx(pn, { path: y.path, element: y.render }));
|
|
5957
5973
|
return /* @__PURE__ */ X.jsx(
|
|
5958
5974
|
Sn.Provider,
|
|
5959
5975
|
{
|
|
@@ -5961,10 +5977,10 @@ const Sn = V.createContext({
|
|
|
5961
5977
|
history: a,
|
|
5962
5978
|
addToHistory: l,
|
|
5963
5979
|
popFromHistory: u,
|
|
5964
|
-
replaceHistory:
|
|
5980
|
+
replaceHistory: f
|
|
5965
5981
|
},
|
|
5966
5982
|
children: /* @__PURE__ */ X.jsx(Ro, { children: /* @__PURE__ */ X.jsxs(X.Fragment, { children: [
|
|
5967
|
-
e && /* @__PURE__ */ X.jsx(ro, { children:
|
|
5983
|
+
e && /* @__PURE__ */ X.jsx(ro, { children: v }),
|
|
5968
5984
|
r
|
|
5969
5985
|
] }) })
|
|
5970
5986
|
}
|
|
@@ -5981,7 +5997,7 @@ const Sn = V.createContext({
|
|
|
5981
5997
|
), ms = ({ children: e }) => {
|
|
5982
5998
|
const t = V.useRef([]), [r, i] = V.useState([]), a = V.useCallback((u) => {
|
|
5983
5999
|
t.current = u, i(u);
|
|
5984
|
-
}, []), s = V.useCallback((u) => t.current.some((
|
|
6000
|
+
}, []), s = V.useCallback((u) => t.current.some((f) => f === u), []), d = V.useCallback(
|
|
5985
6001
|
(u) => {
|
|
5986
6002
|
s(u) || a([...t.current, u]);
|
|
5987
6003
|
},
|
|
@@ -5989,7 +6005,7 @@ const Sn = V.createContext({
|
|
|
5989
6005
|
), l = V.useCallback(
|
|
5990
6006
|
(u) => {
|
|
5991
6007
|
s(u) && a(
|
|
5992
|
-
t.current.filter((
|
|
6008
|
+
t.current.filter((v) => v !== u)
|
|
5993
6009
|
);
|
|
5994
6010
|
},
|
|
5995
6011
|
[s, a]
|
|
@@ -6000,7 +6016,7 @@ const Sn = V.createContext({
|
|
|
6000
6016
|
value: {
|
|
6001
6017
|
visibleItems: r,
|
|
6002
6018
|
isItemVisible: s,
|
|
6003
|
-
showItem:
|
|
6019
|
+
showItem: d,
|
|
6004
6020
|
hideItem: l
|
|
6005
6021
|
},
|
|
6006
6022
|
children: e
|
|
@@ -6025,39 +6041,39 @@ const Sn = V.createContext({
|
|
|
6025
6041
|
}) => {
|
|
6026
6042
|
const { isItemVisible: i } = Ct(), [a, s] = V.useState({
|
|
6027
6043
|
isDragging: !1
|
|
6028
|
-
}),
|
|
6044
|
+
}), d = V.useRef(null), l = V.useRef(null), u = V.useRef(null), [f, v] = V.useState(0), y = (k) => {
|
|
6029
6045
|
s(k);
|
|
6030
6046
|
}, S = (k) => {
|
|
6031
|
-
s(k),
|
|
6047
|
+
s(k), v(0);
|
|
6032
6048
|
};
|
|
6033
6049
|
return la({
|
|
6034
6050
|
ref: u,
|
|
6035
6051
|
onDrag: (k) => {
|
|
6036
6052
|
s(k);
|
|
6037
6053
|
const p = l.current?.clientHeight || 0;
|
|
6038
|
-
k.distanceY && (
|
|
6054
|
+
k.distanceY && (v(k.distanceY < 0 ? 0 : -k.distanceY), k.distanceY >= p - r && (t?.(), S(k)));
|
|
6039
6055
|
},
|
|
6040
6056
|
onDragEnd: S,
|
|
6041
|
-
onDragStart:
|
|
6057
|
+
onDragStart: y
|
|
6042
6058
|
}), {
|
|
6043
6059
|
isVisible: i(e),
|
|
6044
|
-
drawerParentRef:
|
|
6060
|
+
drawerParentRef: d,
|
|
6045
6061
|
drawerRef: l,
|
|
6046
|
-
drawerBottomDistance:
|
|
6062
|
+
drawerBottomDistance: f,
|
|
6047
6063
|
handleRef: u
|
|
6048
6064
|
};
|
|
6049
6065
|
}, vs = (e) => {
|
|
6050
6066
|
const { children: t, backgroundStyles: r, contentStyles: i, handle: a } = e, {
|
|
6051
6067
|
isVisible: s,
|
|
6052
|
-
drawerParentRef:
|
|
6068
|
+
drawerParentRef: d,
|
|
6053
6069
|
drawerRef: l,
|
|
6054
6070
|
handleRef: u,
|
|
6055
|
-
drawerBottomDistance:
|
|
6071
|
+
drawerBottomDistance: f
|
|
6056
6072
|
} = No(e);
|
|
6057
6073
|
return /* @__PURE__ */ X.jsx(X.Fragment, { children: s && /* @__PURE__ */ X.jsx(
|
|
6058
6074
|
"div",
|
|
6059
6075
|
{
|
|
6060
|
-
ref:
|
|
6076
|
+
ref: d,
|
|
6061
6077
|
style: {
|
|
6062
6078
|
width: "100%",
|
|
6063
6079
|
height: "100%",
|
|
@@ -6091,11 +6107,11 @@ const Sn = V.createContext({
|
|
|
6091
6107
|
padding: "24px",
|
|
6092
6108
|
zIndex: 1001,
|
|
6093
6109
|
position: "absolute",
|
|
6094
|
-
bottom: `${
|
|
6110
|
+
bottom: `${f}px`,
|
|
6095
6111
|
...i
|
|
6096
6112
|
},
|
|
6097
|
-
onClick: (
|
|
6098
|
-
|
|
6113
|
+
onClick: (v) => {
|
|
6114
|
+
v.stopPropagation();
|
|
6099
6115
|
},
|
|
6100
6116
|
children: [
|
|
6101
6117
|
/* @__PURE__ */ X.jsx(
|
|
@@ -6127,68 +6143,68 @@ const Sn = V.createContext({
|
|
|
6127
6143
|
onSubmit: t,
|
|
6128
6144
|
configurations: r
|
|
6129
6145
|
}) => {
|
|
6130
|
-
const i = V.useRef(null), a = V.useRef(!1), s = (
|
|
6131
|
-
const
|
|
6146
|
+
const i = V.useRef(null), a = V.useRef(!1), s = (f) => {
|
|
6147
|
+
const v = Array.from(f.currentTarget.elements).filter(
|
|
6132
6148
|
(S) => !!S.getAttribute("name")
|
|
6133
|
-
),
|
|
6134
|
-
for (const S of
|
|
6149
|
+
), y = [];
|
|
6150
|
+
for (const S of v) {
|
|
6135
6151
|
const L = S.name;
|
|
6136
|
-
|
|
6152
|
+
y.push({
|
|
6137
6153
|
name: L,
|
|
6138
6154
|
value: S.value
|
|
6139
6155
|
});
|
|
6140
6156
|
}
|
|
6141
|
-
return
|
|
6142
|
-
},
|
|
6157
|
+
return y;
|
|
6158
|
+
}, d = async (f) => {
|
|
6143
6159
|
try {
|
|
6144
6160
|
const S = (r || []).find(
|
|
6145
|
-
(L) => L.name ===
|
|
6161
|
+
(L) => L.name === f.name
|
|
6146
6162
|
);
|
|
6147
6163
|
if (!S)
|
|
6148
|
-
return
|
|
6149
|
-
var
|
|
6150
|
-
if (S.emptyValidation && S.emptyValidation.allow === !1 && !
|
|
6151
|
-
return
|
|
6152
|
-
if (S.minLengthValidation &&
|
|
6153
|
-
return
|
|
6154
|
-
if (S.maxLengthValidation &&
|
|
6155
|
-
return
|
|
6156
|
-
if (!isNaN(
|
|
6157
|
-
if (S.minValueValidation &&
|
|
6158
|
-
return
|
|
6159
|
-
if (S.maxValueValidation &&
|
|
6160
|
-
return
|
|
6164
|
+
return f;
|
|
6165
|
+
var v = f.value, y = f.value;
|
|
6166
|
+
if (S.emptyValidation && S.emptyValidation.allow === !1 && !v)
|
|
6167
|
+
return f.error = S.emptyValidation.errorMessage, f;
|
|
6168
|
+
if (S.minLengthValidation && v.length < S.minLengthValidation.value)
|
|
6169
|
+
return f.error = S.minLengthValidation.errorMessage, f;
|
|
6170
|
+
if (S.maxLengthValidation && v.length > S.maxLengthValidation.value)
|
|
6171
|
+
return f.error = S.maxLengthValidation.errorMessage, f;
|
|
6172
|
+
if (!isNaN(y)) {
|
|
6173
|
+
if (S.minValueValidation && y < S.minValueValidation.value)
|
|
6174
|
+
return f.error = S.minValueValidation.errorMessage, f;
|
|
6175
|
+
if (S.maxValueValidation && y > S.maxValueValidation.value)
|
|
6176
|
+
return f.error = S.maxValueValidation.errorMessage, f;
|
|
6161
6177
|
}
|
|
6162
|
-
if (S.exactValueValidation && S.exactValueValidation.value !==
|
|
6163
|
-
return
|
|
6178
|
+
if (S.exactValueValidation && S.exactValueValidation.value !== f.value)
|
|
6179
|
+
return f.error = S.exactValueValidation.errorMessage, f;
|
|
6164
6180
|
for (let L = 0; L < (S.validations || []).length; L++) {
|
|
6165
|
-
const k = await S.validations?.[L](
|
|
6181
|
+
const k = await S.validations?.[L](f.value);
|
|
6166
6182
|
if (k)
|
|
6167
|
-
return
|
|
6183
|
+
return f.error = k, f;
|
|
6168
6184
|
}
|
|
6169
6185
|
} catch (S) {
|
|
6170
|
-
console.error(`Form > Failed To Validate Field ${
|
|
6186
|
+
console.error(`Form > Failed To Validate Field ${f.name}: `, S);
|
|
6171
6187
|
}
|
|
6172
|
-
return
|
|
6188
|
+
return f;
|
|
6173
6189
|
}, l = V.useCallback(
|
|
6174
|
-
async (
|
|
6190
|
+
async (f) => {
|
|
6175
6191
|
try {
|
|
6176
6192
|
if (a.current)
|
|
6177
6193
|
return;
|
|
6178
|
-
a.current = !0, e?.(),
|
|
6179
|
-
let
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
), a.current = !1, t?.(
|
|
6183
|
-
} catch (
|
|
6184
|
-
a.current = !1, console.error("Form > OnSubmit > Error submitting: ",
|
|
6194
|
+
a.current = !0, e?.(), f.preventDefault(), f.stopPropagation();
|
|
6195
|
+
let v = s(f);
|
|
6196
|
+
v = await Promise.all(
|
|
6197
|
+
v.map(async (y) => await d(y))
|
|
6198
|
+
), a.current = !1, t?.(v);
|
|
6199
|
+
} catch (v) {
|
|
6200
|
+
a.current = !1, console.error("Form > OnSubmit > Error submitting: ", v);
|
|
6185
6201
|
}
|
|
6186
6202
|
},
|
|
6187
6203
|
[t, e]
|
|
6188
6204
|
);
|
|
6189
6205
|
return {
|
|
6190
6206
|
ref: i,
|
|
6191
|
-
submitForm: (
|
|
6207
|
+
submitForm: (f) => {
|
|
6192
6208
|
i.current && i.current.requestSubmit();
|
|
6193
6209
|
},
|
|
6194
6210
|
handleFormSubmission: l
|
|
@@ -6209,12 +6225,12 @@ const Sn = V.createContext({
|
|
|
6209
6225
|
pointer-events: none;
|
|
6210
6226
|
}
|
|
6211
6227
|
`, gs = (e) => {
|
|
6212
|
-
const { children: t, styles: r, childrenStyles: i, submitButton: a } = e, { ref: s, handleFormSubmission:
|
|
6228
|
+
const { children: t, styles: r, childrenStyles: i, submitButton: a } = e, { ref: s, handleFormSubmission: d, submitForm: l } = Fo(e);
|
|
6213
6229
|
return /* @__PURE__ */ X.jsxs(
|
|
6214
6230
|
"form",
|
|
6215
6231
|
{
|
|
6216
6232
|
ref: s,
|
|
6217
|
-
onSubmit:
|
|
6233
|
+
onSubmit: d,
|
|
6218
6234
|
style: {
|
|
6219
6235
|
width: "100%",
|
|
6220
6236
|
display: "flex",
|
|
@@ -6302,12 +6318,12 @@ const Sn = V.createContext({
|
|
|
6302
6318
|
const { onValueChanged: t, handleOnBlur: r, handleOnFocus: i } = Uo(e), {
|
|
6303
6319
|
name: a,
|
|
6304
6320
|
label: s,
|
|
6305
|
-
leftIcon:
|
|
6321
|
+
leftIcon: d,
|
|
6306
6322
|
rightIcon: l,
|
|
6307
6323
|
bottomMessage: u,
|
|
6308
|
-
placeHolder:
|
|
6309
|
-
autoComplete:
|
|
6310
|
-
value:
|
|
6324
|
+
placeHolder: f,
|
|
6325
|
+
autoComplete: v = "off",
|
|
6326
|
+
value: y,
|
|
6311
6327
|
initialValue: S,
|
|
6312
6328
|
type: L = "text",
|
|
6313
6329
|
maxLength: k,
|
|
@@ -6353,17 +6369,17 @@ const Sn = V.createContext({
|
|
|
6353
6369
|
...I
|
|
6354
6370
|
},
|
|
6355
6371
|
children: [
|
|
6356
|
-
|
|
6372
|
+
d,
|
|
6357
6373
|
/* @__PURE__ */ X.jsx(
|
|
6358
6374
|
"input",
|
|
6359
6375
|
{
|
|
6360
6376
|
name: a,
|
|
6361
6377
|
type: L,
|
|
6362
|
-
autoComplete:
|
|
6378
|
+
autoComplete: v,
|
|
6363
6379
|
step: F,
|
|
6364
6380
|
maxLength: k,
|
|
6365
|
-
placeholder:
|
|
6366
|
-
value:
|
|
6381
|
+
placeholder: f,
|
|
6382
|
+
value: y,
|
|
6367
6383
|
defaultValue: S,
|
|
6368
6384
|
onChange: t,
|
|
6369
6385
|
onFocus: i,
|
|
@@ -6464,8 +6480,8 @@ const Sn = V.createContext({
|
|
|
6464
6480
|
padding: "24px",
|
|
6465
6481
|
...i
|
|
6466
6482
|
},
|
|
6467
|
-
onClick: (
|
|
6468
|
-
|
|
6483
|
+
onClick: (d) => {
|
|
6484
|
+
d.stopPropagation();
|
|
6469
6485
|
},
|
|
6470
6486
|
children: t
|
|
6471
6487
|
}
|
|
@@ -6474,7 +6490,7 @@ const Sn = V.createContext({
|
|
|
6474
6490
|
) });
|
|
6475
6491
|
}, qo = (e) => {
|
|
6476
6492
|
const t = Pn(""), r = ve(
|
|
6477
|
-
(l) => (e.allowNegatives ? (l = l.replace(/-/g, (u,
|
|
6493
|
+
(l) => (e.allowNegatives ? (l = l.replace(/-/g, (u, f) => f === 0 ? "-" : ""), l.indexOf("-") > 0 && (l = l.replace(/-/g, ""), l = "-" + l)) : l = l.replace(/-/g, ""), l),
|
|
6478
6494
|
[e]
|
|
6479
6495
|
), i = ve(
|
|
6480
6496
|
(l) => {
|
|
@@ -6482,9 +6498,9 @@ const Sn = V.createContext({
|
|
|
6482
6498
|
l.startsWith(".") && (l = "0" + l), l.length === 2 && l[0] === "-" && l[1] === "." && (l = "-");
|
|
6483
6499
|
const u = l.indexOf(".");
|
|
6484
6500
|
u !== -1 && (l = l.slice(0, u + 1) + l.slice(u + 1).replace(/\./g, ""));
|
|
6485
|
-
const [
|
|
6486
|
-
let L =
|
|
6487
|
-
e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = k : L = L.slice(0, e.decimalScale)), l = L || l.endsWith(".") ? `${
|
|
6501
|
+
const [f, ...v] = l.split("."), [y, ...S] = t.current.split(".");
|
|
6502
|
+
let L = v.join(""), k = S.join("");
|
|
6503
|
+
e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = k : L = L.slice(0, e.decimalScale)), l = L || l.endsWith(".") ? `${f}.${L}` : f;
|
|
6488
6504
|
} else
|
|
6489
6505
|
l = l.replace(/\./g, "");
|
|
6490
6506
|
return l;
|
|
@@ -6493,17 +6509,17 @@ const Sn = V.createContext({
|
|
|
6493
6509
|
), a = ve(
|
|
6494
6510
|
(l) => {
|
|
6495
6511
|
const u = Number(l);
|
|
6496
|
-
var
|
|
6497
|
-
return
|
|
6512
|
+
var f = e.max;
|
|
6513
|
+
return f === void 0 && (f = e.maxLength ? Number("9".repeat(e.maxLength)) : void 0), !isNaN(u) && (e.min !== void 0 && u < e.min || f !== void 0 && u > f) ? t.current ?? l : l;
|
|
6498
6514
|
},
|
|
6499
6515
|
[e]
|
|
6500
6516
|
), s = ve(
|
|
6501
6517
|
(l) => {
|
|
6502
|
-
const u = l.target,
|
|
6503
|
-
let
|
|
6504
|
-
|
|
6505
|
-
const S =
|
|
6506
|
-
u.value =
|
|
6518
|
+
const u = l.target, f = u.selectionStart ?? 0, v = u.selectionEnd ?? 0;
|
|
6519
|
+
let y = u.value;
|
|
6520
|
+
y = y.replace(/[^0-9\.\-]/g, ""), y = r(y), y = i(y), y = a(y);
|
|
6521
|
+
const S = y.length - u.value.length;
|
|
6522
|
+
u.value = y, u.setSelectionRange(f + S, v + S), t.current = y;
|
|
6507
6523
|
},
|
|
6508
6524
|
[r, i, a]
|
|
6509
6525
|
);
|
|
@@ -6529,13 +6545,13 @@ const Sn = V.createContext({
|
|
|
6529
6545
|
});
|
|
6530
6546
|
return /* @__PURE__ */ X.jsx(Vo, { type: "text", ...a });
|
|
6531
6547
|
}, Bo = (e) => {
|
|
6532
|
-
const t = V.useRef(null), r = V.useRef(null), [i, a] = V.useState(24), [s,
|
|
6548
|
+
const t = V.useRef(null), r = V.useRef(null), [i, a] = V.useState(24), [s, d] = V.useState(24), l = V.useCallback(() => {
|
|
6533
6549
|
t.current && a(t.current.clientHeight);
|
|
6534
6550
|
}, [t, t.current]), u = V.useCallback(() => {
|
|
6535
|
-
r.current &&
|
|
6536
|
-
}, [r, r.current]),
|
|
6537
|
-
let
|
|
6538
|
-
return e.header?.visibility === "always" && (
|
|
6551
|
+
r.current && d(r.current.clientHeight);
|
|
6552
|
+
}, [r, r.current]), f = V.useCallback(() => {
|
|
6553
|
+
let v = 0;
|
|
6554
|
+
return e.header?.visibility === "always" && (v = v + (i || 0)), e.footer?.visibility === "always" && (v = v + (s || 0)), v;
|
|
6539
6555
|
}, [r, r.current]);
|
|
6540
6556
|
return V.useEffect(() => {
|
|
6541
6557
|
l();
|
|
@@ -6555,7 +6571,7 @@ const Sn = V.createContext({
|
|
|
6555
6571
|
ref: r
|
|
6556
6572
|
},
|
|
6557
6573
|
page: {
|
|
6558
|
-
extraHeight:
|
|
6574
|
+
extraHeight: f()
|
|
6559
6575
|
}
|
|
6560
6576
|
};
|
|
6561
6577
|
}, Xo = Ee.div`
|
|
@@ -6585,7 +6601,7 @@ const Sn = V.createContext({
|
|
|
6585
6601
|
children: i,
|
|
6586
6602
|
allowScroll: a = !0,
|
|
6587
6603
|
floatingContent: s,
|
|
6588
|
-
reserveSpaceForScrollbar:
|
|
6604
|
+
reserveSpaceForScrollbar: d
|
|
6589
6605
|
} = e, { footer: l, header: u } = Bo(e);
|
|
6590
6606
|
return /* @__PURE__ */ X.jsxs(
|
|
6591
6607
|
Xo,
|
|
@@ -6640,7 +6656,7 @@ const Sn = V.createContext({
|
|
|
6640
6656
|
flexDirection: "column",
|
|
6641
6657
|
flex: 1,
|
|
6642
6658
|
minHeight: "100%",
|
|
6643
|
-
scrollbarGutter:
|
|
6659
|
+
scrollbarGutter: d ? "stable" : void 0,
|
|
6644
6660
|
paddingLeft: "0px",
|
|
6645
6661
|
paddingRight: "0px",
|
|
6646
6662
|
paddingTop: `${u.height}px`,
|
|
@@ -6731,7 +6747,7 @@ function Jo() {
|
|
|
6731
6747
|
(function(r, i) {
|
|
6732
6748
|
e.exports = i();
|
|
6733
6749
|
})(Ko, function() {
|
|
6734
|
-
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond",
|
|
6750
|
+
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", d = "second", l = "minute", u = "hour", f = "day", v = "week", y = "month", S = "quarter", L = "year", k = "date", p = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
6735
6751
|
var E = ["th", "st", "nd", "rd"], j = T % 100;
|
|
6736
6752
|
return "[" + T + (E[(j - 20) % 10] || E[j] || E[0]) + "]";
|
|
6737
6753
|
} }, U = function(T, E, j) {
|
|
@@ -6742,21 +6758,21 @@ function Jo() {
|
|
|
6742
6758
|
return (E <= 0 ? "+" : "-") + U(o, 2, "0") + ":" + U(H, 2, "0");
|
|
6743
6759
|
}, m: function T(E, j) {
|
|
6744
6760
|
if (E.date() < j.date()) return -T(j, E);
|
|
6745
|
-
var o = 12 * (j.year() - E.year()) + (j.month() - E.month()), H = E.clone().add(o,
|
|
6761
|
+
var o = 12 * (j.year() - E.year()) + (j.month() - E.month()), H = E.clone().add(o, y), m = j - H < 0, n = E.clone().add(o + (m ? -1 : 1), y);
|
|
6746
6762
|
return +(-(o + (j - H) / (m ? H - n : n - H)) || 0);
|
|
6747
6763
|
}, a: function(T) {
|
|
6748
6764
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
6749
6765
|
}, p: function(T) {
|
|
6750
|
-
return { M:
|
|
6766
|
+
return { M: y, y: L, w: v, d: f, D: k, h: u, m: l, s: d, ms: s, Q: S }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
6751
6767
|
}, u: function(T) {
|
|
6752
6768
|
return T === void 0;
|
|
6753
|
-
} },
|
|
6754
|
-
w[
|
|
6769
|
+
} }, g = "en", w = {};
|
|
6770
|
+
w[g] = F;
|
|
6755
6771
|
var x = "$isDayjsObject", R = function(T) {
|
|
6756
6772
|
return T instanceof A || !(!T || !T[x]);
|
|
6757
|
-
},
|
|
6773
|
+
}, b = function T(E, j, o) {
|
|
6758
6774
|
var H;
|
|
6759
|
-
if (!E) return
|
|
6775
|
+
if (!E) return g;
|
|
6760
6776
|
if (typeof E == "string") {
|
|
6761
6777
|
var m = E.toLowerCase();
|
|
6762
6778
|
w[m] && (H = m), j && (w[m] = j, H = m);
|
|
@@ -6766,18 +6782,18 @@ function Jo() {
|
|
|
6766
6782
|
var c = E.name;
|
|
6767
6783
|
w[c] = E, H = c;
|
|
6768
6784
|
}
|
|
6769
|
-
return !o && H && (
|
|
6785
|
+
return !o && H && (g = H), H || !o && g;
|
|
6770
6786
|
}, h = function(T, E) {
|
|
6771
6787
|
if (R(T)) return T.clone();
|
|
6772
6788
|
var j = typeof E == "object" ? E : {};
|
|
6773
6789
|
return j.date = T, j.args = arguments, new A(j);
|
|
6774
6790
|
}, P = q;
|
|
6775
|
-
P.l =
|
|
6791
|
+
P.l = b, P.i = R, P.w = function(T, E) {
|
|
6776
6792
|
return h(T, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
6777
6793
|
};
|
|
6778
6794
|
var A = function() {
|
|
6779
6795
|
function T(j) {
|
|
6780
|
-
this.$L =
|
|
6796
|
+
this.$L = b(j.locale, null, !0), this.parse(j), this.$x = this.$x || j.x || {}, this[x] = !0;
|
|
6781
6797
|
}
|
|
6782
6798
|
var E = T.prototype;
|
|
6783
6799
|
return E.parse = function(j) {
|
|
@@ -6818,26 +6834,26 @@ function Jo() {
|
|
|
6818
6834
|
}, E.startOf = function(j, o) {
|
|
6819
6835
|
var H = this, m = !!P.u(o) || o, n = P.p(j), c = function(K, G) {
|
|
6820
6836
|
var J = P.w(H.$u ? Date.UTC(H.$y, G, K) : new Date(H.$y, G, K), H);
|
|
6821
|
-
return m ? J : J.endOf(
|
|
6837
|
+
return m ? J : J.endOf(f);
|
|
6822
6838
|
}, O = function(K, G) {
|
|
6823
6839
|
return P.w(H.toDate()[K].apply(H.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), H);
|
|
6824
6840
|
}, $ = this.$W, D = this.$M, z = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
6825
6841
|
switch (n) {
|
|
6826
6842
|
case L:
|
|
6827
6843
|
return m ? c(1, 0) : c(31, 11);
|
|
6828
|
-
case
|
|
6844
|
+
case y:
|
|
6829
6845
|
return m ? c(1, D) : c(0, D + 1);
|
|
6830
|
-
case
|
|
6846
|
+
case v:
|
|
6831
6847
|
var W = this.$locale().weekStart || 0, B = ($ < W ? $ + 7 : $) - W;
|
|
6832
6848
|
return c(m ? z - B : z + (6 - B), D);
|
|
6833
|
-
case
|
|
6849
|
+
case f:
|
|
6834
6850
|
case k:
|
|
6835
6851
|
return O(N + "Hours", 0);
|
|
6836
6852
|
case u:
|
|
6837
6853
|
return O(N + "Minutes", 1);
|
|
6838
6854
|
case l:
|
|
6839
6855
|
return O(N + "Seconds", 2);
|
|
6840
|
-
case
|
|
6856
|
+
case d:
|
|
6841
6857
|
return O(N + "Milliseconds", 3);
|
|
6842
6858
|
default:
|
|
6843
6859
|
return this.clone();
|
|
@@ -6845,8 +6861,8 @@ function Jo() {
|
|
|
6845
6861
|
}, E.endOf = function(j) {
|
|
6846
6862
|
return this.startOf(j, !1);
|
|
6847
6863
|
}, E.$set = function(j, o) {
|
|
6848
|
-
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""), c = (H = {}, H[
|
|
6849
|
-
if (m ===
|
|
6864
|
+
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""), c = (H = {}, H[f] = n + "Date", H[k] = n + "Date", H[y] = n + "Month", H[L] = n + "FullYear", H[u] = n + "Hours", H[l] = n + "Minutes", H[d] = n + "Seconds", H[s] = n + "Milliseconds", H)[m], O = m === f ? this.$D + (o - this.$W) : o;
|
|
6865
|
+
if (m === y || m === L) {
|
|
6850
6866
|
var $ = this.clone().set(k, 1);
|
|
6851
6867
|
$.$d[c](O), $.init(), this.$d = $.set(k, Math.min(this.$D, $.daysInMonth())).$d;
|
|
6852
6868
|
} else c && this.$d[c](O);
|
|
@@ -6862,11 +6878,11 @@ function Jo() {
|
|
|
6862
6878
|
var z = h(m);
|
|
6863
6879
|
return P.w(z.date(z.date() + Math.round(D * j)), m);
|
|
6864
6880
|
};
|
|
6865
|
-
if (n ===
|
|
6881
|
+
if (n === y) return this.set(y, this.$M + j);
|
|
6866
6882
|
if (n === L) return this.set(L, this.$y + j);
|
|
6867
|
-
if (n ===
|
|
6868
|
-
if (n ===
|
|
6869
|
-
var O = (H = {}, H[l] = i, H[u] = a, H[
|
|
6883
|
+
if (n === f) return c(1);
|
|
6884
|
+
if (n === v) return c(7);
|
|
6885
|
+
var O = (H = {}, H[l] = i, H[u] = a, H[d] = r, H)[n] || 1, $ = this.$d.getTime() + j * O;
|
|
6870
6886
|
return P.w($, this);
|
|
6871
6887
|
}, E.subtract = function(j, o) {
|
|
6872
6888
|
return this.add(-1 * j, o);
|
|
@@ -6946,16 +6962,16 @@ function Jo() {
|
|
|
6946
6962
|
case L:
|
|
6947
6963
|
m = z() / 12;
|
|
6948
6964
|
break;
|
|
6949
|
-
case
|
|
6965
|
+
case y:
|
|
6950
6966
|
m = z();
|
|
6951
6967
|
break;
|
|
6952
6968
|
case S:
|
|
6953
6969
|
m = z() / 3;
|
|
6954
6970
|
break;
|
|
6955
|
-
case
|
|
6971
|
+
case v:
|
|
6956
6972
|
m = (D - $) / 6048e5;
|
|
6957
6973
|
break;
|
|
6958
|
-
case
|
|
6974
|
+
case f:
|
|
6959
6975
|
m = (D - $) / 864e5;
|
|
6960
6976
|
break;
|
|
6961
6977
|
case u:
|
|
@@ -6964,7 +6980,7 @@ function Jo() {
|
|
|
6964
6980
|
case l:
|
|
6965
6981
|
m = D / i;
|
|
6966
6982
|
break;
|
|
6967
|
-
case
|
|
6983
|
+
case d:
|
|
6968
6984
|
m = D / r;
|
|
6969
6985
|
break;
|
|
6970
6986
|
default:
|
|
@@ -6972,12 +6988,12 @@ function Jo() {
|
|
|
6972
6988
|
}
|
|
6973
6989
|
return H ? m : P.a(m);
|
|
6974
6990
|
}, E.daysInMonth = function() {
|
|
6975
|
-
return this.endOf(
|
|
6991
|
+
return this.endOf(y).$D;
|
|
6976
6992
|
}, E.$locale = function() {
|
|
6977
6993
|
return w[this.$L];
|
|
6978
6994
|
}, E.locale = function(j, o) {
|
|
6979
6995
|
if (!j) return this.$L;
|
|
6980
|
-
var H = this.clone(), m =
|
|
6996
|
+
var H = this.clone(), m = b(j, o, !0);
|
|
6981
6997
|
return m && (H.$L = m), H;
|
|
6982
6998
|
}, E.clone = function() {
|
|
6983
6999
|
return P.w(this.$d, this);
|
|
@@ -6991,15 +7007,15 @@ function Jo() {
|
|
|
6991
7007
|
return this.$d.toUTCString();
|
|
6992
7008
|
}, T;
|
|
6993
7009
|
}(), _ = A.prototype;
|
|
6994
|
-
return h.prototype = _, [["$ms", s], ["$s",
|
|
7010
|
+
return h.prototype = _, [["$ms", s], ["$s", d], ["$m", l], ["$H", u], ["$W", f], ["$M", y], ["$y", L], ["$D", k]].forEach(function(T) {
|
|
6995
7011
|
_[T[1]] = function(E) {
|
|
6996
7012
|
return this.$g(E, T[0], T[1]);
|
|
6997
7013
|
};
|
|
6998
7014
|
}), h.extend = function(T, E) {
|
|
6999
7015
|
return T.$i || (T(E, A, h), T.$i = !0), h;
|
|
7000
|
-
}, h.locale =
|
|
7016
|
+
}, h.locale = b, h.isDayjs = R, h.unix = function(T) {
|
|
7001
7017
|
return h(1e3 * T);
|
|
7002
|
-
}, h.en = w[
|
|
7018
|
+
}, h.en = w[g], h.Ls = w, h.p = {}, h;
|
|
7003
7019
|
});
|
|
7004
7020
|
}(ft)), ft.exports;
|
|
7005
7021
|
}
|
|
@@ -7012,38 +7028,38 @@ function es() {
|
|
|
7012
7028
|
e.exports = i();
|
|
7013
7029
|
})(Qo, function() {
|
|
7014
7030
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
|
|
7015
|
-
return function(s,
|
|
7016
|
-
var u =
|
|
7031
|
+
return function(s, d, l) {
|
|
7032
|
+
var u = d.prototype;
|
|
7017
7033
|
l.utc = function(p) {
|
|
7018
7034
|
var I = { date: p, utc: !0, args: arguments };
|
|
7019
|
-
return new
|
|
7035
|
+
return new d(I);
|
|
7020
7036
|
}, u.utc = function(p) {
|
|
7021
7037
|
var I = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
7022
7038
|
return p ? I.add(this.utcOffset(), r) : I;
|
|
7023
7039
|
}, u.local = function() {
|
|
7024
7040
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
7025
7041
|
};
|
|
7026
|
-
var
|
|
7042
|
+
var f = u.parse;
|
|
7027
7043
|
u.parse = function(p) {
|
|
7028
|
-
p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset),
|
|
7044
|
+
p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), f.call(this, p);
|
|
7029
7045
|
};
|
|
7030
|
-
var
|
|
7046
|
+
var v = u.init;
|
|
7031
7047
|
u.init = function() {
|
|
7032
7048
|
if (this.$u) {
|
|
7033
7049
|
var p = this.$d;
|
|
7034
7050
|
this.$y = p.getUTCFullYear(), this.$M = p.getUTCMonth(), this.$D = p.getUTCDate(), this.$W = p.getUTCDay(), this.$H = p.getUTCHours(), this.$m = p.getUTCMinutes(), this.$s = p.getUTCSeconds(), this.$ms = p.getUTCMilliseconds();
|
|
7035
|
-
} else
|
|
7051
|
+
} else v.call(this);
|
|
7036
7052
|
};
|
|
7037
|
-
var
|
|
7053
|
+
var y = u.utcOffset;
|
|
7038
7054
|
u.utcOffset = function(p, I) {
|
|
7039
7055
|
var C = this.$utils().u;
|
|
7040
|
-
if (C(p)) return this.$u ? 0 : C(this.$offset) ?
|
|
7041
|
-
if (typeof p == "string" && (p = function(
|
|
7042
|
-
|
|
7043
|
-
var w =
|
|
7056
|
+
if (C(p)) return this.$u ? 0 : C(this.$offset) ? y.call(this) : this.$offset;
|
|
7057
|
+
if (typeof p == "string" && (p = function(g) {
|
|
7058
|
+
g === void 0 && (g = "");
|
|
7059
|
+
var w = g.match(i);
|
|
7044
7060
|
if (!w) return null;
|
|
7045
|
-
var x = ("" + w[0]).match(a) || ["-", 0, 0], R = x[0],
|
|
7046
|
-
return
|
|
7061
|
+
var x = ("" + w[0]).match(a) || ["-", 0, 0], R = x[0], b = 60 * +x[1] + +x[2];
|
|
7062
|
+
return b === 0 ? 0 : R === "+" ? b : -b;
|
|
7047
7063
|
}(p), p === null)) return this;
|
|
7048
7064
|
var F = Math.abs(p) <= 16 ? 60 * p : p;
|
|
7049
7065
|
if (F === 0) return this.utc(I);
|
|
@@ -7105,12 +7121,12 @@ class Ps {
|
|
|
7105
7121
|
static isSameDate = (t, r) => t?.getFullYear() === r?.getFullYear() && t?.getMonth() === r?.getMonth() && t?.getDate() === r?.getDate();
|
|
7106
7122
|
static getDateInUTC = (t) => {
|
|
7107
7123
|
try {
|
|
7108
|
-
const r = dt.utc(t), i = r.date(), a = r.month(), s = r.year(),
|
|
7124
|
+
const r = dt.utc(t), i = r.date(), a = r.month(), s = r.year(), d = r.hour(), l = r.minute(), u = r.day();
|
|
7109
7125
|
return {
|
|
7110
7126
|
day: i,
|
|
7111
7127
|
month: a,
|
|
7112
7128
|
year: s,
|
|
7113
|
-
hour:
|
|
7129
|
+
hour: d,
|
|
7114
7130
|
minute: l,
|
|
7115
7131
|
weekday: u
|
|
7116
7132
|
};
|
|
@@ -7161,7 +7177,7 @@ const Es = ({
|
|
|
7161
7177
|
customCheckedRender: a,
|
|
7162
7178
|
customUncheckedRender: s
|
|
7163
7179
|
}) => {
|
|
7164
|
-
const
|
|
7180
|
+
const d = e ? { ...r, ...i } : { ...r };
|
|
7165
7181
|
return /* @__PURE__ */ X.jsxs(
|
|
7166
7182
|
"div",
|
|
7167
7183
|
{
|
|
@@ -7179,7 +7195,7 @@ const Es = ({
|
|
|
7179
7195
|
alignItems: "center",
|
|
7180
7196
|
justifyContent: "center",
|
|
7181
7197
|
display: "flex",
|
|
7182
|
-
...
|
|
7198
|
+
...d
|
|
7183
7199
|
},
|
|
7184
7200
|
children: [
|
|
7185
7201
|
e && /* @__PURE__ */ X.jsxs(X.Fragment, { children: [
|
|
@@ -7207,7 +7223,7 @@ const Es = ({
|
|
|
7207
7223
|
stroke: i,
|
|
7208
7224
|
viewBox: a = "0 0 22 28",
|
|
7209
7225
|
fill: s = "#000000",
|
|
7210
|
-
alt:
|
|
7226
|
+
alt: d = "",
|
|
7211
7227
|
onClick: l,
|
|
7212
7228
|
styles: u
|
|
7213
7229
|
}) => /* @__PURE__ */ X.jsx(
|
|
@@ -7267,21 +7283,21 @@ const Es = ({
|
|
|
7267
7283
|
rightIcon: i,
|
|
7268
7284
|
bottomMessage: a,
|
|
7269
7285
|
placeHolder: s,
|
|
7270
|
-
value:
|
|
7286
|
+
value: d,
|
|
7271
7287
|
initialValue: l,
|
|
7272
7288
|
onChange: u,
|
|
7273
|
-
onFocus:
|
|
7274
|
-
onBlur:
|
|
7275
|
-
inputStyles:
|
|
7289
|
+
onFocus: f,
|
|
7290
|
+
onBlur: v,
|
|
7291
|
+
inputStyles: y,
|
|
7276
7292
|
containerStyles: S,
|
|
7277
7293
|
styles: L
|
|
7278
7294
|
}) => {
|
|
7279
7295
|
const k = (C) => {
|
|
7280
7296
|
u?.(C.currentTarget.value);
|
|
7281
7297
|
}, p = (C) => {
|
|
7282
|
-
C.preventDefault(), C.stopPropagation(),
|
|
7298
|
+
C.preventDefault(), C.stopPropagation(), f?.();
|
|
7283
7299
|
}, I = (C) => {
|
|
7284
|
-
|
|
7300
|
+
v?.();
|
|
7285
7301
|
};
|
|
7286
7302
|
return /* @__PURE__ */ X.jsxs(
|
|
7287
7303
|
ns,
|
|
@@ -7332,10 +7348,10 @@ const Es = ({
|
|
|
7332
7348
|
outline: "inherit",
|
|
7333
7349
|
background: "none",
|
|
7334
7350
|
minHeight: "47px",
|
|
7335
|
-
...
|
|
7351
|
+
...y
|
|
7336
7352
|
},
|
|
7337
7353
|
placeholder: s,
|
|
7338
|
-
value:
|
|
7354
|
+
value: d,
|
|
7339
7355
|
defaultValue: l,
|
|
7340
7356
|
onChange: k,
|
|
7341
7357
|
onFocus: p,
|
|
@@ -7356,11 +7372,11 @@ const Es = ({
|
|
|
7356
7372
|
styles: r,
|
|
7357
7373
|
durationInSeconds: i = 3
|
|
7358
7374
|
}) => {
|
|
7359
|
-
const a = V.useRef(!1), { isItemVisible: s, hideItem:
|
|
7375
|
+
const a = V.useRef(!1), { isItemVisible: s, hideItem: d } = Ct();
|
|
7360
7376
|
return V.useEffect(() => {
|
|
7361
7377
|
const l = s(e);
|
|
7362
|
-
a.current !== l && (a.current = l, l && setTimeout(() =>
|
|
7363
|
-
}, [a, s,
|
|
7378
|
+
a.current !== l && (a.current = l, l && setTimeout(() => d(e), i * 1e3));
|
|
7379
|
+
}, [a, s, d]), /* @__PURE__ */ X.jsx(X.Fragment, { children: s(e) && /* @__PURE__ */ X.jsx(
|
|
7364
7380
|
"div",
|
|
7365
7381
|
{
|
|
7366
7382
|
style: {
|