@deframe-sdk/components 0.1.8 → 0.1.10

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.mjs CHANGED
@@ -3,18 +3,14 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import * as React6 from 'react';
4
4
  import React6__default, { useState, useEffect, useMemo } from 'react';
5
5
  import { motion, AnimatePresence } from 'framer-motion';
6
- import { MdClose, MdOutlineSearch, MdOutlineSearchOff, MdOutlineSwapHoriz, MdCheckCircleOutline, MdErrorOutline, MdWarningAmber, MdInfoOutline } from 'react-icons/md';
6
+ import { MdClose, MdOutlineSearch, MdOutlineSearchOff, MdOutlineSwapHoriz, MdHistory, MdCheckCircleOutline, MdErrorOutline, MdWarningAmber, MdInfoOutline } from 'react-icons/md';
7
7
  import { HiChevronUp, HiChevronDown, HiChevronLeft, HiXMark, HiArrowRight } from 'react-icons/hi2';
8
8
  import { IoAlertCircleOutline, IoTimeOutline, IoCheckmarkOutline } from 'react-icons/io5';
9
9
 
10
- var __create = Object.create;
11
10
  var __defProp = Object.defineProperty;
12
11
  var __defProps = Object.defineProperties;
13
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
14
12
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
15
- var __getOwnPropNames = Object.getOwnPropertyNames;
16
13
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
17
- var __getProtoOf = Object.getPrototypeOf;
18
14
  var __hasOwnProp = Object.prototype.hasOwnProperty;
19
15
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
20
16
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -30,12 +26,6 @@ var __spreadValues = (a, b) => {
30
26
  return a;
31
27
  };
32
28
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
33
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
34
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
35
- }) : x)(function(x) {
36
- if (typeof require !== "undefined") return require.apply(this, arguments);
37
- throw Error('Dynamic require of "' + x + '" is not supported');
38
- });
39
29
  var __objRest = (source, exclude) => {
40
30
  var target = {};
41
31
  for (var prop in source)
@@ -48,3914 +38,6 @@ var __objRest = (source, exclude) => {
48
38
  }
49
39
  return target;
50
40
  };
51
- var __commonJS = (cb, mod) => function __require2() {
52
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
53
- };
54
- var __copyProps = (to, from, except, desc) => {
55
- if (from && typeof from === "object" || typeof from === "function") {
56
- for (let key of __getOwnPropNames(from))
57
- if (!__hasOwnProp.call(to, key) && key !== except)
58
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
59
- }
60
- return to;
61
- };
62
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
63
- // If the importer is in node compatibility mode or this is not an ESM
64
- // file that has been converted to a CommonJS file using a Babel-
65
- // compatible transform (i.e. "__esModule" has not been set), then set
66
- // "default" to the CommonJS "module.exports" for node compatibility.
67
- !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
68
- mod
69
- ));
70
-
71
- // node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
72
- var require_interop_require_wildcard = __commonJS({
73
- "node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports$1) {
74
- function _getRequireWildcardCache(nodeInterop) {
75
- if (typeof WeakMap !== "function") return null;
76
- var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
77
- var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
78
- return (_getRequireWildcardCache = function(nodeInterop2) {
79
- return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
80
- })(nodeInterop);
81
- }
82
- function _interop_require_wildcard(obj, nodeInterop) {
83
- if (!nodeInterop && obj && obj.__esModule) return obj;
84
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
85
- var cache = _getRequireWildcardCache(nodeInterop);
86
- if (cache && cache.has(obj)) return cache.get(obj);
87
- var newObj = { __proto__: null };
88
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
89
- for (var key in obj) {
90
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
91
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
92
- if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
93
- else newObj[key] = obj[key];
94
- }
95
- }
96
- newObj.default = obj;
97
- if (cache) cache.set(obj, newObj);
98
- return newObj;
99
- }
100
- exports$1._ = _interop_require_wildcard;
101
- }
102
- });
103
-
104
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/querystring.js
105
- var require_querystring = __commonJS({
106
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/querystring.js"(exports$1) {
107
- Object.defineProperty(exports$1, "__esModule", {
108
- value: true
109
- });
110
- function _export(target, all) {
111
- for (var name in all) Object.defineProperty(target, name, {
112
- enumerable: true,
113
- get: all[name]
114
- });
115
- }
116
- _export(exports$1, {
117
- assign: function() {
118
- return assign;
119
- },
120
- searchParamsToUrlQuery: function() {
121
- return searchParamsToUrlQuery;
122
- },
123
- urlQueryToSearchParams: function() {
124
- return urlQueryToSearchParams;
125
- }
126
- });
127
- function searchParamsToUrlQuery(searchParams) {
128
- const query = {};
129
- for (const [key, value] of searchParams.entries()) {
130
- const existing = query[key];
131
- if (typeof existing === "undefined") {
132
- query[key] = value;
133
- } else if (Array.isArray(existing)) {
134
- existing.push(value);
135
- } else {
136
- query[key] = [
137
- existing,
138
- value
139
- ];
140
- }
141
- }
142
- return query;
143
- }
144
- function stringifyUrlQueryParam(param) {
145
- if (typeof param === "string") {
146
- return param;
147
- }
148
- if (typeof param === "number" && !isNaN(param) || typeof param === "boolean") {
149
- return String(param);
150
- } else {
151
- return "";
152
- }
153
- }
154
- function urlQueryToSearchParams(query) {
155
- const searchParams = new URLSearchParams();
156
- for (const [key, value] of Object.entries(query)) {
157
- if (Array.isArray(value)) {
158
- for (const item of value) {
159
- searchParams.append(key, stringifyUrlQueryParam(item));
160
- }
161
- } else {
162
- searchParams.set(key, stringifyUrlQueryParam(value));
163
- }
164
- }
165
- return searchParams;
166
- }
167
- function assign(target, ...searchParamsList) {
168
- for (const searchParams of searchParamsList) {
169
- for (const key of searchParams.keys()) {
170
- target.delete(key);
171
- }
172
- for (const [key, value] of searchParams.entries()) {
173
- target.append(key, value);
174
- }
175
- }
176
- return target;
177
- }
178
- }
179
- });
180
-
181
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/format-url.js
182
- var require_format_url = __commonJS({
183
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/format-url.js"(exports$1) {
184
- Object.defineProperty(exports$1, "__esModule", {
185
- value: true
186
- });
187
- function _export(target, all) {
188
- for (var name in all) Object.defineProperty(target, name, {
189
- enumerable: true,
190
- get: all[name]
191
- });
192
- }
193
- _export(exports$1, {
194
- formatUrl: function() {
195
- return formatUrl;
196
- },
197
- formatWithValidation: function() {
198
- return formatWithValidation;
199
- },
200
- urlObjectKeys: function() {
201
- return urlObjectKeys;
202
- }
203
- });
204
- var _interop_require_wildcard = require_interop_require_wildcard();
205
- var _querystring = /* @__PURE__ */ _interop_require_wildcard._(require_querystring());
206
- var slashedProtocols = /https?|ftp|gopher|file/;
207
- function formatUrl(urlObj) {
208
- let { auth, hostname } = urlObj;
209
- let protocol = urlObj.protocol || "";
210
- let pathname = urlObj.pathname || "";
211
- let hash = urlObj.hash || "";
212
- let query = urlObj.query || "";
213
- let host = false;
214
- auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "";
215
- if (urlObj.host) {
216
- host = auth + urlObj.host;
217
- } else if (hostname) {
218
- host = auth + (~hostname.indexOf(":") ? `[${hostname}]` : hostname);
219
- if (urlObj.port) {
220
- host += ":" + urlObj.port;
221
- }
222
- }
223
- if (query && typeof query === "object") {
224
- query = String(_querystring.urlQueryToSearchParams(query));
225
- }
226
- let search = urlObj.search || query && `?${query}` || "";
227
- if (protocol && !protocol.endsWith(":")) protocol += ":";
228
- if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
229
- host = "//" + (host || "");
230
- if (pathname && pathname[0] !== "/") pathname = "/" + pathname;
231
- } else if (!host) {
232
- host = "";
233
- }
234
- if (hash && hash[0] !== "#") hash = "#" + hash;
235
- if (search && search[0] !== "?") search = "?" + search;
236
- pathname = pathname.replace(/[?#]/g, encodeURIComponent);
237
- search = search.replace("#", "%23");
238
- return `${protocol}${host}${pathname}${search}${hash}`;
239
- }
240
- var urlObjectKeys = [
241
- "auth",
242
- "hash",
243
- "host",
244
- "hostname",
245
- "href",
246
- "path",
247
- "pathname",
248
- "port",
249
- "protocol",
250
- "query",
251
- "search",
252
- "slashes"
253
- ];
254
- function formatWithValidation(url) {
255
- if (process.env.NODE_ENV === "development") {
256
- if (url !== null && typeof url === "object") {
257
- Object.keys(url).forEach((key) => {
258
- if (!urlObjectKeys.includes(key)) {
259
- console.warn(`Unknown key passed via urlObject into url.format: ${key}`);
260
- }
261
- });
262
- }
263
- }
264
- return formatUrl(url);
265
- }
266
- }
267
- });
268
-
269
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/omit.js
270
- var require_omit = __commonJS({
271
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/omit.js"(exports$1) {
272
- Object.defineProperty(exports$1, "__esModule", {
273
- value: true
274
- });
275
- Object.defineProperty(exports$1, "omit", {
276
- enumerable: true,
277
- get: function() {
278
- return omit;
279
- }
280
- });
281
- function omit(object, keys) {
282
- const omitted = {};
283
- Object.keys(object).forEach((key) => {
284
- if (!keys.includes(key)) {
285
- omitted[key] = object[key];
286
- }
287
- });
288
- return omitted;
289
- }
290
- }
291
- });
292
-
293
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils.js
294
- var require_utils = __commonJS({
295
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils.js"(exports$1) {
296
- Object.defineProperty(exports$1, "__esModule", {
297
- value: true
298
- });
299
- function _export(target, all) {
300
- for (var name in all) Object.defineProperty(target, name, {
301
- enumerable: true,
302
- get: all[name]
303
- });
304
- }
305
- _export(exports$1, {
306
- DecodeError: function() {
307
- return DecodeError;
308
- },
309
- MiddlewareNotFoundError: function() {
310
- return MiddlewareNotFoundError;
311
- },
312
- MissingStaticPage: function() {
313
- return MissingStaticPage;
314
- },
315
- NormalizeError: function() {
316
- return NormalizeError;
317
- },
318
- PageNotFoundError: function() {
319
- return PageNotFoundError;
320
- },
321
- SP: function() {
322
- return SP;
323
- },
324
- ST: function() {
325
- return ST;
326
- },
327
- WEB_VITALS: function() {
328
- return WEB_VITALS;
329
- },
330
- execOnce: function() {
331
- return execOnce;
332
- },
333
- getDisplayName: function() {
334
- return getDisplayName;
335
- },
336
- getLocationOrigin: function() {
337
- return getLocationOrigin;
338
- },
339
- getURL: function() {
340
- return getURL;
341
- },
342
- isAbsoluteUrl: function() {
343
- return isAbsoluteUrl;
344
- },
345
- isResSent: function() {
346
- return isResSent;
347
- },
348
- loadGetInitialProps: function() {
349
- return loadGetInitialProps;
350
- },
351
- normalizeRepeatedSlashes: function() {
352
- return normalizeRepeatedSlashes;
353
- },
354
- stringifyError: function() {
355
- return stringifyError;
356
- }
357
- });
358
- var WEB_VITALS = [
359
- "CLS",
360
- "FCP",
361
- "FID",
362
- "INP",
363
- "LCP",
364
- "TTFB"
365
- ];
366
- function execOnce(fn) {
367
- let used = false;
368
- let result;
369
- return (...args) => {
370
- if (!used) {
371
- used = true;
372
- result = fn(...args);
373
- }
374
- return result;
375
- };
376
- }
377
- var ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
378
- var isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
379
- function getLocationOrigin() {
380
- const { protocol, hostname, port } = window.location;
381
- return `${protocol}//${hostname}${port ? ":" + port : ""}`;
382
- }
383
- function getURL() {
384
- const { href } = window.location;
385
- const origin = getLocationOrigin();
386
- return href.substring(origin.length);
387
- }
388
- function getDisplayName(Component) {
389
- return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
390
- }
391
- function isResSent(res) {
392
- return res.finished || res.headersSent;
393
- }
394
- function normalizeRepeatedSlashes(url) {
395
- const urlParts = url.split("?");
396
- const urlNoQuery = urlParts[0];
397
- return urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? `?${urlParts.slice(1).join("?")}` : "");
398
- }
399
- async function loadGetInitialProps(App, ctx) {
400
- var _a;
401
- if (process.env.NODE_ENV !== "production") {
402
- if ((_a = App.prototype) == null ? void 0 : _a.getInitialProps) {
403
- const message = `"${getDisplayName(App)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
404
- throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
405
- value: "E394",
406
- enumerable: false,
407
- configurable: true
408
- });
409
- }
410
- }
411
- const res = ctx.res || ctx.ctx && ctx.ctx.res;
412
- if (!App.getInitialProps) {
413
- if (ctx.ctx && ctx.Component) {
414
- return {
415
- pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
416
- };
417
- }
418
- return {};
419
- }
420
- const props = await App.getInitialProps(ctx);
421
- if (res && isResSent(res)) {
422
- return props;
423
- }
424
- if (!props) {
425
- const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
426
- throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
427
- value: "E394",
428
- enumerable: false,
429
- configurable: true
430
- });
431
- }
432
- if (process.env.NODE_ENV !== "production") {
433
- if (Object.keys(props).length === 0 && !ctx.ctx) {
434
- console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
435
- }
436
- }
437
- return props;
438
- }
439
- var SP = typeof performance !== "undefined";
440
- var ST = SP && [
441
- "mark",
442
- "measure",
443
- "getEntriesByName"
444
- ].every((method) => typeof performance[method] === "function");
445
- var DecodeError = class extends Error {
446
- };
447
- var NormalizeError = class extends Error {
448
- };
449
- var PageNotFoundError = class extends Error {
450
- constructor(page) {
451
- super();
452
- this.code = "ENOENT";
453
- this.name = "PageNotFoundError";
454
- this.message = `Cannot find module for page: ${page}`;
455
- }
456
- };
457
- var MissingStaticPage = class extends Error {
458
- constructor(page, message) {
459
- super();
460
- this.message = `Failed to load static file for page: ${page} ${message}`;
461
- }
462
- };
463
- var MiddlewareNotFoundError = class extends Error {
464
- constructor() {
465
- super();
466
- this.code = "ENOENT";
467
- this.message = `Cannot find the middleware module`;
468
- }
469
- };
470
- function stringifyError(error) {
471
- return JSON.stringify({
472
- message: error.message,
473
- stack: error.stack
474
- });
475
- }
476
- }
477
- });
478
-
479
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
480
- var require_remove_trailing_slash = __commonJS({
481
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports$1) {
482
- Object.defineProperty(exports$1, "__esModule", {
483
- value: true
484
- });
485
- Object.defineProperty(exports$1, "removeTrailingSlash", {
486
- enumerable: true,
487
- get: function() {
488
- return removeTrailingSlash;
489
- }
490
- });
491
- function removeTrailingSlash(route) {
492
- return route.replace(/\/$/, "") || "/";
493
- }
494
- }
495
- });
496
-
497
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/parse-path.js
498
- var require_parse_path = __commonJS({
499
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports$1) {
500
- Object.defineProperty(exports$1, "__esModule", {
501
- value: true
502
- });
503
- Object.defineProperty(exports$1, "parsePath", {
504
- enumerable: true,
505
- get: function() {
506
- return parsePath;
507
- }
508
- });
509
- function parsePath(path) {
510
- const hashIndex = path.indexOf("#");
511
- const queryIndex = path.indexOf("?");
512
- const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
513
- if (hasQuery || hashIndex > -1) {
514
- return {
515
- pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
516
- query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
517
- hash: hashIndex > -1 ? path.slice(hashIndex) : ""
518
- };
519
- }
520
- return {
521
- pathname: path,
522
- query: "",
523
- hash: ""
524
- };
525
- }
526
- }
527
- });
528
-
529
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/normalize-trailing-slash.js
530
- var require_normalize_trailing_slash = __commonJS({
531
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/normalize-trailing-slash.js"(exports$1, module) {
532
- Object.defineProperty(exports$1, "__esModule", {
533
- value: true
534
- });
535
- Object.defineProperty(exports$1, "normalizePathTrailingSlash", {
536
- enumerable: true,
537
- get: function() {
538
- return normalizePathTrailingSlash;
539
- }
540
- });
541
- var _removetrailingslash = require_remove_trailing_slash();
542
- var _parsepath = require_parse_path();
543
- var normalizePathTrailingSlash = (path) => {
544
- if (!path.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH) {
545
- return path;
546
- }
547
- const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
548
- if (process.env.__NEXT_TRAILING_SLASH) {
549
- if (/\.[^/]+\/?$/.test(pathname)) {
550
- return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
551
- } else if (pathname.endsWith("/")) {
552
- return `${pathname}${query}${hash}`;
553
- } else {
554
- return `${pathname}/${query}${hash}`;
555
- }
556
- }
557
- return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
558
- };
559
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
560
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
561
- Object.assign(exports$1.default, exports$1);
562
- module.exports = exports$1.default;
563
- }
564
- }
565
- });
566
-
567
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
568
- var require_path_has_prefix = __commonJS({
569
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports$1) {
570
- Object.defineProperty(exports$1, "__esModule", {
571
- value: true
572
- });
573
- Object.defineProperty(exports$1, "pathHasPrefix", {
574
- enumerable: true,
575
- get: function() {
576
- return pathHasPrefix;
577
- }
578
- });
579
- var _parsepath = require_parse_path();
580
- function pathHasPrefix(path, prefix) {
581
- if (typeof path !== "string") {
582
- return false;
583
- }
584
- const { pathname } = (0, _parsepath.parsePath)(path);
585
- return pathname === prefix || pathname.startsWith(prefix + "/");
586
- }
587
- }
588
- });
589
-
590
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/has-base-path.js
591
- var require_has_base_path = __commonJS({
592
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/has-base-path.js"(exports$1, module) {
593
- Object.defineProperty(exports$1, "__esModule", {
594
- value: true
595
- });
596
- Object.defineProperty(exports$1, "hasBasePath", {
597
- enumerable: true,
598
- get: function() {
599
- return hasBasePath;
600
- }
601
- });
602
- var _pathhasprefix = require_path_has_prefix();
603
- var basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
604
- function hasBasePath(path) {
605
- return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
606
- }
607
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
608
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
609
- Object.assign(exports$1.default, exports$1);
610
- module.exports = exports$1.default;
611
- }
612
- }
613
- });
614
-
615
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-local-url.js
616
- var require_is_local_url = __commonJS({
617
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-local-url.js"(exports$1) {
618
- Object.defineProperty(exports$1, "__esModule", {
619
- value: true
620
- });
621
- Object.defineProperty(exports$1, "isLocalURL", {
622
- enumerable: true,
623
- get: function() {
624
- return isLocalURL;
625
- }
626
- });
627
- var _utils = require_utils();
628
- var _hasbasepath = require_has_base_path();
629
- function isLocalURL(url) {
630
- if (!(0, _utils.isAbsoluteUrl)(url)) return true;
631
- try {
632
- const locationOrigin = (0, _utils.getLocationOrigin)();
633
- const resolved = new URL(url, locationOrigin);
634
- return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
635
- } catch (_) {
636
- return false;
637
- }
638
- }
639
- }
640
- });
641
-
642
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
643
- var require_sorted_routes = __commonJS({
644
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js"(exports$1) {
645
- Object.defineProperty(exports$1, "__esModule", {
646
- value: true
647
- });
648
- function _export(target, all) {
649
- for (var name in all) Object.defineProperty(target, name, {
650
- enumerable: true,
651
- get: all[name]
652
- });
653
- }
654
- _export(exports$1, {
655
- getSortedRouteObjects: function() {
656
- return getSortedRouteObjects;
657
- },
658
- getSortedRoutes: function() {
659
- return getSortedRoutes;
660
- }
661
- });
662
- var UrlNode = class _UrlNode {
663
- insert(urlPath) {
664
- this._insert(urlPath.split("/").filter(Boolean), [], false);
665
- }
666
- smoosh() {
667
- return this._smoosh();
668
- }
669
- _smoosh(prefix = "/") {
670
- const childrenPaths = [
671
- ...this.children.keys()
672
- ].sort();
673
- if (this.slugName !== null) {
674
- childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
675
- }
676
- if (this.restSlugName !== null) {
677
- childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
678
- }
679
- if (this.optionalRestSlugName !== null) {
680
- childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
681
- }
682
- const routes = childrenPaths.map((c) => this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr) => [
683
- ...prev,
684
- ...curr
685
- ], []);
686
- if (this.slugName !== null) {
687
- routes.push(...this.children.get("[]")._smoosh(`${prefix}[${this.slugName}]/`));
688
- }
689
- if (!this.placeholder) {
690
- const r = prefix === "/" ? "/" : prefix.slice(0, -1);
691
- if (this.optionalRestSlugName != null) {
692
- throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${r}" and "${r}[[...${this.optionalRestSlugName}]]").`), "__NEXT_ERROR_CODE", {
693
- value: "E458",
694
- enumerable: false,
695
- configurable: true
696
- });
697
- }
698
- routes.unshift(r);
699
- }
700
- if (this.restSlugName !== null) {
701
- routes.push(...this.children.get("[...]")._smoosh(`${prefix}[...${this.restSlugName}]/`));
702
- }
703
- if (this.optionalRestSlugName !== null) {
704
- routes.push(...this.children.get("[[...]]")._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
705
- }
706
- return routes;
707
- }
708
- _insert(urlPaths, slugNames, isCatchAll) {
709
- if (urlPaths.length === 0) {
710
- this.placeholder = false;
711
- return;
712
- }
713
- if (isCatchAll) {
714
- throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
715
- value: "E392",
716
- enumerable: false,
717
- configurable: true
718
- });
719
- }
720
- let nextSegment = urlPaths[0];
721
- if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
722
- let handleSlug = function(previousSlug, nextSlug) {
723
- if (previousSlug !== null) {
724
- if (previousSlug !== nextSlug) {
725
- throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
726
- value: "E337",
727
- enumerable: false,
728
- configurable: true
729
- });
730
- }
731
- }
732
- slugNames.forEach((slug) => {
733
- if (slug === nextSlug) {
734
- throw Object.defineProperty(new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
735
- value: "E247",
736
- enumerable: false,
737
- configurable: true
738
- });
739
- }
740
- if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) {
741
- throw Object.defineProperty(new Error(`You cannot have the slug names "${slug}" and "${nextSlug}" differ only by non-word symbols within a single dynamic path`), "__NEXT_ERROR_CODE", {
742
- value: "E499",
743
- enumerable: false,
744
- configurable: true
745
- });
746
- }
747
- });
748
- slugNames.push(nextSlug);
749
- };
750
- let segmentName = nextSegment.slice(1, -1);
751
- let isOptional = false;
752
- if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
753
- segmentName = segmentName.slice(1, -1);
754
- isOptional = true;
755
- }
756
- if (segmentName.startsWith("\u2026")) {
757
- throw Object.defineProperty(new Error(`Detected a three-dot character ('\u2026') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
758
- value: "E147",
759
- enumerable: false,
760
- configurable: true
761
- });
762
- }
763
- if (segmentName.startsWith("...")) {
764
- segmentName = segmentName.substring(3);
765
- isCatchAll = true;
766
- }
767
- if (segmentName.startsWith("[") || segmentName.endsWith("]")) {
768
- throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
769
- value: "E421",
770
- enumerable: false,
771
- configurable: true
772
- });
773
- }
774
- if (segmentName.startsWith(".")) {
775
- throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
776
- value: "E288",
777
- enumerable: false,
778
- configurable: true
779
- });
780
- }
781
- if (isCatchAll) {
782
- if (isOptional) {
783
- if (this.restSlugName != null) {
784
- throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${urlPaths[0]}" ).`), "__NEXT_ERROR_CODE", {
785
- value: "E299",
786
- enumerable: false,
787
- configurable: true
788
- });
789
- }
790
- handleSlug(this.optionalRestSlugName, segmentName);
791
- this.optionalRestSlugName = segmentName;
792
- nextSegment = "[[...]]";
793
- } else {
794
- if (this.optionalRestSlugName != null) {
795
- throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
796
- value: "E300",
797
- enumerable: false,
798
- configurable: true
799
- });
800
- }
801
- handleSlug(this.restSlugName, segmentName);
802
- this.restSlugName = segmentName;
803
- nextSegment = "[...]";
804
- }
805
- } else {
806
- if (isOptional) {
807
- throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
808
- value: "E435",
809
- enumerable: false,
810
- configurable: true
811
- });
812
- }
813
- handleSlug(this.slugName, segmentName);
814
- this.slugName = segmentName;
815
- nextSegment = "[]";
816
- }
817
- }
818
- if (!this.children.has(nextSegment)) {
819
- this.children.set(nextSegment, new _UrlNode());
820
- }
821
- this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
822
- }
823
- constructor() {
824
- this.placeholder = true;
825
- this.children = /* @__PURE__ */ new Map();
826
- this.slugName = null;
827
- this.restSlugName = null;
828
- this.optionalRestSlugName = null;
829
- }
830
- };
831
- function getSortedRoutes(normalizedPages) {
832
- const root = new UrlNode();
833
- normalizedPages.forEach((pagePath) => root.insert(pagePath));
834
- return root.smoosh();
835
- }
836
- function getSortedRouteObjects(objects, getter) {
837
- const indexes = {};
838
- const pathnames = [];
839
- for (let i = 0; i < objects.length; i++) {
840
- const pathname = getter(objects[i]);
841
- indexes[pathname] = i;
842
- pathnames[i] = pathname;
843
- }
844
- const sorted = getSortedRoutes(pathnames);
845
- return sorted.map((pathname) => objects[indexes[pathname]]);
846
- }
847
- }
848
- });
849
-
850
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
851
- var require_ensure_leading_slash = __commonJS({
852
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js"(exports$1) {
853
- Object.defineProperty(exports$1, "__esModule", {
854
- value: true
855
- });
856
- Object.defineProperty(exports$1, "ensureLeadingSlash", {
857
- enumerable: true,
858
- get: function() {
859
- return ensureLeadingSlash;
860
- }
861
- });
862
- function ensureLeadingSlash(path) {
863
- return path.startsWith("/") ? path : `/${path}`;
864
- }
865
- }
866
- });
867
-
868
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/segment.js
869
- var require_segment = __commonJS({
870
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/segment.js"(exports$1) {
871
- Object.defineProperty(exports$1, "__esModule", {
872
- value: true
873
- });
874
- function _export(target, all) {
875
- for (var name in all) Object.defineProperty(target, name, {
876
- enumerable: true,
877
- get: all[name]
878
- });
879
- }
880
- _export(exports$1, {
881
- DEFAULT_SEGMENT_KEY: function() {
882
- return DEFAULT_SEGMENT_KEY;
883
- },
884
- NOT_FOUND_SEGMENT_KEY: function() {
885
- return NOT_FOUND_SEGMENT_KEY;
886
- },
887
- PAGE_SEGMENT_KEY: function() {
888
- return PAGE_SEGMENT_KEY;
889
- },
890
- addSearchParamsIfPageSegment: function() {
891
- return addSearchParamsIfPageSegment;
892
- },
893
- computeSelectedLayoutSegment: function() {
894
- return computeSelectedLayoutSegment;
895
- },
896
- getSegmentValue: function() {
897
- return getSegmentValue;
898
- },
899
- getSelectedLayoutSegmentPath: function() {
900
- return getSelectedLayoutSegmentPath;
901
- },
902
- isGroupSegment: function() {
903
- return isGroupSegment;
904
- },
905
- isParallelRouteSegment: function() {
906
- return isParallelRouteSegment;
907
- }
908
- });
909
- function getSegmentValue(segment) {
910
- return Array.isArray(segment) ? segment[1] : segment;
911
- }
912
- function isGroupSegment(segment) {
913
- return segment[0] === "(" && segment.endsWith(")");
914
- }
915
- function isParallelRouteSegment(segment) {
916
- return segment.startsWith("@") && segment !== "@children";
917
- }
918
- function addSearchParamsIfPageSegment(segment, searchParams) {
919
- const isPageSegment = segment.includes(PAGE_SEGMENT_KEY);
920
- if (isPageSegment) {
921
- const stringifiedQuery = JSON.stringify(searchParams);
922
- return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
923
- }
924
- return segment;
925
- }
926
- function computeSelectedLayoutSegment(segments, parallelRouteKey) {
927
- if (!segments || segments.length === 0) {
928
- return null;
929
- }
930
- const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
931
- return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
932
- }
933
- function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
934
- var _a;
935
- let node;
936
- if (first) {
937
- node = tree[1][parallelRouteKey];
938
- } else {
939
- const parallelRoutes = tree[1];
940
- node = (_a = parallelRoutes.children) != null ? _a : Object.values(parallelRoutes)[0];
941
- }
942
- if (!node) return segmentPath;
943
- const segment = node[0];
944
- let segmentValue = getSegmentValue(segment);
945
- if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
946
- return segmentPath;
947
- }
948
- segmentPath.push(segmentValue);
949
- return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
950
- }
951
- var PAGE_SEGMENT_KEY = "__PAGE__";
952
- var DEFAULT_SEGMENT_KEY = "__DEFAULT__";
953
- var NOT_FOUND_SEGMENT_KEY = "/_not-found";
954
- }
955
- });
956
-
957
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/app-paths.js
958
- var require_app_paths = __commonJS({
959
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/app-paths.js"(exports$1) {
960
- Object.defineProperty(exports$1, "__esModule", {
961
- value: true
962
- });
963
- function _export(target, all) {
964
- for (var name in all) Object.defineProperty(target, name, {
965
- enumerable: true,
966
- get: all[name]
967
- });
968
- }
969
- _export(exports$1, {
970
- normalizeAppPath: function() {
971
- return normalizeAppPath;
972
- },
973
- normalizeRscURL: function() {
974
- return normalizeRscURL;
975
- }
976
- });
977
- var _ensureleadingslash = require_ensure_leading_slash();
978
- var _segment = require_segment();
979
- function normalizeAppPath(route) {
980
- return (0, _ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname, segment, index, segments) => {
981
- if (!segment) {
982
- return pathname;
983
- }
984
- if ((0, _segment.isGroupSegment)(segment)) {
985
- return pathname;
986
- }
987
- if (segment[0] === "@") {
988
- return pathname;
989
- }
990
- if ((segment === "page" || segment === "route") && index === segments.length - 1) {
991
- return pathname;
992
- }
993
- return `${pathname}/${segment}`;
994
- }, ""));
995
- }
996
- function normalizeRscURL(url) {
997
- return url.replace(
998
- /\.rsc($|\?)/,
999
- // $1 ensures `?` is preserved
1000
- "$1"
1001
- );
1002
- }
1003
- }
1004
- });
1005
-
1006
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interception-routes.js
1007
- var require_interception_routes = __commonJS({
1008
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interception-routes.js"(exports$1) {
1009
- Object.defineProperty(exports$1, "__esModule", {
1010
- value: true
1011
- });
1012
- function _export(target, all) {
1013
- for (var name in all) Object.defineProperty(target, name, {
1014
- enumerable: true,
1015
- get: all[name]
1016
- });
1017
- }
1018
- _export(exports$1, {
1019
- INTERCEPTION_ROUTE_MARKERS: function() {
1020
- return INTERCEPTION_ROUTE_MARKERS;
1021
- },
1022
- extractInterceptionRouteInformation: function() {
1023
- return extractInterceptionRouteInformation;
1024
- },
1025
- isInterceptionRouteAppPath: function() {
1026
- return isInterceptionRouteAppPath;
1027
- }
1028
- });
1029
- var _apppaths = require_app_paths();
1030
- var INTERCEPTION_ROUTE_MARKERS = [
1031
- "(..)(..)",
1032
- "(.)",
1033
- "(..)",
1034
- "(...)"
1035
- ];
1036
- function isInterceptionRouteAppPath(path) {
1037
- return path.split("/").find((segment) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m))) !== void 0;
1038
- }
1039
- function extractInterceptionRouteInformation(path) {
1040
- let interceptingRoute;
1041
- let marker;
1042
- let interceptedRoute;
1043
- for (const segment of path.split("/")) {
1044
- marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
1045
- if (marker) {
1046
- [interceptingRoute, interceptedRoute] = path.split(marker, 2);
1047
- break;
1048
- }
1049
- }
1050
- if (!interceptingRoute || !marker || !interceptedRoute) {
1051
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
1052
- value: "E269",
1053
- enumerable: false,
1054
- configurable: true
1055
- });
1056
- }
1057
- interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute);
1058
- switch (marker) {
1059
- case "(.)":
1060
- if (interceptingRoute === "/") {
1061
- interceptedRoute = `/${interceptedRoute}`;
1062
- } else {
1063
- interceptedRoute = interceptingRoute + "/" + interceptedRoute;
1064
- }
1065
- break;
1066
- case "(..)":
1067
- if (interceptingRoute === "/") {
1068
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
1069
- value: "E207",
1070
- enumerable: false,
1071
- configurable: true
1072
- });
1073
- }
1074
- interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
1075
- break;
1076
- case "(...)":
1077
- interceptedRoute = "/" + interceptedRoute;
1078
- break;
1079
- case "(..)(..)":
1080
- const splitInterceptingRoute = interceptingRoute.split("/");
1081
- if (splitInterceptingRoute.length <= 2) {
1082
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
1083
- value: "E486",
1084
- enumerable: false,
1085
- configurable: true
1086
- });
1087
- }
1088
- interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
1089
- break;
1090
- default:
1091
- throw Object.defineProperty(new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
1092
- value: "E112",
1093
- enumerable: false,
1094
- configurable: true
1095
- });
1096
- }
1097
- return {
1098
- interceptingRoute,
1099
- interceptedRoute
1100
- };
1101
- }
1102
- }
1103
- });
1104
-
1105
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js
1106
- var require_is_dynamic = __commonJS({
1107
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js"(exports$1) {
1108
- Object.defineProperty(exports$1, "__esModule", {
1109
- value: true
1110
- });
1111
- Object.defineProperty(exports$1, "isDynamicRoute", {
1112
- enumerable: true,
1113
- get: function() {
1114
- return isDynamicRoute;
1115
- }
1116
- });
1117
- var _interceptionroutes = require_interception_routes();
1118
- var TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
1119
- var TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
1120
- function isDynamicRoute(route, strict = true) {
1121
- if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
1122
- route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
1123
- }
1124
- if (strict) {
1125
- return TEST_STRICT_ROUTE.test(route);
1126
- }
1127
- return TEST_ROUTE.test(route);
1128
- }
1129
- }
1130
- });
1131
-
1132
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/index.js
1133
- var require_utils2 = __commonJS({
1134
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/index.js"(exports$1) {
1135
- Object.defineProperty(exports$1, "__esModule", {
1136
- value: true
1137
- });
1138
- function _export(target, all) {
1139
- for (var name in all) Object.defineProperty(target, name, {
1140
- enumerable: true,
1141
- get: all[name]
1142
- });
1143
- }
1144
- _export(exports$1, {
1145
- getSortedRouteObjects: function() {
1146
- return _sortedroutes.getSortedRouteObjects;
1147
- },
1148
- getSortedRoutes: function() {
1149
- return _sortedroutes.getSortedRoutes;
1150
- },
1151
- isDynamicRoute: function() {
1152
- return _isdynamic.isDynamicRoute;
1153
- }
1154
- });
1155
- var _sortedroutes = require_sorted_routes();
1156
- var _isdynamic = require_is_dynamic();
1157
- }
1158
- });
1159
-
1160
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/path-to-regexp/index.js
1161
- var require_path_to_regexp = __commonJS({
1162
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/path-to-regexp/index.js"(exports$1, module) {
1163
- (() => {
1164
- if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
1165
- var e = {};
1166
- (() => {
1167
- var n = e;
1168
- Object.defineProperty(n, "__esModule", { value: true });
1169
- n.pathToRegexp = n.tokensToRegexp = n.regexpToFunction = n.match = n.tokensToFunction = n.compile = n.parse = void 0;
1170
- function lexer(e2) {
1171
- var n2 = [];
1172
- var r = 0;
1173
- while (r < e2.length) {
1174
- var t = e2[r];
1175
- if (t === "*" || t === "+" || t === "?") {
1176
- n2.push({ type: "MODIFIER", index: r, value: e2[r++] });
1177
- continue;
1178
- }
1179
- if (t === "\\") {
1180
- n2.push({ type: "ESCAPED_CHAR", index: r++, value: e2[r++] });
1181
- continue;
1182
- }
1183
- if (t === "{") {
1184
- n2.push({ type: "OPEN", index: r, value: e2[r++] });
1185
- continue;
1186
- }
1187
- if (t === "}") {
1188
- n2.push({ type: "CLOSE", index: r, value: e2[r++] });
1189
- continue;
1190
- }
1191
- if (t === ":") {
1192
- var a = "";
1193
- var i = r + 1;
1194
- while (i < e2.length) {
1195
- var o = e2.charCodeAt(i);
1196
- if (o >= 48 && o <= 57 || o >= 65 && o <= 90 || o >= 97 && o <= 122 || o === 95) {
1197
- a += e2[i++];
1198
- continue;
1199
- }
1200
- break;
1201
- }
1202
- if (!a) throw new TypeError("Missing parameter name at ".concat(r));
1203
- n2.push({ type: "NAME", index: r, value: a });
1204
- r = i;
1205
- continue;
1206
- }
1207
- if (t === "(") {
1208
- var c = 1;
1209
- var f = "";
1210
- var i = r + 1;
1211
- if (e2[i] === "?") {
1212
- throw new TypeError('Pattern cannot start with "?" at '.concat(i));
1213
- }
1214
- while (i < e2.length) {
1215
- if (e2[i] === "\\") {
1216
- f += e2[i++] + e2[i++];
1217
- continue;
1218
- }
1219
- if (e2[i] === ")") {
1220
- c--;
1221
- if (c === 0) {
1222
- i++;
1223
- break;
1224
- }
1225
- } else if (e2[i] === "(") {
1226
- c++;
1227
- if (e2[i + 1] !== "?") {
1228
- throw new TypeError("Capturing groups are not allowed at ".concat(i));
1229
- }
1230
- }
1231
- f += e2[i++];
1232
- }
1233
- if (c) throw new TypeError("Unbalanced pattern at ".concat(r));
1234
- if (!f) throw new TypeError("Missing pattern at ".concat(r));
1235
- n2.push({ type: "PATTERN", index: r, value: f });
1236
- r = i;
1237
- continue;
1238
- }
1239
- n2.push({ type: "CHAR", index: r, value: e2[r++] });
1240
- }
1241
- n2.push({ type: "END", index: r, value: "" });
1242
- return n2;
1243
- }
1244
- function parse(e2, n2) {
1245
- if (n2 === void 0) {
1246
- n2 = {};
1247
- }
1248
- var r = lexer(e2);
1249
- var t = n2.prefixes, a = t === void 0 ? "./" : t, i = n2.delimiter, o = i === void 0 ? "/#?" : i;
1250
- var c = [];
1251
- var f = 0;
1252
- var u = 0;
1253
- var p = "";
1254
- var tryConsume = function(e3) {
1255
- if (u < r.length && r[u].type === e3) return r[u++].value;
1256
- };
1257
- var mustConsume = function(e3) {
1258
- var n3 = tryConsume(e3);
1259
- if (n3 !== void 0) return n3;
1260
- var t2 = r[u], a2 = t2.type, i2 = t2.index;
1261
- throw new TypeError("Unexpected ".concat(a2, " at ").concat(i2, ", expected ").concat(e3));
1262
- };
1263
- var consumeText = function() {
1264
- var e3 = "";
1265
- var n3;
1266
- while (n3 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) {
1267
- e3 += n3;
1268
- }
1269
- return e3;
1270
- };
1271
- var isSafe = function(e3) {
1272
- for (var n3 = 0, r2 = o; n3 < r2.length; n3++) {
1273
- var t2 = r2[n3];
1274
- if (e3.indexOf(t2) > -1) return true;
1275
- }
1276
- return false;
1277
- };
1278
- var safePattern = function(e3) {
1279
- var n3 = c[c.length - 1];
1280
- var r2 = e3 || (n3 && typeof n3 === "string" ? n3 : "");
1281
- if (n3 && !r2) {
1282
- throw new TypeError('Must have text between two parameters, missing text after "'.concat(n3.name, '"'));
1283
- }
1284
- if (!r2 || isSafe(r2)) return "[^".concat(escapeString(o), "]+?");
1285
- return "(?:(?!".concat(escapeString(r2), ")[^").concat(escapeString(o), "])+?");
1286
- };
1287
- while (u < r.length) {
1288
- var v = tryConsume("CHAR");
1289
- var s = tryConsume("NAME");
1290
- var d = tryConsume("PATTERN");
1291
- if (s || d) {
1292
- var g = v || "";
1293
- if (a.indexOf(g) === -1) {
1294
- p += g;
1295
- g = "";
1296
- }
1297
- if (p) {
1298
- c.push(p);
1299
- p = "";
1300
- }
1301
- c.push({ name: s || f++, prefix: g, suffix: "", pattern: d || safePattern(g), modifier: tryConsume("MODIFIER") || "" });
1302
- continue;
1303
- }
1304
- var x = v || tryConsume("ESCAPED_CHAR");
1305
- if (x) {
1306
- p += x;
1307
- continue;
1308
- }
1309
- if (p) {
1310
- c.push(p);
1311
- p = "";
1312
- }
1313
- var h = tryConsume("OPEN");
1314
- if (h) {
1315
- var g = consumeText();
1316
- var l = tryConsume("NAME") || "";
1317
- var m = tryConsume("PATTERN") || "";
1318
- var T = consumeText();
1319
- mustConsume("CLOSE");
1320
- c.push({ name: l || (m ? f++ : ""), pattern: l && !m ? safePattern(g) : m, prefix: g, suffix: T, modifier: tryConsume("MODIFIER") || "" });
1321
- continue;
1322
- }
1323
- mustConsume("END");
1324
- }
1325
- return c;
1326
- }
1327
- n.parse = parse;
1328
- function compile(e2, n2) {
1329
- return tokensToFunction(parse(e2, n2), n2);
1330
- }
1331
- n.compile = compile;
1332
- function tokensToFunction(e2, n2) {
1333
- if (n2 === void 0) {
1334
- n2 = {};
1335
- }
1336
- var r = flags(n2);
1337
- var t = n2.encode, a = t === void 0 ? function(e3) {
1338
- return e3;
1339
- } : t, i = n2.validate, o = i === void 0 ? true : i;
1340
- var c = e2.map((function(e3) {
1341
- if (typeof e3 === "object") {
1342
- return new RegExp("^(?:".concat(e3.pattern, ")$"), r);
1343
- }
1344
- }));
1345
- return function(n3) {
1346
- var r2 = "";
1347
- for (var t2 = 0; t2 < e2.length; t2++) {
1348
- var i2 = e2[t2];
1349
- if (typeof i2 === "string") {
1350
- r2 += i2;
1351
- continue;
1352
- }
1353
- var f = n3 ? n3[i2.name] : void 0;
1354
- var u = i2.modifier === "?" || i2.modifier === "*";
1355
- var p = i2.modifier === "*" || i2.modifier === "+";
1356
- if (Array.isArray(f)) {
1357
- if (!p) {
1358
- throw new TypeError('Expected "'.concat(i2.name, '" to not repeat, but got an array'));
1359
- }
1360
- if (f.length === 0) {
1361
- if (u) continue;
1362
- throw new TypeError('Expected "'.concat(i2.name, '" to not be empty'));
1363
- }
1364
- for (var v = 0; v < f.length; v++) {
1365
- var s = a(f[v], i2);
1366
- if (o && !c[t2].test(s)) {
1367
- throw new TypeError('Expected all "'.concat(i2.name, '" to match "').concat(i2.pattern, '", but got "').concat(s, '"'));
1368
- }
1369
- r2 += i2.prefix + s + i2.suffix;
1370
- }
1371
- continue;
1372
- }
1373
- if (typeof f === "string" || typeof f === "number") {
1374
- var s = a(String(f), i2);
1375
- if (o && !c[t2].test(s)) {
1376
- throw new TypeError('Expected "'.concat(i2.name, '" to match "').concat(i2.pattern, '", but got "').concat(s, '"'));
1377
- }
1378
- r2 += i2.prefix + s + i2.suffix;
1379
- continue;
1380
- }
1381
- if (u) continue;
1382
- var d = p ? "an array" : "a string";
1383
- throw new TypeError('Expected "'.concat(i2.name, '" to be ').concat(d));
1384
- }
1385
- return r2;
1386
- };
1387
- }
1388
- n.tokensToFunction = tokensToFunction;
1389
- function match(e2, n2) {
1390
- var r = [];
1391
- var t = pathToRegexp(e2, r, n2);
1392
- return regexpToFunction(t, r, n2);
1393
- }
1394
- n.match = match;
1395
- function regexpToFunction(e2, n2, r) {
1396
- if (r === void 0) {
1397
- r = {};
1398
- }
1399
- var t = r.decode, a = t === void 0 ? function(e3) {
1400
- return e3;
1401
- } : t;
1402
- return function(r2) {
1403
- var t2 = e2.exec(r2);
1404
- if (!t2) return false;
1405
- var i = t2[0], o = t2.index;
1406
- var c = /* @__PURE__ */ Object.create(null);
1407
- var _loop_1 = function(e3) {
1408
- if (t2[e3] === void 0) return "continue";
1409
- var r3 = n2[e3 - 1];
1410
- if (r3.modifier === "*" || r3.modifier === "+") {
1411
- c[r3.name] = t2[e3].split(r3.prefix + r3.suffix).map((function(e4) {
1412
- return a(e4, r3);
1413
- }));
1414
- } else {
1415
- c[r3.name] = a(t2[e3], r3);
1416
- }
1417
- };
1418
- for (var f = 1; f < t2.length; f++) {
1419
- _loop_1(f);
1420
- }
1421
- return { path: i, index: o, params: c };
1422
- };
1423
- }
1424
- n.regexpToFunction = regexpToFunction;
1425
- function escapeString(e2) {
1426
- return e2.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
1427
- }
1428
- function flags(e2) {
1429
- return e2 && e2.sensitive ? "" : "i";
1430
- }
1431
- function regexpToRegexp(e2, n2) {
1432
- if (!n2) return e2;
1433
- var r = /\((?:\?<(.*?)>)?(?!\?)/g;
1434
- var t = 0;
1435
- var a = r.exec(e2.source);
1436
- while (a) {
1437
- n2.push({ name: a[1] || t++, prefix: "", suffix: "", modifier: "", pattern: "" });
1438
- a = r.exec(e2.source);
1439
- }
1440
- return e2;
1441
- }
1442
- function arrayToRegexp(e2, n2, r) {
1443
- var t = e2.map((function(e3) {
1444
- return pathToRegexp(e3, n2, r).source;
1445
- }));
1446
- return new RegExp("(?:".concat(t.join("|"), ")"), flags(r));
1447
- }
1448
- function stringToRegexp(e2, n2, r) {
1449
- return tokensToRegexp(parse(e2, r), n2, r);
1450
- }
1451
- function tokensToRegexp(e2, n2, r) {
1452
- if (r === void 0) {
1453
- r = {};
1454
- }
1455
- var t = r.strict, a = t === void 0 ? false : t, i = r.start, o = i === void 0 ? true : i, c = r.end, f = c === void 0 ? true : c, u = r.encode, p = u === void 0 ? function(e3) {
1456
- return e3;
1457
- } : u, v = r.delimiter, s = v === void 0 ? "/#?" : v, d = r.endsWith, g = d === void 0 ? "" : d;
1458
- var x = "[".concat(escapeString(g), "]|$");
1459
- var h = "[".concat(escapeString(s), "]");
1460
- var l = o ? "^" : "";
1461
- for (var m = 0, T = e2; m < T.length; m++) {
1462
- var E = T[m];
1463
- if (typeof E === "string") {
1464
- l += escapeString(p(E));
1465
- } else {
1466
- var w = escapeString(p(E.prefix));
1467
- var y = escapeString(p(E.suffix));
1468
- if (E.pattern) {
1469
- if (n2) n2.push(E);
1470
- if (w || y) {
1471
- if (E.modifier === "+" || E.modifier === "*") {
1472
- var R = E.modifier === "*" ? "?" : "";
1473
- l += "(?:".concat(w, "((?:").concat(E.pattern, ")(?:").concat(y).concat(w, "(?:").concat(E.pattern, "))*)").concat(y, ")").concat(R);
1474
- } else {
1475
- l += "(?:".concat(w, "(").concat(E.pattern, ")").concat(y, ")").concat(E.modifier);
1476
- }
1477
- } else {
1478
- if (E.modifier === "+" || E.modifier === "*") {
1479
- throw new TypeError('Can not repeat "'.concat(E.name, '" without a prefix and suffix'));
1480
- }
1481
- l += "(".concat(E.pattern, ")").concat(E.modifier);
1482
- }
1483
- } else {
1484
- l += "(?:".concat(w).concat(y, ")").concat(E.modifier);
1485
- }
1486
- }
1487
- }
1488
- if (f) {
1489
- if (!a) l += "".concat(h, "?");
1490
- l += !r.endsWith ? "$" : "(?=".concat(x, ")");
1491
- } else {
1492
- var A = e2[e2.length - 1];
1493
- var _ = typeof A === "string" ? h.indexOf(A[A.length - 1]) > -1 : A === void 0;
1494
- if (!a) {
1495
- l += "(?:".concat(h, "(?=").concat(x, "))?");
1496
- }
1497
- if (!_) {
1498
- l += "(?=".concat(h, "|").concat(x, ")");
1499
- }
1500
- }
1501
- return new RegExp(l, flags(r));
1502
- }
1503
- n.tokensToRegexp = tokensToRegexp;
1504
- function pathToRegexp(e2, n2, r) {
1505
- if (e2 instanceof RegExp) return regexpToRegexp(e2, n2);
1506
- if (Array.isArray(e2)) return arrayToRegexp(e2, n2, r);
1507
- return stringToRegexp(e2, n2, r);
1508
- }
1509
- n.pathToRegexp = pathToRegexp;
1510
- })();
1511
- module.exports = e;
1512
- })();
1513
- }
1514
- });
1515
-
1516
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/route-pattern-normalizer.js
1517
- var require_route_pattern_normalizer = __commonJS({
1518
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/route-pattern-normalizer.js"(exports$1) {
1519
- Object.defineProperty(exports$1, "__esModule", {
1520
- value: true
1521
- });
1522
- function _export(target, all) {
1523
- for (var name in all) Object.defineProperty(target, name, {
1524
- enumerable: true,
1525
- get: all[name]
1526
- });
1527
- }
1528
- _export(exports$1, {
1529
- PARAM_SEPARATOR: function() {
1530
- return PARAM_SEPARATOR;
1531
- },
1532
- hasAdjacentParameterIssues: function() {
1533
- return hasAdjacentParameterIssues;
1534
- },
1535
- normalizeAdjacentParameters: function() {
1536
- return normalizeAdjacentParameters;
1537
- },
1538
- normalizeTokensForRegexp: function() {
1539
- return normalizeTokensForRegexp;
1540
- },
1541
- stripNormalizedSeparators: function() {
1542
- return stripNormalizedSeparators;
1543
- },
1544
- stripParameterSeparators: function() {
1545
- return stripParameterSeparators;
1546
- }
1547
- });
1548
- var PARAM_SEPARATOR = "_NEXTSEP_";
1549
- function hasAdjacentParameterIssues(route) {
1550
- if (typeof route !== "string") return false;
1551
- if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) {
1552
- return true;
1553
- }
1554
- if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) {
1555
- return true;
1556
- }
1557
- return false;
1558
- }
1559
- function normalizeAdjacentParameters(route) {
1560
- let normalized = route;
1561
- normalized = normalized.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${PARAM_SEPARATOR}:$2`);
1562
- normalized = normalized.replace(/:([^:/\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`);
1563
- return normalized;
1564
- }
1565
- function normalizeTokensForRegexp(tokens) {
1566
- return tokens.map((token) => {
1567
- if (typeof token === "object" && token !== null && // Not all token objects have 'modifier' property (e.g., simple text tokens)
1568
- "modifier" in token && // Only repeating modifiers (* or +) cause the validation error
1569
- // Other modifiers like '?' (optional) are fine
1570
- (token.modifier === "*" || token.modifier === "+") && // Token objects can have different shapes depending on route pattern
1571
- "prefix" in token && "suffix" in token && // Both prefix and suffix must be empty strings
1572
- // This is what causes the validation error in path-to-regexp
1573
- token.prefix === "" && token.suffix === "") {
1574
- return __spreadProps(__spreadValues({}, token), {
1575
- prefix: "/"
1576
- });
1577
- }
1578
- return token;
1579
- });
1580
- }
1581
- function stripNormalizedSeparators(pathname) {
1582
- return pathname.replace(new RegExp(`\\)${PARAM_SEPARATOR}`, "g"), ")");
1583
- }
1584
- function stripParameterSeparators(params) {
1585
- const cleaned = {};
1586
- for (const [key, value] of Object.entries(params)) {
1587
- if (typeof value === "string") {
1588
- cleaned[key] = value.replace(new RegExp(`^${PARAM_SEPARATOR}`), "");
1589
- } else if (Array.isArray(value)) {
1590
- cleaned[key] = value.map((item) => typeof item === "string" ? item.replace(new RegExp(`^${PARAM_SEPARATOR}`), "") : item);
1591
- } else {
1592
- cleaned[key] = value;
1593
- }
1594
- }
1595
- return cleaned;
1596
- }
1597
- }
1598
- });
1599
-
1600
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js
1601
- var require_route_match_utils = __commonJS({
1602
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js"(exports$1) {
1603
- Object.defineProperty(exports$1, "__esModule", {
1604
- value: true
1605
- });
1606
- function _export(target, all) {
1607
- for (var name in all) Object.defineProperty(target, name, {
1608
- enumerable: true,
1609
- get: all[name]
1610
- });
1611
- }
1612
- _export(exports$1, {
1613
- safeCompile: function() {
1614
- return safeCompile;
1615
- },
1616
- safePathToRegexp: function() {
1617
- return safePathToRegexp;
1618
- },
1619
- safeRegexpToFunction: function() {
1620
- return safeRegexpToFunction;
1621
- },
1622
- safeRouteMatcher: function() {
1623
- return safeRouteMatcher;
1624
- }
1625
- });
1626
- var _pathtoregexp = require_path_to_regexp();
1627
- var _routepatternnormalizer = require_route_pattern_normalizer();
1628
- function safePathToRegexp(route, keys, options) {
1629
- if (typeof route !== "string") {
1630
- return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
1631
- }
1632
- const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
1633
- const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
1634
- try {
1635
- return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
1636
- } catch (error) {
1637
- if (!needsNormalization) {
1638
- try {
1639
- const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
1640
- return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
1641
- } catch (retryError) {
1642
- throw error;
1643
- }
1644
- }
1645
- throw error;
1646
- }
1647
- }
1648
- function safeCompile(route, options) {
1649
- const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
1650
- const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
1651
- try {
1652
- const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
1653
- if (needsNormalization) {
1654
- return (params) => {
1655
- return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
1656
- };
1657
- }
1658
- return compiler;
1659
- } catch (error) {
1660
- if (!needsNormalization) {
1661
- try {
1662
- const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
1663
- const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
1664
- return (params) => {
1665
- return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
1666
- };
1667
- } catch (retryError) {
1668
- throw error;
1669
- }
1670
- }
1671
- throw error;
1672
- }
1673
- }
1674
- function safeRegexpToFunction(regexp, keys) {
1675
- const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
1676
- return (pathname) => {
1677
- const result = originalMatcher(pathname);
1678
- if (!result) return false;
1679
- return __spreadProps(__spreadValues({}, result), {
1680
- params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
1681
- });
1682
- };
1683
- }
1684
- function safeRouteMatcher(matcherFn) {
1685
- return (pathname) => {
1686
- const result = matcherFn(pathname);
1687
- if (!result) return false;
1688
- return (0, _routepatternnormalizer.stripParameterSeparators)(result);
1689
- };
1690
- }
1691
- }
1692
- });
1693
-
1694
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-matcher.js
1695
- var require_route_matcher = __commonJS({
1696
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-matcher.js"(exports$1) {
1697
- Object.defineProperty(exports$1, "__esModule", {
1698
- value: true
1699
- });
1700
- Object.defineProperty(exports$1, "getRouteMatcher", {
1701
- enumerable: true,
1702
- get: function() {
1703
- return getRouteMatcher;
1704
- }
1705
- });
1706
- var _utils = require_utils();
1707
- var _routematchutils = require_route_match_utils();
1708
- function getRouteMatcher({ re, groups }) {
1709
- const rawMatcher = (pathname) => {
1710
- const routeMatch = re.exec(pathname);
1711
- if (!routeMatch) return false;
1712
- const decode = (param) => {
1713
- try {
1714
- return decodeURIComponent(param);
1715
- } catch (e) {
1716
- throw Object.defineProperty(new _utils.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
1717
- value: "E528",
1718
- enumerable: false,
1719
- configurable: true
1720
- });
1721
- }
1722
- };
1723
- const params = {};
1724
- for (const [key, group] of Object.entries(groups)) {
1725
- const match = routeMatch[group.pos];
1726
- if (match !== void 0) {
1727
- if (group.repeat) {
1728
- params[key] = match.split("/").map((entry) => decode(entry));
1729
- } else {
1730
- params[key] = decode(match);
1731
- }
1732
- }
1733
- }
1734
- return params;
1735
- };
1736
- return (0, _routematchutils.safeRouteMatcher)(rawMatcher);
1737
- }
1738
- }
1739
- });
1740
-
1741
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/constants.js
1742
- var require_constants = __commonJS({
1743
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/constants.js"(exports$1) {
1744
- Object.defineProperty(exports$1, "__esModule", {
1745
- value: true
1746
- });
1747
- function _export(target, all) {
1748
- for (var name in all) Object.defineProperty(target, name, {
1749
- enumerable: true,
1750
- get: all[name]
1751
- });
1752
- }
1753
- _export(exports$1, {
1754
- ACTION_SUFFIX: function() {
1755
- return ACTION_SUFFIX;
1756
- },
1757
- APP_DIR_ALIAS: function() {
1758
- return APP_DIR_ALIAS;
1759
- },
1760
- CACHE_ONE_YEAR: function() {
1761
- return CACHE_ONE_YEAR;
1762
- },
1763
- DOT_NEXT_ALIAS: function() {
1764
- return DOT_NEXT_ALIAS;
1765
- },
1766
- ESLINT_DEFAULT_DIRS: function() {
1767
- return ESLINT_DEFAULT_DIRS;
1768
- },
1769
- GSP_NO_RETURNED_VALUE: function() {
1770
- return GSP_NO_RETURNED_VALUE;
1771
- },
1772
- GSSP_COMPONENT_MEMBER_ERROR: function() {
1773
- return GSSP_COMPONENT_MEMBER_ERROR;
1774
- },
1775
- GSSP_NO_RETURNED_VALUE: function() {
1776
- return GSSP_NO_RETURNED_VALUE;
1777
- },
1778
- HTML_CONTENT_TYPE_HEADER: function() {
1779
- return HTML_CONTENT_TYPE_HEADER;
1780
- },
1781
- INFINITE_CACHE: function() {
1782
- return INFINITE_CACHE;
1783
- },
1784
- INSTRUMENTATION_HOOK_FILENAME: function() {
1785
- return INSTRUMENTATION_HOOK_FILENAME;
1786
- },
1787
- JSON_CONTENT_TYPE_HEADER: function() {
1788
- return JSON_CONTENT_TYPE_HEADER;
1789
- },
1790
- MATCHED_PATH_HEADER: function() {
1791
- return MATCHED_PATH_HEADER;
1792
- },
1793
- MIDDLEWARE_FILENAME: function() {
1794
- return MIDDLEWARE_FILENAME;
1795
- },
1796
- MIDDLEWARE_LOCATION_REGEXP: function() {
1797
- return MIDDLEWARE_LOCATION_REGEXP;
1798
- },
1799
- NEXT_BODY_SUFFIX: function() {
1800
- return NEXT_BODY_SUFFIX;
1801
- },
1802
- NEXT_CACHE_IMPLICIT_TAG_ID: function() {
1803
- return NEXT_CACHE_IMPLICIT_TAG_ID;
1804
- },
1805
- NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
1806
- return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
1807
- },
1808
- NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
1809
- return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
1810
- },
1811
- NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
1812
- return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
1813
- },
1814
- NEXT_CACHE_TAGS_HEADER: function() {
1815
- return NEXT_CACHE_TAGS_HEADER;
1816
- },
1817
- NEXT_CACHE_TAG_MAX_ITEMS: function() {
1818
- return NEXT_CACHE_TAG_MAX_ITEMS;
1819
- },
1820
- NEXT_CACHE_TAG_MAX_LENGTH: function() {
1821
- return NEXT_CACHE_TAG_MAX_LENGTH;
1822
- },
1823
- NEXT_DATA_SUFFIX: function() {
1824
- return NEXT_DATA_SUFFIX;
1825
- },
1826
- NEXT_INTERCEPTION_MARKER_PREFIX: function() {
1827
- return NEXT_INTERCEPTION_MARKER_PREFIX;
1828
- },
1829
- NEXT_META_SUFFIX: function() {
1830
- return NEXT_META_SUFFIX;
1831
- },
1832
- NEXT_QUERY_PARAM_PREFIX: function() {
1833
- return NEXT_QUERY_PARAM_PREFIX;
1834
- },
1835
- NEXT_RESUME_HEADER: function() {
1836
- return NEXT_RESUME_HEADER;
1837
- },
1838
- NON_STANDARD_NODE_ENV: function() {
1839
- return NON_STANDARD_NODE_ENV;
1840
- },
1841
- PAGES_DIR_ALIAS: function() {
1842
- return PAGES_DIR_ALIAS;
1843
- },
1844
- PRERENDER_REVALIDATE_HEADER: function() {
1845
- return PRERENDER_REVALIDATE_HEADER;
1846
- },
1847
- PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
1848
- return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
1849
- },
1850
- PROXY_FILENAME: function() {
1851
- return PROXY_FILENAME;
1852
- },
1853
- PROXY_LOCATION_REGEXP: function() {
1854
- return PROXY_LOCATION_REGEXP;
1855
- },
1856
- PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
1857
- return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
1858
- },
1859
- ROOT_DIR_ALIAS: function() {
1860
- return ROOT_DIR_ALIAS;
1861
- },
1862
- RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
1863
- return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
1864
- },
1865
- RSC_ACTION_ENCRYPTION_ALIAS: function() {
1866
- return RSC_ACTION_ENCRYPTION_ALIAS;
1867
- },
1868
- RSC_ACTION_PROXY_ALIAS: function() {
1869
- return RSC_ACTION_PROXY_ALIAS;
1870
- },
1871
- RSC_ACTION_VALIDATE_ALIAS: function() {
1872
- return RSC_ACTION_VALIDATE_ALIAS;
1873
- },
1874
- RSC_CACHE_WRAPPER_ALIAS: function() {
1875
- return RSC_CACHE_WRAPPER_ALIAS;
1876
- },
1877
- RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
1878
- return RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS;
1879
- },
1880
- RSC_MOD_REF_PROXY_ALIAS: function() {
1881
- return RSC_MOD_REF_PROXY_ALIAS;
1882
- },
1883
- RSC_SEGMENTS_DIR_SUFFIX: function() {
1884
- return RSC_SEGMENTS_DIR_SUFFIX;
1885
- },
1886
- RSC_SEGMENT_SUFFIX: function() {
1887
- return RSC_SEGMENT_SUFFIX;
1888
- },
1889
- RSC_SUFFIX: function() {
1890
- return RSC_SUFFIX;
1891
- },
1892
- SERVER_PROPS_EXPORT_ERROR: function() {
1893
- return SERVER_PROPS_EXPORT_ERROR;
1894
- },
1895
- SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
1896
- return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
1897
- },
1898
- SERVER_PROPS_SSG_CONFLICT: function() {
1899
- return SERVER_PROPS_SSG_CONFLICT;
1900
- },
1901
- SERVER_RUNTIME: function() {
1902
- return SERVER_RUNTIME;
1903
- },
1904
- SSG_FALLBACK_EXPORT_ERROR: function() {
1905
- return SSG_FALLBACK_EXPORT_ERROR;
1906
- },
1907
- SSG_GET_INITIAL_PROPS_CONFLICT: function() {
1908
- return SSG_GET_INITIAL_PROPS_CONFLICT;
1909
- },
1910
- STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
1911
- return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
1912
- },
1913
- TEXT_PLAIN_CONTENT_TYPE_HEADER: function() {
1914
- return TEXT_PLAIN_CONTENT_TYPE_HEADER;
1915
- },
1916
- UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
1917
- return UNSTABLE_REVALIDATE_RENAME_ERROR;
1918
- },
1919
- WEBPACK_LAYERS: function() {
1920
- return WEBPACK_LAYERS;
1921
- },
1922
- WEBPACK_RESOURCE_QUERIES: function() {
1923
- return WEBPACK_RESOURCE_QUERIES;
1924
- },
1925
- WEB_SOCKET_MAX_RECONNECTIONS: function() {
1926
- return WEB_SOCKET_MAX_RECONNECTIONS;
1927
- }
1928
- });
1929
- var TEXT_PLAIN_CONTENT_TYPE_HEADER = "text/plain";
1930
- var HTML_CONTENT_TYPE_HEADER = "text/html; charset=utf-8";
1931
- var JSON_CONTENT_TYPE_HEADER = "application/json; charset=utf-8";
1932
- var NEXT_QUERY_PARAM_PREFIX = "nxtP";
1933
- var NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
1934
- var MATCHED_PATH_HEADER = "x-matched-path";
1935
- var PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
1936
- var PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
1937
- var RSC_SEGMENTS_DIR_SUFFIX = ".segments";
1938
- var RSC_SEGMENT_SUFFIX = ".segment.rsc";
1939
- var RSC_SUFFIX = ".rsc";
1940
- var ACTION_SUFFIX = ".action";
1941
- var NEXT_DATA_SUFFIX = ".json";
1942
- var NEXT_META_SUFFIX = ".meta";
1943
- var NEXT_BODY_SUFFIX = ".body";
1944
- var NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
1945
- var NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
1946
- var NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
1947
- var NEXT_RESUME_HEADER = "next-resume";
1948
- var NEXT_CACHE_TAG_MAX_ITEMS = 128;
1949
- var NEXT_CACHE_TAG_MAX_LENGTH = 256;
1950
- var NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
1951
- var NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
1952
- var CACHE_ONE_YEAR = 31536e3;
1953
- var INFINITE_CACHE = 4294967294;
1954
- var MIDDLEWARE_FILENAME = "middleware";
1955
- var MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
1956
- var PROXY_FILENAME = "proxy";
1957
- var PROXY_LOCATION_REGEXP = `(?:src/)?${PROXY_FILENAME}`;
1958
- var INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
1959
- var PAGES_DIR_ALIAS = "private-next-pages";
1960
- var DOT_NEXT_ALIAS = "private-dot-next";
1961
- var ROOT_DIR_ALIAS = "private-next-root-dir";
1962
- var APP_DIR_ALIAS = "private-next-app-dir";
1963
- var RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
1964
- var RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
1965
- var RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
1966
- var RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
1967
- var RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS = "private-next-rsc-track-dynamic-import";
1968
- var RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
1969
- var RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
1970
- var PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict`;
1971
- var SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
1972
- var SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
1973
- var SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
1974
- var STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
1975
- var SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
1976
- var GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
1977
- var GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
1978
- var UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
1979
- var GSSP_COMPONENT_MEMBER_ERROR = `can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member`;
1980
- var NON_STANDARD_NODE_ENV = `You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env`;
1981
- var SSG_FALLBACK_EXPORT_ERROR = `Pages with \`fallback\` enabled in \`getStaticPaths\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`;
1982
- var ESLINT_DEFAULT_DIRS = [
1983
- "app",
1984
- "pages",
1985
- "components",
1986
- "lib",
1987
- "src"
1988
- ];
1989
- var SERVER_RUNTIME = {
1990
- edge: "edge",
1991
- experimentalEdge: "experimental-edge",
1992
- nodejs: "nodejs"
1993
- };
1994
- var WEB_SOCKET_MAX_RECONNECTIONS = 12;
1995
- var WEBPACK_LAYERS_NAMES = {
1996
- /**
1997
- * The layer for the shared code between the client and server bundles.
1998
- */
1999
- shared: "shared",
2000
- /**
2001
- * The layer for server-only runtime and picking up `react-server` export conditions.
2002
- * Including app router RSC pages and app router custom routes and metadata routes.
2003
- */
2004
- reactServerComponents: "rsc",
2005
- /**
2006
- * Server Side Rendering layer for app (ssr).
2007
- */
2008
- serverSideRendering: "ssr",
2009
- /**
2010
- * The browser client bundle layer for actions.
2011
- */
2012
- actionBrowser: "action-browser",
2013
- /**
2014
- * The Node.js bundle layer for the API routes.
2015
- */
2016
- apiNode: "api-node",
2017
- /**
2018
- * The Edge Lite bundle layer for the API routes.
2019
- */
2020
- apiEdge: "api-edge",
2021
- /**
2022
- * The layer for the middleware code.
2023
- */
2024
- middleware: "middleware",
2025
- /**
2026
- * The layer for the instrumentation hooks.
2027
- */
2028
- instrument: "instrument",
2029
- /**
2030
- * The layer for assets on the edge.
2031
- */
2032
- edgeAsset: "edge-asset",
2033
- /**
2034
- * The browser client bundle layer for App directory.
2035
- */
2036
- appPagesBrowser: "app-pages-browser",
2037
- /**
2038
- * The browser client bundle layer for Pages directory.
2039
- */
2040
- pagesDirBrowser: "pages-dir-browser",
2041
- /**
2042
- * The Edge Lite bundle layer for Pages directory.
2043
- */
2044
- pagesDirEdge: "pages-dir-edge",
2045
- /**
2046
- * The Node.js bundle layer for Pages directory.
2047
- */
2048
- pagesDirNode: "pages-dir-node"
2049
- };
2050
- var WEBPACK_LAYERS = __spreadProps(__spreadValues({}, WEBPACK_LAYERS_NAMES), {
2051
- GROUP: {
2052
- builtinReact: [
2053
- WEBPACK_LAYERS_NAMES.reactServerComponents,
2054
- WEBPACK_LAYERS_NAMES.actionBrowser
2055
- ],
2056
- serverOnly: [
2057
- WEBPACK_LAYERS_NAMES.reactServerComponents,
2058
- WEBPACK_LAYERS_NAMES.actionBrowser,
2059
- WEBPACK_LAYERS_NAMES.instrument,
2060
- WEBPACK_LAYERS_NAMES.middleware
2061
- ],
2062
- neutralTarget: [
2063
- // pages api
2064
- WEBPACK_LAYERS_NAMES.apiNode,
2065
- WEBPACK_LAYERS_NAMES.apiEdge
2066
- ],
2067
- clientOnly: [
2068
- WEBPACK_LAYERS_NAMES.serverSideRendering,
2069
- WEBPACK_LAYERS_NAMES.appPagesBrowser
2070
- ],
2071
- bundled: [
2072
- WEBPACK_LAYERS_NAMES.reactServerComponents,
2073
- WEBPACK_LAYERS_NAMES.actionBrowser,
2074
- WEBPACK_LAYERS_NAMES.serverSideRendering,
2075
- WEBPACK_LAYERS_NAMES.appPagesBrowser,
2076
- WEBPACK_LAYERS_NAMES.shared,
2077
- WEBPACK_LAYERS_NAMES.instrument,
2078
- WEBPACK_LAYERS_NAMES.middleware
2079
- ],
2080
- appPages: [
2081
- // app router pages and layouts
2082
- WEBPACK_LAYERS_NAMES.reactServerComponents,
2083
- WEBPACK_LAYERS_NAMES.serverSideRendering,
2084
- WEBPACK_LAYERS_NAMES.appPagesBrowser,
2085
- WEBPACK_LAYERS_NAMES.actionBrowser
2086
- ]
2087
- }
2088
- });
2089
- var WEBPACK_RESOURCE_QUERIES = {
2090
- edgeSSREntry: "__next_edge_ssr_entry__",
2091
- metadata: "__next_metadata__",
2092
- metadataRoute: "__next_metadata_route__",
2093
- metadataImageMeta: "__next_metadata_image_meta__"
2094
- };
2095
- }
2096
- });
2097
-
2098
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/escape-regexp.js
2099
- var require_escape_regexp = __commonJS({
2100
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/escape-regexp.js"(exports$1) {
2101
- Object.defineProperty(exports$1, "__esModule", {
2102
- value: true
2103
- });
2104
- Object.defineProperty(exports$1, "escapeStringRegexp", {
2105
- enumerable: true,
2106
- get: function() {
2107
- return escapeStringRegexp;
2108
- }
2109
- });
2110
- var reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
2111
- var reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
2112
- function escapeStringRegexp(str) {
2113
- if (reHasRegExp.test(str)) {
2114
- return str.replace(reReplaceRegExp, "\\$&");
2115
- }
2116
- return str;
2117
- }
2118
- }
2119
- });
2120
-
2121
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/invariant-error.js
2122
- var require_invariant_error = __commonJS({
2123
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/invariant-error.js"(exports$1) {
2124
- Object.defineProperty(exports$1, "__esModule", {
2125
- value: true
2126
- });
2127
- Object.defineProperty(exports$1, "InvariantError", {
2128
- enumerable: true,
2129
- get: function() {
2130
- return InvariantError;
2131
- }
2132
- });
2133
- var InvariantError = class extends Error {
2134
- constructor(message, options) {
2135
- super(`Invariant: ${message.endsWith(".") ? message : message + "."} This is a bug in Next.js.`, options);
2136
- this.name = "InvariantError";
2137
- }
2138
- };
2139
- }
2140
- });
2141
-
2142
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js
2143
- var require_parse_loader_tree = __commonJS({
2144
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js"(exports$1) {
2145
- Object.defineProperty(exports$1, "__esModule", {
2146
- value: true
2147
- });
2148
- Object.defineProperty(exports$1, "parseLoaderTree", {
2149
- enumerable: true,
2150
- get: function() {
2151
- return parseLoaderTree;
2152
- }
2153
- });
2154
- var _segment = require_segment();
2155
- function parseLoaderTree(tree) {
2156
- const [segment, parallelRoutes, modules] = tree;
2157
- const { layout, template } = modules;
2158
- let { page } = modules;
2159
- page = segment === _segment.DEFAULT_SEGMENT_KEY ? modules.defaultPage : page;
2160
- const conventionPath = (layout == null ? void 0 : layout[1]) || (template == null ? void 0 : template[1]) || (page == null ? void 0 : page[1]);
2161
- return {
2162
- page,
2163
- segment,
2164
- modules,
2165
- /* it can be either layout / template / page */
2166
- conventionPath,
2167
- parallelRoutes
2168
- };
2169
- }
2170
- }
2171
- });
2172
-
2173
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js
2174
- var require_get_segment_param = __commonJS({
2175
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js"(exports$1) {
2176
- Object.defineProperty(exports$1, "__esModule", {
2177
- value: true
2178
- });
2179
- function _export(target, all) {
2180
- for (var name in all) Object.defineProperty(target, name, {
2181
- enumerable: true,
2182
- get: all[name]
2183
- });
2184
- }
2185
- _export(exports$1, {
2186
- getParamProperties: function() {
2187
- return getParamProperties;
2188
- },
2189
- getSegmentParam: function() {
2190
- return getSegmentParam;
2191
- },
2192
- isCatchAll: function() {
2193
- return isCatchAll;
2194
- }
2195
- });
2196
- var _interceptionroutes = require_interception_routes();
2197
- function getSegmentParam(segment) {
2198
- const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((marker) => segment.startsWith(marker));
2199
- if (interceptionMarker) {
2200
- segment = segment.slice(interceptionMarker.length);
2201
- }
2202
- if (segment.startsWith("[[...") && segment.endsWith("]]")) {
2203
- return {
2204
- // TODO-APP: Optional catchall does not currently work with parallel routes,
2205
- // so for now aren't handling a potential interception marker.
2206
- paramType: "optional-catchall",
2207
- paramName: segment.slice(5, -2)
2208
- };
2209
- }
2210
- if (segment.startsWith("[...") && segment.endsWith("]")) {
2211
- return {
2212
- paramType: interceptionMarker ? `catchall-intercepted-${interceptionMarker}` : "catchall",
2213
- paramName: segment.slice(4, -1)
2214
- };
2215
- }
2216
- if (segment.startsWith("[") && segment.endsWith("]")) {
2217
- return {
2218
- paramType: interceptionMarker ? `dynamic-intercepted-${interceptionMarker}` : "dynamic",
2219
- paramName: segment.slice(1, -1)
2220
- };
2221
- }
2222
- return null;
2223
- }
2224
- function isCatchAll(type) {
2225
- return type === "catchall" || type === "catchall-intercepted-(..)(..)" || type === "catchall-intercepted-(.)" || type === "catchall-intercepted-(..)" || type === "catchall-intercepted-(...)" || type === "optional-catchall";
2226
- }
2227
- function getParamProperties(paramType) {
2228
- let repeat = false;
2229
- let optional = false;
2230
- switch (paramType) {
2231
- case "catchall":
2232
- case "catchall-intercepted-(..)(..)":
2233
- case "catchall-intercepted-(.)":
2234
- case "catchall-intercepted-(..)":
2235
- case "catchall-intercepted-(...)":
2236
- repeat = true;
2237
- break;
2238
- case "optional-catchall":
2239
- repeat = true;
2240
- optional = true;
2241
- break;
2242
- }
2243
- return {
2244
- repeat,
2245
- optional
2246
- };
2247
- }
2248
- }
2249
- });
2250
-
2251
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/routes/app.js
2252
- var require_app = __commonJS({
2253
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/routes/app.js"(exports$1) {
2254
- Object.defineProperty(exports$1, "__esModule", {
2255
- value: true
2256
- });
2257
- function _export(target, all) {
2258
- for (var name in all) Object.defineProperty(target, name, {
2259
- enumerable: true,
2260
- get: all[name]
2261
- });
2262
- }
2263
- _export(exports$1, {
2264
- isInterceptionAppRoute: function() {
2265
- return isInterceptionAppRoute;
2266
- },
2267
- isNormalizedAppRoute: function() {
2268
- return isNormalizedAppRoute;
2269
- },
2270
- parseAppRoute: function() {
2271
- return parseAppRoute;
2272
- },
2273
- parseAppRouteSegment: function() {
2274
- return parseAppRouteSegment;
2275
- }
2276
- });
2277
- var _invarianterror = require_invariant_error();
2278
- var _getsegmentparam = require_get_segment_param();
2279
- var _interceptionroutes = require_interception_routes();
2280
- function parseAppRouteSegment(segment) {
2281
- if (segment === "") {
2282
- return null;
2283
- }
2284
- const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
2285
- const param = (0, _getsegmentparam.getSegmentParam)(segment);
2286
- if (param) {
2287
- return {
2288
- type: "dynamic",
2289
- name: segment,
2290
- param,
2291
- interceptionMarker
2292
- };
2293
- } else if (segment.startsWith("(") && segment.endsWith(")")) {
2294
- return {
2295
- type: "route-group",
2296
- name: segment,
2297
- interceptionMarker
2298
- };
2299
- } else if (segment.startsWith("@")) {
2300
- return {
2301
- type: "parallel-route",
2302
- name: segment,
2303
- interceptionMarker
2304
- };
2305
- } else {
2306
- return {
2307
- type: "static",
2308
- name: segment,
2309
- interceptionMarker
2310
- };
2311
- }
2312
- }
2313
- function isNormalizedAppRoute(route) {
2314
- return route.normalized;
2315
- }
2316
- function isInterceptionAppRoute(route) {
2317
- return route.interceptionMarker !== void 0 && route.interceptingRoute !== void 0 && route.interceptedRoute !== void 0;
2318
- }
2319
- function parseAppRoute(pathname, normalized) {
2320
- const pathnameSegments = pathname.split("/").filter(Boolean);
2321
- const segments = [];
2322
- let interceptionMarker;
2323
- let interceptingRoute;
2324
- let interceptedRoute;
2325
- for (const segment of pathnameSegments) {
2326
- const appSegment = parseAppRouteSegment(segment);
2327
- if (!appSegment) {
2328
- continue;
2329
- }
2330
- if (normalized && (appSegment.type === "route-group" || appSegment.type === "parallel-route")) {
2331
- throw Object.defineProperty(new _invarianterror.InvariantError(`${pathname} is being parsed as a normalized route, but it has a route group or parallel route segment.`), "__NEXT_ERROR_CODE", {
2332
- value: "E923",
2333
- enumerable: false,
2334
- configurable: true
2335
- });
2336
- }
2337
- segments.push(appSegment);
2338
- if (appSegment.interceptionMarker) {
2339
- const parts = pathname.split(appSegment.interceptionMarker);
2340
- if (parts.length !== 2) {
2341
- throw Object.defineProperty(new Error(`Invalid interception route: ${pathname}`), "__NEXT_ERROR_CODE", {
2342
- value: "E924",
2343
- enumerable: false,
2344
- configurable: true
2345
- });
2346
- }
2347
- interceptingRoute = normalized ? parseAppRoute(parts[0], true) : parseAppRoute(parts[0], false);
2348
- interceptedRoute = normalized ? parseAppRoute(parts[1], true) : parseAppRoute(parts[1], false);
2349
- interceptionMarker = appSegment.interceptionMarker;
2350
- }
2351
- }
2352
- const dynamicSegments = segments.filter((segment) => segment.type === "dynamic");
2353
- return {
2354
- normalized,
2355
- pathname,
2356
- segments,
2357
- dynamicSegments,
2358
- interceptionMarker,
2359
- interceptingRoute,
2360
- interceptedRoute
2361
- };
2362
- }
2363
- }
2364
- });
2365
-
2366
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js
2367
- var require_interception_prefix_from_param_type = __commonJS({
2368
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js"(exports$1) {
2369
- Object.defineProperty(exports$1, "__esModule", {
2370
- value: true
2371
- });
2372
- Object.defineProperty(exports$1, "interceptionPrefixFromParamType", {
2373
- enumerable: true,
2374
- get: function() {
2375
- return interceptionPrefixFromParamType;
2376
- }
2377
- });
2378
- function interceptionPrefixFromParamType(paramType) {
2379
- switch (paramType) {
2380
- case "catchall-intercepted-(..)(..)":
2381
- case "dynamic-intercepted-(..)(..)":
2382
- return "(..)(..)";
2383
- case "catchall-intercepted-(.)":
2384
- case "dynamic-intercepted-(.)":
2385
- return "(.)";
2386
- case "catchall-intercepted-(..)":
2387
- case "dynamic-intercepted-(..)":
2388
- return "(..)";
2389
- case "catchall-intercepted-(...)":
2390
- case "dynamic-intercepted-(...)":
2391
- return "(...)";
2392
- case "catchall":
2393
- case "dynamic":
2394
- case "optional-catchall":
2395
- default:
2396
- return null;
2397
- }
2398
- }
2399
- }
2400
- });
2401
-
2402
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js
2403
- var require_resolve_param_value = __commonJS({
2404
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js"(exports$1) {
2405
- Object.defineProperty(exports$1, "__esModule", {
2406
- value: true
2407
- });
2408
- Object.defineProperty(exports$1, "resolveParamValue", {
2409
- enumerable: true,
2410
- get: function() {
2411
- return resolveParamValue;
2412
- }
2413
- });
2414
- var _invarianterror = require_invariant_error();
2415
- var _interceptionprefixfromparamtype = require_interception_prefix_from_param_type();
2416
- function getParamValueFromSegment(pathSegment, params, paramType) {
2417
- if (pathSegment.type === "dynamic") {
2418
- return params[pathSegment.param.paramName];
2419
- }
2420
- const interceptionPrefix = (0, _interceptionprefixfromparamtype.interceptionPrefixFromParamType)(paramType);
2421
- if (interceptionPrefix === pathSegment.interceptionMarker) {
2422
- return pathSegment.name.replace(pathSegment.interceptionMarker, "");
2423
- }
2424
- return pathSegment.name;
2425
- }
2426
- function resolveParamValue(paramName, paramType, depth, route, params) {
2427
- switch (paramType) {
2428
- case "catchall":
2429
- case "optional-catchall":
2430
- case "catchall-intercepted-(..)(..)":
2431
- case "catchall-intercepted-(.)":
2432
- case "catchall-intercepted-(..)":
2433
- case "catchall-intercepted-(...)":
2434
- const processedSegments = [];
2435
- for (let index = depth; index < route.segments.length; index++) {
2436
- const pathSegment = route.segments[index];
2437
- if (pathSegment.type === "static") {
2438
- let value = pathSegment.name;
2439
- const interceptionPrefix = (0, _interceptionprefixfromparamtype.interceptionPrefixFromParamType)(paramType);
2440
- if (interceptionPrefix && index === depth && interceptionPrefix === pathSegment.interceptionMarker) {
2441
- value = value.replace(pathSegment.interceptionMarker, "");
2442
- }
2443
- processedSegments.push(value);
2444
- } else {
2445
- if (!params.hasOwnProperty(pathSegment.param.paramName)) {
2446
- if (pathSegment.param.paramType === "optional-catchall") {
2447
- break;
2448
- }
2449
- return void 0;
2450
- }
2451
- const paramValue = params[pathSegment.param.paramName];
2452
- if (Array.isArray(paramValue)) {
2453
- processedSegments.push(...paramValue);
2454
- } else {
2455
- processedSegments.push(paramValue);
2456
- }
2457
- }
2458
- }
2459
- if (processedSegments.length > 0) {
2460
- return processedSegments;
2461
- } else if (paramType === "optional-catchall") {
2462
- return void 0;
2463
- } else {
2464
- throw Object.defineProperty(new _invarianterror.InvariantError(`Unexpected empty path segments match for a route "${route.pathname}" with param "${paramName}" of type "${paramType}"`), "__NEXT_ERROR_CODE", {
2465
- value: "E931",
2466
- enumerable: false,
2467
- configurable: true
2468
- });
2469
- }
2470
- case "dynamic":
2471
- case "dynamic-intercepted-(..)(..)":
2472
- case "dynamic-intercepted-(.)":
2473
- case "dynamic-intercepted-(..)":
2474
- case "dynamic-intercepted-(...)":
2475
- if (depth < route.segments.length) {
2476
- const pathSegment = route.segments[depth];
2477
- if (pathSegment.type === "dynamic" && !params.hasOwnProperty(pathSegment.param.paramName)) {
2478
- return void 0;
2479
- }
2480
- return getParamValueFromSegment(pathSegment, params, paramType);
2481
- }
2482
- return void 0;
2483
- }
2484
- }
2485
- }
2486
- });
2487
-
2488
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js
2489
- var require_get_dynamic_param = __commonJS({
2490
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js"(exports$1) {
2491
- Object.defineProperty(exports$1, "__esModule", {
2492
- value: true
2493
- });
2494
- function _export(target, all) {
2495
- for (var name in all) Object.defineProperty(target, name, {
2496
- enumerable: true,
2497
- get: all[name]
2498
- });
2499
- }
2500
- _export(exports$1, {
2501
- PARAMETER_PATTERN: function() {
2502
- return PARAMETER_PATTERN;
2503
- },
2504
- getDynamicParam: function() {
2505
- return getDynamicParam;
2506
- },
2507
- interpolateParallelRouteParams: function() {
2508
- return interpolateParallelRouteParams;
2509
- },
2510
- parseMatchedParameter: function() {
2511
- return parseMatchedParameter;
2512
- },
2513
- parseParameter: function() {
2514
- return parseParameter;
2515
- }
2516
- });
2517
- var _invarianterror = require_invariant_error();
2518
- var _parseloadertree = require_parse_loader_tree();
2519
- var _app = require_app();
2520
- var _resolveparamvalue = require_resolve_param_value();
2521
- function getParamValue(interpolatedParams, segmentKey, fallbackRouteParams) {
2522
- let value = interpolatedParams[segmentKey];
2523
- if (fallbackRouteParams == null ? void 0 : fallbackRouteParams.has(segmentKey)) {
2524
- const [searchValue] = fallbackRouteParams.get(segmentKey);
2525
- value = searchValue;
2526
- } else if (Array.isArray(value)) {
2527
- value = value.map((i) => encodeURIComponent(i));
2528
- } else if (typeof value === "string") {
2529
- value = encodeURIComponent(value);
2530
- }
2531
- return value;
2532
- }
2533
- function interpolateParallelRouteParams(loaderTree, params, pagePath, fallbackRouteParams) {
2534
- const interpolated = structuredClone(params);
2535
- const stack = [
2536
- {
2537
- tree: loaderTree,
2538
- depth: 0
2539
- }
2540
- ];
2541
- const route = (0, _app.parseAppRoute)(pagePath, true);
2542
- while (stack.length > 0) {
2543
- const { tree, depth } = stack.pop();
2544
- const { segment, parallelRoutes } = (0, _parseloadertree.parseLoaderTree)(tree);
2545
- const appSegment = (0, _app.parseAppRouteSegment)(segment);
2546
- if ((appSegment == null ? void 0 : appSegment.type) === "dynamic" && !interpolated.hasOwnProperty(appSegment.param.paramName) && // If the param is in the fallback route params, we don't need to
2547
- // interpolate it because it's already marked as being unknown.
2548
- !(fallbackRouteParams == null ? void 0 : fallbackRouteParams.has(appSegment.param.paramName))) {
2549
- const { paramName, paramType } = appSegment.param;
2550
- const paramValue = (0, _resolveparamvalue.resolveParamValue)(paramName, paramType, depth, route, interpolated);
2551
- if (paramValue !== void 0) {
2552
- interpolated[paramName] = paramValue;
2553
- } else if (paramType !== "optional-catchall") {
2554
- throw Object.defineProperty(new _invarianterror.InvariantError(`Could not resolve param value for segment: ${paramName}`), "__NEXT_ERROR_CODE", {
2555
- value: "E932",
2556
- enumerable: false,
2557
- configurable: true
2558
- });
2559
- }
2560
- }
2561
- let nextDepth = depth;
2562
- if (appSegment && appSegment.type !== "route-group" && appSegment.type !== "parallel-route") {
2563
- nextDepth++;
2564
- }
2565
- for (const parallelRoute of Object.values(parallelRoutes)) {
2566
- stack.push({
2567
- tree: parallelRoute,
2568
- depth: nextDepth
2569
- });
2570
- }
2571
- }
2572
- return interpolated;
2573
- }
2574
- function getDynamicParam(interpolatedParams, segmentKey, dynamicParamType, fallbackRouteParams) {
2575
- let value = getParamValue(interpolatedParams, segmentKey, fallbackRouteParams);
2576
- if (!value || value.length === 0) {
2577
- if (dynamicParamType === "oc") {
2578
- return {
2579
- param: segmentKey,
2580
- value: null,
2581
- type: dynamicParamType,
2582
- treeSegment: [
2583
- segmentKey,
2584
- "",
2585
- dynamicParamType
2586
- ]
2587
- };
2588
- }
2589
- throw Object.defineProperty(new _invarianterror.InvariantError(`Missing value for segment key: "${segmentKey}" with dynamic param type: ${dynamicParamType}`), "__NEXT_ERROR_CODE", {
2590
- value: "E864",
2591
- enumerable: false,
2592
- configurable: true
2593
- });
2594
- }
2595
- return {
2596
- param: segmentKey,
2597
- // The value that is passed to user code.
2598
- value,
2599
- // The value that is rendered in the router tree.
2600
- treeSegment: [
2601
- segmentKey,
2602
- Array.isArray(value) ? value.join("/") : value,
2603
- dynamicParamType
2604
- ],
2605
- type: dynamicParamType
2606
- };
2607
- }
2608
- var PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
2609
- function parseParameter(param) {
2610
- const match = param.match(PARAMETER_PATTERN);
2611
- if (!match) {
2612
- return parseMatchedParameter(param);
2613
- }
2614
- return parseMatchedParameter(match[2]);
2615
- }
2616
- function parseMatchedParameter(param) {
2617
- const optional = param.startsWith("[") && param.endsWith("]");
2618
- if (optional) {
2619
- param = param.slice(1, -1);
2620
- }
2621
- const repeat = param.startsWith("...");
2622
- if (repeat) {
2623
- param = param.slice(3);
2624
- }
2625
- return {
2626
- key: param,
2627
- repeat,
2628
- optional
2629
- };
2630
- }
2631
- }
2632
- });
2633
-
2634
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-regex.js
2635
- var require_route_regex = __commonJS({
2636
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/route-regex.js"(exports$1) {
2637
- Object.defineProperty(exports$1, "__esModule", {
2638
- value: true
2639
- });
2640
- function _export(target, all) {
2641
- for (var name in all) Object.defineProperty(target, name, {
2642
- enumerable: true,
2643
- get: all[name]
2644
- });
2645
- }
2646
- _export(exports$1, {
2647
- getNamedMiddlewareRegex: function() {
2648
- return getNamedMiddlewareRegex;
2649
- },
2650
- getNamedRouteRegex: function() {
2651
- return getNamedRouteRegex;
2652
- },
2653
- getRouteRegex: function() {
2654
- return getRouteRegex;
2655
- }
2656
- });
2657
- var _constants = require_constants();
2658
- var _interceptionroutes = require_interception_routes();
2659
- var _escaperegexp = require_escape_regexp();
2660
- var _removetrailingslash = require_remove_trailing_slash();
2661
- var _getdynamicparam = require_get_dynamic_param();
2662
- function getParametrizedRoute(route, includeSuffix, includePrefix) {
2663
- const groups = {};
2664
- let groupIndex = 1;
2665
- const segments = [];
2666
- for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
2667
- const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
2668
- const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
2669
- if (markerMatch && paramMatches && paramMatches[2]) {
2670
- const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
2671
- groups[key] = {
2672
- pos: groupIndex++,
2673
- repeat,
2674
- optional
2675
- };
2676
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(markerMatch)}([^/]+?)`);
2677
- } else if (paramMatches && paramMatches[2]) {
2678
- const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
2679
- groups[key] = {
2680
- pos: groupIndex++,
2681
- repeat,
2682
- optional
2683
- };
2684
- if (includePrefix && paramMatches[1]) {
2685
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
2686
- }
2687
- let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
2688
- if (includePrefix && paramMatches[1]) {
2689
- s = s.substring(1);
2690
- }
2691
- segments.push(s);
2692
- } else {
2693
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
2694
- }
2695
- if (includeSuffix && paramMatches && paramMatches[3]) {
2696
- segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
2697
- }
2698
- }
2699
- return {
2700
- parameterizedRoute: segments.join(""),
2701
- groups
2702
- };
2703
- }
2704
- function getRouteRegex(normalizedRoute, { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = {}) {
2705
- const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
2706
- let re = parameterizedRoute;
2707
- if (!excludeOptionalTrailingSlash) {
2708
- re += "(?:/)?";
2709
- }
2710
- return {
2711
- re: new RegExp(`^${re}$`),
2712
- groups
2713
- };
2714
- }
2715
- function buildGetSafeRouteKey() {
2716
- let i = 0;
2717
- return () => {
2718
- let routeKey = "";
2719
- let j = ++i;
2720
- while (j > 0) {
2721
- routeKey += String.fromCharCode(97 + (j - 1) % 26);
2722
- j = Math.floor((j - 1) / 26);
2723
- }
2724
- return routeKey;
2725
- };
2726
- }
2727
- function getSafeKeyFromSegment({ interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys }) {
2728
- const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment);
2729
- let cleanedKey = key.replace(/\W/g, "");
2730
- if (keyPrefix) {
2731
- cleanedKey = `${keyPrefix}${cleanedKey}`;
2732
- }
2733
- let invalidKey = false;
2734
- if (cleanedKey.length === 0 || cleanedKey.length > 30) {
2735
- invalidKey = true;
2736
- }
2737
- if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) {
2738
- invalidKey = true;
2739
- }
2740
- if (invalidKey) {
2741
- cleanedKey = getSafeRouteKey();
2742
- }
2743
- const duplicateKey = cleanedKey in routeKeys;
2744
- if (keyPrefix) {
2745
- routeKeys[cleanedKey] = `${keyPrefix}${key}`;
2746
- } else {
2747
- routeKeys[cleanedKey] = key;
2748
- }
2749
- const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
2750
- let pattern;
2751
- if (duplicateKey && backreferenceDuplicateKeys) {
2752
- pattern = `\\k<${cleanedKey}>`;
2753
- } else if (repeat) {
2754
- pattern = `(?<${cleanedKey}>.+?)`;
2755
- } else {
2756
- pattern = `(?<${cleanedKey}>[^/]+?)`;
2757
- }
2758
- return {
2759
- key,
2760
- pattern: optional ? `(?:/${interceptionPrefix}${pattern})?` : `/${interceptionPrefix}${pattern}`,
2761
- cleanedKey,
2762
- optional,
2763
- repeat
2764
- };
2765
- }
2766
- function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys, reference = {
2767
- names: {},
2768
- intercepted: {}
2769
- }) {
2770
- var _a, _b, _c, _d, _e, _f;
2771
- const getSafeRouteKey = buildGetSafeRouteKey();
2772
- const routeKeys = {};
2773
- const segments = [];
2774
- const inverseParts = [];
2775
- reference = structuredClone(reference);
2776
- for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
2777
- const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment.startsWith(m));
2778
- const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
2779
- const interceptionMarker = hasInterceptionMarker ? paramMatches == null ? void 0 : paramMatches[1] : void 0;
2780
- let keyPrefix;
2781
- if (interceptionMarker && (paramMatches == null ? void 0 : paramMatches[2])) {
2782
- keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
2783
- reference.intercepted[paramMatches[2]] = interceptionMarker;
2784
- } else if ((paramMatches == null ? void 0 : paramMatches[2]) && reference.intercepted[paramMatches[2]]) {
2785
- keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
2786
- } else {
2787
- keyPrefix = prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : void 0;
2788
- }
2789
- if (interceptionMarker && paramMatches && paramMatches[2]) {
2790
- const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
2791
- getSafeRouteKey,
2792
- interceptionMarker,
2793
- segment: paramMatches[2],
2794
- routeKeys,
2795
- keyPrefix,
2796
- backreferenceDuplicateKeys
2797
- });
2798
- segments.push(pattern);
2799
- inverseParts.push(`/${paramMatches[1]}:${(_a = reference.names[key]) != null ? _a : cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
2800
- (_c = (_b = reference.names)[key]) != null ? _c : _b[key] = cleanedKey;
2801
- } else if (paramMatches && paramMatches[2]) {
2802
- if (includePrefix && paramMatches[1]) {
2803
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
2804
- inverseParts.push(`/${paramMatches[1]}`);
2805
- }
2806
- const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
2807
- getSafeRouteKey,
2808
- segment: paramMatches[2],
2809
- routeKeys,
2810
- keyPrefix,
2811
- backreferenceDuplicateKeys
2812
- });
2813
- let s = pattern;
2814
- if (includePrefix && paramMatches[1]) {
2815
- s = s.substring(1);
2816
- }
2817
- segments.push(s);
2818
- inverseParts.push(`/:${(_d = reference.names[key]) != null ? _d : cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
2819
- (_f = (_e = reference.names)[key]) != null ? _f : _e[key] = cleanedKey;
2820
- } else {
2821
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
2822
- inverseParts.push(`/${segment}`);
2823
- }
2824
- if (includeSuffix && paramMatches && paramMatches[3]) {
2825
- segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
2826
- inverseParts.push(paramMatches[3]);
2827
- }
2828
- }
2829
- return {
2830
- namedParameterizedRoute: segments.join(""),
2831
- routeKeys,
2832
- pathToRegexpPattern: inverseParts.join(""),
2833
- reference
2834
- };
2835
- }
2836
- function getNamedRouteRegex(normalizedRoute, options) {
2837
- var _a, _b, _c;
2838
- const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, (_a = options.includeSuffix) != null ? _a : false, (_b = options.includePrefix) != null ? _b : false, (_c = options.backreferenceDuplicateKeys) != null ? _c : false, options.reference);
2839
- let namedRegex = result.namedParameterizedRoute;
2840
- if (!options.excludeOptionalTrailingSlash) {
2841
- namedRegex += "(?:/)?";
2842
- }
2843
- return __spreadProps(__spreadValues({}, getRouteRegex(normalizedRoute, options)), {
2844
- namedRegex: `^${namedRegex}$`,
2845
- routeKeys: result.routeKeys,
2846
- pathToRegexpPattern: result.pathToRegexpPattern,
2847
- reference: result.reference
2848
- });
2849
- }
2850
- function getNamedMiddlewareRegex(normalizedRoute, options) {
2851
- const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
2852
- const { catchAll = true } = options;
2853
- if (parameterizedRoute === "/") {
2854
- let catchAllRegex = catchAll ? ".*" : "";
2855
- return {
2856
- namedRegex: `^/${catchAllRegex}$`
2857
- };
2858
- }
2859
- const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false, void 0);
2860
- let catchAllGroupedRegex = catchAll ? "(?:(/.*)?)" : "";
2861
- return {
2862
- namedRegex: `^${namedParameterizedRoute}${catchAllGroupedRegex}$`
2863
- };
2864
- }
2865
- }
2866
- });
2867
-
2868
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js
2869
- var require_interpolate_as = __commonJS({
2870
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js"(exports$1) {
2871
- Object.defineProperty(exports$1, "__esModule", {
2872
- value: true
2873
- });
2874
- Object.defineProperty(exports$1, "interpolateAs", {
2875
- enumerable: true,
2876
- get: function() {
2877
- return interpolateAs;
2878
- }
2879
- });
2880
- var _routematcher = require_route_matcher();
2881
- var _routeregex = require_route_regex();
2882
- function interpolateAs(route, asPathname, query) {
2883
- let interpolatedRoute = "";
2884
- const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
2885
- const dynamicGroups = dynamicRegex.groups;
2886
- const dynamicMatches = (
2887
- // Try to match the dynamic route against the asPath
2888
- (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || // Fall back to reading the values from the href
2889
- // TODO: should this take priority; also need to change in the router.
2890
- query
2891
- );
2892
- interpolatedRoute = route;
2893
- const params = Object.keys(dynamicGroups);
2894
- if (!params.every((param) => {
2895
- let value = dynamicMatches[param] || "";
2896
- const { repeat, optional } = dynamicGroups[param];
2897
- let replaced = `[${repeat ? "..." : ""}${param}]`;
2898
- if (optional) {
2899
- replaced = `${!value ? "/" : ""}[${replaced}]`;
2900
- }
2901
- if (repeat && !Array.isArray(value)) value = [
2902
- value
2903
- ];
2904
- return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
2905
- (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(
2906
- // these values should be fully encoded instead of just
2907
- // path delimiter escaped since they are being inserted
2908
- // into the URL and we expect URL encoded segments
2909
- // when parsing dynamic route params
2910
- (segment) => encodeURIComponent(segment)
2911
- ).join("/") : encodeURIComponent(value)) || "/");
2912
- })) {
2913
- interpolatedRoute = "";
2914
- }
2915
- return {
2916
- params,
2917
- result: interpolatedRoute
2918
- };
2919
- }
2920
- }
2921
- });
2922
-
2923
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/resolve-href.js
2924
- var require_resolve_href = __commonJS({
2925
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/resolve-href.js"(exports$1, module) {
2926
- Object.defineProperty(exports$1, "__esModule", {
2927
- value: true
2928
- });
2929
- Object.defineProperty(exports$1, "resolveHref", {
2930
- enumerable: true,
2931
- get: function() {
2932
- return resolveHref;
2933
- }
2934
- });
2935
- var _querystring = require_querystring();
2936
- var _formaturl = require_format_url();
2937
- var _omit = require_omit();
2938
- var _utils = require_utils();
2939
- var _normalizetrailingslash = require_normalize_trailing_slash();
2940
- var _islocalurl = require_is_local_url();
2941
- var _utils1 = require_utils2();
2942
- var _interpolateas = require_interpolate_as();
2943
- var _routeregex = require_route_regex();
2944
- var _routematcher = require_route_matcher();
2945
- function resolveHref(router, href, resolveAs) {
2946
- let base;
2947
- let urlAsString = typeof href === "string" ? href : (0, _formaturl.formatWithValidation)(href);
2948
- const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
2949
- const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
2950
- const urlParts = urlAsStringNoProto.split("?", 1);
2951
- if ((urlParts[0] || "").match(/(\/\/|\\)/)) {
2952
- console.error(`Invalid href '${urlAsString}' passed to next/router in page: '${router.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
2953
- const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
2954
- urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl;
2955
- }
2956
- if (!(0, _islocalurl.isLocalURL)(urlAsString)) {
2957
- return resolveAs ? [
2958
- urlAsString
2959
- ] : urlAsString;
2960
- }
2961
- try {
2962
- let baseBase = urlAsString.startsWith("#") ? router.asPath : router.pathname;
2963
- if (urlAsString.startsWith("?")) {
2964
- baseBase = router.asPath;
2965
- if ((0, _utils1.isDynamicRoute)(router.pathname)) {
2966
- baseBase = router.pathname;
2967
- const routeRegex = (0, _routeregex.getRouteRegex)(router.pathname);
2968
- const match = (0, _routematcher.getRouteMatcher)(routeRegex)(router.asPath);
2969
- if (!match) {
2970
- baseBase = router.asPath;
2971
- }
2972
- }
2973
- }
2974
- base = new URL(baseBase, "http://n");
2975
- } catch (_) {
2976
- base = new URL("/", "http://n");
2977
- }
2978
- try {
2979
- const finalUrl = new URL(urlAsString, base);
2980
- finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
2981
- let interpolatedAs = "";
2982
- if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
2983
- const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
2984
- const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
2985
- if (result) {
2986
- interpolatedAs = (0, _formaturl.formatWithValidation)({
2987
- pathname: result,
2988
- hash: finalUrl.hash,
2989
- query: (0, _omit.omit)(query, params)
2990
- });
2991
- }
2992
- }
2993
- const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
2994
- return resolveAs ? [
2995
- resolvedHref,
2996
- interpolatedAs || resolvedHref
2997
- ] : resolvedHref;
2998
- } catch (_) {
2999
- return resolveAs ? [
3000
- urlAsString
3001
- ] : urlAsString;
3002
- }
3003
- }
3004
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3005
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3006
- Object.assign(exports$1.default, exports$1);
3007
- module.exports = exports$1.default;
3008
- }
3009
- }
3010
- });
3011
-
3012
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
3013
- var require_add_path_prefix = __commonJS({
3014
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports$1) {
3015
- Object.defineProperty(exports$1, "__esModule", {
3016
- value: true
3017
- });
3018
- Object.defineProperty(exports$1, "addPathPrefix", {
3019
- enumerable: true,
3020
- get: function() {
3021
- return addPathPrefix;
3022
- }
3023
- });
3024
- var _parsepath = require_parse_path();
3025
- function addPathPrefix(path, prefix) {
3026
- if (!path.startsWith("/") || !prefix) {
3027
- return path;
3028
- }
3029
- const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
3030
- return `${prefix}${pathname}${query}${hash}`;
3031
- }
3032
- }
3033
- });
3034
-
3035
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/add-locale.js
3036
- var require_add_locale = __commonJS({
3037
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports$1) {
3038
- Object.defineProperty(exports$1, "__esModule", {
3039
- value: true
3040
- });
3041
- Object.defineProperty(exports$1, "addLocale", {
3042
- enumerable: true,
3043
- get: function() {
3044
- return addLocale;
3045
- }
3046
- });
3047
- var _addpathprefix = require_add_path_prefix();
3048
- var _pathhasprefix = require_path_has_prefix();
3049
- function addLocale(path, locale, defaultLocale, ignorePrefix) {
3050
- if (!locale || locale === defaultLocale) return path;
3051
- const lower = path.toLowerCase();
3052
- if (!ignorePrefix) {
3053
- if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
3054
- if ((0, _pathhasprefix.pathHasPrefix)(lower, `/${locale.toLowerCase()}`)) return path;
3055
- }
3056
- return (0, _addpathprefix.addPathPrefix)(path, `/${locale}`);
3057
- }
3058
- }
3059
- });
3060
-
3061
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-locale.js
3062
- var require_add_locale2 = __commonJS({
3063
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-locale.js"(exports$1, module) {
3064
- Object.defineProperty(exports$1, "__esModule", {
3065
- value: true
3066
- });
3067
- Object.defineProperty(exports$1, "addLocale", {
3068
- enumerable: true,
3069
- get: function() {
3070
- return addLocale;
3071
- }
3072
- });
3073
- var _normalizetrailingslash = require_normalize_trailing_slash();
3074
- var addLocale = (path, ...args) => {
3075
- if (process.env.__NEXT_I18N_SUPPORT) {
3076
- return (0, _normalizetrailingslash.normalizePathTrailingSlash)(require_add_locale().addLocale(path, ...args));
3077
- }
3078
- return path;
3079
- };
3080
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3081
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3082
- Object.assign(exports$1.default, exports$1);
3083
- module.exports = exports$1.default;
3084
- }
3085
- }
3086
- });
3087
-
3088
- // node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
3089
- var require_interop_require_default = __commonJS({
3090
- "node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports$1) {
3091
- function _interop_require_default(obj) {
3092
- return obj && obj.__esModule ? obj : { default: obj };
3093
- }
3094
- exports$1._ = _interop_require_default;
3095
- }
3096
- });
3097
-
3098
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router-context.shared-runtime.js
3099
- var require_router_context_shared_runtime = __commonJS({
3100
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(exports$1) {
3101
- Object.defineProperty(exports$1, "__esModule", {
3102
- value: true
3103
- });
3104
- Object.defineProperty(exports$1, "RouterContext", {
3105
- enumerable: true,
3106
- get: function() {
3107
- return RouterContext;
3108
- }
3109
- });
3110
- var _interop_require_default = require_interop_require_default();
3111
- var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
3112
- var RouterContext = _react.default.createContext(null);
3113
- if (process.env.NODE_ENV !== "production") {
3114
- RouterContext.displayName = "RouterContext";
3115
- }
3116
- }
3117
- });
3118
-
3119
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/request-idle-callback.js
3120
- var require_request_idle_callback = __commonJS({
3121
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/request-idle-callback.js"(exports$1, module) {
3122
- Object.defineProperty(exports$1, "__esModule", {
3123
- value: true
3124
- });
3125
- function _export(target, all) {
3126
- for (var name in all) Object.defineProperty(target, name, {
3127
- enumerable: true,
3128
- get: all[name]
3129
- });
3130
- }
3131
- _export(exports$1, {
3132
- cancelIdleCallback: function() {
3133
- return cancelIdleCallback;
3134
- },
3135
- requestIdleCallback: function() {
3136
- return requestIdleCallback;
3137
- }
3138
- });
3139
- var requestIdleCallback = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
3140
- let start = Date.now();
3141
- return self.setTimeout(function() {
3142
- cb({
3143
- didTimeout: false,
3144
- timeRemaining: function() {
3145
- return Math.max(0, 50 - (Date.now() - start));
3146
- }
3147
- });
3148
- }, 1);
3149
- };
3150
- var cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
3151
- return clearTimeout(id);
3152
- };
3153
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3154
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3155
- Object.assign(exports$1.default, exports$1);
3156
- module.exports = exports$1.default;
3157
- }
3158
- }
3159
- });
3160
-
3161
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-intersection.js
3162
- var require_use_intersection = __commonJS({
3163
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-intersection.js"(exports$1, module) {
3164
- Object.defineProperty(exports$1, "__esModule", {
3165
- value: true
3166
- });
3167
- Object.defineProperty(exports$1, "useIntersection", {
3168
- enumerable: true,
3169
- get: function() {
3170
- return useIntersection;
3171
- }
3172
- });
3173
- var _react = __require("react");
3174
- var _requestidlecallback = require_request_idle_callback();
3175
- var hasIntersectionObserver = typeof IntersectionObserver === "function";
3176
- var observers = /* @__PURE__ */ new Map();
3177
- var idList = [];
3178
- function createObserver(options) {
3179
- const id = {
3180
- root: options.root || null,
3181
- margin: options.rootMargin || ""
3182
- };
3183
- const existing = idList.find((obj) => obj.root === id.root && obj.margin === id.margin);
3184
- let instance;
3185
- if (existing) {
3186
- instance = observers.get(existing);
3187
- if (instance) {
3188
- return instance;
3189
- }
3190
- }
3191
- const elements = /* @__PURE__ */ new Map();
3192
- const observer = new IntersectionObserver((entries) => {
3193
- entries.forEach((entry) => {
3194
- const callback = elements.get(entry.target);
3195
- const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
3196
- if (callback && isVisible) {
3197
- callback(isVisible);
3198
- }
3199
- });
3200
- }, options);
3201
- instance = {
3202
- id,
3203
- observer,
3204
- elements
3205
- };
3206
- idList.push(id);
3207
- observers.set(id, instance);
3208
- return instance;
3209
- }
3210
- function observe(element, callback, options) {
3211
- const { id, observer, elements } = createObserver(options);
3212
- elements.set(element, callback);
3213
- observer.observe(element);
3214
- return function unobserve() {
3215
- elements.delete(element);
3216
- observer.unobserve(element);
3217
- if (elements.size === 0) {
3218
- observer.disconnect();
3219
- observers.delete(id);
3220
- const index = idList.findIndex((obj) => obj.root === id.root && obj.margin === id.margin);
3221
- if (index > -1) {
3222
- idList.splice(index, 1);
3223
- }
3224
- }
3225
- };
3226
- }
3227
- function useIntersection({ rootRef, rootMargin, disabled }) {
3228
- const isDisabled = disabled || !hasIntersectionObserver;
3229
- const [visible, setVisible] = (0, _react.useState)(false);
3230
- const elementRef = (0, _react.useRef)(null);
3231
- const setElement = (0, _react.useCallback)((element) => {
3232
- elementRef.current = element;
3233
- }, []);
3234
- (0, _react.useEffect)(() => {
3235
- if (hasIntersectionObserver) {
3236
- if (isDisabled || visible) return;
3237
- const element = elementRef.current;
3238
- if (element && element.tagName) {
3239
- const unobserve = observe(element, (isVisible) => isVisible && setVisible(isVisible), {
3240
- root: rootRef == null ? void 0 : rootRef.current,
3241
- rootMargin
3242
- });
3243
- return unobserve;
3244
- }
3245
- } else {
3246
- if (!visible) {
3247
- const idleCallback = (0, _requestidlecallback.requestIdleCallback)(() => setVisible(true));
3248
- return () => (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
3249
- }
3250
- }
3251
- }, [
3252
- isDisabled,
3253
- rootMargin,
3254
- rootRef,
3255
- visible,
3256
- elementRef.current
3257
- ]);
3258
- const resetVisible = (0, _react.useCallback)(() => {
3259
- setVisible(false);
3260
- }, []);
3261
- return [
3262
- setElement,
3263
- visible,
3264
- resetVisible
3265
- ];
3266
- }
3267
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3268
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3269
- Object.assign(exports$1.default, exports$1);
3270
- module.exports = exports$1.default;
3271
- }
3272
- }
3273
- });
3274
-
3275
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
3276
- var require_normalize_locale_path = __commonJS({
3277
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports$1) {
3278
- Object.defineProperty(exports$1, "__esModule", {
3279
- value: true
3280
- });
3281
- Object.defineProperty(exports$1, "normalizeLocalePath", {
3282
- enumerable: true,
3283
- get: function() {
3284
- return normalizeLocalePath;
3285
- }
3286
- });
3287
- var cache = /* @__PURE__ */ new WeakMap();
3288
- function normalizeLocalePath(pathname, locales) {
3289
- if (!locales) return {
3290
- pathname
3291
- };
3292
- let lowercasedLocales = cache.get(locales);
3293
- if (!lowercasedLocales) {
3294
- lowercasedLocales = locales.map((locale) => locale.toLowerCase());
3295
- cache.set(locales, lowercasedLocales);
3296
- }
3297
- let detectedLocale;
3298
- const segments = pathname.split("/", 2);
3299
- if (!segments[1]) return {
3300
- pathname
3301
- };
3302
- const segment = segments[1].toLowerCase();
3303
- const index = lowercasedLocales.indexOf(segment);
3304
- if (index < 0) return {
3305
- pathname
3306
- };
3307
- detectedLocale = locales[index];
3308
- pathname = pathname.slice(detectedLocale.length + 1) || "/";
3309
- return {
3310
- pathname,
3311
- detectedLocale
3312
- };
3313
- }
3314
- }
3315
- });
3316
-
3317
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/normalize-locale-path.js
3318
- var require_normalize_locale_path2 = __commonJS({
3319
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/normalize-locale-path.js"(exports$1, module) {
3320
- Object.defineProperty(exports$1, "__esModule", {
3321
- value: true
3322
- });
3323
- Object.defineProperty(exports$1, "normalizeLocalePath", {
3324
- enumerable: true,
3325
- get: function() {
3326
- return normalizeLocalePath;
3327
- }
3328
- });
3329
- var normalizeLocalePath = (pathname, locales) => {
3330
- if (process.env.__NEXT_I18N_SUPPORT) {
3331
- return require_normalize_locale_path().normalizeLocalePath(pathname, locales);
3332
- }
3333
- return {
3334
- pathname,
3335
- detectedLocale: void 0
3336
- };
3337
- };
3338
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3339
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3340
- Object.assign(exports$1.default, exports$1);
3341
- module.exports = exports$1.default;
3342
- }
3343
- }
3344
- });
3345
-
3346
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
3347
- var require_detect_domain_locale = __commonJS({
3348
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports$1) {
3349
- Object.defineProperty(exports$1, "__esModule", {
3350
- value: true
3351
- });
3352
- Object.defineProperty(exports$1, "detectDomainLocale", {
3353
- enumerable: true,
3354
- get: function() {
3355
- return detectDomainLocale;
3356
- }
3357
- });
3358
- function detectDomainLocale(domainItems, hostname, detectedLocale) {
3359
- var _a, _b;
3360
- if (!domainItems) return;
3361
- if (detectedLocale) {
3362
- detectedLocale = detectedLocale.toLowerCase();
3363
- }
3364
- for (const item of domainItems) {
3365
- const domainHostname = (_a = item.domain) == null ? void 0 : _a.split(":", 1)[0].toLowerCase();
3366
- if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_b = item.locales) == null ? void 0 : _b.some((locale) => locale.toLowerCase() === detectedLocale))) {
3367
- return item;
3368
- }
3369
- }
3370
- }
3371
- }
3372
- });
3373
-
3374
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/detect-domain-locale.js
3375
- var require_detect_domain_locale2 = __commonJS({
3376
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/detect-domain-locale.js"(exports$1, module) {
3377
- Object.defineProperty(exports$1, "__esModule", {
3378
- value: true
3379
- });
3380
- Object.defineProperty(exports$1, "detectDomainLocale", {
3381
- enumerable: true,
3382
- get: function() {
3383
- return detectDomainLocale;
3384
- }
3385
- });
3386
- var detectDomainLocale = (...args) => {
3387
- if (process.env.__NEXT_I18N_SUPPORT) {
3388
- return require_detect_domain_locale().detectDomainLocale(...args);
3389
- }
3390
- };
3391
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3392
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3393
- Object.assign(exports$1.default, exports$1);
3394
- module.exports = exports$1.default;
3395
- }
3396
- }
3397
- });
3398
-
3399
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/get-domain-locale.js
3400
- var require_get_domain_locale = __commonJS({
3401
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/get-domain-locale.js"(exports$1, module) {
3402
- Object.defineProperty(exports$1, "__esModule", {
3403
- value: true
3404
- });
3405
- Object.defineProperty(exports$1, "getDomainLocale", {
3406
- enumerable: true,
3407
- get: function() {
3408
- return getDomainLocale;
3409
- }
3410
- });
3411
- var _normalizetrailingslash = require_normalize_trailing_slash();
3412
- var basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
3413
- function getDomainLocale(path, locale, locales, domainLocales) {
3414
- if (process.env.__NEXT_I18N_SUPPORT) {
3415
- const normalizeLocalePath = require_normalize_locale_path2().normalizeLocalePath;
3416
- const detectDomainLocale = require_detect_domain_locale2().detectDomainLocale;
3417
- const target = locale || normalizeLocalePath(path, locales).detectedLocale;
3418
- const domain = detectDomainLocale(domainLocales, void 0, target);
3419
- if (domain) {
3420
- const proto = `http${domain.http ? "" : "s"}://`;
3421
- const finalLocale = target === domain.defaultLocale ? "" : `/${target}`;
3422
- return `${proto}${domain.domain}${(0, _normalizetrailingslash.normalizePathTrailingSlash)(`${basePath}${finalLocale}${path}`)}`;
3423
- }
3424
- return false;
3425
- } else {
3426
- return false;
3427
- }
3428
- }
3429
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3430
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3431
- Object.assign(exports$1.default, exports$1);
3432
- module.exports = exports$1.default;
3433
- }
3434
- }
3435
- });
3436
-
3437
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-base-path.js
3438
- var require_add_base_path = __commonJS({
3439
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-base-path.js"(exports$1, module) {
3440
- Object.defineProperty(exports$1, "__esModule", {
3441
- value: true
3442
- });
3443
- Object.defineProperty(exports$1, "addBasePath", {
3444
- enumerable: true,
3445
- get: function() {
3446
- return addBasePath;
3447
- }
3448
- });
3449
- var _addpathprefix = require_add_path_prefix();
3450
- var _normalizetrailingslash = require_normalize_trailing_slash();
3451
- var basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
3452
- function addBasePath(path, required) {
3453
- return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
3454
- }
3455
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3456
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3457
- Object.assign(exports$1.default, exports$1);
3458
- module.exports = exports$1.default;
3459
- }
3460
- }
3461
- });
3462
-
3463
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-merged-ref.js
3464
- var require_use_merged_ref = __commonJS({
3465
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-merged-ref.js"(exports$1, module) {
3466
- Object.defineProperty(exports$1, "__esModule", {
3467
- value: true
3468
- });
3469
- Object.defineProperty(exports$1, "useMergedRef", {
3470
- enumerable: true,
3471
- get: function() {
3472
- return useMergedRef;
3473
- }
3474
- });
3475
- var _react = __require("react");
3476
- function useMergedRef(refA, refB) {
3477
- const cleanupA = (0, _react.useRef)(null);
3478
- const cleanupB = (0, _react.useRef)(null);
3479
- return (0, _react.useCallback)((current) => {
3480
- if (current === null) {
3481
- const cleanupFnA = cleanupA.current;
3482
- if (cleanupFnA) {
3483
- cleanupA.current = null;
3484
- cleanupFnA();
3485
- }
3486
- const cleanupFnB = cleanupB.current;
3487
- if (cleanupFnB) {
3488
- cleanupB.current = null;
3489
- cleanupFnB();
3490
- }
3491
- } else {
3492
- if (refA) {
3493
- cleanupA.current = applyRef(refA, current);
3494
- }
3495
- if (refB) {
3496
- cleanupB.current = applyRef(refB, current);
3497
- }
3498
- }
3499
- }, [
3500
- refA,
3501
- refB
3502
- ]);
3503
- }
3504
- function applyRef(refA, current) {
3505
- if (typeof refA === "function") {
3506
- const cleanup = refA(current);
3507
- if (typeof cleanup === "function") {
3508
- return cleanup;
3509
- } else {
3510
- return () => refA(null);
3511
- }
3512
- } else {
3513
- refA.current = current;
3514
- return () => {
3515
- refA.current = null;
3516
- };
3517
- }
3518
- }
3519
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3520
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3521
- Object.assign(exports$1.default, exports$1);
3522
- module.exports = exports$1.default;
3523
- }
3524
- }
3525
- });
3526
-
3527
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils/error-once.js
3528
- var require_error_once = __commonJS({
3529
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils/error-once.js"(exports$1) {
3530
- Object.defineProperty(exports$1, "__esModule", {
3531
- value: true
3532
- });
3533
- Object.defineProperty(exports$1, "errorOnce", {
3534
- enumerable: true,
3535
- get: function() {
3536
- return errorOnce;
3537
- }
3538
- });
3539
- var errorOnce = (_) => {
3540
- };
3541
- if (process.env.NODE_ENV !== "production") {
3542
- const errors = /* @__PURE__ */ new Set();
3543
- errorOnce = (msg) => {
3544
- if (!errors.has(msg)) {
3545
- console.error(msg);
3546
- }
3547
- errors.add(msg);
3548
- };
3549
- }
3550
- }
3551
- });
3552
-
3553
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/link.js
3554
- var require_link = __commonJS({
3555
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/link.js"(exports$1, module) {
3556
- "use client";
3557
- Object.defineProperty(exports$1, "__esModule", {
3558
- value: true
3559
- });
3560
- function _export(target, all) {
3561
- for (var name in all) Object.defineProperty(target, name, {
3562
- enumerable: true,
3563
- get: all[name]
3564
- });
3565
- }
3566
- _export(exports$1, {
3567
- default: function() {
3568
- return _default;
3569
- },
3570
- useLinkStatus: function() {
3571
- return useLinkStatus;
3572
- }
3573
- });
3574
- var _interop_require_wildcard = require_interop_require_wildcard();
3575
- var _jsxruntime = __require("react/jsx-runtime");
3576
- var _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
3577
- var _resolvehref = require_resolve_href();
3578
- var _islocalurl = require_is_local_url();
3579
- var _formaturl = require_format_url();
3580
- var _utils = require_utils();
3581
- var _addlocale = require_add_locale2();
3582
- var _routercontextsharedruntime = require_router_context_shared_runtime();
3583
- var _useintersection = require_use_intersection();
3584
- var _getdomainlocale = require_get_domain_locale();
3585
- var _addbasepath = require_add_base_path();
3586
- var _usemergedref = require_use_merged_ref();
3587
- var _erroronce = require_error_once();
3588
- var prefetched = /* @__PURE__ */ new Set();
3589
- function prefetch(router, href, as, options) {
3590
- if (typeof window === "undefined") {
3591
- return;
3592
- }
3593
- if (!(0, _islocalurl.isLocalURL)(href)) {
3594
- return;
3595
- }
3596
- if (!options.bypassPrefetchedCheck) {
3597
- const locale = (
3598
- // Let the link's locale prop override the default router locale.
3599
- typeof options.locale !== "undefined" ? options.locale : "locale" in router ? router.locale : void 0
3600
- );
3601
- const prefetchedKey = href + "%" + as + "%" + locale;
3602
- if (prefetched.has(prefetchedKey)) {
3603
- return;
3604
- }
3605
- prefetched.add(prefetchedKey);
3606
- }
3607
- router.prefetch(href, as, options).catch((err) => {
3608
- if (process.env.NODE_ENV !== "production") {
3609
- throw err;
3610
- }
3611
- });
3612
- }
3613
- function isModifiedEvent(event) {
3614
- const eventTarget = event.currentTarget;
3615
- const target = eventTarget.getAttribute("target");
3616
- return target && target !== "_self" || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
3617
- event.nativeEvent && event.nativeEvent.which === 2;
3618
- }
3619
- function linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate) {
3620
- const { nodeName } = e.currentTarget;
3621
- const isAnchorNodeName = nodeName.toUpperCase() === "A";
3622
- if (isAnchorNodeName && isModifiedEvent(e) || e.currentTarget.hasAttribute("download")) {
3623
- return;
3624
- }
3625
- if (!(0, _islocalurl.isLocalURL)(href)) {
3626
- if (replace) {
3627
- e.preventDefault();
3628
- location.replace(href);
3629
- }
3630
- return;
3631
- }
3632
- e.preventDefault();
3633
- const navigate = () => {
3634
- if (onNavigate) {
3635
- let isDefaultPrevented = false;
3636
- onNavigate({
3637
- preventDefault: () => {
3638
- isDefaultPrevented = true;
3639
- }
3640
- });
3641
- if (isDefaultPrevented) {
3642
- return;
3643
- }
3644
- }
3645
- const routerScroll = scroll != null ? scroll : true;
3646
- if ("beforePopState" in router) {
3647
- router[replace ? "replace" : "push"](href, as, {
3648
- shallow,
3649
- locale,
3650
- scroll: routerScroll
3651
- });
3652
- } else {
3653
- router[replace ? "replace" : "push"](as || href, {
3654
- scroll: routerScroll
3655
- });
3656
- }
3657
- };
3658
- navigate();
3659
- }
3660
- function formatStringOrUrl(urlObjOrString) {
3661
- if (typeof urlObjOrString === "string") {
3662
- return urlObjOrString;
3663
- }
3664
- return (0, _formaturl.formatUrl)(urlObjOrString);
3665
- }
3666
- var Link2 = /* @__PURE__ */ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {
3667
- let children;
3668
- const _a = props, { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, locale, onClick, onNavigate, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false } = _a, restProps = __objRest(_a, ["href", "as", "children", "prefetch", "passHref", "replace", "shallow", "scroll", "locale", "onClick", "onNavigate", "onMouseEnter", "onTouchStart", "legacyBehavior"]);
3669
- children = childrenProp;
3670
- if (legacyBehavior && (typeof children === "string" || typeof children === "number")) {
3671
- children = /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
3672
- children
3673
- });
3674
- }
3675
- const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
3676
- const prefetchEnabled = prefetchProp !== false;
3677
- if (process.env.NODE_ENV !== "production") {
3678
- let createPropError = function(args) {
3679
- return Object.defineProperty(new Error(`Failed prop type: The prop \`${args.key}\` expects a ${args.expected} in \`<Link>\`, but got \`${args.actual}\` instead.` + (typeof window !== "undefined" ? "\nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
3680
- value: "E319",
3681
- enumerable: false,
3682
- configurable: true
3683
- });
3684
- };
3685
- const requiredPropsGuard = {
3686
- href: true
3687
- };
3688
- const requiredProps = Object.keys(requiredPropsGuard);
3689
- requiredProps.forEach((key) => {
3690
- if (key === "href") {
3691
- if (props[key] == null || typeof props[key] !== "string" && typeof props[key] !== "object") {
3692
- throw createPropError({
3693
- key,
3694
- expected: "`string` or `object`",
3695
- actual: props[key] === null ? "null" : typeof props[key]
3696
- });
3697
- }
3698
- }
3699
- });
3700
- const optionalPropsGuard = {
3701
- as: true,
3702
- replace: true,
3703
- scroll: true,
3704
- shallow: true,
3705
- passHref: true,
3706
- prefetch: true,
3707
- locale: true,
3708
- onClick: true,
3709
- onMouseEnter: true,
3710
- onTouchStart: true,
3711
- legacyBehavior: true,
3712
- onNavigate: true
3713
- };
3714
- const optionalProps = Object.keys(optionalPropsGuard);
3715
- optionalProps.forEach((key) => {
3716
- const valType = typeof props[key];
3717
- if (key === "as") {
3718
- if (props[key] && valType !== "string" && valType !== "object") {
3719
- throw createPropError({
3720
- key,
3721
- expected: "`string` or `object`",
3722
- actual: valType
3723
- });
3724
- }
3725
- } else if (key === "locale") {
3726
- if (props[key] && valType !== "string") {
3727
- throw createPropError({
3728
- key,
3729
- expected: "`string`",
3730
- actual: valType
3731
- });
3732
- }
3733
- } else if (key === "onClick" || key === "onMouseEnter" || key === "onTouchStart" || key === "onNavigate") {
3734
- if (props[key] && valType !== "function") {
3735
- throw createPropError({
3736
- key,
3737
- expected: "`function`",
3738
- actual: valType
3739
- });
3740
- }
3741
- } else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "legacyBehavior") {
3742
- if (props[key] != null && valType !== "boolean") {
3743
- throw createPropError({
3744
- key,
3745
- expected: "`boolean`",
3746
- actual: valType
3747
- });
3748
- }
3749
- } else if (key === "prefetch") {
3750
- if (props[key] != null && valType !== "boolean" && props[key] !== "auto") {
3751
- throw createPropError({
3752
- key,
3753
- expected: '`boolean | "auto"`',
3754
- actual: valType
3755
- });
3756
- }
3757
- } else ;
3758
- });
3759
- }
3760
- const { href, as } = _react.default.useMemo(() => {
3761
- if (!router) {
3762
- const resolvedHref2 = formatStringOrUrl(hrefProp);
3763
- return {
3764
- href: resolvedHref2,
3765
- as: asProp ? formatStringOrUrl(asProp) : resolvedHref2
3766
- };
3767
- }
3768
- const [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(router, hrefProp, true);
3769
- return {
3770
- href: resolvedHref,
3771
- as: asProp ? (0, _resolvehref.resolveHref)(router, asProp) : resolvedAs || resolvedHref
3772
- };
3773
- }, [
3774
- router,
3775
- hrefProp,
3776
- asProp
3777
- ]);
3778
- const previousHref = _react.default.useRef(href);
3779
- const previousAs = _react.default.useRef(as);
3780
- let child;
3781
- if (legacyBehavior) {
3782
- if (process.env.NODE_ENV === "development") {
3783
- if (onClick) {
3784
- console.warn(`"onClick" was passed to <Link> with \`href\` of \`${hrefProp}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`);
3785
- }
3786
- if (onMouseEnterProp) {
3787
- console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${hrefProp}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);
3788
- }
3789
- try {
3790
- child = _react.default.Children.only(children);
3791
- } catch (err) {
3792
- if (!children) {
3793
- throw Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${hrefProp}\` but one child is required https://nextjs.org/docs/messages/link-no-children`), "__NEXT_ERROR_CODE", {
3794
- value: "E320",
3795
- enumerable: false,
3796
- configurable: true
3797
- });
3798
- }
3799
- throw Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${hrefProp}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` + (typeof window !== "undefined" ? " \nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
3800
- value: "E266",
3801
- enumerable: false,
3802
- configurable: true
3803
- });
3804
- }
3805
- } else {
3806
- child = _react.default.Children.only(children);
3807
- }
3808
- } else {
3809
- if (process.env.NODE_ENV === "development") {
3810
- if ((children == null ? void 0 : children.type) === "a") {
3811
- throw Object.defineProperty(new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor"), "__NEXT_ERROR_CODE", {
3812
- value: "E209",
3813
- enumerable: false,
3814
- configurable: true
3815
- });
3816
- }
3817
- }
3818
- }
3819
- const childRef = legacyBehavior ? child && typeof child === "object" && child.ref : forwardedRef;
3820
- const [setIntersectionRef, isVisible, resetVisible] = (0, _useintersection.useIntersection)({
3821
- rootMargin: "200px"
3822
- });
3823
- const setIntersectionWithResetRef = _react.default.useCallback((el) => {
3824
- if (previousAs.current !== as || previousHref.current !== href) {
3825
- resetVisible();
3826
- previousAs.current = as;
3827
- previousHref.current = href;
3828
- }
3829
- setIntersectionRef(el);
3830
- }, [
3831
- as,
3832
- href,
3833
- resetVisible,
3834
- setIntersectionRef
3835
- ]);
3836
- const setRef = (0, _usemergedref.useMergedRef)(setIntersectionWithResetRef, childRef);
3837
- _react.default.useEffect(() => {
3838
- if (process.env.NODE_ENV !== "production") {
3839
- return;
3840
- }
3841
- if (!router) {
3842
- return;
3843
- }
3844
- if (!isVisible || !prefetchEnabled) {
3845
- return;
3846
- }
3847
- prefetch(router, href, as, {
3848
- locale
3849
- });
3850
- }, [
3851
- as,
3852
- href,
3853
- isVisible,
3854
- locale,
3855
- prefetchEnabled,
3856
- router == null ? void 0 : router.locale,
3857
- router
3858
- ]);
3859
- const childProps = {
3860
- ref: setRef,
3861
- onClick(e) {
3862
- if (process.env.NODE_ENV !== "production") {
3863
- if (!e) {
3864
- throw Object.defineProperty(new Error(`Component rendered inside next/link has to pass click event to "onClick" prop.`), "__NEXT_ERROR_CODE", {
3865
- value: "E312",
3866
- enumerable: false,
3867
- configurable: true
3868
- });
3869
- }
3870
- }
3871
- if (!legacyBehavior && typeof onClick === "function") {
3872
- onClick(e);
3873
- }
3874
- if (legacyBehavior && child.props && typeof child.props.onClick === "function") {
3875
- child.props.onClick(e);
3876
- }
3877
- if (!router) {
3878
- return;
3879
- }
3880
- if (e.defaultPrevented) {
3881
- return;
3882
- }
3883
- linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate);
3884
- },
3885
- onMouseEnter(e) {
3886
- if (!legacyBehavior && typeof onMouseEnterProp === "function") {
3887
- onMouseEnterProp(e);
3888
- }
3889
- if (legacyBehavior && child.props && typeof child.props.onMouseEnter === "function") {
3890
- child.props.onMouseEnter(e);
3891
- }
3892
- if (!router) {
3893
- return;
3894
- }
3895
- prefetch(router, href, as, {
3896
- locale,
3897
- priority: true,
3898
- // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
3899
- bypassPrefetchedCheck: true
3900
- });
3901
- },
3902
- onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function onTouchStart(e) {
3903
- if (!legacyBehavior && typeof onTouchStartProp === "function") {
3904
- onTouchStartProp(e);
3905
- }
3906
- if (legacyBehavior && child.props && typeof child.props.onTouchStart === "function") {
3907
- child.props.onTouchStart(e);
3908
- }
3909
- if (!router) {
3910
- return;
3911
- }
3912
- prefetch(router, href, as, {
3913
- locale,
3914
- priority: true,
3915
- // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
3916
- bypassPrefetchedCheck: true
3917
- });
3918
- }
3919
- };
3920
- if ((0, _utils.isAbsoluteUrl)(as)) {
3921
- childProps.href = as;
3922
- } else if (!legacyBehavior || passHref || child.type === "a" && !("href" in child.props)) {
3923
- const curLocale = typeof locale !== "undefined" ? locale : router == null ? void 0 : router.locale;
3924
- const localeDomain = (router == null ? void 0 : router.isLocaleDomain) && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router == null ? void 0 : router.locales, router == null ? void 0 : router.domainLocales);
3925
- childProps.href = localeDomain || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router == null ? void 0 : router.defaultLocale));
3926
- }
3927
- if (legacyBehavior) {
3928
- if (process.env.NODE_ENV === "development") {
3929
- (0, _erroronce.errorOnce)("`legacyBehavior` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:\n\nnpx @next/codemod@latest new-link .\n\nLearn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components");
3930
- }
3931
- return /* @__PURE__ */ _react.default.cloneElement(child, childProps);
3932
- }
3933
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("a", __spreadProps(__spreadValues(__spreadValues({}, restProps), childProps), {
3934
- children
3935
- }));
3936
- });
3937
- var LinkStatusContext = /* @__PURE__ */ (0, _react.createContext)({
3938
- // We do not support link status in the Pages Router, so we always return false
3939
- pending: false
3940
- });
3941
- var useLinkStatus = () => {
3942
- return (0, _react.useContext)(LinkStatusContext);
3943
- };
3944
- var _default = Link2;
3945
- if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3946
- Object.defineProperty(exports$1.default, "__esModule", { value: true });
3947
- Object.assign(exports$1.default, exports$1);
3948
- module.exports = exports$1.default;
3949
- }
3950
- }
3951
- });
3952
-
3953
- // node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/link.js
3954
- var require_link2 = __commonJS({
3955
- "node_modules/.pnpm/next@16.1.5_@babel+core@7.28.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/link.js"(exports$1, module) {
3956
- module.exports = require_link();
3957
- }
3958
- });
3959
41
  function ActionButton(_a) {
3960
42
  var _b = _a, {
3961
43
  children,
@@ -4281,9 +363,6 @@ function InputField(_a) {
4281
363
  }, props)
4282
364
  );
4283
365
  }
4284
-
4285
- // src/stories/texts/Link.tsx
4286
- var import_link = __toESM(require_link2());
4287
366
  function Link(_a) {
4288
367
  var _b = _a, {
4289
368
  children,
@@ -4291,9 +370,9 @@ function Link(_a) {
4291
370
  className = "",
4292
371
  target = "_blank",
4293
372
  disabled = false,
4294
- prefetch,
4295
- replace,
4296
- scroll
373
+ prefetch: _prefetch,
374
+ replace: _replace,
375
+ scroll: _scroll
4297
376
  } = _b, props = __objRest(_b, [
4298
377
  "children",
4299
378
  "href",
@@ -4340,13 +419,10 @@ function Link(_a) {
4340
419
  );
4341
420
  }
4342
421
  return /* @__PURE__ */ jsx(
4343
- import_link.default,
422
+ "a",
4344
423
  __spreadProps(__spreadValues({
4345
424
  href,
4346
425
  target,
4347
- prefetch,
4348
- replace,
4349
- scroll,
4350
426
  "data-slot": "link",
4351
427
  "data-test-id": "link",
4352
428
  className: linkClasses,
@@ -6709,7 +2785,7 @@ var SwapSlippageToleranceButtonsView = ({
6709
2785
  const activeClasses = "border-brand-primary text-brand-primary bg-brand-tint dark:bg-brand-tint-dark";
6710
2786
  const inactiveClasses = "border-border-subtle dark:border-border-subtle-dark text-text-secondary dark:text-text-secondary-dark bg-bg-default dark:bg-bg-default-dark";
6711
2787
  const buttonBase = "px-sm py-xs rounded border text-text-sm cursor-pointer";
6712
- return /* @__PURE__ */ jsxs(
2788
+ return /* @__PURE__ */ jsx(
6713
2789
  "button",
6714
2790
  {
6715
2791
  "data-test-id": `slippage-option-${option}`,
@@ -6718,10 +2794,7 @@ var SwapSlippageToleranceButtonsView = ({
6718
2794
  className: twMerge(buttonBase, isActive ? activeClasses : inactiveClasses),
6719
2795
  "aria-label": `${formatPercentage(option)}% slippage`,
6720
2796
  "aria-pressed": isActive,
6721
- children: [
6722
- formatPercentage(option),
6723
- "%"
6724
- ]
2797
+ children: formatPercentage(option)
6725
2798
  },
6726
2799
  option
6727
2800
  );
@@ -7710,7 +3783,386 @@ var ChooseAnAssetSwapView = ({
7710
3783
  }
7711
3784
  ) });
7712
3785
  };
3786
+ var SwapFormView = ({
3787
+ labels,
3788
+ onHistoryClick,
3789
+ fromCard,
3790
+ switchButton,
3791
+ toCard,
3792
+ advancedSettings,
3793
+ transactionDetails,
3794
+ confirmButton
3795
+ }) => {
3796
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3797
+ /* @__PURE__ */ jsx(
3798
+ "div",
3799
+ {
3800
+ "data-testid": "swap-form-view",
3801
+ className: "flex-1 min-h-0 overflow-y-auto swap-flow-content pr-sm",
3802
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-md text-text-secondary dark:text-text-secondary-dark", children: [
3803
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-md", children: [
3804
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-sm", children: [
3805
+ /* @__PURE__ */ jsx(TextHeading, { variant: "h5", className: "!text-[21px]", children: /* @__PURE__ */ jsx("span", { "data-testid": "swap-flow-title", children: labels.title }) }),
3806
+ labels.subtitle && /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "!text-[14px]", children: labels.subtitle })
3807
+ ] }),
3808
+ /* @__PURE__ */ jsx(
3809
+ "button",
3810
+ {
3811
+ "data-testid": "swap-history-button",
3812
+ type: "button",
3813
+ onClick: onHistoryClick,
3814
+ className: "flex items-center justify-center w-12 h-12 transition-colors rounded-full cursor-pointer text-text-secondary dark:text-text-secondary-dark hover:text-brand-primary",
3815
+ "aria-label": labels.historyAriaLabel,
3816
+ children: /* @__PURE__ */ jsx(MdHistory, { className: "w-6 h-6" })
3817
+ }
3818
+ )
3819
+ ] }),
3820
+ /* @__PURE__ */ jsxs("div", { className: "relative flex flex-col items-stretch gap-sm", children: [
3821
+ fromCard,
3822
+ switchButton,
3823
+ toCard
3824
+ ] }),
3825
+ advancedSettings,
3826
+ /* @__PURE__ */ jsx("div", { className: "pb-xl", children: transactionDetails })
3827
+ ] })
3828
+ }
3829
+ ),
3830
+ /* @__PURE__ */ jsx(
3831
+ "div",
3832
+ {
3833
+ "data-testid": "swap-flow-footer",
3834
+ className: "border-t p-md border-border-default dark:border-border-default-dark bg-bg-primary dark:bg-bg-primary-dark",
3835
+ children: confirmButton
3836
+ }
3837
+ )
3838
+ ] });
3839
+ };
3840
+ var SwapFromCardView = ({
3841
+ labels,
3842
+ selectedToken,
3843
+ onTokenClick,
3844
+ balanceFormatted,
3845
+ balanceUsdFormatted,
3846
+ onBalanceClick,
3847
+ chainLabel,
3848
+ chainImage,
3849
+ onNetworkClick,
3850
+ amountValue,
3851
+ amountHasError,
3852
+ onAmountChange,
3853
+ maxFractionDigits,
3854
+ amountUsdFormatted,
3855
+ isAmountUsdLoading,
3856
+ amountSlot
3857
+ }) => {
3858
+ return /* @__PURE__ */ jsx(SectionCard, { className: "flex flex-col gap-sm", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-md items-center", children: [
3859
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-sm flex-1", children: [
3860
+ /* @__PURE__ */ jsx(
3861
+ SwapTokenSelectorView,
3862
+ {
3863
+ token: selectedToken,
3864
+ onClick: onTokenClick,
3865
+ testId: "swap-from-token-selector",
3866
+ selectTokenLabel: labels.selectTokenLabel
3867
+ }
3868
+ ),
3869
+ /* @__PURE__ */ jsx(
3870
+ TextBody,
3871
+ {
3872
+ variant: "text-small",
3873
+ className: "text-text-tertiary dark:text-text-tertiary-dark",
3874
+ children: onBalanceClick ? /* @__PURE__ */ jsxs(
3875
+ "button",
3876
+ {
3877
+ type: "button",
3878
+ onClick: onBalanceClick,
3879
+ className: "cursor-pointer hover:text-text-secondary dark:hover:text-text-secondary-dark transition-colors",
3880
+ "data-testid": "swap-from-balance",
3881
+ children: [
3882
+ labels.balanceLabel,
3883
+ ": ",
3884
+ balanceFormatted,
3885
+ " (",
3886
+ balanceUsdFormatted,
3887
+ ")"
3888
+ ]
3889
+ }
3890
+ ) : /* @__PURE__ */ jsxs("span", { "data-testid": "swap-from-balance", children: [
3891
+ labels.balanceLabel,
3892
+ ": ",
3893
+ balanceFormatted,
3894
+ " (",
3895
+ balanceUsdFormatted,
3896
+ ")"
3897
+ ] })
3898
+ }
3899
+ ),
3900
+ /* @__PURE__ */ jsx(
3901
+ SwapNetworkSelectorView,
3902
+ {
3903
+ chainLabel,
3904
+ chainImage,
3905
+ onClick: onNetworkClick,
3906
+ directionLabel: labels.directionLabel,
3907
+ testId: "swap-from-network-selector"
3908
+ }
3909
+ )
3910
+ ] }),
3911
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 items-end justify-center gap-xs", children: amountSlot != null ? amountSlot : /* @__PURE__ */ jsxs(Fragment, { children: [
3912
+ /* @__PURE__ */ jsx(
3913
+ SwapAmountInputView,
3914
+ {
3915
+ value: amountValue,
3916
+ hasError: amountHasError,
3917
+ onChange: onAmountChange,
3918
+ maxFractionDigits,
3919
+ ariaLabel: labels.amountPlaceholder
3920
+ }
3921
+ ),
3922
+ /* @__PURE__ */ jsx(
3923
+ TextBody,
3924
+ {
3925
+ as: "span",
3926
+ variant: "text-small",
3927
+ className: amountHasError ? "text-state-error dark:text-state-error" : "text-text-tertiary dark:text-text-tertiary-dark",
3928
+ children: isAmountUsdLoading ? /* @__PURE__ */ jsx(LoadingDots, {}) : amountUsdFormatted
3929
+ }
3930
+ )
3931
+ ] }) })
3932
+ ] }) });
3933
+ };
3934
+ var SwapToCardView = ({
3935
+ labels,
3936
+ selectedToken,
3937
+ onTokenClick,
3938
+ balanceFormatted,
3939
+ balanceUsdFormatted,
3940
+ chainLabel,
3941
+ chainImage,
3942
+ onNetworkClick,
3943
+ outputAmount,
3944
+ isOutputLoading,
3945
+ outputUsdFormatted,
3946
+ isOutputUsdLoading
3947
+ }) => {
3948
+ const loadingElement = labels.searchingQuoteLabel ? /* @__PURE__ */ jsxs(Fragment, { children: [
3949
+ labels.searchingQuoteLabel,
3950
+ /* @__PURE__ */ jsx(LoadingDots, {})
3951
+ ] }) : void 0;
3952
+ return /* @__PURE__ */ jsx(SectionCard, { className: "flex flex-col gap-sm", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-md items-center", children: [
3953
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-sm flex-1", children: [
3954
+ /* @__PURE__ */ jsx(
3955
+ SwapTokenSelectorView,
3956
+ {
3957
+ token: selectedToken,
3958
+ onClick: onTokenClick,
3959
+ testId: "swap-to-token-selector",
3960
+ selectTokenLabel: labels.selectTokenLabel
3961
+ }
3962
+ ),
3963
+ /* @__PURE__ */ jsx(
3964
+ TextBody,
3965
+ {
3966
+ variant: "text-small",
3967
+ className: "text-text-tertiary dark:text-text-tertiary-dark",
3968
+ children: /* @__PURE__ */ jsxs("span", { "data-testid": "swap-to-balance", children: [
3969
+ labels.balanceLabel,
3970
+ ": ",
3971
+ balanceFormatted,
3972
+ " (",
3973
+ balanceUsdFormatted,
3974
+ ")"
3975
+ ] })
3976
+ }
3977
+ ),
3978
+ /* @__PURE__ */ jsx(
3979
+ SwapNetworkSelectorView,
3980
+ {
3981
+ chainLabel,
3982
+ chainImage,
3983
+ onClick: onNetworkClick,
3984
+ directionLabel: labels.directionLabel,
3985
+ testId: "swap-to-network-selector"
3986
+ }
3987
+ )
3988
+ ] }),
3989
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 items-end justify-center gap-xs", children: [
3990
+ /* @__PURE__ */ jsx(
3991
+ SwapOutputAmountView,
3992
+ {
3993
+ displayOutput: outputAmount,
3994
+ isLoading: isOutputLoading,
3995
+ loadingElement,
3996
+ searchingQuoteLabel: labels.searchingQuoteLabel
3997
+ }
3998
+ ),
3999
+ /* @__PURE__ */ jsx(
4000
+ TextBody,
4001
+ {
4002
+ as: "span",
4003
+ variant: "text-small",
4004
+ className: "text-text-tertiary dark:text-text-tertiary-dark",
4005
+ children: isOutputUsdLoading ? /* @__PURE__ */ jsx(LoadingDots, {}) : outputUsdFormatted
4006
+ }
4007
+ )
4008
+ ] })
4009
+ ] }) });
4010
+ };
4011
+ var SwapQuoteDetailsView = ({
4012
+ labels,
4013
+ isVisible,
4014
+ isLoading,
4015
+ quoteHeaderLabel,
4016
+ timerElement,
4017
+ exchangeRateFormatted,
4018
+ totalCostFormatted,
4019
+ feePercentage,
4020
+ gasCostFormatted,
4021
+ protocolFee,
4022
+ slippageFormatted,
4023
+ etaFormatted,
4024
+ quoteId,
4025
+ hasQuoteError,
4026
+ hasBytecodeError,
4027
+ quoteErrorMessage,
4028
+ bytecodeErrorMessage
4029
+ }) => {
4030
+ const headerLabel = isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
4031
+ quoteHeaderLabel,
4032
+ /* @__PURE__ */ jsx(LoadingDots, {})
4033
+ ] }) : quoteHeaderLabel;
4034
+ const items = [
4035
+ {
4036
+ label: "",
4037
+ value: /* @__PURE__ */ jsx(SwapQuoteHeaderView, { label: headerLabel, timerElement }),
4038
+ valueClassName: "w-full"
4039
+ },
4040
+ {
4041
+ label: labels.exchangeRateLabel,
4042
+ value: exchangeRateFormatted
4043
+ },
4044
+ {
4045
+ label: "",
4046
+ value: /* @__PURE__ */ jsx(
4047
+ SwapQuoteBlockchainCostsView,
4048
+ {
4049
+ totalCostFormatted,
4050
+ feePercentage,
4051
+ gasCostFormatted,
4052
+ protocolFee,
4053
+ blockchainCostsLabel: labels.blockchainCostsLabel,
4054
+ networkGasLabel: labels.networkGasLabel,
4055
+ protocolFeeLabel: labels.protocolFeeLabel,
4056
+ collapseLabel: labels.costsCollapseLabel,
4057
+ expandLabel: labels.costsExpandLabel
4058
+ }
4059
+ ),
4060
+ valueClassName: "flex flex-col gap-sm w-full text-right"
4061
+ },
4062
+ {
4063
+ label: labels.slippageLabel,
4064
+ value: slippageFormatted
4065
+ },
4066
+ {
4067
+ label: labels.etaLabel,
4068
+ value: etaFormatted
4069
+ }
4070
+ ];
4071
+ if (quoteId) {
4072
+ items.push({ label: labels.quoteIdLabel, value: quoteId });
4073
+ }
4074
+ return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
4075
+ /* @__PURE__ */ jsx(
4076
+ SummaryDetails,
4077
+ {
4078
+ title: labels.headerLabel,
4079
+ items,
4080
+ defaultOpen: isVisible,
4081
+ className: "bg-bg-subtle dark:bg-bg-subtle-dark rounded shadow-sm p-md flex flex-col lg:!bg-bg-raised"
4082
+ },
4083
+ `details-${isVisible}`
4084
+ ),
4085
+ /* @__PURE__ */ jsx(
4086
+ SwapQuoteErrorsView,
4087
+ {
4088
+ hasQuoteError,
4089
+ hasBytecodeError,
4090
+ quoteErrorMessage,
4091
+ bytecodeErrorMessage
4092
+ }
4093
+ )
4094
+ ] });
4095
+ };
4096
+ var SwapAdvancedSettingsView = ({
4097
+ title,
4098
+ isOpen,
4099
+ onOpenChange,
4100
+ slippageBps,
4101
+ onSlippageSelect,
4102
+ formatPercentage,
4103
+ percentageOptions,
4104
+ onPercentageClick,
4105
+ slippageFormatted,
4106
+ collapseText,
4107
+ expandText,
4108
+ maxLabel
4109
+ }) => {
4110
+ return /* @__PURE__ */ jsx("div", { className: "pb-2 mt-md", children: /* @__PURE__ */ jsx(SectionCard, { children: /* @__PURE__ */ jsxs(
4111
+ CollapsibleSection,
4112
+ {
4113
+ title,
4114
+ subtitle: slippageFormatted,
4115
+ open: isOpen,
4116
+ onOpenChange,
4117
+ collapseText,
4118
+ expandText,
4119
+ children: [
4120
+ /* @__PURE__ */ jsx(
4121
+ SwapSlippageToleranceButtonsView,
4122
+ {
4123
+ slippageBps,
4124
+ onSelect: onSlippageSelect,
4125
+ formatPercentage,
4126
+ className: "mt-md"
4127
+ }
4128
+ ),
4129
+ /* @__PURE__ */ jsx("div", { className: "w-full mt-md", children: /* @__PURE__ */ jsx("div", { className: "flex w-full gap-sm", children: percentageOptions.map((pct, index) => {
4130
+ const isMax = index === percentageOptions.length - 1;
4131
+ const label = isMax ? maxLabel : `${pct / 100}%`;
4132
+ return /* @__PURE__ */ jsx(
4133
+ PercentageButton,
4134
+ {
4135
+ type: "button",
4136
+ onClick: () => onPercentageClick(pct),
4137
+ children: label
4138
+ },
4139
+ pct
4140
+ );
4141
+ }) }) })
4142
+ ]
4143
+ }
4144
+ ) }) });
4145
+ };
4146
+ var ConfirmSwapButtonView = ({
4147
+ buttonLabel,
4148
+ disabled,
4149
+ isLoading,
4150
+ onClick
4151
+ }) => {
4152
+ return /* @__PURE__ */ jsx("div", { "data-testid": "swap-confirm-button-wrapper", children: /* @__PURE__ */ jsxs(
4153
+ PrimaryButton,
4154
+ {
4155
+ onClick,
4156
+ className: "w-full",
4157
+ disabled,
4158
+ children: [
4159
+ buttonLabel,
4160
+ isLoading && /* @__PURE__ */ jsx(LoadingDots, {})
4161
+ ]
4162
+ }
4163
+ ) });
4164
+ };
7713
4165
 
7714
- export { ActionButton, ActionSheet, AddressDisplay, BackgroundContainer, BannerNotification, ChooseAStrategyActionsheetView, ChooseAnAssetSwapView, CloseButton, CollapsibleInfoRow, CollapsibleSection, ConnectWalletList, Currency, DeframeComponentsProvider, DetailsHeader, Currency as Fiat, FlexCol, FlexRow, HighRiskBadge, HistoryDepositDetailsView, HistoryWithdrawDetailsView, InfoLabel, InfoRow, InfoRowIconLabel, InfoRowIconValue, InfoRowWithIcon, InfoValue, Input2 as Input, Link, ListItem, ListItemContent, ListItemLeftSide, ListItemRightSide, LoadingDots, LowRiskBadge, MediumRiskBadge, Navbar, PercentageButton, PrimaryButton, ProgressIndicator, ScrollableContent, SearchEmptyState, SearchInput, SecondaryButton, SectionCard, Select, SelectContent, SelectItem, SelectTrigger, Skeleton, StepDisplay, StepStatusIcon, StepStatusText, StrategyDetailsView, SummaryDetails, SummaryDetailsCryptoControlV2, SwapAmountInputView, SwapCrossChainProcessingView, SwapNetworkSelectorView, SwapOutputAmountView, SwapProcessingView, SwapQuoteBlockchainCostsView, SwapQuoteErrorsView, SwapQuoteHeaderView, SwapSignatureWarningView, SwapSlippageToleranceButtonsView, SwapSuccessView, SwapTokenSelectorView, SwapTransactionFailedView, Tabs, TabsContent, TabsList, TabsTrigger, TertiaryButton, TextAccent, TextBody, TextHeading, Title, TokenWithChainBadge, TransactionProcessingDetails, TransactionScreen, TransactionScreenIcon, TransactionScreenInvestmentCard, WalletItem, ConnectWalletList as WalletList, WalletListContainer, cryptocontrolThemeColors, darkThemeColors, defaultThemeColors, themeToCSS };
4166
+ export { ActionButton, ActionSheet, AddressDisplay, BackgroundContainer, BannerNotification, ChooseAStrategyActionsheetView, ChooseAnAssetSwapView, CloseButton, CollapsibleInfoRow, CollapsibleSection, ConfirmSwapButtonView, ConnectWalletList, Currency, DeframeComponentsProvider, DetailsHeader, Currency as Fiat, FlexCol, FlexRow, HighRiskBadge, HistoryDepositDetailsView, HistoryWithdrawDetailsView, InfoLabel, InfoRow, InfoRowIconLabel, InfoRowIconValue, InfoRowWithIcon, InfoValue, Input2 as Input, Link, ListItem, ListItemContent, ListItemLeftSide, ListItemRightSide, LoadingDots, LowRiskBadge, MediumRiskBadge, Navbar, PercentageButton, PrimaryButton, ProgressIndicator, ScrollableContent, SearchEmptyState, SearchInput, SecondaryButton, SectionCard, Select, SelectContent, SelectItem, SelectTrigger, Skeleton, StepDisplay, StepStatusIcon, StepStatusText, StrategyDetailsView, SummaryDetails, SummaryDetailsCryptoControlV2, SwapAdvancedSettingsView, SwapAmountInputView, SwapCrossChainProcessingView, SwapFormView, SwapFromCardView, SwapNetworkSelectorView, SwapOutputAmountView, SwapProcessingView, SwapQuoteBlockchainCostsView, SwapQuoteDetailsView, SwapQuoteErrorsView, SwapQuoteHeaderView, SwapSignatureWarningView, SwapSlippageToleranceButtonsView, SwapSuccessView, SwapToCardView, SwapTokenSelectorView, SwapTransactionFailedView, Tabs, TabsContent, TabsList, TabsTrigger, TertiaryButton, Text_default as Text, TextAccent, TextBody, TextHeading, Title, TokenWithChainBadge, TransactionProcessingDetails, TransactionScreen, TransactionScreenIcon, TransactionScreenInvestmentCard, WalletItem, ConnectWalletList as WalletList, WalletListContainer, cryptocontrolThemeColors, darkThemeColors, defaultThemeColors, themeToCSS };
7715
4167
  //# sourceMappingURL=index.mjs.map
7716
4168
  //# sourceMappingURL=index.mjs.map