vite-plugin-vue-devtools 8.0.1 → 8.0.3
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-Enp_Ksfn.js +1 -0
- package/client/assets/SectionBlock-BTPkVZM2.js +1 -0
- package/client/assets/assets-D3XLNB-6.js +12 -0
- package/client/assets/components-Dza6_XRl.js +1 -0
- package/client/assets/custom-inspector-tab-view-_L81oF56.js +1 -0
- package/client/assets/{custom-tab-view-CM9Q_lnb.js → custom-tab-view-CmLn18C4.js} +1 -1
- package/client/assets/graph-fTuEulvH.js +1020 -0
- package/client/assets/{index-iOTou63J.js → index-DH8HZ7DP.js} +225 -221
- package/client/assets/{index-SYP6buex.css → index-DVOrYgP_.css} +1 -1
- package/client/assets/index-lUvZHcVj.css +1 -0
- package/client/assets/overview-DFLns6CN.js +1 -0
- package/client/assets/pages-yIVwEfZL.js +1 -0
- package/client/assets/pinia-Cq2YPuZV.js +1 -0
- package/client/assets/{router-CjEa9MSq.js → router-Drkf543k.js} +1 -1
- package/client/assets/settings-DyJW_A0F.js +1 -0
- package/client/assets/timeline-R3j-Lp7H.js +1 -0
- package/client/index.html +2 -2
- package/dist/vite.cjs +221 -214
- package/dist/vite.js +201 -204
- package/package.json +8 -9
- package/src/overlay/devtools-overlay.mjs +4 -4
- package/client/assets/IconTitle.vue_vue_type_script_setup_true_lang-BKb_WVnP.js +0 -1
- package/client/assets/SectionBlock-CLZFQW91.js +0 -1
- package/client/assets/assets-B7zubrMs.js +0 -12
- package/client/assets/components-BvbJYQUf.js +0 -1
- package/client/assets/custom-inspector-tab-view--RVvY-O-.js +0 -1
- package/client/assets/graph-Buqn8Jbv.js +0 -1073
- package/client/assets/index-ENvNlo7R.css +0 -1
- package/client/assets/overview-Cm_cmE96.js +0 -1
- package/client/assets/pages-cKsoKw9g.js +0 -1
- package/client/assets/pinia-CydCddd0.js +0 -1
- package/client/assets/settings-Dfia6tsi.js +0 -1
- package/client/assets/timeline-CWTKEViw.js +0 -1
package/dist/vite.js
CHANGED
|
@@ -126,7 +126,6 @@ const DIR_CLIENT = resolve(DIR_DIST, "../client");
|
|
|
126
126
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
127
127
|
var require_array = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js": ((exports) => {
|
|
128
128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
129
|
-
exports.splitWhen = exports.flatten = void 0;
|
|
130
129
|
function flatten(items) {
|
|
131
130
|
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
132
131
|
}
|
|
@@ -147,7 +146,6 @@ var require_array = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
147
146
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
148
147
|
var require_errno = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js": ((exports) => {
|
|
149
148
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
150
|
-
exports.isEnoentCodeError = void 0;
|
|
151
149
|
function isEnoentCodeError(error) {
|
|
152
150
|
return error.code === "ENOENT";
|
|
153
151
|
}
|
|
@@ -158,7 +156,6 @@ var require_errno = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
158
156
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
159
157
|
var require_fs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js": ((exports) => {
|
|
160
158
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
161
|
-
exports.createDirentFromStats = void 0;
|
|
162
159
|
var DirentFromStats$1 = class {
|
|
163
160
|
constructor(name, stats) {
|
|
164
161
|
this.name = name;
|
|
@@ -181,7 +178,6 @@ var require_fs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
181
178
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
182
179
|
var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js": ((exports) => {
|
|
183
180
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
184
|
-
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
185
181
|
const os$1 = __require("os");
|
|
186
182
|
const path$10 = __require("path");
|
|
187
183
|
const IS_WINDOWS_PLATFORM = os$1.platform() === "win32";
|
|
@@ -379,8 +375,7 @@ var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
379
375
|
* @returns {string}
|
|
380
376
|
*/
|
|
381
377
|
module.exports = function globParent$1(str, opts) {
|
|
382
|
-
|
|
383
|
-
if (options$1.flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
|
|
378
|
+
if (Object.assign({ flipBackslashes: true }, opts).flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
|
|
384
379
|
if (enclosure.test(str)) str += slash;
|
|
385
380
|
str += "a";
|
|
386
381
|
do
|
|
@@ -558,8 +553,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
558
553
|
state.maxLen = String(state.max).length;
|
|
559
554
|
}
|
|
560
555
|
if (a < 0) {
|
|
561
|
-
|
|
562
|
-
negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
|
|
556
|
+
negatives = splitToPatterns(b < 0 ? Math.abs(b) : 1, Math.abs(a), state, opts);
|
|
563
557
|
a = state.a = 0;
|
|
564
558
|
}
|
|
565
559
|
if (b >= 0) positives = splitToPatterns(a, b, state, opts);
|
|
@@ -575,8 +569,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
575
569
|
let onlyNegative = filterPatterns(neg, pos, "-", false, options$1) || [];
|
|
576
570
|
let onlyPositive = filterPatterns(pos, neg, "", false, options$1) || [];
|
|
577
571
|
let intersected = filterPatterns(neg, pos, "-?", true, options$1) || [];
|
|
578
|
-
|
|
579
|
-
return subpatterns.join("|");
|
|
572
|
+
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
|
580
573
|
}
|
|
581
574
|
function splitToRanges(min, max) {
|
|
582
575
|
let nines = 1;
|
|
@@ -777,8 +770,7 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
777
770
|
});
|
|
778
771
|
let start = String.fromCharCode(a);
|
|
779
772
|
if (a === b) return start;
|
|
780
|
-
|
|
781
|
-
return `[${start}-${stop}]`;
|
|
773
|
+
return `[${start}-${String.fromCharCode(b)}]`;
|
|
782
774
|
};
|
|
783
775
|
const toRegex = (start, end, options$1) => {
|
|
784
776
|
if (Array.isArray(start)) {
|
|
@@ -1205,18 +1197,16 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1205
1197
|
*/
|
|
1206
1198
|
if (value === CHAR_LEFT_CURLY_BRACE$1) {
|
|
1207
1199
|
depth$1++;
|
|
1208
|
-
|
|
1209
|
-
const brace = {
|
|
1200
|
+
block = push({
|
|
1210
1201
|
type: "brace",
|
|
1211
1202
|
open: true,
|
|
1212
1203
|
close: false,
|
|
1213
|
-
dollar,
|
|
1204
|
+
dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === true,
|
|
1214
1205
|
depth: depth$1,
|
|
1215
1206
|
commas: 0,
|
|
1216
1207
|
ranges: 0,
|
|
1217
1208
|
nodes: []
|
|
1218
|
-
};
|
|
1219
|
-
block = push(brace);
|
|
1209
|
+
});
|
|
1220
1210
|
stack.push(block);
|
|
1221
1211
|
push({
|
|
1222
1212
|
type: "open",
|
|
@@ -1252,8 +1242,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1252
1242
|
if (value === CHAR_COMMA$1 && depth$1 > 0) {
|
|
1253
1243
|
if (block.ranges > 0) {
|
|
1254
1244
|
block.ranges = 0;
|
|
1255
|
-
|
|
1256
|
-
block.nodes = [open, {
|
|
1245
|
+
block.nodes = [block.nodes.shift(), {
|
|
1257
1246
|
type: "text",
|
|
1258
1247
|
value: stringify$1(block)
|
|
1259
1248
|
}];
|
|
@@ -1481,12 +1470,6 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1481
1470
|
const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
|
|
1482
1471
|
const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
|
|
1483
1472
|
const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
|
|
1484
|
-
const NO_DOT = `(?!${DOT_LITERAL})`;
|
|
1485
|
-
const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
|
|
1486
|
-
const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
|
|
1487
|
-
const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
|
|
1488
|
-
const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
|
|
1489
|
-
const STAR = `${QMARK}*?`;
|
|
1490
1473
|
const POSIX_CHARS = {
|
|
1491
1474
|
DOT_LITERAL,
|
|
1492
1475
|
PLUS_LITERAL,
|
|
@@ -1496,12 +1479,12 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1496
1479
|
QMARK,
|
|
1497
1480
|
END_ANCHOR,
|
|
1498
1481
|
DOTS_SLASH,
|
|
1499
|
-
NO_DOT
|
|
1500
|
-
NO_DOTS
|
|
1501
|
-
NO_DOT_SLASH,
|
|
1502
|
-
NO_DOTS_SLASH
|
|
1503
|
-
QMARK_NO_DOT
|
|
1504
|
-
STAR
|
|
1482
|
+
NO_DOT: `(?!${DOT_LITERAL})`,
|
|
1483
|
+
NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
|
|
1484
|
+
NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
|
|
1485
|
+
NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
|
|
1486
|
+
QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
|
|
1487
|
+
STAR: `${QMARK}*?`,
|
|
1505
1488
|
START_ANCHOR
|
|
1506
1489
|
};
|
|
1507
1490
|
/**
|
|
@@ -1673,9 +1656,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pic
|
|
|
1673
1656
|
return output;
|
|
1674
1657
|
};
|
|
1675
1658
|
exports.wrapOutput = (input, state = {}, options$1 = {}) => {
|
|
1676
|
-
|
|
1677
|
-
const append$1 = options$1.contains ? "" : "$";
|
|
1678
|
-
let output = `${prepend}(?:${input})${append$1}`;
|
|
1659
|
+
let output = `${options$1.contains ? "" : "^"}(?:${input})${options$1.contains ? "" : "$"}`;
|
|
1679
1660
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
1680
1661
|
return output;
|
|
1681
1662
|
};
|
|
@@ -1808,8 +1789,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1808
1789
|
continue;
|
|
1809
1790
|
}
|
|
1810
1791
|
if (opts.noext !== true) {
|
|
1811
|
-
|
|
1812
|
-
if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
1792
|
+
if ((code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK) === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
1813
1793
|
isGlob$1 = token.isGlob = true;
|
|
1814
1794
|
isExtglob$1 = token.isExtglob = true;
|
|
1815
1795
|
finished = true;
|
|
@@ -2022,13 +2002,13 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2022
2002
|
const win32$1 = utils$12.isWindows(options$1);
|
|
2023
2003
|
const PLATFORM_CHARS = constants$1.globChars(win32$1);
|
|
2024
2004
|
const EXTGLOB_CHARS = constants$1.extglobChars(PLATFORM_CHARS);
|
|
2025
|
-
const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT
|
|
2005
|
+
const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK: QMARK$1, QMARK_NO_DOT, STAR, START_ANCHOR: START_ANCHOR$1 } = PLATFORM_CHARS;
|
|
2026
2006
|
const globstar = (opts$1) => {
|
|
2027
2007
|
return `(${capture}(?:(?!${START_ANCHOR$1}${opts$1.dot ? DOTS_SLASH$1 : DOT_LITERAL$1}).)*?)`;
|
|
2028
2008
|
};
|
|
2029
|
-
const nodot = opts.dot ? "" : NO_DOT
|
|
2030
|
-
const qmarkNoDot = opts.dot ? QMARK$1 : QMARK_NO_DOT
|
|
2031
|
-
let star = opts.bash === true ? globstar(opts) : STAR
|
|
2009
|
+
const nodot = opts.dot ? "" : NO_DOT;
|
|
2010
|
+
const qmarkNoDot = opts.dot ? QMARK$1 : QMARK_NO_DOT;
|
|
2011
|
+
let star = opts.bash === true ? globstar(opts) : STAR;
|
|
2032
2012
|
if (opts.capture) star = `(${star})`;
|
|
2033
2013
|
if (typeof opts.noext === "boolean") opts.noextglob = opts.noext;
|
|
2034
2014
|
const state = {
|
|
@@ -2151,13 +2131,10 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2151
2131
|
let extglobStar = star;
|
|
2152
2132
|
if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
|
|
2153
2133
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
2154
|
-
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
}).output;
|
|
2159
|
-
output = token.close = `)${expression})${extglobStar})`;
|
|
2160
|
-
}
|
|
2134
|
+
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse$1(rest, {
|
|
2135
|
+
...options$1,
|
|
2136
|
+
fastpaths: false
|
|
2137
|
+
}).output})${extglobStar})`;
|
|
2161
2138
|
if (token.prev.type === "bos") state.negatedExtglob = true;
|
|
2162
2139
|
}
|
|
2163
2140
|
push({
|
|
@@ -2251,8 +2228,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2251
2228
|
if (inner.includes(":")) {
|
|
2252
2229
|
const idx = prev.value.lastIndexOf("[");
|
|
2253
2230
|
const pre = prev.value.slice(0, idx);
|
|
2254
|
-
const
|
|
2255
|
-
const posix = POSIX_REGEX_SOURCE[rest$1];
|
|
2231
|
+
const posix = POSIX_REGEX_SOURCE[prev.value.slice(idx + 2)];
|
|
2256
2232
|
if (posix) {
|
|
2257
2233
|
prev.value = pre + posix;
|
|
2258
2234
|
state.backtrack = true;
|
|
@@ -2500,8 +2476,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2500
2476
|
* Question marks
|
|
2501
2477
|
*/
|
|
2502
2478
|
if (value === "?") {
|
|
2503
|
-
|
|
2504
|
-
if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
|
|
2479
|
+
if (!(prev && prev.value === "(") && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
|
|
2505
2480
|
extglobOpen("qmark", value);
|
|
2506
2481
|
continue;
|
|
2507
2482
|
}
|
|
@@ -2521,7 +2496,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2521
2496
|
push({
|
|
2522
2497
|
type: "qmark",
|
|
2523
2498
|
value,
|
|
2524
|
-
output: QMARK_NO_DOT
|
|
2499
|
+
output: QMARK_NO_DOT
|
|
2525
2500
|
});
|
|
2526
2501
|
continue;
|
|
2527
2502
|
}
|
|
@@ -2740,11 +2715,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2740
2715
|
}
|
|
2741
2716
|
if (state.index === state.start || prev.type === "slash" || prev.type === "dot") {
|
|
2742
2717
|
if (prev.type === "dot") {
|
|
2743
|
-
state.output += NO_DOT_SLASH
|
|
2744
|
-
prev.output += NO_DOT_SLASH
|
|
2718
|
+
state.output += NO_DOT_SLASH;
|
|
2719
|
+
prev.output += NO_DOT_SLASH;
|
|
2745
2720
|
} else if (opts.dot === true) {
|
|
2746
|
-
state.output += NO_DOTS_SLASH
|
|
2747
|
-
prev.output += NO_DOTS_SLASH
|
|
2721
|
+
state.output += NO_DOTS_SLASH;
|
|
2722
|
+
prev.output += NO_DOTS_SLASH;
|
|
2748
2723
|
} else {
|
|
2749
2724
|
state.output += nodot;
|
|
2750
2725
|
prev.output += nodot;
|
|
@@ -2797,15 +2772,15 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2797
2772
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
2798
2773
|
input = REPLACEMENTS[input] || input;
|
|
2799
2774
|
const win32$1 = utils$12.isWindows(options$1);
|
|
2800
|
-
const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT
|
|
2801
|
-
const nodot = opts.dot ? NO_DOTS
|
|
2802
|
-
const slashDot = opts.dot ? NO_DOTS_SLASH
|
|
2775
|
+
const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR: START_ANCHOR$1 } = constants$1.globChars(win32$1);
|
|
2776
|
+
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
2777
|
+
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
2803
2778
|
const capture = opts.capture ? "" : "?:";
|
|
2804
2779
|
const state = {
|
|
2805
2780
|
negated: false,
|
|
2806
2781
|
prefix: ""
|
|
2807
2782
|
};
|
|
2808
|
-
let star = opts.bash === true ? ".*?" : STAR
|
|
2783
|
+
let star = opts.bash === true ? ".*?" : STAR;
|
|
2809
2784
|
if (opts.capture) star = `(${star})`;
|
|
2810
2785
|
const globstar = (opts$1) => {
|
|
2811
2786
|
if (opts$1.noglobstar === true) return star;
|
|
@@ -2830,8 +2805,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2830
2805
|
}
|
|
2831
2806
|
}
|
|
2832
2807
|
};
|
|
2833
|
-
|
|
2834
|
-
let source = create(output);
|
|
2808
|
+
let source = create(utils$12.removePrefix(input, state));
|
|
2835
2809
|
if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL$1}?`;
|
|
2836
2810
|
return source;
|
|
2837
2811
|
};
|
|
@@ -2980,8 +2954,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2980
2954
|
* @api public
|
|
2981
2955
|
*/
|
|
2982
2956
|
picomatch$1.matchBase = (input, glob, options$1, posix = utils$11.isWindows(options$1)) => {
|
|
2983
|
-
|
|
2984
|
-
return regex.test(path$7.basename(input));
|
|
2957
|
+
return (glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options$1)).test(path$7.basename(input));
|
|
2985
2958
|
};
|
|
2986
2959
|
/**
|
|
2987
2960
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -3188,8 +3161,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3188
3161
|
if (negated) negatives++;
|
|
3189
3162
|
for (let item of list) {
|
|
3190
3163
|
let matched = isMatch(item, true);
|
|
3191
|
-
|
|
3192
|
-
if (!match) continue;
|
|
3164
|
+
if (!(negated ? !matched.isMatch : matched.isMatch)) continue;
|
|
3193
3165
|
if (negated) omit.add(matched.output);
|
|
3194
3166
|
else {
|
|
3195
3167
|
omit.delete(matched.output);
|
|
@@ -3197,8 +3169,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3197
3169
|
}
|
|
3198
3170
|
}
|
|
3199
3171
|
}
|
|
3200
|
-
let
|
|
3201
|
-
let matches = result.filter((item) => !omit.has(item));
|
|
3172
|
+
let matches = (negatives === patterns.length ? [...items] : [...keep]).filter((item) => !omit.has(item));
|
|
3202
3173
|
if (options$1 && matches.length === 0) {
|
|
3203
3174
|
if (options$1.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
3204
3175
|
if (options$1.nonull === true || options$1.nullglob === true) return options$1.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
|
|
@@ -3444,11 +3415,10 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3444
3415
|
*/
|
|
3445
3416
|
micromatch$1.capture = (glob, input, options$1) => {
|
|
3446
3417
|
let posix = utils$10.isWindows(options$1);
|
|
3447
|
-
let
|
|
3418
|
+
let match = picomatch.makeRe(String(glob), {
|
|
3448
3419
|
...options$1,
|
|
3449
3420
|
capture: true
|
|
3450
|
-
});
|
|
3451
|
-
let match = regex.exec(posix ? utils$10.toPosixSlashes(input) : input);
|
|
3421
|
+
}).exec(posix ? utils$10.toPosixSlashes(input) : input);
|
|
3452
3422
|
if (match) return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
3453
3423
|
};
|
|
3454
3424
|
/**
|
|
@@ -3541,7 +3511,6 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3541
3511
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
3542
3512
|
var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js": ((exports) => {
|
|
3543
3513
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3544
|
-
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
3545
3514
|
const path$6 = __require("path");
|
|
3546
3515
|
const globParent = require_glob_parent();
|
|
3547
3516
|
const micromatch = require_micromatch();
|
|
@@ -3732,8 +3701,7 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3732
3701
|
//#endregion
|
|
3733
3702
|
//#region ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
|
|
3734
3703
|
var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js": ((exports, module) => {
|
|
3735
|
-
const
|
|
3736
|
-
const PassThrough = Stream.PassThrough;
|
|
3704
|
+
const PassThrough = __require("stream").PassThrough;
|
|
3737
3705
|
const slice = Array.prototype.slice;
|
|
3738
3706
|
module.exports = merge2$1;
|
|
3739
3707
|
function merge2$1() {
|
|
@@ -3815,7 +3783,6 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
|
|
|
3815
3783
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
3816
3784
|
var require_stream$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js": ((exports) => {
|
|
3817
3785
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3818
|
-
exports.merge = void 0;
|
|
3819
3786
|
const merge2 = require_merge2();
|
|
3820
3787
|
function merge(streams) {
|
|
3821
3788
|
const mergedStream = merge2(streams);
|
|
@@ -3836,7 +3803,6 @@ var require_stream$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
3836
3803
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
3837
3804
|
var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js": ((exports) => {
|
|
3838
3805
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3839
|
-
exports.isEmpty = exports.isString = void 0;
|
|
3840
3806
|
function isString(input) {
|
|
3841
3807
|
return typeof input === "string";
|
|
3842
3808
|
}
|
|
@@ -3851,7 +3817,6 @@ var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
3851
3817
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
3852
3818
|
var require_utils$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js": ((exports) => {
|
|
3853
3819
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3854
|
-
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
3855
3820
|
const array = require_array();
|
|
3856
3821
|
exports.array = array;
|
|
3857
3822
|
const errno = require_errno();
|
|
@@ -3872,7 +3837,6 @@ var require_utils$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3872
3837
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
3873
3838
|
var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js": ((exports) => {
|
|
3874
3839
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3875
|
-
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
3876
3840
|
const utils$9 = require_utils$1();
|
|
3877
3841
|
function generate(input, settings) {
|
|
3878
3842
|
const patterns = processPatterns(input, settings);
|
|
@@ -3933,19 +3897,16 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3933
3897
|
}
|
|
3934
3898
|
exports.getPositivePatterns = getPositivePatterns;
|
|
3935
3899
|
function getNegativePatternsAsPositive(patterns, ignore) {
|
|
3936
|
-
|
|
3937
|
-
const positive = negative.map(utils$9.pattern.convertToPositivePattern);
|
|
3938
|
-
return positive;
|
|
3900
|
+
return utils$9.pattern.getNegativePatterns(patterns).concat(ignore).map(utils$9.pattern.convertToPositivePattern);
|
|
3939
3901
|
}
|
|
3940
3902
|
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
3941
3903
|
function groupPatternsByBaseDirectory(patterns) {
|
|
3942
|
-
const group = {};
|
|
3943
3904
|
return patterns.reduce((collection, pattern$1) => {
|
|
3944
3905
|
const base = utils$9.pattern.getBaseDirectory(pattern$1);
|
|
3945
3906
|
if (base in collection) collection[base].push(pattern$1);
|
|
3946
3907
|
else collection[base] = [pattern$1];
|
|
3947
3908
|
return collection;
|
|
3948
|
-
},
|
|
3909
|
+
}, {});
|
|
3949
3910
|
}
|
|
3950
3911
|
exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
|
3951
3912
|
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
@@ -3970,7 +3931,6 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3970
3931
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
3971
3932
|
var require_async$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js": ((exports) => {
|
|
3972
3933
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3973
|
-
exports.read = void 0;
|
|
3974
3934
|
function read$3(path$11, settings, callback) {
|
|
3975
3935
|
settings.fs.lstat(path$11, (lstatError, lstat) => {
|
|
3976
3936
|
if (lstatError !== null) {
|
|
@@ -4008,7 +3968,6 @@ var require_async$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4008
3968
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
4009
3969
|
var require_sync$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js": ((exports) => {
|
|
4010
3970
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4011
|
-
exports.read = void 0;
|
|
4012
3971
|
function read$2(path$11, settings) {
|
|
4013
3972
|
const lstat = settings.fs.lstatSync(path$11);
|
|
4014
3973
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
|
|
@@ -4067,7 +4026,6 @@ var require_settings$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
4067
4026
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
|
|
4068
4027
|
var require_out$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js": ((exports) => {
|
|
4069
4028
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4070
|
-
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
4071
4029
|
const async$1 = require_async$5();
|
|
4072
4030
|
const sync$1 = require_sync$5();
|
|
4073
4031
|
const settings_1$3 = require_settings$3();
|
|
@@ -4149,7 +4107,6 @@ var require_run_parallel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
4149
4107
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
4150
4108
|
var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js": ((exports) => {
|
|
4151
4109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4152
|
-
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4153
4110
|
const NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
4154
4111
|
if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
4155
4112
|
const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
@@ -4168,7 +4125,6 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@
|
|
|
4168
4125
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
4169
4126
|
var require_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js": ((exports) => {
|
|
4170
4127
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4171
|
-
exports.createDirentFromStats = void 0;
|
|
4172
4128
|
var DirentFromStats = class {
|
|
4173
4129
|
constructor(name, stats) {
|
|
4174
4130
|
this.name = name;
|
|
@@ -4191,7 +4147,6 @@ var require_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodel
|
|
|
4191
4147
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
4192
4148
|
var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js": ((exports) => {
|
|
4193
4149
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4194
|
-
exports.fs = void 0;
|
|
4195
4150
|
const fs$4 = require_fs$1();
|
|
4196
4151
|
exports.fs = fs$4;
|
|
4197
4152
|
}) });
|
|
@@ -4200,7 +4155,6 @@ var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@node
|
|
|
4200
4155
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
4201
4156
|
var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js": ((exports) => {
|
|
4202
4157
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4203
|
-
exports.joinPathSegments = void 0;
|
|
4204
4158
|
function joinPathSegments$1(a, b, separator) {
|
|
4205
4159
|
/**
|
|
4206
4160
|
* The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
|
|
@@ -4215,7 +4169,6 @@ var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@n
|
|
|
4215
4169
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
4216
4170
|
var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js": ((exports) => {
|
|
4217
4171
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4218
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4219
4172
|
const fsStat$5 = require_out$3();
|
|
4220
4173
|
const rpl = require_run_parallel();
|
|
4221
4174
|
const constants_1$1 = require_constants();
|
|
@@ -4244,8 +4197,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4244
4197
|
callSuccessCallback$1(callback, entries);
|
|
4245
4198
|
return;
|
|
4246
4199
|
}
|
|
4247
|
-
|
|
4248
|
-
rpl(tasks, (rplError, rplEntries) => {
|
|
4200
|
+
rpl(entries.map((entry) => makeRplTaskEntry(entry, settings)), (rplError, rplEntries) => {
|
|
4249
4201
|
if (rplError !== null) {
|
|
4250
4202
|
callFailureCallback$1(callback, rplError);
|
|
4251
4203
|
return;
|
|
@@ -4281,7 +4233,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4281
4233
|
callFailureCallback$1(callback, readdirError);
|
|
4282
4234
|
return;
|
|
4283
4235
|
}
|
|
4284
|
-
|
|
4236
|
+
rpl(names.map((name) => {
|
|
4285
4237
|
const path$11 = common$4.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4286
4238
|
return (done) => {
|
|
4287
4239
|
fsStat$5.stat(path$11, settings.fsStatSettings, (error, stats) => {
|
|
@@ -4298,8 +4250,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4298
4250
|
done(null, entry);
|
|
4299
4251
|
});
|
|
4300
4252
|
};
|
|
4301
|
-
})
|
|
4302
|
-
rpl(tasks, (rplError, entries) => {
|
|
4253
|
+
}), (rplError, entries) => {
|
|
4303
4254
|
if (rplError !== null) {
|
|
4304
4255
|
callFailureCallback$1(callback, rplError);
|
|
4305
4256
|
return;
|
|
@@ -4321,7 +4272,6 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4321
4272
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
4322
4273
|
var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js": ((exports) => {
|
|
4323
4274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4324
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4325
4275
|
const fsStat$4 = require_out$3();
|
|
4326
4276
|
const constants_1 = require_constants();
|
|
4327
4277
|
const utils$7 = require_utils();
|
|
@@ -4332,8 +4282,7 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4332
4282
|
}
|
|
4333
4283
|
exports.read = read;
|
|
4334
4284
|
function readdirWithFileTypes(directory, settings) {
|
|
4335
|
-
|
|
4336
|
-
return dirents.map((dirent) => {
|
|
4285
|
+
return settings.fs.readdirSync(directory, { withFileTypes: true }).map((dirent) => {
|
|
4337
4286
|
const entry = {
|
|
4338
4287
|
dirent,
|
|
4339
4288
|
name: dirent.name,
|
|
@@ -4350,8 +4299,7 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4350
4299
|
}
|
|
4351
4300
|
exports.readdirWithFileTypes = readdirWithFileTypes;
|
|
4352
4301
|
function readdir(directory, settings) {
|
|
4353
|
-
|
|
4354
|
-
return names.map((name) => {
|
|
4302
|
+
return settings.fs.readdirSync(directory).map((name) => {
|
|
4355
4303
|
const entryPath = common$3.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4356
4304
|
const stats = fsStat$4.statSync(entryPath, settings.fsStatSettings);
|
|
4357
4305
|
const entry = {
|
|
@@ -4419,7 +4367,6 @@ var require_settings$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
4419
4367
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
|
|
4420
4368
|
var require_out$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js": ((exports) => {
|
|
4421
4369
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4422
|
-
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
4423
4370
|
const async = require_async$4();
|
|
4424
4371
|
const sync = require_sync$4();
|
|
4425
4372
|
const settings_1$2 = require_settings$2();
|
|
@@ -4689,7 +4636,7 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4689
4636
|
return p;
|
|
4690
4637
|
}
|
|
4691
4638
|
function drained() {
|
|
4692
|
-
|
|
4639
|
+
return new Promise(function(resolve$2) {
|
|
4693
4640
|
process.nextTick(function() {
|
|
4694
4641
|
if (queue.idle()) resolve$2();
|
|
4695
4642
|
else {
|
|
@@ -4702,7 +4649,6 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4702
4649
|
}
|
|
4703
4650
|
});
|
|
4704
4651
|
});
|
|
4705
|
-
return p;
|
|
4706
4652
|
}
|
|
4707
4653
|
}
|
|
4708
4654
|
module.exports = fastqueue;
|
|
@@ -4713,7 +4659,6 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4713
4659
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
4714
4660
|
var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js": ((exports) => {
|
|
4715
4661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4716
|
-
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
4717
4662
|
function isFatalError(settings, error) {
|
|
4718
4663
|
if (settings.errorFilter === null) return true;
|
|
4719
4664
|
return !settings.errorFilter(error);
|
|
@@ -5014,7 +4959,6 @@ var require_settings$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
5014
4959
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
|
|
5015
4960
|
var require_out$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js": ((exports) => {
|
|
5016
4961
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5017
|
-
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
5018
4962
|
const async_1$2 = require_async$2();
|
|
5019
4963
|
const stream_1$4 = require_stream$2();
|
|
5020
4964
|
const sync_1$2 = require_sync$2();
|
|
@@ -5030,14 +4974,12 @@ var require_out$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@node
|
|
|
5030
4974
|
exports.walk = walk;
|
|
5031
4975
|
function walkSync(directory, optionsOrSettings) {
|
|
5032
4976
|
const settings = getSettings(optionsOrSettings);
|
|
5033
|
-
|
|
5034
|
-
return provider.read();
|
|
4977
|
+
return new sync_1$2.default(directory, settings).read();
|
|
5035
4978
|
}
|
|
5036
4979
|
exports.walkSync = walkSync;
|
|
5037
4980
|
function walkStream(directory, optionsOrSettings) {
|
|
5038
4981
|
const settings = getSettings(optionsOrSettings);
|
|
5039
|
-
|
|
5040
|
-
return provider.read();
|
|
4982
|
+
return new stream_1$4.default(directory, settings).read();
|
|
5041
4983
|
}
|
|
5042
4984
|
exports.walkStream = walkStream;
|
|
5043
4985
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -5188,10 +5130,8 @@ var require_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5188
5130
|
}
|
|
5189
5131
|
}
|
|
5190
5132
|
_getPatternSegments(pattern$1) {
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
const dynamic = utils$5.pattern.isDynamicPattern(part, this._settings);
|
|
5194
|
-
if (!dynamic) return {
|
|
5133
|
+
return utils$5.pattern.getPatternParts(pattern$1, this._micromatchOptions).map((part) => {
|
|
5134
|
+
if (!utils$5.pattern.isDynamicPattern(part, this._settings)) return {
|
|
5195
5135
|
dynamic: false,
|
|
5196
5136
|
pattern: part
|
|
5197
5137
|
};
|
|
@@ -5229,13 +5169,12 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5229
5169
|
* ^ true/false ^ always true
|
|
5230
5170
|
*/
|
|
5231
5171
|
if (!pattern$1.complete && levels > section.length) return true;
|
|
5232
|
-
|
|
5172
|
+
if (parts.every((part, index) => {
|
|
5233
5173
|
const segment = pattern$1.segments[index];
|
|
5234
5174
|
if (segment.dynamic && segment.patternRe.test(part)) return true;
|
|
5235
5175
|
if (!segment.dynamic && segment.pattern === part) return true;
|
|
5236
5176
|
return false;
|
|
5237
|
-
});
|
|
5238
|
-
if (match) return true;
|
|
5177
|
+
})) return true;
|
|
5239
5178
|
}
|
|
5240
5179
|
return false;
|
|
5241
5180
|
}
|
|
@@ -5283,8 +5222,7 @@ var require_deep = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
5283
5222
|
_getEntryLevel(basePath, entryPath) {
|
|
5284
5223
|
const entryPathDepth = entryPath.split("/").length;
|
|
5285
5224
|
if (basePath === "") return entryPathDepth;
|
|
5286
|
-
|
|
5287
|
-
return entryPathDepth - basePathDepth;
|
|
5225
|
+
return entryPathDepth - basePath.split("/").length;
|
|
5288
5226
|
}
|
|
5289
5227
|
_isSkippedSymbolicLink(entry) {
|
|
5290
5228
|
return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
|
|
@@ -5342,12 +5280,9 @@ var require_entry$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5342
5280
|
return this._settings.onlyDirectories && !entry.dirent.isDirectory();
|
|
5343
5281
|
}
|
|
5344
5282
|
_isMatchToPatternsSet(filepath, patterns, isDirectory) {
|
|
5345
|
-
|
|
5346
|
-
if (
|
|
5347
|
-
|
|
5348
|
-
if (isMatchedByRelativeNegative) return false;
|
|
5349
|
-
const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
|
|
5350
|
-
if (isMatchedByAbsoluteNegative) return false;
|
|
5283
|
+
if (!this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory)) return false;
|
|
5284
|
+
if (this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory)) return false;
|
|
5285
|
+
if (this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory)) return false;
|
|
5351
5286
|
return true;
|
|
5352
5287
|
}
|
|
5353
5288
|
_isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
|
|
@@ -5476,8 +5411,7 @@ var require_async = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5476
5411
|
async read(task) {
|
|
5477
5412
|
const root = this._getRootDirectory(task);
|
|
5478
5413
|
const options$1 = this._getReaderOptions(task);
|
|
5479
|
-
|
|
5480
|
-
return entries.map((entry) => options$1.transform(entry));
|
|
5414
|
+
return (await this.api(root, task, options$1)).map((entry) => options$1.transform(entry));
|
|
5481
5415
|
}
|
|
5482
5416
|
api(root, task, options$1) {
|
|
5483
5417
|
if (task.dynamic) return this._reader.dynamic(root, options$1);
|
|
@@ -5575,8 +5509,7 @@ var require_sync = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
5575
5509
|
read(task) {
|
|
5576
5510
|
const root = this._getRootDirectory(task);
|
|
5577
5511
|
const options$1 = this._getReaderOptions(task);
|
|
5578
|
-
|
|
5579
|
-
return entries.map(options$1.transform);
|
|
5512
|
+
return this.api(root, task, options$1).map(options$1.transform);
|
|
5580
5513
|
}
|
|
5581
5514
|
api(root, task, options$1) {
|
|
5582
5515
|
if (task.dynamic) return this._reader.dynamic(root, options$1);
|
|
@@ -5737,15 +5670,13 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5737
5670
|
return tasks.map(provider.read, provider);
|
|
5738
5671
|
}
|
|
5739
5672
|
function assertPatternsInput(input) {
|
|
5740
|
-
|
|
5741
|
-
const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
|
|
5742
|
-
if (!isValidSource) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
5673
|
+
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");
|
|
5743
5674
|
}
|
|
5744
5675
|
module.exports = FastGlob;
|
|
5745
5676
|
}) });
|
|
5746
5677
|
|
|
5747
5678
|
//#endregion
|
|
5748
|
-
//#region ../../node_modules/.pnpm/image-meta@0.2.
|
|
5679
|
+
//#region ../../node_modules/.pnpm/image-meta@0.2.2/node_modules/image-meta/dist/index.mjs
|
|
5749
5680
|
var import_out = /* @__PURE__ */ __toESM(require_out(), 1);
|
|
5750
5681
|
const decoder = new TextDecoder();
|
|
5751
5682
|
const toUTF8String = (input, start = 0, end = input.length) => decoder.decode(input.slice(start, end));
|
|
@@ -5769,8 +5700,7 @@ const methods = {
|
|
|
5769
5700
|
function readUInt(input, bits, offset, isBigEndian) {
|
|
5770
5701
|
offset = offset || 0;
|
|
5771
5702
|
const endian = isBigEndian ? "BE" : "LE";
|
|
5772
|
-
|
|
5773
|
-
return methods[methodName](input, offset);
|
|
5703
|
+
return methods["readUInt" + bits + endian](input, offset);
|
|
5774
5704
|
}
|
|
5775
5705
|
const BMP = {
|
|
5776
5706
|
validate: (input) => toUTF8String(input, 0, 2) === "BM",
|
|
@@ -5798,8 +5728,7 @@ const ICO = {
|
|
|
5798
5728
|
const reserved = readUInt16LE(input, 0);
|
|
5799
5729
|
const imageCount = readUInt16LE(input, 4);
|
|
5800
5730
|
if (reserved !== 0 || imageCount === 0) return false;
|
|
5801
|
-
|
|
5802
|
-
return imageType === TYPE_ICON;
|
|
5731
|
+
return readUInt16LE(input, 2) === TYPE_ICON;
|
|
5803
5732
|
},
|
|
5804
5733
|
calculate(input) {
|
|
5805
5734
|
const nbImages = readUInt16LE(input, 4);
|
|
@@ -5820,8 +5749,7 @@ const CUR = {
|
|
|
5820
5749
|
const reserved = readUInt16LE(input, 0);
|
|
5821
5750
|
const imageCount = readUInt16LE(input, 4);
|
|
5822
5751
|
if (reserved !== 0 || imageCount === 0) return false;
|
|
5823
|
-
|
|
5824
|
-
return imageType === TYPE_CURSOR;
|
|
5752
|
+
return readUInt16LE(input, 2) === TYPE_CURSOR;
|
|
5825
5753
|
},
|
|
5826
5754
|
calculate: (input) => ICO.calculate(input)
|
|
5827
5755
|
};
|
|
@@ -5840,6 +5768,66 @@ const GIF = {
|
|
|
5840
5768
|
width: readUInt16LE(input, 6)
|
|
5841
5769
|
})
|
|
5842
5770
|
};
|
|
5771
|
+
const HEIC = {
|
|
5772
|
+
validate: (input) => {
|
|
5773
|
+
const ftypBox = findBox$1(input, "ftyp");
|
|
5774
|
+
if (!ftypBox) return false;
|
|
5775
|
+
const majorBrand = toUTF8String(input, ftypBox.offset + 8, ftypBox.offset + 12);
|
|
5776
|
+
return [
|
|
5777
|
+
"heic",
|
|
5778
|
+
"heix",
|
|
5779
|
+
"hevc",
|
|
5780
|
+
"hevx",
|
|
5781
|
+
"mif1",
|
|
5782
|
+
"msf1"
|
|
5783
|
+
].includes(majorBrand);
|
|
5784
|
+
},
|
|
5785
|
+
calculate: (input) => {
|
|
5786
|
+
const metaBox = findBox$1(input, "meta");
|
|
5787
|
+
if (!metaBox) throw new TypeError("heic: meta box not found");
|
|
5788
|
+
const iprpBox = findBox$1(input, "iprp", metaBox.offset + 12, metaBox.offset + metaBox.size);
|
|
5789
|
+
if (!iprpBox) throw new TypeError("heic: iprp box not found");
|
|
5790
|
+
const ipcoBox = findBox$1(input, "ipco", iprpBox.offset + 8, iprpBox.offset + iprpBox.size);
|
|
5791
|
+
if (!ipcoBox) throw new TypeError("heic: ipco box not found");
|
|
5792
|
+
const dimensions = findAllBoxes(input, "ispe", ipcoBox.offset + 8, ipcoBox.offset + ipcoBox.size).map((box) => ({
|
|
5793
|
+
width: readUInt32BE(input, box.offset + 12),
|
|
5794
|
+
height: readUInt32BE(input, box.offset + 16)
|
|
5795
|
+
}));
|
|
5796
|
+
if (dimensions.length === 0) throw new TypeError("heic: ispe box not found");
|
|
5797
|
+
let largestDimension = dimensions[0];
|
|
5798
|
+
for (let i = 1; i < dimensions.length; i++) {
|
|
5799
|
+
const curr = dimensions[i];
|
|
5800
|
+
if (curr.width * curr.height > largestDimension.width * largestDimension.height) largestDimension = curr;
|
|
5801
|
+
}
|
|
5802
|
+
return largestDimension;
|
|
5803
|
+
}
|
|
5804
|
+
};
|
|
5805
|
+
function findBox$1(input, type, startOffset = 0, endOffset = input.length) {
|
|
5806
|
+
let offset = startOffset;
|
|
5807
|
+
while (offset < endOffset) {
|
|
5808
|
+
const size = readUInt32BE(input, offset);
|
|
5809
|
+
if (toUTF8String(input, offset + 4, offset + 8) === type) return {
|
|
5810
|
+
offset,
|
|
5811
|
+
size
|
|
5812
|
+
};
|
|
5813
|
+
if (size <= 0 || offset + size > endOffset) break;
|
|
5814
|
+
offset += size;
|
|
5815
|
+
}
|
|
5816
|
+
}
|
|
5817
|
+
function findAllBoxes(input, type, startOffset = 0, endOffset = input.length) {
|
|
5818
|
+
let offset = startOffset;
|
|
5819
|
+
const boxes = [];
|
|
5820
|
+
while (offset < endOffset) {
|
|
5821
|
+
const size = readUInt32BE(input, offset);
|
|
5822
|
+
if (toUTF8String(input, offset + 4, offset + 8) === type) boxes.push({
|
|
5823
|
+
offset,
|
|
5824
|
+
size
|
|
5825
|
+
});
|
|
5826
|
+
if (size <= 0 || offset + size > endOffset) break;
|
|
5827
|
+
offset += size;
|
|
5828
|
+
}
|
|
5829
|
+
return boxes;
|
|
5830
|
+
}
|
|
5843
5831
|
const SIZE_HEADER = 8;
|
|
5844
5832
|
const FILE_LENGTH_OFFSET = 4;
|
|
5845
5833
|
const ENTRY_LENGTH_OFFSET = 4;
|
|
@@ -5921,20 +5909,16 @@ const J2C = {
|
|
|
5921
5909
|
};
|
|
5922
5910
|
const BoxTypes = {
|
|
5923
5911
|
ftyp: "66747970",
|
|
5924
|
-
ihdr: "69686472",
|
|
5925
5912
|
jp2h: "6a703268",
|
|
5926
5913
|
jp__: "6a502020",
|
|
5927
|
-
rreq: "72726571"
|
|
5928
|
-
xml_: "786d6c20"
|
|
5914
|
+
rreq: "72726571"
|
|
5929
5915
|
};
|
|
5930
5916
|
const calculateRREQLength = (box) => {
|
|
5931
5917
|
const unit = box[0];
|
|
5932
5918
|
let offset = 1 + 2 * unit;
|
|
5933
|
-
const
|
|
5934
|
-
const flagsLength = numStdFlags * (2 + unit);
|
|
5919
|
+
const flagsLength = readUInt16BE(box, offset) * (2 + unit);
|
|
5935
5920
|
offset = offset + 2 + flagsLength;
|
|
5936
|
-
const
|
|
5937
|
-
const featuresLength = numVendorFeatures * (16 + unit);
|
|
5921
|
+
const featuresLength = readUInt16BE(box, offset) * (16 + unit);
|
|
5938
5922
|
return offset + 2 + featuresLength;
|
|
5939
5923
|
};
|
|
5940
5924
|
const parseIHDR = (box) => {
|
|
@@ -5950,20 +5934,16 @@ const JP2 = {
|
|
|
5950
5934
|
if (signature !== BoxTypes.jp__ || signatureLength < 1) return false;
|
|
5951
5935
|
const ftypeBoxStart = signatureLength + 4;
|
|
5952
5936
|
const ftypBoxLength = readUInt32BE(input, signatureLength);
|
|
5953
|
-
|
|
5954
|
-
return toHexString(ftypBox, 0, 4) === BoxTypes.ftyp;
|
|
5937
|
+
return toHexString(input.slice(ftypeBoxStart, ftypeBoxStart + ftypBoxLength), 0, 4) === BoxTypes.ftyp;
|
|
5955
5938
|
},
|
|
5956
5939
|
calculate(input) {
|
|
5957
5940
|
const signatureLength = readUInt32BE(input, 0);
|
|
5958
5941
|
const ftypBoxLength = readUInt16BE(input, signatureLength + 2);
|
|
5959
5942
|
let offset = signatureLength + 4 + ftypBoxLength;
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
const MAGIC = 4;
|
|
5964
|
-
offset = offset + 4 + MAGIC + calculateRREQLength(input.slice(offset + 4));
|
|
5943
|
+
switch (toHexString(input, offset, offset + 4)) {
|
|
5944
|
+
case BoxTypes.rreq:
|
|
5945
|
+
offset = offset + 4 + 4 + calculateRREQLength(input.slice(offset + 4));
|
|
5965
5946
|
return parseIHDR(input.slice(offset + 8, offset + 24));
|
|
5966
|
-
}
|
|
5967
5947
|
case BoxTypes.jp2h: return parseIHDR(input.slice(offset + 8, offset + 24));
|
|
5968
5948
|
default: throw new TypeError("Unsupported header found: " + toUTF8String(input, offset, offset + 4));
|
|
5969
5949
|
}
|
|
@@ -5987,20 +5967,16 @@ function extractSize(input, index) {
|
|
|
5987
5967
|
};
|
|
5988
5968
|
}
|
|
5989
5969
|
function extractOrientation(exifBlock, isBigEndian) {
|
|
5990
|
-
const
|
|
5991
|
-
const offset = EXIF_HEADER_BYTES + idfOffset;
|
|
5970
|
+
const offset = EXIF_HEADER_BYTES + 8;
|
|
5992
5971
|
const idfDirectoryEntries = readUInt(exifBlock, 16, offset, isBigEndian);
|
|
5993
5972
|
for (let directoryEntryNumber = 0; directoryEntryNumber < idfDirectoryEntries; directoryEntryNumber++) {
|
|
5994
5973
|
const start = offset + NUM_DIRECTORY_ENTRIES_BYTES + directoryEntryNumber * IDF_ENTRY_BYTES;
|
|
5995
5974
|
const end = start + IDF_ENTRY_BYTES;
|
|
5996
5975
|
if (start > exifBlock.length) return;
|
|
5997
5976
|
const block = exifBlock.slice(start, end);
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
if (dataFormat !== 3) return;
|
|
6002
|
-
const numberOfComponents = readUInt(block, 32, 4, isBigEndian);
|
|
6003
|
-
if (numberOfComponents !== 1) return;
|
|
5977
|
+
if (readUInt(block, 16, 0, isBigEndian) === 274) {
|
|
5978
|
+
if (readUInt(block, 16, 2, isBigEndian) !== 3) return;
|
|
5979
|
+
if (readUInt(block, 32, 4, isBigEndian) !== 1) return;
|
|
6004
5980
|
return readUInt(block, 16, 8, isBigEndian);
|
|
6005
5981
|
}
|
|
6006
5982
|
}
|
|
@@ -6009,8 +5985,7 @@ function validateExifBlock(input, index) {
|
|
|
6009
5985
|
const exifBlock = input.slice(APP1_DATA_SIZE_BYTES, index);
|
|
6010
5986
|
const byteAlign = toHexString(exifBlock, EXIF_HEADER_BYTES, EXIF_HEADER_BYTES + TIFF_BYTE_ALIGN_BYTES);
|
|
6011
5987
|
const isBigEndian = byteAlign === BIG_ENDIAN_BYTE_ALIGN;
|
|
6012
|
-
|
|
6013
|
-
if (isBigEndian || isLittleEndian) return extractOrientation(exifBlock, isBigEndian);
|
|
5988
|
+
if (isBigEndian || byteAlign === LITTLE_ENDIAN_BYTE_ALIGN) return extractOrientation(exifBlock, isBigEndian);
|
|
6014
5989
|
}
|
|
6015
5990
|
function validateInput(input, index) {
|
|
6016
5991
|
if (index > input.length) throw new TypeError("Corrupt JPG, exceeded buffer limits");
|
|
@@ -6116,11 +6091,9 @@ const handlers = {
|
|
|
6116
6091
|
const PNM = {
|
|
6117
6092
|
validate: (input) => toUTF8String(input, 0, 2) in PNMTypes,
|
|
6118
6093
|
calculate(input) {
|
|
6119
|
-
const
|
|
6120
|
-
const type = PNMTypes[signature];
|
|
6094
|
+
const type = PNMTypes[toUTF8String(input, 0, 2)];
|
|
6121
6095
|
const lines = toUTF8String(input, 3).split(/[\n\r]+/);
|
|
6122
|
-
|
|
6123
|
-
return handler(lines);
|
|
6096
|
+
return (handlers[type] || handlers.default)(lines);
|
|
6124
6097
|
}
|
|
6125
6098
|
};
|
|
6126
6099
|
const PSD = {
|
|
@@ -6152,7 +6125,7 @@ const units = {
|
|
|
6152
6125
|
const unitsReg = /* @__PURE__ */ new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(units).join("|")})?$`);
|
|
6153
6126
|
function parseLength(len) {
|
|
6154
6127
|
const m = unitsReg.exec(len);
|
|
6155
|
-
if (!m) return
|
|
6128
|
+
if (!m) return;
|
|
6156
6129
|
return Math.round(Number(m[1]) * (units[m[2]] || 1));
|
|
6157
6130
|
}
|
|
6158
6131
|
function parseViewbox(viewbox) {
|
|
@@ -6225,8 +6198,7 @@ function readIFD(buffer, isBigEndian) {
|
|
|
6225
6198
|
}
|
|
6226
6199
|
function readValue(buffer, isBigEndian) {
|
|
6227
6200
|
const low = readUInt(buffer, 16, 8, isBigEndian);
|
|
6228
|
-
|
|
6229
|
-
return (high << 16) + low;
|
|
6201
|
+
return (readUInt(buffer, 16, 10, isBigEndian) << 16) + low;
|
|
6230
6202
|
}
|
|
6231
6203
|
function nextTag(buffer) {
|
|
6232
6204
|
if (buffer.length > 24) return buffer.slice(12);
|
|
@@ -6256,8 +6228,7 @@ const TIFF = {
|
|
|
6256
6228
|
validate: (input) => signatures.has(toHexString(input, 0, 4)),
|
|
6257
6229
|
calculate(input) {
|
|
6258
6230
|
const isBigEndian = determineEndianness(input) === "BE";
|
|
6259
|
-
const
|
|
6260
|
-
const tags = extractTags(ifdBuffer, isBigEndian);
|
|
6231
|
+
const tags = extractTags(readIFD(input, isBigEndian), isBigEndian);
|
|
6261
6232
|
const width = tags[256];
|
|
6262
6233
|
const height = tags[257];
|
|
6263
6234
|
if (!width || !height) throw new TypeError("Invalid Tiff. Missing tags");
|
|
@@ -6315,19 +6286,16 @@ const AVIF = {
|
|
|
6315
6286
|
const iprpBox = findBox(input, "iprp", metaBox.offset + 12, metaBox.offset + metaBox.size);
|
|
6316
6287
|
const ipcoBox = findBox(input, "ipco", iprpBox.offset + 8, iprpBox.offset + iprpBox.size);
|
|
6317
6288
|
const ispeBox = findBox(input, "ispe", ipcoBox.offset + 8, ipcoBox.offset + ipcoBox.size);
|
|
6318
|
-
const width = readUInt32BE(input, ispeBox.offset + 12);
|
|
6319
|
-
const height = readUInt32BE(input, ispeBox.offset + 16);
|
|
6320
6289
|
return {
|
|
6321
|
-
width,
|
|
6322
|
-
height
|
|
6290
|
+
width: readUInt32BE(input, ispeBox.offset + 12),
|
|
6291
|
+
height: readUInt32BE(input, ispeBox.offset + 16)
|
|
6323
6292
|
};
|
|
6324
6293
|
}
|
|
6325
6294
|
};
|
|
6326
6295
|
function findBox(input, type, startOffset = 0, endOffset = input.length) {
|
|
6327
6296
|
for (let offset = startOffset; offset < endOffset;) {
|
|
6328
6297
|
const size = readUInt32BE(input, offset);
|
|
6329
|
-
|
|
6330
|
-
if (boxType === type) return {
|
|
6298
|
+
if (toUTF8String(input, offset + 4, offset + 8) === type) return {
|
|
6331
6299
|
offset,
|
|
6332
6300
|
size
|
|
6333
6301
|
};
|
|
@@ -6341,6 +6309,7 @@ const typeHandlers = {
|
|
|
6341
6309
|
cur: CUR,
|
|
6342
6310
|
dds: DDS,
|
|
6343
6311
|
gif: GIF,
|
|
6312
|
+
heic: HEIC,
|
|
6344
6313
|
icns: ICNS,
|
|
6345
6314
|
ico: ICO,
|
|
6346
6315
|
j2c: J2C,
|
|
@@ -6427,8 +6396,7 @@ const join = function(...segments) {
|
|
|
6427
6396
|
if (path$11.length > 0) {
|
|
6428
6397
|
const pathTrailing = path$11[path$11.length - 1] === "/";
|
|
6429
6398
|
const segLeading = seg[0] === "/";
|
|
6430
|
-
|
|
6431
|
-
if (both) path$11 += seg.slice(1);
|
|
6399
|
+
if (pathTrailing && segLeading) path$11 += seg.slice(1);
|
|
6432
6400
|
else path$11 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
6433
6401
|
} else path$11 += seg;
|
|
6434
6402
|
}
|
|
@@ -6519,8 +6487,26 @@ const relative = function(from, to) {
|
|
|
6519
6487
|
};
|
|
6520
6488
|
|
|
6521
6489
|
//#endregion
|
|
6522
|
-
//#region ../../node_modules/.pnpm/perfect-debounce@
|
|
6490
|
+
//#region ../../node_modules/.pnpm/perfect-debounce@2.0.0/node_modules/perfect-debounce/dist/index.mjs
|
|
6523
6491
|
const DEBOUNCE_DEFAULTS = { trailing: true };
|
|
6492
|
+
/**
|
|
6493
|
+
Debounce functions
|
|
6494
|
+
@param fn - Promise-returning/async function to debounce.
|
|
6495
|
+
@param wait - Milliseconds to wait before calling `fn`. Default value is 25ms
|
|
6496
|
+
@returns A function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.
|
|
6497
|
+
@example
|
|
6498
|
+
```
|
|
6499
|
+
import { debounce } from 'perfect-debounce';
|
|
6500
|
+
const expensiveCall = async input => input;
|
|
6501
|
+
const debouncedFn = debounce(expensiveCall, 200);
|
|
6502
|
+
for (const number of [1, 2, 3]) {
|
|
6503
|
+
console.log(await debouncedFn(number));
|
|
6504
|
+
}
|
|
6505
|
+
//=> 1
|
|
6506
|
+
//=> 2
|
|
6507
|
+
//=> 3
|
|
6508
|
+
```
|
|
6509
|
+
*/
|
|
6524
6510
|
function debounce(fn, wait = 25, options$1 = {}) {
|
|
6525
6511
|
options$1 = {
|
|
6526
6512
|
...DEBOUNCE_DEFAULTS,
|
|
@@ -6544,17 +6530,16 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6544
6530
|
});
|
|
6545
6531
|
return currentPromise;
|
|
6546
6532
|
};
|
|
6547
|
-
|
|
6548
|
-
if (
|
|
6549
|
-
|
|
6550
|
-
return currentPromise;
|
|
6551
|
-
}
|
|
6533
|
+
const debounced = function(...args) {
|
|
6534
|
+
if (options$1.trailing) trailingArgs = args;
|
|
6535
|
+
if (currentPromise) return currentPromise;
|
|
6552
6536
|
return new Promise((resolve$2) => {
|
|
6553
6537
|
const shouldCallNow = !timeout && options$1.leading;
|
|
6554
6538
|
clearTimeout(timeout);
|
|
6555
6539
|
timeout = setTimeout(() => {
|
|
6556
6540
|
timeout = null;
|
|
6557
6541
|
const promise$1 = options$1.leading ? leadingValue : applyFn(this, args);
|
|
6542
|
+
trailingArgs = null;
|
|
6558
6543
|
for (const _resolve of resolveList) _resolve(promise$1);
|
|
6559
6544
|
resolveList = [];
|
|
6560
6545
|
}, wait);
|
|
@@ -6564,6 +6549,26 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6564
6549
|
} else resolveList.push(resolve$2);
|
|
6565
6550
|
});
|
|
6566
6551
|
};
|
|
6552
|
+
const _clearTimeout = (timer) => {
|
|
6553
|
+
if (timer) {
|
|
6554
|
+
clearTimeout(timer);
|
|
6555
|
+
timeout = null;
|
|
6556
|
+
}
|
|
6557
|
+
};
|
|
6558
|
+
debounced.isPending = () => !!timeout;
|
|
6559
|
+
debounced.cancel = () => {
|
|
6560
|
+
_clearTimeout(timeout);
|
|
6561
|
+
resolveList = [];
|
|
6562
|
+
trailingArgs = null;
|
|
6563
|
+
};
|
|
6564
|
+
debounced.flush = () => {
|
|
6565
|
+
_clearTimeout(timeout);
|
|
6566
|
+
if (!trailingArgs || currentPromise) return;
|
|
6567
|
+
const args = trailingArgs;
|
|
6568
|
+
trailingArgs = null;
|
|
6569
|
+
return applyFn(this, args);
|
|
6570
|
+
};
|
|
6571
|
+
return debounced;
|
|
6567
6572
|
}
|
|
6568
6573
|
async function _applyPromised(fn, _this, args) {
|
|
6569
6574
|
return await fn.apply(_this, args);
|
|
@@ -6626,8 +6631,7 @@ function getAssetsFunctions(ctx) {
|
|
|
6626
6631
|
}
|
|
6627
6632
|
async function getAssetImporters(url) {
|
|
6628
6633
|
const importers = [];
|
|
6629
|
-
const
|
|
6630
|
-
const module$1 = await moduleGraph.getModuleByUrl(url);
|
|
6634
|
+
const module$1 = await server.moduleGraph.getModuleByUrl(url);
|
|
6631
6635
|
if (module$1) for (const importer of module$1.importers) importers.push({
|
|
6632
6636
|
url: importer.url,
|
|
6633
6637
|
id: importer.id
|
|
@@ -6657,16 +6661,15 @@ function getAssetsFunctions(ctx) {
|
|
|
6657
6661
|
} catch (e) {
|
|
6658
6662
|
_imageMetaCache.set(filepath, void 0);
|
|
6659
6663
|
console.error(e);
|
|
6660
|
-
return
|
|
6664
|
+
return;
|
|
6661
6665
|
}
|
|
6662
6666
|
},
|
|
6663
6667
|
async getTextAssetContent(filepath, limit = 300) {
|
|
6664
6668
|
try {
|
|
6665
|
-
|
|
6666
|
-
return content.slice(0, limit);
|
|
6669
|
+
return (await fsp.readFile(filepath, "utf-8")).slice(0, limit);
|
|
6667
6670
|
} catch (e) {
|
|
6668
6671
|
console.error(e);
|
|
6669
|
-
return
|
|
6672
|
+
return;
|
|
6670
6673
|
}
|
|
6671
6674
|
}
|
|
6672
6675
|
};
|
|
@@ -6701,7 +6704,7 @@ function getGraphFunctions(ctx) {
|
|
|
6701
6704
|
const filteredModules = modules.filter((m) => {
|
|
6702
6705
|
return m.id.match(/\.(vue|js|ts|jsx|tsx|html|json)($|\?v=)/);
|
|
6703
6706
|
});
|
|
6704
|
-
|
|
6707
|
+
return filteredModules.map((i) => {
|
|
6705
6708
|
function searchForVueDeps(id, seen = /* @__PURE__ */ new Set()) {
|
|
6706
6709
|
if (seen.has(id)) return [];
|
|
6707
6710
|
seen.add(id);
|
|
@@ -6717,7 +6720,6 @@ function getGraphFunctions(ctx) {
|
|
|
6717
6720
|
deps: searchForVueDeps(i.id)
|
|
6718
6721
|
};
|
|
6719
6722
|
});
|
|
6720
|
-
return graph;
|
|
6721
6723
|
} };
|
|
6722
6724
|
}
|
|
6723
6725
|
|
|
@@ -6743,8 +6745,7 @@ function removeUrlQuery(url) {
|
|
|
6743
6745
|
//#endregion
|
|
6744
6746
|
//#region src/vite.ts
|
|
6745
6747
|
function getVueDevtoolsPath() {
|
|
6746
|
-
|
|
6747
|
-
return pluginPath.replace(/\/dist$/, "//src");
|
|
6748
|
+
return normalizePath(path.dirname(fileURLToPath(import.meta.url))).replace(/\/dist$/, "//src");
|
|
6748
6749
|
}
|
|
6749
6750
|
const toggleComboKeysMap = {
|
|
6750
6751
|
option: process.platform === "darwin" ? "Option(⌥)" : "Alt(⌥)",
|
|
@@ -6782,12 +6783,11 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6782
6783
|
}
|
|
6783
6784
|
}));
|
|
6784
6785
|
setViteServerContext(server);
|
|
6785
|
-
|
|
6786
|
+
createViteServerRpc(getRpcFunctions({
|
|
6786
6787
|
rpc: inspect.api.rpc,
|
|
6787
6788
|
server,
|
|
6788
6789
|
config
|
|
6789
|
-
});
|
|
6790
|
-
createViteServerRpc(rpcFunctions);
|
|
6790
|
+
}));
|
|
6791
6791
|
const _printUrls = server.printUrls;
|
|
6792
6792
|
const colorUrl = (url) => cyan(url.replace(/:(\d+)\//, (_, port) => `:${bold(port)}/`));
|
|
6793
6793
|
server.printUrls = () => {
|
|
@@ -6815,10 +6815,7 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6815
6815
|
},
|
|
6816
6816
|
async resolveId(importee) {
|
|
6817
6817
|
if (importee === devtoolsOptionsImportee) return resolvedDevtoolsOptions;
|
|
6818
|
-
else if (importee.startsWith("virtual:vue-devtools-path:")) {
|
|
6819
|
-
const resolved = importee.replace("virtual:vue-devtools-path:", `${vueDevtoolsPath}/`);
|
|
6820
|
-
return `${resolved}${devtoolsNextResourceSymbol}`;
|
|
6821
|
-
}
|
|
6818
|
+
else if (importee.startsWith("virtual:vue-devtools-path:")) return `${importee.replace("virtual:vue-devtools-path:", `${vueDevtoolsPath}/`)}${devtoolsNextResourceSymbol}`;
|
|
6822
6819
|
},
|
|
6823
6820
|
async load(id) {
|
|
6824
6821
|
if (id === resolvedDevtoolsOptions) return `export default ${JSON.stringify({
|