vite-plugin-vue-devtools 8.0.7 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-DWMTtST_.js → IconTitle.vue_vue_type_script_setup_true_lang-DJUwPLzM.js} +1 -1
- package/client/assets/{SectionBlock-FW2e-EfO.js → SectionBlock-g2jz8uHh.js} +1 -1
- package/client/assets/{assets-BdWpWia9.js → assets-W1sJ1gXE.js} +2 -2
- package/client/assets/components-CnHnWKfe.js +1 -0
- package/client/assets/custom-inspector-tab-view-EZYOpRoH.js +1 -0
- package/client/assets/{custom-tab-view-Djz5OIIA.js → custom-tab-view-CyM11f9-.js} +1 -1
- package/client/assets/{graph-CCabbOi3.js → graph-CNTi98vr.js} +1 -1
- package/client/assets/{index-E3YKiktg.js → index-D8B9oRep.js} +74 -74
- package/client/assets/{overview-Bb5V6n6L.js → overview-Dh_9B-aT.js} +1 -1
- package/client/assets/{pages-D0Xl3qvp.js → pages-TYJYrRRg.js} +1 -1
- package/client/assets/pinia-B2KncPEp.js +1 -0
- package/client/assets/{router-CZ5CeOIc.js → router-BjSNl7sf.js} +1 -1
- package/client/assets/{settings-BruolvbP.js → settings-C16ll9_V.js} +1 -1
- package/client/assets/timeline-BZZEyhA7.css +1 -0
- package/client/assets/timeline-CvN993pC.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 +3 -3
- package/client/assets/components-BJTYv_f2.js +0 -1
- package/client/assets/custom-inspector-tab-view-jNKZjEFE.js +0 -1
- package/client/assets/pinia-BoMbl4iP.js +0 -1
- package/client/assets/timeline-Bzqsvc_i.js +0 -1
- package/client/assets/timeline-DQ8UE2TV.css +0 -1
package/dist/vite.js
CHANGED
|
@@ -9,8 +9,7 @@ import { normalizePath } from "vite";
|
|
|
9
9
|
import Inspect from "vite-plugin-inspect";
|
|
10
10
|
import VueInspector from "vite-plugin-vue-inspector";
|
|
11
11
|
import fsp from "node:fs/promises";
|
|
12
|
-
|
|
13
|
-
//#region rolldown:runtime
|
|
12
|
+
//#region \0rolldown/runtime.js
|
|
14
13
|
var __create = Object.create;
|
|
15
14
|
var __defProp = Object.defineProperty;
|
|
16
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -19,16 +18,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
19
18
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
20
19
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
21
20
|
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
22
|
+
key = keys[i];
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
24
|
+
get: ((k) => from[k]).bind(null, key),
|
|
25
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26
|
+
});
|
|
32
27
|
}
|
|
33
28
|
return to;
|
|
34
29
|
};
|
|
@@ -37,7 +32,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
32
|
enumerable: true
|
|
38
33
|
}) : target, mod));
|
|
39
34
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
|
-
|
|
41
35
|
//#endregion
|
|
42
36
|
//#region ../../node_modules/.pnpm/kolorist@1.8.0/node_modules/kolorist/dist/esm/index.mjs
|
|
43
37
|
let enabled = true;
|
|
@@ -78,52 +72,47 @@ function kolorist(start, end, level = 1) {
|
|
|
78
72
|
return options.enabled && options.supportLevel >= level ? open + ("" + str).replace(regex, open) + close : "" + str;
|
|
79
73
|
};
|
|
80
74
|
}
|
|
81
|
-
|
|
75
|
+
kolorist(0, 0);
|
|
82
76
|
const bold = kolorist(1, 22);
|
|
83
77
|
const dim = kolorist(2, 22);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
kolorist(3, 23);
|
|
79
|
+
kolorist(4, 24);
|
|
80
|
+
kolorist(7, 27);
|
|
81
|
+
kolorist(8, 28);
|
|
82
|
+
kolorist(9, 29);
|
|
83
|
+
kolorist(30, 39);
|
|
84
|
+
kolorist(31, 39);
|
|
91
85
|
const green = kolorist(32, 39);
|
|
92
86
|
const yellow = kolorist(33, 39);
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
kolorist(34, 39);
|
|
88
|
+
kolorist(35, 39);
|
|
95
89
|
const cyan = kolorist(36, 39);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region src/dir.ts
|
|
124
|
-
const DIR_DIST = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
|
|
125
|
-
const DIR_CLIENT = resolve(DIR_DIST, "../client");
|
|
126
|
-
|
|
90
|
+
kolorist(97, 39);
|
|
91
|
+
kolorist(90, 39);
|
|
92
|
+
kolorist(37, 39);
|
|
93
|
+
kolorist(91, 39);
|
|
94
|
+
kolorist(92, 39);
|
|
95
|
+
kolorist(93, 39);
|
|
96
|
+
kolorist(94, 39);
|
|
97
|
+
kolorist(95, 39);
|
|
98
|
+
kolorist(96, 39);
|
|
99
|
+
kolorist(40, 49);
|
|
100
|
+
kolorist(41, 49);
|
|
101
|
+
kolorist(42, 49);
|
|
102
|
+
kolorist(43, 49);
|
|
103
|
+
kolorist(44, 49);
|
|
104
|
+
kolorist(45, 49);
|
|
105
|
+
kolorist(46, 49);
|
|
106
|
+
kolorist(107, 49);
|
|
107
|
+
kolorist(100, 49);
|
|
108
|
+
kolorist(101, 49);
|
|
109
|
+
kolorist(102, 49);
|
|
110
|
+
kolorist(103, 49);
|
|
111
|
+
kolorist(104, 49);
|
|
112
|
+
kolorist(105, 49);
|
|
113
|
+
kolorist(106, 49);
|
|
114
|
+
kolorist(47, 49);
|
|
115
|
+
const DIR_CLIENT = resolve(typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url)), "../client");
|
|
127
116
|
//#endregion
|
|
128
117
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
129
118
|
var require_array = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -144,7 +133,6 @@ var require_array = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
144
133
|
}
|
|
145
134
|
exports.splitWhen = splitWhen;
|
|
146
135
|
}));
|
|
147
|
-
|
|
148
136
|
//#endregion
|
|
149
137
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
150
138
|
var require_errno = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -155,7 +143,6 @@ var require_errno = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
155
143
|
}
|
|
156
144
|
exports.isEnoentCodeError = isEnoentCodeError;
|
|
157
145
|
}));
|
|
158
|
-
|
|
159
146
|
//#endregion
|
|
160
147
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
161
148
|
var require_fs$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -178,7 +165,6 @@ var require_fs$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
178
165
|
}
|
|
179
166
|
exports.createDirentFromStats = createDirentFromStats;
|
|
180
167
|
}));
|
|
181
|
-
|
|
182
168
|
//#endregion
|
|
183
169
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
184
170
|
var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -213,8 +199,8 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
213
199
|
return filepath.replace(/\\/g, "/");
|
|
214
200
|
}
|
|
215
201
|
exports.unixify = unixify;
|
|
216
|
-
function makeAbsolute(cwd
|
|
217
|
-
return path$9.resolve(cwd
|
|
202
|
+
function makeAbsolute(cwd, filepath) {
|
|
203
|
+
return path$9.resolve(cwd, filepath);
|
|
218
204
|
}
|
|
219
205
|
exports.makeAbsolute = makeAbsolute;
|
|
220
206
|
function removeLeadingDotSegment(entry) {
|
|
@@ -244,7 +230,6 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
244
230
|
}
|
|
245
231
|
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
246
232
|
}));
|
|
247
|
-
|
|
248
233
|
//#endregion
|
|
249
234
|
//#region ../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
250
235
|
var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -264,7 +249,6 @@ var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
264
249
|
return false;
|
|
265
250
|
};
|
|
266
251
|
}));
|
|
267
|
-
|
|
268
252
|
//#endregion
|
|
269
253
|
//#region ../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
270
254
|
var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -354,15 +338,14 @@ var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
354
338
|
}
|
|
355
339
|
return false;
|
|
356
340
|
};
|
|
357
|
-
module.exports = function isGlob(str, options
|
|
341
|
+
module.exports = function isGlob(str, options) {
|
|
358
342
|
if (typeof str !== "string" || str === "") return false;
|
|
359
343
|
if (isExtglob(str)) return true;
|
|
360
344
|
var check = strictCheck;
|
|
361
|
-
if (options
|
|
345
|
+
if (options && options.strict === false) check = relaxedCheck;
|
|
362
346
|
return check(str);
|
|
363
347
|
};
|
|
364
348
|
}));
|
|
365
|
-
|
|
366
349
|
//#endregion
|
|
367
350
|
//#region ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
|
|
368
351
|
var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -390,7 +373,6 @@ var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
390
373
|
return str.replace(escaped, "$1");
|
|
391
374
|
};
|
|
392
375
|
}));
|
|
393
|
-
|
|
394
376
|
//#endregion
|
|
395
377
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
396
378
|
var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -402,7 +384,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
402
384
|
/**
|
|
403
385
|
* Find a node of the given type
|
|
404
386
|
*/
|
|
405
|
-
exports.find = (node, type) => node.nodes.find((node
|
|
387
|
+
exports.find = (node, type) => node.nodes.find((node) => node.type === type);
|
|
406
388
|
/**
|
|
407
389
|
* Find a node of the given type
|
|
408
390
|
*/
|
|
@@ -486,15 +468,14 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
486
468
|
return result;
|
|
487
469
|
};
|
|
488
470
|
}));
|
|
489
|
-
|
|
490
471
|
//#endregion
|
|
491
472
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
492
473
|
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
493
474
|
const utils = require_utils$3();
|
|
494
|
-
module.exports = (ast, options
|
|
475
|
+
module.exports = (ast, options = {}) => {
|
|
495
476
|
const stringify = (node, parent = {}) => {
|
|
496
|
-
const invalidBlock = options
|
|
497
|
-
const invalidNode = node.invalid === true && options
|
|
477
|
+
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
478
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
498
479
|
let output = "";
|
|
499
480
|
if (node.value) {
|
|
500
481
|
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) return "\\" + node.value;
|
|
@@ -507,7 +488,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
507
488
|
return stringify(ast);
|
|
508
489
|
};
|
|
509
490
|
}));
|
|
510
|
-
|
|
511
491
|
//#endregion
|
|
512
492
|
//#region ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
513
493
|
/*!
|
|
@@ -523,7 +503,6 @@ var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
523
503
|
return false;
|
|
524
504
|
};
|
|
525
505
|
}));
|
|
526
|
-
|
|
527
506
|
//#endregion
|
|
528
507
|
//#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
529
508
|
/*!
|
|
@@ -534,13 +513,13 @@ var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
534
513
|
*/
|
|
535
514
|
var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
536
515
|
const isNumber = require_is_number();
|
|
537
|
-
const toRegexRange = (min, max, options
|
|
516
|
+
const toRegexRange = (min, max, options) => {
|
|
538
517
|
if (isNumber(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
539
518
|
if (max === void 0 || min === max) return String(min);
|
|
540
519
|
if (isNumber(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
541
520
|
let opts = {
|
|
542
521
|
relaxZeros: true,
|
|
543
|
-
...options
|
|
522
|
+
...options
|
|
544
523
|
};
|
|
545
524
|
if (typeof opts.strictZeros === "boolean") opts.relaxZeros = opts.strictZeros === false;
|
|
546
525
|
let relax = String(opts.relaxZeros);
|
|
@@ -583,10 +562,10 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
583
562
|
toRegexRange.cache[cacheKey] = state;
|
|
584
563
|
return state.result;
|
|
585
564
|
};
|
|
586
|
-
function collatePatterns(neg, pos, options
|
|
587
|
-
let onlyNegative = filterPatterns(neg, pos, "-", false, options
|
|
588
|
-
let onlyPositive = filterPatterns(pos, neg, "", false, options
|
|
589
|
-
let intersected = filterPatterns(neg, pos, "-?", true, options
|
|
565
|
+
function collatePatterns(neg, pos, options) {
|
|
566
|
+
let onlyNegative = filterPatterns(neg, pos, "-", false, options) || [];
|
|
567
|
+
let onlyPositive = filterPatterns(pos, neg, "", false, options) || [];
|
|
568
|
+
let intersected = filterPatterns(neg, pos, "-?", true, options) || [];
|
|
590
569
|
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
|
591
570
|
}
|
|
592
571
|
function splitToRanges(min, max) {
|
|
@@ -615,7 +594,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
615
594
|
* @param {Number} `stop`
|
|
616
595
|
* @return {String}
|
|
617
596
|
*/
|
|
618
|
-
function rangeToPattern(start, stop, options
|
|
597
|
+
function rangeToPattern(start, stop, options) {
|
|
619
598
|
if (start === stop) return {
|
|
620
599
|
pattern: start,
|
|
621
600
|
count: [],
|
|
@@ -628,41 +607,41 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
628
607
|
for (let i = 0; i < digits; i++) {
|
|
629
608
|
let [startDigit, stopDigit] = zipped[i];
|
|
630
609
|
if (startDigit === stopDigit) pattern += startDigit;
|
|
631
|
-
else if (startDigit !== "0" || stopDigit !== "9") pattern += toCharacterClass(startDigit, stopDigit, options
|
|
610
|
+
else if (startDigit !== "0" || stopDigit !== "9") pattern += toCharacterClass(startDigit, stopDigit, options);
|
|
632
611
|
else count++;
|
|
633
612
|
}
|
|
634
|
-
if (count) pattern += options
|
|
613
|
+
if (count) pattern += options.shorthand === true ? "\\d" : "[0-9]";
|
|
635
614
|
return {
|
|
636
615
|
pattern,
|
|
637
616
|
count: [count],
|
|
638
617
|
digits
|
|
639
618
|
};
|
|
640
619
|
}
|
|
641
|
-
function splitToPatterns(min, max, tok, options
|
|
620
|
+
function splitToPatterns(min, max, tok, options) {
|
|
642
621
|
let ranges = splitToRanges(min, max);
|
|
643
622
|
let tokens = [];
|
|
644
623
|
let start = min;
|
|
645
624
|
let prev;
|
|
646
625
|
for (let i = 0; i < ranges.length; i++) {
|
|
647
|
-
let max
|
|
648
|
-
let obj = rangeToPattern(String(start), String(max
|
|
626
|
+
let max = ranges[i];
|
|
627
|
+
let obj = rangeToPattern(String(start), String(max), options);
|
|
649
628
|
let zeros = "";
|
|
650
629
|
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
|
651
630
|
if (prev.count.length > 1) prev.count.pop();
|
|
652
631
|
prev.count.push(obj.count[0]);
|
|
653
632
|
prev.string = prev.pattern + toQuantifier(prev.count);
|
|
654
|
-
start = max
|
|
633
|
+
start = max + 1;
|
|
655
634
|
continue;
|
|
656
635
|
}
|
|
657
|
-
if (tok.isPadded) zeros = padZeros(max
|
|
636
|
+
if (tok.isPadded) zeros = padZeros(max, tok, options);
|
|
658
637
|
obj.string = zeros + obj.pattern + toQuantifier(obj.count);
|
|
659
638
|
tokens.push(obj);
|
|
660
|
-
start = max
|
|
639
|
+
start = max + 1;
|
|
661
640
|
prev = obj;
|
|
662
641
|
}
|
|
663
642
|
return tokens;
|
|
664
643
|
}
|
|
665
|
-
function filterPatterns(arr, comparison, prefix, intersection, options
|
|
644
|
+
function filterPatterns(arr, comparison, prefix, intersection, options) {
|
|
666
645
|
let result = [];
|
|
667
646
|
for (let ele of arr) {
|
|
668
647
|
let { string } = ele;
|
|
@@ -696,16 +675,16 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
696
675
|
if (stop || start > 1) return `{${start + (stop ? "," + stop : "")}}`;
|
|
697
676
|
return "";
|
|
698
677
|
}
|
|
699
|
-
function toCharacterClass(a, b, options
|
|
678
|
+
function toCharacterClass(a, b, options) {
|
|
700
679
|
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
701
680
|
}
|
|
702
681
|
function hasPadding(str) {
|
|
703
682
|
return /^-?(0+)\d/.test(str);
|
|
704
683
|
}
|
|
705
|
-
function padZeros(value, tok, options
|
|
684
|
+
function padZeros(value, tok, options) {
|
|
706
685
|
if (!tok.isPadded) return value;
|
|
707
686
|
let diff = Math.abs(tok.maxLen - String(value).length);
|
|
708
|
-
let relax = options
|
|
687
|
+
let relax = options.relaxZeros !== false;
|
|
709
688
|
switch (diff) {
|
|
710
689
|
case 0: return "";
|
|
711
690
|
case 1: return relax ? "0?" : "0";
|
|
@@ -723,7 +702,6 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
723
702
|
*/
|
|
724
703
|
module.exports = toRegexRange;
|
|
725
704
|
}));
|
|
726
|
-
|
|
727
705
|
//#endregion
|
|
728
706
|
//#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
729
707
|
/*!
|
|
@@ -751,9 +729,9 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
751
729
|
while (value[++index] === "0");
|
|
752
730
|
return index > 0;
|
|
753
731
|
};
|
|
754
|
-
const stringify = (start, end, options
|
|
732
|
+
const stringify = (start, end, options) => {
|
|
755
733
|
if (typeof start === "string" || typeof end === "string") return true;
|
|
756
|
-
return options
|
|
734
|
+
return options.stringify === true;
|
|
757
735
|
};
|
|
758
736
|
const pad = (input, maxLength, toNumber) => {
|
|
759
737
|
if (maxLength > 0) {
|
|
@@ -773,10 +751,10 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
773
751
|
while (input.length < maxLength) input = "0" + input;
|
|
774
752
|
return negative ? "-" + input : input;
|
|
775
753
|
};
|
|
776
|
-
const toSequence = (parts, options
|
|
754
|
+
const toSequence = (parts, options, maxLen) => {
|
|
777
755
|
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
778
756
|
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
779
|
-
let prefix = options
|
|
757
|
+
let prefix = options.capture ? "" : "?:";
|
|
780
758
|
let positives = "";
|
|
781
759
|
let negatives = "";
|
|
782
760
|
let result;
|
|
@@ -784,42 +762,42 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
784
762
|
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`;
|
|
785
763
|
if (positives && negatives) result = `${positives}|${negatives}`;
|
|
786
764
|
else result = positives || negatives;
|
|
787
|
-
if (options
|
|
765
|
+
if (options.wrap) return `(${prefix}${result})`;
|
|
788
766
|
return result;
|
|
789
767
|
};
|
|
790
|
-
const toRange = (a, b, isNumbers, options
|
|
768
|
+
const toRange = (a, b, isNumbers, options) => {
|
|
791
769
|
if (isNumbers) return toRegexRange(a, b, {
|
|
792
770
|
wrap: false,
|
|
793
|
-
...options
|
|
771
|
+
...options
|
|
794
772
|
});
|
|
795
773
|
let start = String.fromCharCode(a);
|
|
796
774
|
if (a === b) return start;
|
|
797
775
|
return `[${start}-${String.fromCharCode(b)}]`;
|
|
798
776
|
};
|
|
799
|
-
const toRegex = (start, end, options
|
|
777
|
+
const toRegex = (start, end, options) => {
|
|
800
778
|
if (Array.isArray(start)) {
|
|
801
|
-
let wrap = options
|
|
802
|
-
let prefix = options
|
|
779
|
+
let wrap = options.wrap === true;
|
|
780
|
+
let prefix = options.capture ? "" : "?:";
|
|
803
781
|
return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
|
|
804
782
|
}
|
|
805
|
-
return toRegexRange(start, end, options
|
|
783
|
+
return toRegexRange(start, end, options);
|
|
806
784
|
};
|
|
807
785
|
const rangeError = (...args) => {
|
|
808
786
|
return /* @__PURE__ */ new RangeError("Invalid range arguments: " + util$1.inspect(...args));
|
|
809
787
|
};
|
|
810
|
-
const invalidRange = (start, end, options
|
|
811
|
-
if (options
|
|
788
|
+
const invalidRange = (start, end, options) => {
|
|
789
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
812
790
|
return [];
|
|
813
791
|
};
|
|
814
|
-
const invalidStep = (step, options
|
|
815
|
-
if (options
|
|
792
|
+
const invalidStep = (step, options) => {
|
|
793
|
+
if (options.strictRanges === true) throw new TypeError(`Expected step "${step}" to be a number`);
|
|
816
794
|
return [];
|
|
817
795
|
};
|
|
818
|
-
const fillNumbers = (start, end, step = 1, options
|
|
796
|
+
const fillNumbers = (start, end, step = 1, options = {}) => {
|
|
819
797
|
let a = Number(start);
|
|
820
798
|
let b = Number(end);
|
|
821
799
|
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
822
|
-
if (options
|
|
800
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
823
801
|
return [];
|
|
824
802
|
}
|
|
825
803
|
if (a === 0) a = 0;
|
|
@@ -831,9 +809,9 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
831
809
|
step = Math.max(Math.abs(step), 1);
|
|
832
810
|
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
833
811
|
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
834
|
-
let toNumber = padded === false && stringify(start, end, options
|
|
835
|
-
let format = options
|
|
836
|
-
if (options
|
|
812
|
+
let toNumber = padded === false && stringify(start, end, options) === false;
|
|
813
|
+
let format = options.transform || transform(toNumber);
|
|
814
|
+
if (options.toRegex && step === 1) return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
|
|
837
815
|
let parts = {
|
|
838
816
|
negatives: [],
|
|
839
817
|
positives: []
|
|
@@ -842,26 +820,26 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
842
820
|
let range = [];
|
|
843
821
|
let index = 0;
|
|
844
822
|
while (descending ? a >= b : a <= b) {
|
|
845
|
-
if (options
|
|
823
|
+
if (options.toRegex === true && step > 1) push(a);
|
|
846
824
|
else range.push(pad(format(a, index), maxLen, toNumber));
|
|
847
825
|
a = descending ? a - step : a + step;
|
|
848
826
|
index++;
|
|
849
827
|
}
|
|
850
|
-
if (options
|
|
828
|
+
if (options.toRegex === true) return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, {
|
|
851
829
|
wrap: false,
|
|
852
|
-
...options
|
|
830
|
+
...options
|
|
853
831
|
});
|
|
854
832
|
return range;
|
|
855
833
|
};
|
|
856
|
-
const fillLetters = (start, end, step = 1, options
|
|
857
|
-
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) return invalidRange(start, end, options
|
|
858
|
-
let format = options
|
|
834
|
+
const fillLetters = (start, end, step = 1, options = {}) => {
|
|
835
|
+
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) return invalidRange(start, end, options);
|
|
836
|
+
let format = options.transform || ((val) => String.fromCharCode(val));
|
|
859
837
|
let a = `${start}`.charCodeAt(0);
|
|
860
838
|
let b = `${end}`.charCodeAt(0);
|
|
861
839
|
let descending = a > b;
|
|
862
840
|
let min = Math.min(a, b);
|
|
863
841
|
let max = Math.max(a, b);
|
|
864
|
-
if (options
|
|
842
|
+
if (options.toRegex && step === 1) return toRange(min, max, false, options);
|
|
865
843
|
let range = [];
|
|
866
844
|
let index = 0;
|
|
867
845
|
while (descending ? a >= b : a <= b) {
|
|
@@ -869,18 +847,18 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
869
847
|
a = descending ? a - step : a + step;
|
|
870
848
|
index++;
|
|
871
849
|
}
|
|
872
|
-
if (options
|
|
850
|
+
if (options.toRegex === true) return toRegex(range, null, {
|
|
873
851
|
wrap: false,
|
|
874
|
-
options
|
|
852
|
+
options
|
|
875
853
|
});
|
|
876
854
|
return range;
|
|
877
855
|
};
|
|
878
|
-
const fill = (start, end, step, options
|
|
856
|
+
const fill = (start, end, step, options = {}) => {
|
|
879
857
|
if (end == null && isValidValue(start)) return [start];
|
|
880
|
-
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options
|
|
858
|
+
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options);
|
|
881
859
|
if (typeof step === "function") return fill(start, end, 1, { transform: step });
|
|
882
860
|
if (isObject(step)) return fill(start, end, 0, step);
|
|
883
|
-
let opts = { ...options
|
|
861
|
+
let opts = { ...options };
|
|
884
862
|
if (opts.capture === true) opts.wrap = true;
|
|
885
863
|
step = step || opts.step || 1;
|
|
886
864
|
if (!isNumber(step)) {
|
|
@@ -892,18 +870,17 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
892
870
|
};
|
|
893
871
|
module.exports = fill;
|
|
894
872
|
}));
|
|
895
|
-
|
|
896
873
|
//#endregion
|
|
897
874
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
898
875
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
899
876
|
const fill = require_fill_range();
|
|
900
877
|
const utils = require_utils$3();
|
|
901
|
-
const compile = (ast, options
|
|
878
|
+
const compile = (ast, options = {}) => {
|
|
902
879
|
const walk = (node, parent = {}) => {
|
|
903
880
|
const invalidBlock = utils.isInvalidBrace(parent);
|
|
904
|
-
const invalidNode = node.invalid === true && options
|
|
881
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
905
882
|
const invalid = invalidBlock === true || invalidNode === true;
|
|
906
|
-
const prefix = options
|
|
883
|
+
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
907
884
|
let output = "";
|
|
908
885
|
if (node.isOpen === true) return prefix + node.value;
|
|
909
886
|
if (node.isClose === true) {
|
|
@@ -917,7 +894,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
917
894
|
if (node.nodes && node.ranges > 0) {
|
|
918
895
|
const args = utils.reduce(node.nodes);
|
|
919
896
|
const range = fill(...args, {
|
|
920
|
-
...options
|
|
897
|
+
...options,
|
|
921
898
|
wrap: false,
|
|
922
899
|
toRegex: true,
|
|
923
900
|
strictZeros: true
|
|
@@ -931,7 +908,6 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
931
908
|
};
|
|
932
909
|
module.exports = compile;
|
|
933
910
|
}));
|
|
934
|
-
|
|
935
911
|
//#endregion
|
|
936
912
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
937
913
|
var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -951,8 +927,8 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
951
927
|
}
|
|
952
928
|
return utils.flatten(result);
|
|
953
929
|
};
|
|
954
|
-
const expand = (ast, options
|
|
955
|
-
const rangeLimit = options
|
|
930
|
+
const expand = (ast, options = {}) => {
|
|
931
|
+
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
956
932
|
const walk = (node, parent = {}) => {
|
|
957
933
|
node.queue = [];
|
|
958
934
|
let p = parent;
|
|
@@ -962,7 +938,7 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
962
938
|
q = p.queue;
|
|
963
939
|
}
|
|
964
940
|
if (node.invalid || node.dollar) {
|
|
965
|
-
q.push(append(q.pop(), stringify(node, options
|
|
941
|
+
q.push(append(q.pop(), stringify(node, options)));
|
|
966
942
|
return;
|
|
967
943
|
}
|
|
968
944
|
if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
|
|
@@ -971,9 +947,9 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
971
947
|
}
|
|
972
948
|
if (node.nodes && node.ranges > 0) {
|
|
973
949
|
const args = utils.reduce(node.nodes);
|
|
974
|
-
if (utils.exceedsLimit(...args, options
|
|
975
|
-
let range = fill(...args, options
|
|
976
|
-
if (range.length === 0) range = stringify(node, options
|
|
950
|
+
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.");
|
|
951
|
+
let range = fill(...args, options);
|
|
952
|
+
if (range.length === 0) range = stringify(node, options);
|
|
977
953
|
q.push(append(q.pop(), range));
|
|
978
954
|
node.nodes = [];
|
|
979
955
|
return;
|
|
@@ -1008,7 +984,6 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1008
984
|
};
|
|
1009
985
|
module.exports = expand;
|
|
1010
986
|
}));
|
|
1011
|
-
|
|
1012
987
|
//#endregion
|
|
1013
988
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
1014
989
|
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1060,7 +1035,6 @@ var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1060
1035
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
|
|
1061
1036
|
};
|
|
1062
1037
|
}));
|
|
1063
|
-
|
|
1064
1038
|
//#endregion
|
|
1065
1039
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
1066
1040
|
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1072,9 +1046,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1072
1046
|
/**
|
|
1073
1047
|
* parse
|
|
1074
1048
|
*/
|
|
1075
|
-
const parse = (input, options
|
|
1049
|
+
const parse = (input, options = {}) => {
|
|
1076
1050
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
1077
|
-
const opts = options
|
|
1051
|
+
const opts = options || {};
|
|
1078
1052
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
1079
1053
|
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
1080
1054
|
const ast = {
|
|
@@ -1120,7 +1094,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1120
1094
|
if (value === CHAR_BACKSLASH) {
|
|
1121
1095
|
push({
|
|
1122
1096
|
type: "text",
|
|
1123
|
-
value: (options
|
|
1097
|
+
value: (options.keepEscaping ? value : "") + advance()
|
|
1124
1098
|
});
|
|
1125
1099
|
continue;
|
|
1126
1100
|
}
|
|
@@ -1198,14 +1172,14 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1198
1172
|
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
1199
1173
|
const open = value;
|
|
1200
1174
|
let next;
|
|
1201
|
-
if (options
|
|
1175
|
+
if (options.keepQuotes !== true) value = "";
|
|
1202
1176
|
while (index < length && (next = advance())) {
|
|
1203
1177
|
if (next === CHAR_BACKSLASH) {
|
|
1204
1178
|
value += next + advance();
|
|
1205
1179
|
continue;
|
|
1206
1180
|
}
|
|
1207
1181
|
if (next === open) {
|
|
1208
|
-
if (options
|
|
1182
|
+
if (options.keepQuotes === true) value += next;
|
|
1209
1183
|
break;
|
|
1210
1184
|
}
|
|
1211
1185
|
value += next;
|
|
@@ -1339,8 +1313,8 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1339
1313
|
}
|
|
1340
1314
|
});
|
|
1341
1315
|
const parent = stack[stack.length - 1];
|
|
1342
|
-
const index
|
|
1343
|
-
parent.nodes.splice(index
|
|
1316
|
+
const index = parent.nodes.indexOf(block);
|
|
1317
|
+
parent.nodes.splice(index, 1, ...block.nodes);
|
|
1344
1318
|
}
|
|
1345
1319
|
} while (stack.length > 0);
|
|
1346
1320
|
push({ type: "eos" });
|
|
@@ -1348,7 +1322,6 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1348
1322
|
};
|
|
1349
1323
|
module.exports = parse;
|
|
1350
1324
|
}));
|
|
1351
|
-
|
|
1352
1325
|
//#endregion
|
|
1353
1326
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
1354
1327
|
var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1369,15 +1342,15 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1369
1342
|
* @return {String}
|
|
1370
1343
|
* @api public
|
|
1371
1344
|
*/
|
|
1372
|
-
const braces = (input, options
|
|
1345
|
+
const braces = (input, options = {}) => {
|
|
1373
1346
|
let output = [];
|
|
1374
1347
|
if (Array.isArray(input)) for (const pattern of input) {
|
|
1375
|
-
const result = braces.create(pattern, options
|
|
1348
|
+
const result = braces.create(pattern, options);
|
|
1376
1349
|
if (Array.isArray(result)) output.push(...result);
|
|
1377
1350
|
else output.push(result);
|
|
1378
1351
|
}
|
|
1379
|
-
else output = [].concat(braces.create(input, options
|
|
1380
|
-
if (options
|
|
1352
|
+
else output = [].concat(braces.create(input, options));
|
|
1353
|
+
if (options && options.expand === true && options.nodupes === true) output = [...new Set(output)];
|
|
1381
1354
|
return output;
|
|
1382
1355
|
};
|
|
1383
1356
|
/**
|
|
@@ -1393,7 +1366,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1393
1366
|
* @return {Object} Returns an AST
|
|
1394
1367
|
* @api public
|
|
1395
1368
|
*/
|
|
1396
|
-
braces.parse = (input, options
|
|
1369
|
+
braces.parse = (input, options = {}) => parse(input, options);
|
|
1397
1370
|
/**
|
|
1398
1371
|
* Creates a braces string from an AST, or an AST node.
|
|
1399
1372
|
*
|
|
@@ -1407,9 +1380,9 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1407
1380
|
* @return {Array} Returns an array of expanded values.
|
|
1408
1381
|
* @api public
|
|
1409
1382
|
*/
|
|
1410
|
-
braces.stringify = (input, options
|
|
1411
|
-
if (typeof input === "string") return stringify(braces.parse(input, options
|
|
1412
|
-
return stringify(input, options
|
|
1383
|
+
braces.stringify = (input, options = {}) => {
|
|
1384
|
+
if (typeof input === "string") return stringify(braces.parse(input, options), options);
|
|
1385
|
+
return stringify(input, options);
|
|
1413
1386
|
};
|
|
1414
1387
|
/**
|
|
1415
1388
|
* Compiles a brace pattern into a regex-compatible, optimized string.
|
|
@@ -1425,9 +1398,9 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1425
1398
|
* @return {Array} Returns an array of expanded values.
|
|
1426
1399
|
* @api public
|
|
1427
1400
|
*/
|
|
1428
|
-
braces.compile = (input, options
|
|
1429
|
-
if (typeof input === "string") input = braces.parse(input, options
|
|
1430
|
-
return compile(input, options
|
|
1401
|
+
braces.compile = (input, options = {}) => {
|
|
1402
|
+
if (typeof input === "string") input = braces.parse(input, options);
|
|
1403
|
+
return compile(input, options);
|
|
1431
1404
|
};
|
|
1432
1405
|
/**
|
|
1433
1406
|
* Expands a brace pattern into an array. This method is called by the
|
|
@@ -1445,11 +1418,11 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1445
1418
|
* @return {Array} Returns an array of expanded values.
|
|
1446
1419
|
* @api public
|
|
1447
1420
|
*/
|
|
1448
|
-
braces.expand = (input, options
|
|
1449
|
-
if (typeof input === "string") input = braces.parse(input, options
|
|
1450
|
-
let result = expand(input, options
|
|
1451
|
-
if (options
|
|
1452
|
-
if (options
|
|
1421
|
+
braces.expand = (input, options = {}) => {
|
|
1422
|
+
if (typeof input === "string") input = braces.parse(input, options);
|
|
1423
|
+
let result = expand(input, options);
|
|
1424
|
+
if (options.noempty === true) result = result.filter(Boolean);
|
|
1425
|
+
if (options.nodupes === true) result = [...new Set(result)];
|
|
1453
1426
|
return result;
|
|
1454
1427
|
};
|
|
1455
1428
|
/**
|
|
@@ -1467,16 +1440,15 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1467
1440
|
* @return {Array} Returns an array of expanded values.
|
|
1468
1441
|
* @api public
|
|
1469
1442
|
*/
|
|
1470
|
-
braces.create = (input, options
|
|
1443
|
+
braces.create = (input, options = {}) => {
|
|
1471
1444
|
if (input === "" || input.length < 3) return [input];
|
|
1472
|
-
return options
|
|
1445
|
+
return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options);
|
|
1473
1446
|
};
|
|
1474
1447
|
/**
|
|
1475
1448
|
* Expose "braces"
|
|
1476
1449
|
*/
|
|
1477
1450
|
module.exports = braces;
|
|
1478
1451
|
}));
|
|
1479
|
-
|
|
1480
1452
|
//#endregion
|
|
1481
1453
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
1482
1454
|
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1529,28 +1501,24 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1529
1501
|
START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
|
|
1530
1502
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
1531
1503
|
};
|
|
1532
|
-
/**
|
|
1533
|
-
* POSIX Bracket Regex
|
|
1534
|
-
*/
|
|
1535
|
-
const POSIX_REGEX_SOURCE = {
|
|
1536
|
-
alnum: "a-zA-Z0-9",
|
|
1537
|
-
alpha: "a-zA-Z",
|
|
1538
|
-
ascii: "\\x00-\\x7F",
|
|
1539
|
-
blank: " \\t",
|
|
1540
|
-
cntrl: "\\x00-\\x1F\\x7F",
|
|
1541
|
-
digit: "0-9",
|
|
1542
|
-
graph: "\\x21-\\x7E",
|
|
1543
|
-
lower: "a-z",
|
|
1544
|
-
print: "\\x20-\\x7E ",
|
|
1545
|
-
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
1546
|
-
space: " \\t\\r\\n\\v\\f",
|
|
1547
|
-
upper: "A-Z",
|
|
1548
|
-
word: "A-Za-z0-9_",
|
|
1549
|
-
xdigit: "A-Fa-f0-9"
|
|
1550
|
-
};
|
|
1551
1504
|
module.exports = {
|
|
1552
1505
|
MAX_LENGTH: 1024 * 64,
|
|
1553
|
-
POSIX_REGEX_SOURCE
|
|
1506
|
+
POSIX_REGEX_SOURCE: {
|
|
1507
|
+
alnum: "a-zA-Z0-9",
|
|
1508
|
+
alpha: "a-zA-Z",
|
|
1509
|
+
ascii: "\\x00-\\x7F",
|
|
1510
|
+
blank: " \\t",
|
|
1511
|
+
cntrl: "\\x00-\\x1F\\x7F",
|
|
1512
|
+
digit: "0-9",
|
|
1513
|
+
graph: "\\x21-\\x7E",
|
|
1514
|
+
lower: "a-z",
|
|
1515
|
+
print: "\\x20-\\x7E ",
|
|
1516
|
+
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
1517
|
+
space: " \\t\\r\\n\\v\\f",
|
|
1518
|
+
upper: "A-Z",
|
|
1519
|
+
word: "A-Za-z0-9_",
|
|
1520
|
+
xdigit: "A-Fa-f0-9"
|
|
1521
|
+
},
|
|
1554
1522
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
1555
1523
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
1556
1524
|
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
@@ -1640,7 +1608,6 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1640
1608
|
}
|
|
1641
1609
|
};
|
|
1642
1610
|
}));
|
|
1643
|
-
|
|
1644
1611
|
//#endregion
|
|
1645
1612
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
1646
1613
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1662,8 +1629,8 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1662
1629
|
if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) return true;
|
|
1663
1630
|
return false;
|
|
1664
1631
|
};
|
|
1665
|
-
exports.isWindows = (options
|
|
1666
|
-
if (options
|
|
1632
|
+
exports.isWindows = (options) => {
|
|
1633
|
+
if (options && typeof options.windows === "boolean") return options.windows;
|
|
1667
1634
|
return win32 === true || path$7.sep === "\\";
|
|
1668
1635
|
};
|
|
1669
1636
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
@@ -1680,13 +1647,12 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1680
1647
|
}
|
|
1681
1648
|
return output;
|
|
1682
1649
|
};
|
|
1683
|
-
exports.wrapOutput = (input, state = {}, options
|
|
1684
|
-
let output = `${options
|
|
1650
|
+
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
1651
|
+
let output = `${options.contains ? "" : "^"}(?:${input})${options.contains ? "" : "$"}`;
|
|
1685
1652
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
1686
1653
|
return output;
|
|
1687
1654
|
};
|
|
1688
1655
|
}));
|
|
1689
|
-
|
|
1690
1656
|
//#endregion
|
|
1691
1657
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
|
|
1692
1658
|
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1714,8 +1680,8 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1714
1680
|
* @return {Object} Returns an object with tokens and regex source string.
|
|
1715
1681
|
* @api public
|
|
1716
1682
|
*/
|
|
1717
|
-
const scan = (input, options
|
|
1718
|
-
const opts = options
|
|
1683
|
+
const scan = (input, options) => {
|
|
1684
|
+
const opts = options || {};
|
|
1719
1685
|
const length = input.length - 1;
|
|
1720
1686
|
const scanToEnd = opts.parts === true || opts.scanToEnd === true;
|
|
1721
1687
|
const slashes = [];
|
|
@@ -1974,7 +1940,6 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1974
1940
|
};
|
|
1975
1941
|
module.exports = scan;
|
|
1976
1942
|
}));
|
|
1977
|
-
|
|
1978
1943
|
//#endregion
|
|
1979
1944
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
1980
1945
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1987,8 +1952,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1987
1952
|
/**
|
|
1988
1953
|
* Helpers
|
|
1989
1954
|
*/
|
|
1990
|
-
const expandRange = (args, options
|
|
1991
|
-
if (typeof options
|
|
1955
|
+
const expandRange = (args, options) => {
|
|
1956
|
+
if (typeof options.expandRange === "function") return options.expandRange(...args, options);
|
|
1992
1957
|
args.sort();
|
|
1993
1958
|
const value = `[${args.join("-")}]`;
|
|
1994
1959
|
try {
|
|
@@ -2010,10 +1975,10 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2010
1975
|
* @param {Object} options
|
|
2011
1976
|
* @return {Object}
|
|
2012
1977
|
*/
|
|
2013
|
-
const parse = (input, options
|
|
1978
|
+
const parse = (input, options) => {
|
|
2014
1979
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
2015
1980
|
input = REPLACEMENTS[input] || input;
|
|
2016
|
-
const opts = { ...options
|
|
1981
|
+
const opts = { ...options };
|
|
2017
1982
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
2018
1983
|
let len = input.length;
|
|
2019
1984
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
@@ -2024,12 +1989,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2024
1989
|
};
|
|
2025
1990
|
const tokens = [bos];
|
|
2026
1991
|
const capture = opts.capture ? "" : "?:";
|
|
2027
|
-
const win32 = utils.isWindows(options
|
|
1992
|
+
const win32 = utils.isWindows(options);
|
|
2028
1993
|
const PLATFORM_CHARS = constants.globChars(win32);
|
|
2029
1994
|
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
2030
1995
|
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;
|
|
2031
|
-
const globstar = (opts
|
|
2032
|
-
return `(${capture}(?:(?!${START_ANCHOR}${opts
|
|
1996
|
+
const globstar = (opts) => {
|
|
1997
|
+
return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2033
1998
|
};
|
|
2034
1999
|
const nodot = opts.dot ? "" : NO_DOT;
|
|
2035
2000
|
const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
|
|
@@ -2067,8 +2032,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2067
2032
|
const peek = state.peek = (n = 1) => input[state.index + n];
|
|
2068
2033
|
const advance = state.advance = () => input[++state.index] || "";
|
|
2069
2034
|
const remaining = () => input.slice(state.index + 1);
|
|
2070
|
-
const consume = (value
|
|
2071
|
-
state.consumed += value
|
|
2035
|
+
const consume = (value = "", num = 0) => {
|
|
2036
|
+
state.consumed += value;
|
|
2072
2037
|
state.index += num;
|
|
2073
2038
|
};
|
|
2074
2039
|
const append = (token) => {
|
|
@@ -2125,9 +2090,9 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2125
2090
|
tokens.push(tok);
|
|
2126
2091
|
prev = tok;
|
|
2127
2092
|
};
|
|
2128
|
-
const extglobOpen = (type, value
|
|
2093
|
+
const extglobOpen = (type, value) => {
|
|
2129
2094
|
const token = {
|
|
2130
|
-
...EXTGLOB_CHARS[value
|
|
2095
|
+
...EXTGLOB_CHARS[value],
|
|
2131
2096
|
conditions: 1,
|
|
2132
2097
|
inner: ""
|
|
2133
2098
|
};
|
|
@@ -2138,7 +2103,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2138
2103
|
increment("parens");
|
|
2139
2104
|
push({
|
|
2140
2105
|
type,
|
|
2141
|
-
value
|
|
2106
|
+
value,
|
|
2142
2107
|
output: state.output ? "" : ONE_CHAR
|
|
2143
2108
|
});
|
|
2144
2109
|
push({
|
|
@@ -2157,7 +2122,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2157
2122
|
if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
|
|
2158
2123
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
2159
2124
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse(rest, {
|
|
2160
|
-
...options
|
|
2125
|
+
...options,
|
|
2161
2126
|
fastpaths: false
|
|
2162
2127
|
}).output})${extglobStar})`;
|
|
2163
2128
|
if (token.prev.type === "bos") state.negatedExtglob = true;
|
|
@@ -2200,7 +2165,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2200
2165
|
state.output = input;
|
|
2201
2166
|
return state;
|
|
2202
2167
|
}
|
|
2203
|
-
state.output = utils.wrapOutput(output, state, options
|
|
2168
|
+
state.output = utils.wrapOutput(output, state, options);
|
|
2204
2169
|
return state;
|
|
2205
2170
|
}
|
|
2206
2171
|
/**
|
|
@@ -2790,13 +2755,13 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2790
2755
|
* This can significantly speed up processing and has very little downside
|
|
2791
2756
|
* impact when none of the fast paths match.
|
|
2792
2757
|
*/
|
|
2793
|
-
parse.fastpaths = (input, options
|
|
2794
|
-
const opts = { ...options
|
|
2758
|
+
parse.fastpaths = (input, options) => {
|
|
2759
|
+
const opts = { ...options };
|
|
2795
2760
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
2796
2761
|
const len = input.length;
|
|
2797
2762
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
2798
2763
|
input = REPLACEMENTS[input] || input;
|
|
2799
|
-
const win32 = utils.isWindows(options
|
|
2764
|
+
const win32 = utils.isWindows(options);
|
|
2800
2765
|
const { DOT_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR } = constants.globChars(win32);
|
|
2801
2766
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
2802
2767
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
@@ -2807,9 +2772,9 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2807
2772
|
};
|
|
2808
2773
|
let star = opts.bash === true ? ".*?" : STAR;
|
|
2809
2774
|
if (opts.capture) star = `(${star})`;
|
|
2810
|
-
const globstar = (opts
|
|
2811
|
-
if (opts
|
|
2812
|
-
return `(${capture}(?:(?!${START_ANCHOR}${opts
|
|
2775
|
+
const globstar = (opts) => {
|
|
2776
|
+
if (opts.noglobstar === true) return star;
|
|
2777
|
+
return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2813
2778
|
};
|
|
2814
2779
|
const create = (str) => {
|
|
2815
2780
|
switch (str) {
|
|
@@ -2824,9 +2789,9 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2824
2789
|
default: {
|
|
2825
2790
|
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
2826
2791
|
if (!match) return;
|
|
2827
|
-
const source
|
|
2828
|
-
if (!source
|
|
2829
|
-
return source
|
|
2792
|
+
const source = create(match[1]);
|
|
2793
|
+
if (!source) return;
|
|
2794
|
+
return source + DOT_LITERAL + match[2];
|
|
2830
2795
|
}
|
|
2831
2796
|
}
|
|
2832
2797
|
};
|
|
@@ -2836,7 +2801,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2836
2801
|
};
|
|
2837
2802
|
module.exports = parse;
|
|
2838
2803
|
}));
|
|
2839
|
-
|
|
2840
2804
|
//#endregion
|
|
2841
2805
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
|
|
2842
2806
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -2867,13 +2831,13 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2867
2831
|
* @return {Function=} Returns a matcher function.
|
|
2868
2832
|
* @api public
|
|
2869
2833
|
*/
|
|
2870
|
-
const picomatch = (glob, options
|
|
2834
|
+
const picomatch = (glob, options, returnState = false) => {
|
|
2871
2835
|
if (Array.isArray(glob)) {
|
|
2872
|
-
const fns = glob.map((input) => picomatch(input, options
|
|
2836
|
+
const fns = glob.map((input) => picomatch(input, options, returnState));
|
|
2873
2837
|
const arrayMatcher = (str) => {
|
|
2874
2838
|
for (const isMatch of fns) {
|
|
2875
|
-
const state
|
|
2876
|
-
if (state
|
|
2839
|
+
const state = isMatch(str);
|
|
2840
|
+
if (state) return state;
|
|
2877
2841
|
}
|
|
2878
2842
|
return false;
|
|
2879
2843
|
};
|
|
@@ -2881,15 +2845,15 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2881
2845
|
}
|
|
2882
2846
|
const isState = isObject(glob) && glob.tokens && glob.input;
|
|
2883
2847
|
if (glob === "" || typeof glob !== "string" && !isState) throw new TypeError("Expected pattern to be a non-empty string");
|
|
2884
|
-
const opts = options
|
|
2885
|
-
const posix = utils.isWindows(options
|
|
2886
|
-
const regex = isState ? picomatch.compileRe(glob, options
|
|
2848
|
+
const opts = options || {};
|
|
2849
|
+
const posix = utils.isWindows(options);
|
|
2850
|
+
const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
|
|
2887
2851
|
const state = regex.state;
|
|
2888
2852
|
delete regex.state;
|
|
2889
2853
|
let isIgnored = () => false;
|
|
2890
2854
|
if (opts.ignore) {
|
|
2891
2855
|
const ignoreOpts = {
|
|
2892
|
-
...options
|
|
2856
|
+
...options,
|
|
2893
2857
|
ignore: null,
|
|
2894
2858
|
onMatch: null,
|
|
2895
2859
|
onResult: null
|
|
@@ -2897,7 +2861,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2897
2861
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
2898
2862
|
}
|
|
2899
2863
|
const matcher = (input, returnObject = false) => {
|
|
2900
|
-
const { isMatch, match, output } = picomatch.test(input, regex, options
|
|
2864
|
+
const { isMatch, match, output } = picomatch.test(input, regex, options, {
|
|
2901
2865
|
glob,
|
|
2902
2866
|
posix
|
|
2903
2867
|
});
|
|
@@ -2943,13 +2907,13 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2943
2907
|
* @return {Object} Returns an object with matching info.
|
|
2944
2908
|
* @api public
|
|
2945
2909
|
*/
|
|
2946
|
-
picomatch.test = (input, regex, options
|
|
2910
|
+
picomatch.test = (input, regex, options, { glob, posix } = {}) => {
|
|
2947
2911
|
if (typeof input !== "string") throw new TypeError("Expected input to be a string");
|
|
2948
2912
|
if (input === "") return {
|
|
2949
2913
|
isMatch: false,
|
|
2950
2914
|
output: ""
|
|
2951
2915
|
};
|
|
2952
|
-
const opts = options
|
|
2916
|
+
const opts = options || {};
|
|
2953
2917
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
2954
2918
|
let match = input === glob;
|
|
2955
2919
|
let output = match && format ? format(input) : input;
|
|
@@ -2957,7 +2921,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2957
2921
|
output = format ? format(input) : input;
|
|
2958
2922
|
match = output === glob;
|
|
2959
2923
|
}
|
|
2960
|
-
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options
|
|
2924
|
+
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
|
|
2961
2925
|
else match = regex.exec(output);
|
|
2962
2926
|
return {
|
|
2963
2927
|
isMatch: Boolean(match),
|
|
@@ -2978,8 +2942,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2978
2942
|
* @return {Boolean}
|
|
2979
2943
|
* @api public
|
|
2980
2944
|
*/
|
|
2981
|
-
picomatch.matchBase = (input, glob, options
|
|
2982
|
-
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options
|
|
2945
|
+
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
2946
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$6.basename(input));
|
|
2983
2947
|
};
|
|
2984
2948
|
/**
|
|
2985
2949
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -2997,7 +2961,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2997
2961
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
2998
2962
|
* @api public
|
|
2999
2963
|
*/
|
|
3000
|
-
picomatch.isMatch = (str, patterns, options
|
|
2964
|
+
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
3001
2965
|
/**
|
|
3002
2966
|
* Parse a glob pattern to create the source string for a regular
|
|
3003
2967
|
* expression.
|
|
@@ -3011,10 +2975,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3011
2975
|
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
3012
2976
|
* @api public
|
|
3013
2977
|
*/
|
|
3014
|
-
picomatch.parse = (pattern, options
|
|
3015
|
-
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options
|
|
2978
|
+
picomatch.parse = (pattern, options) => {
|
|
2979
|
+
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
|
|
3016
2980
|
return parse(pattern, {
|
|
3017
|
-
...options
|
|
2981
|
+
...options,
|
|
3018
2982
|
fastpaths: false
|
|
3019
2983
|
});
|
|
3020
2984
|
};
|
|
@@ -3044,7 +3008,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3044
3008
|
* @return {Object} Returns an object with
|
|
3045
3009
|
* @api public
|
|
3046
3010
|
*/
|
|
3047
|
-
picomatch.scan = (input, options
|
|
3011
|
+
picomatch.scan = (input, options) => scan(input, options);
|
|
3048
3012
|
/**
|
|
3049
3013
|
* Compile a regular expression from the `state` object returned by the
|
|
3050
3014
|
* [parse()](#parse) method.
|
|
@@ -3056,14 +3020,14 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3056
3020
|
* @return {RegExp}
|
|
3057
3021
|
* @api public
|
|
3058
3022
|
*/
|
|
3059
|
-
picomatch.compileRe = (state, options
|
|
3023
|
+
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
3060
3024
|
if (returnOutput === true) return state.output;
|
|
3061
|
-
const opts = options
|
|
3025
|
+
const opts = options || {};
|
|
3062
3026
|
const prepend = opts.contains ? "" : "^";
|
|
3063
3027
|
const append = opts.contains ? "" : "$";
|
|
3064
3028
|
let source = `${prepend}(?:${state.output})${append}`;
|
|
3065
3029
|
if (state && state.negated === true) source = `^(?!${source}).*$`;
|
|
3066
|
-
const regex = picomatch.toRegex(source, options
|
|
3030
|
+
const regex = picomatch.toRegex(source, options);
|
|
3067
3031
|
if (returnState === true) regex.state = state;
|
|
3068
3032
|
return regex;
|
|
3069
3033
|
};
|
|
@@ -3085,15 +3049,15 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3085
3049
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
3086
3050
|
* @api public
|
|
3087
3051
|
*/
|
|
3088
|
-
picomatch.makeRe = (input, options
|
|
3052
|
+
picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
|
3089
3053
|
if (!input || typeof input !== "string") throw new TypeError("Expected a non-empty string");
|
|
3090
3054
|
let parsed = {
|
|
3091
3055
|
negated: false,
|
|
3092
3056
|
fastpaths: true
|
|
3093
3057
|
};
|
|
3094
|
-
if (options
|
|
3095
|
-
if (!parsed.output) parsed = parse(input, options
|
|
3096
|
-
return picomatch.compileRe(parsed, options
|
|
3058
|
+
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse.fastpaths(input, options);
|
|
3059
|
+
if (!parsed.output) parsed = parse(input, options);
|
|
3060
|
+
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
3097
3061
|
};
|
|
3098
3062
|
/**
|
|
3099
3063
|
* Create a regular expression from the given regex source string.
|
|
@@ -3111,12 +3075,12 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3111
3075
|
* @return {RegExp}
|
|
3112
3076
|
* @api public
|
|
3113
3077
|
*/
|
|
3114
|
-
picomatch.toRegex = (source, options
|
|
3078
|
+
picomatch.toRegex = (source, options) => {
|
|
3115
3079
|
try {
|
|
3116
|
-
const opts = options
|
|
3080
|
+
const opts = options || {};
|
|
3117
3081
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
3118
3082
|
} catch (err) {
|
|
3119
|
-
if (options
|
|
3083
|
+
if (options && options.debug === true) throw err;
|
|
3120
3084
|
return /$^/;
|
|
3121
3085
|
}
|
|
3122
3086
|
};
|
|
@@ -3130,13 +3094,11 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3130
3094
|
*/
|
|
3131
3095
|
module.exports = picomatch;
|
|
3132
3096
|
}));
|
|
3133
|
-
|
|
3134
3097
|
//#endregion
|
|
3135
3098
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js
|
|
3136
3099
|
var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3137
3100
|
module.exports = require_picomatch$1();
|
|
3138
3101
|
}));
|
|
3139
|
-
|
|
3140
3102
|
//#endregion
|
|
3141
3103
|
//#region ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
3142
3104
|
var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3166,7 +3128,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3166
3128
|
* @summary false
|
|
3167
3129
|
* @api public
|
|
3168
3130
|
*/
|
|
3169
|
-
const micromatch = (list, patterns, options
|
|
3131
|
+
const micromatch = (list, patterns, options) => {
|
|
3170
3132
|
patterns = [].concat(patterns);
|
|
3171
3133
|
list = [].concat(list);
|
|
3172
3134
|
let omit = /* @__PURE__ */ new Set();
|
|
@@ -3175,11 +3137,11 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3175
3137
|
let negatives = 0;
|
|
3176
3138
|
let onResult = (state) => {
|
|
3177
3139
|
items.add(state.output);
|
|
3178
|
-
if (options
|
|
3140
|
+
if (options && options.onResult) options.onResult(state);
|
|
3179
3141
|
};
|
|
3180
3142
|
for (let i = 0; i < patterns.length; i++) {
|
|
3181
3143
|
let isMatch = picomatch(String(patterns[i]), {
|
|
3182
|
-
...options
|
|
3144
|
+
...options,
|
|
3183
3145
|
onResult
|
|
3184
3146
|
}, true);
|
|
3185
3147
|
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
@@ -3195,9 +3157,9 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3195
3157
|
}
|
|
3196
3158
|
}
|
|
3197
3159
|
let matches = (negatives === patterns.length ? [...items] : [...keep]).filter((item) => !omit.has(item));
|
|
3198
|
-
if (options
|
|
3199
|
-
if (options
|
|
3200
|
-
if (options
|
|
3160
|
+
if (options && matches.length === 0) {
|
|
3161
|
+
if (options.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
3162
|
+
if (options.nonull === true || options.nullglob === true) return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
|
|
3201
3163
|
}
|
|
3202
3164
|
return matches;
|
|
3203
3165
|
};
|
|
@@ -3223,7 +3185,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3223
3185
|
* @return {Function} Returns a matcher function.
|
|
3224
3186
|
* @api public
|
|
3225
3187
|
*/
|
|
3226
|
-
micromatch.matcher = (pattern, options
|
|
3188
|
+
micromatch.matcher = (pattern, options) => picomatch(pattern, options);
|
|
3227
3189
|
/**
|
|
3228
3190
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
3229
3191
|
*
|
|
@@ -3240,7 +3202,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3240
3202
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3241
3203
|
* @api public
|
|
3242
3204
|
*/
|
|
3243
|
-
micromatch.isMatch = (str, patterns, options
|
|
3205
|
+
micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
3244
3206
|
/**
|
|
3245
3207
|
* Backwards compatibility
|
|
3246
3208
|
*/
|
|
@@ -3261,16 +3223,16 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3261
3223
|
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
3262
3224
|
* @api public
|
|
3263
3225
|
*/
|
|
3264
|
-
micromatch.not = (list, patterns, options
|
|
3226
|
+
micromatch.not = (list, patterns, options = {}) => {
|
|
3265
3227
|
patterns = [].concat(patterns).map(String);
|
|
3266
3228
|
let result = /* @__PURE__ */ new Set();
|
|
3267
3229
|
let items = [];
|
|
3268
3230
|
let onResult = (state) => {
|
|
3269
|
-
if (options
|
|
3231
|
+
if (options.onResult) options.onResult(state);
|
|
3270
3232
|
items.push(state.output);
|
|
3271
3233
|
};
|
|
3272
3234
|
let matches = new Set(micromatch(list, patterns, {
|
|
3273
|
-
...options
|
|
3235
|
+
...options,
|
|
3274
3236
|
onResult
|
|
3275
3237
|
}));
|
|
3276
3238
|
for (let item of items) if (!matches.has(item)) result.add(item);
|
|
@@ -3295,15 +3257,15 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3295
3257
|
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
3296
3258
|
* @api public
|
|
3297
3259
|
*/
|
|
3298
|
-
micromatch.contains = (str, pattern, options
|
|
3260
|
+
micromatch.contains = (str, pattern, options) => {
|
|
3299
3261
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
3300
|
-
if (Array.isArray(pattern)) return pattern.some((p) => micromatch.contains(str, p, options
|
|
3262
|
+
if (Array.isArray(pattern)) return pattern.some((p) => micromatch.contains(str, p, options));
|
|
3301
3263
|
if (typeof pattern === "string") {
|
|
3302
3264
|
if (isEmptyString(str) || isEmptyString(pattern)) return false;
|
|
3303
3265
|
if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) return true;
|
|
3304
3266
|
}
|
|
3305
3267
|
return micromatch.isMatch(str, pattern, {
|
|
3306
|
-
...options
|
|
3268
|
+
...options,
|
|
3307
3269
|
contains: true
|
|
3308
3270
|
});
|
|
3309
3271
|
};
|
|
@@ -3326,11 +3288,11 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3326
3288
|
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
3327
3289
|
* @api public
|
|
3328
3290
|
*/
|
|
3329
|
-
micromatch.matchKeys = (obj, patterns, options
|
|
3291
|
+
micromatch.matchKeys = (obj, patterns, options) => {
|
|
3330
3292
|
if (!utils.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
3331
|
-
let keys
|
|
3293
|
+
let keys = micromatch(Object.keys(obj), patterns, options);
|
|
3332
3294
|
let res = {};
|
|
3333
|
-
for (let key of keys
|
|
3295
|
+
for (let key of keys) res[key] = obj[key];
|
|
3334
3296
|
return res;
|
|
3335
3297
|
};
|
|
3336
3298
|
/**
|
|
@@ -3351,10 +3313,10 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3351
3313
|
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
3352
3314
|
* @api public
|
|
3353
3315
|
*/
|
|
3354
|
-
micromatch.some = (list, patterns, options
|
|
3316
|
+
micromatch.some = (list, patterns, options) => {
|
|
3355
3317
|
let items = [].concat(list);
|
|
3356
3318
|
for (let pattern of [].concat(patterns)) {
|
|
3357
|
-
let isMatch = picomatch(String(pattern), options
|
|
3319
|
+
let isMatch = picomatch(String(pattern), options);
|
|
3358
3320
|
if (items.some((item) => isMatch(item))) return true;
|
|
3359
3321
|
}
|
|
3360
3322
|
return false;
|
|
@@ -3382,10 +3344,10 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3382
3344
|
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
3383
3345
|
* @api public
|
|
3384
3346
|
*/
|
|
3385
|
-
micromatch.every = (list, patterns, options
|
|
3347
|
+
micromatch.every = (list, patterns, options) => {
|
|
3386
3348
|
let items = [].concat(list);
|
|
3387
3349
|
for (let pattern of [].concat(patterns)) {
|
|
3388
|
-
let isMatch = picomatch(String(pattern), options
|
|
3350
|
+
let isMatch = picomatch(String(pattern), options);
|
|
3389
3351
|
if (!items.every((item) => isMatch(item))) return false;
|
|
3390
3352
|
}
|
|
3391
3353
|
return true;
|
|
@@ -3416,9 +3378,9 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3416
3378
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3417
3379
|
* @api public
|
|
3418
3380
|
*/
|
|
3419
|
-
micromatch.all = (str, patterns, options
|
|
3381
|
+
micromatch.all = (str, patterns, options) => {
|
|
3420
3382
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
3421
|
-
return [].concat(patterns).every((p) => picomatch(p, options
|
|
3383
|
+
return [].concat(patterns).every((p) => picomatch(p, options)(str));
|
|
3422
3384
|
};
|
|
3423
3385
|
/**
|
|
3424
3386
|
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
|
@@ -3438,10 +3400,10 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3438
3400
|
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
3439
3401
|
* @api public
|
|
3440
3402
|
*/
|
|
3441
|
-
micromatch.capture = (glob, input, options
|
|
3442
|
-
let posix = utils.isWindows(options
|
|
3403
|
+
micromatch.capture = (glob, input, options) => {
|
|
3404
|
+
let posix = utils.isWindows(options);
|
|
3443
3405
|
let match = picomatch.makeRe(String(glob), {
|
|
3444
|
-
...options
|
|
3406
|
+
...options,
|
|
3445
3407
|
capture: true
|
|
3446
3408
|
}).exec(posix ? utils.toPosixSlashes(input) : input);
|
|
3447
3409
|
if (match) return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
@@ -3489,9 +3451,9 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3489
3451
|
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
3490
3452
|
* @api public
|
|
3491
3453
|
*/
|
|
3492
|
-
micromatch.parse = (patterns, options
|
|
3454
|
+
micromatch.parse = (patterns, options) => {
|
|
3493
3455
|
let res = [];
|
|
3494
|
-
for (let pattern of [].concat(patterns || [])) for (let str of braces(String(pattern), options
|
|
3456
|
+
for (let pattern of [].concat(patterns || [])) for (let str of braces(String(pattern), options)) res.push(picomatch.parse(str, options));
|
|
3495
3457
|
return res;
|
|
3496
3458
|
};
|
|
3497
3459
|
/**
|
|
@@ -3510,18 +3472,18 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3510
3472
|
* @return {Array}
|
|
3511
3473
|
* @api public
|
|
3512
3474
|
*/
|
|
3513
|
-
micromatch.braces = (pattern, options
|
|
3475
|
+
micromatch.braces = (pattern, options) => {
|
|
3514
3476
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3515
|
-
if (options
|
|
3516
|
-
return braces(pattern, options
|
|
3477
|
+
if (options && options.nobrace === true || !hasBraces(pattern)) return [pattern];
|
|
3478
|
+
return braces(pattern, options);
|
|
3517
3479
|
};
|
|
3518
3480
|
/**
|
|
3519
3481
|
* Expand braces
|
|
3520
3482
|
*/
|
|
3521
|
-
micromatch.braceExpand = (pattern, options
|
|
3483
|
+
micromatch.braceExpand = (pattern, options) => {
|
|
3522
3484
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3523
3485
|
return micromatch.braces(pattern, {
|
|
3524
|
-
...options
|
|
3486
|
+
...options,
|
|
3525
3487
|
expand: true
|
|
3526
3488
|
});
|
|
3527
3489
|
};
|
|
@@ -3531,7 +3493,6 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3531
3493
|
micromatch.hasBraces = hasBraces;
|
|
3532
3494
|
module.exports = micromatch;
|
|
3533
3495
|
}));
|
|
3534
|
-
|
|
3535
3496
|
//#endregion
|
|
3536
3497
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
3537
3498
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3552,11 +3513,11 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3552
3513
|
* The latter is due to the presence of the device path at the beginning of the UNC path.
|
|
3553
3514
|
*/
|
|
3554
3515
|
const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
3555
|
-
function isStaticPattern(pattern, options
|
|
3556
|
-
return !isDynamicPattern(pattern, options
|
|
3516
|
+
function isStaticPattern(pattern, options = {}) {
|
|
3517
|
+
return !isDynamicPattern(pattern, options);
|
|
3557
3518
|
}
|
|
3558
3519
|
exports.isStaticPattern = isStaticPattern;
|
|
3559
|
-
function isDynamicPattern(pattern, options
|
|
3520
|
+
function isDynamicPattern(pattern, options = {}) {
|
|
3560
3521
|
/**
|
|
3561
3522
|
* A special case with an empty string is necessary for matching patterns that start with a forward slash.
|
|
3562
3523
|
* An empty string cannot be a dynamic pattern.
|
|
@@ -3567,10 +3528,10 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3567
3528
|
* When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check
|
|
3568
3529
|
* filepath directly (without read directory).
|
|
3569
3530
|
*/
|
|
3570
|
-
if (options
|
|
3531
|
+
if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) return true;
|
|
3571
3532
|
if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) return true;
|
|
3572
|
-
if (options
|
|
3573
|
-
if (options
|
|
3533
|
+
if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) return true;
|
|
3534
|
+
if (options.braceExpansion !== false && hasBraceExpansion(pattern)) return true;
|
|
3574
3535
|
return false;
|
|
3575
3536
|
}
|
|
3576
3537
|
exports.isDynamicPattern = isDynamicPattern;
|
|
@@ -3669,11 +3630,11 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3669
3630
|
/**
|
|
3670
3631
|
* Micromatch can return an empty string in the case of patterns like `{a,}`.
|
|
3671
3632
|
*/
|
|
3672
|
-
return patterns.filter((pattern
|
|
3633
|
+
return patterns.filter((pattern) => pattern !== "");
|
|
3673
3634
|
}
|
|
3674
3635
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
3675
|
-
function getPatternParts(pattern, options
|
|
3676
|
-
let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options
|
|
3636
|
+
function getPatternParts(pattern, options) {
|
|
3637
|
+
let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true }));
|
|
3677
3638
|
/**
|
|
3678
3639
|
* The scan method returns an empty array in some cases.
|
|
3679
3640
|
* See micromatch/picomatch#58 for more details.
|
|
@@ -3690,12 +3651,12 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3690
3651
|
return parts;
|
|
3691
3652
|
}
|
|
3692
3653
|
exports.getPatternParts = getPatternParts;
|
|
3693
|
-
function makeRe(pattern, options
|
|
3694
|
-
return micromatch.makeRe(pattern, options
|
|
3654
|
+
function makeRe(pattern, options) {
|
|
3655
|
+
return micromatch.makeRe(pattern, options);
|
|
3695
3656
|
}
|
|
3696
3657
|
exports.makeRe = makeRe;
|
|
3697
|
-
function convertPatternsToRe(patterns, options
|
|
3698
|
-
return patterns.map((pattern) => makeRe(pattern, options
|
|
3658
|
+
function convertPatternsToRe(patterns, options) {
|
|
3659
|
+
return patterns.map((pattern) => makeRe(pattern, options));
|
|
3699
3660
|
}
|
|
3700
3661
|
exports.convertPatternsToRe = convertPatternsToRe;
|
|
3701
3662
|
function matchAny(entry, patternsRe) {
|
|
@@ -3712,10 +3673,10 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3712
3673
|
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
3713
3674
|
function partitionAbsoluteAndRelative(patterns) {
|
|
3714
3675
|
const absolute = [];
|
|
3715
|
-
const relative
|
|
3676
|
+
const relative = [];
|
|
3716
3677
|
for (const pattern of patterns) if (isAbsolute(pattern)) absolute.push(pattern);
|
|
3717
|
-
else relative
|
|
3718
|
-
return [absolute, relative
|
|
3678
|
+
else relative.push(pattern);
|
|
3679
|
+
return [absolute, relative];
|
|
3719
3680
|
}
|
|
3720
3681
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
3721
3682
|
function isAbsolute(pattern) {
|
|
@@ -3723,7 +3684,6 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3723
3684
|
}
|
|
3724
3685
|
exports.isAbsolute = isAbsolute;
|
|
3725
3686
|
}));
|
|
3726
|
-
|
|
3727
3687
|
//#endregion
|
|
3728
3688
|
//#region ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
|
|
3729
3689
|
var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3734,16 +3694,16 @@ var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3734
3694
|
const streamsQueue = [];
|
|
3735
3695
|
const args = slice.call(arguments);
|
|
3736
3696
|
let merging = false;
|
|
3737
|
-
let options
|
|
3738
|
-
if (options
|
|
3739
|
-
else options
|
|
3740
|
-
const doEnd = options
|
|
3741
|
-
const doPipeError = options
|
|
3742
|
-
if (options
|
|
3743
|
-
if (options
|
|
3744
|
-
const mergedStream = PassThrough(options
|
|
3697
|
+
let options = args[args.length - 1];
|
|
3698
|
+
if (options && !Array.isArray(options) && options.pipe == null) args.pop();
|
|
3699
|
+
else options = {};
|
|
3700
|
+
const doEnd = options.end !== false;
|
|
3701
|
+
const doPipeError = options.pipeError === true;
|
|
3702
|
+
if (options.objectMode == null) options.objectMode = true;
|
|
3703
|
+
if (options.highWaterMark == null) options.highWaterMark = 64 * 1024;
|
|
3704
|
+
const mergedStream = PassThrough(options);
|
|
3745
3705
|
function addStream() {
|
|
3746
|
-
for (let i = 0, len = arguments.length; i < len; i++) streamsQueue.push(pauseStreams(arguments[i], options
|
|
3706
|
+
for (let i = 0, len = arguments.length; i < len; i++) streamsQueue.push(pauseStreams(arguments[i], options));
|
|
3747
3707
|
mergeStream();
|
|
3748
3708
|
return this;
|
|
3749
3709
|
}
|
|
@@ -3795,16 +3755,15 @@ var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3795
3755
|
if (args.length) addStream.apply(null, args);
|
|
3796
3756
|
return mergedStream;
|
|
3797
3757
|
}
|
|
3798
|
-
function pauseStreams(streams, options
|
|
3758
|
+
function pauseStreams(streams, options) {
|
|
3799
3759
|
if (!Array.isArray(streams)) {
|
|
3800
|
-
if (!streams._readableState && streams.pipe) streams = streams.pipe(PassThrough(options
|
|
3760
|
+
if (!streams._readableState && streams.pipe) streams = streams.pipe(PassThrough(options));
|
|
3801
3761
|
if (!streams._readableState || !streams.pause || !streams.pipe) throw new Error("Only readable stream can be merged.");
|
|
3802
3762
|
streams.pause();
|
|
3803
|
-
} else for (let i = 0, len = streams.length; i < len; i++) streams[i] = pauseStreams(streams[i], options
|
|
3763
|
+
} else for (let i = 0, len = streams.length; i < len; i++) streams[i] = pauseStreams(streams[i], options);
|
|
3804
3764
|
return streams;
|
|
3805
3765
|
}
|
|
3806
3766
|
}));
|
|
3807
|
-
|
|
3808
3767
|
//#endregion
|
|
3809
3768
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
3810
3769
|
var require_stream$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3825,7 +3784,6 @@ var require_stream$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3825
3784
|
streams.forEach((stream) => stream.emit("close"));
|
|
3826
3785
|
}
|
|
3827
3786
|
}));
|
|
3828
|
-
|
|
3829
3787
|
//#endregion
|
|
3830
3788
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
3831
3789
|
var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3840,28 +3798,19 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3840
3798
|
}
|
|
3841
3799
|
exports.isEmpty = isEmpty;
|
|
3842
3800
|
}));
|
|
3843
|
-
|
|
3844
3801
|
//#endregion
|
|
3845
3802
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
3846
3803
|
var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3847
3804
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3848
3805
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
3849
|
-
|
|
3850
|
-
exports.
|
|
3851
|
-
|
|
3852
|
-
exports.
|
|
3853
|
-
|
|
3854
|
-
exports.
|
|
3855
|
-
|
|
3856
|
-
exports.path = path;
|
|
3857
|
-
const pattern = require_pattern();
|
|
3858
|
-
exports.pattern = pattern;
|
|
3859
|
-
const stream = require_stream$3();
|
|
3860
|
-
exports.stream = stream;
|
|
3861
|
-
const string = require_string();
|
|
3862
|
-
exports.string = string;
|
|
3806
|
+
exports.array = require_array();
|
|
3807
|
+
exports.errno = require_errno();
|
|
3808
|
+
exports.fs = require_fs$3();
|
|
3809
|
+
exports.path = require_path();
|
|
3810
|
+
exports.pattern = require_pattern();
|
|
3811
|
+
exports.stream = require_stream$3();
|
|
3812
|
+
exports.string = require_string();
|
|
3863
3813
|
}));
|
|
3864
|
-
|
|
3865
3814
|
//#endregion
|
|
3866
3815
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
3867
3816
|
var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3956,14 +3905,13 @@ var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3956
3905
|
}
|
|
3957
3906
|
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
3958
3907
|
}));
|
|
3959
|
-
|
|
3960
3908
|
//#endregion
|
|
3961
3909
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
3962
3910
|
var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3963
3911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3964
3912
|
exports.read = void 0;
|
|
3965
|
-
function read(path
|
|
3966
|
-
settings.fs.lstat(path
|
|
3913
|
+
function read(path, settings, callback) {
|
|
3914
|
+
settings.fs.lstat(path, (lstatError, lstat) => {
|
|
3967
3915
|
if (lstatError !== null) {
|
|
3968
3916
|
callFailureCallback(callback, lstatError);
|
|
3969
3917
|
return;
|
|
@@ -3972,7 +3920,7 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3972
3920
|
callSuccessCallback(callback, lstat);
|
|
3973
3921
|
return;
|
|
3974
3922
|
}
|
|
3975
|
-
settings.fs.stat(path
|
|
3923
|
+
settings.fs.stat(path, (statError, stat) => {
|
|
3976
3924
|
if (statError !== null) {
|
|
3977
3925
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
3978
3926
|
callFailureCallback(callback, statError);
|
|
@@ -3994,17 +3942,16 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3994
3942
|
callback(null, result);
|
|
3995
3943
|
}
|
|
3996
3944
|
}));
|
|
3997
|
-
|
|
3998
3945
|
//#endregion
|
|
3999
3946
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
4000
3947
|
var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4001
3948
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4002
3949
|
exports.read = void 0;
|
|
4003
|
-
function read(path
|
|
4004
|
-
const lstat = settings.fs.lstatSync(path
|
|
3950
|
+
function read(path, settings) {
|
|
3951
|
+
const lstat = settings.fs.lstatSync(path);
|
|
4005
3952
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
|
|
4006
3953
|
try {
|
|
4007
|
-
const stat = settings.fs.statSync(path
|
|
3954
|
+
const stat = settings.fs.statSync(path);
|
|
4008
3955
|
if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
|
|
4009
3956
|
return stat;
|
|
4010
3957
|
} catch (error) {
|
|
@@ -4014,7 +3961,6 @@ var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4014
3961
|
}
|
|
4015
3962
|
exports.read = read;
|
|
4016
3963
|
}));
|
|
4017
|
-
|
|
4018
3964
|
//#endregion
|
|
4019
3965
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js
|
|
4020
3966
|
var require_fs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4033,7 +3979,6 @@ var require_fs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4033
3979
|
}
|
|
4034
3980
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4035
3981
|
}));
|
|
4036
|
-
|
|
4037
3982
|
//#endregion
|
|
4038
3983
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
|
|
4039
3984
|
var require_settings$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4053,7 +3998,6 @@ var require_settings$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4053
3998
|
};
|
|
4054
3999
|
exports.default = Settings;
|
|
4055
4000
|
}));
|
|
4056
|
-
|
|
4057
4001
|
//#endregion
|
|
4058
4002
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
|
|
4059
4003
|
var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4063,17 +4007,17 @@ var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4063
4007
|
const sync = require_sync$5();
|
|
4064
4008
|
const settings_1 = require_settings$3();
|
|
4065
4009
|
exports.Settings = settings_1.default;
|
|
4066
|
-
function stat(path
|
|
4010
|
+
function stat(path, optionsOrSettingsOrCallback, callback) {
|
|
4067
4011
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4068
|
-
async.read(path
|
|
4012
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
4069
4013
|
return;
|
|
4070
4014
|
}
|
|
4071
|
-
async.read(path
|
|
4015
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4072
4016
|
}
|
|
4073
4017
|
exports.stat = stat;
|
|
4074
|
-
function statSync(path
|
|
4018
|
+
function statSync(path, optionsOrSettings) {
|
|
4075
4019
|
const settings = getSettings(optionsOrSettings);
|
|
4076
|
-
return sync.read(path
|
|
4020
|
+
return sync.read(path, settings);
|
|
4077
4021
|
}
|
|
4078
4022
|
exports.statSync = statSync;
|
|
4079
4023
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -4081,7 +4025,6 @@ var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4081
4025
|
return new settings_1.default(settingsOrOptions);
|
|
4082
4026
|
}
|
|
4083
4027
|
}));
|
|
4084
|
-
|
|
4085
4028
|
//#endregion
|
|
4086
4029
|
//#region ../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
4087
4030
|
var require_queue_microtask = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4091,7 +4034,6 @@ var require_queue_microtask = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
4091
4034
|
throw err;
|
|
4092
4035
|
}, 0));
|
|
4093
4036
|
}));
|
|
4094
|
-
|
|
4095
4037
|
//#endregion
|
|
4096
4038
|
//#region ../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
4097
4039
|
var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4099,15 +4041,15 @@ var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4099
4041
|
module.exports = runParallel;
|
|
4100
4042
|
const queueMicrotask = require_queue_microtask();
|
|
4101
4043
|
function runParallel(tasks, cb) {
|
|
4102
|
-
let results, pending, keys
|
|
4044
|
+
let results, pending, keys;
|
|
4103
4045
|
let isSync = true;
|
|
4104
4046
|
if (Array.isArray(tasks)) {
|
|
4105
4047
|
results = [];
|
|
4106
4048
|
pending = tasks.length;
|
|
4107
4049
|
} else {
|
|
4108
|
-
keys
|
|
4050
|
+
keys = Object.keys(tasks);
|
|
4109
4051
|
results = {};
|
|
4110
|
-
pending = keys
|
|
4052
|
+
pending = keys.length;
|
|
4111
4053
|
}
|
|
4112
4054
|
function done(err) {
|
|
4113
4055
|
function end() {
|
|
@@ -4122,7 +4064,7 @@ var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4122
4064
|
if (--pending === 0 || err) done(err);
|
|
4123
4065
|
}
|
|
4124
4066
|
if (!pending) done(null);
|
|
4125
|
-
else if (keys
|
|
4067
|
+
else if (keys) keys.forEach(function(key) {
|
|
4126
4068
|
tasks[key](function(err, result) {
|
|
4127
4069
|
each(key, err, result);
|
|
4128
4070
|
});
|
|
@@ -4135,7 +4077,6 @@ var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4135
4077
|
isSync = false;
|
|
4136
4078
|
}
|
|
4137
4079
|
}));
|
|
4138
|
-
|
|
4139
4080
|
//#endregion
|
|
4140
4081
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
4141
4082
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4146,15 +4087,11 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4146
4087
|
const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
4147
4088
|
const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
|
|
4148
4089
|
const SUPPORTED_MAJOR_VERSION = 10;
|
|
4149
|
-
const SUPPORTED_MINOR_VERSION = 10;
|
|
4150
|
-
const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
|
|
4151
|
-
const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
|
|
4152
4090
|
/**
|
|
4153
4091
|
* IS `true` for Node.js 10.10 and greater.
|
|
4154
4092
|
*/
|
|
4155
|
-
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES =
|
|
4093
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION || MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= 10;
|
|
4156
4094
|
}));
|
|
4157
|
-
|
|
4158
4095
|
//#endregion
|
|
4159
4096
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
4160
4097
|
var require_fs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4177,16 +4114,13 @@ var require_fs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4177
4114
|
}
|
|
4178
4115
|
exports.createDirentFromStats = createDirentFromStats;
|
|
4179
4116
|
}));
|
|
4180
|
-
|
|
4181
4117
|
//#endregion
|
|
4182
4118
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
4183
4119
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4184
4120
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4185
4121
|
exports.fs = void 0;
|
|
4186
|
-
|
|
4187
|
-
exports.fs = fs;
|
|
4122
|
+
exports.fs = require_fs$1();
|
|
4188
4123
|
}));
|
|
4189
|
-
|
|
4190
4124
|
//#endregion
|
|
4191
4125
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
4192
4126
|
var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4201,7 +4135,6 @@ var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4201
4135
|
}
|
|
4202
4136
|
exports.joinPathSegments = joinPathSegments;
|
|
4203
4137
|
}));
|
|
4204
|
-
|
|
4205
4138
|
//#endregion
|
|
4206
4139
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
4207
4140
|
var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4272,16 +4205,16 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4272
4205
|
return;
|
|
4273
4206
|
}
|
|
4274
4207
|
rpl(names.map((name) => {
|
|
4275
|
-
const path
|
|
4208
|
+
const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4276
4209
|
return (done) => {
|
|
4277
|
-
fsStat.stat(path
|
|
4210
|
+
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
|
4278
4211
|
if (error !== null) {
|
|
4279
4212
|
done(error);
|
|
4280
4213
|
return;
|
|
4281
4214
|
}
|
|
4282
4215
|
const entry = {
|
|
4283
4216
|
name,
|
|
4284
|
-
path
|
|
4217
|
+
path,
|
|
4285
4218
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
4286
4219
|
};
|
|
4287
4220
|
if (settings.stats) entry.stats = stats;
|
|
@@ -4305,7 +4238,6 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4305
4238
|
callback(null, result);
|
|
4306
4239
|
}
|
|
4307
4240
|
}));
|
|
4308
|
-
|
|
4309
4241
|
//#endregion
|
|
4310
4242
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
4311
4243
|
var require_sync$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4352,7 +4284,6 @@ var require_sync$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4352
4284
|
}
|
|
4353
4285
|
exports.readdir = readdir;
|
|
4354
4286
|
}));
|
|
4355
|
-
|
|
4356
4287
|
//#endregion
|
|
4357
4288
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js
|
|
4358
4289
|
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4373,7 +4304,6 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4373
4304
|
}
|
|
4374
4305
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4375
4306
|
}));
|
|
4376
|
-
|
|
4377
4307
|
//#endregion
|
|
4378
4308
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
|
|
4379
4309
|
var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4401,7 +4331,6 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4401
4331
|
};
|
|
4402
4332
|
exports.default = Settings;
|
|
4403
4333
|
}));
|
|
4404
|
-
|
|
4405
4334
|
//#endregion
|
|
4406
4335
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
|
|
4407
4336
|
var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4411,17 +4340,17 @@ var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4411
4340
|
const sync = require_sync$4();
|
|
4412
4341
|
const settings_1 = require_settings$2();
|
|
4413
4342
|
exports.Settings = settings_1.default;
|
|
4414
|
-
function scandir(path
|
|
4343
|
+
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
4415
4344
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4416
|
-
async.read(path
|
|
4345
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
4417
4346
|
return;
|
|
4418
4347
|
}
|
|
4419
|
-
async.read(path
|
|
4348
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4420
4349
|
}
|
|
4421
4350
|
exports.scandir = scandir;
|
|
4422
|
-
function scandirSync(path
|
|
4351
|
+
function scandirSync(path, optionsOrSettings) {
|
|
4423
4352
|
const settings = getSettings(optionsOrSettings);
|
|
4424
|
-
return sync.read(path
|
|
4353
|
+
return sync.read(path, settings);
|
|
4425
4354
|
}
|
|
4426
4355
|
exports.scandirSync = scandirSync;
|
|
4427
4356
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -4429,7 +4358,6 @@ var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4429
4358
|
return new settings_1.default(settingsOrOptions);
|
|
4430
4359
|
}
|
|
4431
4360
|
}));
|
|
4432
|
-
|
|
4433
4361
|
//#endregion
|
|
4434
4362
|
//#region ../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js
|
|
4435
4363
|
var require_reusify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4457,7 +4385,6 @@ var require_reusify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4457
4385
|
}
|
|
4458
4386
|
module.exports = reusify;
|
|
4459
4387
|
}));
|
|
4460
|
-
|
|
4461
4388
|
//#endregion
|
|
4462
4389
|
//#region ../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js
|
|
4463
4390
|
var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4650,40 +4577,40 @@ var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4650
4577
|
queue.drained = drained;
|
|
4651
4578
|
return queue;
|
|
4652
4579
|
function push(value) {
|
|
4653
|
-
var p = new Promise(function(resolve
|
|
4580
|
+
var p = new Promise(function(resolve, reject) {
|
|
4654
4581
|
pushCb(value, function(err, result) {
|
|
4655
4582
|
if (err) {
|
|
4656
4583
|
reject(err);
|
|
4657
4584
|
return;
|
|
4658
4585
|
}
|
|
4659
|
-
resolve
|
|
4586
|
+
resolve(result);
|
|
4660
4587
|
});
|
|
4661
4588
|
});
|
|
4662
4589
|
p.catch(noop);
|
|
4663
4590
|
return p;
|
|
4664
4591
|
}
|
|
4665
4592
|
function unshift(value) {
|
|
4666
|
-
var p = new Promise(function(resolve
|
|
4593
|
+
var p = new Promise(function(resolve, reject) {
|
|
4667
4594
|
unshiftCb(value, function(err, result) {
|
|
4668
4595
|
if (err) {
|
|
4669
4596
|
reject(err);
|
|
4670
4597
|
return;
|
|
4671
4598
|
}
|
|
4672
|
-
resolve
|
|
4599
|
+
resolve(result);
|
|
4673
4600
|
});
|
|
4674
4601
|
});
|
|
4675
4602
|
p.catch(noop);
|
|
4676
4603
|
return p;
|
|
4677
4604
|
}
|
|
4678
4605
|
function drained() {
|
|
4679
|
-
return new Promise(function(resolve
|
|
4606
|
+
return new Promise(function(resolve) {
|
|
4680
4607
|
process.nextTick(function() {
|
|
4681
|
-
if (queue.idle()) resolve
|
|
4608
|
+
if (queue.idle()) resolve();
|
|
4682
4609
|
else {
|
|
4683
4610
|
var previousDrain = queue.drain;
|
|
4684
4611
|
queue.drain = function() {
|
|
4685
4612
|
if (typeof previousDrain === "function") previousDrain();
|
|
4686
|
-
resolve
|
|
4613
|
+
resolve();
|
|
4687
4614
|
queue.drain = previousDrain;
|
|
4688
4615
|
};
|
|
4689
4616
|
}
|
|
@@ -4694,7 +4621,6 @@ var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4694
4621
|
module.exports = fastqueue;
|
|
4695
4622
|
module.exports.promise = queueAsPromised;
|
|
4696
4623
|
}));
|
|
4697
|
-
|
|
4698
4624
|
//#endregion
|
|
4699
4625
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
4700
4626
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4723,7 +4649,6 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4723
4649
|
}
|
|
4724
4650
|
exports.joinPathSegments = joinPathSegments;
|
|
4725
4651
|
}));
|
|
4726
|
-
|
|
4727
4652
|
//#endregion
|
|
4728
4653
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js
|
|
4729
4654
|
var require_reader$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4738,7 +4663,6 @@ var require_reader$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4738
4663
|
};
|
|
4739
4664
|
exports.default = Reader;
|
|
4740
4665
|
}));
|
|
4741
|
-
|
|
4742
4666
|
//#endregion
|
|
4743
4667
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js
|
|
4744
4668
|
var require_async$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4824,7 +4748,6 @@ var require_async$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4824
4748
|
};
|
|
4825
4749
|
exports.default = AsyncReader;
|
|
4826
4750
|
}));
|
|
4827
|
-
|
|
4828
4751
|
//#endregion
|
|
4829
4752
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js
|
|
4830
4753
|
var require_async$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4858,7 +4781,6 @@ var require_async$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4858
4781
|
callback(null, entries);
|
|
4859
4782
|
}
|
|
4860
4783
|
}));
|
|
4861
|
-
|
|
4862
4784
|
//#endregion
|
|
4863
4785
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js
|
|
4864
4786
|
var require_stream$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4894,7 +4816,6 @@ var require_stream$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4894
4816
|
};
|
|
4895
4817
|
exports.default = StreamProvider;
|
|
4896
4818
|
}));
|
|
4897
|
-
|
|
4898
4819
|
//#endregion
|
|
4899
4820
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js
|
|
4900
4821
|
var require_sync$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4947,7 +4868,6 @@ var require_sync$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4947
4868
|
};
|
|
4948
4869
|
exports.default = SyncReader;
|
|
4949
4870
|
}));
|
|
4950
|
-
|
|
4951
4871
|
//#endregion
|
|
4952
4872
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js
|
|
4953
4873
|
var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4965,7 +4885,6 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4965
4885
|
};
|
|
4966
4886
|
exports.default = SyncProvider;
|
|
4967
4887
|
}));
|
|
4968
|
-
|
|
4969
4888
|
//#endregion
|
|
4970
4889
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
|
|
4971
4890
|
var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4995,7 +4914,6 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4995
4914
|
};
|
|
4996
4915
|
exports.default = Settings;
|
|
4997
4916
|
}));
|
|
4998
|
-
|
|
4999
4917
|
//#endregion
|
|
5000
4918
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
|
|
5001
4919
|
var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5029,7 +4947,6 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5029
4947
|
return new settings_1.default(settingsOrOptions);
|
|
5030
4948
|
}
|
|
5031
4949
|
}));
|
|
5032
|
-
|
|
5033
4950
|
//#endregion
|
|
5034
4951
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
5035
4952
|
var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5064,7 +4981,6 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5064
4981
|
};
|
|
5065
4982
|
exports.default = Reader;
|
|
5066
4983
|
}));
|
|
5067
|
-
|
|
5068
4984
|
//#endregion
|
|
5069
4985
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js
|
|
5070
4986
|
var require_stream$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5079,15 +4995,15 @@ var require_stream$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5079
4995
|
this._walkStream = fsWalk.walkStream;
|
|
5080
4996
|
this._stat = fsStat.stat;
|
|
5081
4997
|
}
|
|
5082
|
-
dynamic(root, options
|
|
5083
|
-
return this._walkStream(root, options
|
|
4998
|
+
dynamic(root, options) {
|
|
4999
|
+
return this._walkStream(root, options);
|
|
5084
5000
|
}
|
|
5085
|
-
static(patterns, options
|
|
5001
|
+
static(patterns, options) {
|
|
5086
5002
|
const filepaths = patterns.map(this._getFullEntryPath, this);
|
|
5087
5003
|
const stream = new stream_1$1.PassThrough({ objectMode: true });
|
|
5088
5004
|
stream._write = (index, _enc, done) => {
|
|
5089
|
-
return this._getEntry(filepaths[index], patterns[index], options
|
|
5090
|
-
if (entry !== null && options
|
|
5005
|
+
return this._getEntry(filepaths[index], patterns[index], options).then((entry) => {
|
|
5006
|
+
if (entry !== null && options.entryFilter(entry)) stream.push(entry);
|
|
5091
5007
|
if (index === filepaths.length - 1) stream.end();
|
|
5092
5008
|
done();
|
|
5093
5009
|
}).catch(done);
|
|
@@ -5095,23 +5011,22 @@ var require_stream$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5095
5011
|
for (let i = 0; i < filepaths.length; i++) stream.write(i);
|
|
5096
5012
|
return stream;
|
|
5097
5013
|
}
|
|
5098
|
-
_getEntry(filepath, pattern, options
|
|
5014
|
+
_getEntry(filepath, pattern, options) {
|
|
5099
5015
|
return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => {
|
|
5100
|
-
if (options
|
|
5016
|
+
if (options.errorFilter(error)) return null;
|
|
5101
5017
|
throw error;
|
|
5102
5018
|
});
|
|
5103
5019
|
}
|
|
5104
5020
|
_getStat(filepath) {
|
|
5105
|
-
return new Promise((resolve
|
|
5021
|
+
return new Promise((resolve, reject) => {
|
|
5106
5022
|
this._stat(filepath, this._fsStatSettings, (error, stats) => {
|
|
5107
|
-
return error === null ? resolve
|
|
5023
|
+
return error === null ? resolve(stats) : reject(error);
|
|
5108
5024
|
});
|
|
5109
5025
|
});
|
|
5110
5026
|
}
|
|
5111
5027
|
};
|
|
5112
5028
|
exports.default = ReaderStream;
|
|
5113
5029
|
}));
|
|
5114
|
-
|
|
5115
5030
|
//#endregion
|
|
5116
5031
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js
|
|
5117
5032
|
var require_async$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5125,27 +5040,26 @@ var require_async$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5125
5040
|
this._walkAsync = fsWalk.walk;
|
|
5126
5041
|
this._readerStream = new stream_1.default(this._settings);
|
|
5127
5042
|
}
|
|
5128
|
-
dynamic(root, options
|
|
5129
|
-
return new Promise((resolve
|
|
5130
|
-
this._walkAsync(root, options
|
|
5131
|
-
if (error === null) resolve
|
|
5043
|
+
dynamic(root, options) {
|
|
5044
|
+
return new Promise((resolve, reject) => {
|
|
5045
|
+
this._walkAsync(root, options, (error, entries) => {
|
|
5046
|
+
if (error === null) resolve(entries);
|
|
5132
5047
|
else reject(error);
|
|
5133
5048
|
});
|
|
5134
5049
|
});
|
|
5135
5050
|
}
|
|
5136
|
-
async static(patterns, options
|
|
5051
|
+
async static(patterns, options) {
|
|
5137
5052
|
const entries = [];
|
|
5138
|
-
const stream = this._readerStream.static(patterns, options
|
|
5139
|
-
return new Promise((resolve
|
|
5053
|
+
const stream = this._readerStream.static(patterns, options);
|
|
5054
|
+
return new Promise((resolve, reject) => {
|
|
5140
5055
|
stream.once("error", reject);
|
|
5141
5056
|
stream.on("data", (entry) => entries.push(entry));
|
|
5142
|
-
stream.once("end", () => resolve
|
|
5057
|
+
stream.once("end", () => resolve(entries));
|
|
5143
5058
|
});
|
|
5144
5059
|
}
|
|
5145
5060
|
};
|
|
5146
5061
|
exports.default = ReaderAsync;
|
|
5147
5062
|
}));
|
|
5148
|
-
|
|
5149
5063
|
//#endregion
|
|
5150
5064
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
5151
5065
|
var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5190,7 +5104,6 @@ var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5190
5104
|
};
|
|
5191
5105
|
exports.default = Matcher;
|
|
5192
5106
|
}));
|
|
5193
|
-
|
|
5194
5107
|
//#endregion
|
|
5195
5108
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
5196
5109
|
var require_partial = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5223,7 +5136,6 @@ var require_partial = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5223
5136
|
};
|
|
5224
5137
|
exports.default = PartialMatcher;
|
|
5225
5138
|
}));
|
|
5226
|
-
|
|
5227
5139
|
//#endregion
|
|
5228
5140
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js
|
|
5229
5141
|
var require_deep = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5278,7 +5190,6 @@ var require_deep = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5278
5190
|
};
|
|
5279
5191
|
exports.default = DeepFilter;
|
|
5280
5192
|
}));
|
|
5281
|
-
|
|
5282
5193
|
//#endregion
|
|
5283
5194
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js
|
|
5284
5195
|
var require_entry$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5341,7 +5252,6 @@ var require_entry$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5341
5252
|
};
|
|
5342
5253
|
exports.default = EntryFilter;
|
|
5343
5254
|
}));
|
|
5344
|
-
|
|
5345
5255
|
//#endregion
|
|
5346
5256
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js
|
|
5347
5257
|
var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5360,7 +5270,6 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5360
5270
|
};
|
|
5361
5271
|
exports.default = ErrorFilter;
|
|
5362
5272
|
}));
|
|
5363
|
-
|
|
5364
5273
|
//#endregion
|
|
5365
5274
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
5366
5275
|
var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5386,7 +5295,6 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5386
5295
|
};
|
|
5387
5296
|
exports.default = EntryTransformer;
|
|
5388
5297
|
}));
|
|
5389
|
-
|
|
5390
5298
|
//#endregion
|
|
5391
5299
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
5392
5300
|
var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5438,7 +5346,6 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5438
5346
|
};
|
|
5439
5347
|
exports.default = Provider;
|
|
5440
5348
|
}));
|
|
5441
|
-
|
|
5442
5349
|
//#endregion
|
|
5443
5350
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js
|
|
5444
5351
|
var require_async = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5452,17 +5359,16 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5452
5359
|
}
|
|
5453
5360
|
async read(task) {
|
|
5454
5361
|
const root = this._getRootDirectory(task);
|
|
5455
|
-
const options
|
|
5456
|
-
return (await this.api(root, task, options
|
|
5362
|
+
const options = this._getReaderOptions(task);
|
|
5363
|
+
return (await this.api(root, task, options)).map((entry) => options.transform(entry));
|
|
5457
5364
|
}
|
|
5458
|
-
api(root, task, options
|
|
5459
|
-
if (task.dynamic) return this._reader.dynamic(root, options
|
|
5460
|
-
return this._reader.static(task.patterns, options
|
|
5365
|
+
api(root, task, options) {
|
|
5366
|
+
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
5367
|
+
return this._reader.static(task.patterns, options);
|
|
5461
5368
|
}
|
|
5462
5369
|
};
|
|
5463
5370
|
exports.default = ProviderAsync;
|
|
5464
5371
|
}));
|
|
5465
|
-
|
|
5466
5372
|
//#endregion
|
|
5467
5373
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js
|
|
5468
5374
|
var require_stream = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5477,24 +5383,23 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5477
5383
|
}
|
|
5478
5384
|
read(task) {
|
|
5479
5385
|
const root = this._getRootDirectory(task);
|
|
5480
|
-
const options
|
|
5481
|
-
const source = this.api(root, task, options
|
|
5386
|
+
const options = this._getReaderOptions(task);
|
|
5387
|
+
const source = this.api(root, task, options);
|
|
5482
5388
|
const destination = new stream_1.Readable({
|
|
5483
5389
|
objectMode: true,
|
|
5484
5390
|
read: () => {}
|
|
5485
5391
|
});
|
|
5486
|
-
source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options
|
|
5392
|
+
source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options.transform(entry))).once("end", () => destination.emit("end"));
|
|
5487
5393
|
destination.once("close", () => source.destroy());
|
|
5488
5394
|
return destination;
|
|
5489
5395
|
}
|
|
5490
|
-
api(root, task, options
|
|
5491
|
-
if (task.dynamic) return this._reader.dynamic(root, options
|
|
5492
|
-
return this._reader.static(task.patterns, options
|
|
5396
|
+
api(root, task, options) {
|
|
5397
|
+
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
5398
|
+
return this._reader.static(task.patterns, options);
|
|
5493
5399
|
}
|
|
5494
5400
|
};
|
|
5495
5401
|
exports.default = ProviderStream;
|
|
5496
5402
|
}));
|
|
5497
|
-
|
|
5498
5403
|
//#endregion
|
|
5499
5404
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js
|
|
5500
5405
|
var require_sync$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5508,25 +5413,25 @@ var require_sync$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5508
5413
|
this._walkSync = fsWalk.walkSync;
|
|
5509
5414
|
this._statSync = fsStat.statSync;
|
|
5510
5415
|
}
|
|
5511
|
-
dynamic(root, options
|
|
5512
|
-
return this._walkSync(root, options
|
|
5416
|
+
dynamic(root, options) {
|
|
5417
|
+
return this._walkSync(root, options);
|
|
5513
5418
|
}
|
|
5514
|
-
static(patterns, options
|
|
5419
|
+
static(patterns, options) {
|
|
5515
5420
|
const entries = [];
|
|
5516
5421
|
for (const pattern of patterns) {
|
|
5517
5422
|
const filepath = this._getFullEntryPath(pattern);
|
|
5518
|
-
const entry = this._getEntry(filepath, pattern, options
|
|
5519
|
-
if (entry === null || !options
|
|
5423
|
+
const entry = this._getEntry(filepath, pattern, options);
|
|
5424
|
+
if (entry === null || !options.entryFilter(entry)) continue;
|
|
5520
5425
|
entries.push(entry);
|
|
5521
5426
|
}
|
|
5522
5427
|
return entries;
|
|
5523
5428
|
}
|
|
5524
|
-
_getEntry(filepath, pattern, options
|
|
5429
|
+
_getEntry(filepath, pattern, options) {
|
|
5525
5430
|
try {
|
|
5526
5431
|
const stats = this._getStat(filepath);
|
|
5527
5432
|
return this._makeEntry(stats, pattern);
|
|
5528
5433
|
} catch (error) {
|
|
5529
|
-
if (options
|
|
5434
|
+
if (options.errorFilter(error)) return null;
|
|
5530
5435
|
throw error;
|
|
5531
5436
|
}
|
|
5532
5437
|
}
|
|
@@ -5536,7 +5441,6 @@ var require_sync$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5536
5441
|
};
|
|
5537
5442
|
exports.default = ReaderSync;
|
|
5538
5443
|
}));
|
|
5539
|
-
|
|
5540
5444
|
//#endregion
|
|
5541
5445
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js
|
|
5542
5446
|
var require_sync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5550,17 +5454,16 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5550
5454
|
}
|
|
5551
5455
|
read(task) {
|
|
5552
5456
|
const root = this._getRootDirectory(task);
|
|
5553
|
-
const options
|
|
5554
|
-
return this.api(root, task, options
|
|
5457
|
+
const options = this._getReaderOptions(task);
|
|
5458
|
+
return this.api(root, task, options).map(options.transform);
|
|
5555
5459
|
}
|
|
5556
|
-
api(root, task, options
|
|
5557
|
-
if (task.dynamic) return this._reader.dynamic(root, options
|
|
5558
|
-
return this._reader.static(task.patterns, options
|
|
5460
|
+
api(root, task, options) {
|
|
5461
|
+
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
5462
|
+
return this._reader.static(task.patterns, options);
|
|
5559
5463
|
}
|
|
5560
5464
|
};
|
|
5561
5465
|
exports.default = ProviderSync;
|
|
5562
5466
|
}));
|
|
5563
|
-
|
|
5564
5467
|
//#endregion
|
|
5565
5468
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js
|
|
5566
5469
|
var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5612,25 +5515,24 @@ var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5612
5515
|
_getValue(option, value) {
|
|
5613
5516
|
return option === void 0 ? value : option;
|
|
5614
5517
|
}
|
|
5615
|
-
_getFileSystemMethods(methods
|
|
5616
|
-
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods
|
|
5518
|
+
_getFileSystemMethods(methods = {}) {
|
|
5519
|
+
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
5617
5520
|
}
|
|
5618
5521
|
};
|
|
5619
5522
|
exports.default = Settings;
|
|
5620
5523
|
}));
|
|
5621
|
-
|
|
5622
5524
|
//#endregion
|
|
5623
|
-
//#region ../../node_modules/.pnpm/
|
|
5624
|
-
var
|
|
5525
|
+
//#region ../../node_modules/.pnpm/image-meta@0.2.2/node_modules/image-meta/dist/index.mjs
|
|
5526
|
+
var import_out = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5625
5527
|
const taskManager = require_tasks();
|
|
5626
5528
|
const async_1 = require_async();
|
|
5627
5529
|
const stream_1 = require_stream();
|
|
5628
5530
|
const sync_1 = require_sync();
|
|
5629
5531
|
const settings_1 = require_settings();
|
|
5630
5532
|
const utils = require_utils$1();
|
|
5631
|
-
async function FastGlob(source, options
|
|
5533
|
+
async function FastGlob(source, options) {
|
|
5632
5534
|
assertPatternsInput(source);
|
|
5633
|
-
const works = getWorks(source, async_1.default, options
|
|
5535
|
+
const works = getWorks(source, async_1.default, options);
|
|
5634
5536
|
const result = await Promise.all(works);
|
|
5635
5537
|
return utils.array.flatten(result);
|
|
5636
5538
|
}
|
|
@@ -5639,15 +5541,15 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5639
5541
|
FastGlob.globSync = sync;
|
|
5640
5542
|
FastGlob.globStream = stream;
|
|
5641
5543
|
FastGlob.async = FastGlob;
|
|
5642
|
-
function sync(source, options
|
|
5544
|
+
function sync(source, options) {
|
|
5643
5545
|
assertPatternsInput(source);
|
|
5644
|
-
const works = getWorks(source, sync_1.default, options
|
|
5546
|
+
const works = getWorks(source, sync_1.default, options);
|
|
5645
5547
|
return utils.array.flatten(works);
|
|
5646
5548
|
}
|
|
5647
5549
|
FastGlob.sync = sync;
|
|
5648
|
-
function stream(source, options
|
|
5550
|
+
function stream(source, options) {
|
|
5649
5551
|
assertPatternsInput(source);
|
|
5650
|
-
const works = getWorks(source, stream_1.default, options
|
|
5552
|
+
const works = getWorks(source, stream_1.default, options);
|
|
5651
5553
|
/**
|
|
5652
5554
|
* The stream returned by the provider cannot work with an asynchronous iterator.
|
|
5653
5555
|
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
|
@@ -5656,16 +5558,16 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5656
5558
|
return utils.stream.merge(works);
|
|
5657
5559
|
}
|
|
5658
5560
|
FastGlob.stream = stream;
|
|
5659
|
-
function generateTasks(source, options
|
|
5561
|
+
function generateTasks(source, options) {
|
|
5660
5562
|
assertPatternsInput(source);
|
|
5661
5563
|
const patterns = [].concat(source);
|
|
5662
|
-
const settings = new settings_1.default(options
|
|
5564
|
+
const settings = new settings_1.default(options);
|
|
5663
5565
|
return taskManager.generate(patterns, settings);
|
|
5664
5566
|
}
|
|
5665
5567
|
FastGlob.generateTasks = generateTasks;
|
|
5666
|
-
function isDynamicPattern(source, options
|
|
5568
|
+
function isDynamicPattern(source, options) {
|
|
5667
5569
|
assertPatternsInput(source);
|
|
5668
|
-
const settings = new settings_1.default(options
|
|
5570
|
+
const settings = new settings_1.default(options);
|
|
5669
5571
|
return utils.pattern.isDynamicPattern(source, settings);
|
|
5670
5572
|
}
|
|
5671
5573
|
FastGlob.isDynamicPattern = isDynamicPattern;
|
|
@@ -5680,33 +5582,33 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5680
5582
|
}
|
|
5681
5583
|
FastGlob.convertPathToPattern = convertPathToPattern;
|
|
5682
5584
|
(function(posix) {
|
|
5683
|
-
function escapePath
|
|
5585
|
+
function escapePath(source) {
|
|
5684
5586
|
assertPatternsInput(source);
|
|
5685
5587
|
return utils.path.escapePosixPath(source);
|
|
5686
5588
|
}
|
|
5687
|
-
posix.escapePath = escapePath
|
|
5688
|
-
function convertPathToPattern
|
|
5589
|
+
posix.escapePath = escapePath;
|
|
5590
|
+
function convertPathToPattern(source) {
|
|
5689
5591
|
assertPatternsInput(source);
|
|
5690
5592
|
return utils.path.convertPosixPathToPattern(source);
|
|
5691
5593
|
}
|
|
5692
|
-
posix.convertPathToPattern = convertPathToPattern
|
|
5594
|
+
posix.convertPathToPattern = convertPathToPattern;
|
|
5693
5595
|
})(FastGlob.posix || (FastGlob.posix = {}));
|
|
5694
5596
|
(function(win32) {
|
|
5695
|
-
function escapePath
|
|
5597
|
+
function escapePath(source) {
|
|
5696
5598
|
assertPatternsInput(source);
|
|
5697
5599
|
return utils.path.escapeWindowsPath(source);
|
|
5698
5600
|
}
|
|
5699
|
-
win32.escapePath = escapePath
|
|
5700
|
-
function convertPathToPattern
|
|
5601
|
+
win32.escapePath = escapePath;
|
|
5602
|
+
function convertPathToPattern(source) {
|
|
5701
5603
|
assertPatternsInput(source);
|
|
5702
5604
|
return utils.path.convertWindowsPathToPattern(source);
|
|
5703
5605
|
}
|
|
5704
|
-
win32.convertPathToPattern = convertPathToPattern
|
|
5606
|
+
win32.convertPathToPattern = convertPathToPattern;
|
|
5705
5607
|
})(FastGlob.win32 || (FastGlob.win32 = {}));
|
|
5706
5608
|
})(FastGlob || (FastGlob = {}));
|
|
5707
|
-
function getWorks(source, _Provider, options
|
|
5609
|
+
function getWorks(source, _Provider, options) {
|
|
5708
5610
|
const patterns = [].concat(source);
|
|
5709
|
-
const settings = new settings_1.default(options
|
|
5611
|
+
const settings = new settings_1.default(options);
|
|
5710
5612
|
const tasks = taskManager.generate(patterns, settings);
|
|
5711
5613
|
const provider = new _Provider(settings);
|
|
5712
5614
|
return tasks.map(provider.read, provider);
|
|
@@ -5715,11 +5617,7 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5715
5617
|
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");
|
|
5716
5618
|
}
|
|
5717
5619
|
module.exports = FastGlob;
|
|
5718
|
-
}));
|
|
5719
|
-
|
|
5720
|
-
//#endregion
|
|
5721
|
-
//#region ../../node_modules/.pnpm/image-meta@0.2.2/node_modules/image-meta/dist/index.mjs
|
|
5722
|
-
var import_out = /* @__PURE__ */ __toESM(require_out(), 1);
|
|
5620
|
+
})))(), 1);
|
|
5723
5621
|
const decoder = new TextDecoder();
|
|
5724
5622
|
const toUTF8String = (input, start = 0, end = input.length) => decoder.decode(input.slice(start, end));
|
|
5725
5623
|
const toHexString = (input, start = 0, end = input.length) => input.slice(start, end).reduce((memo, i) => memo + ("0" + i.toString(16)).slice(-2), "");
|
|
@@ -6164,7 +6062,7 @@ const units = {
|
|
|
6164
6062
|
pt: 96 / 72,
|
|
6165
6063
|
px: 1
|
|
6166
6064
|
};
|
|
6167
|
-
const unitsReg =
|
|
6065
|
+
const unitsReg = new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(units).join("|")})?$`);
|
|
6168
6066
|
function parseLength(len) {
|
|
6169
6067
|
const m = unitsReg.exec(len);
|
|
6170
6068
|
if (!m) return;
|
|
@@ -6400,7 +6298,6 @@ function imageMeta(input) {
|
|
|
6400
6298
|
}
|
|
6401
6299
|
throw new TypeError(`Unsupported file type: ${type}`);
|
|
6402
6300
|
}
|
|
6403
|
-
|
|
6404
6301
|
//#endregion
|
|
6405
6302
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
6406
6303
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -6412,37 +6309,37 @@ const _UNC_REGEX = /^[/\\]{2}/;
|
|
|
6412
6309
|
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
6413
6310
|
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
6414
6311
|
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
6415
|
-
const normalize = function(path
|
|
6416
|
-
if (path
|
|
6417
|
-
path
|
|
6418
|
-
const isUNCPath = path
|
|
6419
|
-
const isPathAbsolute = isAbsolute(path
|
|
6420
|
-
const trailingSeparator = path
|
|
6421
|
-
path
|
|
6422
|
-
if (path
|
|
6312
|
+
const normalize = function(path) {
|
|
6313
|
+
if (path.length === 0) return ".";
|
|
6314
|
+
path = normalizeWindowsPath(path);
|
|
6315
|
+
const isUNCPath = path.match(_UNC_REGEX);
|
|
6316
|
+
const isPathAbsolute = isAbsolute(path);
|
|
6317
|
+
const trailingSeparator = path[path.length - 1] === "/";
|
|
6318
|
+
path = normalizeString(path, !isPathAbsolute);
|
|
6319
|
+
if (path.length === 0) {
|
|
6423
6320
|
if (isPathAbsolute) return "/";
|
|
6424
6321
|
return trailingSeparator ? "./" : ".";
|
|
6425
6322
|
}
|
|
6426
|
-
if (trailingSeparator) path
|
|
6427
|
-
if (_DRIVE_LETTER_RE.test(path
|
|
6323
|
+
if (trailingSeparator) path += "/";
|
|
6324
|
+
if (_DRIVE_LETTER_RE.test(path)) path += "/";
|
|
6428
6325
|
if (isUNCPath) {
|
|
6429
|
-
if (!isPathAbsolute) return `//./${path
|
|
6430
|
-
return `//${path
|
|
6326
|
+
if (!isPathAbsolute) return `//./${path}`;
|
|
6327
|
+
return `//${path}`;
|
|
6431
6328
|
}
|
|
6432
|
-
return isPathAbsolute && !isAbsolute(path
|
|
6329
|
+
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
6433
6330
|
};
|
|
6434
6331
|
const join = function(...segments) {
|
|
6435
|
-
let path
|
|
6332
|
+
let path = "";
|
|
6436
6333
|
for (const seg of segments) {
|
|
6437
6334
|
if (!seg) continue;
|
|
6438
|
-
if (path
|
|
6439
|
-
const pathTrailing = path
|
|
6335
|
+
if (path.length > 0) {
|
|
6336
|
+
const pathTrailing = path[path.length - 1] === "/";
|
|
6440
6337
|
const segLeading = seg[0] === "/";
|
|
6441
|
-
if (pathTrailing && segLeading) path
|
|
6442
|
-
else path
|
|
6443
|
-
} else path
|
|
6338
|
+
if (pathTrailing && segLeading) path += seg.slice(1);
|
|
6339
|
+
else path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
6340
|
+
} else path += seg;
|
|
6444
6341
|
}
|
|
6445
|
-
return normalize(path
|
|
6342
|
+
return normalize(path);
|
|
6446
6343
|
};
|
|
6447
6344
|
function cwd() {
|
|
6448
6345
|
if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
|
|
@@ -6453,23 +6350,23 @@ const resolve$1 = function(...arguments_) {
|
|
|
6453
6350
|
let resolvedPath = "";
|
|
6454
6351
|
let resolvedAbsolute = false;
|
|
6455
6352
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
6456
|
-
const path
|
|
6457
|
-
if (!path
|
|
6458
|
-
resolvedPath = `${path
|
|
6459
|
-
resolvedAbsolute = isAbsolute(path
|
|
6353
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
6354
|
+
if (!path || path.length === 0) continue;
|
|
6355
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
6356
|
+
resolvedAbsolute = isAbsolute(path);
|
|
6460
6357
|
}
|
|
6461
6358
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
6462
6359
|
if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
|
|
6463
6360
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
6464
6361
|
};
|
|
6465
|
-
function normalizeString(path
|
|
6362
|
+
function normalizeString(path, allowAboveRoot) {
|
|
6466
6363
|
let res = "";
|
|
6467
6364
|
let lastSegmentLength = 0;
|
|
6468
6365
|
let lastSlash = -1;
|
|
6469
6366
|
let dots = 0;
|
|
6470
6367
|
let char = null;
|
|
6471
|
-
for (let index = 0; index <= path
|
|
6472
|
-
if (index < path
|
|
6368
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
6369
|
+
if (index < path.length) char = path[index];
|
|
6473
6370
|
else if (char === "/") break;
|
|
6474
6371
|
else char = "/";
|
|
6475
6372
|
if (char === "/") {
|
|
@@ -6501,8 +6398,8 @@ function normalizeString(path$10, allowAboveRoot) {
|
|
|
6501
6398
|
lastSegmentLength = 2;
|
|
6502
6399
|
}
|
|
6503
6400
|
} else {
|
|
6504
|
-
if (res.length > 0) res += `/${path
|
|
6505
|
-
else res = path
|
|
6401
|
+
if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
|
|
6402
|
+
else res = path.slice(lastSlash + 1, index);
|
|
6506
6403
|
lastSegmentLength = index - lastSlash - 1;
|
|
6507
6404
|
}
|
|
6508
6405
|
lastSlash = index;
|
|
@@ -6527,7 +6424,6 @@ const relative = function(from, to) {
|
|
|
6527
6424
|
}
|
|
6528
6425
|
return [..._from.map(() => ".."), ..._to].join("/");
|
|
6529
6426
|
};
|
|
6530
|
-
|
|
6531
6427
|
//#endregion
|
|
6532
6428
|
//#region ../../node_modules/.pnpm/perfect-debounce@2.0.0/node_modules/perfect-debounce/dist/index.mjs
|
|
6533
6429
|
const DEBOUNCE_DEFAULTS = { trailing: true };
|
|
@@ -6549,10 +6445,10 @@ console.log(await debouncedFn(number));
|
|
|
6549
6445
|
//=> 3
|
|
6550
6446
|
```
|
|
6551
6447
|
*/
|
|
6552
|
-
function debounce(fn, wait = 25, options
|
|
6553
|
-
options
|
|
6448
|
+
function debounce(fn, wait = 25, options = {}) {
|
|
6449
|
+
options = {
|
|
6554
6450
|
...DEBOUNCE_DEFAULTS,
|
|
6555
|
-
...options
|
|
6451
|
+
...options
|
|
6556
6452
|
};
|
|
6557
6453
|
if (!Number.isFinite(wait)) throw new TypeError("Expected `wait` to be a finite number");
|
|
6558
6454
|
let leadingValue;
|
|
@@ -6564,7 +6460,7 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6564
6460
|
currentPromise = _applyPromised(fn, _this, args);
|
|
6565
6461
|
currentPromise.finally(() => {
|
|
6566
6462
|
currentPromise = null;
|
|
6567
|
-
if (options
|
|
6463
|
+
if (options.trailing && trailingArgs && !timeout) {
|
|
6568
6464
|
const promise = applyFn(_this, trailingArgs);
|
|
6569
6465
|
trailingArgs = null;
|
|
6570
6466
|
return promise;
|
|
@@ -6573,22 +6469,22 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6573
6469
|
return currentPromise;
|
|
6574
6470
|
};
|
|
6575
6471
|
const debounced = function(...args) {
|
|
6576
|
-
if (options
|
|
6472
|
+
if (options.trailing) trailingArgs = args;
|
|
6577
6473
|
if (currentPromise) return currentPromise;
|
|
6578
|
-
return new Promise((resolve
|
|
6579
|
-
const shouldCallNow = !timeout && options
|
|
6474
|
+
return new Promise((resolve) => {
|
|
6475
|
+
const shouldCallNow = !timeout && options.leading;
|
|
6580
6476
|
clearTimeout(timeout);
|
|
6581
6477
|
timeout = setTimeout(() => {
|
|
6582
6478
|
timeout = null;
|
|
6583
|
-
const promise = options
|
|
6479
|
+
const promise = options.leading ? leadingValue : applyFn(this, args);
|
|
6584
6480
|
trailingArgs = null;
|
|
6585
6481
|
for (const _resolve of resolveList) _resolve(promise);
|
|
6586
6482
|
resolveList = [];
|
|
6587
6483
|
}, wait);
|
|
6588
6484
|
if (shouldCallNow) {
|
|
6589
6485
|
leadingValue = applyFn(this, args);
|
|
6590
|
-
resolve
|
|
6591
|
-
} else resolveList.push(resolve
|
|
6486
|
+
resolve(leadingValue);
|
|
6487
|
+
} else resolveList.push(resolve);
|
|
6592
6488
|
});
|
|
6593
6489
|
};
|
|
6594
6490
|
const _clearTimeout = (timer) => {
|
|
@@ -6615,16 +6511,15 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6615
6511
|
async function _applyPromised(fn, _this, args) {
|
|
6616
6512
|
return await fn.apply(_this, args);
|
|
6617
6513
|
}
|
|
6618
|
-
|
|
6619
6514
|
//#endregion
|
|
6620
6515
|
//#region src/rpc/assets.ts
|
|
6621
|
-
function guessType(path
|
|
6622
|
-
if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path
|
|
6623
|
-
if (/\.(?:mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path
|
|
6624
|
-
if (/\.(?:mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path
|
|
6625
|
-
if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path
|
|
6626
|
-
if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path
|
|
6627
|
-
if (/\.wasm/i.test(path
|
|
6516
|
+
function guessType(path) {
|
|
6517
|
+
if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path)) return "image";
|
|
6518
|
+
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";
|
|
6519
|
+
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";
|
|
6520
|
+
if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path)) return "font";
|
|
6521
|
+
if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path)) return "text";
|
|
6522
|
+
if (/\.wasm/i.test(path)) return "wasm";
|
|
6628
6523
|
return "other";
|
|
6629
6524
|
}
|
|
6630
6525
|
function getAssetsFunctions(ctx) {
|
|
@@ -6658,11 +6553,11 @@ function getAssetsFunctions(ctx) {
|
|
|
6658
6553
|
cache = await Promise.all(files.map(async (relativePath) => {
|
|
6659
6554
|
const filePath = resolve$1(dir, relativePath);
|
|
6660
6555
|
const stat = await fsp.lstat(filePath);
|
|
6661
|
-
const path
|
|
6556
|
+
const path = relativePath.replace(relativePublicDir, "");
|
|
6662
6557
|
return {
|
|
6663
|
-
path
|
|
6558
|
+
path,
|
|
6664
6559
|
relativePath,
|
|
6665
|
-
publicPath: join(baseURL, path
|
|
6560
|
+
publicPath: join(baseURL, path),
|
|
6666
6561
|
filePath,
|
|
6667
6562
|
type: guessType(relativePath),
|
|
6668
6563
|
size: stat.size,
|
|
@@ -6716,7 +6611,6 @@ function getAssetsFunctions(ctx) {
|
|
|
6716
6611
|
}
|
|
6717
6612
|
};
|
|
6718
6613
|
}
|
|
6719
|
-
|
|
6720
6614
|
//#endregion
|
|
6721
6615
|
//#region src/rpc/get-config.ts
|
|
6722
6616
|
function getConfigFunctions(ctx) {
|
|
@@ -6724,7 +6618,6 @@ function getConfigFunctions(ctx) {
|
|
|
6724
6618
|
return ctx.config.root;
|
|
6725
6619
|
} };
|
|
6726
6620
|
}
|
|
6727
|
-
|
|
6728
6621
|
//#endregion
|
|
6729
6622
|
//#region src/rpc/graph.ts
|
|
6730
6623
|
function getGraphFunctions(ctx) {
|
|
@@ -6752,9 +6645,9 @@ function getGraphFunctions(ctx) {
|
|
|
6752
6645
|
seen.add(id);
|
|
6753
6646
|
const module = modules.find((m) => m.id === id);
|
|
6754
6647
|
if (!module) return [];
|
|
6755
|
-
return module.deps.flatMap((i
|
|
6756
|
-
if (filteredModules.find((m) => m.id === i
|
|
6757
|
-
return searchForVueDeps(i
|
|
6648
|
+
return module.deps.flatMap((i) => {
|
|
6649
|
+
if (filteredModules.find((m) => m.id === i)) return [i];
|
|
6650
|
+
return searchForVueDeps(i, seen);
|
|
6758
6651
|
});
|
|
6759
6652
|
}
|
|
6760
6653
|
return {
|
|
@@ -6764,7 +6657,6 @@ function getGraphFunctions(ctx) {
|
|
|
6764
6657
|
});
|
|
6765
6658
|
} };
|
|
6766
6659
|
}
|
|
6767
|
-
|
|
6768
6660
|
//#endregion
|
|
6769
6661
|
//#region src/rpc/index.ts
|
|
6770
6662
|
function getRpcFunctions(ctx) {
|
|
@@ -6777,13 +6669,11 @@ function getRpcFunctions(ctx) {
|
|
|
6777
6669
|
...getGraphFunctions(ctx)
|
|
6778
6670
|
};
|
|
6779
6671
|
}
|
|
6780
|
-
|
|
6781
6672
|
//#endregion
|
|
6782
6673
|
//#region src/utils.ts
|
|
6783
6674
|
function removeUrlQuery(url) {
|
|
6784
6675
|
return url.replace(/\?.*$/, "");
|
|
6785
6676
|
}
|
|
6786
|
-
|
|
6787
6677
|
//#endregion
|
|
6788
6678
|
//#region src/vite.ts
|
|
6789
6679
|
function getVueDevtoolsPath() {
|
|
@@ -6803,13 +6693,13 @@ const defaultOptions = {
|
|
|
6803
6693
|
componentInspector: true,
|
|
6804
6694
|
launchEditor: process.env.LAUNCH_EDITOR ?? "code"
|
|
6805
6695
|
};
|
|
6806
|
-
function mergeOptions(options
|
|
6807
|
-
return Object.assign({}, defaultOptions, options
|
|
6696
|
+
function mergeOptions(options) {
|
|
6697
|
+
return Object.assign({}, defaultOptions, options);
|
|
6808
6698
|
}
|
|
6809
|
-
function VitePluginVueDevTools(options
|
|
6699
|
+
function VitePluginVueDevTools(options) {
|
|
6810
6700
|
const vueDevtoolsPath = getVueDevtoolsPath();
|
|
6811
6701
|
const inspect = Inspect({ silent: true });
|
|
6812
|
-
const pluginOptions = mergeOptions(options
|
|
6702
|
+
const pluginOptions = mergeOptions(options ?? {});
|
|
6813
6703
|
let config;
|
|
6814
6704
|
function configureServer(server) {
|
|
6815
6705
|
const base = server.config.base || "/";
|
|
@@ -6834,13 +6724,13 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6834
6724
|
const colorUrl = (url) => cyan(url.replace(/:(\d+)\//, (_, port) => `:${bold(port)}/`));
|
|
6835
6725
|
server.printUrls = () => {
|
|
6836
6726
|
const urls = server.resolvedUrls;
|
|
6837
|
-
const keys
|
|
6727
|
+
const keys = normalizeComboKeyPrint("option-shift-d");
|
|
6838
6728
|
_printUrls();
|
|
6839
6729
|
for (const url of urls.local) {
|
|
6840
6730
|
const devtoolsUrl = url.endsWith("/") ? `${url}__devtools__/` : `${url}/__devtools__/`;
|
|
6841
6731
|
console.log(` ${green("➜")} ${bold("Vue DevTools")}: ${green(`Open ${colorUrl(`${devtoolsUrl}`)} as a separate window`)}`);
|
|
6842
6732
|
}
|
|
6843
|
-
console.log(` ${green("➜")} ${bold("Vue DevTools")}: ${green(`Press ${yellow(keys
|
|
6733
|
+
console.log(` ${green("➜")} ${bold("Vue DevTools")}: ${green(`Press ${yellow(keys)} in App to toggle the Vue DevTools`)}`);
|
|
6844
6734
|
};
|
|
6845
6735
|
}
|
|
6846
6736
|
const devtoolsOptionsImportee = "virtual:vue-devtools-options";
|
|
@@ -6869,8 +6759,8 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6869
6759
|
return await fs.promises.readFile(filename, "utf-8");
|
|
6870
6760
|
}
|
|
6871
6761
|
},
|
|
6872
|
-
transform(code, id, options
|
|
6873
|
-
if (options
|
|
6762
|
+
transform(code, id, options) {
|
|
6763
|
+
if (options === null || options === void 0 ? void 0 : options.ssr) return;
|
|
6874
6764
|
const { appendTo } = pluginOptions;
|
|
6875
6765
|
const [filename] = id.split("?", 2);
|
|
6876
6766
|
if (appendTo && (typeof appendTo === "string" && filename.endsWith(appendTo) || appendTo instanceof RegExp && appendTo.test(filename))) code = `import 'virtual:vue-devtools-path:overlay.js';\n${code}`;
|
|
@@ -6912,6 +6802,5 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6912
6802
|
plugin
|
|
6913
6803
|
].filter(Boolean);
|
|
6914
6804
|
}
|
|
6915
|
-
|
|
6916
6805
|
//#endregion
|
|
6917
|
-
export { VitePluginVueDevTools as default };
|
|
6806
|
+
export { VitePluginVueDevTools as default };
|