vite-plugin-vue-devtools 8.0.6 → 8.0.7
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/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-CpX2D0eB.js → IconTitle.vue_vue_type_script_setup_true_lang-DWMTtST_.js} +1 -1
- package/client/assets/{SectionBlock-AVyx7eI3.js → SectionBlock-FW2e-EfO.js} +1 -1
- package/client/assets/{assets-DQ5t0Lyv.js → assets-BdWpWia9.js} +1 -1
- package/client/assets/components-BJTYv_f2.js +1 -0
- package/client/assets/{custom-inspector-tab-view--xvNl1tr.js → custom-inspector-tab-view-jNKZjEFE.js} +1 -1
- package/client/assets/{custom-tab-view-Dj55ko4k.js → custom-tab-view-Djz5OIIA.js} +1 -1
- package/client/assets/{graph-OcNja-b1.js → graph-CCabbOi3.js} +1 -1
- package/client/assets/{index-lUvZHcVj.css → index-DHoFh1q_.css} +1 -1
- package/client/assets/{index-BSzMGd0T.js → index-E3YKiktg.js} +220 -220
- package/client/assets/{overview-Db00jfdl.js → overview-Bb5V6n6L.js} +1 -1
- package/client/assets/{pages-D8jrLM3L.js → pages-D0Xl3qvp.js} +1 -1
- package/client/assets/pinia-BoMbl4iP.js +1 -0
- package/client/assets/{router-B_oZ_D-R.js → router-CZ5CeOIc.js} +1 -1
- package/client/assets/{settings-CE60W7is.js → settings-BruolvbP.js} +1 -1
- package/client/assets/{timeline-DLJJg6FW.js → timeline-Bzqsvc_i.js} +1 -1
- package/client/index.html +1 -1
- package/dist/vite.cjs +872 -869
- package/dist/vite.js +866 -863
- package/package.json +5 -5
- package/src/overlay/devtools-overlay.mjs +3 -3
- package/client/assets/components-D5nEERiq.js +0 -1
- package/client/assets/pinia-CkkNceK-.js +0 -1
package/dist/vite.js
CHANGED
|
@@ -17,16 +17,18 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
17
17
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
18
18
|
var __getProtoOf = Object.getPrototypeOf;
|
|
19
19
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
20
|
-
var
|
|
21
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
22
|
-
};
|
|
20
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
23
21
|
var __copyProps = (to, from, except, desc) => {
|
|
24
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (var keys$1 = __getOwnPropNames(from), i = 0, n = keys$1.length, key; i < n; i++) {
|
|
24
|
+
key = keys$1[i];
|
|
25
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
26
|
+
__defProp(to, key, {
|
|
27
|
+
get: ((k) => from[k]).bind(null, key),
|
|
28
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
33
|
return to;
|
|
32
34
|
};
|
|
@@ -124,7 +126,7 @@ const DIR_CLIENT = resolve(DIR_DIST, "../client");
|
|
|
124
126
|
|
|
125
127
|
//#endregion
|
|
126
128
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
127
|
-
var require_array = /* @__PURE__ */
|
|
129
|
+
var require_array = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
128
130
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
129
131
|
exports.splitWhen = exports.flatten = void 0;
|
|
130
132
|
function flatten(items) {
|
|
@@ -141,25 +143,25 @@ var require_array = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
141
143
|
return result;
|
|
142
144
|
}
|
|
143
145
|
exports.splitWhen = splitWhen;
|
|
144
|
-
})
|
|
146
|
+
}));
|
|
145
147
|
|
|
146
148
|
//#endregion
|
|
147
149
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
148
|
-
var require_errno = /* @__PURE__ */
|
|
150
|
+
var require_errno = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
149
151
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
150
152
|
exports.isEnoentCodeError = void 0;
|
|
151
153
|
function isEnoentCodeError(error) {
|
|
152
154
|
return error.code === "ENOENT";
|
|
153
155
|
}
|
|
154
156
|
exports.isEnoentCodeError = isEnoentCodeError;
|
|
155
|
-
})
|
|
157
|
+
}));
|
|
156
158
|
|
|
157
159
|
//#endregion
|
|
158
160
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
159
|
-
var require_fs$3 = /* @__PURE__ */
|
|
161
|
+
var require_fs$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
160
162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
161
163
|
exports.createDirentFromStats = void 0;
|
|
162
|
-
var DirentFromStats
|
|
164
|
+
var DirentFromStats = class {
|
|
163
165
|
constructor(name, stats) {
|
|
164
166
|
this.name = name;
|
|
165
167
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
@@ -171,19 +173,19 @@ var require_fs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
171
173
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
172
174
|
}
|
|
173
175
|
};
|
|
174
|
-
function createDirentFromStats
|
|
175
|
-
return new DirentFromStats
|
|
176
|
+
function createDirentFromStats(name, stats) {
|
|
177
|
+
return new DirentFromStats(name, stats);
|
|
176
178
|
}
|
|
177
|
-
exports.createDirentFromStats = createDirentFromStats
|
|
178
|
-
})
|
|
179
|
+
exports.createDirentFromStats = createDirentFromStats;
|
|
180
|
+
}));
|
|
179
181
|
|
|
180
182
|
//#endregion
|
|
181
183
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
182
|
-
var require_path = /* @__PURE__ */
|
|
184
|
+
var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
183
185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
184
186
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
185
187
|
const os$1 = __require("os");
|
|
186
|
-
const path$
|
|
188
|
+
const path$9 = __require("path");
|
|
187
189
|
const IS_WINDOWS_PLATFORM = os$1.platform() === "win32";
|
|
188
190
|
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
189
191
|
/**
|
|
@@ -212,7 +214,7 @@ var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
212
214
|
}
|
|
213
215
|
exports.unixify = unixify;
|
|
214
216
|
function makeAbsolute(cwd$1, filepath) {
|
|
215
|
-
return path$
|
|
217
|
+
return path$9.resolve(cwd$1, filepath);
|
|
216
218
|
}
|
|
217
219
|
exports.makeAbsolute = makeAbsolute;
|
|
218
220
|
function removeLeadingDotSegment(entry) {
|
|
@@ -224,12 +226,12 @@ var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
224
226
|
}
|
|
225
227
|
exports.removeLeadingDotSegment = removeLeadingDotSegment;
|
|
226
228
|
exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
|
|
227
|
-
function escapeWindowsPath(pattern
|
|
228
|
-
return pattern
|
|
229
|
+
function escapeWindowsPath(pattern) {
|
|
230
|
+
return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
229
231
|
}
|
|
230
232
|
exports.escapeWindowsPath = escapeWindowsPath;
|
|
231
|
-
function escapePosixPath(pattern
|
|
232
|
-
return pattern
|
|
233
|
+
function escapePosixPath(pattern) {
|
|
234
|
+
return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
233
235
|
}
|
|
234
236
|
exports.escapePosixPath = escapePosixPath;
|
|
235
237
|
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
|
|
@@ -241,18 +243,18 @@ var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
241
243
|
return escapePosixPath(filepath);
|
|
242
244
|
}
|
|
243
245
|
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
244
|
-
})
|
|
246
|
+
}));
|
|
245
247
|
|
|
246
248
|
//#endregion
|
|
247
249
|
//#region ../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
248
|
-
var require_is_extglob = /* @__PURE__ */
|
|
250
|
+
var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
249
251
|
/*!
|
|
250
252
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
251
253
|
*
|
|
252
254
|
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
253
255
|
* Licensed under the MIT License.
|
|
254
256
|
*/
|
|
255
|
-
module.exports = function isExtglob
|
|
257
|
+
module.exports = function isExtglob(str) {
|
|
256
258
|
if (typeof str !== "string" || str === "") return false;
|
|
257
259
|
var match;
|
|
258
260
|
while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
@@ -261,11 +263,11 @@ var require_is_extglob = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
261
263
|
}
|
|
262
264
|
return false;
|
|
263
265
|
};
|
|
264
|
-
})
|
|
266
|
+
}));
|
|
265
267
|
|
|
266
268
|
//#endregion
|
|
267
269
|
//#region ../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
268
|
-
var require_is_glob = /* @__PURE__ */
|
|
270
|
+
var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
269
271
|
/*!
|
|
270
272
|
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
271
273
|
*
|
|
@@ -352,18 +354,18 @@ var require_is_glob = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-
|
|
|
352
354
|
}
|
|
353
355
|
return false;
|
|
354
356
|
};
|
|
355
|
-
module.exports = function isGlob
|
|
357
|
+
module.exports = function isGlob(str, options$1) {
|
|
356
358
|
if (typeof str !== "string" || str === "") return false;
|
|
357
359
|
if (isExtglob(str)) return true;
|
|
358
360
|
var check = strictCheck;
|
|
359
361
|
if (options$1 && options$1.strict === false) check = relaxedCheck;
|
|
360
362
|
return check(str);
|
|
361
363
|
};
|
|
362
|
-
})
|
|
364
|
+
}));
|
|
363
365
|
|
|
364
366
|
//#endregion
|
|
365
367
|
//#region ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
|
|
366
|
-
var require_glob_parent = /* @__PURE__ */
|
|
368
|
+
var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
367
369
|
var isGlob = require_is_glob();
|
|
368
370
|
var pathPosixDirname = __require("path").posix.dirname;
|
|
369
371
|
var isWin32 = __require("os").platform() === "win32";
|
|
@@ -378,7 +380,7 @@ var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
378
380
|
* @param {boolean} [opts.flipBackslashes=true]
|
|
379
381
|
* @returns {string}
|
|
380
382
|
*/
|
|
381
|
-
module.exports = function globParent
|
|
383
|
+
module.exports = function globParent(str, opts) {
|
|
382
384
|
if (Object.assign({ flipBackslashes: true }, opts).flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
|
|
383
385
|
if (enclosure.test(str)) str += slash;
|
|
384
386
|
str += "a";
|
|
@@ -387,11 +389,11 @@ var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
387
389
|
while (isGlob(str) || globby.test(str));
|
|
388
390
|
return str.replace(escaped, "$1");
|
|
389
391
|
};
|
|
390
|
-
})
|
|
392
|
+
}));
|
|
391
393
|
|
|
392
394
|
//#endregion
|
|
393
395
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
394
|
-
var require_utils$3 = /* @__PURE__ */
|
|
396
|
+
var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
395
397
|
exports.isInteger = (num) => {
|
|
396
398
|
if (typeof num === "number") return Number.isInteger(num);
|
|
397
399
|
if (typeof num === "string" && num.trim() !== "") return Number.isInteger(Number(num));
|
|
@@ -483,28 +485,28 @@ var require_utils$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
483
485
|
flat(args);
|
|
484
486
|
return result;
|
|
485
487
|
};
|
|
486
|
-
})
|
|
488
|
+
}));
|
|
487
489
|
|
|
488
490
|
//#endregion
|
|
489
491
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
490
|
-
var require_stringify = /* @__PURE__ */
|
|
491
|
-
const utils
|
|
492
|
+
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
493
|
+
const utils = require_utils$3();
|
|
492
494
|
module.exports = (ast, options$1 = {}) => {
|
|
493
|
-
const stringify
|
|
494
|
-
const invalidBlock = options$1.escapeInvalid && utils
|
|
495
|
+
const stringify = (node, parent = {}) => {
|
|
496
|
+
const invalidBlock = options$1.escapeInvalid && utils.isInvalidBrace(parent);
|
|
495
497
|
const invalidNode = node.invalid === true && options$1.escapeInvalid === true;
|
|
496
498
|
let output = "";
|
|
497
499
|
if (node.value) {
|
|
498
|
-
if ((invalidBlock || invalidNode) && utils
|
|
500
|
+
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) return "\\" + node.value;
|
|
499
501
|
return node.value;
|
|
500
502
|
}
|
|
501
503
|
if (node.value) return node.value;
|
|
502
|
-
if (node.nodes) for (const child of node.nodes) output += stringify
|
|
504
|
+
if (node.nodes) for (const child of node.nodes) output += stringify(child);
|
|
503
505
|
return output;
|
|
504
506
|
};
|
|
505
|
-
return stringify
|
|
507
|
+
return stringify(ast);
|
|
506
508
|
};
|
|
507
|
-
})
|
|
509
|
+
}));
|
|
508
510
|
|
|
509
511
|
//#endregion
|
|
510
512
|
//#region ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
@@ -514,13 +516,13 @@ var require_stringify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/b
|
|
|
514
516
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
515
517
|
* Released under the MIT License.
|
|
516
518
|
*/
|
|
517
|
-
var require_is_number = /* @__PURE__ */
|
|
519
|
+
var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
518
520
|
module.exports = function(num) {
|
|
519
521
|
if (typeof num === "number") return num - num === 0;
|
|
520
522
|
if (typeof num === "string" && num.trim() !== "") return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
|
|
521
523
|
return false;
|
|
522
524
|
};
|
|
523
|
-
})
|
|
525
|
+
}));
|
|
524
526
|
|
|
525
527
|
//#endregion
|
|
526
528
|
//#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
@@ -530,12 +532,12 @@ var require_is_number = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/i
|
|
|
530
532
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
531
533
|
* Released under the MIT License.
|
|
532
534
|
*/
|
|
533
|
-
var require_to_regex_range = /* @__PURE__ */
|
|
534
|
-
const isNumber
|
|
535
|
-
const toRegexRange
|
|
536
|
-
if (isNumber
|
|
535
|
+
var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
536
|
+
const isNumber = require_is_number();
|
|
537
|
+
const toRegexRange = (min, max, options$1) => {
|
|
538
|
+
if (isNumber(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
537
539
|
if (max === void 0 || min === max) return String(min);
|
|
538
|
-
if (isNumber
|
|
540
|
+
if (isNumber(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
539
541
|
let opts = {
|
|
540
542
|
relaxZeros: true,
|
|
541
543
|
...options$1
|
|
@@ -546,7 +548,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
546
548
|
let capture = String(opts.capture);
|
|
547
549
|
let wrap = String(opts.wrap);
|
|
548
550
|
let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
|
|
549
|
-
if (toRegexRange
|
|
551
|
+
if (toRegexRange.cache.hasOwnProperty(cacheKey)) return toRegexRange.cache[cacheKey].result;
|
|
550
552
|
let a = Math.min(min, max);
|
|
551
553
|
let b = Math.max(min, max);
|
|
552
554
|
if (Math.abs(a - b) === 1) {
|
|
@@ -578,7 +580,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
578
580
|
state.result = collatePatterns(negatives, positives, opts);
|
|
579
581
|
if (opts.capture === true) state.result = `(${state.result})`;
|
|
580
582
|
else if (opts.wrap !== false && positives.length + negatives.length > 1) state.result = `(?:${state.result})`;
|
|
581
|
-
toRegexRange
|
|
583
|
+
toRegexRange.cache[cacheKey] = state;
|
|
582
584
|
return state.result;
|
|
583
585
|
};
|
|
584
586
|
function collatePatterns(neg, pos, options$1) {
|
|
@@ -589,7 +591,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
589
591
|
}
|
|
590
592
|
function splitToRanges(min, max) {
|
|
591
593
|
let nines = 1;
|
|
592
|
-
let zeros
|
|
594
|
+
let zeros = 1;
|
|
593
595
|
let stop = countNines(min, nines);
|
|
594
596
|
let stops = new Set([max]);
|
|
595
597
|
while (min <= stop && stop <= max) {
|
|
@@ -597,11 +599,11 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
597
599
|
nines += 1;
|
|
598
600
|
stop = countNines(min, nines);
|
|
599
601
|
}
|
|
600
|
-
stop = countZeros(max + 1, zeros
|
|
602
|
+
stop = countZeros(max + 1, zeros) - 1;
|
|
601
603
|
while (min < stop && stop <= max) {
|
|
602
604
|
stops.add(stop);
|
|
603
|
-
zeros
|
|
604
|
-
stop = countZeros(max + 1, zeros
|
|
605
|
+
zeros += 1;
|
|
606
|
+
stop = countZeros(max + 1, zeros) - 1;
|
|
605
607
|
}
|
|
606
608
|
stops = [...stops];
|
|
607
609
|
stops.sort(compare);
|
|
@@ -621,17 +623,17 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
621
623
|
};
|
|
622
624
|
let zipped = zip(start, stop);
|
|
623
625
|
let digits = zipped.length;
|
|
624
|
-
let pattern
|
|
626
|
+
let pattern = "";
|
|
625
627
|
let count = 0;
|
|
626
628
|
for (let i = 0; i < digits; i++) {
|
|
627
629
|
let [startDigit, stopDigit] = zipped[i];
|
|
628
|
-
if (startDigit === stopDigit) pattern
|
|
629
|
-
else if (startDigit !== "0" || stopDigit !== "9") pattern
|
|
630
|
+
if (startDigit === stopDigit) pattern += startDigit;
|
|
631
|
+
else if (startDigit !== "0" || stopDigit !== "9") pattern += toCharacterClass(startDigit, stopDigit, options$1);
|
|
630
632
|
else count++;
|
|
631
633
|
}
|
|
632
|
-
if (count) pattern
|
|
634
|
+
if (count) pattern += options$1.shorthand === true ? "\\d" : "[0-9]";
|
|
633
635
|
return {
|
|
634
|
-
pattern
|
|
636
|
+
pattern,
|
|
635
637
|
count: [count],
|
|
636
638
|
digits
|
|
637
639
|
};
|
|
@@ -644,7 +646,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
644
646
|
for (let i = 0; i < ranges.length; i++) {
|
|
645
647
|
let max$1 = ranges[i];
|
|
646
648
|
let obj = rangeToPattern(String(start), String(max$1), options$1);
|
|
647
|
-
let zeros
|
|
649
|
+
let zeros = "";
|
|
648
650
|
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
|
649
651
|
if (prev.count.length > 1) prev.count.pop();
|
|
650
652
|
prev.count.push(obj.count[0]);
|
|
@@ -652,8 +654,8 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
652
654
|
start = max$1 + 1;
|
|
653
655
|
continue;
|
|
654
656
|
}
|
|
655
|
-
if (tok.isPadded) zeros
|
|
656
|
-
obj.string = zeros
|
|
657
|
+
if (tok.isPadded) zeros = padZeros(max$1, tok, options$1);
|
|
658
|
+
obj.string = zeros + obj.pattern + toQuantifier(obj.count);
|
|
657
659
|
tokens.push(obj);
|
|
658
660
|
start = max$1 + 1;
|
|
659
661
|
prev = obj;
|
|
@@ -663,9 +665,9 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
663
665
|
function filterPatterns(arr, comparison, prefix, intersection, options$1) {
|
|
664
666
|
let result = [];
|
|
665
667
|
for (let ele of arr) {
|
|
666
|
-
let { string
|
|
667
|
-
if (!intersection && !contains(comparison, "string", string
|
|
668
|
-
if (intersection && contains(comparison, "string", string
|
|
668
|
+
let { string } = ele;
|
|
669
|
+
if (!intersection && !contains(comparison, "string", string)) result.push(prefix + string);
|
|
670
|
+
if (intersection && contains(comparison, "string", string)) result.push(prefix + string);
|
|
669
671
|
}
|
|
670
672
|
return result;
|
|
671
673
|
}
|
|
@@ -686,8 +688,8 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
686
688
|
function countNines(min, len) {
|
|
687
689
|
return Number(String(min).slice(0, -len) + "9".repeat(len));
|
|
688
690
|
}
|
|
689
|
-
function countZeros(integer, zeros
|
|
690
|
-
return integer - integer % Math.pow(10, zeros
|
|
691
|
+
function countZeros(integer, zeros) {
|
|
692
|
+
return integer - integer % Math.pow(10, zeros);
|
|
691
693
|
}
|
|
692
694
|
function toQuantifier(digits) {
|
|
693
695
|
let [start = 0, stop = ""] = digits;
|
|
@@ -714,13 +716,13 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
714
716
|
/**
|
|
715
717
|
* Cache
|
|
716
718
|
*/
|
|
717
|
-
toRegexRange
|
|
718
|
-
toRegexRange
|
|
719
|
+
toRegexRange.cache = {};
|
|
720
|
+
toRegexRange.clearCache = () => toRegexRange.cache = {};
|
|
719
721
|
/**
|
|
720
722
|
* Expose `toRegexRange`
|
|
721
723
|
*/
|
|
722
|
-
module.exports = toRegexRange
|
|
723
|
-
})
|
|
724
|
+
module.exports = toRegexRange;
|
|
725
|
+
}));
|
|
724
726
|
|
|
725
727
|
//#endregion
|
|
726
728
|
//#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
@@ -730,10 +732,10 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
730
732
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
731
733
|
* Licensed under the MIT License.
|
|
732
734
|
*/
|
|
733
|
-
var require_fill_range = /* @__PURE__ */
|
|
735
|
+
var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
734
736
|
const util$1 = __require("util");
|
|
735
737
|
const toRegexRange = require_to_regex_range();
|
|
736
|
-
const isObject
|
|
738
|
+
const isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
737
739
|
const transform = (toNumber) => {
|
|
738
740
|
return (value) => toNumber === true ? Number(value) : String(value);
|
|
739
741
|
};
|
|
@@ -749,7 +751,7 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
749
751
|
while (value[++index] === "0");
|
|
750
752
|
return index > 0;
|
|
751
753
|
};
|
|
752
|
-
const stringify
|
|
754
|
+
const stringify = (start, end, options$1) => {
|
|
753
755
|
if (typeof start === "string" || typeof end === "string") return true;
|
|
754
756
|
return options$1.stringify === true;
|
|
755
757
|
};
|
|
@@ -829,7 +831,7 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
829
831
|
step = Math.max(Math.abs(step), 1);
|
|
830
832
|
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
831
833
|
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
832
|
-
let toNumber = padded === false && stringify
|
|
834
|
+
let toNumber = padded === false && stringify(start, end, options$1) === false;
|
|
833
835
|
let format = options$1.transform || transform(toNumber);
|
|
834
836
|
if (options$1.toRegex && step === 1) return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options$1);
|
|
835
837
|
let parts = {
|
|
@@ -873,32 +875,32 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
873
875
|
});
|
|
874
876
|
return range;
|
|
875
877
|
};
|
|
876
|
-
const fill
|
|
878
|
+
const fill = (start, end, step, options$1 = {}) => {
|
|
877
879
|
if (end == null && isValidValue(start)) return [start];
|
|
878
880
|
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options$1);
|
|
879
|
-
if (typeof step === "function") return fill
|
|
880
|
-
if (isObject
|
|
881
|
+
if (typeof step === "function") return fill(start, end, 1, { transform: step });
|
|
882
|
+
if (isObject(step)) return fill(start, end, 0, step);
|
|
881
883
|
let opts = { ...options$1 };
|
|
882
884
|
if (opts.capture === true) opts.wrap = true;
|
|
883
885
|
step = step || opts.step || 1;
|
|
884
886
|
if (!isNumber(step)) {
|
|
885
|
-
if (step != null && !isObject
|
|
886
|
-
return fill
|
|
887
|
+
if (step != null && !isObject(step)) return invalidStep(step, opts);
|
|
888
|
+
return fill(start, end, 1, step);
|
|
887
889
|
}
|
|
888
890
|
if (isNumber(start) && isNumber(end)) return fillNumbers(start, end, step, opts);
|
|
889
891
|
return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
|
|
890
892
|
};
|
|
891
|
-
module.exports = fill
|
|
892
|
-
})
|
|
893
|
+
module.exports = fill;
|
|
894
|
+
}));
|
|
893
895
|
|
|
894
896
|
//#endregion
|
|
895
897
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
896
|
-
var require_compile = /* @__PURE__ */
|
|
897
|
-
const fill
|
|
898
|
-
const utils
|
|
899
|
-
const compile
|
|
900
|
-
const walk
|
|
901
|
-
const invalidBlock = utils
|
|
898
|
+
var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
899
|
+
const fill = require_fill_range();
|
|
900
|
+
const utils = require_utils$3();
|
|
901
|
+
const compile = (ast, options$1 = {}) => {
|
|
902
|
+
const walk = (node, parent = {}) => {
|
|
903
|
+
const invalidBlock = utils.isInvalidBrace(parent);
|
|
902
904
|
const invalidNode = node.invalid === true && options$1.escapeInvalid === true;
|
|
903
905
|
const invalid = invalidBlock === true || invalidNode === true;
|
|
904
906
|
const prefix = options$1.escapeInvalid === true ? "\\" : "";
|
|
@@ -913,8 +915,8 @@ var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
913
915
|
if (node.type === "comma") return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
914
916
|
if (node.value) return node.value;
|
|
915
917
|
if (node.nodes && node.ranges > 0) {
|
|
916
|
-
const args = utils
|
|
917
|
-
const range = fill
|
|
918
|
+
const args = utils.reduce(node.nodes);
|
|
919
|
+
const range = fill(...args, {
|
|
918
920
|
...options$1,
|
|
919
921
|
wrap: false,
|
|
920
922
|
toRegex: true,
|
|
@@ -922,36 +924,36 @@ var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
922
924
|
});
|
|
923
925
|
if (range.length !== 0) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
924
926
|
}
|
|
925
|
-
if (node.nodes) for (const child of node.nodes) output += walk
|
|
927
|
+
if (node.nodes) for (const child of node.nodes) output += walk(child, node);
|
|
926
928
|
return output;
|
|
927
929
|
};
|
|
928
|
-
return walk
|
|
930
|
+
return walk(ast);
|
|
929
931
|
};
|
|
930
|
-
module.exports = compile
|
|
931
|
-
})
|
|
932
|
+
module.exports = compile;
|
|
933
|
+
}));
|
|
932
934
|
|
|
933
935
|
//#endregion
|
|
934
936
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
935
|
-
var require_expand = /* @__PURE__ */
|
|
937
|
+
var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
936
938
|
const fill = require_fill_range();
|
|
937
|
-
const stringify
|
|
938
|
-
const utils
|
|
939
|
+
const stringify = require_stringify();
|
|
940
|
+
const utils = require_utils$3();
|
|
939
941
|
const append = (queue = "", stash = "", enclose = false) => {
|
|
940
942
|
const result = [];
|
|
941
943
|
queue = [].concat(queue);
|
|
942
944
|
stash = [].concat(stash);
|
|
943
945
|
if (!stash.length) return queue;
|
|
944
|
-
if (!queue.length) return enclose ? utils
|
|
946
|
+
if (!queue.length) return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
945
947
|
for (const item of queue) if (Array.isArray(item)) for (const value of item) result.push(append(value, stash, enclose));
|
|
946
948
|
else for (let ele of stash) {
|
|
947
949
|
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
948
950
|
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
949
951
|
}
|
|
950
|
-
return utils
|
|
952
|
+
return utils.flatten(result);
|
|
951
953
|
};
|
|
952
|
-
const expand
|
|
954
|
+
const expand = (ast, options$1 = {}) => {
|
|
953
955
|
const rangeLimit = options$1.rangeLimit === void 0 ? 1e3 : options$1.rangeLimit;
|
|
954
|
-
const walk
|
|
956
|
+
const walk = (node, parent = {}) => {
|
|
955
957
|
node.queue = [];
|
|
956
958
|
let p = parent;
|
|
957
959
|
let q = parent.queue;
|
|
@@ -960,7 +962,7 @@ var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
960
962
|
q = p.queue;
|
|
961
963
|
}
|
|
962
964
|
if (node.invalid || node.dollar) {
|
|
963
|
-
q.push(append(q.pop(), stringify
|
|
965
|
+
q.push(append(q.pop(), stringify(node, options$1)));
|
|
964
966
|
return;
|
|
965
967
|
}
|
|
966
968
|
if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
|
|
@@ -968,15 +970,15 @@ var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
968
970
|
return;
|
|
969
971
|
}
|
|
970
972
|
if (node.nodes && node.ranges > 0) {
|
|
971
|
-
const args = utils
|
|
972
|
-
if (utils
|
|
973
|
+
const args = utils.reduce(node.nodes);
|
|
974
|
+
if (utils.exceedsLimit(...args, options$1.step, rangeLimit)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
973
975
|
let range = fill(...args, options$1);
|
|
974
|
-
if (range.length === 0) range = stringify
|
|
976
|
+
if (range.length === 0) range = stringify(node, options$1);
|
|
975
977
|
q.push(append(q.pop(), range));
|
|
976
978
|
node.nodes = [];
|
|
977
979
|
return;
|
|
978
980
|
}
|
|
979
|
-
const enclose = utils
|
|
981
|
+
const enclose = utils.encloseBrace(node);
|
|
980
982
|
let queue = node.queue;
|
|
981
983
|
let block = node;
|
|
982
984
|
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
@@ -998,18 +1000,18 @@ var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
998
1000
|
queue.push(append(queue.pop(), child.value));
|
|
999
1001
|
continue;
|
|
1000
1002
|
}
|
|
1001
|
-
if (child.nodes) walk
|
|
1003
|
+
if (child.nodes) walk(child, node);
|
|
1002
1004
|
}
|
|
1003
1005
|
return queue;
|
|
1004
1006
|
};
|
|
1005
|
-
return utils
|
|
1007
|
+
return utils.flatten(walk(ast));
|
|
1006
1008
|
};
|
|
1007
|
-
module.exports = expand
|
|
1008
|
-
})
|
|
1009
|
+
module.exports = expand;
|
|
1010
|
+
}));
|
|
1009
1011
|
|
|
1010
1012
|
//#endregion
|
|
1011
1013
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
1012
|
-
var require_constants$2 = /* @__PURE__ */
|
|
1014
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1013
1015
|
module.exports = {
|
|
1014
1016
|
MAX_LENGTH: 1e4,
|
|
1015
1017
|
CHAR_0: "0",
|
|
@@ -1057,23 +1059,23 @@ var require_constants$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1057
1059
|
CHAR_VERTICAL_LINE: "|",
|
|
1058
1060
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
|
|
1059
1061
|
};
|
|
1060
|
-
})
|
|
1062
|
+
}));
|
|
1061
1063
|
|
|
1062
1064
|
//#endregion
|
|
1063
1065
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
1064
|
-
var require_parse$1 = /* @__PURE__ */
|
|
1065
|
-
const stringify
|
|
1066
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1067
|
+
const stringify = require_stringify();
|
|
1066
1068
|
/**
|
|
1067
1069
|
* Constants
|
|
1068
1070
|
*/
|
|
1069
|
-
const { MAX_LENGTH
|
|
1071
|
+
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$2();
|
|
1070
1072
|
/**
|
|
1071
1073
|
* parse
|
|
1072
1074
|
*/
|
|
1073
|
-
const parse
|
|
1075
|
+
const parse = (input, options$1 = {}) => {
|
|
1074
1076
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
1075
1077
|
const opts = options$1 || {};
|
|
1076
|
-
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH
|
|
1078
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
1077
1079
|
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
1078
1080
|
const ast = {
|
|
1079
1081
|
type: "root",
|
|
@@ -1086,7 +1088,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1086
1088
|
let brackets = 0;
|
|
1087
1089
|
const length = input.length;
|
|
1088
1090
|
let index = 0;
|
|
1089
|
-
let depth
|
|
1091
|
+
let depth = 0;
|
|
1090
1092
|
let value;
|
|
1091
1093
|
/**
|
|
1092
1094
|
* Helpers
|
|
@@ -1125,7 +1127,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1125
1127
|
/**
|
|
1126
1128
|
* Right square bracket (literal): ']'
|
|
1127
1129
|
*/
|
|
1128
|
-
if (value === CHAR_RIGHT_SQUARE_BRACKET
|
|
1130
|
+
if (value === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
1129
1131
|
push({
|
|
1130
1132
|
type: "text",
|
|
1131
1133
|
value: "\\" + value
|
|
@@ -1135,12 +1137,12 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1135
1137
|
/**
|
|
1136
1138
|
* Left square bracket: '['
|
|
1137
1139
|
*/
|
|
1138
|
-
if (value === CHAR_LEFT_SQUARE_BRACKET
|
|
1140
|
+
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
1139
1141
|
brackets++;
|
|
1140
1142
|
let next;
|
|
1141
1143
|
while (index < length && (next = advance())) {
|
|
1142
1144
|
value += next;
|
|
1143
|
-
if (next === CHAR_LEFT_SQUARE_BRACKET
|
|
1145
|
+
if (next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
1144
1146
|
brackets++;
|
|
1145
1147
|
continue;
|
|
1146
1148
|
}
|
|
@@ -1148,7 +1150,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1148
1150
|
value += advance();
|
|
1149
1151
|
continue;
|
|
1150
1152
|
}
|
|
1151
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET
|
|
1153
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
1152
1154
|
brackets--;
|
|
1153
1155
|
if (brackets === 0) break;
|
|
1154
1156
|
}
|
|
@@ -1162,7 +1164,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1162
1164
|
/**
|
|
1163
1165
|
* Parentheses
|
|
1164
1166
|
*/
|
|
1165
|
-
if (value === CHAR_LEFT_PARENTHESES
|
|
1167
|
+
if (value === CHAR_LEFT_PARENTHESES) {
|
|
1166
1168
|
block = push({
|
|
1167
1169
|
type: "paren",
|
|
1168
1170
|
nodes: []
|
|
@@ -1174,7 +1176,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1174
1176
|
});
|
|
1175
1177
|
continue;
|
|
1176
1178
|
}
|
|
1177
|
-
if (value === CHAR_RIGHT_PARENTHESES
|
|
1179
|
+
if (value === CHAR_RIGHT_PARENTHESES) {
|
|
1178
1180
|
if (block.type !== "paren") {
|
|
1179
1181
|
push({
|
|
1180
1182
|
type: "text",
|
|
@@ -1217,14 +1219,14 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1217
1219
|
/**
|
|
1218
1220
|
* Left curly brace: '{'
|
|
1219
1221
|
*/
|
|
1220
|
-
if (value === CHAR_LEFT_CURLY_BRACE
|
|
1221
|
-
depth
|
|
1222
|
+
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
1223
|
+
depth++;
|
|
1222
1224
|
block = push({
|
|
1223
1225
|
type: "brace",
|
|
1224
1226
|
open: true,
|
|
1225
1227
|
close: false,
|
|
1226
1228
|
dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === true,
|
|
1227
|
-
depth
|
|
1229
|
+
depth,
|
|
1228
1230
|
commas: 0,
|
|
1229
1231
|
ranges: 0,
|
|
1230
1232
|
nodes: []
|
|
@@ -1239,7 +1241,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1239
1241
|
/**
|
|
1240
1242
|
* Right curly brace: '}'
|
|
1241
1243
|
*/
|
|
1242
|
-
if (value === CHAR_RIGHT_CURLY_BRACE
|
|
1244
|
+
if (value === CHAR_RIGHT_CURLY_BRACE) {
|
|
1243
1245
|
if (block.type !== "brace") {
|
|
1244
1246
|
push({
|
|
1245
1247
|
type: "text",
|
|
@@ -1254,19 +1256,20 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1254
1256
|
type,
|
|
1255
1257
|
value
|
|
1256
1258
|
});
|
|
1257
|
-
depth
|
|
1259
|
+
depth--;
|
|
1258
1260
|
block = stack[stack.length - 1];
|
|
1259
1261
|
continue;
|
|
1260
1262
|
}
|
|
1261
1263
|
/**
|
|
1262
1264
|
* Comma: ','
|
|
1263
1265
|
*/
|
|
1264
|
-
if (value === CHAR_COMMA
|
|
1266
|
+
if (value === CHAR_COMMA && depth > 0) {
|
|
1265
1267
|
if (block.ranges > 0) {
|
|
1266
1268
|
block.ranges = 0;
|
|
1267
|
-
|
|
1269
|
+
const open = block.nodes.shift();
|
|
1270
|
+
block.nodes = [open, {
|
|
1268
1271
|
type: "text",
|
|
1269
|
-
value: stringify
|
|
1272
|
+
value: stringify(block)
|
|
1270
1273
|
}];
|
|
1271
1274
|
}
|
|
1272
1275
|
push({
|
|
@@ -1279,9 +1282,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1279
1282
|
/**
|
|
1280
1283
|
* Dot: '.'
|
|
1281
1284
|
*/
|
|
1282
|
-
if (value === CHAR_DOT
|
|
1285
|
+
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
1283
1286
|
const siblings = block.nodes;
|
|
1284
|
-
if (depth
|
|
1287
|
+
if (depth === 0 || siblings.length === 0) {
|
|
1285
1288
|
push({
|
|
1286
1289
|
type: "text",
|
|
1287
1290
|
value
|
|
@@ -1343,16 +1346,16 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1343
1346
|
push({ type: "eos" });
|
|
1344
1347
|
return ast;
|
|
1345
1348
|
};
|
|
1346
|
-
module.exports = parse
|
|
1347
|
-
})
|
|
1349
|
+
module.exports = parse;
|
|
1350
|
+
}));
|
|
1348
1351
|
|
|
1349
1352
|
//#endregion
|
|
1350
1353
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
1351
|
-
var require_braces = /* @__PURE__ */
|
|
1354
|
+
var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1352
1355
|
const stringify = require_stringify();
|
|
1353
1356
|
const compile = require_compile();
|
|
1354
1357
|
const expand = require_expand();
|
|
1355
|
-
const parse
|
|
1358
|
+
const parse = require_parse$1();
|
|
1356
1359
|
/**
|
|
1357
1360
|
* Expand the given pattern or create a regex-compatible string.
|
|
1358
1361
|
*
|
|
@@ -1366,14 +1369,14 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1366
1369
|
* @return {String}
|
|
1367
1370
|
* @api public
|
|
1368
1371
|
*/
|
|
1369
|
-
const braces
|
|
1372
|
+
const braces = (input, options$1 = {}) => {
|
|
1370
1373
|
let output = [];
|
|
1371
|
-
if (Array.isArray(input)) for (const pattern
|
|
1372
|
-
const result = braces
|
|
1374
|
+
if (Array.isArray(input)) for (const pattern of input) {
|
|
1375
|
+
const result = braces.create(pattern, options$1);
|
|
1373
1376
|
if (Array.isArray(result)) output.push(...result);
|
|
1374
1377
|
else output.push(result);
|
|
1375
1378
|
}
|
|
1376
|
-
else output = [].concat(braces
|
|
1379
|
+
else output = [].concat(braces.create(input, options$1));
|
|
1377
1380
|
if (options$1 && options$1.expand === true && options$1.nodupes === true) output = [...new Set(output)];
|
|
1378
1381
|
return output;
|
|
1379
1382
|
};
|
|
@@ -1390,7 +1393,7 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1390
1393
|
* @return {Object} Returns an AST
|
|
1391
1394
|
* @api public
|
|
1392
1395
|
*/
|
|
1393
|
-
braces
|
|
1396
|
+
braces.parse = (input, options$1 = {}) => parse(input, options$1);
|
|
1394
1397
|
/**
|
|
1395
1398
|
* Creates a braces string from an AST, or an AST node.
|
|
1396
1399
|
*
|
|
@@ -1404,8 +1407,8 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1404
1407
|
* @return {Array} Returns an array of expanded values.
|
|
1405
1408
|
* @api public
|
|
1406
1409
|
*/
|
|
1407
|
-
braces
|
|
1408
|
-
if (typeof input === "string") return stringify(braces
|
|
1410
|
+
braces.stringify = (input, options$1 = {}) => {
|
|
1411
|
+
if (typeof input === "string") return stringify(braces.parse(input, options$1), options$1);
|
|
1409
1412
|
return stringify(input, options$1);
|
|
1410
1413
|
};
|
|
1411
1414
|
/**
|
|
@@ -1422,8 +1425,8 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1422
1425
|
* @return {Array} Returns an array of expanded values.
|
|
1423
1426
|
* @api public
|
|
1424
1427
|
*/
|
|
1425
|
-
braces
|
|
1426
|
-
if (typeof input === "string") input = braces
|
|
1428
|
+
braces.compile = (input, options$1 = {}) => {
|
|
1429
|
+
if (typeof input === "string") input = braces.parse(input, options$1);
|
|
1427
1430
|
return compile(input, options$1);
|
|
1428
1431
|
};
|
|
1429
1432
|
/**
|
|
@@ -1442,8 +1445,8 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1442
1445
|
* @return {Array} Returns an array of expanded values.
|
|
1443
1446
|
* @api public
|
|
1444
1447
|
*/
|
|
1445
|
-
braces
|
|
1446
|
-
if (typeof input === "string") input = braces
|
|
1448
|
+
braces.expand = (input, options$1 = {}) => {
|
|
1449
|
+
if (typeof input === "string") input = braces.parse(input, options$1);
|
|
1447
1450
|
let result = expand(input, options$1);
|
|
1448
1451
|
if (options$1.noempty === true) result = result.filter(Boolean);
|
|
1449
1452
|
if (options$1.nodupes === true) result = [...new Set(result)];
|
|
@@ -1464,20 +1467,20 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1464
1467
|
* @return {Array} Returns an array of expanded values.
|
|
1465
1468
|
* @api public
|
|
1466
1469
|
*/
|
|
1467
|
-
braces
|
|
1470
|
+
braces.create = (input, options$1 = {}) => {
|
|
1468
1471
|
if (input === "" || input.length < 3) return [input];
|
|
1469
|
-
return options$1.expand !== true ? braces
|
|
1472
|
+
return options$1.expand !== true ? braces.compile(input, options$1) : braces.expand(input, options$1);
|
|
1470
1473
|
};
|
|
1471
1474
|
/**
|
|
1472
1475
|
* Expose "braces"
|
|
1473
1476
|
*/
|
|
1474
|
-
module.exports = braces
|
|
1475
|
-
})
|
|
1477
|
+
module.exports = braces;
|
|
1478
|
+
}));
|
|
1476
1479
|
|
|
1477
1480
|
//#endregion
|
|
1478
1481
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
1479
|
-
var require_constants$1 = /* @__PURE__ */
|
|
1480
|
-
const path$
|
|
1482
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1483
|
+
const path$8 = __require("path");
|
|
1481
1484
|
const WIN_SLASH = "\\\\/";
|
|
1482
1485
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
1483
1486
|
/**
|
|
@@ -1529,7 +1532,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1529
1532
|
/**
|
|
1530
1533
|
* POSIX Bracket Regex
|
|
1531
1534
|
*/
|
|
1532
|
-
const POSIX_REGEX_SOURCE
|
|
1535
|
+
const POSIX_REGEX_SOURCE = {
|
|
1533
1536
|
alnum: "a-zA-Z0-9",
|
|
1534
1537
|
alpha: "a-zA-Z",
|
|
1535
1538
|
ascii: "\\x00-\\x7F",
|
|
@@ -1547,7 +1550,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1547
1550
|
};
|
|
1548
1551
|
module.exports = {
|
|
1549
1552
|
MAX_LENGTH: 1024 * 64,
|
|
1550
|
-
POSIX_REGEX_SOURCE
|
|
1553
|
+
POSIX_REGEX_SOURCE,
|
|
1551
1554
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
1552
1555
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
1553
1556
|
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
@@ -1602,13 +1605,13 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1602
1605
|
CHAR_UNDERSCORE: 95,
|
|
1603
1606
|
CHAR_VERTICAL_LINE: 124,
|
|
1604
1607
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
1605
|
-
SEP: path$
|
|
1606
|
-
extglobChars(chars
|
|
1608
|
+
SEP: path$8.sep,
|
|
1609
|
+
extglobChars(chars) {
|
|
1607
1610
|
return {
|
|
1608
1611
|
"!": {
|
|
1609
1612
|
type: "negate",
|
|
1610
1613
|
open: "(?:(?!(?:",
|
|
1611
|
-
close: `))${chars
|
|
1614
|
+
close: `))${chars.STAR})`
|
|
1612
1615
|
},
|
|
1613
1616
|
"?": {
|
|
1614
1617
|
type: "qmark",
|
|
@@ -1632,16 +1635,16 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1632
1635
|
}
|
|
1633
1636
|
};
|
|
1634
1637
|
},
|
|
1635
|
-
globChars(win32
|
|
1636
|
-
return win32
|
|
1638
|
+
globChars(win32) {
|
|
1639
|
+
return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
|
|
1637
1640
|
}
|
|
1638
1641
|
};
|
|
1639
|
-
})
|
|
1642
|
+
}));
|
|
1640
1643
|
|
|
1641
1644
|
//#endregion
|
|
1642
1645
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
1643
|
-
var require_utils$2 = /* @__PURE__ */
|
|
1644
|
-
const path$
|
|
1646
|
+
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1647
|
+
const path$7 = __require("path");
|
|
1645
1648
|
const win32 = process.platform === "win32";
|
|
1646
1649
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
|
|
1647
1650
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -1661,7 +1664,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pic
|
|
|
1661
1664
|
};
|
|
1662
1665
|
exports.isWindows = (options$1) => {
|
|
1663
1666
|
if (options$1 && typeof options$1.windows === "boolean") return options$1.windows;
|
|
1664
|
-
return win32 === true || path$
|
|
1667
|
+
return win32 === true || path$7.sep === "\\";
|
|
1665
1668
|
};
|
|
1666
1669
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
1667
1670
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -1682,12 +1685,12 @@ var require_utils$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pic
|
|
|
1682
1685
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
1683
1686
|
return output;
|
|
1684
1687
|
};
|
|
1685
|
-
})
|
|
1688
|
+
}));
|
|
1686
1689
|
|
|
1687
1690
|
//#endregion
|
|
1688
1691
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
|
|
1689
|
-
var require_scan = /* @__PURE__ */
|
|
1690
|
-
const utils
|
|
1692
|
+
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1693
|
+
const utils = require_utils$2();
|
|
1691
1694
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants$1();
|
|
1692
1695
|
const isPathSeparator = (code) => {
|
|
1693
1696
|
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
@@ -1711,7 +1714,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1711
1714
|
* @return {Object} Returns an object with tokens and regex source string.
|
|
1712
1715
|
* @api public
|
|
1713
1716
|
*/
|
|
1714
|
-
const scan
|
|
1717
|
+
const scan = (input, options$1) => {
|
|
1715
1718
|
const opts = options$1 || {};
|
|
1716
1719
|
const length = input.length - 1;
|
|
1717
1720
|
const scanToEnd = opts.parts === true || opts.scanToEnd === true;
|
|
@@ -1724,15 +1727,15 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1724
1727
|
let lastIndex = 0;
|
|
1725
1728
|
let isBrace = false;
|
|
1726
1729
|
let isBracket = false;
|
|
1727
|
-
let isGlob
|
|
1728
|
-
let isExtglob
|
|
1730
|
+
let isGlob = false;
|
|
1731
|
+
let isExtglob = false;
|
|
1729
1732
|
let isGlobstar = false;
|
|
1730
1733
|
let braceEscaped = false;
|
|
1731
1734
|
let backslashes = false;
|
|
1732
1735
|
let negated = false;
|
|
1733
1736
|
let negatedExtglob = false;
|
|
1734
1737
|
let finished = false;
|
|
1735
|
-
let braces
|
|
1738
|
+
let braces = 0;
|
|
1736
1739
|
let prev;
|
|
1737
1740
|
let code;
|
|
1738
1741
|
let token = {
|
|
@@ -1756,7 +1759,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1756
1759
|
continue;
|
|
1757
1760
|
}
|
|
1758
1761
|
if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
|
|
1759
|
-
braces
|
|
1762
|
+
braces++;
|
|
1760
1763
|
while (eos() !== true && (code = advance())) {
|
|
1761
1764
|
if (code === CHAR_BACKWARD_SLASH) {
|
|
1762
1765
|
backslashes = token.backslashes = true;
|
|
@@ -1764,26 +1767,26 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1764
1767
|
continue;
|
|
1765
1768
|
}
|
|
1766
1769
|
if (code === CHAR_LEFT_CURLY_BRACE) {
|
|
1767
|
-
braces
|
|
1770
|
+
braces++;
|
|
1768
1771
|
continue;
|
|
1769
1772
|
}
|
|
1770
1773
|
if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
|
|
1771
1774
|
isBrace = token.isBrace = true;
|
|
1772
|
-
isGlob
|
|
1775
|
+
isGlob = token.isGlob = true;
|
|
1773
1776
|
finished = true;
|
|
1774
1777
|
if (scanToEnd === true) continue;
|
|
1775
1778
|
break;
|
|
1776
1779
|
}
|
|
1777
1780
|
if (braceEscaped !== true && code === CHAR_COMMA) {
|
|
1778
1781
|
isBrace = token.isBrace = true;
|
|
1779
|
-
isGlob
|
|
1782
|
+
isGlob = token.isGlob = true;
|
|
1780
1783
|
finished = true;
|
|
1781
1784
|
if (scanToEnd === true) continue;
|
|
1782
1785
|
break;
|
|
1783
1786
|
}
|
|
1784
1787
|
if (code === CHAR_RIGHT_CURLY_BRACE) {
|
|
1785
|
-
braces
|
|
1786
|
-
if (braces
|
|
1788
|
+
braces--;
|
|
1789
|
+
if (braces === 0) {
|
|
1787
1790
|
braceEscaped = false;
|
|
1788
1791
|
isBrace = token.isBrace = true;
|
|
1789
1792
|
finished = true;
|
|
@@ -1812,8 +1815,8 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1812
1815
|
}
|
|
1813
1816
|
if (opts.noext !== true) {
|
|
1814
1817
|
if ((code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK) === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
1815
|
-
isGlob
|
|
1816
|
-
isExtglob
|
|
1818
|
+
isGlob = token.isGlob = true;
|
|
1819
|
+
isExtglob = token.isExtglob = true;
|
|
1817
1820
|
finished = true;
|
|
1818
1821
|
if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
|
|
1819
1822
|
if (scanToEnd === true) {
|
|
@@ -1824,7 +1827,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1824
1827
|
continue;
|
|
1825
1828
|
}
|
|
1826
1829
|
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
1827
|
-
isGlob
|
|
1830
|
+
isGlob = token.isGlob = true;
|
|
1828
1831
|
finished = true;
|
|
1829
1832
|
break;
|
|
1830
1833
|
}
|
|
@@ -1836,13 +1839,13 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1836
1839
|
}
|
|
1837
1840
|
if (code === CHAR_ASTERISK) {
|
|
1838
1841
|
if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
|
|
1839
|
-
isGlob
|
|
1842
|
+
isGlob = token.isGlob = true;
|
|
1840
1843
|
finished = true;
|
|
1841
1844
|
if (scanToEnd === true) continue;
|
|
1842
1845
|
break;
|
|
1843
1846
|
}
|
|
1844
1847
|
if (code === CHAR_QUESTION_MARK) {
|
|
1845
|
-
isGlob
|
|
1848
|
+
isGlob = token.isGlob = true;
|
|
1846
1849
|
finished = true;
|
|
1847
1850
|
if (scanToEnd === true) continue;
|
|
1848
1851
|
break;
|
|
@@ -1856,7 +1859,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1856
1859
|
}
|
|
1857
1860
|
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
1858
1861
|
isBracket = token.isBracket = true;
|
|
1859
|
-
isGlob
|
|
1862
|
+
isGlob = token.isGlob = true;
|
|
1860
1863
|
finished = true;
|
|
1861
1864
|
break;
|
|
1862
1865
|
}
|
|
@@ -1870,7 +1873,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1870
1873
|
continue;
|
|
1871
1874
|
}
|
|
1872
1875
|
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
|
|
1873
|
-
isGlob
|
|
1876
|
+
isGlob = token.isGlob = true;
|
|
1874
1877
|
if (scanToEnd === true) {
|
|
1875
1878
|
while (eos() !== true && (code = advance())) {
|
|
1876
1879
|
if (code === CHAR_LEFT_PARENTHESES) {
|
|
@@ -1887,15 +1890,15 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1887
1890
|
}
|
|
1888
1891
|
break;
|
|
1889
1892
|
}
|
|
1890
|
-
if (isGlob
|
|
1893
|
+
if (isGlob === true) {
|
|
1891
1894
|
finished = true;
|
|
1892
1895
|
if (scanToEnd === true) continue;
|
|
1893
1896
|
break;
|
|
1894
1897
|
}
|
|
1895
1898
|
}
|
|
1896
1899
|
if (opts.noext === true) {
|
|
1897
|
-
isExtglob
|
|
1898
|
-
isGlob
|
|
1900
|
+
isExtglob = false;
|
|
1901
|
+
isGlob = false;
|
|
1899
1902
|
}
|
|
1900
1903
|
let base = str;
|
|
1901
1904
|
let prefix = "";
|
|
@@ -1905,10 +1908,10 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1905
1908
|
str = str.slice(start);
|
|
1906
1909
|
lastIndex -= start;
|
|
1907
1910
|
}
|
|
1908
|
-
if (base && isGlob
|
|
1911
|
+
if (base && isGlob === true && lastIndex > 0) {
|
|
1909
1912
|
base = str.slice(0, lastIndex);
|
|
1910
1913
|
glob = str.slice(lastIndex);
|
|
1911
|
-
} else if (isGlob
|
|
1914
|
+
} else if (isGlob === true) {
|
|
1912
1915
|
base = "";
|
|
1913
1916
|
glob = str;
|
|
1914
1917
|
} else base = str;
|
|
@@ -1916,8 +1919,8 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1916
1919
|
if (isPathSeparator(base.charCodeAt(base.length - 1))) base = base.slice(0, -1);
|
|
1917
1920
|
}
|
|
1918
1921
|
if (opts.unescape === true) {
|
|
1919
|
-
if (glob) glob = utils
|
|
1920
|
-
if (base && backslashes === true) base = utils
|
|
1922
|
+
if (glob) glob = utils.removeBackslashes(glob);
|
|
1923
|
+
if (base && backslashes === true) base = utils.removeBackslashes(base);
|
|
1921
1924
|
}
|
|
1922
1925
|
const state = {
|
|
1923
1926
|
prefix,
|
|
@@ -1927,8 +1930,8 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1927
1930
|
glob,
|
|
1928
1931
|
isBrace,
|
|
1929
1932
|
isBracket,
|
|
1930
|
-
isGlob
|
|
1931
|
-
isExtglob
|
|
1933
|
+
isGlob,
|
|
1934
|
+
isExtglob,
|
|
1932
1935
|
isGlobstar,
|
|
1933
1936
|
negated,
|
|
1934
1937
|
negatedExtglob
|
|
@@ -1969,18 +1972,18 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1969
1972
|
}
|
|
1970
1973
|
return state;
|
|
1971
1974
|
};
|
|
1972
|
-
module.exports = scan
|
|
1973
|
-
})
|
|
1975
|
+
module.exports = scan;
|
|
1976
|
+
}));
|
|
1974
1977
|
|
|
1975
1978
|
//#endregion
|
|
1976
1979
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
1977
|
-
var require_parse = /* @__PURE__ */
|
|
1978
|
-
const constants
|
|
1979
|
-
const utils
|
|
1980
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1981
|
+
const constants = require_constants$1();
|
|
1982
|
+
const utils = require_utils$2();
|
|
1980
1983
|
/**
|
|
1981
1984
|
* Constants
|
|
1982
1985
|
*/
|
|
1983
|
-
const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants
|
|
1986
|
+
const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants;
|
|
1984
1987
|
/**
|
|
1985
1988
|
* Helpers
|
|
1986
1989
|
*/
|
|
@@ -1991,7 +1994,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
1991
1994
|
try {
|
|
1992
1995
|
new RegExp(value);
|
|
1993
1996
|
} catch (ex) {
|
|
1994
|
-
return args.map((v) => utils
|
|
1997
|
+
return args.map((v) => utils.escapeRegex(v)).join("..");
|
|
1995
1998
|
}
|
|
1996
1999
|
return value;
|
|
1997
2000
|
};
|
|
@@ -2007,7 +2010,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2007
2010
|
* @param {Object} options
|
|
2008
2011
|
* @return {Object}
|
|
2009
2012
|
*/
|
|
2010
|
-
const parse
|
|
2013
|
+
const parse = (input, options$1) => {
|
|
2011
2014
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
2012
2015
|
input = REPLACEMENTS[input] || input;
|
|
2013
2016
|
const opts = { ...options$1 };
|
|
@@ -2021,15 +2024,15 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2021
2024
|
};
|
|
2022
2025
|
const tokens = [bos];
|
|
2023
2026
|
const capture = opts.capture ? "" : "?:";
|
|
2024
|
-
const win32
|
|
2025
|
-
const PLATFORM_CHARS = constants
|
|
2026
|
-
const EXTGLOB_CHARS = constants
|
|
2027
|
-
const { DOT_LITERAL
|
|
2027
|
+
const win32 = utils.isWindows(options$1);
|
|
2028
|
+
const PLATFORM_CHARS = constants.globChars(win32);
|
|
2029
|
+
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
2030
|
+
const { DOT_LITERAL, PLUS_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK, QMARK_NO_DOT, STAR, START_ANCHOR } = PLATFORM_CHARS;
|
|
2028
2031
|
const globstar = (opts$1) => {
|
|
2029
|
-
return `(${capture}(?:(?!${START_ANCHOR
|
|
2032
|
+
return `(${capture}(?:(?!${START_ANCHOR}${opts$1.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2030
2033
|
};
|
|
2031
2034
|
const nodot = opts.dot ? "" : NO_DOT;
|
|
2032
|
-
const qmarkNoDot = opts.dot ? QMARK
|
|
2035
|
+
const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
|
|
2033
2036
|
let star = opts.bash === true ? globstar(opts) : STAR;
|
|
2034
2037
|
if (opts.capture) star = `(${star})`;
|
|
2035
2038
|
if (typeof opts.noext === "boolean") opts.noextglob = opts.noext;
|
|
@@ -2050,10 +2053,10 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2050
2053
|
globstar: false,
|
|
2051
2054
|
tokens
|
|
2052
2055
|
};
|
|
2053
|
-
input = utils
|
|
2056
|
+
input = utils.removePrefix(input, state);
|
|
2054
2057
|
len = input.length;
|
|
2055
2058
|
const extglobs = [];
|
|
2056
|
-
const braces
|
|
2059
|
+
const braces = [];
|
|
2057
2060
|
const stack = [];
|
|
2058
2061
|
let prev = bos;
|
|
2059
2062
|
let value;
|
|
@@ -2068,7 +2071,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2068
2071
|
state.consumed += value$1;
|
|
2069
2072
|
state.index += num;
|
|
2070
2073
|
};
|
|
2071
|
-
const append
|
|
2074
|
+
const append = (token) => {
|
|
2072
2075
|
state.output += token.output != null ? token.output : token.value;
|
|
2073
2076
|
consume(token.value);
|
|
2074
2077
|
};
|
|
@@ -2102,8 +2105,8 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2102
2105
|
const push = (tok) => {
|
|
2103
2106
|
if (prev.type === "globstar") {
|
|
2104
2107
|
const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace");
|
|
2105
|
-
const isExtglob
|
|
2106
|
-
if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob
|
|
2108
|
+
const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
|
|
2109
|
+
if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) {
|
|
2107
2110
|
state.output = state.output.slice(0, -prev.output.length);
|
|
2108
2111
|
prev.type = "star";
|
|
2109
2112
|
prev.value = "*";
|
|
@@ -2112,7 +2115,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2112
2115
|
}
|
|
2113
2116
|
}
|
|
2114
2117
|
if (extglobs.length && tok.type !== "paren") extglobs[extglobs.length - 1].inner += tok.value;
|
|
2115
|
-
if (tok.value || tok.output) append
|
|
2118
|
+
if (tok.value || tok.output) append(tok);
|
|
2116
2119
|
if (prev && prev.type === "text" && tok.type === "text") {
|
|
2117
2120
|
prev.value += tok.value;
|
|
2118
2121
|
prev.output = (prev.output || "") + tok.value;
|
|
@@ -2136,7 +2139,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2136
2139
|
push({
|
|
2137
2140
|
type,
|
|
2138
2141
|
value: value$1,
|
|
2139
|
-
output: state.output ? "" : ONE_CHAR
|
|
2142
|
+
output: state.output ? "" : ONE_CHAR
|
|
2140
2143
|
});
|
|
2141
2144
|
push({
|
|
2142
2145
|
type: "paren",
|
|
@@ -2153,7 +2156,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2153
2156
|
let extglobStar = star;
|
|
2154
2157
|
if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
|
|
2155
2158
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
2156
|
-
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse
|
|
2159
|
+
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse(rest, {
|
|
2157
2160
|
...options$1,
|
|
2158
2161
|
fastpaths: false
|
|
2159
2162
|
}).output})${extglobStar})`;
|
|
@@ -2172,17 +2175,17 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2172
2175
|
*/
|
|
2173
2176
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
2174
2177
|
let backslashes = false;
|
|
2175
|
-
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars
|
|
2178
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
|
|
2176
2179
|
if (first === "\\") {
|
|
2177
2180
|
backslashes = true;
|
|
2178
2181
|
return m;
|
|
2179
2182
|
}
|
|
2180
2183
|
if (first === "?") {
|
|
2181
|
-
if (esc) return esc + first + (rest ? QMARK
|
|
2182
|
-
if (index === 0) return qmarkNoDot + (rest ? QMARK
|
|
2183
|
-
return QMARK
|
|
2184
|
+
if (esc) return esc + first + (rest ? QMARK.repeat(rest.length) : "");
|
|
2185
|
+
if (index === 0) return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
|
|
2186
|
+
return QMARK.repeat(chars.length);
|
|
2184
2187
|
}
|
|
2185
|
-
if (first === ".") return DOT_LITERAL
|
|
2188
|
+
if (first === ".") return DOT_LITERAL.repeat(chars.length);
|
|
2186
2189
|
if (first === "*") {
|
|
2187
2190
|
if (esc) return esc + first + (rest ? star : "");
|
|
2188
2191
|
return star;
|
|
@@ -2197,7 +2200,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2197
2200
|
state.output = input;
|
|
2198
2201
|
return state;
|
|
2199
2202
|
}
|
|
2200
|
-
state.output = utils
|
|
2203
|
+
state.output = utils.wrapOutput(output, state, options$1);
|
|
2201
2204
|
return state;
|
|
2202
2205
|
}
|
|
2203
2206
|
/**
|
|
@@ -2255,7 +2258,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2255
2258
|
prev.value = pre + posix;
|
|
2256
2259
|
state.backtrack = true;
|
|
2257
2260
|
advance();
|
|
2258
|
-
if (!bos.output && tokens.indexOf(prev) === 1) bos.output = ONE_CHAR
|
|
2261
|
+
if (!bos.output && tokens.indexOf(prev) === 1) bos.output = ONE_CHAR;
|
|
2259
2262
|
continue;
|
|
2260
2263
|
}
|
|
2261
2264
|
}
|
|
@@ -2265,7 +2268,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2265
2268
|
if (value === "]" && (prev.value === "[" || prev.value === "[^")) value = `\\${value}`;
|
|
2266
2269
|
if (opts.posix === true && value === "!" && prev.value === "[") value = "^";
|
|
2267
2270
|
prev.value += value;
|
|
2268
|
-
append
|
|
2271
|
+
append({ value });
|
|
2269
2272
|
continue;
|
|
2270
2273
|
}
|
|
2271
2274
|
/**
|
|
@@ -2273,9 +2276,9 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2273
2276
|
* until we reach the closing double quote.
|
|
2274
2277
|
*/
|
|
2275
2278
|
if (state.quotes === 1 && value !== "\"") {
|
|
2276
|
-
value = utils
|
|
2279
|
+
value = utils.escapeRegex(value);
|
|
2277
2280
|
prev.value += value;
|
|
2278
|
-
append
|
|
2281
|
+
append({ value });
|
|
2279
2282
|
continue;
|
|
2280
2283
|
}
|
|
2281
2284
|
/**
|
|
@@ -2351,16 +2354,16 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2351
2354
|
const prevValue = prev.value.slice(1);
|
|
2352
2355
|
if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) value = `/${value}`;
|
|
2353
2356
|
prev.value += value;
|
|
2354
|
-
append
|
|
2355
|
-
if (opts.literalBrackets === false || utils
|
|
2356
|
-
const escaped
|
|
2357
|
+
append({ value });
|
|
2358
|
+
if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) continue;
|
|
2359
|
+
const escaped = utils.escapeRegex(prev.value);
|
|
2357
2360
|
state.output = state.output.slice(0, -prev.value.length);
|
|
2358
2361
|
if (opts.literalBrackets === true) {
|
|
2359
|
-
state.output += escaped
|
|
2360
|
-
prev.value = escaped
|
|
2362
|
+
state.output += escaped;
|
|
2363
|
+
prev.value = escaped;
|
|
2361
2364
|
continue;
|
|
2362
2365
|
}
|
|
2363
|
-
prev.value = `(${capture}${escaped
|
|
2366
|
+
prev.value = `(${capture}${escaped}|${prev.value})`;
|
|
2364
2367
|
state.output += prev.value;
|
|
2365
2368
|
continue;
|
|
2366
2369
|
}
|
|
@@ -2376,12 +2379,12 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2376
2379
|
outputIndex: state.output.length,
|
|
2377
2380
|
tokensIndex: state.tokens.length
|
|
2378
2381
|
};
|
|
2379
|
-
braces
|
|
2382
|
+
braces.push(open);
|
|
2380
2383
|
push(open);
|
|
2381
2384
|
continue;
|
|
2382
2385
|
}
|
|
2383
2386
|
if (value === "}") {
|
|
2384
|
-
const brace = braces
|
|
2387
|
+
const brace = braces[braces.length - 1];
|
|
2385
2388
|
if (opts.nobrace === true || !brace) {
|
|
2386
2389
|
push({
|
|
2387
2390
|
type: "text",
|
|
@@ -2416,7 +2419,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2416
2419
|
output
|
|
2417
2420
|
});
|
|
2418
2421
|
decrement("braces");
|
|
2419
|
-
braces
|
|
2422
|
+
braces.pop();
|
|
2420
2423
|
continue;
|
|
2421
2424
|
}
|
|
2422
2425
|
/**
|
|
@@ -2435,7 +2438,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2435
2438
|
*/
|
|
2436
2439
|
if (value === ",") {
|
|
2437
2440
|
let output = value;
|
|
2438
|
-
const brace = braces
|
|
2441
|
+
const brace = braces[braces.length - 1];
|
|
2439
2442
|
if (brace && stack[stack.length - 1] === "braces") {
|
|
2440
2443
|
brace.comma = true;
|
|
2441
2444
|
output = "|";
|
|
@@ -2462,7 +2465,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2462
2465
|
push({
|
|
2463
2466
|
type: "slash",
|
|
2464
2467
|
value,
|
|
2465
|
-
output: SLASH_LITERAL
|
|
2468
|
+
output: SLASH_LITERAL
|
|
2466
2469
|
});
|
|
2467
2470
|
continue;
|
|
2468
2471
|
}
|
|
@@ -2471,8 +2474,8 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2471
2474
|
*/
|
|
2472
2475
|
if (value === ".") {
|
|
2473
2476
|
if (state.braces > 0 && prev.type === "dot") {
|
|
2474
|
-
if (prev.value === ".") prev.output = DOT_LITERAL
|
|
2475
|
-
const brace = braces
|
|
2477
|
+
if (prev.value === ".") prev.output = DOT_LITERAL;
|
|
2478
|
+
const brace = braces[braces.length - 1];
|
|
2476
2479
|
prev.type = "dots";
|
|
2477
2480
|
prev.output += value;
|
|
2478
2481
|
prev.value += value;
|
|
@@ -2483,14 +2486,14 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2483
2486
|
push({
|
|
2484
2487
|
type: "text",
|
|
2485
2488
|
value,
|
|
2486
|
-
output: DOT_LITERAL
|
|
2489
|
+
output: DOT_LITERAL
|
|
2487
2490
|
});
|
|
2488
2491
|
continue;
|
|
2489
2492
|
}
|
|
2490
2493
|
push({
|
|
2491
2494
|
type: "dot",
|
|
2492
2495
|
value,
|
|
2493
|
-
output: DOT_LITERAL
|
|
2496
|
+
output: DOT_LITERAL
|
|
2494
2497
|
});
|
|
2495
2498
|
continue;
|
|
2496
2499
|
}
|
|
@@ -2505,7 +2508,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2505
2508
|
if (prev && prev.type === "paren") {
|
|
2506
2509
|
const next = peek();
|
|
2507
2510
|
let output = value;
|
|
2508
|
-
if (next === "<" && !utils
|
|
2511
|
+
if (next === "<" && !utils.supportsLookbehinds()) throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
2509
2512
|
if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) output = `\\${value}`;
|
|
2510
2513
|
push({
|
|
2511
2514
|
type: "text",
|
|
@@ -2525,7 +2528,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2525
2528
|
push({
|
|
2526
2529
|
type: "qmark",
|
|
2527
2530
|
value,
|
|
2528
|
-
output: QMARK
|
|
2531
|
+
output: QMARK
|
|
2529
2532
|
});
|
|
2530
2533
|
continue;
|
|
2531
2534
|
}
|
|
@@ -2556,7 +2559,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2556
2559
|
push({
|
|
2557
2560
|
type: "plus",
|
|
2558
2561
|
value,
|
|
2559
|
-
output: PLUS_LITERAL
|
|
2562
|
+
output: PLUS_LITERAL
|
|
2560
2563
|
});
|
|
2561
2564
|
continue;
|
|
2562
2565
|
}
|
|
@@ -2569,7 +2572,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2569
2572
|
}
|
|
2570
2573
|
push({
|
|
2571
2574
|
type: "plus",
|
|
2572
|
-
value: PLUS_LITERAL
|
|
2575
|
+
value: PLUS_LITERAL
|
|
2573
2576
|
});
|
|
2574
2577
|
continue;
|
|
2575
2578
|
}
|
|
@@ -2644,8 +2647,8 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2644
2647
|
continue;
|
|
2645
2648
|
}
|
|
2646
2649
|
const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace");
|
|
2647
|
-
const isExtglob
|
|
2648
|
-
if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob
|
|
2650
|
+
const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
|
|
2651
|
+
if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
|
|
2649
2652
|
push({
|
|
2650
2653
|
type: "star",
|
|
2651
2654
|
value,
|
|
@@ -2684,7 +2687,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2684
2687
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
2685
2688
|
prior.output = `(?:${prior.output}`;
|
|
2686
2689
|
prev.type = "globstar";
|
|
2687
|
-
prev.output = `${globstar(opts)}${SLASH_LITERAL
|
|
2690
|
+
prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
|
|
2688
2691
|
prev.value += value;
|
|
2689
2692
|
state.output += prior.output + prev.output;
|
|
2690
2693
|
state.globstar = true;
|
|
@@ -2699,7 +2702,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2699
2702
|
if (prior.type === "bos" && rest[0] === "/") {
|
|
2700
2703
|
prev.type = "globstar";
|
|
2701
2704
|
prev.value += value;
|
|
2702
|
-
prev.output = `(?:^|${SLASH_LITERAL
|
|
2705
|
+
prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
|
|
2703
2706
|
state.output = prev.output;
|
|
2704
2707
|
state.globstar = true;
|
|
2705
2708
|
consume(value + advance());
|
|
@@ -2747,31 +2750,31 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2747
2750
|
prev.output += nodot;
|
|
2748
2751
|
}
|
|
2749
2752
|
if (peek() !== "*") {
|
|
2750
|
-
state.output += ONE_CHAR
|
|
2751
|
-
prev.output += ONE_CHAR
|
|
2753
|
+
state.output += ONE_CHAR;
|
|
2754
|
+
prev.output += ONE_CHAR;
|
|
2752
2755
|
}
|
|
2753
2756
|
}
|
|
2754
2757
|
push(token);
|
|
2755
2758
|
}
|
|
2756
2759
|
while (state.brackets > 0) {
|
|
2757
2760
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
|
|
2758
|
-
state.output = utils
|
|
2761
|
+
state.output = utils.escapeLast(state.output, "[");
|
|
2759
2762
|
decrement("brackets");
|
|
2760
2763
|
}
|
|
2761
2764
|
while (state.parens > 0) {
|
|
2762
2765
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
|
|
2763
|
-
state.output = utils
|
|
2766
|
+
state.output = utils.escapeLast(state.output, "(");
|
|
2764
2767
|
decrement("parens");
|
|
2765
2768
|
}
|
|
2766
2769
|
while (state.braces > 0) {
|
|
2767
2770
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
|
|
2768
|
-
state.output = utils
|
|
2771
|
+
state.output = utils.escapeLast(state.output, "{");
|
|
2769
2772
|
decrement("braces");
|
|
2770
2773
|
}
|
|
2771
2774
|
if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) push({
|
|
2772
2775
|
type: "maybe_slash",
|
|
2773
2776
|
value: "",
|
|
2774
|
-
output: `${SLASH_LITERAL
|
|
2777
|
+
output: `${SLASH_LITERAL}?`
|
|
2775
2778
|
});
|
|
2776
2779
|
if (state.backtrack === true) {
|
|
2777
2780
|
state.output = "";
|
|
@@ -2787,14 +2790,14 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2787
2790
|
* This can significantly speed up processing and has very little downside
|
|
2788
2791
|
* impact when none of the fast paths match.
|
|
2789
2792
|
*/
|
|
2790
|
-
parse
|
|
2793
|
+
parse.fastpaths = (input, options$1) => {
|
|
2791
2794
|
const opts = { ...options$1 };
|
|
2792
2795
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
2793
2796
|
const len = input.length;
|
|
2794
2797
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
2795
2798
|
input = REPLACEMENTS[input] || input;
|
|
2796
|
-
const win32
|
|
2797
|
-
const { DOT_LITERAL
|
|
2799
|
+
const win32 = utils.isWindows(options$1);
|
|
2800
|
+
const { DOT_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR } = constants.globChars(win32);
|
|
2798
2801
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
2799
2802
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
2800
2803
|
const capture = opts.capture ? "" : "?:";
|
|
@@ -2806,41 +2809,41 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2806
2809
|
if (opts.capture) star = `(${star})`;
|
|
2807
2810
|
const globstar = (opts$1) => {
|
|
2808
2811
|
if (opts$1.noglobstar === true) return star;
|
|
2809
|
-
return `(${capture}(?:(?!${START_ANCHOR
|
|
2812
|
+
return `(${capture}(?:(?!${START_ANCHOR}${opts$1.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2810
2813
|
};
|
|
2811
2814
|
const create = (str) => {
|
|
2812
2815
|
switch (str) {
|
|
2813
|
-
case "*": return `${nodot}${ONE_CHAR
|
|
2814
|
-
case ".*": return `${DOT_LITERAL
|
|
2815
|
-
case "*.*": return `${nodot}${star}${DOT_LITERAL
|
|
2816
|
-
case "*/*": return `${nodot}${star}${SLASH_LITERAL
|
|
2816
|
+
case "*": return `${nodot}${ONE_CHAR}${star}`;
|
|
2817
|
+
case ".*": return `${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2818
|
+
case "*.*": return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2819
|
+
case "*/*": return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
|
|
2817
2820
|
case "**": return nodot + globstar(opts);
|
|
2818
|
-
case "**/*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL
|
|
2819
|
-
case "**/*.*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL
|
|
2820
|
-
case "**/.*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL
|
|
2821
|
+
case "**/*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
|
|
2822
|
+
case "**/*.*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2823
|
+
case "**/.*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2821
2824
|
default: {
|
|
2822
2825
|
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
2823
2826
|
if (!match) return;
|
|
2824
2827
|
const source$1 = create(match[1]);
|
|
2825
2828
|
if (!source$1) return;
|
|
2826
|
-
return source$1 + DOT_LITERAL
|
|
2829
|
+
return source$1 + DOT_LITERAL + match[2];
|
|
2827
2830
|
}
|
|
2828
2831
|
}
|
|
2829
2832
|
};
|
|
2830
|
-
let source = create(utils
|
|
2831
|
-
if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL
|
|
2833
|
+
let source = create(utils.removePrefix(input, state));
|
|
2834
|
+
if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL}?`;
|
|
2832
2835
|
return source;
|
|
2833
2836
|
};
|
|
2834
|
-
module.exports = parse
|
|
2835
|
-
})
|
|
2837
|
+
module.exports = parse;
|
|
2838
|
+
}));
|
|
2836
2839
|
|
|
2837
2840
|
//#endregion
|
|
2838
2841
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
|
|
2839
|
-
var require_picomatch$1 = /* @__PURE__ */
|
|
2840
|
-
const path$
|
|
2842
|
+
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2843
|
+
const path$6 = __require("path");
|
|
2841
2844
|
const scan = require_scan();
|
|
2842
2845
|
const parse = require_parse();
|
|
2843
|
-
const utils
|
|
2846
|
+
const utils = require_utils$2();
|
|
2844
2847
|
const constants = require_constants$1();
|
|
2845
2848
|
const isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
2846
2849
|
/**
|
|
@@ -2864,9 +2867,9 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2864
2867
|
* @return {Function=} Returns a matcher function.
|
|
2865
2868
|
* @api public
|
|
2866
2869
|
*/
|
|
2867
|
-
const picomatch
|
|
2870
|
+
const picomatch = (glob, options$1, returnState = false) => {
|
|
2868
2871
|
if (Array.isArray(glob)) {
|
|
2869
|
-
const fns = glob.map((input) => picomatch
|
|
2872
|
+
const fns = glob.map((input) => picomatch(input, options$1, returnState));
|
|
2870
2873
|
const arrayMatcher = (str) => {
|
|
2871
2874
|
for (const isMatch of fns) {
|
|
2872
2875
|
const state$1 = isMatch(str);
|
|
@@ -2879,8 +2882,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2879
2882
|
const isState = isObject(glob) && glob.tokens && glob.input;
|
|
2880
2883
|
if (glob === "" || typeof glob !== "string" && !isState) throw new TypeError("Expected pattern to be a non-empty string");
|
|
2881
2884
|
const opts = options$1 || {};
|
|
2882
|
-
const posix = utils
|
|
2883
|
-
const regex = isState ? picomatch
|
|
2885
|
+
const posix = utils.isWindows(options$1);
|
|
2886
|
+
const regex = isState ? picomatch.compileRe(glob, options$1) : picomatch.makeRe(glob, options$1, false, true);
|
|
2884
2887
|
const state = regex.state;
|
|
2885
2888
|
delete regex.state;
|
|
2886
2889
|
let isIgnored = () => false;
|
|
@@ -2891,10 +2894,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2891
2894
|
onMatch: null,
|
|
2892
2895
|
onResult: null
|
|
2893
2896
|
};
|
|
2894
|
-
isIgnored = picomatch
|
|
2897
|
+
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
2895
2898
|
}
|
|
2896
2899
|
const matcher = (input, returnObject = false) => {
|
|
2897
|
-
const { isMatch, match, output } = picomatch
|
|
2900
|
+
const { isMatch, match, output } = picomatch.test(input, regex, options$1, {
|
|
2898
2901
|
glob,
|
|
2899
2902
|
posix
|
|
2900
2903
|
});
|
|
@@ -2940,21 +2943,21 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2940
2943
|
* @return {Object} Returns an object with matching info.
|
|
2941
2944
|
* @api public
|
|
2942
2945
|
*/
|
|
2943
|
-
picomatch
|
|
2946
|
+
picomatch.test = (input, regex, options$1, { glob, posix } = {}) => {
|
|
2944
2947
|
if (typeof input !== "string") throw new TypeError("Expected input to be a string");
|
|
2945
2948
|
if (input === "") return {
|
|
2946
2949
|
isMatch: false,
|
|
2947
2950
|
output: ""
|
|
2948
2951
|
};
|
|
2949
2952
|
const opts = options$1 || {};
|
|
2950
|
-
const format = opts.format || (posix ? utils
|
|
2953
|
+
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
2951
2954
|
let match = input === glob;
|
|
2952
2955
|
let output = match && format ? format(input) : input;
|
|
2953
2956
|
if (match === false) {
|
|
2954
2957
|
output = format ? format(input) : input;
|
|
2955
2958
|
match = output === glob;
|
|
2956
2959
|
}
|
|
2957
|
-
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch
|
|
2960
|
+
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options$1, posix);
|
|
2958
2961
|
else match = regex.exec(output);
|
|
2959
2962
|
return {
|
|
2960
2963
|
isMatch: Boolean(match),
|
|
@@ -2975,8 +2978,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2975
2978
|
* @return {Boolean}
|
|
2976
2979
|
* @api public
|
|
2977
2980
|
*/
|
|
2978
|
-
picomatch
|
|
2979
|
-
return (glob instanceof RegExp ? glob : picomatch
|
|
2981
|
+
picomatch.matchBase = (input, glob, options$1, posix = utils.isWindows(options$1)) => {
|
|
2982
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options$1)).test(path$6.basename(input));
|
|
2980
2983
|
};
|
|
2981
2984
|
/**
|
|
2982
2985
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -2994,7 +2997,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2994
2997
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
2995
2998
|
* @api public
|
|
2996
2999
|
*/
|
|
2997
|
-
picomatch
|
|
3000
|
+
picomatch.isMatch = (str, patterns, options$1) => picomatch(patterns, options$1)(str);
|
|
2998
3001
|
/**
|
|
2999
3002
|
* Parse a glob pattern to create the source string for a regular
|
|
3000
3003
|
* expression.
|
|
@@ -3008,9 +3011,9 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3008
3011
|
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
3009
3012
|
* @api public
|
|
3010
3013
|
*/
|
|
3011
|
-
picomatch
|
|
3012
|
-
if (Array.isArray(pattern
|
|
3013
|
-
return parse(pattern
|
|
3014
|
+
picomatch.parse = (pattern, options$1) => {
|
|
3015
|
+
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options$1));
|
|
3016
|
+
return parse(pattern, {
|
|
3014
3017
|
...options$1,
|
|
3015
3018
|
fastpaths: false
|
|
3016
3019
|
});
|
|
@@ -3041,7 +3044,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3041
3044
|
* @return {Object} Returns an object with
|
|
3042
3045
|
* @api public
|
|
3043
3046
|
*/
|
|
3044
|
-
picomatch
|
|
3047
|
+
picomatch.scan = (input, options$1) => scan(input, options$1);
|
|
3045
3048
|
/**
|
|
3046
3049
|
* Compile a regular expression from the `state` object returned by the
|
|
3047
3050
|
* [parse()](#parse) method.
|
|
@@ -3053,14 +3056,14 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3053
3056
|
* @return {RegExp}
|
|
3054
3057
|
* @api public
|
|
3055
3058
|
*/
|
|
3056
|
-
picomatch
|
|
3059
|
+
picomatch.compileRe = (state, options$1, returnOutput = false, returnState = false) => {
|
|
3057
3060
|
if (returnOutput === true) return state.output;
|
|
3058
3061
|
const opts = options$1 || {};
|
|
3059
3062
|
const prepend = opts.contains ? "" : "^";
|
|
3060
|
-
const append
|
|
3061
|
-
let source = `${prepend}(?:${state.output})${append
|
|
3063
|
+
const append = opts.contains ? "" : "$";
|
|
3064
|
+
let source = `${prepend}(?:${state.output})${append}`;
|
|
3062
3065
|
if (state && state.negated === true) source = `^(?!${source}).*$`;
|
|
3063
|
-
const regex = picomatch
|
|
3066
|
+
const regex = picomatch.toRegex(source, options$1);
|
|
3064
3067
|
if (returnState === true) regex.state = state;
|
|
3065
3068
|
return regex;
|
|
3066
3069
|
};
|
|
@@ -3082,7 +3085,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3082
3085
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
3083
3086
|
* @api public
|
|
3084
3087
|
*/
|
|
3085
|
-
picomatch
|
|
3088
|
+
picomatch.makeRe = (input, options$1 = {}, returnOutput = false, returnState = false) => {
|
|
3086
3089
|
if (!input || typeof input !== "string") throw new TypeError("Expected a non-empty string");
|
|
3087
3090
|
let parsed = {
|
|
3088
3091
|
negated: false,
|
|
@@ -3090,7 +3093,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3090
3093
|
};
|
|
3091
3094
|
if (options$1.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse.fastpaths(input, options$1);
|
|
3092
3095
|
if (!parsed.output) parsed = parse(input, options$1);
|
|
3093
|
-
return picomatch
|
|
3096
|
+
return picomatch.compileRe(parsed, options$1, returnOutput, returnState);
|
|
3094
3097
|
};
|
|
3095
3098
|
/**
|
|
3096
3099
|
* Create a regular expression from the given regex source string.
|
|
@@ -3108,7 +3111,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3108
3111
|
* @return {RegExp}
|
|
3109
3112
|
* @api public
|
|
3110
3113
|
*/
|
|
3111
|
-
picomatch
|
|
3114
|
+
picomatch.toRegex = (source, options$1) => {
|
|
3112
3115
|
try {
|
|
3113
3116
|
const opts = options$1 || {};
|
|
3114
3117
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
@@ -3121,26 +3124,26 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3121
3124
|
* Picomatch constants.
|
|
3122
3125
|
* @return {Object}
|
|
3123
3126
|
*/
|
|
3124
|
-
picomatch
|
|
3127
|
+
picomatch.constants = constants;
|
|
3125
3128
|
/**
|
|
3126
3129
|
* Expose "picomatch"
|
|
3127
3130
|
*/
|
|
3128
|
-
module.exports = picomatch
|
|
3129
|
-
})
|
|
3131
|
+
module.exports = picomatch;
|
|
3132
|
+
}));
|
|
3130
3133
|
|
|
3131
3134
|
//#endregion
|
|
3132
3135
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js
|
|
3133
|
-
var require_picomatch = /* @__PURE__ */
|
|
3136
|
+
var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3134
3137
|
module.exports = require_picomatch$1();
|
|
3135
|
-
})
|
|
3138
|
+
}));
|
|
3136
3139
|
|
|
3137
3140
|
//#endregion
|
|
3138
3141
|
//#region ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
3139
|
-
var require_micromatch = /* @__PURE__ */
|
|
3142
|
+
var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3140
3143
|
const util = __require("util");
|
|
3141
3144
|
const braces = require_braces();
|
|
3142
3145
|
const picomatch = require_picomatch();
|
|
3143
|
-
const utils
|
|
3146
|
+
const utils = require_utils$2();
|
|
3144
3147
|
const isEmptyString = (v) => v === "" || v === "./";
|
|
3145
3148
|
const hasBraces = (v) => {
|
|
3146
3149
|
const index = v.indexOf("{");
|
|
@@ -3163,7 +3166,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3163
3166
|
* @summary false
|
|
3164
3167
|
* @api public
|
|
3165
3168
|
*/
|
|
3166
|
-
const micromatch
|
|
3169
|
+
const micromatch = (list, patterns, options$1) => {
|
|
3167
3170
|
patterns = [].concat(patterns);
|
|
3168
3171
|
list = [].concat(list);
|
|
3169
3172
|
let omit = /* @__PURE__ */ new Set();
|
|
@@ -3201,7 +3204,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3201
3204
|
/**
|
|
3202
3205
|
* Backwards compatibility
|
|
3203
3206
|
*/
|
|
3204
|
-
micromatch
|
|
3207
|
+
micromatch.match = micromatch;
|
|
3205
3208
|
/**
|
|
3206
3209
|
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
3207
3210
|
* The returned function takes a string to match as its only argument and returns
|
|
@@ -3220,7 +3223,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3220
3223
|
* @return {Function} Returns a matcher function.
|
|
3221
3224
|
* @api public
|
|
3222
3225
|
*/
|
|
3223
|
-
micromatch
|
|
3226
|
+
micromatch.matcher = (pattern, options$1) => picomatch(pattern, options$1);
|
|
3224
3227
|
/**
|
|
3225
3228
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
3226
3229
|
*
|
|
@@ -3237,11 +3240,11 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3237
3240
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3238
3241
|
* @api public
|
|
3239
3242
|
*/
|
|
3240
|
-
micromatch
|
|
3243
|
+
micromatch.isMatch = (str, patterns, options$1) => picomatch(patterns, options$1)(str);
|
|
3241
3244
|
/**
|
|
3242
3245
|
* Backwards compatibility
|
|
3243
3246
|
*/
|
|
3244
|
-
micromatch
|
|
3247
|
+
micromatch.any = micromatch.isMatch;
|
|
3245
3248
|
/**
|
|
3246
3249
|
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
3247
3250
|
*
|
|
@@ -3258,7 +3261,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3258
3261
|
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
3259
3262
|
* @api public
|
|
3260
3263
|
*/
|
|
3261
|
-
micromatch
|
|
3264
|
+
micromatch.not = (list, patterns, options$1 = {}) => {
|
|
3262
3265
|
patterns = [].concat(patterns).map(String);
|
|
3263
3266
|
let result = /* @__PURE__ */ new Set();
|
|
3264
3267
|
let items = [];
|
|
@@ -3266,7 +3269,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3266
3269
|
if (options$1.onResult) options$1.onResult(state);
|
|
3267
3270
|
items.push(state.output);
|
|
3268
3271
|
};
|
|
3269
|
-
let matches = new Set(micromatch
|
|
3272
|
+
let matches = new Set(micromatch(list, patterns, {
|
|
3270
3273
|
...options$1,
|
|
3271
3274
|
onResult
|
|
3272
3275
|
}));
|
|
@@ -3292,14 +3295,14 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3292
3295
|
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
3293
3296
|
* @api public
|
|
3294
3297
|
*/
|
|
3295
|
-
micromatch
|
|
3298
|
+
micromatch.contains = (str, pattern, options$1) => {
|
|
3296
3299
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
3297
|
-
if (Array.isArray(pattern
|
|
3298
|
-
if (typeof pattern
|
|
3299
|
-
if (isEmptyString(str) || isEmptyString(pattern
|
|
3300
|
-
if (str.includes(pattern
|
|
3300
|
+
if (Array.isArray(pattern)) return pattern.some((p) => micromatch.contains(str, p, options$1));
|
|
3301
|
+
if (typeof pattern === "string") {
|
|
3302
|
+
if (isEmptyString(str) || isEmptyString(pattern)) return false;
|
|
3303
|
+
if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) return true;
|
|
3301
3304
|
}
|
|
3302
|
-
return micromatch
|
|
3305
|
+
return micromatch.isMatch(str, pattern, {
|
|
3303
3306
|
...options$1,
|
|
3304
3307
|
contains: true
|
|
3305
3308
|
});
|
|
@@ -3323,9 +3326,9 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3323
3326
|
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
3324
3327
|
* @api public
|
|
3325
3328
|
*/
|
|
3326
|
-
micromatch
|
|
3327
|
-
if (!utils
|
|
3328
|
-
let keys$1 = micromatch
|
|
3329
|
+
micromatch.matchKeys = (obj, patterns, options$1) => {
|
|
3330
|
+
if (!utils.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
3331
|
+
let keys$1 = micromatch(Object.keys(obj), patterns, options$1);
|
|
3329
3332
|
let res = {};
|
|
3330
3333
|
for (let key of keys$1) res[key] = obj[key];
|
|
3331
3334
|
return res;
|
|
@@ -3348,10 +3351,10 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3348
3351
|
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
3349
3352
|
* @api public
|
|
3350
3353
|
*/
|
|
3351
|
-
micromatch
|
|
3354
|
+
micromatch.some = (list, patterns, options$1) => {
|
|
3352
3355
|
let items = [].concat(list);
|
|
3353
|
-
for (let pattern
|
|
3354
|
-
let isMatch = picomatch(String(pattern
|
|
3356
|
+
for (let pattern of [].concat(patterns)) {
|
|
3357
|
+
let isMatch = picomatch(String(pattern), options$1);
|
|
3355
3358
|
if (items.some((item) => isMatch(item))) return true;
|
|
3356
3359
|
}
|
|
3357
3360
|
return false;
|
|
@@ -3379,10 +3382,10 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3379
3382
|
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
3380
3383
|
* @api public
|
|
3381
3384
|
*/
|
|
3382
|
-
micromatch
|
|
3385
|
+
micromatch.every = (list, patterns, options$1) => {
|
|
3383
3386
|
let items = [].concat(list);
|
|
3384
|
-
for (let pattern
|
|
3385
|
-
let isMatch = picomatch(String(pattern
|
|
3387
|
+
for (let pattern of [].concat(patterns)) {
|
|
3388
|
+
let isMatch = picomatch(String(pattern), options$1);
|
|
3386
3389
|
if (!items.every((item) => isMatch(item))) return false;
|
|
3387
3390
|
}
|
|
3388
3391
|
return true;
|
|
@@ -3413,7 +3416,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3413
3416
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3414
3417
|
* @api public
|
|
3415
3418
|
*/
|
|
3416
|
-
micromatch
|
|
3419
|
+
micromatch.all = (str, patterns, options$1) => {
|
|
3417
3420
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
3418
3421
|
return [].concat(patterns).every((p) => picomatch(p, options$1)(str));
|
|
3419
3422
|
};
|
|
@@ -3435,12 +3438,12 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3435
3438
|
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
3436
3439
|
* @api public
|
|
3437
3440
|
*/
|
|
3438
|
-
micromatch
|
|
3439
|
-
let posix = utils
|
|
3441
|
+
micromatch.capture = (glob, input, options$1) => {
|
|
3442
|
+
let posix = utils.isWindows(options$1);
|
|
3440
3443
|
let match = picomatch.makeRe(String(glob), {
|
|
3441
3444
|
...options$1,
|
|
3442
3445
|
capture: true
|
|
3443
|
-
}).exec(posix ? utils
|
|
3446
|
+
}).exec(posix ? utils.toPosixSlashes(input) : input);
|
|
3444
3447
|
if (match) return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
3445
3448
|
};
|
|
3446
3449
|
/**
|
|
@@ -3458,7 +3461,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3458
3461
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
3459
3462
|
* @api public
|
|
3460
3463
|
*/
|
|
3461
|
-
micromatch
|
|
3464
|
+
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
3462
3465
|
/**
|
|
3463
3466
|
* Scan a glob pattern to separate the pattern into segments. Used
|
|
3464
3467
|
* by the [split](#split) method.
|
|
@@ -3472,7 +3475,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3472
3475
|
* @return {Object} Returns an object with
|
|
3473
3476
|
* @api public
|
|
3474
3477
|
*/
|
|
3475
|
-
micromatch
|
|
3478
|
+
micromatch.scan = (...args) => picomatch.scan(...args);
|
|
3476
3479
|
/**
|
|
3477
3480
|
* Parse a glob pattern to create the source string for a regular
|
|
3478
3481
|
* expression.
|
|
@@ -3486,9 +3489,9 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3486
3489
|
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
3487
3490
|
* @api public
|
|
3488
3491
|
*/
|
|
3489
|
-
micromatch
|
|
3492
|
+
micromatch.parse = (patterns, options$1) => {
|
|
3490
3493
|
let res = [];
|
|
3491
|
-
for (let pattern
|
|
3494
|
+
for (let pattern of [].concat(patterns || [])) for (let str of braces(String(pattern), options$1)) res.push(picomatch.parse(str, options$1));
|
|
3492
3495
|
return res;
|
|
3493
3496
|
};
|
|
3494
3497
|
/**
|
|
@@ -3507,17 +3510,17 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3507
3510
|
* @return {Array}
|
|
3508
3511
|
* @api public
|
|
3509
3512
|
*/
|
|
3510
|
-
micromatch
|
|
3511
|
-
if (typeof pattern
|
|
3512
|
-
if (options$1 && options$1.nobrace === true || !hasBraces(pattern
|
|
3513
|
-
return braces(pattern
|
|
3513
|
+
micromatch.braces = (pattern, options$1) => {
|
|
3514
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3515
|
+
if (options$1 && options$1.nobrace === true || !hasBraces(pattern)) return [pattern];
|
|
3516
|
+
return braces(pattern, options$1);
|
|
3514
3517
|
};
|
|
3515
3518
|
/**
|
|
3516
3519
|
* Expand braces
|
|
3517
3520
|
*/
|
|
3518
|
-
micromatch
|
|
3519
|
-
if (typeof pattern
|
|
3520
|
-
return micromatch
|
|
3521
|
+
micromatch.braceExpand = (pattern, options$1) => {
|
|
3522
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3523
|
+
return micromatch.braces(pattern, {
|
|
3521
3524
|
...options$1,
|
|
3522
3525
|
expand: true
|
|
3523
3526
|
});
|
|
@@ -3525,16 +3528,16 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3525
3528
|
/**
|
|
3526
3529
|
* Expose micromatch
|
|
3527
3530
|
*/
|
|
3528
|
-
micromatch
|
|
3529
|
-
module.exports = micromatch
|
|
3530
|
-
})
|
|
3531
|
+
micromatch.hasBraces = hasBraces;
|
|
3532
|
+
module.exports = micromatch;
|
|
3533
|
+
}));
|
|
3531
3534
|
|
|
3532
3535
|
//#endregion
|
|
3533
3536
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
3534
|
-
var require_pattern = /* @__PURE__ */
|
|
3537
|
+
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3535
3538
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3536
3539
|
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;
|
|
3537
|
-
const path$
|
|
3540
|
+
const path$5 = __require("path");
|
|
3538
3541
|
const globParent = require_glob_parent();
|
|
3539
3542
|
const micromatch = require_micromatch();
|
|
3540
3543
|
const GLOBSTAR = "**";
|
|
@@ -3549,60 +3552,60 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3549
3552
|
* The latter is due to the presence of the device path at the beginning of the UNC path.
|
|
3550
3553
|
*/
|
|
3551
3554
|
const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
3552
|
-
function isStaticPattern(pattern
|
|
3553
|
-
return !isDynamicPattern(pattern
|
|
3555
|
+
function isStaticPattern(pattern, options$1 = {}) {
|
|
3556
|
+
return !isDynamicPattern(pattern, options$1);
|
|
3554
3557
|
}
|
|
3555
3558
|
exports.isStaticPattern = isStaticPattern;
|
|
3556
|
-
function isDynamicPattern(pattern
|
|
3559
|
+
function isDynamicPattern(pattern, options$1 = {}) {
|
|
3557
3560
|
/**
|
|
3558
3561
|
* A special case with an empty string is necessary for matching patterns that start with a forward slash.
|
|
3559
3562
|
* An empty string cannot be a dynamic pattern.
|
|
3560
3563
|
* For example, the pattern `/lib/*` will be spread into parts: '', 'lib', '*'.
|
|
3561
3564
|
*/
|
|
3562
|
-
if (pattern
|
|
3565
|
+
if (pattern === "") return false;
|
|
3563
3566
|
/**
|
|
3564
3567
|
* When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check
|
|
3565
3568
|
* filepath directly (without read directory).
|
|
3566
3569
|
*/
|
|
3567
|
-
if (options$1.caseSensitiveMatch === false || pattern
|
|
3568
|
-
if (COMMON_GLOB_SYMBOLS_RE.test(pattern
|
|
3569
|
-
if (options$1.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern
|
|
3570
|
-
if (options$1.braceExpansion !== false && hasBraceExpansion(pattern
|
|
3570
|
+
if (options$1.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) return true;
|
|
3571
|
+
if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) return true;
|
|
3572
|
+
if (options$1.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) return true;
|
|
3573
|
+
if (options$1.braceExpansion !== false && hasBraceExpansion(pattern)) return true;
|
|
3571
3574
|
return false;
|
|
3572
3575
|
}
|
|
3573
3576
|
exports.isDynamicPattern = isDynamicPattern;
|
|
3574
|
-
function hasBraceExpansion(pattern
|
|
3575
|
-
const openingBraceIndex = pattern
|
|
3577
|
+
function hasBraceExpansion(pattern) {
|
|
3578
|
+
const openingBraceIndex = pattern.indexOf("{");
|
|
3576
3579
|
if (openingBraceIndex === -1) return false;
|
|
3577
|
-
const closingBraceIndex = pattern
|
|
3580
|
+
const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1);
|
|
3578
3581
|
if (closingBraceIndex === -1) return false;
|
|
3579
|
-
const braceContent = pattern
|
|
3582
|
+
const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
|
|
3580
3583
|
return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
|
|
3581
3584
|
}
|
|
3582
|
-
function convertToPositivePattern(pattern
|
|
3583
|
-
return isNegativePattern(pattern
|
|
3585
|
+
function convertToPositivePattern(pattern) {
|
|
3586
|
+
return isNegativePattern(pattern) ? pattern.slice(1) : pattern;
|
|
3584
3587
|
}
|
|
3585
3588
|
exports.convertToPositivePattern = convertToPositivePattern;
|
|
3586
|
-
function convertToNegativePattern(pattern
|
|
3587
|
-
return "!" + pattern
|
|
3589
|
+
function convertToNegativePattern(pattern) {
|
|
3590
|
+
return "!" + pattern;
|
|
3588
3591
|
}
|
|
3589
3592
|
exports.convertToNegativePattern = convertToNegativePattern;
|
|
3590
|
-
function isNegativePattern(pattern
|
|
3591
|
-
return pattern
|
|
3593
|
+
function isNegativePattern(pattern) {
|
|
3594
|
+
return pattern.startsWith("!") && pattern[1] !== "(";
|
|
3592
3595
|
}
|
|
3593
3596
|
exports.isNegativePattern = isNegativePattern;
|
|
3594
|
-
function isPositivePattern(pattern
|
|
3595
|
-
return !isNegativePattern(pattern
|
|
3597
|
+
function isPositivePattern(pattern) {
|
|
3598
|
+
return !isNegativePattern(pattern);
|
|
3596
3599
|
}
|
|
3597
3600
|
exports.isPositivePattern = isPositivePattern;
|
|
3598
3601
|
function getNegativePatterns(patterns) {
|
|
3599
3602
|
return patterns.filter(isNegativePattern);
|
|
3600
3603
|
}
|
|
3601
3604
|
exports.getNegativePatterns = getNegativePatterns;
|
|
3602
|
-
function getPositivePatterns
|
|
3605
|
+
function getPositivePatterns(patterns) {
|
|
3603
3606
|
return patterns.filter(isPositivePattern);
|
|
3604
3607
|
}
|
|
3605
|
-
exports.getPositivePatterns = getPositivePatterns
|
|
3608
|
+
exports.getPositivePatterns = getPositivePatterns;
|
|
3606
3609
|
/**
|
|
3607
3610
|
* Returns patterns that can be applied inside the current directory.
|
|
3608
3611
|
*
|
|
@@ -3611,7 +3614,7 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3611
3614
|
* getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
|
|
3612
3615
|
*/
|
|
3613
3616
|
function getPatternsInsideCurrentDirectory(patterns) {
|
|
3614
|
-
return patterns.filter((pattern
|
|
3617
|
+
return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern));
|
|
3615
3618
|
}
|
|
3616
3619
|
exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
|
|
3617
3620
|
/**
|
|
@@ -3625,35 +3628,35 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3625
3628
|
return patterns.filter(isPatternRelatedToParentDirectory);
|
|
3626
3629
|
}
|
|
3627
3630
|
exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
|
|
3628
|
-
function isPatternRelatedToParentDirectory(pattern
|
|
3629
|
-
return pattern
|
|
3631
|
+
function isPatternRelatedToParentDirectory(pattern) {
|
|
3632
|
+
return pattern.startsWith("..") || pattern.startsWith("./..");
|
|
3630
3633
|
}
|
|
3631
3634
|
exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
|
|
3632
|
-
function getBaseDirectory(pattern
|
|
3633
|
-
return globParent(pattern
|
|
3635
|
+
function getBaseDirectory(pattern) {
|
|
3636
|
+
return globParent(pattern, { flipBackslashes: false });
|
|
3634
3637
|
}
|
|
3635
3638
|
exports.getBaseDirectory = getBaseDirectory;
|
|
3636
|
-
function hasGlobStar(pattern
|
|
3637
|
-
return pattern
|
|
3639
|
+
function hasGlobStar(pattern) {
|
|
3640
|
+
return pattern.includes(GLOBSTAR);
|
|
3638
3641
|
}
|
|
3639
3642
|
exports.hasGlobStar = hasGlobStar;
|
|
3640
|
-
function endsWithSlashGlobStar(pattern
|
|
3641
|
-
return pattern
|
|
3643
|
+
function endsWithSlashGlobStar(pattern) {
|
|
3644
|
+
return pattern.endsWith("/" + GLOBSTAR);
|
|
3642
3645
|
}
|
|
3643
3646
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
3644
|
-
function isAffectDepthOfReadingPattern(pattern
|
|
3645
|
-
const basename = path$
|
|
3646
|
-
return endsWithSlashGlobStar(pattern
|
|
3647
|
+
function isAffectDepthOfReadingPattern(pattern) {
|
|
3648
|
+
const basename = path$5.basename(pattern);
|
|
3649
|
+
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
3647
3650
|
}
|
|
3648
3651
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
3649
3652
|
function expandPatternsWithBraceExpansion(patterns) {
|
|
3650
|
-
return patterns.reduce((collection, pattern
|
|
3651
|
-
return collection.concat(expandBraceExpansion(pattern
|
|
3653
|
+
return patterns.reduce((collection, pattern) => {
|
|
3654
|
+
return collection.concat(expandBraceExpansion(pattern));
|
|
3652
3655
|
}, []);
|
|
3653
3656
|
}
|
|
3654
3657
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
3655
|
-
function expandBraceExpansion(pattern
|
|
3656
|
-
const patterns = micromatch.braces(pattern
|
|
3658
|
+
function expandBraceExpansion(pattern) {
|
|
3659
|
+
const patterns = micromatch.braces(pattern, {
|
|
3657
3660
|
expand: true,
|
|
3658
3661
|
nodupes: true,
|
|
3659
3662
|
keepEscaping: true
|
|
@@ -3666,16 +3669,16 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3666
3669
|
/**
|
|
3667
3670
|
* Micromatch can return an empty string in the case of patterns like `{a,}`.
|
|
3668
3671
|
*/
|
|
3669
|
-
return patterns.filter((pattern$
|
|
3672
|
+
return patterns.filter((pattern$1) => pattern$1 !== "");
|
|
3670
3673
|
}
|
|
3671
3674
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
3672
|
-
function getPatternParts(pattern
|
|
3673
|
-
let { parts } = micromatch.scan(pattern
|
|
3675
|
+
function getPatternParts(pattern, options$1) {
|
|
3676
|
+
let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options$1), { parts: true }));
|
|
3674
3677
|
/**
|
|
3675
3678
|
* The scan method returns an empty array in some cases.
|
|
3676
3679
|
* See micromatch/picomatch#58 for more details.
|
|
3677
3680
|
*/
|
|
3678
|
-
if (parts.length === 0) parts = [pattern
|
|
3681
|
+
if (parts.length === 0) parts = [pattern];
|
|
3679
3682
|
/**
|
|
3680
3683
|
* The scan method does not return an empty part for the pattern with a forward slash.
|
|
3681
3684
|
* This is another part of micromatch/picomatch#58.
|
|
@@ -3687,12 +3690,12 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3687
3690
|
return parts;
|
|
3688
3691
|
}
|
|
3689
3692
|
exports.getPatternParts = getPatternParts;
|
|
3690
|
-
function makeRe(pattern
|
|
3691
|
-
return micromatch.makeRe(pattern
|
|
3693
|
+
function makeRe(pattern, options$1) {
|
|
3694
|
+
return micromatch.makeRe(pattern, options$1);
|
|
3692
3695
|
}
|
|
3693
3696
|
exports.makeRe = makeRe;
|
|
3694
3697
|
function convertPatternsToRe(patterns, options$1) {
|
|
3695
|
-
return patterns.map((pattern
|
|
3698
|
+
return patterns.map((pattern) => makeRe(pattern, options$1));
|
|
3696
3699
|
}
|
|
3697
3700
|
exports.convertPatternsToRe = convertPatternsToRe;
|
|
3698
3701
|
function matchAny(entry, patternsRe) {
|
|
@@ -3703,31 +3706,31 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3703
3706
|
* This package only works with forward slashes as a path separator.
|
|
3704
3707
|
* Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
|
|
3705
3708
|
*/
|
|
3706
|
-
function removeDuplicateSlashes(pattern
|
|
3707
|
-
return pattern
|
|
3709
|
+
function removeDuplicateSlashes(pattern) {
|
|
3710
|
+
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
3708
3711
|
}
|
|
3709
3712
|
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
3710
3713
|
function partitionAbsoluteAndRelative(patterns) {
|
|
3711
3714
|
const absolute = [];
|
|
3712
3715
|
const relative$1 = [];
|
|
3713
|
-
for (const pattern
|
|
3714
|
-
else relative$1.push(pattern
|
|
3716
|
+
for (const pattern of patterns) if (isAbsolute(pattern)) absolute.push(pattern);
|
|
3717
|
+
else relative$1.push(pattern);
|
|
3715
3718
|
return [absolute, relative$1];
|
|
3716
3719
|
}
|
|
3717
3720
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
3718
|
-
function isAbsolute
|
|
3719
|
-
return path$
|
|
3721
|
+
function isAbsolute(pattern) {
|
|
3722
|
+
return path$5.isAbsolute(pattern);
|
|
3720
3723
|
}
|
|
3721
|
-
exports.isAbsolute = isAbsolute
|
|
3722
|
-
})
|
|
3724
|
+
exports.isAbsolute = isAbsolute;
|
|
3725
|
+
}));
|
|
3723
3726
|
|
|
3724
3727
|
//#endregion
|
|
3725
3728
|
//#region ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
|
|
3726
|
-
var require_merge2 = /* @__PURE__ */
|
|
3729
|
+
var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3727
3730
|
const PassThrough = __require("stream").PassThrough;
|
|
3728
3731
|
const slice = Array.prototype.slice;
|
|
3729
|
-
module.exports = merge2
|
|
3730
|
-
function merge2
|
|
3732
|
+
module.exports = merge2;
|
|
3733
|
+
function merge2() {
|
|
3731
3734
|
const streamsQueue = [];
|
|
3732
3735
|
const args = slice.call(arguments);
|
|
3733
3736
|
let merging = false;
|
|
@@ -3759,22 +3762,22 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
|
|
|
3759
3762
|
merging = false;
|
|
3760
3763
|
mergeStream();
|
|
3761
3764
|
}
|
|
3762
|
-
function pipe(stream
|
|
3765
|
+
function pipe(stream) {
|
|
3763
3766
|
function onend() {
|
|
3764
|
-
stream
|
|
3765
|
-
stream
|
|
3766
|
-
if (doPipeError) stream
|
|
3767
|
+
stream.removeListener("merge2UnpipeEnd", onend);
|
|
3768
|
+
stream.removeListener("end", onend);
|
|
3769
|
+
if (doPipeError) stream.removeListener("error", onerror);
|
|
3767
3770
|
next();
|
|
3768
3771
|
}
|
|
3769
3772
|
function onerror(err) {
|
|
3770
3773
|
mergedStream.emit("error", err);
|
|
3771
3774
|
}
|
|
3772
|
-
if (stream
|
|
3773
|
-
stream
|
|
3774
|
-
stream
|
|
3775
|
-
if (doPipeError) stream
|
|
3776
|
-
stream
|
|
3777
|
-
stream
|
|
3775
|
+
if (stream._readableState.endEmitted) return next();
|
|
3776
|
+
stream.on("merge2UnpipeEnd", onend);
|
|
3777
|
+
stream.on("end", onend);
|
|
3778
|
+
if (doPipeError) stream.on("error", onerror);
|
|
3779
|
+
stream.pipe(mergedStream, { end: false });
|
|
3780
|
+
stream.resume();
|
|
3778
3781
|
}
|
|
3779
3782
|
for (let i = 0; i < streams.length; i++) pipe(streams[i]);
|
|
3780
3783
|
next();
|
|
@@ -3786,8 +3789,8 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
|
|
|
3786
3789
|
}
|
|
3787
3790
|
mergedStream.setMaxListeners(0);
|
|
3788
3791
|
mergedStream.add = addStream;
|
|
3789
|
-
mergedStream.on("unpipe", function(stream
|
|
3790
|
-
stream
|
|
3792
|
+
mergedStream.on("unpipe", function(stream) {
|
|
3793
|
+
stream.emit("merge2UnpipeEnd");
|
|
3791
3794
|
});
|
|
3792
3795
|
if (args.length) addStream.apply(null, args);
|
|
3793
3796
|
return mergedStream;
|
|
@@ -3800,18 +3803,18 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
|
|
|
3800
3803
|
} else for (let i = 0, len = streams.length; i < len; i++) streams[i] = pauseStreams(streams[i], options$1);
|
|
3801
3804
|
return streams;
|
|
3802
3805
|
}
|
|
3803
|
-
})
|
|
3806
|
+
}));
|
|
3804
3807
|
|
|
3805
3808
|
//#endregion
|
|
3806
3809
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
3807
|
-
var require_stream$3 = /* @__PURE__ */
|
|
3810
|
+
var require_stream$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3808
3811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3809
3812
|
exports.merge = void 0;
|
|
3810
3813
|
const merge2 = require_merge2();
|
|
3811
3814
|
function merge(streams) {
|
|
3812
3815
|
const mergedStream = merge2(streams);
|
|
3813
|
-
streams.forEach((stream
|
|
3814
|
-
stream
|
|
3816
|
+
streams.forEach((stream) => {
|
|
3817
|
+
stream.once("error", (error) => mergedStream.emit("error", error));
|
|
3815
3818
|
});
|
|
3816
3819
|
mergedStream.once("close", () => propagateCloseEventToSources(streams));
|
|
3817
3820
|
mergedStream.once("end", () => propagateCloseEventToSources(streams));
|
|
@@ -3819,13 +3822,13 @@ var require_stream$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
3819
3822
|
}
|
|
3820
3823
|
exports.merge = merge;
|
|
3821
3824
|
function propagateCloseEventToSources(streams) {
|
|
3822
|
-
streams.forEach((stream
|
|
3825
|
+
streams.forEach((stream) => stream.emit("close"));
|
|
3823
3826
|
}
|
|
3824
|
-
})
|
|
3827
|
+
}));
|
|
3825
3828
|
|
|
3826
3829
|
//#endregion
|
|
3827
3830
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
3828
|
-
var require_string = /* @__PURE__ */
|
|
3831
|
+
var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3829
3832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3830
3833
|
exports.isEmpty = exports.isString = void 0;
|
|
3831
3834
|
function isString(input) {
|
|
@@ -3836,42 +3839,42 @@ var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
3836
3839
|
return input === "";
|
|
3837
3840
|
}
|
|
3838
3841
|
exports.isEmpty = isEmpty;
|
|
3839
|
-
})
|
|
3842
|
+
}));
|
|
3840
3843
|
|
|
3841
3844
|
//#endregion
|
|
3842
3845
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
3843
|
-
var require_utils$1 = /* @__PURE__ */
|
|
3846
|
+
var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3844
3847
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3845
3848
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
3846
3849
|
const array = require_array();
|
|
3847
3850
|
exports.array = array;
|
|
3848
3851
|
const errno = require_errno();
|
|
3849
3852
|
exports.errno = errno;
|
|
3850
|
-
const fs
|
|
3851
|
-
exports.fs = fs
|
|
3852
|
-
const path
|
|
3853
|
-
exports.path = path
|
|
3853
|
+
const fs = require_fs$3();
|
|
3854
|
+
exports.fs = fs;
|
|
3855
|
+
const path = require_path();
|
|
3856
|
+
exports.path = path;
|
|
3854
3857
|
const pattern = require_pattern();
|
|
3855
3858
|
exports.pattern = pattern;
|
|
3856
3859
|
const stream = require_stream$3();
|
|
3857
3860
|
exports.stream = stream;
|
|
3858
3861
|
const string = require_string();
|
|
3859
3862
|
exports.string = string;
|
|
3860
|
-
})
|
|
3863
|
+
}));
|
|
3861
3864
|
|
|
3862
3865
|
//#endregion
|
|
3863
3866
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
3864
|
-
var require_tasks = /* @__PURE__ */
|
|
3867
|
+
var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3865
3868
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3866
3869
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
3867
|
-
const utils
|
|
3870
|
+
const utils = require_utils$1();
|
|
3868
3871
|
function generate(input, settings) {
|
|
3869
3872
|
const patterns = processPatterns(input, settings);
|
|
3870
3873
|
const ignore = processPatterns(settings.ignore, settings);
|
|
3871
3874
|
const positivePatterns = getPositivePatterns(patterns);
|
|
3872
3875
|
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
|
3873
|
-
const staticPatterns = positivePatterns.filter((pattern
|
|
3874
|
-
const dynamicPatterns = positivePatterns.filter((pattern
|
|
3876
|
+
const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
|
|
3877
|
+
const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
|
|
3875
3878
|
const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, false);
|
|
3876
3879
|
const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, true);
|
|
3877
3880
|
return staticTasks.concat(dynamicTasks);
|
|
@@ -3886,7 +3889,7 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3886
3889
|
* To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown
|
|
3887
3890
|
* in matching in the case of a large set of patterns after expansion.
|
|
3888
3891
|
*/
|
|
3889
|
-
if (settings.braceExpansion) patterns = utils
|
|
3892
|
+
if (settings.braceExpansion) patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
|
|
3890
3893
|
/**
|
|
3891
3894
|
* If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used
|
|
3892
3895
|
* at any nesting level.
|
|
@@ -3895,11 +3898,11 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3895
3898
|
* the pattern in the filter before creating a regular expression. There is no need to change the patterns
|
|
3896
3899
|
* in the application. Only on the input.
|
|
3897
3900
|
*/
|
|
3898
|
-
if (settings.baseNameMatch) patterns = patterns.map((pattern
|
|
3901
|
+
if (settings.baseNameMatch) patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
|
|
3899
3902
|
/**
|
|
3900
3903
|
* This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion.
|
|
3901
3904
|
*/
|
|
3902
|
-
return patterns.map((pattern
|
|
3905
|
+
return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
|
|
3903
3906
|
}
|
|
3904
3907
|
/**
|
|
3905
3908
|
* Returns tasks grouped by basic pattern directories.
|
|
@@ -3909,8 +3912,8 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3909
3912
|
*/
|
|
3910
3913
|
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
3911
3914
|
const tasks = [];
|
|
3912
|
-
const patternsOutsideCurrentDirectory = utils
|
|
3913
|
-
const patternsInsideCurrentDirectory = utils
|
|
3915
|
+
const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
3916
|
+
const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive);
|
|
3914
3917
|
const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
|
|
3915
3918
|
const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
|
|
3916
3919
|
tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
|
|
@@ -3920,18 +3923,18 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3920
3923
|
}
|
|
3921
3924
|
exports.convertPatternsToTasks = convertPatternsToTasks;
|
|
3922
3925
|
function getPositivePatterns(patterns) {
|
|
3923
|
-
return utils
|
|
3926
|
+
return utils.pattern.getPositivePatterns(patterns);
|
|
3924
3927
|
}
|
|
3925
3928
|
exports.getPositivePatterns = getPositivePatterns;
|
|
3926
3929
|
function getNegativePatternsAsPositive(patterns, ignore) {
|
|
3927
|
-
return utils
|
|
3930
|
+
return utils.pattern.getNegativePatterns(patterns).concat(ignore).map(utils.pattern.convertToPositivePattern);
|
|
3928
3931
|
}
|
|
3929
3932
|
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
3930
3933
|
function groupPatternsByBaseDirectory(patterns) {
|
|
3931
|
-
return patterns.reduce((collection, pattern
|
|
3932
|
-
const base = utils
|
|
3933
|
-
if (base in collection) collection[base].push(pattern
|
|
3934
|
-
else collection[base] = [pattern
|
|
3934
|
+
return patterns.reduce((collection, pattern) => {
|
|
3935
|
+
const base = utils.pattern.getBaseDirectory(pattern);
|
|
3936
|
+
if (base in collection) collection[base].push(pattern);
|
|
3937
|
+
else collection[base] = [pattern];
|
|
3935
3938
|
return collection;
|
|
3936
3939
|
}, {});
|
|
3937
3940
|
}
|
|
@@ -3948,99 +3951,99 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3948
3951
|
positive,
|
|
3949
3952
|
negative,
|
|
3950
3953
|
base,
|
|
3951
|
-
patterns: [].concat(positive, negative.map(utils
|
|
3954
|
+
patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
|
|
3952
3955
|
};
|
|
3953
3956
|
}
|
|
3954
3957
|
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
3955
|
-
})
|
|
3958
|
+
}));
|
|
3956
3959
|
|
|
3957
3960
|
//#endregion
|
|
3958
3961
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
3959
|
-
var require_async$5 = /* @__PURE__ */
|
|
3962
|
+
var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3960
3963
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3961
3964
|
exports.read = void 0;
|
|
3962
|
-
function read
|
|
3963
|
-
settings.fs.lstat(path$
|
|
3965
|
+
function read(path$10, settings, callback) {
|
|
3966
|
+
settings.fs.lstat(path$10, (lstatError, lstat) => {
|
|
3964
3967
|
if (lstatError !== null) {
|
|
3965
|
-
callFailureCallback
|
|
3968
|
+
callFailureCallback(callback, lstatError);
|
|
3966
3969
|
return;
|
|
3967
3970
|
}
|
|
3968
3971
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
3969
|
-
callSuccessCallback
|
|
3972
|
+
callSuccessCallback(callback, lstat);
|
|
3970
3973
|
return;
|
|
3971
3974
|
}
|
|
3972
|
-
settings.fs.stat(path$
|
|
3975
|
+
settings.fs.stat(path$10, (statError, stat) => {
|
|
3973
3976
|
if (statError !== null) {
|
|
3974
3977
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
3975
|
-
callFailureCallback
|
|
3978
|
+
callFailureCallback(callback, statError);
|
|
3976
3979
|
return;
|
|
3977
3980
|
}
|
|
3978
|
-
callSuccessCallback
|
|
3981
|
+
callSuccessCallback(callback, lstat);
|
|
3979
3982
|
return;
|
|
3980
3983
|
}
|
|
3981
|
-
if (settings.markSymbolicLink) stat
|
|
3982
|
-
callSuccessCallback
|
|
3984
|
+
if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
|
|
3985
|
+
callSuccessCallback(callback, stat);
|
|
3983
3986
|
});
|
|
3984
3987
|
});
|
|
3985
3988
|
}
|
|
3986
|
-
exports.read = read
|
|
3987
|
-
function callFailureCallback
|
|
3989
|
+
exports.read = read;
|
|
3990
|
+
function callFailureCallback(callback, error) {
|
|
3988
3991
|
callback(error);
|
|
3989
3992
|
}
|
|
3990
|
-
function callSuccessCallback
|
|
3993
|
+
function callSuccessCallback(callback, result) {
|
|
3991
3994
|
callback(null, result);
|
|
3992
3995
|
}
|
|
3993
|
-
})
|
|
3996
|
+
}));
|
|
3994
3997
|
|
|
3995
3998
|
//#endregion
|
|
3996
3999
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
3997
|
-
var require_sync$5 = /* @__PURE__ */
|
|
4000
|
+
var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3998
4001
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3999
4002
|
exports.read = void 0;
|
|
4000
|
-
function read
|
|
4001
|
-
const lstat = settings.fs.lstatSync(path$
|
|
4003
|
+
function read(path$10, settings) {
|
|
4004
|
+
const lstat = settings.fs.lstatSync(path$10);
|
|
4002
4005
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
|
|
4003
4006
|
try {
|
|
4004
|
-
const stat
|
|
4005
|
-
if (settings.markSymbolicLink) stat
|
|
4006
|
-
return stat
|
|
4007
|
+
const stat = settings.fs.statSync(path$10);
|
|
4008
|
+
if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
|
|
4009
|
+
return stat;
|
|
4007
4010
|
} catch (error) {
|
|
4008
4011
|
if (!settings.throwErrorOnBrokenSymbolicLink) return lstat;
|
|
4009
4012
|
throw error;
|
|
4010
4013
|
}
|
|
4011
4014
|
}
|
|
4012
|
-
exports.read = read
|
|
4013
|
-
})
|
|
4015
|
+
exports.read = read;
|
|
4016
|
+
}));
|
|
4014
4017
|
|
|
4015
4018
|
//#endregion
|
|
4016
4019
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js
|
|
4017
|
-
var require_fs$2 = /* @__PURE__ */
|
|
4020
|
+
var require_fs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4018
4021
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4019
4022
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4020
|
-
const fs$
|
|
4023
|
+
const fs$3 = __require("fs");
|
|
4021
4024
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
4022
|
-
lstat: fs$
|
|
4023
|
-
stat: fs$
|
|
4024
|
-
lstatSync: fs$
|
|
4025
|
-
statSync: fs$
|
|
4025
|
+
lstat: fs$3.lstat,
|
|
4026
|
+
stat: fs$3.stat,
|
|
4027
|
+
lstatSync: fs$3.lstatSync,
|
|
4028
|
+
statSync: fs$3.statSync
|
|
4026
4029
|
};
|
|
4027
|
-
function createFileSystemAdapter
|
|
4030
|
+
function createFileSystemAdapter(fsMethods) {
|
|
4028
4031
|
if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
|
|
4029
4032
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
4030
4033
|
}
|
|
4031
|
-
exports.createFileSystemAdapter = createFileSystemAdapter
|
|
4032
|
-
})
|
|
4034
|
+
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4035
|
+
}));
|
|
4033
4036
|
|
|
4034
4037
|
//#endregion
|
|
4035
4038
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
|
|
4036
|
-
var require_settings$3 = /* @__PURE__ */
|
|
4039
|
+
var require_settings$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4037
4040
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4038
|
-
const fs
|
|
4039
|
-
var Settings
|
|
4041
|
+
const fs = require_fs$2();
|
|
4042
|
+
var Settings = class {
|
|
4040
4043
|
constructor(_options = {}) {
|
|
4041
4044
|
this._options = _options;
|
|
4042
4045
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
4043
|
-
this.fs = fs
|
|
4046
|
+
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
4044
4047
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
4045
4048
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
4046
4049
|
}
|
|
@@ -4048,53 +4051,53 @@ var require_settings$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
4048
4051
|
return option !== null && option !== void 0 ? option : value;
|
|
4049
4052
|
}
|
|
4050
4053
|
};
|
|
4051
|
-
exports.default = Settings
|
|
4052
|
-
})
|
|
4054
|
+
exports.default = Settings;
|
|
4055
|
+
}));
|
|
4053
4056
|
|
|
4054
4057
|
//#endregion
|
|
4055
4058
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
|
|
4056
|
-
var require_out$3 = /* @__PURE__ */
|
|
4059
|
+
var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4057
4060
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4058
4061
|
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
4059
|
-
const async
|
|
4060
|
-
const sync
|
|
4061
|
-
const settings_1
|
|
4062
|
-
exports.Settings = settings_1
|
|
4063
|
-
function stat(path$
|
|
4062
|
+
const async = require_async$5();
|
|
4063
|
+
const sync = require_sync$5();
|
|
4064
|
+
const settings_1 = require_settings$3();
|
|
4065
|
+
exports.Settings = settings_1.default;
|
|
4066
|
+
function stat(path$10, optionsOrSettingsOrCallback, callback) {
|
|
4064
4067
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4065
|
-
async
|
|
4068
|
+
async.read(path$10, getSettings(), optionsOrSettingsOrCallback);
|
|
4066
4069
|
return;
|
|
4067
4070
|
}
|
|
4068
|
-
async
|
|
4071
|
+
async.read(path$10, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4069
4072
|
}
|
|
4070
4073
|
exports.stat = stat;
|
|
4071
|
-
function statSync(path$
|
|
4072
|
-
const settings = getSettings
|
|
4073
|
-
return sync
|
|
4074
|
+
function statSync(path$10, optionsOrSettings) {
|
|
4075
|
+
const settings = getSettings(optionsOrSettings);
|
|
4076
|
+
return sync.read(path$10, settings);
|
|
4074
4077
|
}
|
|
4075
4078
|
exports.statSync = statSync;
|
|
4076
|
-
function getSettings
|
|
4077
|
-
if (settingsOrOptions instanceof settings_1
|
|
4078
|
-
return new settings_1
|
|
4079
|
+
function getSettings(settingsOrOptions = {}) {
|
|
4080
|
+
if (settingsOrOptions instanceof settings_1.default) return settingsOrOptions;
|
|
4081
|
+
return new settings_1.default(settingsOrOptions);
|
|
4079
4082
|
}
|
|
4080
|
-
})
|
|
4083
|
+
}));
|
|
4081
4084
|
|
|
4082
4085
|
//#endregion
|
|
4083
4086
|
//#region ../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
4084
|
-
var require_queue_microtask = /* @__PURE__ */
|
|
4087
|
+
var require_queue_microtask = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4085
4088
|
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4086
4089
|
let promise;
|
|
4087
4090
|
module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
|
|
4088
4091
|
throw err;
|
|
4089
4092
|
}, 0));
|
|
4090
|
-
})
|
|
4093
|
+
}));
|
|
4091
4094
|
|
|
4092
4095
|
//#endregion
|
|
4093
4096
|
//#region ../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
4094
|
-
var require_run_parallel = /* @__PURE__ */
|
|
4097
|
+
var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4095
4098
|
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4096
4099
|
module.exports = runParallel;
|
|
4097
|
-
const queueMicrotask
|
|
4100
|
+
const queueMicrotask = require_queue_microtask();
|
|
4098
4101
|
function runParallel(tasks, cb) {
|
|
4099
4102
|
let results, pending, keys$1;
|
|
4100
4103
|
let isSync = true;
|
|
@@ -4111,7 +4114,7 @@ var require_run_parallel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
4111
4114
|
if (cb) cb(err, results);
|
|
4112
4115
|
cb = null;
|
|
4113
4116
|
}
|
|
4114
|
-
if (isSync) queueMicrotask
|
|
4117
|
+
if (isSync) queueMicrotask(end);
|
|
4115
4118
|
else end();
|
|
4116
4119
|
}
|
|
4117
4120
|
function each(i, err, result) {
|
|
@@ -4131,11 +4134,11 @@ var require_run_parallel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
4131
4134
|
});
|
|
4132
4135
|
isSync = false;
|
|
4133
4136
|
}
|
|
4134
|
-
})
|
|
4137
|
+
}));
|
|
4135
4138
|
|
|
4136
4139
|
//#endregion
|
|
4137
4140
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
4138
|
-
var require_constants = /* @__PURE__ */
|
|
4141
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4139
4142
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4140
4143
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4141
4144
|
const NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -4150,11 +4153,11 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@
|
|
|
4150
4153
|
* IS `true` for Node.js 10.10 and greater.
|
|
4151
4154
|
*/
|
|
4152
4155
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
|
|
4153
|
-
})
|
|
4156
|
+
}));
|
|
4154
4157
|
|
|
4155
4158
|
//#endregion
|
|
4156
4159
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
4157
|
-
var require_fs$1 = /* @__PURE__ */
|
|
4160
|
+
var require_fs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4158
4161
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4159
4162
|
exports.createDirentFromStats = void 0;
|
|
4160
4163
|
var DirentFromStats = class {
|
|
@@ -4173,75 +4176,75 @@ var require_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodel
|
|
|
4173
4176
|
return new DirentFromStats(name, stats);
|
|
4174
4177
|
}
|
|
4175
4178
|
exports.createDirentFromStats = createDirentFromStats;
|
|
4176
|
-
})
|
|
4179
|
+
}));
|
|
4177
4180
|
|
|
4178
4181
|
//#endregion
|
|
4179
4182
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
4180
|
-
var require_utils = /* @__PURE__ */
|
|
4183
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4181
4184
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4182
4185
|
exports.fs = void 0;
|
|
4183
|
-
const fs
|
|
4184
|
-
exports.fs = fs
|
|
4185
|
-
})
|
|
4186
|
+
const fs = require_fs$1();
|
|
4187
|
+
exports.fs = fs;
|
|
4188
|
+
}));
|
|
4186
4189
|
|
|
4187
4190
|
//#endregion
|
|
4188
4191
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
4189
|
-
var require_common$1 = /* @__PURE__ */
|
|
4192
|
+
var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4190
4193
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4191
4194
|
exports.joinPathSegments = void 0;
|
|
4192
|
-
function joinPathSegments
|
|
4195
|
+
function joinPathSegments(a, b, separator) {
|
|
4193
4196
|
/**
|
|
4194
4197
|
* The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
|
|
4195
4198
|
*/
|
|
4196
4199
|
if (a.endsWith(separator)) return a + b;
|
|
4197
4200
|
return a + separator + b;
|
|
4198
4201
|
}
|
|
4199
|
-
exports.joinPathSegments = joinPathSegments
|
|
4200
|
-
})
|
|
4202
|
+
exports.joinPathSegments = joinPathSegments;
|
|
4203
|
+
}));
|
|
4201
4204
|
|
|
4202
4205
|
//#endregion
|
|
4203
4206
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
4204
|
-
var require_async$4 = /* @__PURE__ */
|
|
4207
|
+
var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4205
4208
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4206
4209
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4207
|
-
const fsStat
|
|
4210
|
+
const fsStat = require_out$3();
|
|
4208
4211
|
const rpl = require_run_parallel();
|
|
4209
|
-
const constants_1
|
|
4210
|
-
const utils
|
|
4211
|
-
const common
|
|
4212
|
-
function read
|
|
4213
|
-
if (!settings.stats && constants_1
|
|
4214
|
-
readdirWithFileTypes
|
|
4212
|
+
const constants_1 = require_constants();
|
|
4213
|
+
const utils = require_utils();
|
|
4214
|
+
const common = require_common$1();
|
|
4215
|
+
function read(directory, settings, callback) {
|
|
4216
|
+
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
4217
|
+
readdirWithFileTypes(directory, settings, callback);
|
|
4215
4218
|
return;
|
|
4216
4219
|
}
|
|
4217
|
-
readdir
|
|
4220
|
+
readdir(directory, settings, callback);
|
|
4218
4221
|
}
|
|
4219
|
-
exports.read = read
|
|
4220
|
-
function readdirWithFileTypes
|
|
4222
|
+
exports.read = read;
|
|
4223
|
+
function readdirWithFileTypes(directory, settings, callback) {
|
|
4221
4224
|
settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
|
|
4222
4225
|
if (readdirError !== null) {
|
|
4223
|
-
callFailureCallback
|
|
4226
|
+
callFailureCallback(callback, readdirError);
|
|
4224
4227
|
return;
|
|
4225
4228
|
}
|
|
4226
4229
|
const entries = dirents.map((dirent) => ({
|
|
4227
4230
|
dirent,
|
|
4228
4231
|
name: dirent.name,
|
|
4229
|
-
path: common
|
|
4232
|
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
|
4230
4233
|
}));
|
|
4231
4234
|
if (!settings.followSymbolicLinks) {
|
|
4232
|
-
callSuccessCallback
|
|
4235
|
+
callSuccessCallback(callback, entries);
|
|
4233
4236
|
return;
|
|
4234
4237
|
}
|
|
4235
4238
|
rpl(entries.map((entry) => makeRplTaskEntry(entry, settings)), (rplError, rplEntries) => {
|
|
4236
4239
|
if (rplError !== null) {
|
|
4237
|
-
callFailureCallback
|
|
4240
|
+
callFailureCallback(callback, rplError);
|
|
4238
4241
|
return;
|
|
4239
4242
|
}
|
|
4240
|
-
callSuccessCallback
|
|
4243
|
+
callSuccessCallback(callback, rplEntries);
|
|
4241
4244
|
});
|
|
4242
4245
|
});
|
|
4243
4246
|
}
|
|
4244
|
-
exports.readdirWithFileTypes = readdirWithFileTypes
|
|
4247
|
+
exports.readdirWithFileTypes = readdirWithFileTypes;
|
|
4245
4248
|
function makeRplTaskEntry(entry, settings) {
|
|
4246
4249
|
return (done) => {
|
|
4247
4250
|
if (!entry.dirent.isSymbolicLink()) {
|
|
@@ -4257,29 +4260,29 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4257
4260
|
done(null, entry);
|
|
4258
4261
|
return;
|
|
4259
4262
|
}
|
|
4260
|
-
entry.dirent = utils
|
|
4263
|
+
entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
|
|
4261
4264
|
done(null, entry);
|
|
4262
4265
|
});
|
|
4263
4266
|
};
|
|
4264
4267
|
}
|
|
4265
|
-
function readdir
|
|
4268
|
+
function readdir(directory, settings, callback) {
|
|
4266
4269
|
settings.fs.readdir(directory, (readdirError, names) => {
|
|
4267
4270
|
if (readdirError !== null) {
|
|
4268
|
-
callFailureCallback
|
|
4271
|
+
callFailureCallback(callback, readdirError);
|
|
4269
4272
|
return;
|
|
4270
4273
|
}
|
|
4271
4274
|
rpl(names.map((name) => {
|
|
4272
|
-
const path$
|
|
4275
|
+
const path$10 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4273
4276
|
return (done) => {
|
|
4274
|
-
fsStat
|
|
4277
|
+
fsStat.stat(path$10, settings.fsStatSettings, (error, stats) => {
|
|
4275
4278
|
if (error !== null) {
|
|
4276
4279
|
done(error);
|
|
4277
4280
|
return;
|
|
4278
4281
|
}
|
|
4279
4282
|
const entry = {
|
|
4280
4283
|
name,
|
|
4281
|
-
path: path$
|
|
4282
|
-
dirent: utils
|
|
4284
|
+
path: path$10,
|
|
4285
|
+
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
4283
4286
|
};
|
|
4284
4287
|
if (settings.stats) entry.stats = stats;
|
|
4285
4288
|
done(null, entry);
|
|
@@ -4287,31 +4290,31 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4287
4290
|
};
|
|
4288
4291
|
}), (rplError, entries) => {
|
|
4289
4292
|
if (rplError !== null) {
|
|
4290
|
-
callFailureCallback
|
|
4293
|
+
callFailureCallback(callback, rplError);
|
|
4291
4294
|
return;
|
|
4292
4295
|
}
|
|
4293
|
-
callSuccessCallback
|
|
4296
|
+
callSuccessCallback(callback, entries);
|
|
4294
4297
|
});
|
|
4295
4298
|
});
|
|
4296
4299
|
}
|
|
4297
|
-
exports.readdir = readdir
|
|
4298
|
-
function callFailureCallback
|
|
4300
|
+
exports.readdir = readdir;
|
|
4301
|
+
function callFailureCallback(callback, error) {
|
|
4299
4302
|
callback(error);
|
|
4300
4303
|
}
|
|
4301
|
-
function callSuccessCallback
|
|
4304
|
+
function callSuccessCallback(callback, result) {
|
|
4302
4305
|
callback(null, result);
|
|
4303
4306
|
}
|
|
4304
|
-
})
|
|
4307
|
+
}));
|
|
4305
4308
|
|
|
4306
4309
|
//#endregion
|
|
4307
4310
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
4308
|
-
var require_sync$4 = /* @__PURE__ */
|
|
4311
|
+
var require_sync$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4309
4312
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4310
4313
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4311
|
-
const fsStat
|
|
4314
|
+
const fsStat = require_out$3();
|
|
4312
4315
|
const constants_1 = require_constants();
|
|
4313
|
-
const utils
|
|
4314
|
-
const common
|
|
4316
|
+
const utils = require_utils();
|
|
4317
|
+
const common = require_common$1();
|
|
4315
4318
|
function read(directory, settings) {
|
|
4316
4319
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return readdirWithFileTypes(directory, settings);
|
|
4317
4320
|
return readdir(directory, settings);
|
|
@@ -4322,11 +4325,11 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4322
4325
|
const entry = {
|
|
4323
4326
|
dirent,
|
|
4324
4327
|
name: dirent.name,
|
|
4325
|
-
path: common
|
|
4328
|
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
|
4326
4329
|
};
|
|
4327
4330
|
if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) try {
|
|
4328
4331
|
const stats = settings.fs.statSync(entry.path);
|
|
4329
|
-
entry.dirent = utils
|
|
4332
|
+
entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
|
|
4330
4333
|
} catch (error) {
|
|
4331
4334
|
if (settings.throwErrorOnBrokenSymbolicLink) throw error;
|
|
4332
4335
|
}
|
|
@@ -4336,57 +4339,57 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4336
4339
|
exports.readdirWithFileTypes = readdirWithFileTypes;
|
|
4337
4340
|
function readdir(directory, settings) {
|
|
4338
4341
|
return settings.fs.readdirSync(directory).map((name) => {
|
|
4339
|
-
const entryPath = common
|
|
4340
|
-
const stats = fsStat
|
|
4342
|
+
const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4343
|
+
const stats = fsStat.statSync(entryPath, settings.fsStatSettings);
|
|
4341
4344
|
const entry = {
|
|
4342
4345
|
name,
|
|
4343
4346
|
path: entryPath,
|
|
4344
|
-
dirent: utils
|
|
4347
|
+
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
4345
4348
|
};
|
|
4346
4349
|
if (settings.stats) entry.stats = stats;
|
|
4347
4350
|
return entry;
|
|
4348
4351
|
});
|
|
4349
4352
|
}
|
|
4350
4353
|
exports.readdir = readdir;
|
|
4351
|
-
})
|
|
4354
|
+
}));
|
|
4352
4355
|
|
|
4353
4356
|
//#endregion
|
|
4354
4357
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js
|
|
4355
|
-
var require_fs = /* @__PURE__ */
|
|
4358
|
+
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4356
4359
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4357
4360
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4358
|
-
const fs$
|
|
4361
|
+
const fs$2 = __require("fs");
|
|
4359
4362
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
4360
|
-
lstat: fs$
|
|
4361
|
-
stat: fs$
|
|
4362
|
-
lstatSync: fs$
|
|
4363
|
-
statSync: fs$
|
|
4364
|
-
readdir: fs$
|
|
4365
|
-
readdirSync: fs$
|
|
4363
|
+
lstat: fs$2.lstat,
|
|
4364
|
+
stat: fs$2.stat,
|
|
4365
|
+
lstatSync: fs$2.lstatSync,
|
|
4366
|
+
statSync: fs$2.statSync,
|
|
4367
|
+
readdir: fs$2.readdir,
|
|
4368
|
+
readdirSync: fs$2.readdirSync
|
|
4366
4369
|
};
|
|
4367
4370
|
function createFileSystemAdapter(fsMethods) {
|
|
4368
4371
|
if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
|
|
4369
4372
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
4370
4373
|
}
|
|
4371
4374
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4372
|
-
})
|
|
4375
|
+
}));
|
|
4373
4376
|
|
|
4374
4377
|
//#endregion
|
|
4375
4378
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
|
|
4376
|
-
var require_settings$2 = /* @__PURE__ */
|
|
4379
|
+
var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4377
4380
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4378
4381
|
const path$4 = __require("path");
|
|
4379
|
-
const fsStat
|
|
4380
|
-
const fs
|
|
4381
|
-
var Settings
|
|
4382
|
+
const fsStat = require_out$3();
|
|
4383
|
+
const fs = require_fs();
|
|
4384
|
+
var Settings = class {
|
|
4382
4385
|
constructor(_options = {}) {
|
|
4383
4386
|
this._options = _options;
|
|
4384
4387
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
4385
|
-
this.fs = fs
|
|
4388
|
+
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
4386
4389
|
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$4.sep);
|
|
4387
4390
|
this.stats = this._getValue(this._options.stats, false);
|
|
4388
4391
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
4389
|
-
this.fsStatSettings = new fsStat
|
|
4392
|
+
this.fsStatSettings = new fsStat.Settings({
|
|
4390
4393
|
followSymbolicLink: this.followSymbolicLinks,
|
|
4391
4394
|
fs: this.fs,
|
|
4392
4395
|
throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
|
|
@@ -4396,41 +4399,41 @@ var require_settings$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
4396
4399
|
return option !== null && option !== void 0 ? option : value;
|
|
4397
4400
|
}
|
|
4398
4401
|
};
|
|
4399
|
-
exports.default = Settings
|
|
4400
|
-
})
|
|
4402
|
+
exports.default = Settings;
|
|
4403
|
+
}));
|
|
4401
4404
|
|
|
4402
4405
|
//#endregion
|
|
4403
4406
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
|
|
4404
|
-
var require_out$2 = /* @__PURE__ */
|
|
4407
|
+
var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4405
4408
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4406
4409
|
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
4407
4410
|
const async = require_async$4();
|
|
4408
4411
|
const sync = require_sync$4();
|
|
4409
|
-
const settings_1
|
|
4410
|
-
exports.Settings = settings_1
|
|
4411
|
-
function scandir(path$
|
|
4412
|
+
const settings_1 = require_settings$2();
|
|
4413
|
+
exports.Settings = settings_1.default;
|
|
4414
|
+
function scandir(path$10, optionsOrSettingsOrCallback, callback) {
|
|
4412
4415
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4413
|
-
async.read(path$
|
|
4416
|
+
async.read(path$10, getSettings(), optionsOrSettingsOrCallback);
|
|
4414
4417
|
return;
|
|
4415
4418
|
}
|
|
4416
|
-
async.read(path$
|
|
4419
|
+
async.read(path$10, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4417
4420
|
}
|
|
4418
4421
|
exports.scandir = scandir;
|
|
4419
|
-
function scandirSync(path$
|
|
4420
|
-
const settings = getSettings
|
|
4421
|
-
return sync.read(path$
|
|
4422
|
+
function scandirSync(path$10, optionsOrSettings) {
|
|
4423
|
+
const settings = getSettings(optionsOrSettings);
|
|
4424
|
+
return sync.read(path$10, settings);
|
|
4422
4425
|
}
|
|
4423
4426
|
exports.scandirSync = scandirSync;
|
|
4424
|
-
function getSettings
|
|
4425
|
-
if (settingsOrOptions instanceof settings_1
|
|
4426
|
-
return new settings_1
|
|
4427
|
+
function getSettings(settingsOrOptions = {}) {
|
|
4428
|
+
if (settingsOrOptions instanceof settings_1.default) return settingsOrOptions;
|
|
4429
|
+
return new settings_1.default(settingsOrOptions);
|
|
4427
4430
|
}
|
|
4428
|
-
})
|
|
4431
|
+
}));
|
|
4429
4432
|
|
|
4430
4433
|
//#endregion
|
|
4431
4434
|
//#region ../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js
|
|
4432
|
-
var require_reusify = /* @__PURE__ */
|
|
4433
|
-
function reusify
|
|
4435
|
+
var require_reusify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4436
|
+
function reusify(Constructor) {
|
|
4434
4437
|
var head = new Constructor();
|
|
4435
4438
|
var tail = head;
|
|
4436
4439
|
function get() {
|
|
@@ -4452,12 +4455,12 @@ var require_reusify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/reu
|
|
|
4452
4455
|
release
|
|
4453
4456
|
};
|
|
4454
4457
|
}
|
|
4455
|
-
module.exports = reusify
|
|
4456
|
-
})
|
|
4458
|
+
module.exports = reusify;
|
|
4459
|
+
}));
|
|
4457
4460
|
|
|
4458
4461
|
//#endregion
|
|
4459
4462
|
//#region ../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js
|
|
4460
|
-
var require_queue = /* @__PURE__ */
|
|
4463
|
+
var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4461
4464
|
var reusify = require_reusify();
|
|
4462
4465
|
function fastqueue(context, worker, _concurrency) {
|
|
4463
4466
|
if (typeof context === "function") {
|
|
@@ -4471,7 +4474,7 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4471
4474
|
var queueTail = null;
|
|
4472
4475
|
var _running = 0;
|
|
4473
4476
|
var errorHandler = null;
|
|
4474
|
-
var self
|
|
4477
|
+
var self = {
|
|
4475
4478
|
push,
|
|
4476
4479
|
drain: noop,
|
|
4477
4480
|
saturated: noop,
|
|
@@ -4483,7 +4486,7 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4483
4486
|
set concurrency(value) {
|
|
4484
4487
|
if (!(value >= 1)) throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4485
4488
|
_concurrency = value;
|
|
4486
|
-
if (self
|
|
4489
|
+
if (self.paused) return;
|
|
4487
4490
|
for (; queueHead && _running < _concurrency;) {
|
|
4488
4491
|
_running++;
|
|
4489
4492
|
release();
|
|
@@ -4500,12 +4503,12 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4500
4503
|
killAndDrain,
|
|
4501
4504
|
error
|
|
4502
4505
|
};
|
|
4503
|
-
return self
|
|
4506
|
+
return self;
|
|
4504
4507
|
function running() {
|
|
4505
4508
|
return _running;
|
|
4506
4509
|
}
|
|
4507
4510
|
function pause() {
|
|
4508
|
-
self
|
|
4511
|
+
self.paused = true;
|
|
4509
4512
|
}
|
|
4510
4513
|
function length() {
|
|
4511
4514
|
var current = queueHead;
|
|
@@ -4526,8 +4529,8 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4526
4529
|
return tasks;
|
|
4527
4530
|
}
|
|
4528
4531
|
function resume() {
|
|
4529
|
-
if (!self
|
|
4530
|
-
self
|
|
4532
|
+
if (!self.paused) return;
|
|
4533
|
+
self.paused = false;
|
|
4531
4534
|
if (queueHead === null) {
|
|
4532
4535
|
_running++;
|
|
4533
4536
|
release();
|
|
@@ -4539,7 +4542,7 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4539
4542
|
}
|
|
4540
4543
|
}
|
|
4541
4544
|
function idle() {
|
|
4542
|
-
return _running === 0 && self
|
|
4545
|
+
return _running === 0 && self.length() === 0;
|
|
4543
4546
|
}
|
|
4544
4547
|
function push(value, done) {
|
|
4545
4548
|
var current = cache.get();
|
|
@@ -4548,13 +4551,13 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4548
4551
|
current.value = value;
|
|
4549
4552
|
current.callback = done || noop;
|
|
4550
4553
|
current.errorHandler = errorHandler;
|
|
4551
|
-
if (_running >= _concurrency || self
|
|
4554
|
+
if (_running >= _concurrency || self.paused) if (queueTail) {
|
|
4552
4555
|
queueTail.next = current;
|
|
4553
4556
|
queueTail = current;
|
|
4554
4557
|
} else {
|
|
4555
4558
|
queueHead = current;
|
|
4556
4559
|
queueTail = current;
|
|
4557
|
-
self
|
|
4560
|
+
self.saturated();
|
|
4558
4561
|
}
|
|
4559
4562
|
else {
|
|
4560
4563
|
_running++;
|
|
@@ -4568,13 +4571,13 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4568
4571
|
current.value = value;
|
|
4569
4572
|
current.callback = done || noop;
|
|
4570
4573
|
current.errorHandler = errorHandler;
|
|
4571
|
-
if (_running >= _concurrency || self
|
|
4574
|
+
if (_running >= _concurrency || self.paused) if (queueHead) {
|
|
4572
4575
|
current.next = queueHead;
|
|
4573
4576
|
queueHead = current;
|
|
4574
4577
|
} else {
|
|
4575
4578
|
queueHead = current;
|
|
4576
4579
|
queueTail = current;
|
|
4577
|
-
self
|
|
4580
|
+
self.saturated();
|
|
4578
4581
|
}
|
|
4579
4582
|
else {
|
|
4580
4583
|
_running++;
|
|
@@ -4584,25 +4587,25 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4584
4587
|
function release(holder) {
|
|
4585
4588
|
if (holder) cache.release(holder);
|
|
4586
4589
|
var next = queueHead;
|
|
4587
|
-
if (next && _running <= _concurrency) if (!self
|
|
4590
|
+
if (next && _running <= _concurrency) if (!self.paused) {
|
|
4588
4591
|
if (queueTail === queueHead) queueTail = null;
|
|
4589
4592
|
queueHead = next.next;
|
|
4590
4593
|
next.next = null;
|
|
4591
4594
|
worker.call(context, next.value, next.worked);
|
|
4592
|
-
if (queueTail === null) self
|
|
4595
|
+
if (queueTail === null) self.empty();
|
|
4593
4596
|
} else _running--;
|
|
4594
|
-
else if (--_running === 0) self
|
|
4597
|
+
else if (--_running === 0) self.drain();
|
|
4595
4598
|
}
|
|
4596
4599
|
function kill() {
|
|
4597
4600
|
queueHead = null;
|
|
4598
4601
|
queueTail = null;
|
|
4599
|
-
self
|
|
4602
|
+
self.drain = noop;
|
|
4600
4603
|
}
|
|
4601
4604
|
function killAndDrain() {
|
|
4602
4605
|
queueHead = null;
|
|
4603
4606
|
queueTail = null;
|
|
4604
|
-
self
|
|
4605
|
-
self
|
|
4607
|
+
self.drain();
|
|
4608
|
+
self.drain = noop;
|
|
4606
4609
|
}
|
|
4607
4610
|
function error(handler) {
|
|
4608
4611
|
errorHandler = handler;
|
|
@@ -4616,16 +4619,16 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4616
4619
|
this.release = noop;
|
|
4617
4620
|
this.context = null;
|
|
4618
4621
|
this.errorHandler = null;
|
|
4619
|
-
var self
|
|
4622
|
+
var self = this;
|
|
4620
4623
|
this.worked = function worked(err, result) {
|
|
4621
|
-
var callback = self
|
|
4622
|
-
var errorHandler = self
|
|
4623
|
-
var val = self
|
|
4624
|
-
self
|
|
4625
|
-
self
|
|
4626
|
-
if (self
|
|
4627
|
-
callback.call(self
|
|
4628
|
-
self
|
|
4624
|
+
var callback = self.callback;
|
|
4625
|
+
var errorHandler = self.errorHandler;
|
|
4626
|
+
var val = self.value;
|
|
4627
|
+
self.value = null;
|
|
4628
|
+
self.callback = noop;
|
|
4629
|
+
if (self.errorHandler) errorHandler(err, val);
|
|
4630
|
+
callback.call(self.context, err, result);
|
|
4631
|
+
self.release(self);
|
|
4629
4632
|
};
|
|
4630
4633
|
}
|
|
4631
4634
|
function queueAsPromised(context, worker, _concurrency) {
|
|
@@ -4690,11 +4693,11 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4690
4693
|
}
|
|
4691
4694
|
module.exports = fastqueue;
|
|
4692
4695
|
module.exports.promise = queueAsPromised;
|
|
4693
|
-
})
|
|
4696
|
+
}));
|
|
4694
4697
|
|
|
4695
4698
|
//#endregion
|
|
4696
4699
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
4697
|
-
var require_common = /* @__PURE__ */
|
|
4700
|
+
var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4698
4701
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4699
4702
|
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
4700
4703
|
function isFatalError(settings, error) {
|
|
@@ -4719,37 +4722,37 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4719
4722
|
return a + separator + b;
|
|
4720
4723
|
}
|
|
4721
4724
|
exports.joinPathSegments = joinPathSegments;
|
|
4722
|
-
})
|
|
4725
|
+
}));
|
|
4723
4726
|
|
|
4724
4727
|
//#endregion
|
|
4725
4728
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js
|
|
4726
|
-
var require_reader$1 = /* @__PURE__ */
|
|
4729
|
+
var require_reader$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4727
4730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4728
|
-
const common
|
|
4729
|
-
var Reader
|
|
4731
|
+
const common = require_common();
|
|
4732
|
+
var Reader = class {
|
|
4730
4733
|
constructor(_root, _settings) {
|
|
4731
4734
|
this._root = _root;
|
|
4732
4735
|
this._settings = _settings;
|
|
4733
|
-
this._root = common
|
|
4736
|
+
this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator);
|
|
4734
4737
|
}
|
|
4735
4738
|
};
|
|
4736
|
-
exports.default = Reader
|
|
4737
|
-
})
|
|
4739
|
+
exports.default = Reader;
|
|
4740
|
+
}));
|
|
4738
4741
|
|
|
4739
4742
|
//#endregion
|
|
4740
4743
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js
|
|
4741
|
-
var require_async$3 = /* @__PURE__ */
|
|
4744
|
+
var require_async$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4742
4745
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4743
4746
|
const events_1 = __require("events");
|
|
4744
|
-
const fsScandir
|
|
4747
|
+
const fsScandir = require_out$2();
|
|
4745
4748
|
const fastq = require_queue();
|
|
4746
|
-
const common
|
|
4747
|
-
const reader_1
|
|
4748
|
-
var AsyncReader = class extends reader_1
|
|
4749
|
+
const common = require_common();
|
|
4750
|
+
const reader_1 = require_reader$1();
|
|
4751
|
+
var AsyncReader = class extends reader_1.default {
|
|
4749
4752
|
constructor(_root, _settings) {
|
|
4750
4753
|
super(_root, _settings);
|
|
4751
4754
|
this._settings = _settings;
|
|
4752
|
-
this._scandir = fsScandir
|
|
4755
|
+
this._scandir = fsScandir.scandir;
|
|
4753
4756
|
this._emitter = new events_1.EventEmitter();
|
|
4754
4757
|
this._queue = fastq(this._worker.bind(this), this._settings.concurrency);
|
|
4755
4758
|
this._isFatalError = false;
|
|
@@ -4803,7 +4806,7 @@ var require_async$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4803
4806
|
});
|
|
4804
4807
|
}
|
|
4805
4808
|
_handleError(error) {
|
|
4806
|
-
if (this._isDestroyed || !common
|
|
4809
|
+
if (this._isDestroyed || !common.isFatalError(this._settings, error)) return;
|
|
4807
4810
|
this._isFatalError = true;
|
|
4808
4811
|
this._isDestroyed = true;
|
|
4809
4812
|
this._emitter.emit("error", error);
|
|
@@ -4811,27 +4814,27 @@ var require_async$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4811
4814
|
_handleEntry(entry, base) {
|
|
4812
4815
|
if (this._isDestroyed || this._isFatalError) return;
|
|
4813
4816
|
const fullpath = entry.path;
|
|
4814
|
-
if (base !== void 0) entry.path = common
|
|
4815
|
-
if (common
|
|
4816
|
-
if (entry.dirent.isDirectory() && common
|
|
4817
|
+
if (base !== void 0) entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
4818
|
+
if (common.isAppliedFilter(this._settings.entryFilter, entry)) this._emitEntry(entry);
|
|
4819
|
+
if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
4817
4820
|
}
|
|
4818
4821
|
_emitEntry(entry) {
|
|
4819
4822
|
this._emitter.emit("entry", entry);
|
|
4820
4823
|
}
|
|
4821
4824
|
};
|
|
4822
4825
|
exports.default = AsyncReader;
|
|
4823
|
-
})
|
|
4826
|
+
}));
|
|
4824
4827
|
|
|
4825
4828
|
//#endregion
|
|
4826
4829
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js
|
|
4827
|
-
var require_async$2 = /* @__PURE__ */
|
|
4830
|
+
var require_async$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4828
4831
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4829
|
-
const async_1
|
|
4832
|
+
const async_1 = require_async$3();
|
|
4830
4833
|
var AsyncProvider = class {
|
|
4831
4834
|
constructor(_root, _settings) {
|
|
4832
4835
|
this._root = _root;
|
|
4833
4836
|
this._settings = _settings;
|
|
4834
|
-
this._reader = new async_1
|
|
4837
|
+
this._reader = new async_1.default(this._root, this._settings);
|
|
4835
4838
|
this._storage = [];
|
|
4836
4839
|
}
|
|
4837
4840
|
read(callback) {
|
|
@@ -4854,20 +4857,20 @@ var require_async$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4854
4857
|
function callSuccessCallback(callback, entries) {
|
|
4855
4858
|
callback(null, entries);
|
|
4856
4859
|
}
|
|
4857
|
-
})
|
|
4860
|
+
}));
|
|
4858
4861
|
|
|
4859
4862
|
//#endregion
|
|
4860
4863
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js
|
|
4861
|
-
var require_stream$2 = /* @__PURE__ */
|
|
4864
|
+
var require_stream$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4862
4865
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4863
|
-
const stream_1$
|
|
4864
|
-
const async_1
|
|
4866
|
+
const stream_1$2 = __require("stream");
|
|
4867
|
+
const async_1 = require_async$3();
|
|
4865
4868
|
var StreamProvider = class {
|
|
4866
4869
|
constructor(_root, _settings) {
|
|
4867
4870
|
this._root = _root;
|
|
4868
4871
|
this._settings = _settings;
|
|
4869
|
-
this._reader = new async_1
|
|
4870
|
-
this._stream = new stream_1$
|
|
4872
|
+
this._reader = new async_1.default(this._root, this._settings);
|
|
4873
|
+
this._stream = new stream_1$2.Readable({
|
|
4871
4874
|
objectMode: true,
|
|
4872
4875
|
read: () => {},
|
|
4873
4876
|
destroy: () => {
|
|
@@ -4890,19 +4893,19 @@ var require_stream$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@n
|
|
|
4890
4893
|
}
|
|
4891
4894
|
};
|
|
4892
4895
|
exports.default = StreamProvider;
|
|
4893
|
-
})
|
|
4896
|
+
}));
|
|
4894
4897
|
|
|
4895
4898
|
//#endregion
|
|
4896
4899
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js
|
|
4897
|
-
var require_sync$3 = /* @__PURE__ */
|
|
4900
|
+
var require_sync$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4898
4901
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4899
|
-
const fsScandir
|
|
4902
|
+
const fsScandir = require_out$2();
|
|
4900
4903
|
const common = require_common();
|
|
4901
|
-
const reader_1
|
|
4902
|
-
var SyncReader = class extends reader_1
|
|
4904
|
+
const reader_1 = require_reader$1();
|
|
4905
|
+
var SyncReader = class extends reader_1.default {
|
|
4903
4906
|
constructor() {
|
|
4904
4907
|
super(...arguments);
|
|
4905
|
-
this._scandir = fsScandir
|
|
4908
|
+
this._scandir = fsScandir.scandirSync;
|
|
4906
4909
|
this._storage = [];
|
|
4907
4910
|
this._queue = /* @__PURE__ */ new Set();
|
|
4908
4911
|
}
|
|
@@ -4943,33 +4946,33 @@ var require_sync$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4943
4946
|
}
|
|
4944
4947
|
};
|
|
4945
4948
|
exports.default = SyncReader;
|
|
4946
|
-
})
|
|
4949
|
+
}));
|
|
4947
4950
|
|
|
4948
4951
|
//#endregion
|
|
4949
4952
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js
|
|
4950
|
-
var require_sync$2 = /* @__PURE__ */
|
|
4953
|
+
var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4951
4954
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4952
|
-
const sync_1
|
|
4955
|
+
const sync_1 = require_sync$3();
|
|
4953
4956
|
var SyncProvider = class {
|
|
4954
4957
|
constructor(_root, _settings) {
|
|
4955
4958
|
this._root = _root;
|
|
4956
4959
|
this._settings = _settings;
|
|
4957
|
-
this._reader = new sync_1
|
|
4960
|
+
this._reader = new sync_1.default(this._root, this._settings);
|
|
4958
4961
|
}
|
|
4959
4962
|
read() {
|
|
4960
4963
|
return this._reader.read();
|
|
4961
4964
|
}
|
|
4962
4965
|
};
|
|
4963
4966
|
exports.default = SyncProvider;
|
|
4964
|
-
})
|
|
4967
|
+
}));
|
|
4965
4968
|
|
|
4966
4969
|
//#endregion
|
|
4967
4970
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
|
|
4968
|
-
var require_settings$1 = /* @__PURE__ */
|
|
4971
|
+
var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4969
4972
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4970
4973
|
const path$3 = __require("path");
|
|
4971
4974
|
const fsScandir = require_out$2();
|
|
4972
|
-
var Settings
|
|
4975
|
+
var Settings = class {
|
|
4973
4976
|
constructor(_options = {}) {
|
|
4974
4977
|
this._options = _options;
|
|
4975
4978
|
this.basePath = this._getValue(this._options.basePath, void 0);
|
|
@@ -4990,54 +4993,54 @@ var require_settings$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
4990
4993
|
return option !== null && option !== void 0 ? option : value;
|
|
4991
4994
|
}
|
|
4992
4995
|
};
|
|
4993
|
-
exports.default = Settings
|
|
4994
|
-
})
|
|
4996
|
+
exports.default = Settings;
|
|
4997
|
+
}));
|
|
4995
4998
|
|
|
4996
4999
|
//#endregion
|
|
4997
5000
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
|
|
4998
|
-
var require_out$1 = /* @__PURE__ */
|
|
5001
|
+
var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4999
5002
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5000
5003
|
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
5001
|
-
const async_1
|
|
5002
|
-
const stream_1
|
|
5003
|
-
const sync_1
|
|
5004
|
-
const settings_1
|
|
5005
|
-
exports.Settings = settings_1
|
|
5004
|
+
const async_1 = require_async$2();
|
|
5005
|
+
const stream_1 = require_stream$2();
|
|
5006
|
+
const sync_1 = require_sync$2();
|
|
5007
|
+
const settings_1 = require_settings$1();
|
|
5008
|
+
exports.Settings = settings_1.default;
|
|
5006
5009
|
function walk(directory, optionsOrSettingsOrCallback, callback) {
|
|
5007
5010
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
5008
|
-
new async_1
|
|
5011
|
+
new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
|
|
5009
5012
|
return;
|
|
5010
5013
|
}
|
|
5011
|
-
new async_1
|
|
5014
|
+
new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
|
|
5012
5015
|
}
|
|
5013
5016
|
exports.walk = walk;
|
|
5014
5017
|
function walkSync(directory, optionsOrSettings) {
|
|
5015
5018
|
const settings = getSettings(optionsOrSettings);
|
|
5016
|
-
return new sync_1
|
|
5019
|
+
return new sync_1.default(directory, settings).read();
|
|
5017
5020
|
}
|
|
5018
5021
|
exports.walkSync = walkSync;
|
|
5019
5022
|
function walkStream(directory, optionsOrSettings) {
|
|
5020
5023
|
const settings = getSettings(optionsOrSettings);
|
|
5021
|
-
return new stream_1
|
|
5024
|
+
return new stream_1.default(directory, settings).read();
|
|
5022
5025
|
}
|
|
5023
5026
|
exports.walkStream = walkStream;
|
|
5024
5027
|
function getSettings(settingsOrOptions = {}) {
|
|
5025
|
-
if (settingsOrOptions instanceof settings_1
|
|
5026
|
-
return new settings_1
|
|
5028
|
+
if (settingsOrOptions instanceof settings_1.default) return settingsOrOptions;
|
|
5029
|
+
return new settings_1.default(settingsOrOptions);
|
|
5027
5030
|
}
|
|
5028
|
-
})
|
|
5031
|
+
}));
|
|
5029
5032
|
|
|
5030
5033
|
//#endregion
|
|
5031
5034
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
5032
|
-
var require_reader = /* @__PURE__ */
|
|
5035
|
+
var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5033
5036
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5034
5037
|
const path$2 = __require("path");
|
|
5035
|
-
const fsStat
|
|
5036
|
-
const utils
|
|
5038
|
+
const fsStat = require_out$3();
|
|
5039
|
+
const utils = require_utils$1();
|
|
5037
5040
|
var Reader = class {
|
|
5038
5041
|
constructor(_settings) {
|
|
5039
5042
|
this._settings = _settings;
|
|
5040
|
-
this._fsStatSettings = new fsStat
|
|
5043
|
+
this._fsStatSettings = new fsStat.Settings({
|
|
5041
5044
|
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
5042
5045
|
fs: this._settings.fs,
|
|
5043
5046
|
throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
|
|
@@ -5046,54 +5049,54 @@ var require_reader = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5046
5049
|
_getFullEntryPath(filepath) {
|
|
5047
5050
|
return path$2.resolve(this._settings.cwd, filepath);
|
|
5048
5051
|
}
|
|
5049
|
-
_makeEntry(stats, pattern
|
|
5052
|
+
_makeEntry(stats, pattern) {
|
|
5050
5053
|
const entry = {
|
|
5051
|
-
name: pattern
|
|
5052
|
-
path: pattern
|
|
5053
|
-
dirent: utils
|
|
5054
|
+
name: pattern,
|
|
5055
|
+
path: pattern,
|
|
5056
|
+
dirent: utils.fs.createDirentFromStats(pattern, stats)
|
|
5054
5057
|
};
|
|
5055
5058
|
if (this._settings.stats) entry.stats = stats;
|
|
5056
5059
|
return entry;
|
|
5057
5060
|
}
|
|
5058
5061
|
_isFatalError(error) {
|
|
5059
|
-
return !utils
|
|
5062
|
+
return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
|
|
5060
5063
|
}
|
|
5061
5064
|
};
|
|
5062
5065
|
exports.default = Reader;
|
|
5063
|
-
})
|
|
5066
|
+
}));
|
|
5064
5067
|
|
|
5065
5068
|
//#endregion
|
|
5066
5069
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js
|
|
5067
|
-
var require_stream$1 = /* @__PURE__ */
|
|
5070
|
+
var require_stream$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5068
5071
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5069
|
-
const stream_1$
|
|
5070
|
-
const fsStat
|
|
5071
|
-
const fsWalk
|
|
5072
|
-
const reader_1
|
|
5073
|
-
var ReaderStream = class extends reader_1
|
|
5072
|
+
const stream_1$1 = __require("stream");
|
|
5073
|
+
const fsStat = require_out$3();
|
|
5074
|
+
const fsWalk = require_out$1();
|
|
5075
|
+
const reader_1 = require_reader();
|
|
5076
|
+
var ReaderStream = class extends reader_1.default {
|
|
5074
5077
|
constructor() {
|
|
5075
5078
|
super(...arguments);
|
|
5076
|
-
this._walkStream = fsWalk
|
|
5077
|
-
this._stat = fsStat
|
|
5079
|
+
this._walkStream = fsWalk.walkStream;
|
|
5080
|
+
this._stat = fsStat.stat;
|
|
5078
5081
|
}
|
|
5079
5082
|
dynamic(root, options$1) {
|
|
5080
5083
|
return this._walkStream(root, options$1);
|
|
5081
5084
|
}
|
|
5082
5085
|
static(patterns, options$1) {
|
|
5083
5086
|
const filepaths = patterns.map(this._getFullEntryPath, this);
|
|
5084
|
-
const stream
|
|
5085
|
-
stream
|
|
5087
|
+
const stream = new stream_1$1.PassThrough({ objectMode: true });
|
|
5088
|
+
stream._write = (index, _enc, done) => {
|
|
5086
5089
|
return this._getEntry(filepaths[index], patterns[index], options$1).then((entry) => {
|
|
5087
|
-
if (entry !== null && options$1.entryFilter(entry)) stream
|
|
5088
|
-
if (index === filepaths.length - 1) stream
|
|
5090
|
+
if (entry !== null && options$1.entryFilter(entry)) stream.push(entry);
|
|
5091
|
+
if (index === filepaths.length - 1) stream.end();
|
|
5089
5092
|
done();
|
|
5090
5093
|
}).catch(done);
|
|
5091
5094
|
};
|
|
5092
|
-
for (let i = 0; i < filepaths.length; i++) stream
|
|
5093
|
-
return stream
|
|
5095
|
+
for (let i = 0; i < filepaths.length; i++) stream.write(i);
|
|
5096
|
+
return stream;
|
|
5094
5097
|
}
|
|
5095
|
-
_getEntry(filepath, pattern
|
|
5096
|
-
return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern
|
|
5098
|
+
_getEntry(filepath, pattern, options$1) {
|
|
5099
|
+
return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => {
|
|
5097
5100
|
if (options$1.errorFilter(error)) return null;
|
|
5098
5101
|
throw error;
|
|
5099
5102
|
});
|
|
@@ -5107,20 +5110,20 @@ var require_stream$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
5107
5110
|
}
|
|
5108
5111
|
};
|
|
5109
5112
|
exports.default = ReaderStream;
|
|
5110
|
-
})
|
|
5113
|
+
}));
|
|
5111
5114
|
|
|
5112
5115
|
//#endregion
|
|
5113
5116
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js
|
|
5114
|
-
var require_async$1 = /* @__PURE__ */
|
|
5117
|
+
var require_async$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5115
5118
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5116
|
-
const fsWalk
|
|
5117
|
-
const reader_1
|
|
5118
|
-
const stream_1
|
|
5119
|
-
var ReaderAsync = class extends reader_1
|
|
5119
|
+
const fsWalk = require_out$1();
|
|
5120
|
+
const reader_1 = require_reader();
|
|
5121
|
+
const stream_1 = require_stream$1();
|
|
5122
|
+
var ReaderAsync = class extends reader_1.default {
|
|
5120
5123
|
constructor() {
|
|
5121
5124
|
super(...arguments);
|
|
5122
|
-
this._walkAsync = fsWalk
|
|
5123
|
-
this._readerStream = new stream_1
|
|
5125
|
+
this._walkAsync = fsWalk.walk;
|
|
5126
|
+
this._readerStream = new stream_1.default(this._settings);
|
|
5124
5127
|
}
|
|
5125
5128
|
dynamic(root, options$1) {
|
|
5126
5129
|
return new Promise((resolve$2, reject) => {
|
|
@@ -5132,22 +5135,22 @@ var require_async$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5132
5135
|
}
|
|
5133
5136
|
async static(patterns, options$1) {
|
|
5134
5137
|
const entries = [];
|
|
5135
|
-
const stream
|
|
5138
|
+
const stream = this._readerStream.static(patterns, options$1);
|
|
5136
5139
|
return new Promise((resolve$2, reject) => {
|
|
5137
|
-
stream
|
|
5138
|
-
stream
|
|
5139
|
-
stream
|
|
5140
|
+
stream.once("error", reject);
|
|
5141
|
+
stream.on("data", (entry) => entries.push(entry));
|
|
5142
|
+
stream.once("end", () => resolve$2(entries));
|
|
5140
5143
|
});
|
|
5141
5144
|
}
|
|
5142
5145
|
};
|
|
5143
5146
|
exports.default = ReaderAsync;
|
|
5144
|
-
})
|
|
5147
|
+
}));
|
|
5145
5148
|
|
|
5146
5149
|
//#endregion
|
|
5147
5150
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
5148
|
-
var require_matcher = /* @__PURE__ */
|
|
5151
|
+
var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5149
5152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5150
|
-
const utils
|
|
5153
|
+
const utils = require_utils$1();
|
|
5151
5154
|
var Matcher = class {
|
|
5152
5155
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
5153
5156
|
this._patterns = _patterns;
|
|
@@ -5157,40 +5160,40 @@ var require_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5157
5160
|
this._fillStorage();
|
|
5158
5161
|
}
|
|
5159
5162
|
_fillStorage() {
|
|
5160
|
-
for (const pattern
|
|
5161
|
-
const segments = this._getPatternSegments(pattern
|
|
5163
|
+
for (const pattern of this._patterns) {
|
|
5164
|
+
const segments = this._getPatternSegments(pattern);
|
|
5162
5165
|
const sections = this._splitSegmentsIntoSections(segments);
|
|
5163
5166
|
this._storage.push({
|
|
5164
5167
|
complete: sections.length <= 1,
|
|
5165
|
-
pattern
|
|
5168
|
+
pattern,
|
|
5166
5169
|
segments,
|
|
5167
5170
|
sections
|
|
5168
5171
|
});
|
|
5169
5172
|
}
|
|
5170
5173
|
}
|
|
5171
|
-
_getPatternSegments(pattern
|
|
5172
|
-
return utils
|
|
5173
|
-
if (!utils
|
|
5174
|
+
_getPatternSegments(pattern) {
|
|
5175
|
+
return utils.pattern.getPatternParts(pattern, this._micromatchOptions).map((part) => {
|
|
5176
|
+
if (!utils.pattern.isDynamicPattern(part, this._settings)) return {
|
|
5174
5177
|
dynamic: false,
|
|
5175
5178
|
pattern: part
|
|
5176
5179
|
};
|
|
5177
5180
|
return {
|
|
5178
5181
|
dynamic: true,
|
|
5179
5182
|
pattern: part,
|
|
5180
|
-
patternRe: utils
|
|
5183
|
+
patternRe: utils.pattern.makeRe(part, this._micromatchOptions)
|
|
5181
5184
|
};
|
|
5182
5185
|
});
|
|
5183
5186
|
}
|
|
5184
5187
|
_splitSegmentsIntoSections(segments) {
|
|
5185
|
-
return utils
|
|
5188
|
+
return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern));
|
|
5186
5189
|
}
|
|
5187
5190
|
};
|
|
5188
5191
|
exports.default = Matcher;
|
|
5189
|
-
})
|
|
5192
|
+
}));
|
|
5190
5193
|
|
|
5191
5194
|
//#endregion
|
|
5192
5195
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
5193
|
-
var require_partial = /* @__PURE__ */
|
|
5196
|
+
var require_partial = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5194
5197
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5195
5198
|
const matcher_1 = require_matcher();
|
|
5196
5199
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -5198,8 +5201,8 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5198
5201
|
const parts = filepath.split("/");
|
|
5199
5202
|
const levels = parts.length;
|
|
5200
5203
|
const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels);
|
|
5201
|
-
for (const pattern
|
|
5202
|
-
const section = pattern
|
|
5204
|
+
for (const pattern of patterns) {
|
|
5205
|
+
const section = pattern.sections[0];
|
|
5203
5206
|
/**
|
|
5204
5207
|
* In this case, the pattern has a globstar and we must read all directories unconditionally,
|
|
5205
5208
|
* but only if the level has reached the end of the first group.
|
|
@@ -5207,9 +5210,9 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5207
5210
|
* fixtures/{a,b}/**
|
|
5208
5211
|
* ^ true/false ^ always true
|
|
5209
5212
|
*/
|
|
5210
|
-
if (!pattern
|
|
5213
|
+
if (!pattern.complete && levels > section.length) return true;
|
|
5211
5214
|
if (parts.every((part, index) => {
|
|
5212
|
-
const segment = pattern
|
|
5215
|
+
const segment = pattern.segments[index];
|
|
5213
5216
|
if (segment.dynamic && segment.patternRe.test(part)) return true;
|
|
5214
5217
|
if (!segment.dynamic && segment.pattern === part) return true;
|
|
5215
5218
|
return false;
|
|
@@ -5219,13 +5222,13 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5219
5222
|
}
|
|
5220
5223
|
};
|
|
5221
5224
|
exports.default = PartialMatcher;
|
|
5222
|
-
})
|
|
5225
|
+
}));
|
|
5223
5226
|
|
|
5224
5227
|
//#endregion
|
|
5225
5228
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js
|
|
5226
|
-
var require_deep = /* @__PURE__ */
|
|
5229
|
+
var require_deep = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5227
5230
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5228
|
-
const utils
|
|
5231
|
+
const utils = require_utils$1();
|
|
5229
5232
|
const partial_1 = require_partial();
|
|
5230
5233
|
var DeepFilter = class {
|
|
5231
5234
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -5241,13 +5244,13 @@ var require_deep = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
5241
5244
|
return new partial_1.default(patterns, this._settings, this._micromatchOptions);
|
|
5242
5245
|
}
|
|
5243
5246
|
_getNegativePatternsRe(patterns) {
|
|
5244
|
-
const affectDepthOfReadingPatterns = patterns.filter(utils
|
|
5245
|
-
return utils
|
|
5247
|
+
const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern);
|
|
5248
|
+
return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
|
|
5246
5249
|
}
|
|
5247
5250
|
_filter(basePath, entry, matcher, negativeRe) {
|
|
5248
5251
|
if (this._isSkippedByDeep(basePath, entry.path)) return false;
|
|
5249
5252
|
if (this._isSkippedSymbolicLink(entry)) return false;
|
|
5250
|
-
const filepath = utils
|
|
5253
|
+
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
5251
5254
|
if (this._isSkippedByPositivePatterns(filepath, matcher)) return false;
|
|
5252
5255
|
return this._isSkippedByNegativePatterns(filepath, negativeRe);
|
|
5253
5256
|
}
|
|
@@ -5270,17 +5273,17 @@ var require_deep = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
5270
5273
|
return !this._settings.baseNameMatch && !matcher.match(entryPath);
|
|
5271
5274
|
}
|
|
5272
5275
|
_isSkippedByNegativePatterns(entryPath, patternsRe) {
|
|
5273
|
-
return !utils
|
|
5276
|
+
return !utils.pattern.matchAny(entryPath, patternsRe);
|
|
5274
5277
|
}
|
|
5275
5278
|
};
|
|
5276
5279
|
exports.default = DeepFilter;
|
|
5277
|
-
})
|
|
5280
|
+
}));
|
|
5278
5281
|
|
|
5279
5282
|
//#endregion
|
|
5280
5283
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js
|
|
5281
|
-
var require_entry$1 = /* @__PURE__ */
|
|
5284
|
+
var require_entry$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5282
5285
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5283
|
-
const utils
|
|
5286
|
+
const utils = require_utils$1();
|
|
5284
5287
|
var EntryFilter = class {
|
|
5285
5288
|
constructor(_settings, _micromatchOptions) {
|
|
5286
5289
|
this._settings = _settings;
|
|
@@ -5288,18 +5291,18 @@ var require_entry$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5288
5291
|
this.index = /* @__PURE__ */ new Map();
|
|
5289
5292
|
}
|
|
5290
5293
|
getFilter(positive, negative) {
|
|
5291
|
-
const [absoluteNegative, relativeNegative] = utils
|
|
5294
|
+
const [absoluteNegative, relativeNegative] = utils.pattern.partitionAbsoluteAndRelative(negative);
|
|
5292
5295
|
const patterns = {
|
|
5293
|
-
positive: { all: utils
|
|
5296
|
+
positive: { all: utils.pattern.convertPatternsToRe(positive, this._micromatchOptions) },
|
|
5294
5297
|
negative: {
|
|
5295
|
-
absolute: utils
|
|
5296
|
-
relative: utils
|
|
5298
|
+
absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
|
|
5299
|
+
relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
|
|
5297
5300
|
}
|
|
5298
5301
|
};
|
|
5299
5302
|
return (entry) => this._filter(entry, patterns);
|
|
5300
5303
|
}
|
|
5301
5304
|
_filter(entry, patterns) {
|
|
5302
|
-
const filepath = utils
|
|
5305
|
+
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
5303
5306
|
if (this._settings.unique && this._isDuplicateEntry(filepath)) return false;
|
|
5304
5307
|
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) return false;
|
|
5305
5308
|
const isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
|
|
@@ -5326,24 +5329,24 @@ var require_entry$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5326
5329
|
}
|
|
5327
5330
|
_isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
|
|
5328
5331
|
if (patternsRe.length === 0) return false;
|
|
5329
|
-
const fullpath = utils
|
|
5332
|
+
const fullpath = utils.path.makeAbsolute(this._settings.cwd, filepath);
|
|
5330
5333
|
return this._isMatchToPatterns(fullpath, patternsRe, isDirectory);
|
|
5331
5334
|
}
|
|
5332
5335
|
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
|
5333
5336
|
if (patternsRe.length === 0) return false;
|
|
5334
|
-
const isMatched = utils
|
|
5335
|
-
if (!isMatched && isDirectory) return utils
|
|
5337
|
+
const isMatched = utils.pattern.matchAny(filepath, patternsRe);
|
|
5338
|
+
if (!isMatched && isDirectory) return utils.pattern.matchAny(filepath + "/", patternsRe);
|
|
5336
5339
|
return isMatched;
|
|
5337
5340
|
}
|
|
5338
5341
|
};
|
|
5339
5342
|
exports.default = EntryFilter;
|
|
5340
|
-
})
|
|
5343
|
+
}));
|
|
5341
5344
|
|
|
5342
5345
|
//#endregion
|
|
5343
5346
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js
|
|
5344
|
-
var require_error = /* @__PURE__ */
|
|
5347
|
+
var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5345
5348
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5346
|
-
const utils
|
|
5349
|
+
const utils = require_utils$1();
|
|
5347
5350
|
var ErrorFilter = class {
|
|
5348
5351
|
constructor(_settings) {
|
|
5349
5352
|
this._settings = _settings;
|
|
@@ -5352,17 +5355,17 @@ var require_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5352
5355
|
return (error) => this._isNonFatalError(error);
|
|
5353
5356
|
}
|
|
5354
5357
|
_isNonFatalError(error) {
|
|
5355
|
-
return utils
|
|
5358
|
+
return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
|
|
5356
5359
|
}
|
|
5357
5360
|
};
|
|
5358
5361
|
exports.default = ErrorFilter;
|
|
5359
|
-
})
|
|
5362
|
+
}));
|
|
5360
5363
|
|
|
5361
5364
|
//#endregion
|
|
5362
5365
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
5363
|
-
var require_entry = /* @__PURE__ */
|
|
5366
|
+
var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5364
5367
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5365
|
-
const utils
|
|
5368
|
+
const utils = require_utils$1();
|
|
5366
5369
|
var EntryTransformer = class {
|
|
5367
5370
|
constructor(_settings) {
|
|
5368
5371
|
this._settings = _settings;
|
|
@@ -5373,8 +5376,8 @@ var require_entry = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5373
5376
|
_transform(entry) {
|
|
5374
5377
|
let filepath = entry.path;
|
|
5375
5378
|
if (this._settings.absolute) {
|
|
5376
|
-
filepath = utils
|
|
5377
|
-
filepath = utils
|
|
5379
|
+
filepath = utils.path.makeAbsolute(this._settings.cwd, filepath);
|
|
5380
|
+
filepath = utils.path.unixify(filepath);
|
|
5378
5381
|
}
|
|
5379
5382
|
if (this._settings.markDirectories && entry.dirent.isDirectory()) filepath += "/";
|
|
5380
5383
|
if (!this._settings.objectMode) return filepath;
|
|
@@ -5382,11 +5385,11 @@ var require_entry = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5382
5385
|
}
|
|
5383
5386
|
};
|
|
5384
5387
|
exports.default = EntryTransformer;
|
|
5385
|
-
})
|
|
5388
|
+
}));
|
|
5386
5389
|
|
|
5387
5390
|
//#endregion
|
|
5388
5391
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
5389
|
-
var require_provider = /* @__PURE__ */
|
|
5392
|
+
var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5390
5393
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5391
5394
|
const path$1 = __require("path");
|
|
5392
5395
|
const deep_1 = require_deep();
|
|
@@ -5434,18 +5437,18 @@ var require_provider = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
5434
5437
|
}
|
|
5435
5438
|
};
|
|
5436
5439
|
exports.default = Provider;
|
|
5437
|
-
})
|
|
5440
|
+
}));
|
|
5438
5441
|
|
|
5439
5442
|
//#endregion
|
|
5440
5443
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js
|
|
5441
|
-
var require_async = /* @__PURE__ */
|
|
5444
|
+
var require_async = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5442
5445
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5443
|
-
const async_1
|
|
5444
|
-
const provider_1
|
|
5445
|
-
var ProviderAsync = class extends provider_1
|
|
5446
|
+
const async_1 = require_async$1();
|
|
5447
|
+
const provider_1 = require_provider();
|
|
5448
|
+
var ProviderAsync = class extends provider_1.default {
|
|
5446
5449
|
constructor() {
|
|
5447
5450
|
super(...arguments);
|
|
5448
|
-
this._reader = new async_1
|
|
5451
|
+
this._reader = new async_1.default(this._settings);
|
|
5449
5452
|
}
|
|
5450
5453
|
async read(task) {
|
|
5451
5454
|
const root = this._getRootDirectory(task);
|
|
@@ -5458,16 +5461,16 @@ var require_async = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5458
5461
|
}
|
|
5459
5462
|
};
|
|
5460
5463
|
exports.default = ProviderAsync;
|
|
5461
|
-
})
|
|
5464
|
+
}));
|
|
5462
5465
|
|
|
5463
5466
|
//#endregion
|
|
5464
5467
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js
|
|
5465
|
-
var require_stream = /* @__PURE__ */
|
|
5468
|
+
var require_stream = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5466
5469
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5467
|
-
const stream_1
|
|
5470
|
+
const stream_1 = __require("stream");
|
|
5468
5471
|
const stream_2 = require_stream$1();
|
|
5469
|
-
const provider_1
|
|
5470
|
-
var ProviderStream = class extends provider_1
|
|
5472
|
+
const provider_1 = require_provider();
|
|
5473
|
+
var ProviderStream = class extends provider_1.default {
|
|
5471
5474
|
constructor() {
|
|
5472
5475
|
super(...arguments);
|
|
5473
5476
|
this._reader = new stream_2.default(this._settings);
|
|
@@ -5476,7 +5479,7 @@ var require_stream = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5476
5479
|
const root = this._getRootDirectory(task);
|
|
5477
5480
|
const options$1 = this._getReaderOptions(task);
|
|
5478
5481
|
const source = this.api(root, task, options$1);
|
|
5479
|
-
const destination = new stream_1
|
|
5482
|
+
const destination = new stream_1.Readable({
|
|
5480
5483
|
objectMode: true,
|
|
5481
5484
|
read: () => {}
|
|
5482
5485
|
});
|
|
@@ -5490,11 +5493,11 @@ var require_stream = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5490
5493
|
}
|
|
5491
5494
|
};
|
|
5492
5495
|
exports.default = ProviderStream;
|
|
5493
|
-
})
|
|
5496
|
+
}));
|
|
5494
5497
|
|
|
5495
5498
|
//#endregion
|
|
5496
5499
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js
|
|
5497
|
-
var require_sync$1 = /* @__PURE__ */
|
|
5500
|
+
var require_sync$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5498
5501
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5499
5502
|
const fsStat = require_out$3();
|
|
5500
5503
|
const fsWalk = require_out$1();
|
|
@@ -5510,18 +5513,18 @@ var require_sync$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5510
5513
|
}
|
|
5511
5514
|
static(patterns, options$1) {
|
|
5512
5515
|
const entries = [];
|
|
5513
|
-
for (const pattern
|
|
5514
|
-
const filepath = this._getFullEntryPath(pattern
|
|
5515
|
-
const entry = this._getEntry(filepath, pattern
|
|
5516
|
+
for (const pattern of patterns) {
|
|
5517
|
+
const filepath = this._getFullEntryPath(pattern);
|
|
5518
|
+
const entry = this._getEntry(filepath, pattern, options$1);
|
|
5516
5519
|
if (entry === null || !options$1.entryFilter(entry)) continue;
|
|
5517
5520
|
entries.push(entry);
|
|
5518
5521
|
}
|
|
5519
5522
|
return entries;
|
|
5520
5523
|
}
|
|
5521
|
-
_getEntry(filepath, pattern
|
|
5524
|
+
_getEntry(filepath, pattern, options$1) {
|
|
5522
5525
|
try {
|
|
5523
5526
|
const stats = this._getStat(filepath);
|
|
5524
|
-
return this._makeEntry(stats, pattern
|
|
5527
|
+
return this._makeEntry(stats, pattern);
|
|
5525
5528
|
} catch (error) {
|
|
5526
5529
|
if (options$1.errorFilter(error)) return null;
|
|
5527
5530
|
throw error;
|
|
@@ -5532,18 +5535,18 @@ var require_sync$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5532
5535
|
}
|
|
5533
5536
|
};
|
|
5534
5537
|
exports.default = ReaderSync;
|
|
5535
|
-
})
|
|
5538
|
+
}));
|
|
5536
5539
|
|
|
5537
5540
|
//#endregion
|
|
5538
5541
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js
|
|
5539
|
-
var require_sync = /* @__PURE__ */
|
|
5542
|
+
var require_sync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5540
5543
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5541
|
-
const sync_1
|
|
5544
|
+
const sync_1 = require_sync$1();
|
|
5542
5545
|
const provider_1 = require_provider();
|
|
5543
5546
|
var ProviderSync = class extends provider_1.default {
|
|
5544
5547
|
constructor() {
|
|
5545
5548
|
super(...arguments);
|
|
5546
|
-
this._reader = new sync_1
|
|
5549
|
+
this._reader = new sync_1.default(this._settings);
|
|
5547
5550
|
}
|
|
5548
5551
|
read(task) {
|
|
5549
5552
|
const root = this._getRootDirectory(task);
|
|
@@ -5556,11 +5559,11 @@ var require_sync = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
5556
5559
|
}
|
|
5557
5560
|
};
|
|
5558
5561
|
exports.default = ProviderSync;
|
|
5559
|
-
})
|
|
5562
|
+
}));
|
|
5560
5563
|
|
|
5561
5564
|
//#endregion
|
|
5562
5565
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js
|
|
5563
|
-
var require_settings = /* @__PURE__ */
|
|
5566
|
+
var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5564
5567
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5565
5568
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
5566
5569
|
const fs$1 = __require("fs");
|
|
@@ -5614,11 +5617,11 @@ var require_settings = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
5614
5617
|
}
|
|
5615
5618
|
};
|
|
5616
5619
|
exports.default = Settings;
|
|
5617
|
-
})
|
|
5620
|
+
}));
|
|
5618
5621
|
|
|
5619
5622
|
//#endregion
|
|
5620
5623
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js
|
|
5621
|
-
var require_out = /* @__PURE__ */
|
|
5624
|
+
var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5622
5625
|
const taskManager = require_tasks();
|
|
5623
5626
|
const async_1 = require_async();
|
|
5624
5627
|
const stream_1 = require_stream();
|
|
@@ -5631,18 +5634,18 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5631
5634
|
const result = await Promise.all(works);
|
|
5632
5635
|
return utils.array.flatten(result);
|
|
5633
5636
|
}
|
|
5634
|
-
(function(FastGlob
|
|
5635
|
-
FastGlob
|
|
5636
|
-
FastGlob
|
|
5637
|
-
FastGlob
|
|
5638
|
-
FastGlob
|
|
5639
|
-
function sync
|
|
5637
|
+
(function(FastGlob) {
|
|
5638
|
+
FastGlob.glob = FastGlob;
|
|
5639
|
+
FastGlob.globSync = sync;
|
|
5640
|
+
FastGlob.globStream = stream;
|
|
5641
|
+
FastGlob.async = FastGlob;
|
|
5642
|
+
function sync(source, options$1) {
|
|
5640
5643
|
assertPatternsInput(source);
|
|
5641
5644
|
const works = getWorks(source, sync_1.default, options$1);
|
|
5642
5645
|
return utils.array.flatten(works);
|
|
5643
5646
|
}
|
|
5644
|
-
FastGlob
|
|
5645
|
-
function stream
|
|
5647
|
+
FastGlob.sync = sync;
|
|
5648
|
+
function stream(source, options$1) {
|
|
5646
5649
|
assertPatternsInput(source);
|
|
5647
5650
|
const works = getWorks(source, stream_1.default, options$1);
|
|
5648
5651
|
/**
|
|
@@ -5652,30 +5655,30 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5652
5655
|
*/
|
|
5653
5656
|
return utils.stream.merge(works);
|
|
5654
5657
|
}
|
|
5655
|
-
FastGlob
|
|
5658
|
+
FastGlob.stream = stream;
|
|
5656
5659
|
function generateTasks(source, options$1) {
|
|
5657
5660
|
assertPatternsInput(source);
|
|
5658
5661
|
const patterns = [].concat(source);
|
|
5659
5662
|
const settings = new settings_1.default(options$1);
|
|
5660
5663
|
return taskManager.generate(patterns, settings);
|
|
5661
5664
|
}
|
|
5662
|
-
FastGlob
|
|
5663
|
-
function isDynamicPattern
|
|
5665
|
+
FastGlob.generateTasks = generateTasks;
|
|
5666
|
+
function isDynamicPattern(source, options$1) {
|
|
5664
5667
|
assertPatternsInput(source);
|
|
5665
5668
|
const settings = new settings_1.default(options$1);
|
|
5666
5669
|
return utils.pattern.isDynamicPattern(source, settings);
|
|
5667
5670
|
}
|
|
5668
|
-
FastGlob
|
|
5671
|
+
FastGlob.isDynamicPattern = isDynamicPattern;
|
|
5669
5672
|
function escapePath(source) {
|
|
5670
5673
|
assertPatternsInput(source);
|
|
5671
5674
|
return utils.path.escape(source);
|
|
5672
5675
|
}
|
|
5673
|
-
FastGlob
|
|
5676
|
+
FastGlob.escapePath = escapePath;
|
|
5674
5677
|
function convertPathToPattern(source) {
|
|
5675
5678
|
assertPatternsInput(source);
|
|
5676
5679
|
return utils.path.convertPathToPattern(source);
|
|
5677
5680
|
}
|
|
5678
|
-
FastGlob
|
|
5681
|
+
FastGlob.convertPathToPattern = convertPathToPattern;
|
|
5679
5682
|
(function(posix) {
|
|
5680
5683
|
function escapePath$1(source) {
|
|
5681
5684
|
assertPatternsInput(source);
|
|
@@ -5687,19 +5690,19 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5687
5690
|
return utils.path.convertPosixPathToPattern(source);
|
|
5688
5691
|
}
|
|
5689
5692
|
posix.convertPathToPattern = convertPathToPattern$1;
|
|
5690
|
-
})(FastGlob
|
|
5691
|
-
(function(win32
|
|
5693
|
+
})(FastGlob.posix || (FastGlob.posix = {}));
|
|
5694
|
+
(function(win32) {
|
|
5692
5695
|
function escapePath$1(source) {
|
|
5693
5696
|
assertPatternsInput(source);
|
|
5694
5697
|
return utils.path.escapeWindowsPath(source);
|
|
5695
5698
|
}
|
|
5696
|
-
win32
|
|
5699
|
+
win32.escapePath = escapePath$1;
|
|
5697
5700
|
function convertPathToPattern$1(source) {
|
|
5698
5701
|
assertPatternsInput(source);
|
|
5699
5702
|
return utils.path.convertWindowsPathToPattern(source);
|
|
5700
5703
|
}
|
|
5701
|
-
win32
|
|
5702
|
-
})(FastGlob
|
|
5704
|
+
win32.convertPathToPattern = convertPathToPattern$1;
|
|
5705
|
+
})(FastGlob.win32 || (FastGlob.win32 = {}));
|
|
5703
5706
|
})(FastGlob || (FastGlob = {}));
|
|
5704
5707
|
function getWorks(source, _Provider, options$1) {
|
|
5705
5708
|
const patterns = [].concat(source);
|
|
@@ -5712,7 +5715,7 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5712
5715
|
if (![].concat(input).every((item) => utils.string.isString(item) && !utils.string.isEmpty(item))) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
5713
5716
|
}
|
|
5714
5717
|
module.exports = FastGlob;
|
|
5715
|
-
})
|
|
5718
|
+
}));
|
|
5716
5719
|
|
|
5717
5720
|
//#endregion
|
|
5718
5721
|
//#region ../../node_modules/.pnpm/image-meta@0.2.2/node_modules/image-meta/dist/index.mjs
|
|
@@ -6409,37 +6412,37 @@ const _UNC_REGEX = /^[/\\]{2}/;
|
|
|
6409
6412
|
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
6410
6413
|
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
6411
6414
|
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
6412
|
-
const normalize = function(path$
|
|
6413
|
-
if (path$
|
|
6414
|
-
path$
|
|
6415
|
-
const isUNCPath = path$
|
|
6416
|
-
const isPathAbsolute = isAbsolute(path$
|
|
6417
|
-
const trailingSeparator = path$
|
|
6418
|
-
path$
|
|
6419
|
-
if (path$
|
|
6415
|
+
const normalize = function(path$10) {
|
|
6416
|
+
if (path$10.length === 0) return ".";
|
|
6417
|
+
path$10 = normalizeWindowsPath(path$10);
|
|
6418
|
+
const isUNCPath = path$10.match(_UNC_REGEX);
|
|
6419
|
+
const isPathAbsolute = isAbsolute(path$10);
|
|
6420
|
+
const trailingSeparator = path$10[path$10.length - 1] === "/";
|
|
6421
|
+
path$10 = normalizeString(path$10, !isPathAbsolute);
|
|
6422
|
+
if (path$10.length === 0) {
|
|
6420
6423
|
if (isPathAbsolute) return "/";
|
|
6421
6424
|
return trailingSeparator ? "./" : ".";
|
|
6422
6425
|
}
|
|
6423
|
-
if (trailingSeparator) path$
|
|
6424
|
-
if (_DRIVE_LETTER_RE.test(path$
|
|
6426
|
+
if (trailingSeparator) path$10 += "/";
|
|
6427
|
+
if (_DRIVE_LETTER_RE.test(path$10)) path$10 += "/";
|
|
6425
6428
|
if (isUNCPath) {
|
|
6426
|
-
if (!isPathAbsolute) return `//./${path$
|
|
6427
|
-
return `//${path$
|
|
6429
|
+
if (!isPathAbsolute) return `//./${path$10}`;
|
|
6430
|
+
return `//${path$10}`;
|
|
6428
6431
|
}
|
|
6429
|
-
return isPathAbsolute && !isAbsolute(path$
|
|
6432
|
+
return isPathAbsolute && !isAbsolute(path$10) ? `/${path$10}` : path$10;
|
|
6430
6433
|
};
|
|
6431
6434
|
const join = function(...segments) {
|
|
6432
|
-
let path$
|
|
6435
|
+
let path$10 = "";
|
|
6433
6436
|
for (const seg of segments) {
|
|
6434
6437
|
if (!seg) continue;
|
|
6435
|
-
if (path$
|
|
6436
|
-
const pathTrailing = path$
|
|
6438
|
+
if (path$10.length > 0) {
|
|
6439
|
+
const pathTrailing = path$10[path$10.length - 1] === "/";
|
|
6437
6440
|
const segLeading = seg[0] === "/";
|
|
6438
|
-
if (pathTrailing && segLeading) path$
|
|
6439
|
-
else path$
|
|
6440
|
-
} else path$
|
|
6441
|
+
if (pathTrailing && segLeading) path$10 += seg.slice(1);
|
|
6442
|
+
else path$10 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
6443
|
+
} else path$10 += seg;
|
|
6441
6444
|
}
|
|
6442
|
-
return normalize(path$
|
|
6445
|
+
return normalize(path$10);
|
|
6443
6446
|
};
|
|
6444
6447
|
function cwd() {
|
|
6445
6448
|
if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
|
|
@@ -6450,23 +6453,23 @@ const resolve$1 = function(...arguments_) {
|
|
|
6450
6453
|
let resolvedPath = "";
|
|
6451
6454
|
let resolvedAbsolute = false;
|
|
6452
6455
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
6453
|
-
const path$
|
|
6454
|
-
if (!path$
|
|
6455
|
-
resolvedPath = `${path$
|
|
6456
|
-
resolvedAbsolute = isAbsolute(path$
|
|
6456
|
+
const path$10 = index >= 0 ? arguments_[index] : cwd();
|
|
6457
|
+
if (!path$10 || path$10.length === 0) continue;
|
|
6458
|
+
resolvedPath = `${path$10}/${resolvedPath}`;
|
|
6459
|
+
resolvedAbsolute = isAbsolute(path$10);
|
|
6457
6460
|
}
|
|
6458
6461
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
6459
6462
|
if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
|
|
6460
6463
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
6461
6464
|
};
|
|
6462
|
-
function normalizeString(path$
|
|
6465
|
+
function normalizeString(path$10, allowAboveRoot) {
|
|
6463
6466
|
let res = "";
|
|
6464
6467
|
let lastSegmentLength = 0;
|
|
6465
6468
|
let lastSlash = -1;
|
|
6466
6469
|
let dots = 0;
|
|
6467
6470
|
let char = null;
|
|
6468
|
-
for (let index = 0; index <= path$
|
|
6469
|
-
if (index < path$
|
|
6471
|
+
for (let index = 0; index <= path$10.length; ++index) {
|
|
6472
|
+
if (index < path$10.length) char = path$10[index];
|
|
6470
6473
|
else if (char === "/") break;
|
|
6471
6474
|
else char = "/";
|
|
6472
6475
|
if (char === "/") {
|
|
@@ -6498,8 +6501,8 @@ function normalizeString(path$11, allowAboveRoot) {
|
|
|
6498
6501
|
lastSegmentLength = 2;
|
|
6499
6502
|
}
|
|
6500
6503
|
} else {
|
|
6501
|
-
if (res.length > 0) res += `/${path$
|
|
6502
|
-
else res = path$
|
|
6504
|
+
if (res.length > 0) res += `/${path$10.slice(lastSlash + 1, index)}`;
|
|
6505
|
+
else res = path$10.slice(lastSlash + 1, index);
|
|
6503
6506
|
lastSegmentLength = index - lastSlash - 1;
|
|
6504
6507
|
}
|
|
6505
6508
|
lastSlash = index;
|
|
@@ -6562,9 +6565,9 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6562
6565
|
currentPromise.finally(() => {
|
|
6563
6566
|
currentPromise = null;
|
|
6564
6567
|
if (options$1.trailing && trailingArgs && !timeout) {
|
|
6565
|
-
const promise
|
|
6568
|
+
const promise = applyFn(_this, trailingArgs);
|
|
6566
6569
|
trailingArgs = null;
|
|
6567
|
-
return promise
|
|
6570
|
+
return promise;
|
|
6568
6571
|
}
|
|
6569
6572
|
});
|
|
6570
6573
|
return currentPromise;
|
|
@@ -6577,9 +6580,9 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6577
6580
|
clearTimeout(timeout);
|
|
6578
6581
|
timeout = setTimeout(() => {
|
|
6579
6582
|
timeout = null;
|
|
6580
|
-
const promise
|
|
6583
|
+
const promise = options$1.leading ? leadingValue : applyFn(this, args);
|
|
6581
6584
|
trailingArgs = null;
|
|
6582
|
-
for (const _resolve of resolveList) _resolve(promise
|
|
6585
|
+
for (const _resolve of resolveList) _resolve(promise);
|
|
6583
6586
|
resolveList = [];
|
|
6584
6587
|
}, wait);
|
|
6585
6588
|
if (shouldCallNow) {
|
|
@@ -6615,20 +6618,20 @@ async function _applyPromised(fn, _this, args) {
|
|
|
6615
6618
|
|
|
6616
6619
|
//#endregion
|
|
6617
6620
|
//#region src/rpc/assets.ts
|
|
6618
|
-
function guessType(path$
|
|
6619
|
-
if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path$
|
|
6620
|
-
if (/\.(?:mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path$
|
|
6621
|
-
if (/\.(?:mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path$
|
|
6622
|
-
if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path$
|
|
6623
|
-
if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path$
|
|
6624
|
-
if (/\.wasm/i.test(path$
|
|
6621
|
+
function guessType(path$10) {
|
|
6622
|
+
if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path$10)) return "image";
|
|
6623
|
+
if (/\.(?:mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path$10)) return "video";
|
|
6624
|
+
if (/\.(?:mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path$10)) return "audio";
|
|
6625
|
+
if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path$10)) return "font";
|
|
6626
|
+
if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path$10)) return "text";
|
|
6627
|
+
if (/\.wasm/i.test(path$10)) return "wasm";
|
|
6625
6628
|
return "other";
|
|
6626
6629
|
}
|
|
6627
6630
|
function getAssetsFunctions(ctx) {
|
|
6628
6631
|
const { server, config } = ctx;
|
|
6629
6632
|
const _imageMetaCache = /* @__PURE__ */ new Map();
|
|
6630
6633
|
let cache = null;
|
|
6631
|
-
async function scan
|
|
6634
|
+
async function scan() {
|
|
6632
6635
|
const dir = resolve$1(config.root);
|
|
6633
6636
|
const baseURL = config.base;
|
|
6634
6637
|
const publicDir = config.publicDir;
|
|
@@ -6654,24 +6657,24 @@ function getAssetsFunctions(ctx) {
|
|
|
6654
6657
|
});
|
|
6655
6658
|
cache = await Promise.all(files.map(async (relativePath) => {
|
|
6656
6659
|
const filePath = resolve$1(dir, relativePath);
|
|
6657
|
-
const stat
|
|
6658
|
-
const path$
|
|
6660
|
+
const stat = await fsp.lstat(filePath);
|
|
6661
|
+
const path$10 = relativePath.replace(relativePublicDir, "");
|
|
6659
6662
|
return {
|
|
6660
|
-
path: path$
|
|
6663
|
+
path: path$10,
|
|
6661
6664
|
relativePath,
|
|
6662
|
-
publicPath: join(baseURL, path$
|
|
6665
|
+
publicPath: join(baseURL, path$10),
|
|
6663
6666
|
filePath,
|
|
6664
6667
|
type: guessType(relativePath),
|
|
6665
|
-
size: stat
|
|
6666
|
-
mtime: stat
|
|
6668
|
+
size: stat.size,
|
|
6669
|
+
mtime: stat.mtimeMs
|
|
6667
6670
|
};
|
|
6668
6671
|
}));
|
|
6669
6672
|
return cache;
|
|
6670
6673
|
}
|
|
6671
6674
|
async function getAssetImporters(url) {
|
|
6672
6675
|
const importers = [];
|
|
6673
|
-
const module
|
|
6674
|
-
if (module
|
|
6676
|
+
const module = await server.moduleGraph.getModuleByUrl(url);
|
|
6677
|
+
if (module) for (const importer of module.importers) importers.push({
|
|
6675
6678
|
url: importer.url,
|
|
6676
6679
|
id: importer.id
|
|
6677
6680
|
});
|
|
@@ -6686,7 +6689,7 @@ function getAssetsFunctions(ctx) {
|
|
|
6686
6689
|
});
|
|
6687
6690
|
return {
|
|
6688
6691
|
async getStaticAssets() {
|
|
6689
|
-
return await scan
|
|
6692
|
+
return await scan();
|
|
6690
6693
|
},
|
|
6691
6694
|
async getAssetImporters(url) {
|
|
6692
6695
|
return await getAssetImporters(url);
|
|
@@ -6747,9 +6750,9 @@ function getGraphFunctions(ctx) {
|
|
|
6747
6750
|
function searchForVueDeps(id, seen = /* @__PURE__ */ new Set()) {
|
|
6748
6751
|
if (seen.has(id)) return [];
|
|
6749
6752
|
seen.add(id);
|
|
6750
|
-
const module
|
|
6751
|
-
if (!module
|
|
6752
|
-
return module
|
|
6753
|
+
const module = modules.find((m) => m.id === id);
|
|
6754
|
+
if (!module) return [];
|
|
6755
|
+
return module.deps.flatMap((i$1) => {
|
|
6753
6756
|
if (filteredModules.find((m) => m.id === i$1)) return [i$1];
|
|
6754
6757
|
return searchForVueDeps(i$1, seen);
|
|
6755
6758
|
});
|