@pipi-kit/ui 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -47,7 +47,6 @@ var Markdown = require('react-markdown');
47
47
  var remarkGfm = require('remark-gfm');
48
48
  var inputOtp = require('input-otp');
49
49
  var react = require('motion/react');
50
- var Image2 = require('next/image');
51
50
  var Dropzone = require('react-dropzone');
52
51
  var nextIntl = require('next-intl');
53
52
  var RechartsPrimitive = require('recharts');
@@ -103,11 +102,2904 @@ var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
103
102
  var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrimitive);
104
103
  var Markdown__default = /*#__PURE__*/_interopDefault(Markdown);
105
104
  var remarkGfm__default = /*#__PURE__*/_interopDefault(remarkGfm);
106
- var Image2__default = /*#__PURE__*/_interopDefault(Image2);
107
105
  var Dropzone__default = /*#__PURE__*/_interopDefault(Dropzone);
108
106
  var RechartsPrimitive__namespace = /*#__PURE__*/_interopNamespace(RechartsPrimitive);
109
107
 
110
- // src/hooks/use-copy-to-clipboard.ts
108
+ var __create = Object.create;
109
+ var __defProp = Object.defineProperty;
110
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
111
+ var __getOwnPropNames = Object.getOwnPropertyNames;
112
+ var __getProtoOf = Object.getPrototypeOf;
113
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
114
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
115
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
116
+ }) : x)(function(x) {
117
+ if (typeof require !== "undefined") return require.apply(this, arguments);
118
+ throw Error('Dynamic require of "' + x + '" is not supported');
119
+ });
120
+ var __commonJS = (cb, mod) => function __require2() {
121
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
122
+ };
123
+ var __copyProps = (to, from, except, desc) => {
124
+ if (from && typeof from === "object" || typeof from === "function") {
125
+ for (let key of __getOwnPropNames(from))
126
+ if (!__hasOwnProp.call(to, key) && key !== except)
127
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
128
+ }
129
+ return to;
130
+ };
131
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
132
+ // If the importer is in node compatibility mode or this is not an ESM
133
+ // file that has been converted to a CommonJS file using a Babel-
134
+ // compatible transform (i.e. "__esModule" has not been set), then set
135
+ // "default" to the CommonJS "module.exports" for node compatibility.
136
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
137
+ mod
138
+ ));
139
+
140
+ // node_modules/@swc/helpers/cjs/_interop_require_default.cjs
141
+ var require_interop_require_default = __commonJS({
142
+ "node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports$1) {
143
+ function _interop_require_default(obj) {
144
+ return obj && obj.__esModule ? obj : { default: obj };
145
+ }
146
+ exports$1._ = _interop_require_default;
147
+ }
148
+ });
149
+
150
+ // node_modules/next/dist/shared/lib/utils/warn-once.js
151
+ var require_warn_once = __commonJS({
152
+ "node_modules/next/dist/shared/lib/utils/warn-once.js"(exports$1) {
153
+ Object.defineProperty(exports$1, "__esModule", {
154
+ value: true
155
+ });
156
+ Object.defineProperty(exports$1, "warnOnce", {
157
+ enumerable: true,
158
+ get: function() {
159
+ return warnOnce;
160
+ }
161
+ });
162
+ var warnOnce = (_) => {
163
+ };
164
+ if (process.env.NODE_ENV !== "production") {
165
+ const warnings = /* @__PURE__ */ new Set();
166
+ warnOnce = (msg) => {
167
+ if (!warnings.has(msg)) {
168
+ console.warn(msg);
169
+ }
170
+ warnings.add(msg);
171
+ };
172
+ }
173
+ }
174
+ });
175
+
176
+ // node_modules/next/dist/shared/lib/image-blur-svg.js
177
+ var require_image_blur_svg = __commonJS({
178
+ "node_modules/next/dist/shared/lib/image-blur-svg.js"(exports$1) {
179
+ Object.defineProperty(exports$1, "__esModule", {
180
+ value: true
181
+ });
182
+ Object.defineProperty(exports$1, "getImageBlurSvg", {
183
+ enumerable: true,
184
+ get: function() {
185
+ return getImageBlurSvg;
186
+ }
187
+ });
188
+ function getImageBlurSvg(param) {
189
+ let { widthInt, heightInt, blurWidth, blurHeight, blurDataURL, objectFit } = param;
190
+ const std = 20;
191
+ const svgWidth = blurWidth ? blurWidth * 40 : widthInt;
192
+ const svgHeight = blurHeight ? blurHeight * 40 : heightInt;
193
+ const viewBox = svgWidth && svgHeight ? "viewBox='0 0 " + svgWidth + " " + svgHeight + "'" : "";
194
+ const preserveAspectRatio = viewBox ? "none" : objectFit === "contain" ? "xMidYMid" : objectFit === "cover" ? "xMidYMid slice" : "none";
195
+ return "%3Csvg xmlns='http://www.w3.org/2000/svg' " + viewBox + "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" + std + "'/%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='" + std + "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" + preserveAspectRatio + "' style='filter: url(%23b);' href='" + blurDataURL + "'/%3E%3C/svg%3E";
196
+ }
197
+ }
198
+ });
199
+
200
+ // node_modules/next/dist/shared/lib/image-config.js
201
+ var require_image_config = __commonJS({
202
+ "node_modules/next/dist/shared/lib/image-config.js"(exports$1) {
203
+ Object.defineProperty(exports$1, "__esModule", {
204
+ value: true
205
+ });
206
+ function _export(target, all) {
207
+ for (var name in all) Object.defineProperty(target, name, {
208
+ enumerable: true,
209
+ get: all[name]
210
+ });
211
+ }
212
+ _export(exports$1, {
213
+ VALID_LOADERS: function() {
214
+ return VALID_LOADERS;
215
+ },
216
+ imageConfigDefault: function() {
217
+ return imageConfigDefault;
218
+ }
219
+ });
220
+ var VALID_LOADERS = [
221
+ "default",
222
+ "imgix",
223
+ "cloudinary",
224
+ "akamai",
225
+ "custom"
226
+ ];
227
+ var imageConfigDefault = {
228
+ deviceSizes: [
229
+ 640,
230
+ 750,
231
+ 828,
232
+ 1080,
233
+ 1200,
234
+ 1920,
235
+ 2048,
236
+ 3840
237
+ ],
238
+ imageSizes: [
239
+ 16,
240
+ 32,
241
+ 48,
242
+ 64,
243
+ 96,
244
+ 128,
245
+ 256,
246
+ 384
247
+ ],
248
+ path: "/_next/image",
249
+ loader: "default",
250
+ loaderFile: "",
251
+ domains: [],
252
+ disableStaticImages: false,
253
+ minimumCacheTTL: 60,
254
+ formats: [
255
+ "image/webp"
256
+ ],
257
+ dangerouslyAllowSVG: false,
258
+ contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
259
+ contentDispositionType: "attachment",
260
+ localPatterns: void 0,
261
+ remotePatterns: [],
262
+ qualities: void 0,
263
+ unoptimized: false
264
+ };
265
+ }
266
+ });
267
+
268
+ // node_modules/next/dist/shared/lib/get-img-props.js
269
+ var require_get_img_props = __commonJS({
270
+ "node_modules/next/dist/shared/lib/get-img-props.js"(exports$1) {
271
+ Object.defineProperty(exports$1, "__esModule", {
272
+ value: true
273
+ });
274
+ Object.defineProperty(exports$1, "getImgProps", {
275
+ enumerable: true,
276
+ get: function() {
277
+ return getImgProps;
278
+ }
279
+ });
280
+ var _warnonce = require_warn_once();
281
+ var _imageblursvg = require_image_blur_svg();
282
+ var _imageconfig = require_image_config();
283
+ var VALID_LOADING_VALUES = [
284
+ "lazy",
285
+ "eager",
286
+ void 0
287
+ ];
288
+ var INVALID_BACKGROUND_SIZE_VALUES = [
289
+ "-moz-initial",
290
+ "fill",
291
+ "none",
292
+ "scale-down",
293
+ void 0
294
+ ];
295
+ function isStaticRequire(src) {
296
+ return src.default !== void 0;
297
+ }
298
+ function isStaticImageData(src) {
299
+ return src.src !== void 0;
300
+ }
301
+ function isStaticImport(src) {
302
+ return !!src && typeof src === "object" && (isStaticRequire(src) || isStaticImageData(src));
303
+ }
304
+ var allImgs = /* @__PURE__ */ new Map();
305
+ var perfObserver;
306
+ function getInt(x) {
307
+ if (typeof x === "undefined") {
308
+ return x;
309
+ }
310
+ if (typeof x === "number") {
311
+ return Number.isFinite(x) ? x : NaN;
312
+ }
313
+ if (typeof x === "string" && /^[0-9]+$/.test(x)) {
314
+ return parseInt(x, 10);
315
+ }
316
+ return NaN;
317
+ }
318
+ function getWidths(param, width, sizes) {
319
+ let { deviceSizes, allSizes } = param;
320
+ if (sizes) {
321
+ const viewportWidthRe = /(^|\s)(1?\d?\d)vw/g;
322
+ const percentSizes = [];
323
+ for (let match; match = viewportWidthRe.exec(sizes); match) {
324
+ percentSizes.push(parseInt(match[2]));
325
+ }
326
+ if (percentSizes.length) {
327
+ const smallestRatio = Math.min(...percentSizes) * 0.01;
328
+ return {
329
+ widths: allSizes.filter((s) => s >= deviceSizes[0] * smallestRatio),
330
+ kind: "w"
331
+ };
332
+ }
333
+ return {
334
+ widths: allSizes,
335
+ kind: "w"
336
+ };
337
+ }
338
+ if (typeof width !== "number") {
339
+ return {
340
+ widths: deviceSizes,
341
+ kind: "w"
342
+ };
343
+ }
344
+ const widths = [
345
+ ...new Set(
346
+ // > This means that most OLED screens that say they are 3x resolution,
347
+ // > are actually 3x in the green color, but only 1.5x in the red and
348
+ // > blue colors. Showing a 3x resolution image in the app vs a 2x
349
+ // > resolution image will be visually the same, though the 3x image
350
+ // > takes significantly more data. Even true 3x resolution screens are
351
+ // > wasteful as the human eye cannot see that level of detail without
352
+ // > something like a magnifying glass.
353
+ // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
354
+ [
355
+ width,
356
+ width * 2
357
+ /*, width * 3*/
358
+ ].map((w) => allSizes.find((p) => p >= w) || allSizes[allSizes.length - 1])
359
+ )
360
+ ];
361
+ return {
362
+ widths,
363
+ kind: "x"
364
+ };
365
+ }
366
+ function generateImgAttrs(param) {
367
+ let { config, src, unoptimized, width, quality, sizes, loader } = param;
368
+ if (unoptimized) {
369
+ return {
370
+ src,
371
+ srcSet: void 0,
372
+ sizes: void 0
373
+ };
374
+ }
375
+ const { widths, kind } = getWidths(config, width, sizes);
376
+ const last = widths.length - 1;
377
+ return {
378
+ sizes: !sizes && kind === "w" ? "100vw" : sizes,
379
+ srcSet: widths.map((w, i) => loader({
380
+ config,
381
+ src,
382
+ quality,
383
+ width: w
384
+ }) + " " + (kind === "w" ? w : i + 1) + kind).join(", "),
385
+ // It's intended to keep `src` the last attribute because React updates
386
+ // attributes in order. If we keep `src` the first one, Safari will
387
+ // immediately start to fetch `src`, before `sizes` and `srcSet` are even
388
+ // updated by React. That causes multiple unnecessary requests if `srcSet`
389
+ // and `sizes` are defined.
390
+ // This bug cannot be reproduced in Chrome or Firefox.
391
+ src: loader({
392
+ config,
393
+ src,
394
+ quality,
395
+ width: widths[last]
396
+ })
397
+ };
398
+ }
399
+ function getImgProps(param, _state) {
400
+ let { src, sizes, unoptimized = false, priority = false, loading, className, quality, width, height, fill = false, style, overrideSrc, onLoad, onLoadingComplete, placeholder = "empty", blurDataURL, fetchPriority, decoding = "async", layout, objectFit, objectPosition, lazyBoundary, lazyRoot, ...rest } = param;
401
+ const { imgConf, showAltText, blurComplete, defaultLoader } = _state;
402
+ let config;
403
+ let c = imgConf || _imageconfig.imageConfigDefault;
404
+ if ("allSizes" in c) {
405
+ config = c;
406
+ } else {
407
+ var _c_qualities;
408
+ const allSizes = [
409
+ ...c.deviceSizes,
410
+ ...c.imageSizes
411
+ ].sort((a, b) => a - b);
412
+ const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
413
+ const qualities = (_c_qualities = c.qualities) == null ? void 0 : _c_qualities.sort((a, b) => a - b);
414
+ config = {
415
+ ...c,
416
+ allSizes,
417
+ deviceSizes,
418
+ qualities
419
+ };
420
+ }
421
+ if (typeof defaultLoader === "undefined") {
422
+ throw Object.defineProperty(new Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"), "__NEXT_ERROR_CODE", {
423
+ value: "E163",
424
+ enumerable: false,
425
+ configurable: true
426
+ });
427
+ }
428
+ let loader = rest.loader || defaultLoader;
429
+ delete rest.loader;
430
+ delete rest.srcSet;
431
+ const isDefaultLoader = "__next_img_default" in loader;
432
+ if (isDefaultLoader) {
433
+ if (config.loader === "custom") {
434
+ throw Object.defineProperty(new Error('Image with src "' + src + '" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'), "__NEXT_ERROR_CODE", {
435
+ value: "E252",
436
+ enumerable: false,
437
+ configurable: true
438
+ });
439
+ }
440
+ } else {
441
+ const customImageLoader = loader;
442
+ loader = (obj) => {
443
+ const { config: _, ...opts } = obj;
444
+ return customImageLoader(opts);
445
+ };
446
+ }
447
+ if (layout) {
448
+ if (layout === "fill") {
449
+ fill = true;
450
+ }
451
+ const layoutToStyle = {
452
+ intrinsic: {
453
+ maxWidth: "100%",
454
+ height: "auto"
455
+ },
456
+ responsive: {
457
+ width: "100%",
458
+ height: "auto"
459
+ }
460
+ };
461
+ const layoutToSizes = {
462
+ responsive: "100vw",
463
+ fill: "100vw"
464
+ };
465
+ const layoutStyle = layoutToStyle[layout];
466
+ if (layoutStyle) {
467
+ style = {
468
+ ...style,
469
+ ...layoutStyle
470
+ };
471
+ }
472
+ const layoutSizes = layoutToSizes[layout];
473
+ if (layoutSizes && !sizes) {
474
+ sizes = layoutSizes;
475
+ }
476
+ }
477
+ let staticSrc = "";
478
+ let widthInt = getInt(width);
479
+ let heightInt = getInt(height);
480
+ let blurWidth;
481
+ let blurHeight;
482
+ if (isStaticImport(src)) {
483
+ const staticImageData = isStaticRequire(src) ? src.default : src;
484
+ if (!staticImageData.src) {
485
+ throw Object.defineProperty(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(staticImageData)), "__NEXT_ERROR_CODE", {
486
+ value: "E460",
487
+ enumerable: false,
488
+ configurable: true
489
+ });
490
+ }
491
+ if (!staticImageData.height || !staticImageData.width) {
492
+ throw Object.defineProperty(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(staticImageData)), "__NEXT_ERROR_CODE", {
493
+ value: "E48",
494
+ enumerable: false,
495
+ configurable: true
496
+ });
497
+ }
498
+ blurWidth = staticImageData.blurWidth;
499
+ blurHeight = staticImageData.blurHeight;
500
+ blurDataURL = blurDataURL || staticImageData.blurDataURL;
501
+ staticSrc = staticImageData.src;
502
+ if (!fill) {
503
+ if (!widthInt && !heightInt) {
504
+ widthInt = staticImageData.width;
505
+ heightInt = staticImageData.height;
506
+ } else if (widthInt && !heightInt) {
507
+ const ratio = widthInt / staticImageData.width;
508
+ heightInt = Math.round(staticImageData.height * ratio);
509
+ } else if (!widthInt && heightInt) {
510
+ const ratio = heightInt / staticImageData.height;
511
+ widthInt = Math.round(staticImageData.width * ratio);
512
+ }
513
+ }
514
+ }
515
+ src = typeof src === "string" ? src : staticSrc;
516
+ let isLazy = !priority && (loading === "lazy" || typeof loading === "undefined");
517
+ if (!src || src.startsWith("data:") || src.startsWith("blob:")) {
518
+ unoptimized = true;
519
+ isLazy = false;
520
+ }
521
+ if (config.unoptimized) {
522
+ unoptimized = true;
523
+ }
524
+ if (isDefaultLoader && !config.dangerouslyAllowSVG && src.split("?", 1)[0].endsWith(".svg")) {
525
+ unoptimized = true;
526
+ }
527
+ const qualityInt = getInt(quality);
528
+ if (process.env.NODE_ENV !== "production") {
529
+ var _config_localPatterns;
530
+ if (config.output === "export" && isDefaultLoader && !unoptimized) {
531
+ throw Object.defineProperty(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"), "__NEXT_ERROR_CODE", {
532
+ value: "E500",
533
+ enumerable: false,
534
+ configurable: true
535
+ });
536
+ }
537
+ if (!src) {
538
+ unoptimized = true;
539
+ } else {
540
+ if (fill) {
541
+ if (width) {
542
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has both "width" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
543
+ value: "E96",
544
+ enumerable: false,
545
+ configurable: true
546
+ });
547
+ }
548
+ if (height) {
549
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has both "height" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
550
+ value: "E115",
551
+ enumerable: false,
552
+ configurable: true
553
+ });
554
+ }
555
+ if ((style == null ? void 0 : style.position) && style.position !== "absolute") {
556
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.'), "__NEXT_ERROR_CODE", {
557
+ value: "E216",
558
+ enumerable: false,
559
+ configurable: true
560
+ });
561
+ }
562
+ if ((style == null ? void 0 : style.width) && style.width !== "100%") {
563
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
564
+ value: "E73",
565
+ enumerable: false,
566
+ configurable: true
567
+ });
568
+ }
569
+ if ((style == null ? void 0 : style.height) && style.height !== "100%") {
570
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
571
+ value: "E404",
572
+ enumerable: false,
573
+ configurable: true
574
+ });
575
+ }
576
+ } else {
577
+ if (typeof widthInt === "undefined") {
578
+ throw Object.defineProperty(new Error('Image with src "' + src + '" is missing required "width" property.'), "__NEXT_ERROR_CODE", {
579
+ value: "E451",
580
+ enumerable: false,
581
+ configurable: true
582
+ });
583
+ } else if (isNaN(widthInt)) {
584
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "width" property. Expected a numeric value in pixels but received "' + width + '".'), "__NEXT_ERROR_CODE", {
585
+ value: "E66",
586
+ enumerable: false,
587
+ configurable: true
588
+ });
589
+ }
590
+ if (typeof heightInt === "undefined") {
591
+ throw Object.defineProperty(new Error('Image with src "' + src + '" is missing required "height" property.'), "__NEXT_ERROR_CODE", {
592
+ value: "E397",
593
+ enumerable: false,
594
+ configurable: true
595
+ });
596
+ } else if (isNaN(heightInt)) {
597
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "height" property. Expected a numeric value in pixels but received "' + height + '".'), "__NEXT_ERROR_CODE", {
598
+ value: "E444",
599
+ enumerable: false,
600
+ configurable: true
601
+ });
602
+ }
603
+ if (/^[\x00-\x20]/.test(src)) {
604
+ throw Object.defineProperty(new Error('Image with src "' + src + '" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
605
+ value: "E176",
606
+ enumerable: false,
607
+ configurable: true
608
+ });
609
+ }
610
+ if (/[\x00-\x20]$/.test(src)) {
611
+ throw Object.defineProperty(new Error('Image with src "' + src + '" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
612
+ value: "E21",
613
+ enumerable: false,
614
+ configurable: true
615
+ });
616
+ }
617
+ }
618
+ }
619
+ if (!VALID_LOADING_VALUES.includes(loading)) {
620
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "loading" property. Provided "' + loading + '" should be one of ' + VALID_LOADING_VALUES.map(String).join(",") + "."), "__NEXT_ERROR_CODE", {
621
+ value: "E357",
622
+ enumerable: false,
623
+ configurable: true
624
+ });
625
+ }
626
+ if (priority && loading === "lazy") {
627
+ throw Object.defineProperty(new Error('Image with src "' + src + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
628
+ value: "E218",
629
+ enumerable: false,
630
+ configurable: true
631
+ });
632
+ }
633
+ if (placeholder !== "empty" && placeholder !== "blur" && !placeholder.startsWith("data:image/")) {
634
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "placeholder" property "' + placeholder + '".'), "__NEXT_ERROR_CODE", {
635
+ value: "E431",
636
+ enumerable: false,
637
+ configurable: true
638
+ });
639
+ }
640
+ if (placeholder !== "empty") {
641
+ if (widthInt && heightInt && widthInt * heightInt < 1600) {
642
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.');
643
+ }
644
+ }
645
+ if (qualityInt && qualityInt !== 75 && !config.qualities) {
646
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" is using quality "' + qualityInt + '" which is not configured in images.qualities. This config will be required starting in Next.js 16.\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-qualities');
647
+ }
648
+ if (src.startsWith("/") && src.includes("?") && (!(config == null ? void 0 : (_config_localPatterns = config.localPatterns) == null ? void 0 : _config_localPatterns.length) || config.localPatterns.length === 1 && config.localPatterns[0].pathname === "/_next/static/media/**")) {
649
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" is using a query string which is not configured in images.localPatterns. This config will be required starting in Next.js 16.\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns');
650
+ }
651
+ if (placeholder === "blur" && !blurDataURL) {
652
+ const VALID_BLUR_EXT = [
653
+ "jpeg",
654
+ "png",
655
+ "webp",
656
+ "avif"
657
+ ];
658
+ throw Object.defineProperty(new Error('Image with src "' + src + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
659
+ Possible solutions:
660
+ - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
661
+ - Change the "src" property to a static import with one of the supported file types: ` + VALID_BLUR_EXT.join(",") + ' (animated images not supported)\n - Remove the "placeholder" property, effectively no blur effect\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url'), "__NEXT_ERROR_CODE", {
662
+ value: "E371",
663
+ enumerable: false,
664
+ configurable: true
665
+ });
666
+ }
667
+ if ("ref" in rest) {
668
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.');
669
+ }
670
+ if (!unoptimized && !isDefaultLoader) {
671
+ const urlStr = loader({
672
+ config,
673
+ src,
674
+ width: widthInt || 400,
675
+ quality: qualityInt || 75
676
+ });
677
+ let url;
678
+ try {
679
+ url = new URL(urlStr);
680
+ } catch (err) {
681
+ }
682
+ if (urlStr === src || url && url.pathname === src && !url.search) {
683
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader-width');
684
+ }
685
+ }
686
+ if (onLoadingComplete) {
687
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
688
+ }
689
+ for (const [legacyKey, legacyValue] of Object.entries({
690
+ layout,
691
+ objectFit,
692
+ objectPosition,
693
+ lazyBoundary,
694
+ lazyRoot
695
+ })) {
696
+ if (legacyValue) {
697
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" has legacy prop "' + legacyKey + '". Did you forget to run the codemod?\nRead more: https://nextjs.org/docs/messages/next-image-upgrade-to-13');
698
+ }
699
+ }
700
+ if (typeof window !== "undefined" && !perfObserver && window.PerformanceObserver) {
701
+ perfObserver = new PerformanceObserver((entryList) => {
702
+ for (const entry of entryList.getEntries()) {
703
+ var _entry_element;
704
+ const imgSrc = (entry == null ? void 0 : (_entry_element = entry.element) == null ? void 0 : _entry_element.src) || "";
705
+ const lcpImage = allImgs.get(imgSrc);
706
+ if (lcpImage && !lcpImage.priority && lcpImage.placeholder === "empty" && !lcpImage.src.startsWith("data:") && !lcpImage.src.startsWith("blob:")) {
707
+ (0, _warnonce.warnOnce)('Image with src "' + lcpImage.src + '" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.\nRead more: https://nextjs.org/docs/api-reference/next/image#priority');
708
+ }
709
+ }
710
+ });
711
+ try {
712
+ perfObserver.observe({
713
+ type: "largest-contentful-paint",
714
+ buffered: true
715
+ });
716
+ } catch (err) {
717
+ console.error(err);
718
+ }
719
+ }
720
+ }
721
+ const imgStyle = Object.assign(fill ? {
722
+ position: "absolute",
723
+ height: "100%",
724
+ width: "100%",
725
+ left: 0,
726
+ top: 0,
727
+ right: 0,
728
+ bottom: 0,
729
+ objectFit,
730
+ objectPosition
731
+ } : {}, showAltText ? {} : {
732
+ color: "transparent"
733
+ }, style);
734
+ const backgroundImage = !blurComplete && placeholder !== "empty" ? placeholder === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, _imageblursvg.getImageBlurSvg)({
735
+ widthInt,
736
+ heightInt,
737
+ blurWidth,
738
+ blurHeight,
739
+ blurDataURL: blurDataURL || "",
740
+ objectFit: imgStyle.objectFit
741
+ }) + '")' : 'url("' + placeholder + '")' : null;
742
+ const backgroundSize = !INVALID_BACKGROUND_SIZE_VALUES.includes(imgStyle.objectFit) ? imgStyle.objectFit : imgStyle.objectFit === "fill" ? "100% 100%" : "cover";
743
+ let placeholderStyle = backgroundImage ? {
744
+ backgroundSize,
745
+ backgroundPosition: imgStyle.objectPosition || "50% 50%",
746
+ backgroundRepeat: "no-repeat",
747
+ backgroundImage
748
+ } : {};
749
+ if (process.env.NODE_ENV === "development") {
750
+ if (placeholderStyle.backgroundImage && placeholder === "blur" && (blurDataURL == null ? void 0 : blurDataURL.startsWith("/"))) {
751
+ placeholderStyle.backgroundImage = 'url("' + blurDataURL + '")';
752
+ }
753
+ }
754
+ const imgAttributes = generateImgAttrs({
755
+ config,
756
+ src,
757
+ unoptimized,
758
+ width: widthInt,
759
+ quality: qualityInt,
760
+ sizes,
761
+ loader
762
+ });
763
+ if (process.env.NODE_ENV !== "production") {
764
+ if (typeof window !== "undefined") {
765
+ let fullUrl;
766
+ try {
767
+ fullUrl = new URL(imgAttributes.src);
768
+ } catch (e) {
769
+ fullUrl = new URL(imgAttributes.src, window.location.href);
770
+ }
771
+ allImgs.set(fullUrl.href, {
772
+ src,
773
+ priority,
774
+ placeholder
775
+ });
776
+ }
777
+ }
778
+ const props = {
779
+ ...rest,
780
+ loading: isLazy ? "lazy" : loading,
781
+ fetchPriority,
782
+ width: widthInt,
783
+ height: heightInt,
784
+ decoding,
785
+ className,
786
+ style: {
787
+ ...imgStyle,
788
+ ...placeholderStyle
789
+ },
790
+ sizes: imgAttributes.sizes,
791
+ srcSet: imgAttributes.srcSet,
792
+ src: overrideSrc || imgAttributes.src
793
+ };
794
+ const meta = {
795
+ unoptimized,
796
+ priority,
797
+ placeholder,
798
+ fill
799
+ };
800
+ return {
801
+ props,
802
+ meta
803
+ };
804
+ }
805
+ }
806
+ });
807
+
808
+ // node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
809
+ var require_interop_require_wildcard = __commonJS({
810
+ "node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports$1) {
811
+ function _getRequireWildcardCache(nodeInterop) {
812
+ if (typeof WeakMap !== "function") return null;
813
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
814
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
815
+ return (_getRequireWildcardCache = function(nodeInterop2) {
816
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
817
+ })(nodeInterop);
818
+ }
819
+ function _interop_require_wildcard(obj, nodeInterop) {
820
+ if (!nodeInterop && obj && obj.__esModule) return obj;
821
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
822
+ var cache = _getRequireWildcardCache(nodeInterop);
823
+ if (cache && cache.has(obj)) return cache.get(obj);
824
+ var newObj = { __proto__: null };
825
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
826
+ for (var key in obj) {
827
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
828
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
829
+ if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
830
+ else newObj[key] = obj[key];
831
+ }
832
+ }
833
+ newObj.default = obj;
834
+ if (cache) cache.set(obj, newObj);
835
+ return newObj;
836
+ }
837
+ exports$1._ = _interop_require_wildcard;
838
+ }
839
+ });
840
+
841
+ // node_modules/next/dist/shared/lib/side-effect.js
842
+ var require_side_effect = __commonJS({
843
+ "node_modules/next/dist/shared/lib/side-effect.js"(exports$1) {
844
+ Object.defineProperty(exports$1, "__esModule", {
845
+ value: true
846
+ });
847
+ Object.defineProperty(exports$1, "default", {
848
+ enumerable: true,
849
+ get: function() {
850
+ return SideEffect;
851
+ }
852
+ });
853
+ var _react = __require("react");
854
+ var isServer = typeof window === "undefined";
855
+ var useClientOnlyLayoutEffect = isServer ? () => {
856
+ } : _react.useLayoutEffect;
857
+ var useClientOnlyEffect = isServer ? () => {
858
+ } : _react.useEffect;
859
+ function SideEffect(props) {
860
+ const { headManager, reduceComponentsToState } = props;
861
+ function emitChange() {
862
+ if (headManager && headManager.mountedInstances) {
863
+ const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));
864
+ headManager.updateHead(reduceComponentsToState(headElements, props));
865
+ }
866
+ }
867
+ if (isServer) {
868
+ var _headManager_mountedInstances;
869
+ headManager == null ? void 0 : (_headManager_mountedInstances = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances.add(props.children);
870
+ emitChange();
871
+ }
872
+ useClientOnlyLayoutEffect(() => {
873
+ var _headManager_mountedInstances2;
874
+ headManager == null ? void 0 : (_headManager_mountedInstances2 = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances2.add(props.children);
875
+ return () => {
876
+ var _headManager_mountedInstances3;
877
+ headManager == null ? void 0 : (_headManager_mountedInstances3 = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances3.delete(props.children);
878
+ };
879
+ });
880
+ useClientOnlyLayoutEffect(() => {
881
+ if (headManager) {
882
+ headManager._pendingUpdate = emitChange;
883
+ }
884
+ return () => {
885
+ if (headManager) {
886
+ headManager._pendingUpdate = emitChange;
887
+ }
888
+ };
889
+ });
890
+ useClientOnlyEffect(() => {
891
+ if (headManager && headManager._pendingUpdate) {
892
+ headManager._pendingUpdate();
893
+ headManager._pendingUpdate = null;
894
+ }
895
+ return () => {
896
+ if (headManager && headManager._pendingUpdate) {
897
+ headManager._pendingUpdate();
898
+ headManager._pendingUpdate = null;
899
+ }
900
+ };
901
+ });
902
+ return null;
903
+ }
904
+ }
905
+ });
906
+
907
+ // node_modules/next/dist/shared/lib/amp-context.shared-runtime.js
908
+ var require_amp_context_shared_runtime = __commonJS({
909
+ "node_modules/next/dist/shared/lib/amp-context.shared-runtime.js"(exports$1) {
910
+ Object.defineProperty(exports$1, "__esModule", {
911
+ value: true
912
+ });
913
+ Object.defineProperty(exports$1, "AmpStateContext", {
914
+ enumerable: true,
915
+ get: function() {
916
+ return AmpStateContext;
917
+ }
918
+ });
919
+ var _interop_require_default = require_interop_require_default();
920
+ var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
921
+ var AmpStateContext = _react.default.createContext({});
922
+ if (process.env.NODE_ENV !== "production") {
923
+ AmpStateContext.displayName = "AmpStateContext";
924
+ }
925
+ }
926
+ });
927
+
928
+ // node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js
929
+ var require_head_manager_context_shared_runtime = __commonJS({
930
+ "node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js"(exports$1) {
931
+ Object.defineProperty(exports$1, "__esModule", {
932
+ value: true
933
+ });
934
+ Object.defineProperty(exports$1, "HeadManagerContext", {
935
+ enumerable: true,
936
+ get: function() {
937
+ return HeadManagerContext;
938
+ }
939
+ });
940
+ var _interop_require_default = require_interop_require_default();
941
+ var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
942
+ var HeadManagerContext = _react.default.createContext({});
943
+ if (process.env.NODE_ENV !== "production") {
944
+ HeadManagerContext.displayName = "HeadManagerContext";
945
+ }
946
+ }
947
+ });
948
+
949
+ // node_modules/next/dist/shared/lib/amp-mode.js
950
+ var require_amp_mode = __commonJS({
951
+ "node_modules/next/dist/shared/lib/amp-mode.js"(exports$1) {
952
+ Object.defineProperty(exports$1, "__esModule", {
953
+ value: true
954
+ });
955
+ Object.defineProperty(exports$1, "isInAmpMode", {
956
+ enumerable: true,
957
+ get: function() {
958
+ return isInAmpMode;
959
+ }
960
+ });
961
+ function isInAmpMode(param) {
962
+ let { ampFirst = false, hybrid = false, hasQuery = false } = param === void 0 ? {} : param;
963
+ return ampFirst || hybrid && hasQuery;
964
+ }
965
+ }
966
+ });
967
+
968
+ // node_modules/next/dist/shared/lib/head.js
969
+ var require_head = __commonJS({
970
+ "node_modules/next/dist/shared/lib/head.js"(exports$1, module) {
971
+ "use client";
972
+ Object.defineProperty(exports$1, "__esModule", {
973
+ value: true
974
+ });
975
+ function _export(target, all) {
976
+ for (var name in all) Object.defineProperty(target, name, {
977
+ enumerable: true,
978
+ get: all[name]
979
+ });
980
+ }
981
+ _export(exports$1, {
982
+ default: function() {
983
+ return _default;
984
+ },
985
+ defaultHead: function() {
986
+ return defaultHead;
987
+ }
988
+ });
989
+ var _interop_require_default = require_interop_require_default();
990
+ var _interop_require_wildcard = require_interop_require_wildcard();
991
+ var _jsxruntime = __require("react/jsx-runtime");
992
+ var _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
993
+ var _sideeffect = /* @__PURE__ */ _interop_require_default._(require_side_effect());
994
+ var _ampcontextsharedruntime = require_amp_context_shared_runtime();
995
+ var _headmanagercontextsharedruntime = require_head_manager_context_shared_runtime();
996
+ var _ampmode = require_amp_mode();
997
+ var _warnonce = require_warn_once();
998
+ function defaultHead(inAmpMode) {
999
+ if (inAmpMode === void 0) inAmpMode = false;
1000
+ const head = [
1001
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
1002
+ charSet: "utf-8"
1003
+ }, "charset")
1004
+ ];
1005
+ if (!inAmpMode) {
1006
+ head.push(/* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
1007
+ name: "viewport",
1008
+ content: "width=device-width"
1009
+ }, "viewport"));
1010
+ }
1011
+ return head;
1012
+ }
1013
+ function onlyReactElement(list, child) {
1014
+ if (typeof child === "string" || typeof child === "number") {
1015
+ return list;
1016
+ }
1017
+ if (child.type === _react.default.Fragment) {
1018
+ return list.concat(
1019
+ // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
1020
+ _react.default.Children.toArray(child.props.children).reduce(
1021
+ // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
1022
+ (fragmentList, fragmentChild) => {
1023
+ if (typeof fragmentChild === "string" || typeof fragmentChild === "number") {
1024
+ return fragmentList;
1025
+ }
1026
+ return fragmentList.concat(fragmentChild);
1027
+ },
1028
+ []
1029
+ )
1030
+ );
1031
+ }
1032
+ return list.concat(child);
1033
+ }
1034
+ var METATYPES = [
1035
+ "name",
1036
+ "httpEquiv",
1037
+ "charSet",
1038
+ "itemProp"
1039
+ ];
1040
+ function unique() {
1041
+ const keys = /* @__PURE__ */ new Set();
1042
+ const tags = /* @__PURE__ */ new Set();
1043
+ const metaTypes = /* @__PURE__ */ new Set();
1044
+ const metaCategories = {};
1045
+ return (h) => {
1046
+ let isUnique = true;
1047
+ let hasKey = false;
1048
+ if (h.key && typeof h.key !== "number" && h.key.indexOf("$") > 0) {
1049
+ hasKey = true;
1050
+ const key = h.key.slice(h.key.indexOf("$") + 1);
1051
+ if (keys.has(key)) {
1052
+ isUnique = false;
1053
+ } else {
1054
+ keys.add(key);
1055
+ }
1056
+ }
1057
+ switch (h.type) {
1058
+ case "title":
1059
+ case "base":
1060
+ if (tags.has(h.type)) {
1061
+ isUnique = false;
1062
+ } else {
1063
+ tags.add(h.type);
1064
+ }
1065
+ break;
1066
+ case "meta":
1067
+ for (let i = 0, len = METATYPES.length; i < len; i++) {
1068
+ const metatype = METATYPES[i];
1069
+ if (!h.props.hasOwnProperty(metatype)) continue;
1070
+ if (metatype === "charSet") {
1071
+ if (metaTypes.has(metatype)) {
1072
+ isUnique = false;
1073
+ } else {
1074
+ metaTypes.add(metatype);
1075
+ }
1076
+ } else {
1077
+ const category = h.props[metatype];
1078
+ const categories = metaCategories[metatype] || /* @__PURE__ */ new Set();
1079
+ if ((metatype !== "name" || !hasKey) && categories.has(category)) {
1080
+ isUnique = false;
1081
+ } else {
1082
+ categories.add(category);
1083
+ metaCategories[metatype] = categories;
1084
+ }
1085
+ }
1086
+ }
1087
+ break;
1088
+ }
1089
+ return isUnique;
1090
+ };
1091
+ }
1092
+ function reduceComponents(headChildrenElements, props) {
1093
+ const { inAmpMode } = props;
1094
+ return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(inAmpMode).reverse()).filter(unique()).reverse().map((c, i) => {
1095
+ const key = c.key || i;
1096
+ if (process.env.NODE_ENV === "development") {
1097
+ if (c.type === "script" && c.props["type"] !== "application/ld+json") {
1098
+ const srcMessage = c.props["src"] ? '<script> tag with src="' + c.props["src"] + '"' : "inline <script>";
1099
+ (0, _warnonce.warnOnce)("Do not add <script> tags using next/head (see " + srcMessage + "). Use next/script instead. \nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component");
1100
+ } else if (c.type === "link" && c.props["rel"] === "stylesheet") {
1101
+ (0, _warnonce.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="' + c.props["href"] + '"). Use Document instead. \nSee more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component');
1102
+ }
1103
+ }
1104
+ return /* @__PURE__ */ _react.default.cloneElement(c, {
1105
+ key
1106
+ });
1107
+ });
1108
+ }
1109
+ function Head(param) {
1110
+ let { children } = param;
1111
+ const ampState = (0, _react.useContext)(_ampcontextsharedruntime.AmpStateContext);
1112
+ const headManager = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
1113
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sideeffect.default, {
1114
+ reduceComponentsToState: reduceComponents,
1115
+ headManager,
1116
+ inAmpMode: (0, _ampmode.isInAmpMode)(ampState),
1117
+ children
1118
+ });
1119
+ }
1120
+ var _default = Head;
1121
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
1122
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
1123
+ Object.assign(exports$1.default, exports$1);
1124
+ module.exports = exports$1.default;
1125
+ }
1126
+ }
1127
+ });
1128
+
1129
+ // node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js
1130
+ var require_image_config_context_shared_runtime = __commonJS({
1131
+ "node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js"(exports$1) {
1132
+ Object.defineProperty(exports$1, "__esModule", {
1133
+ value: true
1134
+ });
1135
+ Object.defineProperty(exports$1, "ImageConfigContext", {
1136
+ enumerable: true,
1137
+ get: function() {
1138
+ return ImageConfigContext;
1139
+ }
1140
+ });
1141
+ var _interop_require_default = require_interop_require_default();
1142
+ var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
1143
+ var _imageconfig = require_image_config();
1144
+ var ImageConfigContext = _react.default.createContext(_imageconfig.imageConfigDefault);
1145
+ if (process.env.NODE_ENV !== "production") {
1146
+ ImageConfigContext.displayName = "ImageConfigContext";
1147
+ }
1148
+ }
1149
+ });
1150
+
1151
+ // node_modules/next/dist/shared/lib/router-context.shared-runtime.js
1152
+ var require_router_context_shared_runtime = __commonJS({
1153
+ "node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(exports$1) {
1154
+ Object.defineProperty(exports$1, "__esModule", {
1155
+ value: true
1156
+ });
1157
+ Object.defineProperty(exports$1, "RouterContext", {
1158
+ enumerable: true,
1159
+ get: function() {
1160
+ return RouterContext;
1161
+ }
1162
+ });
1163
+ var _interop_require_default = require_interop_require_default();
1164
+ var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
1165
+ var RouterContext = _react.default.createContext(null);
1166
+ if (process.env.NODE_ENV !== "production") {
1167
+ RouterContext.displayName = "RouterContext";
1168
+ }
1169
+ }
1170
+ });
1171
+
1172
+ // node_modules/next/dist/compiled/picomatch/index.js
1173
+ var require_picomatch = __commonJS({
1174
+ "node_modules/next/dist/compiled/picomatch/index.js"(exports$1, module) {
1175
+ (() => {
1176
+ var t = { 170: (t2, e2, u2) => {
1177
+ const n = u2(510);
1178
+ const isWindows = () => {
1179
+ if (typeof navigator !== "undefined" && navigator.platform) {
1180
+ const t3 = navigator.platform.toLowerCase();
1181
+ return t3 === "win32" || t3 === "windows";
1182
+ }
1183
+ if (typeof process !== "undefined" && process.platform) {
1184
+ return process.platform === "win32";
1185
+ }
1186
+ return false;
1187
+ };
1188
+ function picomatch(t3, e3, u3 = false) {
1189
+ if (e3 && (e3.windows === null || e3.windows === void 0)) {
1190
+ e3 = { ...e3, windows: isWindows() };
1191
+ }
1192
+ return n(t3, e3, u3);
1193
+ }
1194
+ Object.assign(picomatch, n);
1195
+ t2.exports = picomatch;
1196
+ }, 154: (t2) => {
1197
+ const e2 = "\\\\/";
1198
+ const u2 = `[^${e2}]`;
1199
+ const n = "\\.";
1200
+ const o = "\\+";
1201
+ const s = "\\?";
1202
+ const r = "\\/";
1203
+ const a = "(?=.)";
1204
+ const i = "[^/]";
1205
+ const c = `(?:${r}|$)`;
1206
+ const p = `(?:^|${r})`;
1207
+ const l = `${n}{1,2}${c}`;
1208
+ const f = `(?!${n})`;
1209
+ const A = `(?!${p}${l})`;
1210
+ const _ = `(?!${n}{0,1}${c})`;
1211
+ const R = `(?!${l})`;
1212
+ const E = `[^.${r}]`;
1213
+ const h = `${i}*?`;
1214
+ const g = "/";
1215
+ const b = { DOT_LITERAL: n, PLUS_LITERAL: o, QMARK_LITERAL: s, SLASH_LITERAL: r, ONE_CHAR: a, QMARK: i, END_ANCHOR: c, DOTS_SLASH: l, NO_DOT: f, NO_DOTS: A, NO_DOT_SLASH: _, NO_DOTS_SLASH: R, QMARK_NO_DOT: E, STAR: h, START_ANCHOR: p, SEP: g };
1216
+ const C = { ...b, SLASH_LITERAL: `[${e2}]`, QMARK: u2, STAR: `${u2}*?`, DOTS_SLASH: `${n}{1,2}(?:[${e2}]|$)`, NO_DOT: `(?!${n})`, NO_DOTS: `(?!(?:^|[${e2}])${n}{1,2}(?:[${e2}]|$))`, NO_DOT_SLASH: `(?!${n}{0,1}(?:[${e2}]|$))`, NO_DOTS_SLASH: `(?!${n}{1,2}(?:[${e2}]|$))`, QMARK_NO_DOT: `[^.${e2}]`, START_ANCHOR: `(?:^|[${e2}])`, END_ANCHOR: `(?:[${e2}]|$)`, SEP: "\\" };
1217
+ const y = { 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" };
1218
+ t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: y, 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(t3) {
1219
+ return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
1220
+ }, globChars(t3) {
1221
+ return t3 === true ? C : b;
1222
+ } };
1223
+ }, 697: (t2, e2, u2) => {
1224
+ const n = u2(154);
1225
+ const o = u2(96);
1226
+ const { MAX_LENGTH: s, POSIX_REGEX_SOURCE: r, REGEX_NON_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_BACKREF: i, REPLACEMENTS: c } = n;
1227
+ const expandRange = (t3, e3) => {
1228
+ if (typeof e3.expandRange === "function") {
1229
+ return e3.expandRange(...t3, e3);
1230
+ }
1231
+ t3.sort();
1232
+ const u3 = `[${t3.join("-")}]`;
1233
+ try {
1234
+ new RegExp(u3);
1235
+ } catch (e4) {
1236
+ return t3.map(((t4) => o.escapeRegex(t4))).join("..");
1237
+ }
1238
+ return u3;
1239
+ };
1240
+ const syntaxError = (t3, e3) => `Missing ${t3}: "${e3}" - use "\\\\${e3}" to match literal characters`;
1241
+ const parse = (t3, e3) => {
1242
+ if (typeof t3 !== "string") {
1243
+ throw new TypeError("Expected a string");
1244
+ }
1245
+ t3 = c[t3] || t3;
1246
+ const u3 = { ...e3 };
1247
+ const p = typeof u3.maxLength === "number" ? Math.min(s, u3.maxLength) : s;
1248
+ let l = t3.length;
1249
+ if (l > p) {
1250
+ throw new SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${p}`);
1251
+ }
1252
+ const f = { type: "bos", value: "", output: u3.prepend || "" };
1253
+ const A = [f];
1254
+ const _ = u3.capture ? "" : "?:";
1255
+ const R = n.globChars(u3.windows);
1256
+ const E = n.extglobChars(R);
1257
+ const { DOT_LITERAL: h, PLUS_LITERAL: g, SLASH_LITERAL: b, ONE_CHAR: C, DOTS_SLASH: y, NO_DOT: $, NO_DOT_SLASH: x, NO_DOTS_SLASH: S, QMARK: H, QMARK_NO_DOT: v, STAR: d, START_ANCHOR: L } = R;
1258
+ const globstar = (t4) => `(${_}(?:(?!${L}${t4.dot ? y : h}).)*?)`;
1259
+ const T = u3.dot ? "" : $;
1260
+ const O = u3.dot ? H : v;
1261
+ let k = u3.bash === true ? globstar(u3) : d;
1262
+ if (u3.capture) {
1263
+ k = `(${k})`;
1264
+ }
1265
+ if (typeof u3.noext === "boolean") {
1266
+ u3.noextglob = u3.noext;
1267
+ }
1268
+ const m = { input: t3, index: -1, start: 0, dot: u3.dot === true, consumed: "", output: "", prefix: "", backtrack: false, negated: false, brackets: 0, braces: 0, parens: 0, quotes: 0, globstar: false, tokens: A };
1269
+ t3 = o.removePrefix(t3, m);
1270
+ l = t3.length;
1271
+ const w = [];
1272
+ const N = [];
1273
+ const I = [];
1274
+ let B = f;
1275
+ let G;
1276
+ const eos = () => m.index === l - 1;
1277
+ const D = m.peek = (e4 = 1) => t3[m.index + e4];
1278
+ const M = m.advance = () => t3[++m.index] || "";
1279
+ const remaining = () => t3.slice(m.index + 1);
1280
+ const consume = (t4 = "", e4 = 0) => {
1281
+ m.consumed += t4;
1282
+ m.index += e4;
1283
+ };
1284
+ const append = (t4) => {
1285
+ m.output += t4.output != null ? t4.output : t4.value;
1286
+ consume(t4.value);
1287
+ };
1288
+ const negate = () => {
1289
+ let t4 = 1;
1290
+ while (D() === "!" && (D(2) !== "(" || D(3) === "?")) {
1291
+ M();
1292
+ m.start++;
1293
+ t4++;
1294
+ }
1295
+ if (t4 % 2 === 0) {
1296
+ return false;
1297
+ }
1298
+ m.negated = true;
1299
+ m.start++;
1300
+ return true;
1301
+ };
1302
+ const increment = (t4) => {
1303
+ m[t4]++;
1304
+ I.push(t4);
1305
+ };
1306
+ const decrement = (t4) => {
1307
+ m[t4]--;
1308
+ I.pop();
1309
+ };
1310
+ const push = (t4) => {
1311
+ if (B.type === "globstar") {
1312
+ const e4 = m.braces > 0 && (t4.type === "comma" || t4.type === "brace");
1313
+ const u4 = t4.extglob === true || w.length && (t4.type === "pipe" || t4.type === "paren");
1314
+ if (t4.type !== "slash" && t4.type !== "paren" && !e4 && !u4) {
1315
+ m.output = m.output.slice(0, -B.output.length);
1316
+ B.type = "star";
1317
+ B.value = "*";
1318
+ B.output = k;
1319
+ m.output += B.output;
1320
+ }
1321
+ }
1322
+ if (w.length && t4.type !== "paren") {
1323
+ w[w.length - 1].inner += t4.value;
1324
+ }
1325
+ if (t4.value || t4.output) append(t4);
1326
+ if (B && B.type === "text" && t4.type === "text") {
1327
+ B.output = (B.output || B.value) + t4.value;
1328
+ B.value += t4.value;
1329
+ return;
1330
+ }
1331
+ t4.prev = B;
1332
+ A.push(t4);
1333
+ B = t4;
1334
+ };
1335
+ const extglobOpen = (t4, e4) => {
1336
+ const n2 = { ...E[e4], conditions: 1, inner: "" };
1337
+ n2.prev = B;
1338
+ n2.parens = m.parens;
1339
+ n2.output = m.output;
1340
+ const o2 = (u3.capture ? "(" : "") + n2.open;
1341
+ increment("parens");
1342
+ push({ type: t4, value: e4, output: m.output ? "" : C });
1343
+ push({ type: "paren", extglob: true, value: M(), output: o2 });
1344
+ w.push(n2);
1345
+ };
1346
+ const extglobClose = (t4) => {
1347
+ let n2 = t4.close + (u3.capture ? ")" : "");
1348
+ let o2;
1349
+ if (t4.type === "negate") {
1350
+ let s2 = k;
1351
+ if (t4.inner && t4.inner.length > 1 && t4.inner.includes("/")) {
1352
+ s2 = globstar(u3);
1353
+ }
1354
+ if (s2 !== k || eos() || /^\)+$/.test(remaining())) {
1355
+ n2 = t4.close = `)$))${s2}`;
1356
+ }
1357
+ if (t4.inner.includes("*") && (o2 = remaining()) && /^\.[^\\/.]+$/.test(o2)) {
1358
+ const u4 = parse(o2, { ...e3, fastpaths: false }).output;
1359
+ n2 = t4.close = `)${u4})${s2})`;
1360
+ }
1361
+ if (t4.prev.type === "bos") {
1362
+ m.negatedExtglob = true;
1363
+ }
1364
+ }
1365
+ push({ type: "paren", extglob: true, value: G, output: n2 });
1366
+ decrement("parens");
1367
+ };
1368
+ if (u3.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(t3)) {
1369
+ let n2 = false;
1370
+ let s2 = t3.replace(i, ((t4, e4, u4, o2, s3, r2) => {
1371
+ if (o2 === "\\") {
1372
+ n2 = true;
1373
+ return t4;
1374
+ }
1375
+ if (o2 === "?") {
1376
+ if (e4) {
1377
+ return e4 + o2 + (s3 ? H.repeat(s3.length) : "");
1378
+ }
1379
+ if (r2 === 0) {
1380
+ return O + (s3 ? H.repeat(s3.length) : "");
1381
+ }
1382
+ return H.repeat(u4.length);
1383
+ }
1384
+ if (o2 === ".") {
1385
+ return h.repeat(u4.length);
1386
+ }
1387
+ if (o2 === "*") {
1388
+ if (e4) {
1389
+ return e4 + o2 + (s3 ? k : "");
1390
+ }
1391
+ return k;
1392
+ }
1393
+ return e4 ? t4 : `\\${t4}`;
1394
+ }));
1395
+ if (n2 === true) {
1396
+ if (u3.unescape === true) {
1397
+ s2 = s2.replace(/\\/g, "");
1398
+ } else {
1399
+ s2 = s2.replace(/\\+/g, ((t4) => t4.length % 2 === 0 ? "\\\\" : t4 ? "\\" : ""));
1400
+ }
1401
+ }
1402
+ if (s2 === t3 && u3.contains === true) {
1403
+ m.output = t3;
1404
+ return m;
1405
+ }
1406
+ m.output = o.wrapOutput(s2, m, e3);
1407
+ return m;
1408
+ }
1409
+ while (!eos()) {
1410
+ G = M();
1411
+ if (G === "\0") {
1412
+ continue;
1413
+ }
1414
+ if (G === "\\") {
1415
+ const t4 = D();
1416
+ if (t4 === "/" && u3.bash !== true) {
1417
+ continue;
1418
+ }
1419
+ if (t4 === "." || t4 === ";") {
1420
+ continue;
1421
+ }
1422
+ if (!t4) {
1423
+ G += "\\";
1424
+ push({ type: "text", value: G });
1425
+ continue;
1426
+ }
1427
+ const e5 = /^\\+/.exec(remaining());
1428
+ let n3 = 0;
1429
+ if (e5 && e5[0].length > 2) {
1430
+ n3 = e5[0].length;
1431
+ m.index += n3;
1432
+ if (n3 % 2 !== 0) {
1433
+ G += "\\";
1434
+ }
1435
+ }
1436
+ if (u3.unescape === true) {
1437
+ G = M();
1438
+ } else {
1439
+ G += M();
1440
+ }
1441
+ if (m.brackets === 0) {
1442
+ push({ type: "text", value: G });
1443
+ continue;
1444
+ }
1445
+ }
1446
+ if (m.brackets > 0 && (G !== "]" || B.value === "[" || B.value === "[^")) {
1447
+ if (u3.posix !== false && G === ":") {
1448
+ const t4 = B.value.slice(1);
1449
+ if (t4.includes("[")) {
1450
+ B.posix = true;
1451
+ if (t4.includes(":")) {
1452
+ const t5 = B.value.lastIndexOf("[");
1453
+ const e5 = B.value.slice(0, t5);
1454
+ const u4 = B.value.slice(t5 + 2);
1455
+ const n3 = r[u4];
1456
+ if (n3) {
1457
+ B.value = e5 + n3;
1458
+ m.backtrack = true;
1459
+ M();
1460
+ if (!f.output && A.indexOf(B) === 1) {
1461
+ f.output = C;
1462
+ }
1463
+ continue;
1464
+ }
1465
+ }
1466
+ }
1467
+ }
1468
+ if (G === "[" && D() !== ":" || G === "-" && D() === "]") {
1469
+ G = `\\${G}`;
1470
+ }
1471
+ if (G === "]" && (B.value === "[" || B.value === "[^")) {
1472
+ G = `\\${G}`;
1473
+ }
1474
+ if (u3.posix === true && G === "!" && B.value === "[") {
1475
+ G = "^";
1476
+ }
1477
+ B.value += G;
1478
+ append({ value: G });
1479
+ continue;
1480
+ }
1481
+ if (m.quotes === 1 && G !== '"') {
1482
+ G = o.escapeRegex(G);
1483
+ B.value += G;
1484
+ append({ value: G });
1485
+ continue;
1486
+ }
1487
+ if (G === '"') {
1488
+ m.quotes = m.quotes === 1 ? 0 : 1;
1489
+ if (u3.keepQuotes === true) {
1490
+ push({ type: "text", value: G });
1491
+ }
1492
+ continue;
1493
+ }
1494
+ if (G === "(") {
1495
+ increment("parens");
1496
+ push({ type: "paren", value: G });
1497
+ continue;
1498
+ }
1499
+ if (G === ")") {
1500
+ if (m.parens === 0 && u3.strictBrackets === true) {
1501
+ throw new SyntaxError(syntaxError("opening", "("));
1502
+ }
1503
+ const t4 = w[w.length - 1];
1504
+ if (t4 && m.parens === t4.parens + 1) {
1505
+ extglobClose(w.pop());
1506
+ continue;
1507
+ }
1508
+ push({ type: "paren", value: G, output: m.parens ? ")" : "\\)" });
1509
+ decrement("parens");
1510
+ continue;
1511
+ }
1512
+ if (G === "[") {
1513
+ if (u3.nobracket === true || !remaining().includes("]")) {
1514
+ if (u3.nobracket !== true && u3.strictBrackets === true) {
1515
+ throw new SyntaxError(syntaxError("closing", "]"));
1516
+ }
1517
+ G = `\\${G}`;
1518
+ } else {
1519
+ increment("brackets");
1520
+ }
1521
+ push({ type: "bracket", value: G });
1522
+ continue;
1523
+ }
1524
+ if (G === "]") {
1525
+ if (u3.nobracket === true || B && B.type === "bracket" && B.value.length === 1) {
1526
+ push({ type: "text", value: G, output: `\\${G}` });
1527
+ continue;
1528
+ }
1529
+ if (m.brackets === 0) {
1530
+ if (u3.strictBrackets === true) {
1531
+ throw new SyntaxError(syntaxError("opening", "["));
1532
+ }
1533
+ push({ type: "text", value: G, output: `\\${G}` });
1534
+ continue;
1535
+ }
1536
+ decrement("brackets");
1537
+ const t4 = B.value.slice(1);
1538
+ if (B.posix !== true && t4[0] === "^" && !t4.includes("/")) {
1539
+ G = `/${G}`;
1540
+ }
1541
+ B.value += G;
1542
+ append({ value: G });
1543
+ if (u3.literalBrackets === false || o.hasRegexChars(t4)) {
1544
+ continue;
1545
+ }
1546
+ const e5 = o.escapeRegex(B.value);
1547
+ m.output = m.output.slice(0, -B.value.length);
1548
+ if (u3.literalBrackets === true) {
1549
+ m.output += e5;
1550
+ B.value = e5;
1551
+ continue;
1552
+ }
1553
+ B.value = `(${_}${e5}|${B.value})`;
1554
+ m.output += B.value;
1555
+ continue;
1556
+ }
1557
+ if (G === "{" && u3.nobrace !== true) {
1558
+ increment("braces");
1559
+ const t4 = { type: "brace", value: G, output: "(", outputIndex: m.output.length, tokensIndex: m.tokens.length };
1560
+ N.push(t4);
1561
+ push(t4);
1562
+ continue;
1563
+ }
1564
+ if (G === "}") {
1565
+ const t4 = N[N.length - 1];
1566
+ if (u3.nobrace === true || !t4) {
1567
+ push({ type: "text", value: G, output: G });
1568
+ continue;
1569
+ }
1570
+ let e5 = ")";
1571
+ if (t4.dots === true) {
1572
+ const t5 = A.slice();
1573
+ const n3 = [];
1574
+ for (let e6 = t5.length - 1; e6 >= 0; e6--) {
1575
+ A.pop();
1576
+ if (t5[e6].type === "brace") {
1577
+ break;
1578
+ }
1579
+ if (t5[e6].type !== "dots") {
1580
+ n3.unshift(t5[e6].value);
1581
+ }
1582
+ }
1583
+ e5 = expandRange(n3, u3);
1584
+ m.backtrack = true;
1585
+ }
1586
+ if (t4.comma !== true && t4.dots !== true) {
1587
+ const u4 = m.output.slice(0, t4.outputIndex);
1588
+ const n3 = m.tokens.slice(t4.tokensIndex);
1589
+ t4.value = t4.output = "\\{";
1590
+ G = e5 = "\\}";
1591
+ m.output = u4;
1592
+ for (const t5 of n3) {
1593
+ m.output += t5.output || t5.value;
1594
+ }
1595
+ }
1596
+ push({ type: "brace", value: G, output: e5 });
1597
+ decrement("braces");
1598
+ N.pop();
1599
+ continue;
1600
+ }
1601
+ if (G === "|") {
1602
+ if (w.length > 0) {
1603
+ w[w.length - 1].conditions++;
1604
+ }
1605
+ push({ type: "text", value: G });
1606
+ continue;
1607
+ }
1608
+ if (G === ",") {
1609
+ let t4 = G;
1610
+ const e5 = N[N.length - 1];
1611
+ if (e5 && I[I.length - 1] === "braces") {
1612
+ e5.comma = true;
1613
+ t4 = "|";
1614
+ }
1615
+ push({ type: "comma", value: G, output: t4 });
1616
+ continue;
1617
+ }
1618
+ if (G === "/") {
1619
+ if (B.type === "dot" && m.index === m.start + 1) {
1620
+ m.start = m.index + 1;
1621
+ m.consumed = "";
1622
+ m.output = "";
1623
+ A.pop();
1624
+ B = f;
1625
+ continue;
1626
+ }
1627
+ push({ type: "slash", value: G, output: b });
1628
+ continue;
1629
+ }
1630
+ if (G === ".") {
1631
+ if (m.braces > 0 && B.type === "dot") {
1632
+ if (B.value === ".") B.output = h;
1633
+ const t4 = N[N.length - 1];
1634
+ B.type = "dots";
1635
+ B.output += G;
1636
+ B.value += G;
1637
+ t4.dots = true;
1638
+ continue;
1639
+ }
1640
+ if (m.braces + m.parens === 0 && B.type !== "bos" && B.type !== "slash") {
1641
+ push({ type: "text", value: G, output: h });
1642
+ continue;
1643
+ }
1644
+ push({ type: "dot", value: G, output: h });
1645
+ continue;
1646
+ }
1647
+ if (G === "?") {
1648
+ const t4 = B && B.value === "(";
1649
+ if (!t4 && u3.noextglob !== true && D() === "(" && D(2) !== "?") {
1650
+ extglobOpen("qmark", G);
1651
+ continue;
1652
+ }
1653
+ if (B && B.type === "paren") {
1654
+ const t5 = D();
1655
+ let e5 = G;
1656
+ if (B.value === "(" && !/[!=<:]/.test(t5) || t5 === "<" && !/<([!=]|\w+>)/.test(remaining())) {
1657
+ e5 = `\\${G}`;
1658
+ }
1659
+ push({ type: "text", value: G, output: e5 });
1660
+ continue;
1661
+ }
1662
+ if (u3.dot !== true && (B.type === "slash" || B.type === "bos")) {
1663
+ push({ type: "qmark", value: G, output: v });
1664
+ continue;
1665
+ }
1666
+ push({ type: "qmark", value: G, output: H });
1667
+ continue;
1668
+ }
1669
+ if (G === "!") {
1670
+ if (u3.noextglob !== true && D() === "(") {
1671
+ if (D(2) !== "?" || !/[!=<:]/.test(D(3))) {
1672
+ extglobOpen("negate", G);
1673
+ continue;
1674
+ }
1675
+ }
1676
+ if (u3.nonegate !== true && m.index === 0) {
1677
+ negate();
1678
+ continue;
1679
+ }
1680
+ }
1681
+ if (G === "+") {
1682
+ if (u3.noextglob !== true && D() === "(" && D(2) !== "?") {
1683
+ extglobOpen("plus", G);
1684
+ continue;
1685
+ }
1686
+ if (B && B.value === "(" || u3.regex === false) {
1687
+ push({ type: "plus", value: G, output: g });
1688
+ continue;
1689
+ }
1690
+ if (B && (B.type === "bracket" || B.type === "paren" || B.type === "brace") || m.parens > 0) {
1691
+ push({ type: "plus", value: G });
1692
+ continue;
1693
+ }
1694
+ push({ type: "plus", value: g });
1695
+ continue;
1696
+ }
1697
+ if (G === "@") {
1698
+ if (u3.noextglob !== true && D() === "(" && D(2) !== "?") {
1699
+ push({ type: "at", extglob: true, value: G, output: "" });
1700
+ continue;
1701
+ }
1702
+ push({ type: "text", value: G });
1703
+ continue;
1704
+ }
1705
+ if (G !== "*") {
1706
+ if (G === "$" || G === "^") {
1707
+ G = `\\${G}`;
1708
+ }
1709
+ const t4 = a.exec(remaining());
1710
+ if (t4) {
1711
+ G += t4[0];
1712
+ m.index += t4[0].length;
1713
+ }
1714
+ push({ type: "text", value: G });
1715
+ continue;
1716
+ }
1717
+ if (B && (B.type === "globstar" || B.star === true)) {
1718
+ B.type = "star";
1719
+ B.star = true;
1720
+ B.value += G;
1721
+ B.output = k;
1722
+ m.backtrack = true;
1723
+ m.globstar = true;
1724
+ consume(G);
1725
+ continue;
1726
+ }
1727
+ let e4 = remaining();
1728
+ if (u3.noextglob !== true && /^\([^?]/.test(e4)) {
1729
+ extglobOpen("star", G);
1730
+ continue;
1731
+ }
1732
+ if (B.type === "star") {
1733
+ if (u3.noglobstar === true) {
1734
+ consume(G);
1735
+ continue;
1736
+ }
1737
+ const n3 = B.prev;
1738
+ const o2 = n3.prev;
1739
+ const s2 = n3.type === "slash" || n3.type === "bos";
1740
+ const r2 = o2 && (o2.type === "star" || o2.type === "globstar");
1741
+ if (u3.bash === true && (!s2 || e4[0] && e4[0] !== "/")) {
1742
+ push({ type: "star", value: G, output: "" });
1743
+ continue;
1744
+ }
1745
+ const a2 = m.braces > 0 && (n3.type === "comma" || n3.type === "brace");
1746
+ const i2 = w.length && (n3.type === "pipe" || n3.type === "paren");
1747
+ if (!s2 && n3.type !== "paren" && !a2 && !i2) {
1748
+ push({ type: "star", value: G, output: "" });
1749
+ continue;
1750
+ }
1751
+ while (e4.slice(0, 3) === "/**") {
1752
+ const u4 = t3[m.index + 4];
1753
+ if (u4 && u4 !== "/") {
1754
+ break;
1755
+ }
1756
+ e4 = e4.slice(3);
1757
+ consume("/**", 3);
1758
+ }
1759
+ if (n3.type === "bos" && eos()) {
1760
+ B.type = "globstar";
1761
+ B.value += G;
1762
+ B.output = globstar(u3);
1763
+ m.output = B.output;
1764
+ m.globstar = true;
1765
+ consume(G);
1766
+ continue;
1767
+ }
1768
+ if (n3.type === "slash" && n3.prev.type !== "bos" && !r2 && eos()) {
1769
+ m.output = m.output.slice(0, -(n3.output + B.output).length);
1770
+ n3.output = `(?:${n3.output}`;
1771
+ B.type = "globstar";
1772
+ B.output = globstar(u3) + (u3.strictSlashes ? ")" : "|$)");
1773
+ B.value += G;
1774
+ m.globstar = true;
1775
+ m.output += n3.output + B.output;
1776
+ consume(G);
1777
+ continue;
1778
+ }
1779
+ if (n3.type === "slash" && n3.prev.type !== "bos" && e4[0] === "/") {
1780
+ const t4 = e4[1] !== void 0 ? "|$" : "";
1781
+ m.output = m.output.slice(0, -(n3.output + B.output).length);
1782
+ n3.output = `(?:${n3.output}`;
1783
+ B.type = "globstar";
1784
+ B.output = `${globstar(u3)}${b}|${b}${t4})`;
1785
+ B.value += G;
1786
+ m.output += n3.output + B.output;
1787
+ m.globstar = true;
1788
+ consume(G + M());
1789
+ push({ type: "slash", value: "/", output: "" });
1790
+ continue;
1791
+ }
1792
+ if (n3.type === "bos" && e4[0] === "/") {
1793
+ B.type = "globstar";
1794
+ B.value += G;
1795
+ B.output = `(?:^|${b}|${globstar(u3)}${b})`;
1796
+ m.output = B.output;
1797
+ m.globstar = true;
1798
+ consume(G + M());
1799
+ push({ type: "slash", value: "/", output: "" });
1800
+ continue;
1801
+ }
1802
+ m.output = m.output.slice(0, -B.output.length);
1803
+ B.type = "globstar";
1804
+ B.output = globstar(u3);
1805
+ B.value += G;
1806
+ m.output += B.output;
1807
+ m.globstar = true;
1808
+ consume(G);
1809
+ continue;
1810
+ }
1811
+ const n2 = { type: "star", value: G, output: k };
1812
+ if (u3.bash === true) {
1813
+ n2.output = ".*?";
1814
+ if (B.type === "bos" || B.type === "slash") {
1815
+ n2.output = T + n2.output;
1816
+ }
1817
+ push(n2);
1818
+ continue;
1819
+ }
1820
+ if (B && (B.type === "bracket" || B.type === "paren") && u3.regex === true) {
1821
+ n2.output = G;
1822
+ push(n2);
1823
+ continue;
1824
+ }
1825
+ if (m.index === m.start || B.type === "slash" || B.type === "dot") {
1826
+ if (B.type === "dot") {
1827
+ m.output += x;
1828
+ B.output += x;
1829
+ } else if (u3.dot === true) {
1830
+ m.output += S;
1831
+ B.output += S;
1832
+ } else {
1833
+ m.output += T;
1834
+ B.output += T;
1835
+ }
1836
+ if (D() !== "*") {
1837
+ m.output += C;
1838
+ B.output += C;
1839
+ }
1840
+ }
1841
+ push(n2);
1842
+ }
1843
+ while (m.brackets > 0) {
1844
+ if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
1845
+ m.output = o.escapeLast(m.output, "[");
1846
+ decrement("brackets");
1847
+ }
1848
+ while (m.parens > 0) {
1849
+ if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
1850
+ m.output = o.escapeLast(m.output, "(");
1851
+ decrement("parens");
1852
+ }
1853
+ while (m.braces > 0) {
1854
+ if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
1855
+ m.output = o.escapeLast(m.output, "{");
1856
+ decrement("braces");
1857
+ }
1858
+ if (u3.strictSlashes !== true && (B.type === "star" || B.type === "bracket")) {
1859
+ push({ type: "maybe_slash", value: "", output: `${b}?` });
1860
+ }
1861
+ if (m.backtrack === true) {
1862
+ m.output = "";
1863
+ for (const t4 of m.tokens) {
1864
+ m.output += t4.output != null ? t4.output : t4.value;
1865
+ if (t4.suffix) {
1866
+ m.output += t4.suffix;
1867
+ }
1868
+ }
1869
+ }
1870
+ return m;
1871
+ };
1872
+ parse.fastpaths = (t3, e3) => {
1873
+ const u3 = { ...e3 };
1874
+ const r2 = typeof u3.maxLength === "number" ? Math.min(s, u3.maxLength) : s;
1875
+ const a2 = t3.length;
1876
+ if (a2 > r2) {
1877
+ throw new SyntaxError(`Input length: ${a2}, exceeds maximum allowed length: ${r2}`);
1878
+ }
1879
+ t3 = c[t3] || t3;
1880
+ const { DOT_LITERAL: i2, SLASH_LITERAL: p, ONE_CHAR: l, DOTS_SLASH: f, NO_DOT: A, NO_DOTS: _, NO_DOTS_SLASH: R, STAR: E, START_ANCHOR: h } = n.globChars(u3.windows);
1881
+ const g = u3.dot ? _ : A;
1882
+ const b = u3.dot ? R : A;
1883
+ const C = u3.capture ? "" : "?:";
1884
+ const y = { negated: false, prefix: "" };
1885
+ let $ = u3.bash === true ? ".*?" : E;
1886
+ if (u3.capture) {
1887
+ $ = `(${$})`;
1888
+ }
1889
+ const globstar = (t4) => {
1890
+ if (t4.noglobstar === true) return $;
1891
+ return `(${C}(?:(?!${h}${t4.dot ? f : i2}).)*?)`;
1892
+ };
1893
+ const create = (t4) => {
1894
+ switch (t4) {
1895
+ case "*":
1896
+ return `${g}${l}${$}`;
1897
+ case ".*":
1898
+ return `${i2}${l}${$}`;
1899
+ case "*.*":
1900
+ return `${g}${$}${i2}${l}${$}`;
1901
+ case "*/*":
1902
+ return `${g}${$}${p}${l}${b}${$}`;
1903
+ case "**":
1904
+ return g + globstar(u3);
1905
+ case "**/*":
1906
+ return `(?:${g}${globstar(u3)}${p})?${b}${l}${$}`;
1907
+ case "**/*.*":
1908
+ return `(?:${g}${globstar(u3)}${p})?${b}${$}${i2}${l}${$}`;
1909
+ case "**/.*":
1910
+ return `(?:${g}${globstar(u3)}${p})?${i2}${l}${$}`;
1911
+ default: {
1912
+ const e4 = /^(.*?)\.(\w+)$/.exec(t4);
1913
+ if (!e4) return;
1914
+ const u4 = create(e4[1]);
1915
+ if (!u4) return;
1916
+ return u4 + i2 + e4[2];
1917
+ }
1918
+ }
1919
+ };
1920
+ const x = o.removePrefix(t3, y);
1921
+ let S = create(x);
1922
+ if (S && u3.strictSlashes !== true) {
1923
+ S += `${p}?`;
1924
+ }
1925
+ return S;
1926
+ };
1927
+ t2.exports = parse;
1928
+ }, 510: (t2, e2, u2) => {
1929
+ const n = u2(716);
1930
+ const o = u2(697);
1931
+ const s = u2(96);
1932
+ const r = u2(154);
1933
+ const isObject = (t3) => t3 && typeof t3 === "object" && !Array.isArray(t3);
1934
+ const picomatch = (t3, e3, u3 = false) => {
1935
+ if (Array.isArray(t3)) {
1936
+ const n3 = t3.map(((t4) => picomatch(t4, e3, u3)));
1937
+ const arrayMatcher = (t4) => {
1938
+ for (const e4 of n3) {
1939
+ const u4 = e4(t4);
1940
+ if (u4) return u4;
1941
+ }
1942
+ return false;
1943
+ };
1944
+ return arrayMatcher;
1945
+ }
1946
+ const n2 = isObject(t3) && t3.tokens && t3.input;
1947
+ if (t3 === "" || typeof t3 !== "string" && !n2) {
1948
+ throw new TypeError("Expected pattern to be a non-empty string");
1949
+ }
1950
+ const o2 = e3 || {};
1951
+ const s2 = o2.windows;
1952
+ const r2 = n2 ? picomatch.compileRe(t3, e3) : picomatch.makeRe(t3, e3, false, true);
1953
+ const a = r2.state;
1954
+ delete r2.state;
1955
+ let isIgnored = () => false;
1956
+ if (o2.ignore) {
1957
+ const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
1958
+ isIgnored = picomatch(o2.ignore, t4, u3);
1959
+ }
1960
+ const matcher = (u4, n3 = false) => {
1961
+ const { isMatch: i, match: c, output: p } = picomatch.test(u4, r2, e3, { glob: t3, posix: s2 });
1962
+ const l = { glob: t3, state: a, regex: r2, posix: s2, input: u4, output: p, match: c, isMatch: i };
1963
+ if (typeof o2.onResult === "function") {
1964
+ o2.onResult(l);
1965
+ }
1966
+ if (i === false) {
1967
+ l.isMatch = false;
1968
+ return n3 ? l : false;
1969
+ }
1970
+ if (isIgnored(u4)) {
1971
+ if (typeof o2.onIgnore === "function") {
1972
+ o2.onIgnore(l);
1973
+ }
1974
+ l.isMatch = false;
1975
+ return n3 ? l : false;
1976
+ }
1977
+ if (typeof o2.onMatch === "function") {
1978
+ o2.onMatch(l);
1979
+ }
1980
+ return n3 ? l : true;
1981
+ };
1982
+ if (u3) {
1983
+ matcher.state = a;
1984
+ }
1985
+ return matcher;
1986
+ };
1987
+ picomatch.test = (t3, e3, u3, { glob: n2, posix: o2 } = {}) => {
1988
+ if (typeof t3 !== "string") {
1989
+ throw new TypeError("Expected input to be a string");
1990
+ }
1991
+ if (t3 === "") {
1992
+ return { isMatch: false, output: "" };
1993
+ }
1994
+ const r2 = u3 || {};
1995
+ const a = r2.format || (o2 ? s.toPosixSlashes : null);
1996
+ let i = t3 === n2;
1997
+ let c = i && a ? a(t3) : t3;
1998
+ if (i === false) {
1999
+ c = a ? a(t3) : t3;
2000
+ i = c === n2;
2001
+ }
2002
+ if (i === false || r2.capture === true) {
2003
+ if (r2.matchBase === true || r2.basename === true) {
2004
+ i = picomatch.matchBase(t3, e3, u3, o2);
2005
+ } else {
2006
+ i = e3.exec(c);
2007
+ }
2008
+ }
2009
+ return { isMatch: Boolean(i), match: i, output: c };
2010
+ };
2011
+ picomatch.matchBase = (t3, e3, u3) => {
2012
+ const n2 = e3 instanceof RegExp ? e3 : picomatch.makeRe(e3, u3);
2013
+ return n2.test(s.basename(t3));
2014
+ };
2015
+ picomatch.isMatch = (t3, e3, u3) => picomatch(e3, u3)(t3);
2016
+ picomatch.parse = (t3, e3) => {
2017
+ if (Array.isArray(t3)) return t3.map(((t4) => picomatch.parse(t4, e3)));
2018
+ return o(t3, { ...e3, fastpaths: false });
2019
+ };
2020
+ picomatch.scan = (t3, e3) => n(t3, e3);
2021
+ picomatch.compileRe = (t3, e3, u3 = false, n2 = false) => {
2022
+ if (u3 === true) {
2023
+ return t3.output;
2024
+ }
2025
+ const o2 = e3 || {};
2026
+ const s2 = o2.contains ? "" : "^";
2027
+ const r2 = o2.contains ? "" : "$";
2028
+ let a = `${s2}(?:${t3.output})${r2}`;
2029
+ if (t3 && t3.negated === true) {
2030
+ a = `^(?!${a}).*$`;
2031
+ }
2032
+ const i = picomatch.toRegex(a, e3);
2033
+ if (n2 === true) {
2034
+ i.state = t3;
2035
+ }
2036
+ return i;
2037
+ };
2038
+ picomatch.makeRe = (t3, e3 = {}, u3 = false, n2 = false) => {
2039
+ if (!t3 || typeof t3 !== "string") {
2040
+ throw new TypeError("Expected a non-empty string");
2041
+ }
2042
+ let s2 = { negated: false, fastpaths: true };
2043
+ if (e3.fastpaths !== false && (t3[0] === "." || t3[0] === "*")) {
2044
+ s2.output = o.fastpaths(t3, e3);
2045
+ }
2046
+ if (!s2.output) {
2047
+ s2 = o(t3, e3);
2048
+ }
2049
+ return picomatch.compileRe(s2, e3, u3, n2);
2050
+ };
2051
+ picomatch.toRegex = (t3, e3) => {
2052
+ try {
2053
+ const u3 = e3 || {};
2054
+ return new RegExp(t3, u3.flags || (u3.nocase ? "i" : ""));
2055
+ } catch (t4) {
2056
+ if (e3 && e3.debug === true) throw t4;
2057
+ return /$^/;
2058
+ }
2059
+ };
2060
+ picomatch.constants = r;
2061
+ t2.exports = picomatch;
2062
+ }, 716: (t2, e2, u2) => {
2063
+ const n = u2(96);
2064
+ const { CHAR_ASTERISK: o, CHAR_AT: s, CHAR_BACKWARD_SLASH: r, CHAR_COMMA: a, CHAR_DOT: i, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: p, CHAR_LEFT_CURLY_BRACE: l, CHAR_LEFT_PARENTHESES: f, CHAR_LEFT_SQUARE_BRACKET: A, CHAR_PLUS: _, CHAR_QUESTION_MARK: R, CHAR_RIGHT_CURLY_BRACE: E, CHAR_RIGHT_PARENTHESES: h, CHAR_RIGHT_SQUARE_BRACKET: g } = u2(154);
2065
+ const isPathSeparator = (t3) => t3 === p || t3 === r;
2066
+ const depth = (t3) => {
2067
+ if (t3.isPrefix !== true) {
2068
+ t3.depth = t3.isGlobstar ? Infinity : 1;
2069
+ }
2070
+ };
2071
+ const scan = (t3, e3) => {
2072
+ const u3 = e3 || {};
2073
+ const b = t3.length - 1;
2074
+ const C = u3.parts === true || u3.scanToEnd === true;
2075
+ const y = [];
2076
+ const $ = [];
2077
+ const x = [];
2078
+ let S = t3;
2079
+ let H = -1;
2080
+ let v = 0;
2081
+ let d = 0;
2082
+ let L = false;
2083
+ let T = false;
2084
+ let O = false;
2085
+ let k = false;
2086
+ let m = false;
2087
+ let w = false;
2088
+ let N = false;
2089
+ let I = false;
2090
+ let B = false;
2091
+ let G = false;
2092
+ let D = 0;
2093
+ let M;
2094
+ let P;
2095
+ let K = { value: "", depth: 0, isGlob: false };
2096
+ const eos = () => H >= b;
2097
+ const peek = () => S.charCodeAt(H + 1);
2098
+ const advance = () => {
2099
+ M = P;
2100
+ return S.charCodeAt(++H);
2101
+ };
2102
+ while (H < b) {
2103
+ P = advance();
2104
+ let t4;
2105
+ if (P === r) {
2106
+ N = K.backslashes = true;
2107
+ P = advance();
2108
+ if (P === l) {
2109
+ w = true;
2110
+ }
2111
+ continue;
2112
+ }
2113
+ if (w === true || P === l) {
2114
+ D++;
2115
+ while (eos() !== true && (P = advance())) {
2116
+ if (P === r) {
2117
+ N = K.backslashes = true;
2118
+ advance();
2119
+ continue;
2120
+ }
2121
+ if (P === l) {
2122
+ D++;
2123
+ continue;
2124
+ }
2125
+ if (w !== true && P === i && (P = advance()) === i) {
2126
+ L = K.isBrace = true;
2127
+ O = K.isGlob = true;
2128
+ G = true;
2129
+ if (C === true) {
2130
+ continue;
2131
+ }
2132
+ break;
2133
+ }
2134
+ if (w !== true && P === a) {
2135
+ L = K.isBrace = true;
2136
+ O = K.isGlob = true;
2137
+ G = true;
2138
+ if (C === true) {
2139
+ continue;
2140
+ }
2141
+ break;
2142
+ }
2143
+ if (P === E) {
2144
+ D--;
2145
+ if (D === 0) {
2146
+ w = false;
2147
+ L = K.isBrace = true;
2148
+ G = true;
2149
+ break;
2150
+ }
2151
+ }
2152
+ }
2153
+ if (C === true) {
2154
+ continue;
2155
+ }
2156
+ break;
2157
+ }
2158
+ if (P === p) {
2159
+ y.push(H);
2160
+ $.push(K);
2161
+ K = { value: "", depth: 0, isGlob: false };
2162
+ if (G === true) continue;
2163
+ if (M === i && H === v + 1) {
2164
+ v += 2;
2165
+ continue;
2166
+ }
2167
+ d = H + 1;
2168
+ continue;
2169
+ }
2170
+ if (u3.noext !== true) {
2171
+ const t5 = P === _ || P === s || P === o || P === R || P === c;
2172
+ if (t5 === true && peek() === f) {
2173
+ O = K.isGlob = true;
2174
+ k = K.isExtglob = true;
2175
+ G = true;
2176
+ if (P === c && H === v) {
2177
+ B = true;
2178
+ }
2179
+ if (C === true) {
2180
+ while (eos() !== true && (P = advance())) {
2181
+ if (P === r) {
2182
+ N = K.backslashes = true;
2183
+ P = advance();
2184
+ continue;
2185
+ }
2186
+ if (P === h) {
2187
+ O = K.isGlob = true;
2188
+ G = true;
2189
+ break;
2190
+ }
2191
+ }
2192
+ continue;
2193
+ }
2194
+ break;
2195
+ }
2196
+ }
2197
+ if (P === o) {
2198
+ if (M === o) m = K.isGlobstar = true;
2199
+ O = K.isGlob = true;
2200
+ G = true;
2201
+ if (C === true) {
2202
+ continue;
2203
+ }
2204
+ break;
2205
+ }
2206
+ if (P === R) {
2207
+ O = K.isGlob = true;
2208
+ G = true;
2209
+ if (C === true) {
2210
+ continue;
2211
+ }
2212
+ break;
2213
+ }
2214
+ if (P === A) {
2215
+ while (eos() !== true && (t4 = advance())) {
2216
+ if (t4 === r) {
2217
+ N = K.backslashes = true;
2218
+ advance();
2219
+ continue;
2220
+ }
2221
+ if (t4 === g) {
2222
+ T = K.isBracket = true;
2223
+ O = K.isGlob = true;
2224
+ G = true;
2225
+ break;
2226
+ }
2227
+ }
2228
+ if (C === true) {
2229
+ continue;
2230
+ }
2231
+ break;
2232
+ }
2233
+ if (u3.nonegate !== true && P === c && H === v) {
2234
+ I = K.negated = true;
2235
+ v++;
2236
+ continue;
2237
+ }
2238
+ if (u3.noparen !== true && P === f) {
2239
+ O = K.isGlob = true;
2240
+ if (C === true) {
2241
+ while (eos() !== true && (P = advance())) {
2242
+ if (P === f) {
2243
+ N = K.backslashes = true;
2244
+ P = advance();
2245
+ continue;
2246
+ }
2247
+ if (P === h) {
2248
+ G = true;
2249
+ break;
2250
+ }
2251
+ }
2252
+ continue;
2253
+ }
2254
+ break;
2255
+ }
2256
+ if (O === true) {
2257
+ G = true;
2258
+ if (C === true) {
2259
+ continue;
2260
+ }
2261
+ break;
2262
+ }
2263
+ }
2264
+ if (u3.noext === true) {
2265
+ k = false;
2266
+ O = false;
2267
+ }
2268
+ let U = S;
2269
+ let X5 = "";
2270
+ let F = "";
2271
+ if (v > 0) {
2272
+ X5 = S.slice(0, v);
2273
+ S = S.slice(v);
2274
+ d -= v;
2275
+ }
2276
+ if (U && O === true && d > 0) {
2277
+ U = S.slice(0, d);
2278
+ F = S.slice(d);
2279
+ } else if (O === true) {
2280
+ U = "";
2281
+ F = S;
2282
+ } else {
2283
+ U = S;
2284
+ }
2285
+ if (U && U !== "" && U !== "/" && U !== S) {
2286
+ if (isPathSeparator(U.charCodeAt(U.length - 1))) {
2287
+ U = U.slice(0, -1);
2288
+ }
2289
+ }
2290
+ if (u3.unescape === true) {
2291
+ if (F) F = n.removeBackslashes(F);
2292
+ if (U && N === true) {
2293
+ U = n.removeBackslashes(U);
2294
+ }
2295
+ }
2296
+ const Q = { prefix: X5, input: t3, start: v, base: U, glob: F, isBrace: L, isBracket: T, isGlob: O, isExtglob: k, isGlobstar: m, negated: I, negatedExtglob: B };
2297
+ if (u3.tokens === true) {
2298
+ Q.maxDepth = 0;
2299
+ if (!isPathSeparator(P)) {
2300
+ $.push(K);
2301
+ }
2302
+ Q.tokens = $;
2303
+ }
2304
+ if (u3.parts === true || u3.tokens === true) {
2305
+ let e4;
2306
+ for (let n2 = 0; n2 < y.length; n2++) {
2307
+ const o2 = e4 ? e4 + 1 : v;
2308
+ const s2 = y[n2];
2309
+ const r2 = t3.slice(o2, s2);
2310
+ if (u3.tokens) {
2311
+ if (n2 === 0 && v !== 0) {
2312
+ $[n2].isPrefix = true;
2313
+ $[n2].value = X5;
2314
+ } else {
2315
+ $[n2].value = r2;
2316
+ }
2317
+ depth($[n2]);
2318
+ Q.maxDepth += $[n2].depth;
2319
+ }
2320
+ if (n2 !== 0 || r2 !== "") {
2321
+ x.push(r2);
2322
+ }
2323
+ e4 = s2;
2324
+ }
2325
+ if (e4 && e4 + 1 < t3.length) {
2326
+ const n2 = t3.slice(e4 + 1);
2327
+ x.push(n2);
2328
+ if (u3.tokens) {
2329
+ $[$.length - 1].value = n2;
2330
+ depth($[$.length - 1]);
2331
+ Q.maxDepth += $[$.length - 1].depth;
2332
+ }
2333
+ }
2334
+ Q.slashes = y;
2335
+ Q.parts = x;
2336
+ }
2337
+ return Q;
2338
+ };
2339
+ t2.exports = scan;
2340
+ }, 96: (t2, e2, u2) => {
2341
+ const { REGEX_BACKSLASH: n, REGEX_REMOVE_BACKSLASH: o, REGEX_SPECIAL_CHARS: s, REGEX_SPECIAL_CHARS_GLOBAL: r } = u2(154);
2342
+ e2.isObject = (t3) => t3 !== null && typeof t3 === "object" && !Array.isArray(t3);
2343
+ e2.hasRegexChars = (t3) => s.test(t3);
2344
+ e2.isRegexChar = (t3) => t3.length === 1 && e2.hasRegexChars(t3);
2345
+ e2.escapeRegex = (t3) => t3.replace(r, "\\$1");
2346
+ e2.toPosixSlashes = (t3) => t3.replace(n, "/");
2347
+ e2.removeBackslashes = (t3) => t3.replace(o, ((t4) => t4 === "\\" ? "" : t4));
2348
+ e2.escapeLast = (t3, u3, n2) => {
2349
+ const o2 = t3.lastIndexOf(u3, n2);
2350
+ if (o2 === -1) return t3;
2351
+ if (t3[o2 - 1] === "\\") return e2.escapeLast(t3, u3, o2 - 1);
2352
+ return `${t3.slice(0, o2)}\\${t3.slice(o2)}`;
2353
+ };
2354
+ e2.removePrefix = (t3, e3 = {}) => {
2355
+ let u3 = t3;
2356
+ if (u3.startsWith("./")) {
2357
+ u3 = u3.slice(2);
2358
+ e3.prefix = "./";
2359
+ }
2360
+ return u3;
2361
+ };
2362
+ e2.wrapOutput = (t3, e3 = {}, u3 = {}) => {
2363
+ const n2 = u3.contains ? "" : "^";
2364
+ const o2 = u3.contains ? "" : "$";
2365
+ let s2 = `${n2}(?:${t3})${o2}`;
2366
+ if (e3.negated === true) {
2367
+ s2 = `(?:^(?!${s2}).*$)`;
2368
+ }
2369
+ return s2;
2370
+ };
2371
+ e2.basename = (t3, { windows: e3 } = {}) => {
2372
+ const u3 = t3.split(e3 ? /[\\/]/ : "/");
2373
+ const n2 = u3[u3.length - 1];
2374
+ if (n2 === "") {
2375
+ return u3[u3.length - 2];
2376
+ }
2377
+ return n2;
2378
+ };
2379
+ } };
2380
+ var e = {};
2381
+ function __nccwpck_require__(u2) {
2382
+ var n = e[u2];
2383
+ if (n !== void 0) {
2384
+ return n.exports;
2385
+ }
2386
+ var o = e[u2] = { exports: {} };
2387
+ var s = true;
2388
+ try {
2389
+ t[u2](o, o.exports, __nccwpck_require__);
2390
+ s = false;
2391
+ } finally {
2392
+ if (s) delete e[u2];
2393
+ }
2394
+ return o.exports;
2395
+ }
2396
+ if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
2397
+ var u = __nccwpck_require__(170);
2398
+ module.exports = u;
2399
+ })();
2400
+ }
2401
+ });
2402
+
2403
+ // node_modules/next/dist/shared/lib/match-local-pattern.js
2404
+ var require_match_local_pattern = __commonJS({
2405
+ "node_modules/next/dist/shared/lib/match-local-pattern.js"(exports$1) {
2406
+ Object.defineProperty(exports$1, "__esModule", {
2407
+ value: true
2408
+ });
2409
+ function _export(target, all) {
2410
+ for (var name in all) Object.defineProperty(target, name, {
2411
+ enumerable: true,
2412
+ get: all[name]
2413
+ });
2414
+ }
2415
+ _export(exports$1, {
2416
+ hasLocalMatch: function() {
2417
+ return hasLocalMatch;
2418
+ },
2419
+ matchLocalPattern: function() {
2420
+ return matchLocalPattern;
2421
+ }
2422
+ });
2423
+ var _picomatch = require_picomatch();
2424
+ function matchLocalPattern(pattern, url) {
2425
+ if (pattern.search !== void 0) {
2426
+ if (pattern.search !== url.search) {
2427
+ return false;
2428
+ }
2429
+ }
2430
+ var _pattern_pathname;
2431
+ if (!(0, _picomatch.makeRe)((_pattern_pathname = pattern.pathname) != null ? _pattern_pathname : "**", {
2432
+ dot: true
2433
+ }).test(url.pathname)) {
2434
+ return false;
2435
+ }
2436
+ return true;
2437
+ }
2438
+ function hasLocalMatch(localPatterns, urlPathAndQuery) {
2439
+ if (!localPatterns) {
2440
+ return true;
2441
+ }
2442
+ const url = new URL(urlPathAndQuery, "http://n");
2443
+ return localPatterns.some((p) => matchLocalPattern(p, url));
2444
+ }
2445
+ }
2446
+ });
2447
+
2448
+ // node_modules/next/dist/shared/lib/match-remote-pattern.js
2449
+ var require_match_remote_pattern = __commonJS({
2450
+ "node_modules/next/dist/shared/lib/match-remote-pattern.js"(exports$1) {
2451
+ Object.defineProperty(exports$1, "__esModule", {
2452
+ value: true
2453
+ });
2454
+ function _export(target, all) {
2455
+ for (var name in all) Object.defineProperty(target, name, {
2456
+ enumerable: true,
2457
+ get: all[name]
2458
+ });
2459
+ }
2460
+ _export(exports$1, {
2461
+ hasRemoteMatch: function() {
2462
+ return hasRemoteMatch;
2463
+ },
2464
+ matchRemotePattern: function() {
2465
+ return matchRemotePattern;
2466
+ }
2467
+ });
2468
+ var _picomatch = require_picomatch();
2469
+ function matchRemotePattern(pattern, url) {
2470
+ if (pattern.protocol !== void 0) {
2471
+ if (pattern.protocol.replace(/:$/, "") !== url.protocol.replace(/:$/, "")) {
2472
+ return false;
2473
+ }
2474
+ }
2475
+ if (pattern.port !== void 0) {
2476
+ if (pattern.port !== url.port) {
2477
+ return false;
2478
+ }
2479
+ }
2480
+ if (pattern.hostname === void 0) {
2481
+ throw Object.defineProperty(new Error("Pattern should define hostname but found\n" + JSON.stringify(pattern)), "__NEXT_ERROR_CODE", {
2482
+ value: "E410",
2483
+ enumerable: false,
2484
+ configurable: true
2485
+ });
2486
+ } else {
2487
+ if (!(0, _picomatch.makeRe)(pattern.hostname).test(url.hostname)) {
2488
+ return false;
2489
+ }
2490
+ }
2491
+ if (pattern.search !== void 0) {
2492
+ if (pattern.search !== url.search) {
2493
+ return false;
2494
+ }
2495
+ }
2496
+ var _pattern_pathname;
2497
+ if (!(0, _picomatch.makeRe)((_pattern_pathname = pattern.pathname) != null ? _pattern_pathname : "**", {
2498
+ dot: true
2499
+ }).test(url.pathname)) {
2500
+ return false;
2501
+ }
2502
+ return true;
2503
+ }
2504
+ function hasRemoteMatch(domains, remotePatterns, url) {
2505
+ return domains.some((domain) => url.hostname === domain) || remotePatterns.some((p) => matchRemotePattern(p, url));
2506
+ }
2507
+ }
2508
+ });
2509
+
2510
+ // node_modules/next/dist/shared/lib/image-loader.js
2511
+ var require_image_loader = __commonJS({
2512
+ "node_modules/next/dist/shared/lib/image-loader.js"(exports$1) {
2513
+ Object.defineProperty(exports$1, "__esModule", {
2514
+ value: true
2515
+ });
2516
+ Object.defineProperty(exports$1, "default", {
2517
+ enumerable: true,
2518
+ get: function() {
2519
+ return _default;
2520
+ }
2521
+ });
2522
+ var DEFAULT_Q = 75;
2523
+ function defaultLoader(param) {
2524
+ let { config, src, width, quality } = param;
2525
+ var _config_qualities;
2526
+ if (process.env.NODE_ENV !== "production") {
2527
+ const missingValues = [];
2528
+ if (!src) missingValues.push("src");
2529
+ if (!width) missingValues.push("width");
2530
+ if (missingValues.length > 0) {
2531
+ throw Object.defineProperty(new Error("Next Image Optimization requires " + missingValues.join(", ") + " to be provided. Make sure you pass them as props to the `next/image` component. Received: " + JSON.stringify({
2532
+ src,
2533
+ width,
2534
+ quality
2535
+ })), "__NEXT_ERROR_CODE", {
2536
+ value: "E188",
2537
+ enumerable: false,
2538
+ configurable: true
2539
+ });
2540
+ }
2541
+ if (src.startsWith("//")) {
2542
+ throw Object.defineProperty(new Error('Failed to parse src "' + src + '" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)'), "__NEXT_ERROR_CODE", {
2543
+ value: "E360",
2544
+ enumerable: false,
2545
+ configurable: true
2546
+ });
2547
+ }
2548
+ if (src.startsWith("/") && config.localPatterns) {
2549
+ if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
2550
+ process.env.NEXT_RUNTIME !== "edge") {
2551
+ const { hasLocalMatch } = require_match_local_pattern();
2552
+ if (!hasLocalMatch(config.localPatterns, src)) {
2553
+ throw Object.defineProperty(new Error("Invalid src prop (" + src + ") on `next/image` does not match `images.localPatterns` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns"), "__NEXT_ERROR_CODE", {
2554
+ value: "E426",
2555
+ enumerable: false,
2556
+ configurable: true
2557
+ });
2558
+ }
2559
+ }
2560
+ }
2561
+ if (!src.startsWith("/") && (config.domains || config.remotePatterns)) {
2562
+ let parsedSrc;
2563
+ try {
2564
+ parsedSrc = new URL(src);
2565
+ } catch (err) {
2566
+ console.error(err);
2567
+ throw Object.defineProperty(new Error('Failed to parse src "' + src + '" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)'), "__NEXT_ERROR_CODE", {
2568
+ value: "E63",
2569
+ enumerable: false,
2570
+ configurable: true
2571
+ });
2572
+ }
2573
+ if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
2574
+ process.env.NEXT_RUNTIME !== "edge") {
2575
+ const { hasRemoteMatch } = require_match_remote_pattern();
2576
+ if (!hasRemoteMatch(config.domains, config.remotePatterns, parsedSrc)) {
2577
+ throw Object.defineProperty(new Error("Invalid src prop (" + src + ') on `next/image`, hostname "' + parsedSrc.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host'), "__NEXT_ERROR_CODE", {
2578
+ value: "E231",
2579
+ enumerable: false,
2580
+ configurable: true
2581
+ });
2582
+ }
2583
+ }
2584
+ }
2585
+ if (quality && config.qualities && !config.qualities.includes(quality)) {
2586
+ throw Object.defineProperty(new Error("Invalid quality prop (" + quality + ") on `next/image` does not match `images.qualities` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-qualities"), "__NEXT_ERROR_CODE", {
2587
+ value: "E623",
2588
+ enumerable: false,
2589
+ configurable: true
2590
+ });
2591
+ }
2592
+ }
2593
+ const q = quality || ((_config_qualities = config.qualities) == null ? void 0 : _config_qualities.reduce((prev, cur) => Math.abs(cur - DEFAULT_Q) < Math.abs(prev - DEFAULT_Q) ? cur : prev)) || DEFAULT_Q;
2594
+ return config.path + "?url=" + encodeURIComponent(src) + "&w=" + width + "&q=" + q + (src.startsWith("/_next/static/media/") && process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
2595
+ }
2596
+ defaultLoader.__next_img_default = true;
2597
+ var _default = defaultLoader;
2598
+ }
2599
+ });
2600
+
2601
+ // node_modules/next/dist/client/use-merged-ref.js
2602
+ var require_use_merged_ref = __commonJS({
2603
+ "node_modules/next/dist/client/use-merged-ref.js"(exports$1, module) {
2604
+ Object.defineProperty(exports$1, "__esModule", {
2605
+ value: true
2606
+ });
2607
+ Object.defineProperty(exports$1, "useMergedRef", {
2608
+ enumerable: true,
2609
+ get: function() {
2610
+ return useMergedRef;
2611
+ }
2612
+ });
2613
+ var _react = __require("react");
2614
+ function useMergedRef(refA, refB) {
2615
+ const cleanupA = (0, _react.useRef)(null);
2616
+ const cleanupB = (0, _react.useRef)(null);
2617
+ return (0, _react.useCallback)((current) => {
2618
+ if (current === null) {
2619
+ const cleanupFnA = cleanupA.current;
2620
+ if (cleanupFnA) {
2621
+ cleanupA.current = null;
2622
+ cleanupFnA();
2623
+ }
2624
+ const cleanupFnB = cleanupB.current;
2625
+ if (cleanupFnB) {
2626
+ cleanupB.current = null;
2627
+ cleanupFnB();
2628
+ }
2629
+ } else {
2630
+ if (refA) {
2631
+ cleanupA.current = applyRef(refA, current);
2632
+ }
2633
+ if (refB) {
2634
+ cleanupB.current = applyRef(refB, current);
2635
+ }
2636
+ }
2637
+ }, [
2638
+ refA,
2639
+ refB
2640
+ ]);
2641
+ }
2642
+ function applyRef(refA, current) {
2643
+ if (typeof refA === "function") {
2644
+ const cleanup = refA(current);
2645
+ if (typeof cleanup === "function") {
2646
+ return cleanup;
2647
+ } else {
2648
+ return () => refA(null);
2649
+ }
2650
+ } else {
2651
+ refA.current = current;
2652
+ return () => {
2653
+ refA.current = null;
2654
+ };
2655
+ }
2656
+ }
2657
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
2658
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
2659
+ Object.assign(exports$1.default, exports$1);
2660
+ module.exports = exports$1.default;
2661
+ }
2662
+ }
2663
+ });
2664
+
2665
+ // node_modules/next/dist/client/image-component.js
2666
+ var require_image_component = __commonJS({
2667
+ "node_modules/next/dist/client/image-component.js"(exports$1, module) {
2668
+ "use client";
2669
+ Object.defineProperty(exports$1, "__esModule", {
2670
+ value: true
2671
+ });
2672
+ Object.defineProperty(exports$1, "Image", {
2673
+ enumerable: true,
2674
+ get: function() {
2675
+ return Image3;
2676
+ }
2677
+ });
2678
+ var _interop_require_default = require_interop_require_default();
2679
+ var _interop_require_wildcard = require_interop_require_wildcard();
2680
+ var _jsxruntime = __require("react/jsx-runtime");
2681
+ var _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
2682
+ var _reactdom = /* @__PURE__ */ _interop_require_default._(__require("react-dom"));
2683
+ var _head = /* @__PURE__ */ _interop_require_default._(require_head());
2684
+ var _getimgprops = require_get_img_props();
2685
+ var _imageconfig = require_image_config();
2686
+ var _imageconfigcontextsharedruntime = require_image_config_context_shared_runtime();
2687
+ var _warnonce = require_warn_once();
2688
+ var _routercontextsharedruntime = require_router_context_shared_runtime();
2689
+ var _imageloader = /* @__PURE__ */ _interop_require_default._(require_image_loader());
2690
+ var _usemergedref = require_use_merged_ref();
2691
+ var configEnv = process.env.__NEXT_IMAGE_OPTS;
2692
+ if (typeof window === "undefined") {
2693
+ globalThis.__NEXT_IMAGE_IMPORTED = true;
2694
+ }
2695
+ function handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput) {
2696
+ const src = img == null ? void 0 : img.src;
2697
+ if (!img || img["data-loaded-src"] === src) {
2698
+ return;
2699
+ }
2700
+ img["data-loaded-src"] = src;
2701
+ const p = "decode" in img ? img.decode() : Promise.resolve();
2702
+ p.catch(() => {
2703
+ }).then(() => {
2704
+ if (!img.parentElement || !img.isConnected) {
2705
+ return;
2706
+ }
2707
+ if (placeholder !== "empty") {
2708
+ setBlurComplete(true);
2709
+ }
2710
+ if (onLoadRef == null ? void 0 : onLoadRef.current) {
2711
+ const event = new Event("load");
2712
+ Object.defineProperty(event, "target", {
2713
+ writable: false,
2714
+ value: img
2715
+ });
2716
+ let prevented = false;
2717
+ let stopped = false;
2718
+ onLoadRef.current({
2719
+ ...event,
2720
+ nativeEvent: event,
2721
+ currentTarget: img,
2722
+ target: img,
2723
+ isDefaultPrevented: () => prevented,
2724
+ isPropagationStopped: () => stopped,
2725
+ persist: () => {
2726
+ },
2727
+ preventDefault: () => {
2728
+ prevented = true;
2729
+ event.preventDefault();
2730
+ },
2731
+ stopPropagation: () => {
2732
+ stopped = true;
2733
+ event.stopPropagation();
2734
+ }
2735
+ });
2736
+ }
2737
+ if (onLoadingCompleteRef == null ? void 0 : onLoadingCompleteRef.current) {
2738
+ onLoadingCompleteRef.current(img);
2739
+ }
2740
+ if (process.env.NODE_ENV !== "production") {
2741
+ const origSrc = new URL(src, "http://n").searchParams.get("url") || src;
2742
+ if (img.getAttribute("data-nimg") === "fill") {
2743
+ if (!unoptimized && (!sizesInput || sizesInput === "100vw")) {
2744
+ let widthViewportRatio = img.getBoundingClientRect().width / window.innerWidth;
2745
+ if (widthViewportRatio < 0.6) {
2746
+ if (sizesInput === "100vw") {
2747
+ (0, _warnonce.warnOnce)('Image with src "' + origSrc + '" 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');
2748
+ } else {
2749
+ (0, _warnonce.warnOnce)('Image with src "' + origSrc + '" 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');
2750
+ }
2751
+ }
2752
+ }
2753
+ if (img.parentElement) {
2754
+ const { position } = window.getComputedStyle(img.parentElement);
2755
+ const valid = [
2756
+ "absolute",
2757
+ "fixed",
2758
+ "relative"
2759
+ ];
2760
+ if (!valid.includes(position)) {
2761
+ (0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" and parent element with invalid "position". Provided "' + position + '" should be one of ' + valid.map(String).join(",") + ".");
2762
+ }
2763
+ }
2764
+ if (img.height === 0) {
2765
+ (0, _warnonce.warnOnce)('Image with src "' + origSrc + '" 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.');
2766
+ }
2767
+ }
2768
+ const heightModified = img.height.toString() !== img.getAttribute("height");
2769
+ const widthModified = img.width.toString() !== img.getAttribute("width");
2770
+ if (heightModified && !widthModified || !heightModified && widthModified) {
2771
+ (0, _warnonce.warnOnce)('Image with src "' + origSrc + `" 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.`);
2772
+ }
2773
+ }
2774
+ });
2775
+ }
2776
+ function getDynamicProps(fetchPriority) {
2777
+ if (Boolean(_react.use)) {
2778
+ return {
2779
+ fetchPriority
2780
+ };
2781
+ }
2782
+ return {
2783
+ fetchpriority: fetchPriority
2784
+ };
2785
+ }
2786
+ var ImageElement = /* @__PURE__ */ (0, _react.forwardRef)((param, forwardedRef) => {
2787
+ let { src, srcSet, sizes, height, width, decoding, className, style, fetchPriority, placeholder, loading, unoptimized, fill, onLoadRef, onLoadingCompleteRef, setBlurComplete, setShowAltText, sizesInput, onLoad, onError, ...rest } = param;
2788
+ const ownRef = (0, _react.useCallback)((img) => {
2789
+ if (!img) {
2790
+ return;
2791
+ }
2792
+ if (onError) {
2793
+ img.src = img.src;
2794
+ }
2795
+ if (process.env.NODE_ENV !== "production") {
2796
+ if (!src) {
2797
+ console.error('Image is missing required "src" property:', img);
2798
+ }
2799
+ if (img.getAttribute("alt") === null) {
2800
+ console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.');
2801
+ }
2802
+ }
2803
+ if (img.complete) {
2804
+ handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
2805
+ }
2806
+ }, [
2807
+ src,
2808
+ placeholder,
2809
+ onLoadRef,
2810
+ onLoadingCompleteRef,
2811
+ setBlurComplete,
2812
+ onError,
2813
+ unoptimized,
2814
+ sizesInput
2815
+ ]);
2816
+ const ref = (0, _usemergedref.useMergedRef)(forwardedRef, ownRef);
2817
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
2818
+ ...rest,
2819
+ ...getDynamicProps(fetchPriority),
2820
+ // It's intended to keep `loading` before `src` because React updates
2821
+ // props in order which causes Safari/Firefox to not lazy load properly.
2822
+ // See https://github.com/facebook/react/issues/25883
2823
+ loading,
2824
+ width,
2825
+ height,
2826
+ decoding,
2827
+ "data-nimg": fill ? "fill" : "1",
2828
+ className,
2829
+ style,
2830
+ // It's intended to keep `src` the last attribute because React updates
2831
+ // attributes in order. If we keep `src` the first one, Safari will
2832
+ // immediately start to fetch `src`, before `sizes` and `srcSet` are even
2833
+ // updated by React. That causes multiple unnecessary requests if `srcSet`
2834
+ // and `sizes` are defined.
2835
+ // This bug cannot be reproduced in Chrome or Firefox.
2836
+ sizes,
2837
+ srcSet,
2838
+ src,
2839
+ ref,
2840
+ onLoad: (event) => {
2841
+ const img = event.currentTarget;
2842
+ handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
2843
+ },
2844
+ onError: (event) => {
2845
+ setShowAltText(true);
2846
+ if (placeholder !== "empty") {
2847
+ setBlurComplete(true);
2848
+ }
2849
+ if (onError) {
2850
+ onError(event);
2851
+ }
2852
+ }
2853
+ });
2854
+ });
2855
+ function ImagePreload(param) {
2856
+ let { isAppRouter, imgAttributes } = param;
2857
+ const opts = {
2858
+ as: "image",
2859
+ imageSrcSet: imgAttributes.srcSet,
2860
+ imageSizes: imgAttributes.sizes,
2861
+ crossOrigin: imgAttributes.crossOrigin,
2862
+ referrerPolicy: imgAttributes.referrerPolicy,
2863
+ ...getDynamicProps(imgAttributes.fetchPriority)
2864
+ };
2865
+ if (isAppRouter && _reactdom.default.preload) {
2866
+ _reactdom.default.preload(imgAttributes.src, opts);
2867
+ return null;
2868
+ }
2869
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_head.default, {
2870
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("link", {
2871
+ rel: "preload",
2872
+ // Note how we omit the `href` attribute, as it would only be relevant
2873
+ // for browsers that do not support `imagesrcset`, and in those cases
2874
+ // it would cause the incorrect image to be preloaded.
2875
+ //
2876
+ // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
2877
+ href: imgAttributes.srcSet ? void 0 : imgAttributes.src,
2878
+ ...opts
2879
+ }, "__nimg-" + imgAttributes.src + imgAttributes.srcSet + imgAttributes.sizes)
2880
+ });
2881
+ }
2882
+ var Image3 = /* @__PURE__ */ (0, _react.forwardRef)((props, forwardedRef) => {
2883
+ const pagesRouter = (0, _react.useContext)(_routercontextsharedruntime.RouterContext);
2884
+ const isAppRouter = !pagesRouter;
2885
+ const configContext = (0, _react.useContext)(_imageconfigcontextsharedruntime.ImageConfigContext);
2886
+ const config = (0, _react.useMemo)(() => {
2887
+ var _c_qualities;
2888
+ const c = configEnv || configContext || _imageconfig.imageConfigDefault;
2889
+ const allSizes = [
2890
+ ...c.deviceSizes,
2891
+ ...c.imageSizes
2892
+ ].sort((a, b) => a - b);
2893
+ const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
2894
+ const qualities = (_c_qualities = c.qualities) == null ? void 0 : _c_qualities.sort((a, b) => a - b);
2895
+ return {
2896
+ ...c,
2897
+ allSizes,
2898
+ deviceSizes,
2899
+ qualities
2900
+ };
2901
+ }, [
2902
+ configContext
2903
+ ]);
2904
+ const { onLoad, onLoadingComplete } = props;
2905
+ const onLoadRef = (0, _react.useRef)(onLoad);
2906
+ (0, _react.useEffect)(() => {
2907
+ onLoadRef.current = onLoad;
2908
+ }, [
2909
+ onLoad
2910
+ ]);
2911
+ const onLoadingCompleteRef = (0, _react.useRef)(onLoadingComplete);
2912
+ (0, _react.useEffect)(() => {
2913
+ onLoadingCompleteRef.current = onLoadingComplete;
2914
+ }, [
2915
+ onLoadingComplete
2916
+ ]);
2917
+ const [blurComplete, setBlurComplete] = (0, _react.useState)(false);
2918
+ const [showAltText, setShowAltText] = (0, _react.useState)(false);
2919
+ const { props: imgAttributes, meta: imgMeta } = (0, _getimgprops.getImgProps)(props, {
2920
+ defaultLoader: _imageloader.default,
2921
+ imgConf: config,
2922
+ blurComplete,
2923
+ showAltText
2924
+ });
2925
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
2926
+ children: [
2927
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(ImageElement, {
2928
+ ...imgAttributes,
2929
+ unoptimized: imgMeta.unoptimized,
2930
+ placeholder: imgMeta.placeholder,
2931
+ fill: imgMeta.fill,
2932
+ onLoadRef,
2933
+ onLoadingCompleteRef,
2934
+ setBlurComplete,
2935
+ setShowAltText,
2936
+ sizesInput: props.sizes,
2937
+ ref: forwardedRef
2938
+ }),
2939
+ imgMeta.priority ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ImagePreload, {
2940
+ isAppRouter,
2941
+ imgAttributes
2942
+ }) : null
2943
+ ]
2944
+ });
2945
+ });
2946
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
2947
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
2948
+ Object.assign(exports$1.default, exports$1);
2949
+ module.exports = exports$1.default;
2950
+ }
2951
+ }
2952
+ });
2953
+
2954
+ // node_modules/next/dist/shared/lib/image-external.js
2955
+ var require_image_external = __commonJS({
2956
+ "node_modules/next/dist/shared/lib/image-external.js"(exports$1) {
2957
+ Object.defineProperty(exports$1, "__esModule", {
2958
+ value: true
2959
+ });
2960
+ function _export(target, all) {
2961
+ for (var name in all) Object.defineProperty(target, name, {
2962
+ enumerable: true,
2963
+ get: all[name]
2964
+ });
2965
+ }
2966
+ _export(exports$1, {
2967
+ default: function() {
2968
+ return _default;
2969
+ },
2970
+ getImageProps: function() {
2971
+ return getImageProps;
2972
+ }
2973
+ });
2974
+ var _interop_require_default = require_interop_require_default();
2975
+ var _getimgprops = require_get_img_props();
2976
+ var _imagecomponent = require_image_component();
2977
+ var _imageloader = /* @__PURE__ */ _interop_require_default._(require_image_loader());
2978
+ function getImageProps(imgProps) {
2979
+ const { props } = (0, _getimgprops.getImgProps)(imgProps, {
2980
+ defaultLoader: _imageloader.default,
2981
+ // This is replaced by webpack define plugin
2982
+ imgConf: process.env.__NEXT_IMAGE_OPTS
2983
+ });
2984
+ for (const [key, value] of Object.entries(props)) {
2985
+ if (value === void 0) {
2986
+ delete props[key];
2987
+ }
2988
+ }
2989
+ return {
2990
+ props
2991
+ };
2992
+ }
2993
+ var _default = _imagecomponent.Image;
2994
+ }
2995
+ });
2996
+
2997
+ // node_modules/next/image.js
2998
+ var require_image = __commonJS({
2999
+ "node_modules/next/image.js"(exports$1, module) {
3000
+ module.exports = require_image_external();
3001
+ }
3002
+ });
111
3003
  function useCopyToClipboard({
112
3004
  text,
113
3005
  copyMessage = "Copied to clipboard!"
@@ -4386,6 +7278,9 @@ function ImageLoading({
4386
7278
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: message })
4387
7279
  ] });
4388
7280
  }
7281
+
7282
+ // src/components/image-skeleton/image-skeleton.tsx
7283
+ var import_image = __toESM(require_image());
4389
7284
  function ImageSkeleton({
4390
7285
  className,
4391
7286
  skeletonClassName,
@@ -4417,7 +7312,7 @@ function ImageSkeleton({
4417
7312
  }
4418
7313
  ),
4419
7314
  /* @__PURE__ */ jsxRuntime.jsx(
4420
- Image2__default.default,
7315
+ import_image.default,
4421
7316
  {
4422
7317
  ...props,
4423
7318
  alt,