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.
@@ -13581,16 +13581,16 @@ var require_share = __commonJS({
13581
13581
  };
13582
13582
  }
13583
13583
  exports.share = share;
13584
- function handleReset(reset, on2) {
13584
+ function handleReset(reset, on) {
13585
13585
  var args = [];
13586
13586
  for (var _i2 = 2; _i2 < arguments.length; _i2++) {
13587
13587
  args[_i2 - 2] = arguments[_i2];
13588
13588
  }
13589
- if (on2 === true) {
13589
+ if (on === true) {
13590
13590
  reset();
13591
13591
  return;
13592
13592
  }
13593
- if (on2 === false) {
13593
+ if (on === false) {
13594
13594
  return;
13595
13595
  }
13596
13596
  var onSubscriber = new Subscriber_1.SafeSubscriber({
@@ -13599,7 +13599,7 @@ var require_share = __commonJS({
13599
13599
  reset();
13600
13600
  }
13601
13601
  });
13602
- return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
13602
+ return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
13603
13603
  }
13604
13604
  }
13605
13605
  });
@@ -35563,12 +35563,12 @@ var require_utils3 = __commonJS({
35563
35563
  return str;
35564
35564
  }
35565
35565
  var codeCache = {};
35566
- function addToCodeCache(name, on2, off) {
35567
- on2 = "\x1B[" + on2 + "m";
35566
+ function addToCodeCache(name, on, off) {
35567
+ on = "\x1B[" + on + "m";
35568
35568
  off = "\x1B[" + off + "m";
35569
- codeCache[on2] = { set: name, to: true };
35569
+ codeCache[on] = { set: name, to: true };
35570
35570
  codeCache[off] = { set: name, to: false };
35571
- codeCache[name] = { on: on2, off };
35571
+ codeCache[name] = { on, off };
35572
35572
  }
35573
35573
  addToCodeCache("bold", 1, 22);
35574
35574
  addToCodeCache("italics", 3, 23);
@@ -72255,6 +72255,7 @@ var require_constants6 = __commonJS({
72255
72255
  var path16 = __require("path");
72256
72256
  var WIN_SLASH = "\\\\/";
72257
72257
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
72258
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
72258
72259
  var DOT_LITERAL = "\\.";
72259
72260
  var PLUS_LITERAL = "\\+";
72260
72261
  var QMARK_LITERAL = "\\?";
@@ -72302,6 +72303,7 @@ var require_constants6 = __commonJS({
72302
72303
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
72303
72304
  };
72304
72305
  var POSIX_REGEX_SOURCE = {
72306
+ __proto__: null,
72305
72307
  alnum: "a-zA-Z0-9",
72306
72308
  alpha: "a-zA-Z",
72307
72309
  ascii: "\\x00-\\x7F",
@@ -72318,6 +72320,7 @@ var require_constants6 = __commonJS({
72318
72320
  xdigit: "A-Fa-f0-9"
72319
72321
  };
72320
72322
  module.exports = {
72323
+ DEFAULT_MAX_EXTGLOB_RECURSION,
72321
72324
  MAX_LENGTH: 1024 * 64,
72322
72325
  POSIX_REGEX_SOURCE,
72323
72326
  // regular expressions
@@ -72329,6 +72332,7 @@ var require_constants6 = __commonJS({
72329
72332
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
72330
72333
  // Replace globs with equivalent patterns to reduce parsing time.
72331
72334
  REPLACEMENTS: {
72335
+ __proto__: null,
72332
72336
  "***": "*",
72333
72337
  "**/**": "**",
72334
72338
  "**/**/**": "**"
@@ -72865,6 +72869,213 @@ var require_parse3 = __commonJS({
72865
72869
  var syntaxError = (type, char) => {
72866
72870
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
72867
72871
  };
72872
+ var splitTopLevel = (input) => {
72873
+ const parts = [];
72874
+ let bracket = 0;
72875
+ let paren = 0;
72876
+ let quote = 0;
72877
+ let value = "";
72878
+ let escaped = false;
72879
+ for (const ch of input) {
72880
+ if (escaped === true) {
72881
+ value += ch;
72882
+ escaped = false;
72883
+ continue;
72884
+ }
72885
+ if (ch === "\\") {
72886
+ value += ch;
72887
+ escaped = true;
72888
+ continue;
72889
+ }
72890
+ if (ch === '"') {
72891
+ quote = quote === 1 ? 0 : 1;
72892
+ value += ch;
72893
+ continue;
72894
+ }
72895
+ if (quote === 0) {
72896
+ if (ch === "[") {
72897
+ bracket++;
72898
+ } else if (ch === "]" && bracket > 0) {
72899
+ bracket--;
72900
+ } else if (bracket === 0) {
72901
+ if (ch === "(") {
72902
+ paren++;
72903
+ } else if (ch === ")" && paren > 0) {
72904
+ paren--;
72905
+ } else if (ch === "|" && paren === 0) {
72906
+ parts.push(value);
72907
+ value = "";
72908
+ continue;
72909
+ }
72910
+ }
72911
+ }
72912
+ value += ch;
72913
+ }
72914
+ parts.push(value);
72915
+ return parts;
72916
+ };
72917
+ var isPlainBranch = (branch) => {
72918
+ let escaped = false;
72919
+ for (const ch of branch) {
72920
+ if (escaped === true) {
72921
+ escaped = false;
72922
+ continue;
72923
+ }
72924
+ if (ch === "\\") {
72925
+ escaped = true;
72926
+ continue;
72927
+ }
72928
+ if (/[?*+@!()[\]{}]/.test(ch)) {
72929
+ return false;
72930
+ }
72931
+ }
72932
+ return true;
72933
+ };
72934
+ var normalizeSimpleBranch = (branch) => {
72935
+ let value = branch.trim();
72936
+ let changed = true;
72937
+ while (changed === true) {
72938
+ changed = false;
72939
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
72940
+ value = value.slice(2, -1);
72941
+ changed = true;
72942
+ }
72943
+ }
72944
+ if (!isPlainBranch(value)) {
72945
+ return;
72946
+ }
72947
+ return value.replace(/\\(.)/g, "$1");
72948
+ };
72949
+ var hasRepeatedCharPrefixOverlap = (branches) => {
72950
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
72951
+ for (let i = 0; i < values.length; i++) {
72952
+ for (let j2 = i + 1; j2 < values.length; j2++) {
72953
+ const a = values[i];
72954
+ const b2 = values[j2];
72955
+ const char = a[0];
72956
+ if (!char || a !== char.repeat(a.length) || b2 !== char.repeat(b2.length)) {
72957
+ continue;
72958
+ }
72959
+ if (a === b2 || a.startsWith(b2) || b2.startsWith(a)) {
72960
+ return true;
72961
+ }
72962
+ }
72963
+ }
72964
+ return false;
72965
+ };
72966
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
72967
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
72968
+ return;
72969
+ }
72970
+ let bracket = 0;
72971
+ let paren = 0;
72972
+ let quote = 0;
72973
+ let escaped = false;
72974
+ for (let i = 1; i < pattern.length; i++) {
72975
+ const ch = pattern[i];
72976
+ if (escaped === true) {
72977
+ escaped = false;
72978
+ continue;
72979
+ }
72980
+ if (ch === "\\") {
72981
+ escaped = true;
72982
+ continue;
72983
+ }
72984
+ if (ch === '"') {
72985
+ quote = quote === 1 ? 0 : 1;
72986
+ continue;
72987
+ }
72988
+ if (quote === 1) {
72989
+ continue;
72990
+ }
72991
+ if (ch === "[") {
72992
+ bracket++;
72993
+ continue;
72994
+ }
72995
+ if (ch === "]" && bracket > 0) {
72996
+ bracket--;
72997
+ continue;
72998
+ }
72999
+ if (bracket > 0) {
73000
+ continue;
73001
+ }
73002
+ if (ch === "(") {
73003
+ paren++;
73004
+ continue;
73005
+ }
73006
+ if (ch === ")") {
73007
+ paren--;
73008
+ if (paren === 0) {
73009
+ if (requireEnd === true && i !== pattern.length - 1) {
73010
+ return;
73011
+ }
73012
+ return {
73013
+ type: pattern[0],
73014
+ body: pattern.slice(2, i),
73015
+ end: i
73016
+ };
73017
+ }
73018
+ }
73019
+ }
73020
+ };
73021
+ var getStarExtglobSequenceOutput = (pattern) => {
73022
+ let index = 0;
73023
+ const chars = [];
73024
+ while (index < pattern.length) {
73025
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
73026
+ if (!match || match.type !== "*") {
73027
+ return;
73028
+ }
73029
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
73030
+ if (branches.length !== 1) {
73031
+ return;
73032
+ }
73033
+ const branch = normalizeSimpleBranch(branches[0]);
73034
+ if (!branch || branch.length !== 1) {
73035
+ return;
73036
+ }
73037
+ chars.push(branch);
73038
+ index += match.end + 1;
73039
+ }
73040
+ if (chars.length < 1) {
73041
+ return;
73042
+ }
73043
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
73044
+ return `${source}*`;
73045
+ };
73046
+ var repeatedExtglobRecursion = (pattern) => {
73047
+ let depth = 0;
73048
+ let value = pattern.trim();
73049
+ let match = parseRepeatedExtglob(value);
73050
+ while (match) {
73051
+ depth++;
73052
+ value = match.body.trim();
73053
+ match = parseRepeatedExtglob(value);
73054
+ }
73055
+ return depth;
73056
+ };
73057
+ var analyzeRepeatedExtglob = (body, options) => {
73058
+ if (options.maxExtglobRecursion === false) {
73059
+ return { risky: false };
73060
+ }
73061
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
73062
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
73063
+ if (branches.length > 1) {
73064
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
73065
+ return { risky: true };
73066
+ }
73067
+ }
73068
+ for (const branch of branches) {
73069
+ const safeOutput = getStarExtglobSequenceOutput(branch);
73070
+ if (safeOutput) {
73071
+ return { risky: true, safeOutput };
73072
+ }
73073
+ if (repeatedExtglobRecursion(branch) > max) {
73074
+ return { risky: true };
73075
+ }
73076
+ }
73077
+ return { risky: false };
73078
+ };
72868
73079
  var parse4 = (input, options) => {
72869
73080
  if (typeof input !== "string") {
72870
73081
  throw new TypeError("Expected a string");
@@ -72996,6 +73207,8 @@ var require_parse3 = __commonJS({
72996
73207
  token.prev = prev;
72997
73208
  token.parens = state.parens;
72998
73209
  token.output = state.output;
73210
+ token.startIndex = state.index;
73211
+ token.tokensIndex = tokens2.length;
72999
73212
  const output = (opts.capture ? "(" : "") + token.open;
73000
73213
  increment("parens");
73001
73214
  push2({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -73003,6 +73216,26 @@ var require_parse3 = __commonJS({
73003
73216
  extglobs.push(token);
73004
73217
  };
73005
73218
  const extglobClose = (token) => {
73219
+ const literal2 = input.slice(token.startIndex, state.index + 1);
73220
+ const body = input.slice(token.startIndex + 2, state.index);
73221
+ const analysis = analyzeRepeatedExtglob(body, opts);
73222
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
73223
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
73224
+ const open = tokens2[token.tokensIndex];
73225
+ open.type = "text";
73226
+ open.value = literal2;
73227
+ open.output = safeOutput || utils.escapeRegex(literal2);
73228
+ for (let i = token.tokensIndex + 1; i < tokens2.length; i++) {
73229
+ tokens2[i].value = "";
73230
+ tokens2[i].output = "";
73231
+ delete tokens2[i].suffix;
73232
+ }
73233
+ state.output = token.output + open.output;
73234
+ state.backtrack = true;
73235
+ push2({ type: "paren", extglob: true, value, output: "" });
73236
+ decrement("parens");
73237
+ return;
73238
+ }
73006
73239
  let output = token.close + (opts.capture ? ")" : "");
73007
73240
  let rest;
73008
73241
  if (token.type === "negate") {
@@ -73995,6 +74228,7 @@ var require_constants7 = __commonJS({
73995
74228
  var path16 = __require("path");
73996
74229
  var WIN_SLASH = "\\\\/";
73997
74230
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
74231
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
73998
74232
  var DOT_LITERAL = "\\.";
73999
74233
  var PLUS_LITERAL = "\\+";
74000
74234
  var QMARK_LITERAL = "\\?";
@@ -74042,6 +74276,7 @@ var require_constants7 = __commonJS({
74042
74276
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
74043
74277
  };
74044
74278
  var POSIX_REGEX_SOURCE = {
74279
+ __proto__: null,
74045
74280
  alnum: "a-zA-Z0-9",
74046
74281
  alpha: "a-zA-Z",
74047
74282
  ascii: "\\x00-\\x7F",
@@ -74058,6 +74293,7 @@ var require_constants7 = __commonJS({
74058
74293
  xdigit: "A-Fa-f0-9"
74059
74294
  };
74060
74295
  module.exports = {
74296
+ DEFAULT_MAX_EXTGLOB_RECURSION,
74061
74297
  MAX_LENGTH: 1024 * 64,
74062
74298
  POSIX_REGEX_SOURCE,
74063
74299
  // regular expressions
@@ -74069,6 +74305,7 @@ var require_constants7 = __commonJS({
74069
74305
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
74070
74306
  // Replace globs with equivalent patterns to reduce parsing time.
74071
74307
  REPLACEMENTS: {
74308
+ __proto__: null,
74072
74309
  "***": "*",
74073
74310
  "**/**": "**",
74074
74311
  "**/**/**": "**"
@@ -74605,6 +74842,213 @@ var require_parse4 = __commonJS({
74605
74842
  var syntaxError = (type, char) => {
74606
74843
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
74607
74844
  };
74845
+ var splitTopLevel = (input) => {
74846
+ const parts = [];
74847
+ let bracket = 0;
74848
+ let paren = 0;
74849
+ let quote = 0;
74850
+ let value = "";
74851
+ let escaped = false;
74852
+ for (const ch of input) {
74853
+ if (escaped === true) {
74854
+ value += ch;
74855
+ escaped = false;
74856
+ continue;
74857
+ }
74858
+ if (ch === "\\") {
74859
+ value += ch;
74860
+ escaped = true;
74861
+ continue;
74862
+ }
74863
+ if (ch === '"') {
74864
+ quote = quote === 1 ? 0 : 1;
74865
+ value += ch;
74866
+ continue;
74867
+ }
74868
+ if (quote === 0) {
74869
+ if (ch === "[") {
74870
+ bracket++;
74871
+ } else if (ch === "]" && bracket > 0) {
74872
+ bracket--;
74873
+ } else if (bracket === 0) {
74874
+ if (ch === "(") {
74875
+ paren++;
74876
+ } else if (ch === ")" && paren > 0) {
74877
+ paren--;
74878
+ } else if (ch === "|" && paren === 0) {
74879
+ parts.push(value);
74880
+ value = "";
74881
+ continue;
74882
+ }
74883
+ }
74884
+ }
74885
+ value += ch;
74886
+ }
74887
+ parts.push(value);
74888
+ return parts;
74889
+ };
74890
+ var isPlainBranch = (branch) => {
74891
+ let escaped = false;
74892
+ for (const ch of branch) {
74893
+ if (escaped === true) {
74894
+ escaped = false;
74895
+ continue;
74896
+ }
74897
+ if (ch === "\\") {
74898
+ escaped = true;
74899
+ continue;
74900
+ }
74901
+ if (/[?*+@!()[\]{}]/.test(ch)) {
74902
+ return false;
74903
+ }
74904
+ }
74905
+ return true;
74906
+ };
74907
+ var normalizeSimpleBranch = (branch) => {
74908
+ let value = branch.trim();
74909
+ let changed = true;
74910
+ while (changed === true) {
74911
+ changed = false;
74912
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
74913
+ value = value.slice(2, -1);
74914
+ changed = true;
74915
+ }
74916
+ }
74917
+ if (!isPlainBranch(value)) {
74918
+ return;
74919
+ }
74920
+ return value.replace(/\\(.)/g, "$1");
74921
+ };
74922
+ var hasRepeatedCharPrefixOverlap = (branches) => {
74923
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
74924
+ for (let i = 0; i < values.length; i++) {
74925
+ for (let j2 = i + 1; j2 < values.length; j2++) {
74926
+ const a = values[i];
74927
+ const b2 = values[j2];
74928
+ const char = a[0];
74929
+ if (!char || a !== char.repeat(a.length) || b2 !== char.repeat(b2.length)) {
74930
+ continue;
74931
+ }
74932
+ if (a === b2 || a.startsWith(b2) || b2.startsWith(a)) {
74933
+ return true;
74934
+ }
74935
+ }
74936
+ }
74937
+ return false;
74938
+ };
74939
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
74940
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
74941
+ return;
74942
+ }
74943
+ let bracket = 0;
74944
+ let paren = 0;
74945
+ let quote = 0;
74946
+ let escaped = false;
74947
+ for (let i = 1; i < pattern.length; i++) {
74948
+ const ch = pattern[i];
74949
+ if (escaped === true) {
74950
+ escaped = false;
74951
+ continue;
74952
+ }
74953
+ if (ch === "\\") {
74954
+ escaped = true;
74955
+ continue;
74956
+ }
74957
+ if (ch === '"') {
74958
+ quote = quote === 1 ? 0 : 1;
74959
+ continue;
74960
+ }
74961
+ if (quote === 1) {
74962
+ continue;
74963
+ }
74964
+ if (ch === "[") {
74965
+ bracket++;
74966
+ continue;
74967
+ }
74968
+ if (ch === "]" && bracket > 0) {
74969
+ bracket--;
74970
+ continue;
74971
+ }
74972
+ if (bracket > 0) {
74973
+ continue;
74974
+ }
74975
+ if (ch === "(") {
74976
+ paren++;
74977
+ continue;
74978
+ }
74979
+ if (ch === ")") {
74980
+ paren--;
74981
+ if (paren === 0) {
74982
+ if (requireEnd === true && i !== pattern.length - 1) {
74983
+ return;
74984
+ }
74985
+ return {
74986
+ type: pattern[0],
74987
+ body: pattern.slice(2, i),
74988
+ end: i
74989
+ };
74990
+ }
74991
+ }
74992
+ }
74993
+ };
74994
+ var getStarExtglobSequenceOutput = (pattern) => {
74995
+ let index = 0;
74996
+ const chars = [];
74997
+ while (index < pattern.length) {
74998
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
74999
+ if (!match || match.type !== "*") {
75000
+ return;
75001
+ }
75002
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
75003
+ if (branches.length !== 1) {
75004
+ return;
75005
+ }
75006
+ const branch = normalizeSimpleBranch(branches[0]);
75007
+ if (!branch || branch.length !== 1) {
75008
+ return;
75009
+ }
75010
+ chars.push(branch);
75011
+ index += match.end + 1;
75012
+ }
75013
+ if (chars.length < 1) {
75014
+ return;
75015
+ }
75016
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
75017
+ return `${source}*`;
75018
+ };
75019
+ var repeatedExtglobRecursion = (pattern) => {
75020
+ let depth = 0;
75021
+ let value = pattern.trim();
75022
+ let match = parseRepeatedExtglob(value);
75023
+ while (match) {
75024
+ depth++;
75025
+ value = match.body.trim();
75026
+ match = parseRepeatedExtglob(value);
75027
+ }
75028
+ return depth;
75029
+ };
75030
+ var analyzeRepeatedExtglob = (body, options) => {
75031
+ if (options.maxExtglobRecursion === false) {
75032
+ return { risky: false };
75033
+ }
75034
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
75035
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
75036
+ if (branches.length > 1) {
75037
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
75038
+ return { risky: true };
75039
+ }
75040
+ }
75041
+ for (const branch of branches) {
75042
+ const safeOutput = getStarExtglobSequenceOutput(branch);
75043
+ if (safeOutput) {
75044
+ return { risky: true, safeOutput };
75045
+ }
75046
+ if (repeatedExtglobRecursion(branch) > max) {
75047
+ return { risky: true };
75048
+ }
75049
+ }
75050
+ return { risky: false };
75051
+ };
74608
75052
  var parse4 = (input, options) => {
74609
75053
  if (typeof input !== "string") {
74610
75054
  throw new TypeError("Expected a string");
@@ -74736,6 +75180,8 @@ var require_parse4 = __commonJS({
74736
75180
  token.prev = prev;
74737
75181
  token.parens = state.parens;
74738
75182
  token.output = state.output;
75183
+ token.startIndex = state.index;
75184
+ token.tokensIndex = tokens2.length;
74739
75185
  const output = (opts.capture ? "(" : "") + token.open;
74740
75186
  increment("parens");
74741
75187
  push2({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -74743,6 +75189,26 @@ var require_parse4 = __commonJS({
74743
75189
  extglobs.push(token);
74744
75190
  };
74745
75191
  const extglobClose = (token) => {
75192
+ const literal2 = input.slice(token.startIndex, state.index + 1);
75193
+ const body = input.slice(token.startIndex + 2, state.index);
75194
+ const analysis = analyzeRepeatedExtglob(body, opts);
75195
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
75196
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
75197
+ const open = tokens2[token.tokensIndex];
75198
+ open.type = "text";
75199
+ open.value = literal2;
75200
+ open.output = safeOutput || utils.escapeRegex(literal2);
75201
+ for (let i = token.tokensIndex + 1; i < tokens2.length; i++) {
75202
+ tokens2[i].value = "";
75203
+ tokens2[i].output = "";
75204
+ delete tokens2[i].suffix;
75205
+ }
75206
+ state.output = token.output + open.output;
75207
+ state.backtrack = true;
75208
+ push2({ type: "paren", extglob: true, value, output: "" });
75209
+ decrement("parens");
75210
+ return;
75211
+ }
74746
75212
  let output = token.close + (opts.capture ? ")" : "");
74747
75213
  let rest;
74748
75214
  if (token.type === "negate") {
@@ -85465,7 +85931,7 @@ var package_default = {
85465
85931
  type: "module",
85466
85932
  homepage: "https://appwrite.io/support",
85467
85933
  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",
85468
- version: "16.0.0",
85934
+ version: "17.0.0",
85469
85935
  license: "BSD-3-Clause",
85470
85936
  main: "dist/index.cjs",
85471
85937
  module: "dist/index.js",
@@ -99753,7 +100219,7 @@ import childProcess from "child_process";
99753
100219
  // lib/constants.ts
99754
100220
  var SDK_TITLE = "Appwrite";
99755
100221
  var SDK_TITLE_LOWER = "appwrite";
99756
- var SDK_VERSION = "16.0.0";
100222
+ var SDK_VERSION = "17.0.0";
99757
100223
  var SDK_NAME = "Command Line";
99758
100224
  var SDK_PLATFORM = "console";
99759
100225
  var SDK_LANGUAGE = "cli";
@@ -100784,6 +101250,9 @@ var Client = class _Client {
100784
101250
  locale: "",
100785
101251
  mode: "",
100786
101252
  cookie: "",
101253
+ impersonateuserid: "",
101254
+ impersonateuseremail: "",
101255
+ impersonateuserphone: "",
100787
101256
  platform: "",
100788
101257
  selfSigned: false,
100789
101258
  session: void 0
@@ -100792,8 +101261,8 @@ var Client = class _Client {
100792
101261
  "x-sdk-name": "Console",
100793
101262
  "x-sdk-platform": "console",
100794
101263
  "x-sdk-language": "web",
100795
- "x-sdk-version": "6.0.0",
100796
- "X-Appwrite-Response-Format": "1.8.0"
101264
+ "x-sdk-version": "8.0.0",
101265
+ "X-Appwrite-Response-Format": "1.9.0"
100797
101266
  };
100798
101267
  this.realtime = {
100799
101268
  socket: void 0,
@@ -101116,6 +101585,48 @@ var Client = class _Client {
101116
101585
  this.config.cookie = value;
101117
101586
  return this;
101118
101587
  }
101588
+ /**
101589
+ * Set ImpersonateUserId
101590
+ *
101591
+ * 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.
101592
+ *
101593
+ * @param value string
101594
+ *
101595
+ * @return {this}
101596
+ */
101597
+ setImpersonateUserId(value) {
101598
+ this.headers["X-Appwrite-Impersonate-User-Id"] = value;
101599
+ this.config.impersonateuserid = value;
101600
+ return this;
101601
+ }
101602
+ /**
101603
+ * Set ImpersonateUserEmail
101604
+ *
101605
+ * 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.
101606
+ *
101607
+ * @param value string
101608
+ *
101609
+ * @return {this}
101610
+ */
101611
+ setImpersonateUserEmail(value) {
101612
+ this.headers["X-Appwrite-Impersonate-User-Email"] = value;
101613
+ this.config.impersonateuseremail = value;
101614
+ return this;
101615
+ }
101616
+ /**
101617
+ * Set ImpersonateUserPhone
101618
+ *
101619
+ * 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.
101620
+ *
101621
+ * @param value string
101622
+ *
101623
+ * @return {this}
101624
+ */
101625
+ setImpersonateUserPhone(value) {
101626
+ this.headers["X-Appwrite-Impersonate-User-Phone"] = value;
101627
+ this.config.impersonateuserphone = value;
101628
+ return this;
101629
+ }
101119
101630
  /**
101120
101631
  * Set Platform
101121
101632
  *
@@ -101237,9 +101748,9 @@ var Client = class _Client {
101237
101748
  }
101238
101749
  return { uri: url2.toString(), options };
101239
101750
  }
101240
- chunkedUpload(method, url2, headers = {}, originalPayload = {}, onProgress) {
101241
- var _a3;
101242
- return __awaiter(this, void 0, void 0, function* () {
101751
+ chunkedUpload(method_1, url_1) {
101752
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, originalPayload = {}, onProgress) {
101753
+ var _a3;
101243
101754
  const [fileParam, file2] = (_a3 = Object.entries(originalPayload).find(([_2, value]) => value instanceof File)) !== null && _a3 !== void 0 ? _a3 : [];
101244
101755
  if (!file2 || !fileParam) {
101245
101756
  throw new Error("File not found in payload");
@@ -101281,9 +101792,9 @@ var Client = class _Client {
101281
101792
  return this.call("GET", new URL(this.config.endpoint + "/ping"));
101282
101793
  });
101283
101794
  }
101284
- call(method, url2, headers = {}, params = {}, responseType = "json") {
101285
- var _a3, _b;
101286
- return __awaiter(this, void 0, void 0, function* () {
101795
+ call(method_1, url_1) {
101796
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, params = {}, responseType = "json") {
101797
+ var _a3, _b;
101287
101798
  const { uri, options } = this.prepareRequest(method, url2, headers, params);
101288
101799
  let data = null;
101289
101800
  const response = yield fetch(uri, options);
@@ -113770,15 +114281,26 @@ var Project = class {
113770
114281
  const apiHeaders = {};
113771
114282
  return this.client.call("get", uri, apiHeaders, payload);
113772
114283
  }
113773
- /**
113774
- * Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.
113775
- *
113776
- * @throws {AppwriteException}
113777
- * @returns {Promise<Models.VariableList>}
113778
- */
113779
- listVariables() {
114284
+ listVariables(paramsOrFirst, ...rest) {
114285
+ let params;
114286
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
114287
+ params = paramsOrFirst || {};
114288
+ } else {
114289
+ params = {
114290
+ queries: paramsOrFirst,
114291
+ total: rest[0]
114292
+ };
114293
+ }
114294
+ const queries = params.queries;
114295
+ const total = params.total;
113780
114296
  const apiPath = "/project/variables";
113781
114297
  const payload = {};
114298
+ if (typeof queries !== "undefined") {
114299
+ payload["queries"] = queries;
114300
+ }
114301
+ if (typeof total !== "undefined") {
114302
+ payload["total"] = total;
114303
+ }
113782
114304
  const uri = new URL(this.client.config.endpoint + apiPath);
113783
114305
  const apiHeaders = {};
113784
114306
  return this.client.call("get", uri, apiHeaders, payload);
@@ -113789,14 +114311,19 @@ var Project = class {
113789
114311
  params = paramsOrFirst || {};
113790
114312
  } else {
113791
114313
  params = {
113792
- key: paramsOrFirst,
113793
- value: rest[0],
113794
- secret: rest[1]
114314
+ variableId: paramsOrFirst,
114315
+ key: rest[0],
114316
+ value: rest[1],
114317
+ secret: rest[2]
113795
114318
  };
113796
114319
  }
114320
+ const variableId = params.variableId;
113797
114321
  const key = params.key;
113798
114322
  const value = params.value;
113799
114323
  const secret = params.secret;
114324
+ if (typeof variableId === "undefined") {
114325
+ throw new AppwriteException('Missing required parameter: "variableId"');
114326
+ }
113800
114327
  if (typeof key === "undefined") {
113801
114328
  throw new AppwriteException('Missing required parameter: "key"');
113802
114329
  }
@@ -113805,6 +114332,9 @@ var Project = class {
113805
114332
  }
113806
114333
  const apiPath = "/project/variables";
113807
114334
  const payload = {};
114335
+ if (typeof variableId !== "undefined") {
114336
+ payload["variableId"] = variableId;
114337
+ }
113808
114338
  if (typeof key !== "undefined") {
113809
114339
  payload["key"] = key;
113810
114340
  }
@@ -113858,9 +114388,6 @@ var Project = class {
113858
114388
  if (typeof variableId === "undefined") {
113859
114389
  throw new AppwriteException('Missing required parameter: "variableId"');
113860
114390
  }
113861
- if (typeof key === "undefined") {
113862
- throw new AppwriteException('Missing required parameter: "key"');
113863
- }
113864
114391
  const apiPath = "/project/variables/{variableId}".replace("{variableId}", variableId);
113865
114392
  const payload = {};
113866
114393
  if (typeof key !== "undefined") {
@@ -122358,6 +122885,35 @@ var Users = class {
122358
122885
  };
122359
122886
  return this.client.call("patch", uri, apiHeaders, payload);
122360
122887
  }
122888
+ updateImpersonator(paramsOrFirst, ...rest) {
122889
+ let params;
122890
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
122891
+ params = paramsOrFirst || {};
122892
+ } else {
122893
+ params = {
122894
+ userId: paramsOrFirst,
122895
+ impersonator: rest[0]
122896
+ };
122897
+ }
122898
+ const userId = params.userId;
122899
+ const impersonator = params.impersonator;
122900
+ if (typeof userId === "undefined") {
122901
+ throw new AppwriteException('Missing required parameter: "userId"');
122902
+ }
122903
+ if (typeof impersonator === "undefined") {
122904
+ throw new AppwriteException('Missing required parameter: "impersonator"');
122905
+ }
122906
+ const apiPath = "/users/{userId}/impersonator".replace("{userId}", userId);
122907
+ const payload = {};
122908
+ if (typeof impersonator !== "undefined") {
122909
+ payload["impersonator"] = impersonator;
122910
+ }
122911
+ const uri = new URL(this.client.config.endpoint + apiPath);
122912
+ const apiHeaders = {
122913
+ "content-type": "application/json"
122914
+ };
122915
+ return this.client.call("patch", uri, apiHeaders, payload);
122916
+ }
122361
122917
  createJWT(paramsOrFirst, ...rest) {
122362
122918
  let params;
122363
122919
  if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -123826,7 +124382,7 @@ Permission.delete = (role) => {
123826
124382
  };
123827
124383
  var _a2;
123828
124384
  var _ID_hexTimestamp;
123829
- var ID = class _ID {
124385
+ var ID = class {
123830
124386
  /**
123831
124387
  * Uses the provided ID as the ID for the resource.
123832
124388
  *
@@ -123843,7 +124399,7 @@ var ID = class _ID {
123843
124399
  * @returns {string}
123844
124400
  */
123845
124401
  static unique(padding = 7) {
123846
- const baseId = __classPrivateFieldGet(_ID, _a2, "m", _ID_hexTimestamp).call(_ID);
124402
+ const baseId = __classPrivateFieldGet(_a2, _a2, "m", _ID_hexTimestamp).call(_a2);
123847
124403
  let randomPadding = "";
123848
124404
  for (let i = 0; i < padding; i++) {
123849
124405
  const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
@@ -123996,11 +124552,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
123996
124552
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
123997
124553
  var Scopes;
123998
124554
  (function(Scopes3) {
124555
+ Scopes3["Account"] = "account";
124556
+ Scopes3["TeamsRead"] = "teams.read";
124557
+ Scopes3["TeamsWrite"] = "teams.write";
123999
124558
  Scopes3["SessionsWrite"] = "sessions.write";
124000
124559
  Scopes3["UsersRead"] = "users.read";
124001
124560
  Scopes3["UsersWrite"] = "users.write";
124002
- Scopes3["TeamsRead"] = "teams.read";
124003
- Scopes3["TeamsWrite"] = "teams.write";
124004
124561
  Scopes3["DatabasesRead"] = "databases.read";
124005
124562
  Scopes3["DatabasesWrite"] = "databases.write";
124006
124563
  Scopes3["CollectionsRead"] = "collections.read";
@@ -124055,6 +124612,8 @@ var Scopes;
124055
124612
  Scopes3["TokensWrite"] = "tokens.write";
124056
124613
  Scopes3["WebhooksRead"] = "webhooks.read";
124057
124614
  Scopes3["WebhooksWrite"] = "webhooks.write";
124615
+ Scopes3["ProjectRead"] = "project.read";
124616
+ Scopes3["ProjectWrite"] = "project.write";
124058
124617
  Scopes3["PoliciesWrite"] = "policies.write";
124059
124618
  Scopes3["PoliciesRead"] = "policies.read";
124060
124619
  Scopes3["ArchivesRead"] = "archives.read";
@@ -124064,6 +124623,14 @@ var Scopes;
124064
124623
  Scopes3["DomainsRead"] = "domains.read";
124065
124624
  Scopes3["DomainsWrite"] = "domains.write";
124066
124625
  Scopes3["EventsRead"] = "events.read";
124626
+ Scopes3["PlatformsRead"] = "platforms.read";
124627
+ Scopes3["PlatformsWrite"] = "platforms.write";
124628
+ Scopes3["ProjectsRead"] = "projects.read";
124629
+ Scopes3["ProjectsWrite"] = "projects.write";
124630
+ Scopes3["KeysRead"] = "keys.read";
124631
+ Scopes3["KeysWrite"] = "keys.write";
124632
+ Scopes3["DevKeysRead"] = "devKeys.read";
124633
+ Scopes3["DevKeysWrite"] = "devKeys.write";
124067
124634
  })(Scopes || (Scopes = {}));
124068
124635
  var AuthenticatorType;
124069
124636
  (function(AuthenticatorType2) {
@@ -124816,6 +125383,9 @@ var ImageFormat;
124816
125383
  var BackupServices;
124817
125384
  (function(BackupServices2) {
124818
125385
  BackupServices2["Databases"] = "databases";
125386
+ BackupServices2["Tablesdb"] = "tablesdb";
125387
+ BackupServices2["Documentsdb"] = "documentsdb";
125388
+ BackupServices2["Vectorsdb"] = "vectorsdb";
124819
125389
  BackupServices2["Functions"] = "functions";
124820
125390
  BackupServices2["Storage"] = "storage";
124821
125391
  })(BackupServices || (BackupServices = {}));
@@ -124847,13 +125417,13 @@ var RelationMutate;
124847
125417
  RelationMutate2["Restrict"] = "restrict";
124848
125418
  RelationMutate2["SetNull"] = "setNull";
124849
125419
  })(RelationMutate || (RelationMutate = {}));
124850
- var IndexType;
124851
- (function(IndexType2) {
124852
- IndexType2["Key"] = "key";
124853
- IndexType2["Fulltext"] = "fulltext";
124854
- IndexType2["Unique"] = "unique";
124855
- IndexType2["Spatial"] = "spatial";
124856
- })(IndexType || (IndexType = {}));
125420
+ var DatabasesIndexType;
125421
+ (function(DatabasesIndexType2) {
125422
+ DatabasesIndexType2["Key"] = "key";
125423
+ DatabasesIndexType2["Fulltext"] = "fulltext";
125424
+ DatabasesIndexType2["Unique"] = "unique";
125425
+ DatabasesIndexType2["Spatial"] = "spatial";
125426
+ })(DatabasesIndexType || (DatabasesIndexType = {}));
124857
125427
  var OrderBy;
124858
125428
  (function(OrderBy2) {
124859
125429
  OrderBy2["Asc"] = "asc";
@@ -124959,92 +125529,6 @@ var Runtime;
124959
125529
  Runtime2["Flutter332"] = "flutter-3.32";
124960
125530
  Runtime2["Flutter335"] = "flutter-3.35";
124961
125531
  Runtime2["Flutter338"] = "flutter-3.38";
124962
- Runtime2["Node145rc"] = "node-14.5-rc";
124963
- Runtime2["Node160rc"] = "node-16.0-rc";
124964
- Runtime2["Node180rc"] = "node-18.0-rc";
124965
- Runtime2["Node190rc"] = "node-19.0-rc";
124966
- Runtime2["Node200rc"] = "node-20.0-rc";
124967
- Runtime2["Node210rc"] = "node-21.0-rc";
124968
- Runtime2["Node22rc"] = "node-22-rc";
124969
- Runtime2["Node23rc"] = "node-23-rc";
124970
- Runtime2["Node24rc"] = "node-24-rc";
124971
- Runtime2["Node25rc"] = "node-25-rc";
124972
- Runtime2["Php80rc"] = "php-8.0-rc";
124973
- Runtime2["Php81rc"] = "php-8.1-rc";
124974
- Runtime2["Php82rc"] = "php-8.2-rc";
124975
- Runtime2["Php83rc"] = "php-8.3-rc";
124976
- Runtime2["Php84rc"] = "php-8.4-rc";
124977
- Runtime2["Ruby30rc"] = "ruby-3.0-rc";
124978
- Runtime2["Ruby31rc"] = "ruby-3.1-rc";
124979
- Runtime2["Ruby32rc"] = "ruby-3.2-rc";
124980
- Runtime2["Ruby33rc"] = "ruby-3.3-rc";
124981
- Runtime2["Ruby34rc"] = "ruby-3.4-rc";
124982
- Runtime2["Ruby40rc"] = "ruby-4.0-rc";
124983
- Runtime2["Python38rc"] = "python-3.8-rc";
124984
- Runtime2["Python39rc"] = "python-3.9-rc";
124985
- Runtime2["Python310rc"] = "python-3.10-rc";
124986
- Runtime2["Python311rc"] = "python-3.11-rc";
124987
- Runtime2["Python312rc"] = "python-3.12-rc";
124988
- Runtime2["Python313rc"] = "python-3.13-rc";
124989
- Runtime2["Python314rc"] = "python-3.14-rc";
124990
- Runtime2["Pythonml311rc"] = "python-ml-3.11-rc";
124991
- Runtime2["Pythonml312rc"] = "python-ml-3.12-rc";
124992
- Runtime2["Pythonml313rc"] = "python-ml-3.13-rc";
124993
- Runtime2["Deno140rc"] = "deno-1.40-rc";
124994
- Runtime2["Deno146rc"] = "deno-1.46-rc";
124995
- Runtime2["Deno20rc"] = "deno-2.0-rc";
124996
- Runtime2["Deno25rc"] = "deno-2.5-rc";
124997
- Runtime2["Deno26rc"] = "deno-2.6-rc";
124998
- Runtime2["Dart215rc"] = "dart-2.15-rc";
124999
- Runtime2["Dart216rc"] = "dart-2.16-rc";
125000
- Runtime2["Dart217rc"] = "dart-2.17-rc";
125001
- Runtime2["Dart218rc"] = "dart-2.18-rc";
125002
- Runtime2["Dart219rc"] = "dart-2.19-rc";
125003
- Runtime2["Dart30rc"] = "dart-3.0-rc";
125004
- Runtime2["Dart31rc"] = "dart-3.1-rc";
125005
- Runtime2["Dart33rc"] = "dart-3.3-rc";
125006
- Runtime2["Dart35rc"] = "dart-3.5-rc";
125007
- Runtime2["Dart38rc"] = "dart-3.8-rc";
125008
- Runtime2["Dart39rc"] = "dart-3.9-rc";
125009
- Runtime2["Dart310rc"] = "dart-3.10-rc";
125010
- Runtime2["Dotnet60rc"] = "dotnet-6.0-rc";
125011
- Runtime2["Dotnet70rc"] = "dotnet-7.0-rc";
125012
- Runtime2["Dotnet80rc"] = "dotnet-8.0-rc";
125013
- Runtime2["Dotnet10rc"] = "dotnet-10-rc";
125014
- Runtime2["Java80rc"] = "java-8.0-rc";
125015
- Runtime2["Java110rc"] = "java-11.0-rc";
125016
- Runtime2["Java170rc"] = "java-17.0-rc";
125017
- Runtime2["Java180rc"] = "java-18.0-rc";
125018
- Runtime2["Java210rc"] = "java-21.0-rc";
125019
- Runtime2["Java22rc"] = "java-22-rc";
125020
- Runtime2["Java25rc"] = "java-25-rc";
125021
- Runtime2["Swift55rc"] = "swift-5.5-rc";
125022
- Runtime2["Swift58rc"] = "swift-5.8-rc";
125023
- Runtime2["Swift59rc"] = "swift-5.9-rc";
125024
- Runtime2["Swift510rc"] = "swift-5.10-rc";
125025
- Runtime2["Swift62rc"] = "swift-6.2-rc";
125026
- Runtime2["Kotlin16rc"] = "kotlin-1.6-rc";
125027
- Runtime2["Kotlin18rc"] = "kotlin-1.8-rc";
125028
- Runtime2["Kotlin19rc"] = "kotlin-1.9-rc";
125029
- Runtime2["Kotlin20rc"] = "kotlin-2.0-rc";
125030
- Runtime2["Kotlin23rc"] = "kotlin-2.3-rc";
125031
- Runtime2["Cpp17rc"] = "cpp-17-rc";
125032
- Runtime2["Cpp20rc"] = "cpp-20-rc";
125033
- Runtime2["Bun10rc"] = "bun-1.0-rc";
125034
- Runtime2["Bun11rc"] = "bun-1.1-rc";
125035
- Runtime2["Bun12rc"] = "bun-1.2-rc";
125036
- Runtime2["Bun13rc"] = "bun-1.3-rc";
125037
- Runtime2["Go123rc"] = "go-1.23-rc";
125038
- Runtime2["Go124rc"] = "go-1.24-rc";
125039
- Runtime2["Go125rc"] = "go-1.25-rc";
125040
- Runtime2["Go126rc"] = "go-1.26-rc";
125041
- Runtime2["Static1rc"] = "static-1-rc";
125042
- Runtime2["Flutter324rc"] = "flutter-3.24-rc";
125043
- Runtime2["Flutter327rc"] = "flutter-3.27-rc";
125044
- Runtime2["Flutter329rc"] = "flutter-3.29-rc";
125045
- Runtime2["Flutter332rc"] = "flutter-3.32-rc";
125046
- Runtime2["Flutter335rc"] = "flutter-3.35-rc";
125047
- Runtime2["Flutter338rc"] = "flutter-3.38-rc";
125048
125532
  })(Runtime || (Runtime = {}));
125049
125533
  var Runtimes;
125050
125534
  (function(Runtimes2) {
@@ -125134,109 +125618,28 @@ var Runtimes;
125134
125618
  Runtimes2["Flutter332"] = "flutter-3.32";
125135
125619
  Runtimes2["Flutter335"] = "flutter-3.35";
125136
125620
  Runtimes2["Flutter338"] = "flutter-3.38";
125137
- Runtimes2["Node145rc"] = "node-14.5-rc";
125138
- Runtimes2["Node160rc"] = "node-16.0-rc";
125139
- Runtimes2["Node180rc"] = "node-18.0-rc";
125140
- Runtimes2["Node190rc"] = "node-19.0-rc";
125141
- Runtimes2["Node200rc"] = "node-20.0-rc";
125142
- Runtimes2["Node210rc"] = "node-21.0-rc";
125143
- Runtimes2["Node22rc"] = "node-22-rc";
125144
- Runtimes2["Node23rc"] = "node-23-rc";
125145
- Runtimes2["Node24rc"] = "node-24-rc";
125146
- Runtimes2["Node25rc"] = "node-25-rc";
125147
- Runtimes2["Php80rc"] = "php-8.0-rc";
125148
- Runtimes2["Php81rc"] = "php-8.1-rc";
125149
- Runtimes2["Php82rc"] = "php-8.2-rc";
125150
- Runtimes2["Php83rc"] = "php-8.3-rc";
125151
- Runtimes2["Php84rc"] = "php-8.4-rc";
125152
- Runtimes2["Ruby30rc"] = "ruby-3.0-rc";
125153
- Runtimes2["Ruby31rc"] = "ruby-3.1-rc";
125154
- Runtimes2["Ruby32rc"] = "ruby-3.2-rc";
125155
- Runtimes2["Ruby33rc"] = "ruby-3.3-rc";
125156
- Runtimes2["Ruby34rc"] = "ruby-3.4-rc";
125157
- Runtimes2["Ruby40rc"] = "ruby-4.0-rc";
125158
- Runtimes2["Python38rc"] = "python-3.8-rc";
125159
- Runtimes2["Python39rc"] = "python-3.9-rc";
125160
- Runtimes2["Python310rc"] = "python-3.10-rc";
125161
- Runtimes2["Python311rc"] = "python-3.11-rc";
125162
- Runtimes2["Python312rc"] = "python-3.12-rc";
125163
- Runtimes2["Python313rc"] = "python-3.13-rc";
125164
- Runtimes2["Python314rc"] = "python-3.14-rc";
125165
- Runtimes2["Pythonml311rc"] = "python-ml-3.11-rc";
125166
- Runtimes2["Pythonml312rc"] = "python-ml-3.12-rc";
125167
- Runtimes2["Pythonml313rc"] = "python-ml-3.13-rc";
125168
- Runtimes2["Deno140rc"] = "deno-1.40-rc";
125169
- Runtimes2["Deno146rc"] = "deno-1.46-rc";
125170
- Runtimes2["Deno20rc"] = "deno-2.0-rc";
125171
- Runtimes2["Deno25rc"] = "deno-2.5-rc";
125172
- Runtimes2["Deno26rc"] = "deno-2.6-rc";
125173
- Runtimes2["Dart215rc"] = "dart-2.15-rc";
125174
- Runtimes2["Dart216rc"] = "dart-2.16-rc";
125175
- Runtimes2["Dart217rc"] = "dart-2.17-rc";
125176
- Runtimes2["Dart218rc"] = "dart-2.18-rc";
125177
- Runtimes2["Dart219rc"] = "dart-2.19-rc";
125178
- Runtimes2["Dart30rc"] = "dart-3.0-rc";
125179
- Runtimes2["Dart31rc"] = "dart-3.1-rc";
125180
- Runtimes2["Dart33rc"] = "dart-3.3-rc";
125181
- Runtimes2["Dart35rc"] = "dart-3.5-rc";
125182
- Runtimes2["Dart38rc"] = "dart-3.8-rc";
125183
- Runtimes2["Dart39rc"] = "dart-3.9-rc";
125184
- Runtimes2["Dart310rc"] = "dart-3.10-rc";
125185
- Runtimes2["Dotnet60rc"] = "dotnet-6.0-rc";
125186
- Runtimes2["Dotnet70rc"] = "dotnet-7.0-rc";
125187
- Runtimes2["Dotnet80rc"] = "dotnet-8.0-rc";
125188
- Runtimes2["Dotnet10rc"] = "dotnet-10-rc";
125189
- Runtimes2["Java80rc"] = "java-8.0-rc";
125190
- Runtimes2["Java110rc"] = "java-11.0-rc";
125191
- Runtimes2["Java170rc"] = "java-17.0-rc";
125192
- Runtimes2["Java180rc"] = "java-18.0-rc";
125193
- Runtimes2["Java210rc"] = "java-21.0-rc";
125194
- Runtimes2["Java22rc"] = "java-22-rc";
125195
- Runtimes2["Java25rc"] = "java-25-rc";
125196
- Runtimes2["Swift55rc"] = "swift-5.5-rc";
125197
- Runtimes2["Swift58rc"] = "swift-5.8-rc";
125198
- Runtimes2["Swift59rc"] = "swift-5.9-rc";
125199
- Runtimes2["Swift510rc"] = "swift-5.10-rc";
125200
- Runtimes2["Swift62rc"] = "swift-6.2-rc";
125201
- Runtimes2["Kotlin16rc"] = "kotlin-1.6-rc";
125202
- Runtimes2["Kotlin18rc"] = "kotlin-1.8-rc";
125203
- Runtimes2["Kotlin19rc"] = "kotlin-1.9-rc";
125204
- Runtimes2["Kotlin20rc"] = "kotlin-2.0-rc";
125205
- Runtimes2["Kotlin23rc"] = "kotlin-2.3-rc";
125206
- Runtimes2["Cpp17rc"] = "cpp-17-rc";
125207
- Runtimes2["Cpp20rc"] = "cpp-20-rc";
125208
- Runtimes2["Bun10rc"] = "bun-1.0-rc";
125209
- Runtimes2["Bun11rc"] = "bun-1.1-rc";
125210
- Runtimes2["Bun12rc"] = "bun-1.2-rc";
125211
- Runtimes2["Bun13rc"] = "bun-1.3-rc";
125212
- Runtimes2["Go123rc"] = "go-1.23-rc";
125213
- Runtimes2["Go124rc"] = "go-1.24-rc";
125214
- Runtimes2["Go125rc"] = "go-1.25-rc";
125215
- Runtimes2["Go126rc"] = "go-1.26-rc";
125216
- Runtimes2["Static1rc"] = "static-1-rc";
125217
- Runtimes2["Flutter324rc"] = "flutter-3.24-rc";
125218
- Runtimes2["Flutter327rc"] = "flutter-3.27-rc";
125219
- Runtimes2["Flutter329rc"] = "flutter-3.29-rc";
125220
- Runtimes2["Flutter332rc"] = "flutter-3.32-rc";
125221
- Runtimes2["Flutter335rc"] = "flutter-3.35-rc";
125222
- Runtimes2["Flutter338rc"] = "flutter-3.38-rc";
125223
125621
  })(Runtimes || (Runtimes = {}));
125224
125622
  var UseCases;
125225
125623
  (function(UseCases2) {
125226
- UseCases2["Portfolio"] = "portfolio";
125227
125624
  UseCases2["Starter"] = "starter";
125625
+ UseCases2["Databases"] = "databases";
125626
+ UseCases2["Ai"] = "ai";
125627
+ UseCases2["Messaging"] = "messaging";
125628
+ UseCases2["Utilities"] = "utilities";
125629
+ UseCases2["Devtools"] = "dev-tools";
125630
+ UseCases2["Auth"] = "auth";
125631
+ UseCases2["Portfolio"] = "portfolio";
125228
125632
  UseCases2["Events"] = "events";
125229
125633
  UseCases2["Ecommerce"] = "ecommerce";
125230
125634
  UseCases2["Documentation"] = "documentation";
125231
125635
  UseCases2["Blog"] = "blog";
125232
- UseCases2["Ai"] = "ai";
125233
125636
  UseCases2["Forms"] = "forms";
125234
125637
  UseCases2["Dashboard"] = "dashboard";
125235
125638
  })(UseCases || (UseCases = {}));
125236
125639
  var TemplateReferenceType;
125237
125640
  (function(TemplateReferenceType2) {
125238
- TemplateReferenceType2["Branch"] = "branch";
125239
125641
  TemplateReferenceType2["Commit"] = "commit";
125642
+ TemplateReferenceType2["Branch"] = "branch";
125240
125643
  TemplateReferenceType2["Tag"] = "tag";
125241
125644
  })(TemplateReferenceType || (TemplateReferenceType = {}));
125242
125645
  var VCSReferenceType;
@@ -125300,6 +125703,8 @@ var AppwriteMigrationResource;
125300
125703
  AppwriteMigrationResource2["Document"] = "document";
125301
125704
  AppwriteMigrationResource2["Attribute"] = "attribute";
125302
125705
  AppwriteMigrationResource2["Collection"] = "collection";
125706
+ AppwriteMigrationResource2["Documentsdb"] = "documentsdb";
125707
+ AppwriteMigrationResource2["Vectorsdb"] = "vectorsdb";
125303
125708
  AppwriteMigrationResource2["Bucket"] = "bucket";
125304
125709
  AppwriteMigrationResource2["File"] = "file";
125305
125710
  AppwriteMigrationResource2["Function"] = "function";
@@ -125837,92 +126242,6 @@ var BuildRuntime;
125837
126242
  BuildRuntime2["Flutter332"] = "flutter-3.32";
125838
126243
  BuildRuntime2["Flutter335"] = "flutter-3.35";
125839
126244
  BuildRuntime2["Flutter338"] = "flutter-3.38";
125840
- BuildRuntime2["Node145rc"] = "node-14.5-rc";
125841
- BuildRuntime2["Node160rc"] = "node-16.0-rc";
125842
- BuildRuntime2["Node180rc"] = "node-18.0-rc";
125843
- BuildRuntime2["Node190rc"] = "node-19.0-rc";
125844
- BuildRuntime2["Node200rc"] = "node-20.0-rc";
125845
- BuildRuntime2["Node210rc"] = "node-21.0-rc";
125846
- BuildRuntime2["Node22rc"] = "node-22-rc";
125847
- BuildRuntime2["Node23rc"] = "node-23-rc";
125848
- BuildRuntime2["Node24rc"] = "node-24-rc";
125849
- BuildRuntime2["Node25rc"] = "node-25-rc";
125850
- BuildRuntime2["Php80rc"] = "php-8.0-rc";
125851
- BuildRuntime2["Php81rc"] = "php-8.1-rc";
125852
- BuildRuntime2["Php82rc"] = "php-8.2-rc";
125853
- BuildRuntime2["Php83rc"] = "php-8.3-rc";
125854
- BuildRuntime2["Php84rc"] = "php-8.4-rc";
125855
- BuildRuntime2["Ruby30rc"] = "ruby-3.0-rc";
125856
- BuildRuntime2["Ruby31rc"] = "ruby-3.1-rc";
125857
- BuildRuntime2["Ruby32rc"] = "ruby-3.2-rc";
125858
- BuildRuntime2["Ruby33rc"] = "ruby-3.3-rc";
125859
- BuildRuntime2["Ruby34rc"] = "ruby-3.4-rc";
125860
- BuildRuntime2["Ruby40rc"] = "ruby-4.0-rc";
125861
- BuildRuntime2["Python38rc"] = "python-3.8-rc";
125862
- BuildRuntime2["Python39rc"] = "python-3.9-rc";
125863
- BuildRuntime2["Python310rc"] = "python-3.10-rc";
125864
- BuildRuntime2["Python311rc"] = "python-3.11-rc";
125865
- BuildRuntime2["Python312rc"] = "python-3.12-rc";
125866
- BuildRuntime2["Python313rc"] = "python-3.13-rc";
125867
- BuildRuntime2["Python314rc"] = "python-3.14-rc";
125868
- BuildRuntime2["Pythonml311rc"] = "python-ml-3.11-rc";
125869
- BuildRuntime2["Pythonml312rc"] = "python-ml-3.12-rc";
125870
- BuildRuntime2["Pythonml313rc"] = "python-ml-3.13-rc";
125871
- BuildRuntime2["Deno140rc"] = "deno-1.40-rc";
125872
- BuildRuntime2["Deno146rc"] = "deno-1.46-rc";
125873
- BuildRuntime2["Deno20rc"] = "deno-2.0-rc";
125874
- BuildRuntime2["Deno25rc"] = "deno-2.5-rc";
125875
- BuildRuntime2["Deno26rc"] = "deno-2.6-rc";
125876
- BuildRuntime2["Dart215rc"] = "dart-2.15-rc";
125877
- BuildRuntime2["Dart216rc"] = "dart-2.16-rc";
125878
- BuildRuntime2["Dart217rc"] = "dart-2.17-rc";
125879
- BuildRuntime2["Dart218rc"] = "dart-2.18-rc";
125880
- BuildRuntime2["Dart219rc"] = "dart-2.19-rc";
125881
- BuildRuntime2["Dart30rc"] = "dart-3.0-rc";
125882
- BuildRuntime2["Dart31rc"] = "dart-3.1-rc";
125883
- BuildRuntime2["Dart33rc"] = "dart-3.3-rc";
125884
- BuildRuntime2["Dart35rc"] = "dart-3.5-rc";
125885
- BuildRuntime2["Dart38rc"] = "dart-3.8-rc";
125886
- BuildRuntime2["Dart39rc"] = "dart-3.9-rc";
125887
- BuildRuntime2["Dart310rc"] = "dart-3.10-rc";
125888
- BuildRuntime2["Dotnet60rc"] = "dotnet-6.0-rc";
125889
- BuildRuntime2["Dotnet70rc"] = "dotnet-7.0-rc";
125890
- BuildRuntime2["Dotnet80rc"] = "dotnet-8.0-rc";
125891
- BuildRuntime2["Dotnet10rc"] = "dotnet-10-rc";
125892
- BuildRuntime2["Java80rc"] = "java-8.0-rc";
125893
- BuildRuntime2["Java110rc"] = "java-11.0-rc";
125894
- BuildRuntime2["Java170rc"] = "java-17.0-rc";
125895
- BuildRuntime2["Java180rc"] = "java-18.0-rc";
125896
- BuildRuntime2["Java210rc"] = "java-21.0-rc";
125897
- BuildRuntime2["Java22rc"] = "java-22-rc";
125898
- BuildRuntime2["Java25rc"] = "java-25-rc";
125899
- BuildRuntime2["Swift55rc"] = "swift-5.5-rc";
125900
- BuildRuntime2["Swift58rc"] = "swift-5.8-rc";
125901
- BuildRuntime2["Swift59rc"] = "swift-5.9-rc";
125902
- BuildRuntime2["Swift510rc"] = "swift-5.10-rc";
125903
- BuildRuntime2["Swift62rc"] = "swift-6.2-rc";
125904
- BuildRuntime2["Kotlin16rc"] = "kotlin-1.6-rc";
125905
- BuildRuntime2["Kotlin18rc"] = "kotlin-1.8-rc";
125906
- BuildRuntime2["Kotlin19rc"] = "kotlin-1.9-rc";
125907
- BuildRuntime2["Kotlin20rc"] = "kotlin-2.0-rc";
125908
- BuildRuntime2["Kotlin23rc"] = "kotlin-2.3-rc";
125909
- BuildRuntime2["Cpp17rc"] = "cpp-17-rc";
125910
- BuildRuntime2["Cpp20rc"] = "cpp-20-rc";
125911
- BuildRuntime2["Bun10rc"] = "bun-1.0-rc";
125912
- BuildRuntime2["Bun11rc"] = "bun-1.1-rc";
125913
- BuildRuntime2["Bun12rc"] = "bun-1.2-rc";
125914
- BuildRuntime2["Bun13rc"] = "bun-1.3-rc";
125915
- BuildRuntime2["Go123rc"] = "go-1.23-rc";
125916
- BuildRuntime2["Go124rc"] = "go-1.24-rc";
125917
- BuildRuntime2["Go125rc"] = "go-1.25-rc";
125918
- BuildRuntime2["Go126rc"] = "go-1.26-rc";
125919
- BuildRuntime2["Static1rc"] = "static-1-rc";
125920
- BuildRuntime2["Flutter324rc"] = "flutter-3.24-rc";
125921
- BuildRuntime2["Flutter327rc"] = "flutter-3.27-rc";
125922
- BuildRuntime2["Flutter329rc"] = "flutter-3.29-rc";
125923
- BuildRuntime2["Flutter332rc"] = "flutter-3.32-rc";
125924
- BuildRuntime2["Flutter335rc"] = "flutter-3.35-rc";
125925
- BuildRuntime2["Flutter338rc"] = "flutter-3.38-rc";
125926
126245
  })(BuildRuntime || (BuildRuntime = {}));
125927
126246
  var Adapter;
125928
126247
  (function(Adapter2) {
@@ -125965,6 +126284,13 @@ var ImageGravity;
125965
126284
  ImageGravity2["Bottom"] = "bottom";
125966
126285
  ImageGravity2["Bottomright"] = "bottom-right";
125967
126286
  })(ImageGravity || (ImageGravity = {}));
126287
+ var TablesDBIndexType;
126288
+ (function(TablesDBIndexType2) {
126289
+ TablesDBIndexType2["Key"] = "key";
126290
+ TablesDBIndexType2["Fulltext"] = "fulltext";
126291
+ TablesDBIndexType2["Unique"] = "unique";
126292
+ TablesDBIndexType2["Spatial"] = "spatial";
126293
+ })(TablesDBIndexType || (TablesDBIndexType = {}));
125968
126294
  var PasswordHash;
125969
126295
  (function(PasswordHash2) {
125970
126296
  PasswordHash2["Sha1"] = "sha1";
@@ -125994,6 +126320,8 @@ var DatabaseType;
125994
126320
  (function(DatabaseType2) {
125995
126321
  DatabaseType2["Legacy"] = "legacy";
125996
126322
  DatabaseType2["Tablesdb"] = "tablesdb";
126323
+ DatabaseType2["Documentsdb"] = "documentsdb";
126324
+ DatabaseType2["Vectorsdb"] = "vectorsdb";
125997
126325
  })(DatabaseType || (DatabaseType = {}));
125998
126326
  var AttributeStatus;
125999
126327
  (function(AttributeStatus2) {
@@ -126672,12 +127000,16 @@ var questionsInitProject = [
126672
127000
  choices: async () => {
126673
127001
  const client2 = await sdkForConsole(true);
126674
127002
  const { teams: teams2 } = isCloud() ? await paginate(
126675
- async (opts = {}) => (await getOrganizationsService(opts.sdk)).list(),
127003
+ async (args) => (await getOrganizationsService(args.sdk)).list({
127004
+ queries: args.queries
127005
+ }),
126676
127006
  { sdk: client2 },
126677
127007
  100,
126678
127008
  "teams"
126679
127009
  ) : await paginate(
126680
- async (opts = {}) => (await getTeamsService(opts.sdk)).list(),
127010
+ async (args) => (await getTeamsService(args.sdk)).list({
127011
+ queries: args.queries
127012
+ }),
126681
127013
  { parseOutput: false, sdk: client2 },
126682
127014
  100,
126683
127015
  "teams"
@@ -126725,7 +127057,7 @@ var questionsInitProject = [
126725
127057
  JSON.stringify({ method: "orderDesc", attribute: "$id" })
126726
127058
  ];
126727
127059
  const { projects: projects2 } = await paginate(
126728
- async () => (await getProjectsService()).list(queries),
127060
+ async (args) => (await getProjectsService()).list(args.queries),
126729
127061
  { parseOutput: false },
126730
127062
  100,
126731
127063
  "projects",
@@ -126812,7 +127144,7 @@ var questionsPullFunctions = [
126812
127144
  validate: (value) => validateRequired("function", value),
126813
127145
  choices: async () => {
126814
127146
  const { functions: functions2 } = await paginate(
126815
- async () => (await getFunctionsService()).list(),
127147
+ async (args) => (await getFunctionsService()).list(args.queries),
126816
127148
  { parseOutput: false },
126817
127149
  100,
126818
127150
  "functions"
@@ -126851,7 +127183,7 @@ var questionsPullSites = [
126851
127183
  validate: (value) => validateRequired("site", value),
126852
127184
  choices: async () => {
126853
127185
  const { sites: sites2 } = await paginate(
126854
- async () => (await getSitesService()).list(),
127186
+ async (args) => (await getSitesService()).list(args.queries),
126855
127187
  { parseOutput: false },
126856
127188
  100,
126857
127189
  "sites"
@@ -128259,48 +128591,48 @@ import os6 from "os";
128259
128591
  import path2 from "path";
128260
128592
 
128261
128593
  // node_modules/tar/dist/esm/index.min.js
128262
- import Ur from "events";
128594
+ import Kr from "events";
128263
128595
  import I from "fs";
128264
128596
  import { EventEmitter as Ti } from "node:events";
128265
128597
  import Ns from "node:stream";
128266
- import { StringDecoder as Dr } from "node:string_decoder";
128598
+ import { StringDecoder as Mr } from "node:string_decoder";
128267
128599
  import nr from "node:path";
128268
128600
  import Vt from "node:fs";
128269
- import { dirname as Rn, parse as bn } from "path";
128270
- import { EventEmitter as En } from "events";
128601
+ import { dirname as xn, parse as Ln } from "path";
128602
+ import { EventEmitter as _n } from "events";
128271
128603
  import Mi from "assert";
128272
128604
  import { Buffer as gt } from "buffer";
128273
128605
  import * as ks from "zlib";
128274
- import Zr from "zlib";
128606
+ import qr from "zlib";
128275
128607
  import { posix as Zt } from "node:path";
128276
- import { basename as fn } from "node:path";
128608
+ import { basename as wn } from "node:path";
128277
128609
  import fi from "fs";
128278
128610
  import $ from "fs";
128279
128611
  import $s from "path";
128280
- import { win32 as Tn } from "node:path";
128612
+ import { win32 as In } from "node:path";
128281
128613
  import sr from "path";
128282
- import xr from "node:fs";
128283
- import eo from "node:assert";
128284
- import { randomBytes as Tr } from "node:crypto";
128614
+ import Cr from "node:fs";
128615
+ import so from "node:assert";
128616
+ import { randomBytes as Ir } from "node:crypto";
128285
128617
  import u from "node:fs";
128286
128618
  import R from "node:path";
128287
- import ar from "fs";
128619
+ import cr from "fs";
128288
128620
  import mi from "node:fs";
128289
128621
  import Ee from "node:path";
128290
128622
  import k from "node:fs";
128291
- import Xn from "node:fs/promises";
128623
+ import jn from "node:fs/promises";
128292
128624
  import pi from "node:path";
128293
- import { join as pr } from "node:path";
128625
+ import { join as br } from "node:path";
128294
128626
  import v from "node:fs";
128295
- import Lr from "node:path";
128296
- var Nr = Object.defineProperty;
128297
- var Ar = (s3, t) => {
128298
- for (var e in t) Nr(s3, e, { get: t[e], enumerable: true });
128627
+ import Fr from "node:path";
128628
+ var kr = Object.defineProperty;
128629
+ var vr = (s3, t) => {
128630
+ for (var e in t) kr(s3, e, { get: t[e], enumerable: true });
128299
128631
  };
128300
128632
  var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
128301
- var Ir = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof Ns || Cr(s3) || Fr(s3));
128302
- var Cr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.pipe == "function" && s3.pipe !== Ns.Writable.prototype.pipe;
128303
- var Fr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.write == "function" && typeof s3.end == "function";
128633
+ var Br = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof Ns || Pr(s3) || zr(s3));
128634
+ var Pr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.pipe == "function" && s3.pipe !== Ns.Writable.prototype.pipe;
128635
+ var zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.write == "function" && typeof s3.end == "function";
128304
128636
  var q = /* @__PURE__ */ Symbol("EOF");
128305
128637
  var j = /* @__PURE__ */ Symbol("maybeEmitEnd");
128306
128638
  var rt = /* @__PURE__ */ Symbol("emittedEnd");
@@ -128333,10 +128665,10 @@ var Jt = /* @__PURE__ */ Symbol("signal");
128333
128665
  var yt = /* @__PURE__ */ Symbol("dataListeners");
128334
128666
  var C = /* @__PURE__ */ Symbol("discarded");
128335
128667
  var te = (s3) => Promise.resolve().then(s3);
128336
- var kr = (s3) => s3();
128337
- var vr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
128338
- var Mr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
128339
- var Br = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
128668
+ var Ur = (s3) => s3();
128669
+ var Hr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
128670
+ var Wr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
128671
+ var Gr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
128340
128672
  var Ce = class {
128341
128673
  src;
128342
128674
  dest;
@@ -128362,8 +128694,8 @@ var Oi = class extends Ce {
128362
128694
  super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
128363
128695
  }
128364
128696
  };
128365
- var Pr = (s3) => !!s3.objectMode;
128366
- var zr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
128697
+ var Zr = (s3) => !!s3.objectMode;
128698
+ var Yr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
128367
128699
  var D = class extends Ti {
128368
128700
  [b] = false;
128369
128701
  [Qt] = false;
@@ -128389,7 +128721,7 @@ var D = class extends Ti {
128389
128721
  constructor(...t) {
128390
128722
  let e = t[0] || {};
128391
128723
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
128392
- Pr(e) ? (this[L] = true, this[z2] = null) : zr(e) ? (this[z2] = e.encoding, this[L] = false) : (this[L] = false, this[z2] = null), this[Z] = !!e.async, this[Mt] = this[z2] ? new Dr(this[z2]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
128724
+ Zr(e) ? (this[L] = true, this[z2] = null) : Yr(e) ? (this[z2] = e.encoding, this[L] = false) : (this[L] = false, this[z2] = null), this[Z] = !!e.async, this[Mt] = this[z2] ? new Mr(this[z2]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
128393
128725
  let { signal: i } = e;
128394
128726
  i && (this[Jt] = i, i.aborted ? this[gi]() : i.addEventListener("abort", () => this[gi]()));
128395
128727
  }
@@ -128430,10 +128762,10 @@ var D = class extends Ti {
128430
128762
  if (this[q]) throw new Error("write after end");
128431
128763
  if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
128432
128764
  typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
128433
- let r = this[Z] ? te : kr;
128765
+ let r = this[Z] ? te : Ur;
128434
128766
  if (!this[L] && !Buffer.isBuffer(t)) {
128435
- if (Br(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
128436
- else if (Mr(t)) t = Buffer.from(t);
128767
+ if (Gr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
128768
+ else if (Wr(t)) t = Buffer.from(t);
128437
128769
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
128438
128770
  }
128439
128771
  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[z2] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z2] && (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]);
@@ -128506,7 +128838,7 @@ var D = class extends Ti {
128506
128838
  let i = super.on(t, e);
128507
128839
  if (t === "data") this[C] = false, this[yt]++, !this[A].length && !this[b] && this[Bt]();
128508
128840
  else if (t === "readable" && this[g] !== 0) super.emit("readable");
128509
- else if (vr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
128841
+ else if (Hr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
128510
128842
  else if (t === "error" && this[jt]) {
128511
128843
  let r = e;
128512
128844
  this[Z] ? te(() => r.call(this, this[jt])) : r.call(this, this[jt]);
@@ -128633,10 +128965,10 @@ var D = class extends Ti {
128633
128965
  return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
128634
128966
  }
128635
128967
  static get isStream() {
128636
- return Ir;
128968
+ return Br;
128637
128969
  }
128638
128970
  };
128639
- var Hr = I.writev;
128971
+ var Vr = I.writev;
128640
128972
  var ot = /* @__PURE__ */ Symbol("_autoClose");
128641
128973
  var H = /* @__PURE__ */ Symbol("_close");
128642
128974
  var ee = /* @__PURE__ */ Symbol("_ended");
@@ -128769,7 +129101,7 @@ var Me = class extends _t {
128769
129101
  }
128770
129102
  }
128771
129103
  };
128772
- var tt = class extends Ur {
129104
+ var tt = class extends Kr {
128773
129105
  readable = false;
128774
129106
  writable = true;
128775
129107
  [bt] = false;
@@ -128829,7 +129161,7 @@ var tt = class extends Ur {
128829
129161
  else if (this[Y].length === 1) this[ke](this[Y].pop());
128830
129162
  else {
128831
129163
  let t = this[Y];
128832
- this[Y] = [], Hr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
129164
+ this[Y] = [], Vr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
128833
129165
  }
128834
129166
  }
128835
129167
  [H]() {
@@ -128869,21 +129201,21 @@ var Wt = class extends tt {
128869
129201
  }
128870
129202
  }
128871
129203
  };
128872
- 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"]]);
129204
+ 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"]]);
128873
129205
  var As = (s3) => !!s3.sync && !!s3.file;
128874
129206
  var Ds = (s3) => !s3.sync && !!s3.file;
128875
129207
  var Is = (s3) => !!s3.sync && !s3.file;
128876
129208
  var Cs = (s3) => !s3.sync && !s3.file;
128877
129209
  var Fs = (s3) => !!s3.file;
128878
- var Gr = (s3) => {
128879
- let t = Wr.get(s3);
129210
+ var Xr = (s3) => {
129211
+ let t = $r.get(s3);
128880
129212
  return t || s3;
128881
129213
  };
128882
129214
  var re = (s3 = {}) => {
128883
129215
  if (!s3) return {};
128884
129216
  let t = {};
128885
129217
  for (let [e, i] of Object.entries(s3)) {
128886
- let r = Gr(e);
129218
+ let r = Xr(e);
128887
129219
  t[r] = i;
128888
129220
  }
128889
129221
  return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
@@ -128906,13 +129238,13 @@ var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
128906
129238
  }
128907
129239
  throw new Error("impossible options??");
128908
129240
  }, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
128909
- var Yr = Zr.constants || { ZLIB_VERNUM: 4736 };
128910
- 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));
128911
- var Kr = gt.concat;
129241
+ var jr = qr.constants || { ZLIB_VERNUM: 4736 };
129242
+ 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));
129243
+ var Qr = gt.concat;
128912
129244
  var vs = Object.getOwnPropertyDescriptor(gt, "concat");
128913
- var Vr = (s3) => s3;
129245
+ var Jr = (s3) => s3;
128914
129246
  var ki = vs?.writable === true || vs?.set !== void 0 ? (s3) => {
128915
- gt.concat = s3 ? Vr : Kr;
129247
+ gt.concat = s3 ? Jr : Qr;
128916
129248
  } : (s3) => {
128917
129249
  };
128918
129250
  var Ot = /* @__PURE__ */ Symbol("_superWrite");
@@ -129073,15 +129405,15 @@ var Ye = class extends Ge {
129073
129405
  }
129074
129406
  };
129075
129407
  var Ms = (s3, t) => {
129076
- if (Number.isSafeInteger(s3)) s3 < 0 ? qr(s3, t) : Xr(s3, t);
129408
+ if (Number.isSafeInteger(s3)) s3 < 0 ? sn(s3, t) : en(s3, t);
129077
129409
  else throw Error("cannot encode number outside of javascript safe integer range");
129078
129410
  return t;
129079
129411
  };
129080
- var Xr = (s3, t) => {
129412
+ var en = (s3, t) => {
129081
129413
  t[0] = 128;
129082
129414
  for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
129083
129415
  };
129084
- var qr = (s3, t) => {
129416
+ var sn = (s3, t) => {
129085
129417
  t[0] = 255;
129086
129418
  var e = false;
129087
129419
  s3 = s3 * -1;
@@ -129091,19 +129423,19 @@ var qr = (s3, t) => {
129091
129423
  }
129092
129424
  };
129093
129425
  var Bs = (s3) => {
129094
- let t = s3[0], e = t === 128 ? Qr(s3.subarray(1, s3.length)) : t === 255 ? jr(s3) : null;
129426
+ let t = s3[0], e = t === 128 ? nn(s3.subarray(1, s3.length)) : t === 255 ? rn(s3) : null;
129095
129427
  if (e === null) throw Error("invalid base256 encoding");
129096
129428
  if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
129097
129429
  return e;
129098
129430
  };
129099
- var jr = (s3) => {
129431
+ var rn = (s3) => {
129100
129432
  for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
129101
129433
  var n = Number(s3[r]), o;
129102
129434
  i ? o = Ps(n) : n === 0 ? o = n : (i = true, o = zs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
129103
129435
  }
129104
129436
  return e;
129105
129437
  };
129106
- var Qr = (s3) => {
129438
+ var nn = (s3) => {
129107
129439
  for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
129108
129440
  var r = Number(s3[i]);
129109
129441
  r !== 0 && (e += r * Math.pow(256, t - i - 1));
@@ -129113,9 +129445,9 @@ var Qr = (s3) => {
129113
129445
  var Ps = (s3) => (255 ^ s3) & 255;
129114
129446
  var zs = (s3) => (255 ^ s3) + 1 & 255;
129115
129447
  var Bi = {};
129116
- Ar(Bi, { code: () => Ke, isCode: () => oe, isName: () => tn, name: () => he });
129448
+ vr(Bi, { code: () => Ke, isCode: () => oe, isName: () => hn, name: () => he });
129117
129449
  var oe = (s3) => he.has(s3);
129118
- var tn = (s3) => Ke.has(s3);
129450
+ var hn = (s3) => Ke.has(s3);
129119
129451
  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"]]);
129120
129452
  var Ke = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
129121
129453
  var F = class {
@@ -129164,7 +129496,7 @@ var F = class {
129164
129496
  }
129165
129497
  encode(t, e = 0) {
129166
129498
  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");
129167
- let i = this.ctime || this.atime ? 130 : 155, r = en(this.path || "", i), n = r[0], o = r[1];
129499
+ let i = this.ctime || this.atime ? 130 : 155, r = an(this.path || "", i), n = r[0], o = r[1];
129168
129500
  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);
129169
129501
  let h = 256;
129170
129502
  for (let a = e; a < e + 148; a++) h += t[a];
@@ -129184,7 +129516,7 @@ var F = class {
129184
129516
  else throw new TypeError("invalid entry type: " + t);
129185
129517
  }
129186
129518
  };
129187
- var en = (s3, t) => {
129519
+ var an = (s3, t) => {
129188
129520
  let i = s3, r = "", n, o = Zt.parse(s3).root || ".";
129189
129521
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
129190
129522
  else {
@@ -129197,19 +129529,19 @@ var en = (s3, t) => {
129197
129529
  return n;
129198
129530
  };
129199
129531
  var Tt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
129200
- var Pi = (s3, t, e) => sn(at(s3, t, e));
129201
- var sn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
129202
- var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : nn(s3, t, e);
129203
- var rn = (s3) => isNaN(s3) ? void 0 : s3;
129204
- var nn = (s3, t, e) => rn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
129205
- var on = { 12: 8589934591, 8: 2097151 };
129206
- 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);
129207
- var hn = (s3, t, e, i) => s3.write(an(i, e), t, e, "ascii");
129208
- var an = (s3, t) => ln(Math.floor(s3).toString(8), t);
129209
- var ln = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
129532
+ var Pi = (s3, t, e) => ln(at(s3, t, e));
129533
+ var ln = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
129534
+ var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : fn(s3, t, e);
129535
+ var cn = (s3) => isNaN(s3) ? void 0 : s3;
129536
+ var fn = (s3, t, e) => cn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
129537
+ var dn = { 12: 8589934591, 8: 2097151 };
129538
+ 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);
129539
+ var un = (s3, t, e, i) => s3.write(mn(i, e), t, e, "ascii");
129540
+ var mn = (s3, t) => pn(Math.floor(s3).toString(8), t);
129541
+ var pn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
129210
129542
  var zi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
129211
- var cn = new Array(156).join("\0");
129212
- 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);
129543
+ var En = new Array(156).join("\0");
129544
+ 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);
129213
129545
  var ct = class s {
129214
129546
  atime;
129215
129547
  mtime;
@@ -129236,7 +129568,7 @@ var ct = class s {
129236
129568
  if (t === "") return Buffer.allocUnsafe(0);
129237
129569
  let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
129238
129570
  for (let n = 0; n < 512; n++) r[n] = 0;
129239
- 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");
129571
+ 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");
129240
129572
  for (let n = e + 512; n < r.length; n++) r[n] = 0;
129241
129573
  return r;
129242
129574
  }
@@ -129250,13 +129582,13 @@ var ct = class s {
129250
129582
  return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
129251
129583
  }
129252
129584
  static parse(t, e, i = false) {
129253
- return new s(dn(un(t), e), i);
129585
+ return new s(Sn(yn(t), e), i);
129254
129586
  }
129255
129587
  };
129256
- var dn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
129257
- var un = (s3) => s3.replace(/\n$/, "").split(`
129258
- `).reduce(mn, /* @__PURE__ */ Object.create(null));
129259
- var mn = (s3, t) => {
129588
+ var Sn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
129589
+ var yn = (s3) => s3.replace(/\n$/, "").split(`
129590
+ `).reduce(Rn, /* @__PURE__ */ Object.create(null));
129591
+ var Rn = (s3, t) => {
129260
129592
  let e = parseInt(t, 10);
129261
129593
  if (e !== Buffer.byteLength(t) + 1) return s3;
129262
129594
  t = t.slice((e + " ").length);
@@ -129265,8 +129597,8 @@ var mn = (s3, t) => {
129265
129597
  let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
129266
129598
  return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
129267
129599
  };
129268
- var pn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
129269
- var f = pn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
129600
+ var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
129601
+ var f = bn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
129270
129602
  var Yt = class extends D {
129271
129603
  extended;
129272
129604
  globalExtended;
@@ -129334,10 +129666,10 @@ var Yt = class extends D {
129334
129666
  var Lt = (s3, t, e, i = {}) => {
129335
129667
  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));
129336
129668
  };
129337
- var wn = 1024 * 1024;
129669
+ var gn = 1024 * 1024;
129338
129670
  var Zi = Buffer.from([31, 139]);
129339
129671
  var Yi = Buffer.from([40, 181, 47, 253]);
129340
- var Sn = Math.max(Zi.length, Yi.length);
129672
+ var On = Math.max(Zi.length, Yi.length);
129341
129673
  var B = /* @__PURE__ */ Symbol("state");
129342
129674
  var Nt = /* @__PURE__ */ Symbol("writeEntry");
129343
129675
  var et = /* @__PURE__ */ Symbol("readEntry");
@@ -129368,8 +129700,8 @@ var Dt = /* @__PURE__ */ Symbol("sawValidEntry");
129368
129700
  var je = /* @__PURE__ */ Symbol("sawNullBlock");
129369
129701
  var Qe = /* @__PURE__ */ Symbol("sawEOF");
129370
129702
  var Zs = /* @__PURE__ */ Symbol("closeStream");
129371
- var yn = () => true;
129372
- var st = class extends En {
129703
+ var Tn = () => true;
129704
+ var st = class extends _n {
129373
129705
  file;
129374
129706
  strict;
129375
129707
  maxMetaEntrySize;
@@ -129400,7 +129732,7 @@ var st = class extends En {
129400
129732
  (this[B] === "begin" || this[Dt] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
129401
129733
  }), t.ondone ? this.on(qe, t.ondone) : this.on(qe, () => {
129402
129734
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
129403
- }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || wn, this.filter = typeof t.filter == "function" ? t.filter : yn;
129735
+ }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || gn, this.filter = typeof t.filter == "function" ? t.filter : Tn;
129404
129736
  let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
129405
129737
  this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
129406
129738
  let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
@@ -129500,7 +129832,7 @@ var st = class extends En {
129500
129832
  write(t, e, i) {
129501
129833
  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;
129502
129834
  if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
129503
- if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < Sn) return this[p] = t, i?.(), true;
129835
+ if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < On) return this[p] = t, i?.(), true;
129504
129836
  for (let a = 0; this[y] === void 0 && a < Zi.length; a++) t[a] !== Zi[a] && (this[y] = false);
129505
129837
  let o = false;
129506
129838
  if (this[y] === false && this.zstd !== false) {
@@ -129590,7 +129922,7 @@ var mt = (s3) => {
129590
129922
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
129591
129923
  return e === -1 ? s3 : s3.slice(0, e);
129592
129924
  };
129593
- var _n = (s3) => {
129925
+ var Nn = (s3) => {
129594
129926
  let t = s3.onReadEntry;
129595
129927
  s3.onReadEntry = t ? (e) => {
129596
129928
  t(e), e.resume();
@@ -129598,17 +129930,17 @@ var _n = (s3) => {
129598
129930
  };
129599
129931
  var Ki = (s3, t) => {
129600
129932
  let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
129601
- let h = o || bn(n).root || ".", a;
129933
+ let h = o || Ln(n).root || ".", a;
129602
129934
  if (n === h) a = false;
129603
129935
  else {
129604
129936
  let l = e.get(n);
129605
- a = l !== void 0 ? l : r(Rn(n), h);
129937
+ a = l !== void 0 ? l : r(xn(n), h);
129606
129938
  }
129607
129939
  return e.set(n, a), a;
129608
129940
  };
129609
129941
  s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
129610
129942
  };
129611
- var gn = (s3) => {
129943
+ var An = (s3) => {
129612
129944
  let t = new st(s3), e = s3.file, i;
129613
129945
  try {
129614
129946
  i = Vt.openSync(e, "r");
@@ -129632,7 +129964,7 @@ var gn = (s3) => {
129632
129964
  }
129633
129965
  }
129634
129966
  };
129635
- var On = (s3, t) => {
129967
+ var Dn = (s3, t) => {
129636
129968
  let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
129637
129969
  return new Promise((o, h) => {
129638
129970
  e.on("error", h), e.on("end", o), Vt.stat(r, (a, l) => {
@@ -129644,14 +129976,14 @@ var On = (s3, t) => {
129644
129976
  });
129645
129977
  });
129646
129978
  };
129647
- var It = K(gn, On, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
129648
- t?.length && Ki(s3, t), s3.noResume || _n(s3);
129979
+ var It = K(An, Dn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
129980
+ t?.length && Ki(s3, t), s3.noResume || Nn(s3);
129649
129981
  });
129650
129982
  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);
129651
- var { isAbsolute: xn, parse: Ys } = Tn;
129983
+ var { isAbsolute: Cn, parse: Ys } = In;
129652
129984
  var ce = (s3) => {
129653
129985
  let t = "", e = Ys(s3);
129654
- for (; xn(s3) || e.root; ) {
129986
+ for (; Cn(s3) || e.root; ) {
129655
129987
  let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
129656
129988
  s3 = s3.slice(i.length), t += i, e = Ys(s3);
129657
129989
  }
@@ -129659,12 +129991,12 @@ var ce = (s3) => {
129659
129991
  };
129660
129992
  var Je = ["|", "<", ">", "?", ":"];
129661
129993
  var $i = Je.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
129662
- var Ln = new Map(Je.map((s3, t) => [s3, $i[t]]));
129663
- var Nn = new Map($i.map((s3, t) => [s3, Je[t]]));
129664
- var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Ln.get(e)), s3);
129665
- var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(Nn.get(e)), s3);
129994
+ var Fn = new Map(Je.map((s3, t) => [s3, $i[t]]));
129995
+ var kn = new Map($i.map((s3, t) => [s3, Je[t]]));
129996
+ var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Fn.get(e)), s3);
129997
+ var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(kn.get(e)), s3);
129666
129998
  var Js = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
129667
- var An = 16 * 1024 * 1024;
129999
+ var vn = 16 * 1024 * 1024;
129668
130000
  var Xs = /* @__PURE__ */ Symbol("process");
129669
130001
  var qs = /* @__PURE__ */ Symbol("file");
129670
130002
  var js = /* @__PURE__ */ Symbol("directory");
@@ -129716,7 +130048,7 @@ var de = class extends D {
129716
130048
  #t = false;
129717
130049
  constructor(t, e = {}) {
129718
130050
  let i = re(e);
129719
- 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);
130051
+ 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);
129720
130052
  let r = false;
129721
130053
  if (!this.preservePaths) {
129722
130054
  let [o, h] = ce(this.path);
@@ -129739,7 +130071,7 @@ var de = class extends D {
129739
130071
  });
129740
130072
  }
129741
130073
  [ei](t) {
129742
- this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Dn(t), this.emit("stat", t), this[Xs]();
130074
+ this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Mn(t), this.emit("stat", t), this[Xs]();
129743
130075
  }
129744
130076
  [Xs]() {
129745
130077
  switch (this.type) {
@@ -129945,7 +130277,7 @@ var ri = class extends D {
129945
130277
  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;
129946
130278
  }
129947
130279
  };
129948
- var Dn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
130280
+ var Mn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
129949
130281
  var ni = class s2 {
129950
130282
  tail;
129951
130283
  head;
@@ -129977,11 +130309,11 @@ var ni = class s2 {
129977
130309
  t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
129978
130310
  }
129979
130311
  push(...t) {
129980
- for (let e = 0, i = t.length; e < i; e++) Cn(this, t[e]);
130312
+ for (let e = 0, i = t.length; e < i; e++) Pn(this, t[e]);
129981
130313
  return this.length;
129982
130314
  }
129983
130315
  unshift(...t) {
129984
- for (var e = 0, i = t.length; e < i; e++) Fn(this, t[e]);
130316
+ for (var e = 0, i = t.length; e < i; e++) zn(this, t[e]);
129985
130317
  return this.length;
129986
130318
  }
129987
130319
  pop() {
@@ -130077,7 +130409,7 @@ var ni = class s2 {
130077
130409
  let n = [];
130078
130410
  for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
130079
130411
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
130080
- for (let o of i) r = In(this, r, o);
130412
+ for (let o of i) r = Bn(this, r, o);
130081
130413
  return n;
130082
130414
  }
130083
130415
  reverse() {
@@ -130089,14 +130421,14 @@ var ni = class s2 {
130089
130421
  return this.head = e, this.tail = t, this;
130090
130422
  }
130091
130423
  };
130092
- function In(s3, t, e) {
130424
+ function Bn(s3, t, e) {
130093
130425
  let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
130094
130426
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
130095
130427
  }
130096
- function Cn(s3, t) {
130428
+ function Pn(s3, t) {
130097
130429
  s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
130098
130430
  }
130099
- function Fn(s3, t) {
130431
+ function zn(s3, t) {
130100
130432
  s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
130101
130433
  }
130102
130434
  var ue = class {
@@ -130325,11 +130657,11 @@ var kt = class extends Et {
130325
130657
  });
130326
130658
  }
130327
130659
  };
130328
- var kn = (s3, t) => {
130660
+ var Un = (s3, t) => {
130329
130661
  let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
130330
130662
  e.pipe(i), or(e, t);
130331
130663
  };
130332
- var vn = (s3, t) => {
130664
+ var Hn = (s3, t) => {
130333
130665
  let e = new Et(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
130334
130666
  e.pipe(i);
130335
130667
  let r = new Promise((n, o) => {
@@ -130348,25 +130680,26 @@ var hr = async (s3, t) => {
130348
130680
  } }) : s3.add(e);
130349
130681
  s3.end();
130350
130682
  };
130351
- var Mn = (s3, t) => {
130683
+ var Wn = (s3, t) => {
130352
130684
  let e = new kt(s3);
130353
130685
  return or(e, t), e;
130354
130686
  };
130355
- var Bn = (s3, t) => {
130687
+ var Gn = (s3, t) => {
130356
130688
  let e = new Et(s3);
130357
130689
  return hr(e, t).catch((i) => e.emit("error", i)), e;
130358
130690
  };
130359
- var Pn = K(kn, vn, Mn, Bn, (s3, t) => {
130691
+ var Zn = K(Un, Hn, Wn, Gn, (s3, t) => {
130360
130692
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
130361
130693
  });
130362
- var zn = process.env.__FAKE_PLATFORM__ || process.platform;
130363
- var Un = zn === "win32";
130364
- var { O_CREAT: Hn, O_TRUNC: Wn, O_WRONLY: Gn } = ar.constants;
130365
- var lr = Number(process.env.__FAKE_FS_O_FILENAME__) || ar.constants.UV_FS_O_FILEMAP || 0;
130366
- var Zn = Un && !!lr;
130367
- var Yn = 512 * 1024;
130368
- var Kn = lr | Wn | Hn | Gn;
130369
- var cs = Zn ? (s3) => s3 < Yn ? Kn : "w" : () => "w";
130694
+ var Yn = process.env.__FAKE_PLATFORM__ || process.platform;
130695
+ var fr = Yn === "win32";
130696
+ var { O_CREAT: dr, O_NOFOLLOW: ar, O_TRUNC: ur, O_WRONLY: mr } = cr.constants;
130697
+ var pr = Number(process.env.__FAKE_FS_O_FILENAME__) || cr.constants.UV_FS_O_FILEMAP || 0;
130698
+ var Kn = fr && !!pr;
130699
+ var Vn = 512 * 1024;
130700
+ var $n = pr | ur | dr | mr;
130701
+ var lr = !fr && typeof ar == "number" ? ar | ur | dr | mr : null;
130702
+ var cs = lr !== null ? () => lr : Kn ? (s3) => s3 < Vn ? $n : "w" : () => "w";
130370
130703
  var fs3 = (s3, t, e) => {
130371
130704
  try {
130372
130705
  return mi.lchownSync(s3, t, e);
@@ -130379,7 +130712,7 @@ var ui = (s3, t, e, i) => {
130379
130712
  i(r && r?.code !== "ENOENT" ? r : null);
130380
130713
  });
130381
130714
  };
130382
- var Vn = (s3, t, e, i, r) => {
130715
+ var Xn = (s3, t, e, i, r) => {
130383
130716
  if (t.isDirectory()) ds(Ee.resolve(s3, t.name), e, i, (n) => {
130384
130717
  if (n) return r(n);
130385
130718
  let o = Ee.resolve(s3, t.name);
@@ -130403,10 +130736,10 @@ var ds = (s3, t, e, i) => {
130403
130736
  if (--o === 0) return ui(s3, t, e, i);
130404
130737
  }
130405
130738
  };
130406
- for (let l of n) Vn(s3, l, t, e, a);
130739
+ for (let l of n) Xn(s3, l, t, e, a);
130407
130740
  });
130408
130741
  };
130409
- var $n = (s3, t, e, i) => {
130742
+ var qn = (s3, t, e, i) => {
130410
130743
  t.isDirectory() && us(Ee.resolve(s3, t.name), e, i), fs3(Ee.resolve(s3, t.name), e, i);
130411
130744
  };
130412
130745
  var us = (s3, t, e) => {
@@ -130419,7 +130752,7 @@ var us = (s3, t, e) => {
130419
130752
  if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return fs3(s3, t, e);
130420
130753
  throw n;
130421
130754
  }
130422
- for (let r of i) $n(s3, r, t, e);
130755
+ for (let r of i) qn(s3, r, t, e);
130423
130756
  return fs3(s3, t, e);
130424
130757
  };
130425
130758
  var we = class extends Error {
@@ -130445,33 +130778,33 @@ var wt = class extends Error {
130445
130778
  return "SymlinkError";
130446
130779
  }
130447
130780
  };
130448
- var qn = (s3, t) => {
130781
+ var Qn = (s3, t) => {
130449
130782
  k.stat(s3, (e, i) => {
130450
130783
  (e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
130451
130784
  });
130452
130785
  };
130453
- var cr = (s3, t, e) => {
130786
+ var Er = (s3, t, e) => {
130454
130787
  s3 = f(s3);
130455
130788
  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) => {
130456
130789
  E ? e(E) : x && a ? ds(x, o, h, (xe) => S(xe)) : n ? k.chmod(s3, r, e) : e();
130457
130790
  };
130458
- if (s3 === d) return qn(s3, S);
130459
- if (l) return Xn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
130791
+ if (s3 === d) return Qn(s3, S);
130792
+ if (l) return jn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
130460
130793
  let N = f(pi.relative(d, s3)).split("/");
130461
130794
  ms(d, N, r, c, d, void 0, S);
130462
130795
  };
130463
130796
  var ms = (s3, t, e, i, r, n, o) => {
130464
130797
  if (t.length === 0) return o(null, n);
130465
130798
  let h = t.shift(), a = f(pi.resolve(s3 + "/" + h));
130466
- k.mkdir(a, e, fr(a, t, e, i, r, n, o));
130799
+ k.mkdir(a, e, wr(a, t, e, i, r, n, o));
130467
130800
  };
130468
- var fr = (s3, t, e, i, r, n, o) => (h) => {
130801
+ var wr = (s3, t, e, i, r, n, o) => (h) => {
130469
130802
  h ? k.lstat(s3, (a, l) => {
130470
130803
  if (a) a.path = a.path && f(a.path), o(a);
130471
130804
  else if (l.isDirectory()) ms(s3, t, e, i, r, n, o);
130472
130805
  else if (i) k.unlink(s3, (c) => {
130473
130806
  if (c) return o(c);
130474
- k.mkdir(s3, e, fr(s3, t, e, i, r, n, o));
130807
+ k.mkdir(s3, e, wr(s3, t, e, i, r, n, o));
130475
130808
  });
130476
130809
  else {
130477
130810
  if (l.isSymbolicLink()) return o(new wt(s3, s3 + "/" + t.join("/")));
@@ -130479,7 +130812,7 @@ var fr = (s3, t, e, i, r, n, o) => (h) => {
130479
130812
  }
130480
130813
  }) : (n = n || s3, ms(s3, t, e, i, r, n, o));
130481
130814
  };
130482
- var jn = (s3) => {
130815
+ var Jn = (s3) => {
130483
130816
  let t = false, e;
130484
130817
  try {
130485
130818
  t = k.statSync(s3).isDirectory();
@@ -130489,12 +130822,12 @@ var jn = (s3) => {
130489
130822
  if (!t) throw new we(s3, e ?? "ENOTDIR");
130490
130823
  }
130491
130824
  };
130492
- var dr = (s3, t) => {
130825
+ var Sr = (s3, t) => {
130493
130826
  s3 = f(s3);
130494
130827
  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) => {
130495
130828
  E && h && us(E, n, o), r && k.chmodSync(s3, i);
130496
130829
  };
130497
- if (s3 === c) return jn(c), d();
130830
+ if (s3 === c) return Jn(c), d();
130498
130831
  if (a) return d(k.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
130499
130832
  let T = f(pi.relative(c, s3)).split("/"), N;
130500
130833
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
@@ -130513,29 +130846,29 @@ var dr = (s3, t) => {
130513
130846
  return d(N);
130514
130847
  };
130515
130848
  var ps = /* @__PURE__ */ Object.create(null);
130516
- var ur = 1e4;
130849
+ var yr = 1e4;
130517
130850
  var $t = /* @__PURE__ */ new Set();
130518
- var mr = (s3) => {
130851
+ var Rr = (s3) => {
130519
130852
  $t.has(s3) ? $t.delete(s3) : ps[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
130520
- let t = ps[s3], e = $t.size - ur;
130521
- if (e > ur / 10) {
130853
+ let t = ps[s3], e = $t.size - yr;
130854
+ if (e > yr / 10) {
130522
130855
  for (let i of $t) if ($t.delete(i), delete ps[i], --e <= 0) break;
130523
130856
  }
130524
130857
  return t;
130525
130858
  };
130526
- var Qn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
130527
- var Jn = Qn === "win32";
130528
- var to = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
130859
+ var to = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
130860
+ var eo = to === "win32";
130861
+ var io = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
130529
130862
  let r = e.at(-1);
130530
- return r !== void 0 && (i = pr(r, i)), e.push(i || "/"), e;
130863
+ return r !== void 0 && (i = br(r, i)), e.push(i || "/"), e;
130531
130864
  }, []);
130532
130865
  var Ei = class {
130533
130866
  #t = /* @__PURE__ */ new Map();
130534
130867
  #i = /* @__PURE__ */ new Map();
130535
130868
  #s = /* @__PURE__ */ new Set();
130536
130869
  reserve(t, e) {
130537
- t = Jn ? ["win32 parallelization disabled"] : t.map((r) => mt(pr(mr(r))));
130538
- let i = new Set(t.map((r) => to(r)).reduce((r, n) => r.concat(n)));
130870
+ t = eo ? ["win32 parallelization disabled"] : t.map((r) => mt(br(Rr(r))));
130871
+ let i = new Set(t.map((r) => io(r)).reduce((r, n) => r.concat(n)));
130539
130872
  this.#i.set(e, { dirs: i, paths: t });
130540
130873
  for (let r of t) {
130541
130874
  let n = this.#t.get(r);
@@ -130593,25 +130926,25 @@ var Ei = class {
130593
130926
  return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
130594
130927
  }
130595
130928
  };
130596
- var Er = () => process.umask();
130597
- var wr = /* @__PURE__ */ Symbol("onEntry");
130929
+ var _r = () => process.umask();
130930
+ var gr = /* @__PURE__ */ Symbol("onEntry");
130598
130931
  var ys = /* @__PURE__ */ Symbol("checkFs");
130599
- var Sr = /* @__PURE__ */ Symbol("checkFs2");
130932
+ var Or = /* @__PURE__ */ Symbol("checkFs2");
130600
130933
  var Rs = /* @__PURE__ */ Symbol("isReusable");
130601
130934
  var P = /* @__PURE__ */ Symbol("makeFs");
130602
130935
  var bs = /* @__PURE__ */ Symbol("file");
130603
130936
  var _s = /* @__PURE__ */ Symbol("directory");
130604
130937
  var Si = /* @__PURE__ */ Symbol("link");
130605
- var yr = /* @__PURE__ */ Symbol("symlink");
130606
- var Rr = /* @__PURE__ */ Symbol("hardlink");
130938
+ var Tr = /* @__PURE__ */ Symbol("symlink");
130939
+ var xr = /* @__PURE__ */ Symbol("hardlink");
130607
130940
  var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
130608
- var br = /* @__PURE__ */ Symbol("unsupported");
130609
- var _r = /* @__PURE__ */ Symbol("checkPath");
130941
+ var Lr = /* @__PURE__ */ Symbol("unsupported");
130942
+ var Nr = /* @__PURE__ */ Symbol("checkPath");
130610
130943
  var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
130611
130944
  var St = /* @__PURE__ */ Symbol("mkdir");
130612
130945
  var O = /* @__PURE__ */ Symbol("onError");
130613
130946
  var wi = /* @__PURE__ */ Symbol("pending");
130614
- var gr = /* @__PURE__ */ Symbol("pend");
130947
+ var Ar = /* @__PURE__ */ Symbol("pend");
130615
130948
  var Xt = /* @__PURE__ */ Symbol("unpend");
130616
130949
  var ws = /* @__PURE__ */ Symbol("ended");
130617
130950
  var Ss = /* @__PURE__ */ Symbol("maybeClose");
@@ -130620,23 +130953,23 @@ var Re = /* @__PURE__ */ Symbol("doChown");
130620
130953
  var be = /* @__PURE__ */ Symbol("uid");
130621
130954
  var _e = /* @__PURE__ */ Symbol("gid");
130622
130955
  var ge = /* @__PURE__ */ Symbol("checkedCwd");
130623
- var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
130624
- var Oe = io === "win32";
130625
- var so = 1024;
130626
- var ro = (s3, t) => {
130956
+ var ro = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
130957
+ var Oe = ro === "win32";
130958
+ var no = 1024;
130959
+ var oo = (s3, t) => {
130627
130960
  if (!Oe) return u.unlink(s3, t);
130628
- let e = s3 + ".DELETE." + Tr(16).toString("hex");
130961
+ let e = s3 + ".DELETE." + Ir(16).toString("hex");
130629
130962
  u.rename(s3, e, (i) => {
130630
130963
  if (i) return t(i);
130631
130964
  u.unlink(e, t);
130632
130965
  });
130633
130966
  };
130634
- var no = (s3) => {
130967
+ var ho = (s3) => {
130635
130968
  if (!Oe) return u.unlinkSync(s3);
130636
- let t = s3 + ".DELETE." + Tr(16).toString("hex");
130969
+ let t = s3 + ".DELETE." + Ir(16).toString("hex");
130637
130970
  u.renameSync(s3, t), u.unlinkSync(t);
130638
130971
  };
130639
- var Or = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
130972
+ var Dr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
130640
130973
  var qt = class extends st {
130641
130974
  [ws] = false;
130642
130975
  [ge] = false;
@@ -130674,7 +131007,7 @@ var qt = class extends st {
130674
131007
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
130675
131008
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
130676
131009
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
130677
- 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));
131010
+ 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));
130678
131011
  }
130679
131012
  warn(t, e, i = {}) {
130680
131013
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
@@ -130693,7 +131026,7 @@ var qt = class extends st {
130693
131026
  }
130694
131027
  return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
130695
131028
  }
130696
- [_r](t) {
131029
+ [Nr](t) {
130697
131030
  let e = f(t.path), i = e.split("/");
130698
131031
  if (this.strip) {
130699
131032
  if (i.length < this.strip) return false;
@@ -130716,9 +131049,9 @@ var qt = class extends st {
130716
131049
  }
130717
131050
  return true;
130718
131051
  }
130719
- [wr](t) {
130720
- if (!this[_r](t)) return t.resume();
130721
- switch (eo.equal(typeof t.absolute, "string"), t.type) {
131052
+ [gr](t) {
131053
+ if (!this[Nr](t)) return t.resume();
131054
+ switch (so.equal(typeof t.absolute, "string"), t.type) {
130722
131055
  case "Directory":
130723
131056
  case "GNUDumpDir":
130724
131057
  t.mode && (t.mode = t.mode | 448);
@@ -130729,23 +131062,23 @@ var qt = class extends st {
130729
131062
  case "SymbolicLink":
130730
131063
  return this[ys](t);
130731
131064
  default:
130732
- return this[br](t);
131065
+ return this[Lr](t);
130733
131066
  }
130734
131067
  }
130735
131068
  [O](t, e) {
130736
131069
  t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
130737
131070
  }
130738
131071
  [St](t, e, i) {
130739
- 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);
131072
+ 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);
130740
131073
  }
130741
131074
  [Re](t) {
130742
131075
  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;
130743
131076
  }
130744
131077
  [be](t) {
130745
- return Or(this.uid, t.uid, this.processUid);
131078
+ return Dr(this.uid, t.uid, this.processUid);
130746
131079
  }
130747
131080
  [_e](t) {
130748
- return Or(this.gid, t.gid, this.processGid);
131081
+ return Dr(this.gid, t.gid, this.processGid);
130749
131082
  }
130750
131083
  [bs](t, e) {
130751
131084
  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 });
@@ -130795,16 +131128,16 @@ var qt = class extends st {
130795
131128
  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();
130796
131129
  });
130797
131130
  }
130798
- [br](t) {
131131
+ [Lr](t) {
130799
131132
  t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
130800
131133
  }
130801
- [yr](t, e) {
131134
+ [Tr](t, e) {
130802
131135
  let i = f(R.relative(this.cwd, R.resolve(R.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
130803
131136
  this[ye](t, this.cwd, i, () => this[Si](t, String(t.linkpath), "symlink", e), (r) => {
130804
131137
  this[O](r, t), e();
130805
131138
  });
130806
131139
  }
130807
- [Rr](t, e) {
131140
+ [xr](t, e) {
130808
131141
  let i = f(R.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
130809
131142
  this[ye](t, this.cwd, r, () => this[Si](t, i, "link", e), (n) => {
130810
131143
  this[O](n, t), e();
@@ -130820,7 +131153,7 @@ var qt = class extends st {
130820
131153
  this[ye](t, h, i, r, n);
130821
131154
  });
130822
131155
  }
130823
- [gr]() {
131156
+ [Ar]() {
130824
131157
  this[wi]++;
130825
131158
  }
130826
131159
  [Xt]() {
@@ -130833,11 +131166,11 @@ var qt = class extends st {
130833
131166
  return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
130834
131167
  }
130835
131168
  [ys](t) {
130836
- this[gr]();
131169
+ this[Ar]();
130837
131170
  let e = [t.path];
130838
- t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Sr](t, i));
131171
+ t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Or](t, i));
130839
131172
  }
130840
- [Sr](t, e) {
131173
+ [Or](t, e) {
130841
131174
  let i = (h) => {
130842
131175
  e(h);
130843
131176
  }, r = () => {
@@ -130875,7 +131208,7 @@ var qt = class extends st {
130875
131208
  if (t.absolute !== this.cwd) return u.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
130876
131209
  }
130877
131210
  if (t.absolute === this.cwd) return this[P](null, t, i);
130878
- ro(String(t.absolute), (l) => this[P](l ?? null, t, i));
131211
+ oo(String(t.absolute), (l) => this[P](l ?? null, t, i));
130879
131212
  });
130880
131213
  };
130881
131214
  this[ge] ? n() : r();
@@ -130891,9 +131224,9 @@ var qt = class extends st {
130891
131224
  case "ContiguousFile":
130892
131225
  return this[bs](e, i);
130893
131226
  case "Link":
130894
- return this[Rr](e, i);
131227
+ return this[xr](e, i);
130895
131228
  case "SymbolicLink":
130896
- return this[yr](e, i);
131229
+ return this[Tr](e, i);
130897
131230
  case "Directory":
130898
131231
  case "GNUDumpDir":
130899
131232
  return this[_s](e, i);
@@ -130944,7 +131277,7 @@ var Te = class extends qt {
130944
131277
  let [n] = Se(() => u.rmdirSync(String(t.absolute)));
130945
131278
  this[P](n, t);
130946
131279
  }
130947
- let [r] = t.absolute === this.cwd ? [] : Se(() => no(String(t.absolute)));
131280
+ let [r] = t.absolute === this.cwd ? [] : Se(() => ho(String(t.absolute)));
130948
131281
  this[P](r, t);
130949
131282
  }
130950
131283
  [bs](t, e) {
@@ -131016,7 +131349,7 @@ var Te = class extends qt {
131016
131349
  }
131017
131350
  [St](t, e) {
131018
131351
  try {
131019
- 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 });
131352
+ 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 });
131020
131353
  } catch (i) {
131021
131354
  return i;
131022
131355
  }
@@ -131041,14 +131374,14 @@ var Te = class extends qt {
131041
131374
  }
131042
131375
  }
131043
131376
  };
131044
- var oo = (s3) => {
131045
- let t = new Te(s3), e = s3.file, i = xr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
131377
+ var ao = (s3) => {
131378
+ let t = new Te(s3), e = s3.file, i = Cr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
131046
131379
  new Me(e, { readSize: r, size: i.size }).pipe(t);
131047
131380
  };
131048
- var ho = (s3, t) => {
131381
+ var lo = (s3, t) => {
131049
131382
  let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
131050
131383
  return new Promise((o, h) => {
131051
- e.on("error", h), e.on("close", o), xr.stat(r, (a, l) => {
131384
+ e.on("error", h), e.on("close", o), Cr.stat(r, (a, l) => {
131052
131385
  if (a) h(a);
131053
131386
  else {
131054
131387
  let c = new _t(r, { readSize: i, size: l.size });
@@ -131057,10 +131390,10 @@ var ho = (s3, t) => {
131057
131390
  });
131058
131391
  });
131059
131392
  };
131060
- var ao = K(oo, ho, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
131393
+ var co = K(ao, lo, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
131061
131394
  t?.length && Ki(s3, t);
131062
131395
  });
131063
- var lo = (s3, t) => {
131396
+ var fo = (s3, t) => {
131064
131397
  let e = new kt(s3), i = true, r, n;
131065
131398
  try {
131066
131399
  try {
@@ -131081,7 +131414,7 @@ var lo = (s3, t) => {
131081
131414
  if (n + l + 512 > o.size) break;
131082
131415
  n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
131083
131416
  }
131084
- i = false, co(s3, e, n, r, t);
131417
+ i = false, uo(s3, e, n, r, t);
131085
131418
  } finally {
131086
131419
  if (i) try {
131087
131420
  v.closeSync(r);
@@ -131089,11 +131422,11 @@ var lo = (s3, t) => {
131089
131422
  }
131090
131423
  }
131091
131424
  };
131092
- var co = (s3, t, e, i, r) => {
131425
+ var uo = (s3, t, e, i, r) => {
131093
131426
  let n = new Wt(s3.file, { fd: i, start: e });
131094
- t.pipe(n), uo(t, r);
131427
+ t.pipe(n), po(t, r);
131095
131428
  };
131096
- var fo = (s3, t) => {
131429
+ var mo = (s3, t) => {
131097
131430
  t = Array.from(t);
131098
131431
  let e = new Et(s3), i = (n, o, h) => {
131099
131432
  let a = (T, N) => {
@@ -131123,23 +131456,23 @@ var fo = (s3, t) => {
131123
131456
  i(c, S.size, (T, N) => {
131124
131457
  if (T) return o(T);
131125
131458
  let E = new tt(s3.file, { fd: c, start: N });
131126
- e.pipe(E), E.on("error", o), E.on("close", n), mo(e, t);
131459
+ e.pipe(E), E.on("error", o), E.on("close", n), Eo(e, t);
131127
131460
  });
131128
131461
  });
131129
131462
  };
131130
131463
  v.open(s3.file, h, a);
131131
131464
  });
131132
131465
  };
131133
- var uo = (s3, t) => {
131466
+ var po = (s3, t) => {
131134
131467
  t.forEach((e) => {
131135
- e.charAt(0) === "@" ? It({ file: Lr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
131468
+ e.charAt(0) === "@" ? It({ file: Fr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
131136
131469
  }), s3.end();
131137
131470
  };
131138
- var mo = async (s3, t) => {
131139
- 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);
131471
+ var Eo = async (s3, t) => {
131472
+ 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);
131140
131473
  s3.end();
131141
131474
  };
131142
- var vt = K(lo, fo, () => {
131475
+ var vt = K(fo, mo, () => {
131143
131476
  throw new TypeError("file is required");
131144
131477
  }, () => {
131145
131478
  throw new TypeError("file is required");
@@ -131148,10 +131481,10 @@ var vt = K(lo, fo, () => {
131148
131481
  if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
131149
131482
  if (!t?.length) throw new TypeError("no paths specified to add/replace");
131150
131483
  });
131151
- var po = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
131152
- vt.validate?.(s3, t), Eo(s3);
131484
+ var wo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
131485
+ vt.validate?.(s3, t), So(s3);
131153
131486
  });
131154
- var Eo = (s3) => {
131487
+ var So = (s3) => {
131155
131488
  let t = s3.filter;
131156
131489
  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));
131157
131490
  };
@@ -131163,7 +131496,7 @@ async function packageDirectory(dirPath) {
131163
131496
  os6.tmpdir(),
131164
131497
  `appwrite-deploy-${Date.now()}.tar.gz`
131165
131498
  );
131166
- await Pn(
131499
+ await Zn(
131167
131500
  {
131168
131501
  gzip: true,
131169
131502
  file: tempFile,
@@ -131244,7 +131577,7 @@ async function downloadDeploymentCode(params) {
131244
131577
  `Failed to write deployment archive to "${compressedFileName}": ${message}`
131245
131578
  );
131246
131579
  }
131247
- ao({
131580
+ co({
131248
131581
  sync: true,
131249
131582
  cwd: resourcePath,
131250
131583
  file: compressedFileName,
@@ -134739,12 +135072,9 @@ var runFunction = async ({
134739
135072
  const allVariables = {};
134740
135073
  if (withVariables) {
134741
135074
  try {
134742
- const { variables: remoteVariables } = await paginate(
134743
- async () => (await getFunctionsService()).listVariables(func["$id"]),
134744
- {},
134745
- 100,
134746
- "variables"
134747
- );
135075
+ const { variables: remoteVariables } = await (await getFunctionsService()).listVariables({
135076
+ functionId: func["$id"]
135077
+ });
134748
135078
  remoteVariables.forEach((v2) => {
134749
135079
  allVariables[v2.key] = v2.value;
134750
135080
  userVariables[v2.key] = v2.value;
@@ -134854,7 +135184,7 @@ var runFunction = async ({
134854
135184
  fs13.rmSync(hotSwapPath, { recursive: true, force: true });
134855
135185
  fs13.mkdirSync(hotSwapPath, { recursive: true });
134856
135186
  }
134857
- await ao({
135187
+ await co({
134858
135188
  keep: true,
134859
135189
  sync: true,
134860
135190
  cwd: hotSwapPath,
@@ -134882,7 +135212,7 @@ var runFunction = async ({
134882
135212
  const sourcePath = path11.join(functionPath, f2);
134883
135213
  fs13.copyFileSync(sourcePath, filePath);
134884
135214
  }
134885
- await Pn(
135215
+ await Zn(
134886
135216
  {
134887
135217
  gzip: true,
134888
135218
  sync: true,
@@ -136924,18 +137254,9 @@ var Push = class {
136924
137254
  const functionsServiceForVars = await getFunctionsService(
136925
137255
  this.projectClient
136926
137256
  );
136927
- const { variables } = await paginate(
136928
- async (args) => {
136929
- return await functionsServiceForVars.listVariables({
136930
- functionId: args.functionId
136931
- });
136932
- },
136933
- {
136934
- functionId: func["$id"]
136935
- },
136936
- 100,
136937
- "variables"
136938
- );
137257
+ const { variables } = await functionsServiceForVars.listVariables({
137258
+ functionId: func["$id"]
137259
+ });
136939
137260
  await Promise.all(
136940
137261
  variables.map(async (variable) => {
136941
137262
  const functionsServiceDel = await getFunctionsService(
@@ -137229,18 +137550,9 @@ var Push = class {
137229
137550
  if (withVariables) {
137230
137551
  updaterRow.update({ status: "Creating variables" }).replaceSpinner(SPINNER_DOTS);
137231
137552
  const sitesServiceForVars = await getSitesService(this.projectClient);
137232
- const { variables } = await paginate(
137233
- async (args) => {
137234
- return await sitesServiceForVars.listVariables({
137235
- siteId: args.siteId
137236
- });
137237
- },
137238
- {
137239
- siteId: site["$id"]
137240
- },
137241
- 100,
137242
- "variables"
137243
- );
137553
+ const { variables } = await sitesServiceForVars.listVariables({
137554
+ siteId: site["$id"]
137555
+ });
137244
137556
  await Promise.all(
137245
137557
  variables.map(async (variable) => {
137246
137558
  const sitesServiceDel = await getSitesService(this.projectClient);
@@ -139337,36 +139649,6 @@ account.command(`delete`).description(`Delete the currently logged in user.`).ac
139337
139649
  async () => parse3(await (await getAccountClient()).delete())
139338
139650
  )
139339
139651
  );
139340
- account.command(`list-billing-addresses`).description(`List all billing addresses for a user.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, expired, failed`).action(
139341
- actionRunner(
139342
- async ({ queries }) => parse3(await (await getAccountClient()).listBillingAddresses(queries))
139343
- )
139344
- );
139345
- account.command(`create-billing-address`).description(`Add a new billing address to a user's account.`).requiredOption(`--country <country>`, `Country`).requiredOption(`--city <city>`, `City`).requiredOption(`--street-address <street-address>`, `Street address`).option(`--address-line-2 <address-line-2>`, `Address line 2`).option(`--state <state>`, `State or province`).option(`--postal-code <postal-code>`, `Postal code`).action(
139346
- actionRunner(
139347
- async ({ country, city, streetAddress, addressLine2, state, postalCode }) => parse3(await (await getAccountClient()).createBillingAddress(country, city, streetAddress, addressLine2, state, postalCode))
139348
- )
139349
- );
139350
- account.command(`get-billing-address`).description(`Get a specific billing address for a user using it's ID.`).requiredOption(`--billing-address-id <billing-address-id>`, `Unique ID of billing address`).action(
139351
- actionRunner(
139352
- async ({ billingAddressId }) => parse3(await (await getAccountClient()).getBillingAddress(billingAddressId))
139353
- )
139354
- );
139355
- account.command(`update-billing-address`).description(`Update a specific billing address using it's ID.`).requiredOption(`--billing-address-id <billing-address-id>`, `Unique ID of billing address`).requiredOption(`--country <country>`, `Country`).requiredOption(`--city <city>`, `City`).requiredOption(`--street-address <street-address>`, `Street address`).option(`--address-line-2 <address-line-2>`, `Address line 2`).option(`--state <state>`, `State or province`).option(`--postal-code <postal-code>`, `Postal code`).action(
139356
- actionRunner(
139357
- async ({ billingAddressId, country, city, streetAddress, addressLine2, state, postalCode }) => parse3(await (await getAccountClient()).updateBillingAddress(billingAddressId, country, city, streetAddress, addressLine2, state, postalCode))
139358
- )
139359
- );
139360
- account.command(`delete-billing-address`).description(`Delete a specific billing address using it's ID.`).requiredOption(`--billing-address-id <billing-address-id>`, `Billing address unique ID`).action(
139361
- actionRunner(
139362
- async ({ billingAddressId }) => parse3(await (await getAccountClient()).deleteBillingAddress(billingAddressId))
139363
- )
139364
- );
139365
- account.command(`get-coupon`).description(`Get coupon details for an account.`).requiredOption(`--coupon-id <coupon-id>`, `ID of the coupon`).action(
139366
- actionRunner(
139367
- async ({ couponId }) => parse3(await (await getAccountClient()).getCoupon(couponId))
139368
- )
139369
- );
139370
139652
  account.command(`update-email`).description(`Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.
139371
139653
  This endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.
139372
139654
  `).requiredOption(`--email <email>`, `User email.`).requiredOption(`--password <password>`, `User password. Must be at least 8 chars.`).action(
@@ -139388,11 +139670,6 @@ account.command(`delete-identity`).description(`Delete an identity by its unique
139388
139670
  async ({ identityId }) => parse3(await (await getAccountClient()).deleteIdentity(identityId))
139389
139671
  )
139390
139672
  );
139391
- account.command(`list-invoices`).description(`List all invoices tied to an account.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount`).action(
139392
- actionRunner(
139393
- async ({ queries }) => parse3(await (await getAccountClient()).listInvoices(queries))
139394
- )
139395
- );
139396
139673
  account.command(`create-jwt`).description(`Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.`).option(`--duration <duration>`, `Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.`, parseInteger).action(
139397
139674
  actionRunner(
139398
139675
  async ({ duration: duration3 }) => parse3(await (await getAccountClient()).createJWT(duration3))
@@ -139496,41 +139773,6 @@ account.command(`update-password`).description(`Update currently logged in user
139496
139773
  async ({ password, oldPassword }) => parse3(await (await getAccountClient()).updatePassword(password, oldPassword))
139497
139774
  )
139498
139775
  );
139499
- account.command(`list-payment-methods`).description(`List payment methods for this account.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, expired, failed`).action(
139500
- actionRunner(
139501
- async ({ queries }) => parse3(await (await getAccountClient()).listPaymentMethods(queries))
139502
- )
139503
- );
139504
- account.command(`create-payment-method`).description(`Create a new payment method for the current user account.`).action(
139505
- actionRunner(
139506
- async () => parse3(await (await getAccountClient()).createPaymentMethod())
139507
- )
139508
- );
139509
- account.command(`get-payment-method`).description(`Get a specific payment method for the user.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).action(
139510
- actionRunner(
139511
- async ({ paymentMethodId }) => parse3(await (await getAccountClient()).getPaymentMethod(paymentMethodId))
139512
- )
139513
- );
139514
- account.command(`update-payment-method`).description(`Update a new payment method for the current user account.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).requiredOption(`--expiry-month <expiry-month>`, `Payment expiry month`, parseInteger).requiredOption(`--expiry-year <expiry-year>`, `Expiry year`, parseInteger).option(`--state <state>`, `State of the payment method country`).action(
139515
- actionRunner(
139516
- async ({ paymentMethodId, expiryMonth, expiryYear, state }) => parse3(await (await getAccountClient()).updatePaymentMethod(paymentMethodId, expiryMonth, expiryYear, state))
139517
- )
139518
- );
139519
- account.command(`delete-payment-method`).description(`Delete a specific payment method from a user's account.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).action(
139520
- actionRunner(
139521
- async ({ paymentMethodId }) => parse3(await (await getAccountClient()).deletePaymentMethod(paymentMethodId))
139522
- )
139523
- );
139524
- account.command(`update-payment-method-provider`).description(`Update payment method provider.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).requiredOption(`--provider-method-id <provider-method-id>`, `Payment method ID from the payment provider`).requiredOption(`--name <name>`, `Name in the payment method`).option(`--state <state>`, `State of the payment method country`).action(
139525
- actionRunner(
139526
- async ({ paymentMethodId, providerMethodId, name, state }) => parse3(await (await getAccountClient()).updatePaymentMethodProvider(paymentMethodId, providerMethodId, name, state))
139527
- )
139528
- );
139529
- account.command(`update-payment-method-mandate-options`).description(`Update payment method mandate options.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).action(
139530
- actionRunner(
139531
- async ({ paymentMethodId }) => parse3(await (await getAccountClient()).updatePaymentMethodMandateOptions(paymentMethodId))
139532
- )
139533
- );
139534
139776
  account.command(`update-phone`).description(`Update the currently logged in user's phone number. After updating the phone number, the phone verification status will be reset. A confirmation SMS is not sent automatically, however you can use the [POST /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) endpoint to send a confirmation SMS.`).requiredOption(`--phone <phone>`, `Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`).requiredOption(`--password <password>`, `User password. Must be at least 8 chars.`).action(
139535
139777
  actionRunner(
139536
139778
  async ({ phone, password }) => parse3(await (await getAccountClient()).updatePhone(phone, password))
@@ -140669,12 +140911,6 @@ health.command(`get-certificate`).description(`Get the SSL certificate for a dom
140669
140911
  async ({ domain: domain2 }) => parse3(await (await getHealthClient()).getCertificate(domain2))
140670
140912
  )
140671
140913
  );
140672
- health.command(`get-console-pausing`).description(`Get console pausing health status. Monitors projects approaching the pause threshold to detect potential issues with console access tracking.
140673
- `).option(`--threshold <threshold>`, `Percentage threshold of projects approaching pause. When hit (equal or higher), endpoint returns server error. Default value is 10.`, parseInteger).option(`--inactivity-days <inactivity-days>`, `Number of days of inactivity before a project is paused. Should match the plan's projectInactivityDays setting. Default value is 7.`, parseInteger).action(
140674
- actionRunner(
140675
- async ({ threshold, inactivityDays }) => parse3(await (await getHealthClient()).getConsolePausing(threshold, inactivityDays))
140676
- )
140677
- );
140678
140914
  health.command(`get-db`).description(`Check the Appwrite database servers are up and connection is successful.`).action(
140679
140915
  actionRunner(
140680
140916
  async () => parse3(await (await getHealthClient()).getDB())
@@ -140690,26 +140926,11 @@ health.command(`get-queue-audits`).description(`Get the number of audit logs tha
140690
140926
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueAudits(threshold))
140691
140927
  )
140692
140928
  );
140693
- health.command(`get-queue-billing-project-aggregation`).description(`Get billing project aggregation queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140694
- actionRunner(
140695
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueueBillingProjectAggregation(threshold))
140696
- )
140697
- );
140698
- health.command(`get-queue-billing-team-aggregation`).description(`Get billing team aggregation queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140699
- actionRunner(
140700
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueueBillingTeamAggregation(threshold))
140701
- )
140702
- );
140703
140929
  health.command(`get-queue-builds`).description(`Get the number of builds that are waiting to be processed in the Appwrite internal queue server.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140704
140930
  actionRunner(
140705
140931
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueBuilds(threshold))
140706
140932
  )
140707
140933
  );
140708
- health.command(`get-queue-priority-builds`).description(`Get the priority builds queue size.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.`, parseInteger).action(
140709
- actionRunner(
140710
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueuePriorityBuilds(threshold))
140711
- )
140712
- );
140713
140934
  health.command(`get-queue-certificates`).description(`Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140714
140935
  actionRunner(
140715
140936
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueCertificates(threshold))
@@ -140756,11 +140977,6 @@ health.command(`get-queue-migrations`).description(`Get the number of migrations
140756
140977
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueMigrations(threshold))
140757
140978
  )
140758
140979
  );
140759
- health.command(`get-queue-region-manager`).description(`Get region manager queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.`, parseInteger).action(
140760
- actionRunner(
140761
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueueRegionManager(threshold))
140762
- )
140763
- );
140764
140980
  health.command(`get-queue-stats-resources`).description(`Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140765
140981
  actionRunner(
140766
140982
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueStatsResources(threshold))
@@ -140771,11 +140987,6 @@ health.command(`get-queue-usage`).description(`Get the number of metrics that ar
140771
140987
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueUsage(threshold))
140772
140988
  )
140773
140989
  );
140774
- health.command(`get-queue-threats`).description(`Get threats queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.`, parseInteger).action(
140775
- actionRunner(
140776
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueueThreats(threshold))
140777
- )
140778
- );
140779
140990
  health.command(`get-queue-webhooks`).description(`Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140780
140991
  actionRunner(
140781
140992
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueWebhooks(threshold))
@@ -141425,26 +141636,30 @@ project.command(`get-usage`).description(`Get comprehensive usage statistics for
141425
141636
  async ({ startDate, endDate, period }) => parse3(await (await getProjectClient()).getUsage(startDate, endDate, period))
141426
141637
  )
141427
141638
  );
141428
- project.command(`list-variables`).description(`Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.`).action(
141639
+ project.command(`list-variables`).description(`Get a list of all project environment variables.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, resourceType, resourceId, secret`).option(
141640
+ `--total [value]`,
141641
+ `When set to false, the total count returned will be 0 and will not be calculated.`,
141642
+ (value) => value === void 0 ? true : parseBool(value)
141643
+ ).action(
141429
141644
  actionRunner(
141430
- async () => parse3(await (await getProjectClient()).listVariables())
141645
+ async ({ queries, total }) => parse3(await (await getProjectClient()).listVariables(queries, total))
141431
141646
  )
141432
141647
  );
141433
- project.command(`create-variable`).description(`Create a new project variable. This variable will be accessible in all Appwrite Functions at runtime.`).requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`).requiredOption(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
141648
+ project.command(`create-variable`).description(`Create a new project environment variable. These variables can be accessed by all functions and sites in the project.`).requiredOption(`--variable-id <variable-id>`, `Variable ID. Choose a custom ID or generate a random ID with \`ID.unique()\`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`).requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`).requiredOption(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
141434
141649
  `--secret [value]`,
141435
141650
  `Secret variables can be updated or deleted, but only projects can read them during build and runtime.`,
141436
141651
  (value) => value === void 0 ? true : parseBool(value)
141437
141652
  ).action(
141438
141653
  actionRunner(
141439
- async ({ key, value, secret }) => parse3(await (await getProjectClient()).createVariable(key, value, secret))
141654
+ async ({ variableId, key, value, secret }) => parse3(await (await getProjectClient()).createVariable(variableId, key, value, secret))
141440
141655
  )
141441
141656
  );
141442
- project.command(`get-variable`).description(`Get a project variable by its unique ID.`).requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`).action(
141657
+ project.command(`get-variable`).description(`Get a variable by its unique ID. `).requiredOption(`--variable-id <variable-id>`, `Variable ID.`).action(
141443
141658
  actionRunner(
141444
141659
  async ({ variableId }) => parse3(await (await getProjectClient()).getVariable(variableId))
141445
141660
  )
141446
141661
  );
141447
- project.command(`update-variable`).description(`Update project variable by its unique ID. This variable will be accessible in all Appwrite Functions at runtime.`).requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`).requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`).option(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
141662
+ project.command(`update-variable`).description(`Update variable by its unique ID.`).requiredOption(`--variable-id <variable-id>`, `Variable ID.`).option(`--key <key>`, `Variable key. Max length: 255 chars.`).option(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
141448
141663
  `--secret [value]`,
141449
141664
  `Secret variables can be updated or deleted, but only projects can read them during build and runtime.`,
141450
141665
  (value) => value === void 0 ? true : parseBool(value)
@@ -141453,7 +141668,7 @@ project.command(`update-variable`).description(`Update project variable by its u
141453
141668
  async ({ variableId, key, value, secret }) => parse3(await (await getProjectClient()).updateVariable(variableId, key, value, secret))
141454
141669
  )
141455
141670
  );
141456
- project.command(`delete-variable`).description(`Delete a project variable by its unique ID. `).requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`).action(
141671
+ project.command(`delete-variable`).description(`Delete a variable by its unique ID. `).requiredOption(`--variable-id <variable-id>`, `Variable ID.`).action(
141457
141672
  actionRunner(
141458
141673
  async ({ variableId }) => parse3(await (await getProjectClient()).deleteVariable(variableId))
141459
141674
  )
@@ -141565,12 +141780,6 @@ projects.command(`update-auth-status`).description(`Update the status of a speci
141565
141780
  async ({ projectId, method, status }) => parse3(await (await getProjectsClient()).updateAuthStatus(projectId, method, status))
141566
141781
  )
141567
141782
  );
141568
- projects.command(`update-console-access`).description(`Record console access to a project. This endpoint updates the last accessed timestamp for the project to track console activity.
141569
- `).requiredOption(`--project-id <project-id>`, `Project ID`).action(
141570
- actionRunner(
141571
- async ({ projectId }) => parse3(await (await getProjectsClient()).updateConsoleAccess(projectId))
141572
- )
141573
- );
141574
141783
  projects.command(`list-dev-keys`).description(`List all the project's dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.'`).requiredOption(`--project-id <project-id>`, `Project unique ID.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: accessedAt, expire`).action(
141575
141784
  actionRunner(
141576
141785
  async ({ projectId, queries }) => parse3(await (await getProjectsClient()).listDevKeys(projectId, queries))
@@ -142906,7 +143115,7 @@ var getUsersClient = async () => {
142906
143115
  var users = new Command("users").description(commandDescriptions["users"] ?? "").configureHelp({
142907
143116
  helpWidth: process.stdout.columns || 80
142908
143117
  });
142909
- users.command(`list`).description(`Get a list of all the project's users. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
143118
+ users.command(`list`).description(`Get a list of all the project's users. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels, impersonator`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
142910
143119
  `--total [value]`,
142911
143120
  `When set to false, the total count returned will be 0 and will not be calculated.`,
142912
143121
  (value) => value === void 0 ? true : parseBool(value)
@@ -142990,6 +143199,12 @@ users.command(`update-email`).description(`Update the user email by its unique I
142990
143199
  async ({ userId, email: email3 }) => parse3(await (await getUsersClient()).updateEmail(userId, email3))
142991
143200
  )
142992
143201
  );
143202
+ users.command(`update-impersonator`).description(`Enable or disable whether a user can impersonate other users. When impersonation headers are used, the request runs as the target user for API behavior, while internal audit logs still attribute the action to the original impersonator and store the impersonated target details only in internal audit payload data.
143203
+ `).requiredOption(`--user-id <user-id>`, `User ID.`).requiredOption(`--impersonator <impersonator>`, `Whether the user can impersonate other users. When true, the user can browse project users to choose a target and can pass impersonation headers to act as that user. Internal audit logs still attribute impersonated actions to the original impersonator and store the target user details only in internal audit payload data.`, parseBool).action(
143204
+ actionRunner(
143205
+ async ({ userId, impersonator }) => parse3(await (await getUsersClient()).updateImpersonator(userId, impersonator))
143206
+ )
143207
+ );
142993
143208
  users.command(`create-jwt`).description(`Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.`).requiredOption(`--user-id <user-id>`, `User ID.`).option(`--session-id <session-id>`, `Session ID. Use the string 'recent' to use the most recent session. Defaults to the most recent session.`).option(`--duration <duration>`, `Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.`, parseInteger).action(
142994
143209
  actionRunner(
142995
143210
  async ({ userId, sessionId, duration: duration3 }) => parse3(await (await getUsersClient()).createJWT(userId, sessionId, duration3))