appwrite-cli 16.0.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -11200,16 +11200,16 @@ var require_share = __commonJS({
11200
11200
  };
11201
11201
  }
11202
11202
  exports2.share = share;
11203
- function handleReset(reset, on2) {
11203
+ function handleReset(reset, on) {
11204
11204
  var args = [];
11205
11205
  for (var _i2 = 2; _i2 < arguments.length; _i2++) {
11206
11206
  args[_i2 - 2] = arguments[_i2];
11207
11207
  }
11208
- if (on2 === true) {
11208
+ if (on === true) {
11209
11209
  reset();
11210
11210
  return;
11211
11211
  }
11212
- if (on2 === false) {
11212
+ if (on === false) {
11213
11213
  return;
11214
11214
  }
11215
11215
  var onSubscriber = new Subscriber_1.SafeSubscriber({
@@ -11218,7 +11218,7 @@ var require_share = __commonJS({
11218
11218
  reset();
11219
11219
  }
11220
11220
  });
11221
- return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
11221
+ return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
11222
11222
  }
11223
11223
  }
11224
11224
  });
@@ -55200,12 +55200,12 @@ var require_utils4 = __commonJS({
55200
55200
  return str;
55201
55201
  }
55202
55202
  var codeCache = {};
55203
- function addToCodeCache(name, on2, off) {
55204
- on2 = "\x1B[" + on2 + "m";
55203
+ function addToCodeCache(name, on, off) {
55204
+ on = "\x1B[" + on + "m";
55205
55205
  off = "\x1B[" + off + "m";
55206
- codeCache[on2] = { set: name, to: true };
55206
+ codeCache[on] = { set: name, to: true };
55207
55207
  codeCache[off] = { set: name, to: false };
55208
- codeCache[name] = { on: on2, off };
55208
+ codeCache[name] = { on, off };
55209
55209
  }
55210
55210
  addToCodeCache("bold", 1, 22);
55211
55211
  addToCodeCache("italics", 3, 23);
@@ -62747,7 +62747,7 @@ var id_default = ID;
62747
62747
  // lib/constants.ts
62748
62748
  var SDK_TITLE = "Appwrite";
62749
62749
  var SDK_TITLE_LOWER = "appwrite";
62750
- var SDK_VERSION = "16.0.0";
62750
+ var SDK_VERSION = "17.0.0";
62751
62751
  var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
62752
62752
  var EXECUTABLE_NAME = "appwrite";
62753
62753
  var NPM_PACKAGE_NAME = "appwrite-cli";
@@ -78182,14 +78182,14 @@ var import_node_path7 = __toESM(require("node:path"), 1);
78182
78182
  var import_node_path8 = require("node:path");
78183
78183
  var import_node_fs6 = __toESM(require("node:fs"), 1);
78184
78184
  var import_node_path9 = __toESM(require("node:path"), 1);
78185
- var Nr = Object.defineProperty;
78186
- var Ar = (s3, t) => {
78187
- for (var e in t) Nr(s3, e, { get: t[e], enumerable: true });
78185
+ var kr = Object.defineProperty;
78186
+ var vr = (s3, t) => {
78187
+ for (var e in t) kr(s3, e, { get: t[e], enumerable: true });
78188
78188
  };
78189
78189
  var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
78190
- var Ir = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof import_node_stream.default || Cr(s3) || Fr(s3));
78191
- var Cr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
78192
- var Fr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
78190
+ var Br = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof import_node_stream.default || Pr(s3) || zr(s3));
78191
+ var Pr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
78192
+ var zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
78193
78193
  var q = /* @__PURE__ */ Symbol("EOF");
78194
78194
  var j = /* @__PURE__ */ Symbol("maybeEmitEnd");
78195
78195
  var rt = /* @__PURE__ */ Symbol("emittedEnd");
@@ -78222,10 +78222,10 @@ var Jt = /* @__PURE__ */ Symbol("signal");
78222
78222
  var yt = /* @__PURE__ */ Symbol("dataListeners");
78223
78223
  var C = /* @__PURE__ */ Symbol("discarded");
78224
78224
  var te = (s3) => Promise.resolve().then(s3);
78225
- var kr = (s3) => s3();
78226
- var vr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
78227
- var Mr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
78228
- var Br = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
78225
+ var Ur = (s3) => s3();
78226
+ var Hr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
78227
+ var Wr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
78228
+ var Gr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
78229
78229
  var Ce = class {
78230
78230
  src;
78231
78231
  dest;
@@ -78251,8 +78251,8 @@ var Oi = class extends Ce {
78251
78251
  super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
78252
78252
  }
78253
78253
  };
78254
- var Pr = (s3) => !!s3.objectMode;
78255
- var zr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
78254
+ var Zr = (s3) => !!s3.objectMode;
78255
+ var Yr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
78256
78256
  var D = class extends import_node_events.EventEmitter {
78257
78257
  [b] = false;
78258
78258
  [Qt] = false;
@@ -78278,7 +78278,7 @@ var D = class extends import_node_events.EventEmitter {
78278
78278
  constructor(...t) {
78279
78279
  let e = t[0] || {};
78280
78280
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
78281
- Pr(e) ? (this[L] = true, this[z3] = null) : zr(e) ? (this[z3] = e.encoding, this[L] = false) : (this[L] = false, this[z3] = null), this[Z] = !!e.async, this[Mt] = this[z3] ? new import_node_string_decoder.StringDecoder(this[z3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
78281
+ Zr(e) ? (this[L] = true, this[z3] = null) : Yr(e) ? (this[z3] = e.encoding, this[L] = false) : (this[L] = false, this[z3] = null), this[Z] = !!e.async, this[Mt] = this[z3] ? new import_node_string_decoder.StringDecoder(this[z3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
78282
78282
  let { signal: i } = e;
78283
78283
  i && (this[Jt] = i, i.aborted ? this[gi]() : i.addEventListener("abort", () => this[gi]()));
78284
78284
  }
@@ -78319,10 +78319,10 @@ var D = class extends import_node_events.EventEmitter {
78319
78319
  if (this[q]) throw new Error("write after end");
78320
78320
  if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
78321
78321
  typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
78322
- let r = this[Z] ? te : kr;
78322
+ let r = this[Z] ? te : Ur;
78323
78323
  if (!this[L] && !Buffer.isBuffer(t)) {
78324
- if (Br(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
78325
- else if (Mr(t)) t = Buffer.from(t);
78324
+ if (Gr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
78325
+ else if (Wr(t)) t = Buffer.from(t);
78326
78326
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
78327
78327
  }
78328
78328
  return this[L] ? (this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : t.length ? (typeof t == "string" && !(e === this[z3] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z3] && (t = this[Mt].write(t)), this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : (this[g] !== 0 && this.emit("readable"), i && r(i), this[b]);
@@ -78395,7 +78395,7 @@ var D = class extends import_node_events.EventEmitter {
78395
78395
  let i = super.on(t, e);
78396
78396
  if (t === "data") this[C] = false, this[yt]++, !this[A].length && !this[b] && this[Bt]();
78397
78397
  else if (t === "readable" && this[g] !== 0) super.emit("readable");
78398
- else if (vr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
78398
+ else if (Hr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
78399
78399
  else if (t === "error" && this[jt]) {
78400
78400
  let r = e;
78401
78401
  this[Z] ? te(() => r.call(this, this[jt])) : r.call(this, this[jt]);
@@ -78522,10 +78522,10 @@ var D = class extends import_node_events.EventEmitter {
78522
78522
  return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
78523
78523
  }
78524
78524
  static get isStream() {
78525
- return Ir;
78525
+ return Br;
78526
78526
  }
78527
78527
  };
78528
- var Hr = import_fs2.default.writev;
78528
+ var Vr = import_fs2.default.writev;
78529
78529
  var ot = /* @__PURE__ */ Symbol("_autoClose");
78530
78530
  var H = /* @__PURE__ */ Symbol("_close");
78531
78531
  var ee = /* @__PURE__ */ Symbol("_ended");
@@ -78718,7 +78718,7 @@ var tt = class extends import_events.default {
78718
78718
  else if (this[Y].length === 1) this[ke](this[Y].pop());
78719
78719
  else {
78720
78720
  let t = this[Y];
78721
- this[Y] = [], Hr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
78721
+ this[Y] = [], Vr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
78722
78722
  }
78723
78723
  }
78724
78724
  [H]() {
@@ -78758,21 +78758,21 @@ var Wt = class extends tt {
78758
78758
  }
78759
78759
  }
78760
78760
  };
78761
- var Wr = /* @__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"]]);
78761
+ var $r = /* @__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"]]);
78762
78762
  var As = (s3) => !!s3.sync && !!s3.file;
78763
78763
  var Ds = (s3) => !s3.sync && !!s3.file;
78764
78764
  var Is = (s3) => !!s3.sync && !s3.file;
78765
78765
  var Cs = (s3) => !s3.sync && !s3.file;
78766
78766
  var Fs = (s3) => !!s3.file;
78767
- var Gr = (s3) => {
78768
- let t = Wr.get(s3);
78767
+ var Xr = (s3) => {
78768
+ let t = $r.get(s3);
78769
78769
  return t || s3;
78770
78770
  };
78771
78771
  var re = (s3 = {}) => {
78772
78772
  if (!s3) return {};
78773
78773
  let t = {};
78774
78774
  for (let [e, i] of Object.entries(s3)) {
78775
- let r = Gr(e);
78775
+ let r = Xr(e);
78776
78776
  t[r] = i;
78777
78777
  }
78778
78778
  return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
@@ -78795,13 +78795,13 @@ var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
78795
78795
  }
78796
78796
  throw new Error("impossible options??");
78797
78797
  }, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
78798
- var Yr = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
78799
- 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 }, Yr));
78800
- var Kr = import_buffer.Buffer.concat;
78798
+ var jr = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
78799
+ 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));
78800
+ var Qr = import_buffer.Buffer.concat;
78801
78801
  var vs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
78802
- var Vr = (s3) => s3;
78802
+ var Jr = (s3) => s3;
78803
78803
  var ki = vs?.writable === true || vs?.set !== void 0 ? (s3) => {
78804
- import_buffer.Buffer.concat = s3 ? Vr : Kr;
78804
+ import_buffer.Buffer.concat = s3 ? Jr : Qr;
78805
78805
  } : (s3) => {
78806
78806
  };
78807
78807
  var Ot = /* @__PURE__ */ Symbol("_superWrite");
@@ -78962,15 +78962,15 @@ var Ye = class extends Ge {
78962
78962
  }
78963
78963
  };
78964
78964
  var Ms = (s3, t) => {
78965
- if (Number.isSafeInteger(s3)) s3 < 0 ? qr(s3, t) : Xr(s3, t);
78965
+ if (Number.isSafeInteger(s3)) s3 < 0 ? sn(s3, t) : en(s3, t);
78966
78966
  else throw Error("cannot encode number outside of javascript safe integer range");
78967
78967
  return t;
78968
78968
  };
78969
- var Xr = (s3, t) => {
78969
+ var en = (s3, t) => {
78970
78970
  t[0] = 128;
78971
78971
  for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
78972
78972
  };
78973
- var qr = (s3, t) => {
78973
+ var sn = (s3, t) => {
78974
78974
  t[0] = 255;
78975
78975
  var e = false;
78976
78976
  s3 = s3 * -1;
@@ -78980,19 +78980,19 @@ var qr = (s3, t) => {
78980
78980
  }
78981
78981
  };
78982
78982
  var Bs = (s3) => {
78983
- let t = s3[0], e = t === 128 ? Qr(s3.subarray(1, s3.length)) : t === 255 ? jr(s3) : null;
78983
+ let t = s3[0], e = t === 128 ? nn(s3.subarray(1, s3.length)) : t === 255 ? rn(s3) : null;
78984
78984
  if (e === null) throw Error("invalid base256 encoding");
78985
78985
  if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
78986
78986
  return e;
78987
78987
  };
78988
- var jr = (s3) => {
78988
+ var rn = (s3) => {
78989
78989
  for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
78990
78990
  var n = Number(s3[r]), o;
78991
78991
  i ? o = Ps(n) : n === 0 ? o = n : (i = true, o = zs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
78992
78992
  }
78993
78993
  return e;
78994
78994
  };
78995
- var Qr = (s3) => {
78995
+ var nn = (s3) => {
78996
78996
  for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
78997
78997
  var r = Number(s3[i]);
78998
78998
  r !== 0 && (e += r * Math.pow(256, t - i - 1));
@@ -79002,9 +79002,9 @@ var Qr = (s3) => {
79002
79002
  var Ps = (s3) => (255 ^ s3) & 255;
79003
79003
  var zs = (s3) => (255 ^ s3) + 1 & 255;
79004
79004
  var Bi = {};
79005
- Ar(Bi, { code: () => Ke, isCode: () => oe, isName: () => tn, name: () => he });
79005
+ vr(Bi, { code: () => Ke, isCode: () => oe, isName: () => hn, name: () => he });
79006
79006
  var oe = (s3) => he.has(s3);
79007
- var tn = (s3) => Ke.has(s3);
79007
+ var hn = (s3) => Ke.has(s3);
79008
79008
  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"]]);
79009
79009
  var Ke = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
79010
79010
  var F = class {
@@ -79053,7 +79053,7 @@ var F = class {
79053
79053
  }
79054
79054
  encode(t, e = 0) {
79055
79055
  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");
79056
- let i = this.ctime || this.atime ? 130 : 155, r = en(this.path || "", i), n = r[0], o = r[1];
79056
+ let i = this.ctime || this.atime ? 130 : 155, r = an(this.path || "", i), n = r[0], o = r[1];
79057
79057
  this.needPax = !!r[2], this.needPax = xt(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 = zi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = xt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = xt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = xt(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 = xt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = xt(t, e + 345, 155, o) || this.needPax : (this.needPax = xt(t, e + 345, 130, o) || this.needPax, this.needPax = zi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = zi(t, e + 488, 12, this.ctime) || this.needPax);
79058
79058
  let h = 256;
79059
79059
  for (let a = e; a < e + 148; a++) h += t[a];
@@ -79073,7 +79073,7 @@ var F = class {
79073
79073
  else throw new TypeError("invalid entry type: " + t);
79074
79074
  }
79075
79075
  };
79076
- var en = (s3, t) => {
79076
+ var an = (s3, t) => {
79077
79077
  let i = s3, r = "", n, o = import_node_path2.posix.parse(s3).root || ".";
79078
79078
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
79079
79079
  else {
@@ -79086,19 +79086,19 @@ var en = (s3, t) => {
79086
79086
  return n;
79087
79087
  };
79088
79088
  var Tt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
79089
- var Pi = (s3, t, e) => sn(at(s3, t, e));
79090
- var sn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
79091
- var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : nn(s3, t, e);
79092
- var rn = (s3) => isNaN(s3) ? void 0 : s3;
79093
- var nn = (s3, t, e) => rn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
79094
- var on = { 12: 8589934591, 8: 2097151 };
79095
- var lt = (s3, t, e, i) => i === void 0 ? false : i > on[e] || i < 0 ? (Ms(i, s3.subarray(t, t + e)), true) : (hn(s3, t, e, i), false);
79096
- var hn = (s3, t, e, i) => s3.write(an(i, e), t, e, "ascii");
79097
- var an = (s3, t) => ln(Math.floor(s3).toString(8), t);
79098
- var ln = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
79089
+ var Pi = (s3, t, e) => ln(at(s3, t, e));
79090
+ var ln = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
79091
+ var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : fn(s3, t, e);
79092
+ var cn = (s3) => isNaN(s3) ? void 0 : s3;
79093
+ var fn = (s3, t, e) => cn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
79094
+ var dn = { 12: 8589934591, 8: 2097151 };
79095
+ var lt = (s3, t, e, i) => i === void 0 ? false : i > dn[e] || i < 0 ? (Ms(i, s3.subarray(t, t + e)), true) : (un(s3, t, e, i), false);
79096
+ var un = (s3, t, e, i) => s3.write(mn(i, e), t, e, "ascii");
79097
+ var mn = (s3, t) => pn(Math.floor(s3).toString(8), t);
79098
+ var pn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
79099
79099
  var zi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
79100
- var cn = new Array(156).join("\0");
79101
- var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + cn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
79100
+ var En = new Array(156).join("\0");
79101
+ var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + En, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
79102
79102
  var ct = class s {
79103
79103
  atime;
79104
79104
  mtime;
@@ -79139,13 +79139,13 @@ var ct = class s {
79139
79139
  return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
79140
79140
  }
79141
79141
  static parse(t, e, i = false) {
79142
- return new s(dn(un(t), e), i);
79142
+ return new s(Sn(yn(t), e), i);
79143
79143
  }
79144
79144
  };
79145
- var dn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
79146
- var un = (s3) => s3.replace(/\n$/, "").split(`
79147
- `).reduce(mn, /* @__PURE__ */ Object.create(null));
79148
- var mn = (s3, t) => {
79145
+ var Sn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
79146
+ var yn = (s3) => s3.replace(/\n$/, "").split(`
79147
+ `).reduce(Rn, /* @__PURE__ */ Object.create(null));
79148
+ var Rn = (s3, t) => {
79149
79149
  let e = parseInt(t, 10);
79150
79150
  if (e !== Buffer.byteLength(t) + 1) return s3;
79151
79151
  t = t.slice((e + " ").length);
@@ -79154,8 +79154,8 @@ var mn = (s3, t) => {
79154
79154
  let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
79155
79155
  return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
79156
79156
  };
79157
- var pn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
79158
- var f = pn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
79157
+ var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
79158
+ var f = bn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
79159
79159
  var Yt = class extends D {
79160
79160
  extended;
79161
79161
  globalExtended;
@@ -79223,10 +79223,10 @@ var Yt = class extends D {
79223
79223
  var Lt = (s3, t, e, i = {}) => {
79224
79224
  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));
79225
79225
  };
79226
- var wn = 1024 * 1024;
79226
+ var gn = 1024 * 1024;
79227
79227
  var Zi = Buffer.from([31, 139]);
79228
79228
  var Yi = Buffer.from([40, 181, 47, 253]);
79229
- var Sn = Math.max(Zi.length, Yi.length);
79229
+ var On = Math.max(Zi.length, Yi.length);
79230
79230
  var B = /* @__PURE__ */ Symbol("state");
79231
79231
  var Nt = /* @__PURE__ */ Symbol("writeEntry");
79232
79232
  var et = /* @__PURE__ */ Symbol("readEntry");
@@ -79257,7 +79257,7 @@ var Dt = /* @__PURE__ */ Symbol("sawValidEntry");
79257
79257
  var je = /* @__PURE__ */ Symbol("sawNullBlock");
79258
79258
  var Qe = /* @__PURE__ */ Symbol("sawEOF");
79259
79259
  var Zs = /* @__PURE__ */ Symbol("closeStream");
79260
- var yn = () => true;
79260
+ var Tn = () => true;
79261
79261
  var st = class extends import_events2.EventEmitter {
79262
79262
  file;
79263
79263
  strict;
@@ -79289,7 +79289,7 @@ var st = class extends import_events2.EventEmitter {
79289
79289
  (this[B] === "begin" || this[Dt] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
79290
79290
  }), t.ondone ? this.on(qe, t.ondone) : this.on(qe, () => {
79291
79291
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
79292
- }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || wn, this.filter = typeof t.filter == "function" ? t.filter : yn;
79292
+ }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || gn, this.filter = typeof t.filter == "function" ? t.filter : Tn;
79293
79293
  let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
79294
79294
  this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
79295
79295
  let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
@@ -79389,7 +79389,7 @@ var st = class extends import_events2.EventEmitter {
79389
79389
  write(t, e, i) {
79390
79390
  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;
79391
79391
  if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
79392
- if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < Sn) return this[p] = t, i?.(), true;
79392
+ if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < On) return this[p] = t, i?.(), true;
79393
79393
  for (let a = 0; this[y] === void 0 && a < Zi.length; a++) t[a] !== Zi[a] && (this[y] = false);
79394
79394
  let o = false;
79395
79395
  if (this[y] === false && this.zstd !== false) {
@@ -79479,7 +79479,7 @@ var mt = (s3) => {
79479
79479
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
79480
79480
  return e === -1 ? s3 : s3.slice(0, e);
79481
79481
  };
79482
- var _n = (s3) => {
79482
+ var Nn = (s3) => {
79483
79483
  let t = s3.onReadEntry;
79484
79484
  s3.onReadEntry = t ? (e) => {
79485
79485
  t(e), e.resume();
@@ -79497,7 +79497,7 @@ var Ki = (s3, t) => {
79497
79497
  };
79498
79498
  s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
79499
79499
  };
79500
- var gn = (s3) => {
79500
+ var An = (s3) => {
79501
79501
  let t = new st(s3), e = s3.file, i;
79502
79502
  try {
79503
79503
  i = import_node_fs.default.openSync(e, "r");
@@ -79521,7 +79521,7 @@ var gn = (s3) => {
79521
79521
  }
79522
79522
  }
79523
79523
  };
79524
- var On = (s3, t) => {
79524
+ var Dn = (s3, t) => {
79525
79525
  let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
79526
79526
  return new Promise((o, h) => {
79527
79527
  e.on("error", h), e.on("end", o), import_node_fs.default.stat(r, (a, l) => {
@@ -79533,14 +79533,14 @@ var On = (s3, t) => {
79533
79533
  });
79534
79534
  });
79535
79535
  };
79536
- var It = K(gn, On, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
79537
- t?.length && Ki(s3, t), s3.noResume || _n(s3);
79536
+ var It = K(An, Dn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
79537
+ t?.length && Ki(s3, t), s3.noResume || Nn(s3);
79538
79538
  });
79539
79539
  var Vi = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
79540
- var { isAbsolute: xn, parse: Ys } = import_node_path4.win32;
79540
+ var { isAbsolute: Cn, parse: Ys } = import_node_path4.win32;
79541
79541
  var ce = (s3) => {
79542
79542
  let t = "", e = Ys(s3);
79543
- for (; xn(s3) || e.root; ) {
79543
+ for (; Cn(s3) || e.root; ) {
79544
79544
  let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
79545
79545
  s3 = s3.slice(i.length), t += i, e = Ys(s3);
79546
79546
  }
@@ -79548,12 +79548,12 @@ var ce = (s3) => {
79548
79548
  };
79549
79549
  var Je = ["|", "<", ">", "?", ":"];
79550
79550
  var $i = Je.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
79551
- var Ln = new Map(Je.map((s3, t) => [s3, $i[t]]));
79552
- var Nn = new Map($i.map((s3, t) => [s3, Je[t]]));
79553
- var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Ln.get(e)), s3);
79554
- var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(Nn.get(e)), s3);
79551
+ var Fn = new Map(Je.map((s3, t) => [s3, $i[t]]));
79552
+ var kn = new Map($i.map((s3, t) => [s3, Je[t]]));
79553
+ var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Fn.get(e)), s3);
79554
+ var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(kn.get(e)), s3);
79555
79555
  var Js = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
79556
- var An = 16 * 1024 * 1024;
79556
+ var vn = 16 * 1024 * 1024;
79557
79557
  var Xs = /* @__PURE__ */ Symbol("process");
79558
79558
  var qs = /* @__PURE__ */ Symbol("file");
79559
79559
  var js = /* @__PURE__ */ Symbol("directory");
@@ -79605,7 +79605,7 @@ var de = class extends D {
79605
79605
  #t = false;
79606
79606
  constructor(t, e = {}) {
79607
79607
  let i = re(e);
79608
- super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || An, 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);
79608
+ super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || vn, 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);
79609
79609
  let r = false;
79610
79610
  if (!this.preservePaths) {
79611
79611
  let [o, h] = ce(this.path);
@@ -79628,7 +79628,7 @@ var de = class extends D {
79628
79628
  });
79629
79629
  }
79630
79630
  [ei](t) {
79631
- this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Dn(t), this.emit("stat", t), this[Xs]();
79631
+ this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Mn(t), this.emit("stat", t), this[Xs]();
79632
79632
  }
79633
79633
  [Xs]() {
79634
79634
  switch (this.type) {
@@ -79834,7 +79834,7 @@ var ri = class extends D {
79834
79834
  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;
79835
79835
  }
79836
79836
  };
79837
- var Dn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
79837
+ var Mn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
79838
79838
  var ni = class s2 {
79839
79839
  tail;
79840
79840
  head;
@@ -79866,11 +79866,11 @@ var ni = class s2 {
79866
79866
  t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
79867
79867
  }
79868
79868
  push(...t) {
79869
- for (let e = 0, i = t.length; e < i; e++) Cn(this, t[e]);
79869
+ for (let e = 0, i = t.length; e < i; e++) Pn(this, t[e]);
79870
79870
  return this.length;
79871
79871
  }
79872
79872
  unshift(...t) {
79873
- for (var e = 0, i = t.length; e < i; e++) Fn(this, t[e]);
79873
+ for (var e = 0, i = t.length; e < i; e++) zn(this, t[e]);
79874
79874
  return this.length;
79875
79875
  }
79876
79876
  pop() {
@@ -79966,7 +79966,7 @@ var ni = class s2 {
79966
79966
  let n = [];
79967
79967
  for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
79968
79968
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
79969
- for (let o of i) r = In(this, r, o);
79969
+ for (let o of i) r = Bn(this, r, o);
79970
79970
  return n;
79971
79971
  }
79972
79972
  reverse() {
@@ -79978,14 +79978,14 @@ var ni = class s2 {
79978
79978
  return this.head = e, this.tail = t, this;
79979
79979
  }
79980
79980
  };
79981
- function In(s3, t, e) {
79981
+ function Bn(s3, t, e) {
79982
79982
  let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
79983
79983
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
79984
79984
  }
79985
- function Cn(s3, t) {
79985
+ function Pn(s3, t) {
79986
79986
  s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
79987
79987
  }
79988
- function Fn(s3, t) {
79988
+ function zn(s3, t) {
79989
79989
  s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
79990
79990
  }
79991
79991
  var ue = class {
@@ -80214,11 +80214,11 @@ var kt = class extends Et {
80214
80214
  });
80215
80215
  }
80216
80216
  };
80217
- var kn = (s3, t) => {
80217
+ var Un = (s3, t) => {
80218
80218
  let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
80219
80219
  e.pipe(i), or(e, t);
80220
80220
  };
80221
- var vn = (s3, t) => {
80221
+ var Hn = (s3, t) => {
80222
80222
  let e = new Et(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
80223
80223
  e.pipe(i);
80224
80224
  let r = new Promise((n, o) => {
@@ -80237,25 +80237,26 @@ var hr = async (s3, t) => {
80237
80237
  } }) : s3.add(e);
80238
80238
  s3.end();
80239
80239
  };
80240
- var Mn = (s3, t) => {
80240
+ var Wn = (s3, t) => {
80241
80241
  let e = new kt(s3);
80242
80242
  return or(e, t), e;
80243
80243
  };
80244
- var Bn = (s3, t) => {
80244
+ var Gn = (s3, t) => {
80245
80245
  let e = new Et(s3);
80246
80246
  return hr(e, t).catch((i) => e.emit("error", i)), e;
80247
80247
  };
80248
- var Pn = K(kn, vn, Mn, Bn, (s3, t) => {
80248
+ var Zn = K(Un, Hn, Wn, Gn, (s3, t) => {
80249
80249
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
80250
80250
  });
80251
- var zn = process.env.__FAKE_PLATFORM__ || process.platform;
80252
- var Un = zn === "win32";
80253
- var { O_CREAT: Hn, O_TRUNC: Wn, O_WRONLY: Gn } = import_fs5.default.constants;
80254
- var lr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs5.default.constants.UV_FS_O_FILEMAP || 0;
80255
- var Zn = Un && !!lr;
80256
- var Yn = 512 * 1024;
80257
- var Kn = lr | Wn | Hn | Gn;
80258
- var cs = Zn ? (s3) => s3 < Yn ? Kn : "w" : () => "w";
80251
+ var Yn = process.env.__FAKE_PLATFORM__ || process.platform;
80252
+ var fr = Yn === "win32";
80253
+ var { O_CREAT: dr, O_NOFOLLOW: ar, O_TRUNC: ur, O_WRONLY: mr } = import_fs5.default.constants;
80254
+ var pr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs5.default.constants.UV_FS_O_FILEMAP || 0;
80255
+ var Kn = fr && !!pr;
80256
+ var Vn = 512 * 1024;
80257
+ var $n = pr | ur | dr | mr;
80258
+ var lr = !fr && typeof ar == "number" ? ar | ur | dr | mr : null;
80259
+ var cs = lr !== null ? () => lr : Kn ? (s3) => s3 < Vn ? $n : "w" : () => "w";
80259
80260
  var fs2 = (s3, t, e) => {
80260
80261
  try {
80261
80262
  return import_node_fs4.default.lchownSync(s3, t, e);
@@ -80268,7 +80269,7 @@ var ui = (s3, t, e, i) => {
80268
80269
  i(r && r?.code !== "ENOENT" ? r : null);
80269
80270
  });
80270
80271
  };
80271
- var Vn = (s3, t, e, i, r) => {
80272
+ var Xn = (s3, t, e, i, r) => {
80272
80273
  if (t.isDirectory()) ds(import_node_path6.default.resolve(s3, t.name), e, i, (n) => {
80273
80274
  if (n) return r(n);
80274
80275
  let o = import_node_path6.default.resolve(s3, t.name);
@@ -80292,10 +80293,10 @@ var ds = (s3, t, e, i) => {
80292
80293
  if (--o === 0) return ui(s3, t, e, i);
80293
80294
  }
80294
80295
  };
80295
- for (let l of n) Vn(s3, l, t, e, a);
80296
+ for (let l of n) Xn(s3, l, t, e, a);
80296
80297
  });
80297
80298
  };
80298
- var $n = (s3, t, e, i) => {
80299
+ var qn = (s3, t, e, i) => {
80299
80300
  t.isDirectory() && us(import_node_path6.default.resolve(s3, t.name), e, i), fs2(import_node_path6.default.resolve(s3, t.name), e, i);
80300
80301
  };
80301
80302
  var us = (s3, t, e) => {
@@ -80308,7 +80309,7 @@ var us = (s3, t, e) => {
80308
80309
  if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return fs2(s3, t, e);
80309
80310
  throw n;
80310
80311
  }
80311
- for (let r of i) $n(s3, r, t, e);
80312
+ for (let r of i) qn(s3, r, t, e);
80312
80313
  return fs2(s3, t, e);
80313
80314
  };
80314
80315
  var we = class extends Error {
@@ -80334,17 +80335,17 @@ var wt = class extends Error {
80334
80335
  return "SymlinkError";
80335
80336
  }
80336
80337
  };
80337
- var qn = (s3, t) => {
80338
+ var Qn = (s3, t) => {
80338
80339
  import_node_fs5.default.stat(s3, (e, i) => {
80339
80340
  (e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
80340
80341
  });
80341
80342
  };
80342
- var cr = (s3, t, e) => {
80343
+ var Er = (s3, t, e) => {
80343
80344
  s3 = f(s3);
80344
80345
  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) => {
80345
80346
  E ? e(E) : x && a ? ds(x, o, h, (xe) => S(xe)) : n ? import_node_fs5.default.chmod(s3, r, e) : e();
80346
80347
  };
80347
- if (s3 === d) return qn(s3, S);
80348
+ if (s3 === d) return Qn(s3, S);
80348
80349
  if (l) return import_promises.default.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
80349
80350
  let N = f(import_node_path7.default.relative(d, s3)).split("/");
80350
80351
  ms(d, N, r, c, d, void 0, S);
@@ -80352,15 +80353,15 @@ var cr = (s3, t, e) => {
80352
80353
  var ms = (s3, t, e, i, r, n, o) => {
80353
80354
  if (t.length === 0) return o(null, n);
80354
80355
  let h = t.shift(), a = f(import_node_path7.default.resolve(s3 + "/" + h));
80355
- import_node_fs5.default.mkdir(a, e, fr(a, t, e, i, r, n, o));
80356
+ import_node_fs5.default.mkdir(a, e, wr(a, t, e, i, r, n, o));
80356
80357
  };
80357
- var fr = (s3, t, e, i, r, n, o) => (h) => {
80358
+ var wr = (s3, t, e, i, r, n, o) => (h) => {
80358
80359
  h ? import_node_fs5.default.lstat(s3, (a, l) => {
80359
80360
  if (a) a.path = a.path && f(a.path), o(a);
80360
80361
  else if (l.isDirectory()) ms(s3, t, e, i, r, n, o);
80361
80362
  else if (i) import_node_fs5.default.unlink(s3, (c) => {
80362
80363
  if (c) return o(c);
80363
- import_node_fs5.default.mkdir(s3, e, fr(s3, t, e, i, r, n, o));
80364
+ import_node_fs5.default.mkdir(s3, e, wr(s3, t, e, i, r, n, o));
80364
80365
  });
80365
80366
  else {
80366
80367
  if (l.isSymbolicLink()) return o(new wt(s3, s3 + "/" + t.join("/")));
@@ -80368,7 +80369,7 @@ var fr = (s3, t, e, i, r, n, o) => (h) => {
80368
80369
  }
80369
80370
  }) : (n = n || s3, ms(s3, t, e, i, r, n, o));
80370
80371
  };
80371
- var jn = (s3) => {
80372
+ var Jn = (s3) => {
80372
80373
  let t = false, e;
80373
80374
  try {
80374
80375
  t = import_node_fs5.default.statSync(s3).isDirectory();
@@ -80378,12 +80379,12 @@ var jn = (s3) => {
80378
80379
  if (!t) throw new we(s3, e ?? "ENOTDIR");
80379
80380
  }
80380
80381
  };
80381
- var dr = (s3, t) => {
80382
+ var Sr = (s3, t) => {
80382
80383
  s3 = f(s3);
80383
80384
  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) => {
80384
80385
  E && h && us(E, n, o), r && import_node_fs5.default.chmodSync(s3, i);
80385
80386
  };
80386
- if (s3 === c) return jn(c), d();
80387
+ if (s3 === c) return Jn(c), d();
80387
80388
  if (a) return d(import_node_fs5.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
80388
80389
  let T = f(import_node_path7.default.relative(c, s3)).split("/"), N;
80389
80390
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
@@ -80402,19 +80403,19 @@ var dr = (s3, t) => {
80402
80403
  return d(N);
80403
80404
  };
80404
80405
  var ps = /* @__PURE__ */ Object.create(null);
80405
- var ur = 1e4;
80406
+ var yr = 1e4;
80406
80407
  var $t = /* @__PURE__ */ new Set();
80407
- var mr = (s3) => {
80408
+ var Rr = (s3) => {
80408
80409
  $t.has(s3) ? $t.delete(s3) : ps[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
80409
- let t = ps[s3], e = $t.size - ur;
80410
- if (e > ur / 10) {
80410
+ let t = ps[s3], e = $t.size - yr;
80411
+ if (e > yr / 10) {
80411
80412
  for (let i of $t) if ($t.delete(i), delete ps[i], --e <= 0) break;
80412
80413
  }
80413
80414
  return t;
80414
80415
  };
80415
- var Qn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80416
- var Jn = Qn === "win32";
80417
- var to = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
80416
+ var to = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80417
+ var eo = to === "win32";
80418
+ var io = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
80418
80419
  let r = e.at(-1);
80419
80420
  return r !== void 0 && (i = (0, import_node_path8.join)(r, i)), e.push(i || "/"), e;
80420
80421
  }, []);
@@ -80423,8 +80424,8 @@ var Ei = class {
80423
80424
  #i = /* @__PURE__ */ new Map();
80424
80425
  #s = /* @__PURE__ */ new Set();
80425
80426
  reserve(t, e) {
80426
- t = Jn ? ["win32 parallelization disabled"] : t.map((r) => mt((0, import_node_path8.join)(mr(r))));
80427
- let i = new Set(t.map((r) => to(r)).reduce((r, n) => r.concat(n)));
80427
+ t = eo ? ["win32 parallelization disabled"] : t.map((r) => mt((0, import_node_path8.join)(Rr(r))));
80428
+ let i = new Set(t.map((r) => io(r)).reduce((r, n) => r.concat(n)));
80428
80429
  this.#i.set(e, { dirs: i, paths: t });
80429
80430
  for (let r of t) {
80430
80431
  let n = this.#t.get(r);
@@ -80482,25 +80483,25 @@ var Ei = class {
80482
80483
  return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
80483
80484
  }
80484
80485
  };
80485
- var Er = () => process.umask();
80486
- var wr = /* @__PURE__ */ Symbol("onEntry");
80486
+ var _r = () => process.umask();
80487
+ var gr = /* @__PURE__ */ Symbol("onEntry");
80487
80488
  var ys = /* @__PURE__ */ Symbol("checkFs");
80488
- var Sr = /* @__PURE__ */ Symbol("checkFs2");
80489
+ var Or = /* @__PURE__ */ Symbol("checkFs2");
80489
80490
  var Rs = /* @__PURE__ */ Symbol("isReusable");
80490
80491
  var P = /* @__PURE__ */ Symbol("makeFs");
80491
80492
  var bs = /* @__PURE__ */ Symbol("file");
80492
80493
  var _s = /* @__PURE__ */ Symbol("directory");
80493
80494
  var Si = /* @__PURE__ */ Symbol("link");
80494
- var yr = /* @__PURE__ */ Symbol("symlink");
80495
- var Rr = /* @__PURE__ */ Symbol("hardlink");
80495
+ var Tr = /* @__PURE__ */ Symbol("symlink");
80496
+ var xr = /* @__PURE__ */ Symbol("hardlink");
80496
80497
  var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
80497
- var br = /* @__PURE__ */ Symbol("unsupported");
80498
- var _r = /* @__PURE__ */ Symbol("checkPath");
80498
+ var Lr = /* @__PURE__ */ Symbol("unsupported");
80499
+ var Nr = /* @__PURE__ */ Symbol("checkPath");
80499
80500
  var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
80500
80501
  var St = /* @__PURE__ */ Symbol("mkdir");
80501
80502
  var O = /* @__PURE__ */ Symbol("onError");
80502
80503
  var wi = /* @__PURE__ */ Symbol("pending");
80503
- var gr = /* @__PURE__ */ Symbol("pend");
80504
+ var Ar = /* @__PURE__ */ Symbol("pend");
80504
80505
  var Xt = /* @__PURE__ */ Symbol("unpend");
80505
80506
  var ws = /* @__PURE__ */ Symbol("ended");
80506
80507
  var Ss = /* @__PURE__ */ Symbol("maybeClose");
@@ -80509,10 +80510,10 @@ var Re = /* @__PURE__ */ Symbol("doChown");
80509
80510
  var be = /* @__PURE__ */ Symbol("uid");
80510
80511
  var _e = /* @__PURE__ */ Symbol("gid");
80511
80512
  var ge = /* @__PURE__ */ Symbol("checkedCwd");
80512
- var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80513
- var Oe = io === "win32";
80514
- var so = 1024;
80515
- var ro = (s3, t) => {
80513
+ var ro = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80514
+ var Oe = ro === "win32";
80515
+ var no = 1024;
80516
+ var oo = (s3, t) => {
80516
80517
  if (!Oe) return import_node_fs3.default.unlink(s3, t);
80517
80518
  let e = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
80518
80519
  import_node_fs3.default.rename(s3, e, (i) => {
@@ -80520,12 +80521,12 @@ var ro = (s3, t) => {
80520
80521
  import_node_fs3.default.unlink(e, t);
80521
80522
  });
80522
80523
  };
80523
- var no = (s3) => {
80524
+ var ho = (s3) => {
80524
80525
  if (!Oe) return import_node_fs3.default.unlinkSync(s3);
80525
80526
  let t = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
80526
80527
  import_node_fs3.default.renameSync(s3, t), import_node_fs3.default.unlinkSync(t);
80527
80528
  };
80528
- var Or = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
80529
+ var Dr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
80529
80530
  var qt = class extends st {
80530
80531
  [ws] = false;
80531
80532
  [ge] = false;
@@ -80563,7 +80564,7 @@ var qt = class extends st {
80563
80564
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
80564
80565
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
80565
80566
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
80566
- 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 : so, 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(import_node_path5.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Er() : 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[wr](e));
80567
+ 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 : no, 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(import_node_path5.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[gr](e));
80567
80568
  }
80568
80569
  warn(t, e, i = {}) {
80569
80570
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
@@ -80582,7 +80583,7 @@ var qt = class extends st {
80582
80583
  }
80583
80584
  return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
80584
80585
  }
80585
- [_r](t) {
80586
+ [Nr](t) {
80586
80587
  let e = f(t.path), i = e.split("/");
80587
80588
  if (this.strip) {
80588
80589
  if (i.length < this.strip) return false;
@@ -80605,8 +80606,8 @@ var qt = class extends st {
80605
80606
  }
80606
80607
  return true;
80607
80608
  }
80608
- [wr](t) {
80609
- if (!this[_r](t)) return t.resume();
80609
+ [gr](t) {
80610
+ if (!this[Nr](t)) return t.resume();
80610
80611
  switch (import_node_assert.default.equal(typeof t.absolute, "string"), t.type) {
80611
80612
  case "Directory":
80612
80613
  case "GNUDumpDir":
@@ -80618,23 +80619,23 @@ var qt = class extends st {
80618
80619
  case "SymbolicLink":
80619
80620
  return this[ys](t);
80620
80621
  default:
80621
- return this[br](t);
80622
+ return this[Lr](t);
80622
80623
  }
80623
80624
  }
80624
80625
  [O](t, e) {
80625
80626
  t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
80626
80627
  }
80627
80628
  [St](t, e, i) {
80628
- cr(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);
80629
+ Er(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);
80629
80630
  }
80630
80631
  [Re](t) {
80631
80632
  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;
80632
80633
  }
80633
80634
  [be](t) {
80634
- return Or(this.uid, t.uid, this.processUid);
80635
+ return Dr(this.uid, t.uid, this.processUid);
80635
80636
  }
80636
80637
  [_e](t) {
80637
- return Or(this.gid, t.gid, this.processGid);
80638
+ return Dr(this.gid, t.gid, this.processGid);
80638
80639
  }
80639
80640
  [bs](t, e) {
80640
80641
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: cs(t.size), mode: i, autoClose: false });
@@ -80684,16 +80685,16 @@ var qt = class extends st {
80684
80685
  t.mtime && !this.noMtime && (n++, import_node_fs3.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, import_node_fs3.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
80685
80686
  });
80686
80687
  }
80687
- [br](t) {
80688
+ [Lr](t) {
80688
80689
  t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
80689
80690
  }
80690
- [yr](t, e) {
80691
+ [Tr](t, e) {
80691
80692
  let i = f(import_node_path5.default.relative(this.cwd, import_node_path5.default.resolve(import_node_path5.default.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
80692
80693
  this[ye](t, this.cwd, i, () => this[Si](t, String(t.linkpath), "symlink", e), (r) => {
80693
80694
  this[O](r, t), e();
80694
80695
  });
80695
80696
  }
80696
- [Rr](t, e) {
80697
+ [xr](t, e) {
80697
80698
  let i = f(import_node_path5.default.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
80698
80699
  this[ye](t, this.cwd, r, () => this[Si](t, i, "link", e), (n) => {
80699
80700
  this[O](n, t), e();
@@ -80709,7 +80710,7 @@ var qt = class extends st {
80709
80710
  this[ye](t, h, i, r, n);
80710
80711
  });
80711
80712
  }
80712
- [gr]() {
80713
+ [Ar]() {
80713
80714
  this[wi]++;
80714
80715
  }
80715
80716
  [Xt]() {
@@ -80722,11 +80723,11 @@ var qt = class extends st {
80722
80723
  return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
80723
80724
  }
80724
80725
  [ys](t) {
80725
- this[gr]();
80726
+ this[Ar]();
80726
80727
  let e = [t.path];
80727
- t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Sr](t, i));
80728
+ t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Or](t, i));
80728
80729
  }
80729
- [Sr](t, e) {
80730
+ [Or](t, e) {
80730
80731
  let i = (h) => {
80731
80732
  e(h);
80732
80733
  }, r = () => {
@@ -80764,7 +80765,7 @@ var qt = class extends st {
80764
80765
  if (t.absolute !== this.cwd) return import_node_fs3.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
80765
80766
  }
80766
80767
  if (t.absolute === this.cwd) return this[P](null, t, i);
80767
- ro(String(t.absolute), (l) => this[P](l ?? null, t, i));
80768
+ oo(String(t.absolute), (l) => this[P](l ?? null, t, i));
80768
80769
  });
80769
80770
  };
80770
80771
  this[ge] ? n() : r();
@@ -80780,9 +80781,9 @@ var qt = class extends st {
80780
80781
  case "ContiguousFile":
80781
80782
  return this[bs](e, i);
80782
80783
  case "Link":
80783
- return this[Rr](e, i);
80784
+ return this[xr](e, i);
80784
80785
  case "SymbolicLink":
80785
- return this[yr](e, i);
80786
+ return this[Tr](e, i);
80786
80787
  case "Directory":
80787
80788
  case "GNUDumpDir":
80788
80789
  return this[_s](e, i);
@@ -80833,7 +80834,7 @@ var Te = class extends qt {
80833
80834
  let [n] = Se(() => import_node_fs3.default.rmdirSync(String(t.absolute)));
80834
80835
  this[P](n, t);
80835
80836
  }
80836
- let [r] = t.absolute === this.cwd ? [] : Se(() => no(String(t.absolute)));
80837
+ let [r] = t.absolute === this.cwd ? [] : Se(() => ho(String(t.absolute)));
80837
80838
  this[P](r, t);
80838
80839
  }
80839
80840
  [bs](t, e) {
@@ -80905,7 +80906,7 @@ var Te = class extends qt {
80905
80906
  }
80906
80907
  [St](t, e) {
80907
80908
  try {
80908
- return dr(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 });
80909
+ return 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 });
80909
80910
  } catch (i) {
80910
80911
  return i;
80911
80912
  }
@@ -80930,11 +80931,11 @@ var Te = class extends qt {
80930
80931
  }
80931
80932
  }
80932
80933
  };
80933
- var oo = (s3) => {
80934
+ var ao = (s3) => {
80934
80935
  let t = new Te(s3), e = s3.file, i = import_node_fs2.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
80935
80936
  new Me(e, { readSize: r, size: i.size }).pipe(t);
80936
80937
  };
80937
- var ho = (s3, t) => {
80938
+ var lo = (s3, t) => {
80938
80939
  let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
80939
80940
  return new Promise((o, h) => {
80940
80941
  e.on("error", h), e.on("close", o), import_node_fs2.default.stat(r, (a, l) => {
@@ -80946,10 +80947,10 @@ var ho = (s3, t) => {
80946
80947
  });
80947
80948
  });
80948
80949
  };
80949
- var ao = K(oo, ho, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
80950
+ var co = K(ao, lo, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
80950
80951
  t?.length && Ki(s3, t);
80951
80952
  });
80952
- var lo = (s3, t) => {
80953
+ var fo = (s3, t) => {
80953
80954
  let e = new kt(s3), i = true, r, n;
80954
80955
  try {
80955
80956
  try {
@@ -80970,7 +80971,7 @@ var lo = (s3, t) => {
80970
80971
  if (n + l + 512 > o.size) break;
80971
80972
  n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
80972
80973
  }
80973
- i = false, co(s3, e, n, r, t);
80974
+ i = false, uo(s3, e, n, r, t);
80974
80975
  } finally {
80975
80976
  if (i) try {
80976
80977
  import_node_fs6.default.closeSync(r);
@@ -80978,11 +80979,11 @@ var lo = (s3, t) => {
80978
80979
  }
80979
80980
  }
80980
80981
  };
80981
- var co = (s3, t, e, i, r) => {
80982
+ var uo = (s3, t, e, i, r) => {
80982
80983
  let n = new Wt(s3.file, { fd: i, start: e });
80983
- t.pipe(n), uo(t, r);
80984
+ t.pipe(n), po(t, r);
80984
80985
  };
80985
- var fo = (s3, t) => {
80986
+ var mo = (s3, t) => {
80986
80987
  t = Array.from(t);
80987
80988
  let e = new Et(s3), i = (n, o, h) => {
80988
80989
  let a = (T, N) => {
@@ -81012,23 +81013,23 @@ var fo = (s3, t) => {
81012
81013
  i(c, S.size, (T, N) => {
81013
81014
  if (T) return o(T);
81014
81015
  let E = new tt(s3.file, { fd: c, start: N });
81015
- e.pipe(E), E.on("error", o), E.on("close", n), mo(e, t);
81016
+ e.pipe(E), E.on("error", o), E.on("close", n), Eo(e, t);
81016
81017
  });
81017
81018
  });
81018
81019
  };
81019
81020
  import_node_fs6.default.open(s3.file, h, a);
81020
81021
  });
81021
81022
  };
81022
- var uo = (s3, t) => {
81023
+ var po = (s3, t) => {
81023
81024
  t.forEach((e) => {
81024
81025
  e.charAt(0) === "@" ? It({ file: import_node_path9.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81025
81026
  }), s3.end();
81026
81027
  };
81027
- var mo = async (s3, t) => {
81028
+ var Eo = async (s3, t) => {
81028
81029
  for (let e of t) e.charAt(0) === "@" ? await It({ file: import_node_path9.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81029
81030
  s3.end();
81030
81031
  };
81031
- var vt = K(lo, fo, () => {
81032
+ var vt = K(fo, mo, () => {
81032
81033
  throw new TypeError("file is required");
81033
81034
  }, () => {
81034
81035
  throw new TypeError("file is required");
@@ -81037,10 +81038,10 @@ var vt = K(lo, fo, () => {
81037
81038
  if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
81038
81039
  if (!t?.length) throw new TypeError("no paths specified to add/replace");
81039
81040
  });
81040
- var po = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
81041
- vt.validate?.(s3, t), Eo(s3);
81041
+ var wo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
81042
+ vt.validate?.(s3, t), So(s3);
81042
81043
  });
81043
- var Eo = (s3) => {
81044
+ var So = (s3) => {
81044
81045
  let t = s3.filter;
81045
81046
  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));
81046
81047
  };
@@ -81223,6 +81224,9 @@ var Client = class _Client {
81223
81224
  locale: "",
81224
81225
  mode: "",
81225
81226
  cookie: "",
81227
+ impersonateuserid: "",
81228
+ impersonateuseremail: "",
81229
+ impersonateuserphone: "",
81226
81230
  platform: "",
81227
81231
  selfSigned: false,
81228
81232
  session: void 0
@@ -81231,8 +81235,8 @@ var Client = class _Client {
81231
81235
  "x-sdk-name": "Console",
81232
81236
  "x-sdk-platform": "console",
81233
81237
  "x-sdk-language": "web",
81234
- "x-sdk-version": "6.0.0",
81235
- "X-Appwrite-Response-Format": "1.8.0"
81238
+ "x-sdk-version": "8.0.0",
81239
+ "X-Appwrite-Response-Format": "1.9.0"
81236
81240
  };
81237
81241
  this.realtime = {
81238
81242
  socket: void 0,
@@ -81555,6 +81559,48 @@ var Client = class _Client {
81555
81559
  this.config.cookie = value;
81556
81560
  return this;
81557
81561
  }
81562
+ /**
81563
+ * Set ImpersonateUserId
81564
+ *
81565
+ * Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
81566
+ *
81567
+ * @param value string
81568
+ *
81569
+ * @return {this}
81570
+ */
81571
+ setImpersonateUserId(value) {
81572
+ this.headers["X-Appwrite-Impersonate-User-Id"] = value;
81573
+ this.config.impersonateuserid = value;
81574
+ return this;
81575
+ }
81576
+ /**
81577
+ * Set ImpersonateUserEmail
81578
+ *
81579
+ * Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
81580
+ *
81581
+ * @param value string
81582
+ *
81583
+ * @return {this}
81584
+ */
81585
+ setImpersonateUserEmail(value) {
81586
+ this.headers["X-Appwrite-Impersonate-User-Email"] = value;
81587
+ this.config.impersonateuseremail = value;
81588
+ return this;
81589
+ }
81590
+ /**
81591
+ * Set ImpersonateUserPhone
81592
+ *
81593
+ * Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
81594
+ *
81595
+ * @param value string
81596
+ *
81597
+ * @return {this}
81598
+ */
81599
+ setImpersonateUserPhone(value) {
81600
+ this.headers["X-Appwrite-Impersonate-User-Phone"] = value;
81601
+ this.config.impersonateuserphone = value;
81602
+ return this;
81603
+ }
81558
81604
  /**
81559
81605
  * Set Platform
81560
81606
  *
@@ -81676,9 +81722,9 @@ var Client = class _Client {
81676
81722
  }
81677
81723
  return { uri: url2.toString(), options };
81678
81724
  }
81679
- chunkedUpload(method, url2, headers = {}, originalPayload = {}, onProgress) {
81680
- var _a3;
81681
- return __awaiter(this, void 0, void 0, function* () {
81725
+ chunkedUpload(method_1, url_1) {
81726
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, originalPayload = {}, onProgress) {
81727
+ var _a3;
81682
81728
  const [fileParam, file2] = (_a3 = Object.entries(originalPayload).find(([_2, value]) => value instanceof File)) !== null && _a3 !== void 0 ? _a3 : [];
81683
81729
  if (!file2 || !fileParam) {
81684
81730
  throw new Error("File not found in payload");
@@ -81720,9 +81766,9 @@ var Client = class _Client {
81720
81766
  return this.call("GET", new URL(this.config.endpoint + "/ping"));
81721
81767
  });
81722
81768
  }
81723
- call(method, url2, headers = {}, params = {}, responseType = "json") {
81724
- var _a3, _b;
81725
- return __awaiter(this, void 0, void 0, function* () {
81769
+ call(method_1, url_1) {
81770
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, params = {}, responseType = "json") {
81771
+ var _a3, _b;
81726
81772
  const { uri, options } = this.prepareRequest(method, url2, headers, params);
81727
81773
  let data = null;
81728
81774
  const response = yield fetch(uri, options);
@@ -98194,7 +98240,7 @@ Permission.delete = (role) => {
98194
98240
  };
98195
98241
  var _a2;
98196
98242
  var _ID_hexTimestamp;
98197
- var ID2 = class _ID {
98243
+ var ID2 = class {
98198
98244
  /**
98199
98245
  * Uses the provided ID as the ID for the resource.
98200
98246
  *
@@ -98211,7 +98257,7 @@ var ID2 = class _ID {
98211
98257
  * @returns {string}
98212
98258
  */
98213
98259
  static unique(padding = 7) {
98214
- const baseId = __classPrivateFieldGet(_ID, _a2, "m", _ID_hexTimestamp).call(_ID);
98260
+ const baseId = __classPrivateFieldGet(_a2, _a2, "m", _ID_hexTimestamp).call(_a2);
98215
98261
  let randomPadding = "";
98216
98262
  for (let i = 0; i < padding; i++) {
98217
98263
  const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
@@ -98364,11 +98410,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
98364
98410
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
98365
98411
  var Scopes;
98366
98412
  (function(Scopes2) {
98413
+ Scopes2["Account"] = "account";
98414
+ Scopes2["TeamsRead"] = "teams.read";
98415
+ Scopes2["TeamsWrite"] = "teams.write";
98367
98416
  Scopes2["SessionsWrite"] = "sessions.write";
98368
98417
  Scopes2["UsersRead"] = "users.read";
98369
98418
  Scopes2["UsersWrite"] = "users.write";
98370
- Scopes2["TeamsRead"] = "teams.read";
98371
- Scopes2["TeamsWrite"] = "teams.write";
98372
98419
  Scopes2["DatabasesRead"] = "databases.read";
98373
98420
  Scopes2["DatabasesWrite"] = "databases.write";
98374
98421
  Scopes2["CollectionsRead"] = "collections.read";
@@ -98423,6 +98470,8 @@ var Scopes;
98423
98470
  Scopes2["TokensWrite"] = "tokens.write";
98424
98471
  Scopes2["WebhooksRead"] = "webhooks.read";
98425
98472
  Scopes2["WebhooksWrite"] = "webhooks.write";
98473
+ Scopes2["ProjectRead"] = "project.read";
98474
+ Scopes2["ProjectWrite"] = "project.write";
98426
98475
  Scopes2["PoliciesWrite"] = "policies.write";
98427
98476
  Scopes2["PoliciesRead"] = "policies.read";
98428
98477
  Scopes2["ArchivesRead"] = "archives.read";
@@ -98432,6 +98481,14 @@ var Scopes;
98432
98481
  Scopes2["DomainsRead"] = "domains.read";
98433
98482
  Scopes2["DomainsWrite"] = "domains.write";
98434
98483
  Scopes2["EventsRead"] = "events.read";
98484
+ Scopes2["PlatformsRead"] = "platforms.read";
98485
+ Scopes2["PlatformsWrite"] = "platforms.write";
98486
+ Scopes2["ProjectsRead"] = "projects.read";
98487
+ Scopes2["ProjectsWrite"] = "projects.write";
98488
+ Scopes2["KeysRead"] = "keys.read";
98489
+ Scopes2["KeysWrite"] = "keys.write";
98490
+ Scopes2["DevKeysRead"] = "devKeys.read";
98491
+ Scopes2["DevKeysWrite"] = "devKeys.write";
98435
98492
  })(Scopes || (Scopes = {}));
98436
98493
  var AuthenticatorType;
98437
98494
  (function(AuthenticatorType2) {
@@ -99184,6 +99241,9 @@ var ImageFormat;
99184
99241
  var BackupServices;
99185
99242
  (function(BackupServices2) {
99186
99243
  BackupServices2["Databases"] = "databases";
99244
+ BackupServices2["Tablesdb"] = "tablesdb";
99245
+ BackupServices2["Documentsdb"] = "documentsdb";
99246
+ BackupServices2["Vectorsdb"] = "vectorsdb";
99187
99247
  BackupServices2["Functions"] = "functions";
99188
99248
  BackupServices2["Storage"] = "storage";
99189
99249
  })(BackupServices || (BackupServices = {}));
@@ -99215,13 +99275,13 @@ var RelationMutate;
99215
99275
  RelationMutate2["Restrict"] = "restrict";
99216
99276
  RelationMutate2["SetNull"] = "setNull";
99217
99277
  })(RelationMutate || (RelationMutate = {}));
99218
- var IndexType;
99219
- (function(IndexType2) {
99220
- IndexType2["Key"] = "key";
99221
- IndexType2["Fulltext"] = "fulltext";
99222
- IndexType2["Unique"] = "unique";
99223
- IndexType2["Spatial"] = "spatial";
99224
- })(IndexType || (IndexType = {}));
99278
+ var DatabasesIndexType;
99279
+ (function(DatabasesIndexType2) {
99280
+ DatabasesIndexType2["Key"] = "key";
99281
+ DatabasesIndexType2["Fulltext"] = "fulltext";
99282
+ DatabasesIndexType2["Unique"] = "unique";
99283
+ DatabasesIndexType2["Spatial"] = "spatial";
99284
+ })(DatabasesIndexType || (DatabasesIndexType = {}));
99225
99285
  var OrderBy;
99226
99286
  (function(OrderBy2) {
99227
99287
  OrderBy2["Asc"] = "asc";
@@ -99327,92 +99387,6 @@ var Runtime;
99327
99387
  Runtime2["Flutter332"] = "flutter-3.32";
99328
99388
  Runtime2["Flutter335"] = "flutter-3.35";
99329
99389
  Runtime2["Flutter338"] = "flutter-3.38";
99330
- Runtime2["Node145rc"] = "node-14.5-rc";
99331
- Runtime2["Node160rc"] = "node-16.0-rc";
99332
- Runtime2["Node180rc"] = "node-18.0-rc";
99333
- Runtime2["Node190rc"] = "node-19.0-rc";
99334
- Runtime2["Node200rc"] = "node-20.0-rc";
99335
- Runtime2["Node210rc"] = "node-21.0-rc";
99336
- Runtime2["Node22rc"] = "node-22-rc";
99337
- Runtime2["Node23rc"] = "node-23-rc";
99338
- Runtime2["Node24rc"] = "node-24-rc";
99339
- Runtime2["Node25rc"] = "node-25-rc";
99340
- Runtime2["Php80rc"] = "php-8.0-rc";
99341
- Runtime2["Php81rc"] = "php-8.1-rc";
99342
- Runtime2["Php82rc"] = "php-8.2-rc";
99343
- Runtime2["Php83rc"] = "php-8.3-rc";
99344
- Runtime2["Php84rc"] = "php-8.4-rc";
99345
- Runtime2["Ruby30rc"] = "ruby-3.0-rc";
99346
- Runtime2["Ruby31rc"] = "ruby-3.1-rc";
99347
- Runtime2["Ruby32rc"] = "ruby-3.2-rc";
99348
- Runtime2["Ruby33rc"] = "ruby-3.3-rc";
99349
- Runtime2["Ruby34rc"] = "ruby-3.4-rc";
99350
- Runtime2["Ruby40rc"] = "ruby-4.0-rc";
99351
- Runtime2["Python38rc"] = "python-3.8-rc";
99352
- Runtime2["Python39rc"] = "python-3.9-rc";
99353
- Runtime2["Python310rc"] = "python-3.10-rc";
99354
- Runtime2["Python311rc"] = "python-3.11-rc";
99355
- Runtime2["Python312rc"] = "python-3.12-rc";
99356
- Runtime2["Python313rc"] = "python-3.13-rc";
99357
- Runtime2["Python314rc"] = "python-3.14-rc";
99358
- Runtime2["Pythonml311rc"] = "python-ml-3.11-rc";
99359
- Runtime2["Pythonml312rc"] = "python-ml-3.12-rc";
99360
- Runtime2["Pythonml313rc"] = "python-ml-3.13-rc";
99361
- Runtime2["Deno140rc"] = "deno-1.40-rc";
99362
- Runtime2["Deno146rc"] = "deno-1.46-rc";
99363
- Runtime2["Deno20rc"] = "deno-2.0-rc";
99364
- Runtime2["Deno25rc"] = "deno-2.5-rc";
99365
- Runtime2["Deno26rc"] = "deno-2.6-rc";
99366
- Runtime2["Dart215rc"] = "dart-2.15-rc";
99367
- Runtime2["Dart216rc"] = "dart-2.16-rc";
99368
- Runtime2["Dart217rc"] = "dart-2.17-rc";
99369
- Runtime2["Dart218rc"] = "dart-2.18-rc";
99370
- Runtime2["Dart219rc"] = "dart-2.19-rc";
99371
- Runtime2["Dart30rc"] = "dart-3.0-rc";
99372
- Runtime2["Dart31rc"] = "dart-3.1-rc";
99373
- Runtime2["Dart33rc"] = "dart-3.3-rc";
99374
- Runtime2["Dart35rc"] = "dart-3.5-rc";
99375
- Runtime2["Dart38rc"] = "dart-3.8-rc";
99376
- Runtime2["Dart39rc"] = "dart-3.9-rc";
99377
- Runtime2["Dart310rc"] = "dart-3.10-rc";
99378
- Runtime2["Dotnet60rc"] = "dotnet-6.0-rc";
99379
- Runtime2["Dotnet70rc"] = "dotnet-7.0-rc";
99380
- Runtime2["Dotnet80rc"] = "dotnet-8.0-rc";
99381
- Runtime2["Dotnet10rc"] = "dotnet-10-rc";
99382
- Runtime2["Java80rc"] = "java-8.0-rc";
99383
- Runtime2["Java110rc"] = "java-11.0-rc";
99384
- Runtime2["Java170rc"] = "java-17.0-rc";
99385
- Runtime2["Java180rc"] = "java-18.0-rc";
99386
- Runtime2["Java210rc"] = "java-21.0-rc";
99387
- Runtime2["Java22rc"] = "java-22-rc";
99388
- Runtime2["Java25rc"] = "java-25-rc";
99389
- Runtime2["Swift55rc"] = "swift-5.5-rc";
99390
- Runtime2["Swift58rc"] = "swift-5.8-rc";
99391
- Runtime2["Swift59rc"] = "swift-5.9-rc";
99392
- Runtime2["Swift510rc"] = "swift-5.10-rc";
99393
- Runtime2["Swift62rc"] = "swift-6.2-rc";
99394
- Runtime2["Kotlin16rc"] = "kotlin-1.6-rc";
99395
- Runtime2["Kotlin18rc"] = "kotlin-1.8-rc";
99396
- Runtime2["Kotlin19rc"] = "kotlin-1.9-rc";
99397
- Runtime2["Kotlin20rc"] = "kotlin-2.0-rc";
99398
- Runtime2["Kotlin23rc"] = "kotlin-2.3-rc";
99399
- Runtime2["Cpp17rc"] = "cpp-17-rc";
99400
- Runtime2["Cpp20rc"] = "cpp-20-rc";
99401
- Runtime2["Bun10rc"] = "bun-1.0-rc";
99402
- Runtime2["Bun11rc"] = "bun-1.1-rc";
99403
- Runtime2["Bun12rc"] = "bun-1.2-rc";
99404
- Runtime2["Bun13rc"] = "bun-1.3-rc";
99405
- Runtime2["Go123rc"] = "go-1.23-rc";
99406
- Runtime2["Go124rc"] = "go-1.24-rc";
99407
- Runtime2["Go125rc"] = "go-1.25-rc";
99408
- Runtime2["Go126rc"] = "go-1.26-rc";
99409
- Runtime2["Static1rc"] = "static-1-rc";
99410
- Runtime2["Flutter324rc"] = "flutter-3.24-rc";
99411
- Runtime2["Flutter327rc"] = "flutter-3.27-rc";
99412
- Runtime2["Flutter329rc"] = "flutter-3.29-rc";
99413
- Runtime2["Flutter332rc"] = "flutter-3.32-rc";
99414
- Runtime2["Flutter335rc"] = "flutter-3.35-rc";
99415
- Runtime2["Flutter338rc"] = "flutter-3.38-rc";
99416
99390
  })(Runtime || (Runtime = {}));
99417
99391
  var Runtimes;
99418
99392
  (function(Runtimes2) {
@@ -99502,109 +99476,28 @@ var Runtimes;
99502
99476
  Runtimes2["Flutter332"] = "flutter-3.32";
99503
99477
  Runtimes2["Flutter335"] = "flutter-3.35";
99504
99478
  Runtimes2["Flutter338"] = "flutter-3.38";
99505
- Runtimes2["Node145rc"] = "node-14.5-rc";
99506
- Runtimes2["Node160rc"] = "node-16.0-rc";
99507
- Runtimes2["Node180rc"] = "node-18.0-rc";
99508
- Runtimes2["Node190rc"] = "node-19.0-rc";
99509
- Runtimes2["Node200rc"] = "node-20.0-rc";
99510
- Runtimes2["Node210rc"] = "node-21.0-rc";
99511
- Runtimes2["Node22rc"] = "node-22-rc";
99512
- Runtimes2["Node23rc"] = "node-23-rc";
99513
- Runtimes2["Node24rc"] = "node-24-rc";
99514
- Runtimes2["Node25rc"] = "node-25-rc";
99515
- Runtimes2["Php80rc"] = "php-8.0-rc";
99516
- Runtimes2["Php81rc"] = "php-8.1-rc";
99517
- Runtimes2["Php82rc"] = "php-8.2-rc";
99518
- Runtimes2["Php83rc"] = "php-8.3-rc";
99519
- Runtimes2["Php84rc"] = "php-8.4-rc";
99520
- Runtimes2["Ruby30rc"] = "ruby-3.0-rc";
99521
- Runtimes2["Ruby31rc"] = "ruby-3.1-rc";
99522
- Runtimes2["Ruby32rc"] = "ruby-3.2-rc";
99523
- Runtimes2["Ruby33rc"] = "ruby-3.3-rc";
99524
- Runtimes2["Ruby34rc"] = "ruby-3.4-rc";
99525
- Runtimes2["Ruby40rc"] = "ruby-4.0-rc";
99526
- Runtimes2["Python38rc"] = "python-3.8-rc";
99527
- Runtimes2["Python39rc"] = "python-3.9-rc";
99528
- Runtimes2["Python310rc"] = "python-3.10-rc";
99529
- Runtimes2["Python311rc"] = "python-3.11-rc";
99530
- Runtimes2["Python312rc"] = "python-3.12-rc";
99531
- Runtimes2["Python313rc"] = "python-3.13-rc";
99532
- Runtimes2["Python314rc"] = "python-3.14-rc";
99533
- Runtimes2["Pythonml311rc"] = "python-ml-3.11-rc";
99534
- Runtimes2["Pythonml312rc"] = "python-ml-3.12-rc";
99535
- Runtimes2["Pythonml313rc"] = "python-ml-3.13-rc";
99536
- Runtimes2["Deno140rc"] = "deno-1.40-rc";
99537
- Runtimes2["Deno146rc"] = "deno-1.46-rc";
99538
- Runtimes2["Deno20rc"] = "deno-2.0-rc";
99539
- Runtimes2["Deno25rc"] = "deno-2.5-rc";
99540
- Runtimes2["Deno26rc"] = "deno-2.6-rc";
99541
- Runtimes2["Dart215rc"] = "dart-2.15-rc";
99542
- Runtimes2["Dart216rc"] = "dart-2.16-rc";
99543
- Runtimes2["Dart217rc"] = "dart-2.17-rc";
99544
- Runtimes2["Dart218rc"] = "dart-2.18-rc";
99545
- Runtimes2["Dart219rc"] = "dart-2.19-rc";
99546
- Runtimes2["Dart30rc"] = "dart-3.0-rc";
99547
- Runtimes2["Dart31rc"] = "dart-3.1-rc";
99548
- Runtimes2["Dart33rc"] = "dart-3.3-rc";
99549
- Runtimes2["Dart35rc"] = "dart-3.5-rc";
99550
- Runtimes2["Dart38rc"] = "dart-3.8-rc";
99551
- Runtimes2["Dart39rc"] = "dart-3.9-rc";
99552
- Runtimes2["Dart310rc"] = "dart-3.10-rc";
99553
- Runtimes2["Dotnet60rc"] = "dotnet-6.0-rc";
99554
- Runtimes2["Dotnet70rc"] = "dotnet-7.0-rc";
99555
- Runtimes2["Dotnet80rc"] = "dotnet-8.0-rc";
99556
- Runtimes2["Dotnet10rc"] = "dotnet-10-rc";
99557
- Runtimes2["Java80rc"] = "java-8.0-rc";
99558
- Runtimes2["Java110rc"] = "java-11.0-rc";
99559
- Runtimes2["Java170rc"] = "java-17.0-rc";
99560
- Runtimes2["Java180rc"] = "java-18.0-rc";
99561
- Runtimes2["Java210rc"] = "java-21.0-rc";
99562
- Runtimes2["Java22rc"] = "java-22-rc";
99563
- Runtimes2["Java25rc"] = "java-25-rc";
99564
- Runtimes2["Swift55rc"] = "swift-5.5-rc";
99565
- Runtimes2["Swift58rc"] = "swift-5.8-rc";
99566
- Runtimes2["Swift59rc"] = "swift-5.9-rc";
99567
- Runtimes2["Swift510rc"] = "swift-5.10-rc";
99568
- Runtimes2["Swift62rc"] = "swift-6.2-rc";
99569
- Runtimes2["Kotlin16rc"] = "kotlin-1.6-rc";
99570
- Runtimes2["Kotlin18rc"] = "kotlin-1.8-rc";
99571
- Runtimes2["Kotlin19rc"] = "kotlin-1.9-rc";
99572
- Runtimes2["Kotlin20rc"] = "kotlin-2.0-rc";
99573
- Runtimes2["Kotlin23rc"] = "kotlin-2.3-rc";
99574
- Runtimes2["Cpp17rc"] = "cpp-17-rc";
99575
- Runtimes2["Cpp20rc"] = "cpp-20-rc";
99576
- Runtimes2["Bun10rc"] = "bun-1.0-rc";
99577
- Runtimes2["Bun11rc"] = "bun-1.1-rc";
99578
- Runtimes2["Bun12rc"] = "bun-1.2-rc";
99579
- Runtimes2["Bun13rc"] = "bun-1.3-rc";
99580
- Runtimes2["Go123rc"] = "go-1.23-rc";
99581
- Runtimes2["Go124rc"] = "go-1.24-rc";
99582
- Runtimes2["Go125rc"] = "go-1.25-rc";
99583
- Runtimes2["Go126rc"] = "go-1.26-rc";
99584
- Runtimes2["Static1rc"] = "static-1-rc";
99585
- Runtimes2["Flutter324rc"] = "flutter-3.24-rc";
99586
- Runtimes2["Flutter327rc"] = "flutter-3.27-rc";
99587
- Runtimes2["Flutter329rc"] = "flutter-3.29-rc";
99588
- Runtimes2["Flutter332rc"] = "flutter-3.32-rc";
99589
- Runtimes2["Flutter335rc"] = "flutter-3.35-rc";
99590
- Runtimes2["Flutter338rc"] = "flutter-3.38-rc";
99591
99479
  })(Runtimes || (Runtimes = {}));
99592
99480
  var UseCases;
99593
99481
  (function(UseCases2) {
99594
- UseCases2["Portfolio"] = "portfolio";
99595
99482
  UseCases2["Starter"] = "starter";
99483
+ UseCases2["Databases"] = "databases";
99484
+ UseCases2["Ai"] = "ai";
99485
+ UseCases2["Messaging"] = "messaging";
99486
+ UseCases2["Utilities"] = "utilities";
99487
+ UseCases2["Devtools"] = "dev-tools";
99488
+ UseCases2["Auth"] = "auth";
99489
+ UseCases2["Portfolio"] = "portfolio";
99596
99490
  UseCases2["Events"] = "events";
99597
99491
  UseCases2["Ecommerce"] = "ecommerce";
99598
99492
  UseCases2["Documentation"] = "documentation";
99599
99493
  UseCases2["Blog"] = "blog";
99600
- UseCases2["Ai"] = "ai";
99601
99494
  UseCases2["Forms"] = "forms";
99602
99495
  UseCases2["Dashboard"] = "dashboard";
99603
99496
  })(UseCases || (UseCases = {}));
99604
99497
  var TemplateReferenceType;
99605
99498
  (function(TemplateReferenceType2) {
99606
- TemplateReferenceType2["Branch"] = "branch";
99607
99499
  TemplateReferenceType2["Commit"] = "commit";
99500
+ TemplateReferenceType2["Branch"] = "branch";
99608
99501
  TemplateReferenceType2["Tag"] = "tag";
99609
99502
  })(TemplateReferenceType || (TemplateReferenceType = {}));
99610
99503
  var VCSReferenceType;
@@ -99668,6 +99561,8 @@ var AppwriteMigrationResource;
99668
99561
  AppwriteMigrationResource2["Document"] = "document";
99669
99562
  AppwriteMigrationResource2["Attribute"] = "attribute";
99670
99563
  AppwriteMigrationResource2["Collection"] = "collection";
99564
+ AppwriteMigrationResource2["Documentsdb"] = "documentsdb";
99565
+ AppwriteMigrationResource2["Vectorsdb"] = "vectorsdb";
99671
99566
  AppwriteMigrationResource2["Bucket"] = "bucket";
99672
99567
  AppwriteMigrationResource2["File"] = "file";
99673
99568
  AppwriteMigrationResource2["Function"] = "function";
@@ -100205,92 +100100,6 @@ var BuildRuntime;
100205
100100
  BuildRuntime2["Flutter332"] = "flutter-3.32";
100206
100101
  BuildRuntime2["Flutter335"] = "flutter-3.35";
100207
100102
  BuildRuntime2["Flutter338"] = "flutter-3.38";
100208
- BuildRuntime2["Node145rc"] = "node-14.5-rc";
100209
- BuildRuntime2["Node160rc"] = "node-16.0-rc";
100210
- BuildRuntime2["Node180rc"] = "node-18.0-rc";
100211
- BuildRuntime2["Node190rc"] = "node-19.0-rc";
100212
- BuildRuntime2["Node200rc"] = "node-20.0-rc";
100213
- BuildRuntime2["Node210rc"] = "node-21.0-rc";
100214
- BuildRuntime2["Node22rc"] = "node-22-rc";
100215
- BuildRuntime2["Node23rc"] = "node-23-rc";
100216
- BuildRuntime2["Node24rc"] = "node-24-rc";
100217
- BuildRuntime2["Node25rc"] = "node-25-rc";
100218
- BuildRuntime2["Php80rc"] = "php-8.0-rc";
100219
- BuildRuntime2["Php81rc"] = "php-8.1-rc";
100220
- BuildRuntime2["Php82rc"] = "php-8.2-rc";
100221
- BuildRuntime2["Php83rc"] = "php-8.3-rc";
100222
- BuildRuntime2["Php84rc"] = "php-8.4-rc";
100223
- BuildRuntime2["Ruby30rc"] = "ruby-3.0-rc";
100224
- BuildRuntime2["Ruby31rc"] = "ruby-3.1-rc";
100225
- BuildRuntime2["Ruby32rc"] = "ruby-3.2-rc";
100226
- BuildRuntime2["Ruby33rc"] = "ruby-3.3-rc";
100227
- BuildRuntime2["Ruby34rc"] = "ruby-3.4-rc";
100228
- BuildRuntime2["Ruby40rc"] = "ruby-4.0-rc";
100229
- BuildRuntime2["Python38rc"] = "python-3.8-rc";
100230
- BuildRuntime2["Python39rc"] = "python-3.9-rc";
100231
- BuildRuntime2["Python310rc"] = "python-3.10-rc";
100232
- BuildRuntime2["Python311rc"] = "python-3.11-rc";
100233
- BuildRuntime2["Python312rc"] = "python-3.12-rc";
100234
- BuildRuntime2["Python313rc"] = "python-3.13-rc";
100235
- BuildRuntime2["Python314rc"] = "python-3.14-rc";
100236
- BuildRuntime2["Pythonml311rc"] = "python-ml-3.11-rc";
100237
- BuildRuntime2["Pythonml312rc"] = "python-ml-3.12-rc";
100238
- BuildRuntime2["Pythonml313rc"] = "python-ml-3.13-rc";
100239
- BuildRuntime2["Deno140rc"] = "deno-1.40-rc";
100240
- BuildRuntime2["Deno146rc"] = "deno-1.46-rc";
100241
- BuildRuntime2["Deno20rc"] = "deno-2.0-rc";
100242
- BuildRuntime2["Deno25rc"] = "deno-2.5-rc";
100243
- BuildRuntime2["Deno26rc"] = "deno-2.6-rc";
100244
- BuildRuntime2["Dart215rc"] = "dart-2.15-rc";
100245
- BuildRuntime2["Dart216rc"] = "dart-2.16-rc";
100246
- BuildRuntime2["Dart217rc"] = "dart-2.17-rc";
100247
- BuildRuntime2["Dart218rc"] = "dart-2.18-rc";
100248
- BuildRuntime2["Dart219rc"] = "dart-2.19-rc";
100249
- BuildRuntime2["Dart30rc"] = "dart-3.0-rc";
100250
- BuildRuntime2["Dart31rc"] = "dart-3.1-rc";
100251
- BuildRuntime2["Dart33rc"] = "dart-3.3-rc";
100252
- BuildRuntime2["Dart35rc"] = "dart-3.5-rc";
100253
- BuildRuntime2["Dart38rc"] = "dart-3.8-rc";
100254
- BuildRuntime2["Dart39rc"] = "dart-3.9-rc";
100255
- BuildRuntime2["Dart310rc"] = "dart-3.10-rc";
100256
- BuildRuntime2["Dotnet60rc"] = "dotnet-6.0-rc";
100257
- BuildRuntime2["Dotnet70rc"] = "dotnet-7.0-rc";
100258
- BuildRuntime2["Dotnet80rc"] = "dotnet-8.0-rc";
100259
- BuildRuntime2["Dotnet10rc"] = "dotnet-10-rc";
100260
- BuildRuntime2["Java80rc"] = "java-8.0-rc";
100261
- BuildRuntime2["Java110rc"] = "java-11.0-rc";
100262
- BuildRuntime2["Java170rc"] = "java-17.0-rc";
100263
- BuildRuntime2["Java180rc"] = "java-18.0-rc";
100264
- BuildRuntime2["Java210rc"] = "java-21.0-rc";
100265
- BuildRuntime2["Java22rc"] = "java-22-rc";
100266
- BuildRuntime2["Java25rc"] = "java-25-rc";
100267
- BuildRuntime2["Swift55rc"] = "swift-5.5-rc";
100268
- BuildRuntime2["Swift58rc"] = "swift-5.8-rc";
100269
- BuildRuntime2["Swift59rc"] = "swift-5.9-rc";
100270
- BuildRuntime2["Swift510rc"] = "swift-5.10-rc";
100271
- BuildRuntime2["Swift62rc"] = "swift-6.2-rc";
100272
- BuildRuntime2["Kotlin16rc"] = "kotlin-1.6-rc";
100273
- BuildRuntime2["Kotlin18rc"] = "kotlin-1.8-rc";
100274
- BuildRuntime2["Kotlin19rc"] = "kotlin-1.9-rc";
100275
- BuildRuntime2["Kotlin20rc"] = "kotlin-2.0-rc";
100276
- BuildRuntime2["Kotlin23rc"] = "kotlin-2.3-rc";
100277
- BuildRuntime2["Cpp17rc"] = "cpp-17-rc";
100278
- BuildRuntime2["Cpp20rc"] = "cpp-20-rc";
100279
- BuildRuntime2["Bun10rc"] = "bun-1.0-rc";
100280
- BuildRuntime2["Bun11rc"] = "bun-1.1-rc";
100281
- BuildRuntime2["Bun12rc"] = "bun-1.2-rc";
100282
- BuildRuntime2["Bun13rc"] = "bun-1.3-rc";
100283
- BuildRuntime2["Go123rc"] = "go-1.23-rc";
100284
- BuildRuntime2["Go124rc"] = "go-1.24-rc";
100285
- BuildRuntime2["Go125rc"] = "go-1.25-rc";
100286
- BuildRuntime2["Go126rc"] = "go-1.26-rc";
100287
- BuildRuntime2["Static1rc"] = "static-1-rc";
100288
- BuildRuntime2["Flutter324rc"] = "flutter-3.24-rc";
100289
- BuildRuntime2["Flutter327rc"] = "flutter-3.27-rc";
100290
- BuildRuntime2["Flutter329rc"] = "flutter-3.29-rc";
100291
- BuildRuntime2["Flutter332rc"] = "flutter-3.32-rc";
100292
- BuildRuntime2["Flutter335rc"] = "flutter-3.35-rc";
100293
- BuildRuntime2["Flutter338rc"] = "flutter-3.38-rc";
100294
100103
  })(BuildRuntime || (BuildRuntime = {}));
100295
100104
  var Adapter;
100296
100105
  (function(Adapter2) {
@@ -100333,6 +100142,13 @@ var ImageGravity;
100333
100142
  ImageGravity2["Bottom"] = "bottom";
100334
100143
  ImageGravity2["Bottomright"] = "bottom-right";
100335
100144
  })(ImageGravity || (ImageGravity = {}));
100145
+ var TablesDBIndexType;
100146
+ (function(TablesDBIndexType2) {
100147
+ TablesDBIndexType2["Key"] = "key";
100148
+ TablesDBIndexType2["Fulltext"] = "fulltext";
100149
+ TablesDBIndexType2["Unique"] = "unique";
100150
+ TablesDBIndexType2["Spatial"] = "spatial";
100151
+ })(TablesDBIndexType || (TablesDBIndexType = {}));
100336
100152
  var PasswordHash;
100337
100153
  (function(PasswordHash2) {
100338
100154
  PasswordHash2["Sha1"] = "sha1";
@@ -100362,6 +100178,8 @@ var DatabaseType;
100362
100178
  (function(DatabaseType2) {
100363
100179
  DatabaseType2["Legacy"] = "legacy";
100364
100180
  DatabaseType2["Tablesdb"] = "tablesdb";
100181
+ DatabaseType2["Documentsdb"] = "documentsdb";
100182
+ DatabaseType2["Vectorsdb"] = "vectorsdb";
100365
100183
  })(DatabaseType || (DatabaseType = {}));
100366
100184
  var AttributeStatus;
100367
100185
  (function(AttributeStatus2) {
@@ -100476,7 +100294,7 @@ var package_default = {
100476
100294
  type: "module",
100477
100295
  homepage: "https://appwrite.io/support",
100478
100296
  description: "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
100479
- version: "16.0.0",
100297
+ version: "17.0.0",
100480
100298
  license: "BSD-3-Clause",
100481
100299
  main: "dist/index.cjs",
100482
100300
  module: "dist/index.js",
@@ -100782,7 +100600,7 @@ async function packageDirectory(dirPath) {
100782
100600
  import_os3.default.tmpdir(),
100783
100601
  `appwrite-deploy-${Date.now()}.tar.gz`
100784
100602
  );
100785
- await Pn(
100603
+ await Zn(
100786
100604
  {
100787
100605
  gzip: true,
100788
100606
  file: tempFile,
@@ -100851,7 +100669,7 @@ async function downloadDeploymentCode(params) {
100851
100669
  `Failed to write deployment archive to "${compressedFileName}": ${message}`
100852
100670
  );
100853
100671
  }
100854
- ao({
100672
+ co({
100855
100673
  sync: true,
100856
100674
  cwd: resourcePath,
100857
100675
  file: compressedFileName,
@@ -101058,12 +100876,16 @@ var questionsInitProject = [
101058
100876
  choices: async () => {
101059
100877
  const client = await sdkForConsole(true);
101060
100878
  const { teams } = isCloud() ? await paginate(
101061
- async (opts = {}) => (await getOrganizationsService(opts.sdk)).list(),
100879
+ async (args) => (await getOrganizationsService(args.sdk)).list({
100880
+ queries: args.queries
100881
+ }),
101062
100882
  { sdk: client },
101063
100883
  100,
101064
100884
  "teams"
101065
100885
  ) : await paginate(
101066
- async (opts = {}) => (await getTeamsService(opts.sdk)).list(),
100886
+ async (args) => (await getTeamsService(args.sdk)).list({
100887
+ queries: args.queries
100888
+ }),
101067
100889
  { parseOutput: false, sdk: client },
101068
100890
  100,
101069
100891
  "teams"
@@ -101111,7 +100933,7 @@ var questionsInitProject = [
101111
100933
  JSON.stringify({ method: "orderDesc", attribute: "$id" })
101112
100934
  ];
101113
100935
  const { projects } = await paginate(
101114
- async () => (await getProjectsService()).list(queries),
100936
+ async (args) => (await getProjectsService()).list(args.queries),
101115
100937
  { parseOutput: false },
101116
100938
  100,
101117
100939
  "projects",
@@ -101191,7 +101013,7 @@ var questionsPullFunctions = [
101191
101013
  validate: (value) => validateRequired("function", value),
101192
101014
  choices: async () => {
101193
101015
  const { functions } = await paginate(
101194
- async () => (await getFunctionsService()).list(),
101016
+ async (args) => (await getFunctionsService()).list(args.queries),
101195
101017
  { parseOutput: false },
101196
101018
  100,
101197
101019
  "functions"
@@ -101230,7 +101052,7 @@ var questionsPullSites = [
101230
101052
  validate: (value) => validateRequired("site", value),
101231
101053
  choices: async () => {
101232
101054
  const { sites } = await paginate(
101233
- async () => (await getSitesService()).list(),
101055
+ async (args) => (await getSitesService()).list(args.queries),
101234
101056
  { parseOutput: false },
101235
101057
  100,
101236
101058
  "sites"
@@ -103178,18 +103000,9 @@ var Push = class {
103178
103000
  const functionsServiceForVars = await getFunctionsService(
103179
103001
  this.projectClient
103180
103002
  );
103181
- const { variables } = await paginate(
103182
- async (args) => {
103183
- return await functionsServiceForVars.listVariables({
103184
- functionId: args.functionId
103185
- });
103186
- },
103187
- {
103188
- functionId: func["$id"]
103189
- },
103190
- 100,
103191
- "variables"
103192
- );
103003
+ const { variables } = await functionsServiceForVars.listVariables({
103004
+ functionId: func["$id"]
103005
+ });
103193
103006
  await Promise.all(
103194
103007
  variables.map(async (variable) => {
103195
103008
  const functionsServiceDel = await getFunctionsService(
@@ -103483,18 +103296,9 @@ var Push = class {
103483
103296
  if (withVariables) {
103484
103297
  updaterRow.update({ status: "Creating variables" }).replaceSpinner(SPINNER_DOTS);
103485
103298
  const sitesServiceForVars = await getSitesService(this.projectClient);
103486
- const { variables } = await paginate(
103487
- async (args) => {
103488
- return await sitesServiceForVars.listVariables({
103489
- siteId: args.siteId
103490
- });
103491
- },
103492
- {
103493
- siteId: site["$id"]
103494
- },
103495
- 100,
103496
- "variables"
103497
- );
103299
+ const { variables } = await sitesServiceForVars.listVariables({
103300
+ siteId: site["$id"]
103301
+ });
103498
103302
  await Promise.all(
103499
103303
  variables.map(async (variable) => {
103500
103304
  const sitesServiceDel = await getSitesService(this.projectClient);