@billgangcom/theme-lib 1.124.4 → 1.124.8
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/{builder-C0CY2NqW.cjs → builder-B_VHcbLD.cjs} +13 -13
- package/dist/{builder-NZcfw_uK.js → builder-Da7TEF-Q.js} +919 -925
- package/dist/{builder-components-t8vV2Uyv.js → builder-components-Cp8Zqx_S.js} +256 -245
- package/dist/{builder-components-Df75FZjk.cjs → builder-components-iEhF2Pbf.cjs} +2 -2
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +23 -23
- package/dist/{charge-Dlt2N2gE.js → charge-JIFfQW47.js} +3107 -3084
- package/dist/{charge-1NVtSa19.cjs → charge-PbrSlzq2.cjs} +33 -33
- package/dist/{checkout-B9xrJpzo.cjs → checkout-BUYeNvtd.cjs} +1 -1
- package/dist/{checkout-DQQO7oVk.js → checkout-DqtDf6g1.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-BKO1t2iG.cjs → index-AnMmiW23.cjs} +1 -1
- package/dist/{index-D8IUUs19.cjs → index-BJCYi1GY.cjs} +1 -1
- package/dist/{index-BlN9RDzk.js → index-BMA4a_O3.js} +5 -5
- package/dist/{index-D5e4nxfb.js → index-BTDlV9jN.js} +5 -5
- package/dist/{index-BPf7tR5l.cjs → index-BkSjxDPp.cjs} +1 -1
- package/dist/{index-CVatcZ-w.js → index-ChL-8xQO.js} +1 -1
- package/dist/{index-DeVXhlDm.js → index-DFnipeuV.js} +5 -5
- package/dist/{index-Df1M0AqD.cjs → index-DiAipax-.cjs} +1 -1
- package/dist/{index-uoTQcf9e.cjs → index-DlAAHfEI.cjs} +1 -1
- package/dist/{index-FcGMiqa9.js → index-DqhgfGZj.js} +2 -2
- package/dist/{index-DKixA0l5.cjs → index-ZHeSdR1d.cjs} +1 -1
- package/dist/{index-C-R7NUm4.js → index-wBb3CwJ1.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-QenSr8PO.js → order-7agEr47O.js} +5 -5
- package/dist/{order-CtTYCM0e.cjs → order-dz_UgvGB.cjs} +1 -1
- package/dist/src/assets/storefront-icons/index.d.ts +3 -0
- package/dist/src/builder/api/fetchData.d.ts +2 -4
- package/dist/src/storefront/components/PaymentMethod/model.d.ts +2 -1
- package/dist/src/storefront/models/payment.d.ts +2 -1
- package/dist/{subscription-i9Trr3Dj.cjs → subscription-BNkw4ae-.cjs} +1 -1
- package/dist/{subscription-tZMq2hbO.js → subscription-JT7LtnI_.js} +5 -5
- package/dist/{ticket-B7_yQkrG.js → ticket-CUj-mxgQ.js} +5 -5
- package/dist/{ticket-D5hDuE4u.cjs → ticket-nM6Hb7qw.cjs} +1 -1
- package/dist/{top-up-Cf5uGOet.js → top-up-CqoCBzK9.js} +5 -5
- package/dist/{top-up-D5nnzq3p.cjs → top-up-vR4oqVTR.cjs} +1 -1
- package/dist/{ui-components-DYyu32oT.js → ui-components-BpioK3SF.js} +4 -4
- package/dist/{ui-components-DTLctw1s.cjs → ui-components-DxzPkQcO.cjs} +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-Bco9jXpi.js → validation-BRmHHm4X.js} +5 -5
- package/dist/{validation-BDFP1fbJ.cjs → validation-Cfgi2DqP.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as y from "react";
|
|
2
|
-
import
|
|
2
|
+
import Te, { useRef as $r, useEffect as Ta } from "react";
|
|
3
3
|
import * as Pa from "react-dom";
|
|
4
|
-
import { jsx as M, jsxs as
|
|
5
|
-
import { I as Wt, B as
|
|
6
|
-
import "./charge-
|
|
7
|
-
import { N as Fa, H as Ia, S as Ba, P as Ha, M as Ua } from "./builder-components-
|
|
8
|
-
import "./ticket-
|
|
4
|
+
import { jsx as M, jsxs as Ee, Fragment as Oa } from "react/jsx-runtime";
|
|
5
|
+
import { I as Wt, B as zr, a as Zn, C as Ma, b as Aa, L as Da } from "./ui-components-BpioK3SF.js";
|
|
6
|
+
import "./charge-JIFfQW47.js";
|
|
7
|
+
import { N as Fa, H as Ia, S as Ba, P as Ha, M as Ua } from "./builder-components-Cp8Zqx_S.js";
|
|
8
|
+
import "./ticket-CUj-mxgQ.js";
|
|
9
9
|
/**
|
|
10
10
|
* @remix-run/router v1.23.0
|
|
11
11
|
*
|
|
@@ -30,7 +30,7 @@ var ve;
|
|
|
30
30
|
(function(e) {
|
|
31
31
|
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
32
32
|
})(ve || (ve = {}));
|
|
33
|
-
const
|
|
33
|
+
const Jr = "popstate";
|
|
34
34
|
function Va(e) {
|
|
35
35
|
e === void 0 && (e = {});
|
|
36
36
|
function t(r, o) {
|
|
@@ -52,7 +52,7 @@ function Va(e) {
|
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
function n(r, o) {
|
|
55
|
-
return typeof o == "string" ? o :
|
|
55
|
+
return typeof o == "string" ? o : ut(o);
|
|
56
56
|
}
|
|
57
57
|
return $a(t, n, null, e);
|
|
58
58
|
}
|
|
@@ -72,7 +72,7 @@ function we(e, t) {
|
|
|
72
72
|
function ja() {
|
|
73
73
|
return Math.random().toString(36).substr(2, 8);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Wr(e, t) {
|
|
76
76
|
return {
|
|
77
77
|
usr: e.state,
|
|
78
78
|
key: e.key,
|
|
@@ -84,7 +84,7 @@ function qt(e, t, n, r) {
|
|
|
84
84
|
pathname: typeof e == "string" ? e : e.pathname,
|
|
85
85
|
search: "",
|
|
86
86
|
hash: ""
|
|
87
|
-
}, typeof t == "string" ?
|
|
87
|
+
}, typeof t == "string" ? ft(t) : t, {
|
|
88
88
|
state: n,
|
|
89
89
|
// TODO: This could be cleaned up. push/replace should probably just take
|
|
90
90
|
// full Locations now and avoid the need to run through this flow at all
|
|
@@ -93,7 +93,7 @@ function qt(e, t, n, r) {
|
|
|
93
93
|
key: t && t.key || r || ja()
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ut(e) {
|
|
97
97
|
let {
|
|
98
98
|
pathname: t = "/",
|
|
99
99
|
search: n = "",
|
|
@@ -101,7 +101,7 @@ function ct(e) {
|
|
|
101
101
|
} = e;
|
|
102
102
|
return n && n !== "?" && (t += n.charAt(0) === "?" ? n : "?" + n), r && r !== "#" && (t += r.charAt(0) === "#" ? r : "#" + r), t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function ft(e) {
|
|
105
105
|
let t = {};
|
|
106
106
|
if (e) {
|
|
107
107
|
let n = e.indexOf("#");
|
|
@@ -138,7 +138,7 @@ function $a(e, t, n, r) {
|
|
|
138
138
|
s = ve.Push;
|
|
139
139
|
let S = qt(p.location, v, R);
|
|
140
140
|
c = u() + 1;
|
|
141
|
-
let x =
|
|
141
|
+
let x = Wr(S, c), _ = p.createHref(S);
|
|
142
142
|
try {
|
|
143
143
|
i.pushState(x, "", _);
|
|
144
144
|
} catch (N) {
|
|
@@ -156,7 +156,7 @@ function $a(e, t, n, r) {
|
|
|
156
156
|
s = ve.Replace;
|
|
157
157
|
let S = qt(p.location, v, R);
|
|
158
158
|
c = u();
|
|
159
|
-
let x =
|
|
159
|
+
let x = Wr(S, c), _ = p.createHref(S);
|
|
160
160
|
i.replaceState(x, "", _), a && l && l({
|
|
161
161
|
action: s,
|
|
162
162
|
location: p.location,
|
|
@@ -164,7 +164,7 @@ function $a(e, t, n, r) {
|
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
function m(v) {
|
|
167
|
-
let R = o.location.origin !== "null" ? o.location.origin : o.location.href, S = typeof v == "string" ? v :
|
|
167
|
+
let R = o.location.origin !== "null" ? o.location.origin : o.location.href, S = typeof v == "string" ? v : ut(v);
|
|
168
168
|
return S = S.replace(/ $/, "%20"), I(R, "No window.location.(origin|href) available to create URL for href: " + S), new URL(S, R);
|
|
169
169
|
}
|
|
170
170
|
let p = {
|
|
@@ -177,8 +177,8 @@ function $a(e, t, n, r) {
|
|
|
177
177
|
listen(v) {
|
|
178
178
|
if (l)
|
|
179
179
|
throw new Error("A history only accepts one active listener");
|
|
180
|
-
return o.addEventListener(
|
|
181
|
-
o.removeEventListener(
|
|
180
|
+
return o.addEventListener(Jr, d), l = v, () => {
|
|
181
|
+
o.removeEventListener(Jr, d), l = null;
|
|
182
182
|
};
|
|
183
183
|
},
|
|
184
184
|
createHref(v) {
|
|
@@ -226,14 +226,14 @@ function Cn(e, t, n, r) {
|
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function gt(e, t, n) {
|
|
230
230
|
return n === void 0 && (n = "/"), gn(e, t, n, !1);
|
|
231
231
|
}
|
|
232
232
|
function gn(e, t, n, r) {
|
|
233
|
-
let o = typeof t == "string" ?
|
|
233
|
+
let o = typeof t == "string" ? ft(t) : t, a = We(o.pathname || "/", n);
|
|
234
234
|
if (a == null)
|
|
235
235
|
return null;
|
|
236
|
-
let i =
|
|
236
|
+
let i = Mo(e);
|
|
237
237
|
qa(i);
|
|
238
238
|
let s = null;
|
|
239
239
|
for (let l = 0; s == null && l < i.length; ++l) {
|
|
@@ -256,7 +256,7 @@ function Wa(e, t) {
|
|
|
256
256
|
handle: n.handle
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Mo(e, t, n, r) {
|
|
260
260
|
t === void 0 && (t = []), n === void 0 && (n = []), r === void 0 && (r = "");
|
|
261
261
|
let o = (a, i, s) => {
|
|
262
262
|
let l = {
|
|
@@ -266,13 +266,13 @@ function Oo(e, t, n, r) {
|
|
|
266
266
|
route: a
|
|
267
267
|
};
|
|
268
268
|
l.relativePath.startsWith("/") && (I(l.relativePath.startsWith(r), 'Absolute route path "' + l.relativePath + '" nested under path ' + ('"' + r + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), l.relativePath = l.relativePath.slice(r.length));
|
|
269
|
-
let c =
|
|
269
|
+
let c = Qe([r, l.relativePath]), u = n.concat(l);
|
|
270
270
|
a.children && a.children.length > 0 && (I(
|
|
271
271
|
// Our types know better, but runtime JS may not!
|
|
272
272
|
// @ts-expect-error
|
|
273
273
|
a.index !== !0,
|
|
274
274
|
"Index routes must not have child routes. Please remove " + ('all child routes from route path "' + c + '".')
|
|
275
|
-
),
|
|
275
|
+
), Mo(a.children, t, u, c)), !(a.path == null && !a.index) && t.push({
|
|
276
276
|
path: c,
|
|
277
277
|
score: ei(c, a.index),
|
|
278
278
|
routesMeta: u
|
|
@@ -283,26 +283,26 @@ function Oo(e, t, n, r) {
|
|
|
283
283
|
if (a.path === "" || !((s = a.path) != null && s.includes("?")))
|
|
284
284
|
o(a, i);
|
|
285
285
|
else
|
|
286
|
-
for (let l of
|
|
286
|
+
for (let l of Ao(a.path))
|
|
287
287
|
o(a, i, l);
|
|
288
288
|
}), t;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ao(e) {
|
|
291
291
|
let t = e.split("/");
|
|
292
292
|
if (t.length === 0) return [];
|
|
293
293
|
let [n, ...r] = t, o = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
294
294
|
if (r.length === 0)
|
|
295
295
|
return o ? [a, ""] : [a];
|
|
296
|
-
let i =
|
|
296
|
+
let i = Ao(r.join("/")), s = [];
|
|
297
297
|
return s.push(...i.map((l) => l === "" ? a : [a, l].join("/"))), o && s.push(...i), s.map((l) => e.startsWith("/") && l === "" ? "/" : l);
|
|
298
298
|
}
|
|
299
299
|
function qa(e) {
|
|
300
300
|
e.sort((t, n) => t.score !== n.score ? n.score - t.score : ti(t.routesMeta.map((r) => r.childrenIndex), n.routesMeta.map((r) => r.childrenIndex)));
|
|
301
301
|
}
|
|
302
|
-
const Za = /^:[\w-]+$/, Ka = 3, Ga = 2, Ya = 1, Xa = 10, Qa = -2,
|
|
302
|
+
const Za = /^:[\w-]+$/, Ka = 3, Ga = 2, Ya = 1, Xa = 10, Qa = -2, qr = (e) => e === "*";
|
|
303
303
|
function ei(e, t) {
|
|
304
304
|
let n = e.split("/"), r = n.length;
|
|
305
|
-
return n.some(
|
|
305
|
+
return n.some(qr) && (r += Qa), t && (r += Ga), n.filter((o) => !qr(o)).reduce((o, a) => o + (Za.test(a) ? Ka : a === "" ? Ya : Xa), r);
|
|
306
306
|
}
|
|
307
307
|
function ti(e, t) {
|
|
308
308
|
return e.length === t.length && e.slice(0, -1).every((r, o) => r === t[o]) ? (
|
|
@@ -337,10 +337,10 @@ function ni(e, t, n) {
|
|
|
337
337
|
Object.assign(o, d.params), i.push({
|
|
338
338
|
// TODO: Can this as be avoided?
|
|
339
339
|
params: o,
|
|
340
|
-
pathname:
|
|
341
|
-
pathnameBase: si(
|
|
340
|
+
pathname: Qe([a, d.pathname]),
|
|
341
|
+
pathnameBase: si(Qe([a, d.pathnameBase])),
|
|
342
342
|
route: h
|
|
343
|
-
}), d.pathnameBase !== "/" && (a =
|
|
343
|
+
}), d.pathnameBase !== "/" && (a = Qe([a, d.pathnameBase]));
|
|
344
344
|
}
|
|
345
345
|
return i;
|
|
346
346
|
}
|
|
@@ -388,7 +388,7 @@ function oi(e) {
|
|
|
388
388
|
return we(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + t + ").")), e;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function We(e, t) {
|
|
392
392
|
if (t === "/") return e;
|
|
393
393
|
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
394
394
|
return null;
|
|
@@ -401,7 +401,7 @@ function ai(e, t) {
|
|
|
401
401
|
pathname: n,
|
|
402
402
|
search: r = "",
|
|
403
403
|
hash: o = ""
|
|
404
|
-
} = typeof e == "string" ?
|
|
404
|
+
} = typeof e == "string" ? ft(e) : e;
|
|
405
405
|
return {
|
|
406
406
|
pathname: n ? n.startsWith("/") ? n : ii(n, t) : t,
|
|
407
407
|
search: li(r),
|
|
@@ -417,17 +417,17 @@ function ii(e, t) {
|
|
|
417
417
|
function Kn(e, t, n, r) {
|
|
418
418
|
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Do(e) {
|
|
421
421
|
return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
|
|
422
422
|
}
|
|
423
423
|
function Tn(e, t) {
|
|
424
|
-
let n =
|
|
424
|
+
let n = Do(e);
|
|
425
425
|
return t ? n.map((r, o) => o === n.length - 1 ? r.pathname : r.pathnameBase) : n.map((r) => r.pathnameBase);
|
|
426
426
|
}
|
|
427
427
|
function Pn(e, t, n, r) {
|
|
428
428
|
r === void 0 && (r = !1);
|
|
429
429
|
let o;
|
|
430
|
-
typeof e == "string" ? o =
|
|
430
|
+
typeof e == "string" ? o = ft(e) : (o = fe({}, e), I(!o.pathname || !o.pathname.includes("?"), Kn("?", "pathname", "search", o)), I(!o.pathname || !o.pathname.includes("#"), Kn("#", "pathname", "hash", o)), I(!o.search || !o.search.includes("#"), Kn("#", "search", "hash", o)));
|
|
431
431
|
let a = e === "" || o.pathname === "", i = a ? "/" : o.pathname, s;
|
|
432
432
|
if (i == null)
|
|
433
433
|
s = n;
|
|
@@ -444,7 +444,7 @@ function Pn(e, t, n, r) {
|
|
|
444
444
|
let l = ai(o, s), c = i && i !== "/" && i.endsWith("/"), u = (a || i === ".") && n.endsWith("/");
|
|
445
445
|
return !l.pathname.endsWith("/") && (c || u) && (l.pathname += "/"), l;
|
|
446
446
|
}
|
|
447
|
-
const
|
|
447
|
+
const Qe = (e) => e.join("/").replace(/\/\/+/g, "/"), si = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ci = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
448
448
|
class Ln {
|
|
449
449
|
constructor(t, n, r, o) {
|
|
450
450
|
o === void 0 && (o = !1), this.status = t, this.statusText = n || "", this.internal = o, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
@@ -453,7 +453,7 @@ class Ln {
|
|
|
453
453
|
function Zt(e) {
|
|
454
454
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
455
455
|
}
|
|
456
|
-
const
|
|
456
|
+
const Fo = ["post", "put", "patch", "delete"], ui = new Set(Fo), di = ["get", ...Fo], fi = new Set(di), hi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), pi = /* @__PURE__ */ new Set([307, 308]), Gn = {
|
|
457
457
|
state: "idle",
|
|
458
458
|
location: void 0,
|
|
459
459
|
formMethod: void 0,
|
|
@@ -478,7 +478,7 @@ const Do = ["post", "put", "patch", "delete"], ui = new Set(Do), di = ["get", ..
|
|
|
478
478
|
location: void 0
|
|
479
479
|
}, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, gi = (e) => ({
|
|
480
480
|
hasErrorBoundary: !!e.hasErrorBoundary
|
|
481
|
-
}),
|
|
481
|
+
}), Io = "remix-router-transitions";
|
|
482
482
|
function yi(e) {
|
|
483
483
|
const t = e.window ? e.window : typeof window < "u" ? window : void 0, n = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", r = !n;
|
|
484
484
|
I(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
|
|
@@ -499,14 +499,14 @@ function yi(e) {
|
|
|
499
499
|
v7_prependBasename: !1,
|
|
500
500
|
v7_relativeSplatPath: !1,
|
|
501
501
|
v7_skipActionErrorRevalidation: !1
|
|
502
|
-
}, e.future), h = null, w = /* @__PURE__ */ new Set(), m = null, p = null, v = null, R = e.hydrationData != null, S =
|
|
502
|
+
}, e.future), h = null, w = /* @__PURE__ */ new Set(), m = null, p = null, v = null, R = e.hydrationData != null, S = gt(i, e.history.location, l), x = !1, _ = null;
|
|
503
503
|
if (S == null && !u) {
|
|
504
|
-
let f =
|
|
504
|
+
let f = Pe(404, {
|
|
505
505
|
pathname: e.history.location.pathname
|
|
506
506
|
}), {
|
|
507
507
|
matches: g,
|
|
508
508
|
route: C
|
|
509
|
-
} =
|
|
509
|
+
} = oo(i);
|
|
510
510
|
S = g, _ = {
|
|
511
511
|
[C.id]: f
|
|
512
512
|
};
|
|
@@ -546,7 +546,7 @@ function yi(e) {
|
|
|
546
546
|
errors: e.hydrationData && e.hydrationData.errors || _,
|
|
547
547
|
fetchers: /* @__PURE__ */ new Map(),
|
|
548
548
|
blockers: /* @__PURE__ */ new Map()
|
|
549
|
-
}, T = ve.Pop, K = !1, B, ae = !1,
|
|
549
|
+
}, T = ve.Pop, K = !1, B, ae = !1, ie = /* @__PURE__ */ new Map(), te = null, he = !1, Le = !1, Ze = [], Ae = /* @__PURE__ */ new Set(), le = /* @__PURE__ */ new Map(), Ne = 0, be = -1, $e = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Set(), Be = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Set(), Se = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Map(), De;
|
|
550
550
|
function en() {
|
|
551
551
|
if (h = e.history.listen((f) => {
|
|
552
552
|
let {
|
|
@@ -554,19 +554,19 @@ function yi(e) {
|
|
|
554
554
|
location: C,
|
|
555
555
|
delta: L
|
|
556
556
|
} = f;
|
|
557
|
-
if (
|
|
558
|
-
|
|
557
|
+
if (De) {
|
|
558
|
+
De(), De = void 0;
|
|
559
559
|
return;
|
|
560
560
|
}
|
|
561
|
-
we(
|
|
562
|
-
let k =
|
|
561
|
+
we(Re.size === 0 || L != null, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");
|
|
562
|
+
let k = Hr({
|
|
563
563
|
currentLocation: b.location,
|
|
564
564
|
nextLocation: C,
|
|
565
565
|
historyAction: g
|
|
566
566
|
});
|
|
567
567
|
if (k && L != null) {
|
|
568
568
|
let F = new Promise((H) => {
|
|
569
|
-
|
|
569
|
+
De = H;
|
|
570
570
|
});
|
|
571
571
|
e.history.go(L * -1), an(k, {
|
|
572
572
|
state: "blocked",
|
|
@@ -581,70 +581,70 @@ function yi(e) {
|
|
|
581
581
|
},
|
|
582
582
|
reset() {
|
|
583
583
|
let H = new Map(b.blockers);
|
|
584
|
-
H.set(k, Ft),
|
|
584
|
+
H.set(k, Ft), Ce({
|
|
585
585
|
blockers: H
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
588
|
});
|
|
589
589
|
return;
|
|
590
590
|
}
|
|
591
|
-
return
|
|
591
|
+
return Ke(g, C);
|
|
592
592
|
}), n) {
|
|
593
|
-
Di(t,
|
|
594
|
-
let f = () => Fi(t,
|
|
593
|
+
Di(t, ie);
|
|
594
|
+
let f = () => Fi(t, ie);
|
|
595
595
|
t.addEventListener("pagehide", f), te = () => t.removeEventListener("pagehide", f);
|
|
596
596
|
}
|
|
597
|
-
return b.initialized ||
|
|
597
|
+
return b.initialized || Ke(ve.Pop, b.location, {
|
|
598
598
|
initialHydration: !0
|
|
599
599
|
}), U;
|
|
600
600
|
}
|
|
601
601
|
function zn() {
|
|
602
|
-
h && h(), te && te(), w.clear(), B && B.abort(), b.fetchers.forEach((f, g) => on(g)), b.blockers.forEach((f, g) =>
|
|
602
|
+
h && h(), te && te(), w.clear(), B && B.abort(), b.fetchers.forEach((f, g) => on(g)), b.blockers.forEach((f, g) => Br(g));
|
|
603
603
|
}
|
|
604
604
|
function tn(f) {
|
|
605
605
|
return w.add(f), () => w.delete(f);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Ce(f, g) {
|
|
608
608
|
g === void 0 && (g = {}), b = fe({}, b, f);
|
|
609
609
|
let C = [], L = [];
|
|
610
610
|
d.v7_fetcherPersist && b.fetchers.forEach((k, F) => {
|
|
611
|
-
k.state === "idle" && (
|
|
612
|
-
}),
|
|
613
|
-
!b.fetchers.has(k) && !
|
|
611
|
+
k.state === "idle" && (G.has(F) ? L.push(F) : C.push(F));
|
|
612
|
+
}), G.forEach((k) => {
|
|
613
|
+
!b.fetchers.has(k) && !le.has(k) && L.push(k);
|
|
614
614
|
}), [...w].forEach((k) => k(b, {
|
|
615
615
|
deletedFetchers: L,
|
|
616
616
|
viewTransitionOpts: g.viewTransitionOpts,
|
|
617
617
|
flushSync: g.flushSync === !0
|
|
618
|
-
})), d.v7_fetcherPersist ? (C.forEach((k) => b.fetchers.delete(k)), L.forEach((k) => on(k))) : L.forEach((k) =>
|
|
618
|
+
})), d.v7_fetcherPersist ? (C.forEach((k) => b.fetchers.delete(k)), L.forEach((k) => on(k))) : L.forEach((k) => G.delete(k));
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function tt(f, g, C) {
|
|
621
621
|
var L, k;
|
|
622
622
|
let {
|
|
623
623
|
flushSync: F
|
|
624
|
-
} = C === void 0 ? {} : C, H = b.actionData != null && b.navigation.formMethod != null &&
|
|
624
|
+
} = C === void 0 ? {} : C, H = b.actionData != null && b.navigation.formMethod != null && Je(b.navigation.formMethod) && b.navigation.state === "loading" && ((L = f.state) == null ? void 0 : L._isRedirect) !== !0, O;
|
|
625
625
|
g.actionData ? Object.keys(g.actionData).length > 0 ? O = g.actionData : O = null : H ? O = b.actionData : O = null;
|
|
626
|
-
let A = g.loaderData ?
|
|
627
|
-
P.size > 0 && (P = new Map(P), P.forEach((
|
|
628
|
-
let D = K === !0 || b.navigation.formMethod != null &&
|
|
626
|
+
let A = g.loaderData ? no(b.loaderData, g.loaderData, g.matches || [], g.errors) : b.loaderData, P = b.blockers;
|
|
627
|
+
P.size > 0 && (P = new Map(P), P.forEach((X, xe) => P.set(xe, Ft)));
|
|
628
|
+
let D = K === !0 || b.navigation.formMethod != null && Je(b.navigation.formMethod) && ((k = f.state) == null ? void 0 : k._isRedirect) !== !0;
|
|
629
629
|
s && (i = s, s = void 0), he || T === ve.Pop || (T === ve.Push ? e.history.push(f, f.state) : T === ve.Replace && e.history.replace(f, f.state));
|
|
630
630
|
let J;
|
|
631
631
|
if (T === ve.Pop) {
|
|
632
|
-
let
|
|
633
|
-
|
|
632
|
+
let X = ie.get(b.location.pathname);
|
|
633
|
+
X && X.has(f.pathname) ? J = {
|
|
634
634
|
currentLocation: b.location,
|
|
635
635
|
nextLocation: f
|
|
636
|
-
} :
|
|
636
|
+
} : ie.has(f.pathname) && (J = {
|
|
637
637
|
currentLocation: f,
|
|
638
638
|
nextLocation: b.location
|
|
639
639
|
});
|
|
640
640
|
} else if (ae) {
|
|
641
|
-
let
|
|
642
|
-
|
|
641
|
+
let X = ie.get(b.location.pathname);
|
|
642
|
+
X ? X.add(f.pathname) : (X = /* @__PURE__ */ new Set([f.pathname]), ie.set(b.location.pathname, X)), J = {
|
|
643
643
|
currentLocation: b.location,
|
|
644
644
|
nextLocation: f
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
|
-
|
|
647
|
+
Ce(fe({}, g, {
|
|
648
648
|
actionData: O,
|
|
649
649
|
loaderData: A,
|
|
650
650
|
historyAction: T,
|
|
@@ -652,13 +652,13 @@ function yi(e) {
|
|
|
652
652
|
initialized: !0,
|
|
653
653
|
navigation: Gn,
|
|
654
654
|
revalidation: "idle",
|
|
655
|
-
restoreScrollPosition:
|
|
655
|
+
restoreScrollPosition: Vr(f, g.matches || b.matches),
|
|
656
656
|
preventScrollReset: D,
|
|
657
657
|
blockers: P
|
|
658
658
|
}), {
|
|
659
659
|
viewTransitionOpts: J,
|
|
660
660
|
flushSync: F === !0
|
|
661
|
-
}), T = ve.Pop, K = !1, ae = !1, he = !1,
|
|
661
|
+
}), T = ve.Pop, K = !1, ae = !1, he = !1, Le = !1, Ze = [];
|
|
662
662
|
}
|
|
663
663
|
async function nn(f, g) {
|
|
664
664
|
if (typeof f == "number") {
|
|
@@ -669,21 +669,21 @@ function yi(e) {
|
|
|
669
669
|
path: L,
|
|
670
670
|
submission: k,
|
|
671
671
|
error: F
|
|
672
|
-
} =
|
|
672
|
+
} = Zr(d.v7_normalizeFormMethod, !1, C, g), H = b.location, O = qt(b.location, L, g && g.state);
|
|
673
673
|
O = fe({}, O, e.history.encodeLocation(O));
|
|
674
674
|
let A = g && g.replace != null ? g.replace : void 0, P = ve.Push;
|
|
675
|
-
A === !0 ? P = ve.Replace : A === !1 || k != null &&
|
|
676
|
-
let D = g && "preventScrollReset" in g ? g.preventScrollReset === !0 : void 0, J = (g && g.flushSync) === !0,
|
|
675
|
+
A === !0 ? P = ve.Replace : A === !1 || k != null && Je(k.formMethod) && k.formAction === b.location.pathname + b.location.search && (P = ve.Replace);
|
|
676
|
+
let D = g && "preventScrollReset" in g ? g.preventScrollReset === !0 : void 0, J = (g && g.flushSync) === !0, X = Hr({
|
|
677
677
|
currentLocation: H,
|
|
678
678
|
nextLocation: O,
|
|
679
679
|
historyAction: P
|
|
680
680
|
});
|
|
681
|
-
if (
|
|
682
|
-
an(
|
|
681
|
+
if (X) {
|
|
682
|
+
an(X, {
|
|
683
683
|
state: "blocked",
|
|
684
684
|
location: O,
|
|
685
685
|
proceed() {
|
|
686
|
-
an(
|
|
686
|
+
an(X, {
|
|
687
687
|
state: "proceeding",
|
|
688
688
|
proceed: void 0,
|
|
689
689
|
reset: void 0,
|
|
@@ -692,14 +692,14 @@ function yi(e) {
|
|
|
692
692
|
},
|
|
693
693
|
reset() {
|
|
694
694
|
let xe = new Map(b.blockers);
|
|
695
|
-
xe.set(
|
|
695
|
+
xe.set(X, Ft), Ce({
|
|
696
696
|
blockers: xe
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
702
|
-
return await
|
|
702
|
+
return await Ke(P, O, {
|
|
703
703
|
submission: k,
|
|
704
704
|
// Send through the formData serialization error if we have one so we can
|
|
705
705
|
// render at the right error boundary after we match routes
|
|
@@ -711,30 +711,30 @@ function yi(e) {
|
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
function rn() {
|
|
714
|
-
if (ht(),
|
|
714
|
+
if (ht(), Ce({
|
|
715
715
|
revalidation: "loading"
|
|
716
716
|
}), b.navigation.state !== "submitting") {
|
|
717
717
|
if (b.navigation.state === "idle") {
|
|
718
|
-
|
|
718
|
+
Ke(b.historyAction, b.location, {
|
|
719
719
|
startUninterruptedRevalidation: !0
|
|
720
720
|
});
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
|
|
723
|
+
Ke(T || b.historyAction, b.navigation.location, {
|
|
724
724
|
overrideNavigation: b.navigation,
|
|
725
725
|
// Proxy through any rending view transition
|
|
726
726
|
enableViewTransition: ae === !0
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
async function
|
|
730
|
+
async function Ke(f, g, C) {
|
|
731
731
|
B && B.abort(), B = null, T = f, he = (C && C.startUninterruptedRevalidation) === !0, xa(b.location, b.matches), K = (C && C.preventScrollReset) === !0, ae = (C && C.enableViewTransition) === !0;
|
|
732
732
|
let L = s || i, k = C && C.overrideNavigation, F = C != null && C.initialHydration && b.matches && b.matches.length > 0 && !x ? (
|
|
733
733
|
// `matchRoutes()` has already been called if we're in here via `router.initialize()`
|
|
734
734
|
b.matches
|
|
735
|
-
) :
|
|
736
|
-
if (F && b.initialized && !
|
|
737
|
-
|
|
735
|
+
) : gt(L, g, l), H = (C && C.flushSync) === !0;
|
|
736
|
+
if (F && b.initialized && !Le && ki(b.location, g) && !(C && C.submission && Je(C.submission.formMethod))) {
|
|
737
|
+
tt(g, {
|
|
738
738
|
matches: F
|
|
739
739
|
}, {
|
|
740
740
|
flushSync: H
|
|
@@ -744,15 +744,15 @@ function yi(e) {
|
|
|
744
744
|
let O = sn(F, L, g.pathname);
|
|
745
745
|
if (O.active && O.matches && (F = O.matches), !F) {
|
|
746
746
|
let {
|
|
747
|
-
error:
|
|
748
|
-
notFoundMatches:
|
|
749
|
-
route:
|
|
747
|
+
error: ce,
|
|
748
|
+
notFoundMatches: ee,
|
|
749
|
+
route: pe
|
|
750
750
|
} = Jn(g.pathname);
|
|
751
|
-
|
|
752
|
-
matches:
|
|
751
|
+
tt(g, {
|
|
752
|
+
matches: ee,
|
|
753
753
|
loaderData: {},
|
|
754
754
|
errors: {
|
|
755
|
-
[
|
|
755
|
+
[pe.id]: ce
|
|
756
756
|
}
|
|
757
757
|
}, {
|
|
758
758
|
flushSync: H
|
|
@@ -760,51 +760,51 @@ function yi(e) {
|
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
762
|
B = new AbortController();
|
|
763
|
-
let A =
|
|
763
|
+
let A = Rt(e.history, g, B.signal, C && C.submission), P;
|
|
764
764
|
if (C && C.pendingError)
|
|
765
|
-
P = [
|
|
765
|
+
P = [yt(F).route.id, {
|
|
766
766
|
type: oe.error,
|
|
767
767
|
error: C.pendingError
|
|
768
768
|
}];
|
|
769
|
-
else if (C && C.submission &&
|
|
770
|
-
let
|
|
769
|
+
else if (C && C.submission && Je(C.submission.formMethod)) {
|
|
770
|
+
let ce = await j(A, g, C.submission, F, O.active, {
|
|
771
771
|
replace: C.replace,
|
|
772
772
|
flushSync: H
|
|
773
773
|
});
|
|
774
|
-
if (
|
|
774
|
+
if (ce.shortCircuited)
|
|
775
775
|
return;
|
|
776
|
-
if (
|
|
777
|
-
let [
|
|
778
|
-
if (
|
|
779
|
-
B = null,
|
|
780
|
-
matches:
|
|
776
|
+
if (ce.pendingActionResult) {
|
|
777
|
+
let [ee, pe] = ce.pendingActionResult;
|
|
778
|
+
if (Fe(pe) && Zt(pe.error) && pe.error.status === 404) {
|
|
779
|
+
B = null, tt(g, {
|
|
780
|
+
matches: ce.matches,
|
|
781
781
|
loaderData: {},
|
|
782
782
|
errors: {
|
|
783
|
-
[
|
|
783
|
+
[ee]: pe.error
|
|
784
784
|
}
|
|
785
785
|
});
|
|
786
786
|
return;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
F =
|
|
789
|
+
F = ce.matches || F, P = ce.pendingActionResult, k = Yn(g, C.submission), H = !1, O.active = !1, A = Rt(e.history, A.url, A.signal);
|
|
790
790
|
}
|
|
791
791
|
let {
|
|
792
792
|
shortCircuited: D,
|
|
793
793
|
matches: J,
|
|
794
|
-
loaderData:
|
|
794
|
+
loaderData: X,
|
|
795
795
|
errors: xe
|
|
796
796
|
} = await V(A, g, F, O.active, k, C && C.submission, C && C.fetcherSubmission, C && C.replace, C && C.initialHydration === !0, H, P);
|
|
797
|
-
D || (B = null,
|
|
797
|
+
D || (B = null, tt(g, fe({
|
|
798
798
|
matches: J || F
|
|
799
|
-
},
|
|
800
|
-
loaderData:
|
|
799
|
+
}, ro(P), {
|
|
800
|
+
loaderData: X,
|
|
801
801
|
errors: xe
|
|
802
802
|
})));
|
|
803
803
|
}
|
|
804
804
|
async function j(f, g, C, L, k, F) {
|
|
805
805
|
F === void 0 && (F = {}), ht();
|
|
806
806
|
let H = Mi(g, C);
|
|
807
|
-
if (
|
|
807
|
+
if (Ce({
|
|
808
808
|
navigation: H
|
|
809
809
|
}, {
|
|
810
810
|
flushSync: F.flushSync === !0
|
|
@@ -815,7 +815,7 @@ function yi(e) {
|
|
|
815
815
|
shortCircuited: !0
|
|
816
816
|
};
|
|
817
817
|
if (P.type === "error") {
|
|
818
|
-
let D =
|
|
818
|
+
let D = yt(P.partialMatches).route.id;
|
|
819
819
|
return {
|
|
820
820
|
matches: P.partialMatches,
|
|
821
821
|
pendingActionResult: [D, {
|
|
@@ -829,11 +829,11 @@ function yi(e) {
|
|
|
829
829
|
let {
|
|
830
830
|
notFoundMatches: D,
|
|
831
831
|
error: J,
|
|
832
|
-
route:
|
|
832
|
+
route: X
|
|
833
833
|
} = Jn(g.pathname);
|
|
834
834
|
return {
|
|
835
835
|
matches: D,
|
|
836
|
-
pendingActionResult: [
|
|
836
|
+
pendingActionResult: [X.id, {
|
|
837
837
|
type: oe.error,
|
|
838
838
|
error: J
|
|
839
839
|
}]
|
|
@@ -844,7 +844,7 @@ function yi(e) {
|
|
|
844
844
|
if (!A.route.action && !A.route.lazy)
|
|
845
845
|
O = {
|
|
846
846
|
type: oe.error,
|
|
847
|
-
error:
|
|
847
|
+
error: Pe(405, {
|
|
848
848
|
method: f.method,
|
|
849
849
|
pathname: g.pathname,
|
|
850
850
|
routeId: A.route.id
|
|
@@ -854,21 +854,21 @@ function yi(e) {
|
|
|
854
854
|
return {
|
|
855
855
|
shortCircuited: !0
|
|
856
856
|
};
|
|
857
|
-
if (
|
|
857
|
+
if (vt(O)) {
|
|
858
858
|
let P;
|
|
859
|
-
return F && F.replace != null ? P = F.replace : P =
|
|
859
|
+
return F && F.replace != null ? P = F.replace : P = Qr(O.response.headers.get("Location"), new URL(f.url), l) === b.location.pathname + b.location.search, await Z(f, O, !0, {
|
|
860
860
|
submission: C,
|
|
861
861
|
replace: P
|
|
862
862
|
}), {
|
|
863
863
|
shortCircuited: !0
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
if (
|
|
867
|
-
throw
|
|
866
|
+
if (ct(O))
|
|
867
|
+
throw Pe(400, {
|
|
868
868
|
type: "defer-action"
|
|
869
869
|
});
|
|
870
|
-
if (
|
|
871
|
-
let P =
|
|
870
|
+
if (Fe(O)) {
|
|
871
|
+
let P = yt(L, A.route.id);
|
|
872
872
|
return (F && F.replace) !== !0 && (T = ve.Push), {
|
|
873
873
|
matches: L,
|
|
874
874
|
pendingActionResult: [P.route.id, O]
|
|
@@ -880,60 +880,60 @@ function yi(e) {
|
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
882
|
async function V(f, g, C, L, k, F, H, O, A, P, D) {
|
|
883
|
-
let J = k || Yn(g, F),
|
|
883
|
+
let J = k || Yn(g, F), X = F || H || io(J), xe = !he && (!d.v7_partialHydration || !A);
|
|
884
884
|
if (L) {
|
|
885
885
|
if (xe) {
|
|
886
|
-
let
|
|
887
|
-
|
|
886
|
+
let me = ne(D);
|
|
887
|
+
Ce(fe({
|
|
888
888
|
navigation: J
|
|
889
|
-
},
|
|
890
|
-
actionData:
|
|
889
|
+
}, me !== void 0 ? {
|
|
890
|
+
actionData: me
|
|
891
891
|
} : {}), {
|
|
892
892
|
flushSync: P
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
|
-
let
|
|
896
|
-
if (
|
|
895
|
+
let Q = await ln(C, g.pathname, f.signal);
|
|
896
|
+
if (Q.type === "aborted")
|
|
897
897
|
return {
|
|
898
898
|
shortCircuited: !0
|
|
899
899
|
};
|
|
900
|
-
if (
|
|
901
|
-
let
|
|
900
|
+
if (Q.type === "error") {
|
|
901
|
+
let me = yt(Q.partialMatches).route.id;
|
|
902
902
|
return {
|
|
903
|
-
matches:
|
|
903
|
+
matches: Q.partialMatches,
|
|
904
904
|
loaderData: {},
|
|
905
905
|
errors: {
|
|
906
|
-
[
|
|
906
|
+
[me]: Q.error
|
|
907
907
|
}
|
|
908
908
|
};
|
|
909
|
-
} else if (
|
|
910
|
-
C =
|
|
909
|
+
} else if (Q.matches)
|
|
910
|
+
C = Q.matches;
|
|
911
911
|
else {
|
|
912
912
|
let {
|
|
913
|
-
error:
|
|
914
|
-
notFoundMatches:
|
|
913
|
+
error: me,
|
|
914
|
+
notFoundMatches: Et,
|
|
915
915
|
route: Dt
|
|
916
916
|
} = Jn(g.pathname);
|
|
917
917
|
return {
|
|
918
|
-
matches:
|
|
918
|
+
matches: Et,
|
|
919
919
|
loaderData: {},
|
|
920
920
|
errors: {
|
|
921
|
-
[Dt.id]:
|
|
921
|
+
[Dt.id]: me
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
let
|
|
927
|
-
if (Wn((
|
|
928
|
-
let
|
|
929
|
-
return
|
|
926
|
+
let ce = s || i, [ee, pe] = Gr(e.history, b, C, X, g, d.v7_partialHydration && A === !0, d.v7_skipActionErrorRevalidation, Le, Ze, Ae, G, Be, ge, ce, l, D);
|
|
927
|
+
if (Wn((Q) => !(C && C.some((me) => me.route.id === Q)) || ee && ee.some((me) => me.route.id === Q)), be = ++Ne, ee.length === 0 && pe.length === 0) {
|
|
928
|
+
let Q = Fr();
|
|
929
|
+
return tt(g, fe({
|
|
930
930
|
matches: C,
|
|
931
931
|
loaderData: {},
|
|
932
932
|
// Commit pending error if we're short circuiting
|
|
933
|
-
errors: D &&
|
|
933
|
+
errors: D && Fe(D[1]) ? {
|
|
934
934
|
[D[0]]: D[1].error
|
|
935
935
|
} : null
|
|
936
|
-
},
|
|
936
|
+
}, ro(D), Q ? {
|
|
937
937
|
fetchers: new Map(b.fetchers)
|
|
938
938
|
} : {}), {
|
|
939
939
|
flushSync: P
|
|
@@ -942,39 +942,39 @@ function yi(e) {
|
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
944
|
if (xe) {
|
|
945
|
-
let
|
|
945
|
+
let Q = {};
|
|
946
946
|
if (!L) {
|
|
947
|
-
|
|
948
|
-
let
|
|
949
|
-
|
|
947
|
+
Q.navigation = J;
|
|
948
|
+
let me = ne(D);
|
|
949
|
+
me !== void 0 && (Q.actionData = me);
|
|
950
950
|
}
|
|
951
|
-
|
|
951
|
+
pe.length > 0 && (Q.fetchers = z(pe)), Ce(Q, {
|
|
952
952
|
flushSync: P
|
|
953
953
|
});
|
|
954
954
|
}
|
|
955
|
-
|
|
956
|
-
|
|
955
|
+
pe.forEach((Q) => {
|
|
956
|
+
at(Q.key), Q.controller && le.set(Q.key, Q.controller);
|
|
957
957
|
});
|
|
958
|
-
let
|
|
959
|
-
B && B.signal.addEventListener("abort",
|
|
958
|
+
let Ct = () => pe.forEach((Q) => at(Q.key));
|
|
959
|
+
B && B.signal.addEventListener("abort", Ct);
|
|
960
960
|
let {
|
|
961
961
|
loaderResults: Mt,
|
|
962
|
-
fetcherResults:
|
|
963
|
-
} = await
|
|
962
|
+
fetcherResults: ot
|
|
963
|
+
} = await nt(b, C, ee, pe, f);
|
|
964
964
|
if (f.signal.aborted)
|
|
965
965
|
return {
|
|
966
966
|
shortCircuited: !0
|
|
967
967
|
};
|
|
968
|
-
B && B.signal.removeEventListener("abort",
|
|
969
|
-
let
|
|
970
|
-
if (
|
|
971
|
-
return await Z(f,
|
|
968
|
+
B && B.signal.removeEventListener("abort", Ct), pe.forEach((Q) => le.delete(Q.key));
|
|
969
|
+
let Ye = dn(Mt);
|
|
970
|
+
if (Ye)
|
|
971
|
+
return await Z(f, Ye.result, !0, {
|
|
972
972
|
replace: O
|
|
973
973
|
}), {
|
|
974
974
|
shortCircuited: !0
|
|
975
975
|
};
|
|
976
|
-
if (
|
|
977
|
-
return
|
|
976
|
+
if (Ye = dn(ot), Ye)
|
|
977
|
+
return ge.add(Ye.key), await Z(f, Ye.result, !0, {
|
|
978
978
|
replace: O
|
|
979
979
|
}), {
|
|
980
980
|
shortCircuited: !0
|
|
@@ -982,13 +982,13 @@ function yi(e) {
|
|
|
982
982
|
let {
|
|
983
983
|
loaderData: qn,
|
|
984
984
|
errors: At
|
|
985
|
-
} =
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
(
|
|
985
|
+
} = to(b, C, Mt, D, pe, ot, Se);
|
|
986
|
+
Se.forEach((Q, me) => {
|
|
987
|
+
Q.subscribe((Et) => {
|
|
988
|
+
(Et || Q.done) && Se.delete(me);
|
|
989
989
|
});
|
|
990
990
|
}), d.v7_partialHydration && A && b.errors && (At = fe({}, b.errors, At));
|
|
991
|
-
let pt =
|
|
991
|
+
let pt = Fr(), cn = Ir(be), un = pt || cn || pe.length > 0;
|
|
992
992
|
return fe({
|
|
993
993
|
matches: C,
|
|
994
994
|
loaderData: qn,
|
|
@@ -998,7 +998,7 @@ function yi(e) {
|
|
|
998
998
|
} : {});
|
|
999
999
|
}
|
|
1000
1000
|
function ne(f) {
|
|
1001
|
-
if (f && !
|
|
1001
|
+
if (f && !Fe(f[1]))
|
|
1002
1002
|
return {
|
|
1003
1003
|
[f[0]]: f[1].data
|
|
1004
1004
|
};
|
|
@@ -1011,13 +1011,13 @@ function yi(e) {
|
|
|
1011
1011
|
b.fetchers.set(g.key, L);
|
|
1012
1012
|
}), new Map(b.fetchers);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function Y(f, g, C, L) {
|
|
1015
1015
|
if (r)
|
|
1016
1016
|
throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
|
|
1017
|
-
|
|
1018
|
-
let k = (L && L.flushSync) === !0, F = s || i, H = sr(b.location, b.matches, l, d.v7_prependBasename, C, d.v7_relativeSplatPath, g, L == null ? void 0 : L.relative), O =
|
|
1017
|
+
at(f);
|
|
1018
|
+
let k = (L && L.flushSync) === !0, F = s || i, H = sr(b.location, b.matches, l, d.v7_prependBasename, C, d.v7_relativeSplatPath, g, L == null ? void 0 : L.relative), O = gt(F, H, l), A = sn(O, F, H);
|
|
1019
1019
|
if (A.active && A.matches && (O = A.matches), !O) {
|
|
1020
|
-
|
|
1020
|
+
rt(f, g, Pe(404, {
|
|
1021
1021
|
pathname: H
|
|
1022
1022
|
}), {
|
|
1023
1023
|
flushSync: k
|
|
@@ -1028,33 +1028,33 @@ function yi(e) {
|
|
|
1028
1028
|
path: P,
|
|
1029
1029
|
submission: D,
|
|
1030
1030
|
error: J
|
|
1031
|
-
} =
|
|
1031
|
+
} = Zr(d.v7_normalizeFormMethod, !0, H, L);
|
|
1032
1032
|
if (J) {
|
|
1033
|
-
|
|
1033
|
+
rt(f, g, J, {
|
|
1034
1034
|
flushSync: k
|
|
1035
1035
|
});
|
|
1036
1036
|
return;
|
|
1037
1037
|
}
|
|
1038
|
-
let
|
|
1039
|
-
if (D &&
|
|
1040
|
-
W(f, g, P,
|
|
1038
|
+
let X = $t(O, P), xe = (L && L.preventScrollReset) === !0;
|
|
1039
|
+
if (D && Je(D.formMethod)) {
|
|
1040
|
+
W(f, g, P, X, O, A.active, k, xe, D);
|
|
1041
1041
|
return;
|
|
1042
1042
|
}
|
|
1043
|
-
|
|
1043
|
+
Be.set(f, {
|
|
1044
1044
|
routeId: g,
|
|
1045
1045
|
path: P
|
|
1046
|
-
}), re(f, g, P,
|
|
1046
|
+
}), re(f, g, P, X, O, A.active, k, xe, D);
|
|
1047
1047
|
}
|
|
1048
1048
|
async function W(f, g, C, L, k, F, H, O, A) {
|
|
1049
|
-
ht(),
|
|
1049
|
+
ht(), Be.delete(f);
|
|
1050
1050
|
function P(ye) {
|
|
1051
1051
|
if (!ye.route.action && !ye.route.lazy) {
|
|
1052
|
-
let
|
|
1052
|
+
let Lt = Pe(405, {
|
|
1053
1053
|
method: A.formMethod,
|
|
1054
1054
|
pathname: C,
|
|
1055
1055
|
routeId: g
|
|
1056
1056
|
});
|
|
1057
|
-
return
|
|
1057
|
+
return rt(f, g, Lt, {
|
|
1058
1058
|
flushSync: H
|
|
1059
1059
|
}), !0;
|
|
1060
1060
|
}
|
|
@@ -1063,16 +1063,16 @@ function yi(e) {
|
|
|
1063
1063
|
if (!F && P(L))
|
|
1064
1064
|
return;
|
|
1065
1065
|
let D = b.fetchers.get(f);
|
|
1066
|
-
|
|
1066
|
+
Ge(f, Ai(A, D), {
|
|
1067
1067
|
flushSync: H
|
|
1068
1068
|
});
|
|
1069
|
-
let J = new AbortController(),
|
|
1069
|
+
let J = new AbortController(), X = Rt(e.history, C, J.signal, A);
|
|
1070
1070
|
if (F) {
|
|
1071
|
-
let ye = await ln(k, new URL(
|
|
1071
|
+
let ye = await ln(k, new URL(X.url).pathname, X.signal, f);
|
|
1072
1072
|
if (ye.type === "aborted")
|
|
1073
1073
|
return;
|
|
1074
1074
|
if (ye.type === "error") {
|
|
1075
|
-
|
|
1075
|
+
rt(f, g, ye.error, {
|
|
1076
1076
|
flushSync: H
|
|
1077
1077
|
});
|
|
1078
1078
|
return;
|
|
@@ -1080,7 +1080,7 @@ function yi(e) {
|
|
|
1080
1080
|
if (k = ye.matches, L = $t(k, C), P(L))
|
|
1081
1081
|
return;
|
|
1082
1082
|
} else {
|
|
1083
|
-
|
|
1083
|
+
rt(f, g, Pe(404, {
|
|
1084
1084
|
pathname: C
|
|
1085
1085
|
}), {
|
|
1086
1086
|
flushSync: H
|
|
@@ -1088,105 +1088,105 @@ function yi(e) {
|
|
|
1088
1088
|
return;
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
|
|
1092
|
-
let xe =
|
|
1093
|
-
if (
|
|
1094
|
-
|
|
1091
|
+
le.set(f, J);
|
|
1092
|
+
let xe = Ne, ee = (await ue("action", b, X, [L], k, f))[L.route.id];
|
|
1093
|
+
if (X.signal.aborted) {
|
|
1094
|
+
le.get(f) === J && le.delete(f);
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
|
-
if (d.v7_fetcherPersist &&
|
|
1098
|
-
if (
|
|
1099
|
-
|
|
1097
|
+
if (d.v7_fetcherPersist && G.has(f)) {
|
|
1098
|
+
if (vt(ee) || Fe(ee)) {
|
|
1099
|
+
Ge(f, it(void 0));
|
|
1100
1100
|
return;
|
|
1101
1101
|
}
|
|
1102
1102
|
} else {
|
|
1103
|
-
if (
|
|
1104
|
-
if (
|
|
1105
|
-
|
|
1103
|
+
if (vt(ee))
|
|
1104
|
+
if (le.delete(f), be > xe) {
|
|
1105
|
+
Ge(f, it(void 0));
|
|
1106
1106
|
return;
|
|
1107
1107
|
} else
|
|
1108
|
-
return
|
|
1108
|
+
return ge.add(f), Ge(f, It(A)), Z(X, ee, !1, {
|
|
1109
1109
|
fetcherSubmission: A,
|
|
1110
1110
|
preventScrollReset: O
|
|
1111
1111
|
});
|
|
1112
|
-
if (
|
|
1113
|
-
|
|
1112
|
+
if (Fe(ee)) {
|
|
1113
|
+
rt(f, g, ee.error);
|
|
1114
1114
|
return;
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
|
-
if (
|
|
1118
|
-
throw
|
|
1117
|
+
if (ct(ee))
|
|
1118
|
+
throw Pe(400, {
|
|
1119
1119
|
type: "defer-action"
|
|
1120
1120
|
});
|
|
1121
|
-
let
|
|
1122
|
-
I(
|
|
1123
|
-
let
|
|
1124
|
-
|
|
1125
|
-
let qn = It(A,
|
|
1121
|
+
let pe = b.navigation.location || b.location, Ct = Rt(e.history, pe, J.signal), Mt = s || i, ot = b.navigation.state !== "idle" ? gt(Mt, b.navigation.location, l) : b.matches;
|
|
1122
|
+
I(ot, "Didn't find any matches after fetcher action");
|
|
1123
|
+
let Ye = ++Ne;
|
|
1124
|
+
$e.set(f, Ye);
|
|
1125
|
+
let qn = It(A, ee.data);
|
|
1126
1126
|
b.fetchers.set(f, qn);
|
|
1127
|
-
let [At, pt] =
|
|
1127
|
+
let [At, pt] = Gr(e.history, b, ot, A, pe, !1, d.v7_skipActionErrorRevalidation, Le, Ze, Ae, G, Be, ge, Mt, l, [L.route.id, ee]);
|
|
1128
1128
|
pt.filter((ye) => ye.key !== f).forEach((ye) => {
|
|
1129
|
-
let
|
|
1130
|
-
b.fetchers.set(
|
|
1131
|
-
}),
|
|
1129
|
+
let Lt = ye.key, jr = b.fetchers.get(Lt), _a = It(void 0, jr ? jr.data : void 0);
|
|
1130
|
+
b.fetchers.set(Lt, _a), at(Lt), ye.controller && le.set(Lt, ye.controller);
|
|
1131
|
+
}), Ce({
|
|
1132
1132
|
fetchers: new Map(b.fetchers)
|
|
1133
1133
|
});
|
|
1134
|
-
let cn = () => pt.forEach((ye) =>
|
|
1134
|
+
let cn = () => pt.forEach((ye) => at(ye.key));
|
|
1135
1135
|
J.signal.addEventListener("abort", cn);
|
|
1136
1136
|
let {
|
|
1137
1137
|
loaderResults: un,
|
|
1138
|
-
fetcherResults:
|
|
1139
|
-
} = await
|
|
1138
|
+
fetcherResults: Q
|
|
1139
|
+
} = await nt(b, ot, At, pt, Ct);
|
|
1140
1140
|
if (J.signal.aborted)
|
|
1141
1141
|
return;
|
|
1142
|
-
J.signal.removeEventListener("abort", cn),
|
|
1143
|
-
let
|
|
1144
|
-
if (
|
|
1145
|
-
return Z(
|
|
1142
|
+
J.signal.removeEventListener("abort", cn), $e.delete(f), le.delete(f), pt.forEach((ye) => le.delete(ye.key));
|
|
1143
|
+
let me = dn(un);
|
|
1144
|
+
if (me)
|
|
1145
|
+
return Z(Ct, me.result, !1, {
|
|
1146
1146
|
preventScrollReset: O
|
|
1147
1147
|
});
|
|
1148
|
-
if (
|
|
1149
|
-
return
|
|
1148
|
+
if (me = dn(Q), me)
|
|
1149
|
+
return ge.add(me.key), Z(Ct, me.result, !1, {
|
|
1150
1150
|
preventScrollReset: O
|
|
1151
1151
|
});
|
|
1152
1152
|
let {
|
|
1153
|
-
loaderData:
|
|
1153
|
+
loaderData: Et,
|
|
1154
1154
|
errors: Dt
|
|
1155
|
-
} =
|
|
1155
|
+
} = to(b, ot, un, void 0, pt, Q, Se);
|
|
1156
1156
|
if (b.fetchers.has(f)) {
|
|
1157
|
-
let ye =
|
|
1157
|
+
let ye = it(ee.data);
|
|
1158
1158
|
b.fetchers.set(f, ye);
|
|
1159
1159
|
}
|
|
1160
|
-
|
|
1161
|
-
matches:
|
|
1162
|
-
loaderData:
|
|
1160
|
+
Ir(Ye), b.navigation.state === "loading" && Ye > be ? (I(T, "Expected pending action"), B && B.abort(), tt(b.navigation.location, {
|
|
1161
|
+
matches: ot,
|
|
1162
|
+
loaderData: Et,
|
|
1163
1163
|
errors: Dt,
|
|
1164
1164
|
fetchers: new Map(b.fetchers)
|
|
1165
|
-
})) : (
|
|
1165
|
+
})) : (Ce({
|
|
1166
1166
|
errors: Dt,
|
|
1167
|
-
loaderData:
|
|
1167
|
+
loaderData: no(b.loaderData, Et, ot, Dt),
|
|
1168
1168
|
fetchers: new Map(b.fetchers)
|
|
1169
|
-
}),
|
|
1169
|
+
}), Le = !1);
|
|
1170
1170
|
}
|
|
1171
1171
|
async function re(f, g, C, L, k, F, H, O, A) {
|
|
1172
1172
|
let P = b.fetchers.get(f);
|
|
1173
|
-
|
|
1173
|
+
Ge(f, It(A, P ? P.data : void 0), {
|
|
1174
1174
|
flushSync: H
|
|
1175
1175
|
});
|
|
1176
|
-
let D = new AbortController(), J =
|
|
1176
|
+
let D = new AbortController(), J = Rt(e.history, C, D.signal);
|
|
1177
1177
|
if (F) {
|
|
1178
|
-
let
|
|
1179
|
-
if (
|
|
1178
|
+
let ee = await ln(k, new URL(J.url).pathname, J.signal, f);
|
|
1179
|
+
if (ee.type === "aborted")
|
|
1180
1180
|
return;
|
|
1181
|
-
if (
|
|
1182
|
-
|
|
1181
|
+
if (ee.type === "error") {
|
|
1182
|
+
rt(f, g, ee.error, {
|
|
1183
1183
|
flushSync: H
|
|
1184
1184
|
});
|
|
1185
1185
|
return;
|
|
1186
|
-
} else if (
|
|
1187
|
-
k =
|
|
1186
|
+
} else if (ee.matches)
|
|
1187
|
+
k = ee.matches, L = $t(k, C);
|
|
1188
1188
|
else {
|
|
1189
|
-
|
|
1189
|
+
rt(f, g, Pe(404, {
|
|
1190
1190
|
pathname: C
|
|
1191
1191
|
}), {
|
|
1192
1192
|
flushSync: H
|
|
@@ -1194,28 +1194,28 @@ function yi(e) {
|
|
|
1194
1194
|
return;
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
|
|
1198
|
-
let
|
|
1199
|
-
if (
|
|
1200
|
-
if (
|
|
1201
|
-
|
|
1197
|
+
le.set(f, D);
|
|
1198
|
+
let X = Ne, ce = (await ue("loader", b, J, [L], k, f))[L.route.id];
|
|
1199
|
+
if (ct(ce) && (ce = await Er(ce, J.signal, !0) || ce), le.get(f) === D && le.delete(f), !J.signal.aborted) {
|
|
1200
|
+
if (G.has(f)) {
|
|
1201
|
+
Ge(f, it(void 0));
|
|
1202
1202
|
return;
|
|
1203
1203
|
}
|
|
1204
|
-
if (
|
|
1205
|
-
if (
|
|
1206
|
-
|
|
1204
|
+
if (vt(ce))
|
|
1205
|
+
if (be > X) {
|
|
1206
|
+
Ge(f, it(void 0));
|
|
1207
1207
|
return;
|
|
1208
1208
|
} else {
|
|
1209
|
-
|
|
1209
|
+
ge.add(f), await Z(J, ce, !1, {
|
|
1210
1210
|
preventScrollReset: O
|
|
1211
1211
|
});
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
1214
|
-
if (
|
|
1215
|
-
|
|
1214
|
+
if (Fe(ce)) {
|
|
1215
|
+
rt(f, g, ce.error);
|
|
1216
1216
|
return;
|
|
1217
1217
|
}
|
|
1218
|
-
I(!
|
|
1218
|
+
I(!ct(ce), "Unhandled fetcher deferred data"), Ge(f, it(ce.data));
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
async function Z(f, g, C, L) {
|
|
@@ -1225,23 +1225,23 @@ function yi(e) {
|
|
|
1225
1225
|
preventScrollReset: H,
|
|
1226
1226
|
replace: O
|
|
1227
1227
|
} = L === void 0 ? {} : L;
|
|
1228
|
-
g.response.headers.has("X-Remix-Revalidate") && (
|
|
1228
|
+
g.response.headers.has("X-Remix-Revalidate") && (Le = !0);
|
|
1229
1229
|
let A = g.response.headers.get("Location");
|
|
1230
|
-
I(A, "Expected a Location header on the redirect Response"), A =
|
|
1230
|
+
I(A, "Expected a Location header on the redirect Response"), A = Qr(A, new URL(f.url), l);
|
|
1231
1231
|
let P = qt(b.location, A, {
|
|
1232
1232
|
_isRedirect: !0
|
|
1233
1233
|
});
|
|
1234
1234
|
if (n) {
|
|
1235
|
-
let
|
|
1235
|
+
let ee = !1;
|
|
1236
1236
|
if (g.response.headers.has("X-Remix-Reload-Document"))
|
|
1237
|
-
|
|
1237
|
+
ee = !0;
|
|
1238
1238
|
else if (Cr.test(A)) {
|
|
1239
|
-
const
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1239
|
+
const pe = e.history.createURL(A);
|
|
1240
|
+
ee = // Hard reload if it's an absolute URL to a new origin
|
|
1241
|
+
pe.origin !== t.location.origin || // Hard reload if it's an absolute URL that does not match our basename
|
|
1242
|
+
We(pe.pathname, l) == null;
|
|
1243
1243
|
}
|
|
1244
|
-
if (
|
|
1244
|
+
if (ee) {
|
|
1245
1245
|
O ? t.location.replace(A) : t.location.assign(A);
|
|
1246
1246
|
return;
|
|
1247
1247
|
}
|
|
@@ -1249,14 +1249,14 @@ function yi(e) {
|
|
|
1249
1249
|
B = null;
|
|
1250
1250
|
let D = O === !0 || g.response.headers.has("X-Remix-Replace") ? ve.Replace : ve.Push, {
|
|
1251
1251
|
formMethod: J,
|
|
1252
|
-
formAction:
|
|
1252
|
+
formAction: X,
|
|
1253
1253
|
formEncType: xe
|
|
1254
1254
|
} = b.navigation;
|
|
1255
|
-
!k && !F && J &&
|
|
1256
|
-
let
|
|
1257
|
-
if (pi.has(g.response.status) &&
|
|
1258
|
-
await
|
|
1259
|
-
submission: fe({},
|
|
1255
|
+
!k && !F && J && X && xe && (k = io(b.navigation));
|
|
1256
|
+
let ce = k || F;
|
|
1257
|
+
if (pi.has(g.response.status) && ce && Je(ce.formMethod))
|
|
1258
|
+
await Ke(D, P, {
|
|
1259
|
+
submission: fe({}, ce, {
|
|
1260
1260
|
formAction: A
|
|
1261
1261
|
}),
|
|
1262
1262
|
// Preserve these flags across redirects
|
|
@@ -1264,9 +1264,9 @@ function yi(e) {
|
|
|
1264
1264
|
enableViewTransition: C ? ae : void 0
|
|
1265
1265
|
});
|
|
1266
1266
|
else {
|
|
1267
|
-
let
|
|
1268
|
-
await
|
|
1269
|
-
overrideNavigation:
|
|
1267
|
+
let ee = Yn(P, k);
|
|
1268
|
+
await Ke(D, P, {
|
|
1269
|
+
overrideNavigation: ee,
|
|
1270
1270
|
// Send fetcher submissions through for shouldRevalidate
|
|
1271
1271
|
fetcherSubmission: F,
|
|
1272
1272
|
// Preserve these flags across redirects
|
|
@@ -1298,18 +1298,18 @@ function yi(e) {
|
|
|
1298
1298
|
O[A] = await Li(P);
|
|
1299
1299
|
return O;
|
|
1300
1300
|
}
|
|
1301
|
-
async function
|
|
1301
|
+
async function nt(f, g, C, L, k) {
|
|
1302
1302
|
let F = f.matches, H = ue("loader", f, k, C, g, null), O = Promise.all(L.map(async (D) => {
|
|
1303
1303
|
if (D.matches && D.match && D.controller) {
|
|
1304
|
-
let
|
|
1304
|
+
let X = (await ue("loader", f, Rt(e.history, D.path, D.controller.signal), [D.match], D.matches, D.key))[D.match.route.id];
|
|
1305
1305
|
return {
|
|
1306
|
-
[D.key]:
|
|
1306
|
+
[D.key]: X
|
|
1307
1307
|
};
|
|
1308
1308
|
} else
|
|
1309
1309
|
return Promise.resolve({
|
|
1310
1310
|
[D.key]: {
|
|
1311
1311
|
type: oe.error,
|
|
1312
|
-
error:
|
|
1312
|
+
error: Pe(404, {
|
|
1313
1313
|
pathname: D.path
|
|
1314
1314
|
})
|
|
1315
1315
|
}
|
|
@@ -1321,21 +1321,21 @@ function yi(e) {
|
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
1323
1323
|
function ht() {
|
|
1324
|
-
|
|
1325
|
-
|
|
1324
|
+
Le = !0, Ze.push(...Wn()), Be.forEach((f, g) => {
|
|
1325
|
+
le.has(g) && Ae.add(g), at(g);
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1329
|
-
C === void 0 && (C = {}), b.fetchers.set(f, g),
|
|
1328
|
+
function Ge(f, g, C) {
|
|
1329
|
+
C === void 0 && (C = {}), b.fetchers.set(f, g), Ce({
|
|
1330
1330
|
fetchers: new Map(b.fetchers)
|
|
1331
1331
|
}, {
|
|
1332
1332
|
flushSync: (C && C.flushSync) === !0
|
|
1333
1333
|
});
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function rt(f, g, C, L) {
|
|
1336
1336
|
L === void 0 && (L = {});
|
|
1337
|
-
let k =
|
|
1338
|
-
on(f),
|
|
1337
|
+
let k = yt(b.matches, g);
|
|
1338
|
+
on(f), Ce({
|
|
1339
1339
|
errors: {
|
|
1340
1340
|
[k.route.id]: C
|
|
1341
1341
|
},
|
|
@@ -1344,71 +1344,71 @@ function yi(e) {
|
|
|
1344
1344
|
flushSync: (L && L.flushSync) === !0
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return
|
|
1347
|
+
function Ar(f) {
|
|
1348
|
+
return ze.set(f, (ze.get(f) || 0) + 1), G.has(f) && G.delete(f), b.fetchers.get(f) || mi;
|
|
1349
1349
|
}
|
|
1350
1350
|
function on(f) {
|
|
1351
1351
|
let g = b.fetchers.get(f);
|
|
1352
|
-
|
|
1352
|
+
le.has(f) && !(g && g.state === "loading" && $e.has(f)) && at(f), Be.delete(f), $e.delete(f), ge.delete(f), d.v7_fetcherPersist && G.delete(f), Ae.delete(f), b.fetchers.delete(f);
|
|
1353
1353
|
}
|
|
1354
1354
|
function Ea(f) {
|
|
1355
|
-
let g = (
|
|
1356
|
-
g <= 0 ? (
|
|
1355
|
+
let g = (ze.get(f) || 0) - 1;
|
|
1356
|
+
g <= 0 ? (ze.delete(f), G.add(f), d.v7_fetcherPersist || on(f)) : ze.set(f, g), Ce({
|
|
1357
1357
|
fetchers: new Map(b.fetchers)
|
|
1358
1358
|
});
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1361
|
-
let g =
|
|
1362
|
-
g && (g.abort(),
|
|
1360
|
+
function at(f) {
|
|
1361
|
+
let g = le.get(f);
|
|
1362
|
+
g && (g.abort(), le.delete(f));
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Dr(f) {
|
|
1365
1365
|
for (let g of f) {
|
|
1366
|
-
let C =
|
|
1366
|
+
let C = Ar(g), L = it(C.data);
|
|
1367
1367
|
b.fetchers.set(g, L);
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Fr() {
|
|
1371
1371
|
let f = [], g = !1;
|
|
1372
|
-
for (let C of
|
|
1372
|
+
for (let C of ge) {
|
|
1373
1373
|
let L = b.fetchers.get(C);
|
|
1374
|
-
I(L, "Expected fetcher: " + C), L.state === "loading" && (
|
|
1374
|
+
I(L, "Expected fetcher: " + C), L.state === "loading" && (ge.delete(C), f.push(C), g = !0);
|
|
1375
1375
|
}
|
|
1376
|
-
return
|
|
1376
|
+
return Dr(f), g;
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Ir(f) {
|
|
1379
1379
|
let g = [];
|
|
1380
|
-
for (let [C, L] of
|
|
1380
|
+
for (let [C, L] of $e)
|
|
1381
1381
|
if (L < f) {
|
|
1382
1382
|
let k = b.fetchers.get(C);
|
|
1383
|
-
I(k, "Expected fetcher: " + C), k.state === "loading" && (
|
|
1383
|
+
I(k, "Expected fetcher: " + C), k.state === "loading" && (at(C), $e.delete(C), g.push(C));
|
|
1384
1384
|
}
|
|
1385
|
-
return
|
|
1385
|
+
return Dr(g), g.length > 0;
|
|
1386
1386
|
}
|
|
1387
1387
|
function La(f, g) {
|
|
1388
1388
|
let C = b.blockers.get(f) || Ft;
|
|
1389
|
-
return
|
|
1389
|
+
return Re.get(f) !== g && Re.set(f, g), C;
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1392
|
-
b.blockers.delete(f),
|
|
1391
|
+
function Br(f) {
|
|
1392
|
+
b.blockers.delete(f), Re.delete(f);
|
|
1393
1393
|
}
|
|
1394
1394
|
function an(f, g) {
|
|
1395
1395
|
let C = b.blockers.get(f) || Ft;
|
|
1396
1396
|
I(C.state === "unblocked" && g.state === "blocked" || C.state === "blocked" && g.state === "blocked" || C.state === "blocked" && g.state === "proceeding" || C.state === "blocked" && g.state === "unblocked" || C.state === "proceeding" && g.state === "unblocked", "Invalid blocker state transition: " + C.state + " -> " + g.state);
|
|
1397
1397
|
let L = new Map(b.blockers);
|
|
1398
|
-
L.set(f, g),
|
|
1398
|
+
L.set(f, g), Ce({
|
|
1399
1399
|
blockers: L
|
|
1400
1400
|
});
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Hr(f) {
|
|
1403
1403
|
let {
|
|
1404
1404
|
currentLocation: g,
|
|
1405
1405
|
nextLocation: C,
|
|
1406
1406
|
historyAction: L
|
|
1407
1407
|
} = f;
|
|
1408
|
-
if (
|
|
1408
|
+
if (Re.size === 0)
|
|
1409
1409
|
return;
|
|
1410
|
-
|
|
1411
|
-
let k = Array.from(
|
|
1410
|
+
Re.size > 1 && we(!1, "A router only supports one blocker at a time");
|
|
1411
|
+
let k = Array.from(Re.entries()), [F, H] = k[k.length - 1], O = b.blockers.get(F);
|
|
1412
1412
|
if (!(O && O.state === "proceeding") && H({
|
|
1413
1413
|
currentLocation: g,
|
|
1414
1414
|
nextLocation: C,
|
|
@@ -1417,12 +1417,12 @@ function yi(e) {
|
|
|
1417
1417
|
return F;
|
|
1418
1418
|
}
|
|
1419
1419
|
function Jn(f) {
|
|
1420
|
-
let g =
|
|
1420
|
+
let g = Pe(404, {
|
|
1421
1421
|
pathname: f
|
|
1422
1422
|
}), C = s || i, {
|
|
1423
1423
|
matches: L,
|
|
1424
1424
|
route: k
|
|
1425
|
-
} =
|
|
1425
|
+
} = oo(C);
|
|
1426
1426
|
return Wn(), {
|
|
1427
1427
|
notFoundMatches: L,
|
|
1428
1428
|
route: k,
|
|
@@ -1431,15 +1431,15 @@ function yi(e) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
function Wn(f) {
|
|
1433
1433
|
let g = [];
|
|
1434
|
-
return
|
|
1435
|
-
(!f || f(L)) && (C.cancel(), g.push(L),
|
|
1434
|
+
return Se.forEach((C, L) => {
|
|
1435
|
+
(!f || f(L)) && (C.cancel(), g.push(L), Se.delete(L));
|
|
1436
1436
|
}), g;
|
|
1437
1437
|
}
|
|
1438
1438
|
function Ra(f, g, C) {
|
|
1439
1439
|
if (m = f, v = g, p = C || null, !R && b.navigation === Gn) {
|
|
1440
1440
|
R = !0;
|
|
1441
|
-
let L =
|
|
1442
|
-
L != null &&
|
|
1441
|
+
let L = Vr(b.location, b.matches);
|
|
1442
|
+
L != null && Ce({
|
|
1443
1443
|
restoreScrollPosition: L
|
|
1444
1444
|
});
|
|
1445
1445
|
}
|
|
@@ -1447,18 +1447,18 @@ function yi(e) {
|
|
|
1447
1447
|
m = null, v = null, p = null;
|
|
1448
1448
|
};
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function Ur(f, g) {
|
|
1451
1451
|
return p && p(f, g.map((L) => Wa(L, b.loaderData))) || f.key;
|
|
1452
1452
|
}
|
|
1453
1453
|
function xa(f, g) {
|
|
1454
1454
|
if (m && v) {
|
|
1455
|
-
let C =
|
|
1455
|
+
let C = Ur(f, g);
|
|
1456
1456
|
m[C] = v();
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function Vr(f, g) {
|
|
1460
1460
|
if (m) {
|
|
1461
|
-
let C =
|
|
1461
|
+
let C = Ur(f, g), L = m[C];
|
|
1462
1462
|
if (typeof L == "number")
|
|
1463
1463
|
return L;
|
|
1464
1464
|
}
|
|
@@ -1498,7 +1498,7 @@ function yi(e) {
|
|
|
1498
1498
|
matches: k,
|
|
1499
1499
|
fetcherKey: L,
|
|
1500
1500
|
patch: (D, J) => {
|
|
1501
|
-
C.aborted ||
|
|
1501
|
+
C.aborted || Xr(D, J, H, O, o);
|
|
1502
1502
|
}
|
|
1503
1503
|
});
|
|
1504
1504
|
} catch (D) {
|
|
@@ -1514,7 +1514,7 @@ function yi(e) {
|
|
|
1514
1514
|
return {
|
|
1515
1515
|
type: "aborted"
|
|
1516
1516
|
};
|
|
1517
|
-
let A =
|
|
1517
|
+
let A = gt(H, g, l);
|
|
1518
1518
|
if (A)
|
|
1519
1519
|
return {
|
|
1520
1520
|
type: "success",
|
|
@@ -1534,7 +1534,7 @@ function yi(e) {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
function Na(f, g) {
|
|
1536
1536
|
let C = s == null;
|
|
1537
|
-
|
|
1537
|
+
Xr(f, g, s || i, a, o), C && (i = [...i], Ce({}));
|
|
1538
1538
|
}
|
|
1539
1539
|
return U = {
|
|
1540
1540
|
get basename() {
|
|
@@ -1556,20 +1556,20 @@ function yi(e) {
|
|
|
1556
1556
|
subscribe: tn,
|
|
1557
1557
|
enableScrollRestoration: Ra,
|
|
1558
1558
|
navigate: nn,
|
|
1559
|
-
fetch:
|
|
1559
|
+
fetch: Y,
|
|
1560
1560
|
revalidate: rn,
|
|
1561
1561
|
// Passthrough to history-aware createHref used by useHref so we get proper
|
|
1562
1562
|
// hash-aware URLs in DOM paths
|
|
1563
1563
|
createHref: (f) => e.history.createHref(f),
|
|
1564
1564
|
encodeLocation: (f) => e.history.encodeLocation(f),
|
|
1565
|
-
getFetcher:
|
|
1565
|
+
getFetcher: Ar,
|
|
1566
1566
|
deleteFetcher: Ea,
|
|
1567
1567
|
dispose: zn,
|
|
1568
1568
|
getBlocker: La,
|
|
1569
|
-
deleteBlocker:
|
|
1569
|
+
deleteBlocker: Br,
|
|
1570
1570
|
patchRoutes: Na,
|
|
1571
|
-
_internalFetchControllers:
|
|
1572
|
-
_internalActiveDeferreds:
|
|
1571
|
+
_internalFetchControllers: le,
|
|
1572
|
+
_internalActiveDeferreds: Se,
|
|
1573
1573
|
// TODO: Remove setRoutes, it's temporary to avoid dealing with
|
|
1574
1574
|
// updating the tree while validating the update algorithm.
|
|
1575
1575
|
_internalSetRoutes: ka
|
|
@@ -1589,7 +1589,7 @@ function sr(e, t, n, r, o, a, i, s) {
|
|
|
1589
1589
|
}
|
|
1590
1590
|
} else
|
|
1591
1591
|
l = t, c = t[t.length - 1];
|
|
1592
|
-
let u = Pn(o || ".", Tn(l, a),
|
|
1592
|
+
let u = Pn(o || ".", Tn(l, a), We(e.pathname, n) || e.pathname, s === "path");
|
|
1593
1593
|
if (o == null && (u.search = e.search, u.hash = e.hash), (o == null || o === "" || o === ".") && c) {
|
|
1594
1594
|
let d = Lr(u.search);
|
|
1595
1595
|
if (c.route.index && !d)
|
|
@@ -1601,9 +1601,9 @@ function sr(e, t, n, r, o, a, i, s) {
|
|
|
1601
1601
|
u.search = m ? "?" + m : "";
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
return r && n !== "/" && (u.pathname = u.pathname === "/" ? n :
|
|
1604
|
+
return r && n !== "/" && (u.pathname = u.pathname === "/" ? n : Qe([n, u.pathname])), ut(u);
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function Zr(e, t, n, r) {
|
|
1607
1607
|
if (!r || !vi(r))
|
|
1608
1608
|
return {
|
|
1609
1609
|
path: n
|
|
@@ -1611,19 +1611,19 @@ function qr(e, t, n, r) {
|
|
|
1611
1611
|
if (r.formMethod && !Ti(r.formMethod))
|
|
1612
1612
|
return {
|
|
1613
1613
|
path: n,
|
|
1614
|
-
error:
|
|
1614
|
+
error: Pe(405, {
|
|
1615
1615
|
method: r.formMethod
|
|
1616
1616
|
})
|
|
1617
1617
|
};
|
|
1618
1618
|
let o = () => ({
|
|
1619
1619
|
path: n,
|
|
1620
|
-
error:
|
|
1620
|
+
error: Pe(400, {
|
|
1621
1621
|
type: "invalid-body"
|
|
1622
1622
|
})
|
|
1623
|
-
}), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s =
|
|
1623
|
+
}), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s = Uo(n);
|
|
1624
1624
|
if (r.body !== void 0) {
|
|
1625
1625
|
if (r.formEncType === "text/plain") {
|
|
1626
|
-
if (!
|
|
1626
|
+
if (!Je(i))
|
|
1627
1627
|
return o();
|
|
1628
1628
|
let h = typeof r.body == "string" ? r.body : r.body instanceof FormData || r.body instanceof URLSearchParams ? (
|
|
1629
1629
|
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data
|
|
@@ -1645,7 +1645,7 @@ function qr(e, t, n, r) {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
};
|
|
1647
1647
|
} else if (r.formEncType === "application/json") {
|
|
1648
|
-
if (!
|
|
1648
|
+
if (!Je(i))
|
|
1649
1649
|
return o();
|
|
1650
1650
|
try {
|
|
1651
1651
|
let h = typeof r.body == "string" ? JSON.parse(r.body) : r.body;
|
|
@@ -1672,12 +1672,12 @@ function qr(e, t, n, r) {
|
|
|
1672
1672
|
else if (r.body instanceof FormData)
|
|
1673
1673
|
l = cr(r.body), c = r.body;
|
|
1674
1674
|
else if (r.body instanceof URLSearchParams)
|
|
1675
|
-
l = r.body, c =
|
|
1675
|
+
l = r.body, c = eo(l);
|
|
1676
1676
|
else if (r.body == null)
|
|
1677
1677
|
l = new URLSearchParams(), c = new FormData();
|
|
1678
1678
|
else
|
|
1679
1679
|
try {
|
|
1680
|
-
l = new URLSearchParams(r.body), c =
|
|
1680
|
+
l = new URLSearchParams(r.body), c = eo(l);
|
|
1681
1681
|
} catch {
|
|
1682
1682
|
return o();
|
|
1683
1683
|
}
|
|
@@ -1689,25 +1689,25 @@ function qr(e, t, n, r) {
|
|
|
1689
1689
|
json: void 0,
|
|
1690
1690
|
text: void 0
|
|
1691
1691
|
};
|
|
1692
|
-
if (
|
|
1692
|
+
if (Je(u.formMethod))
|
|
1693
1693
|
return {
|
|
1694
1694
|
path: n,
|
|
1695
1695
|
submission: u
|
|
1696
1696
|
};
|
|
1697
|
-
let d =
|
|
1697
|
+
let d = ft(n);
|
|
1698
1698
|
return t && d.search && Lr(d.search) && l.append("index", ""), d.search = "?" + l, {
|
|
1699
|
-
path:
|
|
1699
|
+
path: ut(d),
|
|
1700
1700
|
submission: u
|
|
1701
1701
|
};
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function Kr(e, t, n) {
|
|
1704
1704
|
n === void 0 && (n = !1);
|
|
1705
1705
|
let r = e.findIndex((o) => o.route.id === t);
|
|
1706
1706
|
return r >= 0 ? e.slice(0, n ? r + 1 : r) : e;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1709
|
-
let v = p ?
|
|
1710
|
-
a && t.errors ? x =
|
|
1708
|
+
function Gr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
|
|
1709
|
+
let v = p ? Fe(p[1]) ? p[1].error : p[1].data : void 0, R = e.createURL(t.location), S = e.createURL(o), x = n;
|
|
1710
|
+
a && t.errors ? x = Kr(n, Object.keys(t.errors)[0], !0) : p && Fe(p[1]) && (x = Kr(n, p[0]));
|
|
1711
1711
|
let _ = p ? p[1].statusCode : void 0, N = i && _ && _ >= 400, U = x.filter((T, K) => {
|
|
1712
1712
|
let {
|
|
1713
1713
|
route: B
|
|
@@ -1720,26 +1720,26 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
|
|
|
1720
1720
|
return lr(B, t.loaderData, t.errors);
|
|
1721
1721
|
if (wi(t.loaderData, t.matches[K], T) || l.some((te) => te === T.route.id))
|
|
1722
1722
|
return !0;
|
|
1723
|
-
let ae = t.matches[K],
|
|
1724
|
-
return
|
|
1723
|
+
let ae = t.matches[K], ie = T;
|
|
1724
|
+
return Yr(T, fe({
|
|
1725
1725
|
currentUrl: R,
|
|
1726
1726
|
currentParams: ae.params,
|
|
1727
1727
|
nextUrl: S,
|
|
1728
|
-
nextParams:
|
|
1728
|
+
nextParams: ie.params
|
|
1729
1729
|
}, r, {
|
|
1730
1730
|
actionResult: v,
|
|
1731
1731
|
actionStatus: _,
|
|
1732
1732
|
defaultShouldRevalidate: N ? !1 : (
|
|
1733
1733
|
// Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
|
|
1734
1734
|
s || R.pathname + R.search === S.pathname + S.search || // Search params affect all loaders
|
|
1735
|
-
R.search !== S.search ||
|
|
1735
|
+
R.search !== S.search || Bo(ae, ie)
|
|
1736
1736
|
)
|
|
1737
1737
|
}));
|
|
1738
1738
|
}), b = [];
|
|
1739
1739
|
return d.forEach((T, K) => {
|
|
1740
1740
|
if (a || !n.some((he) => he.route.id === T.routeId) || u.has(K))
|
|
1741
1741
|
return;
|
|
1742
|
-
let B =
|
|
1742
|
+
let B = gt(w, T.path, m);
|
|
1743
1743
|
if (!B) {
|
|
1744
1744
|
b.push({
|
|
1745
1745
|
key: K,
|
|
@@ -1751,8 +1751,8 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
|
|
|
1751
1751
|
});
|
|
1752
1752
|
return;
|
|
1753
1753
|
}
|
|
1754
|
-
let ae = t.fetchers.get(K),
|
|
1755
|
-
h.has(K) ? te = !1 : c.has(K) ? (c.delete(K), te = !0) : ae && ae.state !== "idle" && ae.data === void 0 ? te = s : te =
|
|
1754
|
+
let ae = t.fetchers.get(K), ie = $t(B, T.path), te = !1;
|
|
1755
|
+
h.has(K) ? te = !1 : c.has(K) ? (c.delete(K), te = !0) : ae && ae.state !== "idle" && ae.data === void 0 ? te = s : te = Yr(ie, fe({
|
|
1756
1756
|
currentUrl: R,
|
|
1757
1757
|
currentParams: t.matches[t.matches.length - 1].params,
|
|
1758
1758
|
nextUrl: S,
|
|
@@ -1766,7 +1766,7 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
|
|
|
1766
1766
|
routeId: T.routeId,
|
|
1767
1767
|
path: T.path,
|
|
1768
1768
|
matches: B,
|
|
1769
|
-
match:
|
|
1769
|
+
match: ie,
|
|
1770
1770
|
controller: new AbortController()
|
|
1771
1771
|
});
|
|
1772
1772
|
}), [U, b];
|
|
@@ -1787,7 +1787,7 @@ function wi(e, t, n) {
|
|
|
1787
1787
|
), o = e[n.route.id] === void 0;
|
|
1788
1788
|
return r || o;
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function Bo(e, t) {
|
|
1791
1791
|
let n = e.route.path;
|
|
1792
1792
|
return (
|
|
1793
1793
|
// param change for this match, /users/123 -> /users/456
|
|
@@ -1796,7 +1796,7 @@ function Io(e, t) {
|
|
|
1796
1796
|
n != null && n.endsWith("*") && e.params["*"] !== t.params["*"]
|
|
1797
1797
|
);
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1799
|
+
function Yr(e, t) {
|
|
1800
1800
|
if (e.route.shouldRevalidate) {
|
|
1801
1801
|
let n = e.route.shouldRevalidate(t);
|
|
1802
1802
|
if (typeof n == "boolean")
|
|
@@ -1804,7 +1804,7 @@ function Gr(e, t) {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
return t.defaultShouldRevalidate;
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function Xr(e, t, n, r, o) {
|
|
1808
1808
|
var a;
|
|
1809
1809
|
let i;
|
|
1810
1810
|
if (e) {
|
|
@@ -1812,13 +1812,13 @@ function Yr(e, t, n, r, o) {
|
|
|
1812
1812
|
I(c, "No route found to patch children into: routeId = " + e), c.children || (c.children = []), i = c.children;
|
|
1813
1813
|
} else
|
|
1814
1814
|
i = n;
|
|
1815
|
-
let s = t.filter((c) => !i.some((u) =>
|
|
1815
|
+
let s = t.filter((c) => !i.some((u) => Ho(c, u))), l = Cn(s, o, [e || "_", "patch", String(((a = i) == null ? void 0 : a.length) || "0")], r);
|
|
1816
1816
|
i.push(...l);
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function Ho(e, t) {
|
|
1819
1819
|
return "id" in e && "id" in t && e.id === t.id ? !0 : e.index === t.index && e.path === t.path && e.caseSensitive === t.caseSensitive ? (!e.children || e.children.length === 0) && (!t.children || t.children.length === 0) ? !0 : e.children.every((n, r) => {
|
|
1820
1820
|
var o;
|
|
1821
|
-
return (o = t.children) == null ? void 0 : o.some((a) =>
|
|
1821
|
+
return (o = t.children) == null ? void 0 : o.some((a) => Ho(n, a));
|
|
1822
1822
|
}) : !1;
|
|
1823
1823
|
}
|
|
1824
1824
|
async function bi(e, t, n) {
|
|
@@ -1914,7 +1914,7 @@ async function Ei(e, t, n, r, o, a) {
|
|
|
1914
1914
|
i = await l(c);
|
|
1915
1915
|
else if (e === "action") {
|
|
1916
1916
|
let u = new URL(t.url), d = u.pathname + u.search;
|
|
1917
|
-
throw
|
|
1917
|
+
throw Pe(405, {
|
|
1918
1918
|
method: t.method,
|
|
1919
1919
|
pathname: d,
|
|
1920
1920
|
routeId: n.route.id
|
|
@@ -1928,7 +1928,7 @@ async function Ei(e, t, n, r, o, a) {
|
|
|
1928
1928
|
i = await l(c);
|
|
1929
1929
|
else {
|
|
1930
1930
|
let u = new URL(t.url), d = u.pathname + u.search;
|
|
1931
|
-
throw
|
|
1931
|
+
throw Pe(404, {
|
|
1932
1932
|
pathname: d
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
@@ -1948,7 +1948,7 @@ async function Li(e) {
|
|
|
1948
1948
|
result: t,
|
|
1949
1949
|
type: n
|
|
1950
1950
|
} = e;
|
|
1951
|
-
if (
|
|
1951
|
+
if (Vo(t)) {
|
|
1952
1952
|
let d;
|
|
1953
1953
|
try {
|
|
1954
1954
|
let h = t.headers.get("Content-Type");
|
|
@@ -1972,7 +1972,7 @@ async function Li(e) {
|
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
1974
1974
|
if (n === oe.error) {
|
|
1975
|
-
if (
|
|
1975
|
+
if (ao(t)) {
|
|
1976
1976
|
var r, o;
|
|
1977
1977
|
if (t.data instanceof Error) {
|
|
1978
1978
|
var a, i;
|
|
@@ -2005,7 +2005,7 @@ async function Li(e) {
|
|
|
2005
2005
|
headers: ((l = t.init) == null ? void 0 : l.headers) && new Headers(t.init.headers)
|
|
2006
2006
|
};
|
|
2007
2007
|
}
|
|
2008
|
-
if (
|
|
2008
|
+
if (ao(t)) {
|
|
2009
2009
|
var c, u;
|
|
2010
2010
|
return {
|
|
2011
2011
|
type: oe.data,
|
|
@@ -2027,19 +2027,19 @@ function Ri(e, t, n, r, o, a) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
return e;
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function Qr(e, t, n) {
|
|
2031
2031
|
if (Cr.test(e)) {
|
|
2032
|
-
let r = e, o = r.startsWith("//") ? new URL(t.protocol + r) : new URL(r), a =
|
|
2032
|
+
let r = e, o = r.startsWith("//") ? new URL(t.protocol + r) : new URL(r), a = We(o.pathname, n) != null;
|
|
2033
2033
|
if (o.origin === t.origin && a)
|
|
2034
2034
|
return o.pathname + o.search + o.hash;
|
|
2035
2035
|
}
|
|
2036
2036
|
return e;
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2039
|
-
let o = e.createURL(
|
|
2038
|
+
function Rt(e, t, n, r) {
|
|
2039
|
+
let o = e.createURL(Uo(t)).toString(), a = {
|
|
2040
2040
|
signal: n
|
|
2041
2041
|
};
|
|
2042
|
-
if (r &&
|
|
2042
|
+
if (r && Je(r.formMethod)) {
|
|
2043
2043
|
let {
|
|
2044
2044
|
formMethod: i,
|
|
2045
2045
|
formEncType: s
|
|
@@ -2056,28 +2056,28 @@ function cr(e) {
|
|
|
2056
2056
|
t.append(n, typeof r == "string" ? r : r.name);
|
|
2057
2057
|
return t;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function eo(e) {
|
|
2060
2060
|
let t = new FormData();
|
|
2061
2061
|
for (let [n, r] of e.entries())
|
|
2062
2062
|
t.append(n, r);
|
|
2063
2063
|
return t;
|
|
2064
2064
|
}
|
|
2065
2065
|
function xi(e, t, n, r, o) {
|
|
2066
|
-
let a = {}, i = null, s, l = !1, c = {}, u = n &&
|
|
2066
|
+
let a = {}, i = null, s, l = !1, c = {}, u = n && Fe(n[1]) ? n[1].error : void 0;
|
|
2067
2067
|
return e.forEach((d) => {
|
|
2068
2068
|
if (!(d.route.id in t))
|
|
2069
2069
|
return;
|
|
2070
2070
|
let h = d.route.id, w = t[h];
|
|
2071
|
-
if (I(!
|
|
2071
|
+
if (I(!vt(w), "Cannot handle redirect results in processLoaderData"), Fe(w)) {
|
|
2072
2072
|
let m = w.error;
|
|
2073
2073
|
u !== void 0 && (m = u, u = void 0), i = i || {};
|
|
2074
2074
|
{
|
|
2075
|
-
let p =
|
|
2075
|
+
let p = yt(e, h);
|
|
2076
2076
|
i[p.route.id] == null && (i[p.route.id] = m);
|
|
2077
2077
|
}
|
|
2078
2078
|
a[h] = void 0, l || (l = !0, s = Zt(w.error) ? w.error.status : 500), w.headers && (c[h] = w.headers);
|
|
2079
2079
|
} else
|
|
2080
|
-
|
|
2080
|
+
ct(w) ? (r.set(h, w.deferredData), a[h] = w.deferredData.data, w.statusCode != null && w.statusCode !== 200 && !l && (s = w.statusCode), w.headers && (c[h] = w.headers)) : (a[h] = w.data, w.statusCode && w.statusCode !== 200 && !l && (s = w.statusCode), w.headers && (c[h] = w.headers));
|
|
2081
2081
|
}), u !== void 0 && n && (i = {
|
|
2082
2082
|
[n[0]]: u
|
|
2083
2083
|
}, a[n[0]] = void 0), {
|
|
@@ -2087,7 +2087,7 @@ function xi(e, t, n, r, o) {
|
|
|
2087
2087
|
loaderHeaders: c
|
|
2088
2088
|
};
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function to(e, t, n, r, o, a, i) {
|
|
2091
2091
|
let {
|
|
2092
2092
|
loaderData: s,
|
|
2093
2093
|
errors: l
|
|
@@ -2099,17 +2099,17 @@ function eo(e, t, n, r, o, a, i) {
|
|
|
2099
2099
|
controller: h
|
|
2100
2100
|
} = c, w = a[u];
|
|
2101
2101
|
if (I(w, "Did not find corresponding fetcher result"), !(h && h.signal.aborted))
|
|
2102
|
-
if (
|
|
2103
|
-
let m =
|
|
2102
|
+
if (Fe(w)) {
|
|
2103
|
+
let m = yt(e.matches, d == null ? void 0 : d.route.id);
|
|
2104
2104
|
l && l[m.route.id] || (l = fe({}, l, {
|
|
2105
2105
|
[m.route.id]: w.error
|
|
2106
2106
|
})), e.fetchers.delete(u);
|
|
2107
|
-
} else if (
|
|
2107
|
+
} else if (vt(w))
|
|
2108
2108
|
I(!1, "Unhandled fetcher revalidation redirect");
|
|
2109
|
-
else if (
|
|
2109
|
+
else if (ct(w))
|
|
2110
2110
|
I(!1, "Unhandled fetcher deferred data");
|
|
2111
2111
|
else {
|
|
2112
|
-
let m =
|
|
2112
|
+
let m = it(w.data);
|
|
2113
2113
|
e.fetchers.set(u, m);
|
|
2114
2114
|
}
|
|
2115
2115
|
}), {
|
|
@@ -2117,7 +2117,7 @@ function eo(e, t, n, r, o, a, i) {
|
|
|
2117
2117
|
errors: l
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function no(e, t, n, r) {
|
|
2121
2121
|
let o = fe({}, t);
|
|
2122
2122
|
for (let a of n) {
|
|
2123
2123
|
let i = a.route.id;
|
|
@@ -2126,8 +2126,8 @@ function to(e, t, n, r) {
|
|
|
2126
2126
|
}
|
|
2127
2127
|
return o;
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2130
|
-
return e ?
|
|
2129
|
+
function ro(e) {
|
|
2130
|
+
return e ? Fe(e[1]) ? {
|
|
2131
2131
|
// Clear out prior actionData on errors
|
|
2132
2132
|
actionData: {}
|
|
2133
2133
|
} : {
|
|
@@ -2136,10 +2136,10 @@ function no(e) {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
} : {};
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function yt(e, t) {
|
|
2140
2140
|
return (t ? e.slice(0, e.findIndex((r) => r.route.id === t) + 1) : [...e]).reverse().find((r) => r.route.hasErrorBoundary === !0) || e[0];
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2142
|
+
function oo(e) {
|
|
2143
2143
|
let t = e.length === 1 ? e[0] : e.find((n) => n.index || !n.path || n.path === "/") || {
|
|
2144
2144
|
id: "__shim-error-route__"
|
|
2145
2145
|
};
|
|
@@ -2153,7 +2153,7 @@ function ro(e) {
|
|
|
2153
2153
|
route: t
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2156
|
+
function Pe(e, t) {
|
|
2157
2157
|
let {
|
|
2158
2158
|
pathname: n,
|
|
2159
2159
|
routeId: r,
|
|
@@ -2167,16 +2167,16 @@ function dn(e) {
|
|
|
2167
2167
|
let t = Object.entries(e);
|
|
2168
2168
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
2169
2169
|
let [r, o] = t[n];
|
|
2170
|
-
if (
|
|
2170
|
+
if (vt(o))
|
|
2171
2171
|
return {
|
|
2172
2172
|
key: r,
|
|
2173
2173
|
result: o
|
|
2174
2174
|
};
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2178
|
-
let t = typeof e == "string" ?
|
|
2179
|
-
return
|
|
2177
|
+
function Uo(e) {
|
|
2178
|
+
let t = typeof e == "string" ? ft(e) : e;
|
|
2179
|
+
return ut(fe({}, t, {
|
|
2180
2180
|
hash: ""
|
|
2181
2181
|
}));
|
|
2182
2182
|
}
|
|
@@ -2184,31 +2184,31 @@ function ki(e, t) {
|
|
|
2184
2184
|
return e.pathname !== t.pathname || e.search !== t.search ? !1 : e.hash === "" ? t.hash !== "" : e.hash === t.hash ? !0 : t.hash !== "";
|
|
2185
2185
|
}
|
|
2186
2186
|
function Ni(e) {
|
|
2187
|
-
return
|
|
2187
|
+
return Vo(e.result) && hi.has(e.result.status);
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2189
|
+
function ct(e) {
|
|
2190
2190
|
return e.type === oe.deferred;
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function Fe(e) {
|
|
2193
2193
|
return e.type === oe.error;
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function vt(e) {
|
|
2196
2196
|
return (e && e.type) === oe.redirect;
|
|
2197
2197
|
}
|
|
2198
|
-
function
|
|
2198
|
+
function ao(e) {
|
|
2199
2199
|
return typeof e == "object" && e != null && "type" in e && "data" in e && "init" in e && e.type === "DataWithResponseInit";
|
|
2200
2200
|
}
|
|
2201
2201
|
function _i(e) {
|
|
2202
2202
|
let t = e;
|
|
2203
2203
|
return t && typeof t == "object" && typeof t.data == "object" && typeof t.subscribe == "function" && typeof t.cancel == "function" && typeof t.resolveData == "function";
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function Vo(e) {
|
|
2206
2206
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.headers == "object" && typeof e.body < "u";
|
|
2207
2207
|
}
|
|
2208
2208
|
function Ti(e) {
|
|
2209
2209
|
return fi.has(e.toLowerCase());
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function Je(e) {
|
|
2212
2212
|
return ui.has(e.toLowerCase());
|
|
2213
2213
|
}
|
|
2214
2214
|
async function Pi(e, t, n, r, o) {
|
|
@@ -2217,8 +2217,8 @@ async function Pi(e, t, n, r, o) {
|
|
|
2217
2217
|
let [s, l] = a[i], c = e.find((h) => (h == null ? void 0 : h.route.id) === s);
|
|
2218
2218
|
if (!c)
|
|
2219
2219
|
continue;
|
|
2220
|
-
let u = r.find((h) => h.route.id === c.route.id), d = u != null && !
|
|
2221
|
-
|
|
2220
|
+
let u = r.find((h) => h.route.id === c.route.id), d = u != null && !Bo(u, c) && (o && o[c.route.id]) !== void 0;
|
|
2221
|
+
ct(l) && d && await Er(l, n, !1).then((h) => {
|
|
2222
2222
|
h && (t[s] = h);
|
|
2223
2223
|
});
|
|
2224
2224
|
}
|
|
@@ -2230,7 +2230,7 @@ async function Oi(e, t, n) {
|
|
|
2230
2230
|
routeId: a,
|
|
2231
2231
|
controller: i
|
|
2232
2232
|
} = n[r], s = t[o];
|
|
2233
|
-
e.find((c) => (c == null ? void 0 : c.route.id) === a) &&
|
|
2233
|
+
e.find((c) => (c == null ? void 0 : c.route.id) === a) && ct(s) && (I(i, "Expected an AbortController for revalidating fetcher deferred result"), await Er(s, i.signal, !0).then((c) => {
|
|
2234
2234
|
c && (t[o] = c);
|
|
2235
2235
|
}));
|
|
2236
2236
|
}
|
|
@@ -2259,13 +2259,13 @@ function Lr(e) {
|
|
|
2259
2259
|
return new URLSearchParams(e).getAll("index").some((t) => t === "");
|
|
2260
2260
|
}
|
|
2261
2261
|
function $t(e, t) {
|
|
2262
|
-
let n = typeof t == "string" ?
|
|
2262
|
+
let n = typeof t == "string" ? ft(t).search : t.search;
|
|
2263
2263
|
if (e[e.length - 1].route.index && Lr(n || ""))
|
|
2264
2264
|
return e[e.length - 1];
|
|
2265
|
-
let r =
|
|
2265
|
+
let r = Do(e);
|
|
2266
2266
|
return r[r.length - 1];
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function io(e) {
|
|
2269
2269
|
let {
|
|
2270
2270
|
formMethod: t,
|
|
2271
2271
|
formAction: n,
|
|
@@ -2370,7 +2370,7 @@ function Ai(e, t) {
|
|
|
2370
2370
|
data: t ? t.data : void 0
|
|
2371
2371
|
};
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function it(e) {
|
|
2374
2374
|
return {
|
|
2375
2375
|
state: "idle",
|
|
2376
2376
|
formMethod: void 0,
|
|
@@ -2384,7 +2384,7 @@ function at(e) {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
function Di(e, t) {
|
|
2386
2386
|
try {
|
|
2387
|
-
let n = e.sessionStorage.getItem(
|
|
2387
|
+
let n = e.sessionStorage.getItem(Io);
|
|
2388
2388
|
if (n) {
|
|
2389
2389
|
let r = JSON.parse(n);
|
|
2390
2390
|
for (let [o, a] of Object.entries(r || {}))
|
|
@@ -2399,7 +2399,7 @@ function Fi(e, t) {
|
|
|
2399
2399
|
for (let [r, o] of t)
|
|
2400
2400
|
n[r] = [...o];
|
|
2401
2401
|
try {
|
|
2402
|
-
e.sessionStorage.setItem(
|
|
2402
|
+
e.sessionStorage.setItem(Io, JSON.stringify(n));
|
|
2403
2403
|
} catch (r) {
|
|
2404
2404
|
we(!1, "Failed to save applied view transitions in sessionStorage (" + r + ").");
|
|
2405
2405
|
}
|
|
@@ -2431,16 +2431,16 @@ const On = /* @__PURE__ */ y.createContext(null);
|
|
|
2431
2431
|
process.env.NODE_ENV !== "production" && (On.displayName = "DataRouterState");
|
|
2432
2432
|
const Ii = /* @__PURE__ */ y.createContext(null);
|
|
2433
2433
|
process.env.NODE_ENV !== "production" && (Ii.displayName = "Await");
|
|
2434
|
-
const
|
|
2435
|
-
process.env.NODE_ENV !== "production" && (
|
|
2434
|
+
const Ve = /* @__PURE__ */ y.createContext(null);
|
|
2435
|
+
process.env.NODE_ENV !== "production" && (Ve.displayName = "Navigation");
|
|
2436
2436
|
const Mn = /* @__PURE__ */ y.createContext(null);
|
|
2437
2437
|
process.env.NODE_ENV !== "production" && (Mn.displayName = "Location");
|
|
2438
|
-
const
|
|
2438
|
+
const je = /* @__PURE__ */ y.createContext({
|
|
2439
2439
|
outlet: null,
|
|
2440
2440
|
matches: [],
|
|
2441
2441
|
isDataRoute: !1
|
|
2442
2442
|
});
|
|
2443
|
-
process.env.NODE_ENV !== "production" && (
|
|
2443
|
+
process.env.NODE_ENV !== "production" && (je.displayName = "Route");
|
|
2444
2444
|
const Rr = /* @__PURE__ */ y.createContext(null);
|
|
2445
2445
|
process.env.NODE_ENV !== "production" && (Rr.displayName = "RouteError");
|
|
2446
2446
|
function Bi(e, t) {
|
|
@@ -2456,14 +2456,14 @@ function Bi(e, t) {
|
|
|
2456
2456
|
let {
|
|
2457
2457
|
basename: r,
|
|
2458
2458
|
navigator: o
|
|
2459
|
-
} = y.useContext(
|
|
2459
|
+
} = y.useContext(Ve), {
|
|
2460
2460
|
hash: a,
|
|
2461
2461
|
pathname: i,
|
|
2462
2462
|
search: s
|
|
2463
2463
|
} = Yt(e, {
|
|
2464
2464
|
relative: n
|
|
2465
2465
|
}), l = i;
|
|
2466
|
-
return r !== "/" && (l = i === "/" ? r :
|
|
2466
|
+
return r !== "/" && (l = i === "/" ? r : Qe([r, i])), o.createHref({
|
|
2467
2467
|
pathname: l,
|
|
2468
2468
|
search: s,
|
|
2469
2469
|
hash: a
|
|
@@ -2472,7 +2472,7 @@ function Bi(e, t) {
|
|
|
2472
2472
|
function Tt() {
|
|
2473
2473
|
return y.useContext(Mn) != null;
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function et() {
|
|
2476
2476
|
return Tt() || (process.env.NODE_ENV !== "production" ? I(
|
|
2477
2477
|
!1,
|
|
2478
2478
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -2480,14 +2480,14 @@ function Qe() {
|
|
|
2480
2480
|
"useLocation() may be used only in the context of a <Router> component."
|
|
2481
2481
|
) : I(!1)), y.useContext(Mn).location;
|
|
2482
2482
|
}
|
|
2483
|
-
const
|
|
2484
|
-
function
|
|
2485
|
-
y.useContext(
|
|
2483
|
+
const jo = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
2484
|
+
function $o(e) {
|
|
2485
|
+
y.useContext(Ve).static || y.useLayoutEffect(e);
|
|
2486
2486
|
}
|
|
2487
2487
|
function An() {
|
|
2488
2488
|
let {
|
|
2489
2489
|
isDataRoute: e
|
|
2490
|
-
} = y.useContext(
|
|
2490
|
+
} = y.useContext(je);
|
|
2491
2491
|
return e ? Qi() : Hi();
|
|
2492
2492
|
}
|
|
2493
2493
|
function Hi() {
|
|
@@ -2501,26 +2501,26 @@ function Hi() {
|
|
|
2501
2501
|
basename: t,
|
|
2502
2502
|
future: n,
|
|
2503
2503
|
navigator: r
|
|
2504
|
-
} = y.useContext(
|
|
2504
|
+
} = y.useContext(Ve), {
|
|
2505
2505
|
matches: o
|
|
2506
|
-
} = y.useContext(
|
|
2506
|
+
} = y.useContext(je), {
|
|
2507
2507
|
pathname: a
|
|
2508
|
-
} =
|
|
2509
|
-
return
|
|
2508
|
+
} = et(), i = JSON.stringify(Tn(o, n.v7_relativeSplatPath)), s = y.useRef(!1);
|
|
2509
|
+
return $o(() => {
|
|
2510
2510
|
s.current = !0;
|
|
2511
2511
|
}), y.useCallback(function(c, u) {
|
|
2512
|
-
if (u === void 0 && (u = {}), process.env.NODE_ENV !== "production" && we(s.current,
|
|
2512
|
+
if (u === void 0 && (u = {}), process.env.NODE_ENV !== "production" && we(s.current, jo), !s.current) return;
|
|
2513
2513
|
if (typeof c == "number") {
|
|
2514
2514
|
r.go(c);
|
|
2515
2515
|
return;
|
|
2516
2516
|
}
|
|
2517
2517
|
let d = Pn(c, JSON.parse(i), a, u.relative === "path");
|
|
2518
|
-
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t :
|
|
2518
|
+
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : Qe([t, d.pathname])), (u.replace ? r.replace : r.push)(d, u.state, u);
|
|
2519
2519
|
}, [t, r, i, a, e]);
|
|
2520
2520
|
}
|
|
2521
2521
|
const Ui = /* @__PURE__ */ y.createContext(null);
|
|
2522
2522
|
function Vi(e) {
|
|
2523
|
-
let t = y.useContext(
|
|
2523
|
+
let t = y.useContext(je).outlet;
|
|
2524
2524
|
return t && /* @__PURE__ */ y.createElement(Ui.Provider, {
|
|
2525
2525
|
value: e
|
|
2526
2526
|
}, t);
|
|
@@ -2528,7 +2528,7 @@ function Vi(e) {
|
|
|
2528
2528
|
function kd() {
|
|
2529
2529
|
let {
|
|
2530
2530
|
matches: e
|
|
2531
|
-
} = y.useContext(
|
|
2531
|
+
} = y.useContext(je), t = e[e.length - 1];
|
|
2532
2532
|
return t ? t.params : {};
|
|
2533
2533
|
}
|
|
2534
2534
|
function Yt(e, t) {
|
|
@@ -2536,11 +2536,11 @@ function Yt(e, t) {
|
|
|
2536
2536
|
relative: n
|
|
2537
2537
|
} = t === void 0 ? {} : t, {
|
|
2538
2538
|
future: r
|
|
2539
|
-
} = y.useContext(
|
|
2539
|
+
} = y.useContext(Ve), {
|
|
2540
2540
|
matches: o
|
|
2541
|
-
} = y.useContext(
|
|
2541
|
+
} = y.useContext(je), {
|
|
2542
2542
|
pathname: a
|
|
2543
|
-
} =
|
|
2543
|
+
} = et(), i = JSON.stringify(Tn(o, r.v7_relativeSplatPath));
|
|
2544
2544
|
return y.useMemo(() => Pn(e, JSON.parse(i), a, n === "path"), [e, i, a, n]);
|
|
2545
2545
|
}
|
|
2546
2546
|
function ji(e, t, n, r) {
|
|
@@ -2553,33 +2553,33 @@ function ji(e, t, n, r) {
|
|
|
2553
2553
|
let {
|
|
2554
2554
|
navigator: o,
|
|
2555
2555
|
static: a
|
|
2556
|
-
} = y.useContext(
|
|
2556
|
+
} = y.useContext(Ve), {
|
|
2557
2557
|
matches: i
|
|
2558
|
-
} = y.useContext(
|
|
2558
|
+
} = y.useContext(je), s = i[i.length - 1], l = s ? s.params : {}, c = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", d = s && s.route;
|
|
2559
2559
|
if (process.env.NODE_ENV !== "production") {
|
|
2560
2560
|
let S = d && d.path || "";
|
|
2561
|
-
|
|
2561
|
+
Jo(c, !d || S.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + c + '" (under <Route path="' + S + '">) 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.
|
|
2562
2562
|
|
|
2563
2563
|
` + ('Please change the parent <Route path="' + S + '"> to <Route ') + ('path="' + (S === "/" ? "*" : S + "/*") + '">.'));
|
|
2564
2564
|
}
|
|
2565
|
-
let h =
|
|
2565
|
+
let h = et(), w;
|
|
2566
2566
|
w = h;
|
|
2567
2567
|
let m = w.pathname || "/", p = m;
|
|
2568
2568
|
if (u !== "/") {
|
|
2569
2569
|
let S = u.replace(/^\//, "").split("/");
|
|
2570
2570
|
p = "/" + m.replace(/^\//, "").split("/").slice(S.length).join("/");
|
|
2571
2571
|
}
|
|
2572
|
-
let v = !a && n && n.matches && n.matches.length > 0 ? n.matches :
|
|
2572
|
+
let v = !a && n && n.matches && n.matches.length > 0 ? n.matches : gt(e, {
|
|
2573
2573
|
pathname: p
|
|
2574
2574
|
});
|
|
2575
2575
|
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && we(d || v != null, 'No routes matched location "' + w.pathname + w.search + w.hash + '" '), process.env.NODE_ENV !== "production" && we(v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + w.pathname + w.search + w.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), qi(v && v.map((S) => Object.assign({}, S, {
|
|
2576
2576
|
params: Object.assign({}, l, S.params),
|
|
2577
|
-
pathname:
|
|
2577
|
+
pathname: Qe([
|
|
2578
2578
|
u,
|
|
2579
2579
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
2580
2580
|
o.encodeLocation ? o.encodeLocation(S.pathname).pathname : S.pathname
|
|
2581
2581
|
]),
|
|
2582
|
-
pathnameBase: S.pathnameBase === "/" ? u :
|
|
2582
|
+
pathnameBase: S.pathnameBase === "/" ? u : Qe([
|
|
2583
2583
|
u,
|
|
2584
2584
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
2585
2585
|
o.encodeLocation ? o.encodeLocation(S.pathnameBase).pathname : S.pathnameBase
|
|
@@ -2635,7 +2635,7 @@ class Ji extends y.Component {
|
|
|
2635
2635
|
console.error("React Router caught the following error during render", t, n);
|
|
2636
2636
|
}
|
|
2637
2637
|
render() {
|
|
2638
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ y.createElement(
|
|
2638
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ y.createElement(je.Provider, {
|
|
2639
2639
|
value: this.props.routeContext
|
|
2640
2640
|
}, /* @__PURE__ */ y.createElement(Rr.Provider, {
|
|
2641
2641
|
value: this.state.error,
|
|
@@ -2649,7 +2649,7 @@ function Wi(e) {
|
|
|
2649
2649
|
match: n,
|
|
2650
2650
|
children: r
|
|
2651
2651
|
} = e, o = y.useContext(_t);
|
|
2652
|
-
return o && o.static && o.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ y.createElement(
|
|
2652
|
+
return o && o.static && o.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ y.createElement(je.Provider, {
|
|
2653
2653
|
value: t
|
|
2654
2654
|
}, r);
|
|
2655
2655
|
}
|
|
@@ -2688,7 +2688,7 @@ function qi(e, t, n, r) {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
return i.reduceRight((u, d, h) => {
|
|
2690
2690
|
let w, m = !1, p = null, v = null;
|
|
2691
|
-
n && (w = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || zi, l && (c < 0 && h === 0 ? (
|
|
2691
|
+
n && (w = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || zi, l && (c < 0 && h === 0 ? (Jo("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), m = !0, v = null) : c === h && (m = !0, v = d.route.hydrateFallbackElement || null)));
|
|
2692
2692
|
let R = t.concat(i.slice(0, h + 1)), S = () => {
|
|
2693
2693
|
let x;
|
|
2694
2694
|
return w ? x = p : m ? x = v : d.route.Component ? x = /* @__PURE__ */ y.createElement(d.route.Component, null) : d.route.element ? x = d.route.element : x = u, /* @__PURE__ */ y.createElement(Wi, {
|
|
@@ -2715,9 +2715,9 @@ function qi(e, t, n, r) {
|
|
|
2715
2715
|
}) : S();
|
|
2716
2716
|
}, null);
|
|
2717
2717
|
}
|
|
2718
|
-
var
|
|
2718
|
+
var zo = /* @__PURE__ */ function(e) {
|
|
2719
2719
|
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
2720
|
-
}(
|
|
2720
|
+
}(zo || {}), Kt = /* @__PURE__ */ function(e) {
|
|
2721
2721
|
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
2722
2722
|
}(Kt || {});
|
|
2723
2723
|
function xr(e) {
|
|
@@ -2732,7 +2732,7 @@ function Ki(e) {
|
|
|
2732
2732
|
return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
|
|
2733
2733
|
}
|
|
2734
2734
|
function Gi(e) {
|
|
2735
|
-
let t = y.useContext(
|
|
2735
|
+
let t = y.useContext(je);
|
|
2736
2736
|
return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
|
|
2737
2737
|
}
|
|
2738
2738
|
function kr(e) {
|
|
@@ -2750,26 +2750,26 @@ function Xi() {
|
|
|
2750
2750
|
function Qi() {
|
|
2751
2751
|
let {
|
|
2752
2752
|
router: e
|
|
2753
|
-
} = Zi(
|
|
2754
|
-
return
|
|
2753
|
+
} = Zi(zo.UseNavigateStable), t = kr(Kt.UseNavigateStable), n = y.useRef(!1);
|
|
2754
|
+
return $o(() => {
|
|
2755
2755
|
n.current = !0;
|
|
2756
2756
|
}), y.useCallback(function(o, a) {
|
|
2757
|
-
a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current,
|
|
2757
|
+
a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current, jo), n.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o, Rn({
|
|
2758
2758
|
fromRouteId: t
|
|
2759
2759
|
}, a)));
|
|
2760
2760
|
}, [e, t]);
|
|
2761
2761
|
}
|
|
2762
|
-
const io = {};
|
|
2763
|
-
function zo(e, t, n) {
|
|
2764
|
-
!t && !io[e] && (io[e] = !0, process.env.NODE_ENV !== "production" && we(!1, n));
|
|
2765
|
-
}
|
|
2766
2762
|
const so = {};
|
|
2763
|
+
function Jo(e, t, n) {
|
|
2764
|
+
!t && !so[e] && (so[e] = !0, process.env.NODE_ENV !== "production" && we(!1, n));
|
|
2765
|
+
}
|
|
2766
|
+
const lo = {};
|
|
2767
2767
|
function es(e, t) {
|
|
2768
|
-
process.env.NODE_ENV !== "production" && !
|
|
2768
|
+
process.env.NODE_ENV !== "production" && !lo[t] && (lo[t] = !0, console.warn(t));
|
|
2769
2769
|
}
|
|
2770
|
-
const
|
|
2770
|
+
const xt = (e, t, n) => es(e, "⚠️ React Router Future Flag Warning: " + t + ". " + ("You can use the `" + e + "` future flag to opt-in early. ") + ("For more information, see " + n + "."));
|
|
2771
2771
|
function ts(e, t) {
|
|
2772
|
-
(e == null ? void 0 : e.v7_startTransition) === void 0 &&
|
|
2772
|
+
(e == null ? void 0 : e.v7_startTransition) === void 0 && xt("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"), (e == null ? void 0 : e.v7_relativeSplatPath) === void 0 && (!t || !t.v7_relativeSplatPath) && xt("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"), t && (t.v7_fetcherPersist === void 0 && xt("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"), t.v7_normalizeFormMethod === void 0 && xt("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"), t.v7_partialHydration === void 0 && xt("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"), t.v7_skipActionErrorRevalidation === void 0 && xt("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"));
|
|
2773
2773
|
}
|
|
2774
2774
|
function Nd(e) {
|
|
2775
2775
|
let {
|
|
@@ -2787,13 +2787,13 @@ function Nd(e) {
|
|
|
2787
2787
|
let {
|
|
2788
2788
|
future: a,
|
|
2789
2789
|
static: i
|
|
2790
|
-
} = y.useContext(
|
|
2790
|
+
} = y.useContext(Ve);
|
|
2791
2791
|
process.env.NODE_ENV !== "production" && we(!i, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
|
|
2792
2792
|
let {
|
|
2793
2793
|
matches: s
|
|
2794
|
-
} = y.useContext(
|
|
2794
|
+
} = y.useContext(je), {
|
|
2795
2795
|
pathname: l
|
|
2796
|
-
} =
|
|
2796
|
+
} = et(), c = An(), u = Pn(t, Tn(s, a.v7_relativeSplatPath), l, o === "path"), d = JSON.stringify(u);
|
|
2797
2797
|
return y.useEffect(() => c(JSON.parse(d), {
|
|
2798
2798
|
replace: n,
|
|
2799
2799
|
state: r,
|
|
@@ -2822,7 +2822,7 @@ function ns(e) {
|
|
|
2822
2822
|
v7_relativeSplatPath: !1
|
|
2823
2823
|
}, s)
|
|
2824
2824
|
}), [l, s, a, i]);
|
|
2825
|
-
typeof r == "string" && (r =
|
|
2825
|
+
typeof r == "string" && (r = ft(r));
|
|
2826
2826
|
let {
|
|
2827
2827
|
pathname: u = "/",
|
|
2828
2828
|
search: d = "",
|
|
@@ -2830,7 +2830,7 @@ function ns(e) {
|
|
|
2830
2830
|
state: w = null,
|
|
2831
2831
|
key: m = "default"
|
|
2832
2832
|
} = r, p = y.useMemo(() => {
|
|
2833
|
-
let v =
|
|
2833
|
+
let v = We(u, l);
|
|
2834
2834
|
return v == null ? null : {
|
|
2835
2835
|
location: {
|
|
2836
2836
|
pathname: v,
|
|
@@ -2842,7 +2842,7 @@ function ns(e) {
|
|
|
2842
2842
|
navigationType: o
|
|
2843
2843
|
};
|
|
2844
2844
|
}, [l, u, d, h, w, m, o]);
|
|
2845
|
-
return process.env.NODE_ENV !== "production" && we(p != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + h + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), p == null ? null : /* @__PURE__ */ y.createElement(
|
|
2845
|
+
return process.env.NODE_ENV !== "production" && we(p != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + h + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), p == null ? null : /* @__PURE__ */ y.createElement(Ve.Provider, {
|
|
2846
2846
|
value: c
|
|
2847
2847
|
}, /* @__PURE__ */ y.createElement(Mn.Provider, {
|
|
2848
2848
|
children: n,
|
|
@@ -2878,15 +2878,15 @@ function rs(e) {
|
|
|
2878
2878
|
*
|
|
2879
2879
|
* @license MIT
|
|
2880
2880
|
*/
|
|
2881
|
-
function
|
|
2882
|
-
return
|
|
2881
|
+
function dt() {
|
|
2882
|
+
return dt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2883
2883
|
for (var t = 1; t < arguments.length; t++) {
|
|
2884
2884
|
var n = arguments[t];
|
|
2885
2885
|
for (var r in n)
|
|
2886
2886
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2887
2887
|
}
|
|
2888
2888
|
return e;
|
|
2889
|
-
},
|
|
2889
|
+
}, dt.apply(this, arguments);
|
|
2890
2890
|
}
|
|
2891
2891
|
function Nr(e, t) {
|
|
2892
2892
|
if (e == null) return {};
|
|
@@ -2952,13 +2952,13 @@ function fs(e, t) {
|
|
|
2952
2952
|
let n, r, o, a, i;
|
|
2953
2953
|
if (as(e)) {
|
|
2954
2954
|
let s = e.getAttribute("action");
|
|
2955
|
-
r = s ?
|
|
2955
|
+
r = s ? We(s, t) : null, n = e.getAttribute("method") || yn, o = Xn(e.getAttribute("enctype")) || vn, a = new FormData(e);
|
|
2956
2956
|
} else if (os(e) || is(e) && (e.type === "submit" || e.type === "image")) {
|
|
2957
2957
|
let s = e.form;
|
|
2958
2958
|
if (s == null)
|
|
2959
2959
|
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
2960
2960
|
let l = e.getAttribute("formaction") || s.getAttribute("action");
|
|
2961
|
-
if (r = l ?
|
|
2961
|
+
if (r = l ? We(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || yn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || vn, a = new FormData(s, e), !us()) {
|
|
2962
2962
|
let {
|
|
2963
2963
|
name: c,
|
|
2964
2964
|
type: u,
|
|
@@ -2990,7 +2990,7 @@ try {
|
|
|
2990
2990
|
function Td(e, t) {
|
|
2991
2991
|
return yi({
|
|
2992
2992
|
basename: void 0,
|
|
2993
|
-
future:
|
|
2993
|
+
future: dt({}, void 0, {
|
|
2994
2994
|
v7_prependBasename: !0
|
|
2995
2995
|
}),
|
|
2996
2996
|
history: Va({
|
|
@@ -3007,7 +3007,7 @@ function Td(e, t) {
|
|
|
3007
3007
|
function ys() {
|
|
3008
3008
|
var e;
|
|
3009
3009
|
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
3010
|
-
return t && t.errors && (t =
|
|
3010
|
+
return t && t.errors && (t = dt({}, t, {
|
|
3011
3011
|
errors: vs(t.errors)
|
|
3012
3012
|
})), t;
|
|
3013
3013
|
}
|
|
@@ -3039,14 +3039,14 @@ const _r = /* @__PURE__ */ y.createContext({
|
|
|
3039
3039
|
isTransitioning: !1
|
|
3040
3040
|
});
|
|
3041
3041
|
process.env.NODE_ENV !== "production" && (_r.displayName = "ViewTransition");
|
|
3042
|
-
const
|
|
3043
|
-
process.env.NODE_ENV !== "production" && (
|
|
3044
|
-
const ws = "startTransition",
|
|
3042
|
+
const Wo = /* @__PURE__ */ y.createContext(/* @__PURE__ */ new Map());
|
|
3043
|
+
process.env.NODE_ENV !== "production" && (Wo.displayName = "Fetchers");
|
|
3044
|
+
const ws = "startTransition", co = y[ws], bs = "flushSync", uo = Pa[bs];
|
|
3045
3045
|
function Ss(e) {
|
|
3046
|
-
|
|
3046
|
+
co ? co(e) : e();
|
|
3047
3047
|
}
|
|
3048
3048
|
function Bt(e) {
|
|
3049
|
-
|
|
3049
|
+
uo ? uo(e) : e();
|
|
3050
3050
|
}
|
|
3051
3051
|
class Cs {
|
|
3052
3052
|
constructor() {
|
|
@@ -3074,13 +3074,13 @@ function Pd(e) {
|
|
|
3074
3074
|
let {
|
|
3075
3075
|
deletedFetchers: B,
|
|
3076
3076
|
flushSync: ae,
|
|
3077
|
-
viewTransitionOpts:
|
|
3077
|
+
viewTransitionOpts: ie
|
|
3078
3078
|
} = K;
|
|
3079
|
-
T.fetchers.forEach((he,
|
|
3080
|
-
he.data !== void 0 && v.current.set(
|
|
3079
|
+
T.fetchers.forEach((he, Le) => {
|
|
3080
|
+
he.data !== void 0 && v.current.set(Le, he.data);
|
|
3081
3081
|
}), B.forEach((he) => v.current.delete(he));
|
|
3082
3082
|
let te = n.window == null || n.window.document == null || typeof n.window.document.startViewTransition != "function";
|
|
3083
|
-
if (!
|
|
3083
|
+
if (!ie || te) {
|
|
3084
3084
|
ae ? Bt(() => a(T)) : S(() => a(T));
|
|
3085
3085
|
return;
|
|
3086
3086
|
}
|
|
@@ -3089,8 +3089,8 @@ function Pd(e) {
|
|
|
3089
3089
|
h && (u && u.resolve(), h.skipTransition()), c({
|
|
3090
3090
|
isTransitioning: !0,
|
|
3091
3091
|
flushSync: !0,
|
|
3092
|
-
currentLocation:
|
|
3093
|
-
nextLocation:
|
|
3092
|
+
currentLocation: ie.currentLocation,
|
|
3093
|
+
nextLocation: ie.nextLocation
|
|
3094
3094
|
});
|
|
3095
3095
|
});
|
|
3096
3096
|
let he = n.window.document.startViewTransition(() => {
|
|
@@ -3107,13 +3107,13 @@ function Pd(e) {
|
|
|
3107
3107
|
}
|
|
3108
3108
|
h ? (u && u.resolve(), h.skipTransition(), p({
|
|
3109
3109
|
state: T,
|
|
3110
|
-
currentLocation:
|
|
3111
|
-
nextLocation:
|
|
3110
|
+
currentLocation: ie.currentLocation,
|
|
3111
|
+
nextLocation: ie.nextLocation
|
|
3112
3112
|
})) : (s(T), c({
|
|
3113
3113
|
isTransitioning: !0,
|
|
3114
3114
|
flushSync: !1,
|
|
3115
|
-
currentLocation:
|
|
3116
|
-
nextLocation:
|
|
3115
|
+
currentLocation: ie.currentLocation,
|
|
3116
|
+
nextLocation: ie.nextLocation
|
|
3117
3117
|
}));
|
|
3118
3118
|
}, [n.window, h, u, v, S]);
|
|
3119
3119
|
y.useLayoutEffect(() => n.subscribe(x), [n, x]), y.useEffect(() => {
|
|
@@ -3166,7 +3166,7 @@ function Pd(e) {
|
|
|
3166
3166
|
value: U
|
|
3167
3167
|
}, /* @__PURE__ */ y.createElement(On.Provider, {
|
|
3168
3168
|
value: o
|
|
3169
|
-
}, /* @__PURE__ */ y.createElement(
|
|
3169
|
+
}, /* @__PURE__ */ y.createElement(Wo.Provider, {
|
|
3170
3170
|
value: v.current
|
|
3171
3171
|
}, /* @__PURE__ */ y.createElement(_r.Provider, {
|
|
3172
3172
|
value: l
|
|
@@ -3192,7 +3192,7 @@ function Ls(e) {
|
|
|
3192
3192
|
return ji(t, void 0, r, n);
|
|
3193
3193
|
}
|
|
3194
3194
|
process.env.NODE_ENV;
|
|
3195
|
-
const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", xs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,
|
|
3195
|
+
const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", xs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, qo = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
3196
3196
|
let {
|
|
3197
3197
|
onClick: r,
|
|
3198
3198
|
relative: o,
|
|
@@ -3205,10 +3205,10 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3205
3205
|
viewTransition: d
|
|
3206
3206
|
} = t, h = Nr(t, hs), {
|
|
3207
3207
|
basename: w
|
|
3208
|
-
} = y.useContext(
|
|
3208
|
+
} = y.useContext(Ve), m, p = !1;
|
|
3209
3209
|
if (typeof c == "string" && xs.test(c) && (m = c, Rs))
|
|
3210
3210
|
try {
|
|
3211
|
-
let x = new URL(window.location.href), _ = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), N =
|
|
3211
|
+
let x = new URL(window.location.href), _ = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), N = We(_.pathname, w);
|
|
3212
3212
|
_.origin === x.origin && N != null ? c = N + _.search + _.hash : p = !0;
|
|
3213
3213
|
} catch {
|
|
3214
3214
|
process.env.NODE_ENV !== "production" && we(!1, '<Link to="' + c + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
@@ -3228,7 +3228,7 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3228
3228
|
}
|
|
3229
3229
|
return (
|
|
3230
3230
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
3231
|
-
/* @__PURE__ */ y.createElement("a",
|
|
3231
|
+
/* @__PURE__ */ y.createElement("a", dt({}, h, {
|
|
3232
3232
|
href: m || v,
|
|
3233
3233
|
onClick: p || a ? r : S,
|
|
3234
3234
|
ref: n,
|
|
@@ -3236,7 +3236,7 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3236
3236
|
}))
|
|
3237
3237
|
);
|
|
3238
3238
|
});
|
|
3239
|
-
process.env.NODE_ENV !== "production" && (
|
|
3239
|
+
process.env.NODE_ENV !== "production" && (qo.displayName = "Link");
|
|
3240
3240
|
const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
3241
3241
|
let {
|
|
3242
3242
|
"aria-current": r = "page",
|
|
@@ -3249,13 +3249,13 @@ const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
3249
3249
|
children: u
|
|
3250
3250
|
} = t, d = Nr(t, ps), h = Yt(l, {
|
|
3251
3251
|
relative: d.relative
|
|
3252
|
-
}), w =
|
|
3252
|
+
}), w = et(), m = y.useContext(On), {
|
|
3253
3253
|
navigator: p,
|
|
3254
3254
|
basename: v
|
|
3255
|
-
} = y.useContext(
|
|
3255
|
+
} = y.useContext(Ve), R = m != null && // Conditional usage is OK here because the usage of a data router is static
|
|
3256
3256
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
3257
3257
|
Fs(h) && c === !0, S = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, x = w.pathname, _ = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
|
|
3258
|
-
o || (x = x.toLowerCase(), _ = _ ? _.toLowerCase() : null, S = S.toLowerCase()), _ && v && (_ =
|
|
3258
|
+
o || (x = x.toLowerCase(), _ = _ ? _.toLowerCase() : null, S = S.toLowerCase()), _ && v && (_ = We(_, v) || _);
|
|
3259
3259
|
const N = S !== "/" && S.endsWith("/") ? S.length - 1 : S.length;
|
|
3260
3260
|
let U = x === S || !i && x.startsWith(S) && x.charAt(N) === "/", b = _ != null && (_ === S || !i && _.startsWith(S) && _.charAt(S.length) === "/"), T = {
|
|
3261
3261
|
isActive: U,
|
|
@@ -3264,7 +3264,7 @@ const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
3264
3264
|
}, K = U ? r : void 0, B;
|
|
3265
3265
|
typeof a == "function" ? B = a(T) : B = [a, U ? "active" : null, b ? "pending" : null, R ? "transitioning" : null].filter(Boolean).join(" ");
|
|
3266
3266
|
let ae = typeof s == "function" ? s(T) : s;
|
|
3267
|
-
return /* @__PURE__ */ y.createElement(
|
|
3267
|
+
return /* @__PURE__ */ y.createElement(qo, dt({}, d, {
|
|
3268
3268
|
"aria-current": K,
|
|
3269
3269
|
className: B,
|
|
3270
3270
|
ref: n,
|
|
@@ -3304,7 +3304,7 @@ const Ns = /* @__PURE__ */ y.forwardRef((e, t) => {
|
|
|
3304
3304
|
viewTransition: h
|
|
3305
3305
|
});
|
|
3306
3306
|
};
|
|
3307
|
-
return /* @__PURE__ */ y.createElement("form",
|
|
3307
|
+
return /* @__PURE__ */ y.createElement("form", dt({
|
|
3308
3308
|
ref: t,
|
|
3309
3309
|
method: v,
|
|
3310
3310
|
action: p,
|
|
@@ -3317,14 +3317,14 @@ var xn;
|
|
|
3317
3317
|
(function(e) {
|
|
3318
3318
|
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
3319
3319
|
})(xn || (xn = {}));
|
|
3320
|
-
var
|
|
3320
|
+
var fo;
|
|
3321
3321
|
(function(e) {
|
|
3322
3322
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
3323
|
-
})(
|
|
3323
|
+
})(fo || (fo = {}));
|
|
3324
3324
|
function _s(e) {
|
|
3325
3325
|
return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function Zo(e) {
|
|
3328
3328
|
let t = y.useContext(_t);
|
|
3329
3329
|
return t || (process.env.NODE_ENV !== "production" ? I(!1, _s(e)) : I(!1)), t;
|
|
3330
3330
|
}
|
|
@@ -3336,13 +3336,13 @@ function Ts(e, t) {
|
|
|
3336
3336
|
preventScrollReset: a,
|
|
3337
3337
|
relative: i,
|
|
3338
3338
|
viewTransition: s
|
|
3339
|
-
} = t === void 0 ? {} : t, l = An(), c =
|
|
3339
|
+
} = t === void 0 ? {} : t, l = An(), c = et(), u = Yt(e, {
|
|
3340
3340
|
relative: i
|
|
3341
3341
|
});
|
|
3342
3342
|
return y.useCallback((d) => {
|
|
3343
3343
|
if (ls(d, n)) {
|
|
3344
3344
|
d.preventDefault();
|
|
3345
|
-
let h = r !== void 0 ? r :
|
|
3345
|
+
let h = r !== void 0 ? r : ut(c) === ut(u);
|
|
3346
3346
|
l(e, {
|
|
3347
3347
|
replace: h,
|
|
3348
3348
|
state: o,
|
|
@@ -3355,7 +3355,7 @@ function Ts(e, t) {
|
|
|
3355
3355
|
}
|
|
3356
3356
|
function Od(e) {
|
|
3357
3357
|
process.env.NODE_ENV !== "production" && we(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
|
|
3358
|
-
let t = y.useRef(ur(e)), n = y.useRef(!1), r =
|
|
3358
|
+
let t = y.useRef(ur(e)), n = y.useRef(!1), r = et(), o = y.useMemo(() => (
|
|
3359
3359
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
3360
3360
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
3361
3361
|
// remove a param with setSearchParams({}) if it has an initial value
|
|
@@ -3374,9 +3374,9 @@ let Os = 0, Ms = () => "__" + String(++Os) + "__";
|
|
|
3374
3374
|
function As() {
|
|
3375
3375
|
let {
|
|
3376
3376
|
router: e
|
|
3377
|
-
} =
|
|
3377
|
+
} = Zo(xn.UseSubmit), {
|
|
3378
3378
|
basename: t
|
|
3379
|
-
} = y.useContext(
|
|
3379
|
+
} = y.useContext(Ve), n = Yi();
|
|
3380
3380
|
return y.useCallback(function(r, o) {
|
|
3381
3381
|
o === void 0 && (o = {}), Ps();
|
|
3382
3382
|
let {
|
|
@@ -3416,11 +3416,11 @@ function Ds(e, t) {
|
|
|
3416
3416
|
relative: n
|
|
3417
3417
|
} = t === void 0 ? {} : t, {
|
|
3418
3418
|
basename: r
|
|
3419
|
-
} = y.useContext(
|
|
3419
|
+
} = y.useContext(Ve), o = y.useContext(je);
|
|
3420
3420
|
o || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
|
|
3421
|
-
let [a] = o.matches.slice(-1), i =
|
|
3421
|
+
let [a] = o.matches.slice(-1), i = dt({}, Yt(e || ".", {
|
|
3422
3422
|
relative: n
|
|
3423
|
-
})), s =
|
|
3423
|
+
})), s = et();
|
|
3424
3424
|
if (e == null) {
|
|
3425
3425
|
i.search = s.search;
|
|
3426
3426
|
let l = new URLSearchParams(i.search), c = l.getAll("index");
|
|
@@ -3430,7 +3430,7 @@ function Ds(e, t) {
|
|
|
3430
3430
|
i.search = d ? "?" + d : "";
|
|
3431
3431
|
}
|
|
3432
3432
|
}
|
|
3433
|
-
return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r :
|
|
3433
|
+
return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : Qe([r, i.pathname])), ut(i);
|
|
3434
3434
|
}
|
|
3435
3435
|
function Fs(e, t) {
|
|
3436
3436
|
t === void 0 && (t = {});
|
|
@@ -3438,15 +3438,15 @@ function Fs(e, t) {
|
|
|
3438
3438
|
n == null && (process.env.NODE_ENV !== "production" ? I(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : I(!1));
|
|
3439
3439
|
let {
|
|
3440
3440
|
basename: r
|
|
3441
|
-
} =
|
|
3441
|
+
} = Zo(xn.useViewTransitionState), o = Yt(e, {
|
|
3442
3442
|
relative: t.relative
|
|
3443
3443
|
});
|
|
3444
3444
|
if (!n.isTransitioning)
|
|
3445
3445
|
return !1;
|
|
3446
|
-
let a =
|
|
3446
|
+
let a = We(n.currentLocation.pathname, r) || n.currentLocation.pathname, i = We(n.nextLocation.pathname, r) || n.nextLocation.pathname;
|
|
3447
3447
|
return En(o.pathname, i) != null || En(o.pathname, a) != null;
|
|
3448
3448
|
}
|
|
3449
|
-
var
|
|
3449
|
+
var Ko = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e.Api = "API", e))(Ko || {}), Is = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Tickets = "Tickets", e.Api = "API", e))(Is || {});
|
|
3450
3450
|
const Md = [
|
|
3451
3451
|
{
|
|
3452
3452
|
caption: "Share link",
|
|
@@ -3460,7 +3460,7 @@ const Md = [
|
|
|
3460
3460
|
caption: "Percentages",
|
|
3461
3461
|
description: "You get rewards"
|
|
3462
3462
|
}
|
|
3463
|
-
],
|
|
3463
|
+
], ho = (e) => {
|
|
3464
3464
|
let t;
|
|
3465
3465
|
const n = /* @__PURE__ */ new Set(), r = (c, u) => {
|
|
3466
3466
|
const d = typeof c == "function" ? c(t) : c;
|
|
@@ -3470,22 +3470,22 @@ const Md = [
|
|
|
3470
3470
|
}
|
|
3471
3471
|
}, o = () => t, s = { setState: r, getState: o, getInitialState: () => l, subscribe: (c) => (n.add(c), () => n.delete(c)) }, l = t = e(r, o, s);
|
|
3472
3472
|
return s;
|
|
3473
|
-
}, Bs = (e) => e ?
|
|
3473
|
+
}, Bs = (e) => e ? ho(e) : ho, Hs = (e) => e;
|
|
3474
3474
|
function Us(e, t = Hs) {
|
|
3475
|
-
const n =
|
|
3475
|
+
const n = Te.useSyncExternalStore(
|
|
3476
3476
|
e.subscribe,
|
|
3477
3477
|
() => t(e.getState()),
|
|
3478
3478
|
() => t(e.getInitialState())
|
|
3479
3479
|
);
|
|
3480
|
-
return
|
|
3480
|
+
return Te.useDebugValue(n), n;
|
|
3481
3481
|
}
|
|
3482
|
-
const
|
|
3482
|
+
const po = (e) => {
|
|
3483
3483
|
const t = Bs(e), n = (r) => Us(t, r);
|
|
3484
3484
|
return Object.assign(n, t), n;
|
|
3485
|
-
}, se = (e) => e ?
|
|
3485
|
+
}, se = (e) => e ? po(e) : po, Ad = se((e) => ({
|
|
3486
3486
|
action: null,
|
|
3487
3487
|
setAction: (t) => e(() => ({ action: t })),
|
|
3488
|
-
route:
|
|
3488
|
+
route: Ko.Home,
|
|
3489
3489
|
setRoute: (t) => e(() => ({ route: t })),
|
|
3490
3490
|
dashInfo: null,
|
|
3491
3491
|
setDashInfo: (t) => e(() => ({ dashInfo: t })),
|
|
@@ -3572,7 +3572,7 @@ function $s(e, t) {
|
|
|
3572
3572
|
throw new zt(`Invalid token specified: invalid json for part #${n + 1} (${a.message})`);
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function Go(e, t) {
|
|
3576
3576
|
return function() {
|
|
3577
3577
|
return e.apply(t, arguments);
|
|
3578
3578
|
};
|
|
@@ -3580,25 +3580,25 @@ function Ko(e, t) {
|
|
|
3580
3580
|
const { toString: zs } = Object.prototype, { getPrototypeOf: Tr } = Object, Fn = /* @__PURE__ */ ((e) => (t) => {
|
|
3581
3581
|
const n = zs.call(t);
|
|
3582
3582
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
3583
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
3583
|
+
})(/* @__PURE__ */ Object.create(null)), qe = (e) => (e = e.toLowerCase(), (t) => Fn(t) === e), In = (e) => (t) => typeof t === e, { isArray: Pt } = Array, Gt = In("undefined");
|
|
3584
3584
|
function Js(e) {
|
|
3585
|
-
return e !== null && !Gt(e) && e.constructor !== null && !Gt(e.constructor) &&
|
|
3585
|
+
return e !== null && !Gt(e) && e.constructor !== null && !Gt(e.constructor) && Ie(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
3586
3586
|
}
|
|
3587
|
-
const
|
|
3587
|
+
const Yo = qe("ArrayBuffer");
|
|
3588
3588
|
function Ws(e) {
|
|
3589
3589
|
let t;
|
|
3590
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
3590
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Yo(e.buffer), t;
|
|
3591
3591
|
}
|
|
3592
|
-
const qs = In("string"),
|
|
3592
|
+
const qs = In("string"), Ie = In("function"), Xo = In("number"), Bn = (e) => e !== null && typeof e == "object", Zs = (e) => e === !0 || e === !1, wn = (e) => {
|
|
3593
3593
|
if (Fn(e) !== "object")
|
|
3594
3594
|
return !1;
|
|
3595
3595
|
const t = Tr(e);
|
|
3596
3596
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
3597
|
-
}, Ks =
|
|
3597
|
+
}, Ks = qe("Date"), Gs = qe("File"), Ys = qe("Blob"), Xs = qe("FileList"), Qs = (e) => Bn(e) && Ie(e.pipe), el = (e) => {
|
|
3598
3598
|
let t;
|
|
3599
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
3600
|
-
t === "object" &&
|
|
3601
|
-
}, tl =
|
|
3599
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Ie(e.append) && ((t = Fn(e)) === "formdata" || // detect form-data instance
|
|
3600
|
+
t === "object" && Ie(e.toString) && e.toString() === "[object FormData]"));
|
|
3601
|
+
}, tl = qe("URLSearchParams"), [nl, rl, ol, al] = ["ReadableStream", "Request", "Response", "Headers"].map(qe), il = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3602
3602
|
function Xt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
3603
3603
|
if (e === null || typeof e > "u")
|
|
3604
3604
|
return;
|
|
@@ -3613,7 +3613,7 @@ function Xt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
3613
3613
|
s = a[r], t.call(null, e[s], s, e);
|
|
3614
3614
|
}
|
|
3615
3615
|
}
|
|
3616
|
-
function
|
|
3616
|
+
function Qo(e, t) {
|
|
3617
3617
|
t = t.toLowerCase();
|
|
3618
3618
|
const n = Object.keys(e);
|
|
3619
3619
|
let r = n.length, o;
|
|
@@ -3622,10 +3622,10 @@ function Xo(e, t) {
|
|
|
3622
3622
|
return o;
|
|
3623
3623
|
return null;
|
|
3624
3624
|
}
|
|
3625
|
-
const
|
|
3625
|
+
const wt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ea = (e) => !Gt(e) && e !== wt;
|
|
3626
3626
|
function dr() {
|
|
3627
|
-
const { caseless: e } =
|
|
3628
|
-
const a = e &&
|
|
3627
|
+
const { caseless: e } = ea(this) && this || {}, t = {}, n = (r, o) => {
|
|
3628
|
+
const a = e && Qo(t, o) || o;
|
|
3629
3629
|
wn(t[a]) && wn(r) ? t[a] = dr(t[a], r) : wn(r) ? t[a] = dr({}, r) : Pt(r) ? t[a] = r.slice() : t[a] = r;
|
|
3630
3630
|
};
|
|
3631
3631
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
@@ -3633,7 +3633,7 @@ function dr() {
|
|
|
3633
3633
|
return t;
|
|
3634
3634
|
}
|
|
3635
3635
|
const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
3636
|
-
n &&
|
|
3636
|
+
n && Ie(o) ? e[a] = Go(o, n) : e[a] = o;
|
|
3637
3637
|
}, { allOwnKeys: r }), e), ll = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), cl = (e, t, n, r) => {
|
|
3638
3638
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
3639
3639
|
value: t.prototype
|
|
@@ -3656,7 +3656,7 @@ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
|
3656
3656
|
if (!e) return null;
|
|
3657
3657
|
if (Pt(e)) return e;
|
|
3658
3658
|
let t = e.length;
|
|
3659
|
-
if (!
|
|
3659
|
+
if (!Xo(t)) return null;
|
|
3660
3660
|
const n = new Array(t);
|
|
3661
3661
|
for (; t-- > 0; )
|
|
3662
3662
|
n[t] = e[t];
|
|
@@ -3674,23 +3674,23 @@ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
|
3674
3674
|
for (; (n = e.exec(t)) !== null; )
|
|
3675
3675
|
r.push(n);
|
|
3676
3676
|
return r;
|
|
3677
|
-
}, gl =
|
|
3677
|
+
}, gl = qe("HTMLFormElement"), yl = (e) => e.toLowerCase().replace(
|
|
3678
3678
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
3679
3679
|
function(n, r, o) {
|
|
3680
3680
|
return r.toUpperCase() + o;
|
|
3681
3681
|
}
|
|
3682
|
-
),
|
|
3682
|
+
), mo = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), vl = qe("RegExp"), ta = (e, t) => {
|
|
3683
3683
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
3684
3684
|
Xt(n, (o, a) => {
|
|
3685
3685
|
let i;
|
|
3686
3686
|
(i = t(o, a, e)) !== !1 && (r[a] = i || o);
|
|
3687
3687
|
}), Object.defineProperties(e, r);
|
|
3688
3688
|
}, wl = (e) => {
|
|
3689
|
-
|
|
3690
|
-
if (
|
|
3689
|
+
ta(e, (t, n) => {
|
|
3690
|
+
if (Ie(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
3691
3691
|
return !1;
|
|
3692
3692
|
const r = e[n];
|
|
3693
|
-
if (
|
|
3693
|
+
if (Ie(r)) {
|
|
3694
3694
|
if (t.enumerable = !1, "writable" in t) {
|
|
3695
3695
|
t.writable = !1;
|
|
3696
3696
|
return;
|
|
@@ -3710,7 +3710,7 @@ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
|
3710
3710
|
}, Sl = () => {
|
|
3711
3711
|
}, Cl = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
3712
3712
|
function El(e) {
|
|
3713
|
-
return !!(e &&
|
|
3713
|
+
return !!(e && Ie(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
3714
3714
|
}
|
|
3715
3715
|
const Ll = (e) => {
|
|
3716
3716
|
const t = new Array(10), n = (r, o) => {
|
|
@@ -3729,21 +3729,21 @@ const Ll = (e) => {
|
|
|
3729
3729
|
return r;
|
|
3730
3730
|
};
|
|
3731
3731
|
return n(e, 0);
|
|
3732
|
-
}, Rl =
|
|
3733
|
-
o ===
|
|
3732
|
+
}, Rl = qe("AsyncFunction"), xl = (e) => e && (Bn(e) || Ie(e)) && Ie(e.then) && Ie(e.catch), na = ((e, t) => e ? setImmediate : t ? ((n, r) => (wt.addEventListener("message", ({ source: o, data: a }) => {
|
|
3733
|
+
o === wt && a === n && r.length && r.shift()();
|
|
3734
3734
|
}, !1), (o) => {
|
|
3735
|
-
r.push(o),
|
|
3735
|
+
r.push(o), wt.postMessage(n, "*");
|
|
3736
3736
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
3737
3737
|
typeof setImmediate == "function",
|
|
3738
|
-
|
|
3739
|
-
), kl = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
3738
|
+
Ie(wt.postMessage)
|
|
3739
|
+
), kl = typeof queueMicrotask < "u" ? queueMicrotask.bind(wt) : typeof process < "u" && process.nextTick || na, E = {
|
|
3740
3740
|
isArray: Pt,
|
|
3741
|
-
isArrayBuffer:
|
|
3741
|
+
isArrayBuffer: Yo,
|
|
3742
3742
|
isBuffer: Js,
|
|
3743
3743
|
isFormData: el,
|
|
3744
3744
|
isArrayBufferView: Ws,
|
|
3745
3745
|
isString: qs,
|
|
3746
|
-
isNumber:
|
|
3746
|
+
isNumber: Xo,
|
|
3747
3747
|
isBoolean: Zs,
|
|
3748
3748
|
isObject: Bn,
|
|
3749
3749
|
isPlainObject: wn,
|
|
@@ -3756,7 +3756,7 @@ const Ll = (e) => {
|
|
|
3756
3756
|
isFile: Gs,
|
|
3757
3757
|
isBlob: Ys,
|
|
3758
3758
|
isRegExp: vl,
|
|
3759
|
-
isFunction:
|
|
3759
|
+
isFunction: Ie,
|
|
3760
3760
|
isStream: Qs,
|
|
3761
3761
|
isURLSearchParams: tl,
|
|
3762
3762
|
isTypedArray: hl,
|
|
@@ -3769,29 +3769,29 @@ const Ll = (e) => {
|
|
|
3769
3769
|
inherits: cl,
|
|
3770
3770
|
toFlatObject: ul,
|
|
3771
3771
|
kindOf: Fn,
|
|
3772
|
-
kindOfTest:
|
|
3772
|
+
kindOfTest: qe,
|
|
3773
3773
|
endsWith: dl,
|
|
3774
3774
|
toArray: fl,
|
|
3775
3775
|
forEachEntry: pl,
|
|
3776
3776
|
matchAll: ml,
|
|
3777
3777
|
isHTMLForm: gl,
|
|
3778
|
-
hasOwnProperty:
|
|
3779
|
-
hasOwnProp:
|
|
3778
|
+
hasOwnProperty: mo,
|
|
3779
|
+
hasOwnProp: mo,
|
|
3780
3780
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
3781
|
-
reduceDescriptors:
|
|
3781
|
+
reduceDescriptors: ta,
|
|
3782
3782
|
freezeMethods: wl,
|
|
3783
3783
|
toObjectSet: bl,
|
|
3784
3784
|
toCamelCase: yl,
|
|
3785
3785
|
noop: Sl,
|
|
3786
3786
|
toFiniteNumber: Cl,
|
|
3787
|
-
findKey:
|
|
3788
|
-
global:
|
|
3789
|
-
isContextDefined:
|
|
3787
|
+
findKey: Qo,
|
|
3788
|
+
global: wt,
|
|
3789
|
+
isContextDefined: ea,
|
|
3790
3790
|
isSpecCompliantForm: El,
|
|
3791
3791
|
toJSONObject: Ll,
|
|
3792
3792
|
isAsyncFn: Rl,
|
|
3793
3793
|
isThenable: xl,
|
|
3794
|
-
setImmediate:
|
|
3794
|
+
setImmediate: na,
|
|
3795
3795
|
asap: kl
|
|
3796
3796
|
};
|
|
3797
3797
|
function $(e, t, n, r, o) {
|
|
@@ -3818,7 +3818,7 @@ E.inherits($, Error, {
|
|
|
3818
3818
|
};
|
|
3819
3819
|
}
|
|
3820
3820
|
});
|
|
3821
|
-
const
|
|
3821
|
+
const ra = $.prototype, oa = {};
|
|
3822
3822
|
[
|
|
3823
3823
|
"ERR_BAD_OPTION_VALUE",
|
|
3824
3824
|
"ERR_BAD_OPTION",
|
|
@@ -3834,12 +3834,12 @@ const na = $.prototype, ra = {};
|
|
|
3834
3834
|
"ERR_INVALID_URL"
|
|
3835
3835
|
// eslint-disable-next-line func-names
|
|
3836
3836
|
].forEach((e) => {
|
|
3837
|
-
|
|
3837
|
+
oa[e] = { value: e };
|
|
3838
3838
|
});
|
|
3839
|
-
Object.defineProperties($,
|
|
3840
|
-
Object.defineProperty(
|
|
3839
|
+
Object.defineProperties($, oa);
|
|
3840
|
+
Object.defineProperty(ra, "isAxiosError", { value: !0 });
|
|
3841
3841
|
$.from = (e, t, n, r, o, a) => {
|
|
3842
|
-
const i = Object.create(
|
|
3842
|
+
const i = Object.create(ra);
|
|
3843
3843
|
return E.toFlatObject(e, i, function(l) {
|
|
3844
3844
|
return l !== Error.prototype;
|
|
3845
3845
|
}, (s) => s !== "isAxiosError"), $.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
|
|
@@ -3848,12 +3848,12 @@ const Nl = null;
|
|
|
3848
3848
|
function fr(e) {
|
|
3849
3849
|
return E.isPlainObject(e) || E.isArray(e);
|
|
3850
3850
|
}
|
|
3851
|
-
function
|
|
3851
|
+
function aa(e) {
|
|
3852
3852
|
return E.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
3853
3853
|
}
|
|
3854
|
-
function
|
|
3854
|
+
function go(e, t, n) {
|
|
3855
3855
|
return e ? e.concat(t).map(function(o, a) {
|
|
3856
|
-
return o =
|
|
3856
|
+
return o = aa(o), !n && a ? "[" + o + "]" : o;
|
|
3857
3857
|
}).join(n ? "." : "") : t;
|
|
3858
3858
|
}
|
|
3859
3859
|
function _l(e) {
|
|
@@ -3889,15 +3889,15 @@ function Hn(e, t, n) {
|
|
|
3889
3889
|
if (E.endsWith(p, "{}"))
|
|
3890
3890
|
p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
|
|
3891
3891
|
else if (E.isArray(m) && _l(m) || (E.isFileList(m) || E.endsWith(p, "[]")) && (R = E.toArray(m)))
|
|
3892
|
-
return p =
|
|
3892
|
+
return p = aa(p), R.forEach(function(x, _) {
|
|
3893
3893
|
!(E.isUndefined(x) || x === null) && t.append(
|
|
3894
3894
|
// eslint-disable-next-line no-nested-ternary
|
|
3895
|
-
i === !0 ?
|
|
3895
|
+
i === !0 ? go([p], _, a) : i === null ? p : p + "[]",
|
|
3896
3896
|
c(x)
|
|
3897
3897
|
);
|
|
3898
3898
|
}), !1;
|
|
3899
3899
|
}
|
|
3900
|
-
return fr(m) ? !0 : (t.append(
|
|
3900
|
+
return fr(m) ? !0 : (t.append(go(v, p, a), c(m)), !1);
|
|
3901
3901
|
}
|
|
3902
3902
|
const d = [], h = Object.assign(Tl, {
|
|
3903
3903
|
defaultVisitor: u,
|
|
@@ -3923,7 +3923,7 @@ function Hn(e, t, n) {
|
|
|
3923
3923
|
throw new TypeError("data must be an object");
|
|
3924
3924
|
return w(e), t;
|
|
3925
3925
|
}
|
|
3926
|
-
function
|
|
3926
|
+
function yo(e) {
|
|
3927
3927
|
const t = {
|
|
3928
3928
|
"!": "%21",
|
|
3929
3929
|
"'": "%27",
|
|
@@ -3940,14 +3940,14 @@ function go(e) {
|
|
|
3940
3940
|
function Pr(e, t) {
|
|
3941
3941
|
this._pairs = [], e && Hn(e, this, t);
|
|
3942
3942
|
}
|
|
3943
|
-
const
|
|
3944
|
-
|
|
3943
|
+
const ia = Pr.prototype;
|
|
3944
|
+
ia.append = function(t, n) {
|
|
3945
3945
|
this._pairs.push([t, n]);
|
|
3946
3946
|
};
|
|
3947
|
-
|
|
3947
|
+
ia.toString = function(t) {
|
|
3948
3948
|
const n = t ? function(r) {
|
|
3949
|
-
return t.call(this, r,
|
|
3950
|
-
} :
|
|
3949
|
+
return t.call(this, r, yo);
|
|
3950
|
+
} : yo;
|
|
3951
3951
|
return this._pairs.map(function(o) {
|
|
3952
3952
|
return n(o[0]) + "=" + n(o[1]);
|
|
3953
3953
|
}, "").join("&");
|
|
@@ -3955,7 +3955,7 @@ aa.toString = function(t) {
|
|
|
3955
3955
|
function Pl(e) {
|
|
3956
3956
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3957
3957
|
}
|
|
3958
|
-
function
|
|
3958
|
+
function sa(e, t, n) {
|
|
3959
3959
|
if (!t)
|
|
3960
3960
|
return e;
|
|
3961
3961
|
const r = n && n.encode || Pl;
|
|
@@ -3970,7 +3970,7 @@ function ia(e, t, n) {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
return e;
|
|
3972
3972
|
}
|
|
3973
|
-
class
|
|
3973
|
+
class vo {
|
|
3974
3974
|
constructor() {
|
|
3975
3975
|
this.handlers = [];
|
|
3976
3976
|
}
|
|
@@ -4024,7 +4024,7 @@ class yo {
|
|
|
4024
4024
|
});
|
|
4025
4025
|
}
|
|
4026
4026
|
}
|
|
4027
|
-
const
|
|
4027
|
+
const la = {
|
|
4028
4028
|
silentJSONParsing: !0,
|
|
4029
4029
|
forcedJSONParsing: !0,
|
|
4030
4030
|
clarifyTimeoutError: !1
|
|
@@ -4044,14 +4044,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bl
|
|
|
4044
4044
|
hasStandardBrowserWebWorkerEnv: Il,
|
|
4045
4045
|
navigator: hr,
|
|
4046
4046
|
origin: Bl
|
|
4047
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4047
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = {
|
|
4048
4048
|
...Hl,
|
|
4049
4049
|
...Dl
|
|
4050
4050
|
};
|
|
4051
4051
|
function Ul(e, t) {
|
|
4052
|
-
return Hn(e, new
|
|
4052
|
+
return Hn(e, new _e.classes.URLSearchParams(), Object.assign({
|
|
4053
4053
|
visitor: function(n, r, o, a) {
|
|
4054
|
-
return
|
|
4054
|
+
return _e.isNode && E.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
4055
4055
|
}
|
|
4056
4056
|
}, t));
|
|
4057
4057
|
}
|
|
@@ -4067,7 +4067,7 @@ function jl(e) {
|
|
|
4067
4067
|
a = n[r], t[a] = e[a];
|
|
4068
4068
|
return t;
|
|
4069
4069
|
}
|
|
4070
|
-
function
|
|
4070
|
+
function ca(e) {
|
|
4071
4071
|
function t(n, r, o, a) {
|
|
4072
4072
|
let i = n[a++];
|
|
4073
4073
|
if (i === "__proto__") return !0;
|
|
@@ -4093,12 +4093,12 @@ function $l(e, t, n) {
|
|
|
4093
4093
|
return (n || JSON.stringify)(e);
|
|
4094
4094
|
}
|
|
4095
4095
|
const Qt = {
|
|
4096
|
-
transitional:
|
|
4096
|
+
transitional: la,
|
|
4097
4097
|
adapter: ["xhr", "http", "fetch"],
|
|
4098
4098
|
transformRequest: [function(t, n) {
|
|
4099
4099
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = E.isObject(t);
|
|
4100
4100
|
if (a && E.isHTMLForm(t) && (t = new FormData(t)), E.isFormData(t))
|
|
4101
|
-
return o ? JSON.stringify(
|
|
4101
|
+
return o ? JSON.stringify(ca(t)) : t;
|
|
4102
4102
|
if (E.isArrayBuffer(t) || E.isBuffer(t) || E.isStream(t) || E.isFile(t) || E.isBlob(t) || E.isReadableStream(t))
|
|
4103
4103
|
return t;
|
|
4104
4104
|
if (E.isArrayBufferView(t))
|
|
@@ -4145,8 +4145,8 @@ const Qt = {
|
|
|
4145
4145
|
maxContentLength: -1,
|
|
4146
4146
|
maxBodyLength: -1,
|
|
4147
4147
|
env: {
|
|
4148
|
-
FormData:
|
|
4149
|
-
Blob:
|
|
4148
|
+
FormData: _e.classes.FormData,
|
|
4149
|
+
Blob: _e.classes.Blob
|
|
4150
4150
|
},
|
|
4151
4151
|
validateStatus: function(t) {
|
|
4152
4152
|
return t >= 200 && t < 300;
|
|
@@ -4186,7 +4186,7 @@ const zl = E.toObjectSet([
|
|
|
4186
4186
|
`).forEach(function(i) {
|
|
4187
4187
|
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && zl[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
4188
4188
|
}), t;
|
|
4189
|
-
},
|
|
4189
|
+
}, wo = Symbol("internals");
|
|
4190
4190
|
function Ht(e) {
|
|
4191
4191
|
return e && String(e).trim().toLowerCase();
|
|
4192
4192
|
}
|
|
@@ -4225,7 +4225,7 @@ function Kl(e, t) {
|
|
|
4225
4225
|
});
|
|
4226
4226
|
});
|
|
4227
4227
|
}
|
|
4228
|
-
let
|
|
4228
|
+
let Me = class {
|
|
4229
4229
|
constructor(t) {
|
|
4230
4230
|
t && this.set(t);
|
|
4231
4231
|
}
|
|
@@ -4333,7 +4333,7 @@ let Fe = class {
|
|
|
4333
4333
|
return n.forEach((o) => r.set(o)), r;
|
|
4334
4334
|
}
|
|
4335
4335
|
static accessor(t) {
|
|
4336
|
-
const r = (this[
|
|
4336
|
+
const r = (this[wo] = this[wo] = {
|
|
4337
4337
|
accessors: {}
|
|
4338
4338
|
}).accessors, o = this.prototype;
|
|
4339
4339
|
function a(i) {
|
|
@@ -4343,8 +4343,8 @@ let Fe = class {
|
|
|
4343
4343
|
return E.isArray(t) ? t.forEach(a) : a(t), this;
|
|
4344
4344
|
}
|
|
4345
4345
|
};
|
|
4346
|
-
|
|
4347
|
-
E.reduceDescriptors(
|
|
4346
|
+
Me.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
4347
|
+
E.reduceDescriptors(Me.prototype, ({ value: e }, t) => {
|
|
4348
4348
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
4349
4349
|
return {
|
|
4350
4350
|
get: () => e,
|
|
@@ -4353,15 +4353,15 @@ E.reduceDescriptors(Fe.prototype, ({ value: e }, t) => {
|
|
|
4353
4353
|
}
|
|
4354
4354
|
};
|
|
4355
4355
|
});
|
|
4356
|
-
E.freezeMethods(
|
|
4356
|
+
E.freezeMethods(Me);
|
|
4357
4357
|
function er(e, t) {
|
|
4358
|
-
const n = this || Qt, r = t || n, o =
|
|
4358
|
+
const n = this || Qt, r = t || n, o = Me.from(r.headers);
|
|
4359
4359
|
let a = r.data;
|
|
4360
4360
|
return E.forEach(e, function(s) {
|
|
4361
4361
|
a = s.call(n, a, o.normalize(), t ? t.status : void 0);
|
|
4362
4362
|
}), o.normalize(), a;
|
|
4363
4363
|
}
|
|
4364
|
-
function
|
|
4364
|
+
function ua(e) {
|
|
4365
4365
|
return !!(e && e.__CANCEL__);
|
|
4366
4366
|
}
|
|
4367
4367
|
function Ot(e, t, n) {
|
|
@@ -4370,7 +4370,7 @@ function Ot(e, t, n) {
|
|
|
4370
4370
|
E.inherits(Ot, $, {
|
|
4371
4371
|
__CANCEL__: !0
|
|
4372
4372
|
});
|
|
4373
|
-
function
|
|
4373
|
+
function da(e, t, n) {
|
|
4374
4374
|
const r = n.config.validateStatus;
|
|
4375
4375
|
!n.status || !r || r(n.status) ? e(n) : t(new $(
|
|
4376
4376
|
"Request failed with status code " + n.status,
|
|
@@ -4431,17 +4431,17 @@ const kn = (e, t, n = 3) => {
|
|
|
4431
4431
|
};
|
|
4432
4432
|
e(d);
|
|
4433
4433
|
}, n);
|
|
4434
|
-
},
|
|
4434
|
+
}, bo = (e, t) => {
|
|
4435
4435
|
const n = e != null;
|
|
4436
4436
|
return [(r) => t[0]({
|
|
4437
4437
|
lengthComputable: n,
|
|
4438
4438
|
total: e,
|
|
4439
4439
|
loaded: r
|
|
4440
4440
|
}), t[1]];
|
|
4441
|
-
},
|
|
4442
|
-
new URL(
|
|
4443
|
-
|
|
4444
|
-
) : () => !0, ec =
|
|
4441
|
+
}, So = (e) => (...t) => E.asap(() => e(...t)), Ql = _e.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, _e.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
4442
|
+
new URL(_e.origin),
|
|
4443
|
+
_e.navigator && /(msie|trident)/i.test(_e.navigator.userAgent)
|
|
4444
|
+
) : () => !0, ec = _e.hasStandardBrowserEnv ? (
|
|
4445
4445
|
// Standard browser envs support document.cookie
|
|
4446
4446
|
{
|
|
4447
4447
|
write(e, t, n, r, o, a) {
|
|
@@ -4474,12 +4474,12 @@ function tc(e) {
|
|
|
4474
4474
|
function nc(e, t) {
|
|
4475
4475
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
4476
4476
|
}
|
|
4477
|
-
function
|
|
4477
|
+
function fa(e, t, n) {
|
|
4478
4478
|
let r = !tc(t);
|
|
4479
4479
|
return e && r || n == !1 ? nc(e, t) : t;
|
|
4480
4480
|
}
|
|
4481
|
-
const
|
|
4482
|
-
function
|
|
4481
|
+
const Co = (e) => e instanceof Me ? { ...e } : e;
|
|
4482
|
+
function St(e, t) {
|
|
4483
4483
|
t = t || {};
|
|
4484
4484
|
const n = {};
|
|
4485
4485
|
function r(c, u, d, h) {
|
|
@@ -4536,39 +4536,39 @@ function bt(e, t) {
|
|
|
4536
4536
|
socketPath: i,
|
|
4537
4537
|
responseEncoding: i,
|
|
4538
4538
|
validateStatus: s,
|
|
4539
|
-
headers: (c, u, d) => o(
|
|
4539
|
+
headers: (c, u, d) => o(Co(c), Co(u), d, !0)
|
|
4540
4540
|
};
|
|
4541
4541
|
return E.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
4542
4542
|
const d = l[u] || o, h = d(e[u], t[u], u);
|
|
4543
4543
|
E.isUndefined(h) && d !== s || (n[u] = h);
|
|
4544
4544
|
}), n;
|
|
4545
4545
|
}
|
|
4546
|
-
const
|
|
4547
|
-
const t =
|
|
4546
|
+
const ha = (e) => {
|
|
4547
|
+
const t = St({}, e);
|
|
4548
4548
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = t;
|
|
4549
|
-
t.headers = i =
|
|
4549
|
+
t.headers = i = Me.from(i), t.url = sa(fa(t.baseURL, t.url), e.params, e.paramsSerializer), s && i.set(
|
|
4550
4550
|
"Authorization",
|
|
4551
4551
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
4552
4552
|
);
|
|
4553
4553
|
let l;
|
|
4554
4554
|
if (E.isFormData(n)) {
|
|
4555
|
-
if (
|
|
4555
|
+
if (_e.hasStandardBrowserEnv || _e.hasStandardBrowserWebWorkerEnv)
|
|
4556
4556
|
i.setContentType(void 0);
|
|
4557
4557
|
else if ((l = i.getContentType()) !== !1) {
|
|
4558
4558
|
const [c, ...u] = l ? l.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
4559
4559
|
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
4560
4560
|
}
|
|
4561
4561
|
}
|
|
4562
|
-
if (
|
|
4562
|
+
if (_e.hasStandardBrowserEnv && (r && E.isFunction(r) && (r = r(t)), r || r !== !1 && Ql(t.url))) {
|
|
4563
4563
|
const c = o && a && ec.read(a);
|
|
4564
4564
|
c && i.set(o, c);
|
|
4565
4565
|
}
|
|
4566
4566
|
return t;
|
|
4567
4567
|
}, rc = typeof XMLHttpRequest < "u", oc = rc && function(e) {
|
|
4568
4568
|
return new Promise(function(n, r) {
|
|
4569
|
-
const o =
|
|
4569
|
+
const o = ha(e);
|
|
4570
4570
|
let a = o.data;
|
|
4571
|
-
const i =
|
|
4571
|
+
const i = Me.from(o.headers).normalize();
|
|
4572
4572
|
let { responseType: s, onUploadProgress: l, onDownloadProgress: c } = o, u, d, h, w, m;
|
|
4573
4573
|
function p() {
|
|
4574
4574
|
w && w(), m && m(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
|
|
@@ -4578,7 +4578,7 @@ const fa = (e) => {
|
|
|
4578
4578
|
function R() {
|
|
4579
4579
|
if (!v)
|
|
4580
4580
|
return;
|
|
4581
|
-
const x =
|
|
4581
|
+
const x = Me.from(
|
|
4582
4582
|
"getAllResponseHeaders" in v && v.getAllResponseHeaders()
|
|
4583
4583
|
), N = {
|
|
4584
4584
|
data: !s || s === "text" || s === "json" ? v.responseText : v.response,
|
|
@@ -4588,7 +4588,7 @@ const fa = (e) => {
|
|
|
4588
4588
|
config: e,
|
|
4589
4589
|
request: v
|
|
4590
4590
|
};
|
|
4591
|
-
|
|
4591
|
+
da(function(b) {
|
|
4592
4592
|
n(b), p();
|
|
4593
4593
|
}, function(b) {
|
|
4594
4594
|
r(b), p();
|
|
@@ -4602,7 +4602,7 @@ const fa = (e) => {
|
|
|
4602
4602
|
r(new $("Network Error", $.ERR_NETWORK, e, v)), v = null;
|
|
4603
4603
|
}, v.ontimeout = function() {
|
|
4604
4604
|
let _ = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
4605
|
-
const N = o.transitional ||
|
|
4605
|
+
const N = o.transitional || la;
|
|
4606
4606
|
o.timeoutErrorMessage && (_ = o.timeoutErrorMessage), r(new $(
|
|
4607
4607
|
_,
|
|
4608
4608
|
N.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
@@ -4615,7 +4615,7 @@ const fa = (e) => {
|
|
|
4615
4615
|
v && (r(!x || x.type ? new Ot(null, e, v) : x), v.abort(), v = null);
|
|
4616
4616
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
4617
4617
|
const S = Gl(o.url);
|
|
4618
|
-
if (S &&
|
|
4618
|
+
if (S && _e.protocols.indexOf(S) === -1) {
|
|
4619
4619
|
r(new $("Unsupported protocol " + S + ":", $.ERR_BAD_REQUEST, e));
|
|
4620
4620
|
return;
|
|
4621
4621
|
}
|
|
@@ -4672,7 +4672,7 @@ const fa = (e) => {
|
|
|
4672
4672
|
} finally {
|
|
4673
4673
|
await t.cancel();
|
|
4674
4674
|
}
|
|
4675
|
-
},
|
|
4675
|
+
}, Eo = (e, t, n, r) => {
|
|
4676
4676
|
const o = sc(e, t);
|
|
4677
4677
|
let a = 0, i, s = (l) => {
|
|
4678
4678
|
i || (i = !0, r && r(l));
|
|
@@ -4701,15 +4701,15 @@ const fa = (e) => {
|
|
|
4701
4701
|
}, {
|
|
4702
4702
|
highWaterMark: 2
|
|
4703
4703
|
});
|
|
4704
|
-
}, Un = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
4704
|
+
}, Un = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", pa = Un && typeof ReadableStream == "function", cc = Un && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ma = (e, ...t) => {
|
|
4705
4705
|
try {
|
|
4706
4706
|
return !!e(...t);
|
|
4707
4707
|
} catch {
|
|
4708
4708
|
return !1;
|
|
4709
4709
|
}
|
|
4710
|
-
}, uc =
|
|
4710
|
+
}, uc = pa && ma(() => {
|
|
4711
4711
|
let e = !1;
|
|
4712
|
-
const t = new Request(
|
|
4712
|
+
const t = new Request(_e.origin, {
|
|
4713
4713
|
body: new ReadableStream(),
|
|
4714
4714
|
method: "POST",
|
|
4715
4715
|
get duplex() {
|
|
@@ -4717,7 +4717,7 @@ const fa = (e) => {
|
|
|
4717
4717
|
}
|
|
4718
4718
|
}).headers.has("Content-Type");
|
|
4719
4719
|
return e && !t;
|
|
4720
|
-
}),
|
|
4720
|
+
}), Lo = 64 * 1024, pr = pa && ma(() => E.isReadableStream(new Response("").body)), Nn = {
|
|
4721
4721
|
stream: pr && ((e) => e.body)
|
|
4722
4722
|
};
|
|
4723
4723
|
Un && ((e) => {
|
|
@@ -4733,7 +4733,7 @@ const dc = async (e) => {
|
|
|
4733
4733
|
if (E.isBlob(e))
|
|
4734
4734
|
return e.size;
|
|
4735
4735
|
if (E.isSpecCompliantForm(e))
|
|
4736
|
-
return (await new Request(
|
|
4736
|
+
return (await new Request(_e.origin, {
|
|
4737
4737
|
method: "POST",
|
|
4738
4738
|
body: e
|
|
4739
4739
|
}).arrayBuffer()).byteLength;
|
|
@@ -4758,7 +4758,7 @@ const dc = async (e) => {
|
|
|
4758
4758
|
headers: u,
|
|
4759
4759
|
withCredentials: d = "same-origin",
|
|
4760
4760
|
fetchOptions: h
|
|
4761
|
-
} =
|
|
4761
|
+
} = ha(e);
|
|
4762
4762
|
c = c ? (c + "").toLowerCase() : "text";
|
|
4763
4763
|
let w = ac([o, a && a.toAbortSignal()], i), m;
|
|
4764
4764
|
const p = w && w.unsubscribe && (() => {
|
|
@@ -4773,11 +4773,11 @@ const dc = async (e) => {
|
|
|
4773
4773
|
duplex: "half"
|
|
4774
4774
|
}), U;
|
|
4775
4775
|
if (E.isFormData(r) && (U = N.headers.get("content-type")) && u.setContentType(U), N.body) {
|
|
4776
|
-
const [b, T] =
|
|
4776
|
+
const [b, T] = bo(
|
|
4777
4777
|
v,
|
|
4778
|
-
kn(
|
|
4778
|
+
kn(So(l))
|
|
4779
4779
|
);
|
|
4780
|
-
r =
|
|
4780
|
+
r = Eo(N.body, Lo, b, T);
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
4783
|
E.isString(d) || (d = d ? "include" : "omit");
|
|
@@ -4798,12 +4798,12 @@ const dc = async (e) => {
|
|
|
4798
4798
|
["status", "statusText", "headers"].forEach((K) => {
|
|
4799
4799
|
N[K] = S[K];
|
|
4800
4800
|
});
|
|
4801
|
-
const U = E.toFiniteNumber(S.headers.get("content-length")), [b, T] = s &&
|
|
4801
|
+
const U = E.toFiniteNumber(S.headers.get("content-length")), [b, T] = s && bo(
|
|
4802
4802
|
U,
|
|
4803
|
-
kn(
|
|
4803
|
+
kn(So(s), !0)
|
|
4804
4804
|
) || [];
|
|
4805
4805
|
S = new Response(
|
|
4806
|
-
|
|
4806
|
+
Eo(S.body, Lo, b, () => {
|
|
4807
4807
|
T && T(), p && p();
|
|
4808
4808
|
}),
|
|
4809
4809
|
N
|
|
@@ -4812,9 +4812,9 @@ const dc = async (e) => {
|
|
|
4812
4812
|
c = c || "text";
|
|
4813
4813
|
let _ = await Nn[E.findKey(Nn, c) || "text"](S, e);
|
|
4814
4814
|
return !x && p && p(), await new Promise((N, U) => {
|
|
4815
|
-
|
|
4815
|
+
da(N, U, {
|
|
4816
4816
|
data: _,
|
|
4817
|
-
headers:
|
|
4817
|
+
headers: Me.from(S.headers),
|
|
4818
4818
|
status: S.status,
|
|
4819
4819
|
statusText: S.statusText,
|
|
4820
4820
|
config: e,
|
|
@@ -4843,7 +4843,7 @@ E.forEach(mr, (e, t) => {
|
|
|
4843
4843
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
4844
4844
|
}
|
|
4845
4845
|
});
|
|
4846
|
-
const
|
|
4846
|
+
const Ro = (e) => `- ${e}`, pc = (e) => E.isFunction(e) || e === null || e === !1, ga = {
|
|
4847
4847
|
getAdapter: (e) => {
|
|
4848
4848
|
e = E.isArray(e) ? e : [e];
|
|
4849
4849
|
const { length: t } = e;
|
|
@@ -4863,8 +4863,8 @@ const Lo = (e) => `- ${e}`, pc = (e) => E.isFunction(e) || e === null || e === !
|
|
|
4863
4863
|
([s, l]) => `adapter ${s} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
4864
4864
|
);
|
|
4865
4865
|
let i = t ? a.length > 1 ? `since :
|
|
4866
|
-
` + a.map(
|
|
4867
|
-
`) : " " +
|
|
4866
|
+
` + a.map(Ro).join(`
|
|
4867
|
+
`) : " " + Ro(a[0]) : "as no adapter specified";
|
|
4868
4868
|
throw new $(
|
|
4869
4869
|
"There is no suitable adapter to dispatch the request " + i,
|
|
4870
4870
|
"ERR_NOT_SUPPORT"
|
|
@@ -4878,34 +4878,34 @@ function tr(e) {
|
|
|
4878
4878
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
4879
4879
|
throw new Ot(null, e);
|
|
4880
4880
|
}
|
|
4881
|
-
function
|
|
4882
|
-
return tr(e), e.headers =
|
|
4881
|
+
function xo(e) {
|
|
4882
|
+
return tr(e), e.headers = Me.from(e.headers), e.data = er.call(
|
|
4883
4883
|
e,
|
|
4884
4884
|
e.transformRequest
|
|
4885
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
4885
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ga.getAdapter(e.adapter || Qt.adapter)(e).then(function(r) {
|
|
4886
4886
|
return tr(e), r.data = er.call(
|
|
4887
4887
|
e,
|
|
4888
4888
|
e.transformResponse,
|
|
4889
4889
|
r
|
|
4890
|
-
), r.headers =
|
|
4890
|
+
), r.headers = Me.from(r.headers), r;
|
|
4891
4891
|
}, function(r) {
|
|
4892
|
-
return
|
|
4892
|
+
return ua(r) || (tr(e), r && r.response && (r.response.data = er.call(
|
|
4893
4893
|
e,
|
|
4894
4894
|
e.transformResponse,
|
|
4895
4895
|
r.response
|
|
4896
|
-
), r.response.headers =
|
|
4896
|
+
), r.response.headers = Me.from(r.response.headers))), Promise.reject(r);
|
|
4897
4897
|
});
|
|
4898
4898
|
}
|
|
4899
|
-
const
|
|
4899
|
+
const ya = "1.8.1", Vn = {};
|
|
4900
4900
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
4901
4901
|
Vn[e] = function(r) {
|
|
4902
4902
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
4903
4903
|
};
|
|
4904
4904
|
});
|
|
4905
|
-
const
|
|
4905
|
+
const ko = {};
|
|
4906
4906
|
Vn.transitional = function(t, n, r) {
|
|
4907
4907
|
function o(a, i) {
|
|
4908
|
-
return "[Axios v" +
|
|
4908
|
+
return "[Axios v" + ya + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
4909
4909
|
}
|
|
4910
4910
|
return (a, i, s) => {
|
|
4911
4911
|
if (t === !1)
|
|
@@ -4913,7 +4913,7 @@ Vn.transitional = function(t, n, r) {
|
|
|
4913
4913
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
4914
4914
|
$.ERR_DEPRECATED
|
|
4915
4915
|
);
|
|
4916
|
-
return n && !
|
|
4916
|
+
return n && !ko[i] && (ko[i] = !0, console.warn(
|
|
4917
4917
|
o(
|
|
4918
4918
|
i,
|
|
4919
4919
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -4944,12 +4944,12 @@ function mc(e, t, n) {
|
|
|
4944
4944
|
const Sn = {
|
|
4945
4945
|
assertOptions: mc,
|
|
4946
4946
|
validators: Vn
|
|
4947
|
-
},
|
|
4948
|
-
let
|
|
4947
|
+
}, Xe = Sn.validators;
|
|
4948
|
+
let bt = class {
|
|
4949
4949
|
constructor(t) {
|
|
4950
4950
|
this.defaults = t, this.interceptors = {
|
|
4951
|
-
request: new
|
|
4952
|
-
response: new
|
|
4951
|
+
request: new vo(),
|
|
4952
|
+
response: new vo()
|
|
4953
4953
|
};
|
|
4954
4954
|
}
|
|
4955
4955
|
/**
|
|
@@ -4978,20 +4978,20 @@ let wt = class {
|
|
|
4978
4978
|
}
|
|
4979
4979
|
}
|
|
4980
4980
|
_request(t, n) {
|
|
4981
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
4981
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = St(this.defaults, n);
|
|
4982
4982
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
4983
4983
|
r !== void 0 && Sn.assertOptions(r, {
|
|
4984
|
-
silentJSONParsing:
|
|
4985
|
-
forcedJSONParsing:
|
|
4986
|
-
clarifyTimeoutError:
|
|
4984
|
+
silentJSONParsing: Xe.transitional(Xe.boolean),
|
|
4985
|
+
forcedJSONParsing: Xe.transitional(Xe.boolean),
|
|
4986
|
+
clarifyTimeoutError: Xe.transitional(Xe.boolean)
|
|
4987
4987
|
}, !1), o != null && (E.isFunction(o) ? n.paramsSerializer = {
|
|
4988
4988
|
serialize: o
|
|
4989
4989
|
} : Sn.assertOptions(o, {
|
|
4990
|
-
encode:
|
|
4991
|
-
serialize:
|
|
4990
|
+
encode: Xe.function,
|
|
4991
|
+
serialize: Xe.function
|
|
4992
4992
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Sn.assertOptions(n, {
|
|
4993
|
-
baseUrl:
|
|
4994
|
-
withXsrfToken:
|
|
4993
|
+
baseUrl: Xe.spelling("baseURL"),
|
|
4994
|
+
withXsrfToken: Xe.spelling("withXSRFToken")
|
|
4995
4995
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
4996
4996
|
let i = a && E.merge(
|
|
4997
4997
|
a.common,
|
|
@@ -5002,7 +5002,7 @@ let wt = class {
|
|
|
5002
5002
|
(m) => {
|
|
5003
5003
|
delete a[m];
|
|
5004
5004
|
}
|
|
5005
|
-
), n.headers =
|
|
5005
|
+
), n.headers = Me.concat(i, a);
|
|
5006
5006
|
const s = [];
|
|
5007
5007
|
let l = !0;
|
|
5008
5008
|
this.interceptors.request.forEach(function(p) {
|
|
@@ -5014,7 +5014,7 @@ let wt = class {
|
|
|
5014
5014
|
});
|
|
5015
5015
|
let u, d = 0, h;
|
|
5016
5016
|
if (!l) {
|
|
5017
|
-
const m = [
|
|
5017
|
+
const m = [xo.bind(this), void 0];
|
|
5018
5018
|
for (m.unshift.apply(m, s), m.push.apply(m, c), h = m.length, u = Promise.resolve(n); d < h; )
|
|
5019
5019
|
u = u.then(m[d++], m[d++]);
|
|
5020
5020
|
return u;
|
|
@@ -5031,7 +5031,7 @@ let wt = class {
|
|
|
5031
5031
|
}
|
|
5032
5032
|
}
|
|
5033
5033
|
try {
|
|
5034
|
-
u =
|
|
5034
|
+
u = xo.call(this, w);
|
|
5035
5035
|
} catch (m) {
|
|
5036
5036
|
return Promise.reject(m);
|
|
5037
5037
|
}
|
|
@@ -5040,14 +5040,14 @@ let wt = class {
|
|
|
5040
5040
|
return u;
|
|
5041
5041
|
}
|
|
5042
5042
|
getUri(t) {
|
|
5043
|
-
t =
|
|
5044
|
-
const n =
|
|
5045
|
-
return
|
|
5043
|
+
t = St(this.defaults, t);
|
|
5044
|
+
const n = fa(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
5045
|
+
return sa(n, t.params, t.paramsSerializer);
|
|
5046
5046
|
}
|
|
5047
5047
|
};
|
|
5048
5048
|
E.forEach(["delete", "get", "head", "options"], function(t) {
|
|
5049
|
-
|
|
5050
|
-
return this.request(
|
|
5049
|
+
bt.prototype[t] = function(n, r) {
|
|
5050
|
+
return this.request(St(r || {}, {
|
|
5051
5051
|
method: t,
|
|
5052
5052
|
url: n,
|
|
5053
5053
|
data: (r || {}).data
|
|
@@ -5057,7 +5057,7 @@ E.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
5057
5057
|
E.forEach(["post", "put", "patch"], function(t) {
|
|
5058
5058
|
function n(r) {
|
|
5059
5059
|
return function(a, i, s) {
|
|
5060
|
-
return this.request(
|
|
5060
|
+
return this.request(St(s || {}, {
|
|
5061
5061
|
method: t,
|
|
5062
5062
|
headers: r ? {
|
|
5063
5063
|
"Content-Type": "multipart/form-data"
|
|
@@ -5067,9 +5067,9 @@ E.forEach(["post", "put", "patch"], function(t) {
|
|
|
5067
5067
|
}));
|
|
5068
5068
|
};
|
|
5069
5069
|
}
|
|
5070
|
-
|
|
5070
|
+
bt.prototype[t] = n(), bt.prototype[t + "Form"] = n(!0);
|
|
5071
5071
|
});
|
|
5072
|
-
let gc = class
|
|
5072
|
+
let gc = class va {
|
|
5073
5073
|
constructor(t) {
|
|
5074
5074
|
if (typeof t != "function")
|
|
5075
5075
|
throw new TypeError("executor must be a function.");
|
|
@@ -5135,7 +5135,7 @@ let gc = class ya {
|
|
|
5135
5135
|
static source() {
|
|
5136
5136
|
let t;
|
|
5137
5137
|
return {
|
|
5138
|
-
token: new
|
|
5138
|
+
token: new va(function(o) {
|
|
5139
5139
|
t = o;
|
|
5140
5140
|
}),
|
|
5141
5141
|
cancel: t
|
|
@@ -5218,18 +5218,18 @@ const gr = {
|
|
|
5218
5218
|
Object.entries(gr).forEach(([e, t]) => {
|
|
5219
5219
|
gr[t] = e;
|
|
5220
5220
|
});
|
|
5221
|
-
function
|
|
5222
|
-
const t = new
|
|
5223
|
-
return E.extend(n,
|
|
5224
|
-
return
|
|
5221
|
+
function wa(e) {
|
|
5222
|
+
const t = new bt(e), n = Go(bt.prototype.request, t);
|
|
5223
|
+
return E.extend(n, bt.prototype, t, { allOwnKeys: !0 }), E.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
5224
|
+
return wa(St(e, o));
|
|
5225
5225
|
}, n;
|
|
5226
5226
|
}
|
|
5227
|
-
const de =
|
|
5228
|
-
de.Axios =
|
|
5227
|
+
const de = wa(Qt);
|
|
5228
|
+
de.Axios = bt;
|
|
5229
5229
|
de.CanceledError = Ot;
|
|
5230
5230
|
de.CancelToken = gc;
|
|
5231
|
-
de.isCancel =
|
|
5232
|
-
de.VERSION =
|
|
5231
|
+
de.isCancel = ua;
|
|
5232
|
+
de.VERSION = ya;
|
|
5233
5233
|
de.toFormData = Hn;
|
|
5234
5234
|
de.AxiosError = $;
|
|
5235
5235
|
de.Cancel = de.CanceledError;
|
|
@@ -5238,10 +5238,10 @@ de.all = function(t) {
|
|
|
5238
5238
|
};
|
|
5239
5239
|
de.spread = yc;
|
|
5240
5240
|
de.isAxiosError = vc;
|
|
5241
|
-
de.mergeConfig =
|
|
5242
|
-
de.AxiosHeaders =
|
|
5243
|
-
de.formToJSON = (e) =>
|
|
5244
|
-
de.getAdapter =
|
|
5241
|
+
de.mergeConfig = St;
|
|
5242
|
+
de.AxiosHeaders = Me;
|
|
5243
|
+
de.formToJSON = (e) => ca(E.isHTMLForm(e) ? new FormData(e) : e);
|
|
5244
|
+
de.getAdapter = ga.getAdapter;
|
|
5245
5245
|
de.HttpStatusCode = gr;
|
|
5246
5246
|
de.default = de;
|
|
5247
5247
|
const {
|
|
@@ -5261,7 +5261,7 @@ const {
|
|
|
5261
5261
|
formToJSON: Gd,
|
|
5262
5262
|
getAdapter: Yd,
|
|
5263
5263
|
mergeConfig: Xd
|
|
5264
|
-
} = de, hn = "https://localhost:5043",
|
|
5264
|
+
} = de, hn = "https://localhost:5043", lt = async (e) => {
|
|
5265
5265
|
var h, w;
|
|
5266
5266
|
const { url: t, withToken: n, method: r, body: o, contentType: a, typeToken: i = "seller" } = e, s = n ? localStorage.getItem("sellerAccessToken") : null, l = n ? localStorage.getItem("token") : null, c = i === "seller" ? s : l, u = localStorage.getItem("dv"), d = {};
|
|
5267
5267
|
a && !(o instanceof FormData) ? d["Content-Type"] = a : o instanceof FormData || (d["Content-Type"] = "application/json"), n && c && (d.Authorization = `Bearer ${c}`);
|
|
@@ -5293,7 +5293,7 @@ const {
|
|
|
5293
5293
|
const S = (w = p.response) == null ? void 0 : w.status;
|
|
5294
5294
|
if (S === 401)
|
|
5295
5295
|
try {
|
|
5296
|
-
const _ = await import("./charge-
|
|
5296
|
+
const _ = await import("./charge-JIFfQW47.js").then((N) => N.a6);
|
|
5297
5297
|
_ && _.logoutCustomer ? await _.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
|
|
5298
5298
|
} catch (_) {
|
|
5299
5299
|
console.error("Failed to import logoutCustomer:", _), localStorage.removeItem("token"), window.location.reload();
|
|
@@ -5350,7 +5350,7 @@ const {
|
|
|
5350
5350
|
} catch {
|
|
5351
5351
|
return t;
|
|
5352
5352
|
}
|
|
5353
|
-
},
|
|
5353
|
+
}, No = (e, t) => {
|
|
5354
5354
|
(t === null || typeof t != "object") && window.localStorage.setItem(e, String(t));
|
|
5355
5355
|
const n = JSON.stringify(t);
|
|
5356
5356
|
window.localStorage.setItem(e, n);
|
|
@@ -5359,21 +5359,21 @@ const {
|
|
|
5359
5359
|
const e = yr(Jt);
|
|
5360
5360
|
return ((t = e == null ? void 0 : e.s) == null ? void 0 : t.i) || null;
|
|
5361
5361
|
}, af = (e, t = "production", n) => {
|
|
5362
|
-
const { pathname: r } =
|
|
5362
|
+
const { pathname: r } = et(), o = $r(), a = $r(document.visibilityState);
|
|
5363
5363
|
Ta(() => {
|
|
5364
5364
|
if (!e) return;
|
|
5365
|
-
const i = () => Date.now(), s = async () => (await
|
|
5365
|
+
const i = () => Date.now(), s = async () => (await lt({
|
|
5366
5366
|
url: `${n ? Vt : Ut}/${e}/t/p`,
|
|
5367
5367
|
method: "post",
|
|
5368
5368
|
withToken: !1
|
|
5369
|
-
})).data.data.id, l = async (m) => (await
|
|
5369
|
+
})).data.data.id, l = async (m) => (await lt({
|
|
5370
5370
|
url: `${n ? Vt : Ut}/${e}/t/p/${t === "development" ? nr : m}/s`,
|
|
5371
5371
|
method: "post",
|
|
5372
5372
|
withToken: !1
|
|
5373
5373
|
})).data.data.id, c = async (m, p, v, R) => {
|
|
5374
5374
|
const S = t === "development" ? nr : m;
|
|
5375
5375
|
try {
|
|
5376
|
-
return (await
|
|
5376
|
+
return (await lt({
|
|
5377
5377
|
url: `${n ? Vt : Ut}/${e}/t/p/${S}/s/${p}/e`,
|
|
5378
5378
|
method: "post",
|
|
5379
5379
|
withToken: !1,
|
|
@@ -5381,7 +5381,7 @@ const {
|
|
|
5381
5381
|
contentType: "application/json"
|
|
5382
5382
|
})).data.data.id;
|
|
5383
5383
|
} catch {
|
|
5384
|
-
return p = await l(m), (await
|
|
5384
|
+
return p = await l(m), (await lt({
|
|
5385
5385
|
url: `${n ? Vt : Ut}/${e}/t/p/${S}/s/${p}/e`,
|
|
5386
5386
|
method: "post",
|
|
5387
5387
|
withToken: !1,
|
|
@@ -5390,13 +5390,13 @@ const {
|
|
|
5390
5390
|
})).data.data.id;
|
|
5391
5391
|
}
|
|
5392
5392
|
}, u = async (m, p, v) => {
|
|
5393
|
-
await
|
|
5393
|
+
await lt({
|
|
5394
5394
|
url: `${n ? Vt : Ut}/${e}/t/p/${t === "development" ? nr : m}/s/${p}/e/${v}/h`,
|
|
5395
5395
|
method: "post",
|
|
5396
5396
|
withToken: !1
|
|
5397
5397
|
});
|
|
5398
5398
|
const S = yr(Jt);
|
|
5399
|
-
S && (S.s.u = i().toString(), S.lu = i().toString(),
|
|
5399
|
+
S && (S.s.u = i().toString(), S.lu = i().toString(), No(Jt, S));
|
|
5400
5400
|
}, d = (m, p, v) => {
|
|
5401
5401
|
o.current && clearInterval(o.current), o.current = setInterval(async () => {
|
|
5402
5402
|
if (document.visibilityState === "visible")
|
|
@@ -5420,7 +5420,7 @@ const {
|
|
|
5420
5420
|
U,
|
|
5421
5421
|
m,
|
|
5422
5422
|
p != null && p.l && !B ? p.l : void 0
|
|
5423
|
-
),
|
|
5423
|
+
), ie = {
|
|
5424
5424
|
p: N,
|
|
5425
5425
|
s: {
|
|
5426
5426
|
i: U,
|
|
@@ -5430,7 +5430,7 @@ const {
|
|
|
5430
5430
|
l: ae,
|
|
5431
5431
|
lu: v.toString()
|
|
5432
5432
|
};
|
|
5433
|
-
|
|
5433
|
+
No(Jt, ie), d(N, U, ae);
|
|
5434
5434
|
} catch (N) {
|
|
5435
5435
|
console.error("[TrackingAnalytics] error", N);
|
|
5436
5436
|
}
|
|
@@ -5455,10 +5455,10 @@ const {
|
|
|
5455
5455
|
tsId: Tc()
|
|
5456
5456
|
};
|
|
5457
5457
|
let Nt = null;
|
|
5458
|
-
const
|
|
5459
|
-
if (
|
|
5458
|
+
const _o = localStorage.getItem("token");
|
|
5459
|
+
if (_o)
|
|
5460
5460
|
try {
|
|
5461
|
-
Nt = $s(JSON.parse(
|
|
5461
|
+
Nt = $s(JSON.parse(_o) || "");
|
|
5462
5462
|
} catch {
|
|
5463
5463
|
Nt = null;
|
|
5464
5464
|
}
|
|
@@ -5520,12 +5520,12 @@ const sf = se((e) => ({
|
|
|
5520
5520
|
setSettings: (t) => e(() => ({ settings: t })),
|
|
5521
5521
|
settingsInstance: null,
|
|
5522
5522
|
setSettingsInstance: (t) => e(() => ({ settingsInstance: t }))
|
|
5523
|
-
})),
|
|
5523
|
+
})), Mr = se((e) => ({
|
|
5524
5524
|
general: null,
|
|
5525
5525
|
setGeneral: (t) => e(() => ({ general: t })),
|
|
5526
5526
|
isAntistock: !1,
|
|
5527
5527
|
setIsAntistock: (t) => e(() => ({ isAntistock: t }))
|
|
5528
|
-
})),
|
|
5528
|
+
})), To = se((e) => ({
|
|
5529
5529
|
settings: null,
|
|
5530
5530
|
setSettings: (t) => {
|
|
5531
5531
|
e(() => ({ settings: t }));
|
|
@@ -5809,7 +5809,7 @@ const sf = se((e) => ({
|
|
|
5809
5809
|
},
|
|
5810
5810
|
updateColor: (n, r, o) => e((a) => {
|
|
5811
5811
|
const i = JSON.parse(JSON.stringify(t().themeSettings));
|
|
5812
|
-
|
|
5812
|
+
Oe.getState().addHistory({ themeSettings: i });
|
|
5813
5813
|
const s = {
|
|
5814
5814
|
...a.themeSettings.colors,
|
|
5815
5815
|
[n]: {
|
|
@@ -5821,7 +5821,7 @@ const sf = se((e) => ({
|
|
|
5821
5821
|
}),
|
|
5822
5822
|
updateFont: (n, r, o, a, i) => e((s) => {
|
|
5823
5823
|
const l = JSON.parse(JSON.stringify(t().themeSettings));
|
|
5824
|
-
|
|
5824
|
+
Oe.getState().addHistory({ themeSettings: l });
|
|
5825
5825
|
const c = {
|
|
5826
5826
|
...s.themeSettings.fonts,
|
|
5827
5827
|
[n]: {
|
|
@@ -5846,7 +5846,7 @@ const sf = se((e) => ({
|
|
|
5846
5846
|
}),
|
|
5847
5847
|
updateFontSizePercentage: (n, r) => e((o) => {
|
|
5848
5848
|
const a = JSON.parse(JSON.stringify(t().themeSettings));
|
|
5849
|
-
|
|
5849
|
+
Oe.getState().addHistory({ themeSettings: a });
|
|
5850
5850
|
const i = {
|
|
5851
5851
|
...o.themeSettings.fonts,
|
|
5852
5852
|
[n]: {
|
|
@@ -5858,7 +5858,7 @@ const sf = se((e) => ({
|
|
|
5858
5858
|
}),
|
|
5859
5859
|
updateBorder: (n, r) => e((o) => {
|
|
5860
5860
|
const a = JSON.parse(JSON.stringify(t().themeSettings));
|
|
5861
|
-
|
|
5861
|
+
Oe.getState().addHistory({ themeSettings: a });
|
|
5862
5862
|
const i = {
|
|
5863
5863
|
...o.themeSettings.borders,
|
|
5864
5864
|
[n]: r
|
|
@@ -5867,7 +5867,7 @@ const sf = se((e) => ({
|
|
|
5867
5867
|
}),
|
|
5868
5868
|
updateButton: (n, r, o) => e((a) => {
|
|
5869
5869
|
const i = JSON.parse(JSON.stringify(t().themeSettings));
|
|
5870
|
-
|
|
5870
|
+
Oe.getState().addHistory({ themeSettings: i });
|
|
5871
5871
|
const s = {
|
|
5872
5872
|
...a.themeSettings.buttons[n],
|
|
5873
5873
|
[r]: o
|
|
@@ -5879,7 +5879,7 @@ const sf = se((e) => ({
|
|
|
5879
5879
|
}),
|
|
5880
5880
|
updateInput: (n, r, o) => e((a) => {
|
|
5881
5881
|
const i = JSON.parse(JSON.stringify(t().themeSettings));
|
|
5882
|
-
return
|
|
5882
|
+
return Oe.getState().addHistory({ themeSettings: i }), {
|
|
5883
5883
|
themeSettings: {
|
|
5884
5884
|
...a.themeSettings,
|
|
5885
5885
|
inputs: {
|
|
@@ -5894,7 +5894,7 @@ const sf = se((e) => ({
|
|
|
5894
5894
|
}),
|
|
5895
5895
|
isLoadingThemeSettings: !1,
|
|
5896
5896
|
setIsLoadingThemeSettings: (n) => e(() => ({ isLoadingThemeSettings: n }))
|
|
5897
|
-
})),
|
|
5897
|
+
})), He = se((e) => ({
|
|
5898
5898
|
notifications: [],
|
|
5899
5899
|
setNotifications: (t) => e(() => ({ notifications: t }))
|
|
5900
5900
|
})), df = se((e) => ({
|
|
@@ -5914,12 +5914,12 @@ function Dc() {
|
|
|
5914
5914
|
return pn(Ac);
|
|
5915
5915
|
}
|
|
5916
5916
|
var Fc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
5917
|
-
const
|
|
5917
|
+
const Po = {
|
|
5918
5918
|
randomUUID: Fc
|
|
5919
5919
|
};
|
|
5920
|
-
function
|
|
5921
|
-
if (
|
|
5922
|
-
return
|
|
5920
|
+
function st(e, t, n) {
|
|
5921
|
+
if (Po.randomUUID && !e)
|
|
5922
|
+
return Po.randomUUID();
|
|
5923
5923
|
e = e || {};
|
|
5924
5924
|
var r = e.random || (e.rng || Dc)();
|
|
5925
5925
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Mc(r);
|
|
@@ -6095,7 +6095,7 @@ const wr = (e) => (t) => {
|
|
|
6095
6095
|
setIsOpenSelectModal: (n) => e(() => ({ isOpenSelectModal: n })),
|
|
6096
6096
|
setIsEdit: (n) => e(() => ({ isEdit: n })),
|
|
6097
6097
|
createPage: (n) => {
|
|
6098
|
-
const r = t().pages, o =
|
|
6098
|
+
const r = t().pages, o = st();
|
|
6099
6099
|
if (r)
|
|
6100
6100
|
r[o] = n, e({ pages: r });
|
|
6101
6101
|
else {
|
|
@@ -6141,15 +6141,15 @@ const wr = (e) => (t) => {
|
|
|
6141
6141
|
},
|
|
6142
6142
|
setHeader: (n, r = !0) => {
|
|
6143
6143
|
const o = JSON.parse(JSON.stringify(t().header)), a = JSON.parse(JSON.stringify(n));
|
|
6144
|
-
JSON.stringify(o) !== JSON.stringify(a) && r &&
|
|
6144
|
+
JSON.stringify(o) !== JSON.stringify(a) && r && Oe.getState().addHistory({ header: o }), e({ header: a });
|
|
6145
6145
|
},
|
|
6146
6146
|
setFooter: (n, r = !0) => {
|
|
6147
6147
|
const o = JSON.parse(JSON.stringify(t().footer)), a = JSON.parse(JSON.stringify(n));
|
|
6148
|
-
JSON.stringify(o) !== JSON.stringify(a) && r &&
|
|
6148
|
+
JSON.stringify(o) !== JSON.stringify(a) && r && Oe.getState().addHistory({ footer: o }), e({ footer: a });
|
|
6149
6149
|
},
|
|
6150
6150
|
setAnnouncement: (n, r = !0) => {
|
|
6151
6151
|
const o = JSON.parse(JSON.stringify(t().announcement)), a = JSON.parse(JSON.stringify(n));
|
|
6152
|
-
JSON.stringify(o) !== JSON.stringify(a) && r &&
|
|
6152
|
+
JSON.stringify(o) !== JSON.stringify(a) && r && Oe.getState().addHistory({ announcement: o }), e({ announcement: a });
|
|
6153
6153
|
},
|
|
6154
6154
|
createPage: (n) => {
|
|
6155
6155
|
const r = t().blocks;
|
|
@@ -6187,8 +6187,8 @@ const wr = (e) => (t) => {
|
|
|
6187
6187
|
},
|
|
6188
6188
|
addBlock: (n, r) => {
|
|
6189
6189
|
const o = JSON.parse(JSON.stringify(t().blocks));
|
|
6190
|
-
|
|
6191
|
-
const a = { ...t().blocks }, i = a[n] || { data: {}, order: [] }, s = t().positionBlock, l =
|
|
6190
|
+
Oe.getState().addHistory({ layers: o });
|
|
6191
|
+
const a = { ...t().blocks }, i = a[n] || { data: {}, order: [] }, s = t().positionBlock, l = st(), c = {
|
|
6192
6192
|
name: r.name,
|
|
6193
6193
|
value: r.value
|
|
6194
6194
|
};
|
|
@@ -6202,10 +6202,10 @@ const wr = (e) => (t) => {
|
|
|
6202
6202
|
},
|
|
6203
6203
|
currentBlock: l,
|
|
6204
6204
|
positionBlock: null
|
|
6205
|
-
}),
|
|
6206
|
-
...
|
|
6205
|
+
}), He.getState().setNotifications([
|
|
6206
|
+
...He.getState().notifications,
|
|
6207
6207
|
{
|
|
6208
|
-
id:
|
|
6208
|
+
id: st(),
|
|
6209
6209
|
message: "Block successfully added",
|
|
6210
6210
|
status: "success"
|
|
6211
6211
|
}
|
|
@@ -6213,7 +6213,7 @@ const wr = (e) => (t) => {
|
|
|
6213
6213
|
},
|
|
6214
6214
|
editBlock: (n, r, o) => {
|
|
6215
6215
|
const a = JSON.parse(JSON.stringify(t().blocks));
|
|
6216
|
-
|
|
6216
|
+
Oe.getState().addHistory({ layers: a });
|
|
6217
6217
|
const i = t().blocks, s = i[n] || {};
|
|
6218
6218
|
s.data[r] = {
|
|
6219
6219
|
name: o.name,
|
|
@@ -6227,7 +6227,7 @@ const wr = (e) => (t) => {
|
|
|
6227
6227
|
},
|
|
6228
6228
|
removeBlock: (n, r) => {
|
|
6229
6229
|
const o = JSON.parse(JSON.stringify(t().blocks));
|
|
6230
|
-
|
|
6230
|
+
Oe.getState().addHistory({ layers: o });
|
|
6231
6231
|
const a = JSON.parse(JSON.stringify(t().blocks)), i = a[n];
|
|
6232
6232
|
if (!i) {
|
|
6233
6233
|
console.error(`Page at path "${n}" does not exist.`);
|
|
@@ -6238,10 +6238,10 @@ const wr = (e) => (t) => {
|
|
|
6238
6238
|
...a,
|
|
6239
6239
|
[n]: i
|
|
6240
6240
|
}
|
|
6241
|
-
}),
|
|
6242
|
-
...
|
|
6241
|
+
}), He.getState().setNotifications([
|
|
6242
|
+
...He.getState().notifications,
|
|
6243
6243
|
{
|
|
6244
|
-
id:
|
|
6244
|
+
id: st(),
|
|
6245
6245
|
message: "Block successfully deleted",
|
|
6246
6246
|
status: "success"
|
|
6247
6247
|
}
|
|
@@ -6249,16 +6249,16 @@ const wr = (e) => (t) => {
|
|
|
6249
6249
|
},
|
|
6250
6250
|
moveBlock: (n, r, o) => e((a) => {
|
|
6251
6251
|
const i = JSON.parse(JSON.stringify(t().blocks));
|
|
6252
|
-
if (
|
|
6252
|
+
if (Oe.getState().addHistory({ layers: i }), !a.blocks[n])
|
|
6253
6253
|
return console.error(`Path ${n} does not exist in blocks`), a;
|
|
6254
6254
|
const s = { ...a.blocks[n] }, l = [...s.order];
|
|
6255
6255
|
if (r < 0 || o < 0 || r >= l.length || o >= l.length)
|
|
6256
6256
|
return console.error(`Invalid indices: fromIndex=${r}, toIndex=${o}`), a;
|
|
6257
6257
|
const [c] = l.splice(r, 1);
|
|
6258
|
-
return l.splice(o, 0, c),
|
|
6259
|
-
...
|
|
6258
|
+
return l.splice(o, 0, c), He.getState().setNotifications([
|
|
6259
|
+
...He.getState().notifications,
|
|
6260
6260
|
{
|
|
6261
|
-
id:
|
|
6261
|
+
id: st(),
|
|
6262
6262
|
message: "Block successfully moved",
|
|
6263
6263
|
status: "success"
|
|
6264
6264
|
}
|
|
@@ -6274,13 +6274,13 @@ const wr = (e) => (t) => {
|
|
|
6274
6274
|
}),
|
|
6275
6275
|
duplicateBlock: (n, r) => {
|
|
6276
6276
|
const o = JSON.parse(JSON.stringify(t().blocks));
|
|
6277
|
-
|
|
6277
|
+
Oe.getState().addHistory({ layers: o });
|
|
6278
6278
|
const a = JSON.parse(JSON.stringify(t().blocks)), i = a[n];
|
|
6279
6279
|
if (!i || !i.data[r]) {
|
|
6280
6280
|
console.error(`Block with ID "${r}" not found in page "${n}"`);
|
|
6281
6281
|
return;
|
|
6282
6282
|
}
|
|
6283
|
-
const s =
|
|
6283
|
+
const s = st(), l = i.data[r], c = {
|
|
6284
6284
|
name: l.name,
|
|
6285
6285
|
value: JSON.parse(JSON.stringify({ ...l.value }))
|
|
6286
6286
|
};
|
|
@@ -6301,10 +6301,10 @@ const wr = (e) => (t) => {
|
|
|
6301
6301
|
}), Hc.getState().setActiveBlock({
|
|
6302
6302
|
id: s,
|
|
6303
6303
|
neededScroll: !0
|
|
6304
|
-
}),
|
|
6305
|
-
...
|
|
6304
|
+
}), He.getState().setNotifications([
|
|
6305
|
+
...He.getState().notifications,
|
|
6306
6306
|
{
|
|
6307
|
-
id:
|
|
6307
|
+
id: st(),
|
|
6308
6308
|
message: "Block successfully duplicated",
|
|
6309
6309
|
status: "success"
|
|
6310
6310
|
}
|
|
@@ -6321,7 +6321,7 @@ const wr = (e) => (t) => {
|
|
|
6321
6321
|
}
|
|
6322
6322
|
}
|
|
6323
6323
|
)
|
|
6324
|
-
),
|
|
6324
|
+
), Oe = se((e, t) => ({
|
|
6325
6325
|
past: [],
|
|
6326
6326
|
future: [],
|
|
6327
6327
|
// Добавление в историю
|
|
@@ -6733,7 +6733,7 @@ var ba = { exports: {} };
|
|
|
6733
6733
|
})();
|
|
6734
6734
|
})(ba);
|
|
6735
6735
|
var zc = ba.exports;
|
|
6736
|
-
const
|
|
6736
|
+
const Ue = /* @__PURE__ */ $c(zc), xf = se((e) => ({
|
|
6737
6737
|
currentDevice: {
|
|
6738
6738
|
icon: "Desktop",
|
|
6739
6739
|
value: "desktop"
|
|
@@ -6878,7 +6878,7 @@ const Sa = se((e, t) => ({
|
|
|
6878
6878
|
tooltip: Kc
|
|
6879
6879
|
}, Nf = (e) => {
|
|
6880
6880
|
const { text: t } = e, { setShowTooltip: n } = Wc();
|
|
6881
|
-
return
|
|
6881
|
+
return Te.useEffect(() => (n(!0), () => {
|
|
6882
6882
|
n(!1);
|
|
6883
6883
|
}), []), /* @__PURE__ */ M("div", { className: Gc.tooltip, children: t });
|
|
6884
6884
|
}, _f = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "";
|
|
@@ -6936,7 +6936,7 @@ const Yc = (e, t, n, r, o, a, i) => {
|
|
|
6936
6936
|
return t ? /* @__PURE__ */ M(
|
|
6937
6937
|
"div",
|
|
6938
6938
|
{
|
|
6939
|
-
className:
|
|
6939
|
+
className: Ue(Sr.wrapper, Sr.submodal),
|
|
6940
6940
|
onMouseEnter: () => {
|
|
6941
6941
|
r(), o(!0);
|
|
6942
6942
|
},
|
|
@@ -6989,8 +6989,8 @@ const Wu = (e) => {
|
|
|
6989
6989
|
labelStyle: o = "primary",
|
|
6990
6990
|
isGradientActive: a = !0,
|
|
6991
6991
|
isBlockSettings: i
|
|
6992
|
-
} = e, [s, l] =
|
|
6993
|
-
|
|
6992
|
+
} = e, [s, l] = Te.useState(t);
|
|
6993
|
+
Te.useEffect(() => {
|
|
6994
6994
|
l(t);
|
|
6995
6995
|
}, [t]);
|
|
6996
6996
|
const {
|
|
@@ -7004,7 +7004,7 @@ const Wu = (e) => {
|
|
|
7004
7004
|
setIsGradientActive: v,
|
|
7005
7005
|
colorChange: R
|
|
7006
7006
|
} = Ca();
|
|
7007
|
-
|
|
7007
|
+
Te.useEffect(() => {
|
|
7008
7008
|
const N = () => {
|
|
7009
7009
|
h(!1), c(null), d(t), w(() => {
|
|
7010
7010
|
}), m(t), p(() => {
|
|
@@ -7027,17 +7027,17 @@ const Wu = (e) => {
|
|
|
7027
7027
|
}, _ = () => {
|
|
7028
7028
|
or(s) || l(t);
|
|
7029
7029
|
};
|
|
7030
|
-
return /* @__PURE__ */
|
|
7030
|
+
return /* @__PURE__ */ Ee("div", { className: q.content, children: [
|
|
7031
7031
|
/* @__PURE__ */ M(
|
|
7032
7032
|
"span",
|
|
7033
7033
|
{
|
|
7034
|
-
className:
|
|
7034
|
+
className: Ue(q.name, {
|
|
7035
7035
|
[q.secondary]: o === "secondary"
|
|
7036
7036
|
}),
|
|
7037
7037
|
children: r
|
|
7038
7038
|
}
|
|
7039
7039
|
),
|
|
7040
|
-
/* @__PURE__ */
|
|
7040
|
+
/* @__PURE__ */ Ee(
|
|
7041
7041
|
"label",
|
|
7042
7042
|
{
|
|
7043
7043
|
className: q.label,
|
|
@@ -7102,50 +7102,50 @@ const Wu = (e) => {
|
|
|
7102
7102
|
setHue2: K,
|
|
7103
7103
|
setSaturation2: B,
|
|
7104
7104
|
setBrightness2: ae,
|
|
7105
|
-
setAlpha2:
|
|
7105
|
+
setAlpha2: ie,
|
|
7106
7106
|
activeColorIndex: te,
|
|
7107
7107
|
setActiveColorIndex: he,
|
|
7108
|
-
isGradientActive:
|
|
7109
|
-
isBlockSettings:
|
|
7110
|
-
} = Ca(),
|
|
7108
|
+
isGradientActive: Le,
|
|
7109
|
+
isBlockSettings: Ze
|
|
7110
|
+
} = Ca(), Ae = (j, V, ne) => {
|
|
7111
7111
|
V /= 100, ne /= 100;
|
|
7112
|
-
const z = (ue) => (ue + j / 60) % 6,
|
|
7112
|
+
const z = (ue) => (ue + j / 60) % 6, Y = (ue) => ne * (1 - V * Math.max(0, Math.min(z(ue), 4 - z(ue), 1))), W = Math.round(255 * Y(5)), re = Math.round(255 * Y(3)), Z = Math.round(255 * Y(1));
|
|
7113
7113
|
return { r: W, g: re, b: Z };
|
|
7114
|
-
},
|
|
7115
|
-
const { r:
|
|
7116
|
-
return `#${
|
|
7117
|
-
},
|
|
7114
|
+
}, le = (j) => j.toString(16).padStart(2, "0"), Ne = (j, V, ne, z) => {
|
|
7115
|
+
const { r: Y, g: W, b: re } = Ae(j, V, ne), Z = Math.round(z / 100 * 255);
|
|
7116
|
+
return `#${le(Y)}${le(W)}${le(re)}${le(Z)}`;
|
|
7117
|
+
}, be = (j, V, ne, z) => {
|
|
7118
7118
|
if (R)
|
|
7119
7119
|
if (te === 1) {
|
|
7120
7120
|
u(j), d(V), h(ne), w(z);
|
|
7121
|
-
const
|
|
7121
|
+
const Y = Ne(j, V, ne, z), W = Ne(N, U, b, T), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${Y} 0%, ${W} 100%)`;
|
|
7122
7122
|
m(Z), p(Z);
|
|
7123
7123
|
} else {
|
|
7124
|
-
K(j), B(V), ae(ne),
|
|
7125
|
-
const
|
|
7124
|
+
K(j), B(V), ae(ne), ie(z);
|
|
7125
|
+
const Y = Ne(j, V, ne, z), W = Ne(o, a, i, s), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${W} 0%, ${Y} 100%)`;
|
|
7126
7126
|
m(Z), p(Z);
|
|
7127
7127
|
}
|
|
7128
7128
|
else {
|
|
7129
|
-
const
|
|
7130
|
-
m(
|
|
7129
|
+
const Y = Ne(j, V, ne, z);
|
|
7130
|
+
m(Y), p(Y);
|
|
7131
7131
|
}
|
|
7132
|
-
},
|
|
7133
|
-
const { width: z, height:
|
|
7134
|
-
R ? te === 1 ? (d(W), h(re),
|
|
7135
|
-
},
|
|
7132
|
+
}, $e = (j, V, ne) => {
|
|
7133
|
+
const { width: z, height: Y } = ne.getBoundingClientRect(), W = Math.max(0, Math.min(j / z * 100, 100)), re = Math.max(0, Math.min(100 - V / Y * 100, 100));
|
|
7134
|
+
R ? te === 1 ? (d(W), h(re), be(o, W, re, s)) : (B(W), ae(re), be(N, W, re, T)) : (d(W), h(re), be(o, W, re, s));
|
|
7135
|
+
}, ge = (j) => {
|
|
7136
7136
|
const { offsetX: V, offsetY: ne } = j.nativeEvent;
|
|
7137
|
-
c(!0),
|
|
7138
|
-
},
|
|
7137
|
+
c(!0), $e(V, ne, j.currentTarget);
|
|
7138
|
+
}, Be = (j) => {
|
|
7139
7139
|
if (l) {
|
|
7140
|
-
const V = document.querySelector(`.${q.colorMap}`), { left: ne, top: z } = V.getBoundingClientRect(),
|
|
7141
|
-
|
|
7140
|
+
const V = document.querySelector(`.${q.colorMap}`), { left: ne, top: z } = V.getBoundingClientRect(), Y = j.clientX - ne, W = j.clientY - z;
|
|
7141
|
+
$e(Y, W, V);
|
|
7142
7142
|
}
|
|
7143
|
-
},
|
|
7143
|
+
}, ze = () => {
|
|
7144
7144
|
c(!1);
|
|
7145
7145
|
};
|
|
7146
|
-
|
|
7146
|
+
Te.useEffect(() => {
|
|
7147
7147
|
function j(z) {
|
|
7148
|
-
const
|
|
7148
|
+
const Y = /linear-gradient\((\d+deg),\s*(#[0-9a-fA-F]{8})\s*0%,\s*(#[0-9a-fA-F]{8})\s*100%\)/, W = z.match(Y);
|
|
7149
7149
|
if (W) {
|
|
7150
7150
|
const re = W[1], Z = W[2], ue = W[3];
|
|
7151
7151
|
return { angle: re, col1: Z, col2: ue };
|
|
@@ -7153,41 +7153,41 @@ const Wu = (e) => {
|
|
|
7153
7153
|
return null;
|
|
7154
7154
|
}
|
|
7155
7155
|
function V(z) {
|
|
7156
|
-
const
|
|
7157
|
-
return { h: ue, s:
|
|
7156
|
+
const Y = parseInt(z.slice(1, 3), 16), W = parseInt(z.slice(3, 5), 16), re = parseInt(z.slice(5, 7), 16), Z = parseInt(z.slice(7, 9), 16) / 255 * 100, { h: ue, s: nt, b: ht } = ne(Y, W, re);
|
|
7157
|
+
return { h: ue, s: nt, b: ht, a: Z };
|
|
7158
7158
|
}
|
|
7159
|
-
function ne(z,
|
|
7160
|
-
z /= 255,
|
|
7161
|
-
const re = Math.max(z,
|
|
7159
|
+
function ne(z, Y, W) {
|
|
7160
|
+
z /= 255, Y /= 255, W /= 255;
|
|
7161
|
+
const re = Math.max(z, Y, W), Z = Math.min(z, Y, W);
|
|
7162
7162
|
let ue = 0;
|
|
7163
|
-
const
|
|
7163
|
+
const nt = re - Z, ht = (re === 0 ? 0 : nt / re) * 100, Ge = re * 100;
|
|
7164
7164
|
if (re === Z)
|
|
7165
7165
|
ue = 0;
|
|
7166
7166
|
else
|
|
7167
7167
|
switch (re) {
|
|
7168
7168
|
case z:
|
|
7169
|
-
ue = ((
|
|
7169
|
+
ue = ((Y - W) / nt + (Y < W ? 6 : 0)) * 60;
|
|
7170
7170
|
break;
|
|
7171
|
-
case
|
|
7172
|
-
ue = ((W - z) /
|
|
7171
|
+
case Y:
|
|
7172
|
+
ue = ((W - z) / nt + 2) * 60;
|
|
7173
7173
|
break;
|
|
7174
7174
|
case W:
|
|
7175
|
-
ue = ((z -
|
|
7175
|
+
ue = ((z - Y) / nt + 4) * 60;
|
|
7176
7176
|
break;
|
|
7177
7177
|
}
|
|
7178
|
-
return { h: ue, s: ht, b:
|
|
7178
|
+
return { h: ue, s: ht, b: Ge };
|
|
7179
7179
|
}
|
|
7180
7180
|
if (n && n.startsWith("linear-gradient")) {
|
|
7181
7181
|
const z = j(n);
|
|
7182
7182
|
if (z) {
|
|
7183
|
-
const { angle:
|
|
7184
|
-
S(!0), _(
|
|
7183
|
+
const { angle: Y, col1: W, col2: re } = z, Z = V(W), ue = V(re);
|
|
7184
|
+
S(!0), _(Y === "0deg" ? "vertical" : "horizontal"), u(Z.h), d(Z.s), h(Z.b), w(Z.a), K(ue.h), B(ue.s), ae(ue.b), ie(ue.a), he(1);
|
|
7185
7185
|
}
|
|
7186
7186
|
} else if (n) {
|
|
7187
|
-
const
|
|
7187
|
+
const Y = function(re) {
|
|
7188
7188
|
let Z = re;
|
|
7189
7189
|
return Z.length === 7 ? Z + "ff" : Z.length === 9 ? Z : Z.length === 4 ? Z[0] + Z[1].repeat(2) + Z[2].repeat(2) + Z[3].repeat(2) + "ff" : "#000000ff";
|
|
7190
|
-
}(n), W = V(
|
|
7190
|
+
}(n), W = V(Y);
|
|
7191
7191
|
S(!1), u(W.h), d(W.s), h(W.b), w(W.a);
|
|
7192
7192
|
}
|
|
7193
7193
|
}, [
|
|
@@ -7201,11 +7201,11 @@ const Wu = (e) => {
|
|
|
7201
7201
|
K,
|
|
7202
7202
|
B,
|
|
7203
7203
|
ae,
|
|
7204
|
-
|
|
7204
|
+
ie,
|
|
7205
7205
|
he
|
|
7206
|
-
]),
|
|
7206
|
+
]), Te.useEffect(() => {
|
|
7207
7207
|
let j, V, ne, z;
|
|
7208
|
-
R ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = N, V = U, ne = b, z = T) : (j = o, V = a, ne = i, z = s),
|
|
7208
|
+
R ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = N, V = U, ne = b, z = T) : (j = o, V = a, ne = i, z = s), be(j, V, ne, z);
|
|
7209
7209
|
}, [
|
|
7210
7210
|
R,
|
|
7211
7211
|
x,
|
|
@@ -7218,26 +7218,26 @@ const Wu = (e) => {
|
|
|
7218
7218
|
U,
|
|
7219
7219
|
b,
|
|
7220
7220
|
T
|
|
7221
|
-
]),
|
|
7222
|
-
const j = (ne) =>
|
|
7221
|
+
]), Te.useEffect(() => {
|
|
7222
|
+
const j = (ne) => Be(ne), V = () => ze();
|
|
7223
7223
|
return l ? (document.addEventListener("mousemove", j), document.addEventListener("mouseup", V)) : (document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V)), () => {
|
|
7224
7224
|
document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V);
|
|
7225
7225
|
};
|
|
7226
7226
|
}, [l, R, x]);
|
|
7227
|
-
function
|
|
7227
|
+
function G() {
|
|
7228
7228
|
if (!R)
|
|
7229
7229
|
v(t);
|
|
7230
7230
|
else {
|
|
7231
|
-
const j =
|
|
7231
|
+
const j = Ne(o, a, i, s), V = Ne(N, U, b, T), z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
|
|
7232
7232
|
v(z);
|
|
7233
7233
|
}
|
|
7234
7234
|
r(!1);
|
|
7235
7235
|
}
|
|
7236
|
-
function
|
|
7236
|
+
function Se() {
|
|
7237
7237
|
r(!1), m(n);
|
|
7238
7238
|
}
|
|
7239
|
-
const
|
|
7240
|
-
return /* @__PURE__ */
|
|
7239
|
+
const Re = R ? te === 1 ? o : N : o, De = R ? te === 1 ? a : U : a, en = R ? te === 1 ? i : b : i, zn = R ? te === 1 ? s : T : s, { r: tn, g: Ce, b: tt } = Ae(Re, De, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ce}, ${tt}, 0), rgba(${tn}, ${Ce}, ${tt}, 1))`, rn = Ne(o, a, i, s), Ke = Ne(N, U, b, T);
|
|
7240
|
+
return /* @__PURE__ */ Ee(
|
|
7241
7241
|
"div",
|
|
7242
7242
|
{
|
|
7243
7243
|
className: q.modal,
|
|
@@ -7248,11 +7248,11 @@ const Wu = (e) => {
|
|
|
7248
7248
|
},
|
|
7249
7249
|
children: [
|
|
7250
7250
|
/* @__PURE__ */ M("h2", { className: q.title, children: "Color" }),
|
|
7251
|
-
|
|
7252
|
-
/* @__PURE__ */
|
|
7251
|
+
Le && /* @__PURE__ */ Ee("div", { className: q.colorTypes, children: [
|
|
7252
|
+
/* @__PURE__ */ Ee(
|
|
7253
7253
|
"div",
|
|
7254
7254
|
{
|
|
7255
|
-
className:
|
|
7255
|
+
className: Ue(q.colorType, { [q.colorTypeActive]: !R }),
|
|
7256
7256
|
onClick: () => S(!1),
|
|
7257
7257
|
children: [
|
|
7258
7258
|
/* @__PURE__ */ M(
|
|
@@ -7270,10 +7270,10 @@ const Wu = (e) => {
|
|
|
7270
7270
|
]
|
|
7271
7271
|
}
|
|
7272
7272
|
),
|
|
7273
|
-
/* @__PURE__ */
|
|
7273
|
+
/* @__PURE__ */ Ee(
|
|
7274
7274
|
"div",
|
|
7275
7275
|
{
|
|
7276
|
-
className:
|
|
7276
|
+
className: Ue(q.colorType, { [q.colorTypeActive]: R }),
|
|
7277
7277
|
onClick: () => S(!0),
|
|
7278
7278
|
children: [
|
|
7279
7279
|
/* @__PURE__ */ M(
|
|
@@ -7292,20 +7292,20 @@ const Wu = (e) => {
|
|
|
7292
7292
|
}
|
|
7293
7293
|
)
|
|
7294
7294
|
] }),
|
|
7295
|
-
R &&
|
|
7295
|
+
R && Le && /* @__PURE__ */ Ee("div", { className: q.colorsWrapper, children: [
|
|
7296
7296
|
/* @__PURE__ */ M(
|
|
7297
7297
|
"div",
|
|
7298
7298
|
{
|
|
7299
7299
|
className: q.colors,
|
|
7300
7300
|
style: {
|
|
7301
|
-
background: `linear-gradient(90deg, ${rn} 0%, ${
|
|
7301
|
+
background: `linear-gradient(90deg, ${rn} 0%, ${Ke} 100%)`
|
|
7302
7302
|
}
|
|
7303
7303
|
}
|
|
7304
7304
|
),
|
|
7305
7305
|
/* @__PURE__ */ M(
|
|
7306
7306
|
"div",
|
|
7307
7307
|
{
|
|
7308
|
-
className:
|
|
7308
|
+
className: Ue(q.color, { [q.colorActive]: te === 1 }),
|
|
7309
7309
|
onClick: () => he(1),
|
|
7310
7310
|
style: { background: rn }
|
|
7311
7311
|
}
|
|
@@ -7313,9 +7313,9 @@ const Wu = (e) => {
|
|
|
7313
7313
|
/* @__PURE__ */ M(
|
|
7314
7314
|
"div",
|
|
7315
7315
|
{
|
|
7316
|
-
className:
|
|
7316
|
+
className: Ue(q.color, { [q.colorActive]: te === 2 }),
|
|
7317
7317
|
onClick: () => he(2),
|
|
7318
|
-
style: { background:
|
|
7318
|
+
style: { background: Ke }
|
|
7319
7319
|
}
|
|
7320
7320
|
)
|
|
7321
7321
|
] }),
|
|
@@ -7323,11 +7323,11 @@ const Wu = (e) => {
|
|
|
7323
7323
|
"div",
|
|
7324
7324
|
{
|
|
7325
7325
|
className: q.colorMap,
|
|
7326
|
-
onMouseDown:
|
|
7326
|
+
onMouseDown: ge,
|
|
7327
7327
|
style: {
|
|
7328
7328
|
background: `
|
|
7329
7329
|
linear-gradient(to top, black, transparent),
|
|
7330
|
-
linear-gradient(to right, hsl(${
|
|
7330
|
+
linear-gradient(to right, hsl(${Re}, 100%, 100%), hsl(${Re}, 100%, 50%))
|
|
7331
7331
|
`
|
|
7332
7332
|
},
|
|
7333
7333
|
children: /* @__PURE__ */ M(
|
|
@@ -7336,7 +7336,7 @@ const Wu = (e) => {
|
|
|
7336
7336
|
className: q.indicator,
|
|
7337
7337
|
style: {
|
|
7338
7338
|
position: "absolute",
|
|
7339
|
-
left: `${
|
|
7339
|
+
left: `${De}%`,
|
|
7340
7340
|
top: `${100 - en}%`,
|
|
7341
7341
|
transform: "translate(-50%, -50%)"
|
|
7342
7342
|
}
|
|
@@ -7349,7 +7349,7 @@ const Wu = (e) => {
|
|
|
7349
7349
|
{
|
|
7350
7350
|
className: q.hueSlider,
|
|
7351
7351
|
style: {
|
|
7352
|
-
bottom:
|
|
7352
|
+
bottom: Ze ? R ? "225px" : "150px" : R ? "175px" : "100px"
|
|
7353
7353
|
},
|
|
7354
7354
|
children: /* @__PURE__ */ M(
|
|
7355
7355
|
"input",
|
|
@@ -7357,22 +7357,22 @@ const Wu = (e) => {
|
|
|
7357
7357
|
type: "range",
|
|
7358
7358
|
min: "0",
|
|
7359
7359
|
max: "360",
|
|
7360
|
-
value:
|
|
7360
|
+
value: Re,
|
|
7361
7361
|
onChange: (j) => {
|
|
7362
7362
|
const V = Number(j.target.value);
|
|
7363
|
-
R ? te === 1 ?
|
|
7363
|
+
R ? te === 1 ? be(V, a, i, s) : be(V, U, b, T) : (u(V), be(V, a, i, s));
|
|
7364
7364
|
},
|
|
7365
7365
|
className: q.slider
|
|
7366
7366
|
}
|
|
7367
7367
|
)
|
|
7368
7368
|
}
|
|
7369
7369
|
),
|
|
7370
|
-
/* @__PURE__ */
|
|
7370
|
+
/* @__PURE__ */ Ee(
|
|
7371
7371
|
"div",
|
|
7372
7372
|
{
|
|
7373
7373
|
className: q.alphaSlider,
|
|
7374
7374
|
style: {
|
|
7375
|
-
bottom:
|
|
7375
|
+
bottom: Ze ? R ? "200px" : "125px" : R ? "150px" : "75px"
|
|
7376
7376
|
},
|
|
7377
7377
|
children: [
|
|
7378
7378
|
/* @__PURE__ */ M("div", { className: q.alphaBackground }),
|
|
@@ -7392,7 +7392,7 @@ const Wu = (e) => {
|
|
|
7392
7392
|
value: zn,
|
|
7393
7393
|
onChange: (j) => {
|
|
7394
7394
|
const V = Number(j.target.value);
|
|
7395
|
-
R ? te === 1 ?
|
|
7395
|
+
R ? te === 1 ? be(o, a, i, V) : be(N, U, b, V) : (w(V), be(o, a, i, V));
|
|
7396
7396
|
},
|
|
7397
7397
|
className: q.slider
|
|
7398
7398
|
}
|
|
@@ -7400,13 +7400,13 @@ const Wu = (e) => {
|
|
|
7400
7400
|
]
|
|
7401
7401
|
}
|
|
7402
7402
|
),
|
|
7403
|
-
R &&
|
|
7403
|
+
R && Le && /* @__PURE__ */ Ee("div", { className: q.gradientWrapper, children: [
|
|
7404
7404
|
/* @__PURE__ */ M("h3", { className: q.subtitle, children: "Rotation" }),
|
|
7405
|
-
/* @__PURE__ */ M("div", { className: q.gradient, children: /* @__PURE__ */
|
|
7406
|
-
/* @__PURE__ */
|
|
7405
|
+
/* @__PURE__ */ M("div", { className: q.gradient, children: /* @__PURE__ */ Ee("div", { className: q.chargeTypes, children: [
|
|
7406
|
+
/* @__PURE__ */ Ee(
|
|
7407
7407
|
"div",
|
|
7408
7408
|
{
|
|
7409
|
-
className:
|
|
7409
|
+
className: Ue(q.charge, {
|
|
7410
7410
|
[q.chargeActive]: x === "horizontal"
|
|
7411
7411
|
}),
|
|
7412
7412
|
onClick: () => _("horizontal"),
|
|
@@ -7423,10 +7423,10 @@ const Wu = (e) => {
|
|
|
7423
7423
|
]
|
|
7424
7424
|
}
|
|
7425
7425
|
),
|
|
7426
|
-
/* @__PURE__ */
|
|
7426
|
+
/* @__PURE__ */ Ee(
|
|
7427
7427
|
"div",
|
|
7428
7428
|
{
|
|
7429
|
-
className:
|
|
7429
|
+
className: Ue(q.charge, {
|
|
7430
7430
|
[q.chargeActive]: x === "vertical"
|
|
7431
7431
|
}),
|
|
7432
7432
|
onClick: () => _("vertical"),
|
|
@@ -7445,29 +7445,29 @@ const Wu = (e) => {
|
|
|
7445
7445
|
)
|
|
7446
7446
|
] }) })
|
|
7447
7447
|
] }),
|
|
7448
|
-
|
|
7448
|
+
Ze && /* @__PURE__ */ M(
|
|
7449
7449
|
Wu,
|
|
7450
7450
|
{
|
|
7451
7451
|
initialColor: t,
|
|
7452
7452
|
onChange: (j) => p(j),
|
|
7453
7453
|
title: "",
|
|
7454
|
-
isBlockSettings:
|
|
7454
|
+
isBlockSettings: Ze
|
|
7455
7455
|
}
|
|
7456
7456
|
),
|
|
7457
|
-
/* @__PURE__ */
|
|
7457
|
+
/* @__PURE__ */ Ee("div", { className: q.buttons, children: [
|
|
7458
7458
|
/* @__PURE__ */ M(
|
|
7459
|
-
|
|
7459
|
+
zr,
|
|
7460
7460
|
{
|
|
7461
|
-
onClick:
|
|
7462
|
-
className:
|
|
7461
|
+
onClick: Se,
|
|
7462
|
+
className: Ue(q.applyButton, q.cancelButton),
|
|
7463
7463
|
type: "Secondary",
|
|
7464
7464
|
children: "Cancel"
|
|
7465
7465
|
}
|
|
7466
7466
|
),
|
|
7467
7467
|
/* @__PURE__ */ M(
|
|
7468
|
-
|
|
7468
|
+
zr,
|
|
7469
7469
|
{
|
|
7470
|
-
onClick:
|
|
7470
|
+
onClick: G,
|
|
7471
7471
|
className: q.applyButton,
|
|
7472
7472
|
type: "Primary",
|
|
7473
7473
|
children: "Apply"
|
|
@@ -7486,7 +7486,7 @@ const Wu = (e) => {
|
|
|
7486
7486
|
return /* @__PURE__ */ M(
|
|
7487
7487
|
"div",
|
|
7488
7488
|
{
|
|
7489
|
-
className:
|
|
7489
|
+
className: Ue(ar.wrapper, {
|
|
7490
7490
|
[ar.open]: t,
|
|
7491
7491
|
[ar.close]: n
|
|
7492
7492
|
}),
|
|
@@ -7502,7 +7502,7 @@ const Wu = (e) => {
|
|
|
7502
7502
|
return /* @__PURE__ */ M("div", { className: ir.blocks, children: t.map((a) => /* @__PURE__ */ M(
|
|
7503
7503
|
"div",
|
|
7504
7504
|
{
|
|
7505
|
-
className:
|
|
7505
|
+
className: Ue(ir.block, { [ir.active]: n === a }),
|
|
7506
7506
|
onClick: () => r(a),
|
|
7507
7507
|
children: /* @__PURE__ */ M(
|
|
7508
7508
|
Wt,
|
|
@@ -7519,29 +7519,29 @@ const Wu = (e) => {
|
|
|
7519
7519
|
main: ed,
|
|
7520
7520
|
content: td,
|
|
7521
7521
|
notifications: nd
|
|
7522
|
-
}, rd = "_notification_rpmz2_1", od = "_text_rpmz2_22", ad = "_timer_rpmz2_27", id = "_warning_rpmz2_32", sd = "_error_rpmz2_37", ld = "_success_rpmz2_42",
|
|
7522
|
+
}, rd = "_notification_rpmz2_1", od = "_text_rpmz2_22", ad = "_timer_rpmz2_27", id = "_warning_rpmz2_32", sd = "_error_rpmz2_37", ld = "_success_rpmz2_42", kt = {
|
|
7523
7523
|
notification: rd,
|
|
7524
7524
|
text: od,
|
|
7525
7525
|
timer: ad,
|
|
7526
7526
|
warning: id,
|
|
7527
7527
|
error: sd,
|
|
7528
7528
|
success: ld
|
|
7529
|
-
},
|
|
7529
|
+
}, Oo = {
|
|
7530
7530
|
warning: "#C1972A",
|
|
7531
7531
|
error: "#FF3F19",
|
|
7532
7532
|
success: "#338B13"
|
|
7533
7533
|
}, cd = (e) => {
|
|
7534
|
-
const { type: t, message: n, style: r, padding: o, timer: a, id: i, element: s } = e, [l, c] =
|
|
7534
|
+
const { type: t, message: n, style: r, padding: o, timer: a, id: i, element: s } = e, [l, c] = Te.useState(a), { setNotifications: u } = He();
|
|
7535
7535
|
function d() {
|
|
7536
|
-
const w =
|
|
7536
|
+
const w = He.getState().notifications.filter((m) => m.id !== i);
|
|
7537
7537
|
u([...w]);
|
|
7538
7538
|
}
|
|
7539
|
-
return
|
|
7539
|
+
return Te.useEffect(() => {
|
|
7540
7540
|
const h = setTimeout(() => {
|
|
7541
7541
|
d();
|
|
7542
7542
|
}, a * 1e3);
|
|
7543
7543
|
return () => clearTimeout(h);
|
|
7544
|
-
}, [a]),
|
|
7544
|
+
}, [a]), Te.useEffect(() => {
|
|
7545
7545
|
const h = setInterval(() => c((w) => w - 1), 1e3);
|
|
7546
7546
|
return () => clearInterval(h);
|
|
7547
7547
|
}, [l]), s ? s({
|
|
@@ -7558,13 +7558,13 @@ const Wu = (e) => {
|
|
|
7558
7558
|
padding: o,
|
|
7559
7559
|
position: "relative"
|
|
7560
7560
|
},
|
|
7561
|
-
children: /* @__PURE__ */
|
|
7561
|
+
children: /* @__PURE__ */ Ee(
|
|
7562
7562
|
"div",
|
|
7563
7563
|
{
|
|
7564
|
-
className:
|
|
7565
|
-
[
|
|
7566
|
-
[
|
|
7567
|
-
[
|
|
7564
|
+
className: Ue(kt.notification, {
|
|
7565
|
+
[kt.warning]: t === "warning",
|
|
7566
|
+
[kt.error]: t === "error",
|
|
7567
|
+
[kt.success]: t === "success"
|
|
7568
7568
|
}),
|
|
7569
7569
|
style: r,
|
|
7570
7570
|
children: [
|
|
@@ -7572,13 +7572,13 @@ const Wu = (e) => {
|
|
|
7572
7572
|
Wt,
|
|
7573
7573
|
{
|
|
7574
7574
|
name: "Info",
|
|
7575
|
-
fill:
|
|
7575
|
+
fill: Oo[t],
|
|
7576
7576
|
width: 20,
|
|
7577
7577
|
height: 20
|
|
7578
7578
|
}
|
|
7579
7579
|
) }),
|
|
7580
|
-
/* @__PURE__ */ M("div", { className:
|
|
7581
|
-
a && /* @__PURE__ */ M("div", { className:
|
|
7580
|
+
/* @__PURE__ */ M("div", { className: kt.text, children: n }),
|
|
7581
|
+
a && /* @__PURE__ */ M("div", { className: kt.timer, children: l }),
|
|
7582
7582
|
/* @__PURE__ */ M(
|
|
7583
7583
|
"div",
|
|
7584
7584
|
{
|
|
@@ -7589,7 +7589,7 @@ const Wu = (e) => {
|
|
|
7589
7589
|
Wt,
|
|
7590
7590
|
{
|
|
7591
7591
|
name: "X",
|
|
7592
|
-
fill:
|
|
7592
|
+
fill: Oo[t],
|
|
7593
7593
|
width: 20,
|
|
7594
7594
|
height: 20,
|
|
7595
7595
|
hoverable: !0,
|
|
@@ -7604,13 +7604,13 @@ const Wu = (e) => {
|
|
|
7604
7604
|
}
|
|
7605
7605
|
);
|
|
7606
7606
|
}, ud = () => {
|
|
7607
|
-
const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Vc(), { isAntistock: o } =
|
|
7608
|
-
return /* @__PURE__ */
|
|
7609
|
-
/* @__PURE__ */
|
|
7607
|
+
const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Vc(), { isAntistock: o } = Mr(), { notifications: a } = He(), { title: i, description: s, setTitle: l, setDescription: c, setOnConfirm: u } = jc();
|
|
7608
|
+
return /* @__PURE__ */ Ee("div", { id: "builder", className: o ? "builder-dark" : "", children: [
|
|
7609
|
+
/* @__PURE__ */ Ee("div", { className: mn.layout, children: [
|
|
7610
7610
|
/* @__PURE__ */ M(Fa, {}),
|
|
7611
|
-
/* @__PURE__ */
|
|
7611
|
+
/* @__PURE__ */ Ee("main", { className: mn.main, children: [
|
|
7612
7612
|
/* @__PURE__ */ M(Ia, {}),
|
|
7613
|
-
/* @__PURE__ */
|
|
7613
|
+
/* @__PURE__ */ Ee("div", { className: mn.content, children: [
|
|
7614
7614
|
/* @__PURE__ */ M(Ba, {}),
|
|
7615
7615
|
/* @__PURE__ */ M(Ha, {})
|
|
7616
7616
|
] })
|
|
@@ -7640,46 +7640,40 @@ const Wu = (e) => {
|
|
|
7640
7640
|
)) })
|
|
7641
7641
|
] });
|
|
7642
7642
|
};
|
|
7643
|
-
async function
|
|
7643
|
+
async function mt(e, t) {
|
|
7644
7644
|
const n = localStorage.getItem("shopId") || void 0, o = `${jn.getState().apiUrls.api}/${e}/builder/shops/${n}/${t}`;
|
|
7645
|
-
return (await
|
|
7645
|
+
return (await lt({
|
|
7646
7646
|
url: o,
|
|
7647
7647
|
withToken: !0,
|
|
7648
7648
|
method: "get"
|
|
7649
7649
|
})).data;
|
|
7650
7650
|
}
|
|
7651
|
-
async function dd() {
|
|
7651
|
+
async function dd(e) {
|
|
7652
7652
|
try {
|
|
7653
|
-
const [
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
{
|
|
7661
|
-
|
|
7662
|
-
}
|
|
7663
|
-
{
|
|
7664
|
-
data: null
|
|
7665
|
-
},
|
|
7666
|
-
{
|
|
7667
|
-
data: null
|
|
7668
|
-
}
|
|
7653
|
+
const [t, n, r, o, a, i, s, l, c] = await Promise.allSettled([
|
|
7654
|
+
mt("v1", "general"),
|
|
7655
|
+
mt("v1", "faqs"),
|
|
7656
|
+
mt("v1", "listings"),
|
|
7657
|
+
mt("v1", "products"),
|
|
7658
|
+
mt("v1", "reviews"),
|
|
7659
|
+
mt("v1", "categories"),
|
|
7660
|
+
Promise.resolve({ data: null }),
|
|
7661
|
+
Promise.resolve({ data: null }),
|
|
7662
|
+
e ? mt("v1", "vouches") : Promise.resolve({ data: null })
|
|
7669
7663
|
]);
|
|
7670
7664
|
return {
|
|
7671
|
-
general:
|
|
7672
|
-
faqs:
|
|
7673
|
-
listings:
|
|
7674
|
-
products:
|
|
7675
|
-
reviews:
|
|
7676
|
-
categories:
|
|
7677
|
-
fullPosts:
|
|
7678
|
-
posts:
|
|
7679
|
-
vouches:
|
|
7665
|
+
general: t,
|
|
7666
|
+
faqs: n,
|
|
7667
|
+
listings: r,
|
|
7668
|
+
products: o,
|
|
7669
|
+
reviews: a,
|
|
7670
|
+
categories: i,
|
|
7671
|
+
fullPosts: s,
|
|
7672
|
+
posts: l,
|
|
7673
|
+
vouches: c
|
|
7680
7674
|
};
|
|
7681
|
-
} catch (
|
|
7682
|
-
throw console.error("Error fetching page data:",
|
|
7675
|
+
} catch (t) {
|
|
7676
|
+
throw console.error("Error fetching page data:", t), t;
|
|
7683
7677
|
}
|
|
7684
7678
|
}
|
|
7685
7679
|
async function fd() {
|
|
@@ -7697,7 +7691,7 @@ async function hd() {
|
|
|
7697
7691
|
var o;
|
|
7698
7692
|
const e = localStorage.getItem("shopId"), t = localStorage.getItem("draftId"), r = `${jn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/pages`;
|
|
7699
7693
|
try {
|
|
7700
|
-
return (await
|
|
7694
|
+
return (await lt({
|
|
7701
7695
|
url: r,
|
|
7702
7696
|
withToken: !0,
|
|
7703
7697
|
method: "get"
|
|
@@ -7711,7 +7705,7 @@ async function hd() {
|
|
|
7711
7705
|
}
|
|
7712
7706
|
async function pd() {
|
|
7713
7707
|
const e = localStorage.getItem("shopId") || void 0, t = localStorage.getItem("draftId") || void 0, r = `${jn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/all`;
|
|
7714
|
-
return (await
|
|
7708
|
+
return (await lt({
|
|
7715
7709
|
url: r,
|
|
7716
7710
|
withToken: !0,
|
|
7717
7711
|
method: "get"
|
|
@@ -7725,22 +7719,22 @@ const md = (e) => {
|
|
|
7725
7719
|
setFooter: c,
|
|
7726
7720
|
setAnnouncement: u,
|
|
7727
7721
|
setSettings: d
|
|
7728
|
-
} = Oc(), { fonts: h, setFonts: w } = Jc(), { setSettings: m } =
|
|
7729
|
-
setBlocks:
|
|
7730
|
-
blocks:
|
|
7731
|
-
createPage:
|
|
7732
|
-
setIsLoadingLayers:
|
|
7733
|
-
setHeader:
|
|
7734
|
-
setAnnouncement:
|
|
7735
|
-
setFooter:
|
|
7736
|
-
} = br(), { setPages:
|
|
7737
|
-
return
|
|
7738
|
-
R(!0),
|
|
7739
|
-
const
|
|
7740
|
-
Object.keys(t).forEach((
|
|
7741
|
-
|
|
7742
|
-
}), s(
|
|
7743
|
-
const
|
|
7722
|
+
} = Oc(), { fonts: h, setFonts: w } = Jc(), { setSettings: m } = To(), { setPageContext: p } = _n(), { setThemeSettings: v, setIsLoadingThemeSettings: R } = vr(), { setIsLoadingSettings: S } = To(), { notifications: x, setNotifications: _ } = He(), { isAntistock: N } = Mr(), {
|
|
7723
|
+
setBlocks: U,
|
|
7724
|
+
blocks: b,
|
|
7725
|
+
createPage: T,
|
|
7726
|
+
setIsLoadingLayers: K,
|
|
7727
|
+
setHeader: B,
|
|
7728
|
+
setAnnouncement: ae,
|
|
7729
|
+
setFooter: ie
|
|
7730
|
+
} = br(), { setPages: te, setCurrentPage: he } = _n();
|
|
7731
|
+
return Te.useEffect(() => {
|
|
7732
|
+
R(!0), K(!0), S(!0);
|
|
7733
|
+
const Le = {};
|
|
7734
|
+
Object.keys(t).forEach((Ae) => {
|
|
7735
|
+
Le[Ae] = t[Ae];
|
|
7736
|
+
}), s(Le), i(Le), l(r), c(o), u(a), d(n), (async () => {
|
|
7737
|
+
const Ae = {
|
|
7744
7738
|
listings: null,
|
|
7745
7739
|
products: null,
|
|
7746
7740
|
reviews: null,
|
|
@@ -7751,58 +7745,58 @@ const md = (e) => {
|
|
|
7751
7745
|
posts: null,
|
|
7752
7746
|
preserveContent: !1,
|
|
7753
7747
|
vouches: null
|
|
7754
|
-
},
|
|
7755
|
-
Object.keys(
|
|
7756
|
-
const
|
|
7757
|
-
|
|
7758
|
-
}), p(
|
|
7759
|
-
const { data:
|
|
7760
|
-
if (
|
|
7761
|
-
if (
|
|
7762
|
-
const
|
|
7763
|
-
|
|
7748
|
+
}, le = await dd(N);
|
|
7749
|
+
Object.keys(le).map((G) => {
|
|
7750
|
+
const Se = G;
|
|
7751
|
+
Ae[Se] = le[Se].value.data;
|
|
7752
|
+
}), p(Ae);
|
|
7753
|
+
const { data: Ne } = await pd(), { themeSettings: be, layers: $e, settings: ge } = Ne || {};
|
|
7754
|
+
if (ge) {
|
|
7755
|
+
if (ge.settings) {
|
|
7756
|
+
const G = new n();
|
|
7757
|
+
G.blockSettings = {
|
|
7764
7758
|
displayName: "Settings",
|
|
7765
7759
|
isAddable: !1,
|
|
7766
|
-
...
|
|
7767
|
-
}, m(
|
|
7760
|
+
...ge.settings
|
|
7761
|
+
}, m(G.blockSettings);
|
|
7768
7762
|
}
|
|
7769
|
-
|
|
7763
|
+
ge.header && B(ge.header), ge.footer && ie(ge.footer), ge.announcement && ae(ge.announcement);
|
|
7770
7764
|
} else {
|
|
7771
|
-
const
|
|
7772
|
-
m(
|
|
7765
|
+
const G = new n();
|
|
7766
|
+
m(G.blockSettings);
|
|
7773
7767
|
}
|
|
7774
|
-
|
|
7775
|
-
const
|
|
7776
|
-
if (
|
|
7768
|
+
be && v(be);
|
|
7769
|
+
const Be = await hd(), ze = {};
|
|
7770
|
+
if (Be.status >= 400 && _([
|
|
7777
7771
|
...x,
|
|
7778
7772
|
{
|
|
7779
|
-
id:
|
|
7773
|
+
id: st(),
|
|
7780
7774
|
message: "Error fetching pages",
|
|
7781
7775
|
status: "error"
|
|
7782
7776
|
}
|
|
7783
|
-
]),
|
|
7784
|
-
var
|
|
7785
|
-
|
|
7786
|
-
...
|
|
7787
|
-
icon: jt[
|
|
7788
|
-
name:
|
|
7777
|
+
]), Be.data.length > 0 ? (Be.data.forEach((G) => {
|
|
7778
|
+
var Se, Re;
|
|
7779
|
+
b[G.path] || T(G.path), ze[G.id || G.path] = {
|
|
7780
|
+
...G,
|
|
7781
|
+
icon: jt[G.path] ? jt[G.path].icon : "File",
|
|
7782
|
+
name: G.name || ((Se = G.seo) == null ? void 0 : Se.pageTitle) || ((Re = jt[G.path]) == null ? void 0 : Re.name) || G.path
|
|
7789
7783
|
};
|
|
7790
|
-
}),
|
|
7791
|
-
const
|
|
7784
|
+
}), te(ze), he(Object.keys(ze)[0])) : (te(jt), he(Object.keys(jt)[0])), h.length === 0) {
|
|
7785
|
+
const G = await fd();
|
|
7792
7786
|
w([
|
|
7793
|
-
...
|
|
7794
|
-
const
|
|
7795
|
-
if (!
|
|
7796
|
-
return
|
|
7797
|
-
}).filter((
|
|
7787
|
+
...G.map((Se) => {
|
|
7788
|
+
const Re = Se.variants.map((De) => {
|
|
7789
|
+
if (!De.includes("italic"))
|
|
7790
|
+
return De === "regular" ? "400" : De;
|
|
7791
|
+
}).filter((De) => De !== void 0);
|
|
7798
7792
|
return {
|
|
7799
|
-
name:
|
|
7800
|
-
weights:
|
|
7793
|
+
name: Se.family,
|
|
7794
|
+
weights: Re
|
|
7801
7795
|
};
|
|
7802
7796
|
})
|
|
7803
7797
|
]);
|
|
7804
7798
|
}
|
|
7805
|
-
|
|
7799
|
+
U($e), R(!1), K(!1), S(!1);
|
|
7806
7800
|
})();
|
|
7807
7801
|
}, []), /* @__PURE__ */ M(ud, {});
|
|
7808
7802
|
};
|
|
@@ -7815,15 +7809,15 @@ function yd() {
|
|
|
7815
7809
|
return gd(), n && localStorage.setItem("sellerAccessToken", n), t && localStorage.setItem("shopId", t), r && localStorage.setItem("draftId", r), !!(n && t && r);
|
|
7816
7810
|
}
|
|
7817
7811
|
const vd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%200%20204%20241'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M204%200V118.282L154.174%20134.707V69.0074L49.7111%20102.77V43.5716L204%200Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M154.174%20134.694V191.155L0%20241V117.471L49.7114%20102.757V169.597L154.174%20134.694Z'%20fill='%23FF3F19'/%3e%3c/svg%3e", wd = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2019%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.0103662%2023.5362C0.0538052%2022.4425%200.370173%2021.4309%201.08058%2020.6127C1.92699%2019.6379%202.91375%2019.2329%204.14841%2019.1732C4.162%2020.1401%204.15111%2021.1085%204.15091%2022.0756L4.70583%2022.0747L7.42027%2022.0755C7.95952%2022.0752%208.50027%2022.0844%209.03933%2022.0742L9.17755%2022.0731L10.6132%2022.0759C10.8265%2022.0759%2011.0767%2022.1021%2011.2852%2022.0658C11.3052%2022.0703%2011.3534%2022.0735%2011.3625%2022.0928C11.3917%2022.1543%2011.3688%2031.0517%2011.3725%2031.9631C11.1563%2032.0856%2010.2676%2031.8701%2010.0303%2031.7947C9.89866%2031.7528%209.644%2031.6914%209.54946%2031.5874L9.51914%2031.584C9.46943%2031.5736%209.44171%2031.5537%209.40126%2031.5222C9.30218%2031.5131%209.14954%2031.4132%209.07718%2031.343C9.00129%2031.3163%208.92757%2031.2576%208.85921%2031.2134L8.85617%2031.2002C8.5748%2031.0715%208.14929%2030.6244%207.94318%2030.376C7.35205%2029.6639%206.93892%2028.7659%206.83493%2027.8203C6.78763%2027.3904%206.7994%2026.9595%206.80055%2026.5277C6.80084%2026.4202%206.82996%2026.126%206.78242%2026.0387L6.71237%2026.023C6.54382%2026.0528%206.34316%2026.0328%206.17124%2026.0324L1.0194%2026.0325L0.942306%2026.0307C0.74237%2026.0326%200.173082%2026.0689%200.0224192%2026.0192L0.00848581%2026.0029C0.022853%2025.8597%200.0136924%2025.7065%200.013837%2025.562L0.0113299%2024.6651L0.0117161%2024.5253C0.0150266%2024.1956%200.0145767%2023.8659%200.0103662%2023.5362Z'%20fill='currentColor'/%3e%3cpath%20d='M6.79824%200.00127802C6.88001%20-0.000781892%206.96176%20-0.000351703%207.04349%200.00256876C7.12523%200.00549261%207.20682%200.0108998%207.28827%200.0187905C7.36968%200.0266845%207.45082%200.0370518%207.53169%200.0498924C7.61259%200.0627296%207.69305%200.078018%207.77309%200.0957576C7.85312%200.113501%207.93259%200.133663%208.0115%200.156244C8.09044%200.178828%208.16868%200.203796%208.24624%200.231148C8.3238%200.258499%208.40053%200.28819%208.47645%200.32022C8.55237%200.352247%208.62736%200.386559%208.70141%200.423156L8.71428%200.423492C8.76476%200.450874%208.815%200.479135%208.8661%200.50516C8.947%200.550491%209.03065%200.593185%209.10687%200.646856L9.24939%200.733144C9.31674%200.78126%209.38361%200.83049%209.45202%200.87695C10.462%201.67615%2011.1434%202.77146%2011.325%204.10211C11.4076%204.70784%2011.3729%205.34243%2011.372%205.9541C11.4625%205.96599%2011.5526%205.9664%2011.6436%205.96762C12.6033%205.93794%2013.5708%205.96289%2014.5314%205.96294C15.459%205.96305%2016.3927%205.93758%2017.3195%205.9633C17.5874%205.96523%2017.9062%206.00101%2018.1677%205.95273C18.1496%206.13096%2018.1583%206.31472%2018.1585%206.49401L18.1598%207.38388L18.1595%207.51855C18.1591%207.83084%2018.14%208.15609%2018.1607%208.46685C18.109%209.73893%2017.6972%2010.8198%2016.8003%2011.6891C15.9969%2012.4676%2015.0894%2012.76%2014.0228%2012.8194L14.021%2010.9083C14.0209%2010.5892%2014.0389%2010.2573%2014.0163%209.93952C14.0002%209.92849%2013.9879%209.91884%2013.9692%209.9133C13.7941%209.93418%2013.6055%209.92148%2013.4293%209.92133H9.15258L9.04077%209.92082L7.56664%209.92209C7.31676%209.92224%207.04528%209.94526%206.79858%209.90893L6.79824%200.00127802Z'%20fill='currentColor'/%3e%3cpath%20d='M4.13987%205.96279C4.65941%205.9653%205.17894%205.96467%205.69847%205.96091C5.70059%207.27995%205.71757%208.60219%205.69833%209.92082L4.15072%209.92046L4.15106%2011.4065C4.15096%2011.6783%204.1406%2011.9555%204.15443%2012.2266C4.73799%2012.8393%205.31307%2013.4655%205.90921%2014.0644L5.98321%2014.0407C6.25311%2014.0833%206.6928%2014.0501%206.97981%2014.0499L12.7386%2014.0492L13.5943%2014.0482C13.7363%2014.0479%2013.9068%2014.0286%2014.0457%2014.0577L15.8019%2015.9078L15.8915%2015.997L15.9615%2016.0784L15.9955%2016.1093L17.4221%2017.6163C17.6528%2017.8599%2017.9077%2018.0979%2018.1211%2018.3569C18.1463%2018.3875%2018.1599%2018.4086%2018.1691%2018.4477C18.1415%2018.6757%2018.1577%2018.9211%2018.1579%2019.1514L18.1594%2020.4531C18.1597%2021.8112%2018.142%2023.1721%2018.1599%2024.5297L18.1589%2024.6625L18.158%2025.5556C18.158%2025.7089%2018.1437%2025.8808%2018.1676%2026.0315L18.0995%2026.031L17.2568%2026.0329L17.2101%2026.0308C16.2512%2026.0486%2015.2892%2026.0305%2014.3299%2026.0308C13.7488%2026.031%2013.0694%2026.064%2012.4959%2026.0258L12.4831%2026.0202C12.4481%2025.9239%2012.4717%2022.4806%2012.47%2022.075L14.0216%2022.0744C14.0024%2021.3241%2014.0324%2020.5711%2014.0173%2019.8203C13.4629%2019.2116%2012.887%2018.6041%2012.3052%2018.0244L12.293%2017.9978C12.0554%2018.0392%2011.5401%2018.0054%2011.2777%2018.0053L8.9362%2018.0074C7.75375%2017.9793%206.56306%2018.0065%205.37994%2018.0069C5.13497%2018.007%204.32737%2018.0401%204.13472%2017.9962L2.36331%2016.1262L2.29219%2016.0566L2.21959%2015.9758L2.15074%2015.9102C1.93803%2015.6694%201.70849%2015.441%201.48797%2015.2079L0%2013.631C0.0383768%2013.4512%200.014078%2013.2231%200.013837%2013.0369L0.0121494%2011.9198L0.0113299%207.52017L0.0122943%207.34622C0.0134032%206.9143%200.0453199%206.37479%200.00371286%205.95329C0.115854%205.96772%200.229056%205.9664%200.341872%205.96777C0.589393%205.96198%200.836946%205.96042%201.08453%205.9631L3.10905%205.96548C3.44789%205.96554%203.80282%205.98825%204.13987%205.96279Z'%20fill='currentColor'/%3e%3c/svg%3e", bd = (e) => {
|
|
7818
|
-
const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } =
|
|
7819
|
-
return
|
|
7812
|
+
const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = Mr(), [s, l] = Te.useState(!0), c = An(), u = et();
|
|
7813
|
+
return Te.useEffect(() => {
|
|
7820
7814
|
const d = u.pathname;
|
|
7821
7815
|
if (d.startsWith("/admin/builder")) {
|
|
7822
7816
|
d === "/admin/builder/add" ? document.title = "Add Section | Builder" : d === "/admin/builder/theme" ? document.title = "Theme Settings | Builder" : d === "/admin/builder/settings" ? document.title = "Settings | Builder" : document.title = `Builder | ${i ? "Antistock" : "Billgang "}`;
|
|
7823
7817
|
let h = document.querySelector("link[rel~='icon']");
|
|
7824
7818
|
h || (h = document.createElement("link"), h.rel = "icon", document.head.appendChild(h)), h && (h.href = i ? wd : vd);
|
|
7825
7819
|
}
|
|
7826
|
-
}, [u]),
|
|
7820
|
+
}, [u]), Te.useEffect(() => {
|
|
7827
7821
|
l(!0), yd() ? l(!1) : c("/");
|
|
7828
7822
|
}, []), /* @__PURE__ */ M(Oa, { children: s ? /* @__PURE__ */ M(Da, {}) : /* @__PURE__ */ M(
|
|
7829
7823
|
md,
|
|
@@ -7862,13 +7856,13 @@ export {
|
|
|
7862
7856
|
Of as S,
|
|
7863
7857
|
Nf as T,
|
|
7864
7858
|
Is as U,
|
|
7865
|
-
|
|
7859
|
+
Ko as V,
|
|
7866
7860
|
ef as W,
|
|
7867
7861
|
Tc as X,
|
|
7868
7862
|
Qd as Y,
|
|
7869
7863
|
rf as Z,
|
|
7870
7864
|
sf as _,
|
|
7871
|
-
|
|
7865
|
+
To as a,
|
|
7872
7866
|
$c as a0,
|
|
7873
7867
|
Nd as a1,
|
|
7874
7868
|
Md as a2,
|
|
@@ -7881,7 +7875,7 @@ export {
|
|
|
7881
7875
|
uf as a9,
|
|
7882
7876
|
tf as aa,
|
|
7883
7877
|
de as ab,
|
|
7884
|
-
|
|
7878
|
+
et as ac,
|
|
7885
7879
|
Cf as ad,
|
|
7886
7880
|
Vc as ae,
|
|
7887
7881
|
Sf as af,
|
|
@@ -7896,9 +7890,9 @@ export {
|
|
|
7896
7890
|
If as ao,
|
|
7897
7891
|
_n as b,
|
|
7898
7892
|
Oc as c,
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7893
|
+
Oe as d,
|
|
7894
|
+
He as e,
|
|
7895
|
+
Ue as f,
|
|
7902
7896
|
hf as g,
|
|
7903
7897
|
xf as h,
|
|
7904
7898
|
Hc as i,
|
|
@@ -7910,13 +7904,13 @@ export {
|
|
|
7910
7904
|
Ef as o,
|
|
7911
7905
|
An as p,
|
|
7912
7906
|
Uc as q,
|
|
7913
|
-
|
|
7907
|
+
lt as r,
|
|
7914
7908
|
Lf as s,
|
|
7915
7909
|
Tf as t,
|
|
7916
7910
|
br as u,
|
|
7917
|
-
|
|
7911
|
+
st as v,
|
|
7918
7912
|
Sa as w,
|
|
7919
7913
|
Pf as x,
|
|
7920
7914
|
Ca as y,
|
|
7921
|
-
|
|
7915
|
+
Mr as z
|
|
7922
7916
|
};
|