@pipi-kit/ui 1.0.1 → 1.0.3

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