@jigowatts/jigowatts-ui 1.0.1 → 1.1.0
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/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -0
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/components/CustomLink/index.js +16 -1661
- package/dist/components/DataTable/index.js +2 -2
- package/dist/components/DataTable/index.test.js +19 -2976
- package/dist/components/DatePickerController/index.js +1 -1
- package/dist/components/ErrorMessage/index.js +1 -1
- package/dist/components/EvseStateLabel/index.js +1 -1
- package/dist/components/FlexButtons/index.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/FormItem/index.js +1 -1
- package/dist/components/FormTitle/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputGroup/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/LabeledContent/index.js +4 -4
- package/dist/components/LoadingOverlay/index.js +1 -1
- package/dist/components/Map/index.js +1 -1
- package/dist/components/MaxWidthContainer/index.js +1 -1
- package/dist/components/OfflineLabel/index.js +4 -4
- package/dist/components/PageSizeSelector/index.js +2 -2
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/Pagination/index.test.js +1 -1
- package/dist/components/RadioButton/index.js +1 -1
- package/dist/components/RadioButton/index.test.js +1 -1
- package/dist/components/RangeDatePicker/index.js +1 -1
- package/dist/components/RangeDatePickerController/index.js +1 -1
- package/dist/components/ReportChart/index.js +1 -1
- package/dist/components/SearchForm/index.js +1 -1
- package/dist/components/SelectBox/index.js +1 -1
- package/dist/components/SelectBox/index.test.js +1 -1
- package/dist/components/SideMenu/index.d.ts +19 -0
- package/dist/components/SideMenu/index.js +102 -0
- package/dist/components/SideMenu/index.test.d.ts +1 -0
- package/dist/components/SideMenu/index.test.js +44 -0
- package/dist/{index-BOjtnFU5.js → index-0O6z6pEj.js} +2 -2
- package/dist/index-BqWHRIKL.js +2963 -0
- package/dist/{index-CQDJfJT1.js → index-BzzM70NU.js} +7 -7
- package/dist/{index-C_i0-R5C.js → index-Ng1Gk0N9.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +78 -73
- package/dist/link-DKxv6PwW.js +1646 -0
- package/dist/navigation-lUua5mCE.js +2205 -0
- package/package.json +7 -1
|
@@ -0,0 +1,1646 @@
|
|
|
1
|
+
import { g as Ht } from "./_commonjsHelpers-CT_km90n.js";
|
|
2
|
+
import Wt from "react/jsx-runtime";
|
|
3
|
+
import se from "react";
|
|
4
|
+
var De = { exports: {} }, F = {};
|
|
5
|
+
F._ = F._interop_require_default = $t;
|
|
6
|
+
function $t(r) {
|
|
7
|
+
return r && r.__esModule ? r : { default: r };
|
|
8
|
+
}
|
|
9
|
+
var Y = { exports: {} }, pe = {}, Ve;
|
|
10
|
+
function St() {
|
|
11
|
+
return Ve || (Ve = 1, function(r) {
|
|
12
|
+
Object.defineProperty(r, "__esModule", {
|
|
13
|
+
value: !0
|
|
14
|
+
});
|
|
15
|
+
function e(i, n) {
|
|
16
|
+
for (var a in n)
|
|
17
|
+
Object.defineProperty(i, a, {
|
|
18
|
+
enumerable: !0,
|
|
19
|
+
get: n[a]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
e(r, {
|
|
23
|
+
assign: function() {
|
|
24
|
+
return o;
|
|
25
|
+
},
|
|
26
|
+
searchParamsToUrlQuery: function() {
|
|
27
|
+
return s;
|
|
28
|
+
},
|
|
29
|
+
urlQueryToSearchParams: function() {
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
function s(i) {
|
|
34
|
+
const n = {};
|
|
35
|
+
return i.forEach((a, c) => {
|
|
36
|
+
typeof n[c] > "u" ? n[c] = a : Array.isArray(n[c]) ? n[c].push(a) : n[c] = [
|
|
37
|
+
n[c],
|
|
38
|
+
a
|
|
39
|
+
];
|
|
40
|
+
}), n;
|
|
41
|
+
}
|
|
42
|
+
function u(i) {
|
|
43
|
+
return typeof i == "string" || typeof i == "number" && !isNaN(i) || typeof i == "boolean" ? String(i) : "";
|
|
44
|
+
}
|
|
45
|
+
function t(i) {
|
|
46
|
+
const n = new URLSearchParams();
|
|
47
|
+
return Object.entries(i).forEach((a) => {
|
|
48
|
+
let [c, d] = a;
|
|
49
|
+
Array.isArray(d) ? d.forEach((h) => n.append(c, u(h))) : n.set(c, u(d));
|
|
50
|
+
}), n;
|
|
51
|
+
}
|
|
52
|
+
function o(i) {
|
|
53
|
+
for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
|
|
54
|
+
a[c - 1] = arguments[c];
|
|
55
|
+
return a.forEach((d) => {
|
|
56
|
+
Array.from(d.keys()).forEach((h) => i.delete(h)), d.forEach((h, m) => i.append(m, h));
|
|
57
|
+
}), i;
|
|
58
|
+
}
|
|
59
|
+
}(pe)), pe;
|
|
60
|
+
}
|
|
61
|
+
var me = {}, xe = {};
|
|
62
|
+
function Lt(r) {
|
|
63
|
+
if (typeof WeakMap != "function")
|
|
64
|
+
return null;
|
|
65
|
+
var e = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap();
|
|
66
|
+
return (Lt = function(u) {
|
|
67
|
+
return u ? s : e;
|
|
68
|
+
})(r);
|
|
69
|
+
}
|
|
70
|
+
xe._ = xe._interop_require_wildcard = Bt;
|
|
71
|
+
function Bt(r, e) {
|
|
72
|
+
if (!e && r && r.__esModule)
|
|
73
|
+
return r;
|
|
74
|
+
if (r === null || typeof r != "object" && typeof r != "function")
|
|
75
|
+
return { default: r };
|
|
76
|
+
var s = Lt(e);
|
|
77
|
+
if (s && s.has(r))
|
|
78
|
+
return s.get(r);
|
|
79
|
+
var u = { __proto__: null }, t = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
80
|
+
for (var o in r)
|
|
81
|
+
if (o !== "default" && Object.prototype.hasOwnProperty.call(r, o)) {
|
|
82
|
+
var i = t ? Object.getOwnPropertyDescriptor(r, o) : null;
|
|
83
|
+
i && (i.get || i.set) ? Object.defineProperty(u, o, i) : u[o] = r[o];
|
|
84
|
+
}
|
|
85
|
+
return u.default = r, s && s.set(r, u), u;
|
|
86
|
+
}
|
|
87
|
+
var Xe;
|
|
88
|
+
function jt() {
|
|
89
|
+
return Xe || (Xe = 1, function(r) {
|
|
90
|
+
Object.defineProperty(r, "__esModule", {
|
|
91
|
+
value: !0
|
|
92
|
+
});
|
|
93
|
+
function e(a, c) {
|
|
94
|
+
for (var d in c)
|
|
95
|
+
Object.defineProperty(a, d, {
|
|
96
|
+
enumerable: !0,
|
|
97
|
+
get: c[d]
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
e(r, {
|
|
101
|
+
formatUrl: function() {
|
|
102
|
+
return o;
|
|
103
|
+
},
|
|
104
|
+
formatWithValidation: function() {
|
|
105
|
+
return n;
|
|
106
|
+
},
|
|
107
|
+
urlObjectKeys: function() {
|
|
108
|
+
return i;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
const u = /* @__PURE__ */ xe._(St()), t = /https?|ftp|gopher|file/;
|
|
112
|
+
function o(a) {
|
|
113
|
+
let { auth: c, hostname: d } = a, h = a.protocol || "", m = a.pathname || "", p = a.hash || "", b = a.query || "", l = !1;
|
|
114
|
+
c = c ? encodeURIComponent(c).replace(/%3A/i, ":") + "@" : "", a.host ? l = c + a.host : d && (l = c + (~d.indexOf(":") ? "[" + d + "]" : d), a.port && (l += ":" + a.port)), b && typeof b == "object" && (b = String(u.urlQueryToSearchParams(b)));
|
|
115
|
+
let _ = a.search || b && "?" + b || "";
|
|
116
|
+
return h && !h.endsWith(":") && (h += ":"), a.slashes || (!h || t.test(h)) && l !== !1 ? (l = "//" + (l || ""), m && m[0] !== "/" && (m = "/" + m)) : l || (l = ""), p && p[0] !== "#" && (p = "#" + p), _ && _[0] !== "?" && (_ = "?" + _), m = m.replace(/[?#]/g, encodeURIComponent), _ = _.replace("#", "%23"), "" + h + l + m + _ + p;
|
|
117
|
+
}
|
|
118
|
+
const i = [
|
|
119
|
+
"auth",
|
|
120
|
+
"hash",
|
|
121
|
+
"host",
|
|
122
|
+
"hostname",
|
|
123
|
+
"href",
|
|
124
|
+
"path",
|
|
125
|
+
"pathname",
|
|
126
|
+
"port",
|
|
127
|
+
"protocol",
|
|
128
|
+
"query",
|
|
129
|
+
"search",
|
|
130
|
+
"slashes"
|
|
131
|
+
];
|
|
132
|
+
function n(a) {
|
|
133
|
+
return process.env.NODE_ENV === "development" && a !== null && typeof a == "object" && Object.keys(a).forEach((c) => {
|
|
134
|
+
i.includes(c) || console.warn("Unknown key passed via urlObject into url.format: " + c);
|
|
135
|
+
}), o(a);
|
|
136
|
+
}
|
|
137
|
+
}(me)), me;
|
|
138
|
+
}
|
|
139
|
+
var _e = {}, Qe;
|
|
140
|
+
function Kt() {
|
|
141
|
+
return Qe || (Qe = 1, function(r) {
|
|
142
|
+
Object.defineProperty(r, "__esModule", {
|
|
143
|
+
value: !0
|
|
144
|
+
}), Object.defineProperty(r, "omit", {
|
|
145
|
+
enumerable: !0,
|
|
146
|
+
get: function() {
|
|
147
|
+
return e;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
function e(s, u) {
|
|
151
|
+
const t = {};
|
|
152
|
+
return Object.keys(s).forEach((o) => {
|
|
153
|
+
u.includes(o) || (t[o] = s[o]);
|
|
154
|
+
}), t;
|
|
155
|
+
}
|
|
156
|
+
}(_e)), _e;
|
|
157
|
+
}
|
|
158
|
+
var ge = {}, Ye;
|
|
159
|
+
function ce() {
|
|
160
|
+
return Ye || (Ye = 1, function(r) {
|
|
161
|
+
Object.defineProperty(r, "__esModule", {
|
|
162
|
+
value: !0
|
|
163
|
+
});
|
|
164
|
+
function e(f, v) {
|
|
165
|
+
for (var E in v)
|
|
166
|
+
Object.defineProperty(f, E, {
|
|
167
|
+
enumerable: !0,
|
|
168
|
+
get: v[E]
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
e(r, {
|
|
172
|
+
DecodeError: function() {
|
|
173
|
+
return b;
|
|
174
|
+
},
|
|
175
|
+
MiddlewareNotFoundError: function() {
|
|
176
|
+
return T;
|
|
177
|
+
},
|
|
178
|
+
MissingStaticPage: function() {
|
|
179
|
+
return y;
|
|
180
|
+
},
|
|
181
|
+
NormalizeError: function() {
|
|
182
|
+
return l;
|
|
183
|
+
},
|
|
184
|
+
PageNotFoundError: function() {
|
|
185
|
+
return _;
|
|
186
|
+
},
|
|
187
|
+
SP: function() {
|
|
188
|
+
return m;
|
|
189
|
+
},
|
|
190
|
+
ST: function() {
|
|
191
|
+
return p;
|
|
192
|
+
},
|
|
193
|
+
WEB_VITALS: function() {
|
|
194
|
+
return s;
|
|
195
|
+
},
|
|
196
|
+
execOnce: function() {
|
|
197
|
+
return u;
|
|
198
|
+
},
|
|
199
|
+
getDisplayName: function() {
|
|
200
|
+
return a;
|
|
201
|
+
},
|
|
202
|
+
getLocationOrigin: function() {
|
|
203
|
+
return i;
|
|
204
|
+
},
|
|
205
|
+
getURL: function() {
|
|
206
|
+
return n;
|
|
207
|
+
},
|
|
208
|
+
isAbsoluteUrl: function() {
|
|
209
|
+
return o;
|
|
210
|
+
},
|
|
211
|
+
isResSent: function() {
|
|
212
|
+
return c;
|
|
213
|
+
},
|
|
214
|
+
loadGetInitialProps: function() {
|
|
215
|
+
return h;
|
|
216
|
+
},
|
|
217
|
+
normalizeRepeatedSlashes: function() {
|
|
218
|
+
return d;
|
|
219
|
+
},
|
|
220
|
+
stringifyError: function() {
|
|
221
|
+
return R;
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
const s = [
|
|
225
|
+
"CLS",
|
|
226
|
+
"FCP",
|
|
227
|
+
"FID",
|
|
228
|
+
"INP",
|
|
229
|
+
"LCP",
|
|
230
|
+
"TTFB"
|
|
231
|
+
];
|
|
232
|
+
function u(f) {
|
|
233
|
+
let v = !1, E;
|
|
234
|
+
return function() {
|
|
235
|
+
for (var P = arguments.length, g = new Array(P), w = 0; w < P; w++)
|
|
236
|
+
g[w] = arguments[w];
|
|
237
|
+
return v || (v = !0, E = f(...g)), E;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
const t = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, o = (f) => t.test(f);
|
|
241
|
+
function i() {
|
|
242
|
+
const { protocol: f, hostname: v, port: E } = window.location;
|
|
243
|
+
return f + "//" + v + (E ? ":" + E : "");
|
|
244
|
+
}
|
|
245
|
+
function n() {
|
|
246
|
+
const { href: f } = window.location, v = i();
|
|
247
|
+
return f.substring(v.length);
|
|
248
|
+
}
|
|
249
|
+
function a(f) {
|
|
250
|
+
return typeof f == "string" ? f : f.displayName || f.name || "Unknown";
|
|
251
|
+
}
|
|
252
|
+
function c(f) {
|
|
253
|
+
return f.finished || f.headersSent;
|
|
254
|
+
}
|
|
255
|
+
function d(f) {
|
|
256
|
+
const v = f.split("?");
|
|
257
|
+
return v[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (v[1] ? "?" + v.slice(1).join("?") : "");
|
|
258
|
+
}
|
|
259
|
+
async function h(f, v) {
|
|
260
|
+
if (process.env.NODE_ENV !== "production") {
|
|
261
|
+
var E;
|
|
262
|
+
if ((E = f.prototype) != null && E.getInitialProps) {
|
|
263
|
+
const w = '"' + a(f) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
|
|
264
|
+
throw new Error(w);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
const P = v.res || v.ctx && v.ctx.res;
|
|
268
|
+
if (!f.getInitialProps)
|
|
269
|
+
return v.ctx && v.Component ? {
|
|
270
|
+
pageProps: await h(v.Component, v.ctx)
|
|
271
|
+
} : {};
|
|
272
|
+
const g = await f.getInitialProps(v);
|
|
273
|
+
if (P && c(P))
|
|
274
|
+
return g;
|
|
275
|
+
if (!g) {
|
|
276
|
+
const w = '"' + a(f) + '.getInitialProps()" should resolve to an object. But found "' + g + '" instead.';
|
|
277
|
+
throw new Error(w);
|
|
278
|
+
}
|
|
279
|
+
return process.env.NODE_ENV !== "production" && Object.keys(g).length === 0 && !v.ctx && console.warn("" + a(f) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"), g;
|
|
280
|
+
}
|
|
281
|
+
const m = typeof performance < "u", p = m && [
|
|
282
|
+
"mark",
|
|
283
|
+
"measure",
|
|
284
|
+
"getEntriesByName"
|
|
285
|
+
].every((f) => typeof performance[f] == "function");
|
|
286
|
+
class b extends Error {
|
|
287
|
+
}
|
|
288
|
+
class l extends Error {
|
|
289
|
+
}
|
|
290
|
+
class _ extends Error {
|
|
291
|
+
constructor(v) {
|
|
292
|
+
super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + v;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
class y extends Error {
|
|
296
|
+
constructor(v, E) {
|
|
297
|
+
super(), this.message = "Failed to load static file for page: " + v + " " + E;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
class T extends Error {
|
|
301
|
+
constructor() {
|
|
302
|
+
super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function R(f) {
|
|
306
|
+
return JSON.stringify({
|
|
307
|
+
message: f.message,
|
|
308
|
+
stack: f.stack
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}(ge)), ge;
|
|
312
|
+
}
|
|
313
|
+
var Z = { exports: {} }, ye = {}, Ze;
|
|
314
|
+
function Mt() {
|
|
315
|
+
return Ze || (Ze = 1, function(r) {
|
|
316
|
+
Object.defineProperty(r, "__esModule", {
|
|
317
|
+
value: !0
|
|
318
|
+
}), Object.defineProperty(r, "removeTrailingSlash", {
|
|
319
|
+
enumerable: !0,
|
|
320
|
+
get: function() {
|
|
321
|
+
return e;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
function e(s) {
|
|
325
|
+
return s.replace(/\/$/, "") || "/";
|
|
326
|
+
}
|
|
327
|
+
}(ye)), ye;
|
|
328
|
+
}
|
|
329
|
+
var ve = {}, Je;
|
|
330
|
+
function ke() {
|
|
331
|
+
return Je || (Je = 1, function(r) {
|
|
332
|
+
Object.defineProperty(r, "__esModule", {
|
|
333
|
+
value: !0
|
|
334
|
+
}), Object.defineProperty(r, "parsePath", {
|
|
335
|
+
enumerable: !0,
|
|
336
|
+
get: function() {
|
|
337
|
+
return e;
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
function e(s) {
|
|
341
|
+
const u = s.indexOf("#"), t = s.indexOf("?"), o = t > -1 && (u < 0 || t < u);
|
|
342
|
+
return o || u > -1 ? {
|
|
343
|
+
pathname: s.substring(0, o ? t : u),
|
|
344
|
+
query: o ? s.substring(t, u > -1 ? u : void 0) : "",
|
|
345
|
+
hash: u > -1 ? s.slice(u) : ""
|
|
346
|
+
} : {
|
|
347
|
+
pathname: s,
|
|
348
|
+
query: "",
|
|
349
|
+
hash: ""
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
}(ve)), ve;
|
|
353
|
+
}
|
|
354
|
+
var et;
|
|
355
|
+
function le() {
|
|
356
|
+
return et || (et = 1, function(r, e) {
|
|
357
|
+
Object.defineProperty(e, "__esModule", {
|
|
358
|
+
value: !0
|
|
359
|
+
}), Object.defineProperty(e, "normalizePathTrailingSlash", {
|
|
360
|
+
enumerable: !0,
|
|
361
|
+
get: function() {
|
|
362
|
+
return t;
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
const s = Mt(), u = ke(), t = (o) => {
|
|
366
|
+
if (!o.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
|
|
367
|
+
return o;
|
|
368
|
+
const { pathname: i, query: n, hash: a } = (0, u.parsePath)(o);
|
|
369
|
+
return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(i) ? "" + (0, s.removeTrailingSlash)(i) + n + a : i.endsWith("/") ? "" + i + n + a : i + "/" + n + a : "" + (0, s.removeTrailingSlash)(i) + n + a;
|
|
370
|
+
};
|
|
371
|
+
(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), r.exports = e.default);
|
|
372
|
+
}(Z, Z.exports)), Z.exports;
|
|
373
|
+
}
|
|
374
|
+
var Pe = {}, J = { exports: {} }, Re = {}, tt;
|
|
375
|
+
function qt() {
|
|
376
|
+
return tt || (tt = 1, function(r) {
|
|
377
|
+
Object.defineProperty(r, "__esModule", {
|
|
378
|
+
value: !0
|
|
379
|
+
}), Object.defineProperty(r, "pathHasPrefix", {
|
|
380
|
+
enumerable: !0,
|
|
381
|
+
get: function() {
|
|
382
|
+
return s;
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
const e = ke();
|
|
386
|
+
function s(u, t) {
|
|
387
|
+
if (typeof u != "string")
|
|
388
|
+
return !1;
|
|
389
|
+
const { pathname: o } = (0, e.parsePath)(u);
|
|
390
|
+
return o === t || o.startsWith(t + "/");
|
|
391
|
+
}
|
|
392
|
+
}(Re)), Re;
|
|
393
|
+
}
|
|
394
|
+
var rt;
|
|
395
|
+
function Ft() {
|
|
396
|
+
return rt || (rt = 1, function(r, e) {
|
|
397
|
+
Object.defineProperty(e, "__esModule", {
|
|
398
|
+
value: !0
|
|
399
|
+
}), Object.defineProperty(e, "hasBasePath", {
|
|
400
|
+
enumerable: !0,
|
|
401
|
+
get: function() {
|
|
402
|
+
return t;
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
const s = qt(), u = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
406
|
+
function t(o) {
|
|
407
|
+
return (0, s.pathHasPrefix)(o, u);
|
|
408
|
+
}
|
|
409
|
+
(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), r.exports = e.default);
|
|
410
|
+
}(J, J.exports)), J.exports;
|
|
411
|
+
}
|
|
412
|
+
var nt;
|
|
413
|
+
function Ct() {
|
|
414
|
+
return nt || (nt = 1, function(r) {
|
|
415
|
+
Object.defineProperty(r, "__esModule", {
|
|
416
|
+
value: !0
|
|
417
|
+
}), Object.defineProperty(r, "isLocalURL", {
|
|
418
|
+
enumerable: !0,
|
|
419
|
+
get: function() {
|
|
420
|
+
return u;
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
const e = ce(), s = Ft();
|
|
424
|
+
function u(t) {
|
|
425
|
+
if (!(0, e.isAbsoluteUrl)(t))
|
|
426
|
+
return !0;
|
|
427
|
+
try {
|
|
428
|
+
const o = (0, e.getLocationOrigin)(), i = new URL(t, o);
|
|
429
|
+
return i.origin === o && (0, s.hasBasePath)(i.pathname);
|
|
430
|
+
} catch {
|
|
431
|
+
return !1;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}(Pe)), Pe;
|
|
435
|
+
}
|
|
436
|
+
var be = {}, Ee = {}, ot;
|
|
437
|
+
function Gt() {
|
|
438
|
+
return ot || (ot = 1, function(r) {
|
|
439
|
+
Object.defineProperty(r, "__esModule", {
|
|
440
|
+
value: !0
|
|
441
|
+
}), Object.defineProperty(r, "getSortedRoutes", {
|
|
442
|
+
enumerable: !0,
|
|
443
|
+
get: function() {
|
|
444
|
+
return s;
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
class e {
|
|
448
|
+
insert(t) {
|
|
449
|
+
this._insert(t.split("/").filter(Boolean), [], !1);
|
|
450
|
+
}
|
|
451
|
+
smoosh() {
|
|
452
|
+
return this._smoosh();
|
|
453
|
+
}
|
|
454
|
+
_smoosh(t) {
|
|
455
|
+
t === void 0 && (t = "/");
|
|
456
|
+
const o = [
|
|
457
|
+
...this.children.keys()
|
|
458
|
+
].sort();
|
|
459
|
+
this.slugName !== null && o.splice(o.indexOf("[]"), 1), this.restSlugName !== null && o.splice(o.indexOf("[...]"), 1), this.optionalRestSlugName !== null && o.splice(o.indexOf("[[...]]"), 1);
|
|
460
|
+
const i = o.map((n) => this.children.get(n)._smoosh("" + t + n + "/")).reduce((n, a) => [
|
|
461
|
+
...n,
|
|
462
|
+
...a
|
|
463
|
+
], []);
|
|
464
|
+
if (this.slugName !== null && i.push(...this.children.get("[]")._smoosh(t + "[" + this.slugName + "]/")), !this.placeholder) {
|
|
465
|
+
const n = t === "/" ? "/" : t.slice(0, -1);
|
|
466
|
+
if (this.optionalRestSlugName != null)
|
|
467
|
+
throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + n + '" and "' + n + "[[..." + this.optionalRestSlugName + ']]").');
|
|
468
|
+
i.unshift(n);
|
|
469
|
+
}
|
|
470
|
+
return this.restSlugName !== null && i.push(...this.children.get("[...]")._smoosh(t + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && i.push(...this.children.get("[[...]]")._smoosh(t + "[[..." + this.optionalRestSlugName + "]]/")), i;
|
|
471
|
+
}
|
|
472
|
+
_insert(t, o, i) {
|
|
473
|
+
if (t.length === 0) {
|
|
474
|
+
this.placeholder = !1;
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
477
|
+
if (i)
|
|
478
|
+
throw new Error("Catch-all must be the last part of the URL.");
|
|
479
|
+
let n = t[0];
|
|
480
|
+
if (n.startsWith("[") && n.endsWith("]")) {
|
|
481
|
+
let d = function(h, m) {
|
|
482
|
+
if (h !== null && h !== m)
|
|
483
|
+
throw new Error("You cannot use different slug names for the same dynamic path ('" + h + "' !== '" + m + "').");
|
|
484
|
+
o.forEach((p) => {
|
|
485
|
+
if (p === m)
|
|
486
|
+
throw new Error('You cannot have the same slug name "' + m + '" repeat within a single dynamic path');
|
|
487
|
+
if (p.replace(/\W/g, "") === n.replace(/\W/g, ""))
|
|
488
|
+
throw new Error('You cannot have the slug names "' + p + '" and "' + m + '" differ only by non-word symbols within a single dynamic path');
|
|
489
|
+
}), o.push(m);
|
|
490
|
+
}, a = n.slice(1, -1), c = !1;
|
|
491
|
+
if (a.startsWith("[") && a.endsWith("]") && (a = a.slice(1, -1), c = !0), a.startsWith("...") && (a = a.substring(3), i = !0), a.startsWith("[") || a.endsWith("]"))
|
|
492
|
+
throw new Error("Segment names may not start or end with extra brackets ('" + a + "').");
|
|
493
|
+
if (a.startsWith("."))
|
|
494
|
+
throw new Error("Segment names may not start with erroneous periods ('" + a + "').");
|
|
495
|
+
if (i)
|
|
496
|
+
if (c) {
|
|
497
|
+
if (this.restSlugName != null)
|
|
498
|
+
throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + t[0] + '" ).');
|
|
499
|
+
d(this.optionalRestSlugName, a), this.optionalRestSlugName = a, n = "[[...]]";
|
|
500
|
+
} else {
|
|
501
|
+
if (this.optionalRestSlugName != null)
|
|
502
|
+
throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + t[0] + '").');
|
|
503
|
+
d(this.restSlugName, a), this.restSlugName = a, n = "[...]";
|
|
504
|
+
}
|
|
505
|
+
else {
|
|
506
|
+
if (c)
|
|
507
|
+
throw new Error('Optional route parameters are not yet supported ("' + t[0] + '").');
|
|
508
|
+
d(this.slugName, a), this.slugName = a, n = "[]";
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
this.children.has(n) || this.children.set(n, new e()), this.children.get(n)._insert(t.slice(1), o, i);
|
|
512
|
+
}
|
|
513
|
+
constructor() {
|
|
514
|
+
this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
function s(u) {
|
|
518
|
+
const t = new e();
|
|
519
|
+
return u.forEach((o) => t.insert(o)), t.smoosh();
|
|
520
|
+
}
|
|
521
|
+
}(Ee)), Ee;
|
|
522
|
+
}
|
|
523
|
+
var Oe = {}, Ne = {}, we = {}, Te = {}, it;
|
|
524
|
+
function Vt() {
|
|
525
|
+
return it || (it = 1, function(r) {
|
|
526
|
+
Object.defineProperty(r, "__esModule", {
|
|
527
|
+
value: !0
|
|
528
|
+
}), Object.defineProperty(r, "ensureLeadingSlash", {
|
|
529
|
+
enumerable: !0,
|
|
530
|
+
get: function() {
|
|
531
|
+
return e;
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
function e(s) {
|
|
535
|
+
return s.startsWith("/") ? s : "/" + s;
|
|
536
|
+
}
|
|
537
|
+
}(Te)), Te;
|
|
538
|
+
}
|
|
539
|
+
var It = {};
|
|
540
|
+
(function(r) {
|
|
541
|
+
Object.defineProperty(r, "__esModule", {
|
|
542
|
+
value: !0
|
|
543
|
+
});
|
|
544
|
+
function e(o, i) {
|
|
545
|
+
for (var n in i)
|
|
546
|
+
Object.defineProperty(o, n, {
|
|
547
|
+
enumerable: !0,
|
|
548
|
+
get: i[n]
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
e(r, {
|
|
552
|
+
DEFAULT_SEGMENT_KEY: function() {
|
|
553
|
+
return t;
|
|
554
|
+
},
|
|
555
|
+
PAGE_SEGMENT_KEY: function() {
|
|
556
|
+
return u;
|
|
557
|
+
},
|
|
558
|
+
isGroupSegment: function() {
|
|
559
|
+
return s;
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
function s(o) {
|
|
563
|
+
return o[0] === "(" && o.endsWith(")");
|
|
564
|
+
}
|
|
565
|
+
const u = "__PAGE__", t = "__DEFAULT__";
|
|
566
|
+
})(It);
|
|
567
|
+
var at;
|
|
568
|
+
function Xt() {
|
|
569
|
+
return at || (at = 1, function(r) {
|
|
570
|
+
Object.defineProperty(r, "__esModule", {
|
|
571
|
+
value: !0
|
|
572
|
+
});
|
|
573
|
+
function e(i, n) {
|
|
574
|
+
for (var a in n)
|
|
575
|
+
Object.defineProperty(i, a, {
|
|
576
|
+
enumerable: !0,
|
|
577
|
+
get: n[a]
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
e(r, {
|
|
581
|
+
normalizeAppPath: function() {
|
|
582
|
+
return t;
|
|
583
|
+
},
|
|
584
|
+
normalizeRscURL: function() {
|
|
585
|
+
return o;
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
const s = Vt(), u = It;
|
|
589
|
+
function t(i) {
|
|
590
|
+
return (0, s.ensureLeadingSlash)(i.split("/").reduce((n, a, c, d) => !a || (0, u.isGroupSegment)(a) || a[0] === "@" || (a === "page" || a === "route") && c === d.length - 1 ? n : n + "/" + a, ""));
|
|
591
|
+
}
|
|
592
|
+
function o(i) {
|
|
593
|
+
return i.replace(
|
|
594
|
+
/\.rsc($|\?)/,
|
|
595
|
+
// $1 ensures `?` is preserved
|
|
596
|
+
"$1"
|
|
597
|
+
);
|
|
598
|
+
}
|
|
599
|
+
}(we)), we;
|
|
600
|
+
}
|
|
601
|
+
var ut;
|
|
602
|
+
function At() {
|
|
603
|
+
return ut || (ut = 1, function(r) {
|
|
604
|
+
Object.defineProperty(r, "__esModule", {
|
|
605
|
+
value: !0
|
|
606
|
+
});
|
|
607
|
+
function e(i, n) {
|
|
608
|
+
for (var a in n)
|
|
609
|
+
Object.defineProperty(i, a, {
|
|
610
|
+
enumerable: !0,
|
|
611
|
+
get: n[a]
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
e(r, {
|
|
615
|
+
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
616
|
+
return u;
|
|
617
|
+
},
|
|
618
|
+
extractInterceptionRouteInformation: function() {
|
|
619
|
+
return o;
|
|
620
|
+
},
|
|
621
|
+
isInterceptionRouteAppPath: function() {
|
|
622
|
+
return t;
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
const s = Xt(), u = [
|
|
626
|
+
"(..)(..)",
|
|
627
|
+
"(.)",
|
|
628
|
+
"(..)",
|
|
629
|
+
"(...)"
|
|
630
|
+
];
|
|
631
|
+
function t(i) {
|
|
632
|
+
return i.split("/").find((n) => u.find((a) => n.startsWith(a))) !== void 0;
|
|
633
|
+
}
|
|
634
|
+
function o(i) {
|
|
635
|
+
let n, a, c;
|
|
636
|
+
for (const d of i.split("/"))
|
|
637
|
+
if (a = u.find((h) => d.startsWith(h)), a) {
|
|
638
|
+
[n, c] = i.split(a, 2);
|
|
639
|
+
break;
|
|
640
|
+
}
|
|
641
|
+
if (!n || !a || !c)
|
|
642
|
+
throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);
|
|
643
|
+
switch (n = (0, s.normalizeAppPath)(n), a) {
|
|
644
|
+
case "(.)":
|
|
645
|
+
n === "/" ? c = `/${c}` : c = n + "/" + c;
|
|
646
|
+
break;
|
|
647
|
+
case "(..)":
|
|
648
|
+
if (n === "/")
|
|
649
|
+
throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);
|
|
650
|
+
c = n.split("/").slice(0, -1).concat(c).join("/");
|
|
651
|
+
break;
|
|
652
|
+
case "(...)":
|
|
653
|
+
c = "/" + c;
|
|
654
|
+
break;
|
|
655
|
+
case "(..)(..)":
|
|
656
|
+
const d = n.split("/");
|
|
657
|
+
if (d.length <= 2)
|
|
658
|
+
throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);
|
|
659
|
+
c = d.slice(0, -2).concat(c).join("/");
|
|
660
|
+
break;
|
|
661
|
+
default:
|
|
662
|
+
throw new Error("Invariant: unexpected marker");
|
|
663
|
+
}
|
|
664
|
+
return {
|
|
665
|
+
interceptingRoute: n,
|
|
666
|
+
interceptedRoute: c
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
}(Ne)), Ne;
|
|
670
|
+
}
|
|
671
|
+
var st;
|
|
672
|
+
function Qt() {
|
|
673
|
+
return st || (st = 1, function(r) {
|
|
674
|
+
Object.defineProperty(r, "__esModule", {
|
|
675
|
+
value: !0
|
|
676
|
+
}), Object.defineProperty(r, "isDynamicRoute", {
|
|
677
|
+
enumerable: !0,
|
|
678
|
+
get: function() {
|
|
679
|
+
return u;
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
const e = At(), s = /\/\[[^/]+?\](?=\/|$)/;
|
|
683
|
+
function u(t) {
|
|
684
|
+
return (0, e.isInterceptionRouteAppPath)(t) && (t = (0, e.extractInterceptionRouteInformation)(t).interceptedRoute), s.test(t);
|
|
685
|
+
}
|
|
686
|
+
}(Oe)), Oe;
|
|
687
|
+
}
|
|
688
|
+
var ct;
|
|
689
|
+
function Yt() {
|
|
690
|
+
return ct || (ct = 1, function(r) {
|
|
691
|
+
Object.defineProperty(r, "__esModule", {
|
|
692
|
+
value: !0
|
|
693
|
+
});
|
|
694
|
+
function e(t, o) {
|
|
695
|
+
for (var i in o)
|
|
696
|
+
Object.defineProperty(t, i, {
|
|
697
|
+
enumerable: !0,
|
|
698
|
+
get: o[i]
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
e(r, {
|
|
702
|
+
getSortedRoutes: function() {
|
|
703
|
+
return s.getSortedRoutes;
|
|
704
|
+
},
|
|
705
|
+
isDynamicRoute: function() {
|
|
706
|
+
return u.isDynamicRoute;
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
const s = Gt(), u = Qt();
|
|
710
|
+
}(be)), be;
|
|
711
|
+
}
|
|
712
|
+
var Se = {}, Le = {}, lt;
|
|
713
|
+
function Zt() {
|
|
714
|
+
return lt || (lt = 1, function(r) {
|
|
715
|
+
Object.defineProperty(r, "__esModule", {
|
|
716
|
+
value: !0
|
|
717
|
+
}), Object.defineProperty(r, "getRouteMatcher", {
|
|
718
|
+
enumerable: !0,
|
|
719
|
+
get: function() {
|
|
720
|
+
return s;
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
const e = ce();
|
|
724
|
+
function s(u) {
|
|
725
|
+
let { re: t, groups: o } = u;
|
|
726
|
+
return (i) => {
|
|
727
|
+
const n = t.exec(i);
|
|
728
|
+
if (!n)
|
|
729
|
+
return !1;
|
|
730
|
+
const a = (d) => {
|
|
731
|
+
try {
|
|
732
|
+
return decodeURIComponent(d);
|
|
733
|
+
} catch {
|
|
734
|
+
throw new e.DecodeError("failed to decode param");
|
|
735
|
+
}
|
|
736
|
+
}, c = {};
|
|
737
|
+
return Object.keys(o).forEach((d) => {
|
|
738
|
+
const h = o[d], m = n[h.pos];
|
|
739
|
+
m !== void 0 && (c[d] = ~m.indexOf("/") ? m.split("/").map((p) => a(p)) : h.repeat ? [
|
|
740
|
+
a(m)
|
|
741
|
+
] : a(m));
|
|
742
|
+
}), c;
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
}(Le)), Le;
|
|
746
|
+
}
|
|
747
|
+
var je = {}, Me = {}, ft;
|
|
748
|
+
function Jt() {
|
|
749
|
+
return ft || (ft = 1, function(r) {
|
|
750
|
+
Object.defineProperty(r, "__esModule", {
|
|
751
|
+
value: !0
|
|
752
|
+
}), Object.defineProperty(r, "escapeStringRegexp", {
|
|
753
|
+
enumerable: !0,
|
|
754
|
+
get: function() {
|
|
755
|
+
return u;
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
const e = /[|\\{}()[\]^$+*?.-]/, s = /[|\\{}()[\]^$+*?.-]/g;
|
|
759
|
+
function u(t) {
|
|
760
|
+
return e.test(t) ? t.replace(s, "\\$&") : t;
|
|
761
|
+
}
|
|
762
|
+
}(Me)), Me;
|
|
763
|
+
}
|
|
764
|
+
var dt;
|
|
765
|
+
function er() {
|
|
766
|
+
return dt || (dt = 1, function(r) {
|
|
767
|
+
Object.defineProperty(r, "__esModule", {
|
|
768
|
+
value: !0
|
|
769
|
+
});
|
|
770
|
+
function e(l, _) {
|
|
771
|
+
for (var y in _)
|
|
772
|
+
Object.defineProperty(l, y, {
|
|
773
|
+
enumerable: !0,
|
|
774
|
+
get: _[y]
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
e(r, {
|
|
778
|
+
getNamedMiddlewareRegex: function() {
|
|
779
|
+
return b;
|
|
780
|
+
},
|
|
781
|
+
getNamedRouteRegex: function() {
|
|
782
|
+
return p;
|
|
783
|
+
},
|
|
784
|
+
getRouteRegex: function() {
|
|
785
|
+
return c;
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
const s = At(), u = Jt(), t = Mt(), o = "nxtP", i = "nxtI";
|
|
789
|
+
function n(l) {
|
|
790
|
+
const _ = l.startsWith("[") && l.endsWith("]");
|
|
791
|
+
_ && (l = l.slice(1, -1));
|
|
792
|
+
const y = l.startsWith("...");
|
|
793
|
+
return y && (l = l.slice(3)), {
|
|
794
|
+
key: l,
|
|
795
|
+
repeat: y,
|
|
796
|
+
optional: _
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
function a(l) {
|
|
800
|
+
const _ = (0, t.removeTrailingSlash)(l).slice(1).split("/"), y = {};
|
|
801
|
+
let T = 1;
|
|
802
|
+
return {
|
|
803
|
+
parameterizedRoute: _.map((R) => {
|
|
804
|
+
const f = s.INTERCEPTION_ROUTE_MARKERS.find((E) => R.startsWith(E)), v = R.match(/\[((?:\[.*\])|.+)\]/);
|
|
805
|
+
if (f && v) {
|
|
806
|
+
const { key: E, optional: P, repeat: g } = n(v[1]);
|
|
807
|
+
return y[E] = {
|
|
808
|
+
pos: T++,
|
|
809
|
+
repeat: g,
|
|
810
|
+
optional: P
|
|
811
|
+
}, "/" + (0, u.escapeStringRegexp)(f) + "([^/]+?)";
|
|
812
|
+
} else if (v) {
|
|
813
|
+
const { key: E, repeat: P, optional: g } = n(v[1]);
|
|
814
|
+
return y[E] = {
|
|
815
|
+
pos: T++,
|
|
816
|
+
repeat: P,
|
|
817
|
+
optional: g
|
|
818
|
+
}, P ? g ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
819
|
+
} else
|
|
820
|
+
return "/" + (0, u.escapeStringRegexp)(R);
|
|
821
|
+
}).join(""),
|
|
822
|
+
groups: y
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
function c(l) {
|
|
826
|
+
const { parameterizedRoute: _, groups: y } = a(l);
|
|
827
|
+
return {
|
|
828
|
+
re: new RegExp("^" + _ + "(?:/)?$"),
|
|
829
|
+
groups: y
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
function d() {
|
|
833
|
+
let l = 0;
|
|
834
|
+
return () => {
|
|
835
|
+
let _ = "", y = ++l;
|
|
836
|
+
for (; y > 0; )
|
|
837
|
+
_ += String.fromCharCode(97 + (y - 1) % 26), y = Math.floor((y - 1) / 26);
|
|
838
|
+
return _;
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
function h(l) {
|
|
842
|
+
let { interceptionMarker: _, getSafeRouteKey: y, segment: T, routeKeys: R, keyPrefix: f } = l;
|
|
843
|
+
const { key: v, optional: E, repeat: P } = n(T);
|
|
844
|
+
let g = v.replace(/\W/g, "");
|
|
845
|
+
f && (g = "" + f + g);
|
|
846
|
+
let w = !1;
|
|
847
|
+
(g.length === 0 || g.length > 30) && (w = !0), isNaN(parseInt(g.slice(0, 1))) || (w = !0), w && (g = y()), f ? R[g] = "" + f + v : R[g] = v;
|
|
848
|
+
const S = _ ? (0, u.escapeStringRegexp)(_) : "";
|
|
849
|
+
return P ? E ? "(?:/" + S + "(?<" + g + ">.+?))?" : "/" + S + "(?<" + g + ">.+?)" : "/" + S + "(?<" + g + ">[^/]+?)";
|
|
850
|
+
}
|
|
851
|
+
function m(l, _) {
|
|
852
|
+
const y = (0, t.removeTrailingSlash)(l).slice(1).split("/"), T = d(), R = {};
|
|
853
|
+
return {
|
|
854
|
+
namedParameterizedRoute: y.map((f) => {
|
|
855
|
+
const v = s.INTERCEPTION_ROUTE_MARKERS.some((P) => f.startsWith(P)), E = f.match(/\[((?:\[.*\])|.+)\]/);
|
|
856
|
+
if (v && E) {
|
|
857
|
+
const [P] = f.split(E[0]);
|
|
858
|
+
return h({
|
|
859
|
+
getSafeRouteKey: T,
|
|
860
|
+
interceptionMarker: P,
|
|
861
|
+
segment: E[1],
|
|
862
|
+
routeKeys: R,
|
|
863
|
+
keyPrefix: _ ? i : void 0
|
|
864
|
+
});
|
|
865
|
+
} else
|
|
866
|
+
return E ? h({
|
|
867
|
+
getSafeRouteKey: T,
|
|
868
|
+
segment: E[1],
|
|
869
|
+
routeKeys: R,
|
|
870
|
+
keyPrefix: _ ? o : void 0
|
|
871
|
+
}) : "/" + (0, u.escapeStringRegexp)(f);
|
|
872
|
+
}).join(""),
|
|
873
|
+
routeKeys: R
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
function p(l, _) {
|
|
877
|
+
const y = m(l, _);
|
|
878
|
+
return {
|
|
879
|
+
...c(l),
|
|
880
|
+
namedRegex: "^" + y.namedParameterizedRoute + "(?:/)?$",
|
|
881
|
+
routeKeys: y.routeKeys
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
function b(l, _) {
|
|
885
|
+
const { parameterizedRoute: y } = a(l), { catchAll: T = !0 } = _;
|
|
886
|
+
if (y === "/")
|
|
887
|
+
return {
|
|
888
|
+
namedRegex: "^/" + (T ? ".*" : "") + "$"
|
|
889
|
+
};
|
|
890
|
+
const { namedParameterizedRoute: R } = m(l, !1);
|
|
891
|
+
let f = T ? "(?:(/.*)?)" : "";
|
|
892
|
+
return {
|
|
893
|
+
namedRegex: "^" + R + f + "$"
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
}(je)), je;
|
|
897
|
+
}
|
|
898
|
+
var ht;
|
|
899
|
+
function tr() {
|
|
900
|
+
return ht || (ht = 1, function(r) {
|
|
901
|
+
Object.defineProperty(r, "__esModule", {
|
|
902
|
+
value: !0
|
|
903
|
+
}), Object.defineProperty(r, "interpolateAs", {
|
|
904
|
+
enumerable: !0,
|
|
905
|
+
get: function() {
|
|
906
|
+
return u;
|
|
907
|
+
}
|
|
908
|
+
});
|
|
909
|
+
const e = Zt(), s = er();
|
|
910
|
+
function u(t, o, i) {
|
|
911
|
+
let n = "";
|
|
912
|
+
const a = (0, s.getRouteRegex)(t), c = a.groups, d = (
|
|
913
|
+
// Try to match the dynamic route against the asPath
|
|
914
|
+
(o !== t ? (0, e.getRouteMatcher)(a)(o) : "") || // Fall back to reading the values from the href
|
|
915
|
+
// TODO: should this take priority; also need to change in the router.
|
|
916
|
+
i
|
|
917
|
+
);
|
|
918
|
+
n = t;
|
|
919
|
+
const h = Object.keys(c);
|
|
920
|
+
return h.every((m) => {
|
|
921
|
+
let p = d[m] || "";
|
|
922
|
+
const { repeat: b, optional: l } = c[m];
|
|
923
|
+
let _ = "[" + (b ? "..." : "") + m + "]";
|
|
924
|
+
return l && (_ = (p ? "" : "/") + "[" + _ + "]"), b && !Array.isArray(p) && (p = [
|
|
925
|
+
p
|
|
926
|
+
]), (l || m in d) && // Interpolate group into data URL if present
|
|
927
|
+
(n = n.replace(_, b ? p.map(
|
|
928
|
+
// these values should be fully encoded instead of just
|
|
929
|
+
// path delimiter escaped since they are being inserted
|
|
930
|
+
// into the URL and we expect URL encoded segments
|
|
931
|
+
// when parsing dynamic route params
|
|
932
|
+
(y) => encodeURIComponent(y)
|
|
933
|
+
).join("/") : encodeURIComponent(p)) || "/");
|
|
934
|
+
}) || (n = ""), {
|
|
935
|
+
params: h,
|
|
936
|
+
result: n
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
}(Se)), Se;
|
|
940
|
+
}
|
|
941
|
+
var pt;
|
|
942
|
+
function rr() {
|
|
943
|
+
return pt || (pt = 1, function(r, e) {
|
|
944
|
+
Object.defineProperty(e, "__esModule", {
|
|
945
|
+
value: !0
|
|
946
|
+
}), Object.defineProperty(e, "resolveHref", {
|
|
947
|
+
enumerable: !0,
|
|
948
|
+
get: function() {
|
|
949
|
+
return d;
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
const s = St(), u = jt(), t = Kt(), o = ce(), i = le(), n = Ct(), a = Yt(), c = tr();
|
|
953
|
+
function d(h, m, p) {
|
|
954
|
+
let b, l = typeof m == "string" ? m : (0, u.formatWithValidation)(m);
|
|
955
|
+
const _ = l.match(/^[a-zA-Z]{1,}:\/\//), y = _ ? l.slice(_[0].length) : l;
|
|
956
|
+
if ((y.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
|
|
957
|
+
console.error("Invalid href '" + l + "' passed to next/router in page: '" + h.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
|
|
958
|
+
const R = (0, o.normalizeRepeatedSlashes)(y);
|
|
959
|
+
l = (_ ? _[0] : "") + R;
|
|
960
|
+
}
|
|
961
|
+
if (!(0, n.isLocalURL)(l))
|
|
962
|
+
return p ? [
|
|
963
|
+
l
|
|
964
|
+
] : l;
|
|
965
|
+
try {
|
|
966
|
+
b = new URL(l.startsWith("#") ? h.asPath : h.pathname, "http://n");
|
|
967
|
+
} catch {
|
|
968
|
+
b = new URL("/", "http://n");
|
|
969
|
+
}
|
|
970
|
+
try {
|
|
971
|
+
const R = new URL(l, b);
|
|
972
|
+
R.pathname = (0, i.normalizePathTrailingSlash)(R.pathname);
|
|
973
|
+
let f = "";
|
|
974
|
+
if ((0, a.isDynamicRoute)(R.pathname) && R.searchParams && p) {
|
|
975
|
+
const E = (0, s.searchParamsToUrlQuery)(R.searchParams), { result: P, params: g } = (0, c.interpolateAs)(R.pathname, R.pathname, E);
|
|
976
|
+
P && (f = (0, u.formatWithValidation)({
|
|
977
|
+
pathname: P,
|
|
978
|
+
hash: R.hash,
|
|
979
|
+
query: (0, t.omit)(E, g)
|
|
980
|
+
}));
|
|
981
|
+
}
|
|
982
|
+
const v = R.origin === b.origin ? R.href.slice(R.origin.length) : R.href;
|
|
983
|
+
return p ? [
|
|
984
|
+
v,
|
|
985
|
+
f || v
|
|
986
|
+
] : v;
|
|
987
|
+
} catch {
|
|
988
|
+
return p ? [
|
|
989
|
+
l
|
|
990
|
+
] : l;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
(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), r.exports = e.default);
|
|
994
|
+
}(Y, Y.exports)), Y.exports;
|
|
995
|
+
}
|
|
996
|
+
var ee = { exports: {} }, qe = {}, Ce = {}, mt;
|
|
997
|
+
function Ut() {
|
|
998
|
+
return mt || (mt = 1, function(r) {
|
|
999
|
+
Object.defineProperty(r, "__esModule", {
|
|
1000
|
+
value: !0
|
|
1001
|
+
}), Object.defineProperty(r, "addPathPrefix", {
|
|
1002
|
+
enumerable: !0,
|
|
1003
|
+
get: function() {
|
|
1004
|
+
return s;
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
const e = ke();
|
|
1008
|
+
function s(u, t) {
|
|
1009
|
+
if (!u.startsWith("/") || !t)
|
|
1010
|
+
return u;
|
|
1011
|
+
const { pathname: o, query: i, hash: n } = (0, e.parsePath)(u);
|
|
1012
|
+
return "" + t + o + i + n;
|
|
1013
|
+
}
|
|
1014
|
+
}(Ce)), Ce;
|
|
1015
|
+
}
|
|
1016
|
+
var _t;
|
|
1017
|
+
function nr() {
|
|
1018
|
+
return _t || (_t = 1, function(r) {
|
|
1019
|
+
Object.defineProperty(r, "__esModule", {
|
|
1020
|
+
value: !0
|
|
1021
|
+
}), Object.defineProperty(r, "addLocale", {
|
|
1022
|
+
enumerable: !0,
|
|
1023
|
+
get: function() {
|
|
1024
|
+
return u;
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
const e = Ut(), s = qt();
|
|
1028
|
+
function u(t, o, i, n) {
|
|
1029
|
+
if (!o || o === i)
|
|
1030
|
+
return t;
|
|
1031
|
+
const a = t.toLowerCase();
|
|
1032
|
+
return !n && ((0, s.pathHasPrefix)(a, "/api") || (0, s.pathHasPrefix)(a, "/" + o.toLowerCase())) ? t : (0, e.addPathPrefix)(t, "/" + o);
|
|
1033
|
+
}
|
|
1034
|
+
}(qe)), qe;
|
|
1035
|
+
}
|
|
1036
|
+
var gt;
|
|
1037
|
+
function or() {
|
|
1038
|
+
return gt || (gt = 1, function(r, e) {
|
|
1039
|
+
Object.defineProperty(e, "__esModule", {
|
|
1040
|
+
value: !0
|
|
1041
|
+
}), Object.defineProperty(e, "addLocale", {
|
|
1042
|
+
enumerable: !0,
|
|
1043
|
+
get: function() {
|
|
1044
|
+
return u;
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
const s = le(), u = function(t) {
|
|
1048
|
+
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), n = 1; n < o; n++)
|
|
1049
|
+
i[n - 1] = arguments[n];
|
|
1050
|
+
return process.env.__NEXT_I18N_SUPPORT ? (0, s.normalizePathTrailingSlash)(nr().addLocale(t, ...i)) : t;
|
|
1051
|
+
};
|
|
1052
|
+
(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), r.exports = e.default);
|
|
1053
|
+
}(ee, ee.exports)), ee.exports;
|
|
1054
|
+
}
|
|
1055
|
+
var Ie = {}, yt;
|
|
1056
|
+
function ir() {
|
|
1057
|
+
return yt || (yt = 1, function(r) {
|
|
1058
|
+
Object.defineProperty(r, "__esModule", {
|
|
1059
|
+
value: !0
|
|
1060
|
+
}), Object.defineProperty(r, "RouterContext", {
|
|
1061
|
+
enumerable: !0,
|
|
1062
|
+
get: function() {
|
|
1063
|
+
return u;
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
const u = (/* @__PURE__ */ F._(se)).default.createContext(null);
|
|
1067
|
+
process.env.NODE_ENV !== "production" && (u.displayName = "RouterContext");
|
|
1068
|
+
}(Ie)), Ie;
|
|
1069
|
+
}
|
|
1070
|
+
var Dt = {};
|
|
1071
|
+
(function(r) {
|
|
1072
|
+
"use client";
|
|
1073
|
+
Object.defineProperty(r, "__esModule", {
|
|
1074
|
+
value: !0
|
|
1075
|
+
});
|
|
1076
|
+
function e(c, d) {
|
|
1077
|
+
for (var h in d)
|
|
1078
|
+
Object.defineProperty(c, h, {
|
|
1079
|
+
enumerable: !0,
|
|
1080
|
+
get: d[h]
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
e(r, {
|
|
1084
|
+
AppRouterContext: function() {
|
|
1085
|
+
return t;
|
|
1086
|
+
},
|
|
1087
|
+
GlobalLayoutRouterContext: function() {
|
|
1088
|
+
return i;
|
|
1089
|
+
},
|
|
1090
|
+
LayoutRouterContext: function() {
|
|
1091
|
+
return o;
|
|
1092
|
+
},
|
|
1093
|
+
MissingSlotContext: function() {
|
|
1094
|
+
return a;
|
|
1095
|
+
},
|
|
1096
|
+
TemplateContext: function() {
|
|
1097
|
+
return n;
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
const u = /* @__PURE__ */ F._(se), t = u.default.createContext(null), o = u.default.createContext(null), i = u.default.createContext(null), n = u.default.createContext(null);
|
|
1101
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "AppRouterContext", o.displayName = "LayoutRouterContext", i.displayName = "GlobalLayoutRouterContext", n.displayName = "TemplateContext");
|
|
1102
|
+
const a = u.default.createContext(/* @__PURE__ */ new Set());
|
|
1103
|
+
})(Dt);
|
|
1104
|
+
var te = { exports: {} }, re = { exports: {} }, vt;
|
|
1105
|
+
function ar() {
|
|
1106
|
+
return vt || (vt = 1, function(r, e) {
|
|
1107
|
+
Object.defineProperty(e, "__esModule", {
|
|
1108
|
+
value: !0
|
|
1109
|
+
});
|
|
1110
|
+
function s(o, i) {
|
|
1111
|
+
for (var n in i)
|
|
1112
|
+
Object.defineProperty(o, n, {
|
|
1113
|
+
enumerable: !0,
|
|
1114
|
+
get: i[n]
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
s(e, {
|
|
1118
|
+
cancelIdleCallback: function() {
|
|
1119
|
+
return t;
|
|
1120
|
+
},
|
|
1121
|
+
requestIdleCallback: function() {
|
|
1122
|
+
return u;
|
|
1123
|
+
}
|
|
1124
|
+
});
|
|
1125
|
+
const u = typeof self < "u" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(o) {
|
|
1126
|
+
let i = Date.now();
|
|
1127
|
+
return self.setTimeout(function() {
|
|
1128
|
+
o({
|
|
1129
|
+
didTimeout: !1,
|
|
1130
|
+
timeRemaining: function() {
|
|
1131
|
+
return Math.max(0, 50 - (Date.now() - i));
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
}, 1);
|
|
1135
|
+
}, t = typeof self < "u" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(o) {
|
|
1136
|
+
return clearTimeout(o);
|
|
1137
|
+
};
|
|
1138
|
+
(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), r.exports = e.default);
|
|
1139
|
+
}(re, re.exports)), re.exports;
|
|
1140
|
+
}
|
|
1141
|
+
var Pt;
|
|
1142
|
+
function ur() {
|
|
1143
|
+
return Pt || (Pt = 1, function(r, e) {
|
|
1144
|
+
Object.defineProperty(e, "__esModule", {
|
|
1145
|
+
value: !0
|
|
1146
|
+
}), Object.defineProperty(e, "useIntersection", {
|
|
1147
|
+
enumerable: !0,
|
|
1148
|
+
get: function() {
|
|
1149
|
+
return c;
|
|
1150
|
+
}
|
|
1151
|
+
});
|
|
1152
|
+
const s = se, u = ar(), t = typeof IntersectionObserver == "function", o = /* @__PURE__ */ new Map(), i = [];
|
|
1153
|
+
function n(d) {
|
|
1154
|
+
const h = {
|
|
1155
|
+
root: d.root || null,
|
|
1156
|
+
margin: d.rootMargin || ""
|
|
1157
|
+
}, m = i.find((_) => _.root === h.root && _.margin === h.margin);
|
|
1158
|
+
let p;
|
|
1159
|
+
if (m && (p = o.get(m), p))
|
|
1160
|
+
return p;
|
|
1161
|
+
const b = /* @__PURE__ */ new Map(), l = new IntersectionObserver((_) => {
|
|
1162
|
+
_.forEach((y) => {
|
|
1163
|
+
const T = b.get(y.target), R = y.isIntersecting || y.intersectionRatio > 0;
|
|
1164
|
+
T && R && T(R);
|
|
1165
|
+
});
|
|
1166
|
+
}, d);
|
|
1167
|
+
return p = {
|
|
1168
|
+
id: h,
|
|
1169
|
+
observer: l,
|
|
1170
|
+
elements: b
|
|
1171
|
+
}, i.push(h), o.set(h, p), p;
|
|
1172
|
+
}
|
|
1173
|
+
function a(d, h, m) {
|
|
1174
|
+
const { id: p, observer: b, elements: l } = n(m);
|
|
1175
|
+
return l.set(d, h), b.observe(d), function() {
|
|
1176
|
+
if (l.delete(d), b.unobserve(d), l.size === 0) {
|
|
1177
|
+
b.disconnect(), o.delete(p);
|
|
1178
|
+
const y = i.findIndex((T) => T.root === p.root && T.margin === p.margin);
|
|
1179
|
+
y > -1 && i.splice(y, 1);
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
function c(d) {
|
|
1184
|
+
let { rootRef: h, rootMargin: m, disabled: p } = d;
|
|
1185
|
+
const b = p || !t, [l, _] = (0, s.useState)(!1), y = (0, s.useRef)(null), T = (0, s.useCallback)((f) => {
|
|
1186
|
+
y.current = f;
|
|
1187
|
+
}, []);
|
|
1188
|
+
(0, s.useEffect)(() => {
|
|
1189
|
+
if (t) {
|
|
1190
|
+
if (b || l)
|
|
1191
|
+
return;
|
|
1192
|
+
const f = y.current;
|
|
1193
|
+
if (f && f.tagName)
|
|
1194
|
+
return a(f, (E) => E && _(E), {
|
|
1195
|
+
root: h == null ? void 0 : h.current,
|
|
1196
|
+
rootMargin: m
|
|
1197
|
+
});
|
|
1198
|
+
} else if (!l) {
|
|
1199
|
+
const f = (0, u.requestIdleCallback)(() => _(!0));
|
|
1200
|
+
return () => (0, u.cancelIdleCallback)(f);
|
|
1201
|
+
}
|
|
1202
|
+
}, [
|
|
1203
|
+
b,
|
|
1204
|
+
m,
|
|
1205
|
+
h,
|
|
1206
|
+
l,
|
|
1207
|
+
y.current
|
|
1208
|
+
]);
|
|
1209
|
+
const R = (0, s.useCallback)(() => {
|
|
1210
|
+
_(!1);
|
|
1211
|
+
}, []);
|
|
1212
|
+
return [
|
|
1213
|
+
T,
|
|
1214
|
+
l,
|
|
1215
|
+
R
|
|
1216
|
+
];
|
|
1217
|
+
}
|
|
1218
|
+
(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), r.exports = e.default);
|
|
1219
|
+
}(te, te.exports)), te.exports;
|
|
1220
|
+
}
|
|
1221
|
+
var ne = { exports: {} }, oe = { exports: {} }, Ae = {}, Rt;
|
|
1222
|
+
function sr() {
|
|
1223
|
+
return Rt || (Rt = 1, function(r) {
|
|
1224
|
+
Object.defineProperty(r, "__esModule", {
|
|
1225
|
+
value: !0
|
|
1226
|
+
}), Object.defineProperty(r, "normalizeLocalePath", {
|
|
1227
|
+
enumerable: !0,
|
|
1228
|
+
get: function() {
|
|
1229
|
+
return e;
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
function e(s, u) {
|
|
1233
|
+
let t;
|
|
1234
|
+
const o = s.split("/");
|
|
1235
|
+
return (u || []).some((i) => o[1] && o[1].toLowerCase() === i.toLowerCase() ? (t = i, o.splice(1, 1), s = o.join("/") || "/", !0) : !1), {
|
|
1236
|
+
pathname: s,
|
|
1237
|
+
detectedLocale: t
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
}(Ae)), Ae;
|
|
1241
|
+
}
|
|
1242
|
+
var bt;
|
|
1243
|
+
function cr() {
|
|
1244
|
+
return bt || (bt = 1, function(r, e) {
|
|
1245
|
+
Object.defineProperty(e, "__esModule", {
|
|
1246
|
+
value: !0
|
|
1247
|
+
}), Object.defineProperty(e, "normalizeLocalePath", {
|
|
1248
|
+
enumerable: !0,
|
|
1249
|
+
get: function() {
|
|
1250
|
+
return s;
|
|
1251
|
+
}
|
|
1252
|
+
});
|
|
1253
|
+
const s = (u, t) => process.env.__NEXT_I18N_SUPPORT ? sr().normalizeLocalePath(u, t) : {
|
|
1254
|
+
pathname: u,
|
|
1255
|
+
detectedLocale: void 0
|
|
1256
|
+
};
|
|
1257
|
+
(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), r.exports = e.default);
|
|
1258
|
+
}(oe, oe.exports)), oe.exports;
|
|
1259
|
+
}
|
|
1260
|
+
var ie = { exports: {} }, Ue = {}, Et;
|
|
1261
|
+
function lr() {
|
|
1262
|
+
return Et || (Et = 1, function(r) {
|
|
1263
|
+
Object.defineProperty(r, "__esModule", {
|
|
1264
|
+
value: !0
|
|
1265
|
+
}), Object.defineProperty(r, "detectDomainLocale", {
|
|
1266
|
+
enumerable: !0,
|
|
1267
|
+
get: function() {
|
|
1268
|
+
return e;
|
|
1269
|
+
}
|
|
1270
|
+
});
|
|
1271
|
+
function e(s, u, t) {
|
|
1272
|
+
if (s) {
|
|
1273
|
+
t && (t = t.toLowerCase());
|
|
1274
|
+
for (const n of s) {
|
|
1275
|
+
var o, i;
|
|
1276
|
+
const a = (o = n.domain) == null ? void 0 : o.split(":", 1)[0].toLowerCase();
|
|
1277
|
+
if (u === a || t === n.defaultLocale.toLowerCase() || (i = n.locales) != null && i.some((c) => c.toLowerCase() === t))
|
|
1278
|
+
return n;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}(Ue)), Ue;
|
|
1283
|
+
}
|
|
1284
|
+
var Ot;
|
|
1285
|
+
function fr() {
|
|
1286
|
+
return Ot || (Ot = 1, function(r, e) {
|
|
1287
|
+
Object.defineProperty(e, "__esModule", {
|
|
1288
|
+
value: !0
|
|
1289
|
+
}), Object.defineProperty(e, "detectDomainLocale", {
|
|
1290
|
+
enumerable: !0,
|
|
1291
|
+
get: function() {
|
|
1292
|
+
return s;
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
const s = function() {
|
|
1296
|
+
for (var u = arguments.length, t = new Array(u), o = 0; o < u; o++)
|
|
1297
|
+
t[o] = arguments[o];
|
|
1298
|
+
if (process.env.__NEXT_I18N_SUPPORT)
|
|
1299
|
+
return lr().detectDomainLocale(...t);
|
|
1300
|
+
};
|
|
1301
|
+
(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), r.exports = e.default);
|
|
1302
|
+
}(ie, ie.exports)), ie.exports;
|
|
1303
|
+
}
|
|
1304
|
+
var Nt;
|
|
1305
|
+
function dr() {
|
|
1306
|
+
return Nt || (Nt = 1, function(r, e) {
|
|
1307
|
+
Object.defineProperty(e, "__esModule", {
|
|
1308
|
+
value: !0
|
|
1309
|
+
}), Object.defineProperty(e, "getDomainLocale", {
|
|
1310
|
+
enumerable: !0,
|
|
1311
|
+
get: function() {
|
|
1312
|
+
return t;
|
|
1313
|
+
}
|
|
1314
|
+
});
|
|
1315
|
+
const s = le(), u = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
1316
|
+
function t(o, i, n, a) {
|
|
1317
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
1318
|
+
const c = cr().normalizeLocalePath, d = fr().detectDomainLocale, h = i || c(o, n).detectedLocale, m = d(a, void 0, h);
|
|
1319
|
+
if (m) {
|
|
1320
|
+
const p = "http" + (m.http ? "" : "s") + "://", b = h === m.defaultLocale ? "" : "/" + h;
|
|
1321
|
+
return "" + p + m.domain + (0, s.normalizePathTrailingSlash)("" + u + b + o);
|
|
1322
|
+
}
|
|
1323
|
+
return !1;
|
|
1324
|
+
} else
|
|
1325
|
+
return !1;
|
|
1326
|
+
}
|
|
1327
|
+
(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), r.exports = e.default);
|
|
1328
|
+
}(ne, ne.exports)), ne.exports;
|
|
1329
|
+
}
|
|
1330
|
+
var ae = { exports: {} }, wt;
|
|
1331
|
+
function hr() {
|
|
1332
|
+
return wt || (wt = 1, function(r, e) {
|
|
1333
|
+
Object.defineProperty(e, "__esModule", {
|
|
1334
|
+
value: !0
|
|
1335
|
+
}), Object.defineProperty(e, "addBasePath", {
|
|
1336
|
+
enumerable: !0,
|
|
1337
|
+
get: function() {
|
|
1338
|
+
return o;
|
|
1339
|
+
}
|
|
1340
|
+
});
|
|
1341
|
+
const s = Ut(), u = le(), t = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
1342
|
+
function o(i, n) {
|
|
1343
|
+
return (0, u.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !n ? i : (0, s.addPathPrefix)(i, t));
|
|
1344
|
+
}
|
|
1345
|
+
(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), r.exports = e.default);
|
|
1346
|
+
}(ae, ae.exports)), ae.exports;
|
|
1347
|
+
}
|
|
1348
|
+
var ue = { exports: {} }, Tt;
|
|
1349
|
+
function pr() {
|
|
1350
|
+
return Tt || (Tt = 1, function(r, e) {
|
|
1351
|
+
Object.defineProperty(e, "__esModule", {
|
|
1352
|
+
value: !0
|
|
1353
|
+
});
|
|
1354
|
+
function s(p, b) {
|
|
1355
|
+
for (var l in b)
|
|
1356
|
+
Object.defineProperty(p, l, {
|
|
1357
|
+
enumerable: !0,
|
|
1358
|
+
get: b[l]
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
s(e, {
|
|
1362
|
+
ACTION_FAST_REFRESH: function() {
|
|
1363
|
+
return a;
|
|
1364
|
+
},
|
|
1365
|
+
ACTION_NAVIGATE: function() {
|
|
1366
|
+
return t;
|
|
1367
|
+
},
|
|
1368
|
+
ACTION_PREFETCH: function() {
|
|
1369
|
+
return n;
|
|
1370
|
+
},
|
|
1371
|
+
ACTION_REFRESH: function() {
|
|
1372
|
+
return u;
|
|
1373
|
+
},
|
|
1374
|
+
ACTION_RESTORE: function() {
|
|
1375
|
+
return o;
|
|
1376
|
+
},
|
|
1377
|
+
ACTION_SERVER_ACTION: function() {
|
|
1378
|
+
return c;
|
|
1379
|
+
},
|
|
1380
|
+
ACTION_SERVER_PATCH: function() {
|
|
1381
|
+
return i;
|
|
1382
|
+
},
|
|
1383
|
+
PrefetchCacheEntryStatus: function() {
|
|
1384
|
+
return h;
|
|
1385
|
+
},
|
|
1386
|
+
PrefetchKind: function() {
|
|
1387
|
+
return d;
|
|
1388
|
+
},
|
|
1389
|
+
isThenable: function() {
|
|
1390
|
+
return m;
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
const u = "refresh", t = "navigate", o = "restore", i = "server-patch", n = "prefetch", a = "fast-refresh", c = "server-action";
|
|
1394
|
+
var d;
|
|
1395
|
+
(function(p) {
|
|
1396
|
+
p.AUTO = "auto", p.FULL = "full", p.TEMPORARY = "temporary";
|
|
1397
|
+
})(d || (d = {}));
|
|
1398
|
+
var h;
|
|
1399
|
+
(function(p) {
|
|
1400
|
+
p.fresh = "fresh", p.reusable = "reusable", p.expired = "expired", p.stale = "stale";
|
|
1401
|
+
})(h || (h = {}));
|
|
1402
|
+
function m(p) {
|
|
1403
|
+
return p && (typeof p == "object" || typeof p == "function") && typeof p.then == "function";
|
|
1404
|
+
}
|
|
1405
|
+
(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), r.exports = e.default);
|
|
1406
|
+
}(ue, ue.exports)), ue.exports;
|
|
1407
|
+
}
|
|
1408
|
+
(function(r, e) {
|
|
1409
|
+
"use client";
|
|
1410
|
+
Object.defineProperty(e, "__esModule", {
|
|
1411
|
+
value: !0
|
|
1412
|
+
}), Object.defineProperty(e, "default", {
|
|
1413
|
+
enumerable: !0,
|
|
1414
|
+
get: function() {
|
|
1415
|
+
return E;
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
1418
|
+
const s = F, u = Wt, t = /* @__PURE__ */ s._(se), o = rr(), i = Ct(), n = jt(), a = ce(), c = or(), d = ir(), h = Dt, m = ur(), p = dr(), b = hr(), l = pr(), _ = /* @__PURE__ */ new Set();
|
|
1419
|
+
function y(P, g, w, S, j, C) {
|
|
1420
|
+
if (typeof window > "u" || !C && !(0, i.isLocalURL)(g))
|
|
1421
|
+
return;
|
|
1422
|
+
if (!S.bypassPrefetchedCheck) {
|
|
1423
|
+
const z = (
|
|
1424
|
+
// Let the link's locale prop override the default router locale.
|
|
1425
|
+
typeof S.locale < "u" ? S.locale : "locale" in P ? P.locale : void 0
|
|
1426
|
+
), W = g + "%" + w + "%" + z;
|
|
1427
|
+
if (_.has(W))
|
|
1428
|
+
return;
|
|
1429
|
+
_.add(W);
|
|
1430
|
+
}
|
|
1431
|
+
const $ = C ? P.prefetch(g, j) : P.prefetch(g, w, S);
|
|
1432
|
+
Promise.resolve($).catch((z) => {
|
|
1433
|
+
if (process.env.NODE_ENV !== "production")
|
|
1434
|
+
throw z;
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
function T(P) {
|
|
1438
|
+
const w = P.currentTarget.getAttribute("target");
|
|
1439
|
+
return w && w !== "_self" || P.metaKey || P.ctrlKey || P.shiftKey || P.altKey || // triggers resource download
|
|
1440
|
+
P.nativeEvent && P.nativeEvent.which === 2;
|
|
1441
|
+
}
|
|
1442
|
+
function R(P, g, w, S, j, C, $, z, W) {
|
|
1443
|
+
const { nodeName: fe } = P.currentTarget;
|
|
1444
|
+
if (fe.toUpperCase() === "A" && (T(P) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.
|
|
1445
|
+
!W && !(0, i.isLocalURL)(w)))
|
|
1446
|
+
return;
|
|
1447
|
+
P.preventDefault();
|
|
1448
|
+
const G = () => {
|
|
1449
|
+
const A = $ ?? !0;
|
|
1450
|
+
"beforePopState" in g ? g[j ? "replace" : "push"](w, S, {
|
|
1451
|
+
shallow: C,
|
|
1452
|
+
locale: z,
|
|
1453
|
+
scroll: A
|
|
1454
|
+
}) : g[j ? "replace" : "push"](S || w, {
|
|
1455
|
+
scroll: A
|
|
1456
|
+
});
|
|
1457
|
+
};
|
|
1458
|
+
W ? t.default.startTransition(G) : G();
|
|
1459
|
+
}
|
|
1460
|
+
function f(P) {
|
|
1461
|
+
return typeof P == "string" ? P : (0, n.formatUrl)(P);
|
|
1462
|
+
}
|
|
1463
|
+
const E = /* @__PURE__ */ t.default.forwardRef(function(g, w) {
|
|
1464
|
+
let S;
|
|
1465
|
+
const { href: j, as: C, children: $, prefetch: z = null, passHref: W, replace: fe, shallow: ze, scroll: G, locale: A, onClick: de, onMouseEnter: he, onTouchStart: He, legacyBehavior: I = !1, ...xt } = g;
|
|
1466
|
+
S = $, I && (typeof S == "string" || typeof S == "number") && (S = /* @__PURE__ */ (0, u.jsx)("a", {
|
|
1467
|
+
children: S
|
|
1468
|
+
}));
|
|
1469
|
+
const L = t.default.useContext(d.RouterContext), kt = t.default.useContext(h.AppRouterContext), U = L ?? kt, D = !L, V = z !== !1, X = z === null ? l.PrefetchKind.AUTO : l.PrefetchKind.FULL;
|
|
1470
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1471
|
+
let O = function(N) {
|
|
1472
|
+
return new Error("Failed prop type: The prop `" + N.key + "` expects a " + N.expected + " in `<Link>`, but got `" + N.actual + "` instead." + (typeof window < "u" ? `
|
|
1473
|
+
Open your browser's console to view the Component stack trace.` : ""));
|
|
1474
|
+
};
|
|
1475
|
+
Object.keys({
|
|
1476
|
+
href: !0
|
|
1477
|
+
}).forEach((N) => {
|
|
1478
|
+
if (N === "href" && (g[N] == null || typeof g[N] != "string" && typeof g[N] != "object"))
|
|
1479
|
+
throw O({
|
|
1480
|
+
key: N,
|
|
1481
|
+
expected: "`string` or `object`",
|
|
1482
|
+
actual: g[N] === null ? "null" : typeof g[N]
|
|
1483
|
+
});
|
|
1484
|
+
}), Object.keys({
|
|
1485
|
+
as: !0,
|
|
1486
|
+
replace: !0,
|
|
1487
|
+
scroll: !0,
|
|
1488
|
+
shallow: !0,
|
|
1489
|
+
passHref: !0,
|
|
1490
|
+
prefetch: !0,
|
|
1491
|
+
locale: !0,
|
|
1492
|
+
onClick: !0,
|
|
1493
|
+
onMouseEnter: !0,
|
|
1494
|
+
onTouchStart: !0,
|
|
1495
|
+
legacyBehavior: !0
|
|
1496
|
+
}).forEach((N) => {
|
|
1497
|
+
const k = typeof g[N];
|
|
1498
|
+
if (N === "as") {
|
|
1499
|
+
if (g[N] && k !== "string" && k !== "object")
|
|
1500
|
+
throw O({
|
|
1501
|
+
key: N,
|
|
1502
|
+
expected: "`string` or `object`",
|
|
1503
|
+
actual: k
|
|
1504
|
+
});
|
|
1505
|
+
} else if (N === "locale") {
|
|
1506
|
+
if (g[N] && k !== "string")
|
|
1507
|
+
throw O({
|
|
1508
|
+
key: N,
|
|
1509
|
+
expected: "`string`",
|
|
1510
|
+
actual: k
|
|
1511
|
+
});
|
|
1512
|
+
} else if (N === "onClick" || N === "onMouseEnter" || N === "onTouchStart") {
|
|
1513
|
+
if (g[N] && k !== "function")
|
|
1514
|
+
throw O({
|
|
1515
|
+
key: N,
|
|
1516
|
+
expected: "`function`",
|
|
1517
|
+
actual: k
|
|
1518
|
+
});
|
|
1519
|
+
} else if ((N === "replace" || N === "scroll" || N === "shallow" || N === "passHref" || N === "prefetch" || N === "legacyBehavior") && g[N] != null && k !== "boolean")
|
|
1520
|
+
throw O({
|
|
1521
|
+
key: N,
|
|
1522
|
+
expected: "`boolean`",
|
|
1523
|
+
actual: k
|
|
1524
|
+
});
|
|
1525
|
+
});
|
|
1526
|
+
const Ge = t.default.useRef(!1);
|
|
1527
|
+
g.prefetch && !Ge.current && !D && (Ge.current = !0, console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"));
|
|
1528
|
+
}
|
|
1529
|
+
if (process.env.NODE_ENV !== "production" && D && !C) {
|
|
1530
|
+
let O;
|
|
1531
|
+
if (typeof j == "string" ? O = j : typeof j == "object" && typeof j.pathname == "string" && (O = j.pathname), O && O.split("/").some((K) => K.startsWith("[") && K.endsWith("]")))
|
|
1532
|
+
throw new Error("Dynamic href `" + O + "` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href");
|
|
1533
|
+
}
|
|
1534
|
+
const { href: x, as: q } = t.default.useMemo(() => {
|
|
1535
|
+
if (!L) {
|
|
1536
|
+
const K = f(j);
|
|
1537
|
+
return {
|
|
1538
|
+
href: K,
|
|
1539
|
+
as: C ? f(C) : K
|
|
1540
|
+
};
|
|
1541
|
+
}
|
|
1542
|
+
const [O, H] = (0, o.resolveHref)(L, j, !0);
|
|
1543
|
+
return {
|
|
1544
|
+
href: O,
|
|
1545
|
+
as: C ? (0, o.resolveHref)(L, C) : H || O
|
|
1546
|
+
};
|
|
1547
|
+
}, [
|
|
1548
|
+
L,
|
|
1549
|
+
j,
|
|
1550
|
+
C
|
|
1551
|
+
]), We = t.default.useRef(x), $e = t.default.useRef(q);
|
|
1552
|
+
let M;
|
|
1553
|
+
if (I)
|
|
1554
|
+
if (process.env.NODE_ENV === "development") {
|
|
1555
|
+
de && console.warn('"onClick" was passed to <Link> with `href` of `' + j + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'), he && console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + j + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
|
|
1556
|
+
try {
|
|
1557
|
+
M = t.default.Children.only(S);
|
|
1558
|
+
} catch {
|
|
1559
|
+
throw S ? new Error("Multiple children were passed to <Link> with `href` of `" + j + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window < "u" ? `
|
|
1560
|
+
Open your browser's console to view the Component stack trace.` : "")) : new Error("No children were passed to <Link> with `href` of `" + j + "` but one child is required https://nextjs.org/docs/messages/link-no-children");
|
|
1561
|
+
}
|
|
1562
|
+
} else
|
|
1563
|
+
M = t.default.Children.only(S);
|
|
1564
|
+
else if (process.env.NODE_ENV === "development" && (S == null ? void 0 : S.type) === "a")
|
|
1565
|
+
throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
1566
|
+
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);
|
|
1567
|
+
const B = I ? M && typeof M == "object" && M.ref : w, [Be, Ke, Fe] = (0, m.useIntersection)({
|
|
1568
|
+
rootMargin: "200px"
|
|
1569
|
+
}), zt = t.default.useCallback((O) => {
|
|
1570
|
+
($e.current !== q || We.current !== x) && (Fe(), $e.current = q, We.current = x), Be(O), B && (typeof B == "function" ? B(O) : typeof B == "object" && (B.current = O));
|
|
1571
|
+
}, [
|
|
1572
|
+
q,
|
|
1573
|
+
B,
|
|
1574
|
+
x,
|
|
1575
|
+
Fe,
|
|
1576
|
+
Be
|
|
1577
|
+
]);
|
|
1578
|
+
t.default.useEffect(() => {
|
|
1579
|
+
process.env.NODE_ENV === "production" && U && (!Ke || !V || y(U, x, q, {
|
|
1580
|
+
locale: A
|
|
1581
|
+
}, {
|
|
1582
|
+
kind: X
|
|
1583
|
+
}, D));
|
|
1584
|
+
}, [
|
|
1585
|
+
q,
|
|
1586
|
+
x,
|
|
1587
|
+
Ke,
|
|
1588
|
+
A,
|
|
1589
|
+
V,
|
|
1590
|
+
L == null ? void 0 : L.locale,
|
|
1591
|
+
U,
|
|
1592
|
+
D,
|
|
1593
|
+
X
|
|
1594
|
+
]);
|
|
1595
|
+
const Q = {
|
|
1596
|
+
ref: zt,
|
|
1597
|
+
onClick(O) {
|
|
1598
|
+
if (process.env.NODE_ENV !== "production" && !O)
|
|
1599
|
+
throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');
|
|
1600
|
+
!I && typeof de == "function" && de(O), I && M.props && typeof M.props.onClick == "function" && M.props.onClick(O), U && (O.defaultPrevented || R(O, U, x, q, fe, ze, G, A, D));
|
|
1601
|
+
},
|
|
1602
|
+
onMouseEnter(O) {
|
|
1603
|
+
!I && typeof he == "function" && he(O), I && M.props && typeof M.props.onMouseEnter == "function" && M.props.onMouseEnter(O), U && ((!V || process.env.NODE_ENV === "development") && D || y(U, x, q, {
|
|
1604
|
+
locale: A,
|
|
1605
|
+
priority: !0,
|
|
1606
|
+
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
1607
|
+
bypassPrefetchedCheck: !0
|
|
1608
|
+
}, {
|
|
1609
|
+
kind: X
|
|
1610
|
+
}, D));
|
|
1611
|
+
},
|
|
1612
|
+
onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function(H) {
|
|
1613
|
+
!I && typeof He == "function" && He(H), I && M.props && typeof M.props.onTouchStart == "function" && M.props.onTouchStart(H), U && (!V && D || y(U, x, q, {
|
|
1614
|
+
locale: A,
|
|
1615
|
+
priority: !0,
|
|
1616
|
+
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
1617
|
+
bypassPrefetchedCheck: !0
|
|
1618
|
+
}, {
|
|
1619
|
+
kind: X
|
|
1620
|
+
}, D));
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
if ((0, a.isAbsoluteUrl)(q))
|
|
1624
|
+
Q.href = q;
|
|
1625
|
+
else if (!I || W || M.type === "a" && !("href" in M.props)) {
|
|
1626
|
+
const O = typeof A < "u" ? A : L == null ? void 0 : L.locale, H = (L == null ? void 0 : L.isLocaleDomain) && (0, p.getDomainLocale)(q, O, L == null ? void 0 : L.locales, L == null ? void 0 : L.domainLocales);
|
|
1627
|
+
Q.href = H || (0, b.addBasePath)((0, c.addLocale)(q, O, L == null ? void 0 : L.defaultLocale));
|
|
1628
|
+
}
|
|
1629
|
+
return I ? /* @__PURE__ */ t.default.cloneElement(M, Q) : /* @__PURE__ */ (0, u.jsx)("a", {
|
|
1630
|
+
...xt,
|
|
1631
|
+
...Q,
|
|
1632
|
+
children: S
|
|
1633
|
+
});
|
|
1634
|
+
});
|
|
1635
|
+
(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), r.exports = e.default);
|
|
1636
|
+
})(De, De.exports);
|
|
1637
|
+
var mr = De.exports, _r = mr;
|
|
1638
|
+
const br = /* @__PURE__ */ Ht(_r);
|
|
1639
|
+
export {
|
|
1640
|
+
br as L,
|
|
1641
|
+
F as _,
|
|
1642
|
+
xe as a,
|
|
1643
|
+
Dt as b,
|
|
1644
|
+
ir as r,
|
|
1645
|
+
It as s
|
|
1646
|
+
};
|