create-efffrida-app 0.0.4 → 0.0.6

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 (2) hide show
  1. package/dist/bin.cjs +792 -797
  2. package/package.json +3 -3
package/dist/bin.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var Ds = require('stream');
4
+ var As = require('stream');
5
5
  var NodeChildProcess = require('child_process');
6
6
  var NodeCrypto = require('crypto');
7
7
  var u = require('fs');
@@ -9,12 +9,12 @@ var OS = require('os');
9
9
  var R = require('path');
10
10
  var NodeUrl = require('url');
11
11
  var readline = require('readline');
12
- var Vr = require('events');
12
+ var $r = require('events');
13
13
  var string_decoder = require('string_decoder');
14
14
  var Pi = require('assert');
15
15
  var buffer = require('buffer');
16
- var vs = require('zlib');
17
- var Jn = require('fs/promises');
16
+ var Ms = require('zlib');
17
+ var jn = require('fs/promises');
18
18
 
19
19
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
20
20
 
@@ -36,7 +36,7 @@ function _interopNamespace(e) {
36
36
  return Object.freeze(n);
37
37
  }
38
38
 
39
- var Ds__default = /*#__PURE__*/_interopDefault(Ds);
39
+ var As__default = /*#__PURE__*/_interopDefault(As);
40
40
  var NodeChildProcess__namespace = /*#__PURE__*/_interopNamespace(NodeChildProcess);
41
41
  var NodeCrypto__namespace = /*#__PURE__*/_interopNamespace(NodeCrypto);
42
42
  var u__namespace = /*#__PURE__*/_interopNamespace(u);
@@ -44,10 +44,10 @@ var OS__namespace = /*#__PURE__*/_interopNamespace(OS);
44
44
  var R__namespace = /*#__PURE__*/_interopNamespace(R);
45
45
  var NodeUrl__namespace = /*#__PURE__*/_interopNamespace(NodeUrl);
46
46
  var readline__namespace = /*#__PURE__*/_interopNamespace(readline);
47
- var Vr__default = /*#__PURE__*/_interopDefault(Vr);
47
+ var $r__default = /*#__PURE__*/_interopDefault($r);
48
48
  var Pi__default = /*#__PURE__*/_interopDefault(Pi);
49
- var vs__namespace = /*#__PURE__*/_interopNamespace(vs);
50
- var Jn__default = /*#__PURE__*/_interopDefault(Jn);
49
+ var Ms__namespace = /*#__PURE__*/_interopNamespace(Ms);
50
+ var jn__default = /*#__PURE__*/_interopDefault(jn);
51
51
 
52
52
  var __create = Object.create;
53
53
  var __defProp = Object.defineProperty;
@@ -22584,7 +22584,7 @@ var runMain = /* @__PURE__ */ makeRunMain(({
22584
22584
  process.on("SIGTERM", onSigint);
22585
22585
  });
22586
22586
 
22587
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.0/node_modules/@effect/platform-node/dist/NodeRuntime.js
22587
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
22588
22588
  var runMain2 = runMain;
22589
22589
 
22590
22590
  // ../../node_modules/.pnpm/effect@4.0.0-beta.69/node_modules/effect/dist/Path.js
@@ -23822,7 +23822,7 @@ var make28 = /* @__PURE__ */ make27({
23822
23822
  });
23823
23823
  var layer5 = /* @__PURE__ */ succeed5(Crypto, make28);
23824
23824
 
23825
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.0/node_modules/@effect/platform-node/dist/NodeCrypto.js
23825
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
23826
23826
  var layer6 = layer5;
23827
23827
  var handleBadArgument = (method) => (err) => badArgument({
23828
23828
  module: "FileSystem",
@@ -24194,7 +24194,7 @@ var makeFileSystem = /* @__PURE__ */ map5(/* @__PURE__ */ serviceOption2(WatchBa
24194
24194
  }));
24195
24195
  var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
24196
24196
 
24197
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.0/node_modules/@effect/platform-node/dist/NodeFileSystem.js
24197
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
24198
24198
  var layer8 = layer7;
24199
24199
  var fromFileUrl2 = (url) => try_2({
24200
24200
  try: () => NodeUrl__namespace.fileURLToPath(url),
@@ -24219,7 +24219,7 @@ var layer9 = /* @__PURE__ */ succeed5(Path)({
24219
24219
  toFileUrl: toFileUrl2
24220
24220
  });
24221
24221
 
24222
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.0/node_modules/@effect/platform-node/dist/NodePath.js
24222
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
24223
24223
  var layer10 = layer9;
24224
24224
 
24225
24225
  // ../../node_modules/.pnpm/effect@4.0.0-beta.69/node_modules/effect/dist/Stdio.js
@@ -24265,7 +24265,7 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
24265
24265
  })
24266
24266
  }));
24267
24267
 
24268
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.0/node_modules/@effect/platform-node/dist/NodeStdio.js
24268
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
24269
24269
  var layer12 = layer11;
24270
24270
 
24271
24271
  // ../../node_modules/.pnpm/effect@4.0.0-beta.69/node_modules/effect/dist/Terminal.js
@@ -24358,10 +24358,10 @@ function defaultShouldQuit(input) {
24358
24358
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
24359
24359
  }
24360
24360
 
24361
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.0/node_modules/@effect/platform-node/dist/NodeTerminal.js
24361
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
24362
24362
  var layer14 = layer13;
24363
24363
 
24364
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.0/node_modules/@effect/platform-node/dist/NodeServices.js
24364
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.69_effect@4.0.0-beta.69_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
24365
24365
  var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
24366
24366
 
24367
24367
  // ../../node_modules/.pnpm/effect@4.0.0-beta.69/node_modules/effect/dist/ConfigProvider.js
@@ -30059,52 +30059,52 @@ var runWith2 = (command2, config) => {
30059
30059
  };
30060
30060
 
30061
30061
  // src/Domain.ts
30062
- var templates = ["agent-only", "app-and-agent", "monorepo"];
30063
- var vr = Object.defineProperty;
30064
- var Mr = (s3, t) => {
30065
- for (var e in t) vr(s3, e, { get: t[e], enumerable: true });
30066
- };
30067
- var Ts = typeof process == "object" && process ? process : { stdout: null, stderr: null };
30068
- var Pr = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof A || s3 instanceof Ds__default.default || zr(s3) || Ur(s3));
30069
- var zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Vr.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== Ds__default.default.Writable.prototype.pipe;
30070
- var Ur = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Vr.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
30062
+ var templates = ["agent-only", "app-and-agent"];
30063
+ var Mr = Object.defineProperty;
30064
+ var Br = (s3, t) => {
30065
+ for (var e in t) Mr(s3, e, { get: t[e], enumerable: true });
30066
+ };
30067
+ var xs = typeof process == "object" && process ? process : { stdout: null, stderr: null };
30068
+ var zr = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof A || s3 instanceof As__default.default || Ur(s3) || Hr(s3));
30069
+ var Ur = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof $r.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== As__default.default.Writable.prototype.pipe;
30070
+ var Hr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof $r.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
30071
30071
  var q = /* @__PURE__ */ Symbol("EOF");
30072
30072
  var Q = /* @__PURE__ */ Symbol("maybeEmitEnd");
30073
30073
  var rt = /* @__PURE__ */ Symbol("emittedEnd");
30074
- var Ne = /* @__PURE__ */ Symbol("emittingEnd");
30075
- var Qt = /* @__PURE__ */ Symbol("emittedError");
30076
- var De = /* @__PURE__ */ Symbol("closed");
30077
- var xs = /* @__PURE__ */ Symbol("read");
30078
- var Ae = /* @__PURE__ */ Symbol("flush");
30079
- var Ls = /* @__PURE__ */ Symbol("flushChunk");
30074
+ var Le = /* @__PURE__ */ Symbol("emittingEnd");
30075
+ var qt = /* @__PURE__ */ Symbol("emittedError");
30076
+ var Ne = /* @__PURE__ */ Symbol("closed");
30077
+ var Ls = /* @__PURE__ */ Symbol("read");
30078
+ var De = /* @__PURE__ */ Symbol("flush");
30079
+ var Ns = /* @__PURE__ */ Symbol("flushChunk");
30080
30080
  var z = /* @__PURE__ */ Symbol("encoding");
30081
30081
  var Mt = /* @__PURE__ */ Symbol("decoder");
30082
30082
  var g = /* @__PURE__ */ Symbol("flowing");
30083
- var Jt = /* @__PURE__ */ Symbol("paused");
30083
+ var Qt = /* @__PURE__ */ Symbol("paused");
30084
30084
  var Bt = /* @__PURE__ */ Symbol("resume");
30085
30085
  var b = /* @__PURE__ */ Symbol("buffer");
30086
30086
  var D = /* @__PURE__ */ Symbol("pipes");
30087
30087
  var _ = /* @__PURE__ */ Symbol("bufferLength");
30088
30088
  var gi = /* @__PURE__ */ Symbol("bufferPush");
30089
- var Ie = /* @__PURE__ */ Symbol("bufferShift");
30089
+ var Ae = /* @__PURE__ */ Symbol("bufferShift");
30090
30090
  var L = /* @__PURE__ */ Symbol("objectMode");
30091
30091
  var w = /* @__PURE__ */ Symbol("destroyed");
30092
30092
  var bi = /* @__PURE__ */ Symbol("error");
30093
30093
  var _i = /* @__PURE__ */ Symbol("emitData");
30094
- var Ns = /* @__PURE__ */ Symbol("emitEnd");
30094
+ var Ds = /* @__PURE__ */ Symbol("emitEnd");
30095
30095
  var Oi = /* @__PURE__ */ Symbol("emitEnd2");
30096
30096
  var Z = /* @__PURE__ */ Symbol("async");
30097
30097
  var Ti = /* @__PURE__ */ Symbol("abort");
30098
- var Ce = /* @__PURE__ */ Symbol("aborted");
30099
- var jt = /* @__PURE__ */ Symbol("signal");
30098
+ var Ie = /* @__PURE__ */ Symbol("aborted");
30099
+ var Jt = /* @__PURE__ */ Symbol("signal");
30100
30100
  var Rt = /* @__PURE__ */ Symbol("dataListeners");
30101
- var C = /* @__PURE__ */ Symbol("discarded");
30102
- var te = (s3) => Promise.resolve().then(s3);
30103
- var Hr = (s3) => s3();
30104
- var Wr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
30105
- var Gr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
30106
- var Zr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
30107
- var ke = class {
30101
+ var F = /* @__PURE__ */ Symbol("discarded");
30102
+ var jt = (s3) => Promise.resolve().then(s3);
30103
+ var Wr = (s3) => s3();
30104
+ var Gr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
30105
+ var Zr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
30106
+ var Yr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
30107
+ var Fe = class {
30108
30108
  src;
30109
30109
  dest;
30110
30110
  opts;
@@ -30121,7 +30121,7 @@ var ke = class {
30121
30121
  this.unpipe(), this.opts.end && this.dest.end();
30122
30122
  }
30123
30123
  };
30124
- var xi = class extends ke {
30124
+ var xi = class extends Fe {
30125
30125
  unpipe() {
30126
30126
  this.src.removeListener("error", this.proxyErrors), super.unpipe();
30127
30127
  }
@@ -30129,11 +30129,11 @@ var xi = class extends ke {
30129
30129
  super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
30130
30130
  }
30131
30131
  };
30132
- var Yr = (s3) => !!s3.objectMode;
30133
- var Kr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
30134
- var A = class extends Vr.EventEmitter {
30132
+ var Kr = (s3) => !!s3.objectMode;
30133
+ var Vr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
30134
+ var A = class extends $r.EventEmitter {
30135
30135
  [g] = false;
30136
- [Jt] = false;
30136
+ [Qt] = false;
30137
30137
  [D] = [];
30138
30138
  [b] = [];
30139
30139
  [L];
@@ -30142,23 +30142,23 @@ var A = class extends Vr.EventEmitter {
30142
30142
  [Mt];
30143
30143
  [q] = false;
30144
30144
  [rt] = false;
30145
+ [Le] = false;
30145
30146
  [Ne] = false;
30146
- [De] = false;
30147
- [Qt] = null;
30147
+ [qt] = null;
30148
30148
  [_] = 0;
30149
30149
  [w] = false;
30150
- [jt];
30151
- [Ce] = false;
30150
+ [Jt];
30151
+ [Ie] = false;
30152
30152
  [Rt] = 0;
30153
- [C] = false;
30153
+ [F] = false;
30154
30154
  writable = true;
30155
30155
  readable = true;
30156
30156
  constructor(...t) {
30157
30157
  let e = t[0] || {};
30158
30158
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
30159
- Yr(e) ? (this[L] = true, this[z] = null) : Kr(e) ? (this[z] = e.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e.async, this[Mt] = this[z] ? new string_decoder.StringDecoder(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[D] });
30159
+ Kr(e) ? (this[L] = true, this[z] = null) : Vr(e) ? (this[z] = e.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e.async, this[Mt] = this[z] ? new string_decoder.StringDecoder(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[D] });
30160
30160
  let { signal: i } = e;
30161
- i && (this[jt] = i, i.aborted ? this[Ti]() : i.addEventListener("abort", () => this[Ti]()));
30161
+ i && (this[Jt] = i, i.aborted ? this[Ti]() : i.addEventListener("abort", () => this[Ti]()));
30162
30162
  }
30163
30163
  get bufferLength() {
30164
30164
  return this[_];
@@ -30185,52 +30185,52 @@ var A = class extends Vr.EventEmitter {
30185
30185
  this[Z] = this[Z] || !!t;
30186
30186
  }
30187
30187
  [Ti]() {
30188
- this[Ce] = true, this.emit("abort", this[jt]?.reason), this.destroy(this[jt]?.reason);
30188
+ this[Ie] = true, this.emit("abort", this[Jt]?.reason), this.destroy(this[Jt]?.reason);
30189
30189
  }
30190
30190
  get aborted() {
30191
- return this[Ce];
30191
+ return this[Ie];
30192
30192
  }
30193
30193
  set aborted(t) {
30194
30194
  }
30195
30195
  write(t, e, i) {
30196
- if (this[Ce]) return false;
30196
+ if (this[Ie]) return false;
30197
30197
  if (this[q]) throw new Error("write after end");
30198
30198
  if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
30199
30199
  typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
30200
- let r = this[Z] ? te : Hr;
30200
+ let r = this[Z] ? jt : Wr;
30201
30201
  if (!this[L] && !Buffer.isBuffer(t)) {
30202
- if (Zr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
30203
- else if (Gr(t)) t = Buffer.from(t);
30202
+ if (Yr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
30203
+ else if (Zr(t)) t = Buffer.from(t);
30204
30204
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
30205
30205
  }
30206
- return this[L] ? (this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t) : this[gi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : t.length ? (typeof t == "string" && !(e === this[z] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z] && (t = this[Mt].write(t)), this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t) : this[gi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : (this[_] !== 0 && this.emit("readable"), i && r(i), this[g]);
30206
+ return this[L] ? (this[g] && this[_] !== 0 && this[De](true), this[g] ? this.emit("data", t) : this[gi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : t.length ? (typeof t == "string" && !(e === this[z] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z] && (t = this[Mt].write(t)), this[g] && this[_] !== 0 && this[De](true), this[g] ? this.emit("data", t) : this[gi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : (this[_] !== 0 && this.emit("readable"), i && r(i), this[g]);
30207
30207
  }
30208
30208
  read(t) {
30209
30209
  if (this[w]) return null;
30210
- if (this[C] = false, this[_] === 0 || t === 0 || t && t > this[_]) return this[Q](), null;
30210
+ if (this[F] = false, this[_] === 0 || t === 0 || t && t > this[_]) return this[Q](), null;
30211
30211
  this[L] && (t = null), this[b].length > 1 && !this[L] && (this[b] = [this[z] ? this[b].join("") : Buffer.concat(this[b], this[_])]);
30212
- let e = this[xs](t || null, this[b][0]);
30212
+ let e = this[Ls](t || null, this[b][0]);
30213
30213
  return this[Q](), e;
30214
30214
  }
30215
- [xs](t, e) {
30216
- if (this[L]) this[Ie]();
30215
+ [Ls](t, e) {
30216
+ if (this[L]) this[Ae]();
30217
30217
  else {
30218
30218
  let i = e;
30219
- t === i.length || t === null ? this[Ie]() : typeof i == "string" ? (this[b][0] = i.slice(t), e = i.slice(0, t), this[_] -= t) : (this[b][0] = i.subarray(t), e = i.subarray(0, t), this[_] -= t);
30219
+ t === i.length || t === null ? this[Ae]() : typeof i == "string" ? (this[b][0] = i.slice(t), e = i.slice(0, t), this[_] -= t) : (this[b][0] = i.subarray(t), e = i.subarray(0, t), this[_] -= t);
30220
30220
  }
30221
30221
  return this.emit("data", e), !this[b].length && !this[q] && this.emit("drain"), e;
30222
30222
  }
30223
30223
  end(t, e, i) {
30224
- return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = "utf8"), t !== void 0 && this.write(t, e), i && this.once("end", i), this[q] = true, this.writable = false, (this[g] || !this[Jt]) && this[Q](), this;
30224
+ return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = "utf8"), t !== void 0 && this.write(t, e), i && this.once("end", i), this[q] = true, this.writable = false, (this[g] || !this[Qt]) && this[Q](), this;
30225
30225
  }
30226
30226
  [Bt]() {
30227
- this[w] || (!this[Rt] && !this[D].length && (this[C] = true), this[Jt] = false, this[g] = true, this.emit("resume"), this[b].length ? this[Ae]() : this[q] ? this[Q]() : this.emit("drain"));
30227
+ this[w] || (!this[Rt] && !this[D].length && (this[F] = true), this[Qt] = false, this[g] = true, this.emit("resume"), this[b].length ? this[De]() : this[q] ? this[Q]() : this.emit("drain"));
30228
30228
  }
30229
30229
  resume() {
30230
30230
  return this[Bt]();
30231
30231
  }
30232
30232
  pause() {
30233
- this[g] = false, this[Jt] = true, this[C] = false;
30233
+ this[g] = false, this[Qt] = true, this[F] = false;
30234
30234
  }
30235
30235
  get destroyed() {
30236
30236
  return this[w];
@@ -30239,28 +30239,28 @@ var A = class extends Vr.EventEmitter {
30239
30239
  return this[g];
30240
30240
  }
30241
30241
  get paused() {
30242
- return this[Jt];
30242
+ return this[Qt];
30243
30243
  }
30244
30244
  [gi](t) {
30245
30245
  this[L] ? this[_] += 1 : this[_] += t.length, this[b].push(t);
30246
30246
  }
30247
- [Ie]() {
30247
+ [Ae]() {
30248
30248
  return this[L] ? this[_] -= 1 : this[_] -= this[b][0].length, this[b].shift();
30249
30249
  }
30250
- [Ae](t = false) {
30250
+ [De](t = false) {
30251
30251
  do
30252
30252
  ;
30253
- while (this[Ls](this[Ie]()) && this[b].length);
30253
+ while (this[Ns](this[Ae]()) && this[b].length);
30254
30254
  !t && !this[b].length && !this[q] && this.emit("drain");
30255
30255
  }
30256
- [Ls](t) {
30256
+ [Ns](t) {
30257
30257
  return this.emit("data", t), this[g];
30258
30258
  }
30259
30259
  pipe(t, e) {
30260
30260
  if (this[w]) return t;
30261
- this[C] = false;
30261
+ this[F] = false;
30262
30262
  let i = this[rt];
30263
- return e = e || {}, t === Ts.stdout || t === Ts.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[D].push(e.proxyErrors ? new xi(this, t, e) : new ke(this, t, e)), this[Z] ? te(() => this[Bt]()) : this[Bt]()), t;
30263
+ return e = e || {}, t === xs.stdout || t === xs.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[D].push(e.proxyErrors ? new xi(this, t, e) : new Fe(this, t, e)), this[Z] ? jt(() => this[Bt]()) : this[Bt]()), t;
30264
30264
  }
30265
30265
  unpipe(t) {
30266
30266
  let e = this[D].find((i) => i.dest === t);
@@ -30271,12 +30271,12 @@ var A = class extends Vr.EventEmitter {
30271
30271
  }
30272
30272
  on(t, e) {
30273
30273
  let i = super.on(t, e);
30274
- if (t === "data") this[C] = false, this[Rt]++, !this[D].length && !this[g] && this[Bt]();
30274
+ if (t === "data") this[F] = false, this[Rt]++, !this[D].length && !this[g] && this[Bt]();
30275
30275
  else if (t === "readable" && this[_] !== 0) super.emit("readable");
30276
- else if (Wr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
30277
- else if (t === "error" && this[Qt]) {
30276
+ else if (Gr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
30277
+ else if (t === "error" && this[qt]) {
30278
30278
  let r = e;
30279
- this[Z] ? te(() => r.call(this, this[Qt])) : r.call(this, this[Qt]);
30279
+ this[Z] ? jt(() => r.call(this, this[qt])) : r.call(this, this[qt]);
30280
30280
  }
30281
30281
  return i;
30282
30282
  }
@@ -30285,30 +30285,30 @@ var A = class extends Vr.EventEmitter {
30285
30285
  }
30286
30286
  off(t, e) {
30287
30287
  let i = super.off(t, e);
30288
- return t === "data" && (this[Rt] = this.listeners("data").length, this[Rt] === 0 && !this[C] && !this[D].length && (this[g] = false)), i;
30288
+ return t === "data" && (this[Rt] = this.listeners("data").length, this[Rt] === 0 && !this[F] && !this[D].length && (this[g] = false)), i;
30289
30289
  }
30290
30290
  removeAllListeners(t) {
30291
30291
  let e = super.removeAllListeners(t);
30292
- return (t === "data" || t === void 0) && (this[Rt] = 0, !this[C] && !this[D].length && (this[g] = false)), e;
30292
+ return (t === "data" || t === void 0) && (this[Rt] = 0, !this[F] && !this[D].length && (this[g] = false)), e;
30293
30293
  }
30294
30294
  get emittedEnd() {
30295
30295
  return this[rt];
30296
30296
  }
30297
30297
  [Q]() {
30298
- !this[Ne] && !this[rt] && !this[w] && this[b].length === 0 && this[q] && (this[Ne] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[De] && this.emit("close"), this[Ne] = false);
30298
+ !this[Le] && !this[rt] && !this[w] && this[b].length === 0 && this[q] && (this[Le] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne] && this.emit("close"), this[Le] = false);
30299
30299
  }
30300
30300
  emit(t, ...e) {
30301
30301
  let i = e[0];
30302
30302
  if (t !== "error" && t !== "close" && t !== w && this[w]) return false;
30303
- if (t === "data") return !this[L] && !i ? false : this[Z] ? (te(() => this[_i](i)), true) : this[_i](i);
30304
- if (t === "end") return this[Ns]();
30303
+ if (t === "data") return !this[L] && !i ? false : this[Z] ? (jt(() => this[_i](i)), true) : this[_i](i);
30304
+ if (t === "end") return this[Ds]();
30305
30305
  if (t === "close") {
30306
- if (this[De] = true, !this[rt] && !this[w]) return false;
30306
+ if (this[Ne] = true, !this[rt] && !this[w]) return false;
30307
30307
  let n = super.emit("close");
30308
30308
  return this.removeAllListeners("close"), n;
30309
30309
  } else if (t === "error") {
30310
- this[Qt] = i, super.emit(bi, i);
30311
- let n = !this[jt] || this.listeners("error").length ? super.emit("error", i) : false;
30310
+ this[qt] = i, super.emit(bi, i);
30311
+ let n = !this[Jt] || this.listeners("error").length ? super.emit("error", i) : false;
30312
30312
  return this[Q](), n;
30313
30313
  } else if (t === "resume") {
30314
30314
  let n = super.emit("resume");
@@ -30322,18 +30322,18 @@ var A = class extends Vr.EventEmitter {
30322
30322
  }
30323
30323
  [_i](t) {
30324
30324
  for (let i of this[D]) i.dest.write(t) === false && this.pause();
30325
- let e = this[C] ? false : super.emit("data", t);
30325
+ let e = this[F] ? false : super.emit("data", t);
30326
30326
  return this[Q](), e;
30327
30327
  }
30328
- [Ns]() {
30329
- return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (te(() => this[Oi]()), true) : this[Oi]());
30328
+ [Ds]() {
30329
+ return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (jt(() => this[Oi]()), true) : this[Oi]());
30330
30330
  }
30331
30331
  [Oi]() {
30332
30332
  if (this[Mt]) {
30333
30333
  let e = this[Mt].end();
30334
30334
  if (e) {
30335
30335
  for (let i of this[D]) i.dest.write(e);
30336
- this[C] || super.emit("data", e);
30336
+ this[F] || super.emit("data", e);
30337
30337
  }
30338
30338
  }
30339
30339
  for (let e of this[D]) e.end();
@@ -30359,22 +30359,22 @@ var A = class extends Vr.EventEmitter {
30359
30359
  });
30360
30360
  }
30361
30361
  [Symbol.asyncIterator]() {
30362
- this[C] = false;
30362
+ this[F] = false;
30363
30363
  let t = false, e = async () => (this.pause(), t = true, { value: void 0, done: true });
30364
30364
  return { next: () => {
30365
30365
  if (t) return e();
30366
30366
  let r = this.read();
30367
30367
  if (r !== null) return Promise.resolve({ done: false, value: r });
30368
30368
  if (this[q]) return e();
30369
- let n, o, h = (d) => {
30370
- this.off("data", a), this.off("end", l), this.off(w, c), e(), o(d);
30371
- }, a = (d) => {
30372
- this.off("error", h), this.off("end", l), this.off(w, c), this.pause(), n({ value: d, done: !!this[q] });
30369
+ let n, o, a = (d) => {
30370
+ this.off("data", h), this.off("end", l), this.off(w, c), e(), o(d);
30371
+ }, h = (d) => {
30372
+ this.off("error", a), this.off("end", l), this.off(w, c), this.pause(), n({ value: d, done: !!this[q] });
30373
30373
  }, l = () => {
30374
- this.off("error", h), this.off("data", a), this.off(w, c), e(), n({ done: true, value: void 0 });
30375
- }, c = () => h(new Error("stream destroyed"));
30374
+ this.off("error", a), this.off("data", h), this.off(w, c), e(), n({ done: true, value: void 0 });
30375
+ }, c = () => a(new Error("stream destroyed"));
30376
30376
  return new Promise((d, S) => {
30377
- o = S, n = d, this.once(w, c), this.once("error", h), this.once("end", l), this.once("data", a);
30377
+ o = S, n = d, this.once(w, c), this.once("error", a), this.once("end", l), this.once("data", h);
30378
30378
  });
30379
30379
  }, throw: e, return: e, [Symbol.asyncIterator]() {
30380
30380
  return this;
@@ -30382,7 +30382,7 @@ var A = class extends Vr.EventEmitter {
30382
30382
  } };
30383
30383
  }
30384
30384
  [Symbol.iterator]() {
30385
- this[C] = false;
30385
+ this[F] = false;
30386
30386
  let t = false, e = () => (this.pause(), this.off(bi, e), this.off(w, e), this.off("end", e), t = true, { done: true, value: void 0 }), i = () => {
30387
30387
  if (t) return e();
30388
30388
  let r = this.read();
@@ -30395,26 +30395,26 @@ var A = class extends Vr.EventEmitter {
30395
30395
  }
30396
30396
  destroy(t) {
30397
30397
  if (this[w]) return t ? this.emit("error", t) : this.emit(w), this;
30398
- this[w] = true, this[C] = true, this[b].length = 0, this[_] = 0;
30398
+ this[w] = true, this[F] = true, this[b].length = 0, this[_] = 0;
30399
30399
  let e = this;
30400
- return typeof e.close == "function" && !this[De] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
30400
+ return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
30401
30401
  }
30402
30402
  static get isStream() {
30403
- return Pr;
30403
+ return zr;
30404
30404
  }
30405
30405
  };
30406
- var $r = u__namespace.default.writev;
30406
+ var Xr = u__namespace.default.writev;
30407
30407
  var ot = /* @__PURE__ */ Symbol("_autoClose");
30408
30408
  var H = /* @__PURE__ */ Symbol("_close");
30409
- var ee = /* @__PURE__ */ Symbol("_ended");
30409
+ var te = /* @__PURE__ */ Symbol("_ended");
30410
30410
  var m = /* @__PURE__ */ Symbol("_fd");
30411
30411
  var Ni = /* @__PURE__ */ Symbol("_finished");
30412
30412
  var j = /* @__PURE__ */ Symbol("_flags");
30413
30413
  var Di = /* @__PURE__ */ Symbol("_flush");
30414
- var ki = /* @__PURE__ */ Symbol("_handleChunk");
30415
- var Fi = /* @__PURE__ */ Symbol("_makeBuf");
30416
- var se = /* @__PURE__ */ Symbol("_mode");
30417
- var Fe = /* @__PURE__ */ Symbol("_needDrain");
30414
+ var Ci = /* @__PURE__ */ Symbol("_handleChunk");
30415
+ var ki = /* @__PURE__ */ Symbol("_makeBuf");
30416
+ var ie = /* @__PURE__ */ Symbol("_mode");
30417
+ var Ce = /* @__PURE__ */ Symbol("_needDrain");
30418
30418
  var Ut = /* @__PURE__ */ Symbol("_onerror");
30419
30419
  var Ht = /* @__PURE__ */ Symbol("_onopen");
30420
30420
  var Ai = /* @__PURE__ */ Symbol("_onread");
@@ -30426,11 +30426,11 @@ var Y = /* @__PURE__ */ Symbol("_queue");
30426
30426
  var zt = /* @__PURE__ */ Symbol("_read");
30427
30427
  var Ii = /* @__PURE__ */ Symbol("_readSize");
30428
30428
  var J = /* @__PURE__ */ Symbol("_reading");
30429
- var ie = /* @__PURE__ */ Symbol("_remain");
30430
- var Ci = /* @__PURE__ */ Symbol("_size");
30431
- var ve = /* @__PURE__ */ Symbol("_write");
30429
+ var ee = /* @__PURE__ */ Symbol("_remain");
30430
+ var Fi = /* @__PURE__ */ Symbol("_size");
30431
+ var ke = /* @__PURE__ */ Symbol("_write");
30432
30432
  var gt = /* @__PURE__ */ Symbol("_writing");
30433
- var Me = /* @__PURE__ */ Symbol("_defaultFlag");
30433
+ var ve = /* @__PURE__ */ Symbol("_defaultFlag");
30434
30434
  var bt = /* @__PURE__ */ Symbol("_errored");
30435
30435
  var _t = class extends A {
30436
30436
  [bt] = false;
@@ -30438,12 +30438,12 @@ var _t = class extends A {
30438
30438
  [U];
30439
30439
  [Ii];
30440
30440
  [J] = false;
30441
- [Ci];
30442
- [ie];
30441
+ [Fi];
30442
+ [ee];
30443
30443
  [ot];
30444
30444
  constructor(t, e) {
30445
30445
  if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string") throw new TypeError("path must be a string");
30446
- this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ii] = e.readSize || 16 * 1024 * 1024, this[J] = false, this[Ci] = typeof e.size == "number" ? e.size : 1 / 0, this[ie] = this[Ci], this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[ht]();
30446
+ this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ii] = e.readSize || 16 * 1024 * 1024, this[J] = false, this[Fi] = typeof e.size == "number" ? e.size : 1 / 0, this[ee] = this[Fi], this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[ht]();
30447
30447
  }
30448
30448
  get fd() {
30449
30449
  return this[m];
@@ -30463,19 +30463,19 @@ var _t = class extends A {
30463
30463
  [Ht](t, e) {
30464
30464
  t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
30465
30465
  }
30466
- [Fi]() {
30467
- return Buffer.allocUnsafe(Math.min(this[Ii], this[ie]));
30466
+ [ki]() {
30467
+ return Buffer.allocUnsafe(Math.min(this[Ii], this[ee]));
30468
30468
  }
30469
30469
  [zt]() {
30470
30470
  if (!this[J]) {
30471
30471
  this[J] = true;
30472
- let t = this[Fi]();
30472
+ let t = this[ki]();
30473
30473
  if (t.length === 0) return process.nextTick(() => this[Ai](null, 0, t));
30474
30474
  u__namespace.default.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ai](e, i, r));
30475
30475
  }
30476
30476
  }
30477
30477
  [Ai](t, e, i) {
30478
- this[J] = false, t ? this[Ut](t) : this[ki](e, i) && this[zt]();
30478
+ this[J] = false, t ? this[Ut](t) : this[Ci](e, i) && this[zt]();
30479
30479
  }
30480
30480
  [H]() {
30481
30481
  if (this[ot] && typeof this[m] == "number") {
@@ -30486,9 +30486,9 @@ var _t = class extends A {
30486
30486
  [Ut](t) {
30487
30487
  this[J] = true, this[H](), this.emit("error", t);
30488
30488
  }
30489
- [ki](t, e) {
30489
+ [Ci](t, e) {
30490
30490
  let i = false;
30491
- return this[ie] -= t, t > 0 && (i = super.write(t < e.length ? e.subarray(0, t) : e)), (t === 0 || this[ie] <= 0) && (i = false, this[H](), super.end()), i;
30491
+ return this[ee] -= t, t > 0 && (i = super.write(t < e.length ? e.subarray(0, t) : e)), (t === 0 || this[ee] <= 0) && (i = false, this[H](), super.end()), i;
30492
30492
  }
30493
30493
  emit(t, ...e) {
30494
30494
  switch (t) {
@@ -30504,7 +30504,7 @@ var _t = class extends A {
30504
30504
  }
30505
30505
  }
30506
30506
  };
30507
- var Be = class extends _t {
30507
+ var Me = class extends _t {
30508
30508
  [ht]() {
30509
30509
  let t = true;
30510
30510
  try {
@@ -30519,8 +30519,8 @@ var Be = class extends _t {
30519
30519
  if (!this[J]) {
30520
30520
  this[J] = true;
30521
30521
  do {
30522
- let e = this[Fi](), i = e.length === 0 ? 0 : u__namespace.default.readSync(this[m], e, 0, e.length, null);
30523
- if (!this[ki](i, e)) break;
30522
+ let e = this[ki](), i = e.length === 0 ? 0 : u__namespace.default.readSync(this[m], e, 0, e.length, null);
30523
+ if (!this[Ci](i, e)) break;
30524
30524
  } while (true);
30525
30525
  this[J] = false;
30526
30526
  }
@@ -30536,26 +30536,26 @@ var Be = class extends _t {
30536
30536
  }
30537
30537
  }
30538
30538
  };
30539
- var tt = class extends Vr__default.default {
30539
+ var tt = class extends $r__default.default {
30540
30540
  readable = false;
30541
30541
  writable = true;
30542
30542
  [bt] = false;
30543
30543
  [gt] = false;
30544
- [ee] = false;
30544
+ [te] = false;
30545
30545
  [Y] = [];
30546
- [Fe] = false;
30546
+ [Ce] = false;
30547
30547
  [U];
30548
- [se];
30548
+ [ie];
30549
30549
  [ot];
30550
30550
  [m];
30551
- [Me];
30551
+ [ve];
30552
30552
  [j];
30553
30553
  [Ni] = false;
30554
30554
  [nt];
30555
30555
  constructor(t, e) {
30556
- e = e || {}, super(e), this[U] = t, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[se] = e.mode === void 0 ? 438 : e.mode, this[nt] = typeof e.start == "number" ? e.start : void 0, this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true;
30556
+ e = e || {}, super(e), this[U] = t, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[ie] = e.mode === void 0 ? 438 : e.mode, this[nt] = typeof e.start == "number" ? e.start : void 0, this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true;
30557
30557
  let i = this[nt] !== void 0 ? "r+" : "w";
30558
- this[Me] = e.flags === void 0, this[j] = e.flags === void 0 ? i : e.flags, this[m] === void 0 && this[ht]();
30558
+ this[ve] = e.flags === void 0, this[j] = e.flags === void 0 ? i : e.flags, this[m] === void 0 && this[ht]();
30559
30559
  }
30560
30560
  emit(t, ...e) {
30561
30561
  if (t === "error") {
@@ -30574,29 +30574,29 @@ var tt = class extends Vr__default.default {
30574
30574
  this[H](), this[gt] = true, this.emit("error", t);
30575
30575
  }
30576
30576
  [ht]() {
30577
- u__namespace.default.open(this[U], this[j], this[se], (t, e) => this[Ht](t, e));
30577
+ u__namespace.default.open(this[U], this[j], this[ie], (t, e) => this[Ht](t, e));
30578
30578
  }
30579
30579
  [Ht](t, e) {
30580
- this[Me] && this[j] === "r+" && t && t.code === "ENOENT" ? (this[j] = "w", this[ht]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Di]());
30580
+ this[ve] && this[j] === "r+" && t && t.code === "ENOENT" ? (this[j] = "w", this[ht]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Di]());
30581
30581
  }
30582
30582
  end(t, e) {
30583
- return t && this.write(t, e), this[ee] = true, !this[gt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
30583
+ return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
30584
30584
  }
30585
30585
  write(t, e) {
30586
- return typeof t == "string" && (t = Buffer.from(t, e)), this[ee] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[Fe] = true, false) : (this[gt] = true, this[ve](t), true);
30586
+ return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[Ce] = true, false) : (this[gt] = true, this[ke](t), true);
30587
30587
  }
30588
- [ve](t) {
30588
+ [ke](t) {
30589
30589
  u__namespace.default.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
30590
30590
  }
30591
30591
  [Pt](t, e) {
30592
- t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Di]() : (this[gt] = false, this[ee] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[Fe] && (this[Fe] = false, this.emit("drain"))));
30592
+ t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Di]() : (this[gt] = false, this[te] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[Ce] && (this[Ce] = false, this.emit("drain"))));
30593
30593
  }
30594
30594
  [Di]() {
30595
- if (this[Y].length === 0) this[ee] && this[Pt](null, 0);
30596
- else if (this[Y].length === 1) this[ve](this[Y].pop());
30595
+ if (this[Y].length === 0) this[te] && this[Pt](null, 0);
30596
+ else if (this[Y].length === 1) this[ke](this[Y].pop());
30597
30597
  else {
30598
30598
  let t = this[Y];
30599
- this[Y] = [], $r(this[m], t, this[nt], (e, i) => this[Pt](e, i));
30599
+ this[Y] = [], Xr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
30600
30600
  }
30601
30601
  }
30602
30602
  [H]() {
@@ -30609,13 +30609,13 @@ var tt = class extends Vr__default.default {
30609
30609
  var Wt = class extends tt {
30610
30610
  [ht]() {
30611
30611
  let t;
30612
- if (this[Me] && this[j] === "r+") try {
30613
- t = u__namespace.default.openSync(this[U], this[j], this[se]);
30612
+ if (this[ve] && this[j] === "r+") try {
30613
+ t = u__namespace.default.openSync(this[U], this[j], this[ie]);
30614
30614
  } catch (e) {
30615
30615
  if (e?.code === "ENOENT") return this[j] = "w", this[ht]();
30616
30616
  throw e;
30617
30617
  }
30618
- else t = u__namespace.default.openSync(this[U], this[j], this[se]);
30618
+ else t = u__namespace.default.openSync(this[U], this[j], this[ie]);
30619
30619
  this[Ht](null, t);
30620
30620
  }
30621
30621
  [H]() {
@@ -30624,7 +30624,7 @@ var Wt = class extends tt {
30624
30624
  this[m] = void 0, u__namespace.default.closeSync(t), this.emit("close");
30625
30625
  }
30626
30626
  }
30627
- [ve](t) {
30627
+ [ke](t) {
30628
30628
  let e = true;
30629
30629
  try {
30630
30630
  this[Pt](null, u__namespace.default.writeSync(this[m], t, 0, t.length, this[nt])), e = false;
@@ -30636,50 +30636,50 @@ var Wt = class extends tt {
30636
30636
  }
30637
30637
  }
30638
30638
  };
30639
- var Xr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
30640
- var As = (s3) => !!s3.sync && !!s3.file;
30641
- var Is = (s3) => !s3.sync && !!s3.file;
30639
+ var qr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
30640
+ var Is = (s3) => !!s3.sync && !!s3.file;
30641
+ var Fs = (s3) => !s3.sync && !!s3.file;
30642
30642
  var Cs = (s3) => !!s3.sync && !s3.file;
30643
30643
  var ks = (s3) => !s3.sync && !s3.file;
30644
- var Fs = (s3) => !!s3.file;
30645
- var qr = (s3) => {
30646
- let t = Xr.get(s3);
30644
+ var vs = (s3) => !!s3.file;
30645
+ var Qr = (s3) => {
30646
+ let t = qr.get(s3);
30647
30647
  return t || s3;
30648
30648
  };
30649
- var re = (s3 = {}) => {
30649
+ var se = (s3 = {}) => {
30650
30650
  if (!s3) return {};
30651
30651
  let t = {};
30652
30652
  for (let [e, i] of Object.entries(s3)) {
30653
- let r = qr(e);
30653
+ let r = Qr(e);
30654
30654
  t[r] = i;
30655
30655
  }
30656
30656
  return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
30657
30657
  };
30658
- var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
30659
- Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (h = o, o = void 0), o = o ? Array.from(o) : [];
30660
- let a = re(n);
30661
- if (r?.(a, o), As(a)) {
30662
- if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
30663
- return s3(a, o);
30664
- } else if (Is(a)) {
30665
- let l = t(a, o);
30666
- return h ? l.then(() => h(), h) : l;
30667
- } else if (Cs(a)) {
30668
- if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
30669
- return e(a, o);
30670
- } else if (ks(a)) {
30671
- if (typeof h == "function") throw new TypeError("callback only supported with file option");
30672
- return i(a, o);
30658
+ var K = (s3, t, e, i, r) => Object.assign((n = [], o, a) => {
30659
+ Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (a = o, o = void 0), o = o ? Array.from(o) : [];
30660
+ let h = se(n);
30661
+ if (r?.(h, o), Is(h)) {
30662
+ if (typeof a == "function") throw new TypeError("callback not supported for sync tar functions");
30663
+ return s3(h, o);
30664
+ } else if (Fs(h)) {
30665
+ let l = t(h, o);
30666
+ return a ? l.then(() => a(), a) : l;
30667
+ } else if (Cs(h)) {
30668
+ if (typeof a == "function") throw new TypeError("callback not supported for sync tar functions");
30669
+ return e(h, o);
30670
+ } else if (ks(h)) {
30671
+ if (typeof a == "function") throw new TypeError("callback only supported with file option");
30672
+ return i(h, o);
30673
30673
  }
30674
30674
  throw new Error("impossible options??");
30675
30675
  }, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
30676
- var Jr = vs__namespace.default.constants || { ZLIB_VERNUM: 4736 };
30677
- var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, Jr));
30678
- var jr = buffer.Buffer.concat;
30679
- var Ms = Object.getOwnPropertyDescriptor(buffer.Buffer, "concat");
30680
- var tn = (s3) => s3;
30681
- var Mi = Ms?.writable === true || Ms?.set !== void 0 ? (s3) => {
30682
- buffer.Buffer.concat = s3 ? tn : jr;
30676
+ var jr = Ms__namespace.default.constants || { ZLIB_VERNUM: 4736 };
30677
+ var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, jr));
30678
+ var tn = buffer.Buffer.concat;
30679
+ var Bs = Object.getOwnPropertyDescriptor(buffer.Buffer, "concat");
30680
+ var en = (s3) => s3;
30681
+ var Mi = Bs?.writable === true || Bs?.set !== void 0 ? (s3) => {
30682
+ buffer.Buffer.concat = s3 ? en : tn;
30683
30683
  } : (s3) => {
30684
30684
  };
30685
30685
  var Tt = /* @__PURE__ */ Symbol("_superWrite");
@@ -30694,7 +30694,7 @@ var Gt = class extends Error {
30694
30694
  }
30695
30695
  };
30696
30696
  var Bi = /* @__PURE__ */ Symbol("flushFlag");
30697
- var ne = class extends A {
30697
+ var re = class extends A {
30698
30698
  #t = false;
30699
30699
  #i = false;
30700
30700
  #s;
@@ -30713,9 +30713,9 @@ var ne = class extends A {
30713
30713
  }
30714
30714
  constructor(t, e) {
30715
30715
  if (!t || typeof t != "object") throw new TypeError("invalid options for ZlibBase constructor");
30716
- if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof vs__namespace[e] != "function") throw new TypeError("Compression method not supported: " + e);
30716
+ if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof Ms__namespace[e] != "function") throw new TypeError("Compression method not supported: " + e);
30717
30717
  try {
30718
- this.#e = new vs__namespace[e](t);
30718
+ this.#e = new Ms__namespace[e](t);
30719
30719
  } catch (i) {
30720
30720
  throw new Gt(i, this.constructor);
30721
30721
  }
@@ -30750,26 +30750,26 @@ var ne = class extends A {
30750
30750
  let o = this.#e.close;
30751
30751
  this.#e.close = () => {
30752
30752
  }, Mi(true);
30753
- let h;
30753
+ let a;
30754
30754
  try {
30755
30755
  let l = typeof t[Bi] == "number" ? t[Bi] : this.#s;
30756
- h = this.#e._processChunk(t, l), Mi(false);
30756
+ a = this.#e._processChunk(t, l), Mi(false);
30757
30757
  } catch (l) {
30758
30758
  Mi(false), this.#o(new Gt(l, this.write));
30759
30759
  } finally {
30760
30760
  this.#e && (this.#e._handle = r, r.close = n, this.#e.close = o, this.#e.removeAllListeners("error"));
30761
30761
  }
30762
30762
  this.#e && this.#e.on("error", (l) => this.#o(new Gt(l, this.write)));
30763
- let a;
30764
- if (h) if (Array.isArray(h) && h.length > 0) {
30765
- let l = h[0];
30766
- a = this[Tt](buffer.Buffer.from(l));
30767
- for (let c = 1; c < h.length; c++) a = this[Tt](h[c]);
30768
- } else a = this[Tt](buffer.Buffer.from(h));
30769
- return i && i(), a;
30763
+ let h;
30764
+ if (a) if (Array.isArray(a) && a.length > 0) {
30765
+ let l = a[0];
30766
+ h = this[Tt](buffer.Buffer.from(l));
30767
+ for (let c = 1; c < a.length; c++) h = this[Tt](a[c]);
30768
+ } else h = this[Tt](buffer.Buffer.from(a));
30769
+ return i && i(), h;
30770
30770
  }
30771
30771
  };
30772
- var Pe = class extends ne {
30772
+ var Be = class extends re {
30773
30773
  #t;
30774
30774
  #i;
30775
30775
  constructor(t, e) {
@@ -30795,7 +30795,7 @@ var Pe = class extends ne {
30795
30795
  }
30796
30796
  }
30797
30797
  };
30798
- var ze = class extends Pe {
30798
+ var Pe = class extends Be {
30799
30799
  #t;
30800
30800
  constructor(t) {
30801
30801
  super(t, "Gzip"), this.#t = t && !!t.portable;
@@ -30804,88 +30804,89 @@ var ze = class extends Pe {
30804
30804
  return this.#t ? (this.#t = false, t[9] = 255, super[Tt](t)) : super[Tt](t);
30805
30805
  }
30806
30806
  };
30807
- var Ue = class extends Pe {
30807
+ var ze = class extends Be {
30808
30808
  constructor(t) {
30809
30809
  super(t, "Unzip");
30810
30810
  }
30811
30811
  };
30812
- var He = class extends ne {
30812
+ var Ue = class extends re {
30813
30813
  constructor(t, e) {
30814
30814
  t = t || {}, t.flush = t.flush || M.BROTLI_OPERATION_PROCESS, t.finishFlush = t.finishFlush || M.BROTLI_OPERATION_FINISH, t.fullFlushFlag = M.BROTLI_OPERATION_FLUSH, super(t, e);
30815
30815
  }
30816
30816
  };
30817
- var We = class extends He {
30817
+ var He = class extends Ue {
30818
30818
  constructor(t) {
30819
30819
  super(t, "BrotliCompress");
30820
30820
  }
30821
30821
  };
30822
- var Ge = class extends He {
30822
+ var We = class extends Ue {
30823
30823
  constructor(t) {
30824
30824
  super(t, "BrotliDecompress");
30825
30825
  }
30826
30826
  };
30827
- var Ze = class extends ne {
30827
+ var Ge = class extends re {
30828
30828
  constructor(t, e) {
30829
30829
  t = t || {}, t.flush = t.flush || M.ZSTD_e_continue, t.finishFlush = t.finishFlush || M.ZSTD_e_end, t.fullFlushFlag = M.ZSTD_e_flush, super(t, e);
30830
30830
  }
30831
30831
  };
30832
- var Ye = class extends Ze {
30832
+ var Ze = class extends Ge {
30833
30833
  constructor(t) {
30834
30834
  super(t, "ZstdCompress");
30835
30835
  }
30836
30836
  };
30837
- var Ke = class extends Ze {
30837
+ var Ye = class extends Ge {
30838
30838
  constructor(t) {
30839
30839
  super(t, "ZstdDecompress");
30840
30840
  }
30841
30841
  };
30842
- var Bs = (s3, t) => {
30843
- if (Number.isSafeInteger(s3)) s3 < 0 ? rn(s3, t) : sn(s3, t);
30842
+ var Ps = (s3, t) => {
30843
+ if (Number.isSafeInteger(s3)) s3 < 0 ? nn(s3, t) : rn(s3, t);
30844
30844
  else throw Error("cannot encode number outside of javascript safe integer range");
30845
30845
  return t;
30846
30846
  };
30847
- var sn = (s3, t) => {
30847
+ var rn = (s3, t) => {
30848
30848
  t[0] = 128;
30849
30849
  for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
30850
30850
  };
30851
- var rn = (s3, t) => {
30851
+ var nn = (s3, t) => {
30852
30852
  t[0] = 255;
30853
30853
  var e = false;
30854
30854
  s3 = s3 * -1;
30855
30855
  for (var i = t.length; i > 1; i--) {
30856
30856
  var r = s3 & 255;
30857
- s3 = Math.floor(s3 / 256), e ? t[i - 1] = zs(r) : r === 0 ? t[i - 1] = 0 : (e = true, t[i - 1] = Us(r));
30857
+ s3 = Math.floor(s3 / 256), e ? t[i - 1] = Us(r) : r === 0 ? t[i - 1] = 0 : (e = true, t[i - 1] = Hs(r));
30858
30858
  }
30859
30859
  };
30860
- var Ps = (s3) => {
30861
- let t = s3[0], e = t === 128 ? on(s3.subarray(1, s3.length)) : t === 255 ? nn(s3) : null;
30860
+ var zs = (s3) => {
30861
+ let t = s3[0], e = t === 128 ? hn(s3.subarray(1, s3.length)) : t === 255 ? on(s3) : null;
30862
30862
  if (e === null) throw Error("invalid base256 encoding");
30863
30863
  if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
30864
30864
  return e;
30865
30865
  };
30866
- var nn = (s3) => {
30866
+ var on = (s3) => {
30867
30867
  for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
30868
30868
  var n = Number(s3[r]), o;
30869
- i ? o = zs(n) : n === 0 ? o = n : (i = true, o = Us(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
30869
+ i ? o = Us(n) : n === 0 ? o = n : (i = true, o = Hs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
30870
30870
  }
30871
30871
  return e;
30872
30872
  };
30873
- var on = (s3) => {
30873
+ var hn = (s3) => {
30874
30874
  for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
30875
30875
  var r = Number(s3[i]);
30876
30876
  r !== 0 && (e += r * Math.pow(256, t - i - 1));
30877
30877
  }
30878
30878
  return e;
30879
30879
  };
30880
- var zs = (s3) => (255 ^ s3) & 255;
30881
- var Us = (s3) => (255 ^ s3) + 1 & 255;
30882
- var zi = {};
30883
- Mr(zi, { code: () => Ve, isCode: () => oe, isName: () => an, name: () => he });
30884
- var oe = (s3) => he.has(s3);
30885
- var an = (s3) => Ve.has(s3);
30886
- var he = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
30887
- var Ve = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
30888
- var k = class {
30880
+ var Us = (s3) => (255 ^ s3) & 255;
30881
+ var Hs = (s3) => (255 ^ s3) + 1 & 255;
30882
+ var Ui = {};
30883
+ Br(Ui, { code: () => Ke, isCode: () => ne, isName: () => ln, name: () => oe, normalFsTypes: () => zi });
30884
+ var ne = (s3) => oe.has(s3);
30885
+ var ln = (s3) => Ke.has(s3);
30886
+ var zi = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
30887
+ var oe = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
30888
+ var Ke = new Map(Array.from(oe).map((s3) => [s3[1], s3[0]]));
30889
+ var C = class {
30889
30890
  cksumValid = false;
30890
30891
  needPax = false;
30891
30892
  nullBlock = false;
@@ -30912,46 +30913,45 @@ var k = class {
30912
30913
  }
30913
30914
  decode(t, e, i, r) {
30914
30915
  if (e || (e = 0), !t || !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
30915
- this.path = i?.path ?? xt(t, e, 100), this.mode = i?.mode ?? r?.mode ?? at(t, e + 100, 8), this.uid = i?.uid ?? r?.uid ?? at(t, e + 108, 8), this.gid = i?.gid ?? r?.gid ?? at(t, e + 116, 8), this.size = i?.size ?? r?.size ?? at(t, e + 124, 12), this.mtime = i?.mtime ?? r?.mtime ?? Ui(t, e + 136, 12), this.cksum = at(t, e + 148, 12), r && this.#i(r, true), i && this.#i(i);
30916
- let n = xt(t, e + 156, 1);
30917
- if (oe(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = i?.uname ?? r?.uname ?? xt(t, e + 265, 32), this.gname = i?.gname ?? r?.gname ?? xt(t, e + 297, 32), this.devmaj = i?.devmaj ?? r?.devmaj ?? at(t, e + 329, 8) ?? 0, this.devmin = i?.devmin ?? r?.devmin ?? at(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
30918
- let h = xt(t, e + 345, 155);
30919
- this.path = h + "/" + this.path;
30916
+ let n = xt(t, e + 156, 1), o = zi.has(n), a = o ? i : void 0, h = o ? r : void 0;
30917
+ if (this.path = a?.path ?? xt(t, e, 100), this.mode = a?.mode ?? h?.mode ?? at(t, e + 100, 8), this.uid = a?.uid ?? h?.uid ?? at(t, e + 108, 8), this.gid = a?.gid ?? h?.gid ?? at(t, e + 116, 8), this.size = a?.size ?? h?.size ?? at(t, e + 124, 12), this.mtime = a?.mtime ?? h?.mtime ?? Hi(t, e + 136, 12), this.cksum = at(t, e + 148, 12), h && this.#i(h, true), a && this.#i(a), ne(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = a?.uname ?? h?.uname ?? xt(t, e + 265, 32), this.gname = a?.gname ?? h?.gname ?? xt(t, e + 297, 32), this.devmaj = a?.devmaj ?? h?.devmaj ?? at(t, e + 329, 8) ?? 0, this.devmin = a?.devmin ?? h?.devmin ?? at(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
30918
+ let c = xt(t, e + 345, 155);
30919
+ this.path = c + "/" + this.path;
30920
30920
  } else {
30921
- let h = xt(t, e + 345, 130);
30922
- h && (this.path = h + "/" + this.path), this.atime = i?.atime ?? r?.atime ?? Ui(t, e + 476, 12), this.ctime = i?.ctime ?? r?.ctime ?? Ui(t, e + 488, 12);
30921
+ let c = xt(t, e + 345, 130);
30922
+ c && (this.path = c + "/" + this.path), this.atime = i?.atime ?? r?.atime ?? Hi(t, e + 476, 12), this.ctime = i?.ctime ?? r?.ctime ?? Hi(t, e + 488, 12);
30923
30923
  }
30924
- let o = 256;
30925
- for (let h = e; h < e + 148; h++) o += t[h];
30926
- for (let h = e + 156; h < e + 512; h++) o += t[h];
30927
- this.cksumValid = o === this.cksum, this.cksum === void 0 && o === 256 && (this.nullBlock = true);
30924
+ let l = 256;
30925
+ for (let c = e; c < e + 148; c++) l += t[c];
30926
+ for (let c = e + 156; c < e + 512; c++) l += t[c];
30927
+ this.cksumValid = l === this.cksum, this.cksum === void 0 && l === 256 && (this.nullBlock = true);
30928
30928
  }
30929
30929
  #i(t, e = false) {
30930
30930
  Object.assign(this, Object.fromEntries(Object.entries(t).filter(([i, r]) => !(r == null || i === "path" && e || i === "linkpath" && e || i === "global"))));
30931
30931
  }
30932
30932
  encode(t, e = 0) {
30933
30933
  if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
30934
- let i = this.ctime || this.atime ? 130 : 155, r = ln(this.path || "", i), n = r[0], o = r[1];
30935
- this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = lt(t, e + 100, 8, this.mode) || this.needPax, this.needPax = lt(t, e + 108, 8, this.uid) || this.needPax, this.needPax = lt(t, e + 116, 8, this.gid) || this.needPax, this.needPax = lt(t, e + 124, 12, this.size) || this.needPax, this.needPax = Hi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = lt(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = lt(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Hi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Hi(t, e + 488, 12, this.ctime) || this.needPax);
30936
- let h = 256;
30937
- for (let a = e; a < e + 148; a++) h += t[a];
30938
- for (let a = e + 156; a < e + 512; a++) h += t[a];
30939
- return this.cksum = h, lt(t, e + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
30934
+ let i = this.ctime || this.atime ? 130 : 155, r = cn(this.path || "", i), n = r[0], o = r[1];
30935
+ this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = lt(t, e + 100, 8, this.mode) || this.needPax, this.needPax = lt(t, e + 108, 8, this.uid) || this.needPax, this.needPax = lt(t, e + 116, 8, this.gid) || this.needPax, this.needPax = lt(t, e + 124, 12, this.size) || this.needPax, this.needPax = Wi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = lt(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = lt(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Wi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Wi(t, e + 488, 12, this.ctime) || this.needPax);
30936
+ let a = 256;
30937
+ for (let h = e; h < e + 148; h++) a += t[h];
30938
+ for (let h = e + 156; h < e + 512; h++) a += t[h];
30939
+ return this.cksum = a, lt(t, e + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
30940
30940
  }
30941
30941
  get type() {
30942
- return this.#t === "Unsupported" ? this.#t : he.get(this.#t);
30942
+ return this.#t === "Unsupported" ? this.#t : oe.get(this.#t);
30943
30943
  }
30944
30944
  get typeKey() {
30945
30945
  return this.#t;
30946
30946
  }
30947
30947
  set type(t) {
30948
- let e = String(Ve.get(t));
30949
- if (oe(e) || e === "Unsupported") this.#t = e;
30950
- else if (oe(t)) this.#t = t;
30948
+ let e = String(Ke.get(t));
30949
+ if (ne(e) || e === "Unsupported") this.#t = e;
30950
+ else if (ne(t)) this.#t = t;
30951
30951
  else throw new TypeError("invalid entry type: " + t);
30952
30952
  }
30953
30953
  };
30954
- var ln = (s3, t) => {
30954
+ var cn = (s3, t) => {
30955
30955
  let i = s3, r = "", n, o = R.posix.parse(s3).root || ".";
30956
30956
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
30957
30957
  else {
@@ -30964,19 +30964,19 @@ var ln = (s3, t) => {
30964
30964
  return n;
30965
30965
  };
30966
30966
  var xt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
30967
- var Ui = (s3, t, e) => cn(at(s3, t, e));
30968
- var cn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
30969
- var at = (s3, t, e) => Number(s3[t]) & 128 ? Ps(s3.subarray(t, t + e)) : dn(s3, t, e);
30970
- var fn3 = (s3) => isNaN(s3) ? void 0 : s3;
30971
- var dn = (s3, t, e) => fn3(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
30972
- var un = { 12: 8589934591, 8: 2097151 };
30973
- var lt = (s3, t, e, i) => i === void 0 ? false : i > un[e] || i < 0 ? (Bs(i, s3.subarray(t, t + e)), true) : (mn(s3, t, e, i), false);
30974
- var mn = (s3, t, e, i) => s3.write(pn(i, e), t, e, "ascii");
30975
- var pn = (s3, t) => En(Math.floor(s3).toString(8), t);
30976
- var En = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
30977
- var Hi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
30978
- var wn = new Array(156).join("\0");
30979
- var Lt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + wn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
30967
+ var Hi = (s3, t, e) => fn3(at(s3, t, e));
30968
+ var fn3 = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
30969
+ var at = (s3, t, e) => Number(s3[t]) & 128 ? zs(s3.subarray(t, t + e)) : un(s3, t, e);
30970
+ var dn = (s3) => isNaN(s3) ? void 0 : s3;
30971
+ var un = (s3, t, e) => dn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
30972
+ var mn = { 12: 8589934591, 8: 2097151 };
30973
+ var lt = (s3, t, e, i) => i === void 0 ? false : i > mn[e] || i < 0 ? (Ps(i, s3.subarray(t, t + e)), true) : (pn(s3, t, e, i), false);
30974
+ var pn = (s3, t, e, i) => s3.write(En(i, e), t, e, "ascii");
30975
+ var En = (s3, t) => wn(Math.floor(s3).toString(8), t);
30976
+ var wn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
30977
+ var Wi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
30978
+ var Sn = new Array(156).join("\0");
30979
+ var Lt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + Sn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
30980
30980
  var ct = class s {
30981
30981
  atime;
30982
30982
  mtime;
@@ -31003,7 +31003,7 @@ var ct = class s {
31003
31003
  if (t === "") return Buffer.allocUnsafe(0);
31004
31004
  let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
31005
31005
  for (let n = 0; n < 512; n++) r[n] = 0;
31006
- new k({ path: ("PaxHeader/" + R.basename(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
31006
+ new C({ path: ("PaxHeader/" + R.basename(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
31007
31007
  for (let n = e + 512; n < r.length; n++) r[n] = 0;
31008
31008
  return r;
31009
31009
  }
@@ -31017,13 +31017,13 @@ var ct = class s {
31017
31017
  return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
31018
31018
  }
31019
31019
  static parse(t, e, i = false) {
31020
- return new s(yn(Rn(t), e), i);
31020
+ return new s(Rn(gn(t), e), i);
31021
31021
  }
31022
31022
  };
31023
- var yn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
31024
- var Rn = (s3) => s3.replace(/\n$/, "").split(`
31025
- `).reduce(gn, /* @__PURE__ */ Object.create(null));
31026
- var gn = (s3, t) => {
31023
+ var Rn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
31024
+ var gn = (s3) => s3.replace(/\n$/, "").split(`
31025
+ `).reduce(bn, /* @__PURE__ */ Object.create(null));
31026
+ var bn = (s3, t) => {
31027
31027
  let e = parseInt(t, 10);
31028
31028
  if (e !== Buffer.byteLength(t) + 1) return s3;
31029
31029
  t = t.slice((e + " ").length);
@@ -31032,9 +31032,9 @@ var gn = (s3, t) => {
31032
31032
  let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
31033
31033
  return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
31034
31034
  };
31035
- var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
31036
- var f = bn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
31037
- var Yt = class extends A {
31035
+ var _n = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
31036
+ var f = _n !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
31037
+ var Ve = class extends A {
31038
31038
  extended;
31039
31039
  globalExtended;
31040
31040
  header;
@@ -31101,42 +31101,42 @@ var Yt = class extends A {
31101
31101
  var Nt = (s3, t, e, i = {}) => {
31102
31102
  s3.file && (i.file = s3.file), s3.cwd && (i.cwd = s3.cwd), i.code = e instanceof Error && e.code || t, i.tarCode = t, !s3.strict && i.recoverable !== false ? (e instanceof Error && (i = Object.assign(e, i), e = e.message), s3.emit("warn", t, e, i)) : e instanceof Error ? s3.emit("error", Object.assign(e, i)) : s3.emit("error", Object.assign(new Error(`${t}: ${e}`), i));
31103
31103
  };
31104
- var On = 1024 * 1024;
31105
- var Ki = Buffer.from([31, 139]);
31106
- var Vi = Buffer.from([40, 181, 47, 253]);
31107
- var Tn = Math.max(Ki.length, Vi.length);
31104
+ var Tn = 1024 * 1024;
31105
+ var Vi = Buffer.from([31, 139]);
31106
+ var $i = Buffer.from([40, 181, 47, 253]);
31107
+ var xn = Math.max(Vi.length, $i.length);
31108
31108
  var B = /* @__PURE__ */ Symbol("state");
31109
31109
  var Dt = /* @__PURE__ */ Symbol("writeEntry");
31110
31110
  var et = /* @__PURE__ */ Symbol("readEntry");
31111
- var Wi = /* @__PURE__ */ Symbol("nextEntry");
31112
- var Hs = /* @__PURE__ */ Symbol("processEntry");
31111
+ var Gi = /* @__PURE__ */ Symbol("nextEntry");
31112
+ var Ws = /* @__PURE__ */ Symbol("processEntry");
31113
31113
  var V = /* @__PURE__ */ Symbol("extendedHeader");
31114
- var ae = /* @__PURE__ */ Symbol("globalExtendedHeader");
31114
+ var he = /* @__PURE__ */ Symbol("globalExtendedHeader");
31115
31115
  var ft = /* @__PURE__ */ Symbol("meta");
31116
- var Ws = /* @__PURE__ */ Symbol("emitMeta");
31116
+ var Gs = /* @__PURE__ */ Symbol("emitMeta");
31117
31117
  var p = /* @__PURE__ */ Symbol("buffer");
31118
31118
  var it = /* @__PURE__ */ Symbol("queue");
31119
31119
  var dt = /* @__PURE__ */ Symbol("ended");
31120
- var Gi = /* @__PURE__ */ Symbol("emittedEnd");
31120
+ var Zi = /* @__PURE__ */ Symbol("emittedEnd");
31121
31121
  var At = /* @__PURE__ */ Symbol("emit");
31122
31122
  var y = /* @__PURE__ */ Symbol("unzip");
31123
31123
  var $e = /* @__PURE__ */ Symbol("consumeChunk");
31124
31124
  var Xe = /* @__PURE__ */ Symbol("consumeChunkSub");
31125
- var Zi = /* @__PURE__ */ Symbol("consumeBody");
31126
- var Gs = /* @__PURE__ */ Symbol("consumeMeta");
31127
- var Zs = /* @__PURE__ */ Symbol("consumeHeader");
31128
- var le = /* @__PURE__ */ Symbol("consuming");
31129
- var Yi = /* @__PURE__ */ Symbol("bufferConcat");
31125
+ var Yi = /* @__PURE__ */ Symbol("consumeBody");
31126
+ var Zs = /* @__PURE__ */ Symbol("consumeMeta");
31127
+ var Ys = /* @__PURE__ */ Symbol("consumeHeader");
31128
+ var ae = /* @__PURE__ */ Symbol("consuming");
31129
+ var Ki = /* @__PURE__ */ Symbol("bufferConcat");
31130
31130
  var qe = /* @__PURE__ */ Symbol("maybeEnd");
31131
- var Kt = /* @__PURE__ */ Symbol("writing");
31131
+ var Yt = /* @__PURE__ */ Symbol("writing");
31132
31132
  var ut = /* @__PURE__ */ Symbol("aborted");
31133
31133
  var Qe = /* @__PURE__ */ Symbol("onDone");
31134
31134
  var It = /* @__PURE__ */ Symbol("sawValidEntry");
31135
31135
  var Je = /* @__PURE__ */ Symbol("sawNullBlock");
31136
31136
  var je = /* @__PURE__ */ Symbol("sawEOF");
31137
- var Ys = /* @__PURE__ */ Symbol("closeStream");
31138
- var xn = () => true;
31139
- var st = class extends Vr.EventEmitter {
31137
+ var Ks = /* @__PURE__ */ Symbol("closeStream");
31138
+ var Ln = () => true;
31139
+ var st = class extends $r.EventEmitter {
31140
31140
  file;
31141
31141
  strict;
31142
31142
  maxMetaEntrySize;
@@ -31152,35 +31152,35 @@ var st = class extends Vr.EventEmitter {
31152
31152
  [B] = "begin";
31153
31153
  [ft] = "";
31154
31154
  [V];
31155
- [ae];
31155
+ [he];
31156
31156
  [dt] = false;
31157
31157
  [y];
31158
31158
  [ut] = false;
31159
31159
  [It];
31160
31160
  [Je] = false;
31161
31161
  [je] = false;
31162
- [Kt] = false;
31163
- [le] = false;
31164
- [Gi] = false;
31162
+ [Yt] = false;
31163
+ [ae] = false;
31164
+ [Zi] = false;
31165
31165
  constructor(t = {}) {
31166
31166
  super(), this.file = t.file || "", this.on(Qe, () => {
31167
31167
  (this[B] === "begin" || this[It] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
31168
31168
  }), t.ondone ? this.on(Qe, t.ondone) : this.on(Qe, () => {
31169
31169
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
31170
- }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || On, this.filter = typeof t.filter == "function" ? t.filter : xn;
31170
+ }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || Tn, this.filter = typeof t.filter == "function" ? t.filter : Ln;
31171
31171
  let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
31172
31172
  this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
31173
31173
  let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
31174
- this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[Ys]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onReadEntry == "function" && this.on("entry", t.onReadEntry);
31174
+ this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[Ks]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onReadEntry == "function" && this.on("entry", t.onReadEntry);
31175
31175
  }
31176
31176
  warn(t, e, i = {}) {
31177
31177
  Nt(this, t, e, i);
31178
31178
  }
31179
- [Zs](t, e) {
31179
+ [Ys](t, e) {
31180
31180
  this[It] === void 0 && (this[It] = false);
31181
31181
  let i;
31182
31182
  try {
31183
- i = new k(t, e, this[V], this[ae]);
31183
+ i = new C(t, e, this[V], this[he]);
31184
31184
  } catch (r) {
31185
31185
  return this.warn("TAR_ENTRY_INVALID", r);
31186
31186
  }
@@ -31192,59 +31192,59 @@ var st = class extends Vr.EventEmitter {
31192
31192
  if (/^(Symbolic)?Link$/.test(r) && !i.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath required", { header: i });
31193
31193
  else if (!/^(Symbolic)?Link$/.test(r) && !/^(Global)?ExtendedHeader$/.test(r) && i.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: i });
31194
31194
  else {
31195
- let n = this[Dt] = new Yt(i, this[V], this[ae]);
31195
+ let n = this[Dt] = new Ve(i, this[V], this[he]);
31196
31196
  if (!this[It]) if (n.remain) {
31197
31197
  let o = () => {
31198
31198
  n.invalid || (this[It] = true);
31199
31199
  };
31200
31200
  n.on("end", o);
31201
31201
  } else this[It] = true;
31202
- n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[At]("ignoredEntry", n), this[B] = "ignore", n.resume()) : n.size > 0 && (this[ft] = "", n.on("data", (o) => this[ft] += o), this[B] = "meta") : (this[V] = void 0, n.ignore = n.ignore || !this.filter(n.path, n), n.ignore ? (this[At]("ignoredEntry", n), this[B] = n.remain ? "ignore" : "header", n.resume()) : (n.remain ? this[B] = "body" : (this[B] = "header", n.end()), this[et] ? this[it].push(n) : (this[it].push(n), this[Wi]())));
31202
+ n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[At]("ignoredEntry", n), this[B] = "ignore", n.resume()) : n.size > 0 && (this[ft] = "", n.on("data", (o) => this[ft] += o), this[B] = "meta") : (this[V] = void 0, n.ignore = n.ignore || !this.filter(n.path, n), n.ignore ? (this[At]("ignoredEntry", n), this[B] = n.remain ? "ignore" : "header", n.resume()) : (n.remain ? this[B] = "body" : (this[B] = "header", n.end()), this[et] ? this[it].push(n) : (this[it].push(n), this[Gi]())));
31203
31203
  }
31204
31204
  }
31205
31205
  }
31206
- [Ys]() {
31206
+ [Ks]() {
31207
31207
  queueMicrotask(() => this.emit("close"));
31208
31208
  }
31209
- [Hs](t) {
31209
+ [Ws](t) {
31210
31210
  let e = true;
31211
31211
  if (!t) this[et] = void 0, e = false;
31212
31212
  else if (Array.isArray(t)) {
31213
31213
  let [i, ...r] = t;
31214
31214
  this.emit(i, ...r);
31215
- } else this[et] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[Wi]()), e = false);
31215
+ } else this[et] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[Gi]()), e = false);
31216
31216
  return e;
31217
31217
  }
31218
- [Wi]() {
31218
+ [Gi]() {
31219
31219
  do
31220
31220
  ;
31221
- while (this[Hs](this[it].shift()));
31221
+ while (this[Ws](this[it].shift()));
31222
31222
  if (this[it].length === 0) {
31223
31223
  let t = this[et];
31224
- !t || t.flowing || t.size === t.remain ? this[Kt] || this.emit("drain") : t.once("drain", () => this.emit("drain"));
31224
+ !t || t.flowing || t.size === t.remain ? this[Yt] || this.emit("drain") : t.once("drain", () => this.emit("drain"));
31225
31225
  }
31226
31226
  }
31227
- [Zi](t, e) {
31227
+ [Yi](t, e) {
31228
31228
  let i = this[Dt];
31229
31229
  if (!i) throw new Error("attempt to consume body without entry??");
31230
31230
  let r = i.blockRemain ?? 0, n = r >= t.length && e === 0 ? t : t.subarray(e, e + r);
31231
31231
  return i.write(n), i.blockRemain || (this[B] = "header", this[Dt] = void 0, i.end()), n.length;
31232
31232
  }
31233
- [Gs](t, e) {
31234
- let i = this[Dt], r = this[Zi](t, e);
31235
- return !this[Dt] && i && this[Ws](i), r;
31233
+ [Zs](t, e) {
31234
+ let i = this[Dt], r = this[Yi](t, e);
31235
+ return !this[Dt] && i && this[Gs](i), r;
31236
31236
  }
31237
31237
  [At](t, e, i) {
31238
31238
  this[it].length === 0 && !this[et] ? this.emit(t, e, i) : this[it].push([t, e, i]);
31239
31239
  }
31240
- [Ws](t) {
31240
+ [Gs](t) {
31241
31241
  switch (this[At]("meta", this[ft]), t.type) {
31242
31242
  case "ExtendedHeader":
31243
31243
  case "OldExtendedHeader":
31244
31244
  this[V] = ct.parse(this[ft], this[V], false);
31245
31245
  break;
31246
31246
  case "GlobalExtendedHeader":
31247
- this[ae] = ct.parse(this[ft], this[ae], true);
31247
+ this[he] = ct.parse(this[ft], this[he], true);
31248
31248
  break;
31249
31249
  case "NextFileHasLongPath":
31250
31250
  case "OldGnuLongPath": {
@@ -31267,43 +31267,43 @@ var st = class extends Vr.EventEmitter {
31267
31267
  write(t, e, i) {
31268
31268
  if (typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8")), this[ut]) return i?.(), false;
31269
31269
  if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
31270
- if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < Tn) return this[p] = t, i?.(), true;
31271
- for (let a = 0; this[y] === void 0 && a < Ki.length; a++) t[a] !== Ki[a] && (this[y] = false);
31270
+ if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < xn) return this[p] = t, i?.(), true;
31271
+ for (let h = 0; this[y] === void 0 && h < Vi.length; h++) t[h] !== Vi[h] && (this[y] = false);
31272
31272
  let o = false;
31273
31273
  if (this[y] === false && this.zstd !== false) {
31274
31274
  o = true;
31275
- for (let a = 0; a < Vi.length; a++) if (t[a] !== Vi[a]) {
31275
+ for (let h = 0; h < $i.length; h++) if (t[h] !== $i[h]) {
31276
31276
  o = false;
31277
31277
  break;
31278
31278
  }
31279
31279
  }
31280
- let h = this.brotli === void 0 && !o;
31281
- if (this[y] === false && h) if (t.length < 512) if (this[dt]) this.brotli = true;
31280
+ let a = this.brotli === void 0 && !o;
31281
+ if (this[y] === false && a) if (t.length < 512) if (this[dt]) this.brotli = true;
31282
31282
  else return this[p] = t, i?.(), true;
31283
31283
  else try {
31284
- new k(t.subarray(0, 512)), this.brotli = false;
31284
+ new C(t.subarray(0, 512)), this.brotli = false;
31285
31285
  } catch {
31286
31286
  this.brotli = true;
31287
31287
  }
31288
31288
  if (this[y] === void 0 || this[y] === false && (this.brotli || o)) {
31289
- let a = this[dt];
31290
- this[dt] = false, this[y] = this[y] === void 0 ? new Ue({}) : o ? new Ke({}) : new Ge({}), this[y].on("data", (c) => this[$e](c)), this[y].on("error", (c) => this.abort(c)), this[y].on("end", () => {
31289
+ let h = this[dt];
31290
+ this[dt] = false, this[y] = this[y] === void 0 ? new ze({}) : o ? new Ye({}) : new We({}), this[y].on("data", (c) => this[$e](c)), this[y].on("error", (c) => this.abort(c)), this[y].on("end", () => {
31291
31291
  this[dt] = true, this[$e]();
31292
- }), this[Kt] = true;
31293
- let l = !!this[y][a ? "end" : "write"](t);
31294
- return this[Kt] = false, i?.(), l;
31292
+ }), this[Yt] = true;
31293
+ let l = !!this[y][h ? "end" : "write"](t);
31294
+ return this[Yt] = false, i?.(), l;
31295
31295
  }
31296
31296
  }
31297
- this[Kt] = true, this[y] ? this[y].write(t) : this[$e](t), this[Kt] = false;
31297
+ this[Yt] = true, this[y] ? this[y].write(t) : this[$e](t), this[Yt] = false;
31298
31298
  let n = this[it].length > 0 ? false : this[et] ? this[et].flowing : true;
31299
31299
  return !n && this[it].length === 0 && this[et]?.once("drain", () => this.emit("drain")), i?.(), n;
31300
31300
  }
31301
- [Yi](t) {
31301
+ [Ki](t) {
31302
31302
  t && !this[ut] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
31303
31303
  }
31304
31304
  [qe]() {
31305
- if (this[dt] && !this[Gi] && !this[ut] && !this[le]) {
31306
- this[Gi] = true;
31305
+ if (this[dt] && !this[Zi] && !this[ut] && !this[ae]) {
31306
+ this[Zi] = true;
31307
31307
  let t = this[Dt];
31308
31308
  if (t && t.blockRemain) {
31309
31309
  let e = this[p] ? this[p].length : 0;
@@ -31313,11 +31313,11 @@ var st = class extends Vr.EventEmitter {
31313
31313
  }
31314
31314
  }
31315
31315
  [$e](t) {
31316
- if (this[le] && t) this[Yi](t);
31316
+ if (this[ae] && t) this[Ki](t);
31317
31317
  else if (!t && !this[p]) this[qe]();
31318
31318
  else if (t) {
31319
- if (this[le] = true, this[p]) {
31320
- this[Yi](t);
31319
+ if (this[ae] = true, this[p]) {
31320
+ this[Ki](t);
31321
31321
  let e = this[p];
31322
31322
  this[p] = void 0, this[Xe](e);
31323
31323
  } else this[Xe](t);
@@ -31325,7 +31325,7 @@ var st = class extends Vr.EventEmitter {
31325
31325
  let e = this[p];
31326
31326
  this[p] = void 0, this[Xe](e);
31327
31327
  }
31328
- this[le] = false;
31328
+ this[ae] = false;
31329
31329
  }
31330
31330
  (!this[p] || this[dt]) && this[qe]();
31331
31331
  }
@@ -31334,14 +31334,14 @@ var st = class extends Vr.EventEmitter {
31334
31334
  for (; e + 512 <= i && !this[ut] && !this[je]; ) switch (this[B]) {
31335
31335
  case "begin":
31336
31336
  case "header":
31337
- this[Zs](t, e), e += 512;
31337
+ this[Ys](t, e), e += 512;
31338
31338
  break;
31339
31339
  case "ignore":
31340
31340
  case "body":
31341
- e += this[Zi](t, e);
31341
+ e += this[Yi](t, e);
31342
31342
  break;
31343
31343
  case "meta":
31344
- e += this[Gs](t, e);
31344
+ e += this[Zs](t, e);
31345
31345
  break;
31346
31346
  default:
31347
31347
  throw new Error("invalid state: " + this[B]);
@@ -31357,38 +31357,38 @@ var mt = (s3) => {
31357
31357
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
31358
31358
  return e === -1 ? s3 : s3.slice(0, e);
31359
31359
  };
31360
- var Dn = (s3) => {
31360
+ var An = (s3) => {
31361
31361
  let t = s3.onReadEntry;
31362
31362
  s3.onReadEntry = t ? (e) => {
31363
31363
  t(e), e.resume();
31364
31364
  } : (e) => e.resume();
31365
31365
  };
31366
- var $i = (s3, t) => {
31366
+ var Xi = (s3, t) => {
31367
31367
  let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
31368
- let h = o || R.parse(n).root || ".", a;
31369
- if (n === h) a = false;
31368
+ let a = o || R.parse(n).root || ".", h;
31369
+ if (n === a) h = false;
31370
31370
  else {
31371
31371
  let l = e.get(n);
31372
- a = l !== void 0 ? l : r(R.dirname(n), h);
31372
+ h = l !== void 0 ? l : r(R.dirname(n), a);
31373
31373
  }
31374
- return e.set(n, a), a;
31374
+ return e.set(n, h), h;
31375
31375
  };
31376
31376
  s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
31377
31377
  };
31378
- var An = (s3) => {
31378
+ var In = (s3) => {
31379
31379
  let t = new st(s3), e = s3.file, i;
31380
31380
  try {
31381
31381
  i = u__namespace.default.openSync(e, "r");
31382
31382
  let r = u__namespace.default.fstatSync(i), n = s3.maxReadSize || 16 * 1024 * 1024;
31383
31383
  if (r.size < n) {
31384
- let o = Buffer.allocUnsafe(r.size), h = u__namespace.default.readSync(i, o, 0, r.size, 0);
31385
- t.end(h === o.byteLength ? o : o.subarray(0, h));
31384
+ let o = Buffer.allocUnsafe(r.size), a = u__namespace.default.readSync(i, o, 0, r.size, 0);
31385
+ t.end(a === o.byteLength ? o : o.subarray(0, a));
31386
31386
  } else {
31387
- let o = 0, h = Buffer.allocUnsafe(n);
31387
+ let o = 0, a = Buffer.allocUnsafe(n);
31388
31388
  for (; o < r.size; ) {
31389
- let a = u__namespace.default.readSync(i, h, 0, n, o);
31390
- if (a === 0) break;
31391
- o += a, t.write(h.subarray(0, a));
31389
+ let h = u__namespace.default.readSync(i, a, 0, n, o);
31390
+ if (h === 0) break;
31391
+ o += h, t.write(a.subarray(0, h));
31392
31392
  }
31393
31393
  t.end();
31394
31394
  }
@@ -31399,58 +31399,58 @@ var An = (s3) => {
31399
31399
  }
31400
31400
  }
31401
31401
  };
31402
- var In = (s3, t) => {
31402
+ var Fn = (s3, t) => {
31403
31403
  let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
31404
- return new Promise((o, h) => {
31405
- e.on("error", h), e.on("end", o), u__namespace.default.stat(r, (a, l) => {
31406
- if (a) h(a);
31404
+ return new Promise((o, a) => {
31405
+ e.on("error", a), e.on("end", o), u__namespace.default.stat(r, (h, l) => {
31406
+ if (h) a(h);
31407
31407
  else {
31408
31408
  let c = new _t(r, { readSize: i, size: l.size });
31409
- c.on("error", h), c.pipe(e);
31409
+ c.on("error", a), c.pipe(e);
31410
31410
  }
31411
31411
  });
31412
31412
  });
31413
31413
  };
31414
- var Ct = K(An, In, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
31415
- t?.length && $i(s3, t), s3.noResume || Dn(s3);
31414
+ var Ft = K(In, Fn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
31415
+ t?.length && Xi(s3, t), s3.noResume || An(s3);
31416
31416
  });
31417
- var Xi = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
31418
- var { isAbsolute: kn, parse: Ks } = R.win32;
31419
- var ce = (s3) => {
31420
- let t = "", e = Ks(s3);
31417
+ var qi = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
31418
+ var { isAbsolute: kn, parse: Vs } = R.win32;
31419
+ var le = (s3) => {
31420
+ let t = "", e = Vs(s3);
31421
31421
  for (; kn(s3) || e.root; ) {
31422
31422
  let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
31423
- s3 = s3.slice(i.length), t += i, e = Ks(s3);
31423
+ s3 = s3.slice(i.length), t += i, e = Vs(s3);
31424
31424
  }
31425
31425
  return [t, s3];
31426
31426
  };
31427
31427
  var ti = ["|", "<", ">", "?", ":"];
31428
- var qi = ti.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
31429
- var Fn = new Map(ti.map((s3, t) => [s3, qi[t]]));
31430
- var vn = new Map(qi.map((s3, t) => [s3, ti[t]]));
31431
- var Qi = (s3) => ti.reduce((t, e) => t.split(e).join(Fn.get(e)), s3);
31432
- var Vs = (s3) => qi.reduce((t, e) => t.split(e).join(vn.get(e)), s3);
31433
- var tr = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
31434
- var Mn = 16 * 1024 * 1024;
31435
- var qs = /* @__PURE__ */ Symbol("process");
31436
- var Qs = /* @__PURE__ */ Symbol("file");
31437
- var Js = /* @__PURE__ */ Symbol("directory");
31438
- var ji = /* @__PURE__ */ Symbol("symlink");
31439
- var js = /* @__PURE__ */ Symbol("hardlink");
31440
- var fe = /* @__PURE__ */ Symbol("header");
31428
+ var Qi = ti.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
31429
+ var vn = new Map(ti.map((s3, t) => [s3, Qi[t]]));
31430
+ var Mn = new Map(Qi.map((s3, t) => [s3, ti[t]]));
31431
+ var Ji = (s3) => ti.reduce((t, e) => t.split(e).join(vn.get(e)), s3);
31432
+ var $s = (s3) => Qi.reduce((t, e) => t.split(e).join(Mn.get(e)), s3);
31433
+ var er = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
31434
+ var Bn = 16 * 1024 * 1024;
31435
+ var Qs = /* @__PURE__ */ Symbol("process");
31436
+ var Js = /* @__PURE__ */ Symbol("file");
31437
+ var js = /* @__PURE__ */ Symbol("directory");
31438
+ var ts = /* @__PURE__ */ Symbol("symlink");
31439
+ var tr = /* @__PURE__ */ Symbol("hardlink");
31440
+ var ce = /* @__PURE__ */ Symbol("header");
31441
31441
  var ei = /* @__PURE__ */ Symbol("read");
31442
- var ts = /* @__PURE__ */ Symbol("lstat");
31442
+ var es = /* @__PURE__ */ Symbol("lstat");
31443
31443
  var ii = /* @__PURE__ */ Symbol("onlstat");
31444
- var es = /* @__PURE__ */ Symbol("onread");
31445
- var is3 = /* @__PURE__ */ Symbol("onreadlink");
31446
- var ss = /* @__PURE__ */ Symbol("openfile");
31447
- var rs = /* @__PURE__ */ Symbol("onopenfile");
31444
+ var is3 = /* @__PURE__ */ Symbol("onread");
31445
+ var ss = /* @__PURE__ */ Symbol("onreadlink");
31446
+ var rs = /* @__PURE__ */ Symbol("openfile");
31447
+ var ns = /* @__PURE__ */ Symbol("onopenfile");
31448
31448
  var pt = /* @__PURE__ */ Symbol("close");
31449
31449
  var si = /* @__PURE__ */ Symbol("mode");
31450
- var ns = /* @__PURE__ */ Symbol("awaitDrain");
31451
- var Ji = /* @__PURE__ */ Symbol("ondrain");
31450
+ var os = /* @__PURE__ */ Symbol("awaitDrain");
31451
+ var ji = /* @__PURE__ */ Symbol("ondrain");
31452
31452
  var X = /* @__PURE__ */ Symbol("prefix");
31453
- var de = class extends A {
31453
+ var fe = class extends A {
31454
31454
  path;
31455
31455
  portable;
31456
31456
  myuid = process.getuid && process.getuid() || 0;
@@ -31482,16 +31482,16 @@ var de = class extends A {
31482
31482
  onWriteEntry;
31483
31483
  #t = false;
31484
31484
  constructor(t, e = {}) {
31485
- let i = re(e);
31486
- super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || Mn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
31485
+ let i = se(e);
31486
+ super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || Bn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
31487
31487
  let r = false;
31488
31488
  if (!this.preservePaths) {
31489
- let [o, h] = ce(this.path);
31490
- o && typeof h == "string" && (this.path = h, r = o);
31489
+ let [o, a] = le(this.path);
31490
+ o && typeof a == "string" && (this.path = a, r = o);
31491
31491
  }
31492
- this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = Vs(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || R__namespace.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
31492
+ this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = $s(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || R__namespace.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
31493
31493
  let n = this.statCache.get(this.absolute);
31494
- n ? this[ii](n) : this[ts]();
31494
+ n ? this[ii](n) : this[es]();
31495
31495
  }
31496
31496
  warn(t, e, i = {}) {
31497
31497
  return Nt(this, t, e, i);
@@ -31499,74 +31499,74 @@ var de = class extends A {
31499
31499
  emit(t, ...e) {
31500
31500
  return t === "error" && (this.#t = true), super.emit(t, ...e);
31501
31501
  }
31502
- [ts]() {
31502
+ [es]() {
31503
31503
  u__namespace.default.lstat(this.absolute, (t, e) => {
31504
31504
  if (t) return this.emit("error", t);
31505
31505
  this[ii](e);
31506
31506
  });
31507
31507
  }
31508
31508
  [ii](t) {
31509
- this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Bn(t), this.emit("stat", t), this[qs]();
31509
+ this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Pn(t), this.emit("stat", t), this[Qs]();
31510
31510
  }
31511
- [qs]() {
31511
+ [Qs]() {
31512
31512
  switch (this.type) {
31513
31513
  case "File":
31514
- return this[Qs]();
31515
- case "Directory":
31516
31514
  return this[Js]();
31515
+ case "Directory":
31516
+ return this[js]();
31517
31517
  case "SymbolicLink":
31518
- return this[ji]();
31518
+ return this[ts]();
31519
31519
  default:
31520
31520
  return this.end();
31521
31521
  }
31522
31522
  }
31523
31523
  [si](t) {
31524
- return Xi(t, this.type === "Directory", this.portable);
31524
+ return qi(t, this.type === "Directory", this.portable);
31525
31525
  }
31526
31526
  [X](t) {
31527
- return tr(t, this.prefix);
31527
+ return er(t, this.prefix);
31528
31528
  }
31529
- [fe]() {
31529
+ [ce]() {
31530
31530
  if (!this.stat) throw new Error("cannot write header before stat");
31531
- this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new k({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this[si](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
31531
+ this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new C({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this[si](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
31532
31532
  let t = this.header?.block;
31533
31533
  if (!t) throw new Error("failed to encode header");
31534
31534
  super.write(t);
31535
31535
  }
31536
- [Js]() {
31536
+ [js]() {
31537
31537
  if (!this.stat) throw new Error("cannot create directory entry without stat");
31538
- this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
31538
+ this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[ce](), this.end();
31539
31539
  }
31540
- [ji]() {
31540
+ [ts]() {
31541
31541
  u__namespace.default.readlink(this.absolute, (t, e) => {
31542
31542
  if (t) return this.emit("error", t);
31543
- this[is3](e);
31543
+ this[ss](e);
31544
31544
  });
31545
31545
  }
31546
- [is3](t) {
31547
- this.linkpath = f(t), this[fe](), this.end();
31546
+ [ss](t) {
31547
+ this.linkpath = f(t), this[ce](), this.end();
31548
31548
  }
31549
- [js](t) {
31549
+ [tr](t) {
31550
31550
  if (!this.stat) throw new Error("cannot create link entry without stat");
31551
- this.type = "Link", this.linkpath = f(R__namespace.default.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
31551
+ this.type = "Link", this.linkpath = f(R__namespace.default.relative(this.cwd, t)), this.stat.size = 0, this[ce](), this.end();
31552
31552
  }
31553
- [Qs]() {
31553
+ [Js]() {
31554
31554
  if (!this.stat) throw new Error("cannot create file entry without stat");
31555
31555
  if (this.stat.nlink > 1) {
31556
31556
  let t = `${this.stat.dev}:${this.stat.ino}`, e = this.linkCache.get(t);
31557
- if (e?.indexOf(this.cwd) === 0) return this[js](e);
31557
+ if (e?.indexOf(this.cwd) === 0) return this[tr](e);
31558
31558
  this.linkCache.set(t, this.absolute);
31559
31559
  }
31560
- if (this[fe](), this.stat.size === 0) return this.end();
31561
- this[ss]();
31560
+ if (this[ce](), this.stat.size === 0) return this.end();
31561
+ this[rs]();
31562
31562
  }
31563
- [ss]() {
31563
+ [rs]() {
31564
31564
  u__namespace.default.open(this.absolute, "r", (t, e) => {
31565
31565
  if (t) return this.emit("error", t);
31566
- this[rs](e);
31566
+ this[ns](e);
31567
31567
  });
31568
31568
  }
31569
- [rs](t) {
31569
+ [ns](t) {
31570
31570
  if (this.fd = t, this.#t) return this[pt]();
31571
31571
  if (!this.stat) throw new Error("should stat before calling onopenfile");
31572
31572
  this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
@@ -31576,16 +31576,16 @@ var de = class extends A {
31576
31576
  [ei]() {
31577
31577
  let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
31578
31578
  if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
31579
- u__namespace.default.read(t, e, i, r, n, (o, h) => {
31579
+ u__namespace.default.read(t, e, i, r, n, (o, a) => {
31580
31580
  if (o) return this[pt](() => this.emit("error", o));
31581
- this[es](h);
31581
+ this[is3](a);
31582
31582
  });
31583
31583
  }
31584
31584
  [pt](t = () => {
31585
31585
  }) {
31586
31586
  this.fd !== void 0 && u__namespace.default.close(this.fd, t);
31587
31587
  }
31588
- [es](t) {
31588
+ [is3](t) {
31589
31589
  if (t <= 0 && this.remain > 0) {
31590
31590
  let r = Object.assign(new Error("encountered unexpected EOF"), { path: this.absolute, syscall: "read", code: "EOF" });
31591
31591
  return this[pt](() => this.emit("error", r));
@@ -31597,9 +31597,9 @@ var de = class extends A {
31597
31597
  if (!this.buf) throw new Error("should have created buffer prior to reading");
31598
31598
  if (t === this.remain) for (let r = t; r < this.length && t < this.blockRemain; r++) this.buf[r + this.offset] = 0, t++, this.remain++;
31599
31599
  let e = this.offset === 0 && t === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t);
31600
- this.write(e) ? this[Ji]() : this[ns](() => this[Ji]());
31600
+ this.write(e) ? this[ji]() : this[os](() => this[ji]());
31601
31601
  }
31602
- [ns](t) {
31602
+ [os](t) {
31603
31603
  this.once("drain", t);
31604
31604
  }
31605
31605
  write(t, e, i) {
@@ -31609,30 +31609,30 @@ var de = class extends A {
31609
31609
  }
31610
31610
  return this.remain -= t.length, this.blockRemain -= t.length, this.pos += t.length, this.offset += t.length, super.write(t, null, i);
31611
31611
  }
31612
- [Ji]() {
31612
+ [ji]() {
31613
31613
  if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[pt]((t) => t ? this.emit("error", t) : this.end());
31614
31614
  if (!this.buf) throw new Error("buffer lost somehow in ONDRAIN");
31615
31615
  this.offset >= this.length && (this.buf = Buffer.allocUnsafe(Math.min(this.blockRemain, this.buf.length)), this.offset = 0), this.length = this.buf.length - this.offset, this[ei]();
31616
31616
  }
31617
31617
  };
31618
- var ri = class extends de {
31618
+ var ri = class extends fe {
31619
31619
  sync = true;
31620
- [ts]() {
31620
+ [es]() {
31621
31621
  this[ii](u__namespace.default.lstatSync(this.absolute));
31622
31622
  }
31623
- [ji]() {
31624
- this[is3](u__namespace.default.readlinkSync(this.absolute));
31623
+ [ts]() {
31624
+ this[ss](u__namespace.default.readlinkSync(this.absolute));
31625
31625
  }
31626
- [ss]() {
31627
- this[rs](u__namespace.default.openSync(this.absolute, "r"));
31626
+ [rs]() {
31627
+ this[ns](u__namespace.default.openSync(this.absolute, "r"));
31628
31628
  }
31629
31629
  [ei]() {
31630
31630
  let t = true;
31631
31631
  try {
31632
31632
  let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
31633
31633
  if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
31634
- let h = u__namespace.default.readSync(e, i, r, n, o);
31635
- this[es](h), t = false;
31634
+ let a = u__namespace.default.readSync(e, i, r, n, o);
31635
+ this[is3](a), t = false;
31636
31636
  } finally {
31637
31637
  if (t) try {
31638
31638
  this[pt](() => {
@@ -31641,7 +31641,7 @@ var ri = class extends de {
31641
31641
  }
31642
31642
  }
31643
31643
  }
31644
- [ns](t) {
31644
+ [os](t) {
31645
31645
  t();
31646
31646
  }
31647
31647
  [pt](t = () => {
@@ -31681,26 +31681,26 @@ var ni = class extends A {
31681
31681
  return Nt(this, t, e, i);
31682
31682
  }
31683
31683
  constructor(t, e = {}) {
31684
- let i = re(e);
31684
+ let i = se(e);
31685
31685
  super(), this.preservePaths = !!i.preservePaths, this.portable = !!i.portable, this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.onWriteEntry = i.onWriteEntry, this.readEntry = t;
31686
31686
  let { type: r } = t;
31687
31687
  if (r === "Unsupported") throw new Error("writing entry that should be ignored");
31688
31688
  this.type = r, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i.prefix, this.path = f(t.path), this.mode = t.mode !== void 0 ? this[si](t.mode) : void 0, this.uid = this.portable ? void 0 : t.uid, this.gid = this.portable ? void 0 : t.gid, this.uname = this.portable ? void 0 : t.uname, this.gname = this.portable ? void 0 : t.gname, this.size = t.size, this.mtime = this.noMtime ? void 0 : i.mtime || t.mtime, this.atime = this.portable ? void 0 : t.atime, this.ctime = this.portable ? void 0 : t.ctime, this.linkpath = t.linkpath !== void 0 ? f(t.linkpath) : void 0, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
31689
31689
  let n = false;
31690
31690
  if (!this.preservePaths) {
31691
- let [h, a] = ce(this.path);
31692
- h && typeof a == "string" && (this.path = a, n = h);
31691
+ let [a, h] = le(this.path);
31692
+ a && typeof h == "string" && (this.path = h, n = a);
31693
31693
  }
31694
- this.remain = t.size, this.blockRemain = t.startBlockSize, this.onWriteEntry?.(this), this.header = new k({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? void 0 : this.uid, gid: this.portable ? void 0 : this.gid, size: this.size, mtime: this.noMtime ? void 0 : this.mtime, type: this.type, uname: this.portable ? void 0 : this.uname, atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime }), n && this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute path`, { entry: this, path: n + this.path }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime, gid: this.portable ? void 0 : this.gid, mtime: this.noMtime ? void 0 : this.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? void 0 : this.uid, uname: this.portable ? void 0 : this.uname, dev: this.portable ? void 0 : this.readEntry.dev, ino: this.portable ? void 0 : this.readEntry.ino, nlink: this.portable ? void 0 : this.readEntry.nlink }).encode());
31694
+ this.remain = t.size, this.blockRemain = t.startBlockSize, this.onWriteEntry?.(this), this.header = new C({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? void 0 : this.uid, gid: this.portable ? void 0 : this.gid, size: this.size, mtime: this.noMtime ? void 0 : this.mtime, type: this.type, uname: this.portable ? void 0 : this.uname, atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime }), n && this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute path`, { entry: this, path: n + this.path }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime, gid: this.portable ? void 0 : this.gid, mtime: this.noMtime ? void 0 : this.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? void 0 : this.uid, uname: this.portable ? void 0 : this.uname, dev: this.portable ? void 0 : this.readEntry.dev, ino: this.portable ? void 0 : this.readEntry.ino, nlink: this.portable ? void 0 : this.readEntry.nlink }).encode());
31695
31695
  let o = this.header?.block;
31696
31696
  if (!o) throw new Error("failed to encode header");
31697
31697
  super.write(o), t.pipe(this);
31698
31698
  }
31699
31699
  [X](t) {
31700
- return tr(t, this.prefix);
31700
+ return er(t, this.prefix);
31701
31701
  }
31702
31702
  [si](t) {
31703
- return Xi(t, this.type === "Directory", this.portable);
31703
+ return qi(t, this.type === "Directory", this.portable);
31704
31704
  }
31705
31705
  write(t, e, i) {
31706
31706
  typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8"));
@@ -31712,7 +31712,7 @@ var ni = class extends A {
31712
31712
  return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e ?? "utf8")), i && this.once("finish", i), t ? super.end(t, i) : super.end(i), this;
31713
31713
  }
31714
31714
  };
31715
- var Bn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
31715
+ var Pn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
31716
31716
  var oi = class s2 {
31717
31717
  tail;
31718
31718
  head;
@@ -31744,11 +31744,11 @@ var oi = class s2 {
31744
31744
  t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
31745
31745
  }
31746
31746
  push(...t) {
31747
- for (let e = 0, i = t.length; e < i; e++) zn(this, t[e]);
31747
+ for (let e = 0, i = t.length; e < i; e++) Un(this, t[e]);
31748
31748
  return this.length;
31749
31749
  }
31750
31750
  unshift(...t) {
31751
- for (var e = 0, i = t.length; e < i; e++) Un(this, t[e]);
31751
+ for (var e = 0, i = t.length; e < i; e++) Hn(this, t[e]);
31752
31752
  return this.length;
31753
31753
  }
31754
31754
  pop() {
@@ -31844,7 +31844,7 @@ var oi = class s2 {
31844
31844
  let n = [];
31845
31845
  for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
31846
31846
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
31847
- for (let o of i) r = Pn(this, r, o);
31847
+ for (let o of i) r = zn(this, r, o);
31848
31848
  return n;
31849
31849
  }
31850
31850
  reverse() {
@@ -31856,17 +31856,17 @@ var oi = class s2 {
31856
31856
  return this.head = e, this.tail = t, this;
31857
31857
  }
31858
31858
  };
31859
- function Pn(s3, t, e) {
31860
- let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
31859
+ function zn(s3, t, e) {
31860
+ let i = t, r = t ? t.next : s3.head, n = new de(e, i, r, s3);
31861
31861
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
31862
31862
  }
31863
- function zn(s3, t) {
31864
- s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
31865
- }
31866
31863
  function Un(s3, t) {
31867
- s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
31864
+ s3.tail = new de(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
31865
+ }
31866
+ function Hn(s3, t) {
31867
+ s3.head = new de(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
31868
31868
  }
31869
- var ue = class {
31869
+ var de = class {
31870
31870
  list;
31871
31871
  next;
31872
31872
  prev;
@@ -31889,28 +31889,28 @@ var mi = class {
31889
31889
  this.path = t || "./", this.absolute = e;
31890
31890
  }
31891
31891
  };
31892
- var er = Buffer.alloc(1024);
31892
+ var ir = Buffer.alloc(1024);
31893
31893
  var ai = /* @__PURE__ */ Symbol("onStat");
31894
- var me = /* @__PURE__ */ Symbol("ended");
31894
+ var ue = /* @__PURE__ */ Symbol("ended");
31895
31895
  var W = /* @__PURE__ */ Symbol("queue");
31896
- var pe = /* @__PURE__ */ Symbol("queue");
31896
+ var me = /* @__PURE__ */ Symbol("pendingLinks");
31897
31897
  var Et = /* @__PURE__ */ Symbol("current");
31898
- var kt = /* @__PURE__ */ Symbol("process");
31899
- var Ee = /* @__PURE__ */ Symbol("processing");
31898
+ var Ct = /* @__PURE__ */ Symbol("process");
31899
+ var pe = /* @__PURE__ */ Symbol("processing");
31900
31900
  var hi = /* @__PURE__ */ Symbol("processJob");
31901
31901
  var G = /* @__PURE__ */ Symbol("jobs");
31902
- var os = /* @__PURE__ */ Symbol("jobDone");
31902
+ var hs = /* @__PURE__ */ Symbol("jobDone");
31903
31903
  var li = /* @__PURE__ */ Symbol("addFSEntry");
31904
- var ir = /* @__PURE__ */ Symbol("addTarEntry");
31905
- var ls = /* @__PURE__ */ Symbol("stat");
31906
- var cs = /* @__PURE__ */ Symbol("readdir");
31904
+ var sr = /* @__PURE__ */ Symbol("addTarEntry");
31905
+ var cs = /* @__PURE__ */ Symbol("stat");
31906
+ var fs = /* @__PURE__ */ Symbol("readdir");
31907
31907
  var ci = /* @__PURE__ */ Symbol("onreaddir");
31908
31908
  var fi = /* @__PURE__ */ Symbol("pipe");
31909
- var sr = /* @__PURE__ */ Symbol("entry");
31910
- var hs = /* @__PURE__ */ Symbol("entryOpt");
31909
+ var rr = /* @__PURE__ */ Symbol("entry");
31910
+ var as3 = /* @__PURE__ */ Symbol("entryOpt");
31911
31911
  var di = /* @__PURE__ */ Symbol("writeEntryClass");
31912
- var nr = /* @__PURE__ */ Symbol("write");
31913
- var as3 = /* @__PURE__ */ Symbol("ondrain");
31912
+ var or = /* @__PURE__ */ Symbol("write");
31913
+ var ls = /* @__PURE__ */ Symbol("ondrain");
31914
31914
  var wt = class extends A {
31915
31915
  sync = false;
31916
31916
  opt;
@@ -31935,46 +31935,46 @@ var wt = class extends A {
31935
31935
  [di];
31936
31936
  onWriteEntry;
31937
31937
  [W];
31938
- [pe] = /* @__PURE__ */ new Map();
31938
+ [me] = /* @__PURE__ */ new Map();
31939
31939
  [G] = 0;
31940
- [Ee] = false;
31941
- [me] = false;
31940
+ [pe] = false;
31941
+ [ue] = false;
31942
31942
  constructor(t = {}) {
31943
- if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[di] = de, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
31943
+ if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[di] = fe, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
31944
31944
  if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
31945
- if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new ze(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new We(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ye(t.zstd)), !this.zip) throw new Error("impossible");
31945
+ if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new Pe(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new He(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ze(t.zstd)), !this.zip) throw new Error("impossible");
31946
31946
  let e = this.zip;
31947
- e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[as3]()), this.on("resume", () => e.resume());
31948
- } else this.on("drain", this[as3]);
31949
- this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new oi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[Ee] = false, this[me] = false;
31947
+ e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[ls]()), this.on("resume", () => e.resume());
31948
+ } else this.on("drain", this[ls]);
31949
+ this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new oi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[pe] = false, this[ue] = false;
31950
31950
  }
31951
- [nr](t) {
31951
+ [or](t) {
31952
31952
  return super.write(t);
31953
31953
  }
31954
31954
  add(t) {
31955
31955
  return this.write(t), this;
31956
31956
  }
31957
31957
  end(t, e, i) {
31958
- return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[me] = true, this[kt](), i && i(), this;
31958
+ return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[ue] = true, this[Ct](), i && i(), this;
31959
31959
  }
31960
31960
  write(t) {
31961
- if (this[me]) throw new Error("write after end");
31962
- return t instanceof Yt ? this[ir](t) : this[li](t), this.flowing;
31961
+ if (this[ue]) throw new Error("write after end");
31962
+ return typeof t == "string" ? this[li](t) : this[sr](t), this.flowing;
31963
31963
  }
31964
- [ir](t) {
31964
+ [sr](t) {
31965
31965
  let e = f(R__namespace.default.resolve(this.cwd, t.path));
31966
31966
  if (!this.filter(t.path, t)) t.resume();
31967
31967
  else {
31968
31968
  let i = new mi(t.path, e);
31969
- i.entry = new ni(t, this[hs](i)), i.entry.on("end", () => this[os](i)), this[G] += 1, this[W].push(i);
31969
+ i.entry = new ni(t, this[as3](i)), i.entry.on("end", () => this[hs](i)), this[G] += 1, this[W].push(i);
31970
31970
  }
31971
- this[kt]();
31971
+ this[Ct]();
31972
31972
  }
31973
31973
  [li](t) {
31974
31974
  let e = f(R__namespace.default.resolve(this.cwd, t));
31975
- this[W].push(new mi(t, e)), this[kt]();
31975
+ this[W].push(new mi(t, e)), this[Ct]();
31976
31976
  }
31977
- [ls](t) {
31977
+ [cs](t) {
31978
31978
  t.pending = true, this[G] += 1;
31979
31979
  let e = this.follow ? "stat" : "lstat";
31980
31980
  u__namespace.default[e](t.absolute, (i, r) => {
@@ -31985,44 +31985,44 @@ var wt = class extends A {
31985
31985
  if (this.statCache.set(t.absolute, e), t.stat = e, !this.filter(t.path, e)) t.ignore = true;
31986
31986
  else if (e.isFile() && e.nlink > 1 && !this.linkCache.get(`${e.dev}:${e.ino}`) && !this.sync) if (t === this[Et]) this[hi](t);
31987
31987
  else {
31988
- let i = `${e.dev}:${e.ino}`, r = this[pe].get(i);
31989
- r ? r.push(t) : this[pe].set(i, [t]), t.pendingLink = true, t.pending = true;
31988
+ let i = `${e.dev}:${e.ino}`, r = this[me].get(i);
31989
+ r ? r.push(t) : this[me].set(i, [t]), t.pendingLink = true, t.pending = true;
31990
31990
  }
31991
- this[kt]();
31991
+ this[Ct]();
31992
31992
  }
31993
- [cs](t) {
31993
+ [fs](t) {
31994
31994
  t.pending = true, this[G] += 1, u__namespace.default.readdir(t.absolute, (e, i) => {
31995
31995
  if (t.pending = false, this[G] -= 1, e) return this.emit("error", e);
31996
31996
  this[ci](t, i);
31997
31997
  });
31998
31998
  }
31999
31999
  [ci](t, e) {
32000
- this.readdirCache.set(t.absolute, e), t.readdir = e, this[kt]();
32000
+ this.readdirCache.set(t.absolute, e), t.readdir = e, this[Ct]();
32001
32001
  }
32002
- [kt]() {
32003
- if (!this[Ee]) {
32004
- this[Ee] = true;
32002
+ [Ct]() {
32003
+ if (!this[pe]) {
32004
+ this[pe] = true;
32005
32005
  for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[hi](t.value), t.value.ignore) {
32006
32006
  let e = t.next;
32007
32007
  this[W].removeNode(t), t.next = e;
32008
32008
  }
32009
- this[Ee] = false, this[me] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(er) : (super.write(er), super.end()));
32009
+ this[pe] = false, this[ue] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(ir) : (super.write(ir), super.end()));
32010
32010
  }
32011
32011
  }
32012
32012
  get [Et]() {
32013
32013
  return this[W] && this[W].head && this[W].head.value;
32014
32014
  }
32015
- [os](t) {
32015
+ [hs](t) {
32016
32016
  this[W].shift(), this[G] -= 1;
32017
32017
  let { stat: e } = t;
32018
32018
  if (e && e.isFile() && e.nlink > 1) {
32019
- let i = `${e.dev}:${e.ino}`, r = this[pe].get(i);
32019
+ let i = `${e.dev}:${e.ino}`, r = this[me].get(i);
32020
32020
  if (r) {
32021
- this[pe].delete(i);
32021
+ this[me].delete(i);
32022
32022
  for (let n of r) n.pending = false, this[hi](n);
32023
32023
  }
32024
32024
  }
32025
- this[kt]();
32025
+ this[Ct]();
32026
32026
  }
32027
32027
  [hi](t) {
32028
32028
  if (t.pending && t.pendingLink && t === this[Et] && (t.pending = false, t.pendingLink = false), !t.pending) {
@@ -32032,14 +32032,14 @@ var wt = class extends A {
32032
32032
  }
32033
32033
  if (!t.stat) {
32034
32034
  let e = this.statCache.get(t.absolute);
32035
- e ? this[ai](t, e) : this[ls](t);
32035
+ e ? this[ai](t, e) : this[cs](t);
32036
32036
  }
32037
32037
  if (t.stat && !t.ignore) {
32038
32038
  if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
32039
32039
  let e = this.readdirCache.get(t.absolute);
32040
- if (e ? this[ci](t, e) : this[cs](t), !t.readdir) return;
32040
+ if (e ? this[ci](t, e) : this[fs](t), !t.readdir) return;
32041
32041
  }
32042
- if (t.entry = this[sr](t), !t.entry) {
32042
+ if (t.entry = this[rr](t), !t.entry) {
32043
32043
  t.ignore = true;
32044
32044
  return;
32045
32045
  }
@@ -32047,18 +32047,18 @@ var wt = class extends A {
32047
32047
  }
32048
32048
  }
32049
32049
  }
32050
- [hs](t) {
32050
+ [as3](t) {
32051
32051
  return { onwarn: (e, i, r) => this.warn(e, i, r), noPax: this.noPax, cwd: this.cwd, absolute: t.absolute, preservePaths: this.preservePaths, maxReadSize: this.maxReadSize, strict: this.strict, portable: this.portable, linkCache: this.linkCache, statCache: this.statCache, noMtime: this.noMtime, mtime: this.mtime, prefix: this.prefix, onWriteEntry: this.onWriteEntry };
32052
32052
  }
32053
- [sr](t) {
32053
+ [rr](t) {
32054
32054
  this[G] += 1;
32055
32055
  try {
32056
- return new this[di](t.path, this[hs](t)).on("end", () => this[os](t)).on("error", (i) => this.emit("error", i));
32056
+ return new this[di](t.path, this[as3](t)).on("end", () => this[hs](t)).on("error", (i) => this.emit("error", i));
32057
32057
  } catch (e) {
32058
32058
  this.emit("error", e);
32059
32059
  }
32060
32060
  }
32061
- [as3]() {
32061
+ [ls]() {
32062
32062
  this[Et] && this[Et].entry && this[Et].entry.resume();
32063
32063
  }
32064
32064
  [fi](t) {
@@ -32081,7 +32081,7 @@ var wt = class extends A {
32081
32081
  Nt(this, t, e, i);
32082
32082
  }
32083
32083
  };
32084
- var Ft = class extends wt {
32084
+ var kt = class extends wt {
32085
32085
  sync = true;
32086
32086
  constructor(t) {
32087
32087
  super(t), this[di] = ri;
@@ -32090,11 +32090,11 @@ var Ft = class extends wt {
32090
32090
  }
32091
32091
  resume() {
32092
32092
  }
32093
- [ls](t) {
32093
+ [cs](t) {
32094
32094
  let e = this.follow ? "statSync" : "lstatSync";
32095
32095
  this[ai](t, u__namespace.default[e](t.absolute));
32096
32096
  }
32097
- [cs](t) {
32097
+ [fs](t) {
32098
32098
  this[ci](t, u__namespace.default.readdirSync(t.absolute));
32099
32099
  }
32100
32100
  [fi](t) {
@@ -32106,54 +32106,54 @@ var Ft = class extends wt {
32106
32106
  i ? e.on("data", (r) => {
32107
32107
  i.write(r);
32108
32108
  }) : e.on("data", (r) => {
32109
- super[nr](r);
32109
+ super[or](r);
32110
32110
  });
32111
32111
  }
32112
32112
  };
32113
- var Hn = (s3, t) => {
32114
- let e = new Ft(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
32115
- e.pipe(i), hr(e, t);
32116
- };
32117
32113
  var Wn = (s3, t) => {
32114
+ let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
32115
+ e.pipe(i), ar(e, t);
32116
+ };
32117
+ var Gn = (s3, t) => {
32118
32118
  let e = new wt(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
32119
32119
  e.pipe(i);
32120
32120
  let r = new Promise((n, o) => {
32121
32121
  i.on("error", o), i.on("close", n), e.on("error", o);
32122
32122
  });
32123
- return ar(e, t).catch((n) => e.emit("error", n)), r;
32123
+ return lr(e, t).catch((n) => e.emit("error", n)), r;
32124
32124
  };
32125
- var hr = (s3, t) => {
32125
+ var ar = (s3, t) => {
32126
32126
  t.forEach((e) => {
32127
- e.charAt(0) === "@" ? Ct({ file: R__namespace.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
32127
+ e.charAt(0) === "@" ? Ft({ file: R__namespace.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
32128
32128
  }), s3.end();
32129
32129
  };
32130
- var ar = async (s3, t) => {
32131
- for (let e of t) e.charAt(0) === "@" ? await Ct({ file: R__namespace.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
32130
+ var lr = async (s3, t) => {
32131
+ for (let e of t) e.charAt(0) === "@" ? await Ft({ file: R__namespace.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
32132
32132
  s3.add(i);
32133
32133
  } }) : s3.add(e);
32134
32134
  s3.end();
32135
32135
  };
32136
- var Gn = (s3, t) => {
32137
- let e = new Ft(s3);
32138
- return hr(e, t), e;
32139
- };
32140
32136
  var Zn = (s3, t) => {
32137
+ let e = new kt(s3);
32138
+ return ar(e, t), e;
32139
+ };
32140
+ var Yn = (s3, t) => {
32141
32141
  let e = new wt(s3);
32142
- return ar(e, t).catch((i) => e.emit("error", i)), e;
32142
+ return lr(e, t).catch((i) => e.emit("error", i)), e;
32143
32143
  };
32144
- K(Hn, Wn, Gn, Zn, (s3, t) => {
32144
+ K(Wn, Gn, Zn, Yn, (s3, t) => {
32145
32145
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
32146
32146
  });
32147
- var Kn = process.env.__FAKE_PLATFORM__ || process.platform;
32148
- var dr = Kn === "win32";
32149
- var { O_CREAT: ur, O_NOFOLLOW: lr, O_TRUNC: mr, O_WRONLY: pr } = u__namespace.default.constants;
32150
- var Er = Number(process.env.__FAKE_FS_O_FILENAME__) || u__namespace.default.constants.UV_FS_O_FILEMAP || 0;
32151
- var Vn = dr && !!Er;
32152
- var $n = 512 * 1024;
32153
- var Xn = Er | mr | ur | pr;
32154
- var cr = !dr && typeof lr == "number" ? lr | mr | ur | pr : null;
32155
- var fs = cr !== null ? () => cr : Vn ? (s3) => s3 < $n ? Xn : "w" : () => "w";
32156
- var ds = (s3, t, e) => {
32147
+ var Vn = process.env.__FAKE_PLATFORM__ || process.platform;
32148
+ var ur = Vn === "win32";
32149
+ var { O_CREAT: mr, O_NOFOLLOW: cr, O_TRUNC: pr, O_WRONLY: Er } = u__namespace.default.constants;
32150
+ var wr = Number(process.env.__FAKE_FS_O_FILENAME__) || u__namespace.default.constants.UV_FS_O_FILEMAP || 0;
32151
+ var $n = ur && !!wr;
32152
+ var Xn = 512 * 1024;
32153
+ var qn = wr | pr | mr | Er;
32154
+ var fr = !ur && typeof cr == "number" ? cr | pr | mr | Er : null;
32155
+ var ds = fr !== null ? () => fr : $n ? (s3) => s3 < Xn ? qn : "w" : () => "w";
32156
+ var us = (s3, t, e) => {
32157
32157
  try {
32158
32158
  return u__namespace.default.lchownSync(s3, t, e);
32159
32159
  } catch (i) {
@@ -32165,8 +32165,8 @@ var pi = (s3, t, e, i) => {
32165
32165
  i(r && r?.code !== "ENOENT" ? r : null);
32166
32166
  });
32167
32167
  };
32168
- var qn = (s3, t, e, i, r) => {
32169
- if (t.isDirectory()) us(R__namespace.default.resolve(s3, t.name), e, i, (n) => {
32168
+ var Qn = (s3, t, e, i, r) => {
32169
+ if (t.isDirectory()) ms(R__namespace.default.resolve(s3, t.name), e, i, (n) => {
32170
32170
  if (n) return r(n);
32171
32171
  let o = R__namespace.default.resolve(s3, t.name);
32172
32172
  pi(o, e, i, r);
@@ -32176,39 +32176,39 @@ var qn = (s3, t, e, i, r) => {
32176
32176
  pi(n, e, i, r);
32177
32177
  }
32178
32178
  };
32179
- var us = (s3, t, e, i) => {
32179
+ var ms = (s3, t, e, i) => {
32180
32180
  u__namespace.default.readdir(s3, { withFileTypes: true }, (r, n) => {
32181
32181
  if (r) {
32182
32182
  if (r.code === "ENOENT") return i();
32183
32183
  if (r.code !== "ENOTDIR" && r.code !== "ENOTSUP") return i(r);
32184
32184
  }
32185
32185
  if (r || !n.length) return pi(s3, t, e, i);
32186
- let o = n.length, h = null, a = (l) => {
32187
- if (!h) {
32188
- if (l) return i(h = l);
32186
+ let o = n.length, a = null, h = (l) => {
32187
+ if (!a) {
32188
+ if (l) return i(a = l);
32189
32189
  if (--o === 0) return pi(s3, t, e, i);
32190
32190
  }
32191
32191
  };
32192
- for (let l of n) qn(s3, l, t, e, a);
32192
+ for (let l of n) Qn(s3, l, t, e, h);
32193
32193
  });
32194
32194
  };
32195
- var Qn = (s3, t, e, i) => {
32196
- t.isDirectory() && ms(R__namespace.default.resolve(s3, t.name), e, i), ds(R__namespace.default.resolve(s3, t.name), e, i);
32195
+ var Jn = (s3, t, e, i) => {
32196
+ t.isDirectory() && ps(R__namespace.default.resolve(s3, t.name), e, i), us(R__namespace.default.resolve(s3, t.name), e, i);
32197
32197
  };
32198
- var ms = (s3, t, e) => {
32198
+ var ps = (s3, t, e) => {
32199
32199
  let i;
32200
32200
  try {
32201
32201
  i = u__namespace.default.readdirSync(s3, { withFileTypes: true });
32202
32202
  } catch (r) {
32203
32203
  let n = r;
32204
32204
  if (n?.code === "ENOENT") return;
32205
- if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return ds(s3, t, e);
32205
+ if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return us(s3, t, e);
32206
32206
  throw n;
32207
32207
  }
32208
- for (let r of i) Qn(s3, r, t, e);
32209
- return ds(s3, t, e);
32208
+ for (let r of i) Jn(s3, r, t, e);
32209
+ return us(s3, t, e);
32210
32210
  };
32211
- var Se = class extends Error {
32211
+ var we = class extends Error {
32212
32212
  path;
32213
32213
  code;
32214
32214
  syscall = "chdir";
@@ -32231,87 +32231,87 @@ var St = class extends Error {
32231
32231
  return "SymlinkError";
32232
32232
  }
32233
32233
  };
32234
- var jn = (s3, t) => {
32234
+ var to = (s3, t) => {
32235
32235
  u__namespace.default.stat(s3, (e, i) => {
32236
- (e || !i.isDirectory()) && (e = new Se(s3, e?.code || "ENOTDIR")), t(e);
32236
+ (e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
32237
32237
  });
32238
32238
  };
32239
- var wr = (s3, t, e) => {
32239
+ var Sr = (s3, t, e) => {
32240
32240
  s3 = f(s3);
32241
- let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, h = t.gid, a = typeof o == "number" && typeof h == "number" && (o !== t.processUid || h !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
32242
- E ? e(E) : x && a ? us(x, o, h, (Le) => S(Le)) : n ? u__namespace.default.chmod(s3, r, e) : e();
32241
+ let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, a = t.gid, h = typeof o == "number" && typeof a == "number" && (o !== t.processUid || a !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
32242
+ E ? e(E) : x && h ? ms(x, o, a, (xe) => S(xe)) : n ? u__namespace.default.chmod(s3, r, e) : e();
32243
32243
  };
32244
- if (s3 === d) return jn(s3, S);
32245
- if (l) return Jn__default.default.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
32244
+ if (s3 === d) return to(s3, S);
32245
+ if (l) return jn__default.default.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
32246
32246
  let N = f(R__namespace.default.relative(d, s3)).split("/");
32247
- ps(d, N, r, c, d, void 0, S);
32247
+ Es(d, N, r, c, d, void 0, S);
32248
32248
  };
32249
- var ps = (s3, t, e, i, r, n, o) => {
32249
+ var Es = (s3, t, e, i, r, n, o) => {
32250
32250
  if (t.length === 0) return o(null, n);
32251
- let h = t.shift(), a = f(R__namespace.default.resolve(s3 + "/" + h));
32252
- u__namespace.default.mkdir(a, e, Sr(a, t, e, i, r, n, o));
32251
+ let a = t.shift(), h = f(R__namespace.default.resolve(s3 + "/" + a));
32252
+ u__namespace.default.mkdir(h, e, yr(h, t, e, i, r, n, o));
32253
32253
  };
32254
- var Sr = (s3, t, e, i, r, n, o) => (h) => {
32255
- h ? u__namespace.default.lstat(s3, (a, l) => {
32256
- if (a) a.path = a.path && f(a.path), o(a);
32257
- else if (l.isDirectory()) ps(s3, t, e, i, r, n, o);
32254
+ var yr = (s3, t, e, i, r, n, o) => (a) => {
32255
+ a ? u__namespace.default.lstat(s3, (h, l) => {
32256
+ if (h) h.path = h.path && f(h.path), o(h);
32257
+ else if (l.isDirectory()) Es(s3, t, e, i, r, n, o);
32258
32258
  else if (i) u__namespace.default.unlink(s3, (c) => {
32259
32259
  if (c) return o(c);
32260
- u__namespace.default.mkdir(s3, e, Sr(s3, t, e, i, r, n, o));
32260
+ u__namespace.default.mkdir(s3, e, yr(s3, t, e, i, r, n, o));
32261
32261
  });
32262
32262
  else {
32263
32263
  if (l.isSymbolicLink()) return o(new St(s3, s3 + "/" + t.join("/")));
32264
- o(h);
32264
+ o(a);
32265
32265
  }
32266
- }) : (n = n || s3, ps(s3, t, e, i, r, n, o));
32266
+ }) : (n = n || s3, Es(s3, t, e, i, r, n, o));
32267
32267
  };
32268
- var to = (s3) => {
32268
+ var eo = (s3) => {
32269
32269
  let t = false, e;
32270
32270
  try {
32271
32271
  t = u__namespace.default.statSync(s3).isDirectory();
32272
32272
  } catch (i) {
32273
32273
  e = i?.code;
32274
32274
  } finally {
32275
- if (!t) throw new Se(s3, e ?? "ENOTDIR");
32275
+ if (!t) throw new we(s3, e ?? "ENOTDIR");
32276
32276
  }
32277
32277
  };
32278
- var yr = (s3, t) => {
32278
+ var Rr = (s3, t) => {
32279
32279
  s3 = f(s3);
32280
- let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, h = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), a = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
32281
- E && h && ms(E, n, o), r && u__namespace.default.chmodSync(s3, i);
32280
+ let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, a = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), h = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
32281
+ E && a && ps(E, n, o), r && u__namespace.default.chmodSync(s3, i);
32282
32282
  };
32283
- if (s3 === c) return to(c), d();
32284
- if (a) return d(u__namespace.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
32283
+ if (s3 === c) return eo(c), d();
32284
+ if (h) return d(u__namespace.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
32285
32285
  let T = f(R__namespace.default.relative(c, s3)).split("/"), N;
32286
32286
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
32287
32287
  x = f(R__namespace.default.resolve(x));
32288
32288
  try {
32289
32289
  u__namespace.default.mkdirSync(x, i), N = N || x;
32290
32290
  } catch {
32291
- let Le = u__namespace.default.lstatSync(x);
32292
- if (Le.isDirectory()) continue;
32291
+ let xe = u__namespace.default.lstatSync(x);
32292
+ if (xe.isDirectory()) continue;
32293
32293
  if (l) {
32294
32294
  u__namespace.default.unlinkSync(x), u__namespace.default.mkdirSync(x, i), N = N || x;
32295
32295
  continue;
32296
- } else if (Le.isSymbolicLink()) return new St(x, x + "/" + T.join("/"));
32296
+ } else if (xe.isSymbolicLink()) return new St(x, x + "/" + T.join("/"));
32297
32297
  }
32298
32298
  }
32299
32299
  return d(N);
32300
32300
  };
32301
- var Es = /* @__PURE__ */ Object.create(null);
32302
- var Rr = 1e4;
32303
- var $t = /* @__PURE__ */ new Set();
32304
- var gr = (s3) => {
32305
- $t.has(s3) ? $t.delete(s3) : Es[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
32306
- let t = Es[s3], e = $t.size - Rr;
32307
- if (e > Rr / 10) {
32308
- for (let i of $t) if ($t.delete(i), delete Es[i], --e <= 0) break;
32301
+ var ws = /* @__PURE__ */ Object.create(null);
32302
+ var gr = 1e4;
32303
+ var Vt = /* @__PURE__ */ new Set();
32304
+ var br = (s3) => {
32305
+ Vt.has(s3) ? Vt.delete(s3) : ws[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), Vt.add(s3);
32306
+ let t = ws[s3], e = Vt.size - gr;
32307
+ if (e > gr / 10) {
32308
+ for (let i of Vt) if (Vt.delete(i), delete ws[i], --e <= 0) break;
32309
32309
  }
32310
32310
  return t;
32311
32311
  };
32312
- var eo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
32313
- var io = eo === "win32";
32314
- var so = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
32312
+ var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
32313
+ var so = io === "win32";
32314
+ var ro = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
32315
32315
  let r = e.at(-1);
32316
32316
  return r !== void 0 && (i = R.join(r, i)), e.push(i || "/"), e;
32317
32317
  }, []);
@@ -32320,8 +32320,8 @@ var Si = class {
32320
32320
  #i = /* @__PURE__ */ new Map();
32321
32321
  #s = /* @__PURE__ */ new Set();
32322
32322
  reserve(t, e) {
32323
- t = io ? ["win32 parallelization disabled"] : t.map((r) => mt(R.join(gr(r))));
32324
- let i = new Set(t.map((r) => so(r)).reduce((r, n) => r.concat(n)));
32323
+ t = so ? ["win32 parallelization disabled"] : t.map((r) => mt(R.join(br(r))));
32324
+ let i = new Set(t.map((r) => ro(r)).reduce((r, n) => r.concat(n)));
32325
32325
  this.#i.set(e, { dirs: i, paths: t });
32326
32326
  for (let r of t) {
32327
32327
  let n = this.#t.get(r);
@@ -32355,77 +32355,77 @@ var Si = class {
32355
32355
  if (!e) throw new Error("invalid reservation");
32356
32356
  let { paths: i, dirs: r } = e, n = /* @__PURE__ */ new Set();
32357
32357
  for (let o of i) {
32358
- let h = this.#t.get(o);
32359
- if (!h || h?.[0] !== t) continue;
32360
- let a = h[1];
32361
- if (!a) {
32358
+ let a = this.#t.get(o);
32359
+ if (!a || a?.[0] !== t) continue;
32360
+ let h = a[1];
32361
+ if (!h) {
32362
32362
  this.#t.delete(o);
32363
32363
  continue;
32364
32364
  }
32365
- if (h.shift(), typeof a == "function") n.add(a);
32366
- else for (let l of a) n.add(l);
32365
+ if (a.shift(), typeof h == "function") n.add(h);
32366
+ else for (let l of h) n.add(l);
32367
32367
  }
32368
32368
  for (let o of r) {
32369
- let h = this.#t.get(o), a = h?.[0];
32370
- if (!(!h || !(a instanceof Set))) if (a.size === 1 && h.length === 1) {
32369
+ let a = this.#t.get(o), h = a?.[0];
32370
+ if (!(!a || !(h instanceof Set))) if (h.size === 1 && a.length === 1) {
32371
32371
  this.#t.delete(o);
32372
32372
  continue;
32373
- } else if (a.size === 1) {
32374
- h.shift();
32375
- let l = h[0];
32373
+ } else if (h.size === 1) {
32374
+ a.shift();
32375
+ let l = a[0];
32376
32376
  typeof l == "function" && n.add(l);
32377
- } else a.delete(t);
32377
+ } else h.delete(t);
32378
32378
  }
32379
32379
  return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
32380
32380
  }
32381
32381
  };
32382
- var _r = () => process.umask();
32383
- var Or = /* @__PURE__ */ Symbol("onEntry");
32384
- var Rs = /* @__PURE__ */ Symbol("checkFs");
32385
- var Tr = /* @__PURE__ */ Symbol("checkFs2");
32386
- var gs = /* @__PURE__ */ Symbol("isReusable");
32382
+ var Or = () => process.umask();
32383
+ var Tr = /* @__PURE__ */ Symbol("onEntry");
32384
+ var gs = /* @__PURE__ */ Symbol("checkFs");
32385
+ var xr = /* @__PURE__ */ Symbol("checkFs2");
32386
+ var bs = /* @__PURE__ */ Symbol("isReusable");
32387
32387
  var P = /* @__PURE__ */ Symbol("makeFs");
32388
- var bs = /* @__PURE__ */ Symbol("file");
32389
- var _s = /* @__PURE__ */ Symbol("directory");
32388
+ var _s = /* @__PURE__ */ Symbol("file");
32389
+ var Os = /* @__PURE__ */ Symbol("directory");
32390
32390
  var Ri = /* @__PURE__ */ Symbol("link");
32391
- var xr = /* @__PURE__ */ Symbol("symlink");
32392
- var Lr = /* @__PURE__ */ Symbol("hardlink");
32393
- var Re = /* @__PURE__ */ Symbol("ensureNoSymlink");
32394
- var Nr = /* @__PURE__ */ Symbol("unsupported");
32395
- var Dr = /* @__PURE__ */ Symbol("checkPath");
32396
- var ws = /* @__PURE__ */ Symbol("stripAbsolutePath");
32391
+ var Lr = /* @__PURE__ */ Symbol("symlink");
32392
+ var Nr = /* @__PURE__ */ Symbol("hardlink");
32393
+ var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
32394
+ var Dr = /* @__PURE__ */ Symbol("unsupported");
32395
+ var Ar = /* @__PURE__ */ Symbol("checkPath");
32396
+ var Ss = /* @__PURE__ */ Symbol("stripAbsolutePath");
32397
32397
  var yt = /* @__PURE__ */ Symbol("mkdir");
32398
32398
  var O = /* @__PURE__ */ Symbol("onError");
32399
32399
  var yi = /* @__PURE__ */ Symbol("pending");
32400
- var Ar = /* @__PURE__ */ Symbol("pend");
32401
- var Xt = /* @__PURE__ */ Symbol("unpend");
32402
- var Ss = /* @__PURE__ */ Symbol("ended");
32403
- var ys = /* @__PURE__ */ Symbol("maybeClose");
32404
- var Os = /* @__PURE__ */ Symbol("skip");
32405
- var ge = /* @__PURE__ */ Symbol("doChown");
32406
- var be = /* @__PURE__ */ Symbol("uid");
32407
- var _e = /* @__PURE__ */ Symbol("gid");
32408
- var Oe = /* @__PURE__ */ Symbol("checkedCwd");
32409
- var no = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
32410
- var Te = no === "win32";
32411
- var oo = 1024;
32412
- var ho = (s3, t) => {
32413
- if (!Te) return u__namespace.default.unlink(s3, t);
32400
+ var Ir = /* @__PURE__ */ Symbol("pend");
32401
+ var $t = /* @__PURE__ */ Symbol("unpend");
32402
+ var ys = /* @__PURE__ */ Symbol("ended");
32403
+ var Rs = /* @__PURE__ */ Symbol("maybeClose");
32404
+ var Ts = /* @__PURE__ */ Symbol("skip");
32405
+ var Re = /* @__PURE__ */ Symbol("doChown");
32406
+ var ge = /* @__PURE__ */ Symbol("uid");
32407
+ var be = /* @__PURE__ */ Symbol("gid");
32408
+ var _e = /* @__PURE__ */ Symbol("checkedCwd");
32409
+ var oo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
32410
+ var Oe = oo === "win32";
32411
+ var ho = 1024;
32412
+ var ao = (s3, t) => {
32413
+ if (!Oe) return u__namespace.default.unlink(s3, t);
32414
32414
  let e = s3 + ".DELETE." + NodeCrypto.randomBytes(16).toString("hex");
32415
32415
  u__namespace.default.rename(s3, e, (i) => {
32416
32416
  if (i) return t(i);
32417
32417
  u__namespace.default.unlink(e, t);
32418
32418
  });
32419
32419
  };
32420
- var ao = (s3) => {
32421
- if (!Te) return u__namespace.default.unlinkSync(s3);
32420
+ var lo = (s3) => {
32421
+ if (!Oe) return u__namespace.default.unlinkSync(s3);
32422
32422
  let t = s3 + ".DELETE." + NodeCrypto.randomBytes(16).toString("hex");
32423
32423
  u__namespace.default.renameSync(s3, t), u__namespace.default.unlinkSync(t);
32424
32424
  };
32425
- var Ir = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
32426
- var qt = class extends st {
32427
- [Ss] = false;
32428
- [Oe] = false;
32425
+ var Fr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
32426
+ var Xt = class extends st {
32427
+ [ys] = false;
32428
+ [_e] = false;
32429
32429
  [yi] = 0;
32430
32430
  reservations = new Si();
32431
32431
  transform;
@@ -32454,32 +32454,32 @@ var qt = class extends st {
32454
32454
  chmod;
32455
32455
  constructor(t = {}) {
32456
32456
  if (t.ondone = () => {
32457
- this[Ss] = true, this[ys]();
32457
+ this[ys] = true, this[Rs]();
32458
32458
  }, super(t), this.transform = t.transform, this.chmod = !!t.chmod, typeof t.uid == "number" || typeof t.gid == "number") {
32459
32459
  if (typeof t.uid != "number" || typeof t.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
32460
32460
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
32461
32461
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
32462
32462
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
32463
- this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : oo, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Te, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(R__namespace.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : _r() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Or](e));
32463
+ this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : ho, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Oe, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(R__namespace.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Or() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Tr](e));
32464
32464
  }
32465
32465
  warn(t, e, i = {}) {
32466
32466
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
32467
32467
  }
32468
- [ys]() {
32469
- this[Ss] && this[yi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
32468
+ [Rs]() {
32469
+ this[ys] && this[yi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
32470
32470
  }
32471
- [ws](t, e) {
32471
+ [Ss](t, e) {
32472
32472
  let i = t[e], { type: r } = t;
32473
32473
  if (!i || this.preservePaths) return true;
32474
- let [n, o] = ce(i), h = o.replaceAll(/\\/g, "/").split("/");
32475
- if (h.includes("..") || Te && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
32474
+ let [n, o] = le(i), a = o.replaceAll(/\\/g, "/").split("/");
32475
+ if (a.includes("..") || Oe && /^[a-z]:\.\.$/i.test(a[0] ?? "")) {
32476
32476
  if (e === "path" || r === "Link") return this.warn("TAR_ENTRY_ERROR", `${e} contains '..'`, { entry: t, [e]: i }), false;
32477
- let a = R__namespace.default.posix.dirname(t.path), l = R__namespace.default.posix.normalize(R__namespace.default.posix.join(a, h.join("/")));
32477
+ let h = R__namespace.default.posix.dirname(t.path), l = R__namespace.default.posix.normalize(R__namespace.default.posix.join(h, a.join("/")));
32478
32478
  if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
32479
32479
  }
32480
32480
  return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
32481
32481
  }
32482
- [Dr](t) {
32482
+ [Ar](t) {
32483
32483
  let e = f(t.path), i = e.split("/");
32484
32484
  if (this.strip) {
32485
32485
  if (i.length < this.strip) return false;
@@ -32491,19 +32491,19 @@ var qt = class extends st {
32491
32491
  i.splice(0, this.strip), t.path = i.join("/");
32492
32492
  }
32493
32493
  if (isFinite(this.maxDepth) && i.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: t, path: e, depth: i.length, maxDepth: this.maxDepth }), false;
32494
- if (!this[ws](t, "path") || !this[ws](t, "linkpath")) return false;
32494
+ if (!this[Ss](t, "path") || !this[Ss](t, "linkpath")) return false;
32495
32495
  if (t.absolute = R__namespace.default.isAbsolute(t.path) ? f(R__namespace.default.resolve(t.path)) : f(R__namespace.default.resolve(this.cwd, t.path)), !this.preservePaths && typeof t.absolute == "string" && t.absolute.indexOf(this.cwd + "/") !== 0 && t.absolute !== this.cwd) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", { entry: t, path: f(t.path), resolvedPath: t.absolute, cwd: this.cwd }), false;
32496
32496
  if (t.absolute === this.cwd && t.type !== "Directory" && t.type !== "GNUDumpDir") return false;
32497
32497
  if (this.win32) {
32498
32498
  let { root: r } = R__namespace.default.win32.parse(String(t.absolute));
32499
- t.absolute = r + Qi(String(t.absolute).slice(r.length));
32499
+ t.absolute = r + Ji(String(t.absolute).slice(r.length));
32500
32500
  let { root: n } = R__namespace.default.win32.parse(t.path);
32501
- t.path = n + Qi(t.path.slice(n.length));
32501
+ t.path = n + Ji(t.path.slice(n.length));
32502
32502
  }
32503
32503
  return true;
32504
32504
  }
32505
- [Or](t) {
32506
- if (!this[Dr](t)) return t.resume();
32505
+ [Tr](t) {
32506
+ if (!this[Ar](t)) return t.resume();
32507
32507
  switch (Pi__default.default.equal(typeof t.absolute, "string"), t.type) {
32508
32508
  case "Directory":
32509
32509
  case "GNUDumpDir":
@@ -32513,62 +32513,62 @@ var qt = class extends st {
32513
32513
  case "ContiguousFile":
32514
32514
  case "Link":
32515
32515
  case "SymbolicLink":
32516
- return this[Rs](t);
32516
+ return this[gs](t);
32517
32517
  default:
32518
- return this[Nr](t);
32518
+ return this[Dr](t);
32519
32519
  }
32520
32520
  }
32521
32521
  [O](t, e) {
32522
- t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
32522
+ t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[$t](), e.resume());
32523
32523
  }
32524
32524
  [yt](t, e, i) {
32525
- wr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
32525
+ Sr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
32526
32526
  }
32527
- [ge](t) {
32527
+ [Re](t) {
32528
32528
  return this.forceChown || this.preserveOwner && (typeof t.uid == "number" && t.uid !== this.processUid || typeof t.gid == "number" && t.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
32529
32529
  }
32530
- [be](t) {
32531
- return Ir(this.uid, t.uid, this.processUid);
32530
+ [ge](t) {
32531
+ return Fr(this.uid, t.uid, this.processUid);
32532
32532
  }
32533
- [_e](t) {
32534
- return Ir(this.gid, t.gid, this.processGid);
32533
+ [be](t) {
32534
+ return Fr(this.gid, t.gid, this.processGid);
32535
32535
  }
32536
- [bs](t, e) {
32537
- let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: fs(t.size), mode: i, autoClose: false });
32538
- r.on("error", (a) => {
32536
+ [_s](t, e) {
32537
+ let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: ds(t.size), mode: i, autoClose: false });
32538
+ r.on("error", (h) => {
32539
32539
  r.fd && u__namespace.default.close(r.fd, () => {
32540
- }), r.write = () => true, this[O](a, t), e();
32540
+ }), r.write = () => true, this[O](h, t), e();
32541
32541
  });
32542
- let n = 1, o = (a) => {
32543
- if (a) {
32542
+ let n = 1, o = (h) => {
32543
+ if (h) {
32544
32544
  r.fd && u__namespace.default.close(r.fd, () => {
32545
- }), this[O](a, t), e();
32545
+ }), this[O](h, t), e();
32546
32546
  return;
32547
32547
  }
32548
32548
  --n === 0 && r.fd !== void 0 && u__namespace.default.close(r.fd, (l) => {
32549
- l ? this[O](l, t) : this[Xt](), e();
32549
+ l ? this[O](l, t) : this[$t](), e();
32550
32550
  });
32551
32551
  };
32552
32552
  r.on("finish", () => {
32553
- let a = String(t.absolute), l = r.fd;
32553
+ let h = String(t.absolute), l = r.fd;
32554
32554
  if (typeof l == "number" && t.mtime && !this.noMtime) {
32555
32555
  n++;
32556
32556
  let c = t.atime || /* @__PURE__ */ new Date(), d = t.mtime;
32557
- u__namespace.default.futimes(l, c, d, (S) => S ? u__namespace.default.utimes(a, c, d, (T) => o(T && S)) : o());
32557
+ u__namespace.default.futimes(l, c, d, (S) => S ? u__namespace.default.utimes(h, c, d, (T) => o(T && S)) : o());
32558
32558
  }
32559
- if (typeof l == "number" && this[ge](t)) {
32559
+ if (typeof l == "number" && this[Re](t)) {
32560
32560
  n++;
32561
- let c = this[be](t), d = this[_e](t);
32562
- typeof c == "number" && typeof d == "number" && u__namespace.default.fchown(l, c, d, (S) => S ? u__namespace.default.chown(a, c, d, (T) => o(T && S)) : o());
32561
+ let c = this[ge](t), d = this[be](t);
32562
+ typeof c == "number" && typeof d == "number" && u__namespace.default.fchown(l, c, d, (S) => S ? u__namespace.default.chown(h, c, d, (T) => o(T && S)) : o());
32563
32563
  }
32564
32564
  o();
32565
32565
  });
32566
- let h = this.transform && this.transform(t) || t;
32567
- h !== t && (h.on("error", (a) => {
32568
- this[O](a, t), e();
32569
- }), t.pipe(h)), h.pipe(r);
32566
+ let a = this.transform && this.transform(t) || t;
32567
+ a !== t && (a.on("error", (h) => {
32568
+ this[O](h, t), e();
32569
+ }), t.pipe(a)), a.pipe(r);
32570
32570
  }
32571
- [_s](t, e) {
32571
+ [Os](t, e) {
32572
32572
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode;
32573
32573
  this[yt](String(t.absolute), i, (r) => {
32574
32574
  if (r) {
@@ -32576,70 +32576,70 @@ var qt = class extends st {
32576
32576
  return;
32577
32577
  }
32578
32578
  let n = 1, o = () => {
32579
- --n === 0 && (e(), this[Xt](), t.resume());
32579
+ --n === 0 && (e(), this[$t](), t.resume());
32580
32580
  };
32581
- t.mtime && !this.noMtime && (n++, u__namespace.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[ge](t) && (n++, u__namespace.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
32581
+ t.mtime && !this.noMtime && (n++, u__namespace.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, u__namespace.default.chown(String(t.absolute), Number(this[ge](t)), Number(this[be](t)), o)), o();
32582
32582
  });
32583
32583
  }
32584
- [Nr](t) {
32584
+ [Dr](t) {
32585
32585
  t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
32586
32586
  }
32587
- [xr](t, e) {
32587
+ [Lr](t, e) {
32588
32588
  let i = f(R__namespace.default.relative(this.cwd, R__namespace.default.resolve(R__namespace.default.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
32589
- this[Re](t, this.cwd, i, () => this[Ri](t, String(t.linkpath), "symlink", e), (r) => {
32589
+ this[ye](t, this.cwd, i, () => this[Ri](t, String(t.linkpath), "symlink", e), (r) => {
32590
32590
  this[O](r, t), e();
32591
32591
  });
32592
32592
  }
32593
- [Lr](t, e) {
32593
+ [Nr](t, e) {
32594
32594
  let i = f(R__namespace.default.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
32595
- this[Re](t, this.cwd, r, () => this[Ri](t, i, "link", e), (n) => {
32595
+ this[ye](t, this.cwd, r, () => this[Ri](t, i, "link", e), (n) => {
32596
32596
  this[O](n, t), e();
32597
32597
  });
32598
32598
  }
32599
- [Re](t, e, i, r, n) {
32599
+ [ye](t, e, i, r, n) {
32600
32600
  let o = i.shift();
32601
32601
  if (this.preservePaths || o === void 0) return r();
32602
- let h = R__namespace.default.resolve(e, o);
32603
- u__namespace.default.lstat(h, (a, l) => {
32604
- if (a) return r();
32605
- if (l?.isSymbolicLink()) return n(new St(h, R__namespace.default.resolve(h, i.join("/"))));
32606
- this[Re](t, h, i, r, n);
32602
+ let a = R__namespace.default.resolve(e, o);
32603
+ u__namespace.default.lstat(a, (h, l) => {
32604
+ if (h) return r();
32605
+ if (l?.isSymbolicLink()) return n(new St(a, R__namespace.default.resolve(a, i.join("/"))));
32606
+ this[ye](t, a, i, r, n);
32607
32607
  });
32608
32608
  }
32609
- [Ar]() {
32609
+ [Ir]() {
32610
32610
  this[yi]++;
32611
32611
  }
32612
- [Xt]() {
32613
- this[yi]--, this[ys]();
32612
+ [$t]() {
32613
+ this[yi]--, this[Rs]();
32614
32614
  }
32615
- [Os](t) {
32616
- this[Xt](), t.resume();
32615
+ [Ts](t) {
32616
+ this[$t](), t.resume();
32617
32617
  }
32618
- [gs](t, e) {
32619
- return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Te;
32618
+ [bs](t, e) {
32619
+ return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
32620
32620
  }
32621
- [Rs](t) {
32622
- this[Ar]();
32621
+ [gs](t) {
32622
+ this[Ir]();
32623
32623
  let e = [t.path];
32624
- t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Tr](t, i));
32624
+ t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[xr](t, i));
32625
32625
  }
32626
- [Tr](t, e) {
32627
- let i = (h) => {
32628
- e(h);
32626
+ [xr](t, e) {
32627
+ let i = (a) => {
32628
+ e(a);
32629
32629
  }, r = () => {
32630
- this[yt](this.cwd, this.dmode, (h) => {
32631
- if (h) {
32632
- this[O](h, t), i();
32630
+ this[yt](this.cwd, this.dmode, (a) => {
32631
+ if (a) {
32632
+ this[O](a, t), i();
32633
32633
  return;
32634
32634
  }
32635
- this[Oe] = true, n();
32635
+ this[_e] = true, n();
32636
32636
  });
32637
32637
  }, n = () => {
32638
32638
  if (t.absolute !== this.cwd) {
32639
- let h = f(R__namespace.default.dirname(String(t.absolute)));
32640
- if (h !== this.cwd) return this[yt](h, this.dmode, (a) => {
32641
- if (a) {
32642
- this[O](a, t), i();
32639
+ let a = f(R__namespace.default.dirname(String(t.absolute)));
32640
+ if (a !== this.cwd) return this[yt](a, this.dmode, (h) => {
32641
+ if (h) {
32642
+ this[O](h, t), i();
32643
32643
  return;
32644
32644
  }
32645
32645
  o();
@@ -32647,24 +32647,24 @@ var qt = class extends st {
32647
32647
  }
32648
32648
  o();
32649
32649
  }, o = () => {
32650
- u__namespace.default.lstat(String(t.absolute), (h, a) => {
32651
- if (a && (this.keep || this.newer && a.mtime > (t.mtime ?? a.mtime))) {
32652
- this[Os](t), i();
32650
+ u__namespace.default.lstat(String(t.absolute), (a, h) => {
32651
+ if (h && (this.keep || this.newer && h.mtime > (t.mtime ?? h.mtime))) {
32652
+ this[Ts](t), i();
32653
32653
  return;
32654
32654
  }
32655
- if (h || this[gs](t, a)) return this[P](null, t, i);
32656
- if (a.isDirectory()) {
32655
+ if (a || this[bs](t, h)) return this[P](null, t, i);
32656
+ if (h.isDirectory()) {
32657
32657
  if (t.type === "Directory") {
32658
- let l = this.chmod && t.mode && (a.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
32658
+ let l = this.chmod && t.mode && (h.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
32659
32659
  return l ? u__namespace.default.chmod(String(t.absolute), Number(t.mode), c) : c();
32660
32660
  }
32661
32661
  if (t.absolute !== this.cwd) return u__namespace.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
32662
32662
  }
32663
32663
  if (t.absolute === this.cwd) return this[P](null, t, i);
32664
- ho(String(t.absolute), (l) => this[P](l ?? null, t, i));
32664
+ ao(String(t.absolute), (l) => this[P](l ?? null, t, i));
32665
32665
  });
32666
32666
  };
32667
- this[Oe] ? n() : r();
32667
+ this[_e] ? n() : r();
32668
32668
  }
32669
32669
  [P](t, e, i) {
32670
32670
  if (t) {
@@ -32675,40 +32675,40 @@ var qt = class extends st {
32675
32675
  case "File":
32676
32676
  case "OldFile":
32677
32677
  case "ContiguousFile":
32678
- return this[bs](e, i);
32678
+ return this[_s](e, i);
32679
32679
  case "Link":
32680
- return this[Lr](e, i);
32680
+ return this[Nr](e, i);
32681
32681
  case "SymbolicLink":
32682
- return this[xr](e, i);
32682
+ return this[Lr](e, i);
32683
32683
  case "Directory":
32684
32684
  case "GNUDumpDir":
32685
- return this[_s](e, i);
32685
+ return this[Os](e, i);
32686
32686
  }
32687
32687
  }
32688
32688
  [Ri](t, e, i, r) {
32689
32689
  u__namespace.default[i](e, String(t.absolute), (n) => {
32690
- n ? this[O](n, t) : (this[Xt](), t.resume()), r();
32690
+ n ? this[O](n, t) : (this[$t](), t.resume()), r();
32691
32691
  });
32692
32692
  }
32693
32693
  };
32694
- var ye = (s3) => {
32694
+ var Se = (s3) => {
32695
32695
  try {
32696
32696
  return [null, s3()];
32697
32697
  } catch (t) {
32698
32698
  return [t, null];
32699
32699
  }
32700
32700
  };
32701
- var xe = class extends qt {
32701
+ var Te = class extends Xt {
32702
32702
  sync = true;
32703
32703
  [P](t, e) {
32704
32704
  return super[P](t, e, () => {
32705
32705
  });
32706
32706
  }
32707
- [Rs](t) {
32708
- if (!this[Oe]) {
32707
+ [gs](t) {
32708
+ if (!this[_e]) {
32709
32709
  let n = this[yt](this.cwd, this.dmode);
32710
32710
  if (n) return this[O](n, t);
32711
- this[Oe] = true;
32711
+ this[_e] = true;
32712
32712
  }
32713
32713
  if (t.absolute !== this.cwd) {
32714
32714
  let n = f(R__namespace.default.dirname(String(t.absolute)));
@@ -32717,74 +32717,74 @@ var xe = class extends qt {
32717
32717
  if (o) return this[O](o, t);
32718
32718
  }
32719
32719
  }
32720
- let [e, i] = ye(() => u__namespace.default.lstatSync(String(t.absolute)));
32721
- if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[Os](t);
32722
- if (e || this[gs](t, i)) return this[P](null, t);
32720
+ let [e, i] = Se(() => u__namespace.default.lstatSync(String(t.absolute)));
32721
+ if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[Ts](t);
32722
+ if (e || this[bs](t, i)) return this[P](null, t);
32723
32723
  if (i.isDirectory()) {
32724
32724
  if (t.type === "Directory") {
32725
- let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [h] = o ? ye(() => {
32725
+ let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [a] = o ? Se(() => {
32726
32726
  u__namespace.default.chmodSync(String(t.absolute), Number(t.mode));
32727
32727
  }) : [];
32728
- return this[P](h, t);
32728
+ return this[P](a, t);
32729
32729
  }
32730
- let [n] = ye(() => u__namespace.default.rmdirSync(String(t.absolute)));
32730
+ let [n] = Se(() => u__namespace.default.rmdirSync(String(t.absolute)));
32731
32731
  this[P](n, t);
32732
32732
  }
32733
- let [r] = t.absolute === this.cwd ? [] : ye(() => ao(String(t.absolute)));
32733
+ let [r] = t.absolute === this.cwd ? [] : Se(() => lo(String(t.absolute)));
32734
32734
  this[P](r, t);
32735
32735
  }
32736
- [bs](t, e) {
32737
- let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (h) => {
32738
- let a;
32736
+ [_s](t, e) {
32737
+ let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (a) => {
32738
+ let h;
32739
32739
  try {
32740
32740
  u__namespace.default.closeSync(n);
32741
32741
  } catch (l) {
32742
- a = l;
32742
+ h = l;
32743
32743
  }
32744
- (h || a) && this[O](h || a, t), e();
32744
+ (a || h) && this[O](a || h, t), e();
32745
32745
  }, n;
32746
32746
  try {
32747
- n = u__namespace.default.openSync(String(t.absolute), fs(t.size), i);
32748
- } catch (h) {
32749
- return r(h);
32747
+ n = u__namespace.default.openSync(String(t.absolute), ds(t.size), i);
32748
+ } catch (a) {
32749
+ return r(a);
32750
32750
  }
32751
32751
  let o = this.transform && this.transform(t) || t;
32752
- o !== t && (o.on("error", (h) => this[O](h, t)), t.pipe(o)), o.on("data", (h) => {
32752
+ o !== t && (o.on("error", (a) => this[O](a, t)), t.pipe(o)), o.on("data", (a) => {
32753
32753
  try {
32754
- u__namespace.default.writeSync(n, h, 0, h.length);
32755
- } catch (a) {
32756
- r(a);
32754
+ u__namespace.default.writeSync(n, a, 0, a.length);
32755
+ } catch (h) {
32756
+ r(h);
32757
32757
  }
32758
32758
  }), o.on("end", () => {
32759
- let h = null;
32759
+ let a = null;
32760
32760
  if (t.mtime && !this.noMtime) {
32761
- let a = t.atime || /* @__PURE__ */ new Date(), l = t.mtime;
32761
+ let h = t.atime || /* @__PURE__ */ new Date(), l = t.mtime;
32762
32762
  try {
32763
- u__namespace.default.futimesSync(n, a, l);
32763
+ u__namespace.default.futimesSync(n, h, l);
32764
32764
  } catch (c) {
32765
32765
  try {
32766
- u__namespace.default.utimesSync(String(t.absolute), a, l);
32766
+ u__namespace.default.utimesSync(String(t.absolute), h, l);
32767
32767
  } catch {
32768
- h = c;
32768
+ a = c;
32769
32769
  }
32770
32770
  }
32771
32771
  }
32772
- if (this[ge](t)) {
32773
- let a = this[be](t), l = this[_e](t);
32772
+ if (this[Re](t)) {
32773
+ let h = this[ge](t), l = this[be](t);
32774
32774
  try {
32775
- u__namespace.default.fchownSync(n, Number(a), Number(l));
32775
+ u__namespace.default.fchownSync(n, Number(h), Number(l));
32776
32776
  } catch (c) {
32777
32777
  try {
32778
- u__namespace.default.chownSync(String(t.absolute), Number(a), Number(l));
32778
+ u__namespace.default.chownSync(String(t.absolute), Number(h), Number(l));
32779
32779
  } catch {
32780
- h = h || c;
32780
+ a = a || c;
32781
32781
  }
32782
32782
  }
32783
32783
  }
32784
- r(h);
32784
+ r(a);
32785
32785
  });
32786
32786
  }
32787
- [_s](t, e) {
32787
+ [Os](t, e) {
32788
32788
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode, r = this[yt](String(t.absolute), i);
32789
32789
  if (r) {
32790
32790
  this[O](r, t), e();
@@ -32794,26 +32794,26 @@ var xe = class extends qt {
32794
32794
  u__namespace.default.utimesSync(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime);
32795
32795
  } catch {
32796
32796
  }
32797
- if (this[ge](t)) try {
32798
- u__namespace.default.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
32797
+ if (this[Re](t)) try {
32798
+ u__namespace.default.chownSync(String(t.absolute), Number(this[ge](t)), Number(this[be](t)));
32799
32799
  } catch {
32800
32800
  }
32801
32801
  e(), t.resume();
32802
32802
  }
32803
32803
  [yt](t, e) {
32804
32804
  try {
32805
- return yr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
32805
+ return Rr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
32806
32806
  } catch (i) {
32807
32807
  return i;
32808
32808
  }
32809
32809
  }
32810
- [Re](t, e, i, r, n) {
32810
+ [ye](t, e, i, r, n) {
32811
32811
  if (this.preservePaths || i.length === 0) return r();
32812
32812
  let o = e;
32813
- for (let h of i) {
32814
- o = R__namespace.default.resolve(o, h);
32815
- let [a, l] = ye(() => u__namespace.default.lstatSync(o));
32816
- if (a) return r();
32813
+ for (let a of i) {
32814
+ o = R__namespace.default.resolve(o, a);
32815
+ let [h, l] = Se(() => u__namespace.default.lstatSync(o));
32816
+ if (h) return r();
32817
32817
  if (l.isSymbolicLink()) return n(new St(o, R__namespace.default.resolve(e, i.join("/"))));
32818
32818
  }
32819
32819
  r();
@@ -32827,47 +32827,47 @@ var xe = class extends qt {
32827
32827
  }
32828
32828
  }
32829
32829
  };
32830
- var lo = (s3) => {
32831
- let t = new xe(s3), e = s3.file, i = u__namespace.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
32832
- new Be(e, { readSize: r, size: i.size }).pipe(t);
32833
- };
32834
- var co = (s3, t) => {
32835
- let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
32836
- return new Promise((o, h) => {
32837
- e.on("error", h), e.on("close", o), u__namespace.default.stat(r, (a, l) => {
32838
- if (a) h(a);
32830
+ var co = (s3) => {
32831
+ let t = new Te(s3), e = s3.file, i = u__namespace.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
32832
+ new Me(e, { readSize: r, size: i.size }).pipe(t);
32833
+ };
32834
+ var fo = (s3, t) => {
32835
+ let e = new Xt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
32836
+ return new Promise((o, a) => {
32837
+ e.on("error", a), e.on("close", o), u__namespace.default.stat(r, (h, l) => {
32838
+ if (h) a(h);
32839
32839
  else {
32840
32840
  let c = new _t(r, { readSize: i, size: l.size });
32841
- c.on("error", h), c.pipe(e);
32841
+ c.on("error", a), c.pipe(e);
32842
32842
  }
32843
32843
  });
32844
32844
  });
32845
32845
  };
32846
- var fo = K(lo, co, (s3) => new xe(s3), (s3) => new qt(s3), (s3, t) => {
32847
- t?.length && $i(s3, t);
32846
+ var uo = K(co, fo, (s3) => new Te(s3), (s3) => new Xt(s3), (s3, t) => {
32847
+ t?.length && Xi(s3, t);
32848
32848
  });
32849
- var uo = (s3, t) => {
32850
- let e = new Ft(s3), i = true, r, n;
32849
+ var mo = (s3, t) => {
32850
+ let e = new kt(s3), i = true, r, n;
32851
32851
  try {
32852
32852
  try {
32853
32853
  r = u__namespace.default.openSync(s3.file, "r+");
32854
- } catch (a) {
32855
- if (a?.code === "ENOENT") r = u__namespace.default.openSync(s3.file, "w+");
32856
- else throw a;
32854
+ } catch (h) {
32855
+ if (h?.code === "ENOENT") r = u__namespace.default.openSync(s3.file, "w+");
32856
+ else throw h;
32857
32857
  }
32858
- let o = u__namespace.default.fstatSync(r), h = Buffer.alloc(512);
32858
+ let o = u__namespace.default.fstatSync(r), a = Buffer.alloc(512);
32859
32859
  t: for (n = 0; n < o.size; n += 512) {
32860
32860
  for (let c = 0, d = 0; c < 512; c += d) {
32861
- if (d = u__namespace.default.readSync(r, h, c, h.length - c, n + c), n === 0 && h[0] === 31 && h[1] === 139) throw new Error("cannot append to compressed archives");
32861
+ if (d = u__namespace.default.readSync(r, a, c, a.length - c, n + c), n === 0 && a[0] === 31 && a[1] === 139) throw new Error("cannot append to compressed archives");
32862
32862
  if (!d) break t;
32863
32863
  }
32864
- let a = new k(h);
32865
- if (!a.cksumValid) break;
32866
- let l = 512 * Math.ceil((a.size || 0) / 512);
32864
+ let h = new C(a);
32865
+ if (!h.cksumValid) break;
32866
+ let l = 512 * Math.ceil((h.size || 0) / 512);
32867
32867
  if (n + l + 512 > o.size) break;
32868
- n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
32868
+ n += l, s3.mtimeCache && h.mtime && s3.mtimeCache.set(String(h.path), h.mtime);
32869
32869
  }
32870
- i = false, mo(s3, e, n, r, t);
32870
+ i = false, po(s3, e, n, r, t);
32871
32871
  } finally {
32872
32872
  if (i) try {
32873
32873
  u__namespace.default.closeSync(r);
@@ -32875,69 +32875,69 @@ var uo = (s3, t) => {
32875
32875
  }
32876
32876
  }
32877
32877
  };
32878
- var mo = (s3, t, e, i, r) => {
32878
+ var po = (s3, t, e, i, r) => {
32879
32879
  let n = new Wt(s3.file, { fd: i, start: e });
32880
- t.pipe(n), Eo(t, r);
32880
+ t.pipe(n), wo(t, r);
32881
32881
  };
32882
- var po = (s3, t) => {
32882
+ var Eo = (s3, t) => {
32883
32883
  t = Array.from(t);
32884
- let e = new wt(s3), i = (n, o, h) => {
32885
- let a = (T, N) => {
32886
- T ? u__namespace.default.close(n, (E) => h(T)) : h(null, N);
32884
+ let e = new wt(s3), i = (n, o, a) => {
32885
+ let h = (T, N) => {
32886
+ T ? u__namespace.default.close(n, (E) => a(T)) : a(null, N);
32887
32887
  }, l = 0;
32888
- if (o === 0) return a(null, 0);
32888
+ if (o === 0) return h(null, 0);
32889
32889
  let c = 0, d = Buffer.alloc(512), S = (T, N) => {
32890
- if (T || N === void 0) return a(T);
32890
+ if (T || N === void 0) return h(T);
32891
32891
  if (c += N, c < 512 && N) return u__namespace.default.read(n, d, c, d.length - c, l + c, S);
32892
- if (l === 0 && d[0] === 31 && d[1] === 139) return a(new Error("cannot append to compressed archives"));
32893
- if (c < 512) return a(null, l);
32894
- let E = new k(d);
32895
- if (!E.cksumValid) return a(null, l);
32892
+ if (l === 0 && d[0] === 31 && d[1] === 139) return h(new Error("cannot append to compressed archives"));
32893
+ if (c < 512) return h(null, l);
32894
+ let E = new C(d);
32895
+ if (!E.cksumValid) return h(null, l);
32896
32896
  let x = 512 * Math.ceil((E.size ?? 0) / 512);
32897
- if (l + x + 512 > o || (l += x + 512, l >= o)) return a(null, l);
32897
+ if (l + x + 512 > o || (l += x + 512, l >= o)) return h(null, l);
32898
32898
  s3.mtimeCache && E.mtime && s3.mtimeCache.set(String(E.path), E.mtime), c = 0, u__namespace.default.read(n, d, 0, 512, l, S);
32899
32899
  };
32900
32900
  u__namespace.default.read(n, d, 0, 512, l, S);
32901
32901
  };
32902
32902
  return new Promise((n, o) => {
32903
32903
  e.on("error", o);
32904
- let h = "r+", a = (l, c) => {
32905
- if (l && l.code === "ENOENT" && h === "r+") return h = "w+", u__namespace.default.open(s3.file, h, a);
32904
+ let a = "r+", h = (l, c) => {
32905
+ if (l && l.code === "ENOENT" && a === "r+") return a = "w+", u__namespace.default.open(s3.file, a, h);
32906
32906
  if (l || !c) return o(l);
32907
32907
  u__namespace.default.fstat(c, (d, S) => {
32908
32908
  if (d) return u__namespace.default.close(c, () => o(d));
32909
32909
  i(c, S.size, (T, N) => {
32910
32910
  if (T) return o(T);
32911
32911
  let E = new tt(s3.file, { fd: c, start: N });
32912
- e.pipe(E), E.on("error", o), E.on("close", n), wo(e, t);
32912
+ e.pipe(E), E.on("error", o), E.on("close", n), So(e, t);
32913
32913
  });
32914
32914
  });
32915
32915
  };
32916
- u__namespace.default.open(s3.file, h, a);
32916
+ u__namespace.default.open(s3.file, a, h);
32917
32917
  });
32918
32918
  };
32919
- var Eo = (s3, t) => {
32919
+ var wo = (s3, t) => {
32920
32920
  t.forEach((e) => {
32921
- e.charAt(0) === "@" ? Ct({ file: R__namespace.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
32921
+ e.charAt(0) === "@" ? Ft({ file: R__namespace.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
32922
32922
  }), s3.end();
32923
32923
  };
32924
- var wo = async (s3, t) => {
32925
- for (let e of t) e.charAt(0) === "@" ? await Ct({ file: R__namespace.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
32924
+ var So = async (s3, t) => {
32925
+ for (let e of t) e.charAt(0) === "@" ? await Ft({ file: R__namespace.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
32926
32926
  s3.end();
32927
32927
  };
32928
- var vt = K(uo, po, () => {
32928
+ var vt = K(mo, Eo, () => {
32929
32929
  throw new TypeError("file is required");
32930
32930
  }, () => {
32931
32931
  throw new TypeError("file is required");
32932
32932
  }, (s3, t) => {
32933
- if (!Fs(s3)) throw new TypeError("file is required");
32933
+ if (!vs(s3)) throw new TypeError("file is required");
32934
32934
  if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
32935
32935
  if (!t?.length) throw new TypeError("no paths specified to add/replace");
32936
32936
  });
32937
32937
  K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
32938
- vt.validate?.(s3, t), yo(s3);
32938
+ vt.validate?.(s3, t), Ro(s3);
32939
32939
  });
32940
- var yo = (s3) => {
32940
+ var Ro = (s3) => {
32941
32941
  let t = s3.filter;
32942
32942
  s3.mtimeCache || (s3.mtimeCache = /* @__PURE__ */ new Map()), s3.filter = t ? (e, i) => t(e, i) && !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0)) : (e, i) => !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0));
32943
32943
  };
@@ -32955,7 +32955,7 @@ var GitHub = class _GitHub extends Service()("app/GitHub", {
32955
32955
  stream2,
32956
32956
  run(
32957
32957
  fromWritable({
32958
- evaluate: () => fo({
32958
+ evaluate: () => uo({
32959
32959
  cwd: config.projectName,
32960
32960
  strip: 2 + config.template.split("/").length,
32961
32961
  filter: (path5) => path5.includes(`efffrida-main/templates/${config.template}`)
@@ -33112,11 +33112,6 @@ var templateFlag = Flag_exports.choice("template", [...templates]).pipe(
33112
33112
  title: "App & Agent",
33113
33113
  value: "app-and-agent",
33114
33114
  description: "A Node.js host app and a Frida agent with separate tsconfigs"
33115
- },
33116
- {
33117
- title: "Monorepo",
33118
- value: "monorepo",
33119
- description: "A pnpm monorepo with agent, app, and shared packages"
33120
33115
  }
33121
33116
  ]
33122
33117
  })