@eliseubatista99/react-scaffold-core 1.1.1 → 1.1.3
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
|
@@ -47,8 +47,8 @@ function Rn() {
|
|
|
47
47
|
var d = null;
|
|
48
48
|
if (s !== void 0 && (d = "" + s), a.key !== void 0 && (d = "" + a.key), "key" in a) {
|
|
49
49
|
s = {};
|
|
50
|
-
for (var
|
|
51
|
-
|
|
50
|
+
for (var u in a)
|
|
51
|
+
u !== "key" && (s[u] = a[u]);
|
|
52
52
|
} else s = a;
|
|
53
53
|
return a = s.ref, {
|
|
54
54
|
$$typeof: e,
|
|
@@ -161,7 +161,7 @@ function _n() {
|
|
|
161
161
|
}
|
|
162
162
|
return n.key !== void 0;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function u(n, c) {
|
|
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)",
|
|
@@ -173,7 +173,7 @@ function _n() {
|
|
|
173
173
|
configurable: !0
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function l() {
|
|
177
177
|
var n = e(this.type);
|
|
178
178
|
return j[n] || (j[n] = !0, console.error(
|
|
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."
|
|
@@ -188,7 +188,7 @@ function _n() {
|
|
|
188
188
|
_owner: D
|
|
189
189
|
}, (O !== void 0 ? O : null) !== null ? Object.defineProperty(n, "ref", {
|
|
190
190
|
enumerable: !1,
|
|
191
|
-
get:
|
|
191
|
+
get: l
|
|
192
192
|
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
193
193
|
configurable: !1,
|
|
194
194
|
enumerable: !1,
|
|
@@ -247,7 +247,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
for (var G in c)
|
|
248
248
|
G !== "key" && (O[G] = c[G]);
|
|
249
249
|
} else O = c;
|
|
250
|
-
return B &&
|
|
250
|
+
return B && u(
|
|
251
251
|
O,
|
|
252
252
|
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
253
253
|
), f(
|
|
@@ -325,7 +325,7 @@ const as = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ X.jsx(
|
|
|
325
325
|
...r
|
|
326
326
|
},
|
|
327
327
|
onClick: (i) => {
|
|
328
|
-
|
|
328
|
+
t?.(i);
|
|
329
329
|
},
|
|
330
330
|
children: e
|
|
331
331
|
}
|
|
@@ -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,
|
|
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, f = typeof self == "object" && self && self.Object === Object && self, v = l || f || 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) {
|
|
@@ -447,7 +447,7 @@ function Ln() {
|
|
|
447
447
|
return g === 0 ? g : +g;
|
|
448
448
|
g = g.replace(i, "");
|
|
449
449
|
var x = s.test(g);
|
|
450
|
-
return x || d.test(g) ?
|
|
450
|
+
return x || d.test(g) ? u(g.slice(2), x ? 2 : 8) : a.test(g) ? t : +g;
|
|
451
451
|
}
|
|
452
452
|
return _t = I, _t;
|
|
453
453
|
}
|
|
@@ -464,8 +464,8 @@ function yt() {
|
|
|
464
464
|
var t = {}.hasOwnProperty;
|
|
465
465
|
function r() {
|
|
466
466
|
for (var s = "", d = 0; d < arguments.length; d++) {
|
|
467
|
-
var
|
|
468
|
-
|
|
467
|
+
var u = arguments[d];
|
|
468
|
+
u && (s = a(s, i(u)));
|
|
469
469
|
}
|
|
470
470
|
return s;
|
|
471
471
|
}
|
|
@@ -479,8 +479,8 @@ function yt() {
|
|
|
479
479
|
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
480
480
|
return s.toString();
|
|
481
481
|
var d = "";
|
|
482
|
-
for (var
|
|
483
|
-
t.call(s,
|
|
482
|
+
for (var u in s)
|
|
483
|
+
t.call(s, u) && s[u] && (d = a(d, u));
|
|
484
484
|
return d;
|
|
485
485
|
}
|
|
486
486
|
function a(s, d) {
|
|
@@ -606,13 +606,13 @@ function Ke() {
|
|
|
606
606
|
return m;
|
|
607
607
|
}
|
|
608
608
|
function d(m, n, c) {
|
|
609
|
-
return (n =
|
|
609
|
+
return (n = u(n)) in m ? Object.defineProperty(m, n, { value: c, enumerable: !0, configurable: !0, writable: !0 }) : m[n] = c, m;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
var n =
|
|
611
|
+
function u(m) {
|
|
612
|
+
var n = l(m, "string");
|
|
613
613
|
return i(n) == "symbol" ? n : n + "";
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function l(m, n) {
|
|
616
616
|
if (i(m) != "object" || !m) return m;
|
|
617
617
|
var c = m[Symbol.toPrimitive];
|
|
618
618
|
if (c !== void 0) {
|
|
@@ -981,14 +981,14 @@ function Dn() {
|
|
|
981
981
|
function d(b, h) {
|
|
982
982
|
if (!(b instanceof h)) throw new TypeError("Cannot call a class as a function");
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function u(b, h) {
|
|
985
985
|
for (var P = 0; P < h.length; P++) {
|
|
986
986
|
var A = h[P];
|
|
987
987
|
A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(b, U(A.key), A);
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
function
|
|
991
|
-
return h &&
|
|
990
|
+
function l(b, h, P) {
|
|
991
|
+
return h && u(b.prototype, h), Object.defineProperty(b, "prototype", { writable: !1 }), b;
|
|
992
992
|
}
|
|
993
993
|
function f(b, h) {
|
|
994
994
|
if (typeof h != "function" && h !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1160,7 +1160,7 @@ function Dn() {
|
|
|
1160
1160
|
A.node = j;
|
|
1161
1161
|
}), A;
|
|
1162
1162
|
}
|
|
1163
|
-
return
|
|
1163
|
+
return l(P, [{
|
|
1164
1164
|
key: "render",
|
|
1165
1165
|
value: function() {
|
|
1166
1166
|
var _ = R(this.props), T = this.props, E = T.onMouseEnter, j = T.onMouseOver, o = T.onMouseLeave, H = {
|
|
@@ -1210,17 +1210,17 @@ function Mn() {
|
|
|
1210
1210
|
for (var w = 1; w < arguments.length; w++) {
|
|
1211
1211
|
var x = arguments[w] != null ? arguments[w] : {};
|
|
1212
1212
|
w % 2 ? s(Object(x), !0).forEach(function(R) {
|
|
1213
|
-
|
|
1213
|
+
u(g, R, x[R]);
|
|
1214
1214
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(g, Object.getOwnPropertyDescriptors(x)) : s(Object(x)).forEach(function(R) {
|
|
1215
1215
|
Object.defineProperty(g, R, Object.getOwnPropertyDescriptor(x, R));
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
1218
|
return g;
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function u(g, w, x) {
|
|
1221
1221
|
return (w = y(w)) in g ? Object.defineProperty(g, w, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : g[w] = x, g;
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function l(g, w) {
|
|
1224
1224
|
if (!(g instanceof w)) throw new TypeError("Cannot call a class as a function");
|
|
1225
1225
|
}
|
|
1226
1226
|
function f(g, w) {
|
|
@@ -1298,7 +1298,7 @@ function Mn() {
|
|
|
1298
1298
|
L(x, g);
|
|
1299
1299
|
var w = p(x);
|
|
1300
1300
|
function x() {
|
|
1301
|
-
return
|
|
1301
|
+
return l(this, x), w.apply(this, arguments);
|
|
1302
1302
|
}
|
|
1303
1303
|
return v(x, [{
|
|
1304
1304
|
key: "clickHandler",
|
|
@@ -1379,18 +1379,18 @@ function $n() {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
return x;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function u(g) {
|
|
1383
1383
|
for (var w = 1; w < arguments.length; w++) {
|
|
1384
1384
|
var x = arguments[w] != null ? arguments[w] : {};
|
|
1385
1385
|
w % 2 ? d(Object(x), !0).forEach(function(R) {
|
|
1386
|
-
|
|
1386
|
+
l(g, R, x[R]);
|
|
1387
1387
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(g, Object.getOwnPropertyDescriptors(x)) : d(Object(x)).forEach(function(R) {
|
|
1388
1388
|
Object.defineProperty(g, R, Object.getOwnPropertyDescriptor(x, R));
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
1391
1391
|
return g;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
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
1396
|
function f(g, w) {
|
|
@@ -1496,7 +1496,7 @@ function $n() {
|
|
|
1496
1496
|
currentSlide: this.props.currentSlide,
|
|
1497
1497
|
slideCount: this.props.slideCount
|
|
1498
1498
|
}, _;
|
|
1499
|
-
return this.props.prevArrow ? _ = /* @__PURE__ */ t.default.cloneElement(this.props.prevArrow,
|
|
1499
|
+
return this.props.prevArrow ? _ = /* @__PURE__ */ t.default.cloneElement(this.props.prevArrow, u(u({}, P), A)) : _ = /* @__PURE__ */ t.default.createElement("button", s({
|
|
1500
1500
|
key: "0",
|
|
1501
1501
|
type: "button"
|
|
1502
1502
|
}, P), " ", "Previous"), _;
|
|
@@ -1535,7 +1535,7 @@ function $n() {
|
|
|
1535
1535
|
currentSlide: this.props.currentSlide,
|
|
1536
1536
|
slideCount: this.props.slideCount
|
|
1537
1537
|
}, _;
|
|
1538
|
-
return this.props.nextArrow ? _ = /* @__PURE__ */ t.default.cloneElement(this.props.nextArrow,
|
|
1538
|
+
return this.props.nextArrow ? _ = /* @__PURE__ */ t.default.cloneElement(this.props.nextArrow, u(u({}, P), A)) : _ = /* @__PURE__ */ t.default.createElement("button", s({
|
|
1539
1539
|
key: "1",
|
|
1540
1540
|
type: "button"
|
|
1541
1541
|
}, P), " ", "Next"), _;
|
|
@@ -1601,22 +1601,22 @@ var Nr = function() {
|
|
|
1601
1601
|
function Hn(e, t) {
|
|
1602
1602
|
var r = !1, i = !1, a = 0;
|
|
1603
1603
|
function s() {
|
|
1604
|
-
r && (r = !1, e()), i &&
|
|
1604
|
+
r && (r = !1, e()), i && u();
|
|
1605
1605
|
}
|
|
1606
1606
|
function d() {
|
|
1607
1607
|
In(s);
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1610
|
-
var
|
|
1609
|
+
function u() {
|
|
1610
|
+
var l = Date.now();
|
|
1611
1611
|
if (r) {
|
|
1612
|
-
if (
|
|
1612
|
+
if (l - a < An)
|
|
1613
1613
|
return;
|
|
1614
1614
|
i = !0;
|
|
1615
1615
|
} else
|
|
1616
1616
|
r = !0, i = !1, setTimeout(d, t);
|
|
1617
|
-
a =
|
|
1617
|
+
a = l;
|
|
1618
1618
|
}
|
|
1619
|
-
return
|
|
1619
|
+
return u;
|
|
1620
1620
|
}
|
|
1621
1621
|
var zn = 20, Nn = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Fn = typeof MutationObserver < "u", Wn = (
|
|
1622
1622
|
/** @class */
|
|
@@ -1698,12 +1698,12 @@ function Vn(e) {
|
|
|
1698
1698
|
var t = e.clientWidth, r = e.clientHeight;
|
|
1699
1699
|
if (!t && !r)
|
|
1700
1700
|
return Wr;
|
|
1701
|
-
var i = je(e).getComputedStyle(e), a = Un(i), s = a.left + a.right, d = a.top + a.bottom,
|
|
1702
|
-
if (i.boxSizing === "border-box" && (Math.round(
|
|
1703
|
-
var f = Math.round(
|
|
1704
|
-
Math.abs(f) !== 1 && (
|
|
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
|
+
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 f = Math.round(u + s) - t, v = Math.round(l + d) - r;
|
|
1704
|
+
Math.abs(f) !== 1 && (u -= f), Math.abs(v) !== 1 && (l -= v);
|
|
1705
1705
|
}
|
|
1706
|
-
return bt(a.left, a.top,
|
|
1706
|
+
return bt(a.left, a.top, u, l);
|
|
1707
1707
|
}
|
|
1708
1708
|
var qn = /* @__PURE__ */ function() {
|
|
1709
1709
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
@@ -1840,7 +1840,7 @@ function ri() {
|
|
|
1840
1840
|
pr = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1841
1841
|
value: !0
|
|
1842
1842
|
}), Ne.InnerSlider = void 0;
|
|
1843
|
-
var e = f(V), t = f(jn()), r = f(Ln()), i = f(yt()), a = Ke(), s = Dn(), d = Mn(),
|
|
1843
|
+
var e = f(V), t = f(jn()), r = f(Ln()), i = f(yt()), a = Ke(), s = Dn(), d = Mn(), u = $n(), l = f(ti);
|
|
1844
1844
|
function f(_) {
|
|
1845
1845
|
return _ && _.__esModule ? _ : { default: _ };
|
|
1846
1846
|
}
|
|
@@ -2005,7 +2005,7 @@ function ri() {
|
|
|
2005
2005
|
}, o.props);
|
|
2006
2006
|
o.updateState(n, !0, function() {
|
|
2007
2007
|
o.adaptHeight(), o.props.autoplay && o.autoPlay("update");
|
|
2008
|
-
}), o.props.lazyLoad === "progressive" && (o.lazyLoadTimer = setInterval(o.progressiveLazyLoad, 1e3)), o.ro = new
|
|
2008
|
+
}), o.props.lazyLoad === "progressive" && (o.lazyLoadTimer = setInterval(o.progressiveLazyLoad, 1e3)), o.ro = new l.default(function() {
|
|
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();
|
|
@@ -2302,7 +2302,7 @@ function ri() {
|
|
|
2302
2302
|
}), $ = /* @__PURE__ */ e.default.createElement(d.Dots, D);
|
|
2303
2303
|
}
|
|
2304
2304
|
var N, W, B = (0, a.extractObject)(n, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
|
|
2305
|
-
B.clickHandler = o.changeSlide, o.props.arrows && (N = /* @__PURE__ */ e.default.createElement(
|
|
2305
|
+
B.clickHandler = o.changeSlide, o.props.arrows && (N = /* @__PURE__ */ e.default.createElement(u.PrevArrow, B), W = /* @__PURE__ */ e.default.createElement(u.NextArrow, B));
|
|
2306
2306
|
var K = null;
|
|
2307
2307
|
o.props.vertical && (K = {
|
|
2308
2308
|
height: o.state.listHeight
|
|
@@ -2388,14 +2388,14 @@ function ii() {
|
|
|
2388
2388
|
return s.test(a);
|
|
2389
2389
|
}, r = function(a) {
|
|
2390
2390
|
var s = "", d = Object.keys(a);
|
|
2391
|
-
return d.forEach(function(
|
|
2392
|
-
var f = a[
|
|
2393
|
-
|
|
2391
|
+
return d.forEach(function(u, l) {
|
|
2392
|
+
var f = a[u];
|
|
2393
|
+
u = e(u), t(u) && typeof f == "number" && (f = f + "px"), f === !0 ? s += u : f === !1 ? s += "not " + u : s += "(" + u + ": " + f + ")", l < d.length - 1 && (s += " and ");
|
|
2394
2394
|
}), s;
|
|
2395
2395
|
}, i = function(a) {
|
|
2396
2396
|
var s = "";
|
|
2397
|
-
return typeof a == "string" ? a : a instanceof Array ? (a.forEach(function(d,
|
|
2398
|
-
s += r(d),
|
|
2397
|
+
return typeof a == "string" ? a : a instanceof Array ? (a.forEach(function(d, u) {
|
|
2398
|
+
s += r(d), u < a.length - 1 && (s += ", ");
|
|
2399
2399
|
}), s) : r(a);
|
|
2400
2400
|
};
|
|
2401
2401
|
return Dt = i, Dt;
|
|
@@ -2410,23 +2410,23 @@ function ai() {
|
|
|
2410
2410
|
function d(R) {
|
|
2411
2411
|
return R && R.__esModule ? R : { default: R };
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function u(R) {
|
|
2414
2414
|
"@babel/helpers - typeof";
|
|
2415
|
-
return
|
|
2415
|
+
return u = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(b) {
|
|
2416
2416
|
return typeof b;
|
|
2417
2417
|
} : function(b) {
|
|
2418
2418
|
return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
|
|
2419
|
-
},
|
|
2419
|
+
}, u(R);
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2422
|
-
return
|
|
2421
|
+
function l() {
|
|
2422
|
+
return l = Object.assign ? Object.assign.bind() : function(R) {
|
|
2423
2423
|
for (var b = 1; b < arguments.length; b++) {
|
|
2424
2424
|
var h = arguments[b];
|
|
2425
2425
|
for (var P in h)
|
|
2426
2426
|
({}).hasOwnProperty.call(h, P) && (R[P] = h[P]);
|
|
2427
2427
|
}
|
|
2428
2428
|
return R;
|
|
2429
|
-
},
|
|
2429
|
+
}, l.apply(null, arguments);
|
|
2430
2430
|
}
|
|
2431
2431
|
function f(R, b) {
|
|
2432
2432
|
var h = Object.keys(R);
|
|
@@ -2482,7 +2482,7 @@ function ai() {
|
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
2484
|
function C(R, b) {
|
|
2485
|
-
if (b && (
|
|
2485
|
+
if (b && (u(b) == "object" || typeof b == "function")) return b;
|
|
2486
2486
|
if (b !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2487
2487
|
return F(R);
|
|
2488
2488
|
}
|
|
@@ -2510,14 +2510,14 @@ function ai() {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
function w(R) {
|
|
2512
2512
|
var b = x(R, "string");
|
|
2513
|
-
return
|
|
2513
|
+
return u(b) == "symbol" ? b : b + "";
|
|
2514
2514
|
}
|
|
2515
2515
|
function x(R, b) {
|
|
2516
|
-
if (
|
|
2516
|
+
if (u(R) != "object" || !R) return R;
|
|
2517
2517
|
var h = R[Symbol.toPrimitive];
|
|
2518
2518
|
if (h !== void 0) {
|
|
2519
2519
|
var P = h.call(R, b);
|
|
2520
|
-
if (
|
|
2520
|
+
if (u(P) != "object") return P;
|
|
2521
2521
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2522
2522
|
}
|
|
2523
2523
|
return (b === "string" ? String : Number)(R);
|
|
@@ -2640,7 +2640,7 @@ function ai() {
|
|
|
2640
2640
|
className: $
|
|
2641
2641
|
}, E);
|
|
2642
2642
|
} else j.length <= _.slidesToShow && (_.unslick = !0);
|
|
2643
|
-
return /* @__PURE__ */ t.default.createElement(r.InnerSlider,
|
|
2643
|
+
return /* @__PURE__ */ t.default.createElement(r.InnerSlider, l({
|
|
2644
2644
|
style: this.props.style,
|
|
2645
2645
|
ref: this.innerSliderRefHandler
|
|
2646
2646
|
}, (0, s.filterSettings)(_)), j);
|
|
@@ -2865,7 +2865,7 @@ function ki(e) {
|
|
|
2865
2865
|
function Ci(e) {
|
|
2866
2866
|
return Kr(lt("", null, null, null, [""], e = Gr(e), 0, [0], e));
|
|
2867
2867
|
}
|
|
2868
|
-
function lt(e, t, r, i, a, s, d,
|
|
2868
|
+
function lt(e, t, r, i, a, s, d, u, l) {
|
|
2869
2869
|
for (var f = 0, v = 0, y = d, S = 0, L = 0, k = 0, p = 1, I = 1, C = 1, F = 0, U = "", q = a, g = s, w = i, x = U; I; )
|
|
2870
2870
|
switch (k = F, F = me()) {
|
|
2871
2871
|
// (
|
|
@@ -2896,7 +2896,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2896
2896
|
switch (we()) {
|
|
2897
2897
|
case 42:
|
|
2898
2898
|
case 47:
|
|
2899
|
-
it(Pi(Oi(me(), ot()), t, r),
|
|
2899
|
+
it(Pi(Oi(me(), ot()), t, r), l);
|
|
2900
2900
|
break;
|
|
2901
2901
|
default:
|
|
2902
2902
|
x += "/";
|
|
@@ -2904,7 +2904,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2904
2904
|
break;
|
|
2905
2905
|
// {
|
|
2906
2906
|
case 123 * p:
|
|
2907
|
-
|
|
2907
|
+
u[f++] = ye(x) * C;
|
|
2908
2908
|
// } ; \0
|
|
2909
2909
|
case 125 * p:
|
|
2910
2910
|
case 59:
|
|
@@ -2916,16 +2916,16 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2916
2916
|
I = 0;
|
|
2917
2917
|
// ;
|
|
2918
2918
|
case 59 + v:
|
|
2919
|
-
C == -1 && (x = ne(x, /\f/g, "")), L > 0 && ye(x) - y && it(L > 32 ? wr(x + ";", i, r, y - 1) : wr(ne(x, " ", "") + ";", i, r, y - 2),
|
|
2919
|
+
C == -1 && (x = ne(x, /\f/g, "")), L > 0 && ye(x) - y && it(L > 32 ? wr(x + ";", i, r, y - 1) : wr(ne(x, " ", "") + ";", i, r, y - 2), l);
|
|
2920
2920
|
break;
|
|
2921
2921
|
// @ ;
|
|
2922
2922
|
case 59:
|
|
2923
2923
|
x += ";";
|
|
2924
2924
|
// { rule/at-rule
|
|
2925
2925
|
default:
|
|
2926
|
-
if (it(w = br(x, t, r, f, v, a,
|
|
2926
|
+
if (it(w = br(x, t, r, f, v, a, u, U, q = [], g = [], y), s), F === 123)
|
|
2927
2927
|
if (v === 0)
|
|
2928
|
-
lt(x, t, w, w, q, s, y,
|
|
2928
|
+
lt(x, t, w, w, q, s, y, u, g);
|
|
2929
2929
|
else
|
|
2930
2930
|
switch (S === 99 && fe(x, 3) === 110 ? 100 : S) {
|
|
2931
2931
|
// d l m s
|
|
@@ -2933,10 +2933,10 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2933
2933
|
case 108:
|
|
2934
2934
|
case 109:
|
|
2935
2935
|
case 115:
|
|
2936
|
-
lt(e, w, w, i && it(br(e, w, w, 0, 0, a,
|
|
2936
|
+
lt(e, w, w, i && it(br(e, w, w, 0, 0, a, u, U, a, q = [], y), g), a, g, y, u, i ? q : g);
|
|
2937
2937
|
break;
|
|
2938
2938
|
default:
|
|
2939
|
-
lt(x, w, w, w, [""], g, 0,
|
|
2939
|
+
lt(x, w, w, w, [""], g, 0, u, g);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
2942
|
f = v = L = 0, p = C = 1, U = x = "", y = d;
|
|
@@ -2958,7 +2958,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
|
|
|
2958
2958
|
break;
|
|
2959
2959
|
// ,
|
|
2960
2960
|
case 44:
|
|
2961
|
-
|
|
2961
|
+
u[f++] = (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, l, u) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
return s;
|
|
2973
2973
|
}
|
|
2974
|
-
function br(e, t, r, i, a, s, d,
|
|
2974
|
+
function br(e, t, r, i, a, s, d, u, l, f, v) {
|
|
2975
2975
|
for (var y = a - 1, S = a === 0 ? s : [""], L = Xt(S), k = 0, p = 0, I = 0; k < i; ++k)
|
|
2976
2976
|
for (var C = 0, F = qe(e, y + 1, y = pi(p = d[k])), U = e; C < L; ++C)
|
|
2977
|
-
(U = Br(p > 0 ? S[C] + " " + F : ne(F, /&\f/g, S[C]))) && (
|
|
2978
|
-
return xt(e, t, r, a === 0 ? qt :
|
|
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, f, v);
|
|
2979
2979
|
}
|
|
2980
2980
|
function Pi(e, t, r) {
|
|
2981
2981
|
return xt(e, t, r, Vr, wt(bi()), qe(e, 2, -2), 0);
|
|
@@ -3007,8 +3007,8 @@ function Ei(e, t, r, i) {
|
|
|
3007
3007
|
function Ri(e) {
|
|
3008
3008
|
var t = Xt(e);
|
|
3009
3009
|
return function(r, i, a, s) {
|
|
3010
|
-
for (var d = "",
|
|
3011
|
-
d += e[
|
|
3010
|
+
for (var d = "", u = 0; u < t; u++)
|
|
3011
|
+
d += e[u](r, i, a, s) || "";
|
|
3012
3012
|
return d;
|
|
3013
3013
|
};
|
|
3014
3014
|
}
|
|
@@ -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),
|
|
3062
|
-
for (var v = 0; v <
|
|
3063
|
-
t.props[f] = s[
|
|
3061
|
+
for (var s = [], d = Li(r, s), u = i.props, l = 0, f = 0; l < d.length; l++)
|
|
3062
|
+
for (var v = 0; v < u.length; v++, f++)
|
|
3063
|
+
t.props[f] = s[l] ? d[l].replace(/&\f/g, u[v]) : u[v] + " " + d[l];
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
3066
|
}, Mi = function(t) {
|
|
@@ -3253,7 +3253,7 @@ var $i = function(t, r, i, a) {
|
|
|
3253
3253
|
I.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
3256
|
-
var a = t.stylisPlugins || Ii, s = {}, d,
|
|
3256
|
+
var a = t.stylisPlugins || Ii, s = {}, d, u = [];
|
|
3257
3257
|
d = t.container || document.head, Array.prototype.forEach.call(
|
|
3258
3258
|
// this means we will ignore elements which don't have a space in them which
|
|
3259
3259
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -3261,17 +3261,17 @@ var $i = function(t, r, i, a) {
|
|
|
3261
3261
|
function(p) {
|
|
3262
3262
|
for (var I = p.getAttribute("data-emotion").split(" "), C = 1; C < I.length; C++)
|
|
3263
3263
|
s[I[C]] = !0;
|
|
3264
|
-
|
|
3264
|
+
u.push(p);
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
3267
|
-
var
|
|
3267
|
+
var l, f = [Di, Mi];
|
|
3268
3268
|
{
|
|
3269
3269
|
var v, y = [Ei, _i(function(p) {
|
|
3270
3270
|
v.insert(p);
|
|
3271
3271
|
})], S = Ri(f.concat(a, y)), L = function(I) {
|
|
3272
3272
|
return Te(Ci(I), S);
|
|
3273
3273
|
};
|
|
3274
|
-
|
|
3274
|
+
l = function(I, C, F, U) {
|
|
3275
3275
|
v = F, L(I ? I + "{" + C.styles + "}" : C.styles), U && (k.inserted[C.name] = !0);
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
@@ -3288,9 +3288,9 @@ var $i = function(t, r, i, a) {
|
|
|
3288
3288
|
nonce: t.nonce,
|
|
3289
3289
|
inserted: s,
|
|
3290
3290
|
registered: {},
|
|
3291
|
-
insert:
|
|
3291
|
+
insert: l
|
|
3292
3292
|
};
|
|
3293
|
-
return k.sheet.hydrate(
|
|
3293
|
+
return k.sheet.hydrate(u), k;
|
|
3294
3294
|
}, Hi = !0;
|
|
3295
3295
|
function zi(e, t, r) {
|
|
3296
3296
|
var i = "";
|
|
@@ -3436,15 +3436,15 @@ function Xe(e, t, r) {
|
|
|
3436
3436
|
styles: d.styles,
|
|
3437
3437
|
next: be
|
|
3438
3438
|
}, d = d.next;
|
|
3439
|
-
var
|
|
3440
|
-
return
|
|
3439
|
+
var u = s.styles + ";";
|
|
3440
|
+
return u;
|
|
3441
3441
|
}
|
|
3442
3442
|
return Vi(e, t, r);
|
|
3443
3443
|
}
|
|
3444
3444
|
case "function": {
|
|
3445
3445
|
if (e !== void 0) {
|
|
3446
|
-
var
|
|
3447
|
-
return be =
|
|
3446
|
+
var l = be, f = r(e);
|
|
3447
|
+
return be = l, Xe(e, t, f);
|
|
3448
3448
|
}
|
|
3449
3449
|
break;
|
|
3450
3450
|
}
|
|
@@ -3464,11 +3464,11 @@ function Vi(e, t, r) {
|
|
|
3464
3464
|
for (var s in r) {
|
|
3465
3465
|
var d = r[s];
|
|
3466
3466
|
if (typeof d != "object") {
|
|
3467
|
-
var
|
|
3468
|
-
t != null && t[
|
|
3467
|
+
var u = d;
|
|
3468
|
+
t != null && t[u] !== void 0 ? i += s + "{" + t[u] + "}" : xr(u) && (i += Mt(s) + ":" + Or(s, u) + ";");
|
|
3469
3469
|
} else if (Array.isArray(d) && typeof d[0] == "string" && (t == null || t[d[0]] === void 0))
|
|
3470
|
-
for (var
|
|
3471
|
-
xr(d[
|
|
3470
|
+
for (var l = 0; l < d.length; l++)
|
|
3471
|
+
xr(d[l]) && (i += Mt(s) + ":" + Or(s, d[l]) + ";");
|
|
3472
3472
|
else {
|
|
3473
3473
|
var f = Xe(e, t, d);
|
|
3474
3474
|
switch (s) {
|
|
@@ -3497,10 +3497,10 @@ function qi(e, t, r) {
|
|
|
3497
3497
|
var d = s;
|
|
3498
3498
|
a += d[0];
|
|
3499
3499
|
}
|
|
3500
|
-
for (var
|
|
3501
|
-
if (a += Xe(r, t, e[
|
|
3502
|
-
var
|
|
3503
|
-
a += u
|
|
3500
|
+
for (var u = 1; u < e.length; u++)
|
|
3501
|
+
if (a += Xe(r, t, e[u]), i) {
|
|
3502
|
+
var l = s;
|
|
3503
|
+
a += l[u];
|
|
3504
3504
|
}
|
|
3505
3505
|
kr.lastIndex = 0;
|
|
3506
3506
|
for (var f = "", v; (v = kr.exec(a)) !== null; )
|
|
@@ -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
|
|
3563
|
+
var u = Pr(t, r, i), l = u || Cr(a), f = !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)
|
|
@@ -3582,7 +3582,7 @@ 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 = f &&
|
|
3585
|
+
var b = f && u === void 0 ? Cr(U) : l, h = {};
|
|
3586
3586
|
for (var P in I)
|
|
3587
3587
|
f && P === "as" || b(P) && (h[P] = I[P]);
|
|
3588
3588
|
return h.className = q, F && (h.ref = F), /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(ra, {
|
|
@@ -3591,7 +3591,7 @@ var Ki = function(t) {
|
|
|
3591
3591
|
isStringTag: typeof U == "string"
|
|
3592
3592
|
}), /* @__PURE__ */ M.createElement(U, h));
|
|
3593
3593
|
});
|
|
3594
|
-
return p.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = y, p.__emotion_forwardProp =
|
|
3594
|
+
return p.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = y, p.__emotion_forwardProp = u, Object.defineProperty(p, "toString", {
|
|
3595
3595
|
value: function() {
|
|
3596
3596
|
return "." + d;
|
|
3597
3597
|
}
|
|
@@ -3837,8 +3837,8 @@ const aa = Ee.div`
|
|
|
3837
3837
|
settings: r,
|
|
3838
3838
|
gap: i = 15
|
|
3839
3839
|
}) => {
|
|
3840
|
-
const [a, s] = V.useState(1), d = V.useRef(null),
|
|
3841
|
-
var
|
|
3840
|
+
const [a, s] = V.useState(1), d = V.useRef(null), u = V.useRef(null);
|
|
3841
|
+
var l = {
|
|
3842
3842
|
dots: !1,
|
|
3843
3843
|
speed: 500,
|
|
3844
3844
|
slidesToScroll: 1,
|
|
@@ -3851,7 +3851,7 @@ const aa = Ee.div`
|
|
|
3851
3851
|
const f = t.map((y, S) => /* @__PURE__ */ X.jsx(
|
|
3852
3852
|
oa,
|
|
3853
3853
|
{
|
|
3854
|
-
ref: S === 0 ?
|
|
3854
|
+
ref: S === 0 ? u : void 0,
|
|
3855
3855
|
styles: {
|
|
3856
3856
|
paddingRight: `${i}px`,
|
|
3857
3857
|
overflow: "visible",
|
|
@@ -3862,11 +3862,11 @@ const aa = Ee.div`
|
|
|
3862
3862
|
children: y.content
|
|
3863
3863
|
}
|
|
3864
3864
|
)), v = () => {
|
|
3865
|
-
if (
|
|
3866
|
-
s(
|
|
3865
|
+
if (l.slidesToShow) {
|
|
3866
|
+
s(l.slidesToShow);
|
|
3867
3867
|
return;
|
|
3868
3868
|
}
|
|
3869
|
-
const y = (d.current?.offsetWidth || i + 1) - i, S =
|
|
3869
|
+
const y = (d.current?.offsetWidth || i + 1) - i, S = u.current?.offsetWidth || 1;
|
|
3870
3870
|
let L = Math.floor(y / S);
|
|
3871
3871
|
L < 1 ? L = 1 : L > t.length && (L = t.length), console.debug("Slides to show > ", {
|
|
3872
3872
|
container: y,
|
|
@@ -3876,7 +3876,7 @@ const aa = Ee.div`
|
|
|
3876
3876
|
};
|
|
3877
3877
|
return V.useEffect(() => {
|
|
3878
3878
|
v();
|
|
3879
|
-
}, [d,
|
|
3879
|
+
}, [d, u]), /* @__PURE__ */ X.jsx(aa, { ref: d, styles: { ...e }, children: f.length > 0 && /* @__PURE__ */ X.jsx(li, { ...l, slidesToShow: a, children: f }) });
|
|
3880
3880
|
}, ss = ({
|
|
3881
3881
|
name: e,
|
|
3882
3882
|
checked: t,
|
|
@@ -3885,7 +3885,7 @@ const aa = Ee.div`
|
|
|
3885
3885
|
label: a,
|
|
3886
3886
|
checkboxStyles: s,
|
|
3887
3887
|
customCheckedRender: d,
|
|
3888
|
-
customUncheckedRender:
|
|
3888
|
+
customUncheckedRender: u
|
|
3889
3889
|
}) => /* @__PURE__ */ X.jsxs(
|
|
3890
3890
|
"div",
|
|
3891
3891
|
{
|
|
@@ -3916,10 +3916,10 @@ const aa = Ee.div`
|
|
|
3916
3916
|
type: "checkbox",
|
|
3917
3917
|
name: e,
|
|
3918
3918
|
checked: t,
|
|
3919
|
-
onChange: (
|
|
3919
|
+
onChange: (l) => {
|
|
3920
3920
|
},
|
|
3921
|
-
onClick: (
|
|
3922
|
-
|
|
3921
|
+
onClick: (l) => {
|
|
3922
|
+
l.stopPropagation(), r?.(!t);
|
|
3923
3923
|
},
|
|
3924
3924
|
style: {
|
|
3925
3925
|
position: "absolute",
|
|
@@ -3947,7 +3947,7 @@ const aa = Ee.div`
|
|
|
3947
3947
|
},
|
|
3948
3948
|
children: [
|
|
3949
3949
|
t && d,
|
|
3950
|
-
!t &&
|
|
3950
|
+
!t && u
|
|
3951
3951
|
]
|
|
3952
3952
|
}
|
|
3953
3953
|
)
|
|
@@ -3962,11 +3962,11 @@ const aa = Ee.div`
|
|
|
3962
3962
|
{}
|
|
3963
3963
|
), [r, i] = V.useState(!1);
|
|
3964
3964
|
return V.useEffect(() => {
|
|
3965
|
-
const a = (
|
|
3966
|
-
t({ x:
|
|
3967
|
-
}, s = (
|
|
3965
|
+
const a = (u) => {
|
|
3966
|
+
t({ x: u.clientX, y: u.clientY });
|
|
3967
|
+
}, s = (u) => {
|
|
3968
3968
|
i(!0);
|
|
3969
|
-
}, d = (
|
|
3969
|
+
}, d = (u) => {
|
|
3970
3970
|
i(!1);
|
|
3971
3971
|
};
|
|
3972
3972
|
return window.addEventListener("pointermove", a), window.addEventListener("pointerdown", s), window.addEventListener("pointerup", d), () => {
|
|
@@ -3982,39 +3982,39 @@ const aa = Ee.div`
|
|
|
3982
3982
|
onDragStart: r,
|
|
3983
3983
|
onDragEnd: i
|
|
3984
3984
|
}) => {
|
|
3985
|
-
const a = V.useRef(!1), s = V.useRef(!1), { pointerPosition: d, isPointerDown:
|
|
3985
|
+
const a = V.useRef(!1), s = V.useRef(!1), { pointerPosition: d, isPointerDown: u } = sa(), l = V.useRef({
|
|
3986
3986
|
isDragging: !1
|
|
3987
3987
|
}), f = V.useCallback(
|
|
3988
3988
|
(k) => {
|
|
3989
|
-
if (!e || !e.current || !
|
|
3989
|
+
if (!e || !e.current || !l.current)
|
|
3990
3990
|
return;
|
|
3991
|
-
const p = { ...
|
|
3992
|
-
return p.posY = k.y, p.posX = k.x,
|
|
3991
|
+
const p = { ...l.current };
|
|
3992
|
+
return p.posY = k.y, p.posX = k.x, l.current.startPosX && l.current.posX && (p.distanceX = l.current.startPosX - l.current.posX), l.current.startPosY && l.current.posY && (p.distanceY = -(l.current.startPosY - l.current.posY)), p;
|
|
3993
3993
|
},
|
|
3994
3994
|
[]
|
|
3995
3995
|
), v = V.useCallback(
|
|
3996
3996
|
(k) => {
|
|
3997
|
-
k.preventDefault(), k.stopPropagation(),
|
|
3997
|
+
k.preventDefault(), k.stopPropagation(), l.current.isDragging = !0, l.current.startPosY = k.clientY, l.current.startPosX = k.clientX;
|
|
3998
3998
|
const p = f({ x: k.clientX, y: k.clientY });
|
|
3999
|
-
p && (
|
|
3999
|
+
p && (l.current = p, r?.(p));
|
|
4000
4000
|
},
|
|
4001
4001
|
[f]
|
|
4002
4002
|
), y = V.useCallback(
|
|
4003
4003
|
(k) => {
|
|
4004
|
-
|
|
4004
|
+
l.current.isDragging = !1;
|
|
4005
4005
|
const p = f(d);
|
|
4006
|
-
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0,
|
|
4006
|
+
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0, l.current = p);
|
|
4007
4007
|
},
|
|
4008
4008
|
[f, d]
|
|
4009
4009
|
), S = V.useCallback(
|
|
4010
4010
|
(k) => {
|
|
4011
4011
|
if (console.debug(
|
|
4012
4012
|
"useDrag > onPointerMove > Is Dragging >",
|
|
4013
|
-
|
|
4014
|
-
), !
|
|
4013
|
+
l.current.isDragging
|
|
4014
|
+
), !l.current.isDragging)
|
|
4015
4015
|
return;
|
|
4016
4016
|
const p = f(d);
|
|
4017
|
-
console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p),
|
|
4017
|
+
console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p), l.current = p);
|
|
4018
4018
|
},
|
|
4019
4019
|
[f, d]
|
|
4020
4020
|
), L = V.useCallback(async () => {
|
|
@@ -4029,33 +4029,33 @@ const aa = Ee.div`
|
|
|
4029
4029
|
}, [L]), V.useEffect(() => {
|
|
4030
4030
|
S();
|
|
4031
4031
|
}, [d]), V.useEffect(() => {
|
|
4032
|
-
|
|
4033
|
-
}, [
|
|
4032
|
+
u !== s.current && (s.current = u, u || y());
|
|
4033
|
+
}, [u, s.current]);
|
|
4034
4034
|
}, us = () => {
|
|
4035
|
-
const e = (
|
|
4036
|
-
if (!f) return
|
|
4035
|
+
const e = (l, f) => {
|
|
4036
|
+
if (!f) return l;
|
|
4037
4037
|
const v = new URLSearchParams();
|
|
4038
4038
|
for (const S in f) {
|
|
4039
4039
|
const L = f[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();
|
|
4043
|
-
return y ? `${
|
|
4044
|
-
}, t = async (
|
|
4043
|
+
return y ? `${l}?${y}` : l;
|
|
4044
|
+
}, t = async (l) => {
|
|
4045
4045
|
try {
|
|
4046
4046
|
return {
|
|
4047
|
-
result: await
|
|
4048
|
-
statusCode:
|
|
4047
|
+
result: await l.json(),
|
|
4048
|
+
statusCode: l.status
|
|
4049
4049
|
};
|
|
4050
4050
|
} catch (f) {
|
|
4051
4051
|
return {
|
|
4052
4052
|
result: void 0,
|
|
4053
|
-
statusCode:
|
|
4053
|
+
statusCode: l.status,
|
|
4054
4054
|
error: f
|
|
4055
4055
|
};
|
|
4056
4056
|
}
|
|
4057
|
-
}, r = async (
|
|
4058
|
-
const S = await fetch(
|
|
4057
|
+
}, r = async (l, f, v, y) => {
|
|
4058
|
+
const S = await fetch(l, {
|
|
4059
4059
|
method: f,
|
|
4060
4060
|
headers: v,
|
|
4061
4061
|
body: y
|
|
@@ -4063,30 +4063,30 @@ const aa = Ee.div`
|
|
|
4063
4063
|
return t(S);
|
|
4064
4064
|
};
|
|
4065
4065
|
return {
|
|
4066
|
-
get: async (
|
|
4067
|
-
const y = e(
|
|
4066
|
+
get: async (l, f, v) => {
|
|
4067
|
+
const y = e(l, f);
|
|
4068
4068
|
return r(y, "GET", { ...v });
|
|
4069
4069
|
},
|
|
4070
|
-
post: async (
|
|
4071
|
-
|
|
4070
|
+
post: async (l, f, v) => r(
|
|
4071
|
+
l,
|
|
4072
4072
|
"POST",
|
|
4073
4073
|
{ "Content-Type": "application/json", ...v },
|
|
4074
4074
|
JSON.stringify(f)
|
|
4075
4075
|
),
|
|
4076
|
-
put: async (
|
|
4077
|
-
|
|
4076
|
+
put: async (l, f, v) => r(
|
|
4077
|
+
l,
|
|
4078
4078
|
"PUT",
|
|
4079
4079
|
{ "Content-Type": "application/json", ...v },
|
|
4080
4080
|
JSON.stringify(f)
|
|
4081
4081
|
),
|
|
4082
|
-
patch: async (
|
|
4083
|
-
|
|
4082
|
+
patch: async (l, f, v) => r(
|
|
4083
|
+
l,
|
|
4084
4084
|
"PATCH",
|
|
4085
4085
|
{ "Content-Type": "application/json", ...v },
|
|
4086
4086
|
JSON.stringify(f)
|
|
4087
4087
|
),
|
|
4088
|
-
delete: async (
|
|
4089
|
-
const y = e(
|
|
4088
|
+
delete: async (l, f, v) => {
|
|
4089
|
+
const y = e(l, f);
|
|
4090
4090
|
return r(y, "DELETE", { ...v });
|
|
4091
4091
|
}
|
|
4092
4092
|
};
|
|
@@ -4126,18 +4126,18 @@ const ua = {
|
|
|
4126
4126
|
const t = e.translations, r = e.language, i = (s, d) => {
|
|
4127
4127
|
if (!s)
|
|
4128
4128
|
return;
|
|
4129
|
-
let
|
|
4130
|
-
if (
|
|
4131
|
-
return d && Object.keys(d).forEach((
|
|
4132
|
-
const f = d[
|
|
4133
|
-
|
|
4134
|
-
}),
|
|
4129
|
+
let u = s[r];
|
|
4130
|
+
if (u)
|
|
4131
|
+
return d && Object.keys(d).forEach((l) => {
|
|
4132
|
+
const f = d[l];
|
|
4133
|
+
u = u.replaceAll(`{{${l}}}`, `${f}`);
|
|
4134
|
+
}), u;
|
|
4135
4135
|
};
|
|
4136
4136
|
return {
|
|
4137
4137
|
t: (s, d) => {
|
|
4138
4138
|
if (t[s]) {
|
|
4139
|
-
const
|
|
4140
|
-
return
|
|
4139
|
+
const u = i(t[s], d);
|
|
4140
|
+
return u ?? s;
|
|
4141
4141
|
}
|
|
4142
4142
|
return s;
|
|
4143
4143
|
},
|
|
@@ -4168,9 +4168,9 @@ function da() {
|
|
|
4168
4168
|
C = S.lastIndexOf(";", F - 1) + 1;
|
|
4169
4169
|
continue;
|
|
4170
4170
|
}
|
|
4171
|
-
const g =
|
|
4171
|
+
const g = u(S, C, F), w = l(S, F, g), x = S.slice(g, w);
|
|
4172
4172
|
if (k[x] === void 0) {
|
|
4173
|
-
let R =
|
|
4173
|
+
let R = u(S, F + 1, q), b = l(S, q, R);
|
|
4174
4174
|
const h = I(S.slice(R, b));
|
|
4175
4175
|
k[x] = h;
|
|
4176
4176
|
}
|
|
@@ -4178,7 +4178,7 @@ function da() {
|
|
|
4178
4178
|
} while (C < p);
|
|
4179
4179
|
return k;
|
|
4180
4180
|
}
|
|
4181
|
-
function
|
|
4181
|
+
function u(S, L, k) {
|
|
4182
4182
|
do {
|
|
4183
4183
|
const p = S.charCodeAt(L);
|
|
4184
4184
|
if (p !== 32 && p !== 9)
|
|
@@ -4186,7 +4186,7 @@ function da() {
|
|
|
4186
4186
|
} while (++L < k);
|
|
4187
4187
|
return k;
|
|
4188
4188
|
}
|
|
4189
|
-
function
|
|
4189
|
+
function l(S, L, k) {
|
|
4190
4190
|
for (; L > k; ) {
|
|
4191
4191
|
const p = S.charCodeAt(--L);
|
|
4192
4192
|
if (p !== 32 && p !== 9)
|
|
@@ -4283,10 +4283,10 @@ da();
|
|
|
4283
4283
|
var _r = "popstate";
|
|
4284
4284
|
function ha(e = {}) {
|
|
4285
4285
|
function t(i, a) {
|
|
4286
|
-
let { pathname: s, search: d, hash:
|
|
4286
|
+
let { pathname: s, search: d, hash: u } = i.location;
|
|
4287
4287
|
return Ft(
|
|
4288
4288
|
"",
|
|
4289
|
-
{ pathname: s, search: d, hash:
|
|
4289
|
+
{ pathname: s, search: d, hash: u },
|
|
4290
4290
|
// state defaults to `null` because `window.history.state` does
|
|
4291
4291
|
a.state && a.state.usr || null,
|
|
4292
4292
|
a.state && a.state.key || "default"
|
|
@@ -4357,18 +4357,18 @@ 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,
|
|
4360
|
+
let { window: a = document.defaultView, v5Compat: s = !1 } = i, d = a.history, u = "POP", l = null, f = v();
|
|
4361
4361
|
f == null && (f = 0, d.replaceState({ ...d.state, idx: f }, ""));
|
|
4362
4362
|
function v() {
|
|
4363
4363
|
return (d.state || { idx: null }).idx;
|
|
4364
4364
|
}
|
|
4365
4365
|
function y() {
|
|
4366
|
-
|
|
4366
|
+
u = "POP";
|
|
4367
4367
|
let I = v(), C = I == null ? null : I - f;
|
|
4368
|
-
f = I,
|
|
4368
|
+
f = 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
4373
|
f = v() + 1;
|
|
4374
4374
|
let U = Tr(F, f), q = p.createHref(F);
|
|
@@ -4379,30 +4379,30 @@ function ma(e, t, r, i = {}) {
|
|
|
4379
4379
|
throw g;
|
|
4380
4380
|
a.location.assign(q);
|
|
4381
4381
|
}
|
|
4382
|
-
s &&
|
|
4382
|
+
s && l && l({ action: u, location: p.location, delta: 1 });
|
|
4383
4383
|
}
|
|
4384
4384
|
function L(I, C) {
|
|
4385
|
-
|
|
4385
|
+
u = "REPLACE";
|
|
4386
4386
|
let F = Ft(p.location, I, C);
|
|
4387
4387
|
f = v();
|
|
4388
4388
|
let U = Tr(F, f), q = p.createHref(F);
|
|
4389
|
-
d.replaceState(U, "", q), s &&
|
|
4389
|
+
d.replaceState(U, "", q), s && l && l({ action: u, location: p.location, delta: 0 });
|
|
4390
4390
|
}
|
|
4391
4391
|
function k(I) {
|
|
4392
4392
|
return va(I);
|
|
4393
4393
|
}
|
|
4394
4394
|
let p = {
|
|
4395
4395
|
get action() {
|
|
4396
|
-
return
|
|
4396
|
+
return u;
|
|
4397
4397
|
},
|
|
4398
4398
|
get location() {
|
|
4399
4399
|
return e(a, d);
|
|
4400
4400
|
},
|
|
4401
4401
|
listen(I) {
|
|
4402
|
-
if (
|
|
4402
|
+
if (l)
|
|
4403
4403
|
throw new Error("A history only accepts one active listener");
|
|
4404
|
-
return a.addEventListener(_r, y),
|
|
4405
|
-
a.removeEventListener(_r, y),
|
|
4404
|
+
return a.addEventListener(_r, y), l = I, () => {
|
|
4405
|
+
a.removeEventListener(_r, y), l = null;
|
|
4406
4406
|
};
|
|
4407
4407
|
},
|
|
4408
4408
|
createHref(I) {
|
|
@@ -4440,30 +4440,30 @@ function ga(e, t, r, i) {
|
|
|
4440
4440
|
return null;
|
|
4441
4441
|
let d = nn(e);
|
|
4442
4442
|
ya(d);
|
|
4443
|
-
let
|
|
4444
|
-
for (let
|
|
4443
|
+
let u = null;
|
|
4444
|
+
for (let l = 0; u == null && l < d.length; ++l) {
|
|
4445
4445
|
let f = _a(s);
|
|
4446
|
-
|
|
4447
|
-
d[
|
|
4446
|
+
u = Ea(
|
|
4447
|
+
d[l],
|
|
4448
4448
|
f,
|
|
4449
4449
|
i
|
|
4450
4450
|
);
|
|
4451
4451
|
}
|
|
4452
|
-
return
|
|
4452
|
+
return u;
|
|
4453
4453
|
}
|
|
4454
4454
|
function nn(e, t = [], r = [], i = "") {
|
|
4455
|
-
let a = (s, d,
|
|
4456
|
-
let
|
|
4457
|
-
relativePath:
|
|
4455
|
+
let a = (s, d, u) => {
|
|
4456
|
+
let l = {
|
|
4457
|
+
relativePath: u === void 0 ? s.path || "" : u,
|
|
4458
4458
|
caseSensitive: s.caseSensitive === !0,
|
|
4459
4459
|
childrenIndex: d,
|
|
4460
4460
|
route: s
|
|
4461
4461
|
};
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
`Absolute route path "${
|
|
4465
|
-
),
|
|
4466
|
-
let f = xe([i,
|
|
4462
|
+
l.relativePath.startsWith("/") && (ae(
|
|
4463
|
+
l.relativePath.startsWith(i),
|
|
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
|
+
), l.relativePath = l.relativePath.slice(i.length));
|
|
4466
|
+
let f = 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
|
|
@@ -4479,8 +4479,8 @@ function nn(e, t = [], r = [], i = "") {
|
|
|
4479
4479
|
if (s.path === "" || !s.path?.includes("?"))
|
|
4480
4480
|
a(s, d);
|
|
4481
4481
|
else
|
|
4482
|
-
for (let
|
|
4483
|
-
a(s, d,
|
|
4482
|
+
for (let u of an(s.path))
|
|
4483
|
+
a(s, d, u);
|
|
4484
4484
|
}), t;
|
|
4485
4485
|
}
|
|
4486
4486
|
function an(e) {
|
|
@@ -4489,13 +4489,13 @@ function an(e) {
|
|
|
4489
4489
|
let [r, ...i] = t, a = r.endsWith("?"), s = r.replace(/\?$/, "");
|
|
4490
4490
|
if (i.length === 0)
|
|
4491
4491
|
return a ? [s, ""] : [s];
|
|
4492
|
-
let d = an(i.join("/")),
|
|
4493
|
-
return
|
|
4492
|
+
let d = an(i.join("/")), u = [];
|
|
4493
|
+
return u.push(
|
|
4494
4494
|
...d.map(
|
|
4495
|
-
(
|
|
4495
|
+
(l) => l === "" ? s : [s, l].join("/")
|
|
4496
4496
|
)
|
|
4497
|
-
), a &&
|
|
4498
|
-
(
|
|
4497
|
+
), a && u.push(...d), u.map(
|
|
4498
|
+
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
4499
4499
|
);
|
|
4500
4500
|
}
|
|
4501
4501
|
function ya(e) {
|
|
@@ -4529,15 +4529,15 @@ function Pa(e, t) {
|
|
|
4529
4529
|
}
|
|
4530
4530
|
function Ea(e, t, r = !1) {
|
|
4531
4531
|
let { routesMeta: i } = e, a = {}, s = "/", d = [];
|
|
4532
|
-
for (let
|
|
4533
|
-
let
|
|
4534
|
-
{ path:
|
|
4532
|
+
for (let u = 0; u < i.length; ++u) {
|
|
4533
|
+
let l = i[u], f = u === i.length - 1, v = s === "/" ? t : t.slice(s.length) || "/", y = gt(
|
|
4534
|
+
{ path: l.relativePath, caseSensitive: l.caseSensitive, end: f },
|
|
4535
4535
|
v
|
|
4536
|
-
), S =
|
|
4536
|
+
), S = l.route;
|
|
4537
4537
|
if (!y && f && r && !i[i.length - 1].route.index && (y = gt(
|
|
4538
4538
|
{
|
|
4539
|
-
path:
|
|
4540
|
-
caseSensitive:
|
|
4539
|
+
path: l.relativePath,
|
|
4540
|
+
caseSensitive: l.caseSensitive,
|
|
4541
4541
|
end: !1
|
|
4542
4542
|
},
|
|
4543
4543
|
v
|
|
@@ -4563,15 +4563,15 @@ function gt(e, t) {
|
|
|
4563
4563
|
e.end
|
|
4564
4564
|
), a = t.match(r);
|
|
4565
4565
|
if (!a) return null;
|
|
4566
|
-
let s = a[0], d = s.replace(/(.)\/+$/, "$1"),
|
|
4566
|
+
let s = a[0], d = s.replace(/(.)\/+$/, "$1"), u = a.slice(1);
|
|
4567
4567
|
return {
|
|
4568
4568
|
params: i.reduce(
|
|
4569
4569
|
(f, { paramName: v, isOptional: y }, S) => {
|
|
4570
4570
|
if (v === "*") {
|
|
4571
|
-
let k =
|
|
4571
|
+
let k = u[S] || "";
|
|
4572
4572
|
d = s.slice(0, s.length - k.length).replace(/(.)\/+$/, "$1");
|
|
4573
4573
|
}
|
|
4574
|
-
const L =
|
|
4574
|
+
const L = u[S];
|
|
4575
4575
|
return y && !L ? f[v] = void 0 : f[v] = (L || "").replace(/%2F/g, "/"), f;
|
|
4576
4576
|
},
|
|
4577
4577
|
{}
|
|
@@ -4588,7 +4588,7 @@ function Ra(e, t = !1, r = !0) {
|
|
|
4588
4588
|
);
|
|
4589
4589
|
let i = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
4590
4590
|
/\/:([\w-]+)(\?)?/g,
|
|
4591
|
-
(d,
|
|
4591
|
+
(d, u, l) => (i.push({ paramName: u, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
4592
4592
|
);
|
|
4593
4593
|
return e.endsWith("*") ? (i.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, t ? void 0 : "i"), i];
|
|
4594
4594
|
}
|
|
@@ -4655,9 +4655,9 @@ function sn(e, t, r, i = !1) {
|
|
|
4655
4655
|
!a.search || !a.search.includes("#"),
|
|
4656
4656
|
$t("#", "search", "hash", a)
|
|
4657
4657
|
));
|
|
4658
|
-
let s = e === "" || a.pathname === "", d = s ? "/" : a.pathname,
|
|
4658
|
+
let s = e === "" || a.pathname === "", d = s ? "/" : a.pathname, u;
|
|
4659
4659
|
if (d == null)
|
|
4660
|
-
|
|
4660
|
+
u = r;
|
|
4661
4661
|
else {
|
|
4662
4662
|
let y = t.length - 1;
|
|
4663
4663
|
if (!i && d.startsWith("..")) {
|
|
@@ -4666,10 +4666,10 @@ function sn(e, t, r, i = !1) {
|
|
|
4666
4666
|
S.shift(), y -= 1;
|
|
4667
4667
|
a.pathname = S.join("/");
|
|
4668
4668
|
}
|
|
4669
|
-
|
|
4669
|
+
u = y >= 0 ? t[y] : "/";
|
|
4670
4670
|
}
|
|
4671
|
-
let
|
|
4672
|
-
return !
|
|
4671
|
+
let l = Ta(a, u), f = d && d !== "/" && d.endsWith("/"), v = (s || d === ".") && r.endsWith("/");
|
|
4672
|
+
return !l.pathname.endsWith("/") && (f || 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) {
|
|
@@ -4726,8 +4726,8 @@ function Na(e, { relative: t } = {}) {
|
|
|
4726
4726
|
// router loaded. We can help them understand how to avoid that.
|
|
4727
4727
|
"useHref() may be used only in the context of a <Router> component."
|
|
4728
4728
|
);
|
|
4729
|
-
let { basename: r, navigator: i } = M.useContext(Se), { hash: a, pathname: s, search: d } = et(e, { relative: t }),
|
|
4730
|
-
return r !== "/" && (
|
|
4729
|
+
let { basename: r, navigator: i } = M.useContext(Se), { hash: a, pathname: s, search: d } = et(e, { relative: t }), u = s;
|
|
4730
|
+
return r !== "/" && (u = s === "/" ? r : xe([r, s])), i.createHref({ pathname: u, search: d, hash: a });
|
|
4731
4731
|
}
|
|
4732
4732
|
function Qe() {
|
|
4733
4733
|
return M.useContext(Ze) != null;
|
|
@@ -4759,14 +4759,14 @@ function Fa() {
|
|
|
4759
4759
|
return fn(() => {
|
|
4760
4760
|
d.current = !0;
|
|
4761
4761
|
}), M.useCallback(
|
|
4762
|
-
(
|
|
4762
|
+
(l, f = {}) => {
|
|
4763
4763
|
if (ge(d.current, cn), !d.current) return;
|
|
4764
|
-
if (typeof
|
|
4765
|
-
r.go(
|
|
4764
|
+
if (typeof l == "number") {
|
|
4765
|
+
r.go(l);
|
|
4766
4766
|
return;
|
|
4767
4767
|
}
|
|
4768
4768
|
let v = sn(
|
|
4769
|
-
|
|
4769
|
+
l,
|
|
4770
4770
|
JSON.parse(s),
|
|
4771
4771
|
a,
|
|
4772
4772
|
f.relative === "path"
|
|
@@ -4809,13 +4809,13 @@ 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],
|
|
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 : "/", f = d ? d.pathnameBase : "/", v = d && d.route;
|
|
4813
4813
|
{
|
|
4814
4814
|
let C = v && v.path || "";
|
|
4815
4815
|
hn(
|
|
4816
|
-
|
|
4816
|
+
l,
|
|
4817
4817
|
!v || C.endsWith("*") || C.endsWith("*?"),
|
|
4818
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${
|
|
4818
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
4819
4819
|
|
|
4820
4820
|
Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" : `${C}/*`}">.`
|
|
4821
4821
|
);
|
|
@@ -4845,7 +4845,7 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4845
4845
|
let I = Ba(
|
|
4846
4846
|
p && p.map(
|
|
4847
4847
|
(C) => Object.assign({}, C, {
|
|
4848
|
-
params: Object.assign({},
|
|
4848
|
+
params: Object.assign({}, u, C.params),
|
|
4849
4849
|
pathname: xe([
|
|
4850
4850
|
f,
|
|
4851
4851
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
@@ -4944,46 +4944,46 @@ function Ba(e, t = [], r = null, i = null) {
|
|
|
4944
4944
|
}
|
|
4945
4945
|
let a = e, s = r?.errors;
|
|
4946
4946
|
if (s != null) {
|
|
4947
|
-
let
|
|
4947
|
+
let l = a.findIndex(
|
|
4948
4948
|
(f) => f.route.id && s?.[f.route.id] !== void 0
|
|
4949
4949
|
);
|
|
4950
4950
|
ae(
|
|
4951
|
-
|
|
4951
|
+
l >= 0,
|
|
4952
4952
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
4953
4953
|
s
|
|
4954
4954
|
).join(",")}`
|
|
4955
4955
|
), a = a.slice(
|
|
4956
4956
|
0,
|
|
4957
|
-
Math.min(a.length,
|
|
4957
|
+
Math.min(a.length, l + 1)
|
|
4958
4958
|
);
|
|
4959
4959
|
}
|
|
4960
|
-
let d = !1,
|
|
4960
|
+
let d = !1, u = -1;
|
|
4961
4961
|
if (r)
|
|
4962
|
-
for (let
|
|
4963
|
-
let f = a[
|
|
4964
|
-
if ((f.route.HydrateFallback || f.route.hydrateFallbackElement) && (
|
|
4962
|
+
for (let l = 0; l < a.length; l++) {
|
|
4963
|
+
let f = a[l];
|
|
4964
|
+
if ((f.route.HydrateFallback || f.route.hydrateFallbackElement) && (u = l), f.route.id) {
|
|
4965
4965
|
let { loaderData: v, errors: y } = r, S = f.route.loader && !v.hasOwnProperty(f.route.id) && (!y || y[f.route.id] === void 0);
|
|
4966
4966
|
if (f.route.lazy || S) {
|
|
4967
|
-
d = !0,
|
|
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((
|
|
4972
|
+
return a.reduceRight((l, f, v) => {
|
|
4973
4973
|
let y, S = !1, L = null, k = null;
|
|
4974
|
-
r && (y = s && f.route.id ? s[f.route.id] : void 0, L = f.route.errorElement || Ya, d && (
|
|
4974
|
+
r && (y = s && f.route.id ? s[f.route.id] : void 0, L = f.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) :
|
|
4978
|
+
), S = !0, k = null) : u === v && (S = !0, k = f.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 : f.route.Component ? C = /* @__PURE__ */ M.createElement(f.route.Component, null) : f.route.element ? C = f.route.element : C =
|
|
4981
|
+
return y ? C = L : S ? C = k : f.route.Component ? C = /* @__PURE__ */ M.createElement(f.route.Component, null) : f.route.element ? C = f.route.element : C = l, /* @__PURE__ */ M.createElement(
|
|
4982
4982
|
qa,
|
|
4983
4983
|
{
|
|
4984
4984
|
match: f,
|
|
4985
4985
|
routeContext: {
|
|
4986
|
-
outlet:
|
|
4986
|
+
outlet: l,
|
|
4987
4987
|
matches: p,
|
|
4988
4988
|
isDataRoute: r != null
|
|
4989
4989
|
},
|
|
@@ -5089,7 +5089,7 @@ function to({
|
|
|
5089
5089
|
!Qe(),
|
|
5090
5090
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
5091
5091
|
);
|
|
5092
|
-
let d = e.replace(/^\/*/, "/"),
|
|
5092
|
+
let d = e.replace(/^\/*/, "/"), u = M.useMemo(
|
|
5093
5093
|
() => ({
|
|
5094
5094
|
basename: d,
|
|
5095
5095
|
navigator: a,
|
|
@@ -5100,13 +5100,13 @@ function to({
|
|
|
5100
5100
|
);
|
|
5101
5101
|
typeof r == "string" && (r = Me(r));
|
|
5102
5102
|
let {
|
|
5103
|
-
pathname:
|
|
5103
|
+
pathname: l = "/",
|
|
5104
5104
|
search: f = "",
|
|
5105
5105
|
hash: v = "",
|
|
5106
5106
|
state: y = null,
|
|
5107
5107
|
key: S = "default"
|
|
5108
5108
|
} = r, L = M.useMemo(() => {
|
|
5109
|
-
let k = Oe(
|
|
5109
|
+
let k = Oe(l, d);
|
|
5110
5110
|
return k == null ? null : {
|
|
5111
5111
|
location: {
|
|
5112
5112
|
pathname: k,
|
|
@@ -5117,11 +5117,11 @@ function to({
|
|
|
5117
5117
|
},
|
|
5118
5118
|
navigationType: i
|
|
5119
5119
|
};
|
|
5120
|
-
}, [d,
|
|
5120
|
+
}, [d, l, f, v, y, S, i]);
|
|
5121
5121
|
return ge(
|
|
5122
5122
|
L != null,
|
|
5123
|
-
`<Router basename="${d}"> is not able to match the URL "${
|
|
5124
|
-
), L == null ? null : /* @__PURE__ */ M.createElement(Se.Provider, { value:
|
|
5123
|
+
`<Router basename="${d}"> is not able to match the URL "${l}${f}${v}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
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({
|
|
5127
5127
|
children: e,
|
|
@@ -5240,16 +5240,16 @@ function It(e) {
|
|
|
5240
5240
|
function fo(e, t) {
|
|
5241
5241
|
let r, i, a, s, d;
|
|
5242
5242
|
if (io(e)) {
|
|
5243
|
-
let
|
|
5244
|
-
i =
|
|
5243
|
+
let u = e.getAttribute("action");
|
|
5244
|
+
i = u ? Oe(u, t) : null, r = e.getAttribute("method") || ut, a = It(e.getAttribute("enctype")) || ct, s = new FormData(e);
|
|
5245
5245
|
} else if (no(e) || ao(e) && (e.type === "submit" || e.type === "image")) {
|
|
5246
|
-
let
|
|
5247
|
-
if (
|
|
5246
|
+
let u = e.form;
|
|
5247
|
+
if (u == null)
|
|
5248
5248
|
throw new Error(
|
|
5249
5249
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
5250
5250
|
);
|
|
5251
|
-
let
|
|
5252
|
-
if (i =
|
|
5251
|
+
let l = e.getAttribute("formaction") || u.getAttribute("action");
|
|
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
5253
|
let { name: f, type: v, value: y } = e;
|
|
5254
5254
|
if (v === "image") {
|
|
5255
5255
|
let S = f ? `${f}.` : "";
|
|
@@ -5307,29 +5307,29 @@ async function mo(e, t, r) {
|
|
|
5307
5307
|
);
|
|
5308
5308
|
}
|
|
5309
5309
|
function Dr(e, t, r, i, a, s) {
|
|
5310
|
-
let d = (
|
|
5310
|
+
let d = (l, f) => r[f] ? l.route.id !== r[f].route.id : !0, u = (l, f) => (
|
|
5311
5311
|
// param change, /users/123 -> /users/456
|
|
5312
|
-
r[f].pathname !==
|
|
5312
|
+
r[f].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[f].route.path?.endsWith("*") && r[f].params["*"] !==
|
|
5314
|
+
r[f].route.path?.endsWith("*") && r[f].params["*"] !== l.params["*"]
|
|
5315
5315
|
);
|
|
5316
5316
|
return s === "assets" ? t.filter(
|
|
5317
|
-
(
|
|
5318
|
-
) : s === "data" ? t.filter((
|
|
5319
|
-
let v = i.routes[
|
|
5317
|
+
(l, f) => d(l, f) || u(l, f)
|
|
5318
|
+
) : s === "data" ? t.filter((l, f) => {
|
|
5319
|
+
let v = i.routes[l.route.id];
|
|
5320
5320
|
if (!v || !v.hasLoader)
|
|
5321
5321
|
return !1;
|
|
5322
|
-
if (d(
|
|
5322
|
+
if (d(l, f) || u(l, f))
|
|
5323
5323
|
return !0;
|
|
5324
|
-
if (
|
|
5325
|
-
let y =
|
|
5324
|
+
if (l.route.shouldRevalidate) {
|
|
5325
|
+
let y = l.route.shouldRevalidate({
|
|
5326
5326
|
currentUrl: new URL(
|
|
5327
5327
|
a.pathname + a.search + a.hash,
|
|
5328
5328
|
window.origin
|
|
5329
5329
|
),
|
|
5330
5330
|
currentParams: r[0]?.params || {},
|
|
5331
5331
|
nextUrl: new URL(e, window.origin),
|
|
5332
|
-
nextParams:
|
|
5332
|
+
nextParams: l.params,
|
|
5333
5333
|
defaultShouldRevalidate: !0
|
|
5334
5334
|
});
|
|
5335
5335
|
if (typeof y == "boolean")
|
|
@@ -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:
|
|
5402
|
+
let r = M.useContext(er), [i, a] = M.useState(!1), [s, d] = M.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: f, 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) => {
|
|
@@ -5430,8 +5430,8 @@ function Oo(e, t) {
|
|
|
5430
5430
|
s,
|
|
5431
5431
|
S,
|
|
5432
5432
|
{
|
|
5433
|
-
onFocus: Ve(
|
|
5434
|
-
onBlur: Ve(
|
|
5433
|
+
onFocus: Ve(u, L),
|
|
5434
|
+
onBlur: Ve(l, k),
|
|
5435
5435
|
onMouseEnter: Ve(f, L),
|
|
5436
5436
|
onMouseLeave: Ve(v, k),
|
|
5437
5437
|
onTouchStart: Ve(y, L)
|
|
@@ -5471,33 +5471,33 @@ function Po({
|
|
|
5471
5471
|
matches: t,
|
|
5472
5472
|
...r
|
|
5473
5473
|
}) {
|
|
5474
|
-
let i = Ce(), { manifest: a, routeModules: s } = vn(), { basename: d } = mn(), { loaderData:
|
|
5474
|
+
let i = Ce(), { manifest: a, routeModules: s } = vn(), { basename: d } = mn(), { loaderData: u, matches: l } = xo(), f = M.useMemo(
|
|
5475
5475
|
() => Dr(
|
|
5476
5476
|
e,
|
|
5477
5477
|
t,
|
|
5478
|
-
|
|
5478
|
+
l,
|
|
5479
5479
|
a,
|
|
5480
5480
|
i,
|
|
5481
5481
|
"data"
|
|
5482
5482
|
),
|
|
5483
|
-
[e, t,
|
|
5483
|
+
[e, t, l, a, i]
|
|
5484
5484
|
), v = M.useMemo(
|
|
5485
5485
|
() => Dr(
|
|
5486
5486
|
e,
|
|
5487
5487
|
t,
|
|
5488
|
-
|
|
5488
|
+
l,
|
|
5489
5489
|
a,
|
|
5490
5490
|
i,
|
|
5491
5491
|
"assets"
|
|
5492
5492
|
),
|
|
5493
|
-
[e, t,
|
|
5493
|
+
[e, t, l, a, i]
|
|
5494
5494
|
), y = M.useMemo(() => {
|
|
5495
5495
|
if (e === i.pathname + i.search + i.hash)
|
|
5496
5496
|
return [];
|
|
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 || (!f.some((U) => U.route.id === C.route.id) && C.route.id in
|
|
5500
|
+
!F || !F.hasLoader || (!f.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);
|
|
@@ -5507,7 +5507,7 @@ function Po({
|
|
|
5507
5507
|
), [I.pathname + I.search];
|
|
5508
5508
|
}, [
|
|
5509
5509
|
d,
|
|
5510
|
-
|
|
5510
|
+
u,
|
|
5511
5511
|
i,
|
|
5512
5512
|
a,
|
|
5513
5513
|
f,
|
|
@@ -5546,13 +5546,13 @@ function Ro({
|
|
|
5546
5546
|
let a = i.current, [s, d] = M.useState({
|
|
5547
5547
|
action: a.action,
|
|
5548
5548
|
location: a.location
|
|
5549
|
-
}),
|
|
5550
|
-
(
|
|
5551
|
-
M.startTransition(() => d(
|
|
5549
|
+
}), u = M.useCallback(
|
|
5550
|
+
(l) => {
|
|
5551
|
+
M.startTransition(() => d(l));
|
|
5552
5552
|
},
|
|
5553
5553
|
[d]
|
|
5554
5554
|
);
|
|
5555
|
-
return M.useLayoutEffect(() => a.listen(
|
|
5555
|
+
return M.useLayoutEffect(() => a.listen(u), [a, u]), /* @__PURE__ */ M.createElement(
|
|
5556
5556
|
to,
|
|
5557
5557
|
{
|
|
5558
5558
|
basename: e,
|
|
@@ -5571,8 +5571,8 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5571
5571
|
relative: a,
|
|
5572
5572
|
reloadDocument: s,
|
|
5573
5573
|
replace: d,
|
|
5574
|
-
state:
|
|
5575
|
-
target:
|
|
5574
|
+
state: u,
|
|
5575
|
+
target: l,
|
|
5576
5576
|
to: f,
|
|
5577
5577
|
preventScrollReset: v,
|
|
5578
5578
|
viewTransition: y,
|
|
@@ -5594,8 +5594,8 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5594
5594
|
S
|
|
5595
5595
|
), w = Lo(f, {
|
|
5596
5596
|
replace: d,
|
|
5597
|
-
state:
|
|
5598
|
-
target:
|
|
5597
|
+
state: u,
|
|
5598
|
+
target: l,
|
|
5599
5599
|
preventScrollReset: v,
|
|
5600
5600
|
relative: a,
|
|
5601
5601
|
viewTransition: y
|
|
@@ -5613,7 +5613,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
|
|
|
5613
5613
|
href: I || F,
|
|
5614
5614
|
onClick: C || s ? t : x,
|
|
5615
5615
|
ref: Eo(L, q),
|
|
5616
|
-
target:
|
|
5616
|
+
target: l,
|
|
5617
5617
|
"data-discover": !p && r === "render" ? "true" : void 0
|
|
5618
5618
|
}
|
|
5619
5619
|
)
|
|
@@ -5630,13 +5630,13 @@ var _o = M.forwardRef(
|
|
|
5630
5630
|
end: a = !1,
|
|
5631
5631
|
style: s,
|
|
5632
5632
|
to: d,
|
|
5633
|
-
viewTransition:
|
|
5634
|
-
children:
|
|
5633
|
+
viewTransition: u,
|
|
5634
|
+
children: l,
|
|
5635
5635
|
...f
|
|
5636
5636
|
}, v) {
|
|
5637
5637
|
let y = et(d, { relative: f.relative }), S = Ce(), L = M.useContext(Ot), { navigator: k, basename: p } = M.useContext(Se), I = L != null && // Conditional usage is OK here because the usage of a data router is static
|
|
5638
5638
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5639
|
-
Ho(y) &&
|
|
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);
|
|
5641
5641
|
const q = C !== "/" && C.endsWith("/") ? C.length - 1 : C.length;
|
|
5642
5642
|
let g = F === C || !a && F.startsWith(C) && F.charAt(q) === "/", w = U != null && (U === C || !a && U.startsWith(C) && U.charAt(C.length) === "/"), x = {
|
|
@@ -5660,9 +5660,9 @@ var _o = M.forwardRef(
|
|
|
5660
5660
|
ref: v,
|
|
5661
5661
|
style: h,
|
|
5662
5662
|
to: d,
|
|
5663
|
-
viewTransition:
|
|
5663
|
+
viewTransition: u
|
|
5664
5664
|
},
|
|
5665
|
-
typeof
|
|
5665
|
+
typeof l == "function" ? l(x) : l
|
|
5666
5666
|
);
|
|
5667
5667
|
}
|
|
5668
5668
|
);
|
|
@@ -5676,15 +5676,15 @@ var To = M.forwardRef(
|
|
|
5676
5676
|
replace: a,
|
|
5677
5677
|
state: s,
|
|
5678
5678
|
method: d = ut,
|
|
5679
|
-
action:
|
|
5680
|
-
onSubmit:
|
|
5679
|
+
action: u,
|
|
5680
|
+
onSubmit: l,
|
|
5681
5681
|
relative: f,
|
|
5682
5682
|
preventScrollReset: v,
|
|
5683
5683
|
viewTransition: y,
|
|
5684
5684
|
...S
|
|
5685
5685
|
}, L) => {
|
|
5686
|
-
let k = Io(), p = Ao(
|
|
5687
|
-
if (
|
|
5686
|
+
let k = Io(), p = Ao(u, { relative: f }), I = d.toLowerCase() === "get" ? "get" : "post", C = typeof u == "string" && yn.test(u), F = (U) => {
|
|
5687
|
+
if (l && l(U), U.defaultPrevented) return;
|
|
5688
5688
|
U.preventDefault();
|
|
5689
5689
|
let q = U.nativeEvent.submitter, g = q?.getAttribute("formmethod") || d;
|
|
5690
5690
|
k(q || U.currentTarget, {
|
|
@@ -5704,7 +5704,7 @@ var To = M.forwardRef(
|
|
|
5704
5704
|
ref: L,
|
|
5705
5705
|
method: I,
|
|
5706
5706
|
action: p,
|
|
5707
|
-
onSubmit: i ?
|
|
5707
|
+
onSubmit: i ? l : F,
|
|
5708
5708
|
...S,
|
|
5709
5709
|
"data-discover": !C && e === "render" ? "true" : void 0
|
|
5710
5710
|
}
|
|
@@ -5727,13 +5727,13 @@ function Lo(e, {
|
|
|
5727
5727
|
relative: s,
|
|
5728
5728
|
viewTransition: d
|
|
5729
5729
|
} = {}) {
|
|
5730
|
-
let
|
|
5730
|
+
let u = Kt(), l = Ce(), f = 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(
|
|
5736
|
-
|
|
5735
|
+
let y = r !== void 0 ? r : Ge(l) === Ge(f);
|
|
5736
|
+
u(e, {
|
|
5737
5737
|
replace: y,
|
|
5738
5738
|
state: i,
|
|
5739
5739
|
preventScrollReset: a,
|
|
@@ -5743,8 +5743,8 @@ function Lo(e, {
|
|
|
5743
5743
|
}
|
|
5744
5744
|
},
|
|
5745
5745
|
[
|
|
5746
|
-
u,
|
|
5747
5746
|
l,
|
|
5747
|
+
u,
|
|
5748
5748
|
f,
|
|
5749
5749
|
r,
|
|
5750
5750
|
i,
|
|
@@ -5773,11 +5773,11 @@ function Do(e) {
|
|
|
5773
5773
|
),
|
|
5774
5774
|
[i.search]
|
|
5775
5775
|
), s = Kt(), d = M.useCallback(
|
|
5776
|
-
(
|
|
5776
|
+
(u, l) => {
|
|
5777
5777
|
const f = Ut(
|
|
5778
|
-
typeof
|
|
5778
|
+
typeof u == "function" ? u(a) : u
|
|
5779
5779
|
);
|
|
5780
|
-
r.current = !0, s("?" + f,
|
|
5780
|
+
r.current = !0, s("?" + f, 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:
|
|
5794
|
+
let { action: s, method: d, encType: u, formData: l, body: f } = fo(
|
|
5795
5795
|
i,
|
|
5796
5796
|
t
|
|
5797
5797
|
);
|
|
@@ -5799,19 +5799,19 @@ function Io() {
|
|
|
5799
5799
|
let v = a.fetcherKey || $o();
|
|
5800
5800
|
await e.fetch(v, r, a.action || s, {
|
|
5801
5801
|
preventScrollReset: a.preventScrollReset,
|
|
5802
|
-
formData:
|
|
5802
|
+
formData: l,
|
|
5803
5803
|
body: f,
|
|
5804
5804
|
formMethod: a.method || d,
|
|
5805
|
-
formEncType: a.encType ||
|
|
5805
|
+
formEncType: a.encType || u,
|
|
5806
5806
|
flushSync: a.flushSync
|
|
5807
5807
|
});
|
|
5808
5808
|
} else
|
|
5809
5809
|
await e.navigate(a.action || s, {
|
|
5810
5810
|
preventScrollReset: a.preventScrollReset,
|
|
5811
|
-
formData:
|
|
5811
|
+
formData: l,
|
|
5812
5812
|
body: f,
|
|
5813
5813
|
formMethod: a.method || d,
|
|
5814
|
-
formEncType: a.encType ||
|
|
5814
|
+
formEncType: a.encType || u,
|
|
5815
5815
|
replace: a.replace,
|
|
5816
5816
|
state: a.state,
|
|
5817
5817
|
fromRouteId: r,
|
|
@@ -5828,10 +5828,10 @@ function Ao(e, { relative: t } = {}) {
|
|
|
5828
5828
|
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, d = Ce();
|
|
5829
5829
|
if (e == null) {
|
|
5830
5830
|
s.search = d.search;
|
|
5831
|
-
let
|
|
5832
|
-
if (
|
|
5833
|
-
|
|
5834
|
-
let v =
|
|
5831
|
+
let u = new URLSearchParams(s.search), l = u.getAll("index");
|
|
5832
|
+
if (l.some((v) => v === "")) {
|
|
5833
|
+
u.delete("index"), l.filter((y) => y).forEach((y) => u.append("index", y));
|
|
5834
|
+
let v = u.toString();
|
|
5835
5835
|
s.search = v ? `?${v}` : "";
|
|
5836
5836
|
}
|
|
5837
5837
|
}
|
|
@@ -5894,9 +5894,9 @@ const Sn = V.createContext({
|
|
|
5894
5894
|
}), t(y);
|
|
5895
5895
|
},
|
|
5896
5896
|
[e, t]
|
|
5897
|
-
),
|
|
5897
|
+
), u = ve(() => {
|
|
5898
5898
|
t({});
|
|
5899
|
-
}, [e, t]),
|
|
5899
|
+
}, [e, t]), l = ve(
|
|
5900
5900
|
(v, y) => {
|
|
5901
5901
|
t((S) => {
|
|
5902
5902
|
const L = new URLSearchParams(S);
|
|
@@ -5919,28 +5919,28 @@ const Sn = V.createContext({
|
|
|
5919
5919
|
getAll: () => r,
|
|
5920
5920
|
get: a,
|
|
5921
5921
|
getMany: i,
|
|
5922
|
-
set:
|
|
5922
|
+
set: l,
|
|
5923
5923
|
setMany: f,
|
|
5924
5924
|
remove: s,
|
|
5925
5925
|
removeMany: d,
|
|
5926
|
-
removeAll:
|
|
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
|
-
v != null &&
|
|
5933
|
-
}),
|
|
5929
|
+
const e = Kt(), t = Ce(), r = zo(), i = Yt(Sn), a = (u) => {
|
|
5930
|
+
const l = new URL(u.path, "http://dummy-base");
|
|
5931
|
+
return u.params && Object.entries(u.params).forEach(([f, v]) => {
|
|
5932
|
+
v != null && l.searchParams.set(f, String(v));
|
|
5933
|
+
}), l.pathname + l.search;
|
|
5934
5934
|
}, s = V.useCallback(
|
|
5935
|
-
(
|
|
5936
|
-
const
|
|
5937
|
-
|
|
5935
|
+
(u) => {
|
|
5936
|
+
const l = a(u);
|
|
5937
|
+
u.addToHistory !== !1 ? (e(l), i.addToHistory(l)) : (e(l, { replace: !0 }), i.popFromHistory(1), i.addToHistory(l));
|
|
5938
5938
|
},
|
|
5939
5939
|
[e]
|
|
5940
5940
|
), d = V.useCallback(
|
|
5941
|
-
(
|
|
5942
|
-
const
|
|
5943
|
-
e(-
|
|
5941
|
+
(u) => {
|
|
5942
|
+
const l = u || 1;
|
|
5943
|
+
e(-l), i.popFromHistory(l);
|
|
5944
5944
|
},
|
|
5945
5945
|
[e]
|
|
5946
5946
|
);
|
|
@@ -5958,10 +5958,10 @@ const Sn = V.createContext({
|
|
|
5958
5958
|
}) => {
|
|
5959
5959
|
const i = V.useRef([]), [a, s] = V.useState([]), d = V.useCallback((y) => {
|
|
5960
5960
|
i.current = y, s(y);
|
|
5961
|
-
}, []),
|
|
5961
|
+
}, []), u = (y, S = !1) => {
|
|
5962
5962
|
let L = [...i.current];
|
|
5963
5963
|
S && (L = L.slice(0, L.length - 1)), L = [...L, y], d(L);
|
|
5964
|
-
},
|
|
5964
|
+
}, l = (y) => {
|
|
5965
5965
|
let S = "", L = [];
|
|
5966
5966
|
return i.current.length === 0 ? "/" : (i.current.length <= y ? (S = i.current[0], L = [S]) : (L = i.current.slice(
|
|
5967
5967
|
0,
|
|
@@ -5975,8 +5975,8 @@ const Sn = V.createContext({
|
|
|
5975
5975
|
{
|
|
5976
5976
|
value: {
|
|
5977
5977
|
history: a,
|
|
5978
|
-
addToHistory:
|
|
5979
|
-
popFromHistory:
|
|
5978
|
+
addToHistory: u,
|
|
5979
|
+
popFromHistory: l,
|
|
5980
5980
|
replaceHistory: f
|
|
5981
5981
|
},
|
|
5982
5982
|
children: /* @__PURE__ */ X.jsx(Ro, { children: /* @__PURE__ */ X.jsxs(X.Fragment, { children: [
|
|
@@ -5995,17 +5995,17 @@ const Sn = V.createContext({
|
|
|
5995
5995
|
}
|
|
5996
5996
|
}
|
|
5997
5997
|
), ms = ({ children: e }) => {
|
|
5998
|
-
const t = V.useRef([]), [r, i] = V.useState([]), a = V.useCallback((
|
|
5999
|
-
t.current =
|
|
6000
|
-
}, []), s = V.useCallback((
|
|
6001
|
-
(
|
|
6002
|
-
s(
|
|
5998
|
+
const t = V.useRef([]), [r, i] = V.useState([]), a = V.useCallback((l) => {
|
|
5999
|
+
t.current = l, i(l);
|
|
6000
|
+
}, []), s = V.useCallback((l) => t.current.some((f) => f === l), []), d = V.useCallback(
|
|
6001
|
+
(l) => {
|
|
6002
|
+
s(l) || a([...t.current, l]);
|
|
6003
6003
|
},
|
|
6004
6004
|
[s, a]
|
|
6005
|
-
),
|
|
6006
|
-
(
|
|
6007
|
-
s(
|
|
6008
|
-
t.current.filter((v) => v !==
|
|
6005
|
+
), u = V.useCallback(
|
|
6006
|
+
(l) => {
|
|
6007
|
+
s(l) && a(
|
|
6008
|
+
t.current.filter((v) => v !== l)
|
|
6009
6009
|
);
|
|
6010
6010
|
},
|
|
6011
6011
|
[s, a]
|
|
@@ -6017,7 +6017,7 @@ const Sn = V.createContext({
|
|
|
6017
6017
|
visibleItems: r,
|
|
6018
6018
|
isItemVisible: s,
|
|
6019
6019
|
showItem: d,
|
|
6020
|
-
hideItem:
|
|
6020
|
+
hideItem: u
|
|
6021
6021
|
},
|
|
6022
6022
|
children: e
|
|
6023
6023
|
}
|
|
@@ -6041,16 +6041,16 @@ const Sn = V.createContext({
|
|
|
6041
6041
|
}) => {
|
|
6042
6042
|
const { isItemVisible: i } = Ct(), [a, s] = V.useState({
|
|
6043
6043
|
isDragging: !1
|
|
6044
|
-
}), d = V.useRef(null),
|
|
6044
|
+
}), d = V.useRef(null), u = V.useRef(null), l = V.useRef(null), [f, v] = V.useState(0), y = (k) => {
|
|
6045
6045
|
s(k);
|
|
6046
6046
|
}, S = (k) => {
|
|
6047
6047
|
s(k), v(0);
|
|
6048
6048
|
};
|
|
6049
6049
|
return la({
|
|
6050
|
-
ref:
|
|
6050
|
+
ref: l,
|
|
6051
6051
|
onDrag: (k) => {
|
|
6052
6052
|
s(k);
|
|
6053
|
-
const p =
|
|
6053
|
+
const p = u.current?.clientHeight || 0;
|
|
6054
6054
|
k.distanceY && (v(k.distanceY < 0 ? 0 : -k.distanceY), k.distanceY >= p - r && (t?.(), S(k)));
|
|
6055
6055
|
},
|
|
6056
6056
|
onDragEnd: S,
|
|
@@ -6058,16 +6058,16 @@ const Sn = V.createContext({
|
|
|
6058
6058
|
}), {
|
|
6059
6059
|
isVisible: i(e),
|
|
6060
6060
|
drawerParentRef: d,
|
|
6061
|
-
drawerRef:
|
|
6061
|
+
drawerRef: u,
|
|
6062
6062
|
drawerBottomDistance: f,
|
|
6063
|
-
handleRef:
|
|
6063
|
+
handleRef: l
|
|
6064
6064
|
};
|
|
6065
6065
|
}, vs = (e) => {
|
|
6066
6066
|
const { children: t, backgroundStyles: r, contentStyles: i, handle: a } = e, {
|
|
6067
6067
|
isVisible: s,
|
|
6068
6068
|
drawerParentRef: d,
|
|
6069
|
-
drawerRef:
|
|
6070
|
-
handleRef:
|
|
6069
|
+
drawerRef: u,
|
|
6070
|
+
handleRef: l,
|
|
6071
6071
|
drawerBottomDistance: f
|
|
6072
6072
|
} = No(e);
|
|
6073
6073
|
return /* @__PURE__ */ X.jsx(X.Fragment, { children: s && /* @__PURE__ */ X.jsx(
|
|
@@ -6091,7 +6091,7 @@ const Sn = V.createContext({
|
|
|
6091
6091
|
children: /* @__PURE__ */ X.jsxs(
|
|
6092
6092
|
"div",
|
|
6093
6093
|
{
|
|
6094
|
-
ref:
|
|
6094
|
+
ref: u,
|
|
6095
6095
|
style: {
|
|
6096
6096
|
width: "100%",
|
|
6097
6097
|
height: "fit-content",
|
|
@@ -6117,7 +6117,7 @@ const Sn = V.createContext({
|
|
|
6117
6117
|
/* @__PURE__ */ X.jsx(
|
|
6118
6118
|
"div",
|
|
6119
6119
|
{
|
|
6120
|
-
ref:
|
|
6120
|
+
ref: l,
|
|
6121
6121
|
style: {
|
|
6122
6122
|
display: "flex",
|
|
6123
6123
|
alignItems: "center",
|
|
@@ -6186,7 +6186,7 @@ const Sn = V.createContext({
|
|
|
6186
6186
|
console.error(`Form > Failed To Validate Field ${f.name}: `, S);
|
|
6187
6187
|
}
|
|
6188
6188
|
return f;
|
|
6189
|
-
},
|
|
6189
|
+
}, u = V.useCallback(
|
|
6190
6190
|
async (f) => {
|
|
6191
6191
|
try {
|
|
6192
6192
|
if (a.current)
|
|
@@ -6207,7 +6207,7 @@ const Sn = V.createContext({
|
|
|
6207
6207
|
submitForm: (f) => {
|
|
6208
6208
|
i.current && i.current.requestSubmit();
|
|
6209
6209
|
},
|
|
6210
|
-
handleFormSubmission:
|
|
6210
|
+
handleFormSubmission: u
|
|
6211
6211
|
};
|
|
6212
6212
|
}, Wo = Ee.div`
|
|
6213
6213
|
display: flex;
|
|
@@ -6225,7 +6225,7 @@ const Sn = V.createContext({
|
|
|
6225
6225
|
pointer-events: none;
|
|
6226
6226
|
}
|
|
6227
6227
|
`, gs = (e) => {
|
|
6228
|
-
const { children: t, styles: r, childrenStyles: i, submitButton: a } = e, { ref: s, handleFormSubmission: d, submitForm:
|
|
6228
|
+
const { children: t, styles: r, childrenStyles: i, submitButton: a } = e, { ref: s, handleFormSubmission: d, submitForm: u } = Fo(e);
|
|
6229
6229
|
return /* @__PURE__ */ X.jsxs(
|
|
6230
6230
|
"form",
|
|
6231
6231
|
{
|
|
@@ -6257,7 +6257,7 @@ const Sn = V.createContext({
|
|
|
6257
6257
|
/* @__PURE__ */ X.jsx(
|
|
6258
6258
|
Wo,
|
|
6259
6259
|
{
|
|
6260
|
-
onClick:
|
|
6260
|
+
onClick: u,
|
|
6261
6261
|
styles: {
|
|
6262
6262
|
...a.styles
|
|
6263
6263
|
},
|
|
@@ -6291,7 +6291,7 @@ const Sn = V.createContext({
|
|
|
6291
6291
|
e.onBlur?.();
|
|
6292
6292
|
},
|
|
6293
6293
|
handleOnFocus: (a) => {
|
|
6294
|
-
|
|
6294
|
+
e.onFocus?.();
|
|
6295
6295
|
},
|
|
6296
6296
|
onValueChanged: (a) => {
|
|
6297
6297
|
e.onChange?.(a.currentTarget.value);
|
|
@@ -6319,8 +6319,8 @@ const Sn = V.createContext({
|
|
|
6319
6319
|
name: a,
|
|
6320
6320
|
label: s,
|
|
6321
6321
|
leftIcon: d,
|
|
6322
|
-
rightIcon:
|
|
6323
|
-
bottomMessage:
|
|
6322
|
+
rightIcon: u,
|
|
6323
|
+
bottomMessage: l,
|
|
6324
6324
|
placeHolder: f,
|
|
6325
6325
|
autoComplete: v = "off",
|
|
6326
6326
|
value: y,
|
|
@@ -6401,11 +6401,11 @@ const Sn = V.createContext({
|
|
|
6401
6401
|
}
|
|
6402
6402
|
}
|
|
6403
6403
|
),
|
|
6404
|
-
|
|
6404
|
+
u
|
|
6405
6405
|
]
|
|
6406
6406
|
}
|
|
6407
6407
|
),
|
|
6408
|
-
|
|
6408
|
+
l
|
|
6409
6409
|
]
|
|
6410
6410
|
}
|
|
6411
6411
|
);
|
|
@@ -6490,36 +6490,36 @@ const Sn = V.createContext({
|
|
|
6490
6490
|
) });
|
|
6491
6491
|
}, qo = (e) => {
|
|
6492
6492
|
const t = Pn(""), r = ve(
|
|
6493
|
-
(
|
|
6493
|
+
(u) => (e.allowNegatives ? (u = u.replace(/-/g, (l, f) => f === 0 ? "-" : ""), u.indexOf("-") > 0 && (u = u.replace(/-/g, ""), u = "-" + u)) : u = u.replace(/-/g, ""), u),
|
|
6494
6494
|
[e]
|
|
6495
6495
|
), i = ve(
|
|
6496
|
-
(
|
|
6496
|
+
(u) => {
|
|
6497
6497
|
if (e.allowDecimals) {
|
|
6498
|
-
|
|
6499
|
-
const
|
|
6500
|
-
|
|
6501
|
-
const [f, ...v] =
|
|
6498
|
+
u.startsWith(".") && (u = "0" + u), u.length === 2 && u[0] === "-" && u[1] === "." && (u = "-");
|
|
6499
|
+
const l = u.indexOf(".");
|
|
6500
|
+
l !== -1 && (u = u.slice(0, l + 1) + u.slice(l + 1).replace(/\./g, ""));
|
|
6501
|
+
const [f, ...v] = u.split("."), [y, ...S] = t.current.split(".");
|
|
6502
6502
|
let L = v.join(""), k = S.join("");
|
|
6503
|
-
e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = k : L = L.slice(0, e.decimalScale)),
|
|
6503
|
+
e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = k : L = L.slice(0, e.decimalScale)), u = L || u.endsWith(".") ? `${f}.${L}` : f;
|
|
6504
6504
|
} else
|
|
6505
|
-
|
|
6506
|
-
return
|
|
6505
|
+
u = u.replace(/\./g, "");
|
|
6506
|
+
return u;
|
|
6507
6507
|
},
|
|
6508
6508
|
[e]
|
|
6509
6509
|
), a = ve(
|
|
6510
|
-
(
|
|
6511
|
-
const
|
|
6510
|
+
(u) => {
|
|
6511
|
+
const l = Number(u);
|
|
6512
6512
|
var f = e.max;
|
|
6513
|
-
return f === void 0 && (f = e.maxLength ? Number("9".repeat(e.maxLength)) : void 0), !isNaN(
|
|
6513
|
+
return f === void 0 && (f = e.maxLength ? Number("9".repeat(e.maxLength)) : void 0), !isNaN(l) && (e.min !== void 0 && l < e.min || f !== void 0 && l > f) ? t.current ?? u : u;
|
|
6514
6514
|
},
|
|
6515
6515
|
[e]
|
|
6516
6516
|
), s = ve(
|
|
6517
|
-
(
|
|
6518
|
-
const
|
|
6519
|
-
let y =
|
|
6517
|
+
(u) => {
|
|
6518
|
+
const l = u.target, f = l.selectionStart ?? 0, v = l.selectionEnd ?? 0;
|
|
6519
|
+
let y = l.value;
|
|
6520
6520
|
y = y.replace(/[^0-9\.\-]/g, ""), y = r(y), y = i(y), y = a(y);
|
|
6521
|
-
const S = y.length -
|
|
6522
|
-
|
|
6521
|
+
const S = y.length - l.value.length;
|
|
6522
|
+
l.value = y, l.setSelectionRange(f + S, v + S), t.current = y;
|
|
6523
6523
|
},
|
|
6524
6524
|
[r, i, a]
|
|
6525
6525
|
);
|
|
@@ -6545,19 +6545,19 @@ const Sn = V.createContext({
|
|
|
6545
6545
|
});
|
|
6546
6546
|
return /* @__PURE__ */ X.jsx(Vo, { type: "text", ...a });
|
|
6547
6547
|
}, Bo = (e) => {
|
|
6548
|
-
const t = V.useRef(null), r = V.useRef(null), [i, a] = V.useState(24), [s, d] = V.useState(24),
|
|
6548
|
+
const t = V.useRef(null), r = V.useRef(null), [i, a] = V.useState(24), [s, d] = V.useState(24), u = V.useCallback(() => {
|
|
6549
6549
|
t.current && a(t.current.clientHeight);
|
|
6550
|
-
}, [t, t.current]),
|
|
6550
|
+
}, [t, t.current]), l = V.useCallback(() => {
|
|
6551
6551
|
r.current && d(r.current.clientHeight);
|
|
6552
6552
|
}, [r, r.current]), f = V.useCallback(() => {
|
|
6553
6553
|
let v = 0;
|
|
6554
6554
|
return e.header?.visibility === "always" && (v = v + (i || 0)), e.footer?.visibility === "always" && (v = v + (s || 0)), v;
|
|
6555
6555
|
}, [r, r.current]);
|
|
6556
6556
|
return V.useEffect(() => {
|
|
6557
|
-
l();
|
|
6558
|
-
}, [l, t, t.current]), V.useEffect(() => {
|
|
6559
6557
|
u();
|
|
6560
|
-
}, [u,
|
|
6558
|
+
}, [u, t, t.current]), V.useEffect(() => {
|
|
6559
|
+
l();
|
|
6560
|
+
}, [l, r, r.current]), {
|
|
6561
6561
|
header: {
|
|
6562
6562
|
...e.header,
|
|
6563
6563
|
visible: e.header !== void 0,
|
|
@@ -6602,7 +6602,7 @@ const Sn = V.createContext({
|
|
|
6602
6602
|
allowScroll: a = !0,
|
|
6603
6603
|
floatingContent: s,
|
|
6604
6604
|
reserveSpaceForScrollbar: d
|
|
6605
|
-
} = e, { footer:
|
|
6605
|
+
} = e, { footer: u, header: l } = Bo(e);
|
|
6606
6606
|
return /* @__PURE__ */ X.jsxs(
|
|
6607
6607
|
Xo,
|
|
6608
6608
|
{
|
|
@@ -6611,15 +6611,15 @@ const Sn = V.createContext({
|
|
|
6611
6611
|
...t
|
|
6612
6612
|
},
|
|
6613
6613
|
children: [
|
|
6614
|
-
|
|
6614
|
+
l.visible && /* @__PURE__ */ X.jsx(
|
|
6615
6615
|
"div",
|
|
6616
6616
|
{
|
|
6617
|
-
ref:
|
|
6617
|
+
ref: l.ref,
|
|
6618
6618
|
id: "page-header",
|
|
6619
6619
|
style: {
|
|
6620
6620
|
width: "100%",
|
|
6621
6621
|
zIndex: 99,
|
|
6622
|
-
position:
|
|
6622
|
+
position: l.visibility === "fixed" ? "relative" : "sticky",
|
|
6623
6623
|
top: 0,
|
|
6624
6624
|
left: 0,
|
|
6625
6625
|
right: 0,
|
|
@@ -6627,9 +6627,9 @@ const Sn = V.createContext({
|
|
|
6627
6627
|
flexDirection: "row",
|
|
6628
6628
|
height: "fit-content",
|
|
6629
6629
|
boxSizing: "border-box",
|
|
6630
|
-
...
|
|
6630
|
+
...l.styles
|
|
6631
6631
|
},
|
|
6632
|
-
children:
|
|
6632
|
+
children: l.content
|
|
6633
6633
|
}
|
|
6634
6634
|
),
|
|
6635
6635
|
/* @__PURE__ */ X.jsx(
|
|
@@ -6641,8 +6641,8 @@ const Sn = V.createContext({
|
|
|
6641
6641
|
overflow: "hidden",
|
|
6642
6642
|
display: "flex",
|
|
6643
6643
|
flex: 1,
|
|
6644
|
-
marginTop: `-${
|
|
6645
|
-
marginBottom: `-${
|
|
6644
|
+
marginTop: `-${l.height}px`,
|
|
6645
|
+
marginBottom: `-${u.height}px`
|
|
6646
6646
|
},
|
|
6647
6647
|
children: /* @__PURE__ */ X.jsx(
|
|
6648
6648
|
"div",
|
|
@@ -6659,8 +6659,8 @@ const Sn = V.createContext({
|
|
|
6659
6659
|
scrollbarGutter: d ? "stable" : void 0,
|
|
6660
6660
|
paddingLeft: "0px",
|
|
6661
6661
|
paddingRight: "0px",
|
|
6662
|
-
paddingTop: `${
|
|
6663
|
-
paddingBottom: `${
|
|
6662
|
+
paddingTop: `${l.height}px`,
|
|
6663
|
+
paddingBottom: `${u.height}px`,
|
|
6664
6664
|
...r
|
|
6665
6665
|
},
|
|
6666
6666
|
children: i
|
|
@@ -6668,15 +6668,15 @@ const Sn = V.createContext({
|
|
|
6668
6668
|
)
|
|
6669
6669
|
}
|
|
6670
6670
|
),
|
|
6671
|
-
|
|
6671
|
+
u.visible && /* @__PURE__ */ X.jsx(
|
|
6672
6672
|
"div",
|
|
6673
6673
|
{
|
|
6674
|
-
ref:
|
|
6674
|
+
ref: u.ref,
|
|
6675
6675
|
id: "page-footer",
|
|
6676
6676
|
style: {
|
|
6677
6677
|
width: "100%",
|
|
6678
6678
|
zIndex: 99,
|
|
6679
|
-
position:
|
|
6679
|
+
position: u.visibility === "fixed" ? "relative" : "sticky",
|
|
6680
6680
|
bottom: 0,
|
|
6681
6681
|
left: 0,
|
|
6682
6682
|
right: 0,
|
|
@@ -6684,9 +6684,9 @@ const Sn = V.createContext({
|
|
|
6684
6684
|
flexDirection: "row",
|
|
6685
6685
|
height: "fit-content",
|
|
6686
6686
|
boxSizing: "border-box",
|
|
6687
|
-
...
|
|
6687
|
+
...u.styles
|
|
6688
6688
|
},
|
|
6689
|
-
children:
|
|
6689
|
+
children: u.content
|
|
6690
6690
|
}
|
|
6691
6691
|
)
|
|
6692
6692
|
]
|
|
@@ -6747,7 +6747,7 @@ function Jo() {
|
|
|
6747
6747
|
(function(r, i) {
|
|
6748
6748
|
e.exports = i();
|
|
6749
6749
|
})(Ko, function() {
|
|
6750
|
-
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", d = "second",
|
|
6750
|
+
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", d = "second", u = "minute", l = "hour", f = "day", v = "week", y = "month", S = "quarter", L = "year", k = "date", p = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
6751
6751
|
var E = ["th", "st", "nd", "rd"], j = T % 100;
|
|
6752
6752
|
return "[" + T + (E[(j - 20) % 10] || E[j] || E[0]) + "]";
|
|
6753
6753
|
} }, U = function(T, E, j) {
|
|
@@ -6763,7 +6763,7 @@ function Jo() {
|
|
|
6763
6763
|
}, a: function(T) {
|
|
6764
6764
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
6765
6765
|
}, p: function(T) {
|
|
6766
|
-
return { M: y, y: L, w: v, d: f, D: k, h:
|
|
6766
|
+
return { M: y, y: L, w: v, d: f, D: k, h: l, m: u, s: d, ms: s, Q: S }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
6767
6767
|
}, u: function(T) {
|
|
6768
6768
|
return T === void 0;
|
|
6769
6769
|
} }, g = "en", w = {};
|
|
@@ -6849,9 +6849,9 @@ function Jo() {
|
|
|
6849
6849
|
case f:
|
|
6850
6850
|
case k:
|
|
6851
6851
|
return O(N + "Hours", 0);
|
|
6852
|
-
case u:
|
|
6853
|
-
return O(N + "Minutes", 1);
|
|
6854
6852
|
case l:
|
|
6853
|
+
return O(N + "Minutes", 1);
|
|
6854
|
+
case u:
|
|
6855
6855
|
return O(N + "Seconds", 2);
|
|
6856
6856
|
case d:
|
|
6857
6857
|
return O(N + "Milliseconds", 3);
|
|
@@ -6861,7 +6861,7 @@ function Jo() {
|
|
|
6861
6861
|
}, E.endOf = function(j) {
|
|
6862
6862
|
return this.startOf(j, !1);
|
|
6863
6863
|
}, E.$set = function(j, o) {
|
|
6864
|
-
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""), c = (H = {}, H[f] = n + "Date", H[k] = n + "Date", H[y] = n + "Month", H[L] = n + "FullYear", H[
|
|
6864
|
+
var H, m = P.p(j), n = "set" + (this.$u ? "UTC" : ""), c = (H = {}, H[f] = n + "Date", H[k] = n + "Date", H[y] = n + "Month", H[L] = n + "FullYear", H[l] = n + "Hours", H[u] = n + "Minutes", H[d] = n + "Seconds", H[s] = n + "Milliseconds", H)[m], O = m === f ? this.$D + (o - this.$W) : o;
|
|
6865
6865
|
if (m === y || m === L) {
|
|
6866
6866
|
var $ = this.clone().set(k, 1);
|
|
6867
6867
|
$.$d[c](O), $.init(), this.$d = $.set(k, Math.min(this.$D, $.daysInMonth())).$d;
|
|
@@ -6882,7 +6882,7 @@ function Jo() {
|
|
|
6882
6882
|
if (n === L) return this.set(L, this.$y + j);
|
|
6883
6883
|
if (n === f) return c(1);
|
|
6884
6884
|
if (n === v) return c(7);
|
|
6885
|
-
var O = (H = {}, H[
|
|
6885
|
+
var O = (H = {}, H[u] = i, H[l] = a, H[d] = r, H)[n] || 1, $ = this.$d.getTime() + j * O;
|
|
6886
6886
|
return P.w($, this);
|
|
6887
6887
|
}, E.subtract = function(j, o) {
|
|
6888
6888
|
return this.add(-1 * j, o);
|
|
@@ -6974,10 +6974,10 @@ function Jo() {
|
|
|
6974
6974
|
case f:
|
|
6975
6975
|
m = (D - $) / 864e5;
|
|
6976
6976
|
break;
|
|
6977
|
-
case
|
|
6977
|
+
case l:
|
|
6978
6978
|
m = D / a;
|
|
6979
6979
|
break;
|
|
6980
|
-
case
|
|
6980
|
+
case u:
|
|
6981
6981
|
m = D / i;
|
|
6982
6982
|
break;
|
|
6983
6983
|
case d:
|
|
@@ -7007,7 +7007,7 @@ function Jo() {
|
|
|
7007
7007
|
return this.$d.toUTCString();
|
|
7008
7008
|
}, T;
|
|
7009
7009
|
}(), _ = A.prototype;
|
|
7010
|
-
return h.prototype = _, [["$ms", s], ["$s", d], ["$m",
|
|
7010
|
+
return h.prototype = _, [["$ms", s], ["$s", d], ["$m", u], ["$H", l], ["$W", f], ["$M", y], ["$y", L], ["$D", k]].forEach(function(T) {
|
|
7011
7011
|
_[T[1]] = function(E) {
|
|
7012
7012
|
return this.$g(E, T[0], T[1]);
|
|
7013
7013
|
};
|
|
@@ -7028,30 +7028,30 @@ function es() {
|
|
|
7028
7028
|
e.exports = i();
|
|
7029
7029
|
})(Qo, function() {
|
|
7030
7030
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
|
|
7031
|
-
return function(s, d,
|
|
7032
|
-
var
|
|
7033
|
-
|
|
7031
|
+
return function(s, d, u) {
|
|
7032
|
+
var l = d.prototype;
|
|
7033
|
+
u.utc = function(p) {
|
|
7034
7034
|
var I = { date: p, utc: !0, args: arguments };
|
|
7035
7035
|
return new d(I);
|
|
7036
|
-
},
|
|
7037
|
-
var I =
|
|
7036
|
+
}, l.utc = function(p) {
|
|
7037
|
+
var I = u(this.toDate(), { locale: this.$L, utc: !0 });
|
|
7038
7038
|
return p ? I.add(this.utcOffset(), r) : I;
|
|
7039
|
-
},
|
|
7040
|
-
return
|
|
7039
|
+
}, l.local = function() {
|
|
7040
|
+
return u(this.toDate(), { locale: this.$L, utc: !1 });
|
|
7041
7041
|
};
|
|
7042
|
-
var f =
|
|
7043
|
-
|
|
7042
|
+
var f = l.parse;
|
|
7043
|
+
l.parse = function(p) {
|
|
7044
7044
|
p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), f.call(this, p);
|
|
7045
7045
|
};
|
|
7046
|
-
var v =
|
|
7047
|
-
|
|
7046
|
+
var v = l.init;
|
|
7047
|
+
l.init = function() {
|
|
7048
7048
|
if (this.$u) {
|
|
7049
7049
|
var p = this.$d;
|
|
7050
7050
|
this.$y = p.getUTCFullYear(), this.$M = p.getUTCMonth(), this.$D = p.getUTCDate(), this.$W = p.getUTCDay(), this.$H = p.getUTCHours(), this.$m = p.getUTCMinutes(), this.$s = p.getUTCSeconds(), this.$ms = p.getUTCMilliseconds();
|
|
7051
7051
|
} else v.call(this);
|
|
7052
7052
|
};
|
|
7053
|
-
var y =
|
|
7054
|
-
|
|
7053
|
+
var y = l.utcOffset;
|
|
7054
|
+
l.utcOffset = function(p, I) {
|
|
7055
7055
|
var C = this.$utils().u;
|
|
7056
7056
|
if (C(p)) return this.$u ? 0 : C(this.$offset) ? y.call(this) : this.$offset;
|
|
7057
7057
|
if (typeof p == "string" && (p = function(g) {
|
|
@@ -7068,28 +7068,28 @@ function es() {
|
|
|
7068
7068
|
var q = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
7069
7069
|
return (U = this.local().add(F + q, r)).$offset = F, U.$x.$localOffset = q, U;
|
|
7070
7070
|
};
|
|
7071
|
-
var S =
|
|
7072
|
-
|
|
7071
|
+
var S = l.format;
|
|
7072
|
+
l.format = function(p) {
|
|
7073
7073
|
var I = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
7074
7074
|
return S.call(this, I);
|
|
7075
|
-
},
|
|
7075
|
+
}, l.valueOf = function() {
|
|
7076
7076
|
var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
7077
7077
|
return this.$d.valueOf() - 6e4 * p;
|
|
7078
|
-
},
|
|
7078
|
+
}, l.isUTC = function() {
|
|
7079
7079
|
return !!this.$u;
|
|
7080
|
-
},
|
|
7080
|
+
}, l.toISOString = function() {
|
|
7081
7081
|
return this.toDate().toISOString();
|
|
7082
|
-
},
|
|
7082
|
+
}, l.toString = function() {
|
|
7083
7083
|
return this.toDate().toUTCString();
|
|
7084
7084
|
};
|
|
7085
|
-
var L =
|
|
7086
|
-
|
|
7087
|
-
return p === "s" && this.$offset ?
|
|
7085
|
+
var L = l.toDate;
|
|
7086
|
+
l.toDate = function(p) {
|
|
7087
|
+
return p === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
|
|
7088
7088
|
};
|
|
7089
|
-
var k =
|
|
7090
|
-
|
|
7089
|
+
var k = l.diff;
|
|
7090
|
+
l.diff = function(p, I, C) {
|
|
7091
7091
|
if (p && this.$u === p.$u) return k.call(this, p, I, C);
|
|
7092
|
-
var F = this.local(), U =
|
|
7092
|
+
var F = this.local(), U = u(p).local();
|
|
7093
7093
|
return k.call(F, U, I, C);
|
|
7094
7094
|
};
|
|
7095
7095
|
};
|
|
@@ -7121,14 +7121,14 @@ class Ps {
|
|
|
7121
7121
|
static isSameDate = (t, r) => t?.getFullYear() === r?.getFullYear() && t?.getMonth() === r?.getMonth() && t?.getDate() === r?.getDate();
|
|
7122
7122
|
static getDateInUTC = (t) => {
|
|
7123
7123
|
try {
|
|
7124
|
-
const r = dt.utc(t), i = r.date(), a = r.month(), s = r.year(), d = r.hour(),
|
|
7124
|
+
const r = dt.utc(t), i = r.date(), a = r.month(), s = r.year(), d = r.hour(), u = r.minute(), l = r.day();
|
|
7125
7125
|
return {
|
|
7126
7126
|
day: i,
|
|
7127
7127
|
month: a,
|
|
7128
7128
|
year: s,
|
|
7129
7129
|
hour: d,
|
|
7130
|
-
minute:
|
|
7131
|
-
weekday:
|
|
7130
|
+
minute: u,
|
|
7131
|
+
weekday: l
|
|
7132
7132
|
};
|
|
7133
7133
|
} catch {
|
|
7134
7134
|
return;
|
|
@@ -7181,8 +7181,8 @@ const Es = ({
|
|
|
7181
7181
|
return /* @__PURE__ */ X.jsxs(
|
|
7182
7182
|
"div",
|
|
7183
7183
|
{
|
|
7184
|
-
onClick: (
|
|
7185
|
-
|
|
7184
|
+
onClick: (u) => {
|
|
7185
|
+
t?.(u);
|
|
7186
7186
|
},
|
|
7187
7187
|
style: {
|
|
7188
7188
|
width: "25px",
|
|
@@ -7224,8 +7224,8 @@ const Es = ({
|
|
|
7224
7224
|
viewBox: a = "0 0 22 28",
|
|
7225
7225
|
fill: s = "#000000",
|
|
7226
7226
|
alt: d = "",
|
|
7227
|
-
onClick:
|
|
7228
|
-
styles:
|
|
7227
|
+
onClick: u,
|
|
7228
|
+
styles: l
|
|
7229
7229
|
}) => /* @__PURE__ */ X.jsx(
|
|
7230
7230
|
"div",
|
|
7231
7231
|
{
|
|
@@ -7235,9 +7235,9 @@ const Es = ({
|
|
|
7235
7235
|
display: "flex",
|
|
7236
7236
|
alignItems: "center",
|
|
7237
7237
|
justifyContent: "center",
|
|
7238
|
-
...
|
|
7238
|
+
...l
|
|
7239
7239
|
},
|
|
7240
|
-
onClick: () =>
|
|
7240
|
+
onClick: () => u?.(),
|
|
7241
7241
|
children: /* @__PURE__ */ X.jsx(
|
|
7242
7242
|
"svg",
|
|
7243
7243
|
{
|
|
@@ -7284,8 +7284,8 @@ const Es = ({
|
|
|
7284
7284
|
bottomMessage: a,
|
|
7285
7285
|
placeHolder: s,
|
|
7286
7286
|
value: d,
|
|
7287
|
-
initialValue:
|
|
7288
|
-
onChange:
|
|
7287
|
+
initialValue: u,
|
|
7288
|
+
onChange: l,
|
|
7289
7289
|
onFocus: f,
|
|
7290
7290
|
onBlur: v,
|
|
7291
7291
|
inputStyles: y,
|
|
@@ -7293,9 +7293,9 @@ const Es = ({
|
|
|
7293
7293
|
styles: L
|
|
7294
7294
|
}) => {
|
|
7295
7295
|
const k = (C) => {
|
|
7296
|
-
|
|
7296
|
+
l?.(C.currentTarget.value);
|
|
7297
7297
|
}, p = (C) => {
|
|
7298
|
-
|
|
7298
|
+
f?.();
|
|
7299
7299
|
}, I = (C) => {
|
|
7300
7300
|
v?.();
|
|
7301
7301
|
};
|
|
@@ -7352,7 +7352,7 @@ const Es = ({
|
|
|
7352
7352
|
},
|
|
7353
7353
|
placeholder: s,
|
|
7354
7354
|
value: d,
|
|
7355
|
-
defaultValue:
|
|
7355
|
+
defaultValue: u,
|
|
7356
7356
|
onChange: k,
|
|
7357
7357
|
onFocus: p,
|
|
7358
7358
|
onBlur: I
|
|
@@ -7374,8 +7374,8 @@ const Es = ({
|
|
|
7374
7374
|
}) => {
|
|
7375
7375
|
const a = V.useRef(!1), { isItemVisible: s, hideItem: d } = Ct();
|
|
7376
7376
|
return V.useEffect(() => {
|
|
7377
|
-
const
|
|
7378
|
-
a.current !==
|
|
7377
|
+
const u = s(e);
|
|
7378
|
+
a.current !== u && (a.current = u, u && setTimeout(() => d(e), i * 1e3));
|
|
7379
7379
|
}, [a, s, d]), /* @__PURE__ */ X.jsx(X.Fragment, { children: s(e) && /* @__PURE__ */ X.jsx(
|
|
7380
7380
|
"div",
|
|
7381
7381
|
{
|
|
@@ -7397,9 +7397,6 @@ const Es = ({
|
|
|
7397
7397
|
border: "solid 3px #000000ff",
|
|
7398
7398
|
...r
|
|
7399
7399
|
},
|
|
7400
|
-
onClick: (l) => {
|
|
7401
|
-
l.stopPropagation(), l.preventDefault();
|
|
7402
|
-
},
|
|
7403
7400
|
children: t
|
|
7404
7401
|
}
|
|
7405
7402
|
) });
|