nitro-nightly 3.0.1-20260119-145349-d0c4950f → 3.0.1-20260120-133205-cbfce96c

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 (52) hide show
  1. package/dist/_build/common.mjs +542 -542
  2. package/dist/_build/rolldown.mjs +5 -5
  3. package/dist/_build/rollup.mjs +3 -3
  4. package/dist/_build/vite.build.mjs +1 -1
  5. package/dist/_chunks/dev.mjs +4 -4
  6. package/dist/_chunks/nitro.mjs +3 -3
  7. package/dist/_chunks/nitro2.mjs +1 -1
  8. package/dist/_chunks/utils.mjs +1 -1
  9. package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +2 -2
  10. package/dist/_libs/@jridgewell/gen-mapping.mjs +1 -1
  11. package/dist/_libs/@rollup/plugin-commonjs.d.mts +241 -0
  12. package/dist/_libs/@rollup/plugin-commonjs.mjs +19 -19
  13. package/dist/_libs/@rollup/plugin-inject.mjs +1 -1
  14. package/dist/_libs/c12.d.mts +214 -0
  15. package/dist/_libs/c12.mjs +6 -6
  16. package/dist/_libs/chokidar.mjs +2 -2
  17. package/dist/_libs/compatx.d.mts +47 -0
  18. package/dist/_libs/confbox.mjs +2 -2
  19. package/dist/_libs/esbuild.d.mts +20 -0
  20. package/dist/_libs/giget.mjs +1305 -1305
  21. package/dist/_libs/httpxy.d.mts +79 -0
  22. package/dist/_libs/httpxy.mjs +1 -1
  23. package/dist/_libs/magic-string.d.mts +220 -0
  24. package/dist/_libs/mlly.d.mts +57 -0
  25. package/dist/_libs/pkg-types.d.mts +23 -0
  26. package/dist/_libs/rou3.d.mts +43 -0
  27. package/dist/_libs/std-env.d.mts +4 -0
  28. package/dist/_libs/unimport.d.mts +426 -0
  29. package/dist/_libs/unimport.mjs +11 -11
  30. package/dist/_libs/unwasm.d.mts +29 -0
  31. package/dist/_presets.mjs +1 -1
  32. package/dist/builder.mjs +1 -1
  33. package/dist/cli/_chunks/build.mjs +1 -1
  34. package/dist/cli/_chunks/dev.mjs +1 -1
  35. package/dist/cli/_chunks/list.mjs +1 -1
  36. package/dist/cli/_chunks/prepare.mjs +1 -1
  37. package/dist/cli/_chunks/run.mjs +1 -1
  38. package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
  39. package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -1
  40. package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -1
  41. package/dist/runtime/internal/error/dev.d.mts +0 -1
  42. package/dist/runtime/internal/route-rules.d.mts +0 -4
  43. package/dist/runtime/internal/routes/openapi.d.mts +0 -1
  44. package/dist/runtime/internal/routes/scalar.d.mts +0 -1
  45. package/dist/runtime/internal/routes/swagger.d.mts +0 -1
  46. package/dist/runtime/internal/runtime-config.d.mts +0 -1
  47. package/dist/runtime/nitro.d.mts +0 -3
  48. package/dist/runtime/virtual/renderer-template.d.mts +0 -1
  49. package/dist/types/index.d.mts +962 -1095
  50. package/dist/vite.d.mts +13 -13
  51. package/dist/vite.mjs +10 -9
  52. package/package.json +9 -9
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "../_common.mjs";
2
- import { At as dirname$2, It as resolve$2, Nt as join$2, Pt as normalize$2, kt as basename$2, xt as readPackageJSON } from "../_build/common.mjs";
2
+ import { Y as readPackageJSON, at as join$2, ct as resolve$2, nt as dirname$2, ot as normalize$2, tt as basename$2 } from "../_build/common.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { createWriteStream, existsSync, readdirSync, renameSync } from "node:fs";
5
5
  import nativeFs from "fs";
@@ -223,15 +223,15 @@ var O$3 = h$1((exports, t$7) => {
223
223
  if (!t$8) t$8 = {};
224
224
  const { pathEnv: i$9, pathExt: c$7, pathExtExe: l$4 } = s$8(e$7, t$8);
225
225
  const u$6 = [];
226
- const d$1 = (n$6) => new Promise((a$12, s$9) => {
226
+ const d = (n$6) => new Promise((a$12, s$9) => {
227
227
  if (n$6 === i$9.length) return t$8.all && u$6.length ? a$12(u$6) : s$9(o$6(e$7));
228
228
  const c$8 = i$9[n$6];
229
229
  const l$5 = /^".*"$/.test(c$8) ? c$8.slice(1, -1) : c$8;
230
- const d$2 = r.join(l$5, e$7);
231
- a$12(f$5(!l$5 && /^\.[\\\/]/.test(e$7) ? e$7.slice(0, 2) + d$2 : d$2, n$6, 0));
230
+ const d$1 = r.join(l$5, e$7);
231
+ a$12(f$5(!l$5 && /^\.[\\\/]/.test(e$7) ? e$7.slice(0, 2) + d$1 : d$1, n$6, 0));
232
232
  });
233
233
  const f$5 = (e$8, n$6, r$3) => new Promise((i$10, o$7) => {
234
- if (r$3 === c$7.length) return i$10(d$1(n$6 + 1));
234
+ if (r$3 === c$7.length) return i$10(d(n$6 + 1));
235
235
  const s$9 = c$7[r$3];
236
236
  a$11(e$8 + s$9, { pathExt: l$4 }, (a$12, o$8) => {
237
237
  if (!a$12 && o$8) if (t$8.all) u$6.push(e$8 + s$9);
@@ -239,7 +239,7 @@ var O$3 = h$1((exports, t$7) => {
239
239
  return i$10(f$5(e$8, n$6, r$3 + 1));
240
240
  });
241
241
  });
242
- return n$5 ? d$1(0).then((e$8) => n$5(null, e$8), n$5) : d$1(0);
242
+ return n$5 ? d(0).then((e$8) => n$5(null, e$8), n$5) : d(0);
243
243
  };
244
244
  const l$3 = (e$7, t$8) => {
245
245
  t$8 = t$8 || {};
@@ -248,8 +248,8 @@ var O$3 = h$1((exports, t$7) => {
248
248
  for (let o$7 = 0; o$7 < n$5.length; o$7++) {
249
249
  const s$9 = n$5[o$7];
250
250
  const u$6 = /^".*"$/.test(s$9) ? s$9.slice(1, -1) : s$9;
251
- const d$1 = r.join(u$6, e$7);
252
- const f$5 = !u$6 && /^\.[\\\/]/.test(e$7) ? e$7.slice(0, 2) + d$1 : d$1;
251
+ const d = r.join(u$6, e$7);
252
+ const f$5 = !u$6 && /^\.[\\\/]/.test(e$7) ? e$7.slice(0, 2) + d : d;
253
253
  for (let e$8 = 0; e$8 < i$9.length; e$8++) {
254
254
  const n$6 = f$5 + i$9[e$8];
255
255
  try {
@@ -389,7 +389,7 @@ var F$3 = h$1((exports, t$7) => {
389
389
  }
390
390
  return e$7;
391
391
  }
392
- function d$1(e$7, t$8, n$5) {
392
+ function d(e$7, t$8, n$5) {
393
393
  if (t$8 && !Array.isArray(t$8)) {
394
394
  n$5 = t$8;
395
395
  t$8 = null;
@@ -408,7 +408,7 @@ var F$3 = h$1((exports, t$7) => {
408
408
  };
409
409
  return n$5.shell ? r$3 : u$6(r$3);
410
410
  }
411
- t$7.exports = d$1;
411
+ t$7.exports = d;
412
412
  });
413
413
  var I = h$1((exports, t$7) => {
414
414
  const n$4 = process.platform === "win32";
@@ -888,7 +888,7 @@ var i$6, t$5;
888
888
  function s$6() {
889
889
  if (t$5) return i$6;
890
890
  t$5 = 1;
891
- const n$4 = new Map([
891
+ const n = new Map([
892
892
  ["C", "cwd"],
893
893
  ["f", "file"],
894
894
  ["z", "gzip"],
@@ -909,21 +909,21 @@ function s$6() {
909
909
  ["L", "follow"],
910
910
  ["h", "follow"]
911
911
  ]);
912
- return i$6 = (r) => r ? Object.keys(r).map((e$7) => [n$4.has(e$7) ? n$4.get(e$7) : e$7, r[e$7]]).reduce((e$7, p$2) => (e$7[p$2[0]] = p$2[1], e$7), Object.create(null)) : {}, i$6;
912
+ return i$6 = (r) => r ? Object.keys(r).map((e) => [n.has(e) ? n.get(e) : e, r[e]]).reduce((e, p) => (e[p[0]] = p[1], e), Object.create(null)) : {}, i$6;
913
913
  }
914
914
  var e$5, t$4;
915
915
  function c$4() {
916
- return t$4 || (t$4 = 1, e$5 = (o$6) => class extends o$6 {
917
- warn(n$4, i$8, r = {}) {
918
- this.file && (r.file = this.file), this.cwd && (r.cwd = this.cwd), r.code = i$8 instanceof Error && i$8.code || n$4, r.tarCode = n$4, !this.strict && r.recoverable !== false ? (i$8 instanceof Error && (r = Object.assign(i$8, r), i$8 = i$8.message), this.emit("warn", r.tarCode, i$8, r)) : i$8 instanceof Error ? this.emit("error", Object.assign(i$8, r)) : this.emit("error", Object.assign(/* @__PURE__ */ new Error(`${n$4}: ${i$8}`), r));
916
+ return t$4 || (t$4 = 1, e$5 = (o) => class extends o {
917
+ warn(n, i, r = {}) {
918
+ this.file && (r.file = this.file), this.cwd && (r.cwd = this.cwd), r.code = i instanceof Error && i.code || n, r.tarCode = n, !this.strict && r.recoverable !== false ? (i instanceof Error && (r = Object.assign(i, r), i = i.message), this.emit("warn", r.tarCode, i, r)) : i instanceof Error ? this.emit("error", Object.assign(i, r)) : this.emit("error", Object.assign(/* @__PURE__ */ new Error(`${n}: ${i}`), r));
919
919
  }
920
920
  }), e$5;
921
921
  }
922
922
  var e$4 = {};
923
923
  var a$9;
924
924
  function n$3() {
925
- return a$9 ? e$4 : (a$9 = 1, function(e$7) {
926
- e$7.name = new Map([
925
+ return a$9 ? e$4 : (a$9 = 1, function(e) {
926
+ e.name = new Map([
927
927
  ["0", "File"],
928
928
  ["", "OldFile"],
929
929
  ["1", "Link"],
@@ -945,48 +945,48 @@ function n$3() {
945
945
  ["S", "SparseFile"],
946
946
  ["V", "TapeVolumeHeader"],
947
947
  ["X", "OldExtendedHeader"]
948
- ]), e$7.code = new Map(Array.from(e$7.name).map((i$8) => [i$8[1], i$8[0]]));
948
+ ]), e.code = new Map(Array.from(e.name).map((i) => [i[1], i[0]]));
949
949
  }(e$4), e$4);
950
950
  }
951
951
  var f$3, i$5;
952
952
  function w$1() {
953
953
  if (i$5) return f$3;
954
954
  i$5 = 1;
955
- const v$3 = (e$7, r) => {
956
- if (Number.isSafeInteger(e$7)) e$7 < 0 ? g$1(e$7, r) : p$2(e$7, r);
955
+ const v = (e, r) => {
956
+ if (Number.isSafeInteger(e)) e < 0 ? g$1(e, r) : p(e, r);
957
957
  else throw Error("cannot encode number outside of javascript safe integer range");
958
958
  return r;
959
- }, p$2 = (e$7, r) => {
959
+ }, p = (e, r) => {
960
960
  r[0] = 128;
961
- for (var o$6 = r.length; o$6 > 1; o$6--) r[o$6 - 1] = e$7 & 255, e$7 = Math.floor(e$7 / 256);
962
- }, g$1 = (e$7, r) => {
961
+ for (var o = r.length; o > 1; o--) r[o - 1] = e & 255, e = Math.floor(e / 256);
962
+ }, g$1 = (e, r) => {
963
963
  r[0] = 255;
964
- var o$6 = false;
965
- e$7 = e$7 * -1;
966
- for (var s$8 = r.length; s$8 > 1; s$8--) {
967
- var a$11 = e$7 & 255;
968
- e$7 = Math.floor(e$7 / 256), o$6 ? r[s$8 - 1] = l$3(a$11) : a$11 === 0 ? r[s$8 - 1] = 0 : (o$6 = true, r[s$8 - 1] = c$6(a$11));
969
- }
970
- }, h$2 = (e$7) => {
971
- const r = e$7[0], o$6 = r === 128 ? d$1(e$7.slice(1, e$7.length)) : r === 255 ? x$1(e$7) : null;
972
- if (o$6 === null) throw Error("invalid base256 encoding");
973
- if (!Number.isSafeInteger(o$6)) throw Error("parsed number outside of javascript safe integer range");
974
- return o$6;
975
- }, x$1 = (e$7) => {
976
- for (var r = e$7.length, o$6 = 0, s$8 = false, a$11 = r - 1; a$11 > -1; a$11--) {
977
- var n$4 = e$7[a$11], t$7;
978
- s$8 ? t$7 = l$3(n$4) : n$4 === 0 ? t$7 = n$4 : (s$8 = true, t$7 = c$6(n$4)), t$7 !== 0 && (o$6 -= t$7 * Math.pow(256, r - a$11 - 1));
979
- }
980
- return o$6;
981
- }, d$1 = (e$7) => {
982
- for (var r = e$7.length, o$6 = 0, s$8 = r - 1; s$8 > -1; s$8--) {
983
- var a$11 = e$7[s$8];
984
- a$11 !== 0 && (o$6 += a$11 * Math.pow(256, r - s$8 - 1));
985
- }
986
- return o$6;
987
- }, l$3 = (e$7) => (255 ^ e$7) & 255, c$6 = (e$7) => (255 ^ e$7) + 1 & 255;
964
+ var o = false;
965
+ e = e * -1;
966
+ for (var s = r.length; s > 1; s--) {
967
+ var a = e & 255;
968
+ e = Math.floor(e / 256), o ? r[s - 1] = l(a) : a === 0 ? r[s - 1] = 0 : (o = true, r[s - 1] = c$1(a));
969
+ }
970
+ }, h$2 = (e) => {
971
+ const r = e[0], o = r === 128 ? d$1(e.slice(1, e.length)) : r === 255 ? x$1(e) : null;
972
+ if (o === null) throw Error("invalid base256 encoding");
973
+ if (!Number.isSafeInteger(o)) throw Error("parsed number outside of javascript safe integer range");
974
+ return o;
975
+ }, x$1 = (e) => {
976
+ for (var r = e.length, o = 0, s = false, a = r - 1; a > -1; a--) {
977
+ var n = e[a], t;
978
+ s ? t = l(n) : n === 0 ? t = n : (s = true, t = c$1(n)), t !== 0 && (o -= t * Math.pow(256, r - a - 1));
979
+ }
980
+ return o;
981
+ }, d$1 = (e) => {
982
+ for (var r = e.length, o = 0, s = r - 1; s > -1; s--) {
983
+ var a = e[s];
984
+ a !== 0 && (o += a * Math.pow(256, r - s - 1));
985
+ }
986
+ return o;
987
+ }, l = (e) => (255 ^ e) & 255, c$1 = (e) => (255 ^ e) + 1 & 255;
988
988
  return f$3 = {
989
- encode: v$3,
989
+ encode: v,
990
990
  parse: h$2
991
991
  }, f$3;
992
992
  }
@@ -994,86 +994,86 @@ var k, w;
994
994
  function E() {
995
995
  if (w) return k;
996
996
  w = 1;
997
- const u$6 = n$3(), x$1 = path.posix, y$4 = w$1(), P$2 = Symbol("slurp"), a$11 = Symbol("type");
997
+ const u = n$3(), x$1 = path.posix, y = w$1(), P$2 = Symbol("slurp"), a = Symbol("type");
998
998
  class B$1 {
999
- constructor(e$7, t$7, i$8, h$2) {
1000
- this.cksumValid = false, this.needPax = false, this.nullBlock = false, this.block = null, this.path = null, this.mode = null, this.uid = null, this.gid = null, this.size = null, this.mtime = null, this.cksum = null, this[a$11] = "0", this.linkpath = null, this.uname = null, this.gname = null, this.devmaj = 0, this.devmin = 0, this.atime = null, this.ctime = null, Buffer.isBuffer(e$7) ? this.decode(e$7, t$7 || 0, i$8, h$2) : e$7 && this.set(e$7);
999
+ constructor(e, t, i, h$2) {
1000
+ this.cksumValid = false, this.needPax = false, this.nullBlock = false, this.block = null, this.path = null, this.mode = null, this.uid = null, this.gid = null, this.size = null, this.mtime = null, this.cksum = null, this[a] = "0", this.linkpath = null, this.uname = null, this.gname = null, this.devmaj = 0, this.devmin = 0, this.atime = null, this.ctime = null, Buffer.isBuffer(e) ? this.decode(e, t || 0, i, h$2) : e && this.set(e);
1001
1001
  }
1002
- decode(e$7, t$7, i$8, h$2) {
1003
- if (t$7 || (t$7 = 0), !e$7 || !(e$7.length >= t$7 + 512)) throw new Error("need 512 bytes for header");
1004
- if (this.path = d$1(e$7, t$7, 100), this.mode = r(e$7, t$7 + 100, 8), this.uid = r(e$7, t$7 + 108, 8), this.gid = r(e$7, t$7 + 116, 8), this.size = r(e$7, t$7 + 124, 12), this.mtime = o$6(e$7, t$7 + 136, 12), this.cksum = r(e$7, t$7 + 148, 12), this[P$2](i$8), this[P$2](h$2, true), this[a$11] = d$1(e$7, t$7 + 156, 1), this[a$11] === "" && (this[a$11] = "0"), this[a$11] === "0" && this.path.slice(-1) === "/" && (this[a$11] = "5"), this[a$11] === "5" && (this.size = 0), this.linkpath = d$1(e$7, t$7 + 157, 100), e$7.slice(t$7 + 257, t$7 + 265).toString() === "ustar\x0000") if (this.uname = d$1(e$7, t$7 + 265, 32), this.gname = d$1(e$7, t$7 + 297, 32), this.devmaj = r(e$7, t$7 + 329, 8), this.devmin = r(e$7, t$7 + 337, 8), e$7[t$7 + 475] !== 0) this.path = d$1(e$7, t$7 + 345, 155) + "/" + this.path;
1002
+ decode(e, t, i, h$2) {
1003
+ if (t || (t = 0), !e || !(e.length >= t + 512)) throw new Error("need 512 bytes for header");
1004
+ if (this.path = d$1(e, t, 100), this.mode = r(e, t + 100, 8), this.uid = r(e, t + 108, 8), this.gid = r(e, t + 116, 8), this.size = r(e, t + 124, 12), this.mtime = o(e, t + 136, 12), this.cksum = r(e, t + 148, 12), this[P$2](i), this[P$2](h$2, true), this[a] = d$1(e, t + 156, 1), this[a] === "" && (this[a] = "0"), this[a] === "0" && this.path.slice(-1) === "/" && (this[a] = "5"), this[a] === "5" && (this.size = 0), this.linkpath = d$1(e, t + 157, 100), e.slice(t + 257, t + 265).toString() === "ustar\x0000") if (this.uname = d$1(e, t + 265, 32), this.gname = d$1(e, t + 297, 32), this.devmaj = r(e, t + 329, 8), this.devmin = r(e, t + 337, 8), e[t + 475] !== 0) this.path = d$1(e, t + 345, 155) + "/" + this.path;
1005
1005
  else {
1006
- const n$4 = d$1(e$7, t$7 + 345, 130);
1007
- n$4 && (this.path = n$4 + "/" + this.path), this.atime = o$6(e$7, t$7 + 476, 12), this.ctime = o$6(e$7, t$7 + 488, 12);
1006
+ const n = d$1(e, t + 345, 130);
1007
+ n && (this.path = n + "/" + this.path), this.atime = o(e, t + 476, 12), this.ctime = o(e, t + 488, 12);
1008
1008
  }
1009
- let l$3 = 256;
1010
- for (let n$4 = t$7; n$4 < t$7 + 148; n$4++) l$3 += e$7[n$4];
1011
- for (let n$4 = t$7 + 156; n$4 < t$7 + 512; n$4++) l$3 += e$7[n$4];
1012
- this.cksumValid = l$3 === this.cksum, this.cksum === null && l$3 === 256 && (this.nullBlock = true);
1013
- }
1014
- [P$2](e$7, t$7) {
1015
- for (const i$8 in e$7) e$7[i$8] !== null && e$7[i$8] !== void 0 && !(t$7 && i$8 === "path") && (this[i$8] = e$7[i$8]);
1016
- }
1017
- encode(e$7, t$7) {
1018
- if (e$7 || (e$7 = this.block = Buffer.alloc(512), t$7 = 0), t$7 || (t$7 = 0), !(e$7.length >= t$7 + 512)) throw new Error("need 512 bytes for header");
1019
- const i$8 = this.ctime || this.atime ? 130 : 155, h$2 = L(this.path || "", i$8), l$3 = h$2[0], n$4 = h$2[1];
1020
- this.needPax = h$2[2], this.needPax = m$4(e$7, t$7, 100, l$3) || this.needPax, this.needPax = c$6(e$7, t$7 + 100, 8, this.mode) || this.needPax, this.needPax = c$6(e$7, t$7 + 108, 8, this.uid) || this.needPax, this.needPax = c$6(e$7, t$7 + 116, 8, this.gid) || this.needPax, this.needPax = c$6(e$7, t$7 + 124, 12, this.size) || this.needPax, this.needPax = g$1(e$7, t$7 + 136, 12, this.mtime) || this.needPax, e$7[t$7 + 156] = this[a$11].charCodeAt(0), this.needPax = m$4(e$7, t$7 + 157, 100, this.linkpath) || this.needPax, e$7.write("ustar\x0000", t$7 + 257, 8), this.needPax = m$4(e$7, t$7 + 265, 32, this.uname) || this.needPax, this.needPax = m$4(e$7, t$7 + 297, 32, this.gname) || this.needPax, this.needPax = c$6(e$7, t$7 + 329, 8, this.devmaj) || this.needPax, this.needPax = c$6(e$7, t$7 + 337, 8, this.devmin) || this.needPax, this.needPax = m$4(e$7, t$7 + 345, i$8, n$4) || this.needPax, e$7[t$7 + 475] !== 0 ? this.needPax = m$4(e$7, t$7 + 345, 155, n$4) || this.needPax : (this.needPax = m$4(e$7, t$7 + 345, 130, n$4) || this.needPax, this.needPax = g$1(e$7, t$7 + 476, 12, this.atime) || this.needPax, this.needPax = g$1(e$7, t$7 + 488, 12, this.ctime) || this.needPax);
1021
- let S$2 = 256;
1022
- for (let p$2 = t$7; p$2 < t$7 + 148; p$2++) S$2 += e$7[p$2];
1023
- for (let p$2 = t$7 + 156; p$2 < t$7 + 512; p$2++) S$2 += e$7[p$2];
1024
- return this.cksum = S$2, c$6(e$7, t$7 + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
1025
- }
1026
- set(e$7) {
1027
- for (const t$7 in e$7) e$7[t$7] !== null && e$7[t$7] !== void 0 && (this[t$7] = e$7[t$7]);
1009
+ let l = 256;
1010
+ for (let n = t; n < t + 148; n++) l += e[n];
1011
+ for (let n = t + 156; n < t + 512; n++) l += e[n];
1012
+ this.cksumValid = l === this.cksum, this.cksum === null && l === 256 && (this.nullBlock = true);
1013
+ }
1014
+ [P$2](e, t) {
1015
+ for (const i in e) e[i] !== null && e[i] !== void 0 && !(t && i === "path") && (this[i] = e[i]);
1016
+ }
1017
+ encode(e, t) {
1018
+ if (e || (e = this.block = Buffer.alloc(512), t = 0), t || (t = 0), !(e.length >= t + 512)) throw new Error("need 512 bytes for header");
1019
+ const i = this.ctime || this.atime ? 130 : 155, h$2 = L(this.path || "", i), l = h$2[0], n = h$2[1];
1020
+ this.needPax = h$2[2], this.needPax = m(e, t, 100, l) || this.needPax, this.needPax = c$1(e, t + 100, 8, this.mode) || this.needPax, this.needPax = c$1(e, t + 108, 8, this.uid) || this.needPax, this.needPax = c$1(e, t + 116, 8, this.gid) || this.needPax, this.needPax = c$1(e, t + 124, 12, this.size) || this.needPax, this.needPax = g$1(e, t + 136, 12, this.mtime) || this.needPax, e[t + 156] = this[a].charCodeAt(0), this.needPax = m(e, t + 157, 100, this.linkpath) || this.needPax, e.write("ustar\x0000", t + 257, 8), this.needPax = m(e, t + 265, 32, this.uname) || this.needPax, this.needPax = m(e, t + 297, 32, this.gname) || this.needPax, this.needPax = c$1(e, t + 329, 8, this.devmaj) || this.needPax, this.needPax = c$1(e, t + 337, 8, this.devmin) || this.needPax, this.needPax = m(e, t + 345, i, n) || this.needPax, e[t + 475] !== 0 ? this.needPax = m(e, t + 345, 155, n) || this.needPax : (this.needPax = m(e, t + 345, 130, n) || this.needPax, this.needPax = g$1(e, t + 476, 12, this.atime) || this.needPax, this.needPax = g$1(e, t + 488, 12, this.ctime) || this.needPax);
1021
+ let S = 256;
1022
+ for (let p = t; p < t + 148; p++) S += e[p];
1023
+ for (let p = t + 156; p < t + 512; p++) S += e[p];
1024
+ return this.cksum = S, c$1(e, t + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
1025
+ }
1026
+ set(e) {
1027
+ for (const t in e) e[t] !== null && e[t] !== void 0 && (this[t] = e[t]);
1028
1028
  }
1029
1029
  get type() {
1030
- return u$6.name.get(this[a$11]) || this[a$11];
1030
+ return u.name.get(this[a]) || this[a];
1031
1031
  }
1032
1032
  get typeKey() {
1033
- return this[a$11];
1033
+ return this[a];
1034
1034
  }
1035
- set type(e$7) {
1036
- u$6.code.has(e$7) ? this[a$11] = u$6.code.get(e$7) : this[a$11] = e$7;
1035
+ set type(e) {
1036
+ u.code.has(e) ? this[a] = u.code.get(e) : this[a] = e;
1037
1037
  }
1038
1038
  }
1039
- const L = (s$8, e$7) => {
1040
- let i$8 = s$8, h$2 = "", l$3;
1041
- const n$4 = x$1.parse(s$8).root || ".";
1042
- if (Buffer.byteLength(i$8) < 100) l$3 = [
1043
- i$8,
1039
+ const L = (s, e) => {
1040
+ let i = s, h$2 = "", l;
1041
+ const n = x$1.parse(s).root || ".";
1042
+ if (Buffer.byteLength(i) < 100) l = [
1043
+ i,
1044
1044
  h$2,
1045
1045
  false
1046
1046
  ];
1047
1047
  else {
1048
- h$2 = x$1.dirname(i$8), i$8 = x$1.basename(i$8);
1048
+ h$2 = x$1.dirname(i), i = x$1.basename(i);
1049
1049
  do
1050
- Buffer.byteLength(i$8) <= 100 && Buffer.byteLength(h$2) <= e$7 ? l$3 = [
1051
- i$8,
1050
+ Buffer.byteLength(i) <= 100 && Buffer.byteLength(h$2) <= e ? l = [
1051
+ i,
1052
1052
  h$2,
1053
1053
  false
1054
- ] : Buffer.byteLength(i$8) > 100 && Buffer.byteLength(h$2) <= e$7 ? l$3 = [
1055
- i$8.slice(0, 99),
1054
+ ] : Buffer.byteLength(i) > 100 && Buffer.byteLength(h$2) <= e ? l = [
1055
+ i.slice(0, 99),
1056
1056
  h$2,
1057
1057
  true
1058
- ] : (i$8 = x$1.join(x$1.basename(h$2), i$8), h$2 = x$1.dirname(h$2));
1059
- while (h$2 !== n$4 && !l$3);
1060
- l$3 || (l$3 = [
1061
- s$8.slice(0, 99),
1058
+ ] : (i = x$1.join(x$1.basename(h$2), i), h$2 = x$1.dirname(h$2));
1059
+ while (h$2 !== n && !l);
1060
+ l || (l = [
1061
+ s.slice(0, 99),
1062
1062
  "",
1063
1063
  true
1064
1064
  ]);
1065
1065
  }
1066
- return l$3;
1067
- }, d$1 = (s$8, e$7, t$7) => s$8.slice(e$7, e$7 + t$7).toString("utf8").replace(/\0.*/, ""), o$6 = (s$8, e$7, t$7) => N$1(r(s$8, e$7, t$7)), N$1 = (s$8) => s$8 === null ? null : /* @__PURE__ */ new Date(s$8 * 1e3), r = (s$8, e$7, t$7) => s$8[e$7] & 128 ? y$4.parse(s$8.slice(e$7, e$7 + t$7)) : j$3(s$8, e$7, t$7), q$2 = (s$8) => isNaN(s$8) ? null : s$8, j$3 = (s$8, e$7, t$7) => q$2(parseInt(s$8.slice(e$7, e$7 + t$7).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v$3 = {
1066
+ return l;
1067
+ }, d$1 = (s, e, t) => s.slice(e, e + t).toString("utf8").replace(/\0.*/, ""), o = (s, e, t) => N$1(r(s, e, t)), N$1 = (s) => s === null ? null : /* @__PURE__ */ new Date(s * 1e3), r = (s, e, t) => s[e] & 128 ? y.parse(s.slice(e, e + t)) : j(s, e, t), q = (s) => isNaN(s) ? null : s, j = (s, e, t) => q(parseInt(s.slice(e, e + t).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v = {
1068
1068
  12: 8589934591,
1069
1069
  8: 2097151
1070
- }, c$6 = (s$8, e$7, t$7, i$8) => i$8 === null ? false : i$8 > v$3[t$7] || i$8 < 0 ? (y$4.encode(i$8, s$8.slice(e$7, e$7 + t$7)), true) : ($(s$8, e$7, t$7, i$8), false), $ = (s$8, e$7, t$7, i$8) => s$8.write(_$2(i$8, t$7), e$7, t$7, "ascii"), _$2 = (s$8, e$7) => z$2(Math.floor(s$8).toString(8), e$7), z$2 = (s$8, e$7) => (s$8.length === e$7 - 1 ? s$8 : new Array(e$7 - s$8.length - 1).join("0") + s$8 + " ") + "\0", g$1 = (s$8, e$7, t$7, i$8) => i$8 === null ? false : c$6(s$8, e$7, t$7, i$8.getTime() / 1e3), A$1 = new Array(156).join("\0"), m$4 = (s$8, e$7, t$7, i$8) => i$8 === null ? false : (s$8.write(i$8 + A$1, e$7, t$7, "utf8"), i$8.length !== Buffer.byteLength(i$8) || i$8.length > t$7);
1070
+ }, c$1 = (s, e, t, i) => i === null ? false : i > v[t] || i < 0 ? (y.encode(i, s.slice(e, e + t)), true) : ($(s, e, t, i), false), $ = (s, e, t, i) => s.write(_(i, t), e, t, "ascii"), _ = (s, e) => z(Math.floor(s).toString(8), e), z = (s, e) => (s.length === e - 1 ? s : new Array(e - s.length - 1).join("0") + s + " ") + "\0", g$1 = (s, e, t, i) => i === null ? false : c$1(s, e, t, i.getTime() / 1e3), A$1 = new Array(156).join("\0"), m = (s, e, t, i) => i === null ? false : (s.write(i + A$1, e, t, "utf8"), i.length !== Buffer.byteLength(i) || i.length > t);
1071
1071
  return k = B$1, k;
1072
1072
  }
1073
1073
  var e$3, t$3;
1074
1074
  function i$4() {
1075
- return t$3 || (t$3 = 1, e$3 = function(o$6) {
1076
- o$6.prototype[Symbol.iterator] = function* () {
1075
+ return t$3 || (t$3 = 1, e$3 = function(o) {
1076
+ o.prototype[Symbol.iterator] = function* () {
1077
1077
  for (let r = this.head; r; r = r.next) yield r.value;
1078
1078
  };
1079
1079
  }), e$3;
@@ -1081,130 +1081,130 @@ function i$4() {
1081
1081
  var u$4, a$8;
1082
1082
  function c$3() {
1083
1083
  if (a$8) return u$4;
1084
- a$8 = 1, u$4 = r, r.Node = s$8, r.create = r;
1085
- function r(t$7) {
1086
- var i$8 = this;
1087
- if (i$8 instanceof r || (i$8 = new r()), i$8.tail = null, i$8.head = null, i$8.length = 0, t$7 && typeof t$7.forEach == "function") t$7.forEach(function(n$4) {
1088
- i$8.push(n$4);
1084
+ a$8 = 1, u$4 = r, r.Node = s, r.create = r;
1085
+ function r(t) {
1086
+ var i = this;
1087
+ if (i instanceof r || (i = new r()), i.tail = null, i.head = null, i.length = 0, t && typeof t.forEach == "function") t.forEach(function(n) {
1088
+ i.push(n);
1089
1089
  });
1090
- else if (arguments.length > 0) for (var e$7 = 0, h$2 = arguments.length; e$7 < h$2; e$7++) i$8.push(arguments[e$7]);
1091
- return i$8;
1092
- }
1093
- r.prototype.removeNode = function(t$7) {
1094
- if (t$7.list !== this) throw new Error("removing node which does not belong to this list");
1095
- var i$8 = t$7.next, e$7 = t$7.prev;
1096
- return i$8 && (i$8.prev = e$7), e$7 && (e$7.next = i$8), t$7 === this.head && (this.head = i$8), t$7 === this.tail && (this.tail = e$7), t$7.list.length--, t$7.next = null, t$7.prev = null, t$7.list = null, i$8;
1097
- }, r.prototype.unshiftNode = function(t$7) {
1098
- if (t$7 !== this.head) {
1099
- t$7.list && t$7.list.removeNode(t$7);
1100
- var i$8 = this.head;
1101
- t$7.list = this, t$7.next = i$8, i$8 && (i$8.prev = t$7), this.head = t$7, this.tail || (this.tail = t$7), this.length++;
1102
- }
1103
- }, r.prototype.pushNode = function(t$7) {
1104
- if (t$7 !== this.tail) {
1105
- t$7.list && t$7.list.removeNode(t$7);
1106
- var i$8 = this.tail;
1107
- t$7.list = this, t$7.prev = i$8, i$8 && (i$8.next = t$7), this.tail = t$7, this.head || (this.head = t$7), this.length++;
1090
+ else if (arguments.length > 0) for (var e = 0, h$2 = arguments.length; e < h$2; e++) i.push(arguments[e]);
1091
+ return i;
1092
+ }
1093
+ r.prototype.removeNode = function(t) {
1094
+ if (t.list !== this) throw new Error("removing node which does not belong to this list");
1095
+ var i = t.next, e = t.prev;
1096
+ return i && (i.prev = e), e && (e.next = i), t === this.head && (this.head = i), t === this.tail && (this.tail = e), t.list.length--, t.next = null, t.prev = null, t.list = null, i;
1097
+ }, r.prototype.unshiftNode = function(t) {
1098
+ if (t !== this.head) {
1099
+ t.list && t.list.removeNode(t);
1100
+ var i = this.head;
1101
+ t.list = this, t.next = i, i && (i.prev = t), this.head = t, this.tail || (this.tail = t), this.length++;
1102
+ }
1103
+ }, r.prototype.pushNode = function(t) {
1104
+ if (t !== this.tail) {
1105
+ t.list && t.list.removeNode(t);
1106
+ var i = this.tail;
1107
+ t.list = this, t.prev = i, i && (i.next = t), this.tail = t, this.head || (this.head = t), this.length++;
1108
1108
  }
1109
1109
  }, r.prototype.push = function() {
1110
- for (var t$7 = 0, i$8 = arguments.length; t$7 < i$8; t$7++) f$5(this, arguments[t$7]);
1110
+ for (var t = 0, i = arguments.length; t < i; t++) f(this, arguments[t]);
1111
1111
  return this.length;
1112
1112
  }, r.prototype.unshift = function() {
1113
- for (var t$7 = 0, i$8 = arguments.length; t$7 < i$8; t$7++) o$6(this, arguments[t$7]);
1113
+ for (var t = 0, i = arguments.length; t < i; t++) o(this, arguments[t]);
1114
1114
  return this.length;
1115
1115
  }, r.prototype.pop = function() {
1116
1116
  if (this.tail) {
1117
- var t$7 = this.tail.value;
1118
- return this.tail = this.tail.prev, this.tail ? this.tail.next = null : this.head = null, this.length--, t$7;
1117
+ var t = this.tail.value;
1118
+ return this.tail = this.tail.prev, this.tail ? this.tail.next = null : this.head = null, this.length--, t;
1119
1119
  }
1120
1120
  }, r.prototype.shift = function() {
1121
1121
  if (this.head) {
1122
- var t$7 = this.head.value;
1123
- return this.head = this.head.next, this.head ? this.head.prev = null : this.tail = null, this.length--, t$7;
1124
- }
1125
- }, r.prototype.forEach = function(t$7, i$8) {
1126
- i$8 = i$8 || this;
1127
- for (var e$7 = this.head, h$2 = 0; e$7 !== null; h$2++) t$7.call(i$8, e$7.value, h$2, this), e$7 = e$7.next;
1128
- }, r.prototype.forEachReverse = function(t$7, i$8) {
1129
- i$8 = i$8 || this;
1130
- for (var e$7 = this.tail, h$2 = this.length - 1; e$7 !== null; h$2--) t$7.call(i$8, e$7.value, h$2, this), e$7 = e$7.prev;
1131
- }, r.prototype.get = function(t$7) {
1132
- for (var i$8 = 0, e$7 = this.head; e$7 !== null && i$8 < t$7; i$8++) e$7 = e$7.next;
1133
- if (i$8 === t$7 && e$7 !== null) return e$7.value;
1134
- }, r.prototype.getReverse = function(t$7) {
1135
- for (var i$8 = 0, e$7 = this.tail; e$7 !== null && i$8 < t$7; i$8++) e$7 = e$7.prev;
1136
- if (i$8 === t$7 && e$7 !== null) return e$7.value;
1137
- }, r.prototype.map = function(t$7, i$8) {
1138
- i$8 = i$8 || this;
1139
- for (var e$7 = new r(), h$2 = this.head; h$2 !== null;) e$7.push(t$7.call(i$8, h$2.value, this)), h$2 = h$2.next;
1140
- return e$7;
1141
- }, r.prototype.mapReverse = function(t$7, i$8) {
1142
- i$8 = i$8 || this;
1143
- for (var e$7 = new r(), h$2 = this.tail; h$2 !== null;) e$7.push(t$7.call(i$8, h$2.value, this)), h$2 = h$2.prev;
1144
- return e$7;
1145
- }, r.prototype.reduce = function(t$7, i$8) {
1146
- var e$7, h$2 = this.head;
1147
- if (arguments.length > 1) e$7 = i$8;
1148
- else if (this.head) h$2 = this.head.next, e$7 = this.head.value;
1122
+ var t = this.head.value;
1123
+ return this.head = this.head.next, this.head ? this.head.prev = null : this.tail = null, this.length--, t;
1124
+ }
1125
+ }, r.prototype.forEach = function(t, i) {
1126
+ i = i || this;
1127
+ for (var e = this.head, h$2 = 0; e !== null; h$2++) t.call(i, e.value, h$2, this), e = e.next;
1128
+ }, r.prototype.forEachReverse = function(t, i) {
1129
+ i = i || this;
1130
+ for (var e = this.tail, h$2 = this.length - 1; e !== null; h$2--) t.call(i, e.value, h$2, this), e = e.prev;
1131
+ }, r.prototype.get = function(t) {
1132
+ for (var i = 0, e = this.head; e !== null && i < t; i++) e = e.next;
1133
+ if (i === t && e !== null) return e.value;
1134
+ }, r.prototype.getReverse = function(t) {
1135
+ for (var i = 0, e = this.tail; e !== null && i < t; i++) e = e.prev;
1136
+ if (i === t && e !== null) return e.value;
1137
+ }, r.prototype.map = function(t, i) {
1138
+ i = i || this;
1139
+ for (var e = new r(), h$2 = this.head; h$2 !== null;) e.push(t.call(i, h$2.value, this)), h$2 = h$2.next;
1140
+ return e;
1141
+ }, r.prototype.mapReverse = function(t, i) {
1142
+ i = i || this;
1143
+ for (var e = new r(), h$2 = this.tail; h$2 !== null;) e.push(t.call(i, h$2.value, this)), h$2 = h$2.prev;
1144
+ return e;
1145
+ }, r.prototype.reduce = function(t, i) {
1146
+ var e, h$2 = this.head;
1147
+ if (arguments.length > 1) e = i;
1148
+ else if (this.head) h$2 = this.head.next, e = this.head.value;
1149
1149
  else throw new TypeError("Reduce of empty list with no initial value");
1150
- for (var n$4 = 0; h$2 !== null; n$4++) e$7 = t$7(e$7, h$2.value, n$4), h$2 = h$2.next;
1151
- return e$7;
1152
- }, r.prototype.reduceReverse = function(t$7, i$8) {
1153
- var e$7, h$2 = this.tail;
1154
- if (arguments.length > 1) e$7 = i$8;
1155
- else if (this.tail) h$2 = this.tail.prev, e$7 = this.tail.value;
1150
+ for (var n = 0; h$2 !== null; n++) e = t(e, h$2.value, n), h$2 = h$2.next;
1151
+ return e;
1152
+ }, r.prototype.reduceReverse = function(t, i) {
1153
+ var e, h$2 = this.tail;
1154
+ if (arguments.length > 1) e = i;
1155
+ else if (this.tail) h$2 = this.tail.prev, e = this.tail.value;
1156
1156
  else throw new TypeError("Reduce of empty list with no initial value");
1157
- for (var n$4 = this.length - 1; h$2 !== null; n$4--) e$7 = t$7(e$7, h$2.value, n$4), h$2 = h$2.prev;
1158
- return e$7;
1157
+ for (var n = this.length - 1; h$2 !== null; n--) e = t(e, h$2.value, n), h$2 = h$2.prev;
1158
+ return e;
1159
1159
  }, r.prototype.toArray = function() {
1160
- for (var t$7 = new Array(this.length), i$8 = 0, e$7 = this.head; e$7 !== null; i$8++) t$7[i$8] = e$7.value, e$7 = e$7.next;
1161
- return t$7;
1160
+ for (var t = new Array(this.length), i = 0, e = this.head; e !== null; i++) t[i] = e.value, e = e.next;
1161
+ return t;
1162
1162
  }, r.prototype.toArrayReverse = function() {
1163
- for (var t$7 = new Array(this.length), i$8 = 0, e$7 = this.tail; e$7 !== null; i$8++) t$7[i$8] = e$7.value, e$7 = e$7.prev;
1164
- return t$7;
1165
- }, r.prototype.slice = function(t$7, i$8) {
1166
- i$8 = i$8 || this.length, i$8 < 0 && (i$8 += this.length), t$7 = t$7 || 0, t$7 < 0 && (t$7 += this.length);
1167
- var e$7 = new r();
1168
- if (i$8 < t$7 || i$8 < 0) return e$7;
1169
- t$7 < 0 && (t$7 = 0), i$8 > this.length && (i$8 = this.length);
1170
- for (var h$2 = 0, n$4 = this.head; n$4 !== null && h$2 < t$7; h$2++) n$4 = n$4.next;
1171
- for (; n$4 !== null && h$2 < i$8; h$2++, n$4 = n$4.next) e$7.push(n$4.value);
1172
- return e$7;
1173
- }, r.prototype.sliceReverse = function(t$7, i$8) {
1174
- i$8 = i$8 || this.length, i$8 < 0 && (i$8 += this.length), t$7 = t$7 || 0, t$7 < 0 && (t$7 += this.length);
1175
- var e$7 = new r();
1176
- if (i$8 < t$7 || i$8 < 0) return e$7;
1177
- t$7 < 0 && (t$7 = 0), i$8 > this.length && (i$8 = this.length);
1178
- for (var h$2 = this.length, n$4 = this.tail; n$4 !== null && h$2 > i$8; h$2--) n$4 = n$4.prev;
1179
- for (; n$4 !== null && h$2 > t$7; h$2--, n$4 = n$4.prev) e$7.push(n$4.value);
1180
- return e$7;
1181
- }, r.prototype.splice = function(t$7, i$8, ...e$7) {
1182
- t$7 > this.length && (t$7 = this.length - 1), t$7 < 0 && (t$7 = this.length + t$7);
1183
- for (var h$2 = 0, n$4 = this.head; n$4 !== null && h$2 < t$7; h$2++) n$4 = n$4.next;
1184
- for (var l$3 = [], h$2 = 0; n$4 && h$2 < i$8; h$2++) l$3.push(n$4.value), n$4 = this.removeNode(n$4);
1185
- n$4 === null && (n$4 = this.tail), n$4 !== this.head && n$4 !== this.tail && (n$4 = n$4.prev);
1186
- for (var h$2 = 0; h$2 < e$7.length; h$2++) n$4 = v$3(this, n$4, e$7[h$2]);
1187
- return l$3;
1163
+ for (var t = new Array(this.length), i = 0, e = this.tail; e !== null; i++) t[i] = e.value, e = e.prev;
1164
+ return t;
1165
+ }, r.prototype.slice = function(t, i) {
1166
+ i = i || this.length, i < 0 && (i += this.length), t = t || 0, t < 0 && (t += this.length);
1167
+ var e = new r();
1168
+ if (i < t || i < 0) return e;
1169
+ t < 0 && (t = 0), i > this.length && (i = this.length);
1170
+ for (var h$2 = 0, n = this.head; n !== null && h$2 < t; h$2++) n = n.next;
1171
+ for (; n !== null && h$2 < i; h$2++, n = n.next) e.push(n.value);
1172
+ return e;
1173
+ }, r.prototype.sliceReverse = function(t, i) {
1174
+ i = i || this.length, i < 0 && (i += this.length), t = t || 0, t < 0 && (t += this.length);
1175
+ var e = new r();
1176
+ if (i < t || i < 0) return e;
1177
+ t < 0 && (t = 0), i > this.length && (i = this.length);
1178
+ for (var h$2 = this.length, n = this.tail; n !== null && h$2 > i; h$2--) n = n.prev;
1179
+ for (; n !== null && h$2 > t; h$2--, n = n.prev) e.push(n.value);
1180
+ return e;
1181
+ }, r.prototype.splice = function(t, i, ...e) {
1182
+ t > this.length && (t = this.length - 1), t < 0 && (t = this.length + t);
1183
+ for (var h$2 = 0, n = this.head; n !== null && h$2 < t; h$2++) n = n.next;
1184
+ for (var l = [], h$2 = 0; n && h$2 < i; h$2++) l.push(n.value), n = this.removeNode(n);
1185
+ n === null && (n = this.tail), n !== this.head && n !== this.tail && (n = n.prev);
1186
+ for (var h$2 = 0; h$2 < e.length; h$2++) n = v(this, n, e[h$2]);
1187
+ return l;
1188
1188
  }, r.prototype.reverse = function() {
1189
- for (var t$7 = this.head, i$8 = this.tail, e$7 = t$7; e$7 !== null; e$7 = e$7.prev) {
1190
- var h$2 = e$7.prev;
1191
- e$7.prev = e$7.next, e$7.next = h$2;
1189
+ for (var t = this.head, i = this.tail, e = t; e !== null; e = e.prev) {
1190
+ var h$2 = e.prev;
1191
+ e.prev = e.next, e.next = h$2;
1192
1192
  }
1193
- return this.head = i$8, this.tail = t$7, this;
1193
+ return this.head = i, this.tail = t, this;
1194
1194
  };
1195
- function v$3(t$7, i$8, e$7) {
1196
- var h$2 = i$8 === t$7.head ? new s$8(e$7, null, i$8, t$7) : new s$8(e$7, i$8, i$8.next, t$7);
1197
- return h$2.next === null && (t$7.tail = h$2), h$2.prev === null && (t$7.head = h$2), t$7.length++, h$2;
1195
+ function v(t, i, e) {
1196
+ var h$2 = i === t.head ? new s(e, null, i, t) : new s(e, i, i.next, t);
1197
+ return h$2.next === null && (t.tail = h$2), h$2.prev === null && (t.head = h$2), t.length++, h$2;
1198
1198
  }
1199
- function f$5(t$7, i$8) {
1200
- t$7.tail = new s$8(i$8, t$7.tail, null, t$7), t$7.head || (t$7.head = t$7.tail), t$7.length++;
1199
+ function f(t, i) {
1200
+ t.tail = new s(i, t.tail, null, t), t.head || (t.head = t.tail), t.length++;
1201
1201
  }
1202
- function o$6(t$7, i$8) {
1203
- t$7.head = new s$8(i$8, null, t$7.head, t$7), t$7.tail || (t$7.tail = t$7.head), t$7.length++;
1202
+ function o(t, i) {
1203
+ t.head = new s(i, null, t.head, t), t.tail || (t.tail = t.head), t.length++;
1204
1204
  }
1205
- function s$8(t$7, i$8, e$7, h$2) {
1206
- if (!(this instanceof s$8)) return new s$8(t$7, i$8, e$7, h$2);
1207
- this.list = h$2, this.value = t$7, i$8 ? (i$8.next = this, this.prev = i$8) : this.prev = null, e$7 ? (e$7.prev = this, this.next = e$7) : this.next = null;
1205
+ function s(t, i, e, h$2) {
1206
+ if (!(this instanceof s)) return new s(t, i, e, h$2);
1207
+ this.list = h$2, this.value = t, i ? (i.next = this, this.prev = i) : this.prev = null, e ? (e.prev = this, this.next = e) : this.next = null;
1208
1208
  }
1209
1209
  try {
1210
1210
  i$4()(r);
@@ -1216,13 +1216,13 @@ var X$1;
1216
1216
  function ft() {
1217
1217
  if (X$1) return s$5;
1218
1218
  X$1 = 1;
1219
- const H$3 = typeof process == "object" && process ? process : {
1219
+ const H = typeof process == "object" && process ? process : {
1220
1220
  stdout: null,
1221
1221
  stderr: null
1222
- }, Z = nt, q$2 = ot, G$2 = ht.StringDecoder, m$4 = Symbol("EOF"), d$1 = Symbol("maybeEmitEnd"), y$4 = Symbol("emittedEnd"), R$3 = Symbol("emittingEnd"), g$1 = Symbol("emittedError"), B$1 = Symbol("closed"), Y = Symbol("read"), T$2 = Symbol("flush"), $ = Symbol("flushChunk"), f$5 = Symbol("encoding"), c$6 = Symbol("decoder"), M$1 = Symbol("flowing"), S$2 = Symbol("paused"), b$1 = Symbol("resume"), i$8 = Symbol("buffer"), a$11 = Symbol("pipes"), n$4 = Symbol("bufferLength"), j$3 = Symbol("bufferPush"), I$1 = Symbol("bufferShift"), o$6 = Symbol("objectMode"), r = Symbol("destroyed"), P$2 = Symbol("error"), x$1 = Symbol("emitData"), V$1 = Symbol("emitEnd"), N$1 = Symbol("emitEnd2"), p$2 = Symbol("async"), _$2 = Symbol("abort"), O$4 = Symbol("aborted"), E$2 = Symbol("signal"), w$3 = (h$2) => Promise.resolve().then(h$2), J$1 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K$1 = J$1 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W$1 = J$1 && Symbol.iterator || Symbol("iterator not implemented"), k$2 = (h$2) => h$2 === "end" || h$2 === "finish" || h$2 === "prefinish", tt$1 = (h$2) => h$2 instanceof ArrayBuffer || typeof h$2 == "object" && h$2.constructor && h$2.constructor.name === "ArrayBuffer" && h$2.byteLength >= 0, et = (h$2) => !Buffer.isBuffer(h$2) && ArrayBuffer.isView(h$2);
1223
- class z$2 {
1224
- constructor(t$7, e$7, s$8) {
1225
- this.src = t$7, this.dest = e$7, this.opts = s$8, this.ondrain = () => t$7[b$1](), e$7.on("drain", this.ondrain);
1222
+ }, Z = nt, q = ot, G = ht.StringDecoder, m = Symbol("EOF"), d$1 = Symbol("maybeEmitEnd"), y = Symbol("emittedEnd"), R = Symbol("emittingEnd"), g$1 = Symbol("emittedError"), B$1 = Symbol("closed"), Y = Symbol("read"), T = Symbol("flush"), $ = Symbol("flushChunk"), f = Symbol("encoding"), c$1 = Symbol("decoder"), M$1 = Symbol("flowing"), S = Symbol("paused"), b$1 = Symbol("resume"), i = Symbol("buffer"), a = Symbol("pipes"), n = Symbol("bufferLength"), j = Symbol("bufferPush"), I$1 = Symbol("bufferShift"), o = Symbol("objectMode"), r = Symbol("destroyed"), P$2 = Symbol("error"), x$1 = Symbol("emitData"), V$1 = Symbol("emitEnd"), N$1 = Symbol("emitEnd2"), p = Symbol("async"), _ = Symbol("abort"), O = Symbol("aborted"), E = Symbol("signal"), w = (h$2) => Promise.resolve().then(h$2), J = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K$1 = J && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W$1 = J && Symbol.iterator || Symbol("iterator not implemented"), k = (h$2) => h$2 === "end" || h$2 === "finish" || h$2 === "prefinish", tt = (h$2) => h$2 instanceof ArrayBuffer || typeof h$2 == "object" && h$2.constructor && h$2.constructor.name === "ArrayBuffer" && h$2.byteLength >= 0, et = (h$2) => !Buffer.isBuffer(h$2) && ArrayBuffer.isView(h$2);
1223
+ class z {
1224
+ constructor(t, e, s) {
1225
+ this.src = t, this.dest = e, this.opts = s, this.ondrain = () => t[b$1](), e.on("drain", this.ondrain);
1226
1226
  }
1227
1227
  unpipe() {
1228
1228
  this.dest.removeListener("drain", this.ondrain);
@@ -1232,80 +1232,80 @@ function ft() {
1232
1232
  this.unpipe(), this.opts.end && this.dest.end();
1233
1233
  }
1234
1234
  }
1235
- class st extends z$2 {
1235
+ class st extends z {
1236
1236
  unpipe() {
1237
1237
  this.src.removeListener("error", this.proxyErrors), super.unpipe();
1238
1238
  }
1239
- constructor(t$7, e$7, s$8) {
1240
- super(t$7, e$7, s$8), this.proxyErrors = (l$3) => e$7.emit("error", l$3), t$7.on("error", this.proxyErrors);
1239
+ constructor(t, e, s) {
1240
+ super(t, e, s), this.proxyErrors = (l) => e.emit("error", l), t.on("error", this.proxyErrors);
1241
1241
  }
1242
1242
  }
1243
- class F$4 extends q$2 {
1244
- constructor(t$7) {
1245
- super(), this[M$1] = false, this[S$2] = false, this[a$11] = [], this[i$8] = [], this[o$6] = t$7 && t$7.objectMode || false, this[o$6] ? this[f$5] = null : this[f$5] = t$7 && t$7.encoding || null, this[f$5] === "buffer" && (this[f$5] = null), this[p$2] = t$7 && !!t$7.async || false, this[c$6] = this[f$5] ? new G$2(this[f$5]) : null, this[m$4] = false, this[y$4] = false, this[R$3] = false, this[B$1] = false, this[g$1] = null, this.writable = true, this.readable = true, this[n$4] = 0, this[r] = false, t$7 && t$7.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i$8] }), t$7 && t$7.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a$11] }), this[E$2] = t$7 && t$7.signal, this[O$4] = false, this[E$2] && (this[E$2].addEventListener("abort", () => this[_$2]()), this[E$2].aborted && this[_$2]());
1243
+ class F extends q {
1244
+ constructor(t) {
1245
+ super(), this[M$1] = false, this[S] = false, this[a] = [], this[i] = [], this[o] = t && t.objectMode || false, this[o] ? this[f] = null : this[f] = t && t.encoding || null, this[f] === "buffer" && (this[f] = null), this[p] = t && !!t.async || false, this[c$1] = this[f] ? new G(this[f]) : null, this[m] = false, this[y] = false, this[R] = false, this[B$1] = false, this[g$1] = null, this.writable = true, this.readable = true, this[n] = 0, this[r] = false, t && t.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i] }), t && t.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a] }), this[E] = t && t.signal, this[O] = false, this[E] && (this[E].addEventListener("abort", () => this[_]()), this[E].aborted && this[_]());
1246
1246
  }
1247
1247
  get bufferLength() {
1248
- return this[n$4];
1248
+ return this[n];
1249
1249
  }
1250
1250
  get encoding() {
1251
- return this[f$5];
1251
+ return this[f];
1252
1252
  }
1253
- set encoding(t$7) {
1254
- if (this[o$6]) throw new Error("cannot set encoding in objectMode");
1255
- if (this[f$5] && t$7 !== this[f$5] && (this[c$6] && this[c$6].lastNeed || this[n$4])) throw new Error("cannot change encoding");
1256
- this[f$5] !== t$7 && (this[c$6] = t$7 ? new G$2(t$7) : null, this[i$8].length && (this[i$8] = this[i$8].map((e$7) => this[c$6].write(e$7)))), this[f$5] = t$7;
1253
+ set encoding(t) {
1254
+ if (this[o]) throw new Error("cannot set encoding in objectMode");
1255
+ if (this[f] && t !== this[f] && (this[c$1] && this[c$1].lastNeed || this[n])) throw new Error("cannot change encoding");
1256
+ this[f] !== t && (this[c$1] = t ? new G(t) : null, this[i].length && (this[i] = this[i].map((e) => this[c$1].write(e)))), this[f] = t;
1257
1257
  }
1258
- setEncoding(t$7) {
1259
- this.encoding = t$7;
1258
+ setEncoding(t) {
1259
+ this.encoding = t;
1260
1260
  }
1261
1261
  get objectMode() {
1262
- return this[o$6];
1262
+ return this[o];
1263
1263
  }
1264
- set objectMode(t$7) {
1265
- this[o$6] = this[o$6] || !!t$7;
1264
+ set objectMode(t) {
1265
+ this[o] = this[o] || !!t;
1266
1266
  }
1267
1267
  get async() {
1268
- return this[p$2];
1268
+ return this[p];
1269
1269
  }
1270
- set async(t$7) {
1271
- this[p$2] = this[p$2] || !!t$7;
1270
+ set async(t) {
1271
+ this[p] = this[p] || !!t;
1272
1272
  }
1273
- [_$2]() {
1274
- this[O$4] = true, this.emit("abort", this[E$2].reason), this.destroy(this[E$2].reason);
1273
+ [_]() {
1274
+ this[O] = true, this.emit("abort", this[E].reason), this.destroy(this[E].reason);
1275
1275
  }
1276
1276
  get aborted() {
1277
- return this[O$4];
1277
+ return this[O];
1278
1278
  }
1279
- set aborted(t$7) {}
1280
- write(t$7, e$7, s$8) {
1281
- if (this[O$4]) return false;
1282
- if (this[m$4]) throw new Error("write after end");
1279
+ set aborted(t) {}
1280
+ write(t, e, s) {
1281
+ if (this[O]) return false;
1282
+ if (this[m]) throw new Error("write after end");
1283
1283
  if (this[r]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
1284
- typeof e$7 == "function" && (s$8 = e$7, e$7 = "utf8"), e$7 || (e$7 = "utf8");
1285
- const l$3 = this[p$2] ? w$3 : (u$6) => u$6();
1286
- return !this[o$6] && !Buffer.isBuffer(t$7) && (et(t$7) ? t$7 = Buffer.from(t$7.buffer, t$7.byteOffset, t$7.byteLength) : tt$1(t$7) ? t$7 = Buffer.from(t$7) : typeof t$7 != "string" && (this.objectMode = true)), this[o$6] ? (this.flowing && this[n$4] !== 0 && this[T$2](true), this.flowing ? this.emit("data", t$7) : this[j$3](t$7), this[n$4] !== 0 && this.emit("readable"), s$8 && l$3(s$8), this.flowing) : t$7.length ? (typeof t$7 == "string" && !(e$7 === this[f$5] && !this[c$6].lastNeed) && (t$7 = Buffer.from(t$7, e$7)), Buffer.isBuffer(t$7) && this[f$5] && (t$7 = this[c$6].write(t$7)), this.flowing && this[n$4] !== 0 && this[T$2](true), this.flowing ? this.emit("data", t$7) : this[j$3](t$7), this[n$4] !== 0 && this.emit("readable"), s$8 && l$3(s$8), this.flowing) : (this[n$4] !== 0 && this.emit("readable"), s$8 && l$3(s$8), this.flowing);
1284
+ typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
1285
+ const l = this[p] ? w : (u) => u();
1286
+ return !this[o] && !Buffer.isBuffer(t) && (et(t) ? t = Buffer.from(t.buffer, t.byteOffset, t.byteLength) : tt(t) ? t = Buffer.from(t) : typeof t != "string" && (this.objectMode = true)), this[o] ? (this.flowing && this[n] !== 0 && this[T](true), this.flowing ? this.emit("data", t) : this[j](t), this[n] !== 0 && this.emit("readable"), s && l(s), this.flowing) : t.length ? (typeof t == "string" && !(e === this[f] && !this[c$1].lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[f] && (t = this[c$1].write(t)), this.flowing && this[n] !== 0 && this[T](true), this.flowing ? this.emit("data", t) : this[j](t), this[n] !== 0 && this.emit("readable"), s && l(s), this.flowing) : (this[n] !== 0 && this.emit("readable"), s && l(s), this.flowing);
1287
1287
  }
1288
- read(t$7) {
1288
+ read(t) {
1289
1289
  if (this[r]) return null;
1290
- if (this[n$4] === 0 || t$7 === 0 || t$7 > this[n$4]) return this[d$1](), null;
1291
- this[o$6] && (t$7 = null), this[i$8].length > 1 && !this[o$6] && (this.encoding ? this[i$8] = [this[i$8].join("")] : this[i$8] = [Buffer.concat(this[i$8], this[n$4])]);
1292
- const e$7 = this[Y](t$7 || null, this[i$8][0]);
1293
- return this[d$1](), e$7;
1290
+ if (this[n] === 0 || t === 0 || t > this[n]) return this[d$1](), null;
1291
+ this[o] && (t = null), this[i].length > 1 && !this[o] && (this.encoding ? this[i] = [this[i].join("")] : this[i] = [Buffer.concat(this[i], this[n])]);
1292
+ const e = this[Y](t || null, this[i][0]);
1293
+ return this[d$1](), e;
1294
1294
  }
1295
- [Y](t$7, e$7) {
1296
- return t$7 === e$7.length || t$7 === null ? this[I$1]() : (this[i$8][0] = e$7.slice(t$7), e$7 = e$7.slice(0, t$7), this[n$4] -= t$7), this.emit("data", e$7), !this[i$8].length && !this[m$4] && this.emit("drain"), e$7;
1295
+ [Y](t, e) {
1296
+ return t === e.length || t === null ? this[I$1]() : (this[i][0] = e.slice(t), e = e.slice(0, t), this[n] -= t), this.emit("data", e), !this[i].length && !this[m] && this.emit("drain"), e;
1297
1297
  }
1298
- end(t$7, e$7, s$8) {
1299
- return typeof t$7 == "function" && (s$8 = t$7, t$7 = null), typeof e$7 == "function" && (s$8 = e$7, e$7 = "utf8"), t$7 && this.write(t$7, e$7), s$8 && this.once("end", s$8), this[m$4] = true, this.writable = false, (this.flowing || !this[S$2]) && this[d$1](), this;
1298
+ end(t, e, s) {
1299
+ return typeof t == "function" && (s = t, t = null), typeof e == "function" && (s = e, e = "utf8"), t && this.write(t, e), s && this.once("end", s), this[m] = true, this.writable = false, (this.flowing || !this[S]) && this[d$1](), this;
1300
1300
  }
1301
1301
  [b$1]() {
1302
- this[r] || (this[S$2] = false, this[M$1] = true, this.emit("resume"), this[i$8].length ? this[T$2]() : this[m$4] ? this[d$1]() : this.emit("drain"));
1302
+ this[r] || (this[S] = false, this[M$1] = true, this.emit("resume"), this[i].length ? this[T]() : this[m] ? this[d$1]() : this.emit("drain"));
1303
1303
  }
1304
1304
  resume() {
1305
1305
  return this[b$1]();
1306
1306
  }
1307
1307
  pause() {
1308
- this[M$1] = false, this[S$2] = true;
1308
+ this[M$1] = false, this[S] = true;
1309
1309
  }
1310
1310
  get destroyed() {
1311
1311
  return this[r];
@@ -1314,160 +1314,160 @@ function ft() {
1314
1314
  return this[M$1];
1315
1315
  }
1316
1316
  get paused() {
1317
- return this[S$2];
1317
+ return this[S];
1318
1318
  }
1319
- [j$3](t$7) {
1320
- this[o$6] ? this[n$4] += 1 : this[n$4] += t$7.length, this[i$8].push(t$7);
1319
+ [j](t) {
1320
+ this[o] ? this[n] += 1 : this[n] += t.length, this[i].push(t);
1321
1321
  }
1322
1322
  [I$1]() {
1323
- return this[o$6] ? this[n$4] -= 1 : this[n$4] -= this[i$8][0].length, this[i$8].shift();
1323
+ return this[o] ? this[n] -= 1 : this[n] -= this[i][0].length, this[i].shift();
1324
1324
  }
1325
- [T$2](t$7) {
1325
+ [T](t) {
1326
1326
  do ;
1327
- while (this[$](this[I$1]()) && this[i$8].length);
1328
- !t$7 && !this[i$8].length && !this[m$4] && this.emit("drain");
1327
+ while (this[$](this[I$1]()) && this[i].length);
1328
+ !t && !this[i].length && !this[m] && this.emit("drain");
1329
1329
  }
1330
- [$](t$7) {
1331
- return this.emit("data", t$7), this.flowing;
1330
+ [$](t) {
1331
+ return this.emit("data", t), this.flowing;
1332
1332
  }
1333
- pipe(t$7, e$7) {
1333
+ pipe(t, e) {
1334
1334
  if (this[r]) return;
1335
- const s$8 = this[y$4];
1336
- return e$7 = e$7 || {}, t$7 === H$3.stdout || t$7 === H$3.stderr ? e$7.end = false : e$7.end = e$7.end !== false, e$7.proxyErrors = !!e$7.proxyErrors, s$8 ? e$7.end && t$7.end() : (this[a$11].push(e$7.proxyErrors ? new st(this, t$7, e$7) : new z$2(this, t$7, e$7)), this[p$2] ? w$3(() => this[b$1]()) : this[b$1]()), t$7;
1335
+ const s = this[y];
1336
+ return e = e || {}, t === H.stdout || t === H.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[a].push(e.proxyErrors ? new st(this, t, e) : new z(this, t, e)), this[p] ? w(() => this[b$1]()) : this[b$1]()), t;
1337
1337
  }
1338
- unpipe(t$7) {
1339
- const e$7 = this[a$11].find((s$8) => s$8.dest === t$7);
1340
- e$7 && (this[a$11].splice(this[a$11].indexOf(e$7), 1), e$7.unpipe());
1338
+ unpipe(t) {
1339
+ const e = this[a].find((s) => s.dest === t);
1340
+ e && (this[a].splice(this[a].indexOf(e), 1), e.unpipe());
1341
1341
  }
1342
- addListener(t$7, e$7) {
1343
- return this.on(t$7, e$7);
1342
+ addListener(t, e) {
1343
+ return this.on(t, e);
1344
1344
  }
1345
- on(t$7, e$7) {
1346
- const s$8 = super.on(t$7, e$7);
1347
- return t$7 === "data" && !this[a$11].length && !this.flowing ? this[b$1]() : t$7 === "readable" && this[n$4] !== 0 ? super.emit("readable") : k$2(t$7) && this[y$4] ? (super.emit(t$7), this.removeAllListeners(t$7)) : t$7 === "error" && this[g$1] && (this[p$2] ? w$3(() => e$7.call(this, this[g$1])) : e$7.call(this, this[g$1])), s$8;
1345
+ on(t, e) {
1346
+ const s = super.on(t, e);
1347
+ return t === "data" && !this[a].length && !this.flowing ? this[b$1]() : t === "readable" && this[n] !== 0 ? super.emit("readable") : k(t) && this[y] ? (super.emit(t), this.removeAllListeners(t)) : t === "error" && this[g$1] && (this[p] ? w(() => e.call(this, this[g$1])) : e.call(this, this[g$1])), s;
1348
1348
  }
1349
1349
  get emittedEnd() {
1350
- return this[y$4];
1350
+ return this[y];
1351
1351
  }
1352
1352
  [d$1]() {
1353
- !this[R$3] && !this[y$4] && !this[r] && this[i$8].length === 0 && this[m$4] && (this[R$3] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[B$1] && this.emit("close"), this[R$3] = false);
1354
- }
1355
- emit(t$7, e$7, ...s$8) {
1356
- if (t$7 !== "error" && t$7 !== "close" && t$7 !== r && this[r]) return;
1357
- if (t$7 === "data") return !this[o$6] && !e$7 ? false : this[p$2] ? w$3(() => this[x$1](e$7)) : this[x$1](e$7);
1358
- if (t$7 === "end") return this[V$1]();
1359
- if (t$7 === "close") {
1360
- if (this[B$1] = true, !this[y$4] && !this[r]) return;
1361
- const u$6 = super.emit("close");
1362
- return this.removeAllListeners("close"), u$6;
1363
- } else if (t$7 === "error") {
1364
- this[g$1] = e$7, super.emit(P$2, e$7);
1365
- const u$6 = !this[E$2] || this.listeners("error").length ? super.emit("error", e$7) : false;
1366
- return this[d$1](), u$6;
1367
- } else if (t$7 === "resume") {
1368
- const u$6 = super.emit("resume");
1369
- return this[d$1](), u$6;
1370
- } else if (t$7 === "finish" || t$7 === "prefinish") {
1371
- const u$6 = super.emit(t$7);
1372
- return this.removeAllListeners(t$7), u$6;
1353
+ !this[R] && !this[y] && !this[r] && this[i].length === 0 && this[m] && (this[R] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[B$1] && this.emit("close"), this[R] = false);
1354
+ }
1355
+ emit(t, e, ...s) {
1356
+ if (t !== "error" && t !== "close" && t !== r && this[r]) return;
1357
+ if (t === "data") return !this[o] && !e ? false : this[p] ? w(() => this[x$1](e)) : this[x$1](e);
1358
+ if (t === "end") return this[V$1]();
1359
+ if (t === "close") {
1360
+ if (this[B$1] = true, !this[y] && !this[r]) return;
1361
+ const u = super.emit("close");
1362
+ return this.removeAllListeners("close"), u;
1363
+ } else if (t === "error") {
1364
+ this[g$1] = e, super.emit(P$2, e);
1365
+ const u = !this[E] || this.listeners("error").length ? super.emit("error", e) : false;
1366
+ return this[d$1](), u;
1367
+ } else if (t === "resume") {
1368
+ const u = super.emit("resume");
1369
+ return this[d$1](), u;
1370
+ } else if (t === "finish" || t === "prefinish") {
1371
+ const u = super.emit(t);
1372
+ return this.removeAllListeners(t), u;
1373
1373
  }
1374
- const l$3 = super.emit(t$7, e$7, ...s$8);
1375
- return this[d$1](), l$3;
1374
+ const l = super.emit(t, e, ...s);
1375
+ return this[d$1](), l;
1376
1376
  }
1377
- [x$1](t$7) {
1378
- for (const s$8 of this[a$11]) s$8.dest.write(t$7) === false && this.pause();
1379
- const e$7 = super.emit("data", t$7);
1380
- return this[d$1](), e$7;
1377
+ [x$1](t) {
1378
+ for (const s of this[a]) s.dest.write(t) === false && this.pause();
1379
+ const e = super.emit("data", t);
1380
+ return this[d$1](), e;
1381
1381
  }
1382
1382
  [V$1]() {
1383
- this[y$4] || (this[y$4] = true, this.readable = false, this[p$2] ? w$3(() => this[N$1]()) : this[N$1]());
1383
+ this[y] || (this[y] = true, this.readable = false, this[p] ? w(() => this[N$1]()) : this[N$1]());
1384
1384
  }
1385
1385
  [N$1]() {
1386
- if (this[c$6]) {
1387
- const e$7 = this[c$6].end();
1388
- if (e$7) {
1389
- for (const s$8 of this[a$11]) s$8.dest.write(e$7);
1390
- super.emit("data", e$7);
1386
+ if (this[c$1]) {
1387
+ const e = this[c$1].end();
1388
+ if (e) {
1389
+ for (const s of this[a]) s.dest.write(e);
1390
+ super.emit("data", e);
1391
1391
  }
1392
1392
  }
1393
- for (const e$7 of this[a$11]) e$7.end();
1394
- const t$7 = super.emit("end");
1395
- return this.removeAllListeners("end"), t$7;
1393
+ for (const e of this[a]) e.end();
1394
+ const t = super.emit("end");
1395
+ return this.removeAllListeners("end"), t;
1396
1396
  }
1397
1397
  collect() {
1398
- const t$7 = [];
1399
- this[o$6] || (t$7.dataLength = 0);
1400
- const e$7 = this.promise();
1401
- return this.on("data", (s$8) => {
1402
- t$7.push(s$8), this[o$6] || (t$7.dataLength += s$8.length);
1403
- }), e$7.then(() => t$7);
1398
+ const t = [];
1399
+ this[o] || (t.dataLength = 0);
1400
+ const e = this.promise();
1401
+ return this.on("data", (s) => {
1402
+ t.push(s), this[o] || (t.dataLength += s.length);
1403
+ }), e.then(() => t);
1404
1404
  }
1405
1405
  concat() {
1406
- return this[o$6] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this.collect().then((t$7) => this[o$6] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this[f$5] ? t$7.join("") : Buffer.concat(t$7, t$7.dataLength));
1406
+ return this[o] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this.collect().then((t) => this[o] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this[f] ? t.join("") : Buffer.concat(t, t.dataLength));
1407
1407
  }
1408
1408
  promise() {
1409
- return new Promise((t$7, e$7) => {
1410
- this.on(r, () => e$7(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (s$8) => e$7(s$8)), this.on("end", () => t$7());
1409
+ return new Promise((t, e) => {
1410
+ this.on(r, () => e(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (s) => e(s)), this.on("end", () => t());
1411
1411
  });
1412
1412
  }
1413
1413
  [K$1]() {
1414
- let t$7 = false;
1415
- const e$7 = () => (this.pause(), t$7 = true, Promise.resolve({ done: true }));
1414
+ let t = false;
1415
+ const e = () => (this.pause(), t = true, Promise.resolve({ done: true }));
1416
1416
  return {
1417
1417
  next: () => {
1418
- if (t$7) return e$7();
1419
- const l$3 = this.read();
1420
- if (l$3 !== null) return Promise.resolve({
1418
+ if (t) return e();
1419
+ const l = this.read();
1420
+ if (l !== null) return Promise.resolve({
1421
1421
  done: false,
1422
- value: l$3
1422
+ value: l
1423
1423
  });
1424
- if (this[m$4]) return e$7();
1425
- let u$6 = null, Q = null;
1424
+ if (this[m]) return e();
1425
+ let u = null, Q = null;
1426
1426
  const A$1 = (L) => {
1427
- this.removeListener("data", U$1), this.removeListener("end", C$2), this.removeListener(r, D$1), e$7(), Q(L);
1427
+ this.removeListener("data", U$1), this.removeListener("end", C), this.removeListener(r, D$1), e(), Q(L);
1428
1428
  }, U$1 = (L) => {
1429
- this.removeListener("error", A$1), this.removeListener("end", C$2), this.removeListener(r, D$1), this.pause(), u$6({
1429
+ this.removeListener("error", A$1), this.removeListener("end", C), this.removeListener(r, D$1), this.pause(), u({
1430
1430
  value: L,
1431
- done: !!this[m$4]
1431
+ done: !!this[m]
1432
1432
  });
1433
- }, C$2 = () => {
1434
- this.removeListener("error", A$1), this.removeListener("data", U$1), this.removeListener(r, D$1), e$7(), u$6({ done: true });
1433
+ }, C = () => {
1434
+ this.removeListener("error", A$1), this.removeListener("data", U$1), this.removeListener(r, D$1), e(), u({ done: true });
1435
1435
  }, D$1 = () => A$1(/* @__PURE__ */ new Error("stream destroyed"));
1436
1436
  return new Promise((L, it) => {
1437
- Q = it, u$6 = L, this.once(r, D$1), this.once("error", A$1), this.once("end", C$2), this.once("data", U$1);
1437
+ Q = it, u = L, this.once(r, D$1), this.once("error", A$1), this.once("end", C), this.once("data", U$1);
1438
1438
  });
1439
1439
  },
1440
- throw: e$7,
1441
- return: e$7,
1440
+ throw: e,
1441
+ return: e,
1442
1442
  [K$1]() {
1443
1443
  return this;
1444
1444
  }
1445
1445
  };
1446
1446
  }
1447
1447
  [W$1]() {
1448
- let t$7 = false;
1449
- const e$7 = () => (this.pause(), this.removeListener(P$2, e$7), this.removeListener(r, e$7), this.removeListener("end", e$7), t$7 = true, { done: true }), s$8 = () => {
1450
- if (t$7) return e$7();
1451
- const l$3 = this.read();
1452
- return l$3 === null ? e$7() : { value: l$3 };
1448
+ let t = false;
1449
+ const e = () => (this.pause(), this.removeListener(P$2, e), this.removeListener(r, e), this.removeListener("end", e), t = true, { done: true }), s = () => {
1450
+ if (t) return e();
1451
+ const l = this.read();
1452
+ return l === null ? e() : { value: l };
1453
1453
  };
1454
- return this.once("end", e$7), this.once(P$2, e$7), this.once(r, e$7), {
1455
- next: s$8,
1456
- throw: e$7,
1457
- return: e$7,
1454
+ return this.once("end", e), this.once(P$2, e), this.once(r, e), {
1455
+ next: s,
1456
+ throw: e,
1457
+ return: e,
1458
1458
  [W$1]() {
1459
1459
  return this;
1460
1460
  }
1461
1461
  };
1462
1462
  }
1463
- destroy(t$7) {
1464
- return this[r] ? (t$7 ? this.emit("error", t$7) : this.emit(r), this) : (this[r] = true, this[i$8].length = 0, this[n$4] = 0, typeof this.close == "function" && !this[B$1] && this.close(), t$7 ? this.emit("error", t$7) : this.emit(r), this);
1463
+ destroy(t) {
1464
+ return this[r] ? (t ? this.emit("error", t) : this.emit(r), this) : (this[r] = true, this[i].length = 0, this[n] = 0, typeof this.close == "function" && !this[B$1] && this.close(), t ? this.emit("error", t) : this.emit(r), this);
1465
1465
  }
1466
- static isStream(t$7) {
1467
- return !!t$7 && (t$7 instanceof F$4 || t$7 instanceof q$2 || t$7 instanceof Z && (typeof t$7.pipe == "function" || typeof t$7.write == "function" && typeof t$7.end == "function"));
1466
+ static isStream(t) {
1467
+ return !!t && (t instanceof F || t instanceof q || t instanceof Z && (typeof t.pipe == "function" || typeof t.write == "function" && typeof t.end == "function"));
1468
1468
  }
1469
1469
  }
1470
- return s$5.Minipass = F$4, s$5;
1470
+ return s$5.Minipass = F, s$5;
1471
1471
  }
1472
1472
  var e$2, o$4;
1473
1473
  function a$7() {
@@ -1477,10 +1477,10 @@ var n$2, a$6;
1477
1477
  function u$3() {
1478
1478
  if (a$6) return n$2;
1479
1479
  a$6 = 1;
1480
- const { Minipass: o$6 } = ft(), s$8 = a$7(), r = Symbol("slurp");
1481
- return n$2 = class extends o$6 {
1482
- constructor(t$7, e$7, i$8) {
1483
- switch (super(), this.pause(), this.extended = e$7, this.globalExtended = i$8, this.header = t$7, this.startBlockSize = 512 * Math.ceil(t$7.size / 512), this.blockRemain = this.startBlockSize, this.remain = t$7.size, this.type = t$7.type, this.meta = false, this.ignore = false, this.type) {
1480
+ const { Minipass: o } = ft(), s = a$7(), r = Symbol("slurp");
1481
+ return n$2 = class extends o {
1482
+ constructor(t, e, i) {
1483
+ switch (super(), this.pause(), this.extended = e, this.globalExtended = i, this.header = t, this.startBlockSize = 512 * Math.ceil(t.size / 512), this.blockRemain = this.startBlockSize, this.remain = t.size, this.type = t.type, this.meta = false, this.ignore = false, this.type) {
1484
1484
  case "File":
1485
1485
  case "OldFile":
1486
1486
  case "Link":
@@ -1501,16 +1501,16 @@ function u$3() {
1501
1501
  break;
1502
1502
  default: this.ignore = true;
1503
1503
  }
1504
- this.path = s$8(t$7.path), this.mode = t$7.mode, this.mode && (this.mode = this.mode & 4095), this.uid = t$7.uid, this.gid = t$7.gid, this.uname = t$7.uname, this.gname = t$7.gname, this.size = t$7.size, this.mtime = t$7.mtime, this.atime = t$7.atime, this.ctime = t$7.ctime, this.linkpath = s$8(t$7.linkpath), this.uname = t$7.uname, this.gname = t$7.gname, e$7 && this[r](e$7), i$8 && this[r](i$8, true);
1504
+ this.path = s(t.path), this.mode = t.mode, this.mode && (this.mode = this.mode & 4095), this.uid = t.uid, this.gid = t.gid, this.uname = t.uname, this.gname = t.gname, this.size = t.size, this.mtime = t.mtime, this.atime = t.atime, this.ctime = t.ctime, this.linkpath = s(t.linkpath), this.uname = t.uname, this.gname = t.gname, e && this[r](e), i && this[r](i, true);
1505
1505
  }
1506
- write(t$7) {
1507
- const e$7 = t$7.length;
1508
- if (e$7 > this.blockRemain) throw new Error("writing more to entry than is appropriate");
1509
- const i$8 = this.remain, c$6 = this.blockRemain;
1510
- return this.remain = Math.max(0, i$8 - e$7), this.blockRemain = Math.max(0, c$6 - e$7), this.ignore ? true : i$8 >= e$7 ? super.write(t$7) : super.write(t$7.slice(0, i$8));
1506
+ write(t) {
1507
+ const e = t.length;
1508
+ if (e > this.blockRemain) throw new Error("writing more to entry than is appropriate");
1509
+ const i = this.remain, c$1 = this.blockRemain;
1510
+ return this.remain = Math.max(0, i - e), this.blockRemain = Math.max(0, c$1 - e), this.ignore ? true : i >= e ? super.write(t) : super.write(t.slice(0, i));
1511
1511
  }
1512
- [r](t$7, e$7) {
1513
- for (const i$8 in t$7) t$7[i$8] !== null && t$7[i$8] !== void 0 && !(e$7 && i$8 === "path") && (this[i$8] = i$8 === "path" || i$8 === "linkpath" ? s$8(t$7[i$8]) : t$7[i$8]);
1512
+ [r](t, e) {
1513
+ for (const i in t) t[i] !== null && t[i] !== void 0 && !(e && i === "path") && (this[i] = i === "path" || i === "linkpath" ? s(t[i]) : t[i]);
1514
1514
  }
1515
1515
  }, n$2;
1516
1516
  }
@@ -1518,22 +1518,22 @@ var r$2, a$5;
1518
1518
  function f$2() {
1519
1519
  if (a$5) return r$2;
1520
1520
  a$5 = 1;
1521
- const c$6 = E(), d$1 = path;
1521
+ const c$1 = E(), d$1 = path;
1522
1522
  class h$2 {
1523
- constructor(e$7, n$4) {
1524
- this.atime = e$7.atime || null, this.charset = e$7.charset || null, this.comment = e$7.comment || null, this.ctime = e$7.ctime || null, this.gid = e$7.gid || null, this.gname = e$7.gname || null, this.linkpath = e$7.linkpath || null, this.mtime = e$7.mtime || null, this.path = e$7.path || null, this.size = e$7.size || null, this.uid = e$7.uid || null, this.uname = e$7.uname || null, this.dev = e$7.dev || null, this.ino = e$7.ino || null, this.nlink = e$7.nlink || null, this.global = n$4 || false;
1523
+ constructor(e, n) {
1524
+ this.atime = e.atime || null, this.charset = e.charset || null, this.comment = e.comment || null, this.ctime = e.ctime || null, this.gid = e.gid || null, this.gname = e.gname || null, this.linkpath = e.linkpath || null, this.mtime = e.mtime || null, this.path = e.path || null, this.size = e.size || null, this.uid = e.uid || null, this.uname = e.uname || null, this.dev = e.dev || null, this.ino = e.ino || null, this.nlink = e.nlink || null, this.global = n || false;
1525
1525
  }
1526
1526
  encode() {
1527
- const e$7 = this.encodeBody();
1528
- if (e$7 === "") return null;
1529
- const n$4 = Buffer.byteLength(e$7), l$3 = 512 * Math.ceil(1 + n$4 / 512), i$8 = Buffer.allocUnsafe(l$3);
1530
- for (let t$7 = 0; t$7 < 512; t$7++) i$8[t$7] = 0;
1531
- new c$6({
1527
+ const e = this.encodeBody();
1528
+ if (e === "") return null;
1529
+ const n = Buffer.byteLength(e), l = 512 * Math.ceil(1 + n / 512), i = Buffer.allocUnsafe(l);
1530
+ for (let t = 0; t < 512; t++) i[t] = 0;
1531
+ new c$1({
1532
1532
  path: ("PaxHeader/" + d$1.basename(this.path)).slice(0, 99),
1533
1533
  mode: this.mode || 420,
1534
1534
  uid: this.uid || null,
1535
1535
  gid: this.gid || null,
1536
- size: n$4,
1536
+ size: n,
1537
1537
  mtime: this.mtime || null,
1538
1538
  type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader",
1539
1539
  linkpath: "",
@@ -1543,31 +1543,31 @@ function f$2() {
1543
1543
  devmin: 0,
1544
1544
  atime: this.atime || null,
1545
1545
  ctime: this.ctime || null
1546
- }).encode(i$8), i$8.write(e$7, 512, n$4, "utf8");
1547
- for (let t$7 = n$4 + 512; t$7 < i$8.length; t$7++) i$8[t$7] = 0;
1548
- return i$8;
1546
+ }).encode(i), i.write(e, 512, n, "utf8");
1547
+ for (let t = n + 512; t < i.length; t++) i[t] = 0;
1548
+ return i;
1549
1549
  }
1550
1550
  encodeBody() {
1551
1551
  return this.encodeField("path") + this.encodeField("ctime") + this.encodeField("atime") + this.encodeField("dev") + this.encodeField("ino") + this.encodeField("nlink") + this.encodeField("charset") + this.encodeField("comment") + this.encodeField("gid") + this.encodeField("gname") + this.encodeField("linkpath") + this.encodeField("mtime") + this.encodeField("size") + this.encodeField("uid") + this.encodeField("uname");
1552
1552
  }
1553
- encodeField(e$7) {
1554
- if (this[e$7] === null || this[e$7] === void 0) return "";
1555
- const n$4 = this[e$7] instanceof Date ? this[e$7].getTime() / 1e3 : this[e$7], l$3 = " " + (e$7 === "dev" || e$7 === "ino" || e$7 === "nlink" ? "SCHILY." : "") + e$7 + "=" + n$4 + `
1556
- `, i$8 = Buffer.byteLength(l$3);
1557
- let t$7 = Math.floor(Math.log(i$8) / Math.log(10)) + 1;
1558
- return i$8 + t$7 >= Math.pow(10, t$7) && (t$7 += 1), t$7 + i$8 + l$3;
1559
- }
1560
- }
1561
- h$2.parse = (s$8, e$7, n$4) => new h$2(o$6(u$6(s$8), e$7), n$4);
1562
- const o$6 = (s$8, e$7) => e$7 ? Object.keys(s$8).reduce((n$4, l$3) => (n$4[l$3] = s$8[l$3], n$4), e$7) : s$8, u$6 = (s$8) => s$8.replace(/\n$/, "").split(`
1563
- `).reduce(m$4, Object.create(null)), m$4 = (s$8, e$7) => {
1564
- const n$4 = parseInt(e$7, 10);
1565
- if (n$4 !== Buffer.byteLength(e$7) + 1) return s$8;
1566
- e$7 = e$7.slice((n$4 + " ").length);
1567
- const l$3 = e$7.split("="), i$8 = l$3.shift().replace(/^SCHILY\.(dev|ino|nlink)/, "$1");
1568
- if (!i$8) return s$8;
1569
- const t$7 = l$3.join("=");
1570
- return s$8[i$8] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i$8) ? /* @__PURE__ */ new Date(t$7 * 1e3) : /^[0-9]+$/.test(t$7) ? +t$7 : t$7, s$8;
1553
+ encodeField(e) {
1554
+ if (this[e] === null || this[e] === void 0) return "";
1555
+ const n = this[e] instanceof Date ? this[e].getTime() / 1e3 : this[e], l = " " + (e === "dev" || e === "ino" || e === "nlink" ? "SCHILY." : "") + e + "=" + n + `
1556
+ `, i = Buffer.byteLength(l);
1557
+ let t = Math.floor(Math.log(i) / Math.log(10)) + 1;
1558
+ return i + t >= Math.pow(10, t) && (t += 1), t + i + l;
1559
+ }
1560
+ }
1561
+ h$2.parse = (s, e, n) => new h$2(o(u(s), e), n);
1562
+ const o = (s, e) => e ? Object.keys(s).reduce((n, l) => (n[l] = s[l], n), e) : s, u = (s) => s.replace(/\n$/, "").split(`
1563
+ `).reduce(m, Object.create(null)), m = (s, e) => {
1564
+ const n = parseInt(e, 10);
1565
+ if (n !== Buffer.byteLength(e) + 1) return s;
1566
+ e = e.slice((n + " ").length);
1567
+ const l = e.split("="), i = l.shift().replace(/^SCHILY\.(dev|ino|nlink)/, "$1");
1568
+ if (!i) return s;
1569
+ const t = l.join("=");
1570
+ return s[i] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i) ? /* @__PURE__ */ new Date(t * 1e3) : /^[0-9]+$/.test(t) ? +t : t, s;
1571
1571
  };
1572
1572
  return r$2 = h$2, r$2;
1573
1573
  }
@@ -1576,7 +1576,7 @@ var _, R$1;
1576
1576
  function T() {
1577
1577
  if (R$1) return _;
1578
1578
  R$1 = 1;
1579
- const E$2 = O$2.constants || { ZLIB_VERNUM: 4736 };
1579
+ const E = O$2.constants || { ZLIB_VERNUM: 4736 };
1580
1580
  return _ = Object.freeze(Object.assign(Object.create(null), {
1581
1581
  Z_NO_FLUSH: 0,
1582
1582
  Z_PARTIAL_FLUSH: 1,
@@ -1684,7 +1684,7 @@ function T() {
1684
1684
  BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27,
1685
1685
  BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30,
1686
1686
  BROTLI_DECODER_ERROR_UNREACHABLE: -31
1687
- }, E$2)), _;
1687
+ }, E)), _;
1688
1688
  }
1689
1689
  var j, H$1;
1690
1690
  function tt() {
@@ -1693,10 +1693,10 @@ function tt() {
1693
1693
  const I$1 = typeof process == "object" && process ? process : {
1694
1694
  stdout: null,
1695
1695
  stderr: null
1696
- }, Y = nt, x$1 = ot, N$1 = ht.StringDecoder, u$6 = Symbol("EOF"), a$11 = Symbol("maybeEmitEnd"), c$6 = Symbol("emittedEnd"), S$2 = Symbol("emittingEnd"), E$2 = Symbol("emittedError"), w$3 = Symbol("closed"), P$2 = Symbol("read"), L = Symbol("flush"), _$2 = Symbol("flushChunk"), h$2 = Symbol("encoding"), m$4 = Symbol("decoder"), M$1 = Symbol("flowing"), y$4 = Symbol("paused"), p$2 = Symbol("resume"), s$8 = Symbol("bufferLength"), T$2 = Symbol("bufferPush"), B$1 = Symbol("bufferShift"), r = Symbol("objectMode"), n$4 = Symbol("destroyed"), D$1 = Symbol("emitData"), F$4 = Symbol("emitEnd"), R$3 = Symbol("emitEnd2"), d$1 = Symbol("async"), b$1 = (o$6) => Promise.resolve().then(o$6), C$2 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $ = C$2 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G$2 = C$2 && Symbol.iterator || Symbol("iterator not implemented"), V$1 = (o$6) => o$6 === "end" || o$6 === "finish" || o$6 === "prefinish", v$3 = (o$6) => o$6 instanceof ArrayBuffer || typeof o$6 == "object" && o$6.constructor && o$6.constructor.name === "ArrayBuffer" && o$6.byteLength >= 0, J$1 = (o$6) => !Buffer.isBuffer(o$6) && ArrayBuffer.isView(o$6);
1696
+ }, Y = nt, x$1 = ot, N$1 = ht.StringDecoder, u = Symbol("EOF"), a = Symbol("maybeEmitEnd"), c$1 = Symbol("emittedEnd"), S = Symbol("emittingEnd"), E = Symbol("emittedError"), w = Symbol("closed"), P$2 = Symbol("read"), L = Symbol("flush"), _ = Symbol("flushChunk"), h$2 = Symbol("encoding"), m = Symbol("decoder"), M$1 = Symbol("flowing"), y = Symbol("paused"), p = Symbol("resume"), s = Symbol("bufferLength"), T = Symbol("bufferPush"), B$1 = Symbol("bufferShift"), r = Symbol("objectMode"), n = Symbol("destroyed"), D$1 = Symbol("emitData"), F = Symbol("emitEnd"), R = Symbol("emitEnd2"), d$1 = Symbol("async"), b$1 = (o) => Promise.resolve().then(o), C = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $ = C && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G = C && Symbol.iterator || Symbol("iterator not implemented"), V$1 = (o) => o === "end" || o === "finish" || o === "prefinish", v = (o) => o instanceof ArrayBuffer || typeof o == "object" && o.constructor && o.constructor.name === "ArrayBuffer" && o.byteLength >= 0, J = (o) => !Buffer.isBuffer(o) && ArrayBuffer.isView(o);
1697
1697
  class U$1 {
1698
- constructor(t$7, e$7, i$8) {
1699
- this.src = t$7, this.dest = e$7, this.opts = i$8, this.ondrain = () => t$7[p$2](), e$7.on("drain", this.ondrain);
1698
+ constructor(t, e, i) {
1699
+ this.src = t, this.dest = e, this.opts = i, this.ondrain = () => t[p](), e.on("drain", this.ondrain);
1700
1700
  }
1701
1701
  unpipe() {
1702
1702
  this.dest.removeListener("drain", this.ondrain);
@@ -1710,210 +1710,210 @@ function tt() {
1710
1710
  unpipe() {
1711
1711
  this.src.removeListener("error", this.proxyErrors), super.unpipe();
1712
1712
  }
1713
- constructor(t$7, e$7, i$8) {
1714
- super(t$7, e$7, i$8), this.proxyErrors = (l$3) => e$7.emit("error", l$3), t$7.on("error", this.proxyErrors);
1713
+ constructor(t, e, i) {
1714
+ super(t, e, i), this.proxyErrors = (l) => e.emit("error", l), t.on("error", this.proxyErrors);
1715
1715
  }
1716
1716
  }
1717
- return j = class q$2 extends x$1 {
1718
- constructor(t$7) {
1719
- super(), this[M$1] = false, this[y$4] = false, this.pipes = [], this.buffer = [], this[r] = t$7 && t$7.objectMode || false, this[r] ? this[h$2] = null : this[h$2] = t$7 && t$7.encoding || null, this[h$2] === "buffer" && (this[h$2] = null), this[d$1] = t$7 && !!t$7.async || false, this[m$4] = this[h$2] ? new N$1(this[h$2]) : null, this[u$6] = false, this[c$6] = false, this[S$2] = false, this[w$3] = false, this[E$2] = null, this.writable = true, this.readable = true, this[s$8] = 0, this[n$4] = false;
1717
+ return j = class q extends x$1 {
1718
+ constructor(t) {
1719
+ super(), this[M$1] = false, this[y] = false, this.pipes = [], this.buffer = [], this[r] = t && t.objectMode || false, this[r] ? this[h$2] = null : this[h$2] = t && t.encoding || null, this[h$2] === "buffer" && (this[h$2] = null), this[d$1] = t && !!t.async || false, this[m] = this[h$2] ? new N$1(this[h$2]) : null, this[u] = false, this[c$1] = false, this[S] = false, this[w] = false, this[E] = null, this.writable = true, this.readable = true, this[s] = 0, this[n] = false;
1720
1720
  }
1721
1721
  get bufferLength() {
1722
- return this[s$8];
1722
+ return this[s];
1723
1723
  }
1724
1724
  get encoding() {
1725
1725
  return this[h$2];
1726
1726
  }
1727
- set encoding(t$7) {
1727
+ set encoding(t) {
1728
1728
  if (this[r]) throw new Error("cannot set encoding in objectMode");
1729
- if (this[h$2] && t$7 !== this[h$2] && (this[m$4] && this[m$4].lastNeed || this[s$8])) throw new Error("cannot change encoding");
1730
- this[h$2] !== t$7 && (this[m$4] = t$7 ? new N$1(t$7) : null, this.buffer.length && (this.buffer = this.buffer.map((e$7) => this[m$4].write(e$7)))), this[h$2] = t$7;
1729
+ if (this[h$2] && t !== this[h$2] && (this[m] && this[m].lastNeed || this[s])) throw new Error("cannot change encoding");
1730
+ this[h$2] !== t && (this[m] = t ? new N$1(t) : null, this.buffer.length && (this.buffer = this.buffer.map((e) => this[m].write(e)))), this[h$2] = t;
1731
1731
  }
1732
- setEncoding(t$7) {
1733
- this.encoding = t$7;
1732
+ setEncoding(t) {
1733
+ this.encoding = t;
1734
1734
  }
1735
1735
  get objectMode() {
1736
1736
  return this[r];
1737
1737
  }
1738
- set objectMode(t$7) {
1739
- this[r] = this[r] || !!t$7;
1738
+ set objectMode(t) {
1739
+ this[r] = this[r] || !!t;
1740
1740
  }
1741
1741
  get async() {
1742
1742
  return this[d$1];
1743
1743
  }
1744
- set async(t$7) {
1745
- this[d$1] = this[d$1] || !!t$7;
1744
+ set async(t) {
1745
+ this[d$1] = this[d$1] || !!t;
1746
1746
  }
1747
- write(t$7, e$7, i$8) {
1748
- if (this[u$6]) throw new Error("write after end");
1749
- if (this[n$4]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
1750
- typeof e$7 == "function" && (i$8 = e$7, e$7 = "utf8"), e$7 || (e$7 = "utf8");
1751
- const l$3 = this[d$1] ? b$1 : (f$5) => f$5();
1752
- return !this[r] && !Buffer.isBuffer(t$7) && (J$1(t$7) ? t$7 = Buffer.from(t$7.buffer, t$7.byteOffset, t$7.byteLength) : v$3(t$7) ? t$7 = Buffer.from(t$7) : typeof t$7 != "string" && (this.objectMode = true)), this[r] ? (this.flowing && this[s$8] !== 0 && this[L](true), this.flowing ? this.emit("data", t$7) : this[T$2](t$7), this[s$8] !== 0 && this.emit("readable"), i$8 && l$3(i$8), this.flowing) : t$7.length ? (typeof t$7 == "string" && !(e$7 === this[h$2] && !this[m$4].lastNeed) && (t$7 = Buffer.from(t$7, e$7)), Buffer.isBuffer(t$7) && this[h$2] && (t$7 = this[m$4].write(t$7)), this.flowing && this[s$8] !== 0 && this[L](true), this.flowing ? this.emit("data", t$7) : this[T$2](t$7), this[s$8] !== 0 && this.emit("readable"), i$8 && l$3(i$8), this.flowing) : (this[s$8] !== 0 && this.emit("readable"), i$8 && l$3(i$8), this.flowing);
1747
+ write(t, e, i) {
1748
+ if (this[u]) throw new Error("write after end");
1749
+ if (this[n]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
1750
+ typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
1751
+ const l = this[d$1] ? b$1 : (f) => f();
1752
+ return !this[r] && !Buffer.isBuffer(t) && (J(t) ? t = Buffer.from(t.buffer, t.byteOffset, t.byteLength) : v(t) ? t = Buffer.from(t) : typeof t != "string" && (this.objectMode = true)), this[r] ? (this.flowing && this[s] !== 0 && this[L](true), this.flowing ? this.emit("data", t) : this[T](t), this[s] !== 0 && this.emit("readable"), i && l(i), this.flowing) : t.length ? (typeof t == "string" && !(e === this[h$2] && !this[m].lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[h$2] && (t = this[m].write(t)), this.flowing && this[s] !== 0 && this[L](true), this.flowing ? this.emit("data", t) : this[T](t), this[s] !== 0 && this.emit("readable"), i && l(i), this.flowing) : (this[s] !== 0 && this.emit("readable"), i && l(i), this.flowing);
1753
1753
  }
1754
- read(t$7) {
1755
- if (this[n$4]) return null;
1756
- if (this[s$8] === 0 || t$7 === 0 || t$7 > this[s$8]) return this[a$11](), null;
1757
- this[r] && (t$7 = null), this.buffer.length > 1 && !this[r] && (this.encoding ? this.buffer = [this.buffer.join("")] : this.buffer = [Buffer.concat(this.buffer, this[s$8])]);
1758
- const e$7 = this[P$2](t$7 || null, this.buffer[0]);
1759
- return this[a$11](), e$7;
1754
+ read(t) {
1755
+ if (this[n]) return null;
1756
+ if (this[s] === 0 || t === 0 || t > this[s]) return this[a](), null;
1757
+ this[r] && (t = null), this.buffer.length > 1 && !this[r] && (this.encoding ? this.buffer = [this.buffer.join("")] : this.buffer = [Buffer.concat(this.buffer, this[s])]);
1758
+ const e = this[P$2](t || null, this.buffer[0]);
1759
+ return this[a](), e;
1760
1760
  }
1761
- [P$2](t$7, e$7) {
1762
- return t$7 === e$7.length || t$7 === null ? this[B$1]() : (this.buffer[0] = e$7.slice(t$7), e$7 = e$7.slice(0, t$7), this[s$8] -= t$7), this.emit("data", e$7), !this.buffer.length && !this[u$6] && this.emit("drain"), e$7;
1761
+ [P$2](t, e) {
1762
+ return t === e.length || t === null ? this[B$1]() : (this.buffer[0] = e.slice(t), e = e.slice(0, t), this[s] -= t), this.emit("data", e), !this.buffer.length && !this[u] && this.emit("drain"), e;
1763
1763
  }
1764
- end(t$7, e$7, i$8) {
1765
- return typeof t$7 == "function" && (i$8 = t$7, t$7 = null), typeof e$7 == "function" && (i$8 = e$7, e$7 = "utf8"), t$7 && this.write(t$7, e$7), i$8 && this.once("end", i$8), this[u$6] = true, this.writable = false, (this.flowing || !this[y$4]) && this[a$11](), this;
1764
+ end(t, e, i) {
1765
+ return typeof t == "function" && (i = t, t = null), typeof e == "function" && (i = e, e = "utf8"), t && this.write(t, e), i && this.once("end", i), this[u] = true, this.writable = false, (this.flowing || !this[y]) && this[a](), this;
1766
1766
  }
1767
- [p$2]() {
1768
- this[n$4] || (this[y$4] = false, this[M$1] = true, this.emit("resume"), this.buffer.length ? this[L]() : this[u$6] ? this[a$11]() : this.emit("drain"));
1767
+ [p]() {
1768
+ this[n] || (this[y] = false, this[M$1] = true, this.emit("resume"), this.buffer.length ? this[L]() : this[u] ? this[a]() : this.emit("drain"));
1769
1769
  }
1770
1770
  resume() {
1771
- return this[p$2]();
1771
+ return this[p]();
1772
1772
  }
1773
1773
  pause() {
1774
- this[M$1] = false, this[y$4] = true;
1774
+ this[M$1] = false, this[y] = true;
1775
1775
  }
1776
1776
  get destroyed() {
1777
- return this[n$4];
1777
+ return this[n];
1778
1778
  }
1779
1779
  get flowing() {
1780
1780
  return this[M$1];
1781
1781
  }
1782
1782
  get paused() {
1783
- return this[y$4];
1783
+ return this[y];
1784
1784
  }
1785
- [T$2](t$7) {
1786
- this[r] ? this[s$8] += 1 : this[s$8] += t$7.length, this.buffer.push(t$7);
1785
+ [T](t) {
1786
+ this[r] ? this[s] += 1 : this[s] += t.length, this.buffer.push(t);
1787
1787
  }
1788
1788
  [B$1]() {
1789
- return this.buffer.length && (this[r] ? this[s$8] -= 1 : this[s$8] -= this.buffer[0].length), this.buffer.shift();
1789
+ return this.buffer.length && (this[r] ? this[s] -= 1 : this[s] -= this.buffer[0].length), this.buffer.shift();
1790
1790
  }
1791
- [L](t$7) {
1791
+ [L](t) {
1792
1792
  do ;
1793
- while (this[_$2](this[B$1]()));
1794
- !t$7 && !this.buffer.length && !this[u$6] && this.emit("drain");
1793
+ while (this[_](this[B$1]()));
1794
+ !t && !this.buffer.length && !this[u] && this.emit("drain");
1795
1795
  }
1796
- [_$2](t$7) {
1797
- return t$7 ? (this.emit("data", t$7), this.flowing) : false;
1796
+ [_](t) {
1797
+ return t ? (this.emit("data", t), this.flowing) : false;
1798
1798
  }
1799
- pipe(t$7, e$7) {
1800
- if (this[n$4]) return;
1801
- const i$8 = this[c$6];
1802
- return e$7 = e$7 || {}, t$7 === I$1.stdout || t$7 === I$1.stderr ? e$7.end = false : e$7.end = e$7.end !== false, e$7.proxyErrors = !!e$7.proxyErrors, i$8 ? e$7.end && t$7.end() : (this.pipes.push(e$7.proxyErrors ? new K$1(this, t$7, e$7) : new U$1(this, t$7, e$7)), this[d$1] ? b$1(() => this[p$2]()) : this[p$2]()), t$7;
1799
+ pipe(t, e) {
1800
+ if (this[n]) return;
1801
+ const i = this[c$1];
1802
+ return e = e || {}, t === I$1.stdout || t === I$1.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this.pipes.push(e.proxyErrors ? new K$1(this, t, e) : new U$1(this, t, e)), this[d$1] ? b$1(() => this[p]()) : this[p]()), t;
1803
1803
  }
1804
- unpipe(t$7) {
1805
- const e$7 = this.pipes.find((i$8) => i$8.dest === t$7);
1806
- e$7 && (this.pipes.splice(this.pipes.indexOf(e$7), 1), e$7.unpipe());
1804
+ unpipe(t) {
1805
+ const e = this.pipes.find((i) => i.dest === t);
1806
+ e && (this.pipes.splice(this.pipes.indexOf(e), 1), e.unpipe());
1807
1807
  }
1808
- addListener(t$7, e$7) {
1809
- return this.on(t$7, e$7);
1808
+ addListener(t, e) {
1809
+ return this.on(t, e);
1810
1810
  }
1811
- on(t$7, e$7) {
1812
- const i$8 = super.on(t$7, e$7);
1813
- return t$7 === "data" && !this.pipes.length && !this.flowing ? this[p$2]() : t$7 === "readable" && this[s$8] !== 0 ? super.emit("readable") : V$1(t$7) && this[c$6] ? (super.emit(t$7), this.removeAllListeners(t$7)) : t$7 === "error" && this[E$2] && (this[d$1] ? b$1(() => e$7.call(this, this[E$2])) : e$7.call(this, this[E$2])), i$8;
1811
+ on(t, e) {
1812
+ const i = super.on(t, e);
1813
+ return t === "data" && !this.pipes.length && !this.flowing ? this[p]() : t === "readable" && this[s] !== 0 ? super.emit("readable") : V$1(t) && this[c$1] ? (super.emit(t), this.removeAllListeners(t)) : t === "error" && this[E] && (this[d$1] ? b$1(() => e.call(this, this[E])) : e.call(this, this[E])), i;
1814
1814
  }
1815
1815
  get emittedEnd() {
1816
- return this[c$6];
1817
- }
1818
- [a$11]() {
1819
- !this[S$2] && !this[c$6] && !this[n$4] && this.buffer.length === 0 && this[u$6] && (this[S$2] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[w$3] && this.emit("close"), this[S$2] = false);
1820
- }
1821
- emit(t$7, e$7, ...i$8) {
1822
- if (t$7 !== "error" && t$7 !== "close" && t$7 !== n$4 && this[n$4]) return;
1823
- if (t$7 === "data") return e$7 ? this[d$1] ? b$1(() => this[D$1](e$7)) : this[D$1](e$7) : false;
1824
- if (t$7 === "end") return this[F$4]();
1825
- if (t$7 === "close") {
1826
- if (this[w$3] = true, !this[c$6] && !this[n$4]) return;
1827
- const f$5 = super.emit("close");
1828
- return this.removeAllListeners("close"), f$5;
1829
- } else if (t$7 === "error") {
1830
- this[E$2] = e$7;
1831
- const f$5 = super.emit("error", e$7);
1832
- return this[a$11](), f$5;
1833
- } else if (t$7 === "resume") {
1834
- const f$5 = super.emit("resume");
1835
- return this[a$11](), f$5;
1836
- } else if (t$7 === "finish" || t$7 === "prefinish") {
1837
- const f$5 = super.emit(t$7);
1838
- return this.removeAllListeners(t$7), f$5;
1816
+ return this[c$1];
1817
+ }
1818
+ [a]() {
1819
+ !this[S] && !this[c$1] && !this[n] && this.buffer.length === 0 && this[u] && (this[S] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[w] && this.emit("close"), this[S] = false);
1820
+ }
1821
+ emit(t, e, ...i) {
1822
+ if (t !== "error" && t !== "close" && t !== n && this[n]) return;
1823
+ if (t === "data") return e ? this[d$1] ? b$1(() => this[D$1](e)) : this[D$1](e) : false;
1824
+ if (t === "end") return this[F]();
1825
+ if (t === "close") {
1826
+ if (this[w] = true, !this[c$1] && !this[n]) return;
1827
+ const f = super.emit("close");
1828
+ return this.removeAllListeners("close"), f;
1829
+ } else if (t === "error") {
1830
+ this[E] = e;
1831
+ const f = super.emit("error", e);
1832
+ return this[a](), f;
1833
+ } else if (t === "resume") {
1834
+ const f = super.emit("resume");
1835
+ return this[a](), f;
1836
+ } else if (t === "finish" || t === "prefinish") {
1837
+ const f = super.emit(t);
1838
+ return this.removeAllListeners(t), f;
1839
1839
  }
1840
- const l$3 = super.emit(t$7, e$7, ...i$8);
1841
- return this[a$11](), l$3;
1842
- }
1843
- [D$1](t$7) {
1844
- for (const i$8 of this.pipes) i$8.dest.write(t$7) === false && this.pause();
1845
- const e$7 = super.emit("data", t$7);
1846
- return this[a$11](), e$7;
1847
- }
1848
- [F$4]() {
1849
- this[c$6] || (this[c$6] = true, this.readable = false, this[d$1] ? b$1(() => this[R$3]()) : this[R$3]());
1850
- }
1851
- [R$3]() {
1852
- if (this[m$4]) {
1853
- const e$7 = this[m$4].end();
1854
- if (e$7) {
1855
- for (const i$8 of this.pipes) i$8.dest.write(e$7);
1856
- super.emit("data", e$7);
1840
+ const l = super.emit(t, e, ...i);
1841
+ return this[a](), l;
1842
+ }
1843
+ [D$1](t) {
1844
+ for (const i of this.pipes) i.dest.write(t) === false && this.pause();
1845
+ const e = super.emit("data", t);
1846
+ return this[a](), e;
1847
+ }
1848
+ [F]() {
1849
+ this[c$1] || (this[c$1] = true, this.readable = false, this[d$1] ? b$1(() => this[R]()) : this[R]());
1850
+ }
1851
+ [R]() {
1852
+ if (this[m]) {
1853
+ const e = this[m].end();
1854
+ if (e) {
1855
+ for (const i of this.pipes) i.dest.write(e);
1856
+ super.emit("data", e);
1857
1857
  }
1858
1858
  }
1859
- for (const e$7 of this.pipes) e$7.end();
1860
- const t$7 = super.emit("end");
1861
- return this.removeAllListeners("end"), t$7;
1859
+ for (const e of this.pipes) e.end();
1860
+ const t = super.emit("end");
1861
+ return this.removeAllListeners("end"), t;
1862
1862
  }
1863
1863
  collect() {
1864
- const t$7 = [];
1865
- this[r] || (t$7.dataLength = 0);
1866
- const e$7 = this.promise();
1867
- return this.on("data", (i$8) => {
1868
- t$7.push(i$8), this[r] || (t$7.dataLength += i$8.length);
1869
- }), e$7.then(() => t$7);
1864
+ const t = [];
1865
+ this[r] || (t.dataLength = 0);
1866
+ const e = this.promise();
1867
+ return this.on("data", (i) => {
1868
+ t.push(i), this[r] || (t.dataLength += i.length);
1869
+ }), e.then(() => t);
1870
1870
  }
1871
1871
  concat() {
1872
- return this[r] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this.collect().then((t$7) => this[r] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this[h$2] ? t$7.join("") : Buffer.concat(t$7, t$7.dataLength));
1872
+ return this[r] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this.collect().then((t) => this[r] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this[h$2] ? t.join("") : Buffer.concat(t, t.dataLength));
1873
1873
  }
1874
1874
  promise() {
1875
- return new Promise((t$7, e$7) => {
1876
- this.on(n$4, () => e$7(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (i$8) => e$7(i$8)), this.on("end", () => t$7());
1875
+ return new Promise((t, e) => {
1876
+ this.on(n, () => e(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (i) => e(i)), this.on("end", () => t());
1877
1877
  });
1878
1878
  }
1879
1879
  [$]() {
1880
1880
  return { next: () => {
1881
- const e$7 = this.read();
1882
- if (e$7 !== null) return Promise.resolve({
1881
+ const e = this.read();
1882
+ if (e !== null) return Promise.resolve({
1883
1883
  done: false,
1884
- value: e$7
1884
+ value: e
1885
1885
  });
1886
- if (this[u$6]) return Promise.resolve({ done: true });
1887
- let i$8 = null, l$3 = null;
1888
- const f$5 = (g$1) => {
1889
- this.removeListener("data", A$1), this.removeListener("end", O$4), l$3(g$1);
1886
+ if (this[u]) return Promise.resolve({ done: true });
1887
+ let i = null, l = null;
1888
+ const f = (g$1) => {
1889
+ this.removeListener("data", A$1), this.removeListener("end", O), l(g$1);
1890
1890
  }, A$1 = (g$1) => {
1891
- this.removeListener("error", f$5), this.removeListener("end", O$4), this.pause(), i$8({
1891
+ this.removeListener("error", f), this.removeListener("end", O), this.pause(), i({
1892
1892
  value: g$1,
1893
- done: !!this[u$6]
1893
+ done: !!this[u]
1894
1894
  });
1895
- }, O$4 = () => {
1896
- this.removeListener("error", f$5), this.removeListener("data", A$1), i$8({ done: true });
1897
- }, W$1 = () => f$5(/* @__PURE__ */ new Error("stream destroyed"));
1898
- return new Promise((g$1, z$2) => {
1899
- l$3 = z$2, i$8 = g$1, this.once(n$4, W$1), this.once("error", f$5), this.once("end", O$4), this.once("data", A$1);
1895
+ }, O = () => {
1896
+ this.removeListener("error", f), this.removeListener("data", A$1), i({ done: true });
1897
+ }, W$1 = () => f(/* @__PURE__ */ new Error("stream destroyed"));
1898
+ return new Promise((g$1, z) => {
1899
+ l = z, i = g$1, this.once(n, W$1), this.once("error", f), this.once("end", O), this.once("data", A$1);
1900
1900
  });
1901
1901
  } };
1902
1902
  }
1903
- [G$2]() {
1903
+ [G]() {
1904
1904
  return { next: () => {
1905
- const e$7 = this.read();
1905
+ const e = this.read();
1906
1906
  return {
1907
- value: e$7,
1908
- done: e$7 === null
1907
+ value: e,
1908
+ done: e === null
1909
1909
  };
1910
1910
  } };
1911
1911
  }
1912
- destroy(t$7) {
1913
- return this[n$4] ? (t$7 ? this.emit("error", t$7) : this.emit(n$4), this) : (this[n$4] = true, this.buffer.length = 0, this[s$8] = 0, typeof this.close == "function" && !this[w$3] && this.close(), t$7 ? this.emit("error", t$7) : this.emit(n$4), this);
1912
+ destroy(t) {
1913
+ return this[n] ? (t ? this.emit("error", t) : this.emit(n), this) : (this[n] = true, this.buffer.length = 0, this[s] = 0, typeof this.close == "function" && !this[w] && this.close(), t ? this.emit("error", t) : this.emit(n), this);
1914
1914
  }
1915
- static isStream(t$7) {
1916
- return !!t$7 && (t$7 instanceof q$2 || t$7 instanceof x$1 || t$7 instanceof Y && (typeof t$7.pipe == "function" || typeof t$7.write == "function" && typeof t$7.end == "function"));
1915
+ static isStream(t) {
1916
+ return !!t && (t instanceof q || t instanceof x$1 || t instanceof Y && (typeof t.pipe == "function" || typeof t.write == "function" && typeof t.end == "function"));
1917
1917
  }
1918
1918
  }, j;
1919
1919
  }
@@ -1921,151 +1921,151 @@ var C;
1921
1921
  function J() {
1922
1922
  if (C) return i$3;
1923
1923
  C = 1;
1924
- const w$3 = j$1, n$4 = P.Buffer, z$2 = O$2, u$6 = i$3.constants = T(), L = tt(), E$2 = n$4.concat, c$6 = Symbol("_superWrite");
1924
+ const w = j$1, n = P.Buffer, z = O$2, u = i$3.constants = T(), L = tt(), E = n.concat, c$1 = Symbol("_superWrite");
1925
1925
  class d$1 extends Error {
1926
- constructor(s$8) {
1927
- super("zlib: " + s$8.message), this.code = s$8.code, this.errno = s$8.errno, this.code || (this.code = "ZLIB_ERROR"), this.message = "zlib: " + s$8.message, Error.captureStackTrace(this, this.constructor);
1926
+ constructor(s) {
1927
+ super("zlib: " + s.message), this.code = s.code, this.errno = s.errno, this.code || (this.code = "ZLIB_ERROR"), this.message = "zlib: " + s.message, Error.captureStackTrace(this, this.constructor);
1928
1928
  }
1929
1929
  get name() {
1930
1930
  return "ZlibError";
1931
1931
  }
1932
1932
  }
1933
- const Z = Symbol("opts"), p$2 = Symbol("flushFlag"), I$1 = Symbol("finishFlushFlag"), y$4 = Symbol("fullFlushFlag"), t$7 = Symbol("handle"), _$2 = Symbol("onError"), f$5 = Symbol("sawError"), F$4 = Symbol("level"), S$2 = Symbol("strategy"), g$1 = Symbol("ended");
1933
+ const Z = Symbol("opts"), p = Symbol("flushFlag"), I$1 = Symbol("finishFlushFlag"), y = Symbol("fullFlushFlag"), t = Symbol("handle"), _ = Symbol("onError"), f = Symbol("sawError"), F = Symbol("level"), S = Symbol("strategy"), g$1 = Symbol("ended");
1934
1934
  class x$1 extends L {
1935
- constructor(s$8, e$7) {
1936
- if (!s$8 || typeof s$8 != "object") throw new TypeError("invalid options for ZlibBase constructor");
1937
- super(s$8), this[f$5] = false, this[g$1] = false, this[Z] = s$8, this[p$2] = s$8.flush, this[I$1] = s$8.finishFlush;
1935
+ constructor(s, e) {
1936
+ if (!s || typeof s != "object") throw new TypeError("invalid options for ZlibBase constructor");
1937
+ super(s), this[f] = false, this[g$1] = false, this[Z] = s, this[p] = s.flush, this[I$1] = s.finishFlush;
1938
1938
  try {
1939
- this[t$7] = new z$2[e$7](s$8);
1940
- } catch (i$8) {
1941
- throw new d$1(i$8);
1939
+ this[t] = new z[e](s);
1940
+ } catch (i) {
1941
+ throw new d$1(i);
1942
1942
  }
1943
- this[_$2] = (i$8) => {
1944
- this[f$5] || (this[f$5] = true, this.close(), this.emit("error", i$8));
1945
- }, this[t$7].on("error", (i$8) => this[_$2](new d$1(i$8))), this.once("end", () => this.close);
1943
+ this[_] = (i) => {
1944
+ this[f] || (this[f] = true, this.close(), this.emit("error", i));
1945
+ }, this[t].on("error", (i) => this[_](new d$1(i))), this.once("end", () => this.close);
1946
1946
  }
1947
1947
  close() {
1948
- this[t$7] && (this[t$7].close(), this[t$7] = null, this.emit("close"));
1948
+ this[t] && (this[t].close(), this[t] = null, this.emit("close"));
1949
1949
  }
1950
1950
  reset() {
1951
- if (!this[f$5]) return w$3(this[t$7], "zlib binding closed"), this[t$7].reset();
1951
+ if (!this[f]) return w(this[t], "zlib binding closed"), this[t].reset();
1952
1952
  }
1953
- flush(s$8) {
1954
- this.ended || (typeof s$8 != "number" && (s$8 = this[y$4]), this.write(Object.assign(n$4.alloc(0), { [p$2]: s$8 })));
1953
+ flush(s) {
1954
+ this.ended || (typeof s != "number" && (s = this[y]), this.write(Object.assign(n.alloc(0), { [p]: s })));
1955
1955
  }
1956
- end(s$8, e$7, i$8) {
1957
- return s$8 && this.write(s$8, e$7), this.flush(this[I$1]), this[g$1] = true, super.end(null, null, i$8);
1956
+ end(s, e, i) {
1957
+ return s && this.write(s, e), this.flush(this[I$1]), this[g$1] = true, super.end(null, null, i);
1958
1958
  }
1959
1959
  get ended() {
1960
1960
  return this[g$1];
1961
1961
  }
1962
- write(s$8, e$7, i$8) {
1963
- if (typeof e$7 == "function" && (i$8 = e$7, e$7 = "utf8"), typeof s$8 == "string" && (s$8 = n$4.from(s$8, e$7)), this[f$5]) return;
1964
- w$3(this[t$7], "zlib binding closed");
1965
- const m$4 = this[t$7]._handle, R$3 = m$4.close;
1966
- m$4.close = () => {};
1967
- const G$2 = this[t$7].close;
1968
- this[t$7].close = () => {}, n$4.concat = (l$3) => l$3;
1962
+ write(s, e, i) {
1963
+ if (typeof e == "function" && (i = e, e = "utf8"), typeof s == "string" && (s = n.from(s, e)), this[f]) return;
1964
+ w(this[t], "zlib binding closed");
1965
+ const m = this[t]._handle, R = m.close;
1966
+ m.close = () => {};
1967
+ const G = this[t].close;
1968
+ this[t].close = () => {}, n.concat = (l) => l;
1969
1969
  let h$2;
1970
1970
  try {
1971
- const l$3 = typeof s$8[p$2] == "number" ? s$8[p$2] : this[p$2];
1972
- h$2 = this[t$7]._processChunk(s$8, l$3), n$4.concat = E$2;
1973
- } catch (l$3) {
1974
- n$4.concat = E$2, this[_$2](new d$1(l$3));
1971
+ const l = typeof s[p] == "number" ? s[p] : this[p];
1972
+ h$2 = this[t]._processChunk(s, l), n.concat = E;
1973
+ } catch (l) {
1974
+ n.concat = E, this[_](new d$1(l));
1975
1975
  } finally {
1976
- this[t$7] && (this[t$7]._handle = m$4, m$4.close = R$3, this[t$7].close = G$2, this[t$7].removeAllListeners("error"));
1976
+ this[t] && (this[t]._handle = m, m.close = R, this[t].close = G, this[t].removeAllListeners("error"));
1977
1977
  }
1978
- this[t$7] && this[t$7].on("error", (l$3) => this[_$2](new d$1(l$3)));
1978
+ this[t] && this[t].on("error", (l) => this[_](new d$1(l)));
1979
1979
  let b$1;
1980
1980
  if (h$2) if (Array.isArray(h$2) && h$2.length > 0) {
1981
- b$1 = this[c$6](n$4.from(h$2[0]));
1982
- for (let l$3 = 1; l$3 < h$2.length; l$3++) b$1 = this[c$6](h$2[l$3]);
1983
- } else b$1 = this[c$6](n$4.from(h$2));
1984
- return i$8 && i$8(), b$1;
1985
- }
1986
- [c$6](s$8) {
1987
- return super.write(s$8);
1988
- }
1989
- }
1990
- class a$11 extends x$1 {
1991
- constructor(s$8, e$7) {
1992
- s$8 = s$8 || {}, s$8.flush = s$8.flush || u$6.Z_NO_FLUSH, s$8.finishFlush = s$8.finishFlush || u$6.Z_FINISH, super(s$8, e$7), this[y$4] = u$6.Z_FULL_FLUSH, this[F$4] = s$8.level, this[S$2] = s$8.strategy;
1993
- }
1994
- params(s$8, e$7) {
1995
- if (!this[f$5]) {
1996
- if (!this[t$7]) throw new Error("cannot switch params when binding is closed");
1997
- if (!this[t$7].params) throw new Error("not supported in this implementation");
1998
- if (this[F$4] !== s$8 || this[S$2] !== e$7) {
1999
- this.flush(u$6.Z_SYNC_FLUSH), w$3(this[t$7], "zlib binding closed");
2000
- const i$8 = this[t$7].flush;
2001
- this[t$7].flush = (m$4, R$3) => {
2002
- this.flush(m$4), R$3();
1981
+ b$1 = this[c$1](n.from(h$2[0]));
1982
+ for (let l = 1; l < h$2.length; l++) b$1 = this[c$1](h$2[l]);
1983
+ } else b$1 = this[c$1](n.from(h$2));
1984
+ return i && i(), b$1;
1985
+ }
1986
+ [c$1](s) {
1987
+ return super.write(s);
1988
+ }
1989
+ }
1990
+ class a extends x$1 {
1991
+ constructor(s, e) {
1992
+ s = s || {}, s.flush = s.flush || u.Z_NO_FLUSH, s.finishFlush = s.finishFlush || u.Z_FINISH, super(s, e), this[y] = u.Z_FULL_FLUSH, this[F] = s.level, this[S] = s.strategy;
1993
+ }
1994
+ params(s, e) {
1995
+ if (!this[f]) {
1996
+ if (!this[t]) throw new Error("cannot switch params when binding is closed");
1997
+ if (!this[t].params) throw new Error("not supported in this implementation");
1998
+ if (this[F] !== s || this[S] !== e) {
1999
+ this.flush(u.Z_SYNC_FLUSH), w(this[t], "zlib binding closed");
2000
+ const i = this[t].flush;
2001
+ this[t].flush = (m, R) => {
2002
+ this.flush(m), R();
2003
2003
  };
2004
2004
  try {
2005
- this[t$7].params(s$8, e$7);
2005
+ this[t].params(s, e);
2006
2006
  } finally {
2007
- this[t$7].flush = i$8;
2007
+ this[t].flush = i;
2008
2008
  }
2009
- this[t$7] && (this[F$4] = s$8, this[S$2] = e$7);
2009
+ this[t] && (this[F] = s, this[S] = e);
2010
2010
  }
2011
2011
  }
2012
2012
  }
2013
2013
  }
2014
- class q$2 extends a$11 {
2015
- constructor(s$8) {
2016
- super(s$8, "Deflate");
2014
+ class q extends a {
2015
+ constructor(s) {
2016
+ super(s, "Deflate");
2017
2017
  }
2018
2018
  }
2019
- class D$1 extends a$11 {
2020
- constructor(s$8) {
2021
- super(s$8, "Inflate");
2019
+ class D$1 extends a {
2020
+ constructor(s) {
2021
+ super(s, "Inflate");
2022
2022
  }
2023
2023
  }
2024
2024
  const B$1 = Symbol("_portable");
2025
- class $ extends a$11 {
2026
- constructor(s$8) {
2027
- super(s$8, "Gzip"), this[B$1] = s$8 && !!s$8.portable;
2025
+ class $ extends a {
2026
+ constructor(s) {
2027
+ super(s, "Gzip"), this[B$1] = s && !!s.portable;
2028
2028
  }
2029
- [c$6](s$8) {
2030
- return this[B$1] ? (this[B$1] = false, s$8[9] = 255, super[c$6](s$8)) : super[c$6](s$8);
2029
+ [c$1](s) {
2030
+ return this[B$1] ? (this[B$1] = false, s[9] = 255, super[c$1](s)) : super[c$1](s);
2031
2031
  }
2032
2032
  }
2033
- class N$1 extends a$11 {
2034
- constructor(s$8) {
2035
- super(s$8, "Gunzip");
2033
+ class N$1 extends a {
2034
+ constructor(s) {
2035
+ super(s, "Gunzip");
2036
2036
  }
2037
2037
  }
2038
- class H$3 extends a$11 {
2039
- constructor(s$8) {
2040
- super(s$8, "DeflateRaw");
2038
+ class H extends a {
2039
+ constructor(s) {
2040
+ super(s, "DeflateRaw");
2041
2041
  }
2042
2042
  }
2043
- let T$1$1 = class T$2 extends a$11 {
2044
- constructor(s$8) {
2045
- super(s$8, "InflateRaw");
2043
+ let T$1$1 = class T extends a {
2044
+ constructor(s) {
2045
+ super(s, "InflateRaw");
2046
2046
  }
2047
2047
  };
2048
- class U$1 extends a$11 {
2049
- constructor(s$8) {
2050
- super(s$8, "Unzip");
2048
+ class U$1 extends a {
2049
+ constructor(s) {
2050
+ super(s, "Unzip");
2051
2051
  }
2052
2052
  }
2053
- class O$4 extends x$1 {
2054
- constructor(s$8, e$7) {
2055
- s$8 = s$8 || {}, s$8.flush = s$8.flush || u$6.BROTLI_OPERATION_PROCESS, s$8.finishFlush = s$8.finishFlush || u$6.BROTLI_OPERATION_FINISH, super(s$8, e$7), this[y$4] = u$6.BROTLI_OPERATION_FLUSH;
2053
+ class O extends x$1 {
2054
+ constructor(s, e) {
2055
+ s = s || {}, s.flush = s.flush || u.BROTLI_OPERATION_PROCESS, s.finishFlush = s.finishFlush || u.BROTLI_OPERATION_FINISH, super(s, e), this[y] = u.BROTLI_OPERATION_FLUSH;
2056
2056
  }
2057
2057
  }
2058
- class v$3 extends O$4 {
2059
- constructor(s$8) {
2060
- super(s$8, "BrotliCompress");
2058
+ class v extends O {
2059
+ constructor(s) {
2060
+ super(s, "BrotliCompress");
2061
2061
  }
2062
2062
  }
2063
- class A$1 extends O$4 {
2064
- constructor(s$8) {
2065
- super(s$8, "BrotliDecompress");
2063
+ class A$1 extends O {
2064
+ constructor(s) {
2065
+ super(s, "BrotliDecompress");
2066
2066
  }
2067
2067
  }
2068
- return i$3.Deflate = q$2, i$3.Inflate = D$1, i$3.Gzip = $, i$3.Gunzip = N$1, i$3.DeflateRaw = H$3, i$3.InflateRaw = T$1$1, i$3.Unzip = U$1, typeof z$2.BrotliCompress == "function" ? (i$3.BrotliCompress = v$3, i$3.BrotliDecompress = A$1) : i$3.BrotliCompress = i$3.BrotliDecompress = class {
2068
+ return i$3.Deflate = q, i$3.Inflate = D$1, i$3.Gzip = $, i$3.Gunzip = N$1, i$3.DeflateRaw = H, i$3.InflateRaw = T$1$1, i$3.Unzip = U$1, typeof z.BrotliCompress == "function" ? (i$3.BrotliCompress = v, i$3.BrotliDecompress = A$1) : i$3.BrotliCompress = i$3.BrotliDecompress = class {
2069
2069
  constructor() {
2070
2070
  throw new Error("Brotli is not supported in this version of Node.js");
2071
2071
  }
@@ -2075,174 +2075,174 @@ var O$1, F$2;
2075
2075
  function rt() {
2076
2076
  if (F$2) return O$1;
2077
2077
  F$2 = 1;
2078
- const P$2 = c$4(), $ = E(), v$3 = nt, W$1 = c$3(), G$2 = 1024 * 1024, k$2 = u$3(), C$2 = f$2(), x$1 = J(), { nextTick: j$3 } = nt$1, B$1 = Buffer.from([31, 139]), h$2 = Symbol("state"), d$1 = Symbol("writeEntry"), a$11 = Symbol("readEntry"), I$1 = Symbol("nextEntry"), U$1 = Symbol("processEntry"), l$3 = Symbol("extendedHeader"), y$4 = Symbol("globalExtendedHeader"), c$6 = Symbol("meta"), H$3 = Symbol("emitMeta"), n$4 = Symbol("buffer"), f$5 = Symbol("queue"), u$6 = Symbol("ended"), L = Symbol("emittedEnd"), b$1 = Symbol("emit"), r = Symbol("unzip"), _$2 = Symbol("consumeChunk"), g$1 = Symbol("consumeChunkSub"), q$2 = Symbol("consumeBody"), z$2 = Symbol("consumeMeta"), Y = Symbol("consumeHeader"), N$1 = Symbol("consuming"), D$1 = Symbol("bufferConcat"), M$1 = Symbol("maybeEnd"), S$2 = Symbol("writing"), m$4 = Symbol("aborted"), T$2 = Symbol("onDone"), E$1$1 = Symbol("sawValidEntry"), R$3 = Symbol("sawNullBlock"), A$1 = Symbol("sawEOF"), V$1 = Symbol("closeStream"), K$1 = (X$2) => true;
2079
- return O$1 = P$2(class extends v$3 {
2080
- constructor(t$7) {
2081
- t$7 = t$7 || {}, super(t$7), this.file = t$7.file || "", this[E$1$1] = null, this.on(T$2, (s$8) => {
2078
+ const P$2 = c$4(), $ = E(), v = nt, W$1 = c$3(), G = 1024 * 1024, k = u$3(), C = f$2(), x$1 = J(), { nextTick: j } = nt$1, B$1 = Buffer.from([31, 139]), h$2 = Symbol("state"), d$1 = Symbol("writeEntry"), a = Symbol("readEntry"), I$1 = Symbol("nextEntry"), U$1 = Symbol("processEntry"), l = Symbol("extendedHeader"), y = Symbol("globalExtendedHeader"), c$1 = Symbol("meta"), H = Symbol("emitMeta"), n = Symbol("buffer"), f = Symbol("queue"), u = Symbol("ended"), L = Symbol("emittedEnd"), b$1 = Symbol("emit"), r = Symbol("unzip"), _ = Symbol("consumeChunk"), g$1 = Symbol("consumeChunkSub"), q = Symbol("consumeBody"), z = Symbol("consumeMeta"), Y = Symbol("consumeHeader"), N$1 = Symbol("consuming"), D$1 = Symbol("bufferConcat"), M$1 = Symbol("maybeEnd"), S = Symbol("writing"), m = Symbol("aborted"), T = Symbol("onDone"), E$1$1 = Symbol("sawValidEntry"), R = Symbol("sawNullBlock"), A$1 = Symbol("sawEOF"), V$1 = Symbol("closeStream"), K$1 = (X) => true;
2079
+ return O$1 = P$2(class extends v {
2080
+ constructor(t) {
2081
+ t = t || {}, super(t), this.file = t.file || "", this[E$1$1] = null, this.on(T, (s) => {
2082
2082
  (this[h$2] === "begin" || this[E$1$1] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
2083
- }), t$7.ondone ? this.on(T$2, t$7.ondone) : this.on(T$2, (s$8) => {
2083
+ }), t.ondone ? this.on(T, t.ondone) : this.on(T, (s) => {
2084
2084
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
2085
- }), this.strict = !!t$7.strict, this.maxMetaEntrySize = t$7.maxMetaEntrySize || G$2, this.filter = typeof t$7.filter == "function" ? t$7.filter : K$1;
2086
- const i$8 = t$7.file && (t$7.file.endsWith(".tar.br") || t$7.file.endsWith(".tbr"));
2087
- this.brotli = !t$7.gzip && t$7.brotli !== void 0 ? t$7.brotli : i$8 ? void 0 : false, this.writable = true, this.readable = false, this[f$5] = new W$1(), this[n$4] = null, this[a$11] = null, this[d$1] = null, this[h$2] = "begin", this[c$6] = "", this[l$3] = null, this[y$4] = null, this[u$6] = false, this[r] = null, this[m$4] = false, this[R$3] = false, this[A$1] = false, this.on("end", () => this[V$1]()), typeof t$7.onwarn == "function" && this.on("warn", t$7.onwarn), typeof t$7.onentry == "function" && this.on("entry", t$7.onentry);
2085
+ }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || G, this.filter = typeof t.filter == "function" ? t.filter : K$1;
2086
+ const i = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
2087
+ this.brotli = !t.gzip && t.brotli !== void 0 ? t.brotli : i ? void 0 : false, this.writable = true, this.readable = false, this[f] = new W$1(), this[n] = null, this[a] = null, this[d$1] = null, this[h$2] = "begin", this[c$1] = "", this[l] = null, this[y] = null, this[u] = false, this[r] = null, this[m] = false, this[R] = false, this[A$1] = false, this.on("end", () => this[V$1]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onentry == "function" && this.on("entry", t.onentry);
2088
2088
  }
2089
- [Y](t$7, i$8) {
2089
+ [Y](t, i) {
2090
2090
  this[E$1$1] === null && (this[E$1$1] = false);
2091
- let s$8;
2091
+ let s;
2092
2092
  try {
2093
- s$8 = new $(t$7, i$8, this[l$3], this[y$4]);
2094
- } catch (o$6) {
2095
- return this.warn("TAR_ENTRY_INVALID", o$6);
2093
+ s = new $(t, i, this[l], this[y]);
2094
+ } catch (o) {
2095
+ return this.warn("TAR_ENTRY_INVALID", o);
2096
2096
  }
2097
- if (s$8.nullBlock) this[R$3] ? (this[A$1] = true, this[h$2] === "begin" && (this[h$2] = "header"), this[b$1]("eof")) : (this[R$3] = true, this[b$1]("nullBlock"));
2098
- else if (this[R$3] = false, !s$8.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: s$8 });
2099
- else if (!s$8.path) this.warn("TAR_ENTRY_INVALID", "path is required", { header: s$8 });
2097
+ if (s.nullBlock) this[R] ? (this[A$1] = true, this[h$2] === "begin" && (this[h$2] = "header"), this[b$1]("eof")) : (this[R] = true, this[b$1]("nullBlock"));
2098
+ else if (this[R] = false, !s.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: s });
2099
+ else if (!s.path) this.warn("TAR_ENTRY_INVALID", "path is required", { header: s });
2100
2100
  else {
2101
- const o$6 = s$8.type;
2102
- if (/^(Symbolic)?Link$/.test(o$6) && !s$8.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath required", { header: s$8 });
2103
- else if (!/^(Symbolic)?Link$/.test(o$6) && s$8.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: s$8 });
2101
+ const o = s.type;
2102
+ if (/^(Symbolic)?Link$/.test(o) && !s.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath required", { header: s });
2103
+ else if (!/^(Symbolic)?Link$/.test(o) && s.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: s });
2104
2104
  else {
2105
- const e$7 = this[d$1] = new k$2(s$8, this[l$3], this[y$4]);
2106
- if (!this[E$1$1]) if (e$7.remain) {
2107
- const w$3 = () => {
2108
- e$7.invalid || (this[E$1$1] = true);
2105
+ const e = this[d$1] = new k(s, this[l], this[y]);
2106
+ if (!this[E$1$1]) if (e.remain) {
2107
+ const w = () => {
2108
+ e.invalid || (this[E$1$1] = true);
2109
2109
  };
2110
- e$7.on("end", w$3);
2110
+ e.on("end", w);
2111
2111
  } else this[E$1$1] = true;
2112
- e$7.meta ? e$7.size > this.maxMetaEntrySize ? (e$7.ignore = true, this[b$1]("ignoredEntry", e$7), this[h$2] = "ignore", e$7.resume()) : e$7.size > 0 && (this[c$6] = "", e$7.on("data", (w$3) => this[c$6] += w$3), this[h$2] = "meta") : (this[l$3] = null, e$7.ignore = e$7.ignore || !this.filter(e$7.path, e$7), e$7.ignore ? (this[b$1]("ignoredEntry", e$7), this[h$2] = e$7.remain ? "ignore" : "header", e$7.resume()) : (e$7.remain ? this[h$2] = "body" : (this[h$2] = "header", e$7.end()), this[a$11] ? this[f$5].push(e$7) : (this[f$5].push(e$7), this[I$1]())));
2112
+ e.meta ? e.size > this.maxMetaEntrySize ? (e.ignore = true, this[b$1]("ignoredEntry", e), this[h$2] = "ignore", e.resume()) : e.size > 0 && (this[c$1] = "", e.on("data", (w) => this[c$1] += w), this[h$2] = "meta") : (this[l] = null, e.ignore = e.ignore || !this.filter(e.path, e), e.ignore ? (this[b$1]("ignoredEntry", e), this[h$2] = e.remain ? "ignore" : "header", e.resume()) : (e.remain ? this[h$2] = "body" : (this[h$2] = "header", e.end()), this[a] ? this[f].push(e) : (this[f].push(e), this[I$1]())));
2113
2113
  }
2114
2114
  }
2115
2115
  }
2116
2116
  [V$1]() {
2117
- j$3(() => this.emit("close"));
2117
+ j(() => this.emit("close"));
2118
2118
  }
2119
- [U$1](t$7) {
2120
- let i$8 = true;
2121
- return t$7 ? Array.isArray(t$7) ? this.emit.apply(this, t$7) : (this[a$11] = t$7, this.emit("entry", t$7), t$7.emittedEnd || (t$7.on("end", (s$8) => this[I$1]()), i$8 = false)) : (this[a$11] = null, i$8 = false), i$8;
2119
+ [U$1](t) {
2120
+ let i = true;
2121
+ return t ? Array.isArray(t) ? this.emit.apply(this, t) : (this[a] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", (s) => this[I$1]()), i = false)) : (this[a] = null, i = false), i;
2122
2122
  }
2123
2123
  [I$1]() {
2124
2124
  do ;
2125
- while (this[U$1](this[f$5].shift()));
2126
- if (!this[f$5].length) {
2127
- const t$7 = this[a$11];
2128
- !t$7 || t$7.flowing || t$7.size === t$7.remain ? this[S$2] || this.emit("drain") : t$7.once("drain", (s$8) => this.emit("drain"));
2125
+ while (this[U$1](this[f].shift()));
2126
+ if (!this[f].length) {
2127
+ const t = this[a];
2128
+ !t || t.flowing || t.size === t.remain ? this[S] || this.emit("drain") : t.once("drain", (s) => this.emit("drain"));
2129
2129
  }
2130
2130
  }
2131
- [q$2](t$7, i$8) {
2132
- const s$8 = this[d$1], o$6 = s$8.blockRemain, e$7 = o$6 >= t$7.length && i$8 === 0 ? t$7 : t$7.slice(i$8, i$8 + o$6);
2133
- return s$8.write(e$7), s$8.blockRemain || (this[h$2] = "header", this[d$1] = null, s$8.end()), e$7.length;
2131
+ [q](t, i) {
2132
+ const s = this[d$1], o = s.blockRemain, e = o >= t.length && i === 0 ? t : t.slice(i, i + o);
2133
+ return s.write(e), s.blockRemain || (this[h$2] = "header", this[d$1] = null, s.end()), e.length;
2134
2134
  }
2135
- [z$2](t$7, i$8) {
2136
- const s$8 = this[d$1], o$6 = this[q$2](t$7, i$8);
2137
- return this[d$1] || this[H$3](s$8), o$6;
2135
+ [z](t, i) {
2136
+ const s = this[d$1], o = this[q](t, i);
2137
+ return this[d$1] || this[H](s), o;
2138
2138
  }
2139
- [b$1](t$7, i$8, s$8) {
2140
- !this[f$5].length && !this[a$11] ? this.emit(t$7, i$8, s$8) : this[f$5].push([
2141
- t$7,
2142
- i$8,
2143
- s$8
2139
+ [b$1](t, i, s) {
2140
+ !this[f].length && !this[a] ? this.emit(t, i, s) : this[f].push([
2141
+ t,
2142
+ i,
2143
+ s
2144
2144
  ]);
2145
2145
  }
2146
- [H$3](t$7) {
2147
- switch (this[b$1]("meta", this[c$6]), t$7.type) {
2146
+ [H](t) {
2147
+ switch (this[b$1]("meta", this[c$1]), t.type) {
2148
2148
  case "ExtendedHeader":
2149
2149
  case "OldExtendedHeader":
2150
- this[l$3] = C$2.parse(this[c$6], this[l$3], false);
2150
+ this[l] = C.parse(this[c$1], this[l], false);
2151
2151
  break;
2152
2152
  case "GlobalExtendedHeader":
2153
- this[y$4] = C$2.parse(this[c$6], this[y$4], true);
2153
+ this[y] = C.parse(this[c$1], this[y], true);
2154
2154
  break;
2155
2155
  case "NextFileHasLongPath":
2156
2156
  case "OldGnuLongPath":
2157
- this[l$3] = this[l$3] || Object.create(null), this[l$3].path = this[c$6].replace(/\0.*/, "");
2157
+ this[l] = this[l] || Object.create(null), this[l].path = this[c$1].replace(/\0.*/, "");
2158
2158
  break;
2159
2159
  case "NextFileHasLongLinkpath":
2160
- this[l$3] = this[l$3] || Object.create(null), this[l$3].linkpath = this[c$6].replace(/\0.*/, "");
2160
+ this[l] = this[l] || Object.create(null), this[l].linkpath = this[c$1].replace(/\0.*/, "");
2161
2161
  break;
2162
- default: throw new Error("unknown meta: " + t$7.type);
2162
+ default: throw new Error("unknown meta: " + t.type);
2163
2163
  }
2164
2164
  }
2165
- abort(t$7) {
2166
- this[m$4] = true, this.emit("abort", t$7), this.warn("TAR_ABORT", t$7, { recoverable: false });
2167
- }
2168
- write(t$7) {
2169
- if (this[m$4]) return;
2170
- if ((this[r] === null || this.brotli === void 0 && this[r] === false) && t$7) {
2171
- if (this[n$4] && (t$7 = Buffer.concat([this[n$4], t$7]), this[n$4] = null), t$7.length < B$1.length) return this[n$4] = t$7, true;
2172
- for (let e$7 = 0; this[r] === null && e$7 < B$1.length; e$7++) t$7[e$7] !== B$1[e$7] && (this[r] = false);
2173
- const o$6 = this.brotli === void 0;
2174
- if (this[r] === false && o$6) if (t$7.length < 512) if (this[u$6]) this.brotli = true;
2175
- else return this[n$4] = t$7, true;
2165
+ abort(t) {
2166
+ this[m] = true, this.emit("abort", t), this.warn("TAR_ABORT", t, { recoverable: false });
2167
+ }
2168
+ write(t) {
2169
+ if (this[m]) return;
2170
+ if ((this[r] === null || this.brotli === void 0 && this[r] === false) && t) {
2171
+ if (this[n] && (t = Buffer.concat([this[n], t]), this[n] = null), t.length < B$1.length) return this[n] = t, true;
2172
+ for (let e = 0; this[r] === null && e < B$1.length; e++) t[e] !== B$1[e] && (this[r] = false);
2173
+ const o = this.brotli === void 0;
2174
+ if (this[r] === false && o) if (t.length < 512) if (this[u]) this.brotli = true;
2175
+ else return this[n] = t, true;
2176
2176
  else try {
2177
- new $(t$7.slice(0, 512)), this.brotli = !1;
2177
+ new $(t.slice(0, 512)), this.brotli = !1;
2178
2178
  } catch {
2179
2179
  this.brotli = true;
2180
2180
  }
2181
2181
  if (this[r] === null || this[r] === false && this.brotli) {
2182
- const e$7 = this[u$6];
2183
- this[u$6] = false, this[r] = this[r] === null ? new x$1.Unzip() : new x$1.BrotliDecompress(), this[r].on("data", (p$2) => this[_$2](p$2)), this[r].on("error", (p$2) => this.abort(p$2)), this[r].on("end", (p$2) => {
2184
- this[u$6] = true, this[_$2]();
2185
- }), this[S$2] = true;
2186
- const w$3 = this[r][e$7 ? "end" : "write"](t$7);
2187
- return this[S$2] = false, w$3;
2182
+ const e = this[u];
2183
+ this[u] = false, this[r] = this[r] === null ? new x$1.Unzip() : new x$1.BrotliDecompress(), this[r].on("data", (p) => this[_](p)), this[r].on("error", (p) => this.abort(p)), this[r].on("end", (p) => {
2184
+ this[u] = true, this[_]();
2185
+ }), this[S] = true;
2186
+ const w = this[r][e ? "end" : "write"](t);
2187
+ return this[S] = false, w;
2188
2188
  }
2189
2189
  }
2190
- this[S$2] = true, this[r] ? this[r].write(t$7) : this[_$2](t$7), this[S$2] = false;
2191
- const s$8 = this[f$5].length ? false : this[a$11] ? this[a$11].flowing : true;
2192
- return !s$8 && !this[f$5].length && this[a$11].once("drain", (o$6) => this.emit("drain")), s$8;
2190
+ this[S] = true, this[r] ? this[r].write(t) : this[_](t), this[S] = false;
2191
+ const s = this[f].length ? false : this[a] ? this[a].flowing : true;
2192
+ return !s && !this[f].length && this[a].once("drain", (o) => this.emit("drain")), s;
2193
2193
  }
2194
- [D$1](t$7) {
2195
- t$7 && !this[m$4] && (this[n$4] = this[n$4] ? Buffer.concat([this[n$4], t$7]) : t$7);
2194
+ [D$1](t) {
2195
+ t && !this[m] && (this[n] = this[n] ? Buffer.concat([this[n], t]) : t);
2196
2196
  }
2197
2197
  [M$1]() {
2198
- if (this[u$6] && !this[L] && !this[m$4] && !this[N$1]) {
2198
+ if (this[u] && !this[L] && !this[m] && !this[N$1]) {
2199
2199
  this[L] = true;
2200
- const t$7 = this[d$1];
2201
- if (t$7 && t$7.blockRemain) {
2202
- const i$8 = this[n$4] ? this[n$4].length : 0;
2203
- this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t$7.blockRemain} more bytes, only ${i$8} available)`, { entry: t$7 }), this[n$4] && t$7.write(this[n$4]), t$7.end();
2200
+ const t = this[d$1];
2201
+ if (t && t.blockRemain) {
2202
+ const i = this[n] ? this[n].length : 0;
2203
+ this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t.blockRemain} more bytes, only ${i} available)`, { entry: t }), this[n] && t.write(this[n]), t.end();
2204
2204
  }
2205
- this[b$1](T$2);
2205
+ this[b$1](T);
2206
2206
  }
2207
2207
  }
2208
- [_$2](t$7) {
2209
- if (this[N$1]) this[D$1](t$7);
2210
- else if (!t$7 && !this[n$4]) this[M$1]();
2208
+ [_](t) {
2209
+ if (this[N$1]) this[D$1](t);
2210
+ else if (!t && !this[n]) this[M$1]();
2211
2211
  else {
2212
- if (this[N$1] = true, this[n$4]) {
2213
- this[D$1](t$7);
2214
- const i$8 = this[n$4];
2215
- this[n$4] = null, this[g$1](i$8);
2216
- } else this[g$1](t$7);
2217
- for (; this[n$4] && this[n$4].length >= 512 && !this[m$4] && !this[A$1];) {
2218
- const i$8 = this[n$4];
2219
- this[n$4] = null, this[g$1](i$8);
2212
+ if (this[N$1] = true, this[n]) {
2213
+ this[D$1](t);
2214
+ const i = this[n];
2215
+ this[n] = null, this[g$1](i);
2216
+ } else this[g$1](t);
2217
+ for (; this[n] && this[n].length >= 512 && !this[m] && !this[A$1];) {
2218
+ const i = this[n];
2219
+ this[n] = null, this[g$1](i);
2220
2220
  }
2221
2221
  this[N$1] = false;
2222
2222
  }
2223
- (!this[n$4] || this[u$6]) && this[M$1]();
2223
+ (!this[n] || this[u]) && this[M$1]();
2224
2224
  }
2225
- [g$1](t$7) {
2226
- let i$8 = 0;
2227
- const s$8 = t$7.length;
2228
- for (; i$8 + 512 <= s$8 && !this[m$4] && !this[A$1];) switch (this[h$2]) {
2225
+ [g$1](t) {
2226
+ let i = 0;
2227
+ const s = t.length;
2228
+ for (; i + 512 <= s && !this[m] && !this[A$1];) switch (this[h$2]) {
2229
2229
  case "begin":
2230
2230
  case "header":
2231
- this[Y](t$7, i$8), i$8 += 512;
2231
+ this[Y](t, i), i += 512;
2232
2232
  break;
2233
2233
  case "ignore":
2234
2234
  case "body":
2235
- i$8 += this[q$2](t$7, i$8);
2235
+ i += this[q](t, i);
2236
2236
  break;
2237
2237
  case "meta":
2238
- i$8 += this[z$2](t$7, i$8);
2238
+ i += this[z](t, i);
2239
2239
  break;
2240
2240
  default: throw new Error("invalid state: " + this[h$2]);
2241
2241
  }
2242
- i$8 < s$8 && (this[n$4] ? this[n$4] = Buffer.concat([t$7.slice(i$8), this[n$4]]) : this[n$4] = t$7.slice(i$8));
2242
+ i < s && (this[n] ? this[n] = Buffer.concat([t.slice(i), this[n]]) : this[n] = t.slice(i));
2243
2243
  }
2244
- end(t$7) {
2245
- this[m$4] || (this[r] ? this[r].end(t$7) : (this[u$6] = true, this.brotli === void 0 && (t$7 = t$7 || Buffer.alloc(0)), this.write(t$7)));
2244
+ end(t) {
2245
+ this[m] || (this[r] ? this[r].end(t) : (this[u] = true, this.brotli === void 0 && (t = t || Buffer.alloc(0)), this.write(t)));
2246
2246
  }
2247
2247
  }), O$1;
2248
2248
  }
@@ -2251,26 +2251,26 @@ var v$1;
2251
2251
  function X() {
2252
2252
  if (v$1) return s$4;
2253
2253
  v$1 = 1;
2254
- const H$3 = tt(), I$1 = nt.EventEmitter, r = nativeFs;
2255
- let R$3 = r.writev;
2256
- if (!R$3) {
2257
- const c$6 = process.binding("fs"), t$7 = c$6.FSReqWrap || c$6.FSReqCallback;
2258
- R$3 = (e$7, i$8, $, A$1) => {
2259
- const G$2 = (J$1, K$1) => A$1(J$1, K$1, i$8), j$3 = new t$7();
2260
- j$3.oncomplete = G$2, c$6.writeBuffers(e$7, i$8, $, j$3);
2254
+ const H = tt(), I$1 = nt.EventEmitter, r = nativeFs;
2255
+ let R = r.writev;
2256
+ if (!R) {
2257
+ const c$1 = process.binding("fs"), t = c$1.FSReqWrap || c$1.FSReqCallback;
2258
+ R = (e, i, $, A$1) => {
2259
+ const G = (J, K$1) => A$1(J, K$1, i), j = new t();
2260
+ j.oncomplete = G, c$1.writeBuffers(e, i, $, j);
2261
2261
  };
2262
2262
  }
2263
- const m$4 = Symbol("_autoClose"), h$2 = Symbol("_close"), g$1 = Symbol("_ended"), s$8 = Symbol("_fd"), B$1 = Symbol("_finished"), o$6 = Symbol("_flags"), x$1 = Symbol("_flush"), z$2 = Symbol("_handleChunk"), T$2 = Symbol("_makeBuf"), q$2 = Symbol("_mode"), E$2 = Symbol("_needDrain"), d$1 = Symbol("_onerror"), y$4 = Symbol("_onopen"), W$1 = Symbol("_onread"), _$2 = Symbol("_onwrite"), a$11 = Symbol("_open"), l$3 = Symbol("_path"), u$6 = Symbol("_pos"), n$4 = Symbol("_queue"), S$2 = Symbol("_read"), M$1 = Symbol("_readSize"), f$5 = Symbol("_reading"), k$2 = Symbol("_remain"), N$1 = Symbol("_size"), C$2 = Symbol("_write"), b$1 = Symbol("_writing"), F$4 = Symbol("_defaultFlag"), p$2 = Symbol("_errored");
2264
- class D$1 extends H$3 {
2265
- constructor(t$7, e$7) {
2266
- if (e$7 = e$7 || {}, super(e$7), this.readable = true, this.writable = false, typeof t$7 != "string") throw new TypeError("path must be a string");
2267
- this[p$2] = false, this[s$8] = typeof e$7.fd == "number" ? e$7.fd : null, this[l$3] = t$7, this[M$1] = e$7.readSize || 16 * 1024 * 1024, this[f$5] = false, this[N$1] = typeof e$7.size == "number" ? e$7.size : Infinity, this[k$2] = this[N$1], this[m$4] = typeof e$7.autoClose == "boolean" ? e$7.autoClose : true, typeof this[s$8] == "number" ? this[S$2]() : this[a$11]();
2263
+ const m = Symbol("_autoClose"), h$2 = Symbol("_close"), g$1 = Symbol("_ended"), s = Symbol("_fd"), B$1 = Symbol("_finished"), o = Symbol("_flags"), x$1 = Symbol("_flush"), z = Symbol("_handleChunk"), T = Symbol("_makeBuf"), q = Symbol("_mode"), E = Symbol("_needDrain"), d$1 = Symbol("_onerror"), y = Symbol("_onopen"), W$1 = Symbol("_onread"), _ = Symbol("_onwrite"), a = Symbol("_open"), l = Symbol("_path"), u = Symbol("_pos"), n = Symbol("_queue"), S = Symbol("_read"), M$1 = Symbol("_readSize"), f = Symbol("_reading"), k = Symbol("_remain"), N$1 = Symbol("_size"), C = Symbol("_write"), b$1 = Symbol("_writing"), F = Symbol("_defaultFlag"), p = Symbol("_errored");
2264
+ class D$1 extends H {
2265
+ constructor(t, e) {
2266
+ if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string") throw new TypeError("path must be a string");
2267
+ this[p] = false, this[s] = typeof e.fd == "number" ? e.fd : null, this[l] = t, this[M$1] = e.readSize || 16 * 1024 * 1024, this[f] = false, this[N$1] = typeof e.size == "number" ? e.size : Infinity, this[k] = this[N$1], this[m] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[s] == "number" ? this[S]() : this[a]();
2268
2268
  }
2269
2269
  get fd() {
2270
- return this[s$8];
2270
+ return this[s];
2271
2271
  }
2272
2272
  get path() {
2273
- return this[l$3];
2273
+ return this[l];
2274
2274
  }
2275
2275
  write() {
2276
2276
  throw new TypeError("this is a readable stream");
@@ -2278,210 +2278,210 @@ function X() {
2278
2278
  end() {
2279
2279
  throw new TypeError("this is a readable stream");
2280
2280
  }
2281
- [a$11]() {
2282
- r.open(this[l$3], "r", (t$7, e$7) => this[y$4](t$7, e$7));
2281
+ [a]() {
2282
+ r.open(this[l], "r", (t, e) => this[y](t, e));
2283
2283
  }
2284
- [y$4](t$7, e$7) {
2285
- t$7 ? this[d$1](t$7) : (this[s$8] = e$7, this.emit("open", e$7), this[S$2]());
2284
+ [y](t, e) {
2285
+ t ? this[d$1](t) : (this[s] = e, this.emit("open", e), this[S]());
2286
2286
  }
2287
- [T$2]() {
2288
- return Buffer.allocUnsafe(Math.min(this[M$1], this[k$2]));
2287
+ [T]() {
2288
+ return Buffer.allocUnsafe(Math.min(this[M$1], this[k]));
2289
2289
  }
2290
- [S$2]() {
2291
- if (!this[f$5]) {
2292
- this[f$5] = true;
2293
- const t$7 = this[T$2]();
2294
- if (t$7.length === 0) return process.nextTick(() => this[W$1](null, 0, t$7));
2295
- r.read(this[s$8], t$7, 0, t$7.length, null, (e$7, i$8, $) => this[W$1](e$7, i$8, $));
2290
+ [S]() {
2291
+ if (!this[f]) {
2292
+ this[f] = true;
2293
+ const t = this[T]();
2294
+ if (t.length === 0) return process.nextTick(() => this[W$1](null, 0, t));
2295
+ r.read(this[s], t, 0, t.length, null, (e, i, $) => this[W$1](e, i, $));
2296
2296
  }
2297
2297
  }
2298
- [W$1](t$7, e$7, i$8) {
2299
- this[f$5] = false, t$7 ? this[d$1](t$7) : this[z$2](e$7, i$8) && this[S$2]();
2298
+ [W$1](t, e, i) {
2299
+ this[f] = false, t ? this[d$1](t) : this[z](e, i) && this[S]();
2300
2300
  }
2301
2301
  [h$2]() {
2302
- if (this[m$4] && typeof this[s$8] == "number") {
2303
- const t$7 = this[s$8];
2304
- this[s$8] = null, r.close(t$7, (e$7) => e$7 ? this.emit("error", e$7) : this.emit("close"));
2302
+ if (this[m] && typeof this[s] == "number") {
2303
+ const t = this[s];
2304
+ this[s] = null, r.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
2305
2305
  }
2306
2306
  }
2307
- [d$1](t$7) {
2308
- this[f$5] = true, this[h$2](), this.emit("error", t$7);
2307
+ [d$1](t) {
2308
+ this[f] = true, this[h$2](), this.emit("error", t);
2309
2309
  }
2310
- [z$2](t$7, e$7) {
2311
- let i$8 = false;
2312
- return this[k$2] -= t$7, t$7 > 0 && (i$8 = super.write(t$7 < e$7.length ? e$7.slice(0, t$7) : e$7)), (t$7 === 0 || this[k$2] <= 0) && (i$8 = false, this[h$2](), super.end()), i$8;
2310
+ [z](t, e) {
2311
+ let i = false;
2312
+ return this[k] -= t, t > 0 && (i = super.write(t < e.length ? e.slice(0, t) : e)), (t === 0 || this[k] <= 0) && (i = false, this[h$2](), super.end()), i;
2313
2313
  }
2314
- emit(t$7, e$7) {
2315
- switch (t$7) {
2314
+ emit(t, e) {
2315
+ switch (t) {
2316
2316
  case "prefinish":
2317
2317
  case "finish": break;
2318
2318
  case "drain":
2319
- typeof this[s$8] == "number" && this[S$2]();
2319
+ typeof this[s] == "number" && this[S]();
2320
2320
  break;
2321
- case "error": return this[p$2] ? void 0 : (this[p$2] = true, super.emit(t$7, e$7));
2322
- default: return super.emit(t$7, e$7);
2321
+ case "error": return this[p] ? void 0 : (this[p] = true, super.emit(t, e));
2322
+ default: return super.emit(t, e);
2323
2323
  }
2324
2324
  }
2325
2325
  }
2326
2326
  class P$2 extends D$1 {
2327
- [a$11]() {
2328
- let t$7 = true;
2327
+ [a]() {
2328
+ let t = true;
2329
2329
  try {
2330
- this[y$4](null, r.openSync(this[l$3], "r")), t$7 = !1;
2330
+ this[y](null, r.openSync(this[l], "r")), t = !1;
2331
2331
  } finally {
2332
- t$7 && this[h$2]();
2332
+ t && this[h$2]();
2333
2333
  }
2334
2334
  }
2335
- [S$2]() {
2336
- let t$7 = true;
2335
+ [S]() {
2336
+ let t = true;
2337
2337
  try {
2338
- if (!this[f$5]) {
2339
- this[f$5] = !0;
2338
+ if (!this[f]) {
2339
+ this[f] = !0;
2340
2340
  do {
2341
- const e$7 = this[T$2](), i$8 = e$7.length === 0 ? 0 : r.readSync(this[s$8], e$7, 0, e$7.length, null);
2342
- if (!this[z$2](i$8, e$7)) break;
2341
+ const e = this[T](), i = e.length === 0 ? 0 : r.readSync(this[s], e, 0, e.length, null);
2342
+ if (!this[z](i, e)) break;
2343
2343
  } while (!0);
2344
- this[f$5] = !1;
2344
+ this[f] = !1;
2345
2345
  }
2346
- t$7 = !1;
2346
+ t = !1;
2347
2347
  } finally {
2348
- t$7 && this[h$2]();
2348
+ t && this[h$2]();
2349
2349
  }
2350
2350
  }
2351
2351
  [h$2]() {
2352
- if (this[m$4] && typeof this[s$8] == "number") {
2353
- const t$7 = this[s$8];
2354
- this[s$8] = null, r.closeSync(t$7), this.emit("close");
2352
+ if (this[m] && typeof this[s] == "number") {
2353
+ const t = this[s];
2354
+ this[s] = null, r.closeSync(t), this.emit("close");
2355
2355
  }
2356
2356
  }
2357
2357
  }
2358
- class O$4 extends I$1 {
2359
- constructor(t$7, e$7) {
2360
- e$7 = e$7 || {}, super(e$7), this.readable = false, this.writable = true, this[p$2] = false, this[b$1] = false, this[g$1] = false, this[E$2] = false, this[n$4] = [], this[l$3] = t$7, this[s$8] = typeof e$7.fd == "number" ? e$7.fd : null, this[q$2] = e$7.mode === void 0 ? 438 : e$7.mode, this[u$6] = typeof e$7.start == "number" ? e$7.start : null, this[m$4] = typeof e$7.autoClose == "boolean" ? e$7.autoClose : true;
2361
- const i$8 = this[u$6] !== null ? "r+" : "w";
2362
- this[F$4] = e$7.flags === void 0, this[o$6] = this[F$4] ? i$8 : e$7.flags, this[s$8] === null && this[a$11]();
2358
+ class O extends I$1 {
2359
+ constructor(t, e) {
2360
+ e = e || {}, super(e), this.readable = false, this.writable = true, this[p] = false, this[b$1] = false, this[g$1] = false, this[E] = false, this[n] = [], this[l] = t, this[s] = typeof e.fd == "number" ? e.fd : null, this[q] = e.mode === void 0 ? 438 : e.mode, this[u] = typeof e.start == "number" ? e.start : null, this[m] = typeof e.autoClose == "boolean" ? e.autoClose : true;
2361
+ const i = this[u] !== null ? "r+" : "w";
2362
+ this[F] = e.flags === void 0, this[o] = this[F] ? i : e.flags, this[s] === null && this[a]();
2363
2363
  }
2364
- emit(t$7, e$7) {
2365
- if (t$7 === "error") {
2366
- if (this[p$2]) return;
2367
- this[p$2] = true;
2364
+ emit(t, e) {
2365
+ if (t === "error") {
2366
+ if (this[p]) return;
2367
+ this[p] = true;
2368
2368
  }
2369
- return super.emit(t$7, e$7);
2369
+ return super.emit(t, e);
2370
2370
  }
2371
2371
  get fd() {
2372
- return this[s$8];
2372
+ return this[s];
2373
2373
  }
2374
2374
  get path() {
2375
- return this[l$3];
2375
+ return this[l];
2376
2376
  }
2377
- [d$1](t$7) {
2378
- this[h$2](), this[b$1] = true, this.emit("error", t$7);
2377
+ [d$1](t) {
2378
+ this[h$2](), this[b$1] = true, this.emit("error", t);
2379
2379
  }
2380
- [a$11]() {
2381
- r.open(this[l$3], this[o$6], this[q$2], (t$7, e$7) => this[y$4](t$7, e$7));
2380
+ [a]() {
2381
+ r.open(this[l], this[o], this[q], (t, e) => this[y](t, e));
2382
2382
  }
2383
- [y$4](t$7, e$7) {
2384
- this[F$4] && this[o$6] === "r+" && t$7 && t$7.code === "ENOENT" ? (this[o$6] = "w", this[a$11]()) : t$7 ? this[d$1](t$7) : (this[s$8] = e$7, this.emit("open", e$7), this[x$1]());
2383
+ [y](t, e) {
2384
+ this[F] && this[o] === "r+" && t && t.code === "ENOENT" ? (this[o] = "w", this[a]()) : t ? this[d$1](t) : (this[s] = e, this.emit("open", e), this[x$1]());
2385
2385
  }
2386
- end(t$7, e$7) {
2387
- return t$7 && this.write(t$7, e$7), this[g$1] = true, !this[b$1] && !this[n$4].length && typeof this[s$8] == "number" && this[_$2](null, 0), this;
2386
+ end(t, e) {
2387
+ return t && this.write(t, e), this[g$1] = true, !this[b$1] && !this[n].length && typeof this[s] == "number" && this[_](null, 0), this;
2388
2388
  }
2389
- write(t$7, e$7) {
2390
- return typeof t$7 == "string" && (t$7 = Buffer.from(t$7, e$7)), this[g$1] ? (this.emit("error", /* @__PURE__ */ new Error("write() after end()")), false) : this[s$8] === null || this[b$1] || this[n$4].length ? (this[n$4].push(t$7), this[E$2] = true, false) : (this[b$1] = true, this[C$2](t$7), true);
2389
+ write(t, e) {
2390
+ return typeof t == "string" && (t = Buffer.from(t, e)), this[g$1] ? (this.emit("error", /* @__PURE__ */ new Error("write() after end()")), false) : this[s] === null || this[b$1] || this[n].length ? (this[n].push(t), this[E] = true, false) : (this[b$1] = true, this[C](t), true);
2391
2391
  }
2392
- [C$2](t$7) {
2393
- r.write(this[s$8], t$7, 0, t$7.length, this[u$6], (e$7, i$8) => this[_$2](e$7, i$8));
2392
+ [C](t) {
2393
+ r.write(this[s], t, 0, t.length, this[u], (e, i) => this[_](e, i));
2394
2394
  }
2395
- [_$2](t$7, e$7) {
2396
- t$7 ? this[d$1](t$7) : (this[u$6] !== null && (this[u$6] += e$7), this[n$4].length ? this[x$1]() : (this[b$1] = false, this[g$1] && !this[B$1] ? (this[B$1] = true, this[h$2](), this.emit("finish")) : this[E$2] && (this[E$2] = false, this.emit("drain"))));
2395
+ [_](t, e) {
2396
+ t ? this[d$1](t) : (this[u] !== null && (this[u] += e), this[n].length ? this[x$1]() : (this[b$1] = false, this[g$1] && !this[B$1] ? (this[B$1] = true, this[h$2](), this.emit("finish")) : this[E] && (this[E] = false, this.emit("drain"))));
2397
2397
  }
2398
2398
  [x$1]() {
2399
- if (this[n$4].length === 0) this[g$1] && this[_$2](null, 0);
2400
- else if (this[n$4].length === 1) this[C$2](this[n$4].pop());
2399
+ if (this[n].length === 0) this[g$1] && this[_](null, 0);
2400
+ else if (this[n].length === 1) this[C](this[n].pop());
2401
2401
  else {
2402
- const t$7 = this[n$4];
2403
- this[n$4] = [], R$3(this[s$8], t$7, this[u$6], (e$7, i$8) => this[_$2](e$7, i$8));
2402
+ const t = this[n];
2403
+ this[n] = [], R(this[s], t, this[u], (e, i) => this[_](e, i));
2404
2404
  }
2405
2405
  }
2406
2406
  [h$2]() {
2407
- if (this[m$4] && typeof this[s$8] == "number") {
2408
- const t$7 = this[s$8];
2409
- this[s$8] = null, r.close(t$7, (e$7) => e$7 ? this.emit("error", e$7) : this.emit("close"));
2407
+ if (this[m] && typeof this[s] == "number") {
2408
+ const t = this[s];
2409
+ this[s] = null, r.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
2410
2410
  }
2411
2411
  }
2412
2412
  }
2413
- class U$1 extends O$4 {
2414
- [a$11]() {
2415
- let t$7;
2416
- if (this[F$4] && this[o$6] === "r+") try {
2417
- t$7 = r.openSync(this[l$3], this[o$6], this[q$2]);
2418
- } catch (e$7) {
2419
- if (e$7.code === "ENOENT") return this[o$6] = "w", this[a$11]();
2420
- throw e$7;
2413
+ class U$1 extends O {
2414
+ [a]() {
2415
+ let t;
2416
+ if (this[F] && this[o] === "r+") try {
2417
+ t = r.openSync(this[l], this[o], this[q]);
2418
+ } catch (e) {
2419
+ if (e.code === "ENOENT") return this[o] = "w", this[a]();
2420
+ throw e;
2421
2421
  }
2422
- else t$7 = r.openSync(this[l$3], this[o$6], this[q$2]);
2423
- this[y$4](null, t$7);
2422
+ else t = r.openSync(this[l], this[o], this[q]);
2423
+ this[y](null, t);
2424
2424
  }
2425
2425
  [h$2]() {
2426
- if (this[m$4] && typeof this[s$8] == "number") {
2427
- const t$7 = this[s$8];
2428
- this[s$8] = null, r.closeSync(t$7), this.emit("close");
2426
+ if (this[m] && typeof this[s] == "number") {
2427
+ const t = this[s];
2428
+ this[s] = null, r.closeSync(t), this.emit("close");
2429
2429
  }
2430
2430
  }
2431
- [C$2](t$7) {
2432
- let e$7 = true;
2431
+ [C](t) {
2432
+ let e = true;
2433
2433
  try {
2434
- this[_$2](null, r.writeSync(this[s$8], t$7, 0, t$7.length, this[u$6])), e$7 = !1;
2434
+ this[_](null, r.writeSync(this[s], t, 0, t.length, this[u])), e = !1;
2435
2435
  } finally {
2436
- if (e$7) try {
2436
+ if (e) try {
2437
2437
  this[h$2]();
2438
2438
  } catch {}
2439
2439
  }
2440
2440
  }
2441
2441
  }
2442
- return s$4.ReadStream = D$1, s$4.ReadStreamSync = P$2, s$4.WriteStream = O$4, s$4.WriteStreamSync = U$1, s$4;
2442
+ return s$4.ReadStream = D$1, s$4.ReadStreamSync = P$2, s$4.WriteStream = O, s$4.WriteStreamSync = U$1, s$4;
2443
2443
  }
2444
2444
  var r$1 = { exports: {} };
2445
2445
  var i$2, m$2;
2446
2446
  function t$2() {
2447
2447
  if (m$2) return i$2;
2448
2448
  m$2 = 1;
2449
- const { promisify: n$4 } = a$a, e$7 = nativeFs;
2449
+ const { promisify: n } = a$a, e = nativeFs;
2450
2450
  return i$2 = (r) => {
2451
2451
  if (!r) r = {
2452
2452
  mode: 511,
2453
- fs: e$7
2453
+ fs: e
2454
2454
  };
2455
2455
  else if (typeof r == "object") r = {
2456
2456
  mode: 511,
2457
- fs: e$7,
2457
+ fs: e,
2458
2458
  ...r
2459
2459
  };
2460
2460
  else if (typeof r == "number") r = {
2461
2461
  mode: r,
2462
- fs: e$7
2462
+ fs: e
2463
2463
  };
2464
2464
  else if (typeof r == "string") r = {
2465
2465
  mode: parseInt(r, 8),
2466
- fs: e$7
2466
+ fs: e
2467
2467
  };
2468
2468
  else throw new TypeError("invalid options argument");
2469
- return r.mkdir = r.mkdir || r.fs.mkdir || e$7.mkdir, r.mkdirAsync = n$4(r.mkdir), r.stat = r.stat || r.fs.stat || e$7.stat, r.statAsync = n$4(r.stat), r.statSync = r.statSync || r.fs.statSync || e$7.statSync, r.mkdirSync = r.mkdirSync || r.fs.mkdirSync || e$7.mkdirSync, r;
2469
+ return r.mkdir = r.mkdir || r.fs.mkdir || e.mkdir, r.mkdirAsync = n(r.mkdir), r.stat = r.stat || r.fs.stat || e.stat, r.statAsync = n(r.stat), r.statSync = r.statSync || r.fs.statSync || e.statSync, r.mkdirSync = r.mkdirSync || r.fs.mkdirSync || e.mkdirSync, r;
2470
2470
  }, i$2;
2471
2471
  }
2472
2472
  var e$1, t$1;
2473
2473
  function u$2() {
2474
2474
  if (t$1) return e$1;
2475
2475
  t$1 = 1;
2476
- const s$8 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform, { resolve: o$6, parse: n$4 } = path;
2476
+ const s = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform, { resolve: o, parse: n } = path;
2477
2477
  return e$1 = (r) => {
2478
2478
  if (/\0/.test(r)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
2479
2479
  path: r,
2480
2480
  code: "ERR_INVALID_ARG_VALUE"
2481
2481
  });
2482
- if (r = o$6(r), s$8 === "win32") {
2483
- const i$8 = /[*|"<>?:]/, { root: a$11 } = n$4(r);
2484
- if (i$8.test(r.substr(a$11.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
2482
+ if (r = o(r), s === "win32") {
2483
+ const i = /[*|"<>?:]/, { root: a } = n(r);
2484
+ if (i.test(r.substr(a.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
2485
2485
  path: r,
2486
2486
  code: "EINVAL"
2487
2487
  });
@@ -2493,59 +2493,59 @@ var i$1, c$2;
2493
2493
  function t() {
2494
2494
  if (c$2) return i$1;
2495
2495
  c$2 = 1;
2496
- const { dirname: u$6 } = path, f$5 = (r, e$7, n$4 = void 0) => n$4 === e$7 ? Promise.resolve() : r.statAsync(e$7).then((d$1) => d$1.isDirectory() ? n$4 : void 0, (d$1) => d$1.code === "ENOENT" ? f$5(r, u$6(e$7), e$7) : void 0), o$6 = (r, e$7, n$4 = void 0) => {
2497
- if (n$4 !== e$7) try {
2498
- return r.statSync(e$7).isDirectory() ? n$4 : void 0;
2496
+ const { dirname: u } = path, f = (r, e, n = void 0) => n === e ? Promise.resolve() : r.statAsync(e).then((d$1) => d$1.isDirectory() ? n : void 0, (d$1) => d$1.code === "ENOENT" ? f(r, u(e), e) : void 0), o = (r, e, n = void 0) => {
2497
+ if (n !== e) try {
2498
+ return r.statSync(e).isDirectory() ? n : void 0;
2499
2499
  } catch (d$1) {
2500
- return d$1.code === "ENOENT" ? o$6(r, u$6(e$7), e$7) : void 0;
2500
+ return d$1.code === "ENOENT" ? o(r, u(e), e) : void 0;
2501
2501
  }
2502
2502
  };
2503
2503
  return i$1 = {
2504
- findMade: f$5,
2505
- findMadeSync: o$6
2504
+ findMade: f,
2505
+ findMadeSync: o
2506
2506
  }, i$1;
2507
2507
  }
2508
2508
  var o$3, a$4;
2509
2509
  function y$2() {
2510
2510
  if (a$4) return o$3;
2511
2511
  a$4 = 1;
2512
- const { dirname: f$5 } = path, t$7 = (n$4, e$7, c$6) => {
2513
- e$7.recursive = false;
2514
- const i$8 = f$5(n$4);
2515
- return i$8 === n$4 ? e$7.mkdirAsync(n$4, e$7).catch((r) => {
2512
+ const { dirname: f } = path, t = (n, e, c$1) => {
2513
+ e.recursive = false;
2514
+ const i = f(n);
2515
+ return i === n ? e.mkdirAsync(n, e).catch((r) => {
2516
2516
  if (r.code !== "EISDIR") throw r;
2517
- }) : e$7.mkdirAsync(n$4, e$7).then(() => c$6 || n$4, (r) => {
2518
- if (r.code === "ENOENT") return t$7(i$8, e$7).then((u$6) => t$7(n$4, e$7, u$6));
2517
+ }) : e.mkdirAsync(n, e).then(() => c$1 || n, (r) => {
2518
+ if (r.code === "ENOENT") return t(i, e).then((u) => t(n, e, u));
2519
2519
  if (r.code !== "EEXIST" && r.code !== "EROFS") throw r;
2520
- return e$7.statAsync(n$4).then((u$6) => {
2521
- if (u$6.isDirectory()) return c$6;
2520
+ return e.statAsync(n).then((u) => {
2521
+ if (u.isDirectory()) return c$1;
2522
2522
  throw r;
2523
2523
  }, () => {
2524
2524
  throw r;
2525
2525
  });
2526
2526
  });
2527
- }, d$1 = (n$4, e$7, c$6) => {
2528
- const i$8 = f$5(n$4);
2529
- if (e$7.recursive = false, i$8 === n$4) try {
2530
- return e$7.mkdirSync(n$4, e$7);
2527
+ }, d$1 = (n, e, c$1) => {
2528
+ const i = f(n);
2529
+ if (e.recursive = false, i === n) try {
2530
+ return e.mkdirSync(n, e);
2531
2531
  } catch (r) {
2532
2532
  if (r.code !== "EISDIR") throw r;
2533
2533
  return;
2534
2534
  }
2535
2535
  try {
2536
- return e$7.mkdirSync(n$4, e$7), c$6 || n$4;
2536
+ return e.mkdirSync(n, e), c$1 || n;
2537
2537
  } catch (r) {
2538
- if (r.code === "ENOENT") return d$1(n$4, e$7, d$1(i$8, e$7, c$6));
2538
+ if (r.code === "ENOENT") return d$1(n, e, d$1(i, e, c$1));
2539
2539
  if (r.code !== "EEXIST" && r.code !== "EROFS") throw r;
2540
2540
  try {
2541
- if (!e$7.statSync(n$4).isDirectory()) throw r;
2541
+ if (!e.statSync(n).isDirectory()) throw r;
2542
2542
  } catch {
2543
2543
  throw r;
2544
2544
  }
2545
2545
  }
2546
2546
  };
2547
2547
  return o$3 = {
2548
- mkdirpManual: t$7,
2548
+ mkdirpManual: t,
2549
2549
  mkdirpManualSync: d$1
2550
2550
  }, o$3;
2551
2551
  }
@@ -2553,20 +2553,20 @@ var c$1, m$1;
2553
2553
  function s$3() {
2554
2554
  if (m$1) return c$1;
2555
2555
  m$1 = 1;
2556
- const { dirname: u$6 } = path, { findMade: d$1, findMadeSync: t$1$1 } = t(), { mkdirpManual: a$11, mkdirpManualSync: k$2 } = y$2();
2556
+ const { dirname: u } = path, { findMade: d$1, findMadeSync: t$1 } = t(), { mkdirpManual: a, mkdirpManualSync: k } = y$2();
2557
2557
  return c$1 = {
2558
- mkdirpNative: (e$7, r) => (r.recursive = true, u$6(e$7) === e$7 ? r.mkdirAsync(e$7, r) : d$1(r, e$7).then((n$4) => r.mkdirAsync(e$7, r).then(() => n$4).catch((i$8) => {
2559
- if (i$8.code === "ENOENT") return a$11(e$7, r);
2560
- throw i$8;
2558
+ mkdirpNative: (e, r) => (r.recursive = true, u(e) === e ? r.mkdirAsync(e, r) : d$1(r, e).then((n) => r.mkdirAsync(e, r).then(() => n).catch((i) => {
2559
+ if (i.code === "ENOENT") return a(e, r);
2560
+ throw i;
2561
2561
  }))),
2562
- mkdirpNativeSync: (e$7, r) => {
2563
- if (r.recursive = true, u$6(e$7) === e$7) return r.mkdirSync(e$7, r);
2564
- const n$4 = t$1$1(r, e$7);
2562
+ mkdirpNativeSync: (e, r) => {
2563
+ if (r.recursive = true, u(e) === e) return r.mkdirSync(e, r);
2564
+ const n = t$1(r, e);
2565
2565
  try {
2566
- return r.mkdirSync(e$7, r), n$4;
2567
- } catch (i$8) {
2568
- if (i$8.code === "ENOENT") return k$2(e$7, r);
2569
- throw i$8;
2566
+ return r.mkdirSync(e, r), n;
2567
+ } catch (i) {
2568
+ if (i.code === "ENOENT") return k(e, r);
2569
+ throw i;
2570
2570
  }
2571
2571
  }
2572
2572
  }, c$1;
@@ -2575,261 +2575,261 @@ var s$2, n$1;
2575
2575
  function a$3() {
2576
2576
  if (n$1) return s$2;
2577
2577
  n$1 = 1;
2578
- const i$8 = nativeFs, e$7 = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split("."), t$7 = +e$7[0] > 10 || +e$7[0] == 10 && +e$7[1] >= 12;
2578
+ const i = nativeFs, e = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split("."), t = +e[0] > 10 || +e[0] == 10 && +e[1] >= 12;
2579
2579
  return s$2 = {
2580
- useNative: t$7 ? (r) => r.mkdir === i$8.mkdir : () => false,
2581
- useNativeSync: t$7 ? (r) => r.mkdirSync === i$8.mkdirSync : () => false
2580
+ useNative: t ? (r) => r.mkdir === i.mkdir : () => false,
2581
+ useNativeSync: t ? (r) => r.mkdirSync === i.mkdirSync : () => false
2582
2582
  }, s$2;
2583
2583
  }
2584
2584
  var m, s$1;
2585
2585
  function S() {
2586
2586
  if (s$1) return m;
2587
2587
  s$1 = 1;
2588
- const i$8 = t$2(), u$6 = u$2(), { mkdirpNative: a$11, mkdirpNativeSync: c$6 } = s$3(), { mkdirpManual: o$6, mkdirpManualSync: q$2 } = y$2(), { useNative: t$7, useNativeSync: _$2 } = a$3(), n$4 = (e$7, r) => (e$7 = u$6(e$7), r = i$8(r), t$7(r) ? a$11(e$7, r) : o$6(e$7, r)), d$1 = (e$7, r) => (e$7 = u$6(e$7), r = i$8(r), _$2(r) ? c$6(e$7, r) : q$2(e$7, r));
2589
- return n$4.sync = d$1, n$4.native = (e$7, r) => a$11(u$6(e$7), i$8(r)), n$4.manual = (e$7, r) => o$6(u$6(e$7), i$8(r)), n$4.nativeSync = (e$7, r) => c$6(u$6(e$7), i$8(r)), n$4.manualSync = (e$7, r) => q$2(u$6(e$7), i$8(r)), m = n$4, m;
2588
+ const i = t$2(), u = u$2(), { mkdirpNative: a, mkdirpNativeSync: c$1 } = s$3(), { mkdirpManual: o, mkdirpManualSync: q } = y$2(), { useNative: t, useNativeSync: _ } = a$3(), n = (e, r) => (e = u(e), r = i(r), t(r) ? a(e, r) : o(e, r)), d$1 = (e, r) => (e = u(e), r = i(r), _(r) ? c$1(e, r) : q(e, r));
2589
+ return n.sync = d$1, n.native = (e, r) => a(u(e), i(r)), n.manual = (e, r) => o(u(e), i(r)), n.nativeSync = (e, r) => c$1(u(e), i(r)), n.manualSync = (e, r) => q(u(e), i(r)), m = n, m;
2590
2590
  }
2591
2591
  var y$1, O;
2592
2592
  function F$1() {
2593
2593
  if (O) return y$1;
2594
2594
  O = 1;
2595
- const c$6 = nativeFs, a$11 = path, T$2 = c$6.lchown ? "lchown" : "chown", I$1 = c$6.lchownSync ? "lchownSync" : "chownSync", i$8 = c$6.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), u$6 = (r, e$7, n$4) => {
2595
+ const c$1 = nativeFs, a = path, T = c$1.lchown ? "lchown" : "chown", I$1 = c$1.lchownSync ? "lchownSync" : "chownSync", i = c$1.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), u = (r, e, n) => {
2596
2596
  try {
2597
- return c$6[I$1](r, e$7, n$4);
2598
- } catch (t$7) {
2599
- if (t$7.code !== "ENOENT") throw t$7;
2597
+ return c$1[I$1](r, e, n);
2598
+ } catch (t) {
2599
+ if (t.code !== "ENOENT") throw t;
2600
2600
  }
2601
- }, D$1 = (r, e$7, n$4) => {
2601
+ }, D$1 = (r, e, n) => {
2602
2602
  try {
2603
- return c$6.chownSync(r, e$7, n$4);
2604
- } catch (t$7) {
2605
- if (t$7.code !== "ENOENT") throw t$7;
2603
+ return c$1.chownSync(r, e, n);
2604
+ } catch (t) {
2605
+ if (t.code !== "ENOENT") throw t;
2606
2606
  }
2607
- }, _$2 = i$8 ? (r, e$7, n$4, t$7) => (o$6) => {
2608
- !o$6 || o$6.code !== "EISDIR" ? t$7(o$6) : c$6.chown(r, e$7, n$4, t$7);
2609
- } : (r, e$7, n$4, t$7) => t$7, w$3 = i$8 ? (r, e$7, n$4) => {
2607
+ }, _ = i ? (r, e, n, t) => (o) => {
2608
+ !o || o.code !== "EISDIR" ? t(o) : c$1.chown(r, e, n, t);
2609
+ } : (r, e, n, t) => t, w = i ? (r, e, n) => {
2610
2610
  try {
2611
- return u$6(r, e$7, n$4);
2612
- } catch (t$7) {
2613
- if (t$7.code !== "EISDIR") throw t$7;
2614
- D$1(r, e$7, n$4);
2615
- }
2616
- } : (r, e$7, n$4) => u$6(r, e$7, n$4), R$3 = process.version;
2617
- let N$1 = (r, e$7, n$4) => c$6.readdir(r, e$7, n$4), q$2 = (r, e$7) => c$6.readdirSync(r, e$7);
2618
- /^v4\./.test(R$3) && (N$1 = (r, e$7, n$4) => c$6.readdir(r, n$4));
2619
- const h$2 = (r, e$7, n$4, t$7) => {
2620
- c$6[T$2](r, e$7, n$4, _$2(r, e$7, n$4, (o$6) => {
2621
- t$7(o$6 && o$6.code !== "ENOENT" ? o$6 : null);
2611
+ return u(r, e, n);
2612
+ } catch (t) {
2613
+ if (t.code !== "EISDIR") throw t;
2614
+ D$1(r, e, n);
2615
+ }
2616
+ } : (r, e, n) => u(r, e, n), R = process.version;
2617
+ let N$1 = (r, e, n) => c$1.readdir(r, e, n), q = (r, e) => c$1.readdirSync(r, e);
2618
+ /^v4\./.test(R) && (N$1 = (r, e, n) => c$1.readdir(r, n));
2619
+ const h$2 = (r, e, n, t) => {
2620
+ c$1[T](r, e, n, _(r, e, n, (o) => {
2621
+ t(o && o.code !== "ENOENT" ? o : null);
2622
2622
  }));
2623
- }, S$2 = (r, e$7, n$4, t$7, o$6) => {
2624
- if (typeof e$7 == "string") return c$6.lstat(a$11.resolve(r, e$7), (s$8, f$5) => {
2625
- if (s$8) return o$6(s$8.code !== "ENOENT" ? s$8 : null);
2626
- f$5.name = e$7, S$2(r, f$5, n$4, t$7, o$6);
2623
+ }, S = (r, e, n, t, o) => {
2624
+ if (typeof e == "string") return c$1.lstat(a.resolve(r, e), (s, f) => {
2625
+ if (s) return o(s.code !== "ENOENT" ? s : null);
2626
+ f.name = e, S(r, f, n, t, o);
2627
2627
  });
2628
- if (e$7.isDirectory()) E$2(a$11.resolve(r, e$7.name), n$4, t$7, (s$8) => {
2629
- if (s$8) return o$6(s$8);
2630
- h$2(a$11.resolve(r, e$7.name), n$4, t$7, o$6);
2628
+ if (e.isDirectory()) E(a.resolve(r, e.name), n, t, (s) => {
2629
+ if (s) return o(s);
2630
+ h$2(a.resolve(r, e.name), n, t, o);
2631
2631
  });
2632
- else h$2(a$11.resolve(r, e$7.name), n$4, t$7, o$6);
2633
- }, E$2 = (r, e$7, n$4, t$7) => {
2634
- N$1(r, { withFileTypes: true }, (o$6, s$8) => {
2635
- if (o$6) {
2636
- if (o$6.code === "ENOENT") return t$7();
2637
- if (o$6.code !== "ENOTDIR" && o$6.code !== "ENOTSUP") return t$7(o$6);
2632
+ else h$2(a.resolve(r, e.name), n, t, o);
2633
+ }, E = (r, e, n, t) => {
2634
+ N$1(r, { withFileTypes: true }, (o, s) => {
2635
+ if (o) {
2636
+ if (o.code === "ENOENT") return t();
2637
+ if (o.code !== "ENOTDIR" && o.code !== "ENOTSUP") return t(o);
2638
2638
  }
2639
- if (o$6 || !s$8.length) return h$2(r, e$7, n$4, t$7);
2640
- let f$5 = s$8.length, v$3 = null;
2641
- const H$3 = (l$3) => {
2642
- if (!v$3) {
2643
- if (l$3) return t$7(v$3 = l$3);
2644
- if (--f$5 === 0) return h$2(r, e$7, n$4, t$7);
2639
+ if (o || !s.length) return h$2(r, e, n, t);
2640
+ let f = s.length, v = null;
2641
+ const H = (l) => {
2642
+ if (!v) {
2643
+ if (l) return t(v = l);
2644
+ if (--f === 0) return h$2(r, e, n, t);
2645
2645
  }
2646
2646
  };
2647
- s$8.forEach((l$3) => S$2(r, l$3, e$7, n$4, H$3));
2647
+ s.forEach((l) => S(r, l, e, n, H));
2648
2648
  });
2649
- }, C$2 = (r, e$7, n$4, t$7) => {
2650
- if (typeof e$7 == "string") try {
2651
- const o$6 = c$6.lstatSync(a$11.resolve(r, e$7));
2652
- o$6.name = e$7, e$7 = o$6;
2653
- } catch (o$6) {
2654
- if (o$6.code === "ENOENT") return;
2655
- throw o$6;
2656
- }
2657
- e$7.isDirectory() && m$4(a$11.resolve(r, e$7.name), n$4, t$7), w$3(a$11.resolve(r, e$7.name), n$4, t$7);
2658
- }, m$4 = (r, e$7, n$4) => {
2659
- let t$7;
2649
+ }, C = (r, e, n, t) => {
2650
+ if (typeof e == "string") try {
2651
+ const o = c$1.lstatSync(a.resolve(r, e));
2652
+ o.name = e, e = o;
2653
+ } catch (o) {
2654
+ if (o.code === "ENOENT") return;
2655
+ throw o;
2656
+ }
2657
+ e.isDirectory() && m(a.resolve(r, e.name), n, t), w(a.resolve(r, e.name), n, t);
2658
+ }, m = (r, e, n) => {
2659
+ let t;
2660
2660
  try {
2661
- t$7 = q$2(r, { withFileTypes: !0 });
2662
- } catch (o$6) {
2663
- if (o$6.code === "ENOENT") return;
2664
- if (o$6.code === "ENOTDIR" || o$6.code === "ENOTSUP") return w$3(r, e$7, n$4);
2665
- throw o$6;
2661
+ t = q(r, { withFileTypes: !0 });
2662
+ } catch (o) {
2663
+ if (o.code === "ENOENT") return;
2664
+ if (o.code === "ENOTDIR" || o.code === "ENOTSUP") return w(r, e, n);
2665
+ throw o;
2666
2666
  }
2667
- return t$7 && t$7.length && t$7.forEach((o$6) => C$2(r, o$6, e$7, n$4)), w$3(r, e$7, n$4);
2667
+ return t && t.length && t.forEach((o) => C(r, o, e, n)), w(r, e, n);
2668
2668
  };
2669
- return y$1 = E$2, E$2.sync = m$4, y$1;
2669
+ return y$1 = E, E.sync = m, y$1;
2670
2670
  }
2671
2671
  var R;
2672
2672
  function H() {
2673
2673
  if (R) return r$1.exports;
2674
2674
  R = 1;
2675
- const g$1 = S(), l$3 = nativeFs, p$2 = path, x$1 = F$1(), y$4 = a$7();
2675
+ const g$1 = S(), l = nativeFs, p = path, x$1 = F$1(), y = a$7();
2676
2676
  class D$1 extends Error {
2677
- constructor(e$7, s$8) {
2678
- super("Cannot extract through symbolic link"), this.path = s$8, this.symlink = e$7;
2677
+ constructor(e, s) {
2678
+ super("Cannot extract through symbolic link"), this.path = s, this.symlink = e;
2679
2679
  }
2680
2680
  get name() {
2681
2681
  return "SylinkError";
2682
2682
  }
2683
2683
  }
2684
- class E$2 extends Error {
2685
- constructor(e$7, s$8) {
2686
- super(s$8 + ": Cannot cd into '" + e$7 + "'"), this.path = e$7, this.code = s$8;
2684
+ class E extends Error {
2685
+ constructor(e, s) {
2686
+ super(s + ": Cannot cd into '" + e + "'"), this.path = e, this.code = s;
2687
2687
  }
2688
2688
  get name() {
2689
2689
  return "CwdError";
2690
2690
  }
2691
2691
  }
2692
- const v$3 = (n$4, e$7) => n$4.get(y$4(e$7)), q$2 = (n$4, e$7, s$8) => n$4.set(y$4(e$7), s$8), I$1 = (n$4, e$7) => {
2693
- l$3.stat(n$4, (s$8, r) => {
2694
- (s$8 || !r.isDirectory()) && (s$8 = new E$2(n$4, s$8 && s$8.code || "ENOTDIR")), e$7(s$8);
2692
+ const v = (n, e) => n.get(y(e)), q = (n, e, s) => n.set(y(e), s), I$1 = (n, e) => {
2693
+ l.stat(n, (s, r) => {
2694
+ (s || !r.isDirectory()) && (s = new E(n, s && s.code || "ENOTDIR")), e(s);
2695
2695
  });
2696
2696
  };
2697
- r$1.exports = (n$4, e$7, s$8) => {
2698
- n$4 = y$4(n$4);
2699
- const r = e$7.umask, c$6 = e$7.mode | 448, f$5 = (c$6 & r) !== 0, t$7 = e$7.uid, i$8 = e$7.gid, a$11 = typeof t$7 == "number" && typeof i$8 == "number" && (t$7 !== e$7.processUid || i$8 !== e$7.processGid), u$6 = e$7.preserve, m$4 = e$7.unlink, h$2 = e$7.cache, d$1 = y$4(e$7.cwd), w$3 = (k$2, o$6) => {
2700
- k$2 ? s$8(k$2) : (q$2(h$2, n$4, true), o$6 && a$11 ? x$1(o$6, t$7, i$8, (G$2) => w$3(G$2)) : f$5 ? l$3.chmod(n$4, c$6, s$8) : s$8());
2697
+ r$1.exports = (n, e, s) => {
2698
+ n = y(n);
2699
+ const r = e.umask, c$1 = e.mode | 448, f = (c$1 & r) !== 0, t = e.uid, i = e.gid, a = typeof t == "number" && typeof i == "number" && (t !== e.processUid || i !== e.processGid), u = e.preserve, m = e.unlink, h$2 = e.cache, d$1 = y(e.cwd), w = (k, o) => {
2700
+ k ? s(k) : (q(h$2, n, true), o && a ? x$1(o, t, i, (G) => w(G)) : f ? l.chmod(n, c$1, s) : s());
2701
2701
  };
2702
- if (h$2 && v$3(h$2, n$4) === true) return w$3();
2703
- if (n$4 === d$1) return I$1(n$4, w$3);
2704
- if (u$6) return g$1(n$4, { mode: c$6 }).then((k$2) => w$3(null, k$2), w$3);
2705
- C$2(d$1, y$4(p$2.relative(d$1, n$4)).split("/"), c$6, h$2, m$4, d$1, null, w$3);
2702
+ if (h$2 && v(h$2, n) === true) return w();
2703
+ if (n === d$1) return I$1(n, w);
2704
+ if (u) return g$1(n, { mode: c$1 }).then((k) => w(null, k), w);
2705
+ C(d$1, y(p.relative(d$1, n)).split("/"), c$1, h$2, m, d$1, null, w);
2706
2706
  };
2707
- const C$2 = (n$4, e$7, s$8, r, c$6, f$5, t$7, i$8) => {
2708
- if (!e$7.length) return i$8(null, t$7);
2709
- const a$11 = e$7.shift(), u$6 = y$4(p$2.resolve(n$4 + "/" + a$11));
2710
- if (v$3(r, u$6)) return C$2(u$6, e$7, s$8, r, c$6, f$5, t$7, i$8);
2711
- l$3.mkdir(u$6, s$8, j$3(u$6, e$7, s$8, r, c$6, f$5, t$7, i$8));
2712
- }, j$3 = (n$4, e$7, s$8, r, c$6, f$5, t$7, i$8) => (a$11) => {
2713
- a$11 ? l$3.lstat(n$4, (u$6, m$4) => {
2714
- if (u$6) u$6.path = u$6.path && y$4(u$6.path), i$8(u$6);
2715
- else if (m$4.isDirectory()) C$2(n$4, e$7, s$8, r, c$6, f$5, t$7, i$8);
2716
- else if (c$6) l$3.unlink(n$4, (h$2) => {
2717
- if (h$2) return i$8(h$2);
2718
- l$3.mkdir(n$4, s$8, j$3(n$4, e$7, s$8, r, c$6, f$5, t$7, i$8));
2707
+ const C = (n, e, s, r, c$1, f, t, i) => {
2708
+ if (!e.length) return i(null, t);
2709
+ const a = e.shift(), u = y(p.resolve(n + "/" + a));
2710
+ if (v(r, u)) return C(u, e, s, r, c$1, f, t, i);
2711
+ l.mkdir(u, s, j(u, e, s, r, c$1, f, t, i));
2712
+ }, j = (n, e, s, r, c$1, f, t, i) => (a) => {
2713
+ a ? l.lstat(n, (u, m) => {
2714
+ if (u) u.path = u.path && y(u.path), i(u);
2715
+ else if (m.isDirectory()) C(n, e, s, r, c$1, f, t, i);
2716
+ else if (c$1) l.unlink(n, (h$2) => {
2717
+ if (h$2) return i(h$2);
2718
+ l.mkdir(n, s, j(n, e, s, r, c$1, f, t, i));
2719
2719
  });
2720
2720
  else {
2721
- if (m$4.isSymbolicLink()) return i$8(new D$1(n$4, n$4 + "/" + e$7.join("/")));
2722
- i$8(a$11);
2721
+ if (m.isSymbolicLink()) return i(new D$1(n, n + "/" + e.join("/")));
2722
+ i(a);
2723
2723
  }
2724
- }) : (t$7 = t$7 || n$4, C$2(n$4, e$7, s$8, r, c$6, f$5, t$7, i$8));
2725
- }, L = (n$4) => {
2726
- let e$7 = false, s$8 = "ENOTDIR";
2724
+ }) : (t = t || n, C(n, e, s, r, c$1, f, t, i));
2725
+ }, L = (n) => {
2726
+ let e = false, s = "ENOTDIR";
2727
2727
  try {
2728
- e$7 = l$3.statSync(n$4).isDirectory();
2728
+ e = l.statSync(n).isDirectory();
2729
2729
  } catch (r) {
2730
- s$8 = r.code;
2730
+ s = r.code;
2731
2731
  } finally {
2732
- if (!e$7) throw new E$2(n$4, s$8);
2732
+ if (!e) throw new E(n, s);
2733
2733
  }
2734
2734
  };
2735
- return r$1.exports.sync = (n$4, e$7) => {
2736
- n$4 = y$4(n$4);
2737
- const s$8 = e$7.umask, r = e$7.mode | 448, c$6 = (r & s$8) !== 0, f$5 = e$7.uid, t$7 = e$7.gid, i$8 = typeof f$5 == "number" && typeof t$7 == "number" && (f$5 !== e$7.processUid || t$7 !== e$7.processGid), a$11 = e$7.preserve, u$6 = e$7.unlink, m$4 = e$7.cache, h$2 = y$4(e$7.cwd), d$1 = (k$2) => {
2738
- q$2(m$4, n$4, true), k$2 && i$8 && x$1.sync(k$2, f$5, t$7), c$6 && l$3.chmodSync(n$4, r);
2735
+ return r$1.exports.sync = (n, e) => {
2736
+ n = y(n);
2737
+ const s = e.umask, r = e.mode | 448, c$1 = (r & s) !== 0, f = e.uid, t = e.gid, i = typeof f == "number" && typeof t == "number" && (f !== e.processUid || t !== e.processGid), a = e.preserve, u = e.unlink, m = e.cache, h$2 = y(e.cwd), d$1 = (k) => {
2738
+ q(m, n, true), k && i && x$1.sync(k, f, t), c$1 && l.chmodSync(n, r);
2739
2739
  };
2740
- if (m$4 && v$3(m$4, n$4) === true) return d$1();
2741
- if (n$4 === h$2) return L(h$2), d$1();
2742
- if (a$11) return d$1(g$1.sync(n$4, r));
2743
- const $ = y$4(p$2.relative(h$2, n$4)).split("/");
2744
- let S$2 = null;
2745
- for (let k$2 = $.shift(), o$6 = h$2; k$2 && (o$6 += "/" + k$2); k$2 = $.shift()) if (o$6 = y$4(p$2.resolve(o$6)), !v$3(m$4, o$6)) try {
2746
- l$3.mkdirSync(o$6, r), S$2 = S$2 || o$6, q$2(m$4, o$6, !0);
2740
+ if (m && v(m, n) === true) return d$1();
2741
+ if (n === h$2) return L(h$2), d$1();
2742
+ if (a) return d$1(g$1.sync(n, r));
2743
+ const $ = y(p.relative(h$2, n)).split("/");
2744
+ let S = null;
2745
+ for (let k = $.shift(), o = h$2; k && (o += "/" + k); k = $.shift()) if (o = y(p.resolve(o)), !v(m, o)) try {
2746
+ l.mkdirSync(o, r), S = S || o, q(m, o, !0);
2747
2747
  } catch {
2748
- const M$1 = l$3.lstatSync(o$6);
2748
+ const M$1 = l.lstatSync(o);
2749
2749
  if (M$1.isDirectory()) {
2750
- q$2(m$4, o$6, true);
2750
+ q(m, o, true);
2751
2751
  continue;
2752
- } else if (u$6) {
2753
- l$3.unlinkSync(o$6), l$3.mkdirSync(o$6, r), S$2 = S$2 || o$6, q$2(m$4, o$6, true);
2752
+ } else if (u) {
2753
+ l.unlinkSync(o), l.mkdirSync(o, r), S = S || o, q(m, o, true);
2754
2754
  continue;
2755
- } else if (M$1.isSymbolicLink()) return new D$1(o$6, o$6 + "/" + $.join("/"));
2755
+ } else if (M$1.isSymbolicLink()) return new D$1(o, o + "/" + $.join("/"));
2756
2756
  }
2757
- return d$1(S$2);
2757
+ return d$1(S);
2758
2758
  }, r$1.exports;
2759
2759
  }
2760
2760
  var a$2, i;
2761
2761
  function p() {
2762
2762
  if (i) return a$2;
2763
2763
  i = 1;
2764
- const o$6 = [
2764
+ const o = [
2765
2765
  "|",
2766
2766
  "<",
2767
2767
  ">",
2768
2768
  "?",
2769
2769
  ":"
2770
- ], t$7 = o$6.map((e$7) => String.fromCharCode(61440 + e$7.charCodeAt(0))), s$8 = new Map(o$6.map((e$7, r) => [e$7, t$7[r]])), c$6 = new Map(t$7.map((e$7, r) => [e$7, o$6[r]]));
2770
+ ], t = o.map((e) => String.fromCharCode(61440 + e.charCodeAt(0))), s = new Map(o.map((e, r) => [e, t[r]])), c$1 = new Map(t.map((e, r) => [e, o[r]]));
2771
2771
  return a$2 = {
2772
- encode: (e$7) => o$6.reduce((r, n$4) => r.split(n$4).join(s$8.get(n$4)), e$7),
2773
- decode: (e$7) => t$7.reduce((r, n$4) => r.split(n$4).join(c$6.get(n$4)), e$7)
2772
+ encode: (e) => o.reduce((r, n) => r.split(n).join(s.get(n)), e),
2773
+ decode: (e) => t.reduce((r, n) => r.split(n).join(c$1.get(n)), e)
2774
2774
  }, a$2;
2775
2775
  }
2776
2776
  var o$2, n;
2777
2777
  function a$1() {
2778
2778
  if (n) return o$2;
2779
2779
  n = 1;
2780
- const r = Object.create(null), { hasOwnProperty: i$8 } = Object.prototype;
2781
- return o$2 = (e$7) => (i$8.call(r, e$7) || (r[e$7] = e$7.normalize("NFD")), r[e$7]), o$2;
2780
+ const r = Object.create(null), { hasOwnProperty: i } = Object.prototype;
2781
+ return o$2 = (e) => (i.call(r, e) || (r[e] = e.normalize("NFD")), r[e]), o$2;
2782
2782
  }
2783
2783
  var a, l;
2784
2784
  function s() {
2785
2785
  return l || (l = 1, a = (r) => {
2786
- let e$7 = r.length - 1, i$8 = -1;
2787
- for (; e$7 > -1 && r.charAt(e$7) === "/";) i$8 = e$7, e$7--;
2788
- return i$8 === -1 ? r : r.slice(0, i$8);
2786
+ let e = r.length - 1, i = -1;
2787
+ for (; e > -1 && r.charAt(e) === "/";) i = e, e--;
2788
+ return i === -1 ? r : r.slice(0, i);
2789
2789
  }), a;
2790
2790
  }
2791
2791
  var u$1, f$1;
2792
2792
  function z() {
2793
2793
  if (f$1) return u$1;
2794
2794
  f$1 = 1;
2795
- const l$3 = j$1, m$4 = a$1(), g$1 = s(), { join: d$1 } = path, q$2 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
2795
+ const l = j$1, m = a$1(), g$1 = s(), { join: d$1 } = path, q = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
2796
2796
  return u$1 = () => {
2797
- const i$8 = /* @__PURE__ */ new Map(), c$6 = /* @__PURE__ */ new Map(), v$3 = (e$7) => e$7.split("/").slice(0, -1).reduce((o$6, r) => (o$6.length && (r = d$1(o$6[o$6.length - 1], r)), o$6.push(r || "/"), o$6), []), a$11 = /* @__PURE__ */ new Set(), w$3 = (e$7) => {
2798
- const s$8 = c$6.get(e$7);
2799
- if (!s$8) throw new Error("function does not have any path reservations");
2797
+ const i = /* @__PURE__ */ new Map(), c$1 = /* @__PURE__ */ new Map(), v = (e) => e.split("/").slice(0, -1).reduce((o, r) => (o.length && (r = d$1(o[o.length - 1], r)), o.push(r || "/"), o), []), a = /* @__PURE__ */ new Set(), w = (e) => {
2798
+ const s = c$1.get(e);
2799
+ if (!s) throw new Error("function does not have any path reservations");
2800
2800
  return {
2801
- paths: s$8.paths.map((o$6) => i$8.get(o$6)),
2802
- dirs: [...s$8.dirs].map((o$6) => i$8.get(o$6))
2801
+ paths: s.paths.map((o) => i.get(o)),
2802
+ dirs: [...s.dirs].map((o) => i.get(o))
2803
2803
  };
2804
- }, h$2 = (e$7) => {
2805
- const { paths: s$8, dirs: o$6 } = w$3(e$7);
2806
- return s$8.every((r) => r[0] === e$7) && o$6.every((r) => r[0] instanceof Set && r[0].has(e$7));
2807
- }, p$2 = (e$7) => a$11.has(e$7) || !h$2(e$7) ? false : (a$11.add(e$7), e$7(() => S$2(e$7)), true), S$2 = (e$7) => {
2808
- if (!a$11.has(e$7)) return false;
2809
- const { paths: s$8, dirs: o$6 } = c$6.get(e$7), r = /* @__PURE__ */ new Set();
2810
- return s$8.forEach((t$7) => {
2811
- const n$4 = i$8.get(t$7);
2812
- l$3.equal(n$4[0], e$7), n$4.length === 1 ? i$8.delete(t$7) : (n$4.shift(), typeof n$4[0] == "function" ? r.add(n$4[0]) : n$4[0].forEach((E$2) => r.add(E$2)));
2813
- }), o$6.forEach((t$7) => {
2814
- const n$4 = i$8.get(t$7);
2815
- l$3(n$4[0] instanceof Set), n$4[0].size === 1 && n$4.length === 1 ? i$8.delete(t$7) : n$4[0].size === 1 ? (n$4.shift(), r.add(n$4[0])) : n$4[0].delete(e$7);
2816
- }), a$11.delete(e$7), r.forEach((t$7) => p$2(t$7)), true;
2804
+ }, h$2 = (e) => {
2805
+ const { paths: s, dirs: o } = w(e);
2806
+ return s.every((r) => r[0] === e) && o.every((r) => r[0] instanceof Set && r[0].has(e));
2807
+ }, p = (e) => a.has(e) || !h$2(e) ? false : (a.add(e), e(() => S(e)), true), S = (e) => {
2808
+ if (!a.has(e)) return false;
2809
+ const { paths: s, dirs: o } = c$1.get(e), r = /* @__PURE__ */ new Set();
2810
+ return s.forEach((t) => {
2811
+ const n = i.get(t);
2812
+ l.equal(n[0], e), n.length === 1 ? i.delete(t) : (n.shift(), typeof n[0] == "function" ? r.add(n[0]) : n[0].forEach((E) => r.add(E)));
2813
+ }), o.forEach((t) => {
2814
+ const n = i.get(t);
2815
+ l(n[0] instanceof Set), n[0].size === 1 && n.length === 1 ? i.delete(t) : n[0].size === 1 ? (n.shift(), r.add(n[0])) : n[0].delete(e);
2816
+ }), a.delete(e), r.forEach((t) => p(t)), true;
2817
2817
  };
2818
2818
  return {
2819
2819
  check: h$2,
2820
- reserve: (e$7, s$8) => {
2821
- e$7 = q$2 ? ["win32 parallelization disabled"] : e$7.map((r) => g$1(d$1(m$4(r))).toLowerCase());
2822
- const o$6 = new Set(e$7.map((r) => v$3(r)).reduce((r, t$7) => r.concat(t$7)));
2823
- return c$6.set(s$8, {
2824
- dirs: o$6,
2825
- paths: e$7
2826
- }), e$7.forEach((r) => {
2827
- const t$7 = i$8.get(r);
2828
- t$7 ? t$7.push(s$8) : i$8.set(r, [s$8]);
2829
- }), o$6.forEach((r) => {
2830
- const t$7 = i$8.get(r);
2831
- t$7 ? t$7[t$7.length - 1] instanceof Set ? t$7[t$7.length - 1].add(s$8) : t$7.push(new Set([s$8])) : i$8.set(r, [new Set([s$8])]);
2832
- }), p$2(s$8);
2820
+ reserve: (e, s) => {
2821
+ e = q ? ["win32 parallelization disabled"] : e.map((r) => g$1(d$1(m(r))).toLowerCase());
2822
+ const o = new Set(e.map((r) => v(r)).reduce((r, t) => r.concat(t)));
2823
+ return c$1.set(s, {
2824
+ dirs: o,
2825
+ paths: e
2826
+ }), e.forEach((r) => {
2827
+ const t = i.get(r);
2828
+ t ? t.push(s) : i.set(r, [s]);
2829
+ }), o.forEach((r) => {
2830
+ const t = i.get(r);
2831
+ t ? t[t.length - 1] instanceof Set ? t[t.length - 1].add(s) : t.push(new Set([s])) : i.set(r, [new Set([s])]);
2832
+ }), p(s);
2833
2833
  }
2834
2834
  };
2835
2835
  }, u$1;
@@ -2838,128 +2838,128 @@ var o$1, u;
2838
2838
  function c$5() {
2839
2839
  if (u) return o$1;
2840
2840
  u = 1;
2841
- const { isAbsolute: l$3, parse: t$7 } = path.win32;
2841
+ const { isAbsolute: l, parse: t } = path.win32;
2842
2842
  return o$1 = (r) => {
2843
- let s$8 = "", e$7 = t$7(r);
2844
- for (; l$3(r) || e$7.root;) {
2845
- const i$8 = r.charAt(0) === "/" && r.slice(0, 4) !== "//?/" ? "/" : e$7.root;
2846
- r = r.slice(i$8.length), s$8 += i$8, e$7 = t$7(r);
2843
+ let s = "", e = t(r);
2844
+ for (; l(r) || e.root;) {
2845
+ const i = r.charAt(0) === "/" && r.slice(0, 4) !== "//?/" ? "/" : e.root;
2846
+ r = r.slice(i.length), s += i, e = t(r);
2847
2847
  }
2848
- return [s$8, r];
2848
+ return [s, r];
2849
2849
  }, o$1;
2850
2850
  }
2851
2851
  var e, o;
2852
2852
  function F() {
2853
2853
  if (o) return e;
2854
2854
  o = 1;
2855
- const t$7 = process.env.__FAKE_PLATFORM__ || process.platform, s$8 = typeof Bun < "u" ? false : t$7 === "win32", { O_CREAT: _$2, O_TRUNC: a$11, O_WRONLY: i$8, UV_FS_O_FILEMAP: r = 0 } = (commonjsGlobal.__FAKE_TESTING_FS__ || nativeFs).constants, c$6 = s$8 && !!r, f$5 = 512 * 1024, p$2 = r | a$11 | _$2 | i$8;
2856
- return e = c$6 ? (l$3) => l$3 < f$5 ? p$2 : "w" : () => "w", e;
2855
+ const t = process.env.__FAKE_PLATFORM__ || process.platform, s = typeof Bun < "u" ? false : t === "win32", { O_CREAT: _, O_TRUNC: a, O_WRONLY: i, UV_FS_O_FILEMAP: r = 0 } = (commonjsGlobal.__FAKE_TESTING_FS__ || nativeFs).constants, c$1 = s && !!r, f = 512 * 1024, p = r | a | _ | i;
2856
+ return e = c$1 ? (l) => l < f ? p : "w" : () => "w", e;
2857
2857
  }
2858
2858
  var G, y;
2859
2859
  function Os() {
2860
2860
  if (y) return G;
2861
2861
  y = 1;
2862
- const ss = j$1, is = rt(), r = nativeFs, es = X(), w$3 = path, M$1 = H(), K$1 = p(), ts = z(), os$1 = c$5(), l$3 = a$7(), rs = s(), hs = a$1(), H$1$1 = Symbol("onEntry"), q$2 = Symbol("checkFs"), Y = Symbol("checkFs2"), v$3 = Symbol("pruneCache"), N$1 = Symbol("isReusable"), d$1 = Symbol("makeFs"), U$1 = Symbol("file"), F$1$1 = Symbol("directory"), O$4 = Symbol("link"), B$1 = Symbol("symlink"), z$1$1 = Symbol("hardlink"), W$1 = Symbol("unsupported"), j$3 = Symbol("checkPath"), b$1 = Symbol("mkdir"), m$4 = Symbol("onError"), $ = Symbol("pending"), V$1 = Symbol("pend"), S$2 = Symbol("unpend"), P$2 = Symbol("ended"), A$1 = Symbol("maybeClose"), x$1 = Symbol("skip"), E$2 = Symbol("doChown"), R$3 = Symbol("uid"), _$2 = Symbol("gid"), g$1 = Symbol("checkedCwd"), X$1$1 = Ds, J$1 = F(), C$2 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a$11, s$8) => {
2863
- if (!C$2) return r.unlink(a$11, s$8);
2864
- const i$8 = a$11 + ".DELETE." + X$1$1.randomBytes(16).toString("hex");
2865
- r.rename(a$11, i$8, (e$7) => {
2866
- if (e$7) return s$8(e$7);
2867
- r.unlink(i$8, s$8);
2862
+ const ss = j$1, is = rt(), r = nativeFs, es = X(), w = path, M$1 = H(), K$1 = p(), ts = z(), os$1 = c$5(), l = a$7(), rs = s(), hs = a$1(), H$1 = Symbol("onEntry"), q = Symbol("checkFs"), Y = Symbol("checkFs2"), v = Symbol("pruneCache"), N$1 = Symbol("isReusable"), d$1 = Symbol("makeFs"), U$1 = Symbol("file"), F$1 = Symbol("directory"), O = Symbol("link"), B$1 = Symbol("symlink"), z$1$1 = Symbol("hardlink"), W$1 = Symbol("unsupported"), j = Symbol("checkPath"), b$1 = Symbol("mkdir"), m = Symbol("onError"), $ = Symbol("pending"), V$1 = Symbol("pend"), S = Symbol("unpend"), P$2 = Symbol("ended"), A$1 = Symbol("maybeClose"), x$1 = Symbol("skip"), E = Symbol("doChown"), R = Symbol("uid"), _ = Symbol("gid"), g$1 = Symbol("checkedCwd"), X$1 = Ds, J = F(), C = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a, s) => {
2863
+ if (!C) return r.unlink(a, s);
2864
+ const i = a + ".DELETE." + X$1.randomBytes(16).toString("hex");
2865
+ r.rename(a, i, (e) => {
2866
+ if (e) return s(e);
2867
+ r.unlink(i, s);
2868
2868
  });
2869
- }, us = (a$11) => {
2870
- if (!C$2) return r.unlinkSync(a$11);
2871
- const s$8 = a$11 + ".DELETE." + X$1$1.randomBytes(16).toString("hex");
2872
- r.renameSync(a$11, s$8), r.unlinkSync(s$8);
2873
- }, Q = (a$11, s$8, i$8) => a$11 === a$11 >>> 0 ? a$11 : s$8 === s$8 >>> 0 ? s$8 : i$8, Z = (a$11) => rs(l$3(hs(a$11))).toLowerCase(), ns = (a$11, s$8) => {
2874
- s$8 = Z(s$8);
2875
- for (const i$8 of a$11.keys()) {
2876
- const e$7 = Z(i$8);
2877
- (e$7 === s$8 || e$7.indexOf(s$8 + "/") === 0) && a$11.delete(i$8);
2878
- }
2879
- }, ms = (a$11) => {
2880
- for (const s$8 of a$11.keys()) a$11.delete(s$8);
2869
+ }, us = (a) => {
2870
+ if (!C) return r.unlinkSync(a);
2871
+ const s = a + ".DELETE." + X$1.randomBytes(16).toString("hex");
2872
+ r.renameSync(a, s), r.unlinkSync(s);
2873
+ }, Q = (a, s, i) => a === a >>> 0 ? a : s === s >>> 0 ? s : i, Z = (a) => rs(l(hs(a))).toLowerCase(), ns = (a, s) => {
2874
+ s = Z(s);
2875
+ for (const i of a.keys()) {
2876
+ const e = Z(i);
2877
+ (e === s || e.indexOf(s + "/") === 0) && a.delete(i);
2878
+ }
2879
+ }, ms = (a) => {
2880
+ for (const s of a.keys()) a.delete(s);
2881
2881
  };
2882
2882
  class L extends is {
2883
- constructor(s$8) {
2884
- if (s$8 || (s$8 = {}), s$8.ondone = (i$8) => {
2883
+ constructor(s) {
2884
+ if (s || (s = {}), s.ondone = (i) => {
2885
2885
  this[P$2] = true, this[A$1]();
2886
- }, super(s$8), this[g$1] = false, this.reservations = ts(), this.transform = typeof s$8.transform == "function" ? s$8.transform : null, this.writable = true, this.readable = false, this[$] = 0, this[P$2] = false, this.dirCache = s$8.dirCache || /* @__PURE__ */ new Map(), typeof s$8.uid == "number" || typeof s$8.gid == "number") {
2887
- if (typeof s$8.uid != "number" || typeof s$8.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
2888
- if (s$8.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
2889
- this.uid = s$8.uid, this.gid = s$8.gid, this.setOwner = true;
2886
+ }, super(s), this[g$1] = false, this.reservations = ts(), this.transform = typeof s.transform == "function" ? s.transform : null, this.writable = true, this.readable = false, this[$] = 0, this[P$2] = false, this.dirCache = s.dirCache || /* @__PURE__ */ new Map(), typeof s.uid == "number" || typeof s.gid == "number") {
2887
+ if (typeof s.uid != "number" || typeof s.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
2888
+ if (s.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
2889
+ this.uid = s.uid, this.gid = s.gid, this.setOwner = true;
2890
2890
  } else this.uid = null, this.gid = null, this.setOwner = false;
2891
- s$8.preserveOwner === void 0 && typeof s$8.uid != "number" ? this.preserveOwner = process.getuid && process.getuid() === 0 : this.preserveOwner = !!s$8.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null, this.maxDepth = typeof s$8.maxDepth == "number" ? s$8.maxDepth : cs, this.forceChown = s$8.forceChown === true, this.win32 = !!s$8.win32 || C$2, this.newer = !!s$8.newer, this.keep = !!s$8.keep, this.noMtime = !!s$8.noMtime, this.preservePaths = !!s$8.preservePaths, this.unlink = !!s$8.unlink, this.cwd = l$3(w$3.resolve(s$8.cwd || process.cwd())), this.strip = +s$8.strip || 0, this.processUmask = s$8.noChmod ? 0 : process.umask(), this.umask = typeof s$8.umask == "number" ? s$8.umask : this.processUmask, this.dmode = s$8.dmode || 511 & ~this.umask, this.fmode = s$8.fmode || 438 & ~this.umask, this.on("entry", (i$8) => this[H$1$1](i$8));
2891
+ s.preserveOwner === void 0 && typeof s.uid != "number" ? this.preserveOwner = process.getuid && process.getuid() === 0 : this.preserveOwner = !!s.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null, this.maxDepth = typeof s.maxDepth == "number" ? s.maxDepth : cs, this.forceChown = s.forceChown === true, this.win32 = !!s.win32 || C, this.newer = !!s.newer, this.keep = !!s.keep, this.noMtime = !!s.noMtime, this.preservePaths = !!s.preservePaths, this.unlink = !!s.unlink, this.cwd = l(w.resolve(s.cwd || process.cwd())), this.strip = +s.strip || 0, this.processUmask = s.noChmod ? 0 : process.umask(), this.umask = typeof s.umask == "number" ? s.umask : this.processUmask, this.dmode = s.dmode || 511 & ~this.umask, this.fmode = s.fmode || 438 & ~this.umask, this.on("entry", (i) => this[H$1](i));
2892
2892
  }
2893
- warn(s$8, i$8, e$7 = {}) {
2894
- return (s$8 === "TAR_BAD_ARCHIVE" || s$8 === "TAR_ABORT") && (e$7.recoverable = false), super.warn(s$8, i$8, e$7);
2893
+ warn(s, i, e = {}) {
2894
+ return (s === "TAR_BAD_ARCHIVE" || s === "TAR_ABORT") && (e.recoverable = false), super.warn(s, i, e);
2895
2895
  }
2896
2896
  [A$1]() {
2897
2897
  this[P$2] && this[$] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
2898
2898
  }
2899
- [j$3](s$8) {
2900
- const i$8 = l$3(s$8.path), e$7 = i$8.split("/");
2899
+ [j](s) {
2900
+ const i = l(s.path), e = i.split("/");
2901
2901
  if (this.strip) {
2902
- if (e$7.length < this.strip) return false;
2903
- if (s$8.type === "Link") {
2904
- const t$7 = l$3(s$8.linkpath).split("/");
2905
- if (t$7.length >= this.strip) s$8.linkpath = t$7.slice(this.strip).join("/");
2902
+ if (e.length < this.strip) return false;
2903
+ if (s.type === "Link") {
2904
+ const t = l(s.linkpath).split("/");
2905
+ if (t.length >= this.strip) s.linkpath = t.slice(this.strip).join("/");
2906
2906
  else return false;
2907
2907
  }
2908
- e$7.splice(0, this.strip), s$8.path = e$7.join("/");
2908
+ e.splice(0, this.strip), s.path = e.join("/");
2909
2909
  }
2910
- if (isFinite(this.maxDepth) && e$7.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", {
2911
- entry: s$8,
2912
- path: i$8,
2913
- depth: e$7.length,
2910
+ if (isFinite(this.maxDepth) && e.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", {
2911
+ entry: s,
2912
+ path: i,
2913
+ depth: e.length,
2914
2914
  maxDepth: this.maxDepth
2915
2915
  }), false;
2916
2916
  if (!this.preservePaths) {
2917
- if (e$7.includes("..") || C$2 && /^[a-z]:\.\.$/i.test(e$7[0])) return this.warn("TAR_ENTRY_ERROR", "path contains '..'", {
2918
- entry: s$8,
2919
- path: i$8
2917
+ if (e.includes("..") || C && /^[a-z]:\.\.$/i.test(e[0])) return this.warn("TAR_ENTRY_ERROR", "path contains '..'", {
2918
+ entry: s,
2919
+ path: i
2920
2920
  }), false;
2921
- const [t$7, o$6] = os$1(i$8);
2922
- t$7 && (s$8.path = o$6, this.warn("TAR_ENTRY_INFO", `stripping ${t$7} from absolute path`, {
2923
- entry: s$8,
2924
- path: i$8
2921
+ const [t, o] = os$1(i);
2922
+ t && (s.path = o, this.warn("TAR_ENTRY_INFO", `stripping ${t} from absolute path`, {
2923
+ entry: s,
2924
+ path: i
2925
2925
  }));
2926
2926
  }
2927
- if (w$3.isAbsolute(s$8.path) ? s$8.absolute = l$3(w$3.resolve(s$8.path)) : s$8.absolute = l$3(w$3.resolve(this.cwd, s$8.path)), !this.preservePaths && s$8.absolute.indexOf(this.cwd + "/") !== 0 && s$8.absolute !== this.cwd) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
2928
- entry: s$8,
2929
- path: l$3(s$8.path),
2930
- resolvedPath: s$8.absolute,
2927
+ if (w.isAbsolute(s.path) ? s.absolute = l(w.resolve(s.path)) : s.absolute = l(w.resolve(this.cwd, s.path)), !this.preservePaths && s.absolute.indexOf(this.cwd + "/") !== 0 && s.absolute !== this.cwd) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
2928
+ entry: s,
2929
+ path: l(s.path),
2930
+ resolvedPath: s.absolute,
2931
2931
  cwd: this.cwd
2932
2932
  }), false;
2933
- if (s$8.absolute === this.cwd && s$8.type !== "Directory" && s$8.type !== "GNUDumpDir") return false;
2933
+ if (s.absolute === this.cwd && s.type !== "Directory" && s.type !== "GNUDumpDir") return false;
2934
2934
  if (this.win32) {
2935
- const { root: t$7 } = w$3.win32.parse(s$8.absolute);
2936
- s$8.absolute = t$7 + K$1.encode(s$8.absolute.slice(t$7.length));
2937
- const { root: o$6 } = w$3.win32.parse(s$8.path);
2938
- s$8.path = o$6 + K$1.encode(s$8.path.slice(o$6.length));
2935
+ const { root: t } = w.win32.parse(s.absolute);
2936
+ s.absolute = t + K$1.encode(s.absolute.slice(t.length));
2937
+ const { root: o } = w.win32.parse(s.path);
2938
+ s.path = o + K$1.encode(s.path.slice(o.length));
2939
2939
  }
2940
2940
  return true;
2941
2941
  }
2942
- [H$1$1](s$8) {
2943
- if (!this[j$3](s$8)) return s$8.resume();
2944
- switch (ss.equal(typeof s$8.absolute, "string"), s$8.type) {
2942
+ [H$1](s) {
2943
+ if (!this[j](s)) return s.resume();
2944
+ switch (ss.equal(typeof s.absolute, "string"), s.type) {
2945
2945
  case "Directory":
2946
- case "GNUDumpDir": s$8.mode && (s$8.mode = s$8.mode | 448);
2946
+ case "GNUDumpDir": s.mode && (s.mode = s.mode | 448);
2947
2947
  case "File":
2948
2948
  case "OldFile":
2949
2949
  case "ContiguousFile":
2950
2950
  case "Link":
2951
- case "SymbolicLink": return this[q$2](s$8);
2951
+ case "SymbolicLink": return this[q](s);
2952
2952
  case "CharacterDevice":
2953
2953
  case "BlockDevice":
2954
2954
  case "FIFO":
2955
- default: return this[W$1](s$8);
2955
+ default: return this[W$1](s);
2956
2956
  }
2957
2957
  }
2958
- [m$4](s$8, i$8) {
2959
- s$8.name === "CwdError" ? this.emit("error", s$8) : (this.warn("TAR_ENTRY_ERROR", s$8, { entry: i$8 }), this[S$2](), i$8.resume());
2958
+ [m](s, i) {
2959
+ s.name === "CwdError" ? this.emit("error", s) : (this.warn("TAR_ENTRY_ERROR", s, { entry: i }), this[S](), i.resume());
2960
2960
  }
2961
- [b$1](s$8, i$8, e$7) {
2962
- M$1(l$3(s$8), {
2961
+ [b$1](s, i, e) {
2962
+ M$1(l(s), {
2963
2963
  uid: this.uid,
2964
2964
  gid: this.gid,
2965
2965
  processUid: this.processUid,
@@ -2969,275 +2969,275 @@ function Os() {
2969
2969
  unlink: this.unlink,
2970
2970
  cache: this.dirCache,
2971
2971
  cwd: this.cwd,
2972
- mode: i$8,
2972
+ mode: i,
2973
2973
  noChmod: this.noChmod
2974
- }, e$7);
2974
+ }, e);
2975
2975
  }
2976
- [E$2](s$8) {
2977
- return this.forceChown || this.preserveOwner && (typeof s$8.uid == "number" && s$8.uid !== this.processUid || typeof s$8.gid == "number" && s$8.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
2976
+ [E](s) {
2977
+ return this.forceChown || this.preserveOwner && (typeof s.uid == "number" && s.uid !== this.processUid || typeof s.gid == "number" && s.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
2978
2978
  }
2979
- [R$3](s$8) {
2980
- return Q(this.uid, s$8.uid, this.processUid);
2979
+ [R](s) {
2980
+ return Q(this.uid, s.uid, this.processUid);
2981
2981
  }
2982
- [_$2](s$8) {
2983
- return Q(this.gid, s$8.gid, this.processGid);
2982
+ [_](s) {
2983
+ return Q(this.gid, s.gid, this.processGid);
2984
2984
  }
2985
- [U$1](s$8, i$8) {
2986
- const e$7 = s$8.mode & 4095 || this.fmode, t$7 = new es.WriteStream(s$8.absolute, {
2987
- flags: J$1(s$8.size),
2988
- mode: e$7,
2985
+ [U$1](s, i) {
2986
+ const e = s.mode & 4095 || this.fmode, t = new es.WriteStream(s.absolute, {
2987
+ flags: J(s.size),
2988
+ mode: e,
2989
2989
  autoClose: false
2990
2990
  });
2991
- t$7.on("error", (c$6) => {
2992
- t$7.fd && r.close(t$7.fd, () => {}), t$7.write = () => true, this[m$4](c$6, s$8), i$8();
2991
+ t.on("error", (c$1) => {
2992
+ t.fd && r.close(t.fd, () => {}), t.write = () => true, this[m](c$1, s), i();
2993
2993
  });
2994
- let o$6 = 1;
2995
- const u$6 = (c$6) => {
2996
- if (c$6) {
2997
- t$7.fd && r.close(t$7.fd, () => {}), this[m$4](c$6, s$8), i$8();
2994
+ let o = 1;
2995
+ const u = (c$1) => {
2996
+ if (c$1) {
2997
+ t.fd && r.close(t.fd, () => {}), this[m](c$1, s), i();
2998
2998
  return;
2999
2999
  }
3000
- --o$6 === 0 && r.close(t$7.fd, (n$4) => {
3001
- n$4 ? this[m$4](n$4, s$8) : this[S$2](), i$8();
3000
+ --o === 0 && r.close(t.fd, (n) => {
3001
+ n ? this[m](n, s) : this[S](), i();
3002
3002
  });
3003
3003
  };
3004
- t$7.on("finish", (c$6) => {
3005
- const n$4 = s$8.absolute, p$2 = t$7.fd;
3006
- if (s$8.mtime && !this.noMtime) {
3007
- o$6++;
3008
- const f$5 = s$8.atime || /* @__PURE__ */ new Date(), k$2 = s$8.mtime;
3009
- r.futimes(p$2, f$5, k$2, (D$1) => D$1 ? r.utimes(n$4, f$5, k$2, (I$1) => u$6(I$1 && D$1)) : u$6());
3004
+ t.on("finish", (c$1) => {
3005
+ const n = s.absolute, p = t.fd;
3006
+ if (s.mtime && !this.noMtime) {
3007
+ o++;
3008
+ const f = s.atime || /* @__PURE__ */ new Date(), k = s.mtime;
3009
+ r.futimes(p, f, k, (D$1) => D$1 ? r.utimes(n, f, k, (I$1) => u(I$1 && D$1)) : u());
3010
3010
  }
3011
- if (this[E$2](s$8)) {
3012
- o$6++;
3013
- const f$5 = this[R$3](s$8), k$2 = this[_$2](s$8);
3014
- r.fchown(p$2, f$5, k$2, (D$1) => D$1 ? r.chown(n$4, f$5, k$2, (I$1) => u$6(I$1 && D$1)) : u$6());
3011
+ if (this[E](s)) {
3012
+ o++;
3013
+ const f = this[R](s), k = this[_](s);
3014
+ r.fchown(p, f, k, (D$1) => D$1 ? r.chown(n, f, k, (I$1) => u(I$1 && D$1)) : u());
3015
3015
  }
3016
- u$6();
3016
+ u();
3017
3017
  });
3018
- const h$2 = this.transform && this.transform(s$8) || s$8;
3019
- h$2 !== s$8 && (h$2.on("error", (c$6) => {
3020
- this[m$4](c$6, s$8), i$8();
3021
- }), s$8.pipe(h$2)), h$2.pipe(t$7);
3022
- }
3023
- [F$1$1](s$8, i$8) {
3024
- const e$7 = s$8.mode & 4095 || this.dmode;
3025
- this[b$1](s$8.absolute, e$7, (t$7) => {
3026
- if (t$7) {
3027
- this[m$4](t$7, s$8), i$8();
3018
+ const h$2 = this.transform && this.transform(s) || s;
3019
+ h$2 !== s && (h$2.on("error", (c$1) => {
3020
+ this[m](c$1, s), i();
3021
+ }), s.pipe(h$2)), h$2.pipe(t);
3022
+ }
3023
+ [F$1](s, i) {
3024
+ const e = s.mode & 4095 || this.dmode;
3025
+ this[b$1](s.absolute, e, (t) => {
3026
+ if (t) {
3027
+ this[m](t, s), i();
3028
3028
  return;
3029
3029
  }
3030
- let o$6 = 1;
3031
- const u$6 = (h$2) => {
3032
- --o$6 === 0 && (i$8(), this[S$2](), s$8.resume());
3030
+ let o = 1;
3031
+ const u = (h$2) => {
3032
+ --o === 0 && (i(), this[S](), s.resume());
3033
3033
  };
3034
- s$8.mtime && !this.noMtime && (o$6++, r.utimes(s$8.absolute, s$8.atime || /* @__PURE__ */ new Date(), s$8.mtime, u$6)), this[E$2](s$8) && (o$6++, r.chown(s$8.absolute, this[R$3](s$8), this[_$2](s$8), u$6)), u$6();
3034
+ s.mtime && !this.noMtime && (o++, r.utimes(s.absolute, s.atime || /* @__PURE__ */ new Date(), s.mtime, u)), this[E](s) && (o++, r.chown(s.absolute, this[R](s), this[_](s), u)), u();
3035
3035
  });
3036
3036
  }
3037
- [W$1](s$8) {
3038
- s$8.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${s$8.type}`, { entry: s$8 }), s$8.resume();
3037
+ [W$1](s) {
3038
+ s.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${s.type}`, { entry: s }), s.resume();
3039
3039
  }
3040
- [B$1](s$8, i$8) {
3041
- this[O$4](s$8, s$8.linkpath, "symlink", i$8);
3040
+ [B$1](s, i) {
3041
+ this[O](s, s.linkpath, "symlink", i);
3042
3042
  }
3043
- [z$1$1](s$8, i$8) {
3044
- const e$7 = l$3(w$3.resolve(this.cwd, s$8.linkpath));
3045
- this[O$4](s$8, e$7, "link", i$8);
3043
+ [z$1$1](s, i) {
3044
+ const e = l(w.resolve(this.cwd, s.linkpath));
3045
+ this[O](s, e, "link", i);
3046
3046
  }
3047
3047
  [V$1]() {
3048
3048
  this[$]++;
3049
3049
  }
3050
- [S$2]() {
3050
+ [S]() {
3051
3051
  this[$]--, this[A$1]();
3052
3052
  }
3053
- [x$1](s$8) {
3054
- this[S$2](), s$8.resume();
3053
+ [x$1](s) {
3054
+ this[S](), s.resume();
3055
3055
  }
3056
- [N$1](s$8, i$8) {
3057
- return s$8.type === "File" && !this.unlink && i$8.isFile() && i$8.nlink <= 1 && !C$2;
3056
+ [N$1](s, i) {
3057
+ return s.type === "File" && !this.unlink && i.isFile() && i.nlink <= 1 && !C;
3058
3058
  }
3059
- [q$2](s$8) {
3059
+ [q](s) {
3060
3060
  this[V$1]();
3061
- const i$8 = [s$8.path];
3062
- s$8.linkpath && i$8.push(s$8.linkpath), this.reservations.reserve(i$8, (e$7) => this[Y](s$8, e$7));
3061
+ const i = [s.path];
3062
+ s.linkpath && i.push(s.linkpath), this.reservations.reserve(i, (e) => this[Y](s, e));
3063
3063
  }
3064
- [v$3](s$8) {
3065
- s$8.type === "SymbolicLink" ? ms(this.dirCache) : s$8.type !== "Directory" && ns(this.dirCache, s$8.absolute);
3064
+ [v](s) {
3065
+ s.type === "SymbolicLink" ? ms(this.dirCache) : s.type !== "Directory" && ns(this.dirCache, s.absolute);
3066
3066
  }
3067
- [Y](s$8, i$8) {
3068
- this[v$3](s$8);
3069
- const e$7 = (h$2) => {
3070
- this[v$3](s$8), i$8(h$2);
3071
- }, t$7 = () => {
3067
+ [Y](s, i) {
3068
+ this[v](s);
3069
+ const e = (h$2) => {
3070
+ this[v](s), i(h$2);
3071
+ }, t = () => {
3072
3072
  this[b$1](this.cwd, this.dmode, (h$2) => {
3073
3073
  if (h$2) {
3074
- this[m$4](h$2, s$8), e$7();
3074
+ this[m](h$2, s), e();
3075
3075
  return;
3076
3076
  }
3077
- this[g$1] = true, o$6();
3077
+ this[g$1] = true, o();
3078
3078
  });
3079
- }, o$6 = () => {
3080
- if (s$8.absolute !== this.cwd) {
3081
- const h$2 = l$3(w$3.dirname(s$8.absolute));
3082
- if (h$2 !== this.cwd) return this[b$1](h$2, this.dmode, (c$6) => {
3083
- if (c$6) {
3084
- this[m$4](c$6, s$8), e$7();
3079
+ }, o = () => {
3080
+ if (s.absolute !== this.cwd) {
3081
+ const h$2 = l(w.dirname(s.absolute));
3082
+ if (h$2 !== this.cwd) return this[b$1](h$2, this.dmode, (c$1) => {
3083
+ if (c$1) {
3084
+ this[m](c$1, s), e();
3085
3085
  return;
3086
3086
  }
3087
- u$6();
3087
+ u();
3088
3088
  });
3089
3089
  }
3090
- u$6();
3091
- }, u$6 = () => {
3092
- r.lstat(s$8.absolute, (h$2, c$6) => {
3093
- if (c$6 && (this.keep || this.newer && c$6.mtime > s$8.mtime)) {
3094
- this[x$1](s$8), e$7();
3090
+ u();
3091
+ }, u = () => {
3092
+ r.lstat(s.absolute, (h$2, c$1) => {
3093
+ if (c$1 && (this.keep || this.newer && c$1.mtime > s.mtime)) {
3094
+ this[x$1](s), e();
3095
3095
  return;
3096
3096
  }
3097
- if (h$2 || this[N$1](s$8, c$6)) return this[d$1](null, s$8, e$7);
3098
- if (c$6.isDirectory()) {
3099
- if (s$8.type === "Directory") {
3100
- const n$4 = !this.noChmod && s$8.mode && (c$6.mode & 4095) !== s$8.mode, p$2 = (f$5) => this[d$1](f$5, s$8, e$7);
3101
- return n$4 ? r.chmod(s$8.absolute, s$8.mode, p$2) : p$2();
3097
+ if (h$2 || this[N$1](s, c$1)) return this[d$1](null, s, e);
3098
+ if (c$1.isDirectory()) {
3099
+ if (s.type === "Directory") {
3100
+ const n = !this.noChmod && s.mode && (c$1.mode & 4095) !== s.mode, p = (f) => this[d$1](f, s, e);
3101
+ return n ? r.chmod(s.absolute, s.mode, p) : p();
3102
3102
  }
3103
- if (s$8.absolute !== this.cwd) return r.rmdir(s$8.absolute, (n$4) => this[d$1](n$4, s$8, e$7));
3103
+ if (s.absolute !== this.cwd) return r.rmdir(s.absolute, (n) => this[d$1](n, s, e));
3104
3104
  }
3105
- if (s$8.absolute === this.cwd) return this[d$1](null, s$8, e$7);
3106
- as(s$8.absolute, (n$4) => this[d$1](n$4, s$8, e$7));
3105
+ if (s.absolute === this.cwd) return this[d$1](null, s, e);
3106
+ as(s.absolute, (n) => this[d$1](n, s, e));
3107
3107
  });
3108
3108
  };
3109
- this[g$1] ? o$6() : t$7();
3109
+ this[g$1] ? o() : t();
3110
3110
  }
3111
- [d$1](s$8, i$8, e$7) {
3112
- if (s$8) {
3113
- this[m$4](s$8, i$8), e$7();
3111
+ [d$1](s, i, e) {
3112
+ if (s) {
3113
+ this[m](s, i), e();
3114
3114
  return;
3115
3115
  }
3116
- switch (i$8.type) {
3116
+ switch (i.type) {
3117
3117
  case "File":
3118
3118
  case "OldFile":
3119
- case "ContiguousFile": return this[U$1](i$8, e$7);
3120
- case "Link": return this[z$1$1](i$8, e$7);
3121
- case "SymbolicLink": return this[B$1](i$8, e$7);
3119
+ case "ContiguousFile": return this[U$1](i, e);
3120
+ case "Link": return this[z$1$1](i, e);
3121
+ case "SymbolicLink": return this[B$1](i, e);
3122
3122
  case "Directory":
3123
- case "GNUDumpDir": return this[F$1$1](i$8, e$7);
3123
+ case "GNUDumpDir": return this[F$1](i, e);
3124
3124
  }
3125
3125
  }
3126
- [O$4](s$8, i$8, e$7, t$7) {
3127
- r[e$7](i$8, s$8.absolute, (o$6) => {
3128
- o$6 ? this[m$4](o$6, s$8) : (this[S$2](), s$8.resume()), t$7();
3126
+ [O](s, i, e, t) {
3127
+ r[e](i, s.absolute, (o) => {
3128
+ o ? this[m](o, s) : (this[S](), s.resume()), t();
3129
3129
  });
3130
3130
  }
3131
3131
  }
3132
- const T$2 = (a$11) => {
3132
+ const T = (a) => {
3133
3133
  try {
3134
- return [null, a$11()];
3135
- } catch (s$8) {
3136
- return [s$8, null];
3134
+ return [null, a()];
3135
+ } catch (s) {
3136
+ return [s, null];
3137
3137
  }
3138
3138
  };
3139
3139
  class ls extends L {
3140
- [d$1](s$8, i$8) {
3141
- return super[d$1](s$8, i$8, () => {});
3140
+ [d$1](s, i) {
3141
+ return super[d$1](s, i, () => {});
3142
3142
  }
3143
- [q$2](s$8) {
3144
- if (this[v$3](s$8), !this[g$1]) {
3145
- const o$6 = this[b$1](this.cwd, this.dmode);
3146
- if (o$6) return this[m$4](o$6, s$8);
3143
+ [q](s) {
3144
+ if (this[v](s), !this[g$1]) {
3145
+ const o = this[b$1](this.cwd, this.dmode);
3146
+ if (o) return this[m](o, s);
3147
3147
  this[g$1] = true;
3148
3148
  }
3149
- if (s$8.absolute !== this.cwd) {
3150
- const o$6 = l$3(w$3.dirname(s$8.absolute));
3151
- if (o$6 !== this.cwd) {
3152
- const u$6 = this[b$1](o$6, this.dmode);
3153
- if (u$6) return this[m$4](u$6, s$8);
3149
+ if (s.absolute !== this.cwd) {
3150
+ const o = l(w.dirname(s.absolute));
3151
+ if (o !== this.cwd) {
3152
+ const u = this[b$1](o, this.dmode);
3153
+ if (u) return this[m](u, s);
3154
3154
  }
3155
3155
  }
3156
- const [i$8, e$7] = T$2(() => r.lstatSync(s$8.absolute));
3157
- if (e$7 && (this.keep || this.newer && e$7.mtime > s$8.mtime)) return this[x$1](s$8);
3158
- if (i$8 || this[N$1](s$8, e$7)) return this[d$1](null, s$8);
3159
- if (e$7.isDirectory()) {
3160
- if (s$8.type === "Directory") {
3161
- const [h$2] = !this.noChmod && s$8.mode && (e$7.mode & 4095) !== s$8.mode ? T$2(() => {
3162
- r.chmodSync(s$8.absolute, s$8.mode);
3156
+ const [i, e] = T(() => r.lstatSync(s.absolute));
3157
+ if (e && (this.keep || this.newer && e.mtime > s.mtime)) return this[x$1](s);
3158
+ if (i || this[N$1](s, e)) return this[d$1](null, s);
3159
+ if (e.isDirectory()) {
3160
+ if (s.type === "Directory") {
3161
+ const [h$2] = !this.noChmod && s.mode && (e.mode & 4095) !== s.mode ? T(() => {
3162
+ r.chmodSync(s.absolute, s.mode);
3163
3163
  }) : [];
3164
- return this[d$1](h$2, s$8);
3164
+ return this[d$1](h$2, s);
3165
3165
  }
3166
- const [o$6] = T$2(() => r.rmdirSync(s$8.absolute));
3167
- this[d$1](o$6, s$8);
3166
+ const [o] = T(() => r.rmdirSync(s.absolute));
3167
+ this[d$1](o, s);
3168
3168
  }
3169
- const [t$7] = s$8.absolute === this.cwd ? [] : T$2(() => us(s$8.absolute));
3170
- this[d$1](t$7, s$8);
3169
+ const [t] = s.absolute === this.cwd ? [] : T(() => us(s.absolute));
3170
+ this[d$1](t, s);
3171
3171
  }
3172
- [U$1](s$8, i$8) {
3173
- const e$7 = s$8.mode & 4095 || this.fmode, t$7 = (h$2) => {
3174
- let c$6;
3172
+ [U$1](s, i) {
3173
+ const e = s.mode & 4095 || this.fmode, t = (h$2) => {
3174
+ let c$1;
3175
3175
  try {
3176
- r.closeSync(o$6);
3177
- } catch (n$4) {
3178
- c$6 = n$4;
3176
+ r.closeSync(o);
3177
+ } catch (n) {
3178
+ c$1 = n;
3179
3179
  }
3180
- (h$2 || c$6) && this[m$4](h$2 || c$6, s$8), i$8();
3180
+ (h$2 || c$1) && this[m](h$2 || c$1, s), i();
3181
3181
  };
3182
- let o$6;
3182
+ let o;
3183
3183
  try {
3184
- o$6 = r.openSync(s$8.absolute, J$1(s$8.size), e$7);
3184
+ o = r.openSync(s.absolute, J(s.size), e);
3185
3185
  } catch (h$2) {
3186
- return t$7(h$2);
3186
+ return t(h$2);
3187
3187
  }
3188
- const u$6 = this.transform && this.transform(s$8) || s$8;
3189
- u$6 !== s$8 && (u$6.on("error", (h$2) => this[m$4](h$2, s$8)), s$8.pipe(u$6)), u$6.on("data", (h$2) => {
3188
+ const u = this.transform && this.transform(s) || s;
3189
+ u !== s && (u.on("error", (h$2) => this[m](h$2, s)), s.pipe(u)), u.on("data", (h$2) => {
3190
3190
  try {
3191
- r.writeSync(o$6, h$2, 0, h$2.length);
3192
- } catch (c$6) {
3193
- t$7(c$6);
3191
+ r.writeSync(o, h$2, 0, h$2.length);
3192
+ } catch (c$1) {
3193
+ t(c$1);
3194
3194
  }
3195
- }), u$6.on("end", (h$2) => {
3196
- let c$6 = null;
3197
- if (s$8.mtime && !this.noMtime) {
3198
- const n$4 = s$8.atime || /* @__PURE__ */ new Date(), p$2 = s$8.mtime;
3195
+ }), u.on("end", (h$2) => {
3196
+ let c$1 = null;
3197
+ if (s.mtime && !this.noMtime) {
3198
+ const n = s.atime || /* @__PURE__ */ new Date(), p = s.mtime;
3199
3199
  try {
3200
- r.futimesSync(o$6, n$4, p$2);
3201
- } catch (f$5) {
3200
+ r.futimesSync(o, n, p);
3201
+ } catch (f) {
3202
3202
  try {
3203
- r.utimesSync(s$8.absolute, n$4, p$2);
3203
+ r.utimesSync(s.absolute, n, p);
3204
3204
  } catch {
3205
- c$6 = f$5;
3205
+ c$1 = f;
3206
3206
  }
3207
3207
  }
3208
3208
  }
3209
- if (this[E$2](s$8)) {
3210
- const n$4 = this[R$3](s$8), p$2 = this[_$2](s$8);
3209
+ if (this[E](s)) {
3210
+ const n = this[R](s), p = this[_](s);
3211
3211
  try {
3212
- r.fchownSync(o$6, n$4, p$2);
3213
- } catch (f$5) {
3212
+ r.fchownSync(o, n, p);
3213
+ } catch (f) {
3214
3214
  try {
3215
- r.chownSync(s$8.absolute, n$4, p$2);
3215
+ r.chownSync(s.absolute, n, p);
3216
3216
  } catch {
3217
- c$6 = c$6 || f$5;
3217
+ c$1 = c$1 || f;
3218
3218
  }
3219
3219
  }
3220
3220
  }
3221
- t$7(c$6);
3221
+ t(c$1);
3222
3222
  });
3223
3223
  }
3224
- [F$1$1](s$8, i$8) {
3225
- const e$7 = s$8.mode & 4095 || this.dmode, t$7 = this[b$1](s$8.absolute, e$7);
3226
- if (t$7) {
3227
- this[m$4](t$7, s$8), i$8();
3224
+ [F$1](s, i) {
3225
+ const e = s.mode & 4095 || this.dmode, t = this[b$1](s.absolute, e);
3226
+ if (t) {
3227
+ this[m](t, s), i();
3228
3228
  return;
3229
3229
  }
3230
- if (s$8.mtime && !this.noMtime) try {
3231
- r.utimesSync(s$8.absolute, s$8.atime || /* @__PURE__ */ new Date(), s$8.mtime);
3230
+ if (s.mtime && !this.noMtime) try {
3231
+ r.utimesSync(s.absolute, s.atime || /* @__PURE__ */ new Date(), s.mtime);
3232
3232
  } catch {}
3233
- if (this[E$2](s$8)) try {
3234
- r.chownSync(s$8.absolute, this[R$3](s$8), this[_$2](s$8));
3233
+ if (this[E](s)) try {
3234
+ r.chownSync(s.absolute, this[R](s), this[_](s));
3235
3235
  } catch {}
3236
- i$8(), s$8.resume();
3236
+ i(), s.resume();
3237
3237
  }
3238
- [b$1](s$8, i$8) {
3238
+ [b$1](s, i) {
3239
3239
  try {
3240
- return M$1.sync(l$3(s$8), {
3240
+ return M$1.sync(l(s), {
3241
3241
  uid: this.uid,
3242
3242
  gid: this.gid,
3243
3243
  processUid: this.processUid,
@@ -3247,17 +3247,17 @@ function Os() {
3247
3247
  unlink: this.unlink,
3248
3248
  cache: this.dirCache,
3249
3249
  cwd: this.cwd,
3250
- mode: i$8
3250
+ mode: i
3251
3251
  });
3252
- } catch (e$7) {
3253
- return e$7;
3252
+ } catch (e) {
3253
+ return e;
3254
3254
  }
3255
3255
  }
3256
- [O$4](s$8, i$8, e$7, t$7) {
3256
+ [O](s, i, e, t) {
3257
3257
  try {
3258
- r[e$7 + "Sync"](i$8, s$8.absolute), t$7(), s$8.resume();
3259
- } catch (o$6) {
3260
- return this[m$4](o$6, s$8);
3258
+ r[e + "Sync"](i, s.absolute), t(), s.resume();
3259
+ } catch (o) {
3260
+ return this[m](o, s);
3261
3261
  }
3262
3262
  }
3263
3263
  }
@@ -3267,41 +3267,41 @@ var f, q;
3267
3267
  function v() {
3268
3268
  if (q) return f;
3269
3269
  q = 1;
3270
- const w$3 = s$6(), u$6 = Os(), p$2 = nativeFs, y$4 = X(), l$3 = path, m$4 = s();
3271
- f = (r, e$7, o$6) => {
3272
- typeof r == "function" ? (o$6 = r, e$7 = null, r = {}) : Array.isArray(r) && (e$7 = r, r = {}), typeof e$7 == "function" && (o$6 = e$7, e$7 = null), e$7 ? e$7 = Array.from(e$7) : e$7 = [];
3273
- const t$7 = w$3(r);
3274
- if (t$7.sync && typeof o$6 == "function") throw new TypeError("callback not supported for sync tar functions");
3275
- if (!t$7.file && typeof o$6 == "function") throw new TypeError("callback only supported with file option");
3276
- return e$7.length && d$1(t$7, e$7), t$7.file && t$7.sync ? $(t$7) : t$7.file ? h$2(t$7, o$6) : t$7.sync ? x$1(t$7) : z$2(t$7);
3270
+ const w = s$6(), u = Os(), p = nativeFs, y = X(), l = path, m = s();
3271
+ f = (r, e, o) => {
3272
+ typeof r == "function" ? (o = r, e = null, r = {}) : Array.isArray(r) && (e = r, r = {}), typeof e == "function" && (o = e, e = null), e ? e = Array.from(e) : e = [];
3273
+ const t = w(r);
3274
+ if (t.sync && typeof o == "function") throw new TypeError("callback not supported for sync tar functions");
3275
+ if (!t.file && typeof o == "function") throw new TypeError("callback only supported with file option");
3276
+ return e.length && d$1(t, e), t.file && t.sync ? $(t) : t.file ? h$2(t, o) : t.sync ? x$1(t) : z(t);
3277
3277
  };
3278
- const d$1 = (r, e$7) => {
3279
- const o$6 = new Map(e$7.map((n$4) => [m$4(n$4), true])), t$7 = r.filter, s$8 = (n$4, i$8) => {
3280
- const a$11 = i$8 || l$3.parse(n$4).root || ".", c$6 = n$4 === a$11 ? false : o$6.has(n$4) ? o$6.get(n$4) : s$8(l$3.dirname(n$4), a$11);
3281
- return o$6.set(n$4, c$6), c$6;
3278
+ const d$1 = (r, e) => {
3279
+ const o = new Map(e.map((n) => [m(n), true])), t = r.filter, s = (n, i) => {
3280
+ const a = i || l.parse(n).root || ".", c$1 = n === a ? false : o.has(n) ? o.get(n) : s(l.dirname(n), a);
3281
+ return o.set(n, c$1), c$1;
3282
3282
  };
3283
- r.filter = t$7 ? (n$4, i$8) => t$7(n$4, i$8) && s$8(m$4(n$4)) : (n$4) => s$8(m$4(n$4));
3283
+ r.filter = t ? (n, i) => t(n, i) && s(m(n)) : (n) => s(m(n));
3284
3284
  }, $ = (r) => {
3285
- const e$7 = new u$6.Sync(r), o$6 = r.file, t$7 = p$2.statSync(o$6), s$8 = r.maxReadSize || 16 * 1024 * 1024;
3286
- new y$4.ReadStreamSync(o$6, {
3287
- readSize: s$8,
3288
- size: t$7.size
3289
- }).pipe(e$7);
3290
- }, h$2 = (r, e$7) => {
3291
- const o$6 = new u$6(r), t$7 = r.maxReadSize || 16 * 1024 * 1024, s$8 = r.file, n$4 = new Promise((i$8, a$11) => {
3292
- o$6.on("error", a$11), o$6.on("close", i$8), p$2.stat(s$8, (c$6, R$3) => {
3293
- if (c$6) a$11(c$6);
3285
+ const e = new u.Sync(r), o = r.file, t = p.statSync(o), s = r.maxReadSize || 16 * 1024 * 1024;
3286
+ new y.ReadStreamSync(o, {
3287
+ readSize: s,
3288
+ size: t.size
3289
+ }).pipe(e);
3290
+ }, h$2 = (r, e) => {
3291
+ const o = new u(r), t = r.maxReadSize || 16 * 1024 * 1024, s = r.file, n = new Promise((i, a) => {
3292
+ o.on("error", a), o.on("close", i), p.stat(s, (c$1, R) => {
3293
+ if (c$1) a(c$1);
3294
3294
  else {
3295
- const S$2 = new y$4.ReadStream(s$8, {
3296
- readSize: t$7,
3297
- size: R$3.size
3295
+ const S = new y.ReadStream(s, {
3296
+ readSize: t,
3297
+ size: R.size
3298
3298
  });
3299
- S$2.on("error", a$11), S$2.pipe(o$6);
3299
+ S.on("error", a), S.pipe(o);
3300
3300
  }
3301
3301
  });
3302
3302
  });
3303
- return e$7 ? n$4.then(e$7, e$7) : n$4;
3304
- }, x$1 = (r) => new u$6.Sync(r), z$2 = (r) => new u$6(r);
3303
+ return e ? n.then(e, e) : n;
3304
+ }, x$1 = (r) => new u.Sync(r), z = (r) => new u(r);
3305
3305
  return f;
3306
3306
  }
3307
3307
  const tarExtract = getDefaultExportFromCjs(v());
@@ -3322,11 +3322,11 @@ async function download(url, filePath, options = {}) {
3322
3322
  }
3323
3323
  const inputRegex = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w./@-]+)?/;
3324
3324
  function parseGitURI(input) {
3325
- const m$4 = input.match(inputRegex)?.groups || {};
3325
+ const m = input.match(inputRegex)?.groups || {};
3326
3326
  return {
3327
- repo: m$4.repo,
3328
- subdir: m$4.subdir || "/",
3329
- ref: m$4.ref ? m$4.ref.slice(1) : "main"
3327
+ repo: m.repo,
3328
+ subdir: m.subdir || "/",
3329
+ ref: m.ref ? m.ref.slice(1) : "main"
3330
3330
  };
3331
3331
  }
3332
3332
  function debug(...args) {
@@ -3516,7 +3516,7 @@ async function downloadTemplate(input, options = {}) {
3516
3516
  });
3517
3517
  if (!options.force && existsSync(extractPath) && readdirSync(extractPath).length > 0) throw new Error(`Destination ${extractPath} already exists.`);
3518
3518
  await mkdir(extractPath, { recursive: true });
3519
- const s$8 = Date.now();
3519
+ const s = Date.now();
3520
3520
  const subdir = template.subdir?.replace(/^\//, "") || "";
3521
3521
  await tarExtract({
3522
3522
  file: tarPath,
@@ -3527,7 +3527,7 @@ async function downloadTemplate(input, options = {}) {
3527
3527
  else entry.path = "";
3528
3528
  }
3529
3529
  });
3530
- debug(`Extracted to ${extractPath} in ${Date.now() - s$8}ms`);
3530
+ debug(`Extracted to ${extractPath} in ${Date.now() - s}ms`);
3531
3531
  if (options.install) {
3532
3532
  debug("Installing dependencies...");
3533
3533
  await installDependencies({
@@ -3547,4 +3547,4 @@ async function downloadTemplate(input, options = {}) {
3547
3547
  var dist_exports = /* @__PURE__ */ __exportAll({ downloadTemplate: () => downloadTemplate });
3548
3548
 
3549
3549
  //#endregion
3550
- export { addDependency as a, installDependencies as c, dist_exports$1 as i, packageManagers as l, downloadTemplate as n, addDevDependency as o, registryProvider as r, detectPackageManager as s, dist_exports as t };
3550
+ export { dist_exports$1 as n, dist_exports as t };