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

80 lines
2.0 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 5d5b47876e53e564.da1ba52a93.js
* Module id: 322150
* 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 = {
PARAM_SEPARATOR: function () {
return a;
},
hasAdjacentParameterIssues: function () {
return i;
},
normalizeAdjacentParameters: function () {
return l;
},
normalizeTokensForRegexp: function () {
return s;
},
stripNormalizedSeparators: function () {
return c;
},
stripParameterSeparators: function () {
return u;
},
};
for (var o in n) Object.defineProperty(r, o, { enumerable: !0, get: n[o] });
let a = "_NEXTSEP_";
function i(e) {
return (
"string" == typeof e &&
!!(
/\/\(\.{1,3}\):[^/\s]+/.test(e) ||
/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e)
)
);
}
function l(e) {
let t = e;
return (t = t.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${a}:$2`)).replace(
/:([^:/\s)]+)(?=:)/g,
`:$1${a}`,
);
}
function s(e) {
return e.map((e) =>
"object" == typeof e &&
null !== e &&
"modifier" in e &&
("*" === e.modifier || "+" === e.modifier) &&
"prefix" in e &&
"suffix" in e &&
"" === e.prefix &&
"" === e.suffix
? { ...e, prefix: "/" }
: e,
);
}
function c(e) {
return e.replace(RegExp(`\\)${a}`, "g"), ")");
}
function u(e) {
let t = {};
for (let [r, n] of Object.entries(e))
"string" == typeof n
? (t[r] = n.replace(RegExp(`^${a}`), ""))
: Array.isArray(n)
? (t[r] = n.map((e) =>
"string" == typeof e ? e.replace(RegExp(`^${a}`), "") : e,
))
: (t[r] = n);
return t;
}
};
export default moduleFactory;