@hot-updater/plugin-core 0.19.1 → 0.19.2
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/dist/index.cjs +559 -1606
- package/dist/index.js +559 -1606
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1602,8 +1602,8 @@ var require_getWorkspaceManagerAndRoot = __commonJS({ "../../node_modules/.pnpm/
|
|
|
1602
1602
|
} });
|
|
1603
1603
|
|
|
1604
1604
|
//#endregion
|
|
1605
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1606
|
-
var require_array = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
1605
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
1606
|
+
var require_array = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
1607
1607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1608
1608
|
exports.splitWhen = exports.flatten = void 0;
|
|
1609
1609
|
function flatten(items) {
|
|
@@ -1623,8 +1623,8 @@ var require_array = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
1623
1623
|
} });
|
|
1624
1624
|
|
|
1625
1625
|
//#endregion
|
|
1626
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1627
|
-
var require_errno = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
1626
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
1627
|
+
var require_errno = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
1628
1628
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1629
1629
|
exports.isEnoentCodeError = void 0;
|
|
1630
1630
|
function isEnoentCodeError(error) {
|
|
@@ -1634,8 +1634,8 @@ var require_errno = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
1634
1634
|
} });
|
|
1635
1635
|
|
|
1636
1636
|
//#endregion
|
|
1637
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1638
|
-
var require_fs$3 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
1637
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
1638
|
+
var require_fs$3 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
1639
1639
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1640
1640
|
exports.createDirentFromStats = void 0;
|
|
1641
1641
|
var DirentFromStats$1 = class {
|
|
@@ -1657,8 +1657,8 @@ var require_fs$3 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_m
|
|
|
1657
1657
|
} });
|
|
1658
1658
|
|
|
1659
1659
|
//#endregion
|
|
1660
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1661
|
-
var require_path = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
1660
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
1661
|
+
var require_path = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
1662
1662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1663
1663
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
1664
1664
|
const os$2 = __require("os");
|
|
@@ -1870,8 +1870,8 @@ var require_glob_parent = __commonJS({ "../../node_modules/.pnpm/glob-parent@5.1
|
|
|
1870
1870
|
} });
|
|
1871
1871
|
|
|
1872
1872
|
//#endregion
|
|
1873
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
1874
|
-
var require_utils$
|
|
1873
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
1874
|
+
var require_utils$5 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
1875
1875
|
exports.isInteger = (num) => {
|
|
1876
1876
|
if (typeof num === "number") return Number.isInteger(num);
|
|
1877
1877
|
if (typeof num === "string" && num.trim() !== "") return Number.isInteger(Number(num));
|
|
@@ -1893,7 +1893,7 @@ var require_utils$6 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
1893
1893
|
* Escape the given node with '\\' before node.value
|
|
1894
1894
|
*/
|
|
1895
1895
|
exports.escapeNode = (block, n = 0, type) => {
|
|
1896
|
-
|
|
1896
|
+
const node = block.nodes[n];
|
|
1897
1897
|
if (!node) return;
|
|
1898
1898
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
1899
1899
|
if (node.escaped !== true) {
|
|
@@ -1951,8 +1951,12 @@ var require_utils$6 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
1951
1951
|
const result = [];
|
|
1952
1952
|
const flat = (arr) => {
|
|
1953
1953
|
for (let i$3 = 0; i$3 < arr.length; i$3++) {
|
|
1954
|
-
|
|
1955
|
-
Array.isArray(ele)
|
|
1954
|
+
const ele = arr[i$3];
|
|
1955
|
+
if (Array.isArray(ele)) {
|
|
1956
|
+
flat(ele);
|
|
1957
|
+
continue;
|
|
1958
|
+
}
|
|
1959
|
+
if (ele !== void 0) result.push(ele);
|
|
1956
1960
|
}
|
|
1957
1961
|
return result;
|
|
1958
1962
|
};
|
|
@@ -1962,23 +1966,23 @@ var require_utils$6 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
1962
1966
|
} });
|
|
1963
1967
|
|
|
1964
1968
|
//#endregion
|
|
1965
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
1966
|
-
var require_stringify$
|
|
1967
|
-
const utils$
|
|
1969
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
1970
|
+
var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
1971
|
+
const utils$45 = require_utils$5();
|
|
1968
1972
|
module.exports = (ast, options = {}) => {
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1973
|
+
const stringify$5 = (node, parent = {}) => {
|
|
1974
|
+
const invalidBlock = options.escapeInvalid && utils$45.isInvalidBrace(parent);
|
|
1975
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
1972
1976
|
let output = "";
|
|
1973
1977
|
if (node.value) {
|
|
1974
|
-
if ((invalidBlock || invalidNode) && utils$
|
|
1978
|
+
if ((invalidBlock || invalidNode) && utils$45.isOpenOrClose(node)) return "\\" + node.value;
|
|
1975
1979
|
return node.value;
|
|
1976
1980
|
}
|
|
1977
1981
|
if (node.value) return node.value;
|
|
1978
|
-
if (node.nodes) for (
|
|
1982
|
+
if (node.nodes) for (const child of node.nodes) output += stringify$5(child);
|
|
1979
1983
|
return output;
|
|
1980
1984
|
};
|
|
1981
|
-
return stringify$
|
|
1985
|
+
return stringify$5(ast);
|
|
1982
1986
|
};
|
|
1983
1987
|
} });
|
|
1984
1988
|
|
|
@@ -2191,7 +2195,7 @@ var require_to_regex_range = __commonJS({ "../../node_modules/.pnpm/to-regex-ran
|
|
|
2191
2195
|
//#endregion
|
|
2192
2196
|
//#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
2193
2197
|
var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
2194
|
-
const util$
|
|
2198
|
+
const util$8 = __require("util");
|
|
2195
2199
|
const toRegexRange = require_to_regex_range();
|
|
2196
2200
|
const isObject$4 = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
2197
2201
|
const transform$2 = (toNumber) => {
|
|
@@ -2209,7 +2213,7 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
|
2209
2213
|
while (value[++index] === "0");
|
|
2210
2214
|
return index > 0;
|
|
2211
2215
|
};
|
|
2212
|
-
const stringify$
|
|
2216
|
+
const stringify$4 = (start, end, options) => {
|
|
2213
2217
|
if (typeof start === "string" || typeof end === "string") return true;
|
|
2214
2218
|
return options.stringify === true;
|
|
2215
2219
|
};
|
|
@@ -2264,7 +2268,7 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
|
2264
2268
|
return toRegexRange(start, end, options);
|
|
2265
2269
|
};
|
|
2266
2270
|
const rangeError = (...args) => {
|
|
2267
|
-
return new RangeError("Invalid range arguments: " + util$
|
|
2271
|
+
return new RangeError("Invalid range arguments: " + util$8.inspect(...args));
|
|
2268
2272
|
};
|
|
2269
2273
|
const invalidRange = (start, end, options) => {
|
|
2270
2274
|
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
@@ -2290,7 +2294,7 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
|
2290
2294
|
step = Math.max(Math.abs(step), 1);
|
|
2291
2295
|
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
2292
2296
|
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
2293
|
-
let toNumber = padded === false && stringify$
|
|
2297
|
+
let toNumber = padded === false && stringify$4(start, end, options) === false;
|
|
2294
2298
|
let format = options.transform || transform$2(toNumber);
|
|
2295
2299
|
if (options.toRegex && step === 1) return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
|
|
2296
2300
|
let parts = {
|
|
@@ -2334,81 +2338,85 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
|
2334
2338
|
});
|
|
2335
2339
|
return range;
|
|
2336
2340
|
};
|
|
2337
|
-
const fill$
|
|
2341
|
+
const fill$2 = (start, end, step, options = {}) => {
|
|
2338
2342
|
if (end == null && isValidValue(start)) return [start];
|
|
2339
2343
|
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options);
|
|
2340
|
-
if (typeof step === "function") return fill$
|
|
2341
|
-
if (isObject$4(step)) return fill$
|
|
2344
|
+
if (typeof step === "function") return fill$2(start, end, 1, { transform: step });
|
|
2345
|
+
if (isObject$4(step)) return fill$2(start, end, 0, step);
|
|
2342
2346
|
let opts = { ...options };
|
|
2343
2347
|
if (opts.capture === true) opts.wrap = true;
|
|
2344
2348
|
step = step || opts.step || 1;
|
|
2345
2349
|
if (!isNumber$1(step)) {
|
|
2346
2350
|
if (step != null && !isObject$4(step)) return invalidStep(step, opts);
|
|
2347
|
-
return fill$
|
|
2351
|
+
return fill$2(start, end, 1, step);
|
|
2348
2352
|
}
|
|
2349
2353
|
if (isNumber$1(start) && isNumber$1(end)) return fillNumbers(start, end, step, opts);
|
|
2350
2354
|
return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
|
|
2351
2355
|
};
|
|
2352
|
-
module.exports = fill$
|
|
2356
|
+
module.exports = fill$2;
|
|
2353
2357
|
} });
|
|
2354
2358
|
|
|
2355
2359
|
//#endregion
|
|
2356
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2357
|
-
var require_compile
|
|
2358
|
-
const fill$
|
|
2359
|
-
const utils$
|
|
2360
|
-
const compile$
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2360
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
2361
|
+
var require_compile = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
2362
|
+
const fill$1 = require_fill_range();
|
|
2363
|
+
const utils$44 = require_utils$5();
|
|
2364
|
+
const compile$1 = (ast, options = {}) => {
|
|
2365
|
+
const walk$1 = (node, parent = {}) => {
|
|
2366
|
+
const invalidBlock = utils$44.isInvalidBrace(parent);
|
|
2367
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
2368
|
+
const invalid = invalidBlock === true || invalidNode === true;
|
|
2369
|
+
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
2366
2370
|
let output = "";
|
|
2367
2371
|
if (node.isOpen === true) return prefix + node.value;
|
|
2368
|
-
if (node.isClose === true)
|
|
2372
|
+
if (node.isClose === true) {
|
|
2373
|
+
console.log("node.isClose", prefix, node.value);
|
|
2374
|
+
return prefix + node.value;
|
|
2375
|
+
}
|
|
2369
2376
|
if (node.type === "open") return invalid ? prefix + node.value : "(";
|
|
2370
2377
|
if (node.type === "close") return invalid ? prefix + node.value : ")";
|
|
2371
2378
|
if (node.type === "comma") return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
2372
2379
|
if (node.value) return node.value;
|
|
2373
2380
|
if (node.nodes && node.ranges > 0) {
|
|
2374
|
-
|
|
2375
|
-
|
|
2381
|
+
const args = utils$44.reduce(node.nodes);
|
|
2382
|
+
const range = fill$1(...args, {
|
|
2376
2383
|
...options,
|
|
2377
2384
|
wrap: false,
|
|
2378
|
-
toRegex: true
|
|
2385
|
+
toRegex: true,
|
|
2386
|
+
strictZeros: true
|
|
2379
2387
|
});
|
|
2380
2388
|
if (range.length !== 0) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
2381
2389
|
}
|
|
2382
|
-
if (node.nodes) for (
|
|
2390
|
+
if (node.nodes) for (const child of node.nodes) output += walk$1(child, node);
|
|
2383
2391
|
return output;
|
|
2384
2392
|
};
|
|
2385
2393
|
return walk$1(ast);
|
|
2386
2394
|
};
|
|
2387
|
-
module.exports = compile$
|
|
2395
|
+
module.exports = compile$1;
|
|
2388
2396
|
} });
|
|
2389
2397
|
|
|
2390
2398
|
//#endregion
|
|
2391
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2392
|
-
var require_expand
|
|
2393
|
-
const fill
|
|
2394
|
-
const stringify$
|
|
2395
|
-
const utils$
|
|
2396
|
-
const append
|
|
2397
|
-
|
|
2399
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
2400
|
+
var require_expand = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
2401
|
+
const fill = require_fill_range();
|
|
2402
|
+
const stringify$3 = require_stringify$1();
|
|
2403
|
+
const utils$43 = require_utils$5();
|
|
2404
|
+
const append = (queue$1 = "", stash = "", enclose = false) => {
|
|
2405
|
+
const result = [];
|
|
2398
2406
|
queue$1 = [].concat(queue$1);
|
|
2399
2407
|
stash = [].concat(stash);
|
|
2400
2408
|
if (!stash.length) return queue$1;
|
|
2401
|
-
if (!queue$1.length) return enclose ? utils$
|
|
2402
|
-
for (
|
|
2409
|
+
if (!queue$1.length) return enclose ? utils$43.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
2410
|
+
for (const item of queue$1) if (Array.isArray(item)) for (const value of item) result.push(append(value, stash, enclose));
|
|
2403
2411
|
else for (let ele of stash) {
|
|
2404
2412
|
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
2405
|
-
result.push(Array.isArray(ele) ? append
|
|
2413
|
+
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
2406
2414
|
}
|
|
2407
|
-
return utils$
|
|
2415
|
+
return utils$43.flatten(result);
|
|
2408
2416
|
};
|
|
2409
|
-
const expand$
|
|
2410
|
-
|
|
2411
|
-
|
|
2417
|
+
const expand$1 = (ast, options = {}) => {
|
|
2418
|
+
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
2419
|
+
const walk$1 = (node, parent = {}) => {
|
|
2412
2420
|
node.queue = [];
|
|
2413
2421
|
let p$1 = parent;
|
|
2414
2422
|
let q$1 = parent.queue;
|
|
@@ -2417,23 +2425,23 @@ var require_expand$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2417
2425
|
q$1 = p$1.queue;
|
|
2418
2426
|
}
|
|
2419
2427
|
if (node.invalid || node.dollar) {
|
|
2420
|
-
q$1.push(append
|
|
2428
|
+
q$1.push(append(q$1.pop(), stringify$3(node, options)));
|
|
2421
2429
|
return;
|
|
2422
2430
|
}
|
|
2423
2431
|
if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
|
|
2424
|
-
q$1.push(append
|
|
2432
|
+
q$1.push(append(q$1.pop(), ["{}"]));
|
|
2425
2433
|
return;
|
|
2426
2434
|
}
|
|
2427
2435
|
if (node.nodes && node.ranges > 0) {
|
|
2428
|
-
|
|
2429
|
-
if (utils$
|
|
2430
|
-
let range = fill
|
|
2431
|
-
if (range.length === 0) range = stringify$
|
|
2432
|
-
q$1.push(append
|
|
2436
|
+
const args = utils$43.reduce(node.nodes);
|
|
2437
|
+
if (utils$43.exceedsLimit(...args, options.step, rangeLimit)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
2438
|
+
let range = fill(...args, options);
|
|
2439
|
+
if (range.length === 0) range = stringify$3(node, options);
|
|
2440
|
+
q$1.push(append(q$1.pop(), range));
|
|
2433
2441
|
node.nodes = [];
|
|
2434
2442
|
return;
|
|
2435
2443
|
}
|
|
2436
|
-
|
|
2444
|
+
const enclose = utils$43.encloseBrace(node);
|
|
2437
2445
|
let queue$1 = node.queue;
|
|
2438
2446
|
let block = node;
|
|
2439
2447
|
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
@@ -2441,34 +2449,34 @@ var require_expand$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2441
2449
|
queue$1 = block.queue;
|
|
2442
2450
|
}
|
|
2443
2451
|
for (let i$3 = 0; i$3 < node.nodes.length; i$3++) {
|
|
2444
|
-
|
|
2452
|
+
const child = node.nodes[i$3];
|
|
2445
2453
|
if (child.type === "comma" && node.type === "brace") {
|
|
2446
2454
|
if (i$3 === 1) queue$1.push("");
|
|
2447
2455
|
queue$1.push("");
|
|
2448
2456
|
continue;
|
|
2449
2457
|
}
|
|
2450
2458
|
if (child.type === "close") {
|
|
2451
|
-
q$1.push(append
|
|
2459
|
+
q$1.push(append(q$1.pop(), queue$1, enclose));
|
|
2452
2460
|
continue;
|
|
2453
2461
|
}
|
|
2454
2462
|
if (child.value && child.type !== "open") {
|
|
2455
|
-
queue$1.push(append
|
|
2463
|
+
queue$1.push(append(queue$1.pop(), child.value));
|
|
2456
2464
|
continue;
|
|
2457
2465
|
}
|
|
2458
2466
|
if (child.nodes) walk$1(child, node);
|
|
2459
2467
|
}
|
|
2460
2468
|
return queue$1;
|
|
2461
2469
|
};
|
|
2462
|
-
return utils$
|
|
2470
|
+
return utils$43.flatten(walk$1(ast));
|
|
2463
2471
|
};
|
|
2464
|
-
module.exports = expand$
|
|
2472
|
+
module.exports = expand$1;
|
|
2465
2473
|
} });
|
|
2466
2474
|
|
|
2467
2475
|
//#endregion
|
|
2468
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2469
|
-
var require_constants$
|
|
2476
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
2477
|
+
var require_constants$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
2470
2478
|
module.exports = {
|
|
2471
|
-
MAX_LENGTH:
|
|
2479
|
+
MAX_LENGTH: 1e4,
|
|
2472
2480
|
CHAR_0: "0",
|
|
2473
2481
|
CHAR_9: "9",
|
|
2474
2482
|
CHAR_UPPERCASE_A: "A",
|
|
@@ -2517,35 +2525,34 @@ var require_constants$4 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/no
|
|
|
2517
2525
|
} });
|
|
2518
2526
|
|
|
2519
2527
|
//#endregion
|
|
2520
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2521
|
-
var require_parse$
|
|
2522
|
-
const stringify$
|
|
2528
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
2529
|
+
var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
2530
|
+
const stringify$2 = require_stringify$1();
|
|
2523
2531
|
/**
|
|
2524
2532
|
* Constants
|
|
2525
2533
|
*/
|
|
2526
|
-
const { MAX_LENGTH: MAX_LENGTH$
|
|
2534
|
+
const { MAX_LENGTH: MAX_LENGTH$1, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA: CHAR_COMMA$2, CHAR_DOT: CHAR_DOT$1, CHAR_LEFT_PARENTHESES: CHAR_LEFT_PARENTHESES$1, CHAR_RIGHT_PARENTHESES: CHAR_RIGHT_PARENTHESES$1, CHAR_LEFT_CURLY_BRACE: CHAR_LEFT_CURLY_BRACE$1, CHAR_RIGHT_CURLY_BRACE: CHAR_RIGHT_CURLY_BRACE$1, CHAR_LEFT_SQUARE_BRACKET: CHAR_LEFT_SQUARE_BRACKET$2, CHAR_RIGHT_SQUARE_BRACKET: CHAR_RIGHT_SQUARE_BRACKET$2, CHAR_DOUBLE_QUOTE: CHAR_DOUBLE_QUOTE$1, CHAR_SINGLE_QUOTE: CHAR_SINGLE_QUOTE$1, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = require_constants$3();
|
|
2527
2535
|
/**
|
|
2528
2536
|
* parse
|
|
2529
2537
|
*/
|
|
2530
|
-
const parse$
|
|
2538
|
+
const parse$4 = (input, options = {}) => {
|
|
2531
2539
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
2532
|
-
|
|
2533
|
-
|
|
2540
|
+
const opts = options || {};
|
|
2541
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
|
|
2534
2542
|
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
2535
|
-
|
|
2543
|
+
const ast = {
|
|
2536
2544
|
type: "root",
|
|
2537
2545
|
input,
|
|
2538
2546
|
nodes: []
|
|
2539
2547
|
};
|
|
2540
|
-
|
|
2548
|
+
const stack = [ast];
|
|
2541
2549
|
let block = ast;
|
|
2542
2550
|
let prev = ast;
|
|
2543
2551
|
let brackets = 0;
|
|
2544
|
-
|
|
2552
|
+
const length = input.length;
|
|
2545
2553
|
let index = 0;
|
|
2546
2554
|
let depth$1 = 0;
|
|
2547
2555
|
let value;
|
|
2548
|
-
let memo = {};
|
|
2549
2556
|
/**
|
|
2550
2557
|
* Helpers
|
|
2551
2558
|
*/
|
|
@@ -2569,11 +2576,11 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2569
2576
|
/**
|
|
2570
2577
|
* Invalid chars
|
|
2571
2578
|
*/
|
|
2572
|
-
if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
2579
|
+
if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) continue;
|
|
2573
2580
|
/**
|
|
2574
2581
|
* Escaped chars
|
|
2575
2582
|
*/
|
|
2576
|
-
if (value === CHAR_BACKSLASH
|
|
2583
|
+
if (value === CHAR_BACKSLASH) {
|
|
2577
2584
|
push({
|
|
2578
2585
|
type: "text",
|
|
2579
2586
|
value: (options.keepEscaping ? value : "") + advance()
|
|
@@ -2583,7 +2590,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2583
2590
|
/**
|
|
2584
2591
|
* Right square bracket (literal): ']'
|
|
2585
2592
|
*/
|
|
2586
|
-
if (value === CHAR_RIGHT_SQUARE_BRACKET$
|
|
2593
|
+
if (value === CHAR_RIGHT_SQUARE_BRACKET$2) {
|
|
2587
2594
|
push({
|
|
2588
2595
|
type: "text",
|
|
2589
2596
|
value: "\\" + value
|
|
@@ -2593,21 +2600,20 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2593
2600
|
/**
|
|
2594
2601
|
* Left square bracket: '['
|
|
2595
2602
|
*/
|
|
2596
|
-
if (value === CHAR_LEFT_SQUARE_BRACKET$
|
|
2603
|
+
if (value === CHAR_LEFT_SQUARE_BRACKET$2) {
|
|
2597
2604
|
brackets++;
|
|
2598
|
-
let closed = true;
|
|
2599
2605
|
let next;
|
|
2600
2606
|
while (index < length && (next = advance())) {
|
|
2601
2607
|
value += next;
|
|
2602
|
-
if (next === CHAR_LEFT_SQUARE_BRACKET$
|
|
2608
|
+
if (next === CHAR_LEFT_SQUARE_BRACKET$2) {
|
|
2603
2609
|
brackets++;
|
|
2604
2610
|
continue;
|
|
2605
2611
|
}
|
|
2606
|
-
if (next === CHAR_BACKSLASH
|
|
2612
|
+
if (next === CHAR_BACKSLASH) {
|
|
2607
2613
|
value += advance();
|
|
2608
2614
|
continue;
|
|
2609
2615
|
}
|
|
2610
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET$
|
|
2616
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET$2) {
|
|
2611
2617
|
brackets--;
|
|
2612
2618
|
if (brackets === 0) break;
|
|
2613
2619
|
}
|
|
@@ -2621,7 +2627,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2621
2627
|
/**
|
|
2622
2628
|
* Parentheses
|
|
2623
2629
|
*/
|
|
2624
|
-
if (value === CHAR_LEFT_PARENTHESES$
|
|
2630
|
+
if (value === CHAR_LEFT_PARENTHESES$1) {
|
|
2625
2631
|
block = push({
|
|
2626
2632
|
type: "paren",
|
|
2627
2633
|
nodes: []
|
|
@@ -2633,7 +2639,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2633
2639
|
});
|
|
2634
2640
|
continue;
|
|
2635
2641
|
}
|
|
2636
|
-
if (value === CHAR_RIGHT_PARENTHESES$
|
|
2642
|
+
if (value === CHAR_RIGHT_PARENTHESES$1) {
|
|
2637
2643
|
if (block.type !== "paren") {
|
|
2638
2644
|
push({
|
|
2639
2645
|
type: "text",
|
|
@@ -2652,12 +2658,12 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2652
2658
|
/**
|
|
2653
2659
|
* Quotes: '|"|`
|
|
2654
2660
|
*/
|
|
2655
|
-
if (value === CHAR_DOUBLE_QUOTE$
|
|
2656
|
-
|
|
2661
|
+
if (value === CHAR_DOUBLE_QUOTE$1 || value === CHAR_SINGLE_QUOTE$1 || value === CHAR_BACKTICK) {
|
|
2662
|
+
const open = value;
|
|
2657
2663
|
let next;
|
|
2658
2664
|
if (options.keepQuotes !== true) value = "";
|
|
2659
2665
|
while (index < length && (next = advance())) {
|
|
2660
|
-
if (next === CHAR_BACKSLASH
|
|
2666
|
+
if (next === CHAR_BACKSLASH) {
|
|
2661
2667
|
value += next + advance();
|
|
2662
2668
|
continue;
|
|
2663
2669
|
}
|
|
@@ -2676,10 +2682,10 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2676
2682
|
/**
|
|
2677
2683
|
* Left curly brace: '{'
|
|
2678
2684
|
*/
|
|
2679
|
-
if (value === CHAR_LEFT_CURLY_BRACE$
|
|
2685
|
+
if (value === CHAR_LEFT_CURLY_BRACE$1) {
|
|
2680
2686
|
depth$1++;
|
|
2681
|
-
|
|
2682
|
-
|
|
2687
|
+
const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
|
|
2688
|
+
const brace = {
|
|
2683
2689
|
type: "brace",
|
|
2684
2690
|
open: true,
|
|
2685
2691
|
close: false,
|
|
@@ -2700,7 +2706,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2700
2706
|
/**
|
|
2701
2707
|
* Right curly brace: '}'
|
|
2702
2708
|
*/
|
|
2703
|
-
if (value === CHAR_RIGHT_CURLY_BRACE$
|
|
2709
|
+
if (value === CHAR_RIGHT_CURLY_BRACE$1) {
|
|
2704
2710
|
if (block.type !== "brace") {
|
|
2705
2711
|
push({
|
|
2706
2712
|
type: "text",
|
|
@@ -2708,7 +2714,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2708
2714
|
});
|
|
2709
2715
|
continue;
|
|
2710
2716
|
}
|
|
2711
|
-
|
|
2717
|
+
const type = "close";
|
|
2712
2718
|
block = stack.pop();
|
|
2713
2719
|
block.close = true;
|
|
2714
2720
|
push({
|
|
@@ -2722,13 +2728,13 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2722
2728
|
/**
|
|
2723
2729
|
* Comma: ','
|
|
2724
2730
|
*/
|
|
2725
|
-
if (value === CHAR_COMMA$
|
|
2731
|
+
if (value === CHAR_COMMA$2 && depth$1 > 0) {
|
|
2726
2732
|
if (block.ranges > 0) {
|
|
2727
2733
|
block.ranges = 0;
|
|
2728
|
-
|
|
2734
|
+
const open = block.nodes.shift();
|
|
2729
2735
|
block.nodes = [open, {
|
|
2730
2736
|
type: "text",
|
|
2731
|
-
value: stringify$
|
|
2737
|
+
value: stringify$2(block)
|
|
2732
2738
|
}];
|
|
2733
2739
|
}
|
|
2734
2740
|
push({
|
|
@@ -2741,8 +2747,8 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2741
2747
|
/**
|
|
2742
2748
|
* Dot: '.'
|
|
2743
2749
|
*/
|
|
2744
|
-
if (value === CHAR_DOT$
|
|
2745
|
-
|
|
2750
|
+
if (value === CHAR_DOT$1 && depth$1 > 0 && block.commas === 0) {
|
|
2751
|
+
const siblings = block.nodes;
|
|
2746
2752
|
if (depth$1 === 0 || siblings.length === 0) {
|
|
2747
2753
|
push({
|
|
2748
2754
|
type: "text",
|
|
@@ -2766,7 +2772,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2766
2772
|
}
|
|
2767
2773
|
if (prev.type === "range") {
|
|
2768
2774
|
siblings.pop();
|
|
2769
|
-
|
|
2775
|
+
const before = siblings[siblings.length - 1];
|
|
2770
2776
|
before.value += prev.value + value;
|
|
2771
2777
|
prev = before;
|
|
2772
2778
|
block.ranges--;
|
|
@@ -2797,24 +2803,24 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2797
2803
|
node.invalid = true;
|
|
2798
2804
|
}
|
|
2799
2805
|
});
|
|
2800
|
-
|
|
2801
|
-
|
|
2806
|
+
const parent = stack[stack.length - 1];
|
|
2807
|
+
const index$1 = parent.nodes.indexOf(block);
|
|
2802
2808
|
parent.nodes.splice(index$1, 1, ...block.nodes);
|
|
2803
2809
|
}
|
|
2804
2810
|
} while (stack.length > 0);
|
|
2805
2811
|
push({ type: "eos" });
|
|
2806
2812
|
return ast;
|
|
2807
2813
|
};
|
|
2808
|
-
module.exports = parse$
|
|
2814
|
+
module.exports = parse$4;
|
|
2809
2815
|
} });
|
|
2810
2816
|
|
|
2811
2817
|
//#endregion
|
|
2812
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2813
|
-
var require_braces
|
|
2814
|
-
const stringify$
|
|
2815
|
-
const compile
|
|
2816
|
-
const expand
|
|
2817
|
-
const parse$
|
|
2818
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
2819
|
+
var require_braces = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
2820
|
+
const stringify$1 = require_stringify$1();
|
|
2821
|
+
const compile = require_compile();
|
|
2822
|
+
const expand = require_expand();
|
|
2823
|
+
const parse$3 = require_parse$2();
|
|
2818
2824
|
/**
|
|
2819
2825
|
* Expand the given pattern or create a regex-compatible string.
|
|
2820
2826
|
*
|
|
@@ -2828,14 +2834,14 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2828
2834
|
* @return {String}
|
|
2829
2835
|
* @api public
|
|
2830
2836
|
*/
|
|
2831
|
-
const braces$
|
|
2837
|
+
const braces$1 = (input, options = {}) => {
|
|
2832
2838
|
let output = [];
|
|
2833
|
-
if (Array.isArray(input)) for (
|
|
2834
|
-
|
|
2839
|
+
if (Array.isArray(input)) for (const pattern$1 of input) {
|
|
2840
|
+
const result = braces$1.create(pattern$1, options);
|
|
2835
2841
|
if (Array.isArray(result)) output.push(...result);
|
|
2836
2842
|
else output.push(result);
|
|
2837
2843
|
}
|
|
2838
|
-
else output = [].concat(braces$
|
|
2844
|
+
else output = [].concat(braces$1.create(input, options));
|
|
2839
2845
|
if (options && options.expand === true && options.nodupes === true) output = [...new Set(output)];
|
|
2840
2846
|
return output;
|
|
2841
2847
|
};
|
|
@@ -2852,7 +2858,7 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2852
2858
|
* @return {Object} Returns an AST
|
|
2853
2859
|
* @api public
|
|
2854
2860
|
*/
|
|
2855
|
-
braces$
|
|
2861
|
+
braces$1.parse = (input, options = {}) => parse$3(input, options);
|
|
2856
2862
|
/**
|
|
2857
2863
|
* Creates a braces string from an AST, or an AST node.
|
|
2858
2864
|
*
|
|
@@ -2866,9 +2872,9 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2866
2872
|
* @return {Array} Returns an array of expanded values.
|
|
2867
2873
|
* @api public
|
|
2868
2874
|
*/
|
|
2869
|
-
braces$
|
|
2870
|
-
if (typeof input === "string") return stringify$
|
|
2871
|
-
return stringify$
|
|
2875
|
+
braces$1.stringify = (input, options = {}) => {
|
|
2876
|
+
if (typeof input === "string") return stringify$1(braces$1.parse(input, options), options);
|
|
2877
|
+
return stringify$1(input, options);
|
|
2872
2878
|
};
|
|
2873
2879
|
/**
|
|
2874
2880
|
* Compiles a brace pattern into a regex-compatible, optimized string.
|
|
@@ -2884,9 +2890,9 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2884
2890
|
* @return {Array} Returns an array of expanded values.
|
|
2885
2891
|
* @api public
|
|
2886
2892
|
*/
|
|
2887
|
-
braces$
|
|
2888
|
-
if (typeof input === "string") input = braces$
|
|
2889
|
-
return compile
|
|
2893
|
+
braces$1.compile = (input, options = {}) => {
|
|
2894
|
+
if (typeof input === "string") input = braces$1.parse(input, options);
|
|
2895
|
+
return compile(input, options);
|
|
2890
2896
|
};
|
|
2891
2897
|
/**
|
|
2892
2898
|
* Expands a brace pattern into an array. This method is called by the
|
|
@@ -2904,9 +2910,9 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2904
2910
|
* @return {Array} Returns an array of expanded values.
|
|
2905
2911
|
* @api public
|
|
2906
2912
|
*/
|
|
2907
|
-
braces$
|
|
2908
|
-
if (typeof input === "string") input = braces$
|
|
2909
|
-
let result = expand
|
|
2913
|
+
braces$1.expand = (input, options = {}) => {
|
|
2914
|
+
if (typeof input === "string") input = braces$1.parse(input, options);
|
|
2915
|
+
let result = expand(input, options);
|
|
2910
2916
|
if (options.noempty === true) result = result.filter(Boolean);
|
|
2911
2917
|
if (options.nodupes === true) result = [...new Set(result)];
|
|
2912
2918
|
return result;
|
|
@@ -2926,19 +2932,19 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2926
2932
|
* @return {Array} Returns an array of expanded values.
|
|
2927
2933
|
* @api public
|
|
2928
2934
|
*/
|
|
2929
|
-
braces$
|
|
2935
|
+
braces$1.create = (input, options = {}) => {
|
|
2930
2936
|
if (input === "" || input.length < 3) return [input];
|
|
2931
|
-
return options.expand !== true ? braces$
|
|
2937
|
+
return options.expand !== true ? braces$1.compile(input, options) : braces$1.expand(input, options);
|
|
2932
2938
|
};
|
|
2933
2939
|
/**
|
|
2934
2940
|
* Expose "braces"
|
|
2935
2941
|
*/
|
|
2936
|
-
module.exports = braces$
|
|
2942
|
+
module.exports = braces$1;
|
|
2937
2943
|
} });
|
|
2938
2944
|
|
|
2939
2945
|
//#endregion
|
|
2940
2946
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
2941
|
-
var require_constants$
|
|
2947
|
+
var require_constants$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
2942
2948
|
const path$9 = __require("path");
|
|
2943
2949
|
const WIN_SLASH = "\\\\/";
|
|
2944
2950
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
@@ -3108,10 +3114,10 @@ var require_constants$3 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
3108
3114
|
|
|
3109
3115
|
//#endregion
|
|
3110
3116
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
3111
|
-
var require_utils$
|
|
3117
|
+
var require_utils$4 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
3112
3118
|
const path$8 = __require("path");
|
|
3113
3119
|
const win32 = process.platform === "win32";
|
|
3114
|
-
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$
|
|
3120
|
+
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$2();
|
|
3115
3121
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
3116
3122
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
3117
3123
|
exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
|
|
@@ -3147,8 +3153,8 @@ var require_utils$5 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3147
3153
|
};
|
|
3148
3154
|
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
3149
3155
|
const prepend = options.contains ? "" : "^";
|
|
3150
|
-
const append$
|
|
3151
|
-
let output = `${prepend}(?:${input})${append$
|
|
3156
|
+
const append$1 = options.contains ? "" : "$";
|
|
3157
|
+
let output = `${prepend}(?:${input})${append$1}`;
|
|
3152
3158
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
3153
3159
|
return output;
|
|
3154
3160
|
};
|
|
@@ -3157,8 +3163,8 @@ var require_utils$5 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3157
3163
|
//#endregion
|
|
3158
3164
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
|
|
3159
3165
|
var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
3160
|
-
const utils$
|
|
3161
|
-
const { CHAR_ASTERISK: CHAR_ASTERISK$1, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA: CHAR_COMMA$
|
|
3166
|
+
const utils$42 = require_utils$4();
|
|
3167
|
+
const { CHAR_ASTERISK: CHAR_ASTERISK$1, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA: CHAR_COMMA$1, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET: CHAR_LEFT_SQUARE_BRACKET$1, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET: CHAR_RIGHT_SQUARE_BRACKET$1 } = require_constants$2();
|
|
3162
3168
|
const isPathSeparator = (code) => {
|
|
3163
3169
|
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
3164
3170
|
};
|
|
@@ -3202,7 +3208,7 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3202
3208
|
let negated = false;
|
|
3203
3209
|
let negatedExtglob = false;
|
|
3204
3210
|
let finished = false;
|
|
3205
|
-
let braces$
|
|
3211
|
+
let braces$2 = 0;
|
|
3206
3212
|
let prev;
|
|
3207
3213
|
let code;
|
|
3208
3214
|
let token = {
|
|
@@ -3222,38 +3228,38 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3222
3228
|
if (code === CHAR_BACKWARD_SLASH) {
|
|
3223
3229
|
backslashes = token.backslashes = true;
|
|
3224
3230
|
code = advance();
|
|
3225
|
-
if (code === CHAR_LEFT_CURLY_BRACE
|
|
3231
|
+
if (code === CHAR_LEFT_CURLY_BRACE) braceEscaped = true;
|
|
3226
3232
|
continue;
|
|
3227
3233
|
}
|
|
3228
|
-
if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE
|
|
3229
|
-
braces$
|
|
3234
|
+
if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
|
|
3235
|
+
braces$2++;
|
|
3230
3236
|
while (eos() !== true && (code = advance())) {
|
|
3231
3237
|
if (code === CHAR_BACKWARD_SLASH) {
|
|
3232
3238
|
backslashes = token.backslashes = true;
|
|
3233
3239
|
advance();
|
|
3234
3240
|
continue;
|
|
3235
3241
|
}
|
|
3236
|
-
if (code === CHAR_LEFT_CURLY_BRACE
|
|
3237
|
-
braces$
|
|
3242
|
+
if (code === CHAR_LEFT_CURLY_BRACE) {
|
|
3243
|
+
braces$2++;
|
|
3238
3244
|
continue;
|
|
3239
3245
|
}
|
|
3240
|
-
if (braceEscaped !== true && code === CHAR_DOT
|
|
3246
|
+
if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
|
|
3241
3247
|
isBrace = token.isBrace = true;
|
|
3242
3248
|
isGlob$1 = token.isGlob = true;
|
|
3243
3249
|
finished = true;
|
|
3244
3250
|
if (scanToEnd === true) continue;
|
|
3245
3251
|
break;
|
|
3246
3252
|
}
|
|
3247
|
-
if (braceEscaped !== true && code === CHAR_COMMA$
|
|
3253
|
+
if (braceEscaped !== true && code === CHAR_COMMA$1) {
|
|
3248
3254
|
isBrace = token.isBrace = true;
|
|
3249
3255
|
isGlob$1 = token.isGlob = true;
|
|
3250
3256
|
finished = true;
|
|
3251
3257
|
if (scanToEnd === true) continue;
|
|
3252
3258
|
break;
|
|
3253
3259
|
}
|
|
3254
|
-
if (code === CHAR_RIGHT_CURLY_BRACE
|
|
3255
|
-
braces$
|
|
3256
|
-
if (braces$
|
|
3260
|
+
if (code === CHAR_RIGHT_CURLY_BRACE) {
|
|
3261
|
+
braces$2--;
|
|
3262
|
+
if (braces$2 === 0) {
|
|
3257
3263
|
braceEscaped = false;
|
|
3258
3264
|
isBrace = token.isBrace = true;
|
|
3259
3265
|
finished = true;
|
|
@@ -3273,7 +3279,7 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3273
3279
|
isGlob: false
|
|
3274
3280
|
};
|
|
3275
3281
|
if (finished === true) continue;
|
|
3276
|
-
if (prev === CHAR_DOT
|
|
3282
|
+
if (prev === CHAR_DOT && index === start + 1) {
|
|
3277
3283
|
start += 2;
|
|
3278
3284
|
continue;
|
|
3279
3285
|
}
|
|
@@ -3282,7 +3288,7 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3282
3288
|
}
|
|
3283
3289
|
if (opts.noext !== true) {
|
|
3284
3290
|
const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK$1 || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
|
|
3285
|
-
if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES
|
|
3291
|
+
if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
3286
3292
|
isGlob$1 = token.isGlob = true;
|
|
3287
3293
|
isExtglob$1 = token.isExtglob = true;
|
|
3288
3294
|
finished = true;
|
|
@@ -3294,7 +3300,7 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3294
3300
|
code = advance();
|
|
3295
3301
|
continue;
|
|
3296
3302
|
}
|
|
3297
|
-
if (code === CHAR_RIGHT_PARENTHESES
|
|
3303
|
+
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
3298
3304
|
isGlob$1 = token.isGlob = true;
|
|
3299
3305
|
finished = true;
|
|
3300
3306
|
break;
|
|
@@ -3318,14 +3324,14 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3318
3324
|
if (scanToEnd === true) continue;
|
|
3319
3325
|
break;
|
|
3320
3326
|
}
|
|
3321
|
-
if (code === CHAR_LEFT_SQUARE_BRACKET$
|
|
3327
|
+
if (code === CHAR_LEFT_SQUARE_BRACKET$1) {
|
|
3322
3328
|
while (eos() !== true && (next = advance())) {
|
|
3323
3329
|
if (next === CHAR_BACKWARD_SLASH) {
|
|
3324
3330
|
backslashes = token.backslashes = true;
|
|
3325
3331
|
advance();
|
|
3326
3332
|
continue;
|
|
3327
3333
|
}
|
|
3328
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET$
|
|
3334
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET$1) {
|
|
3329
3335
|
isBracket = token.isBracket = true;
|
|
3330
3336
|
isGlob$1 = token.isGlob = true;
|
|
3331
3337
|
finished = true;
|
|
@@ -3340,16 +3346,16 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3340
3346
|
start++;
|
|
3341
3347
|
continue;
|
|
3342
3348
|
}
|
|
3343
|
-
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES
|
|
3349
|
+
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
|
|
3344
3350
|
isGlob$1 = token.isGlob = true;
|
|
3345
3351
|
if (scanToEnd === true) {
|
|
3346
3352
|
while (eos() !== true && (code = advance())) {
|
|
3347
|
-
if (code === CHAR_LEFT_PARENTHESES
|
|
3353
|
+
if (code === CHAR_LEFT_PARENTHESES) {
|
|
3348
3354
|
backslashes = token.backslashes = true;
|
|
3349
3355
|
code = advance();
|
|
3350
3356
|
continue;
|
|
3351
3357
|
}
|
|
3352
|
-
if (code === CHAR_RIGHT_PARENTHESES
|
|
3358
|
+
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
3353
3359
|
finished = true;
|
|
3354
3360
|
break;
|
|
3355
3361
|
}
|
|
@@ -3387,8 +3393,8 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3387
3393
|
if (isPathSeparator(base.charCodeAt(base.length - 1))) base = base.slice(0, -1);
|
|
3388
3394
|
}
|
|
3389
3395
|
if (opts.unescape === true) {
|
|
3390
|
-
if (glob) glob = utils$
|
|
3391
|
-
if (base && backslashes === true) base = utils$
|
|
3396
|
+
if (glob) glob = utils$42.removeBackslashes(glob);
|
|
3397
|
+
if (base && backslashes === true) base = utils$42.removeBackslashes(base);
|
|
3392
3398
|
}
|
|
3393
3399
|
const state = {
|
|
3394
3400
|
prefix,
|
|
@@ -3445,13 +3451,13 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3445
3451
|
|
|
3446
3452
|
//#endregion
|
|
3447
3453
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
3448
|
-
var require_parse$
|
|
3449
|
-
const constants$2 = require_constants$
|
|
3450
|
-
const utils$
|
|
3454
|
+
var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
3455
|
+
const constants$2 = require_constants$2();
|
|
3456
|
+
const utils$41 = require_utils$4();
|
|
3451
3457
|
/**
|
|
3452
3458
|
* Constants
|
|
3453
3459
|
*/
|
|
3454
|
-
const { MAX_LENGTH
|
|
3460
|
+
const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants$2;
|
|
3455
3461
|
/**
|
|
3456
3462
|
* Helpers
|
|
3457
3463
|
*/
|
|
@@ -3462,7 +3468,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3462
3468
|
try {
|
|
3463
3469
|
new RegExp(value);
|
|
3464
3470
|
} catch (ex) {
|
|
3465
|
-
return args.map((v$1) => utils$
|
|
3471
|
+
return args.map((v$1) => utils$41.escapeRegex(v$1)).join("..");
|
|
3466
3472
|
}
|
|
3467
3473
|
return value;
|
|
3468
3474
|
};
|
|
@@ -3478,11 +3484,11 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3478
3484
|
* @param {Object} options
|
|
3479
3485
|
* @return {Object}
|
|
3480
3486
|
*/
|
|
3481
|
-
const parse$
|
|
3487
|
+
const parse$2 = (input, options) => {
|
|
3482
3488
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
3483
3489
|
input = REPLACEMENTS[input] || input;
|
|
3484
3490
|
const opts = { ...options };
|
|
3485
|
-
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH
|
|
3491
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
3486
3492
|
let len = input.length;
|
|
3487
3493
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
3488
3494
|
const bos = {
|
|
@@ -3492,7 +3498,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3492
3498
|
};
|
|
3493
3499
|
const tokens = [bos];
|
|
3494
3500
|
const capture = opts.capture ? "" : "?:";
|
|
3495
|
-
const win32$1 = utils$
|
|
3501
|
+
const win32$1 = utils$41.isWindows(options);
|
|
3496
3502
|
const PLATFORM_CHARS = constants$2.globChars(win32$1);
|
|
3497
3503
|
const EXTGLOB_CHARS = constants$2.extglobChars(PLATFORM_CHARS);
|
|
3498
3504
|
const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT: NO_DOT$1, NO_DOT_SLASH: NO_DOT_SLASH$1, NO_DOTS_SLASH: NO_DOTS_SLASH$1, QMARK: QMARK$1, QMARK_NO_DOT: QMARK_NO_DOT$1, STAR: STAR$1, START_ANCHOR: START_ANCHOR$1 } = PLATFORM_CHARS;
|
|
@@ -3521,10 +3527,10 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3521
3527
|
globstar: false,
|
|
3522
3528
|
tokens
|
|
3523
3529
|
};
|
|
3524
|
-
input = utils$
|
|
3530
|
+
input = utils$41.removePrefix(input, state);
|
|
3525
3531
|
len = input.length;
|
|
3526
3532
|
const extglobs = [];
|
|
3527
|
-
const braces$
|
|
3533
|
+
const braces$2 = [];
|
|
3528
3534
|
const stack = [];
|
|
3529
3535
|
let prev = bos;
|
|
3530
3536
|
let value;
|
|
@@ -3539,7 +3545,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3539
3545
|
state.consumed += value$1;
|
|
3540
3546
|
state.index += num;
|
|
3541
3547
|
};
|
|
3542
|
-
const append$
|
|
3548
|
+
const append$1 = (token) => {
|
|
3543
3549
|
state.output += token.output != null ? token.output : token.value;
|
|
3544
3550
|
consume(token.value);
|
|
3545
3551
|
};
|
|
@@ -3583,7 +3589,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3583
3589
|
}
|
|
3584
3590
|
}
|
|
3585
3591
|
if (extglobs.length && tok.type !== "paren") extglobs[extglobs.length - 1].inner += tok.value;
|
|
3586
|
-
if (tok.value || tok.output) append$
|
|
3592
|
+
if (tok.value || tok.output) append$1(tok);
|
|
3587
3593
|
if (prev && prev.type === "text" && tok.type === "text") {
|
|
3588
3594
|
prev.value += tok.value;
|
|
3589
3595
|
prev.output = (prev.output || "") + tok.value;
|
|
@@ -3625,7 +3631,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3625
3631
|
if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
|
|
3626
3632
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
3627
3633
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
3628
|
-
const expression = parse$
|
|
3634
|
+
const expression = parse$2(rest, {
|
|
3629
3635
|
...options,
|
|
3630
3636
|
fastpaths: false
|
|
3631
3637
|
}).output;
|
|
@@ -3671,7 +3677,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3671
3677
|
state.output = input;
|
|
3672
3678
|
return state;
|
|
3673
3679
|
}
|
|
3674
|
-
state.output = utils$
|
|
3680
|
+
state.output = utils$41.wrapOutput(output, state, options);
|
|
3675
3681
|
return state;
|
|
3676
3682
|
}
|
|
3677
3683
|
/**
|
|
@@ -3740,7 +3746,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3740
3746
|
if (value === "]" && (prev.value === "[" || prev.value === "[^")) value = `\\${value}`;
|
|
3741
3747
|
if (opts.posix === true && value === "!" && prev.value === "[") value = "^";
|
|
3742
3748
|
prev.value += value;
|
|
3743
|
-
append$
|
|
3749
|
+
append$1({ value });
|
|
3744
3750
|
continue;
|
|
3745
3751
|
}
|
|
3746
3752
|
/**
|
|
@@ -3748,9 +3754,9 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3748
3754
|
* until we reach the closing double quote.
|
|
3749
3755
|
*/
|
|
3750
3756
|
if (state.quotes === 1 && value !== "\"") {
|
|
3751
|
-
value = utils$
|
|
3757
|
+
value = utils$41.escapeRegex(value);
|
|
3752
3758
|
prev.value += value;
|
|
3753
|
-
append$
|
|
3759
|
+
append$1({ value });
|
|
3754
3760
|
continue;
|
|
3755
3761
|
}
|
|
3756
3762
|
/**
|
|
@@ -3826,9 +3832,9 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3826
3832
|
const prevValue = prev.value.slice(1);
|
|
3827
3833
|
if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) value = `/${value}`;
|
|
3828
3834
|
prev.value += value;
|
|
3829
|
-
append$
|
|
3830
|
-
if (opts.literalBrackets === false || utils$
|
|
3831
|
-
const escaped$1 = utils$
|
|
3835
|
+
append$1({ value });
|
|
3836
|
+
if (opts.literalBrackets === false || utils$41.hasRegexChars(prevValue)) continue;
|
|
3837
|
+
const escaped$1 = utils$41.escapeRegex(prev.value);
|
|
3832
3838
|
state.output = state.output.slice(0, -prev.value.length);
|
|
3833
3839
|
if (opts.literalBrackets === true) {
|
|
3834
3840
|
state.output += escaped$1;
|
|
@@ -3851,12 +3857,12 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3851
3857
|
outputIndex: state.output.length,
|
|
3852
3858
|
tokensIndex: state.tokens.length
|
|
3853
3859
|
};
|
|
3854
|
-
braces$
|
|
3860
|
+
braces$2.push(open);
|
|
3855
3861
|
push(open);
|
|
3856
3862
|
continue;
|
|
3857
3863
|
}
|
|
3858
3864
|
if (value === "}") {
|
|
3859
|
-
const brace = braces$
|
|
3865
|
+
const brace = braces$2[braces$2.length - 1];
|
|
3860
3866
|
if (opts.nobrace === true || !brace) {
|
|
3861
3867
|
push({
|
|
3862
3868
|
type: "text",
|
|
@@ -3891,7 +3897,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3891
3897
|
output
|
|
3892
3898
|
});
|
|
3893
3899
|
decrement("braces");
|
|
3894
|
-
braces$
|
|
3900
|
+
braces$2.pop();
|
|
3895
3901
|
continue;
|
|
3896
3902
|
}
|
|
3897
3903
|
/**
|
|
@@ -3910,7 +3916,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3910
3916
|
*/
|
|
3911
3917
|
if (value === ",") {
|
|
3912
3918
|
let output = value;
|
|
3913
|
-
const brace = braces$
|
|
3919
|
+
const brace = braces$2[braces$2.length - 1];
|
|
3914
3920
|
if (brace && stack[stack.length - 1] === "braces") {
|
|
3915
3921
|
brace.comma = true;
|
|
3916
3922
|
output = "|";
|
|
@@ -3947,7 +3953,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3947
3953
|
if (value === ".") {
|
|
3948
3954
|
if (state.braces > 0 && prev.type === "dot") {
|
|
3949
3955
|
if (prev.value === ".") prev.output = DOT_LITERAL$1;
|
|
3950
|
-
const brace = braces$
|
|
3956
|
+
const brace = braces$2[braces$2.length - 1];
|
|
3951
3957
|
prev.type = "dots";
|
|
3952
3958
|
prev.output += value;
|
|
3953
3959
|
prev.value += value;
|
|
@@ -3981,7 +3987,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3981
3987
|
if (prev && prev.type === "paren") {
|
|
3982
3988
|
const next = peek();
|
|
3983
3989
|
let output = value;
|
|
3984
|
-
if (next === "<" && !utils$
|
|
3990
|
+
if (next === "<" && !utils$41.supportsLookbehinds()) throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
3985
3991
|
if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) output = `\\${value}`;
|
|
3986
3992
|
push({
|
|
3987
3993
|
type: "text",
|
|
@@ -4231,17 +4237,17 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
4231
4237
|
}
|
|
4232
4238
|
while (state.brackets > 0) {
|
|
4233
4239
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
|
|
4234
|
-
state.output = utils$
|
|
4240
|
+
state.output = utils$41.escapeLast(state.output, "[");
|
|
4235
4241
|
decrement("brackets");
|
|
4236
4242
|
}
|
|
4237
4243
|
while (state.parens > 0) {
|
|
4238
4244
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
|
|
4239
|
-
state.output = utils$
|
|
4245
|
+
state.output = utils$41.escapeLast(state.output, "(");
|
|
4240
4246
|
decrement("parens");
|
|
4241
4247
|
}
|
|
4242
4248
|
while (state.braces > 0) {
|
|
4243
4249
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
|
|
4244
|
-
state.output = utils$
|
|
4250
|
+
state.output = utils$41.escapeLast(state.output, "{");
|
|
4245
4251
|
decrement("braces");
|
|
4246
4252
|
}
|
|
4247
4253
|
if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) push({
|
|
@@ -4263,13 +4269,13 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
4263
4269
|
* This can significantly speed up processing and has very little downside
|
|
4264
4270
|
* impact when none of the fast paths match.
|
|
4265
4271
|
*/
|
|
4266
|
-
parse$
|
|
4272
|
+
parse$2.fastpaths = (input, options) => {
|
|
4267
4273
|
const opts = { ...options };
|
|
4268
|
-
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH
|
|
4274
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
4269
4275
|
const len = input.length;
|
|
4270
4276
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
4271
4277
|
input = REPLACEMENTS[input] || input;
|
|
4272
|
-
const win32$1 = utils$
|
|
4278
|
+
const win32$1 = utils$41.isWindows(options);
|
|
4273
4279
|
const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT: NO_DOT$1, NO_DOTS: NO_DOTS$1, NO_DOTS_SLASH: NO_DOTS_SLASH$1, STAR: STAR$1, START_ANCHOR: START_ANCHOR$1 } = constants$2.globChars(win32$1);
|
|
4274
4280
|
const nodot = opts.dot ? NO_DOTS$1 : NO_DOT$1;
|
|
4275
4281
|
const slashDot = opts.dot ? NO_DOTS_SLASH$1 : NO_DOT$1;
|
|
@@ -4303,12 +4309,12 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
4303
4309
|
}
|
|
4304
4310
|
}
|
|
4305
4311
|
};
|
|
4306
|
-
const output = utils$
|
|
4312
|
+
const output = utils$41.removePrefix(input, state);
|
|
4307
4313
|
let source = create(output);
|
|
4308
4314
|
if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL$1}?`;
|
|
4309
4315
|
return source;
|
|
4310
4316
|
};
|
|
4311
|
-
module.exports = parse$
|
|
4317
|
+
module.exports = parse$2;
|
|
4312
4318
|
} });
|
|
4313
4319
|
|
|
4314
4320
|
//#endregion
|
|
@@ -4316,9 +4322,9 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
4316
4322
|
var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
4317
4323
|
const path$7 = __require("path");
|
|
4318
4324
|
const scan = require_scan();
|
|
4319
|
-
const parse$
|
|
4320
|
-
const utils$
|
|
4321
|
-
const constants$1 = require_constants$
|
|
4325
|
+
const parse$1 = require_parse$1();
|
|
4326
|
+
const utils$40 = require_utils$4();
|
|
4327
|
+
const constants$1 = require_constants$2();
|
|
4322
4328
|
const isObject$3 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
4323
4329
|
/**
|
|
4324
4330
|
* Creates a matcher function from one or more glob patterns. The
|
|
@@ -4341,9 +4347,9 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4341
4347
|
* @return {Function=} Returns a matcher function.
|
|
4342
4348
|
* @api public
|
|
4343
4349
|
*/
|
|
4344
|
-
const picomatch$
|
|
4350
|
+
const picomatch$1 = (glob, options, returnState = false) => {
|
|
4345
4351
|
if (Array.isArray(glob)) {
|
|
4346
|
-
const fns = glob.map((input) => picomatch$
|
|
4352
|
+
const fns = glob.map((input) => picomatch$1(input, options, returnState));
|
|
4347
4353
|
const arrayMatcher = (str) => {
|
|
4348
4354
|
for (const isMatch of fns) {
|
|
4349
4355
|
const state$1 = isMatch(str);
|
|
@@ -4356,8 +4362,8 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4356
4362
|
const isState = isObject$3(glob) && glob.tokens && glob.input;
|
|
4357
4363
|
if (glob === "" || typeof glob !== "string" && !isState) throw new TypeError("Expected pattern to be a non-empty string");
|
|
4358
4364
|
const opts = options || {};
|
|
4359
|
-
const posix = utils$
|
|
4360
|
-
const regex$1 = isState ? picomatch$
|
|
4365
|
+
const posix = utils$40.isWindows(options);
|
|
4366
|
+
const regex$1 = isState ? picomatch$1.compileRe(glob, options) : picomatch$1.makeRe(glob, options, false, true);
|
|
4361
4367
|
const state = regex$1.state;
|
|
4362
4368
|
delete regex$1.state;
|
|
4363
4369
|
let isIgnored = () => false;
|
|
@@ -4368,10 +4374,10 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4368
4374
|
onMatch: null,
|
|
4369
4375
|
onResult: null
|
|
4370
4376
|
};
|
|
4371
|
-
isIgnored = picomatch$
|
|
4377
|
+
isIgnored = picomatch$1(opts.ignore, ignoreOpts, returnState);
|
|
4372
4378
|
}
|
|
4373
4379
|
const matcher = (input, returnObject = false) => {
|
|
4374
|
-
const { isMatch, match, output } = picomatch$
|
|
4380
|
+
const { isMatch, match, output } = picomatch$1.test(input, regex$1, options, {
|
|
4375
4381
|
glob,
|
|
4376
4382
|
posix
|
|
4377
4383
|
});
|
|
@@ -4417,21 +4423,21 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4417
4423
|
* @return {Object} Returns an object with matching info.
|
|
4418
4424
|
* @api public
|
|
4419
4425
|
*/
|
|
4420
|
-
picomatch$
|
|
4426
|
+
picomatch$1.test = (input, regex$1, options, { glob, posix } = {}) => {
|
|
4421
4427
|
if (typeof input !== "string") throw new TypeError("Expected input to be a string");
|
|
4422
4428
|
if (input === "") return {
|
|
4423
4429
|
isMatch: false,
|
|
4424
4430
|
output: ""
|
|
4425
4431
|
};
|
|
4426
4432
|
const opts = options || {};
|
|
4427
|
-
const format = opts.format || (posix ? utils$
|
|
4433
|
+
const format = opts.format || (posix ? utils$40.toPosixSlashes : null);
|
|
4428
4434
|
let match = input === glob;
|
|
4429
4435
|
let output = match && format ? format(input) : input;
|
|
4430
4436
|
if (match === false) {
|
|
4431
4437
|
output = format ? format(input) : input;
|
|
4432
4438
|
match = output === glob;
|
|
4433
4439
|
}
|
|
4434
|
-
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch$
|
|
4440
|
+
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch$1.matchBase(input, regex$1, options, posix);
|
|
4435
4441
|
else match = regex$1.exec(output);
|
|
4436
4442
|
return {
|
|
4437
4443
|
isMatch: Boolean(match),
|
|
@@ -4452,8 +4458,8 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4452
4458
|
* @return {Boolean}
|
|
4453
4459
|
* @api public
|
|
4454
4460
|
*/
|
|
4455
|
-
picomatch$
|
|
4456
|
-
const regex$1 = glob instanceof RegExp ? glob : picomatch$
|
|
4461
|
+
picomatch$1.matchBase = (input, glob, options, posix = utils$40.isWindows(options)) => {
|
|
4462
|
+
const regex$1 = glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options);
|
|
4457
4463
|
return regex$1.test(path$7.basename(input));
|
|
4458
4464
|
};
|
|
4459
4465
|
/**
|
|
@@ -4472,7 +4478,7 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4472
4478
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
4473
4479
|
* @api public
|
|
4474
4480
|
*/
|
|
4475
|
-
picomatch$
|
|
4481
|
+
picomatch$1.isMatch = (str, patterns, options) => picomatch$1(patterns, options)(str);
|
|
4476
4482
|
/**
|
|
4477
4483
|
* Parse a glob pattern to create the source string for a regular
|
|
4478
4484
|
* expression.
|
|
@@ -4486,9 +4492,9 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4486
4492
|
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
4487
4493
|
* @api public
|
|
4488
4494
|
*/
|
|
4489
|
-
picomatch$
|
|
4490
|
-
if (Array.isArray(pattern$1)) return pattern$1.map((p$1) => picomatch$
|
|
4491
|
-
return parse$
|
|
4495
|
+
picomatch$1.parse = (pattern$1, options) => {
|
|
4496
|
+
if (Array.isArray(pattern$1)) return pattern$1.map((p$1) => picomatch$1.parse(p$1, options));
|
|
4497
|
+
return parse$1(pattern$1, {
|
|
4492
4498
|
...options,
|
|
4493
4499
|
fastpaths: false
|
|
4494
4500
|
});
|
|
@@ -4519,7 +4525,7 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4519
4525
|
* @return {Object} Returns an object with
|
|
4520
4526
|
* @api public
|
|
4521
4527
|
*/
|
|
4522
|
-
picomatch$
|
|
4528
|
+
picomatch$1.scan = (input, options) => scan(input, options);
|
|
4523
4529
|
/**
|
|
4524
4530
|
* Compile a regular expression from the `state` object returned by the
|
|
4525
4531
|
* [parse()](#parse) method.
|
|
@@ -4531,14 +4537,14 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4531
4537
|
* @return {RegExp}
|
|
4532
4538
|
* @api public
|
|
4533
4539
|
*/
|
|
4534
|
-
picomatch$
|
|
4540
|
+
picomatch$1.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
4535
4541
|
if (returnOutput === true) return state.output;
|
|
4536
4542
|
const opts = options || {};
|
|
4537
4543
|
const prepend = opts.contains ? "" : "^";
|
|
4538
|
-
const append$
|
|
4539
|
-
let source = `${prepend}(?:${state.output})${append$
|
|
4544
|
+
const append$1 = opts.contains ? "" : "$";
|
|
4545
|
+
let source = `${prepend}(?:${state.output})${append$1}`;
|
|
4540
4546
|
if (state && state.negated === true) source = `^(?!${source}).*$`;
|
|
4541
|
-
const regex$1 = picomatch$
|
|
4547
|
+
const regex$1 = picomatch$1.toRegex(source, options);
|
|
4542
4548
|
if (returnState === true) regex$1.state = state;
|
|
4543
4549
|
return regex$1;
|
|
4544
4550
|
};
|
|
@@ -4560,15 +4566,15 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4560
4566
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
4561
4567
|
* @api public
|
|
4562
4568
|
*/
|
|
4563
|
-
picomatch$
|
|
4569
|
+
picomatch$1.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
|
4564
4570
|
if (!input || typeof input !== "string") throw new TypeError("Expected a non-empty string");
|
|
4565
4571
|
let parsed = {
|
|
4566
4572
|
negated: false,
|
|
4567
4573
|
fastpaths: true
|
|
4568
4574
|
};
|
|
4569
|
-
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse$
|
|
4570
|
-
if (!parsed.output) parsed = parse$
|
|
4571
|
-
return picomatch$
|
|
4575
|
+
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse$1.fastpaths(input, options);
|
|
4576
|
+
if (!parsed.output) parsed = parse$1(input, options);
|
|
4577
|
+
return picomatch$1.compileRe(parsed, options, returnOutput, returnState);
|
|
4572
4578
|
};
|
|
4573
4579
|
/**
|
|
4574
4580
|
* Create a regular expression from the given regex source string.
|
|
@@ -4586,7 +4592,7 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4586
4592
|
* @return {RegExp}
|
|
4587
4593
|
* @api public
|
|
4588
4594
|
*/
|
|
4589
|
-
picomatch$
|
|
4595
|
+
picomatch$1.toRegex = (source, options) => {
|
|
4590
4596
|
try {
|
|
4591
4597
|
const opts = options || {};
|
|
4592
4598
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
@@ -4599,11 +4605,11 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4599
4605
|
* Picomatch constants.
|
|
4600
4606
|
* @return {Object}
|
|
4601
4607
|
*/
|
|
4602
|
-
picomatch$
|
|
4608
|
+
picomatch$1.constants = constants$1;
|
|
4603
4609
|
/**
|
|
4604
4610
|
* Expose "picomatch"
|
|
4605
4611
|
*/
|
|
4606
|
-
module.exports = picomatch$
|
|
4612
|
+
module.exports = picomatch$1;
|
|
4607
4613
|
} });
|
|
4608
4614
|
|
|
4609
4615
|
//#endregion
|
|
@@ -4613,13 +4619,17 @@ var require_picomatch = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/n
|
|
|
4613
4619
|
} });
|
|
4614
4620
|
|
|
4615
4621
|
//#endregion
|
|
4616
|
-
//#region ../../node_modules/.pnpm/micromatch@4.0.
|
|
4617
|
-
var require_micromatch
|
|
4618
|
-
const util$
|
|
4619
|
-
const braces
|
|
4620
|
-
const picomatch
|
|
4621
|
-
const utils$
|
|
4622
|
-
const isEmptyString
|
|
4622
|
+
//#region ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
4623
|
+
var require_micromatch = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
4624
|
+
const util$7 = __require("util");
|
|
4625
|
+
const braces = require_braces();
|
|
4626
|
+
const picomatch = require_picomatch();
|
|
4627
|
+
const utils$39 = require_utils$4();
|
|
4628
|
+
const isEmptyString = (v$1) => v$1 === "" || v$1 === "./";
|
|
4629
|
+
const hasBraces = (v$1) => {
|
|
4630
|
+
const index = v$1.indexOf("{");
|
|
4631
|
+
return index > -1 && v$1.indexOf("}", index) > -1;
|
|
4632
|
+
};
|
|
4623
4633
|
/**
|
|
4624
4634
|
* Returns an array of strings that match one or more glob patterns.
|
|
4625
4635
|
*
|
|
@@ -4637,7 +4647,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4637
4647
|
* @summary false
|
|
4638
4648
|
* @api public
|
|
4639
4649
|
*/
|
|
4640
|
-
const micromatch$
|
|
4650
|
+
const micromatch$1 = (list, patterns, options) => {
|
|
4641
4651
|
patterns = [].concat(patterns);
|
|
4642
4652
|
list = [].concat(list);
|
|
4643
4653
|
let omit = /* @__PURE__ */ new Set();
|
|
@@ -4649,7 +4659,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4649
4659
|
if (options && options.onResult) options.onResult(state);
|
|
4650
4660
|
};
|
|
4651
4661
|
for (let i$3 = 0; i$3 < patterns.length; i$3++) {
|
|
4652
|
-
let isMatch = picomatch
|
|
4662
|
+
let isMatch = picomatch(String(patterns[i$3]), {
|
|
4653
4663
|
...options,
|
|
4654
4664
|
onResult
|
|
4655
4665
|
}, true);
|
|
@@ -4677,7 +4687,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4677
4687
|
/**
|
|
4678
4688
|
* Backwards compatibility
|
|
4679
4689
|
*/
|
|
4680
|
-
micromatch$
|
|
4690
|
+
micromatch$1.match = micromatch$1;
|
|
4681
4691
|
/**
|
|
4682
4692
|
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
4683
4693
|
* The returned function takes a string to match as its only argument and returns
|
|
@@ -4696,7 +4706,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4696
4706
|
* @return {Function} Returns a matcher function.
|
|
4697
4707
|
* @api public
|
|
4698
4708
|
*/
|
|
4699
|
-
micromatch$
|
|
4709
|
+
micromatch$1.matcher = (pattern$1, options) => picomatch(pattern$1, options);
|
|
4700
4710
|
/**
|
|
4701
4711
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
4702
4712
|
*
|
|
@@ -4713,11 +4723,11 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4713
4723
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
4714
4724
|
* @api public
|
|
4715
4725
|
*/
|
|
4716
|
-
micromatch$
|
|
4726
|
+
micromatch$1.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
4717
4727
|
/**
|
|
4718
4728
|
* Backwards compatibility
|
|
4719
4729
|
*/
|
|
4720
|
-
micromatch$
|
|
4730
|
+
micromatch$1.any = micromatch$1.isMatch;
|
|
4721
4731
|
/**
|
|
4722
4732
|
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
4723
4733
|
*
|
|
@@ -4734,7 +4744,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4734
4744
|
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
4735
4745
|
* @api public
|
|
4736
4746
|
*/
|
|
4737
|
-
micromatch$
|
|
4747
|
+
micromatch$1.not = (list, patterns, options = {}) => {
|
|
4738
4748
|
patterns = [].concat(patterns).map(String);
|
|
4739
4749
|
let result = /* @__PURE__ */ new Set();
|
|
4740
4750
|
let items = [];
|
|
@@ -4742,7 +4752,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4742
4752
|
if (options.onResult) options.onResult(state);
|
|
4743
4753
|
items.push(state.output);
|
|
4744
4754
|
};
|
|
4745
|
-
let matches = new Set(micromatch$
|
|
4755
|
+
let matches = new Set(micromatch$1(list, patterns, {
|
|
4746
4756
|
...options,
|
|
4747
4757
|
onResult
|
|
4748
4758
|
}));
|
|
@@ -4768,14 +4778,14 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4768
4778
|
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
4769
4779
|
* @api public
|
|
4770
4780
|
*/
|
|
4771
|
-
micromatch$
|
|
4772
|
-
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$
|
|
4773
|
-
if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch$
|
|
4781
|
+
micromatch$1.contains = (str, pattern$1, options) => {
|
|
4782
|
+
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$7.inspect(str)}"`);
|
|
4783
|
+
if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch$1.contains(str, p$1, options));
|
|
4774
4784
|
if (typeof pattern$1 === "string") {
|
|
4775
|
-
if (isEmptyString
|
|
4785
|
+
if (isEmptyString(str) || isEmptyString(pattern$1)) return false;
|
|
4776
4786
|
if (str.includes(pattern$1) || str.startsWith("./") && str.slice(2).includes(pattern$1)) return true;
|
|
4777
4787
|
}
|
|
4778
|
-
return micromatch$
|
|
4788
|
+
return micromatch$1.isMatch(str, pattern$1, {
|
|
4779
4789
|
...options,
|
|
4780
4790
|
contains: true
|
|
4781
4791
|
});
|
|
@@ -4799,9 +4809,9 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4799
4809
|
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
4800
4810
|
* @api public
|
|
4801
4811
|
*/
|
|
4802
|
-
micromatch$
|
|
4803
|
-
if (!utils$
|
|
4804
|
-
let keys$1 = micromatch$
|
|
4812
|
+
micromatch$1.matchKeys = (obj, patterns, options) => {
|
|
4813
|
+
if (!utils$39.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
4814
|
+
let keys$1 = micromatch$1(Object.keys(obj), patterns, options);
|
|
4805
4815
|
let res = {};
|
|
4806
4816
|
for (let key of keys$1) res[key] = obj[key];
|
|
4807
4817
|
return res;
|
|
@@ -4824,10 +4834,10 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4824
4834
|
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
4825
4835
|
* @api public
|
|
4826
4836
|
*/
|
|
4827
|
-
micromatch$
|
|
4837
|
+
micromatch$1.some = (list, patterns, options) => {
|
|
4828
4838
|
let items = [].concat(list);
|
|
4829
4839
|
for (let pattern$1 of [].concat(patterns)) {
|
|
4830
|
-
let isMatch = picomatch
|
|
4840
|
+
let isMatch = picomatch(String(pattern$1), options);
|
|
4831
4841
|
if (items.some((item) => isMatch(item))) return true;
|
|
4832
4842
|
}
|
|
4833
4843
|
return false;
|
|
@@ -4855,10 +4865,10 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4855
4865
|
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
4856
4866
|
* @api public
|
|
4857
4867
|
*/
|
|
4858
|
-
micromatch$
|
|
4868
|
+
micromatch$1.every = (list, patterns, options) => {
|
|
4859
4869
|
let items = [].concat(list);
|
|
4860
4870
|
for (let pattern$1 of [].concat(patterns)) {
|
|
4861
|
-
let isMatch = picomatch
|
|
4871
|
+
let isMatch = picomatch(String(pattern$1), options);
|
|
4862
4872
|
if (!items.every((item) => isMatch(item))) return false;
|
|
4863
4873
|
}
|
|
4864
4874
|
return true;
|
|
@@ -4889,9 +4899,9 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4889
4899
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
4890
4900
|
* @api public
|
|
4891
4901
|
*/
|
|
4892
|
-
micromatch$
|
|
4893
|
-
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$
|
|
4894
|
-
return [].concat(patterns).every((p$1) => picomatch
|
|
4902
|
+
micromatch$1.all = (str, patterns, options) => {
|
|
4903
|
+
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$7.inspect(str)}"`);
|
|
4904
|
+
return [].concat(patterns).every((p$1) => picomatch(p$1, options)(str));
|
|
4895
4905
|
};
|
|
4896
4906
|
/**
|
|
4897
4907
|
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
|
@@ -4911,13 +4921,13 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4911
4921
|
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
4912
4922
|
* @api public
|
|
4913
4923
|
*/
|
|
4914
|
-
micromatch$
|
|
4915
|
-
let posix = utils$
|
|
4916
|
-
let regex$1 = picomatch
|
|
4924
|
+
micromatch$1.capture = (glob, input, options) => {
|
|
4925
|
+
let posix = utils$39.isWindows(options);
|
|
4926
|
+
let regex$1 = picomatch.makeRe(String(glob), {
|
|
4917
4927
|
...options,
|
|
4918
4928
|
capture: true
|
|
4919
4929
|
});
|
|
4920
|
-
let match = regex$1.exec(posix ? utils$
|
|
4930
|
+
let match = regex$1.exec(posix ? utils$39.toPosixSlashes(input) : input);
|
|
4921
4931
|
if (match) return match.slice(1).map((v$1) => v$1 === void 0 ? "" : v$1);
|
|
4922
4932
|
};
|
|
4923
4933
|
/**
|
|
@@ -4935,7 +4945,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4935
4945
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
4936
4946
|
* @api public
|
|
4937
4947
|
*/
|
|
4938
|
-
micromatch$
|
|
4948
|
+
micromatch$1.makeRe = (...args) => picomatch.makeRe(...args);
|
|
4939
4949
|
/**
|
|
4940
4950
|
* Scan a glob pattern to separate the pattern into segments. Used
|
|
4941
4951
|
* by the [split](#split) method.
|
|
@@ -4949,7 +4959,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4949
4959
|
* @return {Object} Returns an object with
|
|
4950
4960
|
* @api public
|
|
4951
4961
|
*/
|
|
4952
|
-
micromatch$
|
|
4962
|
+
micromatch$1.scan = (...args) => picomatch.scan(...args);
|
|
4953
4963
|
/**
|
|
4954
4964
|
* Parse a glob pattern to create the source string for a regular
|
|
4955
4965
|
* expression.
|
|
@@ -4963,9 +4973,9 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4963
4973
|
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
4964
4974
|
* @api public
|
|
4965
4975
|
*/
|
|
4966
|
-
micromatch$
|
|
4976
|
+
micromatch$1.parse = (patterns, options) => {
|
|
4967
4977
|
let res = [];
|
|
4968
|
-
for (let pattern$1 of [].concat(patterns || [])) for (let str of braces
|
|
4978
|
+
for (let pattern$1 of [].concat(patterns || [])) for (let str of braces(String(pattern$1), options)) res.push(picomatch.parse(str, options));
|
|
4969
4979
|
return res;
|
|
4970
4980
|
};
|
|
4971
4981
|
/**
|
|
@@ -4984,17 +4994,17 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4984
4994
|
* @return {Array}
|
|
4985
4995
|
* @api public
|
|
4986
4996
|
*/
|
|
4987
|
-
micromatch$
|
|
4997
|
+
micromatch$1.braces = (pattern$1, options) => {
|
|
4988
4998
|
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
4989
|
-
if (options && options.nobrace === true ||
|
|
4990
|
-
return braces
|
|
4999
|
+
if (options && options.nobrace === true || !hasBraces(pattern$1)) return [pattern$1];
|
|
5000
|
+
return braces(pattern$1, options);
|
|
4991
5001
|
};
|
|
4992
5002
|
/**
|
|
4993
5003
|
* Expand braces
|
|
4994
5004
|
*/
|
|
4995
|
-
micromatch$
|
|
5005
|
+
micromatch$1.braceExpand = (pattern$1, options) => {
|
|
4996
5006
|
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
4997
|
-
return micromatch$
|
|
5007
|
+
return micromatch$1.braces(pattern$1, {
|
|
4998
5008
|
...options,
|
|
4999
5009
|
expand: true
|
|
5000
5010
|
});
|
|
@@ -5002,17 +5012,18 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
5002
5012
|
/**
|
|
5003
5013
|
* Expose micromatch
|
|
5004
5014
|
*/
|
|
5005
|
-
|
|
5015
|
+
micromatch$1.hasBraces = hasBraces;
|
|
5016
|
+
module.exports = micromatch$1;
|
|
5006
5017
|
} });
|
|
5007
5018
|
|
|
5008
5019
|
//#endregion
|
|
5009
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5010
|
-
var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
5020
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
5021
|
+
var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
5011
5022
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5012
|
-
exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
5023
|
+
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
5013
5024
|
const path$6 = __require("path");
|
|
5014
5025
|
const globParent = require_glob_parent();
|
|
5015
|
-
const micromatch
|
|
5026
|
+
const micromatch = require_micromatch();
|
|
5016
5027
|
const GLOBSTAR = "**";
|
|
5017
5028
|
const ESCAPE_SYMBOL = "\\";
|
|
5018
5029
|
const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
|
|
@@ -5129,7 +5140,7 @@ var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5129
5140
|
}
|
|
5130
5141
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
5131
5142
|
function expandBraceExpansion(pattern$1) {
|
|
5132
|
-
const patterns = micromatch
|
|
5143
|
+
const patterns = micromatch.braces(pattern$1, {
|
|
5133
5144
|
expand: true,
|
|
5134
5145
|
nodupes: true,
|
|
5135
5146
|
keepEscaping: true
|
|
@@ -5146,7 +5157,7 @@ var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5146
5157
|
}
|
|
5147
5158
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
5148
5159
|
function getPatternParts(pattern$1, options) {
|
|
5149
|
-
let { parts } = micromatch
|
|
5160
|
+
let { parts } = micromatch.scan(pattern$1, Object.assign(Object.assign({}, options), { parts: true }));
|
|
5150
5161
|
/**
|
|
5151
5162
|
* The scan method returns an empty array in some cases.
|
|
5152
5163
|
* See micromatch/picomatch#58 for more details.
|
|
@@ -5164,7 +5175,7 @@ var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5164
5175
|
}
|
|
5165
5176
|
exports.getPatternParts = getPatternParts;
|
|
5166
5177
|
function makeRe(pattern$1, options) {
|
|
5167
|
-
return micromatch
|
|
5178
|
+
return micromatch.makeRe(pattern$1, options);
|
|
5168
5179
|
}
|
|
5169
5180
|
exports.makeRe = makeRe;
|
|
5170
5181
|
function convertPatternsToRe(patterns, options) {
|
|
@@ -5183,6 +5194,18 @@ var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5183
5194
|
return pattern$1.replace(DOUBLE_SLASH_RE, "/");
|
|
5184
5195
|
}
|
|
5185
5196
|
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
5197
|
+
function partitionAbsoluteAndRelative(patterns) {
|
|
5198
|
+
const absolute = [];
|
|
5199
|
+
const relative = [];
|
|
5200
|
+
for (const pattern$1 of patterns) if (isAbsolute(pattern$1)) absolute.push(pattern$1);
|
|
5201
|
+
else relative.push(pattern$1);
|
|
5202
|
+
return [absolute, relative];
|
|
5203
|
+
}
|
|
5204
|
+
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
5205
|
+
function isAbsolute(pattern$1) {
|
|
5206
|
+
return path$6.isAbsolute(pattern$1);
|
|
5207
|
+
}
|
|
5208
|
+
exports.isAbsolute = isAbsolute;
|
|
5186
5209
|
} });
|
|
5187
5210
|
|
|
5188
5211
|
//#endregion
|
|
@@ -5268,8 +5291,8 @@ var require_merge2 = __commonJS({ "../../node_modules/.pnpm/merge2@1.4.1/node_mo
|
|
|
5268
5291
|
} });
|
|
5269
5292
|
|
|
5270
5293
|
//#endregion
|
|
5271
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5272
|
-
var require_stream$4 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
5294
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
5295
|
+
var require_stream$4 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
5273
5296
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5274
5297
|
exports.merge = void 0;
|
|
5275
5298
|
const merge2 = require_merge2();
|
|
@@ -5289,8 +5312,8 @@ var require_stream$4 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
5289
5312
|
} });
|
|
5290
5313
|
|
|
5291
5314
|
//#endregion
|
|
5292
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5293
|
-
var require_string = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
5315
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
5316
|
+
var require_string = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
5294
5317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5295
5318
|
exports.isEmpty = exports.isString = void 0;
|
|
5296
5319
|
function isString$1(input) {
|
|
@@ -5304,8 +5327,8 @@ var require_string = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node
|
|
|
5304
5327
|
} });
|
|
5305
5328
|
|
|
5306
5329
|
//#endregion
|
|
5307
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5308
|
-
var require_utils$
|
|
5330
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
5331
|
+
var require_utils$3 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
5309
5332
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5310
5333
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
5311
5334
|
const array = require_array();
|
|
@@ -5325,18 +5348,18 @@ var require_utils$4 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5325
5348
|
} });
|
|
5326
5349
|
|
|
5327
5350
|
//#endregion
|
|
5328
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5329
|
-
var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
5351
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
5352
|
+
var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
5330
5353
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5331
5354
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
5332
|
-
const utils$
|
|
5355
|
+
const utils$38 = require_utils$3();
|
|
5333
5356
|
function generate$1(input, settings) {
|
|
5334
5357
|
const patterns = processPatterns(input, settings);
|
|
5335
5358
|
const ignore = processPatterns(settings.ignore, settings);
|
|
5336
5359
|
const positivePatterns = getPositivePatterns(patterns);
|
|
5337
5360
|
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
|
5338
|
-
const staticPatterns = positivePatterns.filter((pattern$1) => utils$
|
|
5339
|
-
const dynamicPatterns = positivePatterns.filter((pattern$1) => utils$
|
|
5361
|
+
const staticPatterns = positivePatterns.filter((pattern$1) => utils$38.pattern.isStaticPattern(pattern$1, settings));
|
|
5362
|
+
const dynamicPatterns = positivePatterns.filter((pattern$1) => utils$38.pattern.isDynamicPattern(pattern$1, settings));
|
|
5340
5363
|
const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, false);
|
|
5341
5364
|
const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, true);
|
|
5342
5365
|
return staticTasks.concat(dynamicTasks);
|
|
@@ -5351,7 +5374,7 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5351
5374
|
* To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown
|
|
5352
5375
|
* in matching in the case of a large set of patterns after expansion.
|
|
5353
5376
|
*/
|
|
5354
|
-
if (settings.braceExpansion) patterns = utils$
|
|
5377
|
+
if (settings.braceExpansion) patterns = utils$38.pattern.expandPatternsWithBraceExpansion(patterns);
|
|
5355
5378
|
/**
|
|
5356
5379
|
* If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used
|
|
5357
5380
|
* at any nesting level.
|
|
@@ -5364,7 +5387,7 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5364
5387
|
/**
|
|
5365
5388
|
* This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion.
|
|
5366
5389
|
*/
|
|
5367
|
-
return patterns.map((pattern$1) => utils$
|
|
5390
|
+
return patterns.map((pattern$1) => utils$38.pattern.removeDuplicateSlashes(pattern$1));
|
|
5368
5391
|
}
|
|
5369
5392
|
/**
|
|
5370
5393
|
* Returns tasks grouped by basic pattern directories.
|
|
@@ -5374,8 +5397,8 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5374
5397
|
*/
|
|
5375
5398
|
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
5376
5399
|
const tasks = [];
|
|
5377
|
-
const patternsOutsideCurrentDirectory = utils$
|
|
5378
|
-
const patternsInsideCurrentDirectory = utils$
|
|
5400
|
+
const patternsOutsideCurrentDirectory = utils$38.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
5401
|
+
const patternsInsideCurrentDirectory = utils$38.pattern.getPatternsInsideCurrentDirectory(positive);
|
|
5379
5402
|
const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
|
|
5380
5403
|
const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
|
|
5381
5404
|
tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
|
|
@@ -5385,19 +5408,19 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5385
5408
|
}
|
|
5386
5409
|
exports.convertPatternsToTasks = convertPatternsToTasks;
|
|
5387
5410
|
function getPositivePatterns(patterns) {
|
|
5388
|
-
return utils$
|
|
5411
|
+
return utils$38.pattern.getPositivePatterns(patterns);
|
|
5389
5412
|
}
|
|
5390
5413
|
exports.getPositivePatterns = getPositivePatterns;
|
|
5391
5414
|
function getNegativePatternsAsPositive(patterns, ignore) {
|
|
5392
|
-
const negative = utils$
|
|
5393
|
-
const positive = negative.map(utils$
|
|
5415
|
+
const negative = utils$38.pattern.getNegativePatterns(patterns).concat(ignore);
|
|
5416
|
+
const positive = negative.map(utils$38.pattern.convertToPositivePattern);
|
|
5394
5417
|
return positive;
|
|
5395
5418
|
}
|
|
5396
5419
|
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
5397
5420
|
function groupPatternsByBaseDirectory(patterns) {
|
|
5398
5421
|
const group = {};
|
|
5399
5422
|
return patterns.reduce((collection, pattern$1) => {
|
|
5400
|
-
const base = utils$
|
|
5423
|
+
const base = utils$38.pattern.getBaseDirectory(pattern$1);
|
|
5401
5424
|
if (base in collection) collection[base].push(pattern$1);
|
|
5402
5425
|
else collection[base] = [pattern$1];
|
|
5403
5426
|
return collection;
|
|
@@ -5416,7 +5439,7 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5416
5439
|
positive,
|
|
5417
5440
|
negative,
|
|
5418
5441
|
base,
|
|
5419
|
-
patterns: [].concat(positive, negative.map(utils$
|
|
5442
|
+
patterns: [].concat(positive, negative.map(utils$38.pattern.convertToNegativePattern))
|
|
5420
5443
|
};
|
|
5421
5444
|
}
|
|
5422
5445
|
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
@@ -5603,7 +5626,7 @@ var require_run_parallel = __commonJS({ "../../node_modules/.pnpm/run-parallel@1
|
|
|
5603
5626
|
|
|
5604
5627
|
//#endregion
|
|
5605
5628
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
5606
|
-
var require_constants$
|
|
5629
|
+
var require_constants$1 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
5607
5630
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5608
5631
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
5609
5632
|
const NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -5645,7 +5668,7 @@ var require_fs$1 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.
|
|
|
5645
5668
|
|
|
5646
5669
|
//#endregion
|
|
5647
5670
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
5648
|
-
var require_utils$
|
|
5671
|
+
var require_utils$2 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
5649
5672
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5650
5673
|
exports.fs = void 0;
|
|
5651
5674
|
const fs$5 = require_fs$1();
|
|
@@ -5674,8 +5697,8 @@ var require_async$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir
|
|
|
5674
5697
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5675
5698
|
const fsStat$5 = require_out$3();
|
|
5676
5699
|
const rpl = require_run_parallel();
|
|
5677
|
-
const constants_1$1 = require_constants$
|
|
5678
|
-
const utils$
|
|
5700
|
+
const constants_1$1 = require_constants$1();
|
|
5701
|
+
const utils$37 = require_utils$2();
|
|
5679
5702
|
const common$9 = require_common$3();
|
|
5680
5703
|
function read$1(directory, settings, callback) {
|
|
5681
5704
|
if (!settings.stats && constants_1$1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -5726,7 +5749,7 @@ var require_async$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir
|
|
|
5726
5749
|
done$1(null, entry);
|
|
5727
5750
|
return;
|
|
5728
5751
|
}
|
|
5729
|
-
entry.dirent = utils$
|
|
5752
|
+
entry.dirent = utils$37.fs.createDirentFromStats(entry.name, stats);
|
|
5730
5753
|
done$1(null, entry);
|
|
5731
5754
|
});
|
|
5732
5755
|
};
|
|
@@ -5748,7 +5771,7 @@ var require_async$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir
|
|
|
5748
5771
|
const entry = {
|
|
5749
5772
|
name,
|
|
5750
5773
|
path: path$11,
|
|
5751
|
-
dirent: utils$
|
|
5774
|
+
dirent: utils$37.fs.createDirentFromStats(name, stats)
|
|
5752
5775
|
};
|
|
5753
5776
|
if (settings.stats) entry.stats = stats;
|
|
5754
5777
|
done$1(null, entry);
|
|
@@ -5779,8 +5802,8 @@ var require_sync$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
5779
5802
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5780
5803
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5781
5804
|
const fsStat$4 = require_out$3();
|
|
5782
|
-
const constants_1 = require_constants$
|
|
5783
|
-
const utils$
|
|
5805
|
+
const constants_1 = require_constants$1();
|
|
5806
|
+
const utils$36 = require_utils$2();
|
|
5784
5807
|
const common$8 = require_common$3();
|
|
5785
5808
|
function read(directory, settings) {
|
|
5786
5809
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return readdirWithFileTypes(directory, settings);
|
|
@@ -5797,7 +5820,7 @@ var require_sync$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
5797
5820
|
};
|
|
5798
5821
|
if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) try {
|
|
5799
5822
|
const stats = settings.fs.statSync(entry.path);
|
|
5800
|
-
entry.dirent = utils$
|
|
5823
|
+
entry.dirent = utils$36.fs.createDirentFromStats(entry.name, stats);
|
|
5801
5824
|
} catch (error) {
|
|
5802
5825
|
if (settings.throwErrorOnBrokenSymbolicLink) throw error;
|
|
5803
5826
|
}
|
|
@@ -5813,7 +5836,7 @@ var require_sync$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
5813
5836
|
const entry = {
|
|
5814
5837
|
name,
|
|
5815
5838
|
path: entryPath,
|
|
5816
|
-
dirent: utils$
|
|
5839
|
+
dirent: utils$36.fs.createDirentFromStats(name, stats)
|
|
5817
5840
|
};
|
|
5818
5841
|
if (settings.stats) entry.stats = stats;
|
|
5819
5842
|
return entry;
|
|
@@ -5928,16 +5951,16 @@ var require_reusify = __commonJS({ "../../node_modules/.pnpm/reusify@1.0.4/node_
|
|
|
5928
5951
|
} });
|
|
5929
5952
|
|
|
5930
5953
|
//#endregion
|
|
5931
|
-
//#region ../../node_modules/.pnpm/fastq@1.
|
|
5932
|
-
var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.
|
|
5954
|
+
//#region ../../node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js
|
|
5955
|
+
var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js"(exports, module) {
|
|
5933
5956
|
var reusify = require_reusify();
|
|
5934
|
-
function fastqueue(context, worker,
|
|
5957
|
+
function fastqueue(context, worker, _concurrency) {
|
|
5935
5958
|
if (typeof context === "function") {
|
|
5936
|
-
|
|
5959
|
+
_concurrency = worker;
|
|
5937
5960
|
worker = context;
|
|
5938
5961
|
context = null;
|
|
5939
5962
|
}
|
|
5940
|
-
if (
|
|
5963
|
+
if (!(_concurrency >= 1)) throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
5941
5964
|
var cache$1 = reusify(Task);
|
|
5942
5965
|
var queueHead = null;
|
|
5943
5966
|
var queueTail = null;
|
|
@@ -5949,7 +5972,18 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
5949
5972
|
saturated: noop,
|
|
5950
5973
|
pause,
|
|
5951
5974
|
paused: false,
|
|
5952
|
-
concurrency
|
|
5975
|
+
get concurrency() {
|
|
5976
|
+
return _concurrency;
|
|
5977
|
+
},
|
|
5978
|
+
set concurrency(value) {
|
|
5979
|
+
if (!(value >= 1)) throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
5980
|
+
_concurrency = value;
|
|
5981
|
+
if (self$1.paused) return;
|
|
5982
|
+
for (; queueHead && _running < _concurrency;) {
|
|
5983
|
+
_running++;
|
|
5984
|
+
release();
|
|
5985
|
+
}
|
|
5986
|
+
},
|
|
5953
5987
|
running,
|
|
5954
5988
|
resume: resume$1,
|
|
5955
5989
|
idle,
|
|
@@ -5989,7 +6023,12 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
5989
6023
|
function resume$1() {
|
|
5990
6024
|
if (!self$1.paused) return;
|
|
5991
6025
|
self$1.paused = false;
|
|
5992
|
-
|
|
6026
|
+
if (queueHead === null) {
|
|
6027
|
+
_running++;
|
|
6028
|
+
release();
|
|
6029
|
+
return;
|
|
6030
|
+
}
|
|
6031
|
+
for (; queueHead && _running < _concurrency;) {
|
|
5993
6032
|
_running++;
|
|
5994
6033
|
release();
|
|
5995
6034
|
}
|
|
@@ -6004,7 +6043,7 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6004
6043
|
current.value = value;
|
|
6005
6044
|
current.callback = done$1 || noop;
|
|
6006
6045
|
current.errorHandler = errorHandler;
|
|
6007
|
-
if (_running
|
|
6046
|
+
if (_running >= _concurrency || self$1.paused) if (queueTail) {
|
|
6008
6047
|
queueTail.next = current;
|
|
6009
6048
|
queueTail = current;
|
|
6010
6049
|
} else {
|
|
@@ -6023,7 +6062,8 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6023
6062
|
current.release = release;
|
|
6024
6063
|
current.value = value;
|
|
6025
6064
|
current.callback = done$1 || noop;
|
|
6026
|
-
|
|
6065
|
+
current.errorHandler = errorHandler;
|
|
6066
|
+
if (_running >= _concurrency || self$1.paused) if (queueHead) {
|
|
6027
6067
|
current.next = queueHead;
|
|
6028
6068
|
queueHead = current;
|
|
6029
6069
|
} else {
|
|
@@ -6039,7 +6079,7 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6039
6079
|
function release(holder) {
|
|
6040
6080
|
if (holder) cache$1.release(holder);
|
|
6041
6081
|
var next = queueHead;
|
|
6042
|
-
if (next) if (!self$1.paused) {
|
|
6082
|
+
if (next && _running <= _concurrency) if (!self$1.paused) {
|
|
6043
6083
|
if (queueTail === queueHead) queueTail = null;
|
|
6044
6084
|
queueHead = next.next;
|
|
6045
6085
|
next.next = null;
|
|
@@ -6083,9 +6123,9 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6083
6123
|
self$1.release(self$1);
|
|
6084
6124
|
};
|
|
6085
6125
|
}
|
|
6086
|
-
function queueAsPromised(context, worker,
|
|
6126
|
+
function queueAsPromised(context, worker, _concurrency) {
|
|
6087
6127
|
if (typeof context === "function") {
|
|
6088
|
-
|
|
6128
|
+
_concurrency = worker;
|
|
6089
6129
|
worker = context;
|
|
6090
6130
|
context = null;
|
|
6091
6131
|
}
|
|
@@ -6094,7 +6134,7 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6094
6134
|
cb(null, res);
|
|
6095
6135
|
}, cb);
|
|
6096
6136
|
}
|
|
6097
|
-
var queue$1 = fastqueue(context, asyncWrapper,
|
|
6137
|
+
var queue$1 = fastqueue(context, asyncWrapper, _concurrency);
|
|
6098
6138
|
var pushCb = queue$1.push;
|
|
6099
6139
|
var unshiftCb = queue$1.unshift;
|
|
6100
6140
|
queue$1.push = push;
|
|
@@ -6483,12 +6523,12 @@ var require_out$1 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.
|
|
|
6483
6523
|
} });
|
|
6484
6524
|
|
|
6485
6525
|
//#endregion
|
|
6486
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6487
|
-
var require_reader = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6526
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
6527
|
+
var require_reader = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
6488
6528
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6489
6529
|
const path$2 = __require("path");
|
|
6490
6530
|
const fsStat$2 = require_out$3();
|
|
6491
|
-
const utils$
|
|
6531
|
+
const utils$35 = require_utils$3();
|
|
6492
6532
|
var Reader = class {
|
|
6493
6533
|
constructor(_settings) {
|
|
6494
6534
|
this._settings = _settings;
|
|
@@ -6505,21 +6545,21 @@ var require_reader = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node
|
|
|
6505
6545
|
const entry = {
|
|
6506
6546
|
name: pattern$1,
|
|
6507
6547
|
path: pattern$1,
|
|
6508
|
-
dirent: utils$
|
|
6548
|
+
dirent: utils$35.fs.createDirentFromStats(pattern$1, stats)
|
|
6509
6549
|
};
|
|
6510
6550
|
if (this._settings.stats) entry.stats = stats;
|
|
6511
6551
|
return entry;
|
|
6512
6552
|
}
|
|
6513
6553
|
_isFatalError(error) {
|
|
6514
|
-
return !utils$
|
|
6554
|
+
return !utils$35.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
|
|
6515
6555
|
}
|
|
6516
6556
|
};
|
|
6517
6557
|
exports.default = Reader;
|
|
6518
6558
|
} });
|
|
6519
6559
|
|
|
6520
6560
|
//#endregion
|
|
6521
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6522
|
-
var require_stream$2 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6561
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js
|
|
6562
|
+
var require_stream$2 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
6523
6563
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6524
6564
|
const stream_1$3 = __require("stream");
|
|
6525
6565
|
const fsStat$1 = require_out$3();
|
|
@@ -6565,8 +6605,8 @@ var require_stream$2 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
6565
6605
|
} });
|
|
6566
6606
|
|
|
6567
6607
|
//#endregion
|
|
6568
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6569
|
-
var require_async$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6608
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js
|
|
6609
|
+
var require_async$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
6570
6610
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6571
6611
|
const fsWalk$1 = require_out$1();
|
|
6572
6612
|
const reader_1$1 = require_reader();
|
|
@@ -6599,10 +6639,10 @@ var require_async$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6599
6639
|
} });
|
|
6600
6640
|
|
|
6601
6641
|
//#endregion
|
|
6602
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6603
|
-
var require_matcher = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6642
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
6643
|
+
var require_matcher = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
6604
6644
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6605
|
-
const utils$
|
|
6645
|
+
const utils$34 = require_utils$3();
|
|
6606
6646
|
var Matcher = class {
|
|
6607
6647
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
6608
6648
|
this._patterns = _patterns;
|
|
@@ -6624,9 +6664,9 @@ var require_matcher = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6624
6664
|
}
|
|
6625
6665
|
}
|
|
6626
6666
|
_getPatternSegments(pattern$1) {
|
|
6627
|
-
const parts = utils$
|
|
6667
|
+
const parts = utils$34.pattern.getPatternParts(pattern$1, this._micromatchOptions);
|
|
6628
6668
|
return parts.map((part) => {
|
|
6629
|
-
const dynamic = utils$
|
|
6669
|
+
const dynamic = utils$34.pattern.isDynamicPattern(part, this._settings);
|
|
6630
6670
|
if (!dynamic) return {
|
|
6631
6671
|
dynamic: false,
|
|
6632
6672
|
pattern: part
|
|
@@ -6634,20 +6674,20 @@ var require_matcher = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6634
6674
|
return {
|
|
6635
6675
|
dynamic: true,
|
|
6636
6676
|
pattern: part,
|
|
6637
|
-
patternRe: utils$
|
|
6677
|
+
patternRe: utils$34.pattern.makeRe(part, this._micromatchOptions)
|
|
6638
6678
|
};
|
|
6639
6679
|
});
|
|
6640
6680
|
}
|
|
6641
6681
|
_splitSegmentsIntoSections(segments) {
|
|
6642
|
-
return utils$
|
|
6682
|
+
return utils$34.array.splitWhen(segments, (segment) => segment.dynamic && utils$34.pattern.hasGlobStar(segment.pattern));
|
|
6643
6683
|
}
|
|
6644
6684
|
};
|
|
6645
6685
|
exports.default = Matcher;
|
|
6646
6686
|
} });
|
|
6647
6687
|
|
|
6648
6688
|
//#endregion
|
|
6649
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6650
|
-
var require_partial = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6689
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
6690
|
+
var require_partial = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
6651
6691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6652
6692
|
const matcher_1 = require_matcher();
|
|
6653
6693
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -6680,10 +6720,10 @@ var require_partial = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6680
6720
|
} });
|
|
6681
6721
|
|
|
6682
6722
|
//#endregion
|
|
6683
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6684
|
-
var require_deep = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6723
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js
|
|
6724
|
+
var require_deep = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
6685
6725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6686
|
-
const utils$
|
|
6726
|
+
const utils$33 = require_utils$3();
|
|
6687
6727
|
const partial_1 = require_partial();
|
|
6688
6728
|
var DeepFilter = class {
|
|
6689
6729
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -6699,13 +6739,13 @@ var require_deep = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_m
|
|
|
6699
6739
|
return new partial_1.default(patterns, this._settings, this._micromatchOptions);
|
|
6700
6740
|
}
|
|
6701
6741
|
_getNegativePatternsRe(patterns) {
|
|
6702
|
-
const affectDepthOfReadingPatterns = patterns.filter(utils$
|
|
6703
|
-
return utils$
|
|
6742
|
+
const affectDepthOfReadingPatterns = patterns.filter(utils$33.pattern.isAffectDepthOfReadingPattern);
|
|
6743
|
+
return utils$33.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
|
|
6704
6744
|
}
|
|
6705
6745
|
_filter(basePath, entry, matcher, negativeRe) {
|
|
6706
6746
|
if (this._isSkippedByDeep(basePath, entry.path)) return false;
|
|
6707
6747
|
if (this._isSkippedSymbolicLink(entry)) return false;
|
|
6708
|
-
const filepath = utils$
|
|
6748
|
+
const filepath = utils$33.path.removeLeadingDotSegment(entry.path);
|
|
6709
6749
|
if (this._isSkippedByPositivePatterns(filepath, matcher)) return false;
|
|
6710
6750
|
return this._isSkippedByNegativePatterns(filepath, negativeRe);
|
|
6711
6751
|
}
|
|
@@ -6729,17 +6769,17 @@ var require_deep = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_m
|
|
|
6729
6769
|
return !this._settings.baseNameMatch && !matcher.match(entryPath);
|
|
6730
6770
|
}
|
|
6731
6771
|
_isSkippedByNegativePatterns(entryPath, patternsRe) {
|
|
6732
|
-
return !utils$
|
|
6772
|
+
return !utils$33.pattern.matchAny(entryPath, patternsRe);
|
|
6733
6773
|
}
|
|
6734
6774
|
};
|
|
6735
6775
|
exports.default = DeepFilter;
|
|
6736
6776
|
} });
|
|
6737
6777
|
|
|
6738
6778
|
//#endregion
|
|
6739
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6740
|
-
var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6779
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js
|
|
6780
|
+
var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
6741
6781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6742
|
-
const utils$
|
|
6782
|
+
const utils$32 = require_utils$3();
|
|
6743
6783
|
var EntryFilter = class {
|
|
6744
6784
|
constructor(_settings, _micromatchOptions) {
|
|
6745
6785
|
this._settings = _settings;
|
|
@@ -6747,17 +6787,21 @@ var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6747
6787
|
this.index = /* @__PURE__ */ new Map();
|
|
6748
6788
|
}
|
|
6749
6789
|
getFilter(positive, negative) {
|
|
6750
|
-
const
|
|
6751
|
-
const
|
|
6752
|
-
|
|
6790
|
+
const [absoluteNegative, relativeNegative] = utils$32.pattern.partitionAbsoluteAndRelative(negative);
|
|
6791
|
+
const patterns = {
|
|
6792
|
+
positive: { all: utils$32.pattern.convertPatternsToRe(positive, this._micromatchOptions) },
|
|
6793
|
+
negative: {
|
|
6794
|
+
absolute: utils$32.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
|
|
6795
|
+
relative: utils$32.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
|
|
6796
|
+
}
|
|
6797
|
+
};
|
|
6798
|
+
return (entry) => this._filter(entry, patterns);
|
|
6753
6799
|
}
|
|
6754
|
-
_filter(entry,
|
|
6755
|
-
const filepath = utils$
|
|
6800
|
+
_filter(entry, patterns) {
|
|
6801
|
+
const filepath = utils$32.path.removeLeadingDotSegment(entry.path);
|
|
6756
6802
|
if (this._settings.unique && this._isDuplicateEntry(filepath)) return false;
|
|
6757
6803
|
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) return false;
|
|
6758
|
-
|
|
6759
|
-
const isDirectory = entry.dirent.isDirectory();
|
|
6760
|
-
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
|
|
6804
|
+
const isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
|
|
6761
6805
|
if (this._settings.unique && isMatched) this._createIndexRecord(filepath);
|
|
6762
6806
|
return isMatched;
|
|
6763
6807
|
}
|
|
@@ -6773,14 +6817,24 @@ var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6773
6817
|
_onlyDirectoryFilter(entry) {
|
|
6774
6818
|
return this._settings.onlyDirectories && !entry.dirent.isDirectory();
|
|
6775
6819
|
}
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6820
|
+
_isMatchToPatternsSet(filepath, patterns, isDirectory) {
|
|
6821
|
+
const isMatched = this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory);
|
|
6822
|
+
if (!isMatched) return false;
|
|
6823
|
+
const isMatchedByRelativeNegative = this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory);
|
|
6824
|
+
if (isMatchedByRelativeNegative) return false;
|
|
6825
|
+
const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
|
|
6826
|
+
if (isMatchedByAbsoluteNegative) return false;
|
|
6827
|
+
return true;
|
|
6828
|
+
}
|
|
6829
|
+
_isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
|
|
6830
|
+
if (patternsRe.length === 0) return false;
|
|
6831
|
+
const fullpath = utils$32.path.makeAbsolute(this._settings.cwd, filepath);
|
|
6832
|
+
return this._isMatchToPatterns(fullpath, patternsRe, isDirectory);
|
|
6780
6833
|
}
|
|
6781
6834
|
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
|
6782
|
-
|
|
6783
|
-
|
|
6835
|
+
if (patternsRe.length === 0) return false;
|
|
6836
|
+
const isMatched = utils$32.pattern.matchAny(filepath, patternsRe);
|
|
6837
|
+
if (!isMatched && isDirectory) return utils$32.pattern.matchAny(filepath + "/", patternsRe);
|
|
6784
6838
|
return isMatched;
|
|
6785
6839
|
}
|
|
6786
6840
|
};
|
|
@@ -6788,10 +6842,10 @@ var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6788
6842
|
} });
|
|
6789
6843
|
|
|
6790
6844
|
//#endregion
|
|
6791
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6792
|
-
var require_error = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6845
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js
|
|
6846
|
+
var require_error = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
6793
6847
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6794
|
-
const utils$
|
|
6848
|
+
const utils$31 = require_utils$3();
|
|
6795
6849
|
var ErrorFilter = class {
|
|
6796
6850
|
constructor(_settings) {
|
|
6797
6851
|
this._settings = _settings;
|
|
@@ -6800,17 +6854,17 @@ var require_error = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
6800
6854
|
return (error) => this._isNonFatalError(error);
|
|
6801
6855
|
}
|
|
6802
6856
|
_isNonFatalError(error) {
|
|
6803
|
-
return utils$
|
|
6857
|
+
return utils$31.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
|
|
6804
6858
|
}
|
|
6805
6859
|
};
|
|
6806
6860
|
exports.default = ErrorFilter;
|
|
6807
6861
|
} });
|
|
6808
6862
|
|
|
6809
6863
|
//#endregion
|
|
6810
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6811
|
-
var require_entry = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6864
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
6865
|
+
var require_entry = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
6812
6866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6813
|
-
const utils$
|
|
6867
|
+
const utils$30 = require_utils$3();
|
|
6814
6868
|
var EntryTransformer = class {
|
|
6815
6869
|
constructor(_settings) {
|
|
6816
6870
|
this._settings = _settings;
|
|
@@ -6821,8 +6875,8 @@ var require_entry = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
6821
6875
|
_transform(entry) {
|
|
6822
6876
|
let filepath = entry.path;
|
|
6823
6877
|
if (this._settings.absolute) {
|
|
6824
|
-
filepath = utils$
|
|
6825
|
-
filepath = utils$
|
|
6878
|
+
filepath = utils$30.path.makeAbsolute(this._settings.cwd, filepath);
|
|
6879
|
+
filepath = utils$30.path.unixify(filepath);
|
|
6826
6880
|
}
|
|
6827
6881
|
if (this._settings.markDirectories && entry.dirent.isDirectory()) filepath += "/";
|
|
6828
6882
|
if (!this._settings.objectMode) return filepath;
|
|
@@ -6833,8 +6887,8 @@ var require_entry = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
6833
6887
|
} });
|
|
6834
6888
|
|
|
6835
6889
|
//#endregion
|
|
6836
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6837
|
-
var require_provider = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6890
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
6891
|
+
var require_provider = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
6838
6892
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6839
6893
|
const path$1 = __require("path");
|
|
6840
6894
|
const deep_1 = require_deep();
|
|
@@ -6885,8 +6939,8 @@ var require_provider = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
6885
6939
|
} });
|
|
6886
6940
|
|
|
6887
6941
|
//#endregion
|
|
6888
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6889
|
-
var require_async = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6942
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js
|
|
6943
|
+
var require_async = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
6890
6944
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6891
6945
|
const async_1$1 = require_async$1();
|
|
6892
6946
|
const provider_1$2 = require_provider();
|
|
@@ -6910,8 +6964,8 @@ var require_async = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
6910
6964
|
} });
|
|
6911
6965
|
|
|
6912
6966
|
//#endregion
|
|
6913
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6914
|
-
var require_stream$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6967
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js
|
|
6968
|
+
var require_stream$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
6915
6969
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6916
6970
|
const stream_1$1 = __require("stream");
|
|
6917
6971
|
const stream_2 = require_stream$2();
|
|
@@ -6942,8 +6996,8 @@ var require_stream$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
6942
6996
|
} });
|
|
6943
6997
|
|
|
6944
6998
|
//#endregion
|
|
6945
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6946
|
-
var require_sync$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6999
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js
|
|
7000
|
+
var require_sync$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
6947
7001
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6948
7002
|
const fsStat = require_out$3();
|
|
6949
7003
|
const fsWalk = require_out$1();
|
|
@@ -6984,8 +7038,8 @@ var require_sync$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node
|
|
|
6984
7038
|
} });
|
|
6985
7039
|
|
|
6986
7040
|
//#endregion
|
|
6987
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6988
|
-
var require_sync = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
7041
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js
|
|
7042
|
+
var require_sync = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
6989
7043
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6990
7044
|
const sync_1$1 = require_sync$1();
|
|
6991
7045
|
const provider_1 = require_provider();
|
|
@@ -7009,8 +7063,8 @@ var require_sync = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_m
|
|
|
7009
7063
|
} });
|
|
7010
7064
|
|
|
7011
7065
|
//#endregion
|
|
7012
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
7013
|
-
var require_settings = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
7066
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js
|
|
7067
|
+
var require_settings = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
7014
7068
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7015
7069
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
7016
7070
|
const fs$2 = __require("fs");
|
|
@@ -7067,19 +7121,19 @@ var require_settings = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
7067
7121
|
} });
|
|
7068
7122
|
|
|
7069
7123
|
//#endregion
|
|
7070
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
7071
|
-
var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
7124
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js
|
|
7125
|
+
var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
7072
7126
|
const taskManager = require_tasks();
|
|
7073
7127
|
const async_1 = require_async();
|
|
7074
7128
|
const stream_1 = require_stream$1();
|
|
7075
7129
|
const sync_1 = require_sync();
|
|
7076
7130
|
const settings_1 = require_settings();
|
|
7077
|
-
const utils$
|
|
7131
|
+
const utils$29 = require_utils$3();
|
|
7078
7132
|
async function FastGlob(source, options) {
|
|
7079
7133
|
assertPatternsInput(source);
|
|
7080
7134
|
const works = getWorks(source, async_1.default, options);
|
|
7081
7135
|
const result = await Promise.all(works);
|
|
7082
|
-
return utils$
|
|
7136
|
+
return utils$29.array.flatten(result);
|
|
7083
7137
|
}
|
|
7084
7138
|
(function(FastGlob$1) {
|
|
7085
7139
|
FastGlob$1.glob = FastGlob$1;
|
|
@@ -7089,7 +7143,7 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7089
7143
|
function sync$2(source, options) {
|
|
7090
7144
|
assertPatternsInput(source);
|
|
7091
7145
|
const works = getWorks(source, sync_1.default, options);
|
|
7092
|
-
return utils$
|
|
7146
|
+
return utils$29.array.flatten(works);
|
|
7093
7147
|
}
|
|
7094
7148
|
FastGlob$1.sync = sync$2;
|
|
7095
7149
|
function stream$1(source, options) {
|
|
@@ -7100,7 +7154,7 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7100
7154
|
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
|
7101
7155
|
* This affects performance (+25%). I don't see best solution right now.
|
|
7102
7156
|
*/
|
|
7103
|
-
return utils$
|
|
7157
|
+
return utils$29.stream.merge(works);
|
|
7104
7158
|
}
|
|
7105
7159
|
FastGlob$1.stream = stream$1;
|
|
7106
7160
|
function generateTasks(source, options) {
|
|
@@ -7113,29 +7167,29 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7113
7167
|
function isDynamicPattern$1(source, options) {
|
|
7114
7168
|
assertPatternsInput(source);
|
|
7115
7169
|
const settings = new settings_1.default(options);
|
|
7116
|
-
return utils$
|
|
7170
|
+
return utils$29.pattern.isDynamicPattern(source, settings);
|
|
7117
7171
|
}
|
|
7118
7172
|
FastGlob$1.isDynamicPattern = isDynamicPattern$1;
|
|
7119
7173
|
function escapePath(source) {
|
|
7120
7174
|
assertPatternsInput(source);
|
|
7121
|
-
return utils$
|
|
7175
|
+
return utils$29.path.escape(source);
|
|
7122
7176
|
}
|
|
7123
7177
|
FastGlob$1.escapePath = escapePath;
|
|
7124
7178
|
function convertPathToPattern(source) {
|
|
7125
7179
|
assertPatternsInput(source);
|
|
7126
|
-
return utils$
|
|
7180
|
+
return utils$29.path.convertPathToPattern(source);
|
|
7127
7181
|
}
|
|
7128
7182
|
FastGlob$1.convertPathToPattern = convertPathToPattern;
|
|
7129
7183
|
let posix;
|
|
7130
7184
|
(function(posix$1) {
|
|
7131
7185
|
function escapePath$1(source) {
|
|
7132
7186
|
assertPatternsInput(source);
|
|
7133
|
-
return utils$
|
|
7187
|
+
return utils$29.path.escapePosixPath(source);
|
|
7134
7188
|
}
|
|
7135
7189
|
posix$1.escapePath = escapePath$1;
|
|
7136
7190
|
function convertPathToPattern$1(source) {
|
|
7137
7191
|
assertPatternsInput(source);
|
|
7138
|
-
return utils$
|
|
7192
|
+
return utils$29.path.convertPosixPathToPattern(source);
|
|
7139
7193
|
}
|
|
7140
7194
|
posix$1.convertPathToPattern = convertPathToPattern$1;
|
|
7141
7195
|
})(posix = FastGlob$1.posix || (FastGlob$1.posix = {}));
|
|
@@ -7143,12 +7197,12 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7143
7197
|
(function(win32$2) {
|
|
7144
7198
|
function escapePath$1(source) {
|
|
7145
7199
|
assertPatternsInput(source);
|
|
7146
|
-
return utils$
|
|
7200
|
+
return utils$29.path.escapeWindowsPath(source);
|
|
7147
7201
|
}
|
|
7148
7202
|
win32$2.escapePath = escapePath$1;
|
|
7149
7203
|
function convertPathToPattern$1(source) {
|
|
7150
7204
|
assertPatternsInput(source);
|
|
7151
|
-
return utils$
|
|
7205
|
+
return utils$29.path.convertWindowsPathToPattern(source);
|
|
7152
7206
|
}
|
|
7153
7207
|
win32$2.convertPathToPattern = convertPathToPattern$1;
|
|
7154
7208
|
})(win32$1 = FastGlob$1.win32 || (FastGlob$1.win32 = {}));
|
|
@@ -7162,7 +7216,7 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7162
7216
|
}
|
|
7163
7217
|
function assertPatternsInput(input) {
|
|
7164
7218
|
const source = [].concat(input);
|
|
7165
|
-
const isValidSource = source.every((item) => utils$
|
|
7219
|
+
const isValidSource = source.every((item) => utils$29.string.isString(item) && !utils$29.string.isEmpty(item));
|
|
7166
7220
|
if (!isValidSource) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
7167
7221
|
}
|
|
7168
7222
|
module.exports = FastGlob;
|
|
@@ -9106,21 +9160,21 @@ var require_dumper = __commonJS({ "../../node_modules/.pnpm/js-yaml@4.1.0/node_m
|
|
|
9106
9160
|
var CHAR_CARRIAGE_RETURN = 13;
|
|
9107
9161
|
var CHAR_SPACE = 32;
|
|
9108
9162
|
var CHAR_EXCLAMATION = 33;
|
|
9109
|
-
var CHAR_DOUBLE_QUOTE
|
|
9163
|
+
var CHAR_DOUBLE_QUOTE = 34;
|
|
9110
9164
|
var CHAR_SHARP = 35;
|
|
9111
9165
|
var CHAR_PERCENT = 37;
|
|
9112
9166
|
var CHAR_AMPERSAND = 38;
|
|
9113
|
-
var CHAR_SINGLE_QUOTE
|
|
9167
|
+
var CHAR_SINGLE_QUOTE = 39;
|
|
9114
9168
|
var CHAR_ASTERISK = 42;
|
|
9115
|
-
var CHAR_COMMA
|
|
9169
|
+
var CHAR_COMMA = 44;
|
|
9116
9170
|
var CHAR_MINUS = 45;
|
|
9117
9171
|
var CHAR_COLON = 58;
|
|
9118
9172
|
var CHAR_EQUALS = 61;
|
|
9119
9173
|
var CHAR_GREATER_THAN = 62;
|
|
9120
9174
|
var CHAR_QUESTION = 63;
|
|
9121
9175
|
var CHAR_COMMERCIAL_AT = 64;
|
|
9122
|
-
var CHAR_LEFT_SQUARE_BRACKET
|
|
9123
|
-
var CHAR_RIGHT_SQUARE_BRACKET
|
|
9176
|
+
var CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
9177
|
+
var CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
9124
9178
|
var CHAR_GRAVE_ACCENT = 96;
|
|
9125
9179
|
var CHAR_LEFT_CURLY_BRACKET = 123;
|
|
9126
9180
|
var CHAR_VERTICAL_LINE = 124;
|
|
@@ -9252,10 +9306,10 @@ var require_dumper = __commonJS({ "../../node_modules/.pnpm/js-yaml@4.1.0/node_m
|
|
|
9252
9306
|
function isPlainSafe(c$1, prev, inblock) {
|
|
9253
9307
|
var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c$1);
|
|
9254
9308
|
var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c$1);
|
|
9255
|
-
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c$1 !== CHAR_COMMA
|
|
9309
|
+
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c$1 !== CHAR_COMMA && c$1 !== CHAR_LEFT_SQUARE_BRACKET && c$1 !== CHAR_RIGHT_SQUARE_BRACKET && c$1 !== CHAR_LEFT_CURLY_BRACKET && c$1 !== CHAR_RIGHT_CURLY_BRACKET) && c$1 !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c$1 === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar;
|
|
9256
9310
|
}
|
|
9257
9311
|
function isPlainSafeFirst(c$1) {
|
|
9258
|
-
return isPrintable(c$1) && c$1 !== CHAR_BOM && !isWhitespace(c$1) && c$1 !== CHAR_MINUS && c$1 !== CHAR_QUESTION && c$1 !== CHAR_COLON && c$1 !== CHAR_COMMA
|
|
9312
|
+
return isPrintable(c$1) && c$1 !== CHAR_BOM && !isWhitespace(c$1) && c$1 !== CHAR_MINUS && c$1 !== CHAR_QUESTION && c$1 !== CHAR_COLON && c$1 !== CHAR_COMMA && c$1 !== CHAR_LEFT_SQUARE_BRACKET && c$1 !== CHAR_RIGHT_SQUARE_BRACKET && c$1 !== CHAR_LEFT_CURLY_BRACKET && c$1 !== CHAR_RIGHT_CURLY_BRACKET && c$1 !== CHAR_SHARP && c$1 !== CHAR_AMPERSAND && c$1 !== CHAR_ASTERISK && c$1 !== CHAR_EXCLAMATION && c$1 !== CHAR_VERTICAL_LINE && c$1 !== CHAR_EQUALS && c$1 !== CHAR_GREATER_THAN && c$1 !== CHAR_SINGLE_QUOTE && c$1 !== CHAR_DOUBLE_QUOTE && c$1 !== CHAR_PERCENT && c$1 !== CHAR_COMMERCIAL_AT && c$1 !== CHAR_GRAVE_ACCENT;
|
|
9259
9313
|
}
|
|
9260
9314
|
function isPlainSafeLast(c$1) {
|
|
9261
9315
|
return !isWhitespace(c$1) && c$1 !== CHAR_COLON;
|
|
@@ -9724,7 +9778,7 @@ var require_unicode = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
9724
9778
|
|
|
9725
9779
|
//#endregion
|
|
9726
9780
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/parse.js
|
|
9727
|
-
var require_parse
|
|
9781
|
+
var require_parse = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/parse.js"(exports, module) {
|
|
9728
9782
|
var Uni$1 = require_unicode();
|
|
9729
9783
|
function isHexDigit(x) {
|
|
9730
9784
|
return x >= "0" && x <= "9" || x >= "A" && x <= "F" || x >= "a" && x <= "f";
|
|
@@ -9764,7 +9818,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
9764
9818
|
}
|
|
9765
9819
|
return result + "\n" + srcline + "\n" + underline;
|
|
9766
9820
|
}
|
|
9767
|
-
function parse
|
|
9821
|
+
function parse(input, options) {
|
|
9768
9822
|
var json5 = false;
|
|
9769
9823
|
var cjson = false;
|
|
9770
9824
|
if (options.legacy || options.mode === "json") {} else if (options.mode === "cjson") cjson = true;
|
|
@@ -10144,7 +10198,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
10144
10198
|
if (options.null_prototype == null) options.null_prototype = true;
|
|
10145
10199
|
}
|
|
10146
10200
|
try {
|
|
10147
|
-
return parse
|
|
10201
|
+
return parse(input, options);
|
|
10148
10202
|
} catch (err$1) {
|
|
10149
10203
|
if (err$1 instanceof SyntaxError && err$1.row != null && err$1.column != null) {
|
|
10150
10204
|
var old_err = err$1;
|
|
@@ -10169,7 +10223,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
10169
10223
|
|
|
10170
10224
|
//#endregion
|
|
10171
10225
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/stringify.js
|
|
10172
|
-
var require_stringify
|
|
10226
|
+
var require_stringify = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/stringify.js"(exports, module) {
|
|
10173
10227
|
var Uni = require_unicode();
|
|
10174
10228
|
if (!function f() {}.name) Object.defineProperty(function() {}.constructor.prototype, "name", { get: function() {
|
|
10175
10229
|
var name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
|
|
@@ -10242,9 +10296,9 @@ var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_
|
|
|
10242
10296
|
}
|
|
10243
10297
|
function _stringify_object() {
|
|
10244
10298
|
if (object === null) return "null";
|
|
10245
|
-
var result = [], len = 0, braces$
|
|
10299
|
+
var result = [], len = 0, braces$2;
|
|
10246
10300
|
if (Array.isArray(object)) {
|
|
10247
|
-
braces$
|
|
10301
|
+
braces$2 = "[]";
|
|
10248
10302
|
for (var i$3 = 0; i$3 < object.length; i$3++) {
|
|
10249
10303
|
var s = _stringify(object[i$3], options, recursiveLvl + 1, String(i$3));
|
|
10250
10304
|
if (s === void 0) s = "null";
|
|
@@ -10252,7 +10306,7 @@ var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_
|
|
|
10252
10306
|
result.push(s + ",");
|
|
10253
10307
|
}
|
|
10254
10308
|
} else {
|
|
10255
|
-
braces$
|
|
10309
|
+
braces$2 = "{}";
|
|
10256
10310
|
var fn = function(key) {
|
|
10257
10311
|
var t = _stringify(object[key], options, recursiveLvl + 1, key);
|
|
10258
10312
|
if (t !== void 0) {
|
|
@@ -10275,11 +10329,11 @@ var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_
|
|
|
10275
10329
|
var innerStuff = result.map(function(x) {
|
|
10276
10330
|
return indent(x, 1);
|
|
10277
10331
|
}).join("");
|
|
10278
|
-
return braces$
|
|
10332
|
+
return braces$2[0] + (options.indent ? "\n" : "") + innerStuff + indent(braces$2[1]);
|
|
10279
10333
|
} else {
|
|
10280
10334
|
if (result.length) result[result.length - 1] = result[result.length - 1].substring(0, result[result.length - 1].length - 1);
|
|
10281
10335
|
var innerStuff = result.join(options.indent ? " " : "");
|
|
10282
|
-
return braces$
|
|
10336
|
+
return braces$2[0] + innerStuff + braces$2[1];
|
|
10283
10337
|
}
|
|
10284
10338
|
}
|
|
10285
10339
|
function _stringify_nonobject(object$1) {
|
|
@@ -10345,7 +10399,7 @@ var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_
|
|
|
10345
10399
|
//#endregion
|
|
10346
10400
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/analyze.js
|
|
10347
10401
|
var require_analyze = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/analyze.js"(exports, module) {
|
|
10348
|
-
var tokenize$1 = require_parse
|
|
10402
|
+
var tokenize$1 = require_parse().tokenize;
|
|
10349
10403
|
module.exports.analyze = function analyzeJSON(input, options) {
|
|
10350
10404
|
if (options == null) options = {};
|
|
10351
10405
|
if (!Array.isArray(input)) input = tokenize$1(input, options);
|
|
@@ -10404,8 +10458,8 @@ var require_analyze = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
10404
10458
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/document.js
|
|
10405
10459
|
var require_document = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/document.js"(exports, module) {
|
|
10406
10460
|
var assert = __require("assert");
|
|
10407
|
-
var tokenize = require_parse
|
|
10408
|
-
var stringify
|
|
10461
|
+
var tokenize = require_parse().tokenize;
|
|
10462
|
+
var stringify = require_stringify().stringify;
|
|
10409
10463
|
var analyze = require_analyze().analyze;
|
|
10410
10464
|
function isObject$1(x) {
|
|
10411
10465
|
return typeof x === "object" && x !== null;
|
|
@@ -10418,7 +10472,7 @@ var require_document = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_mod
|
|
|
10418
10472
|
}).join("");
|
|
10419
10473
|
if (options._splitMin == null) options._splitMin = 0;
|
|
10420
10474
|
if (options._splitMax == null) options._splitMax = 0;
|
|
10421
|
-
var stringified = stringify
|
|
10475
|
+
var stringified = stringify(value, options);
|
|
10422
10476
|
if (is_key) return [{
|
|
10423
10477
|
raw: stringified,
|
|
10424
10478
|
type: "key",
|
|
@@ -10685,7 +10739,7 @@ var require_document = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_mod
|
|
|
10685
10739
|
|
|
10686
10740
|
//#endregion
|
|
10687
10741
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/utils.js
|
|
10688
|
-
var require_utils$
|
|
10742
|
+
var require_utils$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/utils.js"(exports, module) {
|
|
10689
10743
|
var FS = __require("fs");
|
|
10690
10744
|
var jju = require_jju();
|
|
10691
10745
|
module.exports.register = function() {
|
|
@@ -10722,13 +10776,13 @@ var require_utils$2 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
10722
10776
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/index.js
|
|
10723
10777
|
var require_jju = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/index.js"(exports, module) {
|
|
10724
10778
|
module.exports.__defineGetter__("parse", function() {
|
|
10725
|
-
return require_parse
|
|
10779
|
+
return require_parse().parse;
|
|
10726
10780
|
});
|
|
10727
10781
|
module.exports.__defineGetter__("stringify", function() {
|
|
10728
|
-
return require_stringify
|
|
10782
|
+
return require_stringify().stringify;
|
|
10729
10783
|
});
|
|
10730
10784
|
module.exports.__defineGetter__("tokenize", function() {
|
|
10731
|
-
return require_parse
|
|
10785
|
+
return require_parse().tokenize;
|
|
10732
10786
|
});
|
|
10733
10787
|
module.exports.__defineGetter__("update", function() {
|
|
10734
10788
|
return require_document().update;
|
|
@@ -10737,7 +10791,7 @@ var require_jju = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/
|
|
|
10737
10791
|
return require_analyze().analyze;
|
|
10738
10792
|
});
|
|
10739
10793
|
module.exports.__defineGetter__("utils", function() {
|
|
10740
|
-
return require_utils$
|
|
10794
|
+
return require_utils$1();
|
|
10741
10795
|
});
|
|
10742
10796
|
} });
|
|
10743
10797
|
/**package
|
|
@@ -10985,8 +11039,8 @@ var require_getWorkspaces = __commonJS({ "../../node_modules/.pnpm/workspace-too
|
|
|
10985
11039
|
* package.json config used by npm/yarn (instead of referring to the entire monorepo).
|
|
10986
11040
|
*/
|
|
10987
11041
|
function getWorkspaces(cwd) {
|
|
10988
|
-
const utils$
|
|
10989
|
-
return utils$
|
|
11042
|
+
const utils$46 = (0, implementations_1$1.getWorkspaceUtilities)(cwd);
|
|
11043
|
+
return utils$46?.getWorkspaces(cwd) || [];
|
|
10990
11044
|
}
|
|
10991
11045
|
exports.getWorkspaces = getWorkspaces;
|
|
10992
11046
|
/**
|
|
@@ -10998,13 +11052,13 @@ var require_getWorkspaces = __commonJS({ "../../node_modules/.pnpm/workspace-too
|
|
|
10998
11052
|
* package.json config used by npm/yarn (instead of referring to the entire monorepo).
|
|
10999
11053
|
*/
|
|
11000
11054
|
async function getWorkspacesAsync(cwd) {
|
|
11001
|
-
const utils$
|
|
11002
|
-
if (!utils$
|
|
11003
|
-
if (!utils$
|
|
11055
|
+
const utils$46 = (0, implementations_1$1.getWorkspaceUtilities)(cwd);
|
|
11056
|
+
if (!utils$46) return [];
|
|
11057
|
+
if (!utils$46.getWorkspacesAsync) {
|
|
11004
11058
|
const managerName = (0, implementations_1$1.getWorkspaceManagerAndRoot)(cwd)?.manager;
|
|
11005
11059
|
throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
|
|
11006
11060
|
}
|
|
11007
|
-
return utils$
|
|
11061
|
+
return utils$46.getWorkspacesAsync(cwd);
|
|
11008
11062
|
}
|
|
11009
11063
|
exports.getWorkspacesAsync = getWorkspacesAsync;
|
|
11010
11064
|
} });
|
|
@@ -11083,1107 +11137,6 @@ var require_createDependencyMap = __commonJS({ "../../node_modules/.pnpm/workspa
|
|
|
11083
11137
|
exports.createDependencyMap = createDependencyMap;
|
|
11084
11138
|
} });
|
|
11085
11139
|
|
|
11086
|
-
//#endregion
|
|
11087
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
11088
|
-
var require_utils$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
11089
|
-
exports.isInteger = (num) => {
|
|
11090
|
-
if (typeof num === "number") return Number.isInteger(num);
|
|
11091
|
-
if (typeof num === "string" && num.trim() !== "") return Number.isInteger(Number(num));
|
|
11092
|
-
return false;
|
|
11093
|
-
};
|
|
11094
|
-
/**
|
|
11095
|
-
* Find a node of the given type
|
|
11096
|
-
*/
|
|
11097
|
-
exports.find = (node, type) => node.nodes.find((node$1) => node$1.type === type);
|
|
11098
|
-
/**
|
|
11099
|
-
* Find a node of the given type
|
|
11100
|
-
*/
|
|
11101
|
-
exports.exceedsLimit = (min, max, step = 1, limit) => {
|
|
11102
|
-
if (limit === false) return false;
|
|
11103
|
-
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
11104
|
-
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
11105
|
-
};
|
|
11106
|
-
/**
|
|
11107
|
-
* Escape the given node with '\\' before node.value
|
|
11108
|
-
*/
|
|
11109
|
-
exports.escapeNode = (block, n = 0, type) => {
|
|
11110
|
-
const node = block.nodes[n];
|
|
11111
|
-
if (!node) return;
|
|
11112
|
-
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
11113
|
-
if (node.escaped !== true) {
|
|
11114
|
-
node.value = "\\" + node.value;
|
|
11115
|
-
node.escaped = true;
|
|
11116
|
-
}
|
|
11117
|
-
}
|
|
11118
|
-
};
|
|
11119
|
-
/**
|
|
11120
|
-
* Returns true if the given brace node should be enclosed in literal braces
|
|
11121
|
-
*/
|
|
11122
|
-
exports.encloseBrace = (node) => {
|
|
11123
|
-
if (node.type !== "brace") return false;
|
|
11124
|
-
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
11125
|
-
node.invalid = true;
|
|
11126
|
-
return true;
|
|
11127
|
-
}
|
|
11128
|
-
return false;
|
|
11129
|
-
};
|
|
11130
|
-
/**
|
|
11131
|
-
* Returns true if a brace node is invalid.
|
|
11132
|
-
*/
|
|
11133
|
-
exports.isInvalidBrace = (block) => {
|
|
11134
|
-
if (block.type !== "brace") return false;
|
|
11135
|
-
if (block.invalid === true || block.dollar) return true;
|
|
11136
|
-
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
11137
|
-
block.invalid = true;
|
|
11138
|
-
return true;
|
|
11139
|
-
}
|
|
11140
|
-
if (block.open !== true || block.close !== true) {
|
|
11141
|
-
block.invalid = true;
|
|
11142
|
-
return true;
|
|
11143
|
-
}
|
|
11144
|
-
return false;
|
|
11145
|
-
};
|
|
11146
|
-
/**
|
|
11147
|
-
* Returns true if a node is an open or close node
|
|
11148
|
-
*/
|
|
11149
|
-
exports.isOpenOrClose = (node) => {
|
|
11150
|
-
if (node.type === "open" || node.type === "close") return true;
|
|
11151
|
-
return node.open === true || node.close === true;
|
|
11152
|
-
};
|
|
11153
|
-
/**
|
|
11154
|
-
* Reduce an array of text nodes.
|
|
11155
|
-
*/
|
|
11156
|
-
exports.reduce = (nodes) => nodes.reduce((acc, node) => {
|
|
11157
|
-
if (node.type === "text") acc.push(node.value);
|
|
11158
|
-
if (node.type === "range") node.type = "text";
|
|
11159
|
-
return acc;
|
|
11160
|
-
}, []);
|
|
11161
|
-
/**
|
|
11162
|
-
* Flatten an array
|
|
11163
|
-
*/
|
|
11164
|
-
exports.flatten = (...args) => {
|
|
11165
|
-
const result = [];
|
|
11166
|
-
const flat = (arr) => {
|
|
11167
|
-
for (let i$3 = 0; i$3 < arr.length; i$3++) {
|
|
11168
|
-
const ele = arr[i$3];
|
|
11169
|
-
if (Array.isArray(ele)) {
|
|
11170
|
-
flat(ele);
|
|
11171
|
-
continue;
|
|
11172
|
-
}
|
|
11173
|
-
if (ele !== void 0) result.push(ele);
|
|
11174
|
-
}
|
|
11175
|
-
return result;
|
|
11176
|
-
};
|
|
11177
|
-
flat(args);
|
|
11178
|
-
return result;
|
|
11179
|
-
};
|
|
11180
|
-
} });
|
|
11181
|
-
|
|
11182
|
-
//#endregion
|
|
11183
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
11184
|
-
var require_stringify = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
11185
|
-
const utils$32 = require_utils$1();
|
|
11186
|
-
module.exports = (ast, options = {}) => {
|
|
11187
|
-
const stringify$8 = (node, parent = {}) => {
|
|
11188
|
-
const invalidBlock = options.escapeInvalid && utils$32.isInvalidBrace(parent);
|
|
11189
|
-
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
11190
|
-
let output = "";
|
|
11191
|
-
if (node.value) {
|
|
11192
|
-
if ((invalidBlock || invalidNode) && utils$32.isOpenOrClose(node)) return "\\" + node.value;
|
|
11193
|
-
return node.value;
|
|
11194
|
-
}
|
|
11195
|
-
if (node.value) return node.value;
|
|
11196
|
-
if (node.nodes) for (const child of node.nodes) output += stringify$8(child);
|
|
11197
|
-
return output;
|
|
11198
|
-
};
|
|
11199
|
-
return stringify$8(ast);
|
|
11200
|
-
};
|
|
11201
|
-
} });
|
|
11202
|
-
|
|
11203
|
-
//#endregion
|
|
11204
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
11205
|
-
var require_compile = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
11206
|
-
const fill$1 = require_fill_range();
|
|
11207
|
-
const utils$31 = require_utils$1();
|
|
11208
|
-
const compile$1 = (ast, options = {}) => {
|
|
11209
|
-
const walk$1 = (node, parent = {}) => {
|
|
11210
|
-
const invalidBlock = utils$31.isInvalidBrace(parent);
|
|
11211
|
-
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
11212
|
-
const invalid = invalidBlock === true || invalidNode === true;
|
|
11213
|
-
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
11214
|
-
let output = "";
|
|
11215
|
-
if (node.isOpen === true) return prefix + node.value;
|
|
11216
|
-
if (node.isClose === true) {
|
|
11217
|
-
console.log("node.isClose", prefix, node.value);
|
|
11218
|
-
return prefix + node.value;
|
|
11219
|
-
}
|
|
11220
|
-
if (node.type === "open") return invalid ? prefix + node.value : "(";
|
|
11221
|
-
if (node.type === "close") return invalid ? prefix + node.value : ")";
|
|
11222
|
-
if (node.type === "comma") return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
11223
|
-
if (node.value) return node.value;
|
|
11224
|
-
if (node.nodes && node.ranges > 0) {
|
|
11225
|
-
const args = utils$31.reduce(node.nodes);
|
|
11226
|
-
const range = fill$1(...args, {
|
|
11227
|
-
...options,
|
|
11228
|
-
wrap: false,
|
|
11229
|
-
toRegex: true,
|
|
11230
|
-
strictZeros: true
|
|
11231
|
-
});
|
|
11232
|
-
if (range.length !== 0) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
11233
|
-
}
|
|
11234
|
-
if (node.nodes) for (const child of node.nodes) output += walk$1(child, node);
|
|
11235
|
-
return output;
|
|
11236
|
-
};
|
|
11237
|
-
return walk$1(ast);
|
|
11238
|
-
};
|
|
11239
|
-
module.exports = compile$1;
|
|
11240
|
-
} });
|
|
11241
|
-
|
|
11242
|
-
//#endregion
|
|
11243
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
11244
|
-
var require_expand = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
11245
|
-
const fill = require_fill_range();
|
|
11246
|
-
const stringify$2 = require_stringify();
|
|
11247
|
-
const utils$30 = require_utils$1();
|
|
11248
|
-
const append = (queue$1 = "", stash = "", enclose = false) => {
|
|
11249
|
-
const result = [];
|
|
11250
|
-
queue$1 = [].concat(queue$1);
|
|
11251
|
-
stash = [].concat(stash);
|
|
11252
|
-
if (!stash.length) return queue$1;
|
|
11253
|
-
if (!queue$1.length) return enclose ? utils$30.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
11254
|
-
for (const item of queue$1) if (Array.isArray(item)) for (const value of item) result.push(append(value, stash, enclose));
|
|
11255
|
-
else for (let ele of stash) {
|
|
11256
|
-
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
11257
|
-
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
11258
|
-
}
|
|
11259
|
-
return utils$30.flatten(result);
|
|
11260
|
-
};
|
|
11261
|
-
const expand$1 = (ast, options = {}) => {
|
|
11262
|
-
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
11263
|
-
const walk$1 = (node, parent = {}) => {
|
|
11264
|
-
node.queue = [];
|
|
11265
|
-
let p$1 = parent;
|
|
11266
|
-
let q$1 = parent.queue;
|
|
11267
|
-
while (p$1.type !== "brace" && p$1.type !== "root" && p$1.parent) {
|
|
11268
|
-
p$1 = p$1.parent;
|
|
11269
|
-
q$1 = p$1.queue;
|
|
11270
|
-
}
|
|
11271
|
-
if (node.invalid || node.dollar) {
|
|
11272
|
-
q$1.push(append(q$1.pop(), stringify$2(node, options)));
|
|
11273
|
-
return;
|
|
11274
|
-
}
|
|
11275
|
-
if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
|
|
11276
|
-
q$1.push(append(q$1.pop(), ["{}"]));
|
|
11277
|
-
return;
|
|
11278
|
-
}
|
|
11279
|
-
if (node.nodes && node.ranges > 0) {
|
|
11280
|
-
const args = utils$30.reduce(node.nodes);
|
|
11281
|
-
if (utils$30.exceedsLimit(...args, options.step, rangeLimit)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
11282
|
-
let range = fill(...args, options);
|
|
11283
|
-
if (range.length === 0) range = stringify$2(node, options);
|
|
11284
|
-
q$1.push(append(q$1.pop(), range));
|
|
11285
|
-
node.nodes = [];
|
|
11286
|
-
return;
|
|
11287
|
-
}
|
|
11288
|
-
const enclose = utils$30.encloseBrace(node);
|
|
11289
|
-
let queue$1 = node.queue;
|
|
11290
|
-
let block = node;
|
|
11291
|
-
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
11292
|
-
block = block.parent;
|
|
11293
|
-
queue$1 = block.queue;
|
|
11294
|
-
}
|
|
11295
|
-
for (let i$3 = 0; i$3 < node.nodes.length; i$3++) {
|
|
11296
|
-
const child = node.nodes[i$3];
|
|
11297
|
-
if (child.type === "comma" && node.type === "brace") {
|
|
11298
|
-
if (i$3 === 1) queue$1.push("");
|
|
11299
|
-
queue$1.push("");
|
|
11300
|
-
continue;
|
|
11301
|
-
}
|
|
11302
|
-
if (child.type === "close") {
|
|
11303
|
-
q$1.push(append(q$1.pop(), queue$1, enclose));
|
|
11304
|
-
continue;
|
|
11305
|
-
}
|
|
11306
|
-
if (child.value && child.type !== "open") {
|
|
11307
|
-
queue$1.push(append(queue$1.pop(), child.value));
|
|
11308
|
-
continue;
|
|
11309
|
-
}
|
|
11310
|
-
if (child.nodes) walk$1(child, node);
|
|
11311
|
-
}
|
|
11312
|
-
return queue$1;
|
|
11313
|
-
};
|
|
11314
|
-
return utils$30.flatten(walk$1(ast));
|
|
11315
|
-
};
|
|
11316
|
-
module.exports = expand$1;
|
|
11317
|
-
} });
|
|
11318
|
-
|
|
11319
|
-
//#endregion
|
|
11320
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
11321
|
-
var require_constants$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
11322
|
-
module.exports = {
|
|
11323
|
-
MAX_LENGTH: 1e4,
|
|
11324
|
-
CHAR_0: "0",
|
|
11325
|
-
CHAR_9: "9",
|
|
11326
|
-
CHAR_UPPERCASE_A: "A",
|
|
11327
|
-
CHAR_LOWERCASE_A: "a",
|
|
11328
|
-
CHAR_UPPERCASE_Z: "Z",
|
|
11329
|
-
CHAR_LOWERCASE_Z: "z",
|
|
11330
|
-
CHAR_LEFT_PARENTHESES: "(",
|
|
11331
|
-
CHAR_RIGHT_PARENTHESES: ")",
|
|
11332
|
-
CHAR_ASTERISK: "*",
|
|
11333
|
-
CHAR_AMPERSAND: "&",
|
|
11334
|
-
CHAR_AT: "@",
|
|
11335
|
-
CHAR_BACKSLASH: "\\",
|
|
11336
|
-
CHAR_BACKTICK: "`",
|
|
11337
|
-
CHAR_CARRIAGE_RETURN: "\r",
|
|
11338
|
-
CHAR_CIRCUMFLEX_ACCENT: "^",
|
|
11339
|
-
CHAR_COLON: ":",
|
|
11340
|
-
CHAR_COMMA: ",",
|
|
11341
|
-
CHAR_DOLLAR: "$",
|
|
11342
|
-
CHAR_DOT: ".",
|
|
11343
|
-
CHAR_DOUBLE_QUOTE: "\"",
|
|
11344
|
-
CHAR_EQUAL: "=",
|
|
11345
|
-
CHAR_EXCLAMATION_MARK: "!",
|
|
11346
|
-
CHAR_FORM_FEED: "\f",
|
|
11347
|
-
CHAR_FORWARD_SLASH: "/",
|
|
11348
|
-
CHAR_HASH: "#",
|
|
11349
|
-
CHAR_HYPHEN_MINUS: "-",
|
|
11350
|
-
CHAR_LEFT_ANGLE_BRACKET: "<",
|
|
11351
|
-
CHAR_LEFT_CURLY_BRACE: "{",
|
|
11352
|
-
CHAR_LEFT_SQUARE_BRACKET: "[",
|
|
11353
|
-
CHAR_LINE_FEED: "\n",
|
|
11354
|
-
CHAR_NO_BREAK_SPACE: "\xA0",
|
|
11355
|
-
CHAR_PERCENT: "%",
|
|
11356
|
-
CHAR_PLUS: "+",
|
|
11357
|
-
CHAR_QUESTION_MARK: "?",
|
|
11358
|
-
CHAR_RIGHT_ANGLE_BRACKET: ">",
|
|
11359
|
-
CHAR_RIGHT_CURLY_BRACE: "}",
|
|
11360
|
-
CHAR_RIGHT_SQUARE_BRACKET: "]",
|
|
11361
|
-
CHAR_SEMICOLON: ";",
|
|
11362
|
-
CHAR_SINGLE_QUOTE: "'",
|
|
11363
|
-
CHAR_SPACE: " ",
|
|
11364
|
-
CHAR_TAB: " ",
|
|
11365
|
-
CHAR_UNDERSCORE: "_",
|
|
11366
|
-
CHAR_VERTICAL_LINE: "|",
|
|
11367
|
-
CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
|
|
11368
|
-
};
|
|
11369
|
-
} });
|
|
11370
|
-
|
|
11371
|
-
//#endregion
|
|
11372
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
11373
|
-
var require_parse = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
11374
|
-
const stringify$1 = require_stringify();
|
|
11375
|
-
/**
|
|
11376
|
-
* Constants
|
|
11377
|
-
*/
|
|
11378
|
-
const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = require_constants$1();
|
|
11379
|
-
/**
|
|
11380
|
-
* parse
|
|
11381
|
-
*/
|
|
11382
|
-
const parse$1 = (input, options = {}) => {
|
|
11383
|
-
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
11384
|
-
const opts = options || {};
|
|
11385
|
-
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
11386
|
-
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
11387
|
-
const ast = {
|
|
11388
|
-
type: "root",
|
|
11389
|
-
input,
|
|
11390
|
-
nodes: []
|
|
11391
|
-
};
|
|
11392
|
-
const stack = [ast];
|
|
11393
|
-
let block = ast;
|
|
11394
|
-
let prev = ast;
|
|
11395
|
-
let brackets = 0;
|
|
11396
|
-
const length = input.length;
|
|
11397
|
-
let index = 0;
|
|
11398
|
-
let depth$1 = 0;
|
|
11399
|
-
let value;
|
|
11400
|
-
/**
|
|
11401
|
-
* Helpers
|
|
11402
|
-
*/
|
|
11403
|
-
const advance = () => input[index++];
|
|
11404
|
-
const push = (node) => {
|
|
11405
|
-
if (node.type === "text" && prev.type === "dot") prev.type = "text";
|
|
11406
|
-
if (prev && prev.type === "text" && node.type === "text") {
|
|
11407
|
-
prev.value += node.value;
|
|
11408
|
-
return;
|
|
11409
|
-
}
|
|
11410
|
-
block.nodes.push(node);
|
|
11411
|
-
node.parent = block;
|
|
11412
|
-
node.prev = prev;
|
|
11413
|
-
prev = node;
|
|
11414
|
-
return node;
|
|
11415
|
-
};
|
|
11416
|
-
push({ type: "bos" });
|
|
11417
|
-
while (index < length) {
|
|
11418
|
-
block = stack[stack.length - 1];
|
|
11419
|
-
value = advance();
|
|
11420
|
-
/**
|
|
11421
|
-
* Invalid chars
|
|
11422
|
-
*/
|
|
11423
|
-
if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) continue;
|
|
11424
|
-
/**
|
|
11425
|
-
* Escaped chars
|
|
11426
|
-
*/
|
|
11427
|
-
if (value === CHAR_BACKSLASH) {
|
|
11428
|
-
push({
|
|
11429
|
-
type: "text",
|
|
11430
|
-
value: (options.keepEscaping ? value : "") + advance()
|
|
11431
|
-
});
|
|
11432
|
-
continue;
|
|
11433
|
-
}
|
|
11434
|
-
/**
|
|
11435
|
-
* Right square bracket (literal): ']'
|
|
11436
|
-
*/
|
|
11437
|
-
if (value === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
11438
|
-
push({
|
|
11439
|
-
type: "text",
|
|
11440
|
-
value: "\\" + value
|
|
11441
|
-
});
|
|
11442
|
-
continue;
|
|
11443
|
-
}
|
|
11444
|
-
/**
|
|
11445
|
-
* Left square bracket: '['
|
|
11446
|
-
*/
|
|
11447
|
-
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
11448
|
-
brackets++;
|
|
11449
|
-
let next;
|
|
11450
|
-
while (index < length && (next = advance())) {
|
|
11451
|
-
value += next;
|
|
11452
|
-
if (next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
11453
|
-
brackets++;
|
|
11454
|
-
continue;
|
|
11455
|
-
}
|
|
11456
|
-
if (next === CHAR_BACKSLASH) {
|
|
11457
|
-
value += advance();
|
|
11458
|
-
continue;
|
|
11459
|
-
}
|
|
11460
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
11461
|
-
brackets--;
|
|
11462
|
-
if (brackets === 0) break;
|
|
11463
|
-
}
|
|
11464
|
-
}
|
|
11465
|
-
push({
|
|
11466
|
-
type: "text",
|
|
11467
|
-
value
|
|
11468
|
-
});
|
|
11469
|
-
continue;
|
|
11470
|
-
}
|
|
11471
|
-
/**
|
|
11472
|
-
* Parentheses
|
|
11473
|
-
*/
|
|
11474
|
-
if (value === CHAR_LEFT_PARENTHESES) {
|
|
11475
|
-
block = push({
|
|
11476
|
-
type: "paren",
|
|
11477
|
-
nodes: []
|
|
11478
|
-
});
|
|
11479
|
-
stack.push(block);
|
|
11480
|
-
push({
|
|
11481
|
-
type: "text",
|
|
11482
|
-
value
|
|
11483
|
-
});
|
|
11484
|
-
continue;
|
|
11485
|
-
}
|
|
11486
|
-
if (value === CHAR_RIGHT_PARENTHESES) {
|
|
11487
|
-
if (block.type !== "paren") {
|
|
11488
|
-
push({
|
|
11489
|
-
type: "text",
|
|
11490
|
-
value
|
|
11491
|
-
});
|
|
11492
|
-
continue;
|
|
11493
|
-
}
|
|
11494
|
-
block = stack.pop();
|
|
11495
|
-
push({
|
|
11496
|
-
type: "text",
|
|
11497
|
-
value
|
|
11498
|
-
});
|
|
11499
|
-
block = stack[stack.length - 1];
|
|
11500
|
-
continue;
|
|
11501
|
-
}
|
|
11502
|
-
/**
|
|
11503
|
-
* Quotes: '|"|`
|
|
11504
|
-
*/
|
|
11505
|
-
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
11506
|
-
const open = value;
|
|
11507
|
-
let next;
|
|
11508
|
-
if (options.keepQuotes !== true) value = "";
|
|
11509
|
-
while (index < length && (next = advance())) {
|
|
11510
|
-
if (next === CHAR_BACKSLASH) {
|
|
11511
|
-
value += next + advance();
|
|
11512
|
-
continue;
|
|
11513
|
-
}
|
|
11514
|
-
if (next === open) {
|
|
11515
|
-
if (options.keepQuotes === true) value += next;
|
|
11516
|
-
break;
|
|
11517
|
-
}
|
|
11518
|
-
value += next;
|
|
11519
|
-
}
|
|
11520
|
-
push({
|
|
11521
|
-
type: "text",
|
|
11522
|
-
value
|
|
11523
|
-
});
|
|
11524
|
-
continue;
|
|
11525
|
-
}
|
|
11526
|
-
/**
|
|
11527
|
-
* Left curly brace: '{'
|
|
11528
|
-
*/
|
|
11529
|
-
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
11530
|
-
depth$1++;
|
|
11531
|
-
const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
|
|
11532
|
-
const brace = {
|
|
11533
|
-
type: "brace",
|
|
11534
|
-
open: true,
|
|
11535
|
-
close: false,
|
|
11536
|
-
dollar,
|
|
11537
|
-
depth: depth$1,
|
|
11538
|
-
commas: 0,
|
|
11539
|
-
ranges: 0,
|
|
11540
|
-
nodes: []
|
|
11541
|
-
};
|
|
11542
|
-
block = push(brace);
|
|
11543
|
-
stack.push(block);
|
|
11544
|
-
push({
|
|
11545
|
-
type: "open",
|
|
11546
|
-
value
|
|
11547
|
-
});
|
|
11548
|
-
continue;
|
|
11549
|
-
}
|
|
11550
|
-
/**
|
|
11551
|
-
* Right curly brace: '}'
|
|
11552
|
-
*/
|
|
11553
|
-
if (value === CHAR_RIGHT_CURLY_BRACE) {
|
|
11554
|
-
if (block.type !== "brace") {
|
|
11555
|
-
push({
|
|
11556
|
-
type: "text",
|
|
11557
|
-
value
|
|
11558
|
-
});
|
|
11559
|
-
continue;
|
|
11560
|
-
}
|
|
11561
|
-
const type = "close";
|
|
11562
|
-
block = stack.pop();
|
|
11563
|
-
block.close = true;
|
|
11564
|
-
push({
|
|
11565
|
-
type,
|
|
11566
|
-
value
|
|
11567
|
-
});
|
|
11568
|
-
depth$1--;
|
|
11569
|
-
block = stack[stack.length - 1];
|
|
11570
|
-
continue;
|
|
11571
|
-
}
|
|
11572
|
-
/**
|
|
11573
|
-
* Comma: ','
|
|
11574
|
-
*/
|
|
11575
|
-
if (value === CHAR_COMMA && depth$1 > 0) {
|
|
11576
|
-
if (block.ranges > 0) {
|
|
11577
|
-
block.ranges = 0;
|
|
11578
|
-
const open = block.nodes.shift();
|
|
11579
|
-
block.nodes = [open, {
|
|
11580
|
-
type: "text",
|
|
11581
|
-
value: stringify$1(block)
|
|
11582
|
-
}];
|
|
11583
|
-
}
|
|
11584
|
-
push({
|
|
11585
|
-
type: "comma",
|
|
11586
|
-
value
|
|
11587
|
-
});
|
|
11588
|
-
block.commas++;
|
|
11589
|
-
continue;
|
|
11590
|
-
}
|
|
11591
|
-
/**
|
|
11592
|
-
* Dot: '.'
|
|
11593
|
-
*/
|
|
11594
|
-
if (value === CHAR_DOT && depth$1 > 0 && block.commas === 0) {
|
|
11595
|
-
const siblings = block.nodes;
|
|
11596
|
-
if (depth$1 === 0 || siblings.length === 0) {
|
|
11597
|
-
push({
|
|
11598
|
-
type: "text",
|
|
11599
|
-
value
|
|
11600
|
-
});
|
|
11601
|
-
continue;
|
|
11602
|
-
}
|
|
11603
|
-
if (prev.type === "dot") {
|
|
11604
|
-
block.range = [];
|
|
11605
|
-
prev.value += value;
|
|
11606
|
-
prev.type = "range";
|
|
11607
|
-
if (block.nodes.length !== 3 && block.nodes.length !== 5) {
|
|
11608
|
-
block.invalid = true;
|
|
11609
|
-
block.ranges = 0;
|
|
11610
|
-
prev.type = "text";
|
|
11611
|
-
continue;
|
|
11612
|
-
}
|
|
11613
|
-
block.ranges++;
|
|
11614
|
-
block.args = [];
|
|
11615
|
-
continue;
|
|
11616
|
-
}
|
|
11617
|
-
if (prev.type === "range") {
|
|
11618
|
-
siblings.pop();
|
|
11619
|
-
const before = siblings[siblings.length - 1];
|
|
11620
|
-
before.value += prev.value + value;
|
|
11621
|
-
prev = before;
|
|
11622
|
-
block.ranges--;
|
|
11623
|
-
continue;
|
|
11624
|
-
}
|
|
11625
|
-
push({
|
|
11626
|
-
type: "dot",
|
|
11627
|
-
value
|
|
11628
|
-
});
|
|
11629
|
-
continue;
|
|
11630
|
-
}
|
|
11631
|
-
/**
|
|
11632
|
-
* Text
|
|
11633
|
-
*/
|
|
11634
|
-
push({
|
|
11635
|
-
type: "text",
|
|
11636
|
-
value
|
|
11637
|
-
});
|
|
11638
|
-
}
|
|
11639
|
-
do {
|
|
11640
|
-
block = stack.pop();
|
|
11641
|
-
if (block.type !== "root") {
|
|
11642
|
-
block.nodes.forEach((node) => {
|
|
11643
|
-
if (!node.nodes) {
|
|
11644
|
-
if (node.type === "open") node.isOpen = true;
|
|
11645
|
-
if (node.type === "close") node.isClose = true;
|
|
11646
|
-
if (!node.nodes) node.type = "text";
|
|
11647
|
-
node.invalid = true;
|
|
11648
|
-
}
|
|
11649
|
-
});
|
|
11650
|
-
const parent = stack[stack.length - 1];
|
|
11651
|
-
const index$1 = parent.nodes.indexOf(block);
|
|
11652
|
-
parent.nodes.splice(index$1, 1, ...block.nodes);
|
|
11653
|
-
}
|
|
11654
|
-
} while (stack.length > 0);
|
|
11655
|
-
push({ type: "eos" });
|
|
11656
|
-
return ast;
|
|
11657
|
-
};
|
|
11658
|
-
module.exports = parse$1;
|
|
11659
|
-
} });
|
|
11660
|
-
|
|
11661
|
-
//#endregion
|
|
11662
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
11663
|
-
var require_braces = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
11664
|
-
const stringify = require_stringify();
|
|
11665
|
-
const compile = require_compile();
|
|
11666
|
-
const expand = require_expand();
|
|
11667
|
-
const parse = require_parse();
|
|
11668
|
-
/**
|
|
11669
|
-
* Expand the given pattern or create a regex-compatible string.
|
|
11670
|
-
*
|
|
11671
|
-
* ```js
|
|
11672
|
-
* const braces = require('braces');
|
|
11673
|
-
* console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)']
|
|
11674
|
-
* console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c']
|
|
11675
|
-
* ```
|
|
11676
|
-
* @param {String} `str`
|
|
11677
|
-
* @param {Object} `options`
|
|
11678
|
-
* @return {String}
|
|
11679
|
-
* @api public
|
|
11680
|
-
*/
|
|
11681
|
-
const braces$1 = (input, options = {}) => {
|
|
11682
|
-
let output = [];
|
|
11683
|
-
if (Array.isArray(input)) for (const pattern$1 of input) {
|
|
11684
|
-
const result = braces$1.create(pattern$1, options);
|
|
11685
|
-
if (Array.isArray(result)) output.push(...result);
|
|
11686
|
-
else output.push(result);
|
|
11687
|
-
}
|
|
11688
|
-
else output = [].concat(braces$1.create(input, options));
|
|
11689
|
-
if (options && options.expand === true && options.nodupes === true) output = [...new Set(output)];
|
|
11690
|
-
return output;
|
|
11691
|
-
};
|
|
11692
|
-
/**
|
|
11693
|
-
* Parse the given `str` with the given `options`.
|
|
11694
|
-
*
|
|
11695
|
-
* ```js
|
|
11696
|
-
* // braces.parse(pattern, [, options]);
|
|
11697
|
-
* const ast = braces.parse('a/{b,c}/d');
|
|
11698
|
-
* console.log(ast);
|
|
11699
|
-
* ```
|
|
11700
|
-
* @param {String} pattern Brace pattern to parse
|
|
11701
|
-
* @param {Object} options
|
|
11702
|
-
* @return {Object} Returns an AST
|
|
11703
|
-
* @api public
|
|
11704
|
-
*/
|
|
11705
|
-
braces$1.parse = (input, options = {}) => parse(input, options);
|
|
11706
|
-
/**
|
|
11707
|
-
* Creates a braces string from an AST, or an AST node.
|
|
11708
|
-
*
|
|
11709
|
-
* ```js
|
|
11710
|
-
* const braces = require('braces');
|
|
11711
|
-
* let ast = braces.parse('foo/{a,b}/bar');
|
|
11712
|
-
* console.log(stringify(ast.nodes[2])); //=> '{a,b}'
|
|
11713
|
-
* ```
|
|
11714
|
-
* @param {String} `input` Brace pattern or AST.
|
|
11715
|
-
* @param {Object} `options`
|
|
11716
|
-
* @return {Array} Returns an array of expanded values.
|
|
11717
|
-
* @api public
|
|
11718
|
-
*/
|
|
11719
|
-
braces$1.stringify = (input, options = {}) => {
|
|
11720
|
-
if (typeof input === "string") return stringify(braces$1.parse(input, options), options);
|
|
11721
|
-
return stringify(input, options);
|
|
11722
|
-
};
|
|
11723
|
-
/**
|
|
11724
|
-
* Compiles a brace pattern into a regex-compatible, optimized string.
|
|
11725
|
-
* This method is called by the main [braces](#braces) function by default.
|
|
11726
|
-
*
|
|
11727
|
-
* ```js
|
|
11728
|
-
* const braces = require('braces');
|
|
11729
|
-
* console.log(braces.compile('a/{b,c}/d'));
|
|
11730
|
-
* //=> ['a/(b|c)/d']
|
|
11731
|
-
* ```
|
|
11732
|
-
* @param {String} `input` Brace pattern or AST.
|
|
11733
|
-
* @param {Object} `options`
|
|
11734
|
-
* @return {Array} Returns an array of expanded values.
|
|
11735
|
-
* @api public
|
|
11736
|
-
*/
|
|
11737
|
-
braces$1.compile = (input, options = {}) => {
|
|
11738
|
-
if (typeof input === "string") input = braces$1.parse(input, options);
|
|
11739
|
-
return compile(input, options);
|
|
11740
|
-
};
|
|
11741
|
-
/**
|
|
11742
|
-
* Expands a brace pattern into an array. This method is called by the
|
|
11743
|
-
* main [braces](#braces) function when `options.expand` is true. Before
|
|
11744
|
-
* using this method it's recommended that you read the [performance notes](#performance))
|
|
11745
|
-
* and advantages of using [.compile](#compile) instead.
|
|
11746
|
-
*
|
|
11747
|
-
* ```js
|
|
11748
|
-
* const braces = require('braces');
|
|
11749
|
-
* console.log(braces.expand('a/{b,c}/d'));
|
|
11750
|
-
* //=> ['a/b/d', 'a/c/d'];
|
|
11751
|
-
* ```
|
|
11752
|
-
* @param {String} `pattern` Brace pattern
|
|
11753
|
-
* @param {Object} `options`
|
|
11754
|
-
* @return {Array} Returns an array of expanded values.
|
|
11755
|
-
* @api public
|
|
11756
|
-
*/
|
|
11757
|
-
braces$1.expand = (input, options = {}) => {
|
|
11758
|
-
if (typeof input === "string") input = braces$1.parse(input, options);
|
|
11759
|
-
let result = expand(input, options);
|
|
11760
|
-
if (options.noempty === true) result = result.filter(Boolean);
|
|
11761
|
-
if (options.nodupes === true) result = [...new Set(result)];
|
|
11762
|
-
return result;
|
|
11763
|
-
};
|
|
11764
|
-
/**
|
|
11765
|
-
* Processes a brace pattern and returns either an expanded array
|
|
11766
|
-
* (if `options.expand` is true), a highly optimized regex-compatible string.
|
|
11767
|
-
* This method is called by the main [braces](#braces) function.
|
|
11768
|
-
*
|
|
11769
|
-
* ```js
|
|
11770
|
-
* const braces = require('braces');
|
|
11771
|
-
* console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}'))
|
|
11772
|
-
* //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)'
|
|
11773
|
-
* ```
|
|
11774
|
-
* @param {String} `pattern` Brace pattern
|
|
11775
|
-
* @param {Object} `options`
|
|
11776
|
-
* @return {Array} Returns an array of expanded values.
|
|
11777
|
-
* @api public
|
|
11778
|
-
*/
|
|
11779
|
-
braces$1.create = (input, options = {}) => {
|
|
11780
|
-
if (input === "" || input.length < 3) return [input];
|
|
11781
|
-
return options.expand !== true ? braces$1.compile(input, options) : braces$1.expand(input, options);
|
|
11782
|
-
};
|
|
11783
|
-
/**
|
|
11784
|
-
* Expose "braces"
|
|
11785
|
-
*/
|
|
11786
|
-
module.exports = braces$1;
|
|
11787
|
-
} });
|
|
11788
|
-
|
|
11789
|
-
//#endregion
|
|
11790
|
-
//#region ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
11791
|
-
var require_micromatch = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
11792
|
-
const util$7 = __require("util");
|
|
11793
|
-
const braces = require_braces();
|
|
11794
|
-
const picomatch = require_picomatch();
|
|
11795
|
-
const utils$29 = require_utils$5();
|
|
11796
|
-
const isEmptyString = (v$1) => v$1 === "" || v$1 === "./";
|
|
11797
|
-
const hasBraces = (v$1) => {
|
|
11798
|
-
const index = v$1.indexOf("{");
|
|
11799
|
-
return index > -1 && v$1.indexOf("}", index) > -1;
|
|
11800
|
-
};
|
|
11801
|
-
/**
|
|
11802
|
-
* Returns an array of strings that match one or more glob patterns.
|
|
11803
|
-
*
|
|
11804
|
-
* ```js
|
|
11805
|
-
* const mm = require('micromatch');
|
|
11806
|
-
* // mm(list, patterns[, options]);
|
|
11807
|
-
*
|
|
11808
|
-
* console.log(mm(['a.js', 'a.txt'], ['*.js']));
|
|
11809
|
-
* //=> [ 'a.js' ]
|
|
11810
|
-
* ```
|
|
11811
|
-
* @param {String|Array<string>} `list` List of strings to match.
|
|
11812
|
-
* @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
|
|
11813
|
-
* @param {Object} `options` See available [options](#options)
|
|
11814
|
-
* @return {Array} Returns an array of matches
|
|
11815
|
-
* @summary false
|
|
11816
|
-
* @api public
|
|
11817
|
-
*/
|
|
11818
|
-
const micromatch = (list, patterns, options) => {
|
|
11819
|
-
patterns = [].concat(patterns);
|
|
11820
|
-
list = [].concat(list);
|
|
11821
|
-
let omit = /* @__PURE__ */ new Set();
|
|
11822
|
-
let keep = /* @__PURE__ */ new Set();
|
|
11823
|
-
let items = /* @__PURE__ */ new Set();
|
|
11824
|
-
let negatives = 0;
|
|
11825
|
-
let onResult = (state) => {
|
|
11826
|
-
items.add(state.output);
|
|
11827
|
-
if (options && options.onResult) options.onResult(state);
|
|
11828
|
-
};
|
|
11829
|
-
for (let i$3 = 0; i$3 < patterns.length; i$3++) {
|
|
11830
|
-
let isMatch = picomatch(String(patterns[i$3]), {
|
|
11831
|
-
...options,
|
|
11832
|
-
onResult
|
|
11833
|
-
}, true);
|
|
11834
|
-
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
11835
|
-
if (negated) negatives++;
|
|
11836
|
-
for (let item of list) {
|
|
11837
|
-
let matched = isMatch(item, true);
|
|
11838
|
-
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
11839
|
-
if (!match) continue;
|
|
11840
|
-
if (negated) omit.add(matched.output);
|
|
11841
|
-
else {
|
|
11842
|
-
omit.delete(matched.output);
|
|
11843
|
-
keep.add(matched.output);
|
|
11844
|
-
}
|
|
11845
|
-
}
|
|
11846
|
-
}
|
|
11847
|
-
let result = negatives === patterns.length ? [...items] : [...keep];
|
|
11848
|
-
let matches = result.filter((item) => !omit.has(item));
|
|
11849
|
-
if (options && matches.length === 0) {
|
|
11850
|
-
if (options.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
11851
|
-
if (options.nonull === true || options.nullglob === true) return options.unescape ? patterns.map((p$1) => p$1.replace(/\\/g, "")) : patterns;
|
|
11852
|
-
}
|
|
11853
|
-
return matches;
|
|
11854
|
-
};
|
|
11855
|
-
/**
|
|
11856
|
-
* Backwards compatibility
|
|
11857
|
-
*/
|
|
11858
|
-
micromatch.match = micromatch;
|
|
11859
|
-
/**
|
|
11860
|
-
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
11861
|
-
* The returned function takes a string to match as its only argument and returns
|
|
11862
|
-
* true if the string is a match.
|
|
11863
|
-
*
|
|
11864
|
-
* ```js
|
|
11865
|
-
* const mm = require('micromatch');
|
|
11866
|
-
* // mm.matcher(pattern[, options]);
|
|
11867
|
-
*
|
|
11868
|
-
* const isMatch = mm.matcher('*.!(*a)');
|
|
11869
|
-
* console.log(isMatch('a.a')); //=> false
|
|
11870
|
-
* console.log(isMatch('a.b')); //=> true
|
|
11871
|
-
* ```
|
|
11872
|
-
* @param {String} `pattern` Glob pattern
|
|
11873
|
-
* @param {Object} `options`
|
|
11874
|
-
* @return {Function} Returns a matcher function.
|
|
11875
|
-
* @api public
|
|
11876
|
-
*/
|
|
11877
|
-
micromatch.matcher = (pattern$1, options) => picomatch(pattern$1, options);
|
|
11878
|
-
/**
|
|
11879
|
-
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
11880
|
-
*
|
|
11881
|
-
* ```js
|
|
11882
|
-
* const mm = require('micromatch');
|
|
11883
|
-
* // mm.isMatch(string, patterns[, options]);
|
|
11884
|
-
*
|
|
11885
|
-
* console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
|
11886
|
-
* console.log(mm.isMatch('a.a', 'b.*')); //=> false
|
|
11887
|
-
* ```
|
|
11888
|
-
* @param {String} `str` The string to test.
|
|
11889
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
11890
|
-
* @param {Object} `[options]` See available [options](#options).
|
|
11891
|
-
* @return {Boolean} Returns true if any patterns match `str`
|
|
11892
|
-
* @api public
|
|
11893
|
-
*/
|
|
11894
|
-
micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
11895
|
-
/**
|
|
11896
|
-
* Backwards compatibility
|
|
11897
|
-
*/
|
|
11898
|
-
micromatch.any = micromatch.isMatch;
|
|
11899
|
-
/**
|
|
11900
|
-
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
11901
|
-
*
|
|
11902
|
-
* ```js
|
|
11903
|
-
* const mm = require('micromatch');
|
|
11904
|
-
* // mm.not(list, patterns[, options]);
|
|
11905
|
-
*
|
|
11906
|
-
* console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
|
|
11907
|
-
* //=> ['b.b', 'c.c']
|
|
11908
|
-
* ```
|
|
11909
|
-
* @param {Array} `list` Array of strings to match.
|
|
11910
|
-
* @param {String|Array} `patterns` One or more glob pattern to use for matching.
|
|
11911
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
11912
|
-
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
11913
|
-
* @api public
|
|
11914
|
-
*/
|
|
11915
|
-
micromatch.not = (list, patterns, options = {}) => {
|
|
11916
|
-
patterns = [].concat(patterns).map(String);
|
|
11917
|
-
let result = /* @__PURE__ */ new Set();
|
|
11918
|
-
let items = [];
|
|
11919
|
-
let onResult = (state) => {
|
|
11920
|
-
if (options.onResult) options.onResult(state);
|
|
11921
|
-
items.push(state.output);
|
|
11922
|
-
};
|
|
11923
|
-
let matches = new Set(micromatch(list, patterns, {
|
|
11924
|
-
...options,
|
|
11925
|
-
onResult
|
|
11926
|
-
}));
|
|
11927
|
-
for (let item of items) if (!matches.has(item)) result.add(item);
|
|
11928
|
-
return [...result];
|
|
11929
|
-
};
|
|
11930
|
-
/**
|
|
11931
|
-
* Returns true if the given `string` contains the given pattern. Similar
|
|
11932
|
-
* to [.isMatch](#isMatch) but the pattern can match any part of the string.
|
|
11933
|
-
*
|
|
11934
|
-
* ```js
|
|
11935
|
-
* var mm = require('micromatch');
|
|
11936
|
-
* // mm.contains(string, pattern[, options]);
|
|
11937
|
-
*
|
|
11938
|
-
* console.log(mm.contains('aa/bb/cc', '*b'));
|
|
11939
|
-
* //=> true
|
|
11940
|
-
* console.log(mm.contains('aa/bb/cc', '*d'));
|
|
11941
|
-
* //=> false
|
|
11942
|
-
* ```
|
|
11943
|
-
* @param {String} `str` The string to match.
|
|
11944
|
-
* @param {String|Array} `patterns` Glob pattern to use for matching.
|
|
11945
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
11946
|
-
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
11947
|
-
* @api public
|
|
11948
|
-
*/
|
|
11949
|
-
micromatch.contains = (str, pattern$1, options) => {
|
|
11950
|
-
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$7.inspect(str)}"`);
|
|
11951
|
-
if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch.contains(str, p$1, options));
|
|
11952
|
-
if (typeof pattern$1 === "string") {
|
|
11953
|
-
if (isEmptyString(str) || isEmptyString(pattern$1)) return false;
|
|
11954
|
-
if (str.includes(pattern$1) || str.startsWith("./") && str.slice(2).includes(pattern$1)) return true;
|
|
11955
|
-
}
|
|
11956
|
-
return micromatch.isMatch(str, pattern$1, {
|
|
11957
|
-
...options,
|
|
11958
|
-
contains: true
|
|
11959
|
-
});
|
|
11960
|
-
};
|
|
11961
|
-
/**
|
|
11962
|
-
* Filter the keys of the given object with the given `glob` pattern
|
|
11963
|
-
* and `options`. Does not attempt to match nested keys. If you need this feature,
|
|
11964
|
-
* use [glob-object][] instead.
|
|
11965
|
-
*
|
|
11966
|
-
* ```js
|
|
11967
|
-
* const mm = require('micromatch');
|
|
11968
|
-
* // mm.matchKeys(object, patterns[, options]);
|
|
11969
|
-
*
|
|
11970
|
-
* const obj = { aa: 'a', ab: 'b', ac: 'c' };
|
|
11971
|
-
* console.log(mm.matchKeys(obj, '*b'));
|
|
11972
|
-
* //=> { ab: 'b' }
|
|
11973
|
-
* ```
|
|
11974
|
-
* @param {Object} `object` The object with keys to filter.
|
|
11975
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
11976
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
11977
|
-
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
11978
|
-
* @api public
|
|
11979
|
-
*/
|
|
11980
|
-
micromatch.matchKeys = (obj, patterns, options) => {
|
|
11981
|
-
if (!utils$29.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
11982
|
-
let keys$1 = micromatch(Object.keys(obj), patterns, options);
|
|
11983
|
-
let res = {};
|
|
11984
|
-
for (let key of keys$1) res[key] = obj[key];
|
|
11985
|
-
return res;
|
|
11986
|
-
};
|
|
11987
|
-
/**
|
|
11988
|
-
* Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
|
|
11989
|
-
*
|
|
11990
|
-
* ```js
|
|
11991
|
-
* const mm = require('micromatch');
|
|
11992
|
-
* // mm.some(list, patterns[, options]);
|
|
11993
|
-
*
|
|
11994
|
-
* console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
|
11995
|
-
* // true
|
|
11996
|
-
* console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
|
|
11997
|
-
* // false
|
|
11998
|
-
* ```
|
|
11999
|
-
* @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
|
|
12000
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
12001
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
12002
|
-
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
12003
|
-
* @api public
|
|
12004
|
-
*/
|
|
12005
|
-
micromatch.some = (list, patterns, options) => {
|
|
12006
|
-
let items = [].concat(list);
|
|
12007
|
-
for (let pattern$1 of [].concat(patterns)) {
|
|
12008
|
-
let isMatch = picomatch(String(pattern$1), options);
|
|
12009
|
-
if (items.some((item) => isMatch(item))) return true;
|
|
12010
|
-
}
|
|
12011
|
-
return false;
|
|
12012
|
-
};
|
|
12013
|
-
/**
|
|
12014
|
-
* Returns true if every string in the given `list` matches
|
|
12015
|
-
* any of the given glob `patterns`.
|
|
12016
|
-
*
|
|
12017
|
-
* ```js
|
|
12018
|
-
* const mm = require('micromatch');
|
|
12019
|
-
* // mm.every(list, patterns[, options]);
|
|
12020
|
-
*
|
|
12021
|
-
* console.log(mm.every('foo.js', ['foo.js']));
|
|
12022
|
-
* // true
|
|
12023
|
-
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
|
|
12024
|
-
* // true
|
|
12025
|
-
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
|
12026
|
-
* // false
|
|
12027
|
-
* console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
|
|
12028
|
-
* // false
|
|
12029
|
-
* ```
|
|
12030
|
-
* @param {String|Array} `list` The string or array of strings to test.
|
|
12031
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
12032
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
12033
|
-
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
12034
|
-
* @api public
|
|
12035
|
-
*/
|
|
12036
|
-
micromatch.every = (list, patterns, options) => {
|
|
12037
|
-
let items = [].concat(list);
|
|
12038
|
-
for (let pattern$1 of [].concat(patterns)) {
|
|
12039
|
-
let isMatch = picomatch(String(pattern$1), options);
|
|
12040
|
-
if (!items.every((item) => isMatch(item))) return false;
|
|
12041
|
-
}
|
|
12042
|
-
return true;
|
|
12043
|
-
};
|
|
12044
|
-
/**
|
|
12045
|
-
* Returns true if **all** of the given `patterns` match
|
|
12046
|
-
* the specified string.
|
|
12047
|
-
*
|
|
12048
|
-
* ```js
|
|
12049
|
-
* const mm = require('micromatch');
|
|
12050
|
-
* // mm.all(string, patterns[, options]);
|
|
12051
|
-
*
|
|
12052
|
-
* console.log(mm.all('foo.js', ['foo.js']));
|
|
12053
|
-
* // true
|
|
12054
|
-
*
|
|
12055
|
-
* console.log(mm.all('foo.js', ['*.js', '!foo.js']));
|
|
12056
|
-
* // false
|
|
12057
|
-
*
|
|
12058
|
-
* console.log(mm.all('foo.js', ['*.js', 'foo.js']));
|
|
12059
|
-
* // true
|
|
12060
|
-
*
|
|
12061
|
-
* console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
|
|
12062
|
-
* // true
|
|
12063
|
-
* ```
|
|
12064
|
-
* @param {String|Array} `str` The string to test.
|
|
12065
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
12066
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
12067
|
-
* @return {Boolean} Returns true if any patterns match `str`
|
|
12068
|
-
* @api public
|
|
12069
|
-
*/
|
|
12070
|
-
micromatch.all = (str, patterns, options) => {
|
|
12071
|
-
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$7.inspect(str)}"`);
|
|
12072
|
-
return [].concat(patterns).every((p$1) => picomatch(p$1, options)(str));
|
|
12073
|
-
};
|
|
12074
|
-
/**
|
|
12075
|
-
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
|
12076
|
-
*
|
|
12077
|
-
* ```js
|
|
12078
|
-
* const mm = require('micromatch');
|
|
12079
|
-
* // mm.capture(pattern, string[, options]);
|
|
12080
|
-
*
|
|
12081
|
-
* console.log(mm.capture('test/*.js', 'test/foo.js'));
|
|
12082
|
-
* //=> ['foo']
|
|
12083
|
-
* console.log(mm.capture('test/*.js', 'foo/bar.css'));
|
|
12084
|
-
* //=> null
|
|
12085
|
-
* ```
|
|
12086
|
-
* @param {String} `glob` Glob pattern to use for matching.
|
|
12087
|
-
* @param {String} `input` String to match
|
|
12088
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
12089
|
-
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
12090
|
-
* @api public
|
|
12091
|
-
*/
|
|
12092
|
-
micromatch.capture = (glob, input, options) => {
|
|
12093
|
-
let posix = utils$29.isWindows(options);
|
|
12094
|
-
let regex$1 = picomatch.makeRe(String(glob), {
|
|
12095
|
-
...options,
|
|
12096
|
-
capture: true
|
|
12097
|
-
});
|
|
12098
|
-
let match = regex$1.exec(posix ? utils$29.toPosixSlashes(input) : input);
|
|
12099
|
-
if (match) return match.slice(1).map((v$1) => v$1 === void 0 ? "" : v$1);
|
|
12100
|
-
};
|
|
12101
|
-
/**
|
|
12102
|
-
* Create a regular expression from the given glob `pattern`.
|
|
12103
|
-
*
|
|
12104
|
-
* ```js
|
|
12105
|
-
* const mm = require('micromatch');
|
|
12106
|
-
* // mm.makeRe(pattern[, options]);
|
|
12107
|
-
*
|
|
12108
|
-
* console.log(mm.makeRe('*.js'));
|
|
12109
|
-
* //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
|
|
12110
|
-
* ```
|
|
12111
|
-
* @param {String} `pattern` A glob pattern to convert to regex.
|
|
12112
|
-
* @param {Object} `options`
|
|
12113
|
-
* @return {RegExp} Returns a regex created from the given pattern.
|
|
12114
|
-
* @api public
|
|
12115
|
-
*/
|
|
12116
|
-
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
12117
|
-
/**
|
|
12118
|
-
* Scan a glob pattern to separate the pattern into segments. Used
|
|
12119
|
-
* by the [split](#split) method.
|
|
12120
|
-
*
|
|
12121
|
-
* ```js
|
|
12122
|
-
* const mm = require('micromatch');
|
|
12123
|
-
* const state = mm.scan(pattern[, options]);
|
|
12124
|
-
* ```
|
|
12125
|
-
* @param {String} `pattern`
|
|
12126
|
-
* @param {Object} `options`
|
|
12127
|
-
* @return {Object} Returns an object with
|
|
12128
|
-
* @api public
|
|
12129
|
-
*/
|
|
12130
|
-
micromatch.scan = (...args) => picomatch.scan(...args);
|
|
12131
|
-
/**
|
|
12132
|
-
* Parse a glob pattern to create the source string for a regular
|
|
12133
|
-
* expression.
|
|
12134
|
-
*
|
|
12135
|
-
* ```js
|
|
12136
|
-
* const mm = require('micromatch');
|
|
12137
|
-
* const state = mm.parse(pattern[, options]);
|
|
12138
|
-
* ```
|
|
12139
|
-
* @param {String} `glob`
|
|
12140
|
-
* @param {Object} `options`
|
|
12141
|
-
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
12142
|
-
* @api public
|
|
12143
|
-
*/
|
|
12144
|
-
micromatch.parse = (patterns, options) => {
|
|
12145
|
-
let res = [];
|
|
12146
|
-
for (let pattern$1 of [].concat(patterns || [])) for (let str of braces(String(pattern$1), options)) res.push(picomatch.parse(str, options));
|
|
12147
|
-
return res;
|
|
12148
|
-
};
|
|
12149
|
-
/**
|
|
12150
|
-
* Process the given brace `pattern`.
|
|
12151
|
-
*
|
|
12152
|
-
* ```js
|
|
12153
|
-
* const { braces } = require('micromatch');
|
|
12154
|
-
* console.log(braces('foo/{a,b,c}/bar'));
|
|
12155
|
-
* //=> [ 'foo/(a|b|c)/bar' ]
|
|
12156
|
-
*
|
|
12157
|
-
* console.log(braces('foo/{a,b,c}/bar', { expand: true }));
|
|
12158
|
-
* //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
|
|
12159
|
-
* ```
|
|
12160
|
-
* @param {String} `pattern` String with brace pattern to process.
|
|
12161
|
-
* @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
|
|
12162
|
-
* @return {Array}
|
|
12163
|
-
* @api public
|
|
12164
|
-
*/
|
|
12165
|
-
micromatch.braces = (pattern$1, options) => {
|
|
12166
|
-
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
12167
|
-
if (options && options.nobrace === true || !hasBraces(pattern$1)) return [pattern$1];
|
|
12168
|
-
return braces(pattern$1, options);
|
|
12169
|
-
};
|
|
12170
|
-
/**
|
|
12171
|
-
* Expand braces
|
|
12172
|
-
*/
|
|
12173
|
-
micromatch.braceExpand = (pattern$1, options) => {
|
|
12174
|
-
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
12175
|
-
return micromatch.braces(pattern$1, {
|
|
12176
|
-
...options,
|
|
12177
|
-
expand: true
|
|
12178
|
-
});
|
|
12179
|
-
};
|
|
12180
|
-
/**
|
|
12181
|
-
* Expose micromatch
|
|
12182
|
-
*/
|
|
12183
|
-
micromatch.hasBraces = hasBraces;
|
|
12184
|
-
module.exports = micromatch;
|
|
12185
|
-
} });
|
|
12186
|
-
|
|
12187
11140
|
//#endregion
|
|
12188
11141
|
//#region ../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/graph/createPackageGraph.js
|
|
12189
11142
|
var require_createPackageGraph = __commonJS({ "../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/graph/createPackageGraph.js"(exports) {
|
|
@@ -13909,11 +12862,11 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
13909
12862
|
if (typeof arg === "number") throw new TypeError("Argument must not be a number");
|
|
13910
12863
|
return Buffer$6(arg, encodingOrOffset, length);
|
|
13911
12864
|
};
|
|
13912
|
-
SafeBuffer$1.alloc = function(size, fill$
|
|
12865
|
+
SafeBuffer$1.alloc = function(size, fill$3, encoding) {
|
|
13913
12866
|
if (typeof size !== "number") throw new TypeError("Argument must be a number");
|
|
13914
12867
|
var buf = Buffer$6(size);
|
|
13915
|
-
if (fill$
|
|
13916
|
-
else buf.fill(fill$
|
|
12868
|
+
if (fill$3 !== void 0) if (typeof encoding === "string") buf.fill(fill$3, encoding);
|
|
12869
|
+
else buf.fill(fill$3);
|
|
13917
12870
|
else buf.fill(0);
|
|
13918
12871
|
return buf;
|
|
13919
12872
|
};
|
|
@@ -14052,9 +13005,9 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14052
13005
|
},
|
|
14053
13006
|
function(module$1, exports$1, __webpack_require__) {
|
|
14054
13007
|
try {
|
|
14055
|
-
var util$
|
|
14056
|
-
if (typeof util$
|
|
14057
|
-
module$1.exports = util$
|
|
13008
|
+
var util$9 = __webpack_require__(2);
|
|
13009
|
+
if (typeof util$9.inherits !== "function") throw "";
|
|
13010
|
+
module$1.exports = util$9.inherits;
|
|
14058
13011
|
} catch (e) {
|
|
14059
13012
|
module$1.exports = __webpack_require__(224);
|
|
14060
13013
|
}
|
|
@@ -14200,14 +13153,14 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14200
13153
|
}).filter((x) => x.length).join(sep);
|
|
14201
13154
|
}
|
|
14202
13155
|
concat(integrity, opts) {
|
|
14203
|
-
const other = typeof integrity === "string" ? integrity : stringify$
|
|
14204
|
-
return parse$
|
|
13156
|
+
const other = typeof integrity === "string" ? integrity : stringify$5(integrity, opts);
|
|
13157
|
+
return parse$5(`${this.toString(opts)} ${other}`, opts);
|
|
14205
13158
|
}
|
|
14206
13159
|
hexDigest() {
|
|
14207
|
-
return parse$
|
|
13160
|
+
return parse$5(this, { single: true }).hexDigest();
|
|
14208
13161
|
}
|
|
14209
13162
|
match(integrity, opts) {
|
|
14210
|
-
const other = parse$
|
|
13163
|
+
const other = parse$5(integrity, opts);
|
|
14211
13164
|
const algo = other.pickAlgorithm(opts);
|
|
14212
13165
|
return this[algo] && other[algo] && this[algo].find((hash) => other[algo].find((otherhash) => hash.digest === otherhash.digest)) || false;
|
|
14213
13166
|
}
|
|
@@ -14220,15 +13173,15 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14220
13173
|
});
|
|
14221
13174
|
}
|
|
14222
13175
|
}
|
|
14223
|
-
module$1.exports.parse = parse$
|
|
14224
|
-
function parse$
|
|
13176
|
+
module$1.exports.parse = parse$5;
|
|
13177
|
+
function parse$5(sri, opts) {
|
|
14225
13178
|
opts = opts || {};
|
|
14226
13179
|
if (typeof sri === "string") return _parse(sri, opts);
|
|
14227
13180
|
else if (sri.algorithm && sri.digest) {
|
|
14228
13181
|
const fullSri = new Integrity();
|
|
14229
13182
|
fullSri[sri.algorithm] = [sri];
|
|
14230
|
-
return _parse(stringify$
|
|
14231
|
-
} else return _parse(stringify$
|
|
13183
|
+
return _parse(stringify$5(fullSri, opts), opts);
|
|
13184
|
+
} else return _parse(stringify$5(sri, opts), opts);
|
|
14232
13185
|
}
|
|
14233
13186
|
function _parse(integrity, opts) {
|
|
14234
13187
|
if (opts.single) return new Hash(integrity, opts);
|
|
@@ -14242,16 +13195,16 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14242
13195
|
return acc;
|
|
14243
13196
|
}, new Integrity());
|
|
14244
13197
|
}
|
|
14245
|
-
module$1.exports.stringify = stringify$
|
|
14246
|
-
function stringify$
|
|
13198
|
+
module$1.exports.stringify = stringify$5;
|
|
13199
|
+
function stringify$5(obj, opts) {
|
|
14247
13200
|
if (obj.algorithm && obj.digest) return Hash.prototype.toString.call(obj, opts);
|
|
14248
|
-
else if (typeof obj === "string") return stringify$
|
|
13201
|
+
else if (typeof obj === "string") return stringify$5(parse$5(obj, opts), opts);
|
|
14249
13202
|
else return Integrity.prototype.toString.call(obj, opts);
|
|
14250
13203
|
}
|
|
14251
13204
|
module$1.exports.fromHex = fromHex;
|
|
14252
13205
|
function fromHex(hexDigest, algorithm, opts) {
|
|
14253
13206
|
const optString = opts && opts.options && opts.options.length ? `?${opts.options.join("?")}` : "";
|
|
14254
|
-
return parse$
|
|
13207
|
+
return parse$5(`${algorithm}-${Buffer$6.from(hexDigest, "hex").toString("base64")}${optString}`, opts);
|
|
14255
13208
|
}
|
|
14256
13209
|
module$1.exports.fromData = fromData;
|
|
14257
13210
|
function fromData(data, opts) {
|
|
@@ -14289,12 +13242,12 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14289
13242
|
module$1.exports.checkData = checkData;
|
|
14290
13243
|
function checkData(data, sri, opts) {
|
|
14291
13244
|
opts = opts || {};
|
|
14292
|
-
sri = parse$
|
|
13245
|
+
sri = parse$5(sri, opts);
|
|
14293
13246
|
if (!Object.keys(sri).length) if (opts.error) throw Object.assign(new Error("No valid integrity hashes to check against"), { code: "EINTEGRITY" });
|
|
14294
13247
|
else return false;
|
|
14295
13248
|
const algorithm = sri.pickAlgorithm(opts);
|
|
14296
13249
|
const digest = crypto.createHash(algorithm).update(data).digest("base64");
|
|
14297
|
-
const newSri = parse$
|
|
13250
|
+
const newSri = parse$5({
|
|
14298
13251
|
algorithm,
|
|
14299
13252
|
digest
|
|
14300
13253
|
});
|
|
@@ -14337,7 +13290,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14337
13290
|
module$1.exports.integrityStream = integrityStream;
|
|
14338
13291
|
function integrityStream(opts) {
|
|
14339
13292
|
opts = opts || {};
|
|
14340
|
-
const sri = opts.integrity && parse$
|
|
13293
|
+
const sri = opts.integrity && parse$5(opts.integrity, opts);
|
|
14341
13294
|
const goodSri = sri && Object.keys(sri).length;
|
|
14342
13295
|
const algorithm = goodSri && sri.pickAlgorithm(opts);
|
|
14343
13296
|
const digests = goodSri && sri[algorithm];
|
|
@@ -14350,7 +13303,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14350
13303
|
cb(null, chunk, enc);
|
|
14351
13304
|
} }).on("end", () => {
|
|
14352
13305
|
const optString = opts.options && opts.options.length ? `?${opts.options.join("?")}` : "";
|
|
14353
|
-
const newSri = parse$
|
|
13306
|
+
const newSri = parse$5(hashes.map((h, i$3) => {
|
|
14354
13307
|
return `${algorithms[i$3]}-${h.digest("base64")}${optString}`;
|
|
14355
13308
|
}).join(" "), opts);
|
|
14356
13309
|
const match = goodSri && newSri.match(sri, opts);
|
|
@@ -14436,7 +13389,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14436
13389
|
path$11 = __webpack_require__(0);
|
|
14437
13390
|
} catch (er) {}
|
|
14438
13391
|
var GLOBSTAR$1 = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
14439
|
-
var expand$
|
|
13392
|
+
var expand$2 = __webpack_require__(175);
|
|
14440
13393
|
var plTypes = {
|
|
14441
13394
|
"!": {
|
|
14442
13395
|
open: "(?:(?!(?:",
|
|
@@ -14583,11 +13536,11 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14583
13536
|
pattern$1 = typeof pattern$1 === "undefined" ? this.pattern : pattern$1;
|
|
14584
13537
|
if (typeof pattern$1 === "undefined") throw new TypeError("undefined pattern");
|
|
14585
13538
|
if (options.nobrace || !pattern$1.match(/\{.*\}/)) return [pattern$1];
|
|
14586
|
-
return expand$
|
|
13539
|
+
return expand$2(pattern$1);
|
|
14587
13540
|
}
|
|
14588
|
-
Minimatch.prototype.parse = parse$
|
|
13541
|
+
Minimatch.prototype.parse = parse$5;
|
|
14589
13542
|
var SUBPARSE = {};
|
|
14590
|
-
function parse$
|
|
13543
|
+
function parse$5(pattern$1, isSub) {
|
|
14591
13544
|
if (pattern$1.length > 1024 * 64) throw new TypeError("pattern is too long");
|
|
14592
13545
|
var options = this.options;
|
|
14593
13546
|
if (!options.noglobstar && pattern$1 === "**") return GLOBSTAR$1;
|
|
@@ -15053,7 +14006,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15053
14006
|
var EE$1 = __webpack_require__(54).EventEmitter;
|
|
15054
14007
|
var path$11 = __webpack_require__(0);
|
|
15055
14008
|
var assert$1 = __webpack_require__(22);
|
|
15056
|
-
var isAbsolute = __webpack_require__(76);
|
|
14009
|
+
var isAbsolute$1 = __webpack_require__(76);
|
|
15057
14010
|
var globSync = __webpack_require__(218);
|
|
15058
14011
|
var common$10 = __webpack_require__(115);
|
|
15059
14012
|
var alphasort = common$10.alphasort;
|
|
@@ -15061,7 +14014,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15061
14014
|
var setopts = common$10.setopts;
|
|
15062
14015
|
var ownProp = common$10.ownProp;
|
|
15063
14016
|
var inflight = __webpack_require__(223);
|
|
15064
|
-
var util$
|
|
14017
|
+
var util$9 = __webpack_require__(2);
|
|
15065
14018
|
var childrenIgnored = common$10.childrenIgnored;
|
|
15066
14019
|
var isIgnored = common$10.isIgnored;
|
|
15067
14020
|
var once = __webpack_require__(61);
|
|
@@ -15244,8 +14197,8 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15244
14197
|
var remain = pattern$1.slice(n);
|
|
15245
14198
|
var read$4;
|
|
15246
14199
|
if (prefix === null) read$4 = ".";
|
|
15247
|
-
else if (isAbsolute(prefix) || isAbsolute(pattern$1.join("/"))) {
|
|
15248
|
-
if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix;
|
|
14200
|
+
else if (isAbsolute$1(prefix) || isAbsolute$1(pattern$1.join("/"))) {
|
|
14201
|
+
if (!prefix || !isAbsolute$1(prefix)) prefix = "/" + prefix;
|
|
15249
14202
|
read$4 = prefix;
|
|
15250
14203
|
} else read$4 = prefix;
|
|
15251
14204
|
var abs = this._makeAbs(read$4);
|
|
@@ -15306,7 +14259,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15306
14259
|
this._emitQueue.push([index, e]);
|
|
15307
14260
|
return;
|
|
15308
14261
|
}
|
|
15309
|
-
var abs = isAbsolute(e) ? e : this._makeAbs(e);
|
|
14262
|
+
var abs = isAbsolute$1(e) ? e : this._makeAbs(e);
|
|
15310
14263
|
if (this.mark) e = this._mark(e);
|
|
15311
14264
|
if (this.absolute) e = abs;
|
|
15312
14265
|
if (this.matches[index][e]) return;
|
|
@@ -15432,7 +14385,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15432
14385
|
Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) {
|
|
15433
14386
|
if (!this.matches[index]) this.matches[index] = Object.create(null);
|
|
15434
14387
|
if (!exists) return cb();
|
|
15435
|
-
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
14388
|
+
if (prefix && isAbsolute$1(prefix) && !this.nomount) {
|
|
15436
14389
|
var trail = /[\/\\]$/.test(prefix);
|
|
15437
14390
|
if (prefix.charAt(0) === "/") prefix = path$11.join(this.root, prefix);
|
|
15438
14391
|
else {
|
|
@@ -15517,7 +14470,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15517
14470
|
str = (0, (_stripBom || _load_stripBom()).default)(str);
|
|
15518
14471
|
return hasMergeConflicts(str) ? parseWithConflict(str, fileLoc) : {
|
|
15519
14472
|
type: "success",
|
|
15520
|
-
object: parse$
|
|
14473
|
+
object: parse$5(str, fileLoc)
|
|
15521
14474
|
};
|
|
15522
14475
|
};
|
|
15523
14476
|
var _util;
|
|
@@ -15808,7 +14761,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15808
14761
|
/**
|
|
15809
14762
|
* Parse the lockfile.
|
|
15810
14763
|
*/
|
|
15811
|
-
function parse$
|
|
14764
|
+
function parse$5(str, fileLoc) {
|
|
15812
14765
|
const parser = new Parser(str, fileLoc);
|
|
15813
14766
|
parser.next();
|
|
15814
14767
|
return parser.parse();
|
|
@@ -15821,7 +14774,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15821
14774
|
try {
|
|
15822
14775
|
return {
|
|
15823
14776
|
type: "merge",
|
|
15824
|
-
object: Object.assign({}, parse$
|
|
14777
|
+
object: Object.assign({}, parse$5(variants[0], fileLoc), parse$5(variants[1], fileLoc))
|
|
15825
14778
|
};
|
|
15826
14779
|
} catch (err$1) {
|
|
15827
14780
|
if (err$1 instanceof SyntaxError) return {
|
|
@@ -16411,7 +15364,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16411
15364
|
}
|
|
16412
15365
|
var path$11 = __webpack_require__(0);
|
|
16413
15366
|
var minimatch = __webpack_require__(60);
|
|
16414
|
-
var isAbsolute = __webpack_require__(76);
|
|
15367
|
+
var isAbsolute$1 = __webpack_require__(76);
|
|
16415
15368
|
var Minimatch = minimatch.Minimatch;
|
|
16416
15369
|
function alphasorti(a, b) {
|
|
16417
15370
|
return a.toLowerCase().localeCompare(b.toLowerCase());
|
|
@@ -16474,7 +15427,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16474
15427
|
self$1.root = options.root || path$11.resolve(self$1.cwd, "/");
|
|
16475
15428
|
self$1.root = path$11.resolve(self$1.root);
|
|
16476
15429
|
if (process.platform === "win32") self$1.root = self$1.root.replace(/\\/g, "/");
|
|
16477
|
-
self$1.cwdAbs = isAbsolute(self$1.cwd) ? self$1.cwd : makeAbs(self$1, self$1.cwd);
|
|
15430
|
+
self$1.cwdAbs = isAbsolute$1(self$1.cwd) ? self$1.cwd : makeAbs(self$1, self$1.cwd);
|
|
16478
15431
|
if (process.platform === "win32") self$1.cwdAbs = self$1.cwdAbs.replace(/\\/g, "/");
|
|
16479
15432
|
self$1.nomount = !!options.nomount;
|
|
16480
15433
|
options.nonegate = true;
|
|
@@ -16537,7 +15490,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16537
15490
|
function makeAbs(self$1, f) {
|
|
16538
15491
|
var abs = f;
|
|
16539
15492
|
if (f.charAt(0) === "/") abs = path$11.join(self$1.root, f);
|
|
16540
|
-
else if (isAbsolute(f) || f === "") abs = f;
|
|
15493
|
+
else if (isAbsolute$1(f) || f === "") abs = f;
|
|
16541
15494
|
else if (self$1.changedCwd) abs = path$11.resolve(self$1.cwd, f);
|
|
16542
15495
|
else abs = path$11.resolve(f);
|
|
16543
15496
|
if (process.platform === "win32") abs = abs.replace(/\\/g, "/");
|
|
@@ -16847,7 +15800,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16847
15800
|
function(module$1, exports$1, __webpack_require__) {
|
|
16848
15801
|
"use strict";
|
|
16849
15802
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
16850
|
-
exports$1.default = stringify$
|
|
15803
|
+
exports$1.default = stringify$5;
|
|
16851
15804
|
var _misc;
|
|
16852
15805
|
function _load_misc() {
|
|
16853
15806
|
return _misc = __webpack_require__(12);
|
|
@@ -16904,7 +15857,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16904
15857
|
}
|
|
16905
15858
|
return indent + lines.join(`\n${indent}`);
|
|
16906
15859
|
}
|
|
16907
|
-
function stringify$
|
|
15860
|
+
function stringify$5(obj, noHeader, enableVersions) {
|
|
16908
15861
|
const val = _stringify$1(obj, {
|
|
16909
15862
|
indent: "",
|
|
16910
15863
|
topLevel: true
|
|
@@ -17190,7 +16143,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17190
16143
|
function expandTop(str) {
|
|
17191
16144
|
if (!str) return [];
|
|
17192
16145
|
if (str.substr(0, 2) === "{}") str = "\\{\\}" + str.substr(2);
|
|
17193
|
-
return expand$
|
|
16146
|
+
return expand$2(escapeBraces(str), true).map(unescapeBraces);
|
|
17194
16147
|
}
|
|
17195
16148
|
function identity$1(e) {
|
|
17196
16149
|
return e;
|
|
@@ -17207,7 +16160,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17207
16160
|
function gte(i$3, y) {
|
|
17208
16161
|
return i$3 >= y;
|
|
17209
16162
|
}
|
|
17210
|
-
function expand$
|
|
16163
|
+
function expand$2(str, isTop) {
|
|
17211
16164
|
var expansions = [];
|
|
17212
16165
|
var m = balanced("{", "}", str);
|
|
17213
16166
|
if (!m || /\$$/.test(m.pre)) return [str];
|
|
@@ -17218,7 +16171,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17218
16171
|
if (!isSequence && !isOptions) {
|
|
17219
16172
|
if (m.post.match(/,.*\}/)) {
|
|
17220
16173
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
17221
|
-
return expand$
|
|
16174
|
+
return expand$2(str);
|
|
17222
16175
|
}
|
|
17223
16176
|
return [str];
|
|
17224
16177
|
}
|
|
@@ -17227,9 +16180,9 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17227
16180
|
else {
|
|
17228
16181
|
n = parseCommaParts(m.body);
|
|
17229
16182
|
if (n.length === 1) {
|
|
17230
|
-
n = expand$
|
|
16183
|
+
n = expand$2(n[0], false).map(embrace);
|
|
17231
16184
|
if (n.length === 1) {
|
|
17232
|
-
var post = m.post.length ? expand$
|
|
16185
|
+
var post = m.post.length ? expand$2(m.post, false) : [""];
|
|
17233
16186
|
return post.map(function(p$1) {
|
|
17234
16187
|
return m.pre + n[0] + p$1;
|
|
17235
16188
|
});
|
|
@@ -17237,7 +16190,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17237
16190
|
}
|
|
17238
16191
|
}
|
|
17239
16192
|
var pre = m.pre;
|
|
17240
|
-
var post = m.post.length ? expand$
|
|
16193
|
+
var post = m.post.length ? expand$2(m.post, false) : [""];
|
|
17241
16194
|
var N;
|
|
17242
16195
|
if (isSequence) {
|
|
17243
16196
|
var x = numeric(n[0]);
|
|
@@ -17271,7 +16224,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17271
16224
|
N.push(c$1);
|
|
17272
16225
|
}
|
|
17273
16226
|
} else N = concatMap(n, function(el) {
|
|
17274
|
-
return expand$
|
|
16227
|
+
return expand$2(el, false);
|
|
17275
16228
|
});
|
|
17276
16229
|
for (var j = 0; j < N.length; j++) for (var k = 0; k < post.length; k++) {
|
|
17277
16230
|
var expansion = pre + N[j] + post[k];
|
|
@@ -18264,7 +17217,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18264
17217
|
* Module dependencies.
|
|
18265
17218
|
*/
|
|
18266
17219
|
var tty$1 = __webpack_require__(79);
|
|
18267
|
-
var util$
|
|
17220
|
+
var util$9 = __webpack_require__(2);
|
|
18268
17221
|
/**
|
|
18269
17222
|
* This is the Node.js implementation of `debug()`.
|
|
18270
17223
|
*
|
|
@@ -18399,7 +17352,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18399
17352
|
*/
|
|
18400
17353
|
exports$1.formatters.o = function(v$1) {
|
|
18401
17354
|
this.inspectOpts.colors = this.useColors;
|
|
18402
|
-
return util$
|
|
17355
|
+
return util$9.inspect(v$1, this.inspectOpts).split("\n").map(function(str) {
|
|
18403
17356
|
return str.trim();
|
|
18404
17357
|
}).join(" ");
|
|
18405
17358
|
};
|
|
@@ -18408,7 +17361,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18408
17361
|
*/
|
|
18409
17362
|
exports$1.formatters.O = function(v$1) {
|
|
18410
17363
|
this.inspectOpts.colors = this.useColors;
|
|
18411
|
-
return util$
|
|
17364
|
+
return util$9.inspect(v$1, this.inspectOpts);
|
|
18412
17365
|
};
|
|
18413
17366
|
/**
|
|
18414
17367
|
* Adds ANSI color escape codes if enabled.
|
|
@@ -18434,7 +17387,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18434
17387
|
* Invokes `util.format()` with the specified arguments and writes to stderr.
|
|
18435
17388
|
*/
|
|
18436
17389
|
function log$1() {
|
|
18437
|
-
return process.stderr.write(util$
|
|
17390
|
+
return process.stderr.write(util$9.format.apply(util$9, arguments) + "\n");
|
|
18438
17391
|
}
|
|
18439
17392
|
/**
|
|
18440
17393
|
* Save `namespaces`.
|
|
@@ -18648,10 +17601,10 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18648
17601
|
var minimatch = __webpack_require__(60);
|
|
18649
17602
|
var Minimatch = minimatch.Minimatch;
|
|
18650
17603
|
var Glob = __webpack_require__(75).Glob;
|
|
18651
|
-
var util$
|
|
17604
|
+
var util$9 = __webpack_require__(2);
|
|
18652
17605
|
var path$11 = __webpack_require__(0);
|
|
18653
17606
|
var assert$1 = __webpack_require__(22);
|
|
18654
|
-
var isAbsolute = __webpack_require__(76);
|
|
17607
|
+
var isAbsolute$1 = __webpack_require__(76);
|
|
18655
17608
|
var common$10 = __webpack_require__(115);
|
|
18656
17609
|
var alphasort = common$10.alphasort;
|
|
18657
17610
|
var alphasorti = common$10.alphasorti;
|
|
@@ -18711,8 +17664,8 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18711
17664
|
var remain = pattern$1.slice(n);
|
|
18712
17665
|
var read$4;
|
|
18713
17666
|
if (prefix === null) read$4 = ".";
|
|
18714
|
-
else if (isAbsolute(prefix) || isAbsolute(pattern$1.join("/"))) {
|
|
18715
|
-
if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix;
|
|
17667
|
+
else if (isAbsolute$1(prefix) || isAbsolute$1(pattern$1.join("/"))) {
|
|
17668
|
+
if (!prefix || !isAbsolute$1(prefix)) prefix = "/" + prefix;
|
|
18716
17669
|
read$4 = prefix;
|
|
18717
17670
|
} else read$4 = prefix;
|
|
18718
17671
|
var abs = this._makeAbs(read$4);
|
|
@@ -18863,7 +17816,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18863
17816
|
var exists = this._stat(prefix);
|
|
18864
17817
|
if (!this.matches[index]) this.matches[index] = Object.create(null);
|
|
18865
17818
|
if (!exists) return;
|
|
18866
|
-
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
17819
|
+
if (prefix && isAbsolute$1(prefix) && !this.nomount) {
|
|
18867
17820
|
var trail = /[\/\\]$/.test(prefix);
|
|
18868
17821
|
if (prefix.charAt(0) === "/") prefix = path$11.join(this.root, prefix);
|
|
18869
17822
|
else {
|
|
@@ -19017,7 +17970,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
19017
17970
|
module$1.exports = function(val, options) {
|
|
19018
17971
|
options = options || {};
|
|
19019
17972
|
var type = typeof val;
|
|
19020
|
-
if (type === "string" && val.length > 0) return parse$
|
|
17973
|
+
if (type === "string" && val.length > 0) return parse$5(val);
|
|
19021
17974
|
else if (type === "number" && isNaN(val) === false) return options.long ? fmtLong(val) : fmtShort(val);
|
|
19022
17975
|
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
19023
17976
|
};
|
|
@@ -19028,7 +17981,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
19028
17981
|
* @return {Number}
|
|
19029
17982
|
* @api private
|
|
19030
17983
|
*/
|
|
19031
|
-
function parse$
|
|
17984
|
+
function parse$5(str) {
|
|
19032
17985
|
str = String(str);
|
|
19033
17986
|
if (str.length > 100) return;
|
|
19034
17987
|
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
|
|
@@ -19592,8 +18545,8 @@ var require_getWorkspacePackagePaths = __commonJS({ "../../node_modules/.pnpm/wo
|
|
|
19592
18545
|
* the manager's config file and matching package folders (which must contain package.json) on disk.
|
|
19593
18546
|
*/
|
|
19594
18547
|
function getWorkspacePackagePaths(cwd) {
|
|
19595
|
-
const utils$
|
|
19596
|
-
return utils$
|
|
18548
|
+
const utils$46 = (0, implementations_1.getWorkspaceUtilities)(cwd);
|
|
18549
|
+
return utils$46?.getWorkspacePackagePaths(cwd) || [];
|
|
19597
18550
|
}
|
|
19598
18551
|
exports.getWorkspacePackagePaths = getWorkspacePackagePaths;
|
|
19599
18552
|
/**
|
|
@@ -19601,13 +18554,13 @@ var require_getWorkspacePackagePaths = __commonJS({ "../../node_modules/.pnpm/wo
|
|
|
19601
18554
|
* the manager's config file and matching package folders (which must contain package.json) on disk.
|
|
19602
18555
|
*/
|
|
19603
18556
|
async function getWorkspacePackagePathsAsync(cwd) {
|
|
19604
|
-
const utils$
|
|
19605
|
-
if (!utils$
|
|
19606
|
-
if (!utils$
|
|
18557
|
+
const utils$46 = (0, implementations_1.getWorkspaceUtilities)(cwd);
|
|
18558
|
+
if (!utils$46) return [];
|
|
18559
|
+
if (!utils$46.getWorkspacePackagePathsAsync) {
|
|
19607
18560
|
const managerName = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
|
|
19608
18561
|
throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
|
|
19609
18562
|
}
|
|
19610
|
-
return utils$
|
|
18563
|
+
return utils$46.getWorkspacePackagePathsAsync(cwd);
|
|
19611
18564
|
}
|
|
19612
18565
|
exports.getWorkspacePackagePathsAsync = getWorkspacePackagePathsAsync;
|
|
19613
18566
|
} });
|
|
@@ -21556,11 +20509,11 @@ var require_safe_buffer = __commonJS({ "../../node_modules/.pnpm/safe-buffer@5.1
|
|
|
21556
20509
|
if (typeof arg === "number") throw new TypeError("Argument must not be a number");
|
|
21557
20510
|
return Buffer$5(arg, encodingOrOffset, length);
|
|
21558
20511
|
};
|
|
21559
|
-
SafeBuffer.alloc = function(size, fill$
|
|
20512
|
+
SafeBuffer.alloc = function(size, fill$3, encoding) {
|
|
21560
20513
|
if (typeof size !== "number") throw new TypeError("Argument must be a number");
|
|
21561
20514
|
var buf = Buffer$5(size);
|
|
21562
|
-
if (fill$
|
|
21563
|
-
else buf.fill(fill$
|
|
20515
|
+
if (fill$3 !== void 0) if (typeof encoding === "string") buf.fill(fill$3, encoding);
|
|
20516
|
+
else buf.fill(fill$3);
|
|
21564
20517
|
else buf.fill(0);
|
|
21565
20518
|
return buf;
|
|
21566
20519
|
};
|
|
@@ -27470,7 +26423,7 @@ var require_inftrees = __commonJS({ "../../node_modules/.pnpm/pako@1.0.11/node_m
|
|
|
27470
26423
|
var used = 0;
|
|
27471
26424
|
var huff = 0;
|
|
27472
26425
|
var incr;
|
|
27473
|
-
var fill$
|
|
26426
|
+
var fill$3;
|
|
27474
26427
|
var low;
|
|
27475
26428
|
var mask;
|
|
27476
26429
|
var next;
|
|
@@ -27542,12 +26495,12 @@ var require_inftrees = __commonJS({ "../../node_modules/.pnpm/pako@1.0.11/node_m
|
|
|
27542
26495
|
here_val = 0;
|
|
27543
26496
|
}
|
|
27544
26497
|
incr = 1 << len - drop;
|
|
27545
|
-
fill$
|
|
27546
|
-
min = fill$
|
|
26498
|
+
fill$3 = 1 << curr;
|
|
26499
|
+
min = fill$3;
|
|
27547
26500
|
do {
|
|
27548
|
-
fill$
|
|
27549
|
-
table[next + (huff >> drop) + fill$
|
|
27550
|
-
} while (fill$
|
|
26501
|
+
fill$3 -= incr;
|
|
26502
|
+
table[next + (huff >> drop) + fill$3] = here_bits << 24 | here_op << 16 | here_val | 0;
|
|
26503
|
+
} while (fill$3 !== 0);
|
|
27551
26504
|
incr = 1 << len - 1;
|
|
27552
26505
|
while (huff & incr) incr >>= 1;
|
|
27553
26506
|
if (incr !== 0) {
|