@storm-software/git-tools 2.83.4 → 2.84.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/bin/git/index.cjs +779 -605
- package/bin/git/index.js +806 -632
- package/bin/post-checkout/index.cjs +620 -446
- package/bin/post-checkout/index.js +631 -457
- package/bin/post-commit/index.cjs +620 -446
- package/bin/post-commit/index.js +631 -457
- package/bin/post-merge/index.cjs +620 -446
- package/bin/post-merge/index.js +631 -457
- package/bin/pre-commit/index.cjs +618 -444
- package/bin/pre-commit/index.js +629 -455
- package/bin/pre-install/index.cjs +620 -446
- package/bin/pre-install/index.js +631 -457
- package/bin/pre-push/index.cjs +620 -446
- package/bin/pre-push/index.js +631 -457
- package/bin/prepare/index.cjs +620 -446
- package/bin/prepare/index.js +631 -457
- package/bin/version-warning/index.cjs +618 -444
- package/bin/version-warning/index.js +629 -455
- package/package.json +1 -1
|
@@ -34,9 +34,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
));
|
|
35
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.6__@swc+core@1.7.26_@swc+helpers_piekaeluhhe3ygikfvobypsjsi/node_modules/tsup/assets/cjs_shims.js
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.6__@swc+core@1.7.26_@swc+helpers_piekaeluhhe3ygikfvobypsjsi/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -2346,30 +2346,30 @@ var require_jiti = __commonJS({
|
|
|
2346
2346
|
__name(dist_joinURL, "dist_joinURL");
|
|
2347
2347
|
Symbol.for("ufo:protocolRelative");
|
|
2348
2348
|
Object.defineProperty;
|
|
2349
|
-
const
|
|
2350
|
-
function
|
|
2351
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
2349
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
2350
|
+
function normalizeWindowsPath3(input = "") {
|
|
2351
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
2352
2352
|
}
|
|
2353
|
-
__name(
|
|
2354
|
-
const
|
|
2353
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
2354
|
+
const _UNC_REGEX3 = /^[/\\]{2}/, _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/, pathe_ff20891b_normalize = /* @__PURE__ */ __name(function(path5) {
|
|
2355
2355
|
if (0 === path5.length) return ".";
|
|
2356
|
-
const isUNCPath = (path5 =
|
|
2357
|
-
return 0 === (path5 =
|
|
2358
|
-
}, "pathe_ff20891b_normalize"),
|
|
2356
|
+
const isUNCPath = (path5 = normalizeWindowsPath3(path5)).match(_UNC_REGEX3), isPathAbsolute = isAbsolute3(path5), trailingSeparator = "/" === path5[path5.length - 1];
|
|
2357
|
+
return 0 === (path5 = normalizeString3(path5, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path5 += "/"), _DRIVE_LETTER_RE3.test(path5) && (path5 += "/"), isUNCPath ? isPathAbsolute ? `//${path5}` : `//./${path5}` : isPathAbsolute && !isAbsolute3(path5) ? `/${path5}` : path5);
|
|
2358
|
+
}, "pathe_ff20891b_normalize"), join5 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2359
2359
|
if (0 === arguments_.length) return ".";
|
|
2360
2360
|
let joined;
|
|
2361
2361
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
2362
2362
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
2363
2363
|
}, "join");
|
|
2364
|
-
const
|
|
2364
|
+
const resolve4 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2365
2365
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
2366
|
-
for (let index = (arguments_ = arguments_.map((argument) =>
|
|
2366
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath3(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
2367
2367
|
const path5 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
2368
|
-
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute =
|
|
2368
|
+
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute = isAbsolute3(path5));
|
|
2369
2369
|
}
|
|
2370
|
-
return resolvedPath =
|
|
2370
|
+
return resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute3(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
2371
2371
|
}, "resolve");
|
|
2372
|
-
function
|
|
2372
|
+
function normalizeString3(path5, allowAboveRoot) {
|
|
2373
2373
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
2374
2374
|
for (let index = 0; index <= path5.length; ++index) {
|
|
2375
2375
|
if (index < path5.length) char = path5[index];
|
|
@@ -2398,17 +2398,17 @@ var require_jiti = __commonJS({
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return res;
|
|
2400
2400
|
}
|
|
2401
|
-
__name(
|
|
2402
|
-
const
|
|
2403
|
-
return
|
|
2404
|
-
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/,
|
|
2405
|
-
const match = _EXTNAME_RE2.exec(
|
|
2401
|
+
__name(normalizeString3, "normalizeString");
|
|
2402
|
+
const isAbsolute3 = /* @__PURE__ */ __name(function(p2) {
|
|
2403
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
2404
|
+
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/, extname4 = /* @__PURE__ */ __name(function(p2) {
|
|
2405
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath3(p2));
|
|
2406
2406
|
return match && match[1] || "";
|
|
2407
2407
|
}, "extname"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
2408
|
-
const segments =
|
|
2409
|
-
return 1 === segments.length &&
|
|
2410
|
-
}, "pathe_ff20891b_dirname"),
|
|
2411
|
-
const lastSegment =
|
|
2408
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
2409
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute3(p2) ? "/" : ".");
|
|
2410
|
+
}, "pathe_ff20891b_dirname"), basename3 = /* @__PURE__ */ __name(function(p2, extension) {
|
|
2411
|
+
const lastSegment = normalizeWindowsPath3(p2).split("/").pop();
|
|
2412
2412
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
2413
2413
|
}, "basename"), external_node_url_namespaceObject = require("url"), external_node_assert_namespaceObject = require("assert"), external_node_process_namespaceObject = require("process"), external_node_path_namespaceObject = require("path"), external_node_v8_namespaceObject = require("v8"), external_node_util_namespaceObject = require("util"), BUILTIN_MODULES2 = new Set(external_node_module_namespaceObject.builtinModules);
|
|
2414
2414
|
function normalizeSlash2(path5) {
|
|
@@ -2559,8 +2559,8 @@ var require_jiti = __commonJS({
|
|
|
2559
2559
|
const packageType = getPackageType2(url);
|
|
2560
2560
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
2561
2561
|
}
|
|
2562
|
-
const
|
|
2563
|
-
if (
|
|
2562
|
+
const format4 = extensionFormatMap2[value2];
|
|
2563
|
+
if (format4) return format4;
|
|
2564
2564
|
if (ignoreErrors) return;
|
|
2565
2565
|
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(url);
|
|
2566
2566
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -2577,11 +2577,11 @@ var require_jiti = __commonJS({
|
|
|
2577
2577
|
__name(emitInvalidSegmentDeprecation2, "emitInvalidSegmentDeprecation");
|
|
2578
2578
|
function emitLegacyIndexDeprecation2(url, packageJsonUrl, base, main) {
|
|
2579
2579
|
if (external_node_process_namespaceObject.noDeprecation) return;
|
|
2580
|
-
const
|
|
2580
|
+
const format4 = function(url2, context) {
|
|
2581
2581
|
const protocol = url2.protocol;
|
|
2582
2582
|
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url2, context, true) || null;
|
|
2583
2583
|
}(url, { parentURL: base.href });
|
|
2584
|
-
if ("module" !==
|
|
2584
|
+
if ("module" !== format4) return;
|
|
2585
2585
|
const urlPath = (0, external_node_url_namespaceObject.fileURLToPath)(url.href), packagePath = (0, external_node_url_namespaceObject.fileURLToPath)(new external_node_url_namespaceObject.URL(".", packageJsonUrl)), basePath = (0, external_node_url_namespaceObject.fileURLToPath)(base);
|
|
2586
2586
|
main ? external_node_path_namespaceObject.resolve(packagePath, main) !== urlPath && external_node_process_namespaceObject.emitWarning(`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
2587
2587
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151") : external_node_process_namespaceObject.emitWarning(`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
@@ -2896,7 +2896,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2896
2896
|
}
|
|
2897
2897
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
2898
2898
|
if (BUILTIN_MODULES2.has(id)) return "node:" + id;
|
|
2899
|
-
if (id.startsWith("file://") && (id = fileURLToPath3(id)),
|
|
2899
|
+
if (id.startsWith("file://") && (id = fileURLToPath3(id)), isAbsolute3(id)) try {
|
|
2900
2900
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL2(id);
|
|
2901
2901
|
} catch (error) {
|
|
2902
2902
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -3010,8 +3010,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3010
3010
|
const debugMap = { true: green("true"), false: yellow("false"), "[esm]": blue("[esm]"), "[cjs]": green("[cjs]"), "[import]": blue("[import]"), "[require]": green("[require]"), "[native]": cyan("[native]"), "[transpile]": yellow("[transpile]"), "[fallback]": red("[fallback]"), "[unknown]": red("[unknown]"), "[hit]": green("[hit]"), "[miss]": yellow("[miss]"), "[json]": green("[json]"), "[data]": green("[data]") };
|
|
3011
3011
|
function debug2(ctx, ...args) {
|
|
3012
3012
|
if (!ctx.opts.debug) return;
|
|
3013
|
-
const
|
|
3014
|
-
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(
|
|
3013
|
+
const cwd3 = process.cwd();
|
|
3014
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd3, "."))].join(" ")));
|
|
3015
3015
|
}
|
|
3016
3016
|
__name(debug2, "debug");
|
|
3017
3017
|
function jitiInteropDefault(ctx, mod) {
|
|
@@ -3053,17 +3053,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3053
3053
|
let resolved, lastError;
|
|
3054
3054
|
if (ctx.isNativeRe.test(id)) return id;
|
|
3055
3055
|
ctx.alias && (id = function(path5, aliases2) {
|
|
3056
|
-
const _path =
|
|
3056
|
+
const _path = normalizeWindowsPath3(path5);
|
|
3057
3057
|
aliases2 = normalizeAliases(aliases2);
|
|
3058
3058
|
for (const [alias, to] of Object.entries(aliases2)) {
|
|
3059
3059
|
if (!_path.startsWith(alias)) continue;
|
|
3060
3060
|
const _alias = utils_hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
|
3061
|
-
if (utils_hasTrailingSlash(_path[_alias.length])) return
|
|
3061
|
+
if (utils_hasTrailingSlash(_path[_alias.length])) return join5(to, _path.slice(alias.length));
|
|
3062
3062
|
}
|
|
3063
3063
|
return _path;
|
|
3064
3064
|
}(id, ctx.alias));
|
|
3065
3065
|
let parentURL = options?.parentURL || ctx.url;
|
|
3066
|
-
isDir(parentURL) && (parentURL =
|
|
3066
|
+
isDir(parentURL) && (parentURL = join5(parentURL, "_index.js"));
|
|
3067
3067
|
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
3068
3068
|
for (const conditions of conditionSets) {
|
|
3069
3069
|
try {
|
|
@@ -3115,7 +3115,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3115
3115
|
}
|
|
3116
3116
|
const filename = jitiResolve(ctx, id, opts);
|
|
3117
3117
|
if (!filename && opts.try) return;
|
|
3118
|
-
const ext =
|
|
3118
|
+
const ext = extname4(filename);
|
|
3119
3119
|
if (".json" === ext) {
|
|
3120
3120
|
debug2(ctx, "[json]", filename);
|
|
3121
3121
|
const jsonModule = ctx.nativeRequire(filename);
|
|
@@ -3134,7 +3134,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3134
3134
|
__name(jitiRequire, "jitiRequire");
|
|
3135
3135
|
function nativeImportOrRequire(ctx, id, async) {
|
|
3136
3136
|
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
3137
|
-
return _5 &&
|
|
3137
|
+
return _5 && isAbsolute3(id2) ? pathToFileURL2(id2) : id2;
|
|
3138
3138
|
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
3139
3139
|
}
|
|
3140
3140
|
__name(nativeImportOrRequire, "nativeImportOrRequire");
|
|
@@ -3143,11 +3143,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3143
3143
|
if (!ctx.opts.fsCache || !topts.filename) return get();
|
|
3144
3144
|
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
3145
3145
|
`;
|
|
3146
|
-
let cacheName = `${
|
|
3146
|
+
let cacheName = `${basename3(pathe_ff20891b_dirname(topts.filename))}-${function(path5) {
|
|
3147
3147
|
return path5.match(FILENAME_RE)?.[2];
|
|
3148
3148
|
}(topts.filename)}` + (ctx.opts.sourceMaps ? "+map" : "") + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs");
|
|
3149
3149
|
topts.jsx && topts.filename.endsWith("x") && (cacheName += "x");
|
|
3150
|
-
const cacheDir = ctx.opts.fsCache, cacheFilePath =
|
|
3150
|
+
const cacheDir = ctx.opts.fsCache, cacheFilePath = join5(cacheDir, cacheName);
|
|
3151
3151
|
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3152
3152
|
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3153
3153
|
if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
@@ -3159,14 +3159,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3159
3159
|
__name(getCache, "getCache");
|
|
3160
3160
|
function prepareCacheDir(ctx) {
|
|
3161
3161
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3162
|
-
const nmDir = ctx2.filename &&
|
|
3163
|
-
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return
|
|
3162
|
+
const nmDir = ctx2.filename && resolve4(ctx2.filename, "../node_modules");
|
|
3163
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join5(nmDir, ".cache/jiti");
|
|
3164
3164
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
3165
3165
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
3166
3166
|
const _env = process.env.TMPDIR;
|
|
3167
3167
|
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
3168
3168
|
}
|
|
3169
|
-
return
|
|
3169
|
+
return join5(_tmpDir, "jiti");
|
|
3170
3170
|
}(ctx)), ctx.opts.fsCache) try {
|
|
3171
3171
|
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
3172
3172
|
try {
|
|
@@ -3189,11 +3189,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3189
3189
|
}
|
|
3190
3190
|
__name(transform2, "transform");
|
|
3191
3191
|
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
3192
|
-
const id = evalOptions.id || (evalOptions.filename ?
|
|
3192
|
+
const id = evalOptions.id || (evalOptions.filename ? basename3(evalOptions.filename) : `_jitiEval.${evalOptions.ext || (evalOptions.async ? "mjs" : "js")}`), filename = evalOptions.filename || jitiResolve(ctx, id, { async: evalOptions.async }), ext = evalOptions.ext || extname4(filename), cache3 = evalOptions.cache || ctx.parentCache || {}, isTypescript = /\.[cm]?tsx?$/.test(ext), isESM = ".mjs" === ext || ".js" === ext && "module" === function(path5) {
|
|
3193
3193
|
for (; path5 && "." !== path5 && "/" !== path5; ) {
|
|
3194
|
-
path5 =
|
|
3194
|
+
path5 = join5(path5, "..");
|
|
3195
3195
|
try {
|
|
3196
|
-
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(
|
|
3196
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join5(path5, "package.json"), "utf8");
|
|
3197
3197
|
try {
|
|
3198
3198
|
return JSON.parse(pkg);
|
|
3199
3199
|
} catch {
|
|
@@ -3259,7 +3259,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3259
3259
|
const deprecatOverrides = {};
|
|
3260
3260
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3261
3261
|
}(userOptions), alias = opts.alias && Object.keys(opts.alias).length > 0 ? normalizeAliases(opts.alias || {}) : void 0, nativeModules = ["typescript", "jiti", ...opts.nativeModules || []], isNativeRe = new RegExp(`node_modules/(${nativeModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`), transformModules = [...opts.transformModules || []], isTransformRe = new RegExp(`node_modules/(${transformModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`);
|
|
3262
|
-
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename =
|
|
3262
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join5(filename, "_index.js"));
|
|
3263
3263
|
const url = pathToFileURL2(filename), additionalExts = [...opts.extensions].filter((ext) => ".js" !== ext), nativeRequire = parentContext.createRequire(isWindows ? filename.replace(/\//g, "\\") : filename), ctx = { filename, url, opts, alias, nativeModules, transformModules, isNativeRe, isTransformRe, additionalExts, nativeRequire, onError: parentContext.onError, parentModule: parentContext.parentModule, parentCache: parentContext.parentCache, nativeImport: parentContext.nativeImport, createRequire: parentContext.createRequire };
|
|
3264
3264
|
isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3265
3265
|
const jiti = Object.assign(function(id) {
|
|
@@ -3583,7 +3583,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3583
3583
|
(!path5 || addTrailingSlash && !path5.endsWith("/..")) && (path5 += "/"), url.path = path5;
|
|
3584
3584
|
}
|
|
3585
3585
|
__name(normalizePath, "normalizePath");
|
|
3586
|
-
function
|
|
3586
|
+
function resolve4(input, base) {
|
|
3587
3587
|
if (!input && !base) return "";
|
|
3588
3588
|
const url = parseUrl(input);
|
|
3589
3589
|
let inputType = url.type;
|
|
@@ -3620,8 +3620,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3620
3620
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
3621
3621
|
}
|
|
3622
3622
|
}
|
|
3623
|
-
__name(
|
|
3624
|
-
return
|
|
3623
|
+
__name(resolve4, "resolve");
|
|
3624
|
+
return resolve4;
|
|
3625
3625
|
}();
|
|
3626
3626
|
}, "./node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"), "./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js": /* @__PURE__ */ __name(function(__unused_webpack_module, exports3) {
|
|
3627
3627
|
!function(exports4) {
|
|
@@ -3675,18 +3675,18 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3675
3675
|
const c = chars.charCodeAt(i2);
|
|
3676
3676
|
intToChar[i2] = c, charToInt[c] = i2;
|
|
3677
3677
|
}
|
|
3678
|
-
function decodeInteger(reader,
|
|
3678
|
+
function decodeInteger(reader, relative3) {
|
|
3679
3679
|
let value2 = 0, shift = 0, integer = 0;
|
|
3680
3680
|
do {
|
|
3681
3681
|
const c = reader.next();
|
|
3682
3682
|
integer = charToInt[c], value2 |= (31 & integer) << shift, shift += 5;
|
|
3683
3683
|
} while (32 & integer);
|
|
3684
3684
|
const shouldNegate = 1 & value2;
|
|
3685
|
-
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2),
|
|
3685
|
+
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative3 + value2;
|
|
3686
3686
|
}
|
|
3687
3687
|
__name(decodeInteger, "decodeInteger");
|
|
3688
|
-
function encodeInteger(builder, num,
|
|
3689
|
-
let delta = num -
|
|
3688
|
+
function encodeInteger(builder, num, relative3) {
|
|
3689
|
+
let delta = num - relative3;
|
|
3690
3690
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
3691
3691
|
do {
|
|
3692
3692
|
let clamped = 31 & delta;
|
|
@@ -3913,10 +3913,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3913
3913
|
}, "./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"), "./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js": /* @__PURE__ */ __name(function(__unused_webpack_module, exports3, __webpack_require__2) {
|
|
3914
3914
|
!function(exports4, sourcemapCodec, resolveUri) {
|
|
3915
3915
|
"use strict";
|
|
3916
|
-
function
|
|
3916
|
+
function resolve4(input, base) {
|
|
3917
3917
|
return base && !base.endsWith("/") && (base += "/"), resolveUri(input, base);
|
|
3918
3918
|
}
|
|
3919
|
-
__name(
|
|
3919
|
+
__name(resolve4, "resolve");
|
|
3920
3920
|
function stripFilename(path5) {
|
|
3921
3921
|
if (!path5) return "";
|
|
3922
3922
|
const index = path5.lastIndexOf("/");
|
|
@@ -4009,15 +4009,15 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4009
4009
|
}
|
|
4010
4010
|
__name(buildNullArray, "buildNullArray");
|
|
4011
4011
|
const AnyMap = /* @__PURE__ */ __name(function(map, mapUrl) {
|
|
4012
|
-
const parsed =
|
|
4012
|
+
const parsed = parse7(map);
|
|
4013
4013
|
if (!("sections" in parsed)) return new TraceMap(parsed, mapUrl);
|
|
4014
4014
|
const mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
|
|
4015
4015
|
return recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, 1 / 0, 1 / 0), presortedDecodedMap({ version: 3, file: parsed.file, names, sources, sourcesContent, mappings, ignoreList });
|
|
4016
4016
|
}, "AnyMap");
|
|
4017
|
-
function
|
|
4017
|
+
function parse7(map) {
|
|
4018
4018
|
return "string" == typeof map ? JSON.parse(map) : map;
|
|
4019
4019
|
}
|
|
4020
|
-
__name(
|
|
4020
|
+
__name(parse7, "parse");
|
|
4021
4021
|
function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4022
4022
|
const { sections } = input;
|
|
4023
4023
|
for (let i2 = 0; i2 < sections.length; i2++) {
|
|
@@ -4032,7 +4032,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4032
4032
|
}
|
|
4033
4033
|
__name(recurse, "recurse");
|
|
4034
4034
|
function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4035
|
-
const parsed =
|
|
4035
|
+
const parsed = parse7(input);
|
|
4036
4036
|
if ("sections" in parsed) return recurse(...arguments);
|
|
4037
4037
|
const map = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;
|
|
4038
4038
|
if (append(sources, resolvedSources), append(names, map.names), contents) append(sourcesContent, contents);
|
|
@@ -4074,8 +4074,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4074
4074
|
if (!isString && map._decodedMemo) return map;
|
|
4075
4075
|
const parsed = isString ? JSON.parse(map) : map, { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
4076
4076
|
this.version = version2, this.file = file, this.names = names || [], this.sourceRoot = sourceRoot, this.sources = sources, this.sourcesContent = sourcesContent, this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
|
|
4077
|
-
const from =
|
|
4078
|
-
this.resolvedSources = sources.map((s2) =>
|
|
4077
|
+
const from = resolve4(sourceRoot || "", stripFilename(mapUrl));
|
|
4078
|
+
this.resolvedSources = sources.map((s2) => resolve4(s2 || "", from));
|
|
4079
4079
|
const { mappings } = parsed;
|
|
4080
4080
|
"string" == typeof mappings ? (this._encoded = mappings, this._decoded = void 0) : (this._encoded = void 0, this._decoded = maybeSort(mappings, isString)), this._decodedMemo = memoizedState(), this._bySources = void 0, this._bySourceMemos = void 0;
|
|
4081
4081
|
}
|
|
@@ -4516,10 +4516,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4516
4516
|
const self2 = debug2, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
|
|
4517
4517
|
self2.diff = ms, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), "string" != typeof args[0] && args.unshift("%O");
|
|
4518
4518
|
let index = 0;
|
|
4519
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match,
|
|
4519
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
|
|
4520
4520
|
if ("%%" === match) return "%";
|
|
4521
4521
|
index++;
|
|
4522
|
-
const formatter = createDebug.formatters[
|
|
4522
|
+
const formatter = createDebug.formatters[format4];
|
|
4523
4523
|
if ("function" == typeof formatter) {
|
|
4524
4524
|
const val = args[index];
|
|
4525
4525
|
match = formatter.call(self2, val), args.splice(index, 1), index--;
|
|
@@ -4657,7 +4657,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4657
4657
|
return value2;
|
|
4658
4658
|
}
|
|
4659
4659
|
__name(evaluateSync, "evaluateSync");
|
|
4660
|
-
function evaluateAsync(gen,
|
|
4660
|
+
function evaluateAsync(gen, resolve4, reject) {
|
|
4661
4661
|
!(/* @__PURE__ */ __name(function step() {
|
|
4662
4662
|
try {
|
|
4663
4663
|
let value2;
|
|
@@ -4669,7 +4669,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4669
4669
|
});
|
|
4670
4670
|
if (sync = false, assertSuspend(out, gen), !didSyncResume) return;
|
|
4671
4671
|
}
|
|
4672
|
-
return
|
|
4672
|
+
return resolve4(value2);
|
|
4673
4673
|
} catch (err) {
|
|
4674
4674
|
return reject(err);
|
|
4675
4675
|
}
|
|
@@ -4711,10 +4711,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4711
4711
|
"number" != typeof arity && (arity = sync.length);
|
|
4712
4712
|
return buildOperation({ name, arity, sync: /* @__PURE__ */ __name(function(args) {
|
|
4713
4713
|
return sync.apply(this, args);
|
|
4714
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4715
|
-
async ? async.apply(this, args).then(
|
|
4716
|
-
null == err ?
|
|
4717
|
-
}) :
|
|
4714
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject) {
|
|
4715
|
+
async ? async.apply(this, args).then(resolve4, reject) : errback ? errback.call(this, ...args, (err, value2) => {
|
|
4716
|
+
null == err ? resolve4(value2) : reject(err);
|
|
4717
|
+
}) : resolve4(sync.apply(this, args));
|
|
4718
4718
|
}, "async") });
|
|
4719
4719
|
}(optsOrFn) : function(genFn2) {
|
|
4720
4720
|
return setFunctionMetadata(genFn2.name, genFn2.length, function(...args) {
|
|
@@ -4724,8 +4724,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4724
4724
|
const fns = { sync: /* @__PURE__ */ __name(function(...args) {
|
|
4725
4725
|
return evaluateSync(genFn2.apply(this, args));
|
|
4726
4726
|
}, "sync"), async: /* @__PURE__ */ __name(function(...args) {
|
|
4727
|
-
return new Promise((
|
|
4728
|
-
evaluateAsync(genFn2.apply(this, args),
|
|
4727
|
+
return new Promise((resolve4, reject) => {
|
|
4728
|
+
evaluateAsync(genFn2.apply(this, args), resolve4, reject);
|
|
4729
4729
|
});
|
|
4730
4730
|
}, "async"), errback: /* @__PURE__ */ __name(function(...args) {
|
|
4731
4731
|
const cb = args.pop();
|
|
@@ -4742,25 +4742,25 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4742
4742
|
}(genFn));
|
|
4743
4743
|
}, { all: buildOperation({ name: "all", arity: 1, sync: /* @__PURE__ */ __name(function(args) {
|
|
4744
4744
|
return Array.from(args[0]).map((item) => evaluateSync(item));
|
|
4745
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4745
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject) {
|
|
4746
4746
|
const items = Array.from(args[0]);
|
|
4747
|
-
if (0 === items.length) return void Promise.resolve().then(() =>
|
|
4747
|
+
if (0 === items.length) return void Promise.resolve().then(() => resolve4([]));
|
|
4748
4748
|
let count = 0;
|
|
4749
4749
|
const results = items.map(() => {
|
|
4750
4750
|
});
|
|
4751
4751
|
items.forEach((item, i2) => {
|
|
4752
4752
|
evaluateAsync(item, (val) => {
|
|
4753
|
-
results[i2] = val, count += 1, count === results.length &&
|
|
4753
|
+
results[i2] = val, count += 1, count === results.length && resolve4(results);
|
|
4754
4754
|
}, reject);
|
|
4755
4755
|
});
|
|
4756
4756
|
}, "async") }), race: buildOperation({ name: "race", arity: 1, sync: /* @__PURE__ */ __name(function(args) {
|
|
4757
4757
|
const items = Array.from(args[0]);
|
|
4758
4758
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4759
4759
|
return evaluateSync(items[0]);
|
|
4760
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4760
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject) {
|
|
4761
4761
|
const items = Array.from(args[0]);
|
|
4762
4762
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4763
|
-
for (const item of items) evaluateAsync(item,
|
|
4763
|
+
for (const item of items) evaluateAsync(item, resolve4, reject);
|
|
4764
4764
|
}, "async") }) });
|
|
4765
4765
|
}, "./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js"), "./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js": /* @__PURE__ */ __name((module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
4766
4766
|
"use strict";
|
|
@@ -4946,7 +4946,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4946
4946
|
tok("CARET"), src[t2.CARET] = "^" + src[t2.LONECARET] + src[t2.XRANGEPLAIN] + "$", tok("CARETLOOSE"), src[t2.CARETLOOSE] = "^" + src[t2.LONECARET] + src[t2.XRANGEPLAINLOOSE] + "$", tok("COMPARATORLOOSE"), src[t2.COMPARATORLOOSE] = "^" + src[t2.GTLT] + "\\s*(" + src[t2.LOOSEPLAIN] + ")$|^$", tok("COMPARATOR"), src[t2.COMPARATOR] = "^" + src[t2.GTLT] + "\\s*(" + src[t2.FULLPLAIN] + ")$|^$", tok("COMPARATORTRIM"), src[t2.COMPARATORTRIM] = "(\\s*)" + src[t2.GTLT] + "\\s*(" + src[t2.LOOSEPLAIN] + "|" + src[t2.XRANGEPLAIN] + ")", re3[t2.COMPARATORTRIM] = new RegExp(src[t2.COMPARATORTRIM], "g"), safeRe[t2.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t2.COMPARATORTRIM]), "g");
|
|
4947
4947
|
tok("HYPHENRANGE"), src[t2.HYPHENRANGE] = "^\\s*(" + src[t2.XRANGEPLAIN] + ")\\s+-\\s+(" + src[t2.XRANGEPLAIN] + ")\\s*$", tok("HYPHENRANGELOOSE"), src[t2.HYPHENRANGELOOSE] = "^\\s*(" + src[t2.XRANGEPLAINLOOSE] + ")\\s+-\\s+(" + src[t2.XRANGEPLAINLOOSE] + ")\\s*$", tok("STAR"), src[t2.STAR] = "(<|>)?=?\\s*\\*";
|
|
4948
4948
|
for (var i2 = 0; i2 < R3; i2++) debug2(i2, src[i2]), re3[i2] || (re3[i2] = new RegExp(src[i2]), safeRe[i2] = new RegExp(makeSafeRe(src[i2])));
|
|
4949
|
-
function
|
|
4949
|
+
function parse7(version2, options) {
|
|
4950
4950
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) return version2;
|
|
4951
4951
|
if ("string" != typeof version2) return null;
|
|
4952
4952
|
if (version2.length > MAX_LENGTH) return null;
|
|
@@ -4957,7 +4957,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4957
4957
|
return null;
|
|
4958
4958
|
}
|
|
4959
4959
|
}
|
|
4960
|
-
__name(
|
|
4960
|
+
__name(parse7, "parse");
|
|
4961
4961
|
function SemVer(version2, options) {
|
|
4962
4962
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) {
|
|
4963
4963
|
if (version2.loose === options.loose) return version2;
|
|
@@ -4980,11 +4980,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4980
4980
|
}) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
|
|
4981
4981
|
}
|
|
4982
4982
|
__name(SemVer, "SemVer");
|
|
4983
|
-
exports3.parse =
|
|
4984
|
-
var v4 =
|
|
4983
|
+
exports3.parse = parse7, exports3.valid = function(version2, options) {
|
|
4984
|
+
var v4 = parse7(version2, options);
|
|
4985
4985
|
return v4 ? v4.version : null;
|
|
4986
4986
|
}, exports3.clean = function(version2, options) {
|
|
4987
|
-
var s2 =
|
|
4987
|
+
var s2 = parse7(version2.trim().replace(/^[=v]+/, ""), options);
|
|
4988
4988
|
return s2 ? s2.version : null;
|
|
4989
4989
|
}, exports3.SemVer = SemVer, SemVer.prototype.format = function() {
|
|
4990
4990
|
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
@@ -5060,7 +5060,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5060
5060
|
}
|
|
5061
5061
|
}, exports3.diff = function(version1, version2) {
|
|
5062
5062
|
if (eq(version1, version2)) return null;
|
|
5063
|
-
var v1 =
|
|
5063
|
+
var v1 = parse7(version1), v22 = parse7(version2), prefix = "";
|
|
5064
5064
|
if (v1.prerelease.length || v22.prerelease.length) {
|
|
5065
5065
|
prefix = "pre";
|
|
5066
5066
|
var defaultResult = "prerelease";
|
|
@@ -5391,7 +5391,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5391
5391
|
}, exports3.gtr = function(version2, range, options) {
|
|
5392
5392
|
return outside(version2, range, ">", options);
|
|
5393
5393
|
}, exports3.outside = outside, exports3.prerelease = function(version2, options) {
|
|
5394
|
-
var parsed =
|
|
5394
|
+
var parsed = parse7(version2, options);
|
|
5395
5395
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
5396
5396
|
}, exports3.intersects = function(r1, r22, options) {
|
|
5397
5397
|
return r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22);
|
|
@@ -5405,7 +5405,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5405
5405
|
safeRe[t2.COERCERTL].lastIndex = -1;
|
|
5406
5406
|
} else match = version2.match(safeRe[t2.COERCE]);
|
|
5407
5407
|
if (null === match) return null;
|
|
5408
|
-
return
|
|
5408
|
+
return parse7(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
5409
5409
|
};
|
|
5410
5410
|
}, "./node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js"), "./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js": /* @__PURE__ */ __name((module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
5411
5411
|
"use strict";
|
|
@@ -5616,8 +5616,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5616
5616
|
__name(this, "Lock");
|
|
5617
5617
|
}
|
|
5618
5618
|
constructor() {
|
|
5619
|
-
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((
|
|
5620
|
-
this._resolve =
|
|
5619
|
+
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((resolve4) => {
|
|
5620
|
+
this._resolve = resolve4;
|
|
5621
5621
|
});
|
|
5622
5622
|
}
|
|
5623
5623
|
release(value2) {
|
|
@@ -5702,59 +5702,59 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5702
5702
|
}
|
|
5703
5703
|
__name(loadFileChain, "loadFileChain");
|
|
5704
5704
|
const loadFileDescriptors = (0, _caching.makeWeakCacheSync)((file) => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors)), loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((envName) => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName))), loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((index) => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index))), loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((index) => (0, _caching.makeStrongCacheSync)((envName) => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName))));
|
|
5705
|
-
function buildRootDescriptors({ dirname:
|
|
5706
|
-
return descriptors2(
|
|
5705
|
+
function buildRootDescriptors({ dirname: dirname4, options }, alias, descriptors2) {
|
|
5706
|
+
return descriptors2(dirname4, options, alias);
|
|
5707
5707
|
}
|
|
5708
5708
|
__name(buildRootDescriptors, "buildRootDescriptors");
|
|
5709
|
-
function buildEnvDescriptors({ dirname:
|
|
5709
|
+
function buildEnvDescriptors({ dirname: dirname4, options }, alias, descriptors2, envName) {
|
|
5710
5710
|
var _options$env;
|
|
5711
5711
|
const opts = null == (_options$env = options.env) ? void 0 : _options$env[envName];
|
|
5712
|
-
return opts ? descriptors2(
|
|
5712
|
+
return opts ? descriptors2(dirname4, opts, `${alias}.env["${envName}"]`) : null;
|
|
5713
5713
|
}
|
|
5714
5714
|
__name(buildEnvDescriptors, "buildEnvDescriptors");
|
|
5715
|
-
function buildOverrideDescriptors({ dirname:
|
|
5715
|
+
function buildOverrideDescriptors({ dirname: dirname4, options }, alias, descriptors2, index) {
|
|
5716
5716
|
var _options$overrides;
|
|
5717
5717
|
const opts = null == (_options$overrides = options.overrides) ? void 0 : _options$overrides[index];
|
|
5718
5718
|
if (!opts) throw new Error("Assertion failure - missing override");
|
|
5719
|
-
return descriptors2(
|
|
5719
|
+
return descriptors2(dirname4, opts, `${alias}.overrides[${index}]`);
|
|
5720
5720
|
}
|
|
5721
5721
|
__name(buildOverrideDescriptors, "buildOverrideDescriptors");
|
|
5722
|
-
function buildOverrideEnvDescriptors({ dirname:
|
|
5722
|
+
function buildOverrideEnvDescriptors({ dirname: dirname4, options }, alias, descriptors2, index, envName) {
|
|
5723
5723
|
var _options$overrides2, _override$env;
|
|
5724
5724
|
const override = null == (_options$overrides2 = options.overrides) ? void 0 : _options$overrides2[index];
|
|
5725
5725
|
if (!override) throw new Error("Assertion failure - missing override");
|
|
5726
5726
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
5727
|
-
return opts ? descriptors2(
|
|
5727
|
+
return opts ? descriptors2(dirname4, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
|
5728
5728
|
}
|
|
5729
5729
|
__name(buildOverrideEnvDescriptors, "buildOverrideEnvDescriptors");
|
|
5730
5730
|
function makeChainWalker({ root, env, overrides, overridesEnv, createLogger }) {
|
|
5731
5731
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
5732
|
-
const { dirname:
|
|
5733
|
-
if (configIsApplicable(rootOpts,
|
|
5732
|
+
const { dirname: dirname4 } = input, flattenedConfigs = [], rootOpts = root(input);
|
|
5733
|
+
if (configIsApplicable(rootOpts, dirname4, context, input.filepath)) {
|
|
5734
5734
|
flattenedConfigs.push({ config: rootOpts, envName: void 0, index: void 0 });
|
|
5735
5735
|
const envOpts = env(input, context.envName);
|
|
5736
|
-
envOpts && configIsApplicable(envOpts,
|
|
5736
|
+
envOpts && configIsApplicable(envOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: envOpts, envName: context.envName, index: void 0 }), (rootOpts.options.overrides || []).forEach((_5, index) => {
|
|
5737
5737
|
const overrideOps = overrides(input, index);
|
|
5738
|
-
if (configIsApplicable(overrideOps,
|
|
5738
|
+
if (configIsApplicable(overrideOps, dirname4, context, input.filepath)) {
|
|
5739
5739
|
flattenedConfigs.push({ config: overrideOps, index, envName: void 0 });
|
|
5740
5740
|
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
|
5741
|
-
overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
5741
|
+
overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: overrideEnvOpts, index, envName: context.envName });
|
|
5742
5742
|
}
|
|
5743
5743
|
});
|
|
5744
5744
|
}
|
|
5745
|
-
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only,
|
|
5745
|
+
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname4))) return null;
|
|
5746
5746
|
const chain = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
5747
5747
|
for (const { config, index, envName } of flattenedConfigs) {
|
|
5748
|
-
if (!(yield* mergeExtendsChain(chain, config.options,
|
|
5748
|
+
if (!(yield* mergeExtendsChain(chain, config.options, dirname4, context, files, baseLogger))) return null;
|
|
5749
5749
|
logger(config, index, envName), yield* mergeChainOpts(chain, config);
|
|
5750
5750
|
}
|
|
5751
5751
|
return chain;
|
|
5752
5752
|
};
|
|
5753
5753
|
}
|
|
5754
5754
|
__name(makeChainWalker, "makeChainWalker");
|
|
5755
|
-
function* mergeExtendsChain(chain, opts,
|
|
5755
|
+
function* mergeExtendsChain(chain, opts, dirname4, context, files, baseLogger) {
|
|
5756
5756
|
if (void 0 === opts.extends) return true;
|
|
5757
|
-
const file = yield* (0, _index.loadConfig)(opts.extends,
|
|
5757
|
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname4, context.envName, context.caller);
|
|
5758
5758
|
if (files.has(file)) throw new Error(`Configuration cycle detected loading ${file.filepath}.
|
|
5759
5759
|
File already loaded following the config chain:
|
|
5760
5760
|
` + Array.from(files, (file2) => ` - ${file2.filepath}`).join("\n"));
|
|
@@ -5794,40 +5794,40 @@ File already loaded following the config chain:
|
|
|
5794
5794
|
return descriptors2.reduce((acc, desc) => (acc.push(desc.value), acc), []);
|
|
5795
5795
|
}
|
|
5796
5796
|
__name(dedupDescriptors, "dedupDescriptors");
|
|
5797
|
-
function configIsApplicable({ options },
|
|
5798
|
-
return (void 0 === options.test || configFieldIsApplicable(context, options.test,
|
|
5797
|
+
function configIsApplicable({ options }, dirname4, context, configName) {
|
|
5798
|
+
return (void 0 === options.test || configFieldIsApplicable(context, options.test, dirname4, configName)) && (void 0 === options.include || configFieldIsApplicable(context, options.include, dirname4, configName)) && (void 0 === options.exclude || !configFieldIsApplicable(context, options.exclude, dirname4, configName));
|
|
5799
5799
|
}
|
|
5800
5800
|
__name(configIsApplicable, "configIsApplicable");
|
|
5801
|
-
function configFieldIsApplicable(context, test,
|
|
5802
|
-
return matchesPatterns(context, Array.isArray(test) ? test : [test],
|
|
5801
|
+
function configFieldIsApplicable(context, test, dirname4, configName) {
|
|
5802
|
+
return matchesPatterns(context, Array.isArray(test) ? test : [test], dirname4, configName);
|
|
5803
5803
|
}
|
|
5804
5804
|
__name(configFieldIsApplicable, "configFieldIsApplicable");
|
|
5805
5805
|
function ignoreListReplacer(_key, value2) {
|
|
5806
5806
|
return value2 instanceof RegExp ? String(value2) : value2;
|
|
5807
5807
|
}
|
|
5808
5808
|
__name(ignoreListReplacer, "ignoreListReplacer");
|
|
5809
|
-
function shouldIgnore(context, ignore, only,
|
|
5810
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
5809
|
+
function shouldIgnore(context, ignore, only, dirname4) {
|
|
5810
|
+
if (ignore && matchesPatterns(context, ignore, dirname4)) {
|
|
5811
5811
|
var _context$filename;
|
|
5812
|
-
const message = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${
|
|
5812
|
+
const message = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname4}"`;
|
|
5813
5813
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
5814
5814
|
}
|
|
5815
|
-
if (only && !matchesPatterns(context, only,
|
|
5815
|
+
if (only && !matchesPatterns(context, only, dirname4)) {
|
|
5816
5816
|
var _context$filename2;
|
|
5817
|
-
const message = `No config is applied to "${null != (_context$filename2 = context.filename) ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${
|
|
5817
|
+
const message = `No config is applied to "${null != (_context$filename2 = context.filename) ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname4}"`;
|
|
5818
5818
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
5819
5819
|
}
|
|
5820
5820
|
return false;
|
|
5821
5821
|
}
|
|
5822
5822
|
__name(shouldIgnore, "shouldIgnore");
|
|
5823
|
-
function matchesPatterns(context, patterns,
|
|
5824
|
-
return patterns.some((pattern) => matchPattern(pattern,
|
|
5823
|
+
function matchesPatterns(context, patterns, dirname4, configName) {
|
|
5824
|
+
return patterns.some((pattern) => matchPattern(pattern, dirname4, context.filename, context, configName));
|
|
5825
5825
|
}
|
|
5826
5826
|
__name(matchesPatterns, "matchesPatterns");
|
|
5827
|
-
function matchPattern(pattern,
|
|
5828
|
-
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname:
|
|
5827
|
+
function matchPattern(pattern, dirname4, pathToTest, context, configName) {
|
|
5828
|
+
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname: dirname4, envName: context.envName, caller: context.caller });
|
|
5829
5829
|
if ("string" != typeof pathToTest) throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
5830
|
-
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern,
|
|
5830
|
+
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern, dirname4)), pattern.test(pathToTest);
|
|
5831
5831
|
}
|
|
5832
5832
|
__name(matchPattern, "matchPattern");
|
|
5833
5833
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-chain.js"), "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js": /* @__PURE__ */ __name((__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
@@ -5839,30 +5839,30 @@ File already loaded following the config chain:
|
|
|
5839
5839
|
}, "_gensync"), data2;
|
|
5840
5840
|
}
|
|
5841
5841
|
__name(_gensync, "_gensync");
|
|
5842
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(
|
|
5842
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(dirname4, options, alias) {
|
|
5843
5843
|
const { plugins, presets, passPerPreset } = options;
|
|
5844
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5845
|
-
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(
|
|
5846
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5844
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname4), plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname4)(alias) : () => handlerOf([]), presets: presets ? () => createCachedPresetDescriptors(presets, dirname4)(alias)(!!passPerPreset) : () => handlerOf([]) };
|
|
5845
|
+
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(dirname4, options, alias) {
|
|
5846
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname4), plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname4, alias)), presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname4, alias, !!options.passPerPreset)) };
|
|
5847
5847
|
};
|
|
5848
5848
|
var _functional = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/functional.js"), _index = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/index.js"), _item = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/item.js"), _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"), _resolveTargets = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/resolve-targets.js");
|
|
5849
5849
|
function* handlerOf(value2) {
|
|
5850
5850
|
return value2;
|
|
5851
5851
|
}
|
|
5852
5852
|
__name(handlerOf, "handlerOf");
|
|
5853
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
5854
|
-
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,
|
|
5853
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname4) {
|
|
5854
|
+
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname4)), options;
|
|
5855
5855
|
}
|
|
5856
5856
|
__name(optionsWithResolvedBrowserslistConfigFile, "optionsWithResolvedBrowserslistConfigFile");
|
|
5857
5857
|
const PRESET_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5858
|
-
const
|
|
5858
|
+
const dirname4 = cache2.using((dir) => dir);
|
|
5859
5859
|
return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
|
5860
|
-
return (yield* createPresetDescriptors(items,
|
|
5860
|
+
return (yield* createPresetDescriptors(items, dirname4, alias, passPerPreset)).map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
|
5861
5861
|
}));
|
|
5862
5862
|
}), PLUGIN_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5863
|
-
const
|
|
5863
|
+
const dirname4 = cache2.using((dir) => dir);
|
|
5864
5864
|
return (0, _caching.makeStrongCache)(function* (alias) {
|
|
5865
|
-
return (yield* createPluginDescriptors(items,
|
|
5865
|
+
return (yield* createPluginDescriptors(items, dirname4, alias)).map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
|
5866
5866
|
});
|
|
5867
5867
|
}), DEFAULT_OPTIONS = {};
|
|
5868
5868
|
function loadCachedDescriptor(cache2, desc) {
|
|
@@ -5882,16 +5882,16 @@ File already loaded following the config chain:
|
|
|
5882
5882
|
return desc;
|
|
5883
5883
|
}
|
|
5884
5884
|
__name(loadCachedDescriptor, "loadCachedDescriptor");
|
|
5885
|
-
function* createPresetDescriptors(items,
|
|
5886
|
-
return yield* createDescriptors("preset", items,
|
|
5885
|
+
function* createPresetDescriptors(items, dirname4, alias, passPerPreset) {
|
|
5886
|
+
return yield* createDescriptors("preset", items, dirname4, alias, passPerPreset);
|
|
5887
5887
|
}
|
|
5888
5888
|
__name(createPresetDescriptors, "createPresetDescriptors");
|
|
5889
|
-
function* createPluginDescriptors(items,
|
|
5890
|
-
return yield* createDescriptors("plugin", items,
|
|
5889
|
+
function* createPluginDescriptors(items, dirname4, alias) {
|
|
5890
|
+
return yield* createDescriptors("plugin", items, dirname4, alias);
|
|
5891
5891
|
}
|
|
5892
5892
|
__name(createPluginDescriptors, "createPluginDescriptors");
|
|
5893
|
-
function* createDescriptors(type, items,
|
|
5894
|
-
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item,
|
|
5893
|
+
function* createDescriptors(type, items, dirname4, alias, ownPass) {
|
|
5894
|
+
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname4, { type, alias: `${alias}$${index}`, ownPass: !!ownPass })));
|
|
5895
5895
|
return function(items2) {
|
|
5896
5896
|
const map = /* @__PURE__ */ new Map();
|
|
5897
5897
|
for (const item of items2) {
|
|
@@ -5906,7 +5906,7 @@ File already loaded following the config chain:
|
|
|
5906
5906
|
}(descriptors2), descriptors2;
|
|
5907
5907
|
}
|
|
5908
5908
|
__name(createDescriptors, "createDescriptors");
|
|
5909
|
-
function* createDescriptor(pair,
|
|
5909
|
+
function* createDescriptor(pair, dirname4, { type, alias, ownPass }) {
|
|
5910
5910
|
const desc = (0, _item.getItemDescriptor)(pair);
|
|
5911
5911
|
if (desc) return desc;
|
|
5912
5912
|
let name, options, file, value2 = pair;
|
|
@@ -5915,7 +5915,7 @@ File already loaded following the config chain:
|
|
|
5915
5915
|
if ("string" == typeof value2) {
|
|
5916
5916
|
if ("string" != typeof type) throw new Error("To resolve a string-based item, the type of item must be given");
|
|
5917
5917
|
const resolver = "plugin" === type ? _index.loadPlugin : _index.loadPreset, request = value2;
|
|
5918
|
-
({ filepath, value: value2 } = yield* resolver(value2,
|
|
5918
|
+
({ filepath, value: value2 } = yield* resolver(value2, dirname4)), file = { request, resolved: filepath };
|
|
5919
5919
|
}
|
|
5920
5920
|
if (!value2) throw new Error(`Unexpected falsy value: ${String(value2)}`);
|
|
5921
5921
|
if ("object" == typeof value2 && value2.__esModule) {
|
|
@@ -5924,7 +5924,7 @@ File already loaded following the config chain:
|
|
|
5924
5924
|
}
|
|
5925
5925
|
if ("object" != typeof value2 && "function" != typeof value2) throw new Error(`Unsupported format: ${typeof value2}. Expected an object or a function.`);
|
|
5926
5926
|
if (null !== filepath && "object" == typeof value2 && value2) throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
|
5927
|
-
return { name, alias: filepath || alias, value: value2, options, dirname:
|
|
5927
|
+
return { name, alias: filepath || alias, value: value2, options, dirname: dirname4, ownPass, file };
|
|
5928
5928
|
}
|
|
5929
5929
|
__name(createDescriptor, "createDescriptor");
|
|
5930
5930
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js"), "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/configuration.js": /* @__PURE__ */ __name((__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
@@ -5965,41 +5965,41 @@ File already loaded following the config chain:
|
|
|
5965
5965
|
}
|
|
5966
5966
|
__name(_gensync, "_gensync");
|
|
5967
5967
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.ROOT_CONFIG_FILENAMES = void 0, exports3.findConfigUpwards = function(rootDir) {
|
|
5968
|
-
let
|
|
5968
|
+
let dirname4 = rootDir;
|
|
5969
5969
|
for (; ; ) {
|
|
5970
|
-
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(
|
|
5971
|
-
const nextDir = _path().dirname(
|
|
5972
|
-
if (
|
|
5973
|
-
|
|
5970
|
+
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(dirname4, filename))) return dirname4;
|
|
5971
|
+
const nextDir = _path().dirname(dirname4);
|
|
5972
|
+
if (dirname4 === nextDir) break;
|
|
5973
|
+
dirname4 = nextDir;
|
|
5974
5974
|
}
|
|
5975
5975
|
return null;
|
|
5976
5976
|
}, exports3.findRelativeConfig = function* (packageData, envName, caller) {
|
|
5977
5977
|
let config = null, ignore = null;
|
|
5978
|
-
const
|
|
5978
|
+
const dirname4 = _path().dirname(packageData.filepath);
|
|
5979
5979
|
for (const loc of packageData.directories) {
|
|
5980
5980
|
var _packageData$pkg;
|
|
5981
5981
|
if (!config) config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, (null == (_packageData$pkg = packageData.pkg) ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null);
|
|
5982
5982
|
if (!ignore) {
|
|
5983
5983
|
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
|
5984
|
-
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath,
|
|
5984
|
+
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath, dirname4);
|
|
5985
5985
|
}
|
|
5986
5986
|
}
|
|
5987
5987
|
return { config, ignore };
|
|
5988
|
-
}, exports3.findRootConfig = function(
|
|
5989
|
-
return loadOneConfig(ROOT_CONFIG_FILENAMES,
|
|
5990
|
-
}, exports3.loadConfig = function* (name,
|
|
5988
|
+
}, exports3.findRootConfig = function(dirname4, envName, caller) {
|
|
5989
|
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname4, envName, caller);
|
|
5990
|
+
}, exports3.loadConfig = function* (name, dirname4, envName, caller) {
|
|
5991
5991
|
const filepath = (v4 = process.versions.node, w5 = "8.9", v4 = v4.split("."), w5 = w5.split("."), +v4[0] > +w5[0] || v4[0] == w5[0] && +v4[1] >= +w5[1] ? __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve : (r4, { paths: [b6] }, M4 = __webpack_require__2("module")) => {
|
|
5992
5992
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
5993
5993
|
if (f2) return f2;
|
|
5994
5994
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
5995
|
-
})(name, { paths: [
|
|
5995
|
+
})(name, { paths: [dirname4] }), conf = yield* readConfig(filepath, envName, caller);
|
|
5996
5996
|
var v4, w5;
|
|
5997
5997
|
if (!conf) throw new _configError.default("Config file contains no configuration data", filepath);
|
|
5998
|
-
return debug2("Loaded config %o from %o.", name,
|
|
5999
|
-
}, exports3.resolveShowConfigPath = function* (
|
|
5998
|
+
return debug2("Loaded config %o from %o.", name, dirname4), conf;
|
|
5999
|
+
}, exports3.resolveShowConfigPath = function* (dirname4) {
|
|
6000
6000
|
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
|
6001
6001
|
if (null != targetPath) {
|
|
6002
|
-
const absolutePath = _path().resolve(
|
|
6002
|
+
const absolutePath = _path().resolve(dirname4, targetPath);
|
|
6003
6003
|
if (!(yield* fs2.stat(absolutePath)).isFile()) throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
|
6004
6004
|
return absolutePath;
|
|
6005
6005
|
}
|
|
@@ -6080,15 +6080,15 @@ module.exports = function(api) {
|
|
|
6080
6080
|
for (const pattern of ignorePatterns) if ("!" === pattern[0]) throw new _configError.default("Negation of file paths is not supported.", filepath);
|
|
6081
6081
|
return { filepath, dirname: _path().dirname(filepath), ignore: ignorePatterns.map((pattern) => (0, _patternToRegex.default)(pattern, ignoreDir)) };
|
|
6082
6082
|
});
|
|
6083
|
-
function* loadOneConfig(names,
|
|
6084
|
-
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(
|
|
6083
|
+
function* loadOneConfig(names, dirname4, envName, caller, previousConfig = null) {
|
|
6084
|
+
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname4, filename), envName, caller)))).reduce((previousConfig2, config2) => {
|
|
6085
6085
|
if (config2 && previousConfig2) throw new _configError.default(`Multiple configuration files found. Please remove one:
|
|
6086
6086
|
- ${_path().basename(previousConfig2.filepath)}
|
|
6087
6087
|
- ${config2.filepath}
|
|
6088
|
-
from ${
|
|
6088
|
+
from ${dirname4}`);
|
|
6089
6089
|
return config2 || previousConfig2;
|
|
6090
6090
|
}, previousConfig);
|
|
6091
|
-
return config && debug2("Found configuration %o from %o.", config.filepath,
|
|
6091
|
+
return config && debug2("Found configuration %o from %o.", config.filepath, dirname4), config;
|
|
6092
6092
|
}
|
|
6093
6093
|
__name(loadOneConfig, "loadOneConfig");
|
|
6094
6094
|
function readConfig(filepath, envName, caller) {
|
|
@@ -6296,15 +6296,15 @@ packageExtensions:
|
|
|
6296
6296
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.findPackageData = function* (filepath) {
|
|
6297
6297
|
let pkg = null;
|
|
6298
6298
|
const directories = [];
|
|
6299
|
-
let isPackage = true,
|
|
6300
|
-
for (; !pkg && "node_modules" !== _path().basename(
|
|
6301
|
-
directories.push(
|
|
6302
|
-
const nextLoc = _path().dirname(
|
|
6303
|
-
if (
|
|
6299
|
+
let isPackage = true, dirname4 = _path().dirname(filepath);
|
|
6300
|
+
for (; !pkg && "node_modules" !== _path().basename(dirname4); ) {
|
|
6301
|
+
directories.push(dirname4), pkg = yield* readConfigPackage(_path().join(dirname4, PACKAGE_FILENAME));
|
|
6302
|
+
const nextLoc = _path().dirname(dirname4);
|
|
6303
|
+
if (dirname4 === nextLoc) {
|
|
6304
6304
|
isPackage = false;
|
|
6305
6305
|
break;
|
|
6306
6306
|
}
|
|
6307
|
-
|
|
6307
|
+
dirname4 = nextLoc;
|
|
6308
6308
|
}
|
|
6309
6309
|
return { filepath, directories, pkg, isPackage };
|
|
6310
6310
|
};
|
|
@@ -6337,12 +6337,12 @@ packageExtensions:
|
|
|
6337
6337
|
}, "_path"), data2;
|
|
6338
6338
|
}
|
|
6339
6339
|
__name(_path, "_path");
|
|
6340
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name,
|
|
6341
|
-
const { filepath, loader } = resolvePlugin(name,
|
|
6342
|
-
return debug2("Loaded plugin %o from %o.", name,
|
|
6343
|
-
}, exports3.loadPreset = function* (name,
|
|
6344
|
-
const { filepath, loader } = resolvePreset(name,
|
|
6345
|
-
return debug2("Loaded preset %o from %o.", name,
|
|
6340
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name, dirname4) {
|
|
6341
|
+
const { filepath, loader } = resolvePlugin(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("plugin", loader, filepath);
|
|
6342
|
+
return debug2("Loaded plugin %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
6343
|
+
}, exports3.loadPreset = function* (name, dirname4) {
|
|
6344
|
+
const { filepath, loader } = resolvePreset(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("preset", loader, filepath);
|
|
6345
|
+
return debug2("Loaded preset %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
6346
6346
|
}, exports3.resolvePreset = exports3.resolvePlugin = void 0;
|
|
6347
6347
|
var _async = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/async.js"), _moduleTypes = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/module-types.js");
|
|
6348
6348
|
function _url() {
|
|
@@ -6384,13 +6384,13 @@ packageExtensions:
|
|
|
6384
6384
|
throw error.message += "\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n", error;
|
|
6385
6385
|
}
|
|
6386
6386
|
__name(resolveAlternativesHelper, "resolveAlternativesHelper");
|
|
6387
|
-
function tryRequireResolve(id,
|
|
6387
|
+
function tryRequireResolve(id, dirname4) {
|
|
6388
6388
|
try {
|
|
6389
|
-
return
|
|
6389
|
+
return dirname4 ? { error: null, value: (v4 = process.versions.node, w5 = "8.9", v4 = v4.split("."), w5 = w5.split("."), +v4[0] > +w5[0] || v4[0] == w5[0] && +v4[1] >= +w5[1] ? __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve : (r4, { paths: [b6] }, M4 = __webpack_require__2("module")) => {
|
|
6390
6390
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
6391
6391
|
if (f2) return f2;
|
|
6392
6392
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6393
|
-
})(id, { paths: [
|
|
6393
|
+
})(id, { paths: [dirname4] }) } : { error: null, value: __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve(id) };
|
|
6394
6394
|
} catch (error) {
|
|
6395
6395
|
return { error, value: null };
|
|
6396
6396
|
}
|
|
@@ -6405,27 +6405,27 @@ packageExtensions:
|
|
|
6405
6405
|
}
|
|
6406
6406
|
}
|
|
6407
6407
|
__name(tryImportMetaResolve, "tryImportMetaResolve");
|
|
6408
|
-
function resolveStandardizedNameForRequire(type, name,
|
|
6408
|
+
function resolveStandardizedNameForRequire(type, name, dirname4) {
|
|
6409
6409
|
const it = resolveAlternativesHelper(type, name);
|
|
6410
6410
|
let res = it.next();
|
|
6411
|
-
for (; !res.done; ) res = it.next(tryRequireResolve(res.value,
|
|
6411
|
+
for (; !res.done; ) res = it.next(tryRequireResolve(res.value, dirname4));
|
|
6412
6412
|
return { loader: "require", filepath: res.value };
|
|
6413
6413
|
}
|
|
6414
6414
|
__name(resolveStandardizedNameForRequire, "resolveStandardizedNameForRequire");
|
|
6415
|
-
function resolveStandardizedName(type, name,
|
|
6416
|
-
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name,
|
|
6415
|
+
function resolveStandardizedName(type, name, dirname4, allowAsync) {
|
|
6416
|
+
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
6417
6417
|
try {
|
|
6418
|
-
const resolved = function(type2, name2,
|
|
6419
|
-
const parentUrl = (0, _url().pathToFileURL)(_path().join(
|
|
6418
|
+
const resolved = function(type2, name2, dirname5) {
|
|
6419
|
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname5, "./babel-virtual-resolve-base.js")).href, it = resolveAlternativesHelper(type2, name2);
|
|
6420
6420
|
let res = it.next();
|
|
6421
6421
|
for (; !res.done; ) res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
|
6422
6422
|
return { loader: "auto", filepath: (0, _url().fileURLToPath)(res.value) };
|
|
6423
|
-
}(type, name,
|
|
6424
|
-
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${
|
|
6423
|
+
}(type, name, dirname4);
|
|
6424
|
+
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname4}.`), { type: "MODULE_NOT_FOUND" });
|
|
6425
6425
|
return resolved;
|
|
6426
6426
|
} catch (e2) {
|
|
6427
6427
|
try {
|
|
6428
|
-
return resolveStandardizedNameForRequire(type, name,
|
|
6428
|
+
return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
6429
6429
|
} catch (e22) {
|
|
6430
6430
|
if ("MODULE_NOT_FOUND" === e2.type) throw e2;
|
|
6431
6431
|
if ("MODULE_NOT_FOUND" === e22.type) throw e22;
|
|
@@ -6561,7 +6561,7 @@ packageExtensions:
|
|
|
6561
6561
|
};
|
|
6562
6562
|
}
|
|
6563
6563
|
__name(enhanceError, "enhanceError");
|
|
6564
|
-
const makeDescriptorLoader = /* @__PURE__ */ __name((apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6564
|
+
const makeDescriptorLoader = /* @__PURE__ */ __name((apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname4, alias }, cache2) {
|
|
6565
6565
|
if (false === options) throw new Error("Assertion failure");
|
|
6566
6566
|
options = options || {};
|
|
6567
6567
|
const externalDependencies = [];
|
|
@@ -6569,7 +6569,7 @@ packageExtensions:
|
|
|
6569
6569
|
if ("function" == typeof value2) {
|
|
6570
6570
|
const factory = (0, _async.maybeAsync)(value2, "You appear to be using an async plugin/preset, but Babel has been called synchronously"), api = Object.assign({}, context, apiFactory(cache2, externalDependencies));
|
|
6571
6571
|
try {
|
|
6572
|
-
item = yield* factory(api, options,
|
|
6572
|
+
item = yield* factory(api, options, dirname4);
|
|
6573
6573
|
} catch (e2) {
|
|
6574
6574
|
throw alias && (e2.message += ` (While processing: ${JSON.stringify(alias)})`), e2;
|
|
6575
6575
|
}
|
|
@@ -6581,11 +6581,11 @@ packageExtensions:
|
|
|
6581
6581
|
throw cache2.configured() ? error += " has been configured to never be invalidated. " : error += "has not been configured to be invalidated when the external dependencies change. ", error += `Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`
|
|
6582
6582
|
(While processing: ${JSON.stringify(alias)})`, new Error(error);
|
|
6583
6583
|
}
|
|
6584
|
-
return { value: item, options, dirname:
|
|
6585
|
-
}), "makeDescriptorLoader"), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6584
|
+
return { value: item, options, dirname: dirname4, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
|
|
6585
|
+
}), "makeDescriptorLoader"), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname4, alias, externalDependencies }, cache2) {
|
|
6586
6586
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
6587
6587
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
6588
|
-
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname:
|
|
6588
|
+
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname: dirname4 }, inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, (run2) => cache2.invalidate((data2) => run2(inheritsDescriptor, data2)));
|
|
6589
6589
|
plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre), plugin.post = chainMaybeAsync(inherits.post, plugin.post), plugin.manipulateOptions = chainMaybeAsync(inherits.manipulateOptions, plugin.manipulateOptions), plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]), inherits.externalDependencies.length > 0 && (externalDependencies = 0 === externalDependencies.length ? inherits.externalDependencies : (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]));
|
|
6590
6590
|
}
|
|
6591
6591
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
@@ -6609,7 +6609,7 @@ packageExtensions:
|
|
|
6609
6609
|
const { options } = preset;
|
|
6610
6610
|
validateIfOptionNeedsFilename(options, descriptor), null == (_options$overrides = options.overrides) || _options$overrides.forEach((overrideOptions) => validateIfOptionNeedsFilename(overrideOptions, descriptor));
|
|
6611
6611
|
}
|
|
6612
|
-
}, "validatePreset"), instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname:
|
|
6612
|
+
}, "validatePreset"), instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname: dirname4, alias, externalDependencies }) => ({ options: (0, _options.validate)("preset", value2), alias, dirname: dirname4, externalDependencies }));
|
|
6613
6613
|
function* loadPresetDescriptor(descriptor, context2) {
|
|
6614
6614
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
6615
6615
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
@@ -6740,8 +6740,8 @@ packageExtensions:
|
|
|
6740
6740
|
}, "_path"), data2;
|
|
6741
6741
|
}
|
|
6742
6742
|
__name(_path, "_path");
|
|
6743
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname:
|
|
6744
|
-
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(
|
|
6743
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname: dirname4 = ".", type } = {}) {
|
|
6744
|
+
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname4), { type, alias: "programmatic item" }));
|
|
6745
6745
|
}, exports3.createItemFromDescriptor = createItemFromDescriptor, exports3.getItemDescriptor = function(item) {
|
|
6746
6746
|
if (null != item && item[CONFIG_ITEM_BRAND]) return item._descriptor;
|
|
6747
6747
|
return;
|
|
@@ -6796,7 +6796,7 @@ packageExtensions:
|
|
|
6796
6796
|
const _excluded = ["showIgnoredFiles"];
|
|
6797
6797
|
function* loadPrivatePartialConfig(inputOpts) {
|
|
6798
6798
|
if (null != inputOpts && ("object" != typeof inputOpts || Array.isArray(inputOpts))) throw new Error("Babel options must be an object, null, or undefined");
|
|
6799
|
-
const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd:
|
|
6799
|
+
const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd: cwd3 = ".", root: rootDir = ".", rootMode = "root", caller, cloneInputAst = true } = args, absoluteCwd = _path().resolve(cwd3), absoluteRootDir = function(rootDir2, rootMode2) {
|
|
6800
6800
|
switch (rootMode2) {
|
|
6801
6801
|
case "root":
|
|
6802
6802
|
return rootDir2;
|
|
@@ -6813,7 +6813,7 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6813
6813
|
default:
|
|
6814
6814
|
throw new Error("Assertion failure - unknown rootMode value.");
|
|
6815
6815
|
}
|
|
6816
|
-
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(
|
|
6816
|
+
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(cwd3, args.filename) : void 0, context = { filename, cwd: absoluteCwd, root: absoluteRootDir, envName, caller, showConfig: (yield* (0, _index.resolveShowConfigPath)(absoluteCwd)) === filename }, configChain = yield* (0, _configChain.buildRootChain)(args, context);
|
|
6817
6817
|
if (!configChain) return null;
|
|
6818
6818
|
const merged = { assumptions: {} };
|
|
6819
6819
|
configChain.options.forEach((opts) => {
|
|
@@ -6843,14 +6843,14 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6843
6843
|
}, "_path"), data2;
|
|
6844
6844
|
}
|
|
6845
6845
|
__name(_path, "_path");
|
|
6846
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern,
|
|
6847
|
-
const parts = _path().resolve(
|
|
6846
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern, dirname4) {
|
|
6847
|
+
const parts = _path().resolve(dirname4, pattern).split(_path().sep);
|
|
6848
6848
|
return new RegExp(["^", ...parts.map((part, i2) => {
|
|
6849
6849
|
const last = i2 === parts.length - 1;
|
|
6850
|
-
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep :
|
|
6850
|
+
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep3) : escapeRegExp(part) + (last ? endSep : sep3);
|
|
6851
6851
|
})].join(""));
|
|
6852
6852
|
};
|
|
6853
|
-
const
|
|
6853
|
+
const sep3 = `\\${_path().sep}`, endSep = `(?:${sep3}|$)`, substitution = `[^${sep3}]+`, starPat = `(?:${substitution}${sep3})`, starPatLast = `(?:${substitution}${endSep})`, starStarPat = `${starPat}*?`, starStarPatLast = `${starPat}*?${starPatLast}?`;
|
|
6854
6854
|
function escapeRegExp(string) {
|
|
6855
6855
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
6856
6856
|
}
|
|
@@ -7412,12 +7412,12 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7412
7412
|
if (!result) {
|
|
7413
7413
|
if (resultP) return promiseReferenced = true, yield* (0, _async.waitFor)(resultP);
|
|
7414
7414
|
if (yield* (0, _async.isAsync)()) {
|
|
7415
|
-
let
|
|
7415
|
+
let resolve4, reject;
|
|
7416
7416
|
resultP = new Promise((res, rej) => {
|
|
7417
|
-
|
|
7417
|
+
resolve4 = res, reject = rej;
|
|
7418
7418
|
});
|
|
7419
7419
|
try {
|
|
7420
|
-
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced &&
|
|
7420
|
+
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced && resolve4(result.value);
|
|
7421
7421
|
} catch (error) {
|
|
7422
7422
|
result = { ok: false, value: error }, resultP = null, promiseReferenced && reject(error);
|
|
7423
7423
|
}
|
|
@@ -7524,8 +7524,8 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7524
7524
|
var _index2 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/index.js"), _transform = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform.js"), _transformFile = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform-file.js"), _transformAst = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform-ast.js"), _parse = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/parse.js");
|
|
7525
7525
|
__webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js");
|
|
7526
7526
|
exports3.version = "7.26.0";
|
|
7527
|
-
exports3.resolvePlugin = (name,
|
|
7528
|
-
exports3.resolvePreset = (name,
|
|
7527
|
+
exports3.resolvePlugin = (name, dirname4) => resolvers.resolvePlugin(name, dirname4, false).filepath;
|
|
7528
|
+
exports3.resolvePreset = (name, dirname4) => resolvers.resolvePreset(name, dirname4, false).filepath;
|
|
7529
7529
|
exports3.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
7530
7530
|
exports3.OptionManager = class {
|
|
7531
7531
|
init(opts) {
|
|
@@ -8177,7 +8177,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8177
8177
|
}
|
|
8178
8178
|
__name(_path, "_path");
|
|
8179
8179
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(config) {
|
|
8180
|
-
const { filename, cwd:
|
|
8180
|
+
const { filename, cwd: cwd3, filenameRelative = "string" == typeof filename ? _path().relative(cwd3, filename) : "unknown", sourceType = "module", inputSourceMap, sourceMaps = !!inputSourceMap, sourceRoot = config.options.moduleRoot, sourceFileName = _path().basename(filenameRelative), comments = true, compact = "auto" } = config.options, opts = config.options, options = Object.assign({}, opts, { parserOpts: Object.assign({ sourceType: ".mjs" === _path().extname(filenameRelative) ? "module" : sourceType, sourceFileName: filename, plugins: [] }, opts.parserOpts), generatorOpts: Object.assign({ filename, auxiliaryCommentBefore: opts.auxiliaryCommentBefore, auxiliaryCommentAfter: opts.auxiliaryCommentAfter, retainLines: opts.retainLines, comments, shouldPrintComment: opts.shouldPrintComment, compact, minified: opts.minified, sourceMaps, sourceRoot, sourceFileName }, opts.generatorOpts) });
|
|
8181
8181
|
for (const plugins of config.passes) for (const plugin of plugins) plugin.manipulateOptions && plugin.manipulateOptions(options, options.parserOpts);
|
|
8182
8182
|
return options;
|
|
8183
8183
|
};
|
|
@@ -8509,8 +8509,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8509
8509
|
const packageType = getPackageType2(url);
|
|
8510
8510
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
8511
8511
|
}
|
|
8512
|
-
const
|
|
8513
|
-
if (
|
|
8512
|
+
const format4 = extensionFormatMap2[value2];
|
|
8513
|
+
if (format4) return format4;
|
|
8514
8514
|
if (ignoreErrors) return;
|
|
8515
8515
|
const filepath = (0, _url().fileURLToPath)(url);
|
|
8516
8516
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -9878,11 +9878,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9878
9878
|
printer.tokenMap && node.start && node.end ? printer.tokenMap.endMatches(node, ",") ? printer.token(",") : printer.tokenMap.endMatches(node, ";") && printer.semicolon() : printer.semicolon();
|
|
9879
9879
|
}
|
|
9880
9880
|
__name(maybePrintTrailingCommaOrSemicolon, "maybePrintTrailingCommaOrSemicolon");
|
|
9881
|
-
function tsPrintUnionOrIntersectionType(printer, node,
|
|
9881
|
+
function tsPrintUnionOrIntersectionType(printer, node, sep3) {
|
|
9882
9882
|
var _printer$tokenMap;
|
|
9883
9883
|
let hasLeadingToken = 0;
|
|
9884
|
-
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node,
|
|
9885
|
-
this.space(), this.token(
|
|
9884
|
+
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node, sep3) && (hasLeadingToken = 1, printer.token(sep3)), printer.printJoin(node.types, void 0, void 0, function(i2) {
|
|
9885
|
+
this.space(), this.token(sep3, null, i2 + hasLeadingToken), this.space();
|
|
9886
9886
|
});
|
|
9887
9887
|
}
|
|
9888
9888
|
__name(tsPrintUnionOrIntersectionType, "tsPrintUnionOrIntersectionType");
|
|
@@ -10106,8 +10106,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10106
10106
|
}, "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/generators/typescript.js"), "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/index.js": /* @__PURE__ */ __name((__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
10107
10107
|
"use strict";
|
|
10108
10108
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(ast, opts = {}, code) {
|
|
10109
|
-
const
|
|
10110
|
-
return new _printer.default(
|
|
10109
|
+
const format4 = normalizeOptions(code, opts, ast), map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
10110
|
+
return new _printer.default(format4, map, ast.tokens, "string" == typeof code ? code : null).generate(ast);
|
|
10111
10111
|
};
|
|
10112
10112
|
var _sourceMap = __webpack_require__2("./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/source-map.js"), _printer = __webpack_require__2("./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/printer.js");
|
|
10113
10113
|
function normalizeOptions(code, opts, ast) {
|
|
@@ -10119,11 +10119,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10119
10119
|
if (opts.jsescOption) throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
|
|
10120
10120
|
if (!Array.isArray(ast.tokens)) throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.");
|
|
10121
10121
|
}
|
|
10122
|
-
const
|
|
10122
|
+
const format4 = { auxiliaryCommentBefore: opts.auxiliaryCommentBefore, auxiliaryCommentAfter: opts.auxiliaryCommentAfter, shouldPrintComment: opts.shouldPrintComment, preserveFormat: opts.experimental_preserveFormat, retainLines: opts.retainLines, retainFunctionParens: opts.retainFunctionParens, comments: null == opts.comments || opts.comments, compact: opts.compact, minified: opts.minified, concise: opts.concise, indent: { adjustMultilineComment: true, style: " " }, jsescOption: Object.assign({ quotes: "double", wrap: true, minimal: false }, opts.jsescOption), topicToken: opts.topicToken, importAttributesKeyword: opts.importAttributesKeyword };
|
|
10123
10123
|
var _opts$recordAndTupleS;
|
|
10124
|
-
|
|
10125
|
-
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =
|
|
10126
|
-
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (
|
|
10124
|
+
format4.decoratorsBeforeExport = opts.decoratorsBeforeExport, format4.jsescOption.json = opts.jsonCompatibleStrings, format4.recordAndTupleSyntaxType = null != (_opts$recordAndTupleS = opts.recordAndTupleSyntaxType) ? _opts$recordAndTupleS : "hash", format4.minified ? (format4.compact = true, format4.shouldPrintComment = format4.shouldPrintComment || (() => format4.comments)) : format4.shouldPrintComment = format4.shouldPrintComment || ((value2) => format4.comments || value2.includes("@license") || value2.includes("@preserve")), "auto" === format4.compact && (format4.compact = "string" == typeof code && code.length > 5e5, format4.compact && console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${opts.filename} as it exceeds the max of 500KB.`)), (format4.compact || format4.preserveFormat) && (format4.indent.adjustMultilineComment = false);
|
|
10125
|
+
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } = format4;
|
|
10126
|
+
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (format4.auxiliaryCommentBefore = void 0), auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter) && (format4.auxiliaryCommentAfter = void 0), format4;
|
|
10127
10127
|
}
|
|
10128
10128
|
__name(normalizeOptions, "normalizeOptions");
|
|
10129
10129
|
exports3.CodeGenerator = class {
|
|
@@ -10399,8 +10399,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10399
10399
|
static {
|
|
10400
10400
|
__name(this, "Printer");
|
|
10401
10401
|
}
|
|
10402
|
-
constructor(
|
|
10403
|
-
this.inForStatementInit = false, this.tokenContext = 0, this._tokens = null, this._originalCode = null, this._currentNode = null, this._indent = 0, this._indentRepeat = 0, this._insideAux = false, this._noLineTerminator = false, this._noLineTerminatorAfterNode = null, this._printAuxAfterOnNextUserNode = false, this._printedComments = /* @__PURE__ */ new Set(), this._endsWithInteger = false, this._endsWithWord = false, this._endsWithDiv = false, this._lastCommentLine = 0, this._endsWithInnerRaw = false, this._indentInnerComments = true, this.tokenMap = null, this._boundGetRawIdentifier = this._getRawIdentifier.bind(this), this._printSemicolonBeforeNextNode = -1, this._printSemicolonBeforeNextToken = -1, this.format =
|
|
10402
|
+
constructor(format4, map, tokens, originalCode) {
|
|
10403
|
+
this.inForStatementInit = false, this.tokenContext = 0, this._tokens = null, this._originalCode = null, this._currentNode = null, this._indent = 0, this._indentRepeat = 0, this._insideAux = false, this._noLineTerminator = false, this._noLineTerminatorAfterNode = null, this._printAuxAfterOnNextUserNode = false, this._printedComments = /* @__PURE__ */ new Set(), this._endsWithInteger = false, this._endsWithWord = false, this._endsWithDiv = false, this._lastCommentLine = 0, this._endsWithInnerRaw = false, this._indentInnerComments = true, this.tokenMap = null, this._boundGetRawIdentifier = this._getRawIdentifier.bind(this), this._printSemicolonBeforeNextNode = -1, this._printSemicolonBeforeNextToken = -1, this.format = format4, this._tokens = tokens, this._originalCode = originalCode, this._indentRepeat = format4.indent.style.length, this._inputMap = null == map ? void 0 : map._inputMap, this._buf = new _buffer.default(map, format4.indent.style[0]);
|
|
10404
10404
|
}
|
|
10405
10405
|
enterForStatementInit() {
|
|
10406
10406
|
return this.inForStatementInit ? () => {
|
|
@@ -10419,12 +10419,12 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10419
10419
|
return this.format.preserveFormat && (this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode)), this.print(ast), this._maybeAddAuxComment(), this._buf.get();
|
|
10420
10420
|
}
|
|
10421
10421
|
indent() {
|
|
10422
|
-
const { format:
|
|
10423
|
-
|
|
10422
|
+
const { format: format4 } = this;
|
|
10423
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent++;
|
|
10424
10424
|
}
|
|
10425
10425
|
dedent() {
|
|
10426
|
-
const { format:
|
|
10427
|
-
|
|
10426
|
+
const { format: format4 } = this;
|
|
10427
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent--;
|
|
10428
10428
|
}
|
|
10429
10429
|
semicolon(force = false) {
|
|
10430
10430
|
if (this._maybeAddAuxComment(), force) return this._appendChar(59), void (this._noLineTerminator = false);
|
|
@@ -10445,8 +10445,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10445
10445
|
this.sourceWithOffset("end", node.loc, -1), this.tokenChar(41);
|
|
10446
10446
|
}
|
|
10447
10447
|
space(force = false) {
|
|
10448
|
-
const { format:
|
|
10449
|
-
if (!
|
|
10448
|
+
const { format: format4 } = this;
|
|
10449
|
+
if (!format4.compact && !format4.preserveFormat) {
|
|
10450
10450
|
if (force) this._space();
|
|
10451
10451
|
else if (this._buf.hasContent()) {
|
|
10452
10452
|
const lastCp = this.getLastChar();
|
|
@@ -10545,8 +10545,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10545
10545
|
for (let i2 = 0; i2 < count; i2++) this._newline();
|
|
10546
10546
|
}
|
|
10547
10547
|
_catchUp(prop, loc) {
|
|
10548
|
-
const { format:
|
|
10549
|
-
if (!
|
|
10548
|
+
const { format: format4 } = this;
|
|
10549
|
+
if (!format4.preserveFormat) return void (format4.retainLines && null != loc && loc[prop] && this.catchUp(loc[prop].line));
|
|
10550
10550
|
const pos = null == loc ? void 0 : loc[prop];
|
|
10551
10551
|
null != pos && this._catchUpTo(pos);
|
|
10552
10552
|
}
|
|
@@ -10570,8 +10570,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10570
10570
|
var _node$extra, _node$leadingComments, _node$leadingComments2;
|
|
10571
10571
|
if (!node) return;
|
|
10572
10572
|
this._endsWithInnerRaw = false;
|
|
10573
|
-
const nodeType = node.type,
|
|
10574
|
-
node._compact && (
|
|
10573
|
+
const nodeType = node.type, format4 = this.format, oldConcise = format4.concise;
|
|
10574
|
+
node._compact && (format4.concise = true);
|
|
10575
10575
|
const printMethod = this[nodeType];
|
|
10576
10576
|
if (void 0 === printMethod) throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);
|
|
10577
10577
|
const parent = this._currentNode;
|
|
@@ -10579,7 +10579,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10579
10579
|
const oldInAux = this._insideAux;
|
|
10580
10580
|
this._insideAux = null == node.loc, this._maybeAddAuxComment(this._insideAux && !oldInAux);
|
|
10581
10581
|
const parenthesized = null == (_node$extra = node.extra) ? void 0 : _node$extra.parenthesized;
|
|
10582
|
-
let shouldPrintParens = parenthesized &&
|
|
10582
|
+
let shouldPrintParens = parenthesized && format4.preserveFormat || parenthesized && format4.retainFunctionParens && "FunctionExpression" === nodeType || needsParens(node, parent, this.tokenContext, this.inForStatementInit, format4.preserveFormat ? this._boundGetRawIdentifier : void 0);
|
|
10583
10583
|
if (!shouldPrintParens && parenthesized && null != (_node$leadingComments = node.leadingComments) && _node$leadingComments.length && "CommentBlock" === node.leadingComments[0].type) {
|
|
10584
10584
|
switch (null == parent ? void 0 : parent.type) {
|
|
10585
10585
|
case "ExpressionStatement":
|
|
@@ -10600,7 +10600,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10600
10600
|
(!shouldPrintParens && this._noLineTerminator && (null != (_node$leadingComments2 = node.leadingComments) && _node$leadingComments2.some(commentIsNewline) || this.format.retainLines && node.loc && node.loc.start.line > this._buf.getCurrentLine()) && (shouldPrintParens = true, indentParenthesized = true), shouldPrintParens) || (noLineTerminatorAfter || (noLineTerminatorAfter = parent && this._noLineTerminatorAfterNode === parent && n.isLastChild(parent, node)), noLineTerminatorAfter && (null != (_node$trailingComment = node.trailingComments) && _node$trailingComment.some(commentIsNewline) ? isExpression(node) && (shouldPrintParens = true) : (oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode, this._noLineTerminatorAfterNode = node)));
|
|
10601
10601
|
shouldPrintParens && (this.tokenChar(40), indentParenthesized && this.indent(), this._endsWithInnerRaw = false, this.inForStatementInit && (oldInForStatementInitWasTrue = true, this.inForStatementInit = false), oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode, this._noLineTerminatorAfterNode = null), this._lastCommentLine = 0, this._printLeadingComments(node, parent);
|
|
10602
10602
|
const loc = "Program" === nodeType || "File" === nodeType ? null : node.loc;
|
|
10603
|
-
this.exactSource(loc, printMethod.bind(this, node, parent)), shouldPrintParens ? (this._printTrailingComments(node, parent), indentParenthesized && (this.dedent(), this.newline()), this.tokenChar(41), this._noLineTerminator = noLineTerminatorAfter, oldInForStatementInitWasTrue && (this.inForStatementInit = true)) : noLineTerminatorAfter && !this._noLineTerminator ? (this._noLineTerminator = true, this._printTrailingComments(node, parent)) : this._printTrailingComments(node, parent, trailingCommentsLineOffset), this._currentNode = parent,
|
|
10603
|
+
this.exactSource(loc, printMethod.bind(this, node, parent)), shouldPrintParens ? (this._printTrailingComments(node, parent), indentParenthesized && (this.dedent(), this.newline()), this.tokenChar(41), this._noLineTerminator = noLineTerminatorAfter, oldInForStatementInitWasTrue && (this.inForStatementInit = true)) : noLineTerminatorAfter && !this._noLineTerminator ? (this._noLineTerminator = true, this._printTrailingComments(node, parent)) : this._printTrailingComments(node, parent, trailingCommentsLineOffset), this._currentNode = parent, format4.concise = oldConcise, this._insideAux = oldInAux, void 0 !== oldNoLineTerminatorAfterNode && (this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode), this._endsWithInnerRaw = false;
|
|
10604
10604
|
}
|
|
10605
10605
|
_maybeAddAuxComment(enteredPositionlessNode) {
|
|
10606
10606
|
enteredPositionlessNode && this._printAuxBeforeComment(), this._insideAux || this._printAuxAfterComment();
|
|
@@ -10686,9 +10686,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10686
10686
|
return listEndIndex <= 0 ? null : this.tokenMap.matchesOriginal(this._tokens[listEndIndex - 1], ",");
|
|
10687
10687
|
}
|
|
10688
10688
|
_printNewline(newLine, opts) {
|
|
10689
|
-
const
|
|
10690
|
-
if (
|
|
10691
|
-
if (
|
|
10689
|
+
const format4 = this.format;
|
|
10690
|
+
if (format4.retainLines || format4.compact) return;
|
|
10691
|
+
if (format4.concise) return void this.space();
|
|
10692
10692
|
if (!newLine) return;
|
|
10693
10693
|
const startLine = opts.nextNodeStartLine, lastCommentLine = this._lastCommentLine;
|
|
10694
10694
|
if (startLine > 0 && lastCommentLine > 0) {
|
|
@@ -13255,13 +13255,13 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
13255
13255
|
}(range, api.version);
|
|
13256
13256
|
}, "assertVersion") };
|
|
13257
13257
|
function declare(builder) {
|
|
13258
|
-
return (api, options,
|
|
13258
|
+
return (api, options, dirname4) => {
|
|
13259
13259
|
var _clonedApi2;
|
|
13260
13260
|
let clonedApi;
|
|
13261
13261
|
for (const name of Object.keys(apiPolyfills)) {
|
|
13262
13262
|
api[name] || (null != clonedApi || (clonedApi = copyApiObject(api)), clonedApi[name] = apiPolyfills[name](clonedApi));
|
|
13263
13263
|
}
|
|
13264
|
-
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {},
|
|
13264
|
+
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {}, dirname4);
|
|
13265
13265
|
};
|
|
13266
13266
|
}
|
|
13267
13267
|
__name(declare, "declare");
|
|
@@ -16621,9 +16621,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
16621
16621
|
var _node$extra;
|
|
16622
16622
|
this.toAssignableList(node.params, null == (_node$extra = node.extra) ? void 0 : _node$extra.trailingCommaLoc, false), this.scope.enter(6), super.checkParams(node, false, true), this.scope.exit();
|
|
16623
16623
|
}
|
|
16624
|
-
forwardNoArrowParamsConversionAt(node,
|
|
16624
|
+
forwardNoArrowParamsConversionAt(node, parse7) {
|
|
16625
16625
|
let result;
|
|
16626
|
-
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result =
|
|
16626
|
+
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result = parse7(), this.state.noArrowParamsConversionAt.pop()) : result = parse7(), result;
|
|
16627
16627
|
}
|
|
16628
16628
|
parseParenItem(node, startLoc) {
|
|
16629
16629
|
const newNode = super.parseParenItem(node, startLoc);
|
|
@@ -23945,8 +23945,8 @@ ${str}
|
|
|
23945
23945
|
}
|
|
23946
23946
|
}
|
|
23947
23947
|
dump() {
|
|
23948
|
-
const
|
|
23949
|
-
console.log(
|
|
23948
|
+
const sep3 = "-".repeat(60);
|
|
23949
|
+
console.log(sep3);
|
|
23950
23950
|
let scope = this;
|
|
23951
23951
|
do {
|
|
23952
23952
|
console.log("#", scope.block.type);
|
|
@@ -23955,7 +23955,7 @@ ${str}
|
|
|
23955
23955
|
console.log(" -", name, { constant: binding.constant, references: binding.references, violations: binding.constantViolations.length, kind: binding.kind });
|
|
23956
23956
|
}
|
|
23957
23957
|
} while (scope = scope.parent);
|
|
23958
|
-
console.log(
|
|
23958
|
+
console.log(sep3);
|
|
23959
23959
|
}
|
|
23960
23960
|
hasLabel(name) {
|
|
23961
23961
|
return !!this.getLabel(name);
|
|
@@ -30248,17 +30248,17 @@ ${trace}`);
|
|
|
30248
30248
|
}
|
|
30249
30249
|
__name(importMetaResolvePlugin, "importMetaResolvePlugin");
|
|
30250
30250
|
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.25.9/node_modules/@babel/template/lib/index.js");
|
|
30251
|
-
const
|
|
30252
|
-
function
|
|
30253
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
30251
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
30252
|
+
function normalizeWindowsPath3(input = "") {
|
|
30253
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
30254
30254
|
}
|
|
30255
|
-
__name(
|
|
30256
|
-
const
|
|
30255
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
30256
|
+
const _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/;
|
|
30257
30257
|
const pathe_ff20891b_isAbsolute = /* @__PURE__ */ __name(function(p2) {
|
|
30258
|
-
return
|
|
30258
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
30259
30259
|
}, "pathe_ff20891b_isAbsolute"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
30260
|
-
const segments =
|
|
30261
|
-
return 1 === segments.length &&
|
|
30260
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
30261
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (pathe_ff20891b_isAbsolute(p2) ? "/" : ".");
|
|
30262
30262
|
}, "pathe_ff20891b_dirname");
|
|
30263
30263
|
var astralIdentifierCodes2 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], astralIdentifierStartCodes2 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], nonASCIIidentifierStartChars2 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", reservedWords2 = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, ecma5AndLessKeywords2 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", keywords$12 = { 5: ecma5AndLessKeywords2, "5module": ecma5AndLessKeywords2 + " export import", 6: ecma5AndLessKeywords2 + " const class extends export import super" }, keywordRelationalOperator2 = /^in(stanceof)?$/, nonASCIIidentifierStart2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "]"), nonASCIIidentifier2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");
|
|
30264
30264
|
function isInAstralSet2(code, set) {
|
|
@@ -38176,6 +38176,179 @@ var init_dist2 = __esm({
|
|
|
38176
38176
|
}
|
|
38177
38177
|
});
|
|
38178
38178
|
|
|
38179
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
38180
|
+
function normalizeWindowsPath2(input = "") {
|
|
38181
|
+
if (!input) {
|
|
38182
|
+
return input;
|
|
38183
|
+
}
|
|
38184
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r4) => r4.toUpperCase());
|
|
38185
|
+
}
|
|
38186
|
+
function cwd2() {
|
|
38187
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
38188
|
+
return process.cwd().replace(/\\/g, "/");
|
|
38189
|
+
}
|
|
38190
|
+
return "/";
|
|
38191
|
+
}
|
|
38192
|
+
function normalizeString2(path5, allowAboveRoot) {
|
|
38193
|
+
let res = "";
|
|
38194
|
+
let lastSegmentLength = 0;
|
|
38195
|
+
let lastSlash = -1;
|
|
38196
|
+
let dots = 0;
|
|
38197
|
+
let char = null;
|
|
38198
|
+
for (let index = 0; index <= path5.length; ++index) {
|
|
38199
|
+
if (index < path5.length) {
|
|
38200
|
+
char = path5[index];
|
|
38201
|
+
} else if (char === "/") {
|
|
38202
|
+
break;
|
|
38203
|
+
} else {
|
|
38204
|
+
char = "/";
|
|
38205
|
+
}
|
|
38206
|
+
if (char === "/") {
|
|
38207
|
+
if (lastSlash === index - 1 || dots === 1) ;
|
|
38208
|
+
else if (dots === 2) {
|
|
38209
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
38210
|
+
if (res.length > 2) {
|
|
38211
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
38212
|
+
if (lastSlashIndex === -1) {
|
|
38213
|
+
res = "";
|
|
38214
|
+
lastSegmentLength = 0;
|
|
38215
|
+
} else {
|
|
38216
|
+
res = res.slice(0, lastSlashIndex);
|
|
38217
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
38218
|
+
}
|
|
38219
|
+
lastSlash = index;
|
|
38220
|
+
dots = 0;
|
|
38221
|
+
continue;
|
|
38222
|
+
} else if (res.length > 0) {
|
|
38223
|
+
res = "";
|
|
38224
|
+
lastSegmentLength = 0;
|
|
38225
|
+
lastSlash = index;
|
|
38226
|
+
dots = 0;
|
|
38227
|
+
continue;
|
|
38228
|
+
}
|
|
38229
|
+
}
|
|
38230
|
+
if (allowAboveRoot) {
|
|
38231
|
+
res += res.length > 0 ? "/.." : "..";
|
|
38232
|
+
lastSegmentLength = 2;
|
|
38233
|
+
}
|
|
38234
|
+
} else {
|
|
38235
|
+
if (res.length > 0) {
|
|
38236
|
+
res += `/${path5.slice(lastSlash + 1, index)}`;
|
|
38237
|
+
} else {
|
|
38238
|
+
res = path5.slice(lastSlash + 1, index);
|
|
38239
|
+
}
|
|
38240
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
38241
|
+
}
|
|
38242
|
+
lastSlash = index;
|
|
38243
|
+
dots = 0;
|
|
38244
|
+
} else if (char === "." && dots !== -1) {
|
|
38245
|
+
++dots;
|
|
38246
|
+
} else {
|
|
38247
|
+
dots = -1;
|
|
38248
|
+
}
|
|
38249
|
+
}
|
|
38250
|
+
return res;
|
|
38251
|
+
}
|
|
38252
|
+
var _DRIVE_LETTER_START_RE2, _UNC_REGEX2, _IS_ABSOLUTE_RE2, _DRIVE_LETTER_RE2, normalize2, join2, resolve2, isAbsolute2, dirname2;
|
|
38253
|
+
var init_pathe_BLwDEnA5 = __esm({
|
|
38254
|
+
"../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs"() {
|
|
38255
|
+
init_cjs_shims();
|
|
38256
|
+
_DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
38257
|
+
__name(normalizeWindowsPath2, "normalizeWindowsPath");
|
|
38258
|
+
_UNC_REGEX2 = /^[/\\]{2}/;
|
|
38259
|
+
_IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
38260
|
+
_DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
38261
|
+
normalize2 = /* @__PURE__ */ __name(function(path5) {
|
|
38262
|
+
if (path5.length === 0) {
|
|
38263
|
+
return ".";
|
|
38264
|
+
}
|
|
38265
|
+
path5 = normalizeWindowsPath2(path5);
|
|
38266
|
+
const isUNCPath = path5.match(_UNC_REGEX2);
|
|
38267
|
+
const isPathAbsolute = isAbsolute2(path5);
|
|
38268
|
+
const trailingSeparator = path5[path5.length - 1] === "/";
|
|
38269
|
+
path5 = normalizeString2(path5, !isPathAbsolute);
|
|
38270
|
+
if (path5.length === 0) {
|
|
38271
|
+
if (isPathAbsolute) {
|
|
38272
|
+
return "/";
|
|
38273
|
+
}
|
|
38274
|
+
return trailingSeparator ? "./" : ".";
|
|
38275
|
+
}
|
|
38276
|
+
if (trailingSeparator) {
|
|
38277
|
+
path5 += "/";
|
|
38278
|
+
}
|
|
38279
|
+
if (_DRIVE_LETTER_RE2.test(path5)) {
|
|
38280
|
+
path5 += "/";
|
|
38281
|
+
}
|
|
38282
|
+
if (isUNCPath) {
|
|
38283
|
+
if (!isPathAbsolute) {
|
|
38284
|
+
return `//./${path5}`;
|
|
38285
|
+
}
|
|
38286
|
+
return `//${path5}`;
|
|
38287
|
+
}
|
|
38288
|
+
return isPathAbsolute && !isAbsolute2(path5) ? `/${path5}` : path5;
|
|
38289
|
+
}, "normalize");
|
|
38290
|
+
join2 = /* @__PURE__ */ __name(function(...segments) {
|
|
38291
|
+
let path5 = "";
|
|
38292
|
+
for (const seg of segments) {
|
|
38293
|
+
if (!seg) {
|
|
38294
|
+
continue;
|
|
38295
|
+
}
|
|
38296
|
+
if (path5.length > 0) {
|
|
38297
|
+
const pathTrailing = path5[path5.length - 1] === "/";
|
|
38298
|
+
const segLeading = seg[0] === "/";
|
|
38299
|
+
const both = pathTrailing && segLeading;
|
|
38300
|
+
if (both) {
|
|
38301
|
+
path5 += seg.slice(1);
|
|
38302
|
+
} else {
|
|
38303
|
+
path5 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
38304
|
+
}
|
|
38305
|
+
} else {
|
|
38306
|
+
path5 += seg;
|
|
38307
|
+
}
|
|
38308
|
+
}
|
|
38309
|
+
return normalize2(path5);
|
|
38310
|
+
}, "join");
|
|
38311
|
+
__name(cwd2, "cwd");
|
|
38312
|
+
resolve2 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
38313
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
38314
|
+
let resolvedPath = "";
|
|
38315
|
+
let resolvedAbsolute = false;
|
|
38316
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
38317
|
+
const path5 = index >= 0 ? arguments_[index] : cwd2();
|
|
38318
|
+
if (!path5 || path5.length === 0) {
|
|
38319
|
+
continue;
|
|
38320
|
+
}
|
|
38321
|
+
resolvedPath = `${path5}/${resolvedPath}`;
|
|
38322
|
+
resolvedAbsolute = isAbsolute2(path5);
|
|
38323
|
+
}
|
|
38324
|
+
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
38325
|
+
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
38326
|
+
return `/${resolvedPath}`;
|
|
38327
|
+
}
|
|
38328
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
38329
|
+
}, "resolve");
|
|
38330
|
+
__name(normalizeString2, "normalizeString");
|
|
38331
|
+
isAbsolute2 = /* @__PURE__ */ __name(function(p2) {
|
|
38332
|
+
return _IS_ABSOLUTE_RE2.test(p2);
|
|
38333
|
+
}, "isAbsolute");
|
|
38334
|
+
dirname2 = /* @__PURE__ */ __name(function(p2) {
|
|
38335
|
+
const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
38336
|
+
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
38337
|
+
segments[0] += "/";
|
|
38338
|
+
}
|
|
38339
|
+
return segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
|
|
38340
|
+
}, "dirname");
|
|
38341
|
+
}
|
|
38342
|
+
});
|
|
38343
|
+
|
|
38344
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs
|
|
38345
|
+
var init_dist3 = __esm({
|
|
38346
|
+
"../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs"() {
|
|
38347
|
+
init_cjs_shims();
|
|
38348
|
+
init_pathe_BLwDEnA5();
|
|
38349
|
+
}
|
|
38350
|
+
});
|
|
38351
|
+
|
|
38179
38352
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
38180
38353
|
function g(e2, t2) {
|
|
38181
38354
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -41028,18 +41201,18 @@ ${f2}`, i2);
|
|
|
41028
41201
|
});
|
|
41029
41202
|
|
|
41030
41203
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
41031
|
-
var
|
|
41204
|
+
var init_dist4 = __esm({
|
|
41032
41205
|
"../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs"() {
|
|
41033
41206
|
init_cjs_shims();
|
|
41034
41207
|
init_confbox_f9f03f05();
|
|
41035
41208
|
}
|
|
41036
41209
|
});
|
|
41037
41210
|
|
|
41038
|
-
// ../../node_modules/.pnpm/pkg-types@1.3.
|
|
41211
|
+
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
41039
41212
|
async function findFile(filename, _options = {}) {
|
|
41040
41213
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
41041
41214
|
const options = { ...defaultFindOptions, ..._options };
|
|
41042
|
-
const basePath =
|
|
41215
|
+
const basePath = resolve2(options.startingFrom);
|
|
41043
41216
|
const leadingSlash = basePath[0] === "/";
|
|
41044
41217
|
const segments = basePath.split("/").filter(Boolean);
|
|
41045
41218
|
if (leadingSlash) {
|
|
@@ -41052,7 +41225,7 @@ async function findFile(filename, _options = {}) {
|
|
|
41052
41225
|
if (options.reverse) {
|
|
41053
41226
|
for (let index = root + 1; index <= segments.length; index++) {
|
|
41054
41227
|
for (const filename2 of filenames) {
|
|
41055
|
-
const filePath =
|
|
41228
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
41056
41229
|
if (await options.test(filePath)) {
|
|
41057
41230
|
return filePath;
|
|
41058
41231
|
}
|
|
@@ -41061,7 +41234,7 @@ async function findFile(filename, _options = {}) {
|
|
|
41061
41234
|
} else {
|
|
41062
41235
|
for (let index = segments.length; index > root; index--) {
|
|
41063
41236
|
for (const filename2 of filenames) {
|
|
41064
|
-
const filePath =
|
|
41237
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
41065
41238
|
if (await options.test(filePath)) {
|
|
41066
41239
|
return filePath;
|
|
41067
41240
|
}
|
|
@@ -41092,14 +41265,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
41092
41265
|
return parsed;
|
|
41093
41266
|
}
|
|
41094
41267
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
41095
|
-
const resolvedPath =
|
|
41268
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41096
41269
|
return findNearestFile("package.json", {
|
|
41097
41270
|
startingFrom: resolvedPath,
|
|
41098
41271
|
...options
|
|
41099
41272
|
});
|
|
41100
41273
|
}
|
|
41101
41274
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
41102
|
-
const resolvedPath =
|
|
41275
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41103
41276
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
41104
41277
|
try {
|
|
41105
41278
|
return await findNearestFile(lockFiles, _options);
|
|
@@ -41108,11 +41281,11 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
41108
41281
|
throw new Error("No lockfile found from " + id);
|
|
41109
41282
|
}
|
|
41110
41283
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
41111
|
-
const resolvedPath =
|
|
41284
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41112
41285
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
41113
41286
|
try {
|
|
41114
41287
|
const r4 = await findNearestFile(".git/config", _options);
|
|
41115
|
-
return
|
|
41288
|
+
return resolve2(r4, "../..");
|
|
41116
41289
|
} catch {
|
|
41117
41290
|
}
|
|
41118
41291
|
try {
|
|
@@ -41120,24 +41293,24 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
41120
41293
|
..._options,
|
|
41121
41294
|
reverse: true
|
|
41122
41295
|
});
|
|
41123
|
-
return
|
|
41296
|
+
return dirname2(r4);
|
|
41124
41297
|
} catch {
|
|
41125
41298
|
}
|
|
41126
41299
|
try {
|
|
41127
41300
|
const r4 = await findFile(resolvedPath, _options);
|
|
41128
|
-
return
|
|
41301
|
+
return dirname2(r4);
|
|
41129
41302
|
} catch {
|
|
41130
41303
|
}
|
|
41131
41304
|
throw new Error("Cannot detect workspace root from " + id);
|
|
41132
41305
|
}
|
|
41133
41306
|
var import_node_fs, defaultFindOptions, FileCache, lockFiles;
|
|
41134
|
-
var
|
|
41135
|
-
"../../node_modules/.pnpm/pkg-types@1.3.
|
|
41307
|
+
var init_dist5 = __esm({
|
|
41308
|
+
"../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs"() {
|
|
41136
41309
|
init_cjs_shims();
|
|
41137
41310
|
import_node_fs = require("fs");
|
|
41138
|
-
init_dist();
|
|
41139
|
-
init_dist5();
|
|
41140
41311
|
init_dist3();
|
|
41312
|
+
init_dist6();
|
|
41313
|
+
init_dist4();
|
|
41141
41314
|
defaultFindOptions = {
|
|
41142
41315
|
startingFrom: ".",
|
|
41143
41316
|
rootPattern: /^node_modules$/,
|
|
@@ -41161,14 +41334,15 @@ var init_dist4 = __esm({
|
|
|
41161
41334
|
"package-lock.json",
|
|
41162
41335
|
"pnpm-lock.yaml",
|
|
41163
41336
|
"npm-shrinkwrap.json",
|
|
41164
|
-
"bun.lockb"
|
|
41337
|
+
"bun.lockb",
|
|
41338
|
+
"bun.lock"
|
|
41165
41339
|
];
|
|
41166
41340
|
__name(resolveLockfile, "resolveLockfile");
|
|
41167
41341
|
__name(findWorkspaceDir, "findWorkspaceDir");
|
|
41168
41342
|
}
|
|
41169
41343
|
});
|
|
41170
41344
|
|
|
41171
|
-
// ../../node_modules/.pnpm/mlly@1.7.
|
|
41345
|
+
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
41172
41346
|
function normalizeSlash(path5) {
|
|
41173
41347
|
return path5.replace(/\\/g, "/");
|
|
41174
41348
|
}
|
|
@@ -41376,7 +41550,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
41376
41550
|
) || [null, null, null];
|
|
41377
41551
|
return mimeToFormat(mime);
|
|
41378
41552
|
}
|
|
41379
|
-
function
|
|
41553
|
+
function extname3(url) {
|
|
41380
41554
|
const pathname = url.pathname;
|
|
41381
41555
|
let index = pathname.length;
|
|
41382
41556
|
while (index--) {
|
|
@@ -41391,7 +41565,7 @@ function extname2(url) {
|
|
|
41391
41565
|
return "";
|
|
41392
41566
|
}
|
|
41393
41567
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
41394
|
-
const value2 =
|
|
41568
|
+
const value2 = extname3(url);
|
|
41395
41569
|
if (value2 === ".js") {
|
|
41396
41570
|
const packageType = getPackageType(url);
|
|
41397
41571
|
if (packageType !== "none") {
|
|
@@ -41406,8 +41580,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
41406
41580
|
}
|
|
41407
41581
|
return "module";
|
|
41408
41582
|
}
|
|
41409
|
-
const
|
|
41410
|
-
if (
|
|
41583
|
+
const format4 = extensionFormatMap[value2];
|
|
41584
|
+
if (format4) return format4;
|
|
41411
41585
|
if (ignoreErrors) {
|
|
41412
41586
|
return void 0;
|
|
41413
41587
|
}
|
|
@@ -41439,8 +41613,8 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
41439
41613
|
if (import_node_process.default.noDeprecation) {
|
|
41440
41614
|
return;
|
|
41441
41615
|
}
|
|
41442
|
-
const
|
|
41443
|
-
if (
|
|
41616
|
+
const format4 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
41617
|
+
if (format4 !== "module") return;
|
|
41444
41618
|
const urlPath = (0, import_node_url.fileURLToPath)(url.href);
|
|
41445
41619
|
const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
|
|
41446
41620
|
const basePath = (0, import_node_url.fileURLToPath)(base);
|
|
@@ -41557,7 +41731,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
41557
41731
|
error.url = String(resolved);
|
|
41558
41732
|
throw error;
|
|
41559
41733
|
}
|
|
41560
|
-
|
|
41734
|
+
{
|
|
41561
41735
|
const real = (0, import_node_fs2.realpathSync)(filePath);
|
|
41562
41736
|
const { search, hash: hash2 } = resolved;
|
|
41563
41737
|
resolved = (0, import_node_url.pathToFileURL)(real + (filePath.endsWith(import_node_path.default.sep) ? "/" : ""));
|
|
@@ -42104,7 +42278,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
42104
42278
|
if (resolved.protocol !== "file:") {
|
|
42105
42279
|
return resolved;
|
|
42106
42280
|
}
|
|
42107
|
-
return finalizeResolution(resolved, base
|
|
42281
|
+
return finalizeResolution(resolved, base);
|
|
42108
42282
|
}
|
|
42109
42283
|
function fileURLToPath(id) {
|
|
42110
42284
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -42153,7 +42327,7 @@ function _resolve(id, options = {}) {
|
|
|
42153
42327
|
if (id.startsWith("file://")) {
|
|
42154
42328
|
id = fileURLToPath(id);
|
|
42155
42329
|
}
|
|
42156
|
-
if (
|
|
42330
|
+
if (isAbsolute2(id)) {
|
|
42157
42331
|
try {
|
|
42158
42332
|
const stat = (0, import_node_fs2.statSync)(id);
|
|
42159
42333
|
if (stat.isFile()) {
|
|
@@ -42230,14 +42404,14 @@ function resolvePath(id, options) {
|
|
|
42230
42404
|
}
|
|
42231
42405
|
}
|
|
42232
42406
|
var import_node_module2, import_node_fs2, import_node_url, import_node_assert, import_node_process, import_node_path, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty3, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
|
|
42233
|
-
var
|
|
42234
|
-
"../../node_modules/.pnpm/mlly@1.7.
|
|
42407
|
+
var init_dist6 = __esm({
|
|
42408
|
+
"../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs"() {
|
|
42235
42409
|
init_cjs_shims();
|
|
42236
42410
|
init_acorn();
|
|
42237
42411
|
import_node_module2 = require("module");
|
|
42238
42412
|
import_node_fs2 = __toESM(require("fs"), 1);
|
|
42239
42413
|
init_dist2();
|
|
42240
|
-
|
|
42414
|
+
init_dist3();
|
|
42241
42415
|
import_node_url = require("url");
|
|
42242
42416
|
import_node_assert = __toESM(require("assert"), 1);
|
|
42243
42417
|
import_node_process = __toESM(require("process"), 1);
|
|
@@ -42515,7 +42689,7 @@ var init_dist5 = __esm({
|
|
|
42515
42689
|
}
|
|
42516
42690
|
};
|
|
42517
42691
|
__name(getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
42518
|
-
__name(
|
|
42692
|
+
__name(extname3, "extname");
|
|
42519
42693
|
__name(getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
42520
42694
|
__name(getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
42521
42695
|
__name(defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
@@ -42736,7 +42910,7 @@ var require_main = __commonJS({
|
|
|
42736
42910
|
var packageJson = require_package();
|
|
42737
42911
|
var version2 = packageJson.version;
|
|
42738
42912
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
42739
|
-
function
|
|
42913
|
+
function parse7(src) {
|
|
42740
42914
|
const obj = {};
|
|
42741
42915
|
let lines = src.toString();
|
|
42742
42916
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
@@ -42755,7 +42929,7 @@ var require_main = __commonJS({
|
|
|
42755
42929
|
}
|
|
42756
42930
|
return obj;
|
|
42757
42931
|
}
|
|
42758
|
-
__name(
|
|
42932
|
+
__name(parse7, "parse");
|
|
42759
42933
|
function _parseVault(options) {
|
|
42760
42934
|
const vaultPath = _vaultPath(options);
|
|
42761
42935
|
const result = DotenvModule.configDotenv({
|
|
@@ -43011,7 +43185,7 @@ var require_main = __commonJS({
|
|
|
43011
43185
|
_parseVault,
|
|
43012
43186
|
config,
|
|
43013
43187
|
decrypt,
|
|
43014
|
-
parse:
|
|
43188
|
+
parse: parse7,
|
|
43015
43189
|
populate
|
|
43016
43190
|
};
|
|
43017
43191
|
module2.exports.configDotenv = DotenvModule.configDotenv;
|
|
@@ -43558,10 +43732,10 @@ var require_minipass = __commonJS({
|
|
|
43558
43732
|
}
|
|
43559
43733
|
// stream.promise().then(() => done, er => emitted error)
|
|
43560
43734
|
promise() {
|
|
43561
|
-
return new Promise((
|
|
43735
|
+
return new Promise((resolve4, reject) => {
|
|
43562
43736
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
43563
43737
|
this.on("error", (er2) => reject(er2));
|
|
43564
|
-
this.on("end", () =>
|
|
43738
|
+
this.on("end", () => resolve4());
|
|
43565
43739
|
});
|
|
43566
43740
|
}
|
|
43567
43741
|
// for await (let chunk of stream)
|
|
@@ -43582,7 +43756,7 @@ var require_minipass = __commonJS({
|
|
|
43582
43756
|
value: res
|
|
43583
43757
|
});
|
|
43584
43758
|
if (this[EOF]) return stop();
|
|
43585
|
-
let
|
|
43759
|
+
let resolve4 = null;
|
|
43586
43760
|
let reject = null;
|
|
43587
43761
|
const onerr = /* @__PURE__ */ __name((er2) => {
|
|
43588
43762
|
this.removeListener("data", ondata);
|
|
@@ -43596,7 +43770,7 @@ var require_minipass = __commonJS({
|
|
|
43596
43770
|
this.removeListener("end", onend);
|
|
43597
43771
|
this.removeListener(DESTROYED, ondestroy);
|
|
43598
43772
|
this.pause();
|
|
43599
|
-
|
|
43773
|
+
resolve4({
|
|
43600
43774
|
value: value2,
|
|
43601
43775
|
done: !!this[EOF]
|
|
43602
43776
|
});
|
|
@@ -43606,14 +43780,14 @@ var require_minipass = __commonJS({
|
|
|
43606
43780
|
this.removeListener("data", ondata);
|
|
43607
43781
|
this.removeListener(DESTROYED, ondestroy);
|
|
43608
43782
|
stop();
|
|
43609
|
-
|
|
43783
|
+
resolve4({
|
|
43610
43784
|
done: true
|
|
43611
43785
|
});
|
|
43612
43786
|
}, "onend");
|
|
43613
43787
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
43614
43788
|
return new Promise((res2, rej) => {
|
|
43615
43789
|
reject = rej;
|
|
43616
|
-
|
|
43790
|
+
resolve4 = res2;
|
|
43617
43791
|
this.once(DESTROYED, ondestroy);
|
|
43618
43792
|
this.once("error", onerr);
|
|
43619
43793
|
this.once("end", onend);
|
|
@@ -44197,10 +44371,10 @@ var require_minipass2 = __commonJS({
|
|
|
44197
44371
|
}
|
|
44198
44372
|
// stream.promise().then(() => done, er => emitted error)
|
|
44199
44373
|
promise() {
|
|
44200
|
-
return new Promise((
|
|
44374
|
+
return new Promise((resolve4, reject) => {
|
|
44201
44375
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
44202
44376
|
this.on("error", (er2) => reject(er2));
|
|
44203
|
-
this.on("end", () =>
|
|
44377
|
+
this.on("end", () => resolve4());
|
|
44204
44378
|
});
|
|
44205
44379
|
}
|
|
44206
44380
|
// for await (let chunk of stream)
|
|
@@ -44214,7 +44388,7 @@ var require_minipass2 = __commonJS({
|
|
|
44214
44388
|
if (this[EOF]) return Promise.resolve({
|
|
44215
44389
|
done: true
|
|
44216
44390
|
});
|
|
44217
|
-
let
|
|
44391
|
+
let resolve4 = null;
|
|
44218
44392
|
let reject = null;
|
|
44219
44393
|
const onerr = /* @__PURE__ */ __name((er2) => {
|
|
44220
44394
|
this.removeListener("data", ondata);
|
|
@@ -44225,7 +44399,7 @@ var require_minipass2 = __commonJS({
|
|
|
44225
44399
|
this.removeListener("error", onerr);
|
|
44226
44400
|
this.removeListener("end", onend);
|
|
44227
44401
|
this.pause();
|
|
44228
|
-
|
|
44402
|
+
resolve4({
|
|
44229
44403
|
value: value2,
|
|
44230
44404
|
done: !!this[EOF]
|
|
44231
44405
|
});
|
|
@@ -44233,14 +44407,14 @@ var require_minipass2 = __commonJS({
|
|
|
44233
44407
|
const onend = /* @__PURE__ */ __name(() => {
|
|
44234
44408
|
this.removeListener("error", onerr);
|
|
44235
44409
|
this.removeListener("data", ondata);
|
|
44236
|
-
|
|
44410
|
+
resolve4({
|
|
44237
44411
|
done: true
|
|
44238
44412
|
});
|
|
44239
44413
|
}, "onend");
|
|
44240
44414
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
44241
44415
|
return new Promise((res2, rej) => {
|
|
44242
44416
|
reject = rej;
|
|
44243
|
-
|
|
44417
|
+
resolve4 = res2;
|
|
44244
44418
|
this.once(DESTROYED, ondestroy);
|
|
44245
44419
|
this.once("error", onerr);
|
|
44246
44420
|
this.once("end", onend);
|
|
@@ -44840,7 +45014,7 @@ var require_large_numbers = __commonJS({
|
|
|
44840
45014
|
}
|
|
44841
45015
|
}
|
|
44842
45016
|
}, "encodeNegative");
|
|
44843
|
-
var
|
|
45017
|
+
var parse7 = /* @__PURE__ */ __name((buf) => {
|
|
44844
45018
|
const pre = buf[0];
|
|
44845
45019
|
const value2 = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
44846
45020
|
if (value2 === null) {
|
|
@@ -44887,7 +45061,7 @@ var require_large_numbers = __commonJS({
|
|
|
44887
45061
|
var twosComp = /* @__PURE__ */ __name((byte) => (255 ^ byte) + 1 & 255, "twosComp");
|
|
44888
45062
|
module2.exports = {
|
|
44889
45063
|
encode,
|
|
44890
|
-
parse:
|
|
45064
|
+
parse: parse7
|
|
44891
45065
|
};
|
|
44892
45066
|
}
|
|
44893
45067
|
});
|
|
@@ -45313,15 +45487,15 @@ var require_winchars = __commonJS({
|
|
|
45313
45487
|
var require_strip_absolute_path = __commonJS({
|
|
45314
45488
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports2, module2) {
|
|
45315
45489
|
init_cjs_shims();
|
|
45316
|
-
var { isAbsolute:
|
|
45490
|
+
var { isAbsolute: isAbsolute3, parse: parse7 } = require("path").win32;
|
|
45317
45491
|
module2.exports = (path5) => {
|
|
45318
45492
|
let r4 = "";
|
|
45319
|
-
let parsed =
|
|
45320
|
-
while (
|
|
45493
|
+
let parsed = parse7(path5);
|
|
45494
|
+
while (isAbsolute3(path5) || parsed.root) {
|
|
45321
45495
|
const root = path5.charAt(0) === "/" && path5.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
45322
45496
|
path5 = path5.slice(root.length);
|
|
45323
45497
|
r4 += root;
|
|
45324
|
-
parsed =
|
|
45498
|
+
parsed = parse7(path5);
|
|
45325
45499
|
}
|
|
45326
45500
|
return [
|
|
45327
45501
|
r4,
|
|
@@ -47500,12 +47674,12 @@ var require_list = __commonJS({
|
|
|
47500
47674
|
}
|
|
47501
47675
|
}, "listFileSync");
|
|
47502
47676
|
var listFile = /* @__PURE__ */ __name((opt, cb) => {
|
|
47503
|
-
const
|
|
47677
|
+
const parse7 = new Parser3(opt);
|
|
47504
47678
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
47505
47679
|
const file = opt.file;
|
|
47506
|
-
const p2 = new Promise((
|
|
47507
|
-
|
|
47508
|
-
|
|
47680
|
+
const p2 = new Promise((resolve4, reject) => {
|
|
47681
|
+
parse7.on("error", reject);
|
|
47682
|
+
parse7.on("end", resolve4);
|
|
47509
47683
|
fs2.stat(file, (er2, stat) => {
|
|
47510
47684
|
if (er2) {
|
|
47511
47685
|
reject(er2);
|
|
@@ -47515,7 +47689,7 @@ var require_list = __commonJS({
|
|
|
47515
47689
|
size: stat.size
|
|
47516
47690
|
});
|
|
47517
47691
|
stream.on("error", reject);
|
|
47518
|
-
stream.pipe(
|
|
47692
|
+
stream.pipe(parse7);
|
|
47519
47693
|
}
|
|
47520
47694
|
});
|
|
47521
47695
|
});
|
|
@@ -47756,7 +47930,7 @@ var require_replace = __commonJS({
|
|
|
47756
47930
|
}, "onread");
|
|
47757
47931
|
fs2.read(fd, headBuf, 0, 512, position, onread);
|
|
47758
47932
|
}, "getPos");
|
|
47759
|
-
const promise = new Promise((
|
|
47933
|
+
const promise = new Promise((resolve4, reject) => {
|
|
47760
47934
|
p2.on("error", reject);
|
|
47761
47935
|
let flag = "r+";
|
|
47762
47936
|
const onopen = /* @__PURE__ */ __name((er2, fd) => {
|
|
@@ -47781,7 +47955,7 @@ var require_replace = __commonJS({
|
|
|
47781
47955
|
});
|
|
47782
47956
|
p2.pipe(stream);
|
|
47783
47957
|
stream.on("error", reject);
|
|
47784
|
-
stream.on("close",
|
|
47958
|
+
stream.on("close", resolve4);
|
|
47785
47959
|
addFilesAsync(p2, files);
|
|
47786
47960
|
});
|
|
47787
47961
|
});
|
|
@@ -47897,7 +48071,7 @@ var require_path_arg = __commonJS({
|
|
|
47897
48071
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
|
|
47898
48072
|
init_cjs_shims();
|
|
47899
48073
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
47900
|
-
var { resolve:
|
|
48074
|
+
var { resolve: resolve4, parse: parse7 } = require("path");
|
|
47901
48075
|
var pathArg = /* @__PURE__ */ __name((path5) => {
|
|
47902
48076
|
if (/\0/.test(path5)) {
|
|
47903
48077
|
throw Object.assign(new TypeError("path must be a string without null bytes"), {
|
|
@@ -47905,10 +48079,10 @@ var require_path_arg = __commonJS({
|
|
|
47905
48079
|
code: "ERR_INVALID_ARG_VALUE"
|
|
47906
48080
|
});
|
|
47907
48081
|
}
|
|
47908
|
-
path5 =
|
|
48082
|
+
path5 = resolve4(path5);
|
|
47909
48083
|
if (platform === "win32") {
|
|
47910
48084
|
const badWinChars = /[*|"<>?:]/;
|
|
47911
|
-
const { root } =
|
|
48085
|
+
const { root } = parse7(path5);
|
|
47912
48086
|
if (badWinChars.test(path5.substr(root.length))) {
|
|
47913
48087
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
47914
48088
|
path: path5,
|
|
@@ -47926,17 +48100,17 @@ var require_path_arg = __commonJS({
|
|
|
47926
48100
|
var require_find_made = __commonJS({
|
|
47927
48101
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports2, module2) {
|
|
47928
48102
|
init_cjs_shims();
|
|
47929
|
-
var { dirname:
|
|
48103
|
+
var { dirname: dirname4 } = require("path");
|
|
47930
48104
|
var findMade = /* @__PURE__ */ __name((opts, parent, path5 = void 0) => {
|
|
47931
48105
|
if (path5 === parent) return Promise.resolve();
|
|
47932
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path5 : void 0, (er2) => er2.code === "ENOENT" ? findMade(opts,
|
|
48106
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path5 : void 0, (er2) => er2.code === "ENOENT" ? findMade(opts, dirname4(parent), parent) : void 0);
|
|
47933
48107
|
}, "findMade");
|
|
47934
48108
|
var findMadeSync = /* @__PURE__ */ __name((opts, parent, path5 = void 0) => {
|
|
47935
48109
|
if (path5 === parent) return void 0;
|
|
47936
48110
|
try {
|
|
47937
48111
|
return opts.statSync(parent).isDirectory() ? path5 : void 0;
|
|
47938
48112
|
} catch (er2) {
|
|
47939
|
-
return er2.code === "ENOENT" ? findMadeSync(opts,
|
|
48113
|
+
return er2.code === "ENOENT" ? findMadeSync(opts, dirname4(parent), parent) : void 0;
|
|
47940
48114
|
}
|
|
47941
48115
|
}, "findMadeSync");
|
|
47942
48116
|
module2.exports = {
|
|
@@ -47950,10 +48124,10 @@ var require_find_made = __commonJS({
|
|
|
47950
48124
|
var require_mkdirp_manual = __commonJS({
|
|
47951
48125
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports2, module2) {
|
|
47952
48126
|
init_cjs_shims();
|
|
47953
|
-
var { dirname:
|
|
48127
|
+
var { dirname: dirname4 } = require("path");
|
|
47954
48128
|
var mkdirpManual = /* @__PURE__ */ __name((path5, opts, made) => {
|
|
47955
48129
|
opts.recursive = false;
|
|
47956
|
-
const parent =
|
|
48130
|
+
const parent = dirname4(path5);
|
|
47957
48131
|
if (parent === path5) {
|
|
47958
48132
|
return opts.mkdirAsync(path5, opts).catch((er2) => {
|
|
47959
48133
|
if (er2.code !== "EISDIR") throw er2;
|
|
@@ -47971,7 +48145,7 @@ var require_mkdirp_manual = __commonJS({
|
|
|
47971
48145
|
});
|
|
47972
48146
|
}, "mkdirpManual");
|
|
47973
48147
|
var mkdirpManualSync = /* @__PURE__ */ __name((path5, opts, made) => {
|
|
47974
|
-
const parent =
|
|
48148
|
+
const parent = dirname4(path5);
|
|
47975
48149
|
opts.recursive = false;
|
|
47976
48150
|
if (parent === path5) {
|
|
47977
48151
|
try {
|
|
@@ -48005,12 +48179,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
48005
48179
|
var require_mkdirp_native = __commonJS({
|
|
48006
48180
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"(exports2, module2) {
|
|
48007
48181
|
init_cjs_shims();
|
|
48008
|
-
var { dirname:
|
|
48182
|
+
var { dirname: dirname4 } = require("path");
|
|
48009
48183
|
var { findMade, findMadeSync } = require_find_made();
|
|
48010
48184
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
48011
48185
|
var mkdirpNative = /* @__PURE__ */ __name((path5, opts) => {
|
|
48012
48186
|
opts.recursive = true;
|
|
48013
|
-
const parent =
|
|
48187
|
+
const parent = dirname4(path5);
|
|
48014
48188
|
if (parent === path5) return opts.mkdirAsync(path5, opts);
|
|
48015
48189
|
return findMade(opts, path5).then((made) => opts.mkdirAsync(path5, opts).then(() => made).catch((er2) => {
|
|
48016
48190
|
if (er2.code === "ENOENT") return mkdirpManual(path5, opts);
|
|
@@ -48019,7 +48193,7 @@ var require_mkdirp_native = __commonJS({
|
|
|
48019
48193
|
}, "mkdirpNative");
|
|
48020
48194
|
var mkdirpNativeSync = /* @__PURE__ */ __name((path5, opts) => {
|
|
48021
48195
|
opts.recursive = true;
|
|
48022
|
-
const parent =
|
|
48196
|
+
const parent = dirname4(path5);
|
|
48023
48197
|
if (parent === path5) return opts.mkdirSync(path5, opts);
|
|
48024
48198
|
const made = findMadeSync(opts, path5);
|
|
48025
48199
|
try {
|
|
@@ -48253,7 +48427,7 @@ var require_mkdir = __commonJS({
|
|
|
48253
48427
|
const preserve = opt.preserve;
|
|
48254
48428
|
const unlink = opt.unlink;
|
|
48255
48429
|
const cache2 = opt.cache;
|
|
48256
|
-
const
|
|
48430
|
+
const cwd3 = normPath(opt.cwd);
|
|
48257
48431
|
const done = /* @__PURE__ */ __name((er2, created) => {
|
|
48258
48432
|
if (er2) {
|
|
48259
48433
|
cb(er2);
|
|
@@ -48271,7 +48445,7 @@ var require_mkdir = __commonJS({
|
|
|
48271
48445
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
48272
48446
|
return done();
|
|
48273
48447
|
}
|
|
48274
|
-
if (dir ===
|
|
48448
|
+
if (dir === cwd3) {
|
|
48275
48449
|
return checkCwd(dir, done);
|
|
48276
48450
|
}
|
|
48277
48451
|
if (preserve) {
|
|
@@ -48279,35 +48453,35 @@ var require_mkdir = __commonJS({
|
|
|
48279
48453
|
mode
|
|
48280
48454
|
}).then((made) => done(null, made), done);
|
|
48281
48455
|
}
|
|
48282
|
-
const sub = normPath(path5.relative(
|
|
48456
|
+
const sub = normPath(path5.relative(cwd3, dir));
|
|
48283
48457
|
const parts = sub.split("/");
|
|
48284
|
-
mkdir_(
|
|
48458
|
+
mkdir_(cwd3, parts, mode, cache2, unlink, cwd3, null, done);
|
|
48285
48459
|
};
|
|
48286
|
-
var mkdir_ = /* @__PURE__ */ __name((base, parts, mode, cache2, unlink,
|
|
48460
|
+
var mkdir_ = /* @__PURE__ */ __name((base, parts, mode, cache2, unlink, cwd3, created, cb) => {
|
|
48287
48461
|
if (!parts.length) {
|
|
48288
48462
|
return cb(null, created);
|
|
48289
48463
|
}
|
|
48290
48464
|
const p2 = parts.shift();
|
|
48291
48465
|
const part = normPath(path5.resolve(base + "/" + p2));
|
|
48292
48466
|
if (cGet(cache2, part)) {
|
|
48293
|
-
return mkdir_(part, parts, mode, cache2, unlink,
|
|
48467
|
+
return mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
48294
48468
|
}
|
|
48295
|
-
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
48469
|
+
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
48296
48470
|
}, "mkdir_");
|
|
48297
|
-
var onmkdir = /* @__PURE__ */ __name((part, parts, mode, cache2, unlink,
|
|
48471
|
+
var onmkdir = /* @__PURE__ */ __name((part, parts, mode, cache2, unlink, cwd3, created, cb) => (er2) => {
|
|
48298
48472
|
if (er2) {
|
|
48299
48473
|
fs2.lstat(part, (statEr, st) => {
|
|
48300
48474
|
if (statEr) {
|
|
48301
48475
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
48302
48476
|
cb(statEr);
|
|
48303
48477
|
} else if (st.isDirectory()) {
|
|
48304
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
48478
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
48305
48479
|
} else if (unlink) {
|
|
48306
48480
|
fs2.unlink(part, (er3) => {
|
|
48307
48481
|
if (er3) {
|
|
48308
48482
|
return cb(er3);
|
|
48309
48483
|
}
|
|
48310
|
-
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
48484
|
+
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
48311
48485
|
});
|
|
48312
48486
|
} else if (st.isSymbolicLink()) {
|
|
48313
48487
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -48317,7 +48491,7 @@ var require_mkdir = __commonJS({
|
|
|
48317
48491
|
});
|
|
48318
48492
|
} else {
|
|
48319
48493
|
created = created || part;
|
|
48320
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
48494
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
48321
48495
|
}
|
|
48322
48496
|
}, "onmkdir");
|
|
48323
48497
|
var checkCwdSync = /* @__PURE__ */ __name((dir) => {
|
|
@@ -48344,7 +48518,7 @@ var require_mkdir = __commonJS({
|
|
|
48344
48518
|
const preserve = opt.preserve;
|
|
48345
48519
|
const unlink = opt.unlink;
|
|
48346
48520
|
const cache2 = opt.cache;
|
|
48347
|
-
const
|
|
48521
|
+
const cwd3 = normPath(opt.cwd);
|
|
48348
48522
|
const done = /* @__PURE__ */ __name((created2) => {
|
|
48349
48523
|
cSet(cache2, dir, true);
|
|
48350
48524
|
if (created2 && doChown) {
|
|
@@ -48357,17 +48531,17 @@ var require_mkdir = __commonJS({
|
|
|
48357
48531
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
48358
48532
|
return done();
|
|
48359
48533
|
}
|
|
48360
|
-
if (dir ===
|
|
48361
|
-
checkCwdSync(
|
|
48534
|
+
if (dir === cwd3) {
|
|
48535
|
+
checkCwdSync(cwd3);
|
|
48362
48536
|
return done();
|
|
48363
48537
|
}
|
|
48364
48538
|
if (preserve) {
|
|
48365
48539
|
return done(mkdirp.sync(dir, mode));
|
|
48366
48540
|
}
|
|
48367
|
-
const sub = normPath(path5.relative(
|
|
48541
|
+
const sub = normPath(path5.relative(cwd3, dir));
|
|
48368
48542
|
const parts = sub.split("/");
|
|
48369
48543
|
let created = null;
|
|
48370
|
-
for (let p2 = parts.shift(), part =
|
|
48544
|
+
for (let p2 = parts.shift(), part = cwd3; p2 && (part += "/" + p2); p2 = parts.shift()) {
|
|
48371
48545
|
part = normPath(path5.resolve(part));
|
|
48372
48546
|
if (cGet(cache2, part)) {
|
|
48373
48547
|
continue;
|
|
@@ -48417,9 +48591,9 @@ var require_path_reservations = __commonJS({
|
|
|
48417
48591
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js"(exports2, module2) {
|
|
48418
48592
|
init_cjs_shims();
|
|
48419
48593
|
var assert2 = require("assert");
|
|
48420
|
-
var
|
|
48594
|
+
var normalize3 = require_normalize_unicode();
|
|
48421
48595
|
var stripSlashes = require_strip_trailing_slashes();
|
|
48422
|
-
var { join:
|
|
48596
|
+
var { join: join5 } = require("path");
|
|
48423
48597
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
48424
48598
|
var isWindows = platform === "win32";
|
|
48425
48599
|
module2.exports = () => {
|
|
@@ -48428,7 +48602,7 @@ var require_path_reservations = __commonJS({
|
|
|
48428
48602
|
const getDirs = /* @__PURE__ */ __name((path5) => {
|
|
48429
48603
|
const dirs = path5.split("/").slice(0, -1).reduce((set, path6) => {
|
|
48430
48604
|
if (set.length) {
|
|
48431
|
-
path6 =
|
|
48605
|
+
path6 = join5(set[set.length - 1], path6);
|
|
48432
48606
|
}
|
|
48433
48607
|
set.push(path6 || "/");
|
|
48434
48608
|
return set;
|
|
@@ -48500,7 +48674,7 @@ var require_path_reservations = __commonJS({
|
|
|
48500
48674
|
paths = isWindows ? [
|
|
48501
48675
|
"win32 parallelization disabled"
|
|
48502
48676
|
] : paths.map((p2) => {
|
|
48503
|
-
return stripSlashes(
|
|
48677
|
+
return stripSlashes(join5(normalize3(p2))).toLowerCase();
|
|
48504
48678
|
});
|
|
48505
48679
|
const dirs = new Set(paths.map((path5) => getDirs(path5)).reduce((a2, b6) => a2.concat(b6)));
|
|
48506
48680
|
reservations.set(fn2, {
|
|
@@ -48574,7 +48748,7 @@ var require_unpack = __commonJS({
|
|
|
48574
48748
|
var stripAbsolutePath = require_strip_absolute_path();
|
|
48575
48749
|
var normPath = require_normalize_windows_path();
|
|
48576
48750
|
var stripSlash = require_strip_trailing_slashes();
|
|
48577
|
-
var
|
|
48751
|
+
var normalize3 = require_normalize_unicode();
|
|
48578
48752
|
var ONENTRY = Symbol("onEntry");
|
|
48579
48753
|
var CHECKFS = Symbol("checkFs");
|
|
48580
48754
|
var CHECKFS2 = Symbol("checkFs2");
|
|
@@ -48626,7 +48800,7 @@ var require_unpack = __commonJS({
|
|
|
48626
48800
|
fs2.unlinkSync(name);
|
|
48627
48801
|
}, "unlinkFileSync");
|
|
48628
48802
|
var uint32 = /* @__PURE__ */ __name((a2, b6, c) => a2 === a2 >>> 0 ? a2 : b6 === b6 >>> 0 ? b6 : c, "uint32");
|
|
48629
|
-
var cacheKeyNormalize = /* @__PURE__ */ __name((path6) => stripSlash(normPath(
|
|
48803
|
+
var cacheKeyNormalize = /* @__PURE__ */ __name((path6) => stripSlash(normPath(normalize3(path6))).toLowerCase(), "cacheKeyNormalize");
|
|
48630
48804
|
var pruneCache = /* @__PURE__ */ __name((cache2, abs) => {
|
|
48631
48805
|
abs = cacheKeyNormalize(abs);
|
|
48632
48806
|
for (const path6 of cache2.keys()) {
|
|
@@ -49331,9 +49505,9 @@ var require_extract = __commonJS({
|
|
|
49331
49505
|
const u3 = new Unpack(opt);
|
|
49332
49506
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
49333
49507
|
const file = opt.file;
|
|
49334
|
-
const p2 = new Promise((
|
|
49508
|
+
const p2 = new Promise((resolve4, reject) => {
|
|
49335
49509
|
u3.on("error", reject);
|
|
49336
|
-
u3.on("close",
|
|
49510
|
+
u3.on("close", resolve4);
|
|
49337
49511
|
fs2.stat(file, (er2, stat) => {
|
|
49338
49512
|
if (er2) {
|
|
49339
49513
|
reject(er2);
|
|
@@ -49480,12 +49654,12 @@ var require_isexe = __commonJS({
|
|
|
49480
49654
|
if (typeof Promise !== "function") {
|
|
49481
49655
|
throw new TypeError("callback not provided");
|
|
49482
49656
|
}
|
|
49483
|
-
return new Promise(function(
|
|
49657
|
+
return new Promise(function(resolve4, reject) {
|
|
49484
49658
|
isexe(path5, options || {}, function(er2, is) {
|
|
49485
49659
|
if (er2) {
|
|
49486
49660
|
reject(er2);
|
|
49487
49661
|
} else {
|
|
49488
|
-
|
|
49662
|
+
resolve4(is);
|
|
49489
49663
|
}
|
|
49490
49664
|
});
|
|
49491
49665
|
});
|
|
@@ -49560,25 +49734,25 @@ var require_which = __commonJS({
|
|
|
49560
49734
|
if (!opt) opt = {};
|
|
49561
49735
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
49562
49736
|
const found = [];
|
|
49563
|
-
const step = /* @__PURE__ */ __name((i2) => new Promise((
|
|
49564
|
-
if (i2 === pathEnv.length) return opt.all && found.length ?
|
|
49737
|
+
const step = /* @__PURE__ */ __name((i2) => new Promise((resolve4, reject) => {
|
|
49738
|
+
if (i2 === pathEnv.length) return opt.all && found.length ? resolve4(found) : reject(getNotFoundError(cmd));
|
|
49565
49739
|
const ppRaw = pathEnv[i2];
|
|
49566
49740
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
49567
49741
|
const pCmd = path5.join(pathPart, cmd);
|
|
49568
49742
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
49569
|
-
|
|
49743
|
+
resolve4(subStep(p2, i2, 0));
|
|
49570
49744
|
}), "step");
|
|
49571
|
-
const subStep = /* @__PURE__ */ __name((p2, i2, ii2) => new Promise((
|
|
49572
|
-
if (ii2 === pathExt.length) return
|
|
49745
|
+
const subStep = /* @__PURE__ */ __name((p2, i2, ii2) => new Promise((resolve4, reject) => {
|
|
49746
|
+
if (ii2 === pathExt.length) return resolve4(step(i2 + 1));
|
|
49573
49747
|
const ext = pathExt[ii2];
|
|
49574
49748
|
isexe(p2 + ext, {
|
|
49575
49749
|
pathExt: pathExtExe
|
|
49576
49750
|
}, (er2, is) => {
|
|
49577
49751
|
if (!er2 && is) {
|
|
49578
49752
|
if (opt.all) found.push(p2 + ext);
|
|
49579
|
-
else return
|
|
49753
|
+
else return resolve4(p2 + ext);
|
|
49580
49754
|
}
|
|
49581
|
-
return
|
|
49755
|
+
return resolve4(subStep(p2, i2, ii2 + 1));
|
|
49582
49756
|
});
|
|
49583
49757
|
}), "subStep");
|
|
49584
49758
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -49643,7 +49817,7 @@ var require_resolveCommand = __commonJS({
|
|
|
49643
49817
|
var getPathKey = require_path_key();
|
|
49644
49818
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
49645
49819
|
const env = parsed.options.env || process.env;
|
|
49646
|
-
const
|
|
49820
|
+
const cwd3 = process.cwd();
|
|
49647
49821
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
49648
49822
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
49649
49823
|
if (shouldSwitchCwd) {
|
|
@@ -49663,7 +49837,7 @@ var require_resolveCommand = __commonJS({
|
|
|
49663
49837
|
} catch (e2) {
|
|
49664
49838
|
} finally {
|
|
49665
49839
|
if (shouldSwitchCwd) {
|
|
49666
|
-
process.chdir(
|
|
49840
|
+
process.chdir(cwd3);
|
|
49667
49841
|
}
|
|
49668
49842
|
}
|
|
49669
49843
|
if (resolved) {
|
|
@@ -49811,7 +49985,7 @@ var require_parse2 = __commonJS({
|
|
|
49811
49985
|
return parsed;
|
|
49812
49986
|
}
|
|
49813
49987
|
__name(parseNonShell, "parseNonShell");
|
|
49814
|
-
function
|
|
49988
|
+
function parse7(command, args, options) {
|
|
49815
49989
|
if (args && !Array.isArray(args)) {
|
|
49816
49990
|
options = args;
|
|
49817
49991
|
args = null;
|
|
@@ -49830,8 +50004,8 @@ var require_parse2 = __commonJS({
|
|
|
49830
50004
|
};
|
|
49831
50005
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
49832
50006
|
}
|
|
49833
|
-
__name(
|
|
49834
|
-
module2.exports =
|
|
50007
|
+
__name(parse7, "parse");
|
|
50008
|
+
module2.exports = parse7;
|
|
49835
50009
|
}
|
|
49836
50010
|
});
|
|
49837
50011
|
|
|
@@ -49896,17 +50070,17 @@ var require_cross_spawn = __commonJS({
|
|
|
49896
50070
|
"use strict";
|
|
49897
50071
|
init_cjs_shims();
|
|
49898
50072
|
var cp = require("child_process");
|
|
49899
|
-
var
|
|
50073
|
+
var parse7 = require_parse2();
|
|
49900
50074
|
var enoent = require_enoent();
|
|
49901
50075
|
function spawn(command, args, options) {
|
|
49902
|
-
const parsed =
|
|
50076
|
+
const parsed = parse7(command, args, options);
|
|
49903
50077
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
49904
50078
|
enoent.hookChildProcess(spawned, parsed);
|
|
49905
50079
|
return spawned;
|
|
49906
50080
|
}
|
|
49907
50081
|
__name(spawn, "spawn");
|
|
49908
50082
|
function spawnSync2(command, args, options) {
|
|
49909
|
-
const parsed =
|
|
50083
|
+
const parsed = parse7(command, args, options);
|
|
49910
50084
|
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
49911
50085
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
49912
50086
|
return result;
|
|
@@ -49915,7 +50089,7 @@ var require_cross_spawn = __commonJS({
|
|
|
49915
50089
|
module2.exports = spawn;
|
|
49916
50090
|
module2.exports.spawn = spawn;
|
|
49917
50091
|
module2.exports.sync = spawnSync2;
|
|
49918
|
-
module2.exports._parse =
|
|
50092
|
+
module2.exports._parse = parse7;
|
|
49919
50093
|
module2.exports._enoent = enoent;
|
|
49920
50094
|
}
|
|
49921
50095
|
});
|
|
@@ -49963,8 +50137,8 @@ var init_npm_run_path = __esm({
|
|
|
49963
50137
|
import_node_path3 = __toESM(require("path"), 1);
|
|
49964
50138
|
import_node_url2 = require("url");
|
|
49965
50139
|
init_path_key();
|
|
49966
|
-
npmRunPath = /* @__PURE__ */ __name(({ cwd:
|
|
49967
|
-
const cwdString =
|
|
50140
|
+
npmRunPath = /* @__PURE__ */ __name(({ cwd: cwd3 = import_node_process2.default.cwd(), path: pathOption = import_node_process2.default.env[pathKey()], preferLocal = true, execPath = import_node_process2.default.execPath, addExecPath = true } = {}) => {
|
|
50141
|
+
const cwdString = cwd3 instanceof URL ? (0, import_node_url2.fileURLToPath)(cwd3) : cwd3;
|
|
49968
50142
|
const cwdPath = import_node_path3.default.resolve(cwdString);
|
|
49969
50143
|
const result = [];
|
|
49970
50144
|
if (preferLocal) {
|
|
@@ -50519,7 +50693,7 @@ var init_error = __esm({
|
|
|
50519
50693
|
}
|
|
50520
50694
|
return "failed";
|
|
50521
50695
|
}, "getErrorPrefix");
|
|
50522
|
-
makeError = /* @__PURE__ */ __name(({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd:
|
|
50696
|
+
makeError = /* @__PURE__ */ __name(({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd: cwd3 = import_node_process3.default.cwd() } } }) => {
|
|
50523
50697
|
exitCode = exitCode === null ? void 0 : exitCode;
|
|
50524
50698
|
signal = signal === null ? void 0 : signal;
|
|
50525
50699
|
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
@@ -50556,7 +50730,7 @@ ${error.message}` : execaMessage;
|
|
|
50556
50730
|
error.signalDescription = signalDescription;
|
|
50557
50731
|
error.stdout = stdout;
|
|
50558
50732
|
error.stderr = stderr;
|
|
50559
|
-
error.cwd =
|
|
50733
|
+
error.cwd = cwd3;
|
|
50560
50734
|
if (all !== void 0) {
|
|
50561
50735
|
error.all = all;
|
|
50562
50736
|
}
|
|
@@ -50949,7 +51123,7 @@ var init_kill = __esm({
|
|
|
50949
51123
|
return spawnedPromise;
|
|
50950
51124
|
}
|
|
50951
51125
|
let timeoutId;
|
|
50952
|
-
const timeoutPromise = new Promise((
|
|
51126
|
+
const timeoutPromise = new Promise((resolve4, reject) => {
|
|
50953
51127
|
timeoutId = setTimeout(() => {
|
|
50954
51128
|
timeoutKill(spawned, killSignal, reject);
|
|
50955
51129
|
}, timeout);
|
|
@@ -51517,9 +51691,9 @@ var init_promise = __esm({
|
|
|
51517
51691
|
});
|
|
51518
51692
|
}
|
|
51519
51693
|
}, "mergePromise");
|
|
51520
|
-
getSpawnedPromise = /* @__PURE__ */ __name((spawned) => new Promise((
|
|
51694
|
+
getSpawnedPromise = /* @__PURE__ */ __name((spawned) => new Promise((resolve4, reject) => {
|
|
51521
51695
|
spawned.on("exit", (exitCode, signal) => {
|
|
51522
|
-
|
|
51696
|
+
resolve4({
|
|
51523
51697
|
exitCode,
|
|
51524
51698
|
signal
|
|
51525
51699
|
});
|
|
@@ -51950,8 +52124,8 @@ var init_execa = __esm({
|
|
|
51950
52124
|
});
|
|
51951
52125
|
|
|
51952
52126
|
// ../../node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs
|
|
51953
|
-
async function findup(
|
|
51954
|
-
const segments = normalize(
|
|
52127
|
+
async function findup(cwd3, match, options = {}) {
|
|
52128
|
+
const segments = normalize(cwd3).split("/");
|
|
51955
52129
|
while (segments.length > 0) {
|
|
51956
52130
|
const path5 = segments.join("/") || "/";
|
|
51957
52131
|
const result = await match(path5);
|
|
@@ -51982,13 +52156,13 @@ async function executeCommand(command, args, options = {}) {
|
|
|
51982
52156
|
});
|
|
51983
52157
|
}
|
|
51984
52158
|
async function resolveOperationOptions(options = {}) {
|
|
51985
|
-
const
|
|
52159
|
+
const cwd3 = options.cwd || process.cwd();
|
|
51986
52160
|
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
51987
52161
|
if (!packageManager) {
|
|
51988
52162
|
throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
51989
52163
|
}
|
|
51990
52164
|
return {
|
|
51991
|
-
cwd:
|
|
52165
|
+
cwd: cwd3,
|
|
51992
52166
|
silent: options.silent ?? false,
|
|
51993
52167
|
packageManager,
|
|
51994
52168
|
dev: options.dev ?? false,
|
|
@@ -51996,9 +52170,9 @@ async function resolveOperationOptions(options = {}) {
|
|
|
51996
52170
|
global: options.global ?? false
|
|
51997
52171
|
};
|
|
51998
52172
|
}
|
|
51999
|
-
async function detectPackageManager(
|
|
52173
|
+
async function detectPackageManager(cwd3, options = {}) {
|
|
52000
52174
|
const detected = await findup(
|
|
52001
|
-
resolve(
|
|
52175
|
+
resolve(cwd3 || "."),
|
|
52002
52176
|
async (path5) => {
|
|
52003
52177
|
if (!options.ignorePackageJSON) {
|
|
52004
52178
|
const packageJSONPath = join(path5, "package.json");
|
|
@@ -52068,7 +52242,7 @@ async function installDependencies(options = {}) {
|
|
|
52068
52242
|
});
|
|
52069
52243
|
}
|
|
52070
52244
|
var import_node_fs6, import_promises2, import_node_module3, importExeca, hasCorepack, NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG, packageManagers;
|
|
52071
|
-
var
|
|
52245
|
+
var init_dist7 = __esm({
|
|
52072
52246
|
"../../node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs"() {
|
|
52073
52247
|
init_cjs_shims();
|
|
52074
52248
|
import_node_fs6 = require("fs");
|
|
@@ -63149,10 +63323,10 @@ ${f2.toString(16)}\r
|
|
|
63149
63323
|
}
|
|
63150
63324
|
__name(requireUtil$2, "requireUtil$2");
|
|
63151
63325
|
Q5(requireUtil$2, "requireUtil$2");
|
|
63152
|
-
var
|
|
63326
|
+
var parse7;
|
|
63153
63327
|
var hasRequiredParse;
|
|
63154
63328
|
function requireParse() {
|
|
63155
|
-
if (hasRequiredParse) return
|
|
63329
|
+
if (hasRequiredParse) return parse7;
|
|
63156
63330
|
hasRequiredParse = 1;
|
|
63157
63331
|
const { maxNameValuePairSize: e2, maxAttributeValueSize: A2 } = requireConstants$1(), { isCTLExcludingHtab: t2 } = requireUtil$2(), { collectASequenceOfCodePointsFast: r4 } = requireDataUrl(), n = require$$0__default;
|
|
63158
63332
|
function o(l2) {
|
|
@@ -63207,7 +63381,7 @@ ${f2.toString(16)}\r
|
|
|
63207
63381
|
return B3(l2, C4);
|
|
63208
63382
|
}
|
|
63209
63383
|
__name(B3, "B");
|
|
63210
|
-
return Q5(B3, "parseUnparsedAttributes"),
|
|
63384
|
+
return Q5(B3, "parseUnparsedAttributes"), parse7 = { parseSetCookie: o, parseUnparsedAttributes: B3 }, parse7;
|
|
63211
63385
|
}
|
|
63212
63386
|
__name(requireParse, "requireParse");
|
|
63213
63387
|
Q5(requireParse, "requireParse");
|
|
@@ -65018,14 +65192,14 @@ function currentShell() {
|
|
|
65018
65192
|
}
|
|
65019
65193
|
return "/bin/bash";
|
|
65020
65194
|
}
|
|
65021
|
-
function startShell(
|
|
65022
|
-
|
|
65195
|
+
function startShell(cwd3) {
|
|
65196
|
+
cwd3 = resolve(cwd3);
|
|
65023
65197
|
const shell = currentShell();
|
|
65024
65198
|
console.info(
|
|
65025
|
-
`(experimental) Opening shell in ${relative(process.cwd(),
|
|
65199
|
+
`(experimental) Opening shell in ${relative(process.cwd(), cwd3)}...`
|
|
65026
65200
|
);
|
|
65027
65201
|
(0, import_node_child_process4.spawnSync)(shell, [], {
|
|
65028
|
-
cwd:
|
|
65202
|
+
cwd: cwd3,
|
|
65029
65203
|
shell: true,
|
|
65030
65204
|
stdio: "inherit"
|
|
65031
65205
|
});
|
|
@@ -65100,8 +65274,8 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65100
65274
|
`Tarball not found: ${tarPath} (offline: ${options.offline})`
|
|
65101
65275
|
);
|
|
65102
65276
|
}
|
|
65103
|
-
const
|
|
65104
|
-
const extractPath = resolve(
|
|
65277
|
+
const cwd3 = resolve(options.cwd || ".");
|
|
65278
|
+
const extractPath = resolve(cwd3, options.dir || template.defaultDir);
|
|
65105
65279
|
if (options.forceClean) {
|
|
65106
65280
|
await (0, import_promises3.rm)(extractPath, { recursive: true, force: true });
|
|
65107
65281
|
}
|
|
@@ -65140,7 +65314,7 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65140
65314
|
};
|
|
65141
65315
|
}
|
|
65142
65316
|
var import_promises3, import_node_fs7, import_tar, import_node_stream, import_node_child_process4, import_node_os5, import_node_util3, import_proxy, inputRegex, http, _httpJSON, github, gitlab, bitbucket, sourcehut, providers, DEFAULT_REGISTRY, registryProvider, sourceProtoRe;
|
|
65143
|
-
var
|
|
65317
|
+
var init_dist8 = __esm({
|
|
65144
65318
|
"../../node_modules/.pnpm/giget@1.2.3/node_modules/giget/dist/index.mjs"() {
|
|
65145
65319
|
init_cjs_shims();
|
|
65146
65320
|
import_promises3 = require("fs/promises");
|
|
@@ -65148,7 +65322,7 @@ var init_dist7 = __esm({
|
|
|
65148
65322
|
import_tar = __toESM(require_tar(), 1);
|
|
65149
65323
|
init_dist();
|
|
65150
65324
|
init_defu();
|
|
65151
|
-
|
|
65325
|
+
init_dist7();
|
|
65152
65326
|
import_node_stream = require("stream");
|
|
65153
65327
|
import_node_child_process4 = require("child_process");
|
|
65154
65328
|
import_node_os5 = require("os");
|
|
@@ -65434,12 +65608,12 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
65434
65608
|
}
|
|
65435
65609
|
function __awaiter(thisArg, _arguments, P5, generator) {
|
|
65436
65610
|
function adopt(value2) {
|
|
65437
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
65438
|
-
|
|
65611
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
65612
|
+
resolve4(value2);
|
|
65439
65613
|
});
|
|
65440
65614
|
}
|
|
65441
65615
|
__name(adopt, "adopt");
|
|
65442
|
-
return new (P5 || (P5 = Promise))(function(
|
|
65616
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject) {
|
|
65443
65617
|
function fulfilled(value2) {
|
|
65444
65618
|
try {
|
|
65445
65619
|
step(generator.next(value2));
|
|
@@ -65457,7 +65631,7 @@ function __awaiter(thisArg, _arguments, P5, generator) {
|
|
|
65457
65631
|
}
|
|
65458
65632
|
__name(rejected, "rejected");
|
|
65459
65633
|
function step(result) {
|
|
65460
|
-
result.done ?
|
|
65634
|
+
result.done ? resolve4(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
65461
65635
|
}
|
|
65462
65636
|
__name(step, "step");
|
|
65463
65637
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -65659,15 +65833,15 @@ function __asyncValues(o) {
|
|
|
65659
65833
|
}, i2);
|
|
65660
65834
|
function verb(n) {
|
|
65661
65835
|
i2[n] = o[n] && function(v4) {
|
|
65662
|
-
return new Promise(function(
|
|
65663
|
-
v4 = o[n](v4), settle(
|
|
65836
|
+
return new Promise(function(resolve4, reject) {
|
|
65837
|
+
v4 = o[n](v4), settle(resolve4, reject, v4.done, v4.value);
|
|
65664
65838
|
});
|
|
65665
65839
|
};
|
|
65666
65840
|
}
|
|
65667
65841
|
__name(verb, "verb");
|
|
65668
|
-
function settle(
|
|
65842
|
+
function settle(resolve4, reject, d4, v4) {
|
|
65669
65843
|
Promise.resolve(v4).then(function(v5) {
|
|
65670
|
-
|
|
65844
|
+
resolve4({ value: v5, done: d4 });
|
|
65671
65845
|
}, reject);
|
|
65672
65846
|
}
|
|
65673
65847
|
__name(settle, "settle");
|
|
@@ -66510,11 +66684,11 @@ var require_ejs = __commonJS({
|
|
|
66510
66684
|
exports2.localsName = _DEFAULT_LOCALS_NAME;
|
|
66511
66685
|
exports2.promiseImpl = new Function("return this;")().Promise;
|
|
66512
66686
|
exports2.resolveInclude = function(name, filename, isDir) {
|
|
66513
|
-
var
|
|
66514
|
-
var
|
|
66515
|
-
var
|
|
66516
|
-
var includePath =
|
|
66517
|
-
var ext =
|
|
66687
|
+
var dirname4 = path5.dirname;
|
|
66688
|
+
var extname4 = path5.extname;
|
|
66689
|
+
var resolve4 = path5.resolve;
|
|
66690
|
+
var includePath = resolve4(isDir ? filename : dirname4(filename), name);
|
|
66691
|
+
var ext = extname4(name);
|
|
66518
66692
|
if (!ext) {
|
|
66519
66693
|
includePath += ".ejs";
|
|
66520
66694
|
}
|
|
@@ -66591,10 +66765,10 @@ var require_ejs = __commonJS({
|
|
|
66591
66765
|
var result;
|
|
66592
66766
|
if (!cb) {
|
|
66593
66767
|
if (typeof exports2.promiseImpl == "function") {
|
|
66594
|
-
return new exports2.promiseImpl(function(
|
|
66768
|
+
return new exports2.promiseImpl(function(resolve4, reject) {
|
|
66595
66769
|
try {
|
|
66596
66770
|
result = handleCache(options)(data2);
|
|
66597
|
-
|
|
66771
|
+
resolve4(result);
|
|
66598
66772
|
} catch (err) {
|
|
66599
66773
|
reject(err);
|
|
66600
66774
|
}
|
|
@@ -66877,10 +67051,10 @@ var require_ejs = __commonJS({
|
|
|
66877
67051
|
}, "anonymous");
|
|
66878
67052
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
66879
67053
|
var filename = opts.filename;
|
|
66880
|
-
var
|
|
67054
|
+
var basename3 = path5.basename(filename, path5.extname(filename));
|
|
66881
67055
|
try {
|
|
66882
67056
|
Object.defineProperty(returnedFn, "name", {
|
|
66883
|
-
value:
|
|
67057
|
+
value: basename3,
|
|
66884
67058
|
writable: false,
|
|
66885
67059
|
enumerable: false,
|
|
66886
67060
|
configurable: true
|
|
@@ -67582,7 +67756,7 @@ var require_parse3 = __commonJS({
|
|
|
67582
67756
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
67583
67757
|
init_cjs_shims();
|
|
67584
67758
|
var SemVer = require_semver();
|
|
67585
|
-
var
|
|
67759
|
+
var parse7 = /* @__PURE__ */ __name((version2, options, throwErrors = false) => {
|
|
67586
67760
|
if (version2 instanceof SemVer) {
|
|
67587
67761
|
return version2;
|
|
67588
67762
|
}
|
|
@@ -67595,7 +67769,7 @@ var require_parse3 = __commonJS({
|
|
|
67595
67769
|
throw er2;
|
|
67596
67770
|
}
|
|
67597
67771
|
}, "parse");
|
|
67598
|
-
module2.exports =
|
|
67772
|
+
module2.exports = parse7;
|
|
67599
67773
|
}
|
|
67600
67774
|
});
|
|
67601
67775
|
|
|
@@ -67603,9 +67777,9 @@ var require_parse3 = __commonJS({
|
|
|
67603
67777
|
var require_valid = __commonJS({
|
|
67604
67778
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
67605
67779
|
init_cjs_shims();
|
|
67606
|
-
var
|
|
67780
|
+
var parse7 = require_parse3();
|
|
67607
67781
|
var valid = /* @__PURE__ */ __name((version2, options) => {
|
|
67608
|
-
const v4 =
|
|
67782
|
+
const v4 = parse7(version2, options);
|
|
67609
67783
|
return v4 ? v4.version : null;
|
|
67610
67784
|
}, "valid");
|
|
67611
67785
|
module2.exports = valid;
|
|
@@ -67616,9 +67790,9 @@ var require_valid = __commonJS({
|
|
|
67616
67790
|
var require_clean = __commonJS({
|
|
67617
67791
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
67618
67792
|
init_cjs_shims();
|
|
67619
|
-
var
|
|
67793
|
+
var parse7 = require_parse3();
|
|
67620
67794
|
var clean = /* @__PURE__ */ __name((version2, options) => {
|
|
67621
|
-
const s2 =
|
|
67795
|
+
const s2 = parse7(version2.trim().replace(/^[=v]+/, ""), options);
|
|
67622
67796
|
return s2 ? s2.version : null;
|
|
67623
67797
|
}, "clean");
|
|
67624
67798
|
module2.exports = clean;
|
|
@@ -67650,10 +67824,10 @@ var require_inc = __commonJS({
|
|
|
67650
67824
|
var require_diff = __commonJS({
|
|
67651
67825
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
67652
67826
|
init_cjs_shims();
|
|
67653
|
-
var
|
|
67827
|
+
var parse7 = require_parse3();
|
|
67654
67828
|
var diff = /* @__PURE__ */ __name((version1, version2) => {
|
|
67655
|
-
const v1 =
|
|
67656
|
-
const v22 =
|
|
67829
|
+
const v1 = parse7(version1, null, true);
|
|
67830
|
+
const v22 = parse7(version2, null, true);
|
|
67657
67831
|
const comparison = v1.compare(v22);
|
|
67658
67832
|
if (comparison === 0) {
|
|
67659
67833
|
return null;
|
|
@@ -67725,9 +67899,9 @@ var require_patch = __commonJS({
|
|
|
67725
67899
|
var require_prerelease = __commonJS({
|
|
67726
67900
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
67727
67901
|
init_cjs_shims();
|
|
67728
|
-
var
|
|
67902
|
+
var parse7 = require_parse3();
|
|
67729
67903
|
var prerelease = /* @__PURE__ */ __name((version2, options) => {
|
|
67730
|
-
const parsed =
|
|
67904
|
+
const parsed = parse7(version2, options);
|
|
67731
67905
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
67732
67906
|
}, "prerelease");
|
|
67733
67907
|
module2.exports = prerelease;
|
|
@@ -67913,7 +68087,7 @@ var require_coerce = __commonJS({
|
|
|
67913
68087
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
67914
68088
|
init_cjs_shims();
|
|
67915
68089
|
var SemVer = require_semver();
|
|
67916
|
-
var
|
|
68090
|
+
var parse7 = require_parse3();
|
|
67917
68091
|
var { safeRe: re3, t: t2 } = require_re();
|
|
67918
68092
|
var coerce2 = /* @__PURE__ */ __name((version2, options) => {
|
|
67919
68093
|
if (version2 instanceof SemVer) {
|
|
@@ -67948,7 +68122,7 @@ var require_coerce = __commonJS({
|
|
|
67948
68122
|
const patch = match[4] || "0";
|
|
67949
68123
|
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
67950
68124
|
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
67951
|
-
return
|
|
68125
|
+
return parse7(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
67952
68126
|
}, "coerce");
|
|
67953
68127
|
module2.exports = coerce2;
|
|
67954
68128
|
}
|
|
@@ -68971,7 +69145,7 @@ var require_semver2 = __commonJS({
|
|
|
68971
69145
|
var constants3 = require_constants2();
|
|
68972
69146
|
var SemVer = require_semver();
|
|
68973
69147
|
var identifiers = require_identifiers();
|
|
68974
|
-
var
|
|
69148
|
+
var parse7 = require_parse3();
|
|
68975
69149
|
var valid = require_valid();
|
|
68976
69150
|
var clean = require_clean();
|
|
68977
69151
|
var inc = require_inc();
|
|
@@ -69009,7 +69183,7 @@ var require_semver2 = __commonJS({
|
|
|
69009
69183
|
var simplifyRange = require_simplify();
|
|
69010
69184
|
var subset = require_subset();
|
|
69011
69185
|
module2.exports = {
|
|
69012
|
-
parse:
|
|
69186
|
+
parse: parse7,
|
|
69013
69187
|
valid,
|
|
69014
69188
|
clean,
|
|
69015
69189
|
inc,
|
|
@@ -69070,17 +69244,17 @@ var require_install_packages_task = __commonJS({
|
|
|
69070
69244
|
var child_process_1 = require("child_process");
|
|
69071
69245
|
var path_1 = require("path");
|
|
69072
69246
|
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
69073
|
-
function installPackagesTask(tree, alwaysRun = false,
|
|
69074
|
-
if (!tree.listChanges().find((f2) => f2.path === (0, devkit_exports_1.joinPathFragments)(
|
|
69247
|
+
function installPackagesTask(tree, alwaysRun = false, cwd3 = "", packageManager = (0, devkit_exports_1.detectPackageManager)((0, path_1.join)(tree.root, cwd3))) {
|
|
69248
|
+
if (!tree.listChanges().find((f2) => f2.path === (0, devkit_exports_1.joinPathFragments)(cwd3, "package.json")) && !alwaysRun) {
|
|
69075
69249
|
return;
|
|
69076
69250
|
}
|
|
69077
|
-
const packageJsonValue = tree.read((0, devkit_exports_1.joinPathFragments)(
|
|
69251
|
+
const packageJsonValue = tree.read((0, devkit_exports_1.joinPathFragments)(cwd3, "package.json"), "utf-8");
|
|
69078
69252
|
let storedPackageJsonValue = global["__packageJsonInstallCache__"];
|
|
69079
69253
|
if (storedPackageJsonValue != packageJsonValue || alwaysRun) {
|
|
69080
69254
|
global["__packageJsonInstallCache__"] = packageJsonValue;
|
|
69081
69255
|
const pmc = (0, devkit_exports_1.getPackageManagerCommand)(packageManager);
|
|
69082
69256
|
const execSyncOptions = {
|
|
69083
|
-
cwd: (0, path_1.join)(tree.root,
|
|
69257
|
+
cwd: (0, path_1.join)(tree.root, cwd3),
|
|
69084
69258
|
stdio: process.env.NX_GENERATE_QUIET === "true" ? "ignore" : "inherit",
|
|
69085
69259
|
windowsHide: false
|
|
69086
69260
|
};
|
|
@@ -69399,8 +69573,8 @@ var require_tmp = __commonJS({
|
|
|
69399
69573
|
function _assertIsRelative(name, option, tmpDir) {
|
|
69400
69574
|
if (option === "name") {
|
|
69401
69575
|
if (path5.isAbsolute(name)) throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
69402
|
-
let
|
|
69403
|
-
if (
|
|
69576
|
+
let basename3 = path5.basename(name);
|
|
69577
|
+
if (basename3 === ".." || basename3 === "." || basename3 !== name) throw new Error(`${option} option must not contain a path, found "${name}".`);
|
|
69404
69578
|
} else {
|
|
69405
69579
|
if (path5.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
|
69406
69580
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
|
@@ -71568,7 +71742,7 @@ var require_Observable = __commonJS({
|
|
|
71568
71742
|
Observable2.prototype.forEach = function(next, promiseCtor) {
|
|
71569
71743
|
var _this = this;
|
|
71570
71744
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
71571
|
-
return new promiseCtor(function(
|
|
71745
|
+
return new promiseCtor(function(resolve4, reject) {
|
|
71572
71746
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
71573
71747
|
next: /* @__PURE__ */ __name(function(value2) {
|
|
71574
71748
|
try {
|
|
@@ -71579,7 +71753,7 @@ var require_Observable = __commonJS({
|
|
|
71579
71753
|
}
|
|
71580
71754
|
}, "next"),
|
|
71581
71755
|
error: reject,
|
|
71582
|
-
complete:
|
|
71756
|
+
complete: resolve4
|
|
71583
71757
|
});
|
|
71584
71758
|
_this.subscribe(subscriber);
|
|
71585
71759
|
});
|
|
@@ -71601,14 +71775,14 @@ var require_Observable = __commonJS({
|
|
|
71601
71775
|
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
71602
71776
|
var _this = this;
|
|
71603
71777
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
71604
|
-
return new promiseCtor(function(
|
|
71778
|
+
return new promiseCtor(function(resolve4, reject) {
|
|
71605
71779
|
var value2;
|
|
71606
71780
|
_this.subscribe(function(x4) {
|
|
71607
71781
|
return value2 = x4;
|
|
71608
71782
|
}, function(err) {
|
|
71609
71783
|
return reject(err);
|
|
71610
71784
|
}, function() {
|
|
71611
|
-
return
|
|
71785
|
+
return resolve4(value2);
|
|
71612
71786
|
});
|
|
71613
71787
|
});
|
|
71614
71788
|
};
|
|
@@ -73991,12 +74165,12 @@ var require_innerFrom = __commonJS({
|
|
|
73991
74165
|
init_cjs_shims();
|
|
73992
74166
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
73993
74167
|
function adopt(value2) {
|
|
73994
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
73995
|
-
|
|
74168
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
74169
|
+
resolve4(value2);
|
|
73996
74170
|
});
|
|
73997
74171
|
}
|
|
73998
74172
|
__name(adopt, "adopt");
|
|
73999
|
-
return new (P5 || (P5 = Promise))(function(
|
|
74173
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject) {
|
|
74000
74174
|
function fulfilled(value2) {
|
|
74001
74175
|
try {
|
|
74002
74176
|
step(generator.next(value2));
|
|
@@ -74014,7 +74188,7 @@ var require_innerFrom = __commonJS({
|
|
|
74014
74188
|
}
|
|
74015
74189
|
__name(rejected, "rejected");
|
|
74016
74190
|
function step(result) {
|
|
74017
|
-
result.done ?
|
|
74191
|
+
result.done ? resolve4(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
74018
74192
|
}
|
|
74019
74193
|
__name(step, "step");
|
|
74020
74194
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -74125,15 +74299,15 @@ var require_innerFrom = __commonJS({
|
|
|
74125
74299
|
}, i2);
|
|
74126
74300
|
function verb(n) {
|
|
74127
74301
|
i2[n] = o[n] && function(v4) {
|
|
74128
|
-
return new Promise(function(
|
|
74129
|
-
v4 = o[n](v4), settle(
|
|
74302
|
+
return new Promise(function(resolve4, reject) {
|
|
74303
|
+
v4 = o[n](v4), settle(resolve4, reject, v4.done, v4.value);
|
|
74130
74304
|
});
|
|
74131
74305
|
};
|
|
74132
74306
|
}
|
|
74133
74307
|
__name(verb, "verb");
|
|
74134
|
-
function settle(
|
|
74308
|
+
function settle(resolve4, reject, d4, v4) {
|
|
74135
74309
|
Promise.resolve(v4).then(function(v5) {
|
|
74136
|
-
|
|
74310
|
+
resolve4({
|
|
74137
74311
|
value: v5,
|
|
74138
74312
|
done: d4
|
|
74139
74313
|
});
|
|
@@ -74882,7 +75056,7 @@ var require_lastValueFrom = __commonJS({
|
|
|
74882
75056
|
var EmptyError_1 = require_EmptyError();
|
|
74883
75057
|
function lastValueFrom(source, config) {
|
|
74884
75058
|
var hasConfig = typeof config === "object";
|
|
74885
|
-
return new Promise(function(
|
|
75059
|
+
return new Promise(function(resolve4, reject) {
|
|
74886
75060
|
var _hasValue = false;
|
|
74887
75061
|
var _value;
|
|
74888
75062
|
source.subscribe({
|
|
@@ -74893,9 +75067,9 @@ var require_lastValueFrom = __commonJS({
|
|
|
74893
75067
|
error: reject,
|
|
74894
75068
|
complete: /* @__PURE__ */ __name(function() {
|
|
74895
75069
|
if (_hasValue) {
|
|
74896
|
-
|
|
75070
|
+
resolve4(_value);
|
|
74897
75071
|
} else if (hasConfig) {
|
|
74898
|
-
|
|
75072
|
+
resolve4(config.defaultValue);
|
|
74899
75073
|
} else {
|
|
74900
75074
|
reject(new EmptyError_1.EmptyError());
|
|
74901
75075
|
}
|
|
@@ -74921,16 +75095,16 @@ var require_firstValueFrom = __commonJS({
|
|
|
74921
75095
|
var Subscriber_1 = require_Subscriber();
|
|
74922
75096
|
function firstValueFrom(source, config) {
|
|
74923
75097
|
var hasConfig = typeof config === "object";
|
|
74924
|
-
return new Promise(function(
|
|
75098
|
+
return new Promise(function(resolve4, reject) {
|
|
74925
75099
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
74926
75100
|
next: /* @__PURE__ */ __name(function(value2) {
|
|
74927
|
-
|
|
75101
|
+
resolve4(value2);
|
|
74928
75102
|
subscriber.unsubscribe();
|
|
74929
75103
|
}, "next"),
|
|
74930
75104
|
error: reject,
|
|
74931
75105
|
complete: /* @__PURE__ */ __name(function() {
|
|
74932
75106
|
if (hasConfig) {
|
|
74933
|
-
|
|
75107
|
+
resolve4(config.defaultValue);
|
|
74934
75108
|
} else {
|
|
74935
75109
|
reject(new EmptyError_1.EmptyError());
|
|
74936
75110
|
}
|
|
@@ -84914,7 +85088,7 @@ function createJiti(id, opts = {}) {
|
|
|
84914
85088
|
__name(createJiti, "createJiti");
|
|
84915
85089
|
|
|
84916
85090
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
84917
|
-
|
|
85091
|
+
init_dist6();
|
|
84918
85092
|
|
|
84919
85093
|
// ../../node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
84920
85094
|
init_cjs_shims();
|
|
@@ -85124,7 +85298,7 @@ function withDefaults(options) {
|
|
|
85124
85298
|
return { ...defaults, ...options };
|
|
85125
85299
|
}
|
|
85126
85300
|
__name(withDefaults, "withDefaults");
|
|
85127
|
-
function
|
|
85301
|
+
function parse5(contents, options = {}) {
|
|
85128
85302
|
const config = {};
|
|
85129
85303
|
const lines = contents.split(RE_LINES);
|
|
85130
85304
|
for (const line of lines) {
|
|
@@ -85149,12 +85323,12 @@ function parse4(contents, options = {}) {
|
|
|
85149
85323
|
}
|
|
85150
85324
|
return options.flat ? config : unflatten(config, { overwrite: true });
|
|
85151
85325
|
}
|
|
85152
|
-
__name(
|
|
85326
|
+
__name(parse5, "parse");
|
|
85153
85327
|
function parseFile(path5, options) {
|
|
85154
85328
|
if (!(0, import_node_fs3.existsSync)(path5)) {
|
|
85155
85329
|
return {};
|
|
85156
85330
|
}
|
|
85157
|
-
return
|
|
85331
|
+
return parse5((0, import_node_fs3.readFileSync)(path5, "utf8"), options);
|
|
85158
85332
|
}
|
|
85159
85333
|
__name(parseFile, "parseFile");
|
|
85160
85334
|
function read2(options) {
|
|
@@ -85815,7 +85989,7 @@ function hash(object, options = {}) {
|
|
|
85815
85989
|
__name(hash, "hash");
|
|
85816
85990
|
|
|
85817
85991
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
85818
|
-
|
|
85992
|
+
init_dist5();
|
|
85819
85993
|
var dotenv = __toESM(require_main(), 1);
|
|
85820
85994
|
async function setupDotenv(options) {
|
|
85821
85995
|
const targetEnvironment = options.env ?? process.env;
|
|
@@ -85850,7 +86024,7 @@ async function loadDotenv(options) {
|
|
|
85850
86024
|
return environment;
|
|
85851
86025
|
}
|
|
85852
86026
|
__name(loadDotenv, "loadDotenv");
|
|
85853
|
-
function interpolate(target, source = {},
|
|
86027
|
+
function interpolate(target, source = {}, parse7 = (v4) => v4) {
|
|
85854
86028
|
function getValue(key) {
|
|
85855
86029
|
return source[key] === void 0 ? target[key] : source[key];
|
|
85856
86030
|
}
|
|
@@ -85860,7 +86034,7 @@ function interpolate(target, source = {}, parse6 = (v4) => v4) {
|
|
|
85860
86034
|
return value2;
|
|
85861
86035
|
}
|
|
85862
86036
|
const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
|
|
85863
|
-
return
|
|
86037
|
+
return parse7(
|
|
85864
86038
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
85865
86039
|
matches.reduce((newValue, match) => {
|
|
85866
86040
|
const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
|
|
@@ -86098,7 +86272,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
86098
86272
|
}
|
|
86099
86273
|
const _merger = options.merger || defu;
|
|
86100
86274
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
86101
|
-
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (
|
|
86275
|
+
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist8(), dist_exports));
|
|
86102
86276
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
86103
86277
|
let cloneDir;
|
|
86104
86278
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -86132,18 +86306,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
86132
86306
|
}
|
|
86133
86307
|
const ext = extname(source);
|
|
86134
86308
|
const isDir = !ext || ext === basename(source);
|
|
86135
|
-
const
|
|
86309
|
+
const cwd3 = resolve(options.cwd, isDir ? source : dirname(source));
|
|
86136
86310
|
if (isDir) {
|
|
86137
86311
|
source = options.configFile;
|
|
86138
86312
|
}
|
|
86139
86313
|
const res = {
|
|
86140
86314
|
config: void 0,
|
|
86141
86315
|
configFile: void 0,
|
|
86142
|
-
cwd:
|
|
86316
|
+
cwd: cwd3,
|
|
86143
86317
|
source,
|
|
86144
86318
|
sourceOptions
|
|
86145
86319
|
};
|
|
86146
|
-
res.configFile = tryResolve(resolve(
|
|
86320
|
+
res.configFile = tryResolve(resolve(cwd3, source)) || tryResolve(resolve(cwd3, ".config", source.replace(/\.config$/, ""))) || tryResolve(resolve(cwd3, ".config", source)) || source;
|
|
86147
86321
|
if (!(0, import_node_fs8.existsSync)(res.configFile)) {
|
|
86148
86322
|
return res;
|
|
86149
86323
|
}
|
|
@@ -90955,9 +91129,9 @@ Stacktrace: ${error.stack}`, config);
|
|
|
90955
91129
|
init_cjs_shims();
|
|
90956
91130
|
var import_node_child_process5 = require("child_process");
|
|
90957
91131
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
90958
|
-
var run = /* @__PURE__ */ __name((config, command,
|
|
91132
|
+
var run = /* @__PURE__ */ __name((config, command, cwd3 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
|
|
90959
91133
|
return (0, import_node_child_process5.execSync)(command, {
|
|
90960
|
-
cwd:
|
|
91134
|
+
cwd: cwd3,
|
|
90961
91135
|
env: {
|
|
90962
91136
|
...process.env,
|
|
90963
91137
|
...env,
|