quirk-ui 0.0.360 → 0.0.362
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/next/cards/BlogArticleCard/index.js +294 -294
- package/package.json +1 -1
|
@@ -32,15 +32,15 @@ function Jt() {
|
|
|
32
32
|
st = 1;
|
|
33
33
|
function i(a) {
|
|
34
34
|
if (typeof WeakMap != "function") return null;
|
|
35
|
-
var
|
|
35
|
+
var s = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap();
|
|
36
36
|
return (i = function(o) {
|
|
37
|
-
return o ? f :
|
|
37
|
+
return o ? f : s;
|
|
38
38
|
})(a);
|
|
39
39
|
}
|
|
40
|
-
function e(a,
|
|
41
|
-
if (!
|
|
40
|
+
function e(a, s) {
|
|
41
|
+
if (!s && a && a.__esModule) return a;
|
|
42
42
|
if (a === null || typeof a != "object" && typeof a != "function") return { default: a };
|
|
43
|
-
var f = i(
|
|
43
|
+
var f = i(s);
|
|
44
44
|
if (f && f.has(a)) return f.get(a);
|
|
45
45
|
var o = { __proto__: null }, n = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
46
46
|
for (var r in a)
|
|
@@ -77,31 +77,31 @@ function er() {
|
|
|
77
77
|
});
|
|
78
78
|
function a(n) {
|
|
79
79
|
const r = {};
|
|
80
|
-
for (const [t,
|
|
80
|
+
for (const [t, c] of n.entries()) {
|
|
81
81
|
const l = r[t];
|
|
82
|
-
typeof l > "u" ? r[t] =
|
|
82
|
+
typeof l > "u" ? r[t] = c : Array.isArray(l) ? l.push(c) : r[t] = [
|
|
83
83
|
l,
|
|
84
|
-
|
|
84
|
+
c
|
|
85
85
|
];
|
|
86
86
|
}
|
|
87
87
|
return r;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function s(n) {
|
|
90
90
|
return typeof n == "string" ? n : typeof n == "number" && !isNaN(n) || typeof n == "boolean" ? String(n) : "";
|
|
91
91
|
}
|
|
92
92
|
function f(n) {
|
|
93
93
|
const r = new URLSearchParams();
|
|
94
|
-
for (const [t,
|
|
95
|
-
if (Array.isArray(
|
|
96
|
-
for (const l of
|
|
97
|
-
r.append(t,
|
|
94
|
+
for (const [t, c] of Object.entries(n))
|
|
95
|
+
if (Array.isArray(c))
|
|
96
|
+
for (const l of c)
|
|
97
|
+
r.append(t, s(l));
|
|
98
98
|
else
|
|
99
|
-
r.set(t, c
|
|
99
|
+
r.set(t, s(c));
|
|
100
100
|
return r;
|
|
101
101
|
}
|
|
102
102
|
function o(n) {
|
|
103
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
104
|
-
t[
|
|
103
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
104
|
+
t[c - 1] = arguments[c];
|
|
105
105
|
for (const l of t) {
|
|
106
106
|
for (const E of l.keys())
|
|
107
107
|
n.delete(E);
|
|
@@ -118,10 +118,10 @@ function tr() {
|
|
|
118
118
|
Object.defineProperty(i, "__esModule", {
|
|
119
119
|
value: !0
|
|
120
120
|
});
|
|
121
|
-
function e(t,
|
|
122
|
-
for (var l in
|
|
121
|
+
function e(t, c) {
|
|
122
|
+
for (var l in c) Object.defineProperty(t, l, {
|
|
123
123
|
enumerable: !0,
|
|
124
|
-
get:
|
|
124
|
+
get: c[l]
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
e(i, {
|
|
@@ -135,12 +135,12 @@ function tr() {
|
|
|
135
135
|
return n;
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
-
const
|
|
138
|
+
const s = /* @__PURE__ */ (/* @__PURE__ */ Jt())._(er()), f = /https?|ftp|gopher|file/;
|
|
139
139
|
function o(t) {
|
|
140
|
-
let { auth:
|
|
141
|
-
|
|
140
|
+
let { auth: c, hostname: l } = t, E = t.protocol || "", O = t.pathname || "", v = t.hash || "", g = t.query || "", u = !1;
|
|
141
|
+
c = c ? encodeURIComponent(c).replace(/%3A/i, ":") + "@" : "", t.host ? u = c + t.host : l && (u = c + (~l.indexOf(":") ? "[" + l + "]" : l), t.port && (u += ":" + t.port)), g && typeof g == "object" && (g = String(s.urlQueryToSearchParams(g)));
|
|
142
142
|
let _ = t.search || g && "?" + g || "";
|
|
143
|
-
return E && !E.endsWith(":") && (E += ":"), t.slashes || (!E || f.test(E)) &&
|
|
143
|
+
return E && !E.endsWith(":") && (E += ":"), t.slashes || (!E || f.test(E)) && u !== !1 ? (u = "//" + (u || ""), O && O[0] !== "/" && (O = "/" + O)) : u || (u = ""), v && v[0] !== "#" && (v = "#" + v), _ && _[0] !== "?" && (_ = "?" + _), O = O.replace(/[?#]/g, encodeURIComponent), _ = _.replace("#", "%23"), "" + E + u + O + _ + v;
|
|
144
144
|
}
|
|
145
145
|
const n = [
|
|
146
146
|
"auth",
|
|
@@ -157,8 +157,8 @@ function tr() {
|
|
|
157
157
|
"slashes"
|
|
158
158
|
];
|
|
159
159
|
function r(t) {
|
|
160
|
-
return process.env.NODE_ENV === "development" && t !== null && typeof t == "object" && Object.keys(t).forEach((
|
|
161
|
-
n.includes(
|
|
160
|
+
return process.env.NODE_ENV === "development" && t !== null && typeof t == "object" && Object.keys(t).forEach((c) => {
|
|
161
|
+
n.includes(c) || console.warn("Unknown key passed via urlObject into url.format: " + c);
|
|
162
162
|
}), o(t);
|
|
163
163
|
}
|
|
164
164
|
}(Ce)), Ce;
|
|
@@ -174,10 +174,10 @@ function Sr() {
|
|
|
174
174
|
return e;
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
function e(a,
|
|
177
|
+
function e(a, s) {
|
|
178
178
|
const f = {};
|
|
179
179
|
return Object.keys(a).forEach((o) => {
|
|
180
|
-
|
|
180
|
+
s.includes(o) || (f[o] = a[o]);
|
|
181
181
|
}), f;
|
|
182
182
|
}
|
|
183
183
|
}(we)), we;
|
|
@@ -205,7 +205,7 @@ function ye() {
|
|
|
205
205
|
return d;
|
|
206
206
|
},
|
|
207
207
|
NormalizeError: function() {
|
|
208
|
-
return
|
|
208
|
+
return u;
|
|
209
209
|
},
|
|
210
210
|
PageNotFoundError: function() {
|
|
211
211
|
return _;
|
|
@@ -220,7 +220,7 @@ function ye() {
|
|
|
220
220
|
return a;
|
|
221
221
|
},
|
|
222
222
|
execOnce: function() {
|
|
223
|
-
return
|
|
223
|
+
return s;
|
|
224
224
|
},
|
|
225
225
|
getDisplayName: function() {
|
|
226
226
|
return t;
|
|
@@ -235,7 +235,7 @@ function ye() {
|
|
|
235
235
|
return o;
|
|
236
236
|
},
|
|
237
237
|
isResSent: function() {
|
|
238
|
-
return
|
|
238
|
+
return c;
|
|
239
239
|
},
|
|
240
240
|
loadGetInitialProps: function() {
|
|
241
241
|
return E;
|
|
@@ -255,7 +255,7 @@ function ye() {
|
|
|
255
255
|
"LCP",
|
|
256
256
|
"TTFB"
|
|
257
257
|
];
|
|
258
|
-
function
|
|
258
|
+
function s(p) {
|
|
259
259
|
let h = !1, m;
|
|
260
260
|
return function() {
|
|
261
261
|
for (var S = arguments.length, P = new Array(S), b = 0; b < S; b++)
|
|
@@ -275,7 +275,7 @@ function ye() {
|
|
|
275
275
|
function t(p) {
|
|
276
276
|
return typeof p == "string" ? p : p.displayName || p.name || "Unknown";
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function c(p) {
|
|
279
279
|
return p.finished || p.headersSent;
|
|
280
280
|
}
|
|
281
281
|
function l(p) {
|
|
@@ -300,7 +300,7 @@ function ye() {
|
|
|
300
300
|
pageProps: await E(h.Component, h.ctx)
|
|
301
301
|
} : {};
|
|
302
302
|
const P = await p.getInitialProps(h);
|
|
303
|
-
if (S &&
|
|
303
|
+
if (S && c(S))
|
|
304
304
|
return P;
|
|
305
305
|
if (!P) {
|
|
306
306
|
const b = '"' + t(p) + '.getInitialProps()" should resolve to an object. But found "' + P + '" instead.';
|
|
@@ -319,7 +319,7 @@ function ye() {
|
|
|
319
319
|
].every((p) => typeof performance[p] == "function");
|
|
320
320
|
class g extends Error {
|
|
321
321
|
}
|
|
322
|
-
class
|
|
322
|
+
class u extends Error {
|
|
323
323
|
}
|
|
324
324
|
class _ extends Error {
|
|
325
325
|
constructor(h) {
|
|
@@ -372,11 +372,11 @@ function ut() {
|
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
function e(a) {
|
|
375
|
-
const
|
|
376
|
-
return o ||
|
|
377
|
-
pathname: a.substring(0, o ? f :
|
|
378
|
-
query: o ? a.substring(f,
|
|
379
|
-
hash:
|
|
375
|
+
const s = a.indexOf("#"), f = a.indexOf("?"), o = f > -1 && (s < 0 || f < s);
|
|
376
|
+
return o || s > -1 ? {
|
|
377
|
+
pathname: a.substring(0, o ? f : s),
|
|
378
|
+
query: o ? a.substring(f, s > -1 ? s : void 0) : "",
|
|
379
|
+
hash: s > -1 ? a.slice(s) : ""
|
|
380
380
|
} : {
|
|
381
381
|
pathname: a,
|
|
382
382
|
query: "",
|
|
@@ -396,10 +396,10 @@ function be() {
|
|
|
396
396
|
return f;
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
|
-
const a = rr(),
|
|
399
|
+
const a = rr(), s = ut(), f = (o) => {
|
|
400
400
|
if (!o.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
|
|
401
401
|
return o;
|
|
402
|
-
const { pathname: n, query: r, hash: t } = (0,
|
|
402
|
+
const { pathname: n, query: r, hash: t } = (0, s.parsePath)(o);
|
|
403
403
|
return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(n) ? "" + (0, a.removeTrailingSlash)(n) + r + t : n.endsWith("/") ? "" + n + r + t : n + "/" + r + t : "" + (0, a.removeTrailingSlash)(n) + r + t;
|
|
404
404
|
};
|
|
405
405
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), i.exports = e.default);
|
|
@@ -417,10 +417,10 @@ function nr() {
|
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
const e = ut();
|
|
420
|
-
function a(
|
|
421
|
-
if (typeof
|
|
420
|
+
function a(s, f) {
|
|
421
|
+
if (typeof s != "string")
|
|
422
422
|
return !1;
|
|
423
|
-
const { pathname: o } = (0, e.parsePath)(
|
|
423
|
+
const { pathname: o } = (0, e.parsePath)(s);
|
|
424
424
|
return o === f || o.startsWith(f + "/");
|
|
425
425
|
}
|
|
426
426
|
}(je)), je;
|
|
@@ -436,9 +436,9 @@ function Nr() {
|
|
|
436
436
|
return f;
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
|
-
const a = nr(),
|
|
439
|
+
const a = nr(), s = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
440
440
|
function f(o) {
|
|
441
|
-
return (0, a.pathHasPrefix)(o,
|
|
441
|
+
return (0, a.pathHasPrefix)(o, s);
|
|
442
442
|
}
|
|
443
443
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), i.exports = e.default);
|
|
444
444
|
}(pe, pe.exports)), pe.exports;
|
|
@@ -451,11 +451,11 @@ function or() {
|
|
|
451
451
|
}), Object.defineProperty(i, "isLocalURL", {
|
|
452
452
|
enumerable: !0,
|
|
453
453
|
get: function() {
|
|
454
|
-
return
|
|
454
|
+
return s;
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
457
|
const e = ye(), a = Nr();
|
|
458
|
-
function
|
|
458
|
+
function s(f) {
|
|
459
459
|
if (!(0, e.isAbsoluteUrl)(f)) return !0;
|
|
460
460
|
try {
|
|
461
461
|
const o = (0, e.getLocationOrigin)(), n = new URL(f, o);
|
|
@@ -483,7 +483,7 @@ function Ir() {
|
|
|
483
483
|
return f;
|
|
484
484
|
},
|
|
485
485
|
getSortedRoutes: function() {
|
|
486
|
-
return
|
|
486
|
+
return s;
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
489
|
class a {
|
|
@@ -499,19 +499,19 @@ function Ir() {
|
|
|
499
499
|
...this.children.keys()
|
|
500
500
|
].sort();
|
|
501
501
|
this.slugName !== null && r.splice(r.indexOf("[]"), 1), this.restSlugName !== null && r.splice(r.indexOf("[...]"), 1), this.optionalRestSlugName !== null && r.splice(r.indexOf("[[...]]"), 1);
|
|
502
|
-
const t = r.map((
|
|
503
|
-
...
|
|
502
|
+
const t = r.map((c) => this.children.get(c)._smoosh("" + n + c + "/")).reduce((c, l) => [
|
|
503
|
+
...c,
|
|
504
504
|
...l
|
|
505
505
|
], []);
|
|
506
506
|
if (this.slugName !== null && t.push(...this.children.get("[]")._smoosh(n + "[" + this.slugName + "]/")), !this.placeholder) {
|
|
507
|
-
const
|
|
507
|
+
const c = n === "/" ? "/" : n.slice(0, -1);
|
|
508
508
|
if (this.optionalRestSlugName != null)
|
|
509
|
-
throw Object.defineProperty(new Error('You cannot define a route with the same specificity as a optional catch-all route ("' +
|
|
509
|
+
throw Object.defineProperty(new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + c + '" and "' + c + "[[..." + this.optionalRestSlugName + ']]").'), "__NEXT_ERROR_CODE", {
|
|
510
510
|
value: "E458",
|
|
511
511
|
enumerable: !1,
|
|
512
512
|
configurable: !0
|
|
513
513
|
});
|
|
514
|
-
t.unshift(
|
|
514
|
+
t.unshift(c);
|
|
515
515
|
}
|
|
516
516
|
return this.restSlugName !== null && t.push(...this.children.get("[...]")._smoosh(n + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && t.push(...this.children.get("[[...]]")._smoosh(n + "[[..." + this.optionalRestSlugName + "]]/")), t;
|
|
517
517
|
}
|
|
@@ -526,8 +526,8 @@ function Ir() {
|
|
|
526
526
|
enumerable: !1,
|
|
527
527
|
configurable: !0
|
|
528
528
|
});
|
|
529
|
-
let
|
|
530
|
-
if (
|
|
529
|
+
let c = n[0];
|
|
530
|
+
if (c.startsWith("[") && c.endsWith("]")) {
|
|
531
531
|
let O = function(v, g) {
|
|
532
532
|
if (v !== null && v !== g)
|
|
533
533
|
throw Object.defineProperty(new Error("You cannot use different slug names for the same dynamic path ('" + v + "' !== '" + g + "')."), "__NEXT_ERROR_CODE", {
|
|
@@ -535,21 +535,21 @@ function Ir() {
|
|
|
535
535
|
enumerable: !1,
|
|
536
536
|
configurable: !0
|
|
537
537
|
});
|
|
538
|
-
r.forEach((
|
|
539
|
-
if (
|
|
538
|
+
r.forEach((u) => {
|
|
539
|
+
if (u === g)
|
|
540
540
|
throw Object.defineProperty(new Error('You cannot have the same slug name "' + g + '" repeat within a single dynamic path'), "__NEXT_ERROR_CODE", {
|
|
541
541
|
value: "E247",
|
|
542
542
|
enumerable: !1,
|
|
543
543
|
configurable: !0
|
|
544
544
|
});
|
|
545
|
-
if (
|
|
546
|
-
throw Object.defineProperty(new Error('You cannot have the slug names "' +
|
|
545
|
+
if (u.replace(/\W/g, "") === c.replace(/\W/g, ""))
|
|
546
|
+
throw Object.defineProperty(new Error('You cannot have the slug names "' + u + '" and "' + g + '" differ only by non-word symbols within a single dynamic path'), "__NEXT_ERROR_CODE", {
|
|
547
547
|
value: "E499",
|
|
548
548
|
enumerable: !1,
|
|
549
549
|
configurable: !0
|
|
550
550
|
});
|
|
551
551
|
}), r.push(g);
|
|
552
|
-
}, l =
|
|
552
|
+
}, l = c.slice(1, -1), E = !1;
|
|
553
553
|
if (l.startsWith("[") && l.endsWith("]") && (l = l.slice(1, -1), E = !0), l.startsWith("…"))
|
|
554
554
|
throw Object.defineProperty(new Error("Detected a three-dot character ('…') at ('" + l + "'). Did you mean ('...')?"), "__NEXT_ERROR_CODE", {
|
|
555
555
|
value: "E147",
|
|
@@ -576,7 +576,7 @@ function Ir() {
|
|
|
576
576
|
enumerable: !1,
|
|
577
577
|
configurable: !0
|
|
578
578
|
});
|
|
579
|
-
O(this.optionalRestSlugName, l), this.optionalRestSlugName = l,
|
|
579
|
+
O(this.optionalRestSlugName, l), this.optionalRestSlugName = l, c = "[[...]]";
|
|
580
580
|
} else {
|
|
581
581
|
if (this.optionalRestSlugName != null)
|
|
582
582
|
throw Object.defineProperty(new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + n[0] + '").'), "__NEXT_ERROR_CODE", {
|
|
@@ -584,7 +584,7 @@ function Ir() {
|
|
|
584
584
|
enumerable: !1,
|
|
585
585
|
configurable: !0
|
|
586
586
|
});
|
|
587
|
-
O(this.restSlugName, l), this.restSlugName = l,
|
|
587
|
+
O(this.restSlugName, l), this.restSlugName = l, c = "[...]";
|
|
588
588
|
}
|
|
589
589
|
else {
|
|
590
590
|
if (E)
|
|
@@ -593,16 +593,16 @@ function Ir() {
|
|
|
593
593
|
enumerable: !1,
|
|
594
594
|
configurable: !0
|
|
595
595
|
});
|
|
596
|
-
O(this.slugName, l), this.slugName = l,
|
|
596
|
+
O(this.slugName, l), this.slugName = l, c = "[]";
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
this.children.has(
|
|
599
|
+
this.children.has(c) || this.children.set(c, new a()), this.children.get(c)._insert(n.slice(1), r, t);
|
|
600
600
|
}
|
|
601
601
|
constructor() {
|
|
602
602
|
this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function s(o) {
|
|
606
606
|
const n = new a();
|
|
607
607
|
return o.forEach((r) => n.insert(r)), n.smoosh();
|
|
608
608
|
}
|
|
@@ -612,7 +612,7 @@ function Ir() {
|
|
|
612
612
|
const E = n(o[l]);
|
|
613
613
|
r[E] = l, t[l] = E;
|
|
614
614
|
}
|
|
615
|
-
return
|
|
615
|
+
return s(t).map((l) => o[r[l]]);
|
|
616
616
|
}
|
|
617
617
|
}(Ue)), Ue;
|
|
618
618
|
}
|
|
@@ -639,9 +639,9 @@ function wr() {
|
|
|
639
639
|
value: !0
|
|
640
640
|
});
|
|
641
641
|
function e(r, t) {
|
|
642
|
-
for (var
|
|
642
|
+
for (var c in t) Object.defineProperty(r, c, {
|
|
643
643
|
enumerable: !0,
|
|
644
|
-
get: t[
|
|
644
|
+
get: t[c]
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
e(i, {
|
|
@@ -658,13 +658,13 @@ function wr() {
|
|
|
658
658
|
return a;
|
|
659
659
|
},
|
|
660
660
|
isParallelRouteSegment: function() {
|
|
661
|
-
return
|
|
661
|
+
return s;
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
function a(r) {
|
|
665
665
|
return r[0] === "(" && r.endsWith(")");
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function s(r) {
|
|
668
668
|
return r.startsWith("@") && r !== "@children";
|
|
669
669
|
}
|
|
670
670
|
function f(r, t) {
|
|
@@ -697,9 +697,9 @@ function Lr() {
|
|
|
697
697
|
return o;
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
|
-
const a = Cr(),
|
|
700
|
+
const a = Cr(), s = wr();
|
|
701
701
|
function f(n) {
|
|
702
|
-
return (0, a.ensureLeadingSlash)(n.split("/").reduce((r, t,
|
|
702
|
+
return (0, a.ensureLeadingSlash)(n.split("/").reduce((r, t, c, l) => !t || (0, s.isGroupSegment)(t) || t[0] === "@" || (t === "page" || t === "route") && c === l.length - 1 ? r : r + "/" + t, ""));
|
|
703
703
|
}
|
|
704
704
|
function o(n) {
|
|
705
705
|
return n.replace(
|
|
@@ -724,7 +724,7 @@ function ir() {
|
|
|
724
724
|
}
|
|
725
725
|
e(i, {
|
|
726
726
|
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
727
|
-
return
|
|
727
|
+
return s;
|
|
728
728
|
},
|
|
729
729
|
extractInterceptionRouteInformation: function() {
|
|
730
730
|
return o;
|
|
@@ -733,23 +733,23 @@ function ir() {
|
|
|
733
733
|
return f;
|
|
734
734
|
}
|
|
735
735
|
});
|
|
736
|
-
const a = Lr(),
|
|
736
|
+
const a = Lr(), s = [
|
|
737
737
|
"(..)(..)",
|
|
738
738
|
"(.)",
|
|
739
739
|
"(..)",
|
|
740
740
|
"(...)"
|
|
741
741
|
];
|
|
742
742
|
function f(n) {
|
|
743
|
-
return n.split("/").find((r) =>
|
|
743
|
+
return n.split("/").find((r) => s.find((t) => r.startsWith(t))) !== void 0;
|
|
744
744
|
}
|
|
745
745
|
function o(n) {
|
|
746
|
-
let r, t,
|
|
746
|
+
let r, t, c;
|
|
747
747
|
for (const l of n.split("/"))
|
|
748
|
-
if (t =
|
|
749
|
-
[r,
|
|
748
|
+
if (t = s.find((E) => l.startsWith(E)), t) {
|
|
749
|
+
[r, c] = n.split(t, 2);
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
|
-
if (!r || !t || !
|
|
752
|
+
if (!r || !t || !c)
|
|
753
753
|
throw Object.defineProperty(new Error("Invalid interception route: " + n + ". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"), "__NEXT_ERROR_CODE", {
|
|
754
754
|
value: "E269",
|
|
755
755
|
enumerable: !1,
|
|
@@ -757,7 +757,7 @@ function ir() {
|
|
|
757
757
|
});
|
|
758
758
|
switch (r = (0, a.normalizeAppPath)(r), t) {
|
|
759
759
|
case "(.)":
|
|
760
|
-
r === "/" ?
|
|
760
|
+
r === "/" ? c = "/" + c : c = r + "/" + c;
|
|
761
761
|
break;
|
|
762
762
|
case "(..)":
|
|
763
763
|
if (r === "/")
|
|
@@ -766,10 +766,10 @@ function ir() {
|
|
|
766
766
|
enumerable: !1,
|
|
767
767
|
configurable: !0
|
|
768
768
|
});
|
|
769
|
-
|
|
769
|
+
c = r.split("/").slice(0, -1).concat(c).join("/");
|
|
770
770
|
break;
|
|
771
771
|
case "(...)":
|
|
772
|
-
|
|
772
|
+
c = "/" + c;
|
|
773
773
|
break;
|
|
774
774
|
case "(..)(..)":
|
|
775
775
|
const l = r.split("/");
|
|
@@ -779,7 +779,7 @@ function ir() {
|
|
|
779
779
|
enumerable: !1,
|
|
780
780
|
configurable: !0
|
|
781
781
|
});
|
|
782
|
-
|
|
782
|
+
c = l.slice(0, -2).concat(c).join("/");
|
|
783
783
|
break;
|
|
784
784
|
default:
|
|
785
785
|
throw Object.defineProperty(new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
|
|
@@ -790,7 +790,7 @@ function ir() {
|
|
|
790
790
|
}
|
|
791
791
|
return {
|
|
792
792
|
interceptingRoute: r,
|
|
793
|
-
interceptedRoute:
|
|
793
|
+
interceptedRoute: c
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
796
|
}(Fe)), Fe;
|
|
@@ -806,9 +806,9 @@ function Mr() {
|
|
|
806
806
|
return f;
|
|
807
807
|
}
|
|
808
808
|
});
|
|
809
|
-
const e = ir(), a = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,
|
|
809
|
+
const e = ir(), a = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/, s = /\/\[[^/]+\](?=\/|$)/;
|
|
810
810
|
function f(o, n) {
|
|
811
|
-
return n === void 0 && (n = !0), (0, e.isInterceptionRouteAppPath)(o) && (o = (0, e.extractInterceptionRouteInformation)(o).interceptedRoute), n ?
|
|
811
|
+
return n === void 0 && (n = !0), (0, e.isInterceptionRouteAppPath)(o) && (o = (0, e.extractInterceptionRouteInformation)(o).interceptedRoute), n ? s.test(o) : a.test(o);
|
|
812
812
|
}
|
|
813
813
|
}(Xe)), Xe;
|
|
814
814
|
}
|
|
@@ -832,10 +832,10 @@ function xr() {
|
|
|
832
832
|
return a.getSortedRoutes;
|
|
833
833
|
},
|
|
834
834
|
isDynamicRoute: function() {
|
|
835
|
-
return
|
|
835
|
+
return s.isDynamicRoute;
|
|
836
836
|
}
|
|
837
837
|
});
|
|
838
|
-
const a = Ir(),
|
|
838
|
+
const a = Ir(), s = Mr();
|
|
839
839
|
}(qe)), qe;
|
|
840
840
|
}
|
|
841
841
|
var ze = {}, We = {}, Be = {}, $e = { exports: {} }, At;
|
|
@@ -846,30 +846,30 @@ function Dr() {
|
|
|
846
846
|
(() => {
|
|
847
847
|
var e = i;
|
|
848
848
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.pathToRegexp = e.tokensToRegexp = e.regexpToFunction = e.match = e.tokensToFunction = e.compile = e.parse = void 0;
|
|
849
|
-
function a(
|
|
850
|
-
for (var _ = [], d = 0; d <
|
|
851
|
-
var T =
|
|
849
|
+
function a(u) {
|
|
850
|
+
for (var _ = [], d = 0; d < u.length; ) {
|
|
851
|
+
var T = u[d];
|
|
852
852
|
if (T === "*" || T === "+" || T === "?") {
|
|
853
|
-
_.push({ type: "MODIFIER", index: d, value:
|
|
853
|
+
_.push({ type: "MODIFIER", index: d, value: u[d++] });
|
|
854
854
|
continue;
|
|
855
855
|
}
|
|
856
856
|
if (T === "\\") {
|
|
857
|
-
_.push({ type: "ESCAPED_CHAR", index: d++, value:
|
|
857
|
+
_.push({ type: "ESCAPED_CHAR", index: d++, value: u[d++] });
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
860
|
if (T === "{") {
|
|
861
|
-
_.push({ type: "OPEN", index: d, value:
|
|
861
|
+
_.push({ type: "OPEN", index: d, value: u[d++] });
|
|
862
862
|
continue;
|
|
863
863
|
}
|
|
864
864
|
if (T === "}") {
|
|
865
|
-
_.push({ type: "CLOSE", index: d, value:
|
|
865
|
+
_.push({ type: "CLOSE", index: d, value: u[d++] });
|
|
866
866
|
continue;
|
|
867
867
|
}
|
|
868
868
|
if (T === ":") {
|
|
869
|
-
for (var y = "", p = d + 1; p <
|
|
870
|
-
var h =
|
|
869
|
+
for (var y = "", p = d + 1; p < u.length; ) {
|
|
870
|
+
var h = u.charCodeAt(p);
|
|
871
871
|
if (h >= 48 && h <= 57 || h >= 65 && h <= 90 || h >= 97 && h <= 122 || h === 95) {
|
|
872
|
-
y +=
|
|
872
|
+
y += u[p++];
|
|
873
873
|
continue;
|
|
874
874
|
}
|
|
875
875
|
break;
|
|
@@ -880,34 +880,34 @@ function Dr() {
|
|
|
880
880
|
}
|
|
881
881
|
if (T === "(") {
|
|
882
882
|
var m = 1, S = "", p = d + 1;
|
|
883
|
-
if (
|
|
883
|
+
if (u[p] === "?")
|
|
884
884
|
throw new TypeError('Pattern cannot start with "?" at '.concat(p));
|
|
885
|
-
for (; p <
|
|
886
|
-
if (
|
|
887
|
-
S +=
|
|
885
|
+
for (; p < u.length; ) {
|
|
886
|
+
if (u[p] === "\\") {
|
|
887
|
+
S += u[p++] + u[p++];
|
|
888
888
|
continue;
|
|
889
889
|
}
|
|
890
|
-
if (
|
|
890
|
+
if (u[p] === ")") {
|
|
891
891
|
if (m--, m === 0) {
|
|
892
892
|
p++;
|
|
893
893
|
break;
|
|
894
894
|
}
|
|
895
|
-
} else if (
|
|
895
|
+
} else if (u[p] === "(" && (m++, u[p + 1] !== "?"))
|
|
896
896
|
throw new TypeError("Capturing groups are not allowed at ".concat(p));
|
|
897
|
-
S +=
|
|
897
|
+
S += u[p++];
|
|
898
898
|
}
|
|
899
899
|
if (m) throw new TypeError("Unbalanced pattern at ".concat(d));
|
|
900
900
|
if (!S) throw new TypeError("Missing pattern at ".concat(d));
|
|
901
901
|
_.push({ type: "PATTERN", index: d, value: S }), d = p;
|
|
902
902
|
continue;
|
|
903
903
|
}
|
|
904
|
-
_.push({ type: "CHAR", index: d, value:
|
|
904
|
+
_.push({ type: "CHAR", index: d, value: u[d++] });
|
|
905
905
|
}
|
|
906
906
|
return _.push({ type: "END", index: d, value: "" }), _;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function s(u, _) {
|
|
909
909
|
_ === void 0 && (_ = {});
|
|
910
|
-
for (var d = a(
|
|
910
|
+
for (var d = a(u), T = _.prefixes, y = T === void 0 ? "./" : T, p = _.delimiter, h = p === void 0 ? "/#?" : p, m = [], S = 0, P = 0, b = "", R = function(G) {
|
|
911
911
|
if (P < d.length && d[P].type === G) return d[P++].value;
|
|
912
912
|
}, A = function(G) {
|
|
913
913
|
var q = R(G);
|
|
@@ -952,22 +952,22 @@ function Dr() {
|
|
|
952
952
|
}
|
|
953
953
|
return m;
|
|
954
954
|
}
|
|
955
|
-
e.parse =
|
|
956
|
-
function f(
|
|
957
|
-
return o(
|
|
955
|
+
e.parse = s;
|
|
956
|
+
function f(u, _) {
|
|
957
|
+
return o(s(u, _), _);
|
|
958
958
|
}
|
|
959
959
|
e.compile = f;
|
|
960
|
-
function o(
|
|
960
|
+
function o(u, _) {
|
|
961
961
|
_ === void 0 && (_ = {});
|
|
962
|
-
var d =
|
|
962
|
+
var d = c(_), T = _.encode, y = T === void 0 ? function(S) {
|
|
963
963
|
return S;
|
|
964
|
-
} : T, p = _.validate, h = p === void 0 ? !0 : p, m =
|
|
964
|
+
} : T, p = _.validate, h = p === void 0 ? !0 : p, m = u.map(function(S) {
|
|
965
965
|
if (typeof S == "object")
|
|
966
966
|
return new RegExp("^(?:".concat(S.pattern, ")$"), d);
|
|
967
967
|
});
|
|
968
968
|
return function(S) {
|
|
969
|
-
for (var P = "", b = 0; b <
|
|
970
|
-
var R =
|
|
969
|
+
for (var P = "", b = 0; b < u.length; b++) {
|
|
970
|
+
var R = u[b];
|
|
971
971
|
if (typeof R == "string") {
|
|
972
972
|
P += R;
|
|
973
973
|
continue;
|
|
@@ -1004,18 +1004,18 @@ function Dr() {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
}
|
|
1006
1006
|
e.tokensToFunction = o;
|
|
1007
|
-
function n(
|
|
1008
|
-
var d = [], T = g(
|
|
1007
|
+
function n(u, _) {
|
|
1008
|
+
var d = [], T = g(u, d, _);
|
|
1009
1009
|
return r(T, d, _);
|
|
1010
1010
|
}
|
|
1011
1011
|
e.match = n;
|
|
1012
|
-
function r(
|
|
1012
|
+
function r(u, _, d) {
|
|
1013
1013
|
d === void 0 && (d = {});
|
|
1014
1014
|
var T = d.decode, y = T === void 0 ? function(p) {
|
|
1015
1015
|
return p;
|
|
1016
1016
|
} : T;
|
|
1017
1017
|
return function(p) {
|
|
1018
|
-
var h =
|
|
1018
|
+
var h = u.exec(p);
|
|
1019
1019
|
if (!h) return !1;
|
|
1020
1020
|
for (var m = h[0], S = h.index, P = /* @__PURE__ */ Object.create(null), b = function(A) {
|
|
1021
1021
|
if (h[A] === void 0) return "continue";
|
|
@@ -1029,32 +1029,32 @@ function Dr() {
|
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
1031
1031
|
e.regexpToFunction = r;
|
|
1032
|
-
function t(
|
|
1033
|
-
return
|
|
1032
|
+
function t(u) {
|
|
1033
|
+
return u.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
1034
1034
|
}
|
|
1035
|
-
function u
|
|
1036
|
-
return
|
|
1035
|
+
function c(u) {
|
|
1036
|
+
return u && u.sensitive ? "" : "i";
|
|
1037
1037
|
}
|
|
1038
|
-
function l(
|
|
1039
|
-
if (!_) return
|
|
1040
|
-
for (var d = /\((?:\?<(.*?)>)?(?!\?)/g, T = 0, y = d.exec(
|
|
1041
|
-
_.push({ name: y[1] || T++, prefix: "", suffix: "", modifier: "", pattern: "" }), y = d.exec(
|
|
1042
|
-
return
|
|
1038
|
+
function l(u, _) {
|
|
1039
|
+
if (!_) return u;
|
|
1040
|
+
for (var d = /\((?:\?<(.*?)>)?(?!\?)/g, T = 0, y = d.exec(u.source); y; )
|
|
1041
|
+
_.push({ name: y[1] || T++, prefix: "", suffix: "", modifier: "", pattern: "" }), y = d.exec(u.source);
|
|
1042
|
+
return u;
|
|
1043
1043
|
}
|
|
1044
|
-
function E(
|
|
1045
|
-
var T =
|
|
1044
|
+
function E(u, _, d) {
|
|
1045
|
+
var T = u.map(function(y) {
|
|
1046
1046
|
return g(y, _, d).source;
|
|
1047
1047
|
});
|
|
1048
|
-
return new RegExp("(?:".concat(T.join("|"), ")"),
|
|
1048
|
+
return new RegExp("(?:".concat(T.join("|"), ")"), c(d));
|
|
1049
1049
|
}
|
|
1050
|
-
function O(
|
|
1051
|
-
return v(
|
|
1050
|
+
function O(u, _, d) {
|
|
1051
|
+
return v(s(u, d), _, d);
|
|
1052
1052
|
}
|
|
1053
|
-
function v(
|
|
1053
|
+
function v(u, _, d) {
|
|
1054
1054
|
d === void 0 && (d = {});
|
|
1055
1055
|
for (var T = d.strict, y = T === void 0 ? !1 : T, p = d.start, h = p === void 0 ? !0 : p, m = d.end, S = m === void 0 ? !0 : m, P = d.encode, b = P === void 0 ? function(q) {
|
|
1056
1056
|
return q;
|
|
1057
|
-
} : P, R = d.delimiter, A = R === void 0 ? "/#?" : R, N = d.endsWith, C = N === void 0 ? "" : N, w = "[".concat(t(C), "]|$"), L = "[".concat(t(A), "]"), U = h ? "^" : "", V = 0, F =
|
|
1057
|
+
} : P, R = d.delimiter, A = R === void 0 ? "/#?" : R, N = d.endsWith, C = N === void 0 ? "" : N, w = "[".concat(t(C), "]|$"), L = "[".concat(t(A), "]"), U = h ? "^" : "", V = 0, F = u; V < F.length; V++) {
|
|
1058
1058
|
var M = F[V];
|
|
1059
1059
|
if (typeof M == "string")
|
|
1060
1060
|
U += t(b(M));
|
|
@@ -1079,14 +1079,14 @@ function Dr() {
|
|
|
1079
1079
|
if (S)
|
|
1080
1080
|
y || (U += "".concat(L, "?")), U += d.endsWith ? "(?=".concat(w, ")") : "$";
|
|
1081
1081
|
else {
|
|
1082
|
-
var z =
|
|
1082
|
+
var z = u[u.length - 1], G = typeof z == "string" ? L.indexOf(z[z.length - 1]) > -1 : z === void 0;
|
|
1083
1083
|
y || (U += "(?:".concat(L, "(?=").concat(w, "))?")), G || (U += "(?=".concat(L, "|").concat(w, ")"));
|
|
1084
1084
|
}
|
|
1085
|
-
return new RegExp(U,
|
|
1085
|
+
return new RegExp(U, c(d));
|
|
1086
1086
|
}
|
|
1087
1087
|
e.tokensToRegexp = v;
|
|
1088
|
-
function g(
|
|
1089
|
-
return
|
|
1088
|
+
function g(u, _, d) {
|
|
1089
|
+
return u instanceof RegExp ? l(u, _) : Array.isArray(u) ? E(u, _, d) : O(u, _, d);
|
|
1090
1090
|
}
|
|
1091
1091
|
e.pathToRegexp = g;
|
|
1092
1092
|
})(), $e.exports = i;
|
|
@@ -1099,14 +1099,14 @@ function jr() {
|
|
|
1099
1099
|
value: !0
|
|
1100
1100
|
});
|
|
1101
1101
|
function e(r, t) {
|
|
1102
|
-
for (var
|
|
1102
|
+
for (var c in t) Object.defineProperty(r, c, {
|
|
1103
1103
|
enumerable: !0,
|
|
1104
|
-
get: t[
|
|
1104
|
+
get: t[c]
|
|
1105
1105
|
});
|
|
1106
1106
|
}
|
|
1107
1107
|
e(i, {
|
|
1108
1108
|
hasAdjacentParameterIssues: function() {
|
|
1109
|
-
return
|
|
1109
|
+
return s;
|
|
1110
1110
|
},
|
|
1111
1111
|
normalizeAdjacentParameters: function() {
|
|
1112
1112
|
return f;
|
|
@@ -1119,7 +1119,7 @@ function jr() {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
});
|
|
1121
1121
|
const a = "_NEXTSEP_";
|
|
1122
|
-
function
|
|
1122
|
+
function s(r) {
|
|
1123
1123
|
return typeof r != "string" ? !1 : !!(/\/\(\.{1,3}\):[^/\s]+/.test(r) || /:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(r));
|
|
1124
1124
|
}
|
|
1125
1125
|
function f(r) {
|
|
@@ -1140,8 +1140,8 @@ function jr() {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
function n(r) {
|
|
1142
1142
|
const t = {};
|
|
1143
|
-
for (const [
|
|
1144
|
-
typeof l == "string" ? t[
|
|
1143
|
+
for (const [c, l] of Object.entries(r))
|
|
1144
|
+
typeof l == "string" ? t[c] = l.replace(new RegExp(`^${a}`), "") : Array.isArray(l) ? t[c] = l.map((E) => typeof E == "string" ? E.replace(new RegExp(`^${a}`), "") : E) : t[c] = l;
|
|
1145
1145
|
return t;
|
|
1146
1146
|
}
|
|
1147
1147
|
}(Ve)), Ve;
|
|
@@ -1152,10 +1152,10 @@ function qr() {
|
|
|
1152
1152
|
Object.defineProperty(i, "__esModule", {
|
|
1153
1153
|
value: !0
|
|
1154
1154
|
});
|
|
1155
|
-
function e(t,
|
|
1156
|
-
for (var l in
|
|
1155
|
+
function e(t, c) {
|
|
1156
|
+
for (var l in c) Object.defineProperty(t, l, {
|
|
1157
1157
|
enumerable: !0,
|
|
1158
|
-
get:
|
|
1158
|
+
get: c[l]
|
|
1159
1159
|
});
|
|
1160
1160
|
}
|
|
1161
1161
|
e(i, {
|
|
@@ -1172,53 +1172,53 @@ function qr() {
|
|
|
1172
1172
|
return r;
|
|
1173
1173
|
}
|
|
1174
1174
|
});
|
|
1175
|
-
const a = Dr(),
|
|
1176
|
-
function f(t,
|
|
1175
|
+
const a = Dr(), s = jr();
|
|
1176
|
+
function f(t, c, l) {
|
|
1177
1177
|
if (typeof t != "string")
|
|
1178
|
-
return (0, a.pathToRegexp)(t,
|
|
1179
|
-
const E = (0,
|
|
1178
|
+
return (0, a.pathToRegexp)(t, c, l);
|
|
1179
|
+
const E = (0, s.hasAdjacentParameterIssues)(t), O = E ? (0, s.normalizeAdjacentParameters)(t) : t;
|
|
1180
1180
|
try {
|
|
1181
|
-
return (0, a.pathToRegexp)(O,
|
|
1181
|
+
return (0, a.pathToRegexp)(O, c, l);
|
|
1182
1182
|
} catch (v) {
|
|
1183
1183
|
if (!E)
|
|
1184
1184
|
try {
|
|
1185
|
-
const g = (0,
|
|
1186
|
-
return (0, a.pathToRegexp)(g,
|
|
1185
|
+
const g = (0, s.normalizeAdjacentParameters)(t);
|
|
1186
|
+
return (0, a.pathToRegexp)(g, c, l);
|
|
1187
1187
|
} catch {
|
|
1188
1188
|
throw v;
|
|
1189
1189
|
}
|
|
1190
1190
|
throw v;
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
function o(t,
|
|
1194
|
-
const l = (0,
|
|
1193
|
+
function o(t, c) {
|
|
1194
|
+
const l = (0, s.hasAdjacentParameterIssues)(t), E = l ? (0, s.normalizeAdjacentParameters)(t) : t;
|
|
1195
1195
|
try {
|
|
1196
|
-
return (0, a.compile)(E,
|
|
1196
|
+
return (0, a.compile)(E, c);
|
|
1197
1197
|
} catch (O) {
|
|
1198
1198
|
if (!l)
|
|
1199
1199
|
try {
|
|
1200
|
-
const v = (0,
|
|
1201
|
-
return (0, a.compile)(v,
|
|
1200
|
+
const v = (0, s.normalizeAdjacentParameters)(t);
|
|
1201
|
+
return (0, a.compile)(v, c);
|
|
1202
1202
|
} catch {
|
|
1203
1203
|
throw O;
|
|
1204
1204
|
}
|
|
1205
1205
|
throw O;
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
|
-
function n(t,
|
|
1209
|
-
const l = (0, a.regexpToFunction)(t,
|
|
1208
|
+
function n(t, c) {
|
|
1209
|
+
const l = (0, a.regexpToFunction)(t, c || []);
|
|
1210
1210
|
return (E) => {
|
|
1211
1211
|
const O = l(E);
|
|
1212
1212
|
return O ? {
|
|
1213
1213
|
...O,
|
|
1214
|
-
params: (0,
|
|
1214
|
+
params: (0, s.stripParameterSeparators)(O.params)
|
|
1215
1215
|
} : !1;
|
|
1216
1216
|
};
|
|
1217
1217
|
}
|
|
1218
1218
|
function r(t) {
|
|
1219
|
-
return (
|
|
1220
|
-
const l = t(
|
|
1221
|
-
return l ? (0,
|
|
1219
|
+
return (c) => {
|
|
1220
|
+
const l = t(c);
|
|
1221
|
+
return l ? (0, s.stripParameterSeparators)(l) : !1;
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
1224
|
}(Be)), Be;
|
|
@@ -1231,15 +1231,15 @@ function ar() {
|
|
|
1231
1231
|
}), Object.defineProperty(i, "getRouteMatcher", {
|
|
1232
1232
|
enumerable: !0,
|
|
1233
1233
|
get: function() {
|
|
1234
|
-
return
|
|
1234
|
+
return s;
|
|
1235
1235
|
}
|
|
1236
1236
|
});
|
|
1237
1237
|
const e = ye(), a = qr();
|
|
1238
|
-
function
|
|
1238
|
+
function s(f) {
|
|
1239
1239
|
let { re: o, groups: n } = f;
|
|
1240
1240
|
const r = (t) => {
|
|
1241
|
-
const
|
|
1242
|
-
if (!
|
|
1241
|
+
const c = o.exec(t);
|
|
1242
|
+
if (!c) return !1;
|
|
1243
1243
|
const l = (O) => {
|
|
1244
1244
|
try {
|
|
1245
1245
|
return decodeURIComponent(O);
|
|
@@ -1252,8 +1252,8 @@ function ar() {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
}, E = {};
|
|
1254
1254
|
for (const [O, v] of Object.entries(n)) {
|
|
1255
|
-
const g =
|
|
1256
|
-
g !== void 0 && (v.repeat ? E[O] = g.split("/").map((
|
|
1255
|
+
const g = c[v.pos];
|
|
1256
|
+
g !== void 0 && (v.repeat ? E[O] = g.split("/").map((u) => l(u)) : E[O] = l(g));
|
|
1257
1257
|
}
|
|
1258
1258
|
return E;
|
|
1259
1259
|
};
|
|
@@ -1299,7 +1299,7 @@ function Ur() {
|
|
|
1299
1299
|
return ie;
|
|
1300
1300
|
},
|
|
1301
1301
|
HTML_CONTENT_TYPE_HEADER: function() {
|
|
1302
|
-
return
|
|
1302
|
+
return s;
|
|
1303
1303
|
},
|
|
1304
1304
|
INFINITE_CACHE: function() {
|
|
1305
1305
|
return A;
|
|
@@ -1344,7 +1344,7 @@ function Ur() {
|
|
|
1344
1344
|
return S;
|
|
1345
1345
|
},
|
|
1346
1346
|
NEXT_DATA_SUFFIX: function() {
|
|
1347
|
-
return
|
|
1347
|
+
return u;
|
|
1348
1348
|
},
|
|
1349
1349
|
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
1350
1350
|
return n;
|
|
@@ -1368,7 +1368,7 @@ function Ur() {
|
|
|
1368
1368
|
return t;
|
|
1369
1369
|
},
|
|
1370
1370
|
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
1371
|
-
return
|
|
1371
|
+
return c;
|
|
1372
1372
|
},
|
|
1373
1373
|
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
1374
1374
|
return W;
|
|
@@ -1443,7 +1443,7 @@ function Ur() {
|
|
|
1443
1443
|
return te;
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
|
-
const a = "text/plain",
|
|
1446
|
+
const a = "text/plain", s = "text/html; charset=utf-8", f = "application/json; charset=utf-8", o = "nxtP", n = "nxtI", r = "x-matched-path", t = "x-prerender-revalidate", c = "x-prerender-revalidate-if-generated", l = ".prefetch.rsc", E = ".segments", O = ".segment.rsc", v = ".rsc", g = ".action", u = ".json", _ = ".meta", d = ".body", T = "x-next-cache-tags", y = "x-next-revalidated-tags", p = "x-next-revalidate-tag-token", h = "next-resume", m = 128, S = 256, P = 1024, b = "_N_T_", R = 31536e3, A = 4294967294, N = "middleware", C = `(?:src/)?${N}`, w = "instrumentation", L = "private-next-pages", U = "private-dot-next", V = "private-next-root-dir", F = "private-next-app-dir", M = "private-next-rsc-mod-ref-proxy", Y = "private-next-rsc-action-validate", $ = "private-next-rsc-server-reference", H = "private-next-rsc-cache-wrapper", z = "private-next-rsc-track-dynamic-import", G = "private-next-rsc-action-encryption", q = "private-next-rsc-action-client-wrapper", W = "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", k = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ne = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", x = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", oe = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Q = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", B = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", ie = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", ae = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", X = "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", Ae = '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', ue = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", se = [
|
|
1447
1447
|
"app",
|
|
1448
1448
|
"pages",
|
|
1449
1449
|
"components",
|
|
@@ -1562,11 +1562,11 @@ function Xr() {
|
|
|
1562
1562
|
}), Object.defineProperty(i, "escapeStringRegexp", {
|
|
1563
1563
|
enumerable: !0,
|
|
1564
1564
|
get: function() {
|
|
1565
|
-
return
|
|
1565
|
+
return s;
|
|
1566
1566
|
}
|
|
1567
1567
|
});
|
|
1568
1568
|
const e = /[|\\{}()[\]^$+*?.-]/, a = /[|\\{}()[\]^$+*?.-]/g;
|
|
1569
|
-
function
|
|
1569
|
+
function s(f) {
|
|
1570
1570
|
return e.test(f) ? f.replace(a, "\\$&") : f;
|
|
1571
1571
|
}
|
|
1572
1572
|
}(Qe)), Qe;
|
|
@@ -1585,7 +1585,7 @@ function Fr() {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
e(i, {
|
|
1587
1587
|
PARAMETER_PATTERN: function() {
|
|
1588
|
-
return
|
|
1588
|
+
return s;
|
|
1589
1589
|
},
|
|
1590
1590
|
getDynamicParam: function() {
|
|
1591
1591
|
return a;
|
|
@@ -1597,7 +1597,7 @@ function Fr() {
|
|
|
1597
1597
|
return f;
|
|
1598
1598
|
}
|
|
1599
1599
|
});
|
|
1600
|
-
function a(n, r, t,
|
|
1600
|
+
function a(n, r, t, c, l) {
|
|
1601
1601
|
let E = n[r];
|
|
1602
1602
|
if (l && l.has(r) ? E = l.get(r) : Array.isArray(E) ? E = E.map((O) => encodeURIComponent(O)) : typeof E == "string" && (E = encodeURIComponent(E)), !E) {
|
|
1603
1603
|
const O = t === "c", v = t === "oc";
|
|
@@ -1611,10 +1611,10 @@ function Fr() {
|
|
|
1611
1611
|
"",
|
|
1612
1612
|
t
|
|
1613
1613
|
]
|
|
1614
|
-
} : (E =
|
|
1615
|
-
const
|
|
1614
|
+
} : (E = c.split("/").slice(1).flatMap((g) => {
|
|
1615
|
+
const u = f(g);
|
|
1616
1616
|
var _;
|
|
1617
|
-
return (_ = n[
|
|
1617
|
+
return (_ = n[u.key]) != null ? _ : u.key;
|
|
1618
1618
|
}), {
|
|
1619
1619
|
param: r,
|
|
1620
1620
|
value: E,
|
|
@@ -1640,9 +1640,9 @@ function Fr() {
|
|
|
1640
1640
|
type: t
|
|
1641
1641
|
};
|
|
1642
1642
|
}
|
|
1643
|
-
const
|
|
1643
|
+
const s = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
|
|
1644
1644
|
function f(n) {
|
|
1645
|
-
const r = n.match(
|
|
1645
|
+
const r = n.match(s);
|
|
1646
1646
|
return o(r ? r[2] : n);
|
|
1647
1647
|
}
|
|
1648
1648
|
function o(n) {
|
|
@@ -1663,10 +1663,10 @@ function ur() {
|
|
|
1663
1663
|
Object.defineProperty(i, "__esModule", {
|
|
1664
1664
|
value: !0
|
|
1665
1665
|
});
|
|
1666
|
-
function e(g,
|
|
1667
|
-
for (var _ in
|
|
1666
|
+
function e(g, u) {
|
|
1667
|
+
for (var _ in u) Object.defineProperty(g, _, {
|
|
1668
1668
|
enumerable: !0,
|
|
1669
|
-
get:
|
|
1669
|
+
get: u[_]
|
|
1670
1670
|
});
|
|
1671
1671
|
}
|
|
1672
1672
|
e(i, {
|
|
@@ -1680,13 +1680,13 @@ function ur() {
|
|
|
1680
1680
|
return t;
|
|
1681
1681
|
}
|
|
1682
1682
|
});
|
|
1683
|
-
const a = Ur(),
|
|
1684
|
-
function r(g,
|
|
1683
|
+
const a = Ur(), s = ir(), f = Xr(), o = rr(), n = Fr();
|
|
1684
|
+
function r(g, u, _) {
|
|
1685
1685
|
const d = {};
|
|
1686
1686
|
let T = 1;
|
|
1687
1687
|
const y = [];
|
|
1688
1688
|
for (const p of (0, o.removeTrailingSlash)(g).slice(1).split("/")) {
|
|
1689
|
-
const h =
|
|
1689
|
+
const h = s.INTERCEPTION_ROUTE_MARKERS.find((S) => p.startsWith(S)), m = p.match(n.PARAMETER_PATTERN);
|
|
1690
1690
|
if (h && m && m[2]) {
|
|
1691
1691
|
const { key: S, optional: P, repeat: b } = (0, n.parseMatchedParameter)(m[2]);
|
|
1692
1692
|
d[S] = {
|
|
@@ -1705,15 +1705,15 @@ function ur() {
|
|
|
1705
1705
|
_ && m[1] && (R = R.substring(1)), y.push(R);
|
|
1706
1706
|
} else
|
|
1707
1707
|
y.push("/" + (0, f.escapeStringRegexp)(p));
|
|
1708
|
-
|
|
1708
|
+
u && m && m[3] && y.push((0, f.escapeStringRegexp)(m[3]));
|
|
1709
1709
|
}
|
|
1710
1710
|
return {
|
|
1711
1711
|
parameterizedRoute: y.join(""),
|
|
1712
1712
|
groups: d
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
1715
|
-
function t(g,
|
|
1716
|
-
let { includeSuffix: _ = !1, includePrefix: d = !1, excludeOptionalTrailingSlash: T = !1 } =
|
|
1715
|
+
function t(g, u) {
|
|
1716
|
+
let { includeSuffix: _ = !1, includePrefix: d = !1, excludeOptionalTrailingSlash: T = !1 } = u === void 0 ? {} : u;
|
|
1717
1717
|
const { parameterizedRoute: y, groups: p } = r(g, _, d);
|
|
1718
1718
|
let h = y;
|
|
1719
1719
|
return T || (h += "(?:/)?"), {
|
|
@@ -1721,17 +1721,17 @@ function ur() {
|
|
|
1721
1721
|
groups: p
|
|
1722
1722
|
};
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function c() {
|
|
1725
1725
|
let g = 0;
|
|
1726
1726
|
return () => {
|
|
1727
|
-
let
|
|
1727
|
+
let u = "", _ = ++g;
|
|
1728
1728
|
for (; _ > 0; )
|
|
1729
|
-
|
|
1730
|
-
return
|
|
1729
|
+
u += String.fromCharCode(97 + (_ - 1) % 26), _ = Math.floor((_ - 1) / 26);
|
|
1730
|
+
return u;
|
|
1731
1731
|
};
|
|
1732
1732
|
}
|
|
1733
1733
|
function l(g) {
|
|
1734
|
-
let { interceptionMarker:
|
|
1734
|
+
let { interceptionMarker: u, getSafeRouteKey: _, segment: d, routeKeys: T, keyPrefix: y, backreferenceDuplicateKeys: p } = g;
|
|
1735
1735
|
const { key: h, optional: m, repeat: S } = (0, n.parseMatchedParameter)(d);
|
|
1736
1736
|
let P = h.replace(/\W/g, "");
|
|
1737
1737
|
y && (P = "" + y + P);
|
|
@@ -1739,21 +1739,21 @@ function ur() {
|
|
|
1739
1739
|
(P.length === 0 || P.length > 30) && (b = !0), isNaN(parseInt(P.slice(0, 1))) || (b = !0), b && (P = _());
|
|
1740
1740
|
const R = P in T;
|
|
1741
1741
|
y ? T[P] = "" + y + h : T[P] = h;
|
|
1742
|
-
const A =
|
|
1742
|
+
const A = u ? (0, f.escapeStringRegexp)(u) : "";
|
|
1743
1743
|
let N;
|
|
1744
1744
|
return R && p ? N = "\\k<" + P + ">" : S ? N = "(?<" + P + ">.+?)" : N = "(?<" + P + ">[^/]+?)", m ? "(?:/" + A + N + ")?" : "/" + A + N;
|
|
1745
1745
|
}
|
|
1746
|
-
function E(g,
|
|
1747
|
-
const y =
|
|
1746
|
+
function E(g, u, _, d, T) {
|
|
1747
|
+
const y = c(), p = {}, h = [];
|
|
1748
1748
|
for (const m of (0, o.removeTrailingSlash)(g).slice(1).split("/")) {
|
|
1749
|
-
const S =
|
|
1749
|
+
const S = s.INTERCEPTION_ROUTE_MARKERS.some((b) => m.startsWith(b)), P = m.match(n.PARAMETER_PATTERN);
|
|
1750
1750
|
if (S && P && P[2])
|
|
1751
1751
|
h.push(l({
|
|
1752
1752
|
getSafeRouteKey: y,
|
|
1753
1753
|
interceptionMarker: P[1],
|
|
1754
1754
|
segment: P[2],
|
|
1755
1755
|
routeKeys: p,
|
|
1756
|
-
keyPrefix:
|
|
1756
|
+
keyPrefix: u ? a.NEXT_INTERCEPTION_MARKER_PREFIX : void 0,
|
|
1757
1757
|
backreferenceDuplicateKeys: T
|
|
1758
1758
|
}));
|
|
1759
1759
|
else if (P && P[2]) {
|
|
@@ -1762,7 +1762,7 @@ function ur() {
|
|
|
1762
1762
|
getSafeRouteKey: y,
|
|
1763
1763
|
segment: P[2],
|
|
1764
1764
|
routeKeys: p,
|
|
1765
|
-
keyPrefix:
|
|
1765
|
+
keyPrefix: u ? a.NEXT_QUERY_PARAM_PREFIX : void 0,
|
|
1766
1766
|
backreferenceDuplicateKeys: T
|
|
1767
1767
|
});
|
|
1768
1768
|
d && P[1] && (b = b.substring(1)), h.push(b);
|
|
@@ -1775,18 +1775,18 @@ function ur() {
|
|
|
1775
1775
|
routeKeys: p
|
|
1776
1776
|
};
|
|
1777
1777
|
}
|
|
1778
|
-
function O(g,
|
|
1778
|
+
function O(g, u) {
|
|
1779
1779
|
var _, d, T;
|
|
1780
|
-
const y = E(g,
|
|
1780
|
+
const y = E(g, u.prefixRouteKeys, (_ = u.includeSuffix) != null ? _ : !1, (d = u.includePrefix) != null ? d : !1, (T = u.backreferenceDuplicateKeys) != null ? T : !1);
|
|
1781
1781
|
let p = y.namedParameterizedRoute;
|
|
1782
|
-
return
|
|
1783
|
-
...t(g,
|
|
1782
|
+
return u.excludeOptionalTrailingSlash || (p += "(?:/)?"), {
|
|
1783
|
+
...t(g, u),
|
|
1784
1784
|
namedRegex: "^" + p + "$",
|
|
1785
1785
|
routeKeys: y.routeKeys
|
|
1786
1786
|
};
|
|
1787
1787
|
}
|
|
1788
|
-
function v(g,
|
|
1789
|
-
const { parameterizedRoute: _ } = r(g, !1, !1), { catchAll: d = !0 } =
|
|
1788
|
+
function v(g, u) {
|
|
1789
|
+
const { parameterizedRoute: _ } = r(g, !1, !1), { catchAll: d = !0 } = u;
|
|
1790
1790
|
if (_ === "/")
|
|
1791
1791
|
return {
|
|
1792
1792
|
namedRegex: "^/" + (d ? ".*" : "") + "$"
|
|
@@ -1807,27 +1807,27 @@ function Hr() {
|
|
|
1807
1807
|
}), Object.defineProperty(i, "interpolateAs", {
|
|
1808
1808
|
enumerable: !0,
|
|
1809
1809
|
get: function() {
|
|
1810
|
-
return
|
|
1810
|
+
return s;
|
|
1811
1811
|
}
|
|
1812
1812
|
});
|
|
1813
1813
|
const e = ar(), a = ur();
|
|
1814
|
-
function
|
|
1814
|
+
function s(f, o, n) {
|
|
1815
1815
|
let r = "";
|
|
1816
|
-
const t = (0, a.getRouteRegex)(f),
|
|
1816
|
+
const t = (0, a.getRouteRegex)(f), c = t.groups, l = (
|
|
1817
1817
|
// Try to match the dynamic route against the asPath
|
|
1818
1818
|
(o !== f ? (0, e.getRouteMatcher)(t)(o) : "") || // Fall back to reading the values from the href
|
|
1819
1819
|
// TODO: should this take priority; also need to change in the router.
|
|
1820
1820
|
n
|
|
1821
1821
|
);
|
|
1822
1822
|
r = f;
|
|
1823
|
-
const E = Object.keys(
|
|
1823
|
+
const E = Object.keys(c);
|
|
1824
1824
|
return E.every((O) => {
|
|
1825
1825
|
let v = l[O] || "";
|
|
1826
|
-
const { repeat: g, optional:
|
|
1826
|
+
const { repeat: g, optional: u } = c[O];
|
|
1827
1827
|
let _ = "[" + (g ? "..." : "") + O + "]";
|
|
1828
|
-
return
|
|
1828
|
+
return u && (_ = (v ? "" : "/") + "[" + _ + "]"), g && !Array.isArray(v) && (v = [
|
|
1829
1829
|
v
|
|
1830
|
-
]), (
|
|
1830
|
+
]), (u || O in l) && // Interpolate group into data URL if present
|
|
1831
1831
|
(r = r.replace(_, g ? v.map(
|
|
1832
1832
|
// these values should be fully encoded instead of just
|
|
1833
1833
|
// path delimiter escaped since they are being inserted
|
|
@@ -1853,9 +1853,9 @@ function Gr() {
|
|
|
1853
1853
|
return O;
|
|
1854
1854
|
}
|
|
1855
1855
|
});
|
|
1856
|
-
const a = er(),
|
|
1857
|
-
function O(v, g,
|
|
1858
|
-
let _, d = typeof g == "string" ? g : (0,
|
|
1856
|
+
const a = er(), s = tr(), f = Sr(), o = ye(), n = be(), r = or(), t = xr(), c = Hr(), l = ur(), E = ar();
|
|
1857
|
+
function O(v, g, u) {
|
|
1858
|
+
let _, d = typeof g == "string" ? g : (0, s.formatWithValidation)(g);
|
|
1859
1859
|
const T = d.match(/^[a-z][a-z0-9+.-]*:\/\//i), y = T ? d.slice(T[0].length) : d;
|
|
1860
1860
|
if ((y.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
|
|
1861
1861
|
console.error("Invalid href '" + d + "' passed to next/router in page: '" + v.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
|
|
@@ -1863,7 +1863,7 @@ function Gr() {
|
|
|
1863
1863
|
d = (T ? T[0] : "") + h;
|
|
1864
1864
|
}
|
|
1865
1865
|
if (!(0, r.isLocalURL)(d))
|
|
1866
|
-
return
|
|
1866
|
+
return u ? [
|
|
1867
1867
|
d
|
|
1868
1868
|
] : d;
|
|
1869
1869
|
try {
|
|
@@ -1881,21 +1881,21 @@ function Gr() {
|
|
|
1881
1881
|
const h = new URL(d, _);
|
|
1882
1882
|
h.pathname = (0, n.normalizePathTrailingSlash)(h.pathname);
|
|
1883
1883
|
let m = "";
|
|
1884
|
-
if ((0, t.isDynamicRoute)(h.pathname) && h.searchParams &&
|
|
1885
|
-
const P = (0, a.searchParamsToUrlQuery)(h.searchParams), { result: b, params: R } = (0,
|
|
1886
|
-
b && (m = (0,
|
|
1884
|
+
if ((0, t.isDynamicRoute)(h.pathname) && h.searchParams && u) {
|
|
1885
|
+
const P = (0, a.searchParamsToUrlQuery)(h.searchParams), { result: b, params: R } = (0, c.interpolateAs)(h.pathname, h.pathname, P);
|
|
1886
|
+
b && (m = (0, s.formatWithValidation)({
|
|
1887
1887
|
pathname: b,
|
|
1888
1888
|
hash: h.hash,
|
|
1889
1889
|
query: (0, f.omit)(P, R)
|
|
1890
1890
|
}));
|
|
1891
1891
|
}
|
|
1892
1892
|
const S = h.origin === _.origin ? h.href.slice(h.origin.length) : h.href;
|
|
1893
|
-
return
|
|
1893
|
+
return u ? [
|
|
1894
1894
|
S,
|
|
1895
1895
|
m || S
|
|
1896
1896
|
] : S;
|
|
1897
1897
|
} catch {
|
|
1898
|
-
return
|
|
1898
|
+
return u ? [
|
|
1899
1899
|
d
|
|
1900
1900
|
] : d;
|
|
1901
1901
|
}
|
|
@@ -1915,10 +1915,10 @@ function sr() {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
const e = ut();
|
|
1918
|
-
function a(
|
|
1919
|
-
if (!
|
|
1920
|
-
return
|
|
1921
|
-
const { pathname: o, query: n, hash: r } = (0, e.parsePath)(
|
|
1918
|
+
function a(s, f) {
|
|
1919
|
+
if (!s.startsWith("/") || !f)
|
|
1920
|
+
return s;
|
|
1921
|
+
const { pathname: o, query: n, hash: r } = (0, e.parsePath)(s);
|
|
1922
1922
|
return "" + f + o + n + r;
|
|
1923
1923
|
}
|
|
1924
1924
|
}(et)), et;
|
|
@@ -1931,11 +1931,11 @@ function kr() {
|
|
|
1931
1931
|
}), Object.defineProperty(i, "addLocale", {
|
|
1932
1932
|
enumerable: !0,
|
|
1933
1933
|
get: function() {
|
|
1934
|
-
return
|
|
1934
|
+
return s;
|
|
1935
1935
|
}
|
|
1936
1936
|
});
|
|
1937
1937
|
const e = sr(), a = nr();
|
|
1938
|
-
function
|
|
1938
|
+
function s(f, o, n, r) {
|
|
1939
1939
|
if (!o || o === n) return f;
|
|
1940
1940
|
const t = f.toLowerCase();
|
|
1941
1941
|
return !r && ((0, a.pathHasPrefix)(t, "/api") || (0, a.pathHasPrefix)(t, "/" + o.toLowerCase())) ? f : (0, e.addPathPrefix)(f, "/" + o);
|
|
@@ -1950,10 +1950,10 @@ function zr() {
|
|
|
1950
1950
|
}), Object.defineProperty(e, "addLocale", {
|
|
1951
1951
|
enumerable: !0,
|
|
1952
1952
|
get: function() {
|
|
1953
|
-
return
|
|
1953
|
+
return s;
|
|
1954
1954
|
}
|
|
1955
1955
|
});
|
|
1956
|
-
const a = be(),
|
|
1956
|
+
const a = be(), s = function(f) {
|
|
1957
1957
|
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++)
|
|
1958
1958
|
n[r - 1] = arguments[r];
|
|
1959
1959
|
return process.env.__NEXT_I18N_SUPPORT ? (0, a.normalizePathTrailingSlash)(kr().addLocale(f, ...n)) : f;
|
|
@@ -1978,11 +1978,11 @@ function Br() {
|
|
|
1978
1978
|
}), Object.defineProperty(i, "RouterContext", {
|
|
1979
1979
|
enumerable: !0,
|
|
1980
1980
|
get: function() {
|
|
1981
|
-
return
|
|
1981
|
+
return s;
|
|
1982
1982
|
}
|
|
1983
1983
|
});
|
|
1984
|
-
const
|
|
1985
|
-
process.env.NODE_ENV !== "production" && (
|
|
1984
|
+
const s = (/* @__PURE__ */ (/* @__PURE__ */ Wr())._(Oe)).default.createContext(null);
|
|
1985
|
+
process.env.NODE_ENV !== "production" && (s.displayName = "RouterContext");
|
|
1986
1986
|
}(tt)), tt;
|
|
1987
1987
|
}
|
|
1988
1988
|
var Ee = { exports: {} }, Re = { exports: {} }, Ht;
|
|
@@ -2002,10 +2002,10 @@ function $r() {
|
|
|
2002
2002
|
return f;
|
|
2003
2003
|
},
|
|
2004
2004
|
requestIdleCallback: function() {
|
|
2005
|
-
return
|
|
2005
|
+
return s;
|
|
2006
2006
|
}
|
|
2007
2007
|
});
|
|
2008
|
-
const
|
|
2008
|
+
const s = typeof self < "u" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(o) {
|
|
2009
2009
|
let n = Date.now();
|
|
2010
2010
|
return self.setTimeout(function() {
|
|
2011
2011
|
o({
|
|
@@ -2029,10 +2029,10 @@ function Vr() {
|
|
|
2029
2029
|
}), Object.defineProperty(e, "useIntersection", {
|
|
2030
2030
|
enumerable: !0,
|
|
2031
2031
|
get: function() {
|
|
2032
|
-
return
|
|
2032
|
+
return c;
|
|
2033
2033
|
}
|
|
2034
2034
|
});
|
|
2035
|
-
const a = Oe,
|
|
2035
|
+
const a = Oe, s = $r(), f = typeof IntersectionObserver == "function", o = /* @__PURE__ */ new Map(), n = [];
|
|
2036
2036
|
function r(l) {
|
|
2037
2037
|
const E = {
|
|
2038
2038
|
root: l.root || null,
|
|
@@ -2041,7 +2041,7 @@ function Vr() {
|
|
|
2041
2041
|
let v;
|
|
2042
2042
|
if (O && (v = o.get(O), v))
|
|
2043
2043
|
return v;
|
|
2044
|
-
const g = /* @__PURE__ */ new Map(),
|
|
2044
|
+
const g = /* @__PURE__ */ new Map(), u = new IntersectionObserver((_) => {
|
|
2045
2045
|
_.forEach((d) => {
|
|
2046
2046
|
const T = g.get(d.target), y = d.isIntersecting || d.intersectionRatio > 0;
|
|
2047
2047
|
T && y && T(y);
|
|
@@ -2049,43 +2049,43 @@ function Vr() {
|
|
|
2049
2049
|
}, l);
|
|
2050
2050
|
return v = {
|
|
2051
2051
|
id: E,
|
|
2052
|
-
observer:
|
|
2052
|
+
observer: u,
|
|
2053
2053
|
elements: g
|
|
2054
2054
|
}, n.push(E), o.set(E, v), v;
|
|
2055
2055
|
}
|
|
2056
2056
|
function t(l, E, O) {
|
|
2057
|
-
const { id: v, observer: g, elements:
|
|
2058
|
-
return
|
|
2059
|
-
if (
|
|
2057
|
+
const { id: v, observer: g, elements: u } = r(O);
|
|
2058
|
+
return u.set(l, E), g.observe(l), function() {
|
|
2059
|
+
if (u.delete(l), g.unobserve(l), u.size === 0) {
|
|
2060
2060
|
g.disconnect(), o.delete(v);
|
|
2061
2061
|
const d = n.findIndex((T) => T.root === v.root && T.margin === v.margin);
|
|
2062
2062
|
d > -1 && n.splice(d, 1);
|
|
2063
2063
|
}
|
|
2064
2064
|
};
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function c(l) {
|
|
2067
2067
|
let { rootRef: E, rootMargin: O, disabled: v } = l;
|
|
2068
|
-
const g = v || !f, [
|
|
2068
|
+
const g = v || !f, [u, _] = (0, a.useState)(!1), d = (0, a.useRef)(null), T = (0, a.useCallback)((p) => {
|
|
2069
2069
|
d.current = p;
|
|
2070
2070
|
}, []);
|
|
2071
2071
|
(0, a.useEffect)(() => {
|
|
2072
2072
|
if (f) {
|
|
2073
|
-
if (g ||
|
|
2073
|
+
if (g || u) return;
|
|
2074
2074
|
const p = d.current;
|
|
2075
2075
|
if (p && p.tagName)
|
|
2076
2076
|
return t(p, (m) => m && _(m), {
|
|
2077
2077
|
root: E == null ? void 0 : E.current,
|
|
2078
2078
|
rootMargin: O
|
|
2079
2079
|
});
|
|
2080
|
-
} else if (!
|
|
2081
|
-
const p = (0,
|
|
2082
|
-
return () => (0,
|
|
2080
|
+
} else if (!u) {
|
|
2081
|
+
const p = (0, s.requestIdleCallback)(() => _(!0));
|
|
2082
|
+
return () => (0, s.cancelIdleCallback)(p);
|
|
2083
2083
|
}
|
|
2084
2084
|
}, [
|
|
2085
2085
|
g,
|
|
2086
2086
|
O,
|
|
2087
2087
|
E,
|
|
2088
|
-
|
|
2088
|
+
u,
|
|
2089
2089
|
d.current
|
|
2090
2090
|
]);
|
|
2091
2091
|
const y = (0, a.useCallback)(() => {
|
|
@@ -2093,7 +2093,7 @@ function Vr() {
|
|
|
2093
2093
|
}, []);
|
|
2094
2094
|
return [
|
|
2095
2095
|
T,
|
|
2096
|
-
|
|
2096
|
+
u,
|
|
2097
2097
|
y
|
|
2098
2098
|
];
|
|
2099
2099
|
}
|
|
@@ -2112,22 +2112,22 @@ function Yr() {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
});
|
|
2114
2114
|
const e = /* @__PURE__ */ new WeakMap();
|
|
2115
|
-
function a(
|
|
2115
|
+
function a(s, f) {
|
|
2116
2116
|
if (!f) return {
|
|
2117
|
-
pathname:
|
|
2117
|
+
pathname: s
|
|
2118
2118
|
};
|
|
2119
2119
|
let o = e.get(f);
|
|
2120
2120
|
o || (o = f.map((l) => l.toLowerCase()), e.set(f, o));
|
|
2121
2121
|
let n;
|
|
2122
|
-
const r =
|
|
2122
|
+
const r = s.split("/", 2);
|
|
2123
2123
|
if (!r[1]) return {
|
|
2124
|
-
pathname:
|
|
2124
|
+
pathname: s
|
|
2125
2125
|
};
|
|
2126
|
-
const t = r[1].toLowerCase(),
|
|
2127
|
-
return
|
|
2128
|
-
pathname:
|
|
2129
|
-
} : (n = f[
|
|
2130
|
-
pathname:
|
|
2126
|
+
const t = r[1].toLowerCase(), c = o.indexOf(t);
|
|
2127
|
+
return c < 0 ? {
|
|
2128
|
+
pathname: s
|
|
2129
|
+
} : (n = f[c], s = s.slice(n.length + 1) || "/", {
|
|
2130
|
+
pathname: s,
|
|
2131
2131
|
detectedLocale: n
|
|
2132
2132
|
});
|
|
2133
2133
|
}
|
|
@@ -2144,8 +2144,8 @@ function Kr() {
|
|
|
2144
2144
|
return a;
|
|
2145
2145
|
}
|
|
2146
2146
|
});
|
|
2147
|
-
const a = (
|
|
2148
|
-
pathname:
|
|
2147
|
+
const a = (s, f) => process.env.__NEXT_I18N_SUPPORT ? Yr().normalizeLocalePath(s, f) : {
|
|
2148
|
+
pathname: s,
|
|
2149
2149
|
detectedLocale: void 0
|
|
2150
2150
|
};
|
|
2151
2151
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), i.exports = e.default);
|
|
@@ -2162,13 +2162,13 @@ function Qr() {
|
|
|
2162
2162
|
return e;
|
|
2163
2163
|
}
|
|
2164
2164
|
});
|
|
2165
|
-
function e(a,
|
|
2165
|
+
function e(a, s, f) {
|
|
2166
2166
|
if (a) {
|
|
2167
2167
|
f && (f = f.toLowerCase());
|
|
2168
2168
|
for (const r of a) {
|
|
2169
2169
|
var o, n;
|
|
2170
2170
|
const t = (o = r.domain) == null ? void 0 : o.split(":", 1)[0].toLowerCase();
|
|
2171
|
-
if (
|
|
2171
|
+
if (s === t || f === r.defaultLocale.toLowerCase() || (n = r.locales) != null && n.some((c) => c.toLowerCase() === f))
|
|
2172
2172
|
return r;
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
@@ -2187,7 +2187,7 @@ function Zr() {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
});
|
|
2189
2189
|
const a = function() {
|
|
2190
|
-
for (var
|
|
2190
|
+
for (var s = arguments.length, f = new Array(s), o = 0; o < s; o++)
|
|
2191
2191
|
f[o] = arguments[o];
|
|
2192
2192
|
if (process.env.__NEXT_I18N_SUPPORT)
|
|
2193
2193
|
return Qr().detectDomainLocale(...f);
|
|
@@ -2206,13 +2206,13 @@ function Jr() {
|
|
|
2206
2206
|
return f;
|
|
2207
2207
|
}
|
|
2208
2208
|
});
|
|
2209
|
-
const a = be(),
|
|
2209
|
+
const a = be(), s = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2210
2210
|
function f(o, n, r, t) {
|
|
2211
2211
|
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
2212
|
-
const
|
|
2212
|
+
const c = Kr().normalizeLocalePath, l = Zr().detectDomainLocale, E = n || c(o, r).detectedLocale, O = l(t, void 0, E);
|
|
2213
2213
|
if (O) {
|
|
2214
2214
|
const v = "http" + (O.http ? "" : "s") + "://", g = E === O.defaultLocale ? "" : "/" + E;
|
|
2215
|
-
return "" + v + O.domain + (0, a.normalizePathTrailingSlash)("" +
|
|
2215
|
+
return "" + v + O.domain + (0, a.normalizePathTrailingSlash)("" + s + g + o);
|
|
2216
2216
|
}
|
|
2217
2217
|
return !1;
|
|
2218
2218
|
} else
|
|
@@ -2232,9 +2232,9 @@ function en() {
|
|
|
2232
2232
|
return o;
|
|
2233
2233
|
}
|
|
2234
2234
|
});
|
|
2235
|
-
const a = sr(),
|
|
2235
|
+
const a = sr(), s = be(), f = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2236
2236
|
function o(n, r) {
|
|
2237
|
-
return (0,
|
|
2237
|
+
return (0, s.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !r ? n : (0, a.addPathPrefix)(n, f));
|
|
2238
2238
|
}
|
|
2239
2239
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), i.exports = e.default);
|
|
2240
2240
|
}(Pe, Pe.exports)), Pe.exports;
|
|
@@ -2247,20 +2247,20 @@ function tn() {
|
|
|
2247
2247
|
}), Object.defineProperty(e, "useMergedRef", {
|
|
2248
2248
|
enumerable: !0,
|
|
2249
2249
|
get: function() {
|
|
2250
|
-
return
|
|
2250
|
+
return s;
|
|
2251
2251
|
}
|
|
2252
2252
|
});
|
|
2253
2253
|
const a = Oe;
|
|
2254
|
-
function
|
|
2254
|
+
function s(o, n) {
|
|
2255
2255
|
const r = (0, a.useRef)(null), t = (0, a.useRef)(null);
|
|
2256
|
-
return (0, a.useCallback)((
|
|
2257
|
-
if (
|
|
2256
|
+
return (0, a.useCallback)((c) => {
|
|
2257
|
+
if (c === null) {
|
|
2258
2258
|
const l = r.current;
|
|
2259
2259
|
l && (r.current = null, l());
|
|
2260
2260
|
const E = t.current;
|
|
2261
2261
|
E && (t.current = null, E());
|
|
2262
2262
|
} else
|
|
2263
|
-
o && (r.current = f(o,
|
|
2263
|
+
o && (r.current = f(o, c)), n && (t.current = f(n, c));
|
|
2264
2264
|
}, [
|
|
2265
2265
|
o,
|
|
2266
2266
|
n
|
|
@@ -2293,8 +2293,8 @@ function rn() {
|
|
|
2293
2293
|
};
|
|
2294
2294
|
if (process.env.NODE_ENV !== "production") {
|
|
2295
2295
|
const a = /* @__PURE__ */ new Set();
|
|
2296
|
-
e = (
|
|
2297
|
-
a.has(
|
|
2296
|
+
e = (s) => {
|
|
2297
|
+
a.has(s) || console.error(s), a.add(s);
|
|
2298
2298
|
};
|
|
2299
2299
|
}
|
|
2300
2300
|
}(it)), it;
|
|
@@ -2320,7 +2320,7 @@ function nn() {
|
|
|
2320
2320
|
return P;
|
|
2321
2321
|
}
|
|
2322
2322
|
});
|
|
2323
|
-
const
|
|
2323
|
+
const s = /* @__PURE__ */ Jt(), f = cr, o = /* @__PURE__ */ s._(Oe), n = Gr(), r = or(), t = tr(), c = ye(), l = zr(), E = Br(), O = Vr(), v = Jr(), g = en(), u = tn(), _ = rn(), d = /* @__PURE__ */ new Set();
|
|
2324
2324
|
function T(R, A, N, C) {
|
|
2325
2325
|
if (!(typeof window > "u") && (0, r.isLocalURL)(A)) {
|
|
2326
2326
|
if (!C.bypassPrefetchedCheck) {
|
|
@@ -2504,7 +2504,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
2504
2504
|
Q,
|
|
2505
2505
|
ce,
|
|
2506
2506
|
ue
|
|
2507
|
-
]), Se = (0,
|
|
2507
|
+
]), Se = (0, u.useMergedRef)(j, Ae);
|
|
2508
2508
|
o.default.useEffect(() => {
|
|
2509
2509
|
process.env.NODE_ENV === "production" && x && (!se || !oe || T(x, Q, B, {
|
|
2510
2510
|
locale: H
|
|
@@ -2546,7 +2546,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
2546
2546
|
});
|
|
2547
2547
|
}
|
|
2548
2548
|
};
|
|
2549
|
-
if ((0,
|
|
2549
|
+
if ((0, c.isAbsoluteUrl)(B))
|
|
2550
2550
|
te.href = B;
|
|
2551
2551
|
else if (!k || F || X.type === "a" && !("href" in X.props)) {
|
|
2552
2552
|
const D = typeof H < "u" ? H : x == null ? void 0 : x.locale, J = (x == null ? void 0 : x.isLocaleDomain) && (0, v.getDomainLocale)(B, D, x == null ? void 0 : x.locales, x == null ? void 0 : x.domainLocales);
|
|
@@ -2579,15 +2579,15 @@ function hn({
|
|
|
2579
2579
|
className: e = "",
|
|
2580
2580
|
index: a,
|
|
2581
2581
|
//layout,
|
|
2582
|
-
limit:
|
|
2582
|
+
limit: s
|
|
2583
2583
|
}) {
|
|
2584
|
-
var r, t
|
|
2585
|
-
const f =
|
|
2586
|
-
return /* @__PURE__ */ fe(
|
|
2584
|
+
var n, r, t;
|
|
2585
|
+
const f = `/blog/articles/${i.slug.current}`, o = (n = i.categories) != null && n.length ? i.categories[0] : null;
|
|
2586
|
+
return console.log("ARTICLE", i), /* @__PURE__ */ fe(
|
|
2587
2587
|
un,
|
|
2588
2588
|
{
|
|
2589
|
-
href:
|
|
2590
|
-
className: `${K.item} ${e ?? ""} ${a === 0 ? K.first : ""} ${
|
|
2589
|
+
href: f,
|
|
2590
|
+
className: `${K.item} ${e ?? ""} ${a === 0 ? K.first : ""} ${s === 1 ? K.single : ""}`,
|
|
2591
2591
|
children: [
|
|
2592
2592
|
/* @__PURE__ */ fe("div", { className: K.itemImage, children: [
|
|
2593
2593
|
i.articleType && /* @__PURE__ */ ee("div", { className: K.category, children: i.articleType }),
|
|
@@ -2595,7 +2595,7 @@ function hn({
|
|
|
2595
2595
|
fr,
|
|
2596
2596
|
{
|
|
2597
2597
|
src: i.featuredImage.imageUrl ?? "",
|
|
2598
|
-
alt:
|
|
2598
|
+
alt: ((r = i.featuredImage) == null ? void 0 : r.asset.altText) || ((t = i == null ? void 0 : i.featuredImage) == null ? void 0 : t.asset.description) || "Content image",
|
|
2599
2599
|
width: 600,
|
|
2600
2600
|
height: 400,
|
|
2601
2601
|
priority: !0
|
|
@@ -2603,7 +2603,7 @@ function hn({
|
|
|
2603
2603
|
) : /* @__PURE__ */ ee("div", { className: K.imagePlaceholder })
|
|
2604
2604
|
] }),
|
|
2605
2605
|
/* @__PURE__ */ fe("div", { className: K.itemContent, children: [
|
|
2606
|
-
|
|
2606
|
+
o && /* @__PURE__ */ ee("div", { className: K.itemEyebrow, children: o.title }),
|
|
2607
2607
|
/* @__PURE__ */ fe("div", { className: K.itemTitle, children: [
|
|
2608
2608
|
/* @__PURE__ */ ee("h3", { children: i.title }),
|
|
2609
2609
|
/* @__PURE__ */ ee("div", { className: K.callToAction, children: /* @__PURE__ */ ee("div", { className: K.icon, children: /* @__PURE__ */ ee(pr, { size: 45 }) }) })
|