maquinaweb-ui 2.67.0 → 2.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.js +3 -5
- package/dist/actions.js.map +1 -1
- package/dist/container-animation/container-animation.d.ts +2 -2
- package/dist/container-animation/container-animation.d.ts.map +1 -1
- package/dist/date-field/DateField.d.ts +2 -2
- package/dist/date-hour-field/DateHourField.d.ts +2 -2
- package/dist/input-suggest/input-suggest.d.ts +2 -2
- package/dist/landing-text/client-landing-text.js +2 -3
- package/dist/landing-text/client-landing-text.js.map +1 -1
- package/dist/landing-text/landing-content.d.ts.map +1 -1
- package/dist/landing-text/landing-content.js +4 -1
- package/dist/landing-text/landing-content.js.map +1 -1
- package/dist/landing-text/landing-text.d.ts +2 -2
- package/dist/landing-text/server-landing-text.d.ts +2 -2
- package/dist/landing-text/server-landing-text.d.ts.map +1 -1
- package/dist/page-header/page-header.d.ts +2 -2
- package/dist/remote-selector/remote-selector.d.ts +3 -3
- package/dist/text-field/TextField.d.ts +5 -5
- package/dist/toggle-field/ToggleGroup.d.ts +2 -2
- package/package.json +1 -1
- package/dist/_virtual/rolldown_runtime.js +0 -31
- package/dist/node_modules/next/cache.js +0 -79
- package/dist/node_modules/next/cache.js.map +0 -1
- package/dist/node_modules/next/dist/build/output/log.js +0 -119
- package/dist/node_modules/next/dist/build/output/log.js.map +0 -1
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -119
- package/dist/node_modules/next/dist/client/components/app-router-headers.js.map +0 -1
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -41
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js.map +0 -1
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -41
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js.map +0 -1
- package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -312
- package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +0 -1
- package/dist/node_modules/next/dist/compiled/@opentelemetry/api/index.js +0 -1286
- package/dist/node_modules/next/dist/compiled/@opentelemetry/api/index.js.map +0 -1
- package/dist/node_modules/next/dist/lib/batcher.js +0 -63
- package/dist/node_modules/next/dist/lib/batcher.js.map +0 -1
- package/dist/node_modules/next/dist/lib/constants.js +0 -325
- package/dist/node_modules/next/dist/lib/constants.js.map +0 -1
- package/dist/node_modules/next/dist/lib/detached-promise.js +0 -30
- package/dist/node_modules/next/dist/lib/detached-promise.js.map +0 -1
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -36
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js.map +0 -1
- package/dist/node_modules/next/dist/lib/picocolors.js +0 -141
- package/dist/node_modules/next/dist/lib/picocolors.js.map +0 -1
- package/dist/node_modules/next/dist/lib/scheduler.js +0 -49
- package/dist/node_modules/next/dist/lib/scheduler.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -67
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -763
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +0 -19
- package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/staged-rendering.js +0 -215
- package/dist/node_modules/next/dist/server/app-render/staged-rendering.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -20
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -20
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -20
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -214
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +0 -1
- package/dist/node_modules/next/dist/server/base-http/helpers.js +0 -36
- package/dist/node_modules/next/dist/server/base-http/helpers.js.map +0 -1
- package/dist/node_modules/next/dist/server/client-component-renderer-logger.js +0 -65
- package/dist/node_modules/next/dist/server/client-component-renderer-logger.js.map +0 -1
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -85
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/clone-response.js +0 -55
- package/dist/node_modules/next/dist/server/lib/clone-response.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/dedupe-fetch.js +0 -106
- package/dist/node_modules/next/dist/server/lib/dedupe-fetch.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/lru-cache.js +0 -179
- package/dist/node_modules/next/dist/server/lib/lru-cache.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/patch-fetch.js +0 -703
- package/dist/node_modules/next/dist/server/lib/patch-fetch.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/trace/constants.js +0 -186
- package/dist/node_modules/next/dist/server/lib/trace/constants.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/trace/tracer.js +0 -229
- package/dist/node_modules/next/dist/server/lib/trace/tracer.js.map +0 -1
- package/dist/node_modules/next/dist/server/pipe-readable.js +0 -112
- package/dist/node_modules/next/dist/server/pipe-readable.js.map +0 -1
- package/dist/node_modules/next/dist/server/render-result.js +0 -156
- package/dist/node_modules/next/dist/server/render-result.js.map +0 -1
- package/dist/node_modules/next/dist/server/request-meta.js +0 -54
- package/dist/node_modules/next/dist/server/request-meta.js.map +0 -1
- package/dist/node_modules/next/dist/server/response-cache/index.js +0 -255
- package/dist/node_modules/next/dist/server/response-cache/index.js.map +0 -1
- package/dist/node_modules/next/dist/server/response-cache/types.js +0 -43
- package/dist/node_modules/next/dist/server/response-cache/types.js.map +0 -1
- package/dist/node_modules/next/dist/server/response-cache/utils.js +0 -100
- package/dist/node_modules/next/dist/server/response-cache/utils.js.map +0 -1
- package/dist/node_modules/next/dist/server/route-kind.js +0 -38
- package/dist/node_modules/next/dist/server/route-kind.js.map +0 -1
- package/dist/node_modules/next/dist/server/stream-utils/encoded-tags.js +0 -115
- package/dist/node_modules/next/dist/server/stream-utils/encoded-tags.js.map +0 -1
- package/dist/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +0 -635
- package/dist/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js.map +0 -1
- package/dist/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +0 -58
- package/dist/node_modules/next/dist/server/stream-utils/uint8array-helpers.js.map +0 -1
- package/dist/node_modules/next/dist/server/use-cache/cache-life.js +0 -140
- package/dist/node_modules/next/dist/server/use-cache/cache-life.js.map +0 -1
- package/dist/node_modules/next/dist/server/use-cache/cache-tag.js +0 -52
- package/dist/node_modules/next/dist/server/use-cache/cache-tag.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/error.js +0 -55
- package/dist/node_modules/next/dist/server/web/error.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/next-url.js +0 -203
- package/dist/node_modules/next/dist/server/web/next-url.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +0 -103
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -31
- package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/request.js +0 -98
- package/dist/node_modules/next/dist/server/web/spec-extension/request.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/revalidate.js +0 -162
- package/dist/node_modules/next/dist/server/web/spec-extension/revalidate.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +0 -187
- package/dist/node_modules/next/dist/server/web/spec-extension/unstable-cache.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +0 -49
- package/dist/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/utils.js +0 -113
- package/dist/node_modules/next/dist/server/web/utils.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/errors/constants.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/errors/constants.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/get-hostname.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/get-hostname.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/hash.js +0 -37
- package/dist/node_modules/next/dist/shared/lib/hash.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -23
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/is-thenable.js +0 -21
- package/dist/node_modules/next/dist/shared/lib/is-thenable.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -21
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +0 -29
- package/dist/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -93
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -26
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -21
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -168
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -85
- package/dist/node_modules/next/dist/shared/lib/segment.js.map +0 -1
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_remove_trailing_slash } from "./remove-trailing-slash.js";
|
|
3
|
-
import { require_add_path_prefix } from "./add-path-prefix.js";
|
|
4
|
-
import { require_add_path_suffix } from "./add-path-suffix.js";
|
|
5
|
-
import { require_add_locale } from "./add-locale.js";
|
|
6
|
-
|
|
7
|
-
//#region node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js
|
|
8
|
-
var require_format_next_pathname_info = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js": ((exports) => {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
Object.defineProperty(exports, "formatNextPathnameInfo", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function() {
|
|
13
|
-
return formatNextPathnameInfo;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
const _removetrailingslash = require_remove_trailing_slash();
|
|
17
|
-
const _addpathprefix = require_add_path_prefix();
|
|
18
|
-
const _addpathsuffix = require_add_path_suffix();
|
|
19
|
-
const _addlocale = require_add_locale();
|
|
20
|
-
function formatNextPathnameInfo(info) {
|
|
21
|
-
let pathname = (0, _addlocale.addLocale)(info.pathname, info.locale, info.buildId ? void 0 : info.defaultLocale, info.ignorePrefix);
|
|
22
|
-
if (info.buildId || !info.trailingSlash) pathname = (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
|
23
|
-
if (info.buildId) pathname = (0, _addpathsuffix.addPathSuffix)((0, _addpathprefix.addPathPrefix)(pathname, `/_next/data/${info.buildId}`), info.pathname === "/" ? "index.json" : ".json");
|
|
24
|
-
pathname = (0, _addpathprefix.addPathPrefix)(pathname, info.basePath);
|
|
25
|
-
return !info.buildId && info.trailingSlash ? !pathname.endsWith("/") ? (0, _addpathsuffix.addPathSuffix)(pathname, "/") : pathname : (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
|
26
|
-
}
|
|
27
|
-
}) });
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export default require_format_next_pathname_info();
|
|
31
|
-
|
|
32
|
-
export { require_format_next_pathname_info };
|
|
33
|
-
//# sourceMappingURL=format-next-pathname-info.js.map
|
package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-next-pathname-info.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"formatNextPathnameInfo\", {\n enumerable: true,\n get: function() {\n return formatNextPathnameInfo;\n }\n});\nconst _removetrailingslash = require(\"./remove-trailing-slash\");\nconst _addpathprefix = require(\"./add-path-prefix\");\nconst _addpathsuffix = require(\"./add-path-suffix\");\nconst _addlocale = require(\"./add-locale\");\nfunction formatNextPathnameInfo(info) {\n let pathname = (0, _addlocale.addLocale)(info.pathname, info.locale, info.buildId ? undefined : info.defaultLocale, info.ignorePrefix);\n if (info.buildId || !info.trailingSlash) {\n pathname = (0, _removetrailingslash.removeTrailingSlash)(pathname);\n }\n if (info.buildId) {\n pathname = (0, _addpathsuffix.addPathSuffix)((0, _addpathprefix.addPathPrefix)(pathname, `/_next/data/${info.buildId}`), info.pathname === '/' ? 'index.json' : '.json');\n }\n pathname = (0, _addpathprefix.addPathPrefix)(pathname, info.basePath);\n return !info.buildId && info.trailingSlash ? !pathname.endsWith('/') ? (0, _addpathsuffix.addPathSuffix)(pathname, '/') : pathname : (0, _removetrailingslash.removeTrailingSlash)(pathname);\n}\n\n//# sourceMappingURL=format-next-pathname-info.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;AACF,QAAO,eAAe,SAAS,0BAA0B;EACrD,YAAY;EACZ,KAAK,WAAW;AACZ,UAAO;;EAEd,CAAC;CACF,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,SAAS,uBAAuB,MAAM;EAClC,IAAI,YAAY,GAAG,WAAW,WAAW,KAAK,UAAU,KAAK,QAAQ,KAAK,UAAU,SAAY,KAAK,eAAe,KAAK,aAAa;AACtI,MAAI,KAAK,WAAW,CAAC,KAAK,cACtB,aAAY,GAAG,qBAAqB,qBAAqB,SAAS;AAEtE,MAAI,KAAK,QACL,aAAY,GAAG,eAAe,gBAAgB,GAAG,eAAe,eAAe,UAAU,eAAe,KAAK,UAAU,EAAE,KAAK,aAAa,MAAM,eAAe,QAAQ;AAE5K,cAAY,GAAG,eAAe,eAAe,UAAU,KAAK,SAAS;AACrE,SAAO,CAAC,KAAK,WAAW,KAAK,gBAAgB,CAAC,SAAS,SAAS,IAAI,IAAI,GAAG,eAAe,eAAe,UAAU,IAAI,GAAG,YAAY,GAAG,qBAAqB,qBAAqB,SAAS"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_path_has_prefix } from "./path-has-prefix.js";
|
|
3
|
-
import { require_normalize_locale_path } from "../../i18n/normalize-locale-path.js";
|
|
4
|
-
import { require_remove_path_prefix } from "./remove-path-prefix.js";
|
|
5
|
-
|
|
6
|
-
//#region node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js
|
|
7
|
-
var require_get_next_pathname_info = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js": ((exports) => {
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
Object.defineProperty(exports, "getNextPathnameInfo", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return getNextPathnameInfo;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const _normalizelocalepath = require_normalize_locale_path();
|
|
16
|
-
const _removepathprefix = require_remove_path_prefix();
|
|
17
|
-
const _pathhasprefix = require_path_has_prefix();
|
|
18
|
-
function getNextPathnameInfo(pathname, options) {
|
|
19
|
-
const { basePath, i18n, trailingSlash } = options.nextConfig ?? {};
|
|
20
|
-
const info = {
|
|
21
|
-
pathname,
|
|
22
|
-
trailingSlash: pathname !== "/" ? pathname.endsWith("/") : trailingSlash
|
|
23
|
-
};
|
|
24
|
-
if (basePath && (0, _pathhasprefix.pathHasPrefix)(info.pathname, basePath)) {
|
|
25
|
-
info.pathname = (0, _removepathprefix.removePathPrefix)(info.pathname, basePath);
|
|
26
|
-
info.basePath = basePath;
|
|
27
|
-
}
|
|
28
|
-
let pathnameNoDataPrefix = info.pathname;
|
|
29
|
-
if (info.pathname.startsWith("/_next/data/") && info.pathname.endsWith(".json")) {
|
|
30
|
-
const paths = info.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/");
|
|
31
|
-
info.buildId = paths[0];
|
|
32
|
-
pathnameNoDataPrefix = paths[1] !== "index" ? `/${paths.slice(1).join("/")}` : "/";
|
|
33
|
-
if (options.parseData === true) info.pathname = pathnameNoDataPrefix;
|
|
34
|
-
}
|
|
35
|
-
if (i18n) {
|
|
36
|
-
let result = options.i18nProvider ? options.i18nProvider.analyze(info.pathname) : (0, _normalizelocalepath.normalizeLocalePath)(info.pathname, i18n.locales);
|
|
37
|
-
info.locale = result.detectedLocale;
|
|
38
|
-
info.pathname = result.pathname ?? info.pathname;
|
|
39
|
-
if (!result.detectedLocale && info.buildId) {
|
|
40
|
-
result = options.i18nProvider ? options.i18nProvider.analyze(pathnameNoDataPrefix) : (0, _normalizelocalepath.normalizeLocalePath)(pathnameNoDataPrefix, i18n.locales);
|
|
41
|
-
if (result.detectedLocale) info.locale = result.detectedLocale;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return info;
|
|
45
|
-
}
|
|
46
|
-
}) });
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
export default require_get_next_pathname_info();
|
|
50
|
-
|
|
51
|
-
export { require_get_next_pathname_info };
|
|
52
|
-
//# sourceMappingURL=get-next-pathname-info.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-next-pathname-info.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"getNextPathnameInfo\", {\n enumerable: true,\n get: function() {\n return getNextPathnameInfo;\n }\n});\nconst _normalizelocalepath = require(\"../../i18n/normalize-locale-path\");\nconst _removepathprefix = require(\"./remove-path-prefix\");\nconst _pathhasprefix = require(\"./path-has-prefix\");\nfunction getNextPathnameInfo(pathname, options) {\n const { basePath, i18n, trailingSlash } = options.nextConfig ?? {};\n const info = {\n pathname,\n trailingSlash: pathname !== '/' ? pathname.endsWith('/') : trailingSlash\n };\n if (basePath && (0, _pathhasprefix.pathHasPrefix)(info.pathname, basePath)) {\n info.pathname = (0, _removepathprefix.removePathPrefix)(info.pathname, basePath);\n info.basePath = basePath;\n }\n let pathnameNoDataPrefix = info.pathname;\n if (info.pathname.startsWith('/_next/data/') && info.pathname.endsWith('.json')) {\n const paths = info.pathname.replace(/^\\/_next\\/data\\//, '').replace(/\\.json$/, '').split('/');\n const buildId = paths[0];\n info.buildId = buildId;\n pathnameNoDataPrefix = paths[1] !== 'index' ? `/${paths.slice(1).join('/')}` : '/';\n // update pathname with normalized if enabled although\n // we use normalized to populate locale info still\n if (options.parseData === true) {\n info.pathname = pathnameNoDataPrefix;\n }\n }\n // If provided, use the locale route normalizer to detect the locale instead\n // of the function below.\n if (i18n) {\n let result = options.i18nProvider ? options.i18nProvider.analyze(info.pathname) : (0, _normalizelocalepath.normalizeLocalePath)(info.pathname, i18n.locales);\n info.locale = result.detectedLocale;\n info.pathname = result.pathname ?? info.pathname;\n if (!result.detectedLocale && info.buildId) {\n result = options.i18nProvider ? options.i18nProvider.analyze(pathnameNoDataPrefix) : (0, _normalizelocalepath.normalizeLocalePath)(pathnameNoDataPrefix, i18n.locales);\n if (result.detectedLocale) {\n info.locale = result.detectedLocale;\n }\n }\n }\n return info;\n}\n\n//# sourceMappingURL=get-next-pathname-info.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;AACF,QAAO,eAAe,SAAS,uBAAuB;EAClD,YAAY;EACZ,KAAK,WAAW;AACZ,UAAO;;EAEd,CAAC;CACF,MAAM;CACN,MAAM;CACN,MAAM;CACN,SAAS,oBAAoB,UAAU,SAAS;EAC5C,MAAM,EAAE,UAAU,MAAM,kBAAkB,QAAQ,cAAc,EAAE;EAClE,MAAM,OAAO;GACT;GACA,eAAe,aAAa,MAAM,SAAS,SAAS,IAAI,GAAG;GAC9D;AACD,MAAI,aAAa,GAAG,eAAe,eAAe,KAAK,UAAU,SAAS,EAAE;AACxE,QAAK,YAAY,GAAG,kBAAkB,kBAAkB,KAAK,UAAU,SAAS;AAChF,QAAK,WAAW;;EAEpB,IAAI,uBAAuB,KAAK;AAChC,MAAI,KAAK,SAAS,WAAW,eAAe,IAAI,KAAK,SAAS,SAAS,QAAQ,EAAE;GAC7E,MAAM,QAAQ,KAAK,SAAS,QAAQ,oBAAoB,GAAG,CAAC,QAAQ,WAAW,GAAG,CAAC,MAAM,IAAI;AAE7F,QAAK,UADW,MAAM;AAEtB,0BAAuB,MAAM,OAAO,UAAU,IAAI,MAAM,MAAM,EAAE,CAAC,KAAK,IAAI,KAAK;AAG/E,OAAI,QAAQ,cAAc,KACtB,MAAK,WAAW;;AAKxB,MAAI,MAAM;GACN,IAAI,SAAS,QAAQ,eAAe,QAAQ,aAAa,QAAQ,KAAK,SAAS,IAAI,GAAG,qBAAqB,qBAAqB,KAAK,UAAU,KAAK,QAAQ;AAC5J,QAAK,SAAS,OAAO;AACrB,QAAK,WAAW,OAAO,YAAY,KAAK;AACxC,OAAI,CAAC,OAAO,kBAAkB,KAAK,SAAS;AACxC,aAAS,QAAQ,eAAe,QAAQ,aAAa,QAAQ,qBAAqB,IAAI,GAAG,qBAAqB,qBAAqB,sBAAsB,KAAK,QAAQ;AACtK,QAAI,OAAO,eACP,MAAK,SAAS,OAAO;;;AAIjC,SAAO"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_sorted_routes } from "./sorted-routes.js";
|
|
3
|
-
import { require_is_dynamic } from "./is-dynamic.js";
|
|
4
|
-
|
|
5
|
-
//#region node_modules/next/dist/shared/lib/router/utils/index.js
|
|
6
|
-
var require_utils = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/index.js": ((exports) => {
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
function _export(target, all) {
|
|
9
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: all[name]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
_export(exports, {
|
|
15
|
-
getSortedRouteObjects: function() {
|
|
16
|
-
return _sortedroutes.getSortedRouteObjects;
|
|
17
|
-
},
|
|
18
|
-
getSortedRoutes: function() {
|
|
19
|
-
return _sortedroutes.getSortedRoutes;
|
|
20
|
-
},
|
|
21
|
-
isDynamicRoute: function() {
|
|
22
|
-
return _isdynamic.isDynamicRoute;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
const _sortedroutes = require_sorted_routes();
|
|
26
|
-
const _isdynamic = require_is_dynamic();
|
|
27
|
-
}) });
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export default require_utils();
|
|
31
|
-
|
|
32
|
-
export { require_utils };
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n getSortedRouteObjects: null,\n getSortedRoutes: null,\n isDynamicRoute: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n getSortedRouteObjects: function() {\n return _sortedroutes.getSortedRouteObjects;\n },\n getSortedRoutes: function() {\n return _sortedroutes.getSortedRoutes;\n },\n isDynamicRoute: function() {\n return _isdynamic.isDynamicRoute;\n }\n});\nconst _sortedroutes = require(\"./sorted-routes\");\nconst _isdynamic = require(\"./is-dynamic\");\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;CAMF,SAAS,QAAQ,QAAQ,KAAK;AAC1B,OAAI,IAAI,QAAQ,IAAI,QAAO,eAAe,QAAQ,MAAM;GACpD,YAAY;GACZ,KAAK,IAAI;GACZ,CAAC;;AAEN,SAAQ,SAAS;EACb,uBAAuB,WAAW;AAC9B,UAAO,cAAc;;EAEzB,iBAAiB,WAAW;AACxB,UAAO,cAAc;;EAEzB,gBAAgB,WAAW;AACvB,UAAO,WAAW;;EAEzB,CAAC;CACF,MAAM;CACN,MAAM"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_app_paths } from "./app-paths.js";
|
|
3
|
-
|
|
4
|
-
//#region node_modules/next/dist/shared/lib/router/utils/interception-routes.js
|
|
5
|
-
var require_interception_routes = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/interception-routes.js": ((exports) => {
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
function _export(target, all) {
|
|
8
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: all[name]
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
_export(exports, {
|
|
14
|
-
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
15
|
-
return INTERCEPTION_ROUTE_MARKERS;
|
|
16
|
-
},
|
|
17
|
-
extractInterceptionRouteInformation: function() {
|
|
18
|
-
return extractInterceptionRouteInformation;
|
|
19
|
-
},
|
|
20
|
-
isInterceptionRouteAppPath: function() {
|
|
21
|
-
return isInterceptionRouteAppPath;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const _apppaths = require_app_paths();
|
|
25
|
-
const INTERCEPTION_ROUTE_MARKERS = [
|
|
26
|
-
"(..)(..)",
|
|
27
|
-
"(.)",
|
|
28
|
-
"(..)",
|
|
29
|
-
"(...)"
|
|
30
|
-
];
|
|
31
|
-
function isInterceptionRouteAppPath(path) {
|
|
32
|
-
return path.split("/").find((segment) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m))) !== void 0;
|
|
33
|
-
}
|
|
34
|
-
function extractInterceptionRouteInformation(path) {
|
|
35
|
-
let interceptingRoute;
|
|
36
|
-
let marker;
|
|
37
|
-
let interceptedRoute;
|
|
38
|
-
for (const segment of path.split("/")) {
|
|
39
|
-
marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
|
|
40
|
-
if (marker) {
|
|
41
|
-
[interceptingRoute, interceptedRoute] = path.split(marker, 2);
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (!interceptingRoute || !marker || !interceptedRoute) throw Object.defineProperty(/* @__PURE__ */ new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
|
|
46
|
-
value: "E269",
|
|
47
|
-
enumerable: false,
|
|
48
|
-
configurable: true
|
|
49
|
-
});
|
|
50
|
-
interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute);
|
|
51
|
-
switch (marker) {
|
|
52
|
-
case "(.)":
|
|
53
|
-
if (interceptingRoute === "/") interceptedRoute = `/${interceptedRoute}`;
|
|
54
|
-
else interceptedRoute = interceptingRoute + "/" + interceptedRoute;
|
|
55
|
-
break;
|
|
56
|
-
case "(..)":
|
|
57
|
-
if (interceptingRoute === "/") throw Object.defineProperty(/* @__PURE__ */ new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
|
|
58
|
-
value: "E207",
|
|
59
|
-
enumerable: false,
|
|
60
|
-
configurable: true
|
|
61
|
-
});
|
|
62
|
-
interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
|
|
63
|
-
break;
|
|
64
|
-
case "(...)":
|
|
65
|
-
interceptedRoute = "/" + interceptedRoute;
|
|
66
|
-
break;
|
|
67
|
-
case "(..)(..)":
|
|
68
|
-
const splitInterceptingRoute = interceptingRoute.split("/");
|
|
69
|
-
if (splitInterceptingRoute.length <= 2) throw Object.defineProperty(/* @__PURE__ */ new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
|
|
70
|
-
value: "E486",
|
|
71
|
-
enumerable: false,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
|
|
75
|
-
break;
|
|
76
|
-
default: throw Object.defineProperty(/* @__PURE__ */ new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
|
|
77
|
-
value: "E112",
|
|
78
|
-
enumerable: false,
|
|
79
|
-
configurable: true
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
interceptingRoute,
|
|
84
|
-
interceptedRoute
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
}) });
|
|
88
|
-
|
|
89
|
-
//#endregion
|
|
90
|
-
export default require_interception_routes();
|
|
91
|
-
|
|
92
|
-
export { require_interception_routes };
|
|
93
|
-
//# sourceMappingURL=interception-routes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interception-routes.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n INTERCEPTION_ROUTE_MARKERS: null,\n extractInterceptionRouteInformation: null,\n isInterceptionRouteAppPath: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n INTERCEPTION_ROUTE_MARKERS: function() {\n return INTERCEPTION_ROUTE_MARKERS;\n },\n extractInterceptionRouteInformation: function() {\n return extractInterceptionRouteInformation;\n },\n isInterceptionRouteAppPath: function() {\n return isInterceptionRouteAppPath;\n }\n});\nconst _apppaths = require(\"./app-paths\");\nconst INTERCEPTION_ROUTE_MARKERS = [\n '(..)(..)',\n '(.)',\n '(..)',\n '(...)'\n];\nfunction isInterceptionRouteAppPath(path) {\n // TODO-APP: add more serious validation\n return path.split('/').find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined;\n}\nfunction extractInterceptionRouteInformation(path) {\n let interceptingRoute;\n let marker;\n let interceptedRoute;\n for (const segment of path.split('/')){\n marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));\n if (marker) {\n ;\n [interceptingRoute, interceptedRoute] = path.split(marker, 2);\n break;\n }\n }\n if (!interceptingRoute || !marker || !interceptedRoute) {\n throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), \"__NEXT_ERROR_CODE\", {\n value: \"E269\",\n enumerable: false,\n configurable: true\n });\n }\n interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute) // normalize the path, e.g. /(blog)/feed -> /feed\n ;\n switch(marker){\n case '(.)':\n // (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route\n if (interceptingRoute === '/') {\n interceptedRoute = `/${interceptedRoute}`;\n } else {\n interceptedRoute = interceptingRoute + '/' + interceptedRoute;\n }\n break;\n case '(..)':\n // (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route\n if (interceptingRoute === '/') {\n throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), \"__NEXT_ERROR_CODE\", {\n value: \"E207\",\n enumerable: false,\n configurable: true\n });\n }\n interceptedRoute = interceptingRoute.split('/').slice(0, -1).concat(interceptedRoute).join('/');\n break;\n case '(...)':\n // (...) will match the route segment in the root directory, so we need to use the root directory to prepend the intercepted route\n interceptedRoute = '/' + interceptedRoute;\n break;\n case '(..)(..)':\n // (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route\n const splitInterceptingRoute = interceptingRoute.split('/');\n if (splitInterceptingRoute.length <= 2) {\n throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), \"__NEXT_ERROR_CODE\", {\n value: \"E486\",\n enumerable: false,\n configurable: true\n });\n }\n interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join('/');\n break;\n default:\n throw Object.defineProperty(new Error('Invariant: unexpected marker'), \"__NEXT_ERROR_CODE\", {\n value: \"E112\",\n enumerable: false,\n configurable: true\n });\n }\n return {\n interceptingRoute,\n interceptedRoute\n };\n}\n\n//# sourceMappingURL=interception-routes.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;CAMF,SAAS,QAAQ,QAAQ,KAAK;AAC1B,OAAI,IAAI,QAAQ,IAAI,QAAO,eAAe,QAAQ,MAAM;GACpD,YAAY;GACZ,KAAK,IAAI;GACZ,CAAC;;AAEN,SAAQ,SAAS;EACb,4BAA4B,WAAW;AACnC,UAAO;;EAEX,qCAAqC,WAAW;AAC5C,UAAO;;EAEX,4BAA4B,WAAW;AACnC,UAAO;;EAEd,CAAC;CACF,MAAM;CACN,MAAM,6BAA6B;EAC/B;EACA;EACA;EACA;EACH;CACD,SAAS,2BAA2B,MAAM;AAEtC,SAAO,KAAK,MAAM,IAAI,CAAC,MAAM,YAAU,2BAA2B,MAAM,MAAI,QAAQ,WAAW,EAAE,CAAC,CAAC,KAAK;;CAE5G,SAAS,oCAAoC,MAAM;EAC/C,IAAI;EACJ,IAAI;EACJ,IAAI;AACJ,OAAK,MAAM,WAAW,KAAK,MAAM,IAAI,EAAC;AAClC,YAAS,2BAA2B,MAAM,MAAI,QAAQ,WAAW,EAAE,CAAC;AACpE,OAAI,QAAQ;AAER,KAAC,mBAAmB,oBAAoB,KAAK,MAAM,QAAQ,EAAE;AAC7D;;;AAGR,MAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAClC,OAAM,OAAO,+BAAe,IAAI,MAAM,+BAA+B,KAAK,mFAAmF,EAAE,qBAAqB;GAChL,OAAO;GACP,YAAY;GACZ,cAAc;GACjB,CAAC;AAEN,uBAAqB,GAAG,UAAU,kBAAkB,kBAAkB;AAEtE,UAAO,QAAP;GACI,KAAK;AAED,QAAI,sBAAsB,IACtB,oBAAmB,IAAI;QAEvB,oBAAmB,oBAAoB,MAAM;AAEjD;GACJ,KAAK;AAED,QAAI,sBAAsB,IACtB,OAAM,OAAO,+BAAe,IAAI,MAAM,+BAA+B,KAAK,8DAA8D,EAAE,qBAAqB;KAC3J,OAAO;KACP,YAAY;KACZ,cAAc;KACjB,CAAC;AAEN,uBAAmB,kBAAkB,MAAM,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,OAAO,iBAAiB,CAAC,KAAK,IAAI;AAC/F;GACJ,KAAK;AAED,uBAAmB,MAAM;AACzB;GACJ,KAAK;IAED,MAAM,yBAAyB,kBAAkB,MAAM,IAAI;AAC3D,QAAI,uBAAuB,UAAU,EACjC,OAAM,OAAO,+BAAe,IAAI,MAAM,+BAA+B,KAAK,iEAAiE,EAAE,qBAAqB;KAC9J,OAAO;KACP,YAAY;KACZ,cAAc;KACjB,CAAC;AAEN,uBAAmB,uBAAuB,MAAM,GAAG,GAAG,CAAC,OAAO,iBAAiB,CAAC,KAAK,IAAI;AACzF;GACJ,QACI,OAAM,OAAO,+BAAe,IAAI,MAAM,+BAA+B,EAAE,qBAAqB;IACxF,OAAO;IACP,YAAY;IACZ,cAAc;IACjB,CAAC;;AAEV,SAAO;GACH;GACA;GACH"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_interception_routes } from "./interception-routes.js";
|
|
3
|
-
|
|
4
|
-
//#region node_modules/next/dist/shared/lib/router/utils/is-dynamic.js
|
|
5
|
-
var require_is_dynamic = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/is-dynamic.js": ((exports) => {
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
Object.defineProperty(exports, "isDynamicRoute", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function() {
|
|
10
|
-
return isDynamicRoute;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const _interceptionroutes = require_interception_routes();
|
|
14
|
-
const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
|
|
15
|
-
const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
|
|
16
|
-
function isDynamicRoute(route, strict = true) {
|
|
17
|
-
if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
|
|
18
|
-
if (strict) return TEST_STRICT_ROUTE.test(route);
|
|
19
|
-
return TEST_ROUTE.test(route);
|
|
20
|
-
}
|
|
21
|
-
}) });
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export default require_is_dynamic();
|
|
25
|
-
|
|
26
|
-
export { require_is_dynamic };
|
|
27
|
-
//# sourceMappingURL=is-dynamic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-dynamic.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"isDynamicRoute\", {\n enumerable: true,\n get: function() {\n return isDynamicRoute;\n }\n});\nconst _interceptionroutes = require(\"./interception-routes\");\n// Identify /.*[param].*/ in route string\nconst TEST_ROUTE = /\\/[^/]*\\[[^/]+\\][^/]*(?=\\/|$)/;\n// Identify /[param]/ in route string\nconst TEST_STRICT_ROUTE = /\\/\\[[^/]+\\](?=\\/|$)/;\nfunction isDynamicRoute(route, strict = true) {\n if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {\n route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;\n }\n if (strict) {\n return TEST_STRICT_ROUTE.test(route);\n }\n return TEST_ROUTE.test(route);\n}\n\n//# sourceMappingURL=is-dynamic.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;AACF,QAAO,eAAe,SAAS,kBAAkB;EAC7C,YAAY;EACZ,KAAK,WAAW;AACZ,UAAO;;EAEd,CAAC;CACF,MAAM;CAEN,MAAM,aAAa;CAEnB,MAAM,oBAAoB;CAC1B,SAAS,eAAe,OAAO,SAAS,MAAM;AAC1C,OAAK,GAAG,oBAAoB,4BAA4B,MAAM,CAC1D,UAAS,GAAG,oBAAoB,qCAAqC,MAAM,CAAC;AAEhF,MAAI,OACA,QAAO,kBAAkB,KAAK,MAAM;AAExC,SAAO,WAAW,KAAK,MAAM"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/next/dist/shared/lib/router/utils/parse-path.js
|
|
4
|
-
var require_parse_path = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/parse-path.js": ((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
Object.defineProperty(exports, "parsePath", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function() {
|
|
9
|
-
return parsePath;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
function parsePath(path) {
|
|
13
|
-
const hashIndex = path.indexOf("#");
|
|
14
|
-
const queryIndex = path.indexOf("?");
|
|
15
|
-
const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
16
|
-
if (hasQuery || hashIndex > -1) return {
|
|
17
|
-
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
18
|
-
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
|
|
19
|
-
hash: hashIndex > -1 ? path.slice(hashIndex) : ""
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
pathname: path,
|
|
23
|
-
query: "",
|
|
24
|
-
hash: ""
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}) });
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export default require_parse_path();
|
|
31
|
-
|
|
32
|
-
export { require_parse_path };
|
|
33
|
-
//# sourceMappingURL=parse-path.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-path.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/parse-path.js"],"sourcesContent":["/**\n * Given a path this function will find the pathname, query and hash and return\n * them. This is useful to parse full paths on the client side.\n * @param path A path to parse e.g. /foo/bar?id=1#hash\n */ \"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"parsePath\", {\n enumerable: true,\n get: function() {\n return parsePath;\n }\n});\nfunction parsePath(path) {\n const hashIndex = path.indexOf('#');\n const queryIndex = path.indexOf('?');\n const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);\n if (hasQuery || hashIndex > -1) {\n return {\n pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),\n query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : undefined) : '',\n hash: hashIndex > -1 ? path.slice(hashIndex) : ''\n };\n }\n return {\n pathname: path,\n query: '',\n hash: ''\n };\n}\n\n//# sourceMappingURL=parse-path.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAKA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;AACF,QAAO,eAAe,SAAS,aAAa;EACxC,YAAY;EACZ,KAAK,WAAW;AACZ,UAAO;;EAEd,CAAC;CACF,SAAS,UAAU,MAAM;EACrB,MAAM,YAAY,KAAK,QAAQ,IAAI;EACnC,MAAM,aAAa,KAAK,QAAQ,IAAI;EACpC,MAAM,WAAW,aAAa,OAAO,YAAY,KAAK,aAAa;AACnE,MAAI,YAAY,YAAY,GACxB,QAAO;GACH,UAAU,KAAK,UAAU,GAAG,WAAW,aAAa,UAAU;GAC9D,OAAO,WAAW,KAAK,UAAU,YAAY,YAAY,KAAK,YAAY,OAAU,GAAG;GACvF,MAAM,YAAY,KAAK,KAAK,MAAM,UAAU,GAAG;GAClD;AAEL,SAAO;GACH,UAAU;GACV,OAAO;GACP,MAAM;GACT"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_parse_path } from "./parse-path.js";
|
|
3
|
-
|
|
4
|
-
//#region node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
|
|
5
|
-
var require_path_has_prefix = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js": ((exports) => {
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
Object.defineProperty(exports, "pathHasPrefix", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function() {
|
|
10
|
-
return pathHasPrefix;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const _parsepath = require_parse_path();
|
|
14
|
-
function pathHasPrefix(path, prefix) {
|
|
15
|
-
if (typeof path !== "string") return false;
|
|
16
|
-
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
17
|
-
return pathname === prefix || pathname.startsWith(prefix + "/");
|
|
18
|
-
}
|
|
19
|
-
}) });
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export default require_path_has_prefix();
|
|
23
|
-
|
|
24
|
-
export { require_path_has_prefix };
|
|
25
|
-
//# sourceMappingURL=path-has-prefix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-has-prefix.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"pathHasPrefix\", {\n enumerable: true,\n get: function() {\n return pathHasPrefix;\n }\n});\nconst _parsepath = require(\"./parse-path\");\nfunction pathHasPrefix(path, prefix) {\n if (typeof path !== 'string') {\n return false;\n }\n const { pathname } = (0, _parsepath.parsePath)(path);\n return pathname === prefix || pathname.startsWith(prefix + '/');\n}\n\n//# sourceMappingURL=path-has-prefix.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;AACF,QAAO,eAAe,SAAS,iBAAiB;EAC5C,YAAY;EACZ,KAAK,WAAW;AACZ,UAAO;;EAEd,CAAC;CACF,MAAM;CACN,SAAS,cAAc,MAAM,QAAQ;AACjC,MAAI,OAAO,SAAS,SAChB,QAAO;EAEX,MAAM,EAAE,cAAc,GAAG,WAAW,WAAW,KAAK;AACpD,SAAO,aAAa,UAAU,SAAS,WAAW,SAAS,IAAI"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_path_has_prefix } from "./path-has-prefix.js";
|
|
3
|
-
|
|
4
|
-
//#region node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js
|
|
5
|
-
var require_remove_path_prefix = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js": ((exports) => {
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
Object.defineProperty(exports, "removePathPrefix", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function() {
|
|
10
|
-
return removePathPrefix;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const _pathhasprefix = require_path_has_prefix();
|
|
14
|
-
function removePathPrefix(path, prefix) {
|
|
15
|
-
if (!(0, _pathhasprefix.pathHasPrefix)(path, prefix)) return path;
|
|
16
|
-
const withoutPrefix = path.slice(prefix.length);
|
|
17
|
-
if (withoutPrefix.startsWith("/")) return withoutPrefix;
|
|
18
|
-
return `/${withoutPrefix}`;
|
|
19
|
-
}
|
|
20
|
-
}) });
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
export default require_remove_path_prefix();
|
|
24
|
-
|
|
25
|
-
export { require_remove_path_prefix };
|
|
26
|
-
//# sourceMappingURL=remove-path-prefix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-path-prefix.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"removePathPrefix\", {\n enumerable: true,\n get: function() {\n return removePathPrefix;\n }\n});\nconst _pathhasprefix = require(\"./path-has-prefix\");\nfunction removePathPrefix(path, prefix) {\n // If the path doesn't start with the prefix we can return it as is. This\n // protects us from situations where the prefix is a substring of the path\n // prefix such as:\n //\n // For prefix: /blog\n //\n // /blog -> true\n // /blog/ -> true\n // /blog/1 -> true\n // /blogging -> false\n // /blogging/ -> false\n // /blogging/1 -> false\n if (!(0, _pathhasprefix.pathHasPrefix)(path, prefix)) {\n return path;\n }\n // Remove the prefix from the path via slicing.\n const withoutPrefix = path.slice(prefix.length);\n // If the path without the prefix starts with a `/` we can return it as is.\n if (withoutPrefix.startsWith('/')) {\n return withoutPrefix;\n }\n // If the path without the prefix doesn't start with a `/` we need to add it\n // back to the path to make sure it's a valid path.\n return `/${withoutPrefix}`;\n}\n\n//# sourceMappingURL=remove-path-prefix.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;AACF,QAAO,eAAe,SAAS,oBAAoB;EAC/C,YAAY;EACZ,KAAK,WAAW;AACZ,UAAO;;EAEd,CAAC;CACF,MAAM;CACN,SAAS,iBAAiB,MAAM,QAAQ;AAapC,MAAI,EAAE,GAAG,eAAe,eAAe,MAAM,OAAO,CAChD,QAAO;EAGX,MAAM,gBAAgB,KAAK,MAAM,OAAO,OAAO;AAE/C,MAAI,cAAc,WAAW,IAAI,CAC7B,QAAO;AAIX,SAAO,IAAI"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
4
|
-
var require_remove_trailing_slash = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js": ((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function() {
|
|
9
|
-
return removeTrailingSlash;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
function removeTrailingSlash(route) {
|
|
13
|
-
return route.replace(/\/$/, "") || "/";
|
|
14
|
-
}
|
|
15
|
-
}) });
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export default require_remove_trailing_slash();
|
|
19
|
-
|
|
20
|
-
export { require_remove_trailing_slash };
|
|
21
|
-
//# sourceMappingURL=remove-trailing-slash.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-trailing-slash.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"],"sourcesContent":["/**\n * Removes the trailing slash for a given route or page path. Preserves the\n * root page. Examples:\n * - `/foo/bar/` -> `/foo/bar`\n * - `/foo/bar` -> `/foo/bar`\n * - `/` -> `/`\n */ \"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"removeTrailingSlash\", {\n enumerable: true,\n get: function() {\n return removeTrailingSlash;\n }\n});\nfunction removeTrailingSlash(route) {\n return route.replace(/\\/$/, '') || '/';\n}\n\n//# sourceMappingURL=remove-trailing-slash.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAOA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;AACF,QAAO,eAAe,SAAS,uBAAuB;EAClD,YAAY;EACZ,KAAK,WAAW;AACZ,UAAO;;EAEd,CAAC;CACF,SAAS,oBAAoB,OAAO;AAChC,SAAO,MAAM,QAAQ,OAAO,GAAG,IAAI"}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
|
|
4
|
-
var require_sorted_routes = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/shared/lib/router/utils/sorted-routes.js": ((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
function _export(target, all) {
|
|
7
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: all[name]
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
_export(exports, {
|
|
13
|
-
getSortedRouteObjects: function() {
|
|
14
|
-
return getSortedRouteObjects;
|
|
15
|
-
},
|
|
16
|
-
getSortedRoutes: function() {
|
|
17
|
-
return getSortedRoutes;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
var UrlNode = class UrlNode {
|
|
21
|
-
insert(urlPath) {
|
|
22
|
-
this._insert(urlPath.split("/").filter(Boolean), [], false);
|
|
23
|
-
}
|
|
24
|
-
smoosh() {
|
|
25
|
-
return this._smoosh();
|
|
26
|
-
}
|
|
27
|
-
_smoosh(prefix = "/") {
|
|
28
|
-
const childrenPaths = [...this.children.keys()].sort();
|
|
29
|
-
if (this.slugName !== null) childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
|
|
30
|
-
if (this.restSlugName !== null) childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
|
|
31
|
-
if (this.optionalRestSlugName !== null) childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
|
|
32
|
-
const routes = childrenPaths.map((c) => this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr) => [...prev, ...curr], []);
|
|
33
|
-
if (this.slugName !== null) routes.push(...this.children.get("[]")._smoosh(`${prefix}[${this.slugName}]/`));
|
|
34
|
-
if (!this.placeholder) {
|
|
35
|
-
const r = prefix === "/" ? "/" : prefix.slice(0, -1);
|
|
36
|
-
if (this.optionalRestSlugName != null) throw Object.defineProperty(/* @__PURE__ */ 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", {
|
|
37
|
-
value: "E458",
|
|
38
|
-
enumerable: false,
|
|
39
|
-
configurable: true
|
|
40
|
-
});
|
|
41
|
-
routes.unshift(r);
|
|
42
|
-
}
|
|
43
|
-
if (this.restSlugName !== null) routes.push(...this.children.get("[...]")._smoosh(`${prefix}[...${this.restSlugName}]/`));
|
|
44
|
-
if (this.optionalRestSlugName !== null) routes.push(...this.children.get("[[...]]")._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
|
|
45
|
-
return routes;
|
|
46
|
-
}
|
|
47
|
-
_insert(urlPaths, slugNames, isCatchAll) {
|
|
48
|
-
if (urlPaths.length === 0) {
|
|
49
|
-
this.placeholder = false;
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
if (isCatchAll) throw Object.defineProperty(/* @__PURE__ */ new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
|
|
53
|
-
value: "E392",
|
|
54
|
-
enumerable: false,
|
|
55
|
-
configurable: true
|
|
56
|
-
});
|
|
57
|
-
let nextSegment = urlPaths[0];
|
|
58
|
-
if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
|
|
59
|
-
let segmentName = nextSegment.slice(1, -1);
|
|
60
|
-
let isOptional = false;
|
|
61
|
-
if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
|
|
62
|
-
segmentName = segmentName.slice(1, -1);
|
|
63
|
-
isOptional = true;
|
|
64
|
-
}
|
|
65
|
-
if (segmentName.startsWith("…")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
|
|
66
|
-
value: "E147",
|
|
67
|
-
enumerable: false,
|
|
68
|
-
configurable: true
|
|
69
|
-
});
|
|
70
|
-
if (segmentName.startsWith("...")) {
|
|
71
|
-
segmentName = segmentName.substring(3);
|
|
72
|
-
isCatchAll = true;
|
|
73
|
-
}
|
|
74
|
-
if (segmentName.startsWith("[") || segmentName.endsWith("]")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
|
|
75
|
-
value: "E421",
|
|
76
|
-
enumerable: false,
|
|
77
|
-
configurable: true
|
|
78
|
-
});
|
|
79
|
-
if (segmentName.startsWith(".")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
|
|
80
|
-
value: "E288",
|
|
81
|
-
enumerable: false,
|
|
82
|
-
configurable: true
|
|
83
|
-
});
|
|
84
|
-
function handleSlug(previousSlug, nextSlug) {
|
|
85
|
-
if (previousSlug !== null) {
|
|
86
|
-
if (previousSlug !== nextSlug) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
|
|
87
|
-
value: "E337",
|
|
88
|
-
enumerable: false,
|
|
89
|
-
configurable: true
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
slugNames.forEach((slug) => {
|
|
93
|
-
if (slug === nextSlug) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
|
|
94
|
-
value: "E247",
|
|
95
|
-
enumerable: false,
|
|
96
|
-
configurable: true
|
|
97
|
-
});
|
|
98
|
-
if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) throw Object.defineProperty(/* @__PURE__ */ 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", {
|
|
99
|
-
value: "E499",
|
|
100
|
-
enumerable: false,
|
|
101
|
-
configurable: true
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
slugNames.push(nextSlug);
|
|
105
|
-
}
|
|
106
|
-
if (isCatchAll) if (isOptional) {
|
|
107
|
-
if (this.restSlugName != null) throw Object.defineProperty(/* @__PURE__ */ 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", {
|
|
108
|
-
value: "E299",
|
|
109
|
-
enumerable: false,
|
|
110
|
-
configurable: true
|
|
111
|
-
});
|
|
112
|
-
handleSlug(this.optionalRestSlugName, segmentName);
|
|
113
|
-
this.optionalRestSlugName = segmentName;
|
|
114
|
-
nextSegment = "[[...]]";
|
|
115
|
-
} else {
|
|
116
|
-
if (this.optionalRestSlugName != null) throw Object.defineProperty(/* @__PURE__ */ 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", {
|
|
117
|
-
value: "E300",
|
|
118
|
-
enumerable: false,
|
|
119
|
-
configurable: true
|
|
120
|
-
});
|
|
121
|
-
handleSlug(this.restSlugName, segmentName);
|
|
122
|
-
this.restSlugName = segmentName;
|
|
123
|
-
nextSegment = "[...]";
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
if (isOptional) throw Object.defineProperty(/* @__PURE__ */ new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
|
|
127
|
-
value: "E435",
|
|
128
|
-
enumerable: false,
|
|
129
|
-
configurable: true
|
|
130
|
-
});
|
|
131
|
-
handleSlug(this.slugName, segmentName);
|
|
132
|
-
this.slugName = segmentName;
|
|
133
|
-
nextSegment = "[]";
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
if (!this.children.has(nextSegment)) this.children.set(nextSegment, new UrlNode());
|
|
137
|
-
this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
|
|
138
|
-
}
|
|
139
|
-
constructor() {
|
|
140
|
-
this.placeholder = true;
|
|
141
|
-
this.children = /* @__PURE__ */ new Map();
|
|
142
|
-
this.slugName = null;
|
|
143
|
-
this.restSlugName = null;
|
|
144
|
-
this.optionalRestSlugName = null;
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
function getSortedRoutes(normalizedPages) {
|
|
148
|
-
const root = new UrlNode();
|
|
149
|
-
normalizedPages.forEach((pagePath) => root.insert(pagePath));
|
|
150
|
-
return root.smoosh();
|
|
151
|
-
}
|
|
152
|
-
function getSortedRouteObjects(objects, getter) {
|
|
153
|
-
const indexes = {};
|
|
154
|
-
const pathnames = [];
|
|
155
|
-
for (let i = 0; i < objects.length; i++) {
|
|
156
|
-
const pathname = getter(objects[i]);
|
|
157
|
-
indexes[pathname] = i;
|
|
158
|
-
pathnames[i] = pathname;
|
|
159
|
-
}
|
|
160
|
-
return getSortedRoutes(pathnames).map((pathname) => objects[indexes[pathname]]);
|
|
161
|
-
}
|
|
162
|
-
}) });
|
|
163
|
-
|
|
164
|
-
//#endregion
|
|
165
|
-
export default require_sorted_routes();
|
|
166
|
-
|
|
167
|
-
export { require_sorted_routes };
|
|
168
|
-
//# sourceMappingURL=sorted-routes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sorted-routes.js","names":[],"sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n getSortedRouteObjects: null,\n getSortedRoutes: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n getSortedRouteObjects: function() {\n return getSortedRouteObjects;\n },\n getSortedRoutes: function() {\n return getSortedRoutes;\n }\n});\nclass UrlNode {\n insert(urlPath) {\n this._insert(urlPath.split('/').filter(Boolean), [], false);\n }\n smoosh() {\n return this._smoosh();\n }\n _smoosh(prefix = '/') {\n const childrenPaths = [\n ...this.children.keys()\n ].sort();\n if (this.slugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[]'), 1);\n }\n if (this.restSlugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[...]'), 1);\n }\n if (this.optionalRestSlugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[[...]]'), 1);\n }\n const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr)=>[\n ...prev,\n ...curr\n ], []);\n if (this.slugName !== null) {\n routes.push(...this.children.get('[]')._smoosh(`${prefix}[${this.slugName}]/`));\n }\n if (!this.placeholder) {\n const r = prefix === '/' ? '/' : prefix.slice(0, -1);\n if (this.optionalRestSlugName != null) {\n 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\", {\n value: \"E458\",\n enumerable: false,\n configurable: true\n });\n }\n routes.unshift(r);\n }\n if (this.restSlugName !== null) {\n routes.push(...this.children.get('[...]')._smoosh(`${prefix}[...${this.restSlugName}]/`));\n }\n if (this.optionalRestSlugName !== null) {\n routes.push(...this.children.get('[[...]]')._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));\n }\n return routes;\n }\n _insert(urlPaths, slugNames, isCatchAll) {\n if (urlPaths.length === 0) {\n this.placeholder = false;\n return;\n }\n if (isCatchAll) {\n throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), \"__NEXT_ERROR_CODE\", {\n value: \"E392\",\n enumerable: false,\n configurable: true\n });\n }\n // The next segment in the urlPaths list\n let nextSegment = urlPaths[0];\n // Check if the segment matches `[something]`\n if (nextSegment.startsWith('[') && nextSegment.endsWith(']')) {\n // Strip `[` and `]`, leaving only `something`\n let segmentName = nextSegment.slice(1, -1);\n let isOptional = false;\n if (segmentName.startsWith('[') && segmentName.endsWith(']')) {\n // Strip optional `[` and `]`, leaving only `something`\n segmentName = segmentName.slice(1, -1);\n isOptional = true;\n }\n if (segmentName.startsWith('…')) {\n throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), \"__NEXT_ERROR_CODE\", {\n value: \"E147\",\n enumerable: false,\n configurable: true\n });\n }\n if (segmentName.startsWith('...')) {\n // Strip `...`, leaving only `something`\n segmentName = segmentName.substring(3);\n isCatchAll = true;\n }\n if (segmentName.startsWith('[') || segmentName.endsWith(']')) {\n throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), \"__NEXT_ERROR_CODE\", {\n value: \"E421\",\n enumerable: false,\n configurable: true\n });\n }\n if (segmentName.startsWith('.')) {\n throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), \"__NEXT_ERROR_CODE\", {\n value: \"E288\",\n enumerable: false,\n configurable: true\n });\n }\n function handleSlug(previousSlug, nextSlug) {\n if (previousSlug !== null) {\n // If the specific segment already has a slug but the slug is not `something`\n // This prevents collisions like:\n // pages/[post]/index.js\n // pages/[id]/index.js\n // Because currently multiple dynamic params on the same segment level are not supported\n if (previousSlug !== nextSlug) {\n // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment.\n throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), \"__NEXT_ERROR_CODE\", {\n value: \"E337\",\n enumerable: false,\n configurable: true\n });\n }\n }\n slugNames.forEach((slug)=>{\n if (slug === nextSlug) {\n throw Object.defineProperty(new Error(`You cannot have the same slug name \"${nextSlug}\" repeat within a single dynamic path`), \"__NEXT_ERROR_CODE\", {\n value: \"E247\",\n enumerable: false,\n configurable: true\n });\n }\n if (slug.replace(/\\W/g, '') === nextSegment.replace(/\\W/g, '')) {\n 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\", {\n value: \"E499\",\n enumerable: false,\n configurable: true\n });\n }\n });\n slugNames.push(nextSlug);\n }\n if (isCatchAll) {\n if (isOptional) {\n if (this.restSlugName != null) {\n 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\", {\n value: \"E299\",\n enumerable: false,\n configurable: true\n });\n }\n handleSlug(this.optionalRestSlugName, segmentName);\n // slugName is kept as it can only be one particular slugName\n this.optionalRestSlugName = segmentName;\n // nextSegment is overwritten to [[...]] so that it can later be sorted specifically\n nextSegment = '[[...]]';\n } else {\n if (this.optionalRestSlugName != null) {\n 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\", {\n value: \"E300\",\n enumerable: false,\n configurable: true\n });\n }\n handleSlug(this.restSlugName, segmentName);\n // slugName is kept as it can only be one particular slugName\n this.restSlugName = segmentName;\n // nextSegment is overwritten to [...] so that it can later be sorted specifically\n nextSegment = '[...]';\n }\n } else {\n if (isOptional) {\n throw Object.defineProperty(new Error(`Optional route parameters are not yet supported (\"${urlPaths[0]}\").`), \"__NEXT_ERROR_CODE\", {\n value: \"E435\",\n enumerable: false,\n configurable: true\n });\n }\n handleSlug(this.slugName, segmentName);\n // slugName is kept as it can only be one particular slugName\n this.slugName = segmentName;\n // nextSegment is overwritten to [] so that it can later be sorted specifically\n nextSegment = '[]';\n }\n }\n // If this UrlNode doesn't have the nextSegment yet we create a new child UrlNode\n if (!this.children.has(nextSegment)) {\n this.children.set(nextSegment, new UrlNode());\n }\n this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);\n }\n constructor(){\n this.placeholder = true;\n this.children = new Map();\n this.slugName = null;\n this.restSlugName = null;\n this.optionalRestSlugName = null;\n }\n}\nfunction getSortedRoutes(normalizedPages) {\n // First the UrlNode is created, and every UrlNode can have only 1 dynamic segment\n // Eg you can't have pages/[post]/abc.js and pages/[hello]/something-else.js\n // Only 1 dynamic segment per nesting level\n // So in the case that is test/integration/dynamic-routing it'll be this:\n // pages/[post]/comments.js\n // pages/blog/[post]/comment/[id].js\n // Both are fine because `pages/[post]` and `pages/blog` are on the same level\n // So in this case `UrlNode` created here has `this.slugName === 'post'`\n // And since your PR passed through `slugName` as an array basically it'd including it in too many possibilities\n // Instead what has to be passed through is the upwards path's dynamic names\n const root = new UrlNode();\n // Here the `root` gets injected multiple paths, and insert will break them up into sublevels\n normalizedPages.forEach((pagePath)=>root.insert(pagePath));\n // Smoosh will then sort those sublevels up to the point where you get the correct route definition priority\n return root.smoosh();\n}\nfunction getSortedRouteObjects(objects, getter) {\n // We're assuming here that all the pathnames are unique, that way we can\n // sort the list and use the index as the key.\n const indexes = {};\n const pathnames = [];\n for(let i = 0; i < objects.length; i++){\n const pathname = getter(objects[i]);\n indexes[pathname] = i;\n pathnames[i] = pathname;\n }\n // Sort the pathnames.\n const sorted = getSortedRoutes(pathnames);\n // Map the sorted pathnames back to the original objects using the new sorted\n // index.\n return sorted.map((pathname)=>objects[indexes[pathname]]);\n}\n\n//# sourceMappingURL=sorted-routes.js.map"],"x_google_ignoreList":[0],"mappings":"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"}
|