@storm-software/git-tools 2.83.4 → 2.84.1
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/README.md +1 -1
- 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
package/bin/prepare/index.js
CHANGED
|
@@ -40,9 +40,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
40
|
));
|
|
41
41
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
42
|
|
|
43
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.
|
|
43
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/esm_shims.js
|
|
44
44
|
var init_esm_shims = __esm({
|
|
45
|
-
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.
|
|
45
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/esm_shims.js"() {
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -2352,30 +2352,30 @@ var require_jiti = __commonJS({
|
|
|
2352
2352
|
__name(dist_joinURL, "dist_joinURL");
|
|
2353
2353
|
Symbol.for("ufo:protocolRelative");
|
|
2354
2354
|
Object.defineProperty;
|
|
2355
|
-
const
|
|
2356
|
-
function
|
|
2357
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
2355
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
2356
|
+
function normalizeWindowsPath3(input = "") {
|
|
2357
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
2358
2358
|
}
|
|
2359
|
-
__name(
|
|
2360
|
-
const
|
|
2359
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
2360
|
+
const _UNC_REGEX3 = /^[/\\]{2}/, _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/, pathe_ff20891b_normalize = /* @__PURE__ */ __name(function(path5) {
|
|
2361
2361
|
if (0 === path5.length) return ".";
|
|
2362
|
-
const isUNCPath = (path5 =
|
|
2363
|
-
return 0 === (path5 =
|
|
2364
|
-
}, "pathe_ff20891b_normalize"),
|
|
2362
|
+
const isUNCPath = (path5 = normalizeWindowsPath3(path5)).match(_UNC_REGEX3), isPathAbsolute = isAbsolute3(path5), trailingSeparator = "/" === path5[path5.length - 1];
|
|
2363
|
+
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);
|
|
2364
|
+
}, "pathe_ff20891b_normalize"), join5 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2365
2365
|
if (0 === arguments_.length) return ".";
|
|
2366
2366
|
let joined;
|
|
2367
2367
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
2368
2368
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
2369
2369
|
}, "join");
|
|
2370
|
-
const
|
|
2370
|
+
const resolve4 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2371
2371
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
2372
|
-
for (let index = (arguments_ = arguments_.map((argument) =>
|
|
2372
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath3(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
2373
2373
|
const path5 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
2374
|
-
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute =
|
|
2374
|
+
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute = isAbsolute3(path5));
|
|
2375
2375
|
}
|
|
2376
|
-
return resolvedPath =
|
|
2376
|
+
return resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute3(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
2377
2377
|
}, "resolve");
|
|
2378
|
-
function
|
|
2378
|
+
function normalizeString3(path5, allowAboveRoot) {
|
|
2379
2379
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
2380
2380
|
for (let index = 0; index <= path5.length; ++index) {
|
|
2381
2381
|
if (index < path5.length) char = path5[index];
|
|
@@ -2404,17 +2404,17 @@ var require_jiti = __commonJS({
|
|
|
2404
2404
|
}
|
|
2405
2405
|
return res;
|
|
2406
2406
|
}
|
|
2407
|
-
__name(
|
|
2408
|
-
const
|
|
2409
|
-
return
|
|
2410
|
-
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/,
|
|
2411
|
-
const match = _EXTNAME_RE2.exec(
|
|
2407
|
+
__name(normalizeString3, "normalizeString");
|
|
2408
|
+
const isAbsolute3 = /* @__PURE__ */ __name(function(p2) {
|
|
2409
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
2410
|
+
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/, extname4 = /* @__PURE__ */ __name(function(p2) {
|
|
2411
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath3(p2));
|
|
2412
2412
|
return match && match[1] || "";
|
|
2413
2413
|
}, "extname"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
2414
|
-
const segments =
|
|
2415
|
-
return 1 === segments.length &&
|
|
2416
|
-
}, "pathe_ff20891b_dirname"),
|
|
2417
|
-
const lastSegment =
|
|
2414
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
2415
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute3(p2) ? "/" : ".");
|
|
2416
|
+
}, "pathe_ff20891b_dirname"), basename3 = /* @__PURE__ */ __name(function(p2, extension) {
|
|
2417
|
+
const lastSegment = normalizeWindowsPath3(p2).split("/").pop();
|
|
2418
2418
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
2419
2419
|
}, "basename"), external_node_url_namespaceObject = __require("node:url"), external_node_assert_namespaceObject = __require("node:assert"), external_node_process_namespaceObject = __require("node:process"), external_node_path_namespaceObject = __require("node:path"), external_node_v8_namespaceObject = __require("node:v8"), external_node_util_namespaceObject = __require("node:util"), BUILTIN_MODULES2 = new Set(external_node_module_namespaceObject.builtinModules);
|
|
2420
2420
|
function normalizeSlash2(path5) {
|
|
@@ -2565,8 +2565,8 @@ var require_jiti = __commonJS({
|
|
|
2565
2565
|
const packageType = getPackageType2(url);
|
|
2566
2566
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
2567
2567
|
}
|
|
2568
|
-
const
|
|
2569
|
-
if (
|
|
2568
|
+
const format4 = extensionFormatMap2[value2];
|
|
2569
|
+
if (format4) return format4;
|
|
2570
2570
|
if (ignoreErrors) return;
|
|
2571
2571
|
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(url);
|
|
2572
2572
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -2583,11 +2583,11 @@ var require_jiti = __commonJS({
|
|
|
2583
2583
|
__name(emitInvalidSegmentDeprecation2, "emitInvalidSegmentDeprecation");
|
|
2584
2584
|
function emitLegacyIndexDeprecation2(url, packageJsonUrl, base, main) {
|
|
2585
2585
|
if (external_node_process_namespaceObject.noDeprecation) return;
|
|
2586
|
-
const
|
|
2586
|
+
const format4 = function(url2, context) {
|
|
2587
2587
|
const protocol = url2.protocol;
|
|
2588
2588
|
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url2, context, true) || null;
|
|
2589
2589
|
}(url, { parentURL: base.href });
|
|
2590
|
-
if ("module" !==
|
|
2590
|
+
if ("module" !== format4) return;
|
|
2591
2591
|
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);
|
|
2592
2592
|
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}.
|
|
2593
2593
|
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}.
|
|
@@ -2902,7 +2902,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2902
2902
|
}
|
|
2903
2903
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
2904
2904
|
if (BUILTIN_MODULES2.has(id)) return "node:" + id;
|
|
2905
|
-
if (id.startsWith("file://") && (id = fileURLToPath3(id)),
|
|
2905
|
+
if (id.startsWith("file://") && (id = fileURLToPath3(id)), isAbsolute3(id)) try {
|
|
2906
2906
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL2(id);
|
|
2907
2907
|
} catch (error) {
|
|
2908
2908
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -3016,8 +3016,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3016
3016
|
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]") };
|
|
3017
3017
|
function debug2(ctx, ...args) {
|
|
3018
3018
|
if (!ctx.opts.debug) return;
|
|
3019
|
-
const
|
|
3020
|
-
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(
|
|
3019
|
+
const cwd3 = process.cwd();
|
|
3020
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd3, "."))].join(" ")));
|
|
3021
3021
|
}
|
|
3022
3022
|
__name(debug2, "debug");
|
|
3023
3023
|
function jitiInteropDefault(ctx, mod) {
|
|
@@ -3059,17 +3059,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3059
3059
|
let resolved, lastError;
|
|
3060
3060
|
if (ctx.isNativeRe.test(id)) return id;
|
|
3061
3061
|
ctx.alias && (id = function(path5, aliases2) {
|
|
3062
|
-
const _path =
|
|
3062
|
+
const _path = normalizeWindowsPath3(path5);
|
|
3063
3063
|
aliases2 = normalizeAliases(aliases2);
|
|
3064
3064
|
for (const [alias, to] of Object.entries(aliases2)) {
|
|
3065
3065
|
if (!_path.startsWith(alias)) continue;
|
|
3066
3066
|
const _alias = utils_hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
|
3067
|
-
if (utils_hasTrailingSlash(_path[_alias.length])) return
|
|
3067
|
+
if (utils_hasTrailingSlash(_path[_alias.length])) return join5(to, _path.slice(alias.length));
|
|
3068
3068
|
}
|
|
3069
3069
|
return _path;
|
|
3070
3070
|
}(id, ctx.alias));
|
|
3071
3071
|
let parentURL = options?.parentURL || ctx.url;
|
|
3072
|
-
isDir(parentURL) && (parentURL =
|
|
3072
|
+
isDir(parentURL) && (parentURL = join5(parentURL, "_index.js"));
|
|
3073
3073
|
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
3074
3074
|
for (const conditions of conditionSets) {
|
|
3075
3075
|
try {
|
|
@@ -3121,7 +3121,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3121
3121
|
}
|
|
3122
3122
|
const filename = jitiResolve(ctx, id, opts);
|
|
3123
3123
|
if (!filename && opts.try) return;
|
|
3124
|
-
const ext =
|
|
3124
|
+
const ext = extname4(filename);
|
|
3125
3125
|
if (".json" === ext) {
|
|
3126
3126
|
debug2(ctx, "[json]", filename);
|
|
3127
3127
|
const jsonModule = ctx.nativeRequire(filename);
|
|
@@ -3140,7 +3140,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3140
3140
|
__name(jitiRequire, "jitiRequire");
|
|
3141
3141
|
function nativeImportOrRequire(ctx, id, async) {
|
|
3142
3142
|
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
3143
|
-
return _5 &&
|
|
3143
|
+
return _5 && isAbsolute3(id2) ? pathToFileURL2(id2) : id2;
|
|
3144
3144
|
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
3145
3145
|
}
|
|
3146
3146
|
__name(nativeImportOrRequire, "nativeImportOrRequire");
|
|
@@ -3149,11 +3149,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3149
3149
|
if (!ctx.opts.fsCache || !topts.filename) return get();
|
|
3150
3150
|
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
3151
3151
|
`;
|
|
3152
|
-
let cacheName = `${
|
|
3152
|
+
let cacheName = `${basename3(pathe_ff20891b_dirname(topts.filename))}-${function(path5) {
|
|
3153
3153
|
return path5.match(FILENAME_RE)?.[2];
|
|
3154
3154
|
}(topts.filename)}` + (ctx.opts.sourceMaps ? "+map" : "") + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs");
|
|
3155
3155
|
topts.jsx && topts.filename.endsWith("x") && (cacheName += "x");
|
|
3156
|
-
const cacheDir = ctx.opts.fsCache, cacheFilePath =
|
|
3156
|
+
const cacheDir = ctx.opts.fsCache, cacheFilePath = join5(cacheDir, cacheName);
|
|
3157
3157
|
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3158
3158
|
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3159
3159
|
if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
@@ -3165,14 +3165,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3165
3165
|
__name(getCache, "getCache");
|
|
3166
3166
|
function prepareCacheDir(ctx) {
|
|
3167
3167
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3168
|
-
const nmDir = ctx2.filename &&
|
|
3169
|
-
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return
|
|
3168
|
+
const nmDir = ctx2.filename && resolve4(ctx2.filename, "../node_modules");
|
|
3169
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join5(nmDir, ".cache/jiti");
|
|
3170
3170
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
3171
3171
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
3172
3172
|
const _env = process.env.TMPDIR;
|
|
3173
3173
|
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
3174
3174
|
}
|
|
3175
|
-
return
|
|
3175
|
+
return join5(_tmpDir, "jiti");
|
|
3176
3176
|
}(ctx)), ctx.opts.fsCache) try {
|
|
3177
3177
|
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
3178
3178
|
try {
|
|
@@ -3195,11 +3195,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3195
3195
|
}
|
|
3196
3196
|
__name(transform2, "transform");
|
|
3197
3197
|
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
3198
|
-
const id = evalOptions.id || (evalOptions.filename ?
|
|
3198
|
+
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) {
|
|
3199
3199
|
for (; path5 && "." !== path5 && "/" !== path5; ) {
|
|
3200
|
-
path5 =
|
|
3200
|
+
path5 = join5(path5, "..");
|
|
3201
3201
|
try {
|
|
3202
|
-
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(
|
|
3202
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join5(path5, "package.json"), "utf8");
|
|
3203
3203
|
try {
|
|
3204
3204
|
return JSON.parse(pkg);
|
|
3205
3205
|
} catch {
|
|
@@ -3265,7 +3265,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3265
3265
|
const deprecatOverrides = {};
|
|
3266
3266
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3267
3267
|
}(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("|")})/`);
|
|
3268
|
-
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename =
|
|
3268
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join5(filename, "_index.js"));
|
|
3269
3269
|
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 };
|
|
3270
3270
|
isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3271
3271
|
const jiti = Object.assign(function(id) {
|
|
@@ -3589,7 +3589,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3589
3589
|
(!path5 || addTrailingSlash && !path5.endsWith("/..")) && (path5 += "/"), url.path = path5;
|
|
3590
3590
|
}
|
|
3591
3591
|
__name(normalizePath, "normalizePath");
|
|
3592
|
-
function
|
|
3592
|
+
function resolve4(input, base) {
|
|
3593
3593
|
if (!input && !base) return "";
|
|
3594
3594
|
const url = parseUrl(input);
|
|
3595
3595
|
let inputType = url.type;
|
|
@@ -3626,8 +3626,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3626
3626
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
3627
3627
|
}
|
|
3628
3628
|
}
|
|
3629
|
-
__name(
|
|
3630
|
-
return
|
|
3629
|
+
__name(resolve4, "resolve");
|
|
3630
|
+
return resolve4;
|
|
3631
3631
|
}();
|
|
3632
3632
|
}, "./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, exports2) {
|
|
3633
3633
|
!function(exports3) {
|
|
@@ -3681,18 +3681,18 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3681
3681
|
const c = chars.charCodeAt(i2);
|
|
3682
3682
|
intToChar[i2] = c, charToInt[c] = i2;
|
|
3683
3683
|
}
|
|
3684
|
-
function decodeInteger(reader,
|
|
3684
|
+
function decodeInteger(reader, relative3) {
|
|
3685
3685
|
let value2 = 0, shift = 0, integer = 0;
|
|
3686
3686
|
do {
|
|
3687
3687
|
const c = reader.next();
|
|
3688
3688
|
integer = charToInt[c], value2 |= (31 & integer) << shift, shift += 5;
|
|
3689
3689
|
} while (32 & integer);
|
|
3690
3690
|
const shouldNegate = 1 & value2;
|
|
3691
|
-
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2),
|
|
3691
|
+
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative3 + value2;
|
|
3692
3692
|
}
|
|
3693
3693
|
__name(decodeInteger, "decodeInteger");
|
|
3694
|
-
function encodeInteger(builder, num,
|
|
3695
|
-
let delta = num -
|
|
3694
|
+
function encodeInteger(builder, num, relative3) {
|
|
3695
|
+
let delta = num - relative3;
|
|
3696
3696
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
3697
3697
|
do {
|
|
3698
3698
|
let clamped = 31 & delta;
|
|
@@ -3919,10 +3919,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3919
3919
|
}, "./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, exports2, __webpack_require__2) {
|
|
3920
3920
|
!function(exports3, sourcemapCodec, resolveUri) {
|
|
3921
3921
|
"use strict";
|
|
3922
|
-
function
|
|
3922
|
+
function resolve4(input, base) {
|
|
3923
3923
|
return base && !base.endsWith("/") && (base += "/"), resolveUri(input, base);
|
|
3924
3924
|
}
|
|
3925
|
-
__name(
|
|
3925
|
+
__name(resolve4, "resolve");
|
|
3926
3926
|
function stripFilename(path5) {
|
|
3927
3927
|
if (!path5) return "";
|
|
3928
3928
|
const index = path5.lastIndexOf("/");
|
|
@@ -4015,15 +4015,15 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4015
4015
|
}
|
|
4016
4016
|
__name(buildNullArray, "buildNullArray");
|
|
4017
4017
|
const AnyMap = /* @__PURE__ */ __name(function(map, mapUrl) {
|
|
4018
|
-
const parsed =
|
|
4018
|
+
const parsed = parse7(map);
|
|
4019
4019
|
if (!("sections" in parsed)) return new TraceMap(parsed, mapUrl);
|
|
4020
4020
|
const mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
|
|
4021
4021
|
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 });
|
|
4022
4022
|
}, "AnyMap");
|
|
4023
|
-
function
|
|
4023
|
+
function parse7(map) {
|
|
4024
4024
|
return "string" == typeof map ? JSON.parse(map) : map;
|
|
4025
4025
|
}
|
|
4026
|
-
__name(
|
|
4026
|
+
__name(parse7, "parse");
|
|
4027
4027
|
function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4028
4028
|
const { sections } = input;
|
|
4029
4029
|
for (let i2 = 0; i2 < sections.length; i2++) {
|
|
@@ -4038,7 +4038,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4038
4038
|
}
|
|
4039
4039
|
__name(recurse, "recurse");
|
|
4040
4040
|
function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4041
|
-
const parsed =
|
|
4041
|
+
const parsed = parse7(input);
|
|
4042
4042
|
if ("sections" in parsed) return recurse(...arguments);
|
|
4043
4043
|
const map = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;
|
|
4044
4044
|
if (append(sources, resolvedSources), append(names, map.names), contents) append(sourcesContent, contents);
|
|
@@ -4080,8 +4080,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4080
4080
|
if (!isString && map._decodedMemo) return map;
|
|
4081
4081
|
const parsed = isString ? JSON.parse(map) : map, { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
4082
4082
|
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;
|
|
4083
|
-
const from =
|
|
4084
|
-
this.resolvedSources = sources.map((s2) =>
|
|
4083
|
+
const from = resolve4(sourceRoot || "", stripFilename(mapUrl));
|
|
4084
|
+
this.resolvedSources = sources.map((s2) => resolve4(s2 || "", from));
|
|
4085
4085
|
const { mappings } = parsed;
|
|
4086
4086
|
"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;
|
|
4087
4087
|
}
|
|
@@ -4522,10 +4522,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4522
4522
|
const self2 = debug2, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
|
|
4523
4523
|
self2.diff = ms, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), "string" != typeof args[0] && args.unshift("%O");
|
|
4524
4524
|
let index = 0;
|
|
4525
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match,
|
|
4525
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
|
|
4526
4526
|
if ("%%" === match) return "%";
|
|
4527
4527
|
index++;
|
|
4528
|
-
const formatter = createDebug.formatters[
|
|
4528
|
+
const formatter = createDebug.formatters[format4];
|
|
4529
4529
|
if ("function" == typeof formatter) {
|
|
4530
4530
|
const val = args[index];
|
|
4531
4531
|
match = formatter.call(self2, val), args.splice(index, 1), index--;
|
|
@@ -4663,7 +4663,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4663
4663
|
return value2;
|
|
4664
4664
|
}
|
|
4665
4665
|
__name(evaluateSync, "evaluateSync");
|
|
4666
|
-
function evaluateAsync(gen,
|
|
4666
|
+
function evaluateAsync(gen, resolve4, reject) {
|
|
4667
4667
|
!(/* @__PURE__ */ __name(function step() {
|
|
4668
4668
|
try {
|
|
4669
4669
|
let value2;
|
|
@@ -4675,7 +4675,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4675
4675
|
});
|
|
4676
4676
|
if (sync = false, assertSuspend(out, gen), !didSyncResume) return;
|
|
4677
4677
|
}
|
|
4678
|
-
return
|
|
4678
|
+
return resolve4(value2);
|
|
4679
4679
|
} catch (err) {
|
|
4680
4680
|
return reject(err);
|
|
4681
4681
|
}
|
|
@@ -4717,10 +4717,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4717
4717
|
"number" != typeof arity && (arity = sync.length);
|
|
4718
4718
|
return buildOperation({ name, arity, sync: /* @__PURE__ */ __name(function(args) {
|
|
4719
4719
|
return sync.apply(this, args);
|
|
4720
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4721
|
-
async ? async.apply(this, args).then(
|
|
4722
|
-
null == err ?
|
|
4723
|
-
}) :
|
|
4720
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject) {
|
|
4721
|
+
async ? async.apply(this, args).then(resolve4, reject) : errback ? errback.call(this, ...args, (err, value2) => {
|
|
4722
|
+
null == err ? resolve4(value2) : reject(err);
|
|
4723
|
+
}) : resolve4(sync.apply(this, args));
|
|
4724
4724
|
}, "async") });
|
|
4725
4725
|
}(optsOrFn) : function(genFn2) {
|
|
4726
4726
|
return setFunctionMetadata(genFn2.name, genFn2.length, function(...args) {
|
|
@@ -4730,8 +4730,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4730
4730
|
const fns = { sync: /* @__PURE__ */ __name(function(...args) {
|
|
4731
4731
|
return evaluateSync(genFn2.apply(this, args));
|
|
4732
4732
|
}, "sync"), async: /* @__PURE__ */ __name(function(...args) {
|
|
4733
|
-
return new Promise((
|
|
4734
|
-
evaluateAsync(genFn2.apply(this, args),
|
|
4733
|
+
return new Promise((resolve4, reject) => {
|
|
4734
|
+
evaluateAsync(genFn2.apply(this, args), resolve4, reject);
|
|
4735
4735
|
});
|
|
4736
4736
|
}, "async"), errback: /* @__PURE__ */ __name(function(...args) {
|
|
4737
4737
|
const cb = args.pop();
|
|
@@ -4748,25 +4748,25 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4748
4748
|
}(genFn));
|
|
4749
4749
|
}, { all: buildOperation({ name: "all", arity: 1, sync: /* @__PURE__ */ __name(function(args) {
|
|
4750
4750
|
return Array.from(args[0]).map((item) => evaluateSync(item));
|
|
4751
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4751
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject) {
|
|
4752
4752
|
const items = Array.from(args[0]);
|
|
4753
|
-
if (0 === items.length) return void Promise.resolve().then(() =>
|
|
4753
|
+
if (0 === items.length) return void Promise.resolve().then(() => resolve4([]));
|
|
4754
4754
|
let count = 0;
|
|
4755
4755
|
const results = items.map(() => {
|
|
4756
4756
|
});
|
|
4757
4757
|
items.forEach((item, i2) => {
|
|
4758
4758
|
evaluateAsync(item, (val) => {
|
|
4759
|
-
results[i2] = val, count += 1, count === results.length &&
|
|
4759
|
+
results[i2] = val, count += 1, count === results.length && resolve4(results);
|
|
4760
4760
|
}, reject);
|
|
4761
4761
|
});
|
|
4762
4762
|
}, "async") }), race: buildOperation({ name: "race", arity: 1, sync: /* @__PURE__ */ __name(function(args) {
|
|
4763
4763
|
const items = Array.from(args[0]);
|
|
4764
4764
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4765
4765
|
return evaluateSync(items[0]);
|
|
4766
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4766
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject) {
|
|
4767
4767
|
const items = Array.from(args[0]);
|
|
4768
4768
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4769
|
-
for (const item of items) evaluateAsync(item,
|
|
4769
|
+
for (const item of items) evaluateAsync(item, resolve4, reject);
|
|
4770
4770
|
}, "async") }) });
|
|
4771
4771
|
}, "./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((module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
4772
4772
|
"use strict";
|
|
@@ -4952,7 +4952,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4952
4952
|
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");
|
|
4953
4953
|
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*\\*";
|
|
4954
4954
|
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])));
|
|
4955
|
-
function
|
|
4955
|
+
function parse7(version2, options) {
|
|
4956
4956
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) return version2;
|
|
4957
4957
|
if ("string" != typeof version2) return null;
|
|
4958
4958
|
if (version2.length > MAX_LENGTH) return null;
|
|
@@ -4963,7 +4963,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4963
4963
|
return null;
|
|
4964
4964
|
}
|
|
4965
4965
|
}
|
|
4966
|
-
__name(
|
|
4966
|
+
__name(parse7, "parse");
|
|
4967
4967
|
function SemVer(version2, options) {
|
|
4968
4968
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) {
|
|
4969
4969
|
if (version2.loose === options.loose) return version2;
|
|
@@ -4986,11 +4986,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4986
4986
|
}) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
|
|
4987
4987
|
}
|
|
4988
4988
|
__name(SemVer, "SemVer");
|
|
4989
|
-
exports2.parse =
|
|
4990
|
-
var v4 =
|
|
4989
|
+
exports2.parse = parse7, exports2.valid = function(version2, options) {
|
|
4990
|
+
var v4 = parse7(version2, options);
|
|
4991
4991
|
return v4 ? v4.version : null;
|
|
4992
4992
|
}, exports2.clean = function(version2, options) {
|
|
4993
|
-
var s2 =
|
|
4993
|
+
var s2 = parse7(version2.trim().replace(/^[=v]+/, ""), options);
|
|
4994
4994
|
return s2 ? s2.version : null;
|
|
4995
4995
|
}, exports2.SemVer = SemVer, SemVer.prototype.format = function() {
|
|
4996
4996
|
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
@@ -5066,7 +5066,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5066
5066
|
}
|
|
5067
5067
|
}, exports2.diff = function(version1, version2) {
|
|
5068
5068
|
if (eq(version1, version2)) return null;
|
|
5069
|
-
var v1 =
|
|
5069
|
+
var v1 = parse7(version1), v22 = parse7(version2), prefix = "";
|
|
5070
5070
|
if (v1.prerelease.length || v22.prerelease.length) {
|
|
5071
5071
|
prefix = "pre";
|
|
5072
5072
|
var defaultResult = "prerelease";
|
|
@@ -5397,7 +5397,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5397
5397
|
}, exports2.gtr = function(version2, range, options) {
|
|
5398
5398
|
return outside(version2, range, ">", options);
|
|
5399
5399
|
}, exports2.outside = outside, exports2.prerelease = function(version2, options) {
|
|
5400
|
-
var parsed =
|
|
5400
|
+
var parsed = parse7(version2, options);
|
|
5401
5401
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
5402
5402
|
}, exports2.intersects = function(r1, r22, options) {
|
|
5403
5403
|
return r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22);
|
|
@@ -5411,7 +5411,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5411
5411
|
safeRe[t2.COERCERTL].lastIndex = -1;
|
|
5412
5412
|
} else match = version2.match(safeRe[t2.COERCE]);
|
|
5413
5413
|
if (null === match) return null;
|
|
5414
|
-
return
|
|
5414
|
+
return parse7(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
5415
5415
|
};
|
|
5416
5416
|
}, "./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((module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
5417
5417
|
"use strict";
|
|
@@ -5622,8 +5622,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5622
5622
|
__name(this, "Lock");
|
|
5623
5623
|
}
|
|
5624
5624
|
constructor() {
|
|
5625
|
-
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((
|
|
5626
|
-
this._resolve =
|
|
5625
|
+
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((resolve4) => {
|
|
5626
|
+
this._resolve = resolve4;
|
|
5627
5627
|
});
|
|
5628
5628
|
}
|
|
5629
5629
|
release(value2) {
|
|
@@ -5708,59 +5708,59 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5708
5708
|
}
|
|
5709
5709
|
__name(loadFileChain, "loadFileChain");
|
|
5710
5710
|
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))));
|
|
5711
|
-
function buildRootDescriptors({ dirname:
|
|
5712
|
-
return descriptors2(
|
|
5711
|
+
function buildRootDescriptors({ dirname: dirname4, options }, alias, descriptors2) {
|
|
5712
|
+
return descriptors2(dirname4, options, alias);
|
|
5713
5713
|
}
|
|
5714
5714
|
__name(buildRootDescriptors, "buildRootDescriptors");
|
|
5715
|
-
function buildEnvDescriptors({ dirname:
|
|
5715
|
+
function buildEnvDescriptors({ dirname: dirname4, options }, alias, descriptors2, envName) {
|
|
5716
5716
|
var _options$env;
|
|
5717
5717
|
const opts = null == (_options$env = options.env) ? void 0 : _options$env[envName];
|
|
5718
|
-
return opts ? descriptors2(
|
|
5718
|
+
return opts ? descriptors2(dirname4, opts, `${alias}.env["${envName}"]`) : null;
|
|
5719
5719
|
}
|
|
5720
5720
|
__name(buildEnvDescriptors, "buildEnvDescriptors");
|
|
5721
|
-
function buildOverrideDescriptors({ dirname:
|
|
5721
|
+
function buildOverrideDescriptors({ dirname: dirname4, options }, alias, descriptors2, index) {
|
|
5722
5722
|
var _options$overrides;
|
|
5723
5723
|
const opts = null == (_options$overrides = options.overrides) ? void 0 : _options$overrides[index];
|
|
5724
5724
|
if (!opts) throw new Error("Assertion failure - missing override");
|
|
5725
|
-
return descriptors2(
|
|
5725
|
+
return descriptors2(dirname4, opts, `${alias}.overrides[${index}]`);
|
|
5726
5726
|
}
|
|
5727
5727
|
__name(buildOverrideDescriptors, "buildOverrideDescriptors");
|
|
5728
|
-
function buildOverrideEnvDescriptors({ dirname:
|
|
5728
|
+
function buildOverrideEnvDescriptors({ dirname: dirname4, options }, alias, descriptors2, index, envName) {
|
|
5729
5729
|
var _options$overrides2, _override$env;
|
|
5730
5730
|
const override = null == (_options$overrides2 = options.overrides) ? void 0 : _options$overrides2[index];
|
|
5731
5731
|
if (!override) throw new Error("Assertion failure - missing override");
|
|
5732
5732
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
5733
|
-
return opts ? descriptors2(
|
|
5733
|
+
return opts ? descriptors2(dirname4, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
|
5734
5734
|
}
|
|
5735
5735
|
__name(buildOverrideEnvDescriptors, "buildOverrideEnvDescriptors");
|
|
5736
5736
|
function makeChainWalker({ root, env, overrides, overridesEnv, createLogger }) {
|
|
5737
5737
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
5738
|
-
const { dirname:
|
|
5739
|
-
if (configIsApplicable(rootOpts,
|
|
5738
|
+
const { dirname: dirname4 } = input, flattenedConfigs = [], rootOpts = root(input);
|
|
5739
|
+
if (configIsApplicable(rootOpts, dirname4, context, input.filepath)) {
|
|
5740
5740
|
flattenedConfigs.push({ config: rootOpts, envName: void 0, index: void 0 });
|
|
5741
5741
|
const envOpts = env(input, context.envName);
|
|
5742
|
-
envOpts && configIsApplicable(envOpts,
|
|
5742
|
+
envOpts && configIsApplicable(envOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: envOpts, envName: context.envName, index: void 0 }), (rootOpts.options.overrides || []).forEach((_5, index) => {
|
|
5743
5743
|
const overrideOps = overrides(input, index);
|
|
5744
|
-
if (configIsApplicable(overrideOps,
|
|
5744
|
+
if (configIsApplicable(overrideOps, dirname4, context, input.filepath)) {
|
|
5745
5745
|
flattenedConfigs.push({ config: overrideOps, index, envName: void 0 });
|
|
5746
5746
|
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
|
5747
|
-
overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
5747
|
+
overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: overrideEnvOpts, index, envName: context.envName });
|
|
5748
5748
|
}
|
|
5749
5749
|
});
|
|
5750
5750
|
}
|
|
5751
|
-
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only,
|
|
5751
|
+
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname4))) return null;
|
|
5752
5752
|
const chain = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
5753
5753
|
for (const { config, index, envName } of flattenedConfigs) {
|
|
5754
|
-
if (!(yield* mergeExtendsChain(chain, config.options,
|
|
5754
|
+
if (!(yield* mergeExtendsChain(chain, config.options, dirname4, context, files, baseLogger))) return null;
|
|
5755
5755
|
logger(config, index, envName), yield* mergeChainOpts(chain, config);
|
|
5756
5756
|
}
|
|
5757
5757
|
return chain;
|
|
5758
5758
|
};
|
|
5759
5759
|
}
|
|
5760
5760
|
__name(makeChainWalker, "makeChainWalker");
|
|
5761
|
-
function* mergeExtendsChain(chain, opts,
|
|
5761
|
+
function* mergeExtendsChain(chain, opts, dirname4, context, files, baseLogger) {
|
|
5762
5762
|
if (void 0 === opts.extends) return true;
|
|
5763
|
-
const file = yield* (0, _index.loadConfig)(opts.extends,
|
|
5763
|
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname4, context.envName, context.caller);
|
|
5764
5764
|
if (files.has(file)) throw new Error(`Configuration cycle detected loading ${file.filepath}.
|
|
5765
5765
|
File already loaded following the config chain:
|
|
5766
5766
|
` + Array.from(files, (file2) => ` - ${file2.filepath}`).join("\n"));
|
|
@@ -5800,40 +5800,40 @@ File already loaded following the config chain:
|
|
|
5800
5800
|
return descriptors2.reduce((acc, desc) => (acc.push(desc.value), acc), []);
|
|
5801
5801
|
}
|
|
5802
5802
|
__name(dedupDescriptors, "dedupDescriptors");
|
|
5803
|
-
function configIsApplicable({ options },
|
|
5804
|
-
return (void 0 === options.test || configFieldIsApplicable(context, options.test,
|
|
5803
|
+
function configIsApplicable({ options }, dirname4, context, configName) {
|
|
5804
|
+
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));
|
|
5805
5805
|
}
|
|
5806
5806
|
__name(configIsApplicable, "configIsApplicable");
|
|
5807
|
-
function configFieldIsApplicable(context, test,
|
|
5808
|
-
return matchesPatterns(context, Array.isArray(test) ? test : [test],
|
|
5807
|
+
function configFieldIsApplicable(context, test, dirname4, configName) {
|
|
5808
|
+
return matchesPatterns(context, Array.isArray(test) ? test : [test], dirname4, configName);
|
|
5809
5809
|
}
|
|
5810
5810
|
__name(configFieldIsApplicable, "configFieldIsApplicable");
|
|
5811
5811
|
function ignoreListReplacer(_key, value2) {
|
|
5812
5812
|
return value2 instanceof RegExp ? String(value2) : value2;
|
|
5813
5813
|
}
|
|
5814
5814
|
__name(ignoreListReplacer, "ignoreListReplacer");
|
|
5815
|
-
function shouldIgnore(context, ignore, only,
|
|
5816
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
5815
|
+
function shouldIgnore(context, ignore, only, dirname4) {
|
|
5816
|
+
if (ignore && matchesPatterns(context, ignore, dirname4)) {
|
|
5817
5817
|
var _context$filename;
|
|
5818
|
-
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 "${
|
|
5818
|
+
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}"`;
|
|
5819
5819
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
5820
5820
|
}
|
|
5821
|
-
if (only && !matchesPatterns(context, only,
|
|
5821
|
+
if (only && !matchesPatterns(context, only, dirname4)) {
|
|
5822
5822
|
var _context$filename2;
|
|
5823
|
-
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 "${
|
|
5823
|
+
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}"`;
|
|
5824
5824
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
5825
5825
|
}
|
|
5826
5826
|
return false;
|
|
5827
5827
|
}
|
|
5828
5828
|
__name(shouldIgnore, "shouldIgnore");
|
|
5829
|
-
function matchesPatterns(context, patterns,
|
|
5830
|
-
return patterns.some((pattern) => matchPattern(pattern,
|
|
5829
|
+
function matchesPatterns(context, patterns, dirname4, configName) {
|
|
5830
|
+
return patterns.some((pattern) => matchPattern(pattern, dirname4, context.filename, context, configName));
|
|
5831
5831
|
}
|
|
5832
5832
|
__name(matchesPatterns, "matchesPatterns");
|
|
5833
|
-
function matchPattern(pattern,
|
|
5834
|
-
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname:
|
|
5833
|
+
function matchPattern(pattern, dirname4, pathToTest, context, configName) {
|
|
5834
|
+
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname: dirname4, envName: context.envName, caller: context.caller });
|
|
5835
5835
|
if ("string" != typeof pathToTest) throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
5836
|
-
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern,
|
|
5836
|
+
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern, dirname4)), pattern.test(pathToTest);
|
|
5837
5837
|
}
|
|
5838
5838
|
__name(matchPattern, "matchPattern");
|
|
5839
5839
|
}, "./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, exports2, __webpack_require__2) => {
|
|
@@ -5845,30 +5845,30 @@ File already loaded following the config chain:
|
|
|
5845
5845
|
}, "_gensync"), data2;
|
|
5846
5846
|
}
|
|
5847
5847
|
__name(_gensync, "_gensync");
|
|
5848
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createCachedDescriptors = function(
|
|
5848
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createCachedDescriptors = function(dirname4, options, alias) {
|
|
5849
5849
|
const { plugins, presets, passPerPreset } = options;
|
|
5850
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5851
|
-
}, exports2.createDescriptor = createDescriptor, exports2.createUncachedDescriptors = function(
|
|
5852
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5850
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname4), plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname4)(alias) : () => handlerOf([]), presets: presets ? () => createCachedPresetDescriptors(presets, dirname4)(alias)(!!passPerPreset) : () => handlerOf([]) };
|
|
5851
|
+
}, exports2.createDescriptor = createDescriptor, exports2.createUncachedDescriptors = function(dirname4, options, alias) {
|
|
5852
|
+
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)) };
|
|
5853
5853
|
};
|
|
5854
5854
|
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");
|
|
5855
5855
|
function* handlerOf(value2) {
|
|
5856
5856
|
return value2;
|
|
5857
5857
|
}
|
|
5858
5858
|
__name(handlerOf, "handlerOf");
|
|
5859
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
5860
|
-
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,
|
|
5859
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname4) {
|
|
5860
|
+
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname4)), options;
|
|
5861
5861
|
}
|
|
5862
5862
|
__name(optionsWithResolvedBrowserslistConfigFile, "optionsWithResolvedBrowserslistConfigFile");
|
|
5863
5863
|
const PRESET_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5864
|
-
const
|
|
5864
|
+
const dirname4 = cache2.using((dir) => dir);
|
|
5865
5865
|
return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
|
5866
|
-
return (yield* createPresetDescriptors(items,
|
|
5866
|
+
return (yield* createPresetDescriptors(items, dirname4, alias, passPerPreset)).map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
|
5867
5867
|
}));
|
|
5868
5868
|
}), PLUGIN_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5869
|
-
const
|
|
5869
|
+
const dirname4 = cache2.using((dir) => dir);
|
|
5870
5870
|
return (0, _caching.makeStrongCache)(function* (alias) {
|
|
5871
|
-
return (yield* createPluginDescriptors(items,
|
|
5871
|
+
return (yield* createPluginDescriptors(items, dirname4, alias)).map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
|
5872
5872
|
});
|
|
5873
5873
|
}), DEFAULT_OPTIONS = {};
|
|
5874
5874
|
function loadCachedDescriptor(cache2, desc) {
|
|
@@ -5888,16 +5888,16 @@ File already loaded following the config chain:
|
|
|
5888
5888
|
return desc;
|
|
5889
5889
|
}
|
|
5890
5890
|
__name(loadCachedDescriptor, "loadCachedDescriptor");
|
|
5891
|
-
function* createPresetDescriptors(items,
|
|
5892
|
-
return yield* createDescriptors("preset", items,
|
|
5891
|
+
function* createPresetDescriptors(items, dirname4, alias, passPerPreset) {
|
|
5892
|
+
return yield* createDescriptors("preset", items, dirname4, alias, passPerPreset);
|
|
5893
5893
|
}
|
|
5894
5894
|
__name(createPresetDescriptors, "createPresetDescriptors");
|
|
5895
|
-
function* createPluginDescriptors(items,
|
|
5896
|
-
return yield* createDescriptors("plugin", items,
|
|
5895
|
+
function* createPluginDescriptors(items, dirname4, alias) {
|
|
5896
|
+
return yield* createDescriptors("plugin", items, dirname4, alias);
|
|
5897
5897
|
}
|
|
5898
5898
|
__name(createPluginDescriptors, "createPluginDescriptors");
|
|
5899
|
-
function* createDescriptors(type, items,
|
|
5900
|
-
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item,
|
|
5899
|
+
function* createDescriptors(type, items, dirname4, alias, ownPass) {
|
|
5900
|
+
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname4, { type, alias: `${alias}$${index}`, ownPass: !!ownPass })));
|
|
5901
5901
|
return function(items2) {
|
|
5902
5902
|
const map = /* @__PURE__ */ new Map();
|
|
5903
5903
|
for (const item of items2) {
|
|
@@ -5912,7 +5912,7 @@ File already loaded following the config chain:
|
|
|
5912
5912
|
}(descriptors2), descriptors2;
|
|
5913
5913
|
}
|
|
5914
5914
|
__name(createDescriptors, "createDescriptors");
|
|
5915
|
-
function* createDescriptor(pair,
|
|
5915
|
+
function* createDescriptor(pair, dirname4, { type, alias, ownPass }) {
|
|
5916
5916
|
const desc = (0, _item.getItemDescriptor)(pair);
|
|
5917
5917
|
if (desc) return desc;
|
|
5918
5918
|
let name, options, file, value2 = pair;
|
|
@@ -5921,7 +5921,7 @@ File already loaded following the config chain:
|
|
|
5921
5921
|
if ("string" == typeof value2) {
|
|
5922
5922
|
if ("string" != typeof type) throw new Error("To resolve a string-based item, the type of item must be given");
|
|
5923
5923
|
const resolver = "plugin" === type ? _index.loadPlugin : _index.loadPreset, request = value2;
|
|
5924
|
-
({ filepath, value: value2 } = yield* resolver(value2,
|
|
5924
|
+
({ filepath, value: value2 } = yield* resolver(value2, dirname4)), file = { request, resolved: filepath };
|
|
5925
5925
|
}
|
|
5926
5926
|
if (!value2) throw new Error(`Unexpected falsy value: ${String(value2)}`);
|
|
5927
5927
|
if ("object" == typeof value2 && value2.__esModule) {
|
|
@@ -5930,7 +5930,7 @@ File already loaded following the config chain:
|
|
|
5930
5930
|
}
|
|
5931
5931
|
if ("object" != typeof value2 && "function" != typeof value2) throw new Error(`Unsupported format: ${typeof value2}. Expected an object or a function.`);
|
|
5932
5932
|
if (null !== filepath && "object" == typeof value2 && value2) throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
|
5933
|
-
return { name, alias: filepath || alias, value: value2, options, dirname:
|
|
5933
|
+
return { name, alias: filepath || alias, value: value2, options, dirname: dirname4, ownPass, file };
|
|
5934
5934
|
}
|
|
5935
5935
|
__name(createDescriptor, "createDescriptor");
|
|
5936
5936
|
}, "./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, exports2, __webpack_require__2) => {
|
|
@@ -5971,41 +5971,41 @@ File already loaded following the config chain:
|
|
|
5971
5971
|
}
|
|
5972
5972
|
__name(_gensync, "_gensync");
|
|
5973
5973
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.ROOT_CONFIG_FILENAMES = void 0, exports2.findConfigUpwards = function(rootDir) {
|
|
5974
|
-
let
|
|
5974
|
+
let dirname4 = rootDir;
|
|
5975
5975
|
for (; ; ) {
|
|
5976
|
-
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(
|
|
5977
|
-
const nextDir = _path().dirname(
|
|
5978
|
-
if (
|
|
5979
|
-
|
|
5976
|
+
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(dirname4, filename))) return dirname4;
|
|
5977
|
+
const nextDir = _path().dirname(dirname4);
|
|
5978
|
+
if (dirname4 === nextDir) break;
|
|
5979
|
+
dirname4 = nextDir;
|
|
5980
5980
|
}
|
|
5981
5981
|
return null;
|
|
5982
5982
|
}, exports2.findRelativeConfig = function* (packageData, envName, caller) {
|
|
5983
5983
|
let config = null, ignore = null;
|
|
5984
|
-
const
|
|
5984
|
+
const dirname4 = _path().dirname(packageData.filepath);
|
|
5985
5985
|
for (const loc of packageData.directories) {
|
|
5986
5986
|
var _packageData$pkg;
|
|
5987
5987
|
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);
|
|
5988
5988
|
if (!ignore) {
|
|
5989
5989
|
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
|
5990
|
-
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath,
|
|
5990
|
+
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath, dirname4);
|
|
5991
5991
|
}
|
|
5992
5992
|
}
|
|
5993
5993
|
return { config, ignore };
|
|
5994
|
-
}, exports2.findRootConfig = function(
|
|
5995
|
-
return loadOneConfig(ROOT_CONFIG_FILENAMES,
|
|
5996
|
-
}, exports2.loadConfig = function* (name,
|
|
5994
|
+
}, exports2.findRootConfig = function(dirname4, envName, caller) {
|
|
5995
|
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname4, envName, caller);
|
|
5996
|
+
}, exports2.loadConfig = function* (name, dirname4, envName, caller) {
|
|
5997
5997
|
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")) => {
|
|
5998
5998
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
5999
5999
|
if (f2) return f2;
|
|
6000
6000
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6001
|
-
})(name, { paths: [
|
|
6001
|
+
})(name, { paths: [dirname4] }), conf = yield* readConfig(filepath, envName, caller);
|
|
6002
6002
|
var v4, w5;
|
|
6003
6003
|
if (!conf) throw new _configError.default("Config file contains no configuration data", filepath);
|
|
6004
|
-
return debug2("Loaded config %o from %o.", name,
|
|
6005
|
-
}, exports2.resolveShowConfigPath = function* (
|
|
6004
|
+
return debug2("Loaded config %o from %o.", name, dirname4), conf;
|
|
6005
|
+
}, exports2.resolveShowConfigPath = function* (dirname4) {
|
|
6006
6006
|
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
|
6007
6007
|
if (null != targetPath) {
|
|
6008
|
-
const absolutePath = _path().resolve(
|
|
6008
|
+
const absolutePath = _path().resolve(dirname4, targetPath);
|
|
6009
6009
|
if (!(yield* fs2.stat(absolutePath)).isFile()) throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
|
6010
6010
|
return absolutePath;
|
|
6011
6011
|
}
|
|
@@ -6086,15 +6086,15 @@ module.exports = function(api) {
|
|
|
6086
6086
|
for (const pattern of ignorePatterns) if ("!" === pattern[0]) throw new _configError.default("Negation of file paths is not supported.", filepath);
|
|
6087
6087
|
return { filepath, dirname: _path().dirname(filepath), ignore: ignorePatterns.map((pattern) => (0, _patternToRegex.default)(pattern, ignoreDir)) };
|
|
6088
6088
|
});
|
|
6089
|
-
function* loadOneConfig(names,
|
|
6090
|
-
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(
|
|
6089
|
+
function* loadOneConfig(names, dirname4, envName, caller, previousConfig = null) {
|
|
6090
|
+
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname4, filename), envName, caller)))).reduce((previousConfig2, config2) => {
|
|
6091
6091
|
if (config2 && previousConfig2) throw new _configError.default(`Multiple configuration files found. Please remove one:
|
|
6092
6092
|
- ${_path().basename(previousConfig2.filepath)}
|
|
6093
6093
|
- ${config2.filepath}
|
|
6094
|
-
from ${
|
|
6094
|
+
from ${dirname4}`);
|
|
6095
6095
|
return config2 || previousConfig2;
|
|
6096
6096
|
}, previousConfig);
|
|
6097
|
-
return config && debug2("Found configuration %o from %o.", config.filepath,
|
|
6097
|
+
return config && debug2("Found configuration %o from %o.", config.filepath, dirname4), config;
|
|
6098
6098
|
}
|
|
6099
6099
|
__name(loadOneConfig, "loadOneConfig");
|
|
6100
6100
|
function readConfig(filepath, envName, caller) {
|
|
@@ -6302,15 +6302,15 @@ packageExtensions:
|
|
|
6302
6302
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.findPackageData = function* (filepath) {
|
|
6303
6303
|
let pkg = null;
|
|
6304
6304
|
const directories = [];
|
|
6305
|
-
let isPackage = true,
|
|
6306
|
-
for (; !pkg && "node_modules" !== _path().basename(
|
|
6307
|
-
directories.push(
|
|
6308
|
-
const nextLoc = _path().dirname(
|
|
6309
|
-
if (
|
|
6305
|
+
let isPackage = true, dirname4 = _path().dirname(filepath);
|
|
6306
|
+
for (; !pkg && "node_modules" !== _path().basename(dirname4); ) {
|
|
6307
|
+
directories.push(dirname4), pkg = yield* readConfigPackage(_path().join(dirname4, PACKAGE_FILENAME));
|
|
6308
|
+
const nextLoc = _path().dirname(dirname4);
|
|
6309
|
+
if (dirname4 === nextLoc) {
|
|
6310
6310
|
isPackage = false;
|
|
6311
6311
|
break;
|
|
6312
6312
|
}
|
|
6313
|
-
|
|
6313
|
+
dirname4 = nextLoc;
|
|
6314
6314
|
}
|
|
6315
6315
|
return { filepath, directories, pkg, isPackage };
|
|
6316
6316
|
};
|
|
@@ -6343,12 +6343,12 @@ packageExtensions:
|
|
|
6343
6343
|
}, "_path"), data2;
|
|
6344
6344
|
}
|
|
6345
6345
|
__name(_path, "_path");
|
|
6346
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.loadPlugin = function* (name,
|
|
6347
|
-
const { filepath, loader } = resolvePlugin(name,
|
|
6348
|
-
return debug2("Loaded plugin %o from %o.", name,
|
|
6349
|
-
}, exports2.loadPreset = function* (name,
|
|
6350
|
-
const { filepath, loader } = resolvePreset(name,
|
|
6351
|
-
return debug2("Loaded preset %o from %o.", name,
|
|
6346
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.loadPlugin = function* (name, dirname4) {
|
|
6347
|
+
const { filepath, loader } = resolvePlugin(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("plugin", loader, filepath);
|
|
6348
|
+
return debug2("Loaded plugin %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
6349
|
+
}, exports2.loadPreset = function* (name, dirname4) {
|
|
6350
|
+
const { filepath, loader } = resolvePreset(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("preset", loader, filepath);
|
|
6351
|
+
return debug2("Loaded preset %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
6352
6352
|
}, exports2.resolvePreset = exports2.resolvePlugin = void 0;
|
|
6353
6353
|
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");
|
|
6354
6354
|
function _url() {
|
|
@@ -6390,13 +6390,13 @@ packageExtensions:
|
|
|
6390
6390
|
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;
|
|
6391
6391
|
}
|
|
6392
6392
|
__name(resolveAlternativesHelper, "resolveAlternativesHelper");
|
|
6393
|
-
function tryRequireResolve(id,
|
|
6393
|
+
function tryRequireResolve(id, dirname4) {
|
|
6394
6394
|
try {
|
|
6395
|
-
return
|
|
6395
|
+
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")) => {
|
|
6396
6396
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
6397
6397
|
if (f2) return f2;
|
|
6398
6398
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6399
|
-
})(id, { paths: [
|
|
6399
|
+
})(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) };
|
|
6400
6400
|
} catch (error) {
|
|
6401
6401
|
return { error, value: null };
|
|
6402
6402
|
}
|
|
@@ -6411,27 +6411,27 @@ packageExtensions:
|
|
|
6411
6411
|
}
|
|
6412
6412
|
}
|
|
6413
6413
|
__name(tryImportMetaResolve, "tryImportMetaResolve");
|
|
6414
|
-
function resolveStandardizedNameForRequire(type, name,
|
|
6414
|
+
function resolveStandardizedNameForRequire(type, name, dirname4) {
|
|
6415
6415
|
const it = resolveAlternativesHelper(type, name);
|
|
6416
6416
|
let res = it.next();
|
|
6417
|
-
for (; !res.done; ) res = it.next(tryRequireResolve(res.value,
|
|
6417
|
+
for (; !res.done; ) res = it.next(tryRequireResolve(res.value, dirname4));
|
|
6418
6418
|
return { loader: "require", filepath: res.value };
|
|
6419
6419
|
}
|
|
6420
6420
|
__name(resolveStandardizedNameForRequire, "resolveStandardizedNameForRequire");
|
|
6421
|
-
function resolveStandardizedName(type, name,
|
|
6422
|
-
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name,
|
|
6421
|
+
function resolveStandardizedName(type, name, dirname4, allowAsync) {
|
|
6422
|
+
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
6423
6423
|
try {
|
|
6424
|
-
const resolved = function(type2, name2,
|
|
6425
|
-
const parentUrl = (0, _url().pathToFileURL)(_path().join(
|
|
6424
|
+
const resolved = function(type2, name2, dirname5) {
|
|
6425
|
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname5, "./babel-virtual-resolve-base.js")).href, it = resolveAlternativesHelper(type2, name2);
|
|
6426
6426
|
let res = it.next();
|
|
6427
6427
|
for (; !res.done; ) res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
|
6428
6428
|
return { loader: "auto", filepath: (0, _url().fileURLToPath)(res.value) };
|
|
6429
|
-
}(type, name,
|
|
6430
|
-
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${
|
|
6429
|
+
}(type, name, dirname4);
|
|
6430
|
+
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname4}.`), { type: "MODULE_NOT_FOUND" });
|
|
6431
6431
|
return resolved;
|
|
6432
6432
|
} catch (e2) {
|
|
6433
6433
|
try {
|
|
6434
|
-
return resolveStandardizedNameForRequire(type, name,
|
|
6434
|
+
return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
6435
6435
|
} catch (e22) {
|
|
6436
6436
|
if ("MODULE_NOT_FOUND" === e2.type) throw e2;
|
|
6437
6437
|
if ("MODULE_NOT_FOUND" === e22.type) throw e22;
|
|
@@ -6567,7 +6567,7 @@ packageExtensions:
|
|
|
6567
6567
|
};
|
|
6568
6568
|
}
|
|
6569
6569
|
__name(enhanceError, "enhanceError");
|
|
6570
|
-
const makeDescriptorLoader = /* @__PURE__ */ __name((apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6570
|
+
const makeDescriptorLoader = /* @__PURE__ */ __name((apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname4, alias }, cache2) {
|
|
6571
6571
|
if (false === options) throw new Error("Assertion failure");
|
|
6572
6572
|
options = options || {};
|
|
6573
6573
|
const externalDependencies = [];
|
|
@@ -6575,7 +6575,7 @@ packageExtensions:
|
|
|
6575
6575
|
if ("function" == typeof value2) {
|
|
6576
6576
|
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));
|
|
6577
6577
|
try {
|
|
6578
|
-
item = yield* factory(api, options,
|
|
6578
|
+
item = yield* factory(api, options, dirname4);
|
|
6579
6579
|
} catch (e2) {
|
|
6580
6580
|
throw alias && (e2.message += ` (While processing: ${JSON.stringify(alias)})`), e2;
|
|
6581
6581
|
}
|
|
@@ -6587,11 +6587,11 @@ packageExtensions:
|
|
|
6587
6587
|
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()\`
|
|
6588
6588
|
(While processing: ${JSON.stringify(alias)})`, new Error(error);
|
|
6589
6589
|
}
|
|
6590
|
-
return { value: item, options, dirname:
|
|
6591
|
-
}), "makeDescriptorLoader"), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6590
|
+
return { value: item, options, dirname: dirname4, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
|
|
6591
|
+
}), "makeDescriptorLoader"), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname4, alias, externalDependencies }, cache2) {
|
|
6592
6592
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
6593
6593
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
6594
|
-
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname:
|
|
6594
|
+
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)));
|
|
6595
6595
|
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]));
|
|
6596
6596
|
}
|
|
6597
6597
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
@@ -6615,7 +6615,7 @@ packageExtensions:
|
|
|
6615
6615
|
const { options } = preset;
|
|
6616
6616
|
validateIfOptionNeedsFilename(options, descriptor), null == (_options$overrides = options.overrides) || _options$overrides.forEach((overrideOptions) => validateIfOptionNeedsFilename(overrideOptions, descriptor));
|
|
6617
6617
|
}
|
|
6618
|
-
}, "validatePreset"), instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname:
|
|
6618
|
+
}, "validatePreset"), instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname: dirname4, alias, externalDependencies }) => ({ options: (0, _options.validate)("preset", value2), alias, dirname: dirname4, externalDependencies }));
|
|
6619
6619
|
function* loadPresetDescriptor(descriptor, context2) {
|
|
6620
6620
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
6621
6621
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
@@ -6746,8 +6746,8 @@ packageExtensions:
|
|
|
6746
6746
|
}, "_path"), data2;
|
|
6747
6747
|
}
|
|
6748
6748
|
__name(_path, "_path");
|
|
6749
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createConfigItem = function* (value2, { dirname:
|
|
6750
|
-
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(
|
|
6749
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createConfigItem = function* (value2, { dirname: dirname4 = ".", type } = {}) {
|
|
6750
|
+
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname4), { type, alias: "programmatic item" }));
|
|
6751
6751
|
}, exports2.createItemFromDescriptor = createItemFromDescriptor, exports2.getItemDescriptor = function(item) {
|
|
6752
6752
|
if (null != item && item[CONFIG_ITEM_BRAND]) return item._descriptor;
|
|
6753
6753
|
return;
|
|
@@ -6802,7 +6802,7 @@ packageExtensions:
|
|
|
6802
6802
|
const _excluded = ["showIgnoredFiles"];
|
|
6803
6803
|
function* loadPrivatePartialConfig(inputOpts) {
|
|
6804
6804
|
if (null != inputOpts && ("object" != typeof inputOpts || Array.isArray(inputOpts))) throw new Error("Babel options must be an object, null, or undefined");
|
|
6805
|
-
const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd:
|
|
6805
|
+
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) {
|
|
6806
6806
|
switch (rootMode2) {
|
|
6807
6807
|
case "root":
|
|
6808
6808
|
return rootDir2;
|
|
@@ -6819,7 +6819,7 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6819
6819
|
default:
|
|
6820
6820
|
throw new Error("Assertion failure - unknown rootMode value.");
|
|
6821
6821
|
}
|
|
6822
|
-
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(
|
|
6822
|
+
}(_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);
|
|
6823
6823
|
if (!configChain) return null;
|
|
6824
6824
|
const merged = { assumptions: {} };
|
|
6825
6825
|
configChain.options.forEach((opts) => {
|
|
@@ -6849,14 +6849,14 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6849
6849
|
}, "_path"), data2;
|
|
6850
6850
|
}
|
|
6851
6851
|
__name(_path, "_path");
|
|
6852
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(pattern,
|
|
6853
|
-
const parts = _path().resolve(
|
|
6852
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(pattern, dirname4) {
|
|
6853
|
+
const parts = _path().resolve(dirname4, pattern).split(_path().sep);
|
|
6854
6854
|
return new RegExp(["^", ...parts.map((part, i2) => {
|
|
6855
6855
|
const last = i2 === parts.length - 1;
|
|
6856
|
-
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep :
|
|
6856
|
+
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);
|
|
6857
6857
|
})].join(""));
|
|
6858
6858
|
};
|
|
6859
|
-
const
|
|
6859
|
+
const sep3 = `\\${_path().sep}`, endSep = `(?:${sep3}|$)`, substitution = `[^${sep3}]+`, starPat = `(?:${substitution}${sep3})`, starPatLast = `(?:${substitution}${endSep})`, starStarPat = `${starPat}*?`, starStarPatLast = `${starPat}*?${starPatLast}?`;
|
|
6860
6860
|
function escapeRegExp(string) {
|
|
6861
6861
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
6862
6862
|
}
|
|
@@ -7418,12 +7418,12 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7418
7418
|
if (!result) {
|
|
7419
7419
|
if (resultP) return promiseReferenced = true, yield* (0, _async.waitFor)(resultP);
|
|
7420
7420
|
if (yield* (0, _async.isAsync)()) {
|
|
7421
|
-
let
|
|
7421
|
+
let resolve4, reject;
|
|
7422
7422
|
resultP = new Promise((res, rej) => {
|
|
7423
|
-
|
|
7423
|
+
resolve4 = res, reject = rej;
|
|
7424
7424
|
});
|
|
7425
7425
|
try {
|
|
7426
|
-
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced &&
|
|
7426
|
+
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced && resolve4(result.value);
|
|
7427
7427
|
} catch (error) {
|
|
7428
7428
|
result = { ok: false, value: error }, resultP = null, promiseReferenced && reject(error);
|
|
7429
7429
|
}
|
|
@@ -7530,8 +7530,8 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7530
7530
|
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");
|
|
7531
7531
|
__webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js");
|
|
7532
7532
|
exports2.version = "7.26.0";
|
|
7533
|
-
exports2.resolvePlugin = (name,
|
|
7534
|
-
exports2.resolvePreset = (name,
|
|
7533
|
+
exports2.resolvePlugin = (name, dirname4) => resolvers.resolvePlugin(name, dirname4, false).filepath;
|
|
7534
|
+
exports2.resolvePreset = (name, dirname4) => resolvers.resolvePreset(name, dirname4, false).filepath;
|
|
7535
7535
|
exports2.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
7536
7536
|
exports2.OptionManager = class {
|
|
7537
7537
|
init(opts) {
|
|
@@ -8183,7 +8183,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8183
8183
|
}
|
|
8184
8184
|
__name(_path, "_path");
|
|
8185
8185
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(config) {
|
|
8186
|
-
const { filename, cwd:
|
|
8186
|
+
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) });
|
|
8187
8187
|
for (const plugins of config.passes) for (const plugin of plugins) plugin.manipulateOptions && plugin.manipulateOptions(options, options.parserOpts);
|
|
8188
8188
|
return options;
|
|
8189
8189
|
};
|
|
@@ -8515,8 +8515,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8515
8515
|
const packageType = getPackageType2(url);
|
|
8516
8516
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
8517
8517
|
}
|
|
8518
|
-
const
|
|
8519
|
-
if (
|
|
8518
|
+
const format4 = extensionFormatMap2[value2];
|
|
8519
|
+
if (format4) return format4;
|
|
8520
8520
|
if (ignoreErrors) return;
|
|
8521
8521
|
const filepath = (0, _url().fileURLToPath)(url);
|
|
8522
8522
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -9884,11 +9884,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9884
9884
|
printer.tokenMap && node.start && node.end ? printer.tokenMap.endMatches(node, ",") ? printer.token(",") : printer.tokenMap.endMatches(node, ";") && printer.semicolon() : printer.semicolon();
|
|
9885
9885
|
}
|
|
9886
9886
|
__name(maybePrintTrailingCommaOrSemicolon, "maybePrintTrailingCommaOrSemicolon");
|
|
9887
|
-
function tsPrintUnionOrIntersectionType(printer, node,
|
|
9887
|
+
function tsPrintUnionOrIntersectionType(printer, node, sep3) {
|
|
9888
9888
|
var _printer$tokenMap;
|
|
9889
9889
|
let hasLeadingToken = 0;
|
|
9890
|
-
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node,
|
|
9891
|
-
this.space(), this.token(
|
|
9890
|
+
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) {
|
|
9891
|
+
this.space(), this.token(sep3, null, i2 + hasLeadingToken), this.space();
|
|
9892
9892
|
});
|
|
9893
9893
|
}
|
|
9894
9894
|
__name(tsPrintUnionOrIntersectionType, "tsPrintUnionOrIntersectionType");
|
|
@@ -10112,8 +10112,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10112
10112
|
}, "./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, exports2, __webpack_require__2) => {
|
|
10113
10113
|
"use strict";
|
|
10114
10114
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(ast, opts = {}, code) {
|
|
10115
|
-
const
|
|
10116
|
-
return new _printer.default(
|
|
10115
|
+
const format4 = normalizeOptions(code, opts, ast), map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
10116
|
+
return new _printer.default(format4, map, ast.tokens, "string" == typeof code ? code : null).generate(ast);
|
|
10117
10117
|
};
|
|
10118
10118
|
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");
|
|
10119
10119
|
function normalizeOptions(code, opts, ast) {
|
|
@@ -10125,11 +10125,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10125
10125
|
if (opts.jsescOption) throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
|
|
10126
10126
|
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.");
|
|
10127
10127
|
}
|
|
10128
|
-
const
|
|
10128
|
+
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 };
|
|
10129
10129
|
var _opts$recordAndTupleS;
|
|
10130
|
-
|
|
10131
|
-
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =
|
|
10132
|
-
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (
|
|
10130
|
+
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);
|
|
10131
|
+
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } = format4;
|
|
10132
|
+
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (format4.auxiliaryCommentBefore = void 0), auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter) && (format4.auxiliaryCommentAfter = void 0), format4;
|
|
10133
10133
|
}
|
|
10134
10134
|
__name(normalizeOptions, "normalizeOptions");
|
|
10135
10135
|
exports2.CodeGenerator = class {
|
|
@@ -10405,8 +10405,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10405
10405
|
static {
|
|
10406
10406
|
__name(this, "Printer");
|
|
10407
10407
|
}
|
|
10408
|
-
constructor(
|
|
10409
|
-
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 =
|
|
10408
|
+
constructor(format4, map, tokens, originalCode) {
|
|
10409
|
+
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]);
|
|
10410
10410
|
}
|
|
10411
10411
|
enterForStatementInit() {
|
|
10412
10412
|
return this.inForStatementInit ? () => {
|
|
@@ -10425,12 +10425,12 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10425
10425
|
return this.format.preserveFormat && (this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode)), this.print(ast), this._maybeAddAuxComment(), this._buf.get();
|
|
10426
10426
|
}
|
|
10427
10427
|
indent() {
|
|
10428
|
-
const { format:
|
|
10429
|
-
|
|
10428
|
+
const { format: format4 } = this;
|
|
10429
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent++;
|
|
10430
10430
|
}
|
|
10431
10431
|
dedent() {
|
|
10432
|
-
const { format:
|
|
10433
|
-
|
|
10432
|
+
const { format: format4 } = this;
|
|
10433
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent--;
|
|
10434
10434
|
}
|
|
10435
10435
|
semicolon(force = false) {
|
|
10436
10436
|
if (this._maybeAddAuxComment(), force) return this._appendChar(59), void (this._noLineTerminator = false);
|
|
@@ -10451,8 +10451,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10451
10451
|
this.sourceWithOffset("end", node.loc, -1), this.tokenChar(41);
|
|
10452
10452
|
}
|
|
10453
10453
|
space(force = false) {
|
|
10454
|
-
const { format:
|
|
10455
|
-
if (!
|
|
10454
|
+
const { format: format4 } = this;
|
|
10455
|
+
if (!format4.compact && !format4.preserveFormat) {
|
|
10456
10456
|
if (force) this._space();
|
|
10457
10457
|
else if (this._buf.hasContent()) {
|
|
10458
10458
|
const lastCp = this.getLastChar();
|
|
@@ -10551,8 +10551,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10551
10551
|
for (let i2 = 0; i2 < count; i2++) this._newline();
|
|
10552
10552
|
}
|
|
10553
10553
|
_catchUp(prop, loc) {
|
|
10554
|
-
const { format:
|
|
10555
|
-
if (!
|
|
10554
|
+
const { format: format4 } = this;
|
|
10555
|
+
if (!format4.preserveFormat) return void (format4.retainLines && null != loc && loc[prop] && this.catchUp(loc[prop].line));
|
|
10556
10556
|
const pos = null == loc ? void 0 : loc[prop];
|
|
10557
10557
|
null != pos && this._catchUpTo(pos);
|
|
10558
10558
|
}
|
|
@@ -10576,8 +10576,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10576
10576
|
var _node$extra, _node$leadingComments, _node$leadingComments2;
|
|
10577
10577
|
if (!node) return;
|
|
10578
10578
|
this._endsWithInnerRaw = false;
|
|
10579
|
-
const nodeType = node.type,
|
|
10580
|
-
node._compact && (
|
|
10579
|
+
const nodeType = node.type, format4 = this.format, oldConcise = format4.concise;
|
|
10580
|
+
node._compact && (format4.concise = true);
|
|
10581
10581
|
const printMethod = this[nodeType];
|
|
10582
10582
|
if (void 0 === printMethod) throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);
|
|
10583
10583
|
const parent = this._currentNode;
|
|
@@ -10585,7 +10585,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10585
10585
|
const oldInAux = this._insideAux;
|
|
10586
10586
|
this._insideAux = null == node.loc, this._maybeAddAuxComment(this._insideAux && !oldInAux);
|
|
10587
10587
|
const parenthesized = null == (_node$extra = node.extra) ? void 0 : _node$extra.parenthesized;
|
|
10588
|
-
let shouldPrintParens = parenthesized &&
|
|
10588
|
+
let shouldPrintParens = parenthesized && format4.preserveFormat || parenthesized && format4.retainFunctionParens && "FunctionExpression" === nodeType || needsParens(node, parent, this.tokenContext, this.inForStatementInit, format4.preserveFormat ? this._boundGetRawIdentifier : void 0);
|
|
10589
10589
|
if (!shouldPrintParens && parenthesized && null != (_node$leadingComments = node.leadingComments) && _node$leadingComments.length && "CommentBlock" === node.leadingComments[0].type) {
|
|
10590
10590
|
switch (null == parent ? void 0 : parent.type) {
|
|
10591
10591
|
case "ExpressionStatement":
|
|
@@ -10606,7 +10606,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10606
10606
|
(!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)));
|
|
10607
10607
|
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);
|
|
10608
10608
|
const loc = "Program" === nodeType || "File" === nodeType ? null : node.loc;
|
|
10609
|
-
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,
|
|
10609
|
+
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;
|
|
10610
10610
|
}
|
|
10611
10611
|
_maybeAddAuxComment(enteredPositionlessNode) {
|
|
10612
10612
|
enteredPositionlessNode && this._printAuxBeforeComment(), this._insideAux || this._printAuxAfterComment();
|
|
@@ -10692,9 +10692,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10692
10692
|
return listEndIndex <= 0 ? null : this.tokenMap.matchesOriginal(this._tokens[listEndIndex - 1], ",");
|
|
10693
10693
|
}
|
|
10694
10694
|
_printNewline(newLine, opts) {
|
|
10695
|
-
const
|
|
10696
|
-
if (
|
|
10697
|
-
if (
|
|
10695
|
+
const format4 = this.format;
|
|
10696
|
+
if (format4.retainLines || format4.compact) return;
|
|
10697
|
+
if (format4.concise) return void this.space();
|
|
10698
10698
|
if (!newLine) return;
|
|
10699
10699
|
const startLine = opts.nextNodeStartLine, lastCommentLine = this._lastCommentLine;
|
|
10700
10700
|
if (startLine > 0 && lastCommentLine > 0) {
|
|
@@ -13261,13 +13261,13 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
13261
13261
|
}(range, api.version);
|
|
13262
13262
|
}, "assertVersion") };
|
|
13263
13263
|
function declare(builder) {
|
|
13264
|
-
return (api, options,
|
|
13264
|
+
return (api, options, dirname4) => {
|
|
13265
13265
|
var _clonedApi2;
|
|
13266
13266
|
let clonedApi;
|
|
13267
13267
|
for (const name of Object.keys(apiPolyfills)) {
|
|
13268
13268
|
api[name] || (null != clonedApi || (clonedApi = copyApiObject(api)), clonedApi[name] = apiPolyfills[name](clonedApi));
|
|
13269
13269
|
}
|
|
13270
|
-
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {},
|
|
13270
|
+
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {}, dirname4);
|
|
13271
13271
|
};
|
|
13272
13272
|
}
|
|
13273
13273
|
__name(declare, "declare");
|
|
@@ -16627,9 +16627,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
16627
16627
|
var _node$extra;
|
|
16628
16628
|
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();
|
|
16629
16629
|
}
|
|
16630
|
-
forwardNoArrowParamsConversionAt(node,
|
|
16630
|
+
forwardNoArrowParamsConversionAt(node, parse7) {
|
|
16631
16631
|
let result;
|
|
16632
|
-
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result =
|
|
16632
|
+
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;
|
|
16633
16633
|
}
|
|
16634
16634
|
parseParenItem(node, startLoc) {
|
|
16635
16635
|
const newNode = super.parseParenItem(node, startLoc);
|
|
@@ -23951,8 +23951,8 @@ ${str}
|
|
|
23951
23951
|
}
|
|
23952
23952
|
}
|
|
23953
23953
|
dump() {
|
|
23954
|
-
const
|
|
23955
|
-
console.log(
|
|
23954
|
+
const sep3 = "-".repeat(60);
|
|
23955
|
+
console.log(sep3);
|
|
23956
23956
|
let scope = this;
|
|
23957
23957
|
do {
|
|
23958
23958
|
console.log("#", scope.block.type);
|
|
@@ -23961,7 +23961,7 @@ ${str}
|
|
|
23961
23961
|
console.log(" -", name, { constant: binding.constant, references: binding.references, violations: binding.constantViolations.length, kind: binding.kind });
|
|
23962
23962
|
}
|
|
23963
23963
|
} while (scope = scope.parent);
|
|
23964
|
-
console.log(
|
|
23964
|
+
console.log(sep3);
|
|
23965
23965
|
}
|
|
23966
23966
|
hasLabel(name) {
|
|
23967
23967
|
return !!this.getLabel(name);
|
|
@@ -30254,17 +30254,17 @@ ${trace}`);
|
|
|
30254
30254
|
}
|
|
30255
30255
|
__name(importMetaResolvePlugin, "importMetaResolvePlugin");
|
|
30256
30256
|
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.25.9/node_modules/@babel/template/lib/index.js");
|
|
30257
|
-
const
|
|
30258
|
-
function
|
|
30259
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
30257
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
30258
|
+
function normalizeWindowsPath3(input = "") {
|
|
30259
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
30260
30260
|
}
|
|
30261
|
-
__name(
|
|
30262
|
-
const
|
|
30261
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
30262
|
+
const _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/;
|
|
30263
30263
|
const pathe_ff20891b_isAbsolute = /* @__PURE__ */ __name(function(p2) {
|
|
30264
|
-
return
|
|
30264
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
30265
30265
|
}, "pathe_ff20891b_isAbsolute"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
30266
|
-
const segments =
|
|
30267
|
-
return 1 === segments.length &&
|
|
30266
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
30267
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (pathe_ff20891b_isAbsolute(p2) ? "/" : ".");
|
|
30268
30268
|
}, "pathe_ff20891b_dirname");
|
|
30269
30269
|
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]");
|
|
30270
30270
|
function isInAstralSet2(code, set) {
|
|
@@ -38182,6 +38182,179 @@ var init_dist2 = __esm({
|
|
|
38182
38182
|
}
|
|
38183
38183
|
});
|
|
38184
38184
|
|
|
38185
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
38186
|
+
function normalizeWindowsPath2(input = "") {
|
|
38187
|
+
if (!input) {
|
|
38188
|
+
return input;
|
|
38189
|
+
}
|
|
38190
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r4) => r4.toUpperCase());
|
|
38191
|
+
}
|
|
38192
|
+
function cwd2() {
|
|
38193
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
38194
|
+
return process.cwd().replace(/\\/g, "/");
|
|
38195
|
+
}
|
|
38196
|
+
return "/";
|
|
38197
|
+
}
|
|
38198
|
+
function normalizeString2(path5, allowAboveRoot) {
|
|
38199
|
+
let res = "";
|
|
38200
|
+
let lastSegmentLength = 0;
|
|
38201
|
+
let lastSlash = -1;
|
|
38202
|
+
let dots = 0;
|
|
38203
|
+
let char = null;
|
|
38204
|
+
for (let index = 0; index <= path5.length; ++index) {
|
|
38205
|
+
if (index < path5.length) {
|
|
38206
|
+
char = path5[index];
|
|
38207
|
+
} else if (char === "/") {
|
|
38208
|
+
break;
|
|
38209
|
+
} else {
|
|
38210
|
+
char = "/";
|
|
38211
|
+
}
|
|
38212
|
+
if (char === "/") {
|
|
38213
|
+
if (lastSlash === index - 1 || dots === 1) ;
|
|
38214
|
+
else if (dots === 2) {
|
|
38215
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
38216
|
+
if (res.length > 2) {
|
|
38217
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
38218
|
+
if (lastSlashIndex === -1) {
|
|
38219
|
+
res = "";
|
|
38220
|
+
lastSegmentLength = 0;
|
|
38221
|
+
} else {
|
|
38222
|
+
res = res.slice(0, lastSlashIndex);
|
|
38223
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
38224
|
+
}
|
|
38225
|
+
lastSlash = index;
|
|
38226
|
+
dots = 0;
|
|
38227
|
+
continue;
|
|
38228
|
+
} else if (res.length > 0) {
|
|
38229
|
+
res = "";
|
|
38230
|
+
lastSegmentLength = 0;
|
|
38231
|
+
lastSlash = index;
|
|
38232
|
+
dots = 0;
|
|
38233
|
+
continue;
|
|
38234
|
+
}
|
|
38235
|
+
}
|
|
38236
|
+
if (allowAboveRoot) {
|
|
38237
|
+
res += res.length > 0 ? "/.." : "..";
|
|
38238
|
+
lastSegmentLength = 2;
|
|
38239
|
+
}
|
|
38240
|
+
} else {
|
|
38241
|
+
if (res.length > 0) {
|
|
38242
|
+
res += `/${path5.slice(lastSlash + 1, index)}`;
|
|
38243
|
+
} else {
|
|
38244
|
+
res = path5.slice(lastSlash + 1, index);
|
|
38245
|
+
}
|
|
38246
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
38247
|
+
}
|
|
38248
|
+
lastSlash = index;
|
|
38249
|
+
dots = 0;
|
|
38250
|
+
} else if (char === "." && dots !== -1) {
|
|
38251
|
+
++dots;
|
|
38252
|
+
} else {
|
|
38253
|
+
dots = -1;
|
|
38254
|
+
}
|
|
38255
|
+
}
|
|
38256
|
+
return res;
|
|
38257
|
+
}
|
|
38258
|
+
var _DRIVE_LETTER_START_RE2, _UNC_REGEX2, _IS_ABSOLUTE_RE2, _DRIVE_LETTER_RE2, normalize2, join2, resolve2, isAbsolute2, dirname2;
|
|
38259
|
+
var init_pathe_BLwDEnA5 = __esm({
|
|
38260
|
+
"../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs"() {
|
|
38261
|
+
init_esm_shims();
|
|
38262
|
+
_DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
38263
|
+
__name(normalizeWindowsPath2, "normalizeWindowsPath");
|
|
38264
|
+
_UNC_REGEX2 = /^[/\\]{2}/;
|
|
38265
|
+
_IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
38266
|
+
_DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
38267
|
+
normalize2 = /* @__PURE__ */ __name(function(path5) {
|
|
38268
|
+
if (path5.length === 0) {
|
|
38269
|
+
return ".";
|
|
38270
|
+
}
|
|
38271
|
+
path5 = normalizeWindowsPath2(path5);
|
|
38272
|
+
const isUNCPath = path5.match(_UNC_REGEX2);
|
|
38273
|
+
const isPathAbsolute = isAbsolute2(path5);
|
|
38274
|
+
const trailingSeparator = path5[path5.length - 1] === "/";
|
|
38275
|
+
path5 = normalizeString2(path5, !isPathAbsolute);
|
|
38276
|
+
if (path5.length === 0) {
|
|
38277
|
+
if (isPathAbsolute) {
|
|
38278
|
+
return "/";
|
|
38279
|
+
}
|
|
38280
|
+
return trailingSeparator ? "./" : ".";
|
|
38281
|
+
}
|
|
38282
|
+
if (trailingSeparator) {
|
|
38283
|
+
path5 += "/";
|
|
38284
|
+
}
|
|
38285
|
+
if (_DRIVE_LETTER_RE2.test(path5)) {
|
|
38286
|
+
path5 += "/";
|
|
38287
|
+
}
|
|
38288
|
+
if (isUNCPath) {
|
|
38289
|
+
if (!isPathAbsolute) {
|
|
38290
|
+
return `//./${path5}`;
|
|
38291
|
+
}
|
|
38292
|
+
return `//${path5}`;
|
|
38293
|
+
}
|
|
38294
|
+
return isPathAbsolute && !isAbsolute2(path5) ? `/${path5}` : path5;
|
|
38295
|
+
}, "normalize");
|
|
38296
|
+
join2 = /* @__PURE__ */ __name(function(...segments) {
|
|
38297
|
+
let path5 = "";
|
|
38298
|
+
for (const seg of segments) {
|
|
38299
|
+
if (!seg) {
|
|
38300
|
+
continue;
|
|
38301
|
+
}
|
|
38302
|
+
if (path5.length > 0) {
|
|
38303
|
+
const pathTrailing = path5[path5.length - 1] === "/";
|
|
38304
|
+
const segLeading = seg[0] === "/";
|
|
38305
|
+
const both = pathTrailing && segLeading;
|
|
38306
|
+
if (both) {
|
|
38307
|
+
path5 += seg.slice(1);
|
|
38308
|
+
} else {
|
|
38309
|
+
path5 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
38310
|
+
}
|
|
38311
|
+
} else {
|
|
38312
|
+
path5 += seg;
|
|
38313
|
+
}
|
|
38314
|
+
}
|
|
38315
|
+
return normalize2(path5);
|
|
38316
|
+
}, "join");
|
|
38317
|
+
__name(cwd2, "cwd");
|
|
38318
|
+
resolve2 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
38319
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
38320
|
+
let resolvedPath = "";
|
|
38321
|
+
let resolvedAbsolute = false;
|
|
38322
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
38323
|
+
const path5 = index >= 0 ? arguments_[index] : cwd2();
|
|
38324
|
+
if (!path5 || path5.length === 0) {
|
|
38325
|
+
continue;
|
|
38326
|
+
}
|
|
38327
|
+
resolvedPath = `${path5}/${resolvedPath}`;
|
|
38328
|
+
resolvedAbsolute = isAbsolute2(path5);
|
|
38329
|
+
}
|
|
38330
|
+
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
38331
|
+
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
38332
|
+
return `/${resolvedPath}`;
|
|
38333
|
+
}
|
|
38334
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
38335
|
+
}, "resolve");
|
|
38336
|
+
__name(normalizeString2, "normalizeString");
|
|
38337
|
+
isAbsolute2 = /* @__PURE__ */ __name(function(p2) {
|
|
38338
|
+
return _IS_ABSOLUTE_RE2.test(p2);
|
|
38339
|
+
}, "isAbsolute");
|
|
38340
|
+
dirname2 = /* @__PURE__ */ __name(function(p2) {
|
|
38341
|
+
const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
38342
|
+
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
38343
|
+
segments[0] += "/";
|
|
38344
|
+
}
|
|
38345
|
+
return segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
|
|
38346
|
+
}, "dirname");
|
|
38347
|
+
}
|
|
38348
|
+
});
|
|
38349
|
+
|
|
38350
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs
|
|
38351
|
+
var init_dist3 = __esm({
|
|
38352
|
+
"../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs"() {
|
|
38353
|
+
init_esm_shims();
|
|
38354
|
+
init_pathe_BLwDEnA5();
|
|
38355
|
+
}
|
|
38356
|
+
});
|
|
38357
|
+
|
|
38185
38358
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
38186
38359
|
function g(e2, t2) {
|
|
38187
38360
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -41034,19 +41207,19 @@ ${f2}`, i2);
|
|
|
41034
41207
|
});
|
|
41035
41208
|
|
|
41036
41209
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
41037
|
-
var
|
|
41210
|
+
var init_dist4 = __esm({
|
|
41038
41211
|
"../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs"() {
|
|
41039
41212
|
init_esm_shims();
|
|
41040
41213
|
init_confbox_f9f03f05();
|
|
41041
41214
|
}
|
|
41042
41215
|
});
|
|
41043
41216
|
|
|
41044
|
-
// ../../node_modules/.pnpm/pkg-types@1.3.
|
|
41217
|
+
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
41045
41218
|
import { statSync, promises } from "node:fs";
|
|
41046
41219
|
async function findFile(filename, _options = {}) {
|
|
41047
41220
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
41048
41221
|
const options = { ...defaultFindOptions, ..._options };
|
|
41049
|
-
const basePath =
|
|
41222
|
+
const basePath = resolve2(options.startingFrom);
|
|
41050
41223
|
const leadingSlash = basePath[0] === "/";
|
|
41051
41224
|
const segments = basePath.split("/").filter(Boolean);
|
|
41052
41225
|
if (leadingSlash) {
|
|
@@ -41059,7 +41232,7 @@ async function findFile(filename, _options = {}) {
|
|
|
41059
41232
|
if (options.reverse) {
|
|
41060
41233
|
for (let index = root + 1; index <= segments.length; index++) {
|
|
41061
41234
|
for (const filename2 of filenames) {
|
|
41062
|
-
const filePath =
|
|
41235
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
41063
41236
|
if (await options.test(filePath)) {
|
|
41064
41237
|
return filePath;
|
|
41065
41238
|
}
|
|
@@ -41068,7 +41241,7 @@ async function findFile(filename, _options = {}) {
|
|
|
41068
41241
|
} else {
|
|
41069
41242
|
for (let index = segments.length; index > root; index--) {
|
|
41070
41243
|
for (const filename2 of filenames) {
|
|
41071
|
-
const filePath =
|
|
41244
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
41072
41245
|
if (await options.test(filePath)) {
|
|
41073
41246
|
return filePath;
|
|
41074
41247
|
}
|
|
@@ -41099,14 +41272,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
41099
41272
|
return parsed;
|
|
41100
41273
|
}
|
|
41101
41274
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
41102
|
-
const resolvedPath =
|
|
41275
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41103
41276
|
return findNearestFile("package.json", {
|
|
41104
41277
|
startingFrom: resolvedPath,
|
|
41105
41278
|
...options
|
|
41106
41279
|
});
|
|
41107
41280
|
}
|
|
41108
41281
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
41109
|
-
const resolvedPath =
|
|
41282
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41110
41283
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
41111
41284
|
try {
|
|
41112
41285
|
return await findNearestFile(lockFiles, _options);
|
|
@@ -41115,11 +41288,11 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
41115
41288
|
throw new Error("No lockfile found from " + id);
|
|
41116
41289
|
}
|
|
41117
41290
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
41118
|
-
const resolvedPath =
|
|
41291
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41119
41292
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
41120
41293
|
try {
|
|
41121
41294
|
const r4 = await findNearestFile(".git/config", _options);
|
|
41122
|
-
return
|
|
41295
|
+
return resolve2(r4, "../..");
|
|
41123
41296
|
} catch {
|
|
41124
41297
|
}
|
|
41125
41298
|
try {
|
|
@@ -41127,23 +41300,23 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
41127
41300
|
..._options,
|
|
41128
41301
|
reverse: true
|
|
41129
41302
|
});
|
|
41130
|
-
return
|
|
41303
|
+
return dirname2(r4);
|
|
41131
41304
|
} catch {
|
|
41132
41305
|
}
|
|
41133
41306
|
try {
|
|
41134
41307
|
const r4 = await findFile(resolvedPath, _options);
|
|
41135
|
-
return
|
|
41308
|
+
return dirname2(r4);
|
|
41136
41309
|
} catch {
|
|
41137
41310
|
}
|
|
41138
41311
|
throw new Error("Cannot detect workspace root from " + id);
|
|
41139
41312
|
}
|
|
41140
41313
|
var defaultFindOptions, FileCache, lockFiles;
|
|
41141
|
-
var
|
|
41142
|
-
"../../node_modules/.pnpm/pkg-types@1.3.
|
|
41314
|
+
var init_dist5 = __esm({
|
|
41315
|
+
"../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs"() {
|
|
41143
41316
|
init_esm_shims();
|
|
41144
|
-
init_dist();
|
|
41145
|
-
init_dist5();
|
|
41146
41317
|
init_dist3();
|
|
41318
|
+
init_dist6();
|
|
41319
|
+
init_dist4();
|
|
41147
41320
|
defaultFindOptions = {
|
|
41148
41321
|
startingFrom: ".",
|
|
41149
41322
|
rootPattern: /^node_modules$/,
|
|
@@ -41167,22 +41340,23 @@ var init_dist4 = __esm({
|
|
|
41167
41340
|
"package-lock.json",
|
|
41168
41341
|
"pnpm-lock.yaml",
|
|
41169
41342
|
"npm-shrinkwrap.json",
|
|
41170
|
-
"bun.lockb"
|
|
41343
|
+
"bun.lockb",
|
|
41344
|
+
"bun.lock"
|
|
41171
41345
|
];
|
|
41172
41346
|
__name(resolveLockfile, "resolveLockfile");
|
|
41173
41347
|
__name(findWorkspaceDir, "findWorkspaceDir");
|
|
41174
41348
|
}
|
|
41175
41349
|
});
|
|
41176
41350
|
|
|
41177
|
-
// ../../node_modules/.pnpm/mlly@1.7.
|
|
41351
|
+
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
41178
41352
|
import { builtinModules, createRequire as createRequire2 } from "node:module";
|
|
41179
41353
|
import fs, { realpathSync, statSync as statSync2, promises as promises2 } from "node:fs";
|
|
41180
41354
|
import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
|
|
41181
41355
|
import assert from "node:assert";
|
|
41182
41356
|
import process$1 from "node:process";
|
|
41183
|
-
import path2, { dirname as
|
|
41357
|
+
import path2, { dirname as dirname3 } from "node:path";
|
|
41184
41358
|
import v8 from "node:v8";
|
|
41185
|
-
import { format as
|
|
41359
|
+
import { format as format3, inspect } from "node:util";
|
|
41186
41360
|
function normalizeSlash(path5) {
|
|
41187
41361
|
return path5.replace(/\\/g, "/");
|
|
41188
41362
|
}
|
|
@@ -41264,7 +41438,7 @@ function getMessage(key, parameters, self2) {
|
|
|
41264
41438
|
);
|
|
41265
41439
|
if (parameters.length === 0) return message;
|
|
41266
41440
|
parameters.unshift(message);
|
|
41267
|
-
return Reflect.apply(
|
|
41441
|
+
return Reflect.apply(format3, null, parameters);
|
|
41268
41442
|
}
|
|
41269
41443
|
function determineSpecificType(value2) {
|
|
41270
41444
|
if (value2 === null || value2 === void 0) {
|
|
@@ -41390,7 +41564,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
41390
41564
|
) || [null, null, null];
|
|
41391
41565
|
return mimeToFormat(mime);
|
|
41392
41566
|
}
|
|
41393
|
-
function
|
|
41567
|
+
function extname3(url) {
|
|
41394
41568
|
const pathname = url.pathname;
|
|
41395
41569
|
let index = pathname.length;
|
|
41396
41570
|
while (index--) {
|
|
@@ -41405,7 +41579,7 @@ function extname2(url) {
|
|
|
41405
41579
|
return "";
|
|
41406
41580
|
}
|
|
41407
41581
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
41408
|
-
const value2 =
|
|
41582
|
+
const value2 = extname3(url);
|
|
41409
41583
|
if (value2 === ".js") {
|
|
41410
41584
|
const packageType = getPackageType(url);
|
|
41411
41585
|
if (packageType !== "none") {
|
|
@@ -41420,8 +41594,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
41420
41594
|
}
|
|
41421
41595
|
return "module";
|
|
41422
41596
|
}
|
|
41423
|
-
const
|
|
41424
|
-
if (
|
|
41597
|
+
const format4 = extensionFormatMap[value2];
|
|
41598
|
+
if (format4) return format4;
|
|
41425
41599
|
if (ignoreErrors) {
|
|
41426
41600
|
return void 0;
|
|
41427
41601
|
}
|
|
@@ -41453,8 +41627,8 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
41453
41627
|
if (process$1.noDeprecation) {
|
|
41454
41628
|
return;
|
|
41455
41629
|
}
|
|
41456
|
-
const
|
|
41457
|
-
if (
|
|
41630
|
+
const format4 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
41631
|
+
if (format4 !== "module") return;
|
|
41458
41632
|
const urlPath = fileURLToPath$1(url.href);
|
|
41459
41633
|
const packagePath = fileURLToPath$1(new URL$1(".", packageJsonUrl));
|
|
41460
41634
|
const basePath = fileURLToPath$1(base);
|
|
@@ -41571,7 +41745,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
41571
41745
|
error.url = String(resolved);
|
|
41572
41746
|
throw error;
|
|
41573
41747
|
}
|
|
41574
|
-
|
|
41748
|
+
{
|
|
41575
41749
|
const real = realpathSync(filePath);
|
|
41576
41750
|
const { search, hash: hash2 } = resolved;
|
|
41577
41751
|
resolved = pathToFileURL$1(real + (filePath.endsWith(path2.sep) ? "/" : ""));
|
|
@@ -42118,7 +42292,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
42118
42292
|
if (resolved.protocol !== "file:") {
|
|
42119
42293
|
return resolved;
|
|
42120
42294
|
}
|
|
42121
|
-
return finalizeResolution(resolved, base
|
|
42295
|
+
return finalizeResolution(resolved, base);
|
|
42122
42296
|
}
|
|
42123
42297
|
function fileURLToPath(id) {
|
|
42124
42298
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -42167,7 +42341,7 @@ function _resolve(id, options = {}) {
|
|
|
42167
42341
|
if (id.startsWith("file://")) {
|
|
42168
42342
|
id = fileURLToPath(id);
|
|
42169
42343
|
}
|
|
42170
|
-
if (
|
|
42344
|
+
if (isAbsolute2(id)) {
|
|
42171
42345
|
try {
|
|
42172
42346
|
const stat = statSync2(id);
|
|
42173
42347
|
if (stat.isFile()) {
|
|
@@ -42244,12 +42418,12 @@ function resolvePath(id, options) {
|
|
|
42244
42418
|
}
|
|
42245
42419
|
}
|
|
42246
42420
|
var 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;
|
|
42247
|
-
var
|
|
42248
|
-
"../../node_modules/.pnpm/mlly@1.7.
|
|
42421
|
+
var init_dist6 = __esm({
|
|
42422
|
+
"../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs"() {
|
|
42249
42423
|
init_esm_shims();
|
|
42250
42424
|
init_acorn();
|
|
42251
42425
|
init_dist2();
|
|
42252
|
-
|
|
42426
|
+
init_dist3();
|
|
42253
42427
|
BUILTIN_MODULES = new Set(builtinModules);
|
|
42254
42428
|
__name(normalizeSlash, "normalizeSlash");
|
|
42255
42429
|
own$1 = {}.hasOwnProperty;
|
|
@@ -42521,7 +42695,7 @@ var init_dist5 = __esm({
|
|
|
42521
42695
|
}
|
|
42522
42696
|
};
|
|
42523
42697
|
__name(getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
42524
|
-
__name(
|
|
42698
|
+
__name(extname3, "extname");
|
|
42525
42699
|
__name(getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
42526
42700
|
__name(getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
42527
42701
|
__name(defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
@@ -42742,7 +42916,7 @@ var require_main = __commonJS({
|
|
|
42742
42916
|
var packageJson = require_package();
|
|
42743
42917
|
var version2 = packageJson.version;
|
|
42744
42918
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
42745
|
-
function
|
|
42919
|
+
function parse7(src) {
|
|
42746
42920
|
const obj = {};
|
|
42747
42921
|
let lines = src.toString();
|
|
42748
42922
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
@@ -42761,7 +42935,7 @@ var require_main = __commonJS({
|
|
|
42761
42935
|
}
|
|
42762
42936
|
return obj;
|
|
42763
42937
|
}
|
|
42764
|
-
__name(
|
|
42938
|
+
__name(parse7, "parse");
|
|
42765
42939
|
function _parseVault(options) {
|
|
42766
42940
|
const vaultPath = _vaultPath(options);
|
|
42767
42941
|
const result = DotenvModule.configDotenv({
|
|
@@ -43017,7 +43191,7 @@ var require_main = __commonJS({
|
|
|
43017
43191
|
_parseVault,
|
|
43018
43192
|
config,
|
|
43019
43193
|
decrypt,
|
|
43020
|
-
parse:
|
|
43194
|
+
parse: parse7,
|
|
43021
43195
|
populate
|
|
43022
43196
|
};
|
|
43023
43197
|
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
@@ -43564,10 +43738,10 @@ var require_minipass = __commonJS({
|
|
|
43564
43738
|
}
|
|
43565
43739
|
// stream.promise().then(() => done, er => emitted error)
|
|
43566
43740
|
promise() {
|
|
43567
|
-
return new Promise((
|
|
43741
|
+
return new Promise((resolve4, reject) => {
|
|
43568
43742
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
43569
43743
|
this.on("error", (er2) => reject(er2));
|
|
43570
|
-
this.on("end", () =>
|
|
43744
|
+
this.on("end", () => resolve4());
|
|
43571
43745
|
});
|
|
43572
43746
|
}
|
|
43573
43747
|
// for await (let chunk of stream)
|
|
@@ -43588,7 +43762,7 @@ var require_minipass = __commonJS({
|
|
|
43588
43762
|
value: res
|
|
43589
43763
|
});
|
|
43590
43764
|
if (this[EOF]) return stop();
|
|
43591
|
-
let
|
|
43765
|
+
let resolve4 = null;
|
|
43592
43766
|
let reject = null;
|
|
43593
43767
|
const onerr = /* @__PURE__ */ __name((er2) => {
|
|
43594
43768
|
this.removeListener("data", ondata);
|
|
@@ -43602,7 +43776,7 @@ var require_minipass = __commonJS({
|
|
|
43602
43776
|
this.removeListener("end", onend);
|
|
43603
43777
|
this.removeListener(DESTROYED, ondestroy);
|
|
43604
43778
|
this.pause();
|
|
43605
|
-
|
|
43779
|
+
resolve4({
|
|
43606
43780
|
value: value2,
|
|
43607
43781
|
done: !!this[EOF]
|
|
43608
43782
|
});
|
|
@@ -43612,14 +43786,14 @@ var require_minipass = __commonJS({
|
|
|
43612
43786
|
this.removeListener("data", ondata);
|
|
43613
43787
|
this.removeListener(DESTROYED, ondestroy);
|
|
43614
43788
|
stop();
|
|
43615
|
-
|
|
43789
|
+
resolve4({
|
|
43616
43790
|
done: true
|
|
43617
43791
|
});
|
|
43618
43792
|
}, "onend");
|
|
43619
43793
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
43620
43794
|
return new Promise((res2, rej) => {
|
|
43621
43795
|
reject = rej;
|
|
43622
|
-
|
|
43796
|
+
resolve4 = res2;
|
|
43623
43797
|
this.once(DESTROYED, ondestroy);
|
|
43624
43798
|
this.once("error", onerr);
|
|
43625
43799
|
this.once("end", onend);
|
|
@@ -44203,10 +44377,10 @@ var require_minipass2 = __commonJS({
|
|
|
44203
44377
|
}
|
|
44204
44378
|
// stream.promise().then(() => done, er => emitted error)
|
|
44205
44379
|
promise() {
|
|
44206
|
-
return new Promise((
|
|
44380
|
+
return new Promise((resolve4, reject) => {
|
|
44207
44381
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
44208
44382
|
this.on("error", (er2) => reject(er2));
|
|
44209
|
-
this.on("end", () =>
|
|
44383
|
+
this.on("end", () => resolve4());
|
|
44210
44384
|
});
|
|
44211
44385
|
}
|
|
44212
44386
|
// for await (let chunk of stream)
|
|
@@ -44220,7 +44394,7 @@ var require_minipass2 = __commonJS({
|
|
|
44220
44394
|
if (this[EOF]) return Promise.resolve({
|
|
44221
44395
|
done: true
|
|
44222
44396
|
});
|
|
44223
|
-
let
|
|
44397
|
+
let resolve4 = null;
|
|
44224
44398
|
let reject = null;
|
|
44225
44399
|
const onerr = /* @__PURE__ */ __name((er2) => {
|
|
44226
44400
|
this.removeListener("data", ondata);
|
|
@@ -44231,7 +44405,7 @@ var require_minipass2 = __commonJS({
|
|
|
44231
44405
|
this.removeListener("error", onerr);
|
|
44232
44406
|
this.removeListener("end", onend);
|
|
44233
44407
|
this.pause();
|
|
44234
|
-
|
|
44408
|
+
resolve4({
|
|
44235
44409
|
value: value2,
|
|
44236
44410
|
done: !!this[EOF]
|
|
44237
44411
|
});
|
|
@@ -44239,14 +44413,14 @@ var require_minipass2 = __commonJS({
|
|
|
44239
44413
|
const onend = /* @__PURE__ */ __name(() => {
|
|
44240
44414
|
this.removeListener("error", onerr);
|
|
44241
44415
|
this.removeListener("data", ondata);
|
|
44242
|
-
|
|
44416
|
+
resolve4({
|
|
44243
44417
|
done: true
|
|
44244
44418
|
});
|
|
44245
44419
|
}, "onend");
|
|
44246
44420
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
44247
44421
|
return new Promise((res2, rej) => {
|
|
44248
44422
|
reject = rej;
|
|
44249
|
-
|
|
44423
|
+
resolve4 = res2;
|
|
44250
44424
|
this.once(DESTROYED, ondestroy);
|
|
44251
44425
|
this.once("error", onerr);
|
|
44252
44426
|
this.once("end", onend);
|
|
@@ -44846,7 +45020,7 @@ var require_large_numbers = __commonJS({
|
|
|
44846
45020
|
}
|
|
44847
45021
|
}
|
|
44848
45022
|
}, "encodeNegative");
|
|
44849
|
-
var
|
|
45023
|
+
var parse7 = /* @__PURE__ */ __name((buf) => {
|
|
44850
45024
|
const pre = buf[0];
|
|
44851
45025
|
const value2 = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
44852
45026
|
if (value2 === null) {
|
|
@@ -44893,7 +45067,7 @@ var require_large_numbers = __commonJS({
|
|
|
44893
45067
|
var twosComp = /* @__PURE__ */ __name((byte) => (255 ^ byte) + 1 & 255, "twosComp");
|
|
44894
45068
|
module.exports = {
|
|
44895
45069
|
encode,
|
|
44896
|
-
parse:
|
|
45070
|
+
parse: parse7
|
|
44897
45071
|
};
|
|
44898
45072
|
}
|
|
44899
45073
|
});
|
|
@@ -45319,15 +45493,15 @@ var require_winchars = __commonJS({
|
|
|
45319
45493
|
var require_strip_absolute_path = __commonJS({
|
|
45320
45494
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports, module) {
|
|
45321
45495
|
init_esm_shims();
|
|
45322
|
-
var { isAbsolute:
|
|
45496
|
+
var { isAbsolute: isAbsolute3, parse: parse7 } = __require("path").win32;
|
|
45323
45497
|
module.exports = (path5) => {
|
|
45324
45498
|
let r4 = "";
|
|
45325
|
-
let parsed =
|
|
45326
|
-
while (
|
|
45499
|
+
let parsed = parse7(path5);
|
|
45500
|
+
while (isAbsolute3(path5) || parsed.root) {
|
|
45327
45501
|
const root = path5.charAt(0) === "/" && path5.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
45328
45502
|
path5 = path5.slice(root.length);
|
|
45329
45503
|
r4 += root;
|
|
45330
|
-
parsed =
|
|
45504
|
+
parsed = parse7(path5);
|
|
45331
45505
|
}
|
|
45332
45506
|
return [
|
|
45333
45507
|
r4,
|
|
@@ -47506,12 +47680,12 @@ var require_list = __commonJS({
|
|
|
47506
47680
|
}
|
|
47507
47681
|
}, "listFileSync");
|
|
47508
47682
|
var listFile = /* @__PURE__ */ __name((opt, cb) => {
|
|
47509
|
-
const
|
|
47683
|
+
const parse7 = new Parser3(opt);
|
|
47510
47684
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
47511
47685
|
const file = opt.file;
|
|
47512
|
-
const p2 = new Promise((
|
|
47513
|
-
|
|
47514
|
-
|
|
47686
|
+
const p2 = new Promise((resolve4, reject) => {
|
|
47687
|
+
parse7.on("error", reject);
|
|
47688
|
+
parse7.on("end", resolve4);
|
|
47515
47689
|
fs2.stat(file, (er2, stat) => {
|
|
47516
47690
|
if (er2) {
|
|
47517
47691
|
reject(er2);
|
|
@@ -47521,7 +47695,7 @@ var require_list = __commonJS({
|
|
|
47521
47695
|
size: stat.size
|
|
47522
47696
|
});
|
|
47523
47697
|
stream.on("error", reject);
|
|
47524
|
-
stream.pipe(
|
|
47698
|
+
stream.pipe(parse7);
|
|
47525
47699
|
}
|
|
47526
47700
|
});
|
|
47527
47701
|
});
|
|
@@ -47762,7 +47936,7 @@ var require_replace = __commonJS({
|
|
|
47762
47936
|
}, "onread");
|
|
47763
47937
|
fs2.read(fd, headBuf, 0, 512, position, onread);
|
|
47764
47938
|
}, "getPos");
|
|
47765
|
-
const promise = new Promise((
|
|
47939
|
+
const promise = new Promise((resolve4, reject) => {
|
|
47766
47940
|
p2.on("error", reject);
|
|
47767
47941
|
let flag = "r+";
|
|
47768
47942
|
const onopen = /* @__PURE__ */ __name((er2, fd) => {
|
|
@@ -47787,7 +47961,7 @@ var require_replace = __commonJS({
|
|
|
47787
47961
|
});
|
|
47788
47962
|
p2.pipe(stream);
|
|
47789
47963
|
stream.on("error", reject);
|
|
47790
|
-
stream.on("close",
|
|
47964
|
+
stream.on("close", resolve4);
|
|
47791
47965
|
addFilesAsync(p2, files);
|
|
47792
47966
|
});
|
|
47793
47967
|
});
|
|
@@ -47903,7 +48077,7 @@ var require_path_arg = __commonJS({
|
|
|
47903
48077
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports, module) {
|
|
47904
48078
|
init_esm_shims();
|
|
47905
48079
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
47906
|
-
var { resolve:
|
|
48080
|
+
var { resolve: resolve4, parse: parse7 } = __require("path");
|
|
47907
48081
|
var pathArg = /* @__PURE__ */ __name((path5) => {
|
|
47908
48082
|
if (/\0/.test(path5)) {
|
|
47909
48083
|
throw Object.assign(new TypeError("path must be a string without null bytes"), {
|
|
@@ -47911,10 +48085,10 @@ var require_path_arg = __commonJS({
|
|
|
47911
48085
|
code: "ERR_INVALID_ARG_VALUE"
|
|
47912
48086
|
});
|
|
47913
48087
|
}
|
|
47914
|
-
path5 =
|
|
48088
|
+
path5 = resolve4(path5);
|
|
47915
48089
|
if (platform === "win32") {
|
|
47916
48090
|
const badWinChars = /[*|"<>?:]/;
|
|
47917
|
-
const { root } =
|
|
48091
|
+
const { root } = parse7(path5);
|
|
47918
48092
|
if (badWinChars.test(path5.substr(root.length))) {
|
|
47919
48093
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
47920
48094
|
path: path5,
|
|
@@ -47932,17 +48106,17 @@ var require_path_arg = __commonJS({
|
|
|
47932
48106
|
var require_find_made = __commonJS({
|
|
47933
48107
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports, module) {
|
|
47934
48108
|
init_esm_shims();
|
|
47935
|
-
var { dirname:
|
|
48109
|
+
var { dirname: dirname4 } = __require("path");
|
|
47936
48110
|
var findMade = /* @__PURE__ */ __name((opts, parent, path5 = void 0) => {
|
|
47937
48111
|
if (path5 === parent) return Promise.resolve();
|
|
47938
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path5 : void 0, (er2) => er2.code === "ENOENT" ? findMade(opts,
|
|
48112
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path5 : void 0, (er2) => er2.code === "ENOENT" ? findMade(opts, dirname4(parent), parent) : void 0);
|
|
47939
48113
|
}, "findMade");
|
|
47940
48114
|
var findMadeSync = /* @__PURE__ */ __name((opts, parent, path5 = void 0) => {
|
|
47941
48115
|
if (path5 === parent) return void 0;
|
|
47942
48116
|
try {
|
|
47943
48117
|
return opts.statSync(parent).isDirectory() ? path5 : void 0;
|
|
47944
48118
|
} catch (er2) {
|
|
47945
|
-
return er2.code === "ENOENT" ? findMadeSync(opts,
|
|
48119
|
+
return er2.code === "ENOENT" ? findMadeSync(opts, dirname4(parent), parent) : void 0;
|
|
47946
48120
|
}
|
|
47947
48121
|
}, "findMadeSync");
|
|
47948
48122
|
module.exports = {
|
|
@@ -47956,10 +48130,10 @@ var require_find_made = __commonJS({
|
|
|
47956
48130
|
var require_mkdirp_manual = __commonJS({
|
|
47957
48131
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports, module) {
|
|
47958
48132
|
init_esm_shims();
|
|
47959
|
-
var { dirname:
|
|
48133
|
+
var { dirname: dirname4 } = __require("path");
|
|
47960
48134
|
var mkdirpManual = /* @__PURE__ */ __name((path5, opts, made) => {
|
|
47961
48135
|
opts.recursive = false;
|
|
47962
|
-
const parent =
|
|
48136
|
+
const parent = dirname4(path5);
|
|
47963
48137
|
if (parent === path5) {
|
|
47964
48138
|
return opts.mkdirAsync(path5, opts).catch((er2) => {
|
|
47965
48139
|
if (er2.code !== "EISDIR") throw er2;
|
|
@@ -47977,7 +48151,7 @@ var require_mkdirp_manual = __commonJS({
|
|
|
47977
48151
|
});
|
|
47978
48152
|
}, "mkdirpManual");
|
|
47979
48153
|
var mkdirpManualSync = /* @__PURE__ */ __name((path5, opts, made) => {
|
|
47980
|
-
const parent =
|
|
48154
|
+
const parent = dirname4(path5);
|
|
47981
48155
|
opts.recursive = false;
|
|
47982
48156
|
if (parent === path5) {
|
|
47983
48157
|
try {
|
|
@@ -48011,12 +48185,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
48011
48185
|
var require_mkdirp_native = __commonJS({
|
|
48012
48186
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"(exports, module) {
|
|
48013
48187
|
init_esm_shims();
|
|
48014
|
-
var { dirname:
|
|
48188
|
+
var { dirname: dirname4 } = __require("path");
|
|
48015
48189
|
var { findMade, findMadeSync } = require_find_made();
|
|
48016
48190
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
48017
48191
|
var mkdirpNative = /* @__PURE__ */ __name((path5, opts) => {
|
|
48018
48192
|
opts.recursive = true;
|
|
48019
|
-
const parent =
|
|
48193
|
+
const parent = dirname4(path5);
|
|
48020
48194
|
if (parent === path5) return opts.mkdirAsync(path5, opts);
|
|
48021
48195
|
return findMade(opts, path5).then((made) => opts.mkdirAsync(path5, opts).then(() => made).catch((er2) => {
|
|
48022
48196
|
if (er2.code === "ENOENT") return mkdirpManual(path5, opts);
|
|
@@ -48025,7 +48199,7 @@ var require_mkdirp_native = __commonJS({
|
|
|
48025
48199
|
}, "mkdirpNative");
|
|
48026
48200
|
var mkdirpNativeSync = /* @__PURE__ */ __name((path5, opts) => {
|
|
48027
48201
|
opts.recursive = true;
|
|
48028
|
-
const parent =
|
|
48202
|
+
const parent = dirname4(path5);
|
|
48029
48203
|
if (parent === path5) return opts.mkdirSync(path5, opts);
|
|
48030
48204
|
const made = findMadeSync(opts, path5);
|
|
48031
48205
|
try {
|
|
@@ -48259,7 +48433,7 @@ var require_mkdir = __commonJS({
|
|
|
48259
48433
|
const preserve = opt.preserve;
|
|
48260
48434
|
const unlink = opt.unlink;
|
|
48261
48435
|
const cache2 = opt.cache;
|
|
48262
|
-
const
|
|
48436
|
+
const cwd3 = normPath(opt.cwd);
|
|
48263
48437
|
const done = /* @__PURE__ */ __name((er2, created) => {
|
|
48264
48438
|
if (er2) {
|
|
48265
48439
|
cb(er2);
|
|
@@ -48277,7 +48451,7 @@ var require_mkdir = __commonJS({
|
|
|
48277
48451
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
48278
48452
|
return done();
|
|
48279
48453
|
}
|
|
48280
|
-
if (dir ===
|
|
48454
|
+
if (dir === cwd3) {
|
|
48281
48455
|
return checkCwd(dir, done);
|
|
48282
48456
|
}
|
|
48283
48457
|
if (preserve) {
|
|
@@ -48285,35 +48459,35 @@ var require_mkdir = __commonJS({
|
|
|
48285
48459
|
mode
|
|
48286
48460
|
}).then((made) => done(null, made), done);
|
|
48287
48461
|
}
|
|
48288
|
-
const sub = normPath(path5.relative(
|
|
48462
|
+
const sub = normPath(path5.relative(cwd3, dir));
|
|
48289
48463
|
const parts = sub.split("/");
|
|
48290
|
-
mkdir_(
|
|
48464
|
+
mkdir_(cwd3, parts, mode, cache2, unlink, cwd3, null, done);
|
|
48291
48465
|
};
|
|
48292
|
-
var mkdir_ = /* @__PURE__ */ __name((base, parts, mode, cache2, unlink,
|
|
48466
|
+
var mkdir_ = /* @__PURE__ */ __name((base, parts, mode, cache2, unlink, cwd3, created, cb) => {
|
|
48293
48467
|
if (!parts.length) {
|
|
48294
48468
|
return cb(null, created);
|
|
48295
48469
|
}
|
|
48296
48470
|
const p2 = parts.shift();
|
|
48297
48471
|
const part = normPath(path5.resolve(base + "/" + p2));
|
|
48298
48472
|
if (cGet(cache2, part)) {
|
|
48299
|
-
return mkdir_(part, parts, mode, cache2, unlink,
|
|
48473
|
+
return mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
48300
48474
|
}
|
|
48301
|
-
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
48475
|
+
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
48302
48476
|
}, "mkdir_");
|
|
48303
|
-
var onmkdir = /* @__PURE__ */ __name((part, parts, mode, cache2, unlink,
|
|
48477
|
+
var onmkdir = /* @__PURE__ */ __name((part, parts, mode, cache2, unlink, cwd3, created, cb) => (er2) => {
|
|
48304
48478
|
if (er2) {
|
|
48305
48479
|
fs2.lstat(part, (statEr, st) => {
|
|
48306
48480
|
if (statEr) {
|
|
48307
48481
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
48308
48482
|
cb(statEr);
|
|
48309
48483
|
} else if (st.isDirectory()) {
|
|
48310
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
48484
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
48311
48485
|
} else if (unlink) {
|
|
48312
48486
|
fs2.unlink(part, (er3) => {
|
|
48313
48487
|
if (er3) {
|
|
48314
48488
|
return cb(er3);
|
|
48315
48489
|
}
|
|
48316
|
-
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
48490
|
+
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
48317
48491
|
});
|
|
48318
48492
|
} else if (st.isSymbolicLink()) {
|
|
48319
48493
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -48323,7 +48497,7 @@ var require_mkdir = __commonJS({
|
|
|
48323
48497
|
});
|
|
48324
48498
|
} else {
|
|
48325
48499
|
created = created || part;
|
|
48326
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
48500
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
48327
48501
|
}
|
|
48328
48502
|
}, "onmkdir");
|
|
48329
48503
|
var checkCwdSync = /* @__PURE__ */ __name((dir) => {
|
|
@@ -48350,7 +48524,7 @@ var require_mkdir = __commonJS({
|
|
|
48350
48524
|
const preserve = opt.preserve;
|
|
48351
48525
|
const unlink = opt.unlink;
|
|
48352
48526
|
const cache2 = opt.cache;
|
|
48353
|
-
const
|
|
48527
|
+
const cwd3 = normPath(opt.cwd);
|
|
48354
48528
|
const done = /* @__PURE__ */ __name((created2) => {
|
|
48355
48529
|
cSet(cache2, dir, true);
|
|
48356
48530
|
if (created2 && doChown) {
|
|
@@ -48363,17 +48537,17 @@ var require_mkdir = __commonJS({
|
|
|
48363
48537
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
48364
48538
|
return done();
|
|
48365
48539
|
}
|
|
48366
|
-
if (dir ===
|
|
48367
|
-
checkCwdSync(
|
|
48540
|
+
if (dir === cwd3) {
|
|
48541
|
+
checkCwdSync(cwd3);
|
|
48368
48542
|
return done();
|
|
48369
48543
|
}
|
|
48370
48544
|
if (preserve) {
|
|
48371
48545
|
return done(mkdirp.sync(dir, mode));
|
|
48372
48546
|
}
|
|
48373
|
-
const sub = normPath(path5.relative(
|
|
48547
|
+
const sub = normPath(path5.relative(cwd3, dir));
|
|
48374
48548
|
const parts = sub.split("/");
|
|
48375
48549
|
let created = null;
|
|
48376
|
-
for (let p2 = parts.shift(), part =
|
|
48550
|
+
for (let p2 = parts.shift(), part = cwd3; p2 && (part += "/" + p2); p2 = parts.shift()) {
|
|
48377
48551
|
part = normPath(path5.resolve(part));
|
|
48378
48552
|
if (cGet(cache2, part)) {
|
|
48379
48553
|
continue;
|
|
@@ -48423,9 +48597,9 @@ var require_path_reservations = __commonJS({
|
|
|
48423
48597
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js"(exports, module) {
|
|
48424
48598
|
init_esm_shims();
|
|
48425
48599
|
var assert2 = __require("assert");
|
|
48426
|
-
var
|
|
48600
|
+
var normalize3 = require_normalize_unicode();
|
|
48427
48601
|
var stripSlashes = require_strip_trailing_slashes();
|
|
48428
|
-
var { join:
|
|
48602
|
+
var { join: join5 } = __require("path");
|
|
48429
48603
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
48430
48604
|
var isWindows = platform === "win32";
|
|
48431
48605
|
module.exports = () => {
|
|
@@ -48434,7 +48608,7 @@ var require_path_reservations = __commonJS({
|
|
|
48434
48608
|
const getDirs = /* @__PURE__ */ __name((path5) => {
|
|
48435
48609
|
const dirs = path5.split("/").slice(0, -1).reduce((set, path6) => {
|
|
48436
48610
|
if (set.length) {
|
|
48437
|
-
path6 =
|
|
48611
|
+
path6 = join5(set[set.length - 1], path6);
|
|
48438
48612
|
}
|
|
48439
48613
|
set.push(path6 || "/");
|
|
48440
48614
|
return set;
|
|
@@ -48506,7 +48680,7 @@ var require_path_reservations = __commonJS({
|
|
|
48506
48680
|
paths = isWindows ? [
|
|
48507
48681
|
"win32 parallelization disabled"
|
|
48508
48682
|
] : paths.map((p2) => {
|
|
48509
|
-
return stripSlashes(
|
|
48683
|
+
return stripSlashes(join5(normalize3(p2))).toLowerCase();
|
|
48510
48684
|
});
|
|
48511
48685
|
const dirs = new Set(paths.map((path5) => getDirs(path5)).reduce((a2, b6) => a2.concat(b6)));
|
|
48512
48686
|
reservations.set(fn2, {
|
|
@@ -48580,7 +48754,7 @@ var require_unpack = __commonJS({
|
|
|
48580
48754
|
var stripAbsolutePath = require_strip_absolute_path();
|
|
48581
48755
|
var normPath = require_normalize_windows_path();
|
|
48582
48756
|
var stripSlash = require_strip_trailing_slashes();
|
|
48583
|
-
var
|
|
48757
|
+
var normalize3 = require_normalize_unicode();
|
|
48584
48758
|
var ONENTRY = Symbol("onEntry");
|
|
48585
48759
|
var CHECKFS = Symbol("checkFs");
|
|
48586
48760
|
var CHECKFS2 = Symbol("checkFs2");
|
|
@@ -48632,7 +48806,7 @@ var require_unpack = __commonJS({
|
|
|
48632
48806
|
fs2.unlinkSync(name);
|
|
48633
48807
|
}, "unlinkFileSync");
|
|
48634
48808
|
var uint32 = /* @__PURE__ */ __name((a2, b6, c) => a2 === a2 >>> 0 ? a2 : b6 === b6 >>> 0 ? b6 : c, "uint32");
|
|
48635
|
-
var cacheKeyNormalize = /* @__PURE__ */ __name((path6) => stripSlash(normPath(
|
|
48809
|
+
var cacheKeyNormalize = /* @__PURE__ */ __name((path6) => stripSlash(normPath(normalize3(path6))).toLowerCase(), "cacheKeyNormalize");
|
|
48636
48810
|
var pruneCache = /* @__PURE__ */ __name((cache2, abs) => {
|
|
48637
48811
|
abs = cacheKeyNormalize(abs);
|
|
48638
48812
|
for (const path6 of cache2.keys()) {
|
|
@@ -49337,9 +49511,9 @@ var require_extract = __commonJS({
|
|
|
49337
49511
|
const u3 = new Unpack(opt);
|
|
49338
49512
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
49339
49513
|
const file = opt.file;
|
|
49340
|
-
const p2 = new Promise((
|
|
49514
|
+
const p2 = new Promise((resolve4, reject) => {
|
|
49341
49515
|
u3.on("error", reject);
|
|
49342
|
-
u3.on("close",
|
|
49516
|
+
u3.on("close", resolve4);
|
|
49343
49517
|
fs2.stat(file, (er2, stat) => {
|
|
49344
49518
|
if (er2) {
|
|
49345
49519
|
reject(er2);
|
|
@@ -49486,12 +49660,12 @@ var require_isexe = __commonJS({
|
|
|
49486
49660
|
if (typeof Promise !== "function") {
|
|
49487
49661
|
throw new TypeError("callback not provided");
|
|
49488
49662
|
}
|
|
49489
|
-
return new Promise(function(
|
|
49663
|
+
return new Promise(function(resolve4, reject) {
|
|
49490
49664
|
isexe(path5, options || {}, function(er2, is) {
|
|
49491
49665
|
if (er2) {
|
|
49492
49666
|
reject(er2);
|
|
49493
49667
|
} else {
|
|
49494
|
-
|
|
49668
|
+
resolve4(is);
|
|
49495
49669
|
}
|
|
49496
49670
|
});
|
|
49497
49671
|
});
|
|
@@ -49566,25 +49740,25 @@ var require_which = __commonJS({
|
|
|
49566
49740
|
if (!opt) opt = {};
|
|
49567
49741
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
49568
49742
|
const found = [];
|
|
49569
|
-
const step = /* @__PURE__ */ __name((i2) => new Promise((
|
|
49570
|
-
if (i2 === pathEnv.length) return opt.all && found.length ?
|
|
49743
|
+
const step = /* @__PURE__ */ __name((i2) => new Promise((resolve4, reject) => {
|
|
49744
|
+
if (i2 === pathEnv.length) return opt.all && found.length ? resolve4(found) : reject(getNotFoundError(cmd));
|
|
49571
49745
|
const ppRaw = pathEnv[i2];
|
|
49572
49746
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
49573
49747
|
const pCmd = path5.join(pathPart, cmd);
|
|
49574
49748
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
49575
|
-
|
|
49749
|
+
resolve4(subStep(p2, i2, 0));
|
|
49576
49750
|
}), "step");
|
|
49577
|
-
const subStep = /* @__PURE__ */ __name((p2, i2, ii2) => new Promise((
|
|
49578
|
-
if (ii2 === pathExt.length) return
|
|
49751
|
+
const subStep = /* @__PURE__ */ __name((p2, i2, ii2) => new Promise((resolve4, reject) => {
|
|
49752
|
+
if (ii2 === pathExt.length) return resolve4(step(i2 + 1));
|
|
49579
49753
|
const ext = pathExt[ii2];
|
|
49580
49754
|
isexe(p2 + ext, {
|
|
49581
49755
|
pathExt: pathExtExe
|
|
49582
49756
|
}, (er2, is) => {
|
|
49583
49757
|
if (!er2 && is) {
|
|
49584
49758
|
if (opt.all) found.push(p2 + ext);
|
|
49585
|
-
else return
|
|
49759
|
+
else return resolve4(p2 + ext);
|
|
49586
49760
|
}
|
|
49587
|
-
return
|
|
49761
|
+
return resolve4(subStep(p2, i2, ii2 + 1));
|
|
49588
49762
|
});
|
|
49589
49763
|
}), "subStep");
|
|
49590
49764
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -49649,7 +49823,7 @@ var require_resolveCommand = __commonJS({
|
|
|
49649
49823
|
var getPathKey = require_path_key();
|
|
49650
49824
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
49651
49825
|
const env = parsed.options.env || process.env;
|
|
49652
|
-
const
|
|
49826
|
+
const cwd3 = process.cwd();
|
|
49653
49827
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
49654
49828
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
49655
49829
|
if (shouldSwitchCwd) {
|
|
@@ -49669,7 +49843,7 @@ var require_resolveCommand = __commonJS({
|
|
|
49669
49843
|
} catch (e2) {
|
|
49670
49844
|
} finally {
|
|
49671
49845
|
if (shouldSwitchCwd) {
|
|
49672
|
-
process.chdir(
|
|
49846
|
+
process.chdir(cwd3);
|
|
49673
49847
|
}
|
|
49674
49848
|
}
|
|
49675
49849
|
if (resolved) {
|
|
@@ -49817,7 +49991,7 @@ var require_parse2 = __commonJS({
|
|
|
49817
49991
|
return parsed;
|
|
49818
49992
|
}
|
|
49819
49993
|
__name(parseNonShell, "parseNonShell");
|
|
49820
|
-
function
|
|
49994
|
+
function parse7(command, args, options) {
|
|
49821
49995
|
if (args && !Array.isArray(args)) {
|
|
49822
49996
|
options = args;
|
|
49823
49997
|
args = null;
|
|
@@ -49836,8 +50010,8 @@ var require_parse2 = __commonJS({
|
|
|
49836
50010
|
};
|
|
49837
50011
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
49838
50012
|
}
|
|
49839
|
-
__name(
|
|
49840
|
-
module.exports =
|
|
50013
|
+
__name(parse7, "parse");
|
|
50014
|
+
module.exports = parse7;
|
|
49841
50015
|
}
|
|
49842
50016
|
});
|
|
49843
50017
|
|
|
@@ -49902,17 +50076,17 @@ var require_cross_spawn = __commonJS({
|
|
|
49902
50076
|
"use strict";
|
|
49903
50077
|
init_esm_shims();
|
|
49904
50078
|
var cp = __require("child_process");
|
|
49905
|
-
var
|
|
50079
|
+
var parse7 = require_parse2();
|
|
49906
50080
|
var enoent = require_enoent();
|
|
49907
50081
|
function spawn(command, args, options) {
|
|
49908
|
-
const parsed =
|
|
50082
|
+
const parsed = parse7(command, args, options);
|
|
49909
50083
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
49910
50084
|
enoent.hookChildProcess(spawned, parsed);
|
|
49911
50085
|
return spawned;
|
|
49912
50086
|
}
|
|
49913
50087
|
__name(spawn, "spawn");
|
|
49914
50088
|
function spawnSync2(command, args, options) {
|
|
49915
|
-
const parsed =
|
|
50089
|
+
const parsed = parse7(command, args, options);
|
|
49916
50090
|
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
49917
50091
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
49918
50092
|
return result;
|
|
@@ -49921,7 +50095,7 @@ var require_cross_spawn = __commonJS({
|
|
|
49921
50095
|
module.exports = spawn;
|
|
49922
50096
|
module.exports.spawn = spawn;
|
|
49923
50097
|
module.exports.sync = spawnSync2;
|
|
49924
|
-
module.exports._parse =
|
|
50098
|
+
module.exports._parse = parse7;
|
|
49925
50099
|
module.exports._enoent = enoent;
|
|
49926
50100
|
}
|
|
49927
50101
|
});
|
|
@@ -49969,8 +50143,8 @@ var init_npm_run_path = __esm({
|
|
|
49969
50143
|
"../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js"() {
|
|
49970
50144
|
init_esm_shims();
|
|
49971
50145
|
init_path_key();
|
|
49972
|
-
npmRunPath = /* @__PURE__ */ __name(({ cwd:
|
|
49973
|
-
const cwdString =
|
|
50146
|
+
npmRunPath = /* @__PURE__ */ __name(({ cwd: cwd3 = process2.cwd(), path: pathOption = process2.env[pathKey()], preferLocal = true, execPath = process2.execPath, addExecPath = true } = {}) => {
|
|
50147
|
+
const cwdString = cwd3 instanceof URL ? fileURLToPath2(cwd3) : cwd3;
|
|
49974
50148
|
const cwdPath = path3.resolve(cwdString);
|
|
49975
50149
|
const result = [];
|
|
49976
50150
|
if (preferLocal) {
|
|
@@ -50525,7 +50699,7 @@ var init_error = __esm({
|
|
|
50525
50699
|
}
|
|
50526
50700
|
return "failed";
|
|
50527
50701
|
}, "getErrorPrefix");
|
|
50528
|
-
makeError = /* @__PURE__ */ __name(({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd:
|
|
50702
|
+
makeError = /* @__PURE__ */ __name(({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd: cwd3 = process3.cwd() } } }) => {
|
|
50529
50703
|
exitCode = exitCode === null ? void 0 : exitCode;
|
|
50530
50704
|
signal = signal === null ? void 0 : signal;
|
|
50531
50705
|
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
@@ -50562,7 +50736,7 @@ ${error.message}` : execaMessage;
|
|
|
50562
50736
|
error.signalDescription = signalDescription;
|
|
50563
50737
|
error.stdout = stdout;
|
|
50564
50738
|
error.stderr = stderr;
|
|
50565
|
-
error.cwd =
|
|
50739
|
+
error.cwd = cwd3;
|
|
50566
50740
|
if (all !== void 0) {
|
|
50567
50741
|
error.all = all;
|
|
50568
50742
|
}
|
|
@@ -50955,7 +51129,7 @@ var init_kill = __esm({
|
|
|
50955
51129
|
return spawnedPromise;
|
|
50956
51130
|
}
|
|
50957
51131
|
let timeoutId;
|
|
50958
|
-
const timeoutPromise = new Promise((
|
|
51132
|
+
const timeoutPromise = new Promise((resolve4, reject) => {
|
|
50959
51133
|
timeoutId = setTimeout(() => {
|
|
50960
51134
|
timeoutKill(spawned, killSignal, reject);
|
|
50961
51135
|
}, timeout);
|
|
@@ -51523,9 +51697,9 @@ var init_promise = __esm({
|
|
|
51523
51697
|
});
|
|
51524
51698
|
}
|
|
51525
51699
|
}, "mergePromise");
|
|
51526
|
-
getSpawnedPromise = /* @__PURE__ */ __name((spawned) => new Promise((
|
|
51700
|
+
getSpawnedPromise = /* @__PURE__ */ __name((spawned) => new Promise((resolve4, reject) => {
|
|
51527
51701
|
spawned.on("exit", (exitCode, signal) => {
|
|
51528
|
-
|
|
51702
|
+
resolve4({
|
|
51529
51703
|
exitCode,
|
|
51530
51704
|
signal
|
|
51531
51705
|
});
|
|
@@ -51958,8 +52132,8 @@ var init_execa = __esm({
|
|
|
51958
52132
|
// ../../node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs
|
|
51959
52133
|
import { existsSync as existsSync2 } from "node:fs";
|
|
51960
52134
|
import { readFile } from "node:fs/promises";
|
|
51961
|
-
async function findup(
|
|
51962
|
-
const segments = normalize(
|
|
52135
|
+
async function findup(cwd3, match, options = {}) {
|
|
52136
|
+
const segments = normalize(cwd3).split("/");
|
|
51963
52137
|
while (segments.length > 0) {
|
|
51964
52138
|
const path5 = segments.join("/") || "/";
|
|
51965
52139
|
const result = await match(path5);
|
|
@@ -51990,13 +52164,13 @@ async function executeCommand(command, args, options = {}) {
|
|
|
51990
52164
|
});
|
|
51991
52165
|
}
|
|
51992
52166
|
async function resolveOperationOptions(options = {}) {
|
|
51993
|
-
const
|
|
52167
|
+
const cwd3 = options.cwd || process.cwd();
|
|
51994
52168
|
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
51995
52169
|
if (!packageManager) {
|
|
51996
52170
|
throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
51997
52171
|
}
|
|
51998
52172
|
return {
|
|
51999
|
-
cwd:
|
|
52173
|
+
cwd: cwd3,
|
|
52000
52174
|
silent: options.silent ?? false,
|
|
52001
52175
|
packageManager,
|
|
52002
52176
|
dev: options.dev ?? false,
|
|
@@ -52004,9 +52178,9 @@ async function resolveOperationOptions(options = {}) {
|
|
|
52004
52178
|
global: options.global ?? false
|
|
52005
52179
|
};
|
|
52006
52180
|
}
|
|
52007
|
-
async function detectPackageManager(
|
|
52181
|
+
async function detectPackageManager(cwd3, options = {}) {
|
|
52008
52182
|
const detected = await findup(
|
|
52009
|
-
resolve(
|
|
52183
|
+
resolve(cwd3 || "."),
|
|
52010
52184
|
async (path5) => {
|
|
52011
52185
|
if (!options.ignorePackageJSON) {
|
|
52012
52186
|
const packageJSONPath = join(path5, "package.json");
|
|
@@ -52076,7 +52250,7 @@ async function installDependencies(options = {}) {
|
|
|
52076
52250
|
});
|
|
52077
52251
|
}
|
|
52078
52252
|
var importExeca, hasCorepack, NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG, packageManagers;
|
|
52079
|
-
var
|
|
52253
|
+
var init_dist7 = __esm({
|
|
52080
52254
|
"../../node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs"() {
|
|
52081
52255
|
init_esm_shims();
|
|
52082
52256
|
init_dist();
|
|
@@ -63154,10 +63328,10 @@ ${f2.toString(16)}\r
|
|
|
63154
63328
|
}
|
|
63155
63329
|
__name(requireUtil$2, "requireUtil$2");
|
|
63156
63330
|
Q5(requireUtil$2, "requireUtil$2");
|
|
63157
|
-
var
|
|
63331
|
+
var parse7;
|
|
63158
63332
|
var hasRequiredParse;
|
|
63159
63333
|
function requireParse() {
|
|
63160
|
-
if (hasRequiredParse) return
|
|
63334
|
+
if (hasRequiredParse) return parse7;
|
|
63161
63335
|
hasRequiredParse = 1;
|
|
63162
63336
|
const { maxNameValuePairSize: e2, maxAttributeValueSize: A2 } = requireConstants$1(), { isCTLExcludingHtab: t2 } = requireUtil$2(), { collectASequenceOfCodePointsFast: r4 } = requireDataUrl(), n = require$$0__default;
|
|
63163
63337
|
function o(l2) {
|
|
@@ -63212,7 +63386,7 @@ ${f2.toString(16)}\r
|
|
|
63212
63386
|
return B3(l2, C4);
|
|
63213
63387
|
}
|
|
63214
63388
|
__name(B3, "B");
|
|
63215
|
-
return Q5(B3, "parseUnparsedAttributes"),
|
|
63389
|
+
return Q5(B3, "parseUnparsedAttributes"), parse7 = { parseSetCookie: o, parseUnparsedAttributes: B3 }, parse7;
|
|
63216
63390
|
}
|
|
63217
63391
|
__name(requireParse, "requireParse");
|
|
63218
63392
|
Q5(requireParse, "requireParse");
|
|
@@ -65029,14 +65203,14 @@ function currentShell() {
|
|
|
65029
65203
|
}
|
|
65030
65204
|
return "/bin/bash";
|
|
65031
65205
|
}
|
|
65032
|
-
function startShell(
|
|
65033
|
-
|
|
65206
|
+
function startShell(cwd3) {
|
|
65207
|
+
cwd3 = resolve(cwd3);
|
|
65034
65208
|
const shell = currentShell();
|
|
65035
65209
|
console.info(
|
|
65036
|
-
`(experimental) Opening shell in ${relative(process.cwd(),
|
|
65210
|
+
`(experimental) Opening shell in ${relative(process.cwd(), cwd3)}...`
|
|
65037
65211
|
);
|
|
65038
65212
|
spawnSync(shell, [], {
|
|
65039
|
-
cwd:
|
|
65213
|
+
cwd: cwd3,
|
|
65040
65214
|
shell: true,
|
|
65041
65215
|
stdio: "inherit"
|
|
65042
65216
|
});
|
|
@@ -65111,8 +65285,8 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65111
65285
|
`Tarball not found: ${tarPath} (offline: ${options.offline})`
|
|
65112
65286
|
);
|
|
65113
65287
|
}
|
|
65114
|
-
const
|
|
65115
|
-
const extractPath = resolve(
|
|
65288
|
+
const cwd3 = resolve(options.cwd || ".");
|
|
65289
|
+
const extractPath = resolve(cwd3, options.dir || template.defaultDir);
|
|
65116
65290
|
if (options.forceClean) {
|
|
65117
65291
|
await rm(extractPath, { recursive: true, force: true });
|
|
65118
65292
|
}
|
|
@@ -65151,13 +65325,13 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65151
65325
|
};
|
|
65152
65326
|
}
|
|
65153
65327
|
var import_tar, import_proxy, inputRegex, http, _httpJSON, github, gitlab, bitbucket, sourcehut, providers, DEFAULT_REGISTRY, registryProvider, sourceProtoRe;
|
|
65154
|
-
var
|
|
65328
|
+
var init_dist8 = __esm({
|
|
65155
65329
|
"../../node_modules/.pnpm/giget@1.2.3/node_modules/giget/dist/index.mjs"() {
|
|
65156
65330
|
init_esm_shims();
|
|
65157
65331
|
import_tar = __toESM(require_tar(), 1);
|
|
65158
65332
|
init_dist();
|
|
65159
65333
|
init_defu();
|
|
65160
|
-
|
|
65334
|
+
init_dist7();
|
|
65161
65335
|
import_proxy = __toESM(require_proxy(), 1);
|
|
65162
65336
|
__name(download, "download");
|
|
65163
65337
|
inputRegex = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w./@-]+)?/;
|
|
@@ -65439,12 +65613,12 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
65439
65613
|
}
|
|
65440
65614
|
function __awaiter(thisArg, _arguments, P5, generator) {
|
|
65441
65615
|
function adopt(value2) {
|
|
65442
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
65443
|
-
|
|
65616
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
65617
|
+
resolve4(value2);
|
|
65444
65618
|
});
|
|
65445
65619
|
}
|
|
65446
65620
|
__name(adopt, "adopt");
|
|
65447
|
-
return new (P5 || (P5 = Promise))(function(
|
|
65621
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject) {
|
|
65448
65622
|
function fulfilled(value2) {
|
|
65449
65623
|
try {
|
|
65450
65624
|
step(generator.next(value2));
|
|
@@ -65462,7 +65636,7 @@ function __awaiter(thisArg, _arguments, P5, generator) {
|
|
|
65462
65636
|
}
|
|
65463
65637
|
__name(rejected, "rejected");
|
|
65464
65638
|
function step(result) {
|
|
65465
|
-
result.done ?
|
|
65639
|
+
result.done ? resolve4(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
65466
65640
|
}
|
|
65467
65641
|
__name(step, "step");
|
|
65468
65642
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -65664,15 +65838,15 @@ function __asyncValues(o) {
|
|
|
65664
65838
|
}, i2);
|
|
65665
65839
|
function verb(n) {
|
|
65666
65840
|
i2[n] = o[n] && function(v4) {
|
|
65667
|
-
return new Promise(function(
|
|
65668
|
-
v4 = o[n](v4), settle(
|
|
65841
|
+
return new Promise(function(resolve4, reject) {
|
|
65842
|
+
v4 = o[n](v4), settle(resolve4, reject, v4.done, v4.value);
|
|
65669
65843
|
});
|
|
65670
65844
|
};
|
|
65671
65845
|
}
|
|
65672
65846
|
__name(verb, "verb");
|
|
65673
|
-
function settle(
|
|
65847
|
+
function settle(resolve4, reject, d4, v4) {
|
|
65674
65848
|
Promise.resolve(v4).then(function(v5) {
|
|
65675
|
-
|
|
65849
|
+
resolve4({ value: v5, done: d4 });
|
|
65676
65850
|
}, reject);
|
|
65677
65851
|
}
|
|
65678
65852
|
__name(settle, "settle");
|
|
@@ -66515,11 +66689,11 @@ var require_ejs = __commonJS({
|
|
|
66515
66689
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
66516
66690
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
66517
66691
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
66518
|
-
var
|
|
66519
|
-
var
|
|
66520
|
-
var
|
|
66521
|
-
var includePath =
|
|
66522
|
-
var ext =
|
|
66692
|
+
var dirname4 = path5.dirname;
|
|
66693
|
+
var extname4 = path5.extname;
|
|
66694
|
+
var resolve4 = path5.resolve;
|
|
66695
|
+
var includePath = resolve4(isDir ? filename : dirname4(filename), name);
|
|
66696
|
+
var ext = extname4(name);
|
|
66523
66697
|
if (!ext) {
|
|
66524
66698
|
includePath += ".ejs";
|
|
66525
66699
|
}
|
|
@@ -66596,10 +66770,10 @@ var require_ejs = __commonJS({
|
|
|
66596
66770
|
var result;
|
|
66597
66771
|
if (!cb) {
|
|
66598
66772
|
if (typeof exports.promiseImpl == "function") {
|
|
66599
|
-
return new exports.promiseImpl(function(
|
|
66773
|
+
return new exports.promiseImpl(function(resolve4, reject) {
|
|
66600
66774
|
try {
|
|
66601
66775
|
result = handleCache(options)(data2);
|
|
66602
|
-
|
|
66776
|
+
resolve4(result);
|
|
66603
66777
|
} catch (err) {
|
|
66604
66778
|
reject(err);
|
|
66605
66779
|
}
|
|
@@ -66882,10 +67056,10 @@ var require_ejs = __commonJS({
|
|
|
66882
67056
|
}, "anonymous");
|
|
66883
67057
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
66884
67058
|
var filename = opts.filename;
|
|
66885
|
-
var
|
|
67059
|
+
var basename3 = path5.basename(filename, path5.extname(filename));
|
|
66886
67060
|
try {
|
|
66887
67061
|
Object.defineProperty(returnedFn, "name", {
|
|
66888
|
-
value:
|
|
67062
|
+
value: basename3,
|
|
66889
67063
|
writable: false,
|
|
66890
67064
|
enumerable: false,
|
|
66891
67065
|
configurable: true
|
|
@@ -67587,7 +67761,7 @@ var require_parse3 = __commonJS({
|
|
|
67587
67761
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports, module) {
|
|
67588
67762
|
init_esm_shims();
|
|
67589
67763
|
var SemVer = require_semver();
|
|
67590
|
-
var
|
|
67764
|
+
var parse7 = /* @__PURE__ */ __name((version2, options, throwErrors = false) => {
|
|
67591
67765
|
if (version2 instanceof SemVer) {
|
|
67592
67766
|
return version2;
|
|
67593
67767
|
}
|
|
@@ -67600,7 +67774,7 @@ var require_parse3 = __commonJS({
|
|
|
67600
67774
|
throw er2;
|
|
67601
67775
|
}
|
|
67602
67776
|
}, "parse");
|
|
67603
|
-
module.exports =
|
|
67777
|
+
module.exports = parse7;
|
|
67604
67778
|
}
|
|
67605
67779
|
});
|
|
67606
67780
|
|
|
@@ -67608,9 +67782,9 @@ var require_parse3 = __commonJS({
|
|
|
67608
67782
|
var require_valid = __commonJS({
|
|
67609
67783
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports, module) {
|
|
67610
67784
|
init_esm_shims();
|
|
67611
|
-
var
|
|
67785
|
+
var parse7 = require_parse3();
|
|
67612
67786
|
var valid = /* @__PURE__ */ __name((version2, options) => {
|
|
67613
|
-
const v4 =
|
|
67787
|
+
const v4 = parse7(version2, options);
|
|
67614
67788
|
return v4 ? v4.version : null;
|
|
67615
67789
|
}, "valid");
|
|
67616
67790
|
module.exports = valid;
|
|
@@ -67621,9 +67795,9 @@ var require_valid = __commonJS({
|
|
|
67621
67795
|
var require_clean = __commonJS({
|
|
67622
67796
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports, module) {
|
|
67623
67797
|
init_esm_shims();
|
|
67624
|
-
var
|
|
67798
|
+
var parse7 = require_parse3();
|
|
67625
67799
|
var clean = /* @__PURE__ */ __name((version2, options) => {
|
|
67626
|
-
const s2 =
|
|
67800
|
+
const s2 = parse7(version2.trim().replace(/^[=v]+/, ""), options);
|
|
67627
67801
|
return s2 ? s2.version : null;
|
|
67628
67802
|
}, "clean");
|
|
67629
67803
|
module.exports = clean;
|
|
@@ -67655,10 +67829,10 @@ var require_inc = __commonJS({
|
|
|
67655
67829
|
var require_diff = __commonJS({
|
|
67656
67830
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js"(exports, module) {
|
|
67657
67831
|
init_esm_shims();
|
|
67658
|
-
var
|
|
67832
|
+
var parse7 = require_parse3();
|
|
67659
67833
|
var diff = /* @__PURE__ */ __name((version1, version2) => {
|
|
67660
|
-
const v1 =
|
|
67661
|
-
const v22 =
|
|
67834
|
+
const v1 = parse7(version1, null, true);
|
|
67835
|
+
const v22 = parse7(version2, null, true);
|
|
67662
67836
|
const comparison = v1.compare(v22);
|
|
67663
67837
|
if (comparison === 0) {
|
|
67664
67838
|
return null;
|
|
@@ -67730,9 +67904,9 @@ var require_patch = __commonJS({
|
|
|
67730
67904
|
var require_prerelease = __commonJS({
|
|
67731
67905
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
67732
67906
|
init_esm_shims();
|
|
67733
|
-
var
|
|
67907
|
+
var parse7 = require_parse3();
|
|
67734
67908
|
var prerelease = /* @__PURE__ */ __name((version2, options) => {
|
|
67735
|
-
const parsed =
|
|
67909
|
+
const parsed = parse7(version2, options);
|
|
67736
67910
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
67737
67911
|
}, "prerelease");
|
|
67738
67912
|
module.exports = prerelease;
|
|
@@ -67918,7 +68092,7 @@ var require_coerce = __commonJS({
|
|
|
67918
68092
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
67919
68093
|
init_esm_shims();
|
|
67920
68094
|
var SemVer = require_semver();
|
|
67921
|
-
var
|
|
68095
|
+
var parse7 = require_parse3();
|
|
67922
68096
|
var { safeRe: re3, t: t2 } = require_re();
|
|
67923
68097
|
var coerce2 = /* @__PURE__ */ __name((version2, options) => {
|
|
67924
68098
|
if (version2 instanceof SemVer) {
|
|
@@ -67953,7 +68127,7 @@ var require_coerce = __commonJS({
|
|
|
67953
68127
|
const patch = match[4] || "0";
|
|
67954
68128
|
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
67955
68129
|
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
67956
|
-
return
|
|
68130
|
+
return parse7(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
67957
68131
|
}, "coerce");
|
|
67958
68132
|
module.exports = coerce2;
|
|
67959
68133
|
}
|
|
@@ -68976,7 +69150,7 @@ var require_semver2 = __commonJS({
|
|
|
68976
69150
|
var constants3 = require_constants2();
|
|
68977
69151
|
var SemVer = require_semver();
|
|
68978
69152
|
var identifiers = require_identifiers();
|
|
68979
|
-
var
|
|
69153
|
+
var parse7 = require_parse3();
|
|
68980
69154
|
var valid = require_valid();
|
|
68981
69155
|
var clean = require_clean();
|
|
68982
69156
|
var inc = require_inc();
|
|
@@ -69014,7 +69188,7 @@ var require_semver2 = __commonJS({
|
|
|
69014
69188
|
var simplifyRange = require_simplify();
|
|
69015
69189
|
var subset = require_subset();
|
|
69016
69190
|
module.exports = {
|
|
69017
|
-
parse:
|
|
69191
|
+
parse: parse7,
|
|
69018
69192
|
valid,
|
|
69019
69193
|
clean,
|
|
69020
69194
|
inc,
|
|
@@ -69075,17 +69249,17 @@ var require_install_packages_task = __commonJS({
|
|
|
69075
69249
|
var child_process_1 = __require("child_process");
|
|
69076
69250
|
var path_1 = __require("path");
|
|
69077
69251
|
var devkit_exports_1 = __require("nx/src/devkit-exports");
|
|
69078
|
-
function installPackagesTask(tree, alwaysRun = false,
|
|
69079
|
-
if (!tree.listChanges().find((f2) => f2.path === (0, devkit_exports_1.joinPathFragments)(
|
|
69252
|
+
function installPackagesTask(tree, alwaysRun = false, cwd3 = "", packageManager = (0, devkit_exports_1.detectPackageManager)((0, path_1.join)(tree.root, cwd3))) {
|
|
69253
|
+
if (!tree.listChanges().find((f2) => f2.path === (0, devkit_exports_1.joinPathFragments)(cwd3, "package.json")) && !alwaysRun) {
|
|
69080
69254
|
return;
|
|
69081
69255
|
}
|
|
69082
|
-
const packageJsonValue = tree.read((0, devkit_exports_1.joinPathFragments)(
|
|
69256
|
+
const packageJsonValue = tree.read((0, devkit_exports_1.joinPathFragments)(cwd3, "package.json"), "utf-8");
|
|
69083
69257
|
let storedPackageJsonValue = global["__packageJsonInstallCache__"];
|
|
69084
69258
|
if (storedPackageJsonValue != packageJsonValue || alwaysRun) {
|
|
69085
69259
|
global["__packageJsonInstallCache__"] = packageJsonValue;
|
|
69086
69260
|
const pmc = (0, devkit_exports_1.getPackageManagerCommand)(packageManager);
|
|
69087
69261
|
const execSyncOptions = {
|
|
69088
|
-
cwd: (0, path_1.join)(tree.root,
|
|
69262
|
+
cwd: (0, path_1.join)(tree.root, cwd3),
|
|
69089
69263
|
stdio: process.env.NX_GENERATE_QUIET === "true" ? "ignore" : "inherit",
|
|
69090
69264
|
windowsHide: false
|
|
69091
69265
|
};
|
|
@@ -69404,8 +69578,8 @@ var require_tmp = __commonJS({
|
|
|
69404
69578
|
function _assertIsRelative(name, option, tmpDir) {
|
|
69405
69579
|
if (option === "name") {
|
|
69406
69580
|
if (path5.isAbsolute(name)) throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
69407
|
-
let
|
|
69408
|
-
if (
|
|
69581
|
+
let basename3 = path5.basename(name);
|
|
69582
|
+
if (basename3 === ".." || basename3 === "." || basename3 !== name) throw new Error(`${option} option must not contain a path, found "${name}".`);
|
|
69409
69583
|
} else {
|
|
69410
69584
|
if (path5.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
|
69411
69585
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
|
@@ -71573,7 +71747,7 @@ var require_Observable = __commonJS({
|
|
|
71573
71747
|
Observable2.prototype.forEach = function(next, promiseCtor) {
|
|
71574
71748
|
var _this = this;
|
|
71575
71749
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
71576
|
-
return new promiseCtor(function(
|
|
71750
|
+
return new promiseCtor(function(resolve4, reject) {
|
|
71577
71751
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
71578
71752
|
next: /* @__PURE__ */ __name(function(value2) {
|
|
71579
71753
|
try {
|
|
@@ -71584,7 +71758,7 @@ var require_Observable = __commonJS({
|
|
|
71584
71758
|
}
|
|
71585
71759
|
}, "next"),
|
|
71586
71760
|
error: reject,
|
|
71587
|
-
complete:
|
|
71761
|
+
complete: resolve4
|
|
71588
71762
|
});
|
|
71589
71763
|
_this.subscribe(subscriber);
|
|
71590
71764
|
});
|
|
@@ -71606,14 +71780,14 @@ var require_Observable = __commonJS({
|
|
|
71606
71780
|
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
71607
71781
|
var _this = this;
|
|
71608
71782
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
71609
|
-
return new promiseCtor(function(
|
|
71783
|
+
return new promiseCtor(function(resolve4, reject) {
|
|
71610
71784
|
var value2;
|
|
71611
71785
|
_this.subscribe(function(x4) {
|
|
71612
71786
|
return value2 = x4;
|
|
71613
71787
|
}, function(err) {
|
|
71614
71788
|
return reject(err);
|
|
71615
71789
|
}, function() {
|
|
71616
|
-
return
|
|
71790
|
+
return resolve4(value2);
|
|
71617
71791
|
});
|
|
71618
71792
|
});
|
|
71619
71793
|
};
|
|
@@ -73996,12 +74170,12 @@ var require_innerFrom = __commonJS({
|
|
|
73996
74170
|
init_esm_shims();
|
|
73997
74171
|
var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
73998
74172
|
function adopt(value2) {
|
|
73999
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
74000
|
-
|
|
74173
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
74174
|
+
resolve4(value2);
|
|
74001
74175
|
});
|
|
74002
74176
|
}
|
|
74003
74177
|
__name(adopt, "adopt");
|
|
74004
|
-
return new (P5 || (P5 = Promise))(function(
|
|
74178
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject) {
|
|
74005
74179
|
function fulfilled(value2) {
|
|
74006
74180
|
try {
|
|
74007
74181
|
step(generator.next(value2));
|
|
@@ -74019,7 +74193,7 @@ var require_innerFrom = __commonJS({
|
|
|
74019
74193
|
}
|
|
74020
74194
|
__name(rejected, "rejected");
|
|
74021
74195
|
function step(result) {
|
|
74022
|
-
result.done ?
|
|
74196
|
+
result.done ? resolve4(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
74023
74197
|
}
|
|
74024
74198
|
__name(step, "step");
|
|
74025
74199
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -74130,15 +74304,15 @@ var require_innerFrom = __commonJS({
|
|
|
74130
74304
|
}, i2);
|
|
74131
74305
|
function verb(n) {
|
|
74132
74306
|
i2[n] = o[n] && function(v4) {
|
|
74133
|
-
return new Promise(function(
|
|
74134
|
-
v4 = o[n](v4), settle(
|
|
74307
|
+
return new Promise(function(resolve4, reject) {
|
|
74308
|
+
v4 = o[n](v4), settle(resolve4, reject, v4.done, v4.value);
|
|
74135
74309
|
});
|
|
74136
74310
|
};
|
|
74137
74311
|
}
|
|
74138
74312
|
__name(verb, "verb");
|
|
74139
|
-
function settle(
|
|
74313
|
+
function settle(resolve4, reject, d4, v4) {
|
|
74140
74314
|
Promise.resolve(v4).then(function(v5) {
|
|
74141
|
-
|
|
74315
|
+
resolve4({
|
|
74142
74316
|
value: v5,
|
|
74143
74317
|
done: d4
|
|
74144
74318
|
});
|
|
@@ -74887,7 +75061,7 @@ var require_lastValueFrom = __commonJS({
|
|
|
74887
75061
|
var EmptyError_1 = require_EmptyError();
|
|
74888
75062
|
function lastValueFrom(source, config) {
|
|
74889
75063
|
var hasConfig = typeof config === "object";
|
|
74890
|
-
return new Promise(function(
|
|
75064
|
+
return new Promise(function(resolve4, reject) {
|
|
74891
75065
|
var _hasValue = false;
|
|
74892
75066
|
var _value;
|
|
74893
75067
|
source.subscribe({
|
|
@@ -74898,9 +75072,9 @@ var require_lastValueFrom = __commonJS({
|
|
|
74898
75072
|
error: reject,
|
|
74899
75073
|
complete: /* @__PURE__ */ __name(function() {
|
|
74900
75074
|
if (_hasValue) {
|
|
74901
|
-
|
|
75075
|
+
resolve4(_value);
|
|
74902
75076
|
} else if (hasConfig) {
|
|
74903
|
-
|
|
75077
|
+
resolve4(config.defaultValue);
|
|
74904
75078
|
} else {
|
|
74905
75079
|
reject(new EmptyError_1.EmptyError());
|
|
74906
75080
|
}
|
|
@@ -74926,16 +75100,16 @@ var require_firstValueFrom = __commonJS({
|
|
|
74926
75100
|
var Subscriber_1 = require_Subscriber();
|
|
74927
75101
|
function firstValueFrom(source, config) {
|
|
74928
75102
|
var hasConfig = typeof config === "object";
|
|
74929
|
-
return new Promise(function(
|
|
75103
|
+
return new Promise(function(resolve4, reject) {
|
|
74930
75104
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
74931
75105
|
next: /* @__PURE__ */ __name(function(value2) {
|
|
74932
|
-
|
|
75106
|
+
resolve4(value2);
|
|
74933
75107
|
subscriber.unsubscribe();
|
|
74934
75108
|
}, "next"),
|
|
74935
75109
|
error: reject,
|
|
74936
75110
|
complete: /* @__PURE__ */ __name(function() {
|
|
74937
75111
|
if (hasConfig) {
|
|
74938
|
-
|
|
75112
|
+
resolve4(config.defaultValue);
|
|
74939
75113
|
} else {
|
|
74940
75114
|
reject(new EmptyError_1.EmptyError());
|
|
74941
75115
|
}
|
|
@@ -84919,12 +85093,12 @@ function createJiti(id, opts = {}) {
|
|
|
84919
85093
|
__name(createJiti, "createJiti");
|
|
84920
85094
|
|
|
84921
85095
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
84922
|
-
|
|
85096
|
+
init_dist6();
|
|
84923
85097
|
|
|
84924
85098
|
// ../../node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
84925
85099
|
init_esm_shims();
|
|
84926
85100
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
84927
|
-
import { resolve as
|
|
85101
|
+
import { resolve as resolve3 } from "node:path";
|
|
84928
85102
|
import { homedir } from "node:os";
|
|
84929
85103
|
|
|
84930
85104
|
// ../../node_modules/.pnpm/destr@2.0.3/node_modules/destr/dist/index.mjs
|
|
@@ -85129,7 +85303,7 @@ function withDefaults(options) {
|
|
|
85129
85303
|
return { ...defaults, ...options };
|
|
85130
85304
|
}
|
|
85131
85305
|
__name(withDefaults, "withDefaults");
|
|
85132
|
-
function
|
|
85306
|
+
function parse5(contents, options = {}) {
|
|
85133
85307
|
const config = {};
|
|
85134
85308
|
const lines = contents.split(RE_LINES);
|
|
85135
85309
|
for (const line of lines) {
|
|
@@ -85154,17 +85328,17 @@ function parse4(contents, options = {}) {
|
|
|
85154
85328
|
}
|
|
85155
85329
|
return options.flat ? config : unflatten(config, { overwrite: true });
|
|
85156
85330
|
}
|
|
85157
|
-
__name(
|
|
85331
|
+
__name(parse5, "parse");
|
|
85158
85332
|
function parseFile(path5, options) {
|
|
85159
85333
|
if (!existsSync(path5)) {
|
|
85160
85334
|
return {};
|
|
85161
85335
|
}
|
|
85162
|
-
return
|
|
85336
|
+
return parse5(readFileSync(path5, "utf8"), options);
|
|
85163
85337
|
}
|
|
85164
85338
|
__name(parseFile, "parseFile");
|
|
85165
85339
|
function read2(options) {
|
|
85166
85340
|
options = withDefaults(options);
|
|
85167
|
-
return parseFile(
|
|
85341
|
+
return parseFile(resolve3(options.dir, options.name), options);
|
|
85168
85342
|
}
|
|
85169
85343
|
__name(read2, "read");
|
|
85170
85344
|
function readUser(options) {
|
|
@@ -85820,7 +85994,7 @@ function hash(object, options = {}) {
|
|
|
85820
85994
|
__name(hash, "hash");
|
|
85821
85995
|
|
|
85822
85996
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
85823
|
-
|
|
85997
|
+
init_dist5();
|
|
85824
85998
|
var dotenv = __toESM(require_main(), 1);
|
|
85825
85999
|
async function setupDotenv(options) {
|
|
85826
86000
|
const targetEnvironment = options.env ?? process.env;
|
|
@@ -85855,7 +86029,7 @@ async function loadDotenv(options) {
|
|
|
85855
86029
|
return environment;
|
|
85856
86030
|
}
|
|
85857
86031
|
__name(loadDotenv, "loadDotenv");
|
|
85858
|
-
function interpolate(target, source = {},
|
|
86032
|
+
function interpolate(target, source = {}, parse7 = (v4) => v4) {
|
|
85859
86033
|
function getValue(key) {
|
|
85860
86034
|
return source[key] === void 0 ? target[key] : source[key];
|
|
85861
86035
|
}
|
|
@@ -85865,7 +86039,7 @@ function interpolate(target, source = {}, parse6 = (v4) => v4) {
|
|
|
85865
86039
|
return value2;
|
|
85866
86040
|
}
|
|
85867
86041
|
const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
|
|
85868
|
-
return
|
|
86042
|
+
return parse7(
|
|
85869
86043
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
85870
86044
|
matches.reduce((newValue, match) => {
|
|
85871
86045
|
const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
|
|
@@ -86103,7 +86277,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
86103
86277
|
}
|
|
86104
86278
|
const _merger = options.merger || defu;
|
|
86105
86279
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
86106
|
-
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (
|
|
86280
|
+
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist8(), dist_exports));
|
|
86107
86281
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
86108
86282
|
let cloneDir;
|
|
86109
86283
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -86137,18 +86311,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
86137
86311
|
}
|
|
86138
86312
|
const ext = extname(source);
|
|
86139
86313
|
const isDir = !ext || ext === basename(source);
|
|
86140
|
-
const
|
|
86314
|
+
const cwd3 = resolve(options.cwd, isDir ? source : dirname(source));
|
|
86141
86315
|
if (isDir) {
|
|
86142
86316
|
source = options.configFile;
|
|
86143
86317
|
}
|
|
86144
86318
|
const res = {
|
|
86145
86319
|
config: void 0,
|
|
86146
86320
|
configFile: void 0,
|
|
86147
|
-
cwd:
|
|
86321
|
+
cwd: cwd3,
|
|
86148
86322
|
source,
|
|
86149
86323
|
sourceOptions
|
|
86150
86324
|
};
|
|
86151
|
-
res.configFile = tryResolve(resolve(
|
|
86325
|
+
res.configFile = tryResolve(resolve(cwd3, source)) || tryResolve(resolve(cwd3, ".config", source.replace(/\.config$/, ""))) || tryResolve(resolve(cwd3, ".config", source)) || source;
|
|
86152
86326
|
if (!existsSync4(res.configFile)) {
|
|
86153
86327
|
return res;
|
|
86154
86328
|
}
|
|
@@ -90591,7 +90765,7 @@ var COLOR_KEYS = [
|
|
|
90591
90765
|
|
|
90592
90766
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
90593
90767
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
90594
|
-
import { join as
|
|
90768
|
+
import { join as join4 } from "node:path";
|
|
90595
90769
|
|
|
90596
90770
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
90597
90771
|
init_esm_shims();
|
|
@@ -90618,16 +90792,16 @@ var joinPaths = /* @__PURE__ */ __name((...paths) => {
|
|
|
90618
90792
|
// ../config-tools/src/utilities/find-up.ts
|
|
90619
90793
|
init_esm_shims();
|
|
90620
90794
|
import { existsSync as existsSync5 } from "node:fs";
|
|
90621
|
-
import { join as
|
|
90795
|
+
import { join as join3 } from "node:path";
|
|
90622
90796
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
90623
90797
|
var depth = 0;
|
|
90624
90798
|
function findFolderUp(startPath, endFileNames) {
|
|
90625
90799
|
const _startPath = startPath ?? process.cwd();
|
|
90626
|
-
if (endFileNames.some((endFileName) => existsSync5(
|
|
90800
|
+
if (endFileNames.some((endFileName) => existsSync5(join3(_startPath, endFileName)))) {
|
|
90627
90801
|
return _startPath;
|
|
90628
90802
|
}
|
|
90629
90803
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
90630
|
-
const parent =
|
|
90804
|
+
const parent = join3(_startPath, "..");
|
|
90631
90805
|
return findFolderUp(parent, endFileNames);
|
|
90632
90806
|
}
|
|
90633
90807
|
return void 0;
|
|
@@ -90724,8 +90898,8 @@ var getDefaultConfig = /* @__PURE__ */ __name((root) => {
|
|
|
90724
90898
|
let namespace;
|
|
90725
90899
|
let repository;
|
|
90726
90900
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
90727
|
-
if (existsSync6(
|
|
90728
|
-
const file = readFileSync3(
|
|
90901
|
+
if (existsSync6(join4(workspaceRoot, "package.json"))) {
|
|
90902
|
+
const file = readFileSync3(join4(workspaceRoot, "package.json"), {
|
|
90729
90903
|
encoding: "utf8"
|
|
90730
90904
|
});
|
|
90731
90905
|
if (file) {
|
|
@@ -90957,9 +91131,9 @@ Stacktrace: ${error.stack}`, config);
|
|
|
90957
91131
|
init_esm_shims();
|
|
90958
91132
|
import { exec, execSync } from "node:child_process";
|
|
90959
91133
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
90960
|
-
var run = /* @__PURE__ */ __name((config, command,
|
|
91134
|
+
var run = /* @__PURE__ */ __name((config, command, cwd3 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
|
|
90961
91135
|
return execSync(command, {
|
|
90962
|
-
cwd:
|
|
91136
|
+
cwd: cwd3,
|
|
90963
91137
|
env: {
|
|
90964
91138
|
...process.env,
|
|
90965
91139
|
...env,
|