@eliseubatista99/react-scaffold-core 1.1.6 → 1.1.7
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
|
@@ -103,14 +103,14 @@ function _n() {
|
|
|
103
103
|
case F:
|
|
104
104
|
return (n._context.displayName || "Context") + ".Consumer";
|
|
105
105
|
case q:
|
|
106
|
-
var
|
|
107
|
-
return n = n.displayName, n || (n =
|
|
106
|
+
var f = n.render;
|
|
107
|
+
return n = n.displayName, n || (n = f.displayName || f.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
108
108
|
case x:
|
|
109
|
-
return
|
|
109
|
+
return f = n.displayName || null, f !== null ? f : e(n.type) || "Memo";
|
|
110
110
|
case R:
|
|
111
|
-
|
|
111
|
+
f = n._payload, n = n._init;
|
|
112
112
|
try {
|
|
113
|
-
return e(n(
|
|
113
|
+
return e(n(f));
|
|
114
114
|
} catch {
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -122,15 +122,15 @@ function _n() {
|
|
|
122
122
|
function r(n) {
|
|
123
123
|
try {
|
|
124
124
|
t(n);
|
|
125
|
-
var
|
|
125
|
+
var f = !1;
|
|
126
126
|
} catch {
|
|
127
|
-
|
|
127
|
+
f = !0;
|
|
128
128
|
}
|
|
129
|
-
if (
|
|
130
|
-
|
|
131
|
-
var O =
|
|
129
|
+
if (f) {
|
|
130
|
+
f = console;
|
|
131
|
+
var O = f.error, $ = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
132
132
|
return O.call(
|
|
133
|
-
|
|
133
|
+
f,
|
|
134
134
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
135
135
|
$
|
|
136
136
|
), t(n);
|
|
@@ -141,8 +141,8 @@ function _n() {
|
|
|
141
141
|
if (typeof n == "object" && n !== null && n.$$typeof === R)
|
|
142
142
|
return "<...>";
|
|
143
143
|
try {
|
|
144
|
-
var
|
|
145
|
-
return
|
|
144
|
+
var f = e(n);
|
|
145
|
+
return f ? "<" + f + ">" : "<...>";
|
|
146
146
|
} catch {
|
|
147
147
|
return "<...>";
|
|
148
148
|
}
|
|
@@ -156,16 +156,16 @@ function _n() {
|
|
|
156
156
|
}
|
|
157
157
|
function d(n) {
|
|
158
158
|
if (A.call(n, "key")) {
|
|
159
|
-
var
|
|
160
|
-
if (
|
|
159
|
+
var f = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
160
|
+
if (f && f.isReactWarning) return !1;
|
|
161
161
|
}
|
|
162
162
|
return n.key !== void 0;
|
|
163
163
|
}
|
|
164
|
-
function u(n,
|
|
164
|
+
function u(n, f) {
|
|
165
165
|
function O() {
|
|
166
166
|
E || (E = !0, console.error(
|
|
167
167
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
168
|
-
|
|
168
|
+
f
|
|
169
169
|
));
|
|
170
170
|
}
|
|
171
171
|
O.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
@@ -179,11 +179,11 @@ function _n() {
|
|
|
179
179
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
180
180
|
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function c(n, f, O, $, D, z, N, W) {
|
|
183
183
|
return O = z.ref, n = {
|
|
184
184
|
$$typeof: L,
|
|
185
185
|
type: n,
|
|
186
|
-
key:
|
|
186
|
+
key: f,
|
|
187
187
|
props: z,
|
|
188
188
|
_owner: D
|
|
189
189
|
}, (O !== void 0 ? O : null) !== null ? Object.defineProperty(n, "ref", {
|
|
@@ -211,8 +211,8 @@ function _n() {
|
|
|
211
211
|
value: W
|
|
212
212
|
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
213
213
|
}
|
|
214
|
-
function v(n,
|
|
215
|
-
var B =
|
|
214
|
+
function v(n, f, O, $, D, z, N, W) {
|
|
215
|
+
var B = f.children;
|
|
216
216
|
if (B !== void 0)
|
|
217
217
|
if ($)
|
|
218
218
|
if (_(B)) {
|
|
@@ -224,9 +224,9 @@ function _n() {
|
|
|
224
224
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
225
225
|
);
|
|
226
226
|
else y(B);
|
|
227
|
-
if (A.call(
|
|
227
|
+
if (A.call(f, "key")) {
|
|
228
228
|
B = e(n);
|
|
229
|
-
var K = Object.keys(
|
|
229
|
+
var K = Object.keys(f).filter(function(J) {
|
|
230
230
|
return J !== "key";
|
|
231
231
|
});
|
|
232
232
|
$ = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", m[B + $] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -242,15 +242,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
242
242
|
B
|
|
243
243
|
), m[B + $] = !0);
|
|
244
244
|
}
|
|
245
|
-
if (B = null, O !== void 0 && (r(O), B = "" + O), d(
|
|
245
|
+
if (B = null, O !== void 0 && (r(O), B = "" + O), d(f) && (r(f.key), B = "" + f.key), "key" in f) {
|
|
246
246
|
O = {};
|
|
247
|
-
for (var G in
|
|
248
|
-
G !== "key" && (O[G] =
|
|
249
|
-
} else O =
|
|
247
|
+
for (var G in f)
|
|
248
|
+
G !== "key" && (O[G] = f[G]);
|
|
249
|
+
} else O = f;
|
|
250
250
|
return B && u(
|
|
251
251
|
O,
|
|
252
252
|
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
253
|
-
),
|
|
253
|
+
), c(
|
|
254
254
|
n,
|
|
255
255
|
B,
|
|
256
256
|
z,
|
|
@@ -276,11 +276,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
276
276
|
S,
|
|
277
277
|
s
|
|
278
278
|
)(), H = T(i(s)), m = {};
|
|
279
|
-
ze.Fragment = p, ze.jsx = function(n,
|
|
279
|
+
ze.Fragment = p, ze.jsx = function(n, f, O, $, D) {
|
|
280
280
|
var z = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
281
281
|
return v(
|
|
282
282
|
n,
|
|
283
|
-
|
|
283
|
+
f,
|
|
284
284
|
O,
|
|
285
285
|
!1,
|
|
286
286
|
$,
|
|
@@ -288,11 +288,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
288
288
|
z ? Error("react-stack-top-frame") : o,
|
|
289
289
|
z ? T(i(n)) : H
|
|
290
290
|
);
|
|
291
|
-
}, ze.jsxs = function(n,
|
|
291
|
+
}, ze.jsxs = function(n, f, O, $, D) {
|
|
292
292
|
var z = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
293
293
|
return v(
|
|
294
294
|
n,
|
|
295
|
-
|
|
295
|
+
f,
|
|
296
296
|
O,
|
|
297
297
|
!0,
|
|
298
298
|
$,
|
|
@@ -374,7 +374,7 @@ var _t, or;
|
|
|
374
374
|
function Ln() {
|
|
375
375
|
if (or) return _t;
|
|
376
376
|
or = 1;
|
|
377
|
-
var e = "Expected a function", t = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, d = /^0o[0-7]+$/i, u = parseInt, l = typeof rt == "object" && rt && rt.Object === Object && rt,
|
|
377
|
+
var e = "Expected a function", t = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, d = /^0o[0-7]+$/i, u = parseInt, l = typeof rt == "object" && rt && rt.Object === Object && rt, c = typeof self == "object" && self && self.Object === Object && self, v = l || c || Function("return this")(), y = Object.prototype, S = y.toString, L = Math.max, k = Math.min, p = function() {
|
|
378
378
|
return v.Date.now();
|
|
379
379
|
};
|
|
380
380
|
function I(g, w, x) {
|
|
@@ -393,13 +393,13 @@ function Ln() {
|
|
|
393
393
|
var B = W - _, K = W - T, G = w - B;
|
|
394
394
|
return j ? k(G, h - K) : G;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function f(W) {
|
|
397
397
|
var B = W - _, K = W - T;
|
|
398
398
|
return _ === void 0 || B >= w || B < 0 || j && K >= h;
|
|
399
399
|
}
|
|
400
400
|
function O() {
|
|
401
401
|
var W = p();
|
|
402
|
-
if (
|
|
402
|
+
if (f(W))
|
|
403
403
|
return $(W);
|
|
404
404
|
A = setTimeout(O, n(W));
|
|
405
405
|
}
|
|
@@ -413,7 +413,7 @@ function Ln() {
|
|
|
413
413
|
return A === void 0 ? P : $(p());
|
|
414
414
|
}
|
|
415
415
|
function N() {
|
|
416
|
-
var W = p(), B =
|
|
416
|
+
var W = p(), B = f(W);
|
|
417
417
|
if (R = arguments, b = this, _ = W, B) {
|
|
418
418
|
if (A === void 0)
|
|
419
419
|
return m(_);
|
|
@@ -571,7 +571,7 @@ function Ke() {
|
|
|
571
571
|
if (ur) return Y;
|
|
572
572
|
ur = 1, Object.defineProperty(Y, "__esModule", {
|
|
573
573
|
value: !0
|
|
574
|
-
}), Y.checkSpecKeys = Y.checkNavigable = Y.changeSlide = Y.canUseDOM = Y.canGoNext = void 0, Y.clamp =
|
|
574
|
+
}), Y.checkSpecKeys = Y.checkNavigable = Y.changeSlide = Y.canUseDOM = Y.canGoNext = void 0, Y.clamp = c, Y.extractObject = void 0, Y.filterSettings = H, Y.validSettings = Y.swipeStart = Y.swipeMove = Y.swipeEnd = Y.slidesOnRight = Y.slidesOnLeft = Y.slideHandler = Y.siblingDirection = Y.safePreventDefault = Y.lazyStartIndex = Y.lazySlidesOnRight = Y.lazySlidesOnLeft = Y.lazyEndIndex = Y.keyHandler = Y.initializedState = Y.getWidth = Y.getTrackLeft = Y.getTrackCSS = Y.getTrackAnimateCSS = Y.getTotalSlides = Y.getSwipeDirection = Y.getSlideCount = Y.getRequiredLazySlides = Y.getPreClones = Y.getPostClones = Y.getOnDemandLazySlides = Y.getNavigableIndexes = Y.getHeight = void 0;
|
|
575
575
|
var e = r(V), t = r(zr());
|
|
576
576
|
function r(m) {
|
|
577
577
|
return m && m.__esModule ? m : { default: m };
|
|
@@ -585,28 +585,28 @@ function Ke() {
|
|
|
585
585
|
}, i(m);
|
|
586
586
|
}
|
|
587
587
|
function a(m, n) {
|
|
588
|
-
var
|
|
588
|
+
var f = Object.keys(m);
|
|
589
589
|
if (Object.getOwnPropertySymbols) {
|
|
590
590
|
var O = Object.getOwnPropertySymbols(m);
|
|
591
591
|
n && (O = O.filter(function($) {
|
|
592
592
|
return Object.getOwnPropertyDescriptor(m, $).enumerable;
|
|
593
|
-
})),
|
|
593
|
+
})), f.push.apply(f, O);
|
|
594
594
|
}
|
|
595
|
-
return
|
|
595
|
+
return f;
|
|
596
596
|
}
|
|
597
597
|
function s(m) {
|
|
598
598
|
for (var n = 1; n < arguments.length; n++) {
|
|
599
|
-
var
|
|
600
|
-
n % 2 ? a(Object(
|
|
601
|
-
d(m, O,
|
|
602
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(
|
|
603
|
-
Object.defineProperty(m, O, Object.getOwnPropertyDescriptor(
|
|
599
|
+
var f = arguments[n] != null ? arguments[n] : {};
|
|
600
|
+
n % 2 ? a(Object(f), !0).forEach(function(O) {
|
|
601
|
+
d(m, O, f[O]);
|
|
602
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(f)) : a(Object(f)).forEach(function(O) {
|
|
603
|
+
Object.defineProperty(m, O, Object.getOwnPropertyDescriptor(f, O));
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
return m;
|
|
607
607
|
}
|
|
608
|
-
function d(m, n,
|
|
609
|
-
return (n = u(n)) in m ? Object.defineProperty(m, n, { value:
|
|
608
|
+
function d(m, n, f) {
|
|
609
|
+
return (n = u(n)) in m ? Object.defineProperty(m, n, { value: f, enumerable: !0, configurable: !0, writable: !0 }) : m[n] = f, m;
|
|
610
610
|
}
|
|
611
611
|
function u(m) {
|
|
612
612
|
var n = l(m, "string");
|
|
@@ -614,29 +614,29 @@ function Ke() {
|
|
|
614
614
|
}
|
|
615
615
|
function l(m, n) {
|
|
616
616
|
if (i(m) != "object" || !m) return m;
|
|
617
|
-
var
|
|
618
|
-
if (
|
|
619
|
-
var O =
|
|
617
|
+
var f = m[Symbol.toPrimitive];
|
|
618
|
+
if (f !== void 0) {
|
|
619
|
+
var O = f.call(m, n);
|
|
620
620
|
if (i(O) != "object") return O;
|
|
621
621
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
622
622
|
}
|
|
623
623
|
return (n === "string" ? String : Number)(m);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return Math.max(n, Math.min(m,
|
|
625
|
+
function c(m, n, f) {
|
|
626
|
+
return Math.max(n, Math.min(m, f));
|
|
627
627
|
}
|
|
628
628
|
var v = Y.safePreventDefault = function(n) {
|
|
629
|
-
var
|
|
630
|
-
|
|
629
|
+
var f = ["onTouchStart", "onTouchMove", "onWheel"];
|
|
630
|
+
f.includes(n._reactName) || n.preventDefault();
|
|
631
631
|
}, y = Y.getOnDemandLazySlides = function(n) {
|
|
632
|
-
for (var
|
|
633
|
-
n.lazyLoadedList.indexOf(D) < 0 &&
|
|
634
|
-
return
|
|
632
|
+
for (var f = [], O = S(n), $ = L(n), D = O; D < $; D++)
|
|
633
|
+
n.lazyLoadedList.indexOf(D) < 0 && f.push(D);
|
|
634
|
+
return f;
|
|
635
635
|
};
|
|
636
636
|
Y.getRequiredLazySlides = function(n) {
|
|
637
|
-
for (var
|
|
638
|
-
|
|
639
|
-
return
|
|
637
|
+
for (var f = [], O = S(n), $ = L(n), D = O; D < $; D++)
|
|
638
|
+
f.push(D);
|
|
639
|
+
return f;
|
|
640
640
|
};
|
|
641
641
|
var S = Y.lazyStartIndex = function(n) {
|
|
642
642
|
return n.currentSlide - k(n);
|
|
@@ -651,19 +651,19 @@ function Ke() {
|
|
|
651
651
|
}, C = Y.getHeight = function(n) {
|
|
652
652
|
return n && n.offsetHeight || 0;
|
|
653
653
|
}, F = Y.getSwipeDirection = function(n) {
|
|
654
|
-
var
|
|
655
|
-
return O = n.startX - n.curX, $ = n.startY - n.curY, D = Math.atan2($, O), z = Math.round(D * 180 / Math.PI), z < 0 && (z = 360 - Math.abs(z)), z <= 45 && z >= 0 || z <= 360 && z >= 315 ? "left" : z >= 135 && z <= 225 ? "right" :
|
|
654
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, O, $, D, z;
|
|
655
|
+
return O = n.startX - n.curX, $ = n.startY - n.curY, D = Math.atan2($, O), z = Math.round(D * 180 / Math.PI), z < 0 && (z = 360 - Math.abs(z)), z <= 45 && z >= 0 || z <= 360 && z >= 315 ? "left" : z >= 135 && z <= 225 ? "right" : f === !0 ? z >= 35 && z <= 135 ? "up" : "down" : "vertical";
|
|
656
656
|
}, U = Y.canGoNext = function(n) {
|
|
657
|
-
var
|
|
658
|
-
return n.infinite || (n.centerMode && n.currentSlide >= n.slideCount - 1 || n.slideCount <= n.slidesToShow || n.currentSlide >= n.slideCount - n.slidesToShow) && (
|
|
657
|
+
var f = !0;
|
|
658
|
+
return n.infinite || (n.centerMode && n.currentSlide >= n.slideCount - 1 || n.slideCount <= n.slidesToShow || n.currentSlide >= n.slideCount - n.slidesToShow) && (f = !1), f;
|
|
659
659
|
};
|
|
660
|
-
Y.extractObject = function(n,
|
|
660
|
+
Y.extractObject = function(n, f) {
|
|
661
661
|
var O = {};
|
|
662
|
-
return
|
|
662
|
+
return f.forEach(function($) {
|
|
663
663
|
return O[$] = n[$];
|
|
664
664
|
}), O;
|
|
665
665
|
}, Y.initializedState = function(n) {
|
|
666
|
-
var
|
|
666
|
+
var f = e.default.Children.count(n.children), O = n.listRef, $ = Math.ceil(I(O)), D = n.trackRef && n.trackRef.node, z = Math.ceil(I(D)), N;
|
|
667
667
|
if (n.vertical)
|
|
668
668
|
N = $;
|
|
669
669
|
else {
|
|
@@ -671,14 +671,14 @@ function Ke() {
|
|
|
671
671
|
typeof n.centerPadding == "string" && n.centerPadding.slice(-1) === "%" && (W *= $ / 100), N = Math.ceil(($ - W) / n.slidesToShow);
|
|
672
672
|
}
|
|
673
673
|
var B = O && C(O.querySelector('[data-index="0"]')), K = B * n.slidesToShow, G = n.currentSlide === void 0 ? n.initialSlide : n.currentSlide;
|
|
674
|
-
n.rtl && n.currentSlide === void 0 && (G =
|
|
674
|
+
n.rtl && n.currentSlide === void 0 && (G = f - 1 - n.initialSlide);
|
|
675
675
|
var J = n.lazyLoadedList || [], te = y(s(s({}, n), {}, {
|
|
676
676
|
currentSlide: G,
|
|
677
677
|
lazyLoadedList: J
|
|
678
678
|
}));
|
|
679
679
|
J = J.concat(te);
|
|
680
680
|
var Z = {
|
|
681
|
-
slideCount:
|
|
681
|
+
slideCount: f,
|
|
682
682
|
slideWidth: N,
|
|
683
683
|
listWidth: $,
|
|
684
684
|
trackWidth: z,
|
|
@@ -689,9 +689,9 @@ function Ke() {
|
|
|
689
689
|
};
|
|
690
690
|
return n.autoplaying === null && n.autoplay && (Z.autoplaying = "playing"), Z;
|
|
691
691
|
}, Y.slideHandler = function(n) {
|
|
692
|
-
var
|
|
693
|
-
if (
|
|
694
|
-
var ee = z, ie, le, Q, oe = {}, ue = {}, ce = D ? z :
|
|
692
|
+
var f = n.waitForAnimate, O = n.animating, $ = n.fade, D = n.infinite, z = n.index, N = n.slideCount, W = n.lazyLoad, B = n.currentSlide, K = n.centerMode, G = n.slidesToScroll, J = n.slidesToShow, te = n.useCSS, Z = n.lazyLoadedList;
|
|
693
|
+
if (f && O) return {};
|
|
694
|
+
var ee = z, ie, le, Q, oe = {}, ue = {}, ce = D ? z : c(z, 0, N - 1);
|
|
695
695
|
if ($) {
|
|
696
696
|
if (!D && (z < 0 || z >= N)) return {};
|
|
697
697
|
z < 0 ? ee = z + N : z >= N && (ee = z - N), W && Z.indexOf(ee) < 0 && (Z = Z.concat(ee)), oe = {
|
|
@@ -738,27 +738,27 @@ function Ke() {
|
|
|
738
738
|
state: oe,
|
|
739
739
|
nextState: ue
|
|
740
740
|
};
|
|
741
|
-
}, Y.changeSlide = function(n,
|
|
741
|
+
}, Y.changeSlide = function(n, f) {
|
|
742
742
|
var O, $, D, z, N, W = n.slidesToScroll, B = n.slidesToShow, K = n.slideCount, G = n.currentSlide, J = n.targetSlide, te = n.lazyLoad, Z = n.infinite;
|
|
743
|
-
if (z = K % W !== 0, O = z ? 0 : (K - G) % W,
|
|
743
|
+
if (z = K % W !== 0, O = z ? 0 : (K - G) % W, f.message === "previous")
|
|
744
744
|
D = O === 0 ? W : B - O, N = G - D, te && !Z && ($ = G - D, N = $ === -1 ? K - 1 : $), Z || (N = J - W);
|
|
745
|
-
else if (
|
|
745
|
+
else if (f.message === "next")
|
|
746
746
|
D = O === 0 ? W : O, N = G + D, te && !Z && (N = (G + W) % K + O), Z || (N = J + W);
|
|
747
|
-
else if (
|
|
748
|
-
N =
|
|
749
|
-
else if (
|
|
750
|
-
if (N =
|
|
747
|
+
else if (f.message === "dots")
|
|
748
|
+
N = f.index * f.slidesToScroll;
|
|
749
|
+
else if (f.message === "children") {
|
|
750
|
+
if (N = f.index, Z) {
|
|
751
751
|
var ee = T(s(s({}, n), {}, {
|
|
752
752
|
targetSlide: N
|
|
753
753
|
}));
|
|
754
|
-
N >
|
|
754
|
+
N > f.currentSlide && ee === "left" ? N = N - K : N < f.currentSlide && ee === "right" && (N = N + K);
|
|
755
755
|
}
|
|
756
|
-
} else
|
|
756
|
+
} else f.message === "index" && (N = Number(f.index));
|
|
757
757
|
return N;
|
|
758
|
-
}, Y.keyHandler = function(n,
|
|
759
|
-
return n.target.tagName.match("TEXTAREA|INPUT|SELECT") || !
|
|
760
|
-
}, Y.swipeStart = function(n,
|
|
761
|
-
return n.target.tagName === "IMG" && v(n), !
|
|
758
|
+
}, Y.keyHandler = function(n, f, O) {
|
|
759
|
+
return n.target.tagName.match("TEXTAREA|INPUT|SELECT") || !f ? "" : n.keyCode === 37 ? O ? "next" : "previous" : n.keyCode === 39 ? O ? "previous" : "next" : "";
|
|
760
|
+
}, Y.swipeStart = function(n, f, O) {
|
|
761
|
+
return n.target.tagName === "IMG" && v(n), !f || !O && n.type.indexOf("mouse") !== -1 ? "" : {
|
|
762
762
|
dragging: !0,
|
|
763
763
|
touchObject: {
|
|
764
764
|
startX: n.touches ? n.touches[0].pageX : n.clientX,
|
|
@@ -767,12 +767,12 @@ function Ke() {
|
|
|
767
767
|
curY: n.touches ? n.touches[0].pageY : n.clientY
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
|
-
}, Y.swipeMove = function(n,
|
|
771
|
-
var O =
|
|
770
|
+
}, Y.swipeMove = function(n, f) {
|
|
771
|
+
var O = f.scrolling, $ = f.animating, D = f.vertical, z = f.swipeToSlide, N = f.verticalSwiping, W = f.rtl, B = f.currentSlide, K = f.edgeFriction, G = 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 (!O) {
|
|
773
773
|
if ($) return v(n);
|
|
774
774
|
D && z && N && v(n);
|
|
775
|
-
var pe, Re = {}, tt = h(
|
|
775
|
+
var pe, Re = {}, tt = h(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)));
|
|
778
778
|
if (!N && !Z && tr > 10)
|
|
@@ -782,17 +782,17 @@ function Ke() {
|
|
|
782
782
|
N && (Q.swipeLength = tr);
|
|
783
783
|
var Ie = (W ? -1 : 1) * (Q.curX > Q.startX ? 1 : -1);
|
|
784
784
|
N && (Ie = Q.curY > Q.startY ? 1 : -1);
|
|
785
|
-
var kn = Math.ceil(ee / ie), Pe = F(
|
|
786
|
-
return le || (B === 0 && (Pe === "right" || Pe === "down") || B + 1 >= kn && (Pe === "left" || Pe === "up") || !U(
|
|
785
|
+
var kn = Math.ceil(ee / ie), Pe = F(f.touchObject, N), Ae = Q.swipeLength;
|
|
786
|
+
return le || (B === 0 && (Pe === "right" || Pe === "down") || B + 1 >= kn && (Pe === "left" || Pe === "up") || !U(f) && (Pe === "left" || Pe === "up")) && (Ae = Q.swipeLength * K, G === !1 && J && (J(Pe), Re.edgeDragged = !0)), !te && oe && (oe(Pe), Re.swiped = !0), D ? pe = tt + Ae * (ue / ce) * Ie : W ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, N && (pe = tt + Ae * Ie), Re = s(s({}, Re), {}, {
|
|
787
787
|
touchObject: Q,
|
|
788
788
|
swipeLeft: pe,
|
|
789
|
-
trackStyle: R(s(s({},
|
|
789
|
+
trackStyle: R(s(s({}, f), {}, {
|
|
790
790
|
left: pe
|
|
791
791
|
}))
|
|
792
792
|
}), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Re.swiping = !0, v(n)), Re;
|
|
793
793
|
}
|
|
794
|
-
}, Y.swipeEnd = function(n,
|
|
795
|
-
var O =
|
|
794
|
+
}, Y.swipeEnd = function(n, f) {
|
|
795
|
+
var O = f.dragging, $ = f.swipe, D = f.touchObject, z = f.listWidth, N = f.touchThreshold, W = f.verticalSwiping, B = f.listHeight, K = f.swipeToSlide, G = f.scrolling, J = f.onSwipe, te = f.targetSlide, Z = f.currentSlide, ee = f.infinite;
|
|
796
796
|
if (!O)
|
|
797
797
|
return $ && v(n), {};
|
|
798
798
|
var ie = W ? B / N : z / N, le = F(D, W), Q = {
|
|
@@ -812,50 +812,50 @@ function Ke() {
|
|
|
812
812
|
switch (le) {
|
|
813
813
|
case "left":
|
|
814
814
|
case "up":
|
|
815
|
-
ue = ce + w(
|
|
815
|
+
ue = ce + w(f), oe = K ? g(f, ue) : ue, Q.currentDirection = 0;
|
|
816
816
|
break;
|
|
817
817
|
case "right":
|
|
818
818
|
case "down":
|
|
819
|
-
ue = ce - w(
|
|
819
|
+
ue = ce - w(f), oe = K ? g(f, ue) : ue, Q.currentDirection = 1;
|
|
820
820
|
break;
|
|
821
821
|
default:
|
|
822
822
|
oe = ce;
|
|
823
823
|
}
|
|
824
824
|
Q.triggerSlideHandler = oe;
|
|
825
825
|
} else {
|
|
826
|
-
var pe = h(
|
|
827
|
-
Q.trackStyle = b(s(s({},
|
|
826
|
+
var pe = h(f);
|
|
827
|
+
Q.trackStyle = b(s(s({}, f), {}, {
|
|
828
828
|
left: pe
|
|
829
829
|
}));
|
|
830
830
|
}
|
|
831
831
|
return Q;
|
|
832
832
|
};
|
|
833
833
|
var q = Y.getNavigableIndexes = function(n) {
|
|
834
|
-
for (var
|
|
834
|
+
for (var f = n.infinite ? n.slideCount * 2 : n.slideCount, O = n.infinite ? n.slidesToShow * -1 : 0, $ = n.infinite ? n.slidesToShow * -1 : 0, D = []; O < f; )
|
|
835
835
|
D.push(O), O = $ + n.slidesToScroll, $ += Math.min(n.slidesToScroll, n.slidesToShow);
|
|
836
836
|
return D;
|
|
837
|
-
}, g = Y.checkNavigable = function(n,
|
|
837
|
+
}, g = Y.checkNavigable = function(n, f) {
|
|
838
838
|
var O = q(n), $ = 0;
|
|
839
|
-
if (
|
|
840
|
-
|
|
839
|
+
if (f > O[O.length - 1])
|
|
840
|
+
f = O[O.length - 1];
|
|
841
841
|
else
|
|
842
842
|
for (var D in O) {
|
|
843
|
-
if (
|
|
844
|
-
|
|
843
|
+
if (f < O[D]) {
|
|
844
|
+
f = $;
|
|
845
845
|
break;
|
|
846
846
|
}
|
|
847
847
|
$ = O[D];
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return f;
|
|
850
850
|
}, w = Y.getSlideCount = function(n) {
|
|
851
|
-
var
|
|
851
|
+
var f = n.centerMode ? n.slideWidth * Math.floor(n.slidesToShow / 2) : 0;
|
|
852
852
|
if (n.swipeToSlide) {
|
|
853
853
|
var O, $ = n.listRef, D = $.querySelectorAll && $.querySelectorAll(".slick-slide") || [];
|
|
854
854
|
if (Array.from(D).every(function(W) {
|
|
855
855
|
if (n.vertical) {
|
|
856
856
|
if (W.offsetTop + C(W) / 2 > n.swipeLeft * -1)
|
|
857
857
|
return O = W, !1;
|
|
858
|
-
} else if (W.offsetLeft -
|
|
858
|
+
} else if (W.offsetLeft - f + I(W) / 2 > n.swipeLeft * -1)
|
|
859
859
|
return O = W, !1;
|
|
860
860
|
return !0;
|
|
861
861
|
}), !O)
|
|
@@ -864,15 +864,15 @@ function Ke() {
|
|
|
864
864
|
return N;
|
|
865
865
|
} else
|
|
866
866
|
return n.slidesToScroll;
|
|
867
|
-
}, x = Y.checkSpecKeys = function(n,
|
|
868
|
-
return
|
|
867
|
+
}, x = Y.checkSpecKeys = function(n, f) {
|
|
868
|
+
return f.reduce(function(O, $) {
|
|
869
869
|
return O && n.hasOwnProperty($);
|
|
870
870
|
}, !0) ? null : console.error("Keys Missing:", n);
|
|
871
871
|
}, R = Y.getTrackCSS = function(n) {
|
|
872
872
|
x(n, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]);
|
|
873
|
-
var
|
|
873
|
+
var f, O;
|
|
874
874
|
if (!n.vertical)
|
|
875
|
-
|
|
875
|
+
f = _(n) * n.slideWidth;
|
|
876
876
|
else {
|
|
877
877
|
var $ = n.unslick ? n.slideCount : n.slideCount + 2 * n.slidesToShow;
|
|
878
878
|
O = $ * n.slideHeight;
|
|
@@ -893,23 +893,23 @@ function Ke() {
|
|
|
893
893
|
n.vertical ? D.top = n.left : D.left = n.left;
|
|
894
894
|
return n.fade && (D = {
|
|
895
895
|
opacity: 1
|
|
896
|
-
}),
|
|
896
|
+
}), f && (D.width = f), O && (D.height = O), window && !window.addEventListener && window.attachEvent && (n.vertical ? D.marginTop = n.left + "px" : D.marginLeft = n.left + "px"), D;
|
|
897
897
|
}, b = Y.getTrackAnimateCSS = function(n) {
|
|
898
898
|
x(n, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
|
|
899
|
-
var
|
|
900
|
-
return n.useTransform ? (
|
|
899
|
+
var f = R(n);
|
|
900
|
+
return n.useTransform ? (f.WebkitTransition = "-webkit-transform " + n.speed + "ms " + n.cssEase, f.transition = "transform " + n.speed + "ms " + n.cssEase) : n.vertical ? f.transition = "top " + n.speed + "ms " + n.cssEase : f.transition = "left " + n.speed + "ms " + n.cssEase, f;
|
|
901
901
|
}, h = Y.getTrackLeft = function(n) {
|
|
902
902
|
if (n.unslick)
|
|
903
903
|
return 0;
|
|
904
904
|
x(n, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
|
|
905
|
-
var
|
|
905
|
+
var f = n.slideIndex, O = n.trackRef, $ = n.infinite, D = n.centerMode, z = n.slideCount, N = n.slidesToShow, W = n.slidesToScroll, B = n.slideWidth, K = n.listWidth, G = 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 = -P(n), z % W !== 0 &&
|
|
909
|
+
if ($ ? (oe = -P(n), z % W !== 0 && f + W > z && (oe = -(f > z ? N - (f - z) : z % W)), D && (oe += parseInt(N / 2))) : (z % W !== 0 && f + W > z && (oe = N - z % W), D && (oe = parseInt(N / 2))), ee = oe * B, Q = oe * J, Z ? ie = f * J * -1 + Q : ie = f * B * -1 + ee, G === !0) {
|
|
910
910
|
var ue, ce = O && O.node;
|
|
911
|
-
if (ue =
|
|
912
|
-
ue = $ ?
|
|
911
|
+
if (ue = f + P(n), le = ce && ce.childNodes[ue], ie = le ? le.offsetLeft * -1 : 0, D === !0) {
|
|
912
|
+
ue = $ ? f + P(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;
|
|
915
915
|
ie -= parseInt(n.centerPadding), ie += le && (K - le.offsetWidth) / 2;
|
|
@@ -925,27 +925,27 @@ function Ke() {
|
|
|
925
925
|
}, T = Y.siblingDirection = function(n) {
|
|
926
926
|
return n.targetSlide > n.currentSlide ? n.targetSlide > n.currentSlide + E(n) ? "left" : "right" : n.targetSlide < n.currentSlide - j(n) ? "right" : "left";
|
|
927
927
|
}, E = Y.slidesOnRight = function(n) {
|
|
928
|
-
var
|
|
928
|
+
var f = n.slidesToShow, O = n.centerMode, $ = n.rtl, D = n.centerPadding;
|
|
929
929
|
if (O) {
|
|
930
|
-
var z = (
|
|
931
|
-
return parseInt(D) > 0 && (z += 1), $ &&
|
|
930
|
+
var z = (f - 1) / 2 + 1;
|
|
931
|
+
return parseInt(D) > 0 && (z += 1), $ && f % 2 === 0 && (z += 1), z;
|
|
932
932
|
}
|
|
933
|
-
return $ ? 0 :
|
|
933
|
+
return $ ? 0 : f - 1;
|
|
934
934
|
}, j = Y.slidesOnLeft = function(n) {
|
|
935
|
-
var
|
|
935
|
+
var f = n.slidesToShow, O = n.centerMode, $ = n.rtl, D = n.centerPadding;
|
|
936
936
|
if (O) {
|
|
937
|
-
var z = (
|
|
938
|
-
return parseInt(D) > 0 && (z += 1), !$ &&
|
|
937
|
+
var z = (f - 1) / 2 + 1;
|
|
938
|
+
return parseInt(D) > 0 && (z += 1), !$ && f % 2 === 0 && (z += 1), z;
|
|
939
939
|
}
|
|
940
|
-
return $ ?
|
|
940
|
+
return $ ? f - 1 : 0;
|
|
941
941
|
};
|
|
942
942
|
Y.canUseDOM = function() {
|
|
943
943
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
944
944
|
};
|
|
945
945
|
var o = Y.validSettings = Object.keys(t.default);
|
|
946
946
|
function H(m) {
|
|
947
|
-
return o.reduce(function(n,
|
|
948
|
-
return m.hasOwnProperty(
|
|
947
|
+
return o.reduce(function(n, f) {
|
|
948
|
+
return m.hasOwnProperty(f) && (n[f] = m[f]), n;
|
|
949
949
|
}, {});
|
|
950
950
|
}
|
|
951
951
|
return Y;
|
|
@@ -990,7 +990,7 @@ function Dn() {
|
|
|
990
990
|
function l(b, h, P) {
|
|
991
991
|
return h && u(b.prototype, h), Object.defineProperty(b, "prototype", { writable: !1 }), b;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function c(b, h) {
|
|
994
994
|
if (typeof h != "function" && h !== null) throw new TypeError("Super expression must either be null or a function");
|
|
995
995
|
b.prototype = Object.create(h && h.prototype, { constructor: { value: b, writable: !0, configurable: !0 } }), Object.defineProperty(b, "prototype", { writable: !1 }), h && v(b, h);
|
|
996
996
|
}
|
|
@@ -1094,7 +1094,7 @@ function Dn() {
|
|
|
1094
1094
|
}, R = function(h) {
|
|
1095
1095
|
var P, A = [], _ = [], T = [], E = e.default.Children.count(h.children), j = (0, r.lazyStartIndex)(h), o = (0, r.lazyEndIndex)(h);
|
|
1096
1096
|
return e.default.Children.forEach(h.children, function(H, m) {
|
|
1097
|
-
var n,
|
|
1097
|
+
var n, f = {
|
|
1098
1098
|
message: "children",
|
|
1099
1099
|
index: m,
|
|
1100
1100
|
slidesToScroll: h.slidesToScroll,
|
|
@@ -1116,7 +1116,7 @@ function Dn() {
|
|
|
1116
1116
|
outline: "none"
|
|
1117
1117
|
}, n.props.style || {}), O),
|
|
1118
1118
|
onClick: function(W) {
|
|
1119
|
-
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(
|
|
1119
|
+
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(f);
|
|
1120
1120
|
}
|
|
1121
1121
|
})), h.infinite && E > 1 && h.fade === !1 && !h.unslick) {
|
|
1122
1122
|
var z = E - m;
|
|
@@ -1130,7 +1130,7 @@ function Dn() {
|
|
|
1130
1130
|
"aria-hidden": !D["slick-active"],
|
|
1131
1131
|
style: C(C({}, n.props.style || {}), O),
|
|
1132
1132
|
onClick: function(W) {
|
|
1133
|
-
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(
|
|
1133
|
+
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(f);
|
|
1134
1134
|
}
|
|
1135
1135
|
}))), m < (0, r.getPostClones)(h) && (P = E + m, P < o && (n = H), D = g(C(C({}, h), {}, {
|
|
1136
1136
|
index: P
|
|
@@ -1142,14 +1142,14 @@ function Dn() {
|
|
|
1142
1142
|
"aria-hidden": !D["slick-active"],
|
|
1143
1143
|
style: C(C({}, n.props.style || {}), O),
|
|
1144
1144
|
onClick: function(W) {
|
|
1145
|
-
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(
|
|
1145
|
+
n.props && n.props.onClick && n.props.onClick(W), h.focusOnSelect && h.focusOnSelect(f);
|
|
1146
1146
|
}
|
|
1147
1147
|
})));
|
|
1148
1148
|
}
|
|
1149
1149
|
}), h.rtl ? _.concat(A, T).reverse() : _.concat(A, T);
|
|
1150
1150
|
};
|
|
1151
1151
|
return Fe.Track = /* @__PURE__ */ function(b) {
|
|
1152
|
-
|
|
1152
|
+
c(P, b);
|
|
1153
1153
|
var h = y(P);
|
|
1154
1154
|
function P() {
|
|
1155
1155
|
var A;
|
|
@@ -1223,14 +1223,14 @@ function Mn() {
|
|
|
1223
1223
|
function l(g, w) {
|
|
1224
1224
|
if (!(g instanceof w)) throw new TypeError("Cannot call a class as a function");
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function c(g, w) {
|
|
1227
1227
|
for (var x = 0; x < w.length; x++) {
|
|
1228
1228
|
var R = w[x];
|
|
1229
1229
|
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(g, y(R.key), R);
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
function v(g, w, x) {
|
|
1233
|
-
return w &&
|
|
1233
|
+
return w && c(g.prototype, w), Object.defineProperty(g, "prototype", { writable: !1 }), g;
|
|
1234
1234
|
}
|
|
1235
1235
|
function y(g) {
|
|
1236
1236
|
var w = S(g, "string");
|
|
@@ -1317,19 +1317,19 @@ function Mn() {
|
|
|
1317
1317
|
onMouseEnter: h,
|
|
1318
1318
|
onMouseOver: P,
|
|
1319
1319
|
onMouseLeave: A
|
|
1320
|
-
}, n = [],
|
|
1321
|
-
var O = (
|
|
1320
|
+
}, n = [], f = 0; f < H; f++) {
|
|
1321
|
+
var O = (f + 1) * T - 1, $ = _ ? O : (0, i.clamp)(O, 0, j - 1), D = $ - (T - 1), z = _ ? D : (0, i.clamp)(D, 0, j - 1), N = (0, r.default)({
|
|
1322
1322
|
"slick-active": _ ? o >= z && o <= $ : o === z
|
|
1323
1323
|
}), W = {
|
|
1324
1324
|
message: "dots",
|
|
1325
|
-
index:
|
|
1325
|
+
index: f,
|
|
1326
1326
|
slidesToScroll: T,
|
|
1327
1327
|
currentSlide: o
|
|
1328
1328
|
}, B = this.clickHandler.bind(this, W);
|
|
1329
1329
|
n = n.concat(/* @__PURE__ */ t.default.createElement("li", {
|
|
1330
|
-
key:
|
|
1330
|
+
key: f,
|
|
1331
1331
|
className: N
|
|
1332
|
-
}, /* @__PURE__ */ t.default.cloneElement(this.props.customPaging(
|
|
1332
|
+
}, /* @__PURE__ */ t.default.cloneElement(this.props.customPaging(f), {
|
|
1333
1333
|
onClick: B
|
|
1334
1334
|
})));
|
|
1335
1335
|
}
|
|
@@ -1393,7 +1393,7 @@ function $n() {
|
|
|
1393
1393
|
function l(g, w, x) {
|
|
1394
1394
|
return (w = S(w)) in g ? Object.defineProperty(g, w, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : g[w] = x, g;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function c(g, w) {
|
|
1397
1397
|
if (!(g instanceof w)) throw new TypeError("Cannot call a class as a function");
|
|
1398
1398
|
}
|
|
1399
1399
|
function v(g, w) {
|
|
@@ -1467,7 +1467,7 @@ function $n() {
|
|
|
1467
1467
|
k(x, g);
|
|
1468
1468
|
var w = I(x);
|
|
1469
1469
|
function x() {
|
|
1470
|
-
return
|
|
1470
|
+
return c(this, x), w.apply(this, arguments);
|
|
1471
1471
|
}
|
|
1472
1472
|
return y(x, [{
|
|
1473
1473
|
key: "clickHandler",
|
|
@@ -1506,7 +1506,7 @@ function $n() {
|
|
|
1506
1506
|
k(x, g);
|
|
1507
1507
|
var w = I(x);
|
|
1508
1508
|
function x() {
|
|
1509
|
-
return
|
|
1509
|
+
return c(this, x), w.apply(this, arguments);
|
|
1510
1510
|
}
|
|
1511
1511
|
return y(x, [{
|
|
1512
1512
|
key: "clickHandler",
|
|
@@ -1700,8 +1700,8 @@ function Vn(e) {
|
|
|
1700
1700
|
return Wr;
|
|
1701
1701
|
var i = je(e).getComputedStyle(e), a = Un(i), s = a.left + a.right, d = a.top + a.bottom, u = mt(i.width), l = mt(i.height);
|
|
1702
1702
|
if (i.boxSizing === "border-box" && (Math.round(u + s) !== t && (u -= hr(i, "left", "right") + s), Math.round(l + d) !== r && (l -= hr(i, "top", "bottom") + d)), !Bn(e)) {
|
|
1703
|
-
var
|
|
1704
|
-
Math.abs(
|
|
1703
|
+
var c = Math.round(u + s) - t, v = Math.round(l + d) - r;
|
|
1704
|
+
Math.abs(c) !== 1 && (u -= c), Math.abs(v) !== 1 && (l -= v);
|
|
1705
1705
|
}
|
|
1706
1706
|
return bt(a.left, a.top, u, l);
|
|
1707
1707
|
}
|
|
@@ -1840,8 +1840,8 @@ function ri() {
|
|
|
1840
1840
|
pr = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1841
1841
|
value: !0
|
|
1842
1842
|
}), Ne.InnerSlider = void 0;
|
|
1843
|
-
var e =
|
|
1844
|
-
function
|
|
1843
|
+
var e = c(V), t = c(jn()), r = c(Ln()), i = c(yt()), a = Ke(), s = Dn(), d = Mn(), u = $n(), l = c(ti);
|
|
1844
|
+
function c(_) {
|
|
1845
1845
|
return _ && _.__esModule ? _ : { default: _ };
|
|
1846
1846
|
}
|
|
1847
1847
|
function v(_) {
|
|
@@ -1993,9 +1993,9 @@ function ri() {
|
|
|
1993
1993
|
}), h(x(o), "componentDidMount", function() {
|
|
1994
1994
|
if (o.props.onInit && o.props.onInit(), o.props.lazyLoad) {
|
|
1995
1995
|
var m = (0, a.getOnDemandLazySlides)(p(p({}, o.props), o.state));
|
|
1996
|
-
m.length > 0 && (o.setState(function(
|
|
1996
|
+
m.length > 0 && (o.setState(function(f) {
|
|
1997
1997
|
return {
|
|
1998
|
-
lazyLoadedList:
|
|
1998
|
+
lazyLoadedList: f.lazyLoadedList.concat(m)
|
|
1999
1999
|
};
|
|
2000
2000
|
}), o.props.onLazyLoad && o.props.onLazyLoad(m));
|
|
2001
2001
|
}
|
|
@@ -2009,8 +2009,8 @@ function ri() {
|
|
|
2009
2009
|
o.state.animating ? (o.onWindowResized(!1), o.callbackTimers.push(setTimeout(function() {
|
|
2010
2010
|
return o.onWindowResized();
|
|
2011
2011
|
}, o.props.speed))) : o.onWindowResized();
|
|
2012
|
-
}), o.ro.observe(o.list), document.querySelectorAll && Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"), function(
|
|
2013
|
-
|
|
2012
|
+
}), o.ro.observe(o.list), document.querySelectorAll && Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"), function(f) {
|
|
2013
|
+
f.onfocus = o.props.pauseOnFocus ? o.onSlideFocus : null, f.onblur = o.props.pauseOnFocus ? o.onSlideBlur : null;
|
|
2014
2014
|
}), window.addEventListener ? window.addEventListener("resize", o.onWindowResized) : window.attachEvent("onresize", o.onWindowResized);
|
|
2015
2015
|
}), h(x(o), "componentWillUnmount", function() {
|
|
2016
2016
|
o.animationEndCallback && clearTimeout(o.animationEndCallback), o.lazyLoadTimer && clearInterval(o.lazyLoadTimer), o.callbackTimers.length && (o.callbackTimers.forEach(function(m) {
|
|
@@ -2026,11 +2026,11 @@ function ri() {
|
|
|
2026
2026
|
}), o.props.onLazyLoad && o.props.onLazyLoad(n));
|
|
2027
2027
|
}
|
|
2028
2028
|
o.adaptHeight();
|
|
2029
|
-
var
|
|
2029
|
+
var f = p(p({
|
|
2030
2030
|
listRef: o.list,
|
|
2031
2031
|
trackRef: o.track
|
|
2032
2032
|
}, o.props), o.state), O = o.didPropsChange(m);
|
|
2033
|
-
O && o.updateState(
|
|
2033
|
+
O && o.updateState(f, O, function() {
|
|
2034
2034
|
o.state.currentSlide >= e.default.Children.count(o.props.children) && o.changeSlide({
|
|
2035
2035
|
message: "index",
|
|
2036
2036
|
index: e.default.Children.count(o.props.children) - o.props.slidesToShow,
|
|
@@ -2044,17 +2044,17 @@ function ri() {
|
|
|
2044
2044
|
}), h(x(o), "resizeWindow", function() {
|
|
2045
2045
|
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, n = !!(o.track && o.track.node);
|
|
2046
2046
|
if (n) {
|
|
2047
|
-
var
|
|
2047
|
+
var f = p(p({
|
|
2048
2048
|
listRef: o.list,
|
|
2049
2049
|
trackRef: o.track
|
|
2050
2050
|
}, o.props), o.state);
|
|
2051
|
-
o.updateState(
|
|
2051
|
+
o.updateState(f, m, function() {
|
|
2052
2052
|
o.props.autoplay ? o.autoPlay("update") : o.pause("paused");
|
|
2053
2053
|
}), o.setState({
|
|
2054
2054
|
animating: !1
|
|
2055
2055
|
}), clearTimeout(o.animationEndCallback), delete o.animationEndCallback;
|
|
2056
2056
|
}
|
|
2057
|
-
}), h(x(o), "updateState", function(m, n,
|
|
2057
|
+
}), h(x(o), "updateState", function(m, n, f) {
|
|
2058
2058
|
var O = (0, a.initializedState)(m);
|
|
2059
2059
|
m = p(p(p({}, m), O), {}, {
|
|
2060
2060
|
slideIndex: O.currentSlide
|
|
@@ -2064,29 +2064,29 @@ function ri() {
|
|
|
2064
2064
|
left: $
|
|
2065
2065
|
});
|
|
2066
2066
|
var D = (0, a.getTrackCSS)(m);
|
|
2067
|
-
(n || e.default.Children.count(o.props.children) !== e.default.Children.count(m.children)) && (O.trackStyle = D), o.setState(O,
|
|
2067
|
+
(n || e.default.Children.count(o.props.children) !== e.default.Children.count(m.children)) && (O.trackStyle = D), o.setState(O, f);
|
|
2068
2068
|
}), h(x(o), "ssrInit", function() {
|
|
2069
2069
|
if (o.props.variableWidth) {
|
|
2070
|
-
var m = 0, n = 0,
|
|
2070
|
+
var m = 0, n = 0, f = [], O = (0, a.getPreClones)(p(p(p({}, o.props), o.state), {}, {
|
|
2071
2071
|
slideCount: o.props.children.length
|
|
2072
2072
|
})), $ = (0, a.getPostClones)(p(p(p({}, o.props), o.state), {}, {
|
|
2073
2073
|
slideCount: o.props.children.length
|
|
2074
2074
|
}));
|
|
2075
2075
|
o.props.children.forEach(function(le) {
|
|
2076
|
-
|
|
2076
|
+
f.push(le.props.style.width), m += le.props.style.width;
|
|
2077
2077
|
});
|
|
2078
2078
|
for (var D = 0; D < O; D++)
|
|
2079
|
-
n +=
|
|
2079
|
+
n += f[f.length - 1 - D], m += f[f.length - 1 - D];
|
|
2080
2080
|
for (var z = 0; z < $; z++)
|
|
2081
|
-
m +=
|
|
2081
|
+
m += f[z];
|
|
2082
2082
|
for (var N = 0; N < o.state.currentSlide; N++)
|
|
2083
|
-
n +=
|
|
2083
|
+
n += f[N];
|
|
2084
2084
|
var W = {
|
|
2085
2085
|
width: m + "px",
|
|
2086
2086
|
left: -n + "px"
|
|
2087
2087
|
};
|
|
2088
2088
|
if (o.props.centerMode) {
|
|
2089
|
-
var B = "".concat(
|
|
2089
|
+
var B = "".concat(f[o.state.currentSlide], "px");
|
|
2090
2090
|
W.left = "calc(".concat(W.left, " + (100% - ").concat(B, ") / 2 ) ");
|
|
2091
2091
|
}
|
|
2092
2092
|
return {
|
|
@@ -2106,10 +2106,10 @@ function ri() {
|
|
|
2106
2106
|
trackStyle: ie
|
|
2107
2107
|
};
|
|
2108
2108
|
}), h(x(o), "checkImagesLoad", function() {
|
|
2109
|
-
var m = o.list && o.list.querySelectorAll && o.list.querySelectorAll(".slick-slide img") || [], n = m.length,
|
|
2109
|
+
var m = o.list && o.list.querySelectorAll && o.list.querySelectorAll(".slick-slide img") || [], n = m.length, f = 0;
|
|
2110
2110
|
Array.prototype.forEach.call(m, function(O) {
|
|
2111
2111
|
var $ = function() {
|
|
2112
|
-
return ++
|
|
2112
|
+
return ++f && f >= n && o.onWindowResized();
|
|
2113
2113
|
};
|
|
2114
2114
|
if (!O.onclick)
|
|
2115
2115
|
O.onclick = function() {
|
|
@@ -2128,9 +2128,9 @@ function ri() {
|
|
|
2128
2128
|
}));
|
|
2129
2129
|
});
|
|
2130
2130
|
}), h(x(o), "progressiveLazyLoad", function() {
|
|
2131
|
-
for (var m = [], n = p(p({}, o.props), o.state),
|
|
2132
|
-
if (o.state.lazyLoadedList.indexOf(
|
|
2133
|
-
m.push(
|
|
2131
|
+
for (var m = [], n = p(p({}, o.props), o.state), f = o.state.currentSlide; f < o.state.slideCount + (0, a.getPostClones)(n); f++)
|
|
2132
|
+
if (o.state.lazyLoadedList.indexOf(f) < 0) {
|
|
2133
|
+
m.push(f);
|
|
2134
2134
|
break;
|
|
2135
2135
|
}
|
|
2136
2136
|
for (var O = o.state.currentSlide - 1; O >= -(0, a.getPreClones)(n); O--)
|
|
@@ -2144,7 +2144,7 @@ function ri() {
|
|
|
2144
2144
|
};
|
|
2145
2145
|
}), o.props.onLazyLoad && o.props.onLazyLoad(m)) : o.lazyLoadTimer && (clearInterval(o.lazyLoadTimer), delete o.lazyLoadTimer);
|
|
2146
2146
|
}), h(x(o), "slideHandler", function(m) {
|
|
2147
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
|
|
2147
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = o.props, O = f.asNavFor, $ = f.beforeChange, D = f.onLazyLoad, z = f.speed, N = f.afterChange, W = o.state.currentSlide, B = (0, a.slideHandler)(p(p(p({
|
|
2148
2148
|
index: m
|
|
2149
2149
|
}, o.props), o.state), {}, {
|
|
2150
2150
|
trackRef: o.track,
|
|
@@ -2169,7 +2169,7 @@ function ri() {
|
|
|
2169
2169
|
});
|
|
2170
2170
|
}
|
|
2171
2171
|
}), h(x(o), "changeSlide", function(m) {
|
|
2172
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
|
|
2172
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = p(p({}, o.props), o.state), O = (0, a.changeSlide)(f, m);
|
|
2173
2173
|
if (!(O !== 0 && !O) && (n === !0 ? o.slideHandler(O, n) : o.slideHandler(O), o.props.autoplay && o.autoPlay("update"), o.props.focusOnSelect)) {
|
|
2174
2174
|
var $ = o.list.querySelectorAll(".slick-current");
|
|
2175
2175
|
$[0] && $[0].focus();
|
|
@@ -2184,8 +2184,8 @@ function ri() {
|
|
|
2184
2184
|
}), h(x(o), "selectHandler", function(m) {
|
|
2185
2185
|
o.changeSlide(m);
|
|
2186
2186
|
}), h(x(o), "disableBodyScroll", function() {
|
|
2187
|
-
var m = function(
|
|
2188
|
-
|
|
2187
|
+
var m = function(f) {
|
|
2188
|
+
f = f || window.event, f.preventDefault && f.preventDefault(), f.returnValue = !1;
|
|
2189
2189
|
};
|
|
2190
2190
|
window.ontouchmove = m;
|
|
2191
2191
|
}), h(x(o), "enableBodyScroll", function() {
|
|
@@ -2208,8 +2208,8 @@ function ri() {
|
|
|
2208
2208
|
slideIndex: o.state.currentSlide
|
|
2209
2209
|
}));
|
|
2210
2210
|
if (n) {
|
|
2211
|
-
var
|
|
2212
|
-
delete n.triggerSlideHandler, o.setState(n),
|
|
2211
|
+
var f = n.triggerSlideHandler;
|
|
2212
|
+
delete n.triggerSlideHandler, o.setState(n), f !== void 0 && (o.slideHandler(f), o.props.verticalSwiping && o.enableBodyScroll());
|
|
2213
2213
|
}
|
|
2214
2214
|
}), h(x(o), "touchEnd", function(m) {
|
|
2215
2215
|
o.swipeEnd(m), o.clickable = !0;
|
|
@@ -2284,8 +2284,8 @@ function ri() {
|
|
|
2284
2284
|
var m = (0, i.default)("slick-slider", o.props.className, {
|
|
2285
2285
|
"slick-vertical": o.props.vertical,
|
|
2286
2286
|
"slick-initialized": !0
|
|
2287
|
-
}), n = p(p({}, o.props), o.state),
|
|
2288
|
-
|
|
2287
|
+
}), n = p(p({}, o.props), o.state), f = (0, a.extractObject)(n, ["fade", "cssEase", "speed", "infinite", "centerMode", "focusOnSelect", "currentSlide", "lazyLoad", "lazyLoadedList", "rtl", "slideWidth", "slideHeight", "listHeight", "vertical", "slidesToShow", "slidesToScroll", "slideCount", "trackStyle", "variableWidth", "unslick", "centerPadding", "targetSlide", "useCSS"]), O = o.props.pauseOnHover;
|
|
2288
|
+
f = p(p({}, f), {}, {
|
|
2289
2289
|
onMouseEnter: O ? o.onTrackOver : null,
|
|
2290
2290
|
onMouseLeave: O ? o.onTrackLeave : null,
|
|
2291
2291
|
onMouseOver: O ? o.onTrackOver : null,
|
|
@@ -2340,7 +2340,7 @@ function ri() {
|
|
|
2340
2340
|
ref: o.listRefHandler
|
|
2341
2341
|
}, Z), /* @__PURE__ */ e.default.createElement(s.Track, y({
|
|
2342
2342
|
ref: o.trackRefHandler
|
|
2343
|
-
},
|
|
2343
|
+
}, f), o.props.children)), o.props.unslick ? "" : W, o.props.unslick ? "" : $);
|
|
2344
2344
|
}), o.list = null, o.track = null, o.state = p(p({}, t.default), {}, {
|
|
2345
2345
|
currentSlide: o.props.initialSlide,
|
|
2346
2346
|
targetSlide: o.props.initialSlide ? o.props.initialSlide : 0,
|
|
@@ -2353,12 +2353,12 @@ function ri() {
|
|
|
2353
2353
|
key: "didPropsChange",
|
|
2354
2354
|
value: function(o) {
|
|
2355
2355
|
for (var H = !1, m = 0, n = Object.keys(this.props); m < n.length; m++) {
|
|
2356
|
-
var
|
|
2357
|
-
if (!o.hasOwnProperty(
|
|
2356
|
+
var f = n[m];
|
|
2357
|
+
if (!o.hasOwnProperty(f)) {
|
|
2358
2358
|
H = !0;
|
|
2359
2359
|
break;
|
|
2360
2360
|
}
|
|
2361
|
-
if (!(v(o[
|
|
2361
|
+
if (!(v(o[f]) === "object" || typeof o[f] == "function" || isNaN(o[f])) && o[f] !== this.props[f]) {
|
|
2362
2362
|
H = !0;
|
|
2363
2363
|
break;
|
|
2364
2364
|
}
|
|
@@ -2389,8 +2389,8 @@ function ii() {
|
|
|
2389
2389
|
}, r = function(a) {
|
|
2390
2390
|
var s = "", d = Object.keys(a);
|
|
2391
2391
|
return d.forEach(function(u, l) {
|
|
2392
|
-
var
|
|
2393
|
-
u = e(u), t(u) && typeof
|
|
2392
|
+
var c = a[u];
|
|
2393
|
+
u = e(u), t(u) && typeof c == "number" && (c = c + "px"), c === !0 ? s += u : c === !1 ? s += "not " + u : s += "(" + u + ": " + c + ")", l < d.length - 1 && (s += " and ");
|
|
2394
2394
|
}), s;
|
|
2395
2395
|
}, i = function(a) {
|
|
2396
2396
|
var s = "";
|
|
@@ -2428,7 +2428,7 @@ function ai() {
|
|
|
2428
2428
|
return R;
|
|
2429
2429
|
}, l.apply(null, arguments);
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function c(R, b) {
|
|
2432
2432
|
var h = Object.keys(R);
|
|
2433
2433
|
if (Object.getOwnPropertySymbols) {
|
|
2434
2434
|
var P = Object.getOwnPropertySymbols(R);
|
|
@@ -2441,9 +2441,9 @@ function ai() {
|
|
|
2441
2441
|
function v(R) {
|
|
2442
2442
|
for (var b = 1; b < arguments.length; b++) {
|
|
2443
2443
|
var h = arguments[b] != null ? arguments[b] : {};
|
|
2444
|
-
b % 2 ?
|
|
2444
|
+
b % 2 ? c(Object(h), !0).forEach(function(P) {
|
|
2445
2445
|
g(R, P, h[P]);
|
|
2446
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(h)) :
|
|
2446
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(h)) : c(Object(h)).forEach(function(P) {
|
|
2447
2447
|
Object.defineProperty(R, P, Object.getOwnPropertyDescriptor(h, P));
|
|
2448
2448
|
});
|
|
2449
2449
|
}
|
|
@@ -2612,8 +2612,8 @@ function ai() {
|
|
|
2612
2612
|
}), _.variableWidth && (_.rows > 1 || _.slidesPerRow > 1) && (console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"), _.variableWidth = !1);
|
|
2613
2613
|
for (var j = [], o = null, H = 0; H < E.length; H += _.rows * _.slidesPerRow) {
|
|
2614
2614
|
for (var m = [], n = H; n < H + _.rows * _.slidesPerRow; n += _.slidesPerRow) {
|
|
2615
|
-
for (var
|
|
2616
|
-
|
|
2615
|
+
for (var f = [], O = n; O < n + _.slidesPerRow && (_.variableWidth && E[O].props.style && (o = E[O].props.style.width), !(O >= E.length)); O += 1)
|
|
2616
|
+
f.push(/* @__PURE__ */ t.default.cloneElement(E[O], {
|
|
2617
2617
|
key: 100 * H + 10 * n + O,
|
|
2618
2618
|
tabIndex: -1,
|
|
2619
2619
|
style: {
|
|
@@ -2623,7 +2623,7 @@ function ai() {
|
|
|
2623
2623
|
}));
|
|
2624
2624
|
m.push(/* @__PURE__ */ t.default.createElement("div", {
|
|
2625
2625
|
key: 10 * H + n
|
|
2626
|
-
},
|
|
2626
|
+
}, f));
|
|
2627
2627
|
}
|
|
2628
2628
|
_.variableWidth ? j.push(/* @__PURE__ */ t.default.createElement("div", {
|
|
2629
2629
|
key: H,
|
|
@@ -2866,7 +2866,7 @@ function Ci(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, d, u, l) {
|
|
2869
|
-
for (var
|
|
2869
|
+
for (var c = 0, v = 0, y = d, S = 0, L = 0, k = 0, p = 1, I = 1, C = 1, F = 0, U = "", q = a, g = s, w = i, x = U; I; )
|
|
2870
2870
|
switch (k = F, F = me()) {
|
|
2871
2871
|
// (
|
|
2872
2872
|
case 40:
|
|
@@ -2904,7 +2904,7 @@ function lt(e, t, r, i, a, s, d, u, l) {
|
|
|
2904
2904
|
break;
|
|
2905
2905
|
// {
|
|
2906
2906
|
case 123 * p:
|
|
2907
|
-
u[
|
|
2907
|
+
u[c++] = ye(x) * C;
|
|
2908
2908
|
// } ; \0
|
|
2909
2909
|
case 125 * p:
|
|
2910
2910
|
case 59:
|
|
@@ -2923,7 +2923,7 @@ function lt(e, t, r, i, a, s, d, u, l) {
|
|
|
2923
2923
|
x += ";";
|
|
2924
2924
|
// { rule/at-rule
|
|
2925
2925
|
default:
|
|
2926
|
-
if (it(w = br(x, t, r,
|
|
2926
|
+
if (it(w = br(x, t, r, c, v, a, u, U, q = [], g = [], y), s), F === 123)
|
|
2927
2927
|
if (v === 0)
|
|
2928
2928
|
lt(x, t, w, w, q, s, y, u, g);
|
|
2929
2929
|
else
|
|
@@ -2939,7 +2939,7 @@ function lt(e, t, r, i, a, s, d, u, l) {
|
|
|
2939
2939
|
lt(x, w, w, w, [""], g, 0, u, g);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
|
-
|
|
2942
|
+
c = v = L = 0, p = C = 1, U = x = "", y = d;
|
|
2943
2943
|
break;
|
|
2944
2944
|
// :
|
|
2945
2945
|
case 58:
|
|
@@ -2958,7 +2958,7 @@ function lt(e, t, r, i, a, s, d, u, l) {
|
|
|
2958
2958
|
break;
|
|
2959
2959
|
// ,
|
|
2960
2960
|
case 44:
|
|
2961
|
-
u[
|
|
2961
|
+
u[c++] = (ye(x) - 1) * C, C = 1;
|
|
2962
2962
|
break;
|
|
2963
2963
|
// @
|
|
2964
2964
|
case 64:
|
|
@@ -2971,11 +2971,11 @@ function lt(e, t, r, i, a, s, d, u, l) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
return s;
|
|
2973
2973
|
}
|
|
2974
|
-
function br(e, t, r, i, a, s, d, u, l,
|
|
2974
|
+
function br(e, t, r, i, a, s, d, u, l, c, v) {
|
|
2975
2975
|
for (var y = a - 1, S = a === 0 ? s : [""], L = Xt(S), k = 0, p = 0, I = 0; k < i; ++k)
|
|
2976
2976
|
for (var C = 0, F = qe(e, y + 1, y = pi(p = d[k])), U = e; C < L; ++C)
|
|
2977
2977
|
(U = Br(p > 0 ? S[C] + " " + F : ne(F, /&\f/g, S[C]))) && (l[I++] = U);
|
|
2978
|
-
return xt(e, t, r, a === 0 ? qt : u, l,
|
|
2978
|
+
return xt(e, t, r, a === 0 ? qt : u, l, c, v);
|
|
2979
2979
|
}
|
|
2980
2980
|
function Pi(e, t, r) {
|
|
2981
2981
|
return xt(e, t, r, Vr, wt(bi()), qe(e, 2, -2), 0);
|
|
@@ -3058,9 +3058,9 @@ var Ti = function(t, r, i) {
|
|
|
3058
3058
|
if (i = i.parent, !i) return;
|
|
3059
3059
|
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Sr.get(i)) && !a) {
|
|
3060
3060
|
Sr.set(t, !0);
|
|
3061
|
-
for (var s = [], d = Li(r, s), u = i.props, l = 0,
|
|
3062
|
-
for (var v = 0; v < u.length; v++,
|
|
3063
|
-
t.props[
|
|
3061
|
+
for (var s = [], d = Li(r, s), u = i.props, l = 0, c = 0; l < d.length; l++)
|
|
3062
|
+
for (var v = 0; v < u.length; v++, c++)
|
|
3063
|
+
t.props[c] = s[l] ? d[l].replace(/&\f/g, u[v]) : u[v] + " " + d[l];
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
3066
|
}, Mi = function(t) {
|
|
@@ -3264,11 +3264,11 @@ var $i = function(t, r, i, a) {
|
|
|
3264
3264
|
u.push(p);
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
3267
|
-
var l,
|
|
3267
|
+
var l, c = [Di, Mi];
|
|
3268
3268
|
{
|
|
3269
3269
|
var v, y = [Ei, _i(function(p) {
|
|
3270
3270
|
v.insert(p);
|
|
3271
|
-
})], S = Ri(
|
|
3271
|
+
})], S = Ri(c.concat(a, y)), L = function(I) {
|
|
3272
3272
|
return Te(Ci(I), S);
|
|
3273
3273
|
};
|
|
3274
3274
|
l = function(I, C, F, U) {
|
|
@@ -3443,8 +3443,8 @@ function Xe(e, t, r) {
|
|
|
3443
3443
|
}
|
|
3444
3444
|
case "function": {
|
|
3445
3445
|
if (e !== void 0) {
|
|
3446
|
-
var l = be,
|
|
3447
|
-
return be = l, Xe(e, t,
|
|
3446
|
+
var l = be, c = r(e);
|
|
3447
|
+
return be = l, Xe(e, t, c);
|
|
3448
3448
|
}
|
|
3449
3449
|
break;
|
|
3450
3450
|
}
|
|
@@ -3470,15 +3470,15 @@ function Vi(e, t, r) {
|
|
|
3470
3470
|
for (var l = 0; l < d.length; l++)
|
|
3471
3471
|
xr(d[l]) && (i += Mt(s) + ":" + Or(s, d[l]) + ";");
|
|
3472
3472
|
else {
|
|
3473
|
-
var
|
|
3473
|
+
var c = Xe(e, t, d);
|
|
3474
3474
|
switch (s) {
|
|
3475
3475
|
case "animation":
|
|
3476
3476
|
case "animationName": {
|
|
3477
|
-
i += Mt(s) + ":" +
|
|
3477
|
+
i += Mt(s) + ":" + c + ";";
|
|
3478
3478
|
break;
|
|
3479
3479
|
}
|
|
3480
3480
|
default:
|
|
3481
|
-
i += s + "{" +
|
|
3481
|
+
i += s + "{" + c + "}";
|
|
3482
3482
|
}
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
@@ -3503,9 +3503,9 @@ function qi(e, t, r) {
|
|
|
3503
3503
|
a += l[u];
|
|
3504
3504
|
}
|
|
3505
3505
|
kr.lastIndex = 0;
|
|
3506
|
-
for (var
|
|
3507
|
-
|
|
3508
|
-
var y = Fi(a) +
|
|
3506
|
+
for (var c = "", v; (v = kr.exec(a)) !== null; )
|
|
3507
|
+
c += "-" + v[1];
|
|
3508
|
+
var y = Fi(a) + c;
|
|
3509
3509
|
return {
|
|
3510
3510
|
name: y,
|
|
3511
3511
|
styles: a,
|
|
@@ -3560,7 +3560,7 @@ var Ki = function(t) {
|
|
|
3560
3560
|
}, na = function e(t, r) {
|
|
3561
3561
|
var i = t.__emotion_real === t, a = i && t.__emotion_base || t, s, d;
|
|
3562
3562
|
r !== void 0 && (s = r.label, d = r.target);
|
|
3563
|
-
var u = Pr(t, r, i), l = u || Cr(a),
|
|
3563
|
+
var u = Pr(t, r, i), l = u || Cr(a), c = !l("as");
|
|
3564
3564
|
return function() {
|
|
3565
3565
|
var v = arguments, y = i && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
3566
3566
|
if (s !== void 0 && y.push("label:" + s + ";"), v[0] == null || v[0].raw === void 0)
|
|
@@ -3572,7 +3572,7 @@ var Ki = function(t) {
|
|
|
3572
3572
|
y.push(v[k], S[k]);
|
|
3573
3573
|
}
|
|
3574
3574
|
var p = Ki(function(I, C, F) {
|
|
3575
|
-
var U =
|
|
3575
|
+
var U = c && I.as || a, q = "", g = [], w = I;
|
|
3576
3576
|
if (I.theme == null) {
|
|
3577
3577
|
w = {};
|
|
3578
3578
|
for (var x in I)
|
|
@@ -3582,9 +3582,9 @@ var Ki = function(t) {
|
|
|
3582
3582
|
typeof I.className == "string" ? q = zi(C.registered, g, I.className) : I.className != null && (q = I.className + " ");
|
|
3583
3583
|
var R = qi(y.concat(g), C.registered, w);
|
|
3584
3584
|
q += C.key + "-" + R.name, d !== void 0 && (q += " " + d);
|
|
3585
|
-
var b =
|
|
3585
|
+
var b = c && u === void 0 ? Cr(U) : l, h = {};
|
|
3586
3586
|
for (var P in I)
|
|
3587
|
-
|
|
3587
|
+
c && P === "as" || b(P) && (h[P] = I[P]);
|
|
3588
3588
|
return h.className = q, F && (h.ref = F), /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(ra, {
|
|
3589
3589
|
cache: C,
|
|
3590
3590
|
serialized: R,
|
|
@@ -3848,7 +3848,7 @@ const aa = Ee.div`
|
|
|
3848
3848
|
rows: 1,
|
|
3849
3849
|
...r
|
|
3850
3850
|
};
|
|
3851
|
-
const
|
|
3851
|
+
const c = t.map((y, S) => /* @__PURE__ */ X.jsx(
|
|
3852
3852
|
oa,
|
|
3853
3853
|
{
|
|
3854
3854
|
ref: S === 0 ? u : void 0,
|
|
@@ -3876,7 +3876,7 @@ const aa = Ee.div`
|
|
|
3876
3876
|
};
|
|
3877
3877
|
return V.useEffect(() => {
|
|
3878
3878
|
v();
|
|
3879
|
-
}, [d, u]), /* @__PURE__ */ X.jsx(aa, { ref: d, styles: { ...e }, children:
|
|
3879
|
+
}, [d, u]), /* @__PURE__ */ X.jsx(aa, { ref: d, styles: { ...e }, children: c.length > 0 && /* @__PURE__ */ X.jsx(li, { ...l, slidesToShow: a, children: c }) });
|
|
3880
3880
|
}, ss = ({
|
|
3881
3881
|
name: e,
|
|
3882
3882
|
checked: t,
|
|
@@ -3984,7 +3984,7 @@ const aa = Ee.div`
|
|
|
3984
3984
|
}) => {
|
|
3985
3985
|
const a = V.useRef(!1), s = V.useRef(!1), { pointerPosition: d, isPointerDown: u } = sa(), l = V.useRef({
|
|
3986
3986
|
isDragging: !1
|
|
3987
|
-
}),
|
|
3987
|
+
}), c = V.useCallback(
|
|
3988
3988
|
(k) => {
|
|
3989
3989
|
if (!e || !e.current || !l.current)
|
|
3990
3990
|
return;
|
|
@@ -3995,17 +3995,17 @@ const aa = Ee.div`
|
|
|
3995
3995
|
), v = V.useCallback(
|
|
3996
3996
|
(k) => {
|
|
3997
3997
|
k.preventDefault(), k.stopPropagation(), l.current.isDragging = !0, l.current.startPosY = k.clientY, l.current.startPosX = k.clientX;
|
|
3998
|
-
const p =
|
|
3998
|
+
const p = c({ x: k.clientX, y: k.clientY });
|
|
3999
3999
|
p && (l.current = p, r?.(p));
|
|
4000
4000
|
},
|
|
4001
|
-
[
|
|
4001
|
+
[c]
|
|
4002
4002
|
), y = V.useCallback(
|
|
4003
4003
|
(k) => {
|
|
4004
4004
|
l.current.isDragging = !1;
|
|
4005
|
-
const p =
|
|
4005
|
+
const p = c(d);
|
|
4006
4006
|
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0, l.current = p);
|
|
4007
4007
|
},
|
|
4008
|
-
[
|
|
4008
|
+
[c, d]
|
|
4009
4009
|
), S = V.useCallback(
|
|
4010
4010
|
(k) => {
|
|
4011
4011
|
if (console.debug(
|
|
@@ -4013,10 +4013,10 @@ const aa = Ee.div`
|
|
|
4013
4013
|
l.current.isDragging
|
|
4014
4014
|
), !l.current.isDragging)
|
|
4015
4015
|
return;
|
|
4016
|
-
const p =
|
|
4016
|
+
const p = c(d);
|
|
4017
4017
|
console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p), l.current = p);
|
|
4018
4018
|
},
|
|
4019
|
-
[
|
|
4019
|
+
[c, d]
|
|
4020
4020
|
), L = V.useCallback(async () => {
|
|
4021
4021
|
if (!a.current) {
|
|
4022
4022
|
for (; !e?.current; )
|
|
@@ -4032,11 +4032,11 @@ const aa = Ee.div`
|
|
|
4032
4032
|
u !== s.current && (s.current = u, u || y());
|
|
4033
4033
|
}, [u, s.current]);
|
|
4034
4034
|
}, us = () => {
|
|
4035
|
-
const e = (l,
|
|
4036
|
-
if (!
|
|
4035
|
+
const e = (l, c) => {
|
|
4036
|
+
if (!c) return l;
|
|
4037
4037
|
const v = new URLSearchParams();
|
|
4038
|
-
for (const S in
|
|
4039
|
-
const L =
|
|
4038
|
+
for (const S in c) {
|
|
4039
|
+
const L = c[S];
|
|
4040
4040
|
Array.isArray(L) ? L.forEach((k) => v.append(S, String(k))) : L != null && v.append(S, String(L));
|
|
4041
4041
|
}
|
|
4042
4042
|
const y = v.toString();
|
|
@@ -4047,46 +4047,46 @@ const aa = Ee.div`
|
|
|
4047
4047
|
result: await l.json(),
|
|
4048
4048
|
statusCode: l.status
|
|
4049
4049
|
};
|
|
4050
|
-
} catch (
|
|
4050
|
+
} catch (c) {
|
|
4051
4051
|
return {
|
|
4052
4052
|
result: void 0,
|
|
4053
4053
|
statusCode: l.status,
|
|
4054
|
-
error:
|
|
4054
|
+
error: c
|
|
4055
4055
|
};
|
|
4056
4056
|
}
|
|
4057
|
-
}, r = async (l,
|
|
4057
|
+
}, r = async (l, c, v, y) => {
|
|
4058
4058
|
const S = await fetch(l, {
|
|
4059
|
-
method:
|
|
4059
|
+
method: c,
|
|
4060
4060
|
headers: v,
|
|
4061
4061
|
body: y
|
|
4062
4062
|
});
|
|
4063
4063
|
return t(S);
|
|
4064
4064
|
};
|
|
4065
4065
|
return {
|
|
4066
|
-
get: async (l,
|
|
4067
|
-
const y = e(l,
|
|
4066
|
+
get: async (l, c, v) => {
|
|
4067
|
+
const y = e(l, c);
|
|
4068
4068
|
return r(y, "GET", { ...v });
|
|
4069
4069
|
},
|
|
4070
|
-
post: async (l,
|
|
4070
|
+
post: async (l, c, v) => r(
|
|
4071
4071
|
l,
|
|
4072
4072
|
"POST",
|
|
4073
4073
|
{ "Content-Type": "application/json", ...v },
|
|
4074
|
-
JSON.stringify(
|
|
4074
|
+
JSON.stringify(c)
|
|
4075
4075
|
),
|
|
4076
|
-
put: async (l,
|
|
4076
|
+
put: async (l, c, v) => r(
|
|
4077
4077
|
l,
|
|
4078
4078
|
"PUT",
|
|
4079
4079
|
{ "Content-Type": "application/json", ...v },
|
|
4080
|
-
JSON.stringify(
|
|
4080
|
+
JSON.stringify(c)
|
|
4081
4081
|
),
|
|
4082
|
-
patch: async (l,
|
|
4082
|
+
patch: async (l, c, v) => r(
|
|
4083
4083
|
l,
|
|
4084
4084
|
"PATCH",
|
|
4085
4085
|
{ "Content-Type": "application/json", ...v },
|
|
4086
|
-
JSON.stringify(
|
|
4086
|
+
JSON.stringify(c)
|
|
4087
4087
|
),
|
|
4088
|
-
delete: async (l,
|
|
4089
|
-
const y = e(l,
|
|
4088
|
+
delete: async (l, c, v) => {
|
|
4089
|
+
const y = e(l, c);
|
|
4090
4090
|
return r(y, "DELETE", { ...v });
|
|
4091
4091
|
}
|
|
4092
4092
|
};
|
|
@@ -4129,8 +4129,8 @@ const ua = {
|
|
|
4129
4129
|
let u = s[r];
|
|
4130
4130
|
if (u)
|
|
4131
4131
|
return d && Object.keys(d).forEach((l) => {
|
|
4132
|
-
const
|
|
4133
|
-
u = u.replaceAll(`{{${l}}}`, `${
|
|
4132
|
+
const c = d[l];
|
|
4133
|
+
u = u.replaceAll(`{{${l}}}`, `${c}`);
|
|
4134
4134
|
}), u;
|
|
4135
4135
|
};
|
|
4136
4136
|
return {
|
|
@@ -4147,7 +4147,7 @@ const ua = {
|
|
|
4147
4147
|
var Ye = {}, Rr;
|
|
4148
4148
|
function da() {
|
|
4149
4149
|
if (Rr) return Ye;
|
|
4150
|
-
Rr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.parse = d, Ye.serialize =
|
|
4150
|
+
Rr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.parse = d, Ye.serialize = c;
|
|
4151
4151
|
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, i = /^[\u0020-\u003A\u003D-\u007E]*$/, a = Object.prototype.toString, s = /* @__PURE__ */ (() => {
|
|
4152
4152
|
const S = function() {
|
|
4153
4153
|
};
|
|
@@ -4194,7 +4194,7 @@ function da() {
|
|
|
4194
4194
|
}
|
|
4195
4195
|
return k;
|
|
4196
4196
|
}
|
|
4197
|
-
function
|
|
4197
|
+
function c(S, L, k) {
|
|
4198
4198
|
const p = k?.encode || encodeURIComponent;
|
|
4199
4199
|
if (!e.test(S))
|
|
4200
4200
|
throw new TypeError(`argument name is invalid: ${S}`);
|
|
@@ -4357,21 +4357,21 @@ function Me(e) {
|
|
|
4357
4357
|
return t;
|
|
4358
4358
|
}
|
|
4359
4359
|
function ma(e, t, r, i = {}) {
|
|
4360
|
-
let { window: a = document.defaultView, v5Compat: s = !1 } = i, d = a.history, u = "POP", l = null,
|
|
4361
|
-
|
|
4360
|
+
let { window: a = document.defaultView, v5Compat: s = !1 } = i, d = a.history, u = "POP", l = null, c = v();
|
|
4361
|
+
c == null && (c = 0, d.replaceState({ ...d.state, idx: c }, ""));
|
|
4362
4362
|
function v() {
|
|
4363
4363
|
return (d.state || { idx: null }).idx;
|
|
4364
4364
|
}
|
|
4365
4365
|
function y() {
|
|
4366
4366
|
u = "POP";
|
|
4367
|
-
let I = v(), C = I == null ? null : I -
|
|
4368
|
-
|
|
4367
|
+
let I = v(), C = I == null ? null : I - c;
|
|
4368
|
+
c = I, l && l({ action: u, location: p.location, delta: C });
|
|
4369
4369
|
}
|
|
4370
4370
|
function S(I, C) {
|
|
4371
4371
|
u = "PUSH";
|
|
4372
4372
|
let F = Ft(p.location, I, C);
|
|
4373
|
-
|
|
4374
|
-
let U = Tr(F,
|
|
4373
|
+
c = v() + 1;
|
|
4374
|
+
let U = Tr(F, c), q = p.createHref(F);
|
|
4375
4375
|
try {
|
|
4376
4376
|
d.pushState(U, "", q);
|
|
4377
4377
|
} catch (g) {
|
|
@@ -4384,8 +4384,8 @@ function ma(e, t, r, i = {}) {
|
|
|
4384
4384
|
function L(I, C) {
|
|
4385
4385
|
u = "REPLACE";
|
|
4386
4386
|
let F = Ft(p.location, I, C);
|
|
4387
|
-
|
|
4388
|
-
let U = Tr(F,
|
|
4387
|
+
c = v();
|
|
4388
|
+
let U = Tr(F, c), q = p.createHref(F);
|
|
4389
4389
|
d.replaceState(U, "", q), s && l && l({ action: u, location: p.location, delta: 0 });
|
|
4390
4390
|
}
|
|
4391
4391
|
function k(I) {
|
|
@@ -4442,10 +4442,10 @@ function ga(e, t, r, i) {
|
|
|
4442
4442
|
ya(d);
|
|
4443
4443
|
let u = null;
|
|
4444
4444
|
for (let l = 0; u == null && l < d.length; ++l) {
|
|
4445
|
-
let
|
|
4445
|
+
let c = _a(s);
|
|
4446
4446
|
u = Ea(
|
|
4447
4447
|
d[l],
|
|
4448
|
-
|
|
4448
|
+
c,
|
|
4449
4449
|
i
|
|
4450
4450
|
);
|
|
4451
4451
|
}
|
|
@@ -4463,15 +4463,15 @@ function nn(e, t = [], r = [], i = "") {
|
|
|
4463
4463
|
l.relativePath.startsWith(i),
|
|
4464
4464
|
`Absolute route path "${l.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
4465
4465
|
), l.relativePath = l.relativePath.slice(i.length));
|
|
4466
|
-
let
|
|
4466
|
+
let c = xe([i, l.relativePath]), v = r.concat(l);
|
|
4467
4467
|
s.children && s.children.length > 0 && (ae(
|
|
4468
4468
|
// Our types know better, but runtime JS may not!
|
|
4469
4469
|
// @ts-expect-error
|
|
4470
4470
|
s.index !== !0,
|
|
4471
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${
|
|
4472
|
-
), nn(s.children, t, v,
|
|
4473
|
-
path:
|
|
4474
|
-
score: Ca(
|
|
4471
|
+
`Index routes must not have child routes. Please remove all child routes from route path "${c}".`
|
|
4472
|
+
), nn(s.children, t, v, c)), !(s.path == null && !s.index) && t.push({
|
|
4473
|
+
path: c,
|
|
4474
|
+
score: Ca(c, s.index),
|
|
4475
4475
|
routesMeta: v
|
|
4476
4476
|
});
|
|
4477
4477
|
};
|
|
@@ -4530,11 +4530,11 @@ function Pa(e, t) {
|
|
|
4530
4530
|
function Ea(e, t, r = !1) {
|
|
4531
4531
|
let { routesMeta: i } = e, a = {}, s = "/", d = [];
|
|
4532
4532
|
for (let u = 0; u < i.length; ++u) {
|
|
4533
|
-
let l = i[u],
|
|
4534
|
-
{ path: l.relativePath, caseSensitive: l.caseSensitive, end:
|
|
4533
|
+
let l = i[u], c = u === i.length - 1, v = s === "/" ? t : t.slice(s.length) || "/", y = gt(
|
|
4534
|
+
{ path: l.relativePath, caseSensitive: l.caseSensitive, end: c },
|
|
4535
4535
|
v
|
|
4536
4536
|
), S = l.route;
|
|
4537
|
-
if (!y &&
|
|
4537
|
+
if (!y && c && r && !i[i.length - 1].route.index && (y = gt(
|
|
4538
4538
|
{
|
|
4539
4539
|
path: l.relativePath,
|
|
4540
4540
|
caseSensitive: l.caseSensitive,
|
|
@@ -4566,13 +4566,13 @@ function gt(e, t) {
|
|
|
4566
4566
|
let s = a[0], d = s.replace(/(.)\/+$/, "$1"), u = a.slice(1);
|
|
4567
4567
|
return {
|
|
4568
4568
|
params: i.reduce(
|
|
4569
|
-
(
|
|
4569
|
+
(c, { paramName: v, isOptional: y }, S) => {
|
|
4570
4570
|
if (v === "*") {
|
|
4571
4571
|
let k = u[S] || "";
|
|
4572
4572
|
d = s.slice(0, s.length - k.length).replace(/(.)\/+$/, "$1");
|
|
4573
4573
|
}
|
|
4574
4574
|
const L = u[S];
|
|
4575
|
-
return y && !L ?
|
|
4575
|
+
return y && !L ? c[v] = void 0 : c[v] = (L || "").replace(/%2F/g, "/"), c;
|
|
4576
4576
|
},
|
|
4577
4577
|
{}
|
|
4578
4578
|
),
|
|
@@ -4668,8 +4668,8 @@ function sn(e, t, r, i = !1) {
|
|
|
4668
4668
|
}
|
|
4669
4669
|
u = y >= 0 ? t[y] : "/";
|
|
4670
4670
|
}
|
|
4671
|
-
let l = Ta(a, u),
|
|
4672
|
-
return !l.pathname.endsWith("/") && (
|
|
4671
|
+
let l = Ta(a, u), c = d && d !== "/" && d.endsWith("/"), v = (s || d === ".") && r.endsWith("/");
|
|
4672
|
+
return !l.pathname.endsWith("/") && (c || v) && (l.pathname += "/"), l;
|
|
4673
4673
|
}
|
|
4674
4674
|
var xe = (e) => e.join("/").replace(/\/\/+/g, "/"), Da = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ma = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, $a = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
4675
4675
|
function Ia(e) {
|
|
@@ -4759,7 +4759,7 @@ function Fa() {
|
|
|
4759
4759
|
return fn(() => {
|
|
4760
4760
|
d.current = !0;
|
|
4761
4761
|
}), M.useCallback(
|
|
4762
|
-
(l,
|
|
4762
|
+
(l, c = {}) => {
|
|
4763
4763
|
if (ge(d.current, cn), !d.current) return;
|
|
4764
4764
|
if (typeof l == "number") {
|
|
4765
4765
|
r.go(l);
|
|
@@ -4769,12 +4769,12 @@ function Fa() {
|
|
|
4769
4769
|
l,
|
|
4770
4770
|
JSON.parse(s),
|
|
4771
4771
|
a,
|
|
4772
|
-
|
|
4772
|
+
c.relative === "path"
|
|
4773
4773
|
);
|
|
4774
|
-
e == null && t !== "/" && (v.pathname = v.pathname === "/" ? t : xe([t, v.pathname])), (
|
|
4774
|
+
e == null && t !== "/" && (v.pathname = v.pathname === "/" ? t : xe([t, v.pathname])), (c.replace ? r.replace : r.push)(
|
|
4775
4775
|
v,
|
|
4776
|
-
|
|
4777
|
-
|
|
4776
|
+
c.state,
|
|
4777
|
+
c
|
|
4778
4778
|
);
|
|
4779
4779
|
},
|
|
4780
4780
|
[
|
|
@@ -4809,7 +4809,7 @@ function dn(e, t, r, i) {
|
|
|
4809
4809
|
// router loaded. We can help them understand how to avoid that.
|
|
4810
4810
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
4811
4811
|
);
|
|
4812
|
-
let { navigator: a } = M.useContext(Se), { matches: s } = M.useContext(ke), d = s[s.length - 1], u = d ? d.params : {}, l = d ? d.pathname : "/",
|
|
4812
|
+
let { navigator: a } = M.useContext(Se), { matches: s } = M.useContext(ke), d = s[s.length - 1], u = d ? d.params : {}, l = d ? d.pathname : "/", c = d ? d.pathnameBase : "/", v = d && d.route;
|
|
4813
4813
|
{
|
|
4814
4814
|
let C = v && v.path || "";
|
|
4815
4815
|
hn(
|
|
@@ -4824,14 +4824,14 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4824
4824
|
if (t) {
|
|
4825
4825
|
let C = typeof t == "string" ? Me(t) : t;
|
|
4826
4826
|
ae(
|
|
4827
|
-
|
|
4828
|
-
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${
|
|
4827
|
+
c === "/" || C.pathname?.startsWith(c),
|
|
4828
|
+
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${C.pathname}" was given in the \`location\` prop.`
|
|
4829
4829
|
), S = C;
|
|
4830
4830
|
} else
|
|
4831
4831
|
S = y;
|
|
4832
4832
|
let L = S.pathname || "/", k = L;
|
|
4833
|
-
if (
|
|
4834
|
-
let C =
|
|
4833
|
+
if (c !== "/") {
|
|
4834
|
+
let C = c.replace(/^\//, "").split("/");
|
|
4835
4835
|
k = "/" + L.replace(/^\//, "").split("/").slice(C.length).join("/");
|
|
4836
4836
|
}
|
|
4837
4837
|
let p = rn(e, { pathname: k });
|
|
@@ -4847,12 +4847,12 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4847
4847
|
(C) => Object.assign({}, C, {
|
|
4848
4848
|
params: Object.assign({}, u, C.params),
|
|
4849
4849
|
pathname: xe([
|
|
4850
|
-
|
|
4850
|
+
c,
|
|
4851
4851
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
4852
4852
|
a.encodeLocation ? a.encodeLocation(C.pathname).pathname : C.pathname
|
|
4853
4853
|
]),
|
|
4854
|
-
pathnameBase: C.pathnameBase === "/" ?
|
|
4855
|
-
|
|
4854
|
+
pathnameBase: C.pathnameBase === "/" ? c : xe([
|
|
4855
|
+
c,
|
|
4856
4856
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
4857
4857
|
a.encodeLocation ? a.encodeLocation(C.pathnameBase).pathname : C.pathnameBase
|
|
4858
4858
|
])
|
|
@@ -4945,7 +4945,7 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4945
4945
|
let a = e, s = r?.errors;
|
|
4946
4946
|
if (s != null) {
|
|
4947
4947
|
let l = a.findIndex(
|
|
4948
|
-
(
|
|
4948
|
+
(c) => c.route.id && s?.[c.route.id] !== void 0
|
|
4949
4949
|
);
|
|
4950
4950
|
ae(
|
|
4951
4951
|
l >= 0,
|
|
@@ -4960,28 +4960,28 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4960
4960
|
let d = !1, u = -1;
|
|
4961
4961
|
if (r)
|
|
4962
4962
|
for (let l = 0; l < a.length; l++) {
|
|
4963
|
-
let
|
|
4964
|
-
if ((
|
|
4965
|
-
let { loaderData: v, errors: y } = r, S =
|
|
4966
|
-
if (
|
|
4963
|
+
let c = a[l];
|
|
4964
|
+
if ((c.route.HydrateFallback || c.route.hydrateFallbackElement) && (u = l), c.route.id) {
|
|
4965
|
+
let { loaderData: v, errors: y } = r, S = c.route.loader && !v.hasOwnProperty(c.route.id) && (!y || y[c.route.id] === void 0);
|
|
4966
|
+
if (c.route.lazy || S) {
|
|
4967
4967
|
d = !0, u >= 0 ? a = a.slice(0, u + 1) : a = [a[0]];
|
|
4968
4968
|
break;
|
|
4969
4969
|
}
|
|
4970
4970
|
}
|
|
4971
4971
|
}
|
|
4972
|
-
return a.reduceRight((l,
|
|
4972
|
+
return a.reduceRight((l, c, v) => {
|
|
4973
4973
|
let y, S = !1, L = null, k = null;
|
|
4974
|
-
r && (y = s &&
|
|
4974
|
+
r && (y = s && c.route.id ? s[c.route.id] : void 0, L = c.route.errorElement || Ya, d && (u < 0 && v === 0 ? (hn(
|
|
4975
4975
|
"route-fallback",
|
|
4976
4976
|
!1,
|
|
4977
4977
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
4978
|
-
), S = !0, k = null) : u === v && (S = !0, k =
|
|
4978
|
+
), S = !0, k = null) : u === v && (S = !0, k = c.route.hydrateFallbackElement || null)));
|
|
4979
4979
|
let p = t.concat(a.slice(0, v + 1)), I = () => {
|
|
4980
4980
|
let C;
|
|
4981
|
-
return y ? C = L : S ? C = k :
|
|
4981
|
+
return y ? C = L : S ? C = k : c.route.Component ? C = /* @__PURE__ */ M.createElement(c.route.Component, null) : c.route.element ? C = c.route.element : C = l, /* @__PURE__ */ M.createElement(
|
|
4982
4982
|
qa,
|
|
4983
4983
|
{
|
|
4984
|
-
match:
|
|
4984
|
+
match: c,
|
|
4985
4985
|
routeContext: {
|
|
4986
4986
|
outlet: l,
|
|
4987
4987
|
matches: p,
|
|
@@ -4991,7 +4991,7 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4991
4991
|
}
|
|
4992
4992
|
);
|
|
4993
4993
|
};
|
|
4994
|
-
return r && (
|
|
4994
|
+
return r && (c.route.ErrorBoundary || c.route.errorElement || v === 0) ? /* @__PURE__ */ M.createElement(
|
|
4995
4995
|
Va,
|
|
4996
4996
|
{
|
|
4997
4997
|
location: r.location,
|
|
@@ -5101,7 +5101,7 @@ function to({
|
|
|
5101
5101
|
typeof r == "string" && (r = Me(r));
|
|
5102
5102
|
let {
|
|
5103
5103
|
pathname: l = "/",
|
|
5104
|
-
search:
|
|
5104
|
+
search: c = "",
|
|
5105
5105
|
hash: v = "",
|
|
5106
5106
|
state: y = null,
|
|
5107
5107
|
key: S = "default"
|
|
@@ -5110,17 +5110,17 @@ function to({
|
|
|
5110
5110
|
return k == null ? null : {
|
|
5111
5111
|
location: {
|
|
5112
5112
|
pathname: k,
|
|
5113
|
-
search:
|
|
5113
|
+
search: c,
|
|
5114
5114
|
hash: v,
|
|
5115
5115
|
state: y,
|
|
5116
5116
|
key: S
|
|
5117
5117
|
},
|
|
5118
5118
|
navigationType: i
|
|
5119
5119
|
};
|
|
5120
|
-
}, [d, l,
|
|
5120
|
+
}, [d, l, c, v, y, S, i]);
|
|
5121
5121
|
return ge(
|
|
5122
5122
|
L != null,
|
|
5123
|
-
`<Router basename="${d}"> is not able to match the URL "${l}${
|
|
5123
|
+
`<Router basename="${d}"> is not able to match the URL "${l}${c}${v}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
5124
5124
|
), L == null ? null : /* @__PURE__ */ M.createElement(Se.Provider, { value: u }, /* @__PURE__ */ M.createElement(Ze.Provider, { children: t, value: L }));
|
|
5125
5125
|
}
|
|
5126
5126
|
function ro({
|
|
@@ -5250,11 +5250,11 @@ function fo(e, t) {
|
|
|
5250
5250
|
);
|
|
5251
5251
|
let l = e.getAttribute("formaction") || u.getAttribute("action");
|
|
5252
5252
|
if (i = l ? Oe(l, t) : null, r = e.getAttribute("formmethod") || u.getAttribute("method") || ut, a = It(e.getAttribute("formenctype")) || It(u.getAttribute("enctype")) || ct, s = new FormData(u, e), !uo()) {
|
|
5253
|
-
let { name:
|
|
5253
|
+
let { name: c, type: v, value: y } = e;
|
|
5254
5254
|
if (v === "image") {
|
|
5255
|
-
let S =
|
|
5255
|
+
let S = c ? `${c}.` : "";
|
|
5256
5256
|
s.append(`${S}x`, "0"), s.append(`${S}y`, "0");
|
|
5257
|
-
} else
|
|
5257
|
+
} else c && s.append(c, y);
|
|
5258
5258
|
}
|
|
5259
5259
|
} else {
|
|
5260
5260
|
if (kt(e))
|
|
@@ -5307,19 +5307,19 @@ async function mo(e, t, r) {
|
|
|
5307
5307
|
);
|
|
5308
5308
|
}
|
|
5309
5309
|
function Dr(e, t, r, i, a, s) {
|
|
5310
|
-
let d = (l,
|
|
5310
|
+
let d = (l, c) => r[c] ? l.route.id !== r[c].route.id : !0, u = (l, c) => (
|
|
5311
5311
|
// param change, /users/123 -> /users/456
|
|
5312
|
-
r[
|
|
5312
|
+
r[c].pathname !== l.pathname || // splat param changed, which is not present in match.path
|
|
5313
5313
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
5314
|
-
r[
|
|
5314
|
+
r[c].route.path?.endsWith("*") && r[c].params["*"] !== l.params["*"]
|
|
5315
5315
|
);
|
|
5316
5316
|
return s === "assets" ? t.filter(
|
|
5317
|
-
(l,
|
|
5318
|
-
) : s === "data" ? t.filter((l,
|
|
5317
|
+
(l, c) => d(l, c) || u(l, c)
|
|
5318
|
+
) : s === "data" ? t.filter((l, c) => {
|
|
5319
5319
|
let v = i.routes[l.route.id];
|
|
5320
5320
|
if (!v || !v.hasLoader)
|
|
5321
5321
|
return !1;
|
|
5322
|
-
if (d(l,
|
|
5322
|
+
if (d(l, c) || u(l, c))
|
|
5323
5323
|
return !0;
|
|
5324
5324
|
if (l.route.shouldRevalidate) {
|
|
5325
5325
|
let y = l.route.shouldRevalidate({
|
|
@@ -5399,7 +5399,7 @@ function vn() {
|
|
|
5399
5399
|
), e;
|
|
5400
5400
|
}
|
|
5401
5401
|
function Oo(e, t) {
|
|
5402
|
-
let r = M.useContext(er), [i, a] = M.useState(!1), [s, d] = M.useState(!1), { onFocus: u, onBlur: l, onMouseEnter:
|
|
5402
|
+
let r = M.useContext(er), [i, a] = M.useState(!1), [s, d] = M.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: c, onMouseLeave: v, onTouchStart: y } = t, S = M.useRef(null);
|
|
5403
5403
|
M.useEffect(() => {
|
|
5404
5404
|
if (e === "render" && d(!0), e === "viewport") {
|
|
5405
5405
|
let p = (C) => {
|
|
@@ -5432,7 +5432,7 @@ function Oo(e, t) {
|
|
|
5432
5432
|
{
|
|
5433
5433
|
onFocus: Ve(u, L),
|
|
5434
5434
|
onBlur: Ve(l, k),
|
|
5435
|
-
onMouseEnter: Ve(
|
|
5435
|
+
onMouseEnter: Ve(c, L),
|
|
5436
5436
|
onMouseLeave: Ve(v, k),
|
|
5437
5437
|
onTouchStart: Ve(y, L)
|
|
5438
5438
|
}
|
|
@@ -5471,7 +5471,7 @@ function Po({
|
|
|
5471
5471
|
matches: t,
|
|
5472
5472
|
...r
|
|
5473
5473
|
}) {
|
|
5474
|
-
let i = Ce(), { manifest: a, routeModules: s } = vn(), { basename: d } = mn(), { loaderData: u, matches: l } = xo(),
|
|
5474
|
+
let i = Ce(), { manifest: a, routeModules: s } = vn(), { basename: d } = mn(), { loaderData: u, matches: l } = xo(), c = M.useMemo(
|
|
5475
5475
|
() => Dr(
|
|
5476
5476
|
e,
|
|
5477
5477
|
t,
|
|
@@ -5497,7 +5497,7 @@ function Po({
|
|
|
5497
5497
|
let k = /* @__PURE__ */ new Set(), p = !1;
|
|
5498
5498
|
if (t.forEach((C) => {
|
|
5499
5499
|
let F = a.routes[C.route.id];
|
|
5500
|
-
!F || !F.hasLoader || (!
|
|
5500
|
+
!F || !F.hasLoader || (!c.some((U) => U.route.id === C.route.id) && C.route.id in u && s[C.route.id]?.shouldRevalidate || F.hasClientLoader ? p = !0 : k.add(C.route.id));
|
|
5501
5501
|
}), k.size === 0)
|
|
5502
5502
|
return [];
|
|
5503
5503
|
let I = So(e, d);
|
|
@@ -5510,7 +5510,7 @@ function Po({
|
|
|
5510
5510
|
u,
|
|
5511
5511
|
i,
|
|
5512
5512
|
a,
|
|
5513
|
-
|
|
5513
|
+
c,
|
|
5514
5514
|
t,
|
|
5515
5515
|
e,
|
|
5516
5516
|
s
|
|
@@ -5573,26 +5573,26 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5573
5573
|
replace: d,
|
|
5574
5574
|
state: u,
|
|
5575
5575
|
target: l,
|
|
5576
|
-
to:
|
|
5576
|
+
to: c,
|
|
5577
5577
|
preventScrollReset: v,
|
|
5578
5578
|
viewTransition: y,
|
|
5579
5579
|
...S
|
|
5580
5580
|
}, L) {
|
|
5581
|
-
let { basename: k } = M.useContext(Se), p = typeof
|
|
5582
|
-
if (typeof
|
|
5581
|
+
let { basename: k } = M.useContext(Se), p = typeof c == "string" && yn.test(c), I, C = !1;
|
|
5582
|
+
if (typeof c == "string" && p && (I = c, gn))
|
|
5583
5583
|
try {
|
|
5584
|
-
let b = new URL(window.location.href), h =
|
|
5585
|
-
h.origin === b.origin && P != null ?
|
|
5584
|
+
let b = new URL(window.location.href), h = c.startsWith("//") ? new URL(b.protocol + c) : new URL(c), P = Oe(h.pathname, k);
|
|
5585
|
+
h.origin === b.origin && P != null ? c = P + h.search + h.hash : C = !0;
|
|
5586
5586
|
} catch {
|
|
5587
5587
|
ge(
|
|
5588
5588
|
!1,
|
|
5589
|
-
`<Link to="${
|
|
5589
|
+
`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
5590
5590
|
);
|
|
5591
5591
|
}
|
|
5592
|
-
let F = Na(
|
|
5592
|
+
let F = Na(c, { relative: a }), [U, q, g] = Oo(
|
|
5593
5593
|
i,
|
|
5594
5594
|
S
|
|
5595
|
-
), w = Lo(
|
|
5595
|
+
), w = Lo(c, {
|
|
5596
5596
|
replace: d,
|
|
5597
5597
|
state: u,
|
|
5598
5598
|
target: l,
|
|
@@ -5632,9 +5632,9 @@ var _o = M.forwardRef(
|
|
|
5632
5632
|
to: d,
|
|
5633
5633
|
viewTransition: u,
|
|
5634
5634
|
children: l,
|
|
5635
|
-
...
|
|
5635
|
+
...c
|
|
5636
5636
|
}, v) {
|
|
5637
|
-
let y = et(d, { relative:
|
|
5637
|
+
let y = et(d, { relative: c.relative }), S = Ce(), L = M.useContext(Ot), { navigator: k, basename: p } = M.useContext(Se), I = L != null && // Conditional usage is OK here because the usage of a data router is static
|
|
5638
5638
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5639
5639
|
Ho(y) && u === !0, C = k.encodeLocation ? k.encodeLocation(y).pathname : y.pathname, F = S.pathname, U = L && L.navigation && L.navigation.location ? L.navigation.location.pathname : null;
|
|
5640
5640
|
r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, C = C.toLowerCase()), U && p && (U = Oe(U, p) || U);
|
|
@@ -5654,7 +5654,7 @@ var _o = M.forwardRef(
|
|
|
5654
5654
|
return /* @__PURE__ */ M.createElement(
|
|
5655
5655
|
bn,
|
|
5656
5656
|
{
|
|
5657
|
-
...
|
|
5657
|
+
...c,
|
|
5658
5658
|
"aria-current": R,
|
|
5659
5659
|
className: b,
|
|
5660
5660
|
ref: v,
|
|
@@ -5678,12 +5678,12 @@ var To = M.forwardRef(
|
|
|
5678
5678
|
method: d = ut,
|
|
5679
5679
|
action: u,
|
|
5680
5680
|
onSubmit: l,
|
|
5681
|
-
relative:
|
|
5681
|
+
relative: c,
|
|
5682
5682
|
preventScrollReset: v,
|
|
5683
5683
|
viewTransition: y,
|
|
5684
5684
|
...S
|
|
5685
5685
|
}, L) => {
|
|
5686
|
-
let k = Io(), p = Ao(u, { relative:
|
|
5686
|
+
let k = Io(), p = Ao(u, { relative: c }), I = d.toLowerCase() === "get" ? "get" : "post", C = typeof u == "string" && yn.test(u), F = (U) => {
|
|
5687
5687
|
if (l && l(U), U.defaultPrevented) return;
|
|
5688
5688
|
U.preventDefault();
|
|
5689
5689
|
let q = U.nativeEvent.submitter, g = q?.getAttribute("formmethod") || d;
|
|
@@ -5693,7 +5693,7 @@ var To = M.forwardRef(
|
|
|
5693
5693
|
navigate: r,
|
|
5694
5694
|
replace: a,
|
|
5695
5695
|
state: s,
|
|
5696
|
-
relative:
|
|
5696
|
+
relative: c,
|
|
5697
5697
|
preventScrollReset: v,
|
|
5698
5698
|
viewTransition: y
|
|
5699
5699
|
});
|
|
@@ -5727,12 +5727,12 @@ function Lo(e, {
|
|
|
5727
5727
|
relative: s,
|
|
5728
5728
|
viewTransition: d
|
|
5729
5729
|
} = {}) {
|
|
5730
|
-
let u = Kt(), l = Ce(),
|
|
5730
|
+
let u = Kt(), l = Ce(), c = et(e, { relative: s });
|
|
5731
5731
|
return M.useCallback(
|
|
5732
5732
|
(v) => {
|
|
5733
5733
|
if (so(v, t)) {
|
|
5734
5734
|
v.preventDefault();
|
|
5735
|
-
let y = r !== void 0 ? r : Ge(l) === Ge(
|
|
5735
|
+
let y = r !== void 0 ? r : Ge(l) === Ge(c);
|
|
5736
5736
|
u(e, {
|
|
5737
5737
|
replace: y,
|
|
5738
5738
|
state: i,
|
|
@@ -5745,7 +5745,7 @@ function Lo(e, {
|
|
|
5745
5745
|
[
|
|
5746
5746
|
l,
|
|
5747
5747
|
u,
|
|
5748
|
-
|
|
5748
|
+
c,
|
|
5749
5749
|
r,
|
|
5750
5750
|
i,
|
|
5751
5751
|
t,
|
|
@@ -5774,10 +5774,10 @@ function Do(e) {
|
|
|
5774
5774
|
[i.search]
|
|
5775
5775
|
), s = Kt(), d = M.useCallback(
|
|
5776
5776
|
(u, l) => {
|
|
5777
|
-
const
|
|
5777
|
+
const c = Ut(
|
|
5778
5778
|
typeof u == "function" ? u(a) : u
|
|
5779
5779
|
);
|
|
5780
|
-
r.current = !0, s("?" +
|
|
5780
|
+
r.current = !0, s("?" + c, l);
|
|
5781
5781
|
},
|
|
5782
5782
|
[s, a]
|
|
5783
5783
|
);
|
|
@@ -5791,7 +5791,7 @@ function Io() {
|
|
|
5791
5791
|
), { basename: t } = M.useContext(Se), r = Ja();
|
|
5792
5792
|
return M.useCallback(
|
|
5793
5793
|
async (i, a = {}) => {
|
|
5794
|
-
let { action: s, method: d, encType: u, formData: l, body:
|
|
5794
|
+
let { action: s, method: d, encType: u, formData: l, body: c } = fo(
|
|
5795
5795
|
i,
|
|
5796
5796
|
t
|
|
5797
5797
|
);
|
|
@@ -5800,7 +5800,7 @@ function Io() {
|
|
|
5800
5800
|
await e.fetch(v, r, a.action || s, {
|
|
5801
5801
|
preventScrollReset: a.preventScrollReset,
|
|
5802
5802
|
formData: l,
|
|
5803
|
-
body:
|
|
5803
|
+
body: c,
|
|
5804
5804
|
formMethod: a.method || d,
|
|
5805
5805
|
formEncType: a.encType || u,
|
|
5806
5806
|
flushSync: a.flushSync
|
|
@@ -5809,7 +5809,7 @@ function Io() {
|
|
|
5809
5809
|
await e.navigate(a.action || s, {
|
|
5810
5810
|
preventScrollReset: a.preventScrollReset,
|
|
5811
5811
|
formData: l,
|
|
5812
|
-
body:
|
|
5812
|
+
body: c,
|
|
5813
5813
|
formMethod: a.method || d,
|
|
5814
5814
|
formEncType: a.encType || u,
|
|
5815
5815
|
replace: a.replace,
|
|
@@ -5904,7 +5904,7 @@ const Sn = V.createContext({
|
|
|
5904
5904
|
});
|
|
5905
5905
|
},
|
|
5906
5906
|
[t]
|
|
5907
|
-
),
|
|
5907
|
+
), c = ve(
|
|
5908
5908
|
(v) => {
|
|
5909
5909
|
t((y) => {
|
|
5910
5910
|
const S = new URLSearchParams(y);
|
|
@@ -5920,36 +5920,39 @@ const Sn = V.createContext({
|
|
|
5920
5920
|
get: a,
|
|
5921
5921
|
getMany: i,
|
|
5922
5922
|
set: l,
|
|
5923
|
-
setMany:
|
|
5923
|
+
setMany: c,
|
|
5924
5924
|
remove: s,
|
|
5925
5925
|
removeMany: d,
|
|
5926
5926
|
removeAll: u
|
|
5927
5927
|
};
|
|
5928
5928
|
}, hs = () => {
|
|
5929
|
-
const e = Kt(), t = Ce(), r = zo(), i = Yt(Sn), a = (
|
|
5930
|
-
const
|
|
5931
|
-
return
|
|
5932
|
-
|
|
5933
|
-
}),
|
|
5929
|
+
const e = Kt(), t = Ce(), r = zo(), i = Yt(Sn), a = (l) => {
|
|
5930
|
+
const c = new URL(l.path, "http://dummy-base");
|
|
5931
|
+
return l.params && Object.entries(l.params).forEach(([v, y]) => {
|
|
5932
|
+
y != null && c.searchParams.set(v, String(y));
|
|
5933
|
+
}), c.pathname + c.search;
|
|
5934
5934
|
}, s = V.useCallback(
|
|
5935
|
-
(
|
|
5936
|
-
const
|
|
5937
|
-
|
|
5935
|
+
(l) => {
|
|
5936
|
+
const c = a(l);
|
|
5937
|
+
l.addToHistory !== !1 ? (e(c), i.addToHistory(c)) : (e(c, { replace: !0 }), i.history.length > 0 && (i.popFromHistory(1), i.addToHistory(c)));
|
|
5938
5938
|
},
|
|
5939
5939
|
[e, i.history]
|
|
5940
5940
|
), d = V.useCallback(
|
|
5941
|
-
(
|
|
5942
|
-
let
|
|
5943
|
-
i.history.length <
|
|
5941
|
+
(l) => {
|
|
5942
|
+
let c = l || 1;
|
|
5943
|
+
i.history.length < c && (c = i.history.length), e(-c), i.popFromHistory(c);
|
|
5944
5944
|
},
|
|
5945
5945
|
[e]
|
|
5946
|
-
)
|
|
5946
|
+
), u = V.useCallback(() => {
|
|
5947
|
+
i.replaceHistory([]);
|
|
5948
|
+
}, [e]);
|
|
5947
5949
|
return {
|
|
5948
5950
|
currentPath: t.pathname,
|
|
5949
5951
|
history: i.history,
|
|
5950
5952
|
searchParams: r,
|
|
5951
5953
|
goBack: d,
|
|
5952
|
-
goTo: s
|
|
5954
|
+
goTo: s,
|
|
5955
|
+
clearHistory: u
|
|
5953
5956
|
};
|
|
5954
5957
|
}, ps = ({
|
|
5955
5958
|
isReady: e = !0,
|
|
@@ -5964,7 +5967,7 @@ const Sn = V.createContext({
|
|
|
5964
5967
|
}, l = (y) => {
|
|
5965
5968
|
let S = "", L = [];
|
|
5966
5969
|
return i.current.length === 0 || i.current.length < y ? "/" : (L = i.current.slice(0, i.current.length - y), S = L[L.length - 1], d(L), S);
|
|
5967
|
-
},
|
|
5970
|
+
}, c = (y) => {
|
|
5968
5971
|
d(y);
|
|
5969
5972
|
}, v = t.map((y) => /* @__PURE__ */ X.jsx(pn, { path: y.path, element: y.render }));
|
|
5970
5973
|
return /* @__PURE__ */ X.jsx(
|
|
@@ -5974,7 +5977,7 @@ const Sn = V.createContext({
|
|
|
5974
5977
|
history: a,
|
|
5975
5978
|
addToHistory: u,
|
|
5976
5979
|
popFromHistory: l,
|
|
5977
|
-
replaceHistory:
|
|
5980
|
+
replaceHistory: c
|
|
5978
5981
|
},
|
|
5979
5982
|
children: /* @__PURE__ */ X.jsx(Ro, { children: /* @__PURE__ */ X.jsxs(X.Fragment, { children: [
|
|
5980
5983
|
e && /* @__PURE__ */ X.jsx(ro, { children: v }),
|
|
@@ -5994,7 +5997,7 @@ const Sn = V.createContext({
|
|
|
5994
5997
|
), ms = ({ children: e }) => {
|
|
5995
5998
|
const t = V.useRef([]), [r, i] = V.useState([]), a = V.useCallback((l) => {
|
|
5996
5999
|
t.current = l, i(l);
|
|
5997
|
-
}, []), s = V.useCallback((l) => t.current.some((
|
|
6000
|
+
}, []), s = V.useCallback((l) => t.current.some((c) => c === l), []), d = V.useCallback(
|
|
5998
6001
|
(l) => {
|
|
5999
6002
|
s(l) || a([...t.current, l]);
|
|
6000
6003
|
},
|
|
@@ -6038,7 +6041,7 @@ const Sn = V.createContext({
|
|
|
6038
6041
|
}) => {
|
|
6039
6042
|
const { isItemVisible: i } = Ct(), [a, s] = V.useState({
|
|
6040
6043
|
isDragging: !1
|
|
6041
|
-
}), d = V.useRef(null), u = V.useRef(null), l = V.useRef(null), [
|
|
6044
|
+
}), d = V.useRef(null), u = V.useRef(null), l = V.useRef(null), [c, v] = V.useState(0), y = (k) => {
|
|
6042
6045
|
s(k);
|
|
6043
6046
|
}, S = (k) => {
|
|
6044
6047
|
s(k), v(0);
|
|
@@ -6056,7 +6059,7 @@ const Sn = V.createContext({
|
|
|
6056
6059
|
isVisible: i(e),
|
|
6057
6060
|
drawerParentRef: d,
|
|
6058
6061
|
drawerRef: u,
|
|
6059
|
-
drawerBottomDistance:
|
|
6062
|
+
drawerBottomDistance: c,
|
|
6060
6063
|
handleRef: l
|
|
6061
6064
|
};
|
|
6062
6065
|
}, vs = (e) => {
|
|
@@ -6065,7 +6068,7 @@ const Sn = V.createContext({
|
|
|
6065
6068
|
drawerParentRef: d,
|
|
6066
6069
|
drawerRef: u,
|
|
6067
6070
|
handleRef: l,
|
|
6068
|
-
drawerBottomDistance:
|
|
6071
|
+
drawerBottomDistance: c
|
|
6069
6072
|
} = No(e);
|
|
6070
6073
|
return /* @__PURE__ */ X.jsx(X.Fragment, { children: s && /* @__PURE__ */ X.jsx(
|
|
6071
6074
|
"div",
|
|
@@ -6104,7 +6107,7 @@ const Sn = V.createContext({
|
|
|
6104
6107
|
padding: "24px",
|
|
6105
6108
|
zIndex: 1001,
|
|
6106
6109
|
position: "absolute",
|
|
6107
|
-
bottom: `${
|
|
6110
|
+
bottom: `${c}px`,
|
|
6108
6111
|
...i
|
|
6109
6112
|
},
|
|
6110
6113
|
onClick: (v) => {
|
|
@@ -6140,8 +6143,8 @@ const Sn = V.createContext({
|
|
|
6140
6143
|
onSubmit: t,
|
|
6141
6144
|
configurations: r
|
|
6142
6145
|
}) => {
|
|
6143
|
-
const i = V.useRef(null), a = V.useRef(!1), s = (
|
|
6144
|
-
const v = Array.from(
|
|
6146
|
+
const i = V.useRef(null), a = V.useRef(!1), s = (c) => {
|
|
6147
|
+
const v = Array.from(c.currentTarget.elements).filter(
|
|
6145
6148
|
(S) => !!S.getAttribute("name")
|
|
6146
6149
|
), y = [];
|
|
6147
6150
|
for (const S of v) {
|
|
@@ -6152,44 +6155,44 @@ const Sn = V.createContext({
|
|
|
6152
6155
|
});
|
|
6153
6156
|
}
|
|
6154
6157
|
return y;
|
|
6155
|
-
}, d = async (
|
|
6158
|
+
}, d = async (c) => {
|
|
6156
6159
|
try {
|
|
6157
6160
|
const S = (r || []).find(
|
|
6158
|
-
(L) => L.name ===
|
|
6161
|
+
(L) => L.name === c.name
|
|
6159
6162
|
);
|
|
6160
6163
|
if (!S)
|
|
6161
|
-
return
|
|
6162
|
-
var v =
|
|
6164
|
+
return c;
|
|
6165
|
+
var v = c.value, y = c.value;
|
|
6163
6166
|
if (S.emptyValidation && S.emptyValidation.allow === !1 && !v)
|
|
6164
|
-
return
|
|
6167
|
+
return c.error = S.emptyValidation.errorMessage, c;
|
|
6165
6168
|
if (S.minLengthValidation && v.length < S.minLengthValidation.value)
|
|
6166
|
-
return
|
|
6169
|
+
return c.error = S.minLengthValidation.errorMessage, c;
|
|
6167
6170
|
if (S.maxLengthValidation && v.length > S.maxLengthValidation.value)
|
|
6168
|
-
return
|
|
6171
|
+
return c.error = S.maxLengthValidation.errorMessage, c;
|
|
6169
6172
|
if (!isNaN(y)) {
|
|
6170
6173
|
if (S.minValueValidation && y < S.minValueValidation.value)
|
|
6171
|
-
return
|
|
6174
|
+
return c.error = S.minValueValidation.errorMessage, c;
|
|
6172
6175
|
if (S.maxValueValidation && y > S.maxValueValidation.value)
|
|
6173
|
-
return
|
|
6176
|
+
return c.error = S.maxValueValidation.errorMessage, c;
|
|
6174
6177
|
}
|
|
6175
|
-
if (S.exactValueValidation && S.exactValueValidation.value !==
|
|
6176
|
-
return
|
|
6178
|
+
if (S.exactValueValidation && S.exactValueValidation.value !== c.value)
|
|
6179
|
+
return c.error = S.exactValueValidation.errorMessage, c;
|
|
6177
6180
|
for (let L = 0; L < (S.validations || []).length; L++) {
|
|
6178
|
-
const k = await S.validations?.[L](
|
|
6181
|
+
const k = await S.validations?.[L](c.value);
|
|
6179
6182
|
if (k)
|
|
6180
|
-
return
|
|
6183
|
+
return c.error = k, c;
|
|
6181
6184
|
}
|
|
6182
6185
|
} catch (S) {
|
|
6183
|
-
console.error(`Form > Failed To Validate Field ${
|
|
6186
|
+
console.error(`Form > Failed To Validate Field ${c.name}: `, S);
|
|
6184
6187
|
}
|
|
6185
|
-
return
|
|
6188
|
+
return c;
|
|
6186
6189
|
}, u = V.useCallback(
|
|
6187
|
-
async (
|
|
6190
|
+
async (c) => {
|
|
6188
6191
|
try {
|
|
6189
6192
|
if (a.current)
|
|
6190
6193
|
return;
|
|
6191
|
-
a.current = !0, e?.(),
|
|
6192
|
-
let v = s(
|
|
6194
|
+
a.current = !0, e?.(), c.preventDefault(), c.stopPropagation();
|
|
6195
|
+
let v = s(c);
|
|
6193
6196
|
v = await Promise.all(
|
|
6194
6197
|
v.map(async (y) => await d(y))
|
|
6195
6198
|
), a.current = !1, t?.(v);
|
|
@@ -6201,7 +6204,7 @@ const Sn = V.createContext({
|
|
|
6201
6204
|
);
|
|
6202
6205
|
return {
|
|
6203
6206
|
ref: i,
|
|
6204
|
-
submitForm: (
|
|
6207
|
+
submitForm: (c) => {
|
|
6205
6208
|
i.current && i.current.requestSubmit();
|
|
6206
6209
|
},
|
|
6207
6210
|
handleFormSubmission: u
|
|
@@ -6318,7 +6321,7 @@ const Sn = V.createContext({
|
|
|
6318
6321
|
leftIcon: d,
|
|
6319
6322
|
rightIcon: u,
|
|
6320
6323
|
bottomMessage: l,
|
|
6321
|
-
placeHolder:
|
|
6324
|
+
placeHolder: c,
|
|
6322
6325
|
autoComplete: v = "off",
|
|
6323
6326
|
value: y,
|
|
6324
6327
|
initialValue: S,
|
|
@@ -6375,7 +6378,7 @@ const Sn = V.createContext({
|
|
|
6375
6378
|
autoComplete: v,
|
|
6376
6379
|
step: F,
|
|
6377
6380
|
maxLength: k,
|
|
6378
|
-
placeholder:
|
|
6381
|
+
placeholder: c,
|
|
6379
6382
|
value: y,
|
|
6380
6383
|
defaultValue: S,
|
|
6381
6384
|
onChange: t,
|
|
@@ -6487,7 +6490,7 @@ const Sn = V.createContext({
|
|
|
6487
6490
|
) });
|
|
6488
6491
|
}, qo = (e) => {
|
|
6489
6492
|
const t = Pn(""), r = ve(
|
|
6490
|
-
(u) => (e.allowNegatives ? (u = u.replace(/-/g, (l,
|
|
6493
|
+
(u) => (e.allowNegatives ? (u = u.replace(/-/g, (l, c) => c === 0 ? "-" : ""), u.indexOf("-") > 0 && (u = u.replace(/-/g, ""), u = "-" + u)) : u = u.replace(/-/g, ""), u),
|
|
6491
6494
|
[e]
|
|
6492
6495
|
), i = ve(
|
|
6493
6496
|
(u) => {
|
|
@@ -6495,9 +6498,9 @@ const Sn = V.createContext({
|
|
|
6495
6498
|
u.startsWith(".") && (u = "0" + u), u.length === 2 && u[0] === "-" && u[1] === "." && (u = "-");
|
|
6496
6499
|
const l = u.indexOf(".");
|
|
6497
6500
|
l !== -1 && (u = u.slice(0, l + 1) + u.slice(l + 1).replace(/\./g, ""));
|
|
6498
|
-
const [
|
|
6501
|
+
const [c, ...v] = u.split("."), [y, ...S] = t.current.split(".");
|
|
6499
6502
|
let L = v.join(""), k = S.join("");
|
|
6500
|
-
e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = k : L = L.slice(0, e.decimalScale)), u = L || u.endsWith(".") ? `${
|
|
6503
|
+
e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = k : L = L.slice(0, e.decimalScale)), u = L || u.endsWith(".") ? `${c}.${L}` : c;
|
|
6501
6504
|
} else
|
|
6502
6505
|
u = u.replace(/\./g, "");
|
|
6503
6506
|
return u;
|
|
@@ -6506,17 +6509,17 @@ const Sn = V.createContext({
|
|
|
6506
6509
|
), a = ve(
|
|
6507
6510
|
(u) => {
|
|
6508
6511
|
const l = Number(u);
|
|
6509
|
-
var
|
|
6510
|
-
return
|
|
6512
|
+
var c = e.max;
|
|
6513
|
+
return c === void 0 && (c = e.maxLength ? Number("9".repeat(e.maxLength)) : void 0), !isNaN(l) && (e.min !== void 0 && l < e.min || c !== void 0 && l > c) ? t.current ?? u : u;
|
|
6511
6514
|
},
|
|
6512
6515
|
[e]
|
|
6513
6516
|
), s = ve(
|
|
6514
6517
|
(u) => {
|
|
6515
|
-
const l = u.target,
|
|
6518
|
+
const l = u.target, c = l.selectionStart ?? 0, v = l.selectionEnd ?? 0;
|
|
6516
6519
|
let y = l.value;
|
|
6517
6520
|
y = y.replace(/[^0-9\.\-]/g, ""), y = r(y), y = i(y), y = a(y);
|
|
6518
6521
|
const S = y.length - l.value.length;
|
|
6519
|
-
l.value = y, l.setSelectionRange(
|
|
6522
|
+
l.value = y, l.setSelectionRange(c + S, v + S), t.current = y;
|
|
6520
6523
|
},
|
|
6521
6524
|
[r, i, a]
|
|
6522
6525
|
);
|
|
@@ -6546,7 +6549,7 @@ const Sn = V.createContext({
|
|
|
6546
6549
|
t.current && a(t.current.clientHeight);
|
|
6547
6550
|
}, [t, t.current]), l = V.useCallback(() => {
|
|
6548
6551
|
r.current && d(r.current.clientHeight);
|
|
6549
|
-
}, [r, r.current]),
|
|
6552
|
+
}, [r, r.current]), c = V.useCallback(() => {
|
|
6550
6553
|
let v = 0;
|
|
6551
6554
|
return e.header?.visibility === "always" && (v = v + (i || 0)), e.footer?.visibility === "always" && (v = v + (s || 0)), v;
|
|
6552
6555
|
}, [r, r.current]);
|
|
@@ -6568,7 +6571,7 @@ const Sn = V.createContext({
|
|
|
6568
6571
|
ref: r
|
|
6569
6572
|
},
|
|
6570
6573
|
page: {
|
|
6571
|
-
extraHeight:
|
|
6574
|
+
extraHeight: c()
|
|
6572
6575
|
}
|
|
6573
6576
|
};
|
|
6574
6577
|
}, Xo = Ee.div`
|
|
@@ -6744,7 +6747,7 @@ function Jo() {
|
|
|
6744
6747
|
(function(r, i) {
|
|
6745
6748
|
e.exports = i();
|
|
6746
6749
|
})(Ko, function() {
|
|
6747
|
-
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", d = "second", u = "minute", l = "hour",
|
|
6750
|
+
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", d = "second", u = "minute", l = "hour", c = "day", v = "week", y = "month", S = "quarter", L = "year", k = "date", p = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
6748
6751
|
var E = ["th", "st", "nd", "rd"], j = T % 100;
|
|
6749
6752
|
return "[" + T + (E[(j - 20) % 10] || E[j] || E[0]) + "]";
|
|
6750
6753
|
} }, U = function(T, E, j) {
|
|
@@ -6760,7 +6763,7 @@ function Jo() {
|
|
|
6760
6763
|
}, a: function(T) {
|
|
6761
6764
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
6762
6765
|
}, p: function(T) {
|
|
6763
|
-
return { M: y, y: L, w: v, d:
|
|
6766
|
+
return { M: y, y: L, w: v, d: c, D: k, h: l, m: u, s: d, ms: s, Q: S }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
6764
6767
|
}, u: function(T) {
|
|
6765
6768
|
return T === void 0;
|
|
6766
6769
|
} }, g = "en", w = {};
|
|
@@ -6776,8 +6779,8 @@ function Jo() {
|
|
|
6776
6779
|
var n = E.split("-");
|
|
6777
6780
|
if (!H && n.length > 1) return T(n[0]);
|
|
6778
6781
|
} else {
|
|
6779
|
-
var
|
|
6780
|
-
w[
|
|
6782
|
+
var f = E.name;
|
|
6783
|
+
w[f] = E, H = f;
|
|
6781
6784
|
}
|
|
6782
6785
|
return !o && H && (g = H), H || !o && g;
|
|
6783
6786
|
}, h = function(T, E) {
|
|
@@ -6802,8 +6805,8 @@ function Jo() {
|
|
|
6802
6805
|
if (typeof H == "string" && !/Z$/i.test(H)) {
|
|
6803
6806
|
var n = H.match(I);
|
|
6804
6807
|
if (n) {
|
|
6805
|
-
var
|
|
6806
|
-
return m ? new Date(Date.UTC(n[1],
|
|
6808
|
+
var f = n[2] - 1 || 0, O = (n[7] || "0").substring(0, 3);
|
|
6809
|
+
return m ? new Date(Date.UTC(n[1], f, n[3] || 1, n[4] || 0, n[5] || 0, n[6] || 0, O)) : new Date(n[1], f, n[3] || 1, n[4] || 0, n[5] || 0, n[6] || 0, O);
|
|
6807
6810
|
}
|
|
6808
6811
|
}
|
|
6809
6812
|
return new Date(H);
|
|
@@ -6829,21 +6832,21 @@ function Jo() {
|
|
|
6829
6832
|
}, E.valueOf = function() {
|
|
6830
6833
|
return this.$d.getTime();
|
|
6831
6834
|
}, E.startOf = function(j, o) {
|
|
6832
|
-
var H = this, m = !!P.u(o) || o, n = P.p(j),
|
|
6835
|
+
var H = this, m = !!P.u(o) || o, n = P.p(j), f = function(K, G) {
|
|
6833
6836
|
var J = P.w(H.$u ? Date.UTC(H.$y, G, K) : new Date(H.$y, G, K), H);
|
|
6834
|
-
return m ? J : J.endOf(
|
|
6837
|
+
return m ? J : J.endOf(c);
|
|
6835
6838
|
}, O = function(K, G) {
|
|
6836
6839
|
return P.w(H.toDate()[K].apply(H.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), H);
|
|
6837
6840
|
}, $ = this.$W, D = this.$M, z = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
6838
6841
|
switch (n) {
|
|
6839
6842
|
case L:
|
|
6840
|
-
return m ?
|
|
6843
|
+
return m ? f(1, 0) : f(31, 11);
|
|
6841
6844
|
case y:
|
|
6842
|
-
return m ?
|
|
6845
|
+
return m ? f(1, D) : f(0, D + 1);
|
|
6843
6846
|
case v:
|
|
6844
6847
|
var W = this.$locale().weekStart || 0, B = ($ < W ? $ + 7 : $) - W;
|
|
6845
|
-
return
|
|
6846
|
-
case
|
|
6848
|
+
return f(m ? z - B : z + (6 - B), D);
|
|
6849
|
+
case c:
|
|
6847
6850
|
case k:
|
|
6848
6851
|
return O(N + "Hours", 0);
|
|
6849
6852
|
case l:
|
|
@@ -6858,11 +6861,11 @@ function Jo() {
|
|
|
6858
6861
|
}, E.endOf = function(j) {
|
|
6859
6862
|
return this.startOf(j, !1);
|
|
6860
6863
|
}, E.$set = function(j, o) {
|
|
6861
|
-
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""),
|
|
6864
|
+
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""), f = (H = {}, H[c] = n + "Date", H[k] = n + "Date", H[y] = n + "Month", H[L] = n + "FullYear", H[l] = n + "Hours", H[u] = n + "Minutes", H[d] = n + "Seconds", H[s] = n + "Milliseconds", H)[m], O = m === c ? this.$D + (o - this.$W) : o;
|
|
6862
6865
|
if (m === y || m === L) {
|
|
6863
6866
|
var $ = this.clone().set(k, 1);
|
|
6864
|
-
$.$d[
|
|
6865
|
-
} else
|
|
6867
|
+
$.$d[f](O), $.init(), this.$d = $.set(k, Math.min(this.$D, $.daysInMonth())).$d;
|
|
6868
|
+
} else f && this.$d[f](O);
|
|
6866
6869
|
return this.init(), this;
|
|
6867
6870
|
}, E.set = function(j, o) {
|
|
6868
6871
|
return this.clone().$set(j, o);
|
|
@@ -6871,14 +6874,14 @@ function Jo() {
|
|
|
6871
6874
|
}, E.add = function(j, o) {
|
|
6872
6875
|
var H, m = this;
|
|
6873
6876
|
j = Number(j);
|
|
6874
|
-
var n = P.p(o),
|
|
6877
|
+
var n = P.p(o), f = function(D) {
|
|
6875
6878
|
var z = h(m);
|
|
6876
6879
|
return P.w(z.date(z.date() + Math.round(D * j)), m);
|
|
6877
6880
|
};
|
|
6878
6881
|
if (n === y) return this.set(y, this.$M + j);
|
|
6879
6882
|
if (n === L) return this.set(L, this.$y + j);
|
|
6880
|
-
if (n ===
|
|
6881
|
-
if (n === v) return
|
|
6883
|
+
if (n === c) return f(1);
|
|
6884
|
+
if (n === v) return f(7);
|
|
6882
6885
|
var O = (H = {}, H[u] = i, H[l] = a, H[d] = r, H)[n] || 1, $ = this.$d.getTime() + j * O;
|
|
6883
6886
|
return P.w($, this);
|
|
6884
6887
|
}, E.subtract = function(j, o) {
|
|
@@ -6886,10 +6889,10 @@ function Jo() {
|
|
|
6886
6889
|
}, E.format = function(j) {
|
|
6887
6890
|
var o = this, H = this.$locale();
|
|
6888
6891
|
if (!this.isValid()) return H.invalidDate || p;
|
|
6889
|
-
var m = j || "YYYY-MM-DDTHH:mm:ssZ", n = P.z(this),
|
|
6892
|
+
var m = j || "YYYY-MM-DDTHH:mm:ssZ", n = P.z(this), f = this.$H, O = this.$m, $ = this.$M, D = H.weekdays, z = H.months, N = H.meridiem, W = function(G, J, te, Z) {
|
|
6890
6893
|
return G && (G[J] || G(o, m)) || te[J].slice(0, Z);
|
|
6891
6894
|
}, B = function(G) {
|
|
6892
|
-
return P.s(
|
|
6895
|
+
return P.s(f % 12 || 12, G, "0");
|
|
6893
6896
|
}, K = N || function(G, J, te) {
|
|
6894
6897
|
var Z = G < 12 ? "AM" : "PM";
|
|
6895
6898
|
return te ? Z.toLowerCase() : Z;
|
|
@@ -6922,17 +6925,17 @@ function Jo() {
|
|
|
6922
6925
|
case "dddd":
|
|
6923
6926
|
return D[o.$W];
|
|
6924
6927
|
case "H":
|
|
6925
|
-
return String(
|
|
6928
|
+
return String(f);
|
|
6926
6929
|
case "HH":
|
|
6927
|
-
return P.s(
|
|
6930
|
+
return P.s(f, 2, "0");
|
|
6928
6931
|
case "h":
|
|
6929
6932
|
return B(1);
|
|
6930
6933
|
case "hh":
|
|
6931
6934
|
return B(2);
|
|
6932
6935
|
case "a":
|
|
6933
|
-
return K(
|
|
6936
|
+
return K(f, O, !0);
|
|
6934
6937
|
case "A":
|
|
6935
|
-
return K(
|
|
6938
|
+
return K(f, O, !1);
|
|
6936
6939
|
case "m":
|
|
6937
6940
|
return String(O);
|
|
6938
6941
|
case "mm":
|
|
@@ -6952,10 +6955,10 @@ function Jo() {
|
|
|
6952
6955
|
}, E.utcOffset = function() {
|
|
6953
6956
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6954
6957
|
}, E.diff = function(j, o, H) {
|
|
6955
|
-
var m, n = this,
|
|
6958
|
+
var m, n = this, f = P.p(o), O = h(j), $ = (O.utcOffset() - this.utcOffset()) * i, D = this - O, z = function() {
|
|
6956
6959
|
return P.m(n, O);
|
|
6957
6960
|
};
|
|
6958
|
-
switch (
|
|
6961
|
+
switch (f) {
|
|
6959
6962
|
case L:
|
|
6960
6963
|
m = z() / 12;
|
|
6961
6964
|
break;
|
|
@@ -6968,7 +6971,7 @@ function Jo() {
|
|
|
6968
6971
|
case v:
|
|
6969
6972
|
m = (D - $) / 6048e5;
|
|
6970
6973
|
break;
|
|
6971
|
-
case
|
|
6974
|
+
case c:
|
|
6972
6975
|
m = (D - $) / 864e5;
|
|
6973
6976
|
break;
|
|
6974
6977
|
case l:
|
|
@@ -7004,7 +7007,7 @@ function Jo() {
|
|
|
7004
7007
|
return this.$d.toUTCString();
|
|
7005
7008
|
}, T;
|
|
7006
7009
|
}(), _ = A.prototype;
|
|
7007
|
-
return h.prototype = _, [["$ms", s], ["$s", d], ["$m", u], ["$H", l], ["$W",
|
|
7010
|
+
return h.prototype = _, [["$ms", s], ["$s", d], ["$m", u], ["$H", l], ["$W", c], ["$M", y], ["$y", L], ["$D", k]].forEach(function(T) {
|
|
7008
7011
|
_[T[1]] = function(E) {
|
|
7009
7012
|
return this.$g(E, T[0], T[1]);
|
|
7010
7013
|
};
|
|
@@ -7036,9 +7039,9 @@ function es() {
|
|
|
7036
7039
|
}, l.local = function() {
|
|
7037
7040
|
return u(this.toDate(), { locale: this.$L, utc: !1 });
|
|
7038
7041
|
};
|
|
7039
|
-
var
|
|
7042
|
+
var c = l.parse;
|
|
7040
7043
|
l.parse = function(p) {
|
|
7041
|
-
p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset),
|
|
7044
|
+
p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), c.call(this, p);
|
|
7042
7045
|
};
|
|
7043
7046
|
var v = l.init;
|
|
7044
7047
|
l.init = function() {
|
|
@@ -7283,7 +7286,7 @@ const Es = ({
|
|
|
7283
7286
|
value: d,
|
|
7284
7287
|
initialValue: u,
|
|
7285
7288
|
onChange: l,
|
|
7286
|
-
onFocus:
|
|
7289
|
+
onFocus: c,
|
|
7287
7290
|
onBlur: v,
|
|
7288
7291
|
inputStyles: y,
|
|
7289
7292
|
containerStyles: S,
|
|
@@ -7292,7 +7295,7 @@ const Es = ({
|
|
|
7292
7295
|
const k = (C) => {
|
|
7293
7296
|
l?.(C.currentTarget.value);
|
|
7294
7297
|
}, p = (C) => {
|
|
7295
|
-
|
|
7298
|
+
c?.();
|
|
7296
7299
|
}, I = (C) => {
|
|
7297
7300
|
v?.();
|
|
7298
7301
|
};
|