@jigowatts/jigowatts-ui 1.1.0 → 1.1.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.
@@ -1,2205 +0,0 @@
1
- import { _ as he, a as Fe, r as dt, b as pt, s as gt } from "./link-DKxv6PwW.js";
2
- import st from "react/jsx-runtime";
3
- import ge from "react";
4
- import ht from "react-dom";
5
- var mt = {}, Ve = {}, Re = {};
6
- (function(y) {
7
- Object.defineProperty(y, "__esModule", {
8
- value: !0
9
- }), Object.defineProperty(y, "warnOnce", {
10
- enumerable: !0,
11
- get: function() {
12
- return e;
13
- }
14
- });
15
- let e = (b) => {
16
- };
17
- if (process.env.NODE_ENV !== "production") {
18
- const b = /* @__PURE__ */ new Set();
19
- e = (g) => {
20
- b.has(g) || console.warn(g), b.add(g);
21
- };
22
- }
23
- })(Re);
24
- var ut = {};
25
- (function(y) {
26
- Object.defineProperty(y, "__esModule", {
27
- value: !0
28
- }), Object.defineProperty(y, "getImageBlurSvg", {
29
- enumerable: !0,
30
- get: function() {
31
- return e;
32
- }
33
- });
34
- function e(b) {
35
- let { widthInt: g, heightInt: v, blurWidth: o, blurHeight: u, blurDataURL: c, objectFit: R } = b;
36
- const L = 20, I = o ? o * 40 : g, E = u ? u * 40 : v, C = I && E ? "viewBox='0 0 " + I + " " + E + "'" : "", p = C ? "none" : R === "contain" ? "xMidYMid" : R === "cover" ? "xMidYMid slice" : "none";
37
- return "%3Csvg xmlns='http://www.w3.org/2000/svg' " + C + "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" + L + "'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='" + L + "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" + p + "' style='filter: url(%23b);' href='" + c + "'/%3E%3C/svg%3E";
38
- }
39
- })(ut);
40
- var Se = {};
41
- (function(y) {
42
- Object.defineProperty(y, "__esModule", {
43
- value: !0
44
- });
45
- function e(v, o) {
46
- for (var u in o)
47
- Object.defineProperty(v, u, {
48
- enumerable: !0,
49
- get: o[u]
50
- });
51
- }
52
- e(y, {
53
- VALID_LOADERS: function() {
54
- return b;
55
- },
56
- imageConfigDefault: function() {
57
- return g;
58
- }
59
- });
60
- const b = [
61
- "default",
62
- "imgix",
63
- "cloudinary",
64
- "akamai",
65
- "custom"
66
- ], g = {
67
- deviceSizes: [
68
- 640,
69
- 750,
70
- 828,
71
- 1080,
72
- 1200,
73
- 1920,
74
- 2048,
75
- 3840
76
- ],
77
- imageSizes: [
78
- 16,
79
- 32,
80
- 48,
81
- 64,
82
- 96,
83
- 128,
84
- 256,
85
- 384
86
- ],
87
- path: "/_next/image",
88
- loader: "default",
89
- loaderFile: "",
90
- domains: [],
91
- disableStaticImages: !1,
92
- minimumCacheTTL: 60,
93
- formats: [
94
- "image/webp"
95
- ],
96
- dangerouslyAllowSVG: !1,
97
- contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
98
- contentDispositionType: "inline",
99
- remotePatterns: [],
100
- unoptimized: !1
101
- };
102
- })(Se);
103
- (function(y) {
104
- Object.defineProperty(y, "__esModule", {
105
- value: !0
106
- }), Object.defineProperty(y, "getImgProps", {
107
- enumerable: !0,
108
- get: function() {
109
- return p;
110
- }
111
- });
112
- const e = Re, b = ut, g = Se, v = [
113
- "lazy",
114
- "eager",
115
- void 0
116
- ];
117
- function o(h) {
118
- return h.default !== void 0;
119
- }
120
- function u(h) {
121
- return h.src !== void 0;
122
- }
123
- function c(h) {
124
- return typeof h == "object" && (o(h) || u(h));
125
- }
126
- const R = /* @__PURE__ */ new Map();
127
- let L;
128
- function I(h) {
129
- return typeof h > "u" ? h : typeof h == "number" ? Number.isFinite(h) ? h : NaN : typeof h == "string" && /^[0-9]+$/.test(h) ? parseInt(h, 10) : NaN;
130
- }
131
- function E(h, m, d) {
132
- let { deviceSizes: a, allSizes: A } = h;
133
- if (d) {
134
- const s = /(^|\s)(1?\d?\d)vw/g, S = [];
135
- for (let _; _ = s.exec(d); _)
136
- S.push(parseInt(_[2]));
137
- if (S.length) {
138
- const _ = Math.min(...S) * 0.01;
139
- return {
140
- widths: A.filter((w) => w >= a[0] * _),
141
- kind: "w"
142
- };
143
- }
144
- return {
145
- widths: A,
146
- kind: "w"
147
- };
148
- }
149
- return typeof m != "number" ? {
150
- widths: a,
151
- kind: "w"
152
- } : {
153
- widths: [
154
- ...new Set(
155
- // > This means that most OLED screens that say they are 3x resolution,
156
- // > are actually 3x in the green color, but only 1.5x in the red and
157
- // > blue colors. Showing a 3x resolution image in the app vs a 2x
158
- // > resolution image will be visually the same, though the 3x image
159
- // > takes significantly more data. Even true 3x resolution screens are
160
- // > wasteful as the human eye cannot see that level of detail without
161
- // > something like a magnifying glass.
162
- // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
163
- [
164
- m,
165
- m * 2
166
- /*, width * 3*/
167
- ].map((s) => A.find((S) => S >= s) || A[A.length - 1])
168
- )
169
- ],
170
- kind: "x"
171
- };
172
- }
173
- function C(h) {
174
- let { config: m, src: d, unoptimized: a, width: A, quality: t, sizes: s, loader: S } = h;
175
- if (a)
176
- return {
177
- src: d,
178
- srcSet: void 0,
179
- sizes: void 0
180
- };
181
- const { widths: _, kind: w } = E(m, A, s), T = _.length - 1;
182
- return {
183
- sizes: !s && w === "w" ? "100vw" : s,
184
- srcSet: _.map((j, O) => S({
185
- config: m,
186
- src: d,
187
- quality: t,
188
- width: j
189
- }) + " " + (w === "w" ? j : O + 1) + w).join(", "),
190
- // It's intended to keep `src` the last attribute because React updates
191
- // attributes in order. If we keep `src` the first one, Safari will
192
- // immediately start to fetch `src`, before `sizes` and `srcSet` are even
193
- // updated by React. That causes multiple unnecessary requests if `srcSet`
194
- // and `sizes` are defined.
195
- // This bug cannot be reproduced in Chrome or Firefox.
196
- src: S({
197
- config: m,
198
- src: d,
199
- quality: t,
200
- width: _[T]
201
- })
202
- };
203
- }
204
- function p(h, m) {
205
- let { src: d, sizes: a, unoptimized: A = !1, priority: t = !1, loading: s, className: S, quality: _, width: w, height: T, fill: j = !1, style: O, overrideSrc: V, onLoad: H, onLoadingComplete: U, placeholder: N = "empty", blurDataURL: q, fetchPriority: G, layout: Q, objectFit: K, objectPosition: k, lazyBoundary: z, lazyRoot: re, ...ie } = h;
206
- const { imgConf: W, showAltText: F, blurComplete: se, defaultLoader: te } = m;
207
- let n, X = W || g.imageConfigDefault;
208
- if ("allSizes" in X)
209
- n = X;
210
- else {
211
- const P = [
212
- ...X.deviceSizes,
213
- ...X.imageSizes
214
- ].sort((D, l) => D - l), f = X.deviceSizes.sort((D, l) => D - l);
215
- n = {
216
- ...X,
217
- allSizes: P,
218
- deviceSizes: f
219
- };
220
- }
221
- if (typeof te > "u")
222
- throw new Error(`images.loaderFile detected but the file is missing default export.
223
- Read more: https://nextjs.org/docs/messages/invalid-images-config`);
224
- let ae = ie.loader || te;
225
- delete ie.loader, delete ie.srcSet;
226
- const de = "__next_img_default" in ae;
227
- if (de) {
228
- if (n.loader === "custom")
229
- throw new Error('Image with src "' + d + `" is missing "loader" prop.
230
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`);
231
- } else {
232
- const P = ae;
233
- ae = (f) => {
234
- const { config: D, ...l } = f;
235
- return P(l);
236
- };
237
- }
238
- if (Q) {
239
- Q === "fill" && (j = !0);
240
- const P = {
241
- intrinsic: {
242
- maxWidth: "100%",
243
- height: "auto"
244
- },
245
- responsive: {
246
- width: "100%",
247
- height: "auto"
248
- }
249
- }, f = {
250
- responsive: "100vw",
251
- fill: "100vw"
252
- }, D = P[Q];
253
- D && (O = {
254
- ...O,
255
- ...D
256
- });
257
- const l = f[Q];
258
- l && !a && (a = l);
259
- }
260
- let i = "", r = I(w), Z = I(T), x, B;
261
- if (c(d)) {
262
- const P = o(d) ? d.default : d;
263
- if (!P.src)
264
- throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received " + JSON.stringify(P));
265
- if (!P.height || !P.width)
266
- throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received " + JSON.stringify(P));
267
- if (x = P.blurWidth, B = P.blurHeight, q = q || P.blurDataURL, i = P.src, !j) {
268
- if (!r && !Z)
269
- r = P.width, Z = P.height;
270
- else if (r && !Z) {
271
- const f = r / P.width;
272
- Z = Math.round(P.height * f);
273
- } else if (!r && Z) {
274
- const f = Z / P.height;
275
- r = Math.round(P.width * f);
276
- }
277
- }
278
- }
279
- d = typeof d == "string" ? d : i;
280
- let ce = !t && (s === "lazy" || typeof s > "u");
281
- (!d || d.startsWith("data:") || d.startsWith("blob:")) && (A = !0, ce = !1), n.unoptimized && (A = !0), de && d.endsWith(".svg") && !n.dangerouslyAllowSVG && (A = !0), t && (G = "high");
282
- const fe = I(_);
283
- if (process.env.NODE_ENV !== "production") {
284
- if (n.output === "export" && de && !A)
285
- throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");
286
- if (!d)
287
- A = !0;
288
- else if (j) {
289
- if (w)
290
- throw new Error('Image with src "' + d + '" has both "width" and "fill" properties. Only one should be used.');
291
- if (T)
292
- throw new Error('Image with src "' + d + '" has both "height" and "fill" properties. Only one should be used.');
293
- if (O != null && O.position && O.position !== "absolute")
294
- throw new Error('Image with src "' + d + '" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');
295
- if (O != null && O.width && O.width !== "100%")
296
- throw new Error('Image with src "' + d + '" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');
297
- if (O != null && O.height && O.height !== "100%")
298
- throw new Error('Image with src "' + d + '" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.');
299
- } else {
300
- if (typeof r > "u")
301
- throw new Error('Image with src "' + d + '" is missing required "width" property.');
302
- if (isNaN(r))
303
- throw new Error('Image with src "' + d + '" has invalid "width" property. Expected a numeric value in pixels but received "' + w + '".');
304
- if (typeof Z > "u")
305
- throw new Error('Image with src "' + d + '" is missing required "height" property.');
306
- if (isNaN(Z))
307
- throw new Error('Image with src "' + d + '" has invalid "height" property. Expected a numeric value in pixels but received "' + T + '".');
308
- }
309
- if (!v.includes(s))
310
- throw new Error('Image with src "' + d + '" has invalid "loading" property. Provided "' + s + '" should be one of ' + v.map(String).join(",") + ".");
311
- if (t && s === "lazy")
312
- throw new Error('Image with src "' + d + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`);
313
- if (N !== "empty" && N !== "blur" && !N.startsWith("data:image/"))
314
- throw new Error('Image with src "' + d + '" has invalid "placeholder" property "' + N + '".');
315
- if (N !== "empty" && r && Z && r * Z < 1600 && (0, e.warnOnce)('Image with src "' + d + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'), N === "blur" && !q) {
316
- const P = [
317
- "jpeg",
318
- "png",
319
- "webp",
320
- "avif"
321
- ];
322
- throw new Error('Image with src "' + d + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
323
- Possible solutions:
324
- - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
325
- - Change the "src" property to a static import with one of the supported file types: ` + P.join(",") + ` (animated images not supported)
326
- - Remove the "placeholder" property, effectively no blur effect
327
- Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`);
328
- }
329
- if ("ref" in ie && (0, e.warnOnce)('Image with src "' + d + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.'), !A && !de) {
330
- const P = ae({
331
- config: n,
332
- src: d,
333
- width: r || 400,
334
- quality: fe || 75
335
- });
336
- let f;
337
- try {
338
- f = new URL(P);
339
- } catch {
340
- }
341
- (P === d || f && f.pathname === d && !f.search) && (0, e.warnOnce)('Image with src "' + d + `" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
342
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`);
343
- }
344
- U && (0, e.warnOnce)('Image with src "' + d + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
345
- for (const [P, f] of Object.entries({
346
- layout: Q,
347
- objectFit: K,
348
- objectPosition: k,
349
- lazyBoundary: z,
350
- lazyRoot: re
351
- }))
352
- f && (0, e.warnOnce)('Image with src "' + d + '" has legacy prop "' + P + `". Did you forget to run the codemod?
353
- Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);
354
- if (typeof window < "u" && !L && window.PerformanceObserver) {
355
- L = new PerformanceObserver((P) => {
356
- for (const D of P.getEntries()) {
357
- var f;
358
- const l = (D == null || (f = D.element) == null ? void 0 : f.src) || "", $ = R.get(l);
359
- $ && !$.priority && $.placeholder === "empty" && !$.src.startsWith("data:") && !$.src.startsWith("blob:") && (0, e.warnOnce)('Image with src "' + $.src + `" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
360
- Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
361
- }
362
- });
363
- try {
364
- L.observe({
365
- type: "largest-contentful-paint",
366
- buffered: !0
367
- });
368
- } catch (P) {
369
- console.error(P);
370
- }
371
- }
372
- }
373
- const J = Object.assign(j ? {
374
- position: "absolute",
375
- height: "100%",
376
- width: "100%",
377
- left: 0,
378
- top: 0,
379
- right: 0,
380
- bottom: 0,
381
- objectFit: K,
382
- objectPosition: k
383
- } : {}, F ? {} : {
384
- color: "transparent"
385
- }, O), ee = !se && N !== "empty" ? N === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, b.getImageBlurSvg)({
386
- widthInt: r,
387
- heightInt: Z,
388
- blurWidth: x,
389
- blurHeight: B,
390
- blurDataURL: q || "",
391
- objectFit: J.objectFit
392
- }) + '")' : 'url("' + N + '")' : null;
393
- let pe = ee ? {
394
- backgroundSize: J.objectFit || "cover",
395
- backgroundPosition: J.objectPosition || "50% 50%",
396
- backgroundRepeat: "no-repeat",
397
- backgroundImage: ee
398
- } : {};
399
- process.env.NODE_ENV === "development" && pe.backgroundImage && N === "blur" && q != null && q.startsWith("/") && (pe.backgroundImage = 'url("' + q + '")');
400
- const ne = C({
401
- config: n,
402
- src: d,
403
- unoptimized: A,
404
- width: r,
405
- quality: fe,
406
- sizes: a,
407
- loader: ae
408
- });
409
- if (process.env.NODE_ENV !== "production" && typeof window < "u") {
410
- let P;
411
- try {
412
- P = new URL(ne.src);
413
- } catch {
414
- P = new URL(ne.src, window.location.href);
415
- }
416
- R.set(P.href, {
417
- src: d,
418
- priority: t,
419
- placeholder: N
420
- });
421
- }
422
- return {
423
- props: {
424
- ...ie,
425
- loading: ce ? "lazy" : s,
426
- fetchPriority: G,
427
- width: r,
428
- height: Z,
429
- decoding: "async",
430
- className: S,
431
- style: {
432
- ...J,
433
- ...pe
434
- },
435
- sizes: ne.sizes,
436
- srcSet: ne.srcSet,
437
- src: V || ne.src
438
- },
439
- meta: {
440
- unoptimized: A,
441
- priority: t,
442
- placeholder: N,
443
- fill: j
444
- }
445
- };
446
- }
447
- })(Ve);
448
- var je = { exports: {} }, _e = { exports: {} }, Ae = {}, Ke;
449
- function _t() {
450
- return Ke || (Ke = 1, function(y) {
451
- Object.defineProperty(y, "__esModule", {
452
- value: !0
453
- }), Object.defineProperty(y, "default", {
454
- enumerable: !0,
455
- get: function() {
456
- return o;
457
- }
458
- });
459
- const e = ge, b = typeof window > "u", g = b ? () => {
460
- } : e.useLayoutEffect, v = b ? () => {
461
- } : e.useEffect;
462
- function o(u) {
463
- const { headManager: c, reduceComponentsToState: R } = u;
464
- function L() {
465
- if (c && c.mountedInstances) {
466
- const E = e.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));
467
- c.updateHead(R(E, u));
468
- }
469
- }
470
- if (b) {
471
- var I;
472
- c == null || (I = c.mountedInstances) == null || I.add(u.children), L();
473
- }
474
- return g(() => {
475
- var E;
476
- return c == null || (E = c.mountedInstances) == null || E.add(u.children), () => {
477
- var C;
478
- c == null || (C = c.mountedInstances) == null || C.delete(u.children);
479
- };
480
- }), g(() => (c && (c._pendingUpdate = L), () => {
481
- c && (c._pendingUpdate = L);
482
- })), v(() => (c && c._pendingUpdate && (c._pendingUpdate(), c._pendingUpdate = null), () => {
483
- c && c._pendingUpdate && (c._pendingUpdate(), c._pendingUpdate = null);
484
- })), null;
485
- }
486
- }(Ae)), Ae;
487
- }
488
- var we = {}, We;
489
- function yt() {
490
- return We || (We = 1, function(y) {
491
- Object.defineProperty(y, "__esModule", {
492
- value: !0
493
- }), Object.defineProperty(y, "AmpStateContext", {
494
- enumerable: !0,
495
- get: function() {
496
- return g;
497
- }
498
- });
499
- const g = (/* @__PURE__ */ he._(ge)).default.createContext({});
500
- process.env.NODE_ENV !== "production" && (g.displayName = "AmpStateContext");
501
- }(we)), we;
502
- }
503
- var Ce = {}, Qe;
504
- function bt() {
505
- return Qe || (Qe = 1, function(y) {
506
- Object.defineProperty(y, "__esModule", {
507
- value: !0
508
- }), Object.defineProperty(y, "HeadManagerContext", {
509
- enumerable: !0,
510
- get: function() {
511
- return g;
512
- }
513
- });
514
- const g = (/* @__PURE__ */ he._(ge)).default.createContext({});
515
- process.env.NODE_ENV !== "production" && (g.displayName = "HeadManagerContext");
516
- }(Ce)), Ce;
517
- }
518
- var Oe = {}, Ye;
519
- function vt() {
520
- return Ye || (Ye = 1, function(y) {
521
- Object.defineProperty(y, "__esModule", {
522
- value: !0
523
- }), Object.defineProperty(y, "isInAmpMode", {
524
- enumerable: !0,
525
- get: function() {
526
- return e;
527
- }
528
- });
529
- function e(b) {
530
- let { ampFirst: g = !1, hybrid: v = !1, hasQuery: o = !1 } = b === void 0 ? {} : b;
531
- return g || v && o;
532
- }
533
- }(Oe)), Oe;
534
- }
535
- var Ze;
536
- function Rt() {
537
- return Ze || (Ze = 1, function(y, e) {
538
- "use client";
539
- Object.defineProperty(e, "__esModule", {
540
- value: !0
541
- });
542
- function b(t, s) {
543
- for (var S in s)
544
- Object.defineProperty(t, S, {
545
- enumerable: !0,
546
- get: s[S]
547
- });
548
- }
549
- b(e, {
550
- default: function() {
551
- return A;
552
- },
553
- defaultHead: function() {
554
- return C;
555
- }
556
- });
557
- const g = he, v = Fe, o = st, u = /* @__PURE__ */ v._(ge), c = /* @__PURE__ */ g._(_t()), R = yt(), L = bt(), I = vt(), E = Re;
558
- function C(t) {
559
- t === void 0 && (t = !1);
560
- const s = [
561
- /* @__PURE__ */ (0, o.jsx)("meta", {
562
- charSet: "utf-8"
563
- })
564
- ];
565
- return t || s.push(/* @__PURE__ */ (0, o.jsx)("meta", {
566
- name: "viewport",
567
- content: "width=device-width"
568
- })), s;
569
- }
570
- function p(t, s) {
571
- return typeof s == "string" || typeof s == "number" ? t : s.type === u.default.Fragment ? t.concat(
572
- // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
573
- u.default.Children.toArray(s.props.children).reduce(
574
- // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
575
- (S, _) => typeof _ == "string" || typeof _ == "number" ? S : S.concat(_),
576
- []
577
- )
578
- ) : t.concat(s);
579
- }
580
- const h = [
581
- "name",
582
- "httpEquiv",
583
- "charSet",
584
- "itemProp"
585
- ];
586
- function m() {
587
- const t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set(), _ = {};
588
- return (w) => {
589
- let T = !0, j = !1;
590
- if (w.key && typeof w.key != "number" && w.key.indexOf("$") > 0) {
591
- j = !0;
592
- const O = w.key.slice(w.key.indexOf("$") + 1);
593
- t.has(O) ? T = !1 : t.add(O);
594
- }
595
- switch (w.type) {
596
- case "title":
597
- case "base":
598
- s.has(w.type) ? T = !1 : s.add(w.type);
599
- break;
600
- case "meta":
601
- for (let O = 0, V = h.length; O < V; O++) {
602
- const H = h[O];
603
- if (w.props.hasOwnProperty(H))
604
- if (H === "charSet")
605
- S.has(H) ? T = !1 : S.add(H);
606
- else {
607
- const U = w.props[H], N = _[H] || /* @__PURE__ */ new Set();
608
- (H !== "name" || !j) && N.has(U) ? T = !1 : (N.add(U), _[H] = N);
609
- }
610
- }
611
- break;
612
- }
613
- return T;
614
- };
615
- }
616
- function d(t, s) {
617
- const { inAmpMode: S } = s;
618
- return t.reduce(p, []).reverse().concat(C(S).reverse()).filter(m()).reverse().map((_, w) => {
619
- const T = _.key || w;
620
- if (process.env.NODE_ENV !== "development" && process.env.__NEXT_OPTIMIZE_FONTS && !S && _.type === "link" && _.props.href && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
621
- [
622
- "https://fonts.googleapis.com/css",
623
- "https://use.typekit.net/"
624
- ].some((j) => _.props.href.startsWith(j))) {
625
- const j = {
626
- ..._.props || {}
627
- };
628
- return j["data-href"] = j.href, j.href = void 0, j["data-optimized-fonts"] = !0, /* @__PURE__ */ u.default.cloneElement(_, j);
629
- }
630
- if (process.env.NODE_ENV === "development")
631
- if (_.type === "script" && _.props.type !== "application/ld+json") {
632
- const j = _.props.src ? '<script> tag with src="' + _.props.src + '"' : "inline <script>";
633
- (0, E.warnOnce)("Do not add <script> tags using next/head (see " + j + `). Use next/script instead.
634
- See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
635
- } else
636
- _.type === "link" && _.props.rel === "stylesheet" && (0, E.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="' + _.props.href + `"). Use Document instead.
637
- See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
638
- return /* @__PURE__ */ u.default.cloneElement(_, {
639
- key: T
640
- });
641
- });
642
- }
643
- function a(t) {
644
- let { children: s } = t;
645
- const S = (0, u.useContext)(R.AmpStateContext), _ = (0, u.useContext)(L.HeadManagerContext);
646
- return /* @__PURE__ */ (0, o.jsx)(c.default, {
647
- reduceComponentsToState: d,
648
- headManager: _,
649
- inAmpMode: (0, I.isInAmpMode)(S),
650
- children: s
651
- });
652
- }
653
- const A = a;
654
- (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), y.exports = e.default);
655
- }(_e, _e.exports)), _e.exports;
656
- }
657
- var xe = {}, Je;
658
- function St() {
659
- return Je || (Je = 1, function(y) {
660
- Object.defineProperty(y, "__esModule", {
661
- value: !0
662
- }), Object.defineProperty(y, "ImageConfigContext", {
663
- enumerable: !0,
664
- get: function() {
665
- return v;
666
- }
667
- });
668
- const b = /* @__PURE__ */ he._(ge), g = Se, v = b.default.createContext(g.imageConfigDefault);
669
- process.env.NODE_ENV !== "production" && (v.displayName = "ImageConfigContext");
670
- }(xe)), xe;
671
- }
672
- var Pe = {}, Le = {}, Ie = { exports: {} }, et;
673
- function Et() {
674
- return et || (et = 1, (() => {
675
- var y = { 170: (v, o, u) => {
676
- const c = u(510), R = () => {
677
- if (typeof navigator < "u" && navigator.platform) {
678
- const I = navigator.platform.toLowerCase();
679
- return I === "win32" || I === "windows";
680
- }
681
- return typeof process < "u" && process.platform ? process.platform === "win32" : !1;
682
- };
683
- function L(I, E, C = !1) {
684
- return E && (E.windows === null || E.windows === void 0) && (E = { ...E, windows: R() }), c(I, E, C);
685
- }
686
- Object.assign(L, c), v.exports = L;
687
- }, 154: (v) => {
688
- const o = "\\\\/", u = `[^${o}]`, c = "\\.", R = "\\+", L = "\\?", I = "\\/", E = "(?=.)", C = "[^/]", p = `(?:${I}|$)`, h = `(?:^|${I})`, m = `${c}{1,2}${p}`, d = `(?!${c})`, a = `(?!${h}${m})`, A = `(?!${c}{0,1}${p})`, t = `(?!${m})`, s = `[^.${I}]`, S = `${C}*?`, w = { DOT_LITERAL: c, PLUS_LITERAL: R, QMARK_LITERAL: L, SLASH_LITERAL: I, ONE_CHAR: E, QMARK: C, END_ANCHOR: p, DOTS_SLASH: m, NO_DOT: d, NO_DOTS: a, NO_DOT_SLASH: A, NO_DOTS_SLASH: t, QMARK_NO_DOT: s, STAR: S, START_ANCHOR: h, SEP: "/" }, T = { ...w, SLASH_LITERAL: `[${o}]`, QMARK: u, STAR: `${u}*?`, DOTS_SLASH: `${c}{1,2}(?:[${o}]|$)`, NO_DOT: `(?!${c})`, NO_DOTS: `(?!(?:^|[${o}])${c}{1,2}(?:[${o}]|$))`, NO_DOT_SLASH: `(?!${c}{0,1}(?:[${o}]|$))`, NO_DOTS_SLASH: `(?!${c}{1,2}(?:[${o}]|$))`, QMARK_NO_DOT: `[^.${o}]`, START_ANCHOR: `(?:^|[${o}])`, END_ANCHOR: `(?:[${o}]|$)`, SEP: "\\" }, j = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
689
- v.exports = { MAX_LENGTH: 65536, POSIX_REGEX_SOURCE: j, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, extglobChars(O) {
690
- return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${O.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
691
- }, globChars(O) {
692
- return O === !0 ? T : w;
693
- } };
694
- }, 697: (v, o, u) => {
695
- const c = u(154), R = u(96), { MAX_LENGTH: L, POSIX_REGEX_SOURCE: I, REGEX_NON_SPECIAL_CHARS: E, REGEX_SPECIAL_CHARS_BACKREF: C, REPLACEMENTS: p } = c, h = (a, A) => {
696
- if (typeof A.expandRange == "function")
697
- return A.expandRange(...a, A);
698
- a.sort();
699
- const t = `[${a.join("-")}]`;
700
- try {
701
- new RegExp(t);
702
- } catch {
703
- return a.map((S) => R.escapeRegex(S)).join("..");
704
- }
705
- return t;
706
- }, m = (a, A) => `Missing ${a}: "${A}" - use "\\\\${A}" to match literal characters`, d = (a, A) => {
707
- if (typeof a != "string")
708
- throw new TypeError("Expected a string");
709
- a = p[a] || a;
710
- const t = { ...A }, s = typeof t.maxLength == "number" ? Math.min(L, t.maxLength) : L;
711
- let S = a.length;
712
- if (S > s)
713
- throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${s}`);
714
- const _ = { type: "bos", value: "", output: t.prepend || "" }, w = [_], T = t.capture ? "" : "?:", j = c.globChars(t.windows), O = c.extglobChars(j), { DOT_LITERAL: V, PLUS_LITERAL: H, SLASH_LITERAL: U, ONE_CHAR: N, DOTS_SLASH: q, NO_DOT: G, NO_DOT_SLASH: Q, NO_DOTS_SLASH: K, QMARK: k, QMARK_NO_DOT: z, STAR: re, START_ANCHOR: ie } = j, W = (f) => `(${T}(?:(?!${ie}${f.dot ? q : V}).)*?)`, F = t.dot ? "" : G, se = t.dot ? k : z;
715
- let te = t.bash === !0 ? W(t) : re;
716
- t.capture && (te = `(${te})`), typeof t.noext == "boolean" && (t.noextglob = t.noext);
717
- const n = { input: a, index: -1, start: 0, dot: t.dot === !0, consumed: "", output: "", prefix: "", backtrack: !1, negated: !1, brackets: 0, braces: 0, parens: 0, quotes: 0, globstar: !1, tokens: w };
718
- a = R.removePrefix(a, n), S = a.length;
719
- const X = [], ae = [], de = [];
720
- let i = _, r;
721
- const Z = () => n.index === S - 1, x = n.peek = (f = 1) => a[n.index + f], B = n.advance = () => a[++n.index] || "", ce = () => a.slice(n.index + 1), fe = (f = "", D = 0) => {
722
- n.consumed += f, n.index += D;
723
- }, J = (f) => {
724
- n.output += f.output != null ? f.output : f.value, fe(f.value);
725
- }, ee = () => {
726
- let f = 1;
727
- for (; x() === "!" && (x(2) !== "(" || x(3) === "?"); )
728
- B(), n.start++, f++;
729
- return f % 2 === 0 ? !1 : (n.negated = !0, n.start++, !0);
730
- }, pe = (f) => {
731
- n[f]++, de.push(f);
732
- }, ne = (f) => {
733
- n[f]--, de.pop();
734
- }, M = (f) => {
735
- if (i.type === "globstar") {
736
- const D = n.braces > 0 && (f.type === "comma" || f.type === "brace"), l = f.extglob === !0 || X.length && (f.type === "pipe" || f.type === "paren");
737
- f.type !== "slash" && f.type !== "paren" && !D && !l && (n.output = n.output.slice(0, -i.output.length), i.type = "star", i.value = "*", i.output = te, n.output += i.output);
738
- }
739
- if (X.length && f.type !== "paren" && (X[X.length - 1].inner += f.value), (f.value || f.output) && J(f), i && i.type === "text" && f.type === "text") {
740
- i.output = (i.output || i.value) + f.value, i.value += f.value;
741
- return;
742
- }
743
- f.prev = i, w.push(f), i = f;
744
- }, ue = (f, D) => {
745
- const l = { ...O[D], conditions: 1, inner: "" };
746
- l.prev = i, l.parens = n.parens, l.output = n.output;
747
- const $ = (t.capture ? "(" : "") + l.open;
748
- pe("parens"), M({ type: f, value: D, output: n.output ? "" : N }), M({ type: "paren", extglob: !0, value: B(), output: $ }), X.push(l);
749
- }, P = (f) => {
750
- let D = f.close + (t.capture ? ")" : ""), l;
751
- if (f.type === "negate") {
752
- let $ = te;
753
- if (f.inner && f.inner.length > 1 && f.inner.includes("/") && ($ = W(t)), ($ !== te || Z() || /^\)+$/.test(ce())) && (D = f.close = `)$))${$}`), f.inner.includes("*") && (l = ce()) && /^\.[^\\/.]+$/.test(l)) {
754
- const Y = d(l, { ...A, fastpaths: !1 }).output;
755
- D = f.close = `)${Y})${$})`;
756
- }
757
- f.prev.type === "bos" && (n.negatedExtglob = !0);
758
- }
759
- M({ type: "paren", extglob: !0, value: r, output: D }), ne("parens");
760
- };
761
- if (t.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(a)) {
762
- let f = !1, D = a.replace(C, (l, $, Y, le, oe, Ee) => le === "\\" ? (f = !0, l) : le === "?" ? $ ? $ + le + (oe ? k.repeat(oe.length) : "") : Ee === 0 ? se + (oe ? k.repeat(oe.length) : "") : k.repeat(Y.length) : le === "." ? V.repeat(Y.length) : le === "*" ? $ ? $ + le + (oe ? te : "") : te : $ ? l : `\\${l}`);
763
- return f === !0 && (t.unescape === !0 ? D = D.replace(/\\/g, "") : D = D.replace(/\\+/g, (l) => l.length % 2 === 0 ? "\\\\" : l ? "\\" : "")), D === a && t.contains === !0 ? (n.output = a, n) : (n.output = R.wrapOutput(D, n, A), n);
764
- }
765
- for (; !Z(); ) {
766
- if (r = B(), r === "\0")
767
- continue;
768
- if (r === "\\") {
769
- const l = x();
770
- if (l === "/" && t.bash !== !0 || l === "." || l === ";")
771
- continue;
772
- if (!l) {
773
- r += "\\", M({ type: "text", value: r });
774
- continue;
775
- }
776
- const $ = /^\\+/.exec(ce());
777
- let Y = 0;
778
- if ($ && $[0].length > 2 && (Y = $[0].length, n.index += Y, Y % 2 !== 0 && (r += "\\")), t.unescape === !0 ? r = B() : r += B(), n.brackets === 0) {
779
- M({ type: "text", value: r });
780
- continue;
781
- }
782
- }
783
- if (n.brackets > 0 && (r !== "]" || i.value === "[" || i.value === "[^")) {
784
- if (t.posix !== !1 && r === ":") {
785
- const l = i.value.slice(1);
786
- if (l.includes("[") && (i.posix = !0, l.includes(":"))) {
787
- const $ = i.value.lastIndexOf("["), Y = i.value.slice(0, $), le = i.value.slice($ + 2), oe = I[le];
788
- if (oe) {
789
- i.value = Y + oe, n.backtrack = !0, B(), !_.output && w.indexOf(i) === 1 && (_.output = N);
790
- continue;
791
- }
792
- }
793
- }
794
- (r === "[" && x() !== ":" || r === "-" && x() === "]") && (r = `\\${r}`), r === "]" && (i.value === "[" || i.value === "[^") && (r = `\\${r}`), t.posix === !0 && r === "!" && i.value === "[" && (r = "^"), i.value += r, J({ value: r });
795
- continue;
796
- }
797
- if (n.quotes === 1 && r !== '"') {
798
- r = R.escapeRegex(r), i.value += r, J({ value: r });
799
- continue;
800
- }
801
- if (r === '"') {
802
- n.quotes = n.quotes === 1 ? 0 : 1, t.keepQuotes === !0 && M({ type: "text", value: r });
803
- continue;
804
- }
805
- if (r === "(") {
806
- pe("parens"), M({ type: "paren", value: r });
807
- continue;
808
- }
809
- if (r === ")") {
810
- if (n.parens === 0 && t.strictBrackets === !0)
811
- throw new SyntaxError(m("opening", "("));
812
- const l = X[X.length - 1];
813
- if (l && n.parens === l.parens + 1) {
814
- P(X.pop());
815
- continue;
816
- }
817
- M({ type: "paren", value: r, output: n.parens ? ")" : "\\)" }), ne("parens");
818
- continue;
819
- }
820
- if (r === "[") {
821
- if (t.nobracket === !0 || !ce().includes("]")) {
822
- if (t.nobracket !== !0 && t.strictBrackets === !0)
823
- throw new SyntaxError(m("closing", "]"));
824
- r = `\\${r}`;
825
- } else
826
- pe("brackets");
827
- M({ type: "bracket", value: r });
828
- continue;
829
- }
830
- if (r === "]") {
831
- if (t.nobracket === !0 || i && i.type === "bracket" && i.value.length === 1) {
832
- M({ type: "text", value: r, output: `\\${r}` });
833
- continue;
834
- }
835
- if (n.brackets === 0) {
836
- if (t.strictBrackets === !0)
837
- throw new SyntaxError(m("opening", "["));
838
- M({ type: "text", value: r, output: `\\${r}` });
839
- continue;
840
- }
841
- ne("brackets");
842
- const l = i.value.slice(1);
843
- if (i.posix !== !0 && l[0] === "^" && !l.includes("/") && (r = `/${r}`), i.value += r, J({ value: r }), t.literalBrackets === !1 || R.hasRegexChars(l))
844
- continue;
845
- const $ = R.escapeRegex(i.value);
846
- if (n.output = n.output.slice(0, -i.value.length), t.literalBrackets === !0) {
847
- n.output += $, i.value = $;
848
- continue;
849
- }
850
- i.value = `(${T}${$}|${i.value})`, n.output += i.value;
851
- continue;
852
- }
853
- if (r === "{" && t.nobrace !== !0) {
854
- pe("braces");
855
- const l = { type: "brace", value: r, output: "(", outputIndex: n.output.length, tokensIndex: n.tokens.length };
856
- ae.push(l), M(l);
857
- continue;
858
- }
859
- if (r === "}") {
860
- const l = ae[ae.length - 1];
861
- if (t.nobrace === !0 || !l) {
862
- M({ type: "text", value: r, output: r });
863
- continue;
864
- }
865
- let $ = ")";
866
- if (l.dots === !0) {
867
- const Y = w.slice(), le = [];
868
- for (let oe = Y.length - 1; oe >= 0 && (w.pop(), Y[oe].type !== "brace"); oe--)
869
- Y[oe].type !== "dots" && le.unshift(Y[oe].value);
870
- $ = h(le, t), n.backtrack = !0;
871
- }
872
- if (l.comma !== !0 && l.dots !== !0) {
873
- const Y = n.output.slice(0, l.outputIndex), le = n.tokens.slice(l.tokensIndex);
874
- l.value = l.output = "\\{", r = $ = "\\}", n.output = Y;
875
- for (const oe of le)
876
- n.output += oe.output || oe.value;
877
- }
878
- M({ type: "brace", value: r, output: $ }), ne("braces"), ae.pop();
879
- continue;
880
- }
881
- if (r === "|") {
882
- X.length > 0 && X[X.length - 1].conditions++, M({ type: "text", value: r });
883
- continue;
884
- }
885
- if (r === ",") {
886
- let l = r;
887
- const $ = ae[ae.length - 1];
888
- $ && de[de.length - 1] === "braces" && ($.comma = !0, l = "|"), M({ type: "comma", value: r, output: l });
889
- continue;
890
- }
891
- if (r === "/") {
892
- if (i.type === "dot" && n.index === n.start + 1) {
893
- n.start = n.index + 1, n.consumed = "", n.output = "", w.pop(), i = _;
894
- continue;
895
- }
896
- M({ type: "slash", value: r, output: U });
897
- continue;
898
- }
899
- if (r === ".") {
900
- if (n.braces > 0 && i.type === "dot") {
901
- i.value === "." && (i.output = V);
902
- const l = ae[ae.length - 1];
903
- i.type = "dots", i.output += r, i.value += r, l.dots = !0;
904
- continue;
905
- }
906
- if (n.braces + n.parens === 0 && i.type !== "bos" && i.type !== "slash") {
907
- M({ type: "text", value: r, output: V });
908
- continue;
909
- }
910
- M({ type: "dot", value: r, output: V });
911
- continue;
912
- }
913
- if (r === "?") {
914
- if (!(i && i.value === "(") && t.noextglob !== !0 && x() === "(" && x(2) !== "?") {
915
- ue("qmark", r);
916
- continue;
917
- }
918
- if (i && i.type === "paren") {
919
- const $ = x();
920
- let Y = r;
921
- (i.value === "(" && !/[!=<:]/.test($) || $ === "<" && !/<([!=]|\w+>)/.test(ce())) && (Y = `\\${r}`), M({ type: "text", value: r, output: Y });
922
- continue;
923
- }
924
- if (t.dot !== !0 && (i.type === "slash" || i.type === "bos")) {
925
- M({ type: "qmark", value: r, output: z });
926
- continue;
927
- }
928
- M({ type: "qmark", value: r, output: k });
929
- continue;
930
- }
931
- if (r === "!") {
932
- if (t.noextglob !== !0 && x() === "(" && (x(2) !== "?" || !/[!=<:]/.test(x(3)))) {
933
- ue("negate", r);
934
- continue;
935
- }
936
- if (t.nonegate !== !0 && n.index === 0) {
937
- ee();
938
- continue;
939
- }
940
- }
941
- if (r === "+") {
942
- if (t.noextglob !== !0 && x() === "(" && x(2) !== "?") {
943
- ue("plus", r);
944
- continue;
945
- }
946
- if (i && i.value === "(" || t.regex === !1) {
947
- M({ type: "plus", value: r, output: H });
948
- continue;
949
- }
950
- if (i && (i.type === "bracket" || i.type === "paren" || i.type === "brace") || n.parens > 0) {
951
- M({ type: "plus", value: r });
952
- continue;
953
- }
954
- M({ type: "plus", value: H });
955
- continue;
956
- }
957
- if (r === "@") {
958
- if (t.noextglob !== !0 && x() === "(" && x(2) !== "?") {
959
- M({ type: "at", extglob: !0, value: r, output: "" });
960
- continue;
961
- }
962
- M({ type: "text", value: r });
963
- continue;
964
- }
965
- if (r !== "*") {
966
- (r === "$" || r === "^") && (r = `\\${r}`);
967
- const l = E.exec(ce());
968
- l && (r += l[0], n.index += l[0].length), M({ type: "text", value: r });
969
- continue;
970
- }
971
- if (i && (i.type === "globstar" || i.star === !0)) {
972
- i.type = "star", i.star = !0, i.value += r, i.output = te, n.backtrack = !0, n.globstar = !0, fe(r);
973
- continue;
974
- }
975
- let f = ce();
976
- if (t.noextglob !== !0 && /^\([^?]/.test(f)) {
977
- ue("star", r);
978
- continue;
979
- }
980
- if (i.type === "star") {
981
- if (t.noglobstar === !0) {
982
- fe(r);
983
- continue;
984
- }
985
- const l = i.prev, $ = l.prev, Y = l.type === "slash" || l.type === "bos", le = $ && ($.type === "star" || $.type === "globstar");
986
- if (t.bash === !0 && (!Y || f[0] && f[0] !== "/")) {
987
- M({ type: "star", value: r, output: "" });
988
- continue;
989
- }
990
- const oe = n.braces > 0 && (l.type === "comma" || l.type === "brace"), Ee = X.length && (l.type === "pipe" || l.type === "paren");
991
- if (!Y && l.type !== "paren" && !oe && !Ee) {
992
- M({ type: "star", value: r, output: "" });
993
- continue;
994
- }
995
- for (; f.slice(0, 3) === "/**"; ) {
996
- const me = a[n.index + 4];
997
- if (me && me !== "/")
998
- break;
999
- f = f.slice(3), fe("/**", 3);
1000
- }
1001
- if (l.type === "bos" && Z()) {
1002
- i.type = "globstar", i.value += r, i.output = W(t), n.output = i.output, n.globstar = !0, fe(r);
1003
- continue;
1004
- }
1005
- if (l.type === "slash" && l.prev.type !== "bos" && !le && Z()) {
1006
- n.output = n.output.slice(0, -(l.output + i.output).length), l.output = `(?:${l.output}`, i.type = "globstar", i.output = W(t) + (t.strictSlashes ? ")" : "|$)"), i.value += r, n.globstar = !0, n.output += l.output + i.output, fe(r);
1007
- continue;
1008
- }
1009
- if (l.type === "slash" && l.prev.type !== "bos" && f[0] === "/") {
1010
- const me = f[1] !== void 0 ? "|$" : "";
1011
- n.output = n.output.slice(0, -(l.output + i.output).length), l.output = `(?:${l.output}`, i.type = "globstar", i.output = `${W(t)}${U}|${U}${me})`, i.value += r, n.output += l.output + i.output, n.globstar = !0, fe(r + B()), M({ type: "slash", value: "/", output: "" });
1012
- continue;
1013
- }
1014
- if (l.type === "bos" && f[0] === "/") {
1015
- i.type = "globstar", i.value += r, i.output = `(?:^|${U}|${W(t)}${U})`, n.output = i.output, n.globstar = !0, fe(r + B()), M({ type: "slash", value: "/", output: "" });
1016
- continue;
1017
- }
1018
- n.output = n.output.slice(0, -i.output.length), i.type = "globstar", i.output = W(t), i.value += r, n.output += i.output, n.globstar = !0, fe(r);
1019
- continue;
1020
- }
1021
- const D = { type: "star", value: r, output: te };
1022
- if (t.bash === !0) {
1023
- D.output = ".*?", (i.type === "bos" || i.type === "slash") && (D.output = F + D.output), M(D);
1024
- continue;
1025
- }
1026
- if (i && (i.type === "bracket" || i.type === "paren") && t.regex === !0) {
1027
- D.output = r, M(D);
1028
- continue;
1029
- }
1030
- (n.index === n.start || i.type === "slash" || i.type === "dot") && (i.type === "dot" ? (n.output += Q, i.output += Q) : t.dot === !0 ? (n.output += K, i.output += K) : (n.output += F, i.output += F), x() !== "*" && (n.output += N, i.output += N)), M(D);
1031
- }
1032
- for (; n.brackets > 0; ) {
1033
- if (t.strictBrackets === !0)
1034
- throw new SyntaxError(m("closing", "]"));
1035
- n.output = R.escapeLast(n.output, "["), ne("brackets");
1036
- }
1037
- for (; n.parens > 0; ) {
1038
- if (t.strictBrackets === !0)
1039
- throw new SyntaxError(m("closing", ")"));
1040
- n.output = R.escapeLast(n.output, "("), ne("parens");
1041
- }
1042
- for (; n.braces > 0; ) {
1043
- if (t.strictBrackets === !0)
1044
- throw new SyntaxError(m("closing", "}"));
1045
- n.output = R.escapeLast(n.output, "{"), ne("braces");
1046
- }
1047
- if (t.strictSlashes !== !0 && (i.type === "star" || i.type === "bracket") && M({ type: "maybe_slash", value: "", output: `${U}?` }), n.backtrack === !0) {
1048
- n.output = "";
1049
- for (const f of n.tokens)
1050
- n.output += f.output != null ? f.output : f.value, f.suffix && (n.output += f.suffix);
1051
- }
1052
- return n;
1053
- };
1054
- d.fastpaths = (a, A) => {
1055
- const t = { ...A }, s = typeof t.maxLength == "number" ? Math.min(L, t.maxLength) : L, S = a.length;
1056
- if (S > s)
1057
- throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${s}`);
1058
- a = p[a] || a;
1059
- const { DOT_LITERAL: _, SLASH_LITERAL: w, ONE_CHAR: T, DOTS_SLASH: j, NO_DOT: O, NO_DOTS: V, NO_DOTS_SLASH: H, STAR: U, START_ANCHOR: N } = c.globChars(t.windows), q = t.dot ? V : O, G = t.dot ? H : O, Q = t.capture ? "" : "?:", K = { negated: !1, prefix: "" };
1060
- let k = t.bash === !0 ? ".*?" : U;
1061
- t.capture && (k = `(${k})`);
1062
- const z = (F) => F.noglobstar === !0 ? k : `(${Q}(?:(?!${N}${F.dot ? j : _}).)*?)`, re = (F) => {
1063
- switch (F) {
1064
- case "*":
1065
- return `${q}${T}${k}`;
1066
- case ".*":
1067
- return `${_}${T}${k}`;
1068
- case "*.*":
1069
- return `${q}${k}${_}${T}${k}`;
1070
- case "*/*":
1071
- return `${q}${k}${w}${T}${G}${k}`;
1072
- case "**":
1073
- return q + z(t);
1074
- case "**/*":
1075
- return `(?:${q}${z(t)}${w})?${G}${T}${k}`;
1076
- case "**/*.*":
1077
- return `(?:${q}${z(t)}${w})?${G}${k}${_}${T}${k}`;
1078
- case "**/.*":
1079
- return `(?:${q}${z(t)}${w})?${_}${T}${k}`;
1080
- default: {
1081
- const se = /^(.*?)\.(\w+)$/.exec(F);
1082
- if (!se)
1083
- return;
1084
- const te = re(se[1]);
1085
- return te ? te + _ + se[2] : void 0;
1086
- }
1087
- }
1088
- }, ie = R.removePrefix(a, K);
1089
- let W = re(ie);
1090
- return W && t.strictSlashes !== !0 && (W += `${w}?`), W;
1091
- }, v.exports = d;
1092
- }, 510: (v, o, u) => {
1093
- const c = u(716), R = u(697), L = u(96), I = u(154), E = (p) => p && typeof p == "object" && !Array.isArray(p), C = (p, h, m = !1) => {
1094
- if (Array.isArray(p)) {
1095
- const w = p.map((j) => C(j, h, m));
1096
- return (j) => {
1097
- for (const O of w) {
1098
- const V = O(j);
1099
- if (V)
1100
- return V;
1101
- }
1102
- return !1;
1103
- };
1104
- }
1105
- const d = E(p) && p.tokens && p.input;
1106
- if (p === "" || typeof p != "string" && !d)
1107
- throw new TypeError("Expected pattern to be a non-empty string");
1108
- const a = h || {}, A = a.windows, t = d ? C.compileRe(p, h) : C.makeRe(p, h, !1, !0), s = t.state;
1109
- delete t.state;
1110
- let S = () => !1;
1111
- if (a.ignore) {
1112
- const w = { ...h, ignore: null, onMatch: null, onResult: null };
1113
- S = C(a.ignore, w, m);
1114
- }
1115
- const _ = (w, T = !1) => {
1116
- const { isMatch: j, match: O, output: V } = C.test(w, t, h, { glob: p, posix: A }), H = { glob: p, state: s, regex: t, posix: A, input: w, output: V, match: O, isMatch: j };
1117
- return typeof a.onResult == "function" && a.onResult(H), j === !1 ? (H.isMatch = !1, T ? H : !1) : S(w) ? (typeof a.onIgnore == "function" && a.onIgnore(H), H.isMatch = !1, T ? H : !1) : (typeof a.onMatch == "function" && a.onMatch(H), T ? H : !0);
1118
- };
1119
- return m && (_.state = s), _;
1120
- };
1121
- C.test = (p, h, m, { glob: d, posix: a } = {}) => {
1122
- if (typeof p != "string")
1123
- throw new TypeError("Expected input to be a string");
1124
- if (p === "")
1125
- return { isMatch: !1, output: "" };
1126
- const A = m || {}, t = A.format || (a ? L.toPosixSlashes : null);
1127
- let s = p === d, S = s && t ? t(p) : p;
1128
- return s === !1 && (S = t ? t(p) : p, s = S === d), (s === !1 || A.capture === !0) && (A.matchBase === !0 || A.basename === !0 ? s = C.matchBase(p, h, m, a) : s = h.exec(S)), { isMatch: !!s, match: s, output: S };
1129
- }, C.matchBase = (p, h, m) => (h instanceof RegExp ? h : C.makeRe(h, m)).test(L.basename(p)), C.isMatch = (p, h, m) => C(h, m)(p), C.parse = (p, h) => Array.isArray(p) ? p.map((m) => C.parse(m, h)) : R(p, { ...h, fastpaths: !1 }), C.scan = (p, h) => c(p, h), C.compileRe = (p, h, m = !1, d = !1) => {
1130
- if (m === !0)
1131
- return p.output;
1132
- const a = h || {}, A = a.contains ? "" : "^", t = a.contains ? "" : "$";
1133
- let s = `${A}(?:${p.output})${t}`;
1134
- p && p.negated === !0 && (s = `^(?!${s}).*$`);
1135
- const S = C.toRegex(s, h);
1136
- return d === !0 && (S.state = p), S;
1137
- }, C.makeRe = (p, h = {}, m = !1, d = !1) => {
1138
- if (!p || typeof p != "string")
1139
- throw new TypeError("Expected a non-empty string");
1140
- let a = { negated: !1, fastpaths: !0 };
1141
- return h.fastpaths !== !1 && (p[0] === "." || p[0] === "*") && (a.output = R.fastpaths(p, h)), a.output || (a = R(p, h)), C.compileRe(a, h, m, d);
1142
- }, C.toRegex = (p, h) => {
1143
- try {
1144
- const m = h || {};
1145
- return new RegExp(p, m.flags || (m.nocase ? "i" : ""));
1146
- } catch (m) {
1147
- if (h && h.debug === !0)
1148
- throw m;
1149
- return /$^/;
1150
- }
1151
- }, C.constants = I, v.exports = C;
1152
- }, 716: (v, o, u) => {
1153
- const c = u(96), { CHAR_ASTERISK: R, CHAR_AT: L, CHAR_BACKWARD_SLASH: I, CHAR_COMMA: E, CHAR_DOT: C, CHAR_EXCLAMATION_MARK: p, CHAR_FORWARD_SLASH: h, CHAR_LEFT_CURLY_BRACE: m, CHAR_LEFT_PARENTHESES: d, CHAR_LEFT_SQUARE_BRACKET: a, CHAR_PLUS: A, CHAR_QUESTION_MARK: t, CHAR_RIGHT_CURLY_BRACE: s, CHAR_RIGHT_PARENTHESES: S, CHAR_RIGHT_SQUARE_BRACKET: _ } = u(154), w = (O) => O === h || O === I, T = (O) => {
1154
- O.isPrefix !== !0 && (O.depth = O.isGlobstar ? 1 / 0 : 1);
1155
- }, j = (O, V) => {
1156
- const H = V || {}, U = O.length - 1, N = H.parts === !0 || H.scanToEnd === !0, q = [], G = [], Q = [];
1157
- let K = O, k = -1, z = 0, re = 0, ie = !1, W = !1, F = !1, se = !1, te = !1, n = !1, X = !1, ae = !1, de = !1, i = !1, r = 0, Z, x, B = { value: "", depth: 0, isGlob: !1 };
1158
- const ce = () => k >= U, fe = () => K.charCodeAt(k + 1), J = () => (Z = x, K.charCodeAt(++k));
1159
- for (; k < U; ) {
1160
- x = J();
1161
- let ue;
1162
- if (x === I) {
1163
- X = B.backslashes = !0, x = J(), x === m && (n = !0);
1164
- continue;
1165
- }
1166
- if (n === !0 || x === m) {
1167
- for (r++; ce() !== !0 && (x = J()); ) {
1168
- if (x === I) {
1169
- X = B.backslashes = !0, J();
1170
- continue;
1171
- }
1172
- if (x === m) {
1173
- r++;
1174
- continue;
1175
- }
1176
- if (n !== !0 && x === C && (x = J()) === C) {
1177
- if (ie = B.isBrace = !0, F = B.isGlob = !0, i = !0, N === !0)
1178
- continue;
1179
- break;
1180
- }
1181
- if (n !== !0 && x === E) {
1182
- if (ie = B.isBrace = !0, F = B.isGlob = !0, i = !0, N === !0)
1183
- continue;
1184
- break;
1185
- }
1186
- if (x === s && (r--, r === 0)) {
1187
- n = !1, ie = B.isBrace = !0, i = !0;
1188
- break;
1189
- }
1190
- }
1191
- if (N === !0)
1192
- continue;
1193
- break;
1194
- }
1195
- if (x === h) {
1196
- if (q.push(k), G.push(B), B = { value: "", depth: 0, isGlob: !1 }, i === !0)
1197
- continue;
1198
- if (Z === C && k === z + 1) {
1199
- z += 2;
1200
- continue;
1201
- }
1202
- re = k + 1;
1203
- continue;
1204
- }
1205
- if (H.noext !== !0 && (x === A || x === L || x === R || x === t || x === p) === !0 && fe() === d) {
1206
- if (F = B.isGlob = !0, se = B.isExtglob = !0, i = !0, x === p && k === z && (de = !0), N === !0) {
1207
- for (; ce() !== !0 && (x = J()); ) {
1208
- if (x === I) {
1209
- X = B.backslashes = !0, x = J();
1210
- continue;
1211
- }
1212
- if (x === S) {
1213
- F = B.isGlob = !0, i = !0;
1214
- break;
1215
- }
1216
- }
1217
- continue;
1218
- }
1219
- break;
1220
- }
1221
- if (x === R) {
1222
- if (Z === R && (te = B.isGlobstar = !0), F = B.isGlob = !0, i = !0, N === !0)
1223
- continue;
1224
- break;
1225
- }
1226
- if (x === t) {
1227
- if (F = B.isGlob = !0, i = !0, N === !0)
1228
- continue;
1229
- break;
1230
- }
1231
- if (x === a) {
1232
- for (; ce() !== !0 && (ue = J()); ) {
1233
- if (ue === I) {
1234
- X = B.backslashes = !0, J();
1235
- continue;
1236
- }
1237
- if (ue === _) {
1238
- W = B.isBracket = !0, F = B.isGlob = !0, i = !0;
1239
- break;
1240
- }
1241
- }
1242
- if (N === !0)
1243
- continue;
1244
- break;
1245
- }
1246
- if (H.nonegate !== !0 && x === p && k === z) {
1247
- ae = B.negated = !0, z++;
1248
- continue;
1249
- }
1250
- if (H.noparen !== !0 && x === d) {
1251
- if (F = B.isGlob = !0, N === !0) {
1252
- for (; ce() !== !0 && (x = J()); ) {
1253
- if (x === d) {
1254
- X = B.backslashes = !0, x = J();
1255
- continue;
1256
- }
1257
- if (x === S) {
1258
- i = !0;
1259
- break;
1260
- }
1261
- }
1262
- continue;
1263
- }
1264
- break;
1265
- }
1266
- if (F === !0) {
1267
- if (i = !0, N === !0)
1268
- continue;
1269
- break;
1270
- }
1271
- }
1272
- H.noext === !0 && (se = !1, F = !1);
1273
- let ee = K, pe = "", ne = "";
1274
- z > 0 && (pe = K.slice(0, z), K = K.slice(z), re -= z), ee && F === !0 && re > 0 ? (ee = K.slice(0, re), ne = K.slice(re)) : F === !0 ? (ee = "", ne = K) : ee = K, ee && ee !== "" && ee !== "/" && ee !== K && w(ee.charCodeAt(ee.length - 1)) && (ee = ee.slice(0, -1)), H.unescape === !0 && (ne && (ne = c.removeBackslashes(ne)), ee && X === !0 && (ee = c.removeBackslashes(ee)));
1275
- const M = { prefix: pe, input: O, start: z, base: ee, glob: ne, isBrace: ie, isBracket: W, isGlob: F, isExtglob: se, isGlobstar: te, negated: ae, negatedExtglob: de };
1276
- if (H.tokens === !0 && (M.maxDepth = 0, w(x) || G.push(B), M.tokens = G), H.parts === !0 || H.tokens === !0) {
1277
- let ue;
1278
- for (let P = 0; P < q.length; P++) {
1279
- const f = ue ? ue + 1 : z, D = q[P], l = O.slice(f, D);
1280
- H.tokens && (P === 0 && z !== 0 ? (G[P].isPrefix = !0, G[P].value = pe) : G[P].value = l, T(G[P]), M.maxDepth += G[P].depth), (P !== 0 || l !== "") && Q.push(l), ue = D;
1281
- }
1282
- if (ue && ue + 1 < O.length) {
1283
- const P = O.slice(ue + 1);
1284
- Q.push(P), H.tokens && (G[G.length - 1].value = P, T(G[G.length - 1]), M.maxDepth += G[G.length - 1].depth);
1285
- }
1286
- M.slashes = q, M.parts = Q;
1287
- }
1288
- return M;
1289
- };
1290
- v.exports = j;
1291
- }, 96: (v, o, u) => {
1292
- const { REGEX_BACKSLASH: c, REGEX_REMOVE_BACKSLASH: R, REGEX_SPECIAL_CHARS: L, REGEX_SPECIAL_CHARS_GLOBAL: I } = u(154);
1293
- o.isObject = (E) => E !== null && typeof E == "object" && !Array.isArray(E), o.hasRegexChars = (E) => L.test(E), o.isRegexChar = (E) => E.length === 1 && o.hasRegexChars(E), o.escapeRegex = (E) => E.replace(I, "\\$1"), o.toPosixSlashes = (E) => E.replace(c, "/"), o.removeBackslashes = (E) => E.replace(R, (C) => C === "\\" ? "" : C), o.escapeLast = (E, C, p) => {
1294
- const h = E.lastIndexOf(C, p);
1295
- return h === -1 ? E : E[h - 1] === "\\" ? o.escapeLast(E, C, h - 1) : `${E.slice(0, h)}\\${E.slice(h)}`;
1296
- }, o.removePrefix = (E, C = {}) => {
1297
- let p = E;
1298
- return p.startsWith("./") && (p = p.slice(2), C.prefix = "./"), p;
1299
- }, o.wrapOutput = (E, C = {}, p = {}) => {
1300
- const h = p.contains ? "" : "^", m = p.contains ? "" : "$";
1301
- let d = `${h}(?:${E})${m}`;
1302
- return C.negated === !0 && (d = `(?:^(?!${d}).*$)`), d;
1303
- }, o.basename = (E, { windows: C } = {}) => {
1304
- const p = E.split(C ? /[\\/]/ : "/"), h = p[p.length - 1];
1305
- return h === "" ? p[p.length - 2] : h;
1306
- };
1307
- } }, e = {};
1308
- function b(v) {
1309
- var o = e[v];
1310
- if (o !== void 0)
1311
- return o.exports;
1312
- var u = e[v] = { exports: {} }, c = !0;
1313
- try {
1314
- y[v](u, u.exports, b), c = !1;
1315
- } finally {
1316
- c && delete e[v];
1317
- }
1318
- return u.exports;
1319
- }
1320
- typeof b < "u" && (b.ab = __dirname + "/");
1321
- var g = b(170);
1322
- Ie.exports = g;
1323
- })()), Ie.exports;
1324
- }
1325
- var tt;
1326
- function At() {
1327
- return tt || (tt = 1, function(y) {
1328
- Object.defineProperty(y, "__esModule", {
1329
- value: !0
1330
- });
1331
- function e(o, u) {
1332
- for (var c in u)
1333
- Object.defineProperty(o, c, {
1334
- enumerable: !0,
1335
- get: u[c]
1336
- });
1337
- }
1338
- e(y, {
1339
- hasMatch: function() {
1340
- return v;
1341
- },
1342
- matchRemotePattern: function() {
1343
- return g;
1344
- }
1345
- });
1346
- const b = Et();
1347
- function g(o, u) {
1348
- if (o.protocol !== void 0) {
1349
- const R = u.protocol.slice(0, -1);
1350
- if (o.protocol !== R)
1351
- return !1;
1352
- }
1353
- if (o.port !== void 0 && o.port !== u.port)
1354
- return !1;
1355
- if (o.hostname === void 0)
1356
- throw new Error(`Pattern should define hostname but found
1357
- ` + JSON.stringify(o));
1358
- if (!(0, b.makeRe)(o.hostname).test(u.hostname))
1359
- return !1;
1360
- var c;
1361
- return !!(0, b.makeRe)((c = o.pathname) != null ? c : "**", {
1362
- dot: !0
1363
- }).test(u.pathname);
1364
- }
1365
- function v(o, u, c) {
1366
- return o.some((R) => c.hostname === R) || u.some((R) => g(R, c));
1367
- }
1368
- }(Le)), Le;
1369
- }
1370
- var nt;
1371
- function ct() {
1372
- return nt || (nt = 1, function(y) {
1373
- Object.defineProperty(y, "__esModule", {
1374
- value: !0
1375
- }), Object.defineProperty(y, "default", {
1376
- enumerable: !0,
1377
- get: function() {
1378
- return b;
1379
- }
1380
- });
1381
- function e(g) {
1382
- let { config: v, src: o, width: u, quality: c } = g;
1383
- if (process.env.NODE_ENV !== "production") {
1384
- const R = [];
1385
- if (o || R.push("src"), u || R.push("width"), R.length > 0)
1386
- throw new Error("Next Image Optimization requires " + R.join(", ") + " to be provided. Make sure you pass them as props to the `next/image` component. Received: " + JSON.stringify({
1387
- src: o,
1388
- width: u,
1389
- quality: c
1390
- }));
1391
- if (o.startsWith("//"))
1392
- throw new Error('Failed to parse src "' + o + '" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');
1393
- if (!o.startsWith("/") && (v.domains || v.remotePatterns)) {
1394
- let L;
1395
- try {
1396
- L = new URL(o);
1397
- } catch (I) {
1398
- throw console.error(I), new Error('Failed to parse src "' + o + '" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)');
1399
- }
1400
- if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
1401
- process.env.NEXT_RUNTIME !== "edge") {
1402
- const { hasMatch: I } = At();
1403
- if (!I(v.domains, v.remotePatterns, L))
1404
- throw new Error("Invalid src prop (" + o + ') on `next/image`, hostname "' + L.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host');
1405
- }
1406
- }
1407
- }
1408
- return v.path + "?url=" + encodeURIComponent(o) + "&w=" + u + "&q=" + (c || 75) + (process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
1409
- }
1410
- e.__next_img_default = !0;
1411
- const b = e;
1412
- }(Pe)), Pe;
1413
- }
1414
- (function(y, e) {
1415
- "use client";
1416
- Object.defineProperty(e, "__esModule", {
1417
- value: !0
1418
- }), Object.defineProperty(e, "Image", {
1419
- enumerable: !0,
1420
- get: function() {
1421
- return t;
1422
- }
1423
- });
1424
- const b = he, g = Fe, v = st, o = /* @__PURE__ */ g._(ge), u = /* @__PURE__ */ b._(ht), c = /* @__PURE__ */ b._(Rt()), R = Ve, L = Se, I = St(), E = Re, C = dt(), p = /* @__PURE__ */ b._(ct()), h = process.env.__NEXT_IMAGE_OPTS;
1425
- typeof window > "u" && (globalThis.__NEXT_IMAGE_IMPORTED = !0);
1426
- function m(s, S, _, w, T, j, O) {
1427
- const V = s == null ? void 0 : s.src;
1428
- if (!s || s["data-loaded-src"] === V)
1429
- return;
1430
- s["data-loaded-src"] = V, ("decode" in s ? s.decode() : Promise.resolve()).catch(() => {
1431
- }).then(() => {
1432
- if (!(!s.parentElement || !s.isConnected)) {
1433
- if (S !== "empty" && T(!0), _ != null && _.current) {
1434
- const U = new Event("load");
1435
- Object.defineProperty(U, "target", {
1436
- writable: !1,
1437
- value: s
1438
- });
1439
- let N = !1, q = !1;
1440
- _.current({
1441
- ...U,
1442
- nativeEvent: U,
1443
- currentTarget: s,
1444
- target: s,
1445
- isDefaultPrevented: () => N,
1446
- isPropagationStopped: () => q,
1447
- persist: () => {
1448
- },
1449
- preventDefault: () => {
1450
- N = !0, U.preventDefault();
1451
- },
1452
- stopPropagation: () => {
1453
- q = !0, U.stopPropagation();
1454
- }
1455
- });
1456
- }
1457
- if (w != null && w.current && w.current(s), process.env.NODE_ENV !== "production") {
1458
- const U = new URL(V, "http://n").searchParams.get("url") || V;
1459
- if (s.getAttribute("data-nimg") === "fill") {
1460
- if (!j && (!O || O === "100vw") && s.getBoundingClientRect().width / window.innerWidth < 0.6 && (O === "100vw" ? (0, E.warnOnce)('Image with src "' + U + '" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes') : (0, E.warnOnce)('Image with src "' + U + '" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes')), s.parentElement) {
1461
- const { position: G } = window.getComputedStyle(s.parentElement), Q = [
1462
- "absolute",
1463
- "fixed",
1464
- "relative"
1465
- ];
1466
- Q.includes(G) || (0, E.warnOnce)('Image with src "' + U + '" has "fill" and parent element with invalid "position". Provided "' + G + '" should be one of ' + Q.map(String).join(",") + ".");
1467
- }
1468
- s.height === 0 && (0, E.warnOnce)('Image with src "' + U + '" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.');
1469
- }
1470
- const N = s.height.toString() !== s.getAttribute("height"), q = s.width.toString() !== s.getAttribute("width");
1471
- (N && !q || !N && q) && (0, E.warnOnce)('Image with src "' + U + `" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
1472
- }
1473
- }
1474
- });
1475
- }
1476
- function d(s) {
1477
- const [S, _] = o.version.split(".", 2), w = parseInt(S, 10), T = parseInt(_, 10);
1478
- return w > 18 || w === 18 && T >= 3 ? {
1479
- fetchPriority: s
1480
- } : {
1481
- fetchpriority: s
1482
- };
1483
- }
1484
- const a = /* @__PURE__ */ (0, o.forwardRef)((s, S) => {
1485
- let { src: _, srcSet: w, sizes: T, height: j, width: O, decoding: V, className: H, style: U, fetchPriority: N, placeholder: q, loading: G, unoptimized: Q, fill: K, onLoadRef: k, onLoadingCompleteRef: z, setBlurComplete: re, setShowAltText: ie, sizesInput: W, onLoad: F, onError: se, ...te } = s;
1486
- return /* @__PURE__ */ (0, v.jsx)("img", {
1487
- ...te,
1488
- ...d(N),
1489
- // It's intended to keep `loading` before `src` because React updates
1490
- // props in order which causes Safari/Firefox to not lazy load properly.
1491
- // See https://github.com/facebook/react/issues/25883
1492
- loading: G,
1493
- width: O,
1494
- height: j,
1495
- decoding: V,
1496
- "data-nimg": K ? "fill" : "1",
1497
- className: H,
1498
- style: U,
1499
- // It's intended to keep `src` the last attribute because React updates
1500
- // attributes in order. If we keep `src` the first one, Safari will
1501
- // immediately start to fetch `src`, before `sizes` and `srcSet` are even
1502
- // updated by React. That causes multiple unnecessary requests if `srcSet`
1503
- // and `sizes` are defined.
1504
- // This bug cannot be reproduced in Chrome or Firefox.
1505
- sizes: T,
1506
- srcSet: w,
1507
- src: _,
1508
- ref: (0, o.useCallback)((n) => {
1509
- S && (typeof S == "function" ? S(n) : typeof S == "object" && (S.current = n)), n && (se && (n.src = n.src), process.env.NODE_ENV !== "production" && (_ || console.error('Image is missing required "src" property:', n), n.getAttribute("alt") === null && console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')), n.complete && m(n, q, k, z, re, Q, W));
1510
- }, [
1511
- _,
1512
- q,
1513
- k,
1514
- z,
1515
- re,
1516
- se,
1517
- Q,
1518
- W,
1519
- S
1520
- ]),
1521
- onLoad: (n) => {
1522
- const X = n.currentTarget;
1523
- m(X, q, k, z, re, Q, W);
1524
- },
1525
- onError: (n) => {
1526
- ie(!0), q !== "empty" && re(!0), se && se(n);
1527
- }
1528
- });
1529
- });
1530
- function A(s) {
1531
- let { isAppRouter: S, imgAttributes: _ } = s;
1532
- const w = {
1533
- as: "image",
1534
- imageSrcSet: _.srcSet,
1535
- imageSizes: _.sizes,
1536
- crossOrigin: _.crossOrigin,
1537
- referrerPolicy: _.referrerPolicy,
1538
- ...d(_.fetchPriority)
1539
- };
1540
- return S && u.default.preload ? (u.default.preload(
1541
- _.src,
1542
- // @ts-expect-error TODO: upgrade to `@types/react-dom@18.3.x`
1543
- w
1544
- ), null) : /* @__PURE__ */ (0, v.jsx)(c.default, {
1545
- children: /* @__PURE__ */ (0, v.jsx)("link", {
1546
- rel: "preload",
1547
- // Note how we omit the `href` attribute, as it would only be relevant
1548
- // for browsers that do not support `imagesrcset`, and in those cases
1549
- // it would cause the incorrect image to be preloaded.
1550
- //
1551
- // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
1552
- href: _.srcSet ? void 0 : _.src,
1553
- ...w
1554
- }, "__nimg-" + _.src + _.srcSet + _.sizes)
1555
- });
1556
- }
1557
- const t = /* @__PURE__ */ (0, o.forwardRef)((s, S) => {
1558
- const w = !(0, o.useContext)(C.RouterContext), T = (0, o.useContext)(I.ImageConfigContext), j = (0, o.useMemo)(() => {
1559
- const z = h || T || L.imageConfigDefault, re = [
1560
- ...z.deviceSizes,
1561
- ...z.imageSizes
1562
- ].sort((W, F) => W - F), ie = z.deviceSizes.sort((W, F) => W - F);
1563
- return {
1564
- ...z,
1565
- allSizes: re,
1566
- deviceSizes: ie
1567
- };
1568
- }, [
1569
- T
1570
- ]), { onLoad: O, onLoadingComplete: V } = s, H = (0, o.useRef)(O);
1571
- (0, o.useEffect)(() => {
1572
- H.current = O;
1573
- }, [
1574
- O
1575
- ]);
1576
- const U = (0, o.useRef)(V);
1577
- (0, o.useEffect)(() => {
1578
- U.current = V;
1579
- }, [
1580
- V
1581
- ]);
1582
- const [N, q] = (0, o.useState)(!1), [G, Q] = (0, o.useState)(!1), { props: K, meta: k } = (0, R.getImgProps)(s, {
1583
- defaultLoader: p.default,
1584
- imgConf: j,
1585
- blurComplete: N,
1586
- showAltText: G
1587
- });
1588
- return /* @__PURE__ */ (0, v.jsxs)(v.Fragment, {
1589
- children: [
1590
- /* @__PURE__ */ (0, v.jsx)(a, {
1591
- ...K,
1592
- unoptimized: k.unoptimized,
1593
- placeholder: k.placeholder,
1594
- fill: k.fill,
1595
- onLoadRef: H,
1596
- onLoadingCompleteRef: U,
1597
- setBlurComplete: q,
1598
- setShowAltText: Q,
1599
- sizesInput: s.sizes,
1600
- ref: S
1601
- }),
1602
- k.priority ? /* @__PURE__ */ (0, v.jsx)(A, {
1603
- isAppRouter: w,
1604
- imgAttributes: K
1605
- }) : null
1606
- ]
1607
- });
1608
- });
1609
- (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), y.exports = e.default);
1610
- })(je, je.exports);
1611
- var wt = je.exports;
1612
- (function(y) {
1613
- Object.defineProperty(y, "__esModule", {
1614
- value: !0
1615
- });
1616
- function e(R, L) {
1617
- for (var I in L)
1618
- Object.defineProperty(R, I, {
1619
- enumerable: !0,
1620
- get: L[I]
1621
- });
1622
- }
1623
- e(y, {
1624
- default: function() {
1625
- return c;
1626
- },
1627
- getImageProps: function() {
1628
- return u;
1629
- }
1630
- });
1631
- const b = he, g = Ve, v = wt, o = /* @__PURE__ */ b._(ct());
1632
- function u(R) {
1633
- const { props: L } = (0, g.getImgProps)(R, {
1634
- defaultLoader: o.default,
1635
- // This is replaced by webpack define plugin
1636
- imgConf: process.env.__NEXT_IMAGE_OPTS
1637
- });
1638
- for (const [I, E] of Object.entries(L))
1639
- E === void 0 && delete L[I];
1640
- return {
1641
- props: L
1642
- };
1643
- }
1644
- const c = v.Image;
1645
- })(mt);
1646
- var Me = { exports: {} }, lt = {};
1647
- (function(y) {
1648
- "use client";
1649
- Object.defineProperty(y, "__esModule", {
1650
- value: !0
1651
- });
1652
- function e(u, c) {
1653
- for (var R in c)
1654
- Object.defineProperty(u, R, {
1655
- enumerable: !0,
1656
- get: c[R]
1657
- });
1658
- }
1659
- e(y, {
1660
- PathParamsContext: function() {
1661
- return o;
1662
- },
1663
- PathnameContext: function() {
1664
- return v;
1665
- },
1666
- SearchParamsContext: function() {
1667
- return g;
1668
- }
1669
- });
1670
- const b = ge, g = (0, b.createContext)(null), v = (0, b.createContext)(null), o = (0, b.createContext)(null);
1671
- process.env.NODE_ENV !== "production" && (g.displayName = "SearchParamsContext", v.displayName = "PathnameContext", o.displayName = "PathParamsContext");
1672
- })(lt);
1673
- var $e = { exports: {} };
1674
- (function(y, e) {
1675
- Object.defineProperty(e, "__esModule", {
1676
- value: !0
1677
- }), Object.defineProperty(e, "getSegmentValue", {
1678
- enumerable: !0,
1679
- get: function() {
1680
- return b;
1681
- }
1682
- });
1683
- function b(g) {
1684
- return Array.isArray(g) ? g[1] : g;
1685
- }
1686
- (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), y.exports = e.default);
1687
- })($e, $e.exports);
1688
- var Ct = $e.exports, Ne = { exports: {} }, He = { exports: {} }, ke = { exports: {} }, De = { exports: {} }, qe = { exports: {} };
1689
- (function(y, e) {
1690
- Object.defineProperty(e, "__esModule", {
1691
- value: !0
1692
- }), Object.defineProperty(e, "createAsyncLocalStorage", {
1693
- enumerable: !0,
1694
- get: function() {
1695
- return o;
1696
- }
1697
- });
1698
- const b = new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");
1699
- class g {
1700
- disable() {
1701
- throw b;
1702
- }
1703
- getStore() {
1704
- }
1705
- run() {
1706
- throw b;
1707
- }
1708
- exit() {
1709
- throw b;
1710
- }
1711
- enterWith() {
1712
- throw b;
1713
- }
1714
- }
1715
- const v = globalThis.AsyncLocalStorage;
1716
- function o() {
1717
- return v ? new v() : new g();
1718
- }
1719
- (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), y.exports = e.default);
1720
- })(qe, qe.exports);
1721
- var Xe = qe.exports;
1722
- (function(y, e) {
1723
- Object.defineProperty(e, "__esModule", {
1724
- value: !0
1725
- }), Object.defineProperty(e, "requestAsyncStorage", {
1726
- enumerable: !0,
1727
- get: function() {
1728
- return g;
1729
- }
1730
- });
1731
- const g = (0, Xe.createAsyncLocalStorage)();
1732
- (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), y.exports = e.default);
1733
- })(De, De.exports);
1734
- var Ot = De.exports;
1735
- (function(y, e) {
1736
- "TURBOPACK { transition: next-shared }";
1737
- Object.defineProperty(e, "__esModule", {
1738
- value: !0
1739
- });
1740
- function b(o, u) {
1741
- for (var c in u)
1742
- Object.defineProperty(o, c, {
1743
- enumerable: !0,
1744
- get: u[c]
1745
- });
1746
- }
1747
- b(e, {
1748
- getExpectedRequestStore: function() {
1749
- return v;
1750
- },
1751
- requestAsyncStorage: function() {
1752
- return g.requestAsyncStorage;
1753
- }
1754
- });
1755
- const g = Ot;
1756
- function v(o) {
1757
- const u = g.requestAsyncStorage.getStore();
1758
- if (u)
1759
- return u;
1760
- throw new Error("`" + o + "` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context");
1761
- }
1762
- (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), y.exports = e.default);
1763
- })(ke, ke.exports);
1764
- var xt = ke.exports, Be = { exports: {} }, Ue = { exports: {} };
1765
- (function(y, e) {
1766
- Object.defineProperty(e, "__esModule", {
1767
- value: !0
1768
- }), Object.defineProperty(e, "actionAsyncStorage", {
1769
- enumerable: !0,
1770
- get: function() {
1771
- return g;
1772
- }
1773
- });
1774
- const g = (0, Xe.createAsyncLocalStorage)();
1775
- (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), y.exports = e.default);
1776
- })(Ue, Ue.exports);
1777
- var Pt = Ue.exports;
1778
- (function(y, e) {
1779
- "TURBOPACK { transition: next-shared }";
1780
- Object.defineProperty(e, "__esModule", {
1781
- value: !0
1782
- }), Object.defineProperty(e, "actionAsyncStorage", {
1783
- enumerable: !0,
1784
- get: function() {
1785
- return b.actionAsyncStorage;
1786
- }
1787
- });
1788
- const b = Pt;
1789
- (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), y.exports = e.default);
1790
- })(Be, Be.exports);
1791
- var Lt = Be.exports, Ge = { exports: {} };
1792
- (function(y, e) {
1793
- Object.defineProperty(e, "__esModule", {
1794
- value: !0
1795
- }), Object.defineProperty(e, "RedirectStatusCode", {
1796
- enumerable: !0,
1797
- get: function() {
1798
- return b;
1799
- }
1800
- });
1801
- var b;
1802
- (function(g) {
1803
- g[g.SeeOther = 303] = "SeeOther", g[g.TemporaryRedirect = 307] = "TemporaryRedirect", g[g.PermanentRedirect = 308] = "PermanentRedirect";
1804
- })(b || (b = {})), (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), y.exports = e.default);
1805
- })(Ge, Ge.exports);
1806
- var It = Ge.exports;
1807
- (function(y, e) {
1808
- Object.defineProperty(e, "__esModule", {
1809
- value: !0
1810
- });
1811
- function b(m, d) {
1812
- for (var a in d)
1813
- Object.defineProperty(m, a, {
1814
- enumerable: !0,
1815
- get: d[a]
1816
- });
1817
- }
1818
- b(e, {
1819
- RedirectType: function() {
1820
- return c;
1821
- },
1822
- getRedirectError: function() {
1823
- return R;
1824
- },
1825
- getRedirectStatusCodeFromError: function() {
1826
- return h;
1827
- },
1828
- getRedirectTypeFromError: function() {
1829
- return p;
1830
- },
1831
- getURLFromRedirectError: function() {
1832
- return C;
1833
- },
1834
- isRedirectError: function() {
1835
- return E;
1836
- },
1837
- permanentRedirect: function() {
1838
- return I;
1839
- },
1840
- redirect: function() {
1841
- return L;
1842
- }
1843
- });
1844
- const g = xt, v = Lt, o = It, u = "NEXT_REDIRECT";
1845
- var c;
1846
- (function(m) {
1847
- m.push = "push", m.replace = "replace";
1848
- })(c || (c = {}));
1849
- function R(m, d, a) {
1850
- a === void 0 && (a = o.RedirectStatusCode.TemporaryRedirect);
1851
- const A = new Error(u);
1852
- A.digest = u + ";" + d + ";" + m + ";" + a + ";";
1853
- const t = g.requestAsyncStorage.getStore();
1854
- return t && (A.mutableCookies = t.mutableCookies), A;
1855
- }
1856
- function L(m, d) {
1857
- d === void 0 && (d = "replace");
1858
- const a = v.actionAsyncStorage.getStore();
1859
- throw R(
1860
- m,
1861
- d,
1862
- // If we're in an action, we want to use a 303 redirect
1863
- // as we don't want the POST request to follow the redirect,
1864
- // as it could result in erroneous re-submissions.
1865
- a != null && a.isAction ? o.RedirectStatusCode.SeeOther : o.RedirectStatusCode.TemporaryRedirect
1866
- );
1867
- }
1868
- function I(m, d) {
1869
- d === void 0 && (d = "replace");
1870
- const a = v.actionAsyncStorage.getStore();
1871
- throw R(
1872
- m,
1873
- d,
1874
- // If we're in an action, we want to use a 303 redirect
1875
- // as we don't want the POST request to follow the redirect,
1876
- // as it could result in erroneous re-submissions.
1877
- a != null && a.isAction ? o.RedirectStatusCode.SeeOther : o.RedirectStatusCode.PermanentRedirect
1878
- );
1879
- }
1880
- function E(m) {
1881
- if (typeof m != "object" || m === null || !("digest" in m) || typeof m.digest != "string")
1882
- return !1;
1883
- const [d, a, A, t] = m.digest.split(";", 4), s = Number(t);
1884
- return d === u && (a === "replace" || a === "push") && typeof A == "string" && !isNaN(s) && s in o.RedirectStatusCode;
1885
- }
1886
- function C(m) {
1887
- return E(m) ? m.digest.split(";", 3)[2] : null;
1888
- }
1889
- function p(m) {
1890
- if (!E(m))
1891
- throw new Error("Not a redirect error");
1892
- return m.digest.split(";", 2)[1];
1893
- }
1894
- function h(m) {
1895
- if (!E(m))
1896
- throw new Error("Not a redirect error");
1897
- return Number(m.digest.split(";", 4)[3]);
1898
- }
1899
- (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), y.exports = e.default);
1900
- })(He, He.exports);
1901
- var Tt = He.exports, ze = { exports: {} };
1902
- (function(y, e) {
1903
- Object.defineProperty(e, "__esModule", {
1904
- value: !0
1905
- });
1906
- function b(u, c) {
1907
- for (var R in c)
1908
- Object.defineProperty(u, R, {
1909
- enumerable: !0,
1910
- get: c[R]
1911
- });
1912
- }
1913
- b(e, {
1914
- isNotFoundError: function() {
1915
- return o;
1916
- },
1917
- notFound: function() {
1918
- return v;
1919
- }
1920
- });
1921
- const g = "NEXT_NOT_FOUND";
1922
- function v() {
1923
- const u = new Error(g);
1924
- throw u.digest = g, u;
1925
- }
1926
- function o(u) {
1927
- return typeof u != "object" || u === null || !("digest" in u) ? !1 : u.digest === g;
1928
- }
1929
- (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), y.exports = e.default);
1930
- })(ze, ze.exports);
1931
- var jt = ze.exports;
1932
- (function(y, e) {
1933
- Object.defineProperty(e, "__esModule", {
1934
- value: !0
1935
- });
1936
- function b(c, R) {
1937
- for (var L in R)
1938
- Object.defineProperty(c, L, {
1939
- enumerable: !0,
1940
- get: R[L]
1941
- });
1942
- }
1943
- b(e, {
1944
- ReadonlyURLSearchParams: function() {
1945
- return u;
1946
- },
1947
- RedirectType: function() {
1948
- return g.RedirectType;
1949
- },
1950
- notFound: function() {
1951
- return v.notFound;
1952
- },
1953
- permanentRedirect: function() {
1954
- return g.permanentRedirect;
1955
- },
1956
- redirect: function() {
1957
- return g.redirect;
1958
- }
1959
- });
1960
- const g = Tt, v = jt;
1961
- class o extends Error {
1962
- constructor() {
1963
- super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams");
1964
- }
1965
- }
1966
- class u extends URLSearchParams {
1967
- /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
1968
- append() {
1969
- throw new o();
1970
- }
1971
- /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
1972
- delete() {
1973
- throw new o();
1974
- }
1975
- /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
1976
- set() {
1977
- throw new o();
1978
- }
1979
- /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
1980
- sort() {
1981
- throw new o();
1982
- }
1983
- }
1984
- (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), y.exports = e.default);
1985
- })(Ne, Ne.exports);
1986
- var Mt = Ne.exports, ft = {};
1987
- (function(y) {
1988
- "use client";
1989
- Object.defineProperty(y, "__esModule", {
1990
- value: !0
1991
- });
1992
- function e(u, c) {
1993
- for (var R in c)
1994
- Object.defineProperty(u, R, {
1995
- enumerable: !0,
1996
- get: c[R]
1997
- });
1998
- }
1999
- e(y, {
2000
- ServerInsertedHTMLContext: function() {
2001
- return v;
2002
- },
2003
- useServerInsertedHTML: function() {
2004
- return o;
2005
- }
2006
- });
2007
- const g = /* @__PURE__ */ Fe._(ge), v = /* @__PURE__ */ g.default.createContext(null);
2008
- function o(u) {
2009
- const c = (0, g.useContext)(v);
2010
- c && c(u);
2011
- }
2012
- })(ft);
2013
- var ye = { exports: {} }, Te = {}, rt;
2014
- function $t() {
2015
- return rt || (rt = 1, function(y) {
2016
- Object.defineProperty(y, "__esModule", {
2017
- value: !0
2018
- });
2019
- function e(o, u) {
2020
- for (var c in u)
2021
- Object.defineProperty(o, c, {
2022
- enumerable: !0,
2023
- get: u[c]
2024
- });
2025
- }
2026
- e(y, {
2027
- BailoutToCSRError: function() {
2028
- return g;
2029
- },
2030
- isBailoutToCSRError: function() {
2031
- return v;
2032
- }
2033
- });
2034
- const b = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
2035
- class g extends Error {
2036
- constructor(u) {
2037
- super("Bail out to client-side rendering: " + u), this.reason = u, this.digest = b;
2038
- }
2039
- }
2040
- function v(o) {
2041
- return typeof o != "object" || o === null || !("digest" in o) ? !1 : o.digest === b;
2042
- }
2043
- }(Te)), Te;
2044
- }
2045
- var be = { exports: {} }, ve = { exports: {} }, ot;
2046
- function Nt() {
2047
- return ot || (ot = 1, function(y, e) {
2048
- Object.defineProperty(e, "__esModule", {
2049
- value: !0
2050
- }), Object.defineProperty(e, "staticGenerationAsyncStorage", {
2051
- enumerable: !0,
2052
- get: function() {
2053
- return g;
2054
- }
2055
- });
2056
- const g = (0, Xe.createAsyncLocalStorage)();
2057
- (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), y.exports = e.default);
2058
- }(ve, ve.exports)), ve.exports;
2059
- }
2060
- var it;
2061
- function Ht() {
2062
- return it || (it = 1, function(y, e) {
2063
- "TURBOPACK { transition: next-shared }";
2064
- Object.defineProperty(e, "__esModule", {
2065
- value: !0
2066
- }), Object.defineProperty(e, "staticGenerationAsyncStorage", {
2067
- enumerable: !0,
2068
- get: function() {
2069
- return b.staticGenerationAsyncStorage;
2070
- }
2071
- });
2072
- const b = Nt();
2073
- (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), y.exports = e.default);
2074
- }(be, be.exports)), be.exports;
2075
- }
2076
- var at;
2077
- function kt() {
2078
- return at || (at = 1, function(y, e) {
2079
- Object.defineProperty(e, "__esModule", {
2080
- value: !0
2081
- }), Object.defineProperty(e, "bailoutToClientRendering", {
2082
- enumerable: !0,
2083
- get: function() {
2084
- return v;
2085
- }
2086
- });
2087
- const b = $t(), g = Ht();
2088
- function v(o) {
2089
- const u = g.staticGenerationAsyncStorage.getStore();
2090
- if (!(u != null && u.forceStatic) && u != null && u.isStaticGeneration)
2091
- throw new b.BailoutToCSRError(o);
2092
- }
2093
- (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), y.exports = e.default);
2094
- }(ye, ye.exports)), ye.exports;
2095
- }
2096
- (function(y, e) {
2097
- Object.defineProperty(e, "__esModule", {
2098
- value: !0
2099
- });
2100
- function b(a, A) {
2101
- for (var t in A)
2102
- Object.defineProperty(a, t, {
2103
- enumerable: !0,
2104
- get: A[t]
2105
- });
2106
- }
2107
- b(e, {
2108
- ReadonlyURLSearchParams: function() {
2109
- return R.ReadonlyURLSearchParams;
2110
- },
2111
- RedirectType: function() {
2112
- return R.RedirectType;
2113
- },
2114
- ServerInsertedHTMLContext: function() {
2115
- return L.ServerInsertedHTMLContext;
2116
- },
2117
- notFound: function() {
2118
- return R.notFound;
2119
- },
2120
- permanentRedirect: function() {
2121
- return R.permanentRedirect;
2122
- },
2123
- redirect: function() {
2124
- return R.redirect;
2125
- },
2126
- useParams: function() {
2127
- return p;
2128
- },
2129
- usePathname: function() {
2130
- return E;
2131
- },
2132
- useRouter: function() {
2133
- return C;
2134
- },
2135
- useSearchParams: function() {
2136
- return I;
2137
- },
2138
- useSelectedLayoutSegment: function() {
2139
- return d;
2140
- },
2141
- useSelectedLayoutSegments: function() {
2142
- return m;
2143
- },
2144
- useServerInsertedHTML: function() {
2145
- return L.useServerInsertedHTML;
2146
- }
2147
- });
2148
- const g = ge, v = pt, o = lt, u = Ct, c = gt, R = Mt, L = ft;
2149
- function I() {
2150
- const a = (0, g.useContext)(o.SearchParamsContext), A = (0, g.useMemo)(() => a ? new R.ReadonlyURLSearchParams(a) : null, [
2151
- a
2152
- ]);
2153
- if (typeof window > "u") {
2154
- const { bailoutToClientRendering: t } = kt();
2155
- t("useSearchParams()");
2156
- }
2157
- return A;
2158
- }
2159
- function E() {
2160
- return (0, g.useContext)(o.PathnameContext);
2161
- }
2162
- function C() {
2163
- const a = (0, g.useContext)(v.AppRouterContext);
2164
- if (a === null)
2165
- throw new Error("invariant expected app router to be mounted");
2166
- return a;
2167
- }
2168
- function p() {
2169
- return (0, g.useContext)(o.PathParamsContext);
2170
- }
2171
- function h(a, A, t, s) {
2172
- t === void 0 && (t = !0), s === void 0 && (s = []);
2173
- let S;
2174
- if (t)
2175
- S = a[1][A];
2176
- else {
2177
- const j = a[1];
2178
- var _;
2179
- S = (_ = j.children) != null ? _ : Object.values(j)[0];
2180
- }
2181
- if (!S)
2182
- return s;
2183
- const w = S[0], T = (0, u.getSegmentValue)(w);
2184
- return !T || T.startsWith(c.PAGE_SEGMENT_KEY) ? s : (s.push(T), h(S, A, !1, s));
2185
- }
2186
- function m(a) {
2187
- a === void 0 && (a = "children");
2188
- const A = (0, g.useContext)(v.LayoutRouterContext);
2189
- return A ? h(A.tree, a) : null;
2190
- }
2191
- function d(a) {
2192
- a === void 0 && (a = "children");
2193
- const A = m(a);
2194
- if (!A || A.length === 0)
2195
- return null;
2196
- const t = a === "children" ? A[0] : A[A.length - 1];
2197
- return t === c.DEFAULT_SEGMENT_KEY ? null : t;
2198
- }
2199
- (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), y.exports = e.default);
2200
- })(Me, Me.exports);
2201
- var Gt = Me.exports;
2202
- export {
2203
- mt as i,
2204
- Gt as n
2205
- };