Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

69 lines
2.0 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 5d5b47876e53e564.da1ba52a93.js
* Module id: 446971
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, r) => {
"use strict";
Object.defineProperty(r, "__esModule", { value: !0 });
var n = {
getParamProperties: function () {
return s;
},
getSegmentParam: function () {
return i;
},
isCatchAll: function () {
return l;
},
};
for (var o in n) Object.defineProperty(r, o, { enumerable: !0, get: n[o] });
let a = e.r(617286);
function i(e) {
let t = a.INTERCEPTION_ROUTE_MARKERS.find((t) => e.startsWith(t));
return (t && (e = e.slice(t.length)),
e.startsWith("[[...") && e.endsWith("]]"))
? { paramType: "optional-catchall", paramName: e.slice(5, -2) }
: e.startsWith("[...") && e.endsWith("]")
? {
paramType: t ? `catchall-intercepted-${t}` : "catchall",
paramName: e.slice(4, -1),
}
: e.startsWith("[") && e.endsWith("]")
? {
paramType: t ? `dynamic-intercepted-${t}` : "dynamic",
paramName: e.slice(1, -1),
}
: null;
}
function l(e) {
return (
"catchall" === e ||
"catchall-intercepted-(..)(..)" === e ||
"catchall-intercepted-(.)" === e ||
"catchall-intercepted-(..)" === e ||
"catchall-intercepted-(...)" === e ||
"optional-catchall" === e
);
}
function s(e) {
let t = !1,
r = !1;
switch (e) {
case "catchall":
case "catchall-intercepted-(..)(..)":
case "catchall-intercepted-(.)":
case "catchall-intercepted-(..)":
case "catchall-intercepted-(...)":
t = !0;
break;
case "optional-catchall":
(t = !0), (r = !0);
}
return { repeat: t, optional: r };
}
};
export default moduleFactory;