vite-plugin-vue-devtools 8.0.7 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-DWMTtST_.js → IconTitle.vue_vue_type_script_setup_true_lang-CfDGRuuz.js} +1 -1
- package/client/assets/SectionBlock-Crn18Q0p.js +1 -0
- package/client/assets/{assets-BdWpWia9.js → assets-BRwG2HLw.js} +2 -2
- package/client/assets/{components-BJTYv_f2.js → components-Dc6g-iyY.js} +1 -1
- package/client/assets/{custom-inspector-tab-view-jNKZjEFE.js → custom-inspector-tab-view--ulUW-qb.js} +1 -1
- package/client/assets/{custom-tab-view-Djz5OIIA.js → custom-tab-view-C959CANd.js} +1 -1
- package/client/assets/{graph-CCabbOi3.js → graph-BRGxD27w.js} +1 -1
- package/client/assets/{index-E3YKiktg.js → index-B5ZMOy4O.js} +266 -266
- package/client/assets/{index-DHoFh1q_.css → index-BmFftAtl.css} +1 -1
- package/client/assets/{overview-Bb5V6n6L.js → overview-CxLRqeZ8.js} +1 -1
- package/client/assets/{pages-D0Xl3qvp.js → pages-B01Hd5DR.js} +1 -1
- package/client/assets/{pinia-BoMbl4iP.js → pinia-C62RQFBU.js} +1 -1
- package/client/assets/{router-CZ5CeOIc.js → router-CMWgb1rd.js} +1 -1
- package/client/assets/{settings-BruolvbP.js → settings-Cp5OpdUZ.js} +1 -1
- package/client/assets/timeline-BZZEyhA7.css +1 -0
- package/client/assets/timeline-BnYZ8d9h.js +1 -0
- package/client/index.html +1 -1
- package/dist/vite.cjs +437 -545
- package/dist/vite.js +438 -549
- package/package.json +5 -5
- package/src/overlay/devtools-overlay.css +1 -1
- package/src/overlay/devtools-overlay.mjs +4 -4
- package/client/assets/SectionBlock-FW2e-EfO.js +0 -1
- package/client/assets/timeline-Bzqsvc_i.js +0 -1
- package/client/assets/timeline-DQ8UE2TV.css +0 -1
package/dist/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -7,16 +7,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
9
|
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
20
16
|
}
|
|
21
17
|
return to;
|
|
22
18
|
};
|
|
@@ -24,7 +20,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
20
|
value: mod,
|
|
25
21
|
enumerable: true
|
|
26
22
|
}) : target, mod));
|
|
27
|
-
|
|
28
23
|
//#endregion
|
|
29
24
|
let node_fs = require("node:fs");
|
|
30
25
|
node_fs = __toESM(node_fs);
|
|
@@ -42,7 +37,6 @@ let vite_plugin_vue_inspector = require("vite-plugin-vue-inspector");
|
|
|
42
37
|
vite_plugin_vue_inspector = __toESM(vite_plugin_vue_inspector);
|
|
43
38
|
let node_fs_promises = require("node:fs/promises");
|
|
44
39
|
node_fs_promises = __toESM(node_fs_promises);
|
|
45
|
-
|
|
46
40
|
//#region ../../node_modules/.pnpm/kolorist@1.8.0/node_modules/kolorist/dist/esm/index.mjs
|
|
47
41
|
let enabled = true;
|
|
48
42
|
const globalVar = typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
|
|
@@ -82,52 +76,50 @@ function kolorist(start, end, level = 1) {
|
|
|
82
76
|
return options.enabled && options.supportLevel >= level ? open + ("" + str).replace(regex, open) + close : "" + str;
|
|
83
77
|
};
|
|
84
78
|
}
|
|
85
|
-
|
|
79
|
+
kolorist(0, 0);
|
|
86
80
|
const bold = kolorist(1, 22);
|
|
87
81
|
const dim = kolorist(2, 22);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
82
|
+
kolorist(3, 23);
|
|
83
|
+
kolorist(4, 24);
|
|
84
|
+
kolorist(7, 27);
|
|
85
|
+
kolorist(8, 28);
|
|
86
|
+
kolorist(9, 29);
|
|
87
|
+
kolorist(30, 39);
|
|
88
|
+
kolorist(31, 39);
|
|
95
89
|
const green = kolorist(32, 39);
|
|
96
90
|
const yellow = kolorist(33, 39);
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
kolorist(34, 39);
|
|
92
|
+
kolorist(35, 39);
|
|
99
93
|
const cyan = kolorist(36, 39);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
94
|
+
kolorist(97, 39);
|
|
95
|
+
kolorist(90, 39);
|
|
96
|
+
kolorist(37, 39);
|
|
97
|
+
kolorist(91, 39);
|
|
98
|
+
kolorist(92, 39);
|
|
99
|
+
kolorist(93, 39);
|
|
100
|
+
kolorist(94, 39);
|
|
101
|
+
kolorist(95, 39);
|
|
102
|
+
kolorist(96, 39);
|
|
103
|
+
kolorist(40, 49);
|
|
104
|
+
kolorist(41, 49);
|
|
105
|
+
kolorist(42, 49);
|
|
106
|
+
kolorist(43, 49);
|
|
107
|
+
kolorist(44, 49);
|
|
108
|
+
kolorist(45, 49);
|
|
109
|
+
kolorist(46, 49);
|
|
110
|
+
kolorist(107, 49);
|
|
111
|
+
kolorist(100, 49);
|
|
112
|
+
kolorist(101, 49);
|
|
113
|
+
kolorist(102, 49);
|
|
114
|
+
kolorist(103, 49);
|
|
115
|
+
kolorist(104, 49);
|
|
116
|
+
kolorist(105, 49);
|
|
117
|
+
kolorist(106, 49);
|
|
118
|
+
kolorist(47, 49);
|
|
126
119
|
//#endregion
|
|
127
120
|
//#region src/dir.ts
|
|
128
121
|
const DIR_DIST = typeof __dirname !== "undefined" ? __dirname : (0, node_path.dirname)((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
|
|
129
122
|
const DIR_CLIENT = (0, node_path.resolve)(DIR_DIST, "../client");
|
|
130
|
-
|
|
131
123
|
//#endregion
|
|
132
124
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
133
125
|
var require_array = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -148,7 +140,6 @@ var require_array = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
148
140
|
}
|
|
149
141
|
exports.splitWhen = splitWhen;
|
|
150
142
|
}));
|
|
151
|
-
|
|
152
143
|
//#endregion
|
|
153
144
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
154
145
|
var require_errno = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -159,7 +150,6 @@ var require_errno = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
159
150
|
}
|
|
160
151
|
exports.isEnoentCodeError = isEnoentCodeError;
|
|
161
152
|
}));
|
|
162
|
-
|
|
163
153
|
//#endregion
|
|
164
154
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
165
155
|
var require_fs$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -182,7 +172,6 @@ var require_fs$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
182
172
|
}
|
|
183
173
|
exports.createDirentFromStats = createDirentFromStats;
|
|
184
174
|
}));
|
|
185
|
-
|
|
186
175
|
//#endregion
|
|
187
176
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
188
177
|
var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -217,8 +206,8 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
217
206
|
return filepath.replace(/\\/g, "/");
|
|
218
207
|
}
|
|
219
208
|
exports.unixify = unixify;
|
|
220
|
-
function makeAbsolute(cwd
|
|
221
|
-
return path$9.resolve(cwd
|
|
209
|
+
function makeAbsolute(cwd, filepath) {
|
|
210
|
+
return path$9.resolve(cwd, filepath);
|
|
222
211
|
}
|
|
223
212
|
exports.makeAbsolute = makeAbsolute;
|
|
224
213
|
function removeLeadingDotSegment(entry) {
|
|
@@ -248,7 +237,6 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
248
237
|
}
|
|
249
238
|
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
250
239
|
}));
|
|
251
|
-
|
|
252
240
|
//#endregion
|
|
253
241
|
//#region ../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
254
242
|
var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -268,7 +256,6 @@ var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
268
256
|
return false;
|
|
269
257
|
};
|
|
270
258
|
}));
|
|
271
|
-
|
|
272
259
|
//#endregion
|
|
273
260
|
//#region ../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
274
261
|
var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -358,15 +345,14 @@ var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
358
345
|
}
|
|
359
346
|
return false;
|
|
360
347
|
};
|
|
361
|
-
module.exports = function isGlob(str, options
|
|
348
|
+
module.exports = function isGlob(str, options) {
|
|
362
349
|
if (typeof str !== "string" || str === "") return false;
|
|
363
350
|
if (isExtglob(str)) return true;
|
|
364
351
|
var check = strictCheck;
|
|
365
|
-
if (options
|
|
352
|
+
if (options && options.strict === false) check = relaxedCheck;
|
|
366
353
|
return check(str);
|
|
367
354
|
};
|
|
368
355
|
}));
|
|
369
|
-
|
|
370
356
|
//#endregion
|
|
371
357
|
//#region ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
|
|
372
358
|
var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -394,7 +380,6 @@ var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
394
380
|
return str.replace(escaped, "$1");
|
|
395
381
|
};
|
|
396
382
|
}));
|
|
397
|
-
|
|
398
383
|
//#endregion
|
|
399
384
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
400
385
|
var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -406,7 +391,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
406
391
|
/**
|
|
407
392
|
* Find a node of the given type
|
|
408
393
|
*/
|
|
409
|
-
exports.find = (node, type) => node.nodes.find((node
|
|
394
|
+
exports.find = (node, type) => node.nodes.find((node) => node.type === type);
|
|
410
395
|
/**
|
|
411
396
|
* Find a node of the given type
|
|
412
397
|
*/
|
|
@@ -490,15 +475,14 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
490
475
|
return result;
|
|
491
476
|
};
|
|
492
477
|
}));
|
|
493
|
-
|
|
494
478
|
//#endregion
|
|
495
479
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
496
480
|
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
497
481
|
const utils = require_utils$3();
|
|
498
|
-
module.exports = (ast, options
|
|
482
|
+
module.exports = (ast, options = {}) => {
|
|
499
483
|
const stringify = (node, parent = {}) => {
|
|
500
|
-
const invalidBlock = options
|
|
501
|
-
const invalidNode = node.invalid === true && options
|
|
484
|
+
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
485
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
502
486
|
let output = "";
|
|
503
487
|
if (node.value) {
|
|
504
488
|
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) return "\\" + node.value;
|
|
@@ -511,7 +495,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
511
495
|
return stringify(ast);
|
|
512
496
|
};
|
|
513
497
|
}));
|
|
514
|
-
|
|
515
498
|
//#endregion
|
|
516
499
|
//#region ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
517
500
|
/*!
|
|
@@ -527,7 +510,6 @@ var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
527
510
|
return false;
|
|
528
511
|
};
|
|
529
512
|
}));
|
|
530
|
-
|
|
531
513
|
//#endregion
|
|
532
514
|
//#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
533
515
|
/*!
|
|
@@ -538,13 +520,13 @@ var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
538
520
|
*/
|
|
539
521
|
var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
540
522
|
const isNumber = require_is_number();
|
|
541
|
-
const toRegexRange = (min, max, options
|
|
523
|
+
const toRegexRange = (min, max, options) => {
|
|
542
524
|
if (isNumber(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
543
525
|
if (max === void 0 || min === max) return String(min);
|
|
544
526
|
if (isNumber(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
545
527
|
let opts = {
|
|
546
528
|
relaxZeros: true,
|
|
547
|
-
...options
|
|
529
|
+
...options
|
|
548
530
|
};
|
|
549
531
|
if (typeof opts.strictZeros === "boolean") opts.relaxZeros = opts.strictZeros === false;
|
|
550
532
|
let relax = String(opts.relaxZeros);
|
|
@@ -587,10 +569,10 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
587
569
|
toRegexRange.cache[cacheKey] = state;
|
|
588
570
|
return state.result;
|
|
589
571
|
};
|
|
590
|
-
function collatePatterns(neg, pos, options
|
|
591
|
-
let onlyNegative = filterPatterns(neg, pos, "-", false, options
|
|
592
|
-
let onlyPositive = filterPatterns(pos, neg, "", false, options
|
|
593
|
-
let intersected = filterPatterns(neg, pos, "-?", true, options
|
|
572
|
+
function collatePatterns(neg, pos, options) {
|
|
573
|
+
let onlyNegative = filterPatterns(neg, pos, "-", false, options) || [];
|
|
574
|
+
let onlyPositive = filterPatterns(pos, neg, "", false, options) || [];
|
|
575
|
+
let intersected = filterPatterns(neg, pos, "-?", true, options) || [];
|
|
594
576
|
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
|
595
577
|
}
|
|
596
578
|
function splitToRanges(min, max) {
|
|
@@ -619,7 +601,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
619
601
|
* @param {Number} `stop`
|
|
620
602
|
* @return {String}
|
|
621
603
|
*/
|
|
622
|
-
function rangeToPattern(start, stop, options
|
|
604
|
+
function rangeToPattern(start, stop, options) {
|
|
623
605
|
if (start === stop) return {
|
|
624
606
|
pattern: start,
|
|
625
607
|
count: [],
|
|
@@ -632,41 +614,41 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
632
614
|
for (let i = 0; i < digits; i++) {
|
|
633
615
|
let [startDigit, stopDigit] = zipped[i];
|
|
634
616
|
if (startDigit === stopDigit) pattern += startDigit;
|
|
635
|
-
else if (startDigit !== "0" || stopDigit !== "9") pattern += toCharacterClass(startDigit, stopDigit, options
|
|
617
|
+
else if (startDigit !== "0" || stopDigit !== "9") pattern += toCharacterClass(startDigit, stopDigit, options);
|
|
636
618
|
else count++;
|
|
637
619
|
}
|
|
638
|
-
if (count) pattern += options
|
|
620
|
+
if (count) pattern += options.shorthand === true ? "\\d" : "[0-9]";
|
|
639
621
|
return {
|
|
640
622
|
pattern,
|
|
641
623
|
count: [count],
|
|
642
624
|
digits
|
|
643
625
|
};
|
|
644
626
|
}
|
|
645
|
-
function splitToPatterns(min, max, tok, options
|
|
627
|
+
function splitToPatterns(min, max, tok, options) {
|
|
646
628
|
let ranges = splitToRanges(min, max);
|
|
647
629
|
let tokens = [];
|
|
648
630
|
let start = min;
|
|
649
631
|
let prev;
|
|
650
632
|
for (let i = 0; i < ranges.length; i++) {
|
|
651
|
-
let max
|
|
652
|
-
let obj = rangeToPattern(String(start), String(max
|
|
633
|
+
let max = ranges[i];
|
|
634
|
+
let obj = rangeToPattern(String(start), String(max), options);
|
|
653
635
|
let zeros = "";
|
|
654
636
|
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
|
655
637
|
if (prev.count.length > 1) prev.count.pop();
|
|
656
638
|
prev.count.push(obj.count[0]);
|
|
657
639
|
prev.string = prev.pattern + toQuantifier(prev.count);
|
|
658
|
-
start = max
|
|
640
|
+
start = max + 1;
|
|
659
641
|
continue;
|
|
660
642
|
}
|
|
661
|
-
if (tok.isPadded) zeros = padZeros(max
|
|
643
|
+
if (tok.isPadded) zeros = padZeros(max, tok, options);
|
|
662
644
|
obj.string = zeros + obj.pattern + toQuantifier(obj.count);
|
|
663
645
|
tokens.push(obj);
|
|
664
|
-
start = max
|
|
646
|
+
start = max + 1;
|
|
665
647
|
prev = obj;
|
|
666
648
|
}
|
|
667
649
|
return tokens;
|
|
668
650
|
}
|
|
669
|
-
function filterPatterns(arr, comparison, prefix, intersection, options
|
|
651
|
+
function filterPatterns(arr, comparison, prefix, intersection, options) {
|
|
670
652
|
let result = [];
|
|
671
653
|
for (let ele of arr) {
|
|
672
654
|
let { string } = ele;
|
|
@@ -700,16 +682,16 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
700
682
|
if (stop || start > 1) return `{${start + (stop ? "," + stop : "")}}`;
|
|
701
683
|
return "";
|
|
702
684
|
}
|
|
703
|
-
function toCharacterClass(a, b, options
|
|
685
|
+
function toCharacterClass(a, b, options) {
|
|
704
686
|
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
705
687
|
}
|
|
706
688
|
function hasPadding(str) {
|
|
707
689
|
return /^-?(0+)\d/.test(str);
|
|
708
690
|
}
|
|
709
|
-
function padZeros(value, tok, options
|
|
691
|
+
function padZeros(value, tok, options) {
|
|
710
692
|
if (!tok.isPadded) return value;
|
|
711
693
|
let diff = Math.abs(tok.maxLen - String(value).length);
|
|
712
|
-
let relax = options
|
|
694
|
+
let relax = options.relaxZeros !== false;
|
|
713
695
|
switch (diff) {
|
|
714
696
|
case 0: return "";
|
|
715
697
|
case 1: return relax ? "0?" : "0";
|
|
@@ -727,7 +709,6 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
727
709
|
*/
|
|
728
710
|
module.exports = toRegexRange;
|
|
729
711
|
}));
|
|
730
|
-
|
|
731
712
|
//#endregion
|
|
732
713
|
//#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
733
714
|
/*!
|
|
@@ -755,9 +736,9 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
755
736
|
while (value[++index] === "0");
|
|
756
737
|
return index > 0;
|
|
757
738
|
};
|
|
758
|
-
const stringify = (start, end, options
|
|
739
|
+
const stringify = (start, end, options) => {
|
|
759
740
|
if (typeof start === "string" || typeof end === "string") return true;
|
|
760
|
-
return options
|
|
741
|
+
return options.stringify === true;
|
|
761
742
|
};
|
|
762
743
|
const pad = (input, maxLength, toNumber) => {
|
|
763
744
|
if (maxLength > 0) {
|
|
@@ -777,10 +758,10 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
777
758
|
while (input.length < maxLength) input = "0" + input;
|
|
778
759
|
return negative ? "-" + input : input;
|
|
779
760
|
};
|
|
780
|
-
const toSequence = (parts, options
|
|
761
|
+
const toSequence = (parts, options, maxLen) => {
|
|
781
762
|
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
782
763
|
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
783
|
-
let prefix = options
|
|
764
|
+
let prefix = options.capture ? "" : "?:";
|
|
784
765
|
let positives = "";
|
|
785
766
|
let negatives = "";
|
|
786
767
|
let result;
|
|
@@ -788,42 +769,42 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
788
769
|
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`;
|
|
789
770
|
if (positives && negatives) result = `${positives}|${negatives}`;
|
|
790
771
|
else result = positives || negatives;
|
|
791
|
-
if (options
|
|
772
|
+
if (options.wrap) return `(${prefix}${result})`;
|
|
792
773
|
return result;
|
|
793
774
|
};
|
|
794
|
-
const toRange = (a, b, isNumbers, options
|
|
775
|
+
const toRange = (a, b, isNumbers, options) => {
|
|
795
776
|
if (isNumbers) return toRegexRange(a, b, {
|
|
796
777
|
wrap: false,
|
|
797
|
-
...options
|
|
778
|
+
...options
|
|
798
779
|
});
|
|
799
780
|
let start = String.fromCharCode(a);
|
|
800
781
|
if (a === b) return start;
|
|
801
782
|
return `[${start}-${String.fromCharCode(b)}]`;
|
|
802
783
|
};
|
|
803
|
-
const toRegex = (start, end, options
|
|
784
|
+
const toRegex = (start, end, options) => {
|
|
804
785
|
if (Array.isArray(start)) {
|
|
805
|
-
let wrap = options
|
|
806
|
-
let prefix = options
|
|
786
|
+
let wrap = options.wrap === true;
|
|
787
|
+
let prefix = options.capture ? "" : "?:";
|
|
807
788
|
return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
|
|
808
789
|
}
|
|
809
|
-
return toRegexRange(start, end, options
|
|
790
|
+
return toRegexRange(start, end, options);
|
|
810
791
|
};
|
|
811
792
|
const rangeError = (...args) => {
|
|
812
793
|
return /* @__PURE__ */ new RangeError("Invalid range arguments: " + util$1.inspect(...args));
|
|
813
794
|
};
|
|
814
|
-
const invalidRange = (start, end, options
|
|
815
|
-
if (options
|
|
795
|
+
const invalidRange = (start, end, options) => {
|
|
796
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
816
797
|
return [];
|
|
817
798
|
};
|
|
818
|
-
const invalidStep = (step, options
|
|
819
|
-
if (options
|
|
799
|
+
const invalidStep = (step, options) => {
|
|
800
|
+
if (options.strictRanges === true) throw new TypeError(`Expected step "${step}" to be a number`);
|
|
820
801
|
return [];
|
|
821
802
|
};
|
|
822
|
-
const fillNumbers = (start, end, step = 1, options
|
|
803
|
+
const fillNumbers = (start, end, step = 1, options = {}) => {
|
|
823
804
|
let a = Number(start);
|
|
824
805
|
let b = Number(end);
|
|
825
806
|
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
826
|
-
if (options
|
|
807
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
827
808
|
return [];
|
|
828
809
|
}
|
|
829
810
|
if (a === 0) a = 0;
|
|
@@ -835,9 +816,9 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
835
816
|
step = Math.max(Math.abs(step), 1);
|
|
836
817
|
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
837
818
|
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
838
|
-
let toNumber = padded === false && stringify(start, end, options
|
|
839
|
-
let format = options
|
|
840
|
-
if (options
|
|
819
|
+
let toNumber = padded === false && stringify(start, end, options) === false;
|
|
820
|
+
let format = options.transform || transform(toNumber);
|
|
821
|
+
if (options.toRegex && step === 1) return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
|
|
841
822
|
let parts = {
|
|
842
823
|
negatives: [],
|
|
843
824
|
positives: []
|
|
@@ -846,26 +827,26 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
846
827
|
let range = [];
|
|
847
828
|
let index = 0;
|
|
848
829
|
while (descending ? a >= b : a <= b) {
|
|
849
|
-
if (options
|
|
830
|
+
if (options.toRegex === true && step > 1) push(a);
|
|
850
831
|
else range.push(pad(format(a, index), maxLen, toNumber));
|
|
851
832
|
a = descending ? a - step : a + step;
|
|
852
833
|
index++;
|
|
853
834
|
}
|
|
854
|
-
if (options
|
|
835
|
+
if (options.toRegex === true) return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, {
|
|
855
836
|
wrap: false,
|
|
856
|
-
...options
|
|
837
|
+
...options
|
|
857
838
|
});
|
|
858
839
|
return range;
|
|
859
840
|
};
|
|
860
|
-
const fillLetters = (start, end, step = 1, options
|
|
861
|
-
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) return invalidRange(start, end, options
|
|
862
|
-
let format = options
|
|
841
|
+
const fillLetters = (start, end, step = 1, options = {}) => {
|
|
842
|
+
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) return invalidRange(start, end, options);
|
|
843
|
+
let format = options.transform || ((val) => String.fromCharCode(val));
|
|
863
844
|
let a = `${start}`.charCodeAt(0);
|
|
864
845
|
let b = `${end}`.charCodeAt(0);
|
|
865
846
|
let descending = a > b;
|
|
866
847
|
let min = Math.min(a, b);
|
|
867
848
|
let max = Math.max(a, b);
|
|
868
|
-
if (options
|
|
849
|
+
if (options.toRegex && step === 1) return toRange(min, max, false, options);
|
|
869
850
|
let range = [];
|
|
870
851
|
let index = 0;
|
|
871
852
|
while (descending ? a >= b : a <= b) {
|
|
@@ -873,18 +854,18 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
873
854
|
a = descending ? a - step : a + step;
|
|
874
855
|
index++;
|
|
875
856
|
}
|
|
876
|
-
if (options
|
|
857
|
+
if (options.toRegex === true) return toRegex(range, null, {
|
|
877
858
|
wrap: false,
|
|
878
|
-
options
|
|
859
|
+
options
|
|
879
860
|
});
|
|
880
861
|
return range;
|
|
881
862
|
};
|
|
882
|
-
const fill = (start, end, step, options
|
|
863
|
+
const fill = (start, end, step, options = {}) => {
|
|
883
864
|
if (end == null && isValidValue(start)) return [start];
|
|
884
|
-
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options
|
|
865
|
+
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options);
|
|
885
866
|
if (typeof step === "function") return fill(start, end, 1, { transform: step });
|
|
886
867
|
if (isObject(step)) return fill(start, end, 0, step);
|
|
887
|
-
let opts = { ...options
|
|
868
|
+
let opts = { ...options };
|
|
888
869
|
if (opts.capture === true) opts.wrap = true;
|
|
889
870
|
step = step || opts.step || 1;
|
|
890
871
|
if (!isNumber(step)) {
|
|
@@ -896,18 +877,17 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
896
877
|
};
|
|
897
878
|
module.exports = fill;
|
|
898
879
|
}));
|
|
899
|
-
|
|
900
880
|
//#endregion
|
|
901
881
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
902
882
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
903
883
|
const fill = require_fill_range();
|
|
904
884
|
const utils = require_utils$3();
|
|
905
|
-
const compile = (ast, options
|
|
885
|
+
const compile = (ast, options = {}) => {
|
|
906
886
|
const walk = (node, parent = {}) => {
|
|
907
887
|
const invalidBlock = utils.isInvalidBrace(parent);
|
|
908
|
-
const invalidNode = node.invalid === true && options
|
|
888
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
909
889
|
const invalid = invalidBlock === true || invalidNode === true;
|
|
910
|
-
const prefix = options
|
|
890
|
+
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
911
891
|
let output = "";
|
|
912
892
|
if (node.isOpen === true) return prefix + node.value;
|
|
913
893
|
if (node.isClose === true) {
|
|
@@ -921,7 +901,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
921
901
|
if (node.nodes && node.ranges > 0) {
|
|
922
902
|
const args = utils.reduce(node.nodes);
|
|
923
903
|
const range = fill(...args, {
|
|
924
|
-
...options
|
|
904
|
+
...options,
|
|
925
905
|
wrap: false,
|
|
926
906
|
toRegex: true,
|
|
927
907
|
strictZeros: true
|
|
@@ -935,7 +915,6 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
935
915
|
};
|
|
936
916
|
module.exports = compile;
|
|
937
917
|
}));
|
|
938
|
-
|
|
939
918
|
//#endregion
|
|
940
919
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
941
920
|
var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -955,8 +934,8 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
955
934
|
}
|
|
956
935
|
return utils.flatten(result);
|
|
957
936
|
};
|
|
958
|
-
const expand = (ast, options
|
|
959
|
-
const rangeLimit = options
|
|
937
|
+
const expand = (ast, options = {}) => {
|
|
938
|
+
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
960
939
|
const walk = (node, parent = {}) => {
|
|
961
940
|
node.queue = [];
|
|
962
941
|
let p = parent;
|
|
@@ -966,7 +945,7 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
966
945
|
q = p.queue;
|
|
967
946
|
}
|
|
968
947
|
if (node.invalid || node.dollar) {
|
|
969
|
-
q.push(append(q.pop(), stringify(node, options
|
|
948
|
+
q.push(append(q.pop(), stringify(node, options)));
|
|
970
949
|
return;
|
|
971
950
|
}
|
|
972
951
|
if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
|
|
@@ -975,9 +954,9 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
975
954
|
}
|
|
976
955
|
if (node.nodes && node.ranges > 0) {
|
|
977
956
|
const args = utils.reduce(node.nodes);
|
|
978
|
-
if (utils.exceedsLimit(...args, options
|
|
979
|
-
let range = fill(...args, options
|
|
980
|
-
if (range.length === 0) range = stringify(node, options
|
|
957
|
+
if (utils.exceedsLimit(...args, options.step, rangeLimit)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
958
|
+
let range = fill(...args, options);
|
|
959
|
+
if (range.length === 0) range = stringify(node, options);
|
|
981
960
|
q.push(append(q.pop(), range));
|
|
982
961
|
node.nodes = [];
|
|
983
962
|
return;
|
|
@@ -1012,7 +991,6 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1012
991
|
};
|
|
1013
992
|
module.exports = expand;
|
|
1014
993
|
}));
|
|
1015
|
-
|
|
1016
994
|
//#endregion
|
|
1017
995
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
1018
996
|
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1064,7 +1042,6 @@ var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1064
1042
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
|
|
1065
1043
|
};
|
|
1066
1044
|
}));
|
|
1067
|
-
|
|
1068
1045
|
//#endregion
|
|
1069
1046
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
1070
1047
|
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1076,9 +1053,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1076
1053
|
/**
|
|
1077
1054
|
* parse
|
|
1078
1055
|
*/
|
|
1079
|
-
const parse = (input, options
|
|
1056
|
+
const parse = (input, options = {}) => {
|
|
1080
1057
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
1081
|
-
const opts = options
|
|
1058
|
+
const opts = options || {};
|
|
1082
1059
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
1083
1060
|
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
1084
1061
|
const ast = {
|
|
@@ -1124,7 +1101,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1124
1101
|
if (value === CHAR_BACKSLASH) {
|
|
1125
1102
|
push({
|
|
1126
1103
|
type: "text",
|
|
1127
|
-
value: (options
|
|
1104
|
+
value: (options.keepEscaping ? value : "") + advance()
|
|
1128
1105
|
});
|
|
1129
1106
|
continue;
|
|
1130
1107
|
}
|
|
@@ -1202,14 +1179,14 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1202
1179
|
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
1203
1180
|
const open = value;
|
|
1204
1181
|
let next;
|
|
1205
|
-
if (options
|
|
1182
|
+
if (options.keepQuotes !== true) value = "";
|
|
1206
1183
|
while (index < length && (next = advance())) {
|
|
1207
1184
|
if (next === CHAR_BACKSLASH) {
|
|
1208
1185
|
value += next + advance();
|
|
1209
1186
|
continue;
|
|
1210
1187
|
}
|
|
1211
1188
|
if (next === open) {
|
|
1212
|
-
if (options
|
|
1189
|
+
if (options.keepQuotes === true) value += next;
|
|
1213
1190
|
break;
|
|
1214
1191
|
}
|
|
1215
1192
|
value += next;
|
|
@@ -1343,8 +1320,8 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1343
1320
|
}
|
|
1344
1321
|
});
|
|
1345
1322
|
const parent = stack[stack.length - 1];
|
|
1346
|
-
const index
|
|
1347
|
-
parent.nodes.splice(index
|
|
1323
|
+
const index = parent.nodes.indexOf(block);
|
|
1324
|
+
parent.nodes.splice(index, 1, ...block.nodes);
|
|
1348
1325
|
}
|
|
1349
1326
|
} while (stack.length > 0);
|
|
1350
1327
|
push({ type: "eos" });
|
|
@@ -1352,7 +1329,6 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1352
1329
|
};
|
|
1353
1330
|
module.exports = parse;
|
|
1354
1331
|
}));
|
|
1355
|
-
|
|
1356
1332
|
//#endregion
|
|
1357
1333
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
1358
1334
|
var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1373,15 +1349,15 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1373
1349
|
* @return {String}
|
|
1374
1350
|
* @api public
|
|
1375
1351
|
*/
|
|
1376
|
-
const braces = (input, options
|
|
1352
|
+
const braces = (input, options = {}) => {
|
|
1377
1353
|
let output = [];
|
|
1378
1354
|
if (Array.isArray(input)) for (const pattern of input) {
|
|
1379
|
-
const result = braces.create(pattern, options
|
|
1355
|
+
const result = braces.create(pattern, options);
|
|
1380
1356
|
if (Array.isArray(result)) output.push(...result);
|
|
1381
1357
|
else output.push(result);
|
|
1382
1358
|
}
|
|
1383
|
-
else output = [].concat(braces.create(input, options
|
|
1384
|
-
if (options
|
|
1359
|
+
else output = [].concat(braces.create(input, options));
|
|
1360
|
+
if (options && options.expand === true && options.nodupes === true) output = [...new Set(output)];
|
|
1385
1361
|
return output;
|
|
1386
1362
|
};
|
|
1387
1363
|
/**
|
|
@@ -1397,7 +1373,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1397
1373
|
* @return {Object} Returns an AST
|
|
1398
1374
|
* @api public
|
|
1399
1375
|
*/
|
|
1400
|
-
braces.parse = (input, options
|
|
1376
|
+
braces.parse = (input, options = {}) => parse(input, options);
|
|
1401
1377
|
/**
|
|
1402
1378
|
* Creates a braces string from an AST, or an AST node.
|
|
1403
1379
|
*
|
|
@@ -1411,9 +1387,9 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1411
1387
|
* @return {Array} Returns an array of expanded values.
|
|
1412
1388
|
* @api public
|
|
1413
1389
|
*/
|
|
1414
|
-
braces.stringify = (input, options
|
|
1415
|
-
if (typeof input === "string") return stringify(braces.parse(input, options
|
|
1416
|
-
return stringify(input, options
|
|
1390
|
+
braces.stringify = (input, options = {}) => {
|
|
1391
|
+
if (typeof input === "string") return stringify(braces.parse(input, options), options);
|
|
1392
|
+
return stringify(input, options);
|
|
1417
1393
|
};
|
|
1418
1394
|
/**
|
|
1419
1395
|
* Compiles a brace pattern into a regex-compatible, optimized string.
|
|
@@ -1429,9 +1405,9 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1429
1405
|
* @return {Array} Returns an array of expanded values.
|
|
1430
1406
|
* @api public
|
|
1431
1407
|
*/
|
|
1432
|
-
braces.compile = (input, options
|
|
1433
|
-
if (typeof input === "string") input = braces.parse(input, options
|
|
1434
|
-
return compile(input, options
|
|
1408
|
+
braces.compile = (input, options = {}) => {
|
|
1409
|
+
if (typeof input === "string") input = braces.parse(input, options);
|
|
1410
|
+
return compile(input, options);
|
|
1435
1411
|
};
|
|
1436
1412
|
/**
|
|
1437
1413
|
* Expands a brace pattern into an array. This method is called by the
|
|
@@ -1449,11 +1425,11 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1449
1425
|
* @return {Array} Returns an array of expanded values.
|
|
1450
1426
|
* @api public
|
|
1451
1427
|
*/
|
|
1452
|
-
braces.expand = (input, options
|
|
1453
|
-
if (typeof input === "string") input = braces.parse(input, options
|
|
1454
|
-
let result = expand(input, options
|
|
1455
|
-
if (options
|
|
1456
|
-
if (options
|
|
1428
|
+
braces.expand = (input, options = {}) => {
|
|
1429
|
+
if (typeof input === "string") input = braces.parse(input, options);
|
|
1430
|
+
let result = expand(input, options);
|
|
1431
|
+
if (options.noempty === true) result = result.filter(Boolean);
|
|
1432
|
+
if (options.nodupes === true) result = [...new Set(result)];
|
|
1457
1433
|
return result;
|
|
1458
1434
|
};
|
|
1459
1435
|
/**
|
|
@@ -1471,16 +1447,15 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1471
1447
|
* @return {Array} Returns an array of expanded values.
|
|
1472
1448
|
* @api public
|
|
1473
1449
|
*/
|
|
1474
|
-
braces.create = (input, options
|
|
1450
|
+
braces.create = (input, options = {}) => {
|
|
1475
1451
|
if (input === "" || input.length < 3) return [input];
|
|
1476
|
-
return options
|
|
1452
|
+
return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options);
|
|
1477
1453
|
};
|
|
1478
1454
|
/**
|
|
1479
1455
|
* Expose "braces"
|
|
1480
1456
|
*/
|
|
1481
1457
|
module.exports = braces;
|
|
1482
1458
|
}));
|
|
1483
|
-
|
|
1484
1459
|
//#endregion
|
|
1485
1460
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
1486
1461
|
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1533,28 +1508,24 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1533
1508
|
START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
|
|
1534
1509
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
1535
1510
|
};
|
|
1536
|
-
/**
|
|
1537
|
-
* POSIX Bracket Regex
|
|
1538
|
-
*/
|
|
1539
|
-
const POSIX_REGEX_SOURCE = {
|
|
1540
|
-
alnum: "a-zA-Z0-9",
|
|
1541
|
-
alpha: "a-zA-Z",
|
|
1542
|
-
ascii: "\\x00-\\x7F",
|
|
1543
|
-
blank: " \\t",
|
|
1544
|
-
cntrl: "\\x00-\\x1F\\x7F",
|
|
1545
|
-
digit: "0-9",
|
|
1546
|
-
graph: "\\x21-\\x7E",
|
|
1547
|
-
lower: "a-z",
|
|
1548
|
-
print: "\\x20-\\x7E ",
|
|
1549
|
-
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
1550
|
-
space: " \\t\\r\\n\\v\\f",
|
|
1551
|
-
upper: "A-Z",
|
|
1552
|
-
word: "A-Za-z0-9_",
|
|
1553
|
-
xdigit: "A-Fa-f0-9"
|
|
1554
|
-
};
|
|
1555
1511
|
module.exports = {
|
|
1556
1512
|
MAX_LENGTH: 1024 * 64,
|
|
1557
|
-
POSIX_REGEX_SOURCE
|
|
1513
|
+
POSIX_REGEX_SOURCE: {
|
|
1514
|
+
alnum: "a-zA-Z0-9",
|
|
1515
|
+
alpha: "a-zA-Z",
|
|
1516
|
+
ascii: "\\x00-\\x7F",
|
|
1517
|
+
blank: " \\t",
|
|
1518
|
+
cntrl: "\\x00-\\x1F\\x7F",
|
|
1519
|
+
digit: "0-9",
|
|
1520
|
+
graph: "\\x21-\\x7E",
|
|
1521
|
+
lower: "a-z",
|
|
1522
|
+
print: "\\x20-\\x7E ",
|
|
1523
|
+
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
1524
|
+
space: " \\t\\r\\n\\v\\f",
|
|
1525
|
+
upper: "A-Z",
|
|
1526
|
+
word: "A-Za-z0-9_",
|
|
1527
|
+
xdigit: "A-Fa-f0-9"
|
|
1528
|
+
},
|
|
1558
1529
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
1559
1530
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
1560
1531
|
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
@@ -1644,7 +1615,6 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1644
1615
|
}
|
|
1645
1616
|
};
|
|
1646
1617
|
}));
|
|
1647
|
-
|
|
1648
1618
|
//#endregion
|
|
1649
1619
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
1650
1620
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1666,8 +1636,8 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1666
1636
|
if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) return true;
|
|
1667
1637
|
return false;
|
|
1668
1638
|
};
|
|
1669
|
-
exports.isWindows = (options
|
|
1670
|
-
if (options
|
|
1639
|
+
exports.isWindows = (options) => {
|
|
1640
|
+
if (options && typeof options.windows === "boolean") return options.windows;
|
|
1671
1641
|
return win32 === true || path$7.sep === "\\";
|
|
1672
1642
|
};
|
|
1673
1643
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
@@ -1684,13 +1654,12 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1684
1654
|
}
|
|
1685
1655
|
return output;
|
|
1686
1656
|
};
|
|
1687
|
-
exports.wrapOutput = (input, state = {}, options
|
|
1688
|
-
let output = `${options
|
|
1657
|
+
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
1658
|
+
let output = `${options.contains ? "" : "^"}(?:${input})${options.contains ? "" : "$"}`;
|
|
1689
1659
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
1690
1660
|
return output;
|
|
1691
1661
|
};
|
|
1692
1662
|
}));
|
|
1693
|
-
|
|
1694
1663
|
//#endregion
|
|
1695
1664
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
|
|
1696
1665
|
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1718,8 +1687,8 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1718
1687
|
* @return {Object} Returns an object with tokens and regex source string.
|
|
1719
1688
|
* @api public
|
|
1720
1689
|
*/
|
|
1721
|
-
const scan = (input, options
|
|
1722
|
-
const opts = options
|
|
1690
|
+
const scan = (input, options) => {
|
|
1691
|
+
const opts = options || {};
|
|
1723
1692
|
const length = input.length - 1;
|
|
1724
1693
|
const scanToEnd = opts.parts === true || opts.scanToEnd === true;
|
|
1725
1694
|
const slashes = [];
|
|
@@ -1978,7 +1947,6 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1978
1947
|
};
|
|
1979
1948
|
module.exports = scan;
|
|
1980
1949
|
}));
|
|
1981
|
-
|
|
1982
1950
|
//#endregion
|
|
1983
1951
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
1984
1952
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1991,8 +1959,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1991
1959
|
/**
|
|
1992
1960
|
* Helpers
|
|
1993
1961
|
*/
|
|
1994
|
-
const expandRange = (args, options
|
|
1995
|
-
if (typeof options
|
|
1962
|
+
const expandRange = (args, options) => {
|
|
1963
|
+
if (typeof options.expandRange === "function") return options.expandRange(...args, options);
|
|
1996
1964
|
args.sort();
|
|
1997
1965
|
const value = `[${args.join("-")}]`;
|
|
1998
1966
|
try {
|
|
@@ -2014,10 +1982,10 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2014
1982
|
* @param {Object} options
|
|
2015
1983
|
* @return {Object}
|
|
2016
1984
|
*/
|
|
2017
|
-
const parse = (input, options
|
|
1985
|
+
const parse = (input, options) => {
|
|
2018
1986
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
2019
1987
|
input = REPLACEMENTS[input] || input;
|
|
2020
|
-
const opts = { ...options
|
|
1988
|
+
const opts = { ...options };
|
|
2021
1989
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
2022
1990
|
let len = input.length;
|
|
2023
1991
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
@@ -2028,12 +1996,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2028
1996
|
};
|
|
2029
1997
|
const tokens = [bos];
|
|
2030
1998
|
const capture = opts.capture ? "" : "?:";
|
|
2031
|
-
const win32 = utils.isWindows(options
|
|
1999
|
+
const win32 = utils.isWindows(options);
|
|
2032
2000
|
const PLATFORM_CHARS = constants.globChars(win32);
|
|
2033
2001
|
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
2034
2002
|
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;
|
|
2035
|
-
const globstar = (opts
|
|
2036
|
-
return `(${capture}(?:(?!${START_ANCHOR}${opts
|
|
2003
|
+
const globstar = (opts) => {
|
|
2004
|
+
return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2037
2005
|
};
|
|
2038
2006
|
const nodot = opts.dot ? "" : NO_DOT;
|
|
2039
2007
|
const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
|
|
@@ -2071,8 +2039,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2071
2039
|
const peek = state.peek = (n = 1) => input[state.index + n];
|
|
2072
2040
|
const advance = state.advance = () => input[++state.index] || "";
|
|
2073
2041
|
const remaining = () => input.slice(state.index + 1);
|
|
2074
|
-
const consume = (value
|
|
2075
|
-
state.consumed += value
|
|
2042
|
+
const consume = (value = "", num = 0) => {
|
|
2043
|
+
state.consumed += value;
|
|
2076
2044
|
state.index += num;
|
|
2077
2045
|
};
|
|
2078
2046
|
const append = (token) => {
|
|
@@ -2129,9 +2097,9 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2129
2097
|
tokens.push(tok);
|
|
2130
2098
|
prev = tok;
|
|
2131
2099
|
};
|
|
2132
|
-
const extglobOpen = (type, value
|
|
2100
|
+
const extglobOpen = (type, value) => {
|
|
2133
2101
|
const token = {
|
|
2134
|
-
...EXTGLOB_CHARS[value
|
|
2102
|
+
...EXTGLOB_CHARS[value],
|
|
2135
2103
|
conditions: 1,
|
|
2136
2104
|
inner: ""
|
|
2137
2105
|
};
|
|
@@ -2142,7 +2110,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2142
2110
|
increment("parens");
|
|
2143
2111
|
push({
|
|
2144
2112
|
type,
|
|
2145
|
-
value
|
|
2113
|
+
value,
|
|
2146
2114
|
output: state.output ? "" : ONE_CHAR
|
|
2147
2115
|
});
|
|
2148
2116
|
push({
|
|
@@ -2161,7 +2129,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2161
2129
|
if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
|
|
2162
2130
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
2163
2131
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse(rest, {
|
|
2164
|
-
...options
|
|
2132
|
+
...options,
|
|
2165
2133
|
fastpaths: false
|
|
2166
2134
|
}).output})${extglobStar})`;
|
|
2167
2135
|
if (token.prev.type === "bos") state.negatedExtglob = true;
|
|
@@ -2204,7 +2172,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2204
2172
|
state.output = input;
|
|
2205
2173
|
return state;
|
|
2206
2174
|
}
|
|
2207
|
-
state.output = utils.wrapOutput(output, state, options
|
|
2175
|
+
state.output = utils.wrapOutput(output, state, options);
|
|
2208
2176
|
return state;
|
|
2209
2177
|
}
|
|
2210
2178
|
/**
|
|
@@ -2794,13 +2762,13 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2794
2762
|
* This can significantly speed up processing and has very little downside
|
|
2795
2763
|
* impact when none of the fast paths match.
|
|
2796
2764
|
*/
|
|
2797
|
-
parse.fastpaths = (input, options
|
|
2798
|
-
const opts = { ...options
|
|
2765
|
+
parse.fastpaths = (input, options) => {
|
|
2766
|
+
const opts = { ...options };
|
|
2799
2767
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
2800
2768
|
const len = input.length;
|
|
2801
2769
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
2802
2770
|
input = REPLACEMENTS[input] || input;
|
|
2803
|
-
const win32 = utils.isWindows(options
|
|
2771
|
+
const win32 = utils.isWindows(options);
|
|
2804
2772
|
const { DOT_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR } = constants.globChars(win32);
|
|
2805
2773
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
2806
2774
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
@@ -2811,9 +2779,9 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2811
2779
|
};
|
|
2812
2780
|
let star = opts.bash === true ? ".*?" : STAR;
|
|
2813
2781
|
if (opts.capture) star = `(${star})`;
|
|
2814
|
-
const globstar = (opts
|
|
2815
|
-
if (opts
|
|
2816
|
-
return `(${capture}(?:(?!${START_ANCHOR}${opts
|
|
2782
|
+
const globstar = (opts) => {
|
|
2783
|
+
if (opts.noglobstar === true) return star;
|
|
2784
|
+
return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2817
2785
|
};
|
|
2818
2786
|
const create = (str) => {
|
|
2819
2787
|
switch (str) {
|
|
@@ -2828,9 +2796,9 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2828
2796
|
default: {
|
|
2829
2797
|
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
2830
2798
|
if (!match) return;
|
|
2831
|
-
const source
|
|
2832
|
-
if (!source
|
|
2833
|
-
return source
|
|
2799
|
+
const source = create(match[1]);
|
|
2800
|
+
if (!source) return;
|
|
2801
|
+
return source + DOT_LITERAL + match[2];
|
|
2834
2802
|
}
|
|
2835
2803
|
}
|
|
2836
2804
|
};
|
|
@@ -2840,7 +2808,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2840
2808
|
};
|
|
2841
2809
|
module.exports = parse;
|
|
2842
2810
|
}));
|
|
2843
|
-
|
|
2844
2811
|
//#endregion
|
|
2845
2812
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
|
|
2846
2813
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -2871,13 +2838,13 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2871
2838
|
* @return {Function=} Returns a matcher function.
|
|
2872
2839
|
* @api public
|
|
2873
2840
|
*/
|
|
2874
|
-
const picomatch = (glob, options
|
|
2841
|
+
const picomatch = (glob, options, returnState = false) => {
|
|
2875
2842
|
if (Array.isArray(glob)) {
|
|
2876
|
-
const fns = glob.map((input) => picomatch(input, options
|
|
2843
|
+
const fns = glob.map((input) => picomatch(input, options, returnState));
|
|
2877
2844
|
const arrayMatcher = (str) => {
|
|
2878
2845
|
for (const isMatch of fns) {
|
|
2879
|
-
const state
|
|
2880
|
-
if (state
|
|
2846
|
+
const state = isMatch(str);
|
|
2847
|
+
if (state) return state;
|
|
2881
2848
|
}
|
|
2882
2849
|
return false;
|
|
2883
2850
|
};
|
|
@@ -2885,15 +2852,15 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2885
2852
|
}
|
|
2886
2853
|
const isState = isObject(glob) && glob.tokens && glob.input;
|
|
2887
2854
|
if (glob === "" || typeof glob !== "string" && !isState) throw new TypeError("Expected pattern to be a non-empty string");
|
|
2888
|
-
const opts = options
|
|
2889
|
-
const posix = utils.isWindows(options
|
|
2890
|
-
const regex = isState ? picomatch.compileRe(glob, options
|
|
2855
|
+
const opts = options || {};
|
|
2856
|
+
const posix = utils.isWindows(options);
|
|
2857
|
+
const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
|
|
2891
2858
|
const state = regex.state;
|
|
2892
2859
|
delete regex.state;
|
|
2893
2860
|
let isIgnored = () => false;
|
|
2894
2861
|
if (opts.ignore) {
|
|
2895
2862
|
const ignoreOpts = {
|
|
2896
|
-
...options
|
|
2863
|
+
...options,
|
|
2897
2864
|
ignore: null,
|
|
2898
2865
|
onMatch: null,
|
|
2899
2866
|
onResult: null
|
|
@@ -2901,7 +2868,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2901
2868
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
2902
2869
|
}
|
|
2903
2870
|
const matcher = (input, returnObject = false) => {
|
|
2904
|
-
const { isMatch, match, output } = picomatch.test(input, regex, options
|
|
2871
|
+
const { isMatch, match, output } = picomatch.test(input, regex, options, {
|
|
2905
2872
|
glob,
|
|
2906
2873
|
posix
|
|
2907
2874
|
});
|
|
@@ -2947,13 +2914,13 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2947
2914
|
* @return {Object} Returns an object with matching info.
|
|
2948
2915
|
* @api public
|
|
2949
2916
|
*/
|
|
2950
|
-
picomatch.test = (input, regex, options
|
|
2917
|
+
picomatch.test = (input, regex, options, { glob, posix } = {}) => {
|
|
2951
2918
|
if (typeof input !== "string") throw new TypeError("Expected input to be a string");
|
|
2952
2919
|
if (input === "") return {
|
|
2953
2920
|
isMatch: false,
|
|
2954
2921
|
output: ""
|
|
2955
2922
|
};
|
|
2956
|
-
const opts = options
|
|
2923
|
+
const opts = options || {};
|
|
2957
2924
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
2958
2925
|
let match = input === glob;
|
|
2959
2926
|
let output = match && format ? format(input) : input;
|
|
@@ -2961,7 +2928,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2961
2928
|
output = format ? format(input) : input;
|
|
2962
2929
|
match = output === glob;
|
|
2963
2930
|
}
|
|
2964
|
-
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options
|
|
2931
|
+
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
|
|
2965
2932
|
else match = regex.exec(output);
|
|
2966
2933
|
return {
|
|
2967
2934
|
isMatch: Boolean(match),
|
|
@@ -2982,8 +2949,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2982
2949
|
* @return {Boolean}
|
|
2983
2950
|
* @api public
|
|
2984
2951
|
*/
|
|
2985
|
-
picomatch.matchBase = (input, glob, options
|
|
2986
|
-
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options
|
|
2952
|
+
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
2953
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$6.basename(input));
|
|
2987
2954
|
};
|
|
2988
2955
|
/**
|
|
2989
2956
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -3001,7 +2968,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3001
2968
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3002
2969
|
* @api public
|
|
3003
2970
|
*/
|
|
3004
|
-
picomatch.isMatch = (str, patterns, options
|
|
2971
|
+
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
3005
2972
|
/**
|
|
3006
2973
|
* Parse a glob pattern to create the source string for a regular
|
|
3007
2974
|
* expression.
|
|
@@ -3015,10 +2982,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3015
2982
|
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
3016
2983
|
* @api public
|
|
3017
2984
|
*/
|
|
3018
|
-
picomatch.parse = (pattern, options
|
|
3019
|
-
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options
|
|
2985
|
+
picomatch.parse = (pattern, options) => {
|
|
2986
|
+
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
|
|
3020
2987
|
return parse(pattern, {
|
|
3021
|
-
...options
|
|
2988
|
+
...options,
|
|
3022
2989
|
fastpaths: false
|
|
3023
2990
|
});
|
|
3024
2991
|
};
|
|
@@ -3048,7 +3015,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3048
3015
|
* @return {Object} Returns an object with
|
|
3049
3016
|
* @api public
|
|
3050
3017
|
*/
|
|
3051
|
-
picomatch.scan = (input, options
|
|
3018
|
+
picomatch.scan = (input, options) => scan(input, options);
|
|
3052
3019
|
/**
|
|
3053
3020
|
* Compile a regular expression from the `state` object returned by the
|
|
3054
3021
|
* [parse()](#parse) method.
|
|
@@ -3060,14 +3027,14 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3060
3027
|
* @return {RegExp}
|
|
3061
3028
|
* @api public
|
|
3062
3029
|
*/
|
|
3063
|
-
picomatch.compileRe = (state, options
|
|
3030
|
+
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
3064
3031
|
if (returnOutput === true) return state.output;
|
|
3065
|
-
const opts = options
|
|
3032
|
+
const opts = options || {};
|
|
3066
3033
|
const prepend = opts.contains ? "" : "^";
|
|
3067
3034
|
const append = opts.contains ? "" : "$";
|
|
3068
3035
|
let source = `${prepend}(?:${state.output})${append}`;
|
|
3069
3036
|
if (state && state.negated === true) source = `^(?!${source}).*$`;
|
|
3070
|
-
const regex = picomatch.toRegex(source, options
|
|
3037
|
+
const regex = picomatch.toRegex(source, options);
|
|
3071
3038
|
if (returnState === true) regex.state = state;
|
|
3072
3039
|
return regex;
|
|
3073
3040
|
};
|
|
@@ -3089,15 +3056,15 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3089
3056
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
3090
3057
|
* @api public
|
|
3091
3058
|
*/
|
|
3092
|
-
picomatch.makeRe = (input, options
|
|
3059
|
+
picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
|
3093
3060
|
if (!input || typeof input !== "string") throw new TypeError("Expected a non-empty string");
|
|
3094
3061
|
let parsed = {
|
|
3095
3062
|
negated: false,
|
|
3096
3063
|
fastpaths: true
|
|
3097
3064
|
};
|
|
3098
|
-
if (options
|
|
3099
|
-
if (!parsed.output) parsed = parse(input, options
|
|
3100
|
-
return picomatch.compileRe(parsed, options
|
|
3065
|
+
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse.fastpaths(input, options);
|
|
3066
|
+
if (!parsed.output) parsed = parse(input, options);
|
|
3067
|
+
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
3101
3068
|
};
|
|
3102
3069
|
/**
|
|
3103
3070
|
* Create a regular expression from the given regex source string.
|
|
@@ -3115,12 +3082,12 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3115
3082
|
* @return {RegExp}
|
|
3116
3083
|
* @api public
|
|
3117
3084
|
*/
|
|
3118
|
-
picomatch.toRegex = (source, options
|
|
3085
|
+
picomatch.toRegex = (source, options) => {
|
|
3119
3086
|
try {
|
|
3120
|
-
const opts = options
|
|
3087
|
+
const opts = options || {};
|
|
3121
3088
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
3122
3089
|
} catch (err) {
|
|
3123
|
-
if (options
|
|
3090
|
+
if (options && options.debug === true) throw err;
|
|
3124
3091
|
return /$^/;
|
|
3125
3092
|
}
|
|
3126
3093
|
};
|
|
@@ -3134,13 +3101,11 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3134
3101
|
*/
|
|
3135
3102
|
module.exports = picomatch;
|
|
3136
3103
|
}));
|
|
3137
|
-
|
|
3138
3104
|
//#endregion
|
|
3139
3105
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js
|
|
3140
3106
|
var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3141
3107
|
module.exports = require_picomatch$1();
|
|
3142
3108
|
}));
|
|
3143
|
-
|
|
3144
3109
|
//#endregion
|
|
3145
3110
|
//#region ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
3146
3111
|
var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3170,7 +3135,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3170
3135
|
* @summary false
|
|
3171
3136
|
* @api public
|
|
3172
3137
|
*/
|
|
3173
|
-
const micromatch = (list, patterns, options
|
|
3138
|
+
const micromatch = (list, patterns, options) => {
|
|
3174
3139
|
patterns = [].concat(patterns);
|
|
3175
3140
|
list = [].concat(list);
|
|
3176
3141
|
let omit = /* @__PURE__ */ new Set();
|
|
@@ -3179,11 +3144,11 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3179
3144
|
let negatives = 0;
|
|
3180
3145
|
let onResult = (state) => {
|
|
3181
3146
|
items.add(state.output);
|
|
3182
|
-
if (options
|
|
3147
|
+
if (options && options.onResult) options.onResult(state);
|
|
3183
3148
|
};
|
|
3184
3149
|
for (let i = 0; i < patterns.length; i++) {
|
|
3185
3150
|
let isMatch = picomatch(String(patterns[i]), {
|
|
3186
|
-
...options
|
|
3151
|
+
...options,
|
|
3187
3152
|
onResult
|
|
3188
3153
|
}, true);
|
|
3189
3154
|
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
@@ -3199,9 +3164,9 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3199
3164
|
}
|
|
3200
3165
|
}
|
|
3201
3166
|
let matches = (negatives === patterns.length ? [...items] : [...keep]).filter((item) => !omit.has(item));
|
|
3202
|
-
if (options
|
|
3203
|
-
if (options
|
|
3204
|
-
if (options
|
|
3167
|
+
if (options && matches.length === 0) {
|
|
3168
|
+
if (options.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
3169
|
+
if (options.nonull === true || options.nullglob === true) return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
|
|
3205
3170
|
}
|
|
3206
3171
|
return matches;
|
|
3207
3172
|
};
|
|
@@ -3227,7 +3192,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3227
3192
|
* @return {Function} Returns a matcher function.
|
|
3228
3193
|
* @api public
|
|
3229
3194
|
*/
|
|
3230
|
-
micromatch.matcher = (pattern, options
|
|
3195
|
+
micromatch.matcher = (pattern, options) => picomatch(pattern, options);
|
|
3231
3196
|
/**
|
|
3232
3197
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
3233
3198
|
*
|
|
@@ -3244,7 +3209,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3244
3209
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3245
3210
|
* @api public
|
|
3246
3211
|
*/
|
|
3247
|
-
micromatch.isMatch = (str, patterns, options
|
|
3212
|
+
micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
3248
3213
|
/**
|
|
3249
3214
|
* Backwards compatibility
|
|
3250
3215
|
*/
|
|
@@ -3265,16 +3230,16 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3265
3230
|
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
3266
3231
|
* @api public
|
|
3267
3232
|
*/
|
|
3268
|
-
micromatch.not = (list, patterns, options
|
|
3233
|
+
micromatch.not = (list, patterns, options = {}) => {
|
|
3269
3234
|
patterns = [].concat(patterns).map(String);
|
|
3270
3235
|
let result = /* @__PURE__ */ new Set();
|
|
3271
3236
|
let items = [];
|
|
3272
3237
|
let onResult = (state) => {
|
|
3273
|
-
if (options
|
|
3238
|
+
if (options.onResult) options.onResult(state);
|
|
3274
3239
|
items.push(state.output);
|
|
3275
3240
|
};
|
|
3276
3241
|
let matches = new Set(micromatch(list, patterns, {
|
|
3277
|
-
...options
|
|
3242
|
+
...options,
|
|
3278
3243
|
onResult
|
|
3279
3244
|
}));
|
|
3280
3245
|
for (let item of items) if (!matches.has(item)) result.add(item);
|
|
@@ -3299,15 +3264,15 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3299
3264
|
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
3300
3265
|
* @api public
|
|
3301
3266
|
*/
|
|
3302
|
-
micromatch.contains = (str, pattern, options
|
|
3267
|
+
micromatch.contains = (str, pattern, options) => {
|
|
3303
3268
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
3304
|
-
if (Array.isArray(pattern)) return pattern.some((p) => micromatch.contains(str, p, options
|
|
3269
|
+
if (Array.isArray(pattern)) return pattern.some((p) => micromatch.contains(str, p, options));
|
|
3305
3270
|
if (typeof pattern === "string") {
|
|
3306
3271
|
if (isEmptyString(str) || isEmptyString(pattern)) return false;
|
|
3307
3272
|
if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) return true;
|
|
3308
3273
|
}
|
|
3309
3274
|
return micromatch.isMatch(str, pattern, {
|
|
3310
|
-
...options
|
|
3275
|
+
...options,
|
|
3311
3276
|
contains: true
|
|
3312
3277
|
});
|
|
3313
3278
|
};
|
|
@@ -3330,11 +3295,11 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3330
3295
|
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
3331
3296
|
* @api public
|
|
3332
3297
|
*/
|
|
3333
|
-
micromatch.matchKeys = (obj, patterns, options
|
|
3298
|
+
micromatch.matchKeys = (obj, patterns, options) => {
|
|
3334
3299
|
if (!utils.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
3335
|
-
let keys
|
|
3300
|
+
let keys = micromatch(Object.keys(obj), patterns, options);
|
|
3336
3301
|
let res = {};
|
|
3337
|
-
for (let key of keys
|
|
3302
|
+
for (let key of keys) res[key] = obj[key];
|
|
3338
3303
|
return res;
|
|
3339
3304
|
};
|
|
3340
3305
|
/**
|
|
@@ -3355,10 +3320,10 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3355
3320
|
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
3356
3321
|
* @api public
|
|
3357
3322
|
*/
|
|
3358
|
-
micromatch.some = (list, patterns, options
|
|
3323
|
+
micromatch.some = (list, patterns, options) => {
|
|
3359
3324
|
let items = [].concat(list);
|
|
3360
3325
|
for (let pattern of [].concat(patterns)) {
|
|
3361
|
-
let isMatch = picomatch(String(pattern), options
|
|
3326
|
+
let isMatch = picomatch(String(pattern), options);
|
|
3362
3327
|
if (items.some((item) => isMatch(item))) return true;
|
|
3363
3328
|
}
|
|
3364
3329
|
return false;
|
|
@@ -3386,10 +3351,10 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3386
3351
|
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
3387
3352
|
* @api public
|
|
3388
3353
|
*/
|
|
3389
|
-
micromatch.every = (list, patterns, options
|
|
3354
|
+
micromatch.every = (list, patterns, options) => {
|
|
3390
3355
|
let items = [].concat(list);
|
|
3391
3356
|
for (let pattern of [].concat(patterns)) {
|
|
3392
|
-
let isMatch = picomatch(String(pattern), options
|
|
3357
|
+
let isMatch = picomatch(String(pattern), options);
|
|
3393
3358
|
if (!items.every((item) => isMatch(item))) return false;
|
|
3394
3359
|
}
|
|
3395
3360
|
return true;
|
|
@@ -3420,9 +3385,9 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3420
3385
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3421
3386
|
* @api public
|
|
3422
3387
|
*/
|
|
3423
|
-
micromatch.all = (str, patterns, options
|
|
3388
|
+
micromatch.all = (str, patterns, options) => {
|
|
3424
3389
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
3425
|
-
return [].concat(patterns).every((p) => picomatch(p, options
|
|
3390
|
+
return [].concat(patterns).every((p) => picomatch(p, options)(str));
|
|
3426
3391
|
};
|
|
3427
3392
|
/**
|
|
3428
3393
|
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
|
@@ -3442,10 +3407,10 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3442
3407
|
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
3443
3408
|
* @api public
|
|
3444
3409
|
*/
|
|
3445
|
-
micromatch.capture = (glob, input, options
|
|
3446
|
-
let posix = utils.isWindows(options
|
|
3410
|
+
micromatch.capture = (glob, input, options) => {
|
|
3411
|
+
let posix = utils.isWindows(options);
|
|
3447
3412
|
let match = picomatch.makeRe(String(glob), {
|
|
3448
|
-
...options
|
|
3413
|
+
...options,
|
|
3449
3414
|
capture: true
|
|
3450
3415
|
}).exec(posix ? utils.toPosixSlashes(input) : input);
|
|
3451
3416
|
if (match) return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
@@ -3493,9 +3458,9 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3493
3458
|
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
3494
3459
|
* @api public
|
|
3495
3460
|
*/
|
|
3496
|
-
micromatch.parse = (patterns, options
|
|
3461
|
+
micromatch.parse = (patterns, options) => {
|
|
3497
3462
|
let res = [];
|
|
3498
|
-
for (let pattern of [].concat(patterns || [])) for (let str of braces(String(pattern), options
|
|
3463
|
+
for (let pattern of [].concat(patterns || [])) for (let str of braces(String(pattern), options)) res.push(picomatch.parse(str, options));
|
|
3499
3464
|
return res;
|
|
3500
3465
|
};
|
|
3501
3466
|
/**
|
|
@@ -3514,18 +3479,18 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3514
3479
|
* @return {Array}
|
|
3515
3480
|
* @api public
|
|
3516
3481
|
*/
|
|
3517
|
-
micromatch.braces = (pattern, options
|
|
3482
|
+
micromatch.braces = (pattern, options) => {
|
|
3518
3483
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3519
|
-
if (options
|
|
3520
|
-
return braces(pattern, options
|
|
3484
|
+
if (options && options.nobrace === true || !hasBraces(pattern)) return [pattern];
|
|
3485
|
+
return braces(pattern, options);
|
|
3521
3486
|
};
|
|
3522
3487
|
/**
|
|
3523
3488
|
* Expand braces
|
|
3524
3489
|
*/
|
|
3525
|
-
micromatch.braceExpand = (pattern, options
|
|
3490
|
+
micromatch.braceExpand = (pattern, options) => {
|
|
3526
3491
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3527
3492
|
return micromatch.braces(pattern, {
|
|
3528
|
-
...options
|
|
3493
|
+
...options,
|
|
3529
3494
|
expand: true
|
|
3530
3495
|
});
|
|
3531
3496
|
};
|
|
@@ -3535,7 +3500,6 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3535
3500
|
micromatch.hasBraces = hasBraces;
|
|
3536
3501
|
module.exports = micromatch;
|
|
3537
3502
|
}));
|
|
3538
|
-
|
|
3539
3503
|
//#endregion
|
|
3540
3504
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
3541
3505
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3556,11 +3520,11 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3556
3520
|
* The latter is due to the presence of the device path at the beginning of the UNC path.
|
|
3557
3521
|
*/
|
|
3558
3522
|
const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
3559
|
-
function isStaticPattern(pattern, options
|
|
3560
|
-
return !isDynamicPattern(pattern, options
|
|
3523
|
+
function isStaticPattern(pattern, options = {}) {
|
|
3524
|
+
return !isDynamicPattern(pattern, options);
|
|
3561
3525
|
}
|
|
3562
3526
|
exports.isStaticPattern = isStaticPattern;
|
|
3563
|
-
function isDynamicPattern(pattern, options
|
|
3527
|
+
function isDynamicPattern(pattern, options = {}) {
|
|
3564
3528
|
/**
|
|
3565
3529
|
* A special case with an empty string is necessary for matching patterns that start with a forward slash.
|
|
3566
3530
|
* An empty string cannot be a dynamic pattern.
|
|
@@ -3571,10 +3535,10 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3571
3535
|
* When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check
|
|
3572
3536
|
* filepath directly (without read directory).
|
|
3573
3537
|
*/
|
|
3574
|
-
if (options
|
|
3538
|
+
if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) return true;
|
|
3575
3539
|
if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) return true;
|
|
3576
|
-
if (options
|
|
3577
|
-
if (options
|
|
3540
|
+
if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) return true;
|
|
3541
|
+
if (options.braceExpansion !== false && hasBraceExpansion(pattern)) return true;
|
|
3578
3542
|
return false;
|
|
3579
3543
|
}
|
|
3580
3544
|
exports.isDynamicPattern = isDynamicPattern;
|
|
@@ -3673,11 +3637,11 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3673
3637
|
/**
|
|
3674
3638
|
* Micromatch can return an empty string in the case of patterns like `{a,}`.
|
|
3675
3639
|
*/
|
|
3676
|
-
return patterns.filter((pattern
|
|
3640
|
+
return patterns.filter((pattern) => pattern !== "");
|
|
3677
3641
|
}
|
|
3678
3642
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
3679
|
-
function getPatternParts(pattern, options
|
|
3680
|
-
let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options
|
|
3643
|
+
function getPatternParts(pattern, options) {
|
|
3644
|
+
let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true }));
|
|
3681
3645
|
/**
|
|
3682
3646
|
* The scan method returns an empty array in some cases.
|
|
3683
3647
|
* See micromatch/picomatch#58 for more details.
|
|
@@ -3694,12 +3658,12 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3694
3658
|
return parts;
|
|
3695
3659
|
}
|
|
3696
3660
|
exports.getPatternParts = getPatternParts;
|
|
3697
|
-
function makeRe(pattern, options
|
|
3698
|
-
return micromatch.makeRe(pattern, options
|
|
3661
|
+
function makeRe(pattern, options) {
|
|
3662
|
+
return micromatch.makeRe(pattern, options);
|
|
3699
3663
|
}
|
|
3700
3664
|
exports.makeRe = makeRe;
|
|
3701
|
-
function convertPatternsToRe(patterns, options
|
|
3702
|
-
return patterns.map((pattern) => makeRe(pattern, options
|
|
3665
|
+
function convertPatternsToRe(patterns, options) {
|
|
3666
|
+
return patterns.map((pattern) => makeRe(pattern, options));
|
|
3703
3667
|
}
|
|
3704
3668
|
exports.convertPatternsToRe = convertPatternsToRe;
|
|
3705
3669
|
function matchAny(entry, patternsRe) {
|
|
@@ -3716,10 +3680,10 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3716
3680
|
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
3717
3681
|
function partitionAbsoluteAndRelative(patterns) {
|
|
3718
3682
|
const absolute = [];
|
|
3719
|
-
const relative
|
|
3683
|
+
const relative = [];
|
|
3720
3684
|
for (const pattern of patterns) if (isAbsolute(pattern)) absolute.push(pattern);
|
|
3721
|
-
else relative
|
|
3722
|
-
return [absolute, relative
|
|
3685
|
+
else relative.push(pattern);
|
|
3686
|
+
return [absolute, relative];
|
|
3723
3687
|
}
|
|
3724
3688
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
3725
3689
|
function isAbsolute(pattern) {
|
|
@@ -3727,7 +3691,6 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3727
3691
|
}
|
|
3728
3692
|
exports.isAbsolute = isAbsolute;
|
|
3729
3693
|
}));
|
|
3730
|
-
|
|
3731
3694
|
//#endregion
|
|
3732
3695
|
//#region ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
|
|
3733
3696
|
var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3738,16 +3701,16 @@ var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3738
3701
|
const streamsQueue = [];
|
|
3739
3702
|
const args = slice.call(arguments);
|
|
3740
3703
|
let merging = false;
|
|
3741
|
-
let options
|
|
3742
|
-
if (options
|
|
3743
|
-
else options
|
|
3744
|
-
const doEnd = options
|
|
3745
|
-
const doPipeError = options
|
|
3746
|
-
if (options
|
|
3747
|
-
if (options
|
|
3748
|
-
const mergedStream = PassThrough(options
|
|
3704
|
+
let options = args[args.length - 1];
|
|
3705
|
+
if (options && !Array.isArray(options) && options.pipe == null) args.pop();
|
|
3706
|
+
else options = {};
|
|
3707
|
+
const doEnd = options.end !== false;
|
|
3708
|
+
const doPipeError = options.pipeError === true;
|
|
3709
|
+
if (options.objectMode == null) options.objectMode = true;
|
|
3710
|
+
if (options.highWaterMark == null) options.highWaterMark = 64 * 1024;
|
|
3711
|
+
const mergedStream = PassThrough(options);
|
|
3749
3712
|
function addStream() {
|
|
3750
|
-
for (let i = 0, len = arguments.length; i < len; i++) streamsQueue.push(pauseStreams(arguments[i], options
|
|
3713
|
+
for (let i = 0, len = arguments.length; i < len; i++) streamsQueue.push(pauseStreams(arguments[i], options));
|
|
3751
3714
|
mergeStream();
|
|
3752
3715
|
return this;
|
|
3753
3716
|
}
|
|
@@ -3799,16 +3762,15 @@ var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3799
3762
|
if (args.length) addStream.apply(null, args);
|
|
3800
3763
|
return mergedStream;
|
|
3801
3764
|
}
|
|
3802
|
-
function pauseStreams(streams, options
|
|
3765
|
+
function pauseStreams(streams, options) {
|
|
3803
3766
|
if (!Array.isArray(streams)) {
|
|
3804
|
-
if (!streams._readableState && streams.pipe) streams = streams.pipe(PassThrough(options
|
|
3767
|
+
if (!streams._readableState && streams.pipe) streams = streams.pipe(PassThrough(options));
|
|
3805
3768
|
if (!streams._readableState || !streams.pause || !streams.pipe) throw new Error("Only readable stream can be merged.");
|
|
3806
3769
|
streams.pause();
|
|
3807
|
-
} else for (let i = 0, len = streams.length; i < len; i++) streams[i] = pauseStreams(streams[i], options
|
|
3770
|
+
} else for (let i = 0, len = streams.length; i < len; i++) streams[i] = pauseStreams(streams[i], options);
|
|
3808
3771
|
return streams;
|
|
3809
3772
|
}
|
|
3810
3773
|
}));
|
|
3811
|
-
|
|
3812
3774
|
//#endregion
|
|
3813
3775
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
3814
3776
|
var require_stream$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3829,7 +3791,6 @@ var require_stream$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3829
3791
|
streams.forEach((stream) => stream.emit("close"));
|
|
3830
3792
|
}
|
|
3831
3793
|
}));
|
|
3832
|
-
|
|
3833
3794
|
//#endregion
|
|
3834
3795
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
3835
3796
|
var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3844,28 +3805,19 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3844
3805
|
}
|
|
3845
3806
|
exports.isEmpty = isEmpty;
|
|
3846
3807
|
}));
|
|
3847
|
-
|
|
3848
3808
|
//#endregion
|
|
3849
3809
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
3850
3810
|
var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3851
3811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3852
3812
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
3853
|
-
|
|
3854
|
-
exports.
|
|
3855
|
-
|
|
3856
|
-
exports.
|
|
3857
|
-
|
|
3858
|
-
exports.
|
|
3859
|
-
|
|
3860
|
-
exports.path = path;
|
|
3861
|
-
const pattern = require_pattern();
|
|
3862
|
-
exports.pattern = pattern;
|
|
3863
|
-
const stream = require_stream$3();
|
|
3864
|
-
exports.stream = stream;
|
|
3865
|
-
const string = require_string();
|
|
3866
|
-
exports.string = string;
|
|
3813
|
+
exports.array = require_array();
|
|
3814
|
+
exports.errno = require_errno();
|
|
3815
|
+
exports.fs = require_fs$3();
|
|
3816
|
+
exports.path = require_path();
|
|
3817
|
+
exports.pattern = require_pattern();
|
|
3818
|
+
exports.stream = require_stream$3();
|
|
3819
|
+
exports.string = require_string();
|
|
3867
3820
|
}));
|
|
3868
|
-
|
|
3869
3821
|
//#endregion
|
|
3870
3822
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
3871
3823
|
var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3960,14 +3912,13 @@ var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3960
3912
|
}
|
|
3961
3913
|
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
3962
3914
|
}));
|
|
3963
|
-
|
|
3964
3915
|
//#endregion
|
|
3965
3916
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
3966
3917
|
var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3967
3918
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3968
3919
|
exports.read = void 0;
|
|
3969
|
-
function read(path
|
|
3970
|
-
settings.fs.lstat(path
|
|
3920
|
+
function read(path, settings, callback) {
|
|
3921
|
+
settings.fs.lstat(path, (lstatError, lstat) => {
|
|
3971
3922
|
if (lstatError !== null) {
|
|
3972
3923
|
callFailureCallback(callback, lstatError);
|
|
3973
3924
|
return;
|
|
@@ -3976,7 +3927,7 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3976
3927
|
callSuccessCallback(callback, lstat);
|
|
3977
3928
|
return;
|
|
3978
3929
|
}
|
|
3979
|
-
settings.fs.stat(path
|
|
3930
|
+
settings.fs.stat(path, (statError, stat) => {
|
|
3980
3931
|
if (statError !== null) {
|
|
3981
3932
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
3982
3933
|
callFailureCallback(callback, statError);
|
|
@@ -3998,17 +3949,16 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3998
3949
|
callback(null, result);
|
|
3999
3950
|
}
|
|
4000
3951
|
}));
|
|
4001
|
-
|
|
4002
3952
|
//#endregion
|
|
4003
3953
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
4004
3954
|
var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4005
3955
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4006
3956
|
exports.read = void 0;
|
|
4007
|
-
function read(path
|
|
4008
|
-
const lstat = settings.fs.lstatSync(path
|
|
3957
|
+
function read(path, settings) {
|
|
3958
|
+
const lstat = settings.fs.lstatSync(path);
|
|
4009
3959
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
|
|
4010
3960
|
try {
|
|
4011
|
-
const stat = settings.fs.statSync(path
|
|
3961
|
+
const stat = settings.fs.statSync(path);
|
|
4012
3962
|
if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
|
|
4013
3963
|
return stat;
|
|
4014
3964
|
} catch (error) {
|
|
@@ -4018,7 +3968,6 @@ var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4018
3968
|
}
|
|
4019
3969
|
exports.read = read;
|
|
4020
3970
|
}));
|
|
4021
|
-
|
|
4022
3971
|
//#endregion
|
|
4023
3972
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js
|
|
4024
3973
|
var require_fs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4037,7 +3986,6 @@ var require_fs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4037
3986
|
}
|
|
4038
3987
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4039
3988
|
}));
|
|
4040
|
-
|
|
4041
3989
|
//#endregion
|
|
4042
3990
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
|
|
4043
3991
|
var require_settings$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4057,7 +4005,6 @@ var require_settings$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4057
4005
|
};
|
|
4058
4006
|
exports.default = Settings;
|
|
4059
4007
|
}));
|
|
4060
|
-
|
|
4061
4008
|
//#endregion
|
|
4062
4009
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
|
|
4063
4010
|
var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4067,17 +4014,17 @@ var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4067
4014
|
const sync = require_sync$5();
|
|
4068
4015
|
const settings_1 = require_settings$3();
|
|
4069
4016
|
exports.Settings = settings_1.default;
|
|
4070
|
-
function stat(path
|
|
4017
|
+
function stat(path, optionsOrSettingsOrCallback, callback) {
|
|
4071
4018
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4072
|
-
async.read(path
|
|
4019
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
4073
4020
|
return;
|
|
4074
4021
|
}
|
|
4075
|
-
async.read(path
|
|
4022
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4076
4023
|
}
|
|
4077
4024
|
exports.stat = stat;
|
|
4078
|
-
function statSync(path
|
|
4025
|
+
function statSync(path, optionsOrSettings) {
|
|
4079
4026
|
const settings = getSettings(optionsOrSettings);
|
|
4080
|
-
return sync.read(path
|
|
4027
|
+
return sync.read(path, settings);
|
|
4081
4028
|
}
|
|
4082
4029
|
exports.statSync = statSync;
|
|
4083
4030
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -4085,7 +4032,6 @@ var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4085
4032
|
return new settings_1.default(settingsOrOptions);
|
|
4086
4033
|
}
|
|
4087
4034
|
}));
|
|
4088
|
-
|
|
4089
4035
|
//#endregion
|
|
4090
4036
|
//#region ../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
4091
4037
|
var require_queue_microtask = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4095,7 +4041,6 @@ var require_queue_microtask = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
4095
4041
|
throw err;
|
|
4096
4042
|
}, 0));
|
|
4097
4043
|
}));
|
|
4098
|
-
|
|
4099
4044
|
//#endregion
|
|
4100
4045
|
//#region ../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
4101
4046
|
var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4103,15 +4048,15 @@ var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4103
4048
|
module.exports = runParallel;
|
|
4104
4049
|
const queueMicrotask = require_queue_microtask();
|
|
4105
4050
|
function runParallel(tasks, cb) {
|
|
4106
|
-
let results, pending, keys
|
|
4051
|
+
let results, pending, keys;
|
|
4107
4052
|
let isSync = true;
|
|
4108
4053
|
if (Array.isArray(tasks)) {
|
|
4109
4054
|
results = [];
|
|
4110
4055
|
pending = tasks.length;
|
|
4111
4056
|
} else {
|
|
4112
|
-
keys
|
|
4057
|
+
keys = Object.keys(tasks);
|
|
4113
4058
|
results = {};
|
|
4114
|
-
pending = keys
|
|
4059
|
+
pending = keys.length;
|
|
4115
4060
|
}
|
|
4116
4061
|
function done(err) {
|
|
4117
4062
|
function end() {
|
|
@@ -4126,7 +4071,7 @@ var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4126
4071
|
if (--pending === 0 || err) done(err);
|
|
4127
4072
|
}
|
|
4128
4073
|
if (!pending) done(null);
|
|
4129
|
-
else if (keys
|
|
4074
|
+
else if (keys) keys.forEach(function(key) {
|
|
4130
4075
|
tasks[key](function(err, result) {
|
|
4131
4076
|
each(key, err, result);
|
|
4132
4077
|
});
|
|
@@ -4139,7 +4084,6 @@ var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4139
4084
|
isSync = false;
|
|
4140
4085
|
}
|
|
4141
4086
|
}));
|
|
4142
|
-
|
|
4143
4087
|
//#endregion
|
|
4144
4088
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
4145
4089
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4150,15 +4094,11 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4150
4094
|
const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
4151
4095
|
const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
|
|
4152
4096
|
const SUPPORTED_MAJOR_VERSION = 10;
|
|
4153
|
-
const SUPPORTED_MINOR_VERSION = 10;
|
|
4154
|
-
const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
|
|
4155
|
-
const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
|
|
4156
4097
|
/**
|
|
4157
4098
|
* IS `true` for Node.js 10.10 and greater.
|
|
4158
4099
|
*/
|
|
4159
|
-
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES =
|
|
4100
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION || MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= 10;
|
|
4160
4101
|
}));
|
|
4161
|
-
|
|
4162
4102
|
//#endregion
|
|
4163
4103
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
4164
4104
|
var require_fs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4181,16 +4121,13 @@ var require_fs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4181
4121
|
}
|
|
4182
4122
|
exports.createDirentFromStats = createDirentFromStats;
|
|
4183
4123
|
}));
|
|
4184
|
-
|
|
4185
4124
|
//#endregion
|
|
4186
4125
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
4187
4126
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4188
4127
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4189
4128
|
exports.fs = void 0;
|
|
4190
|
-
|
|
4191
|
-
exports.fs = fs;
|
|
4129
|
+
exports.fs = require_fs$1();
|
|
4192
4130
|
}));
|
|
4193
|
-
|
|
4194
4131
|
//#endregion
|
|
4195
4132
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
4196
4133
|
var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4205,7 +4142,6 @@ var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4205
4142
|
}
|
|
4206
4143
|
exports.joinPathSegments = joinPathSegments;
|
|
4207
4144
|
}));
|
|
4208
|
-
|
|
4209
4145
|
//#endregion
|
|
4210
4146
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
4211
4147
|
var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4276,16 +4212,16 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4276
4212
|
return;
|
|
4277
4213
|
}
|
|
4278
4214
|
rpl(names.map((name) => {
|
|
4279
|
-
const path
|
|
4215
|
+
const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4280
4216
|
return (done) => {
|
|
4281
|
-
fsStat.stat(path
|
|
4217
|
+
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
|
4282
4218
|
if (error !== null) {
|
|
4283
4219
|
done(error);
|
|
4284
4220
|
return;
|
|
4285
4221
|
}
|
|
4286
4222
|
const entry = {
|
|
4287
4223
|
name,
|
|
4288
|
-
path
|
|
4224
|
+
path,
|
|
4289
4225
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
4290
4226
|
};
|
|
4291
4227
|
if (settings.stats) entry.stats = stats;
|
|
@@ -4309,7 +4245,6 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4309
4245
|
callback(null, result);
|
|
4310
4246
|
}
|
|
4311
4247
|
}));
|
|
4312
|
-
|
|
4313
4248
|
//#endregion
|
|
4314
4249
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
4315
4250
|
var require_sync$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4356,7 +4291,6 @@ var require_sync$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4356
4291
|
}
|
|
4357
4292
|
exports.readdir = readdir;
|
|
4358
4293
|
}));
|
|
4359
|
-
|
|
4360
4294
|
//#endregion
|
|
4361
4295
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js
|
|
4362
4296
|
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4377,7 +4311,6 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4377
4311
|
}
|
|
4378
4312
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4379
4313
|
}));
|
|
4380
|
-
|
|
4381
4314
|
//#endregion
|
|
4382
4315
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
|
|
4383
4316
|
var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4405,7 +4338,6 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4405
4338
|
};
|
|
4406
4339
|
exports.default = Settings;
|
|
4407
4340
|
}));
|
|
4408
|
-
|
|
4409
4341
|
//#endregion
|
|
4410
4342
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
|
|
4411
4343
|
var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4415,17 +4347,17 @@ var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4415
4347
|
const sync = require_sync$4();
|
|
4416
4348
|
const settings_1 = require_settings$2();
|
|
4417
4349
|
exports.Settings = settings_1.default;
|
|
4418
|
-
function scandir(path
|
|
4350
|
+
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
4419
4351
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4420
|
-
async.read(path
|
|
4352
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
4421
4353
|
return;
|
|
4422
4354
|
}
|
|
4423
|
-
async.read(path
|
|
4355
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4424
4356
|
}
|
|
4425
4357
|
exports.scandir = scandir;
|
|
4426
|
-
function scandirSync(path
|
|
4358
|
+
function scandirSync(path, optionsOrSettings) {
|
|
4427
4359
|
const settings = getSettings(optionsOrSettings);
|
|
4428
|
-
return sync.read(path
|
|
4360
|
+
return sync.read(path, settings);
|
|
4429
4361
|
}
|
|
4430
4362
|
exports.scandirSync = scandirSync;
|
|
4431
4363
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -4433,7 +4365,6 @@ var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4433
4365
|
return new settings_1.default(settingsOrOptions);
|
|
4434
4366
|
}
|
|
4435
4367
|
}));
|
|
4436
|
-
|
|
4437
4368
|
//#endregion
|
|
4438
4369
|
//#region ../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js
|
|
4439
4370
|
var require_reusify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4461,7 +4392,6 @@ var require_reusify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4461
4392
|
}
|
|
4462
4393
|
module.exports = reusify;
|
|
4463
4394
|
}));
|
|
4464
|
-
|
|
4465
4395
|
//#endregion
|
|
4466
4396
|
//#region ../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js
|
|
4467
4397
|
var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4654,40 +4584,40 @@ var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4654
4584
|
queue.drained = drained;
|
|
4655
4585
|
return queue;
|
|
4656
4586
|
function push(value) {
|
|
4657
|
-
var p = new Promise(function(resolve
|
|
4587
|
+
var p = new Promise(function(resolve, reject) {
|
|
4658
4588
|
pushCb(value, function(err, result) {
|
|
4659
4589
|
if (err) {
|
|
4660
4590
|
reject(err);
|
|
4661
4591
|
return;
|
|
4662
4592
|
}
|
|
4663
|
-
resolve
|
|
4593
|
+
resolve(result);
|
|
4664
4594
|
});
|
|
4665
4595
|
});
|
|
4666
4596
|
p.catch(noop);
|
|
4667
4597
|
return p;
|
|
4668
4598
|
}
|
|
4669
4599
|
function unshift(value) {
|
|
4670
|
-
var p = new Promise(function(resolve
|
|
4600
|
+
var p = new Promise(function(resolve, reject) {
|
|
4671
4601
|
unshiftCb(value, function(err, result) {
|
|
4672
4602
|
if (err) {
|
|
4673
4603
|
reject(err);
|
|
4674
4604
|
return;
|
|
4675
4605
|
}
|
|
4676
|
-
resolve
|
|
4606
|
+
resolve(result);
|
|
4677
4607
|
});
|
|
4678
4608
|
});
|
|
4679
4609
|
p.catch(noop);
|
|
4680
4610
|
return p;
|
|
4681
4611
|
}
|
|
4682
4612
|
function drained() {
|
|
4683
|
-
return new Promise(function(resolve
|
|
4613
|
+
return new Promise(function(resolve) {
|
|
4684
4614
|
process.nextTick(function() {
|
|
4685
|
-
if (queue.idle()) resolve
|
|
4615
|
+
if (queue.idle()) resolve();
|
|
4686
4616
|
else {
|
|
4687
4617
|
var previousDrain = queue.drain;
|
|
4688
4618
|
queue.drain = function() {
|
|
4689
4619
|
if (typeof previousDrain === "function") previousDrain();
|
|
4690
|
-
resolve
|
|
4620
|
+
resolve();
|
|
4691
4621
|
queue.drain = previousDrain;
|
|
4692
4622
|
};
|
|
4693
4623
|
}
|
|
@@ -4698,7 +4628,6 @@ var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4698
4628
|
module.exports = fastqueue;
|
|
4699
4629
|
module.exports.promise = queueAsPromised;
|
|
4700
4630
|
}));
|
|
4701
|
-
|
|
4702
4631
|
//#endregion
|
|
4703
4632
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
4704
4633
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4727,7 +4656,6 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4727
4656
|
}
|
|
4728
4657
|
exports.joinPathSegments = joinPathSegments;
|
|
4729
4658
|
}));
|
|
4730
|
-
|
|
4731
4659
|
//#endregion
|
|
4732
4660
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js
|
|
4733
4661
|
var require_reader$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4742,7 +4670,6 @@ var require_reader$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4742
4670
|
};
|
|
4743
4671
|
exports.default = Reader;
|
|
4744
4672
|
}));
|
|
4745
|
-
|
|
4746
4673
|
//#endregion
|
|
4747
4674
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js
|
|
4748
4675
|
var require_async$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4828,7 +4755,6 @@ var require_async$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4828
4755
|
};
|
|
4829
4756
|
exports.default = AsyncReader;
|
|
4830
4757
|
}));
|
|
4831
|
-
|
|
4832
4758
|
//#endregion
|
|
4833
4759
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js
|
|
4834
4760
|
var require_async$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4862,7 +4788,6 @@ var require_async$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4862
4788
|
callback(null, entries);
|
|
4863
4789
|
}
|
|
4864
4790
|
}));
|
|
4865
|
-
|
|
4866
4791
|
//#endregion
|
|
4867
4792
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js
|
|
4868
4793
|
var require_stream$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4898,7 +4823,6 @@ var require_stream$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4898
4823
|
};
|
|
4899
4824
|
exports.default = StreamProvider;
|
|
4900
4825
|
}));
|
|
4901
|
-
|
|
4902
4826
|
//#endregion
|
|
4903
4827
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js
|
|
4904
4828
|
var require_sync$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4951,7 +4875,6 @@ var require_sync$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4951
4875
|
};
|
|
4952
4876
|
exports.default = SyncReader;
|
|
4953
4877
|
}));
|
|
4954
|
-
|
|
4955
4878
|
//#endregion
|
|
4956
4879
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js
|
|
4957
4880
|
var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4969,7 +4892,6 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4969
4892
|
};
|
|
4970
4893
|
exports.default = SyncProvider;
|
|
4971
4894
|
}));
|
|
4972
|
-
|
|
4973
4895
|
//#endregion
|
|
4974
4896
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
|
|
4975
4897
|
var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4999,7 +4921,6 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4999
4921
|
};
|
|
5000
4922
|
exports.default = Settings;
|
|
5001
4923
|
}));
|
|
5002
|
-
|
|
5003
4924
|
//#endregion
|
|
5004
4925
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
|
|
5005
4926
|
var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5033,7 +4954,6 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5033
4954
|
return new settings_1.default(settingsOrOptions);
|
|
5034
4955
|
}
|
|
5035
4956
|
}));
|
|
5036
|
-
|
|
5037
4957
|
//#endregion
|
|
5038
4958
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
5039
4959
|
var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5068,7 +4988,6 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5068
4988
|
};
|
|
5069
4989
|
exports.default = Reader;
|
|
5070
4990
|
}));
|
|
5071
|
-
|
|
5072
4991
|
//#endregion
|
|
5073
4992
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js
|
|
5074
4993
|
var require_stream$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5083,15 +5002,15 @@ var require_stream$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5083
5002
|
this._walkStream = fsWalk.walkStream;
|
|
5084
5003
|
this._stat = fsStat.stat;
|
|
5085
5004
|
}
|
|
5086
|
-
dynamic(root, options
|
|
5087
|
-
return this._walkStream(root, options
|
|
5005
|
+
dynamic(root, options) {
|
|
5006
|
+
return this._walkStream(root, options);
|
|
5088
5007
|
}
|
|
5089
|
-
static(patterns, options
|
|
5008
|
+
static(patterns, options) {
|
|
5090
5009
|
const filepaths = patterns.map(this._getFullEntryPath, this);
|
|
5091
5010
|
const stream = new stream_1$1.PassThrough({ objectMode: true });
|
|
5092
5011
|
stream._write = (index, _enc, done) => {
|
|
5093
|
-
return this._getEntry(filepaths[index], patterns[index], options
|
|
5094
|
-
if (entry !== null && options
|
|
5012
|
+
return this._getEntry(filepaths[index], patterns[index], options).then((entry) => {
|
|
5013
|
+
if (entry !== null && options.entryFilter(entry)) stream.push(entry);
|
|
5095
5014
|
if (index === filepaths.length - 1) stream.end();
|
|
5096
5015
|
done();
|
|
5097
5016
|
}).catch(done);
|
|
@@ -5099,23 +5018,22 @@ var require_stream$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5099
5018
|
for (let i = 0; i < filepaths.length; i++) stream.write(i);
|
|
5100
5019
|
return stream;
|
|
5101
5020
|
}
|
|
5102
|
-
_getEntry(filepath, pattern, options
|
|
5021
|
+
_getEntry(filepath, pattern, options) {
|
|
5103
5022
|
return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => {
|
|
5104
|
-
if (options
|
|
5023
|
+
if (options.errorFilter(error)) return null;
|
|
5105
5024
|
throw error;
|
|
5106
5025
|
});
|
|
5107
5026
|
}
|
|
5108
5027
|
_getStat(filepath) {
|
|
5109
|
-
return new Promise((resolve
|
|
5028
|
+
return new Promise((resolve, reject) => {
|
|
5110
5029
|
this._stat(filepath, this._fsStatSettings, (error, stats) => {
|
|
5111
|
-
return error === null ? resolve
|
|
5030
|
+
return error === null ? resolve(stats) : reject(error);
|
|
5112
5031
|
});
|
|
5113
5032
|
});
|
|
5114
5033
|
}
|
|
5115
5034
|
};
|
|
5116
5035
|
exports.default = ReaderStream;
|
|
5117
5036
|
}));
|
|
5118
|
-
|
|
5119
5037
|
//#endregion
|
|
5120
5038
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js
|
|
5121
5039
|
var require_async$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5129,27 +5047,26 @@ var require_async$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5129
5047
|
this._walkAsync = fsWalk.walk;
|
|
5130
5048
|
this._readerStream = new stream_1.default(this._settings);
|
|
5131
5049
|
}
|
|
5132
|
-
dynamic(root, options
|
|
5133
|
-
return new Promise((resolve
|
|
5134
|
-
this._walkAsync(root, options
|
|
5135
|
-
if (error === null) resolve
|
|
5050
|
+
dynamic(root, options) {
|
|
5051
|
+
return new Promise((resolve, reject) => {
|
|
5052
|
+
this._walkAsync(root, options, (error, entries) => {
|
|
5053
|
+
if (error === null) resolve(entries);
|
|
5136
5054
|
else reject(error);
|
|
5137
5055
|
});
|
|
5138
5056
|
});
|
|
5139
5057
|
}
|
|
5140
|
-
async static(patterns, options
|
|
5058
|
+
async static(patterns, options) {
|
|
5141
5059
|
const entries = [];
|
|
5142
|
-
const stream = this._readerStream.static(patterns, options
|
|
5143
|
-
return new Promise((resolve
|
|
5060
|
+
const stream = this._readerStream.static(patterns, options);
|
|
5061
|
+
return new Promise((resolve, reject) => {
|
|
5144
5062
|
stream.once("error", reject);
|
|
5145
5063
|
stream.on("data", (entry) => entries.push(entry));
|
|
5146
|
-
stream.once("end", () => resolve
|
|
5064
|
+
stream.once("end", () => resolve(entries));
|
|
5147
5065
|
});
|
|
5148
5066
|
}
|
|
5149
5067
|
};
|
|
5150
5068
|
exports.default = ReaderAsync;
|
|
5151
5069
|
}));
|
|
5152
|
-
|
|
5153
5070
|
//#endregion
|
|
5154
5071
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
5155
5072
|
var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5194,7 +5111,6 @@ var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5194
5111
|
};
|
|
5195
5112
|
exports.default = Matcher;
|
|
5196
5113
|
}));
|
|
5197
|
-
|
|
5198
5114
|
//#endregion
|
|
5199
5115
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
5200
5116
|
var require_partial = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5227,7 +5143,6 @@ var require_partial = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5227
5143
|
};
|
|
5228
5144
|
exports.default = PartialMatcher;
|
|
5229
5145
|
}));
|
|
5230
|
-
|
|
5231
5146
|
//#endregion
|
|
5232
5147
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js
|
|
5233
5148
|
var require_deep = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5282,7 +5197,6 @@ var require_deep = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5282
5197
|
};
|
|
5283
5198
|
exports.default = DeepFilter;
|
|
5284
5199
|
}));
|
|
5285
|
-
|
|
5286
5200
|
//#endregion
|
|
5287
5201
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js
|
|
5288
5202
|
var require_entry$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5345,7 +5259,6 @@ var require_entry$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5345
5259
|
};
|
|
5346
5260
|
exports.default = EntryFilter;
|
|
5347
5261
|
}));
|
|
5348
|
-
|
|
5349
5262
|
//#endregion
|
|
5350
5263
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js
|
|
5351
5264
|
var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5364,7 +5277,6 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5364
5277
|
};
|
|
5365
5278
|
exports.default = ErrorFilter;
|
|
5366
5279
|
}));
|
|
5367
|
-
|
|
5368
5280
|
//#endregion
|
|
5369
5281
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
5370
5282
|
var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5390,7 +5302,6 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5390
5302
|
};
|
|
5391
5303
|
exports.default = EntryTransformer;
|
|
5392
5304
|
}));
|
|
5393
|
-
|
|
5394
5305
|
//#endregion
|
|
5395
5306
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
5396
5307
|
var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5442,7 +5353,6 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5442
5353
|
};
|
|
5443
5354
|
exports.default = Provider;
|
|
5444
5355
|
}));
|
|
5445
|
-
|
|
5446
5356
|
//#endregion
|
|
5447
5357
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js
|
|
5448
5358
|
var require_async = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5456,17 +5366,16 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5456
5366
|
}
|
|
5457
5367
|
async read(task) {
|
|
5458
5368
|
const root = this._getRootDirectory(task);
|
|
5459
|
-
const options
|
|
5460
|
-
return (await this.api(root, task, options
|
|
5369
|
+
const options = this._getReaderOptions(task);
|
|
5370
|
+
return (await this.api(root, task, options)).map((entry) => options.transform(entry));
|
|
5461
5371
|
}
|
|
5462
|
-
api(root, task, options
|
|
5463
|
-
if (task.dynamic) return this._reader.dynamic(root, options
|
|
5464
|
-
return this._reader.static(task.patterns, options
|
|
5372
|
+
api(root, task, options) {
|
|
5373
|
+
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
5374
|
+
return this._reader.static(task.patterns, options);
|
|
5465
5375
|
}
|
|
5466
5376
|
};
|
|
5467
5377
|
exports.default = ProviderAsync;
|
|
5468
5378
|
}));
|
|
5469
|
-
|
|
5470
5379
|
//#endregion
|
|
5471
5380
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js
|
|
5472
5381
|
var require_stream = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5481,24 +5390,23 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5481
5390
|
}
|
|
5482
5391
|
read(task) {
|
|
5483
5392
|
const root = this._getRootDirectory(task);
|
|
5484
|
-
const options
|
|
5485
|
-
const source = this.api(root, task, options
|
|
5393
|
+
const options = this._getReaderOptions(task);
|
|
5394
|
+
const source = this.api(root, task, options);
|
|
5486
5395
|
const destination = new stream_1.Readable({
|
|
5487
5396
|
objectMode: true,
|
|
5488
5397
|
read: () => {}
|
|
5489
5398
|
});
|
|
5490
|
-
source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options
|
|
5399
|
+
source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options.transform(entry))).once("end", () => destination.emit("end"));
|
|
5491
5400
|
destination.once("close", () => source.destroy());
|
|
5492
5401
|
return destination;
|
|
5493
5402
|
}
|
|
5494
|
-
api(root, task, options
|
|
5495
|
-
if (task.dynamic) return this._reader.dynamic(root, options
|
|
5496
|
-
return this._reader.static(task.patterns, options
|
|
5403
|
+
api(root, task, options) {
|
|
5404
|
+
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
5405
|
+
return this._reader.static(task.patterns, options);
|
|
5497
5406
|
}
|
|
5498
5407
|
};
|
|
5499
5408
|
exports.default = ProviderStream;
|
|
5500
5409
|
}));
|
|
5501
|
-
|
|
5502
5410
|
//#endregion
|
|
5503
5411
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js
|
|
5504
5412
|
var require_sync$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5512,25 +5420,25 @@ var require_sync$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5512
5420
|
this._walkSync = fsWalk.walkSync;
|
|
5513
5421
|
this._statSync = fsStat.statSync;
|
|
5514
5422
|
}
|
|
5515
|
-
dynamic(root, options
|
|
5516
|
-
return this._walkSync(root, options
|
|
5423
|
+
dynamic(root, options) {
|
|
5424
|
+
return this._walkSync(root, options);
|
|
5517
5425
|
}
|
|
5518
|
-
static(patterns, options
|
|
5426
|
+
static(patterns, options) {
|
|
5519
5427
|
const entries = [];
|
|
5520
5428
|
for (const pattern of patterns) {
|
|
5521
5429
|
const filepath = this._getFullEntryPath(pattern);
|
|
5522
|
-
const entry = this._getEntry(filepath, pattern, options
|
|
5523
|
-
if (entry === null || !options
|
|
5430
|
+
const entry = this._getEntry(filepath, pattern, options);
|
|
5431
|
+
if (entry === null || !options.entryFilter(entry)) continue;
|
|
5524
5432
|
entries.push(entry);
|
|
5525
5433
|
}
|
|
5526
5434
|
return entries;
|
|
5527
5435
|
}
|
|
5528
|
-
_getEntry(filepath, pattern, options
|
|
5436
|
+
_getEntry(filepath, pattern, options) {
|
|
5529
5437
|
try {
|
|
5530
5438
|
const stats = this._getStat(filepath);
|
|
5531
5439
|
return this._makeEntry(stats, pattern);
|
|
5532
5440
|
} catch (error) {
|
|
5533
|
-
if (options
|
|
5441
|
+
if (options.errorFilter(error)) return null;
|
|
5534
5442
|
throw error;
|
|
5535
5443
|
}
|
|
5536
5444
|
}
|
|
@@ -5540,7 +5448,6 @@ var require_sync$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5540
5448
|
};
|
|
5541
5449
|
exports.default = ReaderSync;
|
|
5542
5450
|
}));
|
|
5543
|
-
|
|
5544
5451
|
//#endregion
|
|
5545
5452
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js
|
|
5546
5453
|
var require_sync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5554,17 +5461,16 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5554
5461
|
}
|
|
5555
5462
|
read(task) {
|
|
5556
5463
|
const root = this._getRootDirectory(task);
|
|
5557
|
-
const options
|
|
5558
|
-
return this.api(root, task, options
|
|
5464
|
+
const options = this._getReaderOptions(task);
|
|
5465
|
+
return this.api(root, task, options).map(options.transform);
|
|
5559
5466
|
}
|
|
5560
|
-
api(root, task, options
|
|
5561
|
-
if (task.dynamic) return this._reader.dynamic(root, options
|
|
5562
|
-
return this._reader.static(task.patterns, options
|
|
5467
|
+
api(root, task, options) {
|
|
5468
|
+
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
5469
|
+
return this._reader.static(task.patterns, options);
|
|
5563
5470
|
}
|
|
5564
5471
|
};
|
|
5565
5472
|
exports.default = ProviderSync;
|
|
5566
5473
|
}));
|
|
5567
|
-
|
|
5568
5474
|
//#endregion
|
|
5569
5475
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js
|
|
5570
5476
|
var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5616,25 +5522,24 @@ var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5616
5522
|
_getValue(option, value) {
|
|
5617
5523
|
return option === void 0 ? value : option;
|
|
5618
5524
|
}
|
|
5619
|
-
_getFileSystemMethods(methods
|
|
5620
|
-
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods
|
|
5525
|
+
_getFileSystemMethods(methods = {}) {
|
|
5526
|
+
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
5621
5527
|
}
|
|
5622
5528
|
};
|
|
5623
5529
|
exports.default = Settings;
|
|
5624
5530
|
}));
|
|
5625
|
-
|
|
5626
5531
|
//#endregion
|
|
5627
|
-
//#region ../../node_modules/.pnpm/
|
|
5628
|
-
var
|
|
5532
|
+
//#region ../../node_modules/.pnpm/image-meta@0.2.2/node_modules/image-meta/dist/index.mjs
|
|
5533
|
+
var import_out = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5629
5534
|
const taskManager = require_tasks();
|
|
5630
5535
|
const async_1 = require_async();
|
|
5631
5536
|
const stream_1 = require_stream();
|
|
5632
5537
|
const sync_1 = require_sync();
|
|
5633
5538
|
const settings_1 = require_settings();
|
|
5634
5539
|
const utils = require_utils$1();
|
|
5635
|
-
async function FastGlob(source, options
|
|
5540
|
+
async function FastGlob(source, options) {
|
|
5636
5541
|
assertPatternsInput(source);
|
|
5637
|
-
const works = getWorks(source, async_1.default, options
|
|
5542
|
+
const works = getWorks(source, async_1.default, options);
|
|
5638
5543
|
const result = await Promise.all(works);
|
|
5639
5544
|
return utils.array.flatten(result);
|
|
5640
5545
|
}
|
|
@@ -5643,15 +5548,15 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5643
5548
|
FastGlob.globSync = sync;
|
|
5644
5549
|
FastGlob.globStream = stream;
|
|
5645
5550
|
FastGlob.async = FastGlob;
|
|
5646
|
-
function sync(source, options
|
|
5551
|
+
function sync(source, options) {
|
|
5647
5552
|
assertPatternsInput(source);
|
|
5648
|
-
const works = getWorks(source, sync_1.default, options
|
|
5553
|
+
const works = getWorks(source, sync_1.default, options);
|
|
5649
5554
|
return utils.array.flatten(works);
|
|
5650
5555
|
}
|
|
5651
5556
|
FastGlob.sync = sync;
|
|
5652
|
-
function stream(source, options
|
|
5557
|
+
function stream(source, options) {
|
|
5653
5558
|
assertPatternsInput(source);
|
|
5654
|
-
const works = getWorks(source, stream_1.default, options
|
|
5559
|
+
const works = getWorks(source, stream_1.default, options);
|
|
5655
5560
|
/**
|
|
5656
5561
|
* The stream returned by the provider cannot work with an asynchronous iterator.
|
|
5657
5562
|
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
|
@@ -5660,16 +5565,16 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5660
5565
|
return utils.stream.merge(works);
|
|
5661
5566
|
}
|
|
5662
5567
|
FastGlob.stream = stream;
|
|
5663
|
-
function generateTasks(source, options
|
|
5568
|
+
function generateTasks(source, options) {
|
|
5664
5569
|
assertPatternsInput(source);
|
|
5665
5570
|
const patterns = [].concat(source);
|
|
5666
|
-
const settings = new settings_1.default(options
|
|
5571
|
+
const settings = new settings_1.default(options);
|
|
5667
5572
|
return taskManager.generate(patterns, settings);
|
|
5668
5573
|
}
|
|
5669
5574
|
FastGlob.generateTasks = generateTasks;
|
|
5670
|
-
function isDynamicPattern(source, options
|
|
5575
|
+
function isDynamicPattern(source, options) {
|
|
5671
5576
|
assertPatternsInput(source);
|
|
5672
|
-
const settings = new settings_1.default(options
|
|
5577
|
+
const settings = new settings_1.default(options);
|
|
5673
5578
|
return utils.pattern.isDynamicPattern(source, settings);
|
|
5674
5579
|
}
|
|
5675
5580
|
FastGlob.isDynamicPattern = isDynamicPattern;
|
|
@@ -5684,33 +5589,33 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5684
5589
|
}
|
|
5685
5590
|
FastGlob.convertPathToPattern = convertPathToPattern;
|
|
5686
5591
|
(function(posix) {
|
|
5687
|
-
function escapePath
|
|
5592
|
+
function escapePath(source) {
|
|
5688
5593
|
assertPatternsInput(source);
|
|
5689
5594
|
return utils.path.escapePosixPath(source);
|
|
5690
5595
|
}
|
|
5691
|
-
posix.escapePath = escapePath
|
|
5692
|
-
function convertPathToPattern
|
|
5596
|
+
posix.escapePath = escapePath;
|
|
5597
|
+
function convertPathToPattern(source) {
|
|
5693
5598
|
assertPatternsInput(source);
|
|
5694
5599
|
return utils.path.convertPosixPathToPattern(source);
|
|
5695
5600
|
}
|
|
5696
|
-
posix.convertPathToPattern = convertPathToPattern
|
|
5601
|
+
posix.convertPathToPattern = convertPathToPattern;
|
|
5697
5602
|
})(FastGlob.posix || (FastGlob.posix = {}));
|
|
5698
5603
|
(function(win32) {
|
|
5699
|
-
function escapePath
|
|
5604
|
+
function escapePath(source) {
|
|
5700
5605
|
assertPatternsInput(source);
|
|
5701
5606
|
return utils.path.escapeWindowsPath(source);
|
|
5702
5607
|
}
|
|
5703
|
-
win32.escapePath = escapePath
|
|
5704
|
-
function convertPathToPattern
|
|
5608
|
+
win32.escapePath = escapePath;
|
|
5609
|
+
function convertPathToPattern(source) {
|
|
5705
5610
|
assertPatternsInput(source);
|
|
5706
5611
|
return utils.path.convertWindowsPathToPattern(source);
|
|
5707
5612
|
}
|
|
5708
|
-
win32.convertPathToPattern = convertPathToPattern
|
|
5613
|
+
win32.convertPathToPattern = convertPathToPattern;
|
|
5709
5614
|
})(FastGlob.win32 || (FastGlob.win32 = {}));
|
|
5710
5615
|
})(FastGlob || (FastGlob = {}));
|
|
5711
|
-
function getWorks(source, _Provider, options
|
|
5616
|
+
function getWorks(source, _Provider, options) {
|
|
5712
5617
|
const patterns = [].concat(source);
|
|
5713
|
-
const settings = new settings_1.default(options
|
|
5618
|
+
const settings = new settings_1.default(options);
|
|
5714
5619
|
const tasks = taskManager.generate(patterns, settings);
|
|
5715
5620
|
const provider = new _Provider(settings);
|
|
5716
5621
|
return tasks.map(provider.read, provider);
|
|
@@ -5719,11 +5624,7 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5719
5624
|
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");
|
|
5720
5625
|
}
|
|
5721
5626
|
module.exports = FastGlob;
|
|
5722
|
-
}));
|
|
5723
|
-
|
|
5724
|
-
//#endregion
|
|
5725
|
-
//#region ../../node_modules/.pnpm/image-meta@0.2.2/node_modules/image-meta/dist/index.mjs
|
|
5726
|
-
var import_out = /* @__PURE__ */ __toESM(require_out(), 1);
|
|
5627
|
+
})))(), 1);
|
|
5727
5628
|
const decoder = new TextDecoder();
|
|
5728
5629
|
const toUTF8String = (input, start = 0, end = input.length) => decoder.decode(input.slice(start, end));
|
|
5729
5630
|
const toHexString = (input, start = 0, end = input.length) => input.slice(start, end).reduce((memo, i) => memo + ("0" + i.toString(16)).slice(-2), "");
|
|
@@ -6168,7 +6069,7 @@ const units = {
|
|
|
6168
6069
|
pt: 96 / 72,
|
|
6169
6070
|
px: 1
|
|
6170
6071
|
};
|
|
6171
|
-
const unitsReg =
|
|
6072
|
+
const unitsReg = new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(units).join("|")})?$`);
|
|
6172
6073
|
function parseLength(len) {
|
|
6173
6074
|
const m = unitsReg.exec(len);
|
|
6174
6075
|
if (!m) return;
|
|
@@ -6404,7 +6305,6 @@ function imageMeta(input) {
|
|
|
6404
6305
|
}
|
|
6405
6306
|
throw new TypeError(`Unsupported file type: ${type}`);
|
|
6406
6307
|
}
|
|
6407
|
-
|
|
6408
6308
|
//#endregion
|
|
6409
6309
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
6410
6310
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -6416,37 +6316,37 @@ const _UNC_REGEX = /^[/\\]{2}/;
|
|
|
6416
6316
|
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
6417
6317
|
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
6418
6318
|
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
6419
|
-
const normalize = function(path
|
|
6420
|
-
if (path
|
|
6421
|
-
path
|
|
6422
|
-
const isUNCPath = path
|
|
6423
|
-
const isPathAbsolute = isAbsolute(path
|
|
6424
|
-
const trailingSeparator = path
|
|
6425
|
-
path
|
|
6426
|
-
if (path
|
|
6319
|
+
const normalize = function(path) {
|
|
6320
|
+
if (path.length === 0) return ".";
|
|
6321
|
+
path = normalizeWindowsPath(path);
|
|
6322
|
+
const isUNCPath = path.match(_UNC_REGEX);
|
|
6323
|
+
const isPathAbsolute = isAbsolute(path);
|
|
6324
|
+
const trailingSeparator = path[path.length - 1] === "/";
|
|
6325
|
+
path = normalizeString(path, !isPathAbsolute);
|
|
6326
|
+
if (path.length === 0) {
|
|
6427
6327
|
if (isPathAbsolute) return "/";
|
|
6428
6328
|
return trailingSeparator ? "./" : ".";
|
|
6429
6329
|
}
|
|
6430
|
-
if (trailingSeparator) path
|
|
6431
|
-
if (_DRIVE_LETTER_RE.test(path
|
|
6330
|
+
if (trailingSeparator) path += "/";
|
|
6331
|
+
if (_DRIVE_LETTER_RE.test(path)) path += "/";
|
|
6432
6332
|
if (isUNCPath) {
|
|
6433
|
-
if (!isPathAbsolute) return `//./${path
|
|
6434
|
-
return `//${path
|
|
6333
|
+
if (!isPathAbsolute) return `//./${path}`;
|
|
6334
|
+
return `//${path}`;
|
|
6435
6335
|
}
|
|
6436
|
-
return isPathAbsolute && !isAbsolute(path
|
|
6336
|
+
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
6437
6337
|
};
|
|
6438
6338
|
const join = function(...segments) {
|
|
6439
|
-
let path
|
|
6339
|
+
let path = "";
|
|
6440
6340
|
for (const seg of segments) {
|
|
6441
6341
|
if (!seg) continue;
|
|
6442
|
-
if (path
|
|
6443
|
-
const pathTrailing = path
|
|
6342
|
+
if (path.length > 0) {
|
|
6343
|
+
const pathTrailing = path[path.length - 1] === "/";
|
|
6444
6344
|
const segLeading = seg[0] === "/";
|
|
6445
|
-
if (pathTrailing && segLeading) path
|
|
6446
|
-
else path
|
|
6447
|
-
} else path
|
|
6345
|
+
if (pathTrailing && segLeading) path += seg.slice(1);
|
|
6346
|
+
else path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
6347
|
+
} else path += seg;
|
|
6448
6348
|
}
|
|
6449
|
-
return normalize(path
|
|
6349
|
+
return normalize(path);
|
|
6450
6350
|
};
|
|
6451
6351
|
function cwd() {
|
|
6452
6352
|
if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
|
|
@@ -6457,23 +6357,23 @@ const resolve = function(...arguments_) {
|
|
|
6457
6357
|
let resolvedPath = "";
|
|
6458
6358
|
let resolvedAbsolute = false;
|
|
6459
6359
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
6460
|
-
const path
|
|
6461
|
-
if (!path
|
|
6462
|
-
resolvedPath = `${path
|
|
6463
|
-
resolvedAbsolute = isAbsolute(path
|
|
6360
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
6361
|
+
if (!path || path.length === 0) continue;
|
|
6362
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
6363
|
+
resolvedAbsolute = isAbsolute(path);
|
|
6464
6364
|
}
|
|
6465
6365
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
6466
6366
|
if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
|
|
6467
6367
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
6468
6368
|
};
|
|
6469
|
-
function normalizeString(path
|
|
6369
|
+
function normalizeString(path, allowAboveRoot) {
|
|
6470
6370
|
let res = "";
|
|
6471
6371
|
let lastSegmentLength = 0;
|
|
6472
6372
|
let lastSlash = -1;
|
|
6473
6373
|
let dots = 0;
|
|
6474
6374
|
let char = null;
|
|
6475
|
-
for (let index = 0; index <= path
|
|
6476
|
-
if (index < path
|
|
6375
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
6376
|
+
if (index < path.length) char = path[index];
|
|
6477
6377
|
else if (char === "/") break;
|
|
6478
6378
|
else char = "/";
|
|
6479
6379
|
if (char === "/") {
|
|
@@ -6505,8 +6405,8 @@ function normalizeString(path$10, allowAboveRoot) {
|
|
|
6505
6405
|
lastSegmentLength = 2;
|
|
6506
6406
|
}
|
|
6507
6407
|
} else {
|
|
6508
|
-
if (res.length > 0) res += `/${path
|
|
6509
|
-
else res = path
|
|
6408
|
+
if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
|
|
6409
|
+
else res = path.slice(lastSlash + 1, index);
|
|
6510
6410
|
lastSegmentLength = index - lastSlash - 1;
|
|
6511
6411
|
}
|
|
6512
6412
|
lastSlash = index;
|
|
@@ -6531,7 +6431,6 @@ const relative = function(from, to) {
|
|
|
6531
6431
|
}
|
|
6532
6432
|
return [..._from.map(() => ".."), ..._to].join("/");
|
|
6533
6433
|
};
|
|
6534
|
-
|
|
6535
6434
|
//#endregion
|
|
6536
6435
|
//#region ../../node_modules/.pnpm/perfect-debounce@2.0.0/node_modules/perfect-debounce/dist/index.mjs
|
|
6537
6436
|
const DEBOUNCE_DEFAULTS = { trailing: true };
|
|
@@ -6553,10 +6452,10 @@ console.log(await debouncedFn(number));
|
|
|
6553
6452
|
//=> 3
|
|
6554
6453
|
```
|
|
6555
6454
|
*/
|
|
6556
|
-
function debounce(fn, wait = 25, options
|
|
6557
|
-
options
|
|
6455
|
+
function debounce(fn, wait = 25, options = {}) {
|
|
6456
|
+
options = {
|
|
6558
6457
|
...DEBOUNCE_DEFAULTS,
|
|
6559
|
-
...options
|
|
6458
|
+
...options
|
|
6560
6459
|
};
|
|
6561
6460
|
if (!Number.isFinite(wait)) throw new TypeError("Expected `wait` to be a finite number");
|
|
6562
6461
|
let leadingValue;
|
|
@@ -6568,7 +6467,7 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6568
6467
|
currentPromise = _applyPromised(fn, _this, args);
|
|
6569
6468
|
currentPromise.finally(() => {
|
|
6570
6469
|
currentPromise = null;
|
|
6571
|
-
if (options
|
|
6470
|
+
if (options.trailing && trailingArgs && !timeout) {
|
|
6572
6471
|
const promise = applyFn(_this, trailingArgs);
|
|
6573
6472
|
trailingArgs = null;
|
|
6574
6473
|
return promise;
|
|
@@ -6577,22 +6476,22 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6577
6476
|
return currentPromise;
|
|
6578
6477
|
};
|
|
6579
6478
|
const debounced = function(...args) {
|
|
6580
|
-
if (options
|
|
6479
|
+
if (options.trailing) trailingArgs = args;
|
|
6581
6480
|
if (currentPromise) return currentPromise;
|
|
6582
|
-
return new Promise((resolve
|
|
6583
|
-
const shouldCallNow = !timeout && options
|
|
6481
|
+
return new Promise((resolve) => {
|
|
6482
|
+
const shouldCallNow = !timeout && options.leading;
|
|
6584
6483
|
clearTimeout(timeout);
|
|
6585
6484
|
timeout = setTimeout(() => {
|
|
6586
6485
|
timeout = null;
|
|
6587
|
-
const promise = options
|
|
6486
|
+
const promise = options.leading ? leadingValue : applyFn(this, args);
|
|
6588
6487
|
trailingArgs = null;
|
|
6589
6488
|
for (const _resolve of resolveList) _resolve(promise);
|
|
6590
6489
|
resolveList = [];
|
|
6591
6490
|
}, wait);
|
|
6592
6491
|
if (shouldCallNow) {
|
|
6593
6492
|
leadingValue = applyFn(this, args);
|
|
6594
|
-
resolve
|
|
6595
|
-
} else resolveList.push(resolve
|
|
6493
|
+
resolve(leadingValue);
|
|
6494
|
+
} else resolveList.push(resolve);
|
|
6596
6495
|
});
|
|
6597
6496
|
};
|
|
6598
6497
|
const _clearTimeout = (timer) => {
|
|
@@ -6619,16 +6518,15 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6619
6518
|
async function _applyPromised(fn, _this, args) {
|
|
6620
6519
|
return await fn.apply(_this, args);
|
|
6621
6520
|
}
|
|
6622
|
-
|
|
6623
6521
|
//#endregion
|
|
6624
6522
|
//#region src/rpc/assets.ts
|
|
6625
|
-
function guessType(path
|
|
6626
|
-
if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path
|
|
6627
|
-
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
|
|
6628
|
-
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
|
|
6629
|
-
if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path
|
|
6630
|
-
if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path
|
|
6631
|
-
if (/\.wasm/i.test(path
|
|
6523
|
+
function guessType(path) {
|
|
6524
|
+
if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path)) return "image";
|
|
6525
|
+
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)) return "video";
|
|
6526
|
+
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)) return "audio";
|
|
6527
|
+
if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path)) return "font";
|
|
6528
|
+
if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path)) return "text";
|
|
6529
|
+
if (/\.wasm/i.test(path)) return "wasm";
|
|
6632
6530
|
return "other";
|
|
6633
6531
|
}
|
|
6634
6532
|
function getAssetsFunctions(ctx) {
|
|
@@ -6662,11 +6560,11 @@ function getAssetsFunctions(ctx) {
|
|
|
6662
6560
|
cache = await Promise.all(files.map(async (relativePath) => {
|
|
6663
6561
|
const filePath = resolve(dir, relativePath);
|
|
6664
6562
|
const stat = await node_fs_promises.default.lstat(filePath);
|
|
6665
|
-
const path
|
|
6563
|
+
const path = relativePath.replace(relativePublicDir, "");
|
|
6666
6564
|
return {
|
|
6667
|
-
path
|
|
6565
|
+
path,
|
|
6668
6566
|
relativePath,
|
|
6669
|
-
publicPath: join(baseURL, path
|
|
6567
|
+
publicPath: join(baseURL, path),
|
|
6670
6568
|
filePath,
|
|
6671
6569
|
type: guessType(relativePath),
|
|
6672
6570
|
size: stat.size,
|
|
@@ -6720,7 +6618,6 @@ function getAssetsFunctions(ctx) {
|
|
|
6720
6618
|
}
|
|
6721
6619
|
};
|
|
6722
6620
|
}
|
|
6723
|
-
|
|
6724
6621
|
//#endregion
|
|
6725
6622
|
//#region src/rpc/get-config.ts
|
|
6726
6623
|
function getConfigFunctions(ctx) {
|
|
@@ -6728,7 +6625,6 @@ function getConfigFunctions(ctx) {
|
|
|
6728
6625
|
return ctx.config.root;
|
|
6729
6626
|
} };
|
|
6730
6627
|
}
|
|
6731
|
-
|
|
6732
6628
|
//#endregion
|
|
6733
6629
|
//#region src/rpc/graph.ts
|
|
6734
6630
|
function getGraphFunctions(ctx) {
|
|
@@ -6756,9 +6652,9 @@ function getGraphFunctions(ctx) {
|
|
|
6756
6652
|
seen.add(id);
|
|
6757
6653
|
const module = modules.find((m) => m.id === id);
|
|
6758
6654
|
if (!module) return [];
|
|
6759
|
-
return module.deps.flatMap((i
|
|
6760
|
-
if (filteredModules.find((m) => m.id === i
|
|
6761
|
-
return searchForVueDeps(i
|
|
6655
|
+
return module.deps.flatMap((i) => {
|
|
6656
|
+
if (filteredModules.find((m) => m.id === i)) return [i];
|
|
6657
|
+
return searchForVueDeps(i, seen);
|
|
6762
6658
|
});
|
|
6763
6659
|
}
|
|
6764
6660
|
return {
|
|
@@ -6768,7 +6664,6 @@ function getGraphFunctions(ctx) {
|
|
|
6768
6664
|
});
|
|
6769
6665
|
} };
|
|
6770
6666
|
}
|
|
6771
|
-
|
|
6772
6667
|
//#endregion
|
|
6773
6668
|
//#region src/rpc/index.ts
|
|
6774
6669
|
function getRpcFunctions(ctx) {
|
|
@@ -6781,13 +6676,11 @@ function getRpcFunctions(ctx) {
|
|
|
6781
6676
|
...getGraphFunctions(ctx)
|
|
6782
6677
|
};
|
|
6783
6678
|
}
|
|
6784
|
-
|
|
6785
6679
|
//#endregion
|
|
6786
6680
|
//#region src/utils.ts
|
|
6787
6681
|
function removeUrlQuery(url) {
|
|
6788
6682
|
return url.replace(/\?.*$/, "");
|
|
6789
6683
|
}
|
|
6790
|
-
|
|
6791
6684
|
//#endregion
|
|
6792
6685
|
//#region src/vite.ts
|
|
6793
6686
|
function getVueDevtoolsPath() {
|
|
@@ -6807,13 +6700,13 @@ const defaultOptions = {
|
|
|
6807
6700
|
componentInspector: true,
|
|
6808
6701
|
launchEditor: process.env.LAUNCH_EDITOR ?? "code"
|
|
6809
6702
|
};
|
|
6810
|
-
function mergeOptions(options
|
|
6811
|
-
return Object.assign({}, defaultOptions, options
|
|
6703
|
+
function mergeOptions(options) {
|
|
6704
|
+
return Object.assign({}, defaultOptions, options);
|
|
6812
6705
|
}
|
|
6813
|
-
function VitePluginVueDevTools(options
|
|
6706
|
+
function VitePluginVueDevTools(options) {
|
|
6814
6707
|
const vueDevtoolsPath = getVueDevtoolsPath();
|
|
6815
6708
|
const inspect = (0, vite_plugin_inspect.default)({ silent: true });
|
|
6816
|
-
const pluginOptions = mergeOptions(options
|
|
6709
|
+
const pluginOptions = mergeOptions(options ?? {});
|
|
6817
6710
|
let config;
|
|
6818
6711
|
function configureServer(server) {
|
|
6819
6712
|
const base = server.config.base || "/";
|
|
@@ -6838,13 +6731,13 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6838
6731
|
const colorUrl = (url) => cyan(url.replace(/:(\d+)\//, (_, port) => `:${bold(port)}/`));
|
|
6839
6732
|
server.printUrls = () => {
|
|
6840
6733
|
const urls = server.resolvedUrls;
|
|
6841
|
-
const keys
|
|
6734
|
+
const keys = normalizeComboKeyPrint("option-shift-d");
|
|
6842
6735
|
_printUrls();
|
|
6843
6736
|
for (const url of urls.local) {
|
|
6844
6737
|
const devtoolsUrl = url.endsWith("/") ? `${url}__devtools__/` : `${url}/__devtools__/`;
|
|
6845
6738
|
console.log(` ${green("➜")} ${bold("Vue DevTools")}: ${green(`Open ${colorUrl(`${devtoolsUrl}`)} as a separate window`)}`);
|
|
6846
6739
|
}
|
|
6847
|
-
console.log(` ${green("➜")} ${bold("Vue DevTools")}: ${green(`Press ${yellow(keys
|
|
6740
|
+
console.log(` ${green("➜")} ${bold("Vue DevTools")}: ${green(`Press ${yellow(keys)} in App to toggle the Vue DevTools`)}`);
|
|
6848
6741
|
};
|
|
6849
6742
|
}
|
|
6850
6743
|
const devtoolsOptionsImportee = "virtual:vue-devtools-options";
|
|
@@ -6873,8 +6766,8 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6873
6766
|
return await node_fs.default.promises.readFile(filename, "utf-8");
|
|
6874
6767
|
}
|
|
6875
6768
|
},
|
|
6876
|
-
transform(code, id, options
|
|
6877
|
-
if (options
|
|
6769
|
+
transform(code, id, options) {
|
|
6770
|
+
if (options === null || options === void 0 ? void 0 : options.ssr) return;
|
|
6878
6771
|
const { appendTo } = pluginOptions;
|
|
6879
6772
|
const [filename] = id.split("?", 2);
|
|
6880
6773
|
if (appendTo && (typeof appendTo === "string" && filename.endsWith(appendTo) || appendTo instanceof RegExp && appendTo.test(filename))) code = `import 'virtual:vue-devtools-path:overlay.js';\n${code}`;
|
|
@@ -6916,6 +6809,5 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6916
6809
|
plugin
|
|
6917
6810
|
].filter(Boolean);
|
|
6918
6811
|
}
|
|
6919
|
-
|
|
6920
6812
|
//#endregion
|
|
6921
|
-
module.exports = VitePluginVueDevTools;
|
|
6813
|
+
module.exports = VitePluginVueDevTools;
|