@golocalinteractive/golocal-cloud-wrapper 1.3.7 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/app-header.d.ts.map +1 -1
- package/dist/components/app-sidebar.d.ts.map +1 -1
- package/dist/context/PermissionsContext.d.ts +1 -0
- package/dist/context/PermissionsContext.d.ts.map +1 -1
- package/dist/golocal-cloud-wrapper.cjs.js +55 -55
- package/dist/golocal-cloud-wrapper.css +1 -1
- package/dist/golocal-cloud-wrapper.es.js +1980 -1910
- package/dist/hooks/use-auth0-permissions.d.ts +9 -0
- package/dist/hooks/use-auth0-permissions.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/auth/permissions.d.ts +2 -0
- package/dist/lib/auth/permissions.d.ts.map +1 -1
- package/dist/lib/auth/server.d.ts.map +1 -1
- package/dist/lib/auth/useOrg.d.ts +2 -0
- package/dist/lib/auth/useOrg.d.ts.map +1 -0
- package/dist/server.cjs.js +3 -3
- package/dist/server.es.js +369 -365
- package/package.json +1 -1
package/dist/server.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jwtDecode as vr } from "jwt-decode";
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as gr } from "./token-CPL6JoNm.js";
|
|
3
3
|
import { a as mn } from "./token-CPL6JoNm.js";
|
|
4
4
|
import Ar from "react";
|
|
5
5
|
function Pr(r) {
|
|
6
|
-
return
|
|
6
|
+
return gr(r);
|
|
7
7
|
}
|
|
8
8
|
function ln() {
|
|
9
9
|
const {
|
|
@@ -12,7 +12,7 @@ function ln() {
|
|
|
12
12
|
AUTH0_CLIENT_SECRET: c,
|
|
13
13
|
AUTH0_SECRET: u,
|
|
14
14
|
AUTH0_BASE_URL: s,
|
|
15
|
-
APP_BASE_URL:
|
|
15
|
+
APP_BASE_URL: _,
|
|
16
16
|
AUTH0_AUDIENCE: i
|
|
17
17
|
} = process.env, e = i ? { audience: i } : void 0;
|
|
18
18
|
return {
|
|
@@ -20,22 +20,24 @@ function ln() {
|
|
|
20
20
|
...o ? { clientId: o } : {},
|
|
21
21
|
...c ? { clientSecret: c } : {},
|
|
22
22
|
...u ? { secret: u } : {},
|
|
23
|
-
...s ||
|
|
23
|
+
...s || _ ? { appBaseUrl: s || _ } : {},
|
|
24
24
|
...e ? { authorizationParameters: e } : {}
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
async function dn(r) {
|
|
28
|
-
var o, c, u, s,
|
|
28
|
+
var o, c, u, s, _, i, e;
|
|
29
29
|
try {
|
|
30
|
-
const f = await Pr(r).getAccessToken(), n = f == null ? void 0 : f.token,
|
|
30
|
+
const f = await Pr(r).getAccessToken(), n = f == null ? void 0 : f.token, g = vr(n)["https://cloud.golocal.com/org_metadata"], y = g == null ? void 0 : g.metadata;
|
|
31
31
|
return {
|
|
32
|
-
essentialInsights: ((
|
|
33
|
-
organic: ((
|
|
34
|
-
paid: ((
|
|
35
|
-
web: ((
|
|
36
|
-
priceMonster: ((
|
|
37
|
-
management: ((
|
|
38
|
-
|
|
32
|
+
essentialInsights: ((o = y == null ? void 0 : y["essential-insights"]) == null ? void 0 : o.enabled) === !0,
|
|
33
|
+
organic: ((c = y == null ? void 0 : y.organic) == null ? void 0 : c.enabled) === !0,
|
|
34
|
+
paid: ((u = y == null ? void 0 : y.paid) == null ? void 0 : u.enabled) === !0,
|
|
35
|
+
web: ((s = y == null ? void 0 : y.web) == null ? void 0 : s.enabled) === !0,
|
|
36
|
+
priceMonster: ((_ = y == null ? void 0 : y["price-monster"]) == null ? void 0 : _.enabled) === !0,
|
|
37
|
+
management: ((i = y == null ? void 0 : y.management) == null ? void 0 : i.enabled) === !0,
|
|
38
|
+
organicGrowth: ((e = y == null ? void 0 : y["organic-growth"]) == null ? void 0 : e.enabled) === !0,
|
|
39
|
+
se_company_id: (y == null ? void 0 : y.se_company_id) || null,
|
|
40
|
+
orgDisplayName: (g == null ? void 0 : g.display_name) || null
|
|
39
41
|
};
|
|
40
42
|
} catch (a) {
|
|
41
43
|
return console.error(
|
|
@@ -48,7 +50,9 @@ async function dn(r) {
|
|
|
48
50
|
web: !1,
|
|
49
51
|
priceMonster: !1,
|
|
50
52
|
management: !1,
|
|
51
|
-
|
|
53
|
+
organicGrowth: !1,
|
|
54
|
+
se_company_id: null,
|
|
55
|
+
orgDisplayName: null
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
}
|
|
@@ -67,8 +71,8 @@ function Sr() {
|
|
|
67
71
|
if (c) {
|
|
68
72
|
s && (s = s.toLowerCase());
|
|
69
73
|
for (const e of c) {
|
|
70
|
-
var
|
|
71
|
-
const a = (
|
|
74
|
+
var _, i;
|
|
75
|
+
const a = (_ = e.domain) == null ? void 0 : _.split(":", 1)[0].toLowerCase();
|
|
72
76
|
if (u === a || s === e.defaultLocale.toLowerCase() || (i = e.locales) != null && i.some((f) => f.toLowerCase() === s))
|
|
73
77
|
return e;
|
|
74
78
|
}
|
|
@@ -104,10 +108,10 @@ function _t() {
|
|
|
104
108
|
}
|
|
105
109
|
});
|
|
106
110
|
function o(c) {
|
|
107
|
-
const u = c.indexOf("#"), s = c.indexOf("?"),
|
|
108
|
-
return
|
|
109
|
-
pathname: c.substring(0,
|
|
110
|
-
query:
|
|
111
|
+
const u = c.indexOf("#"), s = c.indexOf("?"), _ = s > -1 && (u < 0 || s < u);
|
|
112
|
+
return _ || u > -1 ? {
|
|
113
|
+
pathname: c.substring(0, _ ? s : u),
|
|
114
|
+
query: _ ? c.substring(s, u > -1 ? u : void 0) : "",
|
|
111
115
|
hash: u > -1 ? c.slice(u) : ""
|
|
112
116
|
} : {
|
|
113
117
|
pathname: c,
|
|
@@ -118,7 +122,7 @@ function _t() {
|
|
|
118
122
|
}(Ne)), Ne;
|
|
119
123
|
}
|
|
120
124
|
var St;
|
|
121
|
-
function
|
|
125
|
+
function br() {
|
|
122
126
|
return St || (St = 1, function(r) {
|
|
123
127
|
Object.defineProperty(r, "__esModule", {
|
|
124
128
|
value: !0
|
|
@@ -132,8 +136,8 @@ function gr() {
|
|
|
132
136
|
function c(u, s) {
|
|
133
137
|
if (!u.startsWith("/") || !s)
|
|
134
138
|
return u;
|
|
135
|
-
const { pathname:
|
|
136
|
-
return "" + s +
|
|
139
|
+
const { pathname: _, query: i, hash: e } = (0, o.parsePath)(u);
|
|
140
|
+
return "" + s + _ + i + e;
|
|
137
141
|
}
|
|
138
142
|
}(xe)), xe;
|
|
139
143
|
}
|
|
@@ -152,8 +156,8 @@ function Or() {
|
|
|
152
156
|
function c(u, s) {
|
|
153
157
|
if (!u.startsWith("/") || !s)
|
|
154
158
|
return u;
|
|
155
|
-
const { pathname:
|
|
156
|
-
return "" +
|
|
159
|
+
const { pathname: _, query: i, hash: e } = (0, o.parsePath)(u);
|
|
160
|
+
return "" + _ + s + i + e;
|
|
157
161
|
}
|
|
158
162
|
}(Ie)), Ie;
|
|
159
163
|
}
|
|
@@ -172,8 +176,8 @@ function pt() {
|
|
|
172
176
|
function c(u, s) {
|
|
173
177
|
if (typeof u != "string")
|
|
174
178
|
return !1;
|
|
175
|
-
const { pathname:
|
|
176
|
-
return
|
|
179
|
+
const { pathname: _ } = (0, o.parsePath)(u);
|
|
180
|
+
return _ === s || _.startsWith(s + "/");
|
|
177
181
|
}
|
|
178
182
|
}(Ce)), Ce;
|
|
179
183
|
}
|
|
@@ -188,11 +192,11 @@ function xr() {
|
|
|
188
192
|
return u;
|
|
189
193
|
}
|
|
190
194
|
});
|
|
191
|
-
const o =
|
|
192
|
-
function u(s,
|
|
193
|
-
if (!
|
|
195
|
+
const o = br(), c = pt();
|
|
196
|
+
function u(s, _, i, e) {
|
|
197
|
+
if (!_ || _ === i) return s;
|
|
194
198
|
const a = s.toLowerCase();
|
|
195
|
-
return !e && ((0, c.pathHasPrefix)(a, "/api") || (0, c.pathHasPrefix)(a, "/" +
|
|
199
|
+
return !e && ((0, c.pathHasPrefix)(a, "/api") || (0, c.pathHasPrefix)(a, "/" + _.toLowerCase())) ? s : (0, o.addPathPrefix)(s, "/" + _);
|
|
196
200
|
}
|
|
197
201
|
}(De)), De;
|
|
198
202
|
}
|
|
@@ -204,11 +208,11 @@ function Nr() {
|
|
|
204
208
|
}), Object.defineProperty(r, "formatNextPathnameInfo", {
|
|
205
209
|
enumerable: !0,
|
|
206
210
|
get: function() {
|
|
207
|
-
return
|
|
211
|
+
return _;
|
|
208
212
|
}
|
|
209
213
|
});
|
|
210
|
-
const o = Tr(), c =
|
|
211
|
-
function
|
|
214
|
+
const o = Tr(), c = br(), u = Or(), s = xr();
|
|
215
|
+
function _(i) {
|
|
212
216
|
let e = (0, s.addLocale)(i.pathname, i.locale, i.buildId ? void 0 : i.defaultLocale, i.ignorePrefix);
|
|
213
217
|
return (i.buildId || !i.trailingSlash) && (e = (0, o.removeTrailingSlash)(e)), i.buildId && (e = (0, u.addPathSuffix)((0, c.addPathPrefix)(e, "/_next/data/" + i.buildId), i.pathname === "/" ? "index.json" : ".json")), e = (0, c.addPathPrefix)(e, i.basePath), !i.buildId && i.trailingSlash ? e.endsWith("/") ? e : (0, u.addPathSuffix)(e, "/") : (0, o.removeTrailingSlash)(e);
|
|
214
218
|
}
|
|
@@ -252,14 +256,14 @@ function Dr() {
|
|
|
252
256
|
if (!s) return {
|
|
253
257
|
pathname: u
|
|
254
258
|
};
|
|
255
|
-
let
|
|
256
|
-
|
|
259
|
+
let _ = o.get(s);
|
|
260
|
+
_ || (_ = s.map((n) => n.toLowerCase()), o.set(s, _));
|
|
257
261
|
let i;
|
|
258
262
|
const e = u.split("/", 2);
|
|
259
263
|
if (!e[1]) return {
|
|
260
264
|
pathname: u
|
|
261
265
|
};
|
|
262
|
-
const a = e[1].toLowerCase(), f =
|
|
266
|
+
const a = e[1].toLowerCase(), f = _.indexOf(a);
|
|
263
267
|
return f < 0 ? {
|
|
264
268
|
pathname: u
|
|
265
269
|
} : (i = s[f], u = u.slice(i.length + 1) || "/", {
|
|
@@ -284,8 +288,8 @@ function Cr() {
|
|
|
284
288
|
function c(u, s) {
|
|
285
289
|
if (!(0, o.pathHasPrefix)(u, s))
|
|
286
290
|
return u;
|
|
287
|
-
const
|
|
288
|
-
return
|
|
291
|
+
const _ = u.slice(s.length);
|
|
292
|
+
return _.startsWith("/") ? _ : "/" + _;
|
|
289
293
|
}
|
|
290
294
|
}(qe)), qe;
|
|
291
295
|
}
|
|
@@ -301,23 +305,23 @@ function kr() {
|
|
|
301
305
|
}
|
|
302
306
|
});
|
|
303
307
|
const o = Dr(), c = Cr(), u = pt();
|
|
304
|
-
function s(
|
|
308
|
+
function s(_, i) {
|
|
305
309
|
var e;
|
|
306
310
|
const { basePath: a, i18n: f, trailingSlash: n } = (e = i.nextConfig) != null ? e : {}, d = {
|
|
307
|
-
pathname:
|
|
308
|
-
trailingSlash:
|
|
311
|
+
pathname: _,
|
|
312
|
+
trailingSlash: _ !== "/" ? _.endsWith("/") : n
|
|
309
313
|
};
|
|
310
314
|
a && (0, u.pathHasPrefix)(d.pathname, a) && (d.pathname = (0, c.removePathPrefix)(d.pathname, a), d.basePath = a);
|
|
311
|
-
let
|
|
315
|
+
let g = d.pathname;
|
|
312
316
|
if (d.pathname.startsWith("/_next/data/") && d.pathname.endsWith(".json")) {
|
|
313
317
|
const T = d.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), I = T[0];
|
|
314
|
-
d.buildId = I,
|
|
318
|
+
d.buildId = I, g = T[1] !== "index" ? "/" + T.slice(1).join("/") : "/", i.parseData === !0 && (d.pathname = g);
|
|
315
319
|
}
|
|
316
320
|
if (f) {
|
|
317
321
|
let T = i.i18nProvider ? i.i18nProvider.analyze(d.pathname) : (0, o.normalizeLocalePath)(d.pathname, f.locales);
|
|
318
322
|
d.locale = T.detectedLocale;
|
|
319
|
-
var
|
|
320
|
-
d.pathname = (
|
|
323
|
+
var y;
|
|
324
|
+
d.pathname = (y = T.pathname) != null ? y : d.pathname, !T.detectedLocale && d.buildId && (T = i.i18nProvider ? i.i18nProvider.analyze(g) : (0, o.normalizeLocalePath)(g, f.locales), T.detectedLocale && (d.locale = T.detectedLocale));
|
|
321
325
|
}
|
|
322
326
|
return d;
|
|
323
327
|
}
|
|
@@ -334,30 +338,30 @@ function Er() {
|
|
|
334
338
|
return a;
|
|
335
339
|
}
|
|
336
340
|
});
|
|
337
|
-
const o = Sr(), c = Nr(), u = Ir(), s = kr(),
|
|
341
|
+
const o = Sr(), c = Nr(), u = Ir(), s = kr(), _ = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
338
342
|
function i(f, n) {
|
|
339
|
-
return new URL(String(f).replace(
|
|
343
|
+
return new URL(String(f).replace(_, "localhost"), n && String(n).replace(_, "localhost"));
|
|
340
344
|
}
|
|
341
345
|
const e = Symbol("NextURLInternal");
|
|
342
346
|
class a {
|
|
343
|
-
constructor(n, d,
|
|
344
|
-
let
|
|
345
|
-
typeof d == "object" && "pathname" in d || typeof d == "string" ? (
|
|
346
|
-
url: i(n,
|
|
347
|
+
constructor(n, d, g) {
|
|
348
|
+
let y, T;
|
|
349
|
+
typeof d == "object" && "pathname" in d || typeof d == "string" ? (y = d, T = g || {}) : T = g || d || {}, this[e] = {
|
|
350
|
+
url: i(n, y ?? T.base),
|
|
347
351
|
options: T,
|
|
348
352
|
basePath: ""
|
|
349
353
|
}, this.analyze();
|
|
350
354
|
}
|
|
351
355
|
analyze() {
|
|
352
|
-
var n, d,
|
|
356
|
+
var n, d, g, y, T;
|
|
353
357
|
const I = (0, s.getNextPathnameInfo)(this[e].url.pathname, {
|
|
354
358
|
nextConfig: this[e].options.nextConfig,
|
|
355
359
|
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
356
360
|
i18nProvider: this[e].options.i18nProvider
|
|
357
361
|
}), l = (0, u.getHostname)(this[e].url, this[e].options.headers);
|
|
358
362
|
this[e].domainLocale = this[e].options.i18nProvider ? this[e].options.i18nProvider.detectDomainLocale(l) : (0, o.detectDomainLocale)((d = this[e].options.nextConfig) == null || (n = d.i18n) == null ? void 0 : n.domains, l);
|
|
359
|
-
const
|
|
360
|
-
this[e].url.pathname = I.pathname, this[e].defaultLocale =
|
|
363
|
+
const b = ((g = this[e].domainLocale) == null ? void 0 : g.defaultLocale) || ((T = this[e].options.nextConfig) == null || (y = T.i18n) == null ? void 0 : y.defaultLocale);
|
|
364
|
+
this[e].url.pathname = I.pathname, this[e].defaultLocale = b, this[e].basePath = I.basePath ?? "", this[e].buildId = I.buildId, this[e].locale = I.locale ?? b, this[e].trailingSlash = I.trailingSlash;
|
|
361
365
|
}
|
|
362
366
|
formatPathname() {
|
|
363
367
|
return (0, c.formatNextPathnameInfo)({
|
|
@@ -382,8 +386,8 @@ function Er() {
|
|
|
382
386
|
return this[e].locale ?? "";
|
|
383
387
|
}
|
|
384
388
|
set locale(n) {
|
|
385
|
-
var d,
|
|
386
|
-
if (!this[e].locale || !(!((
|
|
389
|
+
var d, g;
|
|
390
|
+
if (!this[e].locale || !(!((g = this[e].options.nextConfig) == null || (d = g.i18n) == null) && d.locales.includes(n)))
|
|
387
391
|
throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${n}"`), "__NEXT_ERROR_CODE", {
|
|
388
392
|
value: "E597",
|
|
389
393
|
enumerable: !1,
|
|
@@ -518,7 +522,7 @@ function jr() {
|
|
|
518
522
|
return Q;
|
|
519
523
|
},
|
|
520
524
|
CACHE_ONE_YEAR: function() {
|
|
521
|
-
return
|
|
525
|
+
return m;
|
|
522
526
|
},
|
|
523
527
|
DOT_NEXT_ALIAS: function() {
|
|
524
528
|
return G;
|
|
@@ -536,7 +540,7 @@ function jr() {
|
|
|
536
540
|
return re;
|
|
537
541
|
},
|
|
538
542
|
INFINITE_CACHE: function() {
|
|
539
|
-
return
|
|
543
|
+
return v;
|
|
540
544
|
},
|
|
541
545
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
542
546
|
return X;
|
|
@@ -554,13 +558,13 @@ function jr() {
|
|
|
554
558
|
return T;
|
|
555
559
|
},
|
|
556
560
|
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
557
|
-
return
|
|
561
|
+
return A;
|
|
558
562
|
},
|
|
559
563
|
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
560
564
|
return l;
|
|
561
565
|
},
|
|
562
566
|
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
563
|
-
return
|
|
567
|
+
return b;
|
|
564
568
|
},
|
|
565
569
|
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
566
570
|
return t;
|
|
@@ -569,25 +573,25 @@ function jr() {
|
|
|
569
573
|
return I;
|
|
570
574
|
},
|
|
571
575
|
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
572
|
-
return
|
|
576
|
+
return p;
|
|
573
577
|
},
|
|
574
578
|
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
575
|
-
return
|
|
579
|
+
return w;
|
|
576
580
|
},
|
|
577
581
|
NEXT_DATA_SUFFIX: function() {
|
|
578
|
-
return
|
|
582
|
+
return g;
|
|
579
583
|
},
|
|
580
584
|
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
581
585
|
return u;
|
|
582
586
|
},
|
|
583
587
|
NEXT_META_SUFFIX: function() {
|
|
584
|
-
return
|
|
588
|
+
return y;
|
|
585
589
|
},
|
|
586
590
|
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
587
591
|
return c;
|
|
588
592
|
},
|
|
589
593
|
NEXT_RESUME_HEADER: function() {
|
|
590
|
-
return
|
|
594
|
+
return h;
|
|
591
595
|
},
|
|
592
596
|
NON_STANDARD_NODE_ENV: function() {
|
|
593
597
|
return E;
|
|
@@ -596,7 +600,7 @@ function jr() {
|
|
|
596
600
|
return U;
|
|
597
601
|
},
|
|
598
602
|
PRERENDER_REVALIDATE_HEADER: function() {
|
|
599
|
-
return
|
|
603
|
+
return _;
|
|
600
604
|
},
|
|
601
605
|
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
602
606
|
return i;
|
|
@@ -650,7 +654,7 @@ function jr() {
|
|
|
650
654
|
return M;
|
|
651
655
|
},
|
|
652
656
|
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
653
|
-
return
|
|
657
|
+
return P;
|
|
654
658
|
},
|
|
655
659
|
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
656
660
|
return oe;
|
|
@@ -668,7 +672,7 @@ function jr() {
|
|
|
668
672
|
return W;
|
|
669
673
|
}
|
|
670
674
|
});
|
|
671
|
-
const c = "nxtP", u = "nxtI", s = "x-matched-path",
|
|
675
|
+
const c = "nxtP", u = "nxtI", s = "x-matched-path", _ = "x-prerender-revalidate", i = "x-prerender-revalidate-if-generated", e = ".prefetch.rsc", a = ".segments", f = ".segment.rsc", n = ".rsc", d = ".action", g = ".json", y = ".meta", T = ".body", I = "x-next-cache-tags", l = "x-next-revalidated-tags", b = "x-next-revalidate-tag-token", h = "next-resume", p = 128, w = 256, t = 1024, A = "_N_T_", m = 31536e3, v = 4294967294, S = "middleware", j = `(?:src/)?${S}`, X = "instrumentation", U = "private-next-pages", G = "private-dot-next", H = "private-next-root-dir", Q = "private-next-app-dir", Z = "private-next-rsc-mod-ref-proxy", F = "private-next-rsc-action-validate", z = "private-next-rsc-server-reference", J = "private-next-rsc-cache-wrapper", V = "private-next-rsc-action-encryption", ee = "private-next-rsc-action-client-wrapper", le = "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", oe = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ae = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", de = "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", fe = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", re = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", ue = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", R = "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", E = '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', P = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", C = [
|
|
672
676
|
"app",
|
|
673
677
|
"pages",
|
|
674
678
|
"components",
|
|
@@ -802,7 +806,7 @@ function Rr() {
|
|
|
802
806
|
return s;
|
|
803
807
|
},
|
|
804
808
|
toNodeOutgoingHttpHeaders: function() {
|
|
805
|
-
return
|
|
809
|
+
return _;
|
|
806
810
|
},
|
|
807
811
|
validateURL: function() {
|
|
808
812
|
return i;
|
|
@@ -812,41 +816,41 @@ function Rr() {
|
|
|
812
816
|
function u(a) {
|
|
813
817
|
const f = new Headers();
|
|
814
818
|
for (let [n, d] of Object.entries(a)) {
|
|
815
|
-
const
|
|
819
|
+
const g = Array.isArray(d) ? d : [
|
|
816
820
|
d
|
|
817
821
|
];
|
|
818
|
-
for (let
|
|
819
|
-
typeof
|
|
822
|
+
for (let y of g)
|
|
823
|
+
typeof y > "u" || (typeof y == "number" && (y = y.toString()), f.append(n, y));
|
|
820
824
|
}
|
|
821
825
|
return f;
|
|
822
826
|
}
|
|
823
827
|
function s(a) {
|
|
824
|
-
var f = [], n = 0, d,
|
|
828
|
+
var f = [], n = 0, d, g, y, T, I;
|
|
825
829
|
function l() {
|
|
826
830
|
for (; n < a.length && /\s/.test(a.charAt(n)); )
|
|
827
831
|
n += 1;
|
|
828
832
|
return n < a.length;
|
|
829
833
|
}
|
|
830
|
-
function
|
|
831
|
-
return
|
|
834
|
+
function b() {
|
|
835
|
+
return g = a.charAt(n), g !== "=" && g !== ";" && g !== ",";
|
|
832
836
|
}
|
|
833
837
|
for (; n < a.length; ) {
|
|
834
838
|
for (d = n, I = !1; l(); )
|
|
835
|
-
if (
|
|
836
|
-
for (
|
|
839
|
+
if (g = a.charAt(n), g === ",") {
|
|
840
|
+
for (y = n, n += 1, l(), T = n; n < a.length && b(); )
|
|
837
841
|
n += 1;
|
|
838
|
-
n < a.length && a.charAt(n) === "=" ? (I = !0, n = T, f.push(a.substring(d,
|
|
842
|
+
n < a.length && a.charAt(n) === "=" ? (I = !0, n = T, f.push(a.substring(d, y)), d = n) : n = y + 1;
|
|
839
843
|
} else
|
|
840
844
|
n += 1;
|
|
841
845
|
(!I || n >= a.length) && f.push(a.substring(d, a.length));
|
|
842
846
|
}
|
|
843
847
|
return f;
|
|
844
848
|
}
|
|
845
|
-
function
|
|
849
|
+
function _(a) {
|
|
846
850
|
const f = {}, n = [];
|
|
847
851
|
if (a)
|
|
848
|
-
for (const [d,
|
|
849
|
-
d.toLowerCase() === "set-cookie" ? (n.push(...s(
|
|
852
|
+
for (const [d, g] of a.entries())
|
|
853
|
+
d.toLowerCase() === "set-cookie" ? (n.push(...s(g)), f[d] = n.length === 1 ? n[0] : n) : f[d] = g;
|
|
850
854
|
return f;
|
|
851
855
|
}
|
|
852
856
|
function i(a) {
|
|
@@ -880,8 +884,8 @@ function Lr() {
|
|
|
880
884
|
Object.defineProperty(r, "__esModule", {
|
|
881
885
|
value: !0
|
|
882
886
|
});
|
|
883
|
-
function o(
|
|
884
|
-
for (var e in i) Object.defineProperty(
|
|
887
|
+
function o(_, i) {
|
|
888
|
+
for (var e in i) Object.defineProperty(_, e, {
|
|
885
889
|
enumerable: !0,
|
|
886
890
|
get: i[e]
|
|
887
891
|
});
|
|
@@ -925,25 +929,25 @@ var Xe = {}, Ge, Ut;
|
|
|
925
929
|
function qr() {
|
|
926
930
|
if (Ut) return Ge;
|
|
927
931
|
Ut = 1;
|
|
928
|
-
var r = Object.defineProperty, o = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, u = Object.prototype.hasOwnProperty, s = (t,
|
|
929
|
-
for (var
|
|
930
|
-
r(t,
|
|
931
|
-
},
|
|
932
|
-
if (
|
|
933
|
-
for (let S of c(
|
|
934
|
-
!u.call(t, S) && S !==
|
|
932
|
+
var r = Object.defineProperty, o = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, u = Object.prototype.hasOwnProperty, s = (t, A) => {
|
|
933
|
+
for (var m in A)
|
|
934
|
+
r(t, m, { get: A[m], enumerable: !0 });
|
|
935
|
+
}, _ = (t, A, m, v) => {
|
|
936
|
+
if (A && typeof A == "object" || typeof A == "function")
|
|
937
|
+
for (let S of c(A))
|
|
938
|
+
!u.call(t, S) && S !== m && r(t, S, { get: () => A[S], enumerable: !(v = o(A, S)) || v.enumerable });
|
|
935
939
|
return t;
|
|
936
|
-
}, i = (t) =>
|
|
940
|
+
}, i = (t) => _(r({}, "__esModule", { value: !0 }), t), e = {};
|
|
937
941
|
s(e, {
|
|
938
|
-
RequestCookies: () =>
|
|
939
|
-
ResponseCookies: () =>
|
|
942
|
+
RequestCookies: () => b,
|
|
943
|
+
ResponseCookies: () => h,
|
|
940
944
|
parseCookie: () => f,
|
|
941
945
|
parseSetCookie: () => n,
|
|
942
946
|
stringifyCookie: () => a
|
|
943
947
|
}), Ge = i(e);
|
|
944
948
|
function a(t) {
|
|
945
|
-
var
|
|
946
|
-
const
|
|
949
|
+
var A;
|
|
950
|
+
const m = [
|
|
947
951
|
"path" in t && t.path && `Path=${t.path}`,
|
|
948
952
|
"expires" in t && (t.expires || t.expires === 0) && `Expires=${(typeof t.expires == "number" ? new Date(t.expires) : t.expires).toUTCString()}`,
|
|
949
953
|
"maxAge" in t && typeof t.maxAge == "number" && `Max-Age=${t.maxAge}`,
|
|
@@ -953,31 +957,31 @@ function qr() {
|
|
|
953
957
|
"sameSite" in t && t.sameSite && `SameSite=${t.sameSite}`,
|
|
954
958
|
"partitioned" in t && t.partitioned && "Partitioned",
|
|
955
959
|
"priority" in t && t.priority && `Priority=${t.priority}`
|
|
956
|
-
].filter(Boolean),
|
|
957
|
-
return
|
|
960
|
+
].filter(Boolean), v = `${t.name}=${encodeURIComponent((A = t.value) != null ? A : "")}`;
|
|
961
|
+
return m.length === 0 ? v : `${v}; ${m.join("; ")}`;
|
|
958
962
|
}
|
|
959
963
|
function f(t) {
|
|
960
|
-
const
|
|
961
|
-
for (const
|
|
962
|
-
if (!
|
|
964
|
+
const A = /* @__PURE__ */ new Map();
|
|
965
|
+
for (const m of t.split(/; */)) {
|
|
966
|
+
if (!m)
|
|
963
967
|
continue;
|
|
964
|
-
const
|
|
965
|
-
if (
|
|
966
|
-
|
|
968
|
+
const v = m.indexOf("=");
|
|
969
|
+
if (v === -1) {
|
|
970
|
+
A.set(m, "true");
|
|
967
971
|
continue;
|
|
968
972
|
}
|
|
969
|
-
const [S, j] = [
|
|
973
|
+
const [S, j] = [m.slice(0, v), m.slice(v + 1)];
|
|
970
974
|
try {
|
|
971
|
-
|
|
975
|
+
A.set(S, decodeURIComponent(j ?? "true"));
|
|
972
976
|
} catch {
|
|
973
977
|
}
|
|
974
978
|
}
|
|
975
|
-
return
|
|
979
|
+
return A;
|
|
976
980
|
}
|
|
977
981
|
function n(t) {
|
|
978
982
|
if (!t)
|
|
979
983
|
return;
|
|
980
|
-
const [[
|
|
984
|
+
const [[A, m], ...v] = f(t), {
|
|
981
985
|
domain: S,
|
|
982
986
|
expires: j,
|
|
983
987
|
httponly: X,
|
|
@@ -988,19 +992,19 @@ function qr() {
|
|
|
988
992
|
partitioned: Z,
|
|
989
993
|
priority: F
|
|
990
994
|
} = Object.fromEntries(
|
|
991
|
-
|
|
995
|
+
v.map(([J, V]) => [
|
|
992
996
|
J.toLowerCase().replace(/-/g, ""),
|
|
993
997
|
V
|
|
994
998
|
])
|
|
995
999
|
), z = {
|
|
996
|
-
name:
|
|
997
|
-
value: decodeURIComponent(
|
|
1000
|
+
name: A,
|
|
1001
|
+
value: decodeURIComponent(m),
|
|
998
1002
|
domain: S,
|
|
999
1003
|
...j && { expires: new Date(j) },
|
|
1000
1004
|
...X && { httpOnly: !0 },
|
|
1001
1005
|
...typeof U == "string" && { maxAge: Number(U) },
|
|
1002
1006
|
path: G,
|
|
1003
|
-
...H && { sameSite:
|
|
1007
|
+
...H && { sameSite: y(H) },
|
|
1004
1008
|
...Q && { secure: !0 },
|
|
1005
1009
|
...F && { priority: I(F) },
|
|
1006
1010
|
...Z && { partitioned: !0 }
|
|
@@ -1008,14 +1012,14 @@ function qr() {
|
|
|
1008
1012
|
return d(z);
|
|
1009
1013
|
}
|
|
1010
1014
|
function d(t) {
|
|
1011
|
-
const
|
|
1012
|
-
for (const
|
|
1013
|
-
t[
|
|
1014
|
-
return
|
|
1015
|
+
const A = {};
|
|
1016
|
+
for (const m in t)
|
|
1017
|
+
t[m] && (A[m] = t[m]);
|
|
1018
|
+
return A;
|
|
1015
1019
|
}
|
|
1016
|
-
var
|
|
1017
|
-
function
|
|
1018
|
-
return t = t.toLowerCase(),
|
|
1020
|
+
var g = ["strict", "lax", "none"];
|
|
1021
|
+
function y(t) {
|
|
1022
|
+
return t = t.toLowerCase(), g.includes(t) ? t : void 0;
|
|
1019
1023
|
}
|
|
1020
1024
|
var T = ["low", "medium", "high"];
|
|
1021
1025
|
function I(t) {
|
|
@@ -1024,35 +1028,35 @@ function qr() {
|
|
|
1024
1028
|
function l(t) {
|
|
1025
1029
|
if (!t)
|
|
1026
1030
|
return [];
|
|
1027
|
-
var
|
|
1031
|
+
var A = [], m = 0, v, S, j, X, U;
|
|
1028
1032
|
function G() {
|
|
1029
|
-
for (;
|
|
1030
|
-
|
|
1031
|
-
return
|
|
1033
|
+
for (; m < t.length && /\s/.test(t.charAt(m)); )
|
|
1034
|
+
m += 1;
|
|
1035
|
+
return m < t.length;
|
|
1032
1036
|
}
|
|
1033
1037
|
function H() {
|
|
1034
|
-
return S = t.charAt(
|
|
1035
|
-
}
|
|
1036
|
-
for (;
|
|
1037
|
-
for (
|
|
1038
|
-
if (S = t.charAt(
|
|
1039
|
-
for (j =
|
|
1040
|
-
|
|
1041
|
-
|
|
1038
|
+
return S = t.charAt(m), S !== "=" && S !== ";" && S !== ",";
|
|
1039
|
+
}
|
|
1040
|
+
for (; m < t.length; ) {
|
|
1041
|
+
for (v = m, U = !1; G(); )
|
|
1042
|
+
if (S = t.charAt(m), S === ",") {
|
|
1043
|
+
for (j = m, m += 1, G(), X = m; m < t.length && H(); )
|
|
1044
|
+
m += 1;
|
|
1045
|
+
m < t.length && t.charAt(m) === "=" ? (U = !0, m = X, A.push(t.substring(v, j)), v = m) : m = j + 1;
|
|
1042
1046
|
} else
|
|
1043
|
-
|
|
1044
|
-
(!U ||
|
|
1047
|
+
m += 1;
|
|
1048
|
+
(!U || m >= t.length) && A.push(t.substring(v, t.length));
|
|
1045
1049
|
}
|
|
1046
|
-
return
|
|
1050
|
+
return A;
|
|
1047
1051
|
}
|
|
1048
|
-
var
|
|
1052
|
+
var b = class {
|
|
1049
1053
|
constructor(t) {
|
|
1050
1054
|
this._parsed = /* @__PURE__ */ new Map(), this._headers = t;
|
|
1051
|
-
const
|
|
1052
|
-
if (
|
|
1053
|
-
const
|
|
1054
|
-
for (const [
|
|
1055
|
-
this._parsed.set(
|
|
1055
|
+
const A = t.get("cookie");
|
|
1056
|
+
if (A) {
|
|
1057
|
+
const m = f(A);
|
|
1058
|
+
for (const [v, S] of m)
|
|
1059
|
+
this._parsed.set(v, { name: v, value: S });
|
|
1056
1060
|
}
|
|
1057
1061
|
}
|
|
1058
1062
|
[Symbol.iterator]() {
|
|
@@ -1065,36 +1069,36 @@ function qr() {
|
|
|
1065
1069
|
return this._parsed.size;
|
|
1066
1070
|
}
|
|
1067
1071
|
get(...t) {
|
|
1068
|
-
const
|
|
1069
|
-
return this._parsed.get(
|
|
1072
|
+
const A = typeof t[0] == "string" ? t[0] : t[0].name;
|
|
1073
|
+
return this._parsed.get(A);
|
|
1070
1074
|
}
|
|
1071
1075
|
getAll(...t) {
|
|
1072
|
-
var
|
|
1073
|
-
const
|
|
1076
|
+
var A;
|
|
1077
|
+
const m = Array.from(this._parsed);
|
|
1074
1078
|
if (!t.length)
|
|
1075
|
-
return
|
|
1076
|
-
const
|
|
1077
|
-
return
|
|
1079
|
+
return m.map(([S, j]) => j);
|
|
1080
|
+
const v = typeof t[0] == "string" ? t[0] : (A = t[0]) == null ? void 0 : A.name;
|
|
1081
|
+
return m.filter(([S]) => S === v).map(([S, j]) => j);
|
|
1078
1082
|
}
|
|
1079
1083
|
has(t) {
|
|
1080
1084
|
return this._parsed.has(t);
|
|
1081
1085
|
}
|
|
1082
1086
|
set(...t) {
|
|
1083
|
-
const [
|
|
1084
|
-
return
|
|
1087
|
+
const [A, m] = t.length === 1 ? [t[0].name, t[0].value] : t, v = this._parsed;
|
|
1088
|
+
return v.set(A, { name: A, value: m }), this._headers.set(
|
|
1085
1089
|
"cookie",
|
|
1086
|
-
Array.from(
|
|
1090
|
+
Array.from(v).map(([S, j]) => a(j)).join("; ")
|
|
1087
1091
|
), this;
|
|
1088
1092
|
}
|
|
1089
1093
|
/**
|
|
1090
1094
|
* Delete the cookies matching the passed name or names in the request.
|
|
1091
1095
|
*/
|
|
1092
1096
|
delete(t) {
|
|
1093
|
-
const
|
|
1097
|
+
const A = this._parsed, m = Array.isArray(t) ? t.map((v) => A.delete(v)) : A.delete(t);
|
|
1094
1098
|
return this._headers.set(
|
|
1095
1099
|
"cookie",
|
|
1096
|
-
Array.from(
|
|
1097
|
-
),
|
|
1100
|
+
Array.from(A).map(([v, S]) => a(S)).join("; ")
|
|
1101
|
+
), m;
|
|
1098
1102
|
}
|
|
1099
1103
|
/**
|
|
1100
1104
|
* Delete all the cookies in the cookies in the request.
|
|
@@ -1111,12 +1115,12 @@ function qr() {
|
|
|
1111
1115
|
toString() {
|
|
1112
1116
|
return [...this._parsed.values()].map((t) => `${t.name}=${encodeURIComponent(t.value)}`).join("; ");
|
|
1113
1117
|
}
|
|
1114
|
-
},
|
|
1118
|
+
}, h = class {
|
|
1115
1119
|
constructor(t) {
|
|
1116
1120
|
this._parsed = /* @__PURE__ */ new Map();
|
|
1117
|
-
var
|
|
1121
|
+
var A, m, v;
|
|
1118
1122
|
this._headers = t;
|
|
1119
|
-
const S = (
|
|
1123
|
+
const S = (v = (m = (A = t.getSetCookie) == null ? void 0 : A.call(t)) != null ? m : t.get("set-cookie")) != null ? v : [], j = Array.isArray(S) ? S : l(S);
|
|
1120
1124
|
for (const X of j) {
|
|
1121
1125
|
const U = n(X);
|
|
1122
1126
|
U && this._parsed.set(U.name, U);
|
|
@@ -1126,19 +1130,19 @@ function qr() {
|
|
|
1126
1130
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
1127
1131
|
*/
|
|
1128
1132
|
get(...t) {
|
|
1129
|
-
const
|
|
1130
|
-
return this._parsed.get(
|
|
1133
|
+
const A = typeof t[0] == "string" ? t[0] : t[0].name;
|
|
1134
|
+
return this._parsed.get(A);
|
|
1131
1135
|
}
|
|
1132
1136
|
/**
|
|
1133
1137
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
1134
1138
|
*/
|
|
1135
1139
|
getAll(...t) {
|
|
1136
|
-
var
|
|
1137
|
-
const
|
|
1140
|
+
var A;
|
|
1141
|
+
const m = Array.from(this._parsed.values());
|
|
1138
1142
|
if (!t.length)
|
|
1139
|
-
return
|
|
1140
|
-
const
|
|
1141
|
-
return
|
|
1143
|
+
return m;
|
|
1144
|
+
const v = typeof t[0] == "string" ? t[0] : (A = t[0]) == null ? void 0 : A.name;
|
|
1145
|
+
return m.filter((S) => S.name === v);
|
|
1142
1146
|
}
|
|
1143
1147
|
has(t) {
|
|
1144
1148
|
return this._parsed.has(t);
|
|
@@ -1147,15 +1151,15 @@ function qr() {
|
|
|
1147
1151
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
1148
1152
|
*/
|
|
1149
1153
|
set(...t) {
|
|
1150
|
-
const [
|
|
1151
|
-
return S.set(
|
|
1154
|
+
const [A, m, v] = t.length === 1 ? [t[0].name, t[0].value, t[0]] : t, S = this._parsed;
|
|
1155
|
+
return S.set(A, w({ name: A, value: m, ...v })), p(S, this._headers), this;
|
|
1152
1156
|
}
|
|
1153
1157
|
/**
|
|
1154
1158
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
1155
1159
|
*/
|
|
1156
1160
|
delete(...t) {
|
|
1157
|
-
const [
|
|
1158
|
-
return this.set({ ...
|
|
1161
|
+
const [A, m] = typeof t[0] == "string" ? [t[0]] : [t[0].name, t[0]];
|
|
1162
|
+
return this.set({ ...m, name: A, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
1159
1163
|
}
|
|
1160
1164
|
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1161
1165
|
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
@@ -1164,14 +1168,14 @@ function qr() {
|
|
|
1164
1168
|
return [...this._parsed.values()].map(a).join("; ");
|
|
1165
1169
|
}
|
|
1166
1170
|
};
|
|
1167
|
-
function
|
|
1168
|
-
|
|
1169
|
-
for (const [,
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1171
|
+
function p(t, A) {
|
|
1172
|
+
A.delete("set-cookie");
|
|
1173
|
+
for (const [, m] of t) {
|
|
1174
|
+
const v = a(m);
|
|
1175
|
+
A.append("set-cookie", v);
|
|
1172
1176
|
}
|
|
1173
1177
|
}
|
|
1174
|
-
function
|
|
1178
|
+
function w(t = { name: "", value: "" }) {
|
|
1175
1179
|
return typeof t.expires == "number" && (t.expires = new Date(t.expires)), t.maxAge && (t.expires = new Date(Date.now() + t.maxAge * 1e3)), (t.path === null || t.path === void 0) && (t.path = "/"), t;
|
|
1176
1180
|
}
|
|
1177
1181
|
return Ge;
|
|
@@ -1183,9 +1187,9 @@ function ht() {
|
|
|
1183
1187
|
value: !0
|
|
1184
1188
|
});
|
|
1185
1189
|
function o(u, s) {
|
|
1186
|
-
for (var
|
|
1190
|
+
for (var _ in s) Object.defineProperty(u, _, {
|
|
1187
1191
|
enumerable: !0,
|
|
1188
|
-
get: s[
|
|
1192
|
+
get: s[_]
|
|
1189
1193
|
});
|
|
1190
1194
|
}
|
|
1191
1195
|
o(r, {
|
|
@@ -1222,19 +1226,19 @@ function Mr() {
|
|
|
1222
1226
|
return e;
|
|
1223
1227
|
}
|
|
1224
1228
|
});
|
|
1225
|
-
const c = Er(), u = Rr(), s = Lr(),
|
|
1229
|
+
const c = Er(), u = Rr(), s = Lr(), _ = ht(), i = Symbol("internal request");
|
|
1226
1230
|
class e extends Request {
|
|
1227
1231
|
constructor(f, n = {}) {
|
|
1228
1232
|
const d = typeof f != "string" && "url" in f ? f.url : String(f);
|
|
1229
1233
|
(0, u.validateURL)(d), process.env.NEXT_RUNTIME !== "edge" && n.body && n.duplex !== "half" && (n.duplex = "half"), f instanceof Request ? super(f, n) : super(d, n);
|
|
1230
|
-
const
|
|
1234
|
+
const g = new c.NextURL(d, {
|
|
1231
1235
|
headers: (0, u.toNodeOutgoingHttpHeaders)(this.headers),
|
|
1232
1236
|
nextConfig: n.nextConfig
|
|
1233
1237
|
});
|
|
1234
1238
|
this[i] = {
|
|
1235
|
-
cookies: new
|
|
1236
|
-
nextUrl:
|
|
1237
|
-
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? d :
|
|
1239
|
+
cookies: new _.RequestCookies(this.headers),
|
|
1240
|
+
nextUrl: g,
|
|
1241
|
+
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? d : g.toString()
|
|
1238
1242
|
};
|
|
1239
1243
|
}
|
|
1240
1244
|
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
@@ -1298,12 +1302,12 @@ function Ur() {
|
|
|
1298
1302
|
}
|
|
1299
1303
|
});
|
|
1300
1304
|
class o {
|
|
1301
|
-
static get(u, s,
|
|
1302
|
-
const i = Reflect.get(u, s,
|
|
1305
|
+
static get(u, s, _) {
|
|
1306
|
+
const i = Reflect.get(u, s, _);
|
|
1303
1307
|
return typeof i == "function" ? i.bind(u) : i;
|
|
1304
1308
|
}
|
|
1305
|
-
static set(u, s,
|
|
1306
|
-
return Reflect.set(u, s,
|
|
1309
|
+
static set(u, s, _, i) {
|
|
1310
|
+
return Reflect.set(u, s, _, i);
|
|
1307
1311
|
}
|
|
1308
1312
|
static has(u, s) {
|
|
1309
1313
|
return Reflect.has(u, s);
|
|
@@ -1325,7 +1329,7 @@ function Hr() {
|
|
|
1325
1329
|
return f;
|
|
1326
1330
|
}
|
|
1327
1331
|
});
|
|
1328
|
-
const o = ht(), c = Er(), u = Rr(), s = Ur(),
|
|
1332
|
+
const o = ht(), c = Er(), u = Rr(), s = Ur(), _ = ht(), i = Symbol("internal response"), e = /* @__PURE__ */ new Set([
|
|
1329
1333
|
301,
|
|
1330
1334
|
302,
|
|
1331
1335
|
303,
|
|
@@ -1333,42 +1337,42 @@ function Hr() {
|
|
|
1333
1337
|
308
|
|
1334
1338
|
]);
|
|
1335
1339
|
function a(n, d) {
|
|
1336
|
-
var
|
|
1337
|
-
if (!(n == null || (
|
|
1340
|
+
var g;
|
|
1341
|
+
if (!(n == null || (g = n.request) == null) && g.headers) {
|
|
1338
1342
|
if (!(n.request.headers instanceof Headers))
|
|
1339
1343
|
throw Object.defineProperty(new Error("request.headers must be an instance of Headers"), "__NEXT_ERROR_CODE", {
|
|
1340
1344
|
value: "E119",
|
|
1341
1345
|
enumerable: !1,
|
|
1342
1346
|
configurable: !0
|
|
1343
1347
|
});
|
|
1344
|
-
const
|
|
1348
|
+
const y = [];
|
|
1345
1349
|
for (const [T, I] of n.request.headers)
|
|
1346
|
-
d.set("x-middleware-request-" + T, I),
|
|
1347
|
-
d.set("x-middleware-override-headers",
|
|
1350
|
+
d.set("x-middleware-request-" + T, I), y.push(T);
|
|
1351
|
+
d.set("x-middleware-override-headers", y.join(","));
|
|
1348
1352
|
}
|
|
1349
1353
|
}
|
|
1350
1354
|
class f extends Response {
|
|
1351
|
-
constructor(d,
|
|
1352
|
-
super(d,
|
|
1353
|
-
const
|
|
1354
|
-
get(l,
|
|
1355
|
-
switch (
|
|
1355
|
+
constructor(d, g = {}) {
|
|
1356
|
+
super(d, g);
|
|
1357
|
+
const y = this.headers, T = new _.ResponseCookies(y), I = new Proxy(T, {
|
|
1358
|
+
get(l, b, h) {
|
|
1359
|
+
switch (b) {
|
|
1356
1360
|
case "delete":
|
|
1357
1361
|
case "set":
|
|
1358
|
-
return (...
|
|
1359
|
-
const
|
|
1360
|
-
return
|
|
1362
|
+
return (...p) => {
|
|
1363
|
+
const w = Reflect.apply(l[b], l, p), t = new Headers(y);
|
|
1364
|
+
return w instanceof _.ResponseCookies && y.set("x-middleware-set-cookie", w.getAll().map((A) => (0, o.stringifyCookie)(A)).join(",")), a(g, t), w;
|
|
1361
1365
|
};
|
|
1362
1366
|
default:
|
|
1363
|
-
return s.ReflectAdapter.get(l,
|
|
1367
|
+
return s.ReflectAdapter.get(l, b, h);
|
|
1364
1368
|
}
|
|
1365
1369
|
}
|
|
1366
1370
|
});
|
|
1367
1371
|
this[i] = {
|
|
1368
1372
|
cookies: I,
|
|
1369
|
-
url:
|
|
1370
|
-
headers: (0, u.toNodeOutgoingHttpHeaders)(
|
|
1371
|
-
nextConfig:
|
|
1373
|
+
url: g.url ? new c.NextURL(g.url, {
|
|
1374
|
+
headers: (0, u.toNodeOutgoingHttpHeaders)(y),
|
|
1375
|
+
nextConfig: g.nextConfig
|
|
1372
1376
|
}) : void 0
|
|
1373
1377
|
};
|
|
1374
1378
|
}
|
|
@@ -1390,37 +1394,37 @@ function Hr() {
|
|
|
1390
1394
|
get cookies() {
|
|
1391
1395
|
return this[i].cookies;
|
|
1392
1396
|
}
|
|
1393
|
-
static json(d,
|
|
1394
|
-
const
|
|
1395
|
-
return new f(
|
|
1397
|
+
static json(d, g) {
|
|
1398
|
+
const y = Response.json(d, g);
|
|
1399
|
+
return new f(y.body, y);
|
|
1396
1400
|
}
|
|
1397
|
-
static redirect(d,
|
|
1398
|
-
const
|
|
1399
|
-
if (!e.has(
|
|
1401
|
+
static redirect(d, g) {
|
|
1402
|
+
const y = typeof g == "number" ? g : (g == null ? void 0 : g.status) ?? 307;
|
|
1403
|
+
if (!e.has(y))
|
|
1400
1404
|
throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'), "__NEXT_ERROR_CODE", {
|
|
1401
1405
|
value: "E529",
|
|
1402
1406
|
enumerable: !1,
|
|
1403
1407
|
configurable: !0
|
|
1404
1408
|
});
|
|
1405
|
-
const T = typeof
|
|
1409
|
+
const T = typeof g == "object" ? g : {}, I = new Headers(T == null ? void 0 : T.headers);
|
|
1406
1410
|
return I.set("Location", (0, u.validateURL)(d)), new f(null, {
|
|
1407
1411
|
...T,
|
|
1408
1412
|
headers: I,
|
|
1409
|
-
status:
|
|
1413
|
+
status: y
|
|
1410
1414
|
});
|
|
1411
1415
|
}
|
|
1412
|
-
static rewrite(d,
|
|
1413
|
-
const
|
|
1414
|
-
return
|
|
1415
|
-
...
|
|
1416
|
-
headers:
|
|
1416
|
+
static rewrite(d, g) {
|
|
1417
|
+
const y = new Headers(g == null ? void 0 : g.headers);
|
|
1418
|
+
return y.set("x-middleware-rewrite", (0, u.validateURL)(d)), a(g, y), new f(null, {
|
|
1419
|
+
...g,
|
|
1420
|
+
headers: y
|
|
1417
1421
|
});
|
|
1418
1422
|
}
|
|
1419
1423
|
static next(d) {
|
|
1420
|
-
const
|
|
1421
|
-
return
|
|
1424
|
+
const g = new Headers(d == null ? void 0 : d.headers);
|
|
1425
|
+
return g.set("x-middleware-next", "1"), a(d, g), new f(null, {
|
|
1422
1426
|
...d,
|
|
1423
|
-
headers:
|
|
1427
|
+
headers: g
|
|
1424
1428
|
});
|
|
1425
1429
|
}
|
|
1426
1430
|
}
|
|
@@ -1449,9 +1453,9 @@ function Xr() {
|
|
|
1449
1453
|
var We = {}, ze = { exports: {} }, Bt;
|
|
1450
1454
|
function Gr() {
|
|
1451
1455
|
return Bt || (Bt = 1, (() => {
|
|
1452
|
-
var r = { 226: function(s,
|
|
1456
|
+
var r = { 226: function(s, _) {
|
|
1453
1457
|
(function(i, e) {
|
|
1454
|
-
var a = "1.0.35", f = "", n = "?", d = "function",
|
|
1458
|
+
var a = "1.0.35", f = "", n = "?", d = "function", g = "undefined", y = "object", T = "string", I = "major", l = "model", b = "name", h = "type", p = "vendor", w = "version", t = "architecture", A = "console", m = "mobile", v = "tablet", S = "smarttv", j = "wearable", X = "embedded", U = 350, G = "Amazon", H = "Apple", Q = "ASUS", Z = "BlackBerry", F = "Browser", z = "Chrome", J = "Edge", V = "Firefox", ee = "Google", le = "Huawei", oe = "LG", ae = "Microsoft", de = "Motorola", te = "Opera", se = "Samsung", fe = "Sharp", re = "Sony", ue = "Xiaomi", R = "Zebra", E = "Facebook", P = "Chromium OS", C = "Mac OS", M = function(D, L) {
|
|
1455
1459
|
var N = {};
|
|
1456
1460
|
for (var q in D)
|
|
1457
1461
|
L[q] && L[q].length % 2 === 0 ? N[q] = L[q].concat(D[q]) : N[q] = D[q];
|
|
@@ -1468,44 +1472,44 @@ function Gr() {
|
|
|
1468
1472
|
return typeof D === T ? D.replace(/[^\d\.]/g, f).split(".")[0] : e;
|
|
1469
1473
|
}, he = function(D, L) {
|
|
1470
1474
|
if (typeof D === T)
|
|
1471
|
-
return D = D.replace(/^\s\s*/, f), typeof L ===
|
|
1475
|
+
return D = D.replace(/^\s\s*/, f), typeof L === g ? D : D.substring(0, U);
|
|
1472
1476
|
}, ne = function(D, L) {
|
|
1473
1477
|
for (var N = 0, q, ie, Y, k, x, K; N < L.length && !x; ) {
|
|
1474
1478
|
var ve = L[N], wt = L[N + 1];
|
|
1475
1479
|
for (q = ie = 0; q < ve.length && !x && ve[q]; )
|
|
1476
1480
|
if (x = ve[q++].exec(D), x)
|
|
1477
1481
|
for (Y = 0; Y < wt.length; Y++)
|
|
1478
|
-
K = x[++ie], k = wt[Y], typeof k ===
|
|
1482
|
+
K = x[++ie], k = wt[Y], typeof k === y && k.length > 0 ? k.length === 2 ? typeof k[1] == d ? this[k[0]] = k[1].call(this, K) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === d && !(k[1].exec && k[1].test) ? this[k[0]] = K ? k[1].call(this, K, k[2]) : e : this[k[0]] = K ? K.replace(k[1], k[2]) : e : k.length === 4 && (this[k[0]] = K ? k[3].call(this, K.replace(k[1], k[2])) : e) : this[k] = K || e;
|
|
1479
1483
|
N += 2;
|
|
1480
1484
|
}
|
|
1481
1485
|
}, we = function(D, L) {
|
|
1482
1486
|
for (var N in L)
|
|
1483
|
-
if (typeof L[N] ===
|
|
1487
|
+
if (typeof L[N] === y && L[N].length > 0) {
|
|
1484
1488
|
for (var q = 0; q < L[N].length; q++)
|
|
1485
1489
|
if (B(L[N][q], D))
|
|
1486
1490
|
return N === n ? e : N;
|
|
1487
1491
|
} else if (B(L[N], D))
|
|
1488
1492
|
return N === n ? e : N;
|
|
1489
1493
|
return D;
|
|
1490
|
-
}, wr = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Rt = { 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" }, yt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [y, [g, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [y, [g, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [g, y], [/opios[\/ ]+([\w\.]+)/i], [y, [g, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [y, [g, te]], [/(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], [g, y], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [y, [g, "UC" + F]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [y, [g, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [y, [g, "WeChat"]], [/konqueror\/([\w\.]+)/i], [y, [g, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [y, [g, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [y, [g, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[g, /(.+)/, "$1 Secure " + F], y], [/\bfocus\/([\w\.]+)/i], [y, [g, V + " Focus"]], [/\bopt\/([\w\.]+)/i], [y, [g, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [y, [g, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [y, [g, "Dolphin"]], [/coast\/([\w\.]+)/i], [y, [g, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [y, [g, "MIUI " + F]], [/fxios\/([-\w\.]+)/i], [y, [g, V]], [/\bqihu|(qi?ho?o?|360)browser/i], [[g, "360 " + F]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[g, /(.+)/, "$1 " + F], y], [/(comodo_dragon)\/([\w\.]+)/i], [[g, /_/g, " "], y], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [g, y], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [g], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[g, E], y], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [g, y], [/\bgsa\/([\w\.]+) .*safari\//i], [y, [g, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [y, [g, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [y, [g, z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[g, z + " WebView"], y], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [y, [g, "Android " + F]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [g, y], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [y, [g, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [y, g], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [g, [y, we, wr]], [/(webkit|khtml)\/([\w\.]+)/i], [g, y], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[g, "Netscape"], y], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [y, [g, V + " 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], [g, y], [/(cobalt)\/([\w\.]+)/i], [g, [y, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[t, "amd64"]], [/(ia32(?=;))/i], [[t, W]], [/((?:i[346]|x)86)[;\)]/i], [[t, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[t, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[t, "armhf"]], [/windows (ce|mobile); ppc;/i], [[t, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[t, /ower/, f, W]], [/(sun4\w)[;\)]/i], [[t, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[t, W]]], 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], [l, [m, se], [_, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [m, se], [_, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [m, H], [_, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [m, H], [_, w]], [/(macintosh);/i], [l, [m, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [m, fe], [_, b]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [m, le], [_, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [m, le], [_, b]], [/\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], [[l, /_/g, " "], [m, ue], [_, b]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [_, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [m, "OPPO"], [_, b]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [m, "Vivo"], [_, b]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [m, "Realme"], [_, b]], [/\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], [l, [m, de], [_, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [m, de], [_, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [m, oe], [_, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [m, oe], [_, b]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [m, "Lenovo"], [_, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [m, "Nokia"], [_, b]], [/(pixel c)\b/i], [l, [m, ee], [_, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [m, ee], [_, b]], [/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], [l, [m, re], [_, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [m, re], [_, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [m, "OnePlus"], [_, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [m, G], [_, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [m, G], [_, b]], [/(playbook);[-\w\),; ]+(rim)/i], [l, m, [_, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [m, Z], [_, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [m, Q], [_, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [m, Q], [_, b]], [/(nexus 9)/i], [l, [m, "HTC"], [_, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [l, /_/g, " "], [_, b]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [m, "Acer"], [_, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [m, "Meizu"], [_, b]], [/(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], [m, l, [_, b]], [/(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], [m, l, [_, w]], [/(surface duo)/i], [l, [m, ae], [_, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [m, "Fairphone"], [_, b]], [/(u304aa)/i], [l, [m, "AT&T"], [_, b]], [/\bsie-(\w*)/i], [l, [m, "Siemens"], [_, b]], [/\b(rct\w+) b/i], [l, [m, "RCA"], [_, w]], [/\b(venue[\d ]{2,7}) b/i], [l, [m, "Dell"], [_, w]], [/\b(q(?:mv|ta)\w+) b/i], [l, [m, "Verizon"], [_, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [m, "Barnes & Noble"], [_, w]], [/\b(tm\d{3}\w+) b/i], [l, [m, "NuVision"], [_, w]], [/\b(k88) b/i], [l, [m, "ZTE"], [_, w]], [/\b(nx\d{3}j) b/i], [l, [m, "ZTE"], [_, b]], [/\b(gen\d{3}) b.+49h/i], [l, [m, "Swiss"], [_, b]], [/\b(zur\d{3}) b/i], [l, [m, "Swiss"], [_, w]], [/\b((zeki)?tb.*\b) b/i], [l, [m, "Zeki"], [_, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], l, [_, w]], [/\b(ns-?\w{0,9}) b/i], [l, [m, "Insignia"], [_, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [m, "NextBook"], [_, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], l, [_, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], l, [_, b]], [/\b(ph-1) /i], [l, [m, "Essential"], [_, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [m, "Envizen"], [_, w]], [/\b(trio[-\w\. ]+) b/i], [l, [m, "MachSpeed"], [_, w]], [/\btu_(1491) b/i], [l, [m, "Rotor"], [_, w]], [/(shield[\w ]+) b/i], [l, [m, "Nvidia"], [_, w]], [/(sprint) (\w+)/i], [m, l, [_, b]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [m, ae], [_, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [m, R], [_, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [m, R], [_, b]], [/smart-tv.+(samsung)/i], [m, [_, S]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [m, se], [_, S]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, oe], [_, S]], [/(apple) ?tv/i], [m, [l, H + " TV"], [_, S]], [/crkey/i], [[l, z + "cast"], [m, ee], [_, S]], [/droid.+aft(\w)( bui|\))/i], [l, [m, G], [_, S]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [m, fe], [_, S]], [/(bravia[\w ]+)( bui|\))/i], [l, [m, re], [_, S]], [/(mitv-\w{5}) bui/i], [l, [m, ue], [_, S]], [/Hbbtv.*(technisat) (.*);/i], [m, l, [_, S]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, he], [l, he], [_, S]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[_, S]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, l, [_, v]], [/droid.+; (shield) bui/i], [l, [m, "Nvidia"], [_, v]], [/(playstation [345portablevi]+)/i], [l, [m, re], [_, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [m, ae], [_, v]], [/((pebble))app/i], [m, l, [_, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [m, H], [_, j]], [/droid.+; (glass) \d/i], [l, [m, ee], [_, j]], [/droid.+; (wt63?0{2,3})\)/i], [l, [m, R], [_, j]], [/(quest( 2| pro)?)/i], [l, [m, E], [_, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [_, X]], [/(aeobc)\b/i], [l, [m, G], [_, X]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [_, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [_, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[_, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[_, b]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [y, [g, J + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [y, [g, "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], [g, y], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [y, g]], os: [[/microsoft (windows) (vista|xp)/i], [g, y], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [g, [y, we, Rt]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[g, "Windows"], [y, we, Rt]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[y, /_/g, "."], [g, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[g, C], [y, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [y, g], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [g, y], [/\(bb(10);/i], [y, [g, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [y, [g, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [y, [g, V + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [y, [g, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [y, [g, "watchOS"]], [/crkey\/([\d\.]+)/i], [y, [g, z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[g, A], y], [/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], [g, y], [/(sunos) ?([\w\.\d]*)/i], [[g, "Solaris"], y], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [g, y]] }, $ = function(D, L) {
|
|
1491
|
-
if (typeof D ===
|
|
1494
|
+
}, wr = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Rt = { 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" }, yt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [w, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [w, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, w], [/opios[\/ ]+([\w\.]+)/i], [w, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [w, [b, te]], [/(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], [b, w], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [w, [b, "UC" + F]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [w, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [w, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [w, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [w, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [w, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + F], w], [/\bfocus\/([\w\.]+)/i], [w, [b, V + " Focus"]], [/\bopt\/([\w\.]+)/i], [w, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [w, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [w, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [w, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [w, [b, "MIUI " + F]], [/fxios\/([-\w\.]+)/i], [w, [b, V]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + F]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + F], w], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], w], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, w], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, E], w], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, w], [/\bgsa\/([\w\.]+) .*safari\//i], [w, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [w, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [w, [b, z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, z + " WebView"], w], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [w, [b, "Android " + F]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, w], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [w, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [w, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [w, we, wr]], [/(webkit|khtml)\/([\w\.]+)/i], [b, w], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], w], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [w, [b, V + " 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], [b, w], [/(cobalt)\/([\w\.]+)/i], [b, [w, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[t, "amd64"]], [/(ia32(?=;))/i], [[t, W]], [/((?:i[346]|x)86)[;\)]/i], [[t, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[t, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[t, "armhf"]], [/windows (ce|mobile); ppc;/i], [[t, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[t, /ower/, f, W]], [/(sun4\w)[;\)]/i], [[t, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[t, W]]], 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], [l, [p, se], [h, v]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [p, se], [h, m]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [p, H], [h, m]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [p, H], [h, v]], [/(macintosh);/i], [l, [p, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [p, fe], [h, m]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [p, le], [h, v]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [p, le], [h, m]], [/\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], [[l, /_/g, " "], [p, ue], [h, m]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [p, ue], [h, v]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [p, "OPPO"], [h, m]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [p, "Vivo"], [h, m]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [p, "Realme"], [h, m]], [/\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], [l, [p, de], [h, m]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [p, de], [h, v]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [p, oe], [h, v]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [p, oe], [h, m]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [p, "Lenovo"], [h, v]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [p, "Nokia"], [h, m]], [/(pixel c)\b/i], [l, [p, ee], [h, v]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [p, ee], [h, m]], [/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], [l, [p, re], [h, m]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [p, re], [h, v]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [p, "OnePlus"], [h, m]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [p, G], [h, v]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [p, G], [h, m]], [/(playbook);[-\w\),; ]+(rim)/i], [l, p, [h, v]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [p, Z], [h, m]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [p, Q], [h, v]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [p, Q], [h, m]], [/(nexus 9)/i], [l, [p, "HTC"], [h, v]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [p, [l, /_/g, " "], [h, m]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [p, "Acer"], [h, v]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [p, "Meizu"], [h, m]], [/(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], [p, l, [h, m]], [/(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], [p, l, [h, v]], [/(surface duo)/i], [l, [p, ae], [h, v]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [p, "Fairphone"], [h, m]], [/(u304aa)/i], [l, [p, "AT&T"], [h, m]], [/\bsie-(\w*)/i], [l, [p, "Siemens"], [h, m]], [/\b(rct\w+) b/i], [l, [p, "RCA"], [h, v]], [/\b(venue[\d ]{2,7}) b/i], [l, [p, "Dell"], [h, v]], [/\b(q(?:mv|ta)\w+) b/i], [l, [p, "Verizon"], [h, v]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [p, "Barnes & Noble"], [h, v]], [/\b(tm\d{3}\w+) b/i], [l, [p, "NuVision"], [h, v]], [/\b(k88) b/i], [l, [p, "ZTE"], [h, v]], [/\b(nx\d{3}j) b/i], [l, [p, "ZTE"], [h, m]], [/\b(gen\d{3}) b.+49h/i], [l, [p, "Swiss"], [h, m]], [/\b(zur\d{3}) b/i], [l, [p, "Swiss"], [h, v]], [/\b((zeki)?tb.*\b) b/i], [l, [p, "Zeki"], [h, v]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[p, "Dragon Touch"], l, [h, v]], [/\b(ns-?\w{0,9}) b/i], [l, [p, "Insignia"], [h, v]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [p, "NextBook"], [h, v]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[p, "Voice"], l, [h, m]], [/\b(lvtel\-)?(v1[12]) b/i], [[p, "LvTel"], l, [h, m]], [/\b(ph-1) /i], [l, [p, "Essential"], [h, m]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [p, "Envizen"], [h, v]], [/\b(trio[-\w\. ]+) b/i], [l, [p, "MachSpeed"], [h, v]], [/\btu_(1491) b/i], [l, [p, "Rotor"], [h, v]], [/(shield[\w ]+) b/i], [l, [p, "Nvidia"], [h, v]], [/(sprint) (\w+)/i], [p, l, [h, m]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [p, ae], [h, m]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [p, R], [h, v]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [p, R], [h, m]], [/smart-tv.+(samsung)/i], [p, [h, S]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [p, se], [h, S]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[p, oe], [h, S]], [/(apple) ?tv/i], [p, [l, H + " TV"], [h, S]], [/crkey/i], [[l, z + "cast"], [p, ee], [h, S]], [/droid.+aft(\w)( bui|\))/i], [l, [p, G], [h, S]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [p, fe], [h, S]], [/(bravia[\w ]+)( bui|\))/i], [l, [p, re], [h, S]], [/(mitv-\w{5}) bui/i], [l, [p, ue], [h, S]], [/Hbbtv.*(technisat) (.*);/i], [p, l, [h, S]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[p, he], [l, he], [h, S]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, S]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [p, l, [h, A]], [/droid.+; (shield) bui/i], [l, [p, "Nvidia"], [h, A]], [/(playstation [345portablevi]+)/i], [l, [p, re], [h, A]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [p, ae], [h, A]], [/((pebble))app/i], [p, l, [h, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [p, H], [h, j]], [/droid.+; (glass) \d/i], [l, [p, ee], [h, j]], [/droid.+; (wt63?0{2,3})\)/i], [l, [p, R], [h, j]], [/(quest( 2| pro)?)/i], [l, [p, E], [h, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [p, [h, X]], [/(aeobc)\b/i], [l, [p, G], [h, X]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [h, m]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [h, v]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, v]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, m]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [p, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [w, [b, J + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [w, [b, "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], [b, w], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [w, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, w], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [w, we, Rt]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [w, we, Rt]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[w, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, C], [w, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [w, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, w], [/\(bb(10);/i], [w, [b, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [w, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [w, [b, V + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [w, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [w, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [w, [b, z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, P], w], [/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], [b, w], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], w], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, w]] }, $ = function(D, L) {
|
|
1495
|
+
if (typeof D === y && (L = D, D = e), !(this instanceof $))
|
|
1492
1496
|
return new $(D, L).getResult();
|
|
1493
|
-
var N = typeof i !==
|
|
1497
|
+
var N = typeof i !== g && i.navigator ? i.navigator : e, q = D || (N && N.userAgent ? N.userAgent : f), ie = N && N.userAgentData ? N.userAgentData : e, Y = L ? M(yt, L) : yt, k = N && N.userAgent == q;
|
|
1494
1498
|
return this.getBrowser = function() {
|
|
1495
1499
|
var x = {};
|
|
1496
|
-
return x[
|
|
1500
|
+
return x[b] = e, x[w] = e, ne.call(x, q, Y.browser), x[I] = ce(x[w]), k && N && N.brave && typeof N.brave.isBrave == d && (x[b] = "Brave"), x;
|
|
1497
1501
|
}, this.getCPU = function() {
|
|
1498
1502
|
var x = {};
|
|
1499
1503
|
return x[t] = e, ne.call(x, q, Y.cpu), x;
|
|
1500
1504
|
}, this.getDevice = function() {
|
|
1501
1505
|
var x = {};
|
|
1502
|
-
return x[
|
|
1506
|
+
return x[p] = e, x[l] = e, x[h] = e, ne.call(x, q, Y.device), k && !x[h] && ie && ie.mobile && (x[h] = m), k && x[l] == "Macintosh" && N && typeof N.standalone !== g && N.maxTouchPoints && N.maxTouchPoints > 2 && (x[l] = "iPad", x[h] = v), x;
|
|
1503
1507
|
}, this.getEngine = function() {
|
|
1504
1508
|
var x = {};
|
|
1505
|
-
return x[
|
|
1509
|
+
return x[b] = e, x[w] = e, ne.call(x, q, Y.engine), x;
|
|
1506
1510
|
}, this.getOS = function() {
|
|
1507
1511
|
var x = {};
|
|
1508
|
-
return x[
|
|
1512
|
+
return x[b] = e, x[w] = e, ne.call(x, q, Y.os), k && !x[b] && ie && ie.platform != "Unknown" && (x[b] = ie.platform.replace(/chrome os/i, P).replace(/macos/i, C)), x;
|
|
1509
1513
|
}, this.getResult = function() {
|
|
1510
1514
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1511
1515
|
}, this.getUA = function() {
|
|
@@ -1514,8 +1518,8 @@ function Gr() {
|
|
|
1514
1518
|
return q = typeof x === T && x.length > U ? he(x, U) : x, this;
|
|
1515
1519
|
}, this.setUA(q), this;
|
|
1516
1520
|
};
|
|
1517
|
-
$.VERSION = a, $.BROWSER = O([
|
|
1518
|
-
var _e = typeof i !==
|
|
1521
|
+
$.VERSION = a, $.BROWSER = O([b, w, I]), $.CPU = O([t]), $.DEVICE = O([l, p, h, A, m, S, v, j, X]), $.ENGINE = $.OS = O([b, w]), typeof _ !== g ? (s.exports && (_ = s.exports = $), _.UAParser = $) : typeof i !== g && (i.UAParser = $);
|
|
1522
|
+
var _e = typeof i !== g && (i.jQuery || i.Zepto);
|
|
1519
1523
|
if (_e && !_e.ua) {
|
|
1520
1524
|
var pe = new $();
|
|
1521
1525
|
_e.ua = pe.getResult(), _e.ua.get = function() {
|
|
@@ -1530,9 +1534,9 @@ function Gr() {
|
|
|
1530
1534
|
})(typeof window == "object" ? window : this);
|
|
1531
1535
|
} }, o = {};
|
|
1532
1536
|
function c(s) {
|
|
1533
|
-
var
|
|
1534
|
-
if (
|
|
1535
|
-
return
|
|
1537
|
+
var _ = o[s];
|
|
1538
|
+
if (_ !== void 0)
|
|
1539
|
+
return _.exports;
|
|
1536
1540
|
var i = o[s] = { exports: {} }, e = !0;
|
|
1537
1541
|
try {
|
|
1538
1542
|
r[s].call(i.exports, i, i.exports, c), e = !1;
|
|
@@ -1566,7 +1570,7 @@ function zt() {
|
|
|
1566
1570
|
return i;
|
|
1567
1571
|
},
|
|
1568
1572
|
userAgentFromString: function() {
|
|
1569
|
-
return
|
|
1573
|
+
return _;
|
|
1570
1574
|
}
|
|
1571
1575
|
});
|
|
1572
1576
|
const c = /* @__PURE__ */ u(Gr());
|
|
@@ -1578,14 +1582,14 @@ function zt() {
|
|
|
1578
1582
|
function s(e) {
|
|
1579
1583
|
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(e);
|
|
1580
1584
|
}
|
|
1581
|
-
function
|
|
1585
|
+
function _(e) {
|
|
1582
1586
|
return {
|
|
1583
1587
|
...(0, c.default)(e),
|
|
1584
1588
|
isBot: e === void 0 ? !1 : s(e)
|
|
1585
1589
|
};
|
|
1586
1590
|
}
|
|
1587
1591
|
function i({ headers: e }) {
|
|
1588
|
-
return
|
|
1592
|
+
return _(e.get("user-agent") || void 0);
|
|
1589
1593
|
}
|
|
1590
1594
|
}(We)), We;
|
|
1591
1595
|
}
|
|
@@ -1623,7 +1627,7 @@ function mt() {
|
|
|
1623
1627
|
return i;
|
|
1624
1628
|
},
|
|
1625
1629
|
createAsyncLocalStorage: function() {
|
|
1626
|
-
return
|
|
1630
|
+
return _;
|
|
1627
1631
|
},
|
|
1628
1632
|
createSnapshot: function() {
|
|
1629
1633
|
return e;
|
|
@@ -1654,7 +1658,7 @@ function mt() {
|
|
|
1654
1658
|
}
|
|
1655
1659
|
}
|
|
1656
1660
|
const s = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
|
|
1657
|
-
function
|
|
1661
|
+
function _() {
|
|
1658
1662
|
return s ? new s() : new u();
|
|
1659
1663
|
}
|
|
1660
1664
|
function i(a) {
|
|
@@ -1715,8 +1719,8 @@ function Br() {
|
|
|
1715
1719
|
enumerable: !1,
|
|
1716
1720
|
configurable: !0
|
|
1717
1721
|
});
|
|
1718
|
-
const { afterContext:
|
|
1719
|
-
return
|
|
1722
|
+
const { afterContext: _ } = s;
|
|
1723
|
+
return _.after(u);
|
|
1720
1724
|
}
|
|
1721
1725
|
}(Ke)), Ke;
|
|
1722
1726
|
}
|
|
@@ -1752,16 +1756,16 @@ function zr() {
|
|
|
1752
1756
|
const c = (0, mt().createAsyncLocalStorage)();
|
|
1753
1757
|
}(rt)), rt;
|
|
1754
1758
|
}
|
|
1755
|
-
var
|
|
1759
|
+
var ge = { exports: {} }, tr;
|
|
1756
1760
|
function Vr() {
|
|
1757
1761
|
return tr || (tr = 1, function(r, o) {
|
|
1758
1762
|
Object.defineProperty(o, "__esModule", {
|
|
1759
1763
|
value: !0
|
|
1760
1764
|
});
|
|
1761
|
-
function c(
|
|
1762
|
-
for (var t in
|
|
1765
|
+
function c(p, w) {
|
|
1766
|
+
for (var t in w) Object.defineProperty(p, t, {
|
|
1763
1767
|
enumerable: !0,
|
|
1764
|
-
get:
|
|
1768
|
+
get: w[t]
|
|
1765
1769
|
});
|
|
1766
1770
|
}
|
|
1767
1771
|
c(o, {
|
|
@@ -1769,7 +1773,7 @@ function Vr() {
|
|
|
1769
1773
|
return s;
|
|
1770
1774
|
},
|
|
1771
1775
|
FLIGHT_HEADERS: function() {
|
|
1772
|
-
return
|
|
1776
|
+
return g;
|
|
1773
1777
|
},
|
|
1774
1778
|
NEXT_DID_POSTPONE_HEADER: function() {
|
|
1775
1779
|
return I;
|
|
@@ -1781,13 +1785,13 @@ function Vr() {
|
|
|
1781
1785
|
return a;
|
|
1782
1786
|
},
|
|
1783
1787
|
NEXT_IS_PRERENDER_HEADER: function() {
|
|
1784
|
-
return
|
|
1788
|
+
return h;
|
|
1785
1789
|
},
|
|
1786
1790
|
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
1787
1791
|
return l;
|
|
1788
1792
|
},
|
|
1789
1793
|
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
1790
|
-
return
|
|
1794
|
+
return b;
|
|
1791
1795
|
},
|
|
1792
1796
|
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
1793
1797
|
return i;
|
|
@@ -1799,10 +1803,10 @@ function Vr() {
|
|
|
1799
1803
|
return T;
|
|
1800
1804
|
},
|
|
1801
1805
|
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
1802
|
-
return
|
|
1806
|
+
return _;
|
|
1803
1807
|
},
|
|
1804
1808
|
NEXT_RSC_UNION_QUERY: function() {
|
|
1805
|
-
return
|
|
1809
|
+
return y;
|
|
1806
1810
|
},
|
|
1807
1811
|
NEXT_URL: function() {
|
|
1808
1812
|
return n;
|
|
@@ -1814,26 +1818,26 @@ function Vr() {
|
|
|
1814
1818
|
return u;
|
|
1815
1819
|
}
|
|
1816
1820
|
});
|
|
1817
|
-
const u = "RSC", s = "Next-Action",
|
|
1821
|
+
const u = "RSC", s = "Next-Action", _ = "Next-Router-State-Tree", i = "Next-Router-Prefetch", e = "Next-Router-Segment-Prefetch", a = "Next-HMR-Refresh", f = "__next_hmr_refresh_hash__", n = "Next-Url", d = "text/x-component", g = [
|
|
1818
1822
|
u,
|
|
1819
|
-
|
|
1823
|
+
_,
|
|
1820
1824
|
i,
|
|
1821
1825
|
a,
|
|
1822
1826
|
e
|
|
1823
|
-
],
|
|
1827
|
+
], y = "_rsc", T = "x-nextjs-stale-time", I = "x-nextjs-postponed", l = "x-nextjs-rewritten-path", b = "x-nextjs-rewritten-query", h = "x-nextjs-prerender";
|
|
1824
1828
|
(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), r.exports = o.default);
|
|
1825
|
-
}(
|
|
1829
|
+
}(ge, ge.exports)), ge.exports;
|
|
1826
1830
|
}
|
|
1827
1831
|
var rr;
|
|
1828
|
-
function
|
|
1832
|
+
function gt() {
|
|
1829
1833
|
return rr || (rr = 1, function(r) {
|
|
1830
1834
|
Object.defineProperty(r, "__esModule", {
|
|
1831
1835
|
value: !0
|
|
1832
1836
|
});
|
|
1833
1837
|
function o(n, d) {
|
|
1834
|
-
for (var
|
|
1838
|
+
for (var g in d) Object.defineProperty(n, g, {
|
|
1835
1839
|
enumerable: !0,
|
|
1836
|
-
get: d[
|
|
1840
|
+
get: d[g]
|
|
1837
1841
|
});
|
|
1838
1842
|
}
|
|
1839
1843
|
o(r, {
|
|
@@ -1853,7 +1857,7 @@ function bt() {
|
|
|
1853
1857
|
return e;
|
|
1854
1858
|
},
|
|
1855
1859
|
throwForMissingRequestStore: function() {
|
|
1856
|
-
return
|
|
1860
|
+
return _;
|
|
1857
1861
|
},
|
|
1858
1862
|
workUnitAsyncStorage: function() {
|
|
1859
1863
|
return c.workUnitAsyncStorageInstance;
|
|
@@ -1862,7 +1866,7 @@ function bt() {
|
|
|
1862
1866
|
const c = zr(), u = Vr();
|
|
1863
1867
|
function s(n) {
|
|
1864
1868
|
const d = c.workUnitAsyncStorageInstance.getStore();
|
|
1865
|
-
switch (d ||
|
|
1869
|
+
switch (d || _(n), d.type) {
|
|
1866
1870
|
case "request":
|
|
1867
1871
|
return d;
|
|
1868
1872
|
case "prerender":
|
|
@@ -1889,7 +1893,7 @@ function bt() {
|
|
|
1889
1893
|
return d;
|
|
1890
1894
|
}
|
|
1891
1895
|
}
|
|
1892
|
-
function
|
|
1896
|
+
function _(n) {
|
|
1893
1897
|
throw Object.defineProperty(new Error(`\`${n}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
1894
1898
|
value: "E251",
|
|
1895
1899
|
enumerable: !1,
|
|
@@ -1903,9 +1907,9 @@ function bt() {
|
|
|
1903
1907
|
return n.type !== "prerender-legacy" && n.type !== "cache" && n.type !== "unstable-cache" ? n.type === "request" ? n.renderResumeDataCache : n.prerenderResumeDataCache : null;
|
|
1904
1908
|
}
|
|
1905
1909
|
function a(n, d) {
|
|
1906
|
-
var
|
|
1910
|
+
var g;
|
|
1907
1911
|
if (n.dev)
|
|
1908
|
-
return d.type === "cache" || d.type === "prerender" ? d.hmrRefreshHash : d.type === "request" ? (
|
|
1912
|
+
return d.type === "cache" || d.type === "prerender" ? d.hmrRefreshHash : d.type === "request" ? (g = d.cookies.get(u.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : g.value : void 0;
|
|
1909
1913
|
}
|
|
1910
1914
|
function f(n, d) {
|
|
1911
1915
|
if (n.isDraftMode)
|
|
@@ -1920,7 +1924,7 @@ function bt() {
|
|
|
1920
1924
|
}
|
|
1921
1925
|
}(tt)), tt;
|
|
1922
1926
|
}
|
|
1923
|
-
var nt = {},
|
|
1927
|
+
var nt = {}, be = { exports: {} }, nr;
|
|
1924
1928
|
function Yr() {
|
|
1925
1929
|
return nr || (nr = 1, function(r, o) {
|
|
1926
1930
|
Object.defineProperty(o, "__esModule", {
|
|
@@ -1937,7 +1941,7 @@ function Yr() {
|
|
|
1937
1941
|
return s;
|
|
1938
1942
|
},
|
|
1939
1943
|
isDynamicServerError: function() {
|
|
1940
|
-
return
|
|
1944
|
+
return _;
|
|
1941
1945
|
}
|
|
1942
1946
|
});
|
|
1943
1947
|
const u = "DYNAMIC_SERVER_USAGE";
|
|
@@ -1946,14 +1950,14 @@ function Yr() {
|
|
|
1946
1950
|
super("Dynamic server usage: " + e), this.description = e, this.digest = u;
|
|
1947
1951
|
}
|
|
1948
1952
|
}
|
|
1949
|
-
function
|
|
1953
|
+
function _(i) {
|
|
1950
1954
|
return typeof i != "object" || i === null || !("digest" in i) || typeof i.digest != "string" ? !1 : i.digest === u;
|
|
1951
1955
|
}
|
|
1952
1956
|
(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), r.exports = o.default);
|
|
1953
|
-
}(
|
|
1957
|
+
}(be, be.exports)), be.exports;
|
|
1954
1958
|
}
|
|
1955
1959
|
var Ee = { exports: {} }, ir;
|
|
1956
|
-
function
|
|
1960
|
+
function bt() {
|
|
1957
1961
|
return ir || (ir = 1, function(r, o) {
|
|
1958
1962
|
Object.defineProperty(o, "__esModule", {
|
|
1959
1963
|
value: !0
|
|
@@ -1969,7 +1973,7 @@ function gt() {
|
|
|
1969
1973
|
return s;
|
|
1970
1974
|
},
|
|
1971
1975
|
isStaticGenBailoutError: function() {
|
|
1972
|
-
return
|
|
1976
|
+
return _;
|
|
1973
1977
|
}
|
|
1974
1978
|
});
|
|
1975
1979
|
const u = "NEXT_STATIC_GEN_BAILOUT";
|
|
@@ -1978,7 +1982,7 @@ function gt() {
|
|
|
1978
1982
|
super(...e), this.code = u;
|
|
1979
1983
|
}
|
|
1980
1984
|
}
|
|
1981
|
-
function
|
|
1985
|
+
function _(i) {
|
|
1982
1986
|
return typeof i != "object" || i === null || !("code" in i) ? !1 : i.code === u;
|
|
1983
1987
|
}
|
|
1984
1988
|
(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), r.exports = o.default);
|
|
@@ -2013,21 +2017,21 @@ function Et() {
|
|
|
2013
2017
|
super(`During prerendering, ${f} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${f} 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.expression = f, this.digest = u;
|
|
2014
2018
|
}
|
|
2015
2019
|
}
|
|
2016
|
-
const
|
|
2020
|
+
const _ = /* @__PURE__ */ new WeakMap();
|
|
2017
2021
|
function i(a, f) {
|
|
2018
2022
|
if (a.aborted)
|
|
2019
2023
|
return Promise.reject(new s(f));
|
|
2020
2024
|
{
|
|
2021
|
-
const n = new Promise((d,
|
|
2022
|
-
const
|
|
2023
|
-
let T =
|
|
2025
|
+
const n = new Promise((d, g) => {
|
|
2026
|
+
const y = g.bind(null, new s(f));
|
|
2027
|
+
let T = _.get(a);
|
|
2024
2028
|
if (T)
|
|
2025
|
-
T.push(
|
|
2029
|
+
T.push(y);
|
|
2026
2030
|
else {
|
|
2027
2031
|
const I = [
|
|
2028
|
-
|
|
2032
|
+
y
|
|
2029
2033
|
];
|
|
2030
|
-
|
|
2034
|
+
_.set(a, I), a.addEventListener("abort", () => {
|
|
2031
2035
|
for (let l = 0; l < I.length; l++)
|
|
2032
2036
|
I[l]();
|
|
2033
2037
|
}, {
|
|
@@ -2048,8 +2052,8 @@ function Kr() {
|
|
|
2048
2052
|
Object.defineProperty(r, "__esModule", {
|
|
2049
2053
|
value: !0
|
|
2050
2054
|
});
|
|
2051
|
-
function o(
|
|
2052
|
-
for (var e in i) Object.defineProperty(
|
|
2055
|
+
function o(_, i) {
|
|
2056
|
+
for (var e in i) Object.defineProperty(_, e, {
|
|
2053
2057
|
enumerable: !0,
|
|
2054
2058
|
get: i[e]
|
|
2055
2059
|
});
|
|
@@ -2091,7 +2095,7 @@ function Qr() {
|
|
|
2091
2095
|
return c;
|
|
2092
2096
|
},
|
|
2093
2097
|
waitAtLeastOneReactRenderTask: function() {
|
|
2094
|
-
return
|
|
2098
|
+
return _;
|
|
2095
2099
|
}
|
|
2096
2100
|
});
|
|
2097
2101
|
const c = (i) => {
|
|
@@ -2104,7 +2108,7 @@ function Qr() {
|
|
|
2104
2108
|
function s() {
|
|
2105
2109
|
return new Promise((i) => u(i));
|
|
2106
2110
|
}
|
|
2107
|
-
function
|
|
2111
|
+
function _() {
|
|
2108
2112
|
return process.env.NEXT_RUNTIME === "edge" ? new Promise((i) => setTimeout(i, 0)) : new Promise((i) => setImmediate(i));
|
|
2109
2113
|
}
|
|
2110
2114
|
}(at)), at;
|
|
@@ -2116,20 +2120,20 @@ function yr() {
|
|
|
2116
2120
|
value: !0
|
|
2117
2121
|
});
|
|
2118
2122
|
function o(R, E) {
|
|
2119
|
-
for (var
|
|
2123
|
+
for (var P in E) Object.defineProperty(R, P, {
|
|
2120
2124
|
enumerable: !0,
|
|
2121
|
-
get: E[
|
|
2125
|
+
get: E[P]
|
|
2122
2126
|
});
|
|
2123
2127
|
}
|
|
2124
2128
|
o(r, {
|
|
2125
2129
|
Postpone: function() {
|
|
2126
|
-
return
|
|
2130
|
+
return v;
|
|
2127
2131
|
},
|
|
2128
2132
|
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
2129
|
-
return
|
|
2133
|
+
return A;
|
|
2130
2134
|
},
|
|
2131
2135
|
abortOnSynchronousPlatformIOAccess: function() {
|
|
2132
|
-
return
|
|
2136
|
+
return w;
|
|
2133
2137
|
},
|
|
2134
2138
|
accessedDynamicData: function() {
|
|
2135
2139
|
return Z;
|
|
@@ -2141,10 +2145,10 @@ function yr() {
|
|
|
2141
2145
|
return F;
|
|
2142
2146
|
},
|
|
2143
2147
|
createDynamicTrackingState: function() {
|
|
2144
|
-
return
|
|
2148
|
+
return g;
|
|
2145
2149
|
},
|
|
2146
2150
|
createDynamicValidationState: function() {
|
|
2147
|
-
return
|
|
2151
|
+
return y;
|
|
2148
2152
|
},
|
|
2149
2153
|
createHangingInputAbortSignal: function() {
|
|
2150
2154
|
return ee;
|
|
@@ -2174,13 +2178,13 @@ function yr() {
|
|
|
2174
2178
|
return ue;
|
|
2175
2179
|
},
|
|
2176
2180
|
throwToInterruptStaticGeneration: function() {
|
|
2177
|
-
return
|
|
2181
|
+
return b;
|
|
2178
2182
|
},
|
|
2179
2183
|
trackAllowedDynamicAccess: function() {
|
|
2180
2184
|
return fe;
|
|
2181
2185
|
},
|
|
2182
2186
|
trackDynamicDataInDynamicRender: function() {
|
|
2183
|
-
return
|
|
2187
|
+
return h;
|
|
2184
2188
|
},
|
|
2185
2189
|
trackFallbackParamAccessed: function() {
|
|
2186
2190
|
return l;
|
|
@@ -2189,20 +2193,20 @@ function yr() {
|
|
|
2189
2193
|
return t;
|
|
2190
2194
|
},
|
|
2191
2195
|
trackSynchronousRequestDataAccessInDev: function() {
|
|
2192
|
-
return
|
|
2196
|
+
return m;
|
|
2193
2197
|
},
|
|
2194
2198
|
useDynamicRouteParams: function() {
|
|
2195
2199
|
return oe;
|
|
2196
2200
|
}
|
|
2197
2201
|
});
|
|
2198
|
-
const c = /* @__PURE__ */ n(Ar), u = Yr(), s =
|
|
2202
|
+
const c = /* @__PURE__ */ n(Ar), u = Yr(), s = bt(), _ = gt(), i = ye(), e = Et(), a = Kr(), f = Qr();
|
|
2199
2203
|
function n(R) {
|
|
2200
2204
|
return R && R.__esModule ? R : {
|
|
2201
2205
|
default: R
|
|
2202
2206
|
};
|
|
2203
2207
|
}
|
|
2204
2208
|
const d = typeof c.default.unstable_postpone == "function";
|
|
2205
|
-
function
|
|
2209
|
+
function g(R) {
|
|
2206
2210
|
return {
|
|
2207
2211
|
isDebugDynamicAccesses: R,
|
|
2208
2212
|
dynamicAccesses: [],
|
|
@@ -2210,7 +2214,7 @@ function yr() {
|
|
|
2210
2214
|
syncDynamicErrorWithStack: null
|
|
2211
2215
|
};
|
|
2212
2216
|
}
|
|
2213
|
-
function
|
|
2217
|
+
function y() {
|
|
2214
2218
|
return {
|
|
2215
2219
|
hasSuspendedDynamic: !1,
|
|
2216
2220
|
hasDynamicMetadata: !1,
|
|
@@ -2223,51 +2227,51 @@ function yr() {
|
|
|
2223
2227
|
var E;
|
|
2224
2228
|
return (E = R.dynamicAccesses[0]) == null ? void 0 : E.expression;
|
|
2225
2229
|
}
|
|
2226
|
-
function I(R, E,
|
|
2230
|
+
function I(R, E, P) {
|
|
2227
2231
|
if (!(E && (E.type === "cache" || E.type === "unstable-cache")) && !(R.forceDynamic || R.forceStatic)) {
|
|
2228
2232
|
if (R.dynamicShouldError)
|
|
2229
|
-
throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${R.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${
|
|
2233
|
+
throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${R.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${P}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2230
2234
|
value: "E553",
|
|
2231
2235
|
enumerable: !1,
|
|
2232
2236
|
configurable: !0
|
|
2233
2237
|
});
|
|
2234
2238
|
if (E)
|
|
2235
2239
|
if (E.type === "prerender-ppr")
|
|
2236
|
-
S(R.route,
|
|
2240
|
+
S(R.route, P, E.dynamicTracking);
|
|
2237
2241
|
else if (E.type === "prerender-legacy") {
|
|
2238
2242
|
E.revalidate = 0;
|
|
2239
|
-
const C = Object.defineProperty(new u.DynamicServerError(`Route ${R.route} couldn't be rendered statically because it used ${
|
|
2243
|
+
const C = Object.defineProperty(new u.DynamicServerError(`Route ${R.route} couldn't be rendered statically because it used ${P}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2240
2244
|
value: "E550",
|
|
2241
2245
|
enumerable: !1,
|
|
2242
2246
|
configurable: !0
|
|
2243
2247
|
});
|
|
2244
|
-
throw R.dynamicUsageDescription =
|
|
2248
|
+
throw R.dynamicUsageDescription = P, R.dynamicUsageStack = C.stack, C;
|
|
2245
2249
|
} else process.env.NODE_ENV === "development" && E && E.type === "request" && (E.usedDynamic = !0);
|
|
2246
2250
|
}
|
|
2247
2251
|
}
|
|
2248
2252
|
function l(R, E) {
|
|
2249
|
-
const
|
|
2250
|
-
!
|
|
2253
|
+
const P = _.workUnitAsyncStorage.getStore();
|
|
2254
|
+
!P || P.type !== "prerender-ppr" || S(R.route, E, P.dynamicTracking);
|
|
2251
2255
|
}
|
|
2252
|
-
function
|
|
2256
|
+
function b(R, E, P) {
|
|
2253
2257
|
const C = Object.defineProperty(new u.DynamicServerError(`Route ${E.route} couldn't be rendered statically because it used \`${R}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2254
2258
|
value: "E558",
|
|
2255
2259
|
enumerable: !1,
|
|
2256
2260
|
configurable: !0
|
|
2257
2261
|
});
|
|
2258
|
-
throw
|
|
2262
|
+
throw P.revalidate = 0, E.dynamicUsageDescription = R, E.dynamicUsageStack = C.stack, C;
|
|
2259
2263
|
}
|
|
2260
|
-
function
|
|
2264
|
+
function h(R, E) {
|
|
2261
2265
|
if (E) {
|
|
2262
2266
|
if (E.type === "cache" || E.type === "unstable-cache")
|
|
2263
2267
|
return;
|
|
2264
2268
|
(E.type === "prerender" || E.type === "prerender-legacy") && (E.revalidate = 0), process.env.NODE_ENV === "development" && E.type === "request" && (E.usedDynamic = !0);
|
|
2265
2269
|
}
|
|
2266
2270
|
}
|
|
2267
|
-
function
|
|
2271
|
+
function p(R, E, P) {
|
|
2268
2272
|
const C = `Route ${R} needs to bail out of prerendering at this point because it used ${E}.`, M = H(C);
|
|
2269
|
-
|
|
2270
|
-
const O =
|
|
2273
|
+
P.controller.abort(M);
|
|
2274
|
+
const O = P.dynamicTracking;
|
|
2271
2275
|
O && O.dynamicAccesses.push({
|
|
2272
2276
|
// When we aren't debugging, we don't need to create another error for the
|
|
2273
2277
|
// stack trace.
|
|
@@ -2275,30 +2279,30 @@ function yr() {
|
|
|
2275
2279
|
expression: E
|
|
2276
2280
|
});
|
|
2277
2281
|
}
|
|
2278
|
-
function
|
|
2282
|
+
function w(R, E, P, C) {
|
|
2279
2283
|
const M = C.dynamicTracking;
|
|
2280
|
-
M && M.syncDynamicErrorWithStack === null && (M.syncDynamicExpression = E, M.syncDynamicErrorWithStack =
|
|
2284
|
+
M && M.syncDynamicErrorWithStack === null && (M.syncDynamicExpression = E, M.syncDynamicErrorWithStack = P), p(R, E, C);
|
|
2281
2285
|
}
|
|
2282
2286
|
function t(R) {
|
|
2283
2287
|
R.prerenderPhase = !1;
|
|
2284
2288
|
}
|
|
2285
|
-
function
|
|
2289
|
+
function A(R, E, P, C) {
|
|
2286
2290
|
if (C.controller.signal.aborted === !1) {
|
|
2287
2291
|
const O = C.dynamicTracking;
|
|
2288
|
-
O && O.syncDynamicErrorWithStack === null && (O.syncDynamicExpression = E, O.syncDynamicErrorWithStack =
|
|
2292
|
+
O && O.syncDynamicErrorWithStack === null && (O.syncDynamicExpression = E, O.syncDynamicErrorWithStack = P, C.validating === !0 && (O.syncDynamicLogged = !0)), p(R, E, C);
|
|
2289
2293
|
}
|
|
2290
2294
|
throw H(`Route ${R} needs to bail out of prerendering at this point because it used ${E}.`);
|
|
2291
2295
|
}
|
|
2292
|
-
const
|
|
2293
|
-
function
|
|
2294
|
-
const
|
|
2296
|
+
const m = t;
|
|
2297
|
+
function v({ reason: R, route: E }) {
|
|
2298
|
+
const P = _.workUnitAsyncStorage.getStore(), C = P && P.type === "prerender-ppr" ? P.dynamicTracking : null;
|
|
2295
2299
|
S(E, R, C);
|
|
2296
2300
|
}
|
|
2297
|
-
function S(R, E,
|
|
2298
|
-
J(),
|
|
2301
|
+
function S(R, E, P) {
|
|
2302
|
+
J(), P && P.dynamicAccesses.push({
|
|
2299
2303
|
// When we aren't debugging, we don't need to create another error for the
|
|
2300
2304
|
// stack trace.
|
|
2301
|
-
stack:
|
|
2305
|
+
stack: P.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2302
2306
|
expression: E
|
|
2303
2307
|
}), c.default.unstable_postpone(j(R, E));
|
|
2304
2308
|
}
|
|
@@ -2336,10 +2340,10 @@ function yr() {
|
|
|
2336
2340
|
return R.dynamicAccesses.push(...E.dynamicAccesses), R.dynamicAccesses;
|
|
2337
2341
|
}
|
|
2338
2342
|
function z(R) {
|
|
2339
|
-
return R.filter((E) => typeof E.stack == "string" && E.stack.length > 0).map(({ expression: E, stack:
|
|
2343
|
+
return R.filter((E) => typeof E.stack == "string" && E.stack.length > 0).map(({ expression: E, stack: P }) => (P = P.split(`
|
|
2340
2344
|
`).slice(4).filter((C) => !(C.includes("node_modules/next/") || C.includes(" (<anonymous>)") || C.includes(" (node:"))).join(`
|
|
2341
2345
|
`), `Dynamic API Usage Debug - ${E}:
|
|
2342
|
-
${
|
|
2346
|
+
${P}`));
|
|
2343
2347
|
}
|
|
2344
2348
|
function J() {
|
|
2345
2349
|
if (!d)
|
|
@@ -2354,8 +2358,8 @@ ${A}`));
|
|
|
2354
2358
|
const E = new AbortController();
|
|
2355
2359
|
try {
|
|
2356
2360
|
c.default.unstable_postpone(R);
|
|
2357
|
-
} catch (
|
|
2358
|
-
E.abort(
|
|
2361
|
+
} catch (P) {
|
|
2362
|
+
E.abort(P);
|
|
2359
2363
|
}
|
|
2360
2364
|
return E.signal;
|
|
2361
2365
|
}
|
|
@@ -2366,51 +2370,51 @@ ${A}`));
|
|
|
2366
2370
|
}) : (0, f.scheduleOnNextTick)(() => E.abort()), E.signal;
|
|
2367
2371
|
}
|
|
2368
2372
|
function le(R, E) {
|
|
2369
|
-
const
|
|
2370
|
-
|
|
2371
|
-
stack:
|
|
2373
|
+
const P = E.dynamicTracking;
|
|
2374
|
+
P && P.dynamicAccesses.push({
|
|
2375
|
+
stack: P.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2372
2376
|
expression: R
|
|
2373
2377
|
});
|
|
2374
2378
|
}
|
|
2375
2379
|
function oe(R) {
|
|
2376
2380
|
const E = i.workAsyncStorage.getStore();
|
|
2377
2381
|
if (E && E.isStaticGeneration && E.fallbackRouteParams && E.fallbackRouteParams.size > 0) {
|
|
2378
|
-
const
|
|
2379
|
-
|
|
2382
|
+
const P = _.workUnitAsyncStorage.getStore();
|
|
2383
|
+
P && (P.type === "prerender" ? c.default.use((0, e.makeHangingPromise)(P.renderSignal, R)) : P.type === "prerender-ppr" ? S(E.route, R, P.dynamicTracking) : P.type === "prerender-legacy" && b(R, E, P));
|
|
2380
2384
|
}
|
|
2381
2385
|
}
|
|
2382
2386
|
const ae = /\n\s+at Suspense \(<anonymous>\)/, de = new RegExp(`\\n\\s+at ${a.METADATA_BOUNDARY_NAME}[\\n\\s]`), te = new RegExp(`\\n\\s+at ${a.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), se = new RegExp(`\\n\\s+at ${a.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
2383
|
-
function fe(R, E,
|
|
2387
|
+
function fe(R, E, P, C, M) {
|
|
2384
2388
|
if (!se.test(E))
|
|
2385
2389
|
if (de.test(E)) {
|
|
2386
|
-
|
|
2390
|
+
P.hasDynamicMetadata = !0;
|
|
2387
2391
|
return;
|
|
2388
2392
|
} else if (te.test(E)) {
|
|
2389
|
-
|
|
2393
|
+
P.hasDynamicViewport = !0;
|
|
2390
2394
|
return;
|
|
2391
2395
|
} else if (ae.test(E)) {
|
|
2392
|
-
|
|
2396
|
+
P.hasSuspendedDynamic = !0;
|
|
2393
2397
|
return;
|
|
2394
2398
|
} else if (C.syncDynamicErrorWithStack || M.syncDynamicErrorWithStack) {
|
|
2395
|
-
|
|
2399
|
+
P.hasSyncDynamicErrors = !0;
|
|
2396
2400
|
return;
|
|
2397
2401
|
} else {
|
|
2398
2402
|
const O = `Route "${R}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`, B = re(O, E);
|
|
2399
|
-
|
|
2403
|
+
P.dynamicErrors.push(B);
|
|
2400
2404
|
return;
|
|
2401
2405
|
}
|
|
2402
2406
|
}
|
|
2403
2407
|
function re(R, E) {
|
|
2404
|
-
const
|
|
2408
|
+
const P = Object.defineProperty(new Error(R), "__NEXT_ERROR_CODE", {
|
|
2405
2409
|
value: "E394",
|
|
2406
2410
|
enumerable: !1,
|
|
2407
2411
|
configurable: !0
|
|
2408
2412
|
});
|
|
2409
|
-
return
|
|
2413
|
+
return P.stack = "Error: " + R + E, P;
|
|
2410
2414
|
}
|
|
2411
|
-
function ue(R, E,
|
|
2415
|
+
function ue(R, E, P, C) {
|
|
2412
2416
|
let M, O, B;
|
|
2413
|
-
if (
|
|
2417
|
+
if (P.syncDynamicErrorWithStack ? (M = P.syncDynamicErrorWithStack, O = P.syncDynamicExpression, B = P.syncDynamicLogged === !0) : C.syncDynamicErrorWithStack ? (M = C.syncDynamicErrorWithStack, O = C.syncDynamicExpression, B = C.syncDynamicLogged === !0) : (M = null, O = void 0, B = !1), E.hasSyncDynamicErrors && M)
|
|
2414
2418
|
throw B || console.error(M), new s.StaticGenBailoutError();
|
|
2415
2419
|
const W = E.dynamicErrors;
|
|
2416
2420
|
if (W.length) {
|
|
@@ -2494,10 +2498,10 @@ function en() {
|
|
|
2494
2498
|
return s;
|
|
2495
2499
|
},
|
|
2496
2500
|
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
2497
|
-
return
|
|
2501
|
+
return _;
|
|
2498
2502
|
}
|
|
2499
2503
|
});
|
|
2500
|
-
const c =
|
|
2504
|
+
const c = bt(), u = Jr();
|
|
2501
2505
|
function s(a, f) {
|
|
2502
2506
|
throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${a} couldn't be rendered statically because it used ${f}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2503
2507
|
value: "E576",
|
|
@@ -2505,7 +2509,7 @@ function en() {
|
|
|
2505
2509
|
configurable: !0
|
|
2506
2510
|
});
|
|
2507
2511
|
}
|
|
2508
|
-
function
|
|
2512
|
+
function _(a, f) {
|
|
2509
2513
|
throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${a} with \`dynamic = "error"\` couldn't be rendered statically because it used ${f}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2510
2514
|
value: "E543",
|
|
2511
2515
|
enumerable: !1,
|
|
@@ -2537,7 +2541,7 @@ function tn() {
|
|
|
2537
2541
|
return e;
|
|
2538
2542
|
}
|
|
2539
2543
|
});
|
|
2540
|
-
const o = ye(), c =
|
|
2544
|
+
const o = ye(), c = gt(), u = yr(), s = bt(), _ = Et(), i = en();
|
|
2541
2545
|
function e() {
|
|
2542
2546
|
const a = o.workAsyncStorage.getStore(), f = c.workUnitAsyncStorage.getStore();
|
|
2543
2547
|
if (a) {
|
|
@@ -2571,7 +2575,7 @@ function tn() {
|
|
|
2571
2575
|
});
|
|
2572
2576
|
if (f) {
|
|
2573
2577
|
if (f.type === "prerender")
|
|
2574
|
-
return (0,
|
|
2578
|
+
return (0, _.makeHangingPromise)(f.renderSignal, "`connection()`");
|
|
2575
2579
|
f.type === "prerender-ppr" ? (0, u.postponeWithTracking)(a.route, "connection", f.dynamicTracking) : f.type === "prerender-legacy" && (0, u.throwToInterruptStaticGeneration)("connection", a, f);
|
|
2576
2580
|
}
|
|
2577
2581
|
(0, u.trackDynamicDataInDynamicRender)(a, f);
|
|
@@ -2618,7 +2622,7 @@ function nn() {
|
|
|
2618
2622
|
return u;
|
|
2619
2623
|
},
|
|
2620
2624
|
wellKnownProperties: function() {
|
|
2621
|
-
return
|
|
2625
|
+
return _;
|
|
2622
2626
|
}
|
|
2623
2627
|
});
|
|
2624
2628
|
const c = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
@@ -2629,7 +2633,7 @@ function nn() {
|
|
|
2629
2633
|
const a = JSON.stringify(e);
|
|
2630
2634
|
return "`Reflect.has(" + i + ", " + a + ")`, `" + a + " in " + i + "`, or similar";
|
|
2631
2635
|
}
|
|
2632
|
-
const
|
|
2636
|
+
const _ = /* @__PURE__ */ new Set([
|
|
2633
2637
|
"hasOwnProperty",
|
|
2634
2638
|
"isPrototypeOf",
|
|
2635
2639
|
"propertyIsEnumerable",
|
|
@@ -2665,7 +2669,7 @@ function on() {
|
|
|
2665
2669
|
return a;
|
|
2666
2670
|
}
|
|
2667
2671
|
});
|
|
2668
|
-
const o = rn(), c = yr(), u = ye(), s =
|
|
2672
|
+
const o = rn(), c = yr(), u = ye(), s = gt(), _ = Et(), i = nn(), e = /* @__PURE__ */ new WeakMap();
|
|
2669
2673
|
async function a() {
|
|
2670
2674
|
const d = u.workAsyncStorage.getStore();
|
|
2671
2675
|
if (!d)
|
|
@@ -2674,14 +2678,14 @@ function on() {
|
|
|
2674
2678
|
enumerable: !1,
|
|
2675
2679
|
configurable: !0
|
|
2676
2680
|
});
|
|
2677
|
-
const
|
|
2678
|
-
if (!
|
|
2681
|
+
const g = s.workUnitAsyncStorage.getStore();
|
|
2682
|
+
if (!g)
|
|
2679
2683
|
throw Object.defineProperty(new Error(`Route ${d.route} used \`unstable_rootParams()\` in Pages Router. This API is only available within App Router.`), "__NEXT_ERROR_CODE", {
|
|
2680
2684
|
value: "E641",
|
|
2681
2685
|
enumerable: !1,
|
|
2682
2686
|
configurable: !0
|
|
2683
2687
|
});
|
|
2684
|
-
switch (
|
|
2688
|
+
switch (g.type) {
|
|
2685
2689
|
case "unstable-cache":
|
|
2686
2690
|
case "cache":
|
|
2687
2691
|
throw Object.defineProperty(new Error(`Route ${d.route} used \`unstable_rootParams()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`), "__NEXT_ERROR_CODE", {
|
|
@@ -2692,13 +2696,13 @@ function on() {
|
|
|
2692
2696
|
case "prerender":
|
|
2693
2697
|
case "prerender-ppr":
|
|
2694
2698
|
case "prerender-legacy":
|
|
2695
|
-
return f(
|
|
2699
|
+
return f(g.rootParams, d, g);
|
|
2696
2700
|
default:
|
|
2697
|
-
return Promise.resolve(
|
|
2701
|
+
return Promise.resolve(g.rootParams);
|
|
2698
2702
|
}
|
|
2699
2703
|
}
|
|
2700
|
-
function f(d,
|
|
2701
|
-
const T =
|
|
2704
|
+
function f(d, g, y) {
|
|
2705
|
+
const T = g.fallbackRouteParams;
|
|
2702
2706
|
if (T) {
|
|
2703
2707
|
let I = !1;
|
|
2704
2708
|
for (const l in d)
|
|
@@ -2707,34 +2711,34 @@ function on() {
|
|
|
2707
2711
|
break;
|
|
2708
2712
|
}
|
|
2709
2713
|
if (I) {
|
|
2710
|
-
if (
|
|
2714
|
+
if (y.type === "prerender") {
|
|
2711
2715
|
const l = e.get(d);
|
|
2712
2716
|
if (l)
|
|
2713
2717
|
return l;
|
|
2714
|
-
const
|
|
2715
|
-
return e.set(d,
|
|
2718
|
+
const b = (0, _.makeHangingPromise)(y.renderSignal, "`unstable_rootParams`");
|
|
2719
|
+
return e.set(d, b), b;
|
|
2716
2720
|
}
|
|
2717
|
-
return n(d, T,
|
|
2721
|
+
return n(d, T, g, y);
|
|
2718
2722
|
}
|
|
2719
2723
|
}
|
|
2720
2724
|
return Promise.resolve(d);
|
|
2721
2725
|
}
|
|
2722
|
-
function n(d,
|
|
2726
|
+
function n(d, g, y, T) {
|
|
2723
2727
|
const I = e.get(d);
|
|
2724
2728
|
if (I)
|
|
2725
2729
|
return I;
|
|
2726
2730
|
const l = {
|
|
2727
2731
|
...d
|
|
2728
|
-
},
|
|
2729
|
-
return e.set(d,
|
|
2730
|
-
i.wellKnownProperties.has(
|
|
2732
|
+
}, b = Promise.resolve(l);
|
|
2733
|
+
return e.set(d, b), Object.keys(d).forEach((h) => {
|
|
2734
|
+
i.wellKnownProperties.has(h) || (g.has(h) ? Object.defineProperty(l, h, {
|
|
2731
2735
|
get() {
|
|
2732
|
-
const
|
|
2733
|
-
T.type === "prerender-ppr" ? (0, c.postponeWithTracking)(
|
|
2736
|
+
const p = (0, i.describeStringPropertyAccess)("unstable_rootParams", h);
|
|
2737
|
+
T.type === "prerender-ppr" ? (0, c.postponeWithTracking)(y.route, p, T.dynamicTracking) : (0, c.throwToInterruptStaticGeneration)(p, y, T);
|
|
2734
2738
|
},
|
|
2735
2739
|
enumerable: !0
|
|
2736
|
-
}) :
|
|
2737
|
-
}),
|
|
2740
|
+
}) : b[h] = d[h]);
|
|
2741
|
+
}), b;
|
|
2738
2742
|
}
|
|
2739
2743
|
}(lt)), lt;
|
|
2740
2744
|
}
|
|
@@ -2758,7 +2762,7 @@ function an() {
|
|
|
2758
2762
|
var Re = an();
|
|
2759
2763
|
async function fn(r) {
|
|
2760
2764
|
try {
|
|
2761
|
-
const c = await
|
|
2765
|
+
const c = await gr().middleware(r);
|
|
2762
2766
|
if (c instanceof Re.NextResponse) {
|
|
2763
2767
|
const u = c.status;
|
|
2764
2768
|
if (u === 401 || u === 403 || u === 500) {
|
|
@@ -2790,7 +2794,7 @@ export {
|
|
|
2790
2794
|
mn as accessToken,
|
|
2791
2795
|
hn as authMiddlewareMatcher,
|
|
2792
2796
|
Pr as createServerAuth0,
|
|
2793
|
-
|
|
2797
|
+
gr as getAuth0Client,
|
|
2794
2798
|
ln as getAuth0ServerConfigFromEnv,
|
|
2795
2799
|
dn as getServerSidePermissions,
|
|
2796
2800
|
fn as handleAuthMiddleware
|