@storybook/addon-vitest 0.0.0-pr-30601-sha-d70f67e1 → 0.0.0-pr-31819-sha-b1c88d51

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 (43) hide show
  1. package/dist/_browser-chunks/chunk-A47P2DCZ.js +11 -0
  2. package/dist/_browser-chunks/chunk-VMSW5DPM.js +60 -0
  3. package/dist/_node-chunks/chunk-C4NXJJA3.js +324 -0
  4. package/dist/_node-chunks/chunk-CIKGVIS6.js +223 -0
  5. package/dist/_node-chunks/chunk-FMQIQP6D.js +96 -0
  6. package/dist/_node-chunks/chunk-KVKHJ5OL.js +46 -0
  7. package/dist/_node-chunks/chunk-N3OFRDD3.js +80 -0
  8. package/dist/_node-chunks/chunk-VFT2PRGV.js +5002 -0
  9. package/dist/_node-chunks/chunk-W26ZMSD3.js +143 -0
  10. package/dist/_node-chunks/chunk-XWQZZ2C3.js +1586 -0
  11. package/dist/index.js +9 -6
  12. package/dist/manager.js +5571 -8
  13. package/dist/node/coverage-reporter.js +1395 -4
  14. package/dist/node/vitest.js +564 -17
  15. package/dist/postinstall.js +1179 -124
  16. package/dist/preset.js +268 -32
  17. package/dist/vitest-plugin/global-setup.js +146 -6
  18. package/dist/vitest-plugin/index.js +2589 -43
  19. package/dist/vitest-plugin/setup-file.js +28 -9
  20. package/dist/vitest-plugin/test-utils.js +68 -8
  21. package/package.json +20 -92
  22. package/static/coverage-reporter.cjs +10 -0
  23. package/templates/vitest.config.3.2.template.ts +30 -0
  24. package/dist/chunk-55WZLVGN.mjs +0 -11
  25. package/dist/chunk-JKRQGT2U.mjs +0 -10
  26. package/dist/index.mjs +0 -5
  27. package/dist/node/coverage-reporter.d.ts +0 -184
  28. package/dist/node/coverage-reporter.mjs +0 -12
  29. package/dist/node/vitest.d.ts +0 -2
  30. package/dist/node/vitest.mjs +0 -19
  31. package/dist/vitest-plugin/global-setup.d.ts +0 -6
  32. package/dist/vitest-plugin/global-setup.mjs +0 -13
  33. package/dist/vitest-plugin/index.mjs +0 -28
  34. package/dist/vitest-plugin/setup-file.d.ts +0 -14
  35. package/dist/vitest-plugin/setup-file.mjs +0 -9
  36. package/dist/vitest-plugin/test-utils.d.ts +0 -20
  37. package/dist/vitest-plugin/test-utils.mjs +0 -8
  38. package/manager.js +0 -1
  39. package/manager.mjs +0 -1
  40. package/postinstall.js +0 -1
  41. package/postinstall.mjs +0 -1
  42. package/preset.js +0 -1
  43. package/preset.mjs +0 -1
@@ -0,0 +1,1586 @@
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 o,
13
+ b as S,
14
+ c as h,
15
+ e as Ge
16
+ } from "./chunk-KVKHJ5OL.js";
17
+
18
+ // ../../node_modules/isexe/windows.js
19
+ var je = h((no, ke) => {
20
+ ke.exports = Ne;
21
+ Ne.sync = fn;
22
+ var Re = S("fs");
23
+ function un(e, t) {
24
+ var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
25
+ if (!n || (n = n.split(";"), n.indexOf("") !== -1))
26
+ return !0;
27
+ for (var r = 0; r < n.length; r++) {
28
+ var i = n[r].toLowerCase();
29
+ if (i && e.substr(-i.length).toLowerCase() === i)
30
+ return !0;
31
+ }
32
+ return !1;
33
+ }
34
+ o(un, "checkPathExt");
35
+ function $e(e, t, n) {
36
+ return !e.isSymbolicLink() && !e.isFile() ? !1 : un(t, n);
37
+ }
38
+ o($e, "checkStat");
39
+ function Ne(e, t, n) {
40
+ Re.stat(e, function(r, i) {
41
+ n(r, r ? !1 : $e(i, e, t));
42
+ });
43
+ }
44
+ o(Ne, "isexe");
45
+ function fn(e, t) {
46
+ return $e(Re.statSync(e), e, t);
47
+ }
48
+ o(fn, "sync");
49
+ });
50
+
51
+ // ../../node_modules/isexe/mode.js
52
+ var Me = h((oo, Fe) => {
53
+ Fe.exports = Le;
54
+ Le.sync = ln;
55
+ var Be = S("fs");
56
+ function Le(e, t, n) {
57
+ Be.stat(e, function(r, i) {
58
+ n(r, r ? !1 : Ue(i, t));
59
+ });
60
+ }
61
+ o(Le, "isexe");
62
+ function ln(e, t) {
63
+ return Ue(Be.statSync(e), t);
64
+ }
65
+ o(ln, "sync");
66
+ function Ue(e, t) {
67
+ return e.isFile() && dn(e, t);
68
+ }
69
+ o(Ue, "checkStat");
70
+ function dn(e, t) {
71
+ var n = e.mode, r = e.uid, i = e.gid, s = t.uid !== void 0 ? t.uid : process.getuid && process.getuid(), a = t.gid !== void 0 ? t.gid : process.getgid && process.getgid(), c = parseInt("100", 8), u = parseInt("010", 8), f = parseInt("001", 8), l = c | u, p = n & f || n & u && i === a || n & c && r === s || n & l && s === 0;
72
+ return p;
73
+ }
74
+ o(dn, "checkMode");
75
+ });
76
+
77
+ // ../../node_modules/isexe/index.js
78
+ var De = h((ao, _e) => {
79
+ var so = S("fs"), R;
80
+ process.platform === "win32" || global.TESTING_WINDOWS ? R = je() : R = Me();
81
+ _e.exports = W;
82
+ W.sync = pn;
83
+ function W(e, t, n) {
84
+ if (typeof t == "function" && (n = t, t = {}), !n) {
85
+ if (typeof Promise != "function")
86
+ throw new TypeError("callback not provided");
87
+ return new Promise(function(r, i) {
88
+ W(e, t || {}, function(s, a) {
89
+ s ? i(s) : r(a);
90
+ });
91
+ });
92
+ }
93
+ R(e, t || {}, function(r, i) {
94
+ r && (r.code === "EACCES" || t && t.ignoreErrors) && (r = null, i = !1), n(r, i);
95
+ });
96
+ }
97
+ o(W, "isexe");
98
+ function pn(e, t) {
99
+ try {
100
+ return R.sync(e, t || {});
101
+ } catch (n) {
102
+ if (t && t.ignoreErrors || n.code === "EACCES")
103
+ return !1;
104
+ throw n;
105
+ }
106
+ }
107
+ o(pn, "sync");
108
+ });
109
+
110
+ // ../../node_modules/which/which.js
111
+ var Ve = h((uo, Xe) => {
112
+ var w = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", ze = S("path"), mn = w ? ";" : ":", qe = De(), We = /* @__PURE__ */ o((e) => Object.assign(new Error(`not found: ${e}`), { code: "ENOENT" }), "getNotFoundError"), He = /* @__PURE__ */ o((e, t) => {
113
+ let n = t.colon || mn, r = e.match(/\//) || w && e.match(/\\/) ? [""] : [
114
+ // windows always checks the cwd first
115
+ ...w ? [process.cwd()] : [],
116
+ ...(t.path || process.env.PATH || /* istanbul ignore next: very unusual */
117
+ "").split(n)
118
+ ], i = w ? t.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", s = w ? i.split(n) : [""];
119
+ return w && e.indexOf(".") !== -1 && s[0] !== "" && s.unshift(""), {
120
+ pathEnv: r,
121
+ pathExt: s,
122
+ pathExtExe: i
123
+ };
124
+ }, "getPathInfo"), Ke = /* @__PURE__ */ o((e, t, n) => {
125
+ typeof t == "function" && (n = t, t = {}), t || (t = {});
126
+ let { pathEnv: r, pathExt: i, pathExtExe: s } = He(e, t), a = [], c = /* @__PURE__ */ o((f) => new Promise((l, p) => {
127
+ if (f === r.length)
128
+ return t.all && a.length ? l(a) : p(We(e));
129
+ let d = r[f], y = /^".*"$/.test(d) ? d.slice(1, -1) : d, m = ze.join(y, e), g = !y && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + m : m;
130
+ l(u(g, f, 0));
131
+ }), "step"), u = /* @__PURE__ */ o((f, l, p) => new Promise((d, y) => {
132
+ if (p === i.length)
133
+ return d(c(l + 1));
134
+ let m = i[p];
135
+ qe(f + m, { pathExt: s }, (g, x) => {
136
+ if (!g && x)
137
+ if (t.all)
138
+ a.push(f + m);
139
+ else
140
+ return d(f + m);
141
+ return d(u(f, l, p + 1));
142
+ });
143
+ }), "subStep");
144
+ return n ? c(0).then((f) => n(null, f), n) : c(0);
145
+ }, "which"), hn = /* @__PURE__ */ o((e, t) => {
146
+ t = t || {};
147
+ let { pathEnv: n, pathExt: r, pathExtExe: i } = He(e, t), s = [];
148
+ for (let a = 0; a < n.length; a++) {
149
+ let c = n[a], u = /^".*"$/.test(c) ? c.slice(1, -1) : c, f = ze.join(u, e), l = !u && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + f : f;
150
+ for (let p = 0; p < r.length; p++) {
151
+ let d = l + r[p];
152
+ try {
153
+ if (qe.sync(d, { pathExt: i }))
154
+ if (t.all)
155
+ s.push(d);
156
+ else
157
+ return d;
158
+ } catch {
159
+ }
160
+ }
161
+ }
162
+ if (t.all && s.length)
163
+ return s;
164
+ if (t.nothrow)
165
+ return null;
166
+ throw We(e);
167
+ }, "whichSync");
168
+ Xe.exports = Ke;
169
+ Ke.sync = hn;
170
+ });
171
+
172
+ // ../../node_modules/path-key/index.js
173
+ var Ze = h((lo, H) => {
174
+ "use strict";
175
+ var Ye = /* @__PURE__ */ o((e = {}) => {
176
+ let t = e.env || process.env;
177
+ return (e.platform || process.platform) !== "win32" ? "PATH" : Object.keys(t).reverse().find((r) => r.toUpperCase() === "PATH") || "Path";
178
+ }, "pathKey");
179
+ H.exports = Ye;
180
+ H.exports.default = Ye;
181
+ });
182
+
183
+ // ../../node_modules/cross-spawn/lib/util/resolveCommand.js
184
+ var tt = h((mo, et) => {
185
+ "use strict";
186
+ var Qe = S("path"), yn = Ve(), gn = Ze();
187
+ function Je(e, t) {
188
+ let n = e.options.env || process.env, r = process.cwd(), i = e.options.cwd != null, s = i && process.chdir !== void 0 && !process.chdir.disabled;
189
+ if (s)
190
+ try {
191
+ process.chdir(e.options.cwd);
192
+ } catch {
193
+ }
194
+ let a;
195
+ try {
196
+ a = yn.sync(e.command, {
197
+ path: n[gn({ env: n })],
198
+ pathExt: t ? Qe.delimiter : void 0
199
+ });
200
+ } catch {
201
+ } finally {
202
+ s && process.chdir(r);
203
+ }
204
+ return a && (a = Qe.resolve(i ? e.options.cwd : "", a)), a;
205
+ }
206
+ o(Je, "resolveCommandAttempt");
207
+ function Sn(e) {
208
+ return Je(e) || Je(e, !0);
209
+ }
210
+ o(Sn, "resolveCommand");
211
+ et.exports = Sn;
212
+ });
213
+
214
+ // ../../node_modules/cross-spawn/lib/util/escape.js
215
+ var nt = h((yo, X) => {
216
+ "use strict";
217
+ var K = /([()\][%!^"`<>&|;, *?])/g;
218
+ function bn(e) {
219
+ return e = e.replace(K, "^$1"), e;
220
+ }
221
+ o(bn, "escapeCommand");
222
+ function xn(e, t) {
223
+ return e = `${e}`, e = e.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), e = e.replace(/(?=(\\+?)?)\1$/, "$1$1"), e = `"${e}"`, e = e.replace(K, "^$1"), t && (e = e.replace(K, "^$1")), e;
224
+ }
225
+ o(xn, "escapeArgument");
226
+ X.exports.command = bn;
227
+ X.exports.argument = xn;
228
+ });
229
+
230
+ // ../../node_modules/shebang-regex/index.js
231
+ var ot = h((So, rt) => {
232
+ "use strict";
233
+ rt.exports = /^#!(.*)/;
234
+ });
235
+
236
+ // ../../node_modules/shebang-command/index.js
237
+ var st = h((bo, it) => {
238
+ "use strict";
239
+ var wn = ot();
240
+ it.exports = (e = "") => {
241
+ let t = e.match(wn);
242
+ if (!t)
243
+ return null;
244
+ let [n, r] = t[0].replace(/#! ?/, "").split(" "), i = n.split("/").pop();
245
+ return i === "env" ? r : r ? `${i} ${r}` : i;
246
+ };
247
+ });
248
+
249
+ // ../../node_modules/cross-spawn/lib/util/readShebang.js
250
+ var ct = h((xo, at) => {
251
+ "use strict";
252
+ var V = S("fs"), En = st();
253
+ function Tn(e) {
254
+ let n = Buffer.alloc(150), r;
255
+ try {
256
+ r = V.openSync(e, "r"), V.readSync(r, n, 0, 150, 0), V.closeSync(r);
257
+ } catch {
258
+ }
259
+ return En(n.toString());
260
+ }
261
+ o(Tn, "readShebang");
262
+ at.exports = Tn;
263
+ });
264
+
265
+ // ../../node_modules/cross-spawn/lib/parse.js
266
+ var dt = h((Eo, lt) => {
267
+ "use strict";
268
+ var An = S("path"), ut = tt(), ft = nt(), Cn = ct(), In = process.platform === "win32", Pn = /\.(?:com|exe)$/i, vn = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
269
+ function On(e) {
270
+ e.file = ut(e);
271
+ let t = e.file && Cn(e.file);
272
+ return t ? (e.args.unshift(e.file), e.command = t, ut(e)) : e.file;
273
+ }
274
+ o(On, "detectShebang");
275
+ function Gn(e) {
276
+ if (!In)
277
+ return e;
278
+ let t = On(e), n = !Pn.test(t);
279
+ if (e.options.forceShell || n) {
280
+ let r = vn.test(t);
281
+ e.command = An.normalize(e.command), e.command = ft.command(e.command), e.args = e.args.map((s) => ft.argument(s, r));
282
+ let i = [e.command].concat(e.args).join(" ");
283
+ e.args = ["/d", "/s", "/c", `"${i}"`], e.command = process.env.comspec || "cmd.exe", e.options.windowsVerbatimArguments = !0;
284
+ }
285
+ return e;
286
+ }
287
+ o(Gn, "parseNonShell");
288
+ function Rn(e, t, n) {
289
+ t && !Array.isArray(t) && (n = t, t = null), t = t ? t.slice(0) : [], n = Object.assign({}, n);
290
+ let r = {
291
+ command: e,
292
+ args: t,
293
+ options: n,
294
+ file: void 0,
295
+ original: {
296
+ command: e,
297
+ args: t
298
+ }
299
+ };
300
+ return n.shell ? r : Gn(r);
301
+ }
302
+ o(Rn, "parse");
303
+ lt.exports = Rn;
304
+ });
305
+
306
+ // ../../node_modules/cross-spawn/lib/enoent.js
307
+ var ht = h((Ao, mt) => {
308
+ "use strict";
309
+ var Y = process.platform === "win32";
310
+ function Z(e, t) {
311
+ return Object.assign(new Error(`${t} ${e.command} ENOENT`), {
312
+ code: "ENOENT",
313
+ errno: "ENOENT",
314
+ syscall: `${t} ${e.command}`,
315
+ path: e.command,
316
+ spawnargs: e.args
317
+ });
318
+ }
319
+ o(Z, "notFoundError");
320
+ function $n(e, t) {
321
+ if (!Y)
322
+ return;
323
+ let n = e.emit;
324
+ e.emit = function(r, i) {
325
+ if (r === "exit") {
326
+ let s = pt(i, t);
327
+ if (s)
328
+ return n.call(e, "error", s);
329
+ }
330
+ return n.apply(e, arguments);
331
+ };
332
+ }
333
+ o($n, "hookChildProcess");
334
+ function pt(e, t) {
335
+ return Y && e === 1 && !t.file ? Z(t.original, "spawn") : null;
336
+ }
337
+ o(pt, "verifyENOENT");
338
+ function Nn(e, t) {
339
+ return Y && e === 1 && !t.file ? Z(t.original, "spawnSync") : null;
340
+ }
341
+ o(Nn, "verifyENOENTSync");
342
+ mt.exports = {
343
+ hookChildProcess: $n,
344
+ verifyENOENT: pt,
345
+ verifyENOENTSync: Nn,
346
+ notFoundError: Z
347
+ };
348
+ });
349
+
350
+ // ../../node_modules/cross-spawn/index.js
351
+ var St = h((Io, E) => {
352
+ "use strict";
353
+ var yt = S("child_process"), Q = dt(), J = ht();
354
+ function gt(e, t, n) {
355
+ let r = Q(e, t, n), i = yt.spawn(r.command, r.args, r.options);
356
+ return J.hookChildProcess(i, r), i;
357
+ }
358
+ o(gt, "spawn");
359
+ function kn(e, t, n) {
360
+ let r = Q(e, t, n), i = yt.spawnSync(r.command, r.args, r.options);
361
+ return i.error = i.error || J.verifyENOENTSync(i.status, r), i;
362
+ }
363
+ o(kn, "spawnSync");
364
+ E.exports = gt;
365
+ E.exports.spawn = gt;
366
+ E.exports.sync = kn;
367
+ E.exports._parse = Q;
368
+ E.exports._enoent = J;
369
+ });
370
+
371
+ // ../../node_modules/merge-stream/index.js
372
+ var Wt = h((Qi, qt) => {
373
+ "use strict";
374
+ var { PassThrough: $r } = S("stream");
375
+ qt.exports = function() {
376
+ var e = [], t = new $r({ objectMode: !0 });
377
+ return t.setMaxListeners(0), t.add = n, t.isEmpty = r, t.on("unpipe", i), Array.prototype.slice.call(arguments).forEach(n), t;
378
+ function n(s) {
379
+ return Array.isArray(s) ? (s.forEach(n), this) : (e.push(s), s.once("end", i.bind(null, s)), s.once("error", t.emit.bind(t, "error")), s.pipe(t, { end: !1 }), this);
380
+ }
381
+ o(n, "add");
382
+ function r() {
383
+ return e.length == 0;
384
+ }
385
+ o(r, "isEmpty");
386
+ function i(s) {
387
+ e = e.filter(function(a) {
388
+ return a !== s;
389
+ }), !e.length && t.readable && t.end();
390
+ }
391
+ o(i, "remove");
392
+ };
393
+ });
394
+
395
+ // node_modules/execa/index.js
396
+ var on = Ge(St(), 1);
397
+ import { Buffer as Yr } from "node:buffer";
398
+ import Zr from "node:path";
399
+ import Ce from "node:child_process";
400
+ import T from "node:process";
401
+
402
+ // ../../node_modules/strip-final-newline/index.js
403
+ function ee(e) {
404
+ let t = typeof e == "string" ? `
405
+ ` : 10, n = typeof e == "string" ? "\r" : 13;
406
+ return e[e.length - 1] === t && (e = e.slice(0, -1)), e[e.length - 1] === n && (e = e.slice(0, -1)), e;
407
+ }
408
+ o(ee, "stripFinalNewline");
409
+
410
+ // node_modules/npm-run-path/index.js
411
+ import N from "node:process";
412
+ import A from "node:path";
413
+ import { fileURLToPath as bt } from "node:url";
414
+
415
+ // node_modules/path-key/index.js
416
+ function $(e = {}) {
417
+ let {
418
+ env: t = process.env,
419
+ platform: n = process.platform
420
+ } = e;
421
+ return n !== "win32" ? "PATH" : Object.keys(t).reverse().find((r) => r.toUpperCase() === "PATH") || "Path";
422
+ }
423
+ o($, "pathKey");
424
+
425
+ // node_modules/npm-run-path/index.js
426
+ var jn = /* @__PURE__ */ o(({
427
+ cwd: e = N.cwd(),
428
+ path: t = N.env[$()],
429
+ preferLocal: n = !0,
430
+ execPath: r = N.execPath,
431
+ addExecPath: i = !0
432
+ } = {}) => {
433
+ let s = e instanceof URL ? bt(e) : e, a = A.resolve(s), c = [];
434
+ return n && Bn(c, a), i && Ln(c, r, a), [...c, t].join(A.delimiter);
435
+ }, "npmRunPath"), Bn = /* @__PURE__ */ o((e, t) => {
436
+ let n;
437
+ for (; n !== t; )
438
+ e.push(A.join(t, "node_modules/.bin")), n = t, t = A.resolve(t, "..");
439
+ }, "applyPreferLocal"), Ln = /* @__PURE__ */ o((e, t, n) => {
440
+ let r = t instanceof URL ? bt(t) : t;
441
+ e.push(A.resolve(n, r, ".."));
442
+ }, "applyExecPath"), xt = /* @__PURE__ */ o(({ env: e = N.env, ...t } = {}) => {
443
+ e = { ...e };
444
+ let n = $({ env: e });
445
+ return t.path = e[n], e[n] = jn(t), e;
446
+ }, "npmRunPathEnv");
447
+
448
+ // node_modules/mimic-fn/index.js
449
+ var Un = /* @__PURE__ */ o((e, t, n, r) => {
450
+ if (n === "length" || n === "prototype" || n === "arguments" || n === "caller")
451
+ return;
452
+ let i = Object.getOwnPropertyDescriptor(e, n), s = Object.getOwnPropertyDescriptor(t, n);
453
+ !Fn(i, s) && r || Object.defineProperty(e, n, s);
454
+ }, "copyProperty"), Fn = /* @__PURE__ */ o(function(e, t) {
455
+ return e === void 0 || e.configurable || e.writable === t.writable && e.enumerable === t.enumerable && e.configurable === t.configurable && (e.writable || e.value === t.value);
456
+ }, "canCopyProperty"), Mn = /* @__PURE__ */ o((e, t) => {
457
+ let n = Object.getPrototypeOf(t);
458
+ n !== Object.getPrototypeOf(e) && Object.setPrototypeOf(e, n);
459
+ }, "changePrototype"), _n = /* @__PURE__ */ o((e, t) => `/* Wrapped ${e}*/
460
+ ${t}`, "wrappedToString"), Dn = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), zn = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"), qn = /* @__PURE__ */ o((e, t, n) => {
461
+ let r = n === "" ? "" : `with ${n.trim()}() `, i = _n.bind(null, r, t.toString());
462
+ Object.defineProperty(i, "name", zn), Object.defineProperty(e, "toString", { ...Dn, value: i });
463
+ }, "changeToString");
464
+ function te(e, t, { ignoreNonConfigurable: n = !1 } = {}) {
465
+ let { name: r } = e;
466
+ for (let i of Reflect.ownKeys(t))
467
+ Un(e, t, i, n);
468
+ return Mn(e, t), qn(e, t, r), e;
469
+ }
470
+ o(te, "mimicFunction");
471
+
472
+ // node_modules/onetime/index.js
473
+ var k = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ o((e, t = {}) => {
474
+ if (typeof e != "function")
475
+ throw new TypeError("Expected a function");
476
+ let n, r = 0, i = e.displayName || e.name || "<anonymous>", s = /* @__PURE__ */ o(function(...a) {
477
+ if (k.set(s, ++r), r === 1)
478
+ n = e.apply(this, a), e = null;
479
+ else if (t.throw === !0)
480
+ throw new Error(`Function \`${i}\` can only be called once`);
481
+ return n;
482
+ }, "onetime");
483
+ return te(s, e), k.set(s, r), s;
484
+ }, "onetime");
485
+ wt.callCount = (e) => {
486
+ if (!k.has(e))
487
+ throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);
488
+ return k.get(e);
489
+ };
490
+ var Et = wt;
491
+
492
+ // node_modules/execa/lib/error.js
493
+ import er from "node:process";
494
+
495
+ // node_modules/human-signals/build/src/main.js
496
+ import { constants as Xn } from "node:os";
497
+
498
+ // node_modules/human-signals/build/src/realtime.js
499
+ var Tt = /* @__PURE__ */ o(() => {
500
+ let e = ne - At + 1;
501
+ return Array.from({ length: e }, Wn);
502
+ }, "getRealtimeSignals"), Wn = /* @__PURE__ */ o((e, t) => ({
503
+ name: `SIGRT${t + 1}`,
504
+ number: At + t,
505
+ action: "terminate",
506
+ description: "Application-specific signal (realtime)",
507
+ standard: "posix"
508
+ }), "getRealtimeSignal"), At = 34, ne = 64;
509
+
510
+ // node_modules/human-signals/build/src/signals.js
511
+ import { constants as Hn } from "node:os";
512
+
513
+ // node_modules/human-signals/build/src/core.js
514
+ var Ct = [
515
+ {
516
+ name: "SIGHUP",
517
+ number: 1,
518
+ action: "terminate",
519
+ description: "Terminal closed",
520
+ standard: "posix"
521
+ },
522
+ {
523
+ name: "SIGINT",
524
+ number: 2,
525
+ action: "terminate",
526
+ description: "User interruption with CTRL-C",
527
+ standard: "ansi"
528
+ },
529
+ {
530
+ name: "SIGQUIT",
531
+ number: 3,
532
+ action: "core",
533
+ description: "User interruption with CTRL-\\",
534
+ standard: "posix"
535
+ },
536
+ {
537
+ name: "SIGILL",
538
+ number: 4,
539
+ action: "core",
540
+ description: "Invalid machine instruction",
541
+ standard: "ansi"
542
+ },
543
+ {
544
+ name: "SIGTRAP",
545
+ number: 5,
546
+ action: "core",
547
+ description: "Debugger breakpoint",
548
+ standard: "posix"
549
+ },
550
+ {
551
+ name: "SIGABRT",
552
+ number: 6,
553
+ action: "core",
554
+ description: "Aborted",
555
+ standard: "ansi"
556
+ },
557
+ {
558
+ name: "SIGIOT",
559
+ number: 6,
560
+ action: "core",
561
+ description: "Aborted",
562
+ standard: "bsd"
563
+ },
564
+ {
565
+ name: "SIGBUS",
566
+ number: 7,
567
+ action: "core",
568
+ description: "Bus error due to misaligned, non-existing address or paging error",
569
+ standard: "bsd"
570
+ },
571
+ {
572
+ name: "SIGEMT",
573
+ number: 7,
574
+ action: "terminate",
575
+ description: "Command should be emulated but is not implemented",
576
+ standard: "other"
577
+ },
578
+ {
579
+ name: "SIGFPE",
580
+ number: 8,
581
+ action: "core",
582
+ description: "Floating point arithmetic error",
583
+ standard: "ansi"
584
+ },
585
+ {
586
+ name: "SIGKILL",
587
+ number: 9,
588
+ action: "terminate",
589
+ description: "Forced termination",
590
+ standard: "posix",
591
+ forced: !0
592
+ },
593
+ {
594
+ name: "SIGUSR1",
595
+ number: 10,
596
+ action: "terminate",
597
+ description: "Application-specific signal",
598
+ standard: "posix"
599
+ },
600
+ {
601
+ name: "SIGSEGV",
602
+ number: 11,
603
+ action: "core",
604
+ description: "Segmentation fault",
605
+ standard: "ansi"
606
+ },
607
+ {
608
+ name: "SIGUSR2",
609
+ number: 12,
610
+ action: "terminate",
611
+ description: "Application-specific signal",
612
+ standard: "posix"
613
+ },
614
+ {
615
+ name: "SIGPIPE",
616
+ number: 13,
617
+ action: "terminate",
618
+ description: "Broken pipe or socket",
619
+ standard: "posix"
620
+ },
621
+ {
622
+ name: "SIGALRM",
623
+ number: 14,
624
+ action: "terminate",
625
+ description: "Timeout or timer",
626
+ standard: "posix"
627
+ },
628
+ {
629
+ name: "SIGTERM",
630
+ number: 15,
631
+ action: "terminate",
632
+ description: "Termination",
633
+ standard: "ansi"
634
+ },
635
+ {
636
+ name: "SIGSTKFLT",
637
+ number: 16,
638
+ action: "terminate",
639
+ description: "Stack is empty or overflowed",
640
+ standard: "other"
641
+ },
642
+ {
643
+ name: "SIGCHLD",
644
+ number: 17,
645
+ action: "ignore",
646
+ description: "Child process terminated, paused or unpaused",
647
+ standard: "posix"
648
+ },
649
+ {
650
+ name: "SIGCLD",
651
+ number: 17,
652
+ action: "ignore",
653
+ description: "Child process terminated, paused or unpaused",
654
+ standard: "other"
655
+ },
656
+ {
657
+ name: "SIGCONT",
658
+ number: 18,
659
+ action: "unpause",
660
+ description: "Unpaused",
661
+ standard: "posix",
662
+ forced: !0
663
+ },
664
+ {
665
+ name: "SIGSTOP",
666
+ number: 19,
667
+ action: "pause",
668
+ description: "Paused",
669
+ standard: "posix",
670
+ forced: !0
671
+ },
672
+ {
673
+ name: "SIGTSTP",
674
+ number: 20,
675
+ action: "pause",
676
+ description: 'Paused using CTRL-Z or "suspend"',
677
+ standard: "posix"
678
+ },
679
+ {
680
+ name: "SIGTTIN",
681
+ number: 21,
682
+ action: "pause",
683
+ description: "Background process cannot read terminal input",
684
+ standard: "posix"
685
+ },
686
+ {
687
+ name: "SIGBREAK",
688
+ number: 21,
689
+ action: "terminate",
690
+ description: "User interruption with CTRL-BREAK",
691
+ standard: "other"
692
+ },
693
+ {
694
+ name: "SIGTTOU",
695
+ number: 22,
696
+ action: "pause",
697
+ description: "Background process cannot write to terminal output",
698
+ standard: "posix"
699
+ },
700
+ {
701
+ name: "SIGURG",
702
+ number: 23,
703
+ action: "ignore",
704
+ description: "Socket received out-of-band data",
705
+ standard: "bsd"
706
+ },
707
+ {
708
+ name: "SIGXCPU",
709
+ number: 24,
710
+ action: "core",
711
+ description: "Process timed out",
712
+ standard: "bsd"
713
+ },
714
+ {
715
+ name: "SIGXFSZ",
716
+ number: 25,
717
+ action: "core",
718
+ description: "File too big",
719
+ standard: "bsd"
720
+ },
721
+ {
722
+ name: "SIGVTALRM",
723
+ number: 26,
724
+ action: "terminate",
725
+ description: "Timeout or timer",
726
+ standard: "bsd"
727
+ },
728
+ {
729
+ name: "SIGPROF",
730
+ number: 27,
731
+ action: "terminate",
732
+ description: "Timeout or timer",
733
+ standard: "bsd"
734
+ },
735
+ {
736
+ name: "SIGWINCH",
737
+ number: 28,
738
+ action: "ignore",
739
+ description: "Terminal window size changed",
740
+ standard: "bsd"
741
+ },
742
+ {
743
+ name: "SIGIO",
744
+ number: 29,
745
+ action: "terminate",
746
+ description: "I/O is available",
747
+ standard: "other"
748
+ },
749
+ {
750
+ name: "SIGPOLL",
751
+ number: 29,
752
+ action: "terminate",
753
+ description: "Watched event",
754
+ standard: "other"
755
+ },
756
+ {
757
+ name: "SIGINFO",
758
+ number: 29,
759
+ action: "ignore",
760
+ description: "Request for process information",
761
+ standard: "other"
762
+ },
763
+ {
764
+ name: "SIGPWR",
765
+ number: 30,
766
+ action: "terminate",
767
+ description: "Device running out of power",
768
+ standard: "systemv"
769
+ },
770
+ {
771
+ name: "SIGSYS",
772
+ number: 31,
773
+ action: "core",
774
+ description: "Invalid system call",
775
+ standard: "other"
776
+ },
777
+ {
778
+ name: "SIGUNUSED",
779
+ number: 31,
780
+ action: "terminate",
781
+ description: "Invalid system call",
782
+ standard: "other"
783
+ }
784
+ ];
785
+
786
+ // node_modules/human-signals/build/src/signals.js
787
+ var re = /* @__PURE__ */ o(() => {
788
+ let e = Tt();
789
+ return [...Ct, ...e].map(Kn);
790
+ }, "getSignals"), Kn = /* @__PURE__ */ o(({
791
+ name: e,
792
+ number: t,
793
+ description: n,
794
+ action: r,
795
+ forced: i = !1,
796
+ standard: s
797
+ }) => {
798
+ let {
799
+ signals: { [e]: a }
800
+ } = Hn, c = a !== void 0;
801
+ return { name: e, number: c ? a : t, description: n, supported: c, action: r, forced: i, standard: s };
802
+ }, "normalizeSignal");
803
+
804
+ // node_modules/human-signals/build/src/main.js
805
+ var Vn = /* @__PURE__ */ o(() => {
806
+ let e = re();
807
+ return Object.fromEntries(e.map(Yn));
808
+ }, "getSignalsByName"), Yn = /* @__PURE__ */ o(({
809
+ name: e,
810
+ number: t,
811
+ description: n,
812
+ supported: r,
813
+ action: i,
814
+ forced: s,
815
+ standard: a
816
+ }) => [e, { name: e, number: t, description: n, supported: r, action: i, forced: s, standard: a }], "getSignalByName"), It = Vn(), Zn = /* @__PURE__ */ o(() => {
817
+ let e = re(), t = ne + 1, n = Array.from(
818
+ { length: t },
819
+ (r, i) => Qn(i, e)
820
+ );
821
+ return Object.assign({}, ...n);
822
+ }, "getSignalsByNumber"), Qn = /* @__PURE__ */ o((e, t) => {
823
+ let n = Jn(e, t);
824
+ if (n === void 0)
825
+ return {};
826
+ let { name: r, description: i, supported: s, action: a, forced: c, standard: u } = n;
827
+ return {
828
+ [e]: {
829
+ name: r,
830
+ number: e,
831
+ description: i,
832
+ supported: s,
833
+ action: a,
834
+ forced: c,
835
+ standard: u
836
+ }
837
+ };
838
+ }, "getSignalByNumber"), Jn = /* @__PURE__ */ o((e, t) => {
839
+ let n = t.find(({ name: r }) => Xn.signals[r] === e);
840
+ return n !== void 0 ? n : t.find((r) => r.number === e);
841
+ }, "findSignalByNumber"), ei = Zn();
842
+
843
+ // node_modules/execa/lib/error.js
844
+ var tr = /* @__PURE__ */ o(({ timedOut: e, timeout: t, errorCode: n, signal: r, signalDescription: i, exitCode: s, isCanceled: a }) => e ? `timed out after ${t} milliseconds` : a ? "was canceled" : n !== void 0 ? `failed with ${n}` : r !== void 0 ? `was killed with ${r} (${i})` : s !== void 0 ? `failed with exit code ${s}` : "failed", "getErrorPrefix"), C = /* @__PURE__ */ o(({
845
+ stdout: e,
846
+ stderr: t,
847
+ all: n,
848
+ error: r,
849
+ signal: i,
850
+ exitCode: s,
851
+ command: a,
852
+ escapedCommand: c,
853
+ timedOut: u,
854
+ isCanceled: f,
855
+ killed: l,
856
+ parsed: { options: { timeout: p, cwd: d = er.cwd() } }
857
+ }) => {
858
+ s = s === null ? void 0 : s, i = i === null ? void 0 : i;
859
+ let y = i === void 0 ? void 0 : It[i].description, m = r && r.code, x = `Command ${tr({ timedOut: u, timeout: p, errorCode: m, signal: i, signalDescription: y, exitCode: s, isCanceled: f })}: ${a}`, v = Object.prototype.toString.call(r) === "[object Error]", O = v ? `${x}
860
+ ${r.message}` : x, G = [O, t, e].filter(Boolean).join(`
861
+ `);
862
+ return v ? (r.originalMessage = r.message, r.message = G) : r = new Error(G), r.shortMessage = O, r.command = a, r.escapedCommand = c, r.exitCode = s, r.signal = i, r.signalDescription = y, r.stdout = e, r.stderr = t, r.cwd = d, n !== void 0 && (r.all = n), "bufferedData" in r && delete r.bufferedData, r.failed = !0, r.timedOut = !!u, r.isCanceled = f, r.killed = l && !u, r;
863
+ }, "makeError");
864
+
865
+ // node_modules/execa/lib/stdio.js
866
+ var j = ["stdin", "stdout", "stderr"], nr = /* @__PURE__ */ o((e) => j.some((t) => e[t] !== void 0), "hasAlias"), oe = /* @__PURE__ */ o((e) => {
867
+ if (!e)
868
+ return;
869
+ let { stdio: t } = e;
870
+ if (t === void 0)
871
+ return j.map((r) => e[r]);
872
+ if (nr(e))
873
+ throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${j.map((r) => `\`${r}\``).join(", ")}`);
874
+ if (typeof t == "string")
875
+ return t;
876
+ if (!Array.isArray(t))
877
+ throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
878
+ let n = Math.max(t.length, j.length);
879
+ return Array.from({ length: n }, (r, i) => t[i]);
880
+ }, "normalizeStdio"), Pt = /* @__PURE__ */ o((e) => {
881
+ let t = oe(e);
882
+ return t === "ipc" ? "ipc" : t === void 0 || typeof t == "string" ? [t, t, t, "ipc"] : t.includes("ipc") ? t : [...t, "ipc"];
883
+ }, "normalizeStdioNode");
884
+
885
+ // node_modules/execa/lib/kill.js
886
+ import ir from "node:os";
887
+
888
+ // node_modules/signal-exit/dist/mjs/signals.js
889
+ var b = [];
890
+ b.push("SIGHUP", "SIGINT", "SIGTERM");
891
+ process.platform !== "win32" && b.push(
892
+ "SIGALRM",
893
+ "SIGABRT",
894
+ "SIGVTALRM",
895
+ "SIGXCPU",
896
+ "SIGXFSZ",
897
+ "SIGUSR2",
898
+ "SIGTRAP",
899
+ "SIGSYS",
900
+ "SIGQUIT",
901
+ "SIGIOT"
902
+ // should detect profiler and enable/disable accordingly.
903
+ // see #21
904
+ // 'SIGPROF'
905
+ );
906
+ process.platform === "linux" && b.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
907
+
908
+ // node_modules/signal-exit/dist/mjs/index.js
909
+ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), ie = Symbol.for("signal-exit emitter"), se = globalThis, rr = Object.defineProperty.bind(Object), ae = class {
910
+ static {
911
+ o(this, "Emitter");
912
+ }
913
+ emitted = {
914
+ afterExit: !1,
915
+ exit: !1
916
+ };
917
+ listeners = {
918
+ afterExit: [],
919
+ exit: []
920
+ };
921
+ count = 0;
922
+ id = Math.random();
923
+ constructor() {
924
+ if (se[ie])
925
+ return se[ie];
926
+ rr(se, ie, {
927
+ value: this,
928
+ writable: !1,
929
+ enumerable: !1,
930
+ configurable: !1
931
+ });
932
+ }
933
+ on(t, n) {
934
+ this.listeners[t].push(n);
935
+ }
936
+ removeListener(t, n) {
937
+ let r = this.listeners[t], i = r.indexOf(n);
938
+ i !== -1 && (i === 0 && r.length === 1 ? r.length = 0 : r.splice(i, 1));
939
+ }
940
+ emit(t, n, r) {
941
+ if (this.emitted[t])
942
+ return !1;
943
+ this.emitted[t] = !0;
944
+ let i = !1;
945
+ for (let s of this.listeners[t])
946
+ i = s(n, r) === !0 || i;
947
+ return t === "exit" && (i = this.emit("afterExit", n, r) || i), i;
948
+ }
949
+ }, L = class {
950
+ static {
951
+ o(this, "SignalExitBase");
952
+ }
953
+ }, or = /* @__PURE__ */ o((e) => ({
954
+ onExit(t, n) {
955
+ return e.onExit(t, n);
956
+ },
957
+ load() {
958
+ return e.load();
959
+ },
960
+ unload() {
961
+ return e.unload();
962
+ }
963
+ }), "signalExitWrap"), ce = class extends L {
964
+ static {
965
+ o(this, "SignalExitFallback");
966
+ }
967
+ onExit() {
968
+ return () => {
969
+ };
970
+ }
971
+ load() {
972
+ }
973
+ unload() {
974
+ }
975
+ }, ue = class extends L {
976
+ static {
977
+ o(this, "SignalExit");
978
+ }
979
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
980
+ // so use a supported signal instead
981
+ /* c8 ignore start */
982
+ #s = fe.platform === "win32" ? "SIGINT" : "SIGHUP";
983
+ /* c8 ignore stop */
984
+ #t = new ae();
985
+ #e;
986
+ #o;
987
+ #i;
988
+ #r = {};
989
+ #n = !1;
990
+ constructor(t) {
991
+ super(), this.#e = t, this.#r = {};
992
+ for (let n of b)
993
+ this.#r[n] = () => {
994
+ let r = this.#e.listeners(n), { count: i } = this.#t, s = t;
995
+ if (typeof s.__signal_exit_emitter__ == "object" && typeof s.__signal_exit_emitter__.count == "number" && (i += s.__signal_exit_emitter__.count), r.length === i) {
996
+ this.unload();
997
+ let a = this.#t.emit("exit", null, n), c = n === "SIGHUP" ? this.#s : n;
998
+ a || t.kill(t.pid, c);
999
+ }
1000
+ };
1001
+ this.#i = t.reallyExit, this.#o = t.emit;
1002
+ }
1003
+ onExit(t, n) {
1004
+ if (!B(this.#e))
1005
+ return () => {
1006
+ };
1007
+ this.#n === !1 && this.load();
1008
+ let r = n?.alwaysLast ? "afterExit" : "exit";
1009
+ return this.#t.on(r, t), () => {
1010
+ this.#t.removeListener(r, t), this.#t.listeners.exit.length === 0 && this.#t.listeners.afterExit.length === 0 && this.unload();
1011
+ };
1012
+ }
1013
+ load() {
1014
+ if (!this.#n) {
1015
+ this.#n = !0, this.#t.count += 1;
1016
+ for (let t of b)
1017
+ try {
1018
+ let n = this.#r[t];
1019
+ n && this.#e.on(t, n);
1020
+ } catch {
1021
+ }
1022
+ this.#e.emit = (t, ...n) => this.#c(t, ...n), this.#e.reallyExit = (t) => this.#a(t);
1023
+ }
1024
+ }
1025
+ unload() {
1026
+ this.#n && (this.#n = !1, b.forEach((t) => {
1027
+ let n = this.#r[t];
1028
+ if (!n)
1029
+ throw new Error("Listener not defined for signal: " + t);
1030
+ try {
1031
+ this.#e.removeListener(t, n);
1032
+ } catch {
1033
+ }
1034
+ }), this.#e.emit = this.#o, this.#e.reallyExit = this.#i, this.#t.count -= 1);
1035
+ }
1036
+ #a(t) {
1037
+ return B(this.#e) ? (this.#e.exitCode = t || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#i.call(this.#e, this.#e.exitCode)) : 0;
1038
+ }
1039
+ #c(t, ...n) {
1040
+ let r = this.#o;
1041
+ if (t === "exit" && B(this.#e)) {
1042
+ typeof n[0] == "number" && (this.#e.exitCode = n[0]);
1043
+ let i = r.call(this.#e, t, ...n);
1044
+ return this.#t.emit("exit", this.#e.exitCode, null), i;
1045
+ } else
1046
+ return r.call(this.#e, t, ...n);
1047
+ }
1048
+ }, fe = globalThis.process, {
1049
+ /**
1050
+ * Called when the process is exiting, whether via signal, explicit
1051
+ * exit, or running out of stuff to do.
1052
+ *
1053
+ * If the global process object is not suitable for instrumentation,
1054
+ * then this will be a no-op.
1055
+ *
1056
+ * Returns a function that may be used to unload signal-exit.
1057
+ */
1058
+ onExit: vt,
1059
+ /**
1060
+ * Load the listeners. Likely you never need to call this, unless
1061
+ * doing a rather deep integration with signal-exit functionality.
1062
+ * Mostly exposed for the benefit of testing.
1063
+ *
1064
+ * @internal
1065
+ */
1066
+ load: li,
1067
+ /**
1068
+ * Unload the listeners. Likely you never need to call this, unless
1069
+ * doing a rather deep integration with signal-exit functionality.
1070
+ * Mostly exposed for the benefit of testing.
1071
+ *
1072
+ * @internal
1073
+ */
1074
+ unload: di
1075
+ } = or(B(fe) ? new ue(fe) : new ce());
1076
+
1077
+ // node_modules/execa/lib/kill.js
1078
+ var sr = 1e3 * 5, Ot = /* @__PURE__ */ o((e, t = "SIGTERM", n = {}) => {
1079
+ let r = e(t);
1080
+ return ar(e, t, n, r), r;
1081
+ }, "spawnedKill"), ar = /* @__PURE__ */ o((e, t, n, r) => {
1082
+ if (!cr(t, n, r))
1083
+ return;
1084
+ let i = fr(n), s = setTimeout(() => {
1085
+ e("SIGKILL");
1086
+ }, i);
1087
+ s.unref && s.unref();
1088
+ }, "setKillTimeout"), cr = /* @__PURE__ */ o((e, { forceKillAfterTimeout: t }, n) => ur(e) && t !== !1 && n, "shouldForceKill"), ur = /* @__PURE__ */ o((e) => e === ir.constants.signals.SIGTERM || typeof e == "string" && e.toUpperCase() === "SIGTERM", "isSigterm"), fr = /* @__PURE__ */ o(({ forceKillAfterTimeout: e = !0 }) => {
1089
+ if (e === !0)
1090
+ return sr;
1091
+ if (!Number.isFinite(e) || e < 0)
1092
+ throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);
1093
+ return e;
1094
+ }, "getForceKillAfterTimeout"), Gt = /* @__PURE__ */ o((e, t) => {
1095
+ e.kill() && (t.isCanceled = !0);
1096
+ }, "spawnedCancel"), lr = /* @__PURE__ */ o((e, t, n) => {
1097
+ e.kill(t), n(Object.assign(new Error("Timed out"), { timedOut: !0, signal: t }));
1098
+ }, "timeoutKill"), Rt = /* @__PURE__ */ o((e, { timeout: t, killSignal: n = "SIGTERM" }, r) => {
1099
+ if (t === 0 || t === void 0)
1100
+ return r;
1101
+ let i, s = new Promise((c, u) => {
1102
+ i = setTimeout(() => {
1103
+ lr(e, n, u);
1104
+ }, t);
1105
+ }), a = r.finally(() => {
1106
+ clearTimeout(i);
1107
+ });
1108
+ return Promise.race([s, a]);
1109
+ }, "setupTimeout"), $t = /* @__PURE__ */ o(({ timeout: e }) => {
1110
+ if (e !== void 0 && (!Number.isFinite(e) || e < 0))
1111
+ throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);
1112
+ }, "validateTimeout"), Nt = /* @__PURE__ */ o(async (e, { cleanup: t, detached: n }, r) => {
1113
+ if (!t || n)
1114
+ return r;
1115
+ let i = vt(() => {
1116
+ e.kill();
1117
+ });
1118
+ return r.finally(() => {
1119
+ i();
1120
+ });
1121
+ }, "setExitHandler");
1122
+
1123
+ // node_modules/execa/lib/pipe.js
1124
+ import { createWriteStream as dr } from "node:fs";
1125
+ import { ChildProcess as pr } from "node:child_process";
1126
+
1127
+ // node_modules/is-stream/index.js
1128
+ function U(e) {
1129
+ return e !== null && typeof e == "object" && typeof e.pipe == "function";
1130
+ }
1131
+ o(U, "isStream");
1132
+ function le(e) {
1133
+ return U(e) && e.writable !== !1 && typeof e._write == "function" && typeof e._writableState == "object";
1134
+ }
1135
+ o(le, "isWritableStream");
1136
+
1137
+ // node_modules/execa/lib/pipe.js
1138
+ var mr = /* @__PURE__ */ o((e) => e instanceof pr && typeof e.then == "function", "isExecaChildProcess"), de = /* @__PURE__ */ o((e, t, n) => {
1139
+ if (typeof n == "string")
1140
+ return e[t].pipe(dr(n)), e;
1141
+ if (le(n))
1142
+ return e[t].pipe(n), e;
1143
+ if (!mr(n))
1144
+ throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
1145
+ if (!le(n.stdin))
1146
+ throw new TypeError("The target child process's stdin must be available.");
1147
+ return e[t].pipe(n.stdin), n;
1148
+ }, "pipeToTarget"), kt = /* @__PURE__ */ o((e) => {
1149
+ e.stdout !== null && (e.pipeStdout = de.bind(void 0, e, "stdout")), e.stderr !== null && (e.pipeStderr = de.bind(void 0, e, "stderr")), e.all !== void 0 && (e.pipeAll = de.bind(void 0, e, "all"));
1150
+ }, "addPipeMethods");
1151
+
1152
+ // node_modules/execa/lib/stream.js
1153
+ import { createReadStream as Nr, readFileSync as kr } from "node:fs";
1154
+ import { setTimeout as jr } from "node:timers/promises";
1155
+
1156
+ // node_modules/get-stream/source/contents.js
1157
+ var I = /* @__PURE__ */ o(async (e, { init: t, convertChunk: n, getSize: r, truncateChunk: i, addChunk: s, getFinalChunk: a, finalize: c }, { maxBuffer: u = Number.POSITIVE_INFINITY } = {}) => {
1158
+ if (!yr(e))
1159
+ throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
1160
+ let f = t();
1161
+ f.length = 0;
1162
+ try {
1163
+ for await (let l of e) {
1164
+ let p = gr(l), d = n[p](l, f);
1165
+ Lt({ convertedChunk: d, state: f, getSize: r, truncateChunk: i, addChunk: s, maxBuffer: u });
1166
+ }
1167
+ return hr({ state: f, convertChunk: n, getSize: r, truncateChunk: i, addChunk: s, getFinalChunk: a, maxBuffer: u }), c(f);
1168
+ } catch (l) {
1169
+ throw l.bufferedData = c(f), l;
1170
+ }
1171
+ }, "getStreamContents"), hr = /* @__PURE__ */ o(({ state: e, getSize: t, truncateChunk: n, addChunk: r, getFinalChunk: i, maxBuffer: s }) => {
1172
+ let a = i(e);
1173
+ a !== void 0 && Lt({ convertedChunk: a, state: e, getSize: t, truncateChunk: n, addChunk: r, maxBuffer: s });
1174
+ }, "appendFinalChunk"), Lt = /* @__PURE__ */ o(({ convertedChunk: e, state: t, getSize: n, truncateChunk: r, addChunk: i, maxBuffer: s }) => {
1175
+ let a = n(e), c = t.length + a;
1176
+ if (c <= s) {
1177
+ jt(e, t, i, c);
1178
+ return;
1179
+ }
1180
+ let u = r(e, s - t.length);
1181
+ throw u !== void 0 && jt(u, t, i, s), new F();
1182
+ }, "appendChunk"), jt = /* @__PURE__ */ o((e, t, n, r) => {
1183
+ t.contents = n(e, t, r), t.length = r;
1184
+ }, "addNewChunk"), yr = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && typeof e[Symbol.asyncIterator] == "function", "isAsyncIterable"), gr = /* @__PURE__ */ o((e) => {
1185
+ let t = typeof e;
1186
+ if (t === "string")
1187
+ return "string";
1188
+ if (t !== "object" || e === null)
1189
+ return "others";
1190
+ if (globalThis.Buffer?.isBuffer(e))
1191
+ return "buffer";
1192
+ let n = Bt.call(e);
1193
+ return n === "[object ArrayBuffer]" ? "arrayBuffer" : n === "[object DataView]" ? "dataView" : Number.isInteger(e.byteLength) && Number.isInteger(e.byteOffset) && Bt.call(e.buffer) === "[object ArrayBuffer]" ? "typedArray" : "others";
1194
+ }, "getChunkType"), { toString: Bt } = Object.prototype, F = class extends Error {
1195
+ static {
1196
+ o(this, "MaxBufferError");
1197
+ }
1198
+ name = "MaxBufferError";
1199
+ constructor() {
1200
+ super("maxBuffer exceeded");
1201
+ }
1202
+ };
1203
+
1204
+ // node_modules/get-stream/source/utils.js
1205
+ var pe = /* @__PURE__ */ o((e) => e, "identity"), me = /* @__PURE__ */ o(() => {
1206
+ }, "noop"), he = /* @__PURE__ */ o(({ contents: e }) => e, "getContentsProp"), M = /* @__PURE__ */ o((e) => {
1207
+ throw new Error(`Streams in object mode are not supported: ${String(e)}`);
1208
+ }, "throwObjectStream"), _ = /* @__PURE__ */ o((e) => e.length, "getLengthProp");
1209
+
1210
+ // node_modules/get-stream/source/array-buffer.js
1211
+ async function ye(e, t) {
1212
+ return I(e, Ir, t);
1213
+ }
1214
+ o(ye, "getStreamAsArrayBuffer");
1215
+ var Sr = /* @__PURE__ */ o(() => ({ contents: new ArrayBuffer(0) }), "initArrayBuffer"), br = /* @__PURE__ */ o((e) => xr.encode(e), "useTextEncoder"), xr = new TextEncoder(), Ut = /* @__PURE__ */ o((e) => new Uint8Array(e), "useUint8Array"), Ft = /* @__PURE__ */ o((e) => new Uint8Array(e.buffer, e.byteOffset, e.byteLength), "useUint8ArrayWithOffset"), wr = /* @__PURE__ */ o((e, t) => e.slice(0, t), "truncateArrayBufferChunk"), Er = /* @__PURE__ */ o((e, { contents: t, length: n }, r) => {
1216
+ let i = Dt() ? Ar(t, r) : Tr(t, r);
1217
+ return new Uint8Array(i).set(e, n), i;
1218
+ }, "addArrayBufferChunk"), Tr = /* @__PURE__ */ o((e, t) => {
1219
+ if (t <= e.byteLength)
1220
+ return e;
1221
+ let n = new ArrayBuffer(_t(t));
1222
+ return new Uint8Array(n).set(new Uint8Array(e), 0), n;
1223
+ }, "resizeArrayBufferSlow"), Ar = /* @__PURE__ */ o((e, t) => {
1224
+ if (t <= e.maxByteLength)
1225
+ return e.resize(t), e;
1226
+ let n = new ArrayBuffer(t, { maxByteLength: _t(t) });
1227
+ return new Uint8Array(n).set(new Uint8Array(e), 0), n;
1228
+ }, "resizeArrayBuffer"), _t = /* @__PURE__ */ o((e) => Mt ** Math.ceil(Math.log(e) / Math.log(Mt)), "getNewContentsLength"), Mt = 2, Cr = /* @__PURE__ */ o(({ contents: e, length: t }) => Dt() ? e : e.slice(0, t), "finalizeArrayBuffer"), Dt = /* @__PURE__ */ o(() => "resize" in ArrayBuffer.prototype, "hasArrayBufferResize"), Ir = {
1229
+ init: Sr,
1230
+ convertChunk: {
1231
+ string: br,
1232
+ buffer: Ut,
1233
+ arrayBuffer: Ut,
1234
+ dataView: Ft,
1235
+ typedArray: Ft,
1236
+ others: M
1237
+ },
1238
+ getSize: _,
1239
+ truncateChunk: wr,
1240
+ addChunk: Er,
1241
+ getFinalChunk: me,
1242
+ finalize: Cr
1243
+ };
1244
+
1245
+ // node_modules/get-stream/source/buffer.js
1246
+ async function D(e, t) {
1247
+ if (!("Buffer" in globalThis))
1248
+ throw new Error("getStreamAsBuffer() is only supported in Node.js");
1249
+ try {
1250
+ return zt(await ye(e, t));
1251
+ } catch (n) {
1252
+ throw n.bufferedData !== void 0 && (n.bufferedData = zt(n.bufferedData)), n;
1253
+ }
1254
+ }
1255
+ o(D, "getStreamAsBuffer");
1256
+ var zt = /* @__PURE__ */ o((e) => globalThis.Buffer.from(e), "arrayBufferToNodeBuffer");
1257
+
1258
+ // node_modules/get-stream/source/string.js
1259
+ async function ge(e, t) {
1260
+ return I(e, Rr, t);
1261
+ }
1262
+ o(ge, "getStreamAsString");
1263
+ var Pr = /* @__PURE__ */ o(() => ({ contents: "", textDecoder: new TextDecoder() }), "initString"), z = /* @__PURE__ */ o((e, { textDecoder: t }) => t.decode(e, { stream: !0 }), "useTextDecoder"), vr = /* @__PURE__ */ o((e, { contents: t }) => t + e, "addStringChunk"), Or = /* @__PURE__ */ o((e, t) => e.slice(0, t), "truncateStringChunk"), Gr = /* @__PURE__ */ o(({ textDecoder: e }) => {
1264
+ let t = e.decode();
1265
+ return t === "" ? void 0 : t;
1266
+ }, "getFinalStringChunk"), Rr = {
1267
+ init: Pr,
1268
+ convertChunk: {
1269
+ string: pe,
1270
+ buffer: z,
1271
+ arrayBuffer: z,
1272
+ dataView: z,
1273
+ typedArray: z,
1274
+ others: M
1275
+ },
1276
+ getSize: _,
1277
+ truncateChunk: Or,
1278
+ addChunk: vr,
1279
+ getFinalChunk: Gr,
1280
+ finalize: he
1281
+ };
1282
+
1283
+ // node_modules/execa/lib/stream.js
1284
+ var Ht = Ge(Wt(), 1);
1285
+ var Kt = /* @__PURE__ */ o((e) => {
1286
+ if (e !== void 0)
1287
+ throw new TypeError("The `input` and `inputFile` options cannot be both set.");
1288
+ }, "validateInputOptions"), Br = /* @__PURE__ */ o(({ input: e, inputFile: t }) => typeof t != "string" ? e : (Kt(e), kr(t)), "getInputSync"), Xt = /* @__PURE__ */ o((e) => {
1289
+ let t = Br(e);
1290
+ if (U(t))
1291
+ throw new TypeError("The `input` option cannot be a stream in sync mode");
1292
+ return t;
1293
+ }, "handleInputSync"), Lr = /* @__PURE__ */ o(({ input: e, inputFile: t }) => typeof t != "string" ? e : (Kt(e), Nr(t)), "getInput"), Vt = /* @__PURE__ */ o((e, t) => {
1294
+ let n = Lr(t);
1295
+ n !== void 0 && (U(n) ? n.pipe(e.stdin) : e.stdin.end(n));
1296
+ }, "handleInput"), Yt = /* @__PURE__ */ o((e, { all: t }) => {
1297
+ if (!t || !e.stdout && !e.stderr)
1298
+ return;
1299
+ let n = (0, Ht.default)();
1300
+ return e.stdout && n.add(e.stdout), e.stderr && n.add(e.stderr), n;
1301
+ }, "makeAllStream"), Se = /* @__PURE__ */ o(async (e, t) => {
1302
+ if (!(!e || t === void 0)) {
1303
+ await jr(0), e.destroy();
1304
+ try {
1305
+ return await t;
1306
+ } catch (n) {
1307
+ return n.bufferedData;
1308
+ }
1309
+ }
1310
+ }, "getBufferedData"), be = /* @__PURE__ */ o((e, { encoding: t, buffer: n, maxBuffer: r }) => {
1311
+ if (!(!e || !n))
1312
+ return t === "utf8" || t === "utf-8" ? ge(e, { maxBuffer: r }) : t === null || t === "buffer" ? D(e, { maxBuffer: r }) : Ur(e, r, t);
1313
+ }, "getStreamPromise"), Ur = /* @__PURE__ */ o(async (e, t, n) => (await D(e, { maxBuffer: t })).toString(n), "applyEncoding"), Zt = /* @__PURE__ */ o(async ({ stdout: e, stderr: t, all: n }, { encoding: r, buffer: i, maxBuffer: s }, a) => {
1314
+ let c = be(e, { encoding: r, buffer: i, maxBuffer: s }), u = be(t, { encoding: r, buffer: i, maxBuffer: s }), f = be(n, { encoding: r, buffer: i, maxBuffer: s * 2 });
1315
+ try {
1316
+ return await Promise.all([a, c, u, f]);
1317
+ } catch (l) {
1318
+ return Promise.all([
1319
+ { error: l, signal: l.signal, timedOut: l.timedOut },
1320
+ Se(e, c),
1321
+ Se(t, u),
1322
+ Se(n, f)
1323
+ ]);
1324
+ }
1325
+ }, "getSpawnedResult");
1326
+
1327
+ // node_modules/execa/lib/promise.js
1328
+ var Fr = (async () => {
1329
+ })().constructor.prototype, Mr = ["then", "catch", "finally"].map((e) => [
1330
+ e,
1331
+ Reflect.getOwnPropertyDescriptor(Fr, e)
1332
+ ]), xe = /* @__PURE__ */ o((e, t) => {
1333
+ for (let [n, r] of Mr) {
1334
+ let i = typeof t == "function" ? (...s) => Reflect.apply(r.value, t(), s) : r.value.bind(t);
1335
+ Reflect.defineProperty(e, n, { ...r, value: i });
1336
+ }
1337
+ }, "mergePromise"), Qt = /* @__PURE__ */ o((e) => new Promise((t, n) => {
1338
+ e.on("exit", (r, i) => {
1339
+ t({ exitCode: r, signal: i });
1340
+ }), e.on("error", (r) => {
1341
+ n(r);
1342
+ }), e.stdin && e.stdin.on("error", (r) => {
1343
+ n(r);
1344
+ });
1345
+ }), "getSpawnedPromise");
1346
+
1347
+ // node_modules/execa/lib/command.js
1348
+ import { Buffer as _r } from "node:buffer";
1349
+ import { ChildProcess as Dr } from "node:child_process";
1350
+ var tn = /* @__PURE__ */ o((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), zr = /^[\w.-]+$/, qr = /* @__PURE__ */ o((e) => typeof e != "string" || zr.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), we = /* @__PURE__ */ o((e, t) => tn(e, t).join(" "), "joinCommand"), Ee = /* @__PURE__ */ o((e, t) => tn(e, t).map((n) => qr(n)).join(" "), "getEscapedCommand"), Wr = / +/g;
1351
+ var Jt = /* @__PURE__ */ o((e) => {
1352
+ let t = typeof e;
1353
+ if (t === "string")
1354
+ return e;
1355
+ if (t === "number")
1356
+ return String(e);
1357
+ if (t === "object" && e !== null && !(e instanceof Dr) && "stdout" in e) {
1358
+ let n = typeof e.stdout;
1359
+ if (n === "string")
1360
+ return e.stdout;
1361
+ if (_r.isBuffer(e.stdout))
1362
+ return e.stdout.toString();
1363
+ throw new TypeError(`Unexpected "${n}" stdout in template expression`);
1364
+ }
1365
+ throw new TypeError(`Unexpected "${t}" in template expression`);
1366
+ }, "parseExpression"), en = /* @__PURE__ */ o((e, t, n) => n || e.length === 0 || t.length === 0 ? [...e, ...t] : [
1367
+ ...e.slice(0, -1),
1368
+ `${e.at(-1)}${t[0]}`,
1369
+ ...t.slice(1)
1370
+ ], "concatTokens"), Hr = /* @__PURE__ */ o(({ templates: e, expressions: t, tokens: n, index: r, template: i }) => {
1371
+ let s = i ?? e.raw[r], a = s.split(Wr).filter(Boolean), c = en(
1372
+ n,
1373
+ a,
1374
+ s.startsWith(" ")
1375
+ );
1376
+ if (r === t.length)
1377
+ return c;
1378
+ let u = t[r], f = Array.isArray(u) ? u.map((l) => Jt(l)) : [Jt(u)];
1379
+ return en(
1380
+ c,
1381
+ f,
1382
+ s.endsWith(" ")
1383
+ );
1384
+ }, "parseTemplate"), Te = /* @__PURE__ */ o((e, t) => {
1385
+ let n = [];
1386
+ for (let [r, i] of e.entries())
1387
+ n = Hr({ templates: e, expressions: t, tokens: n, index: r, template: i });
1388
+ return n;
1389
+ }, "parseTemplates");
1390
+
1391
+ // node_modules/execa/lib/verbose.js
1392
+ import { debuglog as Kr } from "node:util";
1393
+ import Xr from "node:process";
1394
+ var nn = Kr("execa").enabled, q = /* @__PURE__ */ o((e, t) => String(e).padStart(t, "0"), "padField"), Vr = /* @__PURE__ */ o(() => {
1395
+ let e = /* @__PURE__ */ new Date();
1396
+ return `${q(e.getHours(), 2)}:${q(e.getMinutes(), 2)}:${q(e.getSeconds(), 2)}.${q(e.getMilliseconds(), 3)}`;
1397
+ }, "getTimestamp"), Ae = /* @__PURE__ */ o((e, { verbose: t }) => {
1398
+ t && Xr.stderr.write(`[${Vr()}] ${e}
1399
+ `);
1400
+ }, "logCommand");
1401
+
1402
+ // node_modules/execa/index.js
1403
+ var Qr = 1e3 * 1e3 * 100, Jr = /* @__PURE__ */ o(({ env: e, extendEnv: t, preferLocal: n, localDir: r, execPath: i }) => {
1404
+ let s = t ? { ...T.env, ...e } : e;
1405
+ return n ? xt({ env: s, cwd: r, execPath: i }) : s;
1406
+ }, "getEnv"), sn = /* @__PURE__ */ o((e, t, n = {}) => {
1407
+ let r = on.default._parse(e, t, n);
1408
+ return e = r.command, t = r.args, n = r.options, n = {
1409
+ maxBuffer: Qr,
1410
+ buffer: !0,
1411
+ stripFinalNewline: !0,
1412
+ extendEnv: !0,
1413
+ preferLocal: !1,
1414
+ localDir: n.cwd || T.cwd(),
1415
+ execPath: T.execPath,
1416
+ encoding: "utf8",
1417
+ reject: !0,
1418
+ cleanup: !0,
1419
+ all: !1,
1420
+ windowsHide: !0,
1421
+ verbose: nn,
1422
+ ...n
1423
+ }, n.env = Jr(n), n.stdio = oe(n), T.platform === "win32" && Zr.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: n, parsed: r };
1424
+ }, "handleArguments"), P = /* @__PURE__ */ o((e, t, n) => typeof t != "string" && !Yr.isBuffer(t) ? n === void 0 ? void 0 : "" : e.stripFinalNewline ? ee(t) : t, "handleOutput");
1425
+ function an(e, t, n) {
1426
+ let r = sn(e, t, n), i = we(e, t), s = Ee(e, t);
1427
+ Ae(s, r.options), $t(r.options);
1428
+ let a;
1429
+ try {
1430
+ a = Ce.spawn(r.file, r.args, r.options);
1431
+ } catch (y) {
1432
+ let m = new Ce.ChildProcess(), g = Promise.reject(C({
1433
+ error: y,
1434
+ stdout: "",
1435
+ stderr: "",
1436
+ all: "",
1437
+ command: i,
1438
+ escapedCommand: s,
1439
+ parsed: r,
1440
+ timedOut: !1,
1441
+ isCanceled: !1,
1442
+ killed: !1
1443
+ }));
1444
+ return xe(m, g), m;
1445
+ }
1446
+ let c = Qt(a), u = Rt(a, r.options, c), f = Nt(a, r.options, u), l = { isCanceled: !1 };
1447
+ a.kill = Ot.bind(null, a.kill.bind(a)), a.cancel = Gt.bind(null, a, l);
1448
+ let d = Et(/* @__PURE__ */ o(async () => {
1449
+ let [{ error: y, exitCode: m, signal: g, timedOut: x }, v, O, G] = await Zt(a, r.options, f), Ie = P(r.options, v), Pe = P(r.options, O), ve = P(r.options, G);
1450
+ if (y || m !== 0 || g !== null) {
1451
+ let Oe = C({
1452
+ error: y,
1453
+ exitCode: m,
1454
+ signal: g,
1455
+ stdout: Ie,
1456
+ stderr: Pe,
1457
+ all: ve,
1458
+ command: i,
1459
+ escapedCommand: s,
1460
+ parsed: r,
1461
+ timedOut: x,
1462
+ isCanceled: l.isCanceled || (r.options.signal ? r.options.signal.aborted : !1),
1463
+ killed: a.killed
1464
+ });
1465
+ if (!r.options.reject)
1466
+ return Oe;
1467
+ throw Oe;
1468
+ }
1469
+ return {
1470
+ command: i,
1471
+ escapedCommand: s,
1472
+ exitCode: 0,
1473
+ stdout: Ie,
1474
+ stderr: Pe,
1475
+ all: ve,
1476
+ failed: !1,
1477
+ timedOut: !1,
1478
+ isCanceled: !1,
1479
+ killed: !1
1480
+ };
1481
+ }, "handlePromise"));
1482
+ return Vt(a, r.options), a.all = Yt(a, r.options), kt(a), xe(a, d), a;
1483
+ }
1484
+ o(an, "execa");
1485
+ function eo(e, t, n) {
1486
+ let r = sn(e, t, n), i = we(e, t), s = Ee(e, t);
1487
+ Ae(s, r.options);
1488
+ let a = Xt(r.options), c;
1489
+ try {
1490
+ c = Ce.spawnSync(r.file, r.args, { ...r.options, input: a });
1491
+ } catch (l) {
1492
+ throw C({
1493
+ error: l,
1494
+ stdout: "",
1495
+ stderr: "",
1496
+ all: "",
1497
+ command: i,
1498
+ escapedCommand: s,
1499
+ parsed: r,
1500
+ timedOut: !1,
1501
+ isCanceled: !1,
1502
+ killed: !1
1503
+ });
1504
+ }
1505
+ let u = P(r.options, c.stdout, c.error), f = P(r.options, c.stderr, c.error);
1506
+ if (c.error || c.status !== 0 || c.signal !== null) {
1507
+ let l = C({
1508
+ stdout: u,
1509
+ stderr: f,
1510
+ error: c.error,
1511
+ signal: c.signal,
1512
+ exitCode: c.status,
1513
+ command: i,
1514
+ escapedCommand: s,
1515
+ parsed: r,
1516
+ timedOut: c.error && c.error.code === "ETIMEDOUT",
1517
+ isCanceled: !1,
1518
+ killed: c.signal !== null
1519
+ });
1520
+ if (!r.options.reject)
1521
+ return l;
1522
+ throw l;
1523
+ }
1524
+ return {
1525
+ command: i,
1526
+ escapedCommand: s,
1527
+ exitCode: 0,
1528
+ stdout: u,
1529
+ stderr: f,
1530
+ failed: !1,
1531
+ timedOut: !1,
1532
+ isCanceled: !1,
1533
+ killed: !1
1534
+ };
1535
+ }
1536
+ o(eo, "execaSync");
1537
+ var to = /* @__PURE__ */ o(({ input: e, inputFile: t, stdio: n }) => e === void 0 && t === void 0 && n === void 0 ? { stdin: "inherit" } : {}, "normalizeScriptStdin"), rn = /* @__PURE__ */ o((e = {}) => ({
1538
+ preferLocal: !0,
1539
+ ...to(e),
1540
+ ...e
1541
+ }), "normalizeScriptOptions");
1542
+ function cn(e) {
1543
+ function t(n, ...r) {
1544
+ if (!Array.isArray(n))
1545
+ return cn({ ...e, ...n });
1546
+ let [i, ...s] = Te(n, r);
1547
+ return an(i, s, rn(e));
1548
+ }
1549
+ return o(t, "$"), t.sync = (n, ...r) => {
1550
+ if (!Array.isArray(n))
1551
+ throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
1552
+ let [i, ...s] = Te(n, r);
1553
+ return eo(i, s, rn(e));
1554
+ }, t;
1555
+ }
1556
+ o(cn, "create$");
1557
+ var $s = cn();
1558
+ function Ns(e, t, n = {}) {
1559
+ t && !Array.isArray(t) && typeof t == "object" && (n = t, t = []);
1560
+ let r = Pt(n), i = T.execArgv.filter((c) => !c.startsWith("--inspect")), {
1561
+ nodePath: s = T.execPath,
1562
+ nodeOptions: a = i
1563
+ } = n;
1564
+ return an(
1565
+ s,
1566
+ [
1567
+ ...a,
1568
+ e,
1569
+ ...Array.isArray(t) ? t : []
1570
+ ],
1571
+ {
1572
+ ...n,
1573
+ stdin: void 0,
1574
+ stdout: void 0,
1575
+ stderr: void 0,
1576
+ stdio: r,
1577
+ shell: !1
1578
+ }
1579
+ );
1580
+ }
1581
+ o(Ns, "execaNode");
1582
+
1583
+ export {
1584
+ an as a,
1585
+ Ns as b
1586
+ };