@eliseubatista99/react-scaffold-core 0.1.81 → 0.1.83
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.cjs.js +1 -1
- package/dist/index.es.js +211 -210
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as L from "react";
|
|
2
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) {
|
|
@@ -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,
|
|
@@ -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
|
);
|
|
@@ -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;
|
|
@@ -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) {
|
|
@@ -831,27 +831,27 @@ function Ke() {
|
|
|
831
831
|
return Q;
|
|
832
832
|
};
|
|
833
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,
|
|
835
|
-
|
|
836
|
-
return
|
|
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
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
|
};
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -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(q), t = h(_n()), r = h(Tn()), i = h(yt()), a = Ke(), s = jn(), c =
|
|
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
|
}
|
|
@@ -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() {
|
|
@@ -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)));
|
|
@@ -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
|
}
|
|
@@ -3577,7 +3577,7 @@ var Xi = function(t) {
|
|
|
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
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);
|
|
@@ -3585,11 +3585,11 @@ var Xi = function(t) {
|
|
|
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 = B, F && (d.ref = F), /* @__PURE__ */
|
|
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() {
|
|
@@ -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);
|
|
@@ -5543,7 +5543,7 @@ 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,
|
|
@@ -5556,11 +5556,11 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
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,7 +5572,7 @@ 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);
|
|
@@ -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,
|
|
@@ -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`?"
|
|
@@ -6266,6 +6266,7 @@ const Sn = q.createContext({
|
|
|
6266
6266
|
autoComplete: c,
|
|
6267
6267
|
step: x,
|
|
6268
6268
|
maxLength: M,
|
|
6269
|
+
max: M ? Number("9".repeat(M)) : void 0,
|
|
6269
6270
|
style: {
|
|
6270
6271
|
flex: 1,
|
|
6271
6272
|
border: "none",
|
|
@@ -6637,15 +6638,15 @@ function Bo() {
|
|
|
6637
6638
|
return m ? J : J.endOf(h);
|
|
6638
6639
|
}, S = function(K, X) {
|
|
6639
6640
|
return k.w(z.toDate()[K].apply(z.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), z);
|
|
6640
|
-
}, $ = this.$W,
|
|
6641
|
+
}, $ = this.$W, D = this.$M, H = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
6641
6642
|
switch (n) {
|
|
6642
6643
|
case M:
|
|
6643
6644
|
return m ? f(1, 0) : f(31, 11);
|
|
6644
6645
|
case O:
|
|
6645
|
-
return m ? f(1,
|
|
6646
|
+
return m ? f(1, D) : f(0, D + 1);
|
|
6646
6647
|
case g:
|
|
6647
6648
|
var W = this.$locale().weekStart || 0, V = ($ < W ? $ + 7 : $) - W;
|
|
6648
|
-
return f(m ? H - V : H + (6 - V),
|
|
6649
|
+
return f(m ? H - V : H + (6 - V), D);
|
|
6649
6650
|
case h:
|
|
6650
6651
|
case P:
|
|
6651
6652
|
return S(N + "Hours", 0);
|
|
@@ -6674,9 +6675,9 @@ function Bo() {
|
|
|
6674
6675
|
}, C.add = function(T, o) {
|
|
6675
6676
|
var z, m = this;
|
|
6676
6677
|
T = Number(T);
|
|
6677
|
-
var n = k.p(o), f = function(
|
|
6678
|
+
var n = k.p(o), f = function(D) {
|
|
6678
6679
|
var H = d(m);
|
|
6679
|
-
return k.w(H.date(H.date() + Math.round(
|
|
6680
|
+
return k.w(H.date(H.date() + Math.round(D * T)), m);
|
|
6680
6681
|
};
|
|
6681
6682
|
if (n === O) return this.set(O, this.$M + T);
|
|
6682
6683
|
if (n === M) return this.set(M, this.$y + T);
|
|
@@ -6689,7 +6690,7 @@ function Bo() {
|
|
|
6689
6690
|
}, C.format = function(T) {
|
|
6690
6691
|
var o = this, z = this.$locale();
|
|
6691
6692
|
if (!this.isValid()) return z.invalidDate || p;
|
|
6692
|
-
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) {
|
|
6693
6694
|
return X && (X[J] || X(o, m)) || te[J].slice(0, Z);
|
|
6694
6695
|
}, V = function(X) {
|
|
6695
6696
|
return k.s(f % 12 || 12, X, "0");
|
|
@@ -6719,11 +6720,11 @@ function Bo() {
|
|
|
6719
6720
|
case "d":
|
|
6720
6721
|
return String(o.$W);
|
|
6721
6722
|
case "dd":
|
|
6722
|
-
return W(z.weekdaysMin, o.$W,
|
|
6723
|
+
return W(z.weekdaysMin, o.$W, D, 2);
|
|
6723
6724
|
case "ddd":
|
|
6724
|
-
return W(z.weekdaysShort, o.$W,
|
|
6725
|
+
return W(z.weekdaysShort, o.$W, D, 3);
|
|
6725
6726
|
case "dddd":
|
|
6726
|
-
return
|
|
6727
|
+
return D[o.$W];
|
|
6727
6728
|
case "H":
|
|
6728
6729
|
return String(f);
|
|
6729
6730
|
case "HH":
|
|
@@ -6755,7 +6756,7 @@ function Bo() {
|
|
|
6755
6756
|
}, C.utcOffset = function() {
|
|
6756
6757
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6757
6758
|
}, C.diff = function(T, o, z) {
|
|
6758
|
-
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() {
|
|
6759
6760
|
return k.m(n, S);
|
|
6760
6761
|
};
|
|
6761
6762
|
switch (f) {
|
|
@@ -6769,22 +6770,22 @@ function Bo() {
|
|
|
6769
6770
|
m = H() / 3;
|
|
6770
6771
|
break;
|
|
6771
6772
|
case g:
|
|
6772
|
-
m = (
|
|
6773
|
+
m = (D - $) / 6048e5;
|
|
6773
6774
|
break;
|
|
6774
6775
|
case h:
|
|
6775
|
-
m = (
|
|
6776
|
+
m = (D - $) / 864e5;
|
|
6776
6777
|
break;
|
|
6777
6778
|
case u:
|
|
6778
|
-
m =
|
|
6779
|
+
m = D / a;
|
|
6779
6780
|
break;
|
|
6780
6781
|
case l:
|
|
6781
|
-
m =
|
|
6782
|
+
m = D / i;
|
|
6782
6783
|
break;
|
|
6783
6784
|
case c:
|
|
6784
|
-
m =
|
|
6785
|
+
m = D / r;
|
|
6785
6786
|
break;
|
|
6786
6787
|
default:
|
|
6787
|
-
m =
|
|
6788
|
+
m = D;
|
|
6788
6789
|
}
|
|
6789
6790
|
return z ? m : k.a(m);
|
|
6790
6791
|
}, C.daysInMonth = function() {
|