@golocalinteractive/golocal-cloud-wrapper 1.3.8 → 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-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 +1104 -1063
- 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 +1 -0
- package/dist/lib/auth/permissions.d.ts.map +1 -1
- package/dist/lib/auth/server.d.ts.map +1 -1
- package/dist/server.cjs.js +3 -3
- package/dist/server.es.js +601 -599
- 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,36 +12,37 @@ function ln() {
|
|
|
12
12
|
AUTH0_CLIENT_SECRET: c,
|
|
13
13
|
AUTH0_SECRET: u,
|
|
14
14
|
AUTH0_BASE_URL: s,
|
|
15
|
-
APP_BASE_URL:
|
|
16
|
-
AUTH0_AUDIENCE:
|
|
17
|
-
} = process.env, e =
|
|
15
|
+
APP_BASE_URL: _,
|
|
16
|
+
AUTH0_AUDIENCE: i
|
|
17
|
+
} = process.env, e = i ? { audience: i } : void 0;
|
|
18
18
|
return {
|
|
19
19
|
...r ? { domain: r } : {},
|
|
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
|
|
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: ((o =
|
|
33
|
-
organic: ((c =
|
|
34
|
-
paid: ((u =
|
|
35
|
-
web: ((s =
|
|
36
|
-
priceMonster: ((
|
|
37
|
-
management: ((
|
|
38
|
-
|
|
39
|
-
|
|
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
|
|
40
41
|
};
|
|
41
|
-
} catch (
|
|
42
|
+
} catch (a) {
|
|
42
43
|
return console.error(
|
|
43
44
|
"[getServerSidePermissions] Error getting user permissions:",
|
|
44
|
-
|
|
45
|
+
a
|
|
45
46
|
), {
|
|
46
47
|
essentialInsights: !1,
|
|
47
48
|
organic: !1,
|
|
@@ -49,6 +50,7 @@ async function dn(r) {
|
|
|
49
50
|
web: !1,
|
|
50
51
|
priceMonster: !1,
|
|
51
52
|
management: !1,
|
|
53
|
+
organicGrowth: !1,
|
|
52
54
|
se_company_id: null,
|
|
53
55
|
orgDisplayName: null
|
|
54
56
|
};
|
|
@@ -69,9 +71,9 @@ function Sr() {
|
|
|
69
71
|
if (c) {
|
|
70
72
|
s && (s = s.toLowerCase());
|
|
71
73
|
for (const e of c) {
|
|
72
|
-
var
|
|
73
|
-
const a = (
|
|
74
|
-
if (u === a || s === e.defaultLocale.toLowerCase() || (
|
|
74
|
+
var _, i;
|
|
75
|
+
const a = (_ = e.domain) == null ? void 0 : _.split(":", 1)[0].toLowerCase();
|
|
76
|
+
if (u === a || s === e.defaultLocale.toLowerCase() || (i = e.locales) != null && i.some((f) => f.toLowerCase() === s))
|
|
75
77
|
return e;
|
|
76
78
|
}
|
|
77
79
|
}
|
|
@@ -106,10 +108,10 @@ function _t() {
|
|
|
106
108
|
}
|
|
107
109
|
});
|
|
108
110
|
function o(c) {
|
|
109
|
-
const u = c.indexOf("#"), s = c.indexOf("?"),
|
|
110
|
-
return
|
|
111
|
-
pathname: c.substring(0,
|
|
112
|
-
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) : "",
|
|
113
115
|
hash: u > -1 ? c.slice(u) : ""
|
|
114
116
|
} : {
|
|
115
117
|
pathname: c,
|
|
@@ -120,7 +122,7 @@ function _t() {
|
|
|
120
122
|
}(Ne)), Ne;
|
|
121
123
|
}
|
|
122
124
|
var St;
|
|
123
|
-
function
|
|
125
|
+
function br() {
|
|
124
126
|
return St || (St = 1, function(r) {
|
|
125
127
|
Object.defineProperty(r, "__esModule", {
|
|
126
128
|
value: !0
|
|
@@ -134,8 +136,8 @@ function gr() {
|
|
|
134
136
|
function c(u, s) {
|
|
135
137
|
if (!u.startsWith("/") || !s)
|
|
136
138
|
return u;
|
|
137
|
-
const { pathname:
|
|
138
|
-
return "" + s +
|
|
139
|
+
const { pathname: _, query: i, hash: e } = (0, o.parsePath)(u);
|
|
140
|
+
return "" + s + _ + i + e;
|
|
139
141
|
}
|
|
140
142
|
}(xe)), xe;
|
|
141
143
|
}
|
|
@@ -154,8 +156,8 @@ function Or() {
|
|
|
154
156
|
function c(u, s) {
|
|
155
157
|
if (!u.startsWith("/") || !s)
|
|
156
158
|
return u;
|
|
157
|
-
const { pathname:
|
|
158
|
-
return "" +
|
|
159
|
+
const { pathname: _, query: i, hash: e } = (0, o.parsePath)(u);
|
|
160
|
+
return "" + _ + s + i + e;
|
|
159
161
|
}
|
|
160
162
|
}(Ie)), Ie;
|
|
161
163
|
}
|
|
@@ -174,8 +176,8 @@ function pt() {
|
|
|
174
176
|
function c(u, s) {
|
|
175
177
|
if (typeof u != "string")
|
|
176
178
|
return !1;
|
|
177
|
-
const { pathname:
|
|
178
|
-
return
|
|
179
|
+
const { pathname: _ } = (0, o.parsePath)(u);
|
|
180
|
+
return _ === s || _.startsWith(s + "/");
|
|
179
181
|
}
|
|
180
182
|
}(Ce)), Ce;
|
|
181
183
|
}
|
|
@@ -190,11 +192,11 @@ function xr() {
|
|
|
190
192
|
return u;
|
|
191
193
|
}
|
|
192
194
|
});
|
|
193
|
-
const o =
|
|
194
|
-
function u(s,
|
|
195
|
-
if (!
|
|
195
|
+
const o = br(), c = pt();
|
|
196
|
+
function u(s, _, i, e) {
|
|
197
|
+
if (!_ || _ === i) return s;
|
|
196
198
|
const a = s.toLowerCase();
|
|
197
|
-
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, "/" + _);
|
|
198
200
|
}
|
|
199
201
|
}(De)), De;
|
|
200
202
|
}
|
|
@@ -206,13 +208,13 @@ function Nr() {
|
|
|
206
208
|
}), Object.defineProperty(r, "formatNextPathnameInfo", {
|
|
207
209
|
enumerable: !0,
|
|
208
210
|
get: function() {
|
|
209
|
-
return
|
|
211
|
+
return _;
|
|
210
212
|
}
|
|
211
213
|
});
|
|
212
|
-
const o = Tr(), c =
|
|
213
|
-
function
|
|
214
|
-
let e = (0, s.addLocale)(
|
|
215
|
-
return (
|
|
214
|
+
const o = Tr(), c = br(), u = Or(), s = xr();
|
|
215
|
+
function _(i) {
|
|
216
|
+
let e = (0, s.addLocale)(i.pathname, i.locale, i.buildId ? void 0 : i.defaultLocale, i.ignorePrefix);
|
|
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);
|
|
216
218
|
}
|
|
217
219
|
}(Te)), Te;
|
|
218
220
|
}
|
|
@@ -254,19 +256,19 @@ function Dr() {
|
|
|
254
256
|
if (!s) return {
|
|
255
257
|
pathname: u
|
|
256
258
|
};
|
|
257
|
-
let
|
|
258
|
-
|
|
259
|
-
let
|
|
259
|
+
let _ = o.get(s);
|
|
260
|
+
_ || (_ = s.map((n) => n.toLowerCase()), o.set(s, _));
|
|
261
|
+
let i;
|
|
260
262
|
const e = u.split("/", 2);
|
|
261
263
|
if (!e[1]) return {
|
|
262
264
|
pathname: u
|
|
263
265
|
};
|
|
264
|
-
const a = e[1].toLowerCase(),
|
|
265
|
-
return
|
|
266
|
+
const a = e[1].toLowerCase(), f = _.indexOf(a);
|
|
267
|
+
return f < 0 ? {
|
|
266
268
|
pathname: u
|
|
267
|
-
} : (
|
|
269
|
+
} : (i = s[f], u = u.slice(i.length + 1) || "/", {
|
|
268
270
|
pathname: u,
|
|
269
|
-
detectedLocale:
|
|
271
|
+
detectedLocale: i
|
|
270
272
|
});
|
|
271
273
|
}
|
|
272
274
|
}(Le)), Le;
|
|
@@ -286,8 +288,8 @@ function Cr() {
|
|
|
286
288
|
function c(u, s) {
|
|
287
289
|
if (!(0, o.pathHasPrefix)(u, s))
|
|
288
290
|
return u;
|
|
289
|
-
const
|
|
290
|
-
return
|
|
291
|
+
const _ = u.slice(s.length);
|
|
292
|
+
return _.startsWith("/") ? _ : "/" + _;
|
|
291
293
|
}
|
|
292
294
|
}(qe)), qe;
|
|
293
295
|
}
|
|
@@ -303,25 +305,25 @@ function kr() {
|
|
|
303
305
|
}
|
|
304
306
|
});
|
|
305
307
|
const o = Dr(), c = Cr(), u = pt();
|
|
306
|
-
function s(
|
|
308
|
+
function s(_, i) {
|
|
307
309
|
var e;
|
|
308
|
-
const { basePath: a, i18n:
|
|
309
|
-
pathname:
|
|
310
|
-
trailingSlash:
|
|
310
|
+
const { basePath: a, i18n: f, trailingSlash: n } = (e = i.nextConfig) != null ? e : {}, d = {
|
|
311
|
+
pathname: _,
|
|
312
|
+
trailingSlash: _ !== "/" ? _.endsWith("/") : n
|
|
311
313
|
};
|
|
312
|
-
a && (0, u.pathHasPrefix)(
|
|
313
|
-
let
|
|
314
|
-
if (
|
|
315
|
-
const T =
|
|
316
|
-
|
|
314
|
+
a && (0, u.pathHasPrefix)(d.pathname, a) && (d.pathname = (0, c.removePathPrefix)(d.pathname, a), d.basePath = a);
|
|
315
|
+
let g = d.pathname;
|
|
316
|
+
if (d.pathname.startsWith("/_next/data/") && d.pathname.endsWith(".json")) {
|
|
317
|
+
const T = d.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), I = T[0];
|
|
318
|
+
d.buildId = I, g = T[1] !== "index" ? "/" + T.slice(1).join("/") : "/", i.parseData === !0 && (d.pathname = g);
|
|
317
319
|
}
|
|
318
|
-
if (
|
|
319
|
-
let T =
|
|
320
|
-
|
|
321
|
-
var
|
|
322
|
-
|
|
320
|
+
if (f) {
|
|
321
|
+
let T = i.i18nProvider ? i.i18nProvider.analyze(d.pathname) : (0, o.normalizeLocalePath)(d.pathname, f.locales);
|
|
322
|
+
d.locale = T.detectedLocale;
|
|
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));
|
|
323
325
|
}
|
|
324
|
-
return
|
|
326
|
+
return d;
|
|
325
327
|
}
|
|
326
328
|
}(je)), je;
|
|
327
329
|
}
|
|
@@ -336,30 +338,30 @@ function Er() {
|
|
|
336
338
|
return a;
|
|
337
339
|
}
|
|
338
340
|
});
|
|
339
|
-
const o = Sr(), c = Nr(), u = Ir(), s = kr(),
|
|
340
|
-
function
|
|
341
|
-
return new URL(String(
|
|
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)/;
|
|
342
|
+
function i(f, n) {
|
|
343
|
+
return new URL(String(f).replace(_, "localhost"), n && String(n).replace(_, "localhost"));
|
|
342
344
|
}
|
|
343
345
|
const e = Symbol("NextURLInternal");
|
|
344
346
|
class a {
|
|
345
|
-
constructor(
|
|
346
|
-
let
|
|
347
|
-
typeof
|
|
348
|
-
url: 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),
|
|
349
351
|
options: T,
|
|
350
352
|
basePath: ""
|
|
351
353
|
}, this.analyze();
|
|
352
354
|
}
|
|
353
355
|
analyze() {
|
|
354
|
-
var
|
|
356
|
+
var n, d, g, y, T;
|
|
355
357
|
const I = (0, s.getNextPathnameInfo)(this[e].url.pathname, {
|
|
356
358
|
nextConfig: this[e].options.nextConfig,
|
|
357
359
|
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
358
360
|
i18nProvider: this[e].options.i18nProvider
|
|
359
|
-
}),
|
|
360
|
-
this[e].domainLocale = this[e].options.i18nProvider ? this[e].options.i18nProvider.detectDomainLocale(
|
|
361
|
-
const
|
|
362
|
-
this[e].url.pathname = I.pathname, this[e].defaultLocale =
|
|
361
|
+
}), l = (0, u.getHostname)(this[e].url, this[e].options.headers);
|
|
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);
|
|
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;
|
|
363
365
|
}
|
|
364
366
|
formatPathname() {
|
|
365
367
|
return (0, c.formatNextPathnameInfo)({
|
|
@@ -377,21 +379,21 @@ function Er() {
|
|
|
377
379
|
get buildId() {
|
|
378
380
|
return this[e].buildId;
|
|
379
381
|
}
|
|
380
|
-
set buildId(
|
|
381
|
-
this[e].buildId =
|
|
382
|
+
set buildId(n) {
|
|
383
|
+
this[e].buildId = n;
|
|
382
384
|
}
|
|
383
385
|
get locale() {
|
|
384
386
|
return this[e].locale ?? "";
|
|
385
387
|
}
|
|
386
|
-
set locale(
|
|
387
|
-
var
|
|
388
|
-
if (!this[e].locale || !(!((
|
|
389
|
-
throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${
|
|
388
|
+
set locale(n) {
|
|
389
|
+
var d, g;
|
|
390
|
+
if (!this[e].locale || !(!((g = this[e].options.nextConfig) == null || (d = g.i18n) == null) && d.locales.includes(n)))
|
|
391
|
+
throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${n}"`), "__NEXT_ERROR_CODE", {
|
|
390
392
|
value: "E597",
|
|
391
393
|
enumerable: !1,
|
|
392
394
|
configurable: !0
|
|
393
395
|
});
|
|
394
|
-
this[e].locale =
|
|
396
|
+
this[e].locale = n;
|
|
395
397
|
}
|
|
396
398
|
get defaultLocale() {
|
|
397
399
|
return this[e].defaultLocale;
|
|
@@ -405,33 +407,33 @@ function Er() {
|
|
|
405
407
|
get host() {
|
|
406
408
|
return this[e].url.host;
|
|
407
409
|
}
|
|
408
|
-
set host(
|
|
409
|
-
this[e].url.host =
|
|
410
|
+
set host(n) {
|
|
411
|
+
this[e].url.host = n;
|
|
410
412
|
}
|
|
411
413
|
get hostname() {
|
|
412
414
|
return this[e].url.hostname;
|
|
413
415
|
}
|
|
414
|
-
set hostname(
|
|
415
|
-
this[e].url.hostname =
|
|
416
|
+
set hostname(n) {
|
|
417
|
+
this[e].url.hostname = n;
|
|
416
418
|
}
|
|
417
419
|
get port() {
|
|
418
420
|
return this[e].url.port;
|
|
419
421
|
}
|
|
420
|
-
set port(
|
|
421
|
-
this[e].url.port =
|
|
422
|
+
set port(n) {
|
|
423
|
+
this[e].url.port = n;
|
|
422
424
|
}
|
|
423
425
|
get protocol() {
|
|
424
426
|
return this[e].url.protocol;
|
|
425
427
|
}
|
|
426
|
-
set protocol(
|
|
427
|
-
this[e].url.protocol =
|
|
428
|
+
set protocol(n) {
|
|
429
|
+
this[e].url.protocol = n;
|
|
428
430
|
}
|
|
429
431
|
get href() {
|
|
430
|
-
const
|
|
431
|
-
return `${this.protocol}//${this.host}${
|
|
432
|
+
const n = this.formatPathname(), d = this.formatSearch();
|
|
433
|
+
return `${this.protocol}//${this.host}${n}${d}${this.hash}`;
|
|
432
434
|
}
|
|
433
|
-
set href(
|
|
434
|
-
this[e].url = n
|
|
435
|
+
set href(n) {
|
|
436
|
+
this[e].url = i(n), this.analyze();
|
|
435
437
|
}
|
|
436
438
|
get origin() {
|
|
437
439
|
return this[e].url.origin;
|
|
@@ -439,38 +441,38 @@ function Er() {
|
|
|
439
441
|
get pathname() {
|
|
440
442
|
return this[e].url.pathname;
|
|
441
443
|
}
|
|
442
|
-
set pathname(
|
|
443
|
-
this[e].url.pathname =
|
|
444
|
+
set pathname(n) {
|
|
445
|
+
this[e].url.pathname = n;
|
|
444
446
|
}
|
|
445
447
|
get hash() {
|
|
446
448
|
return this[e].url.hash;
|
|
447
449
|
}
|
|
448
|
-
set hash(
|
|
449
|
-
this[e].url.hash =
|
|
450
|
+
set hash(n) {
|
|
451
|
+
this[e].url.hash = n;
|
|
450
452
|
}
|
|
451
453
|
get search() {
|
|
452
454
|
return this[e].url.search;
|
|
453
455
|
}
|
|
454
|
-
set search(
|
|
455
|
-
this[e].url.search =
|
|
456
|
+
set search(n) {
|
|
457
|
+
this[e].url.search = n;
|
|
456
458
|
}
|
|
457
459
|
get password() {
|
|
458
460
|
return this[e].url.password;
|
|
459
461
|
}
|
|
460
|
-
set password(
|
|
461
|
-
this[e].url.password =
|
|
462
|
+
set password(n) {
|
|
463
|
+
this[e].url.password = n;
|
|
462
464
|
}
|
|
463
465
|
get username() {
|
|
464
466
|
return this[e].url.username;
|
|
465
467
|
}
|
|
466
|
-
set username(
|
|
467
|
-
this[e].url.username =
|
|
468
|
+
set username(n) {
|
|
469
|
+
this[e].url.username = n;
|
|
468
470
|
}
|
|
469
471
|
get basePath() {
|
|
470
472
|
return this[e].basePath;
|
|
471
473
|
}
|
|
472
|
-
set basePath(
|
|
473
|
-
this[e].basePath =
|
|
474
|
+
set basePath(n) {
|
|
475
|
+
this[e].basePath = n.startsWith("/") ? n : `/${n}`;
|
|
474
476
|
}
|
|
475
477
|
toString() {
|
|
476
478
|
return this.href;
|
|
@@ -514,13 +516,13 @@ function jr() {
|
|
|
514
516
|
}
|
|
515
517
|
o(r, {
|
|
516
518
|
ACTION_SUFFIX: function() {
|
|
517
|
-
return
|
|
519
|
+
return d;
|
|
518
520
|
},
|
|
519
521
|
APP_DIR_ALIAS: function() {
|
|
520
522
|
return Q;
|
|
521
523
|
},
|
|
522
524
|
CACHE_ONE_YEAR: function() {
|
|
523
|
-
return
|
|
525
|
+
return m;
|
|
524
526
|
},
|
|
525
527
|
DOT_NEXT_ALIAS: function() {
|
|
526
528
|
return G;
|
|
@@ -538,7 +540,7 @@ function jr() {
|
|
|
538
540
|
return re;
|
|
539
541
|
},
|
|
540
542
|
INFINITE_CACHE: function() {
|
|
541
|
-
return
|
|
543
|
+
return v;
|
|
542
544
|
},
|
|
543
545
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
544
546
|
return X;
|
|
@@ -556,13 +558,13 @@ function jr() {
|
|
|
556
558
|
return T;
|
|
557
559
|
},
|
|
558
560
|
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
559
|
-
return
|
|
561
|
+
return A;
|
|
560
562
|
},
|
|
561
563
|
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
562
|
-
return
|
|
564
|
+
return l;
|
|
563
565
|
},
|
|
564
566
|
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
565
|
-
return
|
|
567
|
+
return b;
|
|
566
568
|
},
|
|
567
569
|
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
568
570
|
return t;
|
|
@@ -571,19 +573,19 @@ function jr() {
|
|
|
571
573
|
return I;
|
|
572
574
|
},
|
|
573
575
|
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
574
|
-
return
|
|
576
|
+
return p;
|
|
575
577
|
},
|
|
576
578
|
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
577
|
-
return
|
|
579
|
+
return w;
|
|
578
580
|
},
|
|
579
581
|
NEXT_DATA_SUFFIX: function() {
|
|
580
|
-
return
|
|
582
|
+
return g;
|
|
581
583
|
},
|
|
582
584
|
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
583
585
|
return u;
|
|
584
586
|
},
|
|
585
587
|
NEXT_META_SUFFIX: function() {
|
|
586
|
-
return
|
|
588
|
+
return y;
|
|
587
589
|
},
|
|
588
590
|
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
589
591
|
return c;
|
|
@@ -598,10 +600,10 @@ function jr() {
|
|
|
598
600
|
return U;
|
|
599
601
|
},
|
|
600
602
|
PRERENDER_REVALIDATE_HEADER: function() {
|
|
601
|
-
return
|
|
603
|
+
return _;
|
|
602
604
|
},
|
|
603
605
|
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
604
|
-
return
|
|
606
|
+
return i;
|
|
605
607
|
},
|
|
606
608
|
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
607
609
|
return le;
|
|
@@ -634,10 +636,10 @@ function jr() {
|
|
|
634
636
|
return a;
|
|
635
637
|
},
|
|
636
638
|
RSC_SEGMENT_SUFFIX: function() {
|
|
637
|
-
return
|
|
639
|
+
return f;
|
|
638
640
|
},
|
|
639
641
|
RSC_SUFFIX: function() {
|
|
640
|
-
return
|
|
642
|
+
return n;
|
|
641
643
|
},
|
|
642
644
|
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
643
645
|
return se;
|
|
@@ -652,7 +654,7 @@ function jr() {
|
|
|
652
654
|
return M;
|
|
653
655
|
},
|
|
654
656
|
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
655
|
-
return
|
|
657
|
+
return P;
|
|
656
658
|
},
|
|
657
659
|
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
658
660
|
return oe;
|
|
@@ -670,7 +672,7 @@ function jr() {
|
|
|
670
672
|
return W;
|
|
671
673
|
}
|
|
672
674
|
});
|
|
673
|
-
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 = [
|
|
674
676
|
"app",
|
|
675
677
|
"pages",
|
|
676
678
|
"components",
|
|
@@ -787,10 +789,10 @@ function Rr() {
|
|
|
787
789
|
Object.defineProperty(r, "__esModule", {
|
|
788
790
|
value: !0
|
|
789
791
|
});
|
|
790
|
-
function o(a,
|
|
791
|
-
for (var
|
|
792
|
+
function o(a, f) {
|
|
793
|
+
for (var n in f) Object.defineProperty(a, n, {
|
|
792
794
|
enumerable: !0,
|
|
793
|
-
get:
|
|
795
|
+
get: f[n]
|
|
794
796
|
});
|
|
795
797
|
}
|
|
796
798
|
o(r, {
|
|
@@ -804,59 +806,59 @@ function Rr() {
|
|
|
804
806
|
return s;
|
|
805
807
|
},
|
|
806
808
|
toNodeOutgoingHttpHeaders: function() {
|
|
807
|
-
return
|
|
809
|
+
return _;
|
|
808
810
|
},
|
|
809
811
|
validateURL: function() {
|
|
810
|
-
return
|
|
812
|
+
return i;
|
|
811
813
|
}
|
|
812
814
|
});
|
|
813
815
|
const c = jr();
|
|
814
816
|
function u(a) {
|
|
815
|
-
const
|
|
816
|
-
for (let [
|
|
817
|
-
const
|
|
818
|
-
|
|
817
|
+
const f = new Headers();
|
|
818
|
+
for (let [n, d] of Object.entries(a)) {
|
|
819
|
+
const g = Array.isArray(d) ? d : [
|
|
820
|
+
d
|
|
819
821
|
];
|
|
820
|
-
for (let
|
|
821
|
-
typeof
|
|
822
|
+
for (let y of g)
|
|
823
|
+
typeof y > "u" || (typeof y == "number" && (y = y.toString()), f.append(n, y));
|
|
822
824
|
}
|
|
823
|
-
return
|
|
825
|
+
return f;
|
|
824
826
|
}
|
|
825
827
|
function s(a) {
|
|
826
|
-
var
|
|
827
|
-
function
|
|
828
|
-
for (;
|
|
829
|
-
|
|
830
|
-
return
|
|
831
|
-
}
|
|
832
|
-
function
|
|
833
|
-
return
|
|
834
|
-
}
|
|
835
|
-
for (;
|
|
836
|
-
for (
|
|
837
|
-
if (
|
|
838
|
-
for (
|
|
839
|
-
|
|
840
|
-
|
|
828
|
+
var f = [], n = 0, d, g, y, T, I;
|
|
829
|
+
function l() {
|
|
830
|
+
for (; n < a.length && /\s/.test(a.charAt(n)); )
|
|
831
|
+
n += 1;
|
|
832
|
+
return n < a.length;
|
|
833
|
+
}
|
|
834
|
+
function b() {
|
|
835
|
+
return g = a.charAt(n), g !== "=" && g !== ";" && g !== ",";
|
|
836
|
+
}
|
|
837
|
+
for (; n < a.length; ) {
|
|
838
|
+
for (d = n, I = !1; l(); )
|
|
839
|
+
if (g = a.charAt(n), g === ",") {
|
|
840
|
+
for (y = n, n += 1, l(), T = n; n < a.length && b(); )
|
|
841
|
+
n += 1;
|
|
842
|
+
n < a.length && a.charAt(n) === "=" ? (I = !0, n = T, f.push(a.substring(d, y)), d = n) : n = y + 1;
|
|
841
843
|
} else
|
|
842
|
-
|
|
843
|
-
(!I ||
|
|
844
|
+
n += 1;
|
|
845
|
+
(!I || n >= a.length) && f.push(a.substring(d, a.length));
|
|
844
846
|
}
|
|
845
|
-
return
|
|
847
|
+
return f;
|
|
846
848
|
}
|
|
847
|
-
function
|
|
848
|
-
const
|
|
849
|
+
function _(a) {
|
|
850
|
+
const f = {}, n = [];
|
|
849
851
|
if (a)
|
|
850
|
-
for (const [
|
|
851
|
-
|
|
852
|
-
return
|
|
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;
|
|
854
|
+
return f;
|
|
853
855
|
}
|
|
854
|
-
function
|
|
856
|
+
function i(a) {
|
|
855
857
|
try {
|
|
856
858
|
return String(new URL(String(a)));
|
|
857
|
-
} catch (
|
|
859
|
+
} catch (f) {
|
|
858
860
|
throw Object.defineProperty(new Error(`URL is malformed "${String(a)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
|
|
859
|
-
cause:
|
|
861
|
+
cause: f
|
|
860
862
|
}), "__NEXT_ERROR_CODE", {
|
|
861
863
|
value: "E61",
|
|
862
864
|
enumerable: !1,
|
|
@@ -865,13 +867,13 @@ function Rr() {
|
|
|
865
867
|
}
|
|
866
868
|
}
|
|
867
869
|
function e(a) {
|
|
868
|
-
const
|
|
870
|
+
const f = [
|
|
869
871
|
c.NEXT_QUERY_PARAM_PREFIX,
|
|
870
872
|
c.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
871
873
|
];
|
|
872
|
-
for (const
|
|
873
|
-
if (a !==
|
|
874
|
-
return a.substring(
|
|
874
|
+
for (const n of f)
|
|
875
|
+
if (a !== n && a.startsWith(n))
|
|
876
|
+
return a.substring(n.length);
|
|
875
877
|
return null;
|
|
876
878
|
}
|
|
877
879
|
}(Me)), Me;
|
|
@@ -882,10 +884,10 @@ function Lr() {
|
|
|
882
884
|
Object.defineProperty(r, "__esModule", {
|
|
883
885
|
value: !0
|
|
884
886
|
});
|
|
885
|
-
function o(
|
|
886
|
-
for (var e in
|
|
887
|
+
function o(_, i) {
|
|
888
|
+
for (var e in i) Object.defineProperty(_, e, {
|
|
887
889
|
enumerable: !0,
|
|
888
|
-
get:
|
|
890
|
+
get: i[e]
|
|
889
891
|
});
|
|
890
892
|
}
|
|
891
893
|
o(r, {
|
|
@@ -900,8 +902,8 @@ function Lr() {
|
|
|
900
902
|
}
|
|
901
903
|
});
|
|
902
904
|
class c extends Error {
|
|
903
|
-
constructor({ page:
|
|
904
|
-
super(`The middleware "${
|
|
905
|
+
constructor({ page: i }) {
|
|
906
|
+
super(`The middleware "${i}" accepts an async API directly with the form:
|
|
905
907
|
|
|
906
908
|
export function middleware(request, event) {
|
|
907
909
|
return NextResponse.redirect('/new-location')
|
|
@@ -927,25 +929,25 @@ var Xe = {}, Ge, Ut;
|
|
|
927
929
|
function qr() {
|
|
928
930
|
if (Ut) return Ge;
|
|
929
931
|
Ut = 1;
|
|
930
|
-
var r = Object.defineProperty, o = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, u = Object.prototype.hasOwnProperty, s = (t,
|
|
931
|
-
for (var
|
|
932
|
-
r(t,
|
|
933
|
-
},
|
|
934
|
-
if (
|
|
935
|
-
for (let S of c(
|
|
936
|
-
!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 });
|
|
937
939
|
return t;
|
|
938
|
-
},
|
|
940
|
+
}, i = (t) => _(r({}, "__esModule", { value: !0 }), t), e = {};
|
|
939
941
|
s(e, {
|
|
940
|
-
RequestCookies: () =>
|
|
942
|
+
RequestCookies: () => b,
|
|
941
943
|
ResponseCookies: () => h,
|
|
942
|
-
parseCookie: () =>
|
|
943
|
-
parseSetCookie: () =>
|
|
944
|
+
parseCookie: () => f,
|
|
945
|
+
parseSetCookie: () => n,
|
|
944
946
|
stringifyCookie: () => a
|
|
945
|
-
}), Ge =
|
|
947
|
+
}), Ge = i(e);
|
|
946
948
|
function a(t) {
|
|
947
|
-
var
|
|
948
|
-
const
|
|
949
|
+
var A;
|
|
950
|
+
const m = [
|
|
949
951
|
"path" in t && t.path && `Path=${t.path}`,
|
|
950
952
|
"expires" in t && (t.expires || t.expires === 0) && `Expires=${(typeof t.expires == "number" ? new Date(t.expires) : t.expires).toUTCString()}`,
|
|
951
953
|
"maxAge" in t && typeof t.maxAge == "number" && `Max-Age=${t.maxAge}`,
|
|
@@ -955,31 +957,31 @@ function qr() {
|
|
|
955
957
|
"sameSite" in t && t.sameSite && `SameSite=${t.sameSite}`,
|
|
956
958
|
"partitioned" in t && t.partitioned && "Partitioned",
|
|
957
959
|
"priority" in t && t.priority && `Priority=${t.priority}`
|
|
958
|
-
].filter(Boolean),
|
|
959
|
-
return
|
|
960
|
+
].filter(Boolean), v = `${t.name}=${encodeURIComponent((A = t.value) != null ? A : "")}`;
|
|
961
|
+
return m.length === 0 ? v : `${v}; ${m.join("; ")}`;
|
|
960
962
|
}
|
|
961
|
-
function
|
|
962
|
-
const
|
|
963
|
-
for (const
|
|
964
|
-
if (!
|
|
963
|
+
function f(t) {
|
|
964
|
+
const A = /* @__PURE__ */ new Map();
|
|
965
|
+
for (const m of t.split(/; */)) {
|
|
966
|
+
if (!m)
|
|
965
967
|
continue;
|
|
966
|
-
const
|
|
967
|
-
if (
|
|
968
|
-
|
|
968
|
+
const v = m.indexOf("=");
|
|
969
|
+
if (v === -1) {
|
|
970
|
+
A.set(m, "true");
|
|
969
971
|
continue;
|
|
970
972
|
}
|
|
971
|
-
const [S, j] = [
|
|
973
|
+
const [S, j] = [m.slice(0, v), m.slice(v + 1)];
|
|
972
974
|
try {
|
|
973
|
-
|
|
975
|
+
A.set(S, decodeURIComponent(j ?? "true"));
|
|
974
976
|
} catch {
|
|
975
977
|
}
|
|
976
978
|
}
|
|
977
|
-
return
|
|
979
|
+
return A;
|
|
978
980
|
}
|
|
979
|
-
function
|
|
981
|
+
function n(t) {
|
|
980
982
|
if (!t)
|
|
981
983
|
return;
|
|
982
|
-
const [[
|
|
984
|
+
const [[A, m], ...v] = f(t), {
|
|
983
985
|
domain: S,
|
|
984
986
|
expires: j,
|
|
985
987
|
httponly: X,
|
|
@@ -990,71 +992,71 @@ function qr() {
|
|
|
990
992
|
partitioned: Z,
|
|
991
993
|
priority: F
|
|
992
994
|
} = Object.fromEntries(
|
|
993
|
-
|
|
995
|
+
v.map(([J, V]) => [
|
|
994
996
|
J.toLowerCase().replace(/-/g, ""),
|
|
995
997
|
V
|
|
996
998
|
])
|
|
997
999
|
), z = {
|
|
998
|
-
name:
|
|
999
|
-
value: decodeURIComponent(
|
|
1000
|
+
name: A,
|
|
1001
|
+
value: decodeURIComponent(m),
|
|
1000
1002
|
domain: S,
|
|
1001
1003
|
...j && { expires: new Date(j) },
|
|
1002
1004
|
...X && { httpOnly: !0 },
|
|
1003
1005
|
...typeof U == "string" && { maxAge: Number(U) },
|
|
1004
1006
|
path: G,
|
|
1005
|
-
...H && { sameSite:
|
|
1007
|
+
...H && { sameSite: y(H) },
|
|
1006
1008
|
...Q && { secure: !0 },
|
|
1007
1009
|
...F && { priority: I(F) },
|
|
1008
1010
|
...Z && { partitioned: !0 }
|
|
1009
1011
|
};
|
|
1010
|
-
return
|
|
1012
|
+
return d(z);
|
|
1011
1013
|
}
|
|
1012
|
-
function
|
|
1013
|
-
const
|
|
1014
|
-
for (const
|
|
1015
|
-
t[
|
|
1016
|
-
return
|
|
1014
|
+
function d(t) {
|
|
1015
|
+
const A = {};
|
|
1016
|
+
for (const m in t)
|
|
1017
|
+
t[m] && (A[m] = t[m]);
|
|
1018
|
+
return A;
|
|
1017
1019
|
}
|
|
1018
|
-
var
|
|
1019
|
-
function
|
|
1020
|
-
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;
|
|
1021
1023
|
}
|
|
1022
1024
|
var T = ["low", "medium", "high"];
|
|
1023
1025
|
function I(t) {
|
|
1024
1026
|
return t = t.toLowerCase(), T.includes(t) ? t : void 0;
|
|
1025
1027
|
}
|
|
1026
|
-
function
|
|
1028
|
+
function l(t) {
|
|
1027
1029
|
if (!t)
|
|
1028
1030
|
return [];
|
|
1029
|
-
var
|
|
1031
|
+
var A = [], m = 0, v, S, j, X, U;
|
|
1030
1032
|
function G() {
|
|
1031
|
-
for (;
|
|
1032
|
-
|
|
1033
|
-
return
|
|
1033
|
+
for (; m < t.length && /\s/.test(t.charAt(m)); )
|
|
1034
|
+
m += 1;
|
|
1035
|
+
return m < t.length;
|
|
1034
1036
|
}
|
|
1035
1037
|
function H() {
|
|
1036
|
-
return S = t.charAt(
|
|
1037
|
-
}
|
|
1038
|
-
for (;
|
|
1039
|
-
for (
|
|
1040
|
-
if (S = t.charAt(
|
|
1041
|
-
for (j =
|
|
1042
|
-
|
|
1043
|
-
|
|
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;
|
|
1044
1046
|
} else
|
|
1045
|
-
|
|
1046
|
-
(!U ||
|
|
1047
|
+
m += 1;
|
|
1048
|
+
(!U || m >= t.length) && A.push(t.substring(v, t.length));
|
|
1047
1049
|
}
|
|
1048
|
-
return
|
|
1050
|
+
return A;
|
|
1049
1051
|
}
|
|
1050
|
-
var
|
|
1052
|
+
var b = class {
|
|
1051
1053
|
constructor(t) {
|
|
1052
1054
|
this._parsed = /* @__PURE__ */ new Map(), this._headers = t;
|
|
1053
|
-
const
|
|
1054
|
-
if (
|
|
1055
|
-
const
|
|
1056
|
-
for (const [
|
|
1057
|
-
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 });
|
|
1058
1060
|
}
|
|
1059
1061
|
}
|
|
1060
1062
|
[Symbol.iterator]() {
|
|
@@ -1067,36 +1069,36 @@ function qr() {
|
|
|
1067
1069
|
return this._parsed.size;
|
|
1068
1070
|
}
|
|
1069
1071
|
get(...t) {
|
|
1070
|
-
const
|
|
1071
|
-
return this._parsed.get(
|
|
1072
|
+
const A = typeof t[0] == "string" ? t[0] : t[0].name;
|
|
1073
|
+
return this._parsed.get(A);
|
|
1072
1074
|
}
|
|
1073
1075
|
getAll(...t) {
|
|
1074
|
-
var
|
|
1075
|
-
const
|
|
1076
|
+
var A;
|
|
1077
|
+
const m = Array.from(this._parsed);
|
|
1076
1078
|
if (!t.length)
|
|
1077
|
-
return
|
|
1078
|
-
const
|
|
1079
|
-
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);
|
|
1080
1082
|
}
|
|
1081
1083
|
has(t) {
|
|
1082
1084
|
return this._parsed.has(t);
|
|
1083
1085
|
}
|
|
1084
1086
|
set(...t) {
|
|
1085
|
-
const [
|
|
1086
|
-
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(
|
|
1087
1089
|
"cookie",
|
|
1088
|
-
Array.from(
|
|
1090
|
+
Array.from(v).map(([S, j]) => a(j)).join("; ")
|
|
1089
1091
|
), this;
|
|
1090
1092
|
}
|
|
1091
1093
|
/**
|
|
1092
1094
|
* Delete the cookies matching the passed name or names in the request.
|
|
1093
1095
|
*/
|
|
1094
1096
|
delete(t) {
|
|
1095
|
-
const
|
|
1097
|
+
const A = this._parsed, m = Array.isArray(t) ? t.map((v) => A.delete(v)) : A.delete(t);
|
|
1096
1098
|
return this._headers.set(
|
|
1097
1099
|
"cookie",
|
|
1098
|
-
Array.from(
|
|
1099
|
-
),
|
|
1100
|
+
Array.from(A).map(([v, S]) => a(S)).join("; ")
|
|
1101
|
+
), m;
|
|
1100
1102
|
}
|
|
1101
1103
|
/**
|
|
1102
1104
|
* Delete all the cookies in the cookies in the request.
|
|
@@ -1116,11 +1118,11 @@ function qr() {
|
|
|
1116
1118
|
}, h = class {
|
|
1117
1119
|
constructor(t) {
|
|
1118
1120
|
this._parsed = /* @__PURE__ */ new Map();
|
|
1119
|
-
var
|
|
1121
|
+
var A, m, v;
|
|
1120
1122
|
this._headers = t;
|
|
1121
|
-
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);
|
|
1122
1124
|
for (const X of j) {
|
|
1123
|
-
const U =
|
|
1125
|
+
const U = n(X);
|
|
1124
1126
|
U && this._parsed.set(U.name, U);
|
|
1125
1127
|
}
|
|
1126
1128
|
}
|
|
@@ -1128,19 +1130,19 @@ function qr() {
|
|
|
1128
1130
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
1129
1131
|
*/
|
|
1130
1132
|
get(...t) {
|
|
1131
|
-
const
|
|
1132
|
-
return this._parsed.get(
|
|
1133
|
+
const A = typeof t[0] == "string" ? t[0] : t[0].name;
|
|
1134
|
+
return this._parsed.get(A);
|
|
1133
1135
|
}
|
|
1134
1136
|
/**
|
|
1135
1137
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
1136
1138
|
*/
|
|
1137
1139
|
getAll(...t) {
|
|
1138
|
-
var
|
|
1139
|
-
const
|
|
1140
|
+
var A;
|
|
1141
|
+
const m = Array.from(this._parsed.values());
|
|
1140
1142
|
if (!t.length)
|
|
1141
|
-
return
|
|
1142
|
-
const
|
|
1143
|
-
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);
|
|
1144
1146
|
}
|
|
1145
1147
|
has(t) {
|
|
1146
1148
|
return this._parsed.has(t);
|
|
@@ -1149,15 +1151,15 @@ function qr() {
|
|
|
1149
1151
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
1150
1152
|
*/
|
|
1151
1153
|
set(...t) {
|
|
1152
|
-
const [
|
|
1153
|
-
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;
|
|
1154
1156
|
}
|
|
1155
1157
|
/**
|
|
1156
1158
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
1157
1159
|
*/
|
|
1158
1160
|
delete(...t) {
|
|
1159
|
-
const [
|
|
1160
|
-
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) });
|
|
1161
1163
|
}
|
|
1162
1164
|
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1163
1165
|
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
@@ -1166,14 +1168,14 @@ function qr() {
|
|
|
1166
1168
|
return [...this._parsed.values()].map(a).join("; ");
|
|
1167
1169
|
}
|
|
1168
1170
|
};
|
|
1169
|
-
function
|
|
1170
|
-
|
|
1171
|
-
for (const [,
|
|
1172
|
-
const
|
|
1173
|
-
|
|
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);
|
|
1174
1176
|
}
|
|
1175
1177
|
}
|
|
1176
|
-
function
|
|
1178
|
+
function w(t = { name: "", value: "" }) {
|
|
1177
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;
|
|
1178
1180
|
}
|
|
1179
1181
|
return Ge;
|
|
@@ -1185,9 +1187,9 @@ function ht() {
|
|
|
1185
1187
|
value: !0
|
|
1186
1188
|
});
|
|
1187
1189
|
function o(u, s) {
|
|
1188
|
-
for (var
|
|
1190
|
+
for (var _ in s) Object.defineProperty(u, _, {
|
|
1189
1191
|
enumerable: !0,
|
|
1190
|
-
get: s[
|
|
1192
|
+
get: s[_]
|
|
1191
1193
|
});
|
|
1192
1194
|
}
|
|
1193
1195
|
o(r, {
|
|
@@ -1210,33 +1212,33 @@ function Mr() {
|
|
|
1210
1212
|
Object.defineProperty(r, "__esModule", {
|
|
1211
1213
|
value: !0
|
|
1212
1214
|
});
|
|
1213
|
-
function o(a,
|
|
1214
|
-
for (var
|
|
1215
|
+
function o(a, f) {
|
|
1216
|
+
for (var n in f) Object.defineProperty(a, n, {
|
|
1215
1217
|
enumerable: !0,
|
|
1216
|
-
get:
|
|
1218
|
+
get: f[n]
|
|
1217
1219
|
});
|
|
1218
1220
|
}
|
|
1219
1221
|
o(r, {
|
|
1220
1222
|
INTERNALS: function() {
|
|
1221
|
-
return
|
|
1223
|
+
return i;
|
|
1222
1224
|
},
|
|
1223
1225
|
NextRequest: function() {
|
|
1224
1226
|
return e;
|
|
1225
1227
|
}
|
|
1226
1228
|
});
|
|
1227
|
-
const c = Er(), u = Rr(), s = Lr(),
|
|
1229
|
+
const c = Er(), u = Rr(), s = Lr(), _ = ht(), i = Symbol("internal request");
|
|
1228
1230
|
class e extends Request {
|
|
1229
|
-
constructor(
|
|
1230
|
-
const
|
|
1231
|
-
(0, u.validateURL)(
|
|
1232
|
-
const
|
|
1231
|
+
constructor(f, n = {}) {
|
|
1232
|
+
const d = typeof f != "string" && "url" in f ? f.url : String(f);
|
|
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);
|
|
1234
|
+
const g = new c.NextURL(d, {
|
|
1233
1235
|
headers: (0, u.toNodeOutgoingHttpHeaders)(this.headers),
|
|
1234
|
-
nextConfig:
|
|
1236
|
+
nextConfig: n.nextConfig
|
|
1235
1237
|
});
|
|
1236
|
-
this[
|
|
1237
|
-
cookies: new
|
|
1238
|
-
nextUrl:
|
|
1239
|
-
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ?
|
|
1238
|
+
this[i] = {
|
|
1239
|
+
cookies: new _.RequestCookies(this.headers),
|
|
1240
|
+
nextUrl: g,
|
|
1241
|
+
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? d : g.toString()
|
|
1240
1242
|
};
|
|
1241
1243
|
}
|
|
1242
1244
|
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
@@ -1261,10 +1263,10 @@ function Mr() {
|
|
|
1261
1263
|
};
|
|
1262
1264
|
}
|
|
1263
1265
|
get cookies() {
|
|
1264
|
-
return this[
|
|
1266
|
+
return this[i].cookies;
|
|
1265
1267
|
}
|
|
1266
1268
|
get nextUrl() {
|
|
1267
|
-
return this[
|
|
1269
|
+
return this[i].nextUrl;
|
|
1268
1270
|
}
|
|
1269
1271
|
/**
|
|
1270
1272
|
* @deprecated
|
|
@@ -1283,7 +1285,7 @@ function Mr() {
|
|
|
1283
1285
|
throw new s.RemovedUAError();
|
|
1284
1286
|
}
|
|
1285
1287
|
get url() {
|
|
1286
|
-
return this[
|
|
1288
|
+
return this[i].url;
|
|
1287
1289
|
}
|
|
1288
1290
|
}
|
|
1289
1291
|
}(Ae)), Ae;
|
|
@@ -1300,12 +1302,12 @@ function Ur() {
|
|
|
1300
1302
|
}
|
|
1301
1303
|
});
|
|
1302
1304
|
class o {
|
|
1303
|
-
static get(u, s,
|
|
1304
|
-
const
|
|
1305
|
-
return typeof
|
|
1305
|
+
static get(u, s, _) {
|
|
1306
|
+
const i = Reflect.get(u, s, _);
|
|
1307
|
+
return typeof i == "function" ? i.bind(u) : i;
|
|
1306
1308
|
}
|
|
1307
|
-
static set(u, s,
|
|
1308
|
-
return Reflect.set(u, s,
|
|
1309
|
+
static set(u, s, _, i) {
|
|
1310
|
+
return Reflect.set(u, s, _, i);
|
|
1309
1311
|
}
|
|
1310
1312
|
static has(u, s) {
|
|
1311
1313
|
return Reflect.has(u, s);
|
|
@@ -1324,53 +1326,53 @@ function Hr() {
|
|
|
1324
1326
|
}), Object.defineProperty(r, "NextResponse", {
|
|
1325
1327
|
enumerable: !0,
|
|
1326
1328
|
get: function() {
|
|
1327
|
-
return
|
|
1329
|
+
return f;
|
|
1328
1330
|
}
|
|
1329
1331
|
});
|
|
1330
|
-
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([
|
|
1331
1333
|
301,
|
|
1332
1334
|
302,
|
|
1333
1335
|
303,
|
|
1334
1336
|
307,
|
|
1335
1337
|
308
|
|
1336
1338
|
]);
|
|
1337
|
-
function a(
|
|
1338
|
-
var
|
|
1339
|
-
if (!(
|
|
1340
|
-
if (!(
|
|
1339
|
+
function a(n, d) {
|
|
1340
|
+
var g;
|
|
1341
|
+
if (!(n == null || (g = n.request) == null) && g.headers) {
|
|
1342
|
+
if (!(n.request.headers instanceof Headers))
|
|
1341
1343
|
throw Object.defineProperty(new Error("request.headers must be an instance of Headers"), "__NEXT_ERROR_CODE", {
|
|
1342
1344
|
value: "E119",
|
|
1343
1345
|
enumerable: !1,
|
|
1344
1346
|
configurable: !0
|
|
1345
1347
|
});
|
|
1346
|
-
const
|
|
1347
|
-
for (const [T, I] of
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
class
|
|
1353
|
-
constructor(
|
|
1354
|
-
super(
|
|
1355
|
-
const
|
|
1356
|
-
get(
|
|
1357
|
-
switch (
|
|
1348
|
+
const y = [];
|
|
1349
|
+
for (const [T, I] of n.request.headers)
|
|
1350
|
+
d.set("x-middleware-request-" + T, I), y.push(T);
|
|
1351
|
+
d.set("x-middleware-override-headers", y.join(","));
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
class f extends Response {
|
|
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) {
|
|
1358
1360
|
case "delete":
|
|
1359
1361
|
case "set":
|
|
1360
|
-
return (...
|
|
1361
|
-
const
|
|
1362
|
-
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;
|
|
1363
1365
|
};
|
|
1364
1366
|
default:
|
|
1365
|
-
return s.ReflectAdapter.get(
|
|
1367
|
+
return s.ReflectAdapter.get(l, b, h);
|
|
1366
1368
|
}
|
|
1367
1369
|
}
|
|
1368
1370
|
});
|
|
1369
|
-
this[
|
|
1371
|
+
this[i] = {
|
|
1370
1372
|
cookies: I,
|
|
1371
|
-
url:
|
|
1372
|
-
headers: (0, u.toNodeOutgoingHttpHeaders)(
|
|
1373
|
-
nextConfig:
|
|
1373
|
+
url: g.url ? new c.NextURL(g.url, {
|
|
1374
|
+
headers: (0, u.toNodeOutgoingHttpHeaders)(y),
|
|
1375
|
+
nextConfig: g.nextConfig
|
|
1374
1376
|
}) : void 0
|
|
1375
1377
|
};
|
|
1376
1378
|
}
|
|
@@ -1390,39 +1392,39 @@ function Hr() {
|
|
|
1390
1392
|
};
|
|
1391
1393
|
}
|
|
1392
1394
|
get cookies() {
|
|
1393
|
-
return this[
|
|
1395
|
+
return this[i].cookies;
|
|
1394
1396
|
}
|
|
1395
|
-
static json(
|
|
1396
|
-
const
|
|
1397
|
-
return new
|
|
1397
|
+
static json(d, g) {
|
|
1398
|
+
const y = Response.json(d, g);
|
|
1399
|
+
return new f(y.body, y);
|
|
1398
1400
|
}
|
|
1399
|
-
static redirect(
|
|
1400
|
-
const
|
|
1401
|
-
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))
|
|
1402
1404
|
throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'), "__NEXT_ERROR_CODE", {
|
|
1403
1405
|
value: "E529",
|
|
1404
1406
|
enumerable: !1,
|
|
1405
1407
|
configurable: !0
|
|
1406
1408
|
});
|
|
1407
|
-
const T = typeof
|
|
1408
|
-
return I.set("Location", (0, u.validateURL)(
|
|
1409
|
+
const T = typeof g == "object" ? g : {}, I = new Headers(T == null ? void 0 : T.headers);
|
|
1410
|
+
return I.set("Location", (0, u.validateURL)(d)), new f(null, {
|
|
1409
1411
|
...T,
|
|
1410
1412
|
headers: I,
|
|
1411
|
-
status:
|
|
1413
|
+
status: y
|
|
1412
1414
|
});
|
|
1413
1415
|
}
|
|
1414
|
-
static rewrite(
|
|
1415
|
-
const
|
|
1416
|
-
return
|
|
1417
|
-
...
|
|
1418
|
-
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
|
|
1419
1421
|
});
|
|
1420
1422
|
}
|
|
1421
|
-
static next(
|
|
1422
|
-
const
|
|
1423
|
-
return
|
|
1424
|
-
...
|
|
1425
|
-
headers:
|
|
1423
|
+
static next(d) {
|
|
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, {
|
|
1426
|
+
...d,
|
|
1427
|
+
headers: g
|
|
1426
1428
|
});
|
|
1427
1429
|
}
|
|
1428
1430
|
}
|
|
@@ -1451,9 +1453,9 @@ function Xr() {
|
|
|
1451
1453
|
var We = {}, ze = { exports: {} }, Bt;
|
|
1452
1454
|
function Gr() {
|
|
1453
1455
|
return Bt || (Bt = 1, (() => {
|
|
1454
|
-
var r = { 226: function(s,
|
|
1455
|
-
(function(
|
|
1456
|
-
var a = "1.0.35",
|
|
1456
|
+
var r = { 226: function(s, _) {
|
|
1457
|
+
(function(i, e) {
|
|
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) {
|
|
1457
1459
|
var N = {};
|
|
1458
1460
|
for (var q in D)
|
|
1459
1461
|
L[q] && L[q].length % 2 === 0 ? N[q] = L[q].concat(D[q]) : N[q] = D[q];
|
|
@@ -1467,47 +1469,47 @@ function Gr() {
|
|
|
1467
1469
|
}, W = function(D) {
|
|
1468
1470
|
return D.toLowerCase();
|
|
1469
1471
|
}, ce = function(D) {
|
|
1470
|
-
return typeof D === T ? D.replace(/[^\d\.]/g,
|
|
1472
|
+
return typeof D === T ? D.replace(/[^\d\.]/g, f).split(".")[0] : e;
|
|
1471
1473
|
}, he = function(D, L) {
|
|
1472
1474
|
if (typeof D === T)
|
|
1473
|
-
return D = D.replace(/^\s\s*/,
|
|
1475
|
+
return D = D.replace(/^\s\s*/, f), typeof L === g ? D : D.substring(0, U);
|
|
1474
1476
|
}, ne = function(D, L) {
|
|
1475
1477
|
for (var N = 0, q, ie, Y, k, x, K; N < L.length && !x; ) {
|
|
1476
1478
|
var ve = L[N], wt = L[N + 1];
|
|
1477
1479
|
for (q = ie = 0; q < ve.length && !x && ve[q]; )
|
|
1478
1480
|
if (x = ve[q++].exec(D), x)
|
|
1479
1481
|
for (Y = 0; Y < wt.length; Y++)
|
|
1480
|
-
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;
|
|
1481
1483
|
N += 2;
|
|
1482
1484
|
}
|
|
1483
1485
|
}, we = function(D, L) {
|
|
1484
1486
|
for (var N in L)
|
|
1485
|
-
if (typeof L[N] ===
|
|
1487
|
+
if (typeof L[N] === y && L[N].length > 0) {
|
|
1486
1488
|
for (var q = 0; q < L[N].length; q++)
|
|
1487
1489
|
if (B(L[N][q], D))
|
|
1488
|
-
return N ===
|
|
1490
|
+
return N === n ? e : N;
|
|
1489
1491
|
} else if (B(L[N], D))
|
|
1490
|
-
return N ===
|
|
1492
|
+
return N === n ? e : N;
|
|
1491
1493
|
return D;
|
|
1492
|
-
}, 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/, _, 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], [d, [m, se], [h, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [d, [m, se], [h, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [d, [m, H], [h, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [d, [m, H], [h, w]], [/(macintosh);/i], [d, [m, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [d, [m, fe], [h, b]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [d, [m, le], [h, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [d, [m, le], [h, 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], [[d, /_/g, " "], [m, ue], [h, b]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[d, /_/g, " "], [m, ue], [h, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [d, [m, "OPPO"], [h, b]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [d, [m, "Vivo"], [h, b]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [d, [m, "Realme"], [h, 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], [d, [m, de], [h, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [d, [m, de], [h, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [d, [m, oe], [h, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [d, [m, oe], [h, b]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [d, [m, "Lenovo"], [h, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[d, /_/g, " "], [m, "Nokia"], [h, b]], [/(pixel c)\b/i], [d, [m, ee], [h, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [d, [m, ee], [h, 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], [d, [m, re], [h, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[d, "Xperia Tablet"], [m, re], [h, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [d, [m, "OnePlus"], [h, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [d, [m, G], [h, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[d, /(.+)/g, "Fire Phone $1"], [m, G], [h, b]], [/(playbook);[-\w\),; ]+(rim)/i], [d, m, [h, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [d, [m, Z], [h, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [d, [m, Q], [h, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [d, [m, Q], [h, b]], [/(nexus 9)/i], [d, [m, "HTC"], [h, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [d, /_/g, " "], [h, b]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [d, [m, "Acer"], [h, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [d, [m, "Meizu"], [h, 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, d, [h, 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, d, [h, w]], [/(surface duo)/i], [d, [m, ae], [h, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [d, [m, "Fairphone"], [h, b]], [/(u304aa)/i], [d, [m, "AT&T"], [h, b]], [/\bsie-(\w*)/i], [d, [m, "Siemens"], [h, b]], [/\b(rct\w+) b/i], [d, [m, "RCA"], [h, w]], [/\b(venue[\d ]{2,7}) b/i], [d, [m, "Dell"], [h, w]], [/\b(q(?:mv|ta)\w+) b/i], [d, [m, "Verizon"], [h, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [d, [m, "Barnes & Noble"], [h, w]], [/\b(tm\d{3}\w+) b/i], [d, [m, "NuVision"], [h, w]], [/\b(k88) b/i], [d, [m, "ZTE"], [h, w]], [/\b(nx\d{3}j) b/i], [d, [m, "ZTE"], [h, b]], [/\b(gen\d{3}) b.+49h/i], [d, [m, "Swiss"], [h, b]], [/\b(zur\d{3}) b/i], [d, [m, "Swiss"], [h, w]], [/\b((zeki)?tb.*\b) b/i], [d, [m, "Zeki"], [h, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], d, [h, w]], [/\b(ns-?\w{0,9}) b/i], [d, [m, "Insignia"], [h, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [d, [m, "NextBook"], [h, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], d, [h, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], d, [h, b]], [/\b(ph-1) /i], [d, [m, "Essential"], [h, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [d, [m, "Envizen"], [h, w]], [/\b(trio[-\w\. ]+) b/i], [d, [m, "MachSpeed"], [h, w]], [/\btu_(1491) b/i], [d, [m, "Rotor"], [h, w]], [/(shield[\w ]+) b/i], [d, [m, "Nvidia"], [h, w]], [/(sprint) (\w+)/i], [m, d, [h, b]], [/(kin\.[onetw]{3})/i], [[d, /\./g, " "], [m, ae], [h, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [d, [m, R], [h, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [d, [m, R], [h, b]], [/smart-tv.+(samsung)/i], [m, [h, S]], [/hbbtv.+maple;(\d+)/i], [[d, /^/, "SmartTV"], [m, se], [h, S]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, oe], [h, S]], [/(apple) ?tv/i], [m, [d, H + " TV"], [h, S]], [/crkey/i], [[d, z + "cast"], [m, ee], [h, S]], [/droid.+aft(\w)( bui|\))/i], [d, [m, G], [h, S]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [d, [m, fe], [h, S]], [/(bravia[\w ]+)( bui|\))/i], [d, [m, re], [h, S]], [/(mitv-\w{5}) bui/i], [d, [m, ue], [h, S]], [/Hbbtv.*(technisat) (.*);/i], [m, d, [h, S]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, he], [d, he], [h, S]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, S]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, d, [h, v]], [/droid.+; (shield) bui/i], [d, [m, "Nvidia"], [h, v]], [/(playstation [345portablevi]+)/i], [d, [m, re], [h, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [d, [m, ae], [h, v]], [/((pebble))app/i], [m, d, [h, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [d, [m, H], [h, j]], [/droid.+; (glass) \d/i], [d, [m, ee], [h, j]], [/droid.+; (wt63?0{2,3})\)/i], [d, [m, R], [h, j]], [/(quest( 2| pro)?)/i], [d, [m, E], [h, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [h, X]], [/(aeobc)\b/i], [d, [m, G], [h, X]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [d, [h, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [d, [h, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, b]], [/(android[-\w\. ]{0,9});.+buil/i], [d, [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) {
|
|
1493
|
-
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 $))
|
|
1494
1496
|
return new $(D, L).getResult();
|
|
1495
|
-
var N = typeof
|
|
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;
|
|
1496
1498
|
return this.getBrowser = function() {
|
|
1497
1499
|
var x = {};
|
|
1498
|
-
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;
|
|
1499
1501
|
}, this.getCPU = function() {
|
|
1500
1502
|
var x = {};
|
|
1501
1503
|
return x[t] = e, ne.call(x, q, Y.cpu), x;
|
|
1502
1504
|
}, this.getDevice = function() {
|
|
1503
1505
|
var x = {};
|
|
1504
|
-
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;
|
|
1505
1507
|
}, this.getEngine = function() {
|
|
1506
1508
|
var x = {};
|
|
1507
|
-
return x[
|
|
1509
|
+
return x[b] = e, x[w] = e, ne.call(x, q, Y.engine), x;
|
|
1508
1510
|
}, this.getOS = function() {
|
|
1509
1511
|
var x = {};
|
|
1510
|
-
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;
|
|
1511
1513
|
}, this.getResult = function() {
|
|
1512
1514
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1513
1515
|
}, this.getUA = function() {
|
|
@@ -1516,8 +1518,8 @@ function Gr() {
|
|
|
1516
1518
|
return q = typeof x === T && x.length > U ? he(x, U) : x, this;
|
|
1517
1519
|
}, this.setUA(q), this;
|
|
1518
1520
|
};
|
|
1519
|
-
$.VERSION = a, $.BROWSER = O([
|
|
1520
|
-
var _e = typeof
|
|
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);
|
|
1521
1523
|
if (_e && !_e.ua) {
|
|
1522
1524
|
var pe = new $();
|
|
1523
1525
|
_e.ua = pe.getResult(), _e.ua.get = function() {
|
|
@@ -1532,16 +1534,16 @@ function Gr() {
|
|
|
1532
1534
|
})(typeof window == "object" ? window : this);
|
|
1533
1535
|
} }, o = {};
|
|
1534
1536
|
function c(s) {
|
|
1535
|
-
var
|
|
1536
|
-
if (
|
|
1537
|
-
return
|
|
1538
|
-
var
|
|
1537
|
+
var _ = o[s];
|
|
1538
|
+
if (_ !== void 0)
|
|
1539
|
+
return _.exports;
|
|
1540
|
+
var i = o[s] = { exports: {} }, e = !0;
|
|
1539
1541
|
try {
|
|
1540
|
-
r[s].call(
|
|
1542
|
+
r[s].call(i.exports, i, i.exports, c), e = !1;
|
|
1541
1543
|
} finally {
|
|
1542
1544
|
e && delete o[s];
|
|
1543
1545
|
}
|
|
1544
|
-
return
|
|
1546
|
+
return i.exports;
|
|
1545
1547
|
}
|
|
1546
1548
|
typeof c < "u" && (c.ab = __dirname + "/");
|
|
1547
1549
|
var u = c(226);
|
|
@@ -1555,9 +1557,9 @@ function zt() {
|
|
|
1555
1557
|
value: !0
|
|
1556
1558
|
});
|
|
1557
1559
|
function o(e, a) {
|
|
1558
|
-
for (var
|
|
1560
|
+
for (var f in a) Object.defineProperty(e, f, {
|
|
1559
1561
|
enumerable: !0,
|
|
1560
|
-
get: a[
|
|
1562
|
+
get: a[f]
|
|
1561
1563
|
});
|
|
1562
1564
|
}
|
|
1563
1565
|
o(r, {
|
|
@@ -1565,10 +1567,10 @@ function zt() {
|
|
|
1565
1567
|
return s;
|
|
1566
1568
|
},
|
|
1567
1569
|
userAgent: function() {
|
|
1568
|
-
return
|
|
1570
|
+
return i;
|
|
1569
1571
|
},
|
|
1570
1572
|
userAgentFromString: function() {
|
|
1571
|
-
return
|
|
1573
|
+
return _;
|
|
1572
1574
|
}
|
|
1573
1575
|
});
|
|
1574
1576
|
const c = /* @__PURE__ */ u(Gr());
|
|
@@ -1580,14 +1582,14 @@ function zt() {
|
|
|
1580
1582
|
function s(e) {
|
|
1581
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);
|
|
1582
1584
|
}
|
|
1583
|
-
function
|
|
1585
|
+
function _(e) {
|
|
1584
1586
|
return {
|
|
1585
1587
|
...(0, c.default)(e),
|
|
1586
1588
|
isBot: e === void 0 ? !1 : s(e)
|
|
1587
1589
|
};
|
|
1588
1590
|
}
|
|
1589
|
-
function
|
|
1590
|
-
return
|
|
1591
|
+
function i({ headers: e }) {
|
|
1592
|
+
return _(e.get("user-agent") || void 0);
|
|
1591
1593
|
}
|
|
1592
1594
|
}(We)), We;
|
|
1593
1595
|
}
|
|
@@ -1614,18 +1616,18 @@ function mt() {
|
|
|
1614
1616
|
Object.defineProperty(r, "__esModule", {
|
|
1615
1617
|
value: !0
|
|
1616
1618
|
});
|
|
1617
|
-
function o(a,
|
|
1618
|
-
for (var
|
|
1619
|
+
function o(a, f) {
|
|
1620
|
+
for (var n in f) Object.defineProperty(a, n, {
|
|
1619
1621
|
enumerable: !0,
|
|
1620
|
-
get:
|
|
1622
|
+
get: f[n]
|
|
1621
1623
|
});
|
|
1622
1624
|
}
|
|
1623
1625
|
o(r, {
|
|
1624
1626
|
bindSnapshot: function() {
|
|
1625
|
-
return
|
|
1627
|
+
return i;
|
|
1626
1628
|
},
|
|
1627
1629
|
createAsyncLocalStorage: function() {
|
|
1628
|
-
return
|
|
1630
|
+
return _;
|
|
1629
1631
|
},
|
|
1630
1632
|
createSnapshot: function() {
|
|
1631
1633
|
return e;
|
|
@@ -1651,20 +1653,20 @@ function mt() {
|
|
|
1651
1653
|
enterWith() {
|
|
1652
1654
|
throw c;
|
|
1653
1655
|
}
|
|
1654
|
-
static bind(
|
|
1655
|
-
return
|
|
1656
|
+
static bind(f) {
|
|
1657
|
+
return f;
|
|
1656
1658
|
}
|
|
1657
1659
|
}
|
|
1658
1660
|
const s = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
|
|
1659
|
-
function
|
|
1661
|
+
function _() {
|
|
1660
1662
|
return s ? new s() : new u();
|
|
1661
1663
|
}
|
|
1662
|
-
function
|
|
1664
|
+
function i(a) {
|
|
1663
1665
|
return s ? s.bind(a) : u.bind(a);
|
|
1664
1666
|
}
|
|
1665
1667
|
function e() {
|
|
1666
|
-
return s ? s.snapshot() : function(a, ...
|
|
1667
|
-
return a(...
|
|
1668
|
+
return s ? s.snapshot() : function(a, ...f) {
|
|
1669
|
+
return a(...f);
|
|
1668
1670
|
};
|
|
1669
1671
|
}
|
|
1670
1672
|
}(Je)), Je;
|
|
@@ -1717,8 +1719,8 @@ function Br() {
|
|
|
1717
1719
|
enumerable: !1,
|
|
1718
1720
|
configurable: !0
|
|
1719
1721
|
});
|
|
1720
|
-
const { afterContext:
|
|
1721
|
-
return
|
|
1722
|
+
const { afterContext: _ } = s;
|
|
1723
|
+
return _.after(u);
|
|
1722
1724
|
}
|
|
1723
1725
|
}(Ke)), Ke;
|
|
1724
1726
|
}
|
|
@@ -1754,16 +1756,16 @@ function zr() {
|
|
|
1754
1756
|
const c = (0, mt().createAsyncLocalStorage)();
|
|
1755
1757
|
}(rt)), rt;
|
|
1756
1758
|
}
|
|
1757
|
-
var
|
|
1759
|
+
var ge = { exports: {} }, tr;
|
|
1758
1760
|
function Vr() {
|
|
1759
1761
|
return tr || (tr = 1, function(r, o) {
|
|
1760
1762
|
Object.defineProperty(o, "__esModule", {
|
|
1761
1763
|
value: !0
|
|
1762
1764
|
});
|
|
1763
|
-
function c(
|
|
1764
|
-
for (var t in
|
|
1765
|
+
function c(p, w) {
|
|
1766
|
+
for (var t in w) Object.defineProperty(p, t, {
|
|
1765
1767
|
enumerable: !0,
|
|
1766
|
-
get:
|
|
1768
|
+
get: w[t]
|
|
1767
1769
|
});
|
|
1768
1770
|
}
|
|
1769
1771
|
c(o, {
|
|
@@ -1771,13 +1773,13 @@ function Vr() {
|
|
|
1771
1773
|
return s;
|
|
1772
1774
|
},
|
|
1773
1775
|
FLIGHT_HEADERS: function() {
|
|
1774
|
-
return
|
|
1776
|
+
return g;
|
|
1775
1777
|
},
|
|
1776
1778
|
NEXT_DID_POSTPONE_HEADER: function() {
|
|
1777
1779
|
return I;
|
|
1778
1780
|
},
|
|
1779
1781
|
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
1780
|
-
return
|
|
1782
|
+
return f;
|
|
1781
1783
|
},
|
|
1782
1784
|
NEXT_HMR_REFRESH_HEADER: function() {
|
|
1783
1785
|
return a;
|
|
@@ -1786,13 +1788,13 @@ function Vr() {
|
|
|
1786
1788
|
return h;
|
|
1787
1789
|
},
|
|
1788
1790
|
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
1789
|
-
return
|
|
1791
|
+
return l;
|
|
1790
1792
|
},
|
|
1791
1793
|
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
1792
|
-
return
|
|
1794
|
+
return b;
|
|
1793
1795
|
},
|
|
1794
1796
|
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
1795
|
-
return
|
|
1797
|
+
return i;
|
|
1796
1798
|
},
|
|
1797
1799
|
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
1798
1800
|
return e;
|
|
@@ -1801,46 +1803,46 @@ function Vr() {
|
|
|
1801
1803
|
return T;
|
|
1802
1804
|
},
|
|
1803
1805
|
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
1804
|
-
return
|
|
1806
|
+
return _;
|
|
1805
1807
|
},
|
|
1806
1808
|
NEXT_RSC_UNION_QUERY: function() {
|
|
1807
|
-
return
|
|
1809
|
+
return y;
|
|
1808
1810
|
},
|
|
1809
1811
|
NEXT_URL: function() {
|
|
1810
|
-
return
|
|
1812
|
+
return n;
|
|
1811
1813
|
},
|
|
1812
1814
|
RSC_CONTENT_TYPE_HEADER: function() {
|
|
1813
|
-
return
|
|
1815
|
+
return d;
|
|
1814
1816
|
},
|
|
1815
1817
|
RSC_HEADER: function() {
|
|
1816
1818
|
return u;
|
|
1817
1819
|
}
|
|
1818
1820
|
});
|
|
1819
|
-
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 = [
|
|
1820
1822
|
u,
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
+
_,
|
|
1824
|
+
i,
|
|
1823
1825
|
a,
|
|
1824
1826
|
e
|
|
1825
|
-
],
|
|
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";
|
|
1826
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);
|
|
1827
|
-
}(
|
|
1829
|
+
}(ge, ge.exports)), ge.exports;
|
|
1828
1830
|
}
|
|
1829
1831
|
var rr;
|
|
1830
|
-
function
|
|
1832
|
+
function gt() {
|
|
1831
1833
|
return rr || (rr = 1, function(r) {
|
|
1832
1834
|
Object.defineProperty(r, "__esModule", {
|
|
1833
1835
|
value: !0
|
|
1834
1836
|
});
|
|
1835
|
-
function o(
|
|
1836
|
-
for (var
|
|
1837
|
+
function o(n, d) {
|
|
1838
|
+
for (var g in d) Object.defineProperty(n, g, {
|
|
1837
1839
|
enumerable: !0,
|
|
1838
|
-
get:
|
|
1840
|
+
get: d[g]
|
|
1839
1841
|
});
|
|
1840
1842
|
}
|
|
1841
1843
|
o(r, {
|
|
1842
1844
|
getDraftModeProviderForCacheScope: function() {
|
|
1843
|
-
return
|
|
1845
|
+
return f;
|
|
1844
1846
|
},
|
|
1845
1847
|
getExpectedRequestStore: function() {
|
|
1846
1848
|
return s;
|
|
@@ -1849,87 +1851,87 @@ function bt() {
|
|
|
1849
1851
|
return a;
|
|
1850
1852
|
},
|
|
1851
1853
|
getPrerenderResumeDataCache: function() {
|
|
1852
|
-
return
|
|
1854
|
+
return i;
|
|
1853
1855
|
},
|
|
1854
1856
|
getRenderResumeDataCache: function() {
|
|
1855
1857
|
return e;
|
|
1856
1858
|
},
|
|
1857
1859
|
throwForMissingRequestStore: function() {
|
|
1858
|
-
return
|
|
1860
|
+
return _;
|
|
1859
1861
|
},
|
|
1860
1862
|
workUnitAsyncStorage: function() {
|
|
1861
1863
|
return c.workUnitAsyncStorageInstance;
|
|
1862
1864
|
}
|
|
1863
1865
|
});
|
|
1864
1866
|
const c = zr(), u = Vr();
|
|
1865
|
-
function s(
|
|
1866
|
-
const
|
|
1867
|
-
switch (
|
|
1867
|
+
function s(n) {
|
|
1868
|
+
const d = c.workUnitAsyncStorageInstance.getStore();
|
|
1869
|
+
switch (d || _(n), d.type) {
|
|
1868
1870
|
case "request":
|
|
1869
|
-
return
|
|
1871
|
+
return d;
|
|
1870
1872
|
case "prerender":
|
|
1871
1873
|
case "prerender-ppr":
|
|
1872
1874
|
case "prerender-legacy":
|
|
1873
|
-
throw Object.defineProperty(new Error(`\`${
|
|
1875
|
+
throw Object.defineProperty(new Error(`\`${n}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
1874
1876
|
value: "E401",
|
|
1875
1877
|
enumerable: !1,
|
|
1876
1878
|
configurable: !0
|
|
1877
1879
|
});
|
|
1878
1880
|
case "cache":
|
|
1879
|
-
throw Object.defineProperty(new Error(`\`${
|
|
1881
|
+
throw Object.defineProperty(new Error(`\`${n}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
1880
1882
|
value: "E37",
|
|
1881
1883
|
enumerable: !1,
|
|
1882
1884
|
configurable: !0
|
|
1883
1885
|
});
|
|
1884
1886
|
case "unstable-cache":
|
|
1885
|
-
throw Object.defineProperty(new Error(`\`${
|
|
1887
|
+
throw Object.defineProperty(new Error(`\`${n}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
1886
1888
|
value: "E69",
|
|
1887
1889
|
enumerable: !1,
|
|
1888
1890
|
configurable: !0
|
|
1889
1891
|
});
|
|
1890
1892
|
default:
|
|
1891
|
-
return
|
|
1893
|
+
return d;
|
|
1892
1894
|
}
|
|
1893
1895
|
}
|
|
1894
|
-
function
|
|
1895
|
-
throw Object.defineProperty(new Error(`\`${
|
|
1896
|
+
function _(n) {
|
|
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", {
|
|
1896
1898
|
value: "E251",
|
|
1897
1899
|
enumerable: !1,
|
|
1898
1900
|
configurable: !0
|
|
1899
1901
|
});
|
|
1900
1902
|
}
|
|
1901
|
-
function n
|
|
1902
|
-
return
|
|
1903
|
+
function i(n) {
|
|
1904
|
+
return n.type === "prerender" || n.type === "prerender-ppr" ? n.prerenderResumeDataCache : null;
|
|
1903
1905
|
}
|
|
1904
|
-
function e(
|
|
1905
|
-
return
|
|
1906
|
+
function e(n) {
|
|
1907
|
+
return n.type !== "prerender-legacy" && n.type !== "cache" && n.type !== "unstable-cache" ? n.type === "request" ? n.renderResumeDataCache : n.prerenderResumeDataCache : null;
|
|
1906
1908
|
}
|
|
1907
|
-
function a(
|
|
1908
|
-
var
|
|
1909
|
-
if (
|
|
1910
|
-
return
|
|
1909
|
+
function a(n, d) {
|
|
1910
|
+
var g;
|
|
1911
|
+
if (n.dev)
|
|
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;
|
|
1911
1913
|
}
|
|
1912
|
-
function
|
|
1913
|
-
if (
|
|
1914
|
-
switch (
|
|
1914
|
+
function f(n, d) {
|
|
1915
|
+
if (n.isDraftMode)
|
|
1916
|
+
switch (d.type) {
|
|
1915
1917
|
case "cache":
|
|
1916
1918
|
case "unstable-cache":
|
|
1917
1919
|
case "request":
|
|
1918
|
-
return
|
|
1920
|
+
return d.draftMode;
|
|
1919
1921
|
default:
|
|
1920
1922
|
return;
|
|
1921
1923
|
}
|
|
1922
1924
|
}
|
|
1923
1925
|
}(tt)), tt;
|
|
1924
1926
|
}
|
|
1925
|
-
var nt = {},
|
|
1927
|
+
var nt = {}, be = { exports: {} }, nr;
|
|
1926
1928
|
function Yr() {
|
|
1927
1929
|
return nr || (nr = 1, function(r, o) {
|
|
1928
1930
|
Object.defineProperty(o, "__esModule", {
|
|
1929
1931
|
value: !0
|
|
1930
1932
|
});
|
|
1931
|
-
function c(
|
|
1932
|
-
for (var a in e) Object.defineProperty(
|
|
1933
|
+
function c(i, e) {
|
|
1934
|
+
for (var a in e) Object.defineProperty(i, a, {
|
|
1933
1935
|
enumerable: !0,
|
|
1934
1936
|
get: e[a]
|
|
1935
1937
|
});
|
|
@@ -1939,7 +1941,7 @@ function Yr() {
|
|
|
1939
1941
|
return s;
|
|
1940
1942
|
},
|
|
1941
1943
|
isDynamicServerError: function() {
|
|
1942
|
-
return
|
|
1944
|
+
return _;
|
|
1943
1945
|
}
|
|
1944
1946
|
});
|
|
1945
1947
|
const u = "DYNAMIC_SERVER_USAGE";
|
|
@@ -1948,20 +1950,20 @@ function Yr() {
|
|
|
1948
1950
|
super("Dynamic server usage: " + e), this.description = e, this.digest = u;
|
|
1949
1951
|
}
|
|
1950
1952
|
}
|
|
1951
|
-
function
|
|
1952
|
-
return typeof
|
|
1953
|
+
function _(i) {
|
|
1954
|
+
return typeof i != "object" || i === null || !("digest" in i) || typeof i.digest != "string" ? !1 : i.digest === u;
|
|
1953
1955
|
}
|
|
1954
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);
|
|
1955
|
-
}(
|
|
1957
|
+
}(be, be.exports)), be.exports;
|
|
1956
1958
|
}
|
|
1957
1959
|
var Ee = { exports: {} }, ir;
|
|
1958
|
-
function
|
|
1960
|
+
function bt() {
|
|
1959
1961
|
return ir || (ir = 1, function(r, o) {
|
|
1960
1962
|
Object.defineProperty(o, "__esModule", {
|
|
1961
1963
|
value: !0
|
|
1962
1964
|
});
|
|
1963
|
-
function c(
|
|
1964
|
-
for (var a in e) Object.defineProperty(
|
|
1965
|
+
function c(i, e) {
|
|
1966
|
+
for (var a in e) Object.defineProperty(i, a, {
|
|
1965
1967
|
enumerable: !0,
|
|
1966
1968
|
get: e[a]
|
|
1967
1969
|
});
|
|
@@ -1971,7 +1973,7 @@ function gt() {
|
|
|
1971
1973
|
return s;
|
|
1972
1974
|
},
|
|
1973
1975
|
isStaticGenBailoutError: function() {
|
|
1974
|
-
return
|
|
1976
|
+
return _;
|
|
1975
1977
|
}
|
|
1976
1978
|
});
|
|
1977
1979
|
const u = "NEXT_STATIC_GEN_BAILOUT";
|
|
@@ -1980,8 +1982,8 @@ function gt() {
|
|
|
1980
1982
|
super(...e), this.code = u;
|
|
1981
1983
|
}
|
|
1982
1984
|
}
|
|
1983
|
-
function
|
|
1984
|
-
return typeof
|
|
1985
|
+
function _(i) {
|
|
1986
|
+
return typeof i != "object" || i === null || !("code" in i) ? !1 : i.code === u;
|
|
1985
1987
|
}
|
|
1986
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);
|
|
1987
1989
|
}(Ee, Ee.exports)), Ee.exports;
|
|
@@ -1992,10 +1994,10 @@ function Et() {
|
|
|
1992
1994
|
Object.defineProperty(r, "__esModule", {
|
|
1993
1995
|
value: !0
|
|
1994
1996
|
});
|
|
1995
|
-
function o(a,
|
|
1996
|
-
for (var
|
|
1997
|
+
function o(a, f) {
|
|
1998
|
+
for (var n in f) Object.defineProperty(a, n, {
|
|
1997
1999
|
enumerable: !0,
|
|
1998
|
-
get:
|
|
2000
|
+
get: f[n]
|
|
1999
2001
|
});
|
|
2000
2002
|
}
|
|
2001
2003
|
o(r, {
|
|
@@ -2003,7 +2005,7 @@ function Et() {
|
|
|
2003
2005
|
return c;
|
|
2004
2006
|
},
|
|
2005
2007
|
makeHangingPromise: function() {
|
|
2006
|
-
return
|
|
2008
|
+
return i;
|
|
2007
2009
|
}
|
|
2008
2010
|
});
|
|
2009
2011
|
function c(a) {
|
|
@@ -2011,33 +2013,33 @@ function Et() {
|
|
|
2011
2013
|
}
|
|
2012
2014
|
const u = "HANGING_PROMISE_REJECTION";
|
|
2013
2015
|
class s extends Error {
|
|
2014
|
-
constructor(
|
|
2015
|
-
super(`During prerendering, ${
|
|
2016
|
+
constructor(f) {
|
|
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;
|
|
2016
2018
|
}
|
|
2017
2019
|
}
|
|
2018
|
-
const
|
|
2019
|
-
function
|
|
2020
|
+
const _ = /* @__PURE__ */ new WeakMap();
|
|
2021
|
+
function i(a, f) {
|
|
2020
2022
|
if (a.aborted)
|
|
2021
|
-
return Promise.reject(new s(
|
|
2023
|
+
return Promise.reject(new s(f));
|
|
2022
2024
|
{
|
|
2023
|
-
const
|
|
2024
|
-
const
|
|
2025
|
-
let T =
|
|
2025
|
+
const n = new Promise((d, g) => {
|
|
2026
|
+
const y = g.bind(null, new s(f));
|
|
2027
|
+
let T = _.get(a);
|
|
2026
2028
|
if (T)
|
|
2027
|
-
T.push(
|
|
2029
|
+
T.push(y);
|
|
2028
2030
|
else {
|
|
2029
2031
|
const I = [
|
|
2030
|
-
|
|
2032
|
+
y
|
|
2031
2033
|
];
|
|
2032
|
-
|
|
2033
|
-
for (let
|
|
2034
|
-
I[
|
|
2034
|
+
_.set(a, I), a.addEventListener("abort", () => {
|
|
2035
|
+
for (let l = 0; l < I.length; l++)
|
|
2036
|
+
I[l]();
|
|
2035
2037
|
}, {
|
|
2036
2038
|
once: !0
|
|
2037
2039
|
});
|
|
2038
2040
|
}
|
|
2039
2041
|
});
|
|
2040
|
-
return
|
|
2042
|
+
return n.catch(e), n;
|
|
2041
2043
|
}
|
|
2042
2044
|
}
|
|
2043
2045
|
function e() {
|
|
@@ -2050,10 +2052,10 @@ function Kr() {
|
|
|
2050
2052
|
Object.defineProperty(r, "__esModule", {
|
|
2051
2053
|
value: !0
|
|
2052
2054
|
});
|
|
2053
|
-
function o(
|
|
2054
|
-
for (var e in
|
|
2055
|
+
function o(_, i) {
|
|
2056
|
+
for (var e in i) Object.defineProperty(_, e, {
|
|
2055
2057
|
enumerable: !0,
|
|
2056
|
-
get:
|
|
2058
|
+
get: i[e]
|
|
2057
2059
|
});
|
|
2058
2060
|
}
|
|
2059
2061
|
o(r, {
|
|
@@ -2076,8 +2078,8 @@ function Qr() {
|
|
|
2076
2078
|
Object.defineProperty(r, "__esModule", {
|
|
2077
2079
|
value: !0
|
|
2078
2080
|
});
|
|
2079
|
-
function o(
|
|
2080
|
-
for (var a in e) Object.defineProperty(
|
|
2081
|
+
function o(i, e) {
|
|
2082
|
+
for (var a in e) Object.defineProperty(i, a, {
|
|
2081
2083
|
enumerable: !0,
|
|
2082
2084
|
get: e[a]
|
|
2083
2085
|
});
|
|
@@ -2093,21 +2095,21 @@ function Qr() {
|
|
|
2093
2095
|
return c;
|
|
2094
2096
|
},
|
|
2095
2097
|
waitAtLeastOneReactRenderTask: function() {
|
|
2096
|
-
return
|
|
2098
|
+
return _;
|
|
2097
2099
|
}
|
|
2098
2100
|
});
|
|
2099
|
-
const c = (
|
|
2101
|
+
const c = (i) => {
|
|
2100
2102
|
Promise.resolve().then(() => {
|
|
2101
|
-
process.env.NEXT_RUNTIME === "edge" ? setTimeout(
|
|
2103
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : process.nextTick(i);
|
|
2102
2104
|
});
|
|
2103
|
-
}, u = (
|
|
2104
|
-
process.env.NEXT_RUNTIME === "edge" ? setTimeout(
|
|
2105
|
+
}, u = (i) => {
|
|
2106
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : setImmediate(i);
|
|
2105
2107
|
};
|
|
2106
2108
|
function s() {
|
|
2107
|
-
return new Promise((
|
|
2109
|
+
return new Promise((i) => u(i));
|
|
2108
2110
|
}
|
|
2109
|
-
function
|
|
2110
|
-
return process.env.NEXT_RUNTIME === "edge" ? new Promise((
|
|
2111
|
+
function _() {
|
|
2112
|
+
return process.env.NEXT_RUNTIME === "edge" ? new Promise((i) => setTimeout(i, 0)) : new Promise((i) => setImmediate(i));
|
|
2111
2113
|
}
|
|
2112
2114
|
}(at)), at;
|
|
2113
2115
|
}
|
|
@@ -2118,20 +2120,20 @@ function yr() {
|
|
|
2118
2120
|
value: !0
|
|
2119
2121
|
});
|
|
2120
2122
|
function o(R, E) {
|
|
2121
|
-
for (var
|
|
2123
|
+
for (var P in E) Object.defineProperty(R, P, {
|
|
2122
2124
|
enumerable: !0,
|
|
2123
|
-
get: E[
|
|
2125
|
+
get: E[P]
|
|
2124
2126
|
});
|
|
2125
2127
|
}
|
|
2126
2128
|
o(r, {
|
|
2127
2129
|
Postpone: function() {
|
|
2128
|
-
return
|
|
2130
|
+
return v;
|
|
2129
2131
|
},
|
|
2130
2132
|
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
2131
|
-
return
|
|
2133
|
+
return A;
|
|
2132
2134
|
},
|
|
2133
2135
|
abortOnSynchronousPlatformIOAccess: function() {
|
|
2134
|
-
return
|
|
2136
|
+
return w;
|
|
2135
2137
|
},
|
|
2136
2138
|
accessedDynamicData: function() {
|
|
2137
2139
|
return Z;
|
|
@@ -2143,10 +2145,10 @@ function yr() {
|
|
|
2143
2145
|
return F;
|
|
2144
2146
|
},
|
|
2145
2147
|
createDynamicTrackingState: function() {
|
|
2146
|
-
return
|
|
2148
|
+
return g;
|
|
2147
2149
|
},
|
|
2148
2150
|
createDynamicValidationState: function() {
|
|
2149
|
-
return
|
|
2151
|
+
return y;
|
|
2150
2152
|
},
|
|
2151
2153
|
createHangingInputAbortSignal: function() {
|
|
2152
2154
|
return ee;
|
|
@@ -2176,7 +2178,7 @@ function yr() {
|
|
|
2176
2178
|
return ue;
|
|
2177
2179
|
},
|
|
2178
2180
|
throwToInterruptStaticGeneration: function() {
|
|
2179
|
-
return
|
|
2181
|
+
return b;
|
|
2180
2182
|
},
|
|
2181
2183
|
trackAllowedDynamicAccess: function() {
|
|
2182
2184
|
return fe;
|
|
@@ -2185,26 +2187,26 @@ function yr() {
|
|
|
2185
2187
|
return h;
|
|
2186
2188
|
},
|
|
2187
2189
|
trackFallbackParamAccessed: function() {
|
|
2188
|
-
return
|
|
2190
|
+
return l;
|
|
2189
2191
|
},
|
|
2190
2192
|
trackSynchronousPlatformIOAccessInDev: function() {
|
|
2191
2193
|
return t;
|
|
2192
2194
|
},
|
|
2193
2195
|
trackSynchronousRequestDataAccessInDev: function() {
|
|
2194
|
-
return
|
|
2196
|
+
return m;
|
|
2195
2197
|
},
|
|
2196
2198
|
useDynamicRouteParams: function() {
|
|
2197
2199
|
return oe;
|
|
2198
2200
|
}
|
|
2199
2201
|
});
|
|
2200
|
-
const c = /* @__PURE__ */
|
|
2201
|
-
function
|
|
2202
|
+
const c = /* @__PURE__ */ n(Ar), u = Yr(), s = bt(), _ = gt(), i = ye(), e = Et(), a = Kr(), f = Qr();
|
|
2203
|
+
function n(R) {
|
|
2202
2204
|
return R && R.__esModule ? R : {
|
|
2203
2205
|
default: R
|
|
2204
2206
|
};
|
|
2205
2207
|
}
|
|
2206
|
-
const
|
|
2207
|
-
function
|
|
2208
|
+
const d = typeof c.default.unstable_postpone == "function";
|
|
2209
|
+
function g(R) {
|
|
2208
2210
|
return {
|
|
2209
2211
|
isDebugDynamicAccesses: R,
|
|
2210
2212
|
dynamicAccesses: [],
|
|
@@ -2212,7 +2214,7 @@ function yr() {
|
|
|
2212
2214
|
syncDynamicErrorWithStack: null
|
|
2213
2215
|
};
|
|
2214
2216
|
}
|
|
2215
|
-
function
|
|
2217
|
+
function y() {
|
|
2216
2218
|
return {
|
|
2217
2219
|
hasSuspendedDynamic: !1,
|
|
2218
2220
|
hasDynamicMetadata: !1,
|
|
@@ -2225,39 +2227,39 @@ function yr() {
|
|
|
2225
2227
|
var E;
|
|
2226
2228
|
return (E = R.dynamicAccesses[0]) == null ? void 0 : E.expression;
|
|
2227
2229
|
}
|
|
2228
|
-
function I(R, E,
|
|
2230
|
+
function I(R, E, P) {
|
|
2229
2231
|
if (!(E && (E.type === "cache" || E.type === "unstable-cache")) && !(R.forceDynamic || R.forceStatic)) {
|
|
2230
2232
|
if (R.dynamicShouldError)
|
|
2231
|
-
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", {
|
|
2232
2234
|
value: "E553",
|
|
2233
2235
|
enumerable: !1,
|
|
2234
2236
|
configurable: !0
|
|
2235
2237
|
});
|
|
2236
2238
|
if (E)
|
|
2237
2239
|
if (E.type === "prerender-ppr")
|
|
2238
|
-
S(R.route,
|
|
2240
|
+
S(R.route, P, E.dynamicTracking);
|
|
2239
2241
|
else if (E.type === "prerender-legacy") {
|
|
2240
2242
|
E.revalidate = 0;
|
|
2241
|
-
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", {
|
|
2242
2244
|
value: "E550",
|
|
2243
2245
|
enumerable: !1,
|
|
2244
2246
|
configurable: !0
|
|
2245
2247
|
});
|
|
2246
|
-
throw R.dynamicUsageDescription =
|
|
2248
|
+
throw R.dynamicUsageDescription = P, R.dynamicUsageStack = C.stack, C;
|
|
2247
2249
|
} else process.env.NODE_ENV === "development" && E && E.type === "request" && (E.usedDynamic = !0);
|
|
2248
2250
|
}
|
|
2249
2251
|
}
|
|
2250
|
-
function
|
|
2251
|
-
const
|
|
2252
|
-
!
|
|
2252
|
+
function l(R, E) {
|
|
2253
|
+
const P = _.workUnitAsyncStorage.getStore();
|
|
2254
|
+
!P || P.type !== "prerender-ppr" || S(R.route, E, P.dynamicTracking);
|
|
2253
2255
|
}
|
|
2254
|
-
function
|
|
2256
|
+
function b(R, E, P) {
|
|
2255
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", {
|
|
2256
2258
|
value: "E558",
|
|
2257
2259
|
enumerable: !1,
|
|
2258
2260
|
configurable: !0
|
|
2259
2261
|
});
|
|
2260
|
-
throw
|
|
2262
|
+
throw P.revalidate = 0, E.dynamicUsageDescription = R, E.dynamicUsageStack = C.stack, C;
|
|
2261
2263
|
}
|
|
2262
2264
|
function h(R, E) {
|
|
2263
2265
|
if (E) {
|
|
@@ -2266,10 +2268,10 @@ function yr() {
|
|
|
2266
2268
|
(E.type === "prerender" || E.type === "prerender-legacy") && (E.revalidate = 0), process.env.NODE_ENV === "development" && E.type === "request" && (E.usedDynamic = !0);
|
|
2267
2269
|
}
|
|
2268
2270
|
}
|
|
2269
|
-
function
|
|
2271
|
+
function p(R, E, P) {
|
|
2270
2272
|
const C = `Route ${R} needs to bail out of prerendering at this point because it used ${E}.`, M = H(C);
|
|
2271
|
-
|
|
2272
|
-
const O =
|
|
2273
|
+
P.controller.abort(M);
|
|
2274
|
+
const O = P.dynamicTracking;
|
|
2273
2275
|
O && O.dynamicAccesses.push({
|
|
2274
2276
|
// When we aren't debugging, we don't need to create another error for the
|
|
2275
2277
|
// stack trace.
|
|
@@ -2277,30 +2279,30 @@ function yr() {
|
|
|
2277
2279
|
expression: E
|
|
2278
2280
|
});
|
|
2279
2281
|
}
|
|
2280
|
-
function
|
|
2282
|
+
function w(R, E, P, C) {
|
|
2281
2283
|
const M = C.dynamicTracking;
|
|
2282
|
-
M && M.syncDynamicErrorWithStack === null && (M.syncDynamicExpression = E, M.syncDynamicErrorWithStack =
|
|
2284
|
+
M && M.syncDynamicErrorWithStack === null && (M.syncDynamicExpression = E, M.syncDynamicErrorWithStack = P), p(R, E, C);
|
|
2283
2285
|
}
|
|
2284
2286
|
function t(R) {
|
|
2285
2287
|
R.prerenderPhase = !1;
|
|
2286
2288
|
}
|
|
2287
|
-
function
|
|
2289
|
+
function A(R, E, P, C) {
|
|
2288
2290
|
if (C.controller.signal.aborted === !1) {
|
|
2289
2291
|
const O = C.dynamicTracking;
|
|
2290
|
-
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);
|
|
2291
2293
|
}
|
|
2292
2294
|
throw H(`Route ${R} needs to bail out of prerendering at this point because it used ${E}.`);
|
|
2293
2295
|
}
|
|
2294
|
-
const
|
|
2295
|
-
function
|
|
2296
|
-
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;
|
|
2297
2299
|
S(E, R, C);
|
|
2298
2300
|
}
|
|
2299
|
-
function S(R, E,
|
|
2300
|
-
J(),
|
|
2301
|
+
function S(R, E, P) {
|
|
2302
|
+
J(), P && P.dynamicAccesses.push({
|
|
2301
2303
|
// When we aren't debugging, we don't need to create another error for the
|
|
2302
2304
|
// stack trace.
|
|
2303
|
-
stack:
|
|
2305
|
+
stack: P.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2304
2306
|
expression: E
|
|
2305
2307
|
}), c.default.unstable_postpone(j(R, E));
|
|
2306
2308
|
}
|
|
@@ -2338,13 +2340,13 @@ function yr() {
|
|
|
2338
2340
|
return R.dynamicAccesses.push(...E.dynamicAccesses), R.dynamicAccesses;
|
|
2339
2341
|
}
|
|
2340
2342
|
function z(R) {
|
|
2341
|
-
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(`
|
|
2342
2344
|
`).slice(4).filter((C) => !(C.includes("node_modules/next/") || C.includes(" (<anonymous>)") || C.includes(" (node:"))).join(`
|
|
2343
2345
|
`), `Dynamic API Usage Debug - ${E}:
|
|
2344
|
-
${
|
|
2346
|
+
${P}`));
|
|
2345
2347
|
}
|
|
2346
2348
|
function J() {
|
|
2347
|
-
if (!
|
|
2349
|
+
if (!d)
|
|
2348
2350
|
throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2349
2351
|
value: "E224",
|
|
2350
2352
|
enumerable: !1,
|
|
@@ -2356,8 +2358,8 @@ ${A}`));
|
|
|
2356
2358
|
const E = new AbortController();
|
|
2357
2359
|
try {
|
|
2358
2360
|
c.default.unstable_postpone(R);
|
|
2359
|
-
} catch (
|
|
2360
|
-
E.abort(
|
|
2361
|
+
} catch (P) {
|
|
2362
|
+
E.abort(P);
|
|
2361
2363
|
}
|
|
2362
2364
|
return E.signal;
|
|
2363
2365
|
}
|
|
@@ -2365,54 +2367,54 @@ ${A}`));
|
|
|
2365
2367
|
const E = new AbortController();
|
|
2366
2368
|
return R.cacheSignal ? R.cacheSignal.inputReady().then(() => {
|
|
2367
2369
|
E.abort();
|
|
2368
|
-
}) : (0,
|
|
2370
|
+
}) : (0, f.scheduleOnNextTick)(() => E.abort()), E.signal;
|
|
2369
2371
|
}
|
|
2370
2372
|
function le(R, E) {
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2373
|
-
stack:
|
|
2373
|
+
const P = E.dynamicTracking;
|
|
2374
|
+
P && P.dynamicAccesses.push({
|
|
2375
|
+
stack: P.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2374
2376
|
expression: R
|
|
2375
2377
|
});
|
|
2376
2378
|
}
|
|
2377
2379
|
function oe(R) {
|
|
2378
|
-
const E =
|
|
2380
|
+
const E = i.workAsyncStorage.getStore();
|
|
2379
2381
|
if (E && E.isStaticGeneration && E.fallbackRouteParams && E.fallbackRouteParams.size > 0) {
|
|
2380
|
-
const
|
|
2381
|
-
|
|
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));
|
|
2382
2384
|
}
|
|
2383
2385
|
}
|
|
2384
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]`);
|
|
2385
|
-
function fe(R, E,
|
|
2387
|
+
function fe(R, E, P, C, M) {
|
|
2386
2388
|
if (!se.test(E))
|
|
2387
2389
|
if (de.test(E)) {
|
|
2388
|
-
|
|
2390
|
+
P.hasDynamicMetadata = !0;
|
|
2389
2391
|
return;
|
|
2390
2392
|
} else if (te.test(E)) {
|
|
2391
|
-
|
|
2393
|
+
P.hasDynamicViewport = !0;
|
|
2392
2394
|
return;
|
|
2393
2395
|
} else if (ae.test(E)) {
|
|
2394
|
-
|
|
2396
|
+
P.hasSuspendedDynamic = !0;
|
|
2395
2397
|
return;
|
|
2396
2398
|
} else if (C.syncDynamicErrorWithStack || M.syncDynamicErrorWithStack) {
|
|
2397
|
-
|
|
2399
|
+
P.hasSyncDynamicErrors = !0;
|
|
2398
2400
|
return;
|
|
2399
2401
|
} else {
|
|
2400
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);
|
|
2401
|
-
|
|
2403
|
+
P.dynamicErrors.push(B);
|
|
2402
2404
|
return;
|
|
2403
2405
|
}
|
|
2404
2406
|
}
|
|
2405
2407
|
function re(R, E) {
|
|
2406
|
-
const
|
|
2408
|
+
const P = Object.defineProperty(new Error(R), "__NEXT_ERROR_CODE", {
|
|
2407
2409
|
value: "E394",
|
|
2408
2410
|
enumerable: !1,
|
|
2409
2411
|
configurable: !0
|
|
2410
2412
|
});
|
|
2411
|
-
return
|
|
2413
|
+
return P.stack = "Error: " + R + E, P;
|
|
2412
2414
|
}
|
|
2413
|
-
function ue(R, E,
|
|
2415
|
+
function ue(R, E, P, C) {
|
|
2414
2416
|
let M, O, B;
|
|
2415
|
-
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)
|
|
2416
2418
|
throw B || console.error(M), new s.StaticGenBailoutError();
|
|
2417
2419
|
const W = E.dynamicErrors;
|
|
2418
2420
|
if (W.length) {
|
|
@@ -2479,10 +2481,10 @@ function en() {
|
|
|
2479
2481
|
Object.defineProperty(r, "__esModule", {
|
|
2480
2482
|
value: !0
|
|
2481
2483
|
});
|
|
2482
|
-
function o(a,
|
|
2483
|
-
for (var
|
|
2484
|
+
function o(a, f) {
|
|
2485
|
+
for (var n in f) Object.defineProperty(a, n, {
|
|
2484
2486
|
enumerable: !0,
|
|
2485
|
-
get:
|
|
2487
|
+
get: f[n]
|
|
2486
2488
|
});
|
|
2487
2489
|
}
|
|
2488
2490
|
o(r, {
|
|
@@ -2490,37 +2492,37 @@ function en() {
|
|
|
2490
2492
|
return e;
|
|
2491
2493
|
},
|
|
2492
2494
|
throwForSearchParamsAccessInUseCache: function() {
|
|
2493
|
-
return
|
|
2495
|
+
return i;
|
|
2494
2496
|
},
|
|
2495
2497
|
throwWithStaticGenerationBailoutError: function() {
|
|
2496
2498
|
return s;
|
|
2497
2499
|
},
|
|
2498
2500
|
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
2499
|
-
return
|
|
2501
|
+
return _;
|
|
2500
2502
|
}
|
|
2501
2503
|
});
|
|
2502
|
-
const c =
|
|
2503
|
-
function s(a,
|
|
2504
|
-
throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${a} couldn't be rendered statically because it used ${
|
|
2504
|
+
const c = bt(), u = Jr();
|
|
2505
|
+
function s(a, f) {
|
|
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", {
|
|
2505
2507
|
value: "E576",
|
|
2506
2508
|
enumerable: !1,
|
|
2507
2509
|
configurable: !0
|
|
2508
2510
|
});
|
|
2509
2511
|
}
|
|
2510
|
-
function
|
|
2511
|
-
throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${a} with \`dynamic = "error"\` couldn't be rendered statically because it used ${
|
|
2512
|
+
function _(a, f) {
|
|
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", {
|
|
2512
2514
|
value: "E543",
|
|
2513
2515
|
enumerable: !1,
|
|
2514
2516
|
configurable: !0
|
|
2515
2517
|
});
|
|
2516
2518
|
}
|
|
2517
|
-
function
|
|
2518
|
-
const
|
|
2519
|
+
function i(a) {
|
|
2520
|
+
const f = Object.defineProperty(new Error(`Route ${a.route} used "searchParams" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "searchParams" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
2519
2521
|
value: "E634",
|
|
2520
2522
|
enumerable: !1,
|
|
2521
2523
|
configurable: !0
|
|
2522
2524
|
});
|
|
2523
|
-
throw a.invalidUsageError ?? (a.invalidUsageError =
|
|
2525
|
+
throw a.invalidUsageError ?? (a.invalidUsageError = f), f;
|
|
2524
2526
|
}
|
|
2525
2527
|
function e() {
|
|
2526
2528
|
const a = u.afterTaskAsyncStorage.getStore();
|
|
@@ -2539,11 +2541,11 @@ function tn() {
|
|
|
2539
2541
|
return e;
|
|
2540
2542
|
}
|
|
2541
2543
|
});
|
|
2542
|
-
const o = ye(), c =
|
|
2544
|
+
const o = ye(), c = gt(), u = yr(), s = bt(), _ = Et(), i = en();
|
|
2543
2545
|
function e() {
|
|
2544
|
-
const a = o.workAsyncStorage.getStore(),
|
|
2546
|
+
const a = o.workAsyncStorage.getStore(), f = c.workUnitAsyncStorage.getStore();
|
|
2545
2547
|
if (a) {
|
|
2546
|
-
if (
|
|
2548
|
+
if (f && f.phase === "after" && !(0, i.isRequestAPICallableInsideAfter)())
|
|
2547
2549
|
throw Object.defineProperty(new Error(`Route ${a.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
|
|
2548
2550
|
value: "E186",
|
|
2549
2551
|
enumerable: !1,
|
|
@@ -2551,14 +2553,14 @@ function tn() {
|
|
|
2551
2553
|
});
|
|
2552
2554
|
if (a.forceStatic)
|
|
2553
2555
|
return Promise.resolve(void 0);
|
|
2554
|
-
if (
|
|
2555
|
-
if (
|
|
2556
|
+
if (f) {
|
|
2557
|
+
if (f.type === "cache")
|
|
2556
2558
|
throw Object.defineProperty(new Error(`Route ${a.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
2557
2559
|
value: "E111",
|
|
2558
2560
|
enumerable: !1,
|
|
2559
2561
|
configurable: !0
|
|
2560
2562
|
});
|
|
2561
|
-
if (
|
|
2563
|
+
if (f.type === "unstable-cache")
|
|
2562
2564
|
throw Object.defineProperty(new Error(`Route ${a.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
2563
2565
|
value: "E1",
|
|
2564
2566
|
enumerable: !1,
|
|
@@ -2571,12 +2573,12 @@ function tn() {
|
|
|
2571
2573
|
enumerable: !1,
|
|
2572
2574
|
configurable: !0
|
|
2573
2575
|
});
|
|
2574
|
-
if (
|
|
2575
|
-
if (
|
|
2576
|
-
return (0,
|
|
2577
|
-
|
|
2576
|
+
if (f) {
|
|
2577
|
+
if (f.type === "prerender")
|
|
2578
|
+
return (0, _.makeHangingPromise)(f.renderSignal, "`connection()`");
|
|
2579
|
+
f.type === "prerender-ppr" ? (0, u.postponeWithTracking)(a.route, "connection", f.dynamicTracking) : f.type === "prerender-legacy" && (0, u.throwToInterruptStaticGeneration)("connection", a, f);
|
|
2578
2580
|
}
|
|
2579
|
-
(0, u.trackDynamicDataInDynamicRender)(a,
|
|
2581
|
+
(0, u.trackDynamicDataInDynamicRender)(a, f);
|
|
2580
2582
|
}
|
|
2581
2583
|
return Promise.resolve(void 0);
|
|
2582
2584
|
}
|
|
@@ -2606,8 +2608,8 @@ function nn() {
|
|
|
2606
2608
|
Object.defineProperty(r, "__esModule", {
|
|
2607
2609
|
value: !0
|
|
2608
2610
|
});
|
|
2609
|
-
function o(
|
|
2610
|
-
for (var a in e) Object.defineProperty(
|
|
2611
|
+
function o(i, e) {
|
|
2612
|
+
for (var a in e) Object.defineProperty(i, a, {
|
|
2611
2613
|
enumerable: !0,
|
|
2612
2614
|
get: e[a]
|
|
2613
2615
|
});
|
|
@@ -2620,18 +2622,18 @@ function nn() {
|
|
|
2620
2622
|
return u;
|
|
2621
2623
|
},
|
|
2622
2624
|
wellKnownProperties: function() {
|
|
2623
|
-
return
|
|
2625
|
+
return _;
|
|
2624
2626
|
}
|
|
2625
2627
|
});
|
|
2626
2628
|
const c = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
2627
|
-
function u(
|
|
2628
|
-
return c.test(e) ? "`" +
|
|
2629
|
+
function u(i, e) {
|
|
2630
|
+
return c.test(e) ? "`" + i + "." + e + "`" : "`" + i + "[" + JSON.stringify(e) + "]`";
|
|
2629
2631
|
}
|
|
2630
|
-
function s(
|
|
2632
|
+
function s(i, e) {
|
|
2631
2633
|
const a = JSON.stringify(e);
|
|
2632
|
-
return "`Reflect.has(" +
|
|
2634
|
+
return "`Reflect.has(" + i + ", " + a + ")`, `" + a + " in " + i + "`, or similar";
|
|
2633
2635
|
}
|
|
2634
|
-
const
|
|
2636
|
+
const _ = /* @__PURE__ */ new Set([
|
|
2635
2637
|
"hasOwnProperty",
|
|
2636
2638
|
"isPrototypeOf",
|
|
2637
2639
|
"propertyIsEnumerable",
|
|
@@ -2667,26 +2669,26 @@ function on() {
|
|
|
2667
2669
|
return a;
|
|
2668
2670
|
}
|
|
2669
2671
|
});
|
|
2670
|
-
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();
|
|
2671
2673
|
async function a() {
|
|
2672
|
-
const
|
|
2673
|
-
if (!
|
|
2674
|
+
const d = u.workAsyncStorage.getStore();
|
|
2675
|
+
if (!d)
|
|
2674
2676
|
throw Object.defineProperty(new o.InvariantError("Missing workStore in unstable_rootParams"), "__NEXT_ERROR_CODE", {
|
|
2675
2677
|
value: "E615",
|
|
2676
2678
|
enumerable: !1,
|
|
2677
2679
|
configurable: !0
|
|
2678
2680
|
});
|
|
2679
|
-
const
|
|
2680
|
-
if (!
|
|
2681
|
-
throw Object.defineProperty(new Error(`Route ${
|
|
2681
|
+
const g = s.workUnitAsyncStorage.getStore();
|
|
2682
|
+
if (!g)
|
|
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", {
|
|
2682
2684
|
value: "E641",
|
|
2683
2685
|
enumerable: !1,
|
|
2684
2686
|
configurable: !0
|
|
2685
2687
|
});
|
|
2686
|
-
switch (
|
|
2688
|
+
switch (g.type) {
|
|
2687
2689
|
case "unstable-cache":
|
|
2688
2690
|
case "cache":
|
|
2689
|
-
throw Object.defineProperty(new Error(`Route ${
|
|
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", {
|
|
2690
2692
|
value: "E642",
|
|
2691
2693
|
enumerable: !1,
|
|
2692
2694
|
configurable: !0
|
|
@@ -2694,49 +2696,49 @@ function on() {
|
|
|
2694
2696
|
case "prerender":
|
|
2695
2697
|
case "prerender-ppr":
|
|
2696
2698
|
case "prerender-legacy":
|
|
2697
|
-
return
|
|
2699
|
+
return f(g.rootParams, d, g);
|
|
2698
2700
|
default:
|
|
2699
|
-
return Promise.resolve(
|
|
2701
|
+
return Promise.resolve(g.rootParams);
|
|
2700
2702
|
}
|
|
2701
2703
|
}
|
|
2702
|
-
function
|
|
2703
|
-
const T =
|
|
2704
|
+
function f(d, g, y) {
|
|
2705
|
+
const T = g.fallbackRouteParams;
|
|
2704
2706
|
if (T) {
|
|
2705
2707
|
let I = !1;
|
|
2706
|
-
for (const
|
|
2707
|
-
if (T.has(
|
|
2708
|
+
for (const l in d)
|
|
2709
|
+
if (T.has(l)) {
|
|
2708
2710
|
I = !0;
|
|
2709
2711
|
break;
|
|
2710
2712
|
}
|
|
2711
2713
|
if (I) {
|
|
2712
|
-
if (
|
|
2713
|
-
const
|
|
2714
|
-
if (
|
|
2715
|
-
return
|
|
2716
|
-
const
|
|
2717
|
-
return e.set(
|
|
2714
|
+
if (y.type === "prerender") {
|
|
2715
|
+
const l = e.get(d);
|
|
2716
|
+
if (l)
|
|
2717
|
+
return l;
|
|
2718
|
+
const b = (0, _.makeHangingPromise)(y.renderSignal, "`unstable_rootParams`");
|
|
2719
|
+
return e.set(d, b), b;
|
|
2718
2720
|
}
|
|
2719
|
-
return
|
|
2721
|
+
return n(d, T, g, y);
|
|
2720
2722
|
}
|
|
2721
2723
|
}
|
|
2722
|
-
return Promise.resolve(
|
|
2724
|
+
return Promise.resolve(d);
|
|
2723
2725
|
}
|
|
2724
|
-
function
|
|
2725
|
-
const I = e.get(
|
|
2726
|
+
function n(d, g, y, T) {
|
|
2727
|
+
const I = e.get(d);
|
|
2726
2728
|
if (I)
|
|
2727
2729
|
return I;
|
|
2728
|
-
const
|
|
2729
|
-
...
|
|
2730
|
-
},
|
|
2731
|
-
return e.set(
|
|
2732
|
-
|
|
2730
|
+
const l = {
|
|
2731
|
+
...d
|
|
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, {
|
|
2733
2735
|
get() {
|
|
2734
|
-
const
|
|
2735
|
-
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);
|
|
2736
2738
|
},
|
|
2737
2739
|
enumerable: !0
|
|
2738
|
-
}) :
|
|
2739
|
-
}),
|
|
2740
|
+
}) : b[h] = d[h]);
|
|
2741
|
+
}), b;
|
|
2740
2742
|
}
|
|
2741
2743
|
}(lt)), lt;
|
|
2742
2744
|
}
|
|
@@ -2760,7 +2762,7 @@ function an() {
|
|
|
2760
2762
|
var Re = an();
|
|
2761
2763
|
async function fn(r) {
|
|
2762
2764
|
try {
|
|
2763
|
-
const c = await
|
|
2765
|
+
const c = await gr().middleware(r);
|
|
2764
2766
|
if (c instanceof Re.NextResponse) {
|
|
2765
2767
|
const u = c.status;
|
|
2766
2768
|
if (u === 401 || u === 403 || u === 500) {
|
|
@@ -2792,7 +2794,7 @@ export {
|
|
|
2792
2794
|
mn as accessToken,
|
|
2793
2795
|
hn as authMiddlewareMatcher,
|
|
2794
2796
|
Pr as createServerAuth0,
|
|
2795
|
-
|
|
2797
|
+
gr as getAuth0Client,
|
|
2796
2798
|
ln as getAuth0ServerConfigFromEnv,
|
|
2797
2799
|
dn as getServerSidePermissions,
|
|
2798
2800
|
fn as handleAuthMiddleware
|