@hortiview/modulebase 0.0.20524 → 1.0.1
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/{IsRestoringProvider-CBSZo7ur.js → IsRestoringProvider-D5gAh2bq.js} +13 -4
- package/dist/{ModuleCore-DuJVrj6v.js → ModuleCore-CVkmRANQ.js} +3450 -3438
- package/dist/{QueryClientProvider-DyiNrPkn.js → QueryClientProvider-CTj9TWgb.js} +176 -159
- package/dist/assets/ModuleCore.css +1 -1
- package/dist/{chunk-LFPYN7LY-D1ls8FXf.js → chunk-EVOBXE3Y-BoyVF_Ri.js} +2917 -2780
- package/dist/components/ModuleBase.js +2 -2
- package/dist/components/ModuleCore.js +1 -1
- package/dist/hooks/useCustom.js +1 -1
- package/dist/hooks/useCustomMutation.js +3 -3
- package/dist/hooks/useEntity.js +1 -1
- package/dist/hooks/useOffline.js +1 -1
- package/dist/hooks/useOption.js +1 -1
- package/dist/hooks/useServiceBus.js +1 -1
- package/dist/hooks/useStores.js +1 -1
- package/dist/main.js +7 -7
- package/dist/module-router.js +878 -840
- package/dist/{mutation-CmhiEgfA.js → mutation-BIuQs3WB.js} +1 -1
- package/dist/{omit-Do6MFRwA.js → omit-DYPaIq41.js} +121 -128
- package/dist/{useMutation-Aoachkw_.js → useMutation-SlEg4Gf2.js} +2 -2
- package/dist/{useQuery-DEU_AUtf.js → useQuery-jyZ1SNKl.js} +105 -105
- package/dist/utils/helper.js +1 -1
- package/package.json +24 -23
package/dist/module-router.js
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
import * as k from "react";
|
|
2
|
-
import A, { useCallback as
|
|
3
|
-
import { useBasePropsStore as
|
|
4
|
-
import { aV as
|
|
5
|
-
import { A as
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = /^-?\d+$/, o = Object.prototype.toString,
|
|
11
|
-
const
|
|
2
|
+
import A, { useCallback as Ve } from "react";
|
|
3
|
+
import { useBasePropsStore as oe } from "./stores/BasePropsStore.js";
|
|
4
|
+
import { aV as We, a0 as te, ae as _e, r as re, v as Xe, n as xe, aW as Je, aP as Qe, E as O, aj as ke, j as K, aX as Ke, a8 as Ge, R as Ye, aY as Ze, aZ as Ae, a_ as ie, a$ as le, b0 as G, ah as F, b1 as Te, b2 as et, b3 as tt, a4 as rt, a5 as at, a3 as nt, O as st, U as ot, x as I, am as it, ao as lt, al as ut, b4 as j, b5 as dt, b6 as ue, b7 as ct, b8 as ae, b9 as L, ba as ft, bb as ht, bc as pt } from "./chunk-EVOBXE3Y-BoyVF_Ri.js";
|
|
5
|
+
import { A as Er, B as Cr, F as br, H as _r, I as xr, a as kr, b as Ar, L as Tr, d as Dr, M as Hr, e as Pr, N as Fr, f as Ur, g as Lr, P as Nr, h as Or, i as Ir, k as Br, S as Mr, l as $r, m as zr, o as jr, D as qr, p as Vr, q as Wr, s as Xr, t as Jr, w as Qr, V as Kr, W as Gr, y as Yr, z as Zr, C as ea, G as ta, J as ra, K as aa, Q as na, T as sa, X as oa, Y as ia, Z as la, _ as ua, $ as da, a1 as ca, a2 as fa, c as ha, a6 as pa, a7 as ma, a9 as ya, aa as wa, ab as ga, ac as Ra, ad as Sa, af as va, ag as Ea, ai as Ca, ak as ba, an as _a, ap as xa, aq as ka, ar as Aa, as as Ta, at as Da, au as Ha, av as Pa, aw as Fa, ax as Ua, ay as La, az as Na, aA as Oa, aB as Ia, aC as Ba, aD as Ma, aE as $a, aF as za, aG as ja, aH as qa, aI as Va, aJ as Wa, aK as Xa, aL as Ja, aM as Qa, aN as Ka, aO as Ga, aQ as Ya, aR as Za, aS as en, aT as tn, aU as rn } from "./chunk-EVOBXE3Y-BoyVF_Ri.js";
|
|
6
|
+
var H = {}, de;
|
|
7
|
+
function mt() {
|
|
8
|
+
if (de) return H;
|
|
9
|
+
de = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.parseCookie = u, H.parse = u, H.stringifyCookie = s, H.stringifySetCookie = i, H.serialize = i, H.parseSetCookie = l, H.stringifySetCookie = i, H.serialize = i;
|
|
10
|
+
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = /^-?\d+$/, o = Object.prototype.toString, c = /* @__PURE__ */ (() => {
|
|
11
|
+
const f = function() {
|
|
12
12
|
};
|
|
13
|
-
return
|
|
13
|
+
return f.prototype = /* @__PURE__ */ Object.create(null), f;
|
|
14
14
|
})();
|
|
15
|
-
function
|
|
16
|
-
const m = new
|
|
15
|
+
function u(f, g) {
|
|
16
|
+
const m = new c(), d = f.length;
|
|
17
17
|
if (d < 2)
|
|
18
18
|
return m;
|
|
19
|
-
const
|
|
20
|
-
let
|
|
19
|
+
const S = g?.decode || y;
|
|
20
|
+
let C = 0;
|
|
21
21
|
do {
|
|
22
|
-
const b = p(
|
|
22
|
+
const b = p(f, C, d);
|
|
23
23
|
if (b === -1)
|
|
24
24
|
break;
|
|
25
|
-
const
|
|
26
|
-
if (b >
|
|
27
|
-
|
|
25
|
+
const v = h(f, C, d);
|
|
26
|
+
if (b > v) {
|
|
27
|
+
C = f.lastIndexOf(";", b - 1) + 1;
|
|
28
28
|
continue;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
31
|
-
m[
|
|
32
|
-
} while (
|
|
30
|
+
const x = w(f, C, b);
|
|
31
|
+
m[x] === void 0 && (m[x] = S(w(f, b + 1, v))), C = v + 1;
|
|
32
|
+
} while (C < d);
|
|
33
33
|
return m;
|
|
34
34
|
}
|
|
35
|
-
function s(
|
|
36
|
-
const m =
|
|
37
|
-
for (const
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
35
|
+
function s(f, g) {
|
|
36
|
+
const m = g?.encode || encodeURIComponent, d = [];
|
|
37
|
+
for (const S of Object.keys(f)) {
|
|
38
|
+
const C = f[S];
|
|
39
|
+
if (C === void 0)
|
|
40
40
|
continue;
|
|
41
|
-
if (!e.test(
|
|
42
|
-
throw new TypeError(`cookie name is invalid: ${
|
|
43
|
-
const b = m(
|
|
41
|
+
if (!e.test(S))
|
|
42
|
+
throw new TypeError(`cookie name is invalid: ${S}`);
|
|
43
|
+
const b = m(C);
|
|
44
44
|
if (!t.test(b))
|
|
45
|
-
throw new TypeError(`cookie val is invalid: ${
|
|
46
|
-
d.push(`${
|
|
45
|
+
throw new TypeError(`cookie val is invalid: ${C}`);
|
|
46
|
+
d.push(`${S}=${b}`);
|
|
47
47
|
}
|
|
48
48
|
return d.join("; ");
|
|
49
49
|
}
|
|
50
|
-
function i(
|
|
51
|
-
const d = typeof
|
|
50
|
+
function i(f, g, m) {
|
|
51
|
+
const d = typeof f == "object" ? f : { ...m, name: f, value: String(g) }, C = (typeof g == "object" ? g : m)?.encode || encodeURIComponent;
|
|
52
52
|
if (!e.test(d.name))
|
|
53
53
|
throw new TypeError(`argument name is invalid: ${d.name}`);
|
|
54
|
-
const b = d.value ?
|
|
54
|
+
const b = d.value ? C(d.value) : "";
|
|
55
55
|
if (!t.test(b))
|
|
56
56
|
throw new TypeError(`argument val is invalid: ${d.value}`);
|
|
57
|
-
let
|
|
57
|
+
let v = d.name + "=" + b;
|
|
58
58
|
if (d.maxAge !== void 0) {
|
|
59
59
|
if (!Number.isInteger(d.maxAge))
|
|
60
60
|
throw new TypeError(`option maxAge is invalid: ${d.maxAge}`);
|
|
61
|
-
|
|
61
|
+
v += "; Max-Age=" + d.maxAge;
|
|
62
62
|
}
|
|
63
63
|
if (d.domain) {
|
|
64
64
|
if (!r.test(d.domain))
|
|
65
65
|
throw new TypeError(`option domain is invalid: ${d.domain}`);
|
|
66
|
-
|
|
66
|
+
v += "; Domain=" + d.domain;
|
|
67
67
|
}
|
|
68
68
|
if (d.path) {
|
|
69
69
|
if (!a.test(d.path))
|
|
70
70
|
throw new TypeError(`option path is invalid: ${d.path}`);
|
|
71
|
-
|
|
71
|
+
v += "; Path=" + d.path;
|
|
72
72
|
}
|
|
73
73
|
if (d.expires) {
|
|
74
|
-
if (!
|
|
74
|
+
if (!R(d.expires) || !Number.isFinite(d.expires.valueOf()))
|
|
75
75
|
throw new TypeError(`option expires is invalid: ${d.expires}`);
|
|
76
|
-
|
|
76
|
+
v += "; Expires=" + d.expires.toUTCString();
|
|
77
77
|
}
|
|
78
|
-
if (d.httpOnly && (
|
|
78
|
+
if (d.httpOnly && (v += "; HttpOnly"), d.secure && (v += "; Secure"), d.partitioned && (v += "; Partitioned"), d.priority)
|
|
79
79
|
switch (typeof d.priority == "string" ? d.priority.toLowerCase() : void 0) {
|
|
80
80
|
case "low":
|
|
81
|
-
|
|
81
|
+
v += "; Priority=Low";
|
|
82
82
|
break;
|
|
83
83
|
case "medium":
|
|
84
|
-
|
|
84
|
+
v += "; Priority=Medium";
|
|
85
85
|
break;
|
|
86
86
|
case "high":
|
|
87
|
-
|
|
87
|
+
v += "; Priority=High";
|
|
88
88
|
break;
|
|
89
89
|
default:
|
|
90
90
|
throw new TypeError(`option priority is invalid: ${d.priority}`);
|
|
@@ -93,28 +93,28 @@ function ht() {
|
|
|
93
93
|
switch (typeof d.sameSite == "string" ? d.sameSite.toLowerCase() : d.sameSite) {
|
|
94
94
|
case !0:
|
|
95
95
|
case "strict":
|
|
96
|
-
|
|
96
|
+
v += "; SameSite=Strict";
|
|
97
97
|
break;
|
|
98
98
|
case "lax":
|
|
99
|
-
|
|
99
|
+
v += "; SameSite=Lax";
|
|
100
100
|
break;
|
|
101
101
|
case "none":
|
|
102
|
-
|
|
102
|
+
v += "; SameSite=None";
|
|
103
103
|
break;
|
|
104
104
|
default:
|
|
105
105
|
throw new TypeError(`option sameSite is invalid: ${d.sameSite}`);
|
|
106
106
|
}
|
|
107
|
-
return
|
|
107
|
+
return v;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
const m =
|
|
111
|
-
name: w(
|
|
112
|
-
value: m(w(
|
|
109
|
+
function l(f, g) {
|
|
110
|
+
const m = g?.decode || y, d = f.length, S = h(f, 0, d), C = p(f, 0, S), b = C === -1 ? { name: "", value: m(w(f, 0, S)) } : {
|
|
111
|
+
name: w(f, 0, C),
|
|
112
|
+
value: m(w(f, C + 1, S))
|
|
113
113
|
};
|
|
114
|
-
let
|
|
115
|
-
for (;
|
|
116
|
-
const
|
|
117
|
-
switch (
|
|
114
|
+
let v = S + 1;
|
|
115
|
+
for (; v < d; ) {
|
|
116
|
+
const x = h(f, v, d), P = p(f, v, x), _ = P === -1 ? w(f, v, x) : w(f, v, P), E = P === -1 ? void 0 : w(f, P + 1, x);
|
|
117
|
+
switch (_.toLowerCase()) {
|
|
118
118
|
case "httponly":
|
|
119
119
|
b.httpOnly = !0;
|
|
120
120
|
break;
|
|
@@ -125,78 +125,78 @@ function ht() {
|
|
|
125
125
|
b.partitioned = !0;
|
|
126
126
|
break;
|
|
127
127
|
case "domain":
|
|
128
|
-
b.domain =
|
|
128
|
+
b.domain = E;
|
|
129
129
|
break;
|
|
130
130
|
case "path":
|
|
131
|
-
b.path =
|
|
131
|
+
b.path = E;
|
|
132
132
|
break;
|
|
133
133
|
case "max-age":
|
|
134
|
-
|
|
134
|
+
E && n.test(E) && (b.maxAge = Number(E));
|
|
135
135
|
break;
|
|
136
136
|
case "expires":
|
|
137
|
-
if (!
|
|
137
|
+
if (!E)
|
|
138
138
|
break;
|
|
139
|
-
const
|
|
140
|
-
Number.isFinite(
|
|
139
|
+
const T = new Date(E);
|
|
140
|
+
Number.isFinite(T.valueOf()) && (b.expires = T);
|
|
141
141
|
break;
|
|
142
142
|
case "priority":
|
|
143
|
-
if (!
|
|
143
|
+
if (!E)
|
|
144
144
|
break;
|
|
145
|
-
const
|
|
146
|
-
(
|
|
145
|
+
const D = E.toLowerCase();
|
|
146
|
+
(D === "low" || D === "medium" || D === "high") && (b.priority = D);
|
|
147
147
|
break;
|
|
148
148
|
case "samesite":
|
|
149
|
-
if (!
|
|
149
|
+
if (!E)
|
|
150
150
|
break;
|
|
151
|
-
const
|
|
152
|
-
(
|
|
151
|
+
const $ = E.toLowerCase();
|
|
152
|
+
($ === "lax" || $ === "strict" || $ === "none") && (b.sameSite = $);
|
|
153
153
|
break;
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
v = x + 1;
|
|
156
156
|
}
|
|
157
157
|
return b;
|
|
158
158
|
}
|
|
159
|
-
function h(
|
|
160
|
-
const d =
|
|
159
|
+
function h(f, g, m) {
|
|
160
|
+
const d = f.indexOf(";", g);
|
|
161
161
|
return d === -1 ? m : d;
|
|
162
162
|
}
|
|
163
|
-
function p(
|
|
164
|
-
const d =
|
|
163
|
+
function p(f, g, m) {
|
|
164
|
+
const d = f.indexOf("=", g);
|
|
165
165
|
return d < m ? d : -1;
|
|
166
166
|
}
|
|
167
|
-
function w(
|
|
168
|
-
let d =
|
|
167
|
+
function w(f, g, m) {
|
|
168
|
+
let d = g, S = m;
|
|
169
169
|
do {
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
170
|
+
const C = f.charCodeAt(d);
|
|
171
|
+
if (C !== 32 && C !== 9)
|
|
172
172
|
break;
|
|
173
|
-
} while (++d <
|
|
174
|
-
for (;
|
|
175
|
-
const
|
|
176
|
-
if (
|
|
173
|
+
} while (++d < S);
|
|
174
|
+
for (; S > d; ) {
|
|
175
|
+
const C = f.charCodeAt(S - 1);
|
|
176
|
+
if (C !== 32 && C !== 9)
|
|
177
177
|
break;
|
|
178
|
-
|
|
178
|
+
S--;
|
|
179
179
|
}
|
|
180
|
-
return
|
|
180
|
+
return f.slice(d, S);
|
|
181
181
|
}
|
|
182
|
-
function y(
|
|
183
|
-
if (
|
|
184
|
-
return
|
|
182
|
+
function y(f) {
|
|
183
|
+
if (f.indexOf("%") === -1)
|
|
184
|
+
return f;
|
|
185
185
|
try {
|
|
186
|
-
return decodeURIComponent(
|
|
186
|
+
return decodeURIComponent(f);
|
|
187
187
|
} catch {
|
|
188
|
-
return
|
|
188
|
+
return f;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return o.call(
|
|
191
|
+
function R(f) {
|
|
192
|
+
return o.call(f) === "[object Date]";
|
|
193
193
|
}
|
|
194
|
-
return
|
|
194
|
+
return H;
|
|
195
195
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
198
|
-
if (
|
|
199
|
-
|
|
196
|
+
var ce = /* @__PURE__ */ mt(), N = { exports: {} }, fe;
|
|
197
|
+
function yt() {
|
|
198
|
+
if (fe) return N.exports;
|
|
199
|
+
fe = 1;
|
|
200
200
|
var e = {
|
|
201
201
|
decodeValues: !0,
|
|
202
202
|
map: !1,
|
|
@@ -212,36 +212,36 @@ function pt() {
|
|
|
212
212
|
return typeof s == "string" && !!s.trim();
|
|
213
213
|
}
|
|
214
214
|
function n(s, i) {
|
|
215
|
-
var
|
|
215
|
+
var l = s.split(";").filter(a), h = l.shift(), p = o(h), w = p.name, y = p.value;
|
|
216
216
|
if (i = i ? Object.assign({}, e, i) : e, t(w))
|
|
217
217
|
return null;
|
|
218
218
|
try {
|
|
219
219
|
y = i.decodeValues ? decodeURIComponent(y) : y;
|
|
220
|
-
} catch (
|
|
220
|
+
} catch (f) {
|
|
221
221
|
console.error(
|
|
222
222
|
"set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",
|
|
223
|
-
|
|
223
|
+
f
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
return
|
|
228
|
-
var
|
|
226
|
+
var R = r();
|
|
227
|
+
return R.name = w, R.value = y, l.forEach(function(f) {
|
|
228
|
+
var g = f.split("="), m = g.shift().trimLeft().toLowerCase();
|
|
229
229
|
if (!t(m)) {
|
|
230
|
-
var d =
|
|
230
|
+
var d = g.join("=");
|
|
231
231
|
if (m === "expires")
|
|
232
|
-
|
|
232
|
+
R.expires = new Date(d);
|
|
233
233
|
else if (m === "max-age") {
|
|
234
|
-
var
|
|
235
|
-
Number.isNaN(
|
|
236
|
-
} else m === "secure" ?
|
|
234
|
+
var S = parseInt(d, 10);
|
|
235
|
+
Number.isNaN(S) || (R.maxAge = S);
|
|
236
|
+
} else m === "secure" ? R.secure = !0 : m === "httponly" ? R.httpOnly = !0 : m === "samesite" ? R.sameSite = d : m === "partitioned" ? R.partitioned = !0 : m && (R[m] = d);
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), R;
|
|
239
239
|
}
|
|
240
240
|
function o(s) {
|
|
241
|
-
var i = "",
|
|
242
|
-
return h.length > 1 ? (i = h.shift(),
|
|
241
|
+
var i = "", l = "", h = s.split("=");
|
|
242
|
+
return h.length > 1 ? (i = h.shift(), l = h.join("=")) : l = s, { name: i, value: l };
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function c(s, i) {
|
|
245
245
|
if (i = i ? Object.assign({}, e, i) : e, !s)
|
|
246
246
|
return i.map ? r() : [];
|
|
247
247
|
if (s.headers)
|
|
@@ -250,12 +250,12 @@ function pt() {
|
|
|
250
250
|
else if (s.headers["set-cookie"])
|
|
251
251
|
s = s.headers["set-cookie"];
|
|
252
252
|
else {
|
|
253
|
-
var
|
|
253
|
+
var l = s.headers[Object.keys(s.headers).find(function(p) {
|
|
254
254
|
return p.toLowerCase() === "set-cookie";
|
|
255
255
|
})];
|
|
256
|
-
!
|
|
256
|
+
!l && s.headers.cookie && !i.silent && console.warn(
|
|
257
257
|
"Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
|
|
258
|
-
), s =
|
|
258
|
+
), s = l;
|
|
259
259
|
}
|
|
260
260
|
if (Array.isArray(s) || (s = [s]), i.map) {
|
|
261
261
|
var h = r();
|
|
@@ -268,42 +268,42 @@ function pt() {
|
|
|
268
268
|
return n(p, i);
|
|
269
269
|
}).filter(Boolean);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function u(s) {
|
|
272
272
|
if (Array.isArray(s))
|
|
273
273
|
return s;
|
|
274
274
|
if (typeof s != "string")
|
|
275
275
|
return [];
|
|
276
|
-
var i = [],
|
|
277
|
-
function
|
|
278
|
-
for (;
|
|
279
|
-
|
|
280
|
-
return
|
|
276
|
+
var i = [], l = 0, h, p, w, y, R;
|
|
277
|
+
function f() {
|
|
278
|
+
for (; l < s.length && /\s/.test(s.charAt(l)); )
|
|
279
|
+
l += 1;
|
|
280
|
+
return l < s.length;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
return p = s.charAt(
|
|
282
|
+
function g() {
|
|
283
|
+
return p = s.charAt(l), p !== "=" && p !== ";" && p !== ",";
|
|
284
284
|
}
|
|
285
|
-
for (;
|
|
286
|
-
for (h =
|
|
287
|
-
if (p = s.charAt(
|
|
288
|
-
for (w =
|
|
289
|
-
|
|
290
|
-
|
|
285
|
+
for (; l < s.length; ) {
|
|
286
|
+
for (h = l, R = !1; f(); )
|
|
287
|
+
if (p = s.charAt(l), p === ",") {
|
|
288
|
+
for (w = l, l += 1, f(), y = l; l < s.length && g(); )
|
|
289
|
+
l += 1;
|
|
290
|
+
l < s.length && s.charAt(l) === "=" ? (R = !0, l = y, i.push(s.substring(h, w)), h = l) : l = w + 1;
|
|
291
291
|
} else
|
|
292
|
-
|
|
293
|
-
(!
|
|
292
|
+
l += 1;
|
|
293
|
+
(!R || l >= s.length) && i.push(s.substring(h, s.length));
|
|
294
294
|
}
|
|
295
295
|
return i;
|
|
296
296
|
}
|
|
297
|
-
return
|
|
297
|
+
return N.exports = c, N.exports.parse = c, N.exports.parseString = n, N.exports.splitCookiesString = u, N.exports;
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
299
|
+
var wt = /* @__PURE__ */ yt();
|
|
300
|
+
function or({
|
|
301
301
|
context: e,
|
|
302
302
|
url: t,
|
|
303
303
|
nonce: r
|
|
304
304
|
}) {
|
|
305
305
|
typeof t == "string" && (t = new URL(t));
|
|
306
|
-
let { manifest: a, routeModules: n, criticalCss: o, serverHandoffString:
|
|
306
|
+
let { manifest: a, routeModules: n, criticalCss: o, serverHandoffString: c } = e, u = We(
|
|
307
307
|
a.routes,
|
|
308
308
|
n,
|
|
309
309
|
e.future,
|
|
@@ -313,23 +313,23 @@ function nr({
|
|
|
313
313
|
...e.staticHandlerContext.loaderData
|
|
314
314
|
};
|
|
315
315
|
for (let i of e.staticHandlerContext.matches) {
|
|
316
|
-
let
|
|
317
|
-
h && p &&
|
|
318
|
-
|
|
316
|
+
let l = i.route.id, h = n[l], p = e.manifest.routes[l];
|
|
317
|
+
h && p && te(
|
|
318
|
+
l,
|
|
319
319
|
h.clientLoader,
|
|
320
320
|
p.hasLoader,
|
|
321
321
|
e.isSpaMode
|
|
322
|
-
) && (h.HydrateFallback || !p.hasLoader) && delete e.staticHandlerContext.loaderData[
|
|
322
|
+
) && (h.HydrateFallback || !p.hasLoader) && delete e.staticHandlerContext.loaderData[l];
|
|
323
323
|
}
|
|
324
|
-
let s =
|
|
324
|
+
let s = _e(u, e.staticHandlerContext);
|
|
325
325
|
return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(
|
|
326
|
-
|
|
326
|
+
re.Provider,
|
|
327
327
|
{
|
|
328
328
|
value: {
|
|
329
329
|
manifest: a,
|
|
330
330
|
routeModules: n,
|
|
331
331
|
criticalCss: o,
|
|
332
|
-
serverHandoffString:
|
|
332
|
+
serverHandoffString: c,
|
|
333
333
|
future: e.future,
|
|
334
334
|
ssr: e.ssr,
|
|
335
335
|
isSpaMode: e.isSpaMode,
|
|
@@ -338,8 +338,8 @@ function nr({
|
|
|
338
338
|
renderMeta: e.renderMeta
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
|
-
/* @__PURE__ */ k.createElement(
|
|
342
|
-
|
|
341
|
+
/* @__PURE__ */ k.createElement(Xe, { location: s.state.location }, /* @__PURE__ */ k.createElement(
|
|
342
|
+
xe,
|
|
343
343
|
{
|
|
344
344
|
router: s,
|
|
345
345
|
context: e.staticHandlerContext,
|
|
@@ -347,7 +347,7 @@ function nr({
|
|
|
347
347
|
}
|
|
348
348
|
))
|
|
349
349
|
), e.serverHandoffStream ? /* @__PURE__ */ k.createElement(k.Suspense, null, /* @__PURE__ */ k.createElement(
|
|
350
|
-
|
|
350
|
+
Je,
|
|
351
351
|
{
|
|
352
352
|
context: e,
|
|
353
353
|
identifier: 0,
|
|
@@ -357,20 +357,21 @@ function nr({
|
|
|
357
357
|
}
|
|
358
358
|
)) : null);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function ir(e, t) {
|
|
361
361
|
return function({
|
|
362
362
|
initialEntries: a,
|
|
363
363
|
initialIndex: n,
|
|
364
364
|
hydrationData: o,
|
|
365
|
-
future:
|
|
365
|
+
future: c
|
|
366
366
|
}) {
|
|
367
|
-
let
|
|
368
|
-
if (
|
|
367
|
+
let u = k.useRef(), s = k.useRef();
|
|
368
|
+
if (u.current == null) {
|
|
369
369
|
s.current = {
|
|
370
370
|
future: {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
unstable_passThroughRequests: c?.unstable_passThroughRequests === !0,
|
|
372
|
+
unstable_subResourceIntegrity: c?.unstable_subResourceIntegrity === !0,
|
|
373
|
+
v8_middleware: c?.v8_middleware === !0,
|
|
374
|
+
unstable_trailingSlashAwareDataRequests: c?.unstable_trailingSlashAwareDataRequests === !0
|
|
374
375
|
},
|
|
375
376
|
manifest: {
|
|
376
377
|
routes: {},
|
|
@@ -383,36 +384,36 @@ function sr(e, t) {
|
|
|
383
384
|
isSpaMode: !1,
|
|
384
385
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }
|
|
385
386
|
};
|
|
386
|
-
let i =
|
|
387
|
+
let i = De(
|
|
387
388
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
388
|
-
// types compared to `
|
|
389
|
-
|
|
390
|
-
t !== void 0 ? t :
|
|
389
|
+
// types compared to `RouteObject`
|
|
390
|
+
Ke(e, (l) => l),
|
|
391
|
+
t !== void 0 ? t : c?.v8_middleware ? new K() : {},
|
|
391
392
|
s.current.manifest,
|
|
392
393
|
s.current.routeModules
|
|
393
394
|
);
|
|
394
|
-
|
|
395
|
+
u.current = Ge(i, {
|
|
395
396
|
initialEntries: a,
|
|
396
397
|
initialIndex: n,
|
|
397
398
|
hydrationData: o
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
|
-
return /* @__PURE__ */ k.createElement(
|
|
401
|
+
return /* @__PURE__ */ k.createElement(re.Provider, { value: s.current }, /* @__PURE__ */ k.createElement(Ye, { router: u.current }));
|
|
401
402
|
};
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function De(e, t, r, a, n) {
|
|
404
405
|
return e.map((o) => {
|
|
405
406
|
if (!o.id)
|
|
406
407
|
throw new Error(
|
|
407
408
|
"Expected a route.id in react-router processRoutes() function"
|
|
408
409
|
);
|
|
409
|
-
let
|
|
410
|
+
let c = {
|
|
410
411
|
id: o.id,
|
|
411
412
|
path: o.path,
|
|
412
413
|
index: o.index,
|
|
413
|
-
Component: o.Component ?
|
|
414
|
-
HydrateFallback: o.HydrateFallback ?
|
|
415
|
-
ErrorBoundary: o.ErrorBoundary ?
|
|
414
|
+
Component: o.Component ? nt(o.Component) : void 0,
|
|
415
|
+
HydrateFallback: o.HydrateFallback ? at(o.HydrateFallback) : void 0,
|
|
416
|
+
ErrorBoundary: o.ErrorBoundary ? rt(o.ErrorBoundary) : void 0,
|
|
416
417
|
action: o.action ? (s) => o.action({ ...s, context: t }) : void 0,
|
|
417
418
|
loader: o.loader ? (s) => o.loader({ ...s, context: t }) : void 0,
|
|
418
419
|
middleware: o.middleware ? o.middleware.map(
|
|
@@ -423,7 +424,7 @@ function Ae(e, t, r, a, n) {
|
|
|
423
424
|
) : void 0,
|
|
424
425
|
handle: o.handle,
|
|
425
426
|
shouldRevalidate: o.shouldRevalidate
|
|
426
|
-
},
|
|
427
|
+
}, u = {
|
|
427
428
|
id: o.id,
|
|
428
429
|
path: o.path,
|
|
429
430
|
index: o.index,
|
|
@@ -444,56 +445,56 @@ function Ae(e, t, r, a, n) {
|
|
|
444
445
|
clientMiddlewareModule: void 0,
|
|
445
446
|
hydrateFallbackModule: void 0
|
|
446
447
|
};
|
|
447
|
-
return r.routes[
|
|
448
|
-
default:
|
|
449
|
-
ErrorBoundary:
|
|
448
|
+
return r.routes[c.id] = u, a[o.id] = {
|
|
449
|
+
default: c.Component || st,
|
|
450
|
+
ErrorBoundary: c.ErrorBoundary || void 0,
|
|
450
451
|
handle: o.handle,
|
|
451
452
|
links: o.links,
|
|
452
453
|
meta: o.meta,
|
|
453
454
|
shouldRevalidate: o.shouldRevalidate
|
|
454
|
-
}, o.children && (
|
|
455
|
+
}, o.children && (c.children = De(
|
|
455
456
|
o.children,
|
|
456
457
|
t,
|
|
457
458
|
r,
|
|
458
459
|
a,
|
|
459
|
-
|
|
460
|
-
)),
|
|
460
|
+
c.id
|
|
461
|
+
)), c;
|
|
461
462
|
});
|
|
462
463
|
}
|
|
463
|
-
var
|
|
464
|
-
let r =
|
|
464
|
+
var ne = /* @__PURE__ */ new TextEncoder(), gt = async (e, t) => {
|
|
465
|
+
let r = ne.encode(e), a = await He(t, ["sign"]), n = await crypto.subtle.sign("HMAC", a, r), o = btoa(String.fromCharCode(...new Uint8Array(n))).replace(
|
|
465
466
|
/=+$/,
|
|
466
467
|
""
|
|
467
468
|
);
|
|
468
469
|
return e + "." + o;
|
|
469
|
-
},
|
|
470
|
-
let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), o =
|
|
470
|
+
}, Rt = async (e, t) => {
|
|
471
|
+
let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), o = ne.encode(a), c = await He(t, ["verify"]);
|
|
471
472
|
try {
|
|
472
|
-
let
|
|
473
|
-
return await crypto.subtle.verify("HMAC",
|
|
473
|
+
let u = St(atob(n));
|
|
474
|
+
return await crypto.subtle.verify("HMAC", c, u, o) ? a : !1;
|
|
474
475
|
} catch {
|
|
475
476
|
return !1;
|
|
476
477
|
}
|
|
477
|
-
},
|
|
478
|
+
}, He = async (e, t) => crypto.subtle.importKey(
|
|
478
479
|
"raw",
|
|
479
|
-
|
|
480
|
+
ne.encode(e),
|
|
480
481
|
{ name: "HMAC", hash: "SHA-256" },
|
|
481
482
|
!1,
|
|
482
483
|
t
|
|
483
484
|
);
|
|
484
|
-
function
|
|
485
|
+
function St(e) {
|
|
485
486
|
let t = new Uint8Array(e.length);
|
|
486
487
|
for (let r = 0; r < e.length; r++)
|
|
487
488
|
t[r] = e.charCodeAt(r);
|
|
488
489
|
return t;
|
|
489
490
|
}
|
|
490
|
-
var
|
|
491
|
+
var Pe = (e, t = {}) => {
|
|
491
492
|
let { secrets: r = [], ...a } = {
|
|
492
493
|
path: "/",
|
|
493
494
|
sameSite: "lax",
|
|
494
495
|
...t
|
|
495
496
|
};
|
|
496
|
-
return
|
|
497
|
+
return xt(e, a.expires), {
|
|
497
498
|
get name() {
|
|
498
499
|
return e;
|
|
499
500
|
},
|
|
@@ -505,17 +506,17 @@ var He = (e, t = {}) => {
|
|
|
505
506
|
},
|
|
506
507
|
async parse(n, o) {
|
|
507
508
|
if (!n) return null;
|
|
508
|
-
let
|
|
509
|
-
if (e in
|
|
510
|
-
let
|
|
511
|
-
return typeof
|
|
509
|
+
let c = ce.parse(n, { ...a, ...o });
|
|
510
|
+
if (e in c) {
|
|
511
|
+
let u = c[e];
|
|
512
|
+
return typeof u == "string" && u !== "" ? await Et(u, r) : "";
|
|
512
513
|
} else
|
|
513
514
|
return null;
|
|
514
515
|
},
|
|
515
516
|
async serialize(n, o) {
|
|
516
|
-
return
|
|
517
|
+
return ce.serialize(
|
|
517
518
|
e,
|
|
518
|
-
n === "" ? "" : await
|
|
519
|
+
n === "" ? "" : await vt(n, r),
|
|
519
520
|
{
|
|
520
521
|
...a,
|
|
521
522
|
...o
|
|
@@ -523,44 +524,44 @@ var He = (e, t = {}) => {
|
|
|
523
524
|
);
|
|
524
525
|
}
|
|
525
526
|
};
|
|
526
|
-
},
|
|
527
|
-
async function
|
|
528
|
-
let r =
|
|
529
|
-
return t.length > 0 && (r = await
|
|
527
|
+
}, Fe = (e) => e != null && typeof e.name == "string" && typeof e.isSigned == "boolean" && typeof e.parse == "function" && typeof e.serialize == "function";
|
|
528
|
+
async function vt(e, t) {
|
|
529
|
+
let r = Ct(e);
|
|
530
|
+
return t.length > 0 && (r = await gt(r, t[0])), r;
|
|
530
531
|
}
|
|
531
|
-
async function
|
|
532
|
+
async function Et(e, t) {
|
|
532
533
|
if (t.length > 0) {
|
|
533
534
|
for (let r of t) {
|
|
534
|
-
let a = await
|
|
535
|
+
let a = await Rt(e, r);
|
|
535
536
|
if (a !== !1)
|
|
536
|
-
return
|
|
537
|
+
return he(a);
|
|
537
538
|
}
|
|
538
539
|
return null;
|
|
539
540
|
}
|
|
540
|
-
return
|
|
541
|
+
return he(e);
|
|
541
542
|
}
|
|
542
|
-
function
|
|
543
|
-
return btoa(
|
|
543
|
+
function Ct(e) {
|
|
544
|
+
return btoa(_t(encodeURIComponent(JSON.stringify(e))));
|
|
544
545
|
}
|
|
545
|
-
function
|
|
546
|
+
function he(e) {
|
|
546
547
|
try {
|
|
547
|
-
return JSON.parse(decodeURIComponent(
|
|
548
|
+
return JSON.parse(decodeURIComponent(bt(atob(e))));
|
|
548
549
|
} catch {
|
|
549
550
|
return {};
|
|
550
551
|
}
|
|
551
552
|
}
|
|
552
|
-
function
|
|
553
|
+
function bt(e) {
|
|
553
554
|
let t = e.toString(), r = "", a = 0, n, o;
|
|
554
555
|
for (; a < t.length; )
|
|
555
|
-
n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (o = n.charCodeAt(0), o < 256 ? r += "%" +
|
|
556
|
+
n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (o = n.charCodeAt(0), o < 256 ? r += "%" + pe(o, 2) : r += "%u" + pe(o, 4).toUpperCase());
|
|
556
557
|
return r;
|
|
557
558
|
}
|
|
558
|
-
function
|
|
559
|
+
function pe(e, t) {
|
|
559
560
|
let r = e.toString(16);
|
|
560
561
|
for (; r.length < t; ) r = "0" + r;
|
|
561
562
|
return r;
|
|
562
563
|
}
|
|
563
|
-
function
|
|
564
|
+
function _t(e) {
|
|
564
565
|
let t = e.toString(), r = "", a = 0, n, o;
|
|
565
566
|
for (; a < t.length; ) {
|
|
566
567
|
if (n = t.charAt(a++), n === "%") {
|
|
@@ -578,65 +579,65 @@ function Ct(e) {
|
|
|
578
579
|
}
|
|
579
580
|
return r;
|
|
580
581
|
}
|
|
581
|
-
function
|
|
582
|
-
|
|
582
|
+
function xt(e, t) {
|
|
583
|
+
Te(
|
|
583
584
|
!t,
|
|
584
585
|
`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
|
|
585
586
|
);
|
|
586
587
|
}
|
|
587
|
-
function
|
|
588
|
+
function kt(e) {
|
|
588
589
|
return Object.keys(e).reduce((t, r) => {
|
|
589
590
|
let a = e[r];
|
|
590
591
|
return a && (t[r] = a.module), t;
|
|
591
592
|
}, {});
|
|
592
593
|
}
|
|
593
|
-
var
|
|
594
|
-
function
|
|
594
|
+
var At = /* @__PURE__ */ ((e) => (e.Development = "development", e.Production = "production", e.Test = "test", e))(At || {});
|
|
595
|
+
function Tt(e) {
|
|
595
596
|
return e === "development" || e === "production" || e === "test";
|
|
596
597
|
}
|
|
597
|
-
function
|
|
598
|
+
function W(e, t) {
|
|
598
599
|
if (e instanceof Error && t !== "development") {
|
|
599
600
|
let r = new Error("Unexpected Server Error");
|
|
600
601
|
return r.stack = void 0, r;
|
|
601
602
|
}
|
|
602
603
|
return e;
|
|
603
604
|
}
|
|
604
|
-
function
|
|
605
|
-
return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]:
|
|
605
|
+
function q(e, t) {
|
|
606
|
+
return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]: W(n, t) }), {});
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
-
let r =
|
|
608
|
+
function Ue(e, t) {
|
|
609
|
+
let r = W(e, t);
|
|
609
610
|
return {
|
|
610
611
|
message: r.message,
|
|
611
612
|
stack: r.stack
|
|
612
613
|
};
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
+
function me(e, t) {
|
|
615
616
|
if (!e) return null;
|
|
616
617
|
let r = Object.entries(e), a = {};
|
|
617
618
|
for (let [n, o] of r)
|
|
618
|
-
if (
|
|
619
|
+
if (F(o))
|
|
619
620
|
a[n] = { ...o, __type: "RouteErrorResponse" };
|
|
620
621
|
else if (o instanceof Error) {
|
|
621
|
-
let
|
|
622
|
+
let c = W(o, t);
|
|
622
623
|
a[n] = {
|
|
623
|
-
message:
|
|
624
|
-
stack:
|
|
624
|
+
message: c.message,
|
|
625
|
+
stack: c.stack,
|
|
625
626
|
__type: "Error",
|
|
626
627
|
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
627
628
|
// can re-create the same type during hydration. This will only apply
|
|
628
629
|
// in dev mode since all production errors are sanitized to normal
|
|
629
630
|
// Error instances
|
|
630
|
-
...
|
|
631
|
-
__subType:
|
|
631
|
+
...c.name !== "Error" ? {
|
|
632
|
+
__subType: c.name
|
|
632
633
|
} : {}
|
|
633
634
|
};
|
|
634
635
|
} else
|
|
635
636
|
a[n] = o;
|
|
636
637
|
return a;
|
|
637
638
|
}
|
|
638
|
-
function
|
|
639
|
-
let a =
|
|
639
|
+
function Y(e, t, r) {
|
|
640
|
+
let a = ke(
|
|
640
641
|
e,
|
|
641
642
|
t,
|
|
642
643
|
r
|
|
@@ -647,18 +648,19 @@ function G(e, t, r) {
|
|
|
647
648
|
route: n.route
|
|
648
649
|
})) : null;
|
|
649
650
|
}
|
|
650
|
-
async function
|
|
651
|
-
let
|
|
652
|
-
request: Dt(
|
|
651
|
+
async function ye(e, t, r) {
|
|
652
|
+
let a = await e({
|
|
653
|
+
request: r.unstable_passThroughRequests ? t.request : Ht(Dt(t.request)),
|
|
654
|
+
unstable_url: t.unstable_url,
|
|
653
655
|
params: t.params,
|
|
654
656
|
context: t.context,
|
|
655
657
|
unstable_pattern: t.unstable_pattern
|
|
656
658
|
});
|
|
657
|
-
if (
|
|
658
|
-
throw new Response(null,
|
|
659
|
-
return
|
|
659
|
+
if (ct(a) && a.init && a.init.status && ae(a.init.status))
|
|
660
|
+
throw new Response(null, a.init);
|
|
661
|
+
return a;
|
|
660
662
|
}
|
|
661
|
-
function
|
|
663
|
+
function Dt(e) {
|
|
662
664
|
let t = new URL(e.url), r = t.searchParams.getAll("index");
|
|
663
665
|
t.searchParams.delete("index");
|
|
664
666
|
let a = [];
|
|
@@ -674,7 +676,7 @@ function At(e) {
|
|
|
674
676
|
};
|
|
675
677
|
return n.body && (n.duplex = "half"), new Request(t.href, n);
|
|
676
678
|
}
|
|
677
|
-
function
|
|
679
|
+
function Ht(e) {
|
|
678
680
|
let t = new URL(e.url);
|
|
679
681
|
t.searchParams.delete("_routes");
|
|
680
682
|
let r = {
|
|
@@ -685,29 +687,29 @@ function Dt(e) {
|
|
|
685
687
|
};
|
|
686
688
|
return r.body && (r.duplex = "half"), new Request(t.href, r);
|
|
687
689
|
}
|
|
688
|
-
function
|
|
690
|
+
function z(e, t) {
|
|
689
691
|
if (e === !1 || e === null || typeof e > "u")
|
|
690
692
|
throw console.error(
|
|
691
693
|
"The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
|
|
692
694
|
), new Error(t);
|
|
693
695
|
}
|
|
694
|
-
var
|
|
695
|
-
function
|
|
696
|
-
globalThis[
|
|
696
|
+
var Le = "__reactRouterDevServerHooks";
|
|
697
|
+
function lr(e) {
|
|
698
|
+
globalThis[Le] = e;
|
|
697
699
|
}
|
|
698
|
-
function
|
|
699
|
-
return globalThis[
|
|
700
|
+
function X() {
|
|
701
|
+
return globalThis[Le];
|
|
700
702
|
}
|
|
701
703
|
function Ne(e, t) {
|
|
702
704
|
if (typeof process < "u")
|
|
703
705
|
try {
|
|
704
|
-
if (process.env
|
|
706
|
+
if (process.env.hasOwnProperty("IS_RR_BUILD_REQUEST") && process.env.IS_RR_BUILD_REQUEST === "yes")
|
|
705
707
|
return e.headers.get(t);
|
|
706
708
|
} catch {
|
|
707
709
|
}
|
|
708
710
|
return null;
|
|
709
711
|
}
|
|
710
|
-
function
|
|
712
|
+
function Oe(e) {
|
|
711
713
|
let t = {};
|
|
712
714
|
return Object.values(e).forEach((r) => {
|
|
713
715
|
if (r) {
|
|
@@ -716,13 +718,13 @@ function Ue(e) {
|
|
|
716
718
|
}
|
|
717
719
|
}), t;
|
|
718
720
|
}
|
|
719
|
-
function
|
|
721
|
+
function Ie(e, t = "", r = Oe(e)) {
|
|
720
722
|
return (r[t] || []).map((a) => ({
|
|
721
723
|
...a,
|
|
722
|
-
children:
|
|
724
|
+
children: Ie(e, a.id, r)
|
|
723
725
|
}));
|
|
724
726
|
}
|
|
725
|
-
function
|
|
727
|
+
function Be(e, t, r = "", a = Oe(e)) {
|
|
726
728
|
return (a[r] || []).map((n) => {
|
|
727
729
|
let o = {
|
|
728
730
|
// Always include root due to default boundaries
|
|
@@ -732,37 +734,41 @@ function Oe(e, t, r = "", a = Ue(e)) {
|
|
|
732
734
|
middleware: n.module.middleware,
|
|
733
735
|
// Need to use RR's version in the param typed here to permit the optional
|
|
734
736
|
// context even though we know it'll always be provided in remix
|
|
735
|
-
loader: n.module.loader ? async (
|
|
736
|
-
let
|
|
737
|
-
|
|
737
|
+
loader: n.module.loader ? async (c) => {
|
|
738
|
+
let u = Ne(
|
|
739
|
+
c.request,
|
|
738
740
|
"X-React-Router-Prerender-Data"
|
|
739
741
|
);
|
|
740
|
-
if (
|
|
741
|
-
let i =
|
|
742
|
-
|
|
743
|
-
let
|
|
742
|
+
if (u != null) {
|
|
743
|
+
let i = u && decodeURI(u);
|
|
744
|
+
z(i, "Missing prerendered data for route");
|
|
745
|
+
let l = new TextEncoder().encode(i), h = new ReadableStream({
|
|
744
746
|
start(y) {
|
|
745
|
-
y.enqueue(
|
|
747
|
+
y.enqueue(l), y.close();
|
|
746
748
|
}
|
|
747
|
-
}), w = (await
|
|
749
|
+
}), w = (await ot(h, global)).value;
|
|
748
750
|
if (w && I in w) {
|
|
749
|
-
let y = w[I],
|
|
750
|
-
throw y.reload ?
|
|
751
|
+
let y = w[I], R = { status: y.status };
|
|
752
|
+
throw y.reload ? it(y.redirect, R) : y.replace ? lt(y.redirect, R) : ut(y.redirect, R);
|
|
751
753
|
} else {
|
|
752
|
-
|
|
754
|
+
z(
|
|
753
755
|
w && n.id in w,
|
|
754
756
|
"Unable to decode prerendered data"
|
|
755
757
|
);
|
|
756
758
|
let y = w[n.id];
|
|
757
|
-
return
|
|
759
|
+
return z(
|
|
758
760
|
"data" in y,
|
|
759
761
|
"Unable to process prerendered data"
|
|
760
762
|
), y.data;
|
|
761
763
|
}
|
|
762
764
|
}
|
|
763
|
-
return await
|
|
765
|
+
return await ye(
|
|
766
|
+
n.module.loader,
|
|
767
|
+
c,
|
|
768
|
+
t
|
|
769
|
+
);
|
|
764
770
|
} : void 0,
|
|
765
|
-
action: n.module.action ? (
|
|
771
|
+
action: n.module.action ? (c) => ye(n.module.action, c, t) : void 0,
|
|
766
772
|
handle: n.module.handle
|
|
767
773
|
};
|
|
768
774
|
return n.index ? {
|
|
@@ -770,7 +776,7 @@ function Oe(e, t, r = "", a = Ue(e)) {
|
|
|
770
776
|
...o
|
|
771
777
|
} : {
|
|
772
778
|
caseSensitive: n.caseSensitive,
|
|
773
|
-
children:
|
|
779
|
+
children: Be(
|
|
774
780
|
e,
|
|
775
781
|
t,
|
|
776
782
|
n.id,
|
|
@@ -780,52 +786,52 @@ function Oe(e, t, r = "", a = Ue(e)) {
|
|
|
780
786
|
};
|
|
781
787
|
});
|
|
782
788
|
}
|
|
783
|
-
function
|
|
784
|
-
return
|
|
789
|
+
function we(e) {
|
|
790
|
+
return G(JSON.stringify(e));
|
|
785
791
|
}
|
|
786
|
-
function
|
|
787
|
-
return
|
|
792
|
+
function se(e, t) {
|
|
793
|
+
return Pt(e, (r) => {
|
|
788
794
|
let a = t.routes[r.route.id];
|
|
789
|
-
return
|
|
795
|
+
return z(a, `Route with id "${r.route.id}" not found in build`), a.module.headers;
|
|
790
796
|
});
|
|
791
797
|
}
|
|
792
|
-
function
|
|
793
|
-
let a = e.errors ? e.matches.findIndex((
|
|
798
|
+
function Pt(e, t, r) {
|
|
799
|
+
let a = e.errors ? e.matches.findIndex((u) => e.errors[u.route.id]) : -1, n = a >= 0 ? e.matches.slice(0, a + 1) : e.matches, o;
|
|
794
800
|
if (a >= 0) {
|
|
795
|
-
let { actionHeaders:
|
|
801
|
+
let { actionHeaders: u, actionData: s, loaderHeaders: i, loaderData: l } = e;
|
|
796
802
|
e.matches.slice(a).some((h) => {
|
|
797
803
|
let p = h.route.id;
|
|
798
|
-
return
|
|
804
|
+
return u[p] && (!s || !s.hasOwnProperty(p)) ? o = u[p] : i[p] && !l.hasOwnProperty(p) && (o = i[p]), o != null;
|
|
799
805
|
});
|
|
800
806
|
}
|
|
801
|
-
const
|
|
802
|
-
return n.reduce((
|
|
803
|
-
let { id:
|
|
804
|
-
if (
|
|
805
|
-
let
|
|
806
|
-
return y &&
|
|
807
|
+
const c = new Headers(r);
|
|
808
|
+
return n.reduce((u, s, i) => {
|
|
809
|
+
let { id: l } = s.route, h = e.loaderHeaders[l] || new Headers(), p = e.actionHeaders[l] || new Headers(), w = o != null && i === n.length - 1, y = w && o !== h && o !== p, R = t(s);
|
|
810
|
+
if (R == null) {
|
|
811
|
+
let g = new Headers(u);
|
|
812
|
+
return y && U(o, g), U(p, g), U(h, g), g;
|
|
807
813
|
}
|
|
808
|
-
let
|
|
809
|
-
typeof
|
|
814
|
+
let f = new Headers(
|
|
815
|
+
typeof R == "function" ? R({
|
|
810
816
|
loaderHeaders: h,
|
|
811
|
-
parentHeaders:
|
|
817
|
+
parentHeaders: u,
|
|
812
818
|
actionHeaders: p,
|
|
813
819
|
errorHeaders: w ? o : void 0
|
|
814
|
-
}) :
|
|
820
|
+
}) : R
|
|
815
821
|
);
|
|
816
|
-
return y &&
|
|
817
|
-
}, new Headers(
|
|
822
|
+
return y && U(o, f), U(p, f), U(h, f), U(u, f), f;
|
|
823
|
+
}, new Headers(c));
|
|
818
824
|
}
|
|
819
|
-
function
|
|
825
|
+
function U(e, t) {
|
|
820
826
|
let r = e.get("Set-Cookie");
|
|
821
827
|
if (r) {
|
|
822
|
-
let a =
|
|
828
|
+
let a = wt.splitCookiesString(r), n = new Set(t.getSetCookie());
|
|
823
829
|
a.forEach((o) => {
|
|
824
830
|
n.has(o) || t.append("Set-Cookie", o);
|
|
825
831
|
});
|
|
826
832
|
}
|
|
827
833
|
}
|
|
828
|
-
function
|
|
834
|
+
function Me(e, t) {
|
|
829
835
|
let r = e.get("origin"), a = null;
|
|
830
836
|
try {
|
|
831
837
|
a = typeof r == "string" && r !== "null" ? new URL(r).host : r;
|
|
@@ -834,15 +840,15 @@ function Ie(e, t) {
|
|
|
834
840
|
"`origin` header is not a valid URL. Aborting the action."
|
|
835
841
|
);
|
|
836
842
|
}
|
|
837
|
-
let n =
|
|
838
|
-
if (a && (!n || a !== n.value) && !
|
|
843
|
+
let n = Lt(e);
|
|
844
|
+
if (a && (!n || a !== n.value) && !Ut(a, t))
|
|
839
845
|
throw n ? new Error(
|
|
840
846
|
`${n.type} header does not match \`origin\` header from a forwarded action request. Aborting the action.`
|
|
841
847
|
) : new Error(
|
|
842
848
|
"`x-forwarded-host` or `host` headers are not provided. One of these is needed to compare the `origin` header from a forwarded action request. Aborting the action."
|
|
843
849
|
);
|
|
844
850
|
}
|
|
845
|
-
function
|
|
851
|
+
function Ft(e, t) {
|
|
846
852
|
const r = e.split("."), a = t.split(".");
|
|
847
853
|
if (a.length < 1 || r.length < a.length)
|
|
848
854
|
return !1;
|
|
@@ -865,12 +871,12 @@ function Tt(e, t) {
|
|
|
865
871
|
}
|
|
866
872
|
return r.length === 0;
|
|
867
873
|
}
|
|
868
|
-
function
|
|
874
|
+
function Ut(e, t = []) {
|
|
869
875
|
return t.some(
|
|
870
|
-
(r) => r && (r === e ||
|
|
876
|
+
(r) => r && (r === e || Ft(e, r))
|
|
871
877
|
);
|
|
872
878
|
}
|
|
873
|
-
function
|
|
879
|
+
function Lt(e) {
|
|
874
880
|
let r = e.get("x-forwarded-host")?.split(",")[0]?.trim(), a = e.get("host");
|
|
875
881
|
return r ? {
|
|
876
882
|
type: "x-forwarded-host",
|
|
@@ -880,74 +886,89 @@ function Pt(e) {
|
|
|
880
886
|
value: a
|
|
881
887
|
} : void 0;
|
|
882
888
|
}
|
|
883
|
-
|
|
884
|
-
|
|
889
|
+
function M(e, t, r) {
|
|
890
|
+
t = t || "/";
|
|
891
|
+
let a = new URL(e.url), n = a.pathname;
|
|
892
|
+
r?.unstable_trailingSlashAwareDataRequests ? n.endsWith("/_.data") ? n = n.replace(/_\.data$/, "") : n = n.replace(/\.data$/, "") : (j(n, t) === "/_root.data" ? n = t : n.endsWith(".data") && (n = n.replace(/\.data$/, "")), j(n, t) !== "/" && n.endsWith("/") && (n = n.slice(0, -1)));
|
|
893
|
+
let o = new URLSearchParams(a.search);
|
|
894
|
+
o.delete("_routes");
|
|
895
|
+
let c = o.toString();
|
|
896
|
+
return c && (c = `?${c}`), {
|
|
897
|
+
pathname: n,
|
|
898
|
+
search: c,
|
|
899
|
+
// No hashes on the server
|
|
900
|
+
hash: ""
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
var $e = /* @__PURE__ */ new Set([
|
|
904
|
+
...ht,
|
|
885
905
|
304
|
|
886
906
|
]);
|
|
887
|
-
async function Nt(e, t, r, a, n, o,
|
|
907
|
+
async function Nt(e, t, r, a, n, o, c) {
|
|
888
908
|
try {
|
|
889
909
|
try {
|
|
890
|
-
|
|
910
|
+
Me(
|
|
891
911
|
a.headers,
|
|
892
912
|
Array.isArray(e.allowedActionOrigins) ? e.allowedActionOrigins : []
|
|
893
913
|
);
|
|
894
914
|
} catch {
|
|
895
915
|
return s(new Error("Bad Request"), 400);
|
|
896
916
|
}
|
|
897
|
-
let
|
|
917
|
+
let l = e.future.unstable_passThroughRequests ? a : new Request(n, {
|
|
898
918
|
method: a.method,
|
|
899
919
|
body: a.body,
|
|
900
920
|
headers: a.headers,
|
|
901
921
|
signal: a.signal,
|
|
902
922
|
...a.body ? { duplex: "half" } : void 0
|
|
903
|
-
}), h = await r.query(
|
|
923
|
+
}), h = await r.query(l, {
|
|
904
924
|
requestContext: o,
|
|
905
925
|
skipLoaderErrorBubbling: !0,
|
|
906
926
|
skipRevalidation: !0,
|
|
907
927
|
generateMiddlewareResponse: e.future.v8_middleware ? async (p) => {
|
|
908
928
|
try {
|
|
909
|
-
let w = await p(
|
|
910
|
-
return
|
|
929
|
+
let w = await p(l);
|
|
930
|
+
return u(w);
|
|
911
931
|
} catch (w) {
|
|
912
932
|
return s(w);
|
|
913
933
|
}
|
|
914
|
-
} : void 0
|
|
934
|
+
} : void 0,
|
|
935
|
+
unstable_normalizePath: (p) => M(p, e.basename, e.future)
|
|
915
936
|
});
|
|
916
|
-
return
|
|
917
|
-
} catch (
|
|
918
|
-
return s(
|
|
937
|
+
return u(h);
|
|
938
|
+
} catch (l) {
|
|
939
|
+
return s(l);
|
|
919
940
|
}
|
|
920
|
-
function l
|
|
921
|
-
return
|
|
941
|
+
function u(l) {
|
|
942
|
+
return L(l) ? l : i(l);
|
|
922
943
|
}
|
|
923
|
-
function s(
|
|
924
|
-
return
|
|
925
|
-
result: { error:
|
|
944
|
+
function s(l, h = 500) {
|
|
945
|
+
return c(l), B(a, e, t, {
|
|
946
|
+
result: { error: l },
|
|
926
947
|
headers: new Headers(),
|
|
927
948
|
status: h
|
|
928
949
|
});
|
|
929
950
|
}
|
|
930
|
-
function i(
|
|
931
|
-
let h =
|
|
932
|
-
if (
|
|
933
|
-
return new Response(null, { status:
|
|
934
|
-
|
|
935
|
-
(!
|
|
936
|
-
}),
|
|
951
|
+
function i(l) {
|
|
952
|
+
let h = se(l, e);
|
|
953
|
+
if (ae(l.statusCode) && h.has("Location"))
|
|
954
|
+
return new Response(null, { status: l.statusCode, headers: h });
|
|
955
|
+
l.errors && (Object.values(l.errors).forEach((w) => {
|
|
956
|
+
(!F(w) || w.error) && c(w);
|
|
957
|
+
}), l.errors = q(l.errors, t));
|
|
937
958
|
let p;
|
|
938
|
-
return
|
|
939
|
-
data: Object.values(
|
|
959
|
+
return l.errors ? p = { error: Object.values(l.errors)[0] } : p = {
|
|
960
|
+
data: Object.values(l.actionData || {})[0]
|
|
940
961
|
}, B(a, e, t, {
|
|
941
962
|
result: p,
|
|
942
963
|
headers: h,
|
|
943
|
-
status:
|
|
964
|
+
status: l.statusCode
|
|
944
965
|
});
|
|
945
966
|
}
|
|
946
967
|
}
|
|
947
|
-
async function
|
|
948
|
-
let
|
|
968
|
+
async function Ot(e, t, r, a, n, o, c) {
|
|
969
|
+
let u = new URL(a.url).searchParams.get("_routes"), s = u ? new Set(u.split(",")) : null;
|
|
949
970
|
try {
|
|
950
|
-
let p = new Request(n, {
|
|
971
|
+
let p = e.future.unstable_passThroughRequests ? a : new Request(n, {
|
|
951
972
|
headers: a.headers,
|
|
952
973
|
signal: a.signal
|
|
953
974
|
}), w = await r.query(p, {
|
|
@@ -956,44 +977,45 @@ async function Ut(e, t, r, a, n, o, f) {
|
|
|
956
977
|
skipLoaderErrorBubbling: !0,
|
|
957
978
|
generateMiddlewareResponse: e.future.v8_middleware ? async (y) => {
|
|
958
979
|
try {
|
|
959
|
-
let
|
|
960
|
-
return i(
|
|
961
|
-
} catch (
|
|
962
|
-
return
|
|
980
|
+
let R = await y(p);
|
|
981
|
+
return i(R);
|
|
982
|
+
} catch (R) {
|
|
983
|
+
return l(R);
|
|
963
984
|
}
|
|
964
|
-
} : void 0
|
|
985
|
+
} : void 0,
|
|
986
|
+
unstable_normalizePath: (y) => M(y, e.basename, e.future)
|
|
965
987
|
});
|
|
966
988
|
return i(w);
|
|
967
989
|
} catch (p) {
|
|
968
|
-
return
|
|
990
|
+
return l(p);
|
|
969
991
|
}
|
|
970
992
|
function i(p) {
|
|
971
|
-
return
|
|
993
|
+
return L(p) ? p : h(p);
|
|
972
994
|
}
|
|
973
|
-
function
|
|
974
|
-
return
|
|
995
|
+
function l(p) {
|
|
996
|
+
return c(p), B(a, e, t, {
|
|
975
997
|
result: { error: p },
|
|
976
998
|
headers: new Headers(),
|
|
977
999
|
status: 500
|
|
978
1000
|
});
|
|
979
1001
|
}
|
|
980
1002
|
function h(p) {
|
|
981
|
-
let w =
|
|
982
|
-
if (
|
|
1003
|
+
let w = se(p, e);
|
|
1004
|
+
if (ae(p.statusCode) && w.has("Location"))
|
|
983
1005
|
return new Response(null, { status: p.statusCode, headers: w });
|
|
984
|
-
p.errors && (Object.values(p.errors).forEach((
|
|
985
|
-
(!
|
|
986
|
-
}), p.errors =
|
|
987
|
-
let y = {},
|
|
1006
|
+
p.errors && (Object.values(p.errors).forEach((f) => {
|
|
1007
|
+
(!F(f) || f.error) && c(f);
|
|
1008
|
+
}), p.errors = q(p.errors, t));
|
|
1009
|
+
let y = {}, R = new Set(
|
|
988
1010
|
p.matches.filter(
|
|
989
|
-
(
|
|
990
|
-
).map((
|
|
1011
|
+
(f) => s ? s.has(f.route.id) : f.route.loader != null
|
|
1012
|
+
).map((f) => f.route.id)
|
|
991
1013
|
);
|
|
992
1014
|
if (p.errors)
|
|
993
|
-
for (let [
|
|
994
|
-
y[
|
|
995
|
-
for (let [
|
|
996
|
-
!(
|
|
1015
|
+
for (let [f, g] of Object.entries(p.errors))
|
|
1016
|
+
y[f] = { error: g };
|
|
1017
|
+
for (let [f, g] of Object.entries(p.loaderData))
|
|
1018
|
+
!(f in y) && R.has(f) && (y[f] = { data: g });
|
|
997
1019
|
return B(a, e, t, {
|
|
998
1020
|
result: y,
|
|
999
1021
|
headers: w,
|
|
@@ -1006,9 +1028,9 @@ function B(e, t, r, {
|
|
|
1006
1028
|
headers: n,
|
|
1007
1029
|
status: o
|
|
1008
1030
|
}) {
|
|
1009
|
-
let
|
|
1010
|
-
return
|
|
1011
|
-
|
|
1031
|
+
let c = new Headers(n);
|
|
1032
|
+
return c.set("X-Remix-Response", "yes"), $e.has(o) ? new Response(null, { status: o, headers: c }) : (c.set("Content-Type", "text/x-script"), c.delete("Content-Length"), new Response(
|
|
1033
|
+
Z(
|
|
1012
1034
|
a,
|
|
1013
1035
|
e.signal,
|
|
1014
1036
|
t.entry.module.streamTimeout,
|
|
@@ -1016,12 +1038,12 @@ function B(e, t, r, {
|
|
|
1016
1038
|
),
|
|
1017
1039
|
{
|
|
1018
1040
|
status: o || 200,
|
|
1019
|
-
headers:
|
|
1041
|
+
headers: c
|
|
1020
1042
|
}
|
|
1021
1043
|
));
|
|
1022
1044
|
}
|
|
1023
|
-
function
|
|
1024
|
-
let n =
|
|
1045
|
+
function ge(e, t, r, a) {
|
|
1046
|
+
let n = It(
|
|
1025
1047
|
e.status,
|
|
1026
1048
|
e.headers,
|
|
1027
1049
|
r.basename
|
|
@@ -1029,12 +1051,12 @@ function we(e, t, r, a) {
|
|
|
1029
1051
|
return o.delete("Location"), o.set("Content-Type", "text/x-script"), B(t, r, a, {
|
|
1030
1052
|
result: t.method === "GET" ? { [I]: n } : n,
|
|
1031
1053
|
headers: o,
|
|
1032
|
-
status:
|
|
1054
|
+
status: Ae
|
|
1033
1055
|
});
|
|
1034
1056
|
}
|
|
1035
|
-
function
|
|
1057
|
+
function It(e, t, r) {
|
|
1036
1058
|
let a = t.get("Location");
|
|
1037
|
-
return r && (a =
|
|
1059
|
+
return r && (a = j(a, r) || a), {
|
|
1038
1060
|
redirect: a,
|
|
1039
1061
|
status: e,
|
|
1040
1062
|
revalidate: (
|
|
@@ -1051,213 +1073,221 @@ function Lt(e, t, r) {
|
|
|
1051
1073
|
replace: t.has("X-Remix-Replace")
|
|
1052
1074
|
};
|
|
1053
1075
|
}
|
|
1054
|
-
function
|
|
1076
|
+
function Z(e, t, r, a) {
|
|
1055
1077
|
let n = new AbortController(), o = setTimeout(
|
|
1056
|
-
() =>
|
|
1078
|
+
() => {
|
|
1079
|
+
n.abort(new Error("Server Timeout")), u();
|
|
1080
|
+
},
|
|
1057
1081
|
typeof r == "number" ? r : 4950
|
|
1058
|
-
),
|
|
1059
|
-
|
|
1082
|
+
), c = () => {
|
|
1083
|
+
n.abort(t.reason), u();
|
|
1084
|
+
};
|
|
1085
|
+
t.addEventListener("abort", c);
|
|
1086
|
+
let u = () => {
|
|
1087
|
+
clearTimeout(o), t.removeEventListener("abort", c);
|
|
1088
|
+
};
|
|
1089
|
+
return pt(e, {
|
|
1060
1090
|
signal: n.signal,
|
|
1061
|
-
onComplete:
|
|
1091
|
+
onComplete: u,
|
|
1062
1092
|
plugins: [
|
|
1063
|
-
(
|
|
1064
|
-
if (
|
|
1065
|
-
let { name:
|
|
1066
|
-
return ["SanitizedError",
|
|
1093
|
+
(s) => {
|
|
1094
|
+
if (s instanceof Error) {
|
|
1095
|
+
let { name: i, message: l, stack: h } = a === "production" ? W(s, a) : s;
|
|
1096
|
+
return ["SanitizedError", i, l, h];
|
|
1067
1097
|
}
|
|
1068
|
-
if (
|
|
1069
|
-
let { data:
|
|
1070
|
-
return ["ErrorResponse",
|
|
1098
|
+
if (s instanceof O) {
|
|
1099
|
+
let { data: i, status: l, statusText: h } = s;
|
|
1100
|
+
return ["ErrorResponse", i, l, h];
|
|
1071
1101
|
}
|
|
1072
|
-
if (
|
|
1073
|
-
return ["SingleFetchRedirect",
|
|
1102
|
+
if (s && typeof s == "object" && I in s)
|
|
1103
|
+
return ["SingleFetchRedirect", s[I]];
|
|
1074
1104
|
}
|
|
1075
1105
|
],
|
|
1076
1106
|
postPlugins: [
|
|
1077
|
-
(
|
|
1078
|
-
if (
|
|
1107
|
+
(s) => {
|
|
1108
|
+
if (s && typeof s == "object")
|
|
1079
1109
|
return [
|
|
1080
1110
|
"SingleFetchClassInstance",
|
|
1081
|
-
Object.fromEntries(Object.entries(
|
|
1111
|
+
Object.fromEntries(Object.entries(s))
|
|
1082
1112
|
];
|
|
1083
1113
|
},
|
|
1084
1114
|
() => ["SingleFetchFallback"]
|
|
1085
1115
|
]
|
|
1086
1116
|
});
|
|
1087
1117
|
}
|
|
1088
|
-
function
|
|
1089
|
-
let r =
|
|
1118
|
+
function Re(e, t) {
|
|
1119
|
+
let r = Ie(e.routes), a = Be(e.routes, e.future), n = Tt(t) ? t : "production", o = et(a, {
|
|
1090
1120
|
basename: e.basename,
|
|
1091
1121
|
unstable_instrumentations: e.entry.module.unstable_instrumentations
|
|
1092
|
-
}),
|
|
1122
|
+
}), c = e.entry.module.handleError || ((s, { request: i }) => {
|
|
1093
1123
|
n !== "test" && !i.signal.aborted && console.error(
|
|
1094
1124
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1095
|
-
|
|
1125
|
+
F(s) && s.error ? s.error : s
|
|
1096
1126
|
);
|
|
1097
|
-
}),
|
|
1098
|
-
let
|
|
1099
|
-
t === "development" &&
|
|
1127
|
+
}), u = async (s, i) => {
|
|
1128
|
+
let l = {}, h, p = (d) => {
|
|
1129
|
+
t === "development" && X()?.processRequestError?.(d), c(d, {
|
|
1100
1130
|
context: h,
|
|
1101
|
-
params:
|
|
1131
|
+
params: l,
|
|
1102
1132
|
request: s
|
|
1103
1133
|
});
|
|
1104
1134
|
};
|
|
1105
1135
|
if (e.future.v8_middleware) {
|
|
1106
1136
|
if (i && !(i instanceof K)) {
|
|
1107
|
-
let
|
|
1137
|
+
let d = new Error(
|
|
1108
1138
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1109
1139
|
);
|
|
1110
|
-
return p(
|
|
1140
|
+
return p(d), V(d, n);
|
|
1111
1141
|
}
|
|
1112
1142
|
h = i || new K();
|
|
1113
1143
|
} else
|
|
1114
1144
|
h = i || {};
|
|
1115
|
-
let w = new URL(s.url), y =
|
|
1116
|
-
|
|
1117
|
-
|
|
1145
|
+
let w = new URL(s.url), y = M(
|
|
1146
|
+
s,
|
|
1147
|
+
e.basename,
|
|
1148
|
+
e.future
|
|
1149
|
+
).pathname, R = Ne(s, "X-React-Router-SPA-Mode") === "yes";
|
|
1118
1150
|
if (!e.ssr) {
|
|
1119
|
-
let
|
|
1120
|
-
if (
|
|
1121
|
-
let S =
|
|
1151
|
+
let d = decodeURI(y);
|
|
1152
|
+
if (e.basename && e.basename !== "/") {
|
|
1153
|
+
let S = j(d, e.basename);
|
|
1122
1154
|
if (S == null)
|
|
1123
|
-
return
|
|
1155
|
+
return c(
|
|
1124
1156
|
new O(
|
|
1125
1157
|
404,
|
|
1126
1158
|
"Not Found",
|
|
1127
|
-
`Refusing to prerender the \`${
|
|
1159
|
+
`Refusing to prerender the \`${d}\` path because it does not start with the basename \`${e.basename}\``
|
|
1128
1160
|
),
|
|
1129
1161
|
{
|
|
1130
1162
|
context: h,
|
|
1131
|
-
params:
|
|
1163
|
+
params: l,
|
|
1132
1164
|
request: s
|
|
1133
1165
|
}
|
|
1134
1166
|
), new Response("Not Found", {
|
|
1135
1167
|
status: 404,
|
|
1136
1168
|
statusText: "Not Found"
|
|
1137
1169
|
});
|
|
1138
|
-
|
|
1170
|
+
d = S;
|
|
1139
1171
|
}
|
|
1140
1172
|
if (e.prerender.length === 0)
|
|
1141
|
-
|
|
1142
|
-
else if (!e.prerender.includes(
|
|
1173
|
+
R = !0;
|
|
1174
|
+
else if (!e.prerender.includes(d) && !e.prerender.includes(d + "/")) {
|
|
1143
1175
|
if (w.pathname.endsWith(".data"))
|
|
1144
|
-
return
|
|
1176
|
+
return c(
|
|
1145
1177
|
new O(
|
|
1146
1178
|
404,
|
|
1147
1179
|
"Not Found",
|
|
1148
|
-
`Refusing to SSR the path \`${
|
|
1180
|
+
`Refusing to SSR the path \`${d}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
|
|
1149
1181
|
),
|
|
1150
1182
|
{
|
|
1151
1183
|
context: h,
|
|
1152
|
-
params:
|
|
1184
|
+
params: l,
|
|
1153
1185
|
request: s
|
|
1154
1186
|
}
|
|
1155
1187
|
), new Response("Not Found", {
|
|
1156
1188
|
status: 404,
|
|
1157
1189
|
statusText: "Not Found"
|
|
1158
1190
|
});
|
|
1159
|
-
|
|
1191
|
+
R = !0;
|
|
1160
1192
|
}
|
|
1161
1193
|
}
|
|
1162
|
-
let
|
|
1194
|
+
let f = dt(
|
|
1163
1195
|
e.routeDiscovery.manifestPath,
|
|
1164
|
-
|
|
1196
|
+
e.basename
|
|
1165
1197
|
);
|
|
1166
|
-
if (w.pathname ===
|
|
1198
|
+
if (w.pathname === f)
|
|
1167
1199
|
try {
|
|
1168
|
-
return await
|
|
1169
|
-
} catch (
|
|
1170
|
-
return p(
|
|
1200
|
+
return await Bt(e, r, w);
|
|
1201
|
+
} catch (d) {
|
|
1202
|
+
return p(d), new Response("Unknown Server Error", { status: 500 });
|
|
1171
1203
|
}
|
|
1172
|
-
let
|
|
1173
|
-
|
|
1174
|
-
let
|
|
1204
|
+
let g = Y(r, y, e.basename);
|
|
1205
|
+
g && g.length > 0 && Object.assign(l, g[0].params);
|
|
1206
|
+
let m;
|
|
1175
1207
|
if (w.pathname.endsWith(".data")) {
|
|
1176
|
-
let
|
|
1177
|
-
R.pathname = g;
|
|
1178
|
-
let S = G(
|
|
1208
|
+
let d = Y(
|
|
1179
1209
|
r,
|
|
1180
|
-
|
|
1210
|
+
y,
|
|
1181
1211
|
e.basename
|
|
1182
1212
|
);
|
|
1183
|
-
|
|
1213
|
+
m = await Mt(
|
|
1184
1214
|
n,
|
|
1185
1215
|
e,
|
|
1186
1216
|
o,
|
|
1187
1217
|
s,
|
|
1188
|
-
|
|
1218
|
+
y,
|
|
1189
1219
|
h,
|
|
1190
1220
|
p
|
|
1191
|
-
),
|
|
1192
|
-
|
|
1221
|
+
), ue(m) && (m = ge(
|
|
1222
|
+
m,
|
|
1193
1223
|
s,
|
|
1194
1224
|
e,
|
|
1195
1225
|
n
|
|
1196
|
-
)), e.entry.module.handleDataRequest && (
|
|
1226
|
+
)), e.entry.module.handleDataRequest && (m = await e.entry.module.handleDataRequest(m, {
|
|
1197
1227
|
context: h,
|
|
1198
|
-
params:
|
|
1228
|
+
params: d ? d[0].params : {},
|
|
1199
1229
|
request: s
|
|
1200
|
-
}),
|
|
1201
|
-
|
|
1230
|
+
}), ue(m) && (m = ge(
|
|
1231
|
+
m,
|
|
1202
1232
|
s,
|
|
1203
1233
|
e,
|
|
1204
1234
|
n
|
|
1205
1235
|
)));
|
|
1206
|
-
} else if (!
|
|
1207
|
-
|
|
1236
|
+
} else if (!R && g && g[g.length - 1].route.module.default == null && g[g.length - 1].route.module.ErrorBoundary == null)
|
|
1237
|
+
m = await zt(
|
|
1208
1238
|
n,
|
|
1209
1239
|
e,
|
|
1210
1240
|
o,
|
|
1211
|
-
|
|
1241
|
+
g.slice(-1)[0].route.id,
|
|
1212
1242
|
s,
|
|
1213
1243
|
h,
|
|
1214
1244
|
p
|
|
1215
1245
|
);
|
|
1216
1246
|
else {
|
|
1217
|
-
let { pathname:
|
|
1218
|
-
e.unstable_getCriticalCss ? S = await e.unstable_getCriticalCss({ pathname:
|
|
1247
|
+
let { pathname: d } = w, S;
|
|
1248
|
+
e.unstable_getCriticalCss ? S = await e.unstable_getCriticalCss({ pathname: d }) : t === "development" && X()?.getCriticalCss && (S = await X()?.getCriticalCss?.(d)), m = await $t(
|
|
1219
1249
|
n,
|
|
1220
1250
|
e,
|
|
1221
1251
|
o,
|
|
1222
1252
|
s,
|
|
1223
1253
|
h,
|
|
1224
1254
|
p,
|
|
1225
|
-
|
|
1255
|
+
R,
|
|
1226
1256
|
S
|
|
1227
1257
|
);
|
|
1228
1258
|
}
|
|
1229
1259
|
return s.method === "HEAD" ? new Response(null, {
|
|
1230
|
-
headers:
|
|
1231
|
-
status:
|
|
1232
|
-
statusText:
|
|
1233
|
-
}) :
|
|
1260
|
+
headers: m.headers,
|
|
1261
|
+
status: m.status,
|
|
1262
|
+
statusText: m.statusText
|
|
1263
|
+
}) : m;
|
|
1234
1264
|
};
|
|
1235
|
-
return e.entry.module.unstable_instrumentations && (
|
|
1236
|
-
|
|
1265
|
+
return e.entry.module.unstable_instrumentations && (u = tt(
|
|
1266
|
+
u,
|
|
1237
1267
|
e.entry.module.unstable_instrumentations.map((s) => s.handler).filter(Boolean)
|
|
1238
1268
|
)), {
|
|
1239
1269
|
routes: r,
|
|
1240
1270
|
dataRoutes: a,
|
|
1241
1271
|
serverMode: n,
|
|
1242
1272
|
staticHandler: o,
|
|
1243
|
-
errorHandler:
|
|
1244
|
-
requestHandler:
|
|
1273
|
+
errorHandler: c,
|
|
1274
|
+
requestHandler: u
|
|
1245
1275
|
};
|
|
1246
1276
|
}
|
|
1247
|
-
var
|
|
1248
|
-
let r, a, n, o,
|
|
1249
|
-
return async function(i,
|
|
1277
|
+
var ur = (e, t) => {
|
|
1278
|
+
let r, a, n, o, c, u;
|
|
1279
|
+
return async function(i, l) {
|
|
1250
1280
|
if (r = typeof e == "function" ? await e() : e, typeof e == "function") {
|
|
1251
|
-
let h =
|
|
1252
|
-
a = h.routes, n = h.serverMode, o = h.staticHandler,
|
|
1253
|
-
} else if (!a || !n || !o || !
|
|
1254
|
-
let h =
|
|
1255
|
-
a = h.routes, n = h.serverMode, o = h.staticHandler,
|
|
1281
|
+
let h = Re(r, t);
|
|
1282
|
+
a = h.routes, n = h.serverMode, o = h.staticHandler, c = h.errorHandler, u = h.requestHandler;
|
|
1283
|
+
} else if (!a || !n || !o || !c || !u) {
|
|
1284
|
+
let h = Re(r, t);
|
|
1285
|
+
a = h.routes, n = h.serverMode, o = h.staticHandler, c = h.errorHandler, u = h.requestHandler;
|
|
1256
1286
|
}
|
|
1257
|
-
return
|
|
1287
|
+
return u(i, l);
|
|
1258
1288
|
};
|
|
1259
1289
|
};
|
|
1260
|
-
async function
|
|
1290
|
+
async function Bt(e, t, r) {
|
|
1261
1291
|
if (e.assets.version !== r.searchParams.get("version"))
|
|
1262
1292
|
return new Response(null, {
|
|
1263
1293
|
status: 204,
|
|
@@ -1268,20 +1298,20 @@ async function Ot(e, t, r) {
|
|
|
1268
1298
|
let a = {};
|
|
1269
1299
|
if (r.searchParams.has("paths")) {
|
|
1270
1300
|
let n = /* @__PURE__ */ new Set();
|
|
1271
|
-
(r.searchParams.get("paths") || "").split(",").filter(Boolean).forEach((
|
|
1272
|
-
|
|
1273
|
-
let s =
|
|
1274
|
-
s.forEach((i,
|
|
1275
|
-
let h = s.slice(0,
|
|
1301
|
+
(r.searchParams.get("paths") || "").split(",").filter(Boolean).forEach((u) => {
|
|
1302
|
+
u.startsWith("/") || (u = `/${u}`);
|
|
1303
|
+
let s = u.split("/").slice(1);
|
|
1304
|
+
s.forEach((i, l) => {
|
|
1305
|
+
let h = s.slice(0, l + 1).join("/");
|
|
1276
1306
|
n.add(`/${h}`);
|
|
1277
1307
|
});
|
|
1278
1308
|
});
|
|
1279
|
-
for (let
|
|
1280
|
-
let s =
|
|
1309
|
+
for (let u of n) {
|
|
1310
|
+
let s = Y(t, u, e.basename);
|
|
1281
1311
|
if (s)
|
|
1282
1312
|
for (let i of s) {
|
|
1283
|
-
let
|
|
1284
|
-
h && (a[
|
|
1313
|
+
let l = i.route.id, h = e.assets.routes[l];
|
|
1314
|
+
h && (a[l] = h);
|
|
1285
1315
|
}
|
|
1286
1316
|
}
|
|
1287
1317
|
return Response.json(a, {
|
|
@@ -1292,78 +1322,80 @@ async function Ot(e, t, r) {
|
|
|
1292
1322
|
}
|
|
1293
1323
|
return new Response("Invalid Request", { status: 400 });
|
|
1294
1324
|
}
|
|
1295
|
-
async function
|
|
1296
|
-
|
|
1325
|
+
async function Mt(e, t, r, a, n, o, c) {
|
|
1326
|
+
let u = new URL(a.url);
|
|
1327
|
+
return u.pathname = n, a.method !== "GET" ? await Nt(
|
|
1297
1328
|
t,
|
|
1298
1329
|
e,
|
|
1299
1330
|
r,
|
|
1300
1331
|
a,
|
|
1301
|
-
|
|
1332
|
+
u,
|
|
1302
1333
|
o,
|
|
1303
|
-
|
|
1304
|
-
) : await
|
|
1334
|
+
c
|
|
1335
|
+
) : await Ot(
|
|
1305
1336
|
t,
|
|
1306
1337
|
e,
|
|
1307
1338
|
r,
|
|
1308
1339
|
a,
|
|
1309
|
-
|
|
1340
|
+
u,
|
|
1310
1341
|
o,
|
|
1311
|
-
|
|
1342
|
+
c
|
|
1312
1343
|
);
|
|
1313
1344
|
}
|
|
1314
|
-
async function
|
|
1345
|
+
async function $t(e, t, r, a, n, o, c, u) {
|
|
1315
1346
|
try {
|
|
1316
1347
|
if (a.method === "POST")
|
|
1317
1348
|
try {
|
|
1318
|
-
|
|
1349
|
+
Me(
|
|
1319
1350
|
a.headers,
|
|
1320
1351
|
Array.isArray(t.allowedActionOrigins) ? t.allowedActionOrigins : []
|
|
1321
1352
|
);
|
|
1322
|
-
} catch (
|
|
1323
|
-
return o(
|
|
1353
|
+
} catch (l) {
|
|
1354
|
+
return o(l), new Response("Bad Request", { status: 400 });
|
|
1324
1355
|
}
|
|
1325
1356
|
let i = await r.query(a, {
|
|
1326
1357
|
requestContext: n,
|
|
1327
|
-
generateMiddlewareResponse: t.future.v8_middleware ? async (
|
|
1358
|
+
generateMiddlewareResponse: t.future.v8_middleware ? async (l) => {
|
|
1328
1359
|
try {
|
|
1329
|
-
let h = await
|
|
1330
|
-
return
|
|
1360
|
+
let h = await l(a);
|
|
1361
|
+
return L(h) || (h = await s(h, c)), h;
|
|
1331
1362
|
} catch (h) {
|
|
1332
1363
|
return o(h), new Response(null, { status: 500 });
|
|
1333
1364
|
}
|
|
1334
|
-
} : void 0
|
|
1365
|
+
} : void 0,
|
|
1366
|
+
unstable_normalizePath: (l) => M(l, t.basename, t.future)
|
|
1335
1367
|
});
|
|
1336
|
-
return
|
|
1368
|
+
return L(i) || (i = await s(i, c)), i;
|
|
1337
1369
|
} catch (i) {
|
|
1338
1370
|
return o(i), new Response(null, { status: 500 });
|
|
1339
1371
|
}
|
|
1340
|
-
async function s(i,
|
|
1341
|
-
let h =
|
|
1342
|
-
if (
|
|
1372
|
+
async function s(i, l) {
|
|
1373
|
+
let h = se(i, t);
|
|
1374
|
+
if ($e.has(i.statusCode))
|
|
1343
1375
|
return new Response(null, { status: i.statusCode, headers: h });
|
|
1344
|
-
i.errors && (Object.values(i.errors).forEach((
|
|
1345
|
-
(!
|
|
1346
|
-
}), i.errors =
|
|
1376
|
+
i.errors && (Object.values(i.errors).forEach((f) => {
|
|
1377
|
+
(!F(f) || f.error) && o(f);
|
|
1378
|
+
}), i.errors = q(i.errors, e));
|
|
1347
1379
|
let p = {
|
|
1348
1380
|
loaderData: i.loaderData,
|
|
1349
1381
|
actionData: i.actionData,
|
|
1350
|
-
errors:
|
|
1382
|
+
errors: me(i.errors, e)
|
|
1351
1383
|
}, w = {
|
|
1352
1384
|
basename: t.basename,
|
|
1353
1385
|
future: t.future,
|
|
1354
1386
|
routeDiscovery: t.routeDiscovery,
|
|
1355
1387
|
ssr: t.ssr,
|
|
1356
|
-
isSpaMode:
|
|
1388
|
+
isSpaMode: l
|
|
1357
1389
|
}, y = {
|
|
1358
1390
|
manifest: t.assets,
|
|
1359
|
-
routeModules:
|
|
1391
|
+
routeModules: kt(t.routes),
|
|
1360
1392
|
staticHandlerContext: i,
|
|
1361
|
-
criticalCss:
|
|
1362
|
-
serverHandoffString:
|
|
1393
|
+
criticalCss: u,
|
|
1394
|
+
serverHandoffString: we({
|
|
1363
1395
|
...w,
|
|
1364
|
-
criticalCss:
|
|
1396
|
+
criticalCss: u
|
|
1365
1397
|
}),
|
|
1366
|
-
serverHandoffStream:
|
|
1398
|
+
serverHandoffStream: Z(
|
|
1367
1399
|
p,
|
|
1368
1400
|
a.signal,
|
|
1369
1401
|
t.entry.module.streamTimeout,
|
|
@@ -1373,45 +1405,45 @@ async function Bt(e, t, r, a, n, o, f, l) {
|
|
|
1373
1405
|
future: t.future,
|
|
1374
1406
|
ssr: t.ssr,
|
|
1375
1407
|
routeDiscovery: t.routeDiscovery,
|
|
1376
|
-
isSpaMode:
|
|
1377
|
-
serializeError: (
|
|
1378
|
-
},
|
|
1408
|
+
isSpaMode: l,
|
|
1409
|
+
serializeError: (f) => Ue(f, e)
|
|
1410
|
+
}, R = t.entry.module.default;
|
|
1379
1411
|
try {
|
|
1380
|
-
return await
|
|
1412
|
+
return await R(
|
|
1381
1413
|
a,
|
|
1382
1414
|
i.statusCode,
|
|
1383
1415
|
h,
|
|
1384
1416
|
y,
|
|
1385
1417
|
n
|
|
1386
1418
|
);
|
|
1387
|
-
} catch (
|
|
1388
|
-
o(
|
|
1389
|
-
let
|
|
1390
|
-
if (
|
|
1419
|
+
} catch (f) {
|
|
1420
|
+
o(f);
|
|
1421
|
+
let g = f;
|
|
1422
|
+
if (L(f))
|
|
1391
1423
|
try {
|
|
1392
|
-
let d = await
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1424
|
+
let d = await qt(f);
|
|
1425
|
+
g = new O(
|
|
1426
|
+
f.status,
|
|
1427
|
+
f.statusText,
|
|
1396
1428
|
d
|
|
1397
1429
|
);
|
|
1398
1430
|
} catch {
|
|
1399
1431
|
}
|
|
1400
|
-
i =
|
|
1432
|
+
i = ft(
|
|
1401
1433
|
r.dataRoutes,
|
|
1402
1434
|
i,
|
|
1403
|
-
|
|
1404
|
-
), i.errors && (i.errors =
|
|
1435
|
+
g
|
|
1436
|
+
), i.errors && (i.errors = q(i.errors, e));
|
|
1405
1437
|
let m = {
|
|
1406
1438
|
loaderData: i.loaderData,
|
|
1407
1439
|
actionData: i.actionData,
|
|
1408
|
-
errors:
|
|
1440
|
+
errors: me(i.errors, e)
|
|
1409
1441
|
};
|
|
1410
1442
|
y = {
|
|
1411
1443
|
...y,
|
|
1412
1444
|
staticHandlerContext: i,
|
|
1413
|
-
serverHandoffString:
|
|
1414
|
-
serverHandoffStream:
|
|
1445
|
+
serverHandoffString: we(w),
|
|
1446
|
+
serverHandoffStream: Z(
|
|
1415
1447
|
m,
|
|
1416
1448
|
a.signal,
|
|
1417
1449
|
t.entry.module.streamTimeout,
|
|
@@ -1420,7 +1452,7 @@ async function Bt(e, t, r, a, n, o, f, l) {
|
|
|
1420
1452
|
renderMeta: {}
|
|
1421
1453
|
};
|
|
1422
1454
|
try {
|
|
1423
|
-
return await
|
|
1455
|
+
return await R(
|
|
1424
1456
|
a,
|
|
1425
1457
|
i.statusCode,
|
|
1426
1458
|
h,
|
|
@@ -1428,49 +1460,50 @@ async function Bt(e, t, r, a, n, o, f, l) {
|
|
|
1428
1460
|
n
|
|
1429
1461
|
);
|
|
1430
1462
|
} catch (d) {
|
|
1431
|
-
return o(d),
|
|
1463
|
+
return o(d), V(d, e);
|
|
1432
1464
|
}
|
|
1433
1465
|
}
|
|
1434
1466
|
}
|
|
1435
1467
|
}
|
|
1436
|
-
async function
|
|
1468
|
+
async function zt(e, t, r, a, n, o, c) {
|
|
1437
1469
|
try {
|
|
1438
1470
|
let i = await r.queryRoute(n, {
|
|
1439
1471
|
routeId: a,
|
|
1440
1472
|
requestContext: o,
|
|
1441
|
-
generateMiddlewareResponse: t.future.v8_middleware ? async (
|
|
1473
|
+
generateMiddlewareResponse: t.future.v8_middleware ? async (l) => {
|
|
1442
1474
|
try {
|
|
1443
|
-
let h = await
|
|
1444
|
-
return
|
|
1475
|
+
let h = await l(n);
|
|
1476
|
+
return u(h);
|
|
1445
1477
|
} catch (h) {
|
|
1446
1478
|
return s(h);
|
|
1447
1479
|
}
|
|
1448
|
-
} : void 0
|
|
1480
|
+
} : void 0,
|
|
1481
|
+
unstable_normalizePath: (l) => M(l, t.basename, t.future)
|
|
1449
1482
|
});
|
|
1450
|
-
return
|
|
1483
|
+
return u(i);
|
|
1451
1484
|
} catch (i) {
|
|
1452
1485
|
return s(i);
|
|
1453
1486
|
}
|
|
1454
|
-
function
|
|
1455
|
-
return
|
|
1487
|
+
function u(i) {
|
|
1488
|
+
return L(i) ? i : typeof i == "string" ? new Response(i) : Response.json(i);
|
|
1456
1489
|
}
|
|
1457
1490
|
function s(i) {
|
|
1458
|
-
if (
|
|
1491
|
+
if (L(i))
|
|
1459
1492
|
return i;
|
|
1460
|
-
if (
|
|
1461
|
-
return
|
|
1493
|
+
if (F(i))
|
|
1494
|
+
return c(i), jt(i, e);
|
|
1462
1495
|
if (i instanceof Error && i.message === "Expected a response from queryRoute") {
|
|
1463
|
-
let
|
|
1496
|
+
let l = new Error(
|
|
1464
1497
|
"Expected a Response to be returned from resource route handler"
|
|
1465
1498
|
);
|
|
1466
|
-
return
|
|
1499
|
+
return c(l), V(l, e);
|
|
1467
1500
|
}
|
|
1468
|
-
return
|
|
1501
|
+
return c(i), V(i, e);
|
|
1469
1502
|
}
|
|
1470
1503
|
}
|
|
1471
|
-
function
|
|
1504
|
+
function jt(e, t) {
|
|
1472
1505
|
return Response.json(
|
|
1473
|
-
|
|
1506
|
+
Ue(
|
|
1474
1507
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1475
1508
|
e.error || new Error("Unexpected Server Error"),
|
|
1476
1509
|
t
|
|
@@ -1481,7 +1514,7 @@ function $t(e, t) {
|
|
|
1481
1514
|
}
|
|
1482
1515
|
);
|
|
1483
1516
|
}
|
|
1484
|
-
function
|
|
1517
|
+
function V(e, t) {
|
|
1485
1518
|
let r = "Unexpected Server Error";
|
|
1486
1519
|
return t !== "production" && (r += `
|
|
1487
1520
|
|
|
@@ -1492,14 +1525,14 @@ ${String(e)}`), new Response(r, {
|
|
|
1492
1525
|
}
|
|
1493
1526
|
});
|
|
1494
1527
|
}
|
|
1495
|
-
function
|
|
1528
|
+
function qt(e) {
|
|
1496
1529
|
let t = e.headers.get("Content-Type");
|
|
1497
1530
|
return t && /\bapplication\/json\b/.test(t) ? e.body == null ? null : e.json() : e.text();
|
|
1498
1531
|
}
|
|
1499
|
-
function
|
|
1532
|
+
function J(e) {
|
|
1500
1533
|
return `__flash_${e}__`;
|
|
1501
1534
|
}
|
|
1502
|
-
var
|
|
1535
|
+
var ze = (e = {}, t = "") => {
|
|
1503
1536
|
let r = new Map(Object.entries(e));
|
|
1504
1537
|
return {
|
|
1505
1538
|
get id() {
|
|
@@ -1509,11 +1542,11 @@ var Me = (e = {}, t = "") => {
|
|
|
1509
1542
|
return Object.fromEntries(r);
|
|
1510
1543
|
},
|
|
1511
1544
|
has(a) {
|
|
1512
|
-
return r.has(a) || r.has(
|
|
1545
|
+
return r.has(a) || r.has(J(a));
|
|
1513
1546
|
},
|
|
1514
1547
|
get(a) {
|
|
1515
1548
|
if (r.has(a)) return r.get(a);
|
|
1516
|
-
let n =
|
|
1549
|
+
let n = J(a);
|
|
1517
1550
|
if (r.has(n)) {
|
|
1518
1551
|
let o = r.get(n);
|
|
1519
1552
|
return r.delete(n), o;
|
|
@@ -1523,50 +1556,50 @@ var Me = (e = {}, t = "") => {
|
|
|
1523
1556
|
r.set(a, n);
|
|
1524
1557
|
},
|
|
1525
1558
|
flash(a, n) {
|
|
1526
|
-
r.set(
|
|
1559
|
+
r.set(J(a), n);
|
|
1527
1560
|
},
|
|
1528
1561
|
unset(a) {
|
|
1529
1562
|
r.delete(a);
|
|
1530
1563
|
}
|
|
1531
1564
|
};
|
|
1532
|
-
},
|
|
1533
|
-
function
|
|
1565
|
+
}, dr = (e) => e != null && typeof e.id == "string" && typeof e.data < "u" && typeof e.has == "function" && typeof e.get == "function" && typeof e.set == "function" && typeof e.flash == "function" && typeof e.unset == "function";
|
|
1566
|
+
function Vt({
|
|
1534
1567
|
cookie: e,
|
|
1535
1568
|
createData: t,
|
|
1536
1569
|
readData: r,
|
|
1537
1570
|
updateData: a,
|
|
1538
1571
|
deleteData: n
|
|
1539
1572
|
}) {
|
|
1540
|
-
let o =
|
|
1541
|
-
return
|
|
1542
|
-
async getSession(
|
|
1543
|
-
let s =
|
|
1544
|
-
return
|
|
1573
|
+
let o = Fe(e) ? e : Pe(e?.name || "__session", e);
|
|
1574
|
+
return je(o), {
|
|
1575
|
+
async getSession(c, u) {
|
|
1576
|
+
let s = c && await o.parse(c, u), i = s && await r(s);
|
|
1577
|
+
return ze(i || {}, s || "");
|
|
1545
1578
|
},
|
|
1546
|
-
async commitSession(
|
|
1547
|
-
let { id: s, data: i } =
|
|
1548
|
-
return s ? await a(s, i,
|
|
1579
|
+
async commitSession(c, u) {
|
|
1580
|
+
let { id: s, data: i } = c, l = u?.maxAge != null ? new Date(Date.now() + u.maxAge * 1e3) : u?.expires != null ? u.expires : o.expires;
|
|
1581
|
+
return s ? await a(s, i, l) : s = await t(i, l), o.serialize(s, u);
|
|
1549
1582
|
},
|
|
1550
|
-
async destroySession(
|
|
1551
|
-
return await n(
|
|
1552
|
-
...
|
|
1583
|
+
async destroySession(c, u) {
|
|
1584
|
+
return await n(c.id), o.serialize("", {
|
|
1585
|
+
...u,
|
|
1553
1586
|
maxAge: void 0,
|
|
1554
1587
|
expires: /* @__PURE__ */ new Date(0)
|
|
1555
1588
|
});
|
|
1556
1589
|
}
|
|
1557
1590
|
};
|
|
1558
1591
|
}
|
|
1559
|
-
function
|
|
1560
|
-
|
|
1592
|
+
function je(e) {
|
|
1593
|
+
Te(
|
|
1561
1594
|
e.isSigned,
|
|
1562
1595
|
`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
|
|
1563
1596
|
);
|
|
1564
1597
|
}
|
|
1565
|
-
function
|
|
1566
|
-
let t =
|
|
1567
|
-
return
|
|
1598
|
+
function cr({ cookie: e } = {}) {
|
|
1599
|
+
let t = Fe(e) ? e : Pe(e?.name || "__session", e);
|
|
1600
|
+
return je(t), {
|
|
1568
1601
|
async getSession(r, a) {
|
|
1569
|
-
return
|
|
1602
|
+
return ze(
|
|
1570
1603
|
r && await t.parse(r, a) || {}
|
|
1571
1604
|
);
|
|
1572
1605
|
},
|
|
@@ -1587,9 +1620,9 @@ function ur({ cookie: e } = {}) {
|
|
|
1587
1620
|
}
|
|
1588
1621
|
};
|
|
1589
1622
|
}
|
|
1590
|
-
function
|
|
1623
|
+
function fr({ cookie: e } = {}) {
|
|
1591
1624
|
let t = /* @__PURE__ */ new Map();
|
|
1592
|
-
return
|
|
1625
|
+
return Vt({
|
|
1593
1626
|
cookie: e,
|
|
1594
1627
|
async createData(r, a) {
|
|
1595
1628
|
let n = Math.random().toString(36).substring(2, 10);
|
|
@@ -1612,13 +1645,13 @@ function dr({ cookie: e } = {}) {
|
|
|
1612
1645
|
}
|
|
1613
1646
|
});
|
|
1614
1647
|
}
|
|
1615
|
-
function
|
|
1616
|
-
let r = t[0], a =
|
|
1648
|
+
function hr(e, ...t) {
|
|
1649
|
+
let r = t[0], a = Wt(e).replace(
|
|
1617
1650
|
/\/:([\w-]+)(\?)?/g,
|
|
1618
1651
|
// same regex as in .\router\utils.ts: compilePath().
|
|
1619
|
-
(n, o,
|
|
1620
|
-
const
|
|
1621
|
-
if (
|
|
1652
|
+
(n, o, c) => {
|
|
1653
|
+
const u = c === void 0, s = r?.[o];
|
|
1654
|
+
if (u && s === void 0)
|
|
1622
1655
|
throw new Error(
|
|
1623
1656
|
`Path '${e}' requires param '${o}' but it was not provided`
|
|
1624
1657
|
);
|
|
@@ -1631,51 +1664,51 @@ function cr(e, ...t) {
|
|
|
1631
1664
|
}
|
|
1632
1665
|
return a || "/";
|
|
1633
1666
|
}
|
|
1634
|
-
function
|
|
1667
|
+
function Wt(e) {
|
|
1635
1668
|
let t = e.length - 1, r = e[t];
|
|
1636
1669
|
if (r !== "*" && r !== "/") return e;
|
|
1637
1670
|
for (t--; t >= 0 && e[t] === "/"; t--)
|
|
1638
1671
|
;
|
|
1639
1672
|
return e.slice(0, t + 1);
|
|
1640
1673
|
}
|
|
1641
|
-
var
|
|
1642
|
-
function
|
|
1674
|
+
var ee = new TextEncoder(), Se = "</body></html>";
|
|
1675
|
+
function ve(e) {
|
|
1643
1676
|
let t = new TextDecoder(), r, a = new Promise(
|
|
1644
1677
|
(s) => r = s
|
|
1645
|
-
), n = !1, o = [],
|
|
1646
|
-
function
|
|
1678
|
+
), n = !1, o = [], c = null;
|
|
1679
|
+
function u(s) {
|
|
1647
1680
|
for (let i of o) {
|
|
1648
|
-
let
|
|
1649
|
-
|
|
1681
|
+
let l = t.decode(i, { stream: !0 });
|
|
1682
|
+
l.endsWith(Se) && (l = l.slice(0, -Se.length)), s.enqueue(ee.encode(l));
|
|
1650
1683
|
}
|
|
1651
|
-
o.length = 0,
|
|
1684
|
+
o.length = 0, c = null;
|
|
1652
1685
|
}
|
|
1653
1686
|
return new TransformStream({
|
|
1654
1687
|
transform(s, i) {
|
|
1655
|
-
o.push(s), !
|
|
1656
|
-
|
|
1688
|
+
o.push(s), !c && (c = setTimeout(async () => {
|
|
1689
|
+
u(i), n || (n = !0, Xt(e, i).catch((l) => i.error(l)).then(r));
|
|
1657
1690
|
}, 0));
|
|
1658
1691
|
},
|
|
1659
1692
|
async flush(s) {
|
|
1660
|
-
await a,
|
|
1693
|
+
await a, c && (clearTimeout(c), u(s)), s.enqueue(ee.encode("</body></html>"));
|
|
1661
1694
|
}
|
|
1662
1695
|
});
|
|
1663
1696
|
}
|
|
1664
|
-
async function
|
|
1697
|
+
async function Xt(e, t) {
|
|
1665
1698
|
let r = new TextDecoder("utf-8", { fatal: !0 });
|
|
1666
1699
|
const a = e.getReader();
|
|
1667
1700
|
try {
|
|
1668
1701
|
let o;
|
|
1669
1702
|
for (; (o = await a.read()) && !o.done; ) {
|
|
1670
|
-
const
|
|
1703
|
+
const c = o.value;
|
|
1671
1704
|
try {
|
|
1672
|
-
|
|
1673
|
-
JSON.stringify(r.decode(
|
|
1705
|
+
Q(
|
|
1706
|
+
JSON.stringify(r.decode(c, { stream: !0 })),
|
|
1674
1707
|
t
|
|
1675
1708
|
);
|
|
1676
1709
|
} catch {
|
|
1677
|
-
let s = JSON.stringify(btoa(String.fromCodePoint(...
|
|
1678
|
-
|
|
1710
|
+
let s = JSON.stringify(btoa(String.fromCodePoint(...c)));
|
|
1711
|
+
Q(
|
|
1679
1712
|
`Uint8Array.from(atob(${s}), m => m.codePointAt(0))`,
|
|
1680
1713
|
t
|
|
1681
1714
|
);
|
|
@@ -1685,21 +1718,21 @@ async function Vt(e, t) {
|
|
|
1685
1718
|
a.releaseLock();
|
|
1686
1719
|
}
|
|
1687
1720
|
let n = r.decode();
|
|
1688
|
-
n.length &&
|
|
1721
|
+
n.length && Q(JSON.stringify(n), t);
|
|
1689
1722
|
}
|
|
1690
|
-
function
|
|
1723
|
+
function Q(e, t) {
|
|
1691
1724
|
t.enqueue(
|
|
1692
|
-
|
|
1693
|
-
`<script>${
|
|
1725
|
+
ee.encode(
|
|
1726
|
+
`<script>${Jt(
|
|
1694
1727
|
`(self.__FLIGHT_DATA||=[]).push(${e})`
|
|
1695
1728
|
)}<\/script>`
|
|
1696
1729
|
)
|
|
1697
1730
|
);
|
|
1698
1731
|
}
|
|
1699
|
-
function
|
|
1732
|
+
function Jt(e) {
|
|
1700
1733
|
return e.replace(/<!--/g, "<\\!--").replace(/<\/(script)/gi, "</\\$1");
|
|
1701
1734
|
}
|
|
1702
|
-
var
|
|
1735
|
+
var Qt = class extends A.Component {
|
|
1703
1736
|
constructor(e) {
|
|
1704
1737
|
super(e), this.state = { error: null, location: e.location };
|
|
1705
1738
|
}
|
|
@@ -1711,7 +1744,7 @@ var Xt = class extends A.Component {
|
|
|
1711
1744
|
}
|
|
1712
1745
|
render() {
|
|
1713
1746
|
return this.state.error ? /* @__PURE__ */ A.createElement(
|
|
1714
|
-
|
|
1747
|
+
qe,
|
|
1715
1748
|
{
|
|
1716
1749
|
error: this.state.error,
|
|
1717
1750
|
renderAppShell: !0
|
|
@@ -1719,7 +1752,7 @@ var Xt = class extends A.Component {
|
|
|
1719
1752
|
) : this.props.children;
|
|
1720
1753
|
}
|
|
1721
1754
|
};
|
|
1722
|
-
function
|
|
1755
|
+
function Ee({
|
|
1723
1756
|
renderAppShell: e,
|
|
1724
1757
|
title: t,
|
|
1725
1758
|
children: r
|
|
@@ -1732,7 +1765,7 @@ function ve({
|
|
|
1732
1765
|
}
|
|
1733
1766
|
), /* @__PURE__ */ A.createElement("title", null, t)), /* @__PURE__ */ A.createElement("body", null, /* @__PURE__ */ A.createElement("main", { style: { fontFamily: "system-ui, sans-serif", padding: "2rem" } }, r))) : r;
|
|
1734
1767
|
}
|
|
1735
|
-
function
|
|
1768
|
+
function qe({
|
|
1736
1769
|
error: e,
|
|
1737
1770
|
renderAppShell: t
|
|
1738
1771
|
}) {
|
|
@@ -1749,9 +1782,9 @@ function je({
|
|
|
1749
1782
|
}
|
|
1750
1783
|
}
|
|
1751
1784
|
);
|
|
1752
|
-
if (
|
|
1785
|
+
if (F(e))
|
|
1753
1786
|
return /* @__PURE__ */ A.createElement(
|
|
1754
|
-
|
|
1787
|
+
Ee,
|
|
1755
1788
|
{
|
|
1756
1789
|
renderAppShell: t,
|
|
1757
1790
|
title: "Unhandled Thrown Response!"
|
|
@@ -1766,7 +1799,7 @@ function je({
|
|
|
1766
1799
|
let n = e == null ? "Unknown Error" : typeof e == "object" && "toString" in e ? e.toString() : JSON.stringify(e);
|
|
1767
1800
|
a = new Error(n);
|
|
1768
1801
|
}
|
|
1769
|
-
return /* @__PURE__ */ A.createElement(
|
|
1802
|
+
return /* @__PURE__ */ A.createElement(Ee, { renderAppShell: t, title: "Application Error!" }, /* @__PURE__ */ A.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ A.createElement(
|
|
1770
1803
|
"pre",
|
|
1771
1804
|
{
|
|
1772
1805
|
style: {
|
|
@@ -1779,42 +1812,42 @@ function je({
|
|
|
1779
1812
|
a.stack
|
|
1780
1813
|
), r);
|
|
1781
1814
|
}
|
|
1782
|
-
function
|
|
1815
|
+
function pr({
|
|
1783
1816
|
hasRootLayout: e
|
|
1784
1817
|
}) {
|
|
1785
|
-
let t =
|
|
1818
|
+
let t = Qe();
|
|
1786
1819
|
if (e === void 0)
|
|
1787
1820
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1788
1821
|
return /* @__PURE__ */ A.createElement(
|
|
1789
|
-
|
|
1822
|
+
qe,
|
|
1790
1823
|
{
|
|
1791
1824
|
renderAppShell: !e,
|
|
1792
1825
|
error: t
|
|
1793
1826
|
}
|
|
1794
1827
|
);
|
|
1795
1828
|
}
|
|
1796
|
-
function
|
|
1829
|
+
function Kt(e) {
|
|
1797
1830
|
const t = {};
|
|
1798
1831
|
for (const r of e.matches)
|
|
1799
|
-
|
|
1832
|
+
Gt(t, r);
|
|
1800
1833
|
return t;
|
|
1801
1834
|
}
|
|
1802
|
-
function
|
|
1835
|
+
function Gt(e, t) {
|
|
1803
1836
|
t = Array.isArray(t) ? t : [t];
|
|
1804
1837
|
for (const r of t)
|
|
1805
1838
|
e[r.id] = {
|
|
1806
1839
|
links: r.links,
|
|
1807
1840
|
meta: r.meta,
|
|
1808
|
-
default:
|
|
1841
|
+
default: Yt
|
|
1809
1842
|
};
|
|
1810
1843
|
}
|
|
1811
|
-
var
|
|
1812
|
-
function
|
|
1813
|
-
if (
|
|
1814
|
-
return
|
|
1844
|
+
var Yt = () => null, Ce = "/__manifest", Zt = "use", be = k[Zt];
|
|
1845
|
+
function er(e) {
|
|
1846
|
+
if (be)
|
|
1847
|
+
return be(e);
|
|
1815
1848
|
throw new Error("React Router v7 requires React 19+ for RSC features.");
|
|
1816
1849
|
}
|
|
1817
|
-
async function
|
|
1850
|
+
async function mr({
|
|
1818
1851
|
request: e,
|
|
1819
1852
|
serverResponse: t,
|
|
1820
1853
|
createFromReadableStream: r,
|
|
@@ -1822,23 +1855,23 @@ async function hr({
|
|
|
1822
1855
|
hydrate: n = !0
|
|
1823
1856
|
}) {
|
|
1824
1857
|
const o = new URL(e.url);
|
|
1825
|
-
if (
|
|
1858
|
+
if (tr(o) || rr(o) || e.headers.has("rsc-action-id") || t.headers.get("React-Router-Resource") === "true")
|
|
1826
1859
|
return t;
|
|
1827
1860
|
if (!t.body)
|
|
1828
1861
|
throw new Error("Missing body in server response");
|
|
1829
1862
|
const s = t.clone();
|
|
1830
1863
|
let i = null;
|
|
1831
1864
|
n && (i = t.clone());
|
|
1832
|
-
const
|
|
1865
|
+
const l = t.body;
|
|
1833
1866
|
let h, p = [];
|
|
1834
1867
|
const w = () => h ? new ReadableStream({
|
|
1835
1868
|
start(m) {
|
|
1836
1869
|
h.forEach((d) => m.enqueue(d)), p.push(m);
|
|
1837
1870
|
}
|
|
1838
|
-
}) : (h = [],
|
|
1871
|
+
}) : (h = [], l.pipeThrough(
|
|
1839
1872
|
new TransformStream({
|
|
1840
1873
|
transform(m, d) {
|
|
1841
|
-
h.push(m), d.enqueue(m), p.forEach((
|
|
1874
|
+
h.push(m), d.enqueue(m), p.forEach((S) => S.enqueue(m));
|
|
1842
1875
|
},
|
|
1843
1876
|
flush() {
|
|
1844
1877
|
p.forEach((m) => m.close()), p = [];
|
|
@@ -1846,7 +1879,7 @@ async function hr({
|
|
|
1846
1879
|
})
|
|
1847
1880
|
));
|
|
1848
1881
|
let y = null;
|
|
1849
|
-
const
|
|
1882
|
+
const R = () => {
|
|
1850
1883
|
const m = Promise.resolve(
|
|
1851
1884
|
r(w())
|
|
1852
1885
|
);
|
|
@@ -1868,165 +1901,165 @@ async function hr({
|
|
|
1868
1901
|
}
|
|
1869
1902
|
});
|
|
1870
1903
|
};
|
|
1871
|
-
let
|
|
1904
|
+
let f, g;
|
|
1872
1905
|
try {
|
|
1873
1906
|
if (!s.body)
|
|
1874
1907
|
throw new Error("Failed to clone server response");
|
|
1875
1908
|
const m = await r(
|
|
1876
1909
|
s.body
|
|
1877
1910
|
);
|
|
1878
|
-
if (t.status ===
|
|
1879
|
-
const
|
|
1880
|
-
return
|
|
1881
|
-
headers:
|
|
1911
|
+
if (t.status === Ae && m.type === "redirect") {
|
|
1912
|
+
const _ = new Headers(t.headers);
|
|
1913
|
+
return _.delete("Content-Encoding"), _.delete("Content-Length"), _.delete("Content-Type"), _.delete("X-Remix-Response"), _.set("Location", m.location), new Response(i?.body || "", {
|
|
1914
|
+
headers: _,
|
|
1882
1915
|
status: m.status,
|
|
1883
1916
|
statusText: t.statusText
|
|
1884
1917
|
});
|
|
1885
1918
|
}
|
|
1886
|
-
let d = new Headers(),
|
|
1887
|
-
onError(
|
|
1888
|
-
if (typeof
|
|
1889
|
-
if (
|
|
1890
|
-
return
|
|
1891
|
-
let
|
|
1892
|
-
if (
|
|
1893
|
-
return
|
|
1919
|
+
let d = new Headers(), S = t.status, C = t.statusText, b = await a(R, {
|
|
1920
|
+
onError(_) {
|
|
1921
|
+
if (typeof _ == "object" && _ && "digest" in _ && typeof _.digest == "string") {
|
|
1922
|
+
if (f = ie(_.digest), f)
|
|
1923
|
+
return _.digest;
|
|
1924
|
+
let E = le(_.digest);
|
|
1925
|
+
if (E)
|
|
1926
|
+
return g = E, S = E.status, C = E.statusText, _.digest;
|
|
1894
1927
|
}
|
|
1895
1928
|
},
|
|
1896
|
-
onHeaders(
|
|
1897
|
-
for (const [
|
|
1898
|
-
d.append(
|
|
1929
|
+
onHeaders(_) {
|
|
1930
|
+
for (const [E, T] of _)
|
|
1931
|
+
d.append(E, T);
|
|
1899
1932
|
}
|
|
1900
1933
|
});
|
|
1901
|
-
const
|
|
1902
|
-
for (const [
|
|
1903
|
-
|
|
1904
|
-
if (
|
|
1905
|
-
return
|
|
1906
|
-
status:
|
|
1907
|
-
headers:
|
|
1934
|
+
const v = new Headers(d);
|
|
1935
|
+
for (const [_, E] of t.headers)
|
|
1936
|
+
v.append(_, E);
|
|
1937
|
+
if (v.set("Content-Type", "text/html; charset=utf-8"), f)
|
|
1938
|
+
return v.set("Location", f.location), new Response(b, {
|
|
1939
|
+
status: f.status,
|
|
1940
|
+
headers: v
|
|
1908
1941
|
});
|
|
1909
|
-
const
|
|
1910
|
-
flush(
|
|
1911
|
-
|
|
1942
|
+
const x = new TransformStream({
|
|
1943
|
+
flush(_) {
|
|
1944
|
+
f && _.enqueue(
|
|
1912
1945
|
new TextEncoder().encode(
|
|
1913
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
1946
|
+
`<meta http-equiv="refresh" content="0;url=${G(f.location)}"/>`
|
|
1914
1947
|
)
|
|
1915
1948
|
);
|
|
1916
1949
|
}
|
|
1917
1950
|
});
|
|
1918
1951
|
if (!n)
|
|
1919
|
-
return new Response(b.pipeThrough(
|
|
1920
|
-
status:
|
|
1921
|
-
statusText:
|
|
1922
|
-
headers:
|
|
1952
|
+
return new Response(b.pipeThrough(x), {
|
|
1953
|
+
status: S,
|
|
1954
|
+
statusText: C,
|
|
1955
|
+
headers: v
|
|
1923
1956
|
});
|
|
1924
1957
|
if (!i?.body)
|
|
1925
1958
|
throw new Error("Failed to clone server response");
|
|
1926
|
-
const
|
|
1927
|
-
return new Response(
|
|
1928
|
-
status:
|
|
1929
|
-
statusText:
|
|
1930
|
-
headers:
|
|
1959
|
+
const P = b.pipeThrough(ve(i.body)).pipeThrough(x);
|
|
1960
|
+
return new Response(P, {
|
|
1961
|
+
status: S,
|
|
1962
|
+
statusText: C,
|
|
1963
|
+
headers: v
|
|
1931
1964
|
});
|
|
1932
1965
|
} catch (m) {
|
|
1933
1966
|
if (m instanceof Response)
|
|
1934
1967
|
return m;
|
|
1935
|
-
if (
|
|
1936
|
-
return new Response(`Redirect: ${
|
|
1937
|
-
status:
|
|
1968
|
+
if (f)
|
|
1969
|
+
return new Response(`Redirect: ${f.location}`, {
|
|
1970
|
+
status: f.status,
|
|
1938
1971
|
headers: {
|
|
1939
|
-
Location:
|
|
1972
|
+
Location: f.location
|
|
1940
1973
|
}
|
|
1941
1974
|
});
|
|
1942
1975
|
try {
|
|
1943
|
-
m =
|
|
1944
|
-
let [d,
|
|
1945
|
-
const
|
|
1976
|
+
m = g ?? m;
|
|
1977
|
+
let [d, S] = F(m) ? [m.status, m.statusText] : [500, ""], C, b = new Headers();
|
|
1978
|
+
const v = await a(
|
|
1946
1979
|
() => {
|
|
1947
|
-
const
|
|
1980
|
+
const T = Promise.resolve(
|
|
1948
1981
|
r(w())
|
|
1949
1982
|
).then(
|
|
1950
|
-
(
|
|
1983
|
+
(D) => Object.assign(D, {
|
|
1951
1984
|
status: d,
|
|
1952
1985
|
errors: y ? {
|
|
1953
1986
|
[y]: m
|
|
1954
1987
|
} : {}
|
|
1955
1988
|
})
|
|
1956
1989
|
);
|
|
1957
|
-
return Object.defineProperties(
|
|
1990
|
+
return Object.defineProperties(T, {
|
|
1958
1991
|
_deepestRenderedBoundaryId: {
|
|
1959
1992
|
get() {
|
|
1960
1993
|
return y;
|
|
1961
1994
|
},
|
|
1962
|
-
set(
|
|
1963
|
-
y =
|
|
1995
|
+
set(D) {
|
|
1996
|
+
y = D;
|
|
1964
1997
|
}
|
|
1965
1998
|
},
|
|
1966
1999
|
formState: {
|
|
1967
2000
|
get() {
|
|
1968
|
-
return
|
|
1969
|
-
(
|
|
2001
|
+
return T.then(
|
|
2002
|
+
(D) => D.type === "render" ? D.formState : void 0
|
|
1970
2003
|
);
|
|
1971
2004
|
}
|
|
1972
2005
|
}
|
|
1973
2006
|
});
|
|
1974
2007
|
},
|
|
1975
2008
|
{
|
|
1976
|
-
onError(
|
|
1977
|
-
if (typeof
|
|
1978
|
-
if (
|
|
1979
|
-
return
|
|
1980
|
-
let
|
|
1981
|
-
|
|
2009
|
+
onError(E) {
|
|
2010
|
+
if (typeof E == "object" && E && "digest" in E && typeof E.digest == "string") {
|
|
2011
|
+
if (C = ie(E.digest), C)
|
|
2012
|
+
return E.digest;
|
|
2013
|
+
let T = le(
|
|
2014
|
+
E.digest
|
|
1982
2015
|
);
|
|
1983
|
-
if (
|
|
1984
|
-
return d =
|
|
2016
|
+
if (T)
|
|
2017
|
+
return d = T.status, S = T.statusText, E.digest;
|
|
1985
2018
|
}
|
|
1986
2019
|
},
|
|
1987
|
-
onHeaders(
|
|
1988
|
-
for (const [
|
|
1989
|
-
b.append(
|
|
2020
|
+
onHeaders(E) {
|
|
2021
|
+
for (const [T, D] of E)
|
|
2022
|
+
b.append(T, D);
|
|
1990
2023
|
}
|
|
1991
2024
|
}
|
|
1992
|
-
),
|
|
1993
|
-
for (const [
|
|
1994
|
-
|
|
1995
|
-
if (
|
|
1996
|
-
return
|
|
1997
|
-
status:
|
|
1998
|
-
headers:
|
|
2025
|
+
), x = new Headers(b);
|
|
2026
|
+
for (const [E, T] of t.headers)
|
|
2027
|
+
x.append(E, T);
|
|
2028
|
+
if (x.set("Content-Type", "text/html; charset=utf-8"), C)
|
|
2029
|
+
return x.set("Location", C.location), new Response(v, {
|
|
2030
|
+
status: C.status,
|
|
2031
|
+
headers: x
|
|
1999
2032
|
});
|
|
2000
|
-
const
|
|
2001
|
-
flush(
|
|
2002
|
-
|
|
2033
|
+
const P = new TransformStream({
|
|
2034
|
+
flush(E) {
|
|
2035
|
+
C && E.enqueue(
|
|
2003
2036
|
new TextEncoder().encode(
|
|
2004
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2037
|
+
`<meta http-equiv="refresh" content="0;url=${G(C.location)}"/>`
|
|
2005
2038
|
)
|
|
2006
2039
|
);
|
|
2007
2040
|
}
|
|
2008
2041
|
});
|
|
2009
2042
|
if (!n)
|
|
2010
|
-
return new Response(
|
|
2043
|
+
return new Response(v.pipeThrough(P), {
|
|
2011
2044
|
status: d,
|
|
2012
|
-
statusText:
|
|
2013
|
-
headers:
|
|
2045
|
+
statusText: S,
|
|
2046
|
+
headers: x
|
|
2014
2047
|
});
|
|
2015
2048
|
if (!i?.body)
|
|
2016
2049
|
throw new Error("Failed to clone server response");
|
|
2017
|
-
const
|
|
2018
|
-
return new Response(
|
|
2050
|
+
const _ = v.pipeThrough(ve(i.body)).pipeThrough(P);
|
|
2051
|
+
return new Response(_, {
|
|
2019
2052
|
status: d,
|
|
2020
|
-
statusText:
|
|
2021
|
-
headers:
|
|
2053
|
+
statusText: S,
|
|
2054
|
+
headers: x
|
|
2022
2055
|
});
|
|
2023
2056
|
} catch {
|
|
2024
2057
|
}
|
|
2025
2058
|
throw m;
|
|
2026
2059
|
}
|
|
2027
2060
|
}
|
|
2028
|
-
function
|
|
2029
|
-
const t = e(), r =
|
|
2061
|
+
function yr({ getPayload: e }) {
|
|
2062
|
+
const t = e(), r = er(t);
|
|
2030
2063
|
if (r.type === "redirect")
|
|
2031
2064
|
throw new Response(null, {
|
|
2032
2065
|
status: r.status,
|
|
@@ -2036,19 +2069,19 @@ function pr({ getPayload: e }) {
|
|
|
2036
2069
|
});
|
|
2037
2070
|
if (r.type !== "render") return null;
|
|
2038
2071
|
let a = { ...r.loaderData };
|
|
2039
|
-
for (const
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2072
|
+
for (const u of r.matches)
|
|
2073
|
+
te(
|
|
2074
|
+
u.id,
|
|
2075
|
+
u.clientLoader,
|
|
2076
|
+
u.hasLoader,
|
|
2044
2077
|
!1
|
|
2045
|
-
) && (
|
|
2078
|
+
) && (u.hydrateFallbackElement || !u.hasLoader) && delete a[u.id];
|
|
2046
2079
|
const n = {
|
|
2047
2080
|
get _deepestRenderedBoundaryId() {
|
|
2048
2081
|
return t._deepestRenderedBoundaryId ?? null;
|
|
2049
2082
|
},
|
|
2050
|
-
set _deepestRenderedBoundaryId(
|
|
2051
|
-
t._deepestRenderedBoundaryId =
|
|
2083
|
+
set _deepestRenderedBoundaryId(u) {
|
|
2084
|
+
t._deepestRenderedBoundaryId = u;
|
|
2052
2085
|
},
|
|
2053
2086
|
actionData: r.actionData,
|
|
2054
2087
|
actionHeaders: {},
|
|
@@ -2058,23 +2091,23 @@ function pr({ getPayload: e }) {
|
|
|
2058
2091
|
loaderHeaders: {},
|
|
2059
2092
|
location: r.location,
|
|
2060
2093
|
statusCode: 200,
|
|
2061
|
-
matches: r.matches.map((
|
|
2062
|
-
params:
|
|
2063
|
-
pathname:
|
|
2064
|
-
pathnameBase:
|
|
2094
|
+
matches: r.matches.map((u) => ({
|
|
2095
|
+
params: u.params,
|
|
2096
|
+
pathname: u.pathname,
|
|
2097
|
+
pathnameBase: u.pathnameBase,
|
|
2065
2098
|
route: {
|
|
2066
|
-
id:
|
|
2067
|
-
action:
|
|
2068
|
-
handle:
|
|
2069
|
-
hasErrorBoundary:
|
|
2070
|
-
loader:
|
|
2071
|
-
index:
|
|
2072
|
-
path:
|
|
2073
|
-
shouldRevalidate:
|
|
2099
|
+
id: u.id,
|
|
2100
|
+
action: u.hasAction || !!u.clientAction,
|
|
2101
|
+
handle: u.handle,
|
|
2102
|
+
hasErrorBoundary: u.hasErrorBoundary,
|
|
2103
|
+
loader: u.hasLoader || !!u.clientLoader,
|
|
2104
|
+
index: u.index,
|
|
2105
|
+
path: u.path,
|
|
2106
|
+
shouldRevalidate: u.shouldRevalidate
|
|
2074
2107
|
}
|
|
2075
2108
|
}))
|
|
2076
|
-
}, o =
|
|
2077
|
-
r.matches.reduceRight((
|
|
2109
|
+
}, o = _e(
|
|
2110
|
+
r.matches.reduceRight((u, s) => {
|
|
2078
2111
|
const i = {
|
|
2079
2112
|
id: s.id,
|
|
2080
2113
|
action: s.hasAction || !!s.clientAction,
|
|
@@ -2088,16 +2121,18 @@ function pr({ getPayload: e }) {
|
|
|
2088
2121
|
path: s.path,
|
|
2089
2122
|
shouldRevalidate: s.shouldRevalidate
|
|
2090
2123
|
};
|
|
2091
|
-
return
|
|
2124
|
+
return u.length > 0 && (i.children = u), [i];
|
|
2092
2125
|
}, []),
|
|
2093
2126
|
n
|
|
2094
|
-
),
|
|
2127
|
+
), c = {
|
|
2095
2128
|
future: {
|
|
2096
2129
|
// These flags have no runtime impact so can always be false. If we add
|
|
2097
2130
|
// flags that drive runtime behavior they'll need to be proxied through.
|
|
2098
2131
|
v8_middleware: !1,
|
|
2099
2132
|
unstable_subResourceIntegrity: !1,
|
|
2100
|
-
unstable_trailingSlashAwareDataRequests: !0
|
|
2133
|
+
unstable_trailingSlashAwareDataRequests: !0,
|
|
2134
|
+
// always on for RSC
|
|
2135
|
+
unstable_passThroughRequests: !0
|
|
2101
2136
|
// always on for RSC
|
|
2102
2137
|
},
|
|
2103
2138
|
isSpaMode: !1,
|
|
@@ -2112,11 +2147,14 @@ function pr({ getPayload: e }) {
|
|
|
2112
2147
|
imports: []
|
|
2113
2148
|
}
|
|
2114
2149
|
},
|
|
2115
|
-
routeDiscovery: { mode: "
|
|
2116
|
-
|
|
2150
|
+
routeDiscovery: r.routeDiscovery.mode === "initial" ? { mode: "initial", manifestPath: Ce } : {
|
|
2151
|
+
mode: "lazy",
|
|
2152
|
+
manifestPath: r.routeDiscovery.manifestPath || Ce
|
|
2153
|
+
},
|
|
2154
|
+
routeModules: Kt(r)
|
|
2117
2155
|
};
|
|
2118
|
-
return /* @__PURE__ */ k.createElement(
|
|
2119
|
-
|
|
2156
|
+
return /* @__PURE__ */ k.createElement(Ze.Provider, { value: !0 }, /* @__PURE__ */ k.createElement(Qt, { location: r.location }, /* @__PURE__ */ k.createElement(re.Provider, { value: c }, /* @__PURE__ */ k.createElement(
|
|
2157
|
+
xe,
|
|
2120
2158
|
{
|
|
2121
2159
|
context: n,
|
|
2122
2160
|
router: o,
|
|
@@ -2125,13 +2163,13 @@ function pr({ getPayload: e }) {
|
|
|
2125
2163
|
}
|
|
2126
2164
|
))));
|
|
2127
2165
|
}
|
|
2128
|
-
function
|
|
2166
|
+
function tr(e) {
|
|
2129
2167
|
return e.pathname.endsWith(".rsc");
|
|
2130
2168
|
}
|
|
2131
|
-
function
|
|
2169
|
+
function rr(e) {
|
|
2132
2170
|
return e.pathname.endsWith(".manifest");
|
|
2133
2171
|
}
|
|
2134
|
-
function
|
|
2172
|
+
function wr(e) {
|
|
2135
2173
|
if (!e) return null;
|
|
2136
2174
|
let t = Object.entries(e), r = {};
|
|
2137
2175
|
for (let [a, n] of t)
|
|
@@ -2147,8 +2185,8 @@ function mr(e) {
|
|
|
2147
2185
|
let o = window[n.__subType];
|
|
2148
2186
|
if (typeof o == "function")
|
|
2149
2187
|
try {
|
|
2150
|
-
let
|
|
2151
|
-
|
|
2188
|
+
let c = new o(n.message);
|
|
2189
|
+
c.stack = n.stack, r[a] = c;
|
|
2152
2190
|
} catch {
|
|
2153
2191
|
}
|
|
2154
2192
|
}
|
|
@@ -2160,7 +2198,7 @@ function mr(e) {
|
|
|
2160
2198
|
r[a] = n;
|
|
2161
2199
|
return r;
|
|
2162
2200
|
}
|
|
2163
|
-
function
|
|
2201
|
+
function gr({
|
|
2164
2202
|
state: e,
|
|
2165
2203
|
routes: t,
|
|
2166
2204
|
getRouteInfo: r,
|
|
@@ -2168,25 +2206,25 @@ function yr({
|
|
|
2168
2206
|
basename: n,
|
|
2169
2207
|
isSpaMode: o
|
|
2170
2208
|
}) {
|
|
2171
|
-
let
|
|
2209
|
+
let c = {
|
|
2172
2210
|
...e,
|
|
2173
2211
|
loaderData: { ...e.loaderData }
|
|
2174
|
-
},
|
|
2175
|
-
if (
|
|
2176
|
-
for (let s of
|
|
2177
|
-
let i = s.route.id,
|
|
2178
|
-
|
|
2212
|
+
}, u = ke(t, a, n);
|
|
2213
|
+
if (u)
|
|
2214
|
+
for (let s of u) {
|
|
2215
|
+
let i = s.route.id, l = r(i);
|
|
2216
|
+
te(
|
|
2179
2217
|
i,
|
|
2180
|
-
|
|
2181
|
-
|
|
2218
|
+
l.clientLoader,
|
|
2219
|
+
l.hasLoader,
|
|
2182
2220
|
o
|
|
2183
|
-
) && (
|
|
2221
|
+
) && (l.hasHydrateFallback || !l.hasLoader) ? delete c.loaderData[i] : l.hasLoader || (c.loaderData[i] = null);
|
|
2184
2222
|
}
|
|
2185
|
-
return
|
|
2223
|
+
return c;
|
|
2186
2224
|
}
|
|
2187
|
-
const
|
|
2188
|
-
const e =
|
|
2189
|
-
return
|
|
2225
|
+
const Rr = () => {
|
|
2226
|
+
const e = oe((a) => a.navigateTo), t = oe((a) => a.navigateInHortiview);
|
|
2227
|
+
return Ve(
|
|
2190
2228
|
(a) => {
|
|
2191
2229
|
if (t) {
|
|
2192
2230
|
t(a);
|
|
@@ -2198,133 +2236,133 @@ const wr = () => {
|
|
|
2198
2236
|
);
|
|
2199
2237
|
};
|
|
2200
2238
|
export {
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2239
|
+
Er as Await,
|
|
2240
|
+
Cr as BrowserRouter,
|
|
2241
|
+
br as Form,
|
|
2242
|
+
_r as HashRouter,
|
|
2243
|
+
xr as IDLE_BLOCKER,
|
|
2244
|
+
kr as IDLE_FETCHER,
|
|
2245
|
+
Ar as IDLE_NAVIGATION,
|
|
2246
|
+
Tr as Link,
|
|
2247
|
+
Dr as Links,
|
|
2248
|
+
Hr as MemoryRouter,
|
|
2249
|
+
Pr as Meta,
|
|
2250
|
+
Fr as NavLink,
|
|
2251
|
+
Ur as Navigate,
|
|
2252
|
+
Lr as NavigationType,
|
|
2253
|
+
st as Outlet,
|
|
2216
2254
|
Nr as PrefetchPageLinks,
|
|
2217
|
-
|
|
2218
|
-
|
|
2255
|
+
Or as Route,
|
|
2256
|
+
Ir as Router,
|
|
2219
2257
|
K as RouterContextProvider,
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2258
|
+
Ye as RouterProvider,
|
|
2259
|
+
Br as Routes,
|
|
2260
|
+
Mr as Scripts,
|
|
2261
|
+
$r as ScrollRestoration,
|
|
2262
|
+
or as ServerRouter,
|
|
2263
|
+
zr as StaticRouter,
|
|
2264
|
+
xe as StaticRouterProvider,
|
|
2265
|
+
jr as UNSAFE_AwaitContextProvider,
|
|
2266
|
+
qr as UNSAFE_DataRouterContext,
|
|
2267
|
+
Vr as UNSAFE_DataRouterStateContext,
|
|
2230
2268
|
O as UNSAFE_ErrorResponseImpl,
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2269
|
+
Wr as UNSAFE_FetchersContext,
|
|
2270
|
+
re as UNSAFE_FrameworkContext,
|
|
2271
|
+
Xr as UNSAFE_LocationContext,
|
|
2272
|
+
Jr as UNSAFE_NavigationContext,
|
|
2273
|
+
pr as UNSAFE_RSCDefaultRootErrorBoundary,
|
|
2274
|
+
Xe as UNSAFE_RemixErrorBoundary,
|
|
2275
|
+
Qr as UNSAFE_RouteContext,
|
|
2276
|
+
At as UNSAFE_ServerMode,
|
|
2239
2277
|
I as UNSAFE_SingleFetchRedirectSymbol,
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2278
|
+
Kr as UNSAFE_ViewTransitionContext,
|
|
2279
|
+
Gr as UNSAFE_WithComponentProps,
|
|
2280
|
+
Yr as UNSAFE_WithErrorBoundaryProps,
|
|
2281
|
+
Zr as UNSAFE_WithHydrateFallbackProps,
|
|
2282
|
+
ea as UNSAFE_createBrowserHistory,
|
|
2283
|
+
ta as UNSAFE_createClientRoutes,
|
|
2284
|
+
ra as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
|
2285
|
+
aa as UNSAFE_createHashHistory,
|
|
2286
|
+
na as UNSAFE_createMemoryHistory,
|
|
2287
|
+
sa as UNSAFE_createRouter,
|
|
2288
|
+
ot as UNSAFE_decodeViaTurboStream,
|
|
2289
|
+
wr as UNSAFE_deserializeErrors,
|
|
2290
|
+
gr as UNSAFE_getHydrationData,
|
|
2291
|
+
oa as UNSAFE_getPatchRoutesOnNavigationFunction,
|
|
2292
|
+
ia as UNSAFE_getTurboStreamSingleFetchDataStrategy,
|
|
2293
|
+
la as UNSAFE_hydrationRouteProperties,
|
|
2294
|
+
ua as UNSAFE_invariant,
|
|
2295
|
+
da as UNSAFE_mapRouteProperties,
|
|
2296
|
+
te as UNSAFE_shouldHydrateRouteLoader,
|
|
2297
|
+
ca as UNSAFE_useFogOFWarDiscovery,
|
|
2298
|
+
fa as UNSAFE_useScrollRestoration,
|
|
2299
|
+
nt as UNSAFE_withComponentProps,
|
|
2300
|
+
rt as UNSAFE_withErrorBoundaryProps,
|
|
2301
|
+
at as UNSAFE_withHydrateFallbackProps,
|
|
2302
|
+
ha as createBrowserRouter,
|
|
2303
|
+
pa as createContext,
|
|
2304
|
+
Pe as createCookie,
|
|
2305
|
+
cr as createCookieSessionStorage,
|
|
2306
|
+
ma as createHashRouter,
|
|
2307
|
+
Ge as createMemoryRouter,
|
|
2308
|
+
fr as createMemorySessionStorage,
|
|
2309
|
+
ya as createPath,
|
|
2310
|
+
ur as createRequestHandler,
|
|
2311
|
+
wa as createRoutesFromChildren,
|
|
2312
|
+
ga as createRoutesFromElements,
|
|
2313
|
+
ir as createRoutesStub,
|
|
2314
|
+
Ra as createSearchParams,
|
|
2315
|
+
ze as createSession,
|
|
2316
|
+
Vt as createSessionStorage,
|
|
2317
|
+
Sa as createStaticHandler,
|
|
2318
|
+
_e as createStaticRouter,
|
|
2319
|
+
va as data,
|
|
2320
|
+
Ea as generatePath,
|
|
2321
|
+
hr as href,
|
|
2322
|
+
Fe as isCookie,
|
|
2323
|
+
F as isRouteErrorResponse,
|
|
2324
|
+
dr as isSession,
|
|
2325
|
+
Ca as matchPath,
|
|
2326
|
+
ke as matchRoutes,
|
|
2327
|
+
ba as parsePath,
|
|
2328
|
+
ut as redirect,
|
|
2329
|
+
it as redirectDocument,
|
|
2330
|
+
_a as renderMatches,
|
|
2331
|
+
lt as replace,
|
|
2332
|
+
xa as resolvePath,
|
|
2333
|
+
ka as unstable_HistoryRouter,
|
|
2334
|
+
yr as unstable_RSCStaticRouter,
|
|
2335
|
+
mr as unstable_routeRSCServerRequest,
|
|
2336
|
+
lr as unstable_setDevServerHooks,
|
|
2337
|
+
Aa as unstable_usePrompt,
|
|
2338
|
+
Ta as unstable_useRoute,
|
|
2339
|
+
Da as useActionData,
|
|
2340
|
+
Ha as useAsyncError,
|
|
2341
|
+
Pa as useAsyncValue,
|
|
2342
|
+
Fa as useBeforeUnload,
|
|
2343
|
+
Ua as useBlocker,
|
|
2344
|
+
La as useFetcher,
|
|
2307
2345
|
Na as useFetchers,
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2346
|
+
Oa as useFormAction,
|
|
2347
|
+
Ia as useHref,
|
|
2348
|
+
Ba as useInRouterContext,
|
|
2349
|
+
Ma as useLinkClickHandler,
|
|
2350
|
+
$a as useLoaderData,
|
|
2351
|
+
za as useLocation,
|
|
2352
|
+
ja as useMatch,
|
|
2353
|
+
qa as useMatches,
|
|
2354
|
+
Rr as useNavigate,
|
|
2355
|
+
Va as useNavigation,
|
|
2356
|
+
Wa as useNavigationType,
|
|
2357
|
+
Xa as useOutlet,
|
|
2358
|
+
Ja as useOutletContext,
|
|
2359
|
+
Qa as useParams,
|
|
2360
|
+
Ka as useResolvedPath,
|
|
2361
|
+
Ga as useRevalidator,
|
|
2362
|
+
Qe as useRouteError,
|
|
2363
|
+
Ya as useRouteLoaderData,
|
|
2364
|
+
Za as useRoutes,
|
|
2365
|
+
en as useSearchParams,
|
|
2366
|
+
tn as useSubmit,
|
|
2367
|
+
rn as useViewTransitionState
|
|
2330
2368
|
};
|