uplord-ui 0.2.0 → 0.2.2
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/index.cjs.js +6 -6
- package/dist/index.css +1 -1
- package/dist/index.es.js +601 -601
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,13 +2,13 @@ import ie from "react";
|
|
|
2
2
|
function Lr(n) {
|
|
3
3
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4
4
|
}
|
|
5
|
-
var de = { exports: {} },
|
|
6
|
-
var
|
|
5
|
+
var de = { exports: {} }, ae = {};
|
|
6
|
+
var Tt;
|
|
7
7
|
function Dr() {
|
|
8
|
-
if (
|
|
9
|
-
|
|
8
|
+
if (Tt) return ae;
|
|
9
|
+
Tt = 1;
|
|
10
10
|
var n = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
11
|
-
function
|
|
11
|
+
function o(c, s, i) {
|
|
12
12
|
var t = null;
|
|
13
13
|
if (i !== void 0 && (t = "" + i), s.key !== void 0 && (t = "" + s.key), "key" in s) {
|
|
14
14
|
i = {};
|
|
@@ -23,12 +23,12 @@ function Dr() {
|
|
|
23
23
|
props: i
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return ae.Fragment = e, ae.jsx = o, ae.jsxs = o, ae;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
function
|
|
31
|
-
return
|
|
28
|
+
var oe = {};
|
|
29
|
+
var bt;
|
|
30
|
+
function kr() {
|
|
31
|
+
return bt || (bt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
32
32
|
function n(m) {
|
|
33
33
|
if (m == null) return null;
|
|
34
34
|
if (typeof m == "function")
|
|
@@ -37,13 +37,13 @@ function qr() {
|
|
|
37
37
|
switch (m) {
|
|
38
38
|
case p:
|
|
39
39
|
return "Fragment";
|
|
40
|
-
case
|
|
40
|
+
case T:
|
|
41
41
|
return "Profiler";
|
|
42
42
|
case d:
|
|
43
43
|
return "StrictMode";
|
|
44
44
|
case O:
|
|
45
45
|
return "Suspense";
|
|
46
|
-
case
|
|
46
|
+
case b:
|
|
47
47
|
return "SuspenseList";
|
|
48
48
|
case g:
|
|
49
49
|
return "Activity";
|
|
@@ -56,7 +56,7 @@ function qr() {
|
|
|
56
56
|
return "Portal";
|
|
57
57
|
case P:
|
|
58
58
|
return m.displayName || "Context";
|
|
59
|
-
case
|
|
59
|
+
case y:
|
|
60
60
|
return (m._context.displayName || "Context") + ".Consumer";
|
|
61
61
|
case v:
|
|
62
62
|
var S = m.render;
|
|
@@ -75,7 +75,7 @@ function qr() {
|
|
|
75
75
|
function e(m) {
|
|
76
76
|
return "" + m;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function o(m) {
|
|
79
79
|
try {
|
|
80
80
|
e(m);
|
|
81
81
|
var S = !1;
|
|
@@ -84,11 +84,11 @@ function qr() {
|
|
|
84
84
|
}
|
|
85
85
|
if (S) {
|
|
86
86
|
S = console;
|
|
87
|
-
var
|
|
88
|
-
return
|
|
87
|
+
var j = S.error, x = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
|
|
88
|
+
return j.call(
|
|
89
89
|
S,
|
|
90
90
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
91
|
-
|
|
91
|
+
x
|
|
92
92
|
), e(m);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -118,14 +118,14 @@ function qr() {
|
|
|
118
118
|
return m.key !== void 0;
|
|
119
119
|
}
|
|
120
120
|
function u(m, S) {
|
|
121
|
-
function
|
|
121
|
+
function j() {
|
|
122
122
|
U || (U = !0, console.error(
|
|
123
123
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
124
124
|
S
|
|
125
125
|
));
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
get:
|
|
127
|
+
j.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
128
|
+
get: j,
|
|
129
129
|
configurable: !0
|
|
130
130
|
});
|
|
131
131
|
}
|
|
@@ -135,14 +135,14 @@ function qr() {
|
|
|
135
135
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
136
136
|
)), m = this.props.ref, m !== void 0 ? m : null;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
var L =
|
|
138
|
+
function a(m, S, j, x, X, V) {
|
|
139
|
+
var L = j.ref;
|
|
140
140
|
return m = {
|
|
141
141
|
$$typeof: E,
|
|
142
142
|
type: m,
|
|
143
143
|
key: S,
|
|
144
|
-
props:
|
|
145
|
-
_owner:
|
|
144
|
+
props: j,
|
|
145
|
+
_owner: x
|
|
146
146
|
}, (L !== void 0 ? L : null) !== null ? Object.defineProperty(m, "ref", {
|
|
147
147
|
enumerable: !1,
|
|
148
148
|
get: r
|
|
@@ -168,13 +168,13 @@ function qr() {
|
|
|
168
168
|
value: V
|
|
169
169
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
170
170
|
}
|
|
171
|
-
function f(m, S,
|
|
171
|
+
function f(m, S, j, x, X, V) {
|
|
172
172
|
var L = S.children;
|
|
173
173
|
if (L !== void 0)
|
|
174
|
-
if (
|
|
175
|
-
if (
|
|
176
|
-
for (
|
|
177
|
-
_(L[
|
|
174
|
+
if (x)
|
|
175
|
+
if (k(L)) {
|
|
176
|
+
for (x = 0; x < L.length; x++)
|
|
177
|
+
_(L[x]);
|
|
178
178
|
Object.freeze && Object.freeze(L);
|
|
179
179
|
} else
|
|
180
180
|
console.error(
|
|
@@ -186,31 +186,31 @@ function qr() {
|
|
|
186
186
|
var Q = Object.keys(S).filter(function(re) {
|
|
187
187
|
return re !== "key";
|
|
188
188
|
});
|
|
189
|
-
|
|
189
|
+
x = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", B[L + x] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
190
190
|
`A props object containing a "key" prop is being spread into JSX:
|
|
191
191
|
let props = %s;
|
|
192
192
|
<%s {...props} />
|
|
193
193
|
React keys must be passed directly to JSX without using spread:
|
|
194
194
|
let props = %s;
|
|
195
195
|
<%s key={someKey} {...props} />`,
|
|
196
|
-
|
|
196
|
+
x,
|
|
197
197
|
L,
|
|
198
198
|
Q,
|
|
199
199
|
L
|
|
200
|
-
), B[L +
|
|
200
|
+
), B[L + x] = !0);
|
|
201
201
|
}
|
|
202
|
-
if (L = null,
|
|
203
|
-
|
|
202
|
+
if (L = null, j !== void 0 && (o(j), L = "" + j), t(S) && (o(S.key), L = "" + S.key), "key" in S) {
|
|
203
|
+
j = {};
|
|
204
204
|
for (var z in S)
|
|
205
|
-
z !== "key" && (
|
|
206
|
-
} else
|
|
205
|
+
z !== "key" && (j[z] = S[z]);
|
|
206
|
+
} else j = S;
|
|
207
207
|
return L && u(
|
|
208
|
-
|
|
208
|
+
j,
|
|
209
209
|
typeof m == "function" ? m.displayName || m.name || "Unknown" : m
|
|
210
|
-
),
|
|
210
|
+
), a(
|
|
211
211
|
m,
|
|
212
212
|
L,
|
|
213
|
-
|
|
213
|
+
j,
|
|
214
214
|
s(),
|
|
215
215
|
X,
|
|
216
216
|
V
|
|
@@ -222,7 +222,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
222
222
|
function R(m) {
|
|
223
223
|
return typeof m == "object" && m !== null && m.$$typeof === E;
|
|
224
224
|
}
|
|
225
|
-
var h = ie, E = /* @__PURE__ */ Symbol.for("react.transitional.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
225
|
+
var h = ie, E = /* @__PURE__ */ Symbol.for("react.transitional.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), T = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), I = /* @__PURE__ */ Symbol.for("react.lazy"), g = /* @__PURE__ */ Symbol.for("react.activity"), A = /* @__PURE__ */ Symbol.for("react.client.reference"), C = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, w = Object.prototype.hasOwnProperty, k = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
226
226
|
return null;
|
|
227
227
|
};
|
|
228
228
|
h = {
|
|
@@ -233,81 +233,81 @@ React keys must be passed directly to JSX without using spread:
|
|
|
233
233
|
var U, W = {}, G = h.react_stack_bottom_frame.bind(
|
|
234
234
|
h,
|
|
235
235
|
i
|
|
236
|
-
)(),
|
|
237
|
-
|
|
238
|
-
var
|
|
236
|
+
)(), q = M(c(i)), B = {};
|
|
237
|
+
oe.Fragment = p, oe.jsx = function(m, S, j) {
|
|
238
|
+
var x = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
239
239
|
return f(
|
|
240
240
|
m,
|
|
241
241
|
S,
|
|
242
|
-
|
|
242
|
+
j,
|
|
243
243
|
!1,
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
x ? Error("react-stack-top-frame") : G,
|
|
245
|
+
x ? M(c(m)) : q
|
|
246
246
|
);
|
|
247
|
-
},
|
|
248
|
-
var
|
|
247
|
+
}, oe.jsxs = function(m, S, j) {
|
|
248
|
+
var x = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
249
249
|
return f(
|
|
250
250
|
m,
|
|
251
251
|
S,
|
|
252
|
-
|
|
252
|
+
j,
|
|
253
253
|
!0,
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
x ? Error("react-stack-top-frame") : G,
|
|
255
|
+
x ? M(c(m)) : q
|
|
256
256
|
);
|
|
257
257
|
};
|
|
258
|
-
})()),
|
|
258
|
+
})()), oe;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
function
|
|
262
|
-
return
|
|
260
|
+
var yt;
|
|
261
|
+
function Tr() {
|
|
262
|
+
return yt || (yt = 1, process.env.NODE_ENV === "production" ? de.exports = Dr() : de.exports = kr()), de.exports;
|
|
263
263
|
}
|
|
264
|
-
var te =
|
|
265
|
-
const
|
|
266
|
-
main:
|
|
264
|
+
var te = Tr();
|
|
265
|
+
const qr = "_main_88m1r_1", Ur = {
|
|
266
|
+
main: qr
|
|
267
267
|
};
|
|
268
268
|
function Xn() {
|
|
269
269
|
return /* @__PURE__ */ te.jsx("div", { className: Ur.main, children: "Test" });
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
var e,
|
|
271
|
+
function br(n) {
|
|
272
|
+
var e, o, c = "";
|
|
273
273
|
if (typeof n == "string" || typeof n == "number") c += n;
|
|
274
274
|
else if (typeof n == "object") if (Array.isArray(n)) {
|
|
275
275
|
var s = n.length;
|
|
276
|
-
for (e = 0; e < s; e++) n[e] && (
|
|
277
|
-
} else for (
|
|
276
|
+
for (e = 0; e < s; e++) n[e] && (o = br(n[e])) && (c && (c += " "), c += o);
|
|
277
|
+
} else for (o in n) n[o] && (c && (c += " "), c += o);
|
|
278
278
|
return c;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
for (var n, e,
|
|
280
|
+
function yr() {
|
|
281
|
+
for (var n, e, o = 0, c = "", s = arguments.length; o < s; o++) (n = arguments[o]) && (e = br(n)) && (c && (c += " "), c += e);
|
|
282
282
|
return c;
|
|
283
283
|
}
|
|
284
|
-
var pe = { exports: {} },
|
|
284
|
+
var pe = { exports: {} }, je = {}, Ot;
|
|
285
285
|
function Or() {
|
|
286
|
-
if (Ot) return
|
|
286
|
+
if (Ot) return je;
|
|
287
287
|
Ot = 1;
|
|
288
|
-
function n(
|
|
288
|
+
function n(o) {
|
|
289
289
|
if (typeof WeakMap != "function") return null;
|
|
290
290
|
var c = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap();
|
|
291
291
|
return (n = function(i) {
|
|
292
292
|
return i ? s : c;
|
|
293
|
-
})(
|
|
293
|
+
})(o);
|
|
294
294
|
}
|
|
295
|
-
function e(
|
|
296
|
-
if (!c &&
|
|
297
|
-
if (
|
|
295
|
+
function e(o, c) {
|
|
296
|
+
if (!c && o && o.__esModule) return o;
|
|
297
|
+
if (o === null || typeof o != "object" && typeof o != "function") return { default: o };
|
|
298
298
|
var s = n(c);
|
|
299
|
-
if (s && s.has(
|
|
299
|
+
if (s && s.has(o)) return s.get(o);
|
|
300
300
|
var i = { __proto__: null }, t = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
301
|
-
for (var u in
|
|
302
|
-
if (u !== "default" && Object.prototype.hasOwnProperty.call(
|
|
303
|
-
var r = t ? Object.getOwnPropertyDescriptor(
|
|
304
|
-
r && (r.get || r.set) ? Object.defineProperty(i, u, r) : i[u] =
|
|
301
|
+
for (var u in o)
|
|
302
|
+
if (u !== "default" && Object.prototype.hasOwnProperty.call(o, u)) {
|
|
303
|
+
var r = t ? Object.getOwnPropertyDescriptor(o, u) : null;
|
|
304
|
+
r && (r.get || r.set) ? Object.defineProperty(i, u, r) : i[u] = o[u];
|
|
305
305
|
}
|
|
306
|
-
return i.default =
|
|
306
|
+
return i.default = o, s && s.set(o, i), i;
|
|
307
307
|
}
|
|
308
|
-
return
|
|
308
|
+
return je._ = e, je;
|
|
309
309
|
}
|
|
310
|
-
var _e = { exports: {} },
|
|
310
|
+
var _e = { exports: {} }, xe = {}, At;
|
|
311
311
|
function Ar() {
|
|
312
312
|
return At || (At = 1, (function(n) {
|
|
313
313
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -324,19 +324,19 @@ function Ar() {
|
|
|
324
324
|
return i;
|
|
325
325
|
},
|
|
326
326
|
searchParamsToUrlQuery: function() {
|
|
327
|
-
return
|
|
327
|
+
return o;
|
|
328
328
|
},
|
|
329
329
|
urlQueryToSearchParams: function() {
|
|
330
330
|
return s;
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
|
-
function
|
|
333
|
+
function o(t) {
|
|
334
334
|
const u = {};
|
|
335
|
-
for (const [r,
|
|
335
|
+
for (const [r, a] of t.entries()) {
|
|
336
336
|
const f = u[r];
|
|
337
|
-
typeof f > "u" ? u[r] =
|
|
337
|
+
typeof f > "u" ? u[r] = a : Array.isArray(f) ? f.push(a) : u[r] = [
|
|
338
338
|
f,
|
|
339
|
-
|
|
339
|
+
a
|
|
340
340
|
];
|
|
341
341
|
}
|
|
342
342
|
return u;
|
|
@@ -346,24 +346,24 @@ function Ar() {
|
|
|
346
346
|
}
|
|
347
347
|
function s(t) {
|
|
348
348
|
const u = new URLSearchParams();
|
|
349
|
-
for (const [r,
|
|
350
|
-
if (Array.isArray(
|
|
351
|
-
for (const f of
|
|
349
|
+
for (const [r, a] of Object.entries(t))
|
|
350
|
+
if (Array.isArray(a))
|
|
351
|
+
for (const f of a)
|
|
352
352
|
u.append(r, c(f));
|
|
353
353
|
else
|
|
354
|
-
u.set(r, c(
|
|
354
|
+
u.set(r, c(a));
|
|
355
355
|
return u;
|
|
356
356
|
}
|
|
357
357
|
function i(t, ...u) {
|
|
358
358
|
for (const r of u) {
|
|
359
|
-
for (const
|
|
360
|
-
t.delete(
|
|
361
|
-
for (const [
|
|
362
|
-
t.append(
|
|
359
|
+
for (const a of r.keys())
|
|
360
|
+
t.delete(a);
|
|
361
|
+
for (const [a, f] of r.entries())
|
|
362
|
+
t.append(a, f);
|
|
363
363
|
}
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
|
-
})(
|
|
366
|
+
})(xe)), xe;
|
|
367
367
|
}
|
|
368
368
|
var Le = {}, St;
|
|
369
369
|
function Sr() {
|
|
@@ -371,10 +371,10 @@ function Sr() {
|
|
|
371
371
|
Object.defineProperty(n, "__esModule", {
|
|
372
372
|
value: !0
|
|
373
373
|
});
|
|
374
|
-
function e(r,
|
|
375
|
-
for (var f in
|
|
374
|
+
function e(r, a) {
|
|
375
|
+
for (var f in a) Object.defineProperty(r, f, {
|
|
376
376
|
enumerable: !0,
|
|
377
|
-
get:
|
|
377
|
+
get: a[f]
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
e(n, {
|
|
@@ -390,8 +390,8 @@ function Sr() {
|
|
|
390
390
|
});
|
|
391
391
|
const c = /* @__PURE__ */ (/* @__PURE__ */ Or())._(Ar()), s = /https?|ftp|gopher|file/;
|
|
392
392
|
function i(r) {
|
|
393
|
-
let { auth:
|
|
394
|
-
|
|
393
|
+
let { auth: a, hostname: f } = r, _ = r.protocol || "", R = r.pathname || "", h = r.hash || "", E = r.query || "", l = !1;
|
|
394
|
+
a = a ? encodeURIComponent(a).replace(/%3A/i, ":") + "@" : "", r.host ? l = a + r.host : f && (l = a + (~f.indexOf(":") ? `[${f}]` : f), r.port && (l += ":" + r.port)), E && typeof E == "object" && (E = String(c.urlQueryToSearchParams(E)));
|
|
395
395
|
let p = r.search || E && `?${E}` || "";
|
|
396
396
|
return _ && !_.endsWith(":") && (_ += ":"), r.slashes || (!_ || s.test(_)) && l !== !1 ? (l = "//" + (l || ""), R && R[0] !== "/" && (R = "/" + R)) : l || (l = ""), h && h[0] !== "#" && (h = "#" + h), p && p[0] !== "?" && (p = "?" + p), R = R.replace(/[?#]/g, encodeURIComponent), p = p.replace("#", "%23"), `${_}${l}${R}${p}${h}`;
|
|
397
397
|
}
|
|
@@ -410,8 +410,8 @@ function Sr() {
|
|
|
410
410
|
"slashes"
|
|
411
411
|
];
|
|
412
412
|
function u(r) {
|
|
413
|
-
return process.env.NODE_ENV === "development" && r !== null && typeof r == "object" && Object.keys(r).forEach((
|
|
414
|
-
t.includes(
|
|
413
|
+
return process.env.NODE_ENV === "development" && r !== null && typeof r == "object" && Object.keys(r).forEach((a) => {
|
|
414
|
+
t.includes(a) || console.warn(`Unknown key passed via urlObject into url.format: ${a}`);
|
|
415
415
|
}), i(r);
|
|
416
416
|
}
|
|
417
417
|
})(Le)), Le;
|
|
@@ -427,15 +427,15 @@ function Xr() {
|
|
|
427
427
|
return e;
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
|
-
function e(
|
|
430
|
+
function e(o, c) {
|
|
431
431
|
const s = {};
|
|
432
|
-
return Object.keys(
|
|
433
|
-
c.includes(i) || (s[i] =
|
|
432
|
+
return Object.keys(o).forEach((i) => {
|
|
433
|
+
c.includes(i) || (s[i] = o[i]);
|
|
434
434
|
}), s;
|
|
435
435
|
}
|
|
436
436
|
})(De)), De;
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var ke = {}, It;
|
|
439
439
|
function Oe() {
|
|
440
440
|
return It || (It = 1, (function(n) {
|
|
441
441
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -452,7 +452,7 @@ function Oe() {
|
|
|
452
452
|
return E;
|
|
453
453
|
},
|
|
454
454
|
MiddlewareNotFoundError: function() {
|
|
455
|
-
return
|
|
455
|
+
return T;
|
|
456
456
|
},
|
|
457
457
|
MissingStaticPage: function() {
|
|
458
458
|
return d;
|
|
@@ -470,7 +470,7 @@ function Oe() {
|
|
|
470
470
|
return h;
|
|
471
471
|
},
|
|
472
472
|
WEB_VITALS: function() {
|
|
473
|
-
return
|
|
473
|
+
return o;
|
|
474
474
|
},
|
|
475
475
|
execOnce: function() {
|
|
476
476
|
return c;
|
|
@@ -488,7 +488,7 @@ function Oe() {
|
|
|
488
488
|
return i;
|
|
489
489
|
},
|
|
490
490
|
isResSent: function() {
|
|
491
|
-
return
|
|
491
|
+
return a;
|
|
492
492
|
},
|
|
493
493
|
loadGetInitialProps: function() {
|
|
494
494
|
return _;
|
|
@@ -497,10 +497,10 @@ function Oe() {
|
|
|
497
497
|
return f;
|
|
498
498
|
},
|
|
499
499
|
stringifyError: function() {
|
|
500
|
-
return
|
|
500
|
+
return y;
|
|
501
501
|
}
|
|
502
502
|
});
|
|
503
|
-
const
|
|
503
|
+
const o = [
|
|
504
504
|
"CLS",
|
|
505
505
|
"FCP",
|
|
506
506
|
"FID",
|
|
@@ -510,7 +510,7 @@ function Oe() {
|
|
|
510
510
|
];
|
|
511
511
|
function c(P) {
|
|
512
512
|
let v = !1, O;
|
|
513
|
-
return (...
|
|
513
|
+
return (...b) => (v || (v = !0, O = P(...b)), O);
|
|
514
514
|
}
|
|
515
515
|
const s = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, i = (P) => s.test(P);
|
|
516
516
|
function t() {
|
|
@@ -524,7 +524,7 @@ function Oe() {
|
|
|
524
524
|
function r(P) {
|
|
525
525
|
return typeof P == "string" ? P : P.displayName || P.name || "Unknown";
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function a(P) {
|
|
528
528
|
return P.finished || P.headersSent;
|
|
529
529
|
}
|
|
530
530
|
function f(P) {
|
|
@@ -545,18 +545,18 @@ function Oe() {
|
|
|
545
545
|
return v.ctx && v.Component ? {
|
|
546
546
|
pageProps: await _(v.Component, v.ctx)
|
|
547
547
|
} : {};
|
|
548
|
-
const
|
|
549
|
-
if (O &&
|
|
550
|
-
return
|
|
551
|
-
if (!
|
|
552
|
-
const N = `"${r(P)}.getInitialProps()" should resolve to an object. But found "${
|
|
548
|
+
const b = await P.getInitialProps(v);
|
|
549
|
+
if (O && a(O))
|
|
550
|
+
return b;
|
|
551
|
+
if (!b) {
|
|
552
|
+
const N = `"${r(P)}.getInitialProps()" should resolve to an object. But found "${b}" instead.`;
|
|
553
553
|
throw Object.defineProperty(new Error(N), "__NEXT_ERROR_CODE", {
|
|
554
554
|
value: "E394",
|
|
555
555
|
enumerable: !1,
|
|
556
556
|
configurable: !0
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
return process.env.NODE_ENV !== "production" && Object.keys(
|
|
559
|
+
return process.env.NODE_ENV !== "production" && Object.keys(b).length === 0 && !v.ctx && console.warn(`${r(P)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`), b;
|
|
560
560
|
}
|
|
561
561
|
const R = typeof performance < "u", h = R && [
|
|
562
562
|
"mark",
|
|
@@ -577,20 +577,20 @@ function Oe() {
|
|
|
577
577
|
super(), this.message = `Failed to load static file for page: ${v} ${O}`;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
class
|
|
580
|
+
class T extends Error {
|
|
581
581
|
constructor() {
|
|
582
582
|
super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function y(P) {
|
|
586
586
|
return JSON.stringify({
|
|
587
587
|
message: P.message,
|
|
588
588
|
stack: P.stack
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
|
-
})(
|
|
591
|
+
})(ke)), ke;
|
|
592
592
|
}
|
|
593
|
-
var he = { exports: {} },
|
|
593
|
+
var he = { exports: {} }, qe = {}, Ct;
|
|
594
594
|
function Nr() {
|
|
595
595
|
return Ct || (Ct = 1, (function(n) {
|
|
596
596
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -601,10 +601,10 @@ function Nr() {
|
|
|
601
601
|
return e;
|
|
602
602
|
}
|
|
603
603
|
});
|
|
604
|
-
function e(
|
|
605
|
-
return
|
|
604
|
+
function e(o) {
|
|
605
|
+
return o.replace(/\/$/, "") || "/";
|
|
606
606
|
}
|
|
607
|
-
})(
|
|
607
|
+
})(qe)), qe;
|
|
608
608
|
}
|
|
609
609
|
var Ue = {}, wt;
|
|
610
610
|
function gt() {
|
|
@@ -617,23 +617,23 @@ function gt() {
|
|
|
617
617
|
return e;
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
|
-
function e(
|
|
621
|
-
const c =
|
|
620
|
+
function e(o) {
|
|
621
|
+
const c = o.indexOf("#"), s = o.indexOf("?"), i = s > -1 && (c < 0 || s < c);
|
|
622
622
|
return i || c > -1 ? {
|
|
623
|
-
pathname:
|
|
624
|
-
query: i ?
|
|
625
|
-
hash: c > -1 ?
|
|
623
|
+
pathname: o.substring(0, i ? s : c),
|
|
624
|
+
query: i ? o.substring(s, c > -1 ? c : void 0) : "",
|
|
625
|
+
hash: c > -1 ? o.slice(c) : ""
|
|
626
626
|
} : {
|
|
627
|
-
pathname:
|
|
627
|
+
pathname: o,
|
|
628
628
|
query: "",
|
|
629
629
|
hash: ""
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
632
|
})(Ue)), Ue;
|
|
633
633
|
}
|
|
634
|
-
var
|
|
634
|
+
var Mt;
|
|
635
635
|
function Ae() {
|
|
636
|
-
return
|
|
636
|
+
return Mt || (Mt = 1, (function(n, e) {
|
|
637
637
|
Object.defineProperty(e, "__esModule", {
|
|
638
638
|
value: !0
|
|
639
639
|
}), Object.defineProperty(e, "normalizePathTrailingSlash", {
|
|
@@ -642,28 +642,28 @@ function Ae() {
|
|
|
642
642
|
return s;
|
|
643
643
|
}
|
|
644
644
|
});
|
|
645
|
-
const
|
|
645
|
+
const o = Nr(), c = gt(), s = (i) => {
|
|
646
646
|
if (!i.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
|
|
647
647
|
return i;
|
|
648
648
|
const { pathname: t, query: u, hash: r } = (0, c.parsePath)(i);
|
|
649
|
-
return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(t) ? `${(0,
|
|
649
|
+
return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(t) ? `${(0, o.removeTrailingSlash)(t)}${u}${r}` : t.endsWith("/") ? `${t}${u}${r}` : `${t}/${u}${r}` : `${(0, o.removeTrailingSlash)(t)}${u}${r}`;
|
|
650
650
|
};
|
|
651
651
|
(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), n.exports = e.default);
|
|
652
652
|
})(he, he.exports)), he.exports;
|
|
653
653
|
}
|
|
654
|
-
var Xe = {}, me = { exports: {} }, Fe = {},
|
|
654
|
+
var Xe = {}, me = { exports: {} }, Fe = {}, jt;
|
|
655
655
|
function Ir() {
|
|
656
|
-
return
|
|
656
|
+
return jt || (jt = 1, (function(n) {
|
|
657
657
|
Object.defineProperty(n, "__esModule", {
|
|
658
658
|
value: !0
|
|
659
659
|
}), Object.defineProperty(n, "pathHasPrefix", {
|
|
660
660
|
enumerable: !0,
|
|
661
661
|
get: function() {
|
|
662
|
-
return
|
|
662
|
+
return o;
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
665
|
const e = gt();
|
|
666
|
-
function
|
|
666
|
+
function o(c, s) {
|
|
667
667
|
if (typeof c != "string")
|
|
668
668
|
return !1;
|
|
669
669
|
const { pathname: i } = (0, e.parsePath)(c);
|
|
@@ -671,9 +671,9 @@ function Ir() {
|
|
|
671
671
|
}
|
|
672
672
|
})(Fe)), Fe;
|
|
673
673
|
}
|
|
674
|
-
var
|
|
674
|
+
var xt;
|
|
675
675
|
function Fr() {
|
|
676
|
-
return
|
|
676
|
+
return xt || (xt = 1, (function(n, e) {
|
|
677
677
|
Object.defineProperty(e, "__esModule", {
|
|
678
678
|
value: !0
|
|
679
679
|
}), Object.defineProperty(e, "hasBasePath", {
|
|
@@ -682,9 +682,9 @@ function Fr() {
|
|
|
682
682
|
return s;
|
|
683
683
|
}
|
|
684
684
|
});
|
|
685
|
-
const
|
|
685
|
+
const o = Ir(), c = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
686
686
|
function s(i) {
|
|
687
|
-
return (0,
|
|
687
|
+
return (0, o.pathHasPrefix)(i, c);
|
|
688
688
|
}
|
|
689
689
|
(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), n.exports = e.default);
|
|
690
690
|
})(me, me.exports)), me.exports;
|
|
@@ -700,12 +700,12 @@ function Cr() {
|
|
|
700
700
|
return c;
|
|
701
701
|
}
|
|
702
702
|
});
|
|
703
|
-
const e = Oe(),
|
|
703
|
+
const e = Oe(), o = Fr();
|
|
704
704
|
function c(s) {
|
|
705
705
|
if (!(0, e.isAbsoluteUrl)(s)) return !0;
|
|
706
706
|
try {
|
|
707
707
|
const i = (0, e.getLocationOrigin)(), t = new URL(s, i);
|
|
708
|
-
return t.origin === i && (0,
|
|
708
|
+
return t.origin === i && (0, o.hasBasePath)(t.pathname);
|
|
709
709
|
} catch {
|
|
710
710
|
return !1;
|
|
711
711
|
}
|
|
@@ -732,7 +732,7 @@ function Hr() {
|
|
|
732
732
|
return c;
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
|
-
class
|
|
735
|
+
class o {
|
|
736
736
|
insert(t) {
|
|
737
737
|
this._insert(t.split("/").filter(Boolean), [], !1);
|
|
738
738
|
}
|
|
@@ -744,19 +744,19 @@ function Hr() {
|
|
|
744
744
|
...this.children.keys()
|
|
745
745
|
].sort();
|
|
746
746
|
this.slugName !== null && u.splice(u.indexOf("[]"), 1), this.restSlugName !== null && u.splice(u.indexOf("[...]"), 1), this.optionalRestSlugName !== null && u.splice(u.indexOf("[[...]]"), 1);
|
|
747
|
-
const r = u.map((
|
|
748
|
-
...
|
|
747
|
+
const r = u.map((a) => this.children.get(a)._smoosh(`${t}${a}/`)).reduce((a, f) => [
|
|
748
|
+
...a,
|
|
749
749
|
...f
|
|
750
750
|
], []);
|
|
751
751
|
if (this.slugName !== null && r.push(...this.children.get("[]")._smoosh(`${t}[${this.slugName}]/`)), !this.placeholder) {
|
|
752
|
-
const
|
|
752
|
+
const a = t === "/" ? "/" : t.slice(0, -1);
|
|
753
753
|
if (this.optionalRestSlugName != null)
|
|
754
|
-
throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${
|
|
754
|
+
throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${a}" and "${a}[[...${this.optionalRestSlugName}]]").`), "__NEXT_ERROR_CODE", {
|
|
755
755
|
value: "E458",
|
|
756
756
|
enumerable: !1,
|
|
757
757
|
configurable: !0
|
|
758
758
|
});
|
|
759
|
-
r.unshift(
|
|
759
|
+
r.unshift(a);
|
|
760
760
|
}
|
|
761
761
|
return this.restSlugName !== null && r.push(...this.children.get("[...]")._smoosh(`${t}[...${this.restSlugName}]/`)), this.optionalRestSlugName !== null && r.push(...this.children.get("[[...]]")._smoosh(`${t}[[...${this.optionalRestSlugName}]]/`)), r;
|
|
762
762
|
}
|
|
@@ -771,8 +771,8 @@ function Hr() {
|
|
|
771
771
|
enumerable: !1,
|
|
772
772
|
configurable: !0
|
|
773
773
|
});
|
|
774
|
-
let
|
|
775
|
-
if (
|
|
774
|
+
let a = t[0];
|
|
775
|
+
if (a.startsWith("[") && a.endsWith("]")) {
|
|
776
776
|
let R = function(h, E) {
|
|
777
777
|
if (h !== null && h !== E)
|
|
778
778
|
throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${h}' !== '${E}').`), "__NEXT_ERROR_CODE", {
|
|
@@ -787,14 +787,14 @@ function Hr() {
|
|
|
787
787
|
enumerable: !1,
|
|
788
788
|
configurable: !0
|
|
789
789
|
});
|
|
790
|
-
if (l.replace(/\W/g, "") ===
|
|
790
|
+
if (l.replace(/\W/g, "") === a.replace(/\W/g, ""))
|
|
791
791
|
throw Object.defineProperty(new Error(`You cannot have the slug names "${l}" and "${E}" differ only by non-word symbols within a single dynamic path`), "__NEXT_ERROR_CODE", {
|
|
792
792
|
value: "E499",
|
|
793
793
|
enumerable: !1,
|
|
794
794
|
configurable: !0
|
|
795
795
|
});
|
|
796
796
|
}), u.push(E);
|
|
797
|
-
}, f =
|
|
797
|
+
}, f = a.slice(1, -1), _ = !1;
|
|
798
798
|
if (f.startsWith("[") && f.endsWith("]") && (f = f.slice(1, -1), _ = !0), f.startsWith("…"))
|
|
799
799
|
throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${f}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
|
|
800
800
|
value: "E147",
|
|
@@ -821,7 +821,7 @@ function Hr() {
|
|
|
821
821
|
enumerable: !1,
|
|
822
822
|
configurable: !0
|
|
823
823
|
});
|
|
824
|
-
R(this.optionalRestSlugName, f), this.optionalRestSlugName = f,
|
|
824
|
+
R(this.optionalRestSlugName, f), this.optionalRestSlugName = f, a = "[[...]]";
|
|
825
825
|
} else {
|
|
826
826
|
if (this.optionalRestSlugName != null)
|
|
827
827
|
throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${t[0]}").`), "__NEXT_ERROR_CODE", {
|
|
@@ -829,7 +829,7 @@ function Hr() {
|
|
|
829
829
|
enumerable: !1,
|
|
830
830
|
configurable: !0
|
|
831
831
|
});
|
|
832
|
-
R(this.restSlugName, f), this.restSlugName = f,
|
|
832
|
+
R(this.restSlugName, f), this.restSlugName = f, a = "[...]";
|
|
833
833
|
}
|
|
834
834
|
else {
|
|
835
835
|
if (_)
|
|
@@ -838,17 +838,17 @@ function Hr() {
|
|
|
838
838
|
enumerable: !1,
|
|
839
839
|
configurable: !0
|
|
840
840
|
});
|
|
841
|
-
R(this.slugName, f), this.slugName = f,
|
|
841
|
+
R(this.slugName, f), this.slugName = f, a = "[]";
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
this.children.has(
|
|
844
|
+
this.children.has(a) || this.children.set(a, new o()), this.children.get(a)._insert(t.slice(1), u, r);
|
|
845
845
|
}
|
|
846
846
|
constructor() {
|
|
847
847
|
this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
function c(i) {
|
|
851
|
-
const t = new
|
|
851
|
+
const t = new o();
|
|
852
852
|
return i.forEach((u) => t.insert(u)), t.smoosh();
|
|
853
853
|
}
|
|
854
854
|
function s(i, t) {
|
|
@@ -861,9 +861,9 @@ function Hr() {
|
|
|
861
861
|
}
|
|
862
862
|
})(Ge)), Ge;
|
|
863
863
|
}
|
|
864
|
-
var ze = {}, We = {}, Ve = {}, Ye = {},
|
|
864
|
+
var ze = {}, We = {}, Ve = {}, Ye = {}, kt;
|
|
865
865
|
function Gr() {
|
|
866
|
-
return
|
|
866
|
+
return kt || (kt = 1, (function(n) {
|
|
867
867
|
Object.defineProperty(n, "__esModule", {
|
|
868
868
|
value: !0
|
|
869
869
|
}), Object.defineProperty(n, "ensureLeadingSlash", {
|
|
@@ -872,14 +872,14 @@ function Gr() {
|
|
|
872
872
|
return e;
|
|
873
873
|
}
|
|
874
874
|
});
|
|
875
|
-
function e(
|
|
876
|
-
return
|
|
875
|
+
function e(o) {
|
|
876
|
+
return o.startsWith("/") ? o : `/${o}`;
|
|
877
877
|
}
|
|
878
878
|
})(Ye)), Ye;
|
|
879
879
|
}
|
|
880
|
-
var Be = {},
|
|
880
|
+
var Be = {}, qt;
|
|
881
881
|
function wr() {
|
|
882
|
-
return
|
|
882
|
+
return qt || (qt = 1, (function(n) {
|
|
883
883
|
Object.defineProperty(n, "__esModule", {
|
|
884
884
|
value: !0
|
|
885
885
|
});
|
|
@@ -891,7 +891,7 @@ function wr() {
|
|
|
891
891
|
}
|
|
892
892
|
e(n, {
|
|
893
893
|
DEFAULT_SEGMENT_KEY: function() {
|
|
894
|
-
return
|
|
894
|
+
return a;
|
|
895
895
|
},
|
|
896
896
|
NOT_FOUND_SEGMENT_KEY: function() {
|
|
897
897
|
return f;
|
|
@@ -906,7 +906,7 @@ function wr() {
|
|
|
906
906
|
return t;
|
|
907
907
|
},
|
|
908
908
|
getSegmentValue: function() {
|
|
909
|
-
return
|
|
909
|
+
return o;
|
|
910
910
|
},
|
|
911
911
|
getSelectedLayoutSegmentPath: function() {
|
|
912
912
|
return u;
|
|
@@ -918,7 +918,7 @@ function wr() {
|
|
|
918
918
|
return s;
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
|
-
function
|
|
921
|
+
function o(_) {
|
|
922
922
|
return Array.isArray(_) ? _[1] : _;
|
|
923
923
|
}
|
|
924
924
|
function c(_) {
|
|
@@ -938,22 +938,22 @@ function wr() {
|
|
|
938
938
|
if (!_ || _.length === 0)
|
|
939
939
|
return null;
|
|
940
940
|
const h = R === "children" ? _[0] : _[_.length - 1];
|
|
941
|
-
return h ===
|
|
941
|
+
return h === a ? null : h;
|
|
942
942
|
}
|
|
943
943
|
function u(_, R, h = !0, E = []) {
|
|
944
944
|
let l;
|
|
945
945
|
if (h)
|
|
946
946
|
l = _[1][R];
|
|
947
947
|
else {
|
|
948
|
-
const
|
|
949
|
-
l =
|
|
948
|
+
const T = _[1];
|
|
949
|
+
l = T.children ?? Object.values(T)[0];
|
|
950
950
|
}
|
|
951
951
|
if (!l) return E;
|
|
952
952
|
const p = l[0];
|
|
953
|
-
let d =
|
|
953
|
+
let d = o(p);
|
|
954
954
|
return !d || d.startsWith(r) ? E : (E.push(d), u(l, R, !1, E));
|
|
955
955
|
}
|
|
956
|
-
const r = "__PAGE__",
|
|
956
|
+
const r = "__PAGE__", a = "__DEFAULT__", f = "/_not-found";
|
|
957
957
|
})(Be)), Be;
|
|
958
958
|
}
|
|
959
959
|
var Ut;
|
|
@@ -976,9 +976,9 @@ function zr() {
|
|
|
976
976
|
return i;
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
|
-
const
|
|
979
|
+
const o = Gr(), c = wr();
|
|
980
980
|
function s(t) {
|
|
981
|
-
return (0,
|
|
981
|
+
return (0, o.ensureLeadingSlash)(t.split("/").reduce((u, r, a, f) => !r || (0, c.isGroupSegment)(r) || r[0] === "@" || (r === "page" || r === "route") && a === f.length - 1 ? u : `${u}/${r}`, ""));
|
|
982
982
|
}
|
|
983
983
|
function i(t) {
|
|
984
984
|
return t.replace(
|
|
@@ -1012,7 +1012,7 @@ function Se() {
|
|
|
1012
1012
|
return s;
|
|
1013
1013
|
}
|
|
1014
1014
|
});
|
|
1015
|
-
const
|
|
1015
|
+
const o = zr(), c = [
|
|
1016
1016
|
"(..)(..)",
|
|
1017
1017
|
"(.)",
|
|
1018
1018
|
"(..)",
|
|
@@ -1022,21 +1022,21 @@ function Se() {
|
|
|
1022
1022
|
return t.split("/").find((u) => c.find((r) => u.startsWith(r))) !== void 0;
|
|
1023
1023
|
}
|
|
1024
1024
|
function i(t) {
|
|
1025
|
-
let u, r,
|
|
1025
|
+
let u, r, a;
|
|
1026
1026
|
for (const f of t.split("/"))
|
|
1027
1027
|
if (r = c.find((_) => f.startsWith(_)), r) {
|
|
1028
|
-
[u,
|
|
1028
|
+
[u, a] = t.split(r, 2);
|
|
1029
1029
|
break;
|
|
1030
1030
|
}
|
|
1031
|
-
if (!u || !r || !
|
|
1031
|
+
if (!u || !r || !a)
|
|
1032
1032
|
throw Object.defineProperty(new Error(`Invalid interception route: ${t}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
|
|
1033
1033
|
value: "E269",
|
|
1034
1034
|
enumerable: !1,
|
|
1035
1035
|
configurable: !0
|
|
1036
1036
|
});
|
|
1037
|
-
switch (u = (0,
|
|
1037
|
+
switch (u = (0, o.normalizeAppPath)(u), r) {
|
|
1038
1038
|
case "(.)":
|
|
1039
|
-
u === "/" ?
|
|
1039
|
+
u === "/" ? a = `/${a}` : a = u + "/" + a;
|
|
1040
1040
|
break;
|
|
1041
1041
|
case "(..)":
|
|
1042
1042
|
if (u === "/")
|
|
@@ -1045,10 +1045,10 @@ function Se() {
|
|
|
1045
1045
|
enumerable: !1,
|
|
1046
1046
|
configurable: !0
|
|
1047
1047
|
});
|
|
1048
|
-
|
|
1048
|
+
a = u.split("/").slice(0, -1).concat(a).join("/");
|
|
1049
1049
|
break;
|
|
1050
1050
|
case "(...)":
|
|
1051
|
-
|
|
1051
|
+
a = "/" + a;
|
|
1052
1052
|
break;
|
|
1053
1053
|
case "(..)(..)":
|
|
1054
1054
|
const f = u.split("/");
|
|
@@ -1058,7 +1058,7 @@ function Se() {
|
|
|
1058
1058
|
enumerable: !1,
|
|
1059
1059
|
configurable: !0
|
|
1060
1060
|
});
|
|
1061
|
-
|
|
1061
|
+
a = f.slice(0, -2).concat(a).join("/");
|
|
1062
1062
|
break;
|
|
1063
1063
|
default:
|
|
1064
1064
|
throw Object.defineProperty(new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
|
|
@@ -1069,7 +1069,7 @@ function Se() {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
return {
|
|
1071
1071
|
interceptingRoute: u,
|
|
1072
|
-
interceptedRoute:
|
|
1072
|
+
interceptedRoute: a
|
|
1073
1073
|
};
|
|
1074
1074
|
}
|
|
1075
1075
|
})(We)), We;
|
|
@@ -1085,9 +1085,9 @@ function Wr() {
|
|
|
1085
1085
|
return s;
|
|
1086
1086
|
}
|
|
1087
1087
|
});
|
|
1088
|
-
const e = Se(),
|
|
1088
|
+
const e = Se(), o = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/, c = /\/\[[^/]+\](?=\/|$)/;
|
|
1089
1089
|
function s(i, t = !0) {
|
|
1090
|
-
return (0, e.isInterceptionRouteAppPath)(i) && (i = (0, e.extractInterceptionRouteInformation)(i).interceptedRoute), t ? c.test(i) :
|
|
1090
|
+
return (0, e.isInterceptionRouteAppPath)(i) && (i = (0, e.extractInterceptionRouteInformation)(i).interceptedRoute), t ? c.test(i) : o.test(i);
|
|
1091
1091
|
}
|
|
1092
1092
|
})(ze)), ze;
|
|
1093
1093
|
}
|
|
@@ -1105,16 +1105,16 @@ function Vr() {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
e(n, {
|
|
1107
1107
|
getSortedRouteObjects: function() {
|
|
1108
|
-
return
|
|
1108
|
+
return o.getSortedRouteObjects;
|
|
1109
1109
|
},
|
|
1110
1110
|
getSortedRoutes: function() {
|
|
1111
|
-
return
|
|
1111
|
+
return o.getSortedRoutes;
|
|
1112
1112
|
},
|
|
1113
1113
|
isDynamicRoute: function() {
|
|
1114
1114
|
return c.isDynamicRoute;
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
|
-
const
|
|
1117
|
+
const o = Hr(), c = Wr();
|
|
1118
1118
|
})(He)), He;
|
|
1119
1119
|
}
|
|
1120
1120
|
var $e = {}, Ke = {}, Qe = {}, Je = { exports: {} }, Gt;
|
|
@@ -1125,45 +1125,45 @@ function Yr() {
|
|
|
1125
1125
|
(() => {
|
|
1126
1126
|
var e = n;
|
|
1127
1127
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.pathToRegexp = e.tokensToRegexp = e.regexpToFunction = e.match = e.tokensToFunction = e.compile = e.parse = void 0;
|
|
1128
|
-
function
|
|
1128
|
+
function o(l) {
|
|
1129
1129
|
for (var p = [], d = 0; d < l.length; ) {
|
|
1130
|
-
var
|
|
1131
|
-
if (
|
|
1130
|
+
var T = l[d];
|
|
1131
|
+
if (T === "*" || T === "+" || T === "?") {
|
|
1132
1132
|
p.push({ type: "MODIFIER", index: d, value: l[d++] });
|
|
1133
1133
|
continue;
|
|
1134
1134
|
}
|
|
1135
|
-
if (
|
|
1135
|
+
if (T === "\\") {
|
|
1136
1136
|
p.push({ type: "ESCAPED_CHAR", index: d++, value: l[d++] });
|
|
1137
1137
|
continue;
|
|
1138
1138
|
}
|
|
1139
|
-
if (
|
|
1139
|
+
if (T === "{") {
|
|
1140
1140
|
p.push({ type: "OPEN", index: d, value: l[d++] });
|
|
1141
1141
|
continue;
|
|
1142
1142
|
}
|
|
1143
|
-
if (
|
|
1143
|
+
if (T === "}") {
|
|
1144
1144
|
p.push({ type: "CLOSE", index: d, value: l[d++] });
|
|
1145
1145
|
continue;
|
|
1146
1146
|
}
|
|
1147
|
-
if (
|
|
1148
|
-
for (var
|
|
1147
|
+
if (T === ":") {
|
|
1148
|
+
for (var y = "", P = d + 1; P < l.length; ) {
|
|
1149
1149
|
var v = l.charCodeAt(P);
|
|
1150
1150
|
if (v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || v === 95) {
|
|
1151
|
-
|
|
1151
|
+
y += l[P++];
|
|
1152
1152
|
continue;
|
|
1153
1153
|
}
|
|
1154
1154
|
break;
|
|
1155
1155
|
}
|
|
1156
|
-
if (!
|
|
1157
|
-
p.push({ type: "NAME", index: d, value:
|
|
1156
|
+
if (!y) throw new TypeError("Missing parameter name at ".concat(d));
|
|
1157
|
+
p.push({ type: "NAME", index: d, value: y }), d = P;
|
|
1158
1158
|
continue;
|
|
1159
1159
|
}
|
|
1160
|
-
if (
|
|
1161
|
-
var O = 1,
|
|
1160
|
+
if (T === "(") {
|
|
1161
|
+
var O = 1, b = "", P = d + 1;
|
|
1162
1162
|
if (l[P] === "?")
|
|
1163
1163
|
throw new TypeError('Pattern cannot start with "?" at '.concat(P));
|
|
1164
1164
|
for (; P < l.length; ) {
|
|
1165
1165
|
if (l[P] === "\\") {
|
|
1166
|
-
|
|
1166
|
+
b += l[P++] + l[P++];
|
|
1167
1167
|
continue;
|
|
1168
1168
|
}
|
|
1169
1169
|
if (l[P] === ")") {
|
|
@@ -1173,11 +1173,11 @@ function Yr() {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
} else if (l[P] === "(" && (O++, l[P + 1] !== "?"))
|
|
1175
1175
|
throw new TypeError("Capturing groups are not allowed at ".concat(P));
|
|
1176
|
-
|
|
1176
|
+
b += l[P++];
|
|
1177
1177
|
}
|
|
1178
1178
|
if (O) throw new TypeError("Unbalanced pattern at ".concat(d));
|
|
1179
|
-
if (!
|
|
1180
|
-
p.push({ type: "PATTERN", index: d, value:
|
|
1179
|
+
if (!b) throw new TypeError("Missing pattern at ".concat(d));
|
|
1180
|
+
p.push({ type: "PATTERN", index: d, value: b }), d = P;
|
|
1181
1181
|
continue;
|
|
1182
1182
|
}
|
|
1183
1183
|
p.push({ type: "CHAR", index: d, value: l[d++] });
|
|
@@ -1186,45 +1186,45 @@ function Yr() {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
function c(l, p) {
|
|
1188
1188
|
p === void 0 && (p = {});
|
|
1189
|
-
for (var d =
|
|
1190
|
-
if (N < d.length && d[N].type ===
|
|
1191
|
-
}, A = function(
|
|
1192
|
-
var X = g(
|
|
1189
|
+
for (var d = o(l), T = p.prefixes, y = T === void 0 ? "./" : T, P = p.delimiter, v = P === void 0 ? "/#?" : P, O = [], b = 0, N = 0, I = "", g = function(x) {
|
|
1190
|
+
if (N < d.length && d[N].type === x) return d[N++].value;
|
|
1191
|
+
}, A = function(x) {
|
|
1192
|
+
var X = g(x);
|
|
1193
1193
|
if (X !== void 0) return X;
|
|
1194
1194
|
var V = d[N], L = V.type, Q = V.index;
|
|
1195
|
-
throw new TypeError("Unexpected ".concat(L, " at ").concat(Q, ", expected ").concat(
|
|
1195
|
+
throw new TypeError("Unexpected ".concat(L, " at ").concat(Q, ", expected ").concat(x));
|
|
1196
1196
|
}, C = function() {
|
|
1197
|
-
for (var
|
|
1198
|
-
|
|
1199
|
-
return
|
|
1200
|
-
}, w = function(
|
|
1197
|
+
for (var x = "", X; X = g("CHAR") || g("ESCAPED_CHAR"); )
|
|
1198
|
+
x += X;
|
|
1199
|
+
return x;
|
|
1200
|
+
}, w = function(x) {
|
|
1201
1201
|
for (var X = 0, V = v; X < V.length; X++) {
|
|
1202
1202
|
var L = V[X];
|
|
1203
|
-
if (
|
|
1203
|
+
if (x.indexOf(L) > -1) return !0;
|
|
1204
1204
|
}
|
|
1205
1205
|
return !1;
|
|
1206
|
-
},
|
|
1207
|
-
var X = O[O.length - 1], V =
|
|
1206
|
+
}, k = function(x) {
|
|
1207
|
+
var X = O[O.length - 1], V = x || (X && typeof X == "string" ? X : "");
|
|
1208
1208
|
if (X && !V)
|
|
1209
1209
|
throw new TypeError('Must have text between two parameters, missing text after "'.concat(X.name, '"'));
|
|
1210
1210
|
return !V || w(V) ? "[^".concat(r(v), "]+?") : "(?:(?!".concat(r(V), ")[^").concat(r(v), "])+?");
|
|
1211
1211
|
}; N < d.length; ) {
|
|
1212
|
-
var
|
|
1212
|
+
var M = g("CHAR"), U = g("NAME"), W = g("PATTERN");
|
|
1213
1213
|
if (U || W) {
|
|
1214
|
-
var G =
|
|
1215
|
-
|
|
1214
|
+
var G = M || "";
|
|
1215
|
+
y.indexOf(G) === -1 && (I += G, G = ""), I && (O.push(I), I = ""), O.push({ name: U || b++, prefix: G, suffix: "", pattern: W || k(G), modifier: g("MODIFIER") || "" });
|
|
1216
1216
|
continue;
|
|
1217
1217
|
}
|
|
1218
|
-
var
|
|
1219
|
-
if (
|
|
1220
|
-
I +=
|
|
1218
|
+
var q = M || g("ESCAPED_CHAR");
|
|
1219
|
+
if (q) {
|
|
1220
|
+
I += q;
|
|
1221
1221
|
continue;
|
|
1222
1222
|
}
|
|
1223
1223
|
I && (O.push(I), I = "");
|
|
1224
1224
|
var B = g("OPEN");
|
|
1225
1225
|
if (B) {
|
|
1226
|
-
var G = C(), m = g("NAME") || "", S = g("PATTERN") || "",
|
|
1227
|
-
A("CLOSE"), O.push({ name: m || (S ?
|
|
1226
|
+
var G = C(), m = g("NAME") || "", S = g("PATTERN") || "", j = C();
|
|
1227
|
+
A("CLOSE"), O.push({ name: m || (S ? b++ : ""), pattern: m && !S ? k(G) : S, prefix: G, suffix: j, modifier: g("MODIFIER") || "" });
|
|
1228
1228
|
continue;
|
|
1229
1229
|
}
|
|
1230
1230
|
A("END");
|
|
@@ -1238,20 +1238,20 @@ function Yr() {
|
|
|
1238
1238
|
e.compile = s;
|
|
1239
1239
|
function i(l, p) {
|
|
1240
1240
|
p === void 0 && (p = {});
|
|
1241
|
-
var d =
|
|
1242
|
-
return
|
|
1243
|
-
} :
|
|
1244
|
-
if (typeof
|
|
1245
|
-
return new RegExp("^(?:".concat(
|
|
1241
|
+
var d = a(p), T = p.encode, y = T === void 0 ? function(b) {
|
|
1242
|
+
return b;
|
|
1243
|
+
} : T, P = p.validate, v = P === void 0 ? !0 : P, O = l.map((function(b) {
|
|
1244
|
+
if (typeof b == "object")
|
|
1245
|
+
return new RegExp("^(?:".concat(b.pattern, ")$"), d);
|
|
1246
1246
|
}));
|
|
1247
|
-
return function(
|
|
1247
|
+
return function(b) {
|
|
1248
1248
|
for (var N = "", I = 0; I < l.length; I++) {
|
|
1249
1249
|
var g = l[I];
|
|
1250
1250
|
if (typeof g == "string") {
|
|
1251
1251
|
N += g;
|
|
1252
1252
|
continue;
|
|
1253
1253
|
}
|
|
1254
|
-
var A =
|
|
1254
|
+
var A = b ? b[g.name] : void 0, C = g.modifier === "?" || g.modifier === "*", w = g.modifier === "*" || g.modifier === "+";
|
|
1255
1255
|
if (Array.isArray(A)) {
|
|
1256
1256
|
if (!w)
|
|
1257
1257
|
throw new TypeError('Expected "'.concat(g.name, '" to not repeat, but got an array'));
|
|
@@ -1259,19 +1259,19 @@ function Yr() {
|
|
|
1259
1259
|
if (C) continue;
|
|
1260
1260
|
throw new TypeError('Expected "'.concat(g.name, '" to not be empty'));
|
|
1261
1261
|
}
|
|
1262
|
-
for (var
|
|
1263
|
-
var
|
|
1264
|
-
if (v && !O[I].test(
|
|
1265
|
-
throw new TypeError('Expected all "'.concat(g.name, '" to match "').concat(g.pattern, '", but got "').concat(
|
|
1266
|
-
N += g.prefix +
|
|
1262
|
+
for (var k = 0; k < A.length; k++) {
|
|
1263
|
+
var M = y(A[k], g);
|
|
1264
|
+
if (v && !O[I].test(M))
|
|
1265
|
+
throw new TypeError('Expected all "'.concat(g.name, '" to match "').concat(g.pattern, '", but got "').concat(M, '"'));
|
|
1266
|
+
N += g.prefix + M + g.suffix;
|
|
1267
1267
|
}
|
|
1268
1268
|
continue;
|
|
1269
1269
|
}
|
|
1270
1270
|
if (typeof A == "string" || typeof A == "number") {
|
|
1271
|
-
var
|
|
1272
|
-
if (v && !O[I].test(
|
|
1273
|
-
throw new TypeError('Expected "'.concat(g.name, '" to match "').concat(g.pattern, '", but got "').concat(
|
|
1274
|
-
N += g.prefix +
|
|
1271
|
+
var M = y(String(A), g);
|
|
1272
|
+
if (v && !O[I].test(M))
|
|
1273
|
+
throw new TypeError('Expected "'.concat(g.name, '" to match "').concat(g.pattern, '", but got "').concat(M, '"'));
|
|
1274
|
+
N += g.prefix + M + g.suffix;
|
|
1275
1275
|
continue;
|
|
1276
1276
|
}
|
|
1277
1277
|
if (!C) {
|
|
@@ -1284,84 +1284,84 @@ function Yr() {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
e.tokensToFunction = i;
|
|
1286
1286
|
function t(l, p) {
|
|
1287
|
-
var d = [],
|
|
1288
|
-
return u(
|
|
1287
|
+
var d = [], T = E(l, d, p);
|
|
1288
|
+
return u(T, d, p);
|
|
1289
1289
|
}
|
|
1290
1290
|
e.match = t;
|
|
1291
1291
|
function u(l, p, d) {
|
|
1292
1292
|
d === void 0 && (d = {});
|
|
1293
|
-
var
|
|
1293
|
+
var T = d.decode, y = T === void 0 ? function(P) {
|
|
1294
1294
|
return P;
|
|
1295
|
-
} :
|
|
1295
|
+
} : T;
|
|
1296
1296
|
return function(P) {
|
|
1297
1297
|
var v = l.exec(P);
|
|
1298
1298
|
if (!v) return !1;
|
|
1299
|
-
for (var O = v[0],
|
|
1299
|
+
for (var O = v[0], b = v.index, N = /* @__PURE__ */ Object.create(null), I = function(A) {
|
|
1300
1300
|
if (v[A] === void 0) return "continue";
|
|
1301
1301
|
var C = p[A - 1];
|
|
1302
1302
|
C.modifier === "*" || C.modifier === "+" ? N[C.name] = v[A].split(C.prefix + C.suffix).map((function(w) {
|
|
1303
|
-
return
|
|
1304
|
-
})) : N[C.name] =
|
|
1303
|
+
return y(w, C);
|
|
1304
|
+
})) : N[C.name] = y(v[A], C);
|
|
1305
1305
|
}, g = 1; g < v.length; g++)
|
|
1306
1306
|
I(g);
|
|
1307
|
-
return { path: O, index:
|
|
1307
|
+
return { path: O, index: b, params: N };
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
1310
1310
|
e.regexpToFunction = u;
|
|
1311
1311
|
function r(l) {
|
|
1312
1312
|
return l.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function a(l) {
|
|
1315
1315
|
return l && l.sensitive ? "" : "i";
|
|
1316
1316
|
}
|
|
1317
1317
|
function f(l, p) {
|
|
1318
1318
|
if (!p) return l;
|
|
1319
|
-
for (var d = /\((?:\?<(.*?)>)?(?!\?)/g,
|
|
1320
|
-
p.push({ name:
|
|
1319
|
+
for (var d = /\((?:\?<(.*?)>)?(?!\?)/g, T = 0, y = d.exec(l.source); y; )
|
|
1320
|
+
p.push({ name: y[1] || T++, prefix: "", suffix: "", modifier: "", pattern: "" }), y = d.exec(l.source);
|
|
1321
1321
|
return l;
|
|
1322
1322
|
}
|
|
1323
1323
|
function _(l, p, d) {
|
|
1324
|
-
var
|
|
1325
|
-
return E(
|
|
1324
|
+
var T = l.map((function(y) {
|
|
1325
|
+
return E(y, p, d).source;
|
|
1326
1326
|
}));
|
|
1327
|
-
return new RegExp("(?:".concat(
|
|
1327
|
+
return new RegExp("(?:".concat(T.join("|"), ")"), a(d));
|
|
1328
1328
|
}
|
|
1329
1329
|
function R(l, p, d) {
|
|
1330
1330
|
return h(c(l, d), p, d);
|
|
1331
1331
|
}
|
|
1332
1332
|
function h(l, p, d) {
|
|
1333
1333
|
d === void 0 && (d = {});
|
|
1334
|
-
for (var
|
|
1334
|
+
for (var T = d.strict, y = T === void 0 ? !1 : T, P = d.start, v = P === void 0 ? !0 : P, O = d.end, b = O === void 0 ? !0 : O, N = d.encode, I = N === void 0 ? function(X) {
|
|
1335
1335
|
return X;
|
|
1336
|
-
} : N, g = d.delimiter, A = g === void 0 ? "/#?" : g, C = d.endsWith, w = C === void 0 ? "" : C,
|
|
1337
|
-
var
|
|
1338
|
-
if (typeof
|
|
1339
|
-
U += r(I(
|
|
1336
|
+
} : N, g = d.delimiter, A = g === void 0 ? "/#?" : g, C = d.endsWith, w = C === void 0 ? "" : C, k = "[".concat(r(w), "]|$"), M = "[".concat(r(A), "]"), U = v ? "^" : "", W = 0, G = l; W < G.length; W++) {
|
|
1337
|
+
var q = G[W];
|
|
1338
|
+
if (typeof q == "string")
|
|
1339
|
+
U += r(I(q));
|
|
1340
1340
|
else {
|
|
1341
|
-
var B = r(I(
|
|
1342
|
-
if (
|
|
1343
|
-
if (p && p.push(
|
|
1344
|
-
if (
|
|
1345
|
-
var S =
|
|
1346
|
-
U += "(?:".concat(B, "((?:").concat(
|
|
1341
|
+
var B = r(I(q.prefix)), m = r(I(q.suffix));
|
|
1342
|
+
if (q.pattern)
|
|
1343
|
+
if (p && p.push(q), B || m)
|
|
1344
|
+
if (q.modifier === "+" || q.modifier === "*") {
|
|
1345
|
+
var S = q.modifier === "*" ? "?" : "";
|
|
1346
|
+
U += "(?:".concat(B, "((?:").concat(q.pattern, ")(?:").concat(m).concat(B, "(?:").concat(q.pattern, "))*)").concat(m, ")").concat(S);
|
|
1347
1347
|
} else
|
|
1348
|
-
U += "(?:".concat(B, "(").concat(
|
|
1348
|
+
U += "(?:".concat(B, "(").concat(q.pattern, ")").concat(m, ")").concat(q.modifier);
|
|
1349
1349
|
else {
|
|
1350
|
-
if (
|
|
1351
|
-
throw new TypeError('Can not repeat "'.concat(
|
|
1352
|
-
U += "(".concat(
|
|
1350
|
+
if (q.modifier === "+" || q.modifier === "*")
|
|
1351
|
+
throw new TypeError('Can not repeat "'.concat(q.name, '" without a prefix and suffix'));
|
|
1352
|
+
U += "(".concat(q.pattern, ")").concat(q.modifier);
|
|
1353
1353
|
}
|
|
1354
1354
|
else
|
|
1355
|
-
U += "(?:".concat(B).concat(m, ")").concat(
|
|
1355
|
+
U += "(?:".concat(B).concat(m, ")").concat(q.modifier);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
if (
|
|
1359
|
-
|
|
1358
|
+
if (b)
|
|
1359
|
+
y || (U += "".concat(M, "?")), U += d.endsWith ? "(?=".concat(k, ")") : "$";
|
|
1360
1360
|
else {
|
|
1361
|
-
var
|
|
1362
|
-
|
|
1361
|
+
var j = l[l.length - 1], x = typeof j == "string" ? M.indexOf(j[j.length - 1]) > -1 : j === void 0;
|
|
1362
|
+
y || (U += "(?:".concat(M, "(?=").concat(k, "))?")), x || (U += "(?=".concat(M, "|").concat(k, ")"));
|
|
1363
1363
|
}
|
|
1364
|
-
return new RegExp(U,
|
|
1364
|
+
return new RegExp(U, a(d));
|
|
1365
1365
|
}
|
|
1366
1366
|
e.tokensToRegexp = h;
|
|
1367
1367
|
function E(l, p, d) {
|
|
@@ -1377,15 +1377,15 @@ function Br() {
|
|
|
1377
1377
|
Object.defineProperty(n, "__esModule", {
|
|
1378
1378
|
value: !0
|
|
1379
1379
|
});
|
|
1380
|
-
function e(r,
|
|
1381
|
-
for (var f in
|
|
1380
|
+
function e(r, a) {
|
|
1381
|
+
for (var f in a) Object.defineProperty(r, f, {
|
|
1382
1382
|
enumerable: !0,
|
|
1383
|
-
get:
|
|
1383
|
+
get: a[f]
|
|
1384
1384
|
});
|
|
1385
1385
|
}
|
|
1386
1386
|
e(n, {
|
|
1387
1387
|
PARAM_SEPARATOR: function() {
|
|
1388
|
-
return
|
|
1388
|
+
return o;
|
|
1389
1389
|
},
|
|
1390
1390
|
hasAdjacentParameterIssues: function() {
|
|
1391
1391
|
return c;
|
|
@@ -1403,34 +1403,34 @@ function Br() {
|
|
|
1403
1403
|
return u;
|
|
1404
1404
|
}
|
|
1405
1405
|
});
|
|
1406
|
-
const
|
|
1406
|
+
const o = "_NEXTSEP_";
|
|
1407
1407
|
function c(r) {
|
|
1408
1408
|
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));
|
|
1409
1409
|
}
|
|
1410
1410
|
function s(r) {
|
|
1411
|
-
let
|
|
1412
|
-
return
|
|
1411
|
+
let a = r;
|
|
1412
|
+
return a = a.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${o}:$2`), a = a.replace(/:([^:/\s)]+)(?=:)/g, `:$1${o}`), a;
|
|
1413
1413
|
}
|
|
1414
1414
|
function i(r) {
|
|
1415
|
-
return r.map((
|
|
1416
|
-
"modifier" in
|
|
1415
|
+
return r.map((a) => typeof a == "object" && a !== null && // Not all token objects have 'modifier' property (e.g., simple text tokens)
|
|
1416
|
+
"modifier" in a && // Only repeating modifiers (* or +) cause the validation error
|
|
1417
1417
|
// Other modifiers like '?' (optional) are fine
|
|
1418
|
-
(
|
|
1419
|
-
"prefix" in
|
|
1418
|
+
(a.modifier === "*" || a.modifier === "+") && // Token objects can have different shapes depending on route pattern
|
|
1419
|
+
"prefix" in a && "suffix" in a && // Both prefix and suffix must be empty strings
|
|
1420
1420
|
// This is what causes the validation error in path-to-regexp
|
|
1421
|
-
|
|
1422
|
-
...
|
|
1421
|
+
a.prefix === "" && a.suffix === "" ? {
|
|
1422
|
+
...a,
|
|
1423
1423
|
prefix: "/"
|
|
1424
|
-
} :
|
|
1424
|
+
} : a);
|
|
1425
1425
|
}
|
|
1426
1426
|
function t(r) {
|
|
1427
|
-
return r.replace(new RegExp(`\\)${
|
|
1427
|
+
return r.replace(new RegExp(`\\)${o}`, "g"), ")");
|
|
1428
1428
|
}
|
|
1429
1429
|
function u(r) {
|
|
1430
|
-
const
|
|
1430
|
+
const a = {};
|
|
1431
1431
|
for (const [f, _] of Object.entries(r))
|
|
1432
|
-
typeof _ == "string" ?
|
|
1433
|
-
return
|
|
1432
|
+
typeof _ == "string" ? a[f] = _.replace(new RegExp(`^${o}`), "") : Array.isArray(_) ? a[f] = _.map((R) => typeof R == "string" ? R.replace(new RegExp(`^${o}`), "") : R) : a[f] = _;
|
|
1433
|
+
return a;
|
|
1434
1434
|
}
|
|
1435
1435
|
})(Ze)), Ze;
|
|
1436
1436
|
}
|
|
@@ -1440,10 +1440,10 @@ function $r() {
|
|
|
1440
1440
|
Object.defineProperty(n, "__esModule", {
|
|
1441
1441
|
value: !0
|
|
1442
1442
|
});
|
|
1443
|
-
function e(r,
|
|
1444
|
-
for (var f in
|
|
1443
|
+
function e(r, a) {
|
|
1444
|
+
for (var f in a) Object.defineProperty(r, f, {
|
|
1445
1445
|
enumerable: !0,
|
|
1446
|
-
get:
|
|
1446
|
+
get: a[f]
|
|
1447
1447
|
});
|
|
1448
1448
|
}
|
|
1449
1449
|
e(n, {
|
|
@@ -1460,33 +1460,33 @@ function $r() {
|
|
|
1460
1460
|
return u;
|
|
1461
1461
|
}
|
|
1462
1462
|
});
|
|
1463
|
-
const
|
|
1464
|
-
function s(r,
|
|
1463
|
+
const o = Yr(), c = Br();
|
|
1464
|
+
function s(r, a, f) {
|
|
1465
1465
|
if (typeof r != "string")
|
|
1466
|
-
return (0,
|
|
1466
|
+
return (0, o.pathToRegexp)(r, a, f);
|
|
1467
1467
|
const _ = (0, c.hasAdjacentParameterIssues)(r), R = _ ? (0, c.normalizeAdjacentParameters)(r) : r;
|
|
1468
1468
|
try {
|
|
1469
|
-
return (0,
|
|
1469
|
+
return (0, o.pathToRegexp)(R, a, f);
|
|
1470
1470
|
} catch (h) {
|
|
1471
1471
|
if (!_)
|
|
1472
1472
|
try {
|
|
1473
1473
|
const E = (0, c.normalizeAdjacentParameters)(r);
|
|
1474
|
-
return (0,
|
|
1474
|
+
return (0, o.pathToRegexp)(E, a, f);
|
|
1475
1475
|
} catch {
|
|
1476
1476
|
throw h;
|
|
1477
1477
|
}
|
|
1478
1478
|
throw h;
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
|
-
function i(r,
|
|
1481
|
+
function i(r, a) {
|
|
1482
1482
|
const f = (0, c.hasAdjacentParameterIssues)(r), _ = f ? (0, c.normalizeAdjacentParameters)(r) : r;
|
|
1483
1483
|
try {
|
|
1484
|
-
const R = (0,
|
|
1484
|
+
const R = (0, o.compile)(_, a);
|
|
1485
1485
|
return f ? (h) => (0, c.stripNormalizedSeparators)(R(h)) : R;
|
|
1486
1486
|
} catch (R) {
|
|
1487
1487
|
if (!f)
|
|
1488
1488
|
try {
|
|
1489
|
-
const h = (0, c.normalizeAdjacentParameters)(r), E = (0,
|
|
1489
|
+
const h = (0, c.normalizeAdjacentParameters)(r), E = (0, o.compile)(h, a);
|
|
1490
1490
|
return (l) => (0, c.stripNormalizedSeparators)(E(l));
|
|
1491
1491
|
} catch {
|
|
1492
1492
|
throw R;
|
|
@@ -1494,8 +1494,8 @@ function $r() {
|
|
|
1494
1494
|
throw R;
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
function t(r,
|
|
1498
|
-
const f = (0,
|
|
1497
|
+
function t(r, a) {
|
|
1498
|
+
const f = (0, o.regexpToFunction)(r, a || []);
|
|
1499
1499
|
return (_) => {
|
|
1500
1500
|
const R = f(_);
|
|
1501
1501
|
return R ? {
|
|
@@ -1505,15 +1505,15 @@ function $r() {
|
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
1507
|
function u(r) {
|
|
1508
|
-
return (
|
|
1509
|
-
const f = r(
|
|
1508
|
+
return (a) => {
|
|
1509
|
+
const f = r(a);
|
|
1510
1510
|
return f ? (0, c.stripParameterSeparators)(f) : !1;
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
1513
|
})(Qe)), Qe;
|
|
1514
1514
|
}
|
|
1515
1515
|
var Vt;
|
|
1516
|
-
function
|
|
1516
|
+
function Mr() {
|
|
1517
1517
|
return Vt || (Vt = 1, (function(n) {
|
|
1518
1518
|
Object.defineProperty(n, "__esModule", {
|
|
1519
1519
|
value: !0
|
|
@@ -1523,12 +1523,12 @@ function xr() {
|
|
|
1523
1523
|
return c;
|
|
1524
1524
|
}
|
|
1525
1525
|
});
|
|
1526
|
-
const e = Oe(),
|
|
1526
|
+
const e = Oe(), o = $r();
|
|
1527
1527
|
function c({ re: s, groups: i }) {
|
|
1528
1528
|
const t = (u) => {
|
|
1529
1529
|
const r = s.exec(u);
|
|
1530
1530
|
if (!r) return !1;
|
|
1531
|
-
const
|
|
1531
|
+
const a = (_) => {
|
|
1532
1532
|
try {
|
|
1533
1533
|
return decodeURIComponent(_);
|
|
1534
1534
|
} catch {
|
|
@@ -1541,11 +1541,11 @@ function xr() {
|
|
|
1541
1541
|
}, f = {};
|
|
1542
1542
|
for (const [_, R] of Object.entries(i)) {
|
|
1543
1543
|
const h = r[R.pos];
|
|
1544
|
-
h !== void 0 && (R.repeat ? f[_] = h.split("/").map((E) =>
|
|
1544
|
+
h !== void 0 && (R.repeat ? f[_] = h.split("/").map((E) => a(E)) : f[_] = a(h));
|
|
1545
1545
|
}
|
|
1546
1546
|
return f;
|
|
1547
1547
|
};
|
|
1548
|
-
return (0,
|
|
1548
|
+
return (0, o.safeRouteMatcher)(t);
|
|
1549
1549
|
}
|
|
1550
1550
|
})(Ke)), Ke;
|
|
1551
1551
|
}
|
|
@@ -1556,9 +1556,9 @@ function Kr() {
|
|
|
1556
1556
|
value: !0
|
|
1557
1557
|
});
|
|
1558
1558
|
function e(ne, we) {
|
|
1559
|
-
for (var
|
|
1559
|
+
for (var Me in we) Object.defineProperty(ne, Me, {
|
|
1560
1560
|
enumerable: !0,
|
|
1561
|
-
get: we[
|
|
1561
|
+
get: we[Me]
|
|
1562
1562
|
});
|
|
1563
1563
|
}
|
|
1564
1564
|
e(n, {
|
|
@@ -1566,7 +1566,7 @@ function Kr() {
|
|
|
1566
1566
|
return h;
|
|
1567
1567
|
},
|
|
1568
1568
|
APP_DIR_ALIAS: function() {
|
|
1569
|
-
return
|
|
1569
|
+
return q;
|
|
1570
1570
|
},
|
|
1571
1571
|
CACHE_ONE_YEAR: function() {
|
|
1572
1572
|
return I;
|
|
@@ -1593,7 +1593,7 @@ function Kr() {
|
|
|
1593
1593
|
return g;
|
|
1594
1594
|
},
|
|
1595
1595
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
1596
|
-
return
|
|
1596
|
+
return M;
|
|
1597
1597
|
},
|
|
1598
1598
|
JSON_CONTENT_TYPE_HEADER: function() {
|
|
1599
1599
|
return s;
|
|
@@ -1614,13 +1614,13 @@ function Kr() {
|
|
|
1614
1614
|
return N;
|
|
1615
1615
|
},
|
|
1616
1616
|
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
1617
|
-
return
|
|
1617
|
+
return T;
|
|
1618
1618
|
},
|
|
1619
1619
|
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
1620
|
-
return
|
|
1620
|
+
return y;
|
|
1621
1621
|
},
|
|
1622
1622
|
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
1623
|
-
return
|
|
1623
|
+
return b;
|
|
1624
1624
|
},
|
|
1625
1625
|
NEXT_CACHE_TAGS_HEADER: function() {
|
|
1626
1626
|
return d;
|
|
@@ -1656,13 +1656,13 @@ function Kr() {
|
|
|
1656
1656
|
return r;
|
|
1657
1657
|
},
|
|
1658
1658
|
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
1659
|
-
return
|
|
1659
|
+
return a;
|
|
1660
1660
|
},
|
|
1661
1661
|
PROXY_FILENAME: function() {
|
|
1662
1662
|
return w;
|
|
1663
1663
|
},
|
|
1664
1664
|
PROXY_LOCATION_REGEXP: function() {
|
|
1665
|
-
return
|
|
1665
|
+
return k;
|
|
1666
1666
|
},
|
|
1667
1667
|
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
1668
1668
|
return L;
|
|
@@ -1683,10 +1683,10 @@ function Kr() {
|
|
|
1683
1683
|
return m;
|
|
1684
1684
|
},
|
|
1685
1685
|
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
1686
|
-
return
|
|
1686
|
+
return j;
|
|
1687
1687
|
},
|
|
1688
1688
|
RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
|
|
1689
|
-
return
|
|
1689
|
+
return x;
|
|
1690
1690
|
},
|
|
1691
1691
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
1692
1692
|
return B;
|
|
@@ -1722,7 +1722,7 @@ function Kr() {
|
|
|
1722
1722
|
return J;
|
|
1723
1723
|
},
|
|
1724
1724
|
TEXT_PLAIN_CONTENT_TYPE_HEADER: function() {
|
|
1725
|
-
return
|
|
1725
|
+
return o;
|
|
1726
1726
|
},
|
|
1727
1727
|
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
1728
1728
|
return Y;
|
|
@@ -1737,7 +1737,7 @@ function Kr() {
|
|
|
1737
1737
|
return Ce;
|
|
1738
1738
|
}
|
|
1739
1739
|
});
|
|
1740
|
-
const
|
|
1740
|
+
const o = "text/plain", c = "text/html; charset=utf-8", s = "application/json; charset=utf-8", i = "nxtP", t = "nxtI", u = "x-matched-path", r = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", f = ".segments", _ = ".segment.rsc", R = ".rsc", h = ".action", E = ".json", l = ".meta", p = ".body", d = "x-next-cache-tags", T = "x-next-revalidated-tags", y = "x-next-revalidate-tag-token", P = "next-resume", v = 128, O = 256, b = 1024, N = "_N_T_", I = 31536e3, g = 4294967294, A = "middleware", C = `(?:src/)?${A}`, w = "proxy", k = `(?:src/)?${w}`, M = "instrumentation", U = "private-next-pages", W = "private-dot-next", G = "private-next-root-dir", q = "private-next-app-dir", B = "private-next-rsc-mod-ref-proxy", m = "private-next-rsc-action-validate", S = "private-next-rsc-server-reference", j = "private-next-rsc-cache-wrapper", x = "private-next-rsc-track-dynamic-import", X = "private-next-rsc-action-encryption", V = "private-next-rsc-action-client-wrapper", L = "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", Q = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", z = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", re = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", J = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", $ = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", ue = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", ce = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Y = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", Ne = "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", se = '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', le = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", fe = [
|
|
1741
1741
|
"app",
|
|
1742
1742
|
"pages",
|
|
1743
1743
|
"components",
|
|
@@ -1859,13 +1859,13 @@ function Qr() {
|
|
|
1859
1859
|
return c;
|
|
1860
1860
|
}
|
|
1861
1861
|
});
|
|
1862
|
-
const e = /[|\\{}()[\]^$+*?.-]/,
|
|
1862
|
+
const e = /[|\\{}()[\]^$+*?.-]/, o = /[|\\{}()[\]^$+*?.-]/g;
|
|
1863
1863
|
function c(s) {
|
|
1864
|
-
return e.test(s) ? s.replace(
|
|
1864
|
+
return e.test(s) ? s.replace(o, "\\$&") : s;
|
|
1865
1865
|
}
|
|
1866
1866
|
})(rt)), rt;
|
|
1867
1867
|
}
|
|
1868
|
-
var nt = {},
|
|
1868
|
+
var nt = {}, at = {}, $t;
|
|
1869
1869
|
function vt() {
|
|
1870
1870
|
return $t || ($t = 1, (function(n) {
|
|
1871
1871
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -1881,9 +1881,9 @@ function vt() {
|
|
|
1881
1881
|
super(`Invariant: ${c.endsWith(".") ? c : c + "."} This is a bug in Next.js.`, s), this.name = "InvariantError";
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
|
-
})(
|
|
1884
|
+
})(at)), at;
|
|
1885
1885
|
}
|
|
1886
|
-
var
|
|
1886
|
+
var ot = {}, Kt;
|
|
1887
1887
|
function Jr() {
|
|
1888
1888
|
return Kt || (Kt = 1, (function(n) {
|
|
1889
1889
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -1891,17 +1891,17 @@ function Jr() {
|
|
|
1891
1891
|
}), Object.defineProperty(n, "parseLoaderTree", {
|
|
1892
1892
|
enumerable: !0,
|
|
1893
1893
|
get: function() {
|
|
1894
|
-
return
|
|
1894
|
+
return o;
|
|
1895
1895
|
}
|
|
1896
1896
|
});
|
|
1897
1897
|
const e = wr();
|
|
1898
|
-
function
|
|
1898
|
+
function o(c) {
|
|
1899
1899
|
const [s, i, t] = c, { layout: u, template: r } = t;
|
|
1900
|
-
let { page:
|
|
1901
|
-
|
|
1902
|
-
const f = u?.[1] || r?.[1] ||
|
|
1900
|
+
let { page: a } = t;
|
|
1901
|
+
a = s === e.DEFAULT_SEGMENT_KEY ? t.defaultPage : a;
|
|
1902
|
+
const f = u?.[1] || r?.[1] || a?.[1];
|
|
1903
1903
|
return {
|
|
1904
|
-
page:
|
|
1904
|
+
page: a,
|
|
1905
1905
|
segment: s,
|
|
1906
1906
|
modules: t,
|
|
1907
1907
|
/* it can be either layout / template / page */
|
|
@@ -1909,7 +1909,7 @@ function Jr() {
|
|
|
1909
1909
|
parallelRoutes: i
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
|
-
})(
|
|
1912
|
+
})(ot)), ot;
|
|
1913
1913
|
}
|
|
1914
1914
|
var it = {}, ut = {}, Qt;
|
|
1915
1915
|
function Zr() {
|
|
@@ -1934,9 +1934,9 @@ function Zr() {
|
|
|
1934
1934
|
return s;
|
|
1935
1935
|
}
|
|
1936
1936
|
});
|
|
1937
|
-
const
|
|
1937
|
+
const o = Se();
|
|
1938
1938
|
function c(t) {
|
|
1939
|
-
const u =
|
|
1939
|
+
const u = o.INTERCEPTION_ROUTE_MARKERS.find((r) => t.startsWith(r));
|
|
1940
1940
|
return u && (t = t.slice(u.length)), t.startsWith("[[...") && t.endsWith("]]") ? {
|
|
1941
1941
|
// TODO-APP: Optional catchall does not currently work with parallel routes,
|
|
1942
1942
|
// so for now aren't handling a potential interception marker.
|
|
@@ -1980,8 +1980,8 @@ function en() {
|
|
|
1980
1980
|
Object.defineProperty(n, "__esModule", {
|
|
1981
1981
|
value: !0
|
|
1982
1982
|
});
|
|
1983
|
-
function e(
|
|
1984
|
-
for (var _ in f) Object.defineProperty(
|
|
1983
|
+
function e(a, f) {
|
|
1984
|
+
for (var _ in f) Object.defineProperty(a, _, {
|
|
1985
1985
|
enumerable: !0,
|
|
1986
1986
|
get: f[_]
|
|
1987
1987
|
});
|
|
@@ -2000,64 +2000,64 @@ function en() {
|
|
|
2000
2000
|
return i;
|
|
2001
2001
|
}
|
|
2002
2002
|
});
|
|
2003
|
-
const
|
|
2004
|
-
function i(
|
|
2005
|
-
if (
|
|
2003
|
+
const o = vt(), c = Zr(), s = Se();
|
|
2004
|
+
function i(a) {
|
|
2005
|
+
if (a === "")
|
|
2006
2006
|
return null;
|
|
2007
|
-
const f = s.INTERCEPTION_ROUTE_MARKERS.find((R) =>
|
|
2007
|
+
const f = s.INTERCEPTION_ROUTE_MARKERS.find((R) => a.startsWith(R)), _ = (0, c.getSegmentParam)(a);
|
|
2008
2008
|
return _ ? {
|
|
2009
2009
|
type: "dynamic",
|
|
2010
|
-
name:
|
|
2010
|
+
name: a,
|
|
2011
2011
|
param: _,
|
|
2012
2012
|
interceptionMarker: f
|
|
2013
|
-
} :
|
|
2013
|
+
} : a.startsWith("(") && a.endsWith(")") ? {
|
|
2014
2014
|
type: "route-group",
|
|
2015
|
-
name:
|
|
2015
|
+
name: a,
|
|
2016
2016
|
interceptionMarker: f
|
|
2017
|
-
} :
|
|
2017
|
+
} : a.startsWith("@") ? {
|
|
2018
2018
|
type: "parallel-route",
|
|
2019
|
-
name:
|
|
2019
|
+
name: a,
|
|
2020
2020
|
interceptionMarker: f
|
|
2021
2021
|
} : {
|
|
2022
2022
|
type: "static",
|
|
2023
|
-
name:
|
|
2023
|
+
name: a,
|
|
2024
2024
|
interceptionMarker: f
|
|
2025
2025
|
};
|
|
2026
2026
|
}
|
|
2027
|
-
function t(
|
|
2028
|
-
return
|
|
2027
|
+
function t(a) {
|
|
2028
|
+
return a.normalized;
|
|
2029
2029
|
}
|
|
2030
|
-
function u(
|
|
2031
|
-
return
|
|
2030
|
+
function u(a) {
|
|
2031
|
+
return a.interceptionMarker !== void 0 && a.interceptingRoute !== void 0 && a.interceptedRoute !== void 0;
|
|
2032
2032
|
}
|
|
2033
|
-
function r(
|
|
2034
|
-
const _ =
|
|
2033
|
+
function r(a, f) {
|
|
2034
|
+
const _ = a.split("/").filter(Boolean), R = [];
|
|
2035
2035
|
let h, E, l;
|
|
2036
2036
|
for (const d of _) {
|
|
2037
|
-
const
|
|
2038
|
-
if (
|
|
2039
|
-
if (f && (
|
|
2040
|
-
throw Object.defineProperty(new
|
|
2037
|
+
const T = i(d);
|
|
2038
|
+
if (T) {
|
|
2039
|
+
if (f && (T.type === "route-group" || T.type === "parallel-route"))
|
|
2040
|
+
throw Object.defineProperty(new o.InvariantError(`${a} is being parsed as a normalized route, but it has a route group or parallel route segment.`), "__NEXT_ERROR_CODE", {
|
|
2041
2041
|
value: "E923",
|
|
2042
2042
|
enumerable: !1,
|
|
2043
2043
|
configurable: !0
|
|
2044
2044
|
});
|
|
2045
|
-
if (R.push(
|
|
2046
|
-
const
|
|
2047
|
-
if (
|
|
2048
|
-
throw Object.defineProperty(new Error(`Invalid interception route: ${
|
|
2045
|
+
if (R.push(T), T.interceptionMarker) {
|
|
2046
|
+
const y = a.split(T.interceptionMarker);
|
|
2047
|
+
if (y.length !== 2)
|
|
2048
|
+
throw Object.defineProperty(new Error(`Invalid interception route: ${a}`), "__NEXT_ERROR_CODE", {
|
|
2049
2049
|
value: "E924",
|
|
2050
2050
|
enumerable: !1,
|
|
2051
2051
|
configurable: !0
|
|
2052
2052
|
});
|
|
2053
|
-
E = f ? r(
|
|
2053
|
+
E = f ? r(y[0], !0) : r(y[0], !1), l = f ? r(y[1], !0) : r(y[1], !1), h = T.interceptionMarker;
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
2057
2057
|
const p = R.filter((d) => d.type === "dynamic");
|
|
2058
2058
|
return {
|
|
2059
2059
|
normalized: f,
|
|
2060
|
-
pathname:
|
|
2060
|
+
pathname: a,
|
|
2061
2061
|
segments: R,
|
|
2062
2062
|
dynamicSegments: p,
|
|
2063
2063
|
interceptionMarker: h,
|
|
@@ -2078,8 +2078,8 @@ function tn() {
|
|
|
2078
2078
|
return e;
|
|
2079
2079
|
}
|
|
2080
2080
|
});
|
|
2081
|
-
function e(
|
|
2082
|
-
switch (
|
|
2081
|
+
function e(o) {
|
|
2082
|
+
switch (o) {
|
|
2083
2083
|
case "catchall-intercepted-(..)(..)":
|
|
2084
2084
|
case "dynamic-intercepted-(..)(..)":
|
|
2085
2085
|
return "(..)(..)";
|
|
@@ -2109,11 +2109,11 @@ function rn() {
|
|
|
2109
2109
|
return s;
|
|
2110
2110
|
}
|
|
2111
2111
|
});
|
|
2112
|
-
const e = vt(),
|
|
2112
|
+
const e = vt(), o = tn();
|
|
2113
2113
|
function c(i, t, u) {
|
|
2114
|
-
return i.type === "dynamic" ? t[i.param.paramName] : (0,
|
|
2114
|
+
return i.type === "dynamic" ? t[i.param.paramName] : (0, o.interceptionPrefixFromParamType)(u) === i.interceptionMarker ? i.name.replace(i.interceptionMarker, "") : i.name;
|
|
2115
2115
|
}
|
|
2116
|
-
function s(i, t, u, r,
|
|
2116
|
+
function s(i, t, u, r, a) {
|
|
2117
2117
|
switch (t) {
|
|
2118
2118
|
case "catchall":
|
|
2119
2119
|
case "optional-catchall":
|
|
@@ -2126,15 +2126,15 @@ function rn() {
|
|
|
2126
2126
|
const R = r.segments[_];
|
|
2127
2127
|
if (R.type === "static") {
|
|
2128
2128
|
let h = R.name;
|
|
2129
|
-
const E = (0,
|
|
2129
|
+
const E = (0, o.interceptionPrefixFromParamType)(t);
|
|
2130
2130
|
E && _ === u && E === R.interceptionMarker && (h = h.replace(R.interceptionMarker, "")), f.push(h);
|
|
2131
2131
|
} else {
|
|
2132
|
-
if (!
|
|
2132
|
+
if (!a.hasOwnProperty(R.param.paramName)) {
|
|
2133
2133
|
if (R.param.paramType === "optional-catchall")
|
|
2134
2134
|
break;
|
|
2135
2135
|
return;
|
|
2136
2136
|
}
|
|
2137
|
-
const h =
|
|
2137
|
+
const h = a[R.param.paramName];
|
|
2138
2138
|
Array.isArray(h) ? f.push(...h) : f.push(h);
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
@@ -2154,7 +2154,7 @@ function rn() {
|
|
|
2154
2154
|
case "dynamic-intercepted-(...)":
|
|
2155
2155
|
if (u < r.segments.length) {
|
|
2156
2156
|
const _ = r.segments[u];
|
|
2157
|
-
return _.type === "dynamic" && !
|
|
2157
|
+
return _.type === "dynamic" && !a.hasOwnProperty(_.param.paramName) ? void 0 : c(_, a, t);
|
|
2158
2158
|
}
|
|
2159
2159
|
return;
|
|
2160
2160
|
}
|
|
@@ -2175,7 +2175,7 @@ function nn() {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
e(n, {
|
|
2177
2177
|
PARAMETER_PATTERN: function() {
|
|
2178
|
-
return
|
|
2178
|
+
return a;
|
|
2179
2179
|
},
|
|
2180
2180
|
getDynamicParam: function() {
|
|
2181
2181
|
return r;
|
|
@@ -2190,7 +2190,7 @@ function nn() {
|
|
|
2190
2190
|
return f;
|
|
2191
2191
|
}
|
|
2192
2192
|
});
|
|
2193
|
-
const
|
|
2193
|
+
const o = vt(), c = Jr(), s = en(), i = rn();
|
|
2194
2194
|
function t(R, h, E) {
|
|
2195
2195
|
let l = R[h];
|
|
2196
2196
|
if (E?.has(h)) {
|
|
@@ -2205,24 +2205,24 @@ function nn() {
|
|
|
2205
2205
|
tree: R,
|
|
2206
2206
|
depth: 0
|
|
2207
2207
|
}
|
|
2208
|
-
],
|
|
2208
|
+
], T = (0, s.parseAppRoute)(E, !0);
|
|
2209
2209
|
for (; d.length > 0; ) {
|
|
2210
|
-
const { tree:
|
|
2211
|
-
if (
|
|
2210
|
+
const { tree: y, depth: P } = d.pop(), { segment: v, parallelRoutes: O } = (0, c.parseLoaderTree)(y), b = (0, s.parseAppRouteSegment)(v);
|
|
2211
|
+
if (b?.type === "dynamic" && !p.hasOwnProperty(b.param.paramName) && // If the param is in the fallback route params, we don't need to
|
|
2212
2212
|
// interpolate it because it's already marked as being unknown.
|
|
2213
|
-
!l?.has(
|
|
2214
|
-
const { paramName: I, paramType: g } =
|
|
2213
|
+
!l?.has(b.param.paramName)) {
|
|
2214
|
+
const { paramName: I, paramType: g } = b.param, A = (0, i.resolveParamValue)(I, g, P, T, p);
|
|
2215
2215
|
if (A !== void 0)
|
|
2216
2216
|
p[I] = A;
|
|
2217
2217
|
else if (g !== "optional-catchall")
|
|
2218
|
-
throw Object.defineProperty(new
|
|
2218
|
+
throw Object.defineProperty(new o.InvariantError(`Could not resolve param value for segment: ${I}`), "__NEXT_ERROR_CODE", {
|
|
2219
2219
|
value: "E932",
|
|
2220
2220
|
enumerable: !1,
|
|
2221
2221
|
configurable: !0
|
|
2222
2222
|
});
|
|
2223
2223
|
}
|
|
2224
2224
|
let N = P;
|
|
2225
|
-
|
|
2225
|
+
b && b.type !== "route-group" && b.type !== "parallel-route" && N++;
|
|
2226
2226
|
for (const I of Object.values(O))
|
|
2227
2227
|
d.push({
|
|
2228
2228
|
tree: I,
|
|
@@ -2245,7 +2245,7 @@ function nn() {
|
|
|
2245
2245
|
E
|
|
2246
2246
|
]
|
|
2247
2247
|
};
|
|
2248
|
-
throw Object.defineProperty(new
|
|
2248
|
+
throw Object.defineProperty(new o.InvariantError(`Missing value for segment key: "${h}" with dynamic param type: ${E}`), "__NEXT_ERROR_CODE", {
|
|
2249
2249
|
value: "E864",
|
|
2250
2250
|
enumerable: !1,
|
|
2251
2251
|
configurable: !0
|
|
@@ -2264,9 +2264,9 @@ function nn() {
|
|
|
2264
2264
|
type: E
|
|
2265
2265
|
};
|
|
2266
2266
|
}
|
|
2267
|
-
const
|
|
2267
|
+
const a = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
|
|
2268
2268
|
function f(R) {
|
|
2269
|
-
const h = R.match(
|
|
2269
|
+
const h = R.match(a);
|
|
2270
2270
|
return _(h ? h[2] : R);
|
|
2271
2271
|
}
|
|
2272
2272
|
function _(R) {
|
|
@@ -2282,7 +2282,7 @@ function nn() {
|
|
|
2282
2282
|
})(nt)), nt;
|
|
2283
2283
|
}
|
|
2284
2284
|
var rr;
|
|
2285
|
-
function
|
|
2285
|
+
function jr() {
|
|
2286
2286
|
return rr || (rr = 1, (function(n) {
|
|
2287
2287
|
Object.defineProperty(n, "__esModule", {
|
|
2288
2288
|
value: !0
|
|
@@ -2304,47 +2304,47 @@ function Mr() {
|
|
|
2304
2304
|
return r;
|
|
2305
2305
|
}
|
|
2306
2306
|
});
|
|
2307
|
-
const
|
|
2307
|
+
const o = Kr(), c = Se(), s = Qr(), i = Nr(), t = nn();
|
|
2308
2308
|
function u(E, l, p) {
|
|
2309
2309
|
const d = {};
|
|
2310
|
-
let
|
|
2311
|
-
const
|
|
2310
|
+
let T = 1;
|
|
2311
|
+
const y = [];
|
|
2312
2312
|
for (const P of (0, i.removeTrailingSlash)(E).slice(1).split("/")) {
|
|
2313
|
-
const v = c.INTERCEPTION_ROUTE_MARKERS.find((
|
|
2313
|
+
const v = c.INTERCEPTION_ROUTE_MARKERS.find((b) => P.startsWith(b)), O = P.match(t.PARAMETER_PATTERN);
|
|
2314
2314
|
if (v && O && O[2]) {
|
|
2315
|
-
const { key:
|
|
2316
|
-
d[
|
|
2317
|
-
pos:
|
|
2315
|
+
const { key: b, optional: N, repeat: I } = (0, t.parseMatchedParameter)(O[2]);
|
|
2316
|
+
d[b] = {
|
|
2317
|
+
pos: T++,
|
|
2318
2318
|
repeat: I,
|
|
2319
2319
|
optional: N
|
|
2320
|
-
},
|
|
2320
|
+
}, y.push(`/${(0, s.escapeStringRegexp)(v)}([^/]+?)`);
|
|
2321
2321
|
} else if (O && O[2]) {
|
|
2322
|
-
const { key:
|
|
2323
|
-
d[
|
|
2324
|
-
pos:
|
|
2322
|
+
const { key: b, repeat: N, optional: I } = (0, t.parseMatchedParameter)(O[2]);
|
|
2323
|
+
d[b] = {
|
|
2324
|
+
pos: T++,
|
|
2325
2325
|
repeat: N,
|
|
2326
2326
|
optional: I
|
|
2327
|
-
}, p && O[1] &&
|
|
2327
|
+
}, p && O[1] && y.push(`/${(0, s.escapeStringRegexp)(O[1])}`);
|
|
2328
2328
|
let g = N ? I ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
2329
|
-
p && O[1] && (g = g.substring(1)),
|
|
2329
|
+
p && O[1] && (g = g.substring(1)), y.push(g);
|
|
2330
2330
|
} else
|
|
2331
|
-
|
|
2332
|
-
l && O && O[3] &&
|
|
2331
|
+
y.push(`/${(0, s.escapeStringRegexp)(P)}`);
|
|
2332
|
+
l && O && O[3] && y.push((0, s.escapeStringRegexp)(O[3]));
|
|
2333
2333
|
}
|
|
2334
2334
|
return {
|
|
2335
|
-
parameterizedRoute:
|
|
2335
|
+
parameterizedRoute: y.join(""),
|
|
2336
2336
|
groups: d
|
|
2337
2337
|
};
|
|
2338
2338
|
}
|
|
2339
2339
|
function r(E, { includeSuffix: l = !1, includePrefix: p = !1, excludeOptionalTrailingSlash: d = !1 } = {}) {
|
|
2340
|
-
const { parameterizedRoute:
|
|
2341
|
-
let P =
|
|
2340
|
+
const { parameterizedRoute: T, groups: y } = u(E, l, p);
|
|
2341
|
+
let P = T;
|
|
2342
2342
|
return d || (P += "(?:/)?"), {
|
|
2343
2343
|
re: new RegExp(`^${P}$`),
|
|
2344
|
-
groups:
|
|
2344
|
+
groups: y
|
|
2345
2345
|
};
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function a() {
|
|
2348
2348
|
let E = 0;
|
|
2349
2349
|
return () => {
|
|
2350
2350
|
let l = "", p = ++E;
|
|
@@ -2353,63 +2353,63 @@ function Mr() {
|
|
|
2353
2353
|
return l;
|
|
2354
2354
|
};
|
|
2355
2355
|
}
|
|
2356
|
-
function f({ interceptionMarker: E, getSafeRouteKey: l, segment: p, routeKeys: d, keyPrefix:
|
|
2356
|
+
function f({ interceptionMarker: E, getSafeRouteKey: l, segment: p, routeKeys: d, keyPrefix: T, backreferenceDuplicateKeys: y }) {
|
|
2357
2357
|
const { key: P, optional: v, repeat: O } = (0, t.parseMatchedParameter)(p);
|
|
2358
|
-
let
|
|
2359
|
-
|
|
2358
|
+
let b = P.replace(/\W/g, "");
|
|
2359
|
+
T && (b = `${T}${b}`);
|
|
2360
2360
|
let N = !1;
|
|
2361
|
-
(
|
|
2362
|
-
const I =
|
|
2363
|
-
|
|
2361
|
+
(b.length === 0 || b.length > 30) && (N = !0), isNaN(parseInt(b.slice(0, 1))) || (N = !0), N && (b = l());
|
|
2362
|
+
const I = b in d;
|
|
2363
|
+
T ? d[b] = `${T}${P}` : d[b] = P;
|
|
2364
2364
|
const g = E ? (0, s.escapeStringRegexp)(E) : "";
|
|
2365
2365
|
let A;
|
|
2366
|
-
return I &&
|
|
2366
|
+
return I && y ? A = `\\k<${b}>` : O ? A = `(?<${b}>.+?)` : A = `(?<${b}>[^/]+?)`, {
|
|
2367
2367
|
key: P,
|
|
2368
2368
|
pattern: v ? `(?:/${g}${A})?` : `/${g}${A}`,
|
|
2369
|
-
cleanedKey:
|
|
2369
|
+
cleanedKey: b,
|
|
2370
2370
|
optional: v,
|
|
2371
2371
|
repeat: O
|
|
2372
2372
|
};
|
|
2373
2373
|
}
|
|
2374
|
-
function _(E, l, p, d,
|
|
2374
|
+
function _(E, l, p, d, T, y = {
|
|
2375
2375
|
names: {},
|
|
2376
2376
|
intercepted: {}
|
|
2377
2377
|
}) {
|
|
2378
|
-
const P =
|
|
2379
|
-
|
|
2378
|
+
const P = a(), v = {}, O = [], b = [];
|
|
2379
|
+
y = structuredClone(y);
|
|
2380
2380
|
for (const N of (0, i.removeTrailingSlash)(E).slice(1).split("/")) {
|
|
2381
2381
|
const I = c.INTERCEPTION_ROUTE_MARKERS.some((w) => N.startsWith(w)), g = N.match(t.PARAMETER_PATTERN), A = I ? g?.[1] : void 0;
|
|
2382
2382
|
let C;
|
|
2383
|
-
if (A && g?.[2] ? (C = l ?
|
|
2384
|
-
const { key: w, pattern:
|
|
2383
|
+
if (A && g?.[2] ? (C = l ? o.NEXT_INTERCEPTION_MARKER_PREFIX : void 0, y.intercepted[g[2]] = A) : g?.[2] && y.intercepted[g[2]] ? C = l ? o.NEXT_INTERCEPTION_MARKER_PREFIX : void 0 : C = l ? o.NEXT_QUERY_PARAM_PREFIX : void 0, A && g && g[2]) {
|
|
2384
|
+
const { key: w, pattern: k, cleanedKey: M, repeat: U, optional: W } = f({
|
|
2385
2385
|
getSafeRouteKey: P,
|
|
2386
2386
|
interceptionMarker: A,
|
|
2387
2387
|
segment: g[2],
|
|
2388
2388
|
routeKeys: v,
|
|
2389
2389
|
keyPrefix: C,
|
|
2390
|
-
backreferenceDuplicateKeys:
|
|
2390
|
+
backreferenceDuplicateKeys: T
|
|
2391
2391
|
});
|
|
2392
|
-
O.push(
|
|
2392
|
+
O.push(k), b.push(`/${g[1]}:${y.names[w] ?? M}${U ? W ? "*" : "+" : ""}`), y.names[w] ??= M;
|
|
2393
2393
|
} else if (g && g[2]) {
|
|
2394
|
-
d && g[1] && (O.push(`/${(0, s.escapeStringRegexp)(g[1])}`),
|
|
2395
|
-
const { key: w, pattern:
|
|
2394
|
+
d && g[1] && (O.push(`/${(0, s.escapeStringRegexp)(g[1])}`), b.push(`/${g[1]}`));
|
|
2395
|
+
const { key: w, pattern: k, cleanedKey: M, repeat: U, optional: W } = f({
|
|
2396
2396
|
getSafeRouteKey: P,
|
|
2397
2397
|
segment: g[2],
|
|
2398
2398
|
routeKeys: v,
|
|
2399
2399
|
keyPrefix: C,
|
|
2400
|
-
backreferenceDuplicateKeys:
|
|
2400
|
+
backreferenceDuplicateKeys: T
|
|
2401
2401
|
});
|
|
2402
|
-
let G =
|
|
2403
|
-
d && g[1] && (G = G.substring(1)), O.push(G),
|
|
2402
|
+
let G = k;
|
|
2403
|
+
d && g[1] && (G = G.substring(1)), O.push(G), b.push(`/:${y.names[w] ?? M}${U ? W ? "*" : "+" : ""}`), y.names[w] ??= M;
|
|
2404
2404
|
} else
|
|
2405
|
-
O.push(`/${(0, s.escapeStringRegexp)(N)}`),
|
|
2406
|
-
p && g && g[3] && (O.push((0, s.escapeStringRegexp)(g[3])),
|
|
2405
|
+
O.push(`/${(0, s.escapeStringRegexp)(N)}`), b.push(`/${N}`);
|
|
2406
|
+
p && g && g[3] && (O.push((0, s.escapeStringRegexp)(g[3])), b.push(g[3]));
|
|
2407
2407
|
}
|
|
2408
2408
|
return {
|
|
2409
2409
|
namedParameterizedRoute: O.join(""),
|
|
2410
2410
|
routeKeys: v,
|
|
2411
|
-
pathToRegexpPattern:
|
|
2412
|
-
reference:
|
|
2411
|
+
pathToRegexpPattern: b.join(""),
|
|
2412
|
+
reference: y
|
|
2413
2413
|
};
|
|
2414
2414
|
}
|
|
2415
2415
|
function R(E, l) {
|
|
@@ -2429,15 +2429,15 @@ function Mr() {
|
|
|
2429
2429
|
return {
|
|
2430
2430
|
namedRegex: `^/${d ? ".*" : ""}$`
|
|
2431
2431
|
};
|
|
2432
|
-
const { namedParameterizedRoute:
|
|
2432
|
+
const { namedParameterizedRoute: T } = _(E, !1, !1, !1, !1, void 0);
|
|
2433
2433
|
return {
|
|
2434
|
-
namedRegex: `^${
|
|
2434
|
+
namedRegex: `^${T}${d ? "(?:(/.*)?)" : ""}$`
|
|
2435
2435
|
};
|
|
2436
2436
|
}
|
|
2437
2437
|
})(et)), et;
|
|
2438
2438
|
}
|
|
2439
2439
|
var nr;
|
|
2440
|
-
function
|
|
2440
|
+
function an() {
|
|
2441
2441
|
return nr || (nr = 1, (function(n) {
|
|
2442
2442
|
Object.defineProperty(n, "__esModule", {
|
|
2443
2443
|
value: !0
|
|
@@ -2447,20 +2447,20 @@ function on() {
|
|
|
2447
2447
|
return c;
|
|
2448
2448
|
}
|
|
2449
2449
|
});
|
|
2450
|
-
const e =
|
|
2450
|
+
const e = Mr(), o = jr();
|
|
2451
2451
|
function c(s, i, t) {
|
|
2452
2452
|
let u = "";
|
|
2453
|
-
const r = (0,
|
|
2453
|
+
const r = (0, o.getRouteRegex)(s), a = r.groups, f = (
|
|
2454
2454
|
// Try to match the dynamic route against the asPath
|
|
2455
2455
|
(i !== s ? (0, e.getRouteMatcher)(r)(i) : "") || // Fall back to reading the values from the href
|
|
2456
2456
|
// TODO: should this take priority; also need to change in the router.
|
|
2457
2457
|
t
|
|
2458
2458
|
);
|
|
2459
2459
|
u = s;
|
|
2460
|
-
const _ = Object.keys(
|
|
2460
|
+
const _ = Object.keys(a);
|
|
2461
2461
|
return _.every((R) => {
|
|
2462
2462
|
let h = f[R] || "";
|
|
2463
|
-
const { repeat: E, optional: l } =
|
|
2463
|
+
const { repeat: E, optional: l } = a[R];
|
|
2464
2464
|
let p = `[${E ? "..." : ""}${R}]`;
|
|
2465
2465
|
return l && (p = `${h ? "" : "/"}[${p}]`), E && !Array.isArray(h) && (h = [
|
|
2466
2466
|
h
|
|
@@ -2479,9 +2479,9 @@ function on() {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
})($e)), $e;
|
|
2481
2481
|
}
|
|
2482
|
-
var
|
|
2483
|
-
function
|
|
2484
|
-
return
|
|
2482
|
+
var ar;
|
|
2483
|
+
function on() {
|
|
2484
|
+
return ar || (ar = 1, (function(n, e) {
|
|
2485
2485
|
Object.defineProperty(e, "__esModule", {
|
|
2486
2486
|
value: !0
|
|
2487
2487
|
}), Object.defineProperty(e, "resolveHref", {
|
|
@@ -2490,14 +2490,14 @@ function an() {
|
|
|
2490
2490
|
return R;
|
|
2491
2491
|
}
|
|
2492
2492
|
});
|
|
2493
|
-
const
|
|
2493
|
+
const o = Ar(), c = Sr(), s = Xr(), i = Oe(), t = Ae(), u = Cr(), r = Vr(), a = an(), f = jr(), _ = Mr();
|
|
2494
2494
|
function R(h, E, l) {
|
|
2495
2495
|
let p, d = typeof E == "string" ? E : (0, c.formatWithValidation)(E);
|
|
2496
|
-
const
|
|
2497
|
-
if ((
|
|
2496
|
+
const T = d.match(/^[a-z][a-z0-9+.-]*:\/\//i), y = T ? d.slice(T[0].length) : d;
|
|
2497
|
+
if ((y.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
|
|
2498
2498
|
console.error(`Invalid href '${d}' passed to next/router in page: '${h.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
|
|
2499
|
-
const v = (0, i.normalizeRepeatedSlashes)(
|
|
2500
|
-
d = (
|
|
2499
|
+
const v = (0, i.normalizeRepeatedSlashes)(y);
|
|
2500
|
+
d = (T ? T[0] : "") + v;
|
|
2501
2501
|
}
|
|
2502
2502
|
if (!(0, u.isLocalURL)(d))
|
|
2503
2503
|
return l ? [
|
|
@@ -2519,18 +2519,18 @@ function an() {
|
|
|
2519
2519
|
v.pathname = (0, t.normalizePathTrailingSlash)(v.pathname);
|
|
2520
2520
|
let O = "";
|
|
2521
2521
|
if ((0, r.isDynamicRoute)(v.pathname) && v.searchParams && l) {
|
|
2522
|
-
const N = (0,
|
|
2522
|
+
const N = (0, o.searchParamsToUrlQuery)(v.searchParams), { result: I, params: g } = (0, a.interpolateAs)(v.pathname, v.pathname, N);
|
|
2523
2523
|
I && (O = (0, c.formatWithValidation)({
|
|
2524
2524
|
pathname: I,
|
|
2525
2525
|
hash: v.hash,
|
|
2526
2526
|
query: (0, s.omit)(N, g)
|
|
2527
2527
|
}));
|
|
2528
2528
|
}
|
|
2529
|
-
const
|
|
2529
|
+
const b = v.origin === p.origin ? v.href.slice(v.origin.length) : v.href;
|
|
2530
2530
|
return l ? [
|
|
2531
|
-
|
|
2532
|
-
O ||
|
|
2533
|
-
] :
|
|
2531
|
+
b,
|
|
2532
|
+
O || b
|
|
2533
|
+
] : b;
|
|
2534
2534
|
} catch {
|
|
2535
2535
|
return l ? [
|
|
2536
2536
|
d
|
|
@@ -2540,19 +2540,19 @@ function an() {
|
|
|
2540
2540
|
(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), n.exports = e.default);
|
|
2541
2541
|
})(_e, _e.exports)), _e.exports;
|
|
2542
2542
|
}
|
|
2543
|
-
var Ee = { exports: {} }, lt = {}, ft = {},
|
|
2544
|
-
function
|
|
2545
|
-
return
|
|
2543
|
+
var Ee = { exports: {} }, lt = {}, ft = {}, or;
|
|
2544
|
+
function xr() {
|
|
2545
|
+
return or || (or = 1, (function(n) {
|
|
2546
2546
|
Object.defineProperty(n, "__esModule", {
|
|
2547
2547
|
value: !0
|
|
2548
2548
|
}), Object.defineProperty(n, "addPathPrefix", {
|
|
2549
2549
|
enumerable: !0,
|
|
2550
2550
|
get: function() {
|
|
2551
|
-
return
|
|
2551
|
+
return o;
|
|
2552
2552
|
}
|
|
2553
2553
|
});
|
|
2554
2554
|
const e = gt();
|
|
2555
|
-
function
|
|
2555
|
+
function o(c, s) {
|
|
2556
2556
|
if (!c.startsWith("/") || !s)
|
|
2557
2557
|
return c;
|
|
2558
2558
|
const { pathname: i, query: t, hash: u } = (0, e.parsePath)(c);
|
|
@@ -2571,11 +2571,11 @@ function un() {
|
|
|
2571
2571
|
return c;
|
|
2572
2572
|
}
|
|
2573
2573
|
});
|
|
2574
|
-
const e =
|
|
2574
|
+
const e = xr(), o = Ir();
|
|
2575
2575
|
function c(s, i, t, u) {
|
|
2576
2576
|
if (!i || i === t) return s;
|
|
2577
2577
|
const r = s.toLowerCase();
|
|
2578
|
-
return !u && ((0,
|
|
2578
|
+
return !u && ((0, o.pathHasPrefix)(r, "/api") || (0, o.pathHasPrefix)(r, `/${i.toLowerCase()}`)) ? s : (0, e.addPathPrefix)(s, `/${i}`);
|
|
2579
2579
|
}
|
|
2580
2580
|
})(lt)), lt;
|
|
2581
2581
|
}
|
|
@@ -2590,7 +2590,7 @@ function cn() {
|
|
|
2590
2590
|
return c;
|
|
2591
2591
|
}
|
|
2592
2592
|
});
|
|
2593
|
-
const
|
|
2593
|
+
const o = Ae(), c = (s, ...i) => process.env.__NEXT_I18N_SUPPORT ? (0, o.normalizePathTrailingSlash)(un().addLocale(s, ...i)) : s;
|
|
2594
2594
|
(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), n.exports = e.default);
|
|
2595
2595
|
})(Ee, Ee.exports)), Ee.exports;
|
|
2596
2596
|
}
|
|
@@ -2624,13 +2624,13 @@ function fn() {
|
|
|
2624
2624
|
Object.defineProperty(e, "__esModule", {
|
|
2625
2625
|
value: !0
|
|
2626
2626
|
});
|
|
2627
|
-
function
|
|
2627
|
+
function o(i, t) {
|
|
2628
2628
|
for (var u in t) Object.defineProperty(i, u, {
|
|
2629
2629
|
enumerable: !0,
|
|
2630
2630
|
get: t[u]
|
|
2631
2631
|
});
|
|
2632
2632
|
}
|
|
2633
|
-
|
|
2633
|
+
o(e, {
|
|
2634
2634
|
cancelIdleCallback: function() {
|
|
2635
2635
|
return s;
|
|
2636
2636
|
},
|
|
@@ -2662,10 +2662,10 @@ function dn() {
|
|
|
2662
2662
|
}), Object.defineProperty(e, "useIntersection", {
|
|
2663
2663
|
enumerable: !0,
|
|
2664
2664
|
get: function() {
|
|
2665
|
-
return
|
|
2665
|
+
return a;
|
|
2666
2666
|
}
|
|
2667
2667
|
});
|
|
2668
|
-
const
|
|
2668
|
+
const o = ie, c = fn(), s = typeof IntersectionObserver == "function", i = /* @__PURE__ */ new Map(), t = [];
|
|
2669
2669
|
function u(f) {
|
|
2670
2670
|
const _ = {
|
|
2671
2671
|
root: f.root || null,
|
|
@@ -2676,8 +2676,8 @@ function dn() {
|
|
|
2676
2676
|
return h;
|
|
2677
2677
|
const E = /* @__PURE__ */ new Map(), l = new IntersectionObserver((p) => {
|
|
2678
2678
|
p.forEach((d) => {
|
|
2679
|
-
const
|
|
2680
|
-
|
|
2679
|
+
const T = E.get(d.target), y = d.isIntersecting || d.intersectionRatio > 0;
|
|
2680
|
+
T && y && T(y);
|
|
2681
2681
|
});
|
|
2682
2682
|
}, f);
|
|
2683
2683
|
return h = {
|
|
@@ -2691,27 +2691,27 @@ function dn() {
|
|
|
2691
2691
|
return l.set(f, _), E.observe(f), function() {
|
|
2692
2692
|
if (l.delete(f), E.unobserve(f), l.size === 0) {
|
|
2693
2693
|
E.disconnect(), i.delete(h);
|
|
2694
|
-
const d = t.findIndex((
|
|
2694
|
+
const d = t.findIndex((T) => T.root === h.root && T.margin === h.margin);
|
|
2695
2695
|
d > -1 && t.splice(d, 1);
|
|
2696
2696
|
}
|
|
2697
2697
|
};
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2700
|
-
const h = R || !s, [E, l] = (0,
|
|
2701
|
-
p.current =
|
|
2699
|
+
function a({ rootRef: f, rootMargin: _, disabled: R }) {
|
|
2700
|
+
const h = R || !s, [E, l] = (0, o.useState)(!1), p = (0, o.useRef)(null), d = (0, o.useCallback)((y) => {
|
|
2701
|
+
p.current = y;
|
|
2702
2702
|
}, []);
|
|
2703
|
-
(0,
|
|
2703
|
+
(0, o.useEffect)(() => {
|
|
2704
2704
|
if (s) {
|
|
2705
2705
|
if (h || E) return;
|
|
2706
|
-
const
|
|
2707
|
-
if (
|
|
2708
|
-
return r(
|
|
2706
|
+
const y = p.current;
|
|
2707
|
+
if (y && y.tagName)
|
|
2708
|
+
return r(y, (v) => v && l(v), {
|
|
2709
2709
|
root: f?.current,
|
|
2710
2710
|
rootMargin: _
|
|
2711
2711
|
});
|
|
2712
2712
|
} else if (!E) {
|
|
2713
|
-
const
|
|
2714
|
-
return () => (0, c.cancelIdleCallback)(
|
|
2713
|
+
const y = (0, c.requestIdleCallback)(() => l(!0));
|
|
2714
|
+
return () => (0, c.cancelIdleCallback)(y);
|
|
2715
2715
|
}
|
|
2716
2716
|
}, [
|
|
2717
2717
|
h,
|
|
@@ -2720,13 +2720,13 @@ function dn() {
|
|
|
2720
2720
|
E,
|
|
2721
2721
|
p.current
|
|
2722
2722
|
]);
|
|
2723
|
-
const
|
|
2723
|
+
const T = (0, o.useCallback)(() => {
|
|
2724
2724
|
l(!1);
|
|
2725
2725
|
}, []);
|
|
2726
2726
|
return [
|
|
2727
2727
|
d,
|
|
2728
2728
|
E,
|
|
2729
|
-
|
|
2729
|
+
T
|
|
2730
2730
|
];
|
|
2731
2731
|
}
|
|
2732
2732
|
(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), n.exports = e.default);
|
|
@@ -2740,11 +2740,11 @@ function pn() {
|
|
|
2740
2740
|
}), Object.defineProperty(n, "normalizeLocalePath", {
|
|
2741
2741
|
enumerable: !0,
|
|
2742
2742
|
get: function() {
|
|
2743
|
-
return
|
|
2743
|
+
return o;
|
|
2744
2744
|
}
|
|
2745
2745
|
});
|
|
2746
2746
|
const e = /* @__PURE__ */ new WeakMap();
|
|
2747
|
-
function
|
|
2747
|
+
function o(c, s) {
|
|
2748
2748
|
if (!s) return {
|
|
2749
2749
|
pathname: c
|
|
2750
2750
|
};
|
|
@@ -2755,10 +2755,10 @@ function pn() {
|
|
|
2755
2755
|
if (!u[1]) return {
|
|
2756
2756
|
pathname: c
|
|
2757
2757
|
};
|
|
2758
|
-
const r = u[1].toLowerCase(),
|
|
2759
|
-
return
|
|
2758
|
+
const r = u[1].toLowerCase(), a = i.indexOf(r);
|
|
2759
|
+
return a < 0 ? {
|
|
2760
2760
|
pathname: c
|
|
2761
|
-
} : (t = s[
|
|
2761
|
+
} : (t = s[a], c = c.slice(t.length + 1) || "/", {
|
|
2762
2762
|
pathname: c,
|
|
2763
2763
|
detectedLocale: t
|
|
2764
2764
|
});
|
|
@@ -2773,17 +2773,17 @@ function _n() {
|
|
|
2773
2773
|
}), Object.defineProperty(e, "normalizeLocalePath", {
|
|
2774
2774
|
enumerable: !0,
|
|
2775
2775
|
get: function() {
|
|
2776
|
-
return
|
|
2776
|
+
return o;
|
|
2777
2777
|
}
|
|
2778
2778
|
});
|
|
2779
|
-
const
|
|
2779
|
+
const o = (c, s) => process.env.__NEXT_I18N_SUPPORT ? pn().normalizeLocalePath(c, s) : {
|
|
2780
2780
|
pathname: c,
|
|
2781
2781
|
detectedLocale: void 0
|
|
2782
2782
|
};
|
|
2783
2783
|
(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), n.exports = e.default);
|
|
2784
2784
|
})(Pe, Pe.exports)), Pe.exports;
|
|
2785
2785
|
}
|
|
2786
|
-
var
|
|
2786
|
+
var Te = { exports: {} }, ht = {}, _r;
|
|
2787
2787
|
function hn() {
|
|
2788
2788
|
return _r || (_r = 1, (function(n) {
|
|
2789
2789
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -2794,10 +2794,10 @@ function hn() {
|
|
|
2794
2794
|
return e;
|
|
2795
2795
|
}
|
|
2796
2796
|
});
|
|
2797
|
-
function e(
|
|
2798
|
-
if (
|
|
2797
|
+
function e(o, c, s) {
|
|
2798
|
+
if (o) {
|
|
2799
2799
|
s && (s = s.toLowerCase());
|
|
2800
|
-
for (const i of
|
|
2800
|
+
for (const i of o) {
|
|
2801
2801
|
const t = i.domain?.split(":", 1)[0].toLowerCase();
|
|
2802
2802
|
if (c === t || s === i.defaultLocale.toLowerCase() || i.locales?.some((u) => u.toLowerCase() === s))
|
|
2803
2803
|
return i;
|
|
@@ -2814,15 +2814,15 @@ function mn() {
|
|
|
2814
2814
|
}), Object.defineProperty(e, "detectDomainLocale", {
|
|
2815
2815
|
enumerable: !0,
|
|
2816
2816
|
get: function() {
|
|
2817
|
-
return
|
|
2817
|
+
return o;
|
|
2818
2818
|
}
|
|
2819
2819
|
});
|
|
2820
|
-
const
|
|
2820
|
+
const o = (...c) => {
|
|
2821
2821
|
if (process.env.__NEXT_I18N_SUPPORT)
|
|
2822
2822
|
return hn().detectDomainLocale(...c);
|
|
2823
2823
|
};
|
|
2824
2824
|
(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), n.exports = e.default);
|
|
2825
|
-
})(
|
|
2825
|
+
})(Te, Te.exports)), Te.exports;
|
|
2826
2826
|
}
|
|
2827
2827
|
var mr;
|
|
2828
2828
|
function En() {
|
|
@@ -2835,13 +2835,13 @@ function En() {
|
|
|
2835
2835
|
return s;
|
|
2836
2836
|
}
|
|
2837
2837
|
});
|
|
2838
|
-
const
|
|
2838
|
+
const o = Ae(), c = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2839
2839
|
function s(i, t, u, r) {
|
|
2840
2840
|
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
2841
|
-
const
|
|
2841
|
+
const a = _n().normalizeLocalePath, f = mn().detectDomainLocale, _ = t || a(i, u).detectedLocale, R = f(r, void 0, _);
|
|
2842
2842
|
if (R) {
|
|
2843
2843
|
const h = `http${R.http ? "" : "s"}://`, E = _ === R.defaultLocale ? "" : `/${_}`;
|
|
2844
|
-
return `${h}${R.domain}${(0,
|
|
2844
|
+
return `${h}${R.domain}${(0, o.normalizePathTrailingSlash)(`${c}${E}${i}`)}`;
|
|
2845
2845
|
}
|
|
2846
2846
|
return !1;
|
|
2847
2847
|
} else
|
|
@@ -2850,7 +2850,7 @@ function En() {
|
|
|
2850
2850
|
(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), n.exports = e.default);
|
|
2851
2851
|
})(ve, ve.exports)), ve.exports;
|
|
2852
2852
|
}
|
|
2853
|
-
var
|
|
2853
|
+
var be = { exports: {} }, Er;
|
|
2854
2854
|
function Rn() {
|
|
2855
2855
|
return Er || (Er = 1, (function(n, e) {
|
|
2856
2856
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -2861,14 +2861,14 @@ function Rn() {
|
|
|
2861
2861
|
return i;
|
|
2862
2862
|
}
|
|
2863
2863
|
});
|
|
2864
|
-
const
|
|
2864
|
+
const o = xr(), c = Ae(), s = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2865
2865
|
function i(t, u) {
|
|
2866
|
-
return (0, c.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !u ? t : (0,
|
|
2866
|
+
return (0, c.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !u ? t : (0, o.addPathPrefix)(t, s));
|
|
2867
2867
|
}
|
|
2868
2868
|
(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), n.exports = e.default);
|
|
2869
|
-
})(
|
|
2869
|
+
})(be, be.exports)), be.exports;
|
|
2870
2870
|
}
|
|
2871
|
-
var
|
|
2871
|
+
var ye = { exports: {} }, Rr;
|
|
2872
2872
|
function gn() {
|
|
2873
2873
|
return Rr || (Rr = 1, (function(n, e) {
|
|
2874
2874
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -2879,17 +2879,17 @@ function gn() {
|
|
|
2879
2879
|
return c;
|
|
2880
2880
|
}
|
|
2881
2881
|
});
|
|
2882
|
-
const
|
|
2882
|
+
const o = ie;
|
|
2883
2883
|
function c(i, t) {
|
|
2884
|
-
const u = (0,
|
|
2885
|
-
return (0,
|
|
2886
|
-
if (
|
|
2884
|
+
const u = (0, o.useRef)(null), r = (0, o.useRef)(null);
|
|
2885
|
+
return (0, o.useCallback)((a) => {
|
|
2886
|
+
if (a === null) {
|
|
2887
2887
|
const f = u.current;
|
|
2888
2888
|
f && (u.current = null, f());
|
|
2889
2889
|
const _ = r.current;
|
|
2890
2890
|
_ && (r.current = null, _());
|
|
2891
2891
|
} else
|
|
2892
|
-
i && (u.current = s(i,
|
|
2892
|
+
i && (u.current = s(i, a)), t && (r.current = s(t, a));
|
|
2893
2893
|
}, [
|
|
2894
2894
|
i,
|
|
2895
2895
|
t
|
|
@@ -2905,7 +2905,7 @@ function gn() {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
}
|
|
2907
2907
|
(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), n.exports = e.default);
|
|
2908
|
-
})(
|
|
2908
|
+
})(ye, ye.exports)), ye.exports;
|
|
2909
2909
|
}
|
|
2910
2910
|
var mt = {}, gr;
|
|
2911
2911
|
function vn() {
|
|
@@ -2918,12 +2918,12 @@ function vn() {
|
|
|
2918
2918
|
return e;
|
|
2919
2919
|
}
|
|
2920
2920
|
});
|
|
2921
|
-
let e = (
|
|
2921
|
+
let e = (o) => {
|
|
2922
2922
|
};
|
|
2923
2923
|
if (process.env.NODE_ENV !== "production") {
|
|
2924
|
-
const
|
|
2924
|
+
const o = /* @__PURE__ */ new Set();
|
|
2925
2925
|
e = (c) => {
|
|
2926
|
-
|
|
2926
|
+
o.has(c) || console.error(c), o.add(c);
|
|
2927
2927
|
};
|
|
2928
2928
|
}
|
|
2929
2929
|
})(mt)), mt;
|
|
@@ -2935,13 +2935,13 @@ function Pn() {
|
|
|
2935
2935
|
Object.defineProperty(e, "__esModule", {
|
|
2936
2936
|
value: !0
|
|
2937
2937
|
});
|
|
2938
|
-
function
|
|
2938
|
+
function o(g, A) {
|
|
2939
2939
|
for (var C in A) Object.defineProperty(g, C, {
|
|
2940
2940
|
enumerable: !0,
|
|
2941
2941
|
get: A[C]
|
|
2942
2942
|
});
|
|
2943
2943
|
}
|
|
2944
|
-
|
|
2944
|
+
o(e, {
|
|
2945
2945
|
default: function() {
|
|
2946
2946
|
return I;
|
|
2947
2947
|
},
|
|
@@ -2949,53 +2949,53 @@ function Pn() {
|
|
|
2949
2949
|
return N;
|
|
2950
2950
|
}
|
|
2951
2951
|
});
|
|
2952
|
-
const c = /* @__PURE__ */ Or(), s =
|
|
2953
|
-
function
|
|
2952
|
+
const c = /* @__PURE__ */ Or(), s = Tr(), i = /* @__PURE__ */ c._(ie), t = on(), u = Cr(), r = Sr(), a = Oe(), f = cn(), _ = ln(), R = dn(), h = En(), E = Rn(), l = gn(), p = vn(), d = /* @__PURE__ */ new Set();
|
|
2953
|
+
function T(g, A, C, w) {
|
|
2954
2954
|
if (!(typeof window > "u") && (0, u.isLocalURL)(A)) {
|
|
2955
2955
|
if (!w.bypassPrefetchedCheck) {
|
|
2956
|
-
const
|
|
2956
|
+
const k = (
|
|
2957
2957
|
// Let the link's locale prop override the default router locale.
|
|
2958
2958
|
typeof w.locale < "u" ? w.locale : "locale" in g ? g.locale : void 0
|
|
2959
|
-
),
|
|
2960
|
-
if (d.has(
|
|
2959
|
+
), M = A + "%" + C + "%" + k;
|
|
2960
|
+
if (d.has(M))
|
|
2961
2961
|
return;
|
|
2962
|
-
d.add(
|
|
2962
|
+
d.add(M);
|
|
2963
2963
|
}
|
|
2964
|
-
g.prefetch(A, C, w).catch((
|
|
2964
|
+
g.prefetch(A, C, w).catch((k) => {
|
|
2965
2965
|
if (process.env.NODE_ENV !== "production")
|
|
2966
|
-
throw
|
|
2966
|
+
throw k;
|
|
2967
2967
|
});
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function y(g) {
|
|
2971
2971
|
const C = g.currentTarget.getAttribute("target");
|
|
2972
2972
|
return C && C !== "_self" || g.metaKey || g.ctrlKey || g.shiftKey || g.altKey || // triggers resource download
|
|
2973
2973
|
g.nativeEvent && g.nativeEvent.which === 2;
|
|
2974
2974
|
}
|
|
2975
|
-
function P(g, A, C, w,
|
|
2976
|
-
const { nodeName:
|
|
2977
|
-
if (
|
|
2975
|
+
function P(g, A, C, w, k, M, U, W, G) {
|
|
2976
|
+
const { nodeName: q } = g.currentTarget;
|
|
2977
|
+
if (q.toUpperCase() === "A" && y(g) || g.currentTarget.hasAttribute("download"))
|
|
2978
2978
|
return;
|
|
2979
2979
|
if (!(0, u.isLocalURL)(C)) {
|
|
2980
|
-
|
|
2980
|
+
k && (g.preventDefault(), location.replace(C));
|
|
2981
2981
|
return;
|
|
2982
2982
|
}
|
|
2983
2983
|
g.preventDefault(), (() => {
|
|
2984
2984
|
if (G) {
|
|
2985
|
-
let
|
|
2985
|
+
let j = !1;
|
|
2986
2986
|
if (G({
|
|
2987
2987
|
preventDefault: () => {
|
|
2988
|
-
|
|
2988
|
+
j = !0;
|
|
2989
2989
|
}
|
|
2990
|
-
}),
|
|
2990
|
+
}), j)
|
|
2991
2991
|
return;
|
|
2992
2992
|
}
|
|
2993
2993
|
const S = U ?? !0;
|
|
2994
|
-
"beforePopState" in A ? A[
|
|
2995
|
-
shallow:
|
|
2994
|
+
"beforePopState" in A ? A[k ? "replace" : "push"](C, w, {
|
|
2995
|
+
shallow: M,
|
|
2996
2996
|
locale: W,
|
|
2997
2997
|
scroll: S
|
|
2998
|
-
}) : A[
|
|
2998
|
+
}) : A[k ? "replace" : "push"](w || C, {
|
|
2999
2999
|
scroll: S
|
|
3000
3000
|
});
|
|
3001
3001
|
})();
|
|
@@ -3005,7 +3005,7 @@ function Pn() {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
const O = /* @__PURE__ */ i.default.forwardRef(function(A, C) {
|
|
3007
3007
|
let w;
|
|
3008
|
-
const { href:
|
|
3008
|
+
const { href: k, as: M, children: U, prefetch: W = null, passHref: G, replace: q, shallow: B, scroll: m, locale: S, onClick: j, onNavigate: x, onMouseEnter: X, onTouchStart: V, legacyBehavior: L = !1, ...Q } = A;
|
|
3009
3009
|
w = U, L && (typeof w == "string" || typeof w == "number") && (w = /* @__PURE__ */ (0, s.jsx)("a", {
|
|
3010
3010
|
children: w
|
|
3011
3011
|
}));
|
|
@@ -3081,35 +3081,35 @@ Open your browser's console to view the Component stack trace.` : "")), "__NEXT_
|
|
|
3081
3081
|
}
|
|
3082
3082
|
const { href: J, as: $ } = i.default.useMemo(() => {
|
|
3083
3083
|
if (!z) {
|
|
3084
|
-
const ne = v(
|
|
3084
|
+
const ne = v(k);
|
|
3085
3085
|
return {
|
|
3086
3086
|
href: ne,
|
|
3087
|
-
as:
|
|
3087
|
+
as: M ? v(M) : ne
|
|
3088
3088
|
};
|
|
3089
3089
|
}
|
|
3090
|
-
const [H, ee] = (0, t.resolveHref)(z,
|
|
3090
|
+
const [H, ee] = (0, t.resolveHref)(z, k, !0);
|
|
3091
3091
|
return {
|
|
3092
3092
|
href: H,
|
|
3093
|
-
as:
|
|
3093
|
+
as: M ? (0, t.resolveHref)(z, M) : ee || H
|
|
3094
3094
|
};
|
|
3095
3095
|
}, [
|
|
3096
3096
|
z,
|
|
3097
|
-
|
|
3098
|
-
|
|
3097
|
+
k,
|
|
3098
|
+
M
|
|
3099
3099
|
]), ue = i.default.useRef(J), ce = i.default.useRef($);
|
|
3100
3100
|
let Y;
|
|
3101
3101
|
if (L)
|
|
3102
3102
|
if (process.env.NODE_ENV === "development") {
|
|
3103
|
-
|
|
3103
|
+
j && console.warn(`"onClick" was passed to <Link> with \`href\` of \`${k}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`), X && console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${k}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);
|
|
3104
3104
|
try {
|
|
3105
3105
|
Y = i.default.Children.only(w);
|
|
3106
3106
|
} catch {
|
|
3107
|
-
throw w ? Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${
|
|
3107
|
+
throw w ? Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${k}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` + (typeof window < "u" ? `
|
|
3108
3108
|
Open your browser's console to view the Component stack trace.` : "")), "__NEXT_ERROR_CODE", {
|
|
3109
3109
|
value: "E266",
|
|
3110
3110
|
enumerable: !1,
|
|
3111
3111
|
configurable: !0
|
|
3112
|
-
}) : Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${
|
|
3112
|
+
}) : Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${k}\` but one child is required https://nextjs.org/docs/messages/link-no-children`), "__NEXT_ERROR_CODE", {
|
|
3113
3113
|
value: "E320",
|
|
3114
3114
|
enumerable: !1,
|
|
3115
3115
|
configurable: !0
|
|
@@ -3135,7 +3135,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3135
3135
|
se
|
|
3136
3136
|
]), Ce = (0, l.useMergedRef)(Ie, Ne);
|
|
3137
3137
|
i.default.useEffect(() => {
|
|
3138
|
-
process.env.NODE_ENV === "production" && z && (!le || !re ||
|
|
3138
|
+
process.env.NODE_ENV === "production" && z && (!le || !re || T(z, J, $, {
|
|
3139
3139
|
locale: S
|
|
3140
3140
|
}));
|
|
3141
3141
|
}, [
|
|
@@ -3156,10 +3156,10 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3156
3156
|
enumerable: !1,
|
|
3157
3157
|
configurable: !0
|
|
3158
3158
|
});
|
|
3159
|
-
!L && typeof
|
|
3159
|
+
!L && typeof j == "function" && j(H), L && Y.props && typeof Y.props.onClick == "function" && Y.props.onClick(H), z && (H.defaultPrevented || P(H, z, J, $, q, B, m, S, x));
|
|
3160
3160
|
},
|
|
3161
3161
|
onMouseEnter(H) {
|
|
3162
|
-
!L && typeof X == "function" && X(H), L && Y.props && typeof Y.props.onMouseEnter == "function" && Y.props.onMouseEnter(H), z &&
|
|
3162
|
+
!L && typeof X == "function" && X(H), L && Y.props && typeof Y.props.onMouseEnter == "function" && Y.props.onMouseEnter(H), z && T(z, J, $, {
|
|
3163
3163
|
locale: S,
|
|
3164
3164
|
priority: !0,
|
|
3165
3165
|
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
@@ -3167,7 +3167,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3167
3167
|
});
|
|
3168
3168
|
},
|
|
3169
3169
|
onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function(ee) {
|
|
3170
|
-
!L && typeof V == "function" && V(ee), L && Y.props && typeof Y.props.onTouchStart == "function" && Y.props.onTouchStart(ee), z &&
|
|
3170
|
+
!L && typeof V == "function" && V(ee), L && Y.props && typeof Y.props.onTouchStart == "function" && Y.props.onTouchStart(ee), z && T(z, J, $, {
|
|
3171
3171
|
locale: S,
|
|
3172
3172
|
priority: !0,
|
|
3173
3173
|
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
@@ -3175,7 +3175,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3175
3175
|
});
|
|
3176
3176
|
}
|
|
3177
3177
|
};
|
|
3178
|
-
if ((0,
|
|
3178
|
+
if ((0, a.isAbsoluteUrl)($))
|
|
3179
3179
|
F.href = $;
|
|
3180
3180
|
else if (!L || G || Y.type === "a" && !("href" in Y.props)) {
|
|
3181
3181
|
const H = typeof S < "u" ? S : z?.locale, ee = z?.isLocaleDomain && (0, h.getDomainLocale)($, H, z?.locales, z?.domainLocales);
|
|
@@ -3190,84 +3190,84 @@ Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/code
|
|
|
3190
3190
|
...F,
|
|
3191
3191
|
children: w
|
|
3192
3192
|
});
|
|
3193
|
-
}),
|
|
3193
|
+
}), b = /* @__PURE__ */ (0, i.createContext)({
|
|
3194
3194
|
// We do not support link status in the Pages Router, so we always return false
|
|
3195
3195
|
pending: !1
|
|
3196
|
-
}), N = () => (0, i.useContext)(
|
|
3196
|
+
}), N = () => (0, i.useContext)(b), I = O;
|
|
3197
3197
|
(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), n.exports = e.default);
|
|
3198
3198
|
})(pe, pe.exports)), pe.exports;
|
|
3199
3199
|
}
|
|
3200
3200
|
var Et, Pr;
|
|
3201
|
-
function
|
|
3201
|
+
function Tn() {
|
|
3202
3202
|
return Pr || (Pr = 1, Et = Pn()), Et;
|
|
3203
3203
|
}
|
|
3204
|
-
var
|
|
3205
|
-
const
|
|
3204
|
+
var bn = Tn();
|
|
3205
|
+
const yn = /* @__PURE__ */ Lr(bn), On = "_group_1a1hk_48", An = "_main_1a1hk_64", Sn = "_dark_1a1hk_93", Nn = "_hover_1a1hk_97", In = "_active_1a1hk_100", Cn = "_padding_1a1hk_123", wn = "_icon_1a1hk_126", Mn = "_outline_1a1hk_160", jn = "_loading_1a1hk_1", xn = "_content_1a1hk_280", Ln = "_pulse_1a1hk_1", K = {
|
|
3206
3206
|
group: On,
|
|
3207
|
-
"justify-center": "_justify-
|
|
3208
|
-
"justify-start": "_justify-
|
|
3209
|
-
"justify-end": "_justify-
|
|
3207
|
+
"justify-center": "_justify-center_1a1hk_54",
|
|
3208
|
+
"justify-start": "_justify-start_1a1hk_57",
|
|
3209
|
+
"justify-end": "_justify-end_1a1hk_60",
|
|
3210
3210
|
main: An,
|
|
3211
|
-
"is-disabled": "_is-
|
|
3211
|
+
"is-disabled": "_is-disabled_1a1hk_86",
|
|
3212
3212
|
dark: Sn,
|
|
3213
3213
|
hover: Nn,
|
|
3214
3214
|
active: In,
|
|
3215
|
-
"rounded-lg": "_rounded-
|
|
3216
|
-
"rounded-md": "_rounded-
|
|
3217
|
-
"rounded-sm": "_rounded-
|
|
3218
|
-
"rounded-none": "_rounded-
|
|
3219
|
-
"size-md": "_size-
|
|
3215
|
+
"rounded-lg": "_rounded-lg_1a1hk_107",
|
|
3216
|
+
"rounded-md": "_rounded-md_1a1hk_110",
|
|
3217
|
+
"rounded-sm": "_rounded-sm_1a1hk_113",
|
|
3218
|
+
"rounded-none": "_rounded-none_1a1hk_116",
|
|
3219
|
+
"size-md": "_size-md_1a1hk_120",
|
|
3220
3220
|
padding: Cn,
|
|
3221
3221
|
icon: wn,
|
|
3222
|
-
"size-sm": "_size-
|
|
3223
|
-
"variant-default": "_variant-
|
|
3224
|
-
outline:
|
|
3225
|
-
"variant-text": "_variant-
|
|
3226
|
-
"variant-custom": "_variant-
|
|
3227
|
-
"is-loading": "_is-
|
|
3228
|
-
"is-skeleton": "_is-
|
|
3229
|
-
loading:
|
|
3230
|
-
"loading-dark": "_loading-
|
|
3231
|
-
content:
|
|
3222
|
+
"size-sm": "_size-sm_1a1hk_133",
|
|
3223
|
+
"variant-default": "_variant-default_1a1hk_149",
|
|
3224
|
+
outline: Mn,
|
|
3225
|
+
"variant-text": "_variant-text_1a1hk_194",
|
|
3226
|
+
"variant-custom": "_variant-custom_1a1hk_212",
|
|
3227
|
+
"is-loading": "_is-loading_1a1hk_250",
|
|
3228
|
+
"is-skeleton": "_is-skeleton_1a1hk_250",
|
|
3229
|
+
loading: jn,
|
|
3230
|
+
"loading-dark": "_loading-dark_1a1hk_1",
|
|
3231
|
+
content: xn,
|
|
3232
3232
|
pulse: Ln
|
|
3233
3233
|
};
|
|
3234
3234
|
function Dn(n) {
|
|
3235
3235
|
let e = n.replace("#", "");
|
|
3236
3236
|
e.length === 3 && (e = e.split("").map((i) => i + i).join(""));
|
|
3237
|
-
const
|
|
3238
|
-
return { r:
|
|
3237
|
+
const o = parseInt(e.slice(0, 2), 16), c = parseInt(e.slice(2, 4), 16), s = parseInt(e.slice(4, 6), 16);
|
|
3238
|
+
return { r: o, g: c, b: s };
|
|
3239
3239
|
}
|
|
3240
3240
|
function Rt(n) {
|
|
3241
3241
|
const e = n / 255;
|
|
3242
3242
|
return e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
|
|
3243
3243
|
}
|
|
3244
3244
|
function Pt(n) {
|
|
3245
|
-
const { r: e, g:
|
|
3245
|
+
const { r: e, g: o, b: c } = Dn(n), s = Rt(e), i = Rt(o), t = Rt(c), u = 0.4122214708 * s + 0.5363325363 * i + 0.0514459929 * t, r = 0.2119034982 * s + 0.6806995451 * i + 0.1073969566 * t, a = 0.0883024619 * s + 0.2817188376 * i + 0.6299787005 * t, f = Math.cbrt(u), _ = Math.cbrt(r), R = Math.cbrt(a), h = 0.2104542553 * f + 0.793617785 * _ - 0.0040720468 * R, E = 1.9779984951 * f - 2.428592205 * _ + 0.4505937099 * R, l = 0.0259040371 * f + 0.7827717662 * _ - 0.808675766 * R, p = Math.sqrt(E * E + l * l), d = Math.atan2(l, E) * 180 / Math.PI;
|
|
3246
3246
|
return {
|
|
3247
3247
|
l: +(h * 100).toFixed(2),
|
|
3248
3248
|
c: +p.toFixed(4),
|
|
3249
3249
|
h: +(d < 0 ? d + 360 : d).toFixed(2)
|
|
3250
3250
|
};
|
|
3251
3251
|
}
|
|
3252
|
-
function
|
|
3253
|
-
const { l:
|
|
3254
|
-
return `oklch(${
|
|
3252
|
+
function kn(n, e = 0.1) {
|
|
3253
|
+
const { l: o, c, h: s } = Pt(n);
|
|
3254
|
+
return `oklch(${o < 40 ? Math.min(100, o + e * 100) : Math.max(0, o - e * 100)}% ${c} ${s})`;
|
|
3255
3255
|
}
|
|
3256
|
-
function
|
|
3256
|
+
function qn(n) {
|
|
3257
3257
|
const { l: e } = Pt(n);
|
|
3258
3258
|
return e > 60 ? "var(--black)" : "var(--white)";
|
|
3259
3259
|
}
|
|
3260
3260
|
const Fn = ({
|
|
3261
3261
|
children: n,
|
|
3262
3262
|
label: e,
|
|
3263
|
-
href:
|
|
3263
|
+
href: o,
|
|
3264
3264
|
target: c = "_self",
|
|
3265
3265
|
size: s = "md",
|
|
3266
3266
|
variant: i = "default",
|
|
3267
3267
|
color: t,
|
|
3268
3268
|
outline: u = !1,
|
|
3269
3269
|
rounded: r = "sm",
|
|
3270
|
-
hasIcon:
|
|
3270
|
+
hasIcon: a = !1,
|
|
3271
3271
|
hasPadding: f = !0,
|
|
3272
3272
|
hasHover: _ = !0,
|
|
3273
3273
|
hasActive: R = !0,
|
|
@@ -3277,13 +3277,13 @@ const Fn = ({
|
|
|
3277
3277
|
className: p = "",
|
|
3278
3278
|
...d
|
|
3279
3279
|
}) => {
|
|
3280
|
-
const
|
|
3280
|
+
const T = /* @__PURE__ */ te.jsx(te.Fragment, { children: n || e }), y = i === "primary" ? "custom" : i, P = i === "primary" ? "#e61919" : t, v = yr(
|
|
3281
3281
|
K.main,
|
|
3282
3282
|
K[`size-${s}`],
|
|
3283
|
-
K[`variant-${
|
|
3283
|
+
K[`variant-${y}`],
|
|
3284
3284
|
u && K.outline,
|
|
3285
3285
|
r && K[`rounded-${r}`],
|
|
3286
|
-
|
|
3286
|
+
a && K.icon,
|
|
3287
3287
|
f && K.padding,
|
|
3288
3288
|
_ && K.hover,
|
|
3289
3289
|
R && K.active,
|
|
@@ -3293,35 +3293,35 @@ const Fn = ({
|
|
|
3293
3293
|
p
|
|
3294
3294
|
), O = P ? {
|
|
3295
3295
|
"--btn-color": (() => {
|
|
3296
|
-
const { l:
|
|
3297
|
-
return `oklch(${
|
|
3296
|
+
const { l: b, c: N, h: I } = Pt(P);
|
|
3297
|
+
return `oklch(${b}% ${N} ${I})`;
|
|
3298
3298
|
})(),
|
|
3299
|
-
"--btn-hover-color":
|
|
3300
|
-
"--btn-text":
|
|
3299
|
+
"--btn-hover-color": kn(P),
|
|
3300
|
+
"--btn-text": qn(P)
|
|
3301
3301
|
} : void 0;
|
|
3302
|
-
return
|
|
3302
|
+
return o ? l ? /* @__PURE__ */ te.jsx(
|
|
3303
3303
|
"div",
|
|
3304
3304
|
{
|
|
3305
3305
|
className: v,
|
|
3306
3306
|
role: "button",
|
|
3307
3307
|
"aria-disabled": "true",
|
|
3308
|
-
children:
|
|
3308
|
+
children: T
|
|
3309
3309
|
}
|
|
3310
3310
|
) : c === "_blank" ? /* @__PURE__ */ te.jsx(
|
|
3311
3311
|
"a",
|
|
3312
3312
|
{
|
|
3313
|
-
href:
|
|
3313
|
+
href: o,
|
|
3314
3314
|
target: "_blank",
|
|
3315
3315
|
rel: "noopener noreferrer",
|
|
3316
3316
|
className: v,
|
|
3317
|
-
children:
|
|
3317
|
+
children: T
|
|
3318
3318
|
}
|
|
3319
3319
|
) : /* @__PURE__ */ te.jsx(
|
|
3320
|
-
|
|
3320
|
+
yn,
|
|
3321
3321
|
{
|
|
3322
|
-
href:
|
|
3322
|
+
href: o,
|
|
3323
3323
|
className: v,
|
|
3324
|
-
children:
|
|
3324
|
+
children: T
|
|
3325
3325
|
}
|
|
3326
3326
|
) : /* @__PURE__ */ te.jsx(
|
|
3327
3327
|
"button",
|
|
@@ -3329,13 +3329,13 @@ const Fn = ({
|
|
|
3329
3329
|
className: v,
|
|
3330
3330
|
style: O,
|
|
3331
3331
|
type: "button",
|
|
3332
|
-
onClick: (
|
|
3333
|
-
E || d.onClick && d.onClick(
|
|
3332
|
+
onClick: (b) => {
|
|
3333
|
+
E || d.onClick && d.onClick(b);
|
|
3334
3334
|
},
|
|
3335
|
-
children:
|
|
3335
|
+
children: T
|
|
3336
3336
|
}
|
|
3337
3337
|
);
|
|
3338
|
-
}, Hn = ({ children: n, className: e, justify:
|
|
3338
|
+
}, Hn = ({ children: n, className: e, justify: o }) => /* @__PURE__ */ te.jsx("div", { className: yr(K.group, e, o && K[`justify-${o}`]), children: n });
|
|
3339
3339
|
export {
|
|
3340
3340
|
Fn as Button,
|
|
3341
3341
|
Hn as ButtonGroup,
|