@shopify/create-app 3.65.2 → 3.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/chunk-2RSJVBMF.js +5625 -0
  2. package/dist/{chunk-Z65QJ5D7.js → chunk-4DRC2PSU.js} +17 -30
  3. package/dist/chunk-4OD45DDO.js +31508 -0
  4. package/dist/chunk-522OB3EU.js +45 -0
  5. package/dist/{chunk-JTKTLA7L.js → chunk-5U24TEX5.js} +5434 -10324
  6. package/dist/{chunk-GJPZCXGT.js → chunk-6A7MXLVB.js} +159 -405
  7. package/dist/{chunk-ZYKRTO5P.js → chunk-7ZCQLP5Y.js} +3 -3
  8. package/dist/{chunk-5LBEKXRW.js → chunk-FIJKOZJF.js} +19 -55
  9. package/dist/{chunk-QSKQTKTB.js → chunk-FT6PCF6E.js} +2441 -5551
  10. package/dist/chunk-GIUM5DCQ.js +2144 -0
  11. package/dist/chunk-HIAKHDLR.js +54 -0
  12. package/dist/chunk-LLSRDN3T.js +15352 -0
  13. package/dist/chunk-LTDD2GRL.js +111 -0
  14. package/dist/{chunk-63QVG2CD.js → chunk-NGBYQF44.js} +9 -9
  15. package/dist/chunk-NLC7NBUB.js +80 -0
  16. package/dist/{chunk-FMKVOTQK.js → chunk-O5K4AU7Q.js} +18 -34
  17. package/dist/chunk-OMDEA7TV.js +10615 -0
  18. package/dist/chunk-PNN7RS7Y.js +105 -0
  19. package/dist/{chunk-ZPL24Y2D.js → chunk-POZ5MGPT.js} +13 -18
  20. package/dist/chunk-T7T35H4F.js +108 -0
  21. package/dist/chunk-UBB7JKND.js +55 -0
  22. package/dist/chunk-VSLR7ET4.js +3034 -0
  23. package/dist/{chunk-SAO7C4LP.js → chunk-VZVGAREJ.js} +46821 -101962
  24. package/dist/{chunk-KDNBKIH4.js → chunk-WBQF4CSV.js} +12 -22
  25. package/dist/chunk-XVNW332R.js +524 -0
  26. package/dist/{chunk-YB6D4XQ7.js → chunk-Y4ECGRAF.js} +13 -23
  27. package/dist/chunk-ZAUZQLNO.js +3774 -0
  28. package/dist/chunk-ZULFH3SL.js +1847 -0
  29. package/dist/commands/init.d.ts +0 -1
  30. package/dist/commands/init.js +27 -27
  31. package/dist/commands/init.test.js +51 -70
  32. package/dist/{constants-24TFXZKQ.js → constants-WG7I7G3O.js} +5 -5
  33. package/dist/custom-oclif-loader-JKRJZ56E.js +47 -0
  34. package/dist/del-NW5KFKFP.js +1820 -0
  35. package/dist/devtools-UBOREV57.js +2572 -0
  36. package/dist/error-handler-26SLAJTC.js +35 -0
  37. package/dist/hooks/postrun.js +35 -42
  38. package/dist/hooks/prerun.js +58 -36
  39. package/dist/index.js +7 -7
  40. package/dist/lib-3K5QYF3J.js +9 -0
  41. package/dist/{local-3VUKCW4R.js → local-H6TW5MNX.js} +13 -13
  42. package/dist/magic-string.es-3RXPUXZF.js +843 -0
  43. package/dist/multipart-parser-QKUAJJP5.js +193 -0
  44. package/dist/{node-package-manager-HYZRZNU6.js → node-package-manager-QAUN6HGS.js} +16 -14
  45. package/dist/open-MZGVNFZO.js +197 -0
  46. package/dist/out-KDGAD475.js +6 -0
  47. package/dist/{path-CFPIDSWV.js → path-L375JOQ2.js} +4 -4
  48. package/dist/prompts/init.js +13 -13
  49. package/dist/prompts/init.test.js +42 -59
  50. package/dist/services/init.js +20 -20
  51. package/dist/services/init.test.js +5 -5
  52. package/dist/system-ZI2HKAKO.js +26 -0
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/dist/{ui-7NEDEALP.js → ui-727JEZUX.js} +13 -13
  55. package/dist/utils/template/cleanup.js +13 -13
  56. package/dist/utils/template/cleanup.test.js +18 -30
  57. package/dist/utils/template/npm.js +15 -15
  58. package/dist/utils/template/npm.test.js +48 -87
  59. package/oclif.manifest.json +1 -1
  60. package/package.json +3 -4
  61. package/dist/chunk-3US34ZNP.js +0 -145
  62. package/dist/chunk-3XYIOBQ2.js +0 -22131
  63. package/dist/chunk-6IZMEXPW.js +0 -105
  64. package/dist/chunk-7DRS5WXI.js +0 -7843
  65. package/dist/chunk-DL3MKXVR.js +0 -4754
  66. package/dist/chunk-HDVJ5FPK.js +0 -63
  67. package/dist/chunk-IKO7JBOJ.js +0 -14788
  68. package/dist/chunk-LSCXQWNO.js +0 -822
  69. package/dist/chunk-M2VKB6RG.js +0 -146
  70. package/dist/chunk-MCED27CG.js +0 -5626
  71. package/dist/chunk-SWNRLCC6.js +0 -61
  72. package/dist/chunk-T5LLJYYS.js +0 -195
  73. package/dist/chunk-U5LTJVWL.js +0 -3185
  74. package/dist/chunk-WR7YKB6H.js +0 -44962
  75. package/dist/chunk-YC4FLMDD.js +0 -74
  76. package/dist/chunk-ZRUHMMSQ.js +0 -2477
  77. package/dist/custom-oclif-loader-5KBN3RSN.js +0 -83
  78. package/dist/del-ZCPTGWOA.js +0 -2847
  79. package/dist/devtools-5N4JAP3R.js +0 -3588
  80. package/dist/error-handler-GTW2KSRC.js +0 -35
  81. package/dist/lib-CTSCLPNV.js +0 -9
  82. package/dist/magic-string.es-ATGURXGQ.js +0 -1353
  83. package/dist/multipart-parser-KYOHF24X.js +0 -360
  84. package/dist/open-JRS7RW22.js +0 -291
  85. package/dist/out-OKI3G7I5.js +0 -6
  86. package/dist/system-4S4YXUXZ.js +0 -26
@@ -0,0 +1,1820 @@
1
+ import {
2
+ require_once,
3
+ require_wrappy
4
+ } from "./chunk-O5K4AU7Q.js";
5
+ import {
6
+ require_graceful_fs
7
+ } from "./chunk-XVNW332R.js";
8
+ import {
9
+ require_balanced_match,
10
+ require_globby,
11
+ require_indent_string,
12
+ require_slash
13
+ } from "./chunk-6A7MXLVB.js";
14
+ import {
15
+ require_is_glob
16
+ } from "./chunk-ZAUZQLNO.js";
17
+ import {
18
+ __commonJS,
19
+ __require,
20
+ init_cjs_shims
21
+ } from "./chunk-POZ5MGPT.js";
22
+
23
+ // ../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js
24
+ var require_is_path_cwd = __commonJS({
25
+ "../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module) {
26
+ "use strict";
27
+ init_cjs_shims();
28
+ var path = __require("path");
29
+ module.exports = (path_) => {
30
+ let cwd = process.cwd();
31
+ return path_ = path.resolve(path_), process.platform === "win32" && (cwd = cwd.toLowerCase(), path_ = path_.toLowerCase()), path_ === cwd;
32
+ };
33
+ }
34
+ });
35
+
36
+ // ../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js
37
+ var require_is_path_inside = __commonJS({
38
+ "../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module) {
39
+ "use strict";
40
+ init_cjs_shims();
41
+ var path = __require("path");
42
+ module.exports = (childPath, parentPath) => {
43
+ let relation = path.relative(parentPath, childPath);
44
+ return !!(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
45
+ };
46
+ }
47
+ });
48
+
49
+ // ../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js
50
+ var require_old = __commonJS({
51
+ "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports) {
52
+ init_cjs_shims();
53
+ var pathModule = __require("path"), isWindows = process.platform === "win32", fs = __require("fs"), DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
54
+ function rethrow() {
55
+ var callback;
56
+ if (DEBUG) {
57
+ var backtrace = new Error();
58
+ callback = debugCallback;
59
+ } else
60
+ callback = missingCallback;
61
+ return callback;
62
+ function debugCallback(err) {
63
+ err && (backtrace.message = err.message, err = backtrace, missingCallback(err));
64
+ }
65
+ function missingCallback(err) {
66
+ if (err) {
67
+ if (process.throwDeprecation)
68
+ throw err;
69
+ if (!process.noDeprecation) {
70
+ var msg = "fs: missing callback " + (err.stack || err.message);
71
+ process.traceDeprecation ? console.trace(msg) : console.error(msg);
72
+ }
73
+ }
74
+ }
75
+ }
76
+ function maybeCallback(cb) {
77
+ return typeof cb == "function" ? cb : rethrow();
78
+ }
79
+ var normalize = pathModule.normalize;
80
+ isWindows ? nextPartRe = /(.*?)(?:[\/\\]+|$)/g : nextPartRe = /(.*?)(?:[\/]+|$)/g;
81
+ var nextPartRe;
82
+ isWindows ? splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/ : splitRootRe = /^[\/]*/;
83
+ var splitRootRe;
84
+ exports.realpathSync = function(p, cache) {
85
+ if (p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
86
+ return cache[p];
87
+ var original = p, seenLinks = {}, knownHard = {}, pos, current, base, previous;
88
+ start();
89
+ function start() {
90
+ var m = splitRootRe.exec(p);
91
+ pos = m[0].length, current = m[0], base = m[0], previous = "", isWindows && !knownHard[base] && (fs.lstatSync(base), knownHard[base] = !0);
92
+ }
93
+ for (; pos < p.length; ) {
94
+ nextPartRe.lastIndex = pos;
95
+ var result = nextPartRe.exec(p);
96
+ if (previous = current, current += result[0], base = previous + result[1], pos = nextPartRe.lastIndex, !(knownHard[base] || cache && cache[base] === base)) {
97
+ var resolvedLink;
98
+ if (cache && Object.prototype.hasOwnProperty.call(cache, base))
99
+ resolvedLink = cache[base];
100
+ else {
101
+ var stat = fs.lstatSync(base);
102
+ if (!stat.isSymbolicLink()) {
103
+ knownHard[base] = !0, cache && (cache[base] = base);
104
+ continue;
105
+ }
106
+ var linkTarget = null;
107
+ if (!isWindows) {
108
+ var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
109
+ seenLinks.hasOwnProperty(id) && (linkTarget = seenLinks[id]);
110
+ }
111
+ linkTarget === null && (fs.statSync(base), linkTarget = fs.readlinkSync(base)), resolvedLink = pathModule.resolve(previous, linkTarget), cache && (cache[base] = resolvedLink), isWindows || (seenLinks[id] = linkTarget);
112
+ }
113
+ p = pathModule.resolve(resolvedLink, p.slice(pos)), start();
114
+ }
115
+ }
116
+ return cache && (cache[original] = p), p;
117
+ };
118
+ exports.realpath = function(p, cache, cb) {
119
+ if (typeof cb != "function" && (cb = maybeCallback(cache), cache = null), p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
120
+ return process.nextTick(cb.bind(null, null, cache[p]));
121
+ var original = p, seenLinks = {}, knownHard = {}, pos, current, base, previous;
122
+ start();
123
+ function start() {
124
+ var m = splitRootRe.exec(p);
125
+ pos = m[0].length, current = m[0], base = m[0], previous = "", isWindows && !knownHard[base] ? fs.lstat(base, function(err) {
126
+ if (err)
127
+ return cb(err);
128
+ knownHard[base] = !0, LOOP();
129
+ }) : process.nextTick(LOOP);
130
+ }
131
+ function LOOP() {
132
+ if (pos >= p.length)
133
+ return cache && (cache[original] = p), cb(null, p);
134
+ nextPartRe.lastIndex = pos;
135
+ var result = nextPartRe.exec(p);
136
+ return previous = current, current += result[0], base = previous + result[1], pos = nextPartRe.lastIndex, knownHard[base] || cache && cache[base] === base ? process.nextTick(LOOP) : cache && Object.prototype.hasOwnProperty.call(cache, base) ? gotResolvedLink(cache[base]) : fs.lstat(base, gotStat);
137
+ }
138
+ function gotStat(err, stat) {
139
+ if (err)
140
+ return cb(err);
141
+ if (!stat.isSymbolicLink())
142
+ return knownHard[base] = !0, cache && (cache[base] = base), process.nextTick(LOOP);
143
+ if (!isWindows) {
144
+ var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
145
+ if (seenLinks.hasOwnProperty(id))
146
+ return gotTarget(null, seenLinks[id], base);
147
+ }
148
+ fs.stat(base, function(err2) {
149
+ if (err2)
150
+ return cb(err2);
151
+ fs.readlink(base, function(err3, target) {
152
+ isWindows || (seenLinks[id] = target), gotTarget(err3, target);
153
+ });
154
+ });
155
+ }
156
+ function gotTarget(err, target, base2) {
157
+ if (err)
158
+ return cb(err);
159
+ var resolvedLink = pathModule.resolve(previous, target);
160
+ cache && (cache[base2] = resolvedLink), gotResolvedLink(resolvedLink);
161
+ }
162
+ function gotResolvedLink(resolvedLink) {
163
+ p = pathModule.resolve(resolvedLink, p.slice(pos)), start();
164
+ }
165
+ };
166
+ }
167
+ });
168
+
169
+ // ../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js
170
+ var require_fs = __commonJS({
171
+ "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js"(exports, module) {
172
+ init_cjs_shims();
173
+ module.exports = realpath;
174
+ realpath.realpath = realpath;
175
+ realpath.sync = realpathSync;
176
+ realpath.realpathSync = realpathSync;
177
+ realpath.monkeypatch = monkeypatch;
178
+ realpath.unmonkeypatch = unmonkeypatch;
179
+ var fs = __require("fs"), origRealpath = fs.realpath, origRealpathSync = fs.realpathSync, version = process.version, ok = /^v[0-5]\./.test(version), old = require_old();
180
+ function newError(er) {
181
+ return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
182
+ }
183
+ function realpath(p, cache, cb) {
184
+ if (ok)
185
+ return origRealpath(p, cache, cb);
186
+ typeof cache == "function" && (cb = cache, cache = null), origRealpath(p, cache, function(er, result) {
187
+ newError(er) ? old.realpath(p, cache, cb) : cb(er, result);
188
+ });
189
+ }
190
+ function realpathSync(p, cache) {
191
+ if (ok)
192
+ return origRealpathSync(p, cache);
193
+ try {
194
+ return origRealpathSync(p, cache);
195
+ } catch (er) {
196
+ if (newError(er))
197
+ return old.realpathSync(p, cache);
198
+ throw er;
199
+ }
200
+ }
201
+ function monkeypatch() {
202
+ fs.realpath = realpath, fs.realpathSync = realpathSync;
203
+ }
204
+ function unmonkeypatch() {
205
+ fs.realpath = origRealpath, fs.realpathSync = origRealpathSync;
206
+ }
207
+ }
208
+ });
209
+
210
+ // ../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js
211
+ var require_concat_map = __commonJS({
212
+ "../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js"(exports, module) {
213
+ init_cjs_shims();
214
+ module.exports = function(xs, fn) {
215
+ for (var res = [], i = 0; i < xs.length; i++) {
216
+ var x = fn(xs[i], i);
217
+ isArray(x) ? res.push.apply(res, x) : res.push(x);
218
+ }
219
+ return res;
220
+ };
221
+ var isArray = Array.isArray || function(xs) {
222
+ return Object.prototype.toString.call(xs) === "[object Array]";
223
+ };
224
+ }
225
+ });
226
+
227
+ // ../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js
228
+ var require_brace_expansion = __commonJS({
229
+ "../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(exports, module) {
230
+ init_cjs_shims();
231
+ var concatMap = require_concat_map(), balanced = require_balanced_match();
232
+ module.exports = expandTop;
233
+ var escSlash = "\0SLASH" + Math.random() + "\0", escOpen = "\0OPEN" + Math.random() + "\0", escClose = "\0CLOSE" + Math.random() + "\0", escComma = "\0COMMA" + Math.random() + "\0", escPeriod = "\0PERIOD" + Math.random() + "\0";
234
+ function numeric(str) {
235
+ return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
236
+ }
237
+ function escapeBraces(str) {
238
+ return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
239
+ }
240
+ function unescapeBraces(str) {
241
+ return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
242
+ }
243
+ function parseCommaParts(str) {
244
+ if (!str)
245
+ return [""];
246
+ var parts = [], m = balanced("{", "}", str);
247
+ if (!m)
248
+ return str.split(",");
249
+ var pre = m.pre, body = m.body, post = m.post, p = pre.split(",");
250
+ p[p.length - 1] += "{" + body + "}";
251
+ var postParts = parseCommaParts(post);
252
+ return post.length && (p[p.length - 1] += postParts.shift(), p.push.apply(p, postParts)), parts.push.apply(parts, p), parts;
253
+ }
254
+ function expandTop(str) {
255
+ return str ? (str.substr(0, 2) === "{}" && (str = "\\{\\}" + str.substr(2)), expand(escapeBraces(str), !0).map(unescapeBraces)) : [];
256
+ }
257
+ function embrace(str) {
258
+ return "{" + str + "}";
259
+ }
260
+ function isPadded(el) {
261
+ return /^-?0\d/.test(el);
262
+ }
263
+ function lte(i, y) {
264
+ return i <= y;
265
+ }
266
+ function gte(i, y) {
267
+ return i >= y;
268
+ }
269
+ function expand(str, isTop) {
270
+ var expansions = [], m = balanced("{", "}", str);
271
+ if (!m || /\$$/.test(m.pre))
272
+ return [str];
273
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body), isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body), isSequence = isNumericSequence || isAlphaSequence, isOptions = m.body.indexOf(",") >= 0;
274
+ if (!isSequence && !isOptions)
275
+ return m.post.match(/,.*\}/) ? (str = m.pre + "{" + m.body + escClose + m.post, expand(str)) : [str];
276
+ var n;
277
+ if (isSequence)
278
+ n = m.body.split(/\.\./);
279
+ else if (n = parseCommaParts(m.body), n.length === 1 && (n = expand(n[0], !1).map(embrace), n.length === 1)) {
280
+ var post = m.post.length ? expand(m.post, !1) : [""];
281
+ return post.map(function(p) {
282
+ return m.pre + n[0] + p;
283
+ });
284
+ }
285
+ var pre = m.pre, post = m.post.length ? expand(m.post, !1) : [""], N;
286
+ if (isSequence) {
287
+ var x = numeric(n[0]), y = numeric(n[1]), width = Math.max(n[0].length, n[1].length), incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1, test = lte, reverse = y < x;
288
+ reverse && (incr *= -1, test = gte);
289
+ var pad = n.some(isPadded);
290
+ N = [];
291
+ for (var i = x; test(i, y); i += incr) {
292
+ var c;
293
+ if (isAlphaSequence)
294
+ c = String.fromCharCode(i), c === "\\" && (c = "");
295
+ else if (c = String(i), pad) {
296
+ var need = width - c.length;
297
+ if (need > 0) {
298
+ var z = new Array(need + 1).join("0");
299
+ i < 0 ? c = "-" + z + c.slice(1) : c = z + c;
300
+ }
301
+ }
302
+ N.push(c);
303
+ }
304
+ } else
305
+ N = concatMap(n, function(el) {
306
+ return expand(el, !1);
307
+ });
308
+ for (var j = 0; j < N.length; j++)
309
+ for (var k = 0; k < post.length; k++) {
310
+ var expansion = pre + N[j] + post[k];
311
+ (!isTop || isSequence || expansion) && expansions.push(expansion);
312
+ }
313
+ return expansions;
314
+ }
315
+ }
316
+ });
317
+
318
+ // ../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js
319
+ var require_minimatch = __commonJS({
320
+ "../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module) {
321
+ init_cjs_shims();
322
+ module.exports = minimatch;
323
+ minimatch.Minimatch = Minimatch;
324
+ var path = function() {
325
+ try {
326
+ return __require("path");
327
+ } catch {
328
+ }
329
+ }() || {
330
+ sep: "/"
331
+ };
332
+ minimatch.sep = path.sep;
333
+ var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}, expand = require_brace_expansion(), plTypes = {
334
+ "!": { open: "(?:(?!(?:", close: "))[^/]*?)" },
335
+ "?": { open: "(?:", close: ")?" },
336
+ "+": { open: "(?:", close: ")+" },
337
+ "*": { open: "(?:", close: ")*" },
338
+ "@": { open: "(?:", close: ")" }
339
+ }, qmark = "[^/]", star = qmark + "*?", twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?", twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?", reSpecials = charSet("().*{}+?[]^$\\!");
340
+ function charSet(s) {
341
+ return s.split("").reduce(function(set, c) {
342
+ return set[c] = !0, set;
343
+ }, {});
344
+ }
345
+ var slashSplit = /\/+/;
346
+ minimatch.filter = filter;
347
+ function filter(pattern, options) {
348
+ return options = options || {}, function(p, i, list) {
349
+ return minimatch(p, pattern, options);
350
+ };
351
+ }
352
+ function ext(a, b) {
353
+ b = b || {};
354
+ var t = {};
355
+ return Object.keys(a).forEach(function(k) {
356
+ t[k] = a[k];
357
+ }), Object.keys(b).forEach(function(k) {
358
+ t[k] = b[k];
359
+ }), t;
360
+ }
361
+ minimatch.defaults = function(def) {
362
+ if (!def || typeof def != "object" || !Object.keys(def).length)
363
+ return minimatch;
364
+ var orig = minimatch, m = function(p, pattern, options) {
365
+ return orig(p, pattern, ext(def, options));
366
+ };
367
+ return m.Minimatch = function(pattern, options) {
368
+ return new orig.Minimatch(pattern, ext(def, options));
369
+ }, m.Minimatch.defaults = function(options) {
370
+ return orig.defaults(ext(def, options)).Minimatch;
371
+ }, m.filter = function(pattern, options) {
372
+ return orig.filter(pattern, ext(def, options));
373
+ }, m.defaults = function(options) {
374
+ return orig.defaults(ext(def, options));
375
+ }, m.makeRe = function(pattern, options) {
376
+ return orig.makeRe(pattern, ext(def, options));
377
+ }, m.braceExpand = function(pattern, options) {
378
+ return orig.braceExpand(pattern, ext(def, options));
379
+ }, m.match = function(list, pattern, options) {
380
+ return orig.match(list, pattern, ext(def, options));
381
+ }, m;
382
+ };
383
+ Minimatch.defaults = function(def) {
384
+ return minimatch.defaults(def).Minimatch;
385
+ };
386
+ function minimatch(p, pattern, options) {
387
+ return assertValidPattern(pattern), options || (options = {}), !options.nocomment && pattern.charAt(0) === "#" ? !1 : new Minimatch(pattern, options).match(p);
388
+ }
389
+ function Minimatch(pattern, options) {
390
+ if (!(this instanceof Minimatch))
391
+ return new Minimatch(pattern, options);
392
+ assertValidPattern(pattern), options || (options = {}), pattern = pattern.trim(), !options.allowWindowsEscape && path.sep !== "/" && (pattern = pattern.split(path.sep).join("/")), this.options = options, this.set = [], this.pattern = pattern, this.regexp = null, this.negate = !1, this.comment = !1, this.empty = !1, this.partial = !!options.partial, this.make();
393
+ }
394
+ Minimatch.prototype.debug = function() {
395
+ };
396
+ Minimatch.prototype.make = make;
397
+ function make() {
398
+ var pattern = this.pattern, options = this.options;
399
+ if (!options.nocomment && pattern.charAt(0) === "#") {
400
+ this.comment = !0;
401
+ return;
402
+ }
403
+ if (!pattern) {
404
+ this.empty = !0;
405
+ return;
406
+ }
407
+ this.parseNegate();
408
+ var set = this.globSet = this.braceExpand();
409
+ options.debug && (this.debug = function() {
410
+ console.error.apply(console, arguments);
411
+ }), this.debug(this.pattern, set), set = this.globParts = set.map(function(s) {
412
+ return s.split(slashSplit);
413
+ }), this.debug(this.pattern, set), set = set.map(function(s, si, set2) {
414
+ return s.map(this.parse, this);
415
+ }, this), this.debug(this.pattern, set), set = set.filter(function(s) {
416
+ return s.indexOf(!1) === -1;
417
+ }), this.debug(this.pattern, set), this.set = set;
418
+ }
419
+ Minimatch.prototype.parseNegate = parseNegate;
420
+ function parseNegate() {
421
+ var pattern = this.pattern, negate = !1, options = this.options, negateOffset = 0;
422
+ if (!options.nonegate) {
423
+ for (var i = 0, l = pattern.length; i < l && pattern.charAt(i) === "!"; i++)
424
+ negate = !negate, negateOffset++;
425
+ negateOffset && (this.pattern = pattern.substr(negateOffset)), this.negate = negate;
426
+ }
427
+ }
428
+ minimatch.braceExpand = function(pattern, options) {
429
+ return braceExpand(pattern, options);
430
+ };
431
+ Minimatch.prototype.braceExpand = braceExpand;
432
+ function braceExpand(pattern, options) {
433
+ return options || (this instanceof Minimatch ? options = this.options : options = {}), pattern = typeof pattern > "u" ? this.pattern : pattern, assertValidPattern(pattern), options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern) ? [pattern] : expand(pattern);
434
+ }
435
+ var MAX_PATTERN_LENGTH = 1024 * 64, assertValidPattern = function(pattern) {
436
+ if (typeof pattern != "string")
437
+ throw new TypeError("invalid pattern");
438
+ if (pattern.length > MAX_PATTERN_LENGTH)
439
+ throw new TypeError("pattern is too long");
440
+ };
441
+ Minimatch.prototype.parse = parse;
442
+ var SUBPARSE = {};
443
+ function parse(pattern, isSub) {
444
+ assertValidPattern(pattern);
445
+ var options = this.options;
446
+ if (pattern === "**")
447
+ if (options.noglobstar)
448
+ pattern = "*";
449
+ else
450
+ return GLOBSTAR;
451
+ if (pattern === "")
452
+ return "";
453
+ var re = "", hasMagic = !!options.nocase, escaping = !1, patternListStack = [], negativeLists = [], stateChar, inClass = !1, reClassStart = -1, classStart = -1, patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)", self = this;
454
+ function clearStateChar() {
455
+ if (stateChar) {
456
+ switch (stateChar) {
457
+ case "*":
458
+ re += star, hasMagic = !0;
459
+ break;
460
+ case "?":
461
+ re += qmark, hasMagic = !0;
462
+ break;
463
+ default:
464
+ re += "\\" + stateChar;
465
+ break;
466
+ }
467
+ self.debug("clearStateChar %j %j", stateChar, re), stateChar = !1;
468
+ }
469
+ }
470
+ for (var i = 0, len = pattern.length, c; i < len && (c = pattern.charAt(i)); i++) {
471
+ if (this.debug("%s %s %s %j", pattern, i, re, c), escaping && reSpecials[c]) {
472
+ re += "\\" + c, escaping = !1;
473
+ continue;
474
+ }
475
+ switch (c) {
476
+ case "/":
477
+ return !1;
478
+ case "\\":
479
+ clearStateChar(), escaping = !0;
480
+ continue;
481
+ case "?":
482
+ case "*":
483
+ case "+":
484
+ case "@":
485
+ case "!":
486
+ if (this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c), inClass) {
487
+ this.debug(" in class"), c === "!" && i === classStart + 1 && (c = "^"), re += c;
488
+ continue;
489
+ }
490
+ self.debug("call clearStateChar %j", stateChar), clearStateChar(), stateChar = c, options.noext && clearStateChar();
491
+ continue;
492
+ case "(":
493
+ if (inClass) {
494
+ re += "(";
495
+ continue;
496
+ }
497
+ if (!stateChar) {
498
+ re += "\\(";
499
+ continue;
500
+ }
501
+ patternListStack.push({
502
+ type: stateChar,
503
+ start: i - 1,
504
+ reStart: re.length,
505
+ open: plTypes[stateChar].open,
506
+ close: plTypes[stateChar].close
507
+ }), re += stateChar === "!" ? "(?:(?!(?:" : "(?:", this.debug("plType %j %j", stateChar, re), stateChar = !1;
508
+ continue;
509
+ case ")":
510
+ if (inClass || !patternListStack.length) {
511
+ re += "\\)";
512
+ continue;
513
+ }
514
+ clearStateChar(), hasMagic = !0;
515
+ var pl = patternListStack.pop();
516
+ re += pl.close, pl.type === "!" && negativeLists.push(pl), pl.reEnd = re.length;
517
+ continue;
518
+ case "|":
519
+ if (inClass || !patternListStack.length || escaping) {
520
+ re += "\\|", escaping = !1;
521
+ continue;
522
+ }
523
+ clearStateChar(), re += "|";
524
+ continue;
525
+ case "[":
526
+ if (clearStateChar(), inClass) {
527
+ re += "\\" + c;
528
+ continue;
529
+ }
530
+ inClass = !0, classStart = i, reClassStart = re.length, re += c;
531
+ continue;
532
+ case "]":
533
+ if (i === classStart + 1 || !inClass) {
534
+ re += "\\" + c, escaping = !1;
535
+ continue;
536
+ }
537
+ var cs = pattern.substring(classStart + 1, i);
538
+ try {
539
+ RegExp("[" + cs + "]");
540
+ } catch {
541
+ var sp = this.parse(cs, SUBPARSE);
542
+ re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]", hasMagic = hasMagic || sp[1], inClass = !1;
543
+ continue;
544
+ }
545
+ hasMagic = !0, inClass = !1, re += c;
546
+ continue;
547
+ default:
548
+ clearStateChar(), escaping ? escaping = !1 : reSpecials[c] && !(c === "^" && inClass) && (re += "\\"), re += c;
549
+ }
550
+ }
551
+ for (inClass && (cs = pattern.substr(classStart + 1), sp = this.parse(cs, SUBPARSE), re = re.substr(0, reClassStart) + "\\[" + sp[0], hasMagic = hasMagic || sp[1]), pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
552
+ var tail = re.slice(pl.reStart + pl.open.length);
553
+ this.debug("setting tail", re, pl), tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_, $1, $2) {
554
+ return $2 || ($2 = "\\"), $1 + $1 + $2 + "|";
555
+ }), this.debug(`tail=%j
556
+ %s`, tail, tail, pl, re);
557
+ var t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type;
558
+ hasMagic = !0, re = re.slice(0, pl.reStart) + t + "\\(" + tail;
559
+ }
560
+ clearStateChar(), escaping && (re += "\\\\");
561
+ var addPatternStart = !1;
562
+ switch (re.charAt(0)) {
563
+ case "[":
564
+ case ".":
565
+ case "(":
566
+ addPatternStart = !0;
567
+ }
568
+ for (var n = negativeLists.length - 1; n > -1; n--) {
569
+ var nl = negativeLists[n], nlBefore = re.slice(0, nl.reStart), nlFirst = re.slice(nl.reStart, nl.reEnd - 8), nlLast = re.slice(nl.reEnd - 8, nl.reEnd), nlAfter = re.slice(nl.reEnd);
570
+ nlLast += nlAfter;
571
+ var openParensBefore = nlBefore.split("(").length - 1, cleanAfter = nlAfter;
572
+ for (i = 0; i < openParensBefore; i++)
573
+ cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
574
+ nlAfter = cleanAfter;
575
+ var dollar = "";
576
+ nlAfter === "" && isSub !== SUBPARSE && (dollar = "$");
577
+ var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast;
578
+ re = newRe;
579
+ }
580
+ if (re !== "" && hasMagic && (re = "(?=.)" + re), addPatternStart && (re = patternStart + re), isSub === SUBPARSE)
581
+ return [re, hasMagic];
582
+ if (!hasMagic)
583
+ return globUnescape(pattern);
584
+ var flags = options.nocase ? "i" : "";
585
+ try {
586
+ var regExp = new RegExp("^" + re + "$", flags);
587
+ } catch {
588
+ return new RegExp("$.");
589
+ }
590
+ return regExp._glob = pattern, regExp._src = re, regExp;
591
+ }
592
+ minimatch.makeRe = function(pattern, options) {
593
+ return new Minimatch(pattern, options || {}).makeRe();
594
+ };
595
+ Minimatch.prototype.makeRe = makeRe;
596
+ function makeRe() {
597
+ if (this.regexp || this.regexp === !1)
598
+ return this.regexp;
599
+ var set = this.set;
600
+ if (!set.length)
601
+ return this.regexp = !1, this.regexp;
602
+ var options = this.options, twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot, flags = options.nocase ? "i" : "", re = set.map(function(pattern) {
603
+ return pattern.map(function(p) {
604
+ return p === GLOBSTAR ? twoStar : typeof p == "string" ? regExpEscape(p) : p._src;
605
+ }).join("\\/");
606
+ }).join("|");
607
+ re = "^(?:" + re + ")$", this.negate && (re = "^(?!" + re + ").*$");
608
+ try {
609
+ this.regexp = new RegExp(re, flags);
610
+ } catch {
611
+ this.regexp = !1;
612
+ }
613
+ return this.regexp;
614
+ }
615
+ minimatch.match = function(list, pattern, options) {
616
+ options = options || {};
617
+ var mm = new Minimatch(pattern, options);
618
+ return list = list.filter(function(f) {
619
+ return mm.match(f);
620
+ }), mm.options.nonull && !list.length && list.push(pattern), list;
621
+ };
622
+ Minimatch.prototype.match = function(f, partial) {
623
+ if (typeof partial > "u" && (partial = this.partial), this.debug("match", f, this.pattern), this.comment)
624
+ return !1;
625
+ if (this.empty)
626
+ return f === "";
627
+ if (f === "/" && partial)
628
+ return !0;
629
+ var options = this.options;
630
+ path.sep !== "/" && (f = f.split(path.sep).join("/")), f = f.split(slashSplit), this.debug(this.pattern, "split", f);
631
+ var set = this.set;
632
+ this.debug(this.pattern, "set", set);
633
+ var filename, i;
634
+ for (i = f.length - 1; i >= 0 && (filename = f[i], !filename); i--)
635
+ ;
636
+ for (i = 0; i < set.length; i++) {
637
+ var pattern = set[i], file = f;
638
+ options.matchBase && pattern.length === 1 && (file = [filename]);
639
+ var hit = this.matchOne(file, pattern, partial);
640
+ if (hit)
641
+ return options.flipNegate ? !0 : !this.negate;
642
+ }
643
+ return options.flipNegate ? !1 : this.negate;
644
+ };
645
+ Minimatch.prototype.matchOne = function(file, pattern, partial) {
646
+ var options = this.options;
647
+ this.debug(
648
+ "matchOne",
649
+ { this: this, file, pattern }
650
+ ), this.debug("matchOne", file.length, pattern.length);
651
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
652
+ this.debug("matchOne loop");
653
+ var p = pattern[pi], f = file[fi];
654
+ if (this.debug(pattern, p, f), p === !1)
655
+ return !1;
656
+ if (p === GLOBSTAR) {
657
+ this.debug("GLOBSTAR", [pattern, p, f]);
658
+ var fr = fi, pr = pi + 1;
659
+ if (pr === pl) {
660
+ for (this.debug("** at the end"); fi < fl; fi++)
661
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
662
+ return !1;
663
+ return !0;
664
+ }
665
+ for (; fr < fl; ) {
666
+ var swallowee = file[fr];
667
+ if (this.debug(`
668
+ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr), pattern.slice(pr), partial))
669
+ return this.debug("globstar found match!", fr, fl, swallowee), !0;
670
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
671
+ this.debug("dot detected!", file, fr, pattern, pr);
672
+ break;
673
+ }
674
+ this.debug("globstar swallow a segment, and continue"), fr++;
675
+ }
676
+ return !!(partial && (this.debug(`
677
+ >>> no match, partial?`, file, fr, pattern, pr), fr === fl));
678
+ }
679
+ var hit;
680
+ if (typeof p == "string" ? (hit = f === p, this.debug("string match", p, f, hit)) : (hit = f.match(p), this.debug("pattern match", p, f, hit)), !hit)
681
+ return !1;
682
+ }
683
+ if (fi === fl && pi === pl)
684
+ return !0;
685
+ if (fi === fl)
686
+ return partial;
687
+ if (pi === pl)
688
+ return fi === fl - 1 && file[fi] === "";
689
+ throw new Error("wtf?");
690
+ };
691
+ function globUnescape(s) {
692
+ return s.replace(/\\(.)/g, "$1");
693
+ }
694
+ function regExpEscape(s) {
695
+ return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
696
+ }
697
+ }
698
+ });
699
+
700
+ // ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
701
+ var require_inherits_browser = __commonJS({
702
+ "../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module) {
703
+ init_cjs_shims();
704
+ typeof Object.create == "function" ? module.exports = function(ctor, superCtor) {
705
+ superCtor && (ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, {
706
+ constructor: {
707
+ value: ctor,
708
+ enumerable: !1,
709
+ writable: !0,
710
+ configurable: !0
711
+ }
712
+ }));
713
+ } : module.exports = function(ctor, superCtor) {
714
+ if (superCtor) {
715
+ ctor.super_ = superCtor;
716
+ var TempCtor = function() {
717
+ };
718
+ TempCtor.prototype = superCtor.prototype, ctor.prototype = new TempCtor(), ctor.prototype.constructor = ctor;
719
+ }
720
+ };
721
+ }
722
+ });
723
+
724
+ // ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
725
+ var require_inherits = __commonJS({
726
+ "../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module) {
727
+ init_cjs_shims();
728
+ try {
729
+ if (util = __require("util"), typeof util.inherits != "function")
730
+ throw "";
731
+ module.exports = util.inherits;
732
+ } catch {
733
+ module.exports = require_inherits_browser();
734
+ }
735
+ var util;
736
+ }
737
+ });
738
+
739
+ // ../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js
740
+ var require_path_is_absolute = __commonJS({
741
+ "../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module) {
742
+ "use strict";
743
+ init_cjs_shims();
744
+ function posix(path) {
745
+ return path.charAt(0) === "/";
746
+ }
747
+ function win32(path) {
748
+ var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/, result = splitDeviceRe.exec(path), device = result[1] || "", isUnc = !!(device && device.charAt(1) !== ":");
749
+ return !!(result[2] || isUnc);
750
+ }
751
+ module.exports = process.platform === "win32" ? win32 : posix;
752
+ module.exports.posix = posix;
753
+ module.exports.win32 = win32;
754
+ }
755
+ });
756
+
757
+ // ../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js
758
+ var require_common = __commonJS({
759
+ "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js"(exports) {
760
+ init_cjs_shims();
761
+ exports.setopts = setopts;
762
+ exports.ownProp = ownProp;
763
+ exports.makeAbs = makeAbs;
764
+ exports.finish = finish;
765
+ exports.mark = mark;
766
+ exports.isIgnored = isIgnored;
767
+ exports.childrenIgnored = childrenIgnored;
768
+ function ownProp(obj, field) {
769
+ return Object.prototype.hasOwnProperty.call(obj, field);
770
+ }
771
+ var fs = __require("fs"), path = __require("path"), minimatch = require_minimatch(), isAbsolute = require_path_is_absolute(), Minimatch = minimatch.Minimatch;
772
+ function alphasort(a, b) {
773
+ return a.localeCompare(b, "en");
774
+ }
775
+ function setupIgnores(self, options) {
776
+ self.ignore = options.ignore || [], Array.isArray(self.ignore) || (self.ignore = [self.ignore]), self.ignore.length && (self.ignore = self.ignore.map(ignoreMap));
777
+ }
778
+ function ignoreMap(pattern) {
779
+ var gmatcher = null;
780
+ if (pattern.slice(-3) === "/**") {
781
+ var gpattern = pattern.replace(/(\/\*\*)+$/, "");
782
+ gmatcher = new Minimatch(gpattern, { dot: !0 });
783
+ }
784
+ return {
785
+ matcher: new Minimatch(pattern, { dot: !0 }),
786
+ gmatcher
787
+ };
788
+ }
789
+ function setopts(self, pattern, options) {
790
+ if (options || (options = {}), options.matchBase && pattern.indexOf("/") === -1) {
791
+ if (options.noglobstar)
792
+ throw new Error("base matching requires globstar");
793
+ pattern = "**/" + pattern;
794
+ }
795
+ self.silent = !!options.silent, self.pattern = pattern, self.strict = options.strict !== !1, self.realpath = !!options.realpath, self.realpathCache = options.realpathCache || /* @__PURE__ */ Object.create(null), self.follow = !!options.follow, self.dot = !!options.dot, self.mark = !!options.mark, self.nodir = !!options.nodir, self.nodir && (self.mark = !0), self.sync = !!options.sync, self.nounique = !!options.nounique, self.nonull = !!options.nonull, self.nosort = !!options.nosort, self.nocase = !!options.nocase, self.stat = !!options.stat, self.noprocess = !!options.noprocess, self.absolute = !!options.absolute, self.fs = options.fs || fs, self.maxLength = options.maxLength || 1 / 0, self.cache = options.cache || /* @__PURE__ */ Object.create(null), self.statCache = options.statCache || /* @__PURE__ */ Object.create(null), self.symlinks = options.symlinks || /* @__PURE__ */ Object.create(null), setupIgnores(self, options), self.changedCwd = !1;
796
+ var cwd = process.cwd();
797
+ ownProp(options, "cwd") ? (self.cwd = path.resolve(options.cwd), self.changedCwd = self.cwd !== cwd) : self.cwd = cwd, self.root = options.root || path.resolve(self.cwd, "/"), self.root = path.resolve(self.root), process.platform === "win32" && (self.root = self.root.replace(/\\/g, "/")), self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd), process.platform === "win32" && (self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")), self.nomount = !!options.nomount, options.nonegate = !0, options.nocomment = !0, options.allowWindowsEscape = !1, self.minimatch = new Minimatch(pattern, options), self.options = self.minimatch.options;
798
+ }
799
+ function finish(self) {
800
+ for (var nou = self.nounique, all = nou ? [] : /* @__PURE__ */ Object.create(null), i = 0, l = self.matches.length; i < l; i++) {
801
+ var matches = self.matches[i];
802
+ if (!matches || Object.keys(matches).length === 0) {
803
+ if (self.nonull) {
804
+ var literal = self.minimatch.globSet[i];
805
+ nou ? all.push(literal) : all[literal] = !0;
806
+ }
807
+ } else {
808
+ var m = Object.keys(matches);
809
+ nou ? all.push.apply(all, m) : m.forEach(function(m2) {
810
+ all[m2] = !0;
811
+ });
812
+ }
813
+ }
814
+ if (nou || (all = Object.keys(all)), self.nosort || (all = all.sort(alphasort)), self.mark) {
815
+ for (var i = 0; i < all.length; i++)
816
+ all[i] = self._mark(all[i]);
817
+ self.nodir && (all = all.filter(function(e) {
818
+ var notDir = !/\/$/.test(e), c = self.cache[e] || self.cache[makeAbs(self, e)];
819
+ return notDir && c && (notDir = c !== "DIR" && !Array.isArray(c)), notDir;
820
+ }));
821
+ }
822
+ self.ignore.length && (all = all.filter(function(m2) {
823
+ return !isIgnored(self, m2);
824
+ })), self.found = all;
825
+ }
826
+ function mark(self, p) {
827
+ var abs = makeAbs(self, p), c = self.cache[abs], m = p;
828
+ if (c) {
829
+ var isDir = c === "DIR" || Array.isArray(c), slash = p.slice(-1) === "/";
830
+ if (isDir && !slash ? m += "/" : !isDir && slash && (m = m.slice(0, -1)), m !== p) {
831
+ var mabs = makeAbs(self, m);
832
+ self.statCache[mabs] = self.statCache[abs], self.cache[mabs] = self.cache[abs];
833
+ }
834
+ }
835
+ return m;
836
+ }
837
+ function makeAbs(self, f) {
838
+ var abs = f;
839
+ return f.charAt(0) === "/" ? abs = path.join(self.root, f) : isAbsolute(f) || f === "" ? abs = f : self.changedCwd ? abs = path.resolve(self.cwd, f) : abs = path.resolve(f), process.platform === "win32" && (abs = abs.replace(/\\/g, "/")), abs;
840
+ }
841
+ function isIgnored(self, path2) {
842
+ return self.ignore.length ? self.ignore.some(function(item) {
843
+ return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2));
844
+ }) : !1;
845
+ }
846
+ function childrenIgnored(self, path2) {
847
+ return self.ignore.length ? self.ignore.some(function(item) {
848
+ return !!(item.gmatcher && item.gmatcher.match(path2));
849
+ }) : !1;
850
+ }
851
+ }
852
+ });
853
+
854
+ // ../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js
855
+ var require_sync = __commonJS({
856
+ "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js"(exports, module) {
857
+ init_cjs_shims();
858
+ module.exports = globSync;
859
+ globSync.GlobSync = GlobSync;
860
+ var rp = require_fs(), minimatch = require_minimatch(), Minimatch = minimatch.Minimatch, Glob = require_glob().Glob, util = __require("util"), path = __require("path"), assert = __require("assert"), isAbsolute = require_path_is_absolute(), common = require_common(), setopts = common.setopts, ownProp = common.ownProp, childrenIgnored = common.childrenIgnored, isIgnored = common.isIgnored;
861
+ function globSync(pattern, options) {
862
+ if (typeof options == "function" || arguments.length === 3)
863
+ throw new TypeError(`callback provided to sync glob
864
+ See: https://github.com/isaacs/node-glob/issues/167`);
865
+ return new GlobSync(pattern, options).found;
866
+ }
867
+ function GlobSync(pattern, options) {
868
+ if (!pattern)
869
+ throw new Error("must provide pattern");
870
+ if (typeof options == "function" || arguments.length === 3)
871
+ throw new TypeError(`callback provided to sync glob
872
+ See: https://github.com/isaacs/node-glob/issues/167`);
873
+ if (!(this instanceof GlobSync))
874
+ return new GlobSync(pattern, options);
875
+ if (setopts(this, pattern, options), this.noprocess)
876
+ return this;
877
+ var n = this.minimatch.set.length;
878
+ this.matches = new Array(n);
879
+ for (var i = 0; i < n; i++)
880
+ this._process(this.minimatch.set[i], i, !1);
881
+ this._finish();
882
+ }
883
+ GlobSync.prototype._finish = function() {
884
+ if (assert.ok(this instanceof GlobSync), this.realpath) {
885
+ var self = this;
886
+ this.matches.forEach(function(matchset, index) {
887
+ var set = self.matches[index] = /* @__PURE__ */ Object.create(null);
888
+ for (var p in matchset)
889
+ try {
890
+ p = self._makeAbs(p);
891
+ var real = rp.realpathSync(p, self.realpathCache);
892
+ set[real] = !0;
893
+ } catch (er) {
894
+ if (er.syscall === "stat")
895
+ set[self._makeAbs(p)] = !0;
896
+ else
897
+ throw er;
898
+ }
899
+ });
900
+ }
901
+ common.finish(this);
902
+ };
903
+ GlobSync.prototype._process = function(pattern, index, inGlobStar) {
904
+ assert.ok(this instanceof GlobSync);
905
+ for (var n = 0; typeof pattern[n] == "string"; )
906
+ n++;
907
+ var prefix;
908
+ switch (n) {
909
+ case pattern.length:
910
+ this._processSimple(pattern.join("/"), index);
911
+ return;
912
+ case 0:
913
+ prefix = null;
914
+ break;
915
+ default:
916
+ prefix = pattern.slice(0, n).join("/");
917
+ break;
918
+ }
919
+ var remain = pattern.slice(n), read;
920
+ prefix === null ? read = "." : ((isAbsolute(prefix) || isAbsolute(pattern.map(function(p) {
921
+ return typeof p == "string" ? p : "[*]";
922
+ }).join("/"))) && (!prefix || !isAbsolute(prefix)) && (prefix = "/" + prefix), read = prefix);
923
+ var abs = this._makeAbs(read);
924
+ if (!childrenIgnored(this, read)) {
925
+ var isGlobStar = remain[0] === minimatch.GLOBSTAR;
926
+ isGlobStar ? this._processGlobStar(prefix, read, abs, remain, index, inGlobStar) : this._processReaddir(prefix, read, abs, remain, index, inGlobStar);
927
+ }
928
+ };
929
+ GlobSync.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar) {
930
+ var entries = this._readdir(abs, inGlobStar);
931
+ if (entries) {
932
+ for (var pn = remain[0], negate = !!this.minimatch.negate, rawGlob = pn._glob, dotOk = this.dot || rawGlob.charAt(0) === ".", matchedEntries = [], i = 0; i < entries.length; i++) {
933
+ var e = entries[i];
934
+ if (e.charAt(0) !== "." || dotOk) {
935
+ var m;
936
+ negate && !prefix ? m = !e.match(pn) : m = e.match(pn), m && matchedEntries.push(e);
937
+ }
938
+ }
939
+ var len = matchedEntries.length;
940
+ if (len !== 0) {
941
+ if (remain.length === 1 && !this.mark && !this.stat) {
942
+ this.matches[index] || (this.matches[index] = /* @__PURE__ */ Object.create(null));
943
+ for (var i = 0; i < len; i++) {
944
+ var e = matchedEntries[i];
945
+ prefix && (prefix.slice(-1) !== "/" ? e = prefix + "/" + e : e = prefix + e), e.charAt(0) === "/" && !this.nomount && (e = path.join(this.root, e)), this._emitMatch(index, e);
946
+ }
947
+ return;
948
+ }
949
+ remain.shift();
950
+ for (var i = 0; i < len; i++) {
951
+ var e = matchedEntries[i], newPattern;
952
+ prefix ? newPattern = [prefix, e] : newPattern = [e], this._process(newPattern.concat(remain), index, inGlobStar);
953
+ }
954
+ }
955
+ }
956
+ };
957
+ GlobSync.prototype._emitMatch = function(index, e) {
958
+ if (!isIgnored(this, e)) {
959
+ var abs = this._makeAbs(e);
960
+ if (this.mark && (e = this._mark(e)), this.absolute && (e = abs), !this.matches[index][e]) {
961
+ if (this.nodir) {
962
+ var c = this.cache[abs];
963
+ if (c === "DIR" || Array.isArray(c))
964
+ return;
965
+ }
966
+ this.matches[index][e] = !0, this.stat && this._stat(e);
967
+ }
968
+ }
969
+ };
970
+ GlobSync.prototype._readdirInGlobStar = function(abs) {
971
+ if (this.follow)
972
+ return this._readdir(abs, !1);
973
+ var entries, lstat, stat;
974
+ try {
975
+ lstat = this.fs.lstatSync(abs);
976
+ } catch (er) {
977
+ if (er.code === "ENOENT")
978
+ return null;
979
+ }
980
+ var isSym = lstat && lstat.isSymbolicLink();
981
+ return this.symlinks[abs] = isSym, !isSym && lstat && !lstat.isDirectory() ? this.cache[abs] = "FILE" : entries = this._readdir(abs, !1), entries;
982
+ };
983
+ GlobSync.prototype._readdir = function(abs, inGlobStar) {
984
+ var entries;
985
+ if (inGlobStar && !ownProp(this.symlinks, abs))
986
+ return this._readdirInGlobStar(abs);
987
+ if (ownProp(this.cache, abs)) {
988
+ var c = this.cache[abs];
989
+ if (!c || c === "FILE")
990
+ return null;
991
+ if (Array.isArray(c))
992
+ return c;
993
+ }
994
+ try {
995
+ return this._readdirEntries(abs, this.fs.readdirSync(abs));
996
+ } catch (er) {
997
+ return this._readdirError(abs, er), null;
998
+ }
999
+ };
1000
+ GlobSync.prototype._readdirEntries = function(abs, entries) {
1001
+ if (!this.mark && !this.stat)
1002
+ for (var i = 0; i < entries.length; i++) {
1003
+ var e = entries[i];
1004
+ abs === "/" ? e = abs + e : e = abs + "/" + e, this.cache[e] = !0;
1005
+ }
1006
+ return this.cache[abs] = entries, entries;
1007
+ };
1008
+ GlobSync.prototype._readdirError = function(f, er) {
1009
+ switch (er.code) {
1010
+ case "ENOTSUP":
1011
+ case "ENOTDIR":
1012
+ var abs = this._makeAbs(f);
1013
+ if (this.cache[abs] = "FILE", abs === this.cwdAbs) {
1014
+ var error = new Error(er.code + " invalid cwd " + this.cwd);
1015
+ throw error.path = this.cwd, error.code = er.code, error;
1016
+ }
1017
+ break;
1018
+ case "ENOENT":
1019
+ case "ELOOP":
1020
+ case "ENAMETOOLONG":
1021
+ case "UNKNOWN":
1022
+ this.cache[this._makeAbs(f)] = !1;
1023
+ break;
1024
+ default:
1025
+ if (this.cache[this._makeAbs(f)] = !1, this.strict)
1026
+ throw er;
1027
+ this.silent || console.error("glob error", er);
1028
+ break;
1029
+ }
1030
+ };
1031
+ GlobSync.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar) {
1032
+ var entries = this._readdir(abs, inGlobStar);
1033
+ if (entries) {
1034
+ var remainWithoutGlobStar = remain.slice(1), gspref = prefix ? [prefix] : [], noGlobStar = gspref.concat(remainWithoutGlobStar);
1035
+ this._process(noGlobStar, index, !1);
1036
+ var len = entries.length, isSym = this.symlinks[abs];
1037
+ if (!(isSym && inGlobStar))
1038
+ for (var i = 0; i < len; i++) {
1039
+ var e = entries[i];
1040
+ if (!(e.charAt(0) === "." && !this.dot)) {
1041
+ var instead = gspref.concat(entries[i], remainWithoutGlobStar);
1042
+ this._process(instead, index, !0);
1043
+ var below = gspref.concat(entries[i], remain);
1044
+ this._process(below, index, !0);
1045
+ }
1046
+ }
1047
+ }
1048
+ };
1049
+ GlobSync.prototype._processSimple = function(prefix, index) {
1050
+ var exists = this._stat(prefix);
1051
+ if (this.matches[index] || (this.matches[index] = /* @__PURE__ */ Object.create(null)), !!exists) {
1052
+ if (prefix && isAbsolute(prefix) && !this.nomount) {
1053
+ var trail = /[\/\\]$/.test(prefix);
1054
+ prefix.charAt(0) === "/" ? prefix = path.join(this.root, prefix) : (prefix = path.resolve(this.root, prefix), trail && (prefix += "/"));
1055
+ }
1056
+ process.platform === "win32" && (prefix = prefix.replace(/\\/g, "/")), this._emitMatch(index, prefix);
1057
+ }
1058
+ };
1059
+ GlobSync.prototype._stat = function(f) {
1060
+ var abs = this._makeAbs(f), needDir = f.slice(-1) === "/";
1061
+ if (f.length > this.maxLength)
1062
+ return !1;
1063
+ if (!this.stat && ownProp(this.cache, abs)) {
1064
+ var c = this.cache[abs];
1065
+ if (Array.isArray(c) && (c = "DIR"), !needDir || c === "DIR")
1066
+ return c;
1067
+ if (needDir && c === "FILE")
1068
+ return !1;
1069
+ }
1070
+ var exists, stat = this.statCache[abs];
1071
+ if (!stat) {
1072
+ var lstat;
1073
+ try {
1074
+ lstat = this.fs.lstatSync(abs);
1075
+ } catch (er) {
1076
+ if (er && (er.code === "ENOENT" || er.code === "ENOTDIR"))
1077
+ return this.statCache[abs] = !1, !1;
1078
+ }
1079
+ if (lstat && lstat.isSymbolicLink())
1080
+ try {
1081
+ stat = this.fs.statSync(abs);
1082
+ } catch {
1083
+ stat = lstat;
1084
+ }
1085
+ else
1086
+ stat = lstat;
1087
+ }
1088
+ this.statCache[abs] = stat;
1089
+ var c = !0;
1090
+ return stat && (c = stat.isDirectory() ? "DIR" : "FILE"), this.cache[abs] = this.cache[abs] || c, needDir && c === "FILE" ? !1 : c;
1091
+ };
1092
+ GlobSync.prototype._mark = function(p) {
1093
+ return common.mark(this, p);
1094
+ };
1095
+ GlobSync.prototype._makeAbs = function(f) {
1096
+ return common.makeAbs(this, f);
1097
+ };
1098
+ }
1099
+ });
1100
+
1101
+ // ../../node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js
1102
+ var require_inflight = __commonJS({
1103
+ "../../node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js"(exports, module) {
1104
+ init_cjs_shims();
1105
+ var wrappy = require_wrappy(), reqs = /* @__PURE__ */ Object.create(null), once = require_once();
1106
+ module.exports = wrappy(inflight);
1107
+ function inflight(key, cb) {
1108
+ return reqs[key] ? (reqs[key].push(cb), null) : (reqs[key] = [cb], makeres(key));
1109
+ }
1110
+ function makeres(key) {
1111
+ return once(function RES() {
1112
+ var cbs = reqs[key], len = cbs.length, args = slice(arguments);
1113
+ try {
1114
+ for (var i = 0; i < len; i++)
1115
+ cbs[i].apply(null, args);
1116
+ } finally {
1117
+ cbs.length > len ? (cbs.splice(0, len), process.nextTick(function() {
1118
+ RES.apply(null, args);
1119
+ })) : delete reqs[key];
1120
+ }
1121
+ });
1122
+ }
1123
+ function slice(args) {
1124
+ for (var length = args.length, array = [], i = 0; i < length; i++)
1125
+ array[i] = args[i];
1126
+ return array;
1127
+ }
1128
+ }
1129
+ });
1130
+
1131
+ // ../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js
1132
+ var require_glob = __commonJS({
1133
+ "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js"(exports, module) {
1134
+ init_cjs_shims();
1135
+ module.exports = glob;
1136
+ var rp = require_fs(), minimatch = require_minimatch(), Minimatch = minimatch.Minimatch, inherits = require_inherits(), EE = __require("events").EventEmitter, path = __require("path"), assert = __require("assert"), isAbsolute = require_path_is_absolute(), globSync = require_sync(), common = require_common(), setopts = common.setopts, ownProp = common.ownProp, inflight = require_inflight(), util = __require("util"), childrenIgnored = common.childrenIgnored, isIgnored = common.isIgnored, once = require_once();
1137
+ function glob(pattern, options, cb) {
1138
+ if (typeof options == "function" && (cb = options, options = {}), options || (options = {}), options.sync) {
1139
+ if (cb)
1140
+ throw new TypeError("callback provided to sync glob");
1141
+ return globSync(pattern, options);
1142
+ }
1143
+ return new Glob(pattern, options, cb);
1144
+ }
1145
+ glob.sync = globSync;
1146
+ var GlobSync = glob.GlobSync = globSync.GlobSync;
1147
+ glob.glob = glob;
1148
+ function extend(origin, add) {
1149
+ if (add === null || typeof add != "object")
1150
+ return origin;
1151
+ for (var keys = Object.keys(add), i = keys.length; i--; )
1152
+ origin[keys[i]] = add[keys[i]];
1153
+ return origin;
1154
+ }
1155
+ glob.hasMagic = function(pattern, options_) {
1156
+ var options = extend({}, options_);
1157
+ options.noprocess = !0;
1158
+ var g = new Glob(pattern, options), set = g.minimatch.set;
1159
+ if (!pattern)
1160
+ return !1;
1161
+ if (set.length > 1)
1162
+ return !0;
1163
+ for (var j = 0; j < set[0].length; j++)
1164
+ if (typeof set[0][j] != "string")
1165
+ return !0;
1166
+ return !1;
1167
+ };
1168
+ glob.Glob = Glob;
1169
+ inherits(Glob, EE);
1170
+ function Glob(pattern, options, cb) {
1171
+ if (typeof options == "function" && (cb = options, options = null), options && options.sync) {
1172
+ if (cb)
1173
+ throw new TypeError("callback provided to sync glob");
1174
+ return new GlobSync(pattern, options);
1175
+ }
1176
+ if (!(this instanceof Glob))
1177
+ return new Glob(pattern, options, cb);
1178
+ setopts(this, pattern, options), this._didRealPath = !1;
1179
+ var n = this.minimatch.set.length;
1180
+ this.matches = new Array(n), typeof cb == "function" && (cb = once(cb), this.on("error", cb), this.on("end", function(matches) {
1181
+ cb(null, matches);
1182
+ }));
1183
+ var self = this;
1184
+ if (this._processing = 0, this._emitQueue = [], this._processQueue = [], this.paused = !1, this.noprocess)
1185
+ return this;
1186
+ if (n === 0)
1187
+ return done();
1188
+ for (var sync = !0, i = 0; i < n; i++)
1189
+ this._process(this.minimatch.set[i], i, !1, done);
1190
+ sync = !1;
1191
+ function done() {
1192
+ --self._processing, self._processing <= 0 && (sync ? process.nextTick(function() {
1193
+ self._finish();
1194
+ }) : self._finish());
1195
+ }
1196
+ }
1197
+ Glob.prototype._finish = function() {
1198
+ if (assert(this instanceof Glob), !this.aborted) {
1199
+ if (this.realpath && !this._didRealpath)
1200
+ return this._realpath();
1201
+ common.finish(this), this.emit("end", this.found);
1202
+ }
1203
+ };
1204
+ Glob.prototype._realpath = function() {
1205
+ if (this._didRealpath)
1206
+ return;
1207
+ this._didRealpath = !0;
1208
+ var n = this.matches.length;
1209
+ if (n === 0)
1210
+ return this._finish();
1211
+ for (var self = this, i = 0; i < this.matches.length; i++)
1212
+ this._realpathSet(i, next);
1213
+ function next() {
1214
+ --n === 0 && self._finish();
1215
+ }
1216
+ };
1217
+ Glob.prototype._realpathSet = function(index, cb) {
1218
+ var matchset = this.matches[index];
1219
+ if (!matchset)
1220
+ return cb();
1221
+ var found = Object.keys(matchset), self = this, n = found.length;
1222
+ if (n === 0)
1223
+ return cb();
1224
+ var set = this.matches[index] = /* @__PURE__ */ Object.create(null);
1225
+ found.forEach(function(p, i) {
1226
+ p = self._makeAbs(p), rp.realpath(p, self.realpathCache, function(er, real) {
1227
+ er ? er.syscall === "stat" ? set[p] = !0 : self.emit("error", er) : set[real] = !0, --n === 0 && (self.matches[index] = set, cb());
1228
+ });
1229
+ });
1230
+ };
1231
+ Glob.prototype._mark = function(p) {
1232
+ return common.mark(this, p);
1233
+ };
1234
+ Glob.prototype._makeAbs = function(f) {
1235
+ return common.makeAbs(this, f);
1236
+ };
1237
+ Glob.prototype.abort = function() {
1238
+ this.aborted = !0, this.emit("abort");
1239
+ };
1240
+ Glob.prototype.pause = function() {
1241
+ this.paused || (this.paused = !0, this.emit("pause"));
1242
+ };
1243
+ Glob.prototype.resume = function() {
1244
+ if (this.paused) {
1245
+ if (this.emit("resume"), this.paused = !1, this._emitQueue.length) {
1246
+ var eq = this._emitQueue.slice(0);
1247
+ this._emitQueue.length = 0;
1248
+ for (var i = 0; i < eq.length; i++) {
1249
+ var e = eq[i];
1250
+ this._emitMatch(e[0], e[1]);
1251
+ }
1252
+ }
1253
+ if (this._processQueue.length) {
1254
+ var pq = this._processQueue.slice(0);
1255
+ this._processQueue.length = 0;
1256
+ for (var i = 0; i < pq.length; i++) {
1257
+ var p = pq[i];
1258
+ this._processing--, this._process(p[0], p[1], p[2], p[3]);
1259
+ }
1260
+ }
1261
+ }
1262
+ };
1263
+ Glob.prototype._process = function(pattern, index, inGlobStar, cb) {
1264
+ if (assert(this instanceof Glob), assert(typeof cb == "function"), !this.aborted) {
1265
+ if (this._processing++, this.paused) {
1266
+ this._processQueue.push([pattern, index, inGlobStar, cb]);
1267
+ return;
1268
+ }
1269
+ for (var n = 0; typeof pattern[n] == "string"; )
1270
+ n++;
1271
+ var prefix;
1272
+ switch (n) {
1273
+ case pattern.length:
1274
+ this._processSimple(pattern.join("/"), index, cb);
1275
+ return;
1276
+ case 0:
1277
+ prefix = null;
1278
+ break;
1279
+ default:
1280
+ prefix = pattern.slice(0, n).join("/");
1281
+ break;
1282
+ }
1283
+ var remain = pattern.slice(n), read;
1284
+ prefix === null ? read = "." : ((isAbsolute(prefix) || isAbsolute(pattern.map(function(p) {
1285
+ return typeof p == "string" ? p : "[*]";
1286
+ }).join("/"))) && (!prefix || !isAbsolute(prefix)) && (prefix = "/" + prefix), read = prefix);
1287
+ var abs = this._makeAbs(read);
1288
+ if (childrenIgnored(this, read))
1289
+ return cb();
1290
+ var isGlobStar = remain[0] === minimatch.GLOBSTAR;
1291
+ isGlobStar ? this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb) : this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb);
1292
+ }
1293
+ };
1294
+ Glob.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar, cb) {
1295
+ var self = this;
1296
+ this._readdir(abs, inGlobStar, function(er, entries) {
1297
+ return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
1298
+ });
1299
+ };
1300
+ Glob.prototype._processReaddir2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) {
1301
+ if (!entries)
1302
+ return cb();
1303
+ for (var pn = remain[0], negate = !!this.minimatch.negate, rawGlob = pn._glob, dotOk = this.dot || rawGlob.charAt(0) === ".", matchedEntries = [], i = 0; i < entries.length; i++) {
1304
+ var e = entries[i];
1305
+ if (e.charAt(0) !== "." || dotOk) {
1306
+ var m;
1307
+ negate && !prefix ? m = !e.match(pn) : m = e.match(pn), m && matchedEntries.push(e);
1308
+ }
1309
+ }
1310
+ var len = matchedEntries.length;
1311
+ if (len === 0)
1312
+ return cb();
1313
+ if (remain.length === 1 && !this.mark && !this.stat) {
1314
+ this.matches[index] || (this.matches[index] = /* @__PURE__ */ Object.create(null));
1315
+ for (var i = 0; i < len; i++) {
1316
+ var e = matchedEntries[i];
1317
+ prefix && (prefix !== "/" ? e = prefix + "/" + e : e = prefix + e), e.charAt(0) === "/" && !this.nomount && (e = path.join(this.root, e)), this._emitMatch(index, e);
1318
+ }
1319
+ return cb();
1320
+ }
1321
+ remain.shift();
1322
+ for (var i = 0; i < len; i++) {
1323
+ var e = matchedEntries[i], newPattern;
1324
+ prefix && (prefix !== "/" ? e = prefix + "/" + e : e = prefix + e), this._process([e].concat(remain), index, inGlobStar, cb);
1325
+ }
1326
+ cb();
1327
+ };
1328
+ Glob.prototype._emitMatch = function(index, e) {
1329
+ if (!this.aborted && !isIgnored(this, e)) {
1330
+ if (this.paused) {
1331
+ this._emitQueue.push([index, e]);
1332
+ return;
1333
+ }
1334
+ var abs = isAbsolute(e) ? e : this._makeAbs(e);
1335
+ if (this.mark && (e = this._mark(e)), this.absolute && (e = abs), !this.matches[index][e]) {
1336
+ if (this.nodir) {
1337
+ var c = this.cache[abs];
1338
+ if (c === "DIR" || Array.isArray(c))
1339
+ return;
1340
+ }
1341
+ this.matches[index][e] = !0;
1342
+ var st = this.statCache[abs];
1343
+ st && this.emit("stat", e, st), this.emit("match", e);
1344
+ }
1345
+ }
1346
+ };
1347
+ Glob.prototype._readdirInGlobStar = function(abs, cb) {
1348
+ if (this.aborted)
1349
+ return;
1350
+ if (this.follow)
1351
+ return this._readdir(abs, !1, cb);
1352
+ var lstatkey = "lstat\0" + abs, self = this, lstatcb = inflight(lstatkey, lstatcb_);
1353
+ lstatcb && self.fs.lstat(abs, lstatcb);
1354
+ function lstatcb_(er, lstat) {
1355
+ if (er && er.code === "ENOENT")
1356
+ return cb();
1357
+ var isSym = lstat && lstat.isSymbolicLink();
1358
+ self.symlinks[abs] = isSym, !isSym && lstat && !lstat.isDirectory() ? (self.cache[abs] = "FILE", cb()) : self._readdir(abs, !1, cb);
1359
+ }
1360
+ };
1361
+ Glob.prototype._readdir = function(abs, inGlobStar, cb) {
1362
+ if (!this.aborted && (cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
1363
+ if (inGlobStar && !ownProp(this.symlinks, abs))
1364
+ return this._readdirInGlobStar(abs, cb);
1365
+ if (ownProp(this.cache, abs)) {
1366
+ var c = this.cache[abs];
1367
+ if (!c || c === "FILE")
1368
+ return cb();
1369
+ if (Array.isArray(c))
1370
+ return cb(null, c);
1371
+ }
1372
+ var self = this;
1373
+ self.fs.readdir(abs, readdirCb(this, abs, cb));
1374
+ }
1375
+ };
1376
+ function readdirCb(self, abs, cb) {
1377
+ return function(er, entries) {
1378
+ er ? self._readdirError(abs, er, cb) : self._readdirEntries(abs, entries, cb);
1379
+ };
1380
+ }
1381
+ Glob.prototype._readdirEntries = function(abs, entries, cb) {
1382
+ if (!this.aborted) {
1383
+ if (!this.mark && !this.stat)
1384
+ for (var i = 0; i < entries.length; i++) {
1385
+ var e = entries[i];
1386
+ abs === "/" ? e = abs + e : e = abs + "/" + e, this.cache[e] = !0;
1387
+ }
1388
+ return this.cache[abs] = entries, cb(null, entries);
1389
+ }
1390
+ };
1391
+ Glob.prototype._readdirError = function(f, er, cb) {
1392
+ if (!this.aborted) {
1393
+ switch (er.code) {
1394
+ case "ENOTSUP":
1395
+ case "ENOTDIR":
1396
+ var abs = this._makeAbs(f);
1397
+ if (this.cache[abs] = "FILE", abs === this.cwdAbs) {
1398
+ var error = new Error(er.code + " invalid cwd " + this.cwd);
1399
+ error.path = this.cwd, error.code = er.code, this.emit("error", error), this.abort();
1400
+ }
1401
+ break;
1402
+ case "ENOENT":
1403
+ case "ELOOP":
1404
+ case "ENAMETOOLONG":
1405
+ case "UNKNOWN":
1406
+ this.cache[this._makeAbs(f)] = !1;
1407
+ break;
1408
+ default:
1409
+ this.cache[this._makeAbs(f)] = !1, this.strict && (this.emit("error", er), this.abort()), this.silent || console.error("glob error", er);
1410
+ break;
1411
+ }
1412
+ return cb();
1413
+ }
1414
+ };
1415
+ Glob.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar, cb) {
1416
+ var self = this;
1417
+ this._readdir(abs, inGlobStar, function(er, entries) {
1418
+ self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
1419
+ });
1420
+ };
1421
+ Glob.prototype._processGlobStar2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) {
1422
+ if (!entries)
1423
+ return cb();
1424
+ var remainWithoutGlobStar = remain.slice(1), gspref = prefix ? [prefix] : [], noGlobStar = gspref.concat(remainWithoutGlobStar);
1425
+ this._process(noGlobStar, index, !1, cb);
1426
+ var isSym = this.symlinks[abs], len = entries.length;
1427
+ if (isSym && inGlobStar)
1428
+ return cb();
1429
+ for (var i = 0; i < len; i++) {
1430
+ var e = entries[i];
1431
+ if (!(e.charAt(0) === "." && !this.dot)) {
1432
+ var instead = gspref.concat(entries[i], remainWithoutGlobStar);
1433
+ this._process(instead, index, !0, cb);
1434
+ var below = gspref.concat(entries[i], remain);
1435
+ this._process(below, index, !0, cb);
1436
+ }
1437
+ }
1438
+ cb();
1439
+ };
1440
+ Glob.prototype._processSimple = function(prefix, index, cb) {
1441
+ var self = this;
1442
+ this._stat(prefix, function(er, exists) {
1443
+ self._processSimple2(prefix, index, er, exists, cb);
1444
+ });
1445
+ };
1446
+ Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) {
1447
+ if (this.matches[index] || (this.matches[index] = /* @__PURE__ */ Object.create(null)), !exists)
1448
+ return cb();
1449
+ if (prefix && isAbsolute(prefix) && !this.nomount) {
1450
+ var trail = /[\/\\]$/.test(prefix);
1451
+ prefix.charAt(0) === "/" ? prefix = path.join(this.root, prefix) : (prefix = path.resolve(this.root, prefix), trail && (prefix += "/"));
1452
+ }
1453
+ process.platform === "win32" && (prefix = prefix.replace(/\\/g, "/")), this._emitMatch(index, prefix), cb();
1454
+ };
1455
+ Glob.prototype._stat = function(f, cb) {
1456
+ var abs = this._makeAbs(f), needDir = f.slice(-1) === "/";
1457
+ if (f.length > this.maxLength)
1458
+ return cb();
1459
+ if (!this.stat && ownProp(this.cache, abs)) {
1460
+ var c = this.cache[abs];
1461
+ if (Array.isArray(c) && (c = "DIR"), !needDir || c === "DIR")
1462
+ return cb(null, c);
1463
+ if (needDir && c === "FILE")
1464
+ return cb();
1465
+ }
1466
+ var exists, stat = this.statCache[abs];
1467
+ if (stat !== void 0) {
1468
+ if (stat === !1)
1469
+ return cb(null, stat);
1470
+ var type = stat.isDirectory() ? "DIR" : "FILE";
1471
+ return needDir && type === "FILE" ? cb() : cb(null, type, stat);
1472
+ }
1473
+ var self = this, statcb = inflight("stat\0" + abs, lstatcb_);
1474
+ statcb && self.fs.lstat(abs, statcb);
1475
+ function lstatcb_(er, lstat) {
1476
+ if (lstat && lstat.isSymbolicLink())
1477
+ return self.fs.stat(abs, function(er2, stat2) {
1478
+ er2 ? self._stat2(f, abs, null, lstat, cb) : self._stat2(f, abs, er2, stat2, cb);
1479
+ });
1480
+ self._stat2(f, abs, er, lstat, cb);
1481
+ }
1482
+ };
1483
+ Glob.prototype._stat2 = function(f, abs, er, stat, cb) {
1484
+ if (er && (er.code === "ENOENT" || er.code === "ENOTDIR"))
1485
+ return this.statCache[abs] = !1, cb();
1486
+ var needDir = f.slice(-1) === "/";
1487
+ if (this.statCache[abs] = stat, abs.slice(-1) === "/" && stat && !stat.isDirectory())
1488
+ return cb(null, !1, stat);
1489
+ var c = !0;
1490
+ return stat && (c = stat.isDirectory() ? "DIR" : "FILE"), this.cache[abs] = this.cache[abs] || c, needDir && c === "FILE" ? cb() : cb(null, c, stat);
1491
+ };
1492
+ }
1493
+ });
1494
+
1495
+ // ../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js
1496
+ var require_rimraf = __commonJS({
1497
+ "../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module) {
1498
+ init_cjs_shims();
1499
+ var assert = __require("assert"), path = __require("path"), fs = __require("fs"), glob;
1500
+ try {
1501
+ glob = require_glob();
1502
+ } catch {
1503
+ }
1504
+ var defaultGlobOpts = {
1505
+ nosort: !0,
1506
+ silent: !0
1507
+ }, timeout = 0, isWindows = process.platform === "win32", defaults = (options) => {
1508
+ if ([
1509
+ "unlink",
1510
+ "chmod",
1511
+ "stat",
1512
+ "lstat",
1513
+ "rmdir",
1514
+ "readdir"
1515
+ ].forEach((m) => {
1516
+ options[m] = options[m] || fs[m], m = m + "Sync", options[m] = options[m] || fs[m];
1517
+ }), options.maxBusyTries = options.maxBusyTries || 3, options.emfileWait = options.emfileWait || 1e3, options.glob === !1 && (options.disableGlob = !0), options.disableGlob !== !0 && glob === void 0)
1518
+ throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
1519
+ options.disableGlob = options.disableGlob || !1, options.glob = options.glob || defaultGlobOpts;
1520
+ }, rimraf = (p, options, cb) => {
1521
+ typeof options == "function" && (cb = options, options = {}), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert.equal(typeof cb, "function", "rimraf: callback function required"), assert(options, "rimraf: invalid options argument provided"), assert.equal(typeof options, "object", "rimraf: options should be object"), defaults(options);
1522
+ let busyTries = 0, errState = null, n = 0, next = (er) => {
1523
+ errState = errState || er, --n === 0 && cb(errState);
1524
+ }, afterGlob = (er, results) => {
1525
+ if (er)
1526
+ return cb(er);
1527
+ if (n = results.length, n === 0)
1528
+ return cb();
1529
+ results.forEach((p2) => {
1530
+ let CB = (er2) => {
1531
+ if (er2) {
1532
+ if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries)
1533
+ return busyTries++, setTimeout(() => rimraf_(p2, options, CB), busyTries * 100);
1534
+ if (er2.code === "EMFILE" && timeout < options.emfileWait)
1535
+ return setTimeout(() => rimraf_(p2, options, CB), timeout++);
1536
+ er2.code === "ENOENT" && (er2 = null);
1537
+ }
1538
+ timeout = 0, next(er2);
1539
+ };
1540
+ rimraf_(p2, options, CB);
1541
+ });
1542
+ };
1543
+ if (options.disableGlob || !glob.hasMagic(p))
1544
+ return afterGlob(null, [p]);
1545
+ options.lstat(p, (er, stat) => {
1546
+ if (!er)
1547
+ return afterGlob(null, [p]);
1548
+ glob(p, options.glob, afterGlob);
1549
+ });
1550
+ }, rimraf_ = (p, options, cb) => {
1551
+ assert(p), assert(options), assert(typeof cb == "function"), options.lstat(p, (er, st) => {
1552
+ if (er && er.code === "ENOENT")
1553
+ return cb(null);
1554
+ if (er && er.code === "EPERM" && isWindows && fixWinEPERM(p, options, er, cb), st && st.isDirectory())
1555
+ return rmdir(p, options, er, cb);
1556
+ options.unlink(p, (er2) => {
1557
+ if (er2) {
1558
+ if (er2.code === "ENOENT")
1559
+ return cb(null);
1560
+ if (er2.code === "EPERM")
1561
+ return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
1562
+ if (er2.code === "EISDIR")
1563
+ return rmdir(p, options, er2, cb);
1564
+ }
1565
+ return cb(er2);
1566
+ });
1567
+ });
1568
+ }, fixWinEPERM = (p, options, er, cb) => {
1569
+ assert(p), assert(options), assert(typeof cb == "function"), options.chmod(p, 438, (er2) => {
1570
+ er2 ? cb(er2.code === "ENOENT" ? null : er) : options.stat(p, (er3, stats) => {
1571
+ er3 ? cb(er3.code === "ENOENT" ? null : er) : stats.isDirectory() ? rmdir(p, options, er, cb) : options.unlink(p, cb);
1572
+ });
1573
+ });
1574
+ }, fixWinEPERMSync = (p, options, er) => {
1575
+ assert(p), assert(options);
1576
+ try {
1577
+ options.chmodSync(p, 438);
1578
+ } catch (er2) {
1579
+ if (er2.code === "ENOENT")
1580
+ return;
1581
+ throw er;
1582
+ }
1583
+ let stats;
1584
+ try {
1585
+ stats = options.statSync(p);
1586
+ } catch (er3) {
1587
+ if (er3.code === "ENOENT")
1588
+ return;
1589
+ throw er;
1590
+ }
1591
+ stats.isDirectory() ? rmdirSync(p, options, er) : options.unlinkSync(p);
1592
+ }, rmdir = (p, options, originalEr, cb) => {
1593
+ assert(p), assert(options), assert(typeof cb == "function"), options.rmdir(p, (er) => {
1594
+ er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") ? rmkids(p, options, cb) : er && er.code === "ENOTDIR" ? cb(originalEr) : cb(er);
1595
+ });
1596
+ }, rmkids = (p, options, cb) => {
1597
+ assert(p), assert(options), assert(typeof cb == "function"), options.readdir(p, (er, files) => {
1598
+ if (er)
1599
+ return cb(er);
1600
+ let n = files.length;
1601
+ if (n === 0)
1602
+ return options.rmdir(p, cb);
1603
+ let errState;
1604
+ files.forEach((f) => {
1605
+ rimraf(path.join(p, f), options, (er2) => {
1606
+ if (!errState) {
1607
+ if (er2)
1608
+ return cb(errState = er2);
1609
+ --n === 0 && options.rmdir(p, cb);
1610
+ }
1611
+ });
1612
+ });
1613
+ });
1614
+ }, rimrafSync = (p, options) => {
1615
+ options = options || {}, defaults(options), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert(options, "rimraf: missing options"), assert.equal(typeof options, "object", "rimraf: options should be object");
1616
+ let results;
1617
+ if (options.disableGlob || !glob.hasMagic(p))
1618
+ results = [p];
1619
+ else
1620
+ try {
1621
+ options.lstatSync(p), results = [p];
1622
+ } catch {
1623
+ results = glob.sync(p, options.glob);
1624
+ }
1625
+ if (results.length)
1626
+ for (let i = 0; i < results.length; i++) {
1627
+ let p2 = results[i], st;
1628
+ try {
1629
+ st = options.lstatSync(p2);
1630
+ } catch (er) {
1631
+ if (er.code === "ENOENT")
1632
+ return;
1633
+ er.code === "EPERM" && isWindows && fixWinEPERMSync(p2, options, er);
1634
+ }
1635
+ try {
1636
+ st && st.isDirectory() ? rmdirSync(p2, options, null) : options.unlinkSync(p2);
1637
+ } catch (er) {
1638
+ if (er.code === "ENOENT")
1639
+ return;
1640
+ if (er.code === "EPERM")
1641
+ return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
1642
+ if (er.code !== "EISDIR")
1643
+ throw er;
1644
+ rmdirSync(p2, options, er);
1645
+ }
1646
+ }
1647
+ }, rmdirSync = (p, options, originalEr) => {
1648
+ assert(p), assert(options);
1649
+ try {
1650
+ options.rmdirSync(p);
1651
+ } catch (er) {
1652
+ if (er.code === "ENOENT")
1653
+ return;
1654
+ if (er.code === "ENOTDIR")
1655
+ throw originalEr;
1656
+ (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") && rmkidsSync(p, options);
1657
+ }
1658
+ }, rmkidsSync = (p, options) => {
1659
+ assert(p), assert(options), options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
1660
+ let retries = isWindows ? 100 : 1, i = 0;
1661
+ do {
1662
+ let threw = !0;
1663
+ try {
1664
+ let ret = options.rmdirSync(p, options);
1665
+ return threw = !1, ret;
1666
+ } finally {
1667
+ if (++i < retries && threw)
1668
+ continue;
1669
+ }
1670
+ } while (!0);
1671
+ };
1672
+ module.exports = rimraf;
1673
+ rimraf.sync = rimrafSync;
1674
+ }
1675
+ });
1676
+
1677
+ // ../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js
1678
+ var require_clean_stack = __commonJS({
1679
+ "../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module) {
1680
+ "use strict";
1681
+ init_cjs_shims();
1682
+ var os = __require("os"), extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/, pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/, homeDir = typeof os.homedir > "u" ? "" : os.homedir();
1683
+ module.exports = (stack, options) => (options = Object.assign({ pretty: !1 }, options), stack.replace(/\\/g, "/").split(`
1684
+ `).filter((line) => {
1685
+ let pathMatches = line.match(extractPathRegex);
1686
+ if (pathMatches === null || !pathMatches[1])
1687
+ return !0;
1688
+ let match = pathMatches[1];
1689
+ return match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar") ? !1 : !pathRegex.test(match);
1690
+ }).filter((line) => line.trim() !== "").map((line) => options.pretty ? line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~"))) : line).join(`
1691
+ `));
1692
+ }
1693
+ });
1694
+
1695
+ // ../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js
1696
+ var require_aggregate_error = __commonJS({
1697
+ "../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module) {
1698
+ "use strict";
1699
+ init_cjs_shims();
1700
+ var indentString = require_indent_string(), cleanStack = require_clean_stack(), cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ""), AggregateError = class extends Error {
1701
+ constructor(errors) {
1702
+ if (!Array.isArray(errors))
1703
+ throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
1704
+ errors = [...errors].map((error) => error instanceof Error ? error : error !== null && typeof error == "object" ? Object.assign(new Error(error.message), error) : new Error(error));
1705
+ let message = errors.map((error) => typeof error.stack == "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error)).join(`
1706
+ `);
1707
+ message = `
1708
+ ` + indentString(message, 4), super(message), this.name = "AggregateError", Object.defineProperty(this, "_errors", { value: errors });
1709
+ }
1710
+ *[Symbol.iterator]() {
1711
+ for (let error of this._errors)
1712
+ yield error;
1713
+ }
1714
+ };
1715
+ module.exports = AggregateError;
1716
+ }
1717
+ });
1718
+
1719
+ // ../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js
1720
+ var require_p_map = __commonJS({
1721
+ "../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module) {
1722
+ "use strict";
1723
+ init_cjs_shims();
1724
+ var AggregateError = require_aggregate_error();
1725
+ module.exports = async (iterable, mapper, {
1726
+ concurrency = 1 / 0,
1727
+ stopOnError = !0
1728
+ } = {}) => new Promise((resolve, reject) => {
1729
+ if (typeof mapper != "function")
1730
+ throw new TypeError("Mapper function is required");
1731
+ if (!((Number.isSafeInteger(concurrency) || concurrency === 1 / 0) && concurrency >= 1))
1732
+ throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
1733
+ let result = [], errors = [], iterator = iterable[Symbol.iterator](), isRejected = !1, isIterableDone = !1, resolvingCount = 0, currentIndex = 0, next = () => {
1734
+ if (isRejected)
1735
+ return;
1736
+ let nextItem = iterator.next(), index = currentIndex;
1737
+ if (currentIndex++, nextItem.done) {
1738
+ isIterableDone = !0, resolvingCount === 0 && (!stopOnError && errors.length !== 0 ? reject(new AggregateError(errors)) : resolve(result));
1739
+ return;
1740
+ }
1741
+ resolvingCount++, (async () => {
1742
+ try {
1743
+ let element = await nextItem.value;
1744
+ result[index] = await mapper(element, index), resolvingCount--, next();
1745
+ } catch (error) {
1746
+ stopOnError ? (isRejected = !0, reject(error)) : (errors.push(error), resolvingCount--, next());
1747
+ }
1748
+ })();
1749
+ };
1750
+ for (let i = 0; i < concurrency && (next(), !isIterableDone); i++)
1751
+ ;
1752
+ });
1753
+ }
1754
+ });
1755
+
1756
+ // ../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js
1757
+ var require_del = __commonJS({
1758
+ "../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(exports, module) {
1759
+ init_cjs_shims();
1760
+ var { promisify } = __require("util"), path = __require("path"), globby = require_globby(), isGlob = require_is_glob(), slash = require_slash(), gracefulFs = require_graceful_fs(), isPathCwd = require_is_path_cwd(), isPathInside = require_is_path_inside(), rimraf = require_rimraf(), pMap = require_p_map(), rimrafP = promisify(rimraf), rimrafOptions = {
1761
+ glob: !1,
1762
+ unlink: gracefulFs.unlink,
1763
+ unlinkSync: gracefulFs.unlinkSync,
1764
+ chmod: gracefulFs.chmod,
1765
+ chmodSync: gracefulFs.chmodSync,
1766
+ stat: gracefulFs.stat,
1767
+ statSync: gracefulFs.statSync,
1768
+ lstat: gracefulFs.lstat,
1769
+ lstatSync: gracefulFs.lstatSync,
1770
+ rmdir: gracefulFs.rmdir,
1771
+ rmdirSync: gracefulFs.rmdirSync,
1772
+ readdir: gracefulFs.readdir,
1773
+ readdirSync: gracefulFs.readdirSync
1774
+ };
1775
+ function safeCheck(file, cwd) {
1776
+ if (isPathCwd(file))
1777
+ throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");
1778
+ if (!isPathInside(file, cwd))
1779
+ throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.");
1780
+ }
1781
+ function normalizePatterns(patterns) {
1782
+ return patterns = Array.isArray(patterns) ? patterns : [patterns], patterns = patterns.map((pattern) => process.platform === "win32" && isGlob(pattern) === !1 ? slash(pattern) : pattern), patterns;
1783
+ }
1784
+ module.exports = async (patterns, { force, dryRun, cwd = process.cwd(), onProgress = () => {
1785
+ }, ...options } = {}) => {
1786
+ options = {
1787
+ expandDirectories: !1,
1788
+ onlyFiles: !1,
1789
+ followSymbolicLinks: !1,
1790
+ cwd,
1791
+ ...options
1792
+ }, patterns = normalizePatterns(patterns);
1793
+ let files = (await globby(patterns, options)).sort((a, b) => b.localeCompare(a));
1794
+ files.length === 0 && onProgress({
1795
+ totalCount: 0,
1796
+ deletedCount: 0,
1797
+ percent: 1
1798
+ });
1799
+ let deletedCount = 0, removedFiles = await pMap(files, async (file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || await rimrafP(file, rimrafOptions), deletedCount += 1, onProgress({
1800
+ totalCount: files.length,
1801
+ deletedCount,
1802
+ percent: deletedCount / files.length
1803
+ }), file), options);
1804
+ return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
1805
+ };
1806
+ module.exports.sync = (patterns, { force, dryRun, cwd = process.cwd(), ...options } = {}) => {
1807
+ options = {
1808
+ expandDirectories: !1,
1809
+ onlyFiles: !1,
1810
+ followSymbolicLinks: !1,
1811
+ cwd,
1812
+ ...options
1813
+ }, patterns = normalizePatterns(patterns);
1814
+ let removedFiles = globby.sync(patterns, options).sort((a, b) => b.localeCompare(a)).map((file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || rimraf.sync(file, rimrafOptions), file));
1815
+ return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
1816
+ };
1817
+ }
1818
+ });
1819
+ export default require_del();
1820
+ //# sourceMappingURL=del-NW5KFKFP.js.map