@eliseubatista99/react-scaffold-core 0.1.80 → 0.1.82
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/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as L from "react";
|
|
2
|
+
import q, { forwardRef as kn, useContext as Yt, useEffect as Ir, useState as Ar, useMemo as zr, useCallback as _e } from "react";
|
|
3
3
|
var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function qt(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -102,7 +102,7 @@ function En() {
|
|
|
102
102
|
return (n.displayName || "Context") + ".Provider";
|
|
103
103
|
case F:
|
|
104
104
|
return (n._context.displayName || "Context") + ".Consumer";
|
|
105
|
-
case
|
|
105
|
+
case B:
|
|
106
106
|
var f = n.render;
|
|
107
107
|
return n = n.displayName, n || (n = f.displayName || f.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
108
108
|
case w:
|
|
@@ -179,13 +179,13 @@ function En() {
|
|
|
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 h(n, f, S, $,
|
|
182
|
+
function h(n, f, S, $, D, H, N, W) {
|
|
183
183
|
return S = H.ref, n = {
|
|
184
184
|
$$typeof: M,
|
|
185
185
|
type: n,
|
|
186
186
|
key: f,
|
|
187
187
|
props: H,
|
|
188
|
-
_owner:
|
|
188
|
+
_owner: D
|
|
189
189
|
}, (S !== void 0 ? S : null) !== null ? Object.defineProperty(n, "ref", {
|
|
190
190
|
enumerable: !1,
|
|
191
191
|
get: u
|
|
@@ -211,7 +211,7 @@ function En() {
|
|
|
211
211
|
value: W
|
|
212
212
|
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
213
213
|
}
|
|
214
|
-
function g(n, f, S, $,
|
|
214
|
+
function g(n, f, S, $, D, H, N, W) {
|
|
215
215
|
var V = f.children;
|
|
216
216
|
if (V !== void 0)
|
|
217
217
|
if ($)
|
|
@@ -254,7 +254,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
254
254
|
n,
|
|
255
255
|
V,
|
|
256
256
|
H,
|
|
257
|
-
|
|
257
|
+
D,
|
|
258
258
|
a(),
|
|
259
259
|
S,
|
|
260
260
|
N,
|
|
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
function O(n) {
|
|
265
265
|
typeof n == "object" && n !== null && n.$$typeof === M && n._store && (n._store.validated = 1);
|
|
266
266
|
}
|
|
267
|
-
var j =
|
|
267
|
+
var j = q, M = Symbol.for("react.transitional.element"), P = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), U = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), y = Symbol.for("react.activity"), d = Symbol.for("react.client.reference"), k = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, R = Array.isArray, _ = console.createTask ? console.createTask : function() {
|
|
268
268
|
return null;
|
|
269
269
|
};
|
|
270
270
|
j = {
|
|
@@ -276,7 +276,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
276
276
|
j,
|
|
277
277
|
s
|
|
278
278
|
)(), z = _(i(s)), m = {};
|
|
279
|
-
He.Fragment = p, He.jsx = function(n, f, S, $,
|
|
279
|
+
He.Fragment = p, He.jsx = function(n, f, S, $, D) {
|
|
280
280
|
var H = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
281
281
|
return g(
|
|
282
282
|
n,
|
|
@@ -284,11 +284,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
284
284
|
S,
|
|
285
285
|
!1,
|
|
286
286
|
$,
|
|
287
|
-
|
|
287
|
+
D,
|
|
288
288
|
H ? Error("react-stack-top-frame") : o,
|
|
289
289
|
H ? _(i(n)) : z
|
|
290
290
|
);
|
|
291
|
-
}, He.jsxs = function(n, f, S, $,
|
|
291
|
+
}, He.jsxs = function(n, f, S, $, D) {
|
|
292
292
|
var H = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
293
293
|
return g(
|
|
294
294
|
n,
|
|
@@ -296,7 +296,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
296
296
|
S,
|
|
297
297
|
!0,
|
|
298
298
|
$,
|
|
299
|
-
|
|
299
|
+
D,
|
|
300
300
|
H ? Error("react-stack-top-frame") : o,
|
|
301
301
|
H ? _(i(n)) : z
|
|
302
302
|
);
|
|
@@ -381,7 +381,7 @@ function Tn() {
|
|
|
381
381
|
var E, y, d, k, A, R, _ = 0, C = !1, T = !1, o = !0;
|
|
382
382
|
if (typeof v != "function")
|
|
383
383
|
throw new TypeError(e);
|
|
384
|
-
b =
|
|
384
|
+
b = B(b) || 0, x(w) && (C = !!w.leading, T = "maxWait" in w, d = T ? M(B(w.maxWait) || 0, b) : d, o = "trailing" in w ? !!w.trailing : o);
|
|
385
385
|
function z(W) {
|
|
386
386
|
var V = E, K = y;
|
|
387
387
|
return E = y = void 0, _ = W, k = v.apply(K, V), k;
|
|
@@ -406,7 +406,7 @@ function Tn() {
|
|
|
406
406
|
function $(W) {
|
|
407
407
|
return A = void 0, o && E ? z(W) : (E = y = void 0, k);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function D() {
|
|
410
410
|
A !== void 0 && clearTimeout(A), _ = 0, E = R = y = A = void 0;
|
|
411
411
|
}
|
|
412
412
|
function H() {
|
|
@@ -422,7 +422,7 @@ function Tn() {
|
|
|
422
422
|
}
|
|
423
423
|
return A === void 0 && (A = setTimeout(S, b)), k;
|
|
424
424
|
}
|
|
425
|
-
return N.cancel =
|
|
425
|
+
return N.cancel = D, N.flush = H, N;
|
|
426
426
|
}
|
|
427
427
|
function x(v) {
|
|
428
428
|
var b = typeof v;
|
|
@@ -434,7 +434,7 @@ function Tn() {
|
|
|
434
434
|
function U(v) {
|
|
435
435
|
return typeof v == "symbol" || F(v) && j.call(v) == r;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function B(v) {
|
|
438
438
|
if (typeof v == "number")
|
|
439
439
|
return v;
|
|
440
440
|
if (U(v))
|
|
@@ -496,7 +496,7 @@ function Hr() {
|
|
|
496
496
|
Object.defineProperty(e, "__esModule", {
|
|
497
497
|
value: !0
|
|
498
498
|
}), e.default = void 0;
|
|
499
|
-
var t = r(
|
|
499
|
+
var t = r(q);
|
|
500
500
|
function r(a) {
|
|
501
501
|
return a && a.__esModule ? a : { default: a };
|
|
502
502
|
}
|
|
@@ -572,7 +572,7 @@ function Ke() {
|
|
|
572
572
|
ur = 1, Object.defineProperty(Y, "__esModule", {
|
|
573
573
|
value: !0
|
|
574
574
|
}), Y.checkSpecKeys = Y.checkNavigable = Y.changeSlide = Y.canUseDOM = Y.canGoNext = void 0, Y.clamp = h, Y.extractObject = void 0, Y.filterSettings = z, 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
|
-
var e = r(
|
|
575
|
+
var e = r(q), t = r(Hr());
|
|
576
576
|
function r(m) {
|
|
577
577
|
return m && m.__esModule ? m : { default: m };
|
|
578
578
|
}
|
|
@@ -629,13 +629,13 @@ function Ke() {
|
|
|
629
629
|
var f = ["onTouchStart", "onTouchMove", "onWheel"];
|
|
630
630
|
f.includes(n._reactName) || n.preventDefault();
|
|
631
631
|
}, O = Y.getOnDemandLazySlides = function(n) {
|
|
632
|
-
for (var f = [], S = j(n), $ = M(n),
|
|
633
|
-
n.lazyLoadedList.indexOf(
|
|
632
|
+
for (var f = [], S = j(n), $ = M(n), D = S; D < $; D++)
|
|
633
|
+
n.lazyLoadedList.indexOf(D) < 0 && f.push(D);
|
|
634
634
|
return f;
|
|
635
635
|
};
|
|
636
636
|
Y.getRequiredLazySlides = function(n) {
|
|
637
|
-
for (var f = [], S = j(n), $ = M(n),
|
|
638
|
-
f.push(
|
|
637
|
+
for (var f = [], S = j(n), $ = M(n), D = S; D < $; D++)
|
|
638
|
+
f.push(D);
|
|
639
639
|
return f;
|
|
640
640
|
};
|
|
641
641
|
var j = Y.lazyStartIndex = function(n) {
|
|
@@ -651,8 +651,8 @@ function Ke() {
|
|
|
651
651
|
}, x = Y.getHeight = function(n) {
|
|
652
652
|
return n && n.offsetHeight || 0;
|
|
653
653
|
}, F = Y.getSwipeDirection = function(n) {
|
|
654
|
-
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, S, $,
|
|
655
|
-
return S = n.startX - n.curX, $ = n.startY - n.curY,
|
|
654
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, S, $, D, H;
|
|
655
|
+
return S = n.startX - n.curX, $ = n.startY - n.curY, D = Math.atan2($, S), H = Math.round(D * 180 / Math.PI), H < 0 && (H = 360 - Math.abs(H)), H <= 45 && H >= 0 || H <= 360 && H >= 315 ? "left" : H >= 135 && H <= 225 ? "right" : f === !0 ? H >= 35 && H <= 135 ? "up" : "down" : "vertical";
|
|
656
656
|
}, U = Y.canGoNext = function(n) {
|
|
657
657
|
var f = !0;
|
|
658
658
|
return n.infinite || (n.centerMode && n.currentSlide >= n.slideCount - 1 || n.slideCount <= n.slidesToShow || n.currentSlide >= n.slideCount - n.slidesToShow) && (f = !1), f;
|
|
@@ -663,7 +663,7 @@ function Ke() {
|
|
|
663
663
|
return S[$] = n[$];
|
|
664
664
|
}), S;
|
|
665
665
|
}, Y.initializedState = function(n) {
|
|
666
|
-
var f = e.default.Children.count(n.children), S = n.listRef, $ = Math.ceil(I(S)),
|
|
666
|
+
var f = e.default.Children.count(n.children), S = n.listRef, $ = Math.ceil(I(S)), D = n.trackRef && n.trackRef.node, H = Math.ceil(I(D)), N;
|
|
667
667
|
if (n.vertical)
|
|
668
668
|
N = $;
|
|
669
669
|
else {
|
|
@@ -689,11 +689,11 @@ function Ke() {
|
|
|
689
689
|
};
|
|
690
690
|
return n.autoplaying === null && n.autoplay && (Z.autoplaying = "playing"), Z;
|
|
691
691
|
}, Y.slideHandler = function(n) {
|
|
692
|
-
var f = n.waitForAnimate, S = n.animating, $ = n.fade,
|
|
692
|
+
var f = n.waitForAnimate, S = n.animating, $ = n.fade, D = n.infinite, H = n.index, N = n.slideCount, W = n.lazyLoad, V = n.currentSlide, K = n.centerMode, X = n.slidesToScroll, J = n.slidesToShow, te = n.useCSS, Z = n.lazyLoadedList;
|
|
693
693
|
if (f && S) return {};
|
|
694
|
-
var ee = H, ie, le, Q, oe = {}, ue = {}, ce =
|
|
694
|
+
var ee = H, ie, le, Q, oe = {}, ue = {}, ce = D ? H : h(H, 0, N - 1);
|
|
695
695
|
if ($) {
|
|
696
|
-
if (!
|
|
696
|
+
if (!D && (H < 0 || H >= N)) return {};
|
|
697
697
|
H < 0 ? ee = H + N : H >= N && (ee = H - N), W && Z.indexOf(ee) < 0 && (Z = Z.concat(ee)), oe = {
|
|
698
698
|
animating: !0,
|
|
699
699
|
currentSlide: ee,
|
|
@@ -704,11 +704,11 @@ function Ke() {
|
|
|
704
704
|
targetSlide: ee
|
|
705
705
|
};
|
|
706
706
|
} else
|
|
707
|
-
ie = ee, ee < 0 ? (ie = ee + N,
|
|
707
|
+
ie = ee, ee < 0 ? (ie = ee + N, D ? N % X !== 0 && (ie = N - N % X) : ie = 0) : !U(n) && ee > V ? ee = ie = V : K && ee >= N ? (ee = D ? N : N - 1, ie = D ? 0 : N - 1) : ee >= N && (ie = ee - N, D ? N % X !== 0 && (ie = 0) : ie = N - J), !D && ee + J >= N && (ie = N - J), le = d(s(s({}, n), {}, {
|
|
708
708
|
slideIndex: ee
|
|
709
709
|
})), Q = d(s(s({}, n), {}, {
|
|
710
710
|
slideIndex: ie
|
|
711
|
-
})),
|
|
711
|
+
})), D || (le === Q && (ee = ie), le = Q), W && (Z = Z.concat(O(s(s({}, n), {}, {
|
|
712
712
|
currentSlide: ee
|
|
713
713
|
})))), te ? (oe = {
|
|
714
714
|
animating: !0,
|
|
@@ -739,11 +739,11 @@ function Ke() {
|
|
|
739
739
|
nextState: ue
|
|
740
740
|
};
|
|
741
741
|
}, Y.changeSlide = function(n, f) {
|
|
742
|
-
var S, $,
|
|
742
|
+
var S, $, D, H, N, W = n.slidesToScroll, V = n.slidesToShow, K = n.slideCount, X = n.currentSlide, J = n.targetSlide, te = n.lazyLoad, Z = n.infinite;
|
|
743
743
|
if (H = K % W !== 0, S = H ? 0 : (K - X) % W, f.message === "previous")
|
|
744
|
-
|
|
744
|
+
D = S === 0 ? W : V - S, N = X - D, te && !Z && ($ = X - D, N = $ === -1 ? K - 1 : $), Z || (N = J - W);
|
|
745
745
|
else if (f.message === "next")
|
|
746
|
-
|
|
746
|
+
D = S === 0 ? W : S, N = X + D, te && !Z && (N = (X + W) % K + S), Z || (N = J + W);
|
|
747
747
|
else if (f.message === "dots")
|
|
748
748
|
N = f.index * f.slidesToScroll;
|
|
749
749
|
else if (f.message === "children") {
|
|
@@ -768,10 +768,10 @@ function Ke() {
|
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
}, Y.swipeMove = function(n, f) {
|
|
771
|
-
var S = f.scrolling, $ = f.animating,
|
|
771
|
+
var S = f.scrolling, $ = f.animating, D = f.vertical, H = f.swipeToSlide, N = f.verticalSwiping, W = f.rtl, V = f.currentSlide, K = f.edgeFriction, X = f.edgeDragged, J = f.onEdge, te = f.swiped, Z = f.swiping, ee = f.slideCount, ie = f.slidesToScroll, le = f.infinite, Q = f.touchObject, oe = f.swipeEvent, ue = f.listHeight, ce = f.listWidth;
|
|
772
772
|
if (!S) {
|
|
773
773
|
if ($) return g(n);
|
|
774
|
-
|
|
774
|
+
D && H && N && g(n);
|
|
775
775
|
var pe, Ee = {}, tt = d(f);
|
|
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)));
|
|
@@ -783,7 +783,7 @@ function Ke() {
|
|
|
783
783
|
var Ie = (W ? -1 : 1) * (Q.curX > Q.startX ? 1 : -1);
|
|
784
784
|
N && (Ie = Q.curY > Q.startY ? 1 : -1);
|
|
785
785
|
var On = Math.ceil(ee / ie), Ce = F(f.touchObject, N), Ae = Q.swipeLength;
|
|
786
|
-
return le || (V === 0 && (Ce === "right" || Ce === "down") || V + 1 >= On && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength * K, X === !1 && J && (J(Ce), Ee.edgeDragged = !0)), !te && oe && (oe(Ce), Ee.swiped = !0),
|
|
786
|
+
return le || (V === 0 && (Ce === "right" || Ce === "down") || V + 1 >= On && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength * K, X === !1 && J && (J(Ce), Ee.edgeDragged = !0)), !te && oe && (oe(Ce), Ee.swiped = !0), D ? pe = tt + Ae * (ue / ce) * Ie : W ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, N && (pe = tt + Ae * Ie), Ee = s(s({}, Ee), {}, {
|
|
787
787
|
touchObject: Q,
|
|
788
788
|
swipeLeft: pe,
|
|
789
789
|
trackStyle: E(s(s({}, f), {}, {
|
|
@@ -792,10 +792,10 @@ function Ke() {
|
|
|
792
792
|
}), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Ee.swiping = !0, g(n)), Ee;
|
|
793
793
|
}
|
|
794
794
|
}, Y.swipeEnd = function(n, f) {
|
|
795
|
-
var S = f.dragging, $ = f.swipe,
|
|
795
|
+
var S = f.dragging, $ = f.swipe, D = f.touchObject, H = f.listWidth, N = f.touchThreshold, W = f.verticalSwiping, V = f.listHeight, K = f.swipeToSlide, X = f.scrolling, J = f.onSwipe, te = f.targetSlide, Z = f.currentSlide, ee = f.infinite;
|
|
796
796
|
if (!S)
|
|
797
797
|
return $ && g(n), {};
|
|
798
|
-
var ie = W ? V / N : H / N, le = F(
|
|
798
|
+
var ie = W ? V / N : H / N, le = F(D, W), Q = {
|
|
799
799
|
dragging: !1,
|
|
800
800
|
edgeDragged: !1,
|
|
801
801
|
scrolling: !1,
|
|
@@ -804,9 +804,9 @@ function Ke() {
|
|
|
804
804
|
swipeLeft: null,
|
|
805
805
|
touchObject: {}
|
|
806
806
|
};
|
|
807
|
-
if (X || !
|
|
807
|
+
if (X || !D.swipeLength)
|
|
808
808
|
return Q;
|
|
809
|
-
if (
|
|
809
|
+
if (D.swipeLength > ie) {
|
|
810
810
|
g(n), J && J(le);
|
|
811
811
|
var oe, ue, ce = ee ? Z : te;
|
|
812
812
|
switch (le) {
|
|
@@ -830,28 +830,28 @@ function Ke() {
|
|
|
830
830
|
}
|
|
831
831
|
return Q;
|
|
832
832
|
};
|
|
833
|
-
var
|
|
834
|
-
for (var f = n.infinite ? n.slideCount * 2 : n.slideCount, S = n.infinite ? n.slidesToShow * -1 : 0, $ = n.infinite ? n.slidesToShow * -1 : 0,
|
|
835
|
-
|
|
836
|
-
return
|
|
833
|
+
var B = Y.getNavigableIndexes = function(n) {
|
|
834
|
+
for (var f = n.infinite ? n.slideCount * 2 : n.slideCount, S = n.infinite ? n.slidesToShow * -1 : 0, $ = n.infinite ? n.slidesToShow * -1 : 0, D = []; S < f; )
|
|
835
|
+
D.push(S), S = $ + n.slidesToScroll, $ += Math.min(n.slidesToScroll, n.slidesToShow);
|
|
836
|
+
return D;
|
|
837
837
|
}, v = Y.checkNavigable = function(n, f) {
|
|
838
|
-
var S =
|
|
838
|
+
var S = B(n), $ = 0;
|
|
839
839
|
if (f > S[S.length - 1])
|
|
840
840
|
f = S[S.length - 1];
|
|
841
841
|
else
|
|
842
|
-
for (var
|
|
843
|
-
if (f < S[
|
|
842
|
+
for (var D in S) {
|
|
843
|
+
if (f < S[D]) {
|
|
844
844
|
f = $;
|
|
845
845
|
break;
|
|
846
846
|
}
|
|
847
|
-
$ = S[
|
|
847
|
+
$ = S[D];
|
|
848
848
|
}
|
|
849
849
|
return f;
|
|
850
850
|
}, b = Y.getSlideCount = function(n) {
|
|
851
851
|
var f = n.centerMode ? n.slideWidth * Math.floor(n.slidesToShow / 2) : 0;
|
|
852
852
|
if (n.swipeToSlide) {
|
|
853
|
-
var S, $ = n.listRef,
|
|
854
|
-
if (Array.from(
|
|
853
|
+
var S, $ = n.listRef, D = $.querySelectorAll && $.querySelectorAll(".slick-slide") || [];
|
|
854
|
+
if (Array.from(D).every(function(W) {
|
|
855
855
|
if (n.vertical) {
|
|
856
856
|
if (W.offsetTop + x(W) / 2 > n.swipeLeft * -1)
|
|
857
857
|
return S = W, !1;
|
|
@@ -877,23 +877,23 @@ function Ke() {
|
|
|
877
877
|
var $ = n.unslick ? n.slideCount : n.slideCount + 2 * n.slidesToShow;
|
|
878
878
|
S = $ * n.slideHeight;
|
|
879
879
|
}
|
|
880
|
-
var
|
|
880
|
+
var D = {
|
|
881
881
|
opacity: 1,
|
|
882
882
|
transition: "",
|
|
883
883
|
WebkitTransition: ""
|
|
884
884
|
};
|
|
885
885
|
if (n.useTransform) {
|
|
886
886
|
var H = n.vertical ? "translate3d(0px, " + n.left + "px, 0px)" : "translate3d(" + n.left + "px, 0px, 0px)", N = n.vertical ? "translate3d(0px, " + n.left + "px, 0px)" : "translate3d(" + n.left + "px, 0px, 0px)", W = n.vertical ? "translateY(" + n.left + "px)" : "translateX(" + n.left + "px)";
|
|
887
|
-
|
|
887
|
+
D = s(s({}, D), {}, {
|
|
888
888
|
WebkitTransform: H,
|
|
889
889
|
transform: N,
|
|
890
890
|
msTransform: W
|
|
891
891
|
});
|
|
892
892
|
} else
|
|
893
|
-
n.vertical ?
|
|
894
|
-
return n.fade && (
|
|
893
|
+
n.vertical ? D.top = n.left : D.left = n.left;
|
|
894
|
+
return n.fade && (D = {
|
|
895
895
|
opacity: 1
|
|
896
|
-
}), f && (
|
|
896
|
+
}), f && (D.width = f), S && (D.height = S), window && !window.addEventListener && window.attachEvent && (n.vertical ? D.marginTop = n.left + "px" : D.marginLeft = n.left + "px"), D;
|
|
897
897
|
}, y = Y.getTrackAnimateCSS = function(n) {
|
|
898
898
|
w(n, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
|
|
899
899
|
var f = E(n);
|
|
@@ -902,13 +902,13 @@ function Ke() {
|
|
|
902
902
|
if (n.unslick)
|
|
903
903
|
return 0;
|
|
904
904
|
w(n, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
|
|
905
|
-
var f = n.slideIndex, S = n.trackRef, $ = n.infinite,
|
|
905
|
+
var f = n.slideIndex, S = n.trackRef, $ = n.infinite, D = n.centerMode, H = n.slideCount, N = n.slidesToShow, W = n.slidesToScroll, V = n.slideWidth, K = n.listWidth, X = n.variableWidth, J = n.slideHeight, te = n.fade, Z = n.vertical, ee = 0, ie, le, Q = 0;
|
|
906
906
|
if (te || n.slideCount === 1)
|
|
907
907
|
return 0;
|
|
908
908
|
var oe = 0;
|
|
909
|
-
if ($ ? (oe = -k(n), H % W !== 0 && f + W > H && (oe = -(f > H ? N - (f - H) : H % W)),
|
|
909
|
+
if ($ ? (oe = -k(n), H % W !== 0 && f + W > H && (oe = -(f > H ? N - (f - H) : H % W)), D && (oe += parseInt(N / 2))) : (H % W !== 0 && f + W > H && (oe = N - H % W), D && (oe = parseInt(N / 2))), ee = oe * V, Q = oe * J, Z ? ie = f * J * -1 + Q : ie = f * V * -1 + ee, X === !0) {
|
|
910
910
|
var ue, ce = S && S.node;
|
|
911
|
-
if (ue = f + k(n), le = ce && ce.childNodes[ue], ie = le ? le.offsetLeft * -1 : 0,
|
|
911
|
+
if (ue = f + k(n), le = ce && ce.childNodes[ue], ie = le ? le.offsetLeft * -1 : 0, D === !0) {
|
|
912
912
|
ue = $ ? f + k(n) : f, le = ce && ce.children[ue], ie = 0;
|
|
913
913
|
for (var pe = 0; pe < ue; pe++)
|
|
914
914
|
ie -= ce && ce.children[pe] && ce.children[pe].offsetWidth;
|
|
@@ -925,17 +925,17 @@ function Ke() {
|
|
|
925
925
|
}, _ = Y.siblingDirection = function(n) {
|
|
926
926
|
return n.targetSlide > n.currentSlide ? n.targetSlide > n.currentSlide + C(n) ? "left" : "right" : n.targetSlide < n.currentSlide - T(n) ? "right" : "left";
|
|
927
927
|
}, C = Y.slidesOnRight = function(n) {
|
|
928
|
-
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl,
|
|
928
|
+
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl, D = n.centerPadding;
|
|
929
929
|
if (S) {
|
|
930
930
|
var H = (f - 1) / 2 + 1;
|
|
931
|
-
return parseInt(
|
|
931
|
+
return parseInt(D) > 0 && (H += 1), $ && f % 2 === 0 && (H += 1), H;
|
|
932
932
|
}
|
|
933
933
|
return $ ? 0 : f - 1;
|
|
934
934
|
}, T = Y.slidesOnLeft = function(n) {
|
|
935
|
-
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl,
|
|
935
|
+
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl, D = n.centerPadding;
|
|
936
936
|
if (S) {
|
|
937
937
|
var H = (f - 1) / 2 + 1;
|
|
938
|
-
return parseInt(
|
|
938
|
+
return parseInt(D) > 0 && (H += 1), !$ && f % 2 === 0 && (H += 1), H;
|
|
939
939
|
}
|
|
940
940
|
return $ ? f - 1 : 0;
|
|
941
941
|
};
|
|
@@ -956,7 +956,7 @@ function jn() {
|
|
|
956
956
|
cr = 1, Object.defineProperty(Fe, "__esModule", {
|
|
957
957
|
value: !0
|
|
958
958
|
}), Fe.Track = void 0;
|
|
959
|
-
var e = i(
|
|
959
|
+
var e = i(q), t = i(yt()), r = Ke();
|
|
960
960
|
function i(y) {
|
|
961
961
|
return y && y.__esModule ? y : { default: y };
|
|
962
962
|
}
|
|
@@ -1059,10 +1059,10 @@ function jn() {
|
|
|
1059
1059
|
return (d = U(d)) in y ? Object.defineProperty(y, d, { value: k, enumerable: !0, configurable: !0, writable: !0 }) : y[d] = k, y;
|
|
1060
1060
|
}
|
|
1061
1061
|
function U(y) {
|
|
1062
|
-
var d =
|
|
1062
|
+
var d = B(y, "string");
|
|
1063
1063
|
return a(d) == "symbol" ? d : d + "";
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function B(y, d) {
|
|
1066
1066
|
if (a(y) != "object" || !y) return y;
|
|
1067
1067
|
var k = y[Symbol.toPrimitive];
|
|
1068
1068
|
if (k !== void 0) {
|
|
@@ -1103,15 +1103,15 @@ function jn() {
|
|
|
1103
1103
|
!d.lazyLoad || d.lazyLoad && d.lazyLoadedList.indexOf(m) >= 0 ? n = z : n = /* @__PURE__ */ e.default.createElement("div", null);
|
|
1104
1104
|
var S = b(x(x({}, d), {}, {
|
|
1105
1105
|
index: m
|
|
1106
|
-
})), $ = n.props.className || "",
|
|
1106
|
+
})), $ = n.props.className || "", D = v(x(x({}, d), {}, {
|
|
1107
1107
|
index: m
|
|
1108
1108
|
}));
|
|
1109
1109
|
if (A.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1110
1110
|
key: "original" + w(n, m),
|
|
1111
1111
|
"data-index": m,
|
|
1112
|
-
className: (0, t.default)(
|
|
1112
|
+
className: (0, t.default)(D, $),
|
|
1113
1113
|
tabIndex: "-1",
|
|
1114
|
-
"aria-hidden": !
|
|
1114
|
+
"aria-hidden": !D["slick-active"],
|
|
1115
1115
|
style: x(x({
|
|
1116
1116
|
outline: "none"
|
|
1117
1117
|
}, n.props.style || {}), S),
|
|
@@ -1120,26 +1120,26 @@ function jn() {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
})), d.infinite && C > 1 && d.fade === !1 && !d.unslick) {
|
|
1122
1122
|
var H = C - m;
|
|
1123
|
-
H <= (0, r.getPreClones)(d) && (k = -H, k >= T && (n = z),
|
|
1123
|
+
H <= (0, r.getPreClones)(d) && (k = -H, k >= T && (n = z), D = v(x(x({}, d), {}, {
|
|
1124
1124
|
index: k
|
|
1125
1125
|
})), R.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1126
1126
|
key: "precloned" + w(n, k),
|
|
1127
1127
|
"data-index": k,
|
|
1128
1128
|
tabIndex: "-1",
|
|
1129
|
-
className: (0, t.default)(
|
|
1130
|
-
"aria-hidden": !
|
|
1129
|
+
className: (0, t.default)(D, $),
|
|
1130
|
+
"aria-hidden": !D["slick-active"],
|
|
1131
1131
|
style: x(x({}, n.props.style || {}), S),
|
|
1132
1132
|
onClick: function(W) {
|
|
1133
1133
|
n.props && n.props.onClick && n.props.onClick(W), d.focusOnSelect && d.focusOnSelect(f);
|
|
1134
1134
|
}
|
|
1135
|
-
}))), m < (0, r.getPostClones)(d) && (k = C + m, k < o && (n = z),
|
|
1135
|
+
}))), m < (0, r.getPostClones)(d) && (k = C + m, k < o && (n = z), D = v(x(x({}, d), {}, {
|
|
1136
1136
|
index: k
|
|
1137
1137
|
})), _.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1138
1138
|
key: "postcloned" + w(n, k),
|
|
1139
1139
|
"data-index": k,
|
|
1140
1140
|
tabIndex: "-1",
|
|
1141
|
-
className: (0, t.default)(
|
|
1142
|
-
"aria-hidden": !
|
|
1141
|
+
className: (0, t.default)(D, $),
|
|
1142
|
+
"aria-hidden": !D["slick-active"],
|
|
1143
1143
|
style: x(x({}, n.props.style || {}), S),
|
|
1144
1144
|
onClick: function(W) {
|
|
1145
1145
|
n.props && n.props.onClick && n.props.onClick(W), d.focusOnSelect && d.focusOnSelect(f);
|
|
@@ -1178,7 +1178,7 @@ function jn() {
|
|
|
1178
1178
|
}(e.default.PureComponent), Fe;
|
|
1179
1179
|
}
|
|
1180
1180
|
var We = {}, fr;
|
|
1181
|
-
function
|
|
1181
|
+
function Dn() {
|
|
1182
1182
|
if (fr) return We;
|
|
1183
1183
|
fr = 1;
|
|
1184
1184
|
function e(v) {
|
|
@@ -1192,7 +1192,7 @@ function Ln() {
|
|
|
1192
1192
|
Object.defineProperty(We, "__esModule", {
|
|
1193
1193
|
value: !0
|
|
1194
1194
|
}), We.Dots = void 0;
|
|
1195
|
-
var t = a(
|
|
1195
|
+
var t = a(q), r = a(yt()), i = Ke();
|
|
1196
1196
|
function a(v) {
|
|
1197
1197
|
return v && v.__esModule ? v : { default: v };
|
|
1198
1198
|
}
|
|
@@ -1290,7 +1290,7 @@ function Ln() {
|
|
|
1290
1290
|
return b.__proto__ || Object.getPrototypeOf(b);
|
|
1291
1291
|
}, U(v);
|
|
1292
1292
|
}
|
|
1293
|
-
var
|
|
1293
|
+
var B = function(b) {
|
|
1294
1294
|
var w;
|
|
1295
1295
|
return b.infinite ? w = Math.ceil(b.slideCount / b.slidesToScroll) : w = Math.ceil((b.slideCount - b.slidesToShow) / b.slidesToScroll) + 1, w;
|
|
1296
1296
|
};
|
|
@@ -1308,7 +1308,7 @@ function Ln() {
|
|
|
1308
1308
|
}, {
|
|
1309
1309
|
key: "render",
|
|
1310
1310
|
value: function() {
|
|
1311
|
-
for (var y = this.props, d = y.onMouseEnter, k = y.onMouseOver, A = y.onMouseLeave, R = y.infinite, _ = y.slidesToScroll, C = y.slidesToShow, T = y.slideCount, o = y.currentSlide, z =
|
|
1311
|
+
for (var y = this.props, d = y.onMouseEnter, k = y.onMouseOver, A = y.onMouseLeave, R = y.infinite, _ = y.slidesToScroll, C = y.slidesToShow, T = y.slideCount, o = y.currentSlide, z = B({
|
|
1312
1312
|
slideCount: T,
|
|
1313
1313
|
slidesToScroll: _,
|
|
1314
1314
|
slidesToShow: C,
|
|
@@ -1318,7 +1318,7 @@ function Ln() {
|
|
|
1318
1318
|
onMouseOver: k,
|
|
1319
1319
|
onMouseLeave: A
|
|
1320
1320
|
}, n = [], f = 0; f < z; f++) {
|
|
1321
|
-
var S = (f + 1) * _ - 1, $ = R ? S : (0, i.clamp)(S, 0, T - 1),
|
|
1321
|
+
var S = (f + 1) * _ - 1, $ = R ? S : (0, i.clamp)(S, 0, T - 1), D = $ - (_ - 1), H = R ? D : (0, i.clamp)(D, 0, T - 1), N = (0, r.default)({
|
|
1322
1322
|
"slick-active": R ? o >= H && o <= $ : o === H
|
|
1323
1323
|
}), W = {
|
|
1324
1324
|
message: "dots",
|
|
@@ -1341,7 +1341,7 @@ function Ln() {
|
|
|
1341
1341
|
}(t.default.PureComponent), We;
|
|
1342
1342
|
}
|
|
1343
1343
|
var Re = {}, dr;
|
|
1344
|
-
function
|
|
1344
|
+
function Ln() {
|
|
1345
1345
|
if (dr) return Re;
|
|
1346
1346
|
dr = 1;
|
|
1347
1347
|
function e(v) {
|
|
@@ -1355,7 +1355,7 @@ function Dn() {
|
|
|
1355
1355
|
Object.defineProperty(Re, "__esModule", {
|
|
1356
1356
|
value: !0
|
|
1357
1357
|
}), Re.PrevArrow = Re.NextArrow = void 0;
|
|
1358
|
-
var t = a(
|
|
1358
|
+
var t = a(q), r = a(yt()), i = Ke();
|
|
1359
1359
|
function a(v) {
|
|
1360
1360
|
return v && v.__esModule ? v : { default: v };
|
|
1361
1361
|
}
|
|
@@ -1431,9 +1431,9 @@ function Dn() {
|
|
|
1431
1431
|
function I(v) {
|
|
1432
1432
|
var b = U();
|
|
1433
1433
|
return function() {
|
|
1434
|
-
var w, E =
|
|
1434
|
+
var w, E = B(v);
|
|
1435
1435
|
if (b) {
|
|
1436
|
-
var y =
|
|
1436
|
+
var y = B(this).constructor;
|
|
1437
1437
|
w = Reflect.construct(E, arguments, y);
|
|
1438
1438
|
} else w = E.apply(this, arguments);
|
|
1439
1439
|
return x(this, w);
|
|
@@ -1458,10 +1458,10 @@ function Dn() {
|
|
|
1458
1458
|
return !!v;
|
|
1459
1459
|
})();
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
return
|
|
1461
|
+
function B(v) {
|
|
1462
|
+
return B = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(b) {
|
|
1463
1463
|
return b.__proto__ || Object.getPrototypeOf(b);
|
|
1464
|
-
},
|
|
1464
|
+
}, B(v);
|
|
1465
1465
|
}
|
|
1466
1466
|
return Re.PrevArrow = /* @__PURE__ */ function(v) {
|
|
1467
1467
|
P(w, v);
|
|
@@ -1840,7 +1840,7 @@ function ei() {
|
|
|
1840
1840
|
pr = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1841
1841
|
value: !0
|
|
1842
1842
|
}), Ne.InnerSlider = void 0;
|
|
1843
|
-
var e = h(
|
|
1843
|
+
var e = h(q), t = h(_n()), r = h(Tn()), i = h(yt()), a = Ke(), s = jn(), c = Dn(), l = Ln(), u = h(Qn);
|
|
1844
1844
|
function h(R) {
|
|
1845
1845
|
return R && R.__esModule ? R : { default: R };
|
|
1846
1846
|
}
|
|
@@ -1917,12 +1917,12 @@ function ei() {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
function U(R, _) {
|
|
1919
1919
|
if (typeof _ != "function" && _ !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1920
|
-
R.prototype = Object.create(_ && _.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), Object.defineProperty(R, "prototype", { writable: !1 }), _ &&
|
|
1920
|
+
R.prototype = Object.create(_ && _.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), Object.defineProperty(R, "prototype", { writable: !1 }), _ && B(R, _);
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return
|
|
1922
|
+
function B(R, _) {
|
|
1923
|
+
return B = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(C, T) {
|
|
1924
1924
|
return C.__proto__ = T, C;
|
|
1925
|
-
},
|
|
1925
|
+
}, B(R, _);
|
|
1926
1926
|
}
|
|
1927
1927
|
function v(R) {
|
|
1928
1928
|
var _ = E();
|
|
@@ -2063,8 +2063,8 @@ function ei() {
|
|
|
2063
2063
|
m = p(p({}, m), {}, {
|
|
2064
2064
|
left: $
|
|
2065
2065
|
});
|
|
2066
|
-
var
|
|
2067
|
-
(n || e.default.Children.count(o.props.children) !== e.default.Children.count(m.children)) && (S.trackStyle =
|
|
2066
|
+
var D = (0, a.getTrackCSS)(m);
|
|
2067
|
+
(n || e.default.Children.count(o.props.children) !== e.default.Children.count(m.children)) && (S.trackStyle = D), o.setState(S, f);
|
|
2068
2068
|
}), d(w(o), "ssrInit", function() {
|
|
2069
2069
|
if (o.props.variableWidth) {
|
|
2070
2070
|
var m = 0, n = 0, f = [], S = (0, a.getPreClones)(p(p(p({}, o.props), o.state), {}, {
|
|
@@ -2075,8 +2075,8 @@ function ei() {
|
|
|
2075
2075
|
o.props.children.forEach(function(le) {
|
|
2076
2076
|
f.push(le.props.style.width), m += le.props.style.width;
|
|
2077
2077
|
});
|
|
2078
|
-
for (var
|
|
2079
|
-
n += f[f.length - 1 -
|
|
2078
|
+
for (var D = 0; D < S; D++)
|
|
2079
|
+
n += f[f.length - 1 - D], m += f[f.length - 1 - D];
|
|
2080
2080
|
for (var H = 0; H < $; H++)
|
|
2081
2081
|
m += f[H];
|
|
2082
2082
|
for (var N = 0; N < o.state.currentSlide; N++)
|
|
@@ -2116,9 +2116,9 @@ function ei() {
|
|
|
2116
2116
|
return S.parentNode.focus();
|
|
2117
2117
|
};
|
|
2118
2118
|
else {
|
|
2119
|
-
var
|
|
2119
|
+
var D = S.onclick;
|
|
2120
2120
|
S.onclick = function(H) {
|
|
2121
|
-
|
|
2121
|
+
D(H), S.parentNode.focus();
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
2124
|
S.onload || (o.props.lazyLoad ? S.onload = function() {
|
|
@@ -2144,7 +2144,7 @@ function ei() {
|
|
|
2144
2144
|
};
|
|
2145
2145
|
}), o.props.onLazyLoad && o.props.onLazyLoad(m)) : o.lazyLoadTimer && (clearInterval(o.lazyLoadTimer), delete o.lazyLoadTimer);
|
|
2146
2146
|
}), d(w(o), "slideHandler", function(m) {
|
|
2147
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = o.props, S = f.asNavFor, $ = f.beforeChange,
|
|
2147
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = o.props, S = f.asNavFor, $ = f.beforeChange, D = f.onLazyLoad, H = f.speed, N = f.afterChange, W = o.state.currentSlide, V = (0, a.slideHandler)(p(p(p({
|
|
2148
2148
|
index: m
|
|
2149
2149
|
}, o.props), o.state), {}, {
|
|
2150
2150
|
trackRef: o.track,
|
|
@@ -2155,7 +2155,7 @@ function ei() {
|
|
|
2155
2155
|
var J = K.lazyLoadedList.filter(function(te) {
|
|
2156
2156
|
return o.state.lazyLoadedList.indexOf(te) < 0;
|
|
2157
2157
|
});
|
|
2158
|
-
|
|
2158
|
+
D && J.length > 0 && D(J), !o.props.waitForAnimate && o.animationEndCallback && (clearTimeout(o.animationEndCallback), N && N(W), delete o.animationEndCallback), o.setState(K, function() {
|
|
2159
2159
|
S && o.asNavForIndex !== m && (o.asNavForIndex = m, S.innerSlider.slideHandler(m)), X && (o.animationEndCallback = setTimeout(function() {
|
|
2160
2160
|
var te = X.animating, Z = j(X, ["animating"]);
|
|
2161
2161
|
o.setState(Z, function() {
|
|
@@ -2293,13 +2293,13 @@ function ei() {
|
|
|
2293
2293
|
});
|
|
2294
2294
|
var $;
|
|
2295
2295
|
if (o.props.dots === !0 && o.state.slideCount >= o.props.slidesToShow) {
|
|
2296
|
-
var
|
|
2297
|
-
|
|
2296
|
+
var D = (0, a.extractObject)(n, ["dotsClass", "slideCount", "slidesToShow", "currentSlide", "slidesToScroll", "clickHandler", "children", "customPaging", "infinite", "appendDots"]), H = o.props.pauseOnDotsHover;
|
|
2297
|
+
D = p(p({}, D), {}, {
|
|
2298
2298
|
clickHandler: o.changeSlide,
|
|
2299
2299
|
onMouseEnter: H ? o.onDotsLeave : null,
|
|
2300
2300
|
onMouseOver: H ? o.onDotsOver : null,
|
|
2301
2301
|
onMouseLeave: H ? o.onDotsLeave : null
|
|
2302
|
-
}), $ = /* @__PURE__ */ e.default.createElement(c.Dots,
|
|
2302
|
+
}), $ = /* @__PURE__ */ e.default.createElement(c.Dots, D);
|
|
2303
2303
|
}
|
|
2304
2304
|
var N, W, V = (0, a.extractObject)(n, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
|
|
2305
2305
|
V.clickHandler = o.changeSlide, o.props.arrows && (N = /* @__PURE__ */ e.default.createElement(l.PrevArrow, V), W = /* @__PURE__ */ e.default.createElement(l.NextArrow, V));
|
|
@@ -2368,20 +2368,20 @@ function ei() {
|
|
|
2368
2368
|
}]), C;
|
|
2369
2369
|
}(e.default.Component), Ne;
|
|
2370
2370
|
}
|
|
2371
|
-
var
|
|
2371
|
+
var Dt, mr;
|
|
2372
2372
|
function ti() {
|
|
2373
|
-
if (mr) return
|
|
2373
|
+
if (mr) return Dt;
|
|
2374
2374
|
mr = 1;
|
|
2375
2375
|
var e = function(t) {
|
|
2376
2376
|
return t.replace(/[A-Z]/g, function(r) {
|
|
2377
2377
|
return "-" + r.toLowerCase();
|
|
2378
2378
|
}).toLowerCase();
|
|
2379
2379
|
};
|
|
2380
|
-
return
|
|
2380
|
+
return Dt = e, Dt;
|
|
2381
2381
|
}
|
|
2382
|
-
var
|
|
2382
|
+
var Lt, vr;
|
|
2383
2383
|
function ri() {
|
|
2384
|
-
if (vr) return
|
|
2384
|
+
if (vr) return Lt;
|
|
2385
2385
|
vr = 1;
|
|
2386
2386
|
var e = ti(), t = function(a) {
|
|
2387
2387
|
var s = /[height|width]$/;
|
|
@@ -2398,7 +2398,7 @@ function ri() {
|
|
|
2398
2398
|
s += r(c), l < a.length - 1 && (s += ", ");
|
|
2399
2399
|
}), s) : r(a);
|
|
2400
2400
|
};
|
|
2401
|
-
return
|
|
2401
|
+
return Lt = i, Lt;
|
|
2402
2402
|
}
|
|
2403
2403
|
var gr;
|
|
2404
2404
|
function ni() {
|
|
@@ -2406,7 +2406,7 @@ function ni() {
|
|
|
2406
2406
|
Object.defineProperty(e, "__esModule", {
|
|
2407
2407
|
value: !0
|
|
2408
2408
|
}), e.default = void 0;
|
|
2409
|
-
var t = c(
|
|
2409
|
+
var t = c(q), r = ei(), i = c(ri()), a = c(Hr()), s = Ke();
|
|
2410
2410
|
function c(E) {
|
|
2411
2411
|
return E && E.__esModule ? E : { default: E };
|
|
2412
2412
|
}
|
|
@@ -2473,9 +2473,9 @@ function ni() {
|
|
|
2473
2473
|
function I(E) {
|
|
2474
2474
|
var y = U();
|
|
2475
2475
|
return function() {
|
|
2476
|
-
var d, k =
|
|
2476
|
+
var d, k = B(E);
|
|
2477
2477
|
if (y) {
|
|
2478
|
-
var A =
|
|
2478
|
+
var A = B(this).constructor;
|
|
2479
2479
|
d = Reflect.construct(k, arguments, A);
|
|
2480
2480
|
} else d = k.apply(this, arguments);
|
|
2481
2481
|
return x(this, d);
|
|
@@ -2500,10 +2500,10 @@ function ni() {
|
|
|
2500
2500
|
return !!E;
|
|
2501
2501
|
})();
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2504
|
-
return
|
|
2503
|
+
function B(E) {
|
|
2504
|
+
return B = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(y) {
|
|
2505
2505
|
return y.__proto__ || Object.getPrototypeOf(y);
|
|
2506
|
-
},
|
|
2506
|
+
}, B(E);
|
|
2507
2507
|
}
|
|
2508
2508
|
function v(E, y, d) {
|
|
2509
2509
|
return (y = b(y)) in E ? Object.defineProperty(E, y, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : E[y] = d, E;
|
|
@@ -2603,12 +2603,12 @@ function ni() {
|
|
|
2603
2603
|
key: "render",
|
|
2604
2604
|
value: function() {
|
|
2605
2605
|
var A = this, R, _;
|
|
2606
|
-
this.state.breakpoint ? (_ = this.props.responsive.filter(function(
|
|
2607
|
-
return
|
|
2606
|
+
this.state.breakpoint ? (_ = this.props.responsive.filter(function(D) {
|
|
2607
|
+
return D.breakpoint === A.state.breakpoint;
|
|
2608
2608
|
}), R = _[0].settings === "unslick" ? "unslick" : g(g(g({}, a.default), this.props), _[0].settings)) : R = g(g({}, a.default), this.props), R.centerMode && (R.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(R.slidesToScroll)), R.slidesToScroll = 1), R.fade && (R.slidesToShow > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(R.slidesToShow)), R.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(R.slidesToScroll)), R.slidesToShow = 1, R.slidesToScroll = 1);
|
|
2609
2609
|
var C = t.default.Children.toArray(this.props.children);
|
|
2610
|
-
C = C.filter(function(
|
|
2611
|
-
return typeof
|
|
2610
|
+
C = C.filter(function(D) {
|
|
2611
|
+
return typeof D == "string" ? !!D.trim() : !!D;
|
|
2612
2612
|
}), R.variableWidth && (R.rows > 1 || R.slidesPerRow > 1) && (console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"), R.variableWidth = !1);
|
|
2613
2613
|
for (var T = [], o = null, z = 0; z < C.length; z += R.rows * R.slidesPerRow) {
|
|
2614
2614
|
for (var m = [], n = z; n < z + R.rows * R.slidesPerRow; n += R.slidesPerRow) {
|
|
@@ -2747,9 +2747,9 @@ function it(e, t) {
|
|
|
2747
2747
|
function vi(e, t) {
|
|
2748
2748
|
return e.map(t).join("");
|
|
2749
2749
|
}
|
|
2750
|
-
var St = 1,
|
|
2750
|
+
var St = 1, De = 1, Xr = 0, he = 0, se = 0, Le = "";
|
|
2751
2751
|
function xt(e, t, r, i, a, s, c) {
|
|
2752
|
-
return { value: e, root: t, parent: r, type: i, props: a, children: s, line: St, column:
|
|
2752
|
+
return { value: e, root: t, parent: r, type: i, props: a, children: s, line: St, column: De, length: c, return: "" };
|
|
2753
2753
|
}
|
|
2754
2754
|
function Ue(e, t) {
|
|
2755
2755
|
return hi(xt("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
@@ -2758,19 +2758,19 @@ function gi() {
|
|
|
2758
2758
|
return se;
|
|
2759
2759
|
}
|
|
2760
2760
|
function yi() {
|
|
2761
|
-
return se = he > 0 ? fe(
|
|
2761
|
+
return se = he > 0 ? fe(Le, --he) : 0, De--, se === 10 && (De = 1, St--), se;
|
|
2762
2762
|
}
|
|
2763
2763
|
function me() {
|
|
2764
|
-
return se = he < Xr ? fe(
|
|
2764
|
+
return se = he < Xr ? fe(Le, he++) : 0, De++, se === 10 && (De = 1, St++), se;
|
|
2765
2765
|
}
|
|
2766
2766
|
function be() {
|
|
2767
|
-
return fe(
|
|
2767
|
+
return fe(Le, he);
|
|
2768
2768
|
}
|
|
2769
2769
|
function ot() {
|
|
2770
2770
|
return he;
|
|
2771
2771
|
}
|
|
2772
2772
|
function Je(e, t) {
|
|
2773
|
-
return Be(
|
|
2773
|
+
return Be(Le, e, t);
|
|
2774
2774
|
}
|
|
2775
2775
|
function Ve(e) {
|
|
2776
2776
|
switch (e) {
|
|
@@ -2811,10 +2811,10 @@ function Ve(e) {
|
|
|
2811
2811
|
return 0;
|
|
2812
2812
|
}
|
|
2813
2813
|
function Gr(e) {
|
|
2814
|
-
return St =
|
|
2814
|
+
return St = De = 1, Xr = ge(Le = e), he = 0, [];
|
|
2815
2815
|
}
|
|
2816
2816
|
function Kr(e) {
|
|
2817
|
-
return
|
|
2817
|
+
return Le = "", e;
|
|
2818
2818
|
}
|
|
2819
2819
|
function st(e) {
|
|
2820
2820
|
return Vr(Je(he - 1, Nt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
@@ -2866,7 +2866,7 @@ function Oi(e) {
|
|
|
2866
2866
|
return Kr(lt("", null, null, null, [""], e = Gr(e), 0, [0], e));
|
|
2867
2867
|
}
|
|
2868
2868
|
function lt(e, t, r, i, a, s, c, l, u) {
|
|
2869
|
-
for (var h = 0, g = 0, O = c, j = 0, M = 0, P = 0, p = 1, I = 1, x = 1, F = 0, U = "",
|
|
2869
|
+
for (var h = 0, g = 0, O = c, j = 0, M = 0, P = 0, p = 1, I = 1, x = 1, F = 0, U = "", B = a, v = s, b = i, w = U; I; )
|
|
2870
2870
|
switch (P = F, F = me()) {
|
|
2871
2871
|
// (
|
|
2872
2872
|
case 40:
|
|
@@ -2923,9 +2923,9 @@ function lt(e, t, r, i, a, s, c, l, u) {
|
|
|
2923
2923
|
w += ";";
|
|
2924
2924
|
// { rule/at-rule
|
|
2925
2925
|
default:
|
|
2926
|
-
if (it(b = br(w, t, r, h, g, a, l, U,
|
|
2926
|
+
if (it(b = br(w, t, r, h, g, a, l, U, B = [], v = [], O), s), F === 123)
|
|
2927
2927
|
if (g === 0)
|
|
2928
|
-
lt(w, t, b, b,
|
|
2928
|
+
lt(w, t, b, b, B, s, O, l, v);
|
|
2929
2929
|
else
|
|
2930
2930
|
switch (j === 99 && fe(w, 3) === 110 ? 100 : j) {
|
|
2931
2931
|
// d l m s
|
|
@@ -2933,7 +2933,7 @@ function lt(e, t, r, i, a, s, c, l, u) {
|
|
|
2933
2933
|
case 108:
|
|
2934
2934
|
case 109:
|
|
2935
2935
|
case 115:
|
|
2936
|
-
lt(e, b, b, i && it(br(e, b, b, 0, 0, a, l, U, a,
|
|
2936
|
+
lt(e, b, b, i && it(br(e, b, b, 0, 0, a, l, U, a, B = [], O), v), a, v, O, l, i ? B : v);
|
|
2937
2937
|
break;
|
|
2938
2938
|
default:
|
|
2939
2939
|
lt(w, b, b, b, [""], v, 0, l, v);
|
|
@@ -3063,7 +3063,7 @@ var Ri = function(t, r, i) {
|
|
|
3063
3063
|
t.props[h] = s[u] ? c[u].replace(/&\f/g, l[g]) : l[g] + " " + c[u];
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
|
-
},
|
|
3066
|
+
}, Di = function(t) {
|
|
3067
3067
|
if (t.type === "decl") {
|
|
3068
3068
|
var r = t.value;
|
|
3069
3069
|
// charcode for l
|
|
@@ -3213,7 +3213,7 @@ function Zr(e, t) {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
return e;
|
|
3215
3215
|
}
|
|
3216
|
-
var
|
|
3216
|
+
var Li = function(t, r, i, a) {
|
|
3217
3217
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
3218
3218
|
case Vt:
|
|
3219
3219
|
t.return = Zr(t.value, t.length);
|
|
@@ -3244,7 +3244,7 @@ var Di = function(t, r, i, a) {
|
|
|
3244
3244
|
return "";
|
|
3245
3245
|
});
|
|
3246
3246
|
}
|
|
3247
|
-
}, Mi = [
|
|
3247
|
+
}, Mi = [Li], $i = function(t) {
|
|
3248
3248
|
var r = t.key;
|
|
3249
3249
|
if (r === "css") {
|
|
3250
3250
|
var i = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
@@ -3264,7 +3264,7 @@ var Di = function(t, r, i, a) {
|
|
|
3264
3264
|
l.push(p);
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
3267
|
-
var u, h = [ji,
|
|
3267
|
+
var u, h = [ji, Di];
|
|
3268
3268
|
{
|
|
3269
3269
|
var g, O = [Ci, Ei(function(p) {
|
|
3270
3270
|
g.insert(p);
|
|
@@ -3514,7 +3514,7 @@ function Yi(e, t, r) {
|
|
|
3514
3514
|
}
|
|
3515
3515
|
var qi = function(t) {
|
|
3516
3516
|
return t();
|
|
3517
|
-
}, Bi =
|
|
3517
|
+
}, Bi = L.useInsertionEffect ? L.useInsertionEffect : !1, Vi = Bi || qi, tn = /* @__PURE__ */ L.createContext(
|
|
3518
3518
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
3519
3519
|
// because this module is primarily intended for the browser and node
|
|
3520
3520
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -3531,7 +3531,7 @@ var Xi = function(t) {
|
|
|
3531
3531
|
var a = Yt(tn);
|
|
3532
3532
|
return t(r, a, i);
|
|
3533
3533
|
});
|
|
3534
|
-
}, Gi = /* @__PURE__ */
|
|
3534
|
+
}, Gi = /* @__PURE__ */ L.createContext({}), Ki = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Ji = /* @__PURE__ */ Jr(
|
|
3535
3535
|
function(e) {
|
|
3536
3536
|
return Ki.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
3537
3537
|
}
|
|
@@ -3572,24 +3572,24 @@ var Xi = function(t) {
|
|
|
3572
3572
|
O.push(g[P], j[P]);
|
|
3573
3573
|
}
|
|
3574
3574
|
var p = Xi(function(I, x, F) {
|
|
3575
|
-
var U = h && I.as || a,
|
|
3575
|
+
var U = h && I.as || a, B = "", v = [], b = I;
|
|
3576
3576
|
if (I.theme == null) {
|
|
3577
3577
|
b = {};
|
|
3578
3578
|
for (var w in I)
|
|
3579
3579
|
b[w] = I[w];
|
|
3580
|
-
b.theme =
|
|
3580
|
+
b.theme = L.useContext(Gi);
|
|
3581
3581
|
}
|
|
3582
|
-
typeof I.className == "string" ?
|
|
3582
|
+
typeof I.className == "string" ? B = Ai(x.registered, v, I.className) : I.className != null && (B = I.className + " ");
|
|
3583
3583
|
var E = Yi(O.concat(v), x.registered, b);
|
|
3584
|
-
|
|
3584
|
+
B += x.key + "-" + E.name, c !== void 0 && (B += " " + c);
|
|
3585
3585
|
var y = h && l === void 0 ? Cr(U) : u, d = {};
|
|
3586
3586
|
for (var k in I)
|
|
3587
3587
|
h && k === "as" || y(k) && (d[k] = I[k]);
|
|
3588
|
-
return d.className =
|
|
3588
|
+
return d.className = B, F && (d.ref = F), /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement(ea, {
|
|
3589
3589
|
cache: x,
|
|
3590
3590
|
serialized: E,
|
|
3591
3591
|
isStringTag: typeof U == "string"
|
|
3592
|
-
}), /* @__PURE__ */
|
|
3592
|
+
}), /* @__PURE__ */ L.createElement(U, d));
|
|
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 = O, p.__emotion_forwardProp = l, Object.defineProperty(p, "toString", {
|
|
3595
3595
|
value: function() {
|
|
@@ -3837,7 +3837,7 @@ const na = Pe.div`
|
|
|
3837
3837
|
settings: r,
|
|
3838
3838
|
gap: i = 15
|
|
3839
3839
|
}) => {
|
|
3840
|
-
const [a, s] =
|
|
3840
|
+
const [a, s] = q.useState(1), c = q.useRef(null), l = q.useRef(null);
|
|
3841
3841
|
var u = {
|
|
3842
3842
|
dots: !1,
|
|
3843
3843
|
speed: 500,
|
|
@@ -3874,7 +3874,7 @@ const na = Pe.div`
|
|
|
3874
3874
|
res: M
|
|
3875
3875
|
}), s(M);
|
|
3876
3876
|
};
|
|
3877
|
-
return
|
|
3877
|
+
return q.useEffect(() => {
|
|
3878
3878
|
g();
|
|
3879
3879
|
}, [c, l]), /* @__PURE__ */ G.jsx(na, { ref: c, styles: { ...e }, children: h.length > 0 && /* @__PURE__ */ G.jsx(oi, { ...u, slidesToShow: a, children: h }) });
|
|
3880
3880
|
}, rs = ({
|
|
@@ -3912,10 +3912,10 @@ const na = Pe.div`
|
|
|
3912
3912
|
}
|
|
3913
3913
|
);
|
|
3914
3914
|
}, ns = (e) => Ir(e, []), aa = () => {
|
|
3915
|
-
const [e, t] =
|
|
3915
|
+
const [e, t] = q.useState(
|
|
3916
3916
|
{}
|
|
3917
|
-
), [r, i] =
|
|
3918
|
-
return
|
|
3917
|
+
), [r, i] = q.useState(!1);
|
|
3918
|
+
return q.useEffect(() => {
|
|
3919
3919
|
const a = (l) => {
|
|
3920
3920
|
t({ x: l.clientX, y: l.clientY });
|
|
3921
3921
|
}, s = (l) => {
|
|
@@ -3936,9 +3936,9 @@ const na = Pe.div`
|
|
|
3936
3936
|
onDragStart: r,
|
|
3937
3937
|
onDragEnd: i
|
|
3938
3938
|
}) => {
|
|
3939
|
-
const a =
|
|
3939
|
+
const a = q.useRef(!1), s = q.useRef(!1), { pointerPosition: c, isPointerDown: l } = aa(), u = q.useRef({
|
|
3940
3940
|
isDragging: !1
|
|
3941
|
-
}), h =
|
|
3941
|
+
}), h = q.useCallback(
|
|
3942
3942
|
(P) => {
|
|
3943
3943
|
if (!e || !e.current || !u.current)
|
|
3944
3944
|
return;
|
|
@@ -3946,21 +3946,21 @@ const na = Pe.div`
|
|
|
3946
3946
|
return p.posY = P.y, p.posX = P.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;
|
|
3947
3947
|
},
|
|
3948
3948
|
[]
|
|
3949
|
-
), g =
|
|
3949
|
+
), g = q.useCallback(
|
|
3950
3950
|
(P) => {
|
|
3951
3951
|
P.preventDefault(), P.stopPropagation(), u.current.isDragging = !0, u.current.startPosY = P.clientY, u.current.startPosX = P.clientX;
|
|
3952
3952
|
const p = h({ x: P.clientX, y: P.clientY });
|
|
3953
3953
|
p && (u.current = p, r?.(p));
|
|
3954
3954
|
},
|
|
3955
3955
|
[h]
|
|
3956
|
-
), O =
|
|
3956
|
+
), O = q.useCallback(
|
|
3957
3957
|
(P) => {
|
|
3958
3958
|
u.current.isDragging = !1;
|
|
3959
3959
|
const p = h(c);
|
|
3960
3960
|
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0, u.current = p);
|
|
3961
3961
|
},
|
|
3962
3962
|
[h, c]
|
|
3963
|
-
), j =
|
|
3963
|
+
), j = q.useCallback(
|
|
3964
3964
|
(P) => {
|
|
3965
3965
|
if (console.debug(
|
|
3966
3966
|
"useDrag > onPointerMove > Is Dragging >",
|
|
@@ -3971,18 +3971,18 @@ const na = Pe.div`
|
|
|
3971
3971
|
console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p), u.current = p);
|
|
3972
3972
|
},
|
|
3973
3973
|
[h, c]
|
|
3974
|
-
), M =
|
|
3974
|
+
), M = q.useCallback(async () => {
|
|
3975
3975
|
if (!a.current) {
|
|
3976
3976
|
for (; !e?.current; )
|
|
3977
3977
|
await new Promise((P) => setTimeout(P, 300));
|
|
3978
3978
|
a.current = !0, e.current.onpointerdown = g, e.current.style.touchAction = "none";
|
|
3979
3979
|
}
|
|
3980
3980
|
}, [e?.current, g]);
|
|
3981
|
-
|
|
3981
|
+
q.useEffect(() => {
|
|
3982
3982
|
M();
|
|
3983
|
-
}, [M]),
|
|
3983
|
+
}, [M]), q.useEffect(() => {
|
|
3984
3984
|
j();
|
|
3985
|
-
}, [c]),
|
|
3985
|
+
}, [c]), q.useEffect(() => {
|
|
3986
3986
|
l !== s.current && (s.current = l, l || O());
|
|
3987
3987
|
}, [l, s.current]);
|
|
3988
3988
|
}, is = () => {
|
|
@@ -4030,13 +4030,13 @@ const na = Pe.div`
|
|
|
4030
4030
|
};
|
|
4031
4031
|
};
|
|
4032
4032
|
function as(e) {
|
|
4033
|
-
const [t, r] = Ar(!1), i =
|
|
4033
|
+
const [t, r] = Ar(!1), i = q.useMemo(
|
|
4034
4034
|
() => new IntersectionObserver(
|
|
4035
4035
|
([a]) => r(a.isIntersecting)
|
|
4036
4036
|
),
|
|
4037
4037
|
[]
|
|
4038
4038
|
);
|
|
4039
|
-
return
|
|
4039
|
+
return q.useEffect(() => (e?.current && i.observe(e?.current), () => i.disconnect()), [e, i.disconnect, i.observe]), t;
|
|
4040
4040
|
}
|
|
4041
4041
|
const sa = {
|
|
4042
4042
|
xs: 0,
|
|
@@ -4101,18 +4101,18 @@ function ca() {
|
|
|
4101
4101
|
const F = j.indexOf("=", x);
|
|
4102
4102
|
if (F === -1)
|
|
4103
4103
|
break;
|
|
4104
|
-
const U = j.indexOf(";", x),
|
|
4105
|
-
if (F >
|
|
4104
|
+
const U = j.indexOf(";", x), B = U === -1 ? p : U;
|
|
4105
|
+
if (F > B) {
|
|
4106
4106
|
x = j.lastIndexOf(";", F - 1) + 1;
|
|
4107
4107
|
continue;
|
|
4108
4108
|
}
|
|
4109
4109
|
const v = l(j, x, F), b = u(j, F, v), w = j.slice(v, b);
|
|
4110
4110
|
if (P[w] === void 0) {
|
|
4111
|
-
let E = l(j, F + 1,
|
|
4111
|
+
let E = l(j, F + 1, B), y = u(j, B, E);
|
|
4112
4112
|
const d = I(j.slice(E, y));
|
|
4113
4113
|
P[w] = d;
|
|
4114
4114
|
}
|
|
4115
|
-
x =
|
|
4115
|
+
x = B + 1;
|
|
4116
4116
|
} while (x < p);
|
|
4117
4117
|
return P;
|
|
4118
4118
|
}
|
|
@@ -4309,13 +4309,13 @@ function ha(e, t, r, i = {}) {
|
|
|
4309
4309
|
l = "PUSH";
|
|
4310
4310
|
let F = Ft(p.location, I, x);
|
|
4311
4311
|
h = g() + 1;
|
|
4312
|
-
let U = Tr(F, h),
|
|
4312
|
+
let U = Tr(F, h), B = p.createHref(F);
|
|
4313
4313
|
try {
|
|
4314
|
-
c.pushState(U, "",
|
|
4314
|
+
c.pushState(U, "", B);
|
|
4315
4315
|
} catch (v) {
|
|
4316
4316
|
if (v instanceof DOMException && v.name === "DataCloneError")
|
|
4317
4317
|
throw v;
|
|
4318
|
-
a.location.assign(
|
|
4318
|
+
a.location.assign(B);
|
|
4319
4319
|
}
|
|
4320
4320
|
s && u && u({ action: l, location: p.location, delta: 1 });
|
|
4321
4321
|
}
|
|
@@ -4323,8 +4323,8 @@ function ha(e, t, r, i = {}) {
|
|
|
4323
4323
|
l = "REPLACE";
|
|
4324
4324
|
let F = Ft(p.location, I, x);
|
|
4325
4325
|
h = g();
|
|
4326
|
-
let U = Tr(F, h),
|
|
4327
|
-
c.replaceState(U, "",
|
|
4326
|
+
let U = Tr(F, h), B = p.createHref(F);
|
|
4327
|
+
c.replaceState(U, "", B), s && u && u({ action: l, location: p.location, delta: 0 });
|
|
4328
4328
|
}
|
|
4329
4329
|
function P(I) {
|
|
4330
4330
|
return pa(I);
|
|
@@ -4555,8 +4555,8 @@ function Ra(e, t = "/") {
|
|
|
4555
4555
|
} = typeof e == "string" ? Me(e) : e;
|
|
4556
4556
|
return {
|
|
4557
4557
|
pathname: r ? r.startsWith("/") ? r : _a(r, t) : t,
|
|
4558
|
-
search:
|
|
4559
|
-
hash:
|
|
4558
|
+
search: Da(i),
|
|
4559
|
+
hash: La(a)
|
|
4560
4560
|
};
|
|
4561
4561
|
}
|
|
4562
4562
|
function _a(e, t) {
|
|
@@ -4609,7 +4609,7 @@ function sn(e, t, r, i = !1) {
|
|
|
4609
4609
|
let u = Ra(a, l), h = c && c !== "/" && c.endsWith("/"), g = (s || c === ".") && r.endsWith("/");
|
|
4610
4610
|
return !u.pathname.endsWith("/") && (h || g) && (u.pathname += "/"), u;
|
|
4611
4611
|
}
|
|
4612
|
-
var Se = (e) => e.join("/").replace(/\/\/+/g, "/"), ja = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"),
|
|
4612
|
+
var Se = (e) => e.join("/").replace(/\/\/+/g, "/"), ja = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Da = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, La = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
4613
4613
|
function Ma(e) {
|
|
4614
4614
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
4615
4615
|
}
|
|
@@ -4627,35 +4627,35 @@ var $a = [
|
|
|
4627
4627
|
...ln
|
|
4628
4628
|
];
|
|
4629
4629
|
new Set($a);
|
|
4630
|
-
var $e =
|
|
4630
|
+
var $e = L.createContext(null);
|
|
4631
4631
|
$e.displayName = "DataRouter";
|
|
4632
|
-
var Ot =
|
|
4632
|
+
var Ot = L.createContext(null);
|
|
4633
4633
|
Ot.displayName = "DataRouterState";
|
|
4634
|
-
var un =
|
|
4634
|
+
var un = L.createContext({
|
|
4635
4635
|
isTransitioning: !1
|
|
4636
4636
|
});
|
|
4637
4637
|
un.displayName = "ViewTransition";
|
|
4638
|
-
var Ia =
|
|
4638
|
+
var Ia = L.createContext(
|
|
4639
4639
|
/* @__PURE__ */ new Map()
|
|
4640
4640
|
);
|
|
4641
4641
|
Ia.displayName = "Fetchers";
|
|
4642
|
-
var Aa =
|
|
4642
|
+
var Aa = L.createContext(null);
|
|
4643
4643
|
Aa.displayName = "Await";
|
|
4644
|
-
var we =
|
|
4644
|
+
var we = L.createContext(
|
|
4645
4645
|
null
|
|
4646
4646
|
);
|
|
4647
4647
|
we.displayName = "Navigation";
|
|
4648
|
-
var Ze =
|
|
4648
|
+
var Ze = L.createContext(
|
|
4649
4649
|
null
|
|
4650
4650
|
);
|
|
4651
4651
|
Ze.displayName = "Location";
|
|
4652
|
-
var Oe =
|
|
4652
|
+
var Oe = L.createContext({
|
|
4653
4653
|
outlet: null,
|
|
4654
4654
|
matches: [],
|
|
4655
4655
|
isDataRoute: !1
|
|
4656
4656
|
});
|
|
4657
4657
|
Oe.displayName = "Route";
|
|
4658
|
-
var Gt =
|
|
4658
|
+
var Gt = L.createContext(null);
|
|
4659
4659
|
Gt.displayName = "RouteError";
|
|
4660
4660
|
function za(e, { relative: t } = {}) {
|
|
4661
4661
|
ae(
|
|
@@ -4664,11 +4664,11 @@ function za(e, { relative: t } = {}) {
|
|
|
4664
4664
|
// router loaded. We can help them understand how to avoid that.
|
|
4665
4665
|
"useHref() may be used only in the context of a <Router> component."
|
|
4666
4666
|
);
|
|
4667
|
-
let { basename: r, navigator: i } =
|
|
4667
|
+
let { basename: r, navigator: i } = L.useContext(we), { hash: a, pathname: s, search: c } = et(e, { relative: t }), l = s;
|
|
4668
4668
|
return r !== "/" && (l = s === "/" ? r : Se([r, s])), i.createHref({ pathname: l, search: c, hash: a });
|
|
4669
4669
|
}
|
|
4670
4670
|
function Qe() {
|
|
4671
|
-
return
|
|
4671
|
+
return L.useContext(Ze) != null;
|
|
4672
4672
|
}
|
|
4673
4673
|
function ke() {
|
|
4674
4674
|
return ae(
|
|
@@ -4676,14 +4676,14 @@ function ke() {
|
|
|
4676
4676
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4677
4677
|
// router loaded. We can help them understand how to avoid that.
|
|
4678
4678
|
"useLocation() may be used only in the context of a <Router> component."
|
|
4679
|
-
),
|
|
4679
|
+
), L.useContext(Ze).location;
|
|
4680
4680
|
}
|
|
4681
4681
|
var cn = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
4682
4682
|
function fn(e) {
|
|
4683
|
-
|
|
4683
|
+
L.useContext(we).static || L.useLayoutEffect(e);
|
|
4684
4684
|
}
|
|
4685
4685
|
function Kt() {
|
|
4686
|
-
let { isDataRoute: e } =
|
|
4686
|
+
let { isDataRoute: e } = L.useContext(Oe);
|
|
4687
4687
|
return e ? Ja() : Ha();
|
|
4688
4688
|
}
|
|
4689
4689
|
function Ha() {
|
|
@@ -4693,10 +4693,10 @@ function Ha() {
|
|
|
4693
4693
|
// router loaded. We can help them understand how to avoid that.
|
|
4694
4694
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
4695
4695
|
);
|
|
4696
|
-
let e =
|
|
4696
|
+
let e = L.useContext($e), { basename: t, navigator: r } = L.useContext(we), { matches: i } = L.useContext(Oe), { pathname: a } = ke(), s = JSON.stringify(on(i)), c = L.useRef(!1);
|
|
4697
4697
|
return fn(() => {
|
|
4698
4698
|
c.current = !0;
|
|
4699
|
-
}),
|
|
4699
|
+
}), L.useCallback(
|
|
4700
4700
|
(u, h = {}) => {
|
|
4701
4701
|
if (ve(c.current, cn), !c.current) return;
|
|
4702
4702
|
if (typeof u == "number") {
|
|
@@ -4724,10 +4724,10 @@ function Ha() {
|
|
|
4724
4724
|
]
|
|
4725
4725
|
);
|
|
4726
4726
|
}
|
|
4727
|
-
|
|
4727
|
+
L.createContext(null);
|
|
4728
4728
|
function et(e, { relative: t } = {}) {
|
|
4729
|
-
let { matches: r } =
|
|
4730
|
-
return
|
|
4729
|
+
let { matches: r } = L.useContext(Oe), { pathname: i } = ke(), a = JSON.stringify(on(r));
|
|
4730
|
+
return L.useMemo(
|
|
4731
4731
|
() => sn(
|
|
4732
4732
|
e,
|
|
4733
4733
|
JSON.parse(a),
|
|
@@ -4747,7 +4747,7 @@ function dn(e, t, r, i) {
|
|
|
4747
4747
|
// router loaded. We can help them understand how to avoid that.
|
|
4748
4748
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
4749
4749
|
);
|
|
4750
|
-
let { navigator: a } =
|
|
4750
|
+
let { navigator: a } = L.useContext(we), { matches: s } = L.useContext(Oe), c = s[s.length - 1], l = c ? c.params : {}, u = c ? c.pathname : "/", h = c ? c.pathnameBase : "/", g = c && c.route;
|
|
4751
4751
|
{
|
|
4752
4752
|
let x = g && g.path || "";
|
|
4753
4753
|
hn(
|
|
@@ -4800,7 +4800,7 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
|
|
|
4800
4800
|
r,
|
|
4801
4801
|
i
|
|
4802
4802
|
);
|
|
4803
|
-
return t && I ? /* @__PURE__ */
|
|
4803
|
+
return t && I ? /* @__PURE__ */ L.createElement(
|
|
4804
4804
|
Ze.Provider,
|
|
4805
4805
|
{
|
|
4806
4806
|
value: {
|
|
@@ -4824,9 +4824,9 @@ function Fa() {
|
|
|
4824
4824
|
return console.error(
|
|
4825
4825
|
"Error handled by React Router default ErrorBoundary:",
|
|
4826
4826
|
e
|
|
4827
|
-
), c = /* @__PURE__ */
|
|
4827
|
+
), c = /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ L.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ L.createElement("code", { style: s }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ L.createElement("code", { style: s }, "errorElement"), " prop on your route.")), /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ L.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ L.createElement("pre", { style: a }, r) : null, c);
|
|
4828
4828
|
}
|
|
4829
|
-
var Wa = /* @__PURE__ */
|
|
4829
|
+
var Wa = /* @__PURE__ */ L.createElement(Fa, null), Ua = class extends L.Component {
|
|
4830
4830
|
constructor(e) {
|
|
4831
4831
|
super(e), this.state = {
|
|
4832
4832
|
location: e.location,
|
|
@@ -4856,7 +4856,7 @@ var Wa = /* @__PURE__ */ D.createElement(Fa, null), Ua = class extends D.Compone
|
|
|
4856
4856
|
);
|
|
4857
4857
|
}
|
|
4858
4858
|
render() {
|
|
4859
|
-
return this.state.error !== void 0 ? /* @__PURE__ */
|
|
4859
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ L.createElement(Oe.Provider, { value: this.props.routeContext }, /* @__PURE__ */ L.createElement(
|
|
4860
4860
|
Gt.Provider,
|
|
4861
4861
|
{
|
|
4862
4862
|
value: this.state.error,
|
|
@@ -4866,8 +4866,8 @@ var Wa = /* @__PURE__ */ D.createElement(Fa, null), Ua = class extends D.Compone
|
|
|
4866
4866
|
}
|
|
4867
4867
|
};
|
|
4868
4868
|
function Ya({ routeContext: e, match: t, children: r }) {
|
|
4869
|
-
let i =
|
|
4870
|
-
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */
|
|
4869
|
+
let i = L.useContext($e);
|
|
4870
|
+
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ L.createElement(Oe.Provider, { value: e }, r);
|
|
4871
4871
|
}
|
|
4872
4872
|
function qa(e, t = [], r = null, i = null) {
|
|
4873
4873
|
if (e == null) {
|
|
@@ -4916,7 +4916,7 @@ function qa(e, t = [], r = null, i = null) {
|
|
|
4916
4916
|
), j = !0, P = null) : l === g && (j = !0, P = h.route.hydrateFallbackElement || null)));
|
|
4917
4917
|
let p = t.concat(a.slice(0, g + 1)), I = () => {
|
|
4918
4918
|
let x;
|
|
4919
|
-
return O ? x = M : j ? x = P : h.route.Component ? x = /* @__PURE__ */
|
|
4919
|
+
return O ? x = M : j ? x = P : h.route.Component ? x = /* @__PURE__ */ L.createElement(h.route.Component, null) : h.route.element ? x = h.route.element : x = u, /* @__PURE__ */ L.createElement(
|
|
4920
4920
|
Ya,
|
|
4921
4921
|
{
|
|
4922
4922
|
match: h,
|
|
@@ -4929,7 +4929,7 @@ function qa(e, t = [], r = null, i = null) {
|
|
|
4929
4929
|
}
|
|
4930
4930
|
);
|
|
4931
4931
|
};
|
|
4932
|
-
return r && (h.route.ErrorBoundary || h.route.errorElement || g === 0) ? /* @__PURE__ */
|
|
4932
|
+
return r && (h.route.ErrorBoundary || h.route.errorElement || g === 0) ? /* @__PURE__ */ L.createElement(
|
|
4933
4933
|
Ua,
|
|
4934
4934
|
{
|
|
4935
4935
|
location: r.location,
|
|
@@ -4946,15 +4946,15 @@ function Jt(e) {
|
|
|
4946
4946
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
4947
4947
|
}
|
|
4948
4948
|
function Ba(e) {
|
|
4949
|
-
let t =
|
|
4949
|
+
let t = L.useContext($e);
|
|
4950
4950
|
return ae(t, Jt(e)), t;
|
|
4951
4951
|
}
|
|
4952
4952
|
function Va(e) {
|
|
4953
|
-
let t =
|
|
4953
|
+
let t = L.useContext(Ot);
|
|
4954
4954
|
return ae(t, Jt(e)), t;
|
|
4955
4955
|
}
|
|
4956
4956
|
function Xa(e) {
|
|
4957
|
-
let t =
|
|
4957
|
+
let t = L.useContext(Oe);
|
|
4958
4958
|
return ae(t, Jt(e)), t;
|
|
4959
4959
|
}
|
|
4960
4960
|
function Zt(e) {
|
|
@@ -4971,7 +4971,7 @@ function Ga() {
|
|
|
4971
4971
|
);
|
|
4972
4972
|
}
|
|
4973
4973
|
function Ka() {
|
|
4974
|
-
let e =
|
|
4974
|
+
let e = L.useContext(Gt), t = Va(
|
|
4975
4975
|
"useRouteError"
|
|
4976
4976
|
/* UseRouteError */
|
|
4977
4977
|
), r = Zt(
|
|
@@ -4987,21 +4987,21 @@ function Ja() {
|
|
|
4987
4987
|
), t = Zt(
|
|
4988
4988
|
"useNavigate"
|
|
4989
4989
|
/* UseNavigateStable */
|
|
4990
|
-
), r =
|
|
4990
|
+
), r = L.useRef(!1);
|
|
4991
4991
|
return fn(() => {
|
|
4992
4992
|
r.current = !0;
|
|
4993
|
-
}),
|
|
4993
|
+
}), L.useCallback(
|
|
4994
4994
|
async (a, s = {}) => {
|
|
4995
4995
|
ve(r.current, cn), r.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: t, ...s }));
|
|
4996
4996
|
},
|
|
4997
4997
|
[e, t]
|
|
4998
4998
|
);
|
|
4999
4999
|
}
|
|
5000
|
-
var
|
|
5000
|
+
var Dr = {};
|
|
5001
5001
|
function hn(e, t, r) {
|
|
5002
|
-
!t && !
|
|
5002
|
+
!t && !Dr[e] && (Dr[e] = !0, ve(!1, r));
|
|
5003
5003
|
}
|
|
5004
|
-
|
|
5004
|
+
L.memo(Za);
|
|
5005
5005
|
function Za({
|
|
5006
5006
|
routes: e,
|
|
5007
5007
|
future: t,
|
|
@@ -5027,7 +5027,7 @@ function Qa({
|
|
|
5027
5027
|
!Qe(),
|
|
5028
5028
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
5029
5029
|
);
|
|
5030
|
-
let c = e.replace(/^\/*/, "/"), l =
|
|
5030
|
+
let c = e.replace(/^\/*/, "/"), l = L.useMemo(
|
|
5031
5031
|
() => ({
|
|
5032
5032
|
basename: c,
|
|
5033
5033
|
navigator: a,
|
|
@@ -5043,7 +5043,7 @@ function Qa({
|
|
|
5043
5043
|
hash: g = "",
|
|
5044
5044
|
state: O = null,
|
|
5045
5045
|
key: j = "default"
|
|
5046
|
-
} = r, M =
|
|
5046
|
+
} = r, M = L.useMemo(() => {
|
|
5047
5047
|
let P = xe(u, c);
|
|
5048
5048
|
return P == null ? null : {
|
|
5049
5049
|
location: {
|
|
@@ -5059,7 +5059,7 @@ function Qa({
|
|
|
5059
5059
|
return ve(
|
|
5060
5060
|
M != null,
|
|
5061
5061
|
`<Router basename="${c}"> is not able to match the URL "${u}${h}${g}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
5062
|
-
), M == null ? null : /* @__PURE__ */
|
|
5062
|
+
), M == null ? null : /* @__PURE__ */ L.createElement(we.Provider, { value: l }, /* @__PURE__ */ L.createElement(Ze.Provider, { children: t, value: M }));
|
|
5063
5063
|
}
|
|
5064
5064
|
function eo({
|
|
5065
5065
|
children: e,
|
|
@@ -5069,11 +5069,11 @@ function eo({
|
|
|
5069
5069
|
}
|
|
5070
5070
|
function Wt(e, t = []) {
|
|
5071
5071
|
let r = [];
|
|
5072
|
-
return
|
|
5073
|
-
if (!
|
|
5072
|
+
return L.Children.forEach(e, (i, a) => {
|
|
5073
|
+
if (!L.isValidElement(i))
|
|
5074
5074
|
return;
|
|
5075
5075
|
let s = [...t, a];
|
|
5076
|
-
if (i.type ===
|
|
5076
|
+
if (i.type === L.Fragment) {
|
|
5077
5077
|
r.push.apply(
|
|
5078
5078
|
r,
|
|
5079
5079
|
Wt(i.props.children, s)
|
|
@@ -5244,7 +5244,7 @@ async function ho(e, t, r) {
|
|
|
5244
5244
|
)
|
|
5245
5245
|
);
|
|
5246
5246
|
}
|
|
5247
|
-
function
|
|
5247
|
+
function Lr(e, t, r, i, a, s) {
|
|
5248
5248
|
let c = (u, h) => r[h] ? u.route.id !== r[h].route.id : !0, l = (u, h) => (
|
|
5249
5249
|
// param change, /users/123 -> /users/456
|
|
5250
5250
|
r[h].pathname !== u.pathname || // splat param changed, which is not present in match.path
|
|
@@ -5314,31 +5314,31 @@ function bo(e, t) {
|
|
|
5314
5314
|
return r.pathname === "/" ? r.pathname = "_root.data" : t && xe(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
|
|
5315
5315
|
}
|
|
5316
5316
|
function mn() {
|
|
5317
|
-
let e =
|
|
5317
|
+
let e = L.useContext($e);
|
|
5318
5318
|
return Qt(
|
|
5319
5319
|
e,
|
|
5320
5320
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
5321
5321
|
), e;
|
|
5322
5322
|
}
|
|
5323
5323
|
function wo() {
|
|
5324
|
-
let e =
|
|
5324
|
+
let e = L.useContext(Ot);
|
|
5325
5325
|
return Qt(
|
|
5326
5326
|
e,
|
|
5327
5327
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
5328
5328
|
), e;
|
|
5329
5329
|
}
|
|
5330
|
-
var er =
|
|
5330
|
+
var er = L.createContext(void 0);
|
|
5331
5331
|
er.displayName = "FrameworkContext";
|
|
5332
5332
|
function vn() {
|
|
5333
|
-
let e =
|
|
5333
|
+
let e = L.useContext(er);
|
|
5334
5334
|
return Qt(
|
|
5335
5335
|
e,
|
|
5336
5336
|
"You must render this element inside a <HydratedRouter> element"
|
|
5337
5337
|
), e;
|
|
5338
5338
|
}
|
|
5339
5339
|
function So(e, t) {
|
|
5340
|
-
let r =
|
|
5341
|
-
|
|
5340
|
+
let r = L.useContext(er), [i, a] = L.useState(!1), [s, c] = L.useState(!1), { onFocus: l, onBlur: u, onMouseEnter: h, onMouseLeave: g, onTouchStart: O } = t, j = L.useRef(null);
|
|
5341
|
+
L.useEffect(() => {
|
|
5342
5342
|
if (e === "render" && c(!0), e === "viewport") {
|
|
5343
5343
|
let p = (x) => {
|
|
5344
5344
|
x.forEach((F) => {
|
|
@@ -5349,7 +5349,7 @@ function So(e, t) {
|
|
|
5349
5349
|
I.disconnect();
|
|
5350
5350
|
};
|
|
5351
5351
|
}
|
|
5352
|
-
}, [e]),
|
|
5352
|
+
}, [e]), L.useEffect(() => {
|
|
5353
5353
|
if (i) {
|
|
5354
5354
|
let p = setTimeout(() => {
|
|
5355
5355
|
c(!0);
|
|
@@ -5385,15 +5385,15 @@ function xo({
|
|
|
5385
5385
|
page: e,
|
|
5386
5386
|
...t
|
|
5387
5387
|
}) {
|
|
5388
|
-
let { router: r } = mn(), i =
|
|
5388
|
+
let { router: r } = mn(), i = L.useMemo(
|
|
5389
5389
|
() => rn(r.routes, e, r.basename),
|
|
5390
5390
|
[r.routes, e, r.basename]
|
|
5391
5391
|
);
|
|
5392
|
-
return i ? /* @__PURE__ */
|
|
5392
|
+
return i ? /* @__PURE__ */ L.createElement(ko, { page: e, matches: i, ...t }) : null;
|
|
5393
5393
|
}
|
|
5394
5394
|
function Oo(e) {
|
|
5395
|
-
let { manifest: t, routeModules: r } = vn(), [i, a] =
|
|
5396
|
-
return
|
|
5395
|
+
let { manifest: t, routeModules: r } = vn(), [i, a] = L.useState([]);
|
|
5396
|
+
return L.useEffect(() => {
|
|
5397
5397
|
let s = !1;
|
|
5398
5398
|
return ho(e, t, r).then(
|
|
5399
5399
|
(c) => {
|
|
@@ -5409,8 +5409,8 @@ function ko({
|
|
|
5409
5409
|
matches: t,
|
|
5410
5410
|
...r
|
|
5411
5411
|
}) {
|
|
5412
|
-
let i = ke(), { manifest: a, routeModules: s } = vn(), { basename: c } = mn(), { loaderData: l, matches: u } = wo(), h =
|
|
5413
|
-
() =>
|
|
5412
|
+
let i = ke(), { manifest: a, routeModules: s } = vn(), { basename: c } = mn(), { loaderData: l, matches: u } = wo(), h = L.useMemo(
|
|
5413
|
+
() => Lr(
|
|
5414
5414
|
e,
|
|
5415
5415
|
t,
|
|
5416
5416
|
u,
|
|
@@ -5419,8 +5419,8 @@ function ko({
|
|
|
5419
5419
|
"data"
|
|
5420
5420
|
),
|
|
5421
5421
|
[e, t, u, a, i]
|
|
5422
|
-
), g =
|
|
5423
|
-
() =>
|
|
5422
|
+
), g = L.useMemo(
|
|
5423
|
+
() => Lr(
|
|
5424
5424
|
e,
|
|
5425
5425
|
t,
|
|
5426
5426
|
u,
|
|
@@ -5429,7 +5429,7 @@ function ko({
|
|
|
5429
5429
|
"assets"
|
|
5430
5430
|
),
|
|
5431
5431
|
[e, t, u, a, i]
|
|
5432
|
-
), O =
|
|
5432
|
+
), O = L.useMemo(() => {
|
|
5433
5433
|
if (e === i.pathname + i.search + i.hash)
|
|
5434
5434
|
return [];
|
|
5435
5435
|
let P = /* @__PURE__ */ new Set(), p = !1;
|
|
@@ -5452,14 +5452,14 @@ function ko({
|
|
|
5452
5452
|
t,
|
|
5453
5453
|
e,
|
|
5454
5454
|
s
|
|
5455
|
-
]), j =
|
|
5455
|
+
]), j = L.useMemo(
|
|
5456
5456
|
() => po(g, a),
|
|
5457
5457
|
[g, a]
|
|
5458
5458
|
), M = Oo(g);
|
|
5459
|
-
return /* @__PURE__ */
|
|
5459
|
+
return /* @__PURE__ */ L.createElement(L.Fragment, null, O.map((P) => /* @__PURE__ */ L.createElement("link", { key: P, rel: "prefetch", as: "fetch", href: P, ...r })), j.map((P) => /* @__PURE__ */ L.createElement("link", { key: P, rel: "modulepreload", href: P, ...r })), M.map(({ key: P, link: p }) => (
|
|
5460
5460
|
// these don't spread `linkProps` because they are full link descriptors
|
|
5461
5461
|
// already with their own props
|
|
5462
|
-
/* @__PURE__ */
|
|
5462
|
+
/* @__PURE__ */ L.createElement("link", { key: P, ...p })
|
|
5463
5463
|
)));
|
|
5464
5464
|
}
|
|
5465
5465
|
function Co(...e) {
|
|
@@ -5479,18 +5479,18 @@ function Po({
|
|
|
5479
5479
|
children: t,
|
|
5480
5480
|
window: r
|
|
5481
5481
|
}) {
|
|
5482
|
-
let i =
|
|
5482
|
+
let i = L.useRef();
|
|
5483
5483
|
i.current == null && (i.current = fa({ window: r, v5Compat: !0 }));
|
|
5484
|
-
let a = i.current, [s, c] =
|
|
5484
|
+
let a = i.current, [s, c] = L.useState({
|
|
5485
5485
|
action: a.action,
|
|
5486
5486
|
location: a.location
|
|
5487
|
-
}), l =
|
|
5487
|
+
}), l = L.useCallback(
|
|
5488
5488
|
(u) => {
|
|
5489
|
-
|
|
5489
|
+
L.startTransition(() => c(u));
|
|
5490
5490
|
},
|
|
5491
5491
|
[c]
|
|
5492
5492
|
);
|
|
5493
|
-
return
|
|
5493
|
+
return L.useLayoutEffect(() => a.listen(l), [a, l]), /* @__PURE__ */ L.createElement(
|
|
5494
5494
|
Qa,
|
|
5495
5495
|
{
|
|
5496
5496
|
basename: e,
|
|
@@ -5501,7 +5501,7 @@ function Po({
|
|
|
5501
5501
|
}
|
|
5502
5502
|
);
|
|
5503
5503
|
}
|
|
5504
|
-
var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn =
|
|
5504
|
+
var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = L.forwardRef(
|
|
5505
5505
|
function({
|
|
5506
5506
|
onClick: t,
|
|
5507
5507
|
discover: r = "render",
|
|
@@ -5516,7 +5516,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5516
5516
|
viewTransition: O,
|
|
5517
5517
|
...j
|
|
5518
5518
|
}, M) {
|
|
5519
|
-
let { basename: P } =
|
|
5519
|
+
let { basename: P } = L.useContext(we), p = typeof h == "string" && yn.test(h), I, x = !1;
|
|
5520
5520
|
if (typeof h == "string" && p && (I = h, gn))
|
|
5521
5521
|
try {
|
|
5522
5522
|
let y = new URL(window.location.href), d = h.startsWith("//") ? new URL(y.protocol + h) : new URL(h), k = xe(d.pathname, P);
|
|
@@ -5527,7 +5527,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5527
5527
|
`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
5528
5528
|
);
|
|
5529
5529
|
}
|
|
5530
|
-
let F = za(h, { relative: a }), [U,
|
|
5530
|
+
let F = za(h, { relative: a }), [U, B, v] = So(
|
|
5531
5531
|
i,
|
|
5532
5532
|
j
|
|
5533
5533
|
), b = To(h, {
|
|
@@ -5543,24 +5543,24 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5543
5543
|
}
|
|
5544
5544
|
let E = (
|
|
5545
5545
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
5546
|
-
/* @__PURE__ */
|
|
5546
|
+
/* @__PURE__ */ L.createElement(
|
|
5547
5547
|
"a",
|
|
5548
5548
|
{
|
|
5549
5549
|
...j,
|
|
5550
5550
|
...v,
|
|
5551
5551
|
href: I || F,
|
|
5552
5552
|
onClick: x || s ? t : w,
|
|
5553
|
-
ref: Co(M,
|
|
5553
|
+
ref: Co(M, B),
|
|
5554
5554
|
target: u,
|
|
5555
5555
|
"data-discover": !p && r === "render" ? "true" : void 0
|
|
5556
5556
|
}
|
|
5557
5557
|
)
|
|
5558
5558
|
);
|
|
5559
|
-
return U && !p ? /* @__PURE__ */
|
|
5559
|
+
return U && !p ? /* @__PURE__ */ L.createElement(L.Fragment, null, E, /* @__PURE__ */ L.createElement(xo, { page: F })) : E;
|
|
5560
5560
|
}
|
|
5561
5561
|
);
|
|
5562
5562
|
bn.displayName = "Link";
|
|
5563
|
-
var Eo =
|
|
5563
|
+
var Eo = L.forwardRef(
|
|
5564
5564
|
function({
|
|
5565
5565
|
"aria-current": t = "page",
|
|
5566
5566
|
caseSensitive: r = !1,
|
|
@@ -5572,12 +5572,12 @@ var Eo = D.forwardRef(
|
|
|
5572
5572
|
children: u,
|
|
5573
5573
|
...h
|
|
5574
5574
|
}, g) {
|
|
5575
|
-
let O = et(c, { relative: h.relative }), j = ke(), M =
|
|
5575
|
+
let O = et(c, { relative: h.relative }), j = ke(), M = L.useContext(Ot), { navigator: P, basename: p } = L.useContext(we), I = M != null && // Conditional usage is OK here because the usage of a data router is static
|
|
5576
5576
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5577
5577
|
Io(O) && l === !0, x = P.encodeLocation ? P.encodeLocation(O).pathname : O.pathname, F = j.pathname, U = M && M.navigation && M.navigation.location ? M.navigation.location.pathname : null;
|
|
5578
5578
|
r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, x = x.toLowerCase()), U && p && (U = xe(U, p) || U);
|
|
5579
|
-
const
|
|
5580
|
-
let v = F === x || !a && F.startsWith(x) && F.charAt(
|
|
5579
|
+
const B = x !== "/" && x.endsWith("/") ? x.length - 1 : x.length;
|
|
5580
|
+
let v = F === x || !a && F.startsWith(x) && F.charAt(B) === "/", b = U != null && (U === x || !a && U.startsWith(x) && U.charAt(x.length) === "/"), w = {
|
|
5581
5581
|
isActive: v,
|
|
5582
5582
|
isPending: b,
|
|
5583
5583
|
isTransitioning: I
|
|
@@ -5589,7 +5589,7 @@ var Eo = D.forwardRef(
|
|
|
5589
5589
|
I ? "transitioning" : null
|
|
5590
5590
|
].filter(Boolean).join(" ");
|
|
5591
5591
|
let d = typeof s == "function" ? s(w) : s;
|
|
5592
|
-
return /* @__PURE__ */
|
|
5592
|
+
return /* @__PURE__ */ L.createElement(
|
|
5593
5593
|
bn,
|
|
5594
5594
|
{
|
|
5595
5595
|
...h,
|
|
@@ -5605,7 +5605,7 @@ var Eo = D.forwardRef(
|
|
|
5605
5605
|
}
|
|
5606
5606
|
);
|
|
5607
5607
|
Eo.displayName = "NavLink";
|
|
5608
|
-
var Ro =
|
|
5608
|
+
var Ro = L.forwardRef(
|
|
5609
5609
|
({
|
|
5610
5610
|
discover: e = "render",
|
|
5611
5611
|
fetcherKey: t,
|
|
@@ -5624,8 +5624,8 @@ var Ro = D.forwardRef(
|
|
|
5624
5624
|
let P = Mo(), p = $o(l, { relative: h }), I = c.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && yn.test(l), F = (U) => {
|
|
5625
5625
|
if (u && u(U), U.defaultPrevented) return;
|
|
5626
5626
|
U.preventDefault();
|
|
5627
|
-
let
|
|
5628
|
-
P(
|
|
5627
|
+
let B = U.nativeEvent.submitter, v = B?.getAttribute("formmethod") || c;
|
|
5628
|
+
P(B || U.currentTarget, {
|
|
5629
5629
|
fetcherKey: t,
|
|
5630
5630
|
method: v,
|
|
5631
5631
|
navigate: r,
|
|
@@ -5636,7 +5636,7 @@ var Ro = D.forwardRef(
|
|
|
5636
5636
|
viewTransition: O
|
|
5637
5637
|
});
|
|
5638
5638
|
};
|
|
5639
|
-
return /* @__PURE__ */
|
|
5639
|
+
return /* @__PURE__ */ L.createElement(
|
|
5640
5640
|
"form",
|
|
5641
5641
|
{
|
|
5642
5642
|
ref: M,
|
|
@@ -5654,7 +5654,7 @@ function _o(e) {
|
|
|
5654
5654
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
5655
5655
|
}
|
|
5656
5656
|
function wn(e) {
|
|
5657
|
-
let t =
|
|
5657
|
+
let t = L.useContext($e);
|
|
5658
5658
|
return ae(t, _o(e)), t;
|
|
5659
5659
|
}
|
|
5660
5660
|
function To(e, {
|
|
@@ -5666,7 +5666,7 @@ function To(e, {
|
|
|
5666
5666
|
viewTransition: c
|
|
5667
5667
|
} = {}) {
|
|
5668
5668
|
let l = Kt(), u = ke(), h = et(e, { relative: s });
|
|
5669
|
-
return
|
|
5669
|
+
return L.useCallback(
|
|
5670
5670
|
(g) => {
|
|
5671
5671
|
if (ao(g, t)) {
|
|
5672
5672
|
g.preventDefault();
|
|
@@ -5699,7 +5699,7 @@ function jo(e) {
|
|
|
5699
5699
|
typeof URLSearchParams < "u",
|
|
5700
5700
|
"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
|
|
5701
5701
|
);
|
|
5702
|
-
let t =
|
|
5702
|
+
let t = L.useRef(Ut(e)), r = L.useRef(!1), i = ke(), a = L.useMemo(
|
|
5703
5703
|
() => (
|
|
5704
5704
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
5705
5705
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
@@ -5710,7 +5710,7 @@ function jo(e) {
|
|
|
5710
5710
|
)
|
|
5711
5711
|
),
|
|
5712
5712
|
[i.search]
|
|
5713
|
-
), s = Kt(), c =
|
|
5713
|
+
), s = Kt(), c = L.useCallback(
|
|
5714
5714
|
(l, u) => {
|
|
5715
5715
|
const h = Ut(
|
|
5716
5716
|
typeof l == "function" ? l(a) : l
|
|
@@ -5721,20 +5721,20 @@ function jo(e) {
|
|
|
5721
5721
|
);
|
|
5722
5722
|
return [a, c];
|
|
5723
5723
|
}
|
|
5724
|
-
var
|
|
5724
|
+
var Do = 0, Lo = () => `__${String(++Do)}__`;
|
|
5725
5725
|
function Mo() {
|
|
5726
5726
|
let { router: e } = wn(
|
|
5727
5727
|
"useSubmit"
|
|
5728
5728
|
/* UseSubmit */
|
|
5729
|
-
), { basename: t } =
|
|
5730
|
-
return
|
|
5729
|
+
), { basename: t } = L.useContext(we), r = Ga();
|
|
5730
|
+
return L.useCallback(
|
|
5731
5731
|
async (i, a = {}) => {
|
|
5732
5732
|
let { action: s, method: c, encType: l, formData: u, body: h } = uo(
|
|
5733
5733
|
i,
|
|
5734
5734
|
t
|
|
5735
5735
|
);
|
|
5736
5736
|
if (a.navigate === !1) {
|
|
5737
|
-
let g = a.fetcherKey ||
|
|
5737
|
+
let g = a.fetcherKey || Lo();
|
|
5738
5738
|
await e.fetch(g, r, a.action || s, {
|
|
5739
5739
|
preventScrollReset: a.preventScrollReset,
|
|
5740
5740
|
formData: u,
|
|
@@ -5761,7 +5761,7 @@ function Mo() {
|
|
|
5761
5761
|
);
|
|
5762
5762
|
}
|
|
5763
5763
|
function $o(e, { relative: t } = {}) {
|
|
5764
|
-
let { basename: r } =
|
|
5764
|
+
let { basename: r } = L.useContext(we), i = L.useContext(Oe);
|
|
5765
5765
|
ae(i, "useFormAction must be used inside a RouteContext");
|
|
5766
5766
|
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, c = ke();
|
|
5767
5767
|
if (e == null) {
|
|
@@ -5776,7 +5776,7 @@ function $o(e, { relative: t } = {}) {
|
|
|
5776
5776
|
return (!e || e === ".") && a.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (s.pathname = s.pathname === "/" ? r : Se([r, s.pathname])), Ge(s);
|
|
5777
5777
|
}
|
|
5778
5778
|
function Io(e, t = {}) {
|
|
5779
|
-
let r =
|
|
5779
|
+
let r = L.useContext(un);
|
|
5780
5780
|
ae(
|
|
5781
5781
|
r != null,
|
|
5782
5782
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
@@ -5793,7 +5793,7 @@ function Io(e, t = {}) {
|
|
|
5793
5793
|
[
|
|
5794
5794
|
...yo
|
|
5795
5795
|
];
|
|
5796
|
-
const Sn =
|
|
5796
|
+
const Sn = q.createContext({
|
|
5797
5797
|
history: [],
|
|
5798
5798
|
addToHistory: () => {
|
|
5799
5799
|
},
|
|
@@ -5862,13 +5862,13 @@ const Sn = B.createContext({
|
|
|
5862
5862
|
return l.params && Object.entries(l.params).forEach(([h, g]) => {
|
|
5863
5863
|
g != null && u.searchParams.set(h, String(g));
|
|
5864
5864
|
}), u.pathname + u.search;
|
|
5865
|
-
}, s =
|
|
5865
|
+
}, s = q.useCallback(
|
|
5866
5866
|
(l) => {
|
|
5867
5867
|
const u = a(l);
|
|
5868
5868
|
l.addToHistory !== !1 ? (e(u), i.addToHistory(u)) : (e(u, { replace: !0 }), i.popFromHistory(1), i.addToHistory(u));
|
|
5869
5869
|
},
|
|
5870
5870
|
[e]
|
|
5871
|
-
), c =
|
|
5871
|
+
), c = q.useCallback(
|
|
5872
5872
|
(l) => {
|
|
5873
5873
|
const u = l || 1;
|
|
5874
5874
|
e(-u), i.popFromHistory(u);
|
|
@@ -5887,7 +5887,7 @@ const Sn = B.createContext({
|
|
|
5887
5887
|
routes: t,
|
|
5888
5888
|
children: r
|
|
5889
5889
|
}) => {
|
|
5890
|
-
const i =
|
|
5890
|
+
const i = q.useRef([]), [a, s] = q.useState([]), c = q.useCallback((O) => {
|
|
5891
5891
|
i.current = O, s(O);
|
|
5892
5892
|
}, []), l = (O, j = !1) => {
|
|
5893
5893
|
let M = [...i.current];
|
|
@@ -5916,7 +5916,7 @@ const Sn = B.createContext({
|
|
|
5916
5916
|
] }) })
|
|
5917
5917
|
}
|
|
5918
5918
|
);
|
|
5919
|
-
}, xn =
|
|
5919
|
+
}, xn = q.createContext(
|
|
5920
5920
|
{
|
|
5921
5921
|
visibleItems: [],
|
|
5922
5922
|
isItemVisible: () => !1,
|
|
@@ -5926,14 +5926,14 @@ const Sn = B.createContext({
|
|
|
5926
5926
|
}
|
|
5927
5927
|
}
|
|
5928
5928
|
), cs = ({ children: e }) => {
|
|
5929
|
-
const t =
|
|
5929
|
+
const t = q.useRef([]), [r, i] = q.useState([]), a = q.useCallback((u) => {
|
|
5930
5930
|
t.current = u, i(u);
|
|
5931
|
-
}, []), s =
|
|
5931
|
+
}, []), s = q.useCallback((u) => t.current.some((h) => h === u), []), c = q.useCallback(
|
|
5932
5932
|
(u) => {
|
|
5933
5933
|
s(u) || a([...t.current, u]);
|
|
5934
5934
|
},
|
|
5935
5935
|
[s, a]
|
|
5936
|
-
), l =
|
|
5936
|
+
), l = q.useCallback(
|
|
5937
5937
|
(u) => {
|
|
5938
5938
|
s(u) && a(
|
|
5939
5939
|
t.current.filter((g) => g !== u)
|
|
@@ -5970,9 +5970,9 @@ const Sn = B.createContext({
|
|
|
5970
5970
|
onCloseDrawer: t,
|
|
5971
5971
|
drawerCloseOffset: r = 15
|
|
5972
5972
|
}) => {
|
|
5973
|
-
const { isItemVisible: i } = Ct(), [a, s] =
|
|
5973
|
+
const { isItemVisible: i } = Ct(), [a, s] = q.useState({
|
|
5974
5974
|
isDragging: !1
|
|
5975
|
-
}), c =
|
|
5975
|
+
}), c = q.useRef(null), l = q.useRef(null), u = q.useRef(null), [h, g] = q.useState(0), O = (P) => {
|
|
5976
5976
|
s(P);
|
|
5977
5977
|
}, j = (P) => {
|
|
5978
5978
|
s(P), g(0);
|
|
@@ -6070,7 +6070,7 @@ const Sn = B.createContext({
|
|
|
6070
6070
|
}
|
|
6071
6071
|
) });
|
|
6072
6072
|
}, Ho = ({ onSubmit: e, fields: t }) => {
|
|
6073
|
-
const r =
|
|
6073
|
+
const r = q.useRef(null), i = q.useCallback(
|
|
6074
6074
|
(c) => {
|
|
6075
6075
|
const l = Array.from(c.currentTarget.elements).filter(
|
|
6076
6076
|
(h) => !!h.getAttribute("name")
|
|
@@ -6085,7 +6085,7 @@ const Sn = B.createContext({
|
|
|
6085
6085
|
return u;
|
|
6086
6086
|
},
|
|
6087
6087
|
[e]
|
|
6088
|
-
), a =
|
|
6088
|
+
), a = q.useCallback(
|
|
6089
6089
|
(c) => {
|
|
6090
6090
|
c.preventDefault(), c.stopPropagation();
|
|
6091
6091
|
const l = i(c);
|
|
@@ -6116,7 +6116,7 @@ const Sn = B.createContext({
|
|
|
6116
6116
|
pointer-events: none;
|
|
6117
6117
|
}
|
|
6118
6118
|
`, ds = (e) => {
|
|
6119
|
-
const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Ho(e), l =
|
|
6119
|
+
const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Ho(e), l = q.useCallback(() => t.list.map((u) => ({ ...u.content, key: u.name })), [t]);
|
|
6120
6120
|
return /* @__PURE__ */ G.jsxs(
|
|
6121
6121
|
"form",
|
|
6122
6122
|
{
|
|
@@ -6209,16 +6209,17 @@ const Sn = B.createContext({
|
|
|
6209
6209
|
onChange: g,
|
|
6210
6210
|
onFocus: O,
|
|
6211
6211
|
onBlur: j,
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6212
|
+
maxLength: M,
|
|
6213
|
+
inputStyles: P,
|
|
6214
|
+
containerStyles: p,
|
|
6215
|
+
styles: I,
|
|
6216
|
+
step: x
|
|
6216
6217
|
}) => {
|
|
6217
|
-
const
|
|
6218
|
-
g?.(
|
|
6219
|
-
},
|
|
6220
|
-
|
|
6221
|
-
},
|
|
6218
|
+
const F = (v) => {
|
|
6219
|
+
g?.(v.currentTarget.value);
|
|
6220
|
+
}, U = (v) => {
|
|
6221
|
+
v.preventDefault(), v.stopPropagation(), O?.();
|
|
6222
|
+
}, B = (v) => {
|
|
6222
6223
|
j?.();
|
|
6223
6224
|
};
|
|
6224
6225
|
return /* @__PURE__ */ G.jsxs(
|
|
@@ -6228,7 +6229,7 @@ const Sn = B.createContext({
|
|
|
6228
6229
|
width: "100%",
|
|
6229
6230
|
maxWidth: "357px",
|
|
6230
6231
|
gap: "8px",
|
|
6231
|
-
...
|
|
6232
|
+
...I
|
|
6232
6233
|
},
|
|
6233
6234
|
children: [
|
|
6234
6235
|
t,
|
|
@@ -6253,7 +6254,7 @@ const Sn = B.createContext({
|
|
|
6253
6254
|
outline: "none",
|
|
6254
6255
|
alignItems: "center",
|
|
6255
6256
|
gap: "10px",
|
|
6256
|
-
...
|
|
6257
|
+
...p
|
|
6257
6258
|
},
|
|
6258
6259
|
children: [
|
|
6259
6260
|
r,
|
|
@@ -6263,7 +6264,9 @@ const Sn = B.createContext({
|
|
|
6263
6264
|
name: e,
|
|
6264
6265
|
type: h,
|
|
6265
6266
|
autoComplete: c,
|
|
6266
|
-
step:
|
|
6267
|
+
step: x,
|
|
6268
|
+
maxLength: M,
|
|
6269
|
+
max: M ? "9".repeat(M) : void 0,
|
|
6267
6270
|
style: {
|
|
6268
6271
|
flex: 1,
|
|
6269
6272
|
border: "none",
|
|
@@ -6275,14 +6278,14 @@ const Sn = B.createContext({
|
|
|
6275
6278
|
lineHeight: "inherit",
|
|
6276
6279
|
outline: "inherit",
|
|
6277
6280
|
background: "none",
|
|
6278
|
-
...
|
|
6281
|
+
...P
|
|
6279
6282
|
},
|
|
6280
6283
|
placeholder: s,
|
|
6281
6284
|
value: l,
|
|
6282
6285
|
defaultValue: u,
|
|
6283
|
-
onChange:
|
|
6284
|
-
onFocus:
|
|
6285
|
-
onBlur:
|
|
6286
|
+
onChange: F,
|
|
6287
|
+
onFocus: U,
|
|
6288
|
+
onBlur: B
|
|
6286
6289
|
}
|
|
6287
6290
|
),
|
|
6288
6291
|
i
|
|
@@ -6373,17 +6376,17 @@ const Sn = B.createContext({
|
|
|
6373
6376
|
}
|
|
6374
6377
|
) });
|
|
6375
6378
|
}, Wo = (e) => {
|
|
6376
|
-
const t =
|
|
6379
|
+
const t = q.useRef(null), r = q.useRef(null), [i, a] = q.useState(24), [s, c] = q.useState(24), l = q.useCallback(() => {
|
|
6377
6380
|
t.current && a(t.current.clientHeight);
|
|
6378
|
-
}, [t, t.current]), u =
|
|
6381
|
+
}, [t, t.current]), u = q.useCallback(() => {
|
|
6379
6382
|
r.current && c(r.current.clientHeight);
|
|
6380
|
-
}, [r, r.current]), h =
|
|
6383
|
+
}, [r, r.current]), h = q.useCallback(() => {
|
|
6381
6384
|
let g = 0;
|
|
6382
6385
|
return e.header?.visibility === "always" && (g = g + (i || 0)), e.footer?.visibility === "always" && (g = g + (s || 0)), g;
|
|
6383
6386
|
}, [r, r.current]);
|
|
6384
|
-
return
|
|
6387
|
+
return q.useEffect(() => {
|
|
6385
6388
|
l();
|
|
6386
|
-
}, [l, t, t.current]),
|
|
6389
|
+
}, [l, t, t.current]), q.useEffect(() => {
|
|
6387
6390
|
u();
|
|
6388
6391
|
}, [u, r, r.current]), {
|
|
6389
6392
|
header: {
|
|
@@ -6551,7 +6554,7 @@ function Bo() {
|
|
|
6551
6554
|
} }, U = function(_, C, T) {
|
|
6552
6555
|
var o = String(_);
|
|
6553
6556
|
return !o || o.length >= C ? _ : "" + Array(C + 1 - o.length).join(T) + _;
|
|
6554
|
-
},
|
|
6557
|
+
}, B = { s: U, z: function(_) {
|
|
6555
6558
|
var C = -_.utcOffset(), T = Math.abs(C), o = Math.floor(T / 60), z = T % 60;
|
|
6556
6559
|
return (C <= 0 ? "+" : "-") + U(o, 2, "0") + ":" + U(z, 2, "0");
|
|
6557
6560
|
}, m: function _(C, T) {
|
|
@@ -6585,7 +6588,7 @@ function Bo() {
|
|
|
6585
6588
|
if (E(_)) return _.clone();
|
|
6586
6589
|
var T = typeof C == "object" ? C : {};
|
|
6587
6590
|
return T.date = _, T.args = arguments, new A(T);
|
|
6588
|
-
}, k =
|
|
6591
|
+
}, k = B;
|
|
6589
6592
|
k.l = y, k.i = E, k.w = function(_, C) {
|
|
6590
6593
|
return d(_, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
|
|
6591
6594
|
};
|
|
@@ -6635,15 +6638,15 @@ function Bo() {
|
|
|
6635
6638
|
return m ? J : J.endOf(h);
|
|
6636
6639
|
}, S = function(K, X) {
|
|
6637
6640
|
return k.w(z.toDate()[K].apply(z.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), z);
|
|
6638
|
-
}, $ = this.$W,
|
|
6641
|
+
}, $ = this.$W, D = this.$M, H = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
6639
6642
|
switch (n) {
|
|
6640
6643
|
case M:
|
|
6641
6644
|
return m ? f(1, 0) : f(31, 11);
|
|
6642
6645
|
case O:
|
|
6643
|
-
return m ? f(1,
|
|
6646
|
+
return m ? f(1, D) : f(0, D + 1);
|
|
6644
6647
|
case g:
|
|
6645
6648
|
var W = this.$locale().weekStart || 0, V = ($ < W ? $ + 7 : $) - W;
|
|
6646
|
-
return f(m ? H - V : H + (6 - V),
|
|
6649
|
+
return f(m ? H - V : H + (6 - V), D);
|
|
6647
6650
|
case h:
|
|
6648
6651
|
case P:
|
|
6649
6652
|
return S(N + "Hours", 0);
|
|
@@ -6672,9 +6675,9 @@ function Bo() {
|
|
|
6672
6675
|
}, C.add = function(T, o) {
|
|
6673
6676
|
var z, m = this;
|
|
6674
6677
|
T = Number(T);
|
|
6675
|
-
var n = k.p(o), f = function(
|
|
6678
|
+
var n = k.p(o), f = function(D) {
|
|
6676
6679
|
var H = d(m);
|
|
6677
|
-
return k.w(H.date(H.date() + Math.round(
|
|
6680
|
+
return k.w(H.date(H.date() + Math.round(D * T)), m);
|
|
6678
6681
|
};
|
|
6679
6682
|
if (n === O) return this.set(O, this.$M + T);
|
|
6680
6683
|
if (n === M) return this.set(M, this.$y + T);
|
|
@@ -6687,7 +6690,7 @@ function Bo() {
|
|
|
6687
6690
|
}, C.format = function(T) {
|
|
6688
6691
|
var o = this, z = this.$locale();
|
|
6689
6692
|
if (!this.isValid()) return z.invalidDate || p;
|
|
6690
|
-
var m = T || "YYYY-MM-DDTHH:mm:ssZ", n = k.z(this), f = this.$H, S = this.$m, $ = this.$M,
|
|
6693
|
+
var m = T || "YYYY-MM-DDTHH:mm:ssZ", n = k.z(this), f = this.$H, S = this.$m, $ = this.$M, D = z.weekdays, H = z.months, N = z.meridiem, W = function(X, J, te, Z) {
|
|
6691
6694
|
return X && (X[J] || X(o, m)) || te[J].slice(0, Z);
|
|
6692
6695
|
}, V = function(X) {
|
|
6693
6696
|
return k.s(f % 12 || 12, X, "0");
|
|
@@ -6717,11 +6720,11 @@ function Bo() {
|
|
|
6717
6720
|
case "d":
|
|
6718
6721
|
return String(o.$W);
|
|
6719
6722
|
case "dd":
|
|
6720
|
-
return W(z.weekdaysMin, o.$W,
|
|
6723
|
+
return W(z.weekdaysMin, o.$W, D, 2);
|
|
6721
6724
|
case "ddd":
|
|
6722
|
-
return W(z.weekdaysShort, o.$W,
|
|
6725
|
+
return W(z.weekdaysShort, o.$W, D, 3);
|
|
6723
6726
|
case "dddd":
|
|
6724
|
-
return
|
|
6727
|
+
return D[o.$W];
|
|
6725
6728
|
case "H":
|
|
6726
6729
|
return String(f);
|
|
6727
6730
|
case "HH":
|
|
@@ -6753,7 +6756,7 @@ function Bo() {
|
|
|
6753
6756
|
}, C.utcOffset = function() {
|
|
6754
6757
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6755
6758
|
}, C.diff = function(T, o, z) {
|
|
6756
|
-
var m, n = this, f = k.p(o), S = d(T), $ = (S.utcOffset() - this.utcOffset()) * i,
|
|
6759
|
+
var m, n = this, f = k.p(o), S = d(T), $ = (S.utcOffset() - this.utcOffset()) * i, D = this - S, H = function() {
|
|
6757
6760
|
return k.m(n, S);
|
|
6758
6761
|
};
|
|
6759
6762
|
switch (f) {
|
|
@@ -6767,22 +6770,22 @@ function Bo() {
|
|
|
6767
6770
|
m = H() / 3;
|
|
6768
6771
|
break;
|
|
6769
6772
|
case g:
|
|
6770
|
-
m = (
|
|
6773
|
+
m = (D - $) / 6048e5;
|
|
6771
6774
|
break;
|
|
6772
6775
|
case h:
|
|
6773
|
-
m = (
|
|
6776
|
+
m = (D - $) / 864e5;
|
|
6774
6777
|
break;
|
|
6775
6778
|
case u:
|
|
6776
|
-
m =
|
|
6779
|
+
m = D / a;
|
|
6777
6780
|
break;
|
|
6778
6781
|
case l:
|
|
6779
|
-
m =
|
|
6782
|
+
m = D / i;
|
|
6780
6783
|
break;
|
|
6781
6784
|
case c:
|
|
6782
|
-
m =
|
|
6785
|
+
m = D / r;
|
|
6783
6786
|
break;
|
|
6784
6787
|
default:
|
|
6785
|
-
m =
|
|
6788
|
+
m = D;
|
|
6786
6789
|
}
|
|
6787
6790
|
return z ? m : k.a(m);
|
|
6788
6791
|
}, C.daysInMonth = function() {
|
|
@@ -6863,8 +6866,8 @@ function Go() {
|
|
|
6863
6866
|
if (F === 0) return this.utc(I);
|
|
6864
6867
|
var U = this.clone();
|
|
6865
6868
|
if (I) return U.$offset = F, U.$u = !1, U;
|
|
6866
|
-
var
|
|
6867
|
-
return (U = this.local().add(F +
|
|
6869
|
+
var B = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
6870
|
+
return (U = this.local().add(F + B, r)).$offset = F, U.$x.$localOffset = B, U;
|
|
6868
6871
|
};
|
|
6869
6872
|
var j = u.format;
|
|
6870
6873
|
u.format = function(p) {
|
|
@@ -7170,8 +7173,8 @@ const Ss = ({
|
|
|
7170
7173
|
styles: r,
|
|
7171
7174
|
durationInSeconds: i = 3
|
|
7172
7175
|
}) => {
|
|
7173
|
-
const a =
|
|
7174
|
-
return
|
|
7176
|
+
const a = q.useRef(!1), { isItemVisible: s, hideItem: c } = Ct();
|
|
7177
|
+
return q.useEffect(() => {
|
|
7175
7178
|
const l = s(e);
|
|
7176
7179
|
a.current !== l && (a.current = l, l && setTimeout(() => c(e), i * 1e3));
|
|
7177
7180
|
}, [a, s, c]), /* @__PURE__ */ G.jsx(G.Fragment, { children: s(e) && /* @__PURE__ */ G.jsx(
|