@0xchain/i18n 1.1.0-beta.8 → 1.1.0-beta.80
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/LICENSE +21 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -10
- package/dist/lib/resolveIntlHref.d.ts +11 -0
- package/dist/lib/resolveIntlHref.d.ts.map +1 -0
- package/dist/localeCookie.d.ts +18 -0
- package/dist/localeCookie.d.ts.map +1 -0
- package/dist/localeCookie.js +27 -0
- package/dist/middleware.js +6 -6
- package/dist/navigation.d.ts +13 -315
- package/dist/navigation.js +83 -8
- package/dist/react.d.ts +3 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +10 -0
- package/dist/redirectWithLanguage.js +33 -4343
- package/dist/request.js +13 -10
- package/dist/routing.js +4 -4
- package/package.json +27 -4
- package/dist/navigation.d.ts.map +0 -1
|
@@ -1,4334 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (d === _ || l === t.defaultLocale.toLowerCase() || (u = t.locales) != null && u.some((c) => c.toLowerCase() === l))
|
|
20
|
-
return t;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
})(Xe)), Xe;
|
|
25
|
-
}
|
|
26
|
-
var Be = {}, Ge = {}, Mt;
|
|
27
|
-
function Br() {
|
|
28
|
-
return Mt || (Mt = 1, (function(s) {
|
|
29
|
-
Object.defineProperty(s, "__esModule", {
|
|
30
|
-
value: !0
|
|
31
|
-
}), Object.defineProperty(s, "removeTrailingSlash", {
|
|
32
|
-
enumerable: !0,
|
|
33
|
-
get: function() {
|
|
34
|
-
return o;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
function o(g) {
|
|
38
|
-
return g.replace(/\/$/, "") || "/";
|
|
39
|
-
}
|
|
40
|
-
})(Ge)), Ge;
|
|
41
|
-
}
|
|
42
|
-
var We = {}, Fe = {}, Ht;
|
|
43
|
-
function Ct() {
|
|
44
|
-
return Ht || (Ht = 1, (function(s) {
|
|
45
|
-
Object.defineProperty(s, "__esModule", {
|
|
46
|
-
value: !0
|
|
47
|
-
}), Object.defineProperty(s, "parsePath", {
|
|
48
|
-
enumerable: !0,
|
|
49
|
-
get: function() {
|
|
50
|
-
return o;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
function o(g) {
|
|
54
|
-
const d = g.indexOf("#"), l = g.indexOf("?"), E = l > -1 && (d < 0 || l < d);
|
|
55
|
-
return E || d > -1 ? {
|
|
56
|
-
pathname: g.substring(0, E ? l : d),
|
|
57
|
-
query: E ? g.substring(l, d > -1 ? d : void 0) : "",
|
|
58
|
-
hash: d > -1 ? g.slice(d) : ""
|
|
59
|
-
} : {
|
|
60
|
-
pathname: g,
|
|
61
|
-
query: "",
|
|
62
|
-
hash: ""
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
})(Fe)), Fe;
|
|
66
|
-
}
|
|
67
|
-
var qt;
|
|
68
|
-
function kr() {
|
|
69
|
-
return qt || (qt = 1, (function(s) {
|
|
70
|
-
Object.defineProperty(s, "__esModule", {
|
|
71
|
-
value: !0
|
|
72
|
-
}), Object.defineProperty(s, "addPathPrefix", {
|
|
73
|
-
enumerable: !0,
|
|
74
|
-
get: function() {
|
|
75
|
-
return g;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
const o = Ct();
|
|
79
|
-
function g(d, l) {
|
|
80
|
-
if (!d.startsWith("/") || !l)
|
|
81
|
-
return d;
|
|
82
|
-
const { pathname: E, query: u, hash: t } = (0, o.parsePath)(d);
|
|
83
|
-
return `${l}${E}${u}${t}`;
|
|
84
|
-
}
|
|
85
|
-
})(We)), We;
|
|
86
|
-
}
|
|
87
|
-
var Ye = {}, Ut;
|
|
88
|
-
function Gr() {
|
|
89
|
-
return Ut || (Ut = 1, (function(s) {
|
|
90
|
-
Object.defineProperty(s, "__esModule", {
|
|
91
|
-
value: !0
|
|
92
|
-
}), Object.defineProperty(s, "addPathSuffix", {
|
|
93
|
-
enumerable: !0,
|
|
94
|
-
get: function() {
|
|
95
|
-
return g;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
const o = Ct();
|
|
99
|
-
function g(d, l) {
|
|
100
|
-
if (!d.startsWith("/") || !l)
|
|
101
|
-
return d;
|
|
102
|
-
const { pathname: E, query: u, hash: t } = (0, o.parsePath)(d);
|
|
103
|
-
return `${E}${l}${u}${t}`;
|
|
104
|
-
}
|
|
105
|
-
})(Ye)), Ye;
|
|
106
|
-
}
|
|
107
|
-
var ze = {}, $e = {}, Xt;
|
|
108
|
-
function It() {
|
|
109
|
-
return Xt || (Xt = 1, (function(s) {
|
|
110
|
-
Object.defineProperty(s, "__esModule", {
|
|
111
|
-
value: !0
|
|
112
|
-
}), Object.defineProperty(s, "pathHasPrefix", {
|
|
113
|
-
enumerable: !0,
|
|
114
|
-
get: function() {
|
|
115
|
-
return g;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
const o = Ct();
|
|
119
|
-
function g(d, l) {
|
|
120
|
-
if (typeof d != "string")
|
|
121
|
-
return !1;
|
|
122
|
-
const { pathname: E } = (0, o.parsePath)(d);
|
|
123
|
-
return E === l || E.startsWith(l + "/");
|
|
124
|
-
}
|
|
125
|
-
})($e)), $e;
|
|
126
|
-
}
|
|
127
|
-
var Bt;
|
|
128
|
-
function Wr() {
|
|
129
|
-
return Bt || (Bt = 1, (function(s) {
|
|
130
|
-
Object.defineProperty(s, "__esModule", {
|
|
131
|
-
value: !0
|
|
132
|
-
}), Object.defineProperty(s, "addLocale", {
|
|
133
|
-
enumerable: !0,
|
|
134
|
-
get: function() {
|
|
135
|
-
return d;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
const o = kr(), g = It();
|
|
139
|
-
function d(l, E, u, t) {
|
|
140
|
-
if (!E || E === u) return l;
|
|
141
|
-
const _ = l.toLowerCase();
|
|
142
|
-
return !t && ((0, g.pathHasPrefix)(_, "/api") || (0, g.pathHasPrefix)(_, `/${E.toLowerCase()}`)) ? l : (0, o.addPathPrefix)(l, `/${E}`);
|
|
143
|
-
}
|
|
144
|
-
})(ze)), ze;
|
|
145
|
-
}
|
|
146
|
-
var Gt;
|
|
147
|
-
function Fr() {
|
|
148
|
-
return Gt || (Gt = 1, (function(s) {
|
|
149
|
-
Object.defineProperty(s, "__esModule", {
|
|
150
|
-
value: !0
|
|
151
|
-
}), Object.defineProperty(s, "formatNextPathnameInfo", {
|
|
152
|
-
enumerable: !0,
|
|
153
|
-
get: function() {
|
|
154
|
-
return E;
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
const o = Br(), g = kr(), d = Gr(), l = Wr();
|
|
158
|
-
function E(u) {
|
|
159
|
-
let t = (0, l.addLocale)(u.pathname, u.locale, u.buildId ? void 0 : u.defaultLocale, u.ignorePrefix);
|
|
160
|
-
return (u.buildId || !u.trailingSlash) && (t = (0, o.removeTrailingSlash)(t)), u.buildId && (t = (0, d.addPathSuffix)((0, g.addPathPrefix)(t, `/_next/data/${u.buildId}`), u.pathname === "/" ? "index.json" : ".json")), t = (0, g.addPathPrefix)(t, u.basePath), !u.buildId && u.trailingSlash ? t.endsWith("/") ? t : (0, d.addPathSuffix)(t, "/") : (0, o.removeTrailingSlash)(t);
|
|
161
|
-
}
|
|
162
|
-
})(Be)), Be;
|
|
163
|
-
}
|
|
164
|
-
var Ke = {}, Wt;
|
|
165
|
-
function Yr() {
|
|
166
|
-
return Wt || (Wt = 1, (function(s) {
|
|
167
|
-
Object.defineProperty(s, "__esModule", {
|
|
168
|
-
value: !0
|
|
169
|
-
}), Object.defineProperty(s, "getHostname", {
|
|
170
|
-
enumerable: !0,
|
|
171
|
-
get: function() {
|
|
172
|
-
return o;
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
function o(g, d) {
|
|
176
|
-
let l;
|
|
177
|
-
if (d != null && d.host && !Array.isArray(d.host))
|
|
178
|
-
l = d.host.toString().split(":", 1)[0];
|
|
179
|
-
else if (g.hostname)
|
|
180
|
-
l = g.hostname;
|
|
181
|
-
else return;
|
|
182
|
-
return l.toLowerCase();
|
|
183
|
-
}
|
|
184
|
-
})(Ke)), Ke;
|
|
185
|
-
}
|
|
186
|
-
var Qe = {}, Ve = {}, Ft;
|
|
187
|
-
function zr() {
|
|
188
|
-
return Ft || (Ft = 1, (function(s) {
|
|
189
|
-
Object.defineProperty(s, "__esModule", {
|
|
190
|
-
value: !0
|
|
191
|
-
}), Object.defineProperty(s, "normalizeLocalePath", {
|
|
192
|
-
enumerable: !0,
|
|
193
|
-
get: function() {
|
|
194
|
-
return g;
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
const o = /* @__PURE__ */ new WeakMap();
|
|
198
|
-
function g(d, l) {
|
|
199
|
-
if (!l) return {
|
|
200
|
-
pathname: d
|
|
201
|
-
};
|
|
202
|
-
let E = o.get(l);
|
|
203
|
-
E || (E = l.map((r) => r.toLowerCase()), o.set(l, E));
|
|
204
|
-
let u;
|
|
205
|
-
const t = d.split("/", 2);
|
|
206
|
-
if (!t[1]) return {
|
|
207
|
-
pathname: d
|
|
208
|
-
};
|
|
209
|
-
const _ = t[1].toLowerCase(), c = E.indexOf(_);
|
|
210
|
-
return c < 0 ? {
|
|
211
|
-
pathname: d
|
|
212
|
-
} : (u = l[c], d = d.slice(u.length + 1) || "/", {
|
|
213
|
-
pathname: d,
|
|
214
|
-
detectedLocale: u
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
})(Ve)), Ve;
|
|
218
|
-
}
|
|
219
|
-
var Ze = {}, Yt;
|
|
220
|
-
function $r() {
|
|
221
|
-
return Yt || (Yt = 1, (function(s) {
|
|
222
|
-
Object.defineProperty(s, "__esModule", {
|
|
223
|
-
value: !0
|
|
224
|
-
}), Object.defineProperty(s, "removePathPrefix", {
|
|
225
|
-
enumerable: !0,
|
|
226
|
-
get: function() {
|
|
227
|
-
return g;
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
const o = It();
|
|
231
|
-
function g(d, l) {
|
|
232
|
-
if (!(0, o.pathHasPrefix)(d, l))
|
|
233
|
-
return d;
|
|
234
|
-
const E = d.slice(l.length);
|
|
235
|
-
return E.startsWith("/") ? E : `/${E}`;
|
|
236
|
-
}
|
|
237
|
-
})(Ze)), Ze;
|
|
238
|
-
}
|
|
239
|
-
var zt;
|
|
240
|
-
function Kr() {
|
|
241
|
-
return zt || (zt = 1, (function(s) {
|
|
242
|
-
Object.defineProperty(s, "__esModule", {
|
|
243
|
-
value: !0
|
|
244
|
-
}), Object.defineProperty(s, "getNextPathnameInfo", {
|
|
245
|
-
enumerable: !0,
|
|
246
|
-
get: function() {
|
|
247
|
-
return l;
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
const o = zr(), g = $r(), d = It();
|
|
251
|
-
function l(E, u) {
|
|
252
|
-
const { basePath: t, i18n: _, trailingSlash: c } = u.nextConfig ?? {}, r = {
|
|
253
|
-
pathname: E,
|
|
254
|
-
trailingSlash: E !== "/" ? E.endsWith("/") : c
|
|
255
|
-
};
|
|
256
|
-
t && (0, d.pathHasPrefix)(r.pathname, t) && (r.pathname = (0, g.removePathPrefix)(r.pathname, t), r.basePath = t);
|
|
257
|
-
let b = r.pathname;
|
|
258
|
-
if (r.pathname.startsWith("/_next/data/") && r.pathname.endsWith(".json")) {
|
|
259
|
-
const w = r.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), k = w[0];
|
|
260
|
-
r.buildId = k, b = w[1] !== "index" ? `/${w.slice(1).join("/")}` : "/", u.parseData === !0 && (r.pathname = b);
|
|
261
|
-
}
|
|
262
|
-
if (_) {
|
|
263
|
-
let w = u.i18nProvider ? u.i18nProvider.analyze(r.pathname) : (0, o.normalizeLocalePath)(r.pathname, _.locales);
|
|
264
|
-
r.locale = w.detectedLocale, r.pathname = w.pathname ?? r.pathname, !w.detectedLocale && r.buildId && (w = u.i18nProvider ? u.i18nProvider.analyze(b) : (0, o.normalizeLocalePath)(b, _.locales), w.detectedLocale && (r.locale = w.detectedLocale));
|
|
265
|
-
}
|
|
266
|
-
return r;
|
|
267
|
-
}
|
|
268
|
-
})(Qe)), Qe;
|
|
269
|
-
}
|
|
270
|
-
var $t;
|
|
271
|
-
function jr() {
|
|
272
|
-
return $t || ($t = 1, (function(s) {
|
|
273
|
-
Object.defineProperty(s, "__esModule", {
|
|
274
|
-
value: !0
|
|
275
|
-
}), Object.defineProperty(s, "NextURL", {
|
|
276
|
-
enumerable: !0,
|
|
277
|
-
get: function() {
|
|
278
|
-
return _;
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
const o = Xr(), g = Fr(), d = Yr(), l = Kr(), E = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
282
|
-
function u(c, r) {
|
|
283
|
-
return new URL(String(c).replace(E, "localhost"), r && String(r).replace(E, "localhost"));
|
|
284
|
-
}
|
|
285
|
-
const t = Symbol("NextURLInternal");
|
|
286
|
-
class _ {
|
|
287
|
-
constructor(r, b, w) {
|
|
288
|
-
let k, B;
|
|
289
|
-
typeof b == "object" && "pathname" in b || typeof b == "string" ? (k = b, B = w || {}) : B = w || b || {}, this[t] = {
|
|
290
|
-
url: u(r, k ?? B.base),
|
|
291
|
-
options: B,
|
|
292
|
-
basePath: ""
|
|
293
|
-
}, this.analyze();
|
|
294
|
-
}
|
|
295
|
-
analyze() {
|
|
296
|
-
var r, b, w, k, B;
|
|
297
|
-
const D = (0, l.getNextPathnameInfo)(this[t].url.pathname, {
|
|
298
|
-
nextConfig: this[t].options.nextConfig,
|
|
299
|
-
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
300
|
-
i18nProvider: this[t].options.i18nProvider
|
|
301
|
-
}), p = (0, d.getHostname)(this[t].url, this[t].options.headers);
|
|
302
|
-
this[t].domainLocale = this[t].options.i18nProvider ? this[t].options.i18nProvider.detectDomainLocale(p) : (0, o.detectDomainLocale)((b = this[t].options.nextConfig) == null || (r = b.i18n) == null ? void 0 : r.domains, p);
|
|
303
|
-
const y = ((w = this[t].domainLocale) == null ? void 0 : w.defaultLocale) || ((B = this[t].options.nextConfig) == null || (k = B.i18n) == null ? void 0 : k.defaultLocale);
|
|
304
|
-
this[t].url.pathname = D.pathname, this[t].defaultLocale = y, this[t].basePath = D.basePath ?? "", this[t].buildId = D.buildId, this[t].locale = D.locale ?? y, this[t].trailingSlash = D.trailingSlash;
|
|
305
|
-
}
|
|
306
|
-
formatPathname() {
|
|
307
|
-
return (0, g.formatNextPathnameInfo)({
|
|
308
|
-
basePath: this[t].basePath,
|
|
309
|
-
buildId: this[t].buildId,
|
|
310
|
-
defaultLocale: this[t].options.forceLocale ? void 0 : this[t].defaultLocale,
|
|
311
|
-
locale: this[t].locale,
|
|
312
|
-
pathname: this[t].url.pathname,
|
|
313
|
-
trailingSlash: this[t].trailingSlash
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
formatSearch() {
|
|
317
|
-
return this[t].url.search;
|
|
318
|
-
}
|
|
319
|
-
get buildId() {
|
|
320
|
-
return this[t].buildId;
|
|
321
|
-
}
|
|
322
|
-
set buildId(r) {
|
|
323
|
-
this[t].buildId = r;
|
|
324
|
-
}
|
|
325
|
-
get locale() {
|
|
326
|
-
return this[t].locale ?? "";
|
|
327
|
-
}
|
|
328
|
-
set locale(r) {
|
|
329
|
-
var b, w;
|
|
330
|
-
if (!this[t].locale || !(!((w = this[t].options.nextConfig) == null || (b = w.i18n) == null) && b.locales.includes(r)))
|
|
331
|
-
throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${r}"`), "__NEXT_ERROR_CODE", {
|
|
332
|
-
value: "E597",
|
|
333
|
-
enumerable: !1,
|
|
334
|
-
configurable: !0
|
|
335
|
-
});
|
|
336
|
-
this[t].locale = r;
|
|
337
|
-
}
|
|
338
|
-
get defaultLocale() {
|
|
339
|
-
return this[t].defaultLocale;
|
|
340
|
-
}
|
|
341
|
-
get domainLocale() {
|
|
342
|
-
return this[t].domainLocale;
|
|
343
|
-
}
|
|
344
|
-
get searchParams() {
|
|
345
|
-
return this[t].url.searchParams;
|
|
346
|
-
}
|
|
347
|
-
get host() {
|
|
348
|
-
return this[t].url.host;
|
|
349
|
-
}
|
|
350
|
-
set host(r) {
|
|
351
|
-
this[t].url.host = r;
|
|
352
|
-
}
|
|
353
|
-
get hostname() {
|
|
354
|
-
return this[t].url.hostname;
|
|
355
|
-
}
|
|
356
|
-
set hostname(r) {
|
|
357
|
-
this[t].url.hostname = r;
|
|
358
|
-
}
|
|
359
|
-
get port() {
|
|
360
|
-
return this[t].url.port;
|
|
361
|
-
}
|
|
362
|
-
set port(r) {
|
|
363
|
-
this[t].url.port = r;
|
|
364
|
-
}
|
|
365
|
-
get protocol() {
|
|
366
|
-
return this[t].url.protocol;
|
|
367
|
-
}
|
|
368
|
-
set protocol(r) {
|
|
369
|
-
this[t].url.protocol = r;
|
|
370
|
-
}
|
|
371
|
-
get href() {
|
|
372
|
-
const r = this.formatPathname(), b = this.formatSearch();
|
|
373
|
-
return `${this.protocol}//${this.host}${r}${b}${this.hash}`;
|
|
374
|
-
}
|
|
375
|
-
set href(r) {
|
|
376
|
-
this[t].url = u(r), this.analyze();
|
|
377
|
-
}
|
|
378
|
-
get origin() {
|
|
379
|
-
return this[t].url.origin;
|
|
380
|
-
}
|
|
381
|
-
get pathname() {
|
|
382
|
-
return this[t].url.pathname;
|
|
383
|
-
}
|
|
384
|
-
set pathname(r) {
|
|
385
|
-
this[t].url.pathname = r;
|
|
386
|
-
}
|
|
387
|
-
get hash() {
|
|
388
|
-
return this[t].url.hash;
|
|
389
|
-
}
|
|
390
|
-
set hash(r) {
|
|
391
|
-
this[t].url.hash = r;
|
|
392
|
-
}
|
|
393
|
-
get search() {
|
|
394
|
-
return this[t].url.search;
|
|
395
|
-
}
|
|
396
|
-
set search(r) {
|
|
397
|
-
this[t].url.search = r;
|
|
398
|
-
}
|
|
399
|
-
get password() {
|
|
400
|
-
return this[t].url.password;
|
|
401
|
-
}
|
|
402
|
-
set password(r) {
|
|
403
|
-
this[t].url.password = r;
|
|
404
|
-
}
|
|
405
|
-
get username() {
|
|
406
|
-
return this[t].url.username;
|
|
407
|
-
}
|
|
408
|
-
set username(r) {
|
|
409
|
-
this[t].url.username = r;
|
|
410
|
-
}
|
|
411
|
-
get basePath() {
|
|
412
|
-
return this[t].basePath;
|
|
413
|
-
}
|
|
414
|
-
set basePath(r) {
|
|
415
|
-
this[t].basePath = r.startsWith("/") ? r : `/${r}`;
|
|
416
|
-
}
|
|
417
|
-
toString() {
|
|
418
|
-
return this.href;
|
|
419
|
-
}
|
|
420
|
-
toJSON() {
|
|
421
|
-
return this.href;
|
|
422
|
-
}
|
|
423
|
-
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
424
|
-
return {
|
|
425
|
-
href: this.href,
|
|
426
|
-
origin: this.origin,
|
|
427
|
-
protocol: this.protocol,
|
|
428
|
-
username: this.username,
|
|
429
|
-
password: this.password,
|
|
430
|
-
host: this.host,
|
|
431
|
-
hostname: this.hostname,
|
|
432
|
-
port: this.port,
|
|
433
|
-
pathname: this.pathname,
|
|
434
|
-
search: this.search,
|
|
435
|
-
searchParams: this.searchParams,
|
|
436
|
-
hash: this.hash
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
clone() {
|
|
440
|
-
return new _(String(this), this[t].options);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
})(Ue)), Ue;
|
|
444
|
-
}
|
|
445
|
-
var Je = {}, et = {}, Kt;
|
|
446
|
-
function Qr() {
|
|
447
|
-
return Kt || (Kt = 1, (function(s) {
|
|
448
|
-
Object.defineProperty(s, "__esModule", {
|
|
449
|
-
value: !0
|
|
450
|
-
});
|
|
451
|
-
function o(Ne, fe) {
|
|
452
|
-
for (var we in fe) Object.defineProperty(Ne, we, {
|
|
453
|
-
enumerable: !0,
|
|
454
|
-
get: fe[we]
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
o(s, {
|
|
458
|
-
ACTION_SUFFIX: function() {
|
|
459
|
-
return k;
|
|
460
|
-
},
|
|
461
|
-
APP_DIR_ALIAS: function() {
|
|
462
|
-
return Re;
|
|
463
|
-
},
|
|
464
|
-
CACHE_ONE_YEAR: function() {
|
|
465
|
-
return x;
|
|
466
|
-
},
|
|
467
|
-
DOT_NEXT_ALIAS: function() {
|
|
468
|
-
return ie;
|
|
469
|
-
},
|
|
470
|
-
ESLINT_DEFAULT_DIRS: function() {
|
|
471
|
-
return m;
|
|
472
|
-
},
|
|
473
|
-
GSP_NO_RETURNED_VALUE: function() {
|
|
474
|
-
return ge;
|
|
475
|
-
},
|
|
476
|
-
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
477
|
-
return ye;
|
|
478
|
-
},
|
|
479
|
-
GSSP_NO_RETURNED_VALUE: function() {
|
|
480
|
-
return Pe;
|
|
481
|
-
},
|
|
482
|
-
HTML_CONTENT_TYPE_HEADER: function() {
|
|
483
|
-
return d;
|
|
484
|
-
},
|
|
485
|
-
INFINITE_CACHE: function() {
|
|
486
|
-
return Q;
|
|
487
|
-
},
|
|
488
|
-
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
489
|
-
return de;
|
|
490
|
-
},
|
|
491
|
-
JSON_CONTENT_TYPE_HEADER: function() {
|
|
492
|
-
return l;
|
|
493
|
-
},
|
|
494
|
-
MATCHED_PATH_HEADER: function() {
|
|
495
|
-
return t;
|
|
496
|
-
},
|
|
497
|
-
MIDDLEWARE_FILENAME: function() {
|
|
498
|
-
return ae;
|
|
499
|
-
},
|
|
500
|
-
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
501
|
-
return X;
|
|
502
|
-
},
|
|
503
|
-
NEXT_BODY_SUFFIX: function() {
|
|
504
|
-
return p;
|
|
505
|
-
},
|
|
506
|
-
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
507
|
-
return P;
|
|
508
|
-
},
|
|
509
|
-
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
510
|
-
return R;
|
|
511
|
-
},
|
|
512
|
-
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
513
|
-
return v;
|
|
514
|
-
},
|
|
515
|
-
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
516
|
-
return h;
|
|
517
|
-
},
|
|
518
|
-
NEXT_CACHE_TAGS_HEADER: function() {
|
|
519
|
-
return y;
|
|
520
|
-
},
|
|
521
|
-
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
522
|
-
return i;
|
|
523
|
-
},
|
|
524
|
-
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
525
|
-
return N;
|
|
526
|
-
},
|
|
527
|
-
NEXT_DATA_SUFFIX: function() {
|
|
528
|
-
return B;
|
|
529
|
-
},
|
|
530
|
-
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
531
|
-
return u;
|
|
532
|
-
},
|
|
533
|
-
NEXT_META_SUFFIX: function() {
|
|
534
|
-
return D;
|
|
535
|
-
},
|
|
536
|
-
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
537
|
-
return E;
|
|
538
|
-
},
|
|
539
|
-
NEXT_RESUME_HEADER: function() {
|
|
540
|
-
return O;
|
|
541
|
-
},
|
|
542
|
-
NON_STANDARD_NODE_ENV: function() {
|
|
543
|
-
return le;
|
|
544
|
-
},
|
|
545
|
-
PAGES_DIR_ALIAS: function() {
|
|
546
|
-
return ce;
|
|
547
|
-
},
|
|
548
|
-
PRERENDER_REVALIDATE_HEADER: function() {
|
|
549
|
-
return _;
|
|
550
|
-
},
|
|
551
|
-
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
552
|
-
return c;
|
|
553
|
-
},
|
|
554
|
-
PROXY_FILENAME: function() {
|
|
555
|
-
return se;
|
|
556
|
-
},
|
|
557
|
-
PROXY_LOCATION_REGEXP: function() {
|
|
558
|
-
return oe;
|
|
559
|
-
},
|
|
560
|
-
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
561
|
-
return Y;
|
|
562
|
-
},
|
|
563
|
-
ROOT_DIR_ALIAS: function() {
|
|
564
|
-
return he;
|
|
565
|
-
},
|
|
566
|
-
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
567
|
-
return G;
|
|
568
|
-
},
|
|
569
|
-
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
570
|
-
return W;
|
|
571
|
-
},
|
|
572
|
-
RSC_ACTION_PROXY_ALIAS: function() {
|
|
573
|
-
return A;
|
|
574
|
-
},
|
|
575
|
-
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
576
|
-
return n;
|
|
577
|
-
},
|
|
578
|
-
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
579
|
-
return M;
|
|
580
|
-
},
|
|
581
|
-
RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
|
|
582
|
-
return j;
|
|
583
|
-
},
|
|
584
|
-
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
585
|
-
return _e;
|
|
586
|
-
},
|
|
587
|
-
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
588
|
-
return r;
|
|
589
|
-
},
|
|
590
|
-
RSC_SEGMENT_SUFFIX: function() {
|
|
591
|
-
return b;
|
|
592
|
-
},
|
|
593
|
-
RSC_SUFFIX: function() {
|
|
594
|
-
return w;
|
|
595
|
-
},
|
|
596
|
-
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
597
|
-
return Se;
|
|
598
|
-
},
|
|
599
|
-
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
600
|
-
return re;
|
|
601
|
-
},
|
|
602
|
-
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
603
|
-
return me;
|
|
604
|
-
},
|
|
605
|
-
SERVER_RUNTIME: function() {
|
|
606
|
-
return f;
|
|
607
|
-
},
|
|
608
|
-
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
609
|
-
return ve;
|
|
610
|
-
},
|
|
611
|
-
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
612
|
-
return ue;
|
|
613
|
-
},
|
|
614
|
-
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
615
|
-
return Te;
|
|
616
|
-
},
|
|
617
|
-
TEXT_PLAIN_CONTENT_TYPE_HEADER: function() {
|
|
618
|
-
return g;
|
|
619
|
-
},
|
|
620
|
-
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
621
|
-
return Ae;
|
|
622
|
-
},
|
|
623
|
-
WEBPACK_LAYERS: function() {
|
|
624
|
-
return ee;
|
|
625
|
-
},
|
|
626
|
-
WEBPACK_RESOURCE_QUERIES: function() {
|
|
627
|
-
return Z;
|
|
628
|
-
},
|
|
629
|
-
WEB_SOCKET_MAX_RECONNECTIONS: function() {
|
|
630
|
-
return T;
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
const g = "text/plain", d = "text/html; charset=utf-8", l = "application/json; charset=utf-8", E = "nxtP", u = "nxtI", t = "x-matched-path", _ = "x-prerender-revalidate", c = "x-prerender-revalidate-if-generated", r = ".segments", b = ".segment.rsc", w = ".rsc", k = ".action", B = ".json", D = ".meta", p = ".body", y = "x-next-cache-tags", R = "x-next-revalidated-tags", v = "x-next-revalidate-tag-token", O = "next-resume", i = 128, N = 256, h = 1024, P = "_N_T_", x = 31536e3, Q = 4294967294, ae = "middleware", X = `(?:src/)?${ae}`, se = "proxy", oe = `(?:src/)?${se}`, de = "instrumentation", ce = "private-next-pages", ie = "private-dot-next", he = "private-next-root-dir", Re = "private-next-app-dir", _e = "private-next-rsc-mod-ref-proxy", n = "private-next-rsc-action-validate", A = "private-next-rsc-server-reference", M = "private-next-rsc-cache-wrapper", j = "private-next-rsc-track-dynamic-import", W = "private-next-rsc-action-encryption", G = "private-next-rsc-action-client-wrapper", Y = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", ue = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", re = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", me = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Te = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Se = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", ge = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", Pe = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Ae = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", ye = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", le = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', ve = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", m = [
|
|
634
|
-
"app",
|
|
635
|
-
"pages",
|
|
636
|
-
"components",
|
|
637
|
-
"lib",
|
|
638
|
-
"src"
|
|
639
|
-
], f = {
|
|
640
|
-
edge: "edge",
|
|
641
|
-
experimentalEdge: "experimental-edge",
|
|
642
|
-
nodejs: "nodejs"
|
|
643
|
-
}, T = 12, C = {
|
|
644
|
-
/**
|
|
645
|
-
* The layer for the shared code between the client and server bundles.
|
|
646
|
-
*/
|
|
647
|
-
shared: "shared",
|
|
648
|
-
/**
|
|
649
|
-
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
650
|
-
* Including app router RSC pages and app router custom routes and metadata routes.
|
|
651
|
-
*/
|
|
652
|
-
reactServerComponents: "rsc",
|
|
653
|
-
/**
|
|
654
|
-
* Server Side Rendering layer for app (ssr).
|
|
655
|
-
*/
|
|
656
|
-
serverSideRendering: "ssr",
|
|
657
|
-
/**
|
|
658
|
-
* The browser client bundle layer for actions.
|
|
659
|
-
*/
|
|
660
|
-
actionBrowser: "action-browser",
|
|
661
|
-
/**
|
|
662
|
-
* The Node.js bundle layer for the API routes.
|
|
663
|
-
*/
|
|
664
|
-
apiNode: "api-node",
|
|
665
|
-
/**
|
|
666
|
-
* The Edge Lite bundle layer for the API routes.
|
|
667
|
-
*/
|
|
668
|
-
apiEdge: "api-edge",
|
|
669
|
-
/**
|
|
670
|
-
* The layer for the middleware code.
|
|
671
|
-
*/
|
|
672
|
-
middleware: "middleware",
|
|
673
|
-
/**
|
|
674
|
-
* The layer for the instrumentation hooks.
|
|
675
|
-
*/
|
|
676
|
-
instrument: "instrument",
|
|
677
|
-
/**
|
|
678
|
-
* The layer for assets on the edge.
|
|
679
|
-
*/
|
|
680
|
-
edgeAsset: "edge-asset",
|
|
681
|
-
/**
|
|
682
|
-
* The browser client bundle layer for App directory.
|
|
683
|
-
*/
|
|
684
|
-
appPagesBrowser: "app-pages-browser",
|
|
685
|
-
/**
|
|
686
|
-
* The browser client bundle layer for Pages directory.
|
|
687
|
-
*/
|
|
688
|
-
pagesDirBrowser: "pages-dir-browser",
|
|
689
|
-
/**
|
|
690
|
-
* The Edge Lite bundle layer for Pages directory.
|
|
691
|
-
*/
|
|
692
|
-
pagesDirEdge: "pages-dir-edge",
|
|
693
|
-
/**
|
|
694
|
-
* The Node.js bundle layer for Pages directory.
|
|
695
|
-
*/
|
|
696
|
-
pagesDirNode: "pages-dir-node"
|
|
697
|
-
}, ee = {
|
|
698
|
-
...C,
|
|
699
|
-
GROUP: {
|
|
700
|
-
builtinReact: [
|
|
701
|
-
C.reactServerComponents,
|
|
702
|
-
C.actionBrowser
|
|
703
|
-
],
|
|
704
|
-
serverOnly: [
|
|
705
|
-
C.reactServerComponents,
|
|
706
|
-
C.actionBrowser,
|
|
707
|
-
C.instrument,
|
|
708
|
-
C.middleware
|
|
709
|
-
],
|
|
710
|
-
neutralTarget: [
|
|
711
|
-
// pages api
|
|
712
|
-
C.apiNode,
|
|
713
|
-
C.apiEdge
|
|
714
|
-
],
|
|
715
|
-
clientOnly: [
|
|
716
|
-
C.serverSideRendering,
|
|
717
|
-
C.appPagesBrowser
|
|
718
|
-
],
|
|
719
|
-
bundled: [
|
|
720
|
-
C.reactServerComponents,
|
|
721
|
-
C.actionBrowser,
|
|
722
|
-
C.serverSideRendering,
|
|
723
|
-
C.appPagesBrowser,
|
|
724
|
-
C.shared,
|
|
725
|
-
C.instrument,
|
|
726
|
-
C.middleware
|
|
727
|
-
],
|
|
728
|
-
appPages: [
|
|
729
|
-
// app router pages and layouts
|
|
730
|
-
C.reactServerComponents,
|
|
731
|
-
C.serverSideRendering,
|
|
732
|
-
C.appPagesBrowser,
|
|
733
|
-
C.actionBrowser
|
|
734
|
-
]
|
|
735
|
-
}
|
|
736
|
-
}, Z = {
|
|
737
|
-
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
738
|
-
metadata: "__next_metadata__",
|
|
739
|
-
metadataRoute: "__next_metadata_route__",
|
|
740
|
-
metadataImageMeta: "__next_metadata_image_meta__"
|
|
741
|
-
};
|
|
742
|
-
})(et)), et;
|
|
743
|
-
}
|
|
744
|
-
var Qt;
|
|
745
|
-
function Lr() {
|
|
746
|
-
return Qt || (Qt = 1, (function(s) {
|
|
747
|
-
Object.defineProperty(s, "__esModule", {
|
|
748
|
-
value: !0
|
|
749
|
-
});
|
|
750
|
-
function o(_, c) {
|
|
751
|
-
for (var r in c) Object.defineProperty(_, r, {
|
|
752
|
-
enumerable: !0,
|
|
753
|
-
get: c[r]
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
o(s, {
|
|
757
|
-
fromNodeOutgoingHttpHeaders: function() {
|
|
758
|
-
return d;
|
|
759
|
-
},
|
|
760
|
-
normalizeNextQueryParam: function() {
|
|
761
|
-
return t;
|
|
762
|
-
},
|
|
763
|
-
splitCookiesString: function() {
|
|
764
|
-
return l;
|
|
765
|
-
},
|
|
766
|
-
toNodeOutgoingHttpHeaders: function() {
|
|
767
|
-
return E;
|
|
768
|
-
},
|
|
769
|
-
validateURL: function() {
|
|
770
|
-
return u;
|
|
771
|
-
}
|
|
772
|
-
});
|
|
773
|
-
const g = Qr();
|
|
774
|
-
function d(_) {
|
|
775
|
-
const c = new Headers();
|
|
776
|
-
for (let [r, b] of Object.entries(_)) {
|
|
777
|
-
const w = Array.isArray(b) ? b : [
|
|
778
|
-
b
|
|
779
|
-
];
|
|
780
|
-
for (let k of w)
|
|
781
|
-
typeof k > "u" || (typeof k == "number" && (k = k.toString()), c.append(r, k));
|
|
782
|
-
}
|
|
783
|
-
return c;
|
|
784
|
-
}
|
|
785
|
-
function l(_) {
|
|
786
|
-
var c = [], r = 0, b, w, k, B, D;
|
|
787
|
-
function p() {
|
|
788
|
-
for (; r < _.length && /\s/.test(_.charAt(r)); )
|
|
789
|
-
r += 1;
|
|
790
|
-
return r < _.length;
|
|
791
|
-
}
|
|
792
|
-
function y() {
|
|
793
|
-
return w = _.charAt(r), w !== "=" && w !== ";" && w !== ",";
|
|
794
|
-
}
|
|
795
|
-
for (; r < _.length; ) {
|
|
796
|
-
for (b = r, D = !1; p(); )
|
|
797
|
-
if (w = _.charAt(r), w === ",") {
|
|
798
|
-
for (k = r, r += 1, p(), B = r; r < _.length && y(); )
|
|
799
|
-
r += 1;
|
|
800
|
-
r < _.length && _.charAt(r) === "=" ? (D = !0, r = B, c.push(_.substring(b, k)), b = r) : r = k + 1;
|
|
801
|
-
} else
|
|
802
|
-
r += 1;
|
|
803
|
-
(!D || r >= _.length) && c.push(_.substring(b, _.length));
|
|
804
|
-
}
|
|
805
|
-
return c;
|
|
806
|
-
}
|
|
807
|
-
function E(_) {
|
|
808
|
-
const c = {}, r = [];
|
|
809
|
-
if (_)
|
|
810
|
-
for (const [b, w] of _.entries())
|
|
811
|
-
b.toLowerCase() === "set-cookie" ? (r.push(...l(w)), c[b] = r.length === 1 ? r[0] : r) : c[b] = w;
|
|
812
|
-
return c;
|
|
813
|
-
}
|
|
814
|
-
function u(_) {
|
|
815
|
-
try {
|
|
816
|
-
return String(new URL(String(_)));
|
|
817
|
-
} catch (c) {
|
|
818
|
-
throw Object.defineProperty(new Error(`URL is malformed "${String(_)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
|
|
819
|
-
cause: c
|
|
820
|
-
}), "__NEXT_ERROR_CODE", {
|
|
821
|
-
value: "E61",
|
|
822
|
-
enumerable: !1,
|
|
823
|
-
configurable: !0
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
function t(_) {
|
|
828
|
-
const c = [
|
|
829
|
-
g.NEXT_QUERY_PARAM_PREFIX,
|
|
830
|
-
g.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
831
|
-
];
|
|
832
|
-
for (const r of c)
|
|
833
|
-
if (_ !== r && _.startsWith(r))
|
|
834
|
-
return _.substring(r.length);
|
|
835
|
-
return null;
|
|
836
|
-
}
|
|
837
|
-
})(Je)), Je;
|
|
838
|
-
}
|
|
839
|
-
var tt = {}, Vt;
|
|
840
|
-
function Vr() {
|
|
841
|
-
return Vt || (Vt = 1, (function(s) {
|
|
842
|
-
Object.defineProperty(s, "__esModule", {
|
|
843
|
-
value: !0
|
|
844
|
-
});
|
|
845
|
-
function o(E, u) {
|
|
846
|
-
for (var t in u) Object.defineProperty(E, t, {
|
|
847
|
-
enumerable: !0,
|
|
848
|
-
get: u[t]
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
o(s, {
|
|
852
|
-
PageSignatureError: function() {
|
|
853
|
-
return g;
|
|
854
|
-
},
|
|
855
|
-
RemovedPageError: function() {
|
|
856
|
-
return d;
|
|
857
|
-
},
|
|
858
|
-
RemovedUAError: function() {
|
|
859
|
-
return l;
|
|
860
|
-
}
|
|
861
|
-
});
|
|
862
|
-
class g extends Error {
|
|
863
|
-
constructor({ page: u }) {
|
|
864
|
-
super(`The middleware "${u}" accepts an async API directly with the form:
|
|
865
|
-
|
|
866
|
-
export function middleware(request, event) {
|
|
867
|
-
return NextResponse.redirect('/new-location')
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
871
|
-
`);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
class d extends Error {
|
|
875
|
-
constructor() {
|
|
876
|
-
super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ");
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
class l extends Error {
|
|
880
|
-
constructor() {
|
|
881
|
-
super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ");
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
})(tt)), tt;
|
|
885
|
-
}
|
|
886
|
-
var rt = {}, nt, Zt;
|
|
887
|
-
function Zr() {
|
|
888
|
-
if (Zt) return nt;
|
|
889
|
-
Zt = 1;
|
|
890
|
-
var s = Object.defineProperty, o = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, l = (i, N) => {
|
|
891
|
-
for (var h in N)
|
|
892
|
-
s(i, h, { get: N[h], enumerable: !0 });
|
|
893
|
-
}, E = (i, N, h, P) => {
|
|
894
|
-
if (N && typeof N == "object" || typeof N == "function")
|
|
895
|
-
for (let x of g(N))
|
|
896
|
-
!d.call(i, x) && x !== h && s(i, x, { get: () => N[x], enumerable: !(P = o(N, x)) || P.enumerable });
|
|
897
|
-
return i;
|
|
898
|
-
}, u = (i) => E(s({}, "__esModule", { value: !0 }), i), t = {};
|
|
899
|
-
l(t, {
|
|
900
|
-
RequestCookies: () => y,
|
|
901
|
-
ResponseCookies: () => R,
|
|
902
|
-
parseCookie: () => c,
|
|
903
|
-
parseSetCookie: () => r,
|
|
904
|
-
stringifyCookie: () => _
|
|
905
|
-
}), nt = u(t);
|
|
906
|
-
function _(i) {
|
|
907
|
-
var N;
|
|
908
|
-
const h = [
|
|
909
|
-
"path" in i && i.path && `Path=${i.path}`,
|
|
910
|
-
"expires" in i && (i.expires || i.expires === 0) && `Expires=${(typeof i.expires == "number" ? new Date(i.expires) : i.expires).toUTCString()}`,
|
|
911
|
-
"maxAge" in i && typeof i.maxAge == "number" && `Max-Age=${i.maxAge}`,
|
|
912
|
-
"domain" in i && i.domain && `Domain=${i.domain}`,
|
|
913
|
-
"secure" in i && i.secure && "Secure",
|
|
914
|
-
"httpOnly" in i && i.httpOnly && "HttpOnly",
|
|
915
|
-
"sameSite" in i && i.sameSite && `SameSite=${i.sameSite}`,
|
|
916
|
-
"partitioned" in i && i.partitioned && "Partitioned",
|
|
917
|
-
"priority" in i && i.priority && `Priority=${i.priority}`
|
|
918
|
-
].filter(Boolean), P = `${i.name}=${encodeURIComponent((N = i.value) != null ? N : "")}`;
|
|
919
|
-
return h.length === 0 ? P : `${P}; ${h.join("; ")}`;
|
|
920
|
-
}
|
|
921
|
-
function c(i) {
|
|
922
|
-
const N = /* @__PURE__ */ new Map();
|
|
923
|
-
for (const h of i.split(/; */)) {
|
|
924
|
-
if (!h)
|
|
925
|
-
continue;
|
|
926
|
-
const P = h.indexOf("=");
|
|
927
|
-
if (P === -1) {
|
|
928
|
-
N.set(h, "true");
|
|
929
|
-
continue;
|
|
930
|
-
}
|
|
931
|
-
const [x, Q] = [h.slice(0, P), h.slice(P + 1)];
|
|
932
|
-
try {
|
|
933
|
-
N.set(x, decodeURIComponent(Q ?? "true"));
|
|
934
|
-
} catch {
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
return N;
|
|
938
|
-
}
|
|
939
|
-
function r(i) {
|
|
940
|
-
if (!i)
|
|
941
|
-
return;
|
|
942
|
-
const [[N, h], ...P] = c(i), {
|
|
943
|
-
domain: x,
|
|
944
|
-
expires: Q,
|
|
945
|
-
httponly: ae,
|
|
946
|
-
maxage: X,
|
|
947
|
-
path: se,
|
|
948
|
-
samesite: oe,
|
|
949
|
-
secure: de,
|
|
950
|
-
partitioned: ce,
|
|
951
|
-
priority: ie
|
|
952
|
-
} = Object.fromEntries(
|
|
953
|
-
P.map(([Re, _e]) => [
|
|
954
|
-
Re.toLowerCase().replace(/-/g, ""),
|
|
955
|
-
_e
|
|
956
|
-
])
|
|
957
|
-
), he = {
|
|
958
|
-
name: N,
|
|
959
|
-
value: decodeURIComponent(h),
|
|
960
|
-
domain: x,
|
|
961
|
-
...Q && { expires: new Date(Q) },
|
|
962
|
-
...ae && { httpOnly: !0 },
|
|
963
|
-
...typeof X == "string" && { maxAge: Number(X) },
|
|
964
|
-
path: se,
|
|
965
|
-
...oe && { sameSite: k(oe) },
|
|
966
|
-
...de && { secure: !0 },
|
|
967
|
-
...ie && { priority: D(ie) },
|
|
968
|
-
...ce && { partitioned: !0 }
|
|
969
|
-
};
|
|
970
|
-
return b(he);
|
|
971
|
-
}
|
|
972
|
-
function b(i) {
|
|
973
|
-
const N = {};
|
|
974
|
-
for (const h in i)
|
|
975
|
-
i[h] && (N[h] = i[h]);
|
|
976
|
-
return N;
|
|
977
|
-
}
|
|
978
|
-
var w = ["strict", "lax", "none"];
|
|
979
|
-
function k(i) {
|
|
980
|
-
return i = i.toLowerCase(), w.includes(i) ? i : void 0;
|
|
981
|
-
}
|
|
982
|
-
var B = ["low", "medium", "high"];
|
|
983
|
-
function D(i) {
|
|
984
|
-
return i = i.toLowerCase(), B.includes(i) ? i : void 0;
|
|
985
|
-
}
|
|
986
|
-
function p(i) {
|
|
987
|
-
if (!i)
|
|
988
|
-
return [];
|
|
989
|
-
var N = [], h = 0, P, x, Q, ae, X;
|
|
990
|
-
function se() {
|
|
991
|
-
for (; h < i.length && /\s/.test(i.charAt(h)); )
|
|
992
|
-
h += 1;
|
|
993
|
-
return h < i.length;
|
|
994
|
-
}
|
|
995
|
-
function oe() {
|
|
996
|
-
return x = i.charAt(h), x !== "=" && x !== ";" && x !== ",";
|
|
997
|
-
}
|
|
998
|
-
for (; h < i.length; ) {
|
|
999
|
-
for (P = h, X = !1; se(); )
|
|
1000
|
-
if (x = i.charAt(h), x === ",") {
|
|
1001
|
-
for (Q = h, h += 1, se(), ae = h; h < i.length && oe(); )
|
|
1002
|
-
h += 1;
|
|
1003
|
-
h < i.length && i.charAt(h) === "=" ? (X = !0, h = ae, N.push(i.substring(P, Q)), P = h) : h = Q + 1;
|
|
1004
|
-
} else
|
|
1005
|
-
h += 1;
|
|
1006
|
-
(!X || h >= i.length) && N.push(i.substring(P, i.length));
|
|
1007
|
-
}
|
|
1008
|
-
return N;
|
|
1009
|
-
}
|
|
1010
|
-
var y = class {
|
|
1011
|
-
constructor(i) {
|
|
1012
|
-
this._parsed = /* @__PURE__ */ new Map(), this._headers = i;
|
|
1013
|
-
const N = i.get("cookie");
|
|
1014
|
-
if (N) {
|
|
1015
|
-
const h = c(N);
|
|
1016
|
-
for (const [P, x] of h)
|
|
1017
|
-
this._parsed.set(P, { name: P, value: x });
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
[Symbol.iterator]() {
|
|
1021
|
-
return this._parsed[Symbol.iterator]();
|
|
1022
|
-
}
|
|
1023
|
-
/**
|
|
1024
|
-
* The amount of cookies received from the client
|
|
1025
|
-
*/
|
|
1026
|
-
get size() {
|
|
1027
|
-
return this._parsed.size;
|
|
1028
|
-
}
|
|
1029
|
-
get(...i) {
|
|
1030
|
-
const N = typeof i[0] == "string" ? i[0] : i[0].name;
|
|
1031
|
-
return this._parsed.get(N);
|
|
1032
|
-
}
|
|
1033
|
-
getAll(...i) {
|
|
1034
|
-
var N;
|
|
1035
|
-
const h = Array.from(this._parsed);
|
|
1036
|
-
if (!i.length)
|
|
1037
|
-
return h.map(([x, Q]) => Q);
|
|
1038
|
-
const P = typeof i[0] == "string" ? i[0] : (N = i[0]) == null ? void 0 : N.name;
|
|
1039
|
-
return h.filter(([x]) => x === P).map(([x, Q]) => Q);
|
|
1040
|
-
}
|
|
1041
|
-
has(i) {
|
|
1042
|
-
return this._parsed.has(i);
|
|
1043
|
-
}
|
|
1044
|
-
set(...i) {
|
|
1045
|
-
const [N, h] = i.length === 1 ? [i[0].name, i[0].value] : i, P = this._parsed;
|
|
1046
|
-
return P.set(N, { name: N, value: h }), this._headers.set(
|
|
1047
|
-
"cookie",
|
|
1048
|
-
Array.from(P).map(([x, Q]) => _(Q)).join("; ")
|
|
1049
|
-
), this;
|
|
1050
|
-
}
|
|
1051
|
-
/**
|
|
1052
|
-
* Delete the cookies matching the passed name or names in the request.
|
|
1053
|
-
*/
|
|
1054
|
-
delete(i) {
|
|
1055
|
-
const N = this._parsed, h = Array.isArray(i) ? i.map((P) => N.delete(P)) : N.delete(i);
|
|
1056
|
-
return this._headers.set(
|
|
1057
|
-
"cookie",
|
|
1058
|
-
Array.from(N).map(([P, x]) => _(x)).join("; ")
|
|
1059
|
-
), h;
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* Delete all the cookies in the cookies in the request.
|
|
1063
|
-
*/
|
|
1064
|
-
clear() {
|
|
1065
|
-
return this.delete(Array.from(this._parsed.keys())), this;
|
|
1066
|
-
}
|
|
1067
|
-
/**
|
|
1068
|
-
* Format the cookies in the request as a string for logging
|
|
1069
|
-
*/
|
|
1070
|
-
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1071
|
-
return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1072
|
-
}
|
|
1073
|
-
toString() {
|
|
1074
|
-
return [...this._parsed.values()].map((i) => `${i.name}=${encodeURIComponent(i.value)}`).join("; ");
|
|
1075
|
-
}
|
|
1076
|
-
}, R = class {
|
|
1077
|
-
constructor(i) {
|
|
1078
|
-
this._parsed = /* @__PURE__ */ new Map();
|
|
1079
|
-
var N, h, P;
|
|
1080
|
-
this._headers = i;
|
|
1081
|
-
const x = (P = (h = (N = i.getSetCookie) == null ? void 0 : N.call(i)) != null ? h : i.get("set-cookie")) != null ? P : [], Q = Array.isArray(x) ? x : p(x);
|
|
1082
|
-
for (const ae of Q) {
|
|
1083
|
-
const X = r(ae);
|
|
1084
|
-
X && this._parsed.set(X.name, X);
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
1089
|
-
*/
|
|
1090
|
-
get(...i) {
|
|
1091
|
-
const N = typeof i[0] == "string" ? i[0] : i[0].name;
|
|
1092
|
-
return this._parsed.get(N);
|
|
1093
|
-
}
|
|
1094
|
-
/**
|
|
1095
|
-
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
1096
|
-
*/
|
|
1097
|
-
getAll(...i) {
|
|
1098
|
-
var N;
|
|
1099
|
-
const h = Array.from(this._parsed.values());
|
|
1100
|
-
if (!i.length)
|
|
1101
|
-
return h;
|
|
1102
|
-
const P = typeof i[0] == "string" ? i[0] : (N = i[0]) == null ? void 0 : N.name;
|
|
1103
|
-
return h.filter((x) => x.name === P);
|
|
1104
|
-
}
|
|
1105
|
-
has(i) {
|
|
1106
|
-
return this._parsed.has(i);
|
|
1107
|
-
}
|
|
1108
|
-
/**
|
|
1109
|
-
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
1110
|
-
*/
|
|
1111
|
-
set(...i) {
|
|
1112
|
-
const [N, h, P] = i.length === 1 ? [i[0].name, i[0].value, i[0]] : i, x = this._parsed;
|
|
1113
|
-
return x.set(N, O({ name: N, value: h, ...P })), v(x, this._headers), this;
|
|
1114
|
-
}
|
|
1115
|
-
/**
|
|
1116
|
-
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
1117
|
-
*/
|
|
1118
|
-
delete(...i) {
|
|
1119
|
-
const [N, h] = typeof i[0] == "string" ? [i[0]] : [i[0].name, i[0]];
|
|
1120
|
-
return this.set({ ...h, name: N, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
1121
|
-
}
|
|
1122
|
-
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1123
|
-
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
1124
|
-
}
|
|
1125
|
-
toString() {
|
|
1126
|
-
return [...this._parsed.values()].map(_).join("; ");
|
|
1127
|
-
}
|
|
1128
|
-
};
|
|
1129
|
-
function v(i, N) {
|
|
1130
|
-
N.delete("set-cookie");
|
|
1131
|
-
for (const [, h] of i) {
|
|
1132
|
-
const P = _(h);
|
|
1133
|
-
N.append("set-cookie", P);
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
function O(i = { name: "", value: "" }) {
|
|
1137
|
-
return typeof i.expires == "number" && (i.expires = new Date(i.expires)), i.maxAge && (i.expires = new Date(Date.now() + i.maxAge * 1e3)), (i.path === null || i.path === void 0) && (i.path = "/"), i;
|
|
1138
|
-
}
|
|
1139
|
-
return nt;
|
|
1140
|
-
}
|
|
1141
|
-
var Jt;
|
|
1142
|
-
function Nt() {
|
|
1143
|
-
return Jt || (Jt = 1, (function(s) {
|
|
1144
|
-
Object.defineProperty(s, "__esModule", {
|
|
1145
|
-
value: !0
|
|
1146
|
-
});
|
|
1147
|
-
function o(d, l) {
|
|
1148
|
-
for (var E in l) Object.defineProperty(d, E, {
|
|
1149
|
-
enumerable: !0,
|
|
1150
|
-
get: l[E]
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
o(s, {
|
|
1154
|
-
RequestCookies: function() {
|
|
1155
|
-
return g.RequestCookies;
|
|
1156
|
-
},
|
|
1157
|
-
ResponseCookies: function() {
|
|
1158
|
-
return g.ResponseCookies;
|
|
1159
|
-
},
|
|
1160
|
-
stringifyCookie: function() {
|
|
1161
|
-
return g.stringifyCookie;
|
|
1162
|
-
}
|
|
1163
|
-
});
|
|
1164
|
-
const g = Zr();
|
|
1165
|
-
})(rt)), rt;
|
|
1166
|
-
}
|
|
1167
|
-
var er;
|
|
1168
|
-
function Jr() {
|
|
1169
|
-
return er || (er = 1, (function(s) {
|
|
1170
|
-
Object.defineProperty(s, "__esModule", {
|
|
1171
|
-
value: !0
|
|
1172
|
-
});
|
|
1173
|
-
function o(_, c) {
|
|
1174
|
-
for (var r in c) Object.defineProperty(_, r, {
|
|
1175
|
-
enumerable: !0,
|
|
1176
|
-
get: c[r]
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
o(s, {
|
|
1180
|
-
INTERNALS: function() {
|
|
1181
|
-
return u;
|
|
1182
|
-
},
|
|
1183
|
-
NextRequest: function() {
|
|
1184
|
-
return t;
|
|
1185
|
-
}
|
|
1186
|
-
});
|
|
1187
|
-
const g = jr(), d = Lr(), l = Vr(), E = Nt(), u = Symbol("internal request");
|
|
1188
|
-
class t extends Request {
|
|
1189
|
-
constructor(c, r = {}) {
|
|
1190
|
-
const b = typeof c != "string" && "url" in c ? c.url : String(c);
|
|
1191
|
-
(0, d.validateURL)(b), process.env.NEXT_RUNTIME !== "edge" && r.body && r.duplex !== "half" && (r.duplex = "half"), c instanceof Request ? super(c, r) : super(b, r);
|
|
1192
|
-
const w = new g.NextURL(b, {
|
|
1193
|
-
headers: (0, d.toNodeOutgoingHttpHeaders)(this.headers),
|
|
1194
|
-
nextConfig: r.nextConfig
|
|
1195
|
-
});
|
|
1196
|
-
this[u] = {
|
|
1197
|
-
cookies: new E.RequestCookies(this.headers),
|
|
1198
|
-
nextUrl: w,
|
|
1199
|
-
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? b : w.toString()
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1203
|
-
return {
|
|
1204
|
-
cookies: this.cookies,
|
|
1205
|
-
nextUrl: this.nextUrl,
|
|
1206
|
-
url: this.url,
|
|
1207
|
-
// rest of props come from Request
|
|
1208
|
-
bodyUsed: this.bodyUsed,
|
|
1209
|
-
cache: this.cache,
|
|
1210
|
-
credentials: this.credentials,
|
|
1211
|
-
destination: this.destination,
|
|
1212
|
-
headers: Object.fromEntries(this.headers),
|
|
1213
|
-
integrity: this.integrity,
|
|
1214
|
-
keepalive: this.keepalive,
|
|
1215
|
-
method: this.method,
|
|
1216
|
-
mode: this.mode,
|
|
1217
|
-
redirect: this.redirect,
|
|
1218
|
-
referrer: this.referrer,
|
|
1219
|
-
referrerPolicy: this.referrerPolicy,
|
|
1220
|
-
signal: this.signal
|
|
1221
|
-
};
|
|
1222
|
-
}
|
|
1223
|
-
get cookies() {
|
|
1224
|
-
return this[u].cookies;
|
|
1225
|
-
}
|
|
1226
|
-
get nextUrl() {
|
|
1227
|
-
return this[u].nextUrl;
|
|
1228
|
-
}
|
|
1229
|
-
/**
|
|
1230
|
-
* @deprecated
|
|
1231
|
-
* `page` has been deprecated in favour of `URLPattern`.
|
|
1232
|
-
* Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
1233
|
-
*/
|
|
1234
|
-
get page() {
|
|
1235
|
-
throw new l.RemovedPageError();
|
|
1236
|
-
}
|
|
1237
|
-
/**
|
|
1238
|
-
* @deprecated
|
|
1239
|
-
* `ua` has been removed in favour of \`userAgent\` function.
|
|
1240
|
-
* Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
1241
|
-
*/
|
|
1242
|
-
get ua() {
|
|
1243
|
-
throw new l.RemovedUAError();
|
|
1244
|
-
}
|
|
1245
|
-
get url() {
|
|
1246
|
-
return this[u].url;
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
})(qe)), qe;
|
|
1250
|
-
}
|
|
1251
|
-
var ot = {}, at = {}, tr;
|
|
1252
|
-
function en() {
|
|
1253
|
-
return tr || (tr = 1, (function(s) {
|
|
1254
|
-
Object.defineProperty(s, "__esModule", {
|
|
1255
|
-
value: !0
|
|
1256
|
-
}), Object.defineProperty(s, "ReflectAdapter", {
|
|
1257
|
-
enumerable: !0,
|
|
1258
|
-
get: function() {
|
|
1259
|
-
return o;
|
|
1260
|
-
}
|
|
1261
|
-
});
|
|
1262
|
-
class o {
|
|
1263
|
-
static get(d, l, E) {
|
|
1264
|
-
const u = Reflect.get(d, l, E);
|
|
1265
|
-
return typeof u == "function" ? u.bind(d) : u;
|
|
1266
|
-
}
|
|
1267
|
-
static set(d, l, E, u) {
|
|
1268
|
-
return Reflect.set(d, l, E, u);
|
|
1269
|
-
}
|
|
1270
|
-
static has(d, l) {
|
|
1271
|
-
return Reflect.has(d, l);
|
|
1272
|
-
}
|
|
1273
|
-
static deleteProperty(d, l) {
|
|
1274
|
-
return Reflect.deleteProperty(d, l);
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
})(at)), at;
|
|
1278
|
-
}
|
|
1279
|
-
var rr;
|
|
1280
|
-
function tn() {
|
|
1281
|
-
return rr || (rr = 1, (function(s) {
|
|
1282
|
-
Object.defineProperty(s, "__esModule", {
|
|
1283
|
-
value: !0
|
|
1284
|
-
}), Object.defineProperty(s, "NextResponse", {
|
|
1285
|
-
enumerable: !0,
|
|
1286
|
-
get: function() {
|
|
1287
|
-
return c;
|
|
1288
|
-
}
|
|
1289
|
-
});
|
|
1290
|
-
const o = Nt(), g = jr(), d = Lr(), l = en(), E = Nt(), u = Symbol("internal response"), t = /* @__PURE__ */ new Set([
|
|
1291
|
-
301,
|
|
1292
|
-
302,
|
|
1293
|
-
303,
|
|
1294
|
-
307,
|
|
1295
|
-
308
|
|
1296
|
-
]);
|
|
1297
|
-
function _(r, b) {
|
|
1298
|
-
var w;
|
|
1299
|
-
if (!(r == null || (w = r.request) == null) && w.headers) {
|
|
1300
|
-
if (!(r.request.headers instanceof Headers))
|
|
1301
|
-
throw Object.defineProperty(new Error("request.headers must be an instance of Headers"), "__NEXT_ERROR_CODE", {
|
|
1302
|
-
value: "E119",
|
|
1303
|
-
enumerable: !1,
|
|
1304
|
-
configurable: !0
|
|
1305
|
-
});
|
|
1306
|
-
const k = [];
|
|
1307
|
-
for (const [B, D] of r.request.headers)
|
|
1308
|
-
b.set("x-middleware-request-" + B, D), k.push(B);
|
|
1309
|
-
b.set("x-middleware-override-headers", k.join(","));
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
class c extends Response {
|
|
1313
|
-
constructor(b, w = {}) {
|
|
1314
|
-
super(b, w);
|
|
1315
|
-
const k = this.headers, B = new E.ResponseCookies(k), D = new Proxy(B, {
|
|
1316
|
-
get(p, y, R) {
|
|
1317
|
-
switch (y) {
|
|
1318
|
-
case "delete":
|
|
1319
|
-
case "set":
|
|
1320
|
-
return (...v) => {
|
|
1321
|
-
const O = Reflect.apply(p[y], p, v), i = new Headers(k);
|
|
1322
|
-
return O instanceof E.ResponseCookies && k.set("x-middleware-set-cookie", O.getAll().map((N) => (0, o.stringifyCookie)(N)).join(",")), _(w, i), O;
|
|
1323
|
-
};
|
|
1324
|
-
default:
|
|
1325
|
-
return l.ReflectAdapter.get(p, y, R);
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
});
|
|
1329
|
-
this[u] = {
|
|
1330
|
-
cookies: D,
|
|
1331
|
-
url: w.url ? new g.NextURL(w.url, {
|
|
1332
|
-
headers: (0, d.toNodeOutgoingHttpHeaders)(k),
|
|
1333
|
-
nextConfig: w.nextConfig
|
|
1334
|
-
}) : void 0
|
|
1335
|
-
};
|
|
1336
|
-
}
|
|
1337
|
-
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1338
|
-
return {
|
|
1339
|
-
cookies: this.cookies,
|
|
1340
|
-
url: this.url,
|
|
1341
|
-
// rest of props come from Response
|
|
1342
|
-
body: this.body,
|
|
1343
|
-
bodyUsed: this.bodyUsed,
|
|
1344
|
-
headers: Object.fromEntries(this.headers),
|
|
1345
|
-
ok: this.ok,
|
|
1346
|
-
redirected: this.redirected,
|
|
1347
|
-
status: this.status,
|
|
1348
|
-
statusText: this.statusText,
|
|
1349
|
-
type: this.type
|
|
1350
|
-
};
|
|
1351
|
-
}
|
|
1352
|
-
get cookies() {
|
|
1353
|
-
return this[u].cookies;
|
|
1354
|
-
}
|
|
1355
|
-
static json(b, w) {
|
|
1356
|
-
const k = Response.json(b, w);
|
|
1357
|
-
return new c(k.body, k);
|
|
1358
|
-
}
|
|
1359
|
-
static redirect(b, w) {
|
|
1360
|
-
const k = typeof w == "number" ? w : (w == null ? void 0 : w.status) ?? 307;
|
|
1361
|
-
if (!t.has(k))
|
|
1362
|
-
throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'), "__NEXT_ERROR_CODE", {
|
|
1363
|
-
value: "E529",
|
|
1364
|
-
enumerable: !1,
|
|
1365
|
-
configurable: !0
|
|
1366
|
-
});
|
|
1367
|
-
const B = typeof w == "object" ? w : {}, D = new Headers(B == null ? void 0 : B.headers);
|
|
1368
|
-
return D.set("Location", (0, d.validateURL)(b)), new c(null, {
|
|
1369
|
-
...B,
|
|
1370
|
-
headers: D,
|
|
1371
|
-
status: k
|
|
1372
|
-
});
|
|
1373
|
-
}
|
|
1374
|
-
static rewrite(b, w) {
|
|
1375
|
-
const k = new Headers(w == null ? void 0 : w.headers);
|
|
1376
|
-
return k.set("x-middleware-rewrite", (0, d.validateURL)(b)), _(w, k), new c(null, {
|
|
1377
|
-
...w,
|
|
1378
|
-
headers: k
|
|
1379
|
-
});
|
|
1380
|
-
}
|
|
1381
|
-
static next(b) {
|
|
1382
|
-
const w = new Headers(b == null ? void 0 : b.headers);
|
|
1383
|
-
return w.set("x-middleware-next", "1"), _(b, w), new c(null, {
|
|
1384
|
-
...b,
|
|
1385
|
-
headers: w
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
})(ot)), ot;
|
|
1390
|
-
}
|
|
1391
|
-
var it = {}, nr;
|
|
1392
|
-
function rn() {
|
|
1393
|
-
return nr || (nr = 1, (function(s) {
|
|
1394
|
-
Object.defineProperty(s, "__esModule", {
|
|
1395
|
-
value: !0
|
|
1396
|
-
}), Object.defineProperty(s, "ImageResponse", {
|
|
1397
|
-
enumerable: !0,
|
|
1398
|
-
get: function() {
|
|
1399
|
-
return o;
|
|
1400
|
-
}
|
|
1401
|
-
});
|
|
1402
|
-
function o() {
|
|
1403
|
-
throw Object.defineProperty(new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'), "__NEXT_ERROR_CODE", {
|
|
1404
|
-
value: "E183",
|
|
1405
|
-
enumerable: !1,
|
|
1406
|
-
configurable: !0
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
})(it)), it;
|
|
1410
|
-
}
|
|
1411
|
-
var st = {}, ut = { exports: {} }, or;
|
|
1412
|
-
function nn() {
|
|
1413
|
-
return or || (or = 1, (() => {
|
|
1414
|
-
var s = { 226: function(l, E) {
|
|
1415
|
-
(function(u, t) {
|
|
1416
|
-
var _ = "1.0.35", c = "", r = "?", b = "function", w = "undefined", k = "object", B = "string", D = "major", p = "model", y = "name", R = "type", v = "vendor", O = "version", i = "architecture", N = "console", h = "mobile", P = "tablet", x = "smarttv", Q = "wearable", ae = "embedded", X = 350, se = "Amazon", oe = "Apple", de = "ASUS", ce = "BlackBerry", ie = "Browser", he = "Chrome", Re = "Edge", _e = "Firefox", n = "Google", A = "Huawei", M = "LG", j = "Microsoft", W = "Motorola", G = "Opera", Y = "Samsung", ue = "Sharp", re = "Sony", me = "Xiaomi", Te = "Zebra", Se = "Facebook", ge = "Chromium OS", Pe = "Mac OS", Ae = function(z, J) {
|
|
1417
|
-
var q = {};
|
|
1418
|
-
for (var te in z)
|
|
1419
|
-
J[te] && J[te].length % 2 === 0 ? q[te] = J[te].concat(z[te]) : q[te] = z[te];
|
|
1420
|
-
return q;
|
|
1421
|
-
}, ye = function(z) {
|
|
1422
|
-
for (var J = {}, q = 0; q < z.length; q++)
|
|
1423
|
-
J[z[q].toUpperCase()] = z[q];
|
|
1424
|
-
return J;
|
|
1425
|
-
}, le = function(z, J) {
|
|
1426
|
-
return typeof z === B ? ve(J).indexOf(ve(z)) !== -1 : !1;
|
|
1427
|
-
}, ve = function(z) {
|
|
1428
|
-
return z.toLowerCase();
|
|
1429
|
-
}, m = function(z) {
|
|
1430
|
-
return typeof z === B ? z.replace(/[^\d\.]/g, c).split(".")[0] : t;
|
|
1431
|
-
}, f = function(z, J) {
|
|
1432
|
-
if (typeof z === B)
|
|
1433
|
-
return z = z.replace(/^\s\s*/, c), typeof J === w ? z : z.substring(0, X);
|
|
1434
|
-
}, T = function(z, J) {
|
|
1435
|
-
for (var q = 0, te, be, Ee, V, H, pe; q < J.length && !H; ) {
|
|
1436
|
-
var e = J[q], a = J[q + 1];
|
|
1437
|
-
for (te = be = 0; te < e.length && !H && e[te]; )
|
|
1438
|
-
if (H = e[te++].exec(z), H)
|
|
1439
|
-
for (Ee = 0; Ee < a.length; Ee++)
|
|
1440
|
-
pe = H[++be], V = a[Ee], typeof V === k && V.length > 0 ? V.length === 2 ? typeof V[1] == b ? this[V[0]] = V[1].call(this, pe) : this[V[0]] = V[1] : V.length === 3 ? typeof V[1] === b && !(V[1].exec && V[1].test) ? this[V[0]] = pe ? V[1].call(this, pe, V[2]) : t : this[V[0]] = pe ? pe.replace(V[1], V[2]) : t : V.length === 4 && (this[V[0]] = pe ? V[3].call(this, pe.replace(V[1], V[2])) : t) : this[V] = pe || t;
|
|
1441
|
-
q += 2;
|
|
1442
|
-
}
|
|
1443
|
-
}, C = function(z, J) {
|
|
1444
|
-
for (var q in J)
|
|
1445
|
-
if (typeof J[q] === k && J[q].length > 0) {
|
|
1446
|
-
for (var te = 0; te < J[q].length; te++)
|
|
1447
|
-
if (le(J[q][te], z))
|
|
1448
|
-
return q === r ? t : q;
|
|
1449
|
-
} else if (le(J[q], z))
|
|
1450
|
-
return q === r ? t : q;
|
|
1451
|
-
return z;
|
|
1452
|
-
}, ee = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Z = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Ne = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [O, [y, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [O, [y, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [y, O], [/opios[\/ ]+([\w\.]+)/i], [O, [y, G + " Mini"]], [/\bopr\/([\w\.]+)/i], [O, [y, G]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [y, O], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [O, [y, "UC" + ie]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [O, [y, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [O, [y, "WeChat"]], [/konqueror\/([\w\.]+)/i], [O, [y, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [O, [y, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [O, [y, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + ie], O], [/\bfocus\/([\w\.]+)/i], [O, [y, _e + " Focus"]], [/\bopt\/([\w\.]+)/i], [O, [y, G + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [O, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [O, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [O, [y, G + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [O, [y, "MIUI " + ie]], [/fxios\/([-\w\.]+)/i], [O, [y, _e]], [/\bqihu|(qi?ho?o?|360)browser/i], [[y, "360 " + ie]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[y, /(.+)/, "$1 " + ie], O], [/(comodo_dragon)\/([\w\.]+)/i], [[y, /_/g, " "], O], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [y, O], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [y], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[y, Se], O], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [y, O], [/\bgsa\/([\w\.]+) .*safari\//i], [O, [y, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [O, [y, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [O, [y, he + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, he + " WebView"], O], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [O, [y, "Android " + ie]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [y, O], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [O, [y, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [O, y], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [y, [O, C, ee]], [/(webkit|khtml)\/([\w\.]+)/i], [y, O], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[y, "Netscape"], O], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [O, [y, _e + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [y, O], [/(cobalt)\/([\w\.]+)/i], [y, [O, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[i, "amd64"]], [/(ia32(?=;))/i], [[i, ve]], [/((?:i[346]|x)86)[;\)]/i], [[i, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[i, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[i, "armhf"]], [/windows (ce|mobile); ppc;/i], [[i, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[i, /ower/, c, ve]], [/(sun4\w)[;\)]/i], [[i, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[i, ve]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [v, Y], [R, P]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [v, Y], [R, h]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [v, oe], [R, h]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [v, oe], [R, P]], [/(macintosh);/i], [p, [v, oe]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [v, ue], [R, h]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [v, A], [R, P]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [v, A], [R, h]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [v, me], [R, h]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [v, me], [R, P]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [v, "OPPO"], [R, h]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [v, "Vivo"], [R, h]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [v, "Realme"], [R, h]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [v, W], [R, h]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [v, W], [R, P]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [v, M], [R, P]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [v, M], [R, h]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [v, "Lenovo"], [R, P]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [v, "Nokia"], [R, h]], [/(pixel c)\b/i], [p, [v, n], [R, P]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [v, n], [R, h]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [v, re], [R, h]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [v, re], [R, P]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [v, "OnePlus"], [R, h]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [v, se], [R, P]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [v, se], [R, h]], [/(playbook);[-\w\),; ]+(rim)/i], [p, v, [R, P]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [v, ce], [R, h]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [v, de], [R, P]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [v, de], [R, h]], [/(nexus 9)/i], [p, [v, "HTC"], [R, P]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [v, [p, /_/g, " "], [R, h]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [v, "Acer"], [R, P]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [v, "Meizu"], [R, h]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [v, p, [R, h]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [v, p, [R, P]], [/(surface duo)/i], [p, [v, j], [R, P]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [v, "Fairphone"], [R, h]], [/(u304aa)/i], [p, [v, "AT&T"], [R, h]], [/\bsie-(\w*)/i], [p, [v, "Siemens"], [R, h]], [/\b(rct\w+) b/i], [p, [v, "RCA"], [R, P]], [/\b(venue[\d ]{2,7}) b/i], [p, [v, "Dell"], [R, P]], [/\b(q(?:mv|ta)\w+) b/i], [p, [v, "Verizon"], [R, P]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [v, "Barnes & Noble"], [R, P]], [/\b(tm\d{3}\w+) b/i], [p, [v, "NuVision"], [R, P]], [/\b(k88) b/i], [p, [v, "ZTE"], [R, P]], [/\b(nx\d{3}j) b/i], [p, [v, "ZTE"], [R, h]], [/\b(gen\d{3}) b.+49h/i], [p, [v, "Swiss"], [R, h]], [/\b(zur\d{3}) b/i], [p, [v, "Swiss"], [R, P]], [/\b((zeki)?tb.*\b) b/i], [p, [v, "Zeki"], [R, P]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[v, "Dragon Touch"], p, [R, P]], [/\b(ns-?\w{0,9}) b/i], [p, [v, "Insignia"], [R, P]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [v, "NextBook"], [R, P]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[v, "Voice"], p, [R, h]], [/\b(lvtel\-)?(v1[12]) b/i], [[v, "LvTel"], p, [R, h]], [/\b(ph-1) /i], [p, [v, "Essential"], [R, h]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [v, "Envizen"], [R, P]], [/\b(trio[-\w\. ]+) b/i], [p, [v, "MachSpeed"], [R, P]], [/\btu_(1491) b/i], [p, [v, "Rotor"], [R, P]], [/(shield[\w ]+) b/i], [p, [v, "Nvidia"], [R, P]], [/(sprint) (\w+)/i], [v, p, [R, h]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [v, j], [R, h]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [v, Te], [R, P]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [v, Te], [R, h]], [/smart-tv.+(samsung)/i], [v, [R, x]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [v, Y], [R, x]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[v, M], [R, x]], [/(apple) ?tv/i], [v, [p, oe + " TV"], [R, x]], [/crkey/i], [[p, he + "cast"], [v, n], [R, x]], [/droid.+aft(\w)( bui|\))/i], [p, [v, se], [R, x]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [v, ue], [R, x]], [/(bravia[\w ]+)( bui|\))/i], [p, [v, re], [R, x]], [/(mitv-\w{5}) bui/i], [p, [v, me], [R, x]], [/Hbbtv.*(technisat) (.*);/i], [v, p, [R, x]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[v, f], [p, f], [R, x]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[R, x]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [v, p, [R, N]], [/droid.+; (shield) bui/i], [p, [v, "Nvidia"], [R, N]], [/(playstation [345portablevi]+)/i], [p, [v, re], [R, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [v, j], [R, N]], [/((pebble))app/i], [v, p, [R, Q]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [v, oe], [R, Q]], [/droid.+; (glass) \d/i], [p, [v, n], [R, Q]], [/droid.+; (wt63?0{2,3})\)/i], [p, [v, Te], [R, Q]], [/(quest( 2| pro)?)/i], [p, [v, Se], [R, Q]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [v, [R, ae]], [/(aeobc)\b/i], [p, [v, se], [R, ae]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [R, h]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [R, P]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[R, P]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[R, h]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [v, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [O, [y, Re + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [O, [y, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [y, O], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [O, y]], os: [[/microsoft (windows) (vista|xp)/i], [y, O], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [y, [O, C, Z]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[y, "Windows"], [O, C, Z]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[O, /_/g, "."], [y, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[y, Pe], [O, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [O, y], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [y, O], [/\(bb(10);/i], [O, [y, ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [O, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [O, [y, _e + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [O, [y, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [O, [y, "watchOS"]], [/crkey\/([\d\.]+)/i], [O, [y, he + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[y, ge], O], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [y, O], [/(sunos) ?([\w\.\d]*)/i], [[y, "Solaris"], O], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [y, O]] }, fe = function(z, J) {
|
|
1453
|
-
if (typeof z === k && (J = z, z = t), !(this instanceof fe))
|
|
1454
|
-
return new fe(z, J).getResult();
|
|
1455
|
-
var q = typeof u !== w && u.navigator ? u.navigator : t, te = z || (q && q.userAgent ? q.userAgent : c), be = q && q.userAgentData ? q.userAgentData : t, Ee = J ? Ae(Ne, J) : Ne, V = q && q.userAgent == te;
|
|
1456
|
-
return this.getBrowser = function() {
|
|
1457
|
-
var H = {};
|
|
1458
|
-
return H[y] = t, H[O] = t, T.call(H, te, Ee.browser), H[D] = m(H[O]), V && q && q.brave && typeof q.brave.isBrave == b && (H[y] = "Brave"), H;
|
|
1459
|
-
}, this.getCPU = function() {
|
|
1460
|
-
var H = {};
|
|
1461
|
-
return H[i] = t, T.call(H, te, Ee.cpu), H;
|
|
1462
|
-
}, this.getDevice = function() {
|
|
1463
|
-
var H = {};
|
|
1464
|
-
return H[v] = t, H[p] = t, H[R] = t, T.call(H, te, Ee.device), V && !H[R] && be && be.mobile && (H[R] = h), V && H[p] == "Macintosh" && q && typeof q.standalone !== w && q.maxTouchPoints && q.maxTouchPoints > 2 && (H[p] = "iPad", H[R] = P), H;
|
|
1465
|
-
}, this.getEngine = function() {
|
|
1466
|
-
var H = {};
|
|
1467
|
-
return H[y] = t, H[O] = t, T.call(H, te, Ee.engine), H;
|
|
1468
|
-
}, this.getOS = function() {
|
|
1469
|
-
var H = {};
|
|
1470
|
-
return H[y] = t, H[O] = t, T.call(H, te, Ee.os), V && !H[y] && be && be.platform != "Unknown" && (H[y] = be.platform.replace(/chrome os/i, ge).replace(/macos/i, Pe)), H;
|
|
1471
|
-
}, this.getResult = function() {
|
|
1472
|
-
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1473
|
-
}, this.getUA = function() {
|
|
1474
|
-
return te;
|
|
1475
|
-
}, this.setUA = function(H) {
|
|
1476
|
-
return te = typeof H === B && H.length > X ? f(H, X) : H, this;
|
|
1477
|
-
}, this.setUA(te), this;
|
|
1478
|
-
};
|
|
1479
|
-
fe.VERSION = _, fe.BROWSER = ye([y, O, D]), fe.CPU = ye([i]), fe.DEVICE = ye([p, v, R, N, h, x, P, Q, ae]), fe.ENGINE = fe.OS = ye([y, O]), typeof E !== w ? (l.exports && (E = l.exports = fe), E.UAParser = fe) : typeof u !== w && (u.UAParser = fe);
|
|
1480
|
-
var we = typeof u !== w && (u.jQuery || u.Zepto);
|
|
1481
|
-
if (we && !we.ua) {
|
|
1482
|
-
var Ce = new fe();
|
|
1483
|
-
we.ua = Ce.getResult(), we.ua.get = function() {
|
|
1484
|
-
return Ce.getUA();
|
|
1485
|
-
}, we.ua.set = function(z) {
|
|
1486
|
-
Ce.setUA(z);
|
|
1487
|
-
var J = Ce.getResult();
|
|
1488
|
-
for (var q in J)
|
|
1489
|
-
we.ua[q] = J[q];
|
|
1490
|
-
};
|
|
1491
|
-
}
|
|
1492
|
-
})(typeof window == "object" ? window : this);
|
|
1493
|
-
} }, o = {};
|
|
1494
|
-
function g(l) {
|
|
1495
|
-
var E = o[l];
|
|
1496
|
-
if (E !== void 0)
|
|
1497
|
-
return E.exports;
|
|
1498
|
-
var u = o[l] = { exports: {} }, t = !0;
|
|
1499
|
-
try {
|
|
1500
|
-
s[l].call(u.exports, u, u.exports, g), t = !1;
|
|
1501
|
-
} finally {
|
|
1502
|
-
t && delete o[l];
|
|
1503
|
-
}
|
|
1504
|
-
return u.exports;
|
|
1505
|
-
}
|
|
1506
|
-
typeof g < "u" && (g.ab = __dirname + "/");
|
|
1507
|
-
var d = g(226);
|
|
1508
|
-
ut.exports = d;
|
|
1509
|
-
})()), ut.exports;
|
|
1510
|
-
}
|
|
1511
|
-
var ar;
|
|
1512
|
-
function ir() {
|
|
1513
|
-
return ar || (ar = 1, (function(s) {
|
|
1514
|
-
Object.defineProperty(s, "__esModule", {
|
|
1515
|
-
value: !0
|
|
1516
|
-
});
|
|
1517
|
-
function o(t, _) {
|
|
1518
|
-
for (var c in _) Object.defineProperty(t, c, {
|
|
1519
|
-
enumerable: !0,
|
|
1520
|
-
get: _[c]
|
|
1521
|
-
});
|
|
1522
|
-
}
|
|
1523
|
-
o(s, {
|
|
1524
|
-
isBot: function() {
|
|
1525
|
-
return l;
|
|
1526
|
-
},
|
|
1527
|
-
userAgent: function() {
|
|
1528
|
-
return u;
|
|
1529
|
-
},
|
|
1530
|
-
userAgentFromString: function() {
|
|
1531
|
-
return E;
|
|
1532
|
-
}
|
|
1533
|
-
});
|
|
1534
|
-
const g = /* @__PURE__ */ d(nn());
|
|
1535
|
-
function d(t) {
|
|
1536
|
-
return t && t.__esModule ? t : {
|
|
1537
|
-
default: t
|
|
1538
|
-
};
|
|
1539
|
-
}
|
|
1540
|
-
function l(t) {
|
|
1541
|
-
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(t);
|
|
1542
|
-
}
|
|
1543
|
-
function E(t) {
|
|
1544
|
-
return {
|
|
1545
|
-
...(0, g.default)(t),
|
|
1546
|
-
isBot: t === void 0 ? !1 : l(t)
|
|
1547
|
-
};
|
|
1548
|
-
}
|
|
1549
|
-
function u({ headers: t }) {
|
|
1550
|
-
return E(t.get("user-agent") || void 0);
|
|
1551
|
-
}
|
|
1552
|
-
})(st)), st;
|
|
1553
|
-
}
|
|
1554
|
-
var ct = {}, sr;
|
|
1555
|
-
function on() {
|
|
1556
|
-
return sr || (sr = 1, (function(s) {
|
|
1557
|
-
Object.defineProperty(s, "__esModule", {
|
|
1558
|
-
value: !0
|
|
1559
|
-
}), Object.defineProperty(s, "URLPattern", {
|
|
1560
|
-
enumerable: !0,
|
|
1561
|
-
get: function() {
|
|
1562
|
-
return o;
|
|
1563
|
-
}
|
|
1564
|
-
});
|
|
1565
|
-
const o = (
|
|
1566
|
-
// @ts-expect-error: URLPattern is not available in Node.js
|
|
1567
|
-
typeof URLPattern > "u" ? void 0 : URLPattern
|
|
1568
|
-
);
|
|
1569
|
-
})(ct)), ct;
|
|
1570
|
-
}
|
|
1571
|
-
var lt = {}, ft = {}, dt = {}, ht = {}, pt = {}, ur;
|
|
1572
|
-
function Dt() {
|
|
1573
|
-
return ur || (ur = 1, (function(s) {
|
|
1574
|
-
Object.defineProperty(s, "__esModule", {
|
|
1575
|
-
value: !0
|
|
1576
|
-
});
|
|
1577
|
-
function o(_, c) {
|
|
1578
|
-
for (var r in c) Object.defineProperty(_, r, {
|
|
1579
|
-
enumerable: !0,
|
|
1580
|
-
get: c[r]
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
o(s, {
|
|
1584
|
-
bindSnapshot: function() {
|
|
1585
|
-
return u;
|
|
1586
|
-
},
|
|
1587
|
-
createAsyncLocalStorage: function() {
|
|
1588
|
-
return E;
|
|
1589
|
-
},
|
|
1590
|
-
createSnapshot: function() {
|
|
1591
|
-
return t;
|
|
1592
|
-
}
|
|
1593
|
-
});
|
|
1594
|
-
const g = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
1595
|
-
value: "E504",
|
|
1596
|
-
enumerable: !1,
|
|
1597
|
-
configurable: !0
|
|
1598
|
-
});
|
|
1599
|
-
class d {
|
|
1600
|
-
disable() {
|
|
1601
|
-
throw g;
|
|
1602
|
-
}
|
|
1603
|
-
getStore() {
|
|
1604
|
-
}
|
|
1605
|
-
run() {
|
|
1606
|
-
throw g;
|
|
1607
|
-
}
|
|
1608
|
-
exit() {
|
|
1609
|
-
throw g;
|
|
1610
|
-
}
|
|
1611
|
-
enterWith() {
|
|
1612
|
-
throw g;
|
|
1613
|
-
}
|
|
1614
|
-
static bind(c) {
|
|
1615
|
-
return c;
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
const l = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
|
|
1619
|
-
function E() {
|
|
1620
|
-
return l ? new l() : new d();
|
|
1621
|
-
}
|
|
1622
|
-
function u(_) {
|
|
1623
|
-
return l ? l.bind(_) : d.bind(_);
|
|
1624
|
-
}
|
|
1625
|
-
function t() {
|
|
1626
|
-
return l ? l.snapshot() : function(_, ...c) {
|
|
1627
|
-
return _(...c);
|
|
1628
|
-
};
|
|
1629
|
-
}
|
|
1630
|
-
})(pt)), pt;
|
|
1631
|
-
}
|
|
1632
|
-
var cr;
|
|
1633
|
-
function an() {
|
|
1634
|
-
return cr || (cr = 1, (function(s) {
|
|
1635
|
-
Object.defineProperty(s, "__esModule", {
|
|
1636
|
-
value: !0
|
|
1637
|
-
}), Object.defineProperty(s, "workAsyncStorageInstance", {
|
|
1638
|
-
enumerable: !0,
|
|
1639
|
-
get: function() {
|
|
1640
|
-
return g;
|
|
1641
|
-
}
|
|
1642
|
-
});
|
|
1643
|
-
const g = (0, Dt().createAsyncLocalStorage)();
|
|
1644
|
-
})(ht)), ht;
|
|
1645
|
-
}
|
|
1646
|
-
var lr;
|
|
1647
|
-
function xt() {
|
|
1648
|
-
return lr || (lr = 1, (function(s) {
|
|
1649
|
-
Object.defineProperty(s, "__esModule", {
|
|
1650
|
-
value: !0
|
|
1651
|
-
}), Object.defineProperty(s, "workAsyncStorage", {
|
|
1652
|
-
enumerable: !0,
|
|
1653
|
-
get: function() {
|
|
1654
|
-
return o.workAsyncStorageInstance;
|
|
1655
|
-
}
|
|
1656
|
-
});
|
|
1657
|
-
const o = an();
|
|
1658
|
-
})(dt)), dt;
|
|
1659
|
-
}
|
|
1660
|
-
var fr;
|
|
1661
|
-
function sn() {
|
|
1662
|
-
return fr || (fr = 1, (function(s) {
|
|
1663
|
-
Object.defineProperty(s, "__esModule", {
|
|
1664
|
-
value: !0
|
|
1665
|
-
}), Object.defineProperty(s, "after", {
|
|
1666
|
-
enumerable: !0,
|
|
1667
|
-
get: function() {
|
|
1668
|
-
return g;
|
|
1669
|
-
}
|
|
1670
|
-
});
|
|
1671
|
-
const o = xt();
|
|
1672
|
-
function g(d) {
|
|
1673
|
-
const l = o.workAsyncStorage.getStore();
|
|
1674
|
-
if (!l)
|
|
1675
|
-
throw Object.defineProperty(new Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"), "__NEXT_ERROR_CODE", {
|
|
1676
|
-
value: "E468",
|
|
1677
|
-
enumerable: !1,
|
|
1678
|
-
configurable: !0
|
|
1679
|
-
});
|
|
1680
|
-
const { afterContext: E } = l;
|
|
1681
|
-
return E.after(d);
|
|
1682
|
-
}
|
|
1683
|
-
})(ft)), ft;
|
|
1684
|
-
}
|
|
1685
|
-
var dr;
|
|
1686
|
-
function un() {
|
|
1687
|
-
return dr || (dr = 1, (function(s) {
|
|
1688
|
-
Object.defineProperty(s, "__esModule", {
|
|
1689
|
-
value: !0
|
|
1690
|
-
}), o(sn(), s);
|
|
1691
|
-
function o(g, d) {
|
|
1692
|
-
return Object.keys(g).forEach(function(l) {
|
|
1693
|
-
l !== "default" && !Object.prototype.hasOwnProperty.call(d, l) && Object.defineProperty(d, l, {
|
|
1694
|
-
enumerable: !0,
|
|
1695
|
-
get: function() {
|
|
1696
|
-
return g[l];
|
|
1697
|
-
}
|
|
1698
|
-
});
|
|
1699
|
-
}), g;
|
|
1700
|
-
}
|
|
1701
|
-
})(lt)), lt;
|
|
1702
|
-
}
|
|
1703
|
-
var _t = {}, mt = {}, gt = {}, hr;
|
|
1704
|
-
function cn() {
|
|
1705
|
-
return hr || (hr = 1, (function(s) {
|
|
1706
|
-
Object.defineProperty(s, "__esModule", {
|
|
1707
|
-
value: !0
|
|
1708
|
-
}), Object.defineProperty(s, "workUnitAsyncStorageInstance", {
|
|
1709
|
-
enumerable: !0,
|
|
1710
|
-
get: function() {
|
|
1711
|
-
return g;
|
|
1712
|
-
}
|
|
1713
|
-
});
|
|
1714
|
-
const g = (0, Dt().createAsyncLocalStorage)();
|
|
1715
|
-
})(gt)), gt;
|
|
1716
|
-
}
|
|
1717
|
-
var je = { exports: {} }, pr;
|
|
1718
|
-
function ln() {
|
|
1719
|
-
return pr || (pr = 1, (function(s, o) {
|
|
1720
|
-
Object.defineProperty(o, "__esModule", {
|
|
1721
|
-
value: !0
|
|
1722
|
-
});
|
|
1723
|
-
function g(h, P) {
|
|
1724
|
-
for (var x in P) Object.defineProperty(h, x, {
|
|
1725
|
-
enumerable: !0,
|
|
1726
|
-
get: P[x]
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
g(o, {
|
|
1730
|
-
ACTION_HEADER: function() {
|
|
1731
|
-
return l;
|
|
1732
|
-
},
|
|
1733
|
-
FLIGHT_HEADERS: function() {
|
|
1734
|
-
return w;
|
|
1735
|
-
},
|
|
1736
|
-
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
|
1737
|
-
return v;
|
|
1738
|
-
},
|
|
1739
|
-
NEXT_ACTION_REVALIDATED_HEADER: function() {
|
|
1740
|
-
return N;
|
|
1741
|
-
},
|
|
1742
|
-
NEXT_DID_POSTPONE_HEADER: function() {
|
|
1743
|
-
return D;
|
|
1744
|
-
},
|
|
1745
|
-
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
1746
|
-
return c;
|
|
1747
|
-
},
|
|
1748
|
-
NEXT_HMR_REFRESH_HEADER: function() {
|
|
1749
|
-
return _;
|
|
1750
|
-
},
|
|
1751
|
-
NEXT_HTML_REQUEST_ID_HEADER: function() {
|
|
1752
|
-
return i;
|
|
1753
|
-
},
|
|
1754
|
-
NEXT_IS_PRERENDER_HEADER: function() {
|
|
1755
|
-
return R;
|
|
1756
|
-
},
|
|
1757
|
-
NEXT_REQUEST_ID_HEADER: function() {
|
|
1758
|
-
return O;
|
|
1759
|
-
},
|
|
1760
|
-
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
1761
|
-
return p;
|
|
1762
|
-
},
|
|
1763
|
-
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
1764
|
-
return y;
|
|
1765
|
-
},
|
|
1766
|
-
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
1767
|
-
return u;
|
|
1768
|
-
},
|
|
1769
|
-
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
1770
|
-
return t;
|
|
1771
|
-
},
|
|
1772
|
-
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
1773
|
-
return B;
|
|
1774
|
-
},
|
|
1775
|
-
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
1776
|
-
return E;
|
|
1777
|
-
},
|
|
1778
|
-
NEXT_RSC_UNION_QUERY: function() {
|
|
1779
|
-
return k;
|
|
1780
|
-
},
|
|
1781
|
-
NEXT_URL: function() {
|
|
1782
|
-
return r;
|
|
1783
|
-
},
|
|
1784
|
-
RSC_CONTENT_TYPE_HEADER: function() {
|
|
1785
|
-
return b;
|
|
1786
|
-
},
|
|
1787
|
-
RSC_HEADER: function() {
|
|
1788
|
-
return d;
|
|
1789
|
-
}
|
|
1790
|
-
});
|
|
1791
|
-
const d = "rsc", l = "next-action", E = "next-router-state-tree", u = "next-router-prefetch", t = "next-router-segment-prefetch", _ = "next-hmr-refresh", c = "__next_hmr_refresh_hash__", r = "next-url", b = "text/x-component", w = [
|
|
1792
|
-
d,
|
|
1793
|
-
E,
|
|
1794
|
-
u,
|
|
1795
|
-
_,
|
|
1796
|
-
t
|
|
1797
|
-
], k = "_rsc", B = "x-nextjs-stale-time", D = "x-nextjs-postponed", p = "x-nextjs-rewritten-path", y = "x-nextjs-rewritten-query", R = "x-nextjs-prerender", v = "x-nextjs-action-not-found", O = "x-nextjs-request-id", i = "x-nextjs-html-request-id", N = "x-action-revalidated";
|
|
1798
|
-
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), s.exports = o.default);
|
|
1799
|
-
})(je, je.exports)), je.exports;
|
|
1800
|
-
}
|
|
1801
|
-
var Et = {}, _r;
|
|
1802
|
-
function kt() {
|
|
1803
|
-
return _r || (_r = 1, (function(s) {
|
|
1804
|
-
Object.defineProperty(s, "__esModule", {
|
|
1805
|
-
value: !0
|
|
1806
|
-
}), Object.defineProperty(s, "InvariantError", {
|
|
1807
|
-
enumerable: !0,
|
|
1808
|
-
get: function() {
|
|
1809
|
-
return o;
|
|
1810
|
-
}
|
|
1811
|
-
});
|
|
1812
|
-
class o extends Error {
|
|
1813
|
-
constructor(d, l) {
|
|
1814
|
-
super(`Invariant: ${d.endsWith(".") ? d : d + "."} This is a bug in Next.js.`, l), this.name = "InvariantError";
|
|
1815
|
-
}
|
|
1816
|
-
}
|
|
1817
|
-
})(Et)), Et;
|
|
1818
|
-
}
|
|
1819
|
-
var mr;
|
|
1820
|
-
function Mr() {
|
|
1821
|
-
return mr || (mr = 1, (function(s) {
|
|
1822
|
-
Object.defineProperty(s, "__esModule", {
|
|
1823
|
-
value: !0
|
|
1824
|
-
});
|
|
1825
|
-
function o(D, p) {
|
|
1826
|
-
for (var y in p) Object.defineProperty(D, y, {
|
|
1827
|
-
enumerable: !0,
|
|
1828
|
-
get: p[y]
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
o(s, {
|
|
1832
|
-
getCacheSignal: function() {
|
|
1833
|
-
return k;
|
|
1834
|
-
},
|
|
1835
|
-
getDraftModeProviderForCacheScope: function() {
|
|
1836
|
-
return w;
|
|
1837
|
-
},
|
|
1838
|
-
getHmrRefreshHash: function() {
|
|
1839
|
-
return c;
|
|
1840
|
-
},
|
|
1841
|
-
getPrerenderResumeDataCache: function() {
|
|
1842
|
-
return t;
|
|
1843
|
-
},
|
|
1844
|
-
getRenderResumeDataCache: function() {
|
|
1845
|
-
return _;
|
|
1846
|
-
},
|
|
1847
|
-
getRuntimeStagePromise: function() {
|
|
1848
|
-
return B;
|
|
1849
|
-
},
|
|
1850
|
-
getServerComponentsHmrCache: function() {
|
|
1851
|
-
return b;
|
|
1852
|
-
},
|
|
1853
|
-
isHmrRefresh: function() {
|
|
1854
|
-
return r;
|
|
1855
|
-
},
|
|
1856
|
-
throwForMissingRequestStore: function() {
|
|
1857
|
-
return E;
|
|
1858
|
-
},
|
|
1859
|
-
throwInvariantForMissingStore: function() {
|
|
1860
|
-
return u;
|
|
1861
|
-
},
|
|
1862
|
-
workUnitAsyncStorage: function() {
|
|
1863
|
-
return g.workUnitAsyncStorageInstance;
|
|
1864
|
-
}
|
|
1865
|
-
});
|
|
1866
|
-
const g = cn(), d = ln(), l = kt();
|
|
1867
|
-
function E(D) {
|
|
1868
|
-
throw Object.defineProperty(new Error(`\`${D}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
1869
|
-
value: "E251",
|
|
1870
|
-
enumerable: !1,
|
|
1871
|
-
configurable: !0
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
function u() {
|
|
1875
|
-
throw Object.defineProperty(new l.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
|
|
1876
|
-
value: "E696",
|
|
1877
|
-
enumerable: !1,
|
|
1878
|
-
configurable: !0
|
|
1879
|
-
});
|
|
1880
|
-
}
|
|
1881
|
-
function t(D) {
|
|
1882
|
-
switch (D.type) {
|
|
1883
|
-
case "prerender":
|
|
1884
|
-
case "prerender-runtime":
|
|
1885
|
-
case "prerender-ppr":
|
|
1886
|
-
return D.prerenderResumeDataCache;
|
|
1887
|
-
case "prerender-client":
|
|
1888
|
-
return D.prerenderResumeDataCache;
|
|
1889
|
-
case "request":
|
|
1890
|
-
if (D.prerenderResumeDataCache)
|
|
1891
|
-
return D.prerenderResumeDataCache;
|
|
1892
|
-
case "prerender-legacy":
|
|
1893
|
-
case "cache":
|
|
1894
|
-
case "private-cache":
|
|
1895
|
-
case "unstable-cache":
|
|
1896
|
-
return null;
|
|
1897
|
-
default:
|
|
1898
|
-
return D;
|
|
1899
|
-
}
|
|
1900
|
-
}
|
|
1901
|
-
function _(D) {
|
|
1902
|
-
switch (D.type) {
|
|
1903
|
-
case "request":
|
|
1904
|
-
case "prerender":
|
|
1905
|
-
case "prerender-runtime":
|
|
1906
|
-
case "prerender-client":
|
|
1907
|
-
if (D.renderResumeDataCache)
|
|
1908
|
-
return D.renderResumeDataCache;
|
|
1909
|
-
// fallthrough
|
|
1910
|
-
case "prerender-ppr":
|
|
1911
|
-
return D.prerenderResumeDataCache ?? null;
|
|
1912
|
-
case "cache":
|
|
1913
|
-
case "private-cache":
|
|
1914
|
-
case "unstable-cache":
|
|
1915
|
-
case "prerender-legacy":
|
|
1916
|
-
return null;
|
|
1917
|
-
default:
|
|
1918
|
-
return D;
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
function c(D, p) {
|
|
1922
|
-
if (D.dev)
|
|
1923
|
-
switch (p.type) {
|
|
1924
|
-
case "cache":
|
|
1925
|
-
case "private-cache":
|
|
1926
|
-
case "prerender":
|
|
1927
|
-
case "prerender-runtime":
|
|
1928
|
-
return p.hmrRefreshHash;
|
|
1929
|
-
case "request":
|
|
1930
|
-
var y;
|
|
1931
|
-
return (y = p.cookies.get(d.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : y.value;
|
|
1932
|
-
}
|
|
1933
|
-
}
|
|
1934
|
-
function r(D, p) {
|
|
1935
|
-
if (D.dev)
|
|
1936
|
-
switch (p.type) {
|
|
1937
|
-
case "cache":
|
|
1938
|
-
case "private-cache":
|
|
1939
|
-
case "request":
|
|
1940
|
-
return p.isHmrRefresh ?? !1;
|
|
1941
|
-
}
|
|
1942
|
-
return !1;
|
|
1943
|
-
}
|
|
1944
|
-
function b(D, p) {
|
|
1945
|
-
if (D.dev)
|
|
1946
|
-
switch (p.type) {
|
|
1947
|
-
case "cache":
|
|
1948
|
-
case "private-cache":
|
|
1949
|
-
case "request":
|
|
1950
|
-
return p.serverComponentsHmrCache;
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
function w(D, p) {
|
|
1954
|
-
if (D.isDraftMode)
|
|
1955
|
-
switch (p.type) {
|
|
1956
|
-
case "cache":
|
|
1957
|
-
case "private-cache":
|
|
1958
|
-
case "unstable-cache":
|
|
1959
|
-
case "prerender-runtime":
|
|
1960
|
-
case "request":
|
|
1961
|
-
return p.draftMode;
|
|
1962
|
-
}
|
|
1963
|
-
}
|
|
1964
|
-
function k(D) {
|
|
1965
|
-
switch (D.type) {
|
|
1966
|
-
case "prerender":
|
|
1967
|
-
case "prerender-client":
|
|
1968
|
-
case "prerender-runtime":
|
|
1969
|
-
return D.cacheSignal;
|
|
1970
|
-
case "request":
|
|
1971
|
-
if (D.cacheSignal)
|
|
1972
|
-
return D.cacheSignal;
|
|
1973
|
-
case "prerender-ppr":
|
|
1974
|
-
case "prerender-legacy":
|
|
1975
|
-
case "cache":
|
|
1976
|
-
case "private-cache":
|
|
1977
|
-
case "unstable-cache":
|
|
1978
|
-
return null;
|
|
1979
|
-
default:
|
|
1980
|
-
return D;
|
|
1981
|
-
}
|
|
1982
|
-
}
|
|
1983
|
-
function B(D) {
|
|
1984
|
-
switch (D.type) {
|
|
1985
|
-
case "prerender-runtime":
|
|
1986
|
-
case "private-cache":
|
|
1987
|
-
return D.runtimeStagePromise;
|
|
1988
|
-
case "prerender":
|
|
1989
|
-
case "prerender-client":
|
|
1990
|
-
case "prerender-ppr":
|
|
1991
|
-
case "prerender-legacy":
|
|
1992
|
-
case "request":
|
|
1993
|
-
case "cache":
|
|
1994
|
-
case "unstable-cache":
|
|
1995
|
-
return null;
|
|
1996
|
-
default:
|
|
1997
|
-
return D;
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
})(mt)), mt;
|
|
2001
|
-
}
|
|
2002
|
-
var Rt = {}, Le = { exports: {} }, U = {};
|
|
2003
|
-
/**
|
|
2004
|
-
* @license React
|
|
2005
|
-
* react.production.js
|
|
2006
|
-
*
|
|
2007
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2008
|
-
*
|
|
2009
|
-
* This source code is licensed under the MIT license found in the
|
|
2010
|
-
* LICENSE file in the root directory of this source tree.
|
|
2011
|
-
*/
|
|
2012
|
-
var gr;
|
|
2013
|
-
function fn() {
|
|
2014
|
-
if (gr) return U;
|
|
2015
|
-
gr = 1;
|
|
2016
|
-
var s = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), u = Symbol.for("react.context"), t = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.memo"), r = Symbol.for("react.lazy"), b = Symbol.for("react.activity"), w = Symbol.iterator;
|
|
2017
|
-
function k(n) {
|
|
2018
|
-
return n === null || typeof n != "object" ? null : (n = w && n[w] || n["@@iterator"], typeof n == "function" ? n : null);
|
|
2019
|
-
}
|
|
2020
|
-
var B = {
|
|
2021
|
-
isMounted: function() {
|
|
2022
|
-
return !1;
|
|
2023
|
-
},
|
|
2024
|
-
enqueueForceUpdate: function() {
|
|
2025
|
-
},
|
|
2026
|
-
enqueueReplaceState: function() {
|
|
2027
|
-
},
|
|
2028
|
-
enqueueSetState: function() {
|
|
2029
|
-
}
|
|
2030
|
-
}, D = Object.assign, p = {};
|
|
2031
|
-
function y(n, A, M) {
|
|
2032
|
-
this.props = n, this.context = A, this.refs = p, this.updater = M || B;
|
|
2033
|
-
}
|
|
2034
|
-
y.prototype.isReactComponent = {}, y.prototype.setState = function(n, A) {
|
|
2035
|
-
if (typeof n != "object" && typeof n != "function" && n != null)
|
|
2036
|
-
throw Error(
|
|
2037
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
2038
|
-
);
|
|
2039
|
-
this.updater.enqueueSetState(this, n, A, "setState");
|
|
2040
|
-
}, y.prototype.forceUpdate = function(n) {
|
|
2041
|
-
this.updater.enqueueForceUpdate(this, n, "forceUpdate");
|
|
2042
|
-
};
|
|
2043
|
-
function R() {
|
|
2044
|
-
}
|
|
2045
|
-
R.prototype = y.prototype;
|
|
2046
|
-
function v(n, A, M) {
|
|
2047
|
-
this.props = n, this.context = A, this.refs = p, this.updater = M || B;
|
|
2048
|
-
}
|
|
2049
|
-
var O = v.prototype = new R();
|
|
2050
|
-
O.constructor = v, D(O, y.prototype), O.isPureReactComponent = !0;
|
|
2051
|
-
var i = Array.isArray;
|
|
2052
|
-
function N() {
|
|
2053
|
-
}
|
|
2054
|
-
var h = { H: null, A: null, T: null, S: null }, P = Object.prototype.hasOwnProperty;
|
|
2055
|
-
function x(n, A, M) {
|
|
2056
|
-
var j = M.ref;
|
|
2057
|
-
return {
|
|
2058
|
-
$$typeof: s,
|
|
2059
|
-
type: n,
|
|
2060
|
-
key: A,
|
|
2061
|
-
ref: j !== void 0 ? j : null,
|
|
2062
|
-
props: M
|
|
2063
|
-
};
|
|
2064
|
-
}
|
|
2065
|
-
function Q(n, A) {
|
|
2066
|
-
return x(n.type, A, n.props);
|
|
2067
|
-
}
|
|
2068
|
-
function ae(n) {
|
|
2069
|
-
return typeof n == "object" && n !== null && n.$$typeof === s;
|
|
2070
|
-
}
|
|
2071
|
-
function X(n) {
|
|
2072
|
-
var A = { "=": "=0", ":": "=2" };
|
|
2073
|
-
return "$" + n.replace(/[=:]/g, function(M) {
|
|
2074
|
-
return A[M];
|
|
2075
|
-
});
|
|
2076
|
-
}
|
|
2077
|
-
var se = /\/+/g;
|
|
2078
|
-
function oe(n, A) {
|
|
2079
|
-
return typeof n == "object" && n !== null && n.key != null ? X("" + n.key) : A.toString(36);
|
|
2080
|
-
}
|
|
2081
|
-
function de(n) {
|
|
2082
|
-
switch (n.status) {
|
|
2083
|
-
case "fulfilled":
|
|
2084
|
-
return n.value;
|
|
2085
|
-
case "rejected":
|
|
2086
|
-
throw n.reason;
|
|
2087
|
-
default:
|
|
2088
|
-
switch (typeof n.status == "string" ? n.then(N, N) : (n.status = "pending", n.then(
|
|
2089
|
-
function(A) {
|
|
2090
|
-
n.status === "pending" && (n.status = "fulfilled", n.value = A);
|
|
2091
|
-
},
|
|
2092
|
-
function(A) {
|
|
2093
|
-
n.status === "pending" && (n.status = "rejected", n.reason = A);
|
|
2094
|
-
}
|
|
2095
|
-
)), n.status) {
|
|
2096
|
-
case "fulfilled":
|
|
2097
|
-
return n.value;
|
|
2098
|
-
case "rejected":
|
|
2099
|
-
throw n.reason;
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
throw n;
|
|
2103
|
-
}
|
|
2104
|
-
function ce(n, A, M, j, W) {
|
|
2105
|
-
var G = typeof n;
|
|
2106
|
-
(G === "undefined" || G === "boolean") && (n = null);
|
|
2107
|
-
var Y = !1;
|
|
2108
|
-
if (n === null) Y = !0;
|
|
2109
|
-
else
|
|
2110
|
-
switch (G) {
|
|
2111
|
-
case "bigint":
|
|
2112
|
-
case "string":
|
|
2113
|
-
case "number":
|
|
2114
|
-
Y = !0;
|
|
2115
|
-
break;
|
|
2116
|
-
case "object":
|
|
2117
|
-
switch (n.$$typeof) {
|
|
2118
|
-
case s:
|
|
2119
|
-
case o:
|
|
2120
|
-
Y = !0;
|
|
2121
|
-
break;
|
|
2122
|
-
case r:
|
|
2123
|
-
return Y = n._init, ce(
|
|
2124
|
-
Y(n._payload),
|
|
2125
|
-
A,
|
|
2126
|
-
M,
|
|
2127
|
-
j,
|
|
2128
|
-
W
|
|
2129
|
-
);
|
|
2130
|
-
}
|
|
2131
|
-
}
|
|
2132
|
-
if (Y)
|
|
2133
|
-
return W = W(n), Y = j === "" ? "." + oe(n, 0) : j, i(W) ? (M = "", Y != null && (M = Y.replace(se, "$&/") + "/"), ce(W, A, M, "", function(me) {
|
|
2134
|
-
return me;
|
|
2135
|
-
})) : W != null && (ae(W) && (W = Q(
|
|
2136
|
-
W,
|
|
2137
|
-
M + (W.key == null || n && n.key === W.key ? "" : ("" + W.key).replace(
|
|
2138
|
-
se,
|
|
2139
|
-
"$&/"
|
|
2140
|
-
) + "/") + Y
|
|
2141
|
-
)), A.push(W)), 1;
|
|
2142
|
-
Y = 0;
|
|
2143
|
-
var ue = j === "" ? "." : j + ":";
|
|
2144
|
-
if (i(n))
|
|
2145
|
-
for (var re = 0; re < n.length; re++)
|
|
2146
|
-
j = n[re], G = ue + oe(j, re), Y += ce(
|
|
2147
|
-
j,
|
|
2148
|
-
A,
|
|
2149
|
-
M,
|
|
2150
|
-
G,
|
|
2151
|
-
W
|
|
2152
|
-
);
|
|
2153
|
-
else if (re = k(n), typeof re == "function")
|
|
2154
|
-
for (n = re.call(n), re = 0; !(j = n.next()).done; )
|
|
2155
|
-
j = j.value, G = ue + oe(j, re++), Y += ce(
|
|
2156
|
-
j,
|
|
2157
|
-
A,
|
|
2158
|
-
M,
|
|
2159
|
-
G,
|
|
2160
|
-
W
|
|
2161
|
-
);
|
|
2162
|
-
else if (G === "object") {
|
|
2163
|
-
if (typeof n.then == "function")
|
|
2164
|
-
return ce(
|
|
2165
|
-
de(n),
|
|
2166
|
-
A,
|
|
2167
|
-
M,
|
|
2168
|
-
j,
|
|
2169
|
-
W
|
|
2170
|
-
);
|
|
2171
|
-
throw A = String(n), Error(
|
|
2172
|
-
"Objects are not valid as a React child (found: " + (A === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : A) + "). If you meant to render a collection of children, use an array instead."
|
|
2173
|
-
);
|
|
2174
|
-
}
|
|
2175
|
-
return Y;
|
|
2176
|
-
}
|
|
2177
|
-
function ie(n, A, M) {
|
|
2178
|
-
if (n == null) return n;
|
|
2179
|
-
var j = [], W = 0;
|
|
2180
|
-
return ce(n, j, "", "", function(G) {
|
|
2181
|
-
return A.call(M, G, W++);
|
|
2182
|
-
}), j;
|
|
2183
|
-
}
|
|
2184
|
-
function he(n) {
|
|
2185
|
-
if (n._status === -1) {
|
|
2186
|
-
var A = n._result;
|
|
2187
|
-
A = A(), A.then(
|
|
2188
|
-
function(M) {
|
|
2189
|
-
(n._status === 0 || n._status === -1) && (n._status = 1, n._result = M);
|
|
2190
|
-
},
|
|
2191
|
-
function(M) {
|
|
2192
|
-
(n._status === 0 || n._status === -1) && (n._status = 2, n._result = M);
|
|
2193
|
-
}
|
|
2194
|
-
), n._status === -1 && (n._status = 0, n._result = A);
|
|
2195
|
-
}
|
|
2196
|
-
if (n._status === 1) return n._result.default;
|
|
2197
|
-
throw n._result;
|
|
2198
|
-
}
|
|
2199
|
-
var Re = typeof reportError == "function" ? reportError : function(n) {
|
|
2200
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
2201
|
-
var A = new window.ErrorEvent("error", {
|
|
2202
|
-
bubbles: !0,
|
|
2203
|
-
cancelable: !0,
|
|
2204
|
-
message: typeof n == "object" && n !== null && typeof n.message == "string" ? String(n.message) : String(n),
|
|
2205
|
-
error: n
|
|
2206
|
-
});
|
|
2207
|
-
if (!window.dispatchEvent(A)) return;
|
|
2208
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
2209
|
-
process.emit("uncaughtException", n);
|
|
2210
|
-
return;
|
|
2211
|
-
}
|
|
2212
|
-
console.error(n);
|
|
2213
|
-
}, _e = {
|
|
2214
|
-
map: ie,
|
|
2215
|
-
forEach: function(n, A, M) {
|
|
2216
|
-
ie(
|
|
2217
|
-
n,
|
|
2218
|
-
function() {
|
|
2219
|
-
A.apply(this, arguments);
|
|
2220
|
-
},
|
|
2221
|
-
M
|
|
2222
|
-
);
|
|
2223
|
-
},
|
|
2224
|
-
count: function(n) {
|
|
2225
|
-
var A = 0;
|
|
2226
|
-
return ie(n, function() {
|
|
2227
|
-
A++;
|
|
2228
|
-
}), A;
|
|
2229
|
-
},
|
|
2230
|
-
toArray: function(n) {
|
|
2231
|
-
return ie(n, function(A) {
|
|
2232
|
-
return A;
|
|
2233
|
-
}) || [];
|
|
2234
|
-
},
|
|
2235
|
-
only: function(n) {
|
|
2236
|
-
if (!ae(n))
|
|
2237
|
-
throw Error(
|
|
2238
|
-
"React.Children.only expected to receive a single React element child."
|
|
2239
|
-
);
|
|
2240
|
-
return n;
|
|
2241
|
-
}
|
|
2242
|
-
};
|
|
2243
|
-
return U.Activity = b, U.Children = _e, U.Component = y, U.Fragment = g, U.Profiler = l, U.PureComponent = v, U.StrictMode = d, U.Suspense = _, U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = h, U.__COMPILER_RUNTIME = {
|
|
2244
|
-
__proto__: null,
|
|
2245
|
-
c: function(n) {
|
|
2246
|
-
return h.H.useMemoCache(n);
|
|
2247
|
-
}
|
|
2248
|
-
}, U.cache = function(n) {
|
|
2249
|
-
return function() {
|
|
2250
|
-
return n.apply(null, arguments);
|
|
2251
|
-
};
|
|
2252
|
-
}, U.cacheSignal = function() {
|
|
2253
|
-
return null;
|
|
2254
|
-
}, U.cloneElement = function(n, A, M) {
|
|
2255
|
-
if (n == null)
|
|
2256
|
-
throw Error(
|
|
2257
|
-
"The argument must be a React element, but you passed " + n + "."
|
|
2258
|
-
);
|
|
2259
|
-
var j = D({}, n.props), W = n.key;
|
|
2260
|
-
if (A != null)
|
|
2261
|
-
for (G in A.key !== void 0 && (W = "" + A.key), A)
|
|
2262
|
-
!P.call(A, G) || G === "key" || G === "__self" || G === "__source" || G === "ref" && A.ref === void 0 || (j[G] = A[G]);
|
|
2263
|
-
var G = arguments.length - 2;
|
|
2264
|
-
if (G === 1) j.children = M;
|
|
2265
|
-
else if (1 < G) {
|
|
2266
|
-
for (var Y = Array(G), ue = 0; ue < G; ue++)
|
|
2267
|
-
Y[ue] = arguments[ue + 2];
|
|
2268
|
-
j.children = Y;
|
|
2269
|
-
}
|
|
2270
|
-
return x(n.type, W, j);
|
|
2271
|
-
}, U.createContext = function(n) {
|
|
2272
|
-
return n = {
|
|
2273
|
-
$$typeof: u,
|
|
2274
|
-
_currentValue: n,
|
|
2275
|
-
_currentValue2: n,
|
|
2276
|
-
_threadCount: 0,
|
|
2277
|
-
Provider: null,
|
|
2278
|
-
Consumer: null
|
|
2279
|
-
}, n.Provider = n, n.Consumer = {
|
|
2280
|
-
$$typeof: E,
|
|
2281
|
-
_context: n
|
|
2282
|
-
}, n;
|
|
2283
|
-
}, U.createElement = function(n, A, M) {
|
|
2284
|
-
var j, W = {}, G = null;
|
|
2285
|
-
if (A != null)
|
|
2286
|
-
for (j in A.key !== void 0 && (G = "" + A.key), A)
|
|
2287
|
-
P.call(A, j) && j !== "key" && j !== "__self" && j !== "__source" && (W[j] = A[j]);
|
|
2288
|
-
var Y = arguments.length - 2;
|
|
2289
|
-
if (Y === 1) W.children = M;
|
|
2290
|
-
else if (1 < Y) {
|
|
2291
|
-
for (var ue = Array(Y), re = 0; re < Y; re++)
|
|
2292
|
-
ue[re] = arguments[re + 2];
|
|
2293
|
-
W.children = ue;
|
|
2294
|
-
}
|
|
2295
|
-
if (n && n.defaultProps)
|
|
2296
|
-
for (j in Y = n.defaultProps, Y)
|
|
2297
|
-
W[j] === void 0 && (W[j] = Y[j]);
|
|
2298
|
-
return x(n, G, W);
|
|
2299
|
-
}, U.createRef = function() {
|
|
2300
|
-
return { current: null };
|
|
2301
|
-
}, U.forwardRef = function(n) {
|
|
2302
|
-
return { $$typeof: t, render: n };
|
|
2303
|
-
}, U.isValidElement = ae, U.lazy = function(n) {
|
|
2304
|
-
return {
|
|
2305
|
-
$$typeof: r,
|
|
2306
|
-
_payload: { _status: -1, _result: n },
|
|
2307
|
-
_init: he
|
|
2308
|
-
};
|
|
2309
|
-
}, U.memo = function(n, A) {
|
|
2310
|
-
return {
|
|
2311
|
-
$$typeof: c,
|
|
2312
|
-
type: n,
|
|
2313
|
-
compare: A === void 0 ? null : A
|
|
2314
|
-
};
|
|
2315
|
-
}, U.startTransition = function(n) {
|
|
2316
|
-
var A = h.T, M = {};
|
|
2317
|
-
h.T = M;
|
|
2318
|
-
try {
|
|
2319
|
-
var j = n(), W = h.S;
|
|
2320
|
-
W !== null && W(M, j), typeof j == "object" && j !== null && typeof j.then == "function" && j.then(N, Re);
|
|
2321
|
-
} catch (G) {
|
|
2322
|
-
Re(G);
|
|
2323
|
-
} finally {
|
|
2324
|
-
A !== null && M.types !== null && (A.types = M.types), h.T = A;
|
|
2325
|
-
}
|
|
2326
|
-
}, U.unstable_useCacheRefresh = function() {
|
|
2327
|
-
return h.H.useCacheRefresh();
|
|
2328
|
-
}, U.use = function(n) {
|
|
2329
|
-
return h.H.use(n);
|
|
2330
|
-
}, U.useActionState = function(n, A, M) {
|
|
2331
|
-
return h.H.useActionState(n, A, M);
|
|
2332
|
-
}, U.useCallback = function(n, A) {
|
|
2333
|
-
return h.H.useCallback(n, A);
|
|
2334
|
-
}, U.useContext = function(n) {
|
|
2335
|
-
return h.H.useContext(n);
|
|
2336
|
-
}, U.useDebugValue = function() {
|
|
2337
|
-
}, U.useDeferredValue = function(n, A) {
|
|
2338
|
-
return h.H.useDeferredValue(n, A);
|
|
2339
|
-
}, U.useEffect = function(n, A) {
|
|
2340
|
-
return h.H.useEffect(n, A);
|
|
2341
|
-
}, U.useEffectEvent = function(n) {
|
|
2342
|
-
return h.H.useEffectEvent(n);
|
|
2343
|
-
}, U.useId = function() {
|
|
2344
|
-
return h.H.useId();
|
|
2345
|
-
}, U.useImperativeHandle = function(n, A, M) {
|
|
2346
|
-
return h.H.useImperativeHandle(n, A, M);
|
|
2347
|
-
}, U.useInsertionEffect = function(n, A) {
|
|
2348
|
-
return h.H.useInsertionEffect(n, A);
|
|
2349
|
-
}, U.useLayoutEffect = function(n, A) {
|
|
2350
|
-
return h.H.useLayoutEffect(n, A);
|
|
2351
|
-
}, U.useMemo = function(n, A) {
|
|
2352
|
-
return h.H.useMemo(n, A);
|
|
2353
|
-
}, U.useOptimistic = function(n, A) {
|
|
2354
|
-
return h.H.useOptimistic(n, A);
|
|
2355
|
-
}, U.useReducer = function(n, A, M) {
|
|
2356
|
-
return h.H.useReducer(n, A, M);
|
|
2357
|
-
}, U.useRef = function(n) {
|
|
2358
|
-
return h.H.useRef(n);
|
|
2359
|
-
}, U.useState = function(n) {
|
|
2360
|
-
return h.H.useState(n);
|
|
2361
|
-
}, U.useSyncExternalStore = function(n, A, M) {
|
|
2362
|
-
return h.H.useSyncExternalStore(
|
|
2363
|
-
n,
|
|
2364
|
-
A,
|
|
2365
|
-
M
|
|
2366
|
-
);
|
|
2367
|
-
}, U.useTransition = function() {
|
|
2368
|
-
return h.H.useTransition();
|
|
2369
|
-
}, U.version = "19.2.3", U;
|
|
2370
|
-
}
|
|
2371
|
-
var xe = { exports: {} };
|
|
2372
|
-
/**
|
|
2373
|
-
* @license React
|
|
2374
|
-
* react.development.js
|
|
2375
|
-
*
|
|
2376
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2377
|
-
*
|
|
2378
|
-
* This source code is licensed under the MIT license found in the
|
|
2379
|
-
* LICENSE file in the root directory of this source tree.
|
|
2380
|
-
*/
|
|
2381
|
-
xe.exports;
|
|
2382
|
-
var Er;
|
|
2383
|
-
function dn() {
|
|
2384
|
-
return Er || (Er = 1, (function(s, o) {
|
|
2385
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
2386
|
-
function g(e, a) {
|
|
2387
|
-
Object.defineProperty(E.prototype, e, {
|
|
2388
|
-
get: function() {
|
|
2389
|
-
console.warn(
|
|
2390
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
2391
|
-
a[0],
|
|
2392
|
-
a[1]
|
|
2393
|
-
);
|
|
2394
|
-
}
|
|
2395
|
-
});
|
|
2396
|
-
}
|
|
2397
|
-
function d(e) {
|
|
2398
|
-
return e === null || typeof e != "object" ? null : (e = Se && e[Se] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
2399
|
-
}
|
|
2400
|
-
function l(e, a) {
|
|
2401
|
-
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
2402
|
-
var S = e + "." + a;
|
|
2403
|
-
ge[S] || (console.error(
|
|
2404
|
-
"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.",
|
|
2405
|
-
a,
|
|
2406
|
-
e
|
|
2407
|
-
), ge[S] = !0);
|
|
2408
|
-
}
|
|
2409
|
-
function E(e, a, S) {
|
|
2410
|
-
this.props = e, this.context = a, this.refs = ye, this.updater = S || Pe;
|
|
2411
|
-
}
|
|
2412
|
-
function u() {
|
|
2413
|
-
}
|
|
2414
|
-
function t(e, a, S) {
|
|
2415
|
-
this.props = e, this.context = a, this.refs = ye, this.updater = S || Pe;
|
|
2416
|
-
}
|
|
2417
|
-
function _() {
|
|
2418
|
-
}
|
|
2419
|
-
function c(e) {
|
|
2420
|
-
return "" + e;
|
|
2421
|
-
}
|
|
2422
|
-
function r(e) {
|
|
2423
|
-
try {
|
|
2424
|
-
c(e);
|
|
2425
|
-
var a = !1;
|
|
2426
|
-
} catch {
|
|
2427
|
-
a = !0;
|
|
2428
|
-
}
|
|
2429
|
-
if (a) {
|
|
2430
|
-
a = console;
|
|
2431
|
-
var S = a.error, I = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
2432
|
-
return S.call(
|
|
2433
|
-
a,
|
|
2434
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2435
|
-
I
|
|
2436
|
-
), c(e);
|
|
2437
|
-
}
|
|
2438
|
-
}
|
|
2439
|
-
function b(e) {
|
|
2440
|
-
if (e == null) return null;
|
|
2441
|
-
if (typeof e == "function")
|
|
2442
|
-
return e.$$typeof === m ? null : e.displayName || e.name || null;
|
|
2443
|
-
if (typeof e == "string") return e;
|
|
2444
|
-
switch (e) {
|
|
2445
|
-
case n:
|
|
2446
|
-
return "Fragment";
|
|
2447
|
-
case M:
|
|
2448
|
-
return "Profiler";
|
|
2449
|
-
case A:
|
|
2450
|
-
return "StrictMode";
|
|
2451
|
-
case Y:
|
|
2452
|
-
return "Suspense";
|
|
2453
|
-
case ue:
|
|
2454
|
-
return "SuspenseList";
|
|
2455
|
-
case Te:
|
|
2456
|
-
return "Activity";
|
|
2457
|
-
}
|
|
2458
|
-
if (typeof e == "object")
|
|
2459
|
-
switch (typeof e.tag == "number" && console.error(
|
|
2460
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
2461
|
-
), e.$$typeof) {
|
|
2462
|
-
case _e:
|
|
2463
|
-
return "Portal";
|
|
2464
|
-
case W:
|
|
2465
|
-
return e.displayName || "Context";
|
|
2466
|
-
case j:
|
|
2467
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
2468
|
-
case G:
|
|
2469
|
-
var a = e.render;
|
|
2470
|
-
return e = e.displayName, e || (e = a.displayName || a.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
2471
|
-
case re:
|
|
2472
|
-
return a = e.displayName || null, a !== null ? a : b(e.type) || "Memo";
|
|
2473
|
-
case me:
|
|
2474
|
-
a = e._payload, e = e._init;
|
|
2475
|
-
try {
|
|
2476
|
-
return b(e(a));
|
|
2477
|
-
} catch {
|
|
2478
|
-
}
|
|
2479
|
-
}
|
|
2480
|
-
return null;
|
|
2481
|
-
}
|
|
2482
|
-
function w(e) {
|
|
2483
|
-
if (e === n) return "<>";
|
|
2484
|
-
if (typeof e == "object" && e !== null && e.$$typeof === me)
|
|
2485
|
-
return "<...>";
|
|
2486
|
-
try {
|
|
2487
|
-
var a = b(e);
|
|
2488
|
-
return a ? "<" + a + ">" : "<...>";
|
|
2489
|
-
} catch {
|
|
2490
|
-
return "<...>";
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
|
-
function k() {
|
|
2494
|
-
var e = f.A;
|
|
2495
|
-
return e === null ? null : e.getOwner();
|
|
2496
|
-
}
|
|
2497
|
-
function B() {
|
|
2498
|
-
return Error("react-stack-top-frame");
|
|
2499
|
-
}
|
|
2500
|
-
function D(e) {
|
|
2501
|
-
if (T.call(e, "key")) {
|
|
2502
|
-
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
2503
|
-
if (a && a.isReactWarning) return !1;
|
|
2504
|
-
}
|
|
2505
|
-
return e.key !== void 0;
|
|
2506
|
-
}
|
|
2507
|
-
function p(e, a) {
|
|
2508
|
-
function S() {
|
|
2509
|
-
ee || (ee = !0, console.error(
|
|
2510
|
-
"%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)",
|
|
2511
|
-
a
|
|
2512
|
-
));
|
|
2513
|
-
}
|
|
2514
|
-
S.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
2515
|
-
get: S,
|
|
2516
|
-
configurable: !0
|
|
2517
|
-
});
|
|
2518
|
-
}
|
|
2519
|
-
function y() {
|
|
2520
|
-
var e = b(this.type);
|
|
2521
|
-
return Ne[e] || (Ne[e] = !0, console.error(
|
|
2522
|
-
"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."
|
|
2523
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
2524
|
-
}
|
|
2525
|
-
function R(e, a, S, I, L, $) {
|
|
2526
|
-
var F = S.ref;
|
|
2527
|
-
return e = {
|
|
2528
|
-
$$typeof: Re,
|
|
2529
|
-
type: e,
|
|
2530
|
-
key: a,
|
|
2531
|
-
props: S,
|
|
2532
|
-
_owner: I
|
|
2533
|
-
}, (F !== void 0 ? F : null) !== null ? Object.defineProperty(e, "ref", {
|
|
2534
|
-
enumerable: !1,
|
|
2535
|
-
get: y
|
|
2536
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
2537
|
-
configurable: !1,
|
|
2538
|
-
enumerable: !1,
|
|
2539
|
-
writable: !0,
|
|
2540
|
-
value: 0
|
|
2541
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
2542
|
-
configurable: !1,
|
|
2543
|
-
enumerable: !1,
|
|
2544
|
-
writable: !0,
|
|
2545
|
-
value: null
|
|
2546
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
2547
|
-
configurable: !1,
|
|
2548
|
-
enumerable: !1,
|
|
2549
|
-
writable: !0,
|
|
2550
|
-
value: L
|
|
2551
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
2552
|
-
configurable: !1,
|
|
2553
|
-
enumerable: !1,
|
|
2554
|
-
writable: !0,
|
|
2555
|
-
value: $
|
|
2556
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
2557
|
-
}
|
|
2558
|
-
function v(e, a) {
|
|
2559
|
-
return a = R(
|
|
2560
|
-
e.type,
|
|
2561
|
-
a,
|
|
2562
|
-
e.props,
|
|
2563
|
-
e._owner,
|
|
2564
|
-
e._debugStack,
|
|
2565
|
-
e._debugTask
|
|
2566
|
-
), e._store && (a._store.validated = e._store.validated), a;
|
|
2567
|
-
}
|
|
2568
|
-
function O(e) {
|
|
2569
|
-
i(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === me && (e._payload.status === "fulfilled" ? i(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
2570
|
-
}
|
|
2571
|
-
function i(e) {
|
|
2572
|
-
return typeof e == "object" && e !== null && e.$$typeof === Re;
|
|
2573
|
-
}
|
|
2574
|
-
function N(e) {
|
|
2575
|
-
var a = { "=": "=0", ":": "=2" };
|
|
2576
|
-
return "$" + e.replace(/[=:]/g, function(S) {
|
|
2577
|
-
return a[S];
|
|
2578
|
-
});
|
|
2579
|
-
}
|
|
2580
|
-
function h(e, a) {
|
|
2581
|
-
return typeof e == "object" && e !== null && e.key != null ? (r(e.key), N("" + e.key)) : a.toString(36);
|
|
2582
|
-
}
|
|
2583
|
-
function P(e) {
|
|
2584
|
-
switch (e.status) {
|
|
2585
|
-
case "fulfilled":
|
|
2586
|
-
return e.value;
|
|
2587
|
-
case "rejected":
|
|
2588
|
-
throw e.reason;
|
|
2589
|
-
default:
|
|
2590
|
-
switch (typeof e.status == "string" ? e.then(_, _) : (e.status = "pending", e.then(
|
|
2591
|
-
function(a) {
|
|
2592
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = a);
|
|
2593
|
-
},
|
|
2594
|
-
function(a) {
|
|
2595
|
-
e.status === "pending" && (e.status = "rejected", e.reason = a);
|
|
2596
|
-
}
|
|
2597
|
-
)), e.status) {
|
|
2598
|
-
case "fulfilled":
|
|
2599
|
-
return e.value;
|
|
2600
|
-
case "rejected":
|
|
2601
|
-
throw e.reason;
|
|
2602
|
-
}
|
|
2603
|
-
}
|
|
2604
|
-
throw e;
|
|
2605
|
-
}
|
|
2606
|
-
function x(e, a, S, I, L) {
|
|
2607
|
-
var $ = typeof e;
|
|
2608
|
-
($ === "undefined" || $ === "boolean") && (e = null);
|
|
2609
|
-
var F = !1;
|
|
2610
|
-
if (e === null) F = !0;
|
|
2611
|
-
else
|
|
2612
|
-
switch ($) {
|
|
2613
|
-
case "bigint":
|
|
2614
|
-
case "string":
|
|
2615
|
-
case "number":
|
|
2616
|
-
F = !0;
|
|
2617
|
-
break;
|
|
2618
|
-
case "object":
|
|
2619
|
-
switch (e.$$typeof) {
|
|
2620
|
-
case Re:
|
|
2621
|
-
case _e:
|
|
2622
|
-
F = !0;
|
|
2623
|
-
break;
|
|
2624
|
-
case me:
|
|
2625
|
-
return F = e._init, x(
|
|
2626
|
-
F(e._payload),
|
|
2627
|
-
a,
|
|
2628
|
-
S,
|
|
2629
|
-
I,
|
|
2630
|
-
L
|
|
2631
|
-
);
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
if (F) {
|
|
2635
|
-
F = e, L = L(F);
|
|
2636
|
-
var ne = I === "" ? "." + h(F, 0) : I;
|
|
2637
|
-
return ve(L) ? (S = "", ne != null && (S = ne.replace(z, "$&/") + "/"), x(L, a, S, "", function(Oe) {
|
|
2638
|
-
return Oe;
|
|
2639
|
-
})) : L != null && (i(L) && (L.key != null && (F && F.key === L.key || r(L.key)), S = v(
|
|
2640
|
-
L,
|
|
2641
|
-
S + (L.key == null || F && F.key === L.key ? "" : ("" + L.key).replace(
|
|
2642
|
-
z,
|
|
2643
|
-
"$&/"
|
|
2644
|
-
) + "/") + ne
|
|
2645
|
-
), I !== "" && F != null && i(F) && F.key == null && F._store && !F._store.validated && (S._store.validated = 2), L = S), a.push(L)), 1;
|
|
2646
|
-
}
|
|
2647
|
-
if (F = 0, ne = I === "" ? "." : I + ":", ve(e))
|
|
2648
|
-
for (var K = 0; K < e.length; K++)
|
|
2649
|
-
I = e[K], $ = ne + h(I, K), F += x(
|
|
2650
|
-
I,
|
|
2651
|
-
a,
|
|
2652
|
-
S,
|
|
2653
|
-
$,
|
|
2654
|
-
L
|
|
2655
|
-
);
|
|
2656
|
-
else if (K = d(e), typeof K == "function")
|
|
2657
|
-
for (K === e.entries && (Ce || console.warn(
|
|
2658
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
2659
|
-
), Ce = !0), e = K.call(e), K = 0; !(I = e.next()).done; )
|
|
2660
|
-
I = I.value, $ = ne + h(I, K++), F += x(
|
|
2661
|
-
I,
|
|
2662
|
-
a,
|
|
2663
|
-
S,
|
|
2664
|
-
$,
|
|
2665
|
-
L
|
|
2666
|
-
);
|
|
2667
|
-
else if ($ === "object") {
|
|
2668
|
-
if (typeof e.then == "function")
|
|
2669
|
-
return x(
|
|
2670
|
-
P(e),
|
|
2671
|
-
a,
|
|
2672
|
-
S,
|
|
2673
|
-
I,
|
|
2674
|
-
L
|
|
2675
|
-
);
|
|
2676
|
-
throw a = String(e), Error(
|
|
2677
|
-
"Objects are not valid as a React child (found: " + (a === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : a) + "). If you meant to render a collection of children, use an array instead."
|
|
2678
|
-
);
|
|
2679
|
-
}
|
|
2680
|
-
return F;
|
|
2681
|
-
}
|
|
2682
|
-
function Q(e, a, S) {
|
|
2683
|
-
if (e == null) return e;
|
|
2684
|
-
var I = [], L = 0;
|
|
2685
|
-
return x(e, I, "", "", function($) {
|
|
2686
|
-
return a.call(S, $, L++);
|
|
2687
|
-
}), I;
|
|
2688
|
-
}
|
|
2689
|
-
function ae(e) {
|
|
2690
|
-
if (e._status === -1) {
|
|
2691
|
-
var a = e._ioInfo;
|
|
2692
|
-
a != null && (a.start = a.end = performance.now()), a = e._result;
|
|
2693
|
-
var S = a();
|
|
2694
|
-
if (S.then(
|
|
2695
|
-
function(L) {
|
|
2696
|
-
if (e._status === 0 || e._status === -1) {
|
|
2697
|
-
e._status = 1, e._result = L;
|
|
2698
|
-
var $ = e._ioInfo;
|
|
2699
|
-
$ != null && ($.end = performance.now()), S.status === void 0 && (S.status = "fulfilled", S.value = L);
|
|
2700
|
-
}
|
|
2701
|
-
},
|
|
2702
|
-
function(L) {
|
|
2703
|
-
if (e._status === 0 || e._status === -1) {
|
|
2704
|
-
e._status = 2, e._result = L;
|
|
2705
|
-
var $ = e._ioInfo;
|
|
2706
|
-
$ != null && ($.end = performance.now()), S.status === void 0 && (S.status = "rejected", S.reason = L);
|
|
2707
|
-
}
|
|
2708
|
-
}
|
|
2709
|
-
), a = e._ioInfo, a != null) {
|
|
2710
|
-
a.value = S;
|
|
2711
|
-
var I = S.displayName;
|
|
2712
|
-
typeof I == "string" && (a.name = I);
|
|
2713
|
-
}
|
|
2714
|
-
e._status === -1 && (e._status = 0, e._result = S);
|
|
2715
|
-
}
|
|
2716
|
-
if (e._status === 1)
|
|
2717
|
-
return a = e._result, a === void 0 && console.error(
|
|
2718
|
-
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2719
|
-
|
|
2720
|
-
Your code should look like:
|
|
2721
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
2722
|
-
|
|
2723
|
-
Did you accidentally put curly braces around the import?`,
|
|
2724
|
-
a
|
|
2725
|
-
), "default" in a || console.error(
|
|
2726
|
-
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2727
|
-
|
|
2728
|
-
Your code should look like:
|
|
2729
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
2730
|
-
a
|
|
2731
|
-
), a.default;
|
|
2732
|
-
throw e._result;
|
|
2733
|
-
}
|
|
2734
|
-
function X() {
|
|
2735
|
-
var e = f.H;
|
|
2736
|
-
return e === null && console.error(
|
|
2737
|
-
`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:
|
|
2738
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2739
|
-
2. You might be breaking the Rules of Hooks
|
|
2740
|
-
3. You might have more than one copy of React in the same app
|
|
2741
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
2742
|
-
), e;
|
|
2743
|
-
}
|
|
2744
|
-
function se() {
|
|
2745
|
-
f.asyncTransitions--;
|
|
2746
|
-
}
|
|
2747
|
-
function oe(e) {
|
|
2748
|
-
if (te === null)
|
|
2749
|
-
try {
|
|
2750
|
-
var a = ("require" + Math.random()).slice(0, 7);
|
|
2751
|
-
te = (s && s[a]).call(
|
|
2752
|
-
s,
|
|
2753
|
-
"timers"
|
|
2754
|
-
).setImmediate;
|
|
2755
|
-
} catch {
|
|
2756
|
-
te = function(I) {
|
|
2757
|
-
q === !1 && (q = !0, typeof MessageChannel > "u" && console.error(
|
|
2758
|
-
"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."
|
|
2759
|
-
));
|
|
2760
|
-
var L = new MessageChannel();
|
|
2761
|
-
L.port1.onmessage = I, L.port2.postMessage(void 0);
|
|
2762
|
-
};
|
|
2763
|
-
}
|
|
2764
|
-
return te(e);
|
|
2765
|
-
}
|
|
2766
|
-
function de(e) {
|
|
2767
|
-
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
2768
|
-
}
|
|
2769
|
-
function ce(e, a) {
|
|
2770
|
-
a !== be - 1 && console.error(
|
|
2771
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
2772
|
-
), be = a;
|
|
2773
|
-
}
|
|
2774
|
-
function ie(e, a, S) {
|
|
2775
|
-
var I = f.actQueue;
|
|
2776
|
-
if (I !== null)
|
|
2777
|
-
if (I.length !== 0)
|
|
2778
|
-
try {
|
|
2779
|
-
he(I), oe(function() {
|
|
2780
|
-
return ie(e, a, S);
|
|
2781
|
-
});
|
|
2782
|
-
return;
|
|
2783
|
-
} catch (L) {
|
|
2784
|
-
f.thrownErrors.push(L);
|
|
2785
|
-
}
|
|
2786
|
-
else f.actQueue = null;
|
|
2787
|
-
0 < f.thrownErrors.length ? (I = de(f.thrownErrors), f.thrownErrors.length = 0, S(I)) : a(e);
|
|
2788
|
-
}
|
|
2789
|
-
function he(e) {
|
|
2790
|
-
if (!V) {
|
|
2791
|
-
V = !0;
|
|
2792
|
-
var a = 0;
|
|
2793
|
-
try {
|
|
2794
|
-
for (; a < e.length; a++) {
|
|
2795
|
-
var S = e[a];
|
|
2796
|
-
do {
|
|
2797
|
-
f.didUsePromise = !1;
|
|
2798
|
-
var I = S(!1);
|
|
2799
|
-
if (I !== null) {
|
|
2800
|
-
if (f.didUsePromise) {
|
|
2801
|
-
e[a] = S, e.splice(0, a);
|
|
2802
|
-
return;
|
|
2803
|
-
}
|
|
2804
|
-
S = I;
|
|
2805
|
-
} else break;
|
|
2806
|
-
} while (!0);
|
|
2807
|
-
}
|
|
2808
|
-
e.length = 0;
|
|
2809
|
-
} catch (L) {
|
|
2810
|
-
e.splice(0, a + 1), f.thrownErrors.push(L);
|
|
2811
|
-
} finally {
|
|
2812
|
-
V = !1;
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
}
|
|
2816
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2817
|
-
var Re = Symbol.for("react.transitional.element"), _e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), W = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), ue = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), me = Symbol.for("react.lazy"), Te = Symbol.for("react.activity"), Se = Symbol.iterator, ge = {}, Pe = {
|
|
2818
|
-
isMounted: function() {
|
|
2819
|
-
return !1;
|
|
2820
|
-
},
|
|
2821
|
-
enqueueForceUpdate: function(e) {
|
|
2822
|
-
l(e, "forceUpdate");
|
|
2823
|
-
},
|
|
2824
|
-
enqueueReplaceState: function(e) {
|
|
2825
|
-
l(e, "replaceState");
|
|
2826
|
-
},
|
|
2827
|
-
enqueueSetState: function(e) {
|
|
2828
|
-
l(e, "setState");
|
|
2829
|
-
}
|
|
2830
|
-
}, Ae = Object.assign, ye = {};
|
|
2831
|
-
Object.freeze(ye), E.prototype.isReactComponent = {}, E.prototype.setState = function(e, a) {
|
|
2832
|
-
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
2833
|
-
throw Error(
|
|
2834
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
2835
|
-
);
|
|
2836
|
-
this.updater.enqueueSetState(this, e, a, "setState");
|
|
2837
|
-
}, E.prototype.forceUpdate = function(e) {
|
|
2838
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
2839
|
-
};
|
|
2840
|
-
var le = {
|
|
2841
|
-
isMounted: [
|
|
2842
|
-
"isMounted",
|
|
2843
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
2844
|
-
],
|
|
2845
|
-
replaceState: [
|
|
2846
|
-
"replaceState",
|
|
2847
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
2848
|
-
]
|
|
2849
|
-
};
|
|
2850
|
-
for (pe in le)
|
|
2851
|
-
le.hasOwnProperty(pe) && g(pe, le[pe]);
|
|
2852
|
-
u.prototype = E.prototype, le = t.prototype = new u(), le.constructor = t, Ae(le, E.prototype), le.isPureReactComponent = !0;
|
|
2853
|
-
var ve = Array.isArray, m = Symbol.for("react.client.reference"), f = {
|
|
2854
|
-
H: null,
|
|
2855
|
-
A: null,
|
|
2856
|
-
T: null,
|
|
2857
|
-
S: null,
|
|
2858
|
-
actQueue: null,
|
|
2859
|
-
asyncTransitions: 0,
|
|
2860
|
-
isBatchingLegacy: !1,
|
|
2861
|
-
didScheduleLegacyUpdate: !1,
|
|
2862
|
-
didUsePromise: !1,
|
|
2863
|
-
thrownErrors: [],
|
|
2864
|
-
getCurrentStack: null,
|
|
2865
|
-
recentlyCreatedOwnerStacks: 0
|
|
2866
|
-
}, T = Object.prototype.hasOwnProperty, C = console.createTask ? console.createTask : function() {
|
|
2867
|
-
return null;
|
|
2868
|
-
};
|
|
2869
|
-
le = {
|
|
2870
|
-
react_stack_bottom_frame: function(e) {
|
|
2871
|
-
return e();
|
|
2872
|
-
}
|
|
2873
|
-
};
|
|
2874
|
-
var ee, Z, Ne = {}, fe = le.react_stack_bottom_frame.bind(
|
|
2875
|
-
le,
|
|
2876
|
-
B
|
|
2877
|
-
)(), we = C(w(B)), Ce = !1, z = /\/+/g, J = typeof reportError == "function" ? reportError : function(e) {
|
|
2878
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
2879
|
-
var a = new window.ErrorEvent("error", {
|
|
2880
|
-
bubbles: !0,
|
|
2881
|
-
cancelable: !0,
|
|
2882
|
-
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
2883
|
-
error: e
|
|
2884
|
-
});
|
|
2885
|
-
if (!window.dispatchEvent(a)) return;
|
|
2886
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
2887
|
-
process.emit("uncaughtException", e);
|
|
2888
|
-
return;
|
|
2889
|
-
}
|
|
2890
|
-
console.error(e);
|
|
2891
|
-
}, q = !1, te = null, be = 0, Ee = !1, V = !1, H = typeof queueMicrotask == "function" ? function(e) {
|
|
2892
|
-
queueMicrotask(function() {
|
|
2893
|
-
return queueMicrotask(e);
|
|
2894
|
-
});
|
|
2895
|
-
} : oe;
|
|
2896
|
-
le = Object.freeze({
|
|
2897
|
-
__proto__: null,
|
|
2898
|
-
c: function(e) {
|
|
2899
|
-
return X().useMemoCache(e);
|
|
2900
|
-
}
|
|
2901
|
-
});
|
|
2902
|
-
var pe = {
|
|
2903
|
-
map: Q,
|
|
2904
|
-
forEach: function(e, a, S) {
|
|
2905
|
-
Q(
|
|
2906
|
-
e,
|
|
2907
|
-
function() {
|
|
2908
|
-
a.apply(this, arguments);
|
|
2909
|
-
},
|
|
2910
|
-
S
|
|
2911
|
-
);
|
|
2912
|
-
},
|
|
2913
|
-
count: function(e) {
|
|
2914
|
-
var a = 0;
|
|
2915
|
-
return Q(e, function() {
|
|
2916
|
-
a++;
|
|
2917
|
-
}), a;
|
|
2918
|
-
},
|
|
2919
|
-
toArray: function(e) {
|
|
2920
|
-
return Q(e, function(a) {
|
|
2921
|
-
return a;
|
|
2922
|
-
}) || [];
|
|
2923
|
-
},
|
|
2924
|
-
only: function(e) {
|
|
2925
|
-
if (!i(e))
|
|
2926
|
-
throw Error(
|
|
2927
|
-
"React.Children.only expected to receive a single React element child."
|
|
2928
|
-
);
|
|
2929
|
-
return e;
|
|
2930
|
-
}
|
|
2931
|
-
};
|
|
2932
|
-
o.Activity = Te, o.Children = pe, o.Component = E, o.Fragment = n, o.Profiler = M, o.PureComponent = t, o.StrictMode = A, o.Suspense = Y, o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = f, o.__COMPILER_RUNTIME = le, o.act = function(e) {
|
|
2933
|
-
var a = f.actQueue, S = be;
|
|
2934
|
-
be++;
|
|
2935
|
-
var I = f.actQueue = a !== null ? a : [], L = !1;
|
|
2936
|
-
try {
|
|
2937
|
-
var $ = e();
|
|
2938
|
-
} catch (K) {
|
|
2939
|
-
f.thrownErrors.push(K);
|
|
2940
|
-
}
|
|
2941
|
-
if (0 < f.thrownErrors.length)
|
|
2942
|
-
throw ce(a, S), e = de(f.thrownErrors), f.thrownErrors.length = 0, e;
|
|
2943
|
-
if ($ !== null && typeof $ == "object" && typeof $.then == "function") {
|
|
2944
|
-
var F = $;
|
|
2945
|
-
return H(function() {
|
|
2946
|
-
L || Ee || (Ee = !0, console.error(
|
|
2947
|
-
"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 () => ...);"
|
|
2948
|
-
));
|
|
2949
|
-
}), {
|
|
2950
|
-
then: function(K, Oe) {
|
|
2951
|
-
L = !0, F.then(
|
|
2952
|
-
function(Ie) {
|
|
2953
|
-
if (ce(a, S), S === 0) {
|
|
2954
|
-
try {
|
|
2955
|
-
he(I), oe(function() {
|
|
2956
|
-
return ie(
|
|
2957
|
-
Ie,
|
|
2958
|
-
K,
|
|
2959
|
-
Oe
|
|
2960
|
-
);
|
|
2961
|
-
});
|
|
2962
|
-
} catch (Ur) {
|
|
2963
|
-
f.thrownErrors.push(Ur);
|
|
2964
|
-
}
|
|
2965
|
-
if (0 < f.thrownErrors.length) {
|
|
2966
|
-
var qr = de(
|
|
2967
|
-
f.thrownErrors
|
|
2968
|
-
);
|
|
2969
|
-
f.thrownErrors.length = 0, Oe(qr);
|
|
2970
|
-
}
|
|
2971
|
-
} else K(Ie);
|
|
2972
|
-
},
|
|
2973
|
-
function(Ie) {
|
|
2974
|
-
ce(a, S), 0 < f.thrownErrors.length && (Ie = de(
|
|
2975
|
-
f.thrownErrors
|
|
2976
|
-
), f.thrownErrors.length = 0), Oe(Ie);
|
|
2977
|
-
}
|
|
2978
|
-
);
|
|
2979
|
-
}
|
|
2980
|
-
};
|
|
2981
|
-
}
|
|
2982
|
-
var ne = $;
|
|
2983
|
-
if (ce(a, S), S === 0 && (he(I), I.length !== 0 && H(function() {
|
|
2984
|
-
L || Ee || (Ee = !0, console.error(
|
|
2985
|
-
"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(() => ...)"
|
|
2986
|
-
));
|
|
2987
|
-
}), f.actQueue = null), 0 < f.thrownErrors.length)
|
|
2988
|
-
throw e = de(f.thrownErrors), f.thrownErrors.length = 0, e;
|
|
2989
|
-
return {
|
|
2990
|
-
then: function(K, Oe) {
|
|
2991
|
-
L = !0, S === 0 ? (f.actQueue = I, oe(function() {
|
|
2992
|
-
return ie(
|
|
2993
|
-
ne,
|
|
2994
|
-
K,
|
|
2995
|
-
Oe
|
|
2996
|
-
);
|
|
2997
|
-
})) : K(ne);
|
|
2998
|
-
}
|
|
2999
|
-
};
|
|
3000
|
-
}, o.cache = function(e) {
|
|
3001
|
-
return function() {
|
|
3002
|
-
return e.apply(null, arguments);
|
|
3003
|
-
};
|
|
3004
|
-
}, o.cacheSignal = function() {
|
|
3005
|
-
return null;
|
|
3006
|
-
}, o.captureOwnerStack = function() {
|
|
3007
|
-
var e = f.getCurrentStack;
|
|
3008
|
-
return e === null ? null : e();
|
|
3009
|
-
}, o.cloneElement = function(e, a, S) {
|
|
3010
|
-
if (e == null)
|
|
3011
|
-
throw Error(
|
|
3012
|
-
"The argument must be a React element, but you passed " + e + "."
|
|
3013
|
-
);
|
|
3014
|
-
var I = Ae({}, e.props), L = e.key, $ = e._owner;
|
|
3015
|
-
if (a != null) {
|
|
3016
|
-
var F;
|
|
3017
|
-
e: {
|
|
3018
|
-
if (T.call(a, "ref") && (F = Object.getOwnPropertyDescriptor(
|
|
3019
|
-
a,
|
|
3020
|
-
"ref"
|
|
3021
|
-
).get) && F.isReactWarning) {
|
|
3022
|
-
F = !1;
|
|
3023
|
-
break e;
|
|
3024
|
-
}
|
|
3025
|
-
F = a.ref !== void 0;
|
|
3026
|
-
}
|
|
3027
|
-
F && ($ = k()), D(a) && (r(a.key), L = "" + a.key);
|
|
3028
|
-
for (ne in a)
|
|
3029
|
-
!T.call(a, ne) || ne === "key" || ne === "__self" || ne === "__source" || ne === "ref" && a.ref === void 0 || (I[ne] = a[ne]);
|
|
3030
|
-
}
|
|
3031
|
-
var ne = arguments.length - 2;
|
|
3032
|
-
if (ne === 1) I.children = S;
|
|
3033
|
-
else if (1 < ne) {
|
|
3034
|
-
F = Array(ne);
|
|
3035
|
-
for (var K = 0; K < ne; K++)
|
|
3036
|
-
F[K] = arguments[K + 2];
|
|
3037
|
-
I.children = F;
|
|
3038
|
-
}
|
|
3039
|
-
for (I = R(
|
|
3040
|
-
e.type,
|
|
3041
|
-
L,
|
|
3042
|
-
I,
|
|
3043
|
-
$,
|
|
3044
|
-
e._debugStack,
|
|
3045
|
-
e._debugTask
|
|
3046
|
-
), L = 2; L < arguments.length; L++)
|
|
3047
|
-
O(arguments[L]);
|
|
3048
|
-
return I;
|
|
3049
|
-
}, o.createContext = function(e) {
|
|
3050
|
-
return e = {
|
|
3051
|
-
$$typeof: W,
|
|
3052
|
-
_currentValue: e,
|
|
3053
|
-
_currentValue2: e,
|
|
3054
|
-
_threadCount: 0,
|
|
3055
|
-
Provider: null,
|
|
3056
|
-
Consumer: null
|
|
3057
|
-
}, e.Provider = e, e.Consumer = {
|
|
3058
|
-
$$typeof: j,
|
|
3059
|
-
_context: e
|
|
3060
|
-
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
3061
|
-
}, o.createElement = function(e, a, S) {
|
|
3062
|
-
for (var I = 2; I < arguments.length; I++)
|
|
3063
|
-
O(arguments[I]);
|
|
3064
|
-
I = {};
|
|
3065
|
-
var L = null;
|
|
3066
|
-
if (a != null)
|
|
3067
|
-
for (K in Z || !("__self" in a) || "key" in a || (Z = !0, console.warn(
|
|
3068
|
-
"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"
|
|
3069
|
-
)), D(a) && (r(a.key), L = "" + a.key), a)
|
|
3070
|
-
T.call(a, K) && K !== "key" && K !== "__self" && K !== "__source" && (I[K] = a[K]);
|
|
3071
|
-
var $ = arguments.length - 2;
|
|
3072
|
-
if ($ === 1) I.children = S;
|
|
3073
|
-
else if (1 < $) {
|
|
3074
|
-
for (var F = Array($), ne = 0; ne < $; ne++)
|
|
3075
|
-
F[ne] = arguments[ne + 2];
|
|
3076
|
-
Object.freeze && Object.freeze(F), I.children = F;
|
|
3077
|
-
}
|
|
3078
|
-
if (e && e.defaultProps)
|
|
3079
|
-
for (K in $ = e.defaultProps, $)
|
|
3080
|
-
I[K] === void 0 && (I[K] = $[K]);
|
|
3081
|
-
L && p(
|
|
3082
|
-
I,
|
|
3083
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
3084
|
-
);
|
|
3085
|
-
var K = 1e4 > f.recentlyCreatedOwnerStacks++;
|
|
3086
|
-
return R(
|
|
3087
|
-
e,
|
|
3088
|
-
L,
|
|
3089
|
-
I,
|
|
3090
|
-
k(),
|
|
3091
|
-
K ? Error("react-stack-top-frame") : fe,
|
|
3092
|
-
K ? C(w(e)) : we
|
|
3093
|
-
);
|
|
3094
|
-
}, o.createRef = function() {
|
|
3095
|
-
var e = { current: null };
|
|
3096
|
-
return Object.seal(e), e;
|
|
3097
|
-
}, o.forwardRef = function(e) {
|
|
3098
|
-
e != null && e.$$typeof === re ? console.error(
|
|
3099
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
3100
|
-
) : typeof e != "function" ? console.error(
|
|
3101
|
-
"forwardRef requires a render function but was given %s.",
|
|
3102
|
-
e === null ? "null" : typeof e
|
|
3103
|
-
) : e.length !== 0 && e.length !== 2 && console.error(
|
|
3104
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
3105
|
-
e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
3106
|
-
), e != null && e.defaultProps != null && console.error(
|
|
3107
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
3108
|
-
);
|
|
3109
|
-
var a = { $$typeof: G, render: e }, S;
|
|
3110
|
-
return Object.defineProperty(a, "displayName", {
|
|
3111
|
-
enumerable: !1,
|
|
3112
|
-
configurable: !0,
|
|
3113
|
-
get: function() {
|
|
3114
|
-
return S;
|
|
3115
|
-
},
|
|
3116
|
-
set: function(I) {
|
|
3117
|
-
S = I, e.name || e.displayName || (Object.defineProperty(e, "name", { value: I }), e.displayName = I);
|
|
3118
|
-
}
|
|
3119
|
-
}), a;
|
|
3120
|
-
}, o.isValidElement = i, o.lazy = function(e) {
|
|
3121
|
-
e = { _status: -1, _result: e };
|
|
3122
|
-
var a = {
|
|
3123
|
-
$$typeof: me,
|
|
3124
|
-
_payload: e,
|
|
3125
|
-
_init: ae
|
|
3126
|
-
}, S = {
|
|
3127
|
-
name: "lazy",
|
|
3128
|
-
start: -1,
|
|
3129
|
-
end: -1,
|
|
3130
|
-
value: null,
|
|
3131
|
-
owner: null,
|
|
3132
|
-
debugStack: Error("react-stack-top-frame"),
|
|
3133
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
3134
|
-
};
|
|
3135
|
-
return e._ioInfo = S, a._debugInfo = [{ awaited: S }], a;
|
|
3136
|
-
}, o.memo = function(e, a) {
|
|
3137
|
-
e == null && console.error(
|
|
3138
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
3139
|
-
e === null ? "null" : typeof e
|
|
3140
|
-
), a = {
|
|
3141
|
-
$$typeof: re,
|
|
3142
|
-
type: e,
|
|
3143
|
-
compare: a === void 0 ? null : a
|
|
3144
|
-
};
|
|
3145
|
-
var S;
|
|
3146
|
-
return Object.defineProperty(a, "displayName", {
|
|
3147
|
-
enumerable: !1,
|
|
3148
|
-
configurable: !0,
|
|
3149
|
-
get: function() {
|
|
3150
|
-
return S;
|
|
3151
|
-
},
|
|
3152
|
-
set: function(I) {
|
|
3153
|
-
S = I, e.name || e.displayName || (Object.defineProperty(e, "name", { value: I }), e.displayName = I);
|
|
3154
|
-
}
|
|
3155
|
-
}), a;
|
|
3156
|
-
}, o.startTransition = function(e) {
|
|
3157
|
-
var a = f.T, S = {};
|
|
3158
|
-
S._updatedFibers = /* @__PURE__ */ new Set(), f.T = S;
|
|
3159
|
-
try {
|
|
3160
|
-
var I = e(), L = f.S;
|
|
3161
|
-
L !== null && L(S, I), typeof I == "object" && I !== null && typeof I.then == "function" && (f.asyncTransitions++, I.then(se, se), I.then(_, J));
|
|
3162
|
-
} catch ($) {
|
|
3163
|
-
J($);
|
|
3164
|
-
} finally {
|
|
3165
|
-
a === null && S._updatedFibers && (e = S._updatedFibers.size, S._updatedFibers.clear(), 10 < e && console.warn(
|
|
3166
|
-
"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."
|
|
3167
|
-
)), a !== null && S.types !== null && (a.types !== null && a.types !== S.types && console.error(
|
|
3168
|
-
"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."
|
|
3169
|
-
), a.types = S.types), f.T = a;
|
|
3170
|
-
}
|
|
3171
|
-
}, o.unstable_useCacheRefresh = function() {
|
|
3172
|
-
return X().useCacheRefresh();
|
|
3173
|
-
}, o.use = function(e) {
|
|
3174
|
-
return X().use(e);
|
|
3175
|
-
}, o.useActionState = function(e, a, S) {
|
|
3176
|
-
return X().useActionState(
|
|
3177
|
-
e,
|
|
3178
|
-
a,
|
|
3179
|
-
S
|
|
3180
|
-
);
|
|
3181
|
-
}, o.useCallback = function(e, a) {
|
|
3182
|
-
return X().useCallback(e, a);
|
|
3183
|
-
}, o.useContext = function(e) {
|
|
3184
|
-
var a = X();
|
|
3185
|
-
return e.$$typeof === j && console.error(
|
|
3186
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
3187
|
-
), a.useContext(e);
|
|
3188
|
-
}, o.useDebugValue = function(e, a) {
|
|
3189
|
-
return X().useDebugValue(e, a);
|
|
3190
|
-
}, o.useDeferredValue = function(e, a) {
|
|
3191
|
-
return X().useDeferredValue(e, a);
|
|
3192
|
-
}, o.useEffect = function(e, a) {
|
|
3193
|
-
return e == null && console.warn(
|
|
3194
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3195
|
-
), X().useEffect(e, a);
|
|
3196
|
-
}, o.useEffectEvent = function(e) {
|
|
3197
|
-
return X().useEffectEvent(e);
|
|
3198
|
-
}, o.useId = function() {
|
|
3199
|
-
return X().useId();
|
|
3200
|
-
}, o.useImperativeHandle = function(e, a, S) {
|
|
3201
|
-
return X().useImperativeHandle(e, a, S);
|
|
3202
|
-
}, o.useInsertionEffect = function(e, a) {
|
|
3203
|
-
return e == null && console.warn(
|
|
3204
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3205
|
-
), X().useInsertionEffect(e, a);
|
|
3206
|
-
}, o.useLayoutEffect = function(e, a) {
|
|
3207
|
-
return e == null && console.warn(
|
|
3208
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3209
|
-
), X().useLayoutEffect(e, a);
|
|
3210
|
-
}, o.useMemo = function(e, a) {
|
|
3211
|
-
return X().useMemo(e, a);
|
|
3212
|
-
}, o.useOptimistic = function(e, a) {
|
|
3213
|
-
return X().useOptimistic(e, a);
|
|
3214
|
-
}, o.useReducer = function(e, a, S) {
|
|
3215
|
-
return X().useReducer(e, a, S);
|
|
3216
|
-
}, o.useRef = function(e) {
|
|
3217
|
-
return X().useRef(e);
|
|
3218
|
-
}, o.useState = function(e) {
|
|
3219
|
-
return X().useState(e);
|
|
3220
|
-
}, o.useSyncExternalStore = function(e, a, S) {
|
|
3221
|
-
return X().useSyncExternalStore(
|
|
3222
|
-
e,
|
|
3223
|
-
a,
|
|
3224
|
-
S
|
|
3225
|
-
);
|
|
3226
|
-
}, o.useTransition = function() {
|
|
3227
|
-
return X().useTransition();
|
|
3228
|
-
}, o.version = "19.2.3", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3229
|
-
})();
|
|
3230
|
-
})(xe, xe.exports)), xe.exports;
|
|
3231
|
-
}
|
|
3232
|
-
var Rr;
|
|
3233
|
-
function hn() {
|
|
3234
|
-
return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? Le.exports = fn() : Le.exports = dn()), Le.exports;
|
|
3235
|
-
}
|
|
3236
|
-
var Me = { exports: {} }, br;
|
|
3237
|
-
function pn() {
|
|
3238
|
-
return br || (br = 1, (function(s, o) {
|
|
3239
|
-
Object.defineProperty(o, "__esModule", {
|
|
3240
|
-
value: !0
|
|
3241
|
-
});
|
|
3242
|
-
function g(u, t) {
|
|
3243
|
-
for (var _ in t) Object.defineProperty(u, _, {
|
|
3244
|
-
enumerable: !0,
|
|
3245
|
-
get: t[_]
|
|
3246
|
-
});
|
|
3247
|
-
}
|
|
3248
|
-
g(o, {
|
|
3249
|
-
DynamicServerError: function() {
|
|
3250
|
-
return l;
|
|
3251
|
-
},
|
|
3252
|
-
isDynamicServerError: function() {
|
|
3253
|
-
return E;
|
|
3254
|
-
}
|
|
3255
|
-
});
|
|
3256
|
-
const d = "DYNAMIC_SERVER_USAGE";
|
|
3257
|
-
class l extends Error {
|
|
3258
|
-
constructor(t) {
|
|
3259
|
-
super(`Dynamic server usage: ${t}`), this.description = t, this.digest = d;
|
|
3260
|
-
}
|
|
3261
|
-
}
|
|
3262
|
-
function E(u) {
|
|
3263
|
-
return typeof u != "object" || u === null || !("digest" in u) || typeof u.digest != "string" ? !1 : u.digest === d;
|
|
3264
|
-
}
|
|
3265
|
-
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), s.exports = o.default);
|
|
3266
|
-
})(Me, Me.exports)), Me.exports;
|
|
3267
|
-
}
|
|
3268
|
-
var He = { exports: {} }, yr;
|
|
3269
|
-
function jt() {
|
|
3270
|
-
return yr || (yr = 1, (function(s, o) {
|
|
3271
|
-
Object.defineProperty(o, "__esModule", {
|
|
3272
|
-
value: !0
|
|
3273
|
-
});
|
|
3274
|
-
function g(u, t) {
|
|
3275
|
-
for (var _ in t) Object.defineProperty(u, _, {
|
|
3276
|
-
enumerable: !0,
|
|
3277
|
-
get: t[_]
|
|
3278
|
-
});
|
|
3279
|
-
}
|
|
3280
|
-
g(o, {
|
|
3281
|
-
StaticGenBailoutError: function() {
|
|
3282
|
-
return l;
|
|
3283
|
-
},
|
|
3284
|
-
isStaticGenBailoutError: function() {
|
|
3285
|
-
return E;
|
|
3286
|
-
}
|
|
3287
|
-
});
|
|
3288
|
-
const d = "NEXT_STATIC_GEN_BAILOUT";
|
|
3289
|
-
class l extends Error {
|
|
3290
|
-
constructor(...t) {
|
|
3291
|
-
super(...t), this.code = d;
|
|
3292
|
-
}
|
|
3293
|
-
}
|
|
3294
|
-
function E(u) {
|
|
3295
|
-
return typeof u != "object" || u === null || !("code" in u) ? !1 : u.code === d;
|
|
3296
|
-
}
|
|
3297
|
-
(typeof o.default == "function" || typeof o.default == "object" && o.default !== null) && typeof o.default.__esModule > "u" && (Object.defineProperty(o.default, "__esModule", { value: !0 }), Object.assign(o.default, o), s.exports = o.default);
|
|
3298
|
-
})(He, He.exports)), He.exports;
|
|
3299
|
-
}
|
|
3300
|
-
var bt = {}, vr;
|
|
3301
|
-
function Hr() {
|
|
3302
|
-
return vr || (vr = 1, (function(s) {
|
|
3303
|
-
Object.defineProperty(s, "__esModule", {
|
|
3304
|
-
value: !0
|
|
3305
|
-
});
|
|
3306
|
-
function o(c, r) {
|
|
3307
|
-
for (var b in r) Object.defineProperty(c, b, {
|
|
3308
|
-
enumerable: !0,
|
|
3309
|
-
get: r[b]
|
|
3310
|
-
});
|
|
3311
|
-
}
|
|
3312
|
-
o(s, {
|
|
3313
|
-
isHangingPromiseRejectionError: function() {
|
|
3314
|
-
return g;
|
|
3315
|
-
},
|
|
3316
|
-
makeDevtoolsIOAwarePromise: function() {
|
|
3317
|
-
return _;
|
|
3318
|
-
},
|
|
3319
|
-
makeHangingPromise: function() {
|
|
3320
|
-
return u;
|
|
3321
|
-
}
|
|
3322
|
-
});
|
|
3323
|
-
function g(c) {
|
|
3324
|
-
return typeof c != "object" || c === null || !("digest" in c) ? !1 : c.digest === d;
|
|
3325
|
-
}
|
|
3326
|
-
const d = "HANGING_PROMISE_REJECTION";
|
|
3327
|
-
class l extends Error {
|
|
3328
|
-
constructor(r, b) {
|
|
3329
|
-
super(`During prerendering, ${b} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${b} 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 "${r}".`), this.route = r, this.expression = b, this.digest = d;
|
|
3330
|
-
}
|
|
3331
|
-
}
|
|
3332
|
-
const E = /* @__PURE__ */ new WeakMap();
|
|
3333
|
-
function u(c, r, b) {
|
|
3334
|
-
if (c.aborted)
|
|
3335
|
-
return Promise.reject(new l(r, b));
|
|
3336
|
-
{
|
|
3337
|
-
const w = new Promise((k, B) => {
|
|
3338
|
-
const D = B.bind(null, new l(r, b));
|
|
3339
|
-
let p = E.get(c);
|
|
3340
|
-
if (p)
|
|
3341
|
-
p.push(D);
|
|
3342
|
-
else {
|
|
3343
|
-
const y = [
|
|
3344
|
-
D
|
|
3345
|
-
];
|
|
3346
|
-
E.set(c, y), c.addEventListener("abort", () => {
|
|
3347
|
-
for (let R = 0; R < y.length; R++)
|
|
3348
|
-
y[R]();
|
|
3349
|
-
}, {
|
|
3350
|
-
once: !0
|
|
3351
|
-
});
|
|
3352
|
-
}
|
|
3353
|
-
});
|
|
3354
|
-
return w.catch(t), w;
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
function t() {
|
|
3358
|
-
}
|
|
3359
|
-
function _(c, r, b) {
|
|
3360
|
-
return r.stagedRendering ? r.stagedRendering.delayUntilStage(b, void 0, c) : new Promise((w) => {
|
|
3361
|
-
setTimeout(() => {
|
|
3362
|
-
w(c);
|
|
3363
|
-
}, 0);
|
|
3364
|
-
});
|
|
3365
|
-
}
|
|
3366
|
-
})(bt)), bt;
|
|
3367
|
-
}
|
|
3368
|
-
var yt = {}, wr;
|
|
3369
|
-
function _n() {
|
|
3370
|
-
return wr || (wr = 1, (function(s) {
|
|
3371
|
-
Object.defineProperty(s, "__esModule", {
|
|
3372
|
-
value: !0
|
|
3373
|
-
});
|
|
3374
|
-
function o(u, t) {
|
|
3375
|
-
for (var _ in t) Object.defineProperty(u, _, {
|
|
3376
|
-
enumerable: !0,
|
|
3377
|
-
get: t[_]
|
|
3378
|
-
});
|
|
3379
|
-
}
|
|
3380
|
-
o(s, {
|
|
3381
|
-
METADATA_BOUNDARY_NAME: function() {
|
|
3382
|
-
return g;
|
|
3383
|
-
},
|
|
3384
|
-
OUTLET_BOUNDARY_NAME: function() {
|
|
3385
|
-
return l;
|
|
3386
|
-
},
|
|
3387
|
-
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
|
3388
|
-
return E;
|
|
3389
|
-
},
|
|
3390
|
-
VIEWPORT_BOUNDARY_NAME: function() {
|
|
3391
|
-
return d;
|
|
3392
|
-
}
|
|
3393
|
-
});
|
|
3394
|
-
const g = "__next_metadata_boundary__", d = "__next_viewport_boundary__", l = "__next_outlet_boundary__", E = "__next_root_layout_boundary__";
|
|
3395
|
-
})(yt)), yt;
|
|
3396
|
-
}
|
|
3397
|
-
var vt = {}, Tr;
|
|
3398
|
-
function mn() {
|
|
3399
|
-
return Tr || (Tr = 1, (function(s) {
|
|
3400
|
-
Object.defineProperty(s, "__esModule", {
|
|
3401
|
-
value: !0
|
|
3402
|
-
});
|
|
3403
|
-
function o(u, t) {
|
|
3404
|
-
for (var _ in t) Object.defineProperty(u, _, {
|
|
3405
|
-
enumerable: !0,
|
|
3406
|
-
get: t[_]
|
|
3407
|
-
});
|
|
3408
|
-
}
|
|
3409
|
-
o(s, {
|
|
3410
|
-
atLeastOneTask: function() {
|
|
3411
|
-
return l;
|
|
3412
|
-
},
|
|
3413
|
-
scheduleImmediate: function() {
|
|
3414
|
-
return d;
|
|
3415
|
-
},
|
|
3416
|
-
scheduleOnNextTick: function() {
|
|
3417
|
-
return g;
|
|
3418
|
-
},
|
|
3419
|
-
waitAtLeastOneReactRenderTask: function() {
|
|
3420
|
-
return E;
|
|
3421
|
-
}
|
|
3422
|
-
});
|
|
3423
|
-
const g = (u) => {
|
|
3424
|
-
Promise.resolve().then(() => {
|
|
3425
|
-
process.env.NEXT_RUNTIME === "edge" ? setTimeout(u, 0) : process.nextTick(u);
|
|
3426
|
-
});
|
|
3427
|
-
}, d = (u) => {
|
|
3428
|
-
process.env.NEXT_RUNTIME === "edge" ? setTimeout(u, 0) : setImmediate(u);
|
|
3429
|
-
};
|
|
3430
|
-
function l() {
|
|
3431
|
-
return new Promise((u) => d(u));
|
|
3432
|
-
}
|
|
3433
|
-
function E() {
|
|
3434
|
-
return process.env.NEXT_RUNTIME === "edge" ? new Promise((u) => setTimeout(u, 0)) : new Promise((u) => setImmediate(u));
|
|
3435
|
-
}
|
|
3436
|
-
})(vt)), vt;
|
|
3437
|
-
}
|
|
3438
|
-
var wt = {}, Ar;
|
|
3439
|
-
function gn() {
|
|
3440
|
-
return Ar || (Ar = 1, (function(s) {
|
|
3441
|
-
Object.defineProperty(s, "__esModule", {
|
|
3442
|
-
value: !0
|
|
3443
|
-
});
|
|
3444
|
-
function o(E, u) {
|
|
3445
|
-
for (var t in u) Object.defineProperty(E, t, {
|
|
3446
|
-
enumerable: !0,
|
|
3447
|
-
get: u[t]
|
|
3448
|
-
});
|
|
3449
|
-
}
|
|
3450
|
-
o(s, {
|
|
3451
|
-
BailoutToCSRError: function() {
|
|
3452
|
-
return d;
|
|
3453
|
-
},
|
|
3454
|
-
isBailoutToCSRError: function() {
|
|
3455
|
-
return l;
|
|
3456
|
-
}
|
|
3457
|
-
});
|
|
3458
|
-
const g = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
|
|
3459
|
-
class d extends Error {
|
|
3460
|
-
constructor(u) {
|
|
3461
|
-
super(`Bail out to client-side rendering: ${u}`), this.reason = u, this.digest = g;
|
|
3462
|
-
}
|
|
3463
|
-
}
|
|
3464
|
-
function l(E) {
|
|
3465
|
-
return typeof E != "object" || E === null || !("digest" in E) ? !1 : E.digest === g;
|
|
3466
|
-
}
|
|
3467
|
-
})(wt)), wt;
|
|
3468
|
-
}
|
|
3469
|
-
var Sr;
|
|
3470
|
-
function En() {
|
|
3471
|
-
return Sr || (Sr = 1, (function(s) {
|
|
3472
|
-
Object.defineProperty(s, "__esModule", {
|
|
3473
|
-
value: !0
|
|
3474
|
-
});
|
|
3475
|
-
function o(m, f) {
|
|
3476
|
-
for (var T in f) Object.defineProperty(m, T, {
|
|
3477
|
-
enumerable: !0,
|
|
3478
|
-
get: f[T]
|
|
3479
|
-
});
|
|
3480
|
-
}
|
|
3481
|
-
o(s, {
|
|
3482
|
-
Postpone: function() {
|
|
3483
|
-
return h;
|
|
3484
|
-
},
|
|
3485
|
-
PreludeState: function() {
|
|
3486
|
-
return Pe;
|
|
3487
|
-
},
|
|
3488
|
-
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
3489
|
-
return N;
|
|
3490
|
-
},
|
|
3491
|
-
abortOnSynchronousPlatformIOAccess: function() {
|
|
3492
|
-
return i;
|
|
3493
|
-
},
|
|
3494
|
-
accessedDynamicData: function() {
|
|
3495
|
-
return de;
|
|
3496
|
-
},
|
|
3497
|
-
annotateDynamicAccess: function() {
|
|
3498
|
-
return n;
|
|
3499
|
-
},
|
|
3500
|
-
consumeDynamicAccess: function() {
|
|
3501
|
-
return ce;
|
|
3502
|
-
},
|
|
3503
|
-
createDynamicTrackingState: function() {
|
|
3504
|
-
return B;
|
|
3505
|
-
},
|
|
3506
|
-
createDynamicValidationState: function() {
|
|
3507
|
-
return D;
|
|
3508
|
-
},
|
|
3509
|
-
createHangingInputAbortSignal: function() {
|
|
3510
|
-
return _e;
|
|
3511
|
-
},
|
|
3512
|
-
createRenderInBrowserAbortSignal: function() {
|
|
3513
|
-
return Re;
|
|
3514
|
-
},
|
|
3515
|
-
delayUntilRuntimeStage: function() {
|
|
3516
|
-
return ve;
|
|
3517
|
-
},
|
|
3518
|
-
formatDynamicAPIAccesses: function() {
|
|
3519
|
-
return ie;
|
|
3520
|
-
},
|
|
3521
|
-
getFirstDynamicReason: function() {
|
|
3522
|
-
return p;
|
|
3523
|
-
},
|
|
3524
|
-
getStaticShellDisallowedDynamicReasons: function() {
|
|
3525
|
-
return le;
|
|
3526
|
-
},
|
|
3527
|
-
isDynamicPostpone: function() {
|
|
3528
|
-
return Q;
|
|
3529
|
-
},
|
|
3530
|
-
isPrerenderInterruptedError: function() {
|
|
3531
|
-
return oe;
|
|
3532
|
-
},
|
|
3533
|
-
logDisallowedDynamicError: function() {
|
|
3534
|
-
return Ae;
|
|
3535
|
-
},
|
|
3536
|
-
markCurrentScopeAsDynamic: function() {
|
|
3537
|
-
return y;
|
|
3538
|
-
},
|
|
3539
|
-
postponeWithTracking: function() {
|
|
3540
|
-
return P;
|
|
3541
|
-
},
|
|
3542
|
-
throwIfDisallowedDynamic: function() {
|
|
3543
|
-
return ye;
|
|
3544
|
-
},
|
|
3545
|
-
throwToInterruptStaticGeneration: function() {
|
|
3546
|
-
return R;
|
|
3547
|
-
},
|
|
3548
|
-
trackAllowedDynamicAccess: function() {
|
|
3549
|
-
return me;
|
|
3550
|
-
},
|
|
3551
|
-
trackDynamicDataInDynamicRender: function() {
|
|
3552
|
-
return v;
|
|
3553
|
-
},
|
|
3554
|
-
trackDynamicHoleInRuntimeShell: function() {
|
|
3555
|
-
return Te;
|
|
3556
|
-
},
|
|
3557
|
-
trackDynamicHoleInStaticShell: function() {
|
|
3558
|
-
return Se;
|
|
3559
|
-
},
|
|
3560
|
-
useDynamicRouteParams: function() {
|
|
3561
|
-
return A;
|
|
3562
|
-
},
|
|
3563
|
-
useDynamicSearchParams: function() {
|
|
3564
|
-
return M;
|
|
3565
|
-
}
|
|
3566
|
-
});
|
|
3567
|
-
const g = /* @__PURE__ */ w(hn()), d = pn(), l = jt(), E = Mr(), u = xt(), t = Hr(), _ = _n(), c = mn(), r = gn(), b = kt();
|
|
3568
|
-
function w(m) {
|
|
3569
|
-
return m && m.__esModule ? m : {
|
|
3570
|
-
default: m
|
|
3571
|
-
};
|
|
3572
|
-
}
|
|
3573
|
-
const k = typeof g.default.unstable_postpone == "function";
|
|
3574
|
-
function B(m) {
|
|
3575
|
-
return {
|
|
3576
|
-
isDebugDynamicAccesses: m,
|
|
3577
|
-
dynamicAccesses: [],
|
|
3578
|
-
syncDynamicErrorWithStack: null
|
|
3579
|
-
};
|
|
3580
|
-
}
|
|
3581
|
-
function D() {
|
|
3582
|
-
return {
|
|
3583
|
-
hasSuspenseAboveBody: !1,
|
|
3584
|
-
hasDynamicMetadata: !1,
|
|
3585
|
-
dynamicMetadata: null,
|
|
3586
|
-
hasDynamicViewport: !1,
|
|
3587
|
-
hasAllowedDynamic: !1,
|
|
3588
|
-
dynamicErrors: []
|
|
3589
|
-
};
|
|
3590
|
-
}
|
|
3591
|
-
function p(m) {
|
|
3592
|
-
var f;
|
|
3593
|
-
return (f = m.dynamicAccesses[0]) == null ? void 0 : f.expression;
|
|
3594
|
-
}
|
|
3595
|
-
function y(m, f, T) {
|
|
3596
|
-
if (f)
|
|
3597
|
-
switch (f.type) {
|
|
3598
|
-
case "cache":
|
|
3599
|
-
case "unstable-cache":
|
|
3600
|
-
return;
|
|
3601
|
-
case "private-cache":
|
|
3602
|
-
return;
|
|
3603
|
-
}
|
|
3604
|
-
if (!(m.forceDynamic || m.forceStatic)) {
|
|
3605
|
-
if (m.dynamicShouldError)
|
|
3606
|
-
throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${m.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${T}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
3607
|
-
value: "E553",
|
|
3608
|
-
enumerable: !1,
|
|
3609
|
-
configurable: !0
|
|
3610
|
-
});
|
|
3611
|
-
if (f)
|
|
3612
|
-
switch (f.type) {
|
|
3613
|
-
case "prerender-ppr":
|
|
3614
|
-
return P(m.route, T, f.dynamicTracking);
|
|
3615
|
-
case "prerender-legacy":
|
|
3616
|
-
f.revalidate = 0;
|
|
3617
|
-
const C = Object.defineProperty(new d.DynamicServerError(`Route ${m.route} couldn't be rendered statically because it used ${T}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
3618
|
-
value: "E550",
|
|
3619
|
-
enumerable: !1,
|
|
3620
|
-
configurable: !0
|
|
3621
|
-
});
|
|
3622
|
-
throw m.dynamicUsageDescription = T, m.dynamicUsageStack = C.stack, C;
|
|
3623
|
-
case "request":
|
|
3624
|
-
process.env.NODE_ENV !== "production" && (f.usedDynamic = !0);
|
|
3625
|
-
break;
|
|
3626
|
-
}
|
|
3627
|
-
}
|
|
3628
|
-
}
|
|
3629
|
-
function R(m, f, T) {
|
|
3630
|
-
const C = Object.defineProperty(new d.DynamicServerError(`Route ${f.route} couldn't be rendered statically because it used \`${m}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
3631
|
-
value: "E558",
|
|
3632
|
-
enumerable: !1,
|
|
3633
|
-
configurable: !0
|
|
3634
|
-
});
|
|
3635
|
-
throw T.revalidate = 0, f.dynamicUsageDescription = m, f.dynamicUsageStack = C.stack, C;
|
|
3636
|
-
}
|
|
3637
|
-
function v(m) {
|
|
3638
|
-
switch (m.type) {
|
|
3639
|
-
case "cache":
|
|
3640
|
-
case "unstable-cache":
|
|
3641
|
-
return;
|
|
3642
|
-
case "private-cache":
|
|
3643
|
-
return;
|
|
3644
|
-
case "prerender":
|
|
3645
|
-
case "prerender-runtime":
|
|
3646
|
-
case "prerender-legacy":
|
|
3647
|
-
case "prerender-ppr":
|
|
3648
|
-
case "prerender-client":
|
|
3649
|
-
break;
|
|
3650
|
-
case "request":
|
|
3651
|
-
process.env.NODE_ENV !== "production" && (m.usedDynamic = !0);
|
|
3652
|
-
break;
|
|
3653
|
-
}
|
|
3654
|
-
}
|
|
3655
|
-
function O(m, f, T) {
|
|
3656
|
-
const C = `Route ${m} needs to bail out of prerendering at this point because it used ${f}.`, ee = se(C);
|
|
3657
|
-
T.controller.abort(ee);
|
|
3658
|
-
const Z = T.dynamicTracking;
|
|
3659
|
-
Z && Z.dynamicAccesses.push({
|
|
3660
|
-
// When we aren't debugging, we don't need to create another error for the
|
|
3661
|
-
// stack trace.
|
|
3662
|
-
stack: Z.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3663
|
-
expression: f
|
|
3664
|
-
});
|
|
3665
|
-
}
|
|
3666
|
-
function i(m, f, T, C) {
|
|
3667
|
-
const ee = C.dynamicTracking;
|
|
3668
|
-
O(m, f, C), ee && ee.syncDynamicErrorWithStack === null && (ee.syncDynamicErrorWithStack = T);
|
|
3669
|
-
}
|
|
3670
|
-
function N(m, f, T, C) {
|
|
3671
|
-
if (C.controller.signal.aborted === !1) {
|
|
3672
|
-
O(m, f, C);
|
|
3673
|
-
const Z = C.dynamicTracking;
|
|
3674
|
-
Z && Z.syncDynamicErrorWithStack === null && (Z.syncDynamicErrorWithStack = T);
|
|
3675
|
-
}
|
|
3676
|
-
throw se(`Route ${m} needs to bail out of prerendering at this point because it used ${f}.`);
|
|
3677
|
-
}
|
|
3678
|
-
function h({ reason: m, route: f }) {
|
|
3679
|
-
const T = E.workUnitAsyncStorage.getStore(), C = T && T.type === "prerender-ppr" ? T.dynamicTracking : null;
|
|
3680
|
-
P(f, m, C);
|
|
3681
|
-
}
|
|
3682
|
-
function P(m, f, T) {
|
|
3683
|
-
he(), T && T.dynamicAccesses.push({
|
|
3684
|
-
// When we aren't debugging, we don't need to create another error for the
|
|
3685
|
-
// stack trace.
|
|
3686
|
-
stack: T.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3687
|
-
expression: f
|
|
3688
|
-
}), g.default.unstable_postpone(x(m, f));
|
|
3689
|
-
}
|
|
3690
|
-
function x(m, f) {
|
|
3691
|
-
return `Route ${m} needs to bail out of prerendering at this point because it used ${f}. 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`;
|
|
3692
|
-
}
|
|
3693
|
-
function Q(m) {
|
|
3694
|
-
return typeof m == "object" && m !== null && typeof m.message == "string" ? ae(m.message) : !1;
|
|
3695
|
-
}
|
|
3696
|
-
function ae(m) {
|
|
3697
|
-
return m.includes("needs to bail out of prerendering at this point because it used") && m.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
|
3698
|
-
}
|
|
3699
|
-
if (ae(x("%%%", "^^^")) === !1)
|
|
3700
|
-
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
3701
|
-
value: "E296",
|
|
3702
|
-
enumerable: !1,
|
|
3703
|
-
configurable: !0
|
|
3704
|
-
});
|
|
3705
|
-
const X = "NEXT_PRERENDER_INTERRUPTED";
|
|
3706
|
-
function se(m) {
|
|
3707
|
-
const f = Object.defineProperty(new Error(m), "__NEXT_ERROR_CODE", {
|
|
3708
|
-
value: "E394",
|
|
3709
|
-
enumerable: !1,
|
|
3710
|
-
configurable: !0
|
|
3711
|
-
});
|
|
3712
|
-
return f.digest = X, f;
|
|
3713
|
-
}
|
|
3714
|
-
function oe(m) {
|
|
3715
|
-
return typeof m == "object" && m !== null && m.digest === X && "name" in m && "message" in m && m instanceof Error;
|
|
3716
|
-
}
|
|
3717
|
-
function de(m) {
|
|
3718
|
-
return m.length > 0;
|
|
3719
|
-
}
|
|
3720
|
-
function ce(m, f) {
|
|
3721
|
-
return m.dynamicAccesses.push(...f.dynamicAccesses), m.dynamicAccesses;
|
|
3722
|
-
}
|
|
3723
|
-
function ie(m) {
|
|
3724
|
-
return m.filter((f) => typeof f.stack == "string" && f.stack.length > 0).map(({ expression: f, stack: T }) => (T = T.split(`
|
|
3725
|
-
`).slice(4).filter((C) => !(C.includes("node_modules/next/") || C.includes(" (<anonymous>)") || C.includes(" (node:"))).join(`
|
|
3726
|
-
`), `Dynamic API Usage Debug - ${f}:
|
|
3727
|
-
${T}`));
|
|
3728
|
-
}
|
|
3729
|
-
function he() {
|
|
3730
|
-
if (!k)
|
|
3731
|
-
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", {
|
|
3732
|
-
value: "E224",
|
|
3733
|
-
enumerable: !1,
|
|
3734
|
-
configurable: !0
|
|
3735
|
-
});
|
|
3736
|
-
}
|
|
3737
|
-
function Re() {
|
|
3738
|
-
const m = new AbortController();
|
|
3739
|
-
return m.abort(Object.defineProperty(new r.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
|
|
3740
|
-
value: "E721",
|
|
3741
|
-
enumerable: !1,
|
|
3742
|
-
configurable: !0
|
|
3743
|
-
})), m.signal;
|
|
3744
|
-
}
|
|
3745
|
-
function _e(m) {
|
|
3746
|
-
switch (m.type) {
|
|
3747
|
-
case "prerender":
|
|
3748
|
-
case "prerender-runtime":
|
|
3749
|
-
const f = new AbortController();
|
|
3750
|
-
if (m.cacheSignal)
|
|
3751
|
-
m.cacheSignal.inputReady().then(() => {
|
|
3752
|
-
f.abort();
|
|
3753
|
-
});
|
|
3754
|
-
else {
|
|
3755
|
-
const T = (0, E.getRuntimeStagePromise)(m);
|
|
3756
|
-
T ? T.then(() => (0, c.scheduleOnNextTick)(() => f.abort())) : (0, c.scheduleOnNextTick)(() => f.abort());
|
|
3757
|
-
}
|
|
3758
|
-
return f.signal;
|
|
3759
|
-
case "prerender-client":
|
|
3760
|
-
case "prerender-ppr":
|
|
3761
|
-
case "prerender-legacy":
|
|
3762
|
-
case "request":
|
|
3763
|
-
case "cache":
|
|
3764
|
-
case "private-cache":
|
|
3765
|
-
case "unstable-cache":
|
|
3766
|
-
return;
|
|
3767
|
-
}
|
|
3768
|
-
}
|
|
3769
|
-
function n(m, f) {
|
|
3770
|
-
const T = f.dynamicTracking;
|
|
3771
|
-
T && T.dynamicAccesses.push({
|
|
3772
|
-
stack: T.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
3773
|
-
expression: m
|
|
3774
|
-
});
|
|
3775
|
-
}
|
|
3776
|
-
function A(m) {
|
|
3777
|
-
const f = u.workAsyncStorage.getStore(), T = E.workUnitAsyncStorage.getStore();
|
|
3778
|
-
if (f && T)
|
|
3779
|
-
switch (T.type) {
|
|
3780
|
-
case "prerender-client":
|
|
3781
|
-
case "prerender": {
|
|
3782
|
-
const C = T.fallbackRouteParams;
|
|
3783
|
-
C && C.size > 0 && g.default.use((0, t.makeHangingPromise)(T.renderSignal, f.route, m));
|
|
3784
|
-
break;
|
|
3785
|
-
}
|
|
3786
|
-
case "prerender-ppr": {
|
|
3787
|
-
const C = T.fallbackRouteParams;
|
|
3788
|
-
if (C && C.size > 0)
|
|
3789
|
-
return P(f.route, m, T.dynamicTracking);
|
|
3790
|
-
break;
|
|
3791
|
-
}
|
|
3792
|
-
case "prerender-runtime":
|
|
3793
|
-
throw Object.defineProperty(new b.InvariantError(`\`${m}\` was called during a runtime prerender. Next.js should be preventing ${m} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
3794
|
-
value: "E771",
|
|
3795
|
-
enumerable: !1,
|
|
3796
|
-
configurable: !0
|
|
3797
|
-
});
|
|
3798
|
-
case "cache":
|
|
3799
|
-
case "private-cache":
|
|
3800
|
-
throw Object.defineProperty(new b.InvariantError(`\`${m}\` was called inside a cache scope. Next.js should be preventing ${m} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
3801
|
-
value: "E745",
|
|
3802
|
-
enumerable: !1,
|
|
3803
|
-
configurable: !0
|
|
3804
|
-
});
|
|
3805
|
-
}
|
|
3806
|
-
}
|
|
3807
|
-
function M(m) {
|
|
3808
|
-
const f = u.workAsyncStorage.getStore(), T = E.workUnitAsyncStorage.getStore();
|
|
3809
|
-
if (f)
|
|
3810
|
-
switch (T || (0, E.throwForMissingRequestStore)(m), T.type) {
|
|
3811
|
-
case "prerender-client": {
|
|
3812
|
-
g.default.use((0, t.makeHangingPromise)(T.renderSignal, f.route, m));
|
|
3813
|
-
break;
|
|
3814
|
-
}
|
|
3815
|
-
case "prerender-legacy":
|
|
3816
|
-
case "prerender-ppr": {
|
|
3817
|
-
if (f.forceStatic)
|
|
3818
|
-
return;
|
|
3819
|
-
throw Object.defineProperty(new r.BailoutToCSRError(m), "__NEXT_ERROR_CODE", {
|
|
3820
|
-
value: "E394",
|
|
3821
|
-
enumerable: !1,
|
|
3822
|
-
configurable: !0
|
|
3823
|
-
});
|
|
3824
|
-
}
|
|
3825
|
-
case "prerender":
|
|
3826
|
-
case "prerender-runtime":
|
|
3827
|
-
throw Object.defineProperty(new b.InvariantError(`\`${m}\` was called from a Server Component. Next.js should be preventing ${m} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
3828
|
-
value: "E795",
|
|
3829
|
-
enumerable: !1,
|
|
3830
|
-
configurable: !0
|
|
3831
|
-
});
|
|
3832
|
-
case "cache":
|
|
3833
|
-
case "unstable-cache":
|
|
3834
|
-
case "private-cache":
|
|
3835
|
-
throw Object.defineProperty(new b.InvariantError(`\`${m}\` was called inside a cache scope. Next.js should be preventing ${m} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
3836
|
-
value: "E745",
|
|
3837
|
-
enumerable: !1,
|
|
3838
|
-
configurable: !0
|
|
3839
|
-
});
|
|
3840
|
-
case "request":
|
|
3841
|
-
return;
|
|
3842
|
-
}
|
|
3843
|
-
}
|
|
3844
|
-
const j = /\n\s+at Suspense \(<anonymous>\)/, W = "body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6", G = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${W}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${_.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`), Y = new RegExp(`\\n\\s+at ${_.METADATA_BOUNDARY_NAME}[\\n\\s]`), ue = new RegExp(`\\n\\s+at ${_.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), re = new RegExp(`\\n\\s+at ${_.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
3845
|
-
function me(m, f, T, C) {
|
|
3846
|
-
if (!re.test(f))
|
|
3847
|
-
if (Y.test(f)) {
|
|
3848
|
-
T.hasDynamicMetadata = !0;
|
|
3849
|
-
return;
|
|
3850
|
-
} else if (ue.test(f)) {
|
|
3851
|
-
T.hasDynamicViewport = !0;
|
|
3852
|
-
return;
|
|
3853
|
-
} else if (G.test(f)) {
|
|
3854
|
-
T.hasAllowedDynamic = !0, T.hasSuspenseAboveBody = !0;
|
|
3855
|
-
return;
|
|
3856
|
-
} else if (j.test(f)) {
|
|
3857
|
-
T.hasAllowedDynamic = !0;
|
|
3858
|
-
return;
|
|
3859
|
-
} else if (C.syncDynamicErrorWithStack) {
|
|
3860
|
-
T.dynamicErrors.push(C.syncDynamicErrorWithStack);
|
|
3861
|
-
return;
|
|
3862
|
-
} else {
|
|
3863
|
-
const ee = `Route "${m.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`, Z = ge(ee, f);
|
|
3864
|
-
T.dynamicErrors.push(Z);
|
|
3865
|
-
return;
|
|
3866
|
-
}
|
|
3867
|
-
}
|
|
3868
|
-
function Te(m, f, T, C) {
|
|
3869
|
-
if (!re.test(f))
|
|
3870
|
-
if (Y.test(f)) {
|
|
3871
|
-
const ee = `Route "${m.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`, Z = ge(ee, f);
|
|
3872
|
-
T.dynamicMetadata = Z;
|
|
3873
|
-
return;
|
|
3874
|
-
} else if (ue.test(f)) {
|
|
3875
|
-
const ee = `Route "${m.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`, Z = ge(ee, f);
|
|
3876
|
-
T.dynamicErrors.push(Z);
|
|
3877
|
-
return;
|
|
3878
|
-
} else if (G.test(f)) {
|
|
3879
|
-
T.hasAllowedDynamic = !0, T.hasSuspenseAboveBody = !0;
|
|
3880
|
-
return;
|
|
3881
|
-
} else if (j.test(f)) {
|
|
3882
|
-
T.hasAllowedDynamic = !0;
|
|
3883
|
-
return;
|
|
3884
|
-
} else if (C.syncDynamicErrorWithStack) {
|
|
3885
|
-
T.dynamicErrors.push(C.syncDynamicErrorWithStack);
|
|
3886
|
-
return;
|
|
3887
|
-
} else {
|
|
3888
|
-
const ee = `Route "${m.route}": Uncached data or \`connection()\` 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`, Z = ge(ee, f);
|
|
3889
|
-
T.dynamicErrors.push(Z);
|
|
3890
|
-
return;
|
|
3891
|
-
}
|
|
3892
|
-
}
|
|
3893
|
-
function Se(m, f, T, C) {
|
|
3894
|
-
if (!re.test(f))
|
|
3895
|
-
if (Y.test(f)) {
|
|
3896
|
-
const ee = `Route "${m.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`, Z = ge(ee, f);
|
|
3897
|
-
T.dynamicMetadata = Z;
|
|
3898
|
-
return;
|
|
3899
|
-
} else if (ue.test(f)) {
|
|
3900
|
-
const ee = `Route "${m.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`, Z = ge(ee, f);
|
|
3901
|
-
T.dynamicErrors.push(Z);
|
|
3902
|
-
return;
|
|
3903
|
-
} else if (G.test(f)) {
|
|
3904
|
-
T.hasAllowedDynamic = !0, T.hasSuspenseAboveBody = !0;
|
|
3905
|
-
return;
|
|
3906
|
-
} else if (j.test(f)) {
|
|
3907
|
-
T.hasAllowedDynamic = !0;
|
|
3908
|
-
return;
|
|
3909
|
-
} else if (C.syncDynamicErrorWithStack) {
|
|
3910
|
-
T.dynamicErrors.push(C.syncDynamicErrorWithStack);
|
|
3911
|
-
return;
|
|
3912
|
-
} else {
|
|
3913
|
-
const ee = `Route "${m.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` 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`, Z = ge(ee, f);
|
|
3914
|
-
T.dynamicErrors.push(Z);
|
|
3915
|
-
return;
|
|
3916
|
-
}
|
|
3917
|
-
}
|
|
3918
|
-
function ge(m, f) {
|
|
3919
|
-
const T = process.env.NODE_ENV !== "production" && g.default.captureOwnerStack ? g.default.captureOwnerStack() : null, C = Object.defineProperty(new Error(m), "__NEXT_ERROR_CODE", {
|
|
3920
|
-
value: "E394",
|
|
3921
|
-
enumerable: !1,
|
|
3922
|
-
configurable: !0
|
|
3923
|
-
});
|
|
3924
|
-
return C.stack = C.name + ": " + m + (T || f), C;
|
|
3925
|
-
}
|
|
3926
|
-
var Pe = /* @__PURE__ */ (function(m) {
|
|
3927
|
-
return m[m.Full = 0] = "Full", m[m.Empty = 1] = "Empty", m[m.Errored = 2] = "Errored", m;
|
|
3928
|
-
})({});
|
|
3929
|
-
function Ae(m, f) {
|
|
3930
|
-
console.error(f), m.dev || (m.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 "${m.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:
|
|
3931
|
-
- Start the app in development mode by running \`next dev\`, then open "${m.route}" in your browser to investigate the error.
|
|
3932
|
-
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`));
|
|
3933
|
-
}
|
|
3934
|
-
function ye(m, f, T, C) {
|
|
3935
|
-
if (C.syncDynamicErrorWithStack)
|
|
3936
|
-
throw Ae(m, C.syncDynamicErrorWithStack), new l.StaticGenBailoutError();
|
|
3937
|
-
if (f !== 0) {
|
|
3938
|
-
if (T.hasSuspenseAboveBody)
|
|
3939
|
-
return;
|
|
3940
|
-
const ee = T.dynamicErrors;
|
|
3941
|
-
if (ee.length > 0) {
|
|
3942
|
-
for (let Z = 0; Z < ee.length; Z++)
|
|
3943
|
-
Ae(m, ee[Z]);
|
|
3944
|
-
throw new l.StaticGenBailoutError();
|
|
3945
|
-
}
|
|
3946
|
-
if (T.hasDynamicViewport)
|
|
3947
|
-
throw console.error(`Route "${m.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 l.StaticGenBailoutError();
|
|
3948
|
-
if (f === 1)
|
|
3949
|
-
throw console.error(`Route "${m.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`), new l.StaticGenBailoutError();
|
|
3950
|
-
} else if (T.hasAllowedDynamic === !1 && T.hasDynamicMetadata)
|
|
3951
|
-
throw console.error(`Route "${m.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 l.StaticGenBailoutError();
|
|
3952
|
-
}
|
|
3953
|
-
function le(m, f, T) {
|
|
3954
|
-
if (T.hasSuspenseAboveBody)
|
|
3955
|
-
return [];
|
|
3956
|
-
if (f !== 0) {
|
|
3957
|
-
const C = T.dynamicErrors;
|
|
3958
|
-
if (C.length > 0)
|
|
3959
|
-
return C;
|
|
3960
|
-
if (f === 1)
|
|
3961
|
-
return [
|
|
3962
|
-
Object.defineProperty(new b.InvariantError(`Route "${m.route}" did not produce a static shell and Next.js was unable to determine a reason.`), "__NEXT_ERROR_CODE", {
|
|
3963
|
-
value: "E936",
|
|
3964
|
-
enumerable: !1,
|
|
3965
|
-
configurable: !0
|
|
3966
|
-
})
|
|
3967
|
-
];
|
|
3968
|
-
} else if (T.hasAllowedDynamic === !1 && T.dynamicErrors.length === 0 && T.dynamicMetadata)
|
|
3969
|
-
return [
|
|
3970
|
-
T.dynamicMetadata
|
|
3971
|
-
];
|
|
3972
|
-
return [];
|
|
3973
|
-
}
|
|
3974
|
-
function ve(m, f) {
|
|
3975
|
-
return m.runtimeStagePromise ? m.runtimeStagePromise.then(() => f) : f;
|
|
3976
|
-
}
|
|
3977
|
-
})(Rt)), Rt;
|
|
3978
|
-
}
|
|
3979
|
-
var Tt = {}, At = {}, St = {}, Pr;
|
|
3980
|
-
function Rn() {
|
|
3981
|
-
return Pr || (Pr = 1, (function(s) {
|
|
3982
|
-
Object.defineProperty(s, "__esModule", {
|
|
3983
|
-
value: !0
|
|
3984
|
-
}), Object.defineProperty(s, "afterTaskAsyncStorageInstance", {
|
|
3985
|
-
enumerable: !0,
|
|
3986
|
-
get: function() {
|
|
3987
|
-
return g;
|
|
3988
|
-
}
|
|
3989
|
-
});
|
|
3990
|
-
const g = (0, Dt().createAsyncLocalStorage)();
|
|
3991
|
-
})(St)), St;
|
|
3992
|
-
}
|
|
3993
|
-
var Or;
|
|
3994
|
-
function bn() {
|
|
3995
|
-
return Or || (Or = 1, (function(s) {
|
|
3996
|
-
Object.defineProperty(s, "__esModule", {
|
|
3997
|
-
value: !0
|
|
3998
|
-
}), Object.defineProperty(s, "afterTaskAsyncStorage", {
|
|
3999
|
-
enumerable: !0,
|
|
4000
|
-
get: function() {
|
|
4001
|
-
return o.afterTaskAsyncStorageInstance;
|
|
4002
|
-
}
|
|
4003
|
-
});
|
|
4004
|
-
const o = Rn();
|
|
4005
|
-
})(At)), At;
|
|
4006
|
-
}
|
|
4007
|
-
var Nr;
|
|
4008
|
-
function yn() {
|
|
4009
|
-
return Nr || (Nr = 1, (function(s) {
|
|
4010
|
-
Object.defineProperty(s, "__esModule", {
|
|
4011
|
-
value: !0
|
|
4012
|
-
});
|
|
4013
|
-
function o(t, _) {
|
|
4014
|
-
for (var c in _) Object.defineProperty(t, c, {
|
|
4015
|
-
enumerable: !0,
|
|
4016
|
-
get: _[c]
|
|
4017
|
-
});
|
|
4018
|
-
}
|
|
4019
|
-
o(s, {
|
|
4020
|
-
isRequestAPICallableInsideAfter: function() {
|
|
4021
|
-
return u;
|
|
4022
|
-
},
|
|
4023
|
-
throwForSearchParamsAccessInUseCache: function() {
|
|
4024
|
-
return E;
|
|
4025
|
-
},
|
|
4026
|
-
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
4027
|
-
return l;
|
|
4028
|
-
}
|
|
4029
|
-
});
|
|
4030
|
-
const g = jt(), d = bn();
|
|
4031
|
-
function l(t, _) {
|
|
4032
|
-
throw Object.defineProperty(new g.StaticGenBailoutError(`Route ${t} with \`dynamic = "error"\` couldn't be rendered statically because it used ${_}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
4033
|
-
value: "E543",
|
|
4034
|
-
enumerable: !1,
|
|
4035
|
-
configurable: !0
|
|
4036
|
-
});
|
|
4037
|
-
}
|
|
4038
|
-
function E(t, _) {
|
|
4039
|
-
const c = Object.defineProperty(new Error(`Route ${t.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", {
|
|
4040
|
-
value: "E842",
|
|
4041
|
-
enumerable: !1,
|
|
4042
|
-
configurable: !0
|
|
4043
|
-
});
|
|
4044
|
-
throw Error.captureStackTrace(c, _), t.invalidDynamicUsageError ?? (t.invalidDynamicUsageError = c), c;
|
|
4045
|
-
}
|
|
4046
|
-
function u() {
|
|
4047
|
-
const t = d.afterTaskAsyncStorage.getStore();
|
|
4048
|
-
return (t == null ? void 0 : t.rootTaskSpawnPhase) === "action";
|
|
4049
|
-
}
|
|
4050
|
-
})(Tt)), Tt;
|
|
4051
|
-
}
|
|
4052
|
-
var Pt = {}, Ot = {}, Cr;
|
|
4053
|
-
function vn() {
|
|
4054
|
-
return Cr || (Cr = 1, (function(s) {
|
|
4055
|
-
Object.defineProperty(s, "__esModule", {
|
|
4056
|
-
value: !0
|
|
4057
|
-
}), Object.defineProperty(s, "createPromiseWithResolvers", {
|
|
4058
|
-
enumerable: !0,
|
|
4059
|
-
get: function() {
|
|
4060
|
-
return o;
|
|
4061
|
-
}
|
|
4062
|
-
});
|
|
4063
|
-
function o() {
|
|
4064
|
-
let g, d;
|
|
4065
|
-
const l = new Promise((E, u) => {
|
|
4066
|
-
g = E, d = u;
|
|
4067
|
-
});
|
|
4068
|
-
return {
|
|
4069
|
-
resolve: g,
|
|
4070
|
-
reject: d,
|
|
4071
|
-
promise: l
|
|
4072
|
-
};
|
|
4073
|
-
}
|
|
4074
|
-
})(Ot)), Ot;
|
|
4075
|
-
}
|
|
4076
|
-
var Ir;
|
|
4077
|
-
function wn() {
|
|
4078
|
-
return Ir || (Ir = 1, (function(s) {
|
|
4079
|
-
Object.defineProperty(s, "__esModule", {
|
|
4080
|
-
value: !0
|
|
4081
|
-
});
|
|
4082
|
-
function o(_, c) {
|
|
4083
|
-
for (var r in c) Object.defineProperty(_, r, {
|
|
4084
|
-
enumerable: !0,
|
|
4085
|
-
get: c[r]
|
|
4086
|
-
});
|
|
4087
|
-
}
|
|
4088
|
-
o(s, {
|
|
4089
|
-
RenderStage: function() {
|
|
4090
|
-
return l;
|
|
4091
|
-
},
|
|
4092
|
-
StagedRenderingController: function() {
|
|
4093
|
-
return E;
|
|
4094
|
-
}
|
|
4095
|
-
});
|
|
4096
|
-
const g = kt(), d = vn();
|
|
4097
|
-
var l = /* @__PURE__ */ (function(_) {
|
|
4098
|
-
return _[_.Before = 1] = "Before", _[_.Static = 2] = "Static", _[_.Runtime = 3] = "Runtime", _[_.Dynamic = 4] = "Dynamic", _[_.Abandoned = 5] = "Abandoned", _;
|
|
4099
|
-
})({});
|
|
4100
|
-
class E {
|
|
4101
|
-
constructor(c = null, r) {
|
|
4102
|
-
this.abortSignal = c, this.hasRuntimePrefetch = r, this.currentStage = 1, this.staticInterruptReason = null, this.runtimeInterruptReason = null, this.staticStageEndTime = 1 / 0, this.runtimeStageEndTime = 1 / 0, this.runtimeStageListeners = [], this.dynamicStageListeners = [], this.runtimeStagePromise = (0, d.createPromiseWithResolvers)(), this.dynamicStagePromise = (0, d.createPromiseWithResolvers)(), this.mayAbandon = !1, c && (c.addEventListener("abort", () => {
|
|
4103
|
-
const { reason: b } = c;
|
|
4104
|
-
this.currentStage < 3 && (this.runtimeStagePromise.promise.catch(u), this.runtimeStagePromise.reject(b)), (this.currentStage < 4 || this.currentStage === 5) && (this.dynamicStagePromise.promise.catch(u), this.dynamicStagePromise.reject(b));
|
|
4105
|
-
}, {
|
|
4106
|
-
once: !0
|
|
4107
|
-
}), this.mayAbandon = !0);
|
|
4108
|
-
}
|
|
4109
|
-
onStage(c, r) {
|
|
4110
|
-
if (this.currentStage >= c)
|
|
4111
|
-
r();
|
|
4112
|
-
else if (c === 3)
|
|
4113
|
-
this.runtimeStageListeners.push(r);
|
|
4114
|
-
else if (c === 4)
|
|
4115
|
-
this.dynamicStageListeners.push(r);
|
|
4116
|
-
else
|
|
4117
|
-
throw Object.defineProperty(new g.InvariantError(`Invalid render stage: ${c}`), "__NEXT_ERROR_CODE", {
|
|
4118
|
-
value: "E881",
|
|
4119
|
-
enumerable: !1,
|
|
4120
|
-
configurable: !0
|
|
4121
|
-
});
|
|
4122
|
-
}
|
|
4123
|
-
canSyncInterrupt() {
|
|
4124
|
-
if (this.currentStage === 1)
|
|
4125
|
-
return !1;
|
|
4126
|
-
const c = this.hasRuntimePrefetch ? 4 : 3;
|
|
4127
|
-
return this.currentStage < c;
|
|
4128
|
-
}
|
|
4129
|
-
syncInterruptCurrentStageWithReason(c) {
|
|
4130
|
-
if (this.currentStage !== 1) {
|
|
4131
|
-
if (this.mayAbandon)
|
|
4132
|
-
return this.abandonRenderImpl();
|
|
4133
|
-
switch (this.currentStage) {
|
|
4134
|
-
case 2: {
|
|
4135
|
-
this.staticInterruptReason = c, this.advanceStage(4);
|
|
4136
|
-
return;
|
|
4137
|
-
}
|
|
4138
|
-
case 3: {
|
|
4139
|
-
this.hasRuntimePrefetch && (this.runtimeInterruptReason = c, this.advanceStage(4));
|
|
4140
|
-
return;
|
|
4141
|
-
}
|
|
4142
|
-
}
|
|
4143
|
-
}
|
|
4144
|
-
}
|
|
4145
|
-
getStaticInterruptReason() {
|
|
4146
|
-
return this.staticInterruptReason;
|
|
4147
|
-
}
|
|
4148
|
-
getRuntimeInterruptReason() {
|
|
4149
|
-
return this.runtimeInterruptReason;
|
|
4150
|
-
}
|
|
4151
|
-
getStaticStageEndTime() {
|
|
4152
|
-
return this.staticStageEndTime;
|
|
4153
|
-
}
|
|
4154
|
-
getRuntimeStageEndTime() {
|
|
4155
|
-
return this.runtimeStageEndTime;
|
|
4156
|
-
}
|
|
4157
|
-
abandonRender() {
|
|
4158
|
-
if (!this.mayAbandon)
|
|
4159
|
-
throw Object.defineProperty(new g.InvariantError("`abandonRender` called on a stage controller that cannot be abandoned."), "__NEXT_ERROR_CODE", {
|
|
4160
|
-
value: "E938",
|
|
4161
|
-
enumerable: !1,
|
|
4162
|
-
configurable: !0
|
|
4163
|
-
});
|
|
4164
|
-
this.abandonRenderImpl();
|
|
4165
|
-
}
|
|
4166
|
-
abandonRenderImpl() {
|
|
4167
|
-
const { currentStage: c } = this;
|
|
4168
|
-
switch (c) {
|
|
4169
|
-
case 2: {
|
|
4170
|
-
this.currentStage = 5, this.resolveRuntimeStage();
|
|
4171
|
-
return;
|
|
4172
|
-
}
|
|
4173
|
-
case 3: {
|
|
4174
|
-
this.currentStage = 5;
|
|
4175
|
-
return;
|
|
4176
|
-
}
|
|
4177
|
-
}
|
|
4178
|
-
}
|
|
4179
|
-
advanceStage(c) {
|
|
4180
|
-
if (c <= this.currentStage)
|
|
4181
|
-
return;
|
|
4182
|
-
let r = this.currentStage;
|
|
4183
|
-
if (this.currentStage = c, r < 3 && c >= 3 && (this.staticStageEndTime = performance.now() + performance.timeOrigin, this.resolveRuntimeStage()), r < 4 && c >= 4) {
|
|
4184
|
-
this.runtimeStageEndTime = performance.now() + performance.timeOrigin, this.resolveDynamicStage();
|
|
4185
|
-
return;
|
|
4186
|
-
}
|
|
4187
|
-
}
|
|
4188
|
-
/** Fire the `onStage` listeners for the runtime stage and unblock any promises waiting for it. */
|
|
4189
|
-
resolveRuntimeStage() {
|
|
4190
|
-
const c = this.runtimeStageListeners;
|
|
4191
|
-
for (let r = 0; r < c.length; r++)
|
|
4192
|
-
c[r]();
|
|
4193
|
-
c.length = 0, this.runtimeStagePromise.resolve();
|
|
4194
|
-
}
|
|
4195
|
-
/** Fire the `onStage` listeners for the dynamic stage and unblock any promises waiting for it. */
|
|
4196
|
-
resolveDynamicStage() {
|
|
4197
|
-
const c = this.dynamicStageListeners;
|
|
4198
|
-
for (let r = 0; r < c.length; r++)
|
|
4199
|
-
c[r]();
|
|
4200
|
-
c.length = 0, this.dynamicStagePromise.resolve();
|
|
4201
|
-
}
|
|
4202
|
-
getStagePromise(c) {
|
|
4203
|
-
switch (c) {
|
|
4204
|
-
case 3:
|
|
4205
|
-
return this.runtimeStagePromise.promise;
|
|
4206
|
-
case 4:
|
|
4207
|
-
return this.dynamicStagePromise.promise;
|
|
4208
|
-
default:
|
|
4209
|
-
throw Object.defineProperty(new g.InvariantError(`Invalid render stage: ${c}`), "__NEXT_ERROR_CODE", {
|
|
4210
|
-
value: "E881",
|
|
4211
|
-
enumerable: !1,
|
|
4212
|
-
configurable: !0
|
|
4213
|
-
});
|
|
4214
|
-
}
|
|
4215
|
-
}
|
|
4216
|
-
waitForStage(c) {
|
|
4217
|
-
return this.getStagePromise(c);
|
|
4218
|
-
}
|
|
4219
|
-
delayUntilStage(c, r, b) {
|
|
4220
|
-
const w = this.getStagePromise(c), k = t(w, r, b);
|
|
4221
|
-
return this.abortSignal && k.catch(u), k;
|
|
4222
|
-
}
|
|
4223
|
-
}
|
|
4224
|
-
function u() {
|
|
4225
|
-
}
|
|
4226
|
-
function t(_, c, r) {
|
|
4227
|
-
const b = new Promise((w, k) => {
|
|
4228
|
-
_.then(w.bind(null, r), k);
|
|
4229
|
-
});
|
|
4230
|
-
return c !== void 0 && (b.displayName = c), b;
|
|
4231
|
-
}
|
|
4232
|
-
})(Pt)), Pt;
|
|
4233
|
-
}
|
|
4234
|
-
var Dr;
|
|
4235
|
-
function Tn() {
|
|
4236
|
-
return Dr || (Dr = 1, (function(s) {
|
|
4237
|
-
Object.defineProperty(s, "__esModule", {
|
|
4238
|
-
value: !0
|
|
4239
|
-
}), Object.defineProperty(s, "connection", {
|
|
4240
|
-
enumerable: !0,
|
|
4241
|
-
get: function() {
|
|
4242
|
-
return _;
|
|
4243
|
-
}
|
|
4244
|
-
});
|
|
4245
|
-
const o = xt(), g = Mr(), d = En(), l = jt(), E = Hr(), u = yn(), t = wn();
|
|
4246
|
-
function _() {
|
|
4247
|
-
const c = "connection", r = o.workAsyncStorage.getStore(), b = g.workUnitAsyncStorage.getStore();
|
|
4248
|
-
if (r) {
|
|
4249
|
-
if (b && b.phase === "after" && !(0, u.isRequestAPICallableInsideAfter)())
|
|
4250
|
-
throw Object.defineProperty(new Error(`Route ${r.route} used \`connection()\` inside \`after()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
4251
|
-
value: "E827",
|
|
4252
|
-
enumerable: !1,
|
|
4253
|
-
configurable: !0
|
|
4254
|
-
});
|
|
4255
|
-
if (r.forceStatic)
|
|
4256
|
-
return Promise.resolve(void 0);
|
|
4257
|
-
if (r.dynamicShouldError)
|
|
4258
|
-
throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${r.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
4259
|
-
value: "E847",
|
|
4260
|
-
enumerable: !1,
|
|
4261
|
-
configurable: !0
|
|
4262
|
-
});
|
|
4263
|
-
if (b)
|
|
4264
|
-
switch (b.type) {
|
|
4265
|
-
case "cache": {
|
|
4266
|
-
const w = Object.defineProperty(new Error(`Route ${r.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
4267
|
-
value: "E841",
|
|
4268
|
-
enumerable: !1,
|
|
4269
|
-
configurable: !0
|
|
4270
|
-
});
|
|
4271
|
-
throw Error.captureStackTrace(w, _), r.invalidDynamicUsageError ?? (r.invalidDynamicUsageError = w), w;
|
|
4272
|
-
}
|
|
4273
|
-
case "private-cache": {
|
|
4274
|
-
const w = Object.defineProperty(new Error(`Route ${r.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
4275
|
-
value: "E837",
|
|
4276
|
-
enumerable: !1,
|
|
4277
|
-
configurable: !0
|
|
4278
|
-
});
|
|
4279
|
-
throw Error.captureStackTrace(w, _), r.invalidDynamicUsageError ?? (r.invalidDynamicUsageError = w), w;
|
|
4280
|
-
}
|
|
4281
|
-
case "unstable-cache":
|
|
4282
|
-
throw Object.defineProperty(new Error(`Route ${r.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
4283
|
-
value: "E840",
|
|
4284
|
-
enumerable: !1,
|
|
4285
|
-
configurable: !0
|
|
4286
|
-
});
|
|
4287
|
-
case "prerender":
|
|
4288
|
-
case "prerender-client":
|
|
4289
|
-
case "prerender-runtime":
|
|
4290
|
-
return (0, E.makeHangingPromise)(b.renderSignal, r.route, "`connection()`");
|
|
4291
|
-
case "prerender-ppr":
|
|
4292
|
-
return (0, d.postponeWithTracking)(r.route, "connection", b.dynamicTracking);
|
|
4293
|
-
case "prerender-legacy":
|
|
4294
|
-
return (0, d.throwToInterruptStaticGeneration)("connection", r, b);
|
|
4295
|
-
case "request":
|
|
4296
|
-
return (0, d.trackDynamicDataInDynamicRender)(b), process.env.NODE_ENV === "development" ? b.asyncApiPromises ? b.asyncApiPromises.connection : (0, E.makeDevtoolsIOAwarePromise)(void 0, b, t.RenderStage.Dynamic) : Promise.resolve(void 0);
|
|
4297
|
-
}
|
|
4298
|
-
}
|
|
4299
|
-
(0, g.throwForMissingRequestStore)(c);
|
|
4300
|
-
}
|
|
4301
|
-
})(_t)), _t;
|
|
4302
|
-
}
|
|
4303
|
-
var xr;
|
|
4304
|
-
function An() {
|
|
4305
|
-
return xr || (xr = 1, (function(s, o) {
|
|
4306
|
-
const g = {
|
|
4307
|
-
NextRequest: Jr().NextRequest,
|
|
4308
|
-
NextResponse: tn().NextResponse,
|
|
4309
|
-
ImageResponse: rn().ImageResponse,
|
|
4310
|
-
userAgentFromString: ir().userAgentFromString,
|
|
4311
|
-
userAgent: ir().userAgent,
|
|
4312
|
-
URLPattern: on().URLPattern,
|
|
4313
|
-
after: un().after,
|
|
4314
|
-
connection: Tn().connection
|
|
4315
|
-
};
|
|
4316
|
-
s.exports = g, o.NextRequest = g.NextRequest, o.NextResponse = g.NextResponse, o.ImageResponse = g.ImageResponse, o.userAgentFromString = g.userAgentFromString, o.userAgent = g.userAgent, o.URLPattern = g.URLPattern, o.after = g.after, o.connection = g.connection;
|
|
4317
|
-
})(ke, ke.exports)), ke.exports;
|
|
4318
|
-
}
|
|
4319
|
-
var Sn = An();
|
|
4320
|
-
function On(s) {
|
|
4321
|
-
var d;
|
|
4322
|
-
const o = s.nextUrl.pathname;
|
|
4323
|
-
if (!De.locales.some(
|
|
4324
|
-
(l) => o.startsWith(`/${l}/`) || o === `/${l}`
|
|
4325
|
-
) && !o.startsWith("/_next") && !o.includes(".")) {
|
|
4326
|
-
let l;
|
|
4327
|
-
const E = (d = s.cookies.get("NEXT_LOCALE")) == null ? void 0 : d.value;
|
|
4328
|
-
if (E && De.locales.includes(E) && (l = E), !l) {
|
|
4329
|
-
const t = s.headers.get("accept-language");
|
|
4330
|
-
if (t) {
|
|
4331
|
-
const _ = t.split(",").map((r) => r.split(";")[0].trim().toLowerCase()), c = {
|
|
1
|
+
import { NextResponse } from "next/server";
|
|
2
|
+
import { routing } from "./routing.js";
|
|
3
|
+
function redirectWithLanguage(request) {
|
|
4
|
+
const pathname = request.nextUrl.pathname;
|
|
5
|
+
const pathnameHasLocale = routing.locales.some(
|
|
6
|
+
(locale) => pathname.startsWith(`/${locale}/`) || pathname === `/${locale}`
|
|
7
|
+
);
|
|
8
|
+
if (!pathnameHasLocale && !pathname.startsWith("/_next") && !pathname.includes(".")) {
|
|
9
|
+
let locale;
|
|
10
|
+
const cookieLocale = request.cookies.get("NEXT_LOCALE")?.value;
|
|
11
|
+
if (cookieLocale && routing.locales.includes(cookieLocale)) {
|
|
12
|
+
locale = cookieLocale;
|
|
13
|
+
}
|
|
14
|
+
if (!locale) {
|
|
15
|
+
const acceptLanguage = request.headers.get("accept-language");
|
|
16
|
+
if (acceptLanguage) {
|
|
17
|
+
const userLanguages = acceptLanguage.split(",").map((lang) => lang.split(";")[0].trim().toLowerCase());
|
|
18
|
+
const languageMap = {
|
|
4332
19
|
"zh-cn": "zh-hans",
|
|
4333
20
|
"zh-hans": "zh-hans",
|
|
4334
21
|
"zh-tw": "zh-hant",
|
|
@@ -4339,25 +26,28 @@ function On(s) {
|
|
|
4339
26
|
ja: "ja",
|
|
4340
27
|
ko: "ko"
|
|
4341
28
|
};
|
|
4342
|
-
for (const
|
|
4343
|
-
const
|
|
4344
|
-
if (
|
|
4345
|
-
|
|
29
|
+
for (const lang of userLanguages) {
|
|
30
|
+
const mappedLang = languageMap[lang] || languageMap[lang.split("--")[0]];
|
|
31
|
+
if (mappedLang && routing.locales.includes(mappedLang)) {
|
|
32
|
+
locale = mappedLang;
|
|
4346
33
|
break;
|
|
4347
34
|
}
|
|
4348
35
|
}
|
|
4349
36
|
}
|
|
4350
37
|
}
|
|
4351
|
-
(!
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
38
|
+
if (!locale || !routing.locales.includes(locale)) {
|
|
39
|
+
locale = routing.defaultLocale;
|
|
40
|
+
}
|
|
41
|
+
const newUrl = new URL(
|
|
42
|
+
`/${locale}${pathname === "/" ? "" : pathname}`,
|
|
43
|
+
request.url
|
|
4355
44
|
);
|
|
4356
|
-
|
|
45
|
+
newUrl.search = request.nextUrl.search;
|
|
46
|
+
return NextResponse.redirect(newUrl);
|
|
4357
47
|
}
|
|
4358
48
|
return null;
|
|
4359
49
|
}
|
|
4360
|
-
const
|
|
50
|
+
const config = {
|
|
4361
51
|
matcher: [
|
|
4362
52
|
// 匹配所有路径,但排除API路由、静态资源等
|
|
4363
53
|
"/((?!api|_next/static|_next/image|favicon.ico|.*\\.).*)",
|
|
@@ -4369,6 +59,6 @@ const Nn = {
|
|
|
4369
59
|
]
|
|
4370
60
|
};
|
|
4371
61
|
export {
|
|
4372
|
-
|
|
4373
|
-
|
|
62
|
+
config,
|
|
63
|
+
redirectWithLanguage as default
|
|
4374
64
|
};
|