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.js CHANGED
@@ -11205,16 +11205,16 @@ var require_share = __commonJS({
11205
11205
  };
11206
11206
  }
11207
11207
  exports.share = share;
11208
- function handleReset(reset, on2) {
11208
+ function handleReset(reset, on) {
11209
11209
  var args = [];
11210
11210
  for (var _i2 = 2; _i2 < arguments.length; _i2++) {
11211
11211
  args[_i2 - 2] = arguments[_i2];
11212
11212
  }
11213
- if (on2 === true) {
11213
+ if (on === true) {
11214
11214
  reset();
11215
11215
  return;
11216
11216
  }
11217
- if (on2 === false) {
11217
+ if (on === false) {
11218
11218
  return;
11219
11219
  }
11220
11220
  var onSubscriber = new Subscriber_1.SafeSubscriber({
@@ -11223,7 +11223,7 @@ var require_share = __commonJS({
11223
11223
  reset();
11224
11224
  }
11225
11225
  });
11226
- return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
11226
+ return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
11227
11227
  }
11228
11228
  }
11229
11229
  });
@@ -55205,12 +55205,12 @@ var require_utils4 = __commonJS({
55205
55205
  return str;
55206
55206
  }
55207
55207
  var codeCache = {};
55208
- function addToCodeCache(name, on2, off) {
55209
- on2 = "\x1B[" + on2 + "m";
55208
+ function addToCodeCache(name, on, off) {
55209
+ on = "\x1B[" + on + "m";
55210
55210
  off = "\x1B[" + off + "m";
55211
- codeCache[on2] = { set: name, to: true };
55211
+ codeCache[on] = { set: name, to: true };
55212
55212
  codeCache[off] = { set: name, to: false };
55213
- codeCache[name] = { on: on2, off };
55213
+ codeCache[name] = { on, off };
55214
55214
  }
55215
55215
  addToCodeCache("bold", 1, 22);
55216
55216
  addToCodeCache("italics", 3, 23);
@@ -62727,7 +62727,7 @@ var id_default = ID;
62727
62727
  // lib/constants.ts
62728
62728
  var SDK_TITLE = "Appwrite";
62729
62729
  var SDK_TITLE_LOWER = "appwrite";
62730
- var SDK_VERSION = "16.0.0";
62730
+ var SDK_VERSION = "17.0.0";
62731
62731
  var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
62732
62732
  var EXECUTABLE_NAME = "appwrite";
62733
62733
  var NPM_PACKAGE_NAME = "appwrite-cli";
@@ -78128,48 +78128,48 @@ import os4 from "os";
78128
78128
  import path from "path";
78129
78129
 
78130
78130
  // node_modules/tar/dist/esm/index.min.js
78131
- import Ur from "events";
78131
+ import Kr from "events";
78132
78132
  import I from "fs";
78133
78133
  import { EventEmitter as Ti } from "node:events";
78134
78134
  import Ns from "node:stream";
78135
- import { StringDecoder as Dr } from "node:string_decoder";
78135
+ import { StringDecoder as Mr } from "node:string_decoder";
78136
78136
  import nr from "node:path";
78137
78137
  import Vt from "node:fs";
78138
- import { dirname as Rn, parse as bn } from "path";
78139
- import { EventEmitter as En } from "events";
78138
+ import { dirname as xn, parse as Ln } from "path";
78139
+ import { EventEmitter as _n } from "events";
78140
78140
  import Mi from "assert";
78141
78141
  import { Buffer as gt } from "buffer";
78142
78142
  import * as ks from "zlib";
78143
- import Zr from "zlib";
78143
+ import qr from "zlib";
78144
78144
  import { posix as Zt } from "node:path";
78145
- import { basename as fn } from "node:path";
78145
+ import { basename as wn } from "node:path";
78146
78146
  import fi from "fs";
78147
78147
  import $ from "fs";
78148
78148
  import $s from "path";
78149
- import { win32 as Tn } from "node:path";
78149
+ import { win32 as In } from "node:path";
78150
78150
  import sr from "path";
78151
- import xr from "node:fs";
78152
- import eo from "node:assert";
78153
- import { randomBytes as Tr } from "node:crypto";
78151
+ import Cr from "node:fs";
78152
+ import so from "node:assert";
78153
+ import { randomBytes as Ir } from "node:crypto";
78154
78154
  import u from "node:fs";
78155
78155
  import R from "node:path";
78156
- import ar from "fs";
78156
+ import cr from "fs";
78157
78157
  import mi from "node:fs";
78158
78158
  import Ee from "node:path";
78159
78159
  import k from "node:fs";
78160
- import Xn from "node:fs/promises";
78160
+ import jn from "node:fs/promises";
78161
78161
  import pi from "node:path";
78162
- import { join as pr } from "node:path";
78162
+ import { join as br } from "node:path";
78163
78163
  import v from "node:fs";
78164
- import Lr from "node:path";
78165
- var Nr = Object.defineProperty;
78166
- var Ar = (s3, t) => {
78167
- for (var e in t) Nr(s3, e, { get: t[e], enumerable: true });
78164
+ import Fr from "node:path";
78165
+ var kr = Object.defineProperty;
78166
+ var vr = (s3, t) => {
78167
+ for (var e in t) kr(s3, e, { get: t[e], enumerable: true });
78168
78168
  };
78169
78169
  var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
78170
- var Ir = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof Ns || Cr(s3) || Fr(s3));
78171
- var Cr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.pipe == "function" && s3.pipe !== Ns.Writable.prototype.pipe;
78172
- var Fr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.write == "function" && typeof s3.end == "function";
78170
+ var Br = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof Ns || Pr(s3) || zr(s3));
78171
+ var Pr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.pipe == "function" && s3.pipe !== Ns.Writable.prototype.pipe;
78172
+ var zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.write == "function" && typeof s3.end == "function";
78173
78173
  var q = /* @__PURE__ */ Symbol("EOF");
78174
78174
  var j = /* @__PURE__ */ Symbol("maybeEmitEnd");
78175
78175
  var rt = /* @__PURE__ */ Symbol("emittedEnd");
@@ -78202,10 +78202,10 @@ var Jt = /* @__PURE__ */ Symbol("signal");
78202
78202
  var yt = /* @__PURE__ */ Symbol("dataListeners");
78203
78203
  var C = /* @__PURE__ */ Symbol("discarded");
78204
78204
  var te = (s3) => Promise.resolve().then(s3);
78205
- var kr = (s3) => s3();
78206
- var vr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
78207
- var Mr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
78208
- var Br = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
78205
+ var Ur = (s3) => s3();
78206
+ var Hr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
78207
+ var Wr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
78208
+ var Gr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
78209
78209
  var Ce = class {
78210
78210
  src;
78211
78211
  dest;
@@ -78231,8 +78231,8 @@ var Oi = class extends Ce {
78231
78231
  super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
78232
78232
  }
78233
78233
  };
78234
- var Pr = (s3) => !!s3.objectMode;
78235
- var zr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
78234
+ var Zr = (s3) => !!s3.objectMode;
78235
+ var Yr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
78236
78236
  var D = class extends Ti {
78237
78237
  [b] = false;
78238
78238
  [Qt] = false;
@@ -78258,7 +78258,7 @@ var D = class extends Ti {
78258
78258
  constructor(...t) {
78259
78259
  let e = t[0] || {};
78260
78260
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
78261
- 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 Dr(this[z3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
78261
+ 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 Mr(this[z3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
78262
78262
  let { signal: i } = e;
78263
78263
  i && (this[Jt] = i, i.aborted ? this[gi]() : i.addEventListener("abort", () => this[gi]()));
78264
78264
  }
@@ -78299,10 +78299,10 @@ var D = class extends Ti {
78299
78299
  if (this[q]) throw new Error("write after end");
78300
78300
  if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
78301
78301
  typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
78302
- let r = this[Z] ? te : kr;
78302
+ let r = this[Z] ? te : Ur;
78303
78303
  if (!this[L] && !Buffer.isBuffer(t)) {
78304
- if (Br(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
78305
- else if (Mr(t)) t = Buffer.from(t);
78304
+ if (Gr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
78305
+ else if (Wr(t)) t = Buffer.from(t);
78306
78306
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
78307
78307
  }
78308
78308
  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]);
@@ -78375,7 +78375,7 @@ var D = class extends Ti {
78375
78375
  let i = super.on(t, e);
78376
78376
  if (t === "data") this[C] = false, this[yt]++, !this[A].length && !this[b] && this[Bt]();
78377
78377
  else if (t === "readable" && this[g] !== 0) super.emit("readable");
78378
- else if (vr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
78378
+ else if (Hr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
78379
78379
  else if (t === "error" && this[jt]) {
78380
78380
  let r = e;
78381
78381
  this[Z] ? te(() => r.call(this, this[jt])) : r.call(this, this[jt]);
@@ -78502,10 +78502,10 @@ var D = class extends Ti {
78502
78502
  return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
78503
78503
  }
78504
78504
  static get isStream() {
78505
- return Ir;
78505
+ return Br;
78506
78506
  }
78507
78507
  };
78508
- var Hr = I.writev;
78508
+ var Vr = I.writev;
78509
78509
  var ot = /* @__PURE__ */ Symbol("_autoClose");
78510
78510
  var H = /* @__PURE__ */ Symbol("_close");
78511
78511
  var ee = /* @__PURE__ */ Symbol("_ended");
@@ -78638,7 +78638,7 @@ var Me = class extends _t {
78638
78638
  }
78639
78639
  }
78640
78640
  };
78641
- var tt = class extends Ur {
78641
+ var tt = class extends Kr {
78642
78642
  readable = false;
78643
78643
  writable = true;
78644
78644
  [bt] = false;
@@ -78698,7 +78698,7 @@ var tt = class extends Ur {
78698
78698
  else if (this[Y].length === 1) this[ke](this[Y].pop());
78699
78699
  else {
78700
78700
  let t = this[Y];
78701
- this[Y] = [], Hr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
78701
+ this[Y] = [], Vr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
78702
78702
  }
78703
78703
  }
78704
78704
  [H]() {
@@ -78738,21 +78738,21 @@ var Wt = class extends tt {
78738
78738
  }
78739
78739
  }
78740
78740
  };
78741
- 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"]]);
78741
+ 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"]]);
78742
78742
  var As = (s3) => !!s3.sync && !!s3.file;
78743
78743
  var Ds = (s3) => !s3.sync && !!s3.file;
78744
78744
  var Is = (s3) => !!s3.sync && !s3.file;
78745
78745
  var Cs = (s3) => !s3.sync && !s3.file;
78746
78746
  var Fs = (s3) => !!s3.file;
78747
- var Gr = (s3) => {
78748
- let t = Wr.get(s3);
78747
+ var Xr = (s3) => {
78748
+ let t = $r.get(s3);
78749
78749
  return t || s3;
78750
78750
  };
78751
78751
  var re = (s3 = {}) => {
78752
78752
  if (!s3) return {};
78753
78753
  let t = {};
78754
78754
  for (let [e, i] of Object.entries(s3)) {
78755
- let r = Gr(e);
78755
+ let r = Xr(e);
78756
78756
  t[r] = i;
78757
78757
  }
78758
78758
  return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
@@ -78775,13 +78775,13 @@ var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
78775
78775
  }
78776
78776
  throw new Error("impossible options??");
78777
78777
  }, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
78778
- var Yr = Zr.constants || { ZLIB_VERNUM: 4736 };
78779
- 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));
78780
- var Kr = gt.concat;
78778
+ var jr = qr.constants || { ZLIB_VERNUM: 4736 };
78779
+ 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));
78780
+ var Qr = gt.concat;
78781
78781
  var vs = Object.getOwnPropertyDescriptor(gt, "concat");
78782
- var Vr = (s3) => s3;
78782
+ var Jr = (s3) => s3;
78783
78783
  var ki = vs?.writable === true || vs?.set !== void 0 ? (s3) => {
78784
- gt.concat = s3 ? Vr : Kr;
78784
+ gt.concat = s3 ? Jr : Qr;
78785
78785
  } : (s3) => {
78786
78786
  };
78787
78787
  var Ot = /* @__PURE__ */ Symbol("_superWrite");
@@ -78942,15 +78942,15 @@ var Ye = class extends Ge {
78942
78942
  }
78943
78943
  };
78944
78944
  var Ms = (s3, t) => {
78945
- if (Number.isSafeInteger(s3)) s3 < 0 ? qr(s3, t) : Xr(s3, t);
78945
+ if (Number.isSafeInteger(s3)) s3 < 0 ? sn(s3, t) : en(s3, t);
78946
78946
  else throw Error("cannot encode number outside of javascript safe integer range");
78947
78947
  return t;
78948
78948
  };
78949
- var Xr = (s3, t) => {
78949
+ var en = (s3, t) => {
78950
78950
  t[0] = 128;
78951
78951
  for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
78952
78952
  };
78953
- var qr = (s3, t) => {
78953
+ var sn = (s3, t) => {
78954
78954
  t[0] = 255;
78955
78955
  var e = false;
78956
78956
  s3 = s3 * -1;
@@ -78960,19 +78960,19 @@ var qr = (s3, t) => {
78960
78960
  }
78961
78961
  };
78962
78962
  var Bs = (s3) => {
78963
- let t = s3[0], e = t === 128 ? Qr(s3.subarray(1, s3.length)) : t === 255 ? jr(s3) : null;
78963
+ let t = s3[0], e = t === 128 ? nn(s3.subarray(1, s3.length)) : t === 255 ? rn(s3) : null;
78964
78964
  if (e === null) throw Error("invalid base256 encoding");
78965
78965
  if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
78966
78966
  return e;
78967
78967
  };
78968
- var jr = (s3) => {
78968
+ var rn = (s3) => {
78969
78969
  for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
78970
78970
  var n = Number(s3[r]), o;
78971
78971
  i ? o = Ps(n) : n === 0 ? o = n : (i = true, o = zs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
78972
78972
  }
78973
78973
  return e;
78974
78974
  };
78975
- var Qr = (s3) => {
78975
+ var nn = (s3) => {
78976
78976
  for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
78977
78977
  var r = Number(s3[i]);
78978
78978
  r !== 0 && (e += r * Math.pow(256, t - i - 1));
@@ -78982,9 +78982,9 @@ var Qr = (s3) => {
78982
78982
  var Ps = (s3) => (255 ^ s3) & 255;
78983
78983
  var zs = (s3) => (255 ^ s3) + 1 & 255;
78984
78984
  var Bi = {};
78985
- Ar(Bi, { code: () => Ke, isCode: () => oe, isName: () => tn, name: () => he });
78985
+ vr(Bi, { code: () => Ke, isCode: () => oe, isName: () => hn, name: () => he });
78986
78986
  var oe = (s3) => he.has(s3);
78987
- var tn = (s3) => Ke.has(s3);
78987
+ var hn = (s3) => Ke.has(s3);
78988
78988
  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"]]);
78989
78989
  var Ke = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
78990
78990
  var F = class {
@@ -79033,7 +79033,7 @@ var F = class {
79033
79033
  }
79034
79034
  encode(t, e = 0) {
79035
79035
  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");
79036
- let i = this.ctime || this.atime ? 130 : 155, r = en(this.path || "", i), n = r[0], o = r[1];
79036
+ let i = this.ctime || this.atime ? 130 : 155, r = an(this.path || "", i), n = r[0], o = r[1];
79037
79037
  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);
79038
79038
  let h = 256;
79039
79039
  for (let a = e; a < e + 148; a++) h += t[a];
@@ -79053,7 +79053,7 @@ var F = class {
79053
79053
  else throw new TypeError("invalid entry type: " + t);
79054
79054
  }
79055
79055
  };
79056
- var en = (s3, t) => {
79056
+ var an = (s3, t) => {
79057
79057
  let i = s3, r = "", n, o = Zt.parse(s3).root || ".";
79058
79058
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
79059
79059
  else {
@@ -79066,19 +79066,19 @@ var en = (s3, t) => {
79066
79066
  return n;
79067
79067
  };
79068
79068
  var Tt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
79069
- var Pi = (s3, t, e) => sn(at(s3, t, e));
79070
- var sn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
79071
- var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : nn(s3, t, e);
79072
- var rn = (s3) => isNaN(s3) ? void 0 : s3;
79073
- var nn = (s3, t, e) => rn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
79074
- var on = { 12: 8589934591, 8: 2097151 };
79075
- 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);
79076
- var hn = (s3, t, e, i) => s3.write(an(i, e), t, e, "ascii");
79077
- var an = (s3, t) => ln(Math.floor(s3).toString(8), t);
79078
- var ln = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
79069
+ var Pi = (s3, t, e) => ln(at(s3, t, e));
79070
+ var ln = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
79071
+ var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : fn(s3, t, e);
79072
+ var cn = (s3) => isNaN(s3) ? void 0 : s3;
79073
+ var fn = (s3, t, e) => cn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
79074
+ var dn = { 12: 8589934591, 8: 2097151 };
79075
+ 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);
79076
+ var un = (s3, t, e, i) => s3.write(mn(i, e), t, e, "ascii");
79077
+ var mn = (s3, t) => pn(Math.floor(s3).toString(8), t);
79078
+ var pn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
79079
79079
  var zi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
79080
- var cn = new Array(156).join("\0");
79081
- 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);
79080
+ var En = new Array(156).join("\0");
79081
+ 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);
79082
79082
  var ct = class s {
79083
79083
  atime;
79084
79084
  mtime;
@@ -79105,7 +79105,7 @@ var ct = class s {
79105
79105
  if (t === "") return Buffer.allocUnsafe(0);
79106
79106
  let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
79107
79107
  for (let n = 0; n < 512; n++) r[n] = 0;
79108
- new F({ path: ("PaxHeader/" + fn(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
79108
+ new F({ path: ("PaxHeader/" + wn(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
79109
79109
  for (let n = e + 512; n < r.length; n++) r[n] = 0;
79110
79110
  return r;
79111
79111
  }
@@ -79119,13 +79119,13 @@ var ct = class s {
79119
79119
  return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
79120
79120
  }
79121
79121
  static parse(t, e, i = false) {
79122
- return new s(dn(un(t), e), i);
79122
+ return new s(Sn(yn(t), e), i);
79123
79123
  }
79124
79124
  };
79125
- var dn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
79126
- var un = (s3) => s3.replace(/\n$/, "").split(`
79127
- `).reduce(mn, /* @__PURE__ */ Object.create(null));
79128
- var mn = (s3, t) => {
79125
+ var Sn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
79126
+ var yn = (s3) => s3.replace(/\n$/, "").split(`
79127
+ `).reduce(Rn, /* @__PURE__ */ Object.create(null));
79128
+ var Rn = (s3, t) => {
79129
79129
  let e = parseInt(t, 10);
79130
79130
  if (e !== Buffer.byteLength(t) + 1) return s3;
79131
79131
  t = t.slice((e + " ").length);
@@ -79134,8 +79134,8 @@ var mn = (s3, t) => {
79134
79134
  let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
79135
79135
  return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
79136
79136
  };
79137
- var pn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
79138
- var f = pn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
79137
+ var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
79138
+ var f = bn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
79139
79139
  var Yt = class extends D {
79140
79140
  extended;
79141
79141
  globalExtended;
@@ -79203,10 +79203,10 @@ var Yt = class extends D {
79203
79203
  var Lt = (s3, t, e, i = {}) => {
79204
79204
  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));
79205
79205
  };
79206
- var wn = 1024 * 1024;
79206
+ var gn = 1024 * 1024;
79207
79207
  var Zi = Buffer.from([31, 139]);
79208
79208
  var Yi = Buffer.from([40, 181, 47, 253]);
79209
- var Sn = Math.max(Zi.length, Yi.length);
79209
+ var On = Math.max(Zi.length, Yi.length);
79210
79210
  var B = /* @__PURE__ */ Symbol("state");
79211
79211
  var Nt = /* @__PURE__ */ Symbol("writeEntry");
79212
79212
  var et = /* @__PURE__ */ Symbol("readEntry");
@@ -79237,8 +79237,8 @@ var Dt = /* @__PURE__ */ Symbol("sawValidEntry");
79237
79237
  var je = /* @__PURE__ */ Symbol("sawNullBlock");
79238
79238
  var Qe = /* @__PURE__ */ Symbol("sawEOF");
79239
79239
  var Zs = /* @__PURE__ */ Symbol("closeStream");
79240
- var yn = () => true;
79241
- var st = class extends En {
79240
+ var Tn = () => true;
79241
+ var st = class extends _n {
79242
79242
  file;
79243
79243
  strict;
79244
79244
  maxMetaEntrySize;
@@ -79269,7 +79269,7 @@ var st = class extends En {
79269
79269
  (this[B] === "begin" || this[Dt] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
79270
79270
  }), t.ondone ? this.on(qe, t.ondone) : this.on(qe, () => {
79271
79271
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
79272
- }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || wn, this.filter = typeof t.filter == "function" ? t.filter : yn;
79272
+ }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || gn, this.filter = typeof t.filter == "function" ? t.filter : Tn;
79273
79273
  let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
79274
79274
  this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
79275
79275
  let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
@@ -79369,7 +79369,7 @@ var st = class extends En {
79369
79369
  write(t, e, i) {
79370
79370
  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;
79371
79371
  if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
79372
- if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < Sn) return this[p] = t, i?.(), true;
79372
+ if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < On) return this[p] = t, i?.(), true;
79373
79373
  for (let a = 0; this[y] === void 0 && a < Zi.length; a++) t[a] !== Zi[a] && (this[y] = false);
79374
79374
  let o = false;
79375
79375
  if (this[y] === false && this.zstd !== false) {
@@ -79459,7 +79459,7 @@ var mt = (s3) => {
79459
79459
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
79460
79460
  return e === -1 ? s3 : s3.slice(0, e);
79461
79461
  };
79462
- var _n = (s3) => {
79462
+ var Nn = (s3) => {
79463
79463
  let t = s3.onReadEntry;
79464
79464
  s3.onReadEntry = t ? (e) => {
79465
79465
  t(e), e.resume();
@@ -79467,17 +79467,17 @@ var _n = (s3) => {
79467
79467
  };
79468
79468
  var Ki = (s3, t) => {
79469
79469
  let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
79470
- let h = o || bn(n).root || ".", a;
79470
+ let h = o || Ln(n).root || ".", a;
79471
79471
  if (n === h) a = false;
79472
79472
  else {
79473
79473
  let l = e.get(n);
79474
- a = l !== void 0 ? l : r(Rn(n), h);
79474
+ a = l !== void 0 ? l : r(xn(n), h);
79475
79475
  }
79476
79476
  return e.set(n, a), a;
79477
79477
  };
79478
79478
  s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
79479
79479
  };
79480
- var gn = (s3) => {
79480
+ var An = (s3) => {
79481
79481
  let t = new st(s3), e = s3.file, i;
79482
79482
  try {
79483
79483
  i = Vt.openSync(e, "r");
@@ -79501,7 +79501,7 @@ var gn = (s3) => {
79501
79501
  }
79502
79502
  }
79503
79503
  };
79504
- var On = (s3, t) => {
79504
+ var Dn = (s3, t) => {
79505
79505
  let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
79506
79506
  return new Promise((o, h) => {
79507
79507
  e.on("error", h), e.on("end", o), Vt.stat(r, (a, l) => {
@@ -79513,14 +79513,14 @@ var On = (s3, t) => {
79513
79513
  });
79514
79514
  });
79515
79515
  };
79516
- var It = K(gn, On, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
79517
- t?.length && Ki(s3, t), s3.noResume || _n(s3);
79516
+ var It = K(An, Dn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
79517
+ t?.length && Ki(s3, t), s3.noResume || Nn(s3);
79518
79518
  });
79519
79519
  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);
79520
- var { isAbsolute: xn, parse: Ys } = Tn;
79520
+ var { isAbsolute: Cn, parse: Ys } = In;
79521
79521
  var ce = (s3) => {
79522
79522
  let t = "", e = Ys(s3);
79523
- for (; xn(s3) || e.root; ) {
79523
+ for (; Cn(s3) || e.root; ) {
79524
79524
  let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
79525
79525
  s3 = s3.slice(i.length), t += i, e = Ys(s3);
79526
79526
  }
@@ -79528,12 +79528,12 @@ var ce = (s3) => {
79528
79528
  };
79529
79529
  var Je = ["|", "<", ">", "?", ":"];
79530
79530
  var $i = Je.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
79531
- var Ln = new Map(Je.map((s3, t) => [s3, $i[t]]));
79532
- var Nn = new Map($i.map((s3, t) => [s3, Je[t]]));
79533
- var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Ln.get(e)), s3);
79534
- var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(Nn.get(e)), s3);
79531
+ var Fn = new Map(Je.map((s3, t) => [s3, $i[t]]));
79532
+ var kn = new Map($i.map((s3, t) => [s3, Je[t]]));
79533
+ var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Fn.get(e)), s3);
79534
+ var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(kn.get(e)), s3);
79535
79535
  var Js = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
79536
- var An = 16 * 1024 * 1024;
79536
+ var vn = 16 * 1024 * 1024;
79537
79537
  var Xs = /* @__PURE__ */ Symbol("process");
79538
79538
  var qs = /* @__PURE__ */ Symbol("file");
79539
79539
  var js = /* @__PURE__ */ Symbol("directory");
@@ -79585,7 +79585,7 @@ var de = class extends D {
79585
79585
  #t = false;
79586
79586
  constructor(t, e = {}) {
79587
79587
  let i = re(e);
79588
- 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);
79588
+ 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);
79589
79589
  let r = false;
79590
79590
  if (!this.preservePaths) {
79591
79591
  let [o, h] = ce(this.path);
@@ -79608,7 +79608,7 @@ var de = class extends D {
79608
79608
  });
79609
79609
  }
79610
79610
  [ei](t) {
79611
- this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Dn(t), this.emit("stat", t), this[Xs]();
79611
+ this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Mn(t), this.emit("stat", t), this[Xs]();
79612
79612
  }
79613
79613
  [Xs]() {
79614
79614
  switch (this.type) {
@@ -79814,7 +79814,7 @@ var ri = class extends D {
79814
79814
  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;
79815
79815
  }
79816
79816
  };
79817
- var Dn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
79817
+ var Mn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
79818
79818
  var ni = class s2 {
79819
79819
  tail;
79820
79820
  head;
@@ -79846,11 +79846,11 @@ var ni = class s2 {
79846
79846
  t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
79847
79847
  }
79848
79848
  push(...t) {
79849
- for (let e = 0, i = t.length; e < i; e++) Cn(this, t[e]);
79849
+ for (let e = 0, i = t.length; e < i; e++) Pn(this, t[e]);
79850
79850
  return this.length;
79851
79851
  }
79852
79852
  unshift(...t) {
79853
- for (var e = 0, i = t.length; e < i; e++) Fn(this, t[e]);
79853
+ for (var e = 0, i = t.length; e < i; e++) zn(this, t[e]);
79854
79854
  return this.length;
79855
79855
  }
79856
79856
  pop() {
@@ -79946,7 +79946,7 @@ var ni = class s2 {
79946
79946
  let n = [];
79947
79947
  for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
79948
79948
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
79949
- for (let o of i) r = In(this, r, o);
79949
+ for (let o of i) r = Bn(this, r, o);
79950
79950
  return n;
79951
79951
  }
79952
79952
  reverse() {
@@ -79958,14 +79958,14 @@ var ni = class s2 {
79958
79958
  return this.head = e, this.tail = t, this;
79959
79959
  }
79960
79960
  };
79961
- function In(s3, t, e) {
79961
+ function Bn(s3, t, e) {
79962
79962
  let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
79963
79963
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
79964
79964
  }
79965
- function Cn(s3, t) {
79965
+ function Pn(s3, t) {
79966
79966
  s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
79967
79967
  }
79968
- function Fn(s3, t) {
79968
+ function zn(s3, t) {
79969
79969
  s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
79970
79970
  }
79971
79971
  var ue = class {
@@ -80194,11 +80194,11 @@ var kt = class extends Et {
80194
80194
  });
80195
80195
  }
80196
80196
  };
80197
- var kn = (s3, t) => {
80197
+ var Un = (s3, t) => {
80198
80198
  let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
80199
80199
  e.pipe(i), or(e, t);
80200
80200
  };
80201
- var vn = (s3, t) => {
80201
+ var Hn = (s3, t) => {
80202
80202
  let e = new Et(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
80203
80203
  e.pipe(i);
80204
80204
  let r = new Promise((n, o) => {
@@ -80217,25 +80217,26 @@ var hr = async (s3, t) => {
80217
80217
  } }) : s3.add(e);
80218
80218
  s3.end();
80219
80219
  };
80220
- var Mn = (s3, t) => {
80220
+ var Wn = (s3, t) => {
80221
80221
  let e = new kt(s3);
80222
80222
  return or(e, t), e;
80223
80223
  };
80224
- var Bn = (s3, t) => {
80224
+ var Gn = (s3, t) => {
80225
80225
  let e = new Et(s3);
80226
80226
  return hr(e, t).catch((i) => e.emit("error", i)), e;
80227
80227
  };
80228
- var Pn = K(kn, vn, Mn, Bn, (s3, t) => {
80228
+ var Zn = K(Un, Hn, Wn, Gn, (s3, t) => {
80229
80229
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
80230
80230
  });
80231
- var zn = process.env.__FAKE_PLATFORM__ || process.platform;
80232
- var Un = zn === "win32";
80233
- var { O_CREAT: Hn, O_TRUNC: Wn, O_WRONLY: Gn } = ar.constants;
80234
- var lr = Number(process.env.__FAKE_FS_O_FILENAME__) || ar.constants.UV_FS_O_FILEMAP || 0;
80235
- var Zn = Un && !!lr;
80236
- var Yn = 512 * 1024;
80237
- var Kn = lr | Wn | Hn | Gn;
80238
- var cs = Zn ? (s3) => s3 < Yn ? Kn : "w" : () => "w";
80231
+ var Yn = process.env.__FAKE_PLATFORM__ || process.platform;
80232
+ var fr = Yn === "win32";
80233
+ var { O_CREAT: dr, O_NOFOLLOW: ar, O_TRUNC: ur, O_WRONLY: mr } = cr.constants;
80234
+ var pr = Number(process.env.__FAKE_FS_O_FILENAME__) || cr.constants.UV_FS_O_FILEMAP || 0;
80235
+ var Kn = fr && !!pr;
80236
+ var Vn = 512 * 1024;
80237
+ var $n = pr | ur | dr | mr;
80238
+ var lr = !fr && typeof ar == "number" ? ar | ur | dr | mr : null;
80239
+ var cs = lr !== null ? () => lr : Kn ? (s3) => s3 < Vn ? $n : "w" : () => "w";
80239
80240
  var fs2 = (s3, t, e) => {
80240
80241
  try {
80241
80242
  return mi.lchownSync(s3, t, e);
@@ -80248,7 +80249,7 @@ var ui = (s3, t, e, i) => {
80248
80249
  i(r && r?.code !== "ENOENT" ? r : null);
80249
80250
  });
80250
80251
  };
80251
- var Vn = (s3, t, e, i, r) => {
80252
+ var Xn = (s3, t, e, i, r) => {
80252
80253
  if (t.isDirectory()) ds(Ee.resolve(s3, t.name), e, i, (n) => {
80253
80254
  if (n) return r(n);
80254
80255
  let o = Ee.resolve(s3, t.name);
@@ -80272,10 +80273,10 @@ var ds = (s3, t, e, i) => {
80272
80273
  if (--o === 0) return ui(s3, t, e, i);
80273
80274
  }
80274
80275
  };
80275
- for (let l of n) Vn(s3, l, t, e, a);
80276
+ for (let l of n) Xn(s3, l, t, e, a);
80276
80277
  });
80277
80278
  };
80278
- var $n = (s3, t, e, i) => {
80279
+ var qn = (s3, t, e, i) => {
80279
80280
  t.isDirectory() && us(Ee.resolve(s3, t.name), e, i), fs2(Ee.resolve(s3, t.name), e, i);
80280
80281
  };
80281
80282
  var us = (s3, t, e) => {
@@ -80288,7 +80289,7 @@ var us = (s3, t, e) => {
80288
80289
  if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return fs2(s3, t, e);
80289
80290
  throw n;
80290
80291
  }
80291
- for (let r of i) $n(s3, r, t, e);
80292
+ for (let r of i) qn(s3, r, t, e);
80292
80293
  return fs2(s3, t, e);
80293
80294
  };
80294
80295
  var we = class extends Error {
@@ -80314,33 +80315,33 @@ var wt = class extends Error {
80314
80315
  return "SymlinkError";
80315
80316
  }
80316
80317
  };
80317
- var qn = (s3, t) => {
80318
+ var Qn = (s3, t) => {
80318
80319
  k.stat(s3, (e, i) => {
80319
80320
  (e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
80320
80321
  });
80321
80322
  };
80322
- var cr = (s3, t, e) => {
80323
+ var Er = (s3, t, e) => {
80323
80324
  s3 = f(s3);
80324
80325
  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) => {
80325
80326
  E ? e(E) : x && a ? ds(x, o, h, (xe) => S(xe)) : n ? k.chmod(s3, r, e) : e();
80326
80327
  };
80327
- if (s3 === d) return qn(s3, S);
80328
- if (l) return Xn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
80328
+ if (s3 === d) return Qn(s3, S);
80329
+ if (l) return jn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
80329
80330
  let N = f(pi.relative(d, s3)).split("/");
80330
80331
  ms(d, N, r, c, d, void 0, S);
80331
80332
  };
80332
80333
  var ms = (s3, t, e, i, r, n, o) => {
80333
80334
  if (t.length === 0) return o(null, n);
80334
80335
  let h = t.shift(), a = f(pi.resolve(s3 + "/" + h));
80335
- k.mkdir(a, e, fr(a, t, e, i, r, n, o));
80336
+ k.mkdir(a, e, wr(a, t, e, i, r, n, o));
80336
80337
  };
80337
- var fr = (s3, t, e, i, r, n, o) => (h) => {
80338
+ var wr = (s3, t, e, i, r, n, o) => (h) => {
80338
80339
  h ? k.lstat(s3, (a, l) => {
80339
80340
  if (a) a.path = a.path && f(a.path), o(a);
80340
80341
  else if (l.isDirectory()) ms(s3, t, e, i, r, n, o);
80341
80342
  else if (i) k.unlink(s3, (c) => {
80342
80343
  if (c) return o(c);
80343
- k.mkdir(s3, e, fr(s3, t, e, i, r, n, o));
80344
+ k.mkdir(s3, e, wr(s3, t, e, i, r, n, o));
80344
80345
  });
80345
80346
  else {
80346
80347
  if (l.isSymbolicLink()) return o(new wt(s3, s3 + "/" + t.join("/")));
@@ -80348,7 +80349,7 @@ var fr = (s3, t, e, i, r, n, o) => (h) => {
80348
80349
  }
80349
80350
  }) : (n = n || s3, ms(s3, t, e, i, r, n, o));
80350
80351
  };
80351
- var jn = (s3) => {
80352
+ var Jn = (s3) => {
80352
80353
  let t = false, e;
80353
80354
  try {
80354
80355
  t = k.statSync(s3).isDirectory();
@@ -80358,12 +80359,12 @@ var jn = (s3) => {
80358
80359
  if (!t) throw new we(s3, e ?? "ENOTDIR");
80359
80360
  }
80360
80361
  };
80361
- var dr = (s3, t) => {
80362
+ var Sr = (s3, t) => {
80362
80363
  s3 = f(s3);
80363
80364
  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) => {
80364
80365
  E && h && us(E, n, o), r && k.chmodSync(s3, i);
80365
80366
  };
80366
- if (s3 === c) return jn(c), d();
80367
+ if (s3 === c) return Jn(c), d();
80367
80368
  if (a) return d(k.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
80368
80369
  let T = f(pi.relative(c, s3)).split("/"), N;
80369
80370
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
@@ -80382,29 +80383,29 @@ var dr = (s3, t) => {
80382
80383
  return d(N);
80383
80384
  };
80384
80385
  var ps = /* @__PURE__ */ Object.create(null);
80385
- var ur = 1e4;
80386
+ var yr = 1e4;
80386
80387
  var $t = /* @__PURE__ */ new Set();
80387
- var mr = (s3) => {
80388
+ var Rr = (s3) => {
80388
80389
  $t.has(s3) ? $t.delete(s3) : ps[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
80389
- let t = ps[s3], e = $t.size - ur;
80390
- if (e > ur / 10) {
80390
+ let t = ps[s3], e = $t.size - yr;
80391
+ if (e > yr / 10) {
80391
80392
  for (let i of $t) if ($t.delete(i), delete ps[i], --e <= 0) break;
80392
80393
  }
80393
80394
  return t;
80394
80395
  };
80395
- var Qn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80396
- var Jn = Qn === "win32";
80397
- var to = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
80396
+ var to = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80397
+ var eo = to === "win32";
80398
+ var io = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
80398
80399
  let r = e.at(-1);
80399
- return r !== void 0 && (i = pr(r, i)), e.push(i || "/"), e;
80400
+ return r !== void 0 && (i = br(r, i)), e.push(i || "/"), e;
80400
80401
  }, []);
80401
80402
  var Ei = class {
80402
80403
  #t = /* @__PURE__ */ new Map();
80403
80404
  #i = /* @__PURE__ */ new Map();
80404
80405
  #s = /* @__PURE__ */ new Set();
80405
80406
  reserve(t, e) {
80406
- t = Jn ? ["win32 parallelization disabled"] : t.map((r) => mt(pr(mr(r))));
80407
- let i = new Set(t.map((r) => to(r)).reduce((r, n) => r.concat(n)));
80407
+ t = eo ? ["win32 parallelization disabled"] : t.map((r) => mt(br(Rr(r))));
80408
+ let i = new Set(t.map((r) => io(r)).reduce((r, n) => r.concat(n)));
80408
80409
  this.#i.set(e, { dirs: i, paths: t });
80409
80410
  for (let r of t) {
80410
80411
  let n = this.#t.get(r);
@@ -80462,25 +80463,25 @@ var Ei = class {
80462
80463
  return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
80463
80464
  }
80464
80465
  };
80465
- var Er = () => process.umask();
80466
- var wr = /* @__PURE__ */ Symbol("onEntry");
80466
+ var _r = () => process.umask();
80467
+ var gr = /* @__PURE__ */ Symbol("onEntry");
80467
80468
  var ys = /* @__PURE__ */ Symbol("checkFs");
80468
- var Sr = /* @__PURE__ */ Symbol("checkFs2");
80469
+ var Or = /* @__PURE__ */ Symbol("checkFs2");
80469
80470
  var Rs = /* @__PURE__ */ Symbol("isReusable");
80470
80471
  var P = /* @__PURE__ */ Symbol("makeFs");
80471
80472
  var bs = /* @__PURE__ */ Symbol("file");
80472
80473
  var _s = /* @__PURE__ */ Symbol("directory");
80473
80474
  var Si = /* @__PURE__ */ Symbol("link");
80474
- var yr = /* @__PURE__ */ Symbol("symlink");
80475
- var Rr = /* @__PURE__ */ Symbol("hardlink");
80475
+ var Tr = /* @__PURE__ */ Symbol("symlink");
80476
+ var xr = /* @__PURE__ */ Symbol("hardlink");
80476
80477
  var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
80477
- var br = /* @__PURE__ */ Symbol("unsupported");
80478
- var _r = /* @__PURE__ */ Symbol("checkPath");
80478
+ var Lr = /* @__PURE__ */ Symbol("unsupported");
80479
+ var Nr = /* @__PURE__ */ Symbol("checkPath");
80479
80480
  var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
80480
80481
  var St = /* @__PURE__ */ Symbol("mkdir");
80481
80482
  var O = /* @__PURE__ */ Symbol("onError");
80482
80483
  var wi = /* @__PURE__ */ Symbol("pending");
80483
- var gr = /* @__PURE__ */ Symbol("pend");
80484
+ var Ar = /* @__PURE__ */ Symbol("pend");
80484
80485
  var Xt = /* @__PURE__ */ Symbol("unpend");
80485
80486
  var ws = /* @__PURE__ */ Symbol("ended");
80486
80487
  var Ss = /* @__PURE__ */ Symbol("maybeClose");
@@ -80489,23 +80490,23 @@ var Re = /* @__PURE__ */ Symbol("doChown");
80489
80490
  var be = /* @__PURE__ */ Symbol("uid");
80490
80491
  var _e = /* @__PURE__ */ Symbol("gid");
80491
80492
  var ge = /* @__PURE__ */ Symbol("checkedCwd");
80492
- var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80493
- var Oe = io === "win32";
80494
- var so = 1024;
80495
- var ro = (s3, t) => {
80493
+ var ro = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80494
+ var Oe = ro === "win32";
80495
+ var no = 1024;
80496
+ var oo = (s3, t) => {
80496
80497
  if (!Oe) return u.unlink(s3, t);
80497
- let e = s3 + ".DELETE." + Tr(16).toString("hex");
80498
+ let e = s3 + ".DELETE." + Ir(16).toString("hex");
80498
80499
  u.rename(s3, e, (i) => {
80499
80500
  if (i) return t(i);
80500
80501
  u.unlink(e, t);
80501
80502
  });
80502
80503
  };
80503
- var no = (s3) => {
80504
+ var ho = (s3) => {
80504
80505
  if (!Oe) return u.unlinkSync(s3);
80505
- let t = s3 + ".DELETE." + Tr(16).toString("hex");
80506
+ let t = s3 + ".DELETE." + Ir(16).toString("hex");
80506
80507
  u.renameSync(s3, t), u.unlinkSync(t);
80507
80508
  };
80508
- var Or = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
80509
+ var Dr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
80509
80510
  var qt = class extends st {
80510
80511
  [ws] = false;
80511
80512
  [ge] = false;
@@ -80543,7 +80544,7 @@ var qt = class extends st {
80543
80544
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
80544
80545
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
80545
80546
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
80546
- 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(R.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));
80547
+ 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(R.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));
80547
80548
  }
80548
80549
  warn(t, e, i = {}) {
80549
80550
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
@@ -80562,7 +80563,7 @@ var qt = class extends st {
80562
80563
  }
80563
80564
  return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
80564
80565
  }
80565
- [_r](t) {
80566
+ [Nr](t) {
80566
80567
  let e = f(t.path), i = e.split("/");
80567
80568
  if (this.strip) {
80568
80569
  if (i.length < this.strip) return false;
@@ -80585,9 +80586,9 @@ var qt = class extends st {
80585
80586
  }
80586
80587
  return true;
80587
80588
  }
80588
- [wr](t) {
80589
- if (!this[_r](t)) return t.resume();
80590
- switch (eo.equal(typeof t.absolute, "string"), t.type) {
80589
+ [gr](t) {
80590
+ if (!this[Nr](t)) return t.resume();
80591
+ switch (so.equal(typeof t.absolute, "string"), t.type) {
80591
80592
  case "Directory":
80592
80593
  case "GNUDumpDir":
80593
80594
  t.mode && (t.mode = t.mode | 448);
@@ -80598,23 +80599,23 @@ var qt = class extends st {
80598
80599
  case "SymbolicLink":
80599
80600
  return this[ys](t);
80600
80601
  default:
80601
- return this[br](t);
80602
+ return this[Lr](t);
80602
80603
  }
80603
80604
  }
80604
80605
  [O](t, e) {
80605
80606
  t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
80606
80607
  }
80607
80608
  [St](t, e, i) {
80608
- 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);
80609
+ 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);
80609
80610
  }
80610
80611
  [Re](t) {
80611
80612
  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;
80612
80613
  }
80613
80614
  [be](t) {
80614
- return Or(this.uid, t.uid, this.processUid);
80615
+ return Dr(this.uid, t.uid, this.processUid);
80615
80616
  }
80616
80617
  [_e](t) {
80617
- return Or(this.gid, t.gid, this.processGid);
80618
+ return Dr(this.gid, t.gid, this.processGid);
80618
80619
  }
80619
80620
  [bs](t, e) {
80620
80621
  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 });
@@ -80664,16 +80665,16 @@ var qt = class extends st {
80664
80665
  t.mtime && !this.noMtime && (n++, u.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, u.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
80665
80666
  });
80666
80667
  }
80667
- [br](t) {
80668
+ [Lr](t) {
80668
80669
  t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
80669
80670
  }
80670
- [yr](t, e) {
80671
+ [Tr](t, e) {
80671
80672
  let i = f(R.relative(this.cwd, R.resolve(R.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
80672
80673
  this[ye](t, this.cwd, i, () => this[Si](t, String(t.linkpath), "symlink", e), (r) => {
80673
80674
  this[O](r, t), e();
80674
80675
  });
80675
80676
  }
80676
- [Rr](t, e) {
80677
+ [xr](t, e) {
80677
80678
  let i = f(R.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
80678
80679
  this[ye](t, this.cwd, r, () => this[Si](t, i, "link", e), (n) => {
80679
80680
  this[O](n, t), e();
@@ -80689,7 +80690,7 @@ var qt = class extends st {
80689
80690
  this[ye](t, h, i, r, n);
80690
80691
  });
80691
80692
  }
80692
- [gr]() {
80693
+ [Ar]() {
80693
80694
  this[wi]++;
80694
80695
  }
80695
80696
  [Xt]() {
@@ -80702,11 +80703,11 @@ var qt = class extends st {
80702
80703
  return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
80703
80704
  }
80704
80705
  [ys](t) {
80705
- this[gr]();
80706
+ this[Ar]();
80706
80707
  let e = [t.path];
80707
- t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Sr](t, i));
80708
+ t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Or](t, i));
80708
80709
  }
80709
- [Sr](t, e) {
80710
+ [Or](t, e) {
80710
80711
  let i = (h) => {
80711
80712
  e(h);
80712
80713
  }, r = () => {
@@ -80744,7 +80745,7 @@ var qt = class extends st {
80744
80745
  if (t.absolute !== this.cwd) return u.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
80745
80746
  }
80746
80747
  if (t.absolute === this.cwd) return this[P](null, t, i);
80747
- ro(String(t.absolute), (l) => this[P](l ?? null, t, i));
80748
+ oo(String(t.absolute), (l) => this[P](l ?? null, t, i));
80748
80749
  });
80749
80750
  };
80750
80751
  this[ge] ? n() : r();
@@ -80760,9 +80761,9 @@ var qt = class extends st {
80760
80761
  case "ContiguousFile":
80761
80762
  return this[bs](e, i);
80762
80763
  case "Link":
80763
- return this[Rr](e, i);
80764
+ return this[xr](e, i);
80764
80765
  case "SymbolicLink":
80765
- return this[yr](e, i);
80766
+ return this[Tr](e, i);
80766
80767
  case "Directory":
80767
80768
  case "GNUDumpDir":
80768
80769
  return this[_s](e, i);
@@ -80813,7 +80814,7 @@ var Te = class extends qt {
80813
80814
  let [n] = Se(() => u.rmdirSync(String(t.absolute)));
80814
80815
  this[P](n, t);
80815
80816
  }
80816
- let [r] = t.absolute === this.cwd ? [] : Se(() => no(String(t.absolute)));
80817
+ let [r] = t.absolute === this.cwd ? [] : Se(() => ho(String(t.absolute)));
80817
80818
  this[P](r, t);
80818
80819
  }
80819
80820
  [bs](t, e) {
@@ -80885,7 +80886,7 @@ var Te = class extends qt {
80885
80886
  }
80886
80887
  [St](t, e) {
80887
80888
  try {
80888
- 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 });
80889
+ 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 });
80889
80890
  } catch (i) {
80890
80891
  return i;
80891
80892
  }
@@ -80910,14 +80911,14 @@ var Te = class extends qt {
80910
80911
  }
80911
80912
  }
80912
80913
  };
80913
- var oo = (s3) => {
80914
- let t = new Te(s3), e = s3.file, i = xr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
80914
+ var ao = (s3) => {
80915
+ let t = new Te(s3), e = s3.file, i = Cr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
80915
80916
  new Me(e, { readSize: r, size: i.size }).pipe(t);
80916
80917
  };
80917
- var ho = (s3, t) => {
80918
+ var lo = (s3, t) => {
80918
80919
  let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
80919
80920
  return new Promise((o, h) => {
80920
- e.on("error", h), e.on("close", o), xr.stat(r, (a, l) => {
80921
+ e.on("error", h), e.on("close", o), Cr.stat(r, (a, l) => {
80921
80922
  if (a) h(a);
80922
80923
  else {
80923
80924
  let c = new _t(r, { readSize: i, size: l.size });
@@ -80926,10 +80927,10 @@ var ho = (s3, t) => {
80926
80927
  });
80927
80928
  });
80928
80929
  };
80929
- var ao = K(oo, ho, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
80930
+ var co = K(ao, lo, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
80930
80931
  t?.length && Ki(s3, t);
80931
80932
  });
80932
- var lo = (s3, t) => {
80933
+ var fo = (s3, t) => {
80933
80934
  let e = new kt(s3), i = true, r, n;
80934
80935
  try {
80935
80936
  try {
@@ -80950,7 +80951,7 @@ var lo = (s3, t) => {
80950
80951
  if (n + l + 512 > o.size) break;
80951
80952
  n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
80952
80953
  }
80953
- i = false, co(s3, e, n, r, t);
80954
+ i = false, uo(s3, e, n, r, t);
80954
80955
  } finally {
80955
80956
  if (i) try {
80956
80957
  v.closeSync(r);
@@ -80958,11 +80959,11 @@ var lo = (s3, t) => {
80958
80959
  }
80959
80960
  }
80960
80961
  };
80961
- var co = (s3, t, e, i, r) => {
80962
+ var uo = (s3, t, e, i, r) => {
80962
80963
  let n = new Wt(s3.file, { fd: i, start: e });
80963
- t.pipe(n), uo(t, r);
80964
+ t.pipe(n), po(t, r);
80964
80965
  };
80965
- var fo = (s3, t) => {
80966
+ var mo = (s3, t) => {
80966
80967
  t = Array.from(t);
80967
80968
  let e = new Et(s3), i = (n, o, h) => {
80968
80969
  let a = (T, N) => {
@@ -80992,23 +80993,23 @@ var fo = (s3, t) => {
80992
80993
  i(c, S.size, (T, N) => {
80993
80994
  if (T) return o(T);
80994
80995
  let E = new tt(s3.file, { fd: c, start: N });
80995
- e.pipe(E), E.on("error", o), E.on("close", n), mo(e, t);
80996
+ e.pipe(E), E.on("error", o), E.on("close", n), Eo(e, t);
80996
80997
  });
80997
80998
  });
80998
80999
  };
80999
81000
  v.open(s3.file, h, a);
81000
81001
  });
81001
81002
  };
81002
- var uo = (s3, t) => {
81003
+ var po = (s3, t) => {
81003
81004
  t.forEach((e) => {
81004
- e.charAt(0) === "@" ? It({ file: Lr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81005
+ e.charAt(0) === "@" ? It({ file: Fr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81005
81006
  }), s3.end();
81006
81007
  };
81007
- var mo = async (s3, t) => {
81008
- for (let e of t) e.charAt(0) === "@" ? await It({ file: Lr.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81008
+ var Eo = async (s3, t) => {
81009
+ for (let e of t) e.charAt(0) === "@" ? await It({ file: Fr.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81009
81010
  s3.end();
81010
81011
  };
81011
- var vt = K(lo, fo, () => {
81012
+ var vt = K(fo, mo, () => {
81012
81013
  throw new TypeError("file is required");
81013
81014
  }, () => {
81014
81015
  throw new TypeError("file is required");
@@ -81017,10 +81018,10 @@ var vt = K(lo, fo, () => {
81017
81018
  if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
81018
81019
  if (!t?.length) throw new TypeError("no paths specified to add/replace");
81019
81020
  });
81020
- var po = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
81021
- vt.validate?.(s3, t), Eo(s3);
81021
+ var wo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
81022
+ vt.validate?.(s3, t), So(s3);
81022
81023
  });
81023
- var Eo = (s3) => {
81024
+ var So = (s3) => {
81024
81025
  let t = s3.filter;
81025
81026
  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));
81026
81027
  };
@@ -81203,6 +81204,9 @@ var Client = class _Client {
81203
81204
  locale: "",
81204
81205
  mode: "",
81205
81206
  cookie: "",
81207
+ impersonateuserid: "",
81208
+ impersonateuseremail: "",
81209
+ impersonateuserphone: "",
81206
81210
  platform: "",
81207
81211
  selfSigned: false,
81208
81212
  session: void 0
@@ -81211,8 +81215,8 @@ var Client = class _Client {
81211
81215
  "x-sdk-name": "Console",
81212
81216
  "x-sdk-platform": "console",
81213
81217
  "x-sdk-language": "web",
81214
- "x-sdk-version": "6.0.0",
81215
- "X-Appwrite-Response-Format": "1.8.0"
81218
+ "x-sdk-version": "8.0.0",
81219
+ "X-Appwrite-Response-Format": "1.9.0"
81216
81220
  };
81217
81221
  this.realtime = {
81218
81222
  socket: void 0,
@@ -81535,6 +81539,48 @@ var Client = class _Client {
81535
81539
  this.config.cookie = value;
81536
81540
  return this;
81537
81541
  }
81542
+ /**
81543
+ * Set ImpersonateUserId
81544
+ *
81545
+ * 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.
81546
+ *
81547
+ * @param value string
81548
+ *
81549
+ * @return {this}
81550
+ */
81551
+ setImpersonateUserId(value) {
81552
+ this.headers["X-Appwrite-Impersonate-User-Id"] = value;
81553
+ this.config.impersonateuserid = value;
81554
+ return this;
81555
+ }
81556
+ /**
81557
+ * Set ImpersonateUserEmail
81558
+ *
81559
+ * 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.
81560
+ *
81561
+ * @param value string
81562
+ *
81563
+ * @return {this}
81564
+ */
81565
+ setImpersonateUserEmail(value) {
81566
+ this.headers["X-Appwrite-Impersonate-User-Email"] = value;
81567
+ this.config.impersonateuseremail = value;
81568
+ return this;
81569
+ }
81570
+ /**
81571
+ * Set ImpersonateUserPhone
81572
+ *
81573
+ * 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.
81574
+ *
81575
+ * @param value string
81576
+ *
81577
+ * @return {this}
81578
+ */
81579
+ setImpersonateUserPhone(value) {
81580
+ this.headers["X-Appwrite-Impersonate-User-Phone"] = value;
81581
+ this.config.impersonateuserphone = value;
81582
+ return this;
81583
+ }
81538
81584
  /**
81539
81585
  * Set Platform
81540
81586
  *
@@ -81656,9 +81702,9 @@ var Client = class _Client {
81656
81702
  }
81657
81703
  return { uri: url2.toString(), options };
81658
81704
  }
81659
- chunkedUpload(method, url2, headers = {}, originalPayload = {}, onProgress) {
81660
- var _a3;
81661
- return __awaiter(this, void 0, void 0, function* () {
81705
+ chunkedUpload(method_1, url_1) {
81706
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, originalPayload = {}, onProgress) {
81707
+ var _a3;
81662
81708
  const [fileParam, file2] = (_a3 = Object.entries(originalPayload).find(([_2, value]) => value instanceof File)) !== null && _a3 !== void 0 ? _a3 : [];
81663
81709
  if (!file2 || !fileParam) {
81664
81710
  throw new Error("File not found in payload");
@@ -81700,9 +81746,9 @@ var Client = class _Client {
81700
81746
  return this.call("GET", new URL(this.config.endpoint + "/ping"));
81701
81747
  });
81702
81748
  }
81703
- call(method, url2, headers = {}, params = {}, responseType = "json") {
81704
- var _a3, _b;
81705
- return __awaiter(this, void 0, void 0, function* () {
81749
+ call(method_1, url_1) {
81750
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, params = {}, responseType = "json") {
81751
+ var _a3, _b;
81706
81752
  const { uri, options } = this.prepareRequest(method, url2, headers, params);
81707
81753
  let data = null;
81708
81754
  const response = yield fetch(uri, options);
@@ -98174,7 +98220,7 @@ Permission.delete = (role) => {
98174
98220
  };
98175
98221
  var _a2;
98176
98222
  var _ID_hexTimestamp;
98177
- var ID2 = class _ID {
98223
+ var ID2 = class {
98178
98224
  /**
98179
98225
  * Uses the provided ID as the ID for the resource.
98180
98226
  *
@@ -98191,7 +98237,7 @@ var ID2 = class _ID {
98191
98237
  * @returns {string}
98192
98238
  */
98193
98239
  static unique(padding = 7) {
98194
- const baseId = __classPrivateFieldGet(_ID, _a2, "m", _ID_hexTimestamp).call(_ID);
98240
+ const baseId = __classPrivateFieldGet(_a2, _a2, "m", _ID_hexTimestamp).call(_a2);
98195
98241
  let randomPadding = "";
98196
98242
  for (let i = 0; i < padding; i++) {
98197
98243
  const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
@@ -98344,11 +98390,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
98344
98390
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
98345
98391
  var Scopes;
98346
98392
  (function(Scopes2) {
98393
+ Scopes2["Account"] = "account";
98394
+ Scopes2["TeamsRead"] = "teams.read";
98395
+ Scopes2["TeamsWrite"] = "teams.write";
98347
98396
  Scopes2["SessionsWrite"] = "sessions.write";
98348
98397
  Scopes2["UsersRead"] = "users.read";
98349
98398
  Scopes2["UsersWrite"] = "users.write";
98350
- Scopes2["TeamsRead"] = "teams.read";
98351
- Scopes2["TeamsWrite"] = "teams.write";
98352
98399
  Scopes2["DatabasesRead"] = "databases.read";
98353
98400
  Scopes2["DatabasesWrite"] = "databases.write";
98354
98401
  Scopes2["CollectionsRead"] = "collections.read";
@@ -98403,6 +98450,8 @@ var Scopes;
98403
98450
  Scopes2["TokensWrite"] = "tokens.write";
98404
98451
  Scopes2["WebhooksRead"] = "webhooks.read";
98405
98452
  Scopes2["WebhooksWrite"] = "webhooks.write";
98453
+ Scopes2["ProjectRead"] = "project.read";
98454
+ Scopes2["ProjectWrite"] = "project.write";
98406
98455
  Scopes2["PoliciesWrite"] = "policies.write";
98407
98456
  Scopes2["PoliciesRead"] = "policies.read";
98408
98457
  Scopes2["ArchivesRead"] = "archives.read";
@@ -98412,6 +98461,14 @@ var Scopes;
98412
98461
  Scopes2["DomainsRead"] = "domains.read";
98413
98462
  Scopes2["DomainsWrite"] = "domains.write";
98414
98463
  Scopes2["EventsRead"] = "events.read";
98464
+ Scopes2["PlatformsRead"] = "platforms.read";
98465
+ Scopes2["PlatformsWrite"] = "platforms.write";
98466
+ Scopes2["ProjectsRead"] = "projects.read";
98467
+ Scopes2["ProjectsWrite"] = "projects.write";
98468
+ Scopes2["KeysRead"] = "keys.read";
98469
+ Scopes2["KeysWrite"] = "keys.write";
98470
+ Scopes2["DevKeysRead"] = "devKeys.read";
98471
+ Scopes2["DevKeysWrite"] = "devKeys.write";
98415
98472
  })(Scopes || (Scopes = {}));
98416
98473
  var AuthenticatorType;
98417
98474
  (function(AuthenticatorType2) {
@@ -99164,6 +99221,9 @@ var ImageFormat;
99164
99221
  var BackupServices;
99165
99222
  (function(BackupServices2) {
99166
99223
  BackupServices2["Databases"] = "databases";
99224
+ BackupServices2["Tablesdb"] = "tablesdb";
99225
+ BackupServices2["Documentsdb"] = "documentsdb";
99226
+ BackupServices2["Vectorsdb"] = "vectorsdb";
99167
99227
  BackupServices2["Functions"] = "functions";
99168
99228
  BackupServices2["Storage"] = "storage";
99169
99229
  })(BackupServices || (BackupServices = {}));
@@ -99195,13 +99255,13 @@ var RelationMutate;
99195
99255
  RelationMutate2["Restrict"] = "restrict";
99196
99256
  RelationMutate2["SetNull"] = "setNull";
99197
99257
  })(RelationMutate || (RelationMutate = {}));
99198
- var IndexType;
99199
- (function(IndexType2) {
99200
- IndexType2["Key"] = "key";
99201
- IndexType2["Fulltext"] = "fulltext";
99202
- IndexType2["Unique"] = "unique";
99203
- IndexType2["Spatial"] = "spatial";
99204
- })(IndexType || (IndexType = {}));
99258
+ var DatabasesIndexType;
99259
+ (function(DatabasesIndexType2) {
99260
+ DatabasesIndexType2["Key"] = "key";
99261
+ DatabasesIndexType2["Fulltext"] = "fulltext";
99262
+ DatabasesIndexType2["Unique"] = "unique";
99263
+ DatabasesIndexType2["Spatial"] = "spatial";
99264
+ })(DatabasesIndexType || (DatabasesIndexType = {}));
99205
99265
  var OrderBy;
99206
99266
  (function(OrderBy2) {
99207
99267
  OrderBy2["Asc"] = "asc";
@@ -99307,92 +99367,6 @@ var Runtime;
99307
99367
  Runtime2["Flutter332"] = "flutter-3.32";
99308
99368
  Runtime2["Flutter335"] = "flutter-3.35";
99309
99369
  Runtime2["Flutter338"] = "flutter-3.38";
99310
- Runtime2["Node145rc"] = "node-14.5-rc";
99311
- Runtime2["Node160rc"] = "node-16.0-rc";
99312
- Runtime2["Node180rc"] = "node-18.0-rc";
99313
- Runtime2["Node190rc"] = "node-19.0-rc";
99314
- Runtime2["Node200rc"] = "node-20.0-rc";
99315
- Runtime2["Node210rc"] = "node-21.0-rc";
99316
- Runtime2["Node22rc"] = "node-22-rc";
99317
- Runtime2["Node23rc"] = "node-23-rc";
99318
- Runtime2["Node24rc"] = "node-24-rc";
99319
- Runtime2["Node25rc"] = "node-25-rc";
99320
- Runtime2["Php80rc"] = "php-8.0-rc";
99321
- Runtime2["Php81rc"] = "php-8.1-rc";
99322
- Runtime2["Php82rc"] = "php-8.2-rc";
99323
- Runtime2["Php83rc"] = "php-8.3-rc";
99324
- Runtime2["Php84rc"] = "php-8.4-rc";
99325
- Runtime2["Ruby30rc"] = "ruby-3.0-rc";
99326
- Runtime2["Ruby31rc"] = "ruby-3.1-rc";
99327
- Runtime2["Ruby32rc"] = "ruby-3.2-rc";
99328
- Runtime2["Ruby33rc"] = "ruby-3.3-rc";
99329
- Runtime2["Ruby34rc"] = "ruby-3.4-rc";
99330
- Runtime2["Ruby40rc"] = "ruby-4.0-rc";
99331
- Runtime2["Python38rc"] = "python-3.8-rc";
99332
- Runtime2["Python39rc"] = "python-3.9-rc";
99333
- Runtime2["Python310rc"] = "python-3.10-rc";
99334
- Runtime2["Python311rc"] = "python-3.11-rc";
99335
- Runtime2["Python312rc"] = "python-3.12-rc";
99336
- Runtime2["Python313rc"] = "python-3.13-rc";
99337
- Runtime2["Python314rc"] = "python-3.14-rc";
99338
- Runtime2["Pythonml311rc"] = "python-ml-3.11-rc";
99339
- Runtime2["Pythonml312rc"] = "python-ml-3.12-rc";
99340
- Runtime2["Pythonml313rc"] = "python-ml-3.13-rc";
99341
- Runtime2["Deno140rc"] = "deno-1.40-rc";
99342
- Runtime2["Deno146rc"] = "deno-1.46-rc";
99343
- Runtime2["Deno20rc"] = "deno-2.0-rc";
99344
- Runtime2["Deno25rc"] = "deno-2.5-rc";
99345
- Runtime2["Deno26rc"] = "deno-2.6-rc";
99346
- Runtime2["Dart215rc"] = "dart-2.15-rc";
99347
- Runtime2["Dart216rc"] = "dart-2.16-rc";
99348
- Runtime2["Dart217rc"] = "dart-2.17-rc";
99349
- Runtime2["Dart218rc"] = "dart-2.18-rc";
99350
- Runtime2["Dart219rc"] = "dart-2.19-rc";
99351
- Runtime2["Dart30rc"] = "dart-3.0-rc";
99352
- Runtime2["Dart31rc"] = "dart-3.1-rc";
99353
- Runtime2["Dart33rc"] = "dart-3.3-rc";
99354
- Runtime2["Dart35rc"] = "dart-3.5-rc";
99355
- Runtime2["Dart38rc"] = "dart-3.8-rc";
99356
- Runtime2["Dart39rc"] = "dart-3.9-rc";
99357
- Runtime2["Dart310rc"] = "dart-3.10-rc";
99358
- Runtime2["Dotnet60rc"] = "dotnet-6.0-rc";
99359
- Runtime2["Dotnet70rc"] = "dotnet-7.0-rc";
99360
- Runtime2["Dotnet80rc"] = "dotnet-8.0-rc";
99361
- Runtime2["Dotnet10rc"] = "dotnet-10-rc";
99362
- Runtime2["Java80rc"] = "java-8.0-rc";
99363
- Runtime2["Java110rc"] = "java-11.0-rc";
99364
- Runtime2["Java170rc"] = "java-17.0-rc";
99365
- Runtime2["Java180rc"] = "java-18.0-rc";
99366
- Runtime2["Java210rc"] = "java-21.0-rc";
99367
- Runtime2["Java22rc"] = "java-22-rc";
99368
- Runtime2["Java25rc"] = "java-25-rc";
99369
- Runtime2["Swift55rc"] = "swift-5.5-rc";
99370
- Runtime2["Swift58rc"] = "swift-5.8-rc";
99371
- Runtime2["Swift59rc"] = "swift-5.9-rc";
99372
- Runtime2["Swift510rc"] = "swift-5.10-rc";
99373
- Runtime2["Swift62rc"] = "swift-6.2-rc";
99374
- Runtime2["Kotlin16rc"] = "kotlin-1.6-rc";
99375
- Runtime2["Kotlin18rc"] = "kotlin-1.8-rc";
99376
- Runtime2["Kotlin19rc"] = "kotlin-1.9-rc";
99377
- Runtime2["Kotlin20rc"] = "kotlin-2.0-rc";
99378
- Runtime2["Kotlin23rc"] = "kotlin-2.3-rc";
99379
- Runtime2["Cpp17rc"] = "cpp-17-rc";
99380
- Runtime2["Cpp20rc"] = "cpp-20-rc";
99381
- Runtime2["Bun10rc"] = "bun-1.0-rc";
99382
- Runtime2["Bun11rc"] = "bun-1.1-rc";
99383
- Runtime2["Bun12rc"] = "bun-1.2-rc";
99384
- Runtime2["Bun13rc"] = "bun-1.3-rc";
99385
- Runtime2["Go123rc"] = "go-1.23-rc";
99386
- Runtime2["Go124rc"] = "go-1.24-rc";
99387
- Runtime2["Go125rc"] = "go-1.25-rc";
99388
- Runtime2["Go126rc"] = "go-1.26-rc";
99389
- Runtime2["Static1rc"] = "static-1-rc";
99390
- Runtime2["Flutter324rc"] = "flutter-3.24-rc";
99391
- Runtime2["Flutter327rc"] = "flutter-3.27-rc";
99392
- Runtime2["Flutter329rc"] = "flutter-3.29-rc";
99393
- Runtime2["Flutter332rc"] = "flutter-3.32-rc";
99394
- Runtime2["Flutter335rc"] = "flutter-3.35-rc";
99395
- Runtime2["Flutter338rc"] = "flutter-3.38-rc";
99396
99370
  })(Runtime || (Runtime = {}));
99397
99371
  var Runtimes;
99398
99372
  (function(Runtimes2) {
@@ -99482,109 +99456,28 @@ var Runtimes;
99482
99456
  Runtimes2["Flutter332"] = "flutter-3.32";
99483
99457
  Runtimes2["Flutter335"] = "flutter-3.35";
99484
99458
  Runtimes2["Flutter338"] = "flutter-3.38";
99485
- Runtimes2["Node145rc"] = "node-14.5-rc";
99486
- Runtimes2["Node160rc"] = "node-16.0-rc";
99487
- Runtimes2["Node180rc"] = "node-18.0-rc";
99488
- Runtimes2["Node190rc"] = "node-19.0-rc";
99489
- Runtimes2["Node200rc"] = "node-20.0-rc";
99490
- Runtimes2["Node210rc"] = "node-21.0-rc";
99491
- Runtimes2["Node22rc"] = "node-22-rc";
99492
- Runtimes2["Node23rc"] = "node-23-rc";
99493
- Runtimes2["Node24rc"] = "node-24-rc";
99494
- Runtimes2["Node25rc"] = "node-25-rc";
99495
- Runtimes2["Php80rc"] = "php-8.0-rc";
99496
- Runtimes2["Php81rc"] = "php-8.1-rc";
99497
- Runtimes2["Php82rc"] = "php-8.2-rc";
99498
- Runtimes2["Php83rc"] = "php-8.3-rc";
99499
- Runtimes2["Php84rc"] = "php-8.4-rc";
99500
- Runtimes2["Ruby30rc"] = "ruby-3.0-rc";
99501
- Runtimes2["Ruby31rc"] = "ruby-3.1-rc";
99502
- Runtimes2["Ruby32rc"] = "ruby-3.2-rc";
99503
- Runtimes2["Ruby33rc"] = "ruby-3.3-rc";
99504
- Runtimes2["Ruby34rc"] = "ruby-3.4-rc";
99505
- Runtimes2["Ruby40rc"] = "ruby-4.0-rc";
99506
- Runtimes2["Python38rc"] = "python-3.8-rc";
99507
- Runtimes2["Python39rc"] = "python-3.9-rc";
99508
- Runtimes2["Python310rc"] = "python-3.10-rc";
99509
- Runtimes2["Python311rc"] = "python-3.11-rc";
99510
- Runtimes2["Python312rc"] = "python-3.12-rc";
99511
- Runtimes2["Python313rc"] = "python-3.13-rc";
99512
- Runtimes2["Python314rc"] = "python-3.14-rc";
99513
- Runtimes2["Pythonml311rc"] = "python-ml-3.11-rc";
99514
- Runtimes2["Pythonml312rc"] = "python-ml-3.12-rc";
99515
- Runtimes2["Pythonml313rc"] = "python-ml-3.13-rc";
99516
- Runtimes2["Deno140rc"] = "deno-1.40-rc";
99517
- Runtimes2["Deno146rc"] = "deno-1.46-rc";
99518
- Runtimes2["Deno20rc"] = "deno-2.0-rc";
99519
- Runtimes2["Deno25rc"] = "deno-2.5-rc";
99520
- Runtimes2["Deno26rc"] = "deno-2.6-rc";
99521
- Runtimes2["Dart215rc"] = "dart-2.15-rc";
99522
- Runtimes2["Dart216rc"] = "dart-2.16-rc";
99523
- Runtimes2["Dart217rc"] = "dart-2.17-rc";
99524
- Runtimes2["Dart218rc"] = "dart-2.18-rc";
99525
- Runtimes2["Dart219rc"] = "dart-2.19-rc";
99526
- Runtimes2["Dart30rc"] = "dart-3.0-rc";
99527
- Runtimes2["Dart31rc"] = "dart-3.1-rc";
99528
- Runtimes2["Dart33rc"] = "dart-3.3-rc";
99529
- Runtimes2["Dart35rc"] = "dart-3.5-rc";
99530
- Runtimes2["Dart38rc"] = "dart-3.8-rc";
99531
- Runtimes2["Dart39rc"] = "dart-3.9-rc";
99532
- Runtimes2["Dart310rc"] = "dart-3.10-rc";
99533
- Runtimes2["Dotnet60rc"] = "dotnet-6.0-rc";
99534
- Runtimes2["Dotnet70rc"] = "dotnet-7.0-rc";
99535
- Runtimes2["Dotnet80rc"] = "dotnet-8.0-rc";
99536
- Runtimes2["Dotnet10rc"] = "dotnet-10-rc";
99537
- Runtimes2["Java80rc"] = "java-8.0-rc";
99538
- Runtimes2["Java110rc"] = "java-11.0-rc";
99539
- Runtimes2["Java170rc"] = "java-17.0-rc";
99540
- Runtimes2["Java180rc"] = "java-18.0-rc";
99541
- Runtimes2["Java210rc"] = "java-21.0-rc";
99542
- Runtimes2["Java22rc"] = "java-22-rc";
99543
- Runtimes2["Java25rc"] = "java-25-rc";
99544
- Runtimes2["Swift55rc"] = "swift-5.5-rc";
99545
- Runtimes2["Swift58rc"] = "swift-5.8-rc";
99546
- Runtimes2["Swift59rc"] = "swift-5.9-rc";
99547
- Runtimes2["Swift510rc"] = "swift-5.10-rc";
99548
- Runtimes2["Swift62rc"] = "swift-6.2-rc";
99549
- Runtimes2["Kotlin16rc"] = "kotlin-1.6-rc";
99550
- Runtimes2["Kotlin18rc"] = "kotlin-1.8-rc";
99551
- Runtimes2["Kotlin19rc"] = "kotlin-1.9-rc";
99552
- Runtimes2["Kotlin20rc"] = "kotlin-2.0-rc";
99553
- Runtimes2["Kotlin23rc"] = "kotlin-2.3-rc";
99554
- Runtimes2["Cpp17rc"] = "cpp-17-rc";
99555
- Runtimes2["Cpp20rc"] = "cpp-20-rc";
99556
- Runtimes2["Bun10rc"] = "bun-1.0-rc";
99557
- Runtimes2["Bun11rc"] = "bun-1.1-rc";
99558
- Runtimes2["Bun12rc"] = "bun-1.2-rc";
99559
- Runtimes2["Bun13rc"] = "bun-1.3-rc";
99560
- Runtimes2["Go123rc"] = "go-1.23-rc";
99561
- Runtimes2["Go124rc"] = "go-1.24-rc";
99562
- Runtimes2["Go125rc"] = "go-1.25-rc";
99563
- Runtimes2["Go126rc"] = "go-1.26-rc";
99564
- Runtimes2["Static1rc"] = "static-1-rc";
99565
- Runtimes2["Flutter324rc"] = "flutter-3.24-rc";
99566
- Runtimes2["Flutter327rc"] = "flutter-3.27-rc";
99567
- Runtimes2["Flutter329rc"] = "flutter-3.29-rc";
99568
- Runtimes2["Flutter332rc"] = "flutter-3.32-rc";
99569
- Runtimes2["Flutter335rc"] = "flutter-3.35-rc";
99570
- Runtimes2["Flutter338rc"] = "flutter-3.38-rc";
99571
99459
  })(Runtimes || (Runtimes = {}));
99572
99460
  var UseCases;
99573
99461
  (function(UseCases2) {
99574
- UseCases2["Portfolio"] = "portfolio";
99575
99462
  UseCases2["Starter"] = "starter";
99463
+ UseCases2["Databases"] = "databases";
99464
+ UseCases2["Ai"] = "ai";
99465
+ UseCases2["Messaging"] = "messaging";
99466
+ UseCases2["Utilities"] = "utilities";
99467
+ UseCases2["Devtools"] = "dev-tools";
99468
+ UseCases2["Auth"] = "auth";
99469
+ UseCases2["Portfolio"] = "portfolio";
99576
99470
  UseCases2["Events"] = "events";
99577
99471
  UseCases2["Ecommerce"] = "ecommerce";
99578
99472
  UseCases2["Documentation"] = "documentation";
99579
99473
  UseCases2["Blog"] = "blog";
99580
- UseCases2["Ai"] = "ai";
99581
99474
  UseCases2["Forms"] = "forms";
99582
99475
  UseCases2["Dashboard"] = "dashboard";
99583
99476
  })(UseCases || (UseCases = {}));
99584
99477
  var TemplateReferenceType;
99585
99478
  (function(TemplateReferenceType2) {
99586
- TemplateReferenceType2["Branch"] = "branch";
99587
99479
  TemplateReferenceType2["Commit"] = "commit";
99480
+ TemplateReferenceType2["Branch"] = "branch";
99588
99481
  TemplateReferenceType2["Tag"] = "tag";
99589
99482
  })(TemplateReferenceType || (TemplateReferenceType = {}));
99590
99483
  var VCSReferenceType;
@@ -99648,6 +99541,8 @@ var AppwriteMigrationResource;
99648
99541
  AppwriteMigrationResource2["Document"] = "document";
99649
99542
  AppwriteMigrationResource2["Attribute"] = "attribute";
99650
99543
  AppwriteMigrationResource2["Collection"] = "collection";
99544
+ AppwriteMigrationResource2["Documentsdb"] = "documentsdb";
99545
+ AppwriteMigrationResource2["Vectorsdb"] = "vectorsdb";
99651
99546
  AppwriteMigrationResource2["Bucket"] = "bucket";
99652
99547
  AppwriteMigrationResource2["File"] = "file";
99653
99548
  AppwriteMigrationResource2["Function"] = "function";
@@ -100185,92 +100080,6 @@ var BuildRuntime;
100185
100080
  BuildRuntime2["Flutter332"] = "flutter-3.32";
100186
100081
  BuildRuntime2["Flutter335"] = "flutter-3.35";
100187
100082
  BuildRuntime2["Flutter338"] = "flutter-3.38";
100188
- BuildRuntime2["Node145rc"] = "node-14.5-rc";
100189
- BuildRuntime2["Node160rc"] = "node-16.0-rc";
100190
- BuildRuntime2["Node180rc"] = "node-18.0-rc";
100191
- BuildRuntime2["Node190rc"] = "node-19.0-rc";
100192
- BuildRuntime2["Node200rc"] = "node-20.0-rc";
100193
- BuildRuntime2["Node210rc"] = "node-21.0-rc";
100194
- BuildRuntime2["Node22rc"] = "node-22-rc";
100195
- BuildRuntime2["Node23rc"] = "node-23-rc";
100196
- BuildRuntime2["Node24rc"] = "node-24-rc";
100197
- BuildRuntime2["Node25rc"] = "node-25-rc";
100198
- BuildRuntime2["Php80rc"] = "php-8.0-rc";
100199
- BuildRuntime2["Php81rc"] = "php-8.1-rc";
100200
- BuildRuntime2["Php82rc"] = "php-8.2-rc";
100201
- BuildRuntime2["Php83rc"] = "php-8.3-rc";
100202
- BuildRuntime2["Php84rc"] = "php-8.4-rc";
100203
- BuildRuntime2["Ruby30rc"] = "ruby-3.0-rc";
100204
- BuildRuntime2["Ruby31rc"] = "ruby-3.1-rc";
100205
- BuildRuntime2["Ruby32rc"] = "ruby-3.2-rc";
100206
- BuildRuntime2["Ruby33rc"] = "ruby-3.3-rc";
100207
- BuildRuntime2["Ruby34rc"] = "ruby-3.4-rc";
100208
- BuildRuntime2["Ruby40rc"] = "ruby-4.0-rc";
100209
- BuildRuntime2["Python38rc"] = "python-3.8-rc";
100210
- BuildRuntime2["Python39rc"] = "python-3.9-rc";
100211
- BuildRuntime2["Python310rc"] = "python-3.10-rc";
100212
- BuildRuntime2["Python311rc"] = "python-3.11-rc";
100213
- BuildRuntime2["Python312rc"] = "python-3.12-rc";
100214
- BuildRuntime2["Python313rc"] = "python-3.13-rc";
100215
- BuildRuntime2["Python314rc"] = "python-3.14-rc";
100216
- BuildRuntime2["Pythonml311rc"] = "python-ml-3.11-rc";
100217
- BuildRuntime2["Pythonml312rc"] = "python-ml-3.12-rc";
100218
- BuildRuntime2["Pythonml313rc"] = "python-ml-3.13-rc";
100219
- BuildRuntime2["Deno140rc"] = "deno-1.40-rc";
100220
- BuildRuntime2["Deno146rc"] = "deno-1.46-rc";
100221
- BuildRuntime2["Deno20rc"] = "deno-2.0-rc";
100222
- BuildRuntime2["Deno25rc"] = "deno-2.5-rc";
100223
- BuildRuntime2["Deno26rc"] = "deno-2.6-rc";
100224
- BuildRuntime2["Dart215rc"] = "dart-2.15-rc";
100225
- BuildRuntime2["Dart216rc"] = "dart-2.16-rc";
100226
- BuildRuntime2["Dart217rc"] = "dart-2.17-rc";
100227
- BuildRuntime2["Dart218rc"] = "dart-2.18-rc";
100228
- BuildRuntime2["Dart219rc"] = "dart-2.19-rc";
100229
- BuildRuntime2["Dart30rc"] = "dart-3.0-rc";
100230
- BuildRuntime2["Dart31rc"] = "dart-3.1-rc";
100231
- BuildRuntime2["Dart33rc"] = "dart-3.3-rc";
100232
- BuildRuntime2["Dart35rc"] = "dart-3.5-rc";
100233
- BuildRuntime2["Dart38rc"] = "dart-3.8-rc";
100234
- BuildRuntime2["Dart39rc"] = "dart-3.9-rc";
100235
- BuildRuntime2["Dart310rc"] = "dart-3.10-rc";
100236
- BuildRuntime2["Dotnet60rc"] = "dotnet-6.0-rc";
100237
- BuildRuntime2["Dotnet70rc"] = "dotnet-7.0-rc";
100238
- BuildRuntime2["Dotnet80rc"] = "dotnet-8.0-rc";
100239
- BuildRuntime2["Dotnet10rc"] = "dotnet-10-rc";
100240
- BuildRuntime2["Java80rc"] = "java-8.0-rc";
100241
- BuildRuntime2["Java110rc"] = "java-11.0-rc";
100242
- BuildRuntime2["Java170rc"] = "java-17.0-rc";
100243
- BuildRuntime2["Java180rc"] = "java-18.0-rc";
100244
- BuildRuntime2["Java210rc"] = "java-21.0-rc";
100245
- BuildRuntime2["Java22rc"] = "java-22-rc";
100246
- BuildRuntime2["Java25rc"] = "java-25-rc";
100247
- BuildRuntime2["Swift55rc"] = "swift-5.5-rc";
100248
- BuildRuntime2["Swift58rc"] = "swift-5.8-rc";
100249
- BuildRuntime2["Swift59rc"] = "swift-5.9-rc";
100250
- BuildRuntime2["Swift510rc"] = "swift-5.10-rc";
100251
- BuildRuntime2["Swift62rc"] = "swift-6.2-rc";
100252
- BuildRuntime2["Kotlin16rc"] = "kotlin-1.6-rc";
100253
- BuildRuntime2["Kotlin18rc"] = "kotlin-1.8-rc";
100254
- BuildRuntime2["Kotlin19rc"] = "kotlin-1.9-rc";
100255
- BuildRuntime2["Kotlin20rc"] = "kotlin-2.0-rc";
100256
- BuildRuntime2["Kotlin23rc"] = "kotlin-2.3-rc";
100257
- BuildRuntime2["Cpp17rc"] = "cpp-17-rc";
100258
- BuildRuntime2["Cpp20rc"] = "cpp-20-rc";
100259
- BuildRuntime2["Bun10rc"] = "bun-1.0-rc";
100260
- BuildRuntime2["Bun11rc"] = "bun-1.1-rc";
100261
- BuildRuntime2["Bun12rc"] = "bun-1.2-rc";
100262
- BuildRuntime2["Bun13rc"] = "bun-1.3-rc";
100263
- BuildRuntime2["Go123rc"] = "go-1.23-rc";
100264
- BuildRuntime2["Go124rc"] = "go-1.24-rc";
100265
- BuildRuntime2["Go125rc"] = "go-1.25-rc";
100266
- BuildRuntime2["Go126rc"] = "go-1.26-rc";
100267
- BuildRuntime2["Static1rc"] = "static-1-rc";
100268
- BuildRuntime2["Flutter324rc"] = "flutter-3.24-rc";
100269
- BuildRuntime2["Flutter327rc"] = "flutter-3.27-rc";
100270
- BuildRuntime2["Flutter329rc"] = "flutter-3.29-rc";
100271
- BuildRuntime2["Flutter332rc"] = "flutter-3.32-rc";
100272
- BuildRuntime2["Flutter335rc"] = "flutter-3.35-rc";
100273
- BuildRuntime2["Flutter338rc"] = "flutter-3.38-rc";
100274
100083
  })(BuildRuntime || (BuildRuntime = {}));
100275
100084
  var Adapter;
100276
100085
  (function(Adapter2) {
@@ -100313,6 +100122,13 @@ var ImageGravity;
100313
100122
  ImageGravity2["Bottom"] = "bottom";
100314
100123
  ImageGravity2["Bottomright"] = "bottom-right";
100315
100124
  })(ImageGravity || (ImageGravity = {}));
100125
+ var TablesDBIndexType;
100126
+ (function(TablesDBIndexType2) {
100127
+ TablesDBIndexType2["Key"] = "key";
100128
+ TablesDBIndexType2["Fulltext"] = "fulltext";
100129
+ TablesDBIndexType2["Unique"] = "unique";
100130
+ TablesDBIndexType2["Spatial"] = "spatial";
100131
+ })(TablesDBIndexType || (TablesDBIndexType = {}));
100316
100132
  var PasswordHash;
100317
100133
  (function(PasswordHash2) {
100318
100134
  PasswordHash2["Sha1"] = "sha1";
@@ -100342,6 +100158,8 @@ var DatabaseType;
100342
100158
  (function(DatabaseType2) {
100343
100159
  DatabaseType2["Legacy"] = "legacy";
100344
100160
  DatabaseType2["Tablesdb"] = "tablesdb";
100161
+ DatabaseType2["Documentsdb"] = "documentsdb";
100162
+ DatabaseType2["Vectorsdb"] = "vectorsdb";
100345
100163
  })(DatabaseType || (DatabaseType = {}));
100346
100164
  var AttributeStatus;
100347
100165
  (function(AttributeStatus2) {
@@ -100456,7 +100274,7 @@ var package_default = {
100456
100274
  type: "module",
100457
100275
  homepage: "https://appwrite.io/support",
100458
100276
  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",
100459
- version: "16.0.0",
100277
+ version: "17.0.0",
100460
100278
  license: "BSD-3-Clause",
100461
100279
  main: "dist/index.cjs",
100462
100280
  module: "dist/index.js",
@@ -100762,7 +100580,7 @@ async function packageDirectory(dirPath) {
100762
100580
  os4.tmpdir(),
100763
100581
  `appwrite-deploy-${Date.now()}.tar.gz`
100764
100582
  );
100765
- await Pn(
100583
+ await Zn(
100766
100584
  {
100767
100585
  gzip: true,
100768
100586
  file: tempFile,
@@ -100831,7 +100649,7 @@ async function downloadDeploymentCode(params) {
100831
100649
  `Failed to write deployment archive to "${compressedFileName}": ${message}`
100832
100650
  );
100833
100651
  }
100834
- ao({
100652
+ co({
100835
100653
  sync: true,
100836
100654
  cwd: resourcePath,
100837
100655
  file: compressedFileName,
@@ -101038,12 +100856,16 @@ var questionsInitProject = [
101038
100856
  choices: async () => {
101039
100857
  const client = await sdkForConsole(true);
101040
100858
  const { teams } = isCloud() ? await paginate(
101041
- async (opts = {}) => (await getOrganizationsService(opts.sdk)).list(),
100859
+ async (args) => (await getOrganizationsService(args.sdk)).list({
100860
+ queries: args.queries
100861
+ }),
101042
100862
  { sdk: client },
101043
100863
  100,
101044
100864
  "teams"
101045
100865
  ) : await paginate(
101046
- async (opts = {}) => (await getTeamsService(opts.sdk)).list(),
100866
+ async (args) => (await getTeamsService(args.sdk)).list({
100867
+ queries: args.queries
100868
+ }),
101047
100869
  { parseOutput: false, sdk: client },
101048
100870
  100,
101049
100871
  "teams"
@@ -101091,7 +100913,7 @@ var questionsInitProject = [
101091
100913
  JSON.stringify({ method: "orderDesc", attribute: "$id" })
101092
100914
  ];
101093
100915
  const { projects } = await paginate(
101094
- async () => (await getProjectsService()).list(queries),
100916
+ async (args) => (await getProjectsService()).list(args.queries),
101095
100917
  { parseOutput: false },
101096
100918
  100,
101097
100919
  "projects",
@@ -101171,7 +100993,7 @@ var questionsPullFunctions = [
101171
100993
  validate: (value) => validateRequired("function", value),
101172
100994
  choices: async () => {
101173
100995
  const { functions } = await paginate(
101174
- async () => (await getFunctionsService()).list(),
100996
+ async (args) => (await getFunctionsService()).list(args.queries),
101175
100997
  { parseOutput: false },
101176
100998
  100,
101177
100999
  "functions"
@@ -101210,7 +101032,7 @@ var questionsPullSites = [
101210
101032
  validate: (value) => validateRequired("site", value),
101211
101033
  choices: async () => {
101212
101034
  const { sites } = await paginate(
101213
- async () => (await getSitesService()).list(),
101035
+ async (args) => (await getSitesService()).list(args.queries),
101214
101036
  { parseOutput: false },
101215
101037
  100,
101216
101038
  "sites"
@@ -103158,18 +102980,9 @@ var Push = class {
103158
102980
  const functionsServiceForVars = await getFunctionsService(
103159
102981
  this.projectClient
103160
102982
  );
103161
- const { variables } = await paginate(
103162
- async (args) => {
103163
- return await functionsServiceForVars.listVariables({
103164
- functionId: args.functionId
103165
- });
103166
- },
103167
- {
103168
- functionId: func["$id"]
103169
- },
103170
- 100,
103171
- "variables"
103172
- );
102983
+ const { variables } = await functionsServiceForVars.listVariables({
102984
+ functionId: func["$id"]
102985
+ });
103173
102986
  await Promise.all(
103174
102987
  variables.map(async (variable) => {
103175
102988
  const functionsServiceDel = await getFunctionsService(
@@ -103463,18 +103276,9 @@ var Push = class {
103463
103276
  if (withVariables) {
103464
103277
  updaterRow.update({ status: "Creating variables" }).replaceSpinner(SPINNER_DOTS);
103465
103278
  const sitesServiceForVars = await getSitesService(this.projectClient);
103466
- const { variables } = await paginate(
103467
- async (args) => {
103468
- return await sitesServiceForVars.listVariables({
103469
- siteId: args.siteId
103470
- });
103471
- },
103472
- {
103473
- siteId: site["$id"]
103474
- },
103475
- 100,
103476
- "variables"
103477
- );
103279
+ const { variables } = await sitesServiceForVars.listVariables({
103280
+ siteId: site["$id"]
103281
+ });
103478
103282
  await Promise.all(
103479
103283
  variables.map(async (variable) => {
103480
103284
  const sitesServiceDel = await getSitesService(this.projectClient);