@stencil/core 4.21.0-dev.1725512505.6ef1334 → 4.21.0-dev.1725858117.8f0a882
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +3103 -5
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +47 -45
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +2 -2
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
package/compiler/stencil.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Compiler v4.21.0-dev.
|
|
2
|
+
Stencil Compiler v4.21.0-dev.1725858117.8f0a882 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -45,6 +45,14 @@ var __privateGet = (obj, member2, getter) => (__accessCheck(obj, member2, "read
|
|
|
45
45
|
var __privateAdd = (obj, member2, value) => member2.has(obj) ? __typeError("Cannot add the same private member more than once") : member2 instanceof WeakSet ? member2.add(obj) : member2.set(obj, value);
|
|
46
46
|
var __privateSet = (obj, member2, value, setter) => (__accessCheck(obj, member2, "write to private field"), setter ? setter.call(obj, value) : member2.set(obj, value), value);
|
|
47
47
|
var __privateMethod = (obj, member2, method) => (__accessCheck(obj, member2, "access private method"), method);
|
|
48
|
+
var __privateWrapper = (obj, member2, setter, getter) => ({
|
|
49
|
+
set _(value) {
|
|
50
|
+
__privateSet(obj, member2, value, setter);
|
|
51
|
+
},
|
|
52
|
+
get _() {
|
|
53
|
+
return __privateGet(obj, member2, getter);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
48
56
|
|
|
49
57
|
// node_modules/source-map/lib/base64.js
|
|
50
58
|
var require_base64 = __commonJS({
|
|
@@ -209983,6 +209991,3085 @@ var require_commondir = __commonJS({
|
|
|
209983
209991
|
}
|
|
209984
209992
|
});
|
|
209985
209993
|
|
|
209994
|
+
// sys/node/glob.js
|
|
209995
|
+
var require_glob = __commonJS({
|
|
209996
|
+
"sys/node/glob.js"(exports2) {
|
|
209997
|
+
"use strict";
|
|
209998
|
+
(() => {
|
|
209999
|
+
var t = { 505: (t2) => {
|
|
210000
|
+
"use strict";
|
|
210001
|
+
function e2(t3, e3, r2) {
|
|
210002
|
+
t3 instanceof RegExp && (t3 = s2(t3, r2)), e3 instanceof RegExp && (e3 = s2(e3, r2));
|
|
210003
|
+
var n3 = i2(t3, e3, r2);
|
|
210004
|
+
return n3 && { start: n3[0], end: n3[1], pre: r2.slice(0, n3[0]), body: r2.slice(n3[0] + t3.length, n3[1]), post: r2.slice(n3[1] + e3.length) };
|
|
210005
|
+
}
|
|
210006
|
+
function s2(t3, e3) {
|
|
210007
|
+
var s3 = e3.match(t3);
|
|
210008
|
+
return s3 ? s3[0] : null;
|
|
210009
|
+
}
|
|
210010
|
+
function i2(t3, e3, s3) {
|
|
210011
|
+
var i3, r2, n3, o, h, a = s3.indexOf(t3), l = s3.indexOf(e3, a + 1), c = a;
|
|
210012
|
+
if (a >= 0 && l > 0) {
|
|
210013
|
+
if (t3 === e3) return [a, l];
|
|
210014
|
+
for (i3 = [], n3 = s3.length; c >= 0 && !h; ) c == a ? (i3.push(c), a = s3.indexOf(t3, c + 1)) : 1 == i3.length ? h = [i3.pop(), l] : ((r2 = i3.pop()) < n3 && (n3 = r2, o = l), l = s3.indexOf(e3, c + 1)), c = a < l && a >= 0 ? a : l;
|
|
210015
|
+
i3.length && (h = [n3, o]);
|
|
210016
|
+
}
|
|
210017
|
+
return h;
|
|
210018
|
+
}
|
|
210019
|
+
t2.exports = e2, e2.range = i2;
|
|
210020
|
+
}, 928: (t2, e2, s2) => {
|
|
210021
|
+
var i2 = s2(505);
|
|
210022
|
+
t2.exports = function(t3) {
|
|
210023
|
+
if (!t3) return [];
|
|
210024
|
+
"{}" === t3.substr(0, 2) && (t3 = "\\{\\}" + t3.substr(2));
|
|
210025
|
+
return m(function(t4) {
|
|
210026
|
+
return t4.split("\\\\").join(r2).split("\\{").join(n3).split("\\}").join(o).split("\\,").join(h).split("\\.").join(a);
|
|
210027
|
+
}(t3), true).map(c);
|
|
210028
|
+
};
|
|
210029
|
+
var r2 = "\0SLASH" + Math.random() + "\0", n3 = "\0OPEN" + Math.random() + "\0", o = "\0CLOSE" + Math.random() + "\0", h = "\0COMMA" + Math.random() + "\0", a = "\0PERIOD" + Math.random() + "\0";
|
|
210030
|
+
function l(t3) {
|
|
210031
|
+
return parseInt(t3, 10) == t3 ? parseInt(t3, 10) : t3.charCodeAt(0);
|
|
210032
|
+
}
|
|
210033
|
+
function c(t3) {
|
|
210034
|
+
return t3.split(r2).join("\\").split(n3).join("{").split(o).join("}").split(h).join(",").split(a).join(".");
|
|
210035
|
+
}
|
|
210036
|
+
function p(t3) {
|
|
210037
|
+
if (!t3) return [""];
|
|
210038
|
+
var e3 = [], s3 = i2("{", "}", t3);
|
|
210039
|
+
if (!s3) return t3.split(",");
|
|
210040
|
+
var r3 = s3.pre, n4 = s3.body, o2 = s3.post, h2 = r3.split(",");
|
|
210041
|
+
h2[h2.length - 1] += "{" + n4 + "}";
|
|
210042
|
+
var a2 = p(o2);
|
|
210043
|
+
return o2.length && (h2[h2.length - 1] += a2.shift(), h2.push.apply(h2, a2)), e3.push.apply(e3, h2), e3;
|
|
210044
|
+
}
|
|
210045
|
+
function d(t3) {
|
|
210046
|
+
return "{" + t3 + "}";
|
|
210047
|
+
}
|
|
210048
|
+
function u(t3) {
|
|
210049
|
+
return /^-?0\d/.test(t3);
|
|
210050
|
+
}
|
|
210051
|
+
function f(t3, e3) {
|
|
210052
|
+
return t3 <= e3;
|
|
210053
|
+
}
|
|
210054
|
+
function g(t3, e3) {
|
|
210055
|
+
return t3 >= e3;
|
|
210056
|
+
}
|
|
210057
|
+
function m(t3, e3) {
|
|
210058
|
+
var s3 = [], r3 = i2("{", "}", t3);
|
|
210059
|
+
if (!r3) return [t3];
|
|
210060
|
+
var n4 = r3.pre, h2 = r3.post.length ? m(r3.post, false) : [""];
|
|
210061
|
+
if (/\$$/.test(r3.pre)) for (var a2 = 0; a2 < h2.length; a2++) {
|
|
210062
|
+
var c2 = n4 + "{" + r3.body + "}" + h2[a2];
|
|
210063
|
+
s3.push(c2);
|
|
210064
|
+
}
|
|
210065
|
+
else {
|
|
210066
|
+
var y, w, b = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r3.body), v = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r3.body), S = b || v, k = r3.body.indexOf(",") >= 0;
|
|
210067
|
+
if (!S && !k) return r3.post.match(/,.*\}/) ? m(t3 = r3.pre + "{" + r3.body + o + r3.post) : [t3];
|
|
210068
|
+
if (S) y = r3.body.split(/\.\./);
|
|
210069
|
+
else if (1 === (y = p(r3.body)).length && 1 === (y = m(y[0], false).map(d)).length) return h2.map(function(t4) {
|
|
210070
|
+
return r3.pre + y[0] + t4;
|
|
210071
|
+
});
|
|
210072
|
+
if (S) {
|
|
210073
|
+
var x = l(y[0]), E = l(y[1]), L = Math.max(y[0].length, y[1].length), T = 3 == y.length ? Math.abs(l(y[2])) : 1, C2 = f;
|
|
210074
|
+
E < x && (T *= -1, C2 = g);
|
|
210075
|
+
var M = y.some(u);
|
|
210076
|
+
w = [];
|
|
210077
|
+
for (var A = x; C2(A, E); A += T) {
|
|
210078
|
+
var O2;
|
|
210079
|
+
if (v) "\\" === (O2 = String.fromCharCode(A)) && (O2 = "");
|
|
210080
|
+
else if (O2 = String(A), M) {
|
|
210081
|
+
var P = L - O2.length;
|
|
210082
|
+
if (P > 0) {
|
|
210083
|
+
var R = new Array(P + 1).join("0");
|
|
210084
|
+
O2 = A < 0 ? "-" + R + O2.slice(1) : R + O2;
|
|
210085
|
+
}
|
|
210086
|
+
}
|
|
210087
|
+
w.push(O2);
|
|
210088
|
+
}
|
|
210089
|
+
} else {
|
|
210090
|
+
w = [];
|
|
210091
|
+
for (var F = 0; F < y.length; F++) w.push.apply(w, m(y[F], false));
|
|
210092
|
+
}
|
|
210093
|
+
for (F = 0; F < w.length; F++) for (a2 = 0; a2 < h2.length; a2++) {
|
|
210094
|
+
c2 = n4 + w[F] + h2[a2];
|
|
210095
|
+
(!e3 || S || c2) && s3.push(c2);
|
|
210096
|
+
}
|
|
210097
|
+
}
|
|
210098
|
+
return s3;
|
|
210099
|
+
}
|
|
210100
|
+
}, 207: (t2, e2, s2) => {
|
|
210101
|
+
t2.exports = s2(756);
|
|
210102
|
+
}, 896: (t2) => {
|
|
210103
|
+
"use strict";
|
|
210104
|
+
t2.exports = require("fs");
|
|
210105
|
+
}, 474: (t2) => {
|
|
210106
|
+
"use strict";
|
|
210107
|
+
t2.exports = require("events");
|
|
210108
|
+
}, 24: (t2) => {
|
|
210109
|
+
"use strict";
|
|
210110
|
+
t2.exports = require("fs");
|
|
210111
|
+
}, 455: (t2) => {
|
|
210112
|
+
"use strict";
|
|
210113
|
+
t2.exports = require("fs/promises");
|
|
210114
|
+
}, 760: (t2) => {
|
|
210115
|
+
"use strict";
|
|
210116
|
+
t2.exports = require("path");
|
|
210117
|
+
}, 75: (t2) => {
|
|
210118
|
+
"use strict";
|
|
210119
|
+
t2.exports = require("stream");
|
|
210120
|
+
}, 193: (t2) => {
|
|
210121
|
+
"use strict";
|
|
210122
|
+
t2.exports = require("string_decoder");
|
|
210123
|
+
}, 136: (t2) => {
|
|
210124
|
+
"use strict";
|
|
210125
|
+
t2.exports = require("url");
|
|
210126
|
+
}, 876: (t2, e2, s2) => {
|
|
210127
|
+
"use strict";
|
|
210128
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Glob = void 0;
|
|
210129
|
+
const i2 = s2(722), r2 = s2(136), n3 = s2(576), o = s2(478), h = s2(984), a = "object" == typeof process && process && "string" == typeof process.platform ? process.platform : "linux";
|
|
210130
|
+
class l {
|
|
210131
|
+
absolute;
|
|
210132
|
+
cwd;
|
|
210133
|
+
root;
|
|
210134
|
+
dot;
|
|
210135
|
+
dotRelative;
|
|
210136
|
+
follow;
|
|
210137
|
+
ignore;
|
|
210138
|
+
magicalBraces;
|
|
210139
|
+
mark;
|
|
210140
|
+
matchBase;
|
|
210141
|
+
maxDepth;
|
|
210142
|
+
nobrace;
|
|
210143
|
+
nocase;
|
|
210144
|
+
nodir;
|
|
210145
|
+
noext;
|
|
210146
|
+
noglobstar;
|
|
210147
|
+
pattern;
|
|
210148
|
+
platform;
|
|
210149
|
+
realpath;
|
|
210150
|
+
scurry;
|
|
210151
|
+
stat;
|
|
210152
|
+
signal;
|
|
210153
|
+
windowsPathsNoEscape;
|
|
210154
|
+
withFileTypes;
|
|
210155
|
+
includeChildMatches;
|
|
210156
|
+
opts;
|
|
210157
|
+
patterns;
|
|
210158
|
+
constructor(t3, e3) {
|
|
210159
|
+
if (!e3) throw new TypeError("glob options required");
|
|
210160
|
+
if (this.withFileTypes = !!e3.withFileTypes, this.signal = e3.signal, this.follow = !!e3.follow, this.dot = !!e3.dot, this.dotRelative = !!e3.dotRelative, this.nodir = !!e3.nodir, this.mark = !!e3.mark, e3.cwd ? (e3.cwd instanceof URL || e3.cwd.startsWith("file://")) && (e3.cwd = (0, r2.fileURLToPath)(e3.cwd)) : this.cwd = "", this.cwd = e3.cwd || "", this.root = e3.root, this.magicalBraces = !!e3.magicalBraces, this.nobrace = !!e3.nobrace, this.noext = !!e3.noext, this.realpath = !!e3.realpath, this.absolute = e3.absolute, this.includeChildMatches = false !== e3.includeChildMatches, this.noglobstar = !!e3.noglobstar, this.matchBase = !!e3.matchBase, this.maxDepth = "number" == typeof e3.maxDepth ? e3.maxDepth : 1 / 0, this.stat = !!e3.stat, this.ignore = e3.ignore, this.withFileTypes && void 0 !== this.absolute) throw new Error("cannot set absolute and withFileTypes:true");
|
|
210161
|
+
if ("string" == typeof t3 && (t3 = [t3]), this.windowsPathsNoEscape = !!e3.windowsPathsNoEscape || false === e3.allowWindowsEscape, this.windowsPathsNoEscape && (t3 = t3.map((t4) => t4.replace(/\\/g, "/"))), this.matchBase) {
|
|
210162
|
+
if (e3.noglobstar) throw new TypeError("base matching requires globstar");
|
|
210163
|
+
t3 = t3.map((t4) => t4.includes("/") ? t4 : `./**/${t4}`);
|
|
210164
|
+
}
|
|
210165
|
+
if (this.pattern = t3, this.platform = e3.platform || a, this.opts = { ...e3, platform: this.platform }, e3.scurry) {
|
|
210166
|
+
if (this.scurry = e3.scurry, void 0 !== e3.nocase && e3.nocase !== e3.scurry.nocase) throw new Error("nocase option contradicts provided scurry option");
|
|
210167
|
+
} else {
|
|
210168
|
+
const t4 = "win32" === e3.platform ? n3.PathScurryWin32 : "darwin" === e3.platform ? n3.PathScurryDarwin : e3.platform ? n3.PathScurryPosix : n3.PathScurry;
|
|
210169
|
+
this.scurry = new t4(this.cwd, { nocase: e3.nocase, fs: e3.fs });
|
|
210170
|
+
}
|
|
210171
|
+
this.nocase = this.scurry.nocase;
|
|
210172
|
+
const s3 = "darwin" === this.platform || "win32" === this.platform, h2 = { ...e3, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: s3, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape, debug: !!this.opts.debug }, l2 = this.pattern.map((t4) => new i2.Minimatch(t4, h2)), [c, p] = l2.reduce((t4, e4) => (t4[0].push(...e4.set), t4[1].push(...e4.globParts), t4), [[], []]);
|
|
210173
|
+
this.patterns = c.map((t4, e4) => {
|
|
210174
|
+
const s4 = p[e4];
|
|
210175
|
+
if (!s4) throw new Error("invalid pattern object");
|
|
210176
|
+
return new o.Pattern(t4, s4, 0, this.platform);
|
|
210177
|
+
});
|
|
210178
|
+
}
|
|
210179
|
+
async walk() {
|
|
210180
|
+
return [...await new h.GlobWalker(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walk()];
|
|
210181
|
+
}
|
|
210182
|
+
walkSync() {
|
|
210183
|
+
return [...new h.GlobWalker(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walkSync()];
|
|
210184
|
+
}
|
|
210185
|
+
stream() {
|
|
210186
|
+
return new h.GlobStream(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).stream();
|
|
210187
|
+
}
|
|
210188
|
+
streamSync() {
|
|
210189
|
+
return new h.GlobStream(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).streamSync();
|
|
210190
|
+
}
|
|
210191
|
+
iterateSync() {
|
|
210192
|
+
return this.streamSync()[Symbol.iterator]();
|
|
210193
|
+
}
|
|
210194
|
+
[Symbol.iterator]() {
|
|
210195
|
+
return this.iterateSync();
|
|
210196
|
+
}
|
|
210197
|
+
iterate() {
|
|
210198
|
+
return this.stream()[Symbol.asyncIterator]();
|
|
210199
|
+
}
|
|
210200
|
+
[Symbol.asyncIterator]() {
|
|
210201
|
+
return this.iterate();
|
|
210202
|
+
}
|
|
210203
|
+
}
|
|
210204
|
+
e2.Glob = l;
|
|
210205
|
+
}, 46: (t2, e2, s2) => {
|
|
210206
|
+
"use strict";
|
|
210207
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.hasMagic = void 0;
|
|
210208
|
+
const i2 = s2(722);
|
|
210209
|
+
e2.hasMagic = (t3, e3 = {}) => {
|
|
210210
|
+
Array.isArray(t3) || (t3 = [t3]);
|
|
210211
|
+
for (const s3 of t3) if (new i2.Minimatch(s3, e3).hasMagic()) return true;
|
|
210212
|
+
return false;
|
|
210213
|
+
};
|
|
210214
|
+
}, 972: (t2, e2, s2) => {
|
|
210215
|
+
"use strict";
|
|
210216
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Ignore = void 0;
|
|
210217
|
+
const i2 = s2(722), r2 = s2(478), n3 = "object" == typeof process && process && "string" == typeof process.platform ? process.platform : "linux";
|
|
210218
|
+
e2.Ignore = class {
|
|
210219
|
+
relative;
|
|
210220
|
+
relativeChildren;
|
|
210221
|
+
absolute;
|
|
210222
|
+
absoluteChildren;
|
|
210223
|
+
platform;
|
|
210224
|
+
mmopts;
|
|
210225
|
+
constructor(t3, { nobrace: e3, nocase: s3, noext: i3, noglobstar: r3, platform: o = n3 }) {
|
|
210226
|
+
this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = o, this.mmopts = { dot: true, nobrace: e3, nocase: s3, noext: i3, noglobstar: r3, optimizationLevel: 2, platform: o, nocomment: true, nonegate: true };
|
|
210227
|
+
for (const e4 of t3) this.add(e4);
|
|
210228
|
+
}
|
|
210229
|
+
add(t3) {
|
|
210230
|
+
const e3 = new i2.Minimatch(t3, this.mmopts);
|
|
210231
|
+
for (let t4 = 0; t4 < e3.set.length; t4++) {
|
|
210232
|
+
const s3 = e3.set[t4], n4 = e3.globParts[t4];
|
|
210233
|
+
if (!s3 || !n4) throw new Error("invalid pattern object");
|
|
210234
|
+
for (; "." === s3[0] && "." === n4[0]; ) s3.shift(), n4.shift();
|
|
210235
|
+
const o = new r2.Pattern(s3, n4, 0, this.platform), h = new i2.Minimatch(o.globString(), this.mmopts), a = "**" === n4[n4.length - 1], l = o.isAbsolute();
|
|
210236
|
+
l ? this.absolute.push(h) : this.relative.push(h), a && (l ? this.absoluteChildren.push(h) : this.relativeChildren.push(h));
|
|
210237
|
+
}
|
|
210238
|
+
}
|
|
210239
|
+
ignored(t3) {
|
|
210240
|
+
const e3 = t3.fullpath(), s3 = `${e3}/`, i3 = t3.relative() || ".", r3 = `${i3}/`;
|
|
210241
|
+
for (const t4 of this.relative) if (t4.match(i3) || t4.match(r3)) return true;
|
|
210242
|
+
for (const t4 of this.absolute) if (t4.match(e3) || t4.match(s3)) return true;
|
|
210243
|
+
return false;
|
|
210244
|
+
}
|
|
210245
|
+
childrenIgnored(t3) {
|
|
210246
|
+
const e3 = t3.fullpath() + "/", s3 = (t3.relative() || ".") + "/";
|
|
210247
|
+
for (const t4 of this.relativeChildren) if (t4.match(s3)) return true;
|
|
210248
|
+
for (const t4 of this.absoluteChildren) if (t4.match(e3)) return true;
|
|
210249
|
+
return false;
|
|
210250
|
+
}
|
|
210251
|
+
};
|
|
210252
|
+
}, 756: (t2, e2, s2) => {
|
|
210253
|
+
"use strict";
|
|
210254
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.glob = e2.sync = e2.iterate = e2.iterateSync = e2.stream = e2.streamSync = e2.globIterate = e2.globIterateSync = e2.globSync = e2.globStream = e2.globStreamSync = e2.Ignore = e2.hasMagic = e2.Glob = e2.unescape = e2.escape = void 0;
|
|
210255
|
+
const i2 = s2(722), r2 = s2(876), n3 = s2(46);
|
|
210256
|
+
var o = s2(722);
|
|
210257
|
+
Object.defineProperty(e2, "escape", { enumerable: true, get: function() {
|
|
210258
|
+
return o.escape;
|
|
210259
|
+
} }), Object.defineProperty(e2, "unescape", { enumerable: true, get: function() {
|
|
210260
|
+
return o.unescape;
|
|
210261
|
+
} });
|
|
210262
|
+
var h = s2(876);
|
|
210263
|
+
Object.defineProperty(e2, "Glob", { enumerable: true, get: function() {
|
|
210264
|
+
return h.Glob;
|
|
210265
|
+
} });
|
|
210266
|
+
var a = s2(46);
|
|
210267
|
+
Object.defineProperty(e2, "hasMagic", { enumerable: true, get: function() {
|
|
210268
|
+
return a.hasMagic;
|
|
210269
|
+
} });
|
|
210270
|
+
var l = s2(972);
|
|
210271
|
+
function c(t3, e3 = {}) {
|
|
210272
|
+
return new r2.Glob(t3, e3).streamSync();
|
|
210273
|
+
}
|
|
210274
|
+
function p(t3, e3 = {}) {
|
|
210275
|
+
return new r2.Glob(t3, e3).stream();
|
|
210276
|
+
}
|
|
210277
|
+
function d(t3, e3 = {}) {
|
|
210278
|
+
return new r2.Glob(t3, e3).walkSync();
|
|
210279
|
+
}
|
|
210280
|
+
async function u(t3, e3 = {}) {
|
|
210281
|
+
return new r2.Glob(t3, e3).walk();
|
|
210282
|
+
}
|
|
210283
|
+
function f(t3, e3 = {}) {
|
|
210284
|
+
return new r2.Glob(t3, e3).iterateSync();
|
|
210285
|
+
}
|
|
210286
|
+
function g(t3, e3 = {}) {
|
|
210287
|
+
return new r2.Glob(t3, e3).iterate();
|
|
210288
|
+
}
|
|
210289
|
+
Object.defineProperty(e2, "Ignore", { enumerable: true, get: function() {
|
|
210290
|
+
return l.Ignore;
|
|
210291
|
+
} }), e2.globStreamSync = c, e2.globStream = p, e2.globSync = d, e2.globIterateSync = f, e2.globIterate = g, e2.streamSync = c, e2.stream = Object.assign(p, { sync: c }), e2.iterateSync = f, e2.iterate = Object.assign(g, { sync: f }), e2.sync = Object.assign(d, { stream: c, iterate: f }), e2.glob = Object.assign(u, { glob: u, globSync: d, sync: e2.sync, globStream: p, stream: e2.stream, globStreamSync: c, streamSync: e2.streamSync, globIterate: g, iterate: e2.iterate, globIterateSync: f, iterateSync: e2.iterateSync, Glob: r2.Glob, hasMagic: n3.hasMagic, escape: i2.escape, unescape: i2.unescape }), e2.glob.glob = e2.glob;
|
|
210292
|
+
}, 478: (t2, e2, s2) => {
|
|
210293
|
+
"use strict";
|
|
210294
|
+
var _t, _e, _s, _i, _r, _n, _o, _h, _a, _l;
|
|
210295
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Pattern = void 0;
|
|
210296
|
+
const i2 = s2(722);
|
|
210297
|
+
const _r2 = class _r2 {
|
|
210298
|
+
constructor(t3, e3, s3, i3) {
|
|
210299
|
+
__privateAdd(this, _t);
|
|
210300
|
+
__privateAdd(this, _e);
|
|
210301
|
+
__privateAdd(this, _s);
|
|
210302
|
+
__publicField(this, "length");
|
|
210303
|
+
__privateAdd(this, _i);
|
|
210304
|
+
__privateAdd(this, _r);
|
|
210305
|
+
__privateAdd(this, _n);
|
|
210306
|
+
__privateAdd(this, _o);
|
|
210307
|
+
__privateAdd(this, _h);
|
|
210308
|
+
__privateAdd(this, _a);
|
|
210309
|
+
__privateAdd(this, _l, true);
|
|
210310
|
+
if (!(t3.length >= 1)) throw new TypeError("empty pattern list");
|
|
210311
|
+
if (!(e3.length >= 1)) throw new TypeError("empty glob list");
|
|
210312
|
+
if (e3.length !== t3.length) throw new TypeError("mismatched pattern list and glob list lengths");
|
|
210313
|
+
if (this.length = t3.length, s3 < 0 || s3 >= this.length) throw new TypeError("index out of range");
|
|
210314
|
+
if (__privateSet(this, _t, t3), __privateSet(this, _e, e3), __privateSet(this, _s, s3), __privateSet(this, _i, i3), 0 === __privateGet(this, _s)) {
|
|
210315
|
+
if (this.isUNC()) {
|
|
210316
|
+
const [t4, e4, s4, i4, ...r3] = __privateGet(this, _t), [n3, o, h, a, ...l] = __privateGet(this, _e);
|
|
210317
|
+
"" === r3[0] && (r3.shift(), l.shift());
|
|
210318
|
+
const c = [t4, e4, s4, i4, ""].join("/"), p = [n3, o, h, a, ""].join("/");
|
|
210319
|
+
__privateSet(this, _t, [c, ...r3]), __privateSet(this, _e, [p, ...l]), this.length = __privateGet(this, _t).length;
|
|
210320
|
+
} else if (this.isDrive() || this.isAbsolute()) {
|
|
210321
|
+
const [t4, ...e4] = __privateGet(this, _t), [s4, ...i4] = __privateGet(this, _e);
|
|
210322
|
+
"" === e4[0] && (e4.shift(), i4.shift());
|
|
210323
|
+
const r3 = t4 + "/", n3 = s4 + "/";
|
|
210324
|
+
__privateSet(this, _t, [r3, ...e4]), __privateSet(this, _e, [n3, ...i4]), this.length = __privateGet(this, _t).length;
|
|
210325
|
+
}
|
|
210326
|
+
}
|
|
210327
|
+
}
|
|
210328
|
+
pattern() {
|
|
210329
|
+
return __privateGet(this, _t)[__privateGet(this, _s)];
|
|
210330
|
+
}
|
|
210331
|
+
isString() {
|
|
210332
|
+
return "string" == typeof __privateGet(this, _t)[__privateGet(this, _s)];
|
|
210333
|
+
}
|
|
210334
|
+
isGlobstar() {
|
|
210335
|
+
return __privateGet(this, _t)[__privateGet(this, _s)] === i2.GLOBSTAR;
|
|
210336
|
+
}
|
|
210337
|
+
isRegExp() {
|
|
210338
|
+
return __privateGet(this, _t)[__privateGet(this, _s)] instanceof RegExp;
|
|
210339
|
+
}
|
|
210340
|
+
globString() {
|
|
210341
|
+
return __privateSet(this, _n, __privateGet(this, _n) || (0 === __privateGet(this, _s) ? this.isAbsolute() ? __privateGet(this, _e)[0] + __privateGet(this, _e).slice(1).join("/") : __privateGet(this, _e).join("/") : __privateGet(this, _e).slice(__privateGet(this, _s)).join("/")));
|
|
210342
|
+
}
|
|
210343
|
+
hasMore() {
|
|
210344
|
+
return this.length > __privateGet(this, _s) + 1;
|
|
210345
|
+
}
|
|
210346
|
+
rest() {
|
|
210347
|
+
return void 0 !== __privateGet(this, _r) ? __privateGet(this, _r) : this.hasMore() ? (__privateSet(this, _r, new _r2(__privateGet(this, _t), __privateGet(this, _e), __privateGet(this, _s) + 1, __privateGet(this, _i))), __privateSet(__privateGet(this, _r), _a, __privateGet(this, _a)), __privateSet(__privateGet(this, _r), _h, __privateGet(this, _h)), __privateSet(__privateGet(this, _r), _o, __privateGet(this, _o)), __privateGet(this, _r)) : __privateSet(this, _r, null);
|
|
210348
|
+
}
|
|
210349
|
+
isUNC() {
|
|
210350
|
+
const t3 = __privateGet(this, _t);
|
|
210351
|
+
return void 0 !== __privateGet(this, _h) ? __privateGet(this, _h) : __privateSet(this, _h, "win32" === __privateGet(this, _i) && 0 === __privateGet(this, _s) && "" === t3[0] && "" === t3[1] && "string" == typeof t3[2] && !!t3[2] && "string" == typeof t3[3] && !!t3[3]);
|
|
210352
|
+
}
|
|
210353
|
+
isDrive() {
|
|
210354
|
+
const t3 = __privateGet(this, _t);
|
|
210355
|
+
return void 0 !== __privateGet(this, _o) ? __privateGet(this, _o) : __privateSet(this, _o, "win32" === __privateGet(this, _i) && 0 === __privateGet(this, _s) && this.length > 1 && "string" == typeof t3[0] && /^[a-z]:$/i.test(t3[0]));
|
|
210356
|
+
}
|
|
210357
|
+
isAbsolute() {
|
|
210358
|
+
const t3 = __privateGet(this, _t);
|
|
210359
|
+
return void 0 !== __privateGet(this, _a) ? __privateGet(this, _a) : __privateSet(this, _a, "" === t3[0] && t3.length > 1 || this.isDrive() || this.isUNC());
|
|
210360
|
+
}
|
|
210361
|
+
root() {
|
|
210362
|
+
const t3 = __privateGet(this, _t)[0];
|
|
210363
|
+
return "string" == typeof t3 && this.isAbsolute() && 0 === __privateGet(this, _s) ? t3 : "";
|
|
210364
|
+
}
|
|
210365
|
+
checkFollowGlobstar() {
|
|
210366
|
+
return !(0 === __privateGet(this, _s) || !this.isGlobstar() || !__privateGet(this, _l));
|
|
210367
|
+
}
|
|
210368
|
+
markFollowGlobstar() {
|
|
210369
|
+
return !(0 === __privateGet(this, _s) || !this.isGlobstar() || !__privateGet(this, _l)) && (__privateSet(this, _l, false), true);
|
|
210370
|
+
}
|
|
210371
|
+
};
|
|
210372
|
+
_t = new WeakMap();
|
|
210373
|
+
_e = new WeakMap();
|
|
210374
|
+
_s = new WeakMap();
|
|
210375
|
+
_i = new WeakMap();
|
|
210376
|
+
_r = new WeakMap();
|
|
210377
|
+
_n = new WeakMap();
|
|
210378
|
+
_o = new WeakMap();
|
|
210379
|
+
_h = new WeakMap();
|
|
210380
|
+
_a = new WeakMap();
|
|
210381
|
+
_l = new WeakMap();
|
|
210382
|
+
let r2 = _r2;
|
|
210383
|
+
e2.Pattern = r2;
|
|
210384
|
+
}, 800: (t2, e2, s2) => {
|
|
210385
|
+
"use strict";
|
|
210386
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Processor = e2.SubWalks = e2.MatchRecord = e2.HasWalkedCache = void 0;
|
|
210387
|
+
const i2 = s2(722);
|
|
210388
|
+
class r2 {
|
|
210389
|
+
store;
|
|
210390
|
+
constructor(t3 = /* @__PURE__ */ new Map()) {
|
|
210391
|
+
this.store = t3;
|
|
210392
|
+
}
|
|
210393
|
+
copy() {
|
|
210394
|
+
return new r2(new Map(this.store));
|
|
210395
|
+
}
|
|
210396
|
+
hasWalked(t3, e3) {
|
|
210397
|
+
var _a;
|
|
210398
|
+
return (_a = this.store.get(t3.fullpath())) == null ? void 0 : _a.has(e3.globString());
|
|
210399
|
+
}
|
|
210400
|
+
storeWalked(t3, e3) {
|
|
210401
|
+
const s3 = t3.fullpath(), i3 = this.store.get(s3);
|
|
210402
|
+
i3 ? i3.add(e3.globString()) : this.store.set(s3, /* @__PURE__ */ new Set([e3.globString()]));
|
|
210403
|
+
}
|
|
210404
|
+
}
|
|
210405
|
+
e2.HasWalkedCache = r2;
|
|
210406
|
+
class n3 {
|
|
210407
|
+
store = /* @__PURE__ */ new Map();
|
|
210408
|
+
add(t3, e3, s3) {
|
|
210409
|
+
const i3 = (e3 ? 2 : 0) | (s3 ? 1 : 0), r3 = this.store.get(t3);
|
|
210410
|
+
this.store.set(t3, void 0 === r3 ? i3 : i3 & r3);
|
|
210411
|
+
}
|
|
210412
|
+
entries() {
|
|
210413
|
+
return [...this.store.entries()].map(([t3, e3]) => [t3, !!(2 & e3), !!(1 & e3)]);
|
|
210414
|
+
}
|
|
210415
|
+
}
|
|
210416
|
+
e2.MatchRecord = n3;
|
|
210417
|
+
class o {
|
|
210418
|
+
store = /* @__PURE__ */ new Map();
|
|
210419
|
+
add(t3, e3) {
|
|
210420
|
+
if (!t3.canReaddir()) return;
|
|
210421
|
+
const s3 = this.store.get(t3);
|
|
210422
|
+
s3 ? s3.find((t4) => t4.globString() === e3.globString()) || s3.push(e3) : this.store.set(t3, [e3]);
|
|
210423
|
+
}
|
|
210424
|
+
get(t3) {
|
|
210425
|
+
const e3 = this.store.get(t3);
|
|
210426
|
+
if (!e3) throw new Error("attempting to walk unknown path");
|
|
210427
|
+
return e3;
|
|
210428
|
+
}
|
|
210429
|
+
entries() {
|
|
210430
|
+
return this.keys().map((t3) => [t3, this.store.get(t3)]);
|
|
210431
|
+
}
|
|
210432
|
+
keys() {
|
|
210433
|
+
return [...this.store.keys()].filter((t3) => t3.canReaddir());
|
|
210434
|
+
}
|
|
210435
|
+
}
|
|
210436
|
+
e2.SubWalks = o;
|
|
210437
|
+
class h {
|
|
210438
|
+
hasWalkedCache;
|
|
210439
|
+
matches = new n3();
|
|
210440
|
+
subwalks = new o();
|
|
210441
|
+
patterns;
|
|
210442
|
+
follow;
|
|
210443
|
+
dot;
|
|
210444
|
+
opts;
|
|
210445
|
+
constructor(t3, e3) {
|
|
210446
|
+
this.opts = t3, this.follow = !!t3.follow, this.dot = !!t3.dot, this.hasWalkedCache = e3 ? e3.copy() : new r2();
|
|
210447
|
+
}
|
|
210448
|
+
processPatterns(t3, e3) {
|
|
210449
|
+
this.patterns = e3;
|
|
210450
|
+
const s3 = e3.map((e4) => [t3, e4]);
|
|
210451
|
+
for (let [t4, e4] of s3) {
|
|
210452
|
+
this.hasWalkedCache.storeWalked(t4, e4);
|
|
210453
|
+
const s4 = e4.root(), r3 = e4.isAbsolute() && false !== this.opts.absolute;
|
|
210454
|
+
if (s4) {
|
|
210455
|
+
t4 = t4.resolve("/" === s4 && void 0 !== this.opts.root ? this.opts.root : s4);
|
|
210456
|
+
const i3 = e4.rest();
|
|
210457
|
+
if (!i3) {
|
|
210458
|
+
this.matches.add(t4, true, false);
|
|
210459
|
+
continue;
|
|
210460
|
+
}
|
|
210461
|
+
e4 = i3;
|
|
210462
|
+
}
|
|
210463
|
+
if (t4.isENOENT()) continue;
|
|
210464
|
+
let n4, o2, h2 = false;
|
|
210465
|
+
for (; "string" == typeof (n4 = e4.pattern()) && (o2 = e4.rest()); ) {
|
|
210466
|
+
const s5 = t4.resolve(n4);
|
|
210467
|
+
t4 = s5, e4 = o2, h2 = true;
|
|
210468
|
+
}
|
|
210469
|
+
if (n4 = e4.pattern(), o2 = e4.rest(), h2) {
|
|
210470
|
+
if (this.hasWalkedCache.hasWalked(t4, e4)) continue;
|
|
210471
|
+
this.hasWalkedCache.storeWalked(t4, e4);
|
|
210472
|
+
}
|
|
210473
|
+
if ("string" != typeof n4) if (n4 === i2.GLOBSTAR) {
|
|
210474
|
+
(!t4.isSymbolicLink() || this.follow || e4.checkFollowGlobstar()) && this.subwalks.add(t4, e4);
|
|
210475
|
+
const s5 = o2 == null ? void 0 : o2.pattern(), i3 = o2 == null ? void 0 : o2.rest();
|
|
210476
|
+
if (o2 && ("" !== s5 && "." !== s5 || i3)) {
|
|
210477
|
+
if (".." === s5) {
|
|
210478
|
+
const e5 = t4.parent || t4;
|
|
210479
|
+
i3 ? this.hasWalkedCache.hasWalked(e5, i3) || this.subwalks.add(e5, i3) : this.matches.add(e5, r3, true);
|
|
210480
|
+
}
|
|
210481
|
+
} else this.matches.add(t4, r3, "" === s5 || "." === s5);
|
|
210482
|
+
} else n4 instanceof RegExp && this.subwalks.add(t4, e4);
|
|
210483
|
+
else {
|
|
210484
|
+
const e5 = ".." === n4 || "" === n4 || "." === n4;
|
|
210485
|
+
this.matches.add(t4.resolve(n4), r3, e5);
|
|
210486
|
+
}
|
|
210487
|
+
}
|
|
210488
|
+
return this;
|
|
210489
|
+
}
|
|
210490
|
+
subwalkTargets() {
|
|
210491
|
+
return this.subwalks.keys();
|
|
210492
|
+
}
|
|
210493
|
+
child() {
|
|
210494
|
+
return new h(this.opts, this.hasWalkedCache);
|
|
210495
|
+
}
|
|
210496
|
+
filterEntries(t3, e3) {
|
|
210497
|
+
const s3 = this.subwalks.get(t3), r3 = this.child();
|
|
210498
|
+
for (const t4 of e3) for (const e4 of s3) {
|
|
210499
|
+
const s4 = e4.isAbsolute(), n4 = e4.pattern(), o2 = e4.rest();
|
|
210500
|
+
n4 === i2.GLOBSTAR ? r3.testGlobstar(t4, e4, o2, s4) : n4 instanceof RegExp ? r3.testRegExp(t4, n4, o2, s4) : r3.testString(t4, n4, o2, s4);
|
|
210501
|
+
}
|
|
210502
|
+
return r3;
|
|
210503
|
+
}
|
|
210504
|
+
testGlobstar(t3, e3, s3, i3) {
|
|
210505
|
+
if (!this.dot && t3.name.startsWith(".") || (e3.hasMore() || this.matches.add(t3, i3, false), t3.canReaddir() && (this.follow || !t3.isSymbolicLink() ? this.subwalks.add(t3, e3) : t3.isSymbolicLink() && (s3 && e3.checkFollowGlobstar() ? this.subwalks.add(t3, s3) : e3.markFollowGlobstar() && this.subwalks.add(t3, e3)))), s3) {
|
|
210506
|
+
const e4 = s3.pattern();
|
|
210507
|
+
if ("string" == typeof e4 && ".." !== e4 && "" !== e4 && "." !== e4) this.testString(t3, e4, s3.rest(), i3);
|
|
210508
|
+
else if (".." === e4) {
|
|
210509
|
+
const e5 = t3.parent || t3;
|
|
210510
|
+
this.subwalks.add(e5, s3);
|
|
210511
|
+
} else e4 instanceof RegExp && this.testRegExp(t3, e4, s3.rest(), i3);
|
|
210512
|
+
}
|
|
210513
|
+
}
|
|
210514
|
+
testRegExp(t3, e3, s3, i3) {
|
|
210515
|
+
e3.test(t3.name) && (s3 ? this.subwalks.add(t3, s3) : this.matches.add(t3, i3, false));
|
|
210516
|
+
}
|
|
210517
|
+
testString(t3, e3, s3, i3) {
|
|
210518
|
+
t3.isNamed(e3) && (s3 ? this.subwalks.add(t3, s3) : this.matches.add(t3, i3, false));
|
|
210519
|
+
}
|
|
210520
|
+
}
|
|
210521
|
+
e2.Processor = h;
|
|
210522
|
+
}, 984: (t2, e2, s2) => {
|
|
210523
|
+
"use strict";
|
|
210524
|
+
var _c, _p, _d, _o_instances, u_fn, f_fn;
|
|
210525
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.GlobStream = e2.GlobWalker = e2.GlobUtil = void 0;
|
|
210526
|
+
const i2 = s2(420), r2 = s2(972), n3 = s2(800);
|
|
210527
|
+
class o {
|
|
210528
|
+
constructor(t3, e3, s3) {
|
|
210529
|
+
__privateAdd(this, _o_instances);
|
|
210530
|
+
__publicField(this, "path");
|
|
210531
|
+
__publicField(this, "patterns");
|
|
210532
|
+
__publicField(this, "opts");
|
|
210533
|
+
__publicField(this, "seen", /* @__PURE__ */ new Set());
|
|
210534
|
+
__publicField(this, "paused", false);
|
|
210535
|
+
__publicField(this, "aborted", false);
|
|
210536
|
+
__privateAdd(this, _c, []);
|
|
210537
|
+
__privateAdd(this, _p);
|
|
210538
|
+
__privateAdd(this, _d);
|
|
210539
|
+
__publicField(this, "signal");
|
|
210540
|
+
__publicField(this, "maxDepth");
|
|
210541
|
+
__publicField(this, "includeChildMatches");
|
|
210542
|
+
var _a;
|
|
210543
|
+
if (this.patterns = t3, this.path = e3, this.opts = s3, __privateSet(this, _d, s3.posix || "win32" !== s3.platform ? "/" : "\\"), this.includeChildMatches = false !== s3.includeChildMatches, (s3.ignore || !this.includeChildMatches) && (__privateSet(this, _p, ((t4, e4) => "string" == typeof t4 ? new r2.Ignore([t4], e4) : Array.isArray(t4) ? new r2.Ignore(t4, e4) : t4)((_a = s3.ignore) != null ? _a : [], s3)), !this.includeChildMatches && "function" != typeof __privateGet(this, _p).add)) {
|
|
210544
|
+
throw new Error("cannot ignore child matches, ignore lacks add() method.");
|
|
210545
|
+
}
|
|
210546
|
+
this.maxDepth = s3.maxDepth || 1 / 0, s3.signal && (this.signal = s3.signal, this.signal.addEventListener("abort", () => {
|
|
210547
|
+
__privateGet(this, _c).length = 0;
|
|
210548
|
+
}));
|
|
210549
|
+
}
|
|
210550
|
+
pause() {
|
|
210551
|
+
this.paused = true;
|
|
210552
|
+
}
|
|
210553
|
+
resume() {
|
|
210554
|
+
var _a;
|
|
210555
|
+
if ((_a = this.signal) == null ? void 0 : _a.aborted) return;
|
|
210556
|
+
let t3;
|
|
210557
|
+
for (this.paused = false; !this.paused && (t3 = __privateGet(this, _c).shift()); ) t3();
|
|
210558
|
+
}
|
|
210559
|
+
onResume(t3) {
|
|
210560
|
+
var _a;
|
|
210561
|
+
((_a = this.signal) == null ? void 0 : _a.aborted) || (this.paused ? __privateGet(this, _c).push(t3) : t3());
|
|
210562
|
+
}
|
|
210563
|
+
async matchCheck(t3, e3) {
|
|
210564
|
+
if (e3 && this.opts.nodir) return;
|
|
210565
|
+
let s3;
|
|
210566
|
+
if (this.opts.realpath) {
|
|
210567
|
+
if (s3 = t3.realpathCached() || await t3.realpath(), !s3) return;
|
|
210568
|
+
t3 = s3;
|
|
210569
|
+
}
|
|
210570
|
+
const i3 = t3.isUnknown() || this.opts.stat ? await t3.lstat() : t3;
|
|
210571
|
+
if (this.opts.follow && this.opts.nodir && (i3 == null ? void 0 : i3.isSymbolicLink())) {
|
|
210572
|
+
const t4 = await i3.realpath();
|
|
210573
|
+
t4 && (t4.isUnknown() || this.opts.stat) && await t4.lstat();
|
|
210574
|
+
}
|
|
210575
|
+
return this.matchCheckTest(i3, e3);
|
|
210576
|
+
}
|
|
210577
|
+
matchCheckTest(t3, e3) {
|
|
210578
|
+
var _a;
|
|
210579
|
+
return !t3 || !(this.maxDepth === 1 / 0 || t3.depth() <= this.maxDepth) || e3 && !t3.canReaddir() || this.opts.nodir && t3.isDirectory() || this.opts.nodir && this.opts.follow && t3.isSymbolicLink() && ((_a = t3.realpathCached()) == null ? void 0 : _a.isDirectory()) || __privateMethod(this, _o_instances, u_fn).call(this, t3) ? void 0 : t3;
|
|
210580
|
+
}
|
|
210581
|
+
matchCheckSync(t3, e3) {
|
|
210582
|
+
if (e3 && this.opts.nodir) return;
|
|
210583
|
+
let s3;
|
|
210584
|
+
if (this.opts.realpath) {
|
|
210585
|
+
if (s3 = t3.realpathCached() || t3.realpathSync(), !s3) return;
|
|
210586
|
+
t3 = s3;
|
|
210587
|
+
}
|
|
210588
|
+
const i3 = t3.isUnknown() || this.opts.stat ? t3.lstatSync() : t3;
|
|
210589
|
+
if (this.opts.follow && this.opts.nodir && (i3 == null ? void 0 : i3.isSymbolicLink())) {
|
|
210590
|
+
const t4 = i3.realpathSync();
|
|
210591
|
+
t4 && ((t4 == null ? void 0 : t4.isUnknown()) || this.opts.stat) && t4.lstatSync();
|
|
210592
|
+
}
|
|
210593
|
+
return this.matchCheckTest(i3, e3);
|
|
210594
|
+
}
|
|
210595
|
+
matchFinish(t3, e3) {
|
|
210596
|
+
var _a;
|
|
210597
|
+
if (__privateMethod(this, _o_instances, u_fn).call(this, t3)) return;
|
|
210598
|
+
if (!this.includeChildMatches && ((_a = __privateGet(this, _p)) == null ? void 0 : _a.add)) {
|
|
210599
|
+
const e4 = `${t3.relativePosix()}/**`;
|
|
210600
|
+
__privateGet(this, _p).add(e4);
|
|
210601
|
+
}
|
|
210602
|
+
const s3 = void 0 === this.opts.absolute ? e3 : this.opts.absolute;
|
|
210603
|
+
this.seen.add(t3);
|
|
210604
|
+
const i3 = this.opts.mark && t3.isDirectory() ? __privateGet(this, _d) : "";
|
|
210605
|
+
if (this.opts.withFileTypes) this.matchEmit(t3);
|
|
210606
|
+
else if (s3) {
|
|
210607
|
+
const e4 = this.opts.posix ? t3.fullpathPosix() : t3.fullpath();
|
|
210608
|
+
this.matchEmit(e4 + i3);
|
|
210609
|
+
} else {
|
|
210610
|
+
const e4 = this.opts.posix ? t3.relativePosix() : t3.relative(), s4 = this.opts.dotRelative && !e4.startsWith(".." + __privateGet(this, _d)) ? "." + __privateGet(this, _d) : "";
|
|
210611
|
+
this.matchEmit(e4 ? s4 + e4 + i3 : "." + i3);
|
|
210612
|
+
}
|
|
210613
|
+
}
|
|
210614
|
+
async match(t3, e3, s3) {
|
|
210615
|
+
const i3 = await this.matchCheck(t3, s3);
|
|
210616
|
+
i3 && this.matchFinish(i3, e3);
|
|
210617
|
+
}
|
|
210618
|
+
matchSync(t3, e3, s3) {
|
|
210619
|
+
const i3 = this.matchCheckSync(t3, s3);
|
|
210620
|
+
i3 && this.matchFinish(i3, e3);
|
|
210621
|
+
}
|
|
210622
|
+
walkCB(t3, e3, s3) {
|
|
210623
|
+
var _a;
|
|
210624
|
+
((_a = this.signal) == null ? void 0 : _a.aborted) && s3(), this.walkCB2(t3, e3, new n3.Processor(this.opts), s3);
|
|
210625
|
+
}
|
|
210626
|
+
walkCB2(t3, e3, s3, i3) {
|
|
210627
|
+
var _a;
|
|
210628
|
+
if (__privateMethod(this, _o_instances, f_fn).call(this, t3)) return i3();
|
|
210629
|
+
if (((_a = this.signal) == null ? void 0 : _a.aborted) && i3(), this.paused) return void this.onResume(() => this.walkCB2(t3, e3, s3, i3));
|
|
210630
|
+
s3.processPatterns(t3, e3);
|
|
210631
|
+
let r3 = 1;
|
|
210632
|
+
const n4 = () => {
|
|
210633
|
+
0 == --r3 && i3();
|
|
210634
|
+
};
|
|
210635
|
+
for (const [t4, e4, i4] of s3.matches.entries()) __privateMethod(this, _o_instances, u_fn).call(this, t4) || (r3++, this.match(t4, e4, i4).then(() => n4()));
|
|
210636
|
+
for (const t4 of s3.subwalkTargets()) {
|
|
210637
|
+
if (this.maxDepth !== 1 / 0 && t4.depth() >= this.maxDepth) continue;
|
|
210638
|
+
r3++;
|
|
210639
|
+
const e4 = t4.readdirCached();
|
|
210640
|
+
t4.calledReaddir() ? this.walkCB3(t4, e4, s3, n4) : t4.readdirCB((e5, i4) => this.walkCB3(t4, i4, s3, n4), true);
|
|
210641
|
+
}
|
|
210642
|
+
n4();
|
|
210643
|
+
}
|
|
210644
|
+
walkCB3(t3, e3, s3, i3) {
|
|
210645
|
+
s3 = s3.filterEntries(t3, e3);
|
|
210646
|
+
let r3 = 1;
|
|
210647
|
+
const n4 = () => {
|
|
210648
|
+
0 == --r3 && i3();
|
|
210649
|
+
};
|
|
210650
|
+
for (const [t4, e4, i4] of s3.matches.entries()) __privateMethod(this, _o_instances, u_fn).call(this, t4) || (r3++, this.match(t4, e4, i4).then(() => n4()));
|
|
210651
|
+
for (const [t4, e4] of s3.subwalks.entries()) r3++, this.walkCB2(t4, e4, s3.child(), n4);
|
|
210652
|
+
n4();
|
|
210653
|
+
}
|
|
210654
|
+
walkCBSync(t3, e3, s3) {
|
|
210655
|
+
var _a;
|
|
210656
|
+
((_a = this.signal) == null ? void 0 : _a.aborted) && s3(), this.walkCB2Sync(t3, e3, new n3.Processor(this.opts), s3);
|
|
210657
|
+
}
|
|
210658
|
+
walkCB2Sync(t3, e3, s3, i3) {
|
|
210659
|
+
var _a;
|
|
210660
|
+
if (__privateMethod(this, _o_instances, f_fn).call(this, t3)) return i3();
|
|
210661
|
+
if (((_a = this.signal) == null ? void 0 : _a.aborted) && i3(), this.paused) return void this.onResume(() => this.walkCB2Sync(t3, e3, s3, i3));
|
|
210662
|
+
s3.processPatterns(t3, e3);
|
|
210663
|
+
let r3 = 1;
|
|
210664
|
+
const n4 = () => {
|
|
210665
|
+
0 == --r3 && i3();
|
|
210666
|
+
};
|
|
210667
|
+
for (const [t4, e4, i4] of s3.matches.entries()) __privateMethod(this, _o_instances, u_fn).call(this, t4) || this.matchSync(t4, e4, i4);
|
|
210668
|
+
for (const t4 of s3.subwalkTargets()) {
|
|
210669
|
+
if (this.maxDepth !== 1 / 0 && t4.depth() >= this.maxDepth) continue;
|
|
210670
|
+
r3++;
|
|
210671
|
+
const e4 = t4.readdirSync();
|
|
210672
|
+
this.walkCB3Sync(t4, e4, s3, n4);
|
|
210673
|
+
}
|
|
210674
|
+
n4();
|
|
210675
|
+
}
|
|
210676
|
+
walkCB3Sync(t3, e3, s3, i3) {
|
|
210677
|
+
s3 = s3.filterEntries(t3, e3);
|
|
210678
|
+
let r3 = 1;
|
|
210679
|
+
const n4 = () => {
|
|
210680
|
+
0 == --r3 && i3();
|
|
210681
|
+
};
|
|
210682
|
+
for (const [t4, e4, i4] of s3.matches.entries()) __privateMethod(this, _o_instances, u_fn).call(this, t4) || this.matchSync(t4, e4, i4);
|
|
210683
|
+
for (const [t4, e4] of s3.subwalks.entries()) r3++, this.walkCB2Sync(t4, e4, s3.child(), n4);
|
|
210684
|
+
n4();
|
|
210685
|
+
}
|
|
210686
|
+
}
|
|
210687
|
+
_c = new WeakMap();
|
|
210688
|
+
_p = new WeakMap();
|
|
210689
|
+
_d = new WeakMap();
|
|
210690
|
+
_o_instances = new WeakSet();
|
|
210691
|
+
u_fn = function(t3) {
|
|
210692
|
+
var _a, _b;
|
|
210693
|
+
return this.seen.has(t3) || !!((_b = (_a = __privateGet(this, _p)) == null ? void 0 : _a.ignored) == null ? void 0 : _b.call(_a, t3));
|
|
210694
|
+
};
|
|
210695
|
+
f_fn = function(t3) {
|
|
210696
|
+
var _a, _b;
|
|
210697
|
+
return !!((_b = (_a = __privateGet(this, _p)) == null ? void 0 : _a.childrenIgnored) == null ? void 0 : _b.call(_a, t3));
|
|
210698
|
+
};
|
|
210699
|
+
e2.GlobUtil = o;
|
|
210700
|
+
e2.GlobWalker = class extends o {
|
|
210701
|
+
matches = /* @__PURE__ */ new Set();
|
|
210702
|
+
constructor(t3, e3, s3) {
|
|
210703
|
+
super(t3, e3, s3);
|
|
210704
|
+
}
|
|
210705
|
+
matchEmit(t3) {
|
|
210706
|
+
this.matches.add(t3);
|
|
210707
|
+
}
|
|
210708
|
+
async walk() {
|
|
210709
|
+
var _a;
|
|
210710
|
+
if ((_a = this.signal) == null ? void 0 : _a.aborted) throw this.signal.reason;
|
|
210711
|
+
return this.path.isUnknown() && await this.path.lstat(), await new Promise((t3, e3) => {
|
|
210712
|
+
this.walkCB(this.path, this.patterns, () => {
|
|
210713
|
+
var _a2;
|
|
210714
|
+
((_a2 = this.signal) == null ? void 0 : _a2.aborted) ? e3(this.signal.reason) : t3(this.matches);
|
|
210715
|
+
});
|
|
210716
|
+
}), this.matches;
|
|
210717
|
+
}
|
|
210718
|
+
walkSync() {
|
|
210719
|
+
var _a;
|
|
210720
|
+
if ((_a = this.signal) == null ? void 0 : _a.aborted) throw this.signal.reason;
|
|
210721
|
+
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => {
|
|
210722
|
+
var _a2;
|
|
210723
|
+
if ((_a2 = this.signal) == null ? void 0 : _a2.aborted) throw this.signal.reason;
|
|
210724
|
+
}), this.matches;
|
|
210725
|
+
}
|
|
210726
|
+
};
|
|
210727
|
+
e2.GlobStream = class extends o {
|
|
210728
|
+
results;
|
|
210729
|
+
constructor(t3, e3, s3) {
|
|
210730
|
+
super(t3, e3, s3), this.results = new i2.Minipass({ signal: this.signal, objectMode: true }), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume());
|
|
210731
|
+
}
|
|
210732
|
+
matchEmit(t3) {
|
|
210733
|
+
this.results.write(t3), this.results.flowing || this.pause();
|
|
210734
|
+
}
|
|
210735
|
+
stream() {
|
|
210736
|
+
const t3 = this.path;
|
|
210737
|
+
return t3.isUnknown() ? t3.lstat().then(() => {
|
|
210738
|
+
this.walkCB(t3, this.patterns, () => this.results.end());
|
|
210739
|
+
}) : this.walkCB(t3, this.patterns, () => this.results.end()), this.results;
|
|
210740
|
+
}
|
|
210741
|
+
streamSync() {
|
|
210742
|
+
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
|
|
210743
|
+
}
|
|
210744
|
+
};
|
|
210745
|
+
}, 96: (t2, e2) => {
|
|
210746
|
+
"use strict";
|
|
210747
|
+
var _a, _g, _b, _c, _m, _y, _w, _b2, _v, _S, _k, _x, _E, _L, _T, _C, _M, _A, _O, _P, _R, _F, __, _z, _D, _j, _d_instances, q_fn, _V, _Z, _H, _U, $_fn, _J, _Y, _K, I_fn, G_fn, Q_fn, X_fn, N_fn, B_fn, tt_fn, W_fn;
|
|
210748
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.LRUCache = void 0;
|
|
210749
|
+
const s2 = "object" == typeof performance && performance && "function" == typeof performance.now ? performance : Date, i2 = /* @__PURE__ */ new Set(), r2 = "object" == typeof process && process ? process : {}, n3 = (t3, e3, s3, i3) => {
|
|
210750
|
+
"function" == typeof r2.emitWarning ? r2.emitWarning(t3, e3, s3, i3) : console.error(`[${s3}] ${e3}: ${t3}`);
|
|
210751
|
+
};
|
|
210752
|
+
let o = globalThis.AbortController, h = globalThis.AbortSignal;
|
|
210753
|
+
if (void 0 === o) {
|
|
210754
|
+
h = class {
|
|
210755
|
+
onabort;
|
|
210756
|
+
_onabort = [];
|
|
210757
|
+
reason;
|
|
210758
|
+
aborted = false;
|
|
210759
|
+
addEventListener(t4, e4) {
|
|
210760
|
+
this._onabort.push(e4);
|
|
210761
|
+
}
|
|
210762
|
+
}, o = class {
|
|
210763
|
+
constructor() {
|
|
210764
|
+
e3();
|
|
210765
|
+
}
|
|
210766
|
+
signal = new h();
|
|
210767
|
+
abort(t4) {
|
|
210768
|
+
var _a2, _b3;
|
|
210769
|
+
if (!this.signal.aborted) {
|
|
210770
|
+
this.signal.reason = t4, this.signal.aborted = true;
|
|
210771
|
+
for (const e4 of this.signal._onabort) e4(t4);
|
|
210772
|
+
(_b3 = (_a2 = this.signal).onabort) == null ? void 0 : _b3.call(_a2, t4);
|
|
210773
|
+
}
|
|
210774
|
+
}
|
|
210775
|
+
};
|
|
210776
|
+
let t3 = "1" !== ((_a = r2.env) == null ? void 0 : _a.LRU_CACHE_IGNORE_AC_WARNING);
|
|
210777
|
+
const e3 = () => {
|
|
210778
|
+
t3 && (t3 = false, n3("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e3));
|
|
210779
|
+
};
|
|
210780
|
+
}
|
|
210781
|
+
Symbol("type");
|
|
210782
|
+
const a = (t3) => t3 && t3 === Math.floor(t3) && t3 > 0 && isFinite(t3), l = (t3) => a(t3) ? t3 <= Math.pow(2, 8) ? Uint8Array : t3 <= Math.pow(2, 16) ? Uint16Array : t3 <= Math.pow(2, 32) ? Uint32Array : t3 <= Number.MAX_SAFE_INTEGER ? c : null : null;
|
|
210783
|
+
class c extends Array {
|
|
210784
|
+
constructor(t3) {
|
|
210785
|
+
super(t3), this.fill(0);
|
|
210786
|
+
}
|
|
210787
|
+
}
|
|
210788
|
+
const _p = class _p {
|
|
210789
|
+
heap;
|
|
210790
|
+
length;
|
|
210791
|
+
static create(t3) {
|
|
210792
|
+
const e3 = l(t3);
|
|
210793
|
+
if (!e3) return [];
|
|
210794
|
+
__privateSet(_p, _g, true);
|
|
210795
|
+
const s3 = new _p(t3, e3);
|
|
210796
|
+
return __privateSet(_p, _g, false), s3;
|
|
210797
|
+
}
|
|
210798
|
+
constructor(t3, e3) {
|
|
210799
|
+
if (!__privateGet(_p, _g)) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
210800
|
+
this.heap = new e3(t3), this.length = 0;
|
|
210801
|
+
}
|
|
210802
|
+
push(t3) {
|
|
210803
|
+
this.heap[this.length++] = t3;
|
|
210804
|
+
}
|
|
210805
|
+
pop() {
|
|
210806
|
+
return this.heap[--this.length];
|
|
210807
|
+
}
|
|
210808
|
+
};
|
|
210809
|
+
_g = new WeakMap();
|
|
210810
|
+
__privateAdd(_p, _g, false);
|
|
210811
|
+
let p = _p;
|
|
210812
|
+
const _d = class _d {
|
|
210813
|
+
constructor(t3) {
|
|
210814
|
+
__privateAdd(this, _d_instances);
|
|
210815
|
+
__privateAdd(this, _m);
|
|
210816
|
+
__privateAdd(this, _y);
|
|
210817
|
+
__privateAdd(this, _w);
|
|
210818
|
+
__privateAdd(this, _b2);
|
|
210819
|
+
__privateAdd(this, _v);
|
|
210820
|
+
__publicField(this, "ttl");
|
|
210821
|
+
__publicField(this, "ttlResolution");
|
|
210822
|
+
__publicField(this, "ttlAutopurge");
|
|
210823
|
+
__publicField(this, "updateAgeOnGet");
|
|
210824
|
+
__publicField(this, "updateAgeOnHas");
|
|
210825
|
+
__publicField(this, "allowStale");
|
|
210826
|
+
__publicField(this, "noDisposeOnSet");
|
|
210827
|
+
__publicField(this, "noUpdateTTL");
|
|
210828
|
+
__publicField(this, "maxEntrySize");
|
|
210829
|
+
__publicField(this, "sizeCalculation");
|
|
210830
|
+
__publicField(this, "noDeleteOnFetchRejection");
|
|
210831
|
+
__publicField(this, "noDeleteOnStaleGet");
|
|
210832
|
+
__publicField(this, "allowStaleOnFetchAbort");
|
|
210833
|
+
__publicField(this, "allowStaleOnFetchRejection");
|
|
210834
|
+
__publicField(this, "ignoreFetchAbort");
|
|
210835
|
+
__privateAdd(this, _S);
|
|
210836
|
+
__privateAdd(this, _k);
|
|
210837
|
+
__privateAdd(this, _x);
|
|
210838
|
+
__privateAdd(this, _E);
|
|
210839
|
+
__privateAdd(this, _L);
|
|
210840
|
+
__privateAdd(this, _T);
|
|
210841
|
+
__privateAdd(this, _C);
|
|
210842
|
+
__privateAdd(this, _M);
|
|
210843
|
+
__privateAdd(this, _A);
|
|
210844
|
+
__privateAdd(this, _O);
|
|
210845
|
+
__privateAdd(this, _P);
|
|
210846
|
+
__privateAdd(this, _R);
|
|
210847
|
+
__privateAdd(this, _F);
|
|
210848
|
+
__privateAdd(this, __);
|
|
210849
|
+
__privateAdd(this, _z);
|
|
210850
|
+
__privateAdd(this, _D);
|
|
210851
|
+
__privateAdd(this, _j);
|
|
210852
|
+
__privateAdd(this, _V, () => {
|
|
210853
|
+
});
|
|
210854
|
+
__privateAdd(this, _Z, () => {
|
|
210855
|
+
});
|
|
210856
|
+
__privateAdd(this, _H, () => {
|
|
210857
|
+
});
|
|
210858
|
+
__privateAdd(this, _U, () => false);
|
|
210859
|
+
__privateAdd(this, _J, (t3) => {
|
|
210860
|
+
});
|
|
210861
|
+
__privateAdd(this, _Y, (t3, e3, s3) => {
|
|
210862
|
+
});
|
|
210863
|
+
__privateAdd(this, _K, (t3, e3, s3, i3) => {
|
|
210864
|
+
if (s3 || i3) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
210865
|
+
return 0;
|
|
210866
|
+
});
|
|
210867
|
+
__publicField(this, _b, "LRUCache");
|
|
210868
|
+
const { max: e3 = 0, ttl: s3, ttlResolution: r3 = 1, ttlAutopurge: o2, updateAgeOnGet: h2, updateAgeOnHas: c2, allowStale: u, dispose: f, disposeAfter: g, noDisposeOnSet: m, noUpdateTTL: y, maxSize: w = 0, maxEntrySize: b = 0, sizeCalculation: v, fetchMethod: S, noDeleteOnFetchRejection: k, noDeleteOnStaleGet: x, allowStaleOnFetchRejection: E, allowStaleOnFetchAbort: L, ignoreFetchAbort: T } = t3;
|
|
210869
|
+
if (0 !== e3 && !a(e3)) throw new TypeError("max option must be a nonnegative integer");
|
|
210870
|
+
const C2 = e3 ? l(e3) : Array;
|
|
210871
|
+
if (!C2) throw new Error("invalid max value: " + e3);
|
|
210872
|
+
if (__privateSet(this, _m, e3), __privateSet(this, _y, w), this.maxEntrySize = b || __privateGet(this, _y), this.sizeCalculation = v, this.sizeCalculation) {
|
|
210873
|
+
if (!__privateGet(this, _y) && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
210874
|
+
if ("function" != typeof this.sizeCalculation) throw new TypeError("sizeCalculation set to non-function");
|
|
210875
|
+
}
|
|
210876
|
+
if (void 0 !== S && "function" != typeof S) throw new TypeError("fetchMethod must be a function if specified");
|
|
210877
|
+
if (__privateSet(this, _v, S), __privateSet(this, _D, !!S), __privateSet(this, _x, /* @__PURE__ */ new Map()), __privateSet(this, _E, new Array(e3).fill(void 0)), __privateSet(this, _L, new Array(e3).fill(void 0)), __privateSet(this, _T, new C2(e3)), __privateSet(this, _C, new C2(e3)), __privateSet(this, _M, 0), __privateSet(this, _A, 0), __privateSet(this, _O, p.create(e3)), __privateSet(this, _S, 0), __privateSet(this, _k, 0), "function" == typeof f && __privateSet(this, _w, f), "function" == typeof g ? (__privateSet(this, _b2, g), __privateSet(this, _P, [])) : (__privateSet(this, _b2, void 0), __privateSet(this, _P, void 0)), __privateSet(this, _z, !!__privateGet(this, _w)), __privateSet(this, _j, !!__privateGet(this, _b2)), this.noDisposeOnSet = !!m, this.noUpdateTTL = !!y, this.noDeleteOnFetchRejection = !!k, this.allowStaleOnFetchRejection = !!E, this.allowStaleOnFetchAbort = !!L, this.ignoreFetchAbort = !!T, 0 !== this.maxEntrySize) {
|
|
210878
|
+
if (0 !== __privateGet(this, _y) && !a(__privateGet(this, _y))) throw new TypeError("maxSize must be a positive integer if specified");
|
|
210879
|
+
if (!a(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
210880
|
+
__privateMethod(this, _d_instances, $_fn).call(this);
|
|
210881
|
+
}
|
|
210882
|
+
if (this.allowStale = !!u, this.noDeleteOnStaleGet = !!x, this.updateAgeOnGet = !!h2, this.updateAgeOnHas = !!c2, this.ttlResolution = a(r3) || 0 === r3 ? r3 : 1, this.ttlAutopurge = !!o2, this.ttl = s3 || 0, this.ttl) {
|
|
210883
|
+
if (!a(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
210884
|
+
__privateMethod(this, _d_instances, q_fn).call(this);
|
|
210885
|
+
}
|
|
210886
|
+
if (0 === __privateGet(this, _m) && 0 === this.ttl && 0 === __privateGet(this, _y)) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
210887
|
+
if (!this.ttlAutopurge && !__privateGet(this, _m) && !__privateGet(this, _y)) {
|
|
210888
|
+
const t4 = "LRU_CACHE_UNBOUNDED";
|
|
210889
|
+
if (((t5) => !i2.has(t5))(t4)) {
|
|
210890
|
+
i2.add(t4);
|
|
210891
|
+
n3("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", t4, _d);
|
|
210892
|
+
}
|
|
210893
|
+
}
|
|
210894
|
+
}
|
|
210895
|
+
static unsafeExposeInternals(t3) {
|
|
210896
|
+
return { starts: __privateGet(t3, _F), ttls: __privateGet(t3, __), sizes: __privateGet(t3, _R), keyMap: __privateGet(t3, _x), keyList: __privateGet(t3, _E), valList: __privateGet(t3, _L), next: __privateGet(t3, _T), prev: __privateGet(t3, _C), get head() {
|
|
210897
|
+
return __privateGet(t3, _M);
|
|
210898
|
+
}, get tail() {
|
|
210899
|
+
return __privateGet(t3, _A);
|
|
210900
|
+
}, free: __privateGet(t3, _O), isBackgroundFetch: (e3) => {
|
|
210901
|
+
var _a2;
|
|
210902
|
+
return __privateMethod(_a2 = t3, _d_instances, B_fn).call(_a2, e3);
|
|
210903
|
+
}, backgroundFetch: (e3, s3, i3, r3) => {
|
|
210904
|
+
var _a2;
|
|
210905
|
+
return __privateMethod(_a2 = t3, _d_instances, N_fn).call(_a2, e3, s3, i3, r3);
|
|
210906
|
+
}, moveToTail: (e3) => {
|
|
210907
|
+
var _a2;
|
|
210908
|
+
return __privateMethod(_a2 = t3, _d_instances, W_fn).call(_a2, e3);
|
|
210909
|
+
}, indexes: (e3) => {
|
|
210910
|
+
var _a2;
|
|
210911
|
+
return __privateMethod(_a2 = t3, _d_instances, I_fn).call(_a2, e3);
|
|
210912
|
+
}, rindexes: (e3) => {
|
|
210913
|
+
var _a2;
|
|
210914
|
+
return __privateMethod(_a2 = t3, _d_instances, G_fn).call(_a2, e3);
|
|
210915
|
+
}, isStale: (e3) => {
|
|
210916
|
+
var _a2;
|
|
210917
|
+
return __privateGet(_a2 = t3, _U).call(_a2, e3);
|
|
210918
|
+
} };
|
|
210919
|
+
}
|
|
210920
|
+
get max() {
|
|
210921
|
+
return __privateGet(this, _m);
|
|
210922
|
+
}
|
|
210923
|
+
get maxSize() {
|
|
210924
|
+
return __privateGet(this, _y);
|
|
210925
|
+
}
|
|
210926
|
+
get calculatedSize() {
|
|
210927
|
+
return __privateGet(this, _k);
|
|
210928
|
+
}
|
|
210929
|
+
get size() {
|
|
210930
|
+
return __privateGet(this, _S);
|
|
210931
|
+
}
|
|
210932
|
+
get fetchMethod() {
|
|
210933
|
+
return __privateGet(this, _v);
|
|
210934
|
+
}
|
|
210935
|
+
get dispose() {
|
|
210936
|
+
return __privateGet(this, _w);
|
|
210937
|
+
}
|
|
210938
|
+
get disposeAfter() {
|
|
210939
|
+
return __privateGet(this, _b2);
|
|
210940
|
+
}
|
|
210941
|
+
getRemainingTTL(t3) {
|
|
210942
|
+
return __privateGet(this, _x).has(t3) ? 1 / 0 : 0;
|
|
210943
|
+
}
|
|
210944
|
+
*entries() {
|
|
210945
|
+
for (const t3 of __privateMethod(this, _d_instances, I_fn).call(this)) void 0 === __privateGet(this, _L)[t3] || void 0 === __privateGet(this, _E)[t3] || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield [__privateGet(this, _E)[t3], __privateGet(this, _L)[t3]]);
|
|
210946
|
+
}
|
|
210947
|
+
*rentries() {
|
|
210948
|
+
for (const t3 of __privateMethod(this, _d_instances, G_fn).call(this)) void 0 === __privateGet(this, _L)[t3] || void 0 === __privateGet(this, _E)[t3] || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield [__privateGet(this, _E)[t3], __privateGet(this, _L)[t3]]);
|
|
210949
|
+
}
|
|
210950
|
+
*keys() {
|
|
210951
|
+
for (const t3 of __privateMethod(this, _d_instances, I_fn).call(this)) {
|
|
210952
|
+
const e3 = __privateGet(this, _E)[t3];
|
|
210953
|
+
void 0 === e3 || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield e3);
|
|
210954
|
+
}
|
|
210955
|
+
}
|
|
210956
|
+
*rkeys() {
|
|
210957
|
+
for (const t3 of __privateMethod(this, _d_instances, G_fn).call(this)) {
|
|
210958
|
+
const e3 = __privateGet(this, _E)[t3];
|
|
210959
|
+
void 0 === e3 || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield e3);
|
|
210960
|
+
}
|
|
210961
|
+
}
|
|
210962
|
+
*values() {
|
|
210963
|
+
for (const t3 of __privateMethod(this, _d_instances, I_fn).call(this)) {
|
|
210964
|
+
void 0 === __privateGet(this, _L)[t3] || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield __privateGet(this, _L)[t3]);
|
|
210965
|
+
}
|
|
210966
|
+
}
|
|
210967
|
+
*rvalues() {
|
|
210968
|
+
for (const t3 of __privateMethod(this, _d_instances, G_fn).call(this)) {
|
|
210969
|
+
void 0 === __privateGet(this, _L)[t3] || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield __privateGet(this, _L)[t3]);
|
|
210970
|
+
}
|
|
210971
|
+
}
|
|
210972
|
+
[(_c = Symbol.iterator, _b = Symbol.toStringTag, _c)]() {
|
|
210973
|
+
return this.entries();
|
|
210974
|
+
}
|
|
210975
|
+
find(t3, e3 = {}) {
|
|
210976
|
+
for (const s3 of __privateMethod(this, _d_instances, I_fn).call(this)) {
|
|
210977
|
+
const i3 = __privateGet(this, _L)[s3], r3 = __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__staleWhileFetching : i3;
|
|
210978
|
+
if (void 0 !== r3 && t3(r3, __privateGet(this, _E)[s3], this)) return this.get(__privateGet(this, _E)[s3], e3);
|
|
210979
|
+
}
|
|
210980
|
+
}
|
|
210981
|
+
forEach(t3, e3 = this) {
|
|
210982
|
+
for (const s3 of __privateMethod(this, _d_instances, I_fn).call(this)) {
|
|
210983
|
+
const i3 = __privateGet(this, _L)[s3], r3 = __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__staleWhileFetching : i3;
|
|
210984
|
+
void 0 !== r3 && t3.call(e3, r3, __privateGet(this, _E)[s3], this);
|
|
210985
|
+
}
|
|
210986
|
+
}
|
|
210987
|
+
rforEach(t3, e3 = this) {
|
|
210988
|
+
for (const s3 of __privateMethod(this, _d_instances, G_fn).call(this)) {
|
|
210989
|
+
const i3 = __privateGet(this, _L)[s3], r3 = __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__staleWhileFetching : i3;
|
|
210990
|
+
void 0 !== r3 && t3.call(e3, r3, __privateGet(this, _E)[s3], this);
|
|
210991
|
+
}
|
|
210992
|
+
}
|
|
210993
|
+
purgeStale() {
|
|
210994
|
+
let t3 = false;
|
|
210995
|
+
for (const e3 of __privateMethod(this, _d_instances, G_fn).call(this, { allowStale: true })) __privateGet(this, _U).call(this, e3) && (this.delete(__privateGet(this, _E)[e3]), t3 = true);
|
|
210996
|
+
return t3;
|
|
210997
|
+
}
|
|
210998
|
+
info(t3) {
|
|
210999
|
+
const e3 = __privateGet(this, _x).get(t3);
|
|
211000
|
+
if (void 0 === e3) return;
|
|
211001
|
+
const i3 = __privateGet(this, _L)[e3], r3 = __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__staleWhileFetching : i3;
|
|
211002
|
+
if (void 0 === r3) return;
|
|
211003
|
+
const n4 = { value: r3 };
|
|
211004
|
+
if (__privateGet(this, __) && __privateGet(this, _F)) {
|
|
211005
|
+
const t4 = __privateGet(this, __)[e3], i4 = __privateGet(this, _F)[e3];
|
|
211006
|
+
if (t4 && i4) {
|
|
211007
|
+
const e4 = t4 - (s2.now() - i4);
|
|
211008
|
+
n4.ttl = e4, n4.start = Date.now();
|
|
211009
|
+
}
|
|
211010
|
+
}
|
|
211011
|
+
return __privateGet(this, _R) && (n4.size = __privateGet(this, _R)[e3]), n4;
|
|
211012
|
+
}
|
|
211013
|
+
dump() {
|
|
211014
|
+
const t3 = [];
|
|
211015
|
+
for (const e3 of __privateMethod(this, _d_instances, I_fn).call(this, { allowStale: true })) {
|
|
211016
|
+
const i3 = __privateGet(this, _E)[e3], r3 = __privateGet(this, _L)[e3], n4 = __privateMethod(this, _d_instances, B_fn).call(this, r3) ? r3.__staleWhileFetching : r3;
|
|
211017
|
+
if (void 0 === n4 || void 0 === i3) continue;
|
|
211018
|
+
const o2 = { value: n4 };
|
|
211019
|
+
if (__privateGet(this, __) && __privateGet(this, _F)) {
|
|
211020
|
+
o2.ttl = __privateGet(this, __)[e3];
|
|
211021
|
+
const t4 = s2.now() - __privateGet(this, _F)[e3];
|
|
211022
|
+
o2.start = Math.floor(Date.now() - t4);
|
|
211023
|
+
}
|
|
211024
|
+
__privateGet(this, _R) && (o2.size = __privateGet(this, _R)[e3]), t3.unshift([i3, o2]);
|
|
211025
|
+
}
|
|
211026
|
+
return t3;
|
|
211027
|
+
}
|
|
211028
|
+
load(t3) {
|
|
211029
|
+
this.clear();
|
|
211030
|
+
for (const [e3, i3] of t3) {
|
|
211031
|
+
if (i3.start) {
|
|
211032
|
+
const t4 = Date.now() - i3.start;
|
|
211033
|
+
i3.start = s2.now() - t4;
|
|
211034
|
+
}
|
|
211035
|
+
this.set(e3, i3.value, i3);
|
|
211036
|
+
}
|
|
211037
|
+
}
|
|
211038
|
+
set(t3, e3, s3 = {}) {
|
|
211039
|
+
var _a2, _b3, _c2, _d2, _e;
|
|
211040
|
+
if (void 0 === e3) return this.delete(t3), this;
|
|
211041
|
+
const { ttl: i3 = this.ttl, start: r3, noDisposeOnSet: n4 = this.noDisposeOnSet, sizeCalculation: o2 = this.sizeCalculation, status: h2 } = s3;
|
|
211042
|
+
let { noUpdateTTL: a2 = this.noUpdateTTL } = s3;
|
|
211043
|
+
const l2 = __privateGet(this, _K).call(this, t3, e3, s3.size || 0, o2);
|
|
211044
|
+
if (this.maxEntrySize && l2 > this.maxEntrySize) return h2 && (h2.set = "miss", h2.maxEntrySizeExceeded = true), this.delete(t3), this;
|
|
211045
|
+
let c2 = 0 === __privateGet(this, _S) ? void 0 : __privateGet(this, _x).get(t3);
|
|
211046
|
+
if (void 0 === c2) c2 = 0 === __privateGet(this, _S) ? __privateGet(this, _A) : 0 !== __privateGet(this, _O).length ? __privateGet(this, _O).pop() : __privateGet(this, _S) === __privateGet(this, _m) ? __privateMethod(this, _d_instances, X_fn).call(this, false) : __privateGet(this, _S), __privateGet(this, _E)[c2] = t3, __privateGet(this, _L)[c2] = e3, __privateGet(this, _x).set(t3, c2), __privateGet(this, _T)[__privateGet(this, _A)] = c2, __privateGet(this, _C)[c2] = __privateGet(this, _A), __privateSet(this, _A, c2), __privateWrapper(this, _S)._++, __privateGet(this, _Y).call(this, c2, l2, h2), h2 && (h2.set = "add"), a2 = false;
|
|
211047
|
+
else {
|
|
211048
|
+
__privateMethod(this, _d_instances, W_fn).call(this, c2);
|
|
211049
|
+
const s4 = __privateGet(this, _L)[c2];
|
|
211050
|
+
if (e3 !== s4) {
|
|
211051
|
+
if (__privateGet(this, _D) && __privateMethod(this, _d_instances, B_fn).call(this, s4)) {
|
|
211052
|
+
s4.__abortController.abort(new Error("replaced"));
|
|
211053
|
+
const { __staleWhileFetching: e4 } = s4;
|
|
211054
|
+
void 0 === e4 || n4 || (__privateGet(this, _z) && ((_a2 = __privateGet(this, _w)) == null ? void 0 : _a2.call(this, e4, t3, "set")), __privateGet(this, _j) && ((_b3 = __privateGet(this, _P)) == null ? void 0 : _b3.push([e4, t3, "set"])));
|
|
211055
|
+
} else n4 || (__privateGet(this, _z) && ((_c2 = __privateGet(this, _w)) == null ? void 0 : _c2.call(this, s4, t3, "set")), __privateGet(this, _j) && ((_d2 = __privateGet(this, _P)) == null ? void 0 : _d2.push([s4, t3, "set"])));
|
|
211056
|
+
if (__privateGet(this, _J).call(this, c2), __privateGet(this, _Y).call(this, c2, l2, h2), __privateGet(this, _L)[c2] = e3, h2) {
|
|
211057
|
+
h2.set = "replace";
|
|
211058
|
+
const t4 = s4 && __privateMethod(this, _d_instances, B_fn).call(this, s4) ? s4.__staleWhileFetching : s4;
|
|
211059
|
+
void 0 !== t4 && (h2.oldValue = t4);
|
|
211060
|
+
}
|
|
211061
|
+
} else h2 && (h2.set = "update");
|
|
211062
|
+
}
|
|
211063
|
+
if (0 === i3 || __privateGet(this, __) || __privateMethod(this, _d_instances, q_fn).call(this), __privateGet(this, __) && (a2 || __privateGet(this, _H).call(this, c2, i3, r3), h2 && __privateGet(this, _Z).call(this, h2, c2)), !n4 && __privateGet(this, _j) && __privateGet(this, _P)) {
|
|
211064
|
+
const t4 = __privateGet(this, _P);
|
|
211065
|
+
let e4;
|
|
211066
|
+
for (; e4 = t4 == null ? void 0 : t4.shift(); ) (_e = __privateGet(this, _b2)) == null ? void 0 : _e.call(this, ...e4);
|
|
211067
|
+
}
|
|
211068
|
+
return this;
|
|
211069
|
+
}
|
|
211070
|
+
pop() {
|
|
211071
|
+
var _a2;
|
|
211072
|
+
try {
|
|
211073
|
+
for (; __privateGet(this, _S); ) {
|
|
211074
|
+
const t3 = __privateGet(this, _L)[__privateGet(this, _M)];
|
|
211075
|
+
if (__privateMethod(this, _d_instances, X_fn).call(this, true), __privateMethod(this, _d_instances, B_fn).call(this, t3)) {
|
|
211076
|
+
if (t3.__staleWhileFetching) return t3.__staleWhileFetching;
|
|
211077
|
+
} else if (void 0 !== t3) return t3;
|
|
211078
|
+
}
|
|
211079
|
+
} finally {
|
|
211080
|
+
if (__privateGet(this, _j) && __privateGet(this, _P)) {
|
|
211081
|
+
const t3 = __privateGet(this, _P);
|
|
211082
|
+
let e3;
|
|
211083
|
+
for (; e3 = t3 == null ? void 0 : t3.shift(); ) (_a2 = __privateGet(this, _b2)) == null ? void 0 : _a2.call(this, ...e3);
|
|
211084
|
+
}
|
|
211085
|
+
}
|
|
211086
|
+
}
|
|
211087
|
+
has(t3, e3 = {}) {
|
|
211088
|
+
const { updateAgeOnHas: s3 = this.updateAgeOnHas, status: i3 } = e3, r3 = __privateGet(this, _x).get(t3);
|
|
211089
|
+
if (void 0 !== r3) {
|
|
211090
|
+
const t4 = __privateGet(this, _L)[r3];
|
|
211091
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, t4) && void 0 === t4.__staleWhileFetching) return false;
|
|
211092
|
+
if (!__privateGet(this, _U).call(this, r3)) return s3 && __privateGet(this, _V).call(this, r3), i3 && (i3.has = "hit", __privateGet(this, _Z).call(this, i3, r3)), true;
|
|
211093
|
+
i3 && (i3.has = "stale", __privateGet(this, _Z).call(this, i3, r3));
|
|
211094
|
+
} else i3 && (i3.has = "miss");
|
|
211095
|
+
return false;
|
|
211096
|
+
}
|
|
211097
|
+
peek(t3, e3 = {}) {
|
|
211098
|
+
const { allowStale: s3 = this.allowStale } = e3, i3 = __privateGet(this, _x).get(t3);
|
|
211099
|
+
if (void 0 === i3 || !s3 && __privateGet(this, _U).call(this, i3)) return;
|
|
211100
|
+
const r3 = __privateGet(this, _L)[i3];
|
|
211101
|
+
return __privateMethod(this, _d_instances, B_fn).call(this, r3) ? r3.__staleWhileFetching : r3;
|
|
211102
|
+
}
|
|
211103
|
+
async fetch(t3, e3 = {}) {
|
|
211104
|
+
const { allowStale: s3 = this.allowStale, updateAgeOnGet: i3 = this.updateAgeOnGet, noDeleteOnStaleGet: r3 = this.noDeleteOnStaleGet, ttl: n4 = this.ttl, noDisposeOnSet: o2 = this.noDisposeOnSet, size: h2 = 0, sizeCalculation: a2 = this.sizeCalculation, noUpdateTTL: l2 = this.noUpdateTTL, noDeleteOnFetchRejection: c2 = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: p2 = this.allowStaleOnFetchRejection, ignoreFetchAbort: d2 = this.ignoreFetchAbort, allowStaleOnFetchAbort: u = this.allowStaleOnFetchAbort, context: f, forceRefresh: g = false, status: m, signal: y } = e3;
|
|
211105
|
+
if (!__privateGet(this, _D)) return m && (m.fetch = "get"), this.get(t3, { allowStale: s3, updateAgeOnGet: i3, noDeleteOnStaleGet: r3, status: m });
|
|
211106
|
+
const w = { allowStale: s3, updateAgeOnGet: i3, noDeleteOnStaleGet: r3, ttl: n4, noDisposeOnSet: o2, size: h2, sizeCalculation: a2, noUpdateTTL: l2, noDeleteOnFetchRejection: c2, allowStaleOnFetchRejection: p2, allowStaleOnFetchAbort: u, ignoreFetchAbort: d2, status: m, signal: y };
|
|
211107
|
+
let b = __privateGet(this, _x).get(t3);
|
|
211108
|
+
if (void 0 === b) {
|
|
211109
|
+
m && (m.fetch = "miss");
|
|
211110
|
+
const e4 = __privateMethod(this, _d_instances, N_fn).call(this, t3, b, w, f);
|
|
211111
|
+
return e4.__returned = e4;
|
|
211112
|
+
}
|
|
211113
|
+
{
|
|
211114
|
+
const e4 = __privateGet(this, _L)[b];
|
|
211115
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, e4)) {
|
|
211116
|
+
const t4 = s3 && void 0 !== e4.__staleWhileFetching;
|
|
211117
|
+
return m && (m.fetch = "inflight", t4 && (m.returnedStale = true)), t4 ? e4.__staleWhileFetching : e4.__returned = e4;
|
|
211118
|
+
}
|
|
211119
|
+
const r4 = __privateGet(this, _U).call(this, b);
|
|
211120
|
+
if (!g && !r4) return m && (m.fetch = "hit"), __privateMethod(this, _d_instances, W_fn).call(this, b), i3 && __privateGet(this, _V).call(this, b), m && __privateGet(this, _Z).call(this, m, b), e4;
|
|
211121
|
+
const n5 = __privateMethod(this, _d_instances, N_fn).call(this, t3, b, w, f), o3 = void 0 !== n5.__staleWhileFetching && s3;
|
|
211122
|
+
return m && (m.fetch = r4 ? "stale" : "refresh", o3 && r4 && (m.returnedStale = true)), o3 ? n5.__staleWhileFetching : n5.__returned = n5;
|
|
211123
|
+
}
|
|
211124
|
+
}
|
|
211125
|
+
get(t3, e3 = {}) {
|
|
211126
|
+
const { allowStale: s3 = this.allowStale, updateAgeOnGet: i3 = this.updateAgeOnGet, noDeleteOnStaleGet: r3 = this.noDeleteOnStaleGet, status: n4 } = e3, o2 = __privateGet(this, _x).get(t3);
|
|
211127
|
+
if (void 0 !== o2) {
|
|
211128
|
+
const e4 = __privateGet(this, _L)[o2], h2 = __privateMethod(this, _d_instances, B_fn).call(this, e4);
|
|
211129
|
+
return n4 && __privateGet(this, _Z).call(this, n4, o2), __privateGet(this, _U).call(this, o2) ? (n4 && (n4.get = "stale"), h2 ? (n4 && s3 && void 0 !== e4.__staleWhileFetching && (n4.returnedStale = true), s3 ? e4.__staleWhileFetching : void 0) : (r3 || this.delete(t3), n4 && s3 && (n4.returnedStale = true), s3 ? e4 : void 0)) : (n4 && (n4.get = "hit"), h2 ? e4.__staleWhileFetching : (__privateMethod(this, _d_instances, W_fn).call(this, o2), i3 && __privateGet(this, _V).call(this, o2), e4));
|
|
211130
|
+
}
|
|
211131
|
+
n4 && (n4.get = "miss");
|
|
211132
|
+
}
|
|
211133
|
+
delete(t3) {
|
|
211134
|
+
var _a2, _b3, _c2, _d2;
|
|
211135
|
+
let e3 = false;
|
|
211136
|
+
if (0 !== __privateGet(this, _S)) {
|
|
211137
|
+
const s3 = __privateGet(this, _x).get(t3);
|
|
211138
|
+
if (void 0 !== s3) if (e3 = true, 1 === __privateGet(this, _S)) this.clear();
|
|
211139
|
+
else {
|
|
211140
|
+
__privateGet(this, _J).call(this, s3);
|
|
211141
|
+
const e4 = __privateGet(this, _L)[s3];
|
|
211142
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, e4) ? e4.__abortController.abort(new Error("deleted")) : (__privateGet(this, _z) || __privateGet(this, _j)) && (__privateGet(this, _z) && ((_a2 = __privateGet(this, _w)) == null ? void 0 : _a2.call(this, e4, t3, "delete")), __privateGet(this, _j) && ((_b3 = __privateGet(this, _P)) == null ? void 0 : _b3.push([e4, t3, "delete"]))), __privateGet(this, _x).delete(t3), __privateGet(this, _E)[s3] = void 0, __privateGet(this, _L)[s3] = void 0, s3 === __privateGet(this, _A)) __privateSet(this, _A, __privateGet(this, _C)[s3]);
|
|
211143
|
+
else if (s3 === __privateGet(this, _M)) __privateSet(this, _M, __privateGet(this, _T)[s3]);
|
|
211144
|
+
else {
|
|
211145
|
+
const t4 = __privateGet(this, _C)[s3];
|
|
211146
|
+
__privateGet(this, _T)[t4] = __privateGet(this, _T)[s3];
|
|
211147
|
+
const e5 = __privateGet(this, _T)[s3];
|
|
211148
|
+
__privateGet(this, _C)[e5] = __privateGet(this, _C)[s3];
|
|
211149
|
+
}
|
|
211150
|
+
__privateWrapper(this, _S)._--, __privateGet(this, _O).push(s3);
|
|
211151
|
+
}
|
|
211152
|
+
}
|
|
211153
|
+
if (__privateGet(this, _j) && ((_c2 = __privateGet(this, _P)) == null ? void 0 : _c2.length)) {
|
|
211154
|
+
const t4 = __privateGet(this, _P);
|
|
211155
|
+
let e4;
|
|
211156
|
+
for (; e4 = t4 == null ? void 0 : t4.shift(); ) (_d2 = __privateGet(this, _b2)) == null ? void 0 : _d2.call(this, ...e4);
|
|
211157
|
+
}
|
|
211158
|
+
return e3;
|
|
211159
|
+
}
|
|
211160
|
+
clear() {
|
|
211161
|
+
var _a2, _b3, _c2;
|
|
211162
|
+
for (const t3 of __privateMethod(this, _d_instances, G_fn).call(this, { allowStale: true })) {
|
|
211163
|
+
const e3 = __privateGet(this, _L)[t3];
|
|
211164
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, e3)) e3.__abortController.abort(new Error("deleted"));
|
|
211165
|
+
else {
|
|
211166
|
+
const s3 = __privateGet(this, _E)[t3];
|
|
211167
|
+
__privateGet(this, _z) && ((_a2 = __privateGet(this, _w)) == null ? void 0 : _a2.call(this, e3, s3, "delete")), __privateGet(this, _j) && ((_b3 = __privateGet(this, _P)) == null ? void 0 : _b3.push([e3, s3, "delete"]));
|
|
211168
|
+
}
|
|
211169
|
+
}
|
|
211170
|
+
if (__privateGet(this, _x).clear(), __privateGet(this, _L).fill(void 0), __privateGet(this, _E).fill(void 0), __privateGet(this, __) && __privateGet(this, _F) && (__privateGet(this, __).fill(0), __privateGet(this, _F).fill(0)), __privateGet(this, _R) && __privateGet(this, _R).fill(0), __privateSet(this, _M, 0), __privateSet(this, _A, 0), __privateGet(this, _O).length = 0, __privateSet(this, _k, 0), __privateSet(this, _S, 0), __privateGet(this, _j) && __privateGet(this, _P)) {
|
|
211171
|
+
const t3 = __privateGet(this, _P);
|
|
211172
|
+
let e3;
|
|
211173
|
+
for (; e3 = t3 == null ? void 0 : t3.shift(); ) (_c2 = __privateGet(this, _b2)) == null ? void 0 : _c2.call(this, ...e3);
|
|
211174
|
+
}
|
|
211175
|
+
}
|
|
211176
|
+
};
|
|
211177
|
+
_m = new WeakMap();
|
|
211178
|
+
_y = new WeakMap();
|
|
211179
|
+
_w = new WeakMap();
|
|
211180
|
+
_b2 = new WeakMap();
|
|
211181
|
+
_v = new WeakMap();
|
|
211182
|
+
_S = new WeakMap();
|
|
211183
|
+
_k = new WeakMap();
|
|
211184
|
+
_x = new WeakMap();
|
|
211185
|
+
_E = new WeakMap();
|
|
211186
|
+
_L = new WeakMap();
|
|
211187
|
+
_T = new WeakMap();
|
|
211188
|
+
_C = new WeakMap();
|
|
211189
|
+
_M = new WeakMap();
|
|
211190
|
+
_A = new WeakMap();
|
|
211191
|
+
_O = new WeakMap();
|
|
211192
|
+
_P = new WeakMap();
|
|
211193
|
+
_R = new WeakMap();
|
|
211194
|
+
_F = new WeakMap();
|
|
211195
|
+
__ = new WeakMap();
|
|
211196
|
+
_z = new WeakMap();
|
|
211197
|
+
_D = new WeakMap();
|
|
211198
|
+
_j = new WeakMap();
|
|
211199
|
+
_d_instances = new WeakSet();
|
|
211200
|
+
q_fn = function() {
|
|
211201
|
+
const t3 = new c(__privateGet(this, _m)), e3 = new c(__privateGet(this, _m));
|
|
211202
|
+
__privateSet(this, __, t3), __privateSet(this, _F, e3), __privateSet(this, _H, (i4, r4, n4 = s2.now()) => {
|
|
211203
|
+
if (e3[i4] = 0 !== r4 ? n4 : 0, t3[i4] = r4, 0 !== r4 && this.ttlAutopurge) {
|
|
211204
|
+
const t4 = setTimeout(() => {
|
|
211205
|
+
__privateGet(this, _U).call(this, i4) && this.delete(__privateGet(this, _E)[i4]);
|
|
211206
|
+
}, r4 + 1);
|
|
211207
|
+
t4.unref && t4.unref();
|
|
211208
|
+
}
|
|
211209
|
+
}), __privateSet(this, _V, (i4) => {
|
|
211210
|
+
e3[i4] = 0 !== t3[i4] ? s2.now() : 0;
|
|
211211
|
+
}), __privateSet(this, _Z, (s3, n4) => {
|
|
211212
|
+
if (t3[n4]) {
|
|
211213
|
+
const o2 = t3[n4], h2 = e3[n4];
|
|
211214
|
+
if (!o2 || !h2) return;
|
|
211215
|
+
s3.ttl = o2, s3.start = h2, s3.now = i3 || r3();
|
|
211216
|
+
const a2 = s3.now - h2;
|
|
211217
|
+
s3.remainingTTL = o2 - a2;
|
|
211218
|
+
}
|
|
211219
|
+
});
|
|
211220
|
+
let i3 = 0;
|
|
211221
|
+
const r3 = () => {
|
|
211222
|
+
const t4 = s2.now();
|
|
211223
|
+
if (this.ttlResolution > 0) {
|
|
211224
|
+
i3 = t4;
|
|
211225
|
+
const e4 = setTimeout(() => i3 = 0, this.ttlResolution);
|
|
211226
|
+
e4.unref && e4.unref();
|
|
211227
|
+
}
|
|
211228
|
+
return t4;
|
|
211229
|
+
};
|
|
211230
|
+
this.getRemainingTTL = (s3) => {
|
|
211231
|
+
const n4 = __privateGet(this, _x).get(s3);
|
|
211232
|
+
if (void 0 === n4) return 0;
|
|
211233
|
+
const o2 = t3[n4], h2 = e3[n4];
|
|
211234
|
+
if (!o2 || !h2) return 1 / 0;
|
|
211235
|
+
return o2 - ((i3 || r3()) - h2);
|
|
211236
|
+
}, __privateSet(this, _U, (s3) => {
|
|
211237
|
+
const n4 = e3[s3], o2 = t3[s3];
|
|
211238
|
+
return !!o2 && !!n4 && (i3 || r3()) - n4 > o2;
|
|
211239
|
+
});
|
|
211240
|
+
};
|
|
211241
|
+
_V = new WeakMap();
|
|
211242
|
+
_Z = new WeakMap();
|
|
211243
|
+
_H = new WeakMap();
|
|
211244
|
+
_U = new WeakMap();
|
|
211245
|
+
$_fn = function() {
|
|
211246
|
+
const t3 = new c(__privateGet(this, _m));
|
|
211247
|
+
__privateSet(this, _k, 0), __privateSet(this, _R, t3), __privateSet(this, _J, (e3) => {
|
|
211248
|
+
__privateSet(this, _k, __privateGet(this, _k) - t3[e3]), t3[e3] = 0;
|
|
211249
|
+
}), __privateSet(this, _K, (t4, e3, s3, i3) => {
|
|
211250
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, e3)) return 0;
|
|
211251
|
+
if (!a(s3)) {
|
|
211252
|
+
if (!i3) throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
211253
|
+
if ("function" != typeof i3) throw new TypeError("sizeCalculation must be a function");
|
|
211254
|
+
if (s3 = i3(e3, t4), !a(s3)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
211255
|
+
}
|
|
211256
|
+
return s3;
|
|
211257
|
+
}), __privateSet(this, _Y, (e3, s3, i3) => {
|
|
211258
|
+
if (t3[e3] = s3, __privateGet(this, _y)) {
|
|
211259
|
+
const s4 = __privateGet(this, _y) - t3[e3];
|
|
211260
|
+
for (; __privateGet(this, _k) > s4; ) __privateMethod(this, _d_instances, X_fn).call(this, true);
|
|
211261
|
+
}
|
|
211262
|
+
__privateSet(this, _k, __privateGet(this, _k) + t3[e3]), i3 && (i3.entrySize = s3, i3.totalCalculatedSize = __privateGet(this, _k));
|
|
211263
|
+
});
|
|
211264
|
+
};
|
|
211265
|
+
_J = new WeakMap();
|
|
211266
|
+
_Y = new WeakMap();
|
|
211267
|
+
_K = new WeakMap();
|
|
211268
|
+
I_fn = function* ({ allowStale: t3 = this.allowStale } = {}) {
|
|
211269
|
+
if (__privateGet(this, _S)) for (let e3 = __privateGet(this, _A); __privateMethod(this, _d_instances, Q_fn).call(this, e3) && (!t3 && __privateGet(this, _U).call(this, e3) || (yield e3), e3 !== __privateGet(this, _M)); ) e3 = __privateGet(this, _C)[e3];
|
|
211270
|
+
};
|
|
211271
|
+
G_fn = function* ({ allowStale: t3 = this.allowStale } = {}) {
|
|
211272
|
+
if (__privateGet(this, _S)) for (let e3 = __privateGet(this, _M); __privateMethod(this, _d_instances, Q_fn).call(this, e3) && (!t3 && __privateGet(this, _U).call(this, e3) || (yield e3), e3 !== __privateGet(this, _A)); ) e3 = __privateGet(this, _T)[e3];
|
|
211273
|
+
};
|
|
211274
|
+
Q_fn = function(t3) {
|
|
211275
|
+
return void 0 !== t3 && __privateGet(this, _x).get(__privateGet(this, _E)[t3]) === t3;
|
|
211276
|
+
};
|
|
211277
|
+
X_fn = function(t3) {
|
|
211278
|
+
var _a2, _b3;
|
|
211279
|
+
const e3 = __privateGet(this, _M), s3 = __privateGet(this, _E)[e3], i3 = __privateGet(this, _L)[e3];
|
|
211280
|
+
return __privateGet(this, _D) && __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__abortController.abort(new Error("evicted")) : (__privateGet(this, _z) || __privateGet(this, _j)) && (__privateGet(this, _z) && ((_a2 = __privateGet(this, _w)) == null ? void 0 : _a2.call(this, i3, s3, "evict")), __privateGet(this, _j) && ((_b3 = __privateGet(this, _P)) == null ? void 0 : _b3.push([i3, s3, "evict"]))), __privateGet(this, _J).call(this, e3), t3 && (__privateGet(this, _E)[e3] = void 0, __privateGet(this, _L)[e3] = void 0, __privateGet(this, _O).push(e3)), 1 === __privateGet(this, _S) ? (__privateSet(this, _M, __privateSet(this, _A, 0)), __privateGet(this, _O).length = 0) : __privateSet(this, _M, __privateGet(this, _T)[e3]), __privateGet(this, _x).delete(s3), __privateWrapper(this, _S)._--, e3;
|
|
211281
|
+
};
|
|
211282
|
+
N_fn = function(t3, e3, s3, i3) {
|
|
211283
|
+
const r3 = void 0 === e3 ? void 0 : __privateGet(this, _L)[e3];
|
|
211284
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, r3)) return r3;
|
|
211285
|
+
const n4 = new o(), { signal: h2 } = s3;
|
|
211286
|
+
h2 == null ? void 0 : h2.addEventListener("abort", () => n4.abort(h2.reason), { signal: n4.signal });
|
|
211287
|
+
const a2 = { signal: n4.signal, options: s3, context: i3 }, l2 = (i4, r4 = false) => {
|
|
211288
|
+
const { aborted: o2 } = n4.signal, h3 = s3.ignoreFetchAbort && void 0 !== i4;
|
|
211289
|
+
if (s3.status && (o2 && !r4 ? (s3.status.fetchAborted = true, s3.status.fetchError = n4.signal.reason, h3 && (s3.status.fetchAbortIgnored = true)) : s3.status.fetchResolved = true), o2 && !h3 && !r4) return c2(n4.signal.reason);
|
|
211290
|
+
const l3 = p2;
|
|
211291
|
+
return __privateGet(this, _L)[e3] === p2 && (void 0 === i4 ? l3.__staleWhileFetching ? __privateGet(this, _L)[e3] = l3.__staleWhileFetching : this.delete(t3) : (s3.status && (s3.status.fetchUpdated = true), this.set(t3, i4, a2.options))), i4;
|
|
211292
|
+
}, c2 = (i4) => {
|
|
211293
|
+
const { aborted: r4 } = n4.signal, o2 = r4 && s3.allowStaleOnFetchAbort, h3 = o2 || s3.allowStaleOnFetchRejection, a3 = h3 || s3.noDeleteOnFetchRejection, l3 = p2;
|
|
211294
|
+
if (__privateGet(this, _L)[e3] === p2) {
|
|
211295
|
+
!a3 || void 0 === l3.__staleWhileFetching ? this.delete(t3) : o2 || (__privateGet(this, _L)[e3] = l3.__staleWhileFetching);
|
|
211296
|
+
}
|
|
211297
|
+
if (h3) return s3.status && void 0 !== l3.__staleWhileFetching && (s3.status.returnedStale = true), l3.__staleWhileFetching;
|
|
211298
|
+
if (l3.__returned === l3) throw i4;
|
|
211299
|
+
};
|
|
211300
|
+
s3.status && (s3.status.fetchDispatched = true);
|
|
211301
|
+
const p2 = new Promise((e4, i4) => {
|
|
211302
|
+
var _a2;
|
|
211303
|
+
const o2 = (_a2 = __privateGet(this, _v)) == null ? void 0 : _a2.call(this, t3, r3, a2);
|
|
211304
|
+
o2 && o2 instanceof Promise && o2.then((t4) => e4(void 0 === t4 ? void 0 : t4), i4), n4.signal.addEventListener("abort", () => {
|
|
211305
|
+
s3.ignoreFetchAbort && !s3.allowStaleOnFetchAbort || (e4(void 0), s3.allowStaleOnFetchAbort && (e4 = (t4) => l2(t4, true)));
|
|
211306
|
+
});
|
|
211307
|
+
}).then(l2, (t4) => (s3.status && (s3.status.fetchRejected = true, s3.status.fetchError = t4), c2(t4))), d2 = Object.assign(p2, { __abortController: n4, __staleWhileFetching: r3, __returned: void 0 });
|
|
211308
|
+
return void 0 === e3 ? (this.set(t3, d2, { ...a2.options, status: void 0 }), e3 = __privateGet(this, _x).get(t3)) : __privateGet(this, _L)[e3] = d2, d2;
|
|
211309
|
+
};
|
|
211310
|
+
B_fn = function(t3) {
|
|
211311
|
+
if (!__privateGet(this, _D)) return false;
|
|
211312
|
+
const e3 = t3;
|
|
211313
|
+
return !!e3 && e3 instanceof Promise && e3.hasOwnProperty("__staleWhileFetching") && e3.__abortController instanceof o;
|
|
211314
|
+
};
|
|
211315
|
+
tt_fn = function(t3, e3) {
|
|
211316
|
+
__privateGet(this, _C)[e3] = t3, __privateGet(this, _T)[t3] = e3;
|
|
211317
|
+
};
|
|
211318
|
+
W_fn = function(t3) {
|
|
211319
|
+
t3 !== __privateGet(this, _A) && (t3 === __privateGet(this, _M) ? __privateSet(this, _M, __privateGet(this, _T)[t3]) : __privateMethod(this, _d_instances, tt_fn).call(this, __privateGet(this, _C)[t3], __privateGet(this, _T)[t3]), __privateMethod(this, _d_instances, tt_fn).call(this, __privateGet(this, _A), t3), __privateSet(this, _A, t3));
|
|
211320
|
+
};
|
|
211321
|
+
let d = _d;
|
|
211322
|
+
e2.LRUCache = d;
|
|
211323
|
+
}, 274: (t2, e2) => {
|
|
211324
|
+
"use strict";
|
|
211325
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.assertValidPattern = void 0;
|
|
211326
|
+
e2.assertValidPattern = (t3) => {
|
|
211327
|
+
if ("string" != typeof t3) throw new TypeError("invalid pattern");
|
|
211328
|
+
if (t3.length > 65536) throw new TypeError("pattern is too long");
|
|
211329
|
+
};
|
|
211330
|
+
}, 674: (t2, e2, s2) => {
|
|
211331
|
+
"use strict";
|
|
211332
|
+
var _et, _st, _it, _rt, _nt, _ot, _ht, _at, _lt, _ct, _pt, _f_instances, dt_fn, _f_static, ut_fn, gt_fn, ft_fn;
|
|
211333
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.AST = void 0;
|
|
211334
|
+
const i2 = s2(843), r2 = s2(116), n3 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), o = (t3) => n3.has(t3), h = "(?!\\.)", a = /* @__PURE__ */ new Set(["[", "."]), l = /* @__PURE__ */ new Set(["..", "."]), c = new Set("().*{}+?[]^$\\!"), p = "[^/]", d = p + "*?", u = p + "+?";
|
|
211335
|
+
const _f = class _f {
|
|
211336
|
+
constructor(t3, e3, s3 = {}) {
|
|
211337
|
+
__privateAdd(this, _f_instances);
|
|
211338
|
+
__publicField(this, "type");
|
|
211339
|
+
__privateAdd(this, _et);
|
|
211340
|
+
__privateAdd(this, _st);
|
|
211341
|
+
__privateAdd(this, _it, false);
|
|
211342
|
+
__privateAdd(this, _rt, []);
|
|
211343
|
+
__privateAdd(this, _nt);
|
|
211344
|
+
__privateAdd(this, _ot);
|
|
211345
|
+
__privateAdd(this, _ht);
|
|
211346
|
+
__privateAdd(this, _at, false);
|
|
211347
|
+
__privateAdd(this, _lt);
|
|
211348
|
+
__privateAdd(this, _ct);
|
|
211349
|
+
__privateAdd(this, _pt, false);
|
|
211350
|
+
this.type = t3, t3 && __privateSet(this, _st, true), __privateSet(this, _nt, e3), __privateSet(this, _et, __privateGet(this, _nt) ? __privateGet(__privateGet(this, _nt), _et) : this), __privateSet(this, _lt, __privateGet(this, _et) === this ? s3 : __privateGet(__privateGet(this, _et), _lt)), __privateSet(this, _ht, __privateGet(this, _et) === this ? [] : __privateGet(__privateGet(this, _et), _ht)), "!" !== t3 || __privateGet(__privateGet(this, _et), _at) || __privateGet(this, _ht).push(this), __privateSet(this, _ot, __privateGet(this, _nt) ? __privateGet(__privateGet(this, _nt), _rt).length : 0);
|
|
211351
|
+
}
|
|
211352
|
+
get hasMagic() {
|
|
211353
|
+
if (void 0 !== __privateGet(this, _st)) return __privateGet(this, _st);
|
|
211354
|
+
for (const t3 of __privateGet(this, _rt)) if ("string" != typeof t3 && (t3.type || t3.hasMagic)) return __privateSet(this, _st, true);
|
|
211355
|
+
return __privateGet(this, _st);
|
|
211356
|
+
}
|
|
211357
|
+
toString() {
|
|
211358
|
+
return void 0 !== __privateGet(this, _ct) ? __privateGet(this, _ct) : this.type ? __privateSet(this, _ct, this.type + "(" + __privateGet(this, _rt).map((t3) => String(t3)).join("|") + ")") : __privateSet(this, _ct, __privateGet(this, _rt).map((t3) => String(t3)).join(""));
|
|
211359
|
+
}
|
|
211360
|
+
push(...t3) {
|
|
211361
|
+
for (const e3 of t3) if ("" !== e3) {
|
|
211362
|
+
if ("string" != typeof e3 && !(e3 instanceof _f && __privateGet(e3, _nt) === this)) throw new Error("invalid part: " + e3);
|
|
211363
|
+
__privateGet(this, _rt).push(e3);
|
|
211364
|
+
}
|
|
211365
|
+
}
|
|
211366
|
+
toJSON() {
|
|
211367
|
+
var _a;
|
|
211368
|
+
const t3 = null === this.type ? __privateGet(this, _rt).slice().map((t4) => "string" == typeof t4 ? t4 : t4.toJSON()) : [this.type, ...__privateGet(this, _rt).map((t4) => t4.toJSON())];
|
|
211369
|
+
return this.isStart() && !this.type && t3.unshift([]), this.isEnd() && (this === __privateGet(this, _et) || __privateGet(__privateGet(this, _et), _at) && "!" === ((_a = __privateGet(this, _nt)) == null ? void 0 : _a.type)) && t3.push({}), t3;
|
|
211370
|
+
}
|
|
211371
|
+
isStart() {
|
|
211372
|
+
var _a;
|
|
211373
|
+
if (__privateGet(this, _et) === this) return true;
|
|
211374
|
+
if (!((_a = __privateGet(this, _nt)) == null ? void 0 : _a.isStart())) return false;
|
|
211375
|
+
if (0 === __privateGet(this, _ot)) return true;
|
|
211376
|
+
const t3 = __privateGet(this, _nt);
|
|
211377
|
+
for (let e3 = 0; e3 < __privateGet(this, _ot); e3++) {
|
|
211378
|
+
const s3 = __privateGet(t3, _rt)[e3];
|
|
211379
|
+
if (!(s3 instanceof _f && "!" === s3.type)) return false;
|
|
211380
|
+
}
|
|
211381
|
+
return true;
|
|
211382
|
+
}
|
|
211383
|
+
isEnd() {
|
|
211384
|
+
var _a, _b, _c;
|
|
211385
|
+
if (__privateGet(this, _et) === this) return true;
|
|
211386
|
+
if ("!" === ((_a = __privateGet(this, _nt)) == null ? void 0 : _a.type)) return true;
|
|
211387
|
+
if (!((_b = __privateGet(this, _nt)) == null ? void 0 : _b.isEnd())) return false;
|
|
211388
|
+
if (!this.type) return (_c = __privateGet(this, _nt)) == null ? void 0 : _c.isEnd();
|
|
211389
|
+
const t3 = __privateGet(this, _nt) ? __privateGet(__privateGet(this, _nt), _rt).length : 0;
|
|
211390
|
+
return __privateGet(this, _ot) === t3 - 1;
|
|
211391
|
+
}
|
|
211392
|
+
copyIn(t3) {
|
|
211393
|
+
"string" == typeof t3 ? this.push(t3) : this.push(t3.clone(this));
|
|
211394
|
+
}
|
|
211395
|
+
clone(t3) {
|
|
211396
|
+
const e3 = new _f(this.type, t3);
|
|
211397
|
+
for (const t4 of __privateGet(this, _rt)) e3.copyIn(t4);
|
|
211398
|
+
return e3;
|
|
211399
|
+
}
|
|
211400
|
+
static fromGlob(t3, e3 = {}) {
|
|
211401
|
+
var _a;
|
|
211402
|
+
const s3 = new _f(null, void 0, e3);
|
|
211403
|
+
return __privateMethod(_a = _f, _f_static, ut_fn).call(_a, t3, s3, 0, e3), s3;
|
|
211404
|
+
}
|
|
211405
|
+
toMMPattern() {
|
|
211406
|
+
if (this !== __privateGet(this, _et)) return __privateGet(this, _et).toMMPattern();
|
|
211407
|
+
const t3 = this.toString(), [e3, s3, i3, r3] = this.toRegExpSource();
|
|
211408
|
+
if (!(i3 || __privateGet(this, _st) || __privateGet(this, _lt).nocase && !__privateGet(this, _lt).nocaseMagicOnly && t3.toUpperCase() !== t3.toLowerCase())) return s3;
|
|
211409
|
+
const n4 = (__privateGet(this, _lt).nocase ? "i" : "") + (r3 ? "u" : "");
|
|
211410
|
+
return Object.assign(new RegExp(`^${e3}$`, n4), { _src: e3, _glob: t3 });
|
|
211411
|
+
}
|
|
211412
|
+
get options() {
|
|
211413
|
+
return __privateGet(this, _lt);
|
|
211414
|
+
}
|
|
211415
|
+
toRegExpSource(t3) {
|
|
211416
|
+
var _a;
|
|
211417
|
+
const e3 = t3 != null ? t3 : !!__privateGet(this, _lt).dot;
|
|
211418
|
+
if (__privateGet(this, _et) === this && __privateMethod(this, _f_instances, dt_fn).call(this), !this.type) {
|
|
211419
|
+
const s4 = this.isStart() && this.isEnd(), i4 = __privateGet(this, _rt).map((e4) => {
|
|
211420
|
+
var _a2;
|
|
211421
|
+
const [i5, r3, n6, o4] = "string" == typeof e4 ? __privateMethod(_a2 = _f, _f_static, ft_fn).call(_a2, e4, __privateGet(this, _st), s4) : e4.toRegExpSource(t3);
|
|
211422
|
+
return __privateSet(this, _st, __privateGet(this, _st) || n6), __privateSet(this, _it, __privateGet(this, _it) || o4), i5;
|
|
211423
|
+
}).join("");
|
|
211424
|
+
let n5 = "";
|
|
211425
|
+
if (this.isStart() && "string" == typeof __privateGet(this, _rt)[0]) {
|
|
211426
|
+
if (!(1 === __privateGet(this, _rt).length && l.has(__privateGet(this, _rt)[0]))) {
|
|
211427
|
+
const s5 = a, r3 = e3 && s5.has(i4.charAt(0)) || i4.startsWith("\\.") && s5.has(i4.charAt(2)) || i4.startsWith("\\.\\.") && s5.has(i4.charAt(4)), o4 = !e3 && !t3 && s5.has(i4.charAt(0));
|
|
211428
|
+
n5 = r3 ? "(?!(?:^|/)\\.\\.?(?:$|/))" : o4 ? h : "";
|
|
211429
|
+
}
|
|
211430
|
+
}
|
|
211431
|
+
let o3 = "";
|
|
211432
|
+
this.isEnd() && __privateGet(__privateGet(this, _et), _at) && "!" === ((_a = __privateGet(this, _nt)) == null ? void 0 : _a.type) && (o3 = "(?:$|\\/)");
|
|
211433
|
+
return [n5 + i4 + o3, (0, r2.unescape)(i4), __privateSet(this, _st, !!__privateGet(this, _st)), __privateGet(this, _it)];
|
|
211434
|
+
}
|
|
211435
|
+
const s3 = "*" === this.type || "+" === this.type, i3 = "!" === this.type ? "(?:(?!(?:" : "(?:";
|
|
211436
|
+
let n4 = __privateMethod(this, _f_instances, gt_fn).call(this, e3);
|
|
211437
|
+
if (this.isStart() && this.isEnd() && !n4 && "!" !== this.type) {
|
|
211438
|
+
const t4 = this.toString();
|
|
211439
|
+
return __privateSet(this, _rt, [t4]), this.type = null, __privateSet(this, _st, void 0), [t4, (0, r2.unescape)(this.toString()), false, false];
|
|
211440
|
+
}
|
|
211441
|
+
let o2 = !s3 || t3 || e3 ? "" : __privateMethod(this, _f_instances, gt_fn).call(this, true);
|
|
211442
|
+
o2 === n4 && (o2 = ""), o2 && (n4 = `(?:${n4})(?:${o2})*?`);
|
|
211443
|
+
let c2 = "";
|
|
211444
|
+
if ("!" === this.type && __privateGet(this, _pt)) c2 = (this.isStart() && !e3 ? h : "") + u;
|
|
211445
|
+
else {
|
|
211446
|
+
c2 = i3 + n4 + ("!" === this.type ? "))" + (!this.isStart() || e3 || t3 ? "" : h) + d + ")" : "@" === this.type ? ")" : "?" === this.type ? ")?" : "+" === this.type && o2 ? ")" : "*" === this.type && o2 ? ")?" : `)${this.type}`);
|
|
211447
|
+
}
|
|
211448
|
+
return [c2, (0, r2.unescape)(n4), __privateSet(this, _st, !!__privateGet(this, _st)), __privateGet(this, _it)];
|
|
211449
|
+
}
|
|
211450
|
+
};
|
|
211451
|
+
_et = new WeakMap();
|
|
211452
|
+
_st = new WeakMap();
|
|
211453
|
+
_it = new WeakMap();
|
|
211454
|
+
_rt = new WeakMap();
|
|
211455
|
+
_nt = new WeakMap();
|
|
211456
|
+
_ot = new WeakMap();
|
|
211457
|
+
_ht = new WeakMap();
|
|
211458
|
+
_at = new WeakMap();
|
|
211459
|
+
_lt = new WeakMap();
|
|
211460
|
+
_ct = new WeakMap();
|
|
211461
|
+
_pt = new WeakMap();
|
|
211462
|
+
_f_instances = new WeakSet();
|
|
211463
|
+
dt_fn = function() {
|
|
211464
|
+
if (this !== __privateGet(this, _et)) throw new Error("should only call on root");
|
|
211465
|
+
if (__privateGet(this, _at)) return this;
|
|
211466
|
+
let t3;
|
|
211467
|
+
for (this.toString(), __privateSet(this, _at, true); t3 = __privateGet(this, _ht).pop(); ) {
|
|
211468
|
+
if ("!" !== t3.type) continue;
|
|
211469
|
+
let e3 = t3, s3 = __privateGet(e3, _nt);
|
|
211470
|
+
for (; s3; ) {
|
|
211471
|
+
for (let i3 = __privateGet(e3, _ot) + 1; !s3.type && i3 < __privateGet(s3, _rt).length; i3++) for (const e4 of __privateGet(t3, _rt)) {
|
|
211472
|
+
if ("string" == typeof e4) throw new Error("string part in extglob AST??");
|
|
211473
|
+
e4.copyIn(__privateGet(s3, _rt)[i3]);
|
|
211474
|
+
}
|
|
211475
|
+
e3 = s3, s3 = __privateGet(e3, _nt);
|
|
211476
|
+
}
|
|
211477
|
+
}
|
|
211478
|
+
return this;
|
|
211479
|
+
};
|
|
211480
|
+
_f_static = new WeakSet();
|
|
211481
|
+
ut_fn = function(t3, e3, s3, i3) {
|
|
211482
|
+
var _a, _b;
|
|
211483
|
+
let r3 = false, n4 = false, h2 = -1, a2 = false;
|
|
211484
|
+
if (null === e3.type) {
|
|
211485
|
+
let l3 = s3, c3 = "";
|
|
211486
|
+
for (; l3 < t3.length; ) {
|
|
211487
|
+
const s4 = t3.charAt(l3++);
|
|
211488
|
+
if (r3 || "\\" === s4) r3 = !r3, c3 += s4;
|
|
211489
|
+
else if (n4) l3 === h2 + 1 ? "^" !== s4 && "!" !== s4 || (a2 = true) : "]" !== s4 || l3 === h2 + 2 && a2 || (n4 = false), c3 += s4;
|
|
211490
|
+
else if ("[" !== s4) if (i3.noext || !o(s4) || "(" !== t3.charAt(l3)) c3 += s4;
|
|
211491
|
+
else {
|
|
211492
|
+
e3.push(c3), c3 = "";
|
|
211493
|
+
const r4 = new _f(s4, e3);
|
|
211494
|
+
l3 = __privateMethod(_a = _f, _f_static, ut_fn).call(_a, t3, r4, l3, i3), e3.push(r4);
|
|
211495
|
+
}
|
|
211496
|
+
else n4 = true, h2 = l3, a2 = false, c3 += s4;
|
|
211497
|
+
}
|
|
211498
|
+
return e3.push(c3), l3;
|
|
211499
|
+
}
|
|
211500
|
+
let l2 = s3 + 1, c2 = new _f(null, e3);
|
|
211501
|
+
const p2 = [];
|
|
211502
|
+
let d2 = "";
|
|
211503
|
+
for (; l2 < t3.length; ) {
|
|
211504
|
+
const s4 = t3.charAt(l2++);
|
|
211505
|
+
if (r3 || "\\" === s4) r3 = !r3, d2 += s4;
|
|
211506
|
+
else if (n4) l2 === h2 + 1 ? "^" !== s4 && "!" !== s4 || (a2 = true) : "]" !== s4 || l2 === h2 + 2 && a2 || (n4 = false), d2 += s4;
|
|
211507
|
+
else if ("[" !== s4) if (o(s4) && "(" === t3.charAt(l2)) {
|
|
211508
|
+
c2.push(d2), d2 = "";
|
|
211509
|
+
const e4 = new _f(s4, c2);
|
|
211510
|
+
c2.push(e4), l2 = __privateMethod(_b = _f, _f_static, ut_fn).call(_b, t3, e4, l2, i3);
|
|
211511
|
+
} else if ("|" !== s4) {
|
|
211512
|
+
if (")" === s4) return "" === d2 && 0 === __privateGet(e3, _rt).length && __privateSet(e3, _pt, true), c2.push(d2), d2 = "", e3.push(...p2, c2), l2;
|
|
211513
|
+
d2 += s4;
|
|
211514
|
+
} else c2.push(d2), d2 = "", p2.push(c2), c2 = new _f(null, e3);
|
|
211515
|
+
else n4 = true, h2 = l2, a2 = false, d2 += s4;
|
|
211516
|
+
}
|
|
211517
|
+
return e3.type = null, __privateSet(e3, _st, void 0), __privateSet(e3, _rt, [t3.substring(s3 - 1)]), l2;
|
|
211518
|
+
};
|
|
211519
|
+
gt_fn = function(t3) {
|
|
211520
|
+
return __privateGet(this, _rt).map((e3) => {
|
|
211521
|
+
if ("string" == typeof e3) throw new Error("string type in extglob ast??");
|
|
211522
|
+
const [s3, i3, r3, n4] = e3.toRegExpSource(t3);
|
|
211523
|
+
return __privateSet(this, _it, __privateGet(this, _it) || n4), s3;
|
|
211524
|
+
}).filter((t4) => !(this.isStart() && this.isEnd() && !t4)).join("|");
|
|
211525
|
+
};
|
|
211526
|
+
ft_fn = function(t3, e3, s3 = false) {
|
|
211527
|
+
let n4 = false, o2 = "", h2 = false;
|
|
211528
|
+
for (let r3 = 0; r3 < t3.length; r3++) {
|
|
211529
|
+
const a2 = t3.charAt(r3);
|
|
211530
|
+
if (n4) n4 = false, o2 += (c.has(a2) ? "\\" : "") + a2;
|
|
211531
|
+
else if ("\\" !== a2) {
|
|
211532
|
+
if ("[" === a2) {
|
|
211533
|
+
const [s4, n5, a3, l2] = (0, i2.parseClass)(t3, r3);
|
|
211534
|
+
if (a3) {
|
|
211535
|
+
o2 += s4, h2 = h2 || n5, r3 += a3 - 1, e3 = e3 || l2;
|
|
211536
|
+
continue;
|
|
211537
|
+
}
|
|
211538
|
+
}
|
|
211539
|
+
"*" !== a2 ? "?" !== a2 ? o2 += a2.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : (o2 += p, e3 = true) : (o2 += s3 && "*" === t3 ? u : d, e3 = true);
|
|
211540
|
+
} else r3 === t3.length - 1 ? o2 += "\\\\" : n4 = true;
|
|
211541
|
+
}
|
|
211542
|
+
return [o2, (0, r2.unescape)(t3), !!e3, h2];
|
|
211543
|
+
};
|
|
211544
|
+
__privateAdd(_f, _f_static);
|
|
211545
|
+
let f = _f;
|
|
211546
|
+
e2.AST = f;
|
|
211547
|
+
}, 843: (t2, e2) => {
|
|
211548
|
+
"use strict";
|
|
211549
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.parseClass = void 0;
|
|
211550
|
+
const s2 = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true], "[:alpha:]": ["\\p{L}\\p{Nl}", true], "[:ascii:]": ["\\x00-\\x7f", false], "[:blank:]": ["\\p{Zs}\\t", true], "[:cntrl:]": ["\\p{Cc}", true], "[:digit:]": ["\\p{Nd}", true], "[:graph:]": ["\\p{Z}\\p{C}", true, true], "[:lower:]": ["\\p{Ll}", true], "[:print:]": ["\\p{C}", true], "[:punct:]": ["\\p{P}", true], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true], "[:upper:]": ["\\p{Lu}", true], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true], "[:xdigit:]": ["A-Fa-f0-9", false] }, i2 = (t3) => t3.replace(/[[\]\\-]/g, "\\$&"), r2 = (t3) => t3.join("");
|
|
211551
|
+
e2.parseClass = (t3, e3) => {
|
|
211552
|
+
const n3 = e3;
|
|
211553
|
+
if ("[" !== t3.charAt(n3)) throw new Error("not in a brace expression");
|
|
211554
|
+
const o = [], h = [];
|
|
211555
|
+
let a = n3 + 1, l = false, c = false, p = false, d = false, u = n3, f = "";
|
|
211556
|
+
t: for (; a < t3.length; ) {
|
|
211557
|
+
const e4 = t3.charAt(a);
|
|
211558
|
+
if ("!" !== e4 && "^" !== e4 || a !== n3 + 1) {
|
|
211559
|
+
if ("]" === e4 && l && !p) {
|
|
211560
|
+
u = a + 1;
|
|
211561
|
+
break;
|
|
211562
|
+
}
|
|
211563
|
+
if (l = true, "\\" !== e4 || p) {
|
|
211564
|
+
if ("[" === e4 && !p) {
|
|
211565
|
+
for (const [e5, [i3, r3, l2]] of Object.entries(s2)) if (t3.startsWith(e5, a)) {
|
|
211566
|
+
if (f) return ["$.", false, t3.length - n3, true];
|
|
211567
|
+
a += e5.length, l2 ? h.push(i3) : o.push(i3), c = c || r3;
|
|
211568
|
+
continue t;
|
|
211569
|
+
}
|
|
211570
|
+
}
|
|
211571
|
+
p = false, f ? (e4 > f ? o.push(i2(f) + "-" + i2(e4)) : e4 === f && o.push(i2(e4)), f = "", a++) : t3.startsWith("-]", a + 1) ? (o.push(i2(e4 + "-")), a += 2) : t3.startsWith("-", a + 1) ? (f = e4, a += 2) : (o.push(i2(e4)), a++);
|
|
211572
|
+
} else p = true, a++;
|
|
211573
|
+
} else d = true, a++;
|
|
211574
|
+
}
|
|
211575
|
+
if (u < a) return ["", false, 0, false];
|
|
211576
|
+
if (!o.length && !h.length) return ["$.", false, t3.length - n3, true];
|
|
211577
|
+
if (0 === h.length && 1 === o.length && /^\\?.$/.test(o[0]) && !d) {
|
|
211578
|
+
const t4 = 2 === o[0].length ? o[0].slice(-1) : o[0];
|
|
211579
|
+
return [(g = t4, g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")), false, u - n3, false];
|
|
211580
|
+
}
|
|
211581
|
+
var g;
|
|
211582
|
+
const m = "[" + (d ? "^" : "") + r2(o) + "]", y = "[" + (d ? "" : "^") + r2(h) + "]";
|
|
211583
|
+
return [o.length && h.length ? "(" + m + "|" + y + ")" : o.length ? m : y, c, u - n3, true];
|
|
211584
|
+
};
|
|
211585
|
+
}, 363: (t2, e2) => {
|
|
211586
|
+
"use strict";
|
|
211587
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.escape = void 0;
|
|
211588
|
+
e2.escape = (t3, { windowsPathsNoEscape: e3 = false } = {}) => e3 ? t3.replace(/[?*()[\]]/g, "[$&]") : t3.replace(/[?*()[\]\\]/g, "\\$&");
|
|
211589
|
+
}, 722: function(t2, e2, s2) {
|
|
211590
|
+
"use strict";
|
|
211591
|
+
var i2 = this && this.__importDefault || function(t3) {
|
|
211592
|
+
return t3 && t3.__esModule ? t3 : { default: t3 };
|
|
211593
|
+
};
|
|
211594
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.unescape = e2.escape = e2.AST = e2.Minimatch = e2.match = e2.makeRe = e2.braceExpand = e2.defaults = e2.filter = e2.GLOBSTAR = e2.sep = e2.minimatch = void 0;
|
|
211595
|
+
const r2 = i2(s2(928)), n3 = s2(274), o = s2(674), h = s2(363), a = s2(116);
|
|
211596
|
+
e2.minimatch = (t3, e3, s3 = {}) => ((0, n3.assertValidPattern)(e3), !(!s3.nocomment && "#" === e3.charAt(0)) && new _(e3, s3).match(t3));
|
|
211597
|
+
const l = /^\*+([^+@!?\*\[\(]*)$/, c = (t3) => (e3) => !e3.startsWith(".") && e3.endsWith(t3), p = (t3) => (e3) => e3.endsWith(t3), d = (t3) => (t3 = t3.toLowerCase(), (e3) => !e3.startsWith(".") && e3.toLowerCase().endsWith(t3)), u = (t3) => (t3 = t3.toLowerCase(), (e3) => e3.toLowerCase().endsWith(t3)), f = /^\*+\.\*+$/, g = (t3) => !t3.startsWith(".") && t3.includes("."), m = (t3) => "." !== t3 && ".." !== t3 && t3.includes("."), y = /^\.\*+$/, w = (t3) => "." !== t3 && ".." !== t3 && t3.startsWith("."), b = /^\*+$/, v = (t3) => 0 !== t3.length && !t3.startsWith("."), S = (t3) => 0 !== t3.length && "." !== t3 && ".." !== t3, k = /^\?+([^+@!?\*\[\(]*)?$/, x = ([t3, e3 = ""]) => {
|
|
211598
|
+
const s3 = C2([t3]);
|
|
211599
|
+
return e3 ? (e3 = e3.toLowerCase(), (t4) => s3(t4) && t4.toLowerCase().endsWith(e3)) : s3;
|
|
211600
|
+
}, E = ([t3, e3 = ""]) => {
|
|
211601
|
+
const s3 = M([t3]);
|
|
211602
|
+
return e3 ? (e3 = e3.toLowerCase(), (t4) => s3(t4) && t4.toLowerCase().endsWith(e3)) : s3;
|
|
211603
|
+
}, L = ([t3, e3 = ""]) => {
|
|
211604
|
+
const s3 = M([t3]);
|
|
211605
|
+
return e3 ? (t4) => s3(t4) && t4.endsWith(e3) : s3;
|
|
211606
|
+
}, T = ([t3, e3 = ""]) => {
|
|
211607
|
+
const s3 = C2([t3]);
|
|
211608
|
+
return e3 ? (t4) => s3(t4) && t4.endsWith(e3) : s3;
|
|
211609
|
+
}, C2 = ([t3]) => {
|
|
211610
|
+
const e3 = t3.length;
|
|
211611
|
+
return (t4) => t4.length === e3 && !t4.startsWith(".");
|
|
211612
|
+
}, M = ([t3]) => {
|
|
211613
|
+
const e3 = t3.length;
|
|
211614
|
+
return (t4) => t4.length === e3 && "." !== t4 && ".." !== t4;
|
|
211615
|
+
}, A = "object" == typeof process && process ? "object" == typeof process.env && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", O2 = { sep: "\\" }, P = { sep: "/" };
|
|
211616
|
+
e2.sep = "win32" === A ? O2.sep : P.sep, e2.minimatch.sep = e2.sep, e2.GLOBSTAR = Symbol("globstar **"), e2.minimatch.GLOBSTAR = e2.GLOBSTAR;
|
|
211617
|
+
e2.filter = (t3, s3 = {}) => (i3) => (0, e2.minimatch)(i3, t3, s3), e2.minimatch.filter = e2.filter;
|
|
211618
|
+
const R = (t3, e3 = {}) => Object.assign({}, t3, e3);
|
|
211619
|
+
e2.defaults = (t3) => {
|
|
211620
|
+
if (!t3 || "object" != typeof t3 || !Object.keys(t3).length) return e2.minimatch;
|
|
211621
|
+
const s3 = e2.minimatch;
|
|
211622
|
+
return Object.assign((e3, i3, r3 = {}) => s3(e3, i3, R(t3, r3)), { Minimatch: class extends s3.Minimatch {
|
|
211623
|
+
constructor(e3, s4 = {}) {
|
|
211624
|
+
super(e3, R(t3, s4));
|
|
211625
|
+
}
|
|
211626
|
+
static defaults(e3) {
|
|
211627
|
+
return s3.defaults(R(t3, e3)).Minimatch;
|
|
211628
|
+
}
|
|
211629
|
+
}, AST: class extends s3.AST {
|
|
211630
|
+
constructor(e3, s4, i3 = {}) {
|
|
211631
|
+
super(e3, s4, R(t3, i3));
|
|
211632
|
+
}
|
|
211633
|
+
static fromGlob(e3, i3 = {}) {
|
|
211634
|
+
return s3.AST.fromGlob(e3, R(t3, i3));
|
|
211635
|
+
}
|
|
211636
|
+
}, unescape: (e3, i3 = {}) => s3.unescape(e3, R(t3, i3)), escape: (e3, i3 = {}) => s3.escape(e3, R(t3, i3)), filter: (e3, i3 = {}) => s3.filter(e3, R(t3, i3)), defaults: (e3) => s3.defaults(R(t3, e3)), makeRe: (e3, i3 = {}) => s3.makeRe(e3, R(t3, i3)), braceExpand: (e3, i3 = {}) => s3.braceExpand(e3, R(t3, i3)), match: (e3, i3, r3 = {}) => s3.match(e3, i3, R(t3, r3)), sep: s3.sep, GLOBSTAR: e2.GLOBSTAR });
|
|
211637
|
+
}, e2.minimatch.defaults = e2.defaults;
|
|
211638
|
+
e2.braceExpand = (t3, e3 = {}) => ((0, n3.assertValidPattern)(t3), e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3) ? [t3] : (0, r2.default)(t3)), e2.minimatch.braceExpand = e2.braceExpand;
|
|
211639
|
+
e2.makeRe = (t3, e3 = {}) => new _(t3, e3).makeRe(), e2.minimatch.makeRe = e2.makeRe;
|
|
211640
|
+
e2.match = (t3, e3, s3 = {}) => {
|
|
211641
|
+
const i3 = new _(e3, s3);
|
|
211642
|
+
return t3 = t3.filter((t4) => i3.match(t4)), i3.options.nonull && !t3.length && t3.push(e3), t3;
|
|
211643
|
+
}, e2.minimatch.match = e2.match;
|
|
211644
|
+
const F = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
211645
|
+
class _ {
|
|
211646
|
+
options;
|
|
211647
|
+
set;
|
|
211648
|
+
pattern;
|
|
211649
|
+
windowsPathsNoEscape;
|
|
211650
|
+
nonegate;
|
|
211651
|
+
negate;
|
|
211652
|
+
comment;
|
|
211653
|
+
empty;
|
|
211654
|
+
preserveMultipleSlashes;
|
|
211655
|
+
partial;
|
|
211656
|
+
globSet;
|
|
211657
|
+
globParts;
|
|
211658
|
+
nocase;
|
|
211659
|
+
isWindows;
|
|
211660
|
+
platform;
|
|
211661
|
+
windowsNoMagicRoot;
|
|
211662
|
+
regexp;
|
|
211663
|
+
constructor(t3, e3 = {}) {
|
|
211664
|
+
(0, n3.assertValidPattern)(t3), e3 = e3 || {}, this.options = e3, this.pattern = t3, this.platform = e3.platform || A, this.isWindows = "win32" === this.platform, this.windowsPathsNoEscape = !!e3.windowsPathsNoEscape || false === e3.allowWindowsEscape, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!e3.preserveMultipleSlashes, this.regexp = null, this.negate = false, this.nonegate = !!e3.nonegate, this.comment = false, this.empty = false, this.partial = !!e3.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = void 0 !== e3.windowsNoMagicRoot ? e3.windowsNoMagicRoot : !(!this.isWindows || !this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
|
|
211665
|
+
}
|
|
211666
|
+
hasMagic() {
|
|
211667
|
+
if (this.options.magicalBraces && this.set.length > 1) return true;
|
|
211668
|
+
for (const t3 of this.set) for (const e3 of t3) if ("string" != typeof e3) return true;
|
|
211669
|
+
return false;
|
|
211670
|
+
}
|
|
211671
|
+
debug(...t3) {
|
|
211672
|
+
}
|
|
211673
|
+
make() {
|
|
211674
|
+
const t3 = this.pattern, e3 = this.options;
|
|
211675
|
+
if (!e3.nocomment && "#" === t3.charAt(0)) return void (this.comment = true);
|
|
211676
|
+
if (!t3) return void (this.empty = true);
|
|
211677
|
+
this.parseNegate(), this.globSet = [...new Set(this.braceExpand())], e3.debug && (this.debug = (...t4) => console.error(...t4)), this.debug(this.pattern, this.globSet);
|
|
211678
|
+
const s3 = this.globSet.map((t4) => this.slashSplit(t4));
|
|
211679
|
+
this.globParts = this.preprocess(s3), this.debug(this.pattern, this.globParts);
|
|
211680
|
+
let i3 = this.globParts.map((t4, e4, s4) => {
|
|
211681
|
+
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
211682
|
+
const e5 = !("" !== t4[0] || "" !== t4[1] || "?" !== t4[2] && F.test(t4[2]) || F.test(t4[3])), s5 = /^[a-z]:/i.test(t4[0]);
|
|
211683
|
+
if (e5) return [...t4.slice(0, 4), ...t4.slice(4).map((t5) => this.parse(t5))];
|
|
211684
|
+
if (s5) return [t4[0], ...t4.slice(1).map((t5) => this.parse(t5))];
|
|
211685
|
+
}
|
|
211686
|
+
return t4.map((t5) => this.parse(t5));
|
|
211687
|
+
});
|
|
211688
|
+
if (this.debug(this.pattern, i3), this.set = i3.filter((t4) => -1 === t4.indexOf(false)), this.isWindows) for (let t4 = 0; t4 < this.set.length; t4++) {
|
|
211689
|
+
const e4 = this.set[t4];
|
|
211690
|
+
"" === e4[0] && "" === e4[1] && "?" === this.globParts[t4][2] && "string" == typeof e4[3] && /^[a-z]:$/i.test(e4[3]) && (e4[2] = "?");
|
|
211691
|
+
}
|
|
211692
|
+
this.debug(this.pattern, this.set);
|
|
211693
|
+
}
|
|
211694
|
+
preprocess(t3) {
|
|
211695
|
+
if (this.options.noglobstar) for (let e4 = 0; e4 < t3.length; e4++) for (let s3 = 0; s3 < t3[e4].length; s3++) "**" === t3[e4][s3] && (t3[e4][s3] = "*");
|
|
211696
|
+
const { optimizationLevel: e3 = 1 } = this.options;
|
|
211697
|
+
return e3 >= 2 ? (t3 = this.firstPhasePreProcess(t3), t3 = this.secondPhasePreProcess(t3)) : t3 = e3 >= 1 ? this.levelOneOptimize(t3) : this.adjascentGlobstarOptimize(t3), t3;
|
|
211698
|
+
}
|
|
211699
|
+
adjascentGlobstarOptimize(t3) {
|
|
211700
|
+
return t3.map((t4) => {
|
|
211701
|
+
let e3 = -1;
|
|
211702
|
+
for (; -1 !== (e3 = t4.indexOf("**", e3 + 1)); ) {
|
|
211703
|
+
let s3 = e3;
|
|
211704
|
+
for (; "**" === t4[s3 + 1]; ) s3++;
|
|
211705
|
+
s3 !== e3 && t4.splice(e3, s3 - e3);
|
|
211706
|
+
}
|
|
211707
|
+
return t4;
|
|
211708
|
+
});
|
|
211709
|
+
}
|
|
211710
|
+
levelOneOptimize(t3) {
|
|
211711
|
+
return t3.map((t4) => 0 === (t4 = t4.reduce((t5, e3) => {
|
|
211712
|
+
const s3 = t5[t5.length - 1];
|
|
211713
|
+
return "**" === e3 && "**" === s3 ? t5 : ".." === e3 && s3 && ".." !== s3 && "." !== s3 && "**" !== s3 ? (t5.pop(), t5) : (t5.push(e3), t5);
|
|
211714
|
+
}, [])).length ? [""] : t4);
|
|
211715
|
+
}
|
|
211716
|
+
levelTwoFileOptimize(t3) {
|
|
211717
|
+
Array.isArray(t3) || (t3 = this.slashSplit(t3));
|
|
211718
|
+
let e3 = false;
|
|
211719
|
+
do {
|
|
211720
|
+
if (e3 = false, !this.preserveMultipleSlashes) {
|
|
211721
|
+
for (let s4 = 1; s4 < t3.length - 1; s4++) {
|
|
211722
|
+
const i3 = t3[s4];
|
|
211723
|
+
1 === s4 && "" === i3 && "" === t3[0] || ("." !== i3 && "" !== i3 || (e3 = true, t3.splice(s4, 1), s4--));
|
|
211724
|
+
}
|
|
211725
|
+
"." !== t3[0] || 2 !== t3.length || "." !== t3[1] && "" !== t3[1] || (e3 = true, t3.pop());
|
|
211726
|
+
}
|
|
211727
|
+
let s3 = 0;
|
|
211728
|
+
for (; -1 !== (s3 = t3.indexOf("..", s3 + 1)); ) {
|
|
211729
|
+
const i3 = t3[s3 - 1];
|
|
211730
|
+
i3 && "." !== i3 && ".." !== i3 && "**" !== i3 && (e3 = true, t3.splice(s3 - 1, 2), s3 -= 2);
|
|
211731
|
+
}
|
|
211732
|
+
} while (e3);
|
|
211733
|
+
return 0 === t3.length ? [""] : t3;
|
|
211734
|
+
}
|
|
211735
|
+
firstPhasePreProcess(t3) {
|
|
211736
|
+
let e3 = false;
|
|
211737
|
+
do {
|
|
211738
|
+
e3 = false;
|
|
211739
|
+
for (let s3 of t3) {
|
|
211740
|
+
let i3 = -1;
|
|
211741
|
+
for (; -1 !== (i3 = s3.indexOf("**", i3 + 1)); ) {
|
|
211742
|
+
let r4 = i3;
|
|
211743
|
+
for (; "**" === s3[r4 + 1]; ) r4++;
|
|
211744
|
+
r4 > i3 && s3.splice(i3 + 1, r4 - i3);
|
|
211745
|
+
let n4 = s3[i3 + 1];
|
|
211746
|
+
const o2 = s3[i3 + 2], h2 = s3[i3 + 3];
|
|
211747
|
+
if (".." !== n4) continue;
|
|
211748
|
+
if (!o2 || "." === o2 || ".." === o2 || !h2 || "." === h2 || ".." === h2) continue;
|
|
211749
|
+
e3 = true, s3.splice(i3, 1);
|
|
211750
|
+
const a2 = s3.slice(0);
|
|
211751
|
+
a2[i3] = "**", t3.push(a2), i3--;
|
|
211752
|
+
}
|
|
211753
|
+
if (!this.preserveMultipleSlashes) {
|
|
211754
|
+
for (let t4 = 1; t4 < s3.length - 1; t4++) {
|
|
211755
|
+
const i4 = s3[t4];
|
|
211756
|
+
1 === t4 && "" === i4 && "" === s3[0] || ("." !== i4 && "" !== i4 || (e3 = true, s3.splice(t4, 1), t4--));
|
|
211757
|
+
}
|
|
211758
|
+
"." !== s3[0] || 2 !== s3.length || "." !== s3[1] && "" !== s3[1] || (e3 = true, s3.pop());
|
|
211759
|
+
}
|
|
211760
|
+
let r3 = 0;
|
|
211761
|
+
for (; -1 !== (r3 = s3.indexOf("..", r3 + 1)); ) {
|
|
211762
|
+
const t4 = s3[r3 - 1];
|
|
211763
|
+
if (t4 && "." !== t4 && ".." !== t4 && "**" !== t4) {
|
|
211764
|
+
e3 = true;
|
|
211765
|
+
const t5 = 1 === r3 && "**" === s3[r3 + 1] ? ["."] : [];
|
|
211766
|
+
s3.splice(r3 - 1, 2, ...t5), 0 === s3.length && s3.push(""), r3 -= 2;
|
|
211767
|
+
}
|
|
211768
|
+
}
|
|
211769
|
+
}
|
|
211770
|
+
} while (e3);
|
|
211771
|
+
return t3;
|
|
211772
|
+
}
|
|
211773
|
+
secondPhasePreProcess(t3) {
|
|
211774
|
+
for (let e3 = 0; e3 < t3.length - 1; e3++) for (let s3 = e3 + 1; s3 < t3.length; s3++) {
|
|
211775
|
+
const i3 = this.partsMatch(t3[e3], t3[s3], !this.preserveMultipleSlashes);
|
|
211776
|
+
i3 && (t3[e3] = i3, t3[s3] = []);
|
|
211777
|
+
}
|
|
211778
|
+
return t3.filter((t4) => t4.length);
|
|
211779
|
+
}
|
|
211780
|
+
partsMatch(t3, e3, s3 = false) {
|
|
211781
|
+
let i3 = 0, r3 = 0, n4 = [], o2 = "";
|
|
211782
|
+
for (; i3 < t3.length && r3 < e3.length; ) if (t3[i3] === e3[r3]) n4.push("b" === o2 ? e3[r3] : t3[i3]), i3++, r3++;
|
|
211783
|
+
else if (s3 && "**" === t3[i3] && e3[r3] === t3[i3 + 1]) n4.push(t3[i3]), i3++;
|
|
211784
|
+
else if (s3 && "**" === e3[r3] && t3[i3] === e3[r3 + 1]) n4.push(e3[r3]), r3++;
|
|
211785
|
+
else if ("*" !== t3[i3] || !e3[r3] || !this.options.dot && e3[r3].startsWith(".") || "**" === e3[r3]) {
|
|
211786
|
+
if ("*" !== e3[r3] || !t3[i3] || !this.options.dot && t3[i3].startsWith(".") || "**" === t3[i3]) return false;
|
|
211787
|
+
if ("a" === o2) return false;
|
|
211788
|
+
o2 = "b", n4.push(e3[r3]), i3++, r3++;
|
|
211789
|
+
} else {
|
|
211790
|
+
if ("b" === o2) return false;
|
|
211791
|
+
o2 = "a", n4.push(t3[i3]), i3++, r3++;
|
|
211792
|
+
}
|
|
211793
|
+
return t3.length === e3.length && n4;
|
|
211794
|
+
}
|
|
211795
|
+
parseNegate() {
|
|
211796
|
+
if (this.nonegate) return;
|
|
211797
|
+
const t3 = this.pattern;
|
|
211798
|
+
let e3 = false, s3 = 0;
|
|
211799
|
+
for (let i3 = 0; i3 < t3.length && "!" === t3.charAt(i3); i3++) e3 = !e3, s3++;
|
|
211800
|
+
s3 && (this.pattern = t3.slice(s3)), this.negate = e3;
|
|
211801
|
+
}
|
|
211802
|
+
matchOne(t3, s3, i3 = false) {
|
|
211803
|
+
const r3 = this.options;
|
|
211804
|
+
if (this.isWindows) {
|
|
211805
|
+
const e3 = "string" == typeof t3[0] && /^[a-z]:$/i.test(t3[0]), i4 = !e3 && "" === t3[0] && "" === t3[1] && "?" === t3[2] && /^[a-z]:$/i.test(t3[3]), r4 = "string" == typeof s3[0] && /^[a-z]:$/i.test(s3[0]), n5 = i4 ? 3 : e3 ? 0 : void 0, o3 = !r4 && "" === s3[0] && "" === s3[1] && "?" === s3[2] && "string" == typeof s3[3] && /^[a-z]:$/i.test(s3[3]) ? 3 : r4 ? 0 : void 0;
|
|
211806
|
+
if ("number" == typeof n5 && "number" == typeof o3) {
|
|
211807
|
+
const [e4, i5] = [t3[n5], s3[o3]];
|
|
211808
|
+
e4.toLowerCase() === i5.toLowerCase() && (s3[o3] = e4, o3 > n5 ? s3 = s3.slice(o3) : n5 > o3 && (t3 = t3.slice(n5)));
|
|
211809
|
+
}
|
|
211810
|
+
}
|
|
211811
|
+
const { optimizationLevel: n4 = 1 } = this.options;
|
|
211812
|
+
n4 >= 2 && (t3 = this.levelTwoFileOptimize(t3)), this.debug("matchOne", this, { file: t3, pattern: s3 }), this.debug("matchOne", t3.length, s3.length);
|
|
211813
|
+
for (var o2 = 0, h2 = 0, a2 = t3.length, l2 = s3.length; o2 < a2 && h2 < l2; o2++, h2++) {
|
|
211814
|
+
this.debug("matchOne loop");
|
|
211815
|
+
var c2 = s3[h2], p2 = t3[o2];
|
|
211816
|
+
if (this.debug(s3, c2, p2), false === c2) return false;
|
|
211817
|
+
if (c2 === e2.GLOBSTAR) {
|
|
211818
|
+
this.debug("GLOBSTAR", [s3, c2, p2]);
|
|
211819
|
+
var d2 = o2, u2 = h2 + 1;
|
|
211820
|
+
if (u2 === l2) {
|
|
211821
|
+
for (this.debug("** at the end"); o2 < a2; o2++) if ("." === t3[o2] || ".." === t3[o2] || !r3.dot && "." === t3[o2].charAt(0)) return false;
|
|
211822
|
+
return true;
|
|
211823
|
+
}
|
|
211824
|
+
for (; d2 < a2; ) {
|
|
211825
|
+
var f2 = t3[d2];
|
|
211826
|
+
if (this.debug("\nglobstar while", t3, d2, s3, u2, f2), this.matchOne(t3.slice(d2), s3.slice(u2), i3)) return this.debug("globstar found match!", d2, a2, f2), true;
|
|
211827
|
+
if ("." === f2 || ".." === f2 || !r3.dot && "." === f2.charAt(0)) {
|
|
211828
|
+
this.debug("dot detected!", t3, d2, s3, u2);
|
|
211829
|
+
break;
|
|
211830
|
+
}
|
|
211831
|
+
this.debug("globstar swallow a segment, and continue"), d2++;
|
|
211832
|
+
}
|
|
211833
|
+
return !(!i3 || (this.debug("\n>>> no match, partial?", t3, d2, s3, u2), d2 !== a2));
|
|
211834
|
+
}
|
|
211835
|
+
let n5;
|
|
211836
|
+
if ("string" == typeof c2 ? (n5 = p2 === c2, this.debug("string match", c2, p2, n5)) : (n5 = c2.test(p2), this.debug("pattern match", c2, p2, n5)), !n5) return false;
|
|
211837
|
+
}
|
|
211838
|
+
if (o2 === a2 && h2 === l2) return true;
|
|
211839
|
+
if (o2 === a2) return i3;
|
|
211840
|
+
if (h2 === l2) return o2 === a2 - 1 && "" === t3[o2];
|
|
211841
|
+
throw new Error("wtf?");
|
|
211842
|
+
}
|
|
211843
|
+
braceExpand() {
|
|
211844
|
+
return (0, e2.braceExpand)(this.pattern, this.options);
|
|
211845
|
+
}
|
|
211846
|
+
parse(t3) {
|
|
211847
|
+
(0, n3.assertValidPattern)(t3);
|
|
211848
|
+
const s3 = this.options;
|
|
211849
|
+
if ("**" === t3) return e2.GLOBSTAR;
|
|
211850
|
+
if ("" === t3) return "";
|
|
211851
|
+
let i3, r3 = null;
|
|
211852
|
+
(i3 = t3.match(b)) ? r3 = s3.dot ? S : v : (i3 = t3.match(l)) ? r3 = (s3.nocase ? s3.dot ? u : d : s3.dot ? p : c)(i3[1]) : (i3 = t3.match(k)) ? r3 = (s3.nocase ? s3.dot ? E : x : s3.dot ? L : T)(i3) : (i3 = t3.match(f)) ? r3 = s3.dot ? m : g : (i3 = t3.match(y)) && (r3 = w);
|
|
211853
|
+
const h2 = o.AST.fromGlob(t3, this.options).toMMPattern();
|
|
211854
|
+
return r3 && "object" == typeof h2 && Reflect.defineProperty(h2, "test", { value: r3 }), h2;
|
|
211855
|
+
}
|
|
211856
|
+
makeRe() {
|
|
211857
|
+
if (this.regexp || false === this.regexp) return this.regexp;
|
|
211858
|
+
const t3 = this.set;
|
|
211859
|
+
if (!t3.length) return this.regexp = false, this.regexp;
|
|
211860
|
+
const s3 = this.options, i3 = s3.noglobstar ? "[^/]*?" : s3.dot ? "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?" : "(?:(?!(?:\\/|^)\\.).)*?", r3 = new Set(s3.nocase ? ["i"] : []);
|
|
211861
|
+
let n4 = t3.map((t4) => {
|
|
211862
|
+
const s4 = t4.map((t5) => {
|
|
211863
|
+
if (t5 instanceof RegExp) for (const e3 of t5.flags.split("")) r3.add(e3);
|
|
211864
|
+
return "string" == typeof t5 ? t5.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : t5 === e2.GLOBSTAR ? e2.GLOBSTAR : t5._src;
|
|
211865
|
+
});
|
|
211866
|
+
return s4.forEach((t5, r4) => {
|
|
211867
|
+
const n5 = s4[r4 + 1], o3 = s4[r4 - 1];
|
|
211868
|
+
t5 === e2.GLOBSTAR && o3 !== e2.GLOBSTAR && (void 0 === o3 ? void 0 !== n5 && n5 !== e2.GLOBSTAR ? s4[r4 + 1] = "(?:\\/|" + i3 + "\\/)?" + n5 : s4[r4] = i3 : void 0 === n5 ? s4[r4 - 1] = o3 + "(?:\\/|" + i3 + ")?" : n5 !== e2.GLOBSTAR && (s4[r4 - 1] = o3 + "(?:\\/|\\/" + i3 + "\\/)" + n5, s4[r4 + 1] = e2.GLOBSTAR));
|
|
211869
|
+
}), s4.filter((t5) => t5 !== e2.GLOBSTAR).join("/");
|
|
211870
|
+
}).join("|");
|
|
211871
|
+
const [o2, h2] = t3.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
211872
|
+
n4 = "^" + o2 + n4 + h2 + "$", this.negate && (n4 = "^(?!" + n4 + ").+$");
|
|
211873
|
+
try {
|
|
211874
|
+
this.regexp = new RegExp(n4, [...r3].join(""));
|
|
211875
|
+
} catch (t4) {
|
|
211876
|
+
this.regexp = false;
|
|
211877
|
+
}
|
|
211878
|
+
return this.regexp;
|
|
211879
|
+
}
|
|
211880
|
+
slashSplit(t3) {
|
|
211881
|
+
return this.preserveMultipleSlashes ? t3.split("/") : this.isWindows && /^\/\/[^\/]+/.test(t3) ? ["", ...t3.split(/\/+/)] : t3.split(/\/+/);
|
|
211882
|
+
}
|
|
211883
|
+
match(t3, e3 = this.partial) {
|
|
211884
|
+
if (this.debug("match", t3, this.pattern), this.comment) return false;
|
|
211885
|
+
if (this.empty) return "" === t3;
|
|
211886
|
+
if ("/" === t3 && e3) return true;
|
|
211887
|
+
const s3 = this.options;
|
|
211888
|
+
this.isWindows && (t3 = t3.split("\\").join("/"));
|
|
211889
|
+
const i3 = this.slashSplit(t3);
|
|
211890
|
+
this.debug(this.pattern, "split", i3);
|
|
211891
|
+
const r3 = this.set;
|
|
211892
|
+
this.debug(this.pattern, "set", r3);
|
|
211893
|
+
let n4 = i3[i3.length - 1];
|
|
211894
|
+
if (!n4) for (let t4 = i3.length - 2; !n4 && t4 >= 0; t4--) n4 = i3[t4];
|
|
211895
|
+
for (let t4 = 0; t4 < r3.length; t4++) {
|
|
211896
|
+
const o2 = r3[t4];
|
|
211897
|
+
let h2 = i3;
|
|
211898
|
+
s3.matchBase && 1 === o2.length && (h2 = [n4]);
|
|
211899
|
+
if (this.matchOne(h2, o2, e3)) return !!s3.flipNegate || !this.negate;
|
|
211900
|
+
}
|
|
211901
|
+
return !s3.flipNegate && this.negate;
|
|
211902
|
+
}
|
|
211903
|
+
static defaults(t3) {
|
|
211904
|
+
return e2.minimatch.defaults(t3).Minimatch;
|
|
211905
|
+
}
|
|
211906
|
+
}
|
|
211907
|
+
e2.Minimatch = _;
|
|
211908
|
+
var z = s2(674);
|
|
211909
|
+
Object.defineProperty(e2, "AST", { enumerable: true, get: function() {
|
|
211910
|
+
return z.AST;
|
|
211911
|
+
} });
|
|
211912
|
+
var D = s2(363);
|
|
211913
|
+
Object.defineProperty(e2, "escape", { enumerable: true, get: function() {
|
|
211914
|
+
return D.escape;
|
|
211915
|
+
} });
|
|
211916
|
+
var j = s2(116);
|
|
211917
|
+
Object.defineProperty(e2, "unescape", { enumerable: true, get: function() {
|
|
211918
|
+
return j.unescape;
|
|
211919
|
+
} }), e2.minimatch.AST = o.AST, e2.minimatch.Minimatch = _, e2.minimatch.escape = h.escape, e2.minimatch.unescape = a.unescape;
|
|
211920
|
+
}, 116: (t2, e2) => {
|
|
211921
|
+
"use strict";
|
|
211922
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.unescape = void 0;
|
|
211923
|
+
e2.unescape = (t3, { windowsPathsNoEscape: e3 = false } = {}) => e3 ? t3.replace(/\[([^\/\\])\]/g, "$1") : t3.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
211924
|
+
}, 420: function(t2, e2, s2) {
|
|
211925
|
+
"use strict";
|
|
211926
|
+
var i2 = this && this.__importDefault || function(t3) {
|
|
211927
|
+
return t3 && t3.__esModule ? t3 : { default: t3 };
|
|
211928
|
+
};
|
|
211929
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Minipass = e2.isWritable = e2.isReadable = e2.isStream = void 0;
|
|
211930
|
+
const r2 = "object" == typeof process && process ? process : { stdout: null, stderr: null }, n3 = s2(474), o = i2(s2(75)), h = s2(193);
|
|
211931
|
+
e2.isStream = (t3) => !!t3 && "object" == typeof t3 && (t3 instanceof U || t3 instanceof o.default || (0, e2.isReadable)(t3) || (0, e2.isWritable)(t3));
|
|
211932
|
+
e2.isReadable = (t3) => !!t3 && "object" == typeof t3 && t3 instanceof n3.EventEmitter && "function" == typeof t3.pipe && t3.pipe !== o.default.Writable.prototype.pipe;
|
|
211933
|
+
e2.isWritable = (t3) => !!t3 && "object" == typeof t3 && t3 instanceof n3.EventEmitter && "function" == typeof t3.write && "function" == typeof t3.end;
|
|
211934
|
+
const a = Symbol("EOF"), l = Symbol("maybeEmitEnd"), c = Symbol("emittedEnd"), p = Symbol("emittingEnd"), d = Symbol("emittedError"), u = Symbol("closed"), f = Symbol("read"), g = Symbol("flush"), m = Symbol("flushChunk"), y = Symbol("encoding"), w = Symbol("decoder"), b = Symbol("flowing"), v = Symbol("paused"), S = Symbol("resume"), k = Symbol("buffer"), x = Symbol("pipes"), E = Symbol("bufferLength"), L = Symbol("bufferPush"), T = Symbol("bufferShift"), C2 = Symbol("objectMode"), M = Symbol("destroyed"), A = Symbol("error"), O2 = Symbol("emitData"), P = Symbol("emitEnd"), R = Symbol("emitEnd2"), F = Symbol("async"), _ = Symbol("abort"), z = Symbol("aborted"), D = Symbol("signal"), j = Symbol("dataListeners"), B = Symbol("discarded"), N = (t3) => Promise.resolve().then(t3), W = (t3) => t3();
|
|
211935
|
+
class I {
|
|
211936
|
+
src;
|
|
211937
|
+
dest;
|
|
211938
|
+
opts;
|
|
211939
|
+
ondrain;
|
|
211940
|
+
constructor(t3, e3, s3) {
|
|
211941
|
+
this.src = t3, this.dest = e3, this.opts = s3, this.ondrain = () => t3[S](), this.dest.on("drain", this.ondrain);
|
|
211942
|
+
}
|
|
211943
|
+
unpipe() {
|
|
211944
|
+
this.dest.removeListener("drain", this.ondrain);
|
|
211945
|
+
}
|
|
211946
|
+
proxyErrors(t3) {
|
|
211947
|
+
}
|
|
211948
|
+
end() {
|
|
211949
|
+
this.unpipe(), this.opts.end && this.dest.end();
|
|
211950
|
+
}
|
|
211951
|
+
}
|
|
211952
|
+
class G extends I {
|
|
211953
|
+
unpipe() {
|
|
211954
|
+
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
211955
|
+
}
|
|
211956
|
+
constructor(t3, e3, s3) {
|
|
211957
|
+
super(t3, e3, s3), this.proxyErrors = (t4) => e3.emit("error", t4), t3.on("error", this.proxyErrors);
|
|
211958
|
+
}
|
|
211959
|
+
}
|
|
211960
|
+
class U extends n3.EventEmitter {
|
|
211961
|
+
[b] = false;
|
|
211962
|
+
[v] = false;
|
|
211963
|
+
[x] = [];
|
|
211964
|
+
[k] = [];
|
|
211965
|
+
[C2];
|
|
211966
|
+
[y];
|
|
211967
|
+
[F];
|
|
211968
|
+
[w];
|
|
211969
|
+
[a] = false;
|
|
211970
|
+
[c] = false;
|
|
211971
|
+
[p] = false;
|
|
211972
|
+
[u] = false;
|
|
211973
|
+
[d] = null;
|
|
211974
|
+
[E] = 0;
|
|
211975
|
+
[M] = false;
|
|
211976
|
+
[D];
|
|
211977
|
+
[z] = false;
|
|
211978
|
+
[j] = 0;
|
|
211979
|
+
[B] = false;
|
|
211980
|
+
writable = true;
|
|
211981
|
+
readable = true;
|
|
211982
|
+
constructor(...t3) {
|
|
211983
|
+
const e3 = t3[0] || {};
|
|
211984
|
+
if (super(), e3.objectMode && "string" == typeof e3.encoding) throw new TypeError("Encoding and objectMode may not be used together");
|
|
211985
|
+
e3.objectMode ? (this[C2] = true, this[y] = null) : ((t4) => !t4.objectMode && !!t4.encoding && "buffer" !== t4.encoding)(e3) ? (this[y] = e3.encoding, this[C2] = false) : (this[C2] = false, this[y] = null), this[F] = !!e3.async, this[w] = this[y] ? new h.StringDecoder(this[y]) : null, e3 && true === e3.debugExposeBuffer && Object.defineProperty(this, "buffer", { get: () => this[k] }), e3 && true === e3.debugExposePipes && Object.defineProperty(this, "pipes", { get: () => this[x] });
|
|
211986
|
+
const { signal: s3 } = e3;
|
|
211987
|
+
s3 && (this[D] = s3, s3.aborted ? this[_]() : s3.addEventListener("abort", () => this[_]()));
|
|
211988
|
+
}
|
|
211989
|
+
get bufferLength() {
|
|
211990
|
+
return this[E];
|
|
211991
|
+
}
|
|
211992
|
+
get encoding() {
|
|
211993
|
+
return this[y];
|
|
211994
|
+
}
|
|
211995
|
+
set encoding(t3) {
|
|
211996
|
+
throw new Error("Encoding must be set at instantiation time");
|
|
211997
|
+
}
|
|
211998
|
+
setEncoding(t3) {
|
|
211999
|
+
throw new Error("Encoding must be set at instantiation time");
|
|
212000
|
+
}
|
|
212001
|
+
get objectMode() {
|
|
212002
|
+
return this[C2];
|
|
212003
|
+
}
|
|
212004
|
+
set objectMode(t3) {
|
|
212005
|
+
throw new Error("objectMode must be set at instantiation time");
|
|
212006
|
+
}
|
|
212007
|
+
get async() {
|
|
212008
|
+
return this[F];
|
|
212009
|
+
}
|
|
212010
|
+
set async(t3) {
|
|
212011
|
+
this[F] = this[F] || !!t3;
|
|
212012
|
+
}
|
|
212013
|
+
[_]() {
|
|
212014
|
+
var _a, _b;
|
|
212015
|
+
this[z] = true, this.emit("abort", (_a = this[D]) == null ? void 0 : _a.reason), this.destroy((_b = this[D]) == null ? void 0 : _b.reason);
|
|
212016
|
+
}
|
|
212017
|
+
get aborted() {
|
|
212018
|
+
return this[z];
|
|
212019
|
+
}
|
|
212020
|
+
set aborted(t3) {
|
|
212021
|
+
}
|
|
212022
|
+
write(t3, e3, s3) {
|
|
212023
|
+
var _a;
|
|
212024
|
+
if (this[z]) return false;
|
|
212025
|
+
if (this[a]) throw new Error("write after end");
|
|
212026
|
+
if (this[M]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
212027
|
+
"function" == typeof e3 && (s3 = e3, e3 = "utf8"), e3 || (e3 = "utf8");
|
|
212028
|
+
const i3 = this[F] ? N : W;
|
|
212029
|
+
if (!this[C2] && !Buffer.isBuffer(t3)) {
|
|
212030
|
+
if (r3 = t3, !Buffer.isBuffer(r3) && ArrayBuffer.isView(r3)) t3 = Buffer.from(t3.buffer, t3.byteOffset, t3.byteLength);
|
|
212031
|
+
else if (((t4) => t4 instanceof ArrayBuffer || !!t4 && "object" == typeof t4 && t4.constructor && "ArrayBuffer" === t4.constructor.name && t4.byteLength >= 0)(t3)) t3 = Buffer.from(t3);
|
|
212032
|
+
else if ("string" != typeof t3) throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
212033
|
+
}
|
|
212034
|
+
var r3;
|
|
212035
|
+
return this[C2] ? (this[b] && 0 !== this[E] && this[g](true), this[b] ? this.emit("data", t3) : this[L](t3), 0 !== this[E] && this.emit("readable"), s3 && i3(s3), this[b]) : t3.length ? ("string" != typeof t3 || e3 === this[y] && !((_a = this[w]) == null ? void 0 : _a.lastNeed) || (t3 = Buffer.from(t3, e3)), Buffer.isBuffer(t3) && this[y] && (t3 = this[w].write(t3)), this[b] && 0 !== this[E] && this[g](true), this[b] ? this.emit("data", t3) : this[L](t3), 0 !== this[E] && this.emit("readable"), s3 && i3(s3), this[b]) : (0 !== this[E] && this.emit("readable"), s3 && i3(s3), this[b]);
|
|
212036
|
+
}
|
|
212037
|
+
read(t3) {
|
|
212038
|
+
if (this[M]) return null;
|
|
212039
|
+
if (this[B] = false, 0 === this[E] || 0 === t3 || t3 && t3 > this[E]) return this[l](), null;
|
|
212040
|
+
this[C2] && (t3 = null), this[k].length > 1 && !this[C2] && (this[k] = [this[y] ? this[k].join("") : Buffer.concat(this[k], this[E])]);
|
|
212041
|
+
const e3 = this[f](t3 || null, this[k][0]);
|
|
212042
|
+
return this[l](), e3;
|
|
212043
|
+
}
|
|
212044
|
+
[f](t3, e3) {
|
|
212045
|
+
if (this[C2]) this[T]();
|
|
212046
|
+
else {
|
|
212047
|
+
const s3 = e3;
|
|
212048
|
+
t3 === s3.length || null === t3 ? this[T]() : "string" == typeof s3 ? (this[k][0] = s3.slice(t3), e3 = s3.slice(0, t3), this[E] -= t3) : (this[k][0] = s3.subarray(t3), e3 = s3.subarray(0, t3), this[E] -= t3);
|
|
212049
|
+
}
|
|
212050
|
+
return this.emit("data", e3), this[k].length || this[a] || this.emit("drain"), e3;
|
|
212051
|
+
}
|
|
212052
|
+
end(t3, e3, s3) {
|
|
212053
|
+
return "function" == typeof t3 && (s3 = t3, t3 = void 0), "function" == typeof e3 && (s3 = e3, e3 = "utf8"), void 0 !== t3 && this.write(t3, e3), s3 && this.once("end", s3), this[a] = true, this.writable = false, !this[b] && this[v] || this[l](), this;
|
|
212054
|
+
}
|
|
212055
|
+
[S]() {
|
|
212056
|
+
this[M] || (this[j] || this[x].length || (this[B] = true), this[v] = false, this[b] = true, this.emit("resume"), this[k].length ? this[g]() : this[a] ? this[l]() : this.emit("drain"));
|
|
212057
|
+
}
|
|
212058
|
+
resume() {
|
|
212059
|
+
return this[S]();
|
|
212060
|
+
}
|
|
212061
|
+
pause() {
|
|
212062
|
+
this[b] = false, this[v] = true, this[B] = false;
|
|
212063
|
+
}
|
|
212064
|
+
get destroyed() {
|
|
212065
|
+
return this[M];
|
|
212066
|
+
}
|
|
212067
|
+
get flowing() {
|
|
212068
|
+
return this[b];
|
|
212069
|
+
}
|
|
212070
|
+
get paused() {
|
|
212071
|
+
return this[v];
|
|
212072
|
+
}
|
|
212073
|
+
[L](t3) {
|
|
212074
|
+
this[C2] ? this[E] += 1 : this[E] += t3.length, this[k].push(t3);
|
|
212075
|
+
}
|
|
212076
|
+
[T]() {
|
|
212077
|
+
return this[C2] ? this[E] -= 1 : this[E] -= this[k][0].length, this[k].shift();
|
|
212078
|
+
}
|
|
212079
|
+
[g](t3 = false) {
|
|
212080
|
+
do {
|
|
212081
|
+
} while (this[m](this[T]()) && this[k].length);
|
|
212082
|
+
t3 || this[k].length || this[a] || this.emit("drain");
|
|
212083
|
+
}
|
|
212084
|
+
[m](t3) {
|
|
212085
|
+
return this.emit("data", t3), this[b];
|
|
212086
|
+
}
|
|
212087
|
+
pipe(t3, e3) {
|
|
212088
|
+
if (this[M]) return t3;
|
|
212089
|
+
this[B] = false;
|
|
212090
|
+
const s3 = this[c];
|
|
212091
|
+
return e3 = e3 || {}, t3 === r2.stdout || t3 === r2.stderr ? e3.end = false : e3.end = false !== e3.end, e3.proxyErrors = !!e3.proxyErrors, s3 ? e3.end && t3.end() : (this[x].push(e3.proxyErrors ? new G(this, t3, e3) : new I(this, t3, e3)), this[F] ? N(() => this[S]()) : this[S]()), t3;
|
|
212092
|
+
}
|
|
212093
|
+
unpipe(t3) {
|
|
212094
|
+
const e3 = this[x].find((e4) => e4.dest === t3);
|
|
212095
|
+
e3 && (1 === this[x].length ? (this[b] && 0 === this[j] && (this[b] = false), this[x] = []) : this[x].splice(this[x].indexOf(e3), 1), e3.unpipe());
|
|
212096
|
+
}
|
|
212097
|
+
addListener(t3, e3) {
|
|
212098
|
+
return this.on(t3, e3);
|
|
212099
|
+
}
|
|
212100
|
+
on(t3, e3) {
|
|
212101
|
+
const s3 = super.on(t3, e3);
|
|
212102
|
+
if ("data" === t3) this[B] = false, this[j]++, this[x].length || this[b] || this[S]();
|
|
212103
|
+
else if ("readable" === t3 && 0 !== this[E]) super.emit("readable");
|
|
212104
|
+
else if (/* @__PURE__ */ ((t4) => "end" === t4 || "finish" === t4 || "prefinish" === t4)(t3) && this[c]) super.emit(t3), this.removeAllListeners(t3);
|
|
212105
|
+
else if ("error" === t3 && this[d]) {
|
|
212106
|
+
const t4 = e3;
|
|
212107
|
+
this[F] ? N(() => t4.call(this, this[d])) : t4.call(this, this[d]);
|
|
212108
|
+
}
|
|
212109
|
+
return s3;
|
|
212110
|
+
}
|
|
212111
|
+
removeListener(t3, e3) {
|
|
212112
|
+
return this.off(t3, e3);
|
|
212113
|
+
}
|
|
212114
|
+
off(t3, e3) {
|
|
212115
|
+
const s3 = super.off(t3, e3);
|
|
212116
|
+
return "data" === t3 && (this[j] = this.listeners("data").length, 0 !== this[j] || this[B] || this[x].length || (this[b] = false)), s3;
|
|
212117
|
+
}
|
|
212118
|
+
removeAllListeners(t3) {
|
|
212119
|
+
const e3 = super.removeAllListeners(t3);
|
|
212120
|
+
return "data" !== t3 && void 0 !== t3 || (this[j] = 0, this[B] || this[x].length || (this[b] = false)), e3;
|
|
212121
|
+
}
|
|
212122
|
+
get emittedEnd() {
|
|
212123
|
+
return this[c];
|
|
212124
|
+
}
|
|
212125
|
+
[l]() {
|
|
212126
|
+
this[p] || this[c] || this[M] || 0 !== this[k].length || !this[a] || (this[p] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[u] && this.emit("close"), this[p] = false);
|
|
212127
|
+
}
|
|
212128
|
+
emit(t3, ...e3) {
|
|
212129
|
+
const s3 = e3[0];
|
|
212130
|
+
if ("error" !== t3 && "close" !== t3 && t3 !== M && this[M]) return false;
|
|
212131
|
+
if ("data" === t3) return !(!this[C2] && !s3) && (this[F] ? (N(() => this[O2](s3)), true) : this[O2](s3));
|
|
212132
|
+
if ("end" === t3) return this[P]();
|
|
212133
|
+
if ("close" === t3) {
|
|
212134
|
+
if (this[u] = true, !this[c] && !this[M]) return false;
|
|
212135
|
+
const t4 = super.emit("close");
|
|
212136
|
+
return this.removeAllListeners("close"), t4;
|
|
212137
|
+
}
|
|
212138
|
+
if ("error" === t3) {
|
|
212139
|
+
this[d] = s3, super.emit(A, s3);
|
|
212140
|
+
const t4 = !(this[D] && !this.listeners("error").length) && super.emit("error", s3);
|
|
212141
|
+
return this[l](), t4;
|
|
212142
|
+
}
|
|
212143
|
+
if ("resume" === t3) {
|
|
212144
|
+
const t4 = super.emit("resume");
|
|
212145
|
+
return this[l](), t4;
|
|
212146
|
+
}
|
|
212147
|
+
if ("finish" === t3 || "prefinish" === t3) {
|
|
212148
|
+
const e4 = super.emit(t3);
|
|
212149
|
+
return this.removeAllListeners(t3), e4;
|
|
212150
|
+
}
|
|
212151
|
+
const i3 = super.emit(t3, ...e3);
|
|
212152
|
+
return this[l](), i3;
|
|
212153
|
+
}
|
|
212154
|
+
[O2](t3) {
|
|
212155
|
+
for (const e4 of this[x]) false === e4.dest.write(t3) && this.pause();
|
|
212156
|
+
const e3 = !this[B] && super.emit("data", t3);
|
|
212157
|
+
return this[l](), e3;
|
|
212158
|
+
}
|
|
212159
|
+
[P]() {
|
|
212160
|
+
return !this[c] && (this[c] = true, this.readable = false, this[F] ? (N(() => this[R]()), true) : this[R]());
|
|
212161
|
+
}
|
|
212162
|
+
[R]() {
|
|
212163
|
+
if (this[w]) {
|
|
212164
|
+
const t4 = this[w].end();
|
|
212165
|
+
if (t4) {
|
|
212166
|
+
for (const e3 of this[x]) e3.dest.write(t4);
|
|
212167
|
+
this[B] || super.emit("data", t4);
|
|
212168
|
+
}
|
|
212169
|
+
}
|
|
212170
|
+
for (const t4 of this[x]) t4.end();
|
|
212171
|
+
const t3 = super.emit("end");
|
|
212172
|
+
return this.removeAllListeners("end"), t3;
|
|
212173
|
+
}
|
|
212174
|
+
async collect() {
|
|
212175
|
+
const t3 = Object.assign([], { dataLength: 0 });
|
|
212176
|
+
this[C2] || (t3.dataLength = 0);
|
|
212177
|
+
const e3 = this.promise();
|
|
212178
|
+
return this.on("data", (e4) => {
|
|
212179
|
+
t3.push(e4), this[C2] || (t3.dataLength += e4.length);
|
|
212180
|
+
}), await e3, t3;
|
|
212181
|
+
}
|
|
212182
|
+
async concat() {
|
|
212183
|
+
if (this[C2]) throw new Error("cannot concat in objectMode");
|
|
212184
|
+
const t3 = await this.collect();
|
|
212185
|
+
return this[y] ? t3.join("") : Buffer.concat(t3, t3.dataLength);
|
|
212186
|
+
}
|
|
212187
|
+
async promise() {
|
|
212188
|
+
return new Promise((t3, e3) => {
|
|
212189
|
+
this.on(M, () => e3(new Error("stream destroyed"))), this.on("error", (t4) => e3(t4)), this.on("end", () => t3());
|
|
212190
|
+
});
|
|
212191
|
+
}
|
|
212192
|
+
[Symbol.asyncIterator]() {
|
|
212193
|
+
this[B] = false;
|
|
212194
|
+
let t3 = false;
|
|
212195
|
+
const e3 = async () => (this.pause(), t3 = true, { value: void 0, done: true });
|
|
212196
|
+
return { next: () => {
|
|
212197
|
+
if (t3) return e3();
|
|
212198
|
+
const s3 = this.read();
|
|
212199
|
+
if (null !== s3) return Promise.resolve({ done: false, value: s3 });
|
|
212200
|
+
if (this[a]) return e3();
|
|
212201
|
+
let i3, r3;
|
|
212202
|
+
const n4 = (t4) => {
|
|
212203
|
+
this.off("data", o2), this.off("end", h2), this.off(M, l2), e3(), r3(t4);
|
|
212204
|
+
}, o2 = (t4) => {
|
|
212205
|
+
this.off("error", n4), this.off("end", h2), this.off(M, l2), this.pause(), i3({ value: t4, done: !!this[a] });
|
|
212206
|
+
}, h2 = () => {
|
|
212207
|
+
this.off("error", n4), this.off("data", o2), this.off(M, l2), e3(), i3({ done: true, value: void 0 });
|
|
212208
|
+
}, l2 = () => n4(new Error("stream destroyed"));
|
|
212209
|
+
return new Promise((t4, e4) => {
|
|
212210
|
+
r3 = e4, i3 = t4, this.once(M, l2), this.once("error", n4), this.once("end", h2), this.once("data", o2);
|
|
212211
|
+
});
|
|
212212
|
+
}, throw: e3, return: e3, [Symbol.asyncIterator]() {
|
|
212213
|
+
return this;
|
|
212214
|
+
} };
|
|
212215
|
+
}
|
|
212216
|
+
[Symbol.iterator]() {
|
|
212217
|
+
this[B] = false;
|
|
212218
|
+
let t3 = false;
|
|
212219
|
+
const e3 = () => (this.pause(), this.off(A, e3), this.off(M, e3), this.off("end", e3), t3 = true, { done: true, value: void 0 });
|
|
212220
|
+
return this.once("end", e3), this.once(A, e3), this.once(M, e3), { next: () => {
|
|
212221
|
+
if (t3) return e3();
|
|
212222
|
+
const s3 = this.read();
|
|
212223
|
+
return null === s3 ? e3() : { done: false, value: s3 };
|
|
212224
|
+
}, throw: e3, return: e3, [Symbol.iterator]() {
|
|
212225
|
+
return this;
|
|
212226
|
+
} };
|
|
212227
|
+
}
|
|
212228
|
+
destroy(t3) {
|
|
212229
|
+
if (this[M]) return t3 ? this.emit("error", t3) : this.emit(M), this;
|
|
212230
|
+
this[M] = true, this[B] = true, this[k].length = 0, this[E] = 0;
|
|
212231
|
+
return "function" != typeof this.close || this[u] || this.close(), t3 ? this.emit("error", t3) : this.emit(M), this;
|
|
212232
|
+
}
|
|
212233
|
+
static get isStream() {
|
|
212234
|
+
return e2.isStream;
|
|
212235
|
+
}
|
|
212236
|
+
}
|
|
212237
|
+
e2.Minipass = U;
|
|
212238
|
+
}, 576: function(t2, e2, s2) {
|
|
212239
|
+
"use strict";
|
|
212240
|
+
var _mt, _yt, _wt, _bt, _vt, _St, _kt, _xt, _Et, _S, _Lt, _Tt, _Ct, _Mt, _At, _Ot, _Pt, _Rt, _Ft, __t, _zt, _Dt, _jt, _Bt, _Nt, _Wt, _It, _Gt, _Ut, _R_instances, $t_fn, Ht_fn, Vt_fn, Zt_fn, Jt_fn, Kt_fn, Yt_fn, Xt_fn, qt_fn, Qt_fn, ee_fn, te_fn, se_fn, ie_fn, _re, _ne, oe_fn, _he, _ae, _le, _It2, _mt2;
|
|
212241
|
+
var i2 = this && this.__createBinding || (Object.create ? function(t3, e3, s3, i3) {
|
|
212242
|
+
void 0 === i3 && (i3 = s3);
|
|
212243
|
+
var r3 = Object.getOwnPropertyDescriptor(e3, s3);
|
|
212244
|
+
r3 && !("get" in r3 ? !e3.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
|
|
212245
|
+
return e3[s3];
|
|
212246
|
+
} }), Object.defineProperty(t3, i3, r3);
|
|
212247
|
+
} : function(t3, e3, s3, i3) {
|
|
212248
|
+
void 0 === i3 && (i3 = s3), t3[i3] = e3[s3];
|
|
212249
|
+
}), r2 = this && this.__setModuleDefault || (Object.create ? function(t3, e3) {
|
|
212250
|
+
Object.defineProperty(t3, "default", { enumerable: true, value: e3 });
|
|
212251
|
+
} : function(t3, e3) {
|
|
212252
|
+
t3.default = e3;
|
|
212253
|
+
}), n3 = this && this.__importStar || function(t3) {
|
|
212254
|
+
if (t3 && t3.__esModule) return t3;
|
|
212255
|
+
var e3 = {};
|
|
212256
|
+
if (null != t3) for (var s3 in t3) "default" !== s3 && Object.prototype.hasOwnProperty.call(t3, s3) && i2(e3, t3, s3);
|
|
212257
|
+
return r2(e3, t3), e3;
|
|
212258
|
+
};
|
|
212259
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.PathScurry = e2.Path = e2.PathScurryDarwin = e2.PathScurryPosix = e2.PathScurryWin32 = e2.PathScurryBase = e2.PathPosix = e2.PathWin32 = e2.PathBase = e2.ChildrenCache = e2.ResolveCache = void 0;
|
|
212260
|
+
const o = s2(96), h = s2(760), a = s2(136), l = s2(896), c = n3(s2(24)), p = l.realpathSync.native, d = s2(455), u = s2(420), f = { lstatSync: l.lstatSync, readdir: l.readdir, readdirSync: l.readdirSync, readlinkSync: l.readlinkSync, realpathSync: p, promises: { lstat: d.lstat, readdir: d.readdir, readlink: d.readlink, realpath: d.realpath } }, g = (t3) => t3 && t3 !== f && t3 !== c ? { ...f, ...t3, promises: { ...f.promises, ...t3.promises || {} } } : f, m = /^\\\\\?\\([a-z]:)\\?$/i, y = /[\\\/]/, w = 10, b = 15, v = -16, S = 128, k = 256, x = 512, E = (t3) => t3.isFile() ? 8 : t3.isDirectory() ? 4 : t3.isSymbolicLink() ? w : t3.isCharacterDevice() ? 2 : t3.isBlockDevice() ? 6 : t3.isSocket() ? 12 : t3.isFIFO() ? 1 : 0, L = /* @__PURE__ */ new Map(), T = (t3) => {
|
|
212261
|
+
const e3 = L.get(t3);
|
|
212262
|
+
if (e3) return e3;
|
|
212263
|
+
const s3 = t3.normalize("NFKD");
|
|
212264
|
+
return L.set(t3, s3), s3;
|
|
212265
|
+
}, C2 = /* @__PURE__ */ new Map(), M = (t3) => {
|
|
212266
|
+
const e3 = C2.get(t3);
|
|
212267
|
+
if (e3) return e3;
|
|
212268
|
+
const s3 = T(t3.toLowerCase());
|
|
212269
|
+
return C2.set(t3, s3), s3;
|
|
212270
|
+
};
|
|
212271
|
+
class A extends o.LRUCache {
|
|
212272
|
+
constructor() {
|
|
212273
|
+
super({ max: 256 });
|
|
212274
|
+
}
|
|
212275
|
+
}
|
|
212276
|
+
e2.ResolveCache = A;
|
|
212277
|
+
class O2 extends o.LRUCache {
|
|
212278
|
+
constructor(t3 = 16384) {
|
|
212279
|
+
super({ maxSize: t3, sizeCalculation: (t4) => t4.length + 1 });
|
|
212280
|
+
}
|
|
212281
|
+
}
|
|
212282
|
+
e2.ChildrenCache = O2;
|
|
212283
|
+
const P = Symbol("PathScurry setAsCwd");
|
|
212284
|
+
class R {
|
|
212285
|
+
constructor(t3, e3 = 0, s3, i3, r3, n4, o2) {
|
|
212286
|
+
__privateAdd(this, _R_instances);
|
|
212287
|
+
__publicField(this, "name");
|
|
212288
|
+
__publicField(this, "root");
|
|
212289
|
+
__publicField(this, "roots");
|
|
212290
|
+
__publicField(this, "parent");
|
|
212291
|
+
__publicField(this, "nocase");
|
|
212292
|
+
__publicField(this, "isCWD", false);
|
|
212293
|
+
__privateAdd(this, _mt);
|
|
212294
|
+
__privateAdd(this, _yt);
|
|
212295
|
+
__privateAdd(this, _wt);
|
|
212296
|
+
__privateAdd(this, _bt);
|
|
212297
|
+
__privateAdd(this, _vt);
|
|
212298
|
+
__privateAdd(this, _St);
|
|
212299
|
+
__privateAdd(this, _kt);
|
|
212300
|
+
__privateAdd(this, _xt);
|
|
212301
|
+
__privateAdd(this, _Et);
|
|
212302
|
+
__privateAdd(this, _S);
|
|
212303
|
+
__privateAdd(this, _Lt);
|
|
212304
|
+
__privateAdd(this, _Tt);
|
|
212305
|
+
__privateAdd(this, _Ct);
|
|
212306
|
+
__privateAdd(this, _Mt);
|
|
212307
|
+
__privateAdd(this, _At);
|
|
212308
|
+
__privateAdd(this, _Ot);
|
|
212309
|
+
__privateAdd(this, _Pt);
|
|
212310
|
+
__privateAdd(this, _Rt);
|
|
212311
|
+
__privateAdd(this, _Ft);
|
|
212312
|
+
__privateAdd(this, __t);
|
|
212313
|
+
__privateAdd(this, _zt);
|
|
212314
|
+
__privateAdd(this, _Dt);
|
|
212315
|
+
__privateAdd(this, _jt);
|
|
212316
|
+
__privateAdd(this, _Bt);
|
|
212317
|
+
__privateAdd(this, _Nt);
|
|
212318
|
+
__privateAdd(this, _Wt);
|
|
212319
|
+
__privateAdd(this, _It);
|
|
212320
|
+
__privateAdd(this, _Gt);
|
|
212321
|
+
__privateAdd(this, _Ut);
|
|
212322
|
+
__privateAdd(this, _re, []);
|
|
212323
|
+
__privateAdd(this, _ne, false);
|
|
212324
|
+
__privateAdd(this, _he);
|
|
212325
|
+
this.name = t3, __privateSet(this, __t, r3 ? M(t3) : T(t3)), __privateSet(this, _Wt, 1023 & e3), this.nocase = r3, this.roots = i3, this.root = s3 || this, __privateSet(this, _It, n4), __privateSet(this, _Dt, o2.fullpath), __privateSet(this, _Bt, o2.relative), __privateSet(this, _Nt, o2.relativePosix), this.parent = o2.parent, this.parent ? __privateSet(this, _mt, __privateGet(this.parent, _mt)) : __privateSet(this, _mt, g(o2.fs));
|
|
212326
|
+
}
|
|
212327
|
+
get dev() {
|
|
212328
|
+
return __privateGet(this, _yt);
|
|
212329
|
+
}
|
|
212330
|
+
get mode() {
|
|
212331
|
+
return __privateGet(this, _wt);
|
|
212332
|
+
}
|
|
212333
|
+
get nlink() {
|
|
212334
|
+
return __privateGet(this, _bt);
|
|
212335
|
+
}
|
|
212336
|
+
get uid() {
|
|
212337
|
+
return __privateGet(this, _vt);
|
|
212338
|
+
}
|
|
212339
|
+
get gid() {
|
|
212340
|
+
return __privateGet(this, _St);
|
|
212341
|
+
}
|
|
212342
|
+
get rdev() {
|
|
212343
|
+
return __privateGet(this, _kt);
|
|
212344
|
+
}
|
|
212345
|
+
get blksize() {
|
|
212346
|
+
return __privateGet(this, _xt);
|
|
212347
|
+
}
|
|
212348
|
+
get ino() {
|
|
212349
|
+
return __privateGet(this, _Et);
|
|
212350
|
+
}
|
|
212351
|
+
get size() {
|
|
212352
|
+
return __privateGet(this, _S);
|
|
212353
|
+
}
|
|
212354
|
+
get blocks() {
|
|
212355
|
+
return __privateGet(this, _Lt);
|
|
212356
|
+
}
|
|
212357
|
+
get atimeMs() {
|
|
212358
|
+
return __privateGet(this, _Tt);
|
|
212359
|
+
}
|
|
212360
|
+
get mtimeMs() {
|
|
212361
|
+
return __privateGet(this, _Ct);
|
|
212362
|
+
}
|
|
212363
|
+
get ctimeMs() {
|
|
212364
|
+
return __privateGet(this, _Mt);
|
|
212365
|
+
}
|
|
212366
|
+
get birthtimeMs() {
|
|
212367
|
+
return __privateGet(this, _At);
|
|
212368
|
+
}
|
|
212369
|
+
get atime() {
|
|
212370
|
+
return __privateGet(this, _Ot);
|
|
212371
|
+
}
|
|
212372
|
+
get mtime() {
|
|
212373
|
+
return __privateGet(this, _Pt);
|
|
212374
|
+
}
|
|
212375
|
+
get ctime() {
|
|
212376
|
+
return __privateGet(this, _Rt);
|
|
212377
|
+
}
|
|
212378
|
+
get birthtime() {
|
|
212379
|
+
return __privateGet(this, _Ft);
|
|
212380
|
+
}
|
|
212381
|
+
get parentPath() {
|
|
212382
|
+
return (this.parent || this).fullpath();
|
|
212383
|
+
}
|
|
212384
|
+
get path() {
|
|
212385
|
+
return this.parentPath;
|
|
212386
|
+
}
|
|
212387
|
+
depth() {
|
|
212388
|
+
return void 0 !== __privateGet(this, _zt) ? __privateGet(this, _zt) : this.parent ? __privateSet(this, _zt, this.parent.depth() + 1) : __privateSet(this, _zt, 0);
|
|
212389
|
+
}
|
|
212390
|
+
childrenCache() {
|
|
212391
|
+
return __privateGet(this, _It);
|
|
212392
|
+
}
|
|
212393
|
+
resolve(t3) {
|
|
212394
|
+
var _a;
|
|
212395
|
+
if (!t3) return this;
|
|
212396
|
+
const e3 = this.getRootString(t3), s3 = t3.substring(e3.length).split(this.splitSep);
|
|
212397
|
+
return e3 ? __privateMethod(_a = this.getRoot(e3), _R_instances, $t_fn).call(_a, s3) : __privateMethod(this, _R_instances, $t_fn).call(this, s3);
|
|
212398
|
+
}
|
|
212399
|
+
children() {
|
|
212400
|
+
const t3 = __privateGet(this, _It).get(this);
|
|
212401
|
+
if (t3) return t3;
|
|
212402
|
+
const e3 = Object.assign([], { provisional: 0 });
|
|
212403
|
+
return __privateGet(this, _It).set(this, e3), __privateSet(this, _Wt, __privateGet(this, _Wt) & -17), e3;
|
|
212404
|
+
}
|
|
212405
|
+
child(t3, e3) {
|
|
212406
|
+
if ("" === t3 || "." === t3) return this;
|
|
212407
|
+
if (".." === t3) return this.parent || this;
|
|
212408
|
+
const s3 = this.children(), i3 = this.nocase ? M(t3) : T(t3);
|
|
212409
|
+
for (const t4 of s3) if (__privateGet(t4, __t) === i3) return t4;
|
|
212410
|
+
const r3 = this.parent ? this.sep : "", n4 = __privateGet(this, _Dt) ? __privateGet(this, _Dt) + r3 + t3 : void 0, o2 = this.newChild(t3, 0, { ...e3, parent: this, fullpath: n4 });
|
|
212411
|
+
return this.canReaddir() || __privateSet(o2, _Wt, __privateGet(o2, _Wt) | S), s3.push(o2), o2;
|
|
212412
|
+
}
|
|
212413
|
+
relative() {
|
|
212414
|
+
if (this.isCWD) return "";
|
|
212415
|
+
if (void 0 !== __privateGet(this, _Bt)) return __privateGet(this, _Bt);
|
|
212416
|
+
const t3 = this.name, e3 = this.parent;
|
|
212417
|
+
if (!e3) return __privateSet(this, _Bt, this.name);
|
|
212418
|
+
const s3 = e3.relative();
|
|
212419
|
+
return s3 + (s3 && e3.parent ? this.sep : "") + t3;
|
|
212420
|
+
}
|
|
212421
|
+
relativePosix() {
|
|
212422
|
+
if ("/" === this.sep) return this.relative();
|
|
212423
|
+
if (this.isCWD) return "";
|
|
212424
|
+
if (void 0 !== __privateGet(this, _Nt)) return __privateGet(this, _Nt);
|
|
212425
|
+
const t3 = this.name, e3 = this.parent;
|
|
212426
|
+
if (!e3) return __privateSet(this, _Nt, this.fullpathPosix());
|
|
212427
|
+
const s3 = e3.relativePosix();
|
|
212428
|
+
return s3 + (s3 && e3.parent ? "/" : "") + t3;
|
|
212429
|
+
}
|
|
212430
|
+
fullpath() {
|
|
212431
|
+
if (void 0 !== __privateGet(this, _Dt)) return __privateGet(this, _Dt);
|
|
212432
|
+
const t3 = this.name, e3 = this.parent;
|
|
212433
|
+
if (!e3) return __privateSet(this, _Dt, this.name);
|
|
212434
|
+
const s3 = e3.fullpath() + (e3.parent ? this.sep : "") + t3;
|
|
212435
|
+
return __privateSet(this, _Dt, s3);
|
|
212436
|
+
}
|
|
212437
|
+
fullpathPosix() {
|
|
212438
|
+
if (void 0 !== __privateGet(this, _jt)) return __privateGet(this, _jt);
|
|
212439
|
+
if ("/" === this.sep) return __privateSet(this, _jt, this.fullpath());
|
|
212440
|
+
if (!this.parent) {
|
|
212441
|
+
const t4 = this.fullpath().replace(/\\/g, "/");
|
|
212442
|
+
return /^[a-z]:\//i.test(t4) ? __privateSet(this, _jt, `//?/${t4}`) : __privateSet(this, _jt, t4);
|
|
212443
|
+
}
|
|
212444
|
+
const t3 = this.parent, e3 = t3.fullpathPosix(), s3 = e3 + (e3 && t3.parent ? "/" : "") + this.name;
|
|
212445
|
+
return __privateSet(this, _jt, s3);
|
|
212446
|
+
}
|
|
212447
|
+
isUnknown() {
|
|
212448
|
+
return !(__privateGet(this, _Wt) & b);
|
|
212449
|
+
}
|
|
212450
|
+
isType(t3) {
|
|
212451
|
+
return this[`is${t3}`]();
|
|
212452
|
+
}
|
|
212453
|
+
getType() {
|
|
212454
|
+
return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
|
|
212455
|
+
}
|
|
212456
|
+
isFile() {
|
|
212457
|
+
return 8 == (__privateGet(this, _Wt) & b);
|
|
212458
|
+
}
|
|
212459
|
+
isDirectory() {
|
|
212460
|
+
return 4 == (__privateGet(this, _Wt) & b);
|
|
212461
|
+
}
|
|
212462
|
+
isCharacterDevice() {
|
|
212463
|
+
return 2 == (__privateGet(this, _Wt) & b);
|
|
212464
|
+
}
|
|
212465
|
+
isBlockDevice() {
|
|
212466
|
+
return 6 == (__privateGet(this, _Wt) & b);
|
|
212467
|
+
}
|
|
212468
|
+
isFIFO() {
|
|
212469
|
+
return 1 == (__privateGet(this, _Wt) & b);
|
|
212470
|
+
}
|
|
212471
|
+
isSocket() {
|
|
212472
|
+
return 12 == (__privateGet(this, _Wt) & b);
|
|
212473
|
+
}
|
|
212474
|
+
isSymbolicLink() {
|
|
212475
|
+
return (__privateGet(this, _Wt) & w) === w;
|
|
212476
|
+
}
|
|
212477
|
+
lstatCached() {
|
|
212478
|
+
return 32 & __privateGet(this, _Wt) ? this : void 0;
|
|
212479
|
+
}
|
|
212480
|
+
readlinkCached() {
|
|
212481
|
+
return __privateGet(this, _Gt);
|
|
212482
|
+
}
|
|
212483
|
+
realpathCached() {
|
|
212484
|
+
return __privateGet(this, _Ut);
|
|
212485
|
+
}
|
|
212486
|
+
readdirCached() {
|
|
212487
|
+
const t3 = this.children();
|
|
212488
|
+
return t3.slice(0, t3.provisional);
|
|
212489
|
+
}
|
|
212490
|
+
canReadlink() {
|
|
212491
|
+
if (__privateGet(this, _Gt)) return true;
|
|
212492
|
+
if (!this.parent) return false;
|
|
212493
|
+
const t3 = __privateGet(this, _Wt) & b;
|
|
212494
|
+
return !(0 !== t3 && t3 !== w || __privateGet(this, _Wt) & k || __privateGet(this, _Wt) & S);
|
|
212495
|
+
}
|
|
212496
|
+
calledReaddir() {
|
|
212497
|
+
return !!(16 & __privateGet(this, _Wt));
|
|
212498
|
+
}
|
|
212499
|
+
isENOENT() {
|
|
212500
|
+
return !!(__privateGet(this, _Wt) & S);
|
|
212501
|
+
}
|
|
212502
|
+
isNamed(t3) {
|
|
212503
|
+
return this.nocase ? __privateGet(this, __t) === M(t3) : __privateGet(this, __t) === T(t3);
|
|
212504
|
+
}
|
|
212505
|
+
async readlink() {
|
|
212506
|
+
var _a;
|
|
212507
|
+
const t3 = __privateGet(this, _Gt);
|
|
212508
|
+
if (t3) return t3;
|
|
212509
|
+
if (this.canReadlink() && this.parent) try {
|
|
212510
|
+
const t4 = await __privateGet(this, _mt).promises.readlink(this.fullpath()), e3 = (_a = await this.parent.realpath()) == null ? void 0 : _a.resolve(t4);
|
|
212511
|
+
if (e3) return __privateSet(this, _Gt, e3);
|
|
212512
|
+
} catch (t4) {
|
|
212513
|
+
return void __privateMethod(this, _R_instances, qt_fn).call(this, t4.code);
|
|
212514
|
+
}
|
|
212515
|
+
}
|
|
212516
|
+
readlinkSync() {
|
|
212517
|
+
var _a;
|
|
212518
|
+
const t3 = __privateGet(this, _Gt);
|
|
212519
|
+
if (t3) return t3;
|
|
212520
|
+
if (this.canReadlink() && this.parent) try {
|
|
212521
|
+
const t4 = __privateGet(this, _mt).readlinkSync(this.fullpath()), e3 = (_a = this.parent.realpathSync()) == null ? void 0 : _a.resolve(t4);
|
|
212522
|
+
if (e3) return __privateSet(this, _Gt, e3);
|
|
212523
|
+
} catch (t4) {
|
|
212524
|
+
return void __privateMethod(this, _R_instances, qt_fn).call(this, t4.code);
|
|
212525
|
+
}
|
|
212526
|
+
}
|
|
212527
|
+
async lstat() {
|
|
212528
|
+
if (!(__privateGet(this, _Wt) & S)) try {
|
|
212529
|
+
return __privateMethod(this, _R_instances, ie_fn).call(this, await __privateGet(this, _mt).promises.lstat(this.fullpath())), this;
|
|
212530
|
+
} catch (t3) {
|
|
212531
|
+
__privateMethod(this, _R_instances, Xt_fn).call(this, t3.code);
|
|
212532
|
+
}
|
|
212533
|
+
}
|
|
212534
|
+
lstatSync() {
|
|
212535
|
+
if (!(__privateGet(this, _Wt) & S)) try {
|
|
212536
|
+
return __privateMethod(this, _R_instances, ie_fn).call(this, __privateGet(this, _mt).lstatSync(this.fullpath())), this;
|
|
212537
|
+
} catch (t3) {
|
|
212538
|
+
__privateMethod(this, _R_instances, Xt_fn).call(this, t3.code);
|
|
212539
|
+
}
|
|
212540
|
+
}
|
|
212541
|
+
readdirCB(t3, e3 = false) {
|
|
212542
|
+
if (!this.canReaddir()) return void (e3 ? t3(null, []) : queueMicrotask(() => t3(null, [])));
|
|
212543
|
+
const s3 = this.children();
|
|
212544
|
+
if (this.calledReaddir()) {
|
|
212545
|
+
const i4 = s3.slice(0, s3.provisional);
|
|
212546
|
+
return void (e3 ? t3(null, i4) : queueMicrotask(() => t3(null, i4)));
|
|
212547
|
+
}
|
|
212548
|
+
if (__privateGet(this, _re).push(t3), __privateGet(this, _ne)) return;
|
|
212549
|
+
__privateSet(this, _ne, true);
|
|
212550
|
+
const i3 = this.fullpath();
|
|
212551
|
+
__privateGet(this, _mt).readdir(i3, { withFileTypes: true }, (t4, e4) => {
|
|
212552
|
+
if (t4) __privateMethod(this, _R_instances, Yt_fn).call(this, t4.code), s3.provisional = 0;
|
|
212553
|
+
else {
|
|
212554
|
+
for (const t5 of e4) __privateMethod(this, _R_instances, Qt_fn).call(this, t5, s3);
|
|
212555
|
+
__privateMethod(this, _R_instances, Ht_fn).call(this, s3);
|
|
212556
|
+
}
|
|
212557
|
+
__privateMethod(this, _R_instances, oe_fn).call(this, s3.slice(0, s3.provisional));
|
|
212558
|
+
});
|
|
212559
|
+
}
|
|
212560
|
+
async readdir() {
|
|
212561
|
+
if (!this.canReaddir()) return [];
|
|
212562
|
+
const t3 = this.children();
|
|
212563
|
+
if (this.calledReaddir()) return t3.slice(0, t3.provisional);
|
|
212564
|
+
const e3 = this.fullpath();
|
|
212565
|
+
if (__privateGet(this, _he)) await __privateGet(this, _he);
|
|
212566
|
+
else {
|
|
212567
|
+
let s3 = () => {
|
|
212568
|
+
};
|
|
212569
|
+
__privateSet(this, _he, new Promise((t4) => s3 = t4));
|
|
212570
|
+
try {
|
|
212571
|
+
for (const s4 of await __privateGet(this, _mt).promises.readdir(e3, { withFileTypes: true })) __privateMethod(this, _R_instances, Qt_fn).call(this, s4, t3);
|
|
212572
|
+
__privateMethod(this, _R_instances, Ht_fn).call(this, t3);
|
|
212573
|
+
} catch (e4) {
|
|
212574
|
+
__privateMethod(this, _R_instances, Yt_fn).call(this, e4.code), t3.provisional = 0;
|
|
212575
|
+
}
|
|
212576
|
+
__privateSet(this, _he, void 0), s3();
|
|
212577
|
+
}
|
|
212578
|
+
return t3.slice(0, t3.provisional);
|
|
212579
|
+
}
|
|
212580
|
+
readdirSync() {
|
|
212581
|
+
if (!this.canReaddir()) return [];
|
|
212582
|
+
const t3 = this.children();
|
|
212583
|
+
if (this.calledReaddir()) return t3.slice(0, t3.provisional);
|
|
212584
|
+
const e3 = this.fullpath();
|
|
212585
|
+
try {
|
|
212586
|
+
for (const s3 of __privateGet(this, _mt).readdirSync(e3, { withFileTypes: true })) __privateMethod(this, _R_instances, Qt_fn).call(this, s3, t3);
|
|
212587
|
+
__privateMethod(this, _R_instances, Ht_fn).call(this, t3);
|
|
212588
|
+
} catch (e4) {
|
|
212589
|
+
__privateMethod(this, _R_instances, Yt_fn).call(this, e4.code), t3.provisional = 0;
|
|
212590
|
+
}
|
|
212591
|
+
return t3.slice(0, t3.provisional);
|
|
212592
|
+
}
|
|
212593
|
+
canReaddir() {
|
|
212594
|
+
if (704 & __privateGet(this, _Wt)) return false;
|
|
212595
|
+
const t3 = b & __privateGet(this, _Wt);
|
|
212596
|
+
return 0 === t3 || 4 === t3 || t3 === w;
|
|
212597
|
+
}
|
|
212598
|
+
shouldWalk(t3, e3) {
|
|
212599
|
+
return !(4 & ~__privateGet(this, _Wt)) && !(704 & __privateGet(this, _Wt)) && !t3.has(this) && (!e3 || e3(this));
|
|
212600
|
+
}
|
|
212601
|
+
async realpath() {
|
|
212602
|
+
if (__privateGet(this, _Ut)) return __privateGet(this, _Ut);
|
|
212603
|
+
if (!(896 & __privateGet(this, _Wt))) try {
|
|
212604
|
+
const t3 = await __privateGet(this, _mt).promises.realpath(this.fullpath());
|
|
212605
|
+
return __privateSet(this, _Ut, this.resolve(t3));
|
|
212606
|
+
} catch (t3) {
|
|
212607
|
+
__privateMethod(this, _R_instances, Jt_fn).call(this);
|
|
212608
|
+
}
|
|
212609
|
+
}
|
|
212610
|
+
realpathSync() {
|
|
212611
|
+
if (__privateGet(this, _Ut)) return __privateGet(this, _Ut);
|
|
212612
|
+
if (!(896 & __privateGet(this, _Wt))) try {
|
|
212613
|
+
const t3 = __privateGet(this, _mt).realpathSync(this.fullpath());
|
|
212614
|
+
return __privateSet(this, _Ut, this.resolve(t3));
|
|
212615
|
+
} catch (t3) {
|
|
212616
|
+
__privateMethod(this, _R_instances, Jt_fn).call(this);
|
|
212617
|
+
}
|
|
212618
|
+
}
|
|
212619
|
+
[P](t3) {
|
|
212620
|
+
if (t3 === this) return;
|
|
212621
|
+
t3.isCWD = false, this.isCWD = true;
|
|
212622
|
+
const e3 = /* @__PURE__ */ new Set([]);
|
|
212623
|
+
let s3 = [], i3 = this;
|
|
212624
|
+
for (; i3 && i3.parent; ) e3.add(i3), __privateSet(i3, _Bt, s3.join(this.sep)), __privateSet(i3, _Nt, s3.join("/")), i3 = i3.parent, s3.push("..");
|
|
212625
|
+
for (i3 = t3; i3 && i3.parent && !e3.has(i3); ) __privateSet(i3, _Bt, void 0), __privateSet(i3, _Nt, void 0), i3 = i3.parent;
|
|
212626
|
+
}
|
|
212627
|
+
}
|
|
212628
|
+
_mt = new WeakMap();
|
|
212629
|
+
_yt = new WeakMap();
|
|
212630
|
+
_wt = new WeakMap();
|
|
212631
|
+
_bt = new WeakMap();
|
|
212632
|
+
_vt = new WeakMap();
|
|
212633
|
+
_St = new WeakMap();
|
|
212634
|
+
_kt = new WeakMap();
|
|
212635
|
+
_xt = new WeakMap();
|
|
212636
|
+
_Et = new WeakMap();
|
|
212637
|
+
_S = new WeakMap();
|
|
212638
|
+
_Lt = new WeakMap();
|
|
212639
|
+
_Tt = new WeakMap();
|
|
212640
|
+
_Ct = new WeakMap();
|
|
212641
|
+
_Mt = new WeakMap();
|
|
212642
|
+
_At = new WeakMap();
|
|
212643
|
+
_Ot = new WeakMap();
|
|
212644
|
+
_Pt = new WeakMap();
|
|
212645
|
+
_Rt = new WeakMap();
|
|
212646
|
+
_Ft = new WeakMap();
|
|
212647
|
+
__t = new WeakMap();
|
|
212648
|
+
_zt = new WeakMap();
|
|
212649
|
+
_Dt = new WeakMap();
|
|
212650
|
+
_jt = new WeakMap();
|
|
212651
|
+
_Bt = new WeakMap();
|
|
212652
|
+
_Nt = new WeakMap();
|
|
212653
|
+
_Wt = new WeakMap();
|
|
212654
|
+
_It = new WeakMap();
|
|
212655
|
+
_Gt = new WeakMap();
|
|
212656
|
+
_Ut = new WeakMap();
|
|
212657
|
+
_R_instances = new WeakSet();
|
|
212658
|
+
$t_fn = function(t3) {
|
|
212659
|
+
let e3 = this;
|
|
212660
|
+
for (const s3 of t3) e3 = e3.child(s3);
|
|
212661
|
+
return e3;
|
|
212662
|
+
};
|
|
212663
|
+
Ht_fn = function(t3) {
|
|
212664
|
+
var _a;
|
|
212665
|
+
__privateSet(this, _Wt, __privateGet(this, _Wt) | 16);
|
|
212666
|
+
for (let e3 = t3.provisional; e3 < t3.length; e3++) {
|
|
212667
|
+
const s3 = t3[e3];
|
|
212668
|
+
s3 && __privateMethod(_a = s3, _R_instances, Vt_fn).call(_a);
|
|
212669
|
+
}
|
|
212670
|
+
};
|
|
212671
|
+
Vt_fn = function() {
|
|
212672
|
+
__privateGet(this, _Wt) & S || (__privateSet(this, _Wt, (__privateGet(this, _Wt) | S) & v), __privateMethod(this, _R_instances, Zt_fn).call(this));
|
|
212673
|
+
};
|
|
212674
|
+
Zt_fn = function() {
|
|
212675
|
+
var _a;
|
|
212676
|
+
const t3 = this.children();
|
|
212677
|
+
t3.provisional = 0;
|
|
212678
|
+
for (const e3 of t3) __privateMethod(_a = e3, _R_instances, Vt_fn).call(_a);
|
|
212679
|
+
};
|
|
212680
|
+
Jt_fn = function() {
|
|
212681
|
+
__privateSet(this, _Wt, __privateGet(this, _Wt) | x), __privateMethod(this, _R_instances, Kt_fn).call(this);
|
|
212682
|
+
};
|
|
212683
|
+
Kt_fn = function() {
|
|
212684
|
+
if (64 & __privateGet(this, _Wt)) return;
|
|
212685
|
+
let t3 = __privateGet(this, _Wt);
|
|
212686
|
+
4 == (t3 & b) && (t3 &= v), __privateSet(this, _Wt, 64 | t3), __privateMethod(this, _R_instances, Zt_fn).call(this);
|
|
212687
|
+
};
|
|
212688
|
+
Yt_fn = function(t3 = "") {
|
|
212689
|
+
"ENOTDIR" === t3 || "EPERM" === t3 ? __privateMethod(this, _R_instances, Kt_fn).call(this) : "ENOENT" === t3 ? __privateMethod(this, _R_instances, Vt_fn).call(this) : this.children().provisional = 0;
|
|
212690
|
+
};
|
|
212691
|
+
Xt_fn = function(t3 = "") {
|
|
212692
|
+
var _a;
|
|
212693
|
+
if ("ENOTDIR" === t3) {
|
|
212694
|
+
__privateMethod(_a = this.parent, _R_instances, Kt_fn).call(_a);
|
|
212695
|
+
} else "ENOENT" === t3 && __privateMethod(this, _R_instances, Vt_fn).call(this);
|
|
212696
|
+
};
|
|
212697
|
+
qt_fn = function(t3 = "") {
|
|
212698
|
+
var _a;
|
|
212699
|
+
let e3 = __privateGet(this, _Wt);
|
|
212700
|
+
e3 |= k, "ENOENT" === t3 && (e3 |= S), "EINVAL" !== t3 && "UNKNOWN" !== t3 || (e3 &= v), __privateSet(this, _Wt, e3), "ENOTDIR" === t3 && this.parent && __privateMethod(_a = this.parent, _R_instances, Kt_fn).call(_a);
|
|
212701
|
+
};
|
|
212702
|
+
Qt_fn = function(t3, e3) {
|
|
212703
|
+
return __privateMethod(this, _R_instances, te_fn).call(this, t3, e3) || __privateMethod(this, _R_instances, ee_fn).call(this, t3, e3);
|
|
212704
|
+
};
|
|
212705
|
+
ee_fn = function(t3, e3) {
|
|
212706
|
+
const s3 = E(t3), i3 = this.newChild(t3.name, s3, { parent: this }), r3 = __privateGet(i3, _Wt) & b;
|
|
212707
|
+
return 4 !== r3 && r3 !== w && 0 !== r3 && __privateSet(i3, _Wt, __privateGet(i3, _Wt) | 64), e3.unshift(i3), e3.provisional++, i3;
|
|
212708
|
+
};
|
|
212709
|
+
te_fn = function(t3, e3) {
|
|
212710
|
+
for (let s3 = e3.provisional; s3 < e3.length; s3++) {
|
|
212711
|
+
const i3 = e3[s3];
|
|
212712
|
+
if ((this.nocase ? M(t3.name) : T(t3.name)) === __privateGet(i3, __t)) return __privateMethod(this, _R_instances, se_fn).call(this, t3, i3, s3, e3);
|
|
212713
|
+
}
|
|
212714
|
+
};
|
|
212715
|
+
se_fn = function(t3, e3, s3, i3) {
|
|
212716
|
+
const r3 = e3.name;
|
|
212717
|
+
return __privateSet(e3, _Wt, __privateGet(e3, _Wt) & v | E(t3)), r3 !== t3.name && (e3.name = t3.name), s3 !== i3.provisional && (s3 === i3.length - 1 ? i3.pop() : i3.splice(s3, 1), i3.unshift(e3)), i3.provisional++, e3;
|
|
212718
|
+
};
|
|
212719
|
+
ie_fn = function(t3) {
|
|
212720
|
+
const { atime: e3, atimeMs: s3, birthtime: i3, birthtimeMs: r3, blksize: n4, blocks: o2, ctime: h2, ctimeMs: a2, dev: l2, gid: c2, ino: p2, mode: d2, mtime: u2, mtimeMs: f2, nlink: g2, rdev: m2, size: y2, uid: b2 } = t3;
|
|
212721
|
+
__privateSet(this, _Ot, e3), __privateSet(this, _Tt, s3), __privateSet(this, _Ft, i3), __privateSet(this, _At, r3), __privateSet(this, _xt, n4), __privateSet(this, _Lt, o2), __privateSet(this, _Rt, h2), __privateSet(this, _Mt, a2), __privateSet(this, _yt, l2), __privateSet(this, _St, c2), __privateSet(this, _Et, p2), __privateSet(this, _wt, d2), __privateSet(this, _Pt, u2), __privateSet(this, _Ct, f2), __privateSet(this, _bt, g2), __privateSet(this, _kt, m2), __privateSet(this, _S, y2), __privateSet(this, _vt, b2);
|
|
212722
|
+
const S2 = E(t3);
|
|
212723
|
+
__privateSet(this, _Wt, __privateGet(this, _Wt) & v | S2 | 32), 0 !== S2 && 4 !== S2 && S2 !== w && __privateSet(this, _Wt, __privateGet(this, _Wt) | 64);
|
|
212724
|
+
};
|
|
212725
|
+
_re = new WeakMap();
|
|
212726
|
+
_ne = new WeakMap();
|
|
212727
|
+
oe_fn = function(t3) {
|
|
212728
|
+
__privateSet(this, _ne, false);
|
|
212729
|
+
const e3 = __privateGet(this, _re).slice();
|
|
212730
|
+
__privateGet(this, _re).length = 0, e3.forEach((e4) => e4(null, t3));
|
|
212731
|
+
};
|
|
212732
|
+
_he = new WeakMap();
|
|
212733
|
+
e2.PathBase = R;
|
|
212734
|
+
class F extends R {
|
|
212735
|
+
sep = "\\";
|
|
212736
|
+
splitSep = y;
|
|
212737
|
+
constructor(t3, e3 = 0, s3, i3, r3, n4, o2) {
|
|
212738
|
+
super(t3, e3, s3, i3, r3, n4, o2);
|
|
212739
|
+
}
|
|
212740
|
+
newChild(t3, e3 = 0, s3 = {}) {
|
|
212741
|
+
return new F(t3, e3, this.root, this.roots, this.nocase, this.childrenCache(), s3);
|
|
212742
|
+
}
|
|
212743
|
+
getRootString(t3) {
|
|
212744
|
+
return h.win32.parse(t3).root;
|
|
212745
|
+
}
|
|
212746
|
+
getRoot(t3) {
|
|
212747
|
+
if ((t3 = ((t4) => t4.replace(/\//g, "\\").replace(m, "$1\\"))(t3.toUpperCase())) === this.root.name) return this.root;
|
|
212748
|
+
for (const [e3, s3] of Object.entries(this.roots)) if (this.sameRoot(t3, e3)) return this.roots[t3] = s3;
|
|
212749
|
+
return this.roots[t3] = new D(t3, this).root;
|
|
212750
|
+
}
|
|
212751
|
+
sameRoot(t3, e3 = this.root.name) {
|
|
212752
|
+
return (t3 = t3.toUpperCase().replace(/\//g, "\\").replace(m, "$1\\")) === e3;
|
|
212753
|
+
}
|
|
212754
|
+
}
|
|
212755
|
+
e2.PathWin32 = F;
|
|
212756
|
+
class _ extends R {
|
|
212757
|
+
splitSep = "/";
|
|
212758
|
+
sep = "/";
|
|
212759
|
+
constructor(t3, e3 = 0, s3, i3, r3, n4, o2) {
|
|
212760
|
+
super(t3, e3, s3, i3, r3, n4, o2);
|
|
212761
|
+
}
|
|
212762
|
+
getRootString(t3) {
|
|
212763
|
+
return t3.startsWith("/") ? "/" : "";
|
|
212764
|
+
}
|
|
212765
|
+
getRoot(t3) {
|
|
212766
|
+
return this.root;
|
|
212767
|
+
}
|
|
212768
|
+
newChild(t3, e3 = 0, s3 = {}) {
|
|
212769
|
+
return new _(t3, e3, this.root, this.roots, this.nocase, this.childrenCache(), s3);
|
|
212770
|
+
}
|
|
212771
|
+
}
|
|
212772
|
+
e2.PathPosix = _;
|
|
212773
|
+
class z {
|
|
212774
|
+
constructor(t3 = process.cwd(), e3, s3, { nocase: i3, childrenCacheSize: r3 = 16384, fs: n4 = f } = {}) {
|
|
212775
|
+
__publicField(this, "root");
|
|
212776
|
+
__publicField(this, "rootPath");
|
|
212777
|
+
__publicField(this, "roots");
|
|
212778
|
+
__publicField(this, "cwd");
|
|
212779
|
+
__privateAdd(this, _ae);
|
|
212780
|
+
__privateAdd(this, _le);
|
|
212781
|
+
__privateAdd(this, _It2);
|
|
212782
|
+
__publicField(this, "nocase");
|
|
212783
|
+
__privateAdd(this, _mt2);
|
|
212784
|
+
__privateSet(this, _mt2, g(n4)), (t3 instanceof URL || t3.startsWith("file://")) && (t3 = (0, a.fileURLToPath)(t3));
|
|
212785
|
+
const o2 = e3.resolve(t3);
|
|
212786
|
+
this.roots = /* @__PURE__ */ Object.create(null), this.rootPath = this.parseRootPath(o2), __privateSet(this, _ae, new A()), __privateSet(this, _le, new A()), __privateSet(this, _It2, new O2(r3));
|
|
212787
|
+
const h2 = o2.substring(this.rootPath.length).split(s3);
|
|
212788
|
+
if (1 !== h2.length || h2[0] || h2.pop(), void 0 === i3) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
|
|
212789
|
+
this.nocase = i3, this.root = this.newRoot(__privateGet(this, _mt2)), this.roots[this.rootPath] = this.root;
|
|
212790
|
+
let l2 = this.root, c2 = h2.length - 1;
|
|
212791
|
+
const p2 = e3.sep;
|
|
212792
|
+
let d2 = this.rootPath, u2 = false;
|
|
212793
|
+
for (const t4 of h2) {
|
|
212794
|
+
const e4 = c2--;
|
|
212795
|
+
l2 = l2.child(t4, { relative: new Array(e4).fill("..").join(p2), relativePosix: new Array(e4).fill("..").join("/"), fullpath: d2 += (u2 ? "" : p2) + t4 }), u2 = true;
|
|
212796
|
+
}
|
|
212797
|
+
this.cwd = l2;
|
|
212798
|
+
}
|
|
212799
|
+
depth(t3 = this.cwd) {
|
|
212800
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.depth();
|
|
212801
|
+
}
|
|
212802
|
+
childrenCache() {
|
|
212803
|
+
return __privateGet(this, _It2);
|
|
212804
|
+
}
|
|
212805
|
+
resolve(...t3) {
|
|
212806
|
+
let e3 = "";
|
|
212807
|
+
for (let s4 = t3.length - 1; s4 >= 0; s4--) {
|
|
212808
|
+
const i4 = t3[s4];
|
|
212809
|
+
if (i4 && "." !== i4 && (e3 = e3 ? `${i4}/${e3}` : i4, this.isAbsolute(i4))) break;
|
|
212810
|
+
}
|
|
212811
|
+
const s3 = __privateGet(this, _ae).get(e3);
|
|
212812
|
+
if (void 0 !== s3) return s3;
|
|
212813
|
+
const i3 = this.cwd.resolve(e3).fullpath();
|
|
212814
|
+
return __privateGet(this, _ae).set(e3, i3), i3;
|
|
212815
|
+
}
|
|
212816
|
+
resolvePosix(...t3) {
|
|
212817
|
+
let e3 = "";
|
|
212818
|
+
for (let s4 = t3.length - 1; s4 >= 0; s4--) {
|
|
212819
|
+
const i4 = t3[s4];
|
|
212820
|
+
if (i4 && "." !== i4 && (e3 = e3 ? `${i4}/${e3}` : i4, this.isAbsolute(i4))) break;
|
|
212821
|
+
}
|
|
212822
|
+
const s3 = __privateGet(this, _le).get(e3);
|
|
212823
|
+
if (void 0 !== s3) return s3;
|
|
212824
|
+
const i3 = this.cwd.resolve(e3).fullpathPosix();
|
|
212825
|
+
return __privateGet(this, _le).set(e3, i3), i3;
|
|
212826
|
+
}
|
|
212827
|
+
relative(t3 = this.cwd) {
|
|
212828
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.relative();
|
|
212829
|
+
}
|
|
212830
|
+
relativePosix(t3 = this.cwd) {
|
|
212831
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.relativePosix();
|
|
212832
|
+
}
|
|
212833
|
+
basename(t3 = this.cwd) {
|
|
212834
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.name;
|
|
212835
|
+
}
|
|
212836
|
+
dirname(t3 = this.cwd) {
|
|
212837
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), (t3.parent || t3).fullpath();
|
|
212838
|
+
}
|
|
212839
|
+
async readdir(t3 = this.cwd, e3 = { withFileTypes: true }) {
|
|
212840
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212841
|
+
const { withFileTypes: s3 } = e3;
|
|
212842
|
+
if (t3.canReaddir()) {
|
|
212843
|
+
const e4 = await t3.readdir();
|
|
212844
|
+
return s3 ? e4 : e4.map((t4) => t4.name);
|
|
212845
|
+
}
|
|
212846
|
+
return [];
|
|
212847
|
+
}
|
|
212848
|
+
readdirSync(t3 = this.cwd, e3 = { withFileTypes: true }) {
|
|
212849
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212850
|
+
const { withFileTypes: s3 = true } = e3;
|
|
212851
|
+
return t3.canReaddir() ? s3 ? t3.readdirSync() : t3.readdirSync().map((t4) => t4.name) : [];
|
|
212852
|
+
}
|
|
212853
|
+
async lstat(t3 = this.cwd) {
|
|
212854
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.lstat();
|
|
212855
|
+
}
|
|
212856
|
+
lstatSync(t3 = this.cwd) {
|
|
212857
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.lstatSync();
|
|
212858
|
+
}
|
|
212859
|
+
async readlink(t3 = this.cwd, { withFileTypes: e3 } = { withFileTypes: false }) {
|
|
212860
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3.withFileTypes, t3 = this.cwd);
|
|
212861
|
+
const s3 = await t3.readlink();
|
|
212862
|
+
return e3 ? s3 : s3 == null ? void 0 : s3.fullpath();
|
|
212863
|
+
}
|
|
212864
|
+
readlinkSync(t3 = this.cwd, { withFileTypes: e3 } = { withFileTypes: false }) {
|
|
212865
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3.withFileTypes, t3 = this.cwd);
|
|
212866
|
+
const s3 = t3.readlinkSync();
|
|
212867
|
+
return e3 ? s3 : s3 == null ? void 0 : s3.fullpath();
|
|
212868
|
+
}
|
|
212869
|
+
async realpath(t3 = this.cwd, { withFileTypes: e3 } = { withFileTypes: false }) {
|
|
212870
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3.withFileTypes, t3 = this.cwd);
|
|
212871
|
+
const s3 = await t3.realpath();
|
|
212872
|
+
return e3 ? s3 : s3 == null ? void 0 : s3.fullpath();
|
|
212873
|
+
}
|
|
212874
|
+
realpathSync(t3 = this.cwd, { withFileTypes: e3 } = { withFileTypes: false }) {
|
|
212875
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3.withFileTypes, t3 = this.cwd);
|
|
212876
|
+
const s3 = t3.realpathSync();
|
|
212877
|
+
return e3 ? s3 : s3 == null ? void 0 : s3.fullpath();
|
|
212878
|
+
}
|
|
212879
|
+
async walk(t3 = this.cwd, e3 = {}) {
|
|
212880
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212881
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3, o2 = [];
|
|
212882
|
+
r3 && !r3(t3) || o2.push(s3 ? t3 : t3.fullpath());
|
|
212883
|
+
const h2 = /* @__PURE__ */ new Set(), a2 = (t4, e4) => {
|
|
212884
|
+
h2.add(t4), t4.readdirCB((t5, l3) => {
|
|
212885
|
+
if (t5) return e4(t5);
|
|
212886
|
+
let c2 = l3.length;
|
|
212887
|
+
if (!c2) return e4();
|
|
212888
|
+
const p2 = () => {
|
|
212889
|
+
0 == --c2 && e4();
|
|
212890
|
+
};
|
|
212891
|
+
for (const t6 of l3) r3 && !r3(t6) || o2.push(s3 ? t6 : t6.fullpath()), i3 && t6.isSymbolicLink() ? t6.realpath().then((t7) => (t7 == null ? void 0 : t7.isUnknown()) ? t7.lstat() : t7).then((t7) => (t7 == null ? void 0 : t7.shouldWalk(h2, n4)) ? a2(t7, p2) : p2()) : t6.shouldWalk(h2, n4) ? a2(t6, p2) : p2();
|
|
212892
|
+
}, true);
|
|
212893
|
+
}, l2 = t3;
|
|
212894
|
+
return new Promise((t4, e4) => {
|
|
212895
|
+
a2(l2, (s4) => {
|
|
212896
|
+
if (s4) return e4(s4);
|
|
212897
|
+
t4(o2);
|
|
212898
|
+
});
|
|
212899
|
+
});
|
|
212900
|
+
}
|
|
212901
|
+
walkSync(t3 = this.cwd, e3 = {}) {
|
|
212902
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212903
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3, o2 = [];
|
|
212904
|
+
r3 && !r3(t3) || o2.push(s3 ? t3 : t3.fullpath());
|
|
212905
|
+
const h2 = /* @__PURE__ */ new Set([t3]);
|
|
212906
|
+
for (const t4 of h2) {
|
|
212907
|
+
const e4 = t4.readdirSync();
|
|
212908
|
+
for (const t5 of e4) {
|
|
212909
|
+
r3 && !r3(t5) || o2.push(s3 ? t5 : t5.fullpath());
|
|
212910
|
+
let e5 = t5;
|
|
212911
|
+
if (t5.isSymbolicLink()) {
|
|
212912
|
+
if (!i3 || !(e5 = t5.realpathSync())) continue;
|
|
212913
|
+
e5.isUnknown() && e5.lstatSync();
|
|
212914
|
+
}
|
|
212915
|
+
e5.shouldWalk(h2, n4) && h2.add(e5);
|
|
212916
|
+
}
|
|
212917
|
+
}
|
|
212918
|
+
return o2;
|
|
212919
|
+
}
|
|
212920
|
+
[Symbol.asyncIterator]() {
|
|
212921
|
+
return this.iterate();
|
|
212922
|
+
}
|
|
212923
|
+
iterate(t3 = this.cwd, e3 = {}) {
|
|
212924
|
+
return "string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd), this.stream(t3, e3)[Symbol.asyncIterator]();
|
|
212925
|
+
}
|
|
212926
|
+
[Symbol.iterator]() {
|
|
212927
|
+
return this.iterateSync();
|
|
212928
|
+
}
|
|
212929
|
+
*iterateSync(t3 = this.cwd, e3 = {}) {
|
|
212930
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212931
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3;
|
|
212932
|
+
r3 && !r3(t3) || (yield s3 ? t3 : t3.fullpath());
|
|
212933
|
+
const o2 = /* @__PURE__ */ new Set([t3]);
|
|
212934
|
+
for (const t4 of o2) {
|
|
212935
|
+
const e4 = t4.readdirSync();
|
|
212936
|
+
for (const t5 of e4) {
|
|
212937
|
+
r3 && !r3(t5) || (yield s3 ? t5 : t5.fullpath());
|
|
212938
|
+
let e5 = t5;
|
|
212939
|
+
if (t5.isSymbolicLink()) {
|
|
212940
|
+
if (!i3 || !(e5 = t5.realpathSync())) continue;
|
|
212941
|
+
e5.isUnknown() && e5.lstatSync();
|
|
212942
|
+
}
|
|
212943
|
+
e5.shouldWalk(o2, n4) && o2.add(e5);
|
|
212944
|
+
}
|
|
212945
|
+
}
|
|
212946
|
+
}
|
|
212947
|
+
stream(t3 = this.cwd, e3 = {}) {
|
|
212948
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212949
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3, o2 = new u.Minipass({ objectMode: true });
|
|
212950
|
+
r3 && !r3(t3) || o2.write(s3 ? t3 : t3.fullpath());
|
|
212951
|
+
const h2 = /* @__PURE__ */ new Set(), a2 = [t3];
|
|
212952
|
+
let l2 = 0;
|
|
212953
|
+
const c2 = () => {
|
|
212954
|
+
let t4 = false;
|
|
212955
|
+
for (; !t4; ) {
|
|
212956
|
+
const e4 = a2.shift();
|
|
212957
|
+
if (!e4) return void (0 === l2 && o2.end());
|
|
212958
|
+
l2++, h2.add(e4);
|
|
212959
|
+
const p2 = (e5, u2, f2 = false) => {
|
|
212960
|
+
if (e5) return o2.emit("error", e5);
|
|
212961
|
+
if (i3 && !f2) {
|
|
212962
|
+
const t5 = [];
|
|
212963
|
+
for (const e6 of u2) e6.isSymbolicLink() && t5.push(e6.realpath().then((t6) => (t6 == null ? void 0 : t6.isUnknown()) ? t6.lstat() : t6));
|
|
212964
|
+
if (t5.length) return void Promise.all(t5).then(() => p2(null, u2, true));
|
|
212965
|
+
}
|
|
212966
|
+
for (const e6 of u2) !e6 || r3 && !r3(e6) || o2.write(s3 ? e6 : e6.fullpath()) || (t4 = true);
|
|
212967
|
+
l2--;
|
|
212968
|
+
for (const t5 of u2) {
|
|
212969
|
+
const e6 = t5.realpathCached() || t5;
|
|
212970
|
+
e6.shouldWalk(h2, n4) && a2.push(e6);
|
|
212971
|
+
}
|
|
212972
|
+
t4 && !o2.flowing ? o2.once("drain", c2) : d2 || c2();
|
|
212973
|
+
};
|
|
212974
|
+
let d2 = true;
|
|
212975
|
+
e4.readdirCB(p2, true), d2 = false;
|
|
212976
|
+
}
|
|
212977
|
+
};
|
|
212978
|
+
return c2(), o2;
|
|
212979
|
+
}
|
|
212980
|
+
streamSync(t3 = this.cwd, e3 = {}) {
|
|
212981
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212982
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3, o2 = new u.Minipass({ objectMode: true }), h2 = /* @__PURE__ */ new Set();
|
|
212983
|
+
r3 && !r3(t3) || o2.write(s3 ? t3 : t3.fullpath());
|
|
212984
|
+
const a2 = [t3];
|
|
212985
|
+
let l2 = 0;
|
|
212986
|
+
const c2 = () => {
|
|
212987
|
+
let t4 = false;
|
|
212988
|
+
for (; !t4; ) {
|
|
212989
|
+
const e4 = a2.shift();
|
|
212990
|
+
if (!e4) return void (0 === l2 && o2.end());
|
|
212991
|
+
l2++, h2.add(e4);
|
|
212992
|
+
const c3 = e4.readdirSync();
|
|
212993
|
+
for (const e5 of c3) r3 && !r3(e5) || o2.write(s3 ? e5 : e5.fullpath()) || (t4 = true);
|
|
212994
|
+
l2--;
|
|
212995
|
+
for (const t5 of c3) {
|
|
212996
|
+
let e5 = t5;
|
|
212997
|
+
if (t5.isSymbolicLink()) {
|
|
212998
|
+
if (!i3 || !(e5 = t5.realpathSync())) continue;
|
|
212999
|
+
e5.isUnknown() && e5.lstatSync();
|
|
213000
|
+
}
|
|
213001
|
+
e5.shouldWalk(h2, n4) && a2.push(e5);
|
|
213002
|
+
}
|
|
213003
|
+
}
|
|
213004
|
+
t4 && !o2.flowing && o2.once("drain", c2);
|
|
213005
|
+
};
|
|
213006
|
+
return c2(), o2;
|
|
213007
|
+
}
|
|
213008
|
+
chdir(t3 = this.cwd) {
|
|
213009
|
+
const e3 = this.cwd;
|
|
213010
|
+
this.cwd = "string" == typeof t3 ? this.cwd.resolve(t3) : t3, this.cwd[P](e3);
|
|
213011
|
+
}
|
|
213012
|
+
}
|
|
213013
|
+
_ae = new WeakMap();
|
|
213014
|
+
_le = new WeakMap();
|
|
213015
|
+
_It2 = new WeakMap();
|
|
213016
|
+
_mt2 = new WeakMap();
|
|
213017
|
+
e2.PathScurryBase = z;
|
|
213018
|
+
class D extends z {
|
|
213019
|
+
sep = "\\";
|
|
213020
|
+
constructor(t3 = process.cwd(), e3 = {}) {
|
|
213021
|
+
const { nocase: s3 = true } = e3;
|
|
213022
|
+
super(t3, h.win32, "\\", { ...e3, nocase: s3 }), this.nocase = s3;
|
|
213023
|
+
for (let t4 = this.cwd; t4; t4 = t4.parent) t4.nocase = this.nocase;
|
|
213024
|
+
}
|
|
213025
|
+
parseRootPath(t3) {
|
|
213026
|
+
return h.win32.parse(t3).root.toUpperCase();
|
|
213027
|
+
}
|
|
213028
|
+
newRoot(t3) {
|
|
213029
|
+
return new F(this.rootPath, 4, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t3 });
|
|
213030
|
+
}
|
|
213031
|
+
isAbsolute(t3) {
|
|
213032
|
+
return t3.startsWith("/") || t3.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(t3);
|
|
213033
|
+
}
|
|
213034
|
+
}
|
|
213035
|
+
e2.PathScurryWin32 = D;
|
|
213036
|
+
class j extends z {
|
|
213037
|
+
sep = "/";
|
|
213038
|
+
constructor(t3 = process.cwd(), e3 = {}) {
|
|
213039
|
+
const { nocase: s3 = false } = e3;
|
|
213040
|
+
super(t3, h.posix, "/", { ...e3, nocase: s3 }), this.nocase = s3;
|
|
213041
|
+
}
|
|
213042
|
+
parseRootPath(t3) {
|
|
213043
|
+
return "/";
|
|
213044
|
+
}
|
|
213045
|
+
newRoot(t3) {
|
|
213046
|
+
return new _(this.rootPath, 4, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t3 });
|
|
213047
|
+
}
|
|
213048
|
+
isAbsolute(t3) {
|
|
213049
|
+
return t3.startsWith("/");
|
|
213050
|
+
}
|
|
213051
|
+
}
|
|
213052
|
+
e2.PathScurryPosix = j;
|
|
213053
|
+
class B extends j {
|
|
213054
|
+
constructor(t3 = process.cwd(), e3 = {}) {
|
|
213055
|
+
const { nocase: s3 = true } = e3;
|
|
213056
|
+
super(t3, { ...e3, nocase: s3 });
|
|
213057
|
+
}
|
|
213058
|
+
}
|
|
213059
|
+
e2.PathScurryDarwin = B, e2.Path = "win32" === process.platform ? F : _, e2.PathScurry = "win32" === process.platform ? D : "darwin" === process.platform ? B : j;
|
|
213060
|
+
} }, e = {};
|
|
213061
|
+
var s = function s2(i2) {
|
|
213062
|
+
var r2 = e[i2];
|
|
213063
|
+
if (void 0 !== r2) return r2.exports;
|
|
213064
|
+
var n3 = e[i2] = { exports: {} };
|
|
213065
|
+
return t[i2].call(n3.exports, n3, n3.exports, s2), n3.exports;
|
|
213066
|
+
}(207), i = exports2;
|
|
213067
|
+
for (var r in s) i[r] = s[r];
|
|
213068
|
+
s.__esModule && Object.defineProperty(i, "__esModule", { value: true });
|
|
213069
|
+
})();
|
|
213070
|
+
}
|
|
213071
|
+
});
|
|
213072
|
+
|
|
209986
213073
|
// node_modules/estree-walker/dist/umd/estree-walker.js
|
|
209987
213074
|
var require_estree_walker = __commonJS({
|
|
209988
213075
|
"node_modules/estree-walker/dist/umd/estree-walker.js"(exports2, module2) {
|
|
@@ -212690,7 +215777,7 @@ var require_dist = __commonJS({
|
|
|
212690
215777
|
var pluginutils = require_cjs();
|
|
212691
215778
|
var getCommonDir = require_commondir();
|
|
212692
215779
|
var fs3 = require("fs");
|
|
212693
|
-
var glob =
|
|
215780
|
+
var glob = require_glob();
|
|
212694
215781
|
var estreeWalker = require_estree_walker();
|
|
212695
215782
|
var MagicString4 = require_magic_string_cjs();
|
|
212696
215783
|
var isReference = require_is_reference();
|
|
@@ -233550,7 +236637,7 @@ module.exports = __toCommonJS(compiler_exports);
|
|
|
233550
236637
|
var import_typescript69 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
233551
236638
|
|
|
233552
236639
|
// src/version.ts
|
|
233553
|
-
var buildId = "
|
|
236640
|
+
var buildId = "1725858117";
|
|
233554
236641
|
var minfyJsId = "terser5.31.1_7";
|
|
233555
236642
|
var optimizeCssId = "autoprefixer10.4.19_postcss8.4.38_7";
|
|
233556
236643
|
var parse5Version = "7.1.2";
|
|
@@ -233558,8 +236645,8 @@ var rollupVersion = "2.56.3";
|
|
|
233558
236645
|
var jqueryVersion = "4.0.0-pre";
|
|
233559
236646
|
var terserVersion = "5.31.1";
|
|
233560
236647
|
var typescriptVersion = "5.5.4";
|
|
233561
|
-
var vermoji = "\u{
|
|
233562
|
-
var version = "4.21.0-dev.
|
|
236648
|
+
var vermoji = "\u{1F416}";
|
|
236649
|
+
var version = "4.21.0-dev.1725858117.8f0a882";
|
|
233563
236650
|
var versions = {
|
|
233564
236651
|
stencil: version,
|
|
233565
236652
|
parse5: parse5Version,
|
|
@@ -262124,6 +265211,17 @@ var createWatchBuild = async (config, compilerCtx) => {
|
|
|
262124
265211
|
`WATCH_BUILD::watchBuild::onBuild filesWritten: ${formatFilesForDebug(buildCtx.filesWritten)}`
|
|
262125
265212
|
);
|
|
262126
265213
|
}
|
|
265214
|
+
Array.from(compilerCtx.moduleMap.keys()).forEach((key) => {
|
|
265215
|
+
if (filesUpdated.has(key) || filesDeleted.has(key)) {
|
|
265216
|
+
const fileExists = compilerCtx.fs.accessSync(key);
|
|
265217
|
+
if (!fileExists) {
|
|
265218
|
+
compilerCtx.moduleMap.delete(key);
|
|
265219
|
+
}
|
|
265220
|
+
}
|
|
265221
|
+
});
|
|
265222
|
+
(/* @__PURE__ */ new Set([...filesUpdated, ...filesAdded])).forEach((filePath) => {
|
|
265223
|
+
compilerCtx.addWatchFile(filePath);
|
|
265224
|
+
});
|
|
262127
265225
|
dirsAdded.clear();
|
|
262128
265226
|
dirsDeleted.clear();
|
|
262129
265227
|
filesAdded.clear();
|