@storybook/cli 0.0.0-pr-31987-sha-64db30c4 → 0.0.0-pr-31819-sha-e4987461
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/dist/_node-chunks/block-dependencies-versions-TXBSEDV2.js +68 -0
- package/dist/_node-chunks/block-experimental-addon-test-CYEHF4QX.js +50 -0
- package/dist/_node-chunks/block-major-version-SNJ4HP4L.js +79 -0
- package/dist/_node-chunks/block-node-version-7CEO7ULJ.js +37 -0
- package/dist/_node-chunks/block-webpack5-frameworks-VYS4HIQ4.js +66 -0
- package/dist/_node-chunks/chunk-DIYAIJOC.js +43 -0
- package/dist/_node-chunks/chunk-HYSPXQWQ.js +1396 -0
- package/dist/_node-chunks/chunk-L4UXEF6T.js +67 -0
- package/dist/_node-chunks/chunk-T5MTMKK3.js +10 -0
- package/dist/_node-chunks/chunk-VQWHITUU.js +4441 -0
- package/dist/_node-chunks/chunk-Z5JDYKZQ.js +1080 -0
- package/dist/_node-chunks/globby-WBCFFKC4.js +37 -0
- package/dist/_node-chunks/p-limit-5WOIREEI.js +79 -0
- package/dist/_node-chunks/run-7VTYTYQY.js +8715 -0
- package/dist/bin/index.js +21 -0
- package/package.json +8 -23
- package/bin/index.cjs +0 -26
- package/dist/bin/index.cjs +0 -294
- package/dist/bin/index.d.ts +0 -2
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -2
|
@@ -0,0 +1,4441 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE from "node:module";
|
|
4
|
+
|
|
5
|
+
const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
|
|
7
|
+
const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
|
|
8
|
+
// ------------------------------------------------------------
|
|
9
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
10
|
+
// ------------------------------------------------------------
|
|
11
|
+
import {
|
|
12
|
+
a as s,
|
|
13
|
+
b as q,
|
|
14
|
+
c as m,
|
|
15
|
+
d as Nt
|
|
16
|
+
} from "./chunk-DIYAIJOC.js";
|
|
17
|
+
|
|
18
|
+
// ../../node_modules/fast-glob/out/utils/array.js
|
|
19
|
+
var Wn = m((Te) => {
|
|
20
|
+
"use strict";
|
|
21
|
+
Object.defineProperty(Te, "__esModule", { value: !0 });
|
|
22
|
+
Te.splitWhen = Te.flatten = void 0;
|
|
23
|
+
function Ra(e) {
|
|
24
|
+
return e.reduce((t, r) => [].concat(t, r), []);
|
|
25
|
+
}
|
|
26
|
+
s(Ra, "flatten");
|
|
27
|
+
Te.flatten = Ra;
|
|
28
|
+
function ba(e, t) {
|
|
29
|
+
let r = [[]], n = 0;
|
|
30
|
+
for (let i of e)
|
|
31
|
+
t(i) ? (n++, r[n] = []) : r[n].push(i);
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
s(ba, "splitWhen");
|
|
35
|
+
Te.splitWhen = ba;
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// ../../node_modules/fast-glob/out/utils/errno.js
|
|
39
|
+
var Un = m((Je) => {
|
|
40
|
+
"use strict";
|
|
41
|
+
Object.defineProperty(Je, "__esModule", { value: !0 });
|
|
42
|
+
Je.isEnoentCodeError = void 0;
|
|
43
|
+
function va(e) {
|
|
44
|
+
return e.code === "ENOENT";
|
|
45
|
+
}
|
|
46
|
+
s(va, "isEnoentCodeError");
|
|
47
|
+
Je.isEnoentCodeError = va;
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// ../../node_modules/fast-glob/out/utils/fs.js
|
|
51
|
+
var Vn = m((et) => {
|
|
52
|
+
"use strict";
|
|
53
|
+
Object.defineProperty(et, "__esModule", { value: !0 });
|
|
54
|
+
et.createDirentFromStats = void 0;
|
|
55
|
+
var qt = class {
|
|
56
|
+
static {
|
|
57
|
+
s(this, "DirentFromStats");
|
|
58
|
+
}
|
|
59
|
+
constructor(t, r) {
|
|
60
|
+
this.name = t, this.isBlockDevice = r.isBlockDevice.bind(r), this.isCharacterDevice = r.isCharacterDevice.bind(r), this.isDirectory = r.isDirectory.bind(r), this.isFIFO = r.isFIFO.bind(r), this.isFile = r.isFile.bind(r), this.isSocket = r.isSocket.bind(r), this.isSymbolicLink = r.isSymbolicLink.bind(r);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
function Pa(e, t) {
|
|
64
|
+
return new qt(e, t);
|
|
65
|
+
}
|
|
66
|
+
s(Pa, "createDirentFromStats");
|
|
67
|
+
et.createDirentFromStats = Pa;
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// ../../node_modules/fast-glob/out/utils/path.js
|
|
71
|
+
var Qn = m((G) => {
|
|
72
|
+
"use strict";
|
|
73
|
+
Object.defineProperty(G, "__esModule", { value: !0 });
|
|
74
|
+
G.convertPosixPathToPattern = G.convertWindowsPathToPattern = G.convertPathToPattern = G.escapePosixPath = G.escapeWindowsPath = G.escape = G.removeLeadingDotSegment = G.makeAbsolute = G.unixify = void 0;
|
|
75
|
+
var xa = q("os"), Ta = q("path"), Kn = xa.platform() === "win32", Ca = 2, wa = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g, Oa = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g, La = /^\\\\([.?])/, ka = /\\(?![!()+@[\]{}])/g;
|
|
76
|
+
function Ia(e) {
|
|
77
|
+
return e.replace(/\\/g, "/");
|
|
78
|
+
}
|
|
79
|
+
s(Ia, "unixify");
|
|
80
|
+
G.unixify = Ia;
|
|
81
|
+
function Ha(e, t) {
|
|
82
|
+
return Ta.resolve(e, t);
|
|
83
|
+
}
|
|
84
|
+
s(Ha, "makeAbsolute");
|
|
85
|
+
G.makeAbsolute = Ha;
|
|
86
|
+
function Na(e) {
|
|
87
|
+
if (e.charAt(0) === ".") {
|
|
88
|
+
let t = e.charAt(1);
|
|
89
|
+
if (t === "/" || t === "\\")
|
|
90
|
+
return e.slice(Ca);
|
|
91
|
+
}
|
|
92
|
+
return e;
|
|
93
|
+
}
|
|
94
|
+
s(Na, "removeLeadingDotSegment");
|
|
95
|
+
G.removeLeadingDotSegment = Na;
|
|
96
|
+
G.escape = Kn ? Bt : Gt;
|
|
97
|
+
function Bt(e) {
|
|
98
|
+
return e.replace(Oa, "\\$2");
|
|
99
|
+
}
|
|
100
|
+
s(Bt, "escapeWindowsPath");
|
|
101
|
+
G.escapeWindowsPath = Bt;
|
|
102
|
+
function Gt(e) {
|
|
103
|
+
return e.replace(wa, "\\$2");
|
|
104
|
+
}
|
|
105
|
+
s(Gt, "escapePosixPath");
|
|
106
|
+
G.escapePosixPath = Gt;
|
|
107
|
+
G.convertPathToPattern = Kn ? Xn : Yn;
|
|
108
|
+
function Xn(e) {
|
|
109
|
+
return Bt(e).replace(La, "//$1").replace(ka, "/");
|
|
110
|
+
}
|
|
111
|
+
s(Xn, "convertWindowsPathToPattern");
|
|
112
|
+
G.convertWindowsPathToPattern = Xn;
|
|
113
|
+
function Yn(e) {
|
|
114
|
+
return Gt(e);
|
|
115
|
+
}
|
|
116
|
+
s(Yn, "convertPosixPathToPattern");
|
|
117
|
+
G.convertPosixPathToPattern = Yn;
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// ../../node_modules/is-extglob/index.js
|
|
121
|
+
var Zn = m((Pp, zn) => {
|
|
122
|
+
zn.exports = /* @__PURE__ */ s(function(t) {
|
|
123
|
+
if (typeof t != "string" || t === "")
|
|
124
|
+
return !1;
|
|
125
|
+
for (var r; r = /(\\).|([@?!+*]\(.*\))/g.exec(t); ) {
|
|
126
|
+
if (r[2]) return !0;
|
|
127
|
+
t = t.slice(r.index + r[0].length);
|
|
128
|
+
}
|
|
129
|
+
return !1;
|
|
130
|
+
}, "isExtglob");
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
// ../../node_modules/is-glob/index.js
|
|
134
|
+
var ts = m((Tp, es) => {
|
|
135
|
+
var $a = Zn(), Jn = { "{": "}", "(": ")", "[": "]" }, Ma = /* @__PURE__ */ s(function(e) {
|
|
136
|
+
if (e[0] === "!")
|
|
137
|
+
return !0;
|
|
138
|
+
for (var t = 0, r = -2, n = -2, i = -2, o = -2, a = -2; t < e.length; ) {
|
|
139
|
+
if (e[t] === "*" || e[t + 1] === "?" && /[\].+)]/.test(e[t]) || n !== -1 && e[t] === "[" && e[t + 1] !== "]" && (n < t && (n = e.indexOf("]", t)), n > t && (a === -1 || a > n || (a = e.indexOf("\\", t), a === -1 || a > n))) || i !== -1 && e[t] === "{" && e[t + 1] !== "}" && (i = e.indexOf("}", t), i > t && (a = e.indexOf("\\", t), a === -1 || a > i)) || o !== -1 && e[t] === "(" && e[t + 1] === "?" && /[:!=]/.test(e[t + 2]) && e[t + 3] !== ")" && (o = e.indexOf(")", t), o > t && (a = e.indexOf("\\", t), a === -1 || a > o)) || r !== -1 && e[t] === "(" && e[t + 1] !== "|" && (r < t && (r = e.indexOf("|", t)), r !== -1 && e[r + 1] !== ")" && (o = e.indexOf(")", r), o > r && (a = e.indexOf("\\", r), a === -1 || a > o))))
|
|
140
|
+
return !0;
|
|
141
|
+
if (e[t] === "\\") {
|
|
142
|
+
var u = e[t + 1];
|
|
143
|
+
t += 2;
|
|
144
|
+
var c = Jn[u];
|
|
145
|
+
if (c) {
|
|
146
|
+
var d = e.indexOf(c, t);
|
|
147
|
+
d !== -1 && (t = d + 1);
|
|
148
|
+
}
|
|
149
|
+
if (e[t] === "!")
|
|
150
|
+
return !0;
|
|
151
|
+
} else
|
|
152
|
+
t++;
|
|
153
|
+
}
|
|
154
|
+
return !1;
|
|
155
|
+
}, "strictCheck"), Da = /* @__PURE__ */ s(function(e) {
|
|
156
|
+
if (e[0] === "!")
|
|
157
|
+
return !0;
|
|
158
|
+
for (var t = 0; t < e.length; ) {
|
|
159
|
+
if (/[*?{}()[\]]/.test(e[t]))
|
|
160
|
+
return !0;
|
|
161
|
+
if (e[t] === "\\") {
|
|
162
|
+
var r = e[t + 1];
|
|
163
|
+
t += 2;
|
|
164
|
+
var n = Jn[r];
|
|
165
|
+
if (n) {
|
|
166
|
+
var i = e.indexOf(n, t);
|
|
167
|
+
i !== -1 && (t = i + 1);
|
|
168
|
+
}
|
|
169
|
+
if (e[t] === "!")
|
|
170
|
+
return !0;
|
|
171
|
+
} else
|
|
172
|
+
t++;
|
|
173
|
+
}
|
|
174
|
+
return !1;
|
|
175
|
+
}, "relaxedCheck");
|
|
176
|
+
es.exports = /* @__PURE__ */ s(function(t, r) {
|
|
177
|
+
if (typeof t != "string" || t === "")
|
|
178
|
+
return !1;
|
|
179
|
+
if ($a(t))
|
|
180
|
+
return !0;
|
|
181
|
+
var n = Ma;
|
|
182
|
+
return r && r.strict === !1 && (n = Da), n(t);
|
|
183
|
+
}, "isGlob");
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
// ../../node_modules/fast-glob/node_modules/glob-parent/index.js
|
|
187
|
+
var ns = m((wp, rs) => {
|
|
188
|
+
"use strict";
|
|
189
|
+
var Fa = ts(), qa = q("path").posix.dirname, Ba = q("os").platform() === "win32", jt = "/", Ga = /\\/g, ja = /[\{\[].*[\}\]]$/, Wa = /(^|[^\\])([\{\[]|\([^\)]+$)/, Ua = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
|
|
190
|
+
rs.exports = /* @__PURE__ */ s(function(t, r) {
|
|
191
|
+
var n = Object.assign({ flipBackslashes: !0 }, r);
|
|
192
|
+
n.flipBackslashes && Ba && t.indexOf(jt) < 0 && (t = t.replace(Ga, jt)), ja.test(t) && (t += jt), t += "a";
|
|
193
|
+
do
|
|
194
|
+
t = qa(t);
|
|
195
|
+
while (Fa(t) || Wa.test(t));
|
|
196
|
+
return t.replace(Ua, "$1");
|
|
197
|
+
}, "globParent");
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
// ../../node_modules/braces/lib/utils.js
|
|
201
|
+
var tt = m((te) => {
|
|
202
|
+
"use strict";
|
|
203
|
+
te.isInteger = (e) => typeof e == "number" ? Number.isInteger(e) : typeof e == "string" && e.trim() !== "" ? Number.isInteger(Number(e)) : !1;
|
|
204
|
+
te.find = (e, t) => e.nodes.find((r) => r.type === t);
|
|
205
|
+
te.exceedsLimit = (e, t, r = 1, n) => n === !1 || !te.isInteger(e) || !te.isInteger(t) ? !1 : (Number(t) - Number(e)) / Number(r) >= n;
|
|
206
|
+
te.escapeNode = (e, t = 0, r) => {
|
|
207
|
+
let n = e.nodes[t];
|
|
208
|
+
n && (r && n.type === r || n.type === "open" || n.type === "close") && n.escaped !== !0 && (n.value = "\\" + n.value, n.escaped = !0);
|
|
209
|
+
};
|
|
210
|
+
te.encloseBrace = (e) => e.type !== "brace" ? !1 : e.commas >> 0 + e.ranges >> 0 === 0 ? (e.invalid = !0, !0) : !1;
|
|
211
|
+
te.isInvalidBrace = (e) => e.type !== "brace" ? !1 : e.invalid === !0 || e.dollar ? !0 : e.commas >> 0 + e.ranges >> 0 === 0 || e.open !== !0 || e.close !== !0 ? (e.invalid = !0, !0) : !1;
|
|
212
|
+
te.isOpenOrClose = (e) => e.type === "open" || e.type === "close" ? !0 : e.open === !0 || e.close === !0;
|
|
213
|
+
te.reduce = (e) => e.reduce((t, r) => (r.type === "text" && t.push(r.value), r.type === "range" && (r.type = "text"), t), []);
|
|
214
|
+
te.flatten = (...e) => {
|
|
215
|
+
let t = [], r = /* @__PURE__ */ s((n) => {
|
|
216
|
+
for (let i = 0; i < n.length; i++) {
|
|
217
|
+
let o = n[i];
|
|
218
|
+
if (Array.isArray(o)) {
|
|
219
|
+
r(o);
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
o !== void 0 && t.push(o);
|
|
223
|
+
}
|
|
224
|
+
return t;
|
|
225
|
+
}, "flat");
|
|
226
|
+
return r(e), t;
|
|
227
|
+
};
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
// ../../node_modules/braces/lib/stringify.js
|
|
231
|
+
var rt = m((Ip, is) => {
|
|
232
|
+
"use strict";
|
|
233
|
+
var ss = tt();
|
|
234
|
+
is.exports = (e, t = {}) => {
|
|
235
|
+
let r = /* @__PURE__ */ s((n, i = {}) => {
|
|
236
|
+
let o = t.escapeInvalid && ss.isInvalidBrace(i), a = n.invalid === !0 && t.escapeInvalid === !0, u = "";
|
|
237
|
+
if (n.value)
|
|
238
|
+
return (o || a) && ss.isOpenOrClose(n) ? "\\" + n.value : n.value;
|
|
239
|
+
if (n.value)
|
|
240
|
+
return n.value;
|
|
241
|
+
if (n.nodes)
|
|
242
|
+
for (let c of n.nodes)
|
|
243
|
+
u += r(c);
|
|
244
|
+
return u;
|
|
245
|
+
}, "stringify");
|
|
246
|
+
return r(e);
|
|
247
|
+
};
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
// ../../node_modules/is-number/index.js
|
|
251
|
+
var as = m((Np, os) => {
|
|
252
|
+
"use strict";
|
|
253
|
+
os.exports = function(e) {
|
|
254
|
+
return typeof e == "number" ? e - e === 0 : typeof e == "string" && e.trim() !== "" ? Number.isFinite ? Number.isFinite(+e) : isFinite(+e) : !1;
|
|
255
|
+
};
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
// ../../node_modules/to-regex-range/index.js
|
|
259
|
+
var gs = m(($p, _s) => {
|
|
260
|
+
"use strict";
|
|
261
|
+
var us = as(), ve = /* @__PURE__ */ s((e, t, r) => {
|
|
262
|
+
if (us(e) === !1)
|
|
263
|
+
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
264
|
+
if (t === void 0 || e === t)
|
|
265
|
+
return String(e);
|
|
266
|
+
if (us(t) === !1)
|
|
267
|
+
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
268
|
+
let n = { relaxZeros: !0, ...r };
|
|
269
|
+
typeof n.strictZeros == "boolean" && (n.relaxZeros = n.strictZeros === !1);
|
|
270
|
+
let i = String(n.relaxZeros), o = String(n.shorthand), a = String(n.capture), u = String(n.wrap), c = e + ":" + t + "=" + i + o + a + u;
|
|
271
|
+
if (ve.cache.hasOwnProperty(c))
|
|
272
|
+
return ve.cache[c].result;
|
|
273
|
+
let d = Math.min(e, t), l = Math.max(e, t);
|
|
274
|
+
if (Math.abs(d - l) === 1) {
|
|
275
|
+
let E = e + "|" + t;
|
|
276
|
+
return n.capture ? `(${E})` : n.wrap === !1 ? E : `(?:${E})`;
|
|
277
|
+
}
|
|
278
|
+
let g = ds(e) || ds(t), f = { min: e, max: t, a: d, b: l }, v = [], y = [];
|
|
279
|
+
if (g && (f.isPadded = g, f.maxLen = String(f.max).length), d < 0) {
|
|
280
|
+
let E = l < 0 ? Math.abs(l) : 1;
|
|
281
|
+
y = cs(E, Math.abs(d), f, n), d = f.a = 0;
|
|
282
|
+
}
|
|
283
|
+
return l >= 0 && (v = cs(d, l, f, n)), f.negatives = y, f.positives = v, f.result = Va(y, v, n), n.capture === !0 ? f.result = `(${f.result})` : n.wrap !== !1 && v.length + y.length > 1 && (f.result = `(?:${f.result})`), ve.cache[c] = f, f.result;
|
|
284
|
+
}, "toRegexRange");
|
|
285
|
+
function Va(e, t, r) {
|
|
286
|
+
let n = Wt(e, t, "-", !1, r) || [], i = Wt(t, e, "", !1, r) || [], o = Wt(e, t, "-?", !0, r) || [];
|
|
287
|
+
return n.concat(o).concat(i).join("|");
|
|
288
|
+
}
|
|
289
|
+
s(Va, "collatePatterns");
|
|
290
|
+
function Ka(e, t) {
|
|
291
|
+
let r = 1, n = 1, i = fs(e, r), o = /* @__PURE__ */ new Set([t]);
|
|
292
|
+
for (; e <= i && i <= t; )
|
|
293
|
+
o.add(i), r += 1, i = fs(e, r);
|
|
294
|
+
for (i = ps(t + 1, n) - 1; e < i && i <= t; )
|
|
295
|
+
o.add(i), n += 1, i = ps(t + 1, n) - 1;
|
|
296
|
+
return o = [...o], o.sort(Qa), o;
|
|
297
|
+
}
|
|
298
|
+
s(Ka, "splitToRanges");
|
|
299
|
+
function Xa(e, t, r) {
|
|
300
|
+
if (e === t)
|
|
301
|
+
return { pattern: e, count: [], digits: 0 };
|
|
302
|
+
let n = Ya(e, t), i = n.length, o = "", a = 0;
|
|
303
|
+
for (let u = 0; u < i; u++) {
|
|
304
|
+
let [c, d] = n[u];
|
|
305
|
+
c === d ? o += c : c !== "0" || d !== "9" ? o += za(c, d, r) : a++;
|
|
306
|
+
}
|
|
307
|
+
return a && (o += r.shorthand === !0 ? "\\d" : "[0-9]"), { pattern: o, count: [a], digits: i };
|
|
308
|
+
}
|
|
309
|
+
s(Xa, "rangeToPattern");
|
|
310
|
+
function cs(e, t, r, n) {
|
|
311
|
+
let i = Ka(e, t), o = [], a = e, u;
|
|
312
|
+
for (let c = 0; c < i.length; c++) {
|
|
313
|
+
let d = i[c], l = Xa(String(a), String(d), n), g = "";
|
|
314
|
+
if (!r.isPadded && u && u.pattern === l.pattern) {
|
|
315
|
+
u.count.length > 1 && u.count.pop(), u.count.push(l.count[0]), u.string = u.pattern + hs(u.count), a = d + 1;
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
r.isPadded && (g = Za(d, r, n)), l.string = g + l.pattern + hs(l.count), o.push(l), a = d + 1, u = l;
|
|
319
|
+
}
|
|
320
|
+
return o;
|
|
321
|
+
}
|
|
322
|
+
s(cs, "splitToPatterns");
|
|
323
|
+
function Wt(e, t, r, n, i) {
|
|
324
|
+
let o = [];
|
|
325
|
+
for (let a of e) {
|
|
326
|
+
let { string: u } = a;
|
|
327
|
+
!n && !ls(t, "string", u) && o.push(r + u), n && ls(t, "string", u) && o.push(r + u);
|
|
328
|
+
}
|
|
329
|
+
return o;
|
|
330
|
+
}
|
|
331
|
+
s(Wt, "filterPatterns");
|
|
332
|
+
function Ya(e, t) {
|
|
333
|
+
let r = [];
|
|
334
|
+
for (let n = 0; n < e.length; n++) r.push([e[n], t[n]]);
|
|
335
|
+
return r;
|
|
336
|
+
}
|
|
337
|
+
s(Ya, "zip");
|
|
338
|
+
function Qa(e, t) {
|
|
339
|
+
return e > t ? 1 : t > e ? -1 : 0;
|
|
340
|
+
}
|
|
341
|
+
s(Qa, "compare");
|
|
342
|
+
function ls(e, t, r) {
|
|
343
|
+
return e.some((n) => n[t] === r);
|
|
344
|
+
}
|
|
345
|
+
s(ls, "contains");
|
|
346
|
+
function fs(e, t) {
|
|
347
|
+
return Number(String(e).slice(0, -t) + "9".repeat(t));
|
|
348
|
+
}
|
|
349
|
+
s(fs, "countNines");
|
|
350
|
+
function ps(e, t) {
|
|
351
|
+
return e - e % Math.pow(10, t);
|
|
352
|
+
}
|
|
353
|
+
s(ps, "countZeros");
|
|
354
|
+
function hs(e) {
|
|
355
|
+
let [t = 0, r = ""] = e;
|
|
356
|
+
return r || t > 1 ? `{${t + (r ? "," + r : "")}}` : "";
|
|
357
|
+
}
|
|
358
|
+
s(hs, "toQuantifier");
|
|
359
|
+
function za(e, t, r) {
|
|
360
|
+
return `[${e}${t - e === 1 ? "" : "-"}${t}]`;
|
|
361
|
+
}
|
|
362
|
+
s(za, "toCharacterClass");
|
|
363
|
+
function ds(e) {
|
|
364
|
+
return /^-?(0+)\d/.test(e);
|
|
365
|
+
}
|
|
366
|
+
s(ds, "hasPadding");
|
|
367
|
+
function Za(e, t, r) {
|
|
368
|
+
if (!t.isPadded)
|
|
369
|
+
return e;
|
|
370
|
+
let n = Math.abs(t.maxLen - String(e).length), i = r.relaxZeros !== !1;
|
|
371
|
+
switch (n) {
|
|
372
|
+
case 0:
|
|
373
|
+
return "";
|
|
374
|
+
case 1:
|
|
375
|
+
return i ? "0?" : "0";
|
|
376
|
+
case 2:
|
|
377
|
+
return i ? "0{0,2}" : "00";
|
|
378
|
+
default:
|
|
379
|
+
return i ? `0{0,${n}}` : `0{${n}}`;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
s(Za, "padZeros");
|
|
383
|
+
ve.cache = {};
|
|
384
|
+
ve.clearCache = () => ve.cache = {};
|
|
385
|
+
_s.exports = ve;
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
// ../../node_modules/fill-range/index.js
|
|
389
|
+
var Kt = m((Dp, bs) => {
|
|
390
|
+
"use strict";
|
|
391
|
+
var Ja = q("util"), Ss = gs(), ys = /* @__PURE__ */ s((e) => e !== null && typeof e == "object" && !Array.isArray(e), "isObject"), eu = /* @__PURE__ */ s((e) => (t) => e === !0 ? Number(t) : String(t), "transform"), Ut = /* @__PURE__ */ s((e) => typeof e == "number" || typeof e == "string" && e !== "", "isValidValue"), Fe = /* @__PURE__ */ s((e) => Number.isInteger(+e), "isNumber"), Vt = /* @__PURE__ */ s((e) => {
|
|
392
|
+
let t = `${e}`, r = -1;
|
|
393
|
+
if (t[0] === "-" && (t = t.slice(1)), t === "0") return !1;
|
|
394
|
+
for (; t[++r] === "0"; ) ;
|
|
395
|
+
return r > 0;
|
|
396
|
+
}, "zeros"), tu = /* @__PURE__ */ s((e, t, r) => typeof e == "string" || typeof t == "string" ? !0 : r.stringify === !0, "stringify"), ru = /* @__PURE__ */ s((e, t, r) => {
|
|
397
|
+
if (t > 0) {
|
|
398
|
+
let n = e[0] === "-" ? "-" : "";
|
|
399
|
+
n && (e = e.slice(1)), e = n + e.padStart(n ? t - 1 : t, "0");
|
|
400
|
+
}
|
|
401
|
+
return r === !1 ? String(e) : e;
|
|
402
|
+
}, "pad"), st = /* @__PURE__ */ s((e, t) => {
|
|
403
|
+
let r = e[0] === "-" ? "-" : "";
|
|
404
|
+
for (r && (e = e.slice(1), t--); e.length < t; ) e = "0" + e;
|
|
405
|
+
return r ? "-" + e : e;
|
|
406
|
+
}, "toMaxLen"), nu = /* @__PURE__ */ s((e, t, r) => {
|
|
407
|
+
e.negatives.sort((u, c) => u < c ? -1 : u > c ? 1 : 0), e.positives.sort((u, c) => u < c ? -1 : u > c ? 1 : 0);
|
|
408
|
+
let n = t.capture ? "" : "?:", i = "", o = "", a;
|
|
409
|
+
return e.positives.length && (i = e.positives.map((u) => st(String(u), r)).join("|")), e.negatives.length && (o = `-(${n}${e.negatives.map((u) => st(String(u), r)).join("|")})`), i && o ? a = `${i}|${o}` : a = i || o, t.wrap ? `(${n}${a})` : a;
|
|
410
|
+
}, "toSequence"), ms = /* @__PURE__ */ s((e, t, r, n) => {
|
|
411
|
+
if (r)
|
|
412
|
+
return Ss(e, t, { wrap: !1, ...n });
|
|
413
|
+
let i = String.fromCharCode(e);
|
|
414
|
+
if (e === t) return i;
|
|
415
|
+
let o = String.fromCharCode(t);
|
|
416
|
+
return `[${i}-${o}]`;
|
|
417
|
+
}, "toRange"), Es = /* @__PURE__ */ s((e, t, r) => {
|
|
418
|
+
if (Array.isArray(e)) {
|
|
419
|
+
let n = r.wrap === !0, i = r.capture ? "" : "?:";
|
|
420
|
+
return n ? `(${i}${e.join("|")})` : e.join("|");
|
|
421
|
+
}
|
|
422
|
+
return Ss(e, t, r);
|
|
423
|
+
}, "toRegex"), As = /* @__PURE__ */ s((...e) => new RangeError("Invalid range arguments: " + Ja.inspect(...e)), "rangeError"), Rs = /* @__PURE__ */ s((e, t, r) => {
|
|
424
|
+
if (r.strictRanges === !0) throw As([e, t]);
|
|
425
|
+
return [];
|
|
426
|
+
}, "invalidRange"), su = /* @__PURE__ */ s((e, t) => {
|
|
427
|
+
if (t.strictRanges === !0)
|
|
428
|
+
throw new TypeError(`Expected step "${e}" to be a number`);
|
|
429
|
+
return [];
|
|
430
|
+
}, "invalidStep"), iu = /* @__PURE__ */ s((e, t, r = 1, n = {}) => {
|
|
431
|
+
let i = Number(e), o = Number(t);
|
|
432
|
+
if (!Number.isInteger(i) || !Number.isInteger(o)) {
|
|
433
|
+
if (n.strictRanges === !0) throw As([e, t]);
|
|
434
|
+
return [];
|
|
435
|
+
}
|
|
436
|
+
i === 0 && (i = 0), o === 0 && (o = 0);
|
|
437
|
+
let a = i > o, u = String(e), c = String(t), d = String(r);
|
|
438
|
+
r = Math.max(Math.abs(r), 1);
|
|
439
|
+
let l = Vt(u) || Vt(c) || Vt(d), g = l ? Math.max(u.length, c.length, d.length) : 0, f = l === !1 && tu(e, t, n) === !1, v = n.transform || eu(f);
|
|
440
|
+
if (n.toRegex && r === 1)
|
|
441
|
+
return ms(st(e, g), st(t, g), !0, n);
|
|
442
|
+
let y = { negatives: [], positives: [] }, E = /* @__PURE__ */ s((U) => y[U < 0 ? "negatives" : "positives"].push(Math.abs(U)), "push"), O = [], L = 0;
|
|
443
|
+
for (; a ? i >= o : i <= o; )
|
|
444
|
+
n.toRegex === !0 && r > 1 ? E(i) : O.push(ru(v(i, L), g, f)), i = a ? i - r : i + r, L++;
|
|
445
|
+
return n.toRegex === !0 ? r > 1 ? nu(y, n, g) : Es(O, null, { wrap: !1, ...n }) : O;
|
|
446
|
+
}, "fillNumbers"), ou = /* @__PURE__ */ s((e, t, r = 1, n = {}) => {
|
|
447
|
+
if (!Fe(e) && e.length > 1 || !Fe(t) && t.length > 1)
|
|
448
|
+
return Rs(e, t, n);
|
|
449
|
+
let i = n.transform || ((f) => String.fromCharCode(f)), o = `${e}`.charCodeAt(0), a = `${t}`.charCodeAt(0), u = o > a, c = Math.min(o, a), d = Math.max(o, a);
|
|
450
|
+
if (n.toRegex && r === 1)
|
|
451
|
+
return ms(c, d, !1, n);
|
|
452
|
+
let l = [], g = 0;
|
|
453
|
+
for (; u ? o >= a : o <= a; )
|
|
454
|
+
l.push(i(o, g)), o = u ? o - r : o + r, g++;
|
|
455
|
+
return n.toRegex === !0 ? Es(l, null, { wrap: !1, options: n }) : l;
|
|
456
|
+
}, "fillLetters"), nt = /* @__PURE__ */ s((e, t, r, n = {}) => {
|
|
457
|
+
if (t == null && Ut(e))
|
|
458
|
+
return [e];
|
|
459
|
+
if (!Ut(e) || !Ut(t))
|
|
460
|
+
return Rs(e, t, n);
|
|
461
|
+
if (typeof r == "function")
|
|
462
|
+
return nt(e, t, 1, { transform: r });
|
|
463
|
+
if (ys(r))
|
|
464
|
+
return nt(e, t, 0, r);
|
|
465
|
+
let i = { ...n };
|
|
466
|
+
return i.capture === !0 && (i.wrap = !0), r = r || i.step || 1, Fe(r) ? Fe(e) && Fe(t) ? iu(e, t, r, i) : ou(e, t, Math.max(Math.abs(r), 1), i) : r != null && !ys(r) ? su(r, i) : nt(e, t, 1, r);
|
|
467
|
+
}, "fill");
|
|
468
|
+
bs.exports = nt;
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
// ../../node_modules/braces/lib/compile.js
|
|
472
|
+
var xs = m((qp, Ps) => {
|
|
473
|
+
"use strict";
|
|
474
|
+
var au = Kt(), vs = tt(), uu = /* @__PURE__ */ s((e, t = {}) => {
|
|
475
|
+
let r = /* @__PURE__ */ s((n, i = {}) => {
|
|
476
|
+
let o = vs.isInvalidBrace(i), a = n.invalid === !0 && t.escapeInvalid === !0, u = o === !0 || a === !0, c = t.escapeInvalid === !0 ? "\\" : "", d = "";
|
|
477
|
+
if (n.isOpen === !0)
|
|
478
|
+
return c + n.value;
|
|
479
|
+
if (n.isClose === !0)
|
|
480
|
+
return console.log("node.isClose", c, n.value), c + n.value;
|
|
481
|
+
if (n.type === "open")
|
|
482
|
+
return u ? c + n.value : "(";
|
|
483
|
+
if (n.type === "close")
|
|
484
|
+
return u ? c + n.value : ")";
|
|
485
|
+
if (n.type === "comma")
|
|
486
|
+
return n.prev.type === "comma" ? "" : u ? n.value : "|";
|
|
487
|
+
if (n.value)
|
|
488
|
+
return n.value;
|
|
489
|
+
if (n.nodes && n.ranges > 0) {
|
|
490
|
+
let l = vs.reduce(n.nodes), g = au(...l, { ...t, wrap: !1, toRegex: !0, strictZeros: !0 });
|
|
491
|
+
if (g.length !== 0)
|
|
492
|
+
return l.length > 1 && g.length > 1 ? `(${g})` : g;
|
|
493
|
+
}
|
|
494
|
+
if (n.nodes)
|
|
495
|
+
for (let l of n.nodes)
|
|
496
|
+
d += r(l, n);
|
|
497
|
+
return d;
|
|
498
|
+
}, "walk");
|
|
499
|
+
return r(e);
|
|
500
|
+
}, "compile");
|
|
501
|
+
Ps.exports = uu;
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
// ../../node_modules/braces/lib/expand.js
|
|
505
|
+
var ws = m((Gp, Cs) => {
|
|
506
|
+
"use strict";
|
|
507
|
+
var cu = Kt(), Ts = rt(), Ce = tt(), Pe = /* @__PURE__ */ s((e = "", t = "", r = !1) => {
|
|
508
|
+
let n = [];
|
|
509
|
+
if (e = [].concat(e), t = [].concat(t), !t.length) return e;
|
|
510
|
+
if (!e.length)
|
|
511
|
+
return r ? Ce.flatten(t).map((i) => `{${i}}`) : t;
|
|
512
|
+
for (let i of e)
|
|
513
|
+
if (Array.isArray(i))
|
|
514
|
+
for (let o of i)
|
|
515
|
+
n.push(Pe(o, t, r));
|
|
516
|
+
else
|
|
517
|
+
for (let o of t)
|
|
518
|
+
r === !0 && typeof o == "string" && (o = `{${o}}`), n.push(Array.isArray(o) ? Pe(i, o, r) : i + o);
|
|
519
|
+
return Ce.flatten(n);
|
|
520
|
+
}, "append"), lu = /* @__PURE__ */ s((e, t = {}) => {
|
|
521
|
+
let r = t.rangeLimit === void 0 ? 1e3 : t.rangeLimit, n = /* @__PURE__ */ s((i, o = {}) => {
|
|
522
|
+
i.queue = [];
|
|
523
|
+
let a = o, u = o.queue;
|
|
524
|
+
for (; a.type !== "brace" && a.type !== "root" && a.parent; )
|
|
525
|
+
a = a.parent, u = a.queue;
|
|
526
|
+
if (i.invalid || i.dollar) {
|
|
527
|
+
u.push(Pe(u.pop(), Ts(i, t)));
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
if (i.type === "brace" && i.invalid !== !0 && i.nodes.length === 2) {
|
|
531
|
+
u.push(Pe(u.pop(), ["{}"]));
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
if (i.nodes && i.ranges > 0) {
|
|
535
|
+
let g = Ce.reduce(i.nodes);
|
|
536
|
+
if (Ce.exceedsLimit(...g, t.step, r))
|
|
537
|
+
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
538
|
+
let f = cu(...g, t);
|
|
539
|
+
f.length === 0 && (f = Ts(i, t)), u.push(Pe(u.pop(), f)), i.nodes = [];
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
let c = Ce.encloseBrace(i), d = i.queue, l = i;
|
|
543
|
+
for (; l.type !== "brace" && l.type !== "root" && l.parent; )
|
|
544
|
+
l = l.parent, d = l.queue;
|
|
545
|
+
for (let g = 0; g < i.nodes.length; g++) {
|
|
546
|
+
let f = i.nodes[g];
|
|
547
|
+
if (f.type === "comma" && i.type === "brace") {
|
|
548
|
+
g === 1 && d.push(""), d.push("");
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
if (f.type === "close") {
|
|
552
|
+
u.push(Pe(u.pop(), d, c));
|
|
553
|
+
continue;
|
|
554
|
+
}
|
|
555
|
+
if (f.value && f.type !== "open") {
|
|
556
|
+
d.push(Pe(d.pop(), f.value));
|
|
557
|
+
continue;
|
|
558
|
+
}
|
|
559
|
+
f.nodes && n(f, i);
|
|
560
|
+
}
|
|
561
|
+
return d;
|
|
562
|
+
}, "walk");
|
|
563
|
+
return Ce.flatten(n(e));
|
|
564
|
+
}, "expand");
|
|
565
|
+
Cs.exports = lu;
|
|
566
|
+
});
|
|
567
|
+
|
|
568
|
+
// ../../node_modules/braces/lib/constants.js
|
|
569
|
+
var Ls = m((Wp, Os) => {
|
|
570
|
+
"use strict";
|
|
571
|
+
Os.exports = {
|
|
572
|
+
MAX_LENGTH: 1e4,
|
|
573
|
+
// Digits
|
|
574
|
+
CHAR_0: "0",
|
|
575
|
+
/* 0 */
|
|
576
|
+
CHAR_9: "9",
|
|
577
|
+
/* 9 */
|
|
578
|
+
// Alphabet chars.
|
|
579
|
+
CHAR_UPPERCASE_A: "A",
|
|
580
|
+
/* A */
|
|
581
|
+
CHAR_LOWERCASE_A: "a",
|
|
582
|
+
/* a */
|
|
583
|
+
CHAR_UPPERCASE_Z: "Z",
|
|
584
|
+
/* Z */
|
|
585
|
+
CHAR_LOWERCASE_Z: "z",
|
|
586
|
+
/* z */
|
|
587
|
+
CHAR_LEFT_PARENTHESES: "(",
|
|
588
|
+
/* ( */
|
|
589
|
+
CHAR_RIGHT_PARENTHESES: ")",
|
|
590
|
+
/* ) */
|
|
591
|
+
CHAR_ASTERISK: "*",
|
|
592
|
+
/* * */
|
|
593
|
+
// Non-alphabetic chars.
|
|
594
|
+
CHAR_AMPERSAND: "&",
|
|
595
|
+
/* & */
|
|
596
|
+
CHAR_AT: "@",
|
|
597
|
+
/* @ */
|
|
598
|
+
CHAR_BACKSLASH: "\\",
|
|
599
|
+
/* \ */
|
|
600
|
+
CHAR_BACKTICK: "`",
|
|
601
|
+
/* ` */
|
|
602
|
+
CHAR_CARRIAGE_RETURN: "\r",
|
|
603
|
+
/* \r */
|
|
604
|
+
CHAR_CIRCUMFLEX_ACCENT: "^",
|
|
605
|
+
/* ^ */
|
|
606
|
+
CHAR_COLON: ":",
|
|
607
|
+
/* : */
|
|
608
|
+
CHAR_COMMA: ",",
|
|
609
|
+
/* , */
|
|
610
|
+
CHAR_DOLLAR: "$",
|
|
611
|
+
/* . */
|
|
612
|
+
CHAR_DOT: ".",
|
|
613
|
+
/* . */
|
|
614
|
+
CHAR_DOUBLE_QUOTE: '"',
|
|
615
|
+
/* " */
|
|
616
|
+
CHAR_EQUAL: "=",
|
|
617
|
+
/* = */
|
|
618
|
+
CHAR_EXCLAMATION_MARK: "!",
|
|
619
|
+
/* ! */
|
|
620
|
+
CHAR_FORM_FEED: "\f",
|
|
621
|
+
/* \f */
|
|
622
|
+
CHAR_FORWARD_SLASH: "/",
|
|
623
|
+
/* / */
|
|
624
|
+
CHAR_HASH: "#",
|
|
625
|
+
/* # */
|
|
626
|
+
CHAR_HYPHEN_MINUS: "-",
|
|
627
|
+
/* - */
|
|
628
|
+
CHAR_LEFT_ANGLE_BRACKET: "<",
|
|
629
|
+
/* < */
|
|
630
|
+
CHAR_LEFT_CURLY_BRACE: "{",
|
|
631
|
+
/* { */
|
|
632
|
+
CHAR_LEFT_SQUARE_BRACKET: "[",
|
|
633
|
+
/* [ */
|
|
634
|
+
CHAR_LINE_FEED: `
|
|
635
|
+
`,
|
|
636
|
+
/* \n */
|
|
637
|
+
CHAR_NO_BREAK_SPACE: "\xA0",
|
|
638
|
+
/* \u00A0 */
|
|
639
|
+
CHAR_PERCENT: "%",
|
|
640
|
+
/* % */
|
|
641
|
+
CHAR_PLUS: "+",
|
|
642
|
+
/* + */
|
|
643
|
+
CHAR_QUESTION_MARK: "?",
|
|
644
|
+
/* ? */
|
|
645
|
+
CHAR_RIGHT_ANGLE_BRACKET: ">",
|
|
646
|
+
/* > */
|
|
647
|
+
CHAR_RIGHT_CURLY_BRACE: "}",
|
|
648
|
+
/* } */
|
|
649
|
+
CHAR_RIGHT_SQUARE_BRACKET: "]",
|
|
650
|
+
/* ] */
|
|
651
|
+
CHAR_SEMICOLON: ";",
|
|
652
|
+
/* ; */
|
|
653
|
+
CHAR_SINGLE_QUOTE: "'",
|
|
654
|
+
/* ' */
|
|
655
|
+
CHAR_SPACE: " ",
|
|
656
|
+
/* */
|
|
657
|
+
CHAR_TAB: " ",
|
|
658
|
+
/* \t */
|
|
659
|
+
CHAR_UNDERSCORE: "_",
|
|
660
|
+
/* _ */
|
|
661
|
+
CHAR_VERTICAL_LINE: "|",
|
|
662
|
+
/* | */
|
|
663
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
|
|
664
|
+
/* \uFEFF */
|
|
665
|
+
};
|
|
666
|
+
});
|
|
667
|
+
|
|
668
|
+
// ../../node_modules/braces/lib/parse.js
|
|
669
|
+
var $s = m((Up, Ns) => {
|
|
670
|
+
"use strict";
|
|
671
|
+
var fu = rt(), {
|
|
672
|
+
MAX_LENGTH: ks,
|
|
673
|
+
CHAR_BACKSLASH: Xt,
|
|
674
|
+
/* \ */
|
|
675
|
+
CHAR_BACKTICK: pu,
|
|
676
|
+
/* ` */
|
|
677
|
+
CHAR_COMMA: hu,
|
|
678
|
+
/* , */
|
|
679
|
+
CHAR_DOT: du,
|
|
680
|
+
/* . */
|
|
681
|
+
CHAR_LEFT_PARENTHESES: _u,
|
|
682
|
+
/* ( */
|
|
683
|
+
CHAR_RIGHT_PARENTHESES: gu,
|
|
684
|
+
/* ) */
|
|
685
|
+
CHAR_LEFT_CURLY_BRACE: yu,
|
|
686
|
+
/* { */
|
|
687
|
+
CHAR_RIGHT_CURLY_BRACE: Su,
|
|
688
|
+
/* } */
|
|
689
|
+
CHAR_LEFT_SQUARE_BRACKET: Is,
|
|
690
|
+
/* [ */
|
|
691
|
+
CHAR_RIGHT_SQUARE_BRACKET: Hs,
|
|
692
|
+
/* ] */
|
|
693
|
+
CHAR_DOUBLE_QUOTE: mu,
|
|
694
|
+
/* " */
|
|
695
|
+
CHAR_SINGLE_QUOTE: Eu,
|
|
696
|
+
/* ' */
|
|
697
|
+
CHAR_NO_BREAK_SPACE: Au,
|
|
698
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: Ru
|
|
699
|
+
} = Ls(), bu = /* @__PURE__ */ s((e, t = {}) => {
|
|
700
|
+
if (typeof e != "string")
|
|
701
|
+
throw new TypeError("Expected a string");
|
|
702
|
+
let r = t || {}, n = typeof r.maxLength == "number" ? Math.min(ks, r.maxLength) : ks;
|
|
703
|
+
if (e.length > n)
|
|
704
|
+
throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);
|
|
705
|
+
let i = { type: "root", input: e, nodes: [] }, o = [i], a = i, u = i, c = 0, d = e.length, l = 0, g = 0, f, v = /* @__PURE__ */ s(() => e[l++], "advance"), y = /* @__PURE__ */ s((E) => {
|
|
706
|
+
if (E.type === "text" && u.type === "dot" && (u.type = "text"), u && u.type === "text" && E.type === "text") {
|
|
707
|
+
u.value += E.value;
|
|
708
|
+
return;
|
|
709
|
+
}
|
|
710
|
+
return a.nodes.push(E), E.parent = a, E.prev = u, u = E, E;
|
|
711
|
+
}, "push");
|
|
712
|
+
for (y({ type: "bos" }); l < d; )
|
|
713
|
+
if (a = o[o.length - 1], f = v(), !(f === Ru || f === Au)) {
|
|
714
|
+
if (f === Xt) {
|
|
715
|
+
y({ type: "text", value: (t.keepEscaping ? f : "") + v() });
|
|
716
|
+
continue;
|
|
717
|
+
}
|
|
718
|
+
if (f === Hs) {
|
|
719
|
+
y({ type: "text", value: "\\" + f });
|
|
720
|
+
continue;
|
|
721
|
+
}
|
|
722
|
+
if (f === Is) {
|
|
723
|
+
c++;
|
|
724
|
+
let E;
|
|
725
|
+
for (; l < d && (E = v()); ) {
|
|
726
|
+
if (f += E, E === Is) {
|
|
727
|
+
c++;
|
|
728
|
+
continue;
|
|
729
|
+
}
|
|
730
|
+
if (E === Xt) {
|
|
731
|
+
f += v();
|
|
732
|
+
continue;
|
|
733
|
+
}
|
|
734
|
+
if (E === Hs && (c--, c === 0))
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
y({ type: "text", value: f });
|
|
738
|
+
continue;
|
|
739
|
+
}
|
|
740
|
+
if (f === _u) {
|
|
741
|
+
a = y({ type: "paren", nodes: [] }), o.push(a), y({ type: "text", value: f });
|
|
742
|
+
continue;
|
|
743
|
+
}
|
|
744
|
+
if (f === gu) {
|
|
745
|
+
if (a.type !== "paren") {
|
|
746
|
+
y({ type: "text", value: f });
|
|
747
|
+
continue;
|
|
748
|
+
}
|
|
749
|
+
a = o.pop(), y({ type: "text", value: f }), a = o[o.length - 1];
|
|
750
|
+
continue;
|
|
751
|
+
}
|
|
752
|
+
if (f === mu || f === Eu || f === pu) {
|
|
753
|
+
let E = f, O;
|
|
754
|
+
for (t.keepQuotes !== !0 && (f = ""); l < d && (O = v()); ) {
|
|
755
|
+
if (O === Xt) {
|
|
756
|
+
f += O + v();
|
|
757
|
+
continue;
|
|
758
|
+
}
|
|
759
|
+
if (O === E) {
|
|
760
|
+
t.keepQuotes === !0 && (f += O);
|
|
761
|
+
break;
|
|
762
|
+
}
|
|
763
|
+
f += O;
|
|
764
|
+
}
|
|
765
|
+
y({ type: "text", value: f });
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
if (f === yu) {
|
|
769
|
+
g++;
|
|
770
|
+
let O = {
|
|
771
|
+
type: "brace",
|
|
772
|
+
open: !0,
|
|
773
|
+
close: !1,
|
|
774
|
+
dollar: u.value && u.value.slice(-1) === "$" || a.dollar === !0,
|
|
775
|
+
depth: g,
|
|
776
|
+
commas: 0,
|
|
777
|
+
ranges: 0,
|
|
778
|
+
nodes: []
|
|
779
|
+
};
|
|
780
|
+
a = y(O), o.push(a), y({ type: "open", value: f });
|
|
781
|
+
continue;
|
|
782
|
+
}
|
|
783
|
+
if (f === Su) {
|
|
784
|
+
if (a.type !== "brace") {
|
|
785
|
+
y({ type: "text", value: f });
|
|
786
|
+
continue;
|
|
787
|
+
}
|
|
788
|
+
let E = "close";
|
|
789
|
+
a = o.pop(), a.close = !0, y({ type: E, value: f }), g--, a = o[o.length - 1];
|
|
790
|
+
continue;
|
|
791
|
+
}
|
|
792
|
+
if (f === hu && g > 0) {
|
|
793
|
+
if (a.ranges > 0) {
|
|
794
|
+
a.ranges = 0;
|
|
795
|
+
let E = a.nodes.shift();
|
|
796
|
+
a.nodes = [E, { type: "text", value: fu(a) }];
|
|
797
|
+
}
|
|
798
|
+
y({ type: "comma", value: f }), a.commas++;
|
|
799
|
+
continue;
|
|
800
|
+
}
|
|
801
|
+
if (f === du && g > 0 && a.commas === 0) {
|
|
802
|
+
let E = a.nodes;
|
|
803
|
+
if (g === 0 || E.length === 0) {
|
|
804
|
+
y({ type: "text", value: f });
|
|
805
|
+
continue;
|
|
806
|
+
}
|
|
807
|
+
if (u.type === "dot") {
|
|
808
|
+
if (a.range = [], u.value += f, u.type = "range", a.nodes.length !== 3 && a.nodes.length !== 5) {
|
|
809
|
+
a.invalid = !0, a.ranges = 0, u.type = "text";
|
|
810
|
+
continue;
|
|
811
|
+
}
|
|
812
|
+
a.ranges++, a.args = [];
|
|
813
|
+
continue;
|
|
814
|
+
}
|
|
815
|
+
if (u.type === "range") {
|
|
816
|
+
E.pop();
|
|
817
|
+
let O = E[E.length - 1];
|
|
818
|
+
O.value += u.value + f, u = O, a.ranges--;
|
|
819
|
+
continue;
|
|
820
|
+
}
|
|
821
|
+
y({ type: "dot", value: f });
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
y({ type: "text", value: f });
|
|
825
|
+
}
|
|
826
|
+
do
|
|
827
|
+
if (a = o.pop(), a.type !== "root") {
|
|
828
|
+
a.nodes.forEach((L) => {
|
|
829
|
+
L.nodes || (L.type === "open" && (L.isOpen = !0), L.type === "close" && (L.isClose = !0), L.nodes || (L.type = "text"), L.invalid = !0);
|
|
830
|
+
});
|
|
831
|
+
let E = o[o.length - 1], O = E.nodes.indexOf(a);
|
|
832
|
+
E.nodes.splice(O, 1, ...a.nodes);
|
|
833
|
+
}
|
|
834
|
+
while (o.length > 0);
|
|
835
|
+
return y({ type: "eos" }), i;
|
|
836
|
+
}, "parse");
|
|
837
|
+
Ns.exports = bu;
|
|
838
|
+
});
|
|
839
|
+
|
|
840
|
+
// ../../node_modules/braces/index.js
|
|
841
|
+
var Fs = m((Kp, Ds) => {
|
|
842
|
+
"use strict";
|
|
843
|
+
var Ms = rt(), vu = xs(), Pu = ws(), xu = $s(), Z = /* @__PURE__ */ s((e, t = {}) => {
|
|
844
|
+
let r = [];
|
|
845
|
+
if (Array.isArray(e))
|
|
846
|
+
for (let n of e) {
|
|
847
|
+
let i = Z.create(n, t);
|
|
848
|
+
Array.isArray(i) ? r.push(...i) : r.push(i);
|
|
849
|
+
}
|
|
850
|
+
else
|
|
851
|
+
r = [].concat(Z.create(e, t));
|
|
852
|
+
return t && t.expand === !0 && t.nodupes === !0 && (r = [...new Set(r)]), r;
|
|
853
|
+
}, "braces");
|
|
854
|
+
Z.parse = (e, t = {}) => xu(e, t);
|
|
855
|
+
Z.stringify = (e, t = {}) => Ms(typeof e == "string" ? Z.parse(e, t) : e, t);
|
|
856
|
+
Z.compile = (e, t = {}) => (typeof e == "string" && (e = Z.parse(e, t)), vu(e, t));
|
|
857
|
+
Z.expand = (e, t = {}) => {
|
|
858
|
+
typeof e == "string" && (e = Z.parse(e, t));
|
|
859
|
+
let r = Pu(e, t);
|
|
860
|
+
return t.noempty === !0 && (r = r.filter(Boolean)), t.nodupes === !0 && (r = [...new Set(r)]), r;
|
|
861
|
+
};
|
|
862
|
+
Z.create = (e, t = {}) => e === "" || e.length < 3 ? [e] : t.expand !== !0 ? Z.compile(e, t) : Z.expand(e, t);
|
|
863
|
+
Ds.exports = Z;
|
|
864
|
+
});
|
|
865
|
+
|
|
866
|
+
// ../../node_modules/picomatch/lib/constants.js
|
|
867
|
+
var qe = m((Yp, Ws) => {
|
|
868
|
+
"use strict";
|
|
869
|
+
var Tu = q("path"), ue = "\\\\/", qs = `[^${ue}]`, pe = "\\.", Cu = "\\+", wu = "\\?", it = "\\/", Ou = "(?=.)", Bs = "[^/]", Yt = `(?:${it}|$)`, Gs = `(?:^|${it})`, Qt = `${pe}{1,2}${Yt}`, Lu = `(?!${pe})`, ku = `(?!${Gs}${Qt})`, Iu = `(?!${pe}{0,1}${Yt})`, Hu = `(?!${Qt})`, Nu = `[^.${it}]`, $u = `${Bs}*?`, js = {
|
|
870
|
+
DOT_LITERAL: pe,
|
|
871
|
+
PLUS_LITERAL: Cu,
|
|
872
|
+
QMARK_LITERAL: wu,
|
|
873
|
+
SLASH_LITERAL: it,
|
|
874
|
+
ONE_CHAR: Ou,
|
|
875
|
+
QMARK: Bs,
|
|
876
|
+
END_ANCHOR: Yt,
|
|
877
|
+
DOTS_SLASH: Qt,
|
|
878
|
+
NO_DOT: Lu,
|
|
879
|
+
NO_DOTS: ku,
|
|
880
|
+
NO_DOT_SLASH: Iu,
|
|
881
|
+
NO_DOTS_SLASH: Hu,
|
|
882
|
+
QMARK_NO_DOT: Nu,
|
|
883
|
+
STAR: $u,
|
|
884
|
+
START_ANCHOR: Gs
|
|
885
|
+
}, Mu = {
|
|
886
|
+
...js,
|
|
887
|
+
SLASH_LITERAL: `[${ue}]`,
|
|
888
|
+
QMARK: qs,
|
|
889
|
+
STAR: `${qs}*?`,
|
|
890
|
+
DOTS_SLASH: `${pe}{1,2}(?:[${ue}]|$)`,
|
|
891
|
+
NO_DOT: `(?!${pe})`,
|
|
892
|
+
NO_DOTS: `(?!(?:^|[${ue}])${pe}{1,2}(?:[${ue}]|$))`,
|
|
893
|
+
NO_DOT_SLASH: `(?!${pe}{0,1}(?:[${ue}]|$))`,
|
|
894
|
+
NO_DOTS_SLASH: `(?!${pe}{1,2}(?:[${ue}]|$))`,
|
|
895
|
+
QMARK_NO_DOT: `[^.${ue}]`,
|
|
896
|
+
START_ANCHOR: `(?:^|[${ue}])`,
|
|
897
|
+
END_ANCHOR: `(?:[${ue}]|$)`
|
|
898
|
+
}, Du = {
|
|
899
|
+
alnum: "a-zA-Z0-9",
|
|
900
|
+
alpha: "a-zA-Z",
|
|
901
|
+
ascii: "\\x00-\\x7F",
|
|
902
|
+
blank: " \\t",
|
|
903
|
+
cntrl: "\\x00-\\x1F\\x7F",
|
|
904
|
+
digit: "0-9",
|
|
905
|
+
graph: "\\x21-\\x7E",
|
|
906
|
+
lower: "a-z",
|
|
907
|
+
print: "\\x20-\\x7E ",
|
|
908
|
+
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
909
|
+
space: " \\t\\r\\n\\v\\f",
|
|
910
|
+
upper: "A-Z",
|
|
911
|
+
word: "A-Za-z0-9_",
|
|
912
|
+
xdigit: "A-Fa-f0-9"
|
|
913
|
+
};
|
|
914
|
+
Ws.exports = {
|
|
915
|
+
MAX_LENGTH: 1024 * 64,
|
|
916
|
+
POSIX_REGEX_SOURCE: Du,
|
|
917
|
+
// regular expressions
|
|
918
|
+
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
919
|
+
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
920
|
+
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
921
|
+
REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
|
|
922
|
+
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
|
|
923
|
+
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
924
|
+
// Replace globs with equivalent patterns to reduce parsing time.
|
|
925
|
+
REPLACEMENTS: {
|
|
926
|
+
"***": "*",
|
|
927
|
+
"**/**": "**",
|
|
928
|
+
"**/**/**": "**"
|
|
929
|
+
},
|
|
930
|
+
// Digits
|
|
931
|
+
CHAR_0: 48,
|
|
932
|
+
/* 0 */
|
|
933
|
+
CHAR_9: 57,
|
|
934
|
+
/* 9 */
|
|
935
|
+
// Alphabet chars.
|
|
936
|
+
CHAR_UPPERCASE_A: 65,
|
|
937
|
+
/* A */
|
|
938
|
+
CHAR_LOWERCASE_A: 97,
|
|
939
|
+
/* a */
|
|
940
|
+
CHAR_UPPERCASE_Z: 90,
|
|
941
|
+
/* Z */
|
|
942
|
+
CHAR_LOWERCASE_Z: 122,
|
|
943
|
+
/* z */
|
|
944
|
+
CHAR_LEFT_PARENTHESES: 40,
|
|
945
|
+
/* ( */
|
|
946
|
+
CHAR_RIGHT_PARENTHESES: 41,
|
|
947
|
+
/* ) */
|
|
948
|
+
CHAR_ASTERISK: 42,
|
|
949
|
+
/* * */
|
|
950
|
+
// Non-alphabetic chars.
|
|
951
|
+
CHAR_AMPERSAND: 38,
|
|
952
|
+
/* & */
|
|
953
|
+
CHAR_AT: 64,
|
|
954
|
+
/* @ */
|
|
955
|
+
CHAR_BACKWARD_SLASH: 92,
|
|
956
|
+
/* \ */
|
|
957
|
+
CHAR_CARRIAGE_RETURN: 13,
|
|
958
|
+
/* \r */
|
|
959
|
+
CHAR_CIRCUMFLEX_ACCENT: 94,
|
|
960
|
+
/* ^ */
|
|
961
|
+
CHAR_COLON: 58,
|
|
962
|
+
/* : */
|
|
963
|
+
CHAR_COMMA: 44,
|
|
964
|
+
/* , */
|
|
965
|
+
CHAR_DOT: 46,
|
|
966
|
+
/* . */
|
|
967
|
+
CHAR_DOUBLE_QUOTE: 34,
|
|
968
|
+
/* " */
|
|
969
|
+
CHAR_EQUAL: 61,
|
|
970
|
+
/* = */
|
|
971
|
+
CHAR_EXCLAMATION_MARK: 33,
|
|
972
|
+
/* ! */
|
|
973
|
+
CHAR_FORM_FEED: 12,
|
|
974
|
+
/* \f */
|
|
975
|
+
CHAR_FORWARD_SLASH: 47,
|
|
976
|
+
/* / */
|
|
977
|
+
CHAR_GRAVE_ACCENT: 96,
|
|
978
|
+
/* ` */
|
|
979
|
+
CHAR_HASH: 35,
|
|
980
|
+
/* # */
|
|
981
|
+
CHAR_HYPHEN_MINUS: 45,
|
|
982
|
+
/* - */
|
|
983
|
+
CHAR_LEFT_ANGLE_BRACKET: 60,
|
|
984
|
+
/* < */
|
|
985
|
+
CHAR_LEFT_CURLY_BRACE: 123,
|
|
986
|
+
/* { */
|
|
987
|
+
CHAR_LEFT_SQUARE_BRACKET: 91,
|
|
988
|
+
/* [ */
|
|
989
|
+
CHAR_LINE_FEED: 10,
|
|
990
|
+
/* \n */
|
|
991
|
+
CHAR_NO_BREAK_SPACE: 160,
|
|
992
|
+
/* \u00A0 */
|
|
993
|
+
CHAR_PERCENT: 37,
|
|
994
|
+
/* % */
|
|
995
|
+
CHAR_PLUS: 43,
|
|
996
|
+
/* + */
|
|
997
|
+
CHAR_QUESTION_MARK: 63,
|
|
998
|
+
/* ? */
|
|
999
|
+
CHAR_RIGHT_ANGLE_BRACKET: 62,
|
|
1000
|
+
/* > */
|
|
1001
|
+
CHAR_RIGHT_CURLY_BRACE: 125,
|
|
1002
|
+
/* } */
|
|
1003
|
+
CHAR_RIGHT_SQUARE_BRACKET: 93,
|
|
1004
|
+
/* ] */
|
|
1005
|
+
CHAR_SEMICOLON: 59,
|
|
1006
|
+
/* ; */
|
|
1007
|
+
CHAR_SINGLE_QUOTE: 39,
|
|
1008
|
+
/* ' */
|
|
1009
|
+
CHAR_SPACE: 32,
|
|
1010
|
+
/* */
|
|
1011
|
+
CHAR_TAB: 9,
|
|
1012
|
+
/* \t */
|
|
1013
|
+
CHAR_UNDERSCORE: 95,
|
|
1014
|
+
/* _ */
|
|
1015
|
+
CHAR_VERTICAL_LINE: 124,
|
|
1016
|
+
/* | */
|
|
1017
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
1018
|
+
/* \uFEFF */
|
|
1019
|
+
SEP: Tu.sep,
|
|
1020
|
+
/**
|
|
1021
|
+
* Create EXTGLOB_CHARS
|
|
1022
|
+
*/
|
|
1023
|
+
extglobChars(e) {
|
|
1024
|
+
return {
|
|
1025
|
+
"!": { type: "negate", open: "(?:(?!(?:", close: `))${e.STAR})` },
|
|
1026
|
+
"?": { type: "qmark", open: "(?:", close: ")?" },
|
|
1027
|
+
"+": { type: "plus", open: "(?:", close: ")+" },
|
|
1028
|
+
"*": { type: "star", open: "(?:", close: ")*" },
|
|
1029
|
+
"@": { type: "at", open: "(?:", close: ")" }
|
|
1030
|
+
};
|
|
1031
|
+
},
|
|
1032
|
+
/**
|
|
1033
|
+
* Create GLOB_CHARS
|
|
1034
|
+
*/
|
|
1035
|
+
globChars(e) {
|
|
1036
|
+
return e === !0 ? Mu : js;
|
|
1037
|
+
}
|
|
1038
|
+
};
|
|
1039
|
+
});
|
|
1040
|
+
|
|
1041
|
+
// ../../node_modules/picomatch/lib/utils.js
|
|
1042
|
+
var Be = m((Q) => {
|
|
1043
|
+
"use strict";
|
|
1044
|
+
var Fu = q("path"), qu = process.platform === "win32", {
|
|
1045
|
+
REGEX_BACKSLASH: Bu,
|
|
1046
|
+
REGEX_REMOVE_BACKSLASH: Gu,
|
|
1047
|
+
REGEX_SPECIAL_CHARS: ju,
|
|
1048
|
+
REGEX_SPECIAL_CHARS_GLOBAL: Wu
|
|
1049
|
+
} = qe();
|
|
1050
|
+
Q.isObject = (e) => e !== null && typeof e == "object" && !Array.isArray(e);
|
|
1051
|
+
Q.hasRegexChars = (e) => ju.test(e);
|
|
1052
|
+
Q.isRegexChar = (e) => e.length === 1 && Q.hasRegexChars(e);
|
|
1053
|
+
Q.escapeRegex = (e) => e.replace(Wu, "\\$1");
|
|
1054
|
+
Q.toPosixSlashes = (e) => e.replace(Bu, "/");
|
|
1055
|
+
Q.removeBackslashes = (e) => e.replace(Gu, (t) => t === "\\" ? "" : t);
|
|
1056
|
+
Q.supportsLookbehinds = () => {
|
|
1057
|
+
let e = process.version.slice(1).split(".").map(Number);
|
|
1058
|
+
return e.length === 3 && e[0] >= 9 || e[0] === 8 && e[1] >= 10;
|
|
1059
|
+
};
|
|
1060
|
+
Q.isWindows = (e) => e && typeof e.windows == "boolean" ? e.windows : qu === !0 || Fu.sep === "\\";
|
|
1061
|
+
Q.escapeLast = (e, t, r) => {
|
|
1062
|
+
let n = e.lastIndexOf(t, r);
|
|
1063
|
+
return n === -1 ? e : e[n - 1] === "\\" ? Q.escapeLast(e, t, n - 1) : `${e.slice(0, n)}\\${e.slice(n)}`;
|
|
1064
|
+
};
|
|
1065
|
+
Q.removePrefix = (e, t = {}) => {
|
|
1066
|
+
let r = e;
|
|
1067
|
+
return r.startsWith("./") && (r = r.slice(2), t.prefix = "./"), r;
|
|
1068
|
+
};
|
|
1069
|
+
Q.wrapOutput = (e, t = {}, r = {}) => {
|
|
1070
|
+
let n = r.contains ? "" : "^", i = r.contains ? "" : "$", o = `${n}(?:${e})${i}`;
|
|
1071
|
+
return t.negated === !0 && (o = `(?:^(?!${o}).*$)`), o;
|
|
1072
|
+
};
|
|
1073
|
+
});
|
|
1074
|
+
|
|
1075
|
+
// ../../node_modules/picomatch/lib/scan.js
|
|
1076
|
+
var Zs = m((zp, zs) => {
|
|
1077
|
+
"use strict";
|
|
1078
|
+
var Us = Be(), {
|
|
1079
|
+
CHAR_ASTERISK: zt,
|
|
1080
|
+
/* * */
|
|
1081
|
+
CHAR_AT: Uu,
|
|
1082
|
+
/* @ */
|
|
1083
|
+
CHAR_BACKWARD_SLASH: Ge,
|
|
1084
|
+
/* \ */
|
|
1085
|
+
CHAR_COMMA: Vu,
|
|
1086
|
+
/* , */
|
|
1087
|
+
CHAR_DOT: Zt,
|
|
1088
|
+
/* . */
|
|
1089
|
+
CHAR_EXCLAMATION_MARK: Jt,
|
|
1090
|
+
/* ! */
|
|
1091
|
+
CHAR_FORWARD_SLASH: Qs,
|
|
1092
|
+
/* / */
|
|
1093
|
+
CHAR_LEFT_CURLY_BRACE: er,
|
|
1094
|
+
/* { */
|
|
1095
|
+
CHAR_LEFT_PARENTHESES: tr,
|
|
1096
|
+
/* ( */
|
|
1097
|
+
CHAR_LEFT_SQUARE_BRACKET: Ku,
|
|
1098
|
+
/* [ */
|
|
1099
|
+
CHAR_PLUS: Xu,
|
|
1100
|
+
/* + */
|
|
1101
|
+
CHAR_QUESTION_MARK: Vs,
|
|
1102
|
+
/* ? */
|
|
1103
|
+
CHAR_RIGHT_CURLY_BRACE: Yu,
|
|
1104
|
+
/* } */
|
|
1105
|
+
CHAR_RIGHT_PARENTHESES: Ks,
|
|
1106
|
+
/* ) */
|
|
1107
|
+
CHAR_RIGHT_SQUARE_BRACKET: Qu
|
|
1108
|
+
/* ] */
|
|
1109
|
+
} = qe(), Xs = /* @__PURE__ */ s((e) => e === Qs || e === Ge, "isPathSeparator"), Ys = /* @__PURE__ */ s((e) => {
|
|
1110
|
+
e.isPrefix !== !0 && (e.depth = e.isGlobstar ? 1 / 0 : 1);
|
|
1111
|
+
}, "depth"), zu = /* @__PURE__ */ s((e, t) => {
|
|
1112
|
+
let r = t || {}, n = e.length - 1, i = r.parts === !0 || r.scanToEnd === !0, o = [], a = [], u = [], c = e, d = -1, l = 0, g = 0, f = !1, v = !1, y = !1, E = !1, O = !1, L = !1, U = !1, $ = !1, ee = !1, T = !1, M = 0, P, b, k = { value: "", depth: 0, isGlob: !1 }, W = /* @__PURE__ */ s(() => d >= n, "eos"), _ = /* @__PURE__ */ s(() => c.charCodeAt(d + 1), "peek"), D = /* @__PURE__ */ s(() => (P = b, c.charCodeAt(++d)), "advance");
|
|
1113
|
+
for (; d < n; ) {
|
|
1114
|
+
b = D();
|
|
1115
|
+
let X;
|
|
1116
|
+
if (b === Ge) {
|
|
1117
|
+
U = k.backslashes = !0, b = D(), b === er && (L = !0);
|
|
1118
|
+
continue;
|
|
1119
|
+
}
|
|
1120
|
+
if (L === !0 || b === er) {
|
|
1121
|
+
for (M++; W() !== !0 && (b = D()); ) {
|
|
1122
|
+
if (b === Ge) {
|
|
1123
|
+
U = k.backslashes = !0, D();
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
if (b === er) {
|
|
1127
|
+
M++;
|
|
1128
|
+
continue;
|
|
1129
|
+
}
|
|
1130
|
+
if (L !== !0 && b === Zt && (b = D()) === Zt) {
|
|
1131
|
+
if (f = k.isBrace = !0, y = k.isGlob = !0, T = !0, i === !0)
|
|
1132
|
+
continue;
|
|
1133
|
+
break;
|
|
1134
|
+
}
|
|
1135
|
+
if (L !== !0 && b === Vu) {
|
|
1136
|
+
if (f = k.isBrace = !0, y = k.isGlob = !0, T = !0, i === !0)
|
|
1137
|
+
continue;
|
|
1138
|
+
break;
|
|
1139
|
+
}
|
|
1140
|
+
if (b === Yu && (M--, M === 0)) {
|
|
1141
|
+
L = !1, f = k.isBrace = !0, T = !0;
|
|
1142
|
+
break;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
if (i === !0)
|
|
1146
|
+
continue;
|
|
1147
|
+
break;
|
|
1148
|
+
}
|
|
1149
|
+
if (b === Qs) {
|
|
1150
|
+
if (o.push(d), a.push(k), k = { value: "", depth: 0, isGlob: !1 }, T === !0) continue;
|
|
1151
|
+
if (P === Zt && d === l + 1) {
|
|
1152
|
+
l += 2;
|
|
1153
|
+
continue;
|
|
1154
|
+
}
|
|
1155
|
+
g = d + 1;
|
|
1156
|
+
continue;
|
|
1157
|
+
}
|
|
1158
|
+
if (r.noext !== !0 && (b === Xu || b === Uu || b === zt || b === Vs || b === Jt) === !0 && _() === tr) {
|
|
1159
|
+
if (y = k.isGlob = !0, E = k.isExtglob = !0, T = !0, b === Jt && d === l && (ee = !0), i === !0) {
|
|
1160
|
+
for (; W() !== !0 && (b = D()); ) {
|
|
1161
|
+
if (b === Ge) {
|
|
1162
|
+
U = k.backslashes = !0, b = D();
|
|
1163
|
+
continue;
|
|
1164
|
+
}
|
|
1165
|
+
if (b === Ks) {
|
|
1166
|
+
y = k.isGlob = !0, T = !0;
|
|
1167
|
+
break;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
continue;
|
|
1171
|
+
}
|
|
1172
|
+
break;
|
|
1173
|
+
}
|
|
1174
|
+
if (b === zt) {
|
|
1175
|
+
if (P === zt && (O = k.isGlobstar = !0), y = k.isGlob = !0, T = !0, i === !0)
|
|
1176
|
+
continue;
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
if (b === Vs) {
|
|
1180
|
+
if (y = k.isGlob = !0, T = !0, i === !0)
|
|
1181
|
+
continue;
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1184
|
+
if (b === Ku) {
|
|
1185
|
+
for (; W() !== !0 && (X = D()); ) {
|
|
1186
|
+
if (X === Ge) {
|
|
1187
|
+
U = k.backslashes = !0, D();
|
|
1188
|
+
continue;
|
|
1189
|
+
}
|
|
1190
|
+
if (X === Qu) {
|
|
1191
|
+
v = k.isBracket = !0, y = k.isGlob = !0, T = !0;
|
|
1192
|
+
break;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
if (i === !0)
|
|
1196
|
+
continue;
|
|
1197
|
+
break;
|
|
1198
|
+
}
|
|
1199
|
+
if (r.nonegate !== !0 && b === Jt && d === l) {
|
|
1200
|
+
$ = k.negated = !0, l++;
|
|
1201
|
+
continue;
|
|
1202
|
+
}
|
|
1203
|
+
if (r.noparen !== !0 && b === tr) {
|
|
1204
|
+
if (y = k.isGlob = !0, i === !0) {
|
|
1205
|
+
for (; W() !== !0 && (b = D()); ) {
|
|
1206
|
+
if (b === tr) {
|
|
1207
|
+
U = k.backslashes = !0, b = D();
|
|
1208
|
+
continue;
|
|
1209
|
+
}
|
|
1210
|
+
if (b === Ks) {
|
|
1211
|
+
T = !0;
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
continue;
|
|
1216
|
+
}
|
|
1217
|
+
break;
|
|
1218
|
+
}
|
|
1219
|
+
if (y === !0) {
|
|
1220
|
+
if (T = !0, i === !0)
|
|
1221
|
+
continue;
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
r.noext === !0 && (E = !1, y = !1);
|
|
1226
|
+
let I = c, _e = "", p = "";
|
|
1227
|
+
l > 0 && (_e = c.slice(0, l), c = c.slice(l), g -= l), I && y === !0 && g > 0 ? (I = c.slice(0, g), p = c.slice(g)) : y === !0 ? (I = "", p = c) : I = c, I && I !== "" && I !== "/" && I !== c && Xs(I.charCodeAt(I.length - 1)) && (I = I.slice(0, -1)), r.unescape === !0 && (p && (p = Us.removeBackslashes(p)), I && U === !0 && (I = Us.removeBackslashes(I)));
|
|
1228
|
+
let h = {
|
|
1229
|
+
prefix: _e,
|
|
1230
|
+
input: e,
|
|
1231
|
+
start: l,
|
|
1232
|
+
base: I,
|
|
1233
|
+
glob: p,
|
|
1234
|
+
isBrace: f,
|
|
1235
|
+
isBracket: v,
|
|
1236
|
+
isGlob: y,
|
|
1237
|
+
isExtglob: E,
|
|
1238
|
+
isGlobstar: O,
|
|
1239
|
+
negated: $,
|
|
1240
|
+
negatedExtglob: ee
|
|
1241
|
+
};
|
|
1242
|
+
if (r.tokens === !0 && (h.maxDepth = 0, Xs(b) || a.push(k), h.tokens = a), r.parts === !0 || r.tokens === !0) {
|
|
1243
|
+
let X;
|
|
1244
|
+
for (let w = 0; w < o.length; w++) {
|
|
1245
|
+
let oe = X ? X + 1 : l, ae = o[w], z = e.slice(oe, ae);
|
|
1246
|
+
r.tokens && (w === 0 && l !== 0 ? (a[w].isPrefix = !0, a[w].value = _e) : a[w].value = z, Ys(a[w]), h.maxDepth += a[w].depth), (w !== 0 || z !== "") && u.push(z), X = ae;
|
|
1247
|
+
}
|
|
1248
|
+
if (X && X + 1 < e.length) {
|
|
1249
|
+
let w = e.slice(X + 1);
|
|
1250
|
+
u.push(w), r.tokens && (a[a.length - 1].value = w, Ys(a[a.length - 1]), h.maxDepth += a[a.length - 1].depth);
|
|
1251
|
+
}
|
|
1252
|
+
h.slashes = o, h.parts = u;
|
|
1253
|
+
}
|
|
1254
|
+
return h;
|
|
1255
|
+
}, "scan");
|
|
1256
|
+
zs.exports = zu;
|
|
1257
|
+
});
|
|
1258
|
+
|
|
1259
|
+
// ../../node_modules/picomatch/lib/parse.js
|
|
1260
|
+
var ti = m((Jp, ei) => {
|
|
1261
|
+
"use strict";
|
|
1262
|
+
var ot = qe(), J = Be(), {
|
|
1263
|
+
MAX_LENGTH: at,
|
|
1264
|
+
POSIX_REGEX_SOURCE: Zu,
|
|
1265
|
+
REGEX_NON_SPECIAL_CHARS: Ju,
|
|
1266
|
+
REGEX_SPECIAL_CHARS_BACKREF: ec,
|
|
1267
|
+
REPLACEMENTS: Js
|
|
1268
|
+
} = ot, tc = /* @__PURE__ */ s((e, t) => {
|
|
1269
|
+
if (typeof t.expandRange == "function")
|
|
1270
|
+
return t.expandRange(...e, t);
|
|
1271
|
+
e.sort();
|
|
1272
|
+
let r = `[${e.join("-")}]`;
|
|
1273
|
+
try {
|
|
1274
|
+
new RegExp(r);
|
|
1275
|
+
} catch {
|
|
1276
|
+
return e.map((i) => J.escapeRegex(i)).join("..");
|
|
1277
|
+
}
|
|
1278
|
+
return r;
|
|
1279
|
+
}, "expandRange"), we = /* @__PURE__ */ s((e, t) => `Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`, "syntaxError"), rr = /* @__PURE__ */ s((e, t) => {
|
|
1280
|
+
if (typeof e != "string")
|
|
1281
|
+
throw new TypeError("Expected a string");
|
|
1282
|
+
e = Js[e] || e;
|
|
1283
|
+
let r = { ...t }, n = typeof r.maxLength == "number" ? Math.min(at, r.maxLength) : at, i = e.length;
|
|
1284
|
+
if (i > n)
|
|
1285
|
+
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);
|
|
1286
|
+
let o = { type: "bos", value: "", output: r.prepend || "" }, a = [o], u = r.capture ? "" : "?:", c = J.isWindows(t), d = ot.globChars(c), l = ot.extglobChars(d), {
|
|
1287
|
+
DOT_LITERAL: g,
|
|
1288
|
+
PLUS_LITERAL: f,
|
|
1289
|
+
SLASH_LITERAL: v,
|
|
1290
|
+
ONE_CHAR: y,
|
|
1291
|
+
DOTS_SLASH: E,
|
|
1292
|
+
NO_DOT: O,
|
|
1293
|
+
NO_DOT_SLASH: L,
|
|
1294
|
+
NO_DOTS_SLASH: U,
|
|
1295
|
+
QMARK: $,
|
|
1296
|
+
QMARK_NO_DOT: ee,
|
|
1297
|
+
STAR: T,
|
|
1298
|
+
START_ANCHOR: M
|
|
1299
|
+
} = d, P = /* @__PURE__ */ s((A) => `(${u}(?:(?!${M}${A.dot ? E : g}).)*?)`, "globstar"), b = r.dot ? "" : O, k = r.dot ? $ : ee, W = r.bash === !0 ? P(r) : T;
|
|
1300
|
+
r.capture && (W = `(${W})`), typeof r.noext == "boolean" && (r.noextglob = r.noext);
|
|
1301
|
+
let _ = {
|
|
1302
|
+
input: e,
|
|
1303
|
+
index: -1,
|
|
1304
|
+
start: 0,
|
|
1305
|
+
dot: r.dot === !0,
|
|
1306
|
+
consumed: "",
|
|
1307
|
+
output: "",
|
|
1308
|
+
prefix: "",
|
|
1309
|
+
backtrack: !1,
|
|
1310
|
+
negated: !1,
|
|
1311
|
+
brackets: 0,
|
|
1312
|
+
braces: 0,
|
|
1313
|
+
parens: 0,
|
|
1314
|
+
quotes: 0,
|
|
1315
|
+
globstar: !1,
|
|
1316
|
+
tokens: a
|
|
1317
|
+
};
|
|
1318
|
+
e = J.removePrefix(e, _), i = e.length;
|
|
1319
|
+
let D = [], I = [], _e = [], p = o, h, X = /* @__PURE__ */ s(() => _.index === i - 1, "eos"), w = _.peek = (A = 1) => e[_.index + A], oe = _.advance = () => e[++_.index] || "", ae = /* @__PURE__ */ s(() => e.slice(_.index + 1), "remaining"), z = /* @__PURE__ */ s((A = "", H = 0) => {
|
|
1320
|
+
_.consumed += A, _.index += H;
|
|
1321
|
+
}, "consume"), Xe = /* @__PURE__ */ s((A) => {
|
|
1322
|
+
_.output += A.output != null ? A.output : A.value, z(A.value);
|
|
1323
|
+
}, "append"), ua = /* @__PURE__ */ s(() => {
|
|
1324
|
+
let A = 1;
|
|
1325
|
+
for (; w() === "!" && (w(2) !== "(" || w(3) === "?"); )
|
|
1326
|
+
oe(), _.start++, A++;
|
|
1327
|
+
return A % 2 === 0 ? !1 : (_.negated = !0, _.start++, !0);
|
|
1328
|
+
}, "negate"), Ye = /* @__PURE__ */ s((A) => {
|
|
1329
|
+
_[A]++, _e.push(A);
|
|
1330
|
+
}, "increment"), be = /* @__PURE__ */ s((A) => {
|
|
1331
|
+
_[A]--, _e.pop();
|
|
1332
|
+
}, "decrement"), C = /* @__PURE__ */ s((A) => {
|
|
1333
|
+
if (p.type === "globstar") {
|
|
1334
|
+
let H = _.braces > 0 && (A.type === "comma" || A.type === "brace"), S = A.extglob === !0 || D.length && (A.type === "pipe" || A.type === "paren");
|
|
1335
|
+
A.type !== "slash" && A.type !== "paren" && !H && !S && (_.output = _.output.slice(0, -p.output.length), p.type = "star", p.value = "*", p.output = W, _.output += p.output);
|
|
1336
|
+
}
|
|
1337
|
+
if (D.length && A.type !== "paren" && (D[D.length - 1].inner += A.value), (A.value || A.output) && Xe(A), p && p.type === "text" && A.type === "text") {
|
|
1338
|
+
p.value += A.value, p.output = (p.output || "") + A.value;
|
|
1339
|
+
return;
|
|
1340
|
+
}
|
|
1341
|
+
A.prev = p, a.push(A), p = A;
|
|
1342
|
+
}, "push"), Qe = /* @__PURE__ */ s((A, H) => {
|
|
1343
|
+
let S = { ...l[H], conditions: 1, inner: "" };
|
|
1344
|
+
S.prev = p, S.parens = _.parens, S.output = _.output;
|
|
1345
|
+
let x = (r.capture ? "(" : "") + S.open;
|
|
1346
|
+
Ye("parens"), C({ type: A, value: H, output: _.output ? "" : y }), C({ type: "paren", extglob: !0, value: oe(), output: x }), D.push(S);
|
|
1347
|
+
}, "extglobOpen"), ca = /* @__PURE__ */ s((A) => {
|
|
1348
|
+
let H = A.close + (r.capture ? ")" : ""), S;
|
|
1349
|
+
if (A.type === "negate") {
|
|
1350
|
+
let x = W;
|
|
1351
|
+
if (A.inner && A.inner.length > 1 && A.inner.includes("/") && (x = P(r)), (x !== W || X() || /^\)+$/.test(ae())) && (H = A.close = `)$))${x}`), A.inner.includes("*") && (S = ae()) && /^\.[^\\/.]+$/.test(S)) {
|
|
1352
|
+
let F = rr(S, { ...t, fastpaths: !1 }).output;
|
|
1353
|
+
H = A.close = `)${F})${x})`;
|
|
1354
|
+
}
|
|
1355
|
+
A.prev.type === "bos" && (_.negatedExtglob = !0);
|
|
1356
|
+
}
|
|
1357
|
+
C({ type: "paren", extglob: !0, value: h, output: H }), be("parens");
|
|
1358
|
+
}, "extglobClose");
|
|
1359
|
+
if (r.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(e)) {
|
|
1360
|
+
let A = !1, H = e.replace(ec, (S, x, F, Y, j, Ht) => Y === "\\" ? (A = !0, S) : Y === "?" ? x ? x + Y + (j ? $.repeat(j.length) : "") : Ht === 0 ? k + (j ? $.repeat(j.length) : "") : $.repeat(F.length) : Y === "." ? g.repeat(F.length) : Y === "*" ? x ? x + Y + (j ? W : "") : W : x ? S : `\\${S}`);
|
|
1361
|
+
return A === !0 && (r.unescape === !0 ? H = H.replace(/\\/g, "") : H = H.replace(/\\+/g, (S) => S.length % 2 === 0 ? "\\\\" : S ? "\\" : "")), H === e && r.contains === !0 ? (_.output = e, _) : (_.output = J.wrapOutput(H, _, t), _);
|
|
1362
|
+
}
|
|
1363
|
+
for (; !X(); ) {
|
|
1364
|
+
if (h = oe(), h === "\0")
|
|
1365
|
+
continue;
|
|
1366
|
+
if (h === "\\") {
|
|
1367
|
+
let S = w();
|
|
1368
|
+
if (S === "/" && r.bash !== !0 || S === "." || S === ";")
|
|
1369
|
+
continue;
|
|
1370
|
+
if (!S) {
|
|
1371
|
+
h += "\\", C({ type: "text", value: h });
|
|
1372
|
+
continue;
|
|
1373
|
+
}
|
|
1374
|
+
let x = /^\\+/.exec(ae()), F = 0;
|
|
1375
|
+
if (x && x[0].length > 2 && (F = x[0].length, _.index += F, F % 2 !== 0 && (h += "\\")), r.unescape === !0 ? h = oe() : h += oe(), _.brackets === 0) {
|
|
1376
|
+
C({ type: "text", value: h });
|
|
1377
|
+
continue;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
if (_.brackets > 0 && (h !== "]" || p.value === "[" || p.value === "[^")) {
|
|
1381
|
+
if (r.posix !== !1 && h === ":") {
|
|
1382
|
+
let S = p.value.slice(1);
|
|
1383
|
+
if (S.includes("[") && (p.posix = !0, S.includes(":"))) {
|
|
1384
|
+
let x = p.value.lastIndexOf("["), F = p.value.slice(0, x), Y = p.value.slice(x + 2), j = Zu[Y];
|
|
1385
|
+
if (j) {
|
|
1386
|
+
p.value = F + j, _.backtrack = !0, oe(), !o.output && a.indexOf(p) === 1 && (o.output = y);
|
|
1387
|
+
continue;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
(h === "[" && w() !== ":" || h === "-" && w() === "]") && (h = `\\${h}`), h === "]" && (p.value === "[" || p.value === "[^") && (h = `\\${h}`), r.posix === !0 && h === "!" && p.value === "[" && (h = "^"), p.value += h, Xe({ value: h });
|
|
1392
|
+
continue;
|
|
1393
|
+
}
|
|
1394
|
+
if (_.quotes === 1 && h !== '"') {
|
|
1395
|
+
h = J.escapeRegex(h), p.value += h, Xe({ value: h });
|
|
1396
|
+
continue;
|
|
1397
|
+
}
|
|
1398
|
+
if (h === '"') {
|
|
1399
|
+
_.quotes = _.quotes === 1 ? 0 : 1, r.keepQuotes === !0 && C({ type: "text", value: h });
|
|
1400
|
+
continue;
|
|
1401
|
+
}
|
|
1402
|
+
if (h === "(") {
|
|
1403
|
+
Ye("parens"), C({ type: "paren", value: h });
|
|
1404
|
+
continue;
|
|
1405
|
+
}
|
|
1406
|
+
if (h === ")") {
|
|
1407
|
+
if (_.parens === 0 && r.strictBrackets === !0)
|
|
1408
|
+
throw new SyntaxError(we("opening", "("));
|
|
1409
|
+
let S = D[D.length - 1];
|
|
1410
|
+
if (S && _.parens === S.parens + 1) {
|
|
1411
|
+
ca(D.pop());
|
|
1412
|
+
continue;
|
|
1413
|
+
}
|
|
1414
|
+
C({ type: "paren", value: h, output: _.parens ? ")" : "\\)" }), be("parens");
|
|
1415
|
+
continue;
|
|
1416
|
+
}
|
|
1417
|
+
if (h === "[") {
|
|
1418
|
+
if (r.nobracket === !0 || !ae().includes("]")) {
|
|
1419
|
+
if (r.nobracket !== !0 && r.strictBrackets === !0)
|
|
1420
|
+
throw new SyntaxError(we("closing", "]"));
|
|
1421
|
+
h = `\\${h}`;
|
|
1422
|
+
} else
|
|
1423
|
+
Ye("brackets");
|
|
1424
|
+
C({ type: "bracket", value: h });
|
|
1425
|
+
continue;
|
|
1426
|
+
}
|
|
1427
|
+
if (h === "]") {
|
|
1428
|
+
if (r.nobracket === !0 || p && p.type === "bracket" && p.value.length === 1) {
|
|
1429
|
+
C({ type: "text", value: h, output: `\\${h}` });
|
|
1430
|
+
continue;
|
|
1431
|
+
}
|
|
1432
|
+
if (_.brackets === 0) {
|
|
1433
|
+
if (r.strictBrackets === !0)
|
|
1434
|
+
throw new SyntaxError(we("opening", "["));
|
|
1435
|
+
C({ type: "text", value: h, output: `\\${h}` });
|
|
1436
|
+
continue;
|
|
1437
|
+
}
|
|
1438
|
+
be("brackets");
|
|
1439
|
+
let S = p.value.slice(1);
|
|
1440
|
+
if (p.posix !== !0 && S[0] === "^" && !S.includes("/") && (h = `/${h}`), p.value += h, Xe({ value: h }), r.literalBrackets === !1 || J.hasRegexChars(S))
|
|
1441
|
+
continue;
|
|
1442
|
+
let x = J.escapeRegex(p.value);
|
|
1443
|
+
if (_.output = _.output.slice(0, -p.value.length), r.literalBrackets === !0) {
|
|
1444
|
+
_.output += x, p.value = x;
|
|
1445
|
+
continue;
|
|
1446
|
+
}
|
|
1447
|
+
p.value = `(${u}${x}|${p.value})`, _.output += p.value;
|
|
1448
|
+
continue;
|
|
1449
|
+
}
|
|
1450
|
+
if (h === "{" && r.nobrace !== !0) {
|
|
1451
|
+
Ye("braces");
|
|
1452
|
+
let S = {
|
|
1453
|
+
type: "brace",
|
|
1454
|
+
value: h,
|
|
1455
|
+
output: "(",
|
|
1456
|
+
outputIndex: _.output.length,
|
|
1457
|
+
tokensIndex: _.tokens.length
|
|
1458
|
+
};
|
|
1459
|
+
I.push(S), C(S);
|
|
1460
|
+
continue;
|
|
1461
|
+
}
|
|
1462
|
+
if (h === "}") {
|
|
1463
|
+
let S = I[I.length - 1];
|
|
1464
|
+
if (r.nobrace === !0 || !S) {
|
|
1465
|
+
C({ type: "text", value: h, output: h });
|
|
1466
|
+
continue;
|
|
1467
|
+
}
|
|
1468
|
+
let x = ")";
|
|
1469
|
+
if (S.dots === !0) {
|
|
1470
|
+
let F = a.slice(), Y = [];
|
|
1471
|
+
for (let j = F.length - 1; j >= 0 && (a.pop(), F[j].type !== "brace"); j--)
|
|
1472
|
+
F[j].type !== "dots" && Y.unshift(F[j].value);
|
|
1473
|
+
x = tc(Y, r), _.backtrack = !0;
|
|
1474
|
+
}
|
|
1475
|
+
if (S.comma !== !0 && S.dots !== !0) {
|
|
1476
|
+
let F = _.output.slice(0, S.outputIndex), Y = _.tokens.slice(S.tokensIndex);
|
|
1477
|
+
S.value = S.output = "\\{", h = x = "\\}", _.output = F;
|
|
1478
|
+
for (let j of Y)
|
|
1479
|
+
_.output += j.output || j.value;
|
|
1480
|
+
}
|
|
1481
|
+
C({ type: "brace", value: h, output: x }), be("braces"), I.pop();
|
|
1482
|
+
continue;
|
|
1483
|
+
}
|
|
1484
|
+
if (h === "|") {
|
|
1485
|
+
D.length > 0 && D[D.length - 1].conditions++, C({ type: "text", value: h });
|
|
1486
|
+
continue;
|
|
1487
|
+
}
|
|
1488
|
+
if (h === ",") {
|
|
1489
|
+
let S = h, x = I[I.length - 1];
|
|
1490
|
+
x && _e[_e.length - 1] === "braces" && (x.comma = !0, S = "|"), C({ type: "comma", value: h, output: S });
|
|
1491
|
+
continue;
|
|
1492
|
+
}
|
|
1493
|
+
if (h === "/") {
|
|
1494
|
+
if (p.type === "dot" && _.index === _.start + 1) {
|
|
1495
|
+
_.start = _.index + 1, _.consumed = "", _.output = "", a.pop(), p = o;
|
|
1496
|
+
continue;
|
|
1497
|
+
}
|
|
1498
|
+
C({ type: "slash", value: h, output: v });
|
|
1499
|
+
continue;
|
|
1500
|
+
}
|
|
1501
|
+
if (h === ".") {
|
|
1502
|
+
if (_.braces > 0 && p.type === "dot") {
|
|
1503
|
+
p.value === "." && (p.output = g);
|
|
1504
|
+
let S = I[I.length - 1];
|
|
1505
|
+
p.type = "dots", p.output += h, p.value += h, S.dots = !0;
|
|
1506
|
+
continue;
|
|
1507
|
+
}
|
|
1508
|
+
if (_.braces + _.parens === 0 && p.type !== "bos" && p.type !== "slash") {
|
|
1509
|
+
C({ type: "text", value: h, output: g });
|
|
1510
|
+
continue;
|
|
1511
|
+
}
|
|
1512
|
+
C({ type: "dot", value: h, output: g });
|
|
1513
|
+
continue;
|
|
1514
|
+
}
|
|
1515
|
+
if (h === "?") {
|
|
1516
|
+
if (!(p && p.value === "(") && r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
|
|
1517
|
+
Qe("qmark", h);
|
|
1518
|
+
continue;
|
|
1519
|
+
}
|
|
1520
|
+
if (p && p.type === "paren") {
|
|
1521
|
+
let x = w(), F = h;
|
|
1522
|
+
if (x === "<" && !J.supportsLookbehinds())
|
|
1523
|
+
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
1524
|
+
(p.value === "(" && !/[!=<:]/.test(x) || x === "<" && !/<([!=]|\w+>)/.test(ae())) && (F = `\\${h}`), C({ type: "text", value: h, output: F });
|
|
1525
|
+
continue;
|
|
1526
|
+
}
|
|
1527
|
+
if (r.dot !== !0 && (p.type === "slash" || p.type === "bos")) {
|
|
1528
|
+
C({ type: "qmark", value: h, output: ee });
|
|
1529
|
+
continue;
|
|
1530
|
+
}
|
|
1531
|
+
C({ type: "qmark", value: h, output: $ });
|
|
1532
|
+
continue;
|
|
1533
|
+
}
|
|
1534
|
+
if (h === "!") {
|
|
1535
|
+
if (r.noextglob !== !0 && w() === "(" && (w(2) !== "?" || !/[!=<:]/.test(w(3)))) {
|
|
1536
|
+
Qe("negate", h);
|
|
1537
|
+
continue;
|
|
1538
|
+
}
|
|
1539
|
+
if (r.nonegate !== !0 && _.index === 0) {
|
|
1540
|
+
ua();
|
|
1541
|
+
continue;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
if (h === "+") {
|
|
1545
|
+
if (r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
|
|
1546
|
+
Qe("plus", h);
|
|
1547
|
+
continue;
|
|
1548
|
+
}
|
|
1549
|
+
if (p && p.value === "(" || r.regex === !1) {
|
|
1550
|
+
C({ type: "plus", value: h, output: f });
|
|
1551
|
+
continue;
|
|
1552
|
+
}
|
|
1553
|
+
if (p && (p.type === "bracket" || p.type === "paren" || p.type === "brace") || _.parens > 0) {
|
|
1554
|
+
C({ type: "plus", value: h });
|
|
1555
|
+
continue;
|
|
1556
|
+
}
|
|
1557
|
+
C({ type: "plus", value: f });
|
|
1558
|
+
continue;
|
|
1559
|
+
}
|
|
1560
|
+
if (h === "@") {
|
|
1561
|
+
if (r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
|
|
1562
|
+
C({ type: "at", extglob: !0, value: h, output: "" });
|
|
1563
|
+
continue;
|
|
1564
|
+
}
|
|
1565
|
+
C({ type: "text", value: h });
|
|
1566
|
+
continue;
|
|
1567
|
+
}
|
|
1568
|
+
if (h !== "*") {
|
|
1569
|
+
(h === "$" || h === "^") && (h = `\\${h}`);
|
|
1570
|
+
let S = Ju.exec(ae());
|
|
1571
|
+
S && (h += S[0], _.index += S[0].length), C({ type: "text", value: h });
|
|
1572
|
+
continue;
|
|
1573
|
+
}
|
|
1574
|
+
if (p && (p.type === "globstar" || p.star === !0)) {
|
|
1575
|
+
p.type = "star", p.star = !0, p.value += h, p.output = W, _.backtrack = !0, _.globstar = !0, z(h);
|
|
1576
|
+
continue;
|
|
1577
|
+
}
|
|
1578
|
+
let A = ae();
|
|
1579
|
+
if (r.noextglob !== !0 && /^\([^?]/.test(A)) {
|
|
1580
|
+
Qe("star", h);
|
|
1581
|
+
continue;
|
|
1582
|
+
}
|
|
1583
|
+
if (p.type === "star") {
|
|
1584
|
+
if (r.noglobstar === !0) {
|
|
1585
|
+
z(h);
|
|
1586
|
+
continue;
|
|
1587
|
+
}
|
|
1588
|
+
let S = p.prev, x = S.prev, F = S.type === "slash" || S.type === "bos", Y = x && (x.type === "star" || x.type === "globstar");
|
|
1589
|
+
if (r.bash === !0 && (!F || A[0] && A[0] !== "/")) {
|
|
1590
|
+
C({ type: "star", value: h, output: "" });
|
|
1591
|
+
continue;
|
|
1592
|
+
}
|
|
1593
|
+
let j = _.braces > 0 && (S.type === "comma" || S.type === "brace"), Ht = D.length && (S.type === "pipe" || S.type === "paren");
|
|
1594
|
+
if (!F && S.type !== "paren" && !j && !Ht) {
|
|
1595
|
+
C({ type: "star", value: h, output: "" });
|
|
1596
|
+
continue;
|
|
1597
|
+
}
|
|
1598
|
+
for (; A.slice(0, 3) === "/**"; ) {
|
|
1599
|
+
let ze = e[_.index + 4];
|
|
1600
|
+
if (ze && ze !== "/")
|
|
1601
|
+
break;
|
|
1602
|
+
A = A.slice(3), z("/**", 3);
|
|
1603
|
+
}
|
|
1604
|
+
if (S.type === "bos" && X()) {
|
|
1605
|
+
p.type = "globstar", p.value += h, p.output = P(r), _.output = p.output, _.globstar = !0, z(h);
|
|
1606
|
+
continue;
|
|
1607
|
+
}
|
|
1608
|
+
if (S.type === "slash" && S.prev.type !== "bos" && !Y && X()) {
|
|
1609
|
+
_.output = _.output.slice(0, -(S.output + p.output).length), S.output = `(?:${S.output}`, p.type = "globstar", p.output = P(r) + (r.strictSlashes ? ")" : "|$)"), p.value += h, _.globstar = !0, _.output += S.output + p.output, z(h);
|
|
1610
|
+
continue;
|
|
1611
|
+
}
|
|
1612
|
+
if (S.type === "slash" && S.prev.type !== "bos" && A[0] === "/") {
|
|
1613
|
+
let ze = A[1] !== void 0 ? "|$" : "";
|
|
1614
|
+
_.output = _.output.slice(0, -(S.output + p.output).length), S.output = `(?:${S.output}`, p.type = "globstar", p.output = `${P(r)}${v}|${v}${ze})`, p.value += h, _.output += S.output + p.output, _.globstar = !0, z(h + oe()), C({ type: "slash", value: "/", output: "" });
|
|
1615
|
+
continue;
|
|
1616
|
+
}
|
|
1617
|
+
if (S.type === "bos" && A[0] === "/") {
|
|
1618
|
+
p.type = "globstar", p.value += h, p.output = `(?:^|${v}|${P(r)}${v})`, _.output = p.output, _.globstar = !0, z(h + oe()), C({ type: "slash", value: "/", output: "" });
|
|
1619
|
+
continue;
|
|
1620
|
+
}
|
|
1621
|
+
_.output = _.output.slice(0, -p.output.length), p.type = "globstar", p.output = P(r), p.value += h, _.output += p.output, _.globstar = !0, z(h);
|
|
1622
|
+
continue;
|
|
1623
|
+
}
|
|
1624
|
+
let H = { type: "star", value: h, output: W };
|
|
1625
|
+
if (r.bash === !0) {
|
|
1626
|
+
H.output = ".*?", (p.type === "bos" || p.type === "slash") && (H.output = b + H.output), C(H);
|
|
1627
|
+
continue;
|
|
1628
|
+
}
|
|
1629
|
+
if (p && (p.type === "bracket" || p.type === "paren") && r.regex === !0) {
|
|
1630
|
+
H.output = h, C(H);
|
|
1631
|
+
continue;
|
|
1632
|
+
}
|
|
1633
|
+
(_.index === _.start || p.type === "slash" || p.type === "dot") && (p.type === "dot" ? (_.output += L, p.output += L) : r.dot === !0 ? (_.output += U, p.output += U) : (_.output += b, p.output += b), w() !== "*" && (_.output += y, p.output += y)), C(H);
|
|
1634
|
+
}
|
|
1635
|
+
for (; _.brackets > 0; ) {
|
|
1636
|
+
if (r.strictBrackets === !0) throw new SyntaxError(we("closing", "]"));
|
|
1637
|
+
_.output = J.escapeLast(_.output, "["), be("brackets");
|
|
1638
|
+
}
|
|
1639
|
+
for (; _.parens > 0; ) {
|
|
1640
|
+
if (r.strictBrackets === !0) throw new SyntaxError(we("closing", ")"));
|
|
1641
|
+
_.output = J.escapeLast(_.output, "("), be("parens");
|
|
1642
|
+
}
|
|
1643
|
+
for (; _.braces > 0; ) {
|
|
1644
|
+
if (r.strictBrackets === !0) throw new SyntaxError(we("closing", "}"));
|
|
1645
|
+
_.output = J.escapeLast(_.output, "{"), be("braces");
|
|
1646
|
+
}
|
|
1647
|
+
if (r.strictSlashes !== !0 && (p.type === "star" || p.type === "bracket") && C({ type: "maybe_slash", value: "", output: `${v}?` }), _.backtrack === !0) {
|
|
1648
|
+
_.output = "";
|
|
1649
|
+
for (let A of _.tokens)
|
|
1650
|
+
_.output += A.output != null ? A.output : A.value, A.suffix && (_.output += A.suffix);
|
|
1651
|
+
}
|
|
1652
|
+
return _;
|
|
1653
|
+
}, "parse");
|
|
1654
|
+
rr.fastpaths = (e, t) => {
|
|
1655
|
+
let r = { ...t }, n = typeof r.maxLength == "number" ? Math.min(at, r.maxLength) : at, i = e.length;
|
|
1656
|
+
if (i > n)
|
|
1657
|
+
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);
|
|
1658
|
+
e = Js[e] || e;
|
|
1659
|
+
let o = J.isWindows(t), {
|
|
1660
|
+
DOT_LITERAL: a,
|
|
1661
|
+
SLASH_LITERAL: u,
|
|
1662
|
+
ONE_CHAR: c,
|
|
1663
|
+
DOTS_SLASH: d,
|
|
1664
|
+
NO_DOT: l,
|
|
1665
|
+
NO_DOTS: g,
|
|
1666
|
+
NO_DOTS_SLASH: f,
|
|
1667
|
+
STAR: v,
|
|
1668
|
+
START_ANCHOR: y
|
|
1669
|
+
} = ot.globChars(o), E = r.dot ? g : l, O = r.dot ? f : l, L = r.capture ? "" : "?:", U = { negated: !1, prefix: "" }, $ = r.bash === !0 ? ".*?" : v;
|
|
1670
|
+
r.capture && ($ = `(${$})`);
|
|
1671
|
+
let ee = /* @__PURE__ */ s((b) => b.noglobstar === !0 ? $ : `(${L}(?:(?!${y}${b.dot ? d : a}).)*?)`, "globstar"), T = /* @__PURE__ */ s((b) => {
|
|
1672
|
+
switch (b) {
|
|
1673
|
+
case "*":
|
|
1674
|
+
return `${E}${c}${$}`;
|
|
1675
|
+
case ".*":
|
|
1676
|
+
return `${a}${c}${$}`;
|
|
1677
|
+
case "*.*":
|
|
1678
|
+
return `${E}${$}${a}${c}${$}`;
|
|
1679
|
+
case "*/*":
|
|
1680
|
+
return `${E}${$}${u}${c}${O}${$}`;
|
|
1681
|
+
case "**":
|
|
1682
|
+
return E + ee(r);
|
|
1683
|
+
case "**/*":
|
|
1684
|
+
return `(?:${E}${ee(r)}${u})?${O}${c}${$}`;
|
|
1685
|
+
case "**/*.*":
|
|
1686
|
+
return `(?:${E}${ee(r)}${u})?${O}${$}${a}${c}${$}`;
|
|
1687
|
+
case "**/.*":
|
|
1688
|
+
return `(?:${E}${ee(r)}${u})?${a}${c}${$}`;
|
|
1689
|
+
default: {
|
|
1690
|
+
let k = /^(.*?)\.(\w+)$/.exec(b);
|
|
1691
|
+
if (!k) return;
|
|
1692
|
+
let W = T(k[1]);
|
|
1693
|
+
return W ? W + a + k[2] : void 0;
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}, "create"), M = J.removePrefix(e, U), P = T(M);
|
|
1697
|
+
return P && r.strictSlashes !== !0 && (P += `${u}?`), P;
|
|
1698
|
+
};
|
|
1699
|
+
ei.exports = rr;
|
|
1700
|
+
});
|
|
1701
|
+
|
|
1702
|
+
// ../../node_modules/picomatch/lib/picomatch.js
|
|
1703
|
+
var ni = m((th, ri) => {
|
|
1704
|
+
"use strict";
|
|
1705
|
+
var rc = q("path"), nc = Zs(), nr = ti(), sr = Be(), sc = qe(), ic = /* @__PURE__ */ s((e) => e && typeof e == "object" && !Array.isArray(e), "isObject"), B = /* @__PURE__ */ s((e, t, r = !1) => {
|
|
1706
|
+
if (Array.isArray(e)) {
|
|
1707
|
+
let l = e.map((f) => B(f, t, r));
|
|
1708
|
+
return /* @__PURE__ */ s((f) => {
|
|
1709
|
+
for (let v of l) {
|
|
1710
|
+
let y = v(f);
|
|
1711
|
+
if (y) return y;
|
|
1712
|
+
}
|
|
1713
|
+
return !1;
|
|
1714
|
+
}, "arrayMatcher");
|
|
1715
|
+
}
|
|
1716
|
+
let n = ic(e) && e.tokens && e.input;
|
|
1717
|
+
if (e === "" || typeof e != "string" && !n)
|
|
1718
|
+
throw new TypeError("Expected pattern to be a non-empty string");
|
|
1719
|
+
let i = t || {}, o = sr.isWindows(t), a = n ? B.compileRe(e, t) : B.makeRe(e, t, !1, !0), u = a.state;
|
|
1720
|
+
delete a.state;
|
|
1721
|
+
let c = /* @__PURE__ */ s(() => !1, "isIgnored");
|
|
1722
|
+
if (i.ignore) {
|
|
1723
|
+
let l = { ...t, ignore: null, onMatch: null, onResult: null };
|
|
1724
|
+
c = B(i.ignore, l, r);
|
|
1725
|
+
}
|
|
1726
|
+
let d = /* @__PURE__ */ s((l, g = !1) => {
|
|
1727
|
+
let { isMatch: f, match: v, output: y } = B.test(l, a, t, { glob: e, posix: o }), E = { glob: e, state: u, regex: a, posix: o, input: l, output: y, match: v, isMatch: f };
|
|
1728
|
+
return typeof i.onResult == "function" && i.onResult(E), f === !1 ? (E.isMatch = !1, g ? E : !1) : c(l) ? (typeof i.onIgnore == "function" && i.onIgnore(E), E.isMatch = !1, g ? E : !1) : (typeof i.onMatch == "function" && i.onMatch(E), g ? E : !0);
|
|
1729
|
+
}, "matcher");
|
|
1730
|
+
return r && (d.state = u), d;
|
|
1731
|
+
}, "picomatch");
|
|
1732
|
+
B.test = (e, t, r, { glob: n, posix: i } = {}) => {
|
|
1733
|
+
if (typeof e != "string")
|
|
1734
|
+
throw new TypeError("Expected input to be a string");
|
|
1735
|
+
if (e === "")
|
|
1736
|
+
return { isMatch: !1, output: "" };
|
|
1737
|
+
let o = r || {}, a = o.format || (i ? sr.toPosixSlashes : null), u = e === n, c = u && a ? a(e) : e;
|
|
1738
|
+
return u === !1 && (c = a ? a(e) : e, u = c === n), (u === !1 || o.capture === !0) && (o.matchBase === !0 || o.basename === !0 ? u = B.matchBase(e, t, r, i) : u = t.exec(c)), { isMatch: !!u, match: u, output: c };
|
|
1739
|
+
};
|
|
1740
|
+
B.matchBase = (e, t, r, n = sr.isWindows(r)) => (t instanceof RegExp ? t : B.makeRe(t, r)).test(rc.basename(e));
|
|
1741
|
+
B.isMatch = (e, t, r) => B(t, r)(e);
|
|
1742
|
+
B.parse = (e, t) => Array.isArray(e) ? e.map((r) => B.parse(r, t)) : nr(e, { ...t, fastpaths: !1 });
|
|
1743
|
+
B.scan = (e, t) => nc(e, t);
|
|
1744
|
+
B.compileRe = (e, t, r = !1, n = !1) => {
|
|
1745
|
+
if (r === !0)
|
|
1746
|
+
return e.output;
|
|
1747
|
+
let i = t || {}, o = i.contains ? "" : "^", a = i.contains ? "" : "$", u = `${o}(?:${e.output})${a}`;
|
|
1748
|
+
e && e.negated === !0 && (u = `^(?!${u}).*$`);
|
|
1749
|
+
let c = B.toRegex(u, t);
|
|
1750
|
+
return n === !0 && (c.state = e), c;
|
|
1751
|
+
};
|
|
1752
|
+
B.makeRe = (e, t = {}, r = !1, n = !1) => {
|
|
1753
|
+
if (!e || typeof e != "string")
|
|
1754
|
+
throw new TypeError("Expected a non-empty string");
|
|
1755
|
+
let i = { negated: !1, fastpaths: !0 };
|
|
1756
|
+
return t.fastpaths !== !1 && (e[0] === "." || e[0] === "*") && (i.output = nr.fastpaths(e, t)), i.output || (i = nr(e, t)), B.compileRe(i, t, r, n);
|
|
1757
|
+
};
|
|
1758
|
+
B.toRegex = (e, t) => {
|
|
1759
|
+
try {
|
|
1760
|
+
let r = t || {};
|
|
1761
|
+
return new RegExp(e, r.flags || (r.nocase ? "i" : ""));
|
|
1762
|
+
} catch (r) {
|
|
1763
|
+
if (t && t.debug === !0) throw r;
|
|
1764
|
+
return /$^/;
|
|
1765
|
+
}
|
|
1766
|
+
};
|
|
1767
|
+
B.constants = sc;
|
|
1768
|
+
ri.exports = B;
|
|
1769
|
+
});
|
|
1770
|
+
|
|
1771
|
+
// ../../node_modules/picomatch/index.js
|
|
1772
|
+
var ii = m((nh, si) => {
|
|
1773
|
+
"use strict";
|
|
1774
|
+
si.exports = ni();
|
|
1775
|
+
});
|
|
1776
|
+
|
|
1777
|
+
// ../../node_modules/micromatch/index.js
|
|
1778
|
+
var fi = m((sh, li) => {
|
|
1779
|
+
"use strict";
|
|
1780
|
+
var ai = q("util"), ui = Fs(), ce = ii(), ir = Be(), oi = /* @__PURE__ */ s((e) => e === "" || e === "./", "isEmptyString"), ci = /* @__PURE__ */ s((e) => {
|
|
1781
|
+
let t = e.indexOf("{");
|
|
1782
|
+
return t > -1 && e.indexOf("}", t) > -1;
|
|
1783
|
+
}, "hasBraces"), N = /* @__PURE__ */ s((e, t, r) => {
|
|
1784
|
+
t = [].concat(t), e = [].concat(e);
|
|
1785
|
+
let n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), a = 0, u = /* @__PURE__ */ s((l) => {
|
|
1786
|
+
o.add(l.output), r && r.onResult && r.onResult(l);
|
|
1787
|
+
}, "onResult");
|
|
1788
|
+
for (let l = 0; l < t.length; l++) {
|
|
1789
|
+
let g = ce(String(t[l]), { ...r, onResult: u }, !0), f = g.state.negated || g.state.negatedExtglob;
|
|
1790
|
+
f && a++;
|
|
1791
|
+
for (let v of e) {
|
|
1792
|
+
let y = g(v, !0);
|
|
1793
|
+
(f ? !y.isMatch : y.isMatch) && (f ? n.add(y.output) : (n.delete(y.output), i.add(y.output)));
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
let d = (a === t.length ? [...o] : [...i]).filter((l) => !n.has(l));
|
|
1797
|
+
if (r && d.length === 0) {
|
|
1798
|
+
if (r.failglob === !0)
|
|
1799
|
+
throw new Error(`No matches found for "${t.join(", ")}"`);
|
|
1800
|
+
if (r.nonull === !0 || r.nullglob === !0)
|
|
1801
|
+
return r.unescape ? t.map((l) => l.replace(/\\/g, "")) : t;
|
|
1802
|
+
}
|
|
1803
|
+
return d;
|
|
1804
|
+
}, "micromatch");
|
|
1805
|
+
N.match = N;
|
|
1806
|
+
N.matcher = (e, t) => ce(e, t);
|
|
1807
|
+
N.isMatch = (e, t, r) => ce(t, r)(e);
|
|
1808
|
+
N.any = N.isMatch;
|
|
1809
|
+
N.not = (e, t, r = {}) => {
|
|
1810
|
+
t = [].concat(t).map(String);
|
|
1811
|
+
let n = /* @__PURE__ */ new Set(), i = [], o = /* @__PURE__ */ s((u) => {
|
|
1812
|
+
r.onResult && r.onResult(u), i.push(u.output);
|
|
1813
|
+
}, "onResult"), a = new Set(N(e, t, { ...r, onResult: o }));
|
|
1814
|
+
for (let u of i)
|
|
1815
|
+
a.has(u) || n.add(u);
|
|
1816
|
+
return [...n];
|
|
1817
|
+
};
|
|
1818
|
+
N.contains = (e, t, r) => {
|
|
1819
|
+
if (typeof e != "string")
|
|
1820
|
+
throw new TypeError(`Expected a string: "${ai.inspect(e)}"`);
|
|
1821
|
+
if (Array.isArray(t))
|
|
1822
|
+
return t.some((n) => N.contains(e, n, r));
|
|
1823
|
+
if (typeof t == "string") {
|
|
1824
|
+
if (oi(e) || oi(t))
|
|
1825
|
+
return !1;
|
|
1826
|
+
if (e.includes(t) || e.startsWith("./") && e.slice(2).includes(t))
|
|
1827
|
+
return !0;
|
|
1828
|
+
}
|
|
1829
|
+
return N.isMatch(e, t, { ...r, contains: !0 });
|
|
1830
|
+
};
|
|
1831
|
+
N.matchKeys = (e, t, r) => {
|
|
1832
|
+
if (!ir.isObject(e))
|
|
1833
|
+
throw new TypeError("Expected the first argument to be an object");
|
|
1834
|
+
let n = N(Object.keys(e), t, r), i = {};
|
|
1835
|
+
for (let o of n) i[o] = e[o];
|
|
1836
|
+
return i;
|
|
1837
|
+
};
|
|
1838
|
+
N.some = (e, t, r) => {
|
|
1839
|
+
let n = [].concat(e);
|
|
1840
|
+
for (let i of [].concat(t)) {
|
|
1841
|
+
let o = ce(String(i), r);
|
|
1842
|
+
if (n.some((a) => o(a)))
|
|
1843
|
+
return !0;
|
|
1844
|
+
}
|
|
1845
|
+
return !1;
|
|
1846
|
+
};
|
|
1847
|
+
N.every = (e, t, r) => {
|
|
1848
|
+
let n = [].concat(e);
|
|
1849
|
+
for (let i of [].concat(t)) {
|
|
1850
|
+
let o = ce(String(i), r);
|
|
1851
|
+
if (!n.every((a) => o(a)))
|
|
1852
|
+
return !1;
|
|
1853
|
+
}
|
|
1854
|
+
return !0;
|
|
1855
|
+
};
|
|
1856
|
+
N.all = (e, t, r) => {
|
|
1857
|
+
if (typeof e != "string")
|
|
1858
|
+
throw new TypeError(`Expected a string: "${ai.inspect(e)}"`);
|
|
1859
|
+
return [].concat(t).every((n) => ce(n, r)(e));
|
|
1860
|
+
};
|
|
1861
|
+
N.capture = (e, t, r) => {
|
|
1862
|
+
let n = ir.isWindows(r), o = ce.makeRe(String(e), { ...r, capture: !0 }).exec(n ? ir.toPosixSlashes(t) : t);
|
|
1863
|
+
if (o)
|
|
1864
|
+
return o.slice(1).map((a) => a === void 0 ? "" : a);
|
|
1865
|
+
};
|
|
1866
|
+
N.makeRe = (...e) => ce.makeRe(...e);
|
|
1867
|
+
N.scan = (...e) => ce.scan(...e);
|
|
1868
|
+
N.parse = (e, t) => {
|
|
1869
|
+
let r = [];
|
|
1870
|
+
for (let n of [].concat(e || []))
|
|
1871
|
+
for (let i of ui(String(n), t))
|
|
1872
|
+
r.push(ce.parse(i, t));
|
|
1873
|
+
return r;
|
|
1874
|
+
};
|
|
1875
|
+
N.braces = (e, t) => {
|
|
1876
|
+
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
1877
|
+
return t && t.nobrace === !0 || !ci(e) ? [e] : ui(e, t);
|
|
1878
|
+
};
|
|
1879
|
+
N.braceExpand = (e, t) => {
|
|
1880
|
+
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
1881
|
+
return N.braces(e, { ...t, expand: !0 });
|
|
1882
|
+
};
|
|
1883
|
+
N.hasBraces = ci;
|
|
1884
|
+
li.exports = N;
|
|
1885
|
+
});
|
|
1886
|
+
|
|
1887
|
+
// ../../node_modules/fast-glob/out/utils/pattern.js
|
|
1888
|
+
var Ai = m((R) => {
|
|
1889
|
+
"use strict";
|
|
1890
|
+
Object.defineProperty(R, "__esModule", { value: !0 });
|
|
1891
|
+
R.isAbsolute = R.partitionAbsoluteAndRelative = R.removeDuplicateSlashes = R.matchAny = R.convertPatternsToRe = R.makeRe = R.getPatternParts = R.expandBraceExpansion = R.expandPatternsWithBraceExpansion = R.isAffectDepthOfReadingPattern = R.endsWithSlashGlobStar = R.hasGlobStar = R.getBaseDirectory = R.isPatternRelatedToParentDirectory = R.getPatternsOutsideCurrentDirectory = R.getPatternsInsideCurrentDirectory = R.getPositivePatterns = R.getNegativePatterns = R.isPositivePattern = R.isNegativePattern = R.convertToNegativePattern = R.convertToPositivePattern = R.isDynamicPattern = R.isStaticPattern = void 0;
|
|
1892
|
+
var pi = q("path"), oc = ns(), or = fi(), hi = "**", ac = "\\", uc = /[*?]|^!/, cc = /\[[^[]*]/, lc = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/, fc = /[!*+?@]\([^(]*\)/, pc = /,|\.\./, hc = /(?!^)\/{2,}/g;
|
|
1893
|
+
function di(e, t = {}) {
|
|
1894
|
+
return !_i(e, t);
|
|
1895
|
+
}
|
|
1896
|
+
s(di, "isStaticPattern");
|
|
1897
|
+
R.isStaticPattern = di;
|
|
1898
|
+
function _i(e, t = {}) {
|
|
1899
|
+
return e === "" ? !1 : !!(t.caseSensitiveMatch === !1 || e.includes(ac) || uc.test(e) || cc.test(e) || lc.test(e) || t.extglob !== !1 && fc.test(e) || t.braceExpansion !== !1 && dc(e));
|
|
1900
|
+
}
|
|
1901
|
+
s(_i, "isDynamicPattern");
|
|
1902
|
+
R.isDynamicPattern = _i;
|
|
1903
|
+
function dc(e) {
|
|
1904
|
+
let t = e.indexOf("{");
|
|
1905
|
+
if (t === -1)
|
|
1906
|
+
return !1;
|
|
1907
|
+
let r = e.indexOf("}", t + 1);
|
|
1908
|
+
if (r === -1)
|
|
1909
|
+
return !1;
|
|
1910
|
+
let n = e.slice(t, r);
|
|
1911
|
+
return pc.test(n);
|
|
1912
|
+
}
|
|
1913
|
+
s(dc, "hasBraceExpansion");
|
|
1914
|
+
function _c(e) {
|
|
1915
|
+
return ut(e) ? e.slice(1) : e;
|
|
1916
|
+
}
|
|
1917
|
+
s(_c, "convertToPositivePattern");
|
|
1918
|
+
R.convertToPositivePattern = _c;
|
|
1919
|
+
function gc(e) {
|
|
1920
|
+
return "!" + e;
|
|
1921
|
+
}
|
|
1922
|
+
s(gc, "convertToNegativePattern");
|
|
1923
|
+
R.convertToNegativePattern = gc;
|
|
1924
|
+
function ut(e) {
|
|
1925
|
+
return e.startsWith("!") && e[1] !== "(";
|
|
1926
|
+
}
|
|
1927
|
+
s(ut, "isNegativePattern");
|
|
1928
|
+
R.isNegativePattern = ut;
|
|
1929
|
+
function gi(e) {
|
|
1930
|
+
return !ut(e);
|
|
1931
|
+
}
|
|
1932
|
+
s(gi, "isPositivePattern");
|
|
1933
|
+
R.isPositivePattern = gi;
|
|
1934
|
+
function yc(e) {
|
|
1935
|
+
return e.filter(ut);
|
|
1936
|
+
}
|
|
1937
|
+
s(yc, "getNegativePatterns");
|
|
1938
|
+
R.getNegativePatterns = yc;
|
|
1939
|
+
function Sc(e) {
|
|
1940
|
+
return e.filter(gi);
|
|
1941
|
+
}
|
|
1942
|
+
s(Sc, "getPositivePatterns");
|
|
1943
|
+
R.getPositivePatterns = Sc;
|
|
1944
|
+
function mc(e) {
|
|
1945
|
+
return e.filter((t) => !ar(t));
|
|
1946
|
+
}
|
|
1947
|
+
s(mc, "getPatternsInsideCurrentDirectory");
|
|
1948
|
+
R.getPatternsInsideCurrentDirectory = mc;
|
|
1949
|
+
function Ec(e) {
|
|
1950
|
+
return e.filter(ar);
|
|
1951
|
+
}
|
|
1952
|
+
s(Ec, "getPatternsOutsideCurrentDirectory");
|
|
1953
|
+
R.getPatternsOutsideCurrentDirectory = Ec;
|
|
1954
|
+
function ar(e) {
|
|
1955
|
+
return e.startsWith("..") || e.startsWith("./..");
|
|
1956
|
+
}
|
|
1957
|
+
s(ar, "isPatternRelatedToParentDirectory");
|
|
1958
|
+
R.isPatternRelatedToParentDirectory = ar;
|
|
1959
|
+
function Ac(e) {
|
|
1960
|
+
return oc(e, { flipBackslashes: !1 });
|
|
1961
|
+
}
|
|
1962
|
+
s(Ac, "getBaseDirectory");
|
|
1963
|
+
R.getBaseDirectory = Ac;
|
|
1964
|
+
function Rc(e) {
|
|
1965
|
+
return e.includes(hi);
|
|
1966
|
+
}
|
|
1967
|
+
s(Rc, "hasGlobStar");
|
|
1968
|
+
R.hasGlobStar = Rc;
|
|
1969
|
+
function yi(e) {
|
|
1970
|
+
return e.endsWith("/" + hi);
|
|
1971
|
+
}
|
|
1972
|
+
s(yi, "endsWithSlashGlobStar");
|
|
1973
|
+
R.endsWithSlashGlobStar = yi;
|
|
1974
|
+
function bc(e) {
|
|
1975
|
+
let t = pi.basename(e);
|
|
1976
|
+
return yi(e) || di(t);
|
|
1977
|
+
}
|
|
1978
|
+
s(bc, "isAffectDepthOfReadingPattern");
|
|
1979
|
+
R.isAffectDepthOfReadingPattern = bc;
|
|
1980
|
+
function vc(e) {
|
|
1981
|
+
return e.reduce((t, r) => t.concat(Si(r)), []);
|
|
1982
|
+
}
|
|
1983
|
+
s(vc, "expandPatternsWithBraceExpansion");
|
|
1984
|
+
R.expandPatternsWithBraceExpansion = vc;
|
|
1985
|
+
function Si(e) {
|
|
1986
|
+
let t = or.braces(e, { expand: !0, nodupes: !0, keepEscaping: !0 });
|
|
1987
|
+
return t.sort((r, n) => r.length - n.length), t.filter((r) => r !== "");
|
|
1988
|
+
}
|
|
1989
|
+
s(Si, "expandBraceExpansion");
|
|
1990
|
+
R.expandBraceExpansion = Si;
|
|
1991
|
+
function Pc(e, t) {
|
|
1992
|
+
let { parts: r } = or.scan(e, Object.assign(Object.assign({}, t), { parts: !0 }));
|
|
1993
|
+
return r.length === 0 && (r = [e]), r[0].startsWith("/") && (r[0] = r[0].slice(1), r.unshift("")), r;
|
|
1994
|
+
}
|
|
1995
|
+
s(Pc, "getPatternParts");
|
|
1996
|
+
R.getPatternParts = Pc;
|
|
1997
|
+
function mi(e, t) {
|
|
1998
|
+
return or.makeRe(e, t);
|
|
1999
|
+
}
|
|
2000
|
+
s(mi, "makeRe");
|
|
2001
|
+
R.makeRe = mi;
|
|
2002
|
+
function xc(e, t) {
|
|
2003
|
+
return e.map((r) => mi(r, t));
|
|
2004
|
+
}
|
|
2005
|
+
s(xc, "convertPatternsToRe");
|
|
2006
|
+
R.convertPatternsToRe = xc;
|
|
2007
|
+
function Tc(e, t) {
|
|
2008
|
+
return t.some((r) => r.test(e));
|
|
2009
|
+
}
|
|
2010
|
+
s(Tc, "matchAny");
|
|
2011
|
+
R.matchAny = Tc;
|
|
2012
|
+
function Cc(e) {
|
|
2013
|
+
return e.replace(hc, "/");
|
|
2014
|
+
}
|
|
2015
|
+
s(Cc, "removeDuplicateSlashes");
|
|
2016
|
+
R.removeDuplicateSlashes = Cc;
|
|
2017
|
+
function wc(e) {
|
|
2018
|
+
let t = [], r = [];
|
|
2019
|
+
for (let n of e)
|
|
2020
|
+
Ei(n) ? t.push(n) : r.push(n);
|
|
2021
|
+
return [t, r];
|
|
2022
|
+
}
|
|
2023
|
+
s(wc, "partitionAbsoluteAndRelative");
|
|
2024
|
+
R.partitionAbsoluteAndRelative = wc;
|
|
2025
|
+
function Ei(e) {
|
|
2026
|
+
return pi.isAbsolute(e);
|
|
2027
|
+
}
|
|
2028
|
+
s(Ei, "isAbsolute");
|
|
2029
|
+
R.isAbsolute = Ei;
|
|
2030
|
+
});
|
|
2031
|
+
|
|
2032
|
+
// ../../node_modules/merge2/index.js
|
|
2033
|
+
var Pi = m((uh, vi) => {
|
|
2034
|
+
"use strict";
|
|
2035
|
+
var Oc = q("stream"), Ri = Oc.PassThrough, Lc = Array.prototype.slice;
|
|
2036
|
+
vi.exports = kc;
|
|
2037
|
+
function kc() {
|
|
2038
|
+
let e = [], t = Lc.call(arguments), r = !1, n = t[t.length - 1];
|
|
2039
|
+
n && !Array.isArray(n) && n.pipe == null ? t.pop() : n = {};
|
|
2040
|
+
let i = n.end !== !1, o = n.pipeError === !0;
|
|
2041
|
+
n.objectMode == null && (n.objectMode = !0), n.highWaterMark == null && (n.highWaterMark = 64 * 1024);
|
|
2042
|
+
let a = Ri(n);
|
|
2043
|
+
function u() {
|
|
2044
|
+
for (let l = 0, g = arguments.length; l < g; l++)
|
|
2045
|
+
e.push(bi(arguments[l], n));
|
|
2046
|
+
return c(), this;
|
|
2047
|
+
}
|
|
2048
|
+
s(u, "addStream");
|
|
2049
|
+
function c() {
|
|
2050
|
+
if (r)
|
|
2051
|
+
return;
|
|
2052
|
+
r = !0;
|
|
2053
|
+
let l = e.shift();
|
|
2054
|
+
if (!l) {
|
|
2055
|
+
process.nextTick(d);
|
|
2056
|
+
return;
|
|
2057
|
+
}
|
|
2058
|
+
Array.isArray(l) || (l = [l]);
|
|
2059
|
+
let g = l.length + 1;
|
|
2060
|
+
function f() {
|
|
2061
|
+
--g > 0 || (r = !1, c());
|
|
2062
|
+
}
|
|
2063
|
+
s(f, "next");
|
|
2064
|
+
function v(y) {
|
|
2065
|
+
function E() {
|
|
2066
|
+
y.removeListener("merge2UnpipeEnd", E), y.removeListener("end", E), o && y.removeListener("error", O), f();
|
|
2067
|
+
}
|
|
2068
|
+
s(E, "onend");
|
|
2069
|
+
function O(L) {
|
|
2070
|
+
a.emit("error", L);
|
|
2071
|
+
}
|
|
2072
|
+
if (s(O, "onerror"), y._readableState.endEmitted)
|
|
2073
|
+
return f();
|
|
2074
|
+
y.on("merge2UnpipeEnd", E), y.on("end", E), o && y.on("error", O), y.pipe(a, { end: !1 }), y.resume();
|
|
2075
|
+
}
|
|
2076
|
+
s(v, "pipe");
|
|
2077
|
+
for (let y = 0; y < l.length; y++)
|
|
2078
|
+
v(l[y]);
|
|
2079
|
+
f();
|
|
2080
|
+
}
|
|
2081
|
+
s(c, "mergeStream");
|
|
2082
|
+
function d() {
|
|
2083
|
+
r = !1, a.emit("queueDrain"), i && a.end();
|
|
2084
|
+
}
|
|
2085
|
+
return s(d, "endStream"), a.setMaxListeners(0), a.add = u, a.on("unpipe", function(l) {
|
|
2086
|
+
l.emit("merge2UnpipeEnd");
|
|
2087
|
+
}), t.length && u.apply(null, t), a;
|
|
2088
|
+
}
|
|
2089
|
+
s(kc, "merge2");
|
|
2090
|
+
function bi(e, t) {
|
|
2091
|
+
if (Array.isArray(e))
|
|
2092
|
+
for (let r = 0, n = e.length; r < n; r++)
|
|
2093
|
+
e[r] = bi(e[r], t);
|
|
2094
|
+
else {
|
|
2095
|
+
if (!e._readableState && e.pipe && (e = e.pipe(Ri(t))), !e._readableState || !e.pause || !e.pipe)
|
|
2096
|
+
throw new Error("Only readable stream can be merged.");
|
|
2097
|
+
e.pause();
|
|
2098
|
+
}
|
|
2099
|
+
return e;
|
|
2100
|
+
}
|
|
2101
|
+
s(bi, "pauseStreams");
|
|
2102
|
+
});
|
|
2103
|
+
|
|
2104
|
+
// ../../node_modules/fast-glob/out/utils/stream.js
|
|
2105
|
+
var Ti = m((ct) => {
|
|
2106
|
+
"use strict";
|
|
2107
|
+
Object.defineProperty(ct, "__esModule", { value: !0 });
|
|
2108
|
+
ct.merge = void 0;
|
|
2109
|
+
var Ic = Pi();
|
|
2110
|
+
function Hc(e) {
|
|
2111
|
+
let t = Ic(e);
|
|
2112
|
+
return e.forEach((r) => {
|
|
2113
|
+
r.once("error", (n) => t.emit("error", n));
|
|
2114
|
+
}), t.once("close", () => xi(e)), t.once("end", () => xi(e)), t;
|
|
2115
|
+
}
|
|
2116
|
+
s(Hc, "merge");
|
|
2117
|
+
ct.merge = Hc;
|
|
2118
|
+
function xi(e) {
|
|
2119
|
+
e.forEach((t) => t.emit("close"));
|
|
2120
|
+
}
|
|
2121
|
+
s(xi, "propagateCloseEventToSources");
|
|
2122
|
+
});
|
|
2123
|
+
|
|
2124
|
+
// ../../node_modules/fast-glob/out/utils/string.js
|
|
2125
|
+
var Ci = m((Oe) => {
|
|
2126
|
+
"use strict";
|
|
2127
|
+
Object.defineProperty(Oe, "__esModule", { value: !0 });
|
|
2128
|
+
Oe.isEmpty = Oe.isString = void 0;
|
|
2129
|
+
function Nc(e) {
|
|
2130
|
+
return typeof e == "string";
|
|
2131
|
+
}
|
|
2132
|
+
s(Nc, "isString");
|
|
2133
|
+
Oe.isString = Nc;
|
|
2134
|
+
function $c(e) {
|
|
2135
|
+
return e === "";
|
|
2136
|
+
}
|
|
2137
|
+
s($c, "isEmpty");
|
|
2138
|
+
Oe.isEmpty = $c;
|
|
2139
|
+
});
|
|
2140
|
+
|
|
2141
|
+
// ../../node_modules/fast-glob/out/utils/index.js
|
|
2142
|
+
var he = m((V) => {
|
|
2143
|
+
"use strict";
|
|
2144
|
+
Object.defineProperty(V, "__esModule", { value: !0 });
|
|
2145
|
+
V.string = V.stream = V.pattern = V.path = V.fs = V.errno = V.array = void 0;
|
|
2146
|
+
var Mc = Wn();
|
|
2147
|
+
V.array = Mc;
|
|
2148
|
+
var Dc = Un();
|
|
2149
|
+
V.errno = Dc;
|
|
2150
|
+
var Fc = Vn();
|
|
2151
|
+
V.fs = Fc;
|
|
2152
|
+
var qc = Qn();
|
|
2153
|
+
V.path = qc;
|
|
2154
|
+
var Bc = Ai();
|
|
2155
|
+
V.pattern = Bc;
|
|
2156
|
+
var Gc = Ti();
|
|
2157
|
+
V.stream = Gc;
|
|
2158
|
+
var jc = Ci();
|
|
2159
|
+
V.string = jc;
|
|
2160
|
+
});
|
|
2161
|
+
|
|
2162
|
+
// ../../node_modules/fast-glob/out/managers/tasks.js
|
|
2163
|
+
var ki = m((K) => {
|
|
2164
|
+
"use strict";
|
|
2165
|
+
Object.defineProperty(K, "__esModule", { value: !0 });
|
|
2166
|
+
K.convertPatternGroupToTask = K.convertPatternGroupsToTasks = K.groupPatternsByBaseDirectory = K.getNegativePatternsAsPositive = K.getPositivePatterns = K.convertPatternsToTasks = K.generate = void 0;
|
|
2167
|
+
var se = he();
|
|
2168
|
+
function Wc(e, t) {
|
|
2169
|
+
let r = wi(e, t), n = wi(t.ignore, t), i = Oi(r), o = Li(r, n), a = i.filter((l) => se.pattern.isStaticPattern(l, t)), u = i.filter((l) => se.pattern.isDynamicPattern(l, t)), c = ur(
|
|
2170
|
+
a,
|
|
2171
|
+
o,
|
|
2172
|
+
/* dynamic */
|
|
2173
|
+
!1
|
|
2174
|
+
), d = ur(
|
|
2175
|
+
u,
|
|
2176
|
+
o,
|
|
2177
|
+
/* dynamic */
|
|
2178
|
+
!0
|
|
2179
|
+
);
|
|
2180
|
+
return c.concat(d);
|
|
2181
|
+
}
|
|
2182
|
+
s(Wc, "generate");
|
|
2183
|
+
K.generate = Wc;
|
|
2184
|
+
function wi(e, t) {
|
|
2185
|
+
let r = e;
|
|
2186
|
+
return t.braceExpansion && (r = se.pattern.expandPatternsWithBraceExpansion(r)), t.baseNameMatch && (r = r.map((n) => n.includes("/") ? n : `**/${n}`)), r.map((n) => se.pattern.removeDuplicateSlashes(n));
|
|
2187
|
+
}
|
|
2188
|
+
s(wi, "processPatterns");
|
|
2189
|
+
function ur(e, t, r) {
|
|
2190
|
+
let n = [], i = se.pattern.getPatternsOutsideCurrentDirectory(e), o = se.pattern.getPatternsInsideCurrentDirectory(e), a = cr(i), u = cr(o);
|
|
2191
|
+
return n.push(...lr(a, t, r)), "." in u ? n.push(fr(".", o, t, r)) : n.push(...lr(u, t, r)), n;
|
|
2192
|
+
}
|
|
2193
|
+
s(ur, "convertPatternsToTasks");
|
|
2194
|
+
K.convertPatternsToTasks = ur;
|
|
2195
|
+
function Oi(e) {
|
|
2196
|
+
return se.pattern.getPositivePatterns(e);
|
|
2197
|
+
}
|
|
2198
|
+
s(Oi, "getPositivePatterns");
|
|
2199
|
+
K.getPositivePatterns = Oi;
|
|
2200
|
+
function Li(e, t) {
|
|
2201
|
+
return se.pattern.getNegativePatterns(e).concat(t).map(se.pattern.convertToPositivePattern);
|
|
2202
|
+
}
|
|
2203
|
+
s(Li, "getNegativePatternsAsPositive");
|
|
2204
|
+
K.getNegativePatternsAsPositive = Li;
|
|
2205
|
+
function cr(e) {
|
|
2206
|
+
let t = {};
|
|
2207
|
+
return e.reduce((r, n) => {
|
|
2208
|
+
let i = se.pattern.getBaseDirectory(n);
|
|
2209
|
+
return i in r ? r[i].push(n) : r[i] = [n], r;
|
|
2210
|
+
}, t);
|
|
2211
|
+
}
|
|
2212
|
+
s(cr, "groupPatternsByBaseDirectory");
|
|
2213
|
+
K.groupPatternsByBaseDirectory = cr;
|
|
2214
|
+
function lr(e, t, r) {
|
|
2215
|
+
return Object.keys(e).map((n) => fr(n, e[n], t, r));
|
|
2216
|
+
}
|
|
2217
|
+
s(lr, "convertPatternGroupsToTasks");
|
|
2218
|
+
K.convertPatternGroupsToTasks = lr;
|
|
2219
|
+
function fr(e, t, r, n) {
|
|
2220
|
+
return {
|
|
2221
|
+
dynamic: n,
|
|
2222
|
+
positive: t,
|
|
2223
|
+
negative: r,
|
|
2224
|
+
base: e,
|
|
2225
|
+
patterns: [].concat(t, r.map(se.pattern.convertToNegativePattern))
|
|
2226
|
+
};
|
|
2227
|
+
}
|
|
2228
|
+
s(fr, "convertPatternGroupToTask");
|
|
2229
|
+
K.convertPatternGroupToTask = fr;
|
|
2230
|
+
});
|
|
2231
|
+
|
|
2232
|
+
// ../../node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
2233
|
+
var Hi = m((lt) => {
|
|
2234
|
+
"use strict";
|
|
2235
|
+
Object.defineProperty(lt, "__esModule", { value: !0 });
|
|
2236
|
+
lt.read = void 0;
|
|
2237
|
+
function Uc(e, t, r) {
|
|
2238
|
+
t.fs.lstat(e, (n, i) => {
|
|
2239
|
+
if (n !== null) {
|
|
2240
|
+
Ii(r, n);
|
|
2241
|
+
return;
|
|
2242
|
+
}
|
|
2243
|
+
if (!i.isSymbolicLink() || !t.followSymbolicLink) {
|
|
2244
|
+
pr(r, i);
|
|
2245
|
+
return;
|
|
2246
|
+
}
|
|
2247
|
+
t.fs.stat(e, (o, a) => {
|
|
2248
|
+
if (o !== null) {
|
|
2249
|
+
if (t.throwErrorOnBrokenSymbolicLink) {
|
|
2250
|
+
Ii(r, o);
|
|
2251
|
+
return;
|
|
2252
|
+
}
|
|
2253
|
+
pr(r, i);
|
|
2254
|
+
return;
|
|
2255
|
+
}
|
|
2256
|
+
t.markSymbolicLink && (a.isSymbolicLink = () => !0), pr(r, a);
|
|
2257
|
+
});
|
|
2258
|
+
});
|
|
2259
|
+
}
|
|
2260
|
+
s(Uc, "read");
|
|
2261
|
+
lt.read = Uc;
|
|
2262
|
+
function Ii(e, t) {
|
|
2263
|
+
e(t);
|
|
2264
|
+
}
|
|
2265
|
+
s(Ii, "callFailureCallback");
|
|
2266
|
+
function pr(e, t) {
|
|
2267
|
+
e(null, t);
|
|
2268
|
+
}
|
|
2269
|
+
s(pr, "callSuccessCallback");
|
|
2270
|
+
});
|
|
2271
|
+
|
|
2272
|
+
// ../../node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
2273
|
+
var Ni = m((ft) => {
|
|
2274
|
+
"use strict";
|
|
2275
|
+
Object.defineProperty(ft, "__esModule", { value: !0 });
|
|
2276
|
+
ft.read = void 0;
|
|
2277
|
+
function Vc(e, t) {
|
|
2278
|
+
let r = t.fs.lstatSync(e);
|
|
2279
|
+
if (!r.isSymbolicLink() || !t.followSymbolicLink)
|
|
2280
|
+
return r;
|
|
2281
|
+
try {
|
|
2282
|
+
let n = t.fs.statSync(e);
|
|
2283
|
+
return t.markSymbolicLink && (n.isSymbolicLink = () => !0), n;
|
|
2284
|
+
} catch (n) {
|
|
2285
|
+
if (!t.throwErrorOnBrokenSymbolicLink)
|
|
2286
|
+
return r;
|
|
2287
|
+
throw n;
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
s(Vc, "read");
|
|
2291
|
+
ft.read = Vc;
|
|
2292
|
+
});
|
|
2293
|
+
|
|
2294
|
+
// ../../node_modules/@nodelib/fs.stat/out/adapters/fs.js
|
|
2295
|
+
var $i = m((ge) => {
|
|
2296
|
+
"use strict";
|
|
2297
|
+
Object.defineProperty(ge, "__esModule", { value: !0 });
|
|
2298
|
+
ge.createFileSystemAdapter = ge.FILE_SYSTEM_ADAPTER = void 0;
|
|
2299
|
+
var pt = q("fs");
|
|
2300
|
+
ge.FILE_SYSTEM_ADAPTER = {
|
|
2301
|
+
lstat: pt.lstat,
|
|
2302
|
+
stat: pt.stat,
|
|
2303
|
+
lstatSync: pt.lstatSync,
|
|
2304
|
+
statSync: pt.statSync
|
|
2305
|
+
};
|
|
2306
|
+
function Kc(e) {
|
|
2307
|
+
return e === void 0 ? ge.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, ge.FILE_SYSTEM_ADAPTER), e);
|
|
2308
|
+
}
|
|
2309
|
+
s(Kc, "createFileSystemAdapter");
|
|
2310
|
+
ge.createFileSystemAdapter = Kc;
|
|
2311
|
+
});
|
|
2312
|
+
|
|
2313
|
+
// ../../node_modules/@nodelib/fs.stat/out/settings.js
|
|
2314
|
+
var Mi = m((dr) => {
|
|
2315
|
+
"use strict";
|
|
2316
|
+
Object.defineProperty(dr, "__esModule", { value: !0 });
|
|
2317
|
+
var Xc = $i(), hr = class {
|
|
2318
|
+
static {
|
|
2319
|
+
s(this, "Settings");
|
|
2320
|
+
}
|
|
2321
|
+
constructor(t = {}) {
|
|
2322
|
+
this._options = t, this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, !0), this.fs = Xc.createFileSystemAdapter(this._options.fs), this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0);
|
|
2323
|
+
}
|
|
2324
|
+
_getValue(t, r) {
|
|
2325
|
+
return t ?? r;
|
|
2326
|
+
}
|
|
2327
|
+
};
|
|
2328
|
+
dr.default = hr;
|
|
2329
|
+
});
|
|
2330
|
+
|
|
2331
|
+
// ../../node_modules/@nodelib/fs.stat/out/index.js
|
|
2332
|
+
var xe = m((ye) => {
|
|
2333
|
+
"use strict";
|
|
2334
|
+
Object.defineProperty(ye, "__esModule", { value: !0 });
|
|
2335
|
+
ye.statSync = ye.stat = ye.Settings = void 0;
|
|
2336
|
+
var Di = Hi(), Yc = Ni(), _r = Mi();
|
|
2337
|
+
ye.Settings = _r.default;
|
|
2338
|
+
function Qc(e, t, r) {
|
|
2339
|
+
if (typeof t == "function") {
|
|
2340
|
+
Di.read(e, gr(), t);
|
|
2341
|
+
return;
|
|
2342
|
+
}
|
|
2343
|
+
Di.read(e, gr(t), r);
|
|
2344
|
+
}
|
|
2345
|
+
s(Qc, "stat");
|
|
2346
|
+
ye.stat = Qc;
|
|
2347
|
+
function zc(e, t) {
|
|
2348
|
+
let r = gr(t);
|
|
2349
|
+
return Yc.read(e, r);
|
|
2350
|
+
}
|
|
2351
|
+
s(zc, "statSync");
|
|
2352
|
+
ye.statSync = zc;
|
|
2353
|
+
function gr(e = {}) {
|
|
2354
|
+
return e instanceof _r.default ? e : new _r.default(e);
|
|
2355
|
+
}
|
|
2356
|
+
s(gr, "getSettings");
|
|
2357
|
+
});
|
|
2358
|
+
|
|
2359
|
+
// ../../node_modules/queue-microtask/index.js
|
|
2360
|
+
var Bi = m((Th, qi) => {
|
|
2361
|
+
var Fi;
|
|
2362
|
+
qi.exports = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window < "u" ? window : global) : (e) => (Fi || (Fi = Promise.resolve())).then(e).catch((t) => setTimeout(() => {
|
|
2363
|
+
throw t;
|
|
2364
|
+
}, 0));
|
|
2365
|
+
});
|
|
2366
|
+
|
|
2367
|
+
// ../../node_modules/run-parallel/index.js
|
|
2368
|
+
var ji = m((Ch, Gi) => {
|
|
2369
|
+
Gi.exports = Jc;
|
|
2370
|
+
var Zc = Bi();
|
|
2371
|
+
function Jc(e, t) {
|
|
2372
|
+
let r, n, i, o = !0;
|
|
2373
|
+
Array.isArray(e) ? (r = [], n = e.length) : (i = Object.keys(e), r = {}, n = i.length);
|
|
2374
|
+
function a(c) {
|
|
2375
|
+
function d() {
|
|
2376
|
+
t && t(c, r), t = null;
|
|
2377
|
+
}
|
|
2378
|
+
s(d, "end"), o ? Zc(d) : d();
|
|
2379
|
+
}
|
|
2380
|
+
s(a, "done");
|
|
2381
|
+
function u(c, d, l) {
|
|
2382
|
+
r[c] = l, (--n === 0 || d) && a(d);
|
|
2383
|
+
}
|
|
2384
|
+
s(u, "each"), n ? i ? i.forEach(function(c) {
|
|
2385
|
+
e[c](function(d, l) {
|
|
2386
|
+
u(c, d, l);
|
|
2387
|
+
});
|
|
2388
|
+
}) : e.forEach(function(c, d) {
|
|
2389
|
+
c(function(l, g) {
|
|
2390
|
+
u(d, l, g);
|
|
2391
|
+
});
|
|
2392
|
+
}) : a(null), o = !1;
|
|
2393
|
+
}
|
|
2394
|
+
s(Jc, "runParallel");
|
|
2395
|
+
});
|
|
2396
|
+
|
|
2397
|
+
// ../../node_modules/@nodelib/fs.scandir/out/constants.js
|
|
2398
|
+
var yr = m((dt) => {
|
|
2399
|
+
"use strict";
|
|
2400
|
+
Object.defineProperty(dt, "__esModule", { value: !0 });
|
|
2401
|
+
dt.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
2402
|
+
var ht = process.versions.node.split(".");
|
|
2403
|
+
if (ht[0] === void 0 || ht[1] === void 0)
|
|
2404
|
+
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
2405
|
+
var Wi = Number.parseInt(ht[0], 10), el = Number.parseInt(ht[1], 10), Ui = 10, tl = 10, rl = Wi > Ui, nl = Wi === Ui && el >= tl;
|
|
2406
|
+
dt.IS_SUPPORT_READDIR_WITH_FILE_TYPES = rl || nl;
|
|
2407
|
+
});
|
|
2408
|
+
|
|
2409
|
+
// ../../node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
2410
|
+
var Vi = m((_t) => {
|
|
2411
|
+
"use strict";
|
|
2412
|
+
Object.defineProperty(_t, "__esModule", { value: !0 });
|
|
2413
|
+
_t.createDirentFromStats = void 0;
|
|
2414
|
+
var Sr = class {
|
|
2415
|
+
static {
|
|
2416
|
+
s(this, "DirentFromStats");
|
|
2417
|
+
}
|
|
2418
|
+
constructor(t, r) {
|
|
2419
|
+
this.name = t, this.isBlockDevice = r.isBlockDevice.bind(r), this.isCharacterDevice = r.isCharacterDevice.bind(r), this.isDirectory = r.isDirectory.bind(r), this.isFIFO = r.isFIFO.bind(r), this.isFile = r.isFile.bind(r), this.isSocket = r.isSocket.bind(r), this.isSymbolicLink = r.isSymbolicLink.bind(r);
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
function sl(e, t) {
|
|
2423
|
+
return new Sr(e, t);
|
|
2424
|
+
}
|
|
2425
|
+
s(sl, "createDirentFromStats");
|
|
2426
|
+
_t.createDirentFromStats = sl;
|
|
2427
|
+
});
|
|
2428
|
+
|
|
2429
|
+
// ../../node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
2430
|
+
var mr = m((gt) => {
|
|
2431
|
+
"use strict";
|
|
2432
|
+
Object.defineProperty(gt, "__esModule", { value: !0 });
|
|
2433
|
+
gt.fs = void 0;
|
|
2434
|
+
var il = Vi();
|
|
2435
|
+
gt.fs = il;
|
|
2436
|
+
});
|
|
2437
|
+
|
|
2438
|
+
// ../../node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
2439
|
+
var Er = m((yt) => {
|
|
2440
|
+
"use strict";
|
|
2441
|
+
Object.defineProperty(yt, "__esModule", { value: !0 });
|
|
2442
|
+
yt.joinPathSegments = void 0;
|
|
2443
|
+
function ol(e, t, r) {
|
|
2444
|
+
return e.endsWith(r) ? e + t : e + r + t;
|
|
2445
|
+
}
|
|
2446
|
+
s(ol, "joinPathSegments");
|
|
2447
|
+
yt.joinPathSegments = ol;
|
|
2448
|
+
});
|
|
2449
|
+
|
|
2450
|
+
// ../../node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
2451
|
+
var Zi = m((Se) => {
|
|
2452
|
+
"use strict";
|
|
2453
|
+
Object.defineProperty(Se, "__esModule", { value: !0 });
|
|
2454
|
+
Se.readdir = Se.readdirWithFileTypes = Se.read = void 0;
|
|
2455
|
+
var al = xe(), Ki = ji(), ul = yr(), Xi = mr(), Yi = Er();
|
|
2456
|
+
function cl(e, t, r) {
|
|
2457
|
+
if (!t.stats && ul.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
2458
|
+
Qi(e, t, r);
|
|
2459
|
+
return;
|
|
2460
|
+
}
|
|
2461
|
+
zi(e, t, r);
|
|
2462
|
+
}
|
|
2463
|
+
s(cl, "read");
|
|
2464
|
+
Se.read = cl;
|
|
2465
|
+
function Qi(e, t, r) {
|
|
2466
|
+
t.fs.readdir(e, { withFileTypes: !0 }, (n, i) => {
|
|
2467
|
+
if (n !== null) {
|
|
2468
|
+
St(r, n);
|
|
2469
|
+
return;
|
|
2470
|
+
}
|
|
2471
|
+
let o = i.map((u) => ({
|
|
2472
|
+
dirent: u,
|
|
2473
|
+
name: u.name,
|
|
2474
|
+
path: Yi.joinPathSegments(e, u.name, t.pathSegmentSeparator)
|
|
2475
|
+
}));
|
|
2476
|
+
if (!t.followSymbolicLinks) {
|
|
2477
|
+
Ar(r, o);
|
|
2478
|
+
return;
|
|
2479
|
+
}
|
|
2480
|
+
let a = o.map((u) => ll(u, t));
|
|
2481
|
+
Ki(a, (u, c) => {
|
|
2482
|
+
if (u !== null) {
|
|
2483
|
+
St(r, u);
|
|
2484
|
+
return;
|
|
2485
|
+
}
|
|
2486
|
+
Ar(r, c);
|
|
2487
|
+
});
|
|
2488
|
+
});
|
|
2489
|
+
}
|
|
2490
|
+
s(Qi, "readdirWithFileTypes");
|
|
2491
|
+
Se.readdirWithFileTypes = Qi;
|
|
2492
|
+
function ll(e, t) {
|
|
2493
|
+
return (r) => {
|
|
2494
|
+
if (!e.dirent.isSymbolicLink()) {
|
|
2495
|
+
r(null, e);
|
|
2496
|
+
return;
|
|
2497
|
+
}
|
|
2498
|
+
t.fs.stat(e.path, (n, i) => {
|
|
2499
|
+
if (n !== null) {
|
|
2500
|
+
if (t.throwErrorOnBrokenSymbolicLink) {
|
|
2501
|
+
r(n);
|
|
2502
|
+
return;
|
|
2503
|
+
}
|
|
2504
|
+
r(null, e);
|
|
2505
|
+
return;
|
|
2506
|
+
}
|
|
2507
|
+
e.dirent = Xi.fs.createDirentFromStats(e.name, i), r(null, e);
|
|
2508
|
+
});
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
s(ll, "makeRplTaskEntry");
|
|
2512
|
+
function zi(e, t, r) {
|
|
2513
|
+
t.fs.readdir(e, (n, i) => {
|
|
2514
|
+
if (n !== null) {
|
|
2515
|
+
St(r, n);
|
|
2516
|
+
return;
|
|
2517
|
+
}
|
|
2518
|
+
let o = i.map((a) => {
|
|
2519
|
+
let u = Yi.joinPathSegments(e, a, t.pathSegmentSeparator);
|
|
2520
|
+
return (c) => {
|
|
2521
|
+
al.stat(u, t.fsStatSettings, (d, l) => {
|
|
2522
|
+
if (d !== null) {
|
|
2523
|
+
c(d);
|
|
2524
|
+
return;
|
|
2525
|
+
}
|
|
2526
|
+
let g = {
|
|
2527
|
+
name: a,
|
|
2528
|
+
path: u,
|
|
2529
|
+
dirent: Xi.fs.createDirentFromStats(a, l)
|
|
2530
|
+
};
|
|
2531
|
+
t.stats && (g.stats = l), c(null, g);
|
|
2532
|
+
});
|
|
2533
|
+
};
|
|
2534
|
+
});
|
|
2535
|
+
Ki(o, (a, u) => {
|
|
2536
|
+
if (a !== null) {
|
|
2537
|
+
St(r, a);
|
|
2538
|
+
return;
|
|
2539
|
+
}
|
|
2540
|
+
Ar(r, u);
|
|
2541
|
+
});
|
|
2542
|
+
});
|
|
2543
|
+
}
|
|
2544
|
+
s(zi, "readdir");
|
|
2545
|
+
Se.readdir = zi;
|
|
2546
|
+
function St(e, t) {
|
|
2547
|
+
e(t);
|
|
2548
|
+
}
|
|
2549
|
+
s(St, "callFailureCallback");
|
|
2550
|
+
function Ar(e, t) {
|
|
2551
|
+
e(null, t);
|
|
2552
|
+
}
|
|
2553
|
+
s(Ar, "callSuccessCallback");
|
|
2554
|
+
});
|
|
2555
|
+
|
|
2556
|
+
// ../../node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
2557
|
+
var no = m((me) => {
|
|
2558
|
+
"use strict";
|
|
2559
|
+
Object.defineProperty(me, "__esModule", { value: !0 });
|
|
2560
|
+
me.readdir = me.readdirWithFileTypes = me.read = void 0;
|
|
2561
|
+
var fl = xe(), pl = yr(), Ji = mr(), eo = Er();
|
|
2562
|
+
function hl(e, t) {
|
|
2563
|
+
return !t.stats && pl.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? to(e, t) : ro(e, t);
|
|
2564
|
+
}
|
|
2565
|
+
s(hl, "read");
|
|
2566
|
+
me.read = hl;
|
|
2567
|
+
function to(e, t) {
|
|
2568
|
+
return t.fs.readdirSync(e, { withFileTypes: !0 }).map((n) => {
|
|
2569
|
+
let i = {
|
|
2570
|
+
dirent: n,
|
|
2571
|
+
name: n.name,
|
|
2572
|
+
path: eo.joinPathSegments(e, n.name, t.pathSegmentSeparator)
|
|
2573
|
+
};
|
|
2574
|
+
if (i.dirent.isSymbolicLink() && t.followSymbolicLinks)
|
|
2575
|
+
try {
|
|
2576
|
+
let o = t.fs.statSync(i.path);
|
|
2577
|
+
i.dirent = Ji.fs.createDirentFromStats(i.name, o);
|
|
2578
|
+
} catch (o) {
|
|
2579
|
+
if (t.throwErrorOnBrokenSymbolicLink)
|
|
2580
|
+
throw o;
|
|
2581
|
+
}
|
|
2582
|
+
return i;
|
|
2583
|
+
});
|
|
2584
|
+
}
|
|
2585
|
+
s(to, "readdirWithFileTypes");
|
|
2586
|
+
me.readdirWithFileTypes = to;
|
|
2587
|
+
function ro(e, t) {
|
|
2588
|
+
return t.fs.readdirSync(e).map((n) => {
|
|
2589
|
+
let i = eo.joinPathSegments(e, n, t.pathSegmentSeparator), o = fl.statSync(i, t.fsStatSettings), a = {
|
|
2590
|
+
name: n,
|
|
2591
|
+
path: i,
|
|
2592
|
+
dirent: Ji.fs.createDirentFromStats(n, o)
|
|
2593
|
+
};
|
|
2594
|
+
return t.stats && (a.stats = o), a;
|
|
2595
|
+
});
|
|
2596
|
+
}
|
|
2597
|
+
s(ro, "readdir");
|
|
2598
|
+
me.readdir = ro;
|
|
2599
|
+
});
|
|
2600
|
+
|
|
2601
|
+
// ../../node_modules/@nodelib/fs.scandir/out/adapters/fs.js
|
|
2602
|
+
var so = m((Ee) => {
|
|
2603
|
+
"use strict";
|
|
2604
|
+
Object.defineProperty(Ee, "__esModule", { value: !0 });
|
|
2605
|
+
Ee.createFileSystemAdapter = Ee.FILE_SYSTEM_ADAPTER = void 0;
|
|
2606
|
+
var Le = q("fs");
|
|
2607
|
+
Ee.FILE_SYSTEM_ADAPTER = {
|
|
2608
|
+
lstat: Le.lstat,
|
|
2609
|
+
stat: Le.stat,
|
|
2610
|
+
lstatSync: Le.lstatSync,
|
|
2611
|
+
statSync: Le.statSync,
|
|
2612
|
+
readdir: Le.readdir,
|
|
2613
|
+
readdirSync: Le.readdirSync
|
|
2614
|
+
};
|
|
2615
|
+
function dl(e) {
|
|
2616
|
+
return e === void 0 ? Ee.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, Ee.FILE_SYSTEM_ADAPTER), e);
|
|
2617
|
+
}
|
|
2618
|
+
s(dl, "createFileSystemAdapter");
|
|
2619
|
+
Ee.createFileSystemAdapter = dl;
|
|
2620
|
+
});
|
|
2621
|
+
|
|
2622
|
+
// ../../node_modules/@nodelib/fs.scandir/out/settings.js
|
|
2623
|
+
var io = m((br) => {
|
|
2624
|
+
"use strict";
|
|
2625
|
+
Object.defineProperty(br, "__esModule", { value: !0 });
|
|
2626
|
+
var _l = q("path"), gl = xe(), yl = so(), Rr = class {
|
|
2627
|
+
static {
|
|
2628
|
+
s(this, "Settings");
|
|
2629
|
+
}
|
|
2630
|
+
constructor(t = {}) {
|
|
2631
|
+
this._options = t, this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !1), this.fs = yl.createFileSystemAdapter(this._options.fs), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, _l.sep), this.stats = this._getValue(this._options.stats, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0), this.fsStatSettings = new gl.Settings({
|
|
2632
|
+
followSymbolicLink: this.followSymbolicLinks,
|
|
2633
|
+
fs: this.fs,
|
|
2634
|
+
throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
|
|
2635
|
+
});
|
|
2636
|
+
}
|
|
2637
|
+
_getValue(t, r) {
|
|
2638
|
+
return t ?? r;
|
|
2639
|
+
}
|
|
2640
|
+
};
|
|
2641
|
+
br.default = Rr;
|
|
2642
|
+
});
|
|
2643
|
+
|
|
2644
|
+
// ../../node_modules/@nodelib/fs.scandir/out/index.js
|
|
2645
|
+
var mt = m((Ae) => {
|
|
2646
|
+
"use strict";
|
|
2647
|
+
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
|
2648
|
+
Ae.Settings = Ae.scandirSync = Ae.scandir = void 0;
|
|
2649
|
+
var oo = Zi(), Sl = no(), vr = io();
|
|
2650
|
+
Ae.Settings = vr.default;
|
|
2651
|
+
function ml(e, t, r) {
|
|
2652
|
+
if (typeof t == "function") {
|
|
2653
|
+
oo.read(e, Pr(), t);
|
|
2654
|
+
return;
|
|
2655
|
+
}
|
|
2656
|
+
oo.read(e, Pr(t), r);
|
|
2657
|
+
}
|
|
2658
|
+
s(ml, "scandir");
|
|
2659
|
+
Ae.scandir = ml;
|
|
2660
|
+
function El(e, t) {
|
|
2661
|
+
let r = Pr(t);
|
|
2662
|
+
return Sl.read(e, r);
|
|
2663
|
+
}
|
|
2664
|
+
s(El, "scandirSync");
|
|
2665
|
+
Ae.scandirSync = El;
|
|
2666
|
+
function Pr(e = {}) {
|
|
2667
|
+
return e instanceof vr.default ? e : new vr.default(e);
|
|
2668
|
+
}
|
|
2669
|
+
s(Pr, "getSettings");
|
|
2670
|
+
});
|
|
2671
|
+
|
|
2672
|
+
// ../../node_modules/reusify/reusify.js
|
|
2673
|
+
var uo = m((Vh, ao) => {
|
|
2674
|
+
"use strict";
|
|
2675
|
+
function Al(e) {
|
|
2676
|
+
var t = new e(), r = t;
|
|
2677
|
+
function n() {
|
|
2678
|
+
var o = t;
|
|
2679
|
+
return o.next ? t = o.next : (t = new e(), r = t), o.next = null, o;
|
|
2680
|
+
}
|
|
2681
|
+
s(n, "get");
|
|
2682
|
+
function i(o) {
|
|
2683
|
+
r.next = o, r = o;
|
|
2684
|
+
}
|
|
2685
|
+
return s(i, "release"), {
|
|
2686
|
+
get: n,
|
|
2687
|
+
release: i
|
|
2688
|
+
};
|
|
2689
|
+
}
|
|
2690
|
+
s(Al, "reusify");
|
|
2691
|
+
ao.exports = Al;
|
|
2692
|
+
});
|
|
2693
|
+
|
|
2694
|
+
// ../../node_modules/fastq/queue.js
|
|
2695
|
+
var lo = m((Xh, xr) => {
|
|
2696
|
+
"use strict";
|
|
2697
|
+
var Rl = uo();
|
|
2698
|
+
function co(e, t, r) {
|
|
2699
|
+
if (typeof e == "function" && (r = t, t = e, e = null), !(r >= 1))
|
|
2700
|
+
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
2701
|
+
var n = Rl(bl), i = null, o = null, a = 0, u = null, c = {
|
|
2702
|
+
push: E,
|
|
2703
|
+
drain: re,
|
|
2704
|
+
saturated: re,
|
|
2705
|
+
pause: l,
|
|
2706
|
+
paused: !1,
|
|
2707
|
+
get concurrency() {
|
|
2708
|
+
return r;
|
|
2709
|
+
},
|
|
2710
|
+
set concurrency(T) {
|
|
2711
|
+
if (!(T >= 1))
|
|
2712
|
+
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
2713
|
+
if (r = T, !c.paused)
|
|
2714
|
+
for (; i && a < r; )
|
|
2715
|
+
a++, L();
|
|
2716
|
+
},
|
|
2717
|
+
running: d,
|
|
2718
|
+
resume: v,
|
|
2719
|
+
idle: y,
|
|
2720
|
+
length: g,
|
|
2721
|
+
getQueue: f,
|
|
2722
|
+
unshift: O,
|
|
2723
|
+
empty: re,
|
|
2724
|
+
kill: U,
|
|
2725
|
+
killAndDrain: $,
|
|
2726
|
+
error: ee
|
|
2727
|
+
};
|
|
2728
|
+
return c;
|
|
2729
|
+
function d() {
|
|
2730
|
+
return a;
|
|
2731
|
+
}
|
|
2732
|
+
function l() {
|
|
2733
|
+
c.paused = !0;
|
|
2734
|
+
}
|
|
2735
|
+
function g() {
|
|
2736
|
+
for (var T = i, M = 0; T; )
|
|
2737
|
+
T = T.next, M++;
|
|
2738
|
+
return M;
|
|
2739
|
+
}
|
|
2740
|
+
function f() {
|
|
2741
|
+
for (var T = i, M = []; T; )
|
|
2742
|
+
M.push(T.value), T = T.next;
|
|
2743
|
+
return M;
|
|
2744
|
+
}
|
|
2745
|
+
function v() {
|
|
2746
|
+
if (c.paused) {
|
|
2747
|
+
if (c.paused = !1, i === null) {
|
|
2748
|
+
a++, L();
|
|
2749
|
+
return;
|
|
2750
|
+
}
|
|
2751
|
+
for (; i && a < r; )
|
|
2752
|
+
a++, L();
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
function y() {
|
|
2756
|
+
return a === 0 && c.length() === 0;
|
|
2757
|
+
}
|
|
2758
|
+
function E(T, M) {
|
|
2759
|
+
var P = n.get();
|
|
2760
|
+
P.context = e, P.release = L, P.value = T, P.callback = M || re, P.errorHandler = u, a >= r || c.paused ? o ? (o.next = P, o = P) : (i = P, o = P, c.saturated()) : (a++, t.call(e, P.value, P.worked));
|
|
2761
|
+
}
|
|
2762
|
+
function O(T, M) {
|
|
2763
|
+
var P = n.get();
|
|
2764
|
+
P.context = e, P.release = L, P.value = T, P.callback = M || re, P.errorHandler = u, a >= r || c.paused ? i ? (P.next = i, i = P) : (i = P, o = P, c.saturated()) : (a++, t.call(e, P.value, P.worked));
|
|
2765
|
+
}
|
|
2766
|
+
function L(T) {
|
|
2767
|
+
T && n.release(T);
|
|
2768
|
+
var M = i;
|
|
2769
|
+
M && a <= r ? c.paused ? a-- : (o === i && (o = null), i = M.next, M.next = null, t.call(e, M.value, M.worked), o === null && c.empty()) : --a === 0 && c.drain();
|
|
2770
|
+
}
|
|
2771
|
+
function U() {
|
|
2772
|
+
i = null, o = null, c.drain = re;
|
|
2773
|
+
}
|
|
2774
|
+
function $() {
|
|
2775
|
+
i = null, o = null, c.drain(), c.drain = re;
|
|
2776
|
+
}
|
|
2777
|
+
function ee(T) {
|
|
2778
|
+
u = T;
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
s(co, "fastqueue");
|
|
2782
|
+
function re() {
|
|
2783
|
+
}
|
|
2784
|
+
s(re, "noop");
|
|
2785
|
+
function bl() {
|
|
2786
|
+
this.value = null, this.callback = re, this.next = null, this.release = re, this.context = null, this.errorHandler = null;
|
|
2787
|
+
var e = this;
|
|
2788
|
+
this.worked = /* @__PURE__ */ s(function(r, n) {
|
|
2789
|
+
var i = e.callback, o = e.errorHandler, a = e.value;
|
|
2790
|
+
e.value = null, e.callback = re, e.errorHandler && o(r, a), i.call(e.context, r, n), e.release(e);
|
|
2791
|
+
}, "worked");
|
|
2792
|
+
}
|
|
2793
|
+
s(bl, "Task");
|
|
2794
|
+
function vl(e, t, r) {
|
|
2795
|
+
typeof e == "function" && (r = t, t = e, e = null);
|
|
2796
|
+
function n(l, g) {
|
|
2797
|
+
t.call(this, l).then(function(f) {
|
|
2798
|
+
g(null, f);
|
|
2799
|
+
}, g);
|
|
2800
|
+
}
|
|
2801
|
+
s(n, "asyncWrapper");
|
|
2802
|
+
var i = co(e, n, r), o = i.push, a = i.unshift;
|
|
2803
|
+
return i.push = u, i.unshift = c, i.drained = d, i;
|
|
2804
|
+
function u(l) {
|
|
2805
|
+
var g = new Promise(function(f, v) {
|
|
2806
|
+
o(l, function(y, E) {
|
|
2807
|
+
if (y) {
|
|
2808
|
+
v(y);
|
|
2809
|
+
return;
|
|
2810
|
+
}
|
|
2811
|
+
f(E);
|
|
2812
|
+
});
|
|
2813
|
+
});
|
|
2814
|
+
return g.catch(re), g;
|
|
2815
|
+
}
|
|
2816
|
+
s(u, "push");
|
|
2817
|
+
function c(l) {
|
|
2818
|
+
var g = new Promise(function(f, v) {
|
|
2819
|
+
a(l, function(y, E) {
|
|
2820
|
+
if (y) {
|
|
2821
|
+
v(y);
|
|
2822
|
+
return;
|
|
2823
|
+
}
|
|
2824
|
+
f(E);
|
|
2825
|
+
});
|
|
2826
|
+
});
|
|
2827
|
+
return g.catch(re), g;
|
|
2828
|
+
}
|
|
2829
|
+
s(c, "unshift");
|
|
2830
|
+
function d() {
|
|
2831
|
+
var l = new Promise(function(g) {
|
|
2832
|
+
process.nextTick(function() {
|
|
2833
|
+
if (i.idle())
|
|
2834
|
+
g();
|
|
2835
|
+
else {
|
|
2836
|
+
var f = i.drain;
|
|
2837
|
+
i.drain = function() {
|
|
2838
|
+
typeof f == "function" && f(), g(), i.drain = f;
|
|
2839
|
+
};
|
|
2840
|
+
}
|
|
2841
|
+
});
|
|
2842
|
+
});
|
|
2843
|
+
return l;
|
|
2844
|
+
}
|
|
2845
|
+
s(d, "drained");
|
|
2846
|
+
}
|
|
2847
|
+
s(vl, "queueAsPromised");
|
|
2848
|
+
xr.exports = co;
|
|
2849
|
+
xr.exports.promise = vl;
|
|
2850
|
+
});
|
|
2851
|
+
|
|
2852
|
+
// ../../node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
2853
|
+
var Et = m((le) => {
|
|
2854
|
+
"use strict";
|
|
2855
|
+
Object.defineProperty(le, "__esModule", { value: !0 });
|
|
2856
|
+
le.joinPathSegments = le.replacePathSegmentSeparator = le.isAppliedFilter = le.isFatalError = void 0;
|
|
2857
|
+
function Pl(e, t) {
|
|
2858
|
+
return e.errorFilter === null ? !0 : !e.errorFilter(t);
|
|
2859
|
+
}
|
|
2860
|
+
s(Pl, "isFatalError");
|
|
2861
|
+
le.isFatalError = Pl;
|
|
2862
|
+
function xl(e, t) {
|
|
2863
|
+
return e === null || e(t);
|
|
2864
|
+
}
|
|
2865
|
+
s(xl, "isAppliedFilter");
|
|
2866
|
+
le.isAppliedFilter = xl;
|
|
2867
|
+
function Tl(e, t) {
|
|
2868
|
+
return e.split(/[/\\]/).join(t);
|
|
2869
|
+
}
|
|
2870
|
+
s(Tl, "replacePathSegmentSeparator");
|
|
2871
|
+
le.replacePathSegmentSeparator = Tl;
|
|
2872
|
+
function Cl(e, t, r) {
|
|
2873
|
+
return e === "" ? t : e.endsWith(r) ? e + t : e + r + t;
|
|
2874
|
+
}
|
|
2875
|
+
s(Cl, "joinPathSegments");
|
|
2876
|
+
le.joinPathSegments = Cl;
|
|
2877
|
+
});
|
|
2878
|
+
|
|
2879
|
+
// ../../node_modules/@nodelib/fs.walk/out/readers/reader.js
|
|
2880
|
+
var wr = m((Cr) => {
|
|
2881
|
+
"use strict";
|
|
2882
|
+
Object.defineProperty(Cr, "__esModule", { value: !0 });
|
|
2883
|
+
var wl = Et(), Tr = class {
|
|
2884
|
+
static {
|
|
2885
|
+
s(this, "Reader");
|
|
2886
|
+
}
|
|
2887
|
+
constructor(t, r) {
|
|
2888
|
+
this._root = t, this._settings = r, this._root = wl.replacePathSegmentSeparator(t, r.pathSegmentSeparator);
|
|
2889
|
+
}
|
|
2890
|
+
};
|
|
2891
|
+
Cr.default = Tr;
|
|
2892
|
+
});
|
|
2893
|
+
|
|
2894
|
+
// ../../node_modules/@nodelib/fs.walk/out/readers/async.js
|
|
2895
|
+
var kr = m((Lr) => {
|
|
2896
|
+
"use strict";
|
|
2897
|
+
Object.defineProperty(Lr, "__esModule", { value: !0 });
|
|
2898
|
+
var Ol = q("events"), Ll = mt(), kl = lo(), At = Et(), Il = wr(), Or = class extends Il.default {
|
|
2899
|
+
static {
|
|
2900
|
+
s(this, "AsyncReader");
|
|
2901
|
+
}
|
|
2902
|
+
constructor(t, r) {
|
|
2903
|
+
super(t, r), this._settings = r, this._scandir = Ll.scandir, this._emitter = new Ol.EventEmitter(), this._queue = kl(this._worker.bind(this), this._settings.concurrency), this._isFatalError = !1, this._isDestroyed = !1, this._queue.drain = () => {
|
|
2904
|
+
this._isFatalError || this._emitter.emit("end");
|
|
2905
|
+
};
|
|
2906
|
+
}
|
|
2907
|
+
read() {
|
|
2908
|
+
return this._isFatalError = !1, this._isDestroyed = !1, setImmediate(() => {
|
|
2909
|
+
this._pushToQueue(this._root, this._settings.basePath);
|
|
2910
|
+
}), this._emitter;
|
|
2911
|
+
}
|
|
2912
|
+
get isDestroyed() {
|
|
2913
|
+
return this._isDestroyed;
|
|
2914
|
+
}
|
|
2915
|
+
destroy() {
|
|
2916
|
+
if (this._isDestroyed)
|
|
2917
|
+
throw new Error("The reader is already destroyed");
|
|
2918
|
+
this._isDestroyed = !0, this._queue.killAndDrain();
|
|
2919
|
+
}
|
|
2920
|
+
onEntry(t) {
|
|
2921
|
+
this._emitter.on("entry", t);
|
|
2922
|
+
}
|
|
2923
|
+
onError(t) {
|
|
2924
|
+
this._emitter.once("error", t);
|
|
2925
|
+
}
|
|
2926
|
+
onEnd(t) {
|
|
2927
|
+
this._emitter.once("end", t);
|
|
2928
|
+
}
|
|
2929
|
+
_pushToQueue(t, r) {
|
|
2930
|
+
let n = { directory: t, base: r };
|
|
2931
|
+
this._queue.push(n, (i) => {
|
|
2932
|
+
i !== null && this._handleError(i);
|
|
2933
|
+
});
|
|
2934
|
+
}
|
|
2935
|
+
_worker(t, r) {
|
|
2936
|
+
this._scandir(t.directory, this._settings.fsScandirSettings, (n, i) => {
|
|
2937
|
+
if (n !== null) {
|
|
2938
|
+
r(n, void 0);
|
|
2939
|
+
return;
|
|
2940
|
+
}
|
|
2941
|
+
for (let o of i)
|
|
2942
|
+
this._handleEntry(o, t.base);
|
|
2943
|
+
r(null, void 0);
|
|
2944
|
+
});
|
|
2945
|
+
}
|
|
2946
|
+
_handleError(t) {
|
|
2947
|
+
this._isDestroyed || !At.isFatalError(this._settings, t) || (this._isFatalError = !0, this._isDestroyed = !0, this._emitter.emit("error", t));
|
|
2948
|
+
}
|
|
2949
|
+
_handleEntry(t, r) {
|
|
2950
|
+
if (this._isDestroyed || this._isFatalError)
|
|
2951
|
+
return;
|
|
2952
|
+
let n = t.path;
|
|
2953
|
+
r !== void 0 && (t.path = At.joinPathSegments(r, t.name, this._settings.pathSegmentSeparator)), At.isAppliedFilter(this._settings.entryFilter, t) && this._emitEntry(t), t.dirent.isDirectory() && At.isAppliedFilter(this._settings.deepFilter, t) && this._pushToQueue(n, r === void 0 ? void 0 : t.path);
|
|
2954
|
+
}
|
|
2955
|
+
_emitEntry(t) {
|
|
2956
|
+
this._emitter.emit("entry", t);
|
|
2957
|
+
}
|
|
2958
|
+
};
|
|
2959
|
+
Lr.default = Or;
|
|
2960
|
+
});
|
|
2961
|
+
|
|
2962
|
+
// ../../node_modules/@nodelib/fs.walk/out/providers/async.js
|
|
2963
|
+
var fo = m((Hr) => {
|
|
2964
|
+
"use strict";
|
|
2965
|
+
Object.defineProperty(Hr, "__esModule", { value: !0 });
|
|
2966
|
+
var Hl = kr(), Ir = class {
|
|
2967
|
+
static {
|
|
2968
|
+
s(this, "AsyncProvider");
|
|
2969
|
+
}
|
|
2970
|
+
constructor(t, r) {
|
|
2971
|
+
this._root = t, this._settings = r, this._reader = new Hl.default(this._root, this._settings), this._storage = [];
|
|
2972
|
+
}
|
|
2973
|
+
read(t) {
|
|
2974
|
+
this._reader.onError((r) => {
|
|
2975
|
+
Nl(t, r);
|
|
2976
|
+
}), this._reader.onEntry((r) => {
|
|
2977
|
+
this._storage.push(r);
|
|
2978
|
+
}), this._reader.onEnd(() => {
|
|
2979
|
+
$l(t, this._storage);
|
|
2980
|
+
}), this._reader.read();
|
|
2981
|
+
}
|
|
2982
|
+
};
|
|
2983
|
+
Hr.default = Ir;
|
|
2984
|
+
function Nl(e, t) {
|
|
2985
|
+
e(t);
|
|
2986
|
+
}
|
|
2987
|
+
s(Nl, "callFailureCallback");
|
|
2988
|
+
function $l(e, t) {
|
|
2989
|
+
e(null, t);
|
|
2990
|
+
}
|
|
2991
|
+
s($l, "callSuccessCallback");
|
|
2992
|
+
});
|
|
2993
|
+
|
|
2994
|
+
// ../../node_modules/@nodelib/fs.walk/out/providers/stream.js
|
|
2995
|
+
var po = m(($r) => {
|
|
2996
|
+
"use strict";
|
|
2997
|
+
Object.defineProperty($r, "__esModule", { value: !0 });
|
|
2998
|
+
var Ml = q("stream"), Dl = kr(), Nr = class {
|
|
2999
|
+
static {
|
|
3000
|
+
s(this, "StreamProvider");
|
|
3001
|
+
}
|
|
3002
|
+
constructor(t, r) {
|
|
3003
|
+
this._root = t, this._settings = r, this._reader = new Dl.default(this._root, this._settings), this._stream = new Ml.Readable({
|
|
3004
|
+
objectMode: !0,
|
|
3005
|
+
read: /* @__PURE__ */ s(() => {
|
|
3006
|
+
}, "read"),
|
|
3007
|
+
destroy: /* @__PURE__ */ s(() => {
|
|
3008
|
+
this._reader.isDestroyed || this._reader.destroy();
|
|
3009
|
+
}, "destroy")
|
|
3010
|
+
});
|
|
3011
|
+
}
|
|
3012
|
+
read() {
|
|
3013
|
+
return this._reader.onError((t) => {
|
|
3014
|
+
this._stream.emit("error", t);
|
|
3015
|
+
}), this._reader.onEntry((t) => {
|
|
3016
|
+
this._stream.push(t);
|
|
3017
|
+
}), this._reader.onEnd(() => {
|
|
3018
|
+
this._stream.push(null);
|
|
3019
|
+
}), this._reader.read(), this._stream;
|
|
3020
|
+
}
|
|
3021
|
+
};
|
|
3022
|
+
$r.default = Nr;
|
|
3023
|
+
});
|
|
3024
|
+
|
|
3025
|
+
// ../../node_modules/@nodelib/fs.walk/out/readers/sync.js
|
|
3026
|
+
var ho = m((Dr) => {
|
|
3027
|
+
"use strict";
|
|
3028
|
+
Object.defineProperty(Dr, "__esModule", { value: !0 });
|
|
3029
|
+
var Fl = mt(), Rt = Et(), ql = wr(), Mr = class extends ql.default {
|
|
3030
|
+
static {
|
|
3031
|
+
s(this, "SyncReader");
|
|
3032
|
+
}
|
|
3033
|
+
constructor() {
|
|
3034
|
+
super(...arguments), this._scandir = Fl.scandirSync, this._storage = [], this._queue = /* @__PURE__ */ new Set();
|
|
3035
|
+
}
|
|
3036
|
+
read() {
|
|
3037
|
+
return this._pushToQueue(this._root, this._settings.basePath), this._handleQueue(), this._storage;
|
|
3038
|
+
}
|
|
3039
|
+
_pushToQueue(t, r) {
|
|
3040
|
+
this._queue.add({ directory: t, base: r });
|
|
3041
|
+
}
|
|
3042
|
+
_handleQueue() {
|
|
3043
|
+
for (let t of this._queue.values())
|
|
3044
|
+
this._handleDirectory(t.directory, t.base);
|
|
3045
|
+
}
|
|
3046
|
+
_handleDirectory(t, r) {
|
|
3047
|
+
try {
|
|
3048
|
+
let n = this._scandir(t, this._settings.fsScandirSettings);
|
|
3049
|
+
for (let i of n)
|
|
3050
|
+
this._handleEntry(i, r);
|
|
3051
|
+
} catch (n) {
|
|
3052
|
+
this._handleError(n);
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
_handleError(t) {
|
|
3056
|
+
if (Rt.isFatalError(this._settings, t))
|
|
3057
|
+
throw t;
|
|
3058
|
+
}
|
|
3059
|
+
_handleEntry(t, r) {
|
|
3060
|
+
let n = t.path;
|
|
3061
|
+
r !== void 0 && (t.path = Rt.joinPathSegments(r, t.name, this._settings.pathSegmentSeparator)), Rt.isAppliedFilter(this._settings.entryFilter, t) && this._pushToStorage(t), t.dirent.isDirectory() && Rt.isAppliedFilter(this._settings.deepFilter, t) && this._pushToQueue(n, r === void 0 ? void 0 : t.path);
|
|
3062
|
+
}
|
|
3063
|
+
_pushToStorage(t) {
|
|
3064
|
+
this._storage.push(t);
|
|
3065
|
+
}
|
|
3066
|
+
};
|
|
3067
|
+
Dr.default = Mr;
|
|
3068
|
+
});
|
|
3069
|
+
|
|
3070
|
+
// ../../node_modules/@nodelib/fs.walk/out/providers/sync.js
|
|
3071
|
+
var _o = m((qr) => {
|
|
3072
|
+
"use strict";
|
|
3073
|
+
Object.defineProperty(qr, "__esModule", { value: !0 });
|
|
3074
|
+
var Bl = ho(), Fr = class {
|
|
3075
|
+
static {
|
|
3076
|
+
s(this, "SyncProvider");
|
|
3077
|
+
}
|
|
3078
|
+
constructor(t, r) {
|
|
3079
|
+
this._root = t, this._settings = r, this._reader = new Bl.default(this._root, this._settings);
|
|
3080
|
+
}
|
|
3081
|
+
read() {
|
|
3082
|
+
return this._reader.read();
|
|
3083
|
+
}
|
|
3084
|
+
};
|
|
3085
|
+
qr.default = Fr;
|
|
3086
|
+
});
|
|
3087
|
+
|
|
3088
|
+
// ../../node_modules/@nodelib/fs.walk/out/settings.js
|
|
3089
|
+
var go = m((Gr) => {
|
|
3090
|
+
"use strict";
|
|
3091
|
+
Object.defineProperty(Gr, "__esModule", { value: !0 });
|
|
3092
|
+
var Gl = q("path"), jl = mt(), Br = class {
|
|
3093
|
+
static {
|
|
3094
|
+
s(this, "Settings");
|
|
3095
|
+
}
|
|
3096
|
+
constructor(t = {}) {
|
|
3097
|
+
this._options = t, this.basePath = this._getValue(this._options.basePath, void 0), this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY), this.deepFilter = this._getValue(this._options.deepFilter, null), this.entryFilter = this._getValue(this._options.entryFilter, null), this.errorFilter = this._getValue(this._options.errorFilter, null), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, Gl.sep), this.fsScandirSettings = new jl.Settings({
|
|
3098
|
+
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
3099
|
+
fs: this._options.fs,
|
|
3100
|
+
pathSegmentSeparator: this._options.pathSegmentSeparator,
|
|
3101
|
+
stats: this._options.stats,
|
|
3102
|
+
throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
|
|
3103
|
+
});
|
|
3104
|
+
}
|
|
3105
|
+
_getValue(t, r) {
|
|
3106
|
+
return t ?? r;
|
|
3107
|
+
}
|
|
3108
|
+
};
|
|
3109
|
+
Gr.default = Br;
|
|
3110
|
+
});
|
|
3111
|
+
|
|
3112
|
+
// ../../node_modules/@nodelib/fs.walk/out/index.js
|
|
3113
|
+
var vt = m((fe) => {
|
|
3114
|
+
"use strict";
|
|
3115
|
+
Object.defineProperty(fe, "__esModule", { value: !0 });
|
|
3116
|
+
fe.Settings = fe.walkStream = fe.walkSync = fe.walk = void 0;
|
|
3117
|
+
var yo = fo(), Wl = po(), Ul = _o(), jr = go();
|
|
3118
|
+
fe.Settings = jr.default;
|
|
3119
|
+
function Vl(e, t, r) {
|
|
3120
|
+
if (typeof t == "function") {
|
|
3121
|
+
new yo.default(e, bt()).read(t);
|
|
3122
|
+
return;
|
|
3123
|
+
}
|
|
3124
|
+
new yo.default(e, bt(t)).read(r);
|
|
3125
|
+
}
|
|
3126
|
+
s(Vl, "walk");
|
|
3127
|
+
fe.walk = Vl;
|
|
3128
|
+
function Kl(e, t) {
|
|
3129
|
+
let r = bt(t);
|
|
3130
|
+
return new Ul.default(e, r).read();
|
|
3131
|
+
}
|
|
3132
|
+
s(Kl, "walkSync");
|
|
3133
|
+
fe.walkSync = Kl;
|
|
3134
|
+
function Xl(e, t) {
|
|
3135
|
+
let r = bt(t);
|
|
3136
|
+
return new Wl.default(e, r).read();
|
|
3137
|
+
}
|
|
3138
|
+
s(Xl, "walkStream");
|
|
3139
|
+
fe.walkStream = Xl;
|
|
3140
|
+
function bt(e = {}) {
|
|
3141
|
+
return e instanceof jr.default ? e : new jr.default(e);
|
|
3142
|
+
}
|
|
3143
|
+
s(bt, "getSettings");
|
|
3144
|
+
});
|
|
3145
|
+
|
|
3146
|
+
// ../../node_modules/fast-glob/out/readers/reader.js
|
|
3147
|
+
var Pt = m((Ur) => {
|
|
3148
|
+
"use strict";
|
|
3149
|
+
Object.defineProperty(Ur, "__esModule", { value: !0 });
|
|
3150
|
+
var Yl = q("path"), Ql = xe(), So = he(), Wr = class {
|
|
3151
|
+
static {
|
|
3152
|
+
s(this, "Reader");
|
|
3153
|
+
}
|
|
3154
|
+
constructor(t) {
|
|
3155
|
+
this._settings = t, this._fsStatSettings = new Ql.Settings({
|
|
3156
|
+
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
3157
|
+
fs: this._settings.fs,
|
|
3158
|
+
throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
|
|
3159
|
+
});
|
|
3160
|
+
}
|
|
3161
|
+
_getFullEntryPath(t) {
|
|
3162
|
+
return Yl.resolve(this._settings.cwd, t);
|
|
3163
|
+
}
|
|
3164
|
+
_makeEntry(t, r) {
|
|
3165
|
+
let n = {
|
|
3166
|
+
name: r,
|
|
3167
|
+
path: r,
|
|
3168
|
+
dirent: So.fs.createDirentFromStats(r, t)
|
|
3169
|
+
};
|
|
3170
|
+
return this._settings.stats && (n.stats = t), n;
|
|
3171
|
+
}
|
|
3172
|
+
_isFatalError(t) {
|
|
3173
|
+
return !So.errno.isEnoentCodeError(t) && !this._settings.suppressErrors;
|
|
3174
|
+
}
|
|
3175
|
+
};
|
|
3176
|
+
Ur.default = Wr;
|
|
3177
|
+
});
|
|
3178
|
+
|
|
3179
|
+
// ../../node_modules/fast-glob/out/readers/stream.js
|
|
3180
|
+
var Xr = m((Kr) => {
|
|
3181
|
+
"use strict";
|
|
3182
|
+
Object.defineProperty(Kr, "__esModule", { value: !0 });
|
|
3183
|
+
var zl = q("stream"), Zl = xe(), Jl = vt(), ef = Pt(), Vr = class extends ef.default {
|
|
3184
|
+
static {
|
|
3185
|
+
s(this, "ReaderStream");
|
|
3186
|
+
}
|
|
3187
|
+
constructor() {
|
|
3188
|
+
super(...arguments), this._walkStream = Jl.walkStream, this._stat = Zl.stat;
|
|
3189
|
+
}
|
|
3190
|
+
dynamic(t, r) {
|
|
3191
|
+
return this._walkStream(t, r);
|
|
3192
|
+
}
|
|
3193
|
+
static(t, r) {
|
|
3194
|
+
let n = t.map(this._getFullEntryPath, this), i = new zl.PassThrough({ objectMode: !0 });
|
|
3195
|
+
i._write = (o, a, u) => this._getEntry(n[o], t[o], r).then((c) => {
|
|
3196
|
+
c !== null && r.entryFilter(c) && i.push(c), o === n.length - 1 && i.end(), u();
|
|
3197
|
+
}).catch(u);
|
|
3198
|
+
for (let o = 0; o < n.length; o++)
|
|
3199
|
+
i.write(o);
|
|
3200
|
+
return i;
|
|
3201
|
+
}
|
|
3202
|
+
_getEntry(t, r, n) {
|
|
3203
|
+
return this._getStat(t).then((i) => this._makeEntry(i, r)).catch((i) => {
|
|
3204
|
+
if (n.errorFilter(i))
|
|
3205
|
+
return null;
|
|
3206
|
+
throw i;
|
|
3207
|
+
});
|
|
3208
|
+
}
|
|
3209
|
+
_getStat(t) {
|
|
3210
|
+
return new Promise((r, n) => {
|
|
3211
|
+
this._stat(t, this._fsStatSettings, (i, o) => i === null ? r(o) : n(i));
|
|
3212
|
+
});
|
|
3213
|
+
}
|
|
3214
|
+
};
|
|
3215
|
+
Kr.default = Vr;
|
|
3216
|
+
});
|
|
3217
|
+
|
|
3218
|
+
// ../../node_modules/fast-glob/out/readers/async.js
|
|
3219
|
+
var mo = m((Qr) => {
|
|
3220
|
+
"use strict";
|
|
3221
|
+
Object.defineProperty(Qr, "__esModule", { value: !0 });
|
|
3222
|
+
var tf = vt(), rf = Pt(), nf = Xr(), Yr = class extends rf.default {
|
|
3223
|
+
static {
|
|
3224
|
+
s(this, "ReaderAsync");
|
|
3225
|
+
}
|
|
3226
|
+
constructor() {
|
|
3227
|
+
super(...arguments), this._walkAsync = tf.walk, this._readerStream = new nf.default(this._settings);
|
|
3228
|
+
}
|
|
3229
|
+
dynamic(t, r) {
|
|
3230
|
+
return new Promise((n, i) => {
|
|
3231
|
+
this._walkAsync(t, r, (o, a) => {
|
|
3232
|
+
o === null ? n(a) : i(o);
|
|
3233
|
+
});
|
|
3234
|
+
});
|
|
3235
|
+
}
|
|
3236
|
+
async static(t, r) {
|
|
3237
|
+
let n = [], i = this._readerStream.static(t, r);
|
|
3238
|
+
return new Promise((o, a) => {
|
|
3239
|
+
i.once("error", a), i.on("data", (u) => n.push(u)), i.once("end", () => o(n));
|
|
3240
|
+
});
|
|
3241
|
+
}
|
|
3242
|
+
};
|
|
3243
|
+
Qr.default = Yr;
|
|
3244
|
+
});
|
|
3245
|
+
|
|
3246
|
+
// ../../node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
3247
|
+
var Eo = m((Zr) => {
|
|
3248
|
+
"use strict";
|
|
3249
|
+
Object.defineProperty(Zr, "__esModule", { value: !0 });
|
|
3250
|
+
var je = he(), zr = class {
|
|
3251
|
+
static {
|
|
3252
|
+
s(this, "Matcher");
|
|
3253
|
+
}
|
|
3254
|
+
constructor(t, r, n) {
|
|
3255
|
+
this._patterns = t, this._settings = r, this._micromatchOptions = n, this._storage = [], this._fillStorage();
|
|
3256
|
+
}
|
|
3257
|
+
_fillStorage() {
|
|
3258
|
+
for (let t of this._patterns) {
|
|
3259
|
+
let r = this._getPatternSegments(t), n = this._splitSegmentsIntoSections(r);
|
|
3260
|
+
this._storage.push({
|
|
3261
|
+
complete: n.length <= 1,
|
|
3262
|
+
pattern: t,
|
|
3263
|
+
segments: r,
|
|
3264
|
+
sections: n
|
|
3265
|
+
});
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
_getPatternSegments(t) {
|
|
3269
|
+
return je.pattern.getPatternParts(t, this._micromatchOptions).map((n) => je.pattern.isDynamicPattern(n, this._settings) ? {
|
|
3270
|
+
dynamic: !0,
|
|
3271
|
+
pattern: n,
|
|
3272
|
+
patternRe: je.pattern.makeRe(n, this._micromatchOptions)
|
|
3273
|
+
} : {
|
|
3274
|
+
dynamic: !1,
|
|
3275
|
+
pattern: n
|
|
3276
|
+
});
|
|
3277
|
+
}
|
|
3278
|
+
_splitSegmentsIntoSections(t) {
|
|
3279
|
+
return je.array.splitWhen(t, (r) => r.dynamic && je.pattern.hasGlobStar(r.pattern));
|
|
3280
|
+
}
|
|
3281
|
+
};
|
|
3282
|
+
Zr.default = zr;
|
|
3283
|
+
});
|
|
3284
|
+
|
|
3285
|
+
// ../../node_modules/fast-glob/out/providers/matchers/partial.js
|
|
3286
|
+
var Ao = m((en) => {
|
|
3287
|
+
"use strict";
|
|
3288
|
+
Object.defineProperty(en, "__esModule", { value: !0 });
|
|
3289
|
+
var sf = Eo(), Jr = class extends sf.default {
|
|
3290
|
+
static {
|
|
3291
|
+
s(this, "PartialMatcher");
|
|
3292
|
+
}
|
|
3293
|
+
match(t) {
|
|
3294
|
+
let r = t.split("/"), n = r.length, i = this._storage.filter((o) => !o.complete || o.segments.length > n);
|
|
3295
|
+
for (let o of i) {
|
|
3296
|
+
let a = o.sections[0];
|
|
3297
|
+
if (!o.complete && n > a.length || r.every((c, d) => {
|
|
3298
|
+
let l = o.segments[d];
|
|
3299
|
+
return !!(l.dynamic && l.patternRe.test(c) || !l.dynamic && l.pattern === c);
|
|
3300
|
+
}))
|
|
3301
|
+
return !0;
|
|
3302
|
+
}
|
|
3303
|
+
return !1;
|
|
3304
|
+
}
|
|
3305
|
+
};
|
|
3306
|
+
en.default = Jr;
|
|
3307
|
+
});
|
|
3308
|
+
|
|
3309
|
+
// ../../node_modules/fast-glob/out/providers/filters/deep.js
|
|
3310
|
+
var Ro = m((rn) => {
|
|
3311
|
+
"use strict";
|
|
3312
|
+
Object.defineProperty(rn, "__esModule", { value: !0 });
|
|
3313
|
+
var xt = he(), of = Ao(), tn = class {
|
|
3314
|
+
static {
|
|
3315
|
+
s(this, "DeepFilter");
|
|
3316
|
+
}
|
|
3317
|
+
constructor(t, r) {
|
|
3318
|
+
this._settings = t, this._micromatchOptions = r;
|
|
3319
|
+
}
|
|
3320
|
+
getFilter(t, r, n) {
|
|
3321
|
+
let i = this._getMatcher(r), o = this._getNegativePatternsRe(n);
|
|
3322
|
+
return (a) => this._filter(t, a, i, o);
|
|
3323
|
+
}
|
|
3324
|
+
_getMatcher(t) {
|
|
3325
|
+
return new of.default(t, this._settings, this._micromatchOptions);
|
|
3326
|
+
}
|
|
3327
|
+
_getNegativePatternsRe(t) {
|
|
3328
|
+
let r = t.filter(xt.pattern.isAffectDepthOfReadingPattern);
|
|
3329
|
+
return xt.pattern.convertPatternsToRe(r, this._micromatchOptions);
|
|
3330
|
+
}
|
|
3331
|
+
_filter(t, r, n, i) {
|
|
3332
|
+
if (this._isSkippedByDeep(t, r.path) || this._isSkippedSymbolicLink(r))
|
|
3333
|
+
return !1;
|
|
3334
|
+
let o = xt.path.removeLeadingDotSegment(r.path);
|
|
3335
|
+
return this._isSkippedByPositivePatterns(o, n) ? !1 : this._isSkippedByNegativePatterns(o, i);
|
|
3336
|
+
}
|
|
3337
|
+
_isSkippedByDeep(t, r) {
|
|
3338
|
+
return this._settings.deep === 1 / 0 ? !1 : this._getEntryLevel(t, r) >= this._settings.deep;
|
|
3339
|
+
}
|
|
3340
|
+
_getEntryLevel(t, r) {
|
|
3341
|
+
let n = r.split("/").length;
|
|
3342
|
+
if (t === "")
|
|
3343
|
+
return n;
|
|
3344
|
+
let i = t.split("/").length;
|
|
3345
|
+
return n - i;
|
|
3346
|
+
}
|
|
3347
|
+
_isSkippedSymbolicLink(t) {
|
|
3348
|
+
return !this._settings.followSymbolicLinks && t.dirent.isSymbolicLink();
|
|
3349
|
+
}
|
|
3350
|
+
_isSkippedByPositivePatterns(t, r) {
|
|
3351
|
+
return !this._settings.baseNameMatch && !r.match(t);
|
|
3352
|
+
}
|
|
3353
|
+
_isSkippedByNegativePatterns(t, r) {
|
|
3354
|
+
return !xt.pattern.matchAny(t, r);
|
|
3355
|
+
}
|
|
3356
|
+
};
|
|
3357
|
+
rn.default = tn;
|
|
3358
|
+
});
|
|
3359
|
+
|
|
3360
|
+
// ../../node_modules/fast-glob/out/providers/filters/entry.js
|
|
3361
|
+
var bo = m((sn) => {
|
|
3362
|
+
"use strict";
|
|
3363
|
+
Object.defineProperty(sn, "__esModule", { value: !0 });
|
|
3364
|
+
var Re = he(), nn = class {
|
|
3365
|
+
static {
|
|
3366
|
+
s(this, "EntryFilter");
|
|
3367
|
+
}
|
|
3368
|
+
constructor(t, r) {
|
|
3369
|
+
this._settings = t, this._micromatchOptions = r, this.index = /* @__PURE__ */ new Map();
|
|
3370
|
+
}
|
|
3371
|
+
getFilter(t, r) {
|
|
3372
|
+
let [n, i] = Re.pattern.partitionAbsoluteAndRelative(r), o = {
|
|
3373
|
+
positive: {
|
|
3374
|
+
all: Re.pattern.convertPatternsToRe(t, this._micromatchOptions)
|
|
3375
|
+
},
|
|
3376
|
+
negative: {
|
|
3377
|
+
absolute: Re.pattern.convertPatternsToRe(n, Object.assign(Object.assign({}, this._micromatchOptions), { dot: !0 })),
|
|
3378
|
+
relative: Re.pattern.convertPatternsToRe(i, Object.assign(Object.assign({}, this._micromatchOptions), { dot: !0 }))
|
|
3379
|
+
}
|
|
3380
|
+
};
|
|
3381
|
+
return (a) => this._filter(a, o);
|
|
3382
|
+
}
|
|
3383
|
+
_filter(t, r) {
|
|
3384
|
+
let n = Re.path.removeLeadingDotSegment(t.path);
|
|
3385
|
+
if (this._settings.unique && this._isDuplicateEntry(n) || this._onlyFileFilter(t) || this._onlyDirectoryFilter(t))
|
|
3386
|
+
return !1;
|
|
3387
|
+
let i = this._isMatchToPatternsSet(n, r, t.dirent.isDirectory());
|
|
3388
|
+
return this._settings.unique && i && this._createIndexRecord(n), i;
|
|
3389
|
+
}
|
|
3390
|
+
_isDuplicateEntry(t) {
|
|
3391
|
+
return this.index.has(t);
|
|
3392
|
+
}
|
|
3393
|
+
_createIndexRecord(t) {
|
|
3394
|
+
this.index.set(t, void 0);
|
|
3395
|
+
}
|
|
3396
|
+
_onlyFileFilter(t) {
|
|
3397
|
+
return this._settings.onlyFiles && !t.dirent.isFile();
|
|
3398
|
+
}
|
|
3399
|
+
_onlyDirectoryFilter(t) {
|
|
3400
|
+
return this._settings.onlyDirectories && !t.dirent.isDirectory();
|
|
3401
|
+
}
|
|
3402
|
+
_isMatchToPatternsSet(t, r, n) {
|
|
3403
|
+
return !(!this._isMatchToPatterns(t, r.positive.all, n) || this._isMatchToPatterns(t, r.negative.relative, n) || this._isMatchToAbsoluteNegative(t, r.negative.absolute, n));
|
|
3404
|
+
}
|
|
3405
|
+
_isMatchToAbsoluteNegative(t, r, n) {
|
|
3406
|
+
if (r.length === 0)
|
|
3407
|
+
return !1;
|
|
3408
|
+
let i = Re.path.makeAbsolute(this._settings.cwd, t);
|
|
3409
|
+
return this._isMatchToPatterns(i, r, n);
|
|
3410
|
+
}
|
|
3411
|
+
_isMatchToPatterns(t, r, n) {
|
|
3412
|
+
if (r.length === 0)
|
|
3413
|
+
return !1;
|
|
3414
|
+
let i = Re.pattern.matchAny(t, r);
|
|
3415
|
+
return !i && n ? Re.pattern.matchAny(t + "/", r) : i;
|
|
3416
|
+
}
|
|
3417
|
+
};
|
|
3418
|
+
sn.default = nn;
|
|
3419
|
+
});
|
|
3420
|
+
|
|
3421
|
+
// ../../node_modules/fast-glob/out/providers/filters/error.js
|
|
3422
|
+
var vo = m((an) => {
|
|
3423
|
+
"use strict";
|
|
3424
|
+
Object.defineProperty(an, "__esModule", { value: !0 });
|
|
3425
|
+
var af = he(), on = class {
|
|
3426
|
+
static {
|
|
3427
|
+
s(this, "ErrorFilter");
|
|
3428
|
+
}
|
|
3429
|
+
constructor(t) {
|
|
3430
|
+
this._settings = t;
|
|
3431
|
+
}
|
|
3432
|
+
getFilter() {
|
|
3433
|
+
return (t) => this._isNonFatalError(t);
|
|
3434
|
+
}
|
|
3435
|
+
_isNonFatalError(t) {
|
|
3436
|
+
return af.errno.isEnoentCodeError(t) || this._settings.suppressErrors;
|
|
3437
|
+
}
|
|
3438
|
+
};
|
|
3439
|
+
an.default = on;
|
|
3440
|
+
});
|
|
3441
|
+
|
|
3442
|
+
// ../../node_modules/fast-glob/out/providers/transformers/entry.js
|
|
3443
|
+
var xo = m((cn) => {
|
|
3444
|
+
"use strict";
|
|
3445
|
+
Object.defineProperty(cn, "__esModule", { value: !0 });
|
|
3446
|
+
var Po = he(), un = class {
|
|
3447
|
+
static {
|
|
3448
|
+
s(this, "EntryTransformer");
|
|
3449
|
+
}
|
|
3450
|
+
constructor(t) {
|
|
3451
|
+
this._settings = t;
|
|
3452
|
+
}
|
|
3453
|
+
getTransformer() {
|
|
3454
|
+
return (t) => this._transform(t);
|
|
3455
|
+
}
|
|
3456
|
+
_transform(t) {
|
|
3457
|
+
let r = t.path;
|
|
3458
|
+
return this._settings.absolute && (r = Po.path.makeAbsolute(this._settings.cwd, r), r = Po.path.unixify(r)), this._settings.markDirectories && t.dirent.isDirectory() && (r += "/"), this._settings.objectMode ? Object.assign(Object.assign({}, t), { path: r }) : r;
|
|
3459
|
+
}
|
|
3460
|
+
};
|
|
3461
|
+
cn.default = un;
|
|
3462
|
+
});
|
|
3463
|
+
|
|
3464
|
+
// ../../node_modules/fast-glob/out/providers/provider.js
|
|
3465
|
+
var Tt = m((fn) => {
|
|
3466
|
+
"use strict";
|
|
3467
|
+
Object.defineProperty(fn, "__esModule", { value: !0 });
|
|
3468
|
+
var uf = q("path"), cf = Ro(), lf = bo(), ff = vo(), pf = xo(), ln = class {
|
|
3469
|
+
static {
|
|
3470
|
+
s(this, "Provider");
|
|
3471
|
+
}
|
|
3472
|
+
constructor(t) {
|
|
3473
|
+
this._settings = t, this.errorFilter = new ff.default(this._settings), this.entryFilter = new lf.default(this._settings, this._getMicromatchOptions()), this.deepFilter = new cf.default(this._settings, this._getMicromatchOptions()), this.entryTransformer = new pf.default(this._settings);
|
|
3474
|
+
}
|
|
3475
|
+
_getRootDirectory(t) {
|
|
3476
|
+
return uf.resolve(this._settings.cwd, t.base);
|
|
3477
|
+
}
|
|
3478
|
+
_getReaderOptions(t) {
|
|
3479
|
+
let r = t.base === "." ? "" : t.base;
|
|
3480
|
+
return {
|
|
3481
|
+
basePath: r,
|
|
3482
|
+
pathSegmentSeparator: "/",
|
|
3483
|
+
concurrency: this._settings.concurrency,
|
|
3484
|
+
deepFilter: this.deepFilter.getFilter(r, t.positive, t.negative),
|
|
3485
|
+
entryFilter: this.entryFilter.getFilter(t.positive, t.negative),
|
|
3486
|
+
errorFilter: this.errorFilter.getFilter(),
|
|
3487
|
+
followSymbolicLinks: this._settings.followSymbolicLinks,
|
|
3488
|
+
fs: this._settings.fs,
|
|
3489
|
+
stats: this._settings.stats,
|
|
3490
|
+
throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
|
|
3491
|
+
transform: this.entryTransformer.getTransformer()
|
|
3492
|
+
};
|
|
3493
|
+
}
|
|
3494
|
+
_getMicromatchOptions() {
|
|
3495
|
+
return {
|
|
3496
|
+
dot: this._settings.dot,
|
|
3497
|
+
matchBase: this._settings.baseNameMatch,
|
|
3498
|
+
nobrace: !this._settings.braceExpansion,
|
|
3499
|
+
nocase: !this._settings.caseSensitiveMatch,
|
|
3500
|
+
noext: !this._settings.extglob,
|
|
3501
|
+
noglobstar: !this._settings.globstar,
|
|
3502
|
+
posix: !0,
|
|
3503
|
+
strictSlashes: !1
|
|
3504
|
+
};
|
|
3505
|
+
}
|
|
3506
|
+
};
|
|
3507
|
+
fn.default = ln;
|
|
3508
|
+
});
|
|
3509
|
+
|
|
3510
|
+
// ../../node_modules/fast-glob/out/providers/async.js
|
|
3511
|
+
var To = m((hn) => {
|
|
3512
|
+
"use strict";
|
|
3513
|
+
Object.defineProperty(hn, "__esModule", { value: !0 });
|
|
3514
|
+
var hf = mo(), df = Tt(), pn = class extends df.default {
|
|
3515
|
+
static {
|
|
3516
|
+
s(this, "ProviderAsync");
|
|
3517
|
+
}
|
|
3518
|
+
constructor() {
|
|
3519
|
+
super(...arguments), this._reader = new hf.default(this._settings);
|
|
3520
|
+
}
|
|
3521
|
+
async read(t) {
|
|
3522
|
+
let r = this._getRootDirectory(t), n = this._getReaderOptions(t);
|
|
3523
|
+
return (await this.api(r, t, n)).map((o) => n.transform(o));
|
|
3524
|
+
}
|
|
3525
|
+
api(t, r, n) {
|
|
3526
|
+
return r.dynamic ? this._reader.dynamic(t, n) : this._reader.static(r.patterns, n);
|
|
3527
|
+
}
|
|
3528
|
+
};
|
|
3529
|
+
hn.default = pn;
|
|
3530
|
+
});
|
|
3531
|
+
|
|
3532
|
+
// ../../node_modules/fast-glob/out/providers/stream.js
|
|
3533
|
+
var Co = m((_n) => {
|
|
3534
|
+
"use strict";
|
|
3535
|
+
Object.defineProperty(_n, "__esModule", { value: !0 });
|
|
3536
|
+
var _f = q("stream"), gf = Xr(), yf = Tt(), dn = class extends yf.default {
|
|
3537
|
+
static {
|
|
3538
|
+
s(this, "ProviderStream");
|
|
3539
|
+
}
|
|
3540
|
+
constructor() {
|
|
3541
|
+
super(...arguments), this._reader = new gf.default(this._settings);
|
|
3542
|
+
}
|
|
3543
|
+
read(t) {
|
|
3544
|
+
let r = this._getRootDirectory(t), n = this._getReaderOptions(t), i = this.api(r, t, n), o = new _f.Readable({ objectMode: !0, read: /* @__PURE__ */ s(() => {
|
|
3545
|
+
}, "read") });
|
|
3546
|
+
return i.once("error", (a) => o.emit("error", a)).on("data", (a) => o.emit("data", n.transform(a))).once("end", () => o.emit("end")), o.once("close", () => i.destroy()), o;
|
|
3547
|
+
}
|
|
3548
|
+
api(t, r, n) {
|
|
3549
|
+
return r.dynamic ? this._reader.dynamic(t, n) : this._reader.static(r.patterns, n);
|
|
3550
|
+
}
|
|
3551
|
+
};
|
|
3552
|
+
_n.default = dn;
|
|
3553
|
+
});
|
|
3554
|
+
|
|
3555
|
+
// ../../node_modules/fast-glob/out/readers/sync.js
|
|
3556
|
+
var wo = m((yn) => {
|
|
3557
|
+
"use strict";
|
|
3558
|
+
Object.defineProperty(yn, "__esModule", { value: !0 });
|
|
3559
|
+
var Sf = xe(), mf = vt(), Ef = Pt(), gn = class extends Ef.default {
|
|
3560
|
+
static {
|
|
3561
|
+
s(this, "ReaderSync");
|
|
3562
|
+
}
|
|
3563
|
+
constructor() {
|
|
3564
|
+
super(...arguments), this._walkSync = mf.walkSync, this._statSync = Sf.statSync;
|
|
3565
|
+
}
|
|
3566
|
+
dynamic(t, r) {
|
|
3567
|
+
return this._walkSync(t, r);
|
|
3568
|
+
}
|
|
3569
|
+
static(t, r) {
|
|
3570
|
+
let n = [];
|
|
3571
|
+
for (let i of t) {
|
|
3572
|
+
let o = this._getFullEntryPath(i), a = this._getEntry(o, i, r);
|
|
3573
|
+
a === null || !r.entryFilter(a) || n.push(a);
|
|
3574
|
+
}
|
|
3575
|
+
return n;
|
|
3576
|
+
}
|
|
3577
|
+
_getEntry(t, r, n) {
|
|
3578
|
+
try {
|
|
3579
|
+
let i = this._getStat(t);
|
|
3580
|
+
return this._makeEntry(i, r);
|
|
3581
|
+
} catch (i) {
|
|
3582
|
+
if (n.errorFilter(i))
|
|
3583
|
+
return null;
|
|
3584
|
+
throw i;
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
_getStat(t) {
|
|
3588
|
+
return this._statSync(t, this._fsStatSettings);
|
|
3589
|
+
}
|
|
3590
|
+
};
|
|
3591
|
+
yn.default = gn;
|
|
3592
|
+
});
|
|
3593
|
+
|
|
3594
|
+
// ../../node_modules/fast-glob/out/providers/sync.js
|
|
3595
|
+
var Oo = m((mn) => {
|
|
3596
|
+
"use strict";
|
|
3597
|
+
Object.defineProperty(mn, "__esModule", { value: !0 });
|
|
3598
|
+
var Af = wo(), Rf = Tt(), Sn = class extends Rf.default {
|
|
3599
|
+
static {
|
|
3600
|
+
s(this, "ProviderSync");
|
|
3601
|
+
}
|
|
3602
|
+
constructor() {
|
|
3603
|
+
super(...arguments), this._reader = new Af.default(this._settings);
|
|
3604
|
+
}
|
|
3605
|
+
read(t) {
|
|
3606
|
+
let r = this._getRootDirectory(t), n = this._getReaderOptions(t);
|
|
3607
|
+
return this.api(r, t, n).map(n.transform);
|
|
3608
|
+
}
|
|
3609
|
+
api(t, r, n) {
|
|
3610
|
+
return r.dynamic ? this._reader.dynamic(t, n) : this._reader.static(r.patterns, n);
|
|
3611
|
+
}
|
|
3612
|
+
};
|
|
3613
|
+
mn.default = Sn;
|
|
3614
|
+
});
|
|
3615
|
+
|
|
3616
|
+
// ../../node_modules/fast-glob/out/settings.js
|
|
3617
|
+
var Lo = m((Ie) => {
|
|
3618
|
+
"use strict";
|
|
3619
|
+
Object.defineProperty(Ie, "__esModule", { value: !0 });
|
|
3620
|
+
Ie.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
3621
|
+
var ke = q("fs"), bf = q("os"), vf = Math.max(bf.cpus().length, 1);
|
|
3622
|
+
Ie.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
3623
|
+
lstat: ke.lstat,
|
|
3624
|
+
lstatSync: ke.lstatSync,
|
|
3625
|
+
stat: ke.stat,
|
|
3626
|
+
statSync: ke.statSync,
|
|
3627
|
+
readdir: ke.readdir,
|
|
3628
|
+
readdirSync: ke.readdirSync
|
|
3629
|
+
};
|
|
3630
|
+
var En = class {
|
|
3631
|
+
static {
|
|
3632
|
+
s(this, "Settings");
|
|
3633
|
+
}
|
|
3634
|
+
constructor(t = {}) {
|
|
3635
|
+
this._options = t, this.absolute = this._getValue(this._options.absolute, !1), this.baseNameMatch = this._getValue(this._options.baseNameMatch, !1), this.braceExpansion = this._getValue(this._options.braceExpansion, !0), this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, !0), this.concurrency = this._getValue(this._options.concurrency, vf), this.cwd = this._getValue(this._options.cwd, process.cwd()), this.deep = this._getValue(this._options.deep, 1 / 0), this.dot = this._getValue(this._options.dot, !1), this.extglob = this._getValue(this._options.extglob, !0), this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !0), this.fs = this._getFileSystemMethods(this._options.fs), this.globstar = this._getValue(this._options.globstar, !0), this.ignore = this._getValue(this._options.ignore, []), this.markDirectories = this._getValue(this._options.markDirectories, !1), this.objectMode = this._getValue(this._options.objectMode, !1), this.onlyDirectories = this._getValue(this._options.onlyDirectories, !1), this.onlyFiles = this._getValue(this._options.onlyFiles, !0), this.stats = this._getValue(this._options.stats, !1), this.suppressErrors = this._getValue(this._options.suppressErrors, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !1), this.unique = this._getValue(this._options.unique, !0), this.onlyDirectories && (this.onlyFiles = !1), this.stats && (this.objectMode = !0), this.ignore = [].concat(this.ignore);
|
|
3636
|
+
}
|
|
3637
|
+
_getValue(t, r) {
|
|
3638
|
+
return t === void 0 ? r : t;
|
|
3639
|
+
}
|
|
3640
|
+
_getFileSystemMethods(t = {}) {
|
|
3641
|
+
return Object.assign(Object.assign({}, Ie.DEFAULT_FILE_SYSTEM_ADAPTER), t);
|
|
3642
|
+
}
|
|
3643
|
+
};
|
|
3644
|
+
Ie.default = En;
|
|
3645
|
+
});
|
|
3646
|
+
|
|
3647
|
+
// ../../node_modules/fast-glob/out/index.js
|
|
3648
|
+
var vn = m((Wd, Io) => {
|
|
3649
|
+
"use strict";
|
|
3650
|
+
var ko = ki(), Pf = To(), xf = Co(), Tf = Oo(), An = Lo(), ne = he();
|
|
3651
|
+
async function Rn(e, t) {
|
|
3652
|
+
ie(e);
|
|
3653
|
+
let r = bn(e, Pf.default, t), n = await Promise.all(r);
|
|
3654
|
+
return ne.array.flatten(n);
|
|
3655
|
+
}
|
|
3656
|
+
s(Rn, "FastGlob");
|
|
3657
|
+
(function(e) {
|
|
3658
|
+
e.glob = e, e.globSync = t, e.globStream = r, e.async = e;
|
|
3659
|
+
function t(d, l) {
|
|
3660
|
+
ie(d);
|
|
3661
|
+
let g = bn(d, Tf.default, l);
|
|
3662
|
+
return ne.array.flatten(g);
|
|
3663
|
+
}
|
|
3664
|
+
s(t, "sync"), e.sync = t;
|
|
3665
|
+
function r(d, l) {
|
|
3666
|
+
ie(d);
|
|
3667
|
+
let g = bn(d, xf.default, l);
|
|
3668
|
+
return ne.stream.merge(g);
|
|
3669
|
+
}
|
|
3670
|
+
s(r, "stream"), e.stream = r;
|
|
3671
|
+
function n(d, l) {
|
|
3672
|
+
ie(d);
|
|
3673
|
+
let g = [].concat(d), f = new An.default(l);
|
|
3674
|
+
return ko.generate(g, f);
|
|
3675
|
+
}
|
|
3676
|
+
s(n, "generateTasks"), e.generateTasks = n;
|
|
3677
|
+
function i(d, l) {
|
|
3678
|
+
ie(d);
|
|
3679
|
+
let g = new An.default(l);
|
|
3680
|
+
return ne.pattern.isDynamicPattern(d, g);
|
|
3681
|
+
}
|
|
3682
|
+
s(i, "isDynamicPattern"), e.isDynamicPattern = i;
|
|
3683
|
+
function o(d) {
|
|
3684
|
+
return ie(d), ne.path.escape(d);
|
|
3685
|
+
}
|
|
3686
|
+
s(o, "escapePath"), e.escapePath = o;
|
|
3687
|
+
function a(d) {
|
|
3688
|
+
return ie(d), ne.path.convertPathToPattern(d);
|
|
3689
|
+
}
|
|
3690
|
+
s(a, "convertPathToPattern"), e.convertPathToPattern = a;
|
|
3691
|
+
let u;
|
|
3692
|
+
(function(d) {
|
|
3693
|
+
function l(f) {
|
|
3694
|
+
return ie(f), ne.path.escapePosixPath(f);
|
|
3695
|
+
}
|
|
3696
|
+
s(l, "escapePath"), d.escapePath = l;
|
|
3697
|
+
function g(f) {
|
|
3698
|
+
return ie(f), ne.path.convertPosixPathToPattern(f);
|
|
3699
|
+
}
|
|
3700
|
+
s(g, "convertPathToPattern"), d.convertPathToPattern = g;
|
|
3701
|
+
})(u = e.posix || (e.posix = {}));
|
|
3702
|
+
let c;
|
|
3703
|
+
(function(d) {
|
|
3704
|
+
function l(f) {
|
|
3705
|
+
return ie(f), ne.path.escapeWindowsPath(f);
|
|
3706
|
+
}
|
|
3707
|
+
s(l, "escapePath"), d.escapePath = l;
|
|
3708
|
+
function g(f) {
|
|
3709
|
+
return ie(f), ne.path.convertWindowsPathToPattern(f);
|
|
3710
|
+
}
|
|
3711
|
+
s(g, "convertPathToPattern"), d.convertPathToPattern = g;
|
|
3712
|
+
})(c = e.win32 || (e.win32 = {}));
|
|
3713
|
+
})(Rn || (Rn = {}));
|
|
3714
|
+
function bn(e, t, r) {
|
|
3715
|
+
let n = [].concat(e), i = new An.default(r), o = ko.generate(n, i), a = new t(i);
|
|
3716
|
+
return o.map(a.read, a);
|
|
3717
|
+
}
|
|
3718
|
+
s(bn, "getWorks");
|
|
3719
|
+
function ie(e) {
|
|
3720
|
+
if (![].concat(e).every((n) => ne.string.isString(n) && !ne.string.isEmpty(n)))
|
|
3721
|
+
throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
3722
|
+
}
|
|
3723
|
+
s(ie, "assertPatternsInput");
|
|
3724
|
+
Io.exports = Rn;
|
|
3725
|
+
});
|
|
3726
|
+
|
|
3727
|
+
// ../../node_modules/globby/node_modules/ignore/index.js
|
|
3728
|
+
var jo = m((f_, In) => {
|
|
3729
|
+
function Do(e) {
|
|
3730
|
+
return Array.isArray(e) ? e : [e];
|
|
3731
|
+
}
|
|
3732
|
+
s(Do, "makeArray");
|
|
3733
|
+
var If = void 0, Cn = "", $o = " ", Tn = "\\", Hf = /^\s+$/, Nf = /(?:[^\\]|^)\\$/, $f = /^\\!/, Mf = /^\\#/, Df = /\r?\n/g, Ff = /^\.{0,2}\/|^\.{1,2}$/, qf = /\/$/, He = "/", Fo = "node-ignore";
|
|
3734
|
+
typeof Symbol < "u" && (Fo = Symbol.for("node-ignore"));
|
|
3735
|
+
var qo = Fo, Ue = /* @__PURE__ */ s((e, t, r) => (Object.defineProperty(e, t, { value: r }), r), "define"), Bf = /([0-z])-([0-z])/g, Bo = /* @__PURE__ */ s(() => !1, "RETURN_FALSE"), Gf = /* @__PURE__ */ s((e) => e.replace(
|
|
3736
|
+
Bf,
|
|
3737
|
+
(t, r, n) => r.charCodeAt(0) <= n.charCodeAt(0) ? t : Cn
|
|
3738
|
+
), "sanitizeRange"), jf = /* @__PURE__ */ s((e) => {
|
|
3739
|
+
let { length: t } = e;
|
|
3740
|
+
return e.slice(0, t - t % 2);
|
|
3741
|
+
}, "cleanRangeBackSlash"), Wf = [
|
|
3742
|
+
[
|
|
3743
|
+
// Remove BOM
|
|
3744
|
+
// TODO:
|
|
3745
|
+
// Other similar zero-width characters?
|
|
3746
|
+
/^\uFEFF/,
|
|
3747
|
+
() => Cn
|
|
3748
|
+
],
|
|
3749
|
+
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
3750
|
+
[
|
|
3751
|
+
// (a\ ) -> (a )
|
|
3752
|
+
// (a ) -> (a)
|
|
3753
|
+
// (a ) -> (a)
|
|
3754
|
+
// (a \ ) -> (a )
|
|
3755
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
3756
|
+
(e, t, r) => t + (r.indexOf("\\") === 0 ? $o : Cn)
|
|
3757
|
+
],
|
|
3758
|
+
// Replace (\ ) with ' '
|
|
3759
|
+
// (\ ) -> ' '
|
|
3760
|
+
// (\\ ) -> '\\ '
|
|
3761
|
+
// (\\\ ) -> '\\ '
|
|
3762
|
+
[
|
|
3763
|
+
/(\\+?)\s/g,
|
|
3764
|
+
(e, t) => {
|
|
3765
|
+
let { length: r } = t;
|
|
3766
|
+
return t.slice(0, r - r % 2) + $o;
|
|
3767
|
+
}
|
|
3768
|
+
],
|
|
3769
|
+
// Escape metacharacters
|
|
3770
|
+
// which is written down by users but means special for regular expressions.
|
|
3771
|
+
// > There are 12 characters with special meanings:
|
|
3772
|
+
// > - the backslash \,
|
|
3773
|
+
// > - the caret ^,
|
|
3774
|
+
// > - the dollar sign $,
|
|
3775
|
+
// > - the period or dot .,
|
|
3776
|
+
// > - the vertical bar or pipe symbol |,
|
|
3777
|
+
// > - the question mark ?,
|
|
3778
|
+
// > - the asterisk or star *,
|
|
3779
|
+
// > - the plus sign +,
|
|
3780
|
+
// > - the opening parenthesis (,
|
|
3781
|
+
// > - the closing parenthesis ),
|
|
3782
|
+
// > - and the opening square bracket [,
|
|
3783
|
+
// > - the opening curly brace {,
|
|
3784
|
+
// > These special characters are often called "metacharacters".
|
|
3785
|
+
[
|
|
3786
|
+
/[\\$.|*+(){^]/g,
|
|
3787
|
+
(e) => `\\${e}`
|
|
3788
|
+
],
|
|
3789
|
+
[
|
|
3790
|
+
// > a question mark (?) matches a single character
|
|
3791
|
+
/(?!\\)\?/g,
|
|
3792
|
+
() => "[^/]"
|
|
3793
|
+
],
|
|
3794
|
+
// leading slash
|
|
3795
|
+
[
|
|
3796
|
+
// > A leading slash matches the beginning of the pathname.
|
|
3797
|
+
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
|
3798
|
+
// A leading slash matches the beginning of the pathname
|
|
3799
|
+
/^\//,
|
|
3800
|
+
() => "^"
|
|
3801
|
+
],
|
|
3802
|
+
// replace special metacharacter slash after the leading slash
|
|
3803
|
+
[
|
|
3804
|
+
/\//g,
|
|
3805
|
+
() => "\\/"
|
|
3806
|
+
],
|
|
3807
|
+
[
|
|
3808
|
+
// > A leading "**" followed by a slash means match in all directories.
|
|
3809
|
+
// > For example, "**/foo" matches file or directory "foo" anywhere,
|
|
3810
|
+
// > the same as pattern "foo".
|
|
3811
|
+
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
|
|
3812
|
+
// > under directory "foo".
|
|
3813
|
+
// Notice that the '*'s have been replaced as '\\*'
|
|
3814
|
+
/^\^*\\\*\\\*\\\//,
|
|
3815
|
+
// '**/foo' <-> 'foo'
|
|
3816
|
+
() => "^(?:.*\\/)?"
|
|
3817
|
+
],
|
|
3818
|
+
// starting
|
|
3819
|
+
[
|
|
3820
|
+
// there will be no leading '/'
|
|
3821
|
+
// (which has been replaced by section "leading slash")
|
|
3822
|
+
// If starts with '**', adding a '^' to the regular expression also works
|
|
3823
|
+
/^(?=[^^])/,
|
|
3824
|
+
/* @__PURE__ */ s(function() {
|
|
3825
|
+
return /\/(?!$)/.test(this) ? "^" : "(?:^|\\/)";
|
|
3826
|
+
}, "startingReplacer")
|
|
3827
|
+
],
|
|
3828
|
+
// two globstars
|
|
3829
|
+
[
|
|
3830
|
+
// Use lookahead assertions so that we could match more than one `'/**'`
|
|
3831
|
+
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
3832
|
+
// Zero, one or several directories
|
|
3833
|
+
// should not use '*', or it will be replaced by the next replacer
|
|
3834
|
+
// Check if it is not the last `'/**'`
|
|
3835
|
+
(e, t, r) => t + 6 < r.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
|
|
3836
|
+
],
|
|
3837
|
+
// normal intermediate wildcards
|
|
3838
|
+
[
|
|
3839
|
+
// Never replace escaped '*'
|
|
3840
|
+
// ignore rule '\*' will match the path '*'
|
|
3841
|
+
// 'abc.*/' -> go
|
|
3842
|
+
// 'abc.*' -> skip this rule,
|
|
3843
|
+
// coz trailing single wildcard will be handed by [trailing wildcard]
|
|
3844
|
+
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
3845
|
+
// '*.js' matches '.js'
|
|
3846
|
+
// '*.js' doesn't match 'abc'
|
|
3847
|
+
(e, t, r) => {
|
|
3848
|
+
let n = r.replace(/\\\*/g, "[^\\/]*");
|
|
3849
|
+
return t + n;
|
|
3850
|
+
}
|
|
3851
|
+
],
|
|
3852
|
+
[
|
|
3853
|
+
// unescape, revert step 3 except for back slash
|
|
3854
|
+
// For example, if a user escape a '\\*',
|
|
3855
|
+
// after step 3, the result will be '\\\\\\*'
|
|
3856
|
+
/\\\\\\(?=[$.|*+(){^])/g,
|
|
3857
|
+
() => Tn
|
|
3858
|
+
],
|
|
3859
|
+
[
|
|
3860
|
+
// '\\\\' -> '\\'
|
|
3861
|
+
/\\\\/g,
|
|
3862
|
+
() => Tn
|
|
3863
|
+
],
|
|
3864
|
+
[
|
|
3865
|
+
// > The range notation, e.g. [a-zA-Z],
|
|
3866
|
+
// > can be used to match one of the characters in a range.
|
|
3867
|
+
// `\` is escaped by step 3
|
|
3868
|
+
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
3869
|
+
(e, t, r, n, i) => t === Tn ? `\\[${r}${jf(n)}${i}` : i === "]" && n.length % 2 === 0 ? `[${Gf(r)}${n}]` : "[]"
|
|
3870
|
+
],
|
|
3871
|
+
// ending
|
|
3872
|
+
[
|
|
3873
|
+
// 'js' will not match 'js.'
|
|
3874
|
+
// 'ab' will not match 'abc'
|
|
3875
|
+
/(?:[^*])$/,
|
|
3876
|
+
// WTF!
|
|
3877
|
+
// https://git-scm.com/docs/gitignore
|
|
3878
|
+
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
|
|
3879
|
+
// which re-fixes #24, #38
|
|
3880
|
+
// > If there is a separator at the end of the pattern then the pattern
|
|
3881
|
+
// > will only match directories, otherwise the pattern can match both
|
|
3882
|
+
// > files and directories.
|
|
3883
|
+
// 'js*' will not match 'a.js'
|
|
3884
|
+
// 'js/' will not match 'a.js'
|
|
3885
|
+
// 'js' will match 'a.js' and 'a.js/'
|
|
3886
|
+
(e) => /\/$/.test(e) ? `${e}$` : `${e}(?=$|\\/$)`
|
|
3887
|
+
]
|
|
3888
|
+
], Uf = /(^|\\\/)?\\\*$/, Ve = "regex", Ct = "checkRegex", Mo = "_", Vf = {
|
|
3889
|
+
[Ve](e, t) {
|
|
3890
|
+
return `${t ? `${t}[^/]+` : "[^/]*"}(?=$|\\/$)`;
|
|
3891
|
+
},
|
|
3892
|
+
[Ct](e, t) {
|
|
3893
|
+
return `${t ? `${t}[^/]*` : "[^/]*"}(?=$|\\/$)`;
|
|
3894
|
+
}
|
|
3895
|
+
}, Kf = /* @__PURE__ */ s((e) => Wf.reduce(
|
|
3896
|
+
(t, [r, n]) => t.replace(r, n.bind(e)),
|
|
3897
|
+
e
|
|
3898
|
+
), "makeRegexPrefix"), wt = /* @__PURE__ */ s((e) => typeof e == "string", "isString"), Xf = /* @__PURE__ */ s((e) => e && wt(e) && !Hf.test(e) && !Nf.test(e) && e.indexOf("#") !== 0, "checkPattern"), Yf = /* @__PURE__ */ s((e) => e.split(Df).filter(Boolean), "splitPattern"), wn = class {
|
|
3899
|
+
static {
|
|
3900
|
+
s(this, "IgnoreRule");
|
|
3901
|
+
}
|
|
3902
|
+
constructor(t, r, n, i, o, a) {
|
|
3903
|
+
this.pattern = t, this.mark = r, this.negative = o, Ue(this, "body", n), Ue(this, "ignoreCase", i), Ue(this, "regexPrefix", a);
|
|
3904
|
+
}
|
|
3905
|
+
get regex() {
|
|
3906
|
+
let t = Mo + Ve;
|
|
3907
|
+
return this[t] ? this[t] : this._make(Ve, t);
|
|
3908
|
+
}
|
|
3909
|
+
get checkRegex() {
|
|
3910
|
+
let t = Mo + Ct;
|
|
3911
|
+
return this[t] ? this[t] : this._make(Ct, t);
|
|
3912
|
+
}
|
|
3913
|
+
_make(t, r) {
|
|
3914
|
+
let n = this.regexPrefix.replace(
|
|
3915
|
+
Uf,
|
|
3916
|
+
// It does not need to bind pattern
|
|
3917
|
+
Vf[t]
|
|
3918
|
+
), i = this.ignoreCase ? new RegExp(n, "i") : new RegExp(n);
|
|
3919
|
+
return Ue(this, r, i);
|
|
3920
|
+
}
|
|
3921
|
+
}, Qf = /* @__PURE__ */ s(({
|
|
3922
|
+
pattern: e,
|
|
3923
|
+
mark: t
|
|
3924
|
+
}, r) => {
|
|
3925
|
+
let n = !1, i = e;
|
|
3926
|
+
i.indexOf("!") === 0 && (n = !0, i = i.substr(1)), i = i.replace($f, "!").replace(Mf, "#");
|
|
3927
|
+
let o = Kf(i);
|
|
3928
|
+
return new wn(
|
|
3929
|
+
e,
|
|
3930
|
+
t,
|
|
3931
|
+
i,
|
|
3932
|
+
r,
|
|
3933
|
+
n,
|
|
3934
|
+
o
|
|
3935
|
+
);
|
|
3936
|
+
}, "createRule"), On = class {
|
|
3937
|
+
static {
|
|
3938
|
+
s(this, "RuleManager");
|
|
3939
|
+
}
|
|
3940
|
+
constructor(t) {
|
|
3941
|
+
this._ignoreCase = t, this._rules = [];
|
|
3942
|
+
}
|
|
3943
|
+
_add(t) {
|
|
3944
|
+
if (t && t[qo]) {
|
|
3945
|
+
this._rules = this._rules.concat(t._rules._rules), this._added = !0;
|
|
3946
|
+
return;
|
|
3947
|
+
}
|
|
3948
|
+
if (wt(t) && (t = {
|
|
3949
|
+
pattern: t
|
|
3950
|
+
}), Xf(t.pattern)) {
|
|
3951
|
+
let r = Qf(t, this._ignoreCase);
|
|
3952
|
+
this._added = !0, this._rules.push(r);
|
|
3953
|
+
}
|
|
3954
|
+
}
|
|
3955
|
+
// @param {Array<string> | string | Ignore} pattern
|
|
3956
|
+
add(t) {
|
|
3957
|
+
return this._added = !1, Do(
|
|
3958
|
+
wt(t) ? Yf(t) : t
|
|
3959
|
+
).forEach(this._add, this), this._added;
|
|
3960
|
+
}
|
|
3961
|
+
// Test one single path without recursively checking parent directories
|
|
3962
|
+
//
|
|
3963
|
+
// - checkUnignored `boolean` whether should check if the path is unignored,
|
|
3964
|
+
// setting `checkUnignored` to `false` could reduce additional
|
|
3965
|
+
// path matching.
|
|
3966
|
+
// - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
|
|
3967
|
+
// @returns {TestResult} true if a file is ignored
|
|
3968
|
+
test(t, r, n) {
|
|
3969
|
+
let i = !1, o = !1, a;
|
|
3970
|
+
this._rules.forEach((c) => {
|
|
3971
|
+
let { negative: d } = c;
|
|
3972
|
+
o === d && i !== o || d && !i && !o && !r || !c[n].test(t) || (i = !d, o = d, a = d ? If : c);
|
|
3973
|
+
});
|
|
3974
|
+
let u = {
|
|
3975
|
+
ignored: i,
|
|
3976
|
+
unignored: o
|
|
3977
|
+
};
|
|
3978
|
+
return a && (u.rule = a), u;
|
|
3979
|
+
}
|
|
3980
|
+
}, zf = /* @__PURE__ */ s((e, t) => {
|
|
3981
|
+
throw new t(e);
|
|
3982
|
+
}, "throwError"), de = /* @__PURE__ */ s((e, t, r) => wt(e) ? e ? de.isNotRelative(e) ? r(
|
|
3983
|
+
`path should be a \`path.relative()\`d string, but got "${t}"`,
|
|
3984
|
+
RangeError
|
|
3985
|
+
) : !0 : r("path must not be empty", TypeError) : r(
|
|
3986
|
+
`path must be a string, but got \`${t}\``,
|
|
3987
|
+
TypeError
|
|
3988
|
+
), "checkPath"), Go = /* @__PURE__ */ s((e) => Ff.test(e), "isNotRelative");
|
|
3989
|
+
de.isNotRelative = Go;
|
|
3990
|
+
de.convert = (e) => e;
|
|
3991
|
+
var Ln = class {
|
|
3992
|
+
static {
|
|
3993
|
+
s(this, "Ignore");
|
|
3994
|
+
}
|
|
3995
|
+
constructor({
|
|
3996
|
+
ignorecase: t = !0,
|
|
3997
|
+
ignoreCase: r = t,
|
|
3998
|
+
allowRelativePaths: n = !1
|
|
3999
|
+
} = {}) {
|
|
4000
|
+
Ue(this, qo, !0), this._rules = new On(r), this._strictPathCheck = !n, this._initCache();
|
|
4001
|
+
}
|
|
4002
|
+
_initCache() {
|
|
4003
|
+
this._ignoreCache = /* @__PURE__ */ Object.create(null), this._testCache = /* @__PURE__ */ Object.create(null);
|
|
4004
|
+
}
|
|
4005
|
+
add(t) {
|
|
4006
|
+
return this._rules.add(t) && this._initCache(), this;
|
|
4007
|
+
}
|
|
4008
|
+
// legacy
|
|
4009
|
+
addPattern(t) {
|
|
4010
|
+
return this.add(t);
|
|
4011
|
+
}
|
|
4012
|
+
// @returns {TestResult}
|
|
4013
|
+
_test(t, r, n, i) {
|
|
4014
|
+
let o = t && de.convert(t);
|
|
4015
|
+
return de(
|
|
4016
|
+
o,
|
|
4017
|
+
t,
|
|
4018
|
+
this._strictPathCheck ? zf : Bo
|
|
4019
|
+
), this._t(o, r, n, i);
|
|
4020
|
+
}
|
|
4021
|
+
checkIgnore(t) {
|
|
4022
|
+
if (!qf.test(t))
|
|
4023
|
+
return this.test(t);
|
|
4024
|
+
let r = t.split(He).filter(Boolean);
|
|
4025
|
+
if (r.pop(), r.length) {
|
|
4026
|
+
let n = this._t(
|
|
4027
|
+
r.join(He) + He,
|
|
4028
|
+
this._testCache,
|
|
4029
|
+
!0,
|
|
4030
|
+
r
|
|
4031
|
+
);
|
|
4032
|
+
if (n.ignored)
|
|
4033
|
+
return n;
|
|
4034
|
+
}
|
|
4035
|
+
return this._rules.test(t, !1, Ct);
|
|
4036
|
+
}
|
|
4037
|
+
_t(t, r, n, i) {
|
|
4038
|
+
if (t in r)
|
|
4039
|
+
return r[t];
|
|
4040
|
+
if (i || (i = t.split(He).filter(Boolean)), i.pop(), !i.length)
|
|
4041
|
+
return r[t] = this._rules.test(t, n, Ve);
|
|
4042
|
+
let o = this._t(
|
|
4043
|
+
i.join(He) + He,
|
|
4044
|
+
r,
|
|
4045
|
+
n,
|
|
4046
|
+
i
|
|
4047
|
+
);
|
|
4048
|
+
return r[t] = o.ignored ? o : this._rules.test(t, n, Ve);
|
|
4049
|
+
}
|
|
4050
|
+
ignores(t) {
|
|
4051
|
+
return this._test(t, this._ignoreCache, !1).ignored;
|
|
4052
|
+
}
|
|
4053
|
+
createFilter() {
|
|
4054
|
+
return (t) => !this.ignores(t);
|
|
4055
|
+
}
|
|
4056
|
+
filter(t) {
|
|
4057
|
+
return Do(t).filter(this.createFilter());
|
|
4058
|
+
}
|
|
4059
|
+
// @returns {TestResult}
|
|
4060
|
+
test(t) {
|
|
4061
|
+
return this._test(t, this._testCache, !0);
|
|
4062
|
+
}
|
|
4063
|
+
}, kn = /* @__PURE__ */ s((e) => new Ln(e), "factory"), Zf = /* @__PURE__ */ s((e) => de(e && de.convert(e), e, Bo), "isPathValid");
|
|
4064
|
+
if (
|
|
4065
|
+
// Detect `process` so that it can run in browsers.
|
|
4066
|
+
typeof process < "u" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
|
|
4067
|
+
) {
|
|
4068
|
+
let e = /* @__PURE__ */ s((r) => /^\\\\\?\\/.test(r) || /["<>|\u0000-\u001F]+/u.test(r) ? r : r.replace(/\\/g, "/"), "makePosix");
|
|
4069
|
+
de.convert = e;
|
|
4070
|
+
let t = /^[a-z]:\//i;
|
|
4071
|
+
de.isNotRelative = (r) => t.test(r) || Go(r);
|
|
4072
|
+
}
|
|
4073
|
+
In.exports = kn;
|
|
4074
|
+
kn.default = kn;
|
|
4075
|
+
In.exports.isPathValid = Zf;
|
|
4076
|
+
});
|
|
4077
|
+
|
|
4078
|
+
// ../../node_modules/globby/index.js
|
|
4079
|
+
import Qo from "node:process";
|
|
4080
|
+
import up from "node:fs";
|
|
4081
|
+
import Me from "node:path";
|
|
4082
|
+
|
|
4083
|
+
// ../../node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js
|
|
4084
|
+
import { on as la, once as fa } from "node:events";
|
|
4085
|
+
import { PassThrough as pa } from "node:stream";
|
|
4086
|
+
import { finished as Fn } from "node:stream/promises";
|
|
4087
|
+
function Ft(e) {
|
|
4088
|
+
if (!Array.isArray(e))
|
|
4089
|
+
throw new TypeError(`Expected an array, got \`${typeof e}\`.`);
|
|
4090
|
+
for (let i of e)
|
|
4091
|
+
Mt(i);
|
|
4092
|
+
let t = e.some(({ readableObjectMode: i }) => i), r = ha(e, t), n = new $t({
|
|
4093
|
+
objectMode: t,
|
|
4094
|
+
writableHighWaterMark: r,
|
|
4095
|
+
readableHighWaterMark: r
|
|
4096
|
+
});
|
|
4097
|
+
for (let i of e)
|
|
4098
|
+
n.add(i);
|
|
4099
|
+
return e.length === 0 && Gn(n), n;
|
|
4100
|
+
}
|
|
4101
|
+
s(Ft, "mergeStreams");
|
|
4102
|
+
var ha = /* @__PURE__ */ s((e, t) => {
|
|
4103
|
+
if (e.length === 0)
|
|
4104
|
+
return 16384;
|
|
4105
|
+
let r = e.filter(({ readableObjectMode: n }) => n === t).map(({ readableHighWaterMark: n }) => n);
|
|
4106
|
+
return Math.max(...r);
|
|
4107
|
+
}, "getHighWaterMark"), $t = class extends pa {
|
|
4108
|
+
static {
|
|
4109
|
+
s(this, "MergedStream");
|
|
4110
|
+
}
|
|
4111
|
+
#e = /* @__PURE__ */ new Set([]);
|
|
4112
|
+
#r = /* @__PURE__ */ new Set([]);
|
|
4113
|
+
#n = /* @__PURE__ */ new Set([]);
|
|
4114
|
+
#t;
|
|
4115
|
+
add(t) {
|
|
4116
|
+
Mt(t), !this.#e.has(t) && (this.#e.add(t), this.#t ??= da(this, this.#e), ya({
|
|
4117
|
+
passThroughStream: this,
|
|
4118
|
+
stream: t,
|
|
4119
|
+
streams: this.#e,
|
|
4120
|
+
ended: this.#r,
|
|
4121
|
+
aborted: this.#n,
|
|
4122
|
+
onFinished: this.#t
|
|
4123
|
+
}), t.pipe(this, { end: !1 }));
|
|
4124
|
+
}
|
|
4125
|
+
remove(t) {
|
|
4126
|
+
return Mt(t), this.#e.has(t) ? (t.unpipe(this), !0) : !1;
|
|
4127
|
+
}
|
|
4128
|
+
}, da = /* @__PURE__ */ s(async (e, t) => {
|
|
4129
|
+
Ze(e, Mn);
|
|
4130
|
+
let r = new AbortController();
|
|
4131
|
+
try {
|
|
4132
|
+
await Promise.race([
|
|
4133
|
+
_a(e, r),
|
|
4134
|
+
ga(e, t, r)
|
|
4135
|
+
]);
|
|
4136
|
+
} finally {
|
|
4137
|
+
r.abort(), Ze(e, -Mn);
|
|
4138
|
+
}
|
|
4139
|
+
}, "onMergedStreamFinished"), _a = /* @__PURE__ */ s(async (e, { signal: t }) => {
|
|
4140
|
+
await Fn(e, { signal: t, cleanup: !0 });
|
|
4141
|
+
}, "onMergedStreamEnd"), ga = /* @__PURE__ */ s(async (e, t, { signal: r }) => {
|
|
4142
|
+
for await (let [n] of la(e, "unpipe", { signal: r }))
|
|
4143
|
+
t.has(n) && n.emit(Bn);
|
|
4144
|
+
}, "onInputStreamsUnpipe"), Mt = /* @__PURE__ */ s((e) => {
|
|
4145
|
+
if (typeof e?.pipe != "function")
|
|
4146
|
+
throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`);
|
|
4147
|
+
}, "validateStream"), ya = /* @__PURE__ */ s(async ({ passThroughStream: e, stream: t, streams: r, ended: n, aborted: i, onFinished: o }) => {
|
|
4148
|
+
Ze(e, Dn);
|
|
4149
|
+
let a = new AbortController();
|
|
4150
|
+
try {
|
|
4151
|
+
await Promise.race([
|
|
4152
|
+
Sa(o, t),
|
|
4153
|
+
ma({ passThroughStream: e, stream: t, streams: r, ended: n, aborted: i, controller: a }),
|
|
4154
|
+
Ea({ stream: t, streams: r, ended: n, aborted: i, controller: a })
|
|
4155
|
+
]);
|
|
4156
|
+
} finally {
|
|
4157
|
+
a.abort(), Ze(e, -Dn);
|
|
4158
|
+
}
|
|
4159
|
+
r.size === n.size + i.size && (n.size === 0 && i.size > 0 ? Dt(e) : Gn(e));
|
|
4160
|
+
}, "endWhenStreamsDone"), qn = /* @__PURE__ */ s((e) => e?.code === "ERR_STREAM_PREMATURE_CLOSE", "isAbortError"), Sa = /* @__PURE__ */ s(async (e, t) => {
|
|
4161
|
+
try {
|
|
4162
|
+
await e, Dt(t);
|
|
4163
|
+
} catch (r) {
|
|
4164
|
+
qn(r) ? Dt(t) : jn(t, r);
|
|
4165
|
+
}
|
|
4166
|
+
}, "afterMergedStreamFinished"), ma = /* @__PURE__ */ s(async ({ passThroughStream: e, stream: t, streams: r, ended: n, aborted: i, controller: { signal: o } }) => {
|
|
4167
|
+
try {
|
|
4168
|
+
await Fn(t, { signal: o, cleanup: !0, readable: !0, writable: !1 }), r.has(t) && n.add(t);
|
|
4169
|
+
} catch (a) {
|
|
4170
|
+
if (o.aborted || !r.has(t))
|
|
4171
|
+
return;
|
|
4172
|
+
qn(a) ? i.add(t) : jn(e, a);
|
|
4173
|
+
}
|
|
4174
|
+
}, "onInputStreamEnd"), Ea = /* @__PURE__ */ s(async ({ stream: e, streams: t, ended: r, aborted: n, controller: { signal: i } }) => {
|
|
4175
|
+
await fa(e, Bn, { signal: i }), t.delete(e), r.delete(e), n.delete(e);
|
|
4176
|
+
}, "onInputStreamUnpipe"), Bn = Symbol("unpipe"), Gn = /* @__PURE__ */ s((e) => {
|
|
4177
|
+
e.writable && e.end();
|
|
4178
|
+
}, "endStream"), Dt = /* @__PURE__ */ s((e) => {
|
|
4179
|
+
(e.readable || e.writable) && e.destroy();
|
|
4180
|
+
}, "abortStream"), jn = /* @__PURE__ */ s((e, t) => {
|
|
4181
|
+
e.destroyed || (e.once("error", Aa), e.destroy(t));
|
|
4182
|
+
}, "errorStream"), Aa = /* @__PURE__ */ s(() => {
|
|
4183
|
+
}, "noop"), Ze = /* @__PURE__ */ s((e, t) => {
|
|
4184
|
+
let r = e.getMaxListeners();
|
|
4185
|
+
r !== 0 && r !== Number.POSITIVE_INFINITY && e.setMaxListeners(r + t);
|
|
4186
|
+
}, "updateMaxListeners"), Mn = 2, Dn = 1;
|
|
4187
|
+
|
|
4188
|
+
// ../../node_modules/globby/index.js
|
|
4189
|
+
var De = Nt(vn(), 1);
|
|
4190
|
+
|
|
4191
|
+
// ../../node_modules/globby/node_modules/path-type/index.js
|
|
4192
|
+
import Cf from "node:fs";
|
|
4193
|
+
import wf from "node:fs/promises";
|
|
4194
|
+
async function Pn(e, t, r) {
|
|
4195
|
+
if (typeof r != "string")
|
|
4196
|
+
throw new TypeError(`Expected a string, got ${typeof r}`);
|
|
4197
|
+
try {
|
|
4198
|
+
return (await wf[e](r))[t]();
|
|
4199
|
+
} catch (n) {
|
|
4200
|
+
if (n.code === "ENOENT")
|
|
4201
|
+
return !1;
|
|
4202
|
+
throw n;
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
s(Pn, "isType");
|
|
4206
|
+
function xn(e, t, r) {
|
|
4207
|
+
if (typeof r != "string")
|
|
4208
|
+
throw new TypeError(`Expected a string, got ${typeof r}`);
|
|
4209
|
+
try {
|
|
4210
|
+
return Cf[e](r)[t]();
|
|
4211
|
+
} catch (n) {
|
|
4212
|
+
if (n.code === "ENOENT")
|
|
4213
|
+
return !1;
|
|
4214
|
+
throw n;
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
s(xn, "isTypeSync");
|
|
4218
|
+
var Xd = Pn.bind(void 0, "stat", "isFile"), Ho = Pn.bind(void 0, "stat", "isDirectory"), Yd = Pn.bind(void 0, "lstat", "isSymbolicLink"), Qd = xn.bind(void 0, "statSync", "isFile"), No = xn.bind(void 0, "statSync", "isDirectory"), zd = xn.bind(void 0, "lstatSync", "isSymbolicLink");
|
|
4219
|
+
|
|
4220
|
+
// ../../node_modules/unicorn-magic/node.js
|
|
4221
|
+
import { promisify as Of } from "node:util";
|
|
4222
|
+
import { execFile as Lf, execFileSync as s_ } from "node:child_process";
|
|
4223
|
+
import { fileURLToPath as kf } from "node:url";
|
|
4224
|
+
var o_ = Of(Lf);
|
|
4225
|
+
function We(e) {
|
|
4226
|
+
return e instanceof URL ? kf(e) : e;
|
|
4227
|
+
}
|
|
4228
|
+
s(We, "toPath");
|
|
4229
|
+
var a_ = 10 * 1024 * 1024;
|
|
4230
|
+
|
|
4231
|
+
// ../../node_modules/globby/ignore.js
|
|
4232
|
+
var Hn = Nt(vn(), 1), Wo = Nt(jo(), 1);
|
|
4233
|
+
import Jf from "node:process";
|
|
4234
|
+
import ep from "node:fs";
|
|
4235
|
+
import tp from "node:fs/promises";
|
|
4236
|
+
import $e from "node:path";
|
|
4237
|
+
|
|
4238
|
+
// ../../node_modules/slash/index.js
|
|
4239
|
+
function Ne(e) {
|
|
4240
|
+
return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
|
|
4241
|
+
}
|
|
4242
|
+
s(Ne, "slash");
|
|
4243
|
+
|
|
4244
|
+
// ../../node_modules/globby/utilities.js
|
|
4245
|
+
var Ke = /* @__PURE__ */ s((e) => e[0] === "!", "isNegativePattern");
|
|
4246
|
+
|
|
4247
|
+
// ../../node_modules/globby/ignore.js
|
|
4248
|
+
var rp = [
|
|
4249
|
+
"**/node_modules",
|
|
4250
|
+
"**/flow-typed",
|
|
4251
|
+
"**/coverage",
|
|
4252
|
+
"**/.git"
|
|
4253
|
+
], Uo = {
|
|
4254
|
+
absolute: !0,
|
|
4255
|
+
dot: !0
|
|
4256
|
+
}, Ot = "**/.gitignore", np = /* @__PURE__ */ s((e, t) => Ke(e) ? "!" + $e.posix.join(t, e.slice(1)) : $e.posix.join(t, e), "applyBaseToPattern"), sp = /* @__PURE__ */ s((e, t) => {
|
|
4257
|
+
let r = Ne($e.relative(t, $e.dirname(e.filePath)));
|
|
4258
|
+
return e.content.split(/\r?\n/).filter((n) => n && !n.startsWith("#")).map((n) => np(n, r));
|
|
4259
|
+
}, "parseIgnoreFile"), ip = /* @__PURE__ */ s((e, t) => {
|
|
4260
|
+
if (t = Ne(t), $e.isAbsolute(e)) {
|
|
4261
|
+
if (Ne(e).startsWith(t))
|
|
4262
|
+
return $e.relative(t, e);
|
|
4263
|
+
throw new Error(`Path ${e} is not in cwd ${t}`);
|
|
4264
|
+
}
|
|
4265
|
+
return e;
|
|
4266
|
+
}, "toRelativePath"), Vo = /* @__PURE__ */ s((e, t) => {
|
|
4267
|
+
let r = e.flatMap((i) => sp(i, t)), n = (0, Wo.default)().add(r);
|
|
4268
|
+
return (i) => (i = We(i), i = ip(i, t), i ? n.ignores(Ne(i)) : !1);
|
|
4269
|
+
}, "getIsIgnoredPredicate"), Ko = /* @__PURE__ */ s((e = {}) => ({
|
|
4270
|
+
cwd: We(e.cwd) ?? Jf.cwd(),
|
|
4271
|
+
suppressErrors: !!e.suppressErrors,
|
|
4272
|
+
deep: typeof e.deep == "number" ? e.deep : Number.POSITIVE_INFINITY,
|
|
4273
|
+
ignore: [...e.ignore ?? [], ...rp]
|
|
4274
|
+
}), "normalizeOptions"), Lt = /* @__PURE__ */ s(async (e, t) => {
|
|
4275
|
+
let { cwd: r, suppressErrors: n, deep: i, ignore: o } = Ko(t), a = await (0, Hn.default)(e, {
|
|
4276
|
+
cwd: r,
|
|
4277
|
+
suppressErrors: n,
|
|
4278
|
+
deep: i,
|
|
4279
|
+
ignore: o,
|
|
4280
|
+
...Uo
|
|
4281
|
+
}), u = await Promise.all(
|
|
4282
|
+
a.map(async (c) => ({
|
|
4283
|
+
filePath: c,
|
|
4284
|
+
content: await tp.readFile(c, "utf8")
|
|
4285
|
+
}))
|
|
4286
|
+
);
|
|
4287
|
+
return Vo(u, r);
|
|
4288
|
+
}, "isIgnoredByIgnoreFiles"), kt = /* @__PURE__ */ s((e, t) => {
|
|
4289
|
+
let { cwd: r, suppressErrors: n, deep: i, ignore: o } = Ko(t), u = Hn.default.sync(e, {
|
|
4290
|
+
cwd: r,
|
|
4291
|
+
suppressErrors: n,
|
|
4292
|
+
deep: i,
|
|
4293
|
+
ignore: o,
|
|
4294
|
+
...Uo
|
|
4295
|
+
}).map((c) => ({
|
|
4296
|
+
filePath: c,
|
|
4297
|
+
content: ep.readFileSync(c, "utf8")
|
|
4298
|
+
}));
|
|
4299
|
+
return Vo(u, r);
|
|
4300
|
+
}, "isIgnoredByIgnoreFilesSync"), op = /* @__PURE__ */ s((e) => Lt(Ot, e), "isGitIgnored"), ap = /* @__PURE__ */ s((e) => kt(Ot, e), "isGitIgnoredSync");
|
|
4301
|
+
|
|
4302
|
+
// ../../node_modules/globby/index.js
|
|
4303
|
+
var cp = /* @__PURE__ */ s((e) => {
|
|
4304
|
+
if (e.some((t) => typeof t != "string"))
|
|
4305
|
+
throw new TypeError("Patterns must be a string or an array of strings");
|
|
4306
|
+
}, "assertPatternsInput"), zo = /* @__PURE__ */ s((e, t) => {
|
|
4307
|
+
let r = Ke(e) ? e.slice(1) : e;
|
|
4308
|
+
return Me.isAbsolute(r) ? r : Me.join(t, r);
|
|
4309
|
+
}, "normalizePathForDirectoryGlob"), Zo = /* @__PURE__ */ s(({ directoryPath: e, files: t, extensions: r }) => {
|
|
4310
|
+
let n = r?.length > 0 ? `.${r.length > 1 ? `{${r.join(",")}}` : r[0]}` : "";
|
|
4311
|
+
return t ? t.map((i) => Me.posix.join(e, `**/${Me.extname(i) ? i : `${i}${n}`}`)) : [Me.posix.join(e, `**${n ? `/*${n}` : ""}`)];
|
|
4312
|
+
}, "getDirectoryGlob"), Xo = /* @__PURE__ */ s(async (e, {
|
|
4313
|
+
cwd: t = Qo.cwd(),
|
|
4314
|
+
files: r,
|
|
4315
|
+
extensions: n
|
|
4316
|
+
} = {}) => (await Promise.all(
|
|
4317
|
+
e.map(async (o) => await Ho(zo(o, t)) ? Zo({ directoryPath: o, files: r, extensions: n }) : o)
|
|
4318
|
+
)).flat(), "directoryToGlob"), Yo = /* @__PURE__ */ s((e, {
|
|
4319
|
+
cwd: t = Qo.cwd(),
|
|
4320
|
+
files: r,
|
|
4321
|
+
extensions: n
|
|
4322
|
+
} = {}) => e.flatMap((i) => No(zo(i, t)) ? Zo({ directoryPath: i, files: r, extensions: n }) : i), "directoryToGlobSync"), Nn = /* @__PURE__ */ s((e) => (e = [...new Set([e].flat())], cp(e), e), "toPatternsArray"), lp = /* @__PURE__ */ s((e) => {
|
|
4323
|
+
if (!e)
|
|
4324
|
+
return;
|
|
4325
|
+
let t;
|
|
4326
|
+
try {
|
|
4327
|
+
t = up.statSync(e);
|
|
4328
|
+
} catch {
|
|
4329
|
+
return;
|
|
4330
|
+
}
|
|
4331
|
+
if (!t.isDirectory())
|
|
4332
|
+
throw new Error("The `cwd` option must be a path to a directory");
|
|
4333
|
+
}, "checkCwdOption"), Jo = /* @__PURE__ */ s((e = {}) => (e = {
|
|
4334
|
+
...e,
|
|
4335
|
+
ignore: e.ignore ?? [],
|
|
4336
|
+
expandDirectories: e.expandDirectories ?? !0,
|
|
4337
|
+
cwd: We(e.cwd)
|
|
4338
|
+
}, lp(e.cwd), e), "normalizeOptions"), ea = /* @__PURE__ */ s((e) => async (t, r) => e(Nn(t), Jo(r)), "normalizeArguments"), It = /* @__PURE__ */ s((e) => (t, r) => e(Nn(t), Jo(r)), "normalizeArgumentsSync"), ta = /* @__PURE__ */ s((e) => {
|
|
4339
|
+
let { ignoreFiles: t, gitignore: r } = e, n = t ? Nn(t) : [];
|
|
4340
|
+
return r && n.push(Ot), n;
|
|
4341
|
+
}, "getIgnoreFilesPatterns"), fp = /* @__PURE__ */ s(async (e) => {
|
|
4342
|
+
let t = ta(e);
|
|
4343
|
+
return na(
|
|
4344
|
+
t.length > 0 && await Lt(t, e)
|
|
4345
|
+
);
|
|
4346
|
+
}, "getFilter"), ra = /* @__PURE__ */ s((e) => {
|
|
4347
|
+
let t = ta(e);
|
|
4348
|
+
return na(
|
|
4349
|
+
t.length > 0 && kt(t, e)
|
|
4350
|
+
);
|
|
4351
|
+
}, "getFilterSync"), na = /* @__PURE__ */ s((e) => {
|
|
4352
|
+
let t = /* @__PURE__ */ new Set();
|
|
4353
|
+
return (r) => {
|
|
4354
|
+
let n = Me.normalize(r.path ?? r);
|
|
4355
|
+
return t.has(n) || e && e(n) ? !1 : (t.add(n), !0);
|
|
4356
|
+
};
|
|
4357
|
+
}, "createFilterFunction"), sa = /* @__PURE__ */ s((e, t) => e.flat().filter((r) => t(r)), "unionFastGlobResults"), ia = /* @__PURE__ */ s((e, t) => {
|
|
4358
|
+
let r = [];
|
|
4359
|
+
for (; e.length > 0; ) {
|
|
4360
|
+
let n = e.findIndex((o) => Ke(o));
|
|
4361
|
+
if (n === -1) {
|
|
4362
|
+
r.push({ patterns: e, options: t });
|
|
4363
|
+
break;
|
|
4364
|
+
}
|
|
4365
|
+
let i = e[n].slice(1);
|
|
4366
|
+
for (let o of r)
|
|
4367
|
+
o.options.ignore.push(i);
|
|
4368
|
+
n !== 0 && r.push({
|
|
4369
|
+
patterns: e.slice(0, n),
|
|
4370
|
+
options: {
|
|
4371
|
+
...t,
|
|
4372
|
+
ignore: [
|
|
4373
|
+
...t.ignore,
|
|
4374
|
+
i
|
|
4375
|
+
]
|
|
4376
|
+
}
|
|
4377
|
+
}), e = e.slice(n + 1);
|
|
4378
|
+
}
|
|
4379
|
+
return r;
|
|
4380
|
+
}, "convertNegativePatterns"), oa = /* @__PURE__ */ s((e, t) => ({
|
|
4381
|
+
...t ? { cwd: t } : {},
|
|
4382
|
+
...Array.isArray(e) ? { files: e } : e
|
|
4383
|
+
}), "normalizeExpandDirectoriesOption"), aa = /* @__PURE__ */ s(async (e, t) => {
|
|
4384
|
+
let r = ia(e, t), { cwd: n, expandDirectories: i } = t;
|
|
4385
|
+
if (!i)
|
|
4386
|
+
return r;
|
|
4387
|
+
let o = oa(i, n);
|
|
4388
|
+
return Promise.all(
|
|
4389
|
+
r.map(async (a) => {
|
|
4390
|
+
let { patterns: u, options: c } = a;
|
|
4391
|
+
return [
|
|
4392
|
+
u,
|
|
4393
|
+
c.ignore
|
|
4394
|
+
] = await Promise.all([
|
|
4395
|
+
Xo(u, o),
|
|
4396
|
+
Xo(c.ignore, { cwd: n })
|
|
4397
|
+
]), { patterns: u, options: c };
|
|
4398
|
+
})
|
|
4399
|
+
);
|
|
4400
|
+
}, "generateTasks"), $n = /* @__PURE__ */ s((e, t) => {
|
|
4401
|
+
let r = ia(e, t), { cwd: n, expandDirectories: i } = t;
|
|
4402
|
+
if (!i)
|
|
4403
|
+
return r;
|
|
4404
|
+
let o = oa(i, n);
|
|
4405
|
+
return r.map((a) => {
|
|
4406
|
+
let { patterns: u, options: c } = a;
|
|
4407
|
+
return u = Yo(u, o), c.ignore = Yo(c.ignore, { cwd: n }), { patterns: u, options: c };
|
|
4408
|
+
});
|
|
4409
|
+
}, "generateTasksSync"), H_ = ea(async (e, t) => {
|
|
4410
|
+
let [
|
|
4411
|
+
r,
|
|
4412
|
+
n
|
|
4413
|
+
] = await Promise.all([
|
|
4414
|
+
aa(e, t),
|
|
4415
|
+
fp(t)
|
|
4416
|
+
]), i = await Promise.all(r.map((o) => (0, De.default)(o.patterns, o.options)));
|
|
4417
|
+
return sa(i, n);
|
|
4418
|
+
}), N_ = It((e, t) => {
|
|
4419
|
+
let r = $n(e, t), n = ra(t), i = r.map((o) => De.default.sync(o.patterns, o.options));
|
|
4420
|
+
return sa(i, n);
|
|
4421
|
+
}), $_ = It((e, t) => {
|
|
4422
|
+
let r = $n(e, t), n = ra(t), i = r.map((a) => De.default.stream(a.patterns, a.options));
|
|
4423
|
+
return Ft(i).filter((a) => n(a));
|
|
4424
|
+
}), M_ = It(
|
|
4425
|
+
(e, t) => e.some((r) => De.default.isDynamicPattern(r, t))
|
|
4426
|
+
), D_ = ea(aa), F_ = It($n), { convertPathToPattern: q_ } = De.default;
|
|
4427
|
+
|
|
4428
|
+
export {
|
|
4429
|
+
Ne as a,
|
|
4430
|
+
Lt as b,
|
|
4431
|
+
kt as c,
|
|
4432
|
+
op as d,
|
|
4433
|
+
ap as e,
|
|
4434
|
+
H_ as f,
|
|
4435
|
+
N_ as g,
|
|
4436
|
+
$_ as h,
|
|
4437
|
+
M_ as i,
|
|
4438
|
+
D_ as j,
|
|
4439
|
+
F_ as k,
|
|
4440
|
+
q_ as l
|
|
4441
|
+
};
|