@storm-software/workspace-tools 1.226.2 → 1.227.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/index.js +1975 -1778
- package/meta.json +3523 -3377
- package/package.json +1 -1
- package/src/base/base-executor.js +544 -375
- package/src/base/base-generator.js +544 -375
- package/src/base/index.js +544 -375
- package/src/executors/cargo-build/executor.js +547 -378
- package/src/executors/cargo-check/executor.js +547 -378
- package/src/executors/cargo-clippy/executor.js +547 -378
- package/src/executors/cargo-doc/executor.js +549 -380
- package/src/executors/cargo-format/executor.js +547 -378
- package/src/executors/clean-package/executor.js +613 -444
- package/src/executors/esbuild/executor.js +1183 -1014
- package/src/executors/size-limit/executor.js +550 -381
- package/src/executors/typia/executor.js +1243 -1046
- package/src/executors/unbuild/executor.js +649 -480
- package/src/generators/browser-library/generator.js +544 -375
- package/src/generators/config-schema/generator.js +544 -375
- package/src/generators/neutral-library/generator.js +544 -375
- package/src/generators/node-library/generator.js +544 -375
- package/src/generators/preset/generator.js +544 -375
- package/src/generators/release-version/generator.js +580 -411
- package/src/plugins/typescript/index.js +61 -59
- package/src/utils/index.js +658 -630
|
@@ -1680,7 +1680,7 @@ var require_path_parse = __commonJS({
|
|
|
1680
1680
|
var require_node_modules_paths = __commonJS({
|
|
1681
1681
|
"node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/node-modules-paths.js"(exports2, module2) {
|
|
1682
1682
|
var path7 = require("path");
|
|
1683
|
-
var
|
|
1683
|
+
var parse7 = path7.parse || require_path_parse();
|
|
1684
1684
|
var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
|
|
1685
1685
|
var prefix = "/";
|
|
1686
1686
|
if (/^([A-Za-z]:)/.test(absoluteStart)) {
|
|
@@ -1689,10 +1689,10 @@ var require_node_modules_paths = __commonJS({
|
|
|
1689
1689
|
prefix = "\\\\";
|
|
1690
1690
|
}
|
|
1691
1691
|
var paths = [absoluteStart];
|
|
1692
|
-
var parsed =
|
|
1692
|
+
var parsed = parse7(absoluteStart);
|
|
1693
1693
|
while (parsed.dir !== paths[paths.length - 1]) {
|
|
1694
1694
|
paths.push(parsed.dir);
|
|
1695
|
-
parsed =
|
|
1695
|
+
parsed = parse7(parsed.dir);
|
|
1696
1696
|
}
|
|
1697
1697
|
return paths.reduce(function(dirs, aPath) {
|
|
1698
1698
|
return dirs.concat(modules.map(function(moduleDir) {
|
|
@@ -2123,7 +2123,7 @@ var require_async = __commonJS({
|
|
|
2123
2123
|
}
|
|
2124
2124
|
return dirs;
|
|
2125
2125
|
};
|
|
2126
|
-
module2.exports = function
|
|
2126
|
+
module2.exports = function resolve4(x4, options, callback) {
|
|
2127
2127
|
var cb = callback;
|
|
2128
2128
|
var opts = options;
|
|
2129
2129
|
if (typeof options === "function") {
|
|
@@ -5218,29 +5218,29 @@ var require_jiti = __commonJS({
|
|
|
5218
5218
|
}
|
|
5219
5219
|
Symbol.for("ufo:protocolRelative");
|
|
5220
5220
|
Object.defineProperty;
|
|
5221
|
-
const
|
|
5222
|
-
function
|
|
5223
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
5221
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
5222
|
+
function normalizeWindowsPath3(input = "") {
|
|
5223
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
5224
5224
|
}
|
|
5225
|
-
const
|
|
5225
|
+
const _UNC_REGEX3 = /^[/\\]{2}/, _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/, pathe_ff20891b_normalize = function(path7) {
|
|
5226
5226
|
if (0 === path7.length) return ".";
|
|
5227
|
-
const isUNCPath = (path7 =
|
|
5228
|
-
return 0 === (path7 =
|
|
5229
|
-
},
|
|
5227
|
+
const isUNCPath = (path7 = normalizeWindowsPath3(path7)).match(_UNC_REGEX3), isPathAbsolute = isAbsolute3(path7), trailingSeparator = "/" === path7[path7.length - 1];
|
|
5228
|
+
return 0 === (path7 = normalizeString3(path7, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path7 += "/"), _DRIVE_LETTER_RE3.test(path7) && (path7 += "/"), isUNCPath ? isPathAbsolute ? `//${path7}` : `//./${path7}` : isPathAbsolute && !isAbsolute3(path7) ? `/${path7}` : path7);
|
|
5229
|
+
}, join5 = function(...arguments_) {
|
|
5230
5230
|
if (0 === arguments_.length) return ".";
|
|
5231
5231
|
let joined;
|
|
5232
5232
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
5233
5233
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
5234
5234
|
};
|
|
5235
|
-
const
|
|
5235
|
+
const resolve4 = function(...arguments_) {
|
|
5236
5236
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
5237
|
-
for (let index = (arguments_ = arguments_.map((argument) =>
|
|
5237
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath3(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
5238
5238
|
const path7 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
5239
|
-
path7 && 0 !== path7.length && (resolvedPath = `${path7}/${resolvedPath}`, resolvedAbsolute =
|
|
5239
|
+
path7 && 0 !== path7.length && (resolvedPath = `${path7}/${resolvedPath}`, resolvedAbsolute = isAbsolute3(path7));
|
|
5240
5240
|
}
|
|
5241
|
-
return resolvedPath =
|
|
5241
|
+
return resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute3(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
5242
5242
|
};
|
|
5243
|
-
function
|
|
5243
|
+
function normalizeString3(path7, allowAboveRoot) {
|
|
5244
5244
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
5245
5245
|
for (let index = 0; index <= path7.length; ++index) {
|
|
5246
5246
|
if (index < path7.length) char = path7[index];
|
|
@@ -5269,16 +5269,16 @@ var require_jiti = __commonJS({
|
|
|
5269
5269
|
}
|
|
5270
5270
|
return res;
|
|
5271
5271
|
}
|
|
5272
|
-
const
|
|
5273
|
-
return
|
|
5274
|
-
}, _EXTNAME_RE2 = /.(\.[^./]+)$/,
|
|
5275
|
-
const match2 = _EXTNAME_RE2.exec(
|
|
5272
|
+
const isAbsolute3 = function(p2) {
|
|
5273
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
5274
|
+
}, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname5 = function(p2) {
|
|
5275
|
+
const match2 = _EXTNAME_RE2.exec(normalizeWindowsPath3(p2));
|
|
5276
5276
|
return match2 && match2[1] || "";
|
|
5277
5277
|
}, pathe_ff20891b_dirname = function(p2) {
|
|
5278
|
-
const segments =
|
|
5279
|
-
return 1 === segments.length &&
|
|
5280
|
-
},
|
|
5281
|
-
const lastSegment =
|
|
5278
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
5279
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute3(p2) ? "/" : ".");
|
|
5280
|
+
}, basename3 = function(p2, extension) {
|
|
5281
|
+
const lastSegment = normalizeWindowsPath3(p2).split("/").pop();
|
|
5282
5282
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
5283
5283
|
}, 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);
|
|
5284
5284
|
function normalizeSlash2(path7) {
|
|
@@ -5421,8 +5421,8 @@ var require_jiti = __commonJS({
|
|
|
5421
5421
|
const packageType = getPackageType2(url);
|
|
5422
5422
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
5423
5423
|
}
|
|
5424
|
-
const
|
|
5425
|
-
if (
|
|
5424
|
+
const format4 = extensionFormatMap2[value2];
|
|
5425
|
+
if (format4) return format4;
|
|
5426
5426
|
if (ignoreErrors) return;
|
|
5427
5427
|
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(url);
|
|
5428
5428
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -5437,11 +5437,11 @@ var require_jiti = __commonJS({
|
|
|
5437
5437
|
}
|
|
5438
5438
|
function emitLegacyIndexDeprecation2(url, packageJsonUrl, base, main) {
|
|
5439
5439
|
if (external_node_process_namespaceObject.noDeprecation) return;
|
|
5440
|
-
const
|
|
5440
|
+
const format4 = function(url2, context) {
|
|
5441
5441
|
const protocol = url2.protocol;
|
|
5442
5442
|
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url2, context, true) || null;
|
|
5443
5443
|
}(url, { parentURL: base.href });
|
|
5444
|
-
if ("module" !==
|
|
5444
|
+
if ("module" !== format4) return;
|
|
5445
5445
|
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);
|
|
5446
5446
|
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}.
|
|
5447
5447
|
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}.
|
|
@@ -5738,7 +5738,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
5738
5738
|
}
|
|
5739
5739
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
5740
5740
|
if (BUILTIN_MODULES2.has(id)) return "node:" + id;
|
|
5741
|
-
if (id.startsWith("file://") && (id = fileURLToPath6(id)),
|
|
5741
|
+
if (id.startsWith("file://") && (id = fileURLToPath6(id)), isAbsolute3(id)) try {
|
|
5742
5742
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL3(id);
|
|
5743
5743
|
} catch (error) {
|
|
5744
5744
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -5842,8 +5842,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
5842
5842
|
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]") };
|
|
5843
5843
|
function debug2(ctx, ...args) {
|
|
5844
5844
|
if (!ctx.opts.debug) return;
|
|
5845
|
-
const
|
|
5846
|
-
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(
|
|
5845
|
+
const cwd3 = process.cwd();
|
|
5846
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd3, "."))].join(" ")));
|
|
5847
5847
|
}
|
|
5848
5848
|
function jitiInteropDefault(ctx, mod) {
|
|
5849
5849
|
return ctx.opts.interopDefault ? function(mod2) {
|
|
@@ -5881,17 +5881,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
5881
5881
|
let resolved, lastError;
|
|
5882
5882
|
if (ctx.isNativeRe.test(id)) return id;
|
|
5883
5883
|
ctx.alias && (id = function(path7, aliases2) {
|
|
5884
|
-
const _path =
|
|
5884
|
+
const _path = normalizeWindowsPath3(path7);
|
|
5885
5885
|
aliases2 = normalizeAliases(aliases2);
|
|
5886
5886
|
for (const [alias, to] of Object.entries(aliases2)) {
|
|
5887
5887
|
if (!_path.startsWith(alias)) continue;
|
|
5888
5888
|
const _alias = utils_hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
|
5889
|
-
if (utils_hasTrailingSlash(_path[_alias.length])) return
|
|
5889
|
+
if (utils_hasTrailingSlash(_path[_alias.length])) return join5(to, _path.slice(alias.length));
|
|
5890
5890
|
}
|
|
5891
5891
|
return _path;
|
|
5892
5892
|
}(id, ctx.alias));
|
|
5893
5893
|
let parentURL = options?.parentURL || ctx.url;
|
|
5894
|
-
isDir(parentURL) && (parentURL =
|
|
5894
|
+
isDir(parentURL) && (parentURL = join5(parentURL, "_index.js"));
|
|
5895
5895
|
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
5896
5896
|
for (const conditions of conditionSets) {
|
|
5897
5897
|
try {
|
|
@@ -5941,7 +5941,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
5941
5941
|
}
|
|
5942
5942
|
const filename = jitiResolve(ctx, id, opts);
|
|
5943
5943
|
if (!filename && opts.try) return;
|
|
5944
|
-
const ext2 =
|
|
5944
|
+
const ext2 = extname5(filename);
|
|
5945
5945
|
if (".json" === ext2) {
|
|
5946
5946
|
debug2(ctx, "[json]", filename);
|
|
5947
5947
|
const jsonModule = ctx.nativeRequire(filename);
|
|
@@ -5959,7 +5959,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
5959
5959
|
}
|
|
5960
5960
|
function nativeImportOrRequire(ctx, id, async) {
|
|
5961
5961
|
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
5962
|
-
return _5 &&
|
|
5962
|
+
return _5 && isAbsolute3(id2) ? pathToFileURL3(id2) : id2;
|
|
5963
5963
|
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
5964
5964
|
}
|
|
5965
5965
|
const CACHE_VERSION = "9";
|
|
@@ -5967,11 +5967,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
5967
5967
|
if (!ctx.opts.fsCache || !topts.filename) return get();
|
|
5968
5968
|
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
5969
5969
|
`;
|
|
5970
|
-
let cacheName = `${
|
|
5970
|
+
let cacheName = `${basename3(pathe_ff20891b_dirname(topts.filename))}-${function(path7) {
|
|
5971
5971
|
return path7.match(FILENAME_RE)?.[2];
|
|
5972
5972
|
}(topts.filename)}` + (ctx.opts.sourceMaps ? "+map" : "") + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs");
|
|
5973
5973
|
topts.jsx && topts.filename.endsWith("x") && (cacheName += "x");
|
|
5974
|
-
const cacheDir = ctx.opts.fsCache, cacheFilePath =
|
|
5974
|
+
const cacheDir = ctx.opts.fsCache, cacheFilePath = join5(cacheDir, cacheName);
|
|
5975
5975
|
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
5976
5976
|
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
5977
5977
|
if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
@@ -5982,14 +5982,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
5982
5982
|
}
|
|
5983
5983
|
function prepareCacheDir(ctx) {
|
|
5984
5984
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
5985
|
-
const nmDir = ctx2.filename &&
|
|
5986
|
-
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return
|
|
5985
|
+
const nmDir = ctx2.filename && resolve4(ctx2.filename, "../node_modules");
|
|
5986
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join5(nmDir, ".cache/jiti");
|
|
5987
5987
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
5988
5988
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
5989
5989
|
const _env = process.env.TMPDIR;
|
|
5990
5990
|
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
5991
5991
|
}
|
|
5992
|
-
return
|
|
5992
|
+
return join5(_tmpDir, "jiti");
|
|
5993
5993
|
}(ctx)), ctx.opts.fsCache) try {
|
|
5994
5994
|
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
5995
5995
|
try {
|
|
@@ -6010,11 +6010,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
6010
6010
|
return code.startsWith("#!") && (code = "// " + code), code;
|
|
6011
6011
|
}
|
|
6012
6012
|
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
6013
|
-
const id = evalOptions.id || (evalOptions.filename ?
|
|
6013
|
+
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 }), ext2 = evalOptions.ext || extname5(filename), cache3 = evalOptions.cache || ctx.parentCache || {}, isTypescript = /\.[cm]?tsx?$/.test(ext2), isESM = ".mjs" === ext2 || ".js" === ext2 && "module" === function(path7) {
|
|
6014
6014
|
for (; path7 && "." !== path7 && "/" !== path7; ) {
|
|
6015
|
-
path7 =
|
|
6015
|
+
path7 = join5(path7, "..");
|
|
6016
6016
|
try {
|
|
6017
|
-
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(
|
|
6017
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join5(path7, "package.json"), "utf8");
|
|
6018
6018
|
try {
|
|
6019
6019
|
return JSON.parse(pkg);
|
|
6020
6020
|
} catch {
|
|
@@ -6078,7 +6078,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
6078
6078
|
const deprecatOverrides = {};
|
|
6079
6079
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
6080
6080
|
}(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("|")})/`);
|
|
6081
|
-
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename =
|
|
6081
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join5(filename, "_index.js"));
|
|
6082
6082
|
const url = pathToFileURL3(filename), additionalExts = [...opts.extensions].filter((ext2) => ".js" !== ext2), 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 };
|
|
6083
6083
|
isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
6084
6084
|
const jiti = Object.assign(function(id) {
|
|
@@ -6352,7 +6352,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6352
6352
|
for (let i2 = 1; i2 < pointer; i2++) path7 += "/" + pieces[i2];
|
|
6353
6353
|
(!path7 || addTrailingSlash && !path7.endsWith("/..")) && (path7 += "/"), url.path = path7;
|
|
6354
6354
|
}
|
|
6355
|
-
function
|
|
6355
|
+
function resolve4(input, base) {
|
|
6356
6356
|
if (!input && !base) return "";
|
|
6357
6357
|
const url = parseUrl(input);
|
|
6358
6358
|
let inputType = url.type;
|
|
@@ -6389,7 +6389,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6389
6389
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
6390
6390
|
}
|
|
6391
6391
|
}
|
|
6392
|
-
return
|
|
6392
|
+
return resolve4;
|
|
6393
6393
|
}();
|
|
6394
6394
|
}, "./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js": function(__unused_webpack_module, exports3) {
|
|
6395
6395
|
!function(exports4) {
|
|
@@ -6435,17 +6435,17 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6435
6435
|
const c = chars.charCodeAt(i2);
|
|
6436
6436
|
intToChar[i2] = c, charToInt[c] = i2;
|
|
6437
6437
|
}
|
|
6438
|
-
function decodeInteger(reader,
|
|
6438
|
+
function decodeInteger(reader, relative5) {
|
|
6439
6439
|
let value2 = 0, shift = 0, integer = 0;
|
|
6440
6440
|
do {
|
|
6441
6441
|
const c = reader.next();
|
|
6442
6442
|
integer = charToInt[c], value2 |= (31 & integer) << shift, shift += 5;
|
|
6443
6443
|
} while (32 & integer);
|
|
6444
6444
|
const shouldNegate = 1 & value2;
|
|
6445
|
-
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2),
|
|
6445
|
+
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative5 + value2;
|
|
6446
6446
|
}
|
|
6447
|
-
function encodeInteger(builder, num,
|
|
6448
|
-
let delta = num -
|
|
6447
|
+
function encodeInteger(builder, num, relative5) {
|
|
6448
|
+
let delta = num - relative5;
|
|
6449
6449
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
6450
6450
|
do {
|
|
6451
6451
|
let clamped = 31 & delta;
|
|
@@ -6653,7 +6653,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6653
6653
|
}, "./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js": function(__unused_webpack_module, exports3, __webpack_require__2) {
|
|
6654
6654
|
!function(exports4, sourcemapCodec, resolveUri) {
|
|
6655
6655
|
"use strict";
|
|
6656
|
-
function
|
|
6656
|
+
function resolve4(input, base) {
|
|
6657
6657
|
return base && !base.endsWith("/") && (base += "/"), resolveUri(input, base);
|
|
6658
6658
|
}
|
|
6659
6659
|
function stripFilename(path7) {
|
|
@@ -6734,12 +6734,12 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6734
6734
|
return { __proto__: null };
|
|
6735
6735
|
}
|
|
6736
6736
|
const AnyMap = function(map, mapUrl) {
|
|
6737
|
-
const parsed =
|
|
6737
|
+
const parsed = parse7(map);
|
|
6738
6738
|
if (!("sections" in parsed)) return new TraceMap(parsed, mapUrl);
|
|
6739
6739
|
const mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
|
|
6740
6740
|
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 });
|
|
6741
6741
|
};
|
|
6742
|
-
function
|
|
6742
|
+
function parse7(map) {
|
|
6743
6743
|
return "string" == typeof map ? JSON.parse(map) : map;
|
|
6744
6744
|
}
|
|
6745
6745
|
function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
@@ -6755,7 +6755,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6755
6755
|
}
|
|
6756
6756
|
}
|
|
6757
6757
|
function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
6758
|
-
const parsed =
|
|
6758
|
+
const parsed = parse7(input);
|
|
6759
6759
|
if ("sections" in parsed) return recurse(...arguments);
|
|
6760
6760
|
const map = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;
|
|
6761
6761
|
if (append(sources, resolvedSources), append(names, map.names), contents) append(sourcesContent, contents);
|
|
@@ -6791,8 +6791,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6791
6791
|
if (!isString && map._decodedMemo) return map;
|
|
6792
6792
|
const parsed = isString ? JSON.parse(map) : map, { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
6793
6793
|
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;
|
|
6794
|
-
const from =
|
|
6795
|
-
this.resolvedSources = sources.map((s2) =>
|
|
6794
|
+
const from = resolve4(sourceRoot || "", stripFilename(mapUrl));
|
|
6795
|
+
this.resolvedSources = sources.map((s2) => resolve4(s2 || "", from));
|
|
6796
6796
|
const { mappings } = parsed;
|
|
6797
6797
|
"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;
|
|
6798
6798
|
}
|
|
@@ -7209,10 +7209,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7209
7209
|
const self2 = debug2, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
|
|
7210
7210
|
self2.diff = ms, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), "string" != typeof args[0] && args.unshift("%O");
|
|
7211
7211
|
let index = 0;
|
|
7212
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2,
|
|
7212
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format4) => {
|
|
7213
7213
|
if ("%%" === match2) return "%";
|
|
7214
7214
|
index++;
|
|
7215
|
-
const formatter = createDebug.formatters[
|
|
7215
|
+
const formatter = createDebug.formatters[format4];
|
|
7216
7216
|
if ("function" == typeof formatter) {
|
|
7217
7217
|
const val = args[index];
|
|
7218
7218
|
match2 = formatter.call(self2, val), args.splice(index, 1), index--;
|
|
@@ -7342,7 +7342,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7342
7342
|
for (; !({ value: value2 } = gen.next()).done; ) assertStart(value2, gen);
|
|
7343
7343
|
return value2;
|
|
7344
7344
|
}
|
|
7345
|
-
function evaluateAsync(gen,
|
|
7345
|
+
function evaluateAsync(gen, resolve4, reject) {
|
|
7346
7346
|
!function step() {
|
|
7347
7347
|
try {
|
|
7348
7348
|
let value2;
|
|
@@ -7354,7 +7354,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7354
7354
|
});
|
|
7355
7355
|
if (sync2 = false, assertSuspend(out, gen), !didSyncResume) return;
|
|
7356
7356
|
}
|
|
7357
|
-
return
|
|
7357
|
+
return resolve4(value2);
|
|
7358
7358
|
} catch (err) {
|
|
7359
7359
|
return reject(err);
|
|
7360
7360
|
}
|
|
@@ -7391,10 +7391,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7391
7391
|
"number" != typeof arity && (arity = sync2.length);
|
|
7392
7392
|
return buildOperation({ name, arity, sync: function(args) {
|
|
7393
7393
|
return sync2.apply(this, args);
|
|
7394
|
-
}, async: function(args,
|
|
7395
|
-
async ? async.apply(this, args).then(
|
|
7396
|
-
null == err ?
|
|
7397
|
-
}) :
|
|
7394
|
+
}, async: function(args, resolve4, reject) {
|
|
7395
|
+
async ? async.apply(this, args).then(resolve4, reject) : errback ? errback.call(this, ...args, (err, value2) => {
|
|
7396
|
+
null == err ? resolve4(value2) : reject(err);
|
|
7397
|
+
}) : resolve4(sync2.apply(this, args));
|
|
7398
7398
|
} });
|
|
7399
7399
|
}(optsOrFn) : function(genFn2) {
|
|
7400
7400
|
return setFunctionMetadata(genFn2.name, genFn2.length, function(...args) {
|
|
@@ -7404,8 +7404,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7404
7404
|
const fns = { sync: function(...args) {
|
|
7405
7405
|
return evaluateSync(genFn2.apply(this, args));
|
|
7406
7406
|
}, async: function(...args) {
|
|
7407
|
-
return new Promise((
|
|
7408
|
-
evaluateAsync(genFn2.apply(this, args),
|
|
7407
|
+
return new Promise((resolve4, reject) => {
|
|
7408
|
+
evaluateAsync(genFn2.apply(this, args), resolve4, reject);
|
|
7409
7409
|
});
|
|
7410
7410
|
}, errback: function(...args) {
|
|
7411
7411
|
const cb = args.pop();
|
|
@@ -7422,25 +7422,25 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7422
7422
|
}(genFn));
|
|
7423
7423
|
}, { all: buildOperation({ name: "all", arity: 1, sync: function(args) {
|
|
7424
7424
|
return Array.from(args[0]).map((item) => evaluateSync(item));
|
|
7425
|
-
}, async: function(args,
|
|
7425
|
+
}, async: function(args, resolve4, reject) {
|
|
7426
7426
|
const items = Array.from(args[0]);
|
|
7427
|
-
if (0 === items.length) return void Promise.resolve().then(() =>
|
|
7427
|
+
if (0 === items.length) return void Promise.resolve().then(() => resolve4([]));
|
|
7428
7428
|
let count = 0;
|
|
7429
7429
|
const results = items.map(() => {
|
|
7430
7430
|
});
|
|
7431
7431
|
items.forEach((item, i2) => {
|
|
7432
7432
|
evaluateAsync(item, (val) => {
|
|
7433
|
-
results[i2] = val, count += 1, count === results.length &&
|
|
7433
|
+
results[i2] = val, count += 1, count === results.length && resolve4(results);
|
|
7434
7434
|
}, reject);
|
|
7435
7435
|
});
|
|
7436
7436
|
} }), race: buildOperation({ name: "race", arity: 1, sync: function(args) {
|
|
7437
7437
|
const items = Array.from(args[0]);
|
|
7438
7438
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
7439
7439
|
return evaluateSync(items[0]);
|
|
7440
|
-
}, async: function(args,
|
|
7440
|
+
}, async: function(args, resolve4, reject) {
|
|
7441
7441
|
const items = Array.from(args[0]);
|
|
7442
7442
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
7443
|
-
for (const item of items) evaluateAsync(item,
|
|
7443
|
+
for (const item of items) evaluateAsync(item, resolve4, reject);
|
|
7444
7444
|
} }) });
|
|
7445
7445
|
}, "./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
7446
7446
|
"use strict";
|
|
@@ -7622,7 +7622,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7622
7622
|
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");
|
|
7623
7623
|
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*\\*";
|
|
7624
7624
|
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])));
|
|
7625
|
-
function
|
|
7625
|
+
function parse7(version2, options) {
|
|
7626
7626
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) return version2;
|
|
7627
7627
|
if ("string" != typeof version2) return null;
|
|
7628
7628
|
if (version2.length > MAX_LENGTH) return null;
|
|
@@ -7654,11 +7654,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7654
7654
|
return id;
|
|
7655
7655
|
}) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
|
|
7656
7656
|
}
|
|
7657
|
-
exports3.parse =
|
|
7658
|
-
var v4 =
|
|
7657
|
+
exports3.parse = parse7, exports3.valid = function(version2, options) {
|
|
7658
|
+
var v4 = parse7(version2, options);
|
|
7659
7659
|
return v4 ? v4.version : null;
|
|
7660
7660
|
}, exports3.clean = function(version2, options) {
|
|
7661
|
-
var s2 =
|
|
7661
|
+
var s2 = parse7(version2.trim().replace(/^[=v]+/, ""), options);
|
|
7662
7662
|
return s2 ? s2.version : null;
|
|
7663
7663
|
}, exports3.SemVer = SemVer, SemVer.prototype.format = function() {
|
|
7664
7664
|
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
@@ -7734,7 +7734,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
7734
7734
|
}
|
|
7735
7735
|
}, exports3.diff = function(version1, version2) {
|
|
7736
7736
|
if (eq(version1, version2)) return null;
|
|
7737
|
-
var v1 =
|
|
7737
|
+
var v1 = parse7(version1), v22 = parse7(version2), prefix = "";
|
|
7738
7738
|
if (v1.prerelease.length || v22.prerelease.length) {
|
|
7739
7739
|
prefix = "pre";
|
|
7740
7740
|
var defaultResult = "prerelease";
|
|
@@ -8048,7 +8048,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
8048
8048
|
}, exports3.gtr = function(version2, range, options) {
|
|
8049
8049
|
return outside(version2, range, ">", options);
|
|
8050
8050
|
}, exports3.outside = outside, exports3.prerelease = function(version2, options) {
|
|
8051
|
-
var parsed =
|
|
8051
|
+
var parsed = parse7(version2, options);
|
|
8052
8052
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
8053
8053
|
}, exports3.intersects = function(r1, r22, options) {
|
|
8054
8054
|
return r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22);
|
|
@@ -8062,7 +8062,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
8062
8062
|
safeRe[t2.COERCERTL].lastIndex = -1;
|
|
8063
8063
|
} else match2 = version2.match(safeRe[t2.COERCE]);
|
|
8064
8064
|
if (null === match2) return null;
|
|
8065
|
-
return
|
|
8065
|
+
return parse7(match2[2] + "." + (match2[3] || "0") + "." + (match2[4] || "0"), options);
|
|
8066
8066
|
};
|
|
8067
8067
|
}, "./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
8068
8068
|
"use strict";
|
|
@@ -8256,8 +8256,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
8256
8256
|
}
|
|
8257
8257
|
class Lock {
|
|
8258
8258
|
constructor() {
|
|
8259
|
-
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((
|
|
8260
|
-
this._resolve =
|
|
8259
|
+
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((resolve4) => {
|
|
8260
|
+
this._resolve = resolve4;
|
|
8261
8261
|
});
|
|
8262
8262
|
}
|
|
8263
8263
|
release(value2) {
|
|
@@ -8339,54 +8339,54 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
8339
8339
|
return null == chain || chain.files.add(input.filepath), chain;
|
|
8340
8340
|
}
|
|
8341
8341
|
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))));
|
|
8342
|
-
function buildRootDescriptors({ dirname:
|
|
8343
|
-
return descriptors2(
|
|
8342
|
+
function buildRootDescriptors({ dirname: dirname5, options }, alias, descriptors2) {
|
|
8343
|
+
return descriptors2(dirname5, options, alias);
|
|
8344
8344
|
}
|
|
8345
|
-
function buildEnvDescriptors({ dirname:
|
|
8345
|
+
function buildEnvDescriptors({ dirname: dirname5, options }, alias, descriptors2, envName) {
|
|
8346
8346
|
var _options$env;
|
|
8347
8347
|
const opts = null == (_options$env = options.env) ? void 0 : _options$env[envName];
|
|
8348
|
-
return opts ? descriptors2(
|
|
8348
|
+
return opts ? descriptors2(dirname5, opts, `${alias}.env["${envName}"]`) : null;
|
|
8349
8349
|
}
|
|
8350
|
-
function buildOverrideDescriptors({ dirname:
|
|
8350
|
+
function buildOverrideDescriptors({ dirname: dirname5, options }, alias, descriptors2, index) {
|
|
8351
8351
|
var _options$overrides;
|
|
8352
8352
|
const opts = null == (_options$overrides = options.overrides) ? void 0 : _options$overrides[index];
|
|
8353
8353
|
if (!opts) throw new Error("Assertion failure - missing override");
|
|
8354
|
-
return descriptors2(
|
|
8354
|
+
return descriptors2(dirname5, opts, `${alias}.overrides[${index}]`);
|
|
8355
8355
|
}
|
|
8356
|
-
function buildOverrideEnvDescriptors({ dirname:
|
|
8356
|
+
function buildOverrideEnvDescriptors({ dirname: dirname5, options }, alias, descriptors2, index, envName) {
|
|
8357
8357
|
var _options$overrides2, _override$env;
|
|
8358
8358
|
const override = null == (_options$overrides2 = options.overrides) ? void 0 : _options$overrides2[index];
|
|
8359
8359
|
if (!override) throw new Error("Assertion failure - missing override");
|
|
8360
8360
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
8361
|
-
return opts ? descriptors2(
|
|
8361
|
+
return opts ? descriptors2(dirname5, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
|
8362
8362
|
}
|
|
8363
8363
|
function makeChainWalker({ root, env, overrides, overridesEnv, createLogger }) {
|
|
8364
8364
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
8365
|
-
const { dirname:
|
|
8366
|
-
if (configIsApplicable(rootOpts,
|
|
8365
|
+
const { dirname: dirname5 } = input, flattenedConfigs = [], rootOpts = root(input);
|
|
8366
|
+
if (configIsApplicable(rootOpts, dirname5, context, input.filepath)) {
|
|
8367
8367
|
flattenedConfigs.push({ config: rootOpts, envName: void 0, index: void 0 });
|
|
8368
8368
|
const envOpts = env(input, context.envName);
|
|
8369
|
-
envOpts && configIsApplicable(envOpts,
|
|
8369
|
+
envOpts && configIsApplicable(envOpts, dirname5, context, input.filepath) && flattenedConfigs.push({ config: envOpts, envName: context.envName, index: void 0 }), (rootOpts.options.overrides || []).forEach((_5, index) => {
|
|
8370
8370
|
const overrideOps = overrides(input, index);
|
|
8371
|
-
if (configIsApplicable(overrideOps,
|
|
8371
|
+
if (configIsApplicable(overrideOps, dirname5, context, input.filepath)) {
|
|
8372
8372
|
flattenedConfigs.push({ config: overrideOps, index, envName: void 0 });
|
|
8373
8373
|
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
|
8374
|
-
overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
8374
|
+
overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname5, context, input.filepath) && flattenedConfigs.push({ config: overrideEnvOpts, index, envName: context.envName });
|
|
8375
8375
|
}
|
|
8376
8376
|
});
|
|
8377
8377
|
}
|
|
8378
|
-
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only,
|
|
8378
|
+
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname5))) return null;
|
|
8379
8379
|
const chain = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
8380
8380
|
for (const { config, index, envName } of flattenedConfigs) {
|
|
8381
|
-
if (!(yield* mergeExtendsChain(chain, config.options,
|
|
8381
|
+
if (!(yield* mergeExtendsChain(chain, config.options, dirname5, context, files, baseLogger))) return null;
|
|
8382
8382
|
logger(config, index, envName), yield* mergeChainOpts(chain, config);
|
|
8383
8383
|
}
|
|
8384
8384
|
return chain;
|
|
8385
8385
|
};
|
|
8386
8386
|
}
|
|
8387
|
-
function* mergeExtendsChain(chain, opts,
|
|
8387
|
+
function* mergeExtendsChain(chain, opts, dirname5, context, files, baseLogger) {
|
|
8388
8388
|
if (void 0 === opts.extends) return true;
|
|
8389
|
-
const file = yield* (0, _index.loadConfig)(opts.extends,
|
|
8389
|
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname5, context.envName, context.caller);
|
|
8390
8390
|
if (files.has(file)) throw new Error(`Configuration cycle detected loading ${file.filepath}.
|
|
8391
8391
|
File already loaded following the config chain:
|
|
8392
8392
|
` + Array.from(files, (file2) => ` - ${file2.filepath}`).join("\n"));
|
|
@@ -8420,35 +8420,35 @@ File already loaded following the config chain:
|
|
|
8420
8420
|
} else descriptors2.push({ value: item });
|
|
8421
8421
|
return descriptors2.reduce((acc, desc) => (acc.push(desc.value), acc), []);
|
|
8422
8422
|
}
|
|
8423
|
-
function configIsApplicable({ options },
|
|
8424
|
-
return (void 0 === options.test || configFieldIsApplicable(context, options.test,
|
|
8423
|
+
function configIsApplicable({ options }, dirname5, context, configName) {
|
|
8424
|
+
return (void 0 === options.test || configFieldIsApplicable(context, options.test, dirname5, configName)) && (void 0 === options.include || configFieldIsApplicable(context, options.include, dirname5, configName)) && (void 0 === options.exclude || !configFieldIsApplicable(context, options.exclude, dirname5, configName));
|
|
8425
8425
|
}
|
|
8426
|
-
function configFieldIsApplicable(context, test,
|
|
8427
|
-
return matchesPatterns(context, Array.isArray(test) ? test : [test],
|
|
8426
|
+
function configFieldIsApplicable(context, test, dirname5, configName) {
|
|
8427
|
+
return matchesPatterns(context, Array.isArray(test) ? test : [test], dirname5, configName);
|
|
8428
8428
|
}
|
|
8429
8429
|
function ignoreListReplacer(_key, value2) {
|
|
8430
8430
|
return value2 instanceof RegExp ? String(value2) : value2;
|
|
8431
8431
|
}
|
|
8432
|
-
function shouldIgnore(context, ignore, only,
|
|
8433
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
8432
|
+
function shouldIgnore(context, ignore, only, dirname5) {
|
|
8433
|
+
if (ignore && matchesPatterns(context, ignore, dirname5)) {
|
|
8434
8434
|
var _context$filename;
|
|
8435
|
-
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 "${
|
|
8435
|
+
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 "${dirname5}"`;
|
|
8436
8436
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
8437
8437
|
}
|
|
8438
|
-
if (only && !matchesPatterns(context, only,
|
|
8438
|
+
if (only && !matchesPatterns(context, only, dirname5)) {
|
|
8439
8439
|
var _context$filename2;
|
|
8440
|
-
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 "${
|
|
8440
|
+
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 "${dirname5}"`;
|
|
8441
8441
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
8442
8442
|
}
|
|
8443
8443
|
return false;
|
|
8444
8444
|
}
|
|
8445
|
-
function matchesPatterns(context, patterns,
|
|
8446
|
-
return patterns.some((pattern) => matchPattern(pattern,
|
|
8445
|
+
function matchesPatterns(context, patterns, dirname5, configName) {
|
|
8446
|
+
return patterns.some((pattern) => matchPattern(pattern, dirname5, context.filename, context, configName));
|
|
8447
8447
|
}
|
|
8448
|
-
function matchPattern(pattern,
|
|
8449
|
-
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname:
|
|
8448
|
+
function matchPattern(pattern, dirname5, pathToTest, context, configName) {
|
|
8449
|
+
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname: dirname5, envName: context.envName, caller: context.caller });
|
|
8450
8450
|
if ("string" != typeof pathToTest) throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
8451
|
-
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern,
|
|
8451
|
+
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern, dirname5)), pattern.test(pathToTest);
|
|
8452
8452
|
}
|
|
8453
8453
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
8454
8454
|
"use strict";
|
|
@@ -8458,28 +8458,28 @@ File already loaded following the config chain:
|
|
|
8458
8458
|
return data2;
|
|
8459
8459
|
}, data2;
|
|
8460
8460
|
}
|
|
8461
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(
|
|
8461
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(dirname5, options, alias) {
|
|
8462
8462
|
const { plugins, presets, passPerPreset } = options;
|
|
8463
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
8464
|
-
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(
|
|
8465
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
8463
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname5), plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname5)(alias) : () => handlerOf([]), presets: presets ? () => createCachedPresetDescriptors(presets, dirname5)(alias)(!!passPerPreset) : () => handlerOf([]) };
|
|
8464
|
+
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(dirname5, options, alias) {
|
|
8465
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname5), plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname5, alias)), presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname5, alias, !!options.passPerPreset)) };
|
|
8466
8466
|
};
|
|
8467
8467
|
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");
|
|
8468
8468
|
function* handlerOf(value2) {
|
|
8469
8469
|
return value2;
|
|
8470
8470
|
}
|
|
8471
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
8472
|
-
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,
|
|
8471
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname5) {
|
|
8472
|
+
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname5)), options;
|
|
8473
8473
|
}
|
|
8474
8474
|
const PRESET_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
8475
|
-
const
|
|
8475
|
+
const dirname5 = cache2.using((dir) => dir);
|
|
8476
8476
|
return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
|
8477
|
-
return (yield* createPresetDescriptors(items,
|
|
8477
|
+
return (yield* createPresetDescriptors(items, dirname5, alias, passPerPreset)).map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
|
8478
8478
|
}));
|
|
8479
8479
|
}), PLUGIN_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
8480
|
-
const
|
|
8480
|
+
const dirname5 = cache2.using((dir) => dir);
|
|
8481
8481
|
return (0, _caching.makeStrongCache)(function* (alias) {
|
|
8482
|
-
return (yield* createPluginDescriptors(items,
|
|
8482
|
+
return (yield* createPluginDescriptors(items, dirname5, alias)).map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
|
8483
8483
|
});
|
|
8484
8484
|
}), DEFAULT_OPTIONS = {};
|
|
8485
8485
|
function loadCachedDescriptor(cache2, desc) {
|
|
@@ -8498,14 +8498,14 @@ File already loaded following the config chain:
|
|
|
8498
8498
|
}
|
|
8499
8499
|
return desc;
|
|
8500
8500
|
}
|
|
8501
|
-
function* createPresetDescriptors(items,
|
|
8502
|
-
return yield* createDescriptors("preset", items,
|
|
8501
|
+
function* createPresetDescriptors(items, dirname5, alias, passPerPreset) {
|
|
8502
|
+
return yield* createDescriptors("preset", items, dirname5, alias, passPerPreset);
|
|
8503
8503
|
}
|
|
8504
|
-
function* createPluginDescriptors(items,
|
|
8505
|
-
return yield* createDescriptors("plugin", items,
|
|
8504
|
+
function* createPluginDescriptors(items, dirname5, alias) {
|
|
8505
|
+
return yield* createDescriptors("plugin", items, dirname5, alias);
|
|
8506
8506
|
}
|
|
8507
|
-
function* createDescriptors(type, items,
|
|
8508
|
-
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item,
|
|
8507
|
+
function* createDescriptors(type, items, dirname5, alias, ownPass) {
|
|
8508
|
+
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname5, { type, alias: `${alias}$${index}`, ownPass: !!ownPass })));
|
|
8509
8509
|
return function(items2) {
|
|
8510
8510
|
const map = /* @__PURE__ */ new Map();
|
|
8511
8511
|
for (const item of items2) {
|
|
@@ -8519,7 +8519,7 @@ File already loaded following the config chain:
|
|
|
8519
8519
|
}
|
|
8520
8520
|
}(descriptors2), descriptors2;
|
|
8521
8521
|
}
|
|
8522
|
-
function* createDescriptor(pair,
|
|
8522
|
+
function* createDescriptor(pair, dirname5, { type, alias, ownPass }) {
|
|
8523
8523
|
const desc = (0, _item.getItemDescriptor)(pair);
|
|
8524
8524
|
if (desc) return desc;
|
|
8525
8525
|
let name, options, file, value2 = pair;
|
|
@@ -8528,7 +8528,7 @@ File already loaded following the config chain:
|
|
|
8528
8528
|
if ("string" == typeof value2) {
|
|
8529
8529
|
if ("string" != typeof type) throw new Error("To resolve a string-based item, the type of item must be given");
|
|
8530
8530
|
const resolver = "plugin" === type ? _index.loadPlugin : _index.loadPreset, request = value2;
|
|
8531
|
-
({ filepath, value: value2 } = yield* resolver(value2,
|
|
8531
|
+
({ filepath, value: value2 } = yield* resolver(value2, dirname5)), file = { request, resolved: filepath };
|
|
8532
8532
|
}
|
|
8533
8533
|
if (!value2) throw new Error(`Unexpected falsy value: ${String(value2)}`);
|
|
8534
8534
|
if ("object" == typeof value2 && value2.__esModule) {
|
|
@@ -8537,7 +8537,7 @@ File already loaded following the config chain:
|
|
|
8537
8537
|
}
|
|
8538
8538
|
if ("object" != typeof value2 && "function" != typeof value2) throw new Error(`Unsupported format: ${typeof value2}. Expected an object or a function.`);
|
|
8539
8539
|
if (null !== filepath && "object" == typeof value2 && value2) throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
|
8540
|
-
return { name, alias: filepath || alias, value: value2, options, dirname:
|
|
8540
|
+
return { name, alias: filepath || alias, value: value2, options, dirname: dirname5, ownPass, file };
|
|
8541
8541
|
}
|
|
8542
8542
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/configuration.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
8543
8543
|
"use strict";
|
|
@@ -8572,41 +8572,41 @@ File already loaded following the config chain:
|
|
|
8572
8572
|
}, data2;
|
|
8573
8573
|
}
|
|
8574
8574
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.ROOT_CONFIG_FILENAMES = void 0, exports3.findConfigUpwards = function(rootDir) {
|
|
8575
|
-
let
|
|
8575
|
+
let dirname5 = rootDir;
|
|
8576
8576
|
for (; ; ) {
|
|
8577
|
-
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(
|
|
8578
|
-
const nextDir = _path().dirname(
|
|
8579
|
-
if (
|
|
8580
|
-
|
|
8577
|
+
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(dirname5, filename))) return dirname5;
|
|
8578
|
+
const nextDir = _path().dirname(dirname5);
|
|
8579
|
+
if (dirname5 === nextDir) break;
|
|
8580
|
+
dirname5 = nextDir;
|
|
8581
8581
|
}
|
|
8582
8582
|
return null;
|
|
8583
8583
|
}, exports3.findRelativeConfig = function* (packageData, envName, caller) {
|
|
8584
8584
|
let config = null, ignore = null;
|
|
8585
|
-
const
|
|
8585
|
+
const dirname5 = _path().dirname(packageData.filepath);
|
|
8586
8586
|
for (const loc of packageData.directories) {
|
|
8587
8587
|
var _packageData$pkg;
|
|
8588
8588
|
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);
|
|
8589
8589
|
if (!ignore) {
|
|
8590
8590
|
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
|
8591
|
-
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath,
|
|
8591
|
+
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath, dirname5);
|
|
8592
8592
|
}
|
|
8593
8593
|
}
|
|
8594
8594
|
return { config, ignore };
|
|
8595
|
-
}, exports3.findRootConfig = function(
|
|
8596
|
-
return loadOneConfig(ROOT_CONFIG_FILENAMES,
|
|
8597
|
-
}, exports3.loadConfig = function* (name,
|
|
8595
|
+
}, exports3.findRootConfig = function(dirname5, envName, caller) {
|
|
8596
|
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname5, envName, caller);
|
|
8597
|
+
}, exports3.loadConfig = function* (name, dirname5, envName, caller) {
|
|
8598
8598
|
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")) => {
|
|
8599
8599
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
8600
8600
|
if (f2) return f2;
|
|
8601
8601
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
8602
|
-
})(name, { paths: [
|
|
8602
|
+
})(name, { paths: [dirname5] }), conf = yield* readConfig(filepath, envName, caller);
|
|
8603
8603
|
var v4, w5;
|
|
8604
8604
|
if (!conf) throw new _configError.default("Config file contains no configuration data", filepath);
|
|
8605
|
-
return debug2("Loaded config %o from %o.", name,
|
|
8606
|
-
}, exports3.resolveShowConfigPath = function* (
|
|
8605
|
+
return debug2("Loaded config %o from %o.", name, dirname5), conf;
|
|
8606
|
+
}, exports3.resolveShowConfigPath = function* (dirname5) {
|
|
8607
8607
|
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
|
8608
8608
|
if (null != targetPath) {
|
|
8609
|
-
const absolutePath = _path().resolve(
|
|
8609
|
+
const absolutePath = _path().resolve(dirname5, targetPath);
|
|
8610
8610
|
if (!(yield* fs2.stat(absolutePath)).isFile()) throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
|
8611
8611
|
return absolutePath;
|
|
8612
8612
|
}
|
|
@@ -8686,15 +8686,15 @@ module.exports = function(api) {
|
|
|
8686
8686
|
for (const pattern of ignorePatterns) if ("!" === pattern[0]) throw new _configError.default("Negation of file paths is not supported.", filepath);
|
|
8687
8687
|
return { filepath, dirname: _path().dirname(filepath), ignore: ignorePatterns.map((pattern) => (0, _patternToRegex.default)(pattern, ignoreDir)) };
|
|
8688
8688
|
});
|
|
8689
|
-
function* loadOneConfig(names,
|
|
8690
|
-
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(
|
|
8689
|
+
function* loadOneConfig(names, dirname5, envName, caller, previousConfig = null) {
|
|
8690
|
+
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname5, filename), envName, caller)))).reduce((previousConfig2, config2) => {
|
|
8691
8691
|
if (config2 && previousConfig2) throw new _configError.default(`Multiple configuration files found. Please remove one:
|
|
8692
8692
|
- ${_path().basename(previousConfig2.filepath)}
|
|
8693
8693
|
- ${config2.filepath}
|
|
8694
|
-
from ${
|
|
8694
|
+
from ${dirname5}`);
|
|
8695
8695
|
return config2 || previousConfig2;
|
|
8696
8696
|
}, previousConfig);
|
|
8697
|
-
return config && debug2("Found configuration %o from %o.", config.filepath,
|
|
8697
|
+
return config && debug2("Found configuration %o from %o.", config.filepath, dirname5), config;
|
|
8698
8698
|
}
|
|
8699
8699
|
function readConfig(filepath, envName, caller) {
|
|
8700
8700
|
switch (_path().extname(filepath)) {
|
|
@@ -8890,15 +8890,15 @@ packageExtensions:
|
|
|
8890
8890
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.findPackageData = function* (filepath) {
|
|
8891
8891
|
let pkg = null;
|
|
8892
8892
|
const directories = [];
|
|
8893
|
-
let isPackage = true,
|
|
8894
|
-
for (; !pkg && "node_modules" !== _path().basename(
|
|
8895
|
-
directories.push(
|
|
8896
|
-
const nextLoc = _path().dirname(
|
|
8897
|
-
if (
|
|
8893
|
+
let isPackage = true, dirname5 = _path().dirname(filepath);
|
|
8894
|
+
for (; !pkg && "node_modules" !== _path().basename(dirname5); ) {
|
|
8895
|
+
directories.push(dirname5), pkg = yield* readConfigPackage(_path().join(dirname5, PACKAGE_FILENAME));
|
|
8896
|
+
const nextLoc = _path().dirname(dirname5);
|
|
8897
|
+
if (dirname5 === nextLoc) {
|
|
8898
8898
|
isPackage = false;
|
|
8899
8899
|
break;
|
|
8900
8900
|
}
|
|
8901
|
-
|
|
8901
|
+
dirname5 = nextLoc;
|
|
8902
8902
|
}
|
|
8903
8903
|
return { filepath, directories, pkg, isPackage };
|
|
8904
8904
|
};
|
|
@@ -8929,12 +8929,12 @@ packageExtensions:
|
|
|
8929
8929
|
return data2;
|
|
8930
8930
|
}, data2;
|
|
8931
8931
|
}
|
|
8932
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name,
|
|
8933
|
-
const { filepath, loader } = resolvePlugin(name,
|
|
8934
|
-
return debug2("Loaded plugin %o from %o.", name,
|
|
8935
|
-
}, exports3.loadPreset = function* (name,
|
|
8936
|
-
const { filepath, loader } = resolvePreset(name,
|
|
8937
|
-
return debug2("Loaded preset %o from %o.", name,
|
|
8932
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name, dirname5) {
|
|
8933
|
+
const { filepath, loader } = resolvePlugin(name, dirname5, yield* (0, _async.isAsync)()), value2 = yield* requireModule("plugin", loader, filepath);
|
|
8934
|
+
return debug2("Loaded plugin %o from %o.", name, dirname5), { filepath, value: value2 };
|
|
8935
|
+
}, exports3.loadPreset = function* (name, dirname5) {
|
|
8936
|
+
const { filepath, loader } = resolvePreset(name, dirname5, yield* (0, _async.isAsync)()), value2 = yield* requireModule("preset", loader, filepath);
|
|
8937
|
+
return debug2("Loaded preset %o from %o.", name, dirname5), { filepath, value: value2 };
|
|
8938
8938
|
}, exports3.resolvePreset = exports3.resolvePlugin = void 0;
|
|
8939
8939
|
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");
|
|
8940
8940
|
function _url() {
|
|
@@ -8972,13 +8972,13 @@ packageExtensions:
|
|
|
8972
8972
|
}
|
|
8973
8973
|
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;
|
|
8974
8974
|
}
|
|
8975
|
-
function tryRequireResolve(id,
|
|
8975
|
+
function tryRequireResolve(id, dirname5) {
|
|
8976
8976
|
try {
|
|
8977
|
-
return
|
|
8977
|
+
return dirname5 ? { 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")) => {
|
|
8978
8978
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
8979
8979
|
if (f2) return f2;
|
|
8980
8980
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
8981
|
-
})(id, { paths: [
|
|
8981
|
+
})(id, { paths: [dirname5] }) } : { 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) };
|
|
8982
8982
|
} catch (error) {
|
|
8983
8983
|
return { error, value: null };
|
|
8984
8984
|
}
|
|
@@ -8991,26 +8991,26 @@ packageExtensions:
|
|
|
8991
8991
|
return { error, value: null };
|
|
8992
8992
|
}
|
|
8993
8993
|
}
|
|
8994
|
-
function resolveStandardizedNameForRequire(type, name,
|
|
8994
|
+
function resolveStandardizedNameForRequire(type, name, dirname5) {
|
|
8995
8995
|
const it = resolveAlternativesHelper(type, name);
|
|
8996
8996
|
let res = it.next();
|
|
8997
|
-
for (; !res.done; ) res = it.next(tryRequireResolve(res.value,
|
|
8997
|
+
for (; !res.done; ) res = it.next(tryRequireResolve(res.value, dirname5));
|
|
8998
8998
|
return { loader: "require", filepath: res.value };
|
|
8999
8999
|
}
|
|
9000
|
-
function resolveStandardizedName(type, name,
|
|
9001
|
-
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name,
|
|
9000
|
+
function resolveStandardizedName(type, name, dirname5, allowAsync) {
|
|
9001
|
+
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name, dirname5);
|
|
9002
9002
|
try {
|
|
9003
|
-
const resolved = function(type2, name2,
|
|
9004
|
-
const parentUrl = (0, _url().pathToFileURL)(_path().join(
|
|
9003
|
+
const resolved = function(type2, name2, dirname6) {
|
|
9004
|
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname6, "./babel-virtual-resolve-base.js")).href, it = resolveAlternativesHelper(type2, name2);
|
|
9005
9005
|
let res = it.next();
|
|
9006
9006
|
for (; !res.done; ) res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
|
9007
9007
|
return { loader: "auto", filepath: (0, _url().fileURLToPath)(res.value) };
|
|
9008
|
-
}(type, name,
|
|
9009
|
-
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${
|
|
9008
|
+
}(type, name, dirname5);
|
|
9009
|
+
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname5}.`), { type: "MODULE_NOT_FOUND" });
|
|
9010
9010
|
return resolved;
|
|
9011
9011
|
} catch (e2) {
|
|
9012
9012
|
try {
|
|
9013
|
-
return resolveStandardizedNameForRequire(type, name,
|
|
9013
|
+
return resolveStandardizedNameForRequire(type, name, dirname5);
|
|
9014
9014
|
} catch (e22) {
|
|
9015
9015
|
if ("MODULE_NOT_FOUND" === e2.type) throw e2;
|
|
9016
9016
|
if ("MODULE_NOT_FOUND" === e22.type) throw e22;
|
|
@@ -9140,7 +9140,7 @@ packageExtensions:
|
|
|
9140
9140
|
}
|
|
9141
9141
|
};
|
|
9142
9142
|
}
|
|
9143
|
-
const makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
9143
|
+
const makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname5, alias }, cache2) {
|
|
9144
9144
|
if (false === options) throw new Error("Assertion failure");
|
|
9145
9145
|
options = options || {};
|
|
9146
9146
|
const externalDependencies = [];
|
|
@@ -9148,7 +9148,7 @@ packageExtensions:
|
|
|
9148
9148
|
if ("function" == typeof value2) {
|
|
9149
9149
|
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));
|
|
9150
9150
|
try {
|
|
9151
|
-
item = yield* factory(api, options,
|
|
9151
|
+
item = yield* factory(api, options, dirname5);
|
|
9152
9152
|
} catch (e2) {
|
|
9153
9153
|
throw alias && (e2.message += ` (While processing: ${JSON.stringify(alias)})`), e2;
|
|
9154
9154
|
}
|
|
@@ -9160,11 +9160,11 @@ packageExtensions:
|
|
|
9160
9160
|
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()\`
|
|
9161
9161
|
(While processing: ${JSON.stringify(alias)})`, new Error(error);
|
|
9162
9162
|
}
|
|
9163
|
-
return { value: item, options, dirname:
|
|
9164
|
-
}), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
9163
|
+
return { value: item, options, dirname: dirname5, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
|
|
9164
|
+
}), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname5, alias, externalDependencies }, cache2) {
|
|
9165
9165
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
9166
9166
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
9167
|
-
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname:
|
|
9167
|
+
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname: dirname5 }, inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, (run) => cache2.invalidate((data2) => run(inheritsDescriptor, data2)));
|
|
9168
9168
|
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]));
|
|
9169
9169
|
}
|
|
9170
9170
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
@@ -9187,7 +9187,7 @@ packageExtensions:
|
|
|
9187
9187
|
const { options } = preset;
|
|
9188
9188
|
validateIfOptionNeedsFilename(options, descriptor), null == (_options$overrides = options.overrides) || _options$overrides.forEach((overrideOptions) => validateIfOptionNeedsFilename(overrideOptions, descriptor));
|
|
9189
9189
|
}
|
|
9190
|
-
}, instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname:
|
|
9190
|
+
}, instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname: dirname5, alias, externalDependencies }) => ({ options: (0, _options.validate)("preset", value2), alias, dirname: dirname5, externalDependencies }));
|
|
9191
9191
|
function* loadPresetDescriptor(descriptor, context2) {
|
|
9192
9192
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
9193
9193
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
@@ -9307,8 +9307,8 @@ packageExtensions:
|
|
|
9307
9307
|
return data2;
|
|
9308
9308
|
}, data2;
|
|
9309
9309
|
}
|
|
9310
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname:
|
|
9311
|
-
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(
|
|
9310
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname: dirname5 = ".", type } = {}) {
|
|
9311
|
+
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname5), { type, alias: "programmatic item" }));
|
|
9312
9312
|
}, exports3.createItemFromDescriptor = createItemFromDescriptor, exports3.getItemDescriptor = function(item) {
|
|
9313
9313
|
if (null != item && item[CONFIG_ITEM_BRAND]) return item._descriptor;
|
|
9314
9314
|
return;
|
|
@@ -9358,7 +9358,7 @@ packageExtensions:
|
|
|
9358
9358
|
const _excluded = ["showIgnoredFiles"];
|
|
9359
9359
|
function* loadPrivatePartialConfig(inputOpts) {
|
|
9360
9360
|
if (null != inputOpts && ("object" != typeof inputOpts || Array.isArray(inputOpts))) throw new Error("Babel options must be an object, null, or undefined");
|
|
9361
|
-
const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd:
|
|
9361
|
+
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) {
|
|
9362
9362
|
switch (rootMode2) {
|
|
9363
9363
|
case "root":
|
|
9364
9364
|
return rootDir2;
|
|
@@ -9375,7 +9375,7 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
9375
9375
|
default:
|
|
9376
9376
|
throw new Error("Assertion failure - unknown rootMode value.");
|
|
9377
9377
|
}
|
|
9378
|
-
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(
|
|
9378
|
+
}(_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);
|
|
9379
9379
|
if (!configChain) return null;
|
|
9380
9380
|
const merged = { assumptions: {} };
|
|
9381
9381
|
configChain.options.forEach((opts) => {
|
|
@@ -9400,14 +9400,14 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
9400
9400
|
return data2;
|
|
9401
9401
|
}, data2;
|
|
9402
9402
|
}
|
|
9403
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern,
|
|
9404
|
-
const parts = _path().resolve(
|
|
9403
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern, dirname5) {
|
|
9404
|
+
const parts = _path().resolve(dirname5, pattern).split(_path().sep);
|
|
9405
9405
|
return new RegExp(["^", ...parts.map((part, i2) => {
|
|
9406
9406
|
const last = i2 === parts.length - 1;
|
|
9407
|
-
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep :
|
|
9407
|
+
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep4) : escapeRegExp(part) + (last ? endSep : sep4);
|
|
9408
9408
|
})].join(""));
|
|
9409
9409
|
};
|
|
9410
|
-
const
|
|
9410
|
+
const sep4 = `\\${_path().sep}`, endSep = `(?:${sep4}|$)`, substitution = `[^${sep4}]+`, starPat = `(?:${substitution}${sep4})`, starPatLast = `(?:${substitution}${endSep})`, starStarPat = `${starPat}*?`, starStarPatLast = `${starPat}*?${starPatLast}?`;
|
|
9411
9411
|
function escapeRegExp(string) {
|
|
9412
9412
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
9413
9413
|
}
|
|
@@ -9934,12 +9934,12 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
9934
9934
|
if (!result) {
|
|
9935
9935
|
if (resultP) return promiseReferenced = true, yield* (0, _async.waitFor)(resultP);
|
|
9936
9936
|
if (yield* (0, _async.isAsync)()) {
|
|
9937
|
-
let
|
|
9937
|
+
let resolve4, reject;
|
|
9938
9938
|
resultP = new Promise((res, rej) => {
|
|
9939
|
-
|
|
9939
|
+
resolve4 = res, reject = rej;
|
|
9940
9940
|
});
|
|
9941
9941
|
try {
|
|
9942
|
-
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced &&
|
|
9942
|
+
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced && resolve4(result.value);
|
|
9943
9943
|
} catch (error) {
|
|
9944
9944
|
result = { ok: false, value: error }, resultP = null, promiseReferenced && reject(error);
|
|
9945
9945
|
}
|
|
@@ -10042,8 +10042,8 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
10042
10042
|
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");
|
|
10043
10043
|
__webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js");
|
|
10044
10044
|
exports3.version = "7.26.0";
|
|
10045
|
-
exports3.resolvePlugin = (name,
|
|
10046
|
-
exports3.resolvePreset = (name,
|
|
10045
|
+
exports3.resolvePlugin = (name, dirname5) => resolvers.resolvePlugin(name, dirname5, false).filepath;
|
|
10046
|
+
exports3.resolvePreset = (name, dirname5) => resolvers.resolvePreset(name, dirname5, false).filepath;
|
|
10047
10047
|
exports3.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
10048
10048
|
exports3.OptionManager = class {
|
|
10049
10049
|
init(opts) {
|
|
@@ -10655,7 +10655,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
10655
10655
|
}, data2;
|
|
10656
10656
|
}
|
|
10657
10657
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(config) {
|
|
10658
|
-
const { filename, cwd:
|
|
10658
|
+
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) });
|
|
10659
10659
|
for (const plugins of config.passes) for (const plugin of plugins) plugin.manipulateOptions && plugin.manipulateOptions(options, options.parserOpts);
|
|
10660
10660
|
return options;
|
|
10661
10661
|
};
|
|
@@ -10967,8 +10967,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
10967
10967
|
const packageType = getPackageType2(url);
|
|
10968
10968
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
10969
10969
|
}
|
|
10970
|
-
const
|
|
10971
|
-
if (
|
|
10970
|
+
const format4 = extensionFormatMap2[value2];
|
|
10971
|
+
if (format4) return format4;
|
|
10972
10972
|
if (ignoreErrors) return;
|
|
10973
10973
|
const filepath = (0, _url().fileURLToPath)(url);
|
|
10974
10974
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -12304,11 +12304,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12304
12304
|
function maybePrintTrailingCommaOrSemicolon(printer, node) {
|
|
12305
12305
|
printer.tokenMap && node.start && node.end ? printer.tokenMap.endMatches(node, ",") ? printer.token(",") : printer.tokenMap.endMatches(node, ";") && printer.semicolon() : printer.semicolon();
|
|
12306
12306
|
}
|
|
12307
|
-
function tsPrintUnionOrIntersectionType(printer, node,
|
|
12307
|
+
function tsPrintUnionOrIntersectionType(printer, node, sep4) {
|
|
12308
12308
|
var _printer$tokenMap;
|
|
12309
12309
|
let hasLeadingToken = 0;
|
|
12310
|
-
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node,
|
|
12311
|
-
this.space(), this.token(
|
|
12310
|
+
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node, sep4) && (hasLeadingToken = 1, printer.token(sep4)), printer.printJoin(node.types, void 0, void 0, function(i2) {
|
|
12311
|
+
this.space(), this.token(sep4, null, i2 + hasLeadingToken), this.space();
|
|
12312
12312
|
});
|
|
12313
12313
|
}
|
|
12314
12314
|
function tokenIfPlusMinus(self2, tok) {
|
|
@@ -12528,8 +12528,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12528
12528
|
}, "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/index.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
12529
12529
|
"use strict";
|
|
12530
12530
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(ast, opts = {}, code) {
|
|
12531
|
-
const
|
|
12532
|
-
return new _printer.default(
|
|
12531
|
+
const format4 = normalizeOptions(code, opts, ast), map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
12532
|
+
return new _printer.default(format4, map, ast.tokens, "string" == typeof code ? code : null).generate(ast);
|
|
12533
12533
|
};
|
|
12534
12534
|
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");
|
|
12535
12535
|
function normalizeOptions(code, opts, ast) {
|
|
@@ -12541,11 +12541,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12541
12541
|
if (opts.jsescOption) throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
|
|
12542
12542
|
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.");
|
|
12543
12543
|
}
|
|
12544
|
-
const
|
|
12544
|
+
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 };
|
|
12545
12545
|
var _opts$recordAndTupleS;
|
|
12546
|
-
|
|
12547
|
-
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =
|
|
12548
|
-
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (
|
|
12546
|
+
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);
|
|
12547
|
+
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } = format4;
|
|
12548
|
+
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (format4.auxiliaryCommentBefore = void 0), auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter) && (format4.auxiliaryCommentAfter = void 0), format4;
|
|
12549
12549
|
}
|
|
12550
12550
|
exports3.CodeGenerator = class {
|
|
12551
12551
|
constructor(ast, opts = {}, code) {
|
|
@@ -12801,8 +12801,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12801
12801
|
}
|
|
12802
12802
|
const { needsParens } = n;
|
|
12803
12803
|
class Printer {
|
|
12804
|
-
constructor(
|
|
12805
|
-
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 =
|
|
12804
|
+
constructor(format4, map, tokens, originalCode) {
|
|
12805
|
+
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]);
|
|
12806
12806
|
}
|
|
12807
12807
|
enterForStatementInit() {
|
|
12808
12808
|
return this.inForStatementInit ? () => {
|
|
@@ -12821,12 +12821,12 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12821
12821
|
return this.format.preserveFormat && (this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode)), this.print(ast), this._maybeAddAuxComment(), this._buf.get();
|
|
12822
12822
|
}
|
|
12823
12823
|
indent() {
|
|
12824
|
-
const { format:
|
|
12825
|
-
|
|
12824
|
+
const { format: format4 } = this;
|
|
12825
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent++;
|
|
12826
12826
|
}
|
|
12827
12827
|
dedent() {
|
|
12828
|
-
const { format:
|
|
12829
|
-
|
|
12828
|
+
const { format: format4 } = this;
|
|
12829
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent--;
|
|
12830
12830
|
}
|
|
12831
12831
|
semicolon(force = false) {
|
|
12832
12832
|
if (this._maybeAddAuxComment(), force) return this._appendChar(59), void (this._noLineTerminator = false);
|
|
@@ -12847,8 +12847,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12847
12847
|
this.sourceWithOffset("end", node.loc, -1), this.tokenChar(41);
|
|
12848
12848
|
}
|
|
12849
12849
|
space(force = false) {
|
|
12850
|
-
const { format:
|
|
12851
|
-
if (!
|
|
12850
|
+
const { format: format4 } = this;
|
|
12851
|
+
if (!format4.compact && !format4.preserveFormat) {
|
|
12852
12852
|
if (force) this._space();
|
|
12853
12853
|
else if (this._buf.hasContent()) {
|
|
12854
12854
|
const lastCp = this.getLastChar();
|
|
@@ -12947,8 +12947,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12947
12947
|
for (let i2 = 0; i2 < count; i2++) this._newline();
|
|
12948
12948
|
}
|
|
12949
12949
|
_catchUp(prop, loc) {
|
|
12950
|
-
const { format:
|
|
12951
|
-
if (!
|
|
12950
|
+
const { format: format4 } = this;
|
|
12951
|
+
if (!format4.preserveFormat) return void (format4.retainLines && null != loc && loc[prop] && this.catchUp(loc[prop].line));
|
|
12952
12952
|
const pos = null == loc ? void 0 : loc[prop];
|
|
12953
12953
|
null != pos && this._catchUpTo(pos);
|
|
12954
12954
|
}
|
|
@@ -12972,8 +12972,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12972
12972
|
var _node$extra, _node$leadingComments, _node$leadingComments2;
|
|
12973
12973
|
if (!node) return;
|
|
12974
12974
|
this._endsWithInnerRaw = false;
|
|
12975
|
-
const nodeType = node.type,
|
|
12976
|
-
node._compact && (
|
|
12975
|
+
const nodeType = node.type, format4 = this.format, oldConcise = format4.concise;
|
|
12976
|
+
node._compact && (format4.concise = true);
|
|
12977
12977
|
const printMethod = this[nodeType];
|
|
12978
12978
|
if (void 0 === printMethod) throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);
|
|
12979
12979
|
const parent = this._currentNode;
|
|
@@ -12981,7 +12981,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12981
12981
|
const oldInAux = this._insideAux;
|
|
12982
12982
|
this._insideAux = null == node.loc, this._maybeAddAuxComment(this._insideAux && !oldInAux);
|
|
12983
12983
|
const parenthesized = null == (_node$extra = node.extra) ? void 0 : _node$extra.parenthesized;
|
|
12984
|
-
let shouldPrintParens = parenthesized &&
|
|
12984
|
+
let shouldPrintParens = parenthesized && format4.preserveFormat || parenthesized && format4.retainFunctionParens && "FunctionExpression" === nodeType || needsParens(node, parent, this.tokenContext, this.inForStatementInit, format4.preserveFormat ? this._boundGetRawIdentifier : void 0);
|
|
12985
12985
|
if (!shouldPrintParens && parenthesized && null != (_node$leadingComments = node.leadingComments) && _node$leadingComments.length && "CommentBlock" === node.leadingComments[0].type) {
|
|
12986
12986
|
switch (null == parent ? void 0 : parent.type) {
|
|
12987
12987
|
case "ExpressionStatement":
|
|
@@ -13002,7 +13002,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
13002
13002
|
(!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)));
|
|
13003
13003
|
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);
|
|
13004
13004
|
const loc = "Program" === nodeType || "File" === nodeType ? null : node.loc;
|
|
13005
|
-
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,
|
|
13005
|
+
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;
|
|
13006
13006
|
}
|
|
13007
13007
|
_maybeAddAuxComment(enteredPositionlessNode) {
|
|
13008
13008
|
enteredPositionlessNode && this._printAuxBeforeComment(), this._insideAux || this._printAuxAfterComment();
|
|
@@ -13088,9 +13088,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
13088
13088
|
return listEndIndex <= 0 ? null : this.tokenMap.matchesOriginal(this._tokens[listEndIndex - 1], ",");
|
|
13089
13089
|
}
|
|
13090
13090
|
_printNewline(newLine, opts) {
|
|
13091
|
-
const
|
|
13092
|
-
if (
|
|
13093
|
-
if (
|
|
13091
|
+
const format4 = this.format;
|
|
13092
|
+
if (format4.retainLines || format4.compact) return;
|
|
13093
|
+
if (format4.concise) return void this.space();
|
|
13094
13094
|
if (!newLine) return;
|
|
13095
13095
|
const startLine = opts.nextNodeStartLine, lastCommentLine = this._lastCommentLine;
|
|
13096
13096
|
if (startLine > 0 && lastCommentLine > 0) {
|
|
@@ -15575,13 +15575,13 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
15575
15575
|
}(range, api.version);
|
|
15576
15576
|
} };
|
|
15577
15577
|
function declare(builder) {
|
|
15578
|
-
return (api, options,
|
|
15578
|
+
return (api, options, dirname5) => {
|
|
15579
15579
|
var _clonedApi2;
|
|
15580
15580
|
let clonedApi;
|
|
15581
15581
|
for (const name of Object.keys(apiPolyfills)) {
|
|
15582
15582
|
api[name] || (null != clonedApi || (clonedApi = copyApiObject(api)), clonedApi[name] = apiPolyfills[name](clonedApi));
|
|
15583
15583
|
}
|
|
15584
|
-
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {},
|
|
15584
|
+
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {}, dirname5);
|
|
15585
15585
|
};
|
|
15586
15586
|
}
|
|
15587
15587
|
Object.assign(apiPolyfills, { targets: () => () => ({}), assumption: () => () => {
|
|
@@ -18791,9 +18791,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
18791
18791
|
var _node$extra;
|
|
18792
18792
|
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();
|
|
18793
18793
|
}
|
|
18794
|
-
forwardNoArrowParamsConversionAt(node,
|
|
18794
|
+
forwardNoArrowParamsConversionAt(node, parse7) {
|
|
18795
18795
|
let result;
|
|
18796
|
-
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result =
|
|
18796
|
+
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;
|
|
18797
18797
|
}
|
|
18798
18798
|
parseParenItem(node, startLoc) {
|
|
18799
18799
|
const newNode = super.parseParenItem(node, startLoc);
|
|
@@ -26001,8 +26001,8 @@ ${str}
|
|
|
26001
26001
|
}
|
|
26002
26002
|
}
|
|
26003
26003
|
dump() {
|
|
26004
|
-
const
|
|
26005
|
-
console.log(
|
|
26004
|
+
const sep4 = "-".repeat(60);
|
|
26005
|
+
console.log(sep4);
|
|
26006
26006
|
let scope = this;
|
|
26007
26007
|
do {
|
|
26008
26008
|
console.log("#", scope.block.type);
|
|
@@ -26011,7 +26011,7 @@ ${str}
|
|
|
26011
26011
|
console.log(" -", name, { constant: binding.constant, references: binding.references, violations: binding.constantViolations.length, kind: binding.kind });
|
|
26012
26012
|
}
|
|
26013
26013
|
} while (scope = scope.parent);
|
|
26014
|
-
console.log(
|
|
26014
|
+
console.log(sep4);
|
|
26015
26015
|
}
|
|
26016
26016
|
hasLabel(name) {
|
|
26017
26017
|
return !!this.getLabel(name);
|
|
@@ -32225,16 +32225,16 @@ ${trace}`);
|
|
|
32225
32225
|
} } };
|
|
32226
32226
|
}
|
|
32227
32227
|
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.25.9/node_modules/@babel/template/lib/index.js");
|
|
32228
|
-
const
|
|
32229
|
-
function
|
|
32230
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
32228
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
32229
|
+
function normalizeWindowsPath3(input = "") {
|
|
32230
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
32231
32231
|
}
|
|
32232
|
-
const
|
|
32232
|
+
const _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/;
|
|
32233
32233
|
const pathe_ff20891b_isAbsolute = function(p2) {
|
|
32234
|
-
return
|
|
32234
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
32235
32235
|
}, pathe_ff20891b_dirname = function(p2) {
|
|
32236
|
-
const segments =
|
|
32237
|
-
return 1 === segments.length &&
|
|
32236
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
32237
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (pathe_ff20891b_isAbsolute(p2) ? "/" : ".");
|
|
32238
32238
|
};
|
|
32239
32239
|
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]");
|
|
32240
32240
|
function isInAstralSet2(code, set) {
|
|
@@ -40069,6 +40069,174 @@ var init_dist2 = __esm({
|
|
|
40069
40069
|
}
|
|
40070
40070
|
});
|
|
40071
40071
|
|
|
40072
|
+
// node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
40073
|
+
function normalizeWindowsPath2(input = "") {
|
|
40074
|
+
if (!input) {
|
|
40075
|
+
return input;
|
|
40076
|
+
}
|
|
40077
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r4) => r4.toUpperCase());
|
|
40078
|
+
}
|
|
40079
|
+
function cwd2() {
|
|
40080
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
40081
|
+
return process.cwd().replace(/\\/g, "/");
|
|
40082
|
+
}
|
|
40083
|
+
return "/";
|
|
40084
|
+
}
|
|
40085
|
+
function normalizeString2(path7, allowAboveRoot) {
|
|
40086
|
+
let res = "";
|
|
40087
|
+
let lastSegmentLength = 0;
|
|
40088
|
+
let lastSlash = -1;
|
|
40089
|
+
let dots = 0;
|
|
40090
|
+
let char = null;
|
|
40091
|
+
for (let index = 0; index <= path7.length; ++index) {
|
|
40092
|
+
if (index < path7.length) {
|
|
40093
|
+
char = path7[index];
|
|
40094
|
+
} else if (char === "/") {
|
|
40095
|
+
break;
|
|
40096
|
+
} else {
|
|
40097
|
+
char = "/";
|
|
40098
|
+
}
|
|
40099
|
+
if (char === "/") {
|
|
40100
|
+
if (lastSlash === index - 1 || dots === 1) ;
|
|
40101
|
+
else if (dots === 2) {
|
|
40102
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
40103
|
+
if (res.length > 2) {
|
|
40104
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
40105
|
+
if (lastSlashIndex === -1) {
|
|
40106
|
+
res = "";
|
|
40107
|
+
lastSegmentLength = 0;
|
|
40108
|
+
} else {
|
|
40109
|
+
res = res.slice(0, lastSlashIndex);
|
|
40110
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
40111
|
+
}
|
|
40112
|
+
lastSlash = index;
|
|
40113
|
+
dots = 0;
|
|
40114
|
+
continue;
|
|
40115
|
+
} else if (res.length > 0) {
|
|
40116
|
+
res = "";
|
|
40117
|
+
lastSegmentLength = 0;
|
|
40118
|
+
lastSlash = index;
|
|
40119
|
+
dots = 0;
|
|
40120
|
+
continue;
|
|
40121
|
+
}
|
|
40122
|
+
}
|
|
40123
|
+
if (allowAboveRoot) {
|
|
40124
|
+
res += res.length > 0 ? "/.." : "..";
|
|
40125
|
+
lastSegmentLength = 2;
|
|
40126
|
+
}
|
|
40127
|
+
} else {
|
|
40128
|
+
if (res.length > 0) {
|
|
40129
|
+
res += `/${path7.slice(lastSlash + 1, index)}`;
|
|
40130
|
+
} else {
|
|
40131
|
+
res = path7.slice(lastSlash + 1, index);
|
|
40132
|
+
}
|
|
40133
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
40134
|
+
}
|
|
40135
|
+
lastSlash = index;
|
|
40136
|
+
dots = 0;
|
|
40137
|
+
} else if (char === "." && dots !== -1) {
|
|
40138
|
+
++dots;
|
|
40139
|
+
} else {
|
|
40140
|
+
dots = -1;
|
|
40141
|
+
}
|
|
40142
|
+
}
|
|
40143
|
+
return res;
|
|
40144
|
+
}
|
|
40145
|
+
var _DRIVE_LETTER_START_RE2, _UNC_REGEX2, _IS_ABSOLUTE_RE2, _DRIVE_LETTER_RE2, normalize3, join4, resolve2, isAbsolute2, dirname2;
|
|
40146
|
+
var init_pathe_BLwDEnA5 = __esm({
|
|
40147
|
+
"node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs"() {
|
|
40148
|
+
_DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
40149
|
+
_UNC_REGEX2 = /^[/\\]{2}/;
|
|
40150
|
+
_IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
40151
|
+
_DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
40152
|
+
normalize3 = function(path7) {
|
|
40153
|
+
if (path7.length === 0) {
|
|
40154
|
+
return ".";
|
|
40155
|
+
}
|
|
40156
|
+
path7 = normalizeWindowsPath2(path7);
|
|
40157
|
+
const isUNCPath = path7.match(_UNC_REGEX2);
|
|
40158
|
+
const isPathAbsolute = isAbsolute2(path7);
|
|
40159
|
+
const trailingSeparator = path7[path7.length - 1] === "/";
|
|
40160
|
+
path7 = normalizeString2(path7, !isPathAbsolute);
|
|
40161
|
+
if (path7.length === 0) {
|
|
40162
|
+
if (isPathAbsolute) {
|
|
40163
|
+
return "/";
|
|
40164
|
+
}
|
|
40165
|
+
return trailingSeparator ? "./" : ".";
|
|
40166
|
+
}
|
|
40167
|
+
if (trailingSeparator) {
|
|
40168
|
+
path7 += "/";
|
|
40169
|
+
}
|
|
40170
|
+
if (_DRIVE_LETTER_RE2.test(path7)) {
|
|
40171
|
+
path7 += "/";
|
|
40172
|
+
}
|
|
40173
|
+
if (isUNCPath) {
|
|
40174
|
+
if (!isPathAbsolute) {
|
|
40175
|
+
return `//./${path7}`;
|
|
40176
|
+
}
|
|
40177
|
+
return `//${path7}`;
|
|
40178
|
+
}
|
|
40179
|
+
return isPathAbsolute && !isAbsolute2(path7) ? `/${path7}` : path7;
|
|
40180
|
+
};
|
|
40181
|
+
join4 = function(...segments) {
|
|
40182
|
+
let path7 = "";
|
|
40183
|
+
for (const seg of segments) {
|
|
40184
|
+
if (!seg) {
|
|
40185
|
+
continue;
|
|
40186
|
+
}
|
|
40187
|
+
if (path7.length > 0) {
|
|
40188
|
+
const pathTrailing = path7[path7.length - 1] === "/";
|
|
40189
|
+
const segLeading = seg[0] === "/";
|
|
40190
|
+
const both = pathTrailing && segLeading;
|
|
40191
|
+
if (both) {
|
|
40192
|
+
path7 += seg.slice(1);
|
|
40193
|
+
} else {
|
|
40194
|
+
path7 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
40195
|
+
}
|
|
40196
|
+
} else {
|
|
40197
|
+
path7 += seg;
|
|
40198
|
+
}
|
|
40199
|
+
}
|
|
40200
|
+
return normalize3(path7);
|
|
40201
|
+
};
|
|
40202
|
+
resolve2 = function(...arguments_) {
|
|
40203
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
40204
|
+
let resolvedPath = "";
|
|
40205
|
+
let resolvedAbsolute = false;
|
|
40206
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
40207
|
+
const path7 = index >= 0 ? arguments_[index] : cwd2();
|
|
40208
|
+
if (!path7 || path7.length === 0) {
|
|
40209
|
+
continue;
|
|
40210
|
+
}
|
|
40211
|
+
resolvedPath = `${path7}/${resolvedPath}`;
|
|
40212
|
+
resolvedAbsolute = isAbsolute2(path7);
|
|
40213
|
+
}
|
|
40214
|
+
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
40215
|
+
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
40216
|
+
return `/${resolvedPath}`;
|
|
40217
|
+
}
|
|
40218
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
40219
|
+
};
|
|
40220
|
+
isAbsolute2 = function(p2) {
|
|
40221
|
+
return _IS_ABSOLUTE_RE2.test(p2);
|
|
40222
|
+
};
|
|
40223
|
+
dirname2 = function(p2) {
|
|
40224
|
+
const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
40225
|
+
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
40226
|
+
segments[0] += "/";
|
|
40227
|
+
}
|
|
40228
|
+
return segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
|
|
40229
|
+
};
|
|
40230
|
+
}
|
|
40231
|
+
});
|
|
40232
|
+
|
|
40233
|
+
// node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs
|
|
40234
|
+
var init_dist3 = __esm({
|
|
40235
|
+
"node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs"() {
|
|
40236
|
+
init_pathe_BLwDEnA5();
|
|
40237
|
+
}
|
|
40238
|
+
});
|
|
40239
|
+
|
|
40072
40240
|
// node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
40073
40241
|
function g(e2, t2) {
|
|
40074
40242
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -42702,17 +42870,17 @@ ${f2}`, i2);
|
|
|
42702
42870
|
});
|
|
42703
42871
|
|
|
42704
42872
|
// node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
42705
|
-
var
|
|
42873
|
+
var init_dist4 = __esm({
|
|
42706
42874
|
"node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs"() {
|
|
42707
42875
|
init_confbox_f9f03f05();
|
|
42708
42876
|
}
|
|
42709
42877
|
});
|
|
42710
42878
|
|
|
42711
|
-
// node_modules/.pnpm/pkg-types@1.3.
|
|
42879
|
+
// node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
42712
42880
|
async function findFile(filename, _options = {}) {
|
|
42713
42881
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
42714
42882
|
const options = { ...defaultFindOptions, ..._options };
|
|
42715
|
-
const basePath =
|
|
42883
|
+
const basePath = resolve2(options.startingFrom);
|
|
42716
42884
|
const leadingSlash = basePath[0] === "/";
|
|
42717
42885
|
const segments = basePath.split("/").filter(Boolean);
|
|
42718
42886
|
if (leadingSlash) {
|
|
@@ -42725,7 +42893,7 @@ async function findFile(filename, _options = {}) {
|
|
|
42725
42893
|
if (options.reverse) {
|
|
42726
42894
|
for (let index = root + 1; index <= segments.length; index++) {
|
|
42727
42895
|
for (const filename2 of filenames) {
|
|
42728
|
-
const filePath =
|
|
42896
|
+
const filePath = join4(...segments.slice(0, index), filename2);
|
|
42729
42897
|
if (await options.test(filePath)) {
|
|
42730
42898
|
return filePath;
|
|
42731
42899
|
}
|
|
@@ -42734,7 +42902,7 @@ async function findFile(filename, _options = {}) {
|
|
|
42734
42902
|
} else {
|
|
42735
42903
|
for (let index = segments.length; index > root; index--) {
|
|
42736
42904
|
for (const filename2 of filenames) {
|
|
42737
|
-
const filePath =
|
|
42905
|
+
const filePath = join4(...segments.slice(0, index), filename2);
|
|
42738
42906
|
if (await options.test(filePath)) {
|
|
42739
42907
|
return filePath;
|
|
42740
42908
|
}
|
|
@@ -42765,14 +42933,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
42765
42933
|
return parsed;
|
|
42766
42934
|
}
|
|
42767
42935
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
42768
|
-
const resolvedPath =
|
|
42936
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
42769
42937
|
return findNearestFile("package.json", {
|
|
42770
42938
|
startingFrom: resolvedPath,
|
|
42771
42939
|
...options
|
|
42772
42940
|
});
|
|
42773
42941
|
}
|
|
42774
42942
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
42775
|
-
const resolvedPath =
|
|
42943
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
42776
42944
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
42777
42945
|
try {
|
|
42778
42946
|
return await findNearestFile(lockFiles, _options);
|
|
@@ -42781,11 +42949,11 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
42781
42949
|
throw new Error("No lockfile found from " + id);
|
|
42782
42950
|
}
|
|
42783
42951
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
42784
|
-
const resolvedPath =
|
|
42952
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
42785
42953
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
42786
42954
|
try {
|
|
42787
42955
|
const r4 = await findNearestFile(".git/config", _options);
|
|
42788
|
-
return
|
|
42956
|
+
return resolve2(r4, "../..");
|
|
42789
42957
|
} catch {
|
|
42790
42958
|
}
|
|
42791
42959
|
try {
|
|
@@ -42793,23 +42961,23 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
42793
42961
|
..._options,
|
|
42794
42962
|
reverse: true
|
|
42795
42963
|
});
|
|
42796
|
-
return
|
|
42964
|
+
return dirname2(r4);
|
|
42797
42965
|
} catch {
|
|
42798
42966
|
}
|
|
42799
42967
|
try {
|
|
42800
42968
|
const r4 = await findFile(resolvedPath, _options);
|
|
42801
|
-
return
|
|
42969
|
+
return dirname2(r4);
|
|
42802
42970
|
} catch {
|
|
42803
42971
|
}
|
|
42804
42972
|
throw new Error("Cannot detect workspace root from " + id);
|
|
42805
42973
|
}
|
|
42806
42974
|
var import_node_fs3, defaultFindOptions, FileCache, lockFiles;
|
|
42807
|
-
var
|
|
42808
|
-
"node_modules/.pnpm/pkg-types@1.3.
|
|
42975
|
+
var init_dist5 = __esm({
|
|
42976
|
+
"node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs"() {
|
|
42809
42977
|
import_node_fs3 = require("node:fs");
|
|
42810
|
-
init_dist();
|
|
42811
|
-
init_dist5();
|
|
42812
42978
|
init_dist3();
|
|
42979
|
+
init_dist6();
|
|
42980
|
+
init_dist4();
|
|
42813
42981
|
defaultFindOptions = {
|
|
42814
42982
|
startingFrom: ".",
|
|
42815
42983
|
rootPattern: /^node_modules$/,
|
|
@@ -42829,12 +42997,13 @@ var init_dist4 = __esm({
|
|
|
42829
42997
|
"package-lock.json",
|
|
42830
42998
|
"pnpm-lock.yaml",
|
|
42831
42999
|
"npm-shrinkwrap.json",
|
|
42832
|
-
"bun.lockb"
|
|
43000
|
+
"bun.lockb",
|
|
43001
|
+
"bun.lock"
|
|
42833
43002
|
];
|
|
42834
43003
|
}
|
|
42835
43004
|
});
|
|
42836
43005
|
|
|
42837
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
43006
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
42838
43007
|
function normalizeSlash(path7) {
|
|
42839
43008
|
return path7.replace(/\\/g, "/");
|
|
42840
43009
|
}
|
|
@@ -43041,7 +43210,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
43041
43210
|
) || [null, null, null];
|
|
43042
43211
|
return mimeToFormat(mime);
|
|
43043
43212
|
}
|
|
43044
|
-
function
|
|
43213
|
+
function extname3(url) {
|
|
43045
43214
|
const pathname = url.pathname;
|
|
43046
43215
|
let index = pathname.length;
|
|
43047
43216
|
while (index--) {
|
|
@@ -43056,7 +43225,7 @@ function extname2(url) {
|
|
|
43056
43225
|
return "";
|
|
43057
43226
|
}
|
|
43058
43227
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
43059
|
-
const value2 =
|
|
43228
|
+
const value2 = extname3(url);
|
|
43060
43229
|
if (value2 === ".js") {
|
|
43061
43230
|
const packageType = getPackageType(url);
|
|
43062
43231
|
if (packageType !== "none") {
|
|
@@ -43071,8 +43240,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
43071
43240
|
}
|
|
43072
43241
|
return "module";
|
|
43073
43242
|
}
|
|
43074
|
-
const
|
|
43075
|
-
if (
|
|
43243
|
+
const format4 = extensionFormatMap[value2];
|
|
43244
|
+
if (format4) return format4;
|
|
43076
43245
|
if (ignoreErrors) {
|
|
43077
43246
|
return void 0;
|
|
43078
43247
|
}
|
|
@@ -43104,8 +43273,8 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
43104
43273
|
if (import_node_process.default.noDeprecation) {
|
|
43105
43274
|
return;
|
|
43106
43275
|
}
|
|
43107
|
-
const
|
|
43108
|
-
if (
|
|
43276
|
+
const format4 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
43277
|
+
if (format4 !== "module") return;
|
|
43109
43278
|
const urlPath = (0, import_node_url4.fileURLToPath)(url.href);
|
|
43110
43279
|
const packagePath = (0, import_node_url4.fileURLToPath)(new import_node_url4.URL(".", packageJsonUrl));
|
|
43111
43280
|
const basePath = (0, import_node_url4.fileURLToPath)(base);
|
|
@@ -43222,7 +43391,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
43222
43391
|
error.url = String(resolved);
|
|
43223
43392
|
throw error;
|
|
43224
43393
|
}
|
|
43225
|
-
|
|
43394
|
+
{
|
|
43226
43395
|
const real = (0, import_node_fs4.realpathSync)(filePath);
|
|
43227
43396
|
const { search, hash: hash2 } = resolved;
|
|
43228
43397
|
resolved = (0, import_node_url4.pathToFileURL)(real + (filePath.endsWith(import_node_path5.default.sep) ? "/" : ""));
|
|
@@ -43769,7 +43938,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
43769
43938
|
if (resolved.protocol !== "file:") {
|
|
43770
43939
|
return resolved;
|
|
43771
43940
|
}
|
|
43772
|
-
return finalizeResolution(resolved, base
|
|
43941
|
+
return finalizeResolution(resolved, base);
|
|
43773
43942
|
}
|
|
43774
43943
|
function fileURLToPath4(id) {
|
|
43775
43944
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -43818,7 +43987,7 @@ function _resolve2(id, options = {}) {
|
|
|
43818
43987
|
if (id.startsWith("file://")) {
|
|
43819
43988
|
id = fileURLToPath4(id);
|
|
43820
43989
|
}
|
|
43821
|
-
if (
|
|
43990
|
+
if (isAbsolute2(id)) {
|
|
43822
43991
|
try {
|
|
43823
43992
|
const stat = (0, import_node_fs4.statSync)(id);
|
|
43824
43993
|
if (stat.isFile()) {
|
|
@@ -43895,13 +44064,13 @@ function resolvePath(id, options) {
|
|
|
43895
44064
|
}
|
|
43896
44065
|
}
|
|
43897
44066
|
var import_node_module2, import_node_fs4, import_node_url4, import_node_assert, import_node_process, import_node_path5, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty3, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
|
|
43898
|
-
var
|
|
43899
|
-
"node_modules/.pnpm/mlly@1.7.
|
|
44067
|
+
var init_dist6 = __esm({
|
|
44068
|
+
"node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs"() {
|
|
43900
44069
|
init_acorn();
|
|
43901
44070
|
import_node_module2 = require("node:module");
|
|
43902
44071
|
import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
43903
44072
|
init_dist2();
|
|
43904
|
-
|
|
44073
|
+
init_dist3();
|
|
43905
44074
|
import_node_url4 = require("node:url");
|
|
43906
44075
|
import_node_assert = __toESM(require("node:assert"), 1);
|
|
43907
44076
|
import_node_process = __toESM(require("node:process"), 1);
|
|
@@ -44274,7 +44443,7 @@ var require_main = __commonJS({
|
|
|
44274
44443
|
var packageJson = require_package();
|
|
44275
44444
|
var version2 = packageJson.version;
|
|
44276
44445
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
44277
|
-
function
|
|
44446
|
+
function parse7(src) {
|
|
44278
44447
|
const obj = {};
|
|
44279
44448
|
let lines = src.toString();
|
|
44280
44449
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
@@ -44517,7 +44686,7 @@ var require_main = __commonJS({
|
|
|
44517
44686
|
_parseVault,
|
|
44518
44687
|
config,
|
|
44519
44688
|
decrypt,
|
|
44520
|
-
parse:
|
|
44689
|
+
parse: parse7,
|
|
44521
44690
|
populate
|
|
44522
44691
|
};
|
|
44523
44692
|
module2.exports.configDotenv = DotenvModule.configDotenv;
|
|
@@ -45001,10 +45170,10 @@ var require_minipass = __commonJS({
|
|
|
45001
45170
|
}
|
|
45002
45171
|
// stream.promise().then(() => done, er => emitted error)
|
|
45003
45172
|
promise() {
|
|
45004
|
-
return new Promise((
|
|
45173
|
+
return new Promise((resolve4, reject) => {
|
|
45005
45174
|
this.on(DESTROYED2, () => reject(new Error("stream destroyed")));
|
|
45006
45175
|
this.on("error", (er2) => reject(er2));
|
|
45007
|
-
this.on("end", () =>
|
|
45176
|
+
this.on("end", () => resolve4());
|
|
45008
45177
|
});
|
|
45009
45178
|
}
|
|
45010
45179
|
// for await (let chunk of stream)
|
|
@@ -45020,7 +45189,7 @@ var require_minipass = __commonJS({
|
|
|
45020
45189
|
const res = this.read();
|
|
45021
45190
|
if (res !== null) return Promise.resolve({ done: false, value: res });
|
|
45022
45191
|
if (this[EOF2]) return stop();
|
|
45023
|
-
let
|
|
45192
|
+
let resolve4 = null;
|
|
45024
45193
|
let reject = null;
|
|
45025
45194
|
const onerr = (er2) => {
|
|
45026
45195
|
this.removeListener("data", ondata);
|
|
@@ -45034,19 +45203,19 @@ var require_minipass = __commonJS({
|
|
|
45034
45203
|
this.removeListener("end", onend);
|
|
45035
45204
|
this.removeListener(DESTROYED2, ondestroy);
|
|
45036
45205
|
this.pause();
|
|
45037
|
-
|
|
45206
|
+
resolve4({ value: value2, done: !!this[EOF2] });
|
|
45038
45207
|
};
|
|
45039
45208
|
const onend = () => {
|
|
45040
45209
|
this.removeListener("error", onerr);
|
|
45041
45210
|
this.removeListener("data", ondata);
|
|
45042
45211
|
this.removeListener(DESTROYED2, ondestroy);
|
|
45043
45212
|
stop();
|
|
45044
|
-
|
|
45213
|
+
resolve4({ done: true });
|
|
45045
45214
|
};
|
|
45046
45215
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
45047
45216
|
return new Promise((res2, rej) => {
|
|
45048
45217
|
reject = rej;
|
|
45049
|
-
|
|
45218
|
+
resolve4 = res2;
|
|
45050
45219
|
this.once(DESTROYED2, ondestroy);
|
|
45051
45220
|
this.once("error", onerr);
|
|
45052
45221
|
this.once("end", onend);
|
|
@@ -45674,10 +45843,10 @@ var require_minipass2 = __commonJS({
|
|
|
45674
45843
|
}
|
|
45675
45844
|
// stream.promise().then(() => done, er => emitted error)
|
|
45676
45845
|
promise() {
|
|
45677
|
-
return new Promise((
|
|
45846
|
+
return new Promise((resolve4, reject) => {
|
|
45678
45847
|
this.on(DESTROYED2, () => reject(new Error("stream destroyed")));
|
|
45679
45848
|
this.on("error", (er2) => reject(er2));
|
|
45680
|
-
this.on("end", () =>
|
|
45849
|
+
this.on("end", () => resolve4());
|
|
45681
45850
|
});
|
|
45682
45851
|
}
|
|
45683
45852
|
// for await (let chunk of stream)
|
|
@@ -45688,7 +45857,7 @@ var require_minipass2 = __commonJS({
|
|
|
45688
45857
|
return Promise.resolve({ done: false, value: res });
|
|
45689
45858
|
if (this[EOF2])
|
|
45690
45859
|
return Promise.resolve({ done: true });
|
|
45691
|
-
let
|
|
45860
|
+
let resolve4 = null;
|
|
45692
45861
|
let reject = null;
|
|
45693
45862
|
const onerr = (er2) => {
|
|
45694
45863
|
this.removeListener("data", ondata);
|
|
@@ -45699,17 +45868,17 @@ var require_minipass2 = __commonJS({
|
|
|
45699
45868
|
this.removeListener("error", onerr);
|
|
45700
45869
|
this.removeListener("end", onend);
|
|
45701
45870
|
this.pause();
|
|
45702
|
-
|
|
45871
|
+
resolve4({ value: value2, done: !!this[EOF2] });
|
|
45703
45872
|
};
|
|
45704
45873
|
const onend = () => {
|
|
45705
45874
|
this.removeListener("error", onerr);
|
|
45706
45875
|
this.removeListener("data", ondata);
|
|
45707
|
-
|
|
45876
|
+
resolve4({ done: true });
|
|
45708
45877
|
};
|
|
45709
45878
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
45710
45879
|
return new Promise((res2, rej) => {
|
|
45711
45880
|
reject = rej;
|
|
45712
|
-
|
|
45881
|
+
resolve4 = res2;
|
|
45713
45882
|
this.once(DESTROYED2, ondestroy);
|
|
45714
45883
|
this.once("error", onerr);
|
|
45715
45884
|
this.once("end", onend);
|
|
@@ -46207,7 +46376,7 @@ var require_large_numbers = __commonJS({
|
|
|
46207
46376
|
}
|
|
46208
46377
|
}
|
|
46209
46378
|
};
|
|
46210
|
-
var
|
|
46379
|
+
var parse7 = (buf) => {
|
|
46211
46380
|
const pre = buf[0];
|
|
46212
46381
|
const value2 = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
46213
46382
|
if (value2 === null) {
|
|
@@ -46254,7 +46423,7 @@ var require_large_numbers = __commonJS({
|
|
|
46254
46423
|
var twosComp = (byte) => (255 ^ byte) + 1 & 255;
|
|
46255
46424
|
module2.exports = {
|
|
46256
46425
|
encode,
|
|
46257
|
-
parse:
|
|
46426
|
+
parse: parse7
|
|
46258
46427
|
};
|
|
46259
46428
|
}
|
|
46260
46429
|
});
|
|
@@ -46649,15 +46818,15 @@ var require_winchars = __commonJS({
|
|
|
46649
46818
|
// node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js
|
|
46650
46819
|
var require_strip_absolute_path = __commonJS({
|
|
46651
46820
|
"node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports2, module2) {
|
|
46652
|
-
var { isAbsolute:
|
|
46821
|
+
var { isAbsolute: isAbsolute3, parse: parse7 } = require("path").win32;
|
|
46653
46822
|
module2.exports = (path7) => {
|
|
46654
46823
|
let r4 = "";
|
|
46655
|
-
let parsed =
|
|
46656
|
-
while (
|
|
46824
|
+
let parsed = parse7(path7);
|
|
46825
|
+
while (isAbsolute3(path7) || parsed.root) {
|
|
46657
46826
|
const root = path7.charAt(0) === "/" && path7.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
46658
46827
|
path7 = path7.slice(root.length);
|
|
46659
46828
|
r4 += root;
|
|
46660
|
-
parsed =
|
|
46829
|
+
parsed = parse7(path7);
|
|
46661
46830
|
}
|
|
46662
46831
|
return [r4, path7];
|
|
46663
46832
|
};
|
|
@@ -48796,12 +48965,12 @@ var require_list = __commonJS({
|
|
|
48796
48965
|
}
|
|
48797
48966
|
};
|
|
48798
48967
|
var listFile = (opt, cb) => {
|
|
48799
|
-
const
|
|
48968
|
+
const parse7 = new Parser3(opt);
|
|
48800
48969
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
48801
48970
|
const file = opt.file;
|
|
48802
|
-
const p2 = new Promise((
|
|
48803
|
-
|
|
48804
|
-
|
|
48971
|
+
const p2 = new Promise((resolve4, reject) => {
|
|
48972
|
+
parse7.on("error", reject);
|
|
48973
|
+
parse7.on("end", resolve4);
|
|
48805
48974
|
fs2.stat(file, (er2, stat) => {
|
|
48806
48975
|
if (er2) {
|
|
48807
48976
|
reject(er2);
|
|
@@ -48811,7 +48980,7 @@ var require_list = __commonJS({
|
|
|
48811
48980
|
size: stat.size
|
|
48812
48981
|
});
|
|
48813
48982
|
stream2.on("error", reject);
|
|
48814
|
-
stream2.pipe(
|
|
48983
|
+
stream2.pipe(parse7);
|
|
48815
48984
|
}
|
|
48816
48985
|
});
|
|
48817
48986
|
});
|
|
@@ -49063,7 +49232,7 @@ var require_replace = __commonJS({
|
|
|
49063
49232
|
};
|
|
49064
49233
|
fs2.read(fd, headBuf, 0, 512, position, onread);
|
|
49065
49234
|
};
|
|
49066
|
-
const promise = new Promise((
|
|
49235
|
+
const promise = new Promise((resolve4, reject) => {
|
|
49067
49236
|
p2.on("error", reject);
|
|
49068
49237
|
let flag = "r+";
|
|
49069
49238
|
const onopen = (er2, fd) => {
|
|
@@ -49088,7 +49257,7 @@ var require_replace = __commonJS({
|
|
|
49088
49257
|
});
|
|
49089
49258
|
p2.pipe(stream2);
|
|
49090
49259
|
stream2.on("error", reject);
|
|
49091
|
-
stream2.on("close",
|
|
49260
|
+
stream2.on("close", resolve4);
|
|
49092
49261
|
addFilesAsync(p2, files);
|
|
49093
49262
|
});
|
|
49094
49263
|
});
|
|
@@ -49193,7 +49362,7 @@ var require_opts_arg = __commonJS({
|
|
|
49193
49362
|
var require_path_arg = __commonJS({
|
|
49194
49363
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
|
|
49195
49364
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
49196
|
-
var { resolve:
|
|
49365
|
+
var { resolve: resolve4, parse: parse7 } = require("path");
|
|
49197
49366
|
var pathArg = (path7) => {
|
|
49198
49367
|
if (/\0/.test(path7)) {
|
|
49199
49368
|
throw Object.assign(
|
|
@@ -49204,10 +49373,10 @@ var require_path_arg = __commonJS({
|
|
|
49204
49373
|
}
|
|
49205
49374
|
);
|
|
49206
49375
|
}
|
|
49207
|
-
path7 =
|
|
49376
|
+
path7 = resolve4(path7);
|
|
49208
49377
|
if (platform === "win32") {
|
|
49209
49378
|
const badWinChars = /[*|"<>?:]/;
|
|
49210
|
-
const { root } =
|
|
49379
|
+
const { root } = parse7(path7);
|
|
49211
49380
|
if (badWinChars.test(path7.substr(root.length))) {
|
|
49212
49381
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
49213
49382
|
path: path7,
|
|
@@ -49224,14 +49393,14 @@ var require_path_arg = __commonJS({
|
|
|
49224
49393
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js
|
|
49225
49394
|
var require_find_made = __commonJS({
|
|
49226
49395
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports2, module2) {
|
|
49227
|
-
var { dirname:
|
|
49396
|
+
var { dirname: dirname5 } = require("path");
|
|
49228
49397
|
var findMade = (opts, parent, path7 = void 0) => {
|
|
49229
49398
|
if (path7 === parent)
|
|
49230
49399
|
return Promise.resolve();
|
|
49231
49400
|
return opts.statAsync(parent).then(
|
|
49232
49401
|
(st) => st.isDirectory() ? path7 : void 0,
|
|
49233
49402
|
// will fail later
|
|
49234
|
-
(er2) => er2.code === "ENOENT" ? findMade(opts,
|
|
49403
|
+
(er2) => er2.code === "ENOENT" ? findMade(opts, dirname5(parent), parent) : void 0
|
|
49235
49404
|
);
|
|
49236
49405
|
};
|
|
49237
49406
|
var findMadeSync = (opts, parent, path7 = void 0) => {
|
|
@@ -49240,7 +49409,7 @@ var require_find_made = __commonJS({
|
|
|
49240
49409
|
try {
|
|
49241
49410
|
return opts.statSync(parent).isDirectory() ? path7 : void 0;
|
|
49242
49411
|
} catch (er2) {
|
|
49243
|
-
return er2.code === "ENOENT" ? findMadeSync(opts,
|
|
49412
|
+
return er2.code === "ENOENT" ? findMadeSync(opts, dirname5(parent), parent) : void 0;
|
|
49244
49413
|
}
|
|
49245
49414
|
};
|
|
49246
49415
|
module2.exports = { findMade, findMadeSync };
|
|
@@ -49250,10 +49419,10 @@ var require_find_made = __commonJS({
|
|
|
49250
49419
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js
|
|
49251
49420
|
var require_mkdirp_manual = __commonJS({
|
|
49252
49421
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports2, module2) {
|
|
49253
|
-
var { dirname:
|
|
49422
|
+
var { dirname: dirname5 } = require("path");
|
|
49254
49423
|
var mkdirpManual = (path7, opts, made) => {
|
|
49255
49424
|
opts.recursive = false;
|
|
49256
|
-
const parent =
|
|
49425
|
+
const parent = dirname5(path7);
|
|
49257
49426
|
if (parent === path7) {
|
|
49258
49427
|
return opts.mkdirAsync(path7, opts).catch((er2) => {
|
|
49259
49428
|
if (er2.code !== "EISDIR")
|
|
@@ -49276,7 +49445,7 @@ var require_mkdirp_manual = __commonJS({
|
|
|
49276
49445
|
});
|
|
49277
49446
|
};
|
|
49278
49447
|
var mkdirpManualSync = (path7, opts, made) => {
|
|
49279
|
-
const parent =
|
|
49448
|
+
const parent = dirname5(path7);
|
|
49280
49449
|
opts.recursive = false;
|
|
49281
49450
|
if (parent === path7) {
|
|
49282
49451
|
try {
|
|
@@ -49311,12 +49480,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
49311
49480
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js
|
|
49312
49481
|
var require_mkdirp_native = __commonJS({
|
|
49313
49482
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"(exports2, module2) {
|
|
49314
|
-
var { dirname:
|
|
49483
|
+
var { dirname: dirname5 } = require("path");
|
|
49315
49484
|
var { findMade, findMadeSync } = require_find_made();
|
|
49316
49485
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
49317
49486
|
var mkdirpNative = (path7, opts) => {
|
|
49318
49487
|
opts.recursive = true;
|
|
49319
|
-
const parent =
|
|
49488
|
+
const parent = dirname5(path7);
|
|
49320
49489
|
if (parent === path7)
|
|
49321
49490
|
return opts.mkdirAsync(path7, opts);
|
|
49322
49491
|
return findMade(opts, path7).then((made) => opts.mkdirAsync(path7, opts).then(() => made).catch((er2) => {
|
|
@@ -49328,7 +49497,7 @@ var require_mkdirp_native = __commonJS({
|
|
|
49328
49497
|
};
|
|
49329
49498
|
var mkdirpNativeSync = (path7, opts) => {
|
|
49330
49499
|
opts.recursive = true;
|
|
49331
|
-
const parent =
|
|
49500
|
+
const parent = dirname5(path7);
|
|
49332
49501
|
if (parent === path7)
|
|
49333
49502
|
return opts.mkdirSync(path7, opts);
|
|
49334
49503
|
const made = findMadeSync(opts, path7);
|
|
@@ -49567,7 +49736,7 @@ var require_mkdir = __commonJS({
|
|
|
49567
49736
|
const preserve = opt.preserve;
|
|
49568
49737
|
const unlink = opt.unlink;
|
|
49569
49738
|
const cache2 = opt.cache;
|
|
49570
|
-
const
|
|
49739
|
+
const cwd3 = normPath(opt.cwd);
|
|
49571
49740
|
const done = (er2, created) => {
|
|
49572
49741
|
if (er2) {
|
|
49573
49742
|
cb(er2);
|
|
@@ -49585,41 +49754,41 @@ var require_mkdir = __commonJS({
|
|
|
49585
49754
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
49586
49755
|
return done();
|
|
49587
49756
|
}
|
|
49588
|
-
if (dir ===
|
|
49757
|
+
if (dir === cwd3) {
|
|
49589
49758
|
return checkCwd(dir, done);
|
|
49590
49759
|
}
|
|
49591
49760
|
if (preserve) {
|
|
49592
49761
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
49593
49762
|
}
|
|
49594
|
-
const sub = normPath(path7.relative(
|
|
49763
|
+
const sub = normPath(path7.relative(cwd3, dir));
|
|
49595
49764
|
const parts = sub.split("/");
|
|
49596
|
-
mkdir_(
|
|
49765
|
+
mkdir_(cwd3, parts, mode, cache2, unlink, cwd3, null, done);
|
|
49597
49766
|
};
|
|
49598
|
-
var mkdir_ = (base, parts, mode, cache2, unlink,
|
|
49767
|
+
var mkdir_ = (base, parts, mode, cache2, unlink, cwd3, created, cb) => {
|
|
49599
49768
|
if (!parts.length) {
|
|
49600
49769
|
return cb(null, created);
|
|
49601
49770
|
}
|
|
49602
49771
|
const p2 = parts.shift();
|
|
49603
49772
|
const part = normPath(path7.resolve(base + "/" + p2));
|
|
49604
49773
|
if (cGet(cache2, part)) {
|
|
49605
|
-
return mkdir_(part, parts, mode, cache2, unlink,
|
|
49774
|
+
return mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
49606
49775
|
}
|
|
49607
|
-
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
49776
|
+
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
49608
49777
|
};
|
|
49609
|
-
var onmkdir = (part, parts, mode, cache2, unlink,
|
|
49778
|
+
var onmkdir = (part, parts, mode, cache2, unlink, cwd3, created, cb) => (er2) => {
|
|
49610
49779
|
if (er2) {
|
|
49611
49780
|
fs2.lstat(part, (statEr, st) => {
|
|
49612
49781
|
if (statEr) {
|
|
49613
49782
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
49614
49783
|
cb(statEr);
|
|
49615
49784
|
} else if (st.isDirectory()) {
|
|
49616
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
49785
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
49617
49786
|
} else if (unlink) {
|
|
49618
49787
|
fs2.unlink(part, (er3) => {
|
|
49619
49788
|
if (er3) {
|
|
49620
49789
|
return cb(er3);
|
|
49621
49790
|
}
|
|
49622
|
-
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
49791
|
+
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
49623
49792
|
});
|
|
49624
49793
|
} else if (st.isSymbolicLink()) {
|
|
49625
49794
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -49629,7 +49798,7 @@ var require_mkdir = __commonJS({
|
|
|
49629
49798
|
});
|
|
49630
49799
|
} else {
|
|
49631
49800
|
created = created || part;
|
|
49632
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
49801
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
49633
49802
|
}
|
|
49634
49803
|
};
|
|
49635
49804
|
var checkCwdSync = (dir) => {
|
|
@@ -49656,7 +49825,7 @@ var require_mkdir = __commonJS({
|
|
|
49656
49825
|
const preserve = opt.preserve;
|
|
49657
49826
|
const unlink = opt.unlink;
|
|
49658
49827
|
const cache2 = opt.cache;
|
|
49659
|
-
const
|
|
49828
|
+
const cwd3 = normPath(opt.cwd);
|
|
49660
49829
|
const done = (created2) => {
|
|
49661
49830
|
cSet(cache2, dir, true);
|
|
49662
49831
|
if (created2 && doChown) {
|
|
@@ -49669,17 +49838,17 @@ var require_mkdir = __commonJS({
|
|
|
49669
49838
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
49670
49839
|
return done();
|
|
49671
49840
|
}
|
|
49672
|
-
if (dir ===
|
|
49673
|
-
checkCwdSync(
|
|
49841
|
+
if (dir === cwd3) {
|
|
49842
|
+
checkCwdSync(cwd3);
|
|
49674
49843
|
return done();
|
|
49675
49844
|
}
|
|
49676
49845
|
if (preserve) {
|
|
49677
49846
|
return done(mkdirp.sync(dir, mode));
|
|
49678
49847
|
}
|
|
49679
|
-
const sub = normPath(path7.relative(
|
|
49848
|
+
const sub = normPath(path7.relative(cwd3, dir));
|
|
49680
49849
|
const parts = sub.split("/");
|
|
49681
49850
|
let created = null;
|
|
49682
|
-
for (let p2 = parts.shift(), part =
|
|
49851
|
+
for (let p2 = parts.shift(), part = cwd3; p2 && (part += "/" + p2); p2 = parts.shift()) {
|
|
49683
49852
|
part = normPath(path7.resolve(part));
|
|
49684
49853
|
if (cGet(cache2, part)) {
|
|
49685
49854
|
continue;
|
|
@@ -49727,9 +49896,9 @@ var require_normalize_unicode = __commonJS({
|
|
|
49727
49896
|
var require_path_reservations = __commonJS({
|
|
49728
49897
|
"node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js"(exports2, module2) {
|
|
49729
49898
|
var assert2 = require("assert");
|
|
49730
|
-
var
|
|
49899
|
+
var normalize4 = require_normalize_unicode();
|
|
49731
49900
|
var stripSlashes = require_strip_trailing_slashes();
|
|
49732
|
-
var { join:
|
|
49901
|
+
var { join: join5 } = require("path");
|
|
49733
49902
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
49734
49903
|
var isWindows = platform === "win32";
|
|
49735
49904
|
module2.exports = () => {
|
|
@@ -49738,7 +49907,7 @@ var require_path_reservations = __commonJS({
|
|
|
49738
49907
|
const getDirs = (path7) => {
|
|
49739
49908
|
const dirs = path7.split("/").slice(0, -1).reduce((set, path8) => {
|
|
49740
49909
|
if (set.length) {
|
|
49741
|
-
path8 =
|
|
49910
|
+
path8 = join5(set[set.length - 1], path8);
|
|
49742
49911
|
}
|
|
49743
49912
|
set.push(path8 || "/");
|
|
49744
49913
|
return set;
|
|
@@ -49806,7 +49975,7 @@ var require_path_reservations = __commonJS({
|
|
|
49806
49975
|
};
|
|
49807
49976
|
const reserve = (paths, fn2) => {
|
|
49808
49977
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p2) => {
|
|
49809
|
-
return stripSlashes(
|
|
49978
|
+
return stripSlashes(join5(normalize4(p2))).toLowerCase();
|
|
49810
49979
|
});
|
|
49811
49980
|
const dirs = new Set(
|
|
49812
49981
|
paths.map((path7) => getDirs(path7)).reduce((a2, b6) => a2.concat(b6))
|
|
@@ -49866,7 +50035,7 @@ var require_unpack = __commonJS({
|
|
|
49866
50035
|
var stripAbsolutePath = require_strip_absolute_path();
|
|
49867
50036
|
var normPath = require_normalize_windows_path();
|
|
49868
50037
|
var stripSlash = require_strip_trailing_slashes();
|
|
49869
|
-
var
|
|
50038
|
+
var normalize4 = require_normalize_unicode();
|
|
49870
50039
|
var ONENTRY = Symbol("onEntry");
|
|
49871
50040
|
var CHECKFS = Symbol("checkFs");
|
|
49872
50041
|
var CHECKFS2 = Symbol("checkFs2");
|
|
@@ -49918,7 +50087,7 @@ var require_unpack = __commonJS({
|
|
|
49918
50087
|
fs2.unlinkSync(name);
|
|
49919
50088
|
};
|
|
49920
50089
|
var uint32 = (a2, b6, c) => a2 === a2 >>> 0 ? a2 : b6 === b6 >>> 0 ? b6 : c;
|
|
49921
|
-
var cacheKeyNormalize = (path8) => stripSlash(normPath(
|
|
50090
|
+
var cacheKeyNormalize = (path8) => stripSlash(normPath(normalize4(path8))).toLowerCase();
|
|
49922
50091
|
var pruneCache = (cache2, abs) => {
|
|
49923
50092
|
abs = cacheKeyNormalize(abs);
|
|
49924
50093
|
for (const path8 of cache2.keys()) {
|
|
@@ -50607,9 +50776,9 @@ var require_extract = __commonJS({
|
|
|
50607
50776
|
const u3 = new Unpack(opt);
|
|
50608
50777
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
50609
50778
|
const file = opt.file;
|
|
50610
|
-
const p2 = new Promise((
|
|
50779
|
+
const p2 = new Promise((resolve4, reject) => {
|
|
50611
50780
|
u3.on("error", reject);
|
|
50612
|
-
u3.on("close",
|
|
50781
|
+
u3.on("close", resolve4);
|
|
50613
50782
|
fs2.stat(file, (er2, stat) => {
|
|
50614
50783
|
if (er2) {
|
|
50615
50784
|
reject(er2);
|
|
@@ -50744,12 +50913,12 @@ var require_isexe = __commonJS({
|
|
|
50744
50913
|
if (typeof Promise !== "function") {
|
|
50745
50914
|
throw new TypeError("callback not provided");
|
|
50746
50915
|
}
|
|
50747
|
-
return new Promise(function(
|
|
50916
|
+
return new Promise(function(resolve4, reject) {
|
|
50748
50917
|
isexe(path7, options || {}, function(er2, is) {
|
|
50749
50918
|
if (er2) {
|
|
50750
50919
|
reject(er2);
|
|
50751
50920
|
} else {
|
|
50752
|
-
|
|
50921
|
+
resolve4(is);
|
|
50753
50922
|
}
|
|
50754
50923
|
});
|
|
50755
50924
|
});
|
|
@@ -50815,27 +50984,27 @@ var require_which = __commonJS({
|
|
|
50815
50984
|
opt = {};
|
|
50816
50985
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
50817
50986
|
const found = [];
|
|
50818
|
-
const step = (i2) => new Promise((
|
|
50987
|
+
const step = (i2) => new Promise((resolve4, reject) => {
|
|
50819
50988
|
if (i2 === pathEnv.length)
|
|
50820
|
-
return opt.all && found.length ?
|
|
50989
|
+
return opt.all && found.length ? resolve4(found) : reject(getNotFoundError(cmd));
|
|
50821
50990
|
const ppRaw = pathEnv[i2];
|
|
50822
50991
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50823
50992
|
const pCmd = path7.join(pathPart, cmd);
|
|
50824
50993
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50825
|
-
|
|
50994
|
+
resolve4(subStep(p2, i2, 0));
|
|
50826
50995
|
});
|
|
50827
|
-
const subStep = (p2, i2, ii2) => new Promise((
|
|
50996
|
+
const subStep = (p2, i2, ii2) => new Promise((resolve4, reject) => {
|
|
50828
50997
|
if (ii2 === pathExt.length)
|
|
50829
|
-
return
|
|
50998
|
+
return resolve4(step(i2 + 1));
|
|
50830
50999
|
const ext2 = pathExt[ii2];
|
|
50831
51000
|
isexe(p2 + ext2, { pathExt: pathExtExe }, (er2, is) => {
|
|
50832
51001
|
if (!er2 && is) {
|
|
50833
51002
|
if (opt.all)
|
|
50834
51003
|
found.push(p2 + ext2);
|
|
50835
51004
|
else
|
|
50836
|
-
return
|
|
51005
|
+
return resolve4(p2 + ext2);
|
|
50837
51006
|
}
|
|
50838
|
-
return
|
|
51007
|
+
return resolve4(subStep(p2, i2, ii2 + 1));
|
|
50839
51008
|
});
|
|
50840
51009
|
});
|
|
50841
51010
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -50900,7 +51069,7 @@ var require_resolveCommand = __commonJS({
|
|
|
50900
51069
|
var getPathKey = require_path_key();
|
|
50901
51070
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
50902
51071
|
const env = parsed.options.env || process.env;
|
|
50903
|
-
const
|
|
51072
|
+
const cwd3 = process.cwd();
|
|
50904
51073
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
50905
51074
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
50906
51075
|
if (shouldSwitchCwd) {
|
|
@@ -50918,7 +51087,7 @@ var require_resolveCommand = __commonJS({
|
|
|
50918
51087
|
} catch (e2) {
|
|
50919
51088
|
} finally {
|
|
50920
51089
|
if (shouldSwitchCwd) {
|
|
50921
|
-
process.chdir(
|
|
51090
|
+
process.chdir(cwd3);
|
|
50922
51091
|
}
|
|
50923
51092
|
}
|
|
50924
51093
|
if (resolved) {
|
|
@@ -51047,7 +51216,7 @@ var require_parse2 = __commonJS({
|
|
|
51047
51216
|
}
|
|
51048
51217
|
return parsed;
|
|
51049
51218
|
}
|
|
51050
|
-
function
|
|
51219
|
+
function parse7(command, args, options) {
|
|
51051
51220
|
if (args && !Array.isArray(args)) {
|
|
51052
51221
|
options = args;
|
|
51053
51222
|
args = null;
|
|
@@ -51066,7 +51235,7 @@ var require_parse2 = __commonJS({
|
|
|
51066
51235
|
};
|
|
51067
51236
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
51068
51237
|
}
|
|
51069
|
-
module2.exports =
|
|
51238
|
+
module2.exports = parse7;
|
|
51070
51239
|
}
|
|
51071
51240
|
});
|
|
51072
51241
|
|
|
@@ -51125,16 +51294,16 @@ var require_cross_spawn = __commonJS({
|
|
|
51125
51294
|
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
51126
51295
|
"use strict";
|
|
51127
51296
|
var cp = require("child_process");
|
|
51128
|
-
var
|
|
51297
|
+
var parse7 = require_parse2();
|
|
51129
51298
|
var enoent = require_enoent();
|
|
51130
51299
|
function spawn(command, args, options) {
|
|
51131
|
-
const parsed =
|
|
51300
|
+
const parsed = parse7(command, args, options);
|
|
51132
51301
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
51133
51302
|
enoent.hookChildProcess(spawned, parsed);
|
|
51134
51303
|
return spawned;
|
|
51135
51304
|
}
|
|
51136
51305
|
function spawnSync2(command, args, options) {
|
|
51137
|
-
const parsed =
|
|
51306
|
+
const parsed = parse7(command, args, options);
|
|
51138
51307
|
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
51139
51308
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
51140
51309
|
return result;
|
|
@@ -51142,7 +51311,7 @@ var require_cross_spawn = __commonJS({
|
|
|
51142
51311
|
module2.exports = spawn;
|
|
51143
51312
|
module2.exports.spawn = spawn;
|
|
51144
51313
|
module2.exports.sync = spawnSync2;
|
|
51145
|
-
module2.exports._parse =
|
|
51314
|
+
module2.exports._parse = parse7;
|
|
51146
51315
|
module2.exports._enoent = enoent;
|
|
51147
51316
|
}
|
|
51148
51317
|
});
|
|
@@ -51189,13 +51358,13 @@ var init_npm_run_path = __esm({
|
|
|
51189
51358
|
import_node_url5 = require("node:url");
|
|
51190
51359
|
init_path_key();
|
|
51191
51360
|
npmRunPath = ({
|
|
51192
|
-
cwd:
|
|
51361
|
+
cwd: cwd3 = import_node_process2.default.cwd(),
|
|
51193
51362
|
path: pathOption = import_node_process2.default.env[pathKey()],
|
|
51194
51363
|
preferLocal = true,
|
|
51195
51364
|
execPath = import_node_process2.default.execPath,
|
|
51196
51365
|
addExecPath = true
|
|
51197
51366
|
} = {}) => {
|
|
51198
|
-
const cwdString =
|
|
51367
|
+
const cwdString = cwd3 instanceof URL ? (0, import_node_url5.fileURLToPath)(cwd3) : cwd3;
|
|
51199
51368
|
const cwdPath = import_node_path7.default.resolve(cwdString);
|
|
51200
51369
|
const result = [];
|
|
51201
51370
|
if (preferLocal) {
|
|
@@ -51738,7 +51907,7 @@ var init_error = __esm({
|
|
|
51738
51907
|
timedOut,
|
|
51739
51908
|
isCanceled,
|
|
51740
51909
|
killed,
|
|
51741
|
-
parsed: { options: { timeout, cwd:
|
|
51910
|
+
parsed: { options: { timeout, cwd: cwd3 = import_node_process3.default.cwd() } }
|
|
51742
51911
|
}) => {
|
|
51743
51912
|
exitCode = exitCode === null ? void 0 : exitCode;
|
|
51744
51913
|
signal = signal === null ? void 0 : signal;
|
|
@@ -51764,7 +51933,7 @@ ${error.message}` : execaMessage;
|
|
|
51764
51933
|
error.signalDescription = signalDescription;
|
|
51765
51934
|
error.stdout = stdout;
|
|
51766
51935
|
error.stderr = stderr;
|
|
51767
|
-
error.cwd =
|
|
51936
|
+
error.cwd = cwd3;
|
|
51768
51937
|
if (all !== void 0) {
|
|
51769
51938
|
error.all = all;
|
|
51770
51939
|
}
|
|
@@ -52140,7 +52309,7 @@ var init_kill = __esm({
|
|
|
52140
52309
|
return spawnedPromise;
|
|
52141
52310
|
}
|
|
52142
52311
|
let timeoutId;
|
|
52143
|
-
const timeoutPromise = new Promise((
|
|
52312
|
+
const timeoutPromise = new Promise((resolve4, reject) => {
|
|
52144
52313
|
timeoutId = setTimeout(() => {
|
|
52145
52314
|
timeoutKill(spawned, killSignal, reject);
|
|
52146
52315
|
}, timeout);
|
|
@@ -52613,9 +52782,9 @@ var init_promise = __esm({
|
|
|
52613
52782
|
Reflect.defineProperty(spawned, property, { ...descriptor, value: value2 });
|
|
52614
52783
|
}
|
|
52615
52784
|
};
|
|
52616
|
-
getSpawnedPromise = (spawned) => new Promise((
|
|
52785
|
+
getSpawnedPromise = (spawned) => new Promise((resolve4, reject) => {
|
|
52617
52786
|
spawned.on("exit", (exitCode, signal) => {
|
|
52618
|
-
|
|
52787
|
+
resolve4({ exitCode, signal });
|
|
52619
52788
|
});
|
|
52620
52789
|
spawned.on("error", (error) => {
|
|
52621
52790
|
reject(error);
|
|
@@ -53010,8 +53179,8 @@ var init_execa = __esm({
|
|
|
53010
53179
|
});
|
|
53011
53180
|
|
|
53012
53181
|
// node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs
|
|
53013
|
-
async function findup(
|
|
53014
|
-
const segments = normalize2(
|
|
53182
|
+
async function findup(cwd3, match2, options = {}) {
|
|
53183
|
+
const segments = normalize2(cwd3).split("/");
|
|
53015
53184
|
while (segments.length > 0) {
|
|
53016
53185
|
const path7 = segments.join("/") || "/";
|
|
53017
53186
|
const result = await match2(path7);
|
|
@@ -53042,13 +53211,13 @@ async function executeCommand(command, args, options = {}) {
|
|
|
53042
53211
|
});
|
|
53043
53212
|
}
|
|
53044
53213
|
async function resolveOperationOptions(options = {}) {
|
|
53045
|
-
const
|
|
53214
|
+
const cwd3 = options.cwd || process.cwd();
|
|
53046
53215
|
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
53047
53216
|
if (!packageManager) {
|
|
53048
53217
|
throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
53049
53218
|
}
|
|
53050
53219
|
return {
|
|
53051
|
-
cwd:
|
|
53220
|
+
cwd: cwd3,
|
|
53052
53221
|
silent: options.silent ?? false,
|
|
53053
53222
|
packageManager,
|
|
53054
53223
|
dev: options.dev ?? false,
|
|
@@ -53056,9 +53225,9 @@ async function resolveOperationOptions(options = {}) {
|
|
|
53056
53225
|
global: options.global ?? false
|
|
53057
53226
|
};
|
|
53058
53227
|
}
|
|
53059
|
-
async function detectPackageManager(
|
|
53228
|
+
async function detectPackageManager(cwd3, options = {}) {
|
|
53060
53229
|
const detected = await findup(
|
|
53061
|
-
resolve(
|
|
53230
|
+
resolve(cwd3 || "."),
|
|
53062
53231
|
async (path7) => {
|
|
53063
53232
|
if (!options.ignorePackageJSON) {
|
|
53064
53233
|
const packageJSONPath = join3(path7, "package.json");
|
|
@@ -53128,7 +53297,7 @@ async function installDependencies(options = {}) {
|
|
|
53128
53297
|
});
|
|
53129
53298
|
}
|
|
53130
53299
|
var import_node_fs8, import_promises4, importExeca, hasCorepack, NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG, packageManagers;
|
|
53131
|
-
var
|
|
53300
|
+
var init_dist7 = __esm({
|
|
53132
53301
|
"node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs"() {
|
|
53133
53302
|
import_node_fs8 = require("node:fs");
|
|
53134
53303
|
import_promises4 = require("node:fs/promises");
|
|
@@ -63254,10 +63423,10 @@ ${f2.toString(16)}\r
|
|
|
63254
63423
|
return Q5(U5, "getHeadersList"), util$3 = { isCTLExcludingHtab: t2, validateCookieName: r4, validateCookiePath: o, validateCookieValue: n, toIMFDate: c, stringify: y3, getHeadersList: U5 }, util$3;
|
|
63255
63424
|
}
|
|
63256
63425
|
Q5(requireUtil$2, "requireUtil$2");
|
|
63257
|
-
var
|
|
63426
|
+
var parse7;
|
|
63258
63427
|
var hasRequiredParse;
|
|
63259
63428
|
function requireParse() {
|
|
63260
|
-
if (hasRequiredParse) return
|
|
63429
|
+
if (hasRequiredParse) return parse7;
|
|
63261
63430
|
hasRequiredParse = 1;
|
|
63262
63431
|
const { maxNameValuePairSize: e2, maxAttributeValueSize: A2 } = requireConstants$1(), { isCTLExcludingHtab: t2 } = requireUtil$2(), { collectASequenceOfCodePointsFast: r4 } = requireDataUrl(), n = require$$0__default;
|
|
63263
63432
|
function o(l2) {
|
|
@@ -63310,7 +63479,7 @@ ${f2.toString(16)}\r
|
|
|
63310
63479
|
} else C4.unparsed ?? (C4.unparsed = []), C4.unparsed.push(`${c}=${I4}`);
|
|
63311
63480
|
return B3(l2, C4);
|
|
63312
63481
|
}
|
|
63313
|
-
return Q5(B3, "parseUnparsedAttributes"),
|
|
63482
|
+
return Q5(B3, "parseUnparsedAttributes"), parse7 = { parseSetCookie: o, parseUnparsedAttributes: B3 }, parse7;
|
|
63314
63483
|
}
|
|
63315
63484
|
Q5(requireParse, "requireParse");
|
|
63316
63485
|
var cookies;
|
|
@@ -64995,14 +65164,14 @@ function currentShell() {
|
|
|
64995
65164
|
}
|
|
64996
65165
|
return "/bin/bash";
|
|
64997
65166
|
}
|
|
64998
|
-
function startShell(
|
|
64999
|
-
|
|
65167
|
+
function startShell(cwd3) {
|
|
65168
|
+
cwd3 = resolve(cwd3);
|
|
65000
65169
|
const shell = currentShell();
|
|
65001
65170
|
console.info(
|
|
65002
|
-
`(experimental) Opening shell in ${relative(process.cwd(),
|
|
65171
|
+
`(experimental) Opening shell in ${relative(process.cwd(), cwd3)}...`
|
|
65003
65172
|
);
|
|
65004
65173
|
(0, import_node_child_process4.spawnSync)(shell, [], {
|
|
65005
|
-
cwd:
|
|
65174
|
+
cwd: cwd3,
|
|
65006
65175
|
shell: true,
|
|
65007
65176
|
stdio: "inherit"
|
|
65008
65177
|
});
|
|
@@ -65077,8 +65246,8 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65077
65246
|
`Tarball not found: ${tarPath} (offline: ${options.offline})`
|
|
65078
65247
|
);
|
|
65079
65248
|
}
|
|
65080
|
-
const
|
|
65081
|
-
const extractPath = resolve(
|
|
65249
|
+
const cwd3 = resolve(options.cwd || ".");
|
|
65250
|
+
const extractPath = resolve(cwd3, options.dir || template.defaultDir);
|
|
65082
65251
|
if (options.forceClean) {
|
|
65083
65252
|
await (0, import_promises5.rm)(extractPath, { recursive: true, force: true });
|
|
65084
65253
|
}
|
|
@@ -65117,14 +65286,14 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65117
65286
|
};
|
|
65118
65287
|
}
|
|
65119
65288
|
var import_promises5, import_node_fs9, import_tar, import_defu2, import_node_stream2, import_node_child_process4, import_node_os5, import_node_util3, import_proxy, inputRegex, http, _httpJSON, github, gitlab, bitbucket, sourcehut, providers, DEFAULT_REGISTRY, registryProvider, sourceProtoRe;
|
|
65120
|
-
var
|
|
65289
|
+
var init_dist8 = __esm({
|
|
65121
65290
|
"node_modules/.pnpm/giget@1.2.3/node_modules/giget/dist/index.mjs"() {
|
|
65122
65291
|
import_promises5 = require("node:fs/promises");
|
|
65123
65292
|
import_node_fs9 = require("node:fs");
|
|
65124
65293
|
import_tar = __toESM(require_tar(), 1);
|
|
65125
65294
|
init_dist();
|
|
65126
65295
|
import_defu2 = require("defu");
|
|
65127
|
-
|
|
65296
|
+
init_dist7();
|
|
65128
65297
|
import_node_stream2 = require("node:stream");
|
|
65129
65298
|
import_node_child_process4 = require("node:child_process");
|
|
65130
65299
|
import_node_os5 = require("node:os");
|
|
@@ -65897,7 +66066,7 @@ var require_parse3 = __commonJS({
|
|
|
65897
66066
|
var syntaxError = (type, char) => {
|
|
65898
66067
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
65899
66068
|
};
|
|
65900
|
-
var
|
|
66069
|
+
var parse7 = (input, options) => {
|
|
65901
66070
|
if (typeof input !== "string") {
|
|
65902
66071
|
throw new TypeError("Expected a string");
|
|
65903
66072
|
}
|
|
@@ -66046,7 +66215,7 @@ var require_parse3 = __commonJS({
|
|
|
66046
66215
|
output = token.close = `)$))${extglobStar}`;
|
|
66047
66216
|
}
|
|
66048
66217
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
66049
|
-
const expression =
|
|
66218
|
+
const expression = parse7(rest, { ...options, fastpaths: false }).output;
|
|
66050
66219
|
output = token.close = `)${expression})${extglobStar})`;
|
|
66051
66220
|
}
|
|
66052
66221
|
if (token.prev.type === "bos") {
|
|
@@ -66571,7 +66740,7 @@ var require_parse3 = __commonJS({
|
|
|
66571
66740
|
}
|
|
66572
66741
|
return state;
|
|
66573
66742
|
};
|
|
66574
|
-
|
|
66743
|
+
parse7.fastpaths = (input, options) => {
|
|
66575
66744
|
const opts = { ...options };
|
|
66576
66745
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
66577
66746
|
const len = input.length;
|
|
@@ -66637,7 +66806,7 @@ var require_parse3 = __commonJS({
|
|
|
66637
66806
|
}
|
|
66638
66807
|
return source;
|
|
66639
66808
|
};
|
|
66640
|
-
module2.exports =
|
|
66809
|
+
module2.exports = parse7;
|
|
66641
66810
|
}
|
|
66642
66811
|
});
|
|
66643
66812
|
|
|
@@ -66647,7 +66816,7 @@ var require_picomatch = __commonJS({
|
|
|
66647
66816
|
"use strict";
|
|
66648
66817
|
var path7 = require("path");
|
|
66649
66818
|
var scan = require_scan();
|
|
66650
|
-
var
|
|
66819
|
+
var parse7 = require_parse3();
|
|
66651
66820
|
var utils = require_utils();
|
|
66652
66821
|
var constants3 = require_constants2();
|
|
66653
66822
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
@@ -66712,11 +66881,11 @@ var require_picomatch = __commonJS({
|
|
|
66712
66881
|
return { isMatch: false, output: "" };
|
|
66713
66882
|
}
|
|
66714
66883
|
const opts = options || {};
|
|
66715
|
-
const
|
|
66884
|
+
const format4 = opts.format || (posix2 ? utils.toPosixSlashes : null);
|
|
66716
66885
|
let match2 = input === glob2;
|
|
66717
|
-
let output = match2 &&
|
|
66886
|
+
let output = match2 && format4 ? format4(input) : input;
|
|
66718
66887
|
if (match2 === false) {
|
|
66719
|
-
output =
|
|
66888
|
+
output = format4 ? format4(input) : input;
|
|
66720
66889
|
match2 = output === glob2;
|
|
66721
66890
|
}
|
|
66722
66891
|
if (match2 === false || opts.capture === true) {
|
|
@@ -66735,7 +66904,7 @@ var require_picomatch = __commonJS({
|
|
|
66735
66904
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
66736
66905
|
picomatch.parse = (pattern, options) => {
|
|
66737
66906
|
if (Array.isArray(pattern)) return pattern.map((p2) => picomatch.parse(p2, options));
|
|
66738
|
-
return
|
|
66907
|
+
return parse7(pattern, { ...options, fastpaths: false });
|
|
66739
66908
|
};
|
|
66740
66909
|
picomatch.scan = (input, options) => scan(input, options);
|
|
66741
66910
|
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
@@ -66761,10 +66930,10 @@ var require_picomatch = __commonJS({
|
|
|
66761
66930
|
}
|
|
66762
66931
|
let parsed = { negated: false, fastpaths: true };
|
|
66763
66932
|
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
|
|
66764
|
-
parsed.output =
|
|
66933
|
+
parsed.output = parse7.fastpaths(input, options);
|
|
66765
66934
|
}
|
|
66766
66935
|
if (!parsed.output) {
|
|
66767
|
-
parsed =
|
|
66936
|
+
parsed = parse7(input, options);
|
|
66768
66937
|
}
|
|
66769
66938
|
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
66770
66939
|
};
|
|
@@ -67624,7 +67793,7 @@ var require_semver = __commonJS({
|
|
|
67624
67793
|
var require_parse4 = __commonJS({
|
|
67625
67794
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
67626
67795
|
var SemVer = require_semver();
|
|
67627
|
-
var
|
|
67796
|
+
var parse7 = (version2, options, throwErrors = false) => {
|
|
67628
67797
|
if (version2 instanceof SemVer) {
|
|
67629
67798
|
return version2;
|
|
67630
67799
|
}
|
|
@@ -67637,16 +67806,16 @@ var require_parse4 = __commonJS({
|
|
|
67637
67806
|
throw er2;
|
|
67638
67807
|
}
|
|
67639
67808
|
};
|
|
67640
|
-
module2.exports =
|
|
67809
|
+
module2.exports = parse7;
|
|
67641
67810
|
}
|
|
67642
67811
|
});
|
|
67643
67812
|
|
|
67644
67813
|
// node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js
|
|
67645
67814
|
var require_valid = __commonJS({
|
|
67646
67815
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
67647
|
-
var
|
|
67816
|
+
var parse7 = require_parse4();
|
|
67648
67817
|
var valid = (version2, options) => {
|
|
67649
|
-
const v4 =
|
|
67818
|
+
const v4 = parse7(version2, options);
|
|
67650
67819
|
return v4 ? v4.version : null;
|
|
67651
67820
|
};
|
|
67652
67821
|
module2.exports = valid;
|
|
@@ -67656,9 +67825,9 @@ var require_valid = __commonJS({
|
|
|
67656
67825
|
// node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js
|
|
67657
67826
|
var require_clean = __commonJS({
|
|
67658
67827
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
67659
|
-
var
|
|
67828
|
+
var parse7 = require_parse4();
|
|
67660
67829
|
var clean2 = (version2, options) => {
|
|
67661
|
-
const s2 =
|
|
67830
|
+
const s2 = parse7(version2.trim().replace(/^[=v]+/, ""), options);
|
|
67662
67831
|
return s2 ? s2.version : null;
|
|
67663
67832
|
};
|
|
67664
67833
|
module2.exports = clean2;
|
|
@@ -67691,10 +67860,10 @@ var require_inc = __commonJS({
|
|
|
67691
67860
|
// node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js
|
|
67692
67861
|
var require_diff = __commonJS({
|
|
67693
67862
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
67694
|
-
var
|
|
67863
|
+
var parse7 = require_parse4();
|
|
67695
67864
|
var diff = (version1, version2) => {
|
|
67696
|
-
const v1 =
|
|
67697
|
-
const v22 =
|
|
67865
|
+
const v1 = parse7(version1, null, true);
|
|
67866
|
+
const v22 = parse7(version2, null, true);
|
|
67698
67867
|
const comparison = v1.compare(v22);
|
|
67699
67868
|
if (comparison === 0) {
|
|
67700
67869
|
return null;
|
|
@@ -67762,9 +67931,9 @@ var require_patch = __commonJS({
|
|
|
67762
67931
|
// node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js
|
|
67763
67932
|
var require_prerelease = __commonJS({
|
|
67764
67933
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
67765
|
-
var
|
|
67934
|
+
var parse7 = require_parse4();
|
|
67766
67935
|
var prerelease = (version2, options) => {
|
|
67767
|
-
const parsed =
|
|
67936
|
+
const parsed = parse7(version2, options);
|
|
67768
67937
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
67769
67938
|
};
|
|
67770
67939
|
module2.exports = prerelease;
|
|
@@ -67936,7 +68105,7 @@ var require_cmp = __commonJS({
|
|
|
67936
68105
|
var require_coerce = __commonJS({
|
|
67937
68106
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
67938
68107
|
var SemVer = require_semver();
|
|
67939
|
-
var
|
|
68108
|
+
var parse7 = require_parse4();
|
|
67940
68109
|
var { safeRe: re3, t: t2 } = require_re();
|
|
67941
68110
|
var coerce2 = (version2, options) => {
|
|
67942
68111
|
if (version2 instanceof SemVer) {
|
|
@@ -67971,7 +68140,7 @@ var require_coerce = __commonJS({
|
|
|
67971
68140
|
const patch = match2[4] || "0";
|
|
67972
68141
|
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
67973
68142
|
const build2 = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
67974
|
-
return
|
|
68143
|
+
return parse7(`${major}.${minor}.${patch}${prerelease}${build2}`, options);
|
|
67975
68144
|
};
|
|
67976
68145
|
module2.exports = coerce2;
|
|
67977
68146
|
}
|
|
@@ -68953,7 +69122,7 @@ var require_semver2 = __commonJS({
|
|
|
68953
69122
|
var constants3 = require_constants3();
|
|
68954
69123
|
var SemVer = require_semver();
|
|
68955
69124
|
var identifiers = require_identifiers();
|
|
68956
|
-
var
|
|
69125
|
+
var parse7 = require_parse4();
|
|
68957
69126
|
var valid = require_valid();
|
|
68958
69127
|
var clean2 = require_clean();
|
|
68959
69128
|
var inc = require_inc();
|
|
@@ -68991,7 +69160,7 @@ var require_semver2 = __commonJS({
|
|
|
68991
69160
|
var simplifyRange = require_simplify();
|
|
68992
69161
|
var subset = require_subset();
|
|
68993
69162
|
module2.exports = {
|
|
68994
|
-
parse:
|
|
69163
|
+
parse: parse7,
|
|
68995
69164
|
valid,
|
|
68996
69165
|
clean: clean2,
|
|
68997
69166
|
inc,
|
|
@@ -69048,8 +69217,8 @@ var require_universalify = __commonJS({
|
|
|
69048
69217
|
return Object.defineProperty(function(...args) {
|
|
69049
69218
|
if (typeof args[args.length - 1] === "function") fn2.apply(this, args);
|
|
69050
69219
|
else {
|
|
69051
|
-
return new Promise((
|
|
69052
|
-
args.push((err, res) => err != null ? reject(err) :
|
|
69220
|
+
return new Promise((resolve4, reject) => {
|
|
69221
|
+
args.push((err, res) => err != null ? reject(err) : resolve4(res));
|
|
69053
69222
|
fn2.apply(this, args);
|
|
69054
69223
|
});
|
|
69055
69224
|
}
|
|
@@ -69073,12 +69242,12 @@ var require_polyfills = __commonJS({
|
|
|
69073
69242
|
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
|
|
69074
69243
|
var constants3 = require("constants");
|
|
69075
69244
|
var origCwd = process.cwd;
|
|
69076
|
-
var
|
|
69245
|
+
var cwd3 = null;
|
|
69077
69246
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
69078
69247
|
process.cwd = function() {
|
|
69079
|
-
if (!
|
|
69080
|
-
|
|
69081
|
-
return
|
|
69248
|
+
if (!cwd3)
|
|
69249
|
+
cwd3 = origCwd.call(process);
|
|
69250
|
+
return cwd3;
|
|
69082
69251
|
};
|
|
69083
69252
|
try {
|
|
69084
69253
|
process.cwd();
|
|
@@ -69087,7 +69256,7 @@ var require_polyfills = __commonJS({
|
|
|
69087
69256
|
if (typeof process.chdir === "function") {
|
|
69088
69257
|
chdir = process.chdir;
|
|
69089
69258
|
process.chdir = function(d4) {
|
|
69090
|
-
|
|
69259
|
+
cwd3 = null;
|
|
69091
69260
|
chdir.call(process, d4);
|
|
69092
69261
|
};
|
|
69093
69262
|
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
@@ -69897,18 +70066,18 @@ var require_fs = __commonJS({
|
|
|
69897
70066
|
if (typeof callback === "function") {
|
|
69898
70067
|
return fs2.exists(filename, callback);
|
|
69899
70068
|
}
|
|
69900
|
-
return new Promise((
|
|
69901
|
-
return fs2.exists(filename,
|
|
70069
|
+
return new Promise((resolve4) => {
|
|
70070
|
+
return fs2.exists(filename, resolve4);
|
|
69902
70071
|
});
|
|
69903
70072
|
};
|
|
69904
70073
|
exports2.read = function(fd, buffer, offset2, length, position, callback) {
|
|
69905
70074
|
if (typeof callback === "function") {
|
|
69906
70075
|
return fs2.read(fd, buffer, offset2, length, position, callback);
|
|
69907
70076
|
}
|
|
69908
|
-
return new Promise((
|
|
70077
|
+
return new Promise((resolve4, reject) => {
|
|
69909
70078
|
fs2.read(fd, buffer, offset2, length, position, (err, bytesRead, buffer2) => {
|
|
69910
70079
|
if (err) return reject(err);
|
|
69911
|
-
|
|
70080
|
+
resolve4({ bytesRead, buffer: buffer2 });
|
|
69912
70081
|
});
|
|
69913
70082
|
});
|
|
69914
70083
|
};
|
|
@@ -69916,10 +70085,10 @@ var require_fs = __commonJS({
|
|
|
69916
70085
|
if (typeof args[args.length - 1] === "function") {
|
|
69917
70086
|
return fs2.write(fd, buffer, ...args);
|
|
69918
70087
|
}
|
|
69919
|
-
return new Promise((
|
|
70088
|
+
return new Promise((resolve4, reject) => {
|
|
69920
70089
|
fs2.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
69921
70090
|
if (err) return reject(err);
|
|
69922
|
-
|
|
70091
|
+
resolve4({ bytesWritten, buffer: buffer2 });
|
|
69923
70092
|
});
|
|
69924
70093
|
});
|
|
69925
70094
|
};
|
|
@@ -69928,10 +70097,10 @@ var require_fs = __commonJS({
|
|
|
69928
70097
|
if (typeof args[args.length - 1] === "function") {
|
|
69929
70098
|
return fs2.writev(fd, buffers, ...args);
|
|
69930
70099
|
}
|
|
69931
|
-
return new Promise((
|
|
70100
|
+
return new Promise((resolve4, reject) => {
|
|
69932
70101
|
fs2.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
69933
70102
|
if (err) return reject(err);
|
|
69934
|
-
|
|
70103
|
+
resolve4({ bytesWritten, buffers: buffers2 });
|
|
69935
70104
|
});
|
|
69936
70105
|
});
|
|
69937
70106
|
};
|
|
@@ -71095,10 +71264,10 @@ var require_symlink = __commonJS({
|
|
|
71095
71264
|
});
|
|
71096
71265
|
}
|
|
71097
71266
|
function _createSymlink(srcpath, dstpath, type, callback) {
|
|
71098
|
-
symlinkPaths(srcpath, dstpath, (err,
|
|
71267
|
+
symlinkPaths(srcpath, dstpath, (err, relative5) => {
|
|
71099
71268
|
if (err) return callback(err);
|
|
71100
|
-
srcpath =
|
|
71101
|
-
symlinkType(
|
|
71269
|
+
srcpath = relative5.toDst;
|
|
71270
|
+
symlinkType(relative5.toCwd, type, (err2, type2) => {
|
|
71102
71271
|
if (err2) return callback(err2);
|
|
71103
71272
|
const dir = path7.dirname(dstpath);
|
|
71104
71273
|
pathExists(dir, (err3, dirExists) => {
|
|
@@ -71123,9 +71292,9 @@ var require_symlink = __commonJS({
|
|
|
71123
71292
|
const dstStat = fs2.statSync(dstpath);
|
|
71124
71293
|
if (areIdentical(srcStat, dstStat)) return;
|
|
71125
71294
|
}
|
|
71126
|
-
const
|
|
71127
|
-
srcpath =
|
|
71128
|
-
type = symlinkTypeSync(
|
|
71295
|
+
const relative5 = symlinkPathsSync(srcpath, dstpath);
|
|
71296
|
+
srcpath = relative5.toDst;
|
|
71297
|
+
type = symlinkTypeSync(relative5.toCwd, type);
|
|
71129
71298
|
const dir = path7.dirname(dstpath);
|
|
71130
71299
|
const exists = fs2.existsSync(dir);
|
|
71131
71300
|
if (exists) return fs2.symlinkSync(srcpath, dstpath, type);
|
|
@@ -71608,11 +71777,11 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
71608
71777
|
var require$$0__default$3 = /* @__PURE__ */ _interopDefaultLegacy(require$$0$3);
|
|
71609
71778
|
function __awaiter(thisArg, _arguments, P5, generator) {
|
|
71610
71779
|
function adopt(value2) {
|
|
71611
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
71612
|
-
|
|
71780
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
71781
|
+
resolve4(value2);
|
|
71613
71782
|
});
|
|
71614
71783
|
}
|
|
71615
|
-
return new (P5 || (P5 = Promise))(function(
|
|
71784
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject) {
|
|
71616
71785
|
function fulfilled(value2) {
|
|
71617
71786
|
try {
|
|
71618
71787
|
step(generator.next(value2));
|
|
@@ -71628,7 +71797,7 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
71628
71797
|
}
|
|
71629
71798
|
}
|
|
71630
71799
|
function step(result) {
|
|
71631
|
-
result.done ?
|
|
71800
|
+
result.done ? resolve4(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
71632
71801
|
}
|
|
71633
71802
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
71634
71803
|
});
|
|
@@ -72314,8 +72483,8 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
72314
72483
|
var pLocate$2 = { exports: {} };
|
|
72315
72484
|
var pLimit$2 = { exports: {} };
|
|
72316
72485
|
var pTry$2 = { exports: {} };
|
|
72317
|
-
var pTry$1 = (fn2, ...arguments_) => new Promise((
|
|
72318
|
-
|
|
72486
|
+
var pTry$1 = (fn2, ...arguments_) => new Promise((resolve4) => {
|
|
72487
|
+
resolve4(fn2(...arguments_));
|
|
72319
72488
|
});
|
|
72320
72489
|
pTry$2.exports = pTry$1;
|
|
72321
72490
|
pTry$2.exports.default = pTry$1;
|
|
@@ -72332,20 +72501,20 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
72332
72501
|
queue.shift()();
|
|
72333
72502
|
}
|
|
72334
72503
|
};
|
|
72335
|
-
const run = (fn2,
|
|
72504
|
+
const run = (fn2, resolve4, ...args) => {
|
|
72336
72505
|
activeCount++;
|
|
72337
72506
|
const result = pTry(fn2, ...args);
|
|
72338
|
-
|
|
72507
|
+
resolve4(result);
|
|
72339
72508
|
result.then(next, next);
|
|
72340
72509
|
};
|
|
72341
|
-
const enqueue = (fn2,
|
|
72510
|
+
const enqueue = (fn2, resolve4, ...args) => {
|
|
72342
72511
|
if (activeCount < concurrency) {
|
|
72343
|
-
run(fn2,
|
|
72512
|
+
run(fn2, resolve4, ...args);
|
|
72344
72513
|
} else {
|
|
72345
|
-
queue.push(run.bind(null, fn2,
|
|
72514
|
+
queue.push(run.bind(null, fn2, resolve4, ...args));
|
|
72346
72515
|
}
|
|
72347
72516
|
};
|
|
72348
|
-
const generator = (fn2, ...args) => new Promise((
|
|
72517
|
+
const generator = (fn2, ...args) => new Promise((resolve4) => enqueue(fn2, resolve4, ...args));
|
|
72349
72518
|
Object.defineProperties(generator, {
|
|
72350
72519
|
activeCount: {
|
|
72351
72520
|
get: () => activeCount
|
|
@@ -72534,14 +72703,14 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
72534
72703
|
})(findUp$1);
|
|
72535
72704
|
var path$2 = require$$0__default$1["default"];
|
|
72536
72705
|
var findUp = findUp$1.exports;
|
|
72537
|
-
var pkgDir$1 = async (
|
|
72538
|
-
const filePath = await findUp("package.json", { cwd:
|
|
72706
|
+
var pkgDir$1 = async (cwd4) => {
|
|
72707
|
+
const filePath = await findUp("package.json", { cwd: cwd4 });
|
|
72539
72708
|
return filePath && path$2.dirname(filePath);
|
|
72540
72709
|
};
|
|
72541
72710
|
pkgDir$2.exports = pkgDir$1;
|
|
72542
72711
|
pkgDir$2.exports.default = pkgDir$1;
|
|
72543
|
-
pkgDir$2.exports.sync = (
|
|
72544
|
-
const filePath = findUp.sync("package.json", { cwd:
|
|
72712
|
+
pkgDir$2.exports.sync = (cwd4) => {
|
|
72713
|
+
const filePath = findUp.sync("package.json", { cwd: cwd4 });
|
|
72545
72714
|
return filePath && path$2.dirname(filePath);
|
|
72546
72715
|
};
|
|
72547
72716
|
var makeDir$2 = { exports: {} };
|
|
@@ -72668,7 +72837,7 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
72668
72837
|
var commonDir = commondir;
|
|
72669
72838
|
var pkgDir = pkgDir$2.exports;
|
|
72670
72839
|
var makeDir = makeDir$2.exports;
|
|
72671
|
-
var { env, cwd:
|
|
72840
|
+
var { env, cwd: cwd3 } = process;
|
|
72672
72841
|
var isWritable2 = (path8) => {
|
|
72673
72842
|
try {
|
|
72674
72843
|
fs2.accessSync(path8, fs2.constants.W_OK);
|
|
@@ -72697,7 +72866,7 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
72697
72866
|
if (env.CACHE_DIR && !["true", "false", "1", "0"].includes(env.CACHE_DIR)) {
|
|
72698
72867
|
return useDirectory(path7.join(env.CACHE_DIR, options.name), options);
|
|
72699
72868
|
}
|
|
72700
|
-
let { cwd: directory =
|
|
72869
|
+
let { cwd: directory = cwd3() } = options;
|
|
72701
72870
|
if (options.files) {
|
|
72702
72871
|
directory = commonDir(directory, options.files);
|
|
72703
72872
|
}
|
|
@@ -72757,10 +72926,10 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
72757
72926
|
tsModule = override;
|
|
72758
72927
|
}
|
|
72759
72928
|
var LanguageServiceHost = class {
|
|
72760
|
-
constructor(parsedConfig, transformers,
|
|
72929
|
+
constructor(parsedConfig, transformers, cwd4) {
|
|
72761
72930
|
this.parsedConfig = parsedConfig;
|
|
72762
72931
|
this.transformers = transformers;
|
|
72763
|
-
this.cwd =
|
|
72932
|
+
this.cwd = cwd4;
|
|
72764
72933
|
this.snapshots = {};
|
|
72765
72934
|
this.versions = {};
|
|
72766
72935
|
this.getScriptFileNames = () => Array.from(this.fileNames.values());
|
|
@@ -76129,7 +76298,7 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
76129
76298
|
}
|
|
76130
76299
|
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined$1, comparator) : [];
|
|
76131
76300
|
});
|
|
76132
|
-
function
|
|
76301
|
+
function join5(array, separator) {
|
|
76133
76302
|
return array == null ? "" : nativeJoin.call(array, separator);
|
|
76134
76303
|
}
|
|
76135
76304
|
function last(array) {
|
|
@@ -78048,7 +78217,7 @@ var require_rollup_plugin_typescript2_cjs = __commonJS({
|
|
|
78048
78217
|
lodash2.isUndefined = isUndefined;
|
|
78049
78218
|
lodash2.isWeakMap = isWeakMap;
|
|
78050
78219
|
lodash2.isWeakSet = isWeakSet;
|
|
78051
|
-
lodash2.join =
|
|
78220
|
+
lodash2.join = join5;
|
|
78052
78221
|
lodash2.kebabCase = kebabCase;
|
|
78053
78222
|
lodash2.last = last;
|
|
78054
78223
|
lodash2.lastIndexOf = lastIndexOf;
|
|
@@ -88810,12 +88979,12 @@ var RetryTask = class {
|
|
|
88810
88979
|
* @param {Function} reject The reject function for the promise.
|
|
88811
88980
|
* @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation.
|
|
88812
88981
|
*/
|
|
88813
|
-
constructor(fn2, error,
|
|
88982
|
+
constructor(fn2, error, resolve4, reject, signal) {
|
|
88814
88983
|
this.fn = fn2;
|
|
88815
88984
|
this.error = error;
|
|
88816
88985
|
this.timestamp = Date.now();
|
|
88817
88986
|
this.lastAttempt = Date.now();
|
|
88818
|
-
this.resolve =
|
|
88987
|
+
this.resolve = resolve4;
|
|
88819
88988
|
this.reject = reject;
|
|
88820
88989
|
this.signal = signal;
|
|
88821
88990
|
}
|
|
@@ -88892,8 +89061,8 @@ var Retrier = class {
|
|
|
88892
89061
|
if (!this.#check(error)) {
|
|
88893
89062
|
throw error;
|
|
88894
89063
|
}
|
|
88895
|
-
return new Promise((
|
|
88896
|
-
this.#queue.push(new RetryTask(fn2, error,
|
|
89064
|
+
return new Promise((resolve4, reject) => {
|
|
89065
|
+
this.#queue.push(new RetryTask(fn2, error, resolve4, reject, signal));
|
|
88897
89066
|
signal?.addEventListener("abort", () => {
|
|
88898
89067
|
reject(signal.reason);
|
|
88899
89068
|
});
|
|
@@ -92713,10 +92882,10 @@ var Minipass = class extends import_node_events.EventEmitter {
|
|
|
92713
92882
|
* Return a void Promise that resolves once the stream ends.
|
|
92714
92883
|
*/
|
|
92715
92884
|
async promise() {
|
|
92716
|
-
return new Promise((
|
|
92885
|
+
return new Promise((resolve4, reject) => {
|
|
92717
92886
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
92718
92887
|
this.on("error", (er2) => reject(er2));
|
|
92719
|
-
this.on("end", () =>
|
|
92888
|
+
this.on("end", () => resolve4());
|
|
92720
92889
|
});
|
|
92721
92890
|
}
|
|
92722
92891
|
/**
|
|
@@ -92740,7 +92909,7 @@ var Minipass = class extends import_node_events.EventEmitter {
|
|
|
92740
92909
|
return Promise.resolve({ done: false, value: res });
|
|
92741
92910
|
if (this[EOF])
|
|
92742
92911
|
return stop();
|
|
92743
|
-
let
|
|
92912
|
+
let resolve4;
|
|
92744
92913
|
let reject;
|
|
92745
92914
|
const onerr = (er2) => {
|
|
92746
92915
|
this.off("data", ondata);
|
|
@@ -92754,19 +92923,19 @@ var Minipass = class extends import_node_events.EventEmitter {
|
|
|
92754
92923
|
this.off("end", onend);
|
|
92755
92924
|
this.off(DESTROYED, ondestroy);
|
|
92756
92925
|
this.pause();
|
|
92757
|
-
|
|
92926
|
+
resolve4({ value: value2, done: !!this[EOF] });
|
|
92758
92927
|
};
|
|
92759
92928
|
const onend = () => {
|
|
92760
92929
|
this.off("error", onerr);
|
|
92761
92930
|
this.off("data", ondata);
|
|
92762
92931
|
this.off(DESTROYED, ondestroy);
|
|
92763
92932
|
stop();
|
|
92764
|
-
|
|
92933
|
+
resolve4({ done: true, value: void 0 });
|
|
92765
92934
|
};
|
|
92766
92935
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
92767
92936
|
return new Promise((res2, rej) => {
|
|
92768
92937
|
reject = rej;
|
|
92769
|
-
|
|
92938
|
+
resolve4 = res2;
|
|
92770
92939
|
this.once(DESTROYED, ondestroy);
|
|
92771
92940
|
this.once("error", onerr);
|
|
92772
92941
|
this.once("end", onend);
|
|
@@ -93734,9 +93903,9 @@ var PathBase = class {
|
|
|
93734
93903
|
if (this.#asyncReaddirInFlight) {
|
|
93735
93904
|
await this.#asyncReaddirInFlight;
|
|
93736
93905
|
} else {
|
|
93737
|
-
let
|
|
93906
|
+
let resolve4 = () => {
|
|
93738
93907
|
};
|
|
93739
|
-
this.#asyncReaddirInFlight = new Promise((res) =>
|
|
93908
|
+
this.#asyncReaddirInFlight = new Promise((res) => resolve4 = res);
|
|
93740
93909
|
try {
|
|
93741
93910
|
for (const e2 of await this.#fs.promises.readdir(fullpath, {
|
|
93742
93911
|
withFileTypes: true
|
|
@@ -93749,7 +93918,7 @@ var PathBase = class {
|
|
|
93749
93918
|
children.provisional = 0;
|
|
93750
93919
|
}
|
|
93751
93920
|
this.#asyncReaddirInFlight = void 0;
|
|
93752
|
-
|
|
93921
|
+
resolve4();
|
|
93753
93922
|
}
|
|
93754
93923
|
return children.slice(0, children.provisional);
|
|
93755
93924
|
}
|
|
@@ -93979,18 +94148,18 @@ var PathScurryBase = class {
|
|
|
93979
94148
|
*
|
|
93980
94149
|
* @internal
|
|
93981
94150
|
*/
|
|
93982
|
-
constructor(
|
|
94151
|
+
constructor(cwd3 = process.cwd(), pathImpl, sep4, { nocase, childrenCacheSize = 16 * 1024, fs: fs2 = defaultFS } = {}) {
|
|
93983
94152
|
this.#fs = fsFromOption(fs2);
|
|
93984
|
-
if (
|
|
93985
|
-
|
|
94153
|
+
if (cwd3 instanceof URL || cwd3.startsWith("file://")) {
|
|
94154
|
+
cwd3 = (0, import_node_url2.fileURLToPath)(cwd3);
|
|
93986
94155
|
}
|
|
93987
|
-
const cwdPath = pathImpl.resolve(
|
|
94156
|
+
const cwdPath = pathImpl.resolve(cwd3);
|
|
93988
94157
|
this.roots = /* @__PURE__ */ Object.create(null);
|
|
93989
94158
|
this.rootPath = this.parseRootPath(cwdPath);
|
|
93990
94159
|
this.#resolveCache = new ResolveCache();
|
|
93991
94160
|
this.#resolvePosixCache = new ResolveCache();
|
|
93992
94161
|
this.#children = new ChildrenCache(childrenCacheSize);
|
|
93993
|
-
const split = cwdPath.substring(this.rootPath.length).split(
|
|
94162
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep4);
|
|
93994
94163
|
if (split.length === 1 && !split[0]) {
|
|
93995
94164
|
split.pop();
|
|
93996
94165
|
}
|
|
@@ -94521,9 +94690,9 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
94521
94690
|
* separator for generating path strings
|
|
94522
94691
|
*/
|
|
94523
94692
|
sep = "\\";
|
|
94524
|
-
constructor(
|
|
94693
|
+
constructor(cwd3 = process.cwd(), opts = {}) {
|
|
94525
94694
|
const { nocase = true } = opts;
|
|
94526
|
-
super(
|
|
94695
|
+
super(cwd3, import_node_path4.win32, "\\", { ...opts, nocase });
|
|
94527
94696
|
this.nocase = nocase;
|
|
94528
94697
|
for (let p2 = this.cwd; p2; p2 = p2.parent) {
|
|
94529
94698
|
p2.nocase = this.nocase;
|
|
@@ -94553,9 +94722,9 @@ var PathScurryPosix = class extends PathScurryBase {
|
|
|
94553
94722
|
* separator for generating path strings
|
|
94554
94723
|
*/
|
|
94555
94724
|
sep = "/";
|
|
94556
|
-
constructor(
|
|
94725
|
+
constructor(cwd3 = process.cwd(), opts = {}) {
|
|
94557
94726
|
const { nocase = false } = opts;
|
|
94558
|
-
super(
|
|
94727
|
+
super(cwd3, import_node_path4.posix, "/", { ...opts, nocase });
|
|
94559
94728
|
this.nocase = nocase;
|
|
94560
94729
|
}
|
|
94561
94730
|
/**
|
|
@@ -94578,9 +94747,9 @@ var PathScurryPosix = class extends PathScurryBase {
|
|
|
94578
94747
|
}
|
|
94579
94748
|
};
|
|
94580
94749
|
var PathScurryDarwin = class extends PathScurryPosix {
|
|
94581
|
-
constructor(
|
|
94750
|
+
constructor(cwd3 = process.cwd(), opts = {}) {
|
|
94582
94751
|
const { nocase = true } = opts;
|
|
94583
|
-
super(
|
|
94752
|
+
super(cwd3, { ...opts, nocase });
|
|
94584
94753
|
}
|
|
94585
94754
|
};
|
|
94586
94755
|
var Path2 = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
@@ -94811,10 +94980,10 @@ var Ignore = class {
|
|
|
94811
94980
|
ignored(p2) {
|
|
94812
94981
|
const fullpath = p2.fullpath();
|
|
94813
94982
|
const fullpaths = `${fullpath}/`;
|
|
94814
|
-
const
|
|
94815
|
-
const relatives = `${
|
|
94983
|
+
const relative5 = p2.relative() || ".";
|
|
94984
|
+
const relatives = `${relative5}/`;
|
|
94816
94985
|
for (const m3 of this.relative) {
|
|
94817
|
-
if (m3.match(
|
|
94986
|
+
if (m3.match(relative5) || m3.match(relatives))
|
|
94818
94987
|
return true;
|
|
94819
94988
|
}
|
|
94820
94989
|
for (const m3 of this.absolute) {
|
|
@@ -94825,9 +94994,9 @@ var Ignore = class {
|
|
|
94825
94994
|
}
|
|
94826
94995
|
childrenIgnored(p2) {
|
|
94827
94996
|
const fullpath = p2.fullpath() + "/";
|
|
94828
|
-
const
|
|
94997
|
+
const relative5 = (p2.relative() || ".") + "/";
|
|
94829
94998
|
for (const m3 of this.relativeChildren) {
|
|
94830
|
-
if (m3.match(
|
|
94999
|
+
if (m3.match(relative5))
|
|
94831
95000
|
return true;
|
|
94832
95001
|
}
|
|
94833
95002
|
for (const m3 of this.absoluteChildren) {
|
|
@@ -95672,7 +95841,7 @@ function createJiti(id, opts = {}) {
|
|
|
95672
95841
|
}
|
|
95673
95842
|
|
|
95674
95843
|
// node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
95675
|
-
|
|
95844
|
+
init_dist6();
|
|
95676
95845
|
|
|
95677
95846
|
// node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
95678
95847
|
var import_node_fs5 = require("node:fs");
|
|
@@ -95868,7 +96037,7 @@ function withDefaults(options) {
|
|
|
95868
96037
|
}
|
|
95869
96038
|
return { ...defaults2, ...options };
|
|
95870
96039
|
}
|
|
95871
|
-
function
|
|
96040
|
+
function parse5(contents, options = {}) {
|
|
95872
96041
|
const config = {};
|
|
95873
96042
|
const lines = contents.split(RE_LINES);
|
|
95874
96043
|
for (const line of lines) {
|
|
@@ -95897,7 +96066,7 @@ function parseFile(path7, options) {
|
|
|
95897
96066
|
if (!(0, import_node_fs5.existsSync)(path7)) {
|
|
95898
96067
|
return {};
|
|
95899
96068
|
}
|
|
95900
|
-
return
|
|
96069
|
+
return parse5((0, import_node_fs5.readFileSync)(path7, "utf8"), options);
|
|
95901
96070
|
}
|
|
95902
96071
|
function read2(options) {
|
|
95903
96072
|
options = withDefaults(options);
|
|
@@ -96537,7 +96706,7 @@ function hash(object, options = {}) {
|
|
|
96537
96706
|
}
|
|
96538
96707
|
|
|
96539
96708
|
// node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
96540
|
-
|
|
96709
|
+
init_dist5();
|
|
96541
96710
|
var dotenv = __toESM(require_main(), 1);
|
|
96542
96711
|
async function setupDotenv(options) {
|
|
96543
96712
|
const targetEnvironment = options.env ?? process.env;
|
|
@@ -96570,7 +96739,7 @@ async function loadDotenv(options) {
|
|
|
96570
96739
|
}
|
|
96571
96740
|
return environment;
|
|
96572
96741
|
}
|
|
96573
|
-
function interpolate(target, source = {},
|
|
96742
|
+
function interpolate(target, source = {}, parse7 = (v4) => v4) {
|
|
96574
96743
|
function getValue(key) {
|
|
96575
96744
|
return source[key] === void 0 ? target[key] : source[key];
|
|
96576
96745
|
}
|
|
@@ -96579,7 +96748,7 @@ function interpolate(target, source = {}, parse6 = (v4) => v4) {
|
|
|
96579
96748
|
return value2;
|
|
96580
96749
|
}
|
|
96581
96750
|
const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
|
|
96582
|
-
return
|
|
96751
|
+
return parse7(
|
|
96583
96752
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
96584
96753
|
matches.reduce((newValue, match2) => {
|
|
96585
96754
|
const parts = /(.?)\${?([\w:]+)?}?/g.exec(match2) || [];
|
|
@@ -96813,7 +96982,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
96813
96982
|
}
|
|
96814
96983
|
const _merger = options.merger || import_defu3.defu;
|
|
96815
96984
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
96816
|
-
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (
|
|
96985
|
+
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist8(), dist_exports));
|
|
96817
96986
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
96818
96987
|
let cloneDir;
|
|
96819
96988
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -96847,18 +97016,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
96847
97016
|
}
|
|
96848
97017
|
const ext2 = extname(source);
|
|
96849
97018
|
const isDir = !ext2 || ext2 === basename(source);
|
|
96850
|
-
const
|
|
97019
|
+
const cwd3 = resolve(options.cwd, isDir ? source : dirname(source));
|
|
96851
97020
|
if (isDir) {
|
|
96852
97021
|
source = options.configFile;
|
|
96853
97022
|
}
|
|
96854
97023
|
const res = {
|
|
96855
97024
|
config: void 0,
|
|
96856
97025
|
configFile: void 0,
|
|
96857
|
-
cwd:
|
|
97026
|
+
cwd: cwd3,
|
|
96858
97027
|
source,
|
|
96859
97028
|
sourceOptions
|
|
96860
97029
|
};
|
|
96861
|
-
res.configFile = tryResolve(resolve(
|
|
97030
|
+
res.configFile = tryResolve(resolve(cwd3, source)) || tryResolve(resolve(cwd3, ".config", source.replace(/\.config$/, ""))) || tryResolve(resolve(cwd3, ".config", source)) || source;
|
|
96862
97031
|
if (!(0, import_node_fs10.existsSync)(res.configFile)) {
|
|
96863
97032
|
return res;
|
|
96864
97033
|
}
|
|
@@ -97753,7 +97922,7 @@ var addPackageJsonExports = async (sourceRoot, packageJson) => {
|
|
|
97753
97922
|
var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
|
|
97754
97923
|
|
|
97755
97924
|
// packages/unbuild/src/build.ts
|
|
97756
|
-
var import_defu7 = __toESM(require("defu")
|
|
97925
|
+
var import_defu7 = __toESM(require("defu"));
|
|
97757
97926
|
var import_node_path11 = require("node:path");
|
|
97758
97927
|
var import_find_workspace_root5 = require("nx/src/utils/find-workspace-root");
|
|
97759
97928
|
var import_unbuild = require("unbuild");
|
|
@@ -97835,14 +98004,14 @@ var swcPlugin = (options, resolvedOptions) => {
|
|
|
97835
98004
|
var import_devkit5 = require("@nx/devkit");
|
|
97836
98005
|
var import_buildable_libs_utils3 = require("@nx/js/src/utils/buildable-libs-utils");
|
|
97837
98006
|
var import_compiler_helper_dependency = require("@nx/js/src/utils/compiler-helper-dependency");
|
|
97838
|
-
var import_rollup_plugin_typescript2 = __toESM(require_rollup_plugin_typescript2_cjs()
|
|
98007
|
+
var import_rollup_plugin_typescript2 = __toESM(require_rollup_plugin_typescript2_cjs());
|
|
97839
98008
|
|
|
97840
98009
|
// packages/unbuild/src/utilities/helpers.ts
|
|
97841
98010
|
var import_devkit4 = require("@nx/devkit");
|
|
97842
98011
|
var import_buildable_libs_utils2 = require("@nx/js/src/utils/buildable-libs-utils");
|
|
97843
98012
|
var import_node_path9 = require("node:path");
|
|
97844
98013
|
var import_node_url6 = require("node:url");
|
|
97845
|
-
var import_typescript = __toESM(require("typescript")
|
|
98014
|
+
var import_typescript = __toESM(require("typescript"));
|
|
97846
98015
|
async function loadConfig2(configPath) {
|
|
97847
98016
|
if (!/\.(js|mjs)$/.test((0, import_node_path9.extname)(configPath))) {
|
|
97848
98017
|
throw new Error("Unsupported config file format");
|