@ichaingo/token 1.4.98 → 1.5.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/headers-EwSV_4cn.js +3644 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/headers-tT97v9z0.js +0 -3787
|
@@ -0,0 +1,3644 @@
|
|
|
1
|
+
function nr(h, a) {
|
|
2
|
+
for (var E = 0; E < a.length; E++) {
|
|
3
|
+
const R = a[E];
|
|
4
|
+
if (typeof R != "string" && !Array.isArray(R)) {
|
|
5
|
+
for (const g in R)
|
|
6
|
+
if (g !== "default" && !(g in h)) {
|
|
7
|
+
const v = Object.getOwnPropertyDescriptor(R, g);
|
|
8
|
+
v && Object.defineProperty(h, g, v.get ? v : {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: () => R[g]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return Object.freeze(Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }));
|
|
16
|
+
}
|
|
17
|
+
var _e = {}, Ne = {}, Ie = {}, Me = {}, He, mt;
|
|
18
|
+
function or() {
|
|
19
|
+
if (mt) return He;
|
|
20
|
+
mt = 1;
|
|
21
|
+
var h = Object.defineProperty, a = Object.getOwnPropertyDescriptor, E = Object.getOwnPropertyNames, R = Object.prototype.hasOwnProperty, g = (t, u) => {
|
|
22
|
+
for (var n in u)
|
|
23
|
+
h(t, n, { get: u[n], enumerable: !0 });
|
|
24
|
+
}, v = (t, u, n, s) => {
|
|
25
|
+
if (u && typeof u == "object" || typeof u == "function")
|
|
26
|
+
for (let m of E(u))
|
|
27
|
+
!R.call(t, m) && m !== n && h(t, m, { get: () => u[m], enumerable: !(s = a(u, m)) || s.enumerable });
|
|
28
|
+
return t;
|
|
29
|
+
}, i = (t) => v(h({}, "__esModule", { value: !0 }), t), p = {};
|
|
30
|
+
g(p, {
|
|
31
|
+
RequestCookies: () => N,
|
|
32
|
+
ResponseCookies: () => A,
|
|
33
|
+
parseCookie: () => f,
|
|
34
|
+
parseSetCookie: () => T,
|
|
35
|
+
stringifyCookie: () => l
|
|
36
|
+
}), He = i(p);
|
|
37
|
+
function l(t) {
|
|
38
|
+
var u;
|
|
39
|
+
const n = [
|
|
40
|
+
"path" in t && t.path && `Path=${t.path}`,
|
|
41
|
+
"expires" in t && (t.expires || t.expires === 0) && `Expires=${(typeof t.expires == "number" ? new Date(t.expires) : t.expires).toUTCString()}`,
|
|
42
|
+
"maxAge" in t && typeof t.maxAge == "number" && `Max-Age=${t.maxAge}`,
|
|
43
|
+
"domain" in t && t.domain && `Domain=${t.domain}`,
|
|
44
|
+
"secure" in t && t.secure && "Secure",
|
|
45
|
+
"httpOnly" in t && t.httpOnly && "HttpOnly",
|
|
46
|
+
"sameSite" in t && t.sameSite && `SameSite=${t.sameSite}`,
|
|
47
|
+
"partitioned" in t && t.partitioned && "Partitioned",
|
|
48
|
+
"priority" in t && t.priority && `Priority=${t.priority}`
|
|
49
|
+
].filter(Boolean), s = `${t.name}=${encodeURIComponent((u = t.value) != null ? u : "")}`;
|
|
50
|
+
return n.length === 0 ? s : `${s}; ${n.join("; ")}`;
|
|
51
|
+
}
|
|
52
|
+
function f(t) {
|
|
53
|
+
const u = /* @__PURE__ */ new Map();
|
|
54
|
+
for (const n of t.split(/; */)) {
|
|
55
|
+
if (!n)
|
|
56
|
+
continue;
|
|
57
|
+
const s = n.indexOf("=");
|
|
58
|
+
if (s === -1) {
|
|
59
|
+
u.set(n, "true");
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
const [m, P] = [n.slice(0, s), n.slice(s + 1)];
|
|
63
|
+
try {
|
|
64
|
+
u.set(m, decodeURIComponent(P ?? "true"));
|
|
65
|
+
} catch {
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return u;
|
|
69
|
+
}
|
|
70
|
+
function T(t) {
|
|
71
|
+
if (!t)
|
|
72
|
+
return;
|
|
73
|
+
const [[u, n], ...s] = f(t), {
|
|
74
|
+
domain: m,
|
|
75
|
+
expires: P,
|
|
76
|
+
httponly: Q,
|
|
77
|
+
maxage: q,
|
|
78
|
+
path: V,
|
|
79
|
+
samesite: Z,
|
|
80
|
+
secure: ae,
|
|
81
|
+
partitioned: ee,
|
|
82
|
+
priority: oe
|
|
83
|
+
} = Object.fromEntries(
|
|
84
|
+
s.map(([se, ce]) => [
|
|
85
|
+
se.toLowerCase().replace(/-/g, ""),
|
|
86
|
+
ce
|
|
87
|
+
])
|
|
88
|
+
), ie = {
|
|
89
|
+
name: u,
|
|
90
|
+
value: decodeURIComponent(n),
|
|
91
|
+
domain: m,
|
|
92
|
+
...P && { expires: new Date(P) },
|
|
93
|
+
...Q && { httpOnly: !0 },
|
|
94
|
+
...typeof q == "string" && { maxAge: Number(q) },
|
|
95
|
+
path: V,
|
|
96
|
+
...Z && { sameSite: $(Z) },
|
|
97
|
+
...ae && { secure: !0 },
|
|
98
|
+
...oe && { priority: b(oe) },
|
|
99
|
+
...ee && { partitioned: !0 }
|
|
100
|
+
};
|
|
101
|
+
return k(ie);
|
|
102
|
+
}
|
|
103
|
+
function k(t) {
|
|
104
|
+
const u = {};
|
|
105
|
+
for (const n in t)
|
|
106
|
+
t[n] && (u[n] = t[n]);
|
|
107
|
+
return u;
|
|
108
|
+
}
|
|
109
|
+
var j = ["strict", "lax", "none"];
|
|
110
|
+
function $(t) {
|
|
111
|
+
return t = t.toLowerCase(), j.includes(t) ? t : void 0;
|
|
112
|
+
}
|
|
113
|
+
var L = ["low", "medium", "high"];
|
|
114
|
+
function b(t) {
|
|
115
|
+
return t = t.toLowerCase(), L.includes(t) ? t : void 0;
|
|
116
|
+
}
|
|
117
|
+
function C(t) {
|
|
118
|
+
if (!t)
|
|
119
|
+
return [];
|
|
120
|
+
var u = [], n = 0, s, m, P, Q, q;
|
|
121
|
+
function V() {
|
|
122
|
+
for (; n < t.length && /\s/.test(t.charAt(n)); )
|
|
123
|
+
n += 1;
|
|
124
|
+
return n < t.length;
|
|
125
|
+
}
|
|
126
|
+
function Z() {
|
|
127
|
+
return m = t.charAt(n), m !== "=" && m !== ";" && m !== ",";
|
|
128
|
+
}
|
|
129
|
+
for (; n < t.length; ) {
|
|
130
|
+
for (s = n, q = !1; V(); )
|
|
131
|
+
if (m = t.charAt(n), m === ",") {
|
|
132
|
+
for (P = n, n += 1, V(), Q = n; n < t.length && Z(); )
|
|
133
|
+
n += 1;
|
|
134
|
+
n < t.length && t.charAt(n) === "=" ? (q = !0, n = Q, u.push(t.substring(s, P)), s = n) : n = P + 1;
|
|
135
|
+
} else
|
|
136
|
+
n += 1;
|
|
137
|
+
(!q || n >= t.length) && u.push(t.substring(s, t.length));
|
|
138
|
+
}
|
|
139
|
+
return u;
|
|
140
|
+
}
|
|
141
|
+
var N = class {
|
|
142
|
+
constructor(t) {
|
|
143
|
+
this._parsed = /* @__PURE__ */ new Map(), this._headers = t;
|
|
144
|
+
const u = t.get("cookie");
|
|
145
|
+
if (u) {
|
|
146
|
+
const n = f(u);
|
|
147
|
+
for (const [s, m] of n)
|
|
148
|
+
this._parsed.set(s, { name: s, value: m });
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
[Symbol.iterator]() {
|
|
152
|
+
return this._parsed[Symbol.iterator]();
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* The amount of cookies received from the client
|
|
156
|
+
*/
|
|
157
|
+
get size() {
|
|
158
|
+
return this._parsed.size;
|
|
159
|
+
}
|
|
160
|
+
get(...t) {
|
|
161
|
+
const u = typeof t[0] == "string" ? t[0] : t[0].name;
|
|
162
|
+
return this._parsed.get(u);
|
|
163
|
+
}
|
|
164
|
+
getAll(...t) {
|
|
165
|
+
var u;
|
|
166
|
+
const n = Array.from(this._parsed);
|
|
167
|
+
if (!t.length)
|
|
168
|
+
return n.map(([m, P]) => P);
|
|
169
|
+
const s = typeof t[0] == "string" ? t[0] : (u = t[0]) == null ? void 0 : u.name;
|
|
170
|
+
return n.filter(([m]) => m === s).map(([m, P]) => P);
|
|
171
|
+
}
|
|
172
|
+
has(t) {
|
|
173
|
+
return this._parsed.has(t);
|
|
174
|
+
}
|
|
175
|
+
set(...t) {
|
|
176
|
+
const [u, n] = t.length === 1 ? [t[0].name, t[0].value] : t, s = this._parsed;
|
|
177
|
+
return s.set(u, { name: u, value: n }), this._headers.set(
|
|
178
|
+
"cookie",
|
|
179
|
+
Array.from(s).map(([m, P]) => l(P)).join("; ")
|
|
180
|
+
), this;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Delete the cookies matching the passed name or names in the request.
|
|
184
|
+
*/
|
|
185
|
+
delete(t) {
|
|
186
|
+
const u = this._parsed, n = Array.isArray(t) ? t.map((s) => u.delete(s)) : u.delete(t);
|
|
187
|
+
return this._headers.set(
|
|
188
|
+
"cookie",
|
|
189
|
+
Array.from(u).map(([s, m]) => l(m)).join("; ")
|
|
190
|
+
), n;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Delete all the cookies in the cookies in the request.
|
|
194
|
+
*/
|
|
195
|
+
clear() {
|
|
196
|
+
return this.delete(Array.from(this._parsed.keys())), this;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Format the cookies in the request as a string for logging
|
|
200
|
+
*/
|
|
201
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
202
|
+
return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
203
|
+
}
|
|
204
|
+
toString() {
|
|
205
|
+
return [...this._parsed.values()].map((t) => `${t.name}=${encodeURIComponent(t.value)}`).join("; ");
|
|
206
|
+
}
|
|
207
|
+
}, A = class {
|
|
208
|
+
constructor(t) {
|
|
209
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
210
|
+
var u, n, s;
|
|
211
|
+
this._headers = t;
|
|
212
|
+
const m = (s = (n = (u = t.getSetCookie) == null ? void 0 : u.call(t)) != null ? n : t.get("set-cookie")) != null ? s : [], P = Array.isArray(m) ? m : C(m);
|
|
213
|
+
for (const Q of P) {
|
|
214
|
+
const q = T(Q);
|
|
215
|
+
q && this._parsed.set(q.name, q);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
220
|
+
*/
|
|
221
|
+
get(...t) {
|
|
222
|
+
const u = typeof t[0] == "string" ? t[0] : t[0].name;
|
|
223
|
+
return this._parsed.get(u);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
227
|
+
*/
|
|
228
|
+
getAll(...t) {
|
|
229
|
+
var u;
|
|
230
|
+
const n = Array.from(this._parsed.values());
|
|
231
|
+
if (!t.length)
|
|
232
|
+
return n;
|
|
233
|
+
const s = typeof t[0] == "string" ? t[0] : (u = t[0]) == null ? void 0 : u.name;
|
|
234
|
+
return n.filter((m) => m.name === s);
|
|
235
|
+
}
|
|
236
|
+
has(t) {
|
|
237
|
+
return this._parsed.has(t);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
241
|
+
*/
|
|
242
|
+
set(...t) {
|
|
243
|
+
const [u, n, s] = t.length === 1 ? [t[0].name, t[0].value, t[0]] : t, m = this._parsed;
|
|
244
|
+
return m.set(u, S({ name: u, value: n, ...s })), M(m, this._headers), this;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
248
|
+
*/
|
|
249
|
+
delete(...t) {
|
|
250
|
+
const [u, n] = typeof t[0] == "string" ? [t[0]] : [t[0].name, t[0]];
|
|
251
|
+
return this.set({ ...n, name: u, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
252
|
+
}
|
|
253
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
254
|
+
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
255
|
+
}
|
|
256
|
+
toString() {
|
|
257
|
+
return [...this._parsed.values()].map(l).join("; ");
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
function M(t, u) {
|
|
261
|
+
u.delete("set-cookie");
|
|
262
|
+
for (const [, n] of t) {
|
|
263
|
+
const s = l(n);
|
|
264
|
+
u.append("set-cookie", s);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function S(t = { name: "", value: "" }) {
|
|
268
|
+
return typeof t.expires == "number" && (t.expires = new Date(t.expires)), t.maxAge && (t.expires = new Date(Date.now() + t.maxAge * 1e3)), (t.path === null || t.path === void 0) && (t.path = "/"), t;
|
|
269
|
+
}
|
|
270
|
+
return He;
|
|
271
|
+
}
|
|
272
|
+
var gt;
|
|
273
|
+
function Qt() {
|
|
274
|
+
return gt || (gt = 1, (function(h) {
|
|
275
|
+
Object.defineProperty(h, "__esModule", {
|
|
276
|
+
value: !0
|
|
277
|
+
});
|
|
278
|
+
function a(R, g) {
|
|
279
|
+
for (var v in g) Object.defineProperty(R, v, {
|
|
280
|
+
enumerable: !0,
|
|
281
|
+
get: g[v]
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
a(h, {
|
|
285
|
+
RequestCookies: function() {
|
|
286
|
+
return E.RequestCookies;
|
|
287
|
+
},
|
|
288
|
+
ResponseCookies: function() {
|
|
289
|
+
return E.ResponseCookies;
|
|
290
|
+
},
|
|
291
|
+
stringifyCookie: function() {
|
|
292
|
+
return E.stringifyCookie;
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
const E = or();
|
|
296
|
+
})(Me)), Me;
|
|
297
|
+
}
|
|
298
|
+
var qe = {}, Et;
|
|
299
|
+
function ot() {
|
|
300
|
+
return Et || (Et = 1, (function(h) {
|
|
301
|
+
Object.defineProperty(h, "__esModule", {
|
|
302
|
+
value: !0
|
|
303
|
+
}), Object.defineProperty(h, "ReflectAdapter", {
|
|
304
|
+
enumerable: !0,
|
|
305
|
+
get: function() {
|
|
306
|
+
return a;
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
class a {
|
|
310
|
+
static get(R, g, v) {
|
|
311
|
+
const i = Reflect.get(R, g, v);
|
|
312
|
+
return typeof i == "function" ? i.bind(R) : i;
|
|
313
|
+
}
|
|
314
|
+
static set(R, g, v, i) {
|
|
315
|
+
return Reflect.set(R, g, v, i);
|
|
316
|
+
}
|
|
317
|
+
static has(R, g) {
|
|
318
|
+
return Reflect.has(R, g);
|
|
319
|
+
}
|
|
320
|
+
static deleteProperty(R, g) {
|
|
321
|
+
return Reflect.deleteProperty(R, g);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
})(qe)), qe;
|
|
325
|
+
}
|
|
326
|
+
var xe = {}, Le = {}, Ue = {}, Rt;
|
|
327
|
+
function at() {
|
|
328
|
+
return Rt || (Rt = 1, (function(h) {
|
|
329
|
+
Object.defineProperty(h, "__esModule", {
|
|
330
|
+
value: !0
|
|
331
|
+
});
|
|
332
|
+
function a(l, f) {
|
|
333
|
+
for (var T in f) Object.defineProperty(l, T, {
|
|
334
|
+
enumerable: !0,
|
|
335
|
+
get: f[T]
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
a(h, {
|
|
339
|
+
bindSnapshot: function() {
|
|
340
|
+
return i;
|
|
341
|
+
},
|
|
342
|
+
createAsyncLocalStorage: function() {
|
|
343
|
+
return v;
|
|
344
|
+
},
|
|
345
|
+
createSnapshot: function() {
|
|
346
|
+
return p;
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
const E = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
350
|
+
value: "E504",
|
|
351
|
+
enumerable: !1,
|
|
352
|
+
configurable: !0
|
|
353
|
+
});
|
|
354
|
+
class R {
|
|
355
|
+
disable() {
|
|
356
|
+
throw E;
|
|
357
|
+
}
|
|
358
|
+
getStore() {
|
|
359
|
+
}
|
|
360
|
+
run() {
|
|
361
|
+
throw E;
|
|
362
|
+
}
|
|
363
|
+
exit() {
|
|
364
|
+
throw E;
|
|
365
|
+
}
|
|
366
|
+
enterWith() {
|
|
367
|
+
throw E;
|
|
368
|
+
}
|
|
369
|
+
static bind(f) {
|
|
370
|
+
return f;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
const g = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
|
|
374
|
+
function v() {
|
|
375
|
+
return g ? new g() : new R();
|
|
376
|
+
}
|
|
377
|
+
function i(l) {
|
|
378
|
+
return g ? g.bind(l) : R.bind(l);
|
|
379
|
+
}
|
|
380
|
+
function p() {
|
|
381
|
+
return g ? g.snapshot() : function(l, ...f) {
|
|
382
|
+
return l(...f);
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
})(Ue)), Ue;
|
|
386
|
+
}
|
|
387
|
+
var bt;
|
|
388
|
+
function ar() {
|
|
389
|
+
return bt || (bt = 1, (function(h) {
|
|
390
|
+
Object.defineProperty(h, "__esModule", {
|
|
391
|
+
value: !0
|
|
392
|
+
}), Object.defineProperty(h, "workAsyncStorageInstance", {
|
|
393
|
+
enumerable: !0,
|
|
394
|
+
get: function() {
|
|
395
|
+
return E;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
const E = (0, at().createAsyncLocalStorage)();
|
|
399
|
+
})(Le)), Le;
|
|
400
|
+
}
|
|
401
|
+
var vt;
|
|
402
|
+
function ge() {
|
|
403
|
+
return vt || (vt = 1, (function(h) {
|
|
404
|
+
Object.defineProperty(h, "__esModule", {
|
|
405
|
+
value: !0
|
|
406
|
+
}), Object.defineProperty(h, "workAsyncStorage", {
|
|
407
|
+
enumerable: !0,
|
|
408
|
+
get: function() {
|
|
409
|
+
return a.workAsyncStorageInstance;
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
const a = ar();
|
|
413
|
+
})(xe)), xe;
|
|
414
|
+
}
|
|
415
|
+
var wt;
|
|
416
|
+
function sr() {
|
|
417
|
+
return wt || (wt = 1, (function(h) {
|
|
418
|
+
Object.defineProperty(h, "__esModule", {
|
|
419
|
+
value: !0
|
|
420
|
+
});
|
|
421
|
+
function a(b, C) {
|
|
422
|
+
for (var N in C) Object.defineProperty(b, N, {
|
|
423
|
+
enumerable: !0,
|
|
424
|
+
get: C[N]
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
a(h, {
|
|
428
|
+
MutableRequestCookiesAdapter: function() {
|
|
429
|
+
return T;
|
|
430
|
+
},
|
|
431
|
+
ReadonlyRequestCookiesError: function() {
|
|
432
|
+
return v;
|
|
433
|
+
},
|
|
434
|
+
RequestCookiesAdapter: function() {
|
|
435
|
+
return i;
|
|
436
|
+
},
|
|
437
|
+
appendMutableCookies: function() {
|
|
438
|
+
return f;
|
|
439
|
+
},
|
|
440
|
+
areCookiesMutableInCurrentPhase: function() {
|
|
441
|
+
return j;
|
|
442
|
+
},
|
|
443
|
+
createCookiesWithMutableAccessCheck: function() {
|
|
444
|
+
return k;
|
|
445
|
+
},
|
|
446
|
+
getModifiedCookieValues: function() {
|
|
447
|
+
return l;
|
|
448
|
+
},
|
|
449
|
+
responseCookiesToRequestCookies: function() {
|
|
450
|
+
return L;
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
const E = Qt(), R = ot(), g = ge();
|
|
454
|
+
class v extends Error {
|
|
455
|
+
constructor() {
|
|
456
|
+
super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options");
|
|
457
|
+
}
|
|
458
|
+
static callable() {
|
|
459
|
+
throw new v();
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
class i {
|
|
463
|
+
static seal(C) {
|
|
464
|
+
return new Proxy(C, {
|
|
465
|
+
get(N, A, M) {
|
|
466
|
+
switch (A) {
|
|
467
|
+
case "clear":
|
|
468
|
+
case "delete":
|
|
469
|
+
case "set":
|
|
470
|
+
return v.callable;
|
|
471
|
+
default:
|
|
472
|
+
return R.ReflectAdapter.get(N, A, M);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
const p = Symbol.for("next.mutated.cookies");
|
|
479
|
+
function l(b) {
|
|
480
|
+
const C = b[p];
|
|
481
|
+
return !C || !Array.isArray(C) || C.length === 0 ? [] : C;
|
|
482
|
+
}
|
|
483
|
+
function f(b, C) {
|
|
484
|
+
const N = l(C);
|
|
485
|
+
if (N.length === 0)
|
|
486
|
+
return !1;
|
|
487
|
+
const A = new E.ResponseCookies(b), M = A.getAll();
|
|
488
|
+
for (const S of N)
|
|
489
|
+
A.set(S);
|
|
490
|
+
for (const S of M)
|
|
491
|
+
A.set(S);
|
|
492
|
+
return !0;
|
|
493
|
+
}
|
|
494
|
+
class T {
|
|
495
|
+
static wrap(C, N) {
|
|
496
|
+
const A = new E.ResponseCookies(new Headers());
|
|
497
|
+
for (const n of C.getAll())
|
|
498
|
+
A.set(n);
|
|
499
|
+
let M = [];
|
|
500
|
+
const S = /* @__PURE__ */ new Set(), t = () => {
|
|
501
|
+
const n = g.workAsyncStorage.getStore();
|
|
502
|
+
if (n && (n.pathWasRevalidated = !0), M = A.getAll().filter((m) => S.has(m.name)), N) {
|
|
503
|
+
const m = [];
|
|
504
|
+
for (const P of M) {
|
|
505
|
+
const Q = new E.ResponseCookies(new Headers());
|
|
506
|
+
Q.set(P), m.push(Q.toString());
|
|
507
|
+
}
|
|
508
|
+
N(m);
|
|
509
|
+
}
|
|
510
|
+
}, u = new Proxy(A, {
|
|
511
|
+
get(n, s, m) {
|
|
512
|
+
switch (s) {
|
|
513
|
+
// A special symbol to get the modified cookie values
|
|
514
|
+
case p:
|
|
515
|
+
return M;
|
|
516
|
+
// TODO: Throw error if trying to set a cookie after the response
|
|
517
|
+
// headers have been set.
|
|
518
|
+
case "delete":
|
|
519
|
+
return function(...P) {
|
|
520
|
+
S.add(typeof P[0] == "string" ? P[0] : P[0].name);
|
|
521
|
+
try {
|
|
522
|
+
return n.delete(...P), u;
|
|
523
|
+
} finally {
|
|
524
|
+
t();
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
case "set":
|
|
528
|
+
return function(...P) {
|
|
529
|
+
S.add(typeof P[0] == "string" ? P[0] : P[0].name);
|
|
530
|
+
try {
|
|
531
|
+
return n.set(...P), u;
|
|
532
|
+
} finally {
|
|
533
|
+
t();
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
default:
|
|
537
|
+
return R.ReflectAdapter.get(n, s, m);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
return u;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
function k(b) {
|
|
545
|
+
const C = new Proxy(b.mutableCookies, {
|
|
546
|
+
get(N, A, M) {
|
|
547
|
+
switch (A) {
|
|
548
|
+
case "delete":
|
|
549
|
+
return function(...S) {
|
|
550
|
+
return $(b), N.delete(...S), C;
|
|
551
|
+
};
|
|
552
|
+
case "set":
|
|
553
|
+
return function(...S) {
|
|
554
|
+
return $(b), N.set(...S), C;
|
|
555
|
+
};
|
|
556
|
+
default:
|
|
557
|
+
return R.ReflectAdapter.get(N, A, M);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
return C;
|
|
562
|
+
}
|
|
563
|
+
function j(b) {
|
|
564
|
+
return b.phase === "action";
|
|
565
|
+
}
|
|
566
|
+
function $(b, C) {
|
|
567
|
+
if (!j(b))
|
|
568
|
+
throw new v();
|
|
569
|
+
}
|
|
570
|
+
function L(b) {
|
|
571
|
+
const C = new E.RequestCookies(new Headers());
|
|
572
|
+
for (const N of b.getAll())
|
|
573
|
+
C.set(N);
|
|
574
|
+
return C;
|
|
575
|
+
}
|
|
576
|
+
})(Ie)), Ie;
|
|
577
|
+
}
|
|
578
|
+
var We = {}, Xe = {}, Ot;
|
|
579
|
+
function ir() {
|
|
580
|
+
return Ot || (Ot = 1, (function(h) {
|
|
581
|
+
Object.defineProperty(h, "__esModule", {
|
|
582
|
+
value: !0
|
|
583
|
+
}), Object.defineProperty(h, "workUnitAsyncStorageInstance", {
|
|
584
|
+
enumerable: !0,
|
|
585
|
+
get: function() {
|
|
586
|
+
return E;
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
const E = (0, at().createAsyncLocalStorage)();
|
|
590
|
+
})(Xe)), Xe;
|
|
591
|
+
}
|
|
592
|
+
var Se = { exports: {} }, Tt;
|
|
593
|
+
function ur() {
|
|
594
|
+
return Tt || (Tt = 1, (function(h, a) {
|
|
595
|
+
Object.defineProperty(a, "__esModule", {
|
|
596
|
+
value: !0
|
|
597
|
+
});
|
|
598
|
+
function E(u, n) {
|
|
599
|
+
for (var s in n) Object.defineProperty(u, s, {
|
|
600
|
+
enumerable: !0,
|
|
601
|
+
get: n[s]
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
E(a, {
|
|
605
|
+
ACTION_HEADER: function() {
|
|
606
|
+
return g;
|
|
607
|
+
},
|
|
608
|
+
FLIGHT_HEADERS: function() {
|
|
609
|
+
return j;
|
|
610
|
+
},
|
|
611
|
+
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
|
612
|
+
return M;
|
|
613
|
+
},
|
|
614
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
|
615
|
+
return b;
|
|
616
|
+
},
|
|
617
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
618
|
+
return f;
|
|
619
|
+
},
|
|
620
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
|
621
|
+
return l;
|
|
622
|
+
},
|
|
623
|
+
NEXT_HTML_REQUEST_ID_HEADER: function() {
|
|
624
|
+
return t;
|
|
625
|
+
},
|
|
626
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
|
627
|
+
return A;
|
|
628
|
+
},
|
|
629
|
+
NEXT_REQUEST_ID_HEADER: function() {
|
|
630
|
+
return S;
|
|
631
|
+
},
|
|
632
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
633
|
+
return C;
|
|
634
|
+
},
|
|
635
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
636
|
+
return N;
|
|
637
|
+
},
|
|
638
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
639
|
+
return i;
|
|
640
|
+
},
|
|
641
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
642
|
+
return p;
|
|
643
|
+
},
|
|
644
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
645
|
+
return L;
|
|
646
|
+
},
|
|
647
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
648
|
+
return v;
|
|
649
|
+
},
|
|
650
|
+
NEXT_RSC_UNION_QUERY: function() {
|
|
651
|
+
return $;
|
|
652
|
+
},
|
|
653
|
+
NEXT_URL: function() {
|
|
654
|
+
return T;
|
|
655
|
+
},
|
|
656
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
|
657
|
+
return k;
|
|
658
|
+
},
|
|
659
|
+
RSC_HEADER: function() {
|
|
660
|
+
return R;
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
const R = "rsc", g = "next-action", v = "next-router-state-tree", i = "next-router-prefetch", p = "next-router-segment-prefetch", l = "next-hmr-refresh", f = "__next_hmr_refresh_hash__", T = "next-url", k = "text/x-component", j = [
|
|
664
|
+
R,
|
|
665
|
+
v,
|
|
666
|
+
i,
|
|
667
|
+
l,
|
|
668
|
+
p
|
|
669
|
+
], $ = "_rsc", L = "x-nextjs-stale-time", b = "x-nextjs-postponed", C = "x-nextjs-rewritten-path", N = "x-nextjs-rewritten-query", A = "x-nextjs-prerender", M = "x-nextjs-action-not-found", S = "x-nextjs-request-id", t = "x-nextjs-html-request-id";
|
|
670
|
+
(typeof a.default == "function" || typeof a.default == "object" && a.default !== null) && typeof a.default.__esModule > "u" && (Object.defineProperty(a.default, "__esModule", { value: !0 }), Object.assign(a.default, a), h.exports = a.default);
|
|
671
|
+
})(Se, Se.exports)), Se.exports;
|
|
672
|
+
}
|
|
673
|
+
var Be = {}, At;
|
|
674
|
+
function pe() {
|
|
675
|
+
return At || (At = 1, (function(h) {
|
|
676
|
+
Object.defineProperty(h, "__esModule", {
|
|
677
|
+
value: !0
|
|
678
|
+
}), Object.defineProperty(h, "InvariantError", {
|
|
679
|
+
enumerable: !0,
|
|
680
|
+
get: function() {
|
|
681
|
+
return a;
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
class a extends Error {
|
|
685
|
+
constructor(R, g) {
|
|
686
|
+
super(`Invariant: ${R.endsWith(".") ? R : R + "."} This is a bug in Next.js.`, g), this.name = "InvariantError";
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
})(Be)), Be;
|
|
690
|
+
}
|
|
691
|
+
var St;
|
|
692
|
+
function De() {
|
|
693
|
+
return St || (St = 1, (function(h) {
|
|
694
|
+
Object.defineProperty(h, "__esModule", {
|
|
695
|
+
value: !0
|
|
696
|
+
});
|
|
697
|
+
function a(b, C) {
|
|
698
|
+
for (var N in C) Object.defineProperty(b, N, {
|
|
699
|
+
enumerable: !0,
|
|
700
|
+
get: C[N]
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
a(h, {
|
|
704
|
+
getCacheSignal: function() {
|
|
705
|
+
return $;
|
|
706
|
+
},
|
|
707
|
+
getDraftModeProviderForCacheScope: function() {
|
|
708
|
+
return j;
|
|
709
|
+
},
|
|
710
|
+
getHmrRefreshHash: function() {
|
|
711
|
+
return f;
|
|
712
|
+
},
|
|
713
|
+
getPrerenderResumeDataCache: function() {
|
|
714
|
+
return p;
|
|
715
|
+
},
|
|
716
|
+
getRenderResumeDataCache: function() {
|
|
717
|
+
return l;
|
|
718
|
+
},
|
|
719
|
+
getRuntimeStagePromise: function() {
|
|
720
|
+
return L;
|
|
721
|
+
},
|
|
722
|
+
getServerComponentsHmrCache: function() {
|
|
723
|
+
return k;
|
|
724
|
+
},
|
|
725
|
+
isHmrRefresh: function() {
|
|
726
|
+
return T;
|
|
727
|
+
},
|
|
728
|
+
throwForMissingRequestStore: function() {
|
|
729
|
+
return v;
|
|
730
|
+
},
|
|
731
|
+
throwInvariantForMissingStore: function() {
|
|
732
|
+
return i;
|
|
733
|
+
},
|
|
734
|
+
workUnitAsyncStorage: function() {
|
|
735
|
+
return E.workUnitAsyncStorageInstance;
|
|
736
|
+
}
|
|
737
|
+
});
|
|
738
|
+
const E = ir(), R = ur(), g = pe();
|
|
739
|
+
function v(b) {
|
|
740
|
+
throw Object.defineProperty(new Error(`\`${b}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
741
|
+
value: "E251",
|
|
742
|
+
enumerable: !1,
|
|
743
|
+
configurable: !0
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
function i() {
|
|
747
|
+
throw Object.defineProperty(new g.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
|
|
748
|
+
value: "E696",
|
|
749
|
+
enumerable: !1,
|
|
750
|
+
configurable: !0
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
function p(b) {
|
|
754
|
+
switch (b.type) {
|
|
755
|
+
case "prerender":
|
|
756
|
+
case "prerender-runtime":
|
|
757
|
+
case "prerender-ppr":
|
|
758
|
+
return b.prerenderResumeDataCache;
|
|
759
|
+
case "prerender-client":
|
|
760
|
+
return b.prerenderResumeDataCache;
|
|
761
|
+
case "request":
|
|
762
|
+
if (b.prerenderResumeDataCache)
|
|
763
|
+
return b.prerenderResumeDataCache;
|
|
764
|
+
case "prerender-legacy":
|
|
765
|
+
case "cache":
|
|
766
|
+
case "private-cache":
|
|
767
|
+
case "unstable-cache":
|
|
768
|
+
return null;
|
|
769
|
+
default:
|
|
770
|
+
return b;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
function l(b) {
|
|
774
|
+
switch (b.type) {
|
|
775
|
+
case "request":
|
|
776
|
+
case "prerender":
|
|
777
|
+
case "prerender-runtime":
|
|
778
|
+
case "prerender-client":
|
|
779
|
+
if (b.renderResumeDataCache)
|
|
780
|
+
return b.renderResumeDataCache;
|
|
781
|
+
// fallthrough
|
|
782
|
+
case "prerender-ppr":
|
|
783
|
+
return b.prerenderResumeDataCache ?? null;
|
|
784
|
+
case "cache":
|
|
785
|
+
case "private-cache":
|
|
786
|
+
case "unstable-cache":
|
|
787
|
+
case "prerender-legacy":
|
|
788
|
+
return null;
|
|
789
|
+
default:
|
|
790
|
+
return b;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
function f(b, C) {
|
|
794
|
+
if (b.dev)
|
|
795
|
+
switch (C.type) {
|
|
796
|
+
case "cache":
|
|
797
|
+
case "private-cache":
|
|
798
|
+
case "prerender":
|
|
799
|
+
case "prerender-runtime":
|
|
800
|
+
return C.hmrRefreshHash;
|
|
801
|
+
case "request":
|
|
802
|
+
var N;
|
|
803
|
+
return (N = C.cookies.get(R.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : N.value;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
function T(b, C) {
|
|
807
|
+
if (b.dev)
|
|
808
|
+
switch (C.type) {
|
|
809
|
+
case "cache":
|
|
810
|
+
case "private-cache":
|
|
811
|
+
case "request":
|
|
812
|
+
return C.isHmrRefresh ?? !1;
|
|
813
|
+
}
|
|
814
|
+
return !1;
|
|
815
|
+
}
|
|
816
|
+
function k(b, C) {
|
|
817
|
+
if (b.dev)
|
|
818
|
+
switch (C.type) {
|
|
819
|
+
case "cache":
|
|
820
|
+
case "private-cache":
|
|
821
|
+
case "request":
|
|
822
|
+
return C.serverComponentsHmrCache;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
function j(b, C) {
|
|
826
|
+
if (b.isDraftMode)
|
|
827
|
+
switch (C.type) {
|
|
828
|
+
case "cache":
|
|
829
|
+
case "private-cache":
|
|
830
|
+
case "unstable-cache":
|
|
831
|
+
case "prerender-runtime":
|
|
832
|
+
case "request":
|
|
833
|
+
return C.draftMode;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
function $(b) {
|
|
837
|
+
switch (b.type) {
|
|
838
|
+
case "prerender":
|
|
839
|
+
case "prerender-client":
|
|
840
|
+
case "prerender-runtime":
|
|
841
|
+
return b.cacheSignal;
|
|
842
|
+
case "request":
|
|
843
|
+
if (b.cacheSignal)
|
|
844
|
+
return b.cacheSignal;
|
|
845
|
+
case "prerender-ppr":
|
|
846
|
+
case "prerender-legacy":
|
|
847
|
+
case "cache":
|
|
848
|
+
case "private-cache":
|
|
849
|
+
case "unstable-cache":
|
|
850
|
+
return null;
|
|
851
|
+
default:
|
|
852
|
+
return b;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
function L(b) {
|
|
856
|
+
switch (b.type) {
|
|
857
|
+
case "prerender-runtime":
|
|
858
|
+
case "private-cache":
|
|
859
|
+
return b.runtimeStagePromise;
|
|
860
|
+
case "prerender":
|
|
861
|
+
case "prerender-client":
|
|
862
|
+
case "prerender-ppr":
|
|
863
|
+
case "prerender-legacy":
|
|
864
|
+
case "request":
|
|
865
|
+
case "cache":
|
|
866
|
+
case "unstable-cache":
|
|
867
|
+
return null;
|
|
868
|
+
default:
|
|
869
|
+
return b;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
})(We)), We;
|
|
873
|
+
}
|
|
874
|
+
var Ye = {}, ke = { exports: {} }, x = {};
|
|
875
|
+
/**
|
|
876
|
+
* @license React
|
|
877
|
+
* react.production.js
|
|
878
|
+
*
|
|
879
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
880
|
+
*
|
|
881
|
+
* This source code is licensed under the MIT license found in the
|
|
882
|
+
* LICENSE file in the root directory of this source tree.
|
|
883
|
+
*/
|
|
884
|
+
var kt;
|
|
885
|
+
function cr() {
|
|
886
|
+
if (kt) return x;
|
|
887
|
+
kt = 1;
|
|
888
|
+
var h = Symbol.for("react.transitional.element"), a = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), i = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), j = Symbol.iterator;
|
|
889
|
+
function $(r) {
|
|
890
|
+
return r === null || typeof r != "object" ? null : (r = j && r[j] || r["@@iterator"], typeof r == "function" ? r : null);
|
|
891
|
+
}
|
|
892
|
+
var L = {
|
|
893
|
+
isMounted: function() {
|
|
894
|
+
return !1;
|
|
895
|
+
},
|
|
896
|
+
enqueueForceUpdate: function() {
|
|
897
|
+
},
|
|
898
|
+
enqueueReplaceState: function() {
|
|
899
|
+
},
|
|
900
|
+
enqueueSetState: function() {
|
|
901
|
+
}
|
|
902
|
+
}, b = Object.assign, C = {};
|
|
903
|
+
function N(r, y, H) {
|
|
904
|
+
this.props = r, this.context = y, this.refs = C, this.updater = H || L;
|
|
905
|
+
}
|
|
906
|
+
N.prototype.isReactComponent = {}, N.prototype.setState = function(r, y) {
|
|
907
|
+
if (typeof r != "object" && typeof r != "function" && r != null)
|
|
908
|
+
throw Error(
|
|
909
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
910
|
+
);
|
|
911
|
+
this.updater.enqueueSetState(this, r, y, "setState");
|
|
912
|
+
}, N.prototype.forceUpdate = function(r) {
|
|
913
|
+
this.updater.enqueueForceUpdate(this, r, "forceUpdate");
|
|
914
|
+
};
|
|
915
|
+
function A() {
|
|
916
|
+
}
|
|
917
|
+
A.prototype = N.prototype;
|
|
918
|
+
function M(r, y, H) {
|
|
919
|
+
this.props = r, this.context = y, this.refs = C, this.updater = H || L;
|
|
920
|
+
}
|
|
921
|
+
var S = M.prototype = new A();
|
|
922
|
+
S.constructor = M, b(S, N.prototype), S.isPureReactComponent = !0;
|
|
923
|
+
var t = Array.isArray;
|
|
924
|
+
function u() {
|
|
925
|
+
}
|
|
926
|
+
var n = { H: null, A: null, T: null, S: null }, s = Object.prototype.hasOwnProperty;
|
|
927
|
+
function m(r, y, H) {
|
|
928
|
+
var I = H.ref;
|
|
929
|
+
return {
|
|
930
|
+
$$typeof: h,
|
|
931
|
+
type: r,
|
|
932
|
+
key: y,
|
|
933
|
+
ref: I !== void 0 ? I : null,
|
|
934
|
+
props: H
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
function P(r, y) {
|
|
938
|
+
return m(r.type, y, r.props);
|
|
939
|
+
}
|
|
940
|
+
function Q(r) {
|
|
941
|
+
return typeof r == "object" && r !== null && r.$$typeof === h;
|
|
942
|
+
}
|
|
943
|
+
function q(r) {
|
|
944
|
+
var y = { "=": "=0", ":": "=2" };
|
|
945
|
+
return "$" + r.replace(/[=:]/g, function(H) {
|
|
946
|
+
return y[H];
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
var V = /\/+/g;
|
|
950
|
+
function Z(r, y) {
|
|
951
|
+
return typeof r == "object" && r !== null && r.key != null ? q("" + r.key) : y.toString(36);
|
|
952
|
+
}
|
|
953
|
+
function ae(r) {
|
|
954
|
+
switch (r.status) {
|
|
955
|
+
case "fulfilled":
|
|
956
|
+
return r.value;
|
|
957
|
+
case "rejected":
|
|
958
|
+
throw r.reason;
|
|
959
|
+
default:
|
|
960
|
+
switch (typeof r.status == "string" ? r.then(u, u) : (r.status = "pending", r.then(
|
|
961
|
+
function(y) {
|
|
962
|
+
r.status === "pending" && (r.status = "fulfilled", r.value = y);
|
|
963
|
+
},
|
|
964
|
+
function(y) {
|
|
965
|
+
r.status === "pending" && (r.status = "rejected", r.reason = y);
|
|
966
|
+
}
|
|
967
|
+
)), r.status) {
|
|
968
|
+
case "fulfilled":
|
|
969
|
+
return r.value;
|
|
970
|
+
case "rejected":
|
|
971
|
+
throw r.reason;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
throw r;
|
|
975
|
+
}
|
|
976
|
+
function ee(r, y, H, I, Y) {
|
|
977
|
+
var G = typeof r;
|
|
978
|
+
(G === "undefined" || G === "boolean") && (r = null);
|
|
979
|
+
var F = !1;
|
|
980
|
+
if (r === null) F = !0;
|
|
981
|
+
else
|
|
982
|
+
switch (G) {
|
|
983
|
+
case "bigint":
|
|
984
|
+
case "string":
|
|
985
|
+
case "number":
|
|
986
|
+
F = !0;
|
|
987
|
+
break;
|
|
988
|
+
case "object":
|
|
989
|
+
switch (r.$$typeof) {
|
|
990
|
+
case h:
|
|
991
|
+
case a:
|
|
992
|
+
F = !0;
|
|
993
|
+
break;
|
|
994
|
+
case T:
|
|
995
|
+
return F = r._init, ee(
|
|
996
|
+
F(r._payload),
|
|
997
|
+
y,
|
|
998
|
+
H,
|
|
999
|
+
I,
|
|
1000
|
+
Y
|
|
1001
|
+
);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
if (F)
|
|
1005
|
+
return Y = Y(r), F = I === "" ? "." + Z(r, 0) : I, t(Y) ? (H = "", F != null && (H = F.replace(V, "$&/") + "/"), ee(Y, y, H, "", function(ue) {
|
|
1006
|
+
return ue;
|
|
1007
|
+
})) : Y != null && (Q(Y) && (Y = P(
|
|
1008
|
+
Y,
|
|
1009
|
+
H + (Y.key == null || r && r.key === Y.key ? "" : ("" + Y.key).replace(
|
|
1010
|
+
V,
|
|
1011
|
+
"$&/"
|
|
1012
|
+
) + "/") + F
|
|
1013
|
+
)), y.push(Y)), 1;
|
|
1014
|
+
F = 0;
|
|
1015
|
+
var re = I === "" ? "." : I + ":";
|
|
1016
|
+
if (t(r))
|
|
1017
|
+
for (var K = 0; K < r.length; K++)
|
|
1018
|
+
I = r[K], G = re + Z(I, K), F += ee(
|
|
1019
|
+
I,
|
|
1020
|
+
y,
|
|
1021
|
+
H,
|
|
1022
|
+
G,
|
|
1023
|
+
Y
|
|
1024
|
+
);
|
|
1025
|
+
else if (K = $(r), typeof K == "function")
|
|
1026
|
+
for (r = K.call(r), K = 0; !(I = r.next()).done; )
|
|
1027
|
+
I = I.value, G = re + Z(I, K++), F += ee(
|
|
1028
|
+
I,
|
|
1029
|
+
y,
|
|
1030
|
+
H,
|
|
1031
|
+
G,
|
|
1032
|
+
Y
|
|
1033
|
+
);
|
|
1034
|
+
else if (G === "object") {
|
|
1035
|
+
if (typeof r.then == "function")
|
|
1036
|
+
return ee(
|
|
1037
|
+
ae(r),
|
|
1038
|
+
y,
|
|
1039
|
+
H,
|
|
1040
|
+
I,
|
|
1041
|
+
Y
|
|
1042
|
+
);
|
|
1043
|
+
throw y = String(r), Error(
|
|
1044
|
+
"Objects are not valid as a React child (found: " + (y === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : y) + "). If you meant to render a collection of children, use an array instead."
|
|
1045
|
+
);
|
|
1046
|
+
}
|
|
1047
|
+
return F;
|
|
1048
|
+
}
|
|
1049
|
+
function oe(r, y, H) {
|
|
1050
|
+
if (r == null) return r;
|
|
1051
|
+
var I = [], Y = 0;
|
|
1052
|
+
return ee(r, I, "", "", function(G) {
|
|
1053
|
+
return y.call(H, G, Y++);
|
|
1054
|
+
}), I;
|
|
1055
|
+
}
|
|
1056
|
+
function ie(r) {
|
|
1057
|
+
if (r._status === -1) {
|
|
1058
|
+
var y = r._result;
|
|
1059
|
+
y = y(), y.then(
|
|
1060
|
+
function(H) {
|
|
1061
|
+
(r._status === 0 || r._status === -1) && (r._status = 1, r._result = H);
|
|
1062
|
+
},
|
|
1063
|
+
function(H) {
|
|
1064
|
+
(r._status === 0 || r._status === -1) && (r._status = 2, r._result = H);
|
|
1065
|
+
}
|
|
1066
|
+
), r._status === -1 && (r._status = 0, r._result = y);
|
|
1067
|
+
}
|
|
1068
|
+
if (r._status === 1) return r._result.default;
|
|
1069
|
+
throw r._result;
|
|
1070
|
+
}
|
|
1071
|
+
var se = typeof reportError == "function" ? reportError : function(r) {
|
|
1072
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1073
|
+
var y = new window.ErrorEvent("error", {
|
|
1074
|
+
bubbles: !0,
|
|
1075
|
+
cancelable: !0,
|
|
1076
|
+
message: typeof r == "object" && r !== null && typeof r.message == "string" ? String(r.message) : String(r),
|
|
1077
|
+
error: r
|
|
1078
|
+
});
|
|
1079
|
+
if (!window.dispatchEvent(y)) return;
|
|
1080
|
+
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1081
|
+
process.emit("uncaughtException", r);
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
console.error(r);
|
|
1085
|
+
}, ce = {
|
|
1086
|
+
map: oe,
|
|
1087
|
+
forEach: function(r, y, H) {
|
|
1088
|
+
oe(
|
|
1089
|
+
r,
|
|
1090
|
+
function() {
|
|
1091
|
+
y.apply(this, arguments);
|
|
1092
|
+
},
|
|
1093
|
+
H
|
|
1094
|
+
);
|
|
1095
|
+
},
|
|
1096
|
+
count: function(r) {
|
|
1097
|
+
var y = 0;
|
|
1098
|
+
return oe(r, function() {
|
|
1099
|
+
y++;
|
|
1100
|
+
}), y;
|
|
1101
|
+
},
|
|
1102
|
+
toArray: function(r) {
|
|
1103
|
+
return oe(r, function(y) {
|
|
1104
|
+
return y;
|
|
1105
|
+
}) || [];
|
|
1106
|
+
},
|
|
1107
|
+
only: function(r) {
|
|
1108
|
+
if (!Q(r))
|
|
1109
|
+
throw Error(
|
|
1110
|
+
"React.Children.only expected to receive a single React element child."
|
|
1111
|
+
);
|
|
1112
|
+
return r;
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
return x.Activity = k, x.Children = ce, x.Component = N, x.Fragment = E, x.Profiler = g, x.PureComponent = M, x.StrictMode = R, x.Suspense = l, x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, x.__COMPILER_RUNTIME = {
|
|
1116
|
+
__proto__: null,
|
|
1117
|
+
c: function(r) {
|
|
1118
|
+
return n.H.useMemoCache(r);
|
|
1119
|
+
}
|
|
1120
|
+
}, x.cache = function(r) {
|
|
1121
|
+
return function() {
|
|
1122
|
+
return r.apply(null, arguments);
|
|
1123
|
+
};
|
|
1124
|
+
}, x.cacheSignal = function() {
|
|
1125
|
+
return null;
|
|
1126
|
+
}, x.cloneElement = function(r, y, H) {
|
|
1127
|
+
if (r == null)
|
|
1128
|
+
throw Error(
|
|
1129
|
+
"The argument must be a React element, but you passed " + r + "."
|
|
1130
|
+
);
|
|
1131
|
+
var I = b({}, r.props), Y = r.key;
|
|
1132
|
+
if (y != null)
|
|
1133
|
+
for (G in y.key !== void 0 && (Y = "" + y.key), y)
|
|
1134
|
+
!s.call(y, G) || G === "key" || G === "__self" || G === "__source" || G === "ref" && y.ref === void 0 || (I[G] = y[G]);
|
|
1135
|
+
var G = arguments.length - 2;
|
|
1136
|
+
if (G === 1) I.children = H;
|
|
1137
|
+
else if (1 < G) {
|
|
1138
|
+
for (var F = Array(G), re = 0; re < G; re++)
|
|
1139
|
+
F[re] = arguments[re + 2];
|
|
1140
|
+
I.children = F;
|
|
1141
|
+
}
|
|
1142
|
+
return m(r.type, Y, I);
|
|
1143
|
+
}, x.createContext = function(r) {
|
|
1144
|
+
return r = {
|
|
1145
|
+
$$typeof: i,
|
|
1146
|
+
_currentValue: r,
|
|
1147
|
+
_currentValue2: r,
|
|
1148
|
+
_threadCount: 0,
|
|
1149
|
+
Provider: null,
|
|
1150
|
+
Consumer: null
|
|
1151
|
+
}, r.Provider = r, r.Consumer = {
|
|
1152
|
+
$$typeof: v,
|
|
1153
|
+
_context: r
|
|
1154
|
+
}, r;
|
|
1155
|
+
}, x.createElement = function(r, y, H) {
|
|
1156
|
+
var I, Y = {}, G = null;
|
|
1157
|
+
if (y != null)
|
|
1158
|
+
for (I in y.key !== void 0 && (G = "" + y.key), y)
|
|
1159
|
+
s.call(y, I) && I !== "key" && I !== "__self" && I !== "__source" && (Y[I] = y[I]);
|
|
1160
|
+
var F = arguments.length - 2;
|
|
1161
|
+
if (F === 1) Y.children = H;
|
|
1162
|
+
else if (1 < F) {
|
|
1163
|
+
for (var re = Array(F), K = 0; K < F; K++)
|
|
1164
|
+
re[K] = arguments[K + 2];
|
|
1165
|
+
Y.children = re;
|
|
1166
|
+
}
|
|
1167
|
+
if (r && r.defaultProps)
|
|
1168
|
+
for (I in F = r.defaultProps, F)
|
|
1169
|
+
Y[I] === void 0 && (Y[I] = F[I]);
|
|
1170
|
+
return m(r, G, Y);
|
|
1171
|
+
}, x.createRef = function() {
|
|
1172
|
+
return { current: null };
|
|
1173
|
+
}, x.forwardRef = function(r) {
|
|
1174
|
+
return { $$typeof: p, render: r };
|
|
1175
|
+
}, x.isValidElement = Q, x.lazy = function(r) {
|
|
1176
|
+
return {
|
|
1177
|
+
$$typeof: T,
|
|
1178
|
+
_payload: { _status: -1, _result: r },
|
|
1179
|
+
_init: ie
|
|
1180
|
+
};
|
|
1181
|
+
}, x.memo = function(r, y) {
|
|
1182
|
+
return {
|
|
1183
|
+
$$typeof: f,
|
|
1184
|
+
type: r,
|
|
1185
|
+
compare: y === void 0 ? null : y
|
|
1186
|
+
};
|
|
1187
|
+
}, x.startTransition = function(r) {
|
|
1188
|
+
var y = n.T, H = {};
|
|
1189
|
+
n.T = H;
|
|
1190
|
+
try {
|
|
1191
|
+
var I = r(), Y = n.S;
|
|
1192
|
+
Y !== null && Y(H, I), typeof I == "object" && I !== null && typeof I.then == "function" && I.then(u, se);
|
|
1193
|
+
} catch (G) {
|
|
1194
|
+
se(G);
|
|
1195
|
+
} finally {
|
|
1196
|
+
y !== null && H.types !== null && (y.types = H.types), n.T = y;
|
|
1197
|
+
}
|
|
1198
|
+
}, x.unstable_useCacheRefresh = function() {
|
|
1199
|
+
return n.H.useCacheRefresh();
|
|
1200
|
+
}, x.use = function(r) {
|
|
1201
|
+
return n.H.use(r);
|
|
1202
|
+
}, x.useActionState = function(r, y, H) {
|
|
1203
|
+
return n.H.useActionState(r, y, H);
|
|
1204
|
+
}, x.useCallback = function(r, y) {
|
|
1205
|
+
return n.H.useCallback(r, y);
|
|
1206
|
+
}, x.useContext = function(r) {
|
|
1207
|
+
return n.H.useContext(r);
|
|
1208
|
+
}, x.useDebugValue = function() {
|
|
1209
|
+
}, x.useDeferredValue = function(r, y) {
|
|
1210
|
+
return n.H.useDeferredValue(r, y);
|
|
1211
|
+
}, x.useEffect = function(r, y) {
|
|
1212
|
+
return n.H.useEffect(r, y);
|
|
1213
|
+
}, x.useEffectEvent = function(r) {
|
|
1214
|
+
return n.H.useEffectEvent(r);
|
|
1215
|
+
}, x.useId = function() {
|
|
1216
|
+
return n.H.useId();
|
|
1217
|
+
}, x.useImperativeHandle = function(r, y, H) {
|
|
1218
|
+
return n.H.useImperativeHandle(r, y, H);
|
|
1219
|
+
}, x.useInsertionEffect = function(r, y) {
|
|
1220
|
+
return n.H.useInsertionEffect(r, y);
|
|
1221
|
+
}, x.useLayoutEffect = function(r, y) {
|
|
1222
|
+
return n.H.useLayoutEffect(r, y);
|
|
1223
|
+
}, x.useMemo = function(r, y) {
|
|
1224
|
+
return n.H.useMemo(r, y);
|
|
1225
|
+
}, x.useOptimistic = function(r, y) {
|
|
1226
|
+
return n.H.useOptimistic(r, y);
|
|
1227
|
+
}, x.useReducer = function(r, y, H) {
|
|
1228
|
+
return n.H.useReducer(r, y, H);
|
|
1229
|
+
}, x.useRef = function(r) {
|
|
1230
|
+
return n.H.useRef(r);
|
|
1231
|
+
}, x.useState = function(r) {
|
|
1232
|
+
return n.H.useState(r);
|
|
1233
|
+
}, x.useSyncExternalStore = function(r, y, H) {
|
|
1234
|
+
return n.H.useSyncExternalStore(
|
|
1235
|
+
r,
|
|
1236
|
+
y,
|
|
1237
|
+
H
|
|
1238
|
+
);
|
|
1239
|
+
}, x.useTransition = function() {
|
|
1240
|
+
return n.H.useTransition();
|
|
1241
|
+
}, x.version = "19.2.3", x;
|
|
1242
|
+
}
|
|
1243
|
+
var me = { exports: {} };
|
|
1244
|
+
/**
|
|
1245
|
+
* @license React
|
|
1246
|
+
* react.development.js
|
|
1247
|
+
*
|
|
1248
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1249
|
+
*
|
|
1250
|
+
* This source code is licensed under the MIT license found in the
|
|
1251
|
+
* LICENSE file in the root directory of this source tree.
|
|
1252
|
+
*/
|
|
1253
|
+
me.exports;
|
|
1254
|
+
var Ct;
|
|
1255
|
+
function fr() {
|
|
1256
|
+
return Ct || (Ct = 1, (function(h, a) {
|
|
1257
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
1258
|
+
function E(e, o) {
|
|
1259
|
+
Object.defineProperty(v.prototype, e, {
|
|
1260
|
+
get: function() {
|
|
1261
|
+
console.warn(
|
|
1262
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
1263
|
+
o[0],
|
|
1264
|
+
o[1]
|
|
1265
|
+
);
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
function R(e) {
|
|
1270
|
+
return e === null || typeof e != "object" ? null : (e = be && e[be] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1271
|
+
}
|
|
1272
|
+
function g(e, o) {
|
|
1273
|
+
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
1274
|
+
var _ = e + "." + o;
|
|
1275
|
+
ve[_] || (console.error(
|
|
1276
|
+
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
1277
|
+
o,
|
|
1278
|
+
e
|
|
1279
|
+
), ve[_] = !0);
|
|
1280
|
+
}
|
|
1281
|
+
function v(e, o, _) {
|
|
1282
|
+
this.props = e, this.context = o, this.refs = he, this.updater = _ || we;
|
|
1283
|
+
}
|
|
1284
|
+
function i() {
|
|
1285
|
+
}
|
|
1286
|
+
function p(e, o, _) {
|
|
1287
|
+
this.props = e, this.context = o, this.refs = he, this.updater = _ || we;
|
|
1288
|
+
}
|
|
1289
|
+
function l() {
|
|
1290
|
+
}
|
|
1291
|
+
function f(e) {
|
|
1292
|
+
return "" + e;
|
|
1293
|
+
}
|
|
1294
|
+
function T(e) {
|
|
1295
|
+
try {
|
|
1296
|
+
f(e);
|
|
1297
|
+
var o = !1;
|
|
1298
|
+
} catch {
|
|
1299
|
+
o = !0;
|
|
1300
|
+
}
|
|
1301
|
+
if (o) {
|
|
1302
|
+
o = console;
|
|
1303
|
+
var _ = o.error, O = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1304
|
+
return _.call(
|
|
1305
|
+
o,
|
|
1306
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1307
|
+
O
|
|
1308
|
+
), f(e);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
function k(e) {
|
|
1312
|
+
if (e == null) return null;
|
|
1313
|
+
if (typeof e == "function")
|
|
1314
|
+
return e.$$typeof === w ? null : e.displayName || e.name || null;
|
|
1315
|
+
if (typeof e == "string") return e;
|
|
1316
|
+
switch (e) {
|
|
1317
|
+
case r:
|
|
1318
|
+
return "Fragment";
|
|
1319
|
+
case H:
|
|
1320
|
+
return "Profiler";
|
|
1321
|
+
case y:
|
|
1322
|
+
return "StrictMode";
|
|
1323
|
+
case F:
|
|
1324
|
+
return "Suspense";
|
|
1325
|
+
case re:
|
|
1326
|
+
return "SuspenseList";
|
|
1327
|
+
case Re:
|
|
1328
|
+
return "Activity";
|
|
1329
|
+
}
|
|
1330
|
+
if (typeof e == "object")
|
|
1331
|
+
switch (typeof e.tag == "number" && console.error(
|
|
1332
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1333
|
+
), e.$$typeof) {
|
|
1334
|
+
case ce:
|
|
1335
|
+
return "Portal";
|
|
1336
|
+
case Y:
|
|
1337
|
+
return e.displayName || "Context";
|
|
1338
|
+
case I:
|
|
1339
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
1340
|
+
case G:
|
|
1341
|
+
var o = e.render;
|
|
1342
|
+
return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
1343
|
+
case K:
|
|
1344
|
+
return o = e.displayName || null, o !== null ? o : k(e.type) || "Memo";
|
|
1345
|
+
case ue:
|
|
1346
|
+
o = e._payload, e = e._init;
|
|
1347
|
+
try {
|
|
1348
|
+
return k(e(o));
|
|
1349
|
+
} catch {
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
return null;
|
|
1353
|
+
}
|
|
1354
|
+
function j(e) {
|
|
1355
|
+
if (e === r) return "<>";
|
|
1356
|
+
if (typeof e == "object" && e !== null && e.$$typeof === ue)
|
|
1357
|
+
return "<...>";
|
|
1358
|
+
try {
|
|
1359
|
+
var o = k(e);
|
|
1360
|
+
return o ? "<" + o + ">" : "<...>";
|
|
1361
|
+
} catch {
|
|
1362
|
+
return "<...>";
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
function $() {
|
|
1366
|
+
var e = d.A;
|
|
1367
|
+
return e === null ? null : e.getOwner();
|
|
1368
|
+
}
|
|
1369
|
+
function L() {
|
|
1370
|
+
return Error("react-stack-top-frame");
|
|
1371
|
+
}
|
|
1372
|
+
function b(e) {
|
|
1373
|
+
if (U.call(e, "key")) {
|
|
1374
|
+
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1375
|
+
if (o && o.isReactWarning) return !1;
|
|
1376
|
+
}
|
|
1377
|
+
return e.key !== void 0;
|
|
1378
|
+
}
|
|
1379
|
+
function C(e, o) {
|
|
1380
|
+
function _() {
|
|
1381
|
+
J || (J = !0, console.error(
|
|
1382
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
1383
|
+
o
|
|
1384
|
+
));
|
|
1385
|
+
}
|
|
1386
|
+
_.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1387
|
+
get: _,
|
|
1388
|
+
configurable: !0
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
function N() {
|
|
1392
|
+
var e = k(this.type);
|
|
1393
|
+
return lt[e] || (lt[e] = !0, console.error(
|
|
1394
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1395
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
1396
|
+
}
|
|
1397
|
+
function A(e, o, _, O, D, X) {
|
|
1398
|
+
var W = _.ref;
|
|
1399
|
+
return e = {
|
|
1400
|
+
$$typeof: se,
|
|
1401
|
+
type: e,
|
|
1402
|
+
key: o,
|
|
1403
|
+
props: _,
|
|
1404
|
+
_owner: O
|
|
1405
|
+
}, (W !== void 0 ? W : null) !== null ? Object.defineProperty(e, "ref", {
|
|
1406
|
+
enumerable: !1,
|
|
1407
|
+
get: N
|
|
1408
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
1409
|
+
configurable: !1,
|
|
1410
|
+
enumerable: !1,
|
|
1411
|
+
writable: !0,
|
|
1412
|
+
value: 0
|
|
1413
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
1414
|
+
configurable: !1,
|
|
1415
|
+
enumerable: !1,
|
|
1416
|
+
writable: !0,
|
|
1417
|
+
value: null
|
|
1418
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
1419
|
+
configurable: !1,
|
|
1420
|
+
enumerable: !1,
|
|
1421
|
+
writable: !0,
|
|
1422
|
+
value: D
|
|
1423
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
1424
|
+
configurable: !1,
|
|
1425
|
+
enumerable: !1,
|
|
1426
|
+
writable: !0,
|
|
1427
|
+
value: X
|
|
1428
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
1429
|
+
}
|
|
1430
|
+
function M(e, o) {
|
|
1431
|
+
return o = A(
|
|
1432
|
+
e.type,
|
|
1433
|
+
o,
|
|
1434
|
+
e.props,
|
|
1435
|
+
e._owner,
|
|
1436
|
+
e._debugStack,
|
|
1437
|
+
e._debugTask
|
|
1438
|
+
), e._store && (o._store.validated = e._store.validated), o;
|
|
1439
|
+
}
|
|
1440
|
+
function S(e) {
|
|
1441
|
+
t(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === ue && (e._payload.status === "fulfilled" ? t(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
1442
|
+
}
|
|
1443
|
+
function t(e) {
|
|
1444
|
+
return typeof e == "object" && e !== null && e.$$typeof === se;
|
|
1445
|
+
}
|
|
1446
|
+
function u(e) {
|
|
1447
|
+
var o = { "=": "=0", ":": "=2" };
|
|
1448
|
+
return "$" + e.replace(/[=:]/g, function(_) {
|
|
1449
|
+
return o[_];
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
function n(e, o) {
|
|
1453
|
+
return typeof e == "object" && e !== null && e.key != null ? (T(e.key), u("" + e.key)) : o.toString(36);
|
|
1454
|
+
}
|
|
1455
|
+
function s(e) {
|
|
1456
|
+
switch (e.status) {
|
|
1457
|
+
case "fulfilled":
|
|
1458
|
+
return e.value;
|
|
1459
|
+
case "rejected":
|
|
1460
|
+
throw e.reason;
|
|
1461
|
+
default:
|
|
1462
|
+
switch (typeof e.status == "string" ? e.then(l, l) : (e.status = "pending", e.then(
|
|
1463
|
+
function(o) {
|
|
1464
|
+
e.status === "pending" && (e.status = "fulfilled", e.value = o);
|
|
1465
|
+
},
|
|
1466
|
+
function(o) {
|
|
1467
|
+
e.status === "pending" && (e.status = "rejected", e.reason = o);
|
|
1468
|
+
}
|
|
1469
|
+
)), e.status) {
|
|
1470
|
+
case "fulfilled":
|
|
1471
|
+
return e.value;
|
|
1472
|
+
case "rejected":
|
|
1473
|
+
throw e.reason;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
throw e;
|
|
1477
|
+
}
|
|
1478
|
+
function m(e, o, _, O, D) {
|
|
1479
|
+
var X = typeof e;
|
|
1480
|
+
(X === "undefined" || X === "boolean") && (e = null);
|
|
1481
|
+
var W = !1;
|
|
1482
|
+
if (e === null) W = !0;
|
|
1483
|
+
else
|
|
1484
|
+
switch (X) {
|
|
1485
|
+
case "bigint":
|
|
1486
|
+
case "string":
|
|
1487
|
+
case "number":
|
|
1488
|
+
W = !0;
|
|
1489
|
+
break;
|
|
1490
|
+
case "object":
|
|
1491
|
+
switch (e.$$typeof) {
|
|
1492
|
+
case se:
|
|
1493
|
+
case ce:
|
|
1494
|
+
W = !0;
|
|
1495
|
+
break;
|
|
1496
|
+
case ue:
|
|
1497
|
+
return W = e._init, m(
|
|
1498
|
+
W(e._payload),
|
|
1499
|
+
o,
|
|
1500
|
+
_,
|
|
1501
|
+
O,
|
|
1502
|
+
D
|
|
1503
|
+
);
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
if (W) {
|
|
1507
|
+
W = e, D = D(W);
|
|
1508
|
+
var z = O === "" ? "." + n(W, 0) : O;
|
|
1509
|
+
return c(D) ? (_ = "", z != null && (_ = z.replace(pt, "$&/") + "/"), m(D, o, _, "", function(fe) {
|
|
1510
|
+
return fe;
|
|
1511
|
+
})) : D != null && (t(D) && (D.key != null && (W && W.key === D.key || T(D.key)), _ = M(
|
|
1512
|
+
D,
|
|
1513
|
+
_ + (D.key == null || W && W.key === D.key ? "" : ("" + D.key).replace(
|
|
1514
|
+
pt,
|
|
1515
|
+
"$&/"
|
|
1516
|
+
) + "/") + z
|
|
1517
|
+
), O !== "" && W != null && t(W) && W.key == null && W._store && !W._store.validated && (_._store.validated = 2), D = _), o.push(D)), 1;
|
|
1518
|
+
}
|
|
1519
|
+
if (W = 0, z = O === "" ? "." : O + ":", c(e))
|
|
1520
|
+
for (var B = 0; B < e.length; B++)
|
|
1521
|
+
O = e[B], X = z + n(O, B), W += m(
|
|
1522
|
+
O,
|
|
1523
|
+
o,
|
|
1524
|
+
_,
|
|
1525
|
+
X,
|
|
1526
|
+
D
|
|
1527
|
+
);
|
|
1528
|
+
else if (B = R(e), typeof B == "function")
|
|
1529
|
+
for (B === e.entries && (dt || console.warn(
|
|
1530
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
1531
|
+
), dt = !0), e = B.call(e), B = 0; !(O = e.next()).done; )
|
|
1532
|
+
O = O.value, X = z + n(O, B++), W += m(
|
|
1533
|
+
O,
|
|
1534
|
+
o,
|
|
1535
|
+
_,
|
|
1536
|
+
X,
|
|
1537
|
+
D
|
|
1538
|
+
);
|
|
1539
|
+
else if (X === "object") {
|
|
1540
|
+
if (typeof e.then == "function")
|
|
1541
|
+
return m(
|
|
1542
|
+
s(e),
|
|
1543
|
+
o,
|
|
1544
|
+
_,
|
|
1545
|
+
O,
|
|
1546
|
+
D
|
|
1547
|
+
);
|
|
1548
|
+
throw o = String(e), Error(
|
|
1549
|
+
"Objects are not valid as a React child (found: " + (o === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : o) + "). If you meant to render a collection of children, use an array instead."
|
|
1550
|
+
);
|
|
1551
|
+
}
|
|
1552
|
+
return W;
|
|
1553
|
+
}
|
|
1554
|
+
function P(e, o, _) {
|
|
1555
|
+
if (e == null) return e;
|
|
1556
|
+
var O = [], D = 0;
|
|
1557
|
+
return m(e, O, "", "", function(X) {
|
|
1558
|
+
return o.call(_, X, D++);
|
|
1559
|
+
}), O;
|
|
1560
|
+
}
|
|
1561
|
+
function Q(e) {
|
|
1562
|
+
if (e._status === -1) {
|
|
1563
|
+
var o = e._ioInfo;
|
|
1564
|
+
o != null && (o.start = o.end = performance.now()), o = e._result;
|
|
1565
|
+
var _ = o();
|
|
1566
|
+
if (_.then(
|
|
1567
|
+
function(D) {
|
|
1568
|
+
if (e._status === 0 || e._status === -1) {
|
|
1569
|
+
e._status = 1, e._result = D;
|
|
1570
|
+
var X = e._ioInfo;
|
|
1571
|
+
X != null && (X.end = performance.now()), _.status === void 0 && (_.status = "fulfilled", _.value = D);
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
function(D) {
|
|
1575
|
+
if (e._status === 0 || e._status === -1) {
|
|
1576
|
+
e._status = 2, e._result = D;
|
|
1577
|
+
var X = e._ioInfo;
|
|
1578
|
+
X != null && (X.end = performance.now()), _.status === void 0 && (_.status = "rejected", _.reason = D);
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
), o = e._ioInfo, o != null) {
|
|
1582
|
+
o.value = _;
|
|
1583
|
+
var O = _.displayName;
|
|
1584
|
+
typeof O == "string" && (o.name = O);
|
|
1585
|
+
}
|
|
1586
|
+
e._status === -1 && (e._status = 0, e._result = _);
|
|
1587
|
+
}
|
|
1588
|
+
if (e._status === 1)
|
|
1589
|
+
return o = e._result, o === void 0 && console.error(
|
|
1590
|
+
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1591
|
+
|
|
1592
|
+
Your code should look like:
|
|
1593
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
1594
|
+
|
|
1595
|
+
Did you accidentally put curly braces around the import?`,
|
|
1596
|
+
o
|
|
1597
|
+
), "default" in o || console.error(
|
|
1598
|
+
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1599
|
+
|
|
1600
|
+
Your code should look like:
|
|
1601
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
1602
|
+
o
|
|
1603
|
+
), o.default;
|
|
1604
|
+
throw e._result;
|
|
1605
|
+
}
|
|
1606
|
+
function q() {
|
|
1607
|
+
var e = d.H;
|
|
1608
|
+
return e === null && console.error(
|
|
1609
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1610
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
1611
|
+
2. You might be breaking the Rules of Hooks
|
|
1612
|
+
3. You might have more than one copy of React in the same app
|
|
1613
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
1614
|
+
), e;
|
|
1615
|
+
}
|
|
1616
|
+
function V() {
|
|
1617
|
+
d.asyncTransitions--;
|
|
1618
|
+
}
|
|
1619
|
+
function Z(e) {
|
|
1620
|
+
if (Oe === null)
|
|
1621
|
+
try {
|
|
1622
|
+
var o = ("require" + Math.random()).slice(0, 7);
|
|
1623
|
+
Oe = (h && h[o]).call(
|
|
1624
|
+
h,
|
|
1625
|
+
"timers"
|
|
1626
|
+
).setImmediate;
|
|
1627
|
+
} catch {
|
|
1628
|
+
Oe = function(O) {
|
|
1629
|
+
yt === !1 && (yt = !0, typeof MessageChannel > "u" && console.error(
|
|
1630
|
+
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
1631
|
+
));
|
|
1632
|
+
var D = new MessageChannel();
|
|
1633
|
+
D.port1.onmessage = O, D.port2.postMessage(void 0);
|
|
1634
|
+
};
|
|
1635
|
+
}
|
|
1636
|
+
return Oe(e);
|
|
1637
|
+
}
|
|
1638
|
+
function ae(e) {
|
|
1639
|
+
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
1640
|
+
}
|
|
1641
|
+
function ee(e, o) {
|
|
1642
|
+
o !== Te - 1 && console.error(
|
|
1643
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
1644
|
+
), Te = o;
|
|
1645
|
+
}
|
|
1646
|
+
function oe(e, o, _) {
|
|
1647
|
+
var O = d.actQueue;
|
|
1648
|
+
if (O !== null)
|
|
1649
|
+
if (O.length !== 0)
|
|
1650
|
+
try {
|
|
1651
|
+
ie(O), Z(function() {
|
|
1652
|
+
return oe(e, o, _);
|
|
1653
|
+
});
|
|
1654
|
+
return;
|
|
1655
|
+
} catch (D) {
|
|
1656
|
+
d.thrownErrors.push(D);
|
|
1657
|
+
}
|
|
1658
|
+
else d.actQueue = null;
|
|
1659
|
+
0 < d.thrownErrors.length ? (O = ae(d.thrownErrors), d.thrownErrors.length = 0, _(O)) : o(e);
|
|
1660
|
+
}
|
|
1661
|
+
function ie(e) {
|
|
1662
|
+
if (!je) {
|
|
1663
|
+
je = !0;
|
|
1664
|
+
var o = 0;
|
|
1665
|
+
try {
|
|
1666
|
+
for (; o < e.length; o++) {
|
|
1667
|
+
var _ = e[o];
|
|
1668
|
+
do {
|
|
1669
|
+
d.didUsePromise = !1;
|
|
1670
|
+
var O = _(!1);
|
|
1671
|
+
if (O !== null) {
|
|
1672
|
+
if (d.didUsePromise) {
|
|
1673
|
+
e[o] = _, e.splice(0, o);
|
|
1674
|
+
return;
|
|
1675
|
+
}
|
|
1676
|
+
_ = O;
|
|
1677
|
+
} else break;
|
|
1678
|
+
} while (!0);
|
|
1679
|
+
}
|
|
1680
|
+
e.length = 0;
|
|
1681
|
+
} catch (D) {
|
|
1682
|
+
e.splice(0, o + 1), d.thrownErrors.push(D);
|
|
1683
|
+
} finally {
|
|
1684
|
+
je = !1;
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1689
|
+
var se = Symbol.for("react.transitional.element"), ce = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), H = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), Y = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), ue = Symbol.for("react.lazy"), Re = Symbol.for("react.activity"), be = Symbol.iterator, ve = {}, we = {
|
|
1690
|
+
isMounted: function() {
|
|
1691
|
+
return !1;
|
|
1692
|
+
},
|
|
1693
|
+
enqueueForceUpdate: function(e) {
|
|
1694
|
+
g(e, "forceUpdate");
|
|
1695
|
+
},
|
|
1696
|
+
enqueueReplaceState: function(e) {
|
|
1697
|
+
g(e, "replaceState");
|
|
1698
|
+
},
|
|
1699
|
+
enqueueSetState: function(e) {
|
|
1700
|
+
g(e, "setState");
|
|
1701
|
+
}
|
|
1702
|
+
}, le = Object.assign, he = {};
|
|
1703
|
+
Object.freeze(he), v.prototype.isReactComponent = {}, v.prototype.setState = function(e, o) {
|
|
1704
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1705
|
+
throw Error(
|
|
1706
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1707
|
+
);
|
|
1708
|
+
this.updater.enqueueSetState(this, e, o, "setState");
|
|
1709
|
+
}, v.prototype.forceUpdate = function(e) {
|
|
1710
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1711
|
+
};
|
|
1712
|
+
var ne = {
|
|
1713
|
+
isMounted: [
|
|
1714
|
+
"isMounted",
|
|
1715
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1716
|
+
],
|
|
1717
|
+
replaceState: [
|
|
1718
|
+
"replaceState",
|
|
1719
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1720
|
+
]
|
|
1721
|
+
};
|
|
1722
|
+
for (ye in ne)
|
|
1723
|
+
ne.hasOwnProperty(ye) && E(ye, ne[ye]);
|
|
1724
|
+
i.prototype = v.prototype, ne = p.prototype = new i(), ne.constructor = p, le(ne, v.prototype), ne.isPureReactComponent = !0;
|
|
1725
|
+
var c = Array.isArray, w = Symbol.for("react.client.reference"), d = {
|
|
1726
|
+
H: null,
|
|
1727
|
+
A: null,
|
|
1728
|
+
T: null,
|
|
1729
|
+
S: null,
|
|
1730
|
+
actQueue: null,
|
|
1731
|
+
asyncTransitions: 0,
|
|
1732
|
+
isBatchingLegacy: !1,
|
|
1733
|
+
didScheduleLegacyUpdate: !1,
|
|
1734
|
+
didUsePromise: !1,
|
|
1735
|
+
thrownErrors: [],
|
|
1736
|
+
getCurrentStack: null,
|
|
1737
|
+
recentlyCreatedOwnerStacks: 0
|
|
1738
|
+
}, U = Object.prototype.hasOwnProperty, te = console.createTask ? console.createTask : function() {
|
|
1739
|
+
return null;
|
|
1740
|
+
};
|
|
1741
|
+
ne = {
|
|
1742
|
+
react_stack_bottom_frame: function(e) {
|
|
1743
|
+
return e();
|
|
1744
|
+
}
|
|
1745
|
+
};
|
|
1746
|
+
var J, ft, lt = {}, Jt = ne.react_stack_bottom_frame.bind(
|
|
1747
|
+
ne,
|
|
1748
|
+
L
|
|
1749
|
+
)(), er = te(j(L)), dt = !1, pt = /\/+/g, ht = typeof reportError == "function" ? reportError : function(e) {
|
|
1750
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1751
|
+
var o = new window.ErrorEvent("error", {
|
|
1752
|
+
bubbles: !0,
|
|
1753
|
+
cancelable: !0,
|
|
1754
|
+
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
1755
|
+
error: e
|
|
1756
|
+
});
|
|
1757
|
+
if (!window.dispatchEvent(o)) return;
|
|
1758
|
+
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1759
|
+
process.emit("uncaughtException", e);
|
|
1760
|
+
return;
|
|
1761
|
+
}
|
|
1762
|
+
console.error(e);
|
|
1763
|
+
}, yt = !1, Oe = null, Te = 0, Ae = !1, je = !1, _t = typeof queueMicrotask == "function" ? function(e) {
|
|
1764
|
+
queueMicrotask(function() {
|
|
1765
|
+
return queueMicrotask(e);
|
|
1766
|
+
});
|
|
1767
|
+
} : Z;
|
|
1768
|
+
ne = Object.freeze({
|
|
1769
|
+
__proto__: null,
|
|
1770
|
+
c: function(e) {
|
|
1771
|
+
return q().useMemoCache(e);
|
|
1772
|
+
}
|
|
1773
|
+
});
|
|
1774
|
+
var ye = {
|
|
1775
|
+
map: P,
|
|
1776
|
+
forEach: function(e, o, _) {
|
|
1777
|
+
P(
|
|
1778
|
+
e,
|
|
1779
|
+
function() {
|
|
1780
|
+
o.apply(this, arguments);
|
|
1781
|
+
},
|
|
1782
|
+
_
|
|
1783
|
+
);
|
|
1784
|
+
},
|
|
1785
|
+
count: function(e) {
|
|
1786
|
+
var o = 0;
|
|
1787
|
+
return P(e, function() {
|
|
1788
|
+
o++;
|
|
1789
|
+
}), o;
|
|
1790
|
+
},
|
|
1791
|
+
toArray: function(e) {
|
|
1792
|
+
return P(e, function(o) {
|
|
1793
|
+
return o;
|
|
1794
|
+
}) || [];
|
|
1795
|
+
},
|
|
1796
|
+
only: function(e) {
|
|
1797
|
+
if (!t(e))
|
|
1798
|
+
throw Error(
|
|
1799
|
+
"React.Children.only expected to receive a single React element child."
|
|
1800
|
+
);
|
|
1801
|
+
return e;
|
|
1802
|
+
}
|
|
1803
|
+
};
|
|
1804
|
+
a.Activity = Re, a.Children = ye, a.Component = v, a.Fragment = r, a.Profiler = H, a.PureComponent = p, a.StrictMode = y, a.Suspense = F, a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = d, a.__COMPILER_RUNTIME = ne, a.act = function(e) {
|
|
1805
|
+
var o = d.actQueue, _ = Te;
|
|
1806
|
+
Te++;
|
|
1807
|
+
var O = d.actQueue = o !== null ? o : [], D = !1;
|
|
1808
|
+
try {
|
|
1809
|
+
var X = e();
|
|
1810
|
+
} catch (B) {
|
|
1811
|
+
d.thrownErrors.push(B);
|
|
1812
|
+
}
|
|
1813
|
+
if (0 < d.thrownErrors.length)
|
|
1814
|
+
throw ee(o, _), e = ae(d.thrownErrors), d.thrownErrors.length = 0, e;
|
|
1815
|
+
if (X !== null && typeof X == "object" && typeof X.then == "function") {
|
|
1816
|
+
var W = X;
|
|
1817
|
+
return _t(function() {
|
|
1818
|
+
D || Ae || (Ae = !0, console.error(
|
|
1819
|
+
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1820
|
+
));
|
|
1821
|
+
}), {
|
|
1822
|
+
then: function(B, fe) {
|
|
1823
|
+
D = !0, W.then(
|
|
1824
|
+
function(de) {
|
|
1825
|
+
if (ee(o, _), _ === 0) {
|
|
1826
|
+
try {
|
|
1827
|
+
ie(O), Z(function() {
|
|
1828
|
+
return oe(
|
|
1829
|
+
de,
|
|
1830
|
+
B,
|
|
1831
|
+
fe
|
|
1832
|
+
);
|
|
1833
|
+
});
|
|
1834
|
+
} catch (rr) {
|
|
1835
|
+
d.thrownErrors.push(rr);
|
|
1836
|
+
}
|
|
1837
|
+
if (0 < d.thrownErrors.length) {
|
|
1838
|
+
var tr = ae(
|
|
1839
|
+
d.thrownErrors
|
|
1840
|
+
);
|
|
1841
|
+
d.thrownErrors.length = 0, fe(tr);
|
|
1842
|
+
}
|
|
1843
|
+
} else B(de);
|
|
1844
|
+
},
|
|
1845
|
+
function(de) {
|
|
1846
|
+
ee(o, _), 0 < d.thrownErrors.length && (de = ae(
|
|
1847
|
+
d.thrownErrors
|
|
1848
|
+
), d.thrownErrors.length = 0), fe(de);
|
|
1849
|
+
}
|
|
1850
|
+
);
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
}
|
|
1854
|
+
var z = X;
|
|
1855
|
+
if (ee(o, _), _ === 0 && (ie(O), O.length !== 0 && _t(function() {
|
|
1856
|
+
D || Ae || (Ae = !0, console.error(
|
|
1857
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1858
|
+
));
|
|
1859
|
+
}), d.actQueue = null), 0 < d.thrownErrors.length)
|
|
1860
|
+
throw e = ae(d.thrownErrors), d.thrownErrors.length = 0, e;
|
|
1861
|
+
return {
|
|
1862
|
+
then: function(B, fe) {
|
|
1863
|
+
D = !0, _ === 0 ? (d.actQueue = O, Z(function() {
|
|
1864
|
+
return oe(
|
|
1865
|
+
z,
|
|
1866
|
+
B,
|
|
1867
|
+
fe
|
|
1868
|
+
);
|
|
1869
|
+
})) : B(z);
|
|
1870
|
+
}
|
|
1871
|
+
};
|
|
1872
|
+
}, a.cache = function(e) {
|
|
1873
|
+
return function() {
|
|
1874
|
+
return e.apply(null, arguments);
|
|
1875
|
+
};
|
|
1876
|
+
}, a.cacheSignal = function() {
|
|
1877
|
+
return null;
|
|
1878
|
+
}, a.captureOwnerStack = function() {
|
|
1879
|
+
var e = d.getCurrentStack;
|
|
1880
|
+
return e === null ? null : e();
|
|
1881
|
+
}, a.cloneElement = function(e, o, _) {
|
|
1882
|
+
if (e == null)
|
|
1883
|
+
throw Error(
|
|
1884
|
+
"The argument must be a React element, but you passed " + e + "."
|
|
1885
|
+
);
|
|
1886
|
+
var O = le({}, e.props), D = e.key, X = e._owner;
|
|
1887
|
+
if (o != null) {
|
|
1888
|
+
var W;
|
|
1889
|
+
e: {
|
|
1890
|
+
if (U.call(o, "ref") && (W = Object.getOwnPropertyDescriptor(
|
|
1891
|
+
o,
|
|
1892
|
+
"ref"
|
|
1893
|
+
).get) && W.isReactWarning) {
|
|
1894
|
+
W = !1;
|
|
1895
|
+
break e;
|
|
1896
|
+
}
|
|
1897
|
+
W = o.ref !== void 0;
|
|
1898
|
+
}
|
|
1899
|
+
W && (X = $()), b(o) && (T(o.key), D = "" + o.key);
|
|
1900
|
+
for (z in o)
|
|
1901
|
+
!U.call(o, z) || z === "key" || z === "__self" || z === "__source" || z === "ref" && o.ref === void 0 || (O[z] = o[z]);
|
|
1902
|
+
}
|
|
1903
|
+
var z = arguments.length - 2;
|
|
1904
|
+
if (z === 1) O.children = _;
|
|
1905
|
+
else if (1 < z) {
|
|
1906
|
+
W = Array(z);
|
|
1907
|
+
for (var B = 0; B < z; B++)
|
|
1908
|
+
W[B] = arguments[B + 2];
|
|
1909
|
+
O.children = W;
|
|
1910
|
+
}
|
|
1911
|
+
for (O = A(
|
|
1912
|
+
e.type,
|
|
1913
|
+
D,
|
|
1914
|
+
O,
|
|
1915
|
+
X,
|
|
1916
|
+
e._debugStack,
|
|
1917
|
+
e._debugTask
|
|
1918
|
+
), D = 2; D < arguments.length; D++)
|
|
1919
|
+
S(arguments[D]);
|
|
1920
|
+
return O;
|
|
1921
|
+
}, a.createContext = function(e) {
|
|
1922
|
+
return e = {
|
|
1923
|
+
$$typeof: Y,
|
|
1924
|
+
_currentValue: e,
|
|
1925
|
+
_currentValue2: e,
|
|
1926
|
+
_threadCount: 0,
|
|
1927
|
+
Provider: null,
|
|
1928
|
+
Consumer: null
|
|
1929
|
+
}, e.Provider = e, e.Consumer = {
|
|
1930
|
+
$$typeof: I,
|
|
1931
|
+
_context: e
|
|
1932
|
+
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1933
|
+
}, a.createElement = function(e, o, _) {
|
|
1934
|
+
for (var O = 2; O < arguments.length; O++)
|
|
1935
|
+
S(arguments[O]);
|
|
1936
|
+
O = {};
|
|
1937
|
+
var D = null;
|
|
1938
|
+
if (o != null)
|
|
1939
|
+
for (B in ft || !("__self" in o) || "key" in o || (ft = !0, console.warn(
|
|
1940
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1941
|
+
)), b(o) && (T(o.key), D = "" + o.key), o)
|
|
1942
|
+
U.call(o, B) && B !== "key" && B !== "__self" && B !== "__source" && (O[B] = o[B]);
|
|
1943
|
+
var X = arguments.length - 2;
|
|
1944
|
+
if (X === 1) O.children = _;
|
|
1945
|
+
else if (1 < X) {
|
|
1946
|
+
for (var W = Array(X), z = 0; z < X; z++)
|
|
1947
|
+
W[z] = arguments[z + 2];
|
|
1948
|
+
Object.freeze && Object.freeze(W), O.children = W;
|
|
1949
|
+
}
|
|
1950
|
+
if (e && e.defaultProps)
|
|
1951
|
+
for (B in X = e.defaultProps, X)
|
|
1952
|
+
O[B] === void 0 && (O[B] = X[B]);
|
|
1953
|
+
D && C(
|
|
1954
|
+
O,
|
|
1955
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1956
|
+
);
|
|
1957
|
+
var B = 1e4 > d.recentlyCreatedOwnerStacks++;
|
|
1958
|
+
return A(
|
|
1959
|
+
e,
|
|
1960
|
+
D,
|
|
1961
|
+
O,
|
|
1962
|
+
$(),
|
|
1963
|
+
B ? Error("react-stack-top-frame") : Jt,
|
|
1964
|
+
B ? te(j(e)) : er
|
|
1965
|
+
);
|
|
1966
|
+
}, a.createRef = function() {
|
|
1967
|
+
var e = { current: null };
|
|
1968
|
+
return Object.seal(e), e;
|
|
1969
|
+
}, a.forwardRef = function(e) {
|
|
1970
|
+
e != null && e.$$typeof === K ? console.error(
|
|
1971
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1972
|
+
) : typeof e != "function" ? console.error(
|
|
1973
|
+
"forwardRef requires a render function but was given %s.",
|
|
1974
|
+
e === null ? "null" : typeof e
|
|
1975
|
+
) : e.length !== 0 && e.length !== 2 && console.error(
|
|
1976
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1977
|
+
e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1978
|
+
), e != null && e.defaultProps != null && console.error(
|
|
1979
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1980
|
+
);
|
|
1981
|
+
var o = { $$typeof: G, render: e }, _;
|
|
1982
|
+
return Object.defineProperty(o, "displayName", {
|
|
1983
|
+
enumerable: !1,
|
|
1984
|
+
configurable: !0,
|
|
1985
|
+
get: function() {
|
|
1986
|
+
return _;
|
|
1987
|
+
},
|
|
1988
|
+
set: function(O) {
|
|
1989
|
+
_ = O, e.name || e.displayName || (Object.defineProperty(e, "name", { value: O }), e.displayName = O);
|
|
1990
|
+
}
|
|
1991
|
+
}), o;
|
|
1992
|
+
}, a.isValidElement = t, a.lazy = function(e) {
|
|
1993
|
+
e = { _status: -1, _result: e };
|
|
1994
|
+
var o = {
|
|
1995
|
+
$$typeof: ue,
|
|
1996
|
+
_payload: e,
|
|
1997
|
+
_init: Q
|
|
1998
|
+
}, _ = {
|
|
1999
|
+
name: "lazy",
|
|
2000
|
+
start: -1,
|
|
2001
|
+
end: -1,
|
|
2002
|
+
value: null,
|
|
2003
|
+
owner: null,
|
|
2004
|
+
debugStack: Error("react-stack-top-frame"),
|
|
2005
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
2006
|
+
};
|
|
2007
|
+
return e._ioInfo = _, o._debugInfo = [{ awaited: _ }], o;
|
|
2008
|
+
}, a.memo = function(e, o) {
|
|
2009
|
+
e == null && console.error(
|
|
2010
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
2011
|
+
e === null ? "null" : typeof e
|
|
2012
|
+
), o = {
|
|
2013
|
+
$$typeof: K,
|
|
2014
|
+
type: e,
|
|
2015
|
+
compare: o === void 0 ? null : o
|
|
2016
|
+
};
|
|
2017
|
+
var _;
|
|
2018
|
+
return Object.defineProperty(o, "displayName", {
|
|
2019
|
+
enumerable: !1,
|
|
2020
|
+
configurable: !0,
|
|
2021
|
+
get: function() {
|
|
2022
|
+
return _;
|
|
2023
|
+
},
|
|
2024
|
+
set: function(O) {
|
|
2025
|
+
_ = O, e.name || e.displayName || (Object.defineProperty(e, "name", { value: O }), e.displayName = O);
|
|
2026
|
+
}
|
|
2027
|
+
}), o;
|
|
2028
|
+
}, a.startTransition = function(e) {
|
|
2029
|
+
var o = d.T, _ = {};
|
|
2030
|
+
_._updatedFibers = /* @__PURE__ */ new Set(), d.T = _;
|
|
2031
|
+
try {
|
|
2032
|
+
var O = e(), D = d.S;
|
|
2033
|
+
D !== null && D(_, O), typeof O == "object" && O !== null && typeof O.then == "function" && (d.asyncTransitions++, O.then(V, V), O.then(l, ht));
|
|
2034
|
+
} catch (X) {
|
|
2035
|
+
ht(X);
|
|
2036
|
+
} finally {
|
|
2037
|
+
o === null && _._updatedFibers && (e = _._updatedFibers.size, _._updatedFibers.clear(), 10 < e && console.warn(
|
|
2038
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
2039
|
+
)), o !== null && _.types !== null && (o.types !== null && o.types !== _.types && console.error(
|
|
2040
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
2041
|
+
), o.types = _.types), d.T = o;
|
|
2042
|
+
}
|
|
2043
|
+
}, a.unstable_useCacheRefresh = function() {
|
|
2044
|
+
return q().useCacheRefresh();
|
|
2045
|
+
}, a.use = function(e) {
|
|
2046
|
+
return q().use(e);
|
|
2047
|
+
}, a.useActionState = function(e, o, _) {
|
|
2048
|
+
return q().useActionState(
|
|
2049
|
+
e,
|
|
2050
|
+
o,
|
|
2051
|
+
_
|
|
2052
|
+
);
|
|
2053
|
+
}, a.useCallback = function(e, o) {
|
|
2054
|
+
return q().useCallback(e, o);
|
|
2055
|
+
}, a.useContext = function(e) {
|
|
2056
|
+
var o = q();
|
|
2057
|
+
return e.$$typeof === I && console.error(
|
|
2058
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
2059
|
+
), o.useContext(e);
|
|
2060
|
+
}, a.useDebugValue = function(e, o) {
|
|
2061
|
+
return q().useDebugValue(e, o);
|
|
2062
|
+
}, a.useDeferredValue = function(e, o) {
|
|
2063
|
+
return q().useDeferredValue(e, o);
|
|
2064
|
+
}, a.useEffect = function(e, o) {
|
|
2065
|
+
return e == null && console.warn(
|
|
2066
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
2067
|
+
), q().useEffect(e, o);
|
|
2068
|
+
}, a.useEffectEvent = function(e) {
|
|
2069
|
+
return q().useEffectEvent(e);
|
|
2070
|
+
}, a.useId = function() {
|
|
2071
|
+
return q().useId();
|
|
2072
|
+
}, a.useImperativeHandle = function(e, o, _) {
|
|
2073
|
+
return q().useImperativeHandle(e, o, _);
|
|
2074
|
+
}, a.useInsertionEffect = function(e, o) {
|
|
2075
|
+
return e == null && console.warn(
|
|
2076
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
2077
|
+
), q().useInsertionEffect(e, o);
|
|
2078
|
+
}, a.useLayoutEffect = function(e, o) {
|
|
2079
|
+
return e == null && console.warn(
|
|
2080
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
2081
|
+
), q().useLayoutEffect(e, o);
|
|
2082
|
+
}, a.useMemo = function(e, o) {
|
|
2083
|
+
return q().useMemo(e, o);
|
|
2084
|
+
}, a.useOptimistic = function(e, o) {
|
|
2085
|
+
return q().useOptimistic(e, o);
|
|
2086
|
+
}, a.useReducer = function(e, o, _) {
|
|
2087
|
+
return q().useReducer(e, o, _);
|
|
2088
|
+
}, a.useRef = function(e) {
|
|
2089
|
+
return q().useRef(e);
|
|
2090
|
+
}, a.useState = function(e) {
|
|
2091
|
+
return q().useState(e);
|
|
2092
|
+
}, a.useSyncExternalStore = function(e, o, _) {
|
|
2093
|
+
return q().useSyncExternalStore(
|
|
2094
|
+
e,
|
|
2095
|
+
o,
|
|
2096
|
+
_
|
|
2097
|
+
);
|
|
2098
|
+
}, a.useTransition = function() {
|
|
2099
|
+
return q().useTransition();
|
|
2100
|
+
}, a.version = "19.2.3", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2101
|
+
})();
|
|
2102
|
+
})(me, me.exports)), me.exports;
|
|
2103
|
+
}
|
|
2104
|
+
var Pt;
|
|
2105
|
+
function Kt() {
|
|
2106
|
+
return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? ke.exports = cr() : ke.exports = fr()), ke.exports;
|
|
2107
|
+
}
|
|
2108
|
+
var Ce = { exports: {} }, Dt;
|
|
2109
|
+
function Vt() {
|
|
2110
|
+
return Dt || (Dt = 1, (function(h, a) {
|
|
2111
|
+
Object.defineProperty(a, "__esModule", {
|
|
2112
|
+
value: !0
|
|
2113
|
+
});
|
|
2114
|
+
function E(i, p) {
|
|
2115
|
+
for (var l in p) Object.defineProperty(i, l, {
|
|
2116
|
+
enumerable: !0,
|
|
2117
|
+
get: p[l]
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
E(a, {
|
|
2121
|
+
DynamicServerError: function() {
|
|
2122
|
+
return g;
|
|
2123
|
+
},
|
|
2124
|
+
isDynamicServerError: function() {
|
|
2125
|
+
return v;
|
|
2126
|
+
}
|
|
2127
|
+
});
|
|
2128
|
+
const R = "DYNAMIC_SERVER_USAGE";
|
|
2129
|
+
class g extends Error {
|
|
2130
|
+
constructor(p) {
|
|
2131
|
+
super(`Dynamic server usage: ${p}`), this.description = p, this.digest = R;
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
function v(i) {
|
|
2135
|
+
return typeof i != "object" || i === null || !("digest" in i) || typeof i.digest != "string" ? !1 : i.digest === R;
|
|
2136
|
+
}
|
|
2137
|
+
(typeof a.default == "function" || typeof a.default == "object" && a.default !== null) && typeof a.default.__esModule > "u" && (Object.defineProperty(a.default, "__esModule", { value: !0 }), Object.assign(a.default, a), h.exports = a.default);
|
|
2138
|
+
})(Ce, Ce.exports)), Ce.exports;
|
|
2139
|
+
}
|
|
2140
|
+
var Pe = { exports: {} }, jt;
|
|
2141
|
+
function Ee() {
|
|
2142
|
+
return jt || (jt = 1, (function(h, a) {
|
|
2143
|
+
Object.defineProperty(a, "__esModule", {
|
|
2144
|
+
value: !0
|
|
2145
|
+
});
|
|
2146
|
+
function E(i, p) {
|
|
2147
|
+
for (var l in p) Object.defineProperty(i, l, {
|
|
2148
|
+
enumerable: !0,
|
|
2149
|
+
get: p[l]
|
|
2150
|
+
});
|
|
2151
|
+
}
|
|
2152
|
+
E(a, {
|
|
2153
|
+
StaticGenBailoutError: function() {
|
|
2154
|
+
return g;
|
|
2155
|
+
},
|
|
2156
|
+
isStaticGenBailoutError: function() {
|
|
2157
|
+
return v;
|
|
2158
|
+
}
|
|
2159
|
+
});
|
|
2160
|
+
const R = "NEXT_STATIC_GEN_BAILOUT";
|
|
2161
|
+
class g extends Error {
|
|
2162
|
+
constructor(...p) {
|
|
2163
|
+
super(...p), this.code = R;
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
function v(i) {
|
|
2167
|
+
return typeof i != "object" || i === null || !("code" in i) ? !1 : i.code === R;
|
|
2168
|
+
}
|
|
2169
|
+
(typeof a.default == "function" || typeof a.default == "object" && a.default !== null) && typeof a.default.__esModule > "u" && (Object.defineProperty(a.default, "__esModule", { value: !0 }), Object.assign(a.default, a), h.exports = a.default);
|
|
2170
|
+
})(Pe, Pe.exports)), Pe.exports;
|
|
2171
|
+
}
|
|
2172
|
+
var $e = {}, Nt;
|
|
2173
|
+
function st() {
|
|
2174
|
+
return Nt || (Nt = 1, (function(h) {
|
|
2175
|
+
Object.defineProperty(h, "__esModule", {
|
|
2176
|
+
value: !0
|
|
2177
|
+
});
|
|
2178
|
+
function a(f, T) {
|
|
2179
|
+
for (var k in T) Object.defineProperty(f, k, {
|
|
2180
|
+
enumerable: !0,
|
|
2181
|
+
get: T[k]
|
|
2182
|
+
});
|
|
2183
|
+
}
|
|
2184
|
+
a(h, {
|
|
2185
|
+
isHangingPromiseRejectionError: function() {
|
|
2186
|
+
return E;
|
|
2187
|
+
},
|
|
2188
|
+
makeDevtoolsIOAwarePromise: function() {
|
|
2189
|
+
return l;
|
|
2190
|
+
},
|
|
2191
|
+
makeHangingPromise: function() {
|
|
2192
|
+
return i;
|
|
2193
|
+
}
|
|
2194
|
+
});
|
|
2195
|
+
function E(f) {
|
|
2196
|
+
return typeof f != "object" || f === null || !("digest" in f) ? !1 : f.digest === R;
|
|
2197
|
+
}
|
|
2198
|
+
const R = "HANGING_PROMISE_REJECTION";
|
|
2199
|
+
class g extends Error {
|
|
2200
|
+
constructor(T, k) {
|
|
2201
|
+
super(`During prerendering, ${k} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${k} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${T}".`), this.route = T, this.expression = k, this.digest = R;
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
const v = /* @__PURE__ */ new WeakMap();
|
|
2205
|
+
function i(f, T, k) {
|
|
2206
|
+
if (f.aborted)
|
|
2207
|
+
return Promise.reject(new g(T, k));
|
|
2208
|
+
{
|
|
2209
|
+
const j = new Promise(($, L) => {
|
|
2210
|
+
const b = L.bind(null, new g(T, k));
|
|
2211
|
+
let C = v.get(f);
|
|
2212
|
+
if (C)
|
|
2213
|
+
C.push(b);
|
|
2214
|
+
else {
|
|
2215
|
+
const N = [
|
|
2216
|
+
b
|
|
2217
|
+
];
|
|
2218
|
+
v.set(f, N), f.addEventListener("abort", () => {
|
|
2219
|
+
for (let A = 0; A < N.length; A++)
|
|
2220
|
+
N[A]();
|
|
2221
|
+
}, {
|
|
2222
|
+
once: !0
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
});
|
|
2226
|
+
return j.catch(p), j;
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
function p() {
|
|
2230
|
+
}
|
|
2231
|
+
function l(f, T, k) {
|
|
2232
|
+
return T.stagedRendering ? T.stagedRendering.delayUntilStage(k, void 0, f) : new Promise((j) => {
|
|
2233
|
+
setTimeout(() => {
|
|
2234
|
+
j(f);
|
|
2235
|
+
}, 0);
|
|
2236
|
+
});
|
|
2237
|
+
}
|
|
2238
|
+
})($e)), $e;
|
|
2239
|
+
}
|
|
2240
|
+
var Ge = {}, It;
|
|
2241
|
+
function lr() {
|
|
2242
|
+
return It || (It = 1, (function(h) {
|
|
2243
|
+
Object.defineProperty(h, "__esModule", {
|
|
2244
|
+
value: !0
|
|
2245
|
+
});
|
|
2246
|
+
function a(i, p) {
|
|
2247
|
+
for (var l in p) Object.defineProperty(i, l, {
|
|
2248
|
+
enumerable: !0,
|
|
2249
|
+
get: p[l]
|
|
2250
|
+
});
|
|
2251
|
+
}
|
|
2252
|
+
a(h, {
|
|
2253
|
+
METADATA_BOUNDARY_NAME: function() {
|
|
2254
|
+
return E;
|
|
2255
|
+
},
|
|
2256
|
+
OUTLET_BOUNDARY_NAME: function() {
|
|
2257
|
+
return g;
|
|
2258
|
+
},
|
|
2259
|
+
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
|
2260
|
+
return v;
|
|
2261
|
+
},
|
|
2262
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
|
2263
|
+
return R;
|
|
2264
|
+
}
|
|
2265
|
+
});
|
|
2266
|
+
const E = "__next_metadata_boundary__", R = "__next_viewport_boundary__", g = "__next_outlet_boundary__", v = "__next_root_layout_boundary__";
|
|
2267
|
+
})(Ge)), Ge;
|
|
2268
|
+
}
|
|
2269
|
+
var Fe = {}, Mt;
|
|
2270
|
+
function dr() {
|
|
2271
|
+
return Mt || (Mt = 1, (function(h) {
|
|
2272
|
+
Object.defineProperty(h, "__esModule", {
|
|
2273
|
+
value: !0
|
|
2274
|
+
});
|
|
2275
|
+
function a(i, p) {
|
|
2276
|
+
for (var l in p) Object.defineProperty(i, l, {
|
|
2277
|
+
enumerable: !0,
|
|
2278
|
+
get: p[l]
|
|
2279
|
+
});
|
|
2280
|
+
}
|
|
2281
|
+
a(h, {
|
|
2282
|
+
atLeastOneTask: function() {
|
|
2283
|
+
return g;
|
|
2284
|
+
},
|
|
2285
|
+
scheduleImmediate: function() {
|
|
2286
|
+
return R;
|
|
2287
|
+
},
|
|
2288
|
+
scheduleOnNextTick: function() {
|
|
2289
|
+
return E;
|
|
2290
|
+
},
|
|
2291
|
+
waitAtLeastOneReactRenderTask: function() {
|
|
2292
|
+
return v;
|
|
2293
|
+
}
|
|
2294
|
+
});
|
|
2295
|
+
const E = (i) => {
|
|
2296
|
+
Promise.resolve().then(() => {
|
|
2297
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : process.nextTick(i);
|
|
2298
|
+
});
|
|
2299
|
+
}, R = (i) => {
|
|
2300
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : setImmediate(i);
|
|
2301
|
+
};
|
|
2302
|
+
function g() {
|
|
2303
|
+
return new Promise((i) => R(i));
|
|
2304
|
+
}
|
|
2305
|
+
function v() {
|
|
2306
|
+
return process.env.NEXT_RUNTIME === "edge" ? new Promise((i) => setTimeout(i, 0)) : new Promise((i) => setImmediate(i));
|
|
2307
|
+
}
|
|
2308
|
+
})(Fe)), Fe;
|
|
2309
|
+
}
|
|
2310
|
+
var ze = {}, Ht;
|
|
2311
|
+
function pr() {
|
|
2312
|
+
return Ht || (Ht = 1, (function(h) {
|
|
2313
|
+
Object.defineProperty(h, "__esModule", {
|
|
2314
|
+
value: !0
|
|
2315
|
+
});
|
|
2316
|
+
function a(v, i) {
|
|
2317
|
+
for (var p in i) Object.defineProperty(v, p, {
|
|
2318
|
+
enumerable: !0,
|
|
2319
|
+
get: i[p]
|
|
2320
|
+
});
|
|
2321
|
+
}
|
|
2322
|
+
a(h, {
|
|
2323
|
+
BailoutToCSRError: function() {
|
|
2324
|
+
return R;
|
|
2325
|
+
},
|
|
2326
|
+
isBailoutToCSRError: function() {
|
|
2327
|
+
return g;
|
|
2328
|
+
}
|
|
2329
|
+
});
|
|
2330
|
+
const E = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
|
|
2331
|
+
class R extends Error {
|
|
2332
|
+
constructor(i) {
|
|
2333
|
+
super(`Bail out to client-side rendering: ${i}`), this.reason = i, this.digest = E;
|
|
2334
|
+
}
|
|
2335
|
+
}
|
|
2336
|
+
function g(v) {
|
|
2337
|
+
return typeof v != "object" || v === null || !("digest" in v) ? !1 : v.digest === E;
|
|
2338
|
+
}
|
|
2339
|
+
})(ze)), ze;
|
|
2340
|
+
}
|
|
2341
|
+
var Qe = {}, Ke = {}, qt;
|
|
2342
|
+
function hr() {
|
|
2343
|
+
return qt || (qt = 1, (function(h) {
|
|
2344
|
+
Object.defineProperty(h, "__esModule", {
|
|
2345
|
+
value: !0
|
|
2346
|
+
}), Object.defineProperty(h, "createPromiseWithResolvers", {
|
|
2347
|
+
enumerable: !0,
|
|
2348
|
+
get: function() {
|
|
2349
|
+
return a;
|
|
2350
|
+
}
|
|
2351
|
+
});
|
|
2352
|
+
function a() {
|
|
2353
|
+
let E, R;
|
|
2354
|
+
const g = new Promise((v, i) => {
|
|
2355
|
+
E = v, R = i;
|
|
2356
|
+
});
|
|
2357
|
+
return {
|
|
2358
|
+
resolve: E,
|
|
2359
|
+
reject: R,
|
|
2360
|
+
promise: g
|
|
2361
|
+
};
|
|
2362
|
+
}
|
|
2363
|
+
})(Ke)), Ke;
|
|
2364
|
+
}
|
|
2365
|
+
var xt;
|
|
2366
|
+
function it() {
|
|
2367
|
+
return xt || (xt = 1, (function(h) {
|
|
2368
|
+
Object.defineProperty(h, "__esModule", {
|
|
2369
|
+
value: !0
|
|
2370
|
+
});
|
|
2371
|
+
function a(l, f) {
|
|
2372
|
+
for (var T in f) Object.defineProperty(l, T, {
|
|
2373
|
+
enumerable: !0,
|
|
2374
|
+
get: f[T]
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
2377
|
+
a(h, {
|
|
2378
|
+
RenderStage: function() {
|
|
2379
|
+
return g;
|
|
2380
|
+
},
|
|
2381
|
+
StagedRenderingController: function() {
|
|
2382
|
+
return v;
|
|
2383
|
+
}
|
|
2384
|
+
});
|
|
2385
|
+
const E = pe(), R = hr();
|
|
2386
|
+
var g = /* @__PURE__ */ (function(l) {
|
|
2387
|
+
return l[l.Static = 1] = "Static", l[l.Runtime = 2] = "Runtime", l[l.Dynamic = 3] = "Dynamic", l;
|
|
2388
|
+
})({});
|
|
2389
|
+
class v {
|
|
2390
|
+
constructor(f = null) {
|
|
2391
|
+
this.abortSignal = f, this.currentStage = 1, this.runtimeStagePromise = (0, R.createPromiseWithResolvers)(), this.dynamicStagePromise = (0, R.createPromiseWithResolvers)(), f && f.addEventListener("abort", () => {
|
|
2392
|
+
const { reason: T } = f;
|
|
2393
|
+
this.currentStage < 2 && (this.runtimeStagePromise.promise.catch(i), this.runtimeStagePromise.reject(T)), this.currentStage < 3 && (this.dynamicStagePromise.promise.catch(i), this.dynamicStagePromise.reject(T));
|
|
2394
|
+
}, {
|
|
2395
|
+
once: !0
|
|
2396
|
+
});
|
|
2397
|
+
}
|
|
2398
|
+
advanceStage(f) {
|
|
2399
|
+
this.currentStage >= f || (this.currentStage = f, f >= 2 && this.runtimeStagePromise.resolve(), f >= 3 && this.dynamicStagePromise.resolve());
|
|
2400
|
+
}
|
|
2401
|
+
getStagePromise(f) {
|
|
2402
|
+
switch (f) {
|
|
2403
|
+
case 2:
|
|
2404
|
+
return this.runtimeStagePromise.promise;
|
|
2405
|
+
case 3:
|
|
2406
|
+
return this.dynamicStagePromise.promise;
|
|
2407
|
+
default:
|
|
2408
|
+
throw Object.defineProperty(new E.InvariantError(`Invalid render stage: ${f}`), "__NEXT_ERROR_CODE", {
|
|
2409
|
+
value: "E881",
|
|
2410
|
+
enumerable: !1,
|
|
2411
|
+
configurable: !0
|
|
2412
|
+
});
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
waitForStage(f) {
|
|
2416
|
+
return this.getStagePromise(f);
|
|
2417
|
+
}
|
|
2418
|
+
delayUntilStage(f, T, k) {
|
|
2419
|
+
const j = this.getStagePromise(f), $ = p(j, T, k);
|
|
2420
|
+
return this.abortSignal && $.catch(i), $;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
function i() {
|
|
2424
|
+
}
|
|
2425
|
+
function p(l, f, T) {
|
|
2426
|
+
const k = new Promise((j, $) => {
|
|
2427
|
+
l.then(j.bind(null, T), $);
|
|
2428
|
+
});
|
|
2429
|
+
return f !== void 0 && (k.displayName = f), k;
|
|
2430
|
+
}
|
|
2431
|
+
})(Qe)), Qe;
|
|
2432
|
+
}
|
|
2433
|
+
var Lt;
|
|
2434
|
+
function ut() {
|
|
2435
|
+
return Lt || (Lt = 1, (function(h) {
|
|
2436
|
+
Object.defineProperty(h, "__esModule", {
|
|
2437
|
+
value: !0
|
|
2438
|
+
});
|
|
2439
|
+
function a(c, w) {
|
|
2440
|
+
for (var d in w) Object.defineProperty(c, d, {
|
|
2441
|
+
enumerable: !0,
|
|
2442
|
+
get: w[d]
|
|
2443
|
+
});
|
|
2444
|
+
}
|
|
2445
|
+
a(h, {
|
|
2446
|
+
Postpone: function() {
|
|
2447
|
+
return m;
|
|
2448
|
+
},
|
|
2449
|
+
PreludeState: function() {
|
|
2450
|
+
return we;
|
|
2451
|
+
},
|
|
2452
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
2453
|
+
return s;
|
|
2454
|
+
},
|
|
2455
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
|
2456
|
+
return u;
|
|
2457
|
+
},
|
|
2458
|
+
accessedDynamicData: function() {
|
|
2459
|
+
return oe;
|
|
2460
|
+
},
|
|
2461
|
+
annotateDynamicAccess: function() {
|
|
2462
|
+
return H;
|
|
2463
|
+
},
|
|
2464
|
+
consumeDynamicAccess: function() {
|
|
2465
|
+
return ie;
|
|
2466
|
+
},
|
|
2467
|
+
createDynamicTrackingState: function() {
|
|
2468
|
+
return b;
|
|
2469
|
+
},
|
|
2470
|
+
createDynamicValidationState: function() {
|
|
2471
|
+
return C;
|
|
2472
|
+
},
|
|
2473
|
+
createHangingInputAbortSignal: function() {
|
|
2474
|
+
return y;
|
|
2475
|
+
},
|
|
2476
|
+
createRenderInBrowserAbortSignal: function() {
|
|
2477
|
+
return r;
|
|
2478
|
+
},
|
|
2479
|
+
delayUntilRuntimeStage: function() {
|
|
2480
|
+
return ne;
|
|
2481
|
+
},
|
|
2482
|
+
formatDynamicAPIAccesses: function() {
|
|
2483
|
+
return se;
|
|
2484
|
+
},
|
|
2485
|
+
getFirstDynamicReason: function() {
|
|
2486
|
+
return N;
|
|
2487
|
+
},
|
|
2488
|
+
isDynamicPostpone: function() {
|
|
2489
|
+
return q;
|
|
2490
|
+
},
|
|
2491
|
+
isPrerenderInterruptedError: function() {
|
|
2492
|
+
return ee;
|
|
2493
|
+
},
|
|
2494
|
+
logDisallowedDynamicError: function() {
|
|
2495
|
+
return le;
|
|
2496
|
+
},
|
|
2497
|
+
markCurrentScopeAsDynamic: function() {
|
|
2498
|
+
return A;
|
|
2499
|
+
},
|
|
2500
|
+
postponeWithTracking: function() {
|
|
2501
|
+
return P;
|
|
2502
|
+
},
|
|
2503
|
+
throwIfDisallowedDynamic: function() {
|
|
2504
|
+
return he;
|
|
2505
|
+
},
|
|
2506
|
+
throwToInterruptStaticGeneration: function() {
|
|
2507
|
+
return M;
|
|
2508
|
+
},
|
|
2509
|
+
trackAllowedDynamicAccess: function() {
|
|
2510
|
+
return be;
|
|
2511
|
+
},
|
|
2512
|
+
trackDynamicDataInDynamicRender: function() {
|
|
2513
|
+
return S;
|
|
2514
|
+
},
|
|
2515
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
|
2516
|
+
return n;
|
|
2517
|
+
},
|
|
2518
|
+
useDynamicRouteParams: function() {
|
|
2519
|
+
return I;
|
|
2520
|
+
},
|
|
2521
|
+
useDynamicSearchParams: function() {
|
|
2522
|
+
return Y;
|
|
2523
|
+
}
|
|
2524
|
+
});
|
|
2525
|
+
const E = /* @__PURE__ */ $(Kt()), R = Vt(), g = Ee(), v = De(), i = ge(), p = st(), l = lr(), f = dr(), T = pr(), k = pe(), j = it();
|
|
2526
|
+
function $(c) {
|
|
2527
|
+
return c && c.__esModule ? c : {
|
|
2528
|
+
default: c
|
|
2529
|
+
};
|
|
2530
|
+
}
|
|
2531
|
+
const L = typeof E.default.unstable_postpone == "function";
|
|
2532
|
+
function b(c) {
|
|
2533
|
+
return {
|
|
2534
|
+
isDebugDynamicAccesses: c,
|
|
2535
|
+
dynamicAccesses: [],
|
|
2536
|
+
syncDynamicErrorWithStack: null
|
|
2537
|
+
};
|
|
2538
|
+
}
|
|
2539
|
+
function C() {
|
|
2540
|
+
return {
|
|
2541
|
+
hasSuspenseAboveBody: !1,
|
|
2542
|
+
hasDynamicMetadata: !1,
|
|
2543
|
+
hasDynamicViewport: !1,
|
|
2544
|
+
hasAllowedDynamic: !1,
|
|
2545
|
+
dynamicErrors: []
|
|
2546
|
+
};
|
|
2547
|
+
}
|
|
2548
|
+
function N(c) {
|
|
2549
|
+
var w;
|
|
2550
|
+
return (w = c.dynamicAccesses[0]) == null ? void 0 : w.expression;
|
|
2551
|
+
}
|
|
2552
|
+
function A(c, w, d) {
|
|
2553
|
+
if (w)
|
|
2554
|
+
switch (w.type) {
|
|
2555
|
+
case "cache":
|
|
2556
|
+
case "unstable-cache":
|
|
2557
|
+
return;
|
|
2558
|
+
case "private-cache":
|
|
2559
|
+
return;
|
|
2560
|
+
}
|
|
2561
|
+
if (!(c.forceDynamic || c.forceStatic)) {
|
|
2562
|
+
if (c.dynamicShouldError)
|
|
2563
|
+
throw Object.defineProperty(new g.StaticGenBailoutError(`Route ${c.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${d}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2564
|
+
value: "E553",
|
|
2565
|
+
enumerable: !1,
|
|
2566
|
+
configurable: !0
|
|
2567
|
+
});
|
|
2568
|
+
if (w)
|
|
2569
|
+
switch (w.type) {
|
|
2570
|
+
case "prerender-ppr":
|
|
2571
|
+
return P(c.route, d, w.dynamicTracking);
|
|
2572
|
+
case "prerender-legacy":
|
|
2573
|
+
w.revalidate = 0;
|
|
2574
|
+
const U = Object.defineProperty(new R.DynamicServerError(`Route ${c.route} couldn't be rendered statically because it used ${d}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2575
|
+
value: "E550",
|
|
2576
|
+
enumerable: !1,
|
|
2577
|
+
configurable: !0
|
|
2578
|
+
});
|
|
2579
|
+
throw c.dynamicUsageDescription = d, c.dynamicUsageStack = U.stack, U;
|
|
2580
|
+
case "request":
|
|
2581
|
+
process.env.NODE_ENV !== "production" && (w.usedDynamic = !0);
|
|
2582
|
+
break;
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
function M(c, w, d) {
|
|
2587
|
+
const U = Object.defineProperty(new R.DynamicServerError(`Route ${w.route} couldn't be rendered statically because it used \`${c}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2588
|
+
value: "E558",
|
|
2589
|
+
enumerable: !1,
|
|
2590
|
+
configurable: !0
|
|
2591
|
+
});
|
|
2592
|
+
throw d.revalidate = 0, w.dynamicUsageDescription = c, w.dynamicUsageStack = U.stack, U;
|
|
2593
|
+
}
|
|
2594
|
+
function S(c) {
|
|
2595
|
+
switch (c.type) {
|
|
2596
|
+
case "cache":
|
|
2597
|
+
case "unstable-cache":
|
|
2598
|
+
return;
|
|
2599
|
+
case "private-cache":
|
|
2600
|
+
return;
|
|
2601
|
+
case "prerender":
|
|
2602
|
+
case "prerender-runtime":
|
|
2603
|
+
case "prerender-legacy":
|
|
2604
|
+
case "prerender-ppr":
|
|
2605
|
+
case "prerender-client":
|
|
2606
|
+
break;
|
|
2607
|
+
case "request":
|
|
2608
|
+
process.env.NODE_ENV !== "production" && (c.usedDynamic = !0);
|
|
2609
|
+
break;
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
function t(c, w, d) {
|
|
2613
|
+
const U = `Route ${c} needs to bail out of prerendering at this point because it used ${w}.`, te = ae(U);
|
|
2614
|
+
d.controller.abort(te);
|
|
2615
|
+
const J = d.dynamicTracking;
|
|
2616
|
+
J && J.dynamicAccesses.push({
|
|
2617
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2618
|
+
// stack trace.
|
|
2619
|
+
stack: J.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2620
|
+
expression: w
|
|
2621
|
+
});
|
|
2622
|
+
}
|
|
2623
|
+
function u(c, w, d, U) {
|
|
2624
|
+
const te = U.dynamicTracking;
|
|
2625
|
+
t(c, w, U), te && te.syncDynamicErrorWithStack === null && (te.syncDynamicErrorWithStack = d);
|
|
2626
|
+
}
|
|
2627
|
+
function n(c) {
|
|
2628
|
+
c.stagedRendering && c.stagedRendering.advanceStage(j.RenderStage.Dynamic);
|
|
2629
|
+
}
|
|
2630
|
+
function s(c, w, d, U) {
|
|
2631
|
+
if (U.controller.signal.aborted === !1) {
|
|
2632
|
+
t(c, w, U);
|
|
2633
|
+
const J = U.dynamicTracking;
|
|
2634
|
+
J && J.syncDynamicErrorWithStack === null && (J.syncDynamicErrorWithStack = d);
|
|
2635
|
+
}
|
|
2636
|
+
throw ae(`Route ${c} needs to bail out of prerendering at this point because it used ${w}.`);
|
|
2637
|
+
}
|
|
2638
|
+
function m({ reason: c, route: w }) {
|
|
2639
|
+
const d = v.workUnitAsyncStorage.getStore(), U = d && d.type === "prerender-ppr" ? d.dynamicTracking : null;
|
|
2640
|
+
P(w, c, U);
|
|
2641
|
+
}
|
|
2642
|
+
function P(c, w, d) {
|
|
2643
|
+
ce(), d && d.dynamicAccesses.push({
|
|
2644
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2645
|
+
// stack trace.
|
|
2646
|
+
stack: d.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2647
|
+
expression: w
|
|
2648
|
+
}), E.default.unstable_postpone(Q(c, w));
|
|
2649
|
+
}
|
|
2650
|
+
function Q(c, w) {
|
|
2651
|
+
return `Route ${c} needs to bail out of prerendering at this point because it used ${w}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
|
|
2652
|
+
}
|
|
2653
|
+
function q(c) {
|
|
2654
|
+
return typeof c == "object" && c !== null && typeof c.message == "string" ? V(c.message) : !1;
|
|
2655
|
+
}
|
|
2656
|
+
function V(c) {
|
|
2657
|
+
return c.includes("needs to bail out of prerendering at this point because it used") && c.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
|
2658
|
+
}
|
|
2659
|
+
if (V(Q("%%%", "^^^")) === !1)
|
|
2660
|
+
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2661
|
+
value: "E296",
|
|
2662
|
+
enumerable: !1,
|
|
2663
|
+
configurable: !0
|
|
2664
|
+
});
|
|
2665
|
+
const Z = "NEXT_PRERENDER_INTERRUPTED";
|
|
2666
|
+
function ae(c) {
|
|
2667
|
+
const w = Object.defineProperty(new Error(c), "__NEXT_ERROR_CODE", {
|
|
2668
|
+
value: "E394",
|
|
2669
|
+
enumerable: !1,
|
|
2670
|
+
configurable: !0
|
|
2671
|
+
});
|
|
2672
|
+
return w.digest = Z, w;
|
|
2673
|
+
}
|
|
2674
|
+
function ee(c) {
|
|
2675
|
+
return typeof c == "object" && c !== null && c.digest === Z && "name" in c && "message" in c && c instanceof Error;
|
|
2676
|
+
}
|
|
2677
|
+
function oe(c) {
|
|
2678
|
+
return c.length > 0;
|
|
2679
|
+
}
|
|
2680
|
+
function ie(c, w) {
|
|
2681
|
+
return c.dynamicAccesses.push(...w.dynamicAccesses), c.dynamicAccesses;
|
|
2682
|
+
}
|
|
2683
|
+
function se(c) {
|
|
2684
|
+
return c.filter((w) => typeof w.stack == "string" && w.stack.length > 0).map(({ expression: w, stack: d }) => (d = d.split(`
|
|
2685
|
+
`).slice(4).filter((U) => !(U.includes("node_modules/next/") || U.includes(" (<anonymous>)") || U.includes(" (node:"))).join(`
|
|
2686
|
+
`), `Dynamic API Usage Debug - ${w}:
|
|
2687
|
+
${d}`));
|
|
2688
|
+
}
|
|
2689
|
+
function ce() {
|
|
2690
|
+
if (!L)
|
|
2691
|
+
throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2692
|
+
value: "E224",
|
|
2693
|
+
enumerable: !1,
|
|
2694
|
+
configurable: !0
|
|
2695
|
+
});
|
|
2696
|
+
}
|
|
2697
|
+
function r() {
|
|
2698
|
+
const c = new AbortController();
|
|
2699
|
+
return c.abort(Object.defineProperty(new T.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
|
|
2700
|
+
value: "E721",
|
|
2701
|
+
enumerable: !1,
|
|
2702
|
+
configurable: !0
|
|
2703
|
+
})), c.signal;
|
|
2704
|
+
}
|
|
2705
|
+
function y(c) {
|
|
2706
|
+
switch (c.type) {
|
|
2707
|
+
case "prerender":
|
|
2708
|
+
case "prerender-runtime":
|
|
2709
|
+
const w = new AbortController();
|
|
2710
|
+
if (c.cacheSignal)
|
|
2711
|
+
c.cacheSignal.inputReady().then(() => {
|
|
2712
|
+
w.abort();
|
|
2713
|
+
});
|
|
2714
|
+
else {
|
|
2715
|
+
const d = (0, v.getRuntimeStagePromise)(c);
|
|
2716
|
+
d ? d.then(() => (0, f.scheduleOnNextTick)(() => w.abort())) : (0, f.scheduleOnNextTick)(() => w.abort());
|
|
2717
|
+
}
|
|
2718
|
+
return w.signal;
|
|
2719
|
+
case "prerender-client":
|
|
2720
|
+
case "prerender-ppr":
|
|
2721
|
+
case "prerender-legacy":
|
|
2722
|
+
case "request":
|
|
2723
|
+
case "cache":
|
|
2724
|
+
case "private-cache":
|
|
2725
|
+
case "unstable-cache":
|
|
2726
|
+
return;
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
function H(c, w) {
|
|
2730
|
+
const d = w.dynamicTracking;
|
|
2731
|
+
d && d.dynamicAccesses.push({
|
|
2732
|
+
stack: d.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2733
|
+
expression: c
|
|
2734
|
+
});
|
|
2735
|
+
}
|
|
2736
|
+
function I(c) {
|
|
2737
|
+
const w = i.workAsyncStorage.getStore(), d = v.workUnitAsyncStorage.getStore();
|
|
2738
|
+
if (w && d)
|
|
2739
|
+
switch (d.type) {
|
|
2740
|
+
case "prerender-client":
|
|
2741
|
+
case "prerender": {
|
|
2742
|
+
const U = d.fallbackRouteParams;
|
|
2743
|
+
U && U.size > 0 && E.default.use((0, p.makeHangingPromise)(d.renderSignal, w.route, c));
|
|
2744
|
+
break;
|
|
2745
|
+
}
|
|
2746
|
+
case "prerender-ppr": {
|
|
2747
|
+
const U = d.fallbackRouteParams;
|
|
2748
|
+
if (U && U.size > 0)
|
|
2749
|
+
return P(w.route, c, d.dynamicTracking);
|
|
2750
|
+
break;
|
|
2751
|
+
}
|
|
2752
|
+
case "prerender-runtime":
|
|
2753
|
+
throw Object.defineProperty(new k.InvariantError(`\`${c}\` was called during a runtime prerender. Next.js should be preventing ${c} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
2754
|
+
value: "E771",
|
|
2755
|
+
enumerable: !1,
|
|
2756
|
+
configurable: !0
|
|
2757
|
+
});
|
|
2758
|
+
case "cache":
|
|
2759
|
+
case "private-cache":
|
|
2760
|
+
throw Object.defineProperty(new k.InvariantError(`\`${c}\` was called inside a cache scope. Next.js should be preventing ${c} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
2761
|
+
value: "E745",
|
|
2762
|
+
enumerable: !1,
|
|
2763
|
+
configurable: !0
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
function Y(c) {
|
|
2768
|
+
const w = i.workAsyncStorage.getStore(), d = v.workUnitAsyncStorage.getStore();
|
|
2769
|
+
if (w)
|
|
2770
|
+
switch (d || (0, v.throwForMissingRequestStore)(c), d.type) {
|
|
2771
|
+
case "prerender-client": {
|
|
2772
|
+
E.default.use((0, p.makeHangingPromise)(d.renderSignal, w.route, c));
|
|
2773
|
+
break;
|
|
2774
|
+
}
|
|
2775
|
+
case "prerender-legacy":
|
|
2776
|
+
case "prerender-ppr": {
|
|
2777
|
+
if (w.forceStatic)
|
|
2778
|
+
return;
|
|
2779
|
+
throw Object.defineProperty(new T.BailoutToCSRError(c), "__NEXT_ERROR_CODE", {
|
|
2780
|
+
value: "E394",
|
|
2781
|
+
enumerable: !1,
|
|
2782
|
+
configurable: !0
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
case "prerender":
|
|
2786
|
+
case "prerender-runtime":
|
|
2787
|
+
throw Object.defineProperty(new k.InvariantError(`\`${c}\` was called from a Server Component. Next.js should be preventing ${c} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
2788
|
+
value: "E795",
|
|
2789
|
+
enumerable: !1,
|
|
2790
|
+
configurable: !0
|
|
2791
|
+
});
|
|
2792
|
+
case "cache":
|
|
2793
|
+
case "unstable-cache":
|
|
2794
|
+
case "private-cache":
|
|
2795
|
+
throw Object.defineProperty(new k.InvariantError(`\`${c}\` was called inside a cache scope. Next.js should be preventing ${c} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
2796
|
+
value: "E745",
|
|
2797
|
+
enumerable: !1,
|
|
2798
|
+
configurable: !0
|
|
2799
|
+
});
|
|
2800
|
+
case "request":
|
|
2801
|
+
return;
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
const G = /\n\s+at Suspense \(<anonymous>\)/, F = "body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6", re = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${F}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${l.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`), K = new RegExp(`\\n\\s+at ${l.METADATA_BOUNDARY_NAME}[\\n\\s]`), ue = new RegExp(`\\n\\s+at ${l.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), Re = new RegExp(`\\n\\s+at ${l.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
2805
|
+
function be(c, w, d, U) {
|
|
2806
|
+
if (!Re.test(w))
|
|
2807
|
+
if (K.test(w)) {
|
|
2808
|
+
d.hasDynamicMetadata = !0;
|
|
2809
|
+
return;
|
|
2810
|
+
} else if (ue.test(w)) {
|
|
2811
|
+
d.hasDynamicViewport = !0;
|
|
2812
|
+
return;
|
|
2813
|
+
} else if (re.test(w)) {
|
|
2814
|
+
d.hasAllowedDynamic = !0, d.hasSuspenseAboveBody = !0;
|
|
2815
|
+
return;
|
|
2816
|
+
} else if (G.test(w)) {
|
|
2817
|
+
d.hasAllowedDynamic = !0;
|
|
2818
|
+
return;
|
|
2819
|
+
} else if (U.syncDynamicErrorWithStack) {
|
|
2820
|
+
d.dynamicErrors.push(U.syncDynamicErrorWithStack);
|
|
2821
|
+
return;
|
|
2822
|
+
} else {
|
|
2823
|
+
const te = `Route "${c.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`, J = ve(te, w);
|
|
2824
|
+
d.dynamicErrors.push(J);
|
|
2825
|
+
return;
|
|
2826
|
+
}
|
|
2827
|
+
}
|
|
2828
|
+
function ve(c, w) {
|
|
2829
|
+
const d = process.env.NODE_ENV !== "production" && E.default.captureOwnerStack ? E.default.captureOwnerStack() : null, U = Object.defineProperty(new Error(c), "__NEXT_ERROR_CODE", {
|
|
2830
|
+
value: "E394",
|
|
2831
|
+
enumerable: !1,
|
|
2832
|
+
configurable: !0
|
|
2833
|
+
});
|
|
2834
|
+
return U.stack = U.name + ": " + c + (d ?? w), U;
|
|
2835
|
+
}
|
|
2836
|
+
var we = /* @__PURE__ */ (function(c) {
|
|
2837
|
+
return c[c.Full = 0] = "Full", c[c.Empty = 1] = "Empty", c[c.Errored = 2] = "Errored", c;
|
|
2838
|
+
})({});
|
|
2839
|
+
function le(c, w) {
|
|
2840
|
+
console.error(w), c.dev || (c.hasReadableErrorStacks ? console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${c.route}" in your browser to investigate the error.`) : console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
2841
|
+
- Start the app in development mode by running \`next dev\`, then open "${c.route}" in your browser to investigate the error.
|
|
2842
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`));
|
|
2843
|
+
}
|
|
2844
|
+
function he(c, w, d, U) {
|
|
2845
|
+
if (U.syncDynamicErrorWithStack)
|
|
2846
|
+
throw le(c, U.syncDynamicErrorWithStack), new g.StaticGenBailoutError();
|
|
2847
|
+
if (w !== 0) {
|
|
2848
|
+
if (d.hasSuspenseAboveBody)
|
|
2849
|
+
return;
|
|
2850
|
+
const te = d.dynamicErrors;
|
|
2851
|
+
if (te.length > 0) {
|
|
2852
|
+
for (let J = 0; J < te.length; J++)
|
|
2853
|
+
le(c, te[J]);
|
|
2854
|
+
throw new g.StaticGenBailoutError();
|
|
2855
|
+
}
|
|
2856
|
+
if (d.hasDynamicViewport)
|
|
2857
|
+
throw console.error(`Route "${c.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`), new g.StaticGenBailoutError();
|
|
2858
|
+
if (w === 1)
|
|
2859
|
+
throw console.error(`Route "${c.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`), new g.StaticGenBailoutError();
|
|
2860
|
+
} else if (d.hasAllowedDynamic === !1 && d.hasDynamicMetadata)
|
|
2861
|
+
throw console.error(`Route "${c.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`), new g.StaticGenBailoutError();
|
|
2862
|
+
}
|
|
2863
|
+
function ne(c, w) {
|
|
2864
|
+
return c.runtimeStagePromise ? c.runtimeStagePromise.then(() => w) : w;
|
|
2865
|
+
}
|
|
2866
|
+
})(Ye)), Ye;
|
|
2867
|
+
}
|
|
2868
|
+
var Ve = {}, Ut;
|
|
2869
|
+
function ct() {
|
|
2870
|
+
return Ut || (Ut = 1, (function(h) {
|
|
2871
|
+
Object.defineProperty(h, "__esModule", {
|
|
2872
|
+
value: !0
|
|
2873
|
+
}), Object.defineProperty(h, "createDedupedByCallsiteServerErrorLoggerDev", {
|
|
2874
|
+
enumerable: !0,
|
|
2875
|
+
get: function() {
|
|
2876
|
+
return l;
|
|
2877
|
+
}
|
|
2878
|
+
});
|
|
2879
|
+
const a = /* @__PURE__ */ R(Kt());
|
|
2880
|
+
function E(f) {
|
|
2881
|
+
if (typeof WeakMap != "function") return null;
|
|
2882
|
+
var T = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap();
|
|
2883
|
+
return (E = function(j) {
|
|
2884
|
+
return j ? k : T;
|
|
2885
|
+
})(f);
|
|
2886
|
+
}
|
|
2887
|
+
function R(f, T) {
|
|
2888
|
+
if (f && f.__esModule)
|
|
2889
|
+
return f;
|
|
2890
|
+
if (f === null || typeof f != "object" && typeof f != "function")
|
|
2891
|
+
return {
|
|
2892
|
+
default: f
|
|
2893
|
+
};
|
|
2894
|
+
var k = E(T);
|
|
2895
|
+
if (k && k.has(f))
|
|
2896
|
+
return k.get(f);
|
|
2897
|
+
var j = {
|
|
2898
|
+
__proto__: null
|
|
2899
|
+
}, $ = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
2900
|
+
for (var L in f)
|
|
2901
|
+
if (L !== "default" && Object.prototype.hasOwnProperty.call(f, L)) {
|
|
2902
|
+
var b = $ ? Object.getOwnPropertyDescriptor(f, L) : null;
|
|
2903
|
+
b && (b.get || b.set) ? Object.defineProperty(j, L, b) : j[L] = f[L];
|
|
2904
|
+
}
|
|
2905
|
+
return j.default = f, k && k.set(f, j), j;
|
|
2906
|
+
}
|
|
2907
|
+
const g = {
|
|
2908
|
+
current: null
|
|
2909
|
+
}, v = typeof a.cache == "function" ? a.cache : (f) => f, i = process.env.__NEXT_CACHE_COMPONENTS ? console.error : console.warn, p = v(
|
|
2910
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- cache key
|
|
2911
|
+
(f) => {
|
|
2912
|
+
try {
|
|
2913
|
+
i(g.current);
|
|
2914
|
+
} finally {
|
|
2915
|
+
g.current = null;
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
);
|
|
2919
|
+
function l(f) {
|
|
2920
|
+
return function(...k) {
|
|
2921
|
+
const j = f(...k);
|
|
2922
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2923
|
+
var $;
|
|
2924
|
+
const L = ($ = new Error().stack) == null ? void 0 : $.split(`
|
|
2925
|
+
`);
|
|
2926
|
+
if (L === void 0 || L.length < 4)
|
|
2927
|
+
i(j);
|
|
2928
|
+
else {
|
|
2929
|
+
const b = L[4];
|
|
2930
|
+
g.current = j, p(b);
|
|
2931
|
+
}
|
|
2932
|
+
} else
|
|
2933
|
+
i(j);
|
|
2934
|
+
};
|
|
2935
|
+
}
|
|
2936
|
+
})(Ve)), Ve;
|
|
2937
|
+
}
|
|
2938
|
+
var Ze = {}, Je = {}, et = {}, Wt;
|
|
2939
|
+
function yr() {
|
|
2940
|
+
return Wt || (Wt = 1, (function(h) {
|
|
2941
|
+
Object.defineProperty(h, "__esModule", {
|
|
2942
|
+
value: !0
|
|
2943
|
+
}), Object.defineProperty(h, "afterTaskAsyncStorageInstance", {
|
|
2944
|
+
enumerable: !0,
|
|
2945
|
+
get: function() {
|
|
2946
|
+
return E;
|
|
2947
|
+
}
|
|
2948
|
+
});
|
|
2949
|
+
const E = (0, at().createAsyncLocalStorage)();
|
|
2950
|
+
})(et)), et;
|
|
2951
|
+
}
|
|
2952
|
+
var Xt;
|
|
2953
|
+
function _r() {
|
|
2954
|
+
return Xt || (Xt = 1, (function(h) {
|
|
2955
|
+
Object.defineProperty(h, "__esModule", {
|
|
2956
|
+
value: !0
|
|
2957
|
+
}), Object.defineProperty(h, "afterTaskAsyncStorage", {
|
|
2958
|
+
enumerable: !0,
|
|
2959
|
+
get: function() {
|
|
2960
|
+
return a.afterTaskAsyncStorageInstance;
|
|
2961
|
+
}
|
|
2962
|
+
});
|
|
2963
|
+
const a = yr();
|
|
2964
|
+
})(Je)), Je;
|
|
2965
|
+
}
|
|
2966
|
+
var Bt;
|
|
2967
|
+
function Zt() {
|
|
2968
|
+
return Bt || (Bt = 1, (function(h) {
|
|
2969
|
+
Object.defineProperty(h, "__esModule", {
|
|
2970
|
+
value: !0
|
|
2971
|
+
});
|
|
2972
|
+
function a(p, l) {
|
|
2973
|
+
for (var f in l) Object.defineProperty(p, f, {
|
|
2974
|
+
enumerable: !0,
|
|
2975
|
+
get: l[f]
|
|
2976
|
+
});
|
|
2977
|
+
}
|
|
2978
|
+
a(h, {
|
|
2979
|
+
isRequestAPICallableInsideAfter: function() {
|
|
2980
|
+
return i;
|
|
2981
|
+
},
|
|
2982
|
+
throwForSearchParamsAccessInUseCache: function() {
|
|
2983
|
+
return v;
|
|
2984
|
+
},
|
|
2985
|
+
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
2986
|
+
return g;
|
|
2987
|
+
}
|
|
2988
|
+
});
|
|
2989
|
+
const E = Ee(), R = _r();
|
|
2990
|
+
function g(p, l) {
|
|
2991
|
+
throw Object.defineProperty(new E.StaticGenBailoutError(`Route ${p} with \`dynamic = "error"\` couldn't be rendered statically because it used ${l}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2992
|
+
value: "E543",
|
|
2993
|
+
enumerable: !1,
|
|
2994
|
+
configurable: !0
|
|
2995
|
+
});
|
|
2996
|
+
}
|
|
2997
|
+
function v(p, l) {
|
|
2998
|
+
const f = Object.defineProperty(new Error(`Route ${p.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
2999
|
+
value: "E842",
|
|
3000
|
+
enumerable: !1,
|
|
3001
|
+
configurable: !0
|
|
3002
|
+
});
|
|
3003
|
+
throw Error.captureStackTrace(f, l), p.invalidDynamicUsageError ?? (p.invalidDynamicUsageError = f), f;
|
|
3004
|
+
}
|
|
3005
|
+
function i() {
|
|
3006
|
+
const p = R.afterTaskAsyncStorage.getStore();
|
|
3007
|
+
return (p == null ? void 0 : p.rootTaskSpawnPhase) === "action";
|
|
3008
|
+
}
|
|
3009
|
+
})(Ze)), Ze;
|
|
3010
|
+
}
|
|
3011
|
+
var Yt;
|
|
3012
|
+
function mr() {
|
|
3013
|
+
return Yt || (Yt = 1, (function(h) {
|
|
3014
|
+
Object.defineProperty(h, "__esModule", {
|
|
3015
|
+
value: !0
|
|
3016
|
+
}), Object.defineProperty(h, "cookies", {
|
|
3017
|
+
enumerable: !0,
|
|
3018
|
+
get: function() {
|
|
3019
|
+
return j;
|
|
3020
|
+
}
|
|
3021
|
+
});
|
|
3022
|
+
const a = sr(), E = Qt(), R = ge(), g = De(), v = ut(), i = Ee(), p = st(), l = ct(), f = Zt(), T = pe(), k = it();
|
|
3023
|
+
function j() {
|
|
3024
|
+
const n = "cookies", s = R.workAsyncStorage.getStore(), m = g.workUnitAsyncStorage.getStore();
|
|
3025
|
+
if (s) {
|
|
3026
|
+
if (m && m.phase === "after" && !(0, f.isRequestAPICallableInsideAfter)())
|
|
3027
|
+
throw Object.defineProperty(new Error(
|
|
3028
|
+
// TODO(after): clarify that this only applies to pages?
|
|
3029
|
+
`Route ${s.route} used \`cookies()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`
|
|
3030
|
+
), "__NEXT_ERROR_CODE", {
|
|
3031
|
+
value: "E843",
|
|
3032
|
+
enumerable: !1,
|
|
3033
|
+
configurable: !0
|
|
3034
|
+
});
|
|
3035
|
+
if (s.forceStatic) {
|
|
3036
|
+
const P = $();
|
|
3037
|
+
return C(P);
|
|
3038
|
+
}
|
|
3039
|
+
if (s.dynamicShouldError)
|
|
3040
|
+
throw Object.defineProperty(new i.StaticGenBailoutError(`Route ${s.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3041
|
+
value: "E849",
|
|
3042
|
+
enumerable: !1,
|
|
3043
|
+
configurable: !0
|
|
3044
|
+
});
|
|
3045
|
+
if (m)
|
|
3046
|
+
switch (m.type) {
|
|
3047
|
+
case "cache":
|
|
3048
|
+
const P = Object.defineProperty(new Error(`Route ${s.route} used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3049
|
+
value: "E831",
|
|
3050
|
+
enumerable: !1,
|
|
3051
|
+
configurable: !0
|
|
3052
|
+
});
|
|
3053
|
+
throw Error.captureStackTrace(P, j), s.invalidDynamicUsageError ?? (s.invalidDynamicUsageError = P), P;
|
|
3054
|
+
case "unstable-cache":
|
|
3055
|
+
throw Object.defineProperty(new Error(`Route ${s.route} used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
3056
|
+
value: "E846",
|
|
3057
|
+
enumerable: !1,
|
|
3058
|
+
configurable: !0
|
|
3059
|
+
});
|
|
3060
|
+
case "prerender":
|
|
3061
|
+
return b(s, m);
|
|
3062
|
+
case "prerender-client":
|
|
3063
|
+
const Q = "`cookies`";
|
|
3064
|
+
throw Object.defineProperty(new T.InvariantError(`${Q} must not be used within a Client Component. Next.js should be preventing ${Q} from being included in Client Components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
3065
|
+
value: "E832",
|
|
3066
|
+
enumerable: !1,
|
|
3067
|
+
configurable: !0
|
|
3068
|
+
});
|
|
3069
|
+
case "prerender-ppr":
|
|
3070
|
+
return (0, v.postponeWithTracking)(s.route, n, m.dynamicTracking);
|
|
3071
|
+
case "prerender-legacy":
|
|
3072
|
+
return (0, v.throwToInterruptStaticGeneration)(n, s, m);
|
|
3073
|
+
case "prerender-runtime":
|
|
3074
|
+
return (0, v.delayUntilRuntimeStage)(m, C(m.cookies));
|
|
3075
|
+
case "private-cache":
|
|
3076
|
+
return C(m.cookies);
|
|
3077
|
+
case "request":
|
|
3078
|
+
(0, v.trackDynamicDataInDynamicRender)(m);
|
|
3079
|
+
let q;
|
|
3080
|
+
return (0, a.areCookiesMutableInCurrentPhase)(m) ? q = m.userspaceMutableCookies : q = m.cookies, process.env.NODE_ENV === "development" ? N(m, q, s == null ? void 0 : s.route) : C(q);
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
(0, g.throwForMissingRequestStore)(n);
|
|
3084
|
+
}
|
|
3085
|
+
function $() {
|
|
3086
|
+
return a.RequestCookiesAdapter.seal(new E.RequestCookies(new Headers({})));
|
|
3087
|
+
}
|
|
3088
|
+
const L = /* @__PURE__ */ new WeakMap();
|
|
3089
|
+
function b(n, s) {
|
|
3090
|
+
const m = L.get(s);
|
|
3091
|
+
if (m)
|
|
3092
|
+
return m;
|
|
3093
|
+
const P = (0, p.makeHangingPromise)(s.renderSignal, n.route, "`cookies()`");
|
|
3094
|
+
return L.set(s, P), P;
|
|
3095
|
+
}
|
|
3096
|
+
function C(n) {
|
|
3097
|
+
const s = L.get(n);
|
|
3098
|
+
if (s)
|
|
3099
|
+
return s;
|
|
3100
|
+
const m = Promise.resolve(n);
|
|
3101
|
+
return L.set(n, m), m;
|
|
3102
|
+
}
|
|
3103
|
+
function N(n, s, m) {
|
|
3104
|
+
if (n.asyncApiPromises) {
|
|
3105
|
+
let V;
|
|
3106
|
+
if (s === n.mutableCookies)
|
|
3107
|
+
V = n.asyncApiPromises.mutableCookies;
|
|
3108
|
+
else if (s === n.cookies)
|
|
3109
|
+
V = n.asyncApiPromises.cookies;
|
|
3110
|
+
else
|
|
3111
|
+
throw Object.defineProperty(new T.InvariantError("Received an underlying cookies object that does not match either `cookies` or `mutableCookies`"), "__NEXT_ERROR_CODE", {
|
|
3112
|
+
value: "E890",
|
|
3113
|
+
enumerable: !1,
|
|
3114
|
+
configurable: !0
|
|
3115
|
+
});
|
|
3116
|
+
return M(V, m);
|
|
3117
|
+
}
|
|
3118
|
+
const P = L.get(s);
|
|
3119
|
+
if (P)
|
|
3120
|
+
return P;
|
|
3121
|
+
const Q = (0, p.makeDevtoolsIOAwarePromise)(s, n, k.RenderStage.Runtime), q = M(Q, m);
|
|
3122
|
+
return L.set(s, q), q;
|
|
3123
|
+
}
|
|
3124
|
+
const A = (0, l.createDedupedByCallsiteServerErrorLoggerDev)(u);
|
|
3125
|
+
function M(n, s) {
|
|
3126
|
+
return Object.defineProperties(n, {
|
|
3127
|
+
[Symbol.iterator]: t(n, s),
|
|
3128
|
+
size: S(n, "size", s),
|
|
3129
|
+
get: S(n, "get", s),
|
|
3130
|
+
getAll: S(n, "getAll", s),
|
|
3131
|
+
has: S(n, "has", s),
|
|
3132
|
+
set: S(n, "set", s),
|
|
3133
|
+
delete: S(n, "delete", s),
|
|
3134
|
+
clear: S(n, "clear", s),
|
|
3135
|
+
toString: S(n, "toString", s)
|
|
3136
|
+
}), n;
|
|
3137
|
+
}
|
|
3138
|
+
function S(n, s, m) {
|
|
3139
|
+
return {
|
|
3140
|
+
enumerable: !1,
|
|
3141
|
+
get() {
|
|
3142
|
+
A(m, `\`cookies().${s}\``);
|
|
3143
|
+
},
|
|
3144
|
+
set(P) {
|
|
3145
|
+
Object.defineProperty(n, s, {
|
|
3146
|
+
value: P,
|
|
3147
|
+
writable: !0,
|
|
3148
|
+
configurable: !0
|
|
3149
|
+
});
|
|
3150
|
+
},
|
|
3151
|
+
configurable: !0
|
|
3152
|
+
};
|
|
3153
|
+
}
|
|
3154
|
+
function t(n, s) {
|
|
3155
|
+
return {
|
|
3156
|
+
enumerable: !1,
|
|
3157
|
+
get() {
|
|
3158
|
+
A(s, "`...cookies()` or similar iteration");
|
|
3159
|
+
},
|
|
3160
|
+
set(m) {
|
|
3161
|
+
Object.defineProperty(n, Symbol.iterator, {
|
|
3162
|
+
value: m,
|
|
3163
|
+
writable: !0,
|
|
3164
|
+
enumerable: !0,
|
|
3165
|
+
configurable: !0
|
|
3166
|
+
});
|
|
3167
|
+
},
|
|
3168
|
+
configurable: !0
|
|
3169
|
+
};
|
|
3170
|
+
}
|
|
3171
|
+
function u(n, s) {
|
|
3172
|
+
const m = n ? `Route "${n}" ` : "This route ";
|
|
3173
|
+
return Object.defineProperty(new Error(`${m}used ${s}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
|
|
3174
|
+
value: "E830",
|
|
3175
|
+
enumerable: !1,
|
|
3176
|
+
configurable: !0
|
|
3177
|
+
});
|
|
3178
|
+
}
|
|
3179
|
+
})(Ne)), Ne;
|
|
3180
|
+
}
|
|
3181
|
+
var tt = {}, rt = {}, $t;
|
|
3182
|
+
function gr() {
|
|
3183
|
+
return $t || ($t = 1, (function(h) {
|
|
3184
|
+
Object.defineProperty(h, "__esModule", {
|
|
3185
|
+
value: !0
|
|
3186
|
+
});
|
|
3187
|
+
function a(v, i) {
|
|
3188
|
+
for (var p in i) Object.defineProperty(v, p, {
|
|
3189
|
+
enumerable: !0,
|
|
3190
|
+
get: i[p]
|
|
3191
|
+
});
|
|
3192
|
+
}
|
|
3193
|
+
a(h, {
|
|
3194
|
+
HeadersAdapter: function() {
|
|
3195
|
+
return g;
|
|
3196
|
+
},
|
|
3197
|
+
ReadonlyHeadersError: function() {
|
|
3198
|
+
return R;
|
|
3199
|
+
}
|
|
3200
|
+
});
|
|
3201
|
+
const E = ot();
|
|
3202
|
+
class R extends Error {
|
|
3203
|
+
constructor() {
|
|
3204
|
+
super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers");
|
|
3205
|
+
}
|
|
3206
|
+
static callable() {
|
|
3207
|
+
throw new R();
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
class g extends Headers {
|
|
3211
|
+
constructor(i) {
|
|
3212
|
+
super(), this.headers = new Proxy(i, {
|
|
3213
|
+
get(p, l, f) {
|
|
3214
|
+
if (typeof l == "symbol")
|
|
3215
|
+
return E.ReflectAdapter.get(p, l, f);
|
|
3216
|
+
const T = l.toLowerCase(), k = Object.keys(i).find((j) => j.toLowerCase() === T);
|
|
3217
|
+
if (!(typeof k > "u"))
|
|
3218
|
+
return E.ReflectAdapter.get(p, k, f);
|
|
3219
|
+
},
|
|
3220
|
+
set(p, l, f, T) {
|
|
3221
|
+
if (typeof l == "symbol")
|
|
3222
|
+
return E.ReflectAdapter.set(p, l, f, T);
|
|
3223
|
+
const k = l.toLowerCase(), j = Object.keys(i).find(($) => $.toLowerCase() === k);
|
|
3224
|
+
return E.ReflectAdapter.set(p, j ?? l, f, T);
|
|
3225
|
+
},
|
|
3226
|
+
has(p, l) {
|
|
3227
|
+
if (typeof l == "symbol") return E.ReflectAdapter.has(p, l);
|
|
3228
|
+
const f = l.toLowerCase(), T = Object.keys(i).find((k) => k.toLowerCase() === f);
|
|
3229
|
+
return typeof T > "u" ? !1 : E.ReflectAdapter.has(p, T);
|
|
3230
|
+
},
|
|
3231
|
+
deleteProperty(p, l) {
|
|
3232
|
+
if (typeof l == "symbol") return E.ReflectAdapter.deleteProperty(p, l);
|
|
3233
|
+
const f = l.toLowerCase(), T = Object.keys(i).find((k) => k.toLowerCase() === f);
|
|
3234
|
+
return typeof T > "u" ? !0 : E.ReflectAdapter.deleteProperty(p, T);
|
|
3235
|
+
}
|
|
3236
|
+
});
|
|
3237
|
+
}
|
|
3238
|
+
/**
|
|
3239
|
+
* Seals a Headers instance to prevent modification by throwing an error when
|
|
3240
|
+
* any mutating method is called.
|
|
3241
|
+
*/
|
|
3242
|
+
static seal(i) {
|
|
3243
|
+
return new Proxy(i, {
|
|
3244
|
+
get(p, l, f) {
|
|
3245
|
+
switch (l) {
|
|
3246
|
+
case "append":
|
|
3247
|
+
case "delete":
|
|
3248
|
+
case "set":
|
|
3249
|
+
return R.callable;
|
|
3250
|
+
default:
|
|
3251
|
+
return E.ReflectAdapter.get(p, l, f);
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
});
|
|
3255
|
+
}
|
|
3256
|
+
/**
|
|
3257
|
+
* Merges a header value into a string. This stores multiple values as an
|
|
3258
|
+
* array, so we need to merge them into a string.
|
|
3259
|
+
*
|
|
3260
|
+
* @param value a header value
|
|
3261
|
+
* @returns a merged header value (a string)
|
|
3262
|
+
*/
|
|
3263
|
+
merge(i) {
|
|
3264
|
+
return Array.isArray(i) ? i.join(", ") : i;
|
|
3265
|
+
}
|
|
3266
|
+
/**
|
|
3267
|
+
* Creates a Headers instance from a plain object or a Headers instance.
|
|
3268
|
+
*
|
|
3269
|
+
* @param headers a plain object or a Headers instance
|
|
3270
|
+
* @returns a headers instance
|
|
3271
|
+
*/
|
|
3272
|
+
static from(i) {
|
|
3273
|
+
return i instanceof Headers ? i : new g(i);
|
|
3274
|
+
}
|
|
3275
|
+
append(i, p) {
|
|
3276
|
+
const l = this.headers[i];
|
|
3277
|
+
typeof l == "string" ? this.headers[i] = [
|
|
3278
|
+
l,
|
|
3279
|
+
p
|
|
3280
|
+
] : Array.isArray(l) ? l.push(p) : this.headers[i] = p;
|
|
3281
|
+
}
|
|
3282
|
+
delete(i) {
|
|
3283
|
+
delete this.headers[i];
|
|
3284
|
+
}
|
|
3285
|
+
get(i) {
|
|
3286
|
+
const p = this.headers[i];
|
|
3287
|
+
return typeof p < "u" ? this.merge(p) : null;
|
|
3288
|
+
}
|
|
3289
|
+
has(i) {
|
|
3290
|
+
return typeof this.headers[i] < "u";
|
|
3291
|
+
}
|
|
3292
|
+
set(i, p) {
|
|
3293
|
+
this.headers[i] = p;
|
|
3294
|
+
}
|
|
3295
|
+
forEach(i, p) {
|
|
3296
|
+
for (const [l, f] of this.entries())
|
|
3297
|
+
i.call(p, f, l, this);
|
|
3298
|
+
}
|
|
3299
|
+
*entries() {
|
|
3300
|
+
for (const i of Object.keys(this.headers)) {
|
|
3301
|
+
const p = i.toLowerCase(), l = this.get(p);
|
|
3302
|
+
yield [
|
|
3303
|
+
p,
|
|
3304
|
+
l
|
|
3305
|
+
];
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
*keys() {
|
|
3309
|
+
for (const i of Object.keys(this.headers))
|
|
3310
|
+
yield i.toLowerCase();
|
|
3311
|
+
}
|
|
3312
|
+
*values() {
|
|
3313
|
+
for (const i of Object.keys(this.headers))
|
|
3314
|
+
yield this.get(i);
|
|
3315
|
+
}
|
|
3316
|
+
[Symbol.iterator]() {
|
|
3317
|
+
return this.entries();
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
})(rt)), rt;
|
|
3321
|
+
}
|
|
3322
|
+
var Gt;
|
|
3323
|
+
function Er() {
|
|
3324
|
+
return Gt || (Gt = 1, (function(h) {
|
|
3325
|
+
Object.defineProperty(h, "__esModule", {
|
|
3326
|
+
value: !0
|
|
3327
|
+
}), Object.defineProperty(h, "headers", {
|
|
3328
|
+
enumerable: !0,
|
|
3329
|
+
get: function() {
|
|
3330
|
+
return k;
|
|
3331
|
+
}
|
|
3332
|
+
});
|
|
3333
|
+
const a = gr(), E = ge(), R = De(), g = ut(), v = Ee(), i = st(), p = ct(), l = Zt(), f = pe(), T = it();
|
|
3334
|
+
function k() {
|
|
3335
|
+
const t = "headers", u = E.workAsyncStorage.getStore(), n = R.workUnitAsyncStorage.getStore();
|
|
3336
|
+
if (u) {
|
|
3337
|
+
if (n && n.phase === "after" && !(0, l.isRequestAPICallableInsideAfter)())
|
|
3338
|
+
throw Object.defineProperty(new Error(`Route ${u.route} used \`headers()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
3339
|
+
value: "E839",
|
|
3340
|
+
enumerable: !1,
|
|
3341
|
+
configurable: !0
|
|
3342
|
+
});
|
|
3343
|
+
if (u.forceStatic) {
|
|
3344
|
+
const s = a.HeadersAdapter.seal(new Headers({}));
|
|
3345
|
+
return L(s);
|
|
3346
|
+
}
|
|
3347
|
+
if (n)
|
|
3348
|
+
switch (n.type) {
|
|
3349
|
+
case "cache": {
|
|
3350
|
+
const s = Object.defineProperty(new Error(`Route ${u.route} used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3351
|
+
value: "E833",
|
|
3352
|
+
enumerable: !1,
|
|
3353
|
+
configurable: !0
|
|
3354
|
+
});
|
|
3355
|
+
throw Error.captureStackTrace(s, k), u.invalidDynamicUsageError ?? (u.invalidDynamicUsageError = s), s;
|
|
3356
|
+
}
|
|
3357
|
+
case "unstable-cache":
|
|
3358
|
+
throw Object.defineProperty(new Error(`Route ${u.route} used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
3359
|
+
value: "E838",
|
|
3360
|
+
enumerable: !1,
|
|
3361
|
+
configurable: !0
|
|
3362
|
+
});
|
|
3363
|
+
}
|
|
3364
|
+
if (u.dynamicShouldError)
|
|
3365
|
+
throw Object.defineProperty(new v.StaticGenBailoutError(`Route ${u.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3366
|
+
value: "E828",
|
|
3367
|
+
enumerable: !1,
|
|
3368
|
+
configurable: !0
|
|
3369
|
+
});
|
|
3370
|
+
if (n)
|
|
3371
|
+
switch (n.type) {
|
|
3372
|
+
case "prerender":
|
|
3373
|
+
return $(u, n);
|
|
3374
|
+
case "prerender-client":
|
|
3375
|
+
const s = "`headers`";
|
|
3376
|
+
throw Object.defineProperty(new f.InvariantError(`${s} must not be used within a client component. Next.js should be preventing ${s} from being included in client components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
3377
|
+
value: "E693",
|
|
3378
|
+
enumerable: !1,
|
|
3379
|
+
configurable: !0
|
|
3380
|
+
});
|
|
3381
|
+
case "prerender-ppr":
|
|
3382
|
+
return (0, g.postponeWithTracking)(u.route, t, n.dynamicTracking);
|
|
3383
|
+
case "prerender-legacy":
|
|
3384
|
+
return (0, g.throwToInterruptStaticGeneration)(t, u, n);
|
|
3385
|
+
case "prerender-runtime":
|
|
3386
|
+
return (0, g.delayUntilRuntimeStage)(n, L(n.headers));
|
|
3387
|
+
case "private-cache":
|
|
3388
|
+
return L(n.headers);
|
|
3389
|
+
case "request":
|
|
3390
|
+
return (0, g.trackDynamicDataInDynamicRender)(n), process.env.NODE_ENV === "development" ? b(n.headers, u == null ? void 0 : u.route, n) : L(n.headers);
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
(0, R.throwForMissingRequestStore)(t);
|
|
3394
|
+
}
|
|
3395
|
+
const j = /* @__PURE__ */ new WeakMap();
|
|
3396
|
+
function $(t, u) {
|
|
3397
|
+
const n = j.get(u);
|
|
3398
|
+
if (n)
|
|
3399
|
+
return n;
|
|
3400
|
+
const s = (0, i.makeHangingPromise)(u.renderSignal, t.route, "`headers()`");
|
|
3401
|
+
return j.set(u, s), s;
|
|
3402
|
+
}
|
|
3403
|
+
function L(t) {
|
|
3404
|
+
const u = j.get(t);
|
|
3405
|
+
if (u)
|
|
3406
|
+
return u;
|
|
3407
|
+
const n = Promise.resolve(t);
|
|
3408
|
+
return j.set(t, n), n;
|
|
3409
|
+
}
|
|
3410
|
+
function b(t, u, n) {
|
|
3411
|
+
if (n.asyncApiPromises) {
|
|
3412
|
+
const Q = n.asyncApiPromises.headers;
|
|
3413
|
+
return N(Q, u);
|
|
3414
|
+
}
|
|
3415
|
+
const s = j.get(t);
|
|
3416
|
+
if (s)
|
|
3417
|
+
return s;
|
|
3418
|
+
const m = (0, i.makeDevtoolsIOAwarePromise)(t, n, T.RenderStage.Runtime), P = N(m, u);
|
|
3419
|
+
return j.set(t, P), P;
|
|
3420
|
+
}
|
|
3421
|
+
const C = (0, p.createDedupedByCallsiteServerErrorLoggerDev)(S);
|
|
3422
|
+
function N(t, u) {
|
|
3423
|
+
return Object.defineProperties(t, {
|
|
3424
|
+
[Symbol.iterator]: M(t, u),
|
|
3425
|
+
append: A(t, "append", u),
|
|
3426
|
+
delete: A(t, "delete", u),
|
|
3427
|
+
get: A(t, "get", u),
|
|
3428
|
+
has: A(t, "has", u),
|
|
3429
|
+
set: A(t, "set", u),
|
|
3430
|
+
getSetCookie: A(t, "getSetCookie", u),
|
|
3431
|
+
forEach: A(t, "forEach", u),
|
|
3432
|
+
keys: A(t, "keys", u),
|
|
3433
|
+
values: A(t, "values", u),
|
|
3434
|
+
entries: A(t, "entries", u)
|
|
3435
|
+
}), t;
|
|
3436
|
+
}
|
|
3437
|
+
function A(t, u, n) {
|
|
3438
|
+
return {
|
|
3439
|
+
enumerable: !1,
|
|
3440
|
+
get() {
|
|
3441
|
+
C(n, `\`headers().${u}\``);
|
|
3442
|
+
},
|
|
3443
|
+
set(s) {
|
|
3444
|
+
Object.defineProperty(t, u, {
|
|
3445
|
+
value: s,
|
|
3446
|
+
writable: !0,
|
|
3447
|
+
configurable: !0
|
|
3448
|
+
});
|
|
3449
|
+
},
|
|
3450
|
+
configurable: !0
|
|
3451
|
+
};
|
|
3452
|
+
}
|
|
3453
|
+
function M(t, u) {
|
|
3454
|
+
return {
|
|
3455
|
+
enumerable: !1,
|
|
3456
|
+
get() {
|
|
3457
|
+
C(u, "`...headers()` or similar iteration");
|
|
3458
|
+
},
|
|
3459
|
+
set(n) {
|
|
3460
|
+
Object.defineProperty(t, Symbol.iterator, {
|
|
3461
|
+
value: n,
|
|
3462
|
+
writable: !0,
|
|
3463
|
+
enumerable: !0,
|
|
3464
|
+
configurable: !0
|
|
3465
|
+
});
|
|
3466
|
+
},
|
|
3467
|
+
configurable: !0
|
|
3468
|
+
};
|
|
3469
|
+
}
|
|
3470
|
+
function S(t, u) {
|
|
3471
|
+
const n = t ? `Route "${t}" ` : "This route ";
|
|
3472
|
+
return Object.defineProperty(new Error(`${n}used ${u}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
|
|
3473
|
+
value: "E836",
|
|
3474
|
+
enumerable: !1,
|
|
3475
|
+
configurable: !0
|
|
3476
|
+
});
|
|
3477
|
+
}
|
|
3478
|
+
})(tt)), tt;
|
|
3479
|
+
}
|
|
3480
|
+
var nt = {}, Ft;
|
|
3481
|
+
function Rr() {
|
|
3482
|
+
return Ft || (Ft = 1, (function(h) {
|
|
3483
|
+
Object.defineProperty(h, "__esModule", {
|
|
3484
|
+
value: !0
|
|
3485
|
+
}), Object.defineProperty(h, "draftMode", {
|
|
3486
|
+
enumerable: !0,
|
|
3487
|
+
get: function() {
|
|
3488
|
+
return f;
|
|
3489
|
+
}
|
|
3490
|
+
});
|
|
3491
|
+
const a = De(), E = ge(), R = ut(), g = ct(), v = Ee(), i = Vt(), p = pe(), l = ot();
|
|
3492
|
+
function f() {
|
|
3493
|
+
const A = "draftMode", M = E.workAsyncStorage.getStore(), S = a.workUnitAsyncStorage.getStore();
|
|
3494
|
+
switch ((!M || !S) && (0, a.throwForMissingRequestStore)(A), S.type) {
|
|
3495
|
+
case "prerender-runtime":
|
|
3496
|
+
return (0, R.delayUntilRuntimeStage)(S, T(S.draftMode, M));
|
|
3497
|
+
case "request":
|
|
3498
|
+
return T(S.draftMode, M);
|
|
3499
|
+
case "cache":
|
|
3500
|
+
case "private-cache":
|
|
3501
|
+
case "unstable-cache":
|
|
3502
|
+
const t = (0, a.getDraftModeProviderForCacheScope)(M, S);
|
|
3503
|
+
if (t)
|
|
3504
|
+
return T(t, M);
|
|
3505
|
+
// Otherwise, we fall through to providing an empty draft mode.
|
|
3506
|
+
// eslint-disable-next-line no-fallthrough
|
|
3507
|
+
case "prerender":
|
|
3508
|
+
case "prerender-client":
|
|
3509
|
+
case "prerender-ppr":
|
|
3510
|
+
case "prerender-legacy":
|
|
3511
|
+
return T(null, M);
|
|
3512
|
+
default:
|
|
3513
|
+
return S;
|
|
3514
|
+
}
|
|
3515
|
+
}
|
|
3516
|
+
function T(A, M) {
|
|
3517
|
+
const S = A ?? k, t = j.get(S);
|
|
3518
|
+
if (t)
|
|
3519
|
+
return t;
|
|
3520
|
+
if (process.env.NODE_ENV === "development" && !(M != null && M.isPrefetchRequest)) {
|
|
3521
|
+
const u = M == null ? void 0 : M.route;
|
|
3522
|
+
return $(A, u);
|
|
3523
|
+
} else
|
|
3524
|
+
return Promise.resolve(new L(A));
|
|
3525
|
+
}
|
|
3526
|
+
const k = {}, j = /* @__PURE__ */ new WeakMap();
|
|
3527
|
+
function $(A, M) {
|
|
3528
|
+
const S = new L(A), t = Promise.resolve(S);
|
|
3529
|
+
return new Proxy(t, {
|
|
3530
|
+
get(n, s, m) {
|
|
3531
|
+
switch (s) {
|
|
3532
|
+
case "isEnabled":
|
|
3533
|
+
b(M, `\`draftMode().${s}\``);
|
|
3534
|
+
break;
|
|
3535
|
+
case "enable":
|
|
3536
|
+
case "disable": {
|
|
3537
|
+
b(M, `\`draftMode().${s}()\``);
|
|
3538
|
+
break;
|
|
3539
|
+
}
|
|
3540
|
+
}
|
|
3541
|
+
return l.ReflectAdapter.get(n, s, m);
|
|
3542
|
+
}
|
|
3543
|
+
});
|
|
3544
|
+
}
|
|
3545
|
+
class L {
|
|
3546
|
+
constructor(M) {
|
|
3547
|
+
this._provider = M;
|
|
3548
|
+
}
|
|
3549
|
+
get isEnabled() {
|
|
3550
|
+
return this._provider !== null ? this._provider.isEnabled : !1;
|
|
3551
|
+
}
|
|
3552
|
+
enable() {
|
|
3553
|
+
N("draftMode().enable()", this.enable), this._provider !== null && this._provider.enable();
|
|
3554
|
+
}
|
|
3555
|
+
disable() {
|
|
3556
|
+
N("draftMode().disable()", this.disable), this._provider !== null && this._provider.disable();
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
const b = (0, g.createDedupedByCallsiteServerErrorLoggerDev)(C);
|
|
3560
|
+
function C(A, M) {
|
|
3561
|
+
const S = A ? `Route "${A}" ` : "This route ";
|
|
3562
|
+
return Object.defineProperty(new Error(`${S}used ${M}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
|
|
3563
|
+
value: "E835",
|
|
3564
|
+
enumerable: !1,
|
|
3565
|
+
configurable: !0
|
|
3566
|
+
});
|
|
3567
|
+
}
|
|
3568
|
+
function N(A, M) {
|
|
3569
|
+
const S = E.workAsyncStorage.getStore(), t = a.workUnitAsyncStorage.getStore();
|
|
3570
|
+
if (S) {
|
|
3571
|
+
if ((t == null ? void 0 : t.phase) === "after")
|
|
3572
|
+
throw Object.defineProperty(new Error(`Route ${S.route} used "${A}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
3573
|
+
value: "E845",
|
|
3574
|
+
enumerable: !1,
|
|
3575
|
+
configurable: !0
|
|
3576
|
+
});
|
|
3577
|
+
if (S.dynamicShouldError)
|
|
3578
|
+
throw Object.defineProperty(new v.StaticGenBailoutError(`Route ${S.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${A}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3579
|
+
value: "E553",
|
|
3580
|
+
enumerable: !1,
|
|
3581
|
+
configurable: !0
|
|
3582
|
+
});
|
|
3583
|
+
if (t)
|
|
3584
|
+
switch (t.type) {
|
|
3585
|
+
case "cache":
|
|
3586
|
+
case "private-cache": {
|
|
3587
|
+
const s = Object.defineProperty(new Error(`Route ${S.route} used "${A}" inside "use cache". The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
3588
|
+
value: "E829",
|
|
3589
|
+
enumerable: !1,
|
|
3590
|
+
configurable: !0
|
|
3591
|
+
});
|
|
3592
|
+
throw Error.captureStackTrace(s, M), S.invalidDynamicUsageError ?? (S.invalidDynamicUsageError = s), s;
|
|
3593
|
+
}
|
|
3594
|
+
case "unstable-cache":
|
|
3595
|
+
throw Object.defineProperty(new Error(`Route ${S.route} used "${A}" inside a function cached with \`unstable_cache()\`. The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
3596
|
+
value: "E844",
|
|
3597
|
+
enumerable: !1,
|
|
3598
|
+
configurable: !0
|
|
3599
|
+
});
|
|
3600
|
+
case "prerender":
|
|
3601
|
+
case "prerender-runtime": {
|
|
3602
|
+
const s = Object.defineProperty(new Error(`Route ${S.route} used ${A} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`), "__NEXT_ERROR_CODE", {
|
|
3603
|
+
value: "E126",
|
|
3604
|
+
enumerable: !1,
|
|
3605
|
+
configurable: !0
|
|
3606
|
+
});
|
|
3607
|
+
return (0, R.abortAndThrowOnSynchronousRequestDataAccess)(S.route, A, s, t);
|
|
3608
|
+
}
|
|
3609
|
+
case "prerender-client":
|
|
3610
|
+
const u = "`draftMode`";
|
|
3611
|
+
throw Object.defineProperty(new p.InvariantError(`${u} must not be used within a Client Component. Next.js should be preventing ${u} from being included in Client Components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
3612
|
+
value: "E832",
|
|
3613
|
+
enumerable: !1,
|
|
3614
|
+
configurable: !0
|
|
3615
|
+
});
|
|
3616
|
+
case "prerender-ppr":
|
|
3617
|
+
return (0, R.postponeWithTracking)(S.route, A, t.dynamicTracking);
|
|
3618
|
+
case "prerender-legacy":
|
|
3619
|
+
t.revalidate = 0;
|
|
3620
|
+
const n = Object.defineProperty(new i.DynamicServerError(`Route ${S.route} couldn't be rendered statically because it used \`${A}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
3621
|
+
value: "E558",
|
|
3622
|
+
enumerable: !1,
|
|
3623
|
+
configurable: !0
|
|
3624
|
+
});
|
|
3625
|
+
throw S.dynamicUsageDescription = A, S.dynamicUsageStack = n.stack, n;
|
|
3626
|
+
case "request":
|
|
3627
|
+
(0, R.trackDynamicDataInDynamicRender)(t);
|
|
3628
|
+
break;
|
|
3629
|
+
}
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
})(nt)), nt;
|
|
3633
|
+
}
|
|
3634
|
+
var zt;
|
|
3635
|
+
function br() {
|
|
3636
|
+
return zt || (zt = 1, _e.cookies = mr().cookies, _e.headers = Er().headers, _e.draftMode = Rr().draftMode), _e;
|
|
3637
|
+
}
|
|
3638
|
+
var vr = br();
|
|
3639
|
+
const wr = /* @__PURE__ */ nr({
|
|
3640
|
+
__proto__: null
|
|
3641
|
+
}, [vr]);
|
|
3642
|
+
export {
|
|
3643
|
+
wr as h
|
|
3644
|
+
};
|