@eliseubatista99/react-scaffold-core 1.1.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/dist/hooks/useFetch/useFetch.d.ts +3 -2
- package/dist/index.cjs.js +11 -11
- package/dist/index.es.js +724 -711
- package/package.json +1 -1
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,7 +85,7 @@ 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";
|
|
@@ -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,7 +211,7 @@ 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 ($)
|
|
@@ -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,
|
|
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
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(
|
|
380
|
+
function I(g, w, x) {
|
|
381
381
|
var R, b, h, P, A, _, T = 0, E = !1, j = !1, o = !0;
|
|
382
|
-
if (typeof
|
|
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
386
|
var B = R, K = b;
|
|
387
|
-
return R = b = void 0, T = W, P =
|
|
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;
|
|
@@ -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,10 +622,10 @@ 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) {
|
|
@@ -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 = {
|
|
@@ -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;
|
|
@@ -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];
|
|
@@ -978,7 +978,7 @@ function Dn() {
|
|
|
978
978
|
return b;
|
|
979
979
|
}, s.apply(null, arguments);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function d(b, h) {
|
|
982
982
|
if (!(b instanceof h)) throw new TypeError("Cannot call a class as a function");
|
|
983
983
|
}
|
|
984
984
|
function l(b, h) {
|
|
@@ -990,14 +990,14 @@ function Dn() {
|
|
|
990
990
|
function u(b, h, P) {
|
|
991
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
|
-
b.prototype = Object.create(h && h.prototype, { constructor: { value: b, writable: !0, configurable: !0 } }), Object.defineProperty(b, "prototype", { writable: !1 }), h &&
|
|
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
1002
|
function y(b) {
|
|
1003
1003
|
var h = k();
|
|
@@ -1072,7 +1072,7 @@ function Dn() {
|
|
|
1072
1072
|
}
|
|
1073
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),
|
|
@@ -1149,11 +1149,11 @@ function Dn() {
|
|
|
1149
1149
|
}), h.rtl ? _.concat(A, T).reverse() : _.concat(A, T);
|
|
1150
1150
|
};
|
|
1151
1151
|
return Fe.Track = /* @__PURE__ */ function(b) {
|
|
1152
|
-
|
|
1152
|
+
f(P, b);
|
|
1153
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,84 +1181,84 @@ 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(
|
|
1202
|
+
var R = Object.getOwnPropertySymbols(g);
|
|
1203
1203
|
w && (R = R.filter(function(b) {
|
|
1204
|
-
return Object.getOwnPropertyDescriptor(
|
|
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 = y(w)) in
|
|
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 y(
|
|
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
1263
|
var b = U(this).constructor;
|
|
1264
1264
|
x = Reflect.construct(R, arguments, b);
|
|
@@ -1266,41 +1266,41 @@ function Mn() {
|
|
|
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
1305
|
value: function(b, h) {
|
|
1306
1306
|
h.preventDefault(), this.props.clickHandler(b);
|
|
@@ -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,94 +1344,94 @@ 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(
|
|
1375
|
+
var R = Object.getOwnPropertySymbols(g);
|
|
1376
1376
|
w && (R = R.filter(function(b) {
|
|
1377
|
-
return Object.getOwnPropertyDescriptor(
|
|
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 y(
|
|
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
1436
|
var b = q(this).constructor;
|
|
1437
1437
|
x = Reflect.construct(R, arguments, b);
|
|
@@ -1439,35 +1439,35 @@ function $n() {
|
|
|
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
1472
|
return y(x, [{
|
|
1473
1473
|
key: "clickHandler",
|
|
@@ -1502,11 +1502,11 @@ 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
1511
|
return y(x, [{
|
|
1512
1512
|
key: "clickHandler",
|
|
@@ -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,17 +1840,17 @@ 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
1855
|
function y() {
|
|
1856
1856
|
return y = Object.assign ? Object.assign.bind() : function(_) {
|
|
@@ -1924,7 +1924,7 @@ 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
1930
|
var E, j = b(_);
|
|
@@ -1936,7 +1936,7 @@ function ri() {
|
|
|
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
|
}
|
|
@@ -1964,21 +1964,21 @@ function ri() {
|
|
|
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));
|
|
@@ -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,8 +2406,8 @@ 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) {
|
|
@@ -2428,7 +2428,7 @@ function ai() {
|
|
|
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);
|
|
@@ -2438,12 +2438,12 @@ function ai() {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
return h;
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2441
|
+
function v(R) {
|
|
2442
2442
|
for (var b = 1; b < arguments.length; b++) {
|
|
2443
2443
|
var h = arguments[b] != null ? arguments[b] : {};
|
|
2444
|
-
b % 2 ?
|
|
2445
|
-
|
|
2446
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(h)) :
|
|
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
|
}
|
|
@@ -2505,7 +2505,7 @@ function ai() {
|
|
|
2505
2505
|
return b.__proto__ || Object.getPrototypeOf(b);
|
|
2506
2506
|
}, q(R);
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2508
|
+
function g(R, b, h) {
|
|
2509
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) {
|
|
@@ -2527,18 +2527,18 @@ function ai() {
|
|
|
2527
2527
|
var b = I(h);
|
|
2528
2528
|
function h(P) {
|
|
2529
2529
|
var A;
|
|
2530
|
-
return y(this, h), A = b.call(this, P),
|
|
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,8 +2865,8 @@ 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:
|
|
@@ -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,7 +2915,7 @@ function lt(e, t, r, i, a, s, f, l, u) {
|
|
|
2915
2915
|
case 125:
|
|
2916
2916
|
I = 0;
|
|
2917
2917
|
// ;
|
|
2918
|
-
case 59 +
|
|
2918
|
+
case 59 + v:
|
|
2919
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
|
// @ ;
|
|
@@ -2923,9 +2923,9 @@ function lt(e, t, r, i, a, s, f, l, u) {
|
|
|
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, y, l,
|
|
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,13 +2933,13 @@ 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 = [], y),
|
|
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:
|
|
@@ -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,
|
|
2974
|
+
function br(e, t, r, i, a, s, d, l, u, f, v) {
|
|
2975
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 =
|
|
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 y = t[
|
|
3456
|
-
return y !== void 0 ? y :
|
|
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,9 +3503,9 @@ function qi(e, t, r) {
|
|
|
3503
3503
|
a += u[l];
|
|
3504
3504
|
}
|
|
3505
3505
|
kr.lastIndex = 0;
|
|
3506
|
-
for (var
|
|
3507
|
-
|
|
3508
|
-
var y = Fi(a) +
|
|
3506
|
+
for (var f = "", v; (v = kr.exec(a)) !== null; )
|
|
3507
|
+
f += "-" + v[1];
|
|
3508
|
+
var y = Fi(a) + f;
|
|
3509
3509
|
return {
|
|
3510
3510
|
name: y,
|
|
3511
3511
|
styles: a,
|
|
@@ -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,33 +3558,33 @@ 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 && y.push("label:" + s + ";"),
|
|
3567
|
-
y.push.apply(y,
|
|
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 =
|
|
3569
|
+
var S = v[0];
|
|
3570
3570
|
y.push(S[0]);
|
|
3571
|
-
for (var L =
|
|
3572
|
-
y.push(
|
|
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(y.concat(
|
|
3584
|
-
q += C.key + "-" + R.name,
|
|
3585
|
-
var b =
|
|
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,
|
|
@@ -3593,7 +3593,7 @@ var Ki = function(t) {
|
|
|
3593
3593
|
});
|
|
3594
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, {
|
|
@@ -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,
|
|
@@ -3861,12 +3861,12 @@ const aa = Ee.div`
|
|
|
3861
3861
|
"data-testid": "carousel-slide-item",
|
|
3862
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 y = (
|
|
3869
|
+
const y = (d.current?.offsetWidth || i + 1) - i, S = l.current?.offsetWidth || 1;
|
|
3870
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
3872
|
container: y,
|
|
@@ -3875,8 +3875,8 @@ const aa = Ee.div`
|
|
|
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
|
-
[
|
|
4001
|
+
[f]
|
|
4002
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,68 +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
|
-
}, [
|
|
4031
|
+
}, [d]), V.useEffect(() => {
|
|
4032
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
|
|
4049
4062
|
});
|
|
4050
|
-
return
|
|
4063
|
+
return t(S);
|
|
4051
4064
|
};
|
|
4052
4065
|
return {
|
|
4053
|
-
get: async (
|
|
4054
|
-
const
|
|
4055
|
-
return
|
|
4066
|
+
get: async (u, f, v) => {
|
|
4067
|
+
const y = e(u, f);
|
|
4068
|
+
return r(y, "GET", { ...v });
|
|
4056
4069
|
},
|
|
4057
|
-
post: async (
|
|
4058
|
-
|
|
4070
|
+
post: async (u, f, v) => r(
|
|
4071
|
+
u,
|
|
4059
4072
|
"POST",
|
|
4060
|
-
{ "Content-Type": "application/json", ...
|
|
4061
|
-
JSON.stringify(
|
|
4073
|
+
{ "Content-Type": "application/json", ...v },
|
|
4074
|
+
JSON.stringify(f)
|
|
4062
4075
|
),
|
|
4063
|
-
put: async (
|
|
4064
|
-
|
|
4076
|
+
put: async (u, f, v) => r(
|
|
4077
|
+
u,
|
|
4065
4078
|
"PUT",
|
|
4066
|
-
{ "Content-Type": "application/json", ...
|
|
4067
|
-
JSON.stringify(
|
|
4079
|
+
{ "Content-Type": "application/json", ...v },
|
|
4080
|
+
JSON.stringify(f)
|
|
4068
4081
|
),
|
|
4069
|
-
patch: async (
|
|
4070
|
-
|
|
4082
|
+
patch: async (u, f, v) => r(
|
|
4083
|
+
u,
|
|
4071
4084
|
"PATCH",
|
|
4072
|
-
{ "Content-Type": "application/json", ...
|
|
4073
|
-
JSON.stringify(
|
|
4085
|
+
{ "Content-Type": "application/json", ...v },
|
|
4086
|
+
JSON.stringify(f)
|
|
4074
4087
|
),
|
|
4075
|
-
delete: async (
|
|
4076
|
-
const
|
|
4077
|
-
return
|
|
4088
|
+
delete: async (u, f, v) => {
|
|
4089
|
+
const y = e(u, f);
|
|
4090
|
+
return r(y, "DELETE", { ...v });
|
|
4078
4091
|
}
|
|
4079
4092
|
};
|
|
4080
4093
|
};
|
|
@@ -4110,20 +4123,20 @@ const ua = {
|
|
|
4110
4123
|
const t = window.innerWidth, r = window.innerHeight, i = ca(t, e), a = fa(t, e);
|
|
4111
4124
|
return { currentWidth: t, currentHeight: r, currentBreakpoint: i, currentSize: a };
|
|
4112
4125
|
}, ds = (e) => {
|
|
4113
|
-
const t = e.translations, r = e.language, i = (s,
|
|
4126
|
+
const t = e.translations, r = e.language, i = (s, d) => {
|
|
4114
4127
|
if (!s)
|
|
4115
4128
|
return;
|
|
4116
4129
|
let l = s[r];
|
|
4117
4130
|
if (l)
|
|
4118
|
-
return
|
|
4119
|
-
const
|
|
4120
|
-
l = l.replaceAll(`{{${u}}}`, `${
|
|
4131
|
+
return d && Object.keys(d).forEach((u) => {
|
|
4132
|
+
const f = d[u];
|
|
4133
|
+
l = l.replaceAll(`{{${u}}}`, `${f}`);
|
|
4121
4134
|
}), l;
|
|
4122
4135
|
};
|
|
4123
4136
|
return {
|
|
4124
|
-
t: (s,
|
|
4137
|
+
t: (s, d) => {
|
|
4125
4138
|
if (t[s]) {
|
|
4126
|
-
const l = i(t[s],
|
|
4139
|
+
const l = i(t[s], d);
|
|
4127
4140
|
return l ?? s;
|
|
4128
4141
|
}
|
|
4129
4142
|
return s;
|
|
@@ -4134,17 +4147,17 @@ const ua = {
|
|
|
4134
4147
|
var Ye = {}, Rr;
|
|
4135
4148
|
function da() {
|
|
4136
4149
|
if (Rr) return Ye;
|
|
4137
|
-
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;
|
|
4138
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__ */ (() => {
|
|
4139
4152
|
const S = function() {
|
|
4140
4153
|
};
|
|
4141
4154
|
return S.prototype = /* @__PURE__ */ Object.create(null), S;
|
|
4142
4155
|
})();
|
|
4143
|
-
function
|
|
4156
|
+
function d(S, L) {
|
|
4144
4157
|
const k = new s(), p = S.length;
|
|
4145
4158
|
if (p < 2)
|
|
4146
4159
|
return k;
|
|
4147
|
-
const I = L?.decode ||
|
|
4160
|
+
const I = L?.decode || v;
|
|
4148
4161
|
let C = 0;
|
|
4149
4162
|
do {
|
|
4150
4163
|
const F = S.indexOf("=", C);
|
|
@@ -4155,7 +4168,7 @@ function da() {
|
|
|
4155
4168
|
C = S.lastIndexOf(";", F - 1) + 1;
|
|
4156
4169
|
continue;
|
|
4157
4170
|
}
|
|
4158
|
-
const
|
|
4171
|
+
const g = l(S, C, F), w = u(S, F, g), x = S.slice(g, w);
|
|
4159
4172
|
if (k[x] === void 0) {
|
|
4160
4173
|
let R = l(S, F + 1, q), b = u(S, q, R);
|
|
4161
4174
|
const h = I(S.slice(R, b));
|
|
@@ -4181,7 +4194,7 @@ function da() {
|
|
|
4181
4194
|
}
|
|
4182
4195
|
return k;
|
|
4183
4196
|
}
|
|
4184
|
-
function
|
|
4197
|
+
function f(S, L, k) {
|
|
4185
4198
|
const p = k?.encode || encodeURIComponent;
|
|
4186
4199
|
if (!e.test(S))
|
|
4187
4200
|
throw new TypeError(`argument name is invalid: ${S}`);
|
|
@@ -4242,7 +4255,7 @@ function da() {
|
|
|
4242
4255
|
}
|
|
4243
4256
|
return C;
|
|
4244
4257
|
}
|
|
4245
|
-
function
|
|
4258
|
+
function v(S) {
|
|
4246
4259
|
if (S.indexOf("%") === -1)
|
|
4247
4260
|
return S;
|
|
4248
4261
|
try {
|
|
@@ -4270,10 +4283,10 @@ da();
|
|
|
4270
4283
|
var _r = "popstate";
|
|
4271
4284
|
function ha(e = {}) {
|
|
4272
4285
|
function t(i, a) {
|
|
4273
|
-
let { pathname: s, search:
|
|
4286
|
+
let { pathname: s, search: d, hash: l } = i.location;
|
|
4274
4287
|
return Ft(
|
|
4275
4288
|
"",
|
|
4276
|
-
{ pathname: s, search:
|
|
4289
|
+
{ pathname: s, search: d, hash: l },
|
|
4277
4290
|
// state defaults to `null` because `window.history.state` does
|
|
4278
4291
|
a.state && a.state.usr || null,
|
|
4279
4292
|
a.state && a.state.key || "default"
|
|
@@ -4344,26 +4357,26 @@ function Me(e) {
|
|
|
4344
4357
|
return t;
|
|
4345
4358
|
}
|
|
4346
4359
|
function ma(e, t, r, i = {}) {
|
|
4347
|
-
let { window: a = document.defaultView, v5Compat: s = !1 } = i,
|
|
4348
|
-
|
|
4349
|
-
function
|
|
4350
|
-
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;
|
|
4351
4364
|
}
|
|
4352
4365
|
function y() {
|
|
4353
4366
|
l = "POP";
|
|
4354
|
-
let I =
|
|
4355
|
-
|
|
4367
|
+
let I = v(), C = I == null ? null : I - f;
|
|
4368
|
+
f = I, u && u({ action: l, location: p.location, delta: C });
|
|
4356
4369
|
}
|
|
4357
4370
|
function S(I, C) {
|
|
4358
4371
|
l = "PUSH";
|
|
4359
4372
|
let F = Ft(p.location, I, C);
|
|
4360
|
-
|
|
4361
|
-
let U = Tr(F,
|
|
4373
|
+
f = v() + 1;
|
|
4374
|
+
let U = Tr(F, f), q = p.createHref(F);
|
|
4362
4375
|
try {
|
|
4363
|
-
|
|
4364
|
-
} catch (
|
|
4365
|
-
if (
|
|
4366
|
-
throw
|
|
4376
|
+
d.pushState(U, "", q);
|
|
4377
|
+
} catch (g) {
|
|
4378
|
+
if (g instanceof DOMException && g.name === "DataCloneError")
|
|
4379
|
+
throw g;
|
|
4367
4380
|
a.location.assign(q);
|
|
4368
4381
|
}
|
|
4369
4382
|
s && u && u({ action: l, location: p.location, delta: 1 });
|
|
@@ -4371,9 +4384,9 @@ function ma(e, t, r, i = {}) {
|
|
|
4371
4384
|
function L(I, C) {
|
|
4372
4385
|
l = "REPLACE";
|
|
4373
4386
|
let F = Ft(p.location, I, C);
|
|
4374
|
-
|
|
4375
|
-
let U = Tr(F,
|
|
4376
|
-
|
|
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 });
|
|
4377
4390
|
}
|
|
4378
4391
|
function k(I) {
|
|
4379
4392
|
return va(I);
|
|
@@ -4383,7 +4396,7 @@ function ma(e, t, r, i = {}) {
|
|
|
4383
4396
|
return l;
|
|
4384
4397
|
},
|
|
4385
4398
|
get location() {
|
|
4386
|
-
return e(a,
|
|
4399
|
+
return e(a, d);
|
|
4387
4400
|
},
|
|
4388
4401
|
listen(I) {
|
|
4389
4402
|
if (u)
|
|
@@ -4407,7 +4420,7 @@ function ma(e, t, r, i = {}) {
|
|
|
4407
4420
|
push: S,
|
|
4408
4421
|
replace: L,
|
|
4409
4422
|
go(I) {
|
|
4410
|
-
return
|
|
4423
|
+
return d.go(I);
|
|
4411
4424
|
}
|
|
4412
4425
|
};
|
|
4413
4426
|
return p;
|
|
@@ -4425,49 +4438,49 @@ function ga(e, t, r, i) {
|
|
|
4425
4438
|
let a = typeof t == "string" ? Me(t) : t, s = Oe(a.pathname || "/", r);
|
|
4426
4439
|
if (s == null)
|
|
4427
4440
|
return null;
|
|
4428
|
-
let
|
|
4429
|
-
ya(
|
|
4441
|
+
let d = nn(e);
|
|
4442
|
+
ya(d);
|
|
4430
4443
|
let l = null;
|
|
4431
|
-
for (let u = 0; l == null && u <
|
|
4432
|
-
let
|
|
4444
|
+
for (let u = 0; l == null && u < d.length; ++u) {
|
|
4445
|
+
let f = _a(s);
|
|
4433
4446
|
l = Ea(
|
|
4434
|
-
|
|
4435
|
-
|
|
4447
|
+
d[u],
|
|
4448
|
+
f,
|
|
4436
4449
|
i
|
|
4437
4450
|
);
|
|
4438
4451
|
}
|
|
4439
4452
|
return l;
|
|
4440
4453
|
}
|
|
4441
4454
|
function nn(e, t = [], r = [], i = "") {
|
|
4442
|
-
let a = (s,
|
|
4455
|
+
let a = (s, d, l) => {
|
|
4443
4456
|
let u = {
|
|
4444
4457
|
relativePath: l === void 0 ? s.path || "" : l,
|
|
4445
4458
|
caseSensitive: s.caseSensitive === !0,
|
|
4446
|
-
childrenIndex:
|
|
4459
|
+
childrenIndex: d,
|
|
4447
4460
|
route: s
|
|
4448
4461
|
};
|
|
4449
4462
|
u.relativePath.startsWith("/") && (ae(
|
|
4450
4463
|
u.relativePath.startsWith(i),
|
|
4451
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.`
|
|
4452
4465
|
), u.relativePath = u.relativePath.slice(i.length));
|
|
4453
|
-
let
|
|
4466
|
+
let f = xe([i, u.relativePath]), v = r.concat(u);
|
|
4454
4467
|
s.children && s.children.length > 0 && (ae(
|
|
4455
4468
|
// Our types know better, but runtime JS may not!
|
|
4456
4469
|
// @ts-expect-error
|
|
4457
4470
|
s.index !== !0,
|
|
4458
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${
|
|
4459
|
-
), nn(s.children, t,
|
|
4460
|
-
path:
|
|
4461
|
-
score: Ca(
|
|
4462
|
-
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
|
|
4463
4476
|
});
|
|
4464
4477
|
};
|
|
4465
|
-
return e.forEach((s,
|
|
4478
|
+
return e.forEach((s, d) => {
|
|
4466
4479
|
if (s.path === "" || !s.path?.includes("?"))
|
|
4467
|
-
a(s,
|
|
4480
|
+
a(s, d);
|
|
4468
4481
|
else
|
|
4469
4482
|
for (let l of an(s.path))
|
|
4470
|
-
a(s,
|
|
4483
|
+
a(s, d, l);
|
|
4471
4484
|
}), t;
|
|
4472
4485
|
}
|
|
4473
4486
|
function an(e) {
|
|
@@ -4476,12 +4489,12 @@ function an(e) {
|
|
|
4476
4489
|
let [r, ...i] = t, a = r.endsWith("?"), s = r.replace(/\?$/, "");
|
|
4477
4490
|
if (i.length === 0)
|
|
4478
4491
|
return a ? [s, ""] : [s];
|
|
4479
|
-
let
|
|
4492
|
+
let d = an(i.join("/")), l = [];
|
|
4480
4493
|
return l.push(
|
|
4481
|
-
...
|
|
4494
|
+
...d.map(
|
|
4482
4495
|
(u) => u === "" ? s : [s, u].join("/")
|
|
4483
4496
|
)
|
|
4484
|
-
), a && l.push(...
|
|
4497
|
+
), a && l.push(...d), l.map(
|
|
4485
4498
|
(u) => e.startsWith("/") && u === "" ? "/" : u
|
|
4486
4499
|
);
|
|
4487
4500
|
}
|
|
@@ -4515,22 +4528,22 @@ function Pa(e, t) {
|
|
|
4515
4528
|
);
|
|
4516
4529
|
}
|
|
4517
4530
|
function Ea(e, t, r = !1) {
|
|
4518
|
-
let { routesMeta: i } = e, a = {}, s = "/",
|
|
4531
|
+
let { routesMeta: i } = e, a = {}, s = "/", d = [];
|
|
4519
4532
|
for (let l = 0; l < i.length; ++l) {
|
|
4520
|
-
let u = i[l],
|
|
4521
|
-
{ path: u.relativePath, caseSensitive: u.caseSensitive, end:
|
|
4522
|
-
|
|
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
|
|
4523
4536
|
), S = u.route;
|
|
4524
|
-
if (!y &&
|
|
4537
|
+
if (!y && f && r && !i[i.length - 1].route.index && (y = gt(
|
|
4525
4538
|
{
|
|
4526
4539
|
path: u.relativePath,
|
|
4527
4540
|
caseSensitive: u.caseSensitive,
|
|
4528
4541
|
end: !1
|
|
4529
4542
|
},
|
|
4530
|
-
|
|
4543
|
+
v
|
|
4531
4544
|
)), !y)
|
|
4532
4545
|
return null;
|
|
4533
|
-
Object.assign(a, y.params),
|
|
4546
|
+
Object.assign(a, y.params), d.push({
|
|
4534
4547
|
// TODO: Can this as be avoided?
|
|
4535
4548
|
params: a,
|
|
4536
4549
|
pathname: xe([s, y.pathname]),
|
|
@@ -4540,7 +4553,7 @@ function Ea(e, t, r = !1) {
|
|
|
4540
4553
|
route: S
|
|
4541
4554
|
}), y.pathnameBase !== "/" && (s = xe([s, y.pathnameBase]));
|
|
4542
4555
|
}
|
|
4543
|
-
return
|
|
4556
|
+
return d;
|
|
4544
4557
|
}
|
|
4545
4558
|
function gt(e, t) {
|
|
4546
4559
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
@@ -4550,21 +4563,21 @@ function gt(e, t) {
|
|
|
4550
4563
|
e.end
|
|
4551
4564
|
), a = t.match(r);
|
|
4552
4565
|
if (!a) return null;
|
|
4553
|
-
let s = a[0],
|
|
4566
|
+
let s = a[0], d = s.replace(/(.)\/+$/, "$1"), l = a.slice(1);
|
|
4554
4567
|
return {
|
|
4555
4568
|
params: i.reduce(
|
|
4556
|
-
(
|
|
4557
|
-
if (
|
|
4569
|
+
(f, { paramName: v, isOptional: y }, S) => {
|
|
4570
|
+
if (v === "*") {
|
|
4558
4571
|
let k = l[S] || "";
|
|
4559
|
-
|
|
4572
|
+
d = s.slice(0, s.length - k.length).replace(/(.)\/+$/, "$1");
|
|
4560
4573
|
}
|
|
4561
4574
|
const L = l[S];
|
|
4562
|
-
return y && !L ?
|
|
4575
|
+
return y && !L ? f[v] = void 0 : f[v] = (L || "").replace(/%2F/g, "/"), f;
|
|
4563
4576
|
},
|
|
4564
4577
|
{}
|
|
4565
4578
|
),
|
|
4566
4579
|
pathname: s,
|
|
4567
|
-
pathnameBase:
|
|
4580
|
+
pathnameBase: d,
|
|
4568
4581
|
pattern: e
|
|
4569
4582
|
};
|
|
4570
4583
|
}
|
|
@@ -4575,7 +4588,7 @@ function Ra(e, t = !1, r = !0) {
|
|
|
4575
4588
|
);
|
|
4576
4589
|
let i = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
4577
4590
|
/\/:([\w-]+)(\?)?/g,
|
|
4578
|
-
(
|
|
4591
|
+
(d, l, u) => (i.push({ paramName: l, isOptional: u != null }), u ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
4579
4592
|
);
|
|
4580
4593
|
return e.endsWith("*") ? (i.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, t ? void 0 : "i"), i];
|
|
4581
4594
|
}
|
|
@@ -4642,21 +4655,21 @@ function sn(e, t, r, i = !1) {
|
|
|
4642
4655
|
!a.search || !a.search.includes("#"),
|
|
4643
4656
|
$t("#", "search", "hash", a)
|
|
4644
4657
|
));
|
|
4645
|
-
let s = e === "" || a.pathname === "",
|
|
4646
|
-
if (
|
|
4658
|
+
let s = e === "" || a.pathname === "", d = s ? "/" : a.pathname, l;
|
|
4659
|
+
if (d == null)
|
|
4647
4660
|
l = r;
|
|
4648
4661
|
else {
|
|
4649
4662
|
let y = t.length - 1;
|
|
4650
|
-
if (!i &&
|
|
4651
|
-
let S =
|
|
4663
|
+
if (!i && d.startsWith("..")) {
|
|
4664
|
+
let S = d.split("/");
|
|
4652
4665
|
for (; S[0] === ".."; )
|
|
4653
4666
|
S.shift(), y -= 1;
|
|
4654
4667
|
a.pathname = S.join("/");
|
|
4655
4668
|
}
|
|
4656
4669
|
l = y >= 0 ? t[y] : "/";
|
|
4657
4670
|
}
|
|
4658
|
-
let u = Ta(a, l),
|
|
4659
|
-
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;
|
|
4660
4673
|
}
|
|
4661
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;
|
|
4662
4675
|
function Ia(e) {
|
|
@@ -4713,8 +4726,8 @@ function Na(e, { relative: t } = {}) {
|
|
|
4713
4726
|
// router loaded. We can help them understand how to avoid that.
|
|
4714
4727
|
"useHref() may be used only in the context of a <Router> component."
|
|
4715
4728
|
);
|
|
4716
|
-
let { basename: r, navigator: i } = M.useContext(Se), { hash: a, pathname: s, search:
|
|
4717
|
-
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 });
|
|
4718
4731
|
}
|
|
4719
4732
|
function Qe() {
|
|
4720
4733
|
return M.useContext(Ze) != null;
|
|
@@ -4742,26 +4755,26 @@ function Fa() {
|
|
|
4742
4755
|
// router loaded. We can help them understand how to avoid that.
|
|
4743
4756
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
4744
4757
|
);
|
|
4745
|
-
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);
|
|
4746
4759
|
return fn(() => {
|
|
4747
|
-
|
|
4760
|
+
d.current = !0;
|
|
4748
4761
|
}), M.useCallback(
|
|
4749
|
-
(u,
|
|
4750
|
-
if (ge(
|
|
4762
|
+
(u, f = {}) => {
|
|
4763
|
+
if (ge(d.current, cn), !d.current) return;
|
|
4751
4764
|
if (typeof u == "number") {
|
|
4752
4765
|
r.go(u);
|
|
4753
4766
|
return;
|
|
4754
4767
|
}
|
|
4755
|
-
let
|
|
4768
|
+
let v = sn(
|
|
4756
4769
|
u,
|
|
4757
4770
|
JSON.parse(s),
|
|
4758
4771
|
a,
|
|
4759
|
-
|
|
4772
|
+
f.relative === "path"
|
|
4760
4773
|
);
|
|
4761
|
-
e == null && t !== "/" && (
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
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
|
|
4765
4778
|
);
|
|
4766
4779
|
},
|
|
4767
4780
|
[
|
|
@@ -4796,12 +4809,12 @@ function dn(e, t, r, i) {
|
|
|
4796
4809
|
// router loaded. We can help them understand how to avoid that.
|
|
4797
4810
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
4798
4811
|
);
|
|
4799
|
-
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;
|
|
4800
4813
|
{
|
|
4801
|
-
let C =
|
|
4814
|
+
let C = v && v.path || "";
|
|
4802
4815
|
hn(
|
|
4803
4816
|
u,
|
|
4804
|
-
!
|
|
4817
|
+
!v || C.endsWith("*") || C.endsWith("*?"),
|
|
4805
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.
|
|
4806
4819
|
|
|
4807
4820
|
Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" : `${C}/*`}">.`
|
|
@@ -4811,19 +4824,19 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4811
4824
|
if (t) {
|
|
4812
4825
|
let C = typeof t == "string" ? Me(t) : t;
|
|
4813
4826
|
ae(
|
|
4814
|
-
|
|
4815
|
-
`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.`
|
|
4816
4829
|
), S = C;
|
|
4817
4830
|
} else
|
|
4818
4831
|
S = y;
|
|
4819
4832
|
let L = S.pathname || "/", k = L;
|
|
4820
|
-
if (
|
|
4821
|
-
let C =
|
|
4833
|
+
if (f !== "/") {
|
|
4834
|
+
let C = f.replace(/^\//, "").split("/");
|
|
4822
4835
|
k = "/" + L.replace(/^\//, "").split("/").slice(C.length).join("/");
|
|
4823
4836
|
}
|
|
4824
4837
|
let p = rn(e, { pathname: k });
|
|
4825
4838
|
ge(
|
|
4826
|
-
|
|
4839
|
+
v || p != null,
|
|
4827
4840
|
`No routes matched location "${S.pathname}${S.search}${S.hash}" `
|
|
4828
4841
|
), ge(
|
|
4829
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,
|
|
@@ -4834,12 +4847,12 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4834
4847
|
(C) => Object.assign({}, C, {
|
|
4835
4848
|
params: Object.assign({}, l, C.params),
|
|
4836
4849
|
pathname: xe([
|
|
4837
|
-
|
|
4850
|
+
f,
|
|
4838
4851
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
4839
4852
|
a.encodeLocation ? a.encodeLocation(C.pathname).pathname : C.pathname
|
|
4840
4853
|
]),
|
|
4841
|
-
pathnameBase: C.pathnameBase === "/" ?
|
|
4842
|
-
|
|
4854
|
+
pathnameBase: C.pathnameBase === "/" ? f : xe([
|
|
4855
|
+
f,
|
|
4843
4856
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
4844
4857
|
a.encodeLocation ? a.encodeLocation(C.pathnameBase).pathname : C.pathnameBase
|
|
4845
4858
|
])
|
|
@@ -4869,11 +4882,11 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4869
4882
|
) : I;
|
|
4870
4883
|
}
|
|
4871
4884
|
function Ua() {
|
|
4872
|
-
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;
|
|
4873
4886
|
return console.error(
|
|
4874
4887
|
"Error handled by React Router default ErrorBoundary:",
|
|
4875
4888
|
e
|
|
4876
|
-
),
|
|
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);
|
|
4877
4890
|
}
|
|
4878
4891
|
var Ya = /* @__PURE__ */ M.createElement(Ua, null), Va = class extends M.Component {
|
|
4879
4892
|
constructor(e) {
|
|
@@ -4932,7 +4945,7 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4932
4945
|
let a = e, s = r?.errors;
|
|
4933
4946
|
if (s != null) {
|
|
4934
4947
|
let u = a.findIndex(
|
|
4935
|
-
(
|
|
4948
|
+
(f) => f.route.id && s?.[f.route.id] !== void 0
|
|
4936
4949
|
);
|
|
4937
4950
|
ae(
|
|
4938
4951
|
u >= 0,
|
|
@@ -4944,31 +4957,31 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4944
4957
|
Math.min(a.length, u + 1)
|
|
4945
4958
|
);
|
|
4946
4959
|
}
|
|
4947
|
-
let
|
|
4960
|
+
let d = !1, l = -1;
|
|
4948
4961
|
if (r)
|
|
4949
4962
|
for (let u = 0; u < a.length; u++) {
|
|
4950
|
-
let
|
|
4951
|
-
if ((
|
|
4952
|
-
let { loaderData:
|
|
4953
|
-
if (
|
|
4954
|
-
|
|
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]];
|
|
4955
4968
|
break;
|
|
4956
4969
|
}
|
|
4957
4970
|
}
|
|
4958
4971
|
}
|
|
4959
|
-
return a.reduceRight((u,
|
|
4972
|
+
return a.reduceRight((u, f, v) => {
|
|
4960
4973
|
let y, S = !1, L = null, k = null;
|
|
4961
|
-
r && (y = s &&
|
|
4974
|
+
r && (y = s && f.route.id ? s[f.route.id] : void 0, L = f.route.errorElement || Ya, d && (l < 0 && v === 0 ? (hn(
|
|
4962
4975
|
"route-fallback",
|
|
4963
4976
|
!1,
|
|
4964
4977
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
4965
|
-
), S = !0, k = null) : l ===
|
|
4966
|
-
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 = () => {
|
|
4967
4980
|
let C;
|
|
4968
|
-
return y ? C = L : S ? C = k :
|
|
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(
|
|
4969
4982
|
qa,
|
|
4970
4983
|
{
|
|
4971
|
-
match:
|
|
4984
|
+
match: f,
|
|
4972
4985
|
routeContext: {
|
|
4973
4986
|
outlet: u,
|
|
4974
4987
|
matches: p,
|
|
@@ -4978,7 +4991,7 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4978
4991
|
}
|
|
4979
4992
|
);
|
|
4980
4993
|
};
|
|
4981
|
-
return r && (
|
|
4994
|
+
return r && (f.route.ErrorBoundary || f.route.errorElement || v === 0) ? /* @__PURE__ */ M.createElement(
|
|
4982
4995
|
Va,
|
|
4983
4996
|
{
|
|
4984
4997
|
location: r.location,
|
|
@@ -5076,38 +5089,38 @@ function to({
|
|
|
5076
5089
|
!Qe(),
|
|
5077
5090
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
5078
5091
|
);
|
|
5079
|
-
let
|
|
5092
|
+
let d = e.replace(/^\/*/, "/"), l = M.useMemo(
|
|
5080
5093
|
() => ({
|
|
5081
|
-
basename:
|
|
5094
|
+
basename: d,
|
|
5082
5095
|
navigator: a,
|
|
5083
5096
|
static: s,
|
|
5084
5097
|
future: {}
|
|
5085
5098
|
}),
|
|
5086
|
-
[
|
|
5099
|
+
[d, a, s]
|
|
5087
5100
|
);
|
|
5088
5101
|
typeof r == "string" && (r = Me(r));
|
|
5089
5102
|
let {
|
|
5090
5103
|
pathname: u = "/",
|
|
5091
|
-
search:
|
|
5092
|
-
hash:
|
|
5104
|
+
search: f = "",
|
|
5105
|
+
hash: v = "",
|
|
5093
5106
|
state: y = null,
|
|
5094
5107
|
key: S = "default"
|
|
5095
5108
|
} = r, L = M.useMemo(() => {
|
|
5096
|
-
let k = Oe(u,
|
|
5109
|
+
let k = Oe(u, d);
|
|
5097
5110
|
return k == null ? null : {
|
|
5098
5111
|
location: {
|
|
5099
5112
|
pathname: k,
|
|
5100
|
-
search:
|
|
5101
|
-
hash:
|
|
5113
|
+
search: f,
|
|
5114
|
+
hash: v,
|
|
5102
5115
|
state: y,
|
|
5103
5116
|
key: S
|
|
5104
5117
|
},
|
|
5105
5118
|
navigationType: i
|
|
5106
5119
|
};
|
|
5107
|
-
}, [
|
|
5120
|
+
}, [d, u, f, v, y, S, i]);
|
|
5108
5121
|
return ge(
|
|
5109
5122
|
L != null,
|
|
5110
|
-
`<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.`
|
|
5111
5124
|
), L == null ? null : /* @__PURE__ */ M.createElement(Se.Provider, { value: l }, /* @__PURE__ */ M.createElement(Ze.Provider, { children: t, value: L }));
|
|
5112
5125
|
}
|
|
5113
5126
|
function ro({
|
|
@@ -5136,7 +5149,7 @@ function Wt(e, t = []) {
|
|
|
5136
5149
|
!i.props.index || !i.props.children,
|
|
5137
5150
|
"An index route cannot have child routes."
|
|
5138
5151
|
);
|
|
5139
|
-
let
|
|
5152
|
+
let d = {
|
|
5140
5153
|
id: i.props.id || s.join("-"),
|
|
5141
5154
|
caseSensitive: i.props.caseSensitive,
|
|
5142
5155
|
element: i.props.element,
|
|
@@ -5154,10 +5167,10 @@ function Wt(e, t = []) {
|
|
|
5154
5167
|
handle: i.props.handle,
|
|
5155
5168
|
lazy: i.props.lazy
|
|
5156
5169
|
};
|
|
5157
|
-
i.props.children && (
|
|
5170
|
+
i.props.children && (d.children = Wt(
|
|
5158
5171
|
i.props.children,
|
|
5159
5172
|
s
|
|
5160
|
-
)), r.push(
|
|
5173
|
+
)), r.push(d);
|
|
5161
5174
|
}), r;
|
|
5162
5175
|
}
|
|
5163
5176
|
var ut = "get", ct = "application/x-www-form-urlencoded";
|
|
@@ -5225,7 +5238,7 @@ function It(e) {
|
|
|
5225
5238
|
), null) : e;
|
|
5226
5239
|
}
|
|
5227
5240
|
function fo(e, t) {
|
|
5228
|
-
let r, i, a, s,
|
|
5241
|
+
let r, i, a, s, d;
|
|
5229
5242
|
if (io(e)) {
|
|
5230
5243
|
let l = e.getAttribute("action");
|
|
5231
5244
|
i = l ? Oe(l, t) : null, r = e.getAttribute("method") || ut, a = It(e.getAttribute("enctype")) || ct, s = new FormData(e);
|
|
@@ -5237,20 +5250,20 @@ function fo(e, t) {
|
|
|
5237
5250
|
);
|
|
5238
5251
|
let u = e.getAttribute("formaction") || l.getAttribute("action");
|
|
5239
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()) {
|
|
5240
|
-
let { name:
|
|
5241
|
-
if (
|
|
5242
|
-
let S =
|
|
5253
|
+
let { name: f, type: v, value: y } = e;
|
|
5254
|
+
if (v === "image") {
|
|
5255
|
+
let S = f ? `${f}.` : "";
|
|
5243
5256
|
s.append(`${S}x`, "0"), s.append(`${S}y`, "0");
|
|
5244
|
-
} else
|
|
5257
|
+
} else f && s.append(f, y);
|
|
5245
5258
|
}
|
|
5246
5259
|
} else {
|
|
5247
5260
|
if (kt(e))
|
|
5248
5261
|
throw new Error(
|
|
5249
5262
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
5250
5263
|
);
|
|
5251
|
-
r = ut, i = null, a = ct,
|
|
5264
|
+
r = ut, i = null, a = ct, d = e;
|
|
5252
5265
|
}
|
|
5253
|
-
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 };
|
|
5254
5267
|
}
|
|
5255
5268
|
function Qt(e, t) {
|
|
5256
5269
|
if (e === !1 || e === null || typeof e > "u")
|
|
@@ -5281,8 +5294,8 @@ async function mo(e, t, r) {
|
|
|
5281
5294
|
e.map(async (a) => {
|
|
5282
5295
|
let s = t.routes[a.route.id];
|
|
5283
5296
|
if (s) {
|
|
5284
|
-
let
|
|
5285
|
-
return
|
|
5297
|
+
let d = await ho(s, r);
|
|
5298
|
+
return d.links ? d.links() : [];
|
|
5286
5299
|
}
|
|
5287
5300
|
return [];
|
|
5288
5301
|
})
|
|
@@ -5294,19 +5307,19 @@ async function mo(e, t, r) {
|
|
|
5294
5307
|
);
|
|
5295
5308
|
}
|
|
5296
5309
|
function Dr(e, t, r, i, a, s) {
|
|
5297
|
-
let
|
|
5310
|
+
let d = (u, f) => r[f] ? u.route.id !== r[f].route.id : !0, l = (u, f) => (
|
|
5298
5311
|
// param change, /users/123 -> /users/456
|
|
5299
|
-
r[
|
|
5312
|
+
r[f].pathname !== u.pathname || // splat param changed, which is not present in match.path
|
|
5300
5313
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
5301
|
-
r[
|
|
5314
|
+
r[f].route.path?.endsWith("*") && r[f].params["*"] !== u.params["*"]
|
|
5302
5315
|
);
|
|
5303
5316
|
return s === "assets" ? t.filter(
|
|
5304
|
-
(u,
|
|
5305
|
-
) : s === "data" ? t.filter((u,
|
|
5306
|
-
let
|
|
5307
|
-
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)
|
|
5308
5321
|
return !1;
|
|
5309
|
-
if (
|
|
5322
|
+
if (d(u, f) || l(u, f))
|
|
5310
5323
|
return !0;
|
|
5311
5324
|
if (u.route.shouldRevalidate) {
|
|
5312
5325
|
let y = u.route.shouldRevalidate({
|
|
@@ -5386,12 +5399,12 @@ function vn() {
|
|
|
5386
5399
|
), e;
|
|
5387
5400
|
}
|
|
5388
5401
|
function Oo(e, t) {
|
|
5389
|
-
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);
|
|
5390
5403
|
M.useEffect(() => {
|
|
5391
|
-
if (e === "render" &&
|
|
5404
|
+
if (e === "render" && d(!0), e === "viewport") {
|
|
5392
5405
|
let p = (C) => {
|
|
5393
5406
|
C.forEach((F) => {
|
|
5394
|
-
|
|
5407
|
+
d(F.isIntersecting);
|
|
5395
5408
|
});
|
|
5396
5409
|
}, I = new IntersectionObserver(p, { threshold: 0.5 });
|
|
5397
5410
|
return S.current && I.observe(S.current), () => {
|
|
@@ -5401,7 +5414,7 @@ function Oo(e, t) {
|
|
|
5401
5414
|
}, [e]), M.useEffect(() => {
|
|
5402
5415
|
if (i) {
|
|
5403
5416
|
let p = setTimeout(() => {
|
|
5404
|
-
|
|
5417
|
+
d(!0);
|
|
5405
5418
|
}, 100);
|
|
5406
5419
|
return () => {
|
|
5407
5420
|
clearTimeout(p);
|
|
@@ -5411,7 +5424,7 @@ function Oo(e, t) {
|
|
|
5411
5424
|
let L = () => {
|
|
5412
5425
|
a(!0);
|
|
5413
5426
|
}, k = () => {
|
|
5414
|
-
a(!1),
|
|
5427
|
+
a(!1), d(!1);
|
|
5415
5428
|
};
|
|
5416
5429
|
return r ? e !== "intent" ? [s, S, {}] : [
|
|
5417
5430
|
s,
|
|
@@ -5419,8 +5432,8 @@ function Oo(e, t) {
|
|
|
5419
5432
|
{
|
|
5420
5433
|
onFocus: Ve(l, L),
|
|
5421
5434
|
onBlur: Ve(u, k),
|
|
5422
|
-
onMouseEnter: Ve(
|
|
5423
|
-
onMouseLeave: Ve(
|
|
5435
|
+
onMouseEnter: Ve(f, L),
|
|
5436
|
+
onMouseLeave: Ve(v, k),
|
|
5424
5437
|
onTouchStart: Ve(y, L)
|
|
5425
5438
|
}
|
|
5426
5439
|
] : [!1, S, {}];
|
|
@@ -5445,8 +5458,8 @@ function Co(e) {
|
|
|
5445
5458
|
return M.useEffect(() => {
|
|
5446
5459
|
let s = !1;
|
|
5447
5460
|
return mo(e, t, r).then(
|
|
5448
|
-
(
|
|
5449
|
-
s || a(
|
|
5461
|
+
(d) => {
|
|
5462
|
+
s || a(d);
|
|
5450
5463
|
}
|
|
5451
5464
|
), () => {
|
|
5452
5465
|
s = !0;
|
|
@@ -5458,7 +5471,7 @@ function Po({
|
|
|
5458
5471
|
matches: t,
|
|
5459
5472
|
...r
|
|
5460
5473
|
}) {
|
|
5461
|
-
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(
|
|
5462
5475
|
() => Dr(
|
|
5463
5476
|
e,
|
|
5464
5477
|
t,
|
|
@@ -5468,7 +5481,7 @@ function Po({
|
|
|
5468
5481
|
"data"
|
|
5469
5482
|
),
|
|
5470
5483
|
[e, t, u, a, i]
|
|
5471
|
-
),
|
|
5484
|
+
), v = M.useMemo(
|
|
5472
5485
|
() => Dr(
|
|
5473
5486
|
e,
|
|
5474
5487
|
t,
|
|
@@ -5484,27 +5497,27 @@ function Po({
|
|
|
5484
5497
|
let k = /* @__PURE__ */ new Set(), p = !1;
|
|
5485
5498
|
if (t.forEach((C) => {
|
|
5486
5499
|
let F = a.routes[C.route.id];
|
|
5487
|
-
!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));
|
|
5488
5501
|
}), k.size === 0)
|
|
5489
5502
|
return [];
|
|
5490
|
-
let I = So(e,
|
|
5503
|
+
let I = So(e, d);
|
|
5491
5504
|
return p && k.size > 0 && I.searchParams.set(
|
|
5492
5505
|
"_routes",
|
|
5493
5506
|
t.filter((C) => k.has(C.route.id)).map((C) => C.route.id).join(",")
|
|
5494
5507
|
), [I.pathname + I.search];
|
|
5495
5508
|
}, [
|
|
5496
|
-
|
|
5509
|
+
d,
|
|
5497
5510
|
l,
|
|
5498
5511
|
i,
|
|
5499
5512
|
a,
|
|
5500
|
-
|
|
5513
|
+
f,
|
|
5501
5514
|
t,
|
|
5502
5515
|
e,
|
|
5503
5516
|
s
|
|
5504
5517
|
]), S = M.useMemo(
|
|
5505
|
-
() => vo(
|
|
5506
|
-
[
|
|
5507
|
-
), L = Co(
|
|
5518
|
+
() => vo(v, a),
|
|
5519
|
+
[v, a]
|
|
5520
|
+
), L = Co(v);
|
|
5508
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 }) => (
|
|
5509
5522
|
// these don't spread `linkProps` because they are full link descriptors
|
|
5510
5523
|
// already with their own props
|
|
@@ -5530,14 +5543,14 @@ function Ro({
|
|
|
5530
5543
|
}) {
|
|
5531
5544
|
let i = M.useRef();
|
|
5532
5545
|
i.current == null && (i.current = ha({ window: r, v5Compat: !0 }));
|
|
5533
|
-
let a = i.current, [s,
|
|
5546
|
+
let a = i.current, [s, d] = M.useState({
|
|
5534
5547
|
action: a.action,
|
|
5535
5548
|
location: a.location
|
|
5536
5549
|
}), l = M.useCallback(
|
|
5537
5550
|
(u) => {
|
|
5538
|
-
M.startTransition(() =>
|
|
5551
|
+
M.startTransition(() => d(u));
|
|
5539
5552
|
},
|
|
5540
|
-
[
|
|
5553
|
+
[d]
|
|
5541
5554
|
);
|
|
5542
5555
|
return M.useLayoutEffect(() => a.listen(l), [a, l]), /* @__PURE__ */ M.createElement(
|
|
5543
5556
|
to,
|
|
@@ -5557,33 +5570,33 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5557
5570
|
prefetch: i = "none",
|
|
5558
5571
|
relative: a,
|
|
5559
5572
|
reloadDocument: s,
|
|
5560
|
-
replace:
|
|
5573
|
+
replace: d,
|
|
5561
5574
|
state: l,
|
|
5562
5575
|
target: u,
|
|
5563
|
-
to:
|
|
5564
|
-
preventScrollReset:
|
|
5576
|
+
to: f,
|
|
5577
|
+
preventScrollReset: v,
|
|
5565
5578
|
viewTransition: y,
|
|
5566
5579
|
...S
|
|
5567
5580
|
}, L) {
|
|
5568
|
-
let { basename: k } = M.useContext(Se), p = typeof
|
|
5569
|
-
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))
|
|
5570
5583
|
try {
|
|
5571
|
-
let b = new URL(window.location.href), h =
|
|
5572
|
-
h.origin === b.origin && P != null ?
|
|
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;
|
|
5573
5586
|
} catch {
|
|
5574
5587
|
ge(
|
|
5575
5588
|
!1,
|
|
5576
|
-
`<Link to="${
|
|
5589
|
+
`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
5577
5590
|
);
|
|
5578
5591
|
}
|
|
5579
|
-
let F = Na(
|
|
5592
|
+
let F = Na(f, { relative: a }), [U, q, g] = Oo(
|
|
5580
5593
|
i,
|
|
5581
5594
|
S
|
|
5582
|
-
), w = Lo(
|
|
5583
|
-
replace:
|
|
5595
|
+
), w = Lo(f, {
|
|
5596
|
+
replace: d,
|
|
5584
5597
|
state: l,
|
|
5585
5598
|
target: u,
|
|
5586
|
-
preventScrollReset:
|
|
5599
|
+
preventScrollReset: v,
|
|
5587
5600
|
relative: a,
|
|
5588
5601
|
viewTransition: y
|
|
5589
5602
|
});
|
|
@@ -5596,7 +5609,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5596
5609
|
"a",
|
|
5597
5610
|
{
|
|
5598
5611
|
...S,
|
|
5599
|
-
...
|
|
5612
|
+
...g,
|
|
5600
5613
|
href: I || F,
|
|
5601
5614
|
onClick: C || s ? t : x,
|
|
5602
5615
|
ref: Eo(L, q),
|
|
@@ -5616,24 +5629,24 @@ var _o = M.forwardRef(
|
|
|
5616
5629
|
className: i = "",
|
|
5617
5630
|
end: a = !1,
|
|
5618
5631
|
style: s,
|
|
5619
|
-
to:
|
|
5632
|
+
to: d,
|
|
5620
5633
|
viewTransition: l,
|
|
5621
5634
|
children: u,
|
|
5622
|
-
...
|
|
5623
|
-
},
|
|
5624
|
-
let y = et(
|
|
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
|
|
5625
5638
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5626
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;
|
|
5627
5640
|
r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, C = C.toLowerCase()), U && p && (U = Oe(U, p) || U);
|
|
5628
5641
|
const q = C !== "/" && C.endsWith("/") ? C.length - 1 : C.length;
|
|
5629
|
-
let
|
|
5630
|
-
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,
|
|
5631
5644
|
isPending: w,
|
|
5632
5645
|
isTransitioning: I
|
|
5633
|
-
}, R =
|
|
5646
|
+
}, R = g ? t : void 0, b;
|
|
5634
5647
|
typeof i == "function" ? b = i(x) : b = [
|
|
5635
5648
|
i,
|
|
5636
|
-
|
|
5649
|
+
g ? "active" : null,
|
|
5637
5650
|
w ? "pending" : null,
|
|
5638
5651
|
I ? "transitioning" : null
|
|
5639
5652
|
].filter(Boolean).join(" ");
|
|
@@ -5641,12 +5654,12 @@ var _o = M.forwardRef(
|
|
|
5641
5654
|
return /* @__PURE__ */ M.createElement(
|
|
5642
5655
|
bn,
|
|
5643
5656
|
{
|
|
5644
|
-
...
|
|
5657
|
+
...f,
|
|
5645
5658
|
"aria-current": R,
|
|
5646
5659
|
className: b,
|
|
5647
|
-
ref:
|
|
5660
|
+
ref: v,
|
|
5648
5661
|
style: h,
|
|
5649
|
-
to:
|
|
5662
|
+
to: d,
|
|
5650
5663
|
viewTransition: l
|
|
5651
5664
|
},
|
|
5652
5665
|
typeof u == "function" ? u(x) : u
|
|
@@ -5662,26 +5675,26 @@ var To = M.forwardRef(
|
|
|
5662
5675
|
reloadDocument: i,
|
|
5663
5676
|
replace: a,
|
|
5664
5677
|
state: s,
|
|
5665
|
-
method:
|
|
5678
|
+
method: d = ut,
|
|
5666
5679
|
action: l,
|
|
5667
5680
|
onSubmit: u,
|
|
5668
|
-
relative:
|
|
5669
|
-
preventScrollReset:
|
|
5681
|
+
relative: f,
|
|
5682
|
+
preventScrollReset: v,
|
|
5670
5683
|
viewTransition: y,
|
|
5671
5684
|
...S
|
|
5672
5685
|
}, L) => {
|
|
5673
|
-
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) => {
|
|
5674
5687
|
if (u && u(U), U.defaultPrevented) return;
|
|
5675
5688
|
U.preventDefault();
|
|
5676
|
-
let q = U.nativeEvent.submitter,
|
|
5689
|
+
let q = U.nativeEvent.submitter, g = q?.getAttribute("formmethod") || d;
|
|
5677
5690
|
k(q || U.currentTarget, {
|
|
5678
5691
|
fetcherKey: t,
|
|
5679
|
-
method:
|
|
5692
|
+
method: g,
|
|
5680
5693
|
navigate: r,
|
|
5681
5694
|
replace: a,
|
|
5682
5695
|
state: s,
|
|
5683
|
-
relative:
|
|
5684
|
-
preventScrollReset:
|
|
5696
|
+
relative: f,
|
|
5697
|
+
preventScrollReset: v,
|
|
5685
5698
|
viewTransition: y
|
|
5686
5699
|
});
|
|
5687
5700
|
};
|
|
@@ -5712,34 +5725,34 @@ function Lo(e, {
|
|
|
5712
5725
|
state: i,
|
|
5713
5726
|
preventScrollReset: a,
|
|
5714
5727
|
relative: s,
|
|
5715
|
-
viewTransition:
|
|
5728
|
+
viewTransition: d
|
|
5716
5729
|
} = {}) {
|
|
5717
|
-
let l = Kt(), u = Ce(),
|
|
5730
|
+
let l = Kt(), u = Ce(), f = et(e, { relative: s });
|
|
5718
5731
|
return M.useCallback(
|
|
5719
|
-
(
|
|
5720
|
-
if (so(
|
|
5721
|
-
|
|
5722
|
-
let y = r !== void 0 ? r : Ge(u) === Ge(
|
|
5732
|
+
(v) => {
|
|
5733
|
+
if (so(v, t)) {
|
|
5734
|
+
v.preventDefault();
|
|
5735
|
+
let y = r !== void 0 ? r : Ge(u) === Ge(f);
|
|
5723
5736
|
l(e, {
|
|
5724
5737
|
replace: y,
|
|
5725
5738
|
state: i,
|
|
5726
5739
|
preventScrollReset: a,
|
|
5727
5740
|
relative: s,
|
|
5728
|
-
viewTransition:
|
|
5741
|
+
viewTransition: d
|
|
5729
5742
|
});
|
|
5730
5743
|
}
|
|
5731
5744
|
},
|
|
5732
5745
|
[
|
|
5733
5746
|
u,
|
|
5734
5747
|
l,
|
|
5735
|
-
|
|
5748
|
+
f,
|
|
5736
5749
|
r,
|
|
5737
5750
|
i,
|
|
5738
5751
|
t,
|
|
5739
5752
|
e,
|
|
5740
5753
|
a,
|
|
5741
5754
|
s,
|
|
5742
|
-
|
|
5755
|
+
d
|
|
5743
5756
|
]
|
|
5744
5757
|
);
|
|
5745
5758
|
}
|
|
@@ -5759,16 +5772,16 @@ function Do(e) {
|
|
|
5759
5772
|
)
|
|
5760
5773
|
),
|
|
5761
5774
|
[i.search]
|
|
5762
|
-
), s = Kt(),
|
|
5775
|
+
), s = Kt(), d = M.useCallback(
|
|
5763
5776
|
(l, u) => {
|
|
5764
|
-
const
|
|
5777
|
+
const f = Ut(
|
|
5765
5778
|
typeof l == "function" ? l(a) : l
|
|
5766
5779
|
);
|
|
5767
|
-
r.current = !0, s("?" +
|
|
5780
|
+
r.current = !0, s("?" + f, u);
|
|
5768
5781
|
},
|
|
5769
5782
|
[s, a]
|
|
5770
5783
|
);
|
|
5771
|
-
return [a,
|
|
5784
|
+
return [a, d];
|
|
5772
5785
|
}
|
|
5773
5786
|
var Mo = 0, $o = () => `__${String(++Mo)}__`;
|
|
5774
5787
|
function Io() {
|
|
@@ -5778,17 +5791,17 @@ function Io() {
|
|
|
5778
5791
|
), { basename: t } = M.useContext(Se), r = Ja();
|
|
5779
5792
|
return M.useCallback(
|
|
5780
5793
|
async (i, a = {}) => {
|
|
5781
|
-
let { action: s, method:
|
|
5794
|
+
let { action: s, method: d, encType: l, formData: u, body: f } = fo(
|
|
5782
5795
|
i,
|
|
5783
5796
|
t
|
|
5784
5797
|
);
|
|
5785
5798
|
if (a.navigate === !1) {
|
|
5786
|
-
let
|
|
5787
|
-
await e.fetch(
|
|
5799
|
+
let v = a.fetcherKey || $o();
|
|
5800
|
+
await e.fetch(v, r, a.action || s, {
|
|
5788
5801
|
preventScrollReset: a.preventScrollReset,
|
|
5789
5802
|
formData: u,
|
|
5790
|
-
body:
|
|
5791
|
-
formMethod: a.method ||
|
|
5803
|
+
body: f,
|
|
5804
|
+
formMethod: a.method || d,
|
|
5792
5805
|
formEncType: a.encType || l,
|
|
5793
5806
|
flushSync: a.flushSync
|
|
5794
5807
|
});
|
|
@@ -5796,8 +5809,8 @@ function Io() {
|
|
|
5796
5809
|
await e.navigate(a.action || s, {
|
|
5797
5810
|
preventScrollReset: a.preventScrollReset,
|
|
5798
5811
|
formData: u,
|
|
5799
|
-
body:
|
|
5800
|
-
formMethod: a.method ||
|
|
5812
|
+
body: f,
|
|
5813
|
+
formMethod: a.method || d,
|
|
5801
5814
|
formEncType: a.encType || l,
|
|
5802
5815
|
replace: a.replace,
|
|
5803
5816
|
state: a.state,
|
|
@@ -5812,14 +5825,14 @@ function Io() {
|
|
|
5812
5825
|
function Ao(e, { relative: t } = {}) {
|
|
5813
5826
|
let { basename: r } = M.useContext(Se), i = M.useContext(ke);
|
|
5814
5827
|
ae(i, "useFormAction must be used inside a RouteContext");
|
|
5815
|
-
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();
|
|
5816
5829
|
if (e == null) {
|
|
5817
|
-
s.search =
|
|
5830
|
+
s.search = d.search;
|
|
5818
5831
|
let l = new URLSearchParams(s.search), u = l.getAll("index");
|
|
5819
|
-
if (u.some((
|
|
5832
|
+
if (u.some((v) => v === "")) {
|
|
5820
5833
|
l.delete("index"), u.filter((y) => y).forEach((y) => l.append("index", y));
|
|
5821
|
-
let
|
|
5822
|
-
s.search =
|
|
5834
|
+
let v = l.toString();
|
|
5835
|
+
s.search = v ? `?${v}` : "";
|
|
5823
5836
|
}
|
|
5824
5837
|
}
|
|
5825
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);
|
|
@@ -5836,8 +5849,8 @@ function Ho(e, t = {}) {
|
|
|
5836
5849
|
), a = et(e, { relative: t.relative });
|
|
5837
5850
|
if (!r.isTransitioning)
|
|
5838
5851
|
return !1;
|
|
5839
|
-
let s = Oe(r.currentLocation.pathname, i) || r.currentLocation.pathname,
|
|
5840
|
-
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;
|
|
5841
5854
|
}
|
|
5842
5855
|
[
|
|
5843
5856
|
...wo
|
|
@@ -5854,29 +5867,29 @@ const Sn = V.createContext({
|
|
|
5854
5867
|
() => Object.fromEntries(e.entries()),
|
|
5855
5868
|
[e]
|
|
5856
5869
|
), i = ve(
|
|
5857
|
-
(
|
|
5870
|
+
(v) => {
|
|
5858
5871
|
const y = {};
|
|
5859
|
-
return
|
|
5872
|
+
return v.forEach((S) => {
|
|
5860
5873
|
y[S] = e.get(S);
|
|
5861
5874
|
}), y;
|
|
5862
5875
|
},
|
|
5863
5876
|
[e]
|
|
5864
5877
|
), a = ve(
|
|
5865
|
-
(
|
|
5866
|
-
const y = e.get(
|
|
5878
|
+
(v) => {
|
|
5879
|
+
const y = e.get(v);
|
|
5867
5880
|
return y == null || y == null, y;
|
|
5868
5881
|
},
|
|
5869
5882
|
[e]
|
|
5870
5883
|
), s = ve(
|
|
5871
|
-
(
|
|
5884
|
+
(v) => {
|
|
5872
5885
|
const y = new URLSearchParams(e);
|
|
5873
|
-
y.delete(
|
|
5886
|
+
y.delete(v), t(y);
|
|
5874
5887
|
},
|
|
5875
5888
|
[e, t]
|
|
5876
|
-
),
|
|
5877
|
-
(
|
|
5889
|
+
), d = ve(
|
|
5890
|
+
(v) => {
|
|
5878
5891
|
const y = new URLSearchParams(e);
|
|
5879
|
-
|
|
5892
|
+
v.forEach((S) => {
|
|
5880
5893
|
y.delete(String(S));
|
|
5881
5894
|
}), t(y);
|
|
5882
5895
|
},
|
|
@@ -5884,18 +5897,18 @@ const Sn = V.createContext({
|
|
|
5884
5897
|
), l = ve(() => {
|
|
5885
5898
|
t({});
|
|
5886
5899
|
}, [e, t]), u = ve(
|
|
5887
|
-
(
|
|
5900
|
+
(v, y) => {
|
|
5888
5901
|
t((S) => {
|
|
5889
5902
|
const L = new URLSearchParams(S);
|
|
5890
|
-
return y == null ? L.delete(
|
|
5903
|
+
return y == null ? L.delete(v) : L.set(v, String(y)), L;
|
|
5891
5904
|
});
|
|
5892
5905
|
},
|
|
5893
5906
|
[t]
|
|
5894
|
-
),
|
|
5895
|
-
(
|
|
5907
|
+
), f = ve(
|
|
5908
|
+
(v) => {
|
|
5896
5909
|
t((y) => {
|
|
5897
5910
|
const S = new URLSearchParams(y);
|
|
5898
|
-
return Object.entries(
|
|
5911
|
+
return Object.entries(v).forEach(([L, k]) => {
|
|
5899
5912
|
k == null ? S.delete(L) : S.set(L, String(k));
|
|
5900
5913
|
}), S;
|
|
5901
5914
|
});
|
|
@@ -5907,16 +5920,16 @@ const Sn = V.createContext({
|
|
|
5907
5920
|
get: a,
|
|
5908
5921
|
getMany: i,
|
|
5909
5922
|
set: u,
|
|
5910
|
-
setMany:
|
|
5923
|
+
setMany: f,
|
|
5911
5924
|
remove: s,
|
|
5912
|
-
removeMany:
|
|
5925
|
+
removeMany: d,
|
|
5913
5926
|
removeAll: l
|
|
5914
5927
|
};
|
|
5915
5928
|
}, hs = () => {
|
|
5916
5929
|
const e = Kt(), t = Ce(), r = zo(), i = Yt(Sn), a = (l) => {
|
|
5917
5930
|
const u = new URL(l.path, "http://dummy-base");
|
|
5918
|
-
return l.params && Object.entries(l.params).forEach(([
|
|
5919
|
-
|
|
5931
|
+
return l.params && Object.entries(l.params).forEach(([f, v]) => {
|
|
5932
|
+
v != null && u.searchParams.set(f, String(v));
|
|
5920
5933
|
}), u.pathname + u.search;
|
|
5921
5934
|
}, s = V.useCallback(
|
|
5922
5935
|
(l) => {
|
|
@@ -5924,7 +5937,7 @@ const Sn = V.createContext({
|
|
|
5924
5937
|
l.addToHistory !== !1 ? (e(u), i.addToHistory(u)) : (e(u, { replace: !0 }), i.popFromHistory(1), i.addToHistory(u));
|
|
5925
5938
|
},
|
|
5926
5939
|
[e]
|
|
5927
|
-
),
|
|
5940
|
+
), d = V.useCallback(
|
|
5928
5941
|
(l) => {
|
|
5929
5942
|
const u = l || 1;
|
|
5930
5943
|
e(-u), i.popFromHistory(u);
|
|
@@ -5935,7 +5948,7 @@ const Sn = V.createContext({
|
|
|
5935
5948
|
currentPath: t.pathname,
|
|
5936
5949
|
history: i.history,
|
|
5937
5950
|
searchParams: r,
|
|
5938
|
-
goBack:
|
|
5951
|
+
goBack: d,
|
|
5939
5952
|
goTo: s
|
|
5940
5953
|
};
|
|
5941
5954
|
}, ps = ({
|
|
@@ -5943,20 +5956,20 @@ const Sn = V.createContext({
|
|
|
5943
5956
|
routes: t,
|
|
5944
5957
|
children: r
|
|
5945
5958
|
}) => {
|
|
5946
|
-
const i = V.useRef([]), [a, s] = V.useState([]),
|
|
5959
|
+
const i = V.useRef([]), [a, s] = V.useState([]), d = V.useCallback((y) => {
|
|
5947
5960
|
i.current = y, s(y);
|
|
5948
5961
|
}, []), l = (y, S = !1) => {
|
|
5949
5962
|
let L = [...i.current];
|
|
5950
|
-
S && (L = L.slice(0, L.length - 1)), L = [...L, y],
|
|
5963
|
+
S && (L = L.slice(0, L.length - 1)), L = [...L, y], d(L);
|
|
5951
5964
|
}, u = (y) => {
|
|
5952
5965
|
let S = "", L = [];
|
|
5953
5966
|
return i.current.length === 0 ? "/" : (i.current.length <= y ? (S = i.current[0], L = [S]) : (L = i.current.slice(
|
|
5954
5967
|
0,
|
|
5955
5968
|
i.current.length - y
|
|
5956
|
-
), S = L[L.length - 1]),
|
|
5957
|
-
},
|
|
5958
|
-
|
|
5959
|
-
},
|
|
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 }));
|
|
5960
5973
|
return /* @__PURE__ */ X.jsx(
|
|
5961
5974
|
Sn.Provider,
|
|
5962
5975
|
{
|
|
@@ -5964,10 +5977,10 @@ const Sn = V.createContext({
|
|
|
5964
5977
|
history: a,
|
|
5965
5978
|
addToHistory: l,
|
|
5966
5979
|
popFromHistory: u,
|
|
5967
|
-
replaceHistory:
|
|
5980
|
+
replaceHistory: f
|
|
5968
5981
|
},
|
|
5969
5982
|
children: /* @__PURE__ */ X.jsx(Ro, { children: /* @__PURE__ */ X.jsxs(X.Fragment, { children: [
|
|
5970
|
-
e && /* @__PURE__ */ X.jsx(ro, { children:
|
|
5983
|
+
e && /* @__PURE__ */ X.jsx(ro, { children: v }),
|
|
5971
5984
|
r
|
|
5972
5985
|
] }) })
|
|
5973
5986
|
}
|
|
@@ -5984,7 +5997,7 @@ const Sn = V.createContext({
|
|
|
5984
5997
|
), ms = ({ children: e }) => {
|
|
5985
5998
|
const t = V.useRef([]), [r, i] = V.useState([]), a = V.useCallback((u) => {
|
|
5986
5999
|
t.current = u, i(u);
|
|
5987
|
-
}, []), s = V.useCallback((u) => t.current.some((
|
|
6000
|
+
}, []), s = V.useCallback((u) => t.current.some((f) => f === u), []), d = V.useCallback(
|
|
5988
6001
|
(u) => {
|
|
5989
6002
|
s(u) || a([...t.current, u]);
|
|
5990
6003
|
},
|
|
@@ -5992,7 +6005,7 @@ const Sn = V.createContext({
|
|
|
5992
6005
|
), l = V.useCallback(
|
|
5993
6006
|
(u) => {
|
|
5994
6007
|
s(u) && a(
|
|
5995
|
-
t.current.filter((
|
|
6008
|
+
t.current.filter((v) => v !== u)
|
|
5996
6009
|
);
|
|
5997
6010
|
},
|
|
5998
6011
|
[s, a]
|
|
@@ -6003,7 +6016,7 @@ const Sn = V.createContext({
|
|
|
6003
6016
|
value: {
|
|
6004
6017
|
visibleItems: r,
|
|
6005
6018
|
isItemVisible: s,
|
|
6006
|
-
showItem:
|
|
6019
|
+
showItem: d,
|
|
6007
6020
|
hideItem: l
|
|
6008
6021
|
},
|
|
6009
6022
|
children: e
|
|
@@ -6028,39 +6041,39 @@ const Sn = V.createContext({
|
|
|
6028
6041
|
}) => {
|
|
6029
6042
|
const { isItemVisible: i } = Ct(), [a, s] = V.useState({
|
|
6030
6043
|
isDragging: !1
|
|
6031
|
-
}),
|
|
6044
|
+
}), d = V.useRef(null), l = V.useRef(null), u = V.useRef(null), [f, v] = V.useState(0), y = (k) => {
|
|
6032
6045
|
s(k);
|
|
6033
6046
|
}, S = (k) => {
|
|
6034
|
-
s(k),
|
|
6047
|
+
s(k), v(0);
|
|
6035
6048
|
};
|
|
6036
6049
|
return la({
|
|
6037
6050
|
ref: u,
|
|
6038
6051
|
onDrag: (k) => {
|
|
6039
6052
|
s(k);
|
|
6040
6053
|
const p = l.current?.clientHeight || 0;
|
|
6041
|
-
k.distanceY && (
|
|
6054
|
+
k.distanceY && (v(k.distanceY < 0 ? 0 : -k.distanceY), k.distanceY >= p - r && (t?.(), S(k)));
|
|
6042
6055
|
},
|
|
6043
6056
|
onDragEnd: S,
|
|
6044
6057
|
onDragStart: y
|
|
6045
6058
|
}), {
|
|
6046
6059
|
isVisible: i(e),
|
|
6047
|
-
drawerParentRef:
|
|
6060
|
+
drawerParentRef: d,
|
|
6048
6061
|
drawerRef: l,
|
|
6049
|
-
drawerBottomDistance:
|
|
6062
|
+
drawerBottomDistance: f,
|
|
6050
6063
|
handleRef: u
|
|
6051
6064
|
};
|
|
6052
6065
|
}, vs = (e) => {
|
|
6053
6066
|
const { children: t, backgroundStyles: r, contentStyles: i, handle: a } = e, {
|
|
6054
6067
|
isVisible: s,
|
|
6055
|
-
drawerParentRef:
|
|
6068
|
+
drawerParentRef: d,
|
|
6056
6069
|
drawerRef: l,
|
|
6057
6070
|
handleRef: u,
|
|
6058
|
-
drawerBottomDistance:
|
|
6071
|
+
drawerBottomDistance: f
|
|
6059
6072
|
} = No(e);
|
|
6060
6073
|
return /* @__PURE__ */ X.jsx(X.Fragment, { children: s && /* @__PURE__ */ X.jsx(
|
|
6061
6074
|
"div",
|
|
6062
6075
|
{
|
|
6063
|
-
ref:
|
|
6076
|
+
ref: d,
|
|
6064
6077
|
style: {
|
|
6065
6078
|
width: "100%",
|
|
6066
6079
|
height: "100%",
|
|
@@ -6094,11 +6107,11 @@ const Sn = V.createContext({
|
|
|
6094
6107
|
padding: "24px",
|
|
6095
6108
|
zIndex: 1001,
|
|
6096
6109
|
position: "absolute",
|
|
6097
|
-
bottom: `${
|
|
6110
|
+
bottom: `${f}px`,
|
|
6098
6111
|
...i
|
|
6099
6112
|
},
|
|
6100
|
-
onClick: (
|
|
6101
|
-
|
|
6113
|
+
onClick: (v) => {
|
|
6114
|
+
v.stopPropagation();
|
|
6102
6115
|
},
|
|
6103
6116
|
children: [
|
|
6104
6117
|
/* @__PURE__ */ X.jsx(
|
|
@@ -6130,11 +6143,11 @@ const Sn = V.createContext({
|
|
|
6130
6143
|
onSubmit: t,
|
|
6131
6144
|
configurations: r
|
|
6132
6145
|
}) => {
|
|
6133
|
-
const i = V.useRef(null), a = V.useRef(!1), s = (
|
|
6134
|
-
const
|
|
6146
|
+
const i = V.useRef(null), a = V.useRef(!1), s = (f) => {
|
|
6147
|
+
const v = Array.from(f.currentTarget.elements).filter(
|
|
6135
6148
|
(S) => !!S.getAttribute("name")
|
|
6136
6149
|
), y = [];
|
|
6137
|
-
for (const S of
|
|
6150
|
+
for (const S of v) {
|
|
6138
6151
|
const L = S.name;
|
|
6139
6152
|
y.push({
|
|
6140
6153
|
name: L,
|
|
@@ -6142,56 +6155,56 @@ const Sn = V.createContext({
|
|
|
6142
6155
|
});
|
|
6143
6156
|
}
|
|
6144
6157
|
return y;
|
|
6145
|
-
},
|
|
6158
|
+
}, d = async (f) => {
|
|
6146
6159
|
try {
|
|
6147
6160
|
const S = (r || []).find(
|
|
6148
|
-
(L) => L.name ===
|
|
6161
|
+
(L) => L.name === f.name
|
|
6149
6162
|
);
|
|
6150
6163
|
if (!S)
|
|
6151
|
-
return
|
|
6152
|
-
var
|
|
6153
|
-
if (S.emptyValidation && S.emptyValidation.allow === !1 && !
|
|
6154
|
-
return
|
|
6155
|
-
if (S.minLengthValidation &&
|
|
6156
|
-
return
|
|
6157
|
-
if (S.maxLengthValidation &&
|
|
6158
|
-
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;
|
|
6159
6172
|
if (!isNaN(y)) {
|
|
6160
6173
|
if (S.minValueValidation && y < S.minValueValidation.value)
|
|
6161
|
-
return
|
|
6174
|
+
return f.error = S.minValueValidation.errorMessage, f;
|
|
6162
6175
|
if (S.maxValueValidation && y > S.maxValueValidation.value)
|
|
6163
|
-
return
|
|
6176
|
+
return f.error = S.maxValueValidation.errorMessage, f;
|
|
6164
6177
|
}
|
|
6165
|
-
if (S.exactValueValidation && S.exactValueValidation.value !==
|
|
6166
|
-
return
|
|
6178
|
+
if (S.exactValueValidation && S.exactValueValidation.value !== f.value)
|
|
6179
|
+
return f.error = S.exactValueValidation.errorMessage, f;
|
|
6167
6180
|
for (let L = 0; L < (S.validations || []).length; L++) {
|
|
6168
|
-
const k = await S.validations?.[L](
|
|
6181
|
+
const k = await S.validations?.[L](f.value);
|
|
6169
6182
|
if (k)
|
|
6170
|
-
return
|
|
6183
|
+
return f.error = k, f;
|
|
6171
6184
|
}
|
|
6172
6185
|
} catch (S) {
|
|
6173
|
-
console.error(`Form > Failed To Validate Field ${
|
|
6186
|
+
console.error(`Form > Failed To Validate Field ${f.name}: `, S);
|
|
6174
6187
|
}
|
|
6175
|
-
return
|
|
6188
|
+
return f;
|
|
6176
6189
|
}, l = V.useCallback(
|
|
6177
|
-
async (
|
|
6190
|
+
async (f) => {
|
|
6178
6191
|
try {
|
|
6179
6192
|
if (a.current)
|
|
6180
6193
|
return;
|
|
6181
|
-
a.current = !0, e?.(),
|
|
6182
|
-
let
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
), a.current = !1, t?.(
|
|
6186
|
-
} catch (
|
|
6187
|
-
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);
|
|
6188
6201
|
}
|
|
6189
6202
|
},
|
|
6190
6203
|
[t, e]
|
|
6191
6204
|
);
|
|
6192
6205
|
return {
|
|
6193
6206
|
ref: i,
|
|
6194
|
-
submitForm: (
|
|
6207
|
+
submitForm: (f) => {
|
|
6195
6208
|
i.current && i.current.requestSubmit();
|
|
6196
6209
|
},
|
|
6197
6210
|
handleFormSubmission: l
|
|
@@ -6212,12 +6225,12 @@ const Sn = V.createContext({
|
|
|
6212
6225
|
pointer-events: none;
|
|
6213
6226
|
}
|
|
6214
6227
|
`, gs = (e) => {
|
|
6215
|
-
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);
|
|
6216
6229
|
return /* @__PURE__ */ X.jsxs(
|
|
6217
6230
|
"form",
|
|
6218
6231
|
{
|
|
6219
6232
|
ref: s,
|
|
6220
|
-
onSubmit:
|
|
6233
|
+
onSubmit: d,
|
|
6221
6234
|
style: {
|
|
6222
6235
|
width: "100%",
|
|
6223
6236
|
display: "flex",
|
|
@@ -6305,11 +6318,11 @@ const Sn = V.createContext({
|
|
|
6305
6318
|
const { onValueChanged: t, handleOnBlur: r, handleOnFocus: i } = Uo(e), {
|
|
6306
6319
|
name: a,
|
|
6307
6320
|
label: s,
|
|
6308
|
-
leftIcon:
|
|
6321
|
+
leftIcon: d,
|
|
6309
6322
|
rightIcon: l,
|
|
6310
6323
|
bottomMessage: u,
|
|
6311
|
-
placeHolder:
|
|
6312
|
-
autoComplete:
|
|
6324
|
+
placeHolder: f,
|
|
6325
|
+
autoComplete: v = "off",
|
|
6313
6326
|
value: y,
|
|
6314
6327
|
initialValue: S,
|
|
6315
6328
|
type: L = "text",
|
|
@@ -6356,16 +6369,16 @@ const Sn = V.createContext({
|
|
|
6356
6369
|
...I
|
|
6357
6370
|
},
|
|
6358
6371
|
children: [
|
|
6359
|
-
|
|
6372
|
+
d,
|
|
6360
6373
|
/* @__PURE__ */ X.jsx(
|
|
6361
6374
|
"input",
|
|
6362
6375
|
{
|
|
6363
6376
|
name: a,
|
|
6364
6377
|
type: L,
|
|
6365
|
-
autoComplete:
|
|
6378
|
+
autoComplete: v,
|
|
6366
6379
|
step: F,
|
|
6367
6380
|
maxLength: k,
|
|
6368
|
-
placeholder:
|
|
6381
|
+
placeholder: f,
|
|
6369
6382
|
value: y,
|
|
6370
6383
|
defaultValue: S,
|
|
6371
6384
|
onChange: t,
|
|
@@ -6467,8 +6480,8 @@ const Sn = V.createContext({
|
|
|
6467
6480
|
padding: "24px",
|
|
6468
6481
|
...i
|
|
6469
6482
|
},
|
|
6470
|
-
onClick: (
|
|
6471
|
-
|
|
6483
|
+
onClick: (d) => {
|
|
6484
|
+
d.stopPropagation();
|
|
6472
6485
|
},
|
|
6473
6486
|
children: t
|
|
6474
6487
|
}
|
|
@@ -6477,7 +6490,7 @@ const Sn = V.createContext({
|
|
|
6477
6490
|
) });
|
|
6478
6491
|
}, qo = (e) => {
|
|
6479
6492
|
const t = Pn(""), r = ve(
|
|
6480
|
-
(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),
|
|
6481
6494
|
[e]
|
|
6482
6495
|
), i = ve(
|
|
6483
6496
|
(l) => {
|
|
@@ -6485,9 +6498,9 @@ const Sn = V.createContext({
|
|
|
6485
6498
|
l.startsWith(".") && (l = "0" + l), l.length === 2 && l[0] === "-" && l[1] === "." && (l = "-");
|
|
6486
6499
|
const u = l.indexOf(".");
|
|
6487
6500
|
u !== -1 && (l = l.slice(0, u + 1) + l.slice(u + 1).replace(/\./g, ""));
|
|
6488
|
-
const [
|
|
6489
|
-
let L =
|
|
6490
|
-
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;
|
|
6491
6504
|
} else
|
|
6492
6505
|
l = l.replace(/\./g, "");
|
|
6493
6506
|
return l;
|
|
@@ -6496,17 +6509,17 @@ const Sn = V.createContext({
|
|
|
6496
6509
|
), a = ve(
|
|
6497
6510
|
(l) => {
|
|
6498
6511
|
const u = Number(l);
|
|
6499
|
-
var
|
|
6500
|
-
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;
|
|
6501
6514
|
},
|
|
6502
6515
|
[e]
|
|
6503
6516
|
), s = ve(
|
|
6504
6517
|
(l) => {
|
|
6505
|
-
const u = l.target,
|
|
6518
|
+
const u = l.target, f = u.selectionStart ?? 0, v = u.selectionEnd ?? 0;
|
|
6506
6519
|
let y = u.value;
|
|
6507
6520
|
y = y.replace(/[^0-9\.\-]/g, ""), y = r(y), y = i(y), y = a(y);
|
|
6508
6521
|
const S = y.length - u.value.length;
|
|
6509
|
-
u.value = y, u.setSelectionRange(
|
|
6522
|
+
u.value = y, u.setSelectionRange(f + S, v + S), t.current = y;
|
|
6510
6523
|
},
|
|
6511
6524
|
[r, i, a]
|
|
6512
6525
|
);
|
|
@@ -6532,13 +6545,13 @@ const Sn = V.createContext({
|
|
|
6532
6545
|
});
|
|
6533
6546
|
return /* @__PURE__ */ X.jsx(Vo, { type: "text", ...a });
|
|
6534
6547
|
}, Bo = (e) => {
|
|
6535
|
-
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(() => {
|
|
6536
6549
|
t.current && a(t.current.clientHeight);
|
|
6537
6550
|
}, [t, t.current]), u = V.useCallback(() => {
|
|
6538
|
-
r.current &&
|
|
6539
|
-
}, [r, r.current]),
|
|
6540
|
-
let
|
|
6541
|
-
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;
|
|
6542
6555
|
}, [r, r.current]);
|
|
6543
6556
|
return V.useEffect(() => {
|
|
6544
6557
|
l();
|
|
@@ -6558,7 +6571,7 @@ const Sn = V.createContext({
|
|
|
6558
6571
|
ref: r
|
|
6559
6572
|
},
|
|
6560
6573
|
page: {
|
|
6561
|
-
extraHeight:
|
|
6574
|
+
extraHeight: f()
|
|
6562
6575
|
}
|
|
6563
6576
|
};
|
|
6564
6577
|
}, Xo = Ee.div`
|
|
@@ -6588,7 +6601,7 @@ const Sn = V.createContext({
|
|
|
6588
6601
|
children: i,
|
|
6589
6602
|
allowScroll: a = !0,
|
|
6590
6603
|
floatingContent: s,
|
|
6591
|
-
reserveSpaceForScrollbar:
|
|
6604
|
+
reserveSpaceForScrollbar: d
|
|
6592
6605
|
} = e, { footer: l, header: u } = Bo(e);
|
|
6593
6606
|
return /* @__PURE__ */ X.jsxs(
|
|
6594
6607
|
Xo,
|
|
@@ -6643,7 +6656,7 @@ const Sn = V.createContext({
|
|
|
6643
6656
|
flexDirection: "column",
|
|
6644
6657
|
flex: 1,
|
|
6645
6658
|
minHeight: "100%",
|
|
6646
|
-
scrollbarGutter:
|
|
6659
|
+
scrollbarGutter: d ? "stable" : void 0,
|
|
6647
6660
|
paddingLeft: "0px",
|
|
6648
6661
|
paddingRight: "0px",
|
|
6649
6662
|
paddingTop: `${u.height}px`,
|
|
@@ -6734,7 +6747,7 @@ function Jo() {
|
|
|
6734
6747
|
(function(r, i) {
|
|
6735
6748
|
e.exports = i();
|
|
6736
6749
|
})(Ko, function() {
|
|
6737
|
-
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) {
|
|
6738
6751
|
var E = ["th", "st", "nd", "rd"], j = T % 100;
|
|
6739
6752
|
return "[" + T + (E[(j - 20) % 10] || E[j] || E[0]) + "]";
|
|
6740
6753
|
} }, U = function(T, E, j) {
|
|
@@ -6750,16 +6763,16 @@ function Jo() {
|
|
|
6750
6763
|
}, a: function(T) {
|
|
6751
6764
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
6752
6765
|
}, p: function(T) {
|
|
6753
|
-
return { M: y, y: L, w:
|
|
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$/, "");
|
|
6754
6767
|
}, u: function(T) {
|
|
6755
6768
|
return T === void 0;
|
|
6756
|
-
} },
|
|
6757
|
-
w[
|
|
6769
|
+
} }, g = "en", w = {};
|
|
6770
|
+
w[g] = F;
|
|
6758
6771
|
var x = "$isDayjsObject", R = function(T) {
|
|
6759
6772
|
return T instanceof A || !(!T || !T[x]);
|
|
6760
6773
|
}, b = function T(E, j, o) {
|
|
6761
6774
|
var H;
|
|
6762
|
-
if (!E) return
|
|
6775
|
+
if (!E) return g;
|
|
6763
6776
|
if (typeof E == "string") {
|
|
6764
6777
|
var m = E.toLowerCase();
|
|
6765
6778
|
w[m] && (H = m), j && (w[m] = j, H = m);
|
|
@@ -6769,7 +6782,7 @@ function Jo() {
|
|
|
6769
6782
|
var c = E.name;
|
|
6770
6783
|
w[c] = E, H = c;
|
|
6771
6784
|
}
|
|
6772
|
-
return !o && H && (
|
|
6785
|
+
return !o && H && (g = H), H || !o && g;
|
|
6773
6786
|
}, h = function(T, E) {
|
|
6774
6787
|
if (R(T)) return T.clone();
|
|
6775
6788
|
var j = typeof E == "object" ? E : {};
|
|
@@ -6821,7 +6834,7 @@ function Jo() {
|
|
|
6821
6834
|
}, E.startOf = function(j, o) {
|
|
6822
6835
|
var H = this, m = !!P.u(o) || o, n = P.p(j), c = function(K, G) {
|
|
6823
6836
|
var J = P.w(H.$u ? Date.UTC(H.$y, G, K) : new Date(H.$y, G, K), H);
|
|
6824
|
-
return m ? J : J.endOf(
|
|
6837
|
+
return m ? J : J.endOf(f);
|
|
6825
6838
|
}, O = function(K, G) {
|
|
6826
6839
|
return P.w(H.toDate()[K].apply(H.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), H);
|
|
6827
6840
|
}, $ = this.$W, D = this.$M, z = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
@@ -6830,17 +6843,17 @@ function Jo() {
|
|
|
6830
6843
|
return m ? c(1, 0) : c(31, 11);
|
|
6831
6844
|
case y:
|
|
6832
6845
|
return m ? c(1, D) : c(0, D + 1);
|
|
6833
|
-
case
|
|
6846
|
+
case v:
|
|
6834
6847
|
var W = this.$locale().weekStart || 0, B = ($ < W ? $ + 7 : $) - W;
|
|
6835
6848
|
return c(m ? z - B : z + (6 - B), D);
|
|
6836
|
-
case
|
|
6849
|
+
case f:
|
|
6837
6850
|
case k:
|
|
6838
6851
|
return O(N + "Hours", 0);
|
|
6839
6852
|
case u:
|
|
6840
6853
|
return O(N + "Minutes", 1);
|
|
6841
6854
|
case l:
|
|
6842
6855
|
return O(N + "Seconds", 2);
|
|
6843
|
-
case
|
|
6856
|
+
case d:
|
|
6844
6857
|
return O(N + "Milliseconds", 3);
|
|
6845
6858
|
default:
|
|
6846
6859
|
return this.clone();
|
|
@@ -6848,7 +6861,7 @@ function Jo() {
|
|
|
6848
6861
|
}, E.endOf = function(j) {
|
|
6849
6862
|
return this.startOf(j, !1);
|
|
6850
6863
|
}, E.$set = function(j, o) {
|
|
6851
|
-
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""), c = (H = {}, H[
|
|
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;
|
|
6852
6865
|
if (m === y || m === L) {
|
|
6853
6866
|
var $ = this.clone().set(k, 1);
|
|
6854
6867
|
$.$d[c](O), $.init(), this.$d = $.set(k, Math.min(this.$D, $.daysInMonth())).$d;
|
|
@@ -6867,9 +6880,9 @@ function Jo() {
|
|
|
6867
6880
|
};
|
|
6868
6881
|
if (n === y) return this.set(y, this.$M + j);
|
|
6869
6882
|
if (n === L) return this.set(L, this.$y + j);
|
|
6870
|
-
if (n ===
|
|
6871
|
-
if (n ===
|
|
6872
|
-
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;
|
|
6873
6886
|
return P.w($, this);
|
|
6874
6887
|
}, E.subtract = function(j, o) {
|
|
6875
6888
|
return this.add(-1 * j, o);
|
|
@@ -6955,10 +6968,10 @@ function Jo() {
|
|
|
6955
6968
|
case S:
|
|
6956
6969
|
m = z() / 3;
|
|
6957
6970
|
break;
|
|
6958
|
-
case
|
|
6971
|
+
case v:
|
|
6959
6972
|
m = (D - $) / 6048e5;
|
|
6960
6973
|
break;
|
|
6961
|
-
case
|
|
6974
|
+
case f:
|
|
6962
6975
|
m = (D - $) / 864e5;
|
|
6963
6976
|
break;
|
|
6964
6977
|
case u:
|
|
@@ -6967,7 +6980,7 @@ function Jo() {
|
|
|
6967
6980
|
case l:
|
|
6968
6981
|
m = D / i;
|
|
6969
6982
|
break;
|
|
6970
|
-
case
|
|
6983
|
+
case d:
|
|
6971
6984
|
m = D / r;
|
|
6972
6985
|
break;
|
|
6973
6986
|
default:
|
|
@@ -6994,7 +7007,7 @@ function Jo() {
|
|
|
6994
7007
|
return this.$d.toUTCString();
|
|
6995
7008
|
}, T;
|
|
6996
7009
|
}(), _ = A.prototype;
|
|
6997
|
-
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) {
|
|
6998
7011
|
_[T[1]] = function(E) {
|
|
6999
7012
|
return this.$g(E, T[0], T[1]);
|
|
7000
7013
|
};
|
|
@@ -7002,7 +7015,7 @@ function Jo() {
|
|
|
7002
7015
|
return T.$i || (T(E, A, h), T.$i = !0), h;
|
|
7003
7016
|
}, h.locale = b, h.isDayjs = R, h.unix = function(T) {
|
|
7004
7017
|
return h(1e3 * T);
|
|
7005
|
-
}, h.en = w[
|
|
7018
|
+
}, h.en = w[g], h.Ls = w, h.p = {}, h;
|
|
7006
7019
|
});
|
|
7007
7020
|
}(ft)), ft.exports;
|
|
7008
7021
|
}
|
|
@@ -7015,35 +7028,35 @@ function es() {
|
|
|
7015
7028
|
e.exports = i();
|
|
7016
7029
|
})(Qo, function() {
|
|
7017
7030
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
|
|
7018
|
-
return function(s,
|
|
7019
|
-
var u =
|
|
7031
|
+
return function(s, d, l) {
|
|
7032
|
+
var u = d.prototype;
|
|
7020
7033
|
l.utc = function(p) {
|
|
7021
7034
|
var I = { date: p, utc: !0, args: arguments };
|
|
7022
|
-
return new
|
|
7035
|
+
return new d(I);
|
|
7023
7036
|
}, u.utc = function(p) {
|
|
7024
7037
|
var I = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
7025
7038
|
return p ? I.add(this.utcOffset(), r) : I;
|
|
7026
7039
|
}, u.local = function() {
|
|
7027
7040
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
7028
7041
|
};
|
|
7029
|
-
var
|
|
7042
|
+
var f = u.parse;
|
|
7030
7043
|
u.parse = function(p) {
|
|
7031
|
-
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);
|
|
7032
7045
|
};
|
|
7033
|
-
var
|
|
7046
|
+
var v = u.init;
|
|
7034
7047
|
u.init = function() {
|
|
7035
7048
|
if (this.$u) {
|
|
7036
7049
|
var p = this.$d;
|
|
7037
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();
|
|
7038
|
-
} else
|
|
7051
|
+
} else v.call(this);
|
|
7039
7052
|
};
|
|
7040
7053
|
var y = u.utcOffset;
|
|
7041
7054
|
u.utcOffset = function(p, I) {
|
|
7042
7055
|
var C = this.$utils().u;
|
|
7043
7056
|
if (C(p)) return this.$u ? 0 : C(this.$offset) ? y.call(this) : this.$offset;
|
|
7044
|
-
if (typeof p == "string" && (p = function(
|
|
7045
|
-
|
|
7046
|
-
var w =
|
|
7057
|
+
if (typeof p == "string" && (p = function(g) {
|
|
7058
|
+
g === void 0 && (g = "");
|
|
7059
|
+
var w = g.match(i);
|
|
7047
7060
|
if (!w) return null;
|
|
7048
7061
|
var x = ("" + w[0]).match(a) || ["-", 0, 0], R = x[0], b = 60 * +x[1] + +x[2];
|
|
7049
7062
|
return b === 0 ? 0 : R === "+" ? b : -b;
|
|
@@ -7108,12 +7121,12 @@ class Ps {
|
|
|
7108
7121
|
static isSameDate = (t, r) => t?.getFullYear() === r?.getFullYear() && t?.getMonth() === r?.getMonth() && t?.getDate() === r?.getDate();
|
|
7109
7122
|
static getDateInUTC = (t) => {
|
|
7110
7123
|
try {
|
|
7111
|
-
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();
|
|
7112
7125
|
return {
|
|
7113
7126
|
day: i,
|
|
7114
7127
|
month: a,
|
|
7115
7128
|
year: s,
|
|
7116
|
-
hour:
|
|
7129
|
+
hour: d,
|
|
7117
7130
|
minute: l,
|
|
7118
7131
|
weekday: u
|
|
7119
7132
|
};
|
|
@@ -7164,7 +7177,7 @@ const Es = ({
|
|
|
7164
7177
|
customCheckedRender: a,
|
|
7165
7178
|
customUncheckedRender: s
|
|
7166
7179
|
}) => {
|
|
7167
|
-
const
|
|
7180
|
+
const d = e ? { ...r, ...i } : { ...r };
|
|
7168
7181
|
return /* @__PURE__ */ X.jsxs(
|
|
7169
7182
|
"div",
|
|
7170
7183
|
{
|
|
@@ -7182,7 +7195,7 @@ const Es = ({
|
|
|
7182
7195
|
alignItems: "center",
|
|
7183
7196
|
justifyContent: "center",
|
|
7184
7197
|
display: "flex",
|
|
7185
|
-
...
|
|
7198
|
+
...d
|
|
7186
7199
|
},
|
|
7187
7200
|
children: [
|
|
7188
7201
|
e && /* @__PURE__ */ X.jsxs(X.Fragment, { children: [
|
|
@@ -7210,7 +7223,7 @@ const Es = ({
|
|
|
7210
7223
|
stroke: i,
|
|
7211
7224
|
viewBox: a = "0 0 22 28",
|
|
7212
7225
|
fill: s = "#000000",
|
|
7213
|
-
alt:
|
|
7226
|
+
alt: d = "",
|
|
7214
7227
|
onClick: l,
|
|
7215
7228
|
styles: u
|
|
7216
7229
|
}) => /* @__PURE__ */ X.jsx(
|
|
@@ -7270,11 +7283,11 @@ const Es = ({
|
|
|
7270
7283
|
rightIcon: i,
|
|
7271
7284
|
bottomMessage: a,
|
|
7272
7285
|
placeHolder: s,
|
|
7273
|
-
value:
|
|
7286
|
+
value: d,
|
|
7274
7287
|
initialValue: l,
|
|
7275
7288
|
onChange: u,
|
|
7276
|
-
onFocus:
|
|
7277
|
-
onBlur:
|
|
7289
|
+
onFocus: f,
|
|
7290
|
+
onBlur: v,
|
|
7278
7291
|
inputStyles: y,
|
|
7279
7292
|
containerStyles: S,
|
|
7280
7293
|
styles: L
|
|
@@ -7282,9 +7295,9 @@ const Es = ({
|
|
|
7282
7295
|
const k = (C) => {
|
|
7283
7296
|
u?.(C.currentTarget.value);
|
|
7284
7297
|
}, p = (C) => {
|
|
7285
|
-
C.preventDefault(), C.stopPropagation(),
|
|
7298
|
+
C.preventDefault(), C.stopPropagation(), f?.();
|
|
7286
7299
|
}, I = (C) => {
|
|
7287
|
-
|
|
7300
|
+
v?.();
|
|
7288
7301
|
};
|
|
7289
7302
|
return /* @__PURE__ */ X.jsxs(
|
|
7290
7303
|
ns,
|
|
@@ -7338,7 +7351,7 @@ const Es = ({
|
|
|
7338
7351
|
...y
|
|
7339
7352
|
},
|
|
7340
7353
|
placeholder: s,
|
|
7341
|
-
value:
|
|
7354
|
+
value: d,
|
|
7342
7355
|
defaultValue: l,
|
|
7343
7356
|
onChange: k,
|
|
7344
7357
|
onFocus: p,
|
|
@@ -7359,11 +7372,11 @@ const Es = ({
|
|
|
7359
7372
|
styles: r,
|
|
7360
7373
|
durationInSeconds: i = 3
|
|
7361
7374
|
}) => {
|
|
7362
|
-
const a = V.useRef(!1), { isItemVisible: s, hideItem:
|
|
7375
|
+
const a = V.useRef(!1), { isItemVisible: s, hideItem: d } = Ct();
|
|
7363
7376
|
return V.useEffect(() => {
|
|
7364
7377
|
const l = s(e);
|
|
7365
|
-
a.current !== l && (a.current = l, l && setTimeout(() =>
|
|
7366
|
-
}, [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(
|
|
7367
7380
|
"div",
|
|
7368
7381
|
{
|
|
7369
7382
|
style: {
|