appwrite-cli 17.3.1 → 17.4.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.
@@ -558,8 +558,8 @@ var require_help = __commonJS({
558
558
  const leadingStr = str.slice(0, indent);
559
559
  const columnText = str.slice(indent);
560
560
  const indentString = " ".repeat(indent);
561
- const regex = new RegExp(".{1," + (columnWidth - 1) + "}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)", "g");
562
- const lines = columnText.match(regex) || [];
561
+ const regex2 = new RegExp(".{1," + (columnWidth - 1) + "}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)", "g");
562
+ const lines = columnText.match(regex2) || [];
563
563
  return leadingStr + lines.map((line, i) => {
564
564
  if (line.slice(-1) === "\n") {
565
565
  line = line.slice(0, line.length - 1);
@@ -1436,9 +1436,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
1436
1436
  if (typeof fn2 === "function") {
1437
1437
  option.default(defaultValue).argParser(fn2);
1438
1438
  } else if (fn2 instanceof RegExp) {
1439
- const regex = fn2;
1439
+ const regex2 = fn2;
1440
1440
  fn2 = (val, def) => {
1441
- const m2 = regex.exec(val);
1441
+ const m2 = regex2.exec(val);
1442
1442
  return m2 ? m2[0] : def;
1443
1443
  };
1444
1444
  option.default(defaultValue).argParser(fn2);
@@ -4085,14 +4085,14 @@ var require_templates = __commonJS({
4085
4085
  }
4086
4086
  return results;
4087
4087
  }
4088
- function buildStyle(chalk14, styles) {
4088
+ function buildStyle(chalk15, styles) {
4089
4089
  const enabled = {};
4090
4090
  for (const layer of styles) {
4091
4091
  for (const style of layer.styles) {
4092
4092
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
4093
4093
  }
4094
4094
  }
4095
- let current = chalk14;
4095
+ let current = chalk15;
4096
4096
  for (const [styleName, styles2] of Object.entries(enabled)) {
4097
4097
  if (!Array.isArray(styles2)) {
4098
4098
  continue;
@@ -4104,7 +4104,7 @@ var require_templates = __commonJS({
4104
4104
  }
4105
4105
  return current;
4106
4106
  }
4107
- module.exports = (chalk14, temporary) => {
4107
+ module.exports = (chalk15, temporary) => {
4108
4108
  const styles = [];
4109
4109
  const chunks = [];
4110
4110
  let chunk = [];
@@ -4114,13 +4114,13 @@ var require_templates = __commonJS({
4114
4114
  } else if (style) {
4115
4115
  const string4 = chunk.join("");
4116
4116
  chunk = [];
4117
- chunks.push(styles.length === 0 ? string4 : buildStyle(chalk14, styles)(string4));
4117
+ chunks.push(styles.length === 0 ? string4 : buildStyle(chalk15, styles)(string4));
4118
4118
  styles.push({ inverse, styles: parseStyle(style) });
4119
4119
  } else if (close) {
4120
4120
  if (styles.length === 0) {
4121
4121
  throw new Error("Found extraneous } in Chalk template literal");
4122
4122
  }
4123
- chunks.push(buildStyle(chalk14, styles)(chunk.join("")));
4123
+ chunks.push(buildStyle(chalk15, styles)(chunk.join("")));
4124
4124
  chunk = [];
4125
4125
  styles.pop();
4126
4126
  } else {
@@ -4168,16 +4168,16 @@ var require_source = __commonJS({
4168
4168
  }
4169
4169
  };
4170
4170
  var chalkFactory = (options) => {
4171
- const chalk15 = {};
4172
- applyOptions(chalk15, options);
4173
- chalk15.template = (...arguments_) => chalkTag(chalk15.template, ...arguments_);
4174
- Object.setPrototypeOf(chalk15, Chalk.prototype);
4175
- Object.setPrototypeOf(chalk15.template, chalk15);
4176
- chalk15.template.constructor = () => {
4171
+ const chalk16 = {};
4172
+ applyOptions(chalk16, options);
4173
+ chalk16.template = (...arguments_) => chalkTag(chalk16.template, ...arguments_);
4174
+ Object.setPrototypeOf(chalk16, Chalk.prototype);
4175
+ Object.setPrototypeOf(chalk16.template, chalk16);
4176
+ chalk16.template.constructor = () => {
4177
4177
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
4178
4178
  };
4179
- chalk15.template.Instance = ChalkClass;
4180
- return chalk15.template;
4179
+ chalk16.template.Instance = ChalkClass;
4180
+ return chalk16.template;
4181
4181
  };
4182
4182
  function Chalk(options) {
4183
4183
  return chalkFactory(options);
@@ -4288,7 +4288,7 @@ var require_source = __commonJS({
4288
4288
  return openAll + string4 + closeAll;
4289
4289
  };
4290
4290
  var template;
4291
- var chalkTag = (chalk15, ...strings) => {
4291
+ var chalkTag = (chalk16, ...strings) => {
4292
4292
  const [firstString] = strings;
4293
4293
  if (!isArray(firstString) || !isArray(firstString.raw)) {
4294
4294
  return strings.join(" ");
@@ -4304,14 +4304,14 @@ var require_source = __commonJS({
4304
4304
  if (template === void 0) {
4305
4305
  template = require_templates();
4306
4306
  }
4307
- return template(chalk15, parts.join(""));
4307
+ return template(chalk16, parts.join(""));
4308
4308
  };
4309
4309
  Object.defineProperties(Chalk.prototype, styles);
4310
- var chalk14 = Chalk();
4311
- chalk14.supportsColor = stdoutColor;
4312
- chalk14.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4313
- chalk14.stderr.supportsColor = stderrColor;
4314
- module.exports = chalk14;
4310
+ var chalk15 = Chalk();
4311
+ chalk15.supportsColor = stdoutColor;
4312
+ chalk15.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4313
+ chalk15.stderr.supportsColor = stderrColor;
4314
+ module.exports = chalk15;
4315
4315
  }
4316
4316
  });
4317
4317
 
@@ -4479,12 +4479,12 @@ var require_figures = __commonJS({
4479
4479
  var require_separator = __commonJS({
4480
4480
  "node_modules/inquirer/lib/objects/separator.js"(exports, module) {
4481
4481
  "use strict";
4482
- var chalk14 = require_source();
4482
+ var chalk15 = require_source();
4483
4483
  var figures = require_figures();
4484
4484
  var Separator = class {
4485
4485
  constructor(line) {
4486
4486
  this.type = "separator";
4487
- this.line = chalk14.dim(line || new Array(15).join(figures.line));
4487
+ this.line = chalk15.dim(line || new Array(15).join(figures.line));
4488
4488
  }
4489
4489
  /**
4490
4490
  * Stringify separator
@@ -18626,8 +18626,8 @@ var require_ansi_regex = __commonJS({
18626
18626
  var require_strip_ansi = __commonJS({
18627
18627
  "node_modules/strip-ansi/index.js"(exports, module) {
18628
18628
  "use strict";
18629
- var ansiRegex = require_ansi_regex();
18630
- module.exports = (string4) => typeof string4 === "string" ? string4.replace(ansiRegex(), "") : string4;
18629
+ var ansiRegex2 = require_ansi_regex();
18630
+ module.exports = (string4) => typeof string4 === "string" ? string4.replace(ansiRegex2(), "") : string4;
18631
18631
  }
18632
18632
  });
18633
18633
 
@@ -18664,9 +18664,9 @@ var require_is_fullwidth_code_point = __commonJS({
18664
18664
  }
18665
18665
  });
18666
18666
 
18667
- // node_modules/emoji-regex/index.js
18667
+ // node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js
18668
18668
  var require_emoji_regex = __commonJS({
18669
- "node_modules/emoji-regex/index.js"(exports, module) {
18669
+ "node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
18670
18670
  "use strict";
18671
18671
  module.exports = function() {
18672
18672
  return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
@@ -18674,22 +18674,22 @@ var require_emoji_regex = __commonJS({
18674
18674
  }
18675
18675
  });
18676
18676
 
18677
- // node_modules/string-width/index.js
18677
+ // node_modules/wrap-ansi/node_modules/string-width/index.js
18678
18678
  var require_string_width = __commonJS({
18679
- "node_modules/string-width/index.js"(exports, module) {
18679
+ "node_modules/wrap-ansi/node_modules/string-width/index.js"(exports, module) {
18680
18680
  "use strict";
18681
- var stripAnsi = require_strip_ansi();
18681
+ var stripAnsi2 = require_strip_ansi();
18682
18682
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
18683
- var emojiRegex = require_emoji_regex();
18684
- var stringWidth = (string4) => {
18683
+ var emojiRegex2 = require_emoji_regex();
18684
+ var stringWidth2 = (string4) => {
18685
18685
  if (typeof string4 !== "string" || string4.length === 0) {
18686
18686
  return 0;
18687
18687
  }
18688
- string4 = stripAnsi(string4);
18688
+ string4 = stripAnsi2(string4);
18689
18689
  if (string4.length === 0) {
18690
18690
  return 0;
18691
18691
  }
18692
- string4 = string4.replace(emojiRegex(), " ");
18692
+ string4 = string4.replace(emojiRegex2(), " ");
18693
18693
  let width = 0;
18694
18694
  for (let i = 0; i < string4.length; i++) {
18695
18695
  const code = string4.codePointAt(i);
@@ -18706,8 +18706,8 @@ var require_string_width = __commonJS({
18706
18706
  }
18707
18707
  return width;
18708
18708
  };
18709
- module.exports = stringWidth;
18710
- module.exports.default = stringWidth;
18709
+ module.exports = stringWidth2;
18710
+ module.exports.default = stringWidth2;
18711
18711
  }
18712
18712
  });
18713
18713
 
@@ -18715,8 +18715,8 @@ var require_string_width = __commonJS({
18715
18715
  var require_wrap_ansi = __commonJS({
18716
18716
  "node_modules/wrap-ansi/index.js"(exports, module) {
18717
18717
  "use strict";
18718
- var stringWidth = require_string_width();
18719
- var stripAnsi = require_strip_ansi();
18718
+ var stringWidth2 = require_string_width();
18719
+ var stripAnsi2 = require_strip_ansi();
18720
18720
  var ansiStyles = require_ansi_styles();
18721
18721
  var ESCAPES = /* @__PURE__ */ new Set([
18722
18722
  "\x1B",
@@ -18724,13 +18724,13 @@ var require_wrap_ansi = __commonJS({
18724
18724
  ]);
18725
18725
  var END_CODE = 39;
18726
18726
  var wrapAnsi = (code) => `${ESCAPES.values().next().value}[${code}m`;
18727
- var wordLengths = (string4) => string4.split(" ").map((character) => stringWidth(character));
18727
+ var wordLengths = (string4) => string4.split(" ").map((character) => stringWidth2(character));
18728
18728
  var wrapWord = (rows, word, columns) => {
18729
18729
  const characters = [...word];
18730
18730
  let isInsideEscape = false;
18731
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
18731
+ let visible = stringWidth2(stripAnsi2(rows[rows.length - 1]));
18732
18732
  for (const [index, character] of characters.entries()) {
18733
- const characterLength = stringWidth(character);
18733
+ const characterLength = stringWidth2(character);
18734
18734
  if (visible + characterLength <= columns) {
18735
18735
  rows[rows.length - 1] += character;
18736
18736
  } else {
@@ -18760,7 +18760,7 @@ var require_wrap_ansi = __commonJS({
18760
18760
  const words = str.split(" ");
18761
18761
  let last = words.length;
18762
18762
  while (last > 0) {
18763
- if (stringWidth(words[last - 1]) > 0) {
18763
+ if (stringWidth2(words[last - 1]) > 0) {
18764
18764
  break;
18765
18765
  }
18766
18766
  last--;
@@ -18783,7 +18783,7 @@ var require_wrap_ansi = __commonJS({
18783
18783
  if (options.trim !== false) {
18784
18784
  rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
18785
18785
  }
18786
- let rowLength = stringWidth(rows[rows.length - 1]);
18786
+ let rowLength = stringWidth2(rows[rows.length - 1]);
18787
18787
  if (index !== 0) {
18788
18788
  if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
18789
18789
  rows.push("");
@@ -18844,6 +18844,53 @@ var require_wrap_ansi = __commonJS({
18844
18844
  }
18845
18845
  });
18846
18846
 
18847
+ // node_modules/inquirer/node_modules/string-width/node_modules/emoji-regex/index.js
18848
+ var require_emoji_regex2 = __commonJS({
18849
+ "node_modules/inquirer/node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
18850
+ "use strict";
18851
+ module.exports = function() {
18852
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
18853
+ };
18854
+ }
18855
+ });
18856
+
18857
+ // node_modules/inquirer/node_modules/string-width/index.js
18858
+ var require_string_width2 = __commonJS({
18859
+ "node_modules/inquirer/node_modules/string-width/index.js"(exports, module) {
18860
+ "use strict";
18861
+ var stripAnsi2 = require_strip_ansi();
18862
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
18863
+ var emojiRegex2 = require_emoji_regex2();
18864
+ var stringWidth2 = (string4) => {
18865
+ if (typeof string4 !== "string" || string4.length === 0) {
18866
+ return 0;
18867
+ }
18868
+ string4 = stripAnsi2(string4);
18869
+ if (string4.length === 0) {
18870
+ return 0;
18871
+ }
18872
+ string4 = string4.replace(emojiRegex2(), " ");
18873
+ let width = 0;
18874
+ for (let i = 0; i < string4.length; i++) {
18875
+ const code = string4.codePointAt(i);
18876
+ if (code <= 31 || code >= 127 && code <= 159) {
18877
+ continue;
18878
+ }
18879
+ if (code >= 768 && code <= 879) {
18880
+ continue;
18881
+ }
18882
+ if (code > 65535) {
18883
+ i++;
18884
+ }
18885
+ width += isFullwidthCodePoint(code) ? 2 : 1;
18886
+ }
18887
+ return width;
18888
+ };
18889
+ module.exports = stringWidth2;
18890
+ module.exports.default = stringWidth2;
18891
+ }
18892
+ });
18893
+
18847
18894
  // node_modules/cli-spinners/spinners.json
18848
18895
  var require_spinners = __commonJS({
18849
18896
  "node_modules/cli-spinners/spinners.json"(exports, module) {
@@ -20507,19 +20554,19 @@ var require_is_unicode_supported = __commonJS({
20507
20554
  var require_log_symbols = __commonJS({
20508
20555
  "node_modules/log-symbols/index.js"(exports, module) {
20509
20556
  "use strict";
20510
- var chalk14 = require_source();
20557
+ var chalk15 = require_source();
20511
20558
  var isUnicodeSupported = require_is_unicode_supported();
20512
20559
  var main = {
20513
- info: chalk14.blue("\u2139"),
20514
- success: chalk14.green("\u2714"),
20515
- warning: chalk14.yellow("\u26A0"),
20516
- error: chalk14.red("\u2716")
20560
+ info: chalk15.blue("\u2139"),
20561
+ success: chalk15.green("\u2714"),
20562
+ warning: chalk15.yellow("\u26A0"),
20563
+ error: chalk15.red("\u2716")
20517
20564
  };
20518
20565
  var fallback = {
20519
- info: chalk14.blue("i"),
20520
- success: chalk14.green("\u221A"),
20521
- warning: chalk14.yellow("\u203C"),
20522
- error: chalk14.red("\xD7")
20566
+ info: chalk15.blue("i"),
20567
+ success: chalk15.green("\u221A"),
20568
+ warning: chalk15.yellow("\u203C"),
20569
+ error: chalk15.red("\xD7")
20523
20570
  };
20524
20571
  module.exports = isUnicodeSupported() ? main : fallback;
20525
20572
  }
@@ -23987,11 +24034,11 @@ var require_ora = __commonJS({
23987
24034
  "node_modules/ora/index.js"(exports, module) {
23988
24035
  "use strict";
23989
24036
  var readline = __require("readline");
23990
- var chalk14 = require_source();
24037
+ var chalk15 = require_source();
23991
24038
  var cliCursor = require_cli_cursor();
23992
24039
  var cliSpinners = require_cli_spinners();
23993
24040
  var logSymbols = require_log_symbols();
23994
- var stripAnsi = require_strip_ansi();
24041
+ var stripAnsi2 = require_strip_ansi();
23995
24042
  var wcwidth = require_wcwidth();
23996
24043
  var isInteractive = require_is_interactive();
23997
24044
  var isUnicodeSupported = require_is_unicode_supported();
@@ -24158,7 +24205,7 @@ var require_ora = __commonJS({
24158
24205
  const columns = this.stream.columns || 80;
24159
24206
  const fullPrefixText = this.getFullPrefixText(this.prefixText, "-");
24160
24207
  this.lineCount = 0;
24161
- for (const line of stripAnsi(fullPrefixText + "--" + this[TEXT]).split("\n")) {
24208
+ for (const line of stripAnsi2(fullPrefixText + "--" + this[TEXT]).split("\n")) {
24162
24209
  this.lineCount += Math.max(1, Math.ceil(wcwidth(line) / columns));
24163
24210
  }
24164
24211
  }
@@ -24184,7 +24231,7 @@ var require_ora = __commonJS({
24184
24231
  const { frames } = this.spinner;
24185
24232
  let frame = frames[this.frameIndex];
24186
24233
  if (this.color) {
24187
- frame = chalk14[this.color](frame);
24234
+ frame = chalk15[this.color](frame);
24188
24235
  }
24189
24236
  this.frameIndex = ++this.frameIndex % frames.length;
24190
24237
  const fullPrefixText = typeof this.prefixText === "string" && this.prefixText !== "" ? this.prefixText + " " : "";
@@ -24314,8 +24361,8 @@ var require_screen_manager = __commonJS({
24314
24361
  var util = require_readline();
24315
24362
  var cliWidth = require_cli_width();
24316
24363
  var wrapAnsi = require_wrap_ansi();
24317
- var stripAnsi = require_strip_ansi();
24318
- var stringWidth = require_string_width();
24364
+ var stripAnsi2 = require_strip_ansi();
24365
+ var stringWidth2 = require_string_width2();
24319
24366
  var ora = require_ora();
24320
24367
  function height(content) {
24321
24368
  return content.split("\n").length;
@@ -24357,7 +24404,7 @@ var require_screen_manager = __commonJS({
24357
24404
  this.rl.output.unmute();
24358
24405
  this.clean(this.extraLinesUnderPrompt);
24359
24406
  const promptLine = lastLine(content);
24360
- const rawPromptLine = stripAnsi(promptLine);
24407
+ const rawPromptLine = stripAnsi2(promptLine);
24361
24408
  let prompt = rawPromptLine;
24362
24409
  if (this.rl.line.length) {
24363
24410
  prompt = prompt.slice(0, -this.rl.line.length);
@@ -24379,7 +24426,7 @@ var require_screen_manager = __commonJS({
24379
24426
  if (bottomContentHeight > 0) {
24380
24427
  util.up(this.rl, bottomContentHeight);
24381
24428
  }
24382
- util.left(this.rl, stringWidth(lastLine(fullContent)));
24429
+ util.left(this.rl, stringWidth2(lastLine(fullContent)));
24383
24430
  if (cursorPos.cols > 0) {
24384
24431
  util.right(this.rl, cursorPos.cols);
24385
24432
  }
@@ -24437,7 +24484,7 @@ var require_base = __commonJS({
24437
24484
  defaults: require_defaults(),
24438
24485
  clone: require_clone()
24439
24486
  };
24440
- var chalk14 = require_source();
24487
+ var chalk15 = require_source();
24441
24488
  var runAsync = require_run_async();
24442
24489
  var { filter, flatMap, share, take, takeUntil } = require_operators();
24443
24490
  var Choices = require_choices();
@@ -24455,7 +24502,7 @@ var require_base = __commonJS({
24455
24502
  filteringText: "",
24456
24503
  when: () => true,
24457
24504
  suffix: "",
24458
- prefix: chalk14.green("?")
24505
+ prefix: chalk15.green("?")
24459
24506
  });
24460
24507
  if (!this.opt.name) {
24461
24508
  this.throwParamError("name");
@@ -24506,7 +24553,7 @@ var require_base = __commonJS({
24506
24553
  */
24507
24554
  handleSubmitEvents(submit) {
24508
24555
  const self2 = this;
24509
- const validate = runAsync(this.opt.validate);
24556
+ const validate2 = runAsync(this.opt.validate);
24510
24557
  const asyncFilter = runAsync(this.opt.filter);
24511
24558
  const validation = submit.pipe(
24512
24559
  flatMap((value) => {
@@ -24514,7 +24561,7 @@ var require_base = __commonJS({
24514
24561
  return asyncFilter(value, self2.answers).then(
24515
24562
  (filteredValue) => {
24516
24563
  this.startSpinner(filteredValue, this.opt.validatingText);
24517
- return validate(filteredValue, self2.answers).then(
24564
+ return validate2(filteredValue, self2.answers).then(
24518
24565
  (isValid) => ({ isValid, value: filteredValue }),
24519
24566
  (err) => ({ isValid: err, value: filteredValue })
24520
24567
  );
@@ -24556,12 +24603,12 @@ var require_base = __commonJS({
24556
24603
  * @return {String} prompt question string
24557
24604
  */
24558
24605
  getQuestion() {
24559
- let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk14.bold(this.opt.message) + this.opt.suffix + chalk14.reset(" ");
24606
+ let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk15.bold(this.opt.message) + this.opt.suffix + chalk15.reset(" ");
24560
24607
  if (this.opt.default != null && this.status !== "touched" && this.status !== "answered") {
24561
24608
  if (this.opt.type === "password") {
24562
- message += chalk14.italic.dim("[hidden] ");
24609
+ message += chalk15.italic.dim("[hidden] ");
24563
24610
  } else {
24564
- message += chalk14.dim("(" + this.opt.default + ") ");
24611
+ message += chalk15.dim("(" + this.opt.default + ") ");
24565
24612
  }
24566
24613
  }
24567
24614
  return message;
@@ -24623,7 +24670,7 @@ var require_events = __commonJS({
24623
24670
  var require_paginator = __commonJS({
24624
24671
  "node_modules/inquirer/lib/utils/paginator.js"(exports, module) {
24625
24672
  "use strict";
24626
- var chalk14 = require_source();
24673
+ var chalk15 = require_source();
24627
24674
  var Paginator = class {
24628
24675
  /**
24629
24676
  * @param {import("./screen-manager")} [screen]
@@ -24648,7 +24695,7 @@ var require_paginator = __commonJS({
24648
24695
  }
24649
24696
  const visibleLines = this.isInfinite ? this.getInfiniteLines(lines, active, pageSize) : this.getFiniteLines(lines, active, pageSize);
24650
24697
  this.lastIndex = active;
24651
- return visibleLines.join("\n") + "\n" + chalk14.dim("(Move up and down to reveal more choices)");
24698
+ return visibleLines.join("\n") + "\n" + chalk15.dim("(Move up and down to reveal more choices)");
24652
24699
  }
24653
24700
  getInfiniteLines(lines, active, pageSize) {
24654
24701
  if (this.pointer === void 0) {
@@ -24704,7 +24751,7 @@ var require_incrementListIndex = __commonJS({
24704
24751
  var require_list = __commonJS({
24705
24752
  "node_modules/inquirer/lib/prompts/list.js"(exports, module) {
24706
24753
  "use strict";
24707
- var chalk14 = require_source();
24754
+ var chalk15 = require_source();
24708
24755
  var figures = require_figures();
24709
24756
  var cliCursor = require_cli_cursor();
24710
24757
  var runAsync = require_run_async();
@@ -24762,10 +24809,10 @@ var require_list = __commonJS({
24762
24809
  render() {
24763
24810
  let message = this.getQuestion();
24764
24811
  if (this.firstRender) {
24765
- message += chalk14.dim("(Use arrow keys)");
24812
+ message += chalk15.dim("(Use arrow keys)");
24766
24813
  }
24767
24814
  if (this.status === "answered") {
24768
- message += chalk14.cyan(this.opt.choices.getChoice(this.selected).short);
24815
+ message += chalk15.cyan(this.opt.choices.getChoice(this.selected).short);
24769
24816
  } else {
24770
24817
  const choicesStr = listRender(this.opt.choices, this.selected);
24771
24818
  const indexPosition = this.opt.choices.indexOf(
@@ -24840,7 +24887,7 @@ var require_list = __commonJS({
24840
24887
  const isSelected = i - separatorOffset === pointer;
24841
24888
  let line = (isSelected ? figures.pointer + " " : " ") + choice.name;
24842
24889
  if (isSelected) {
24843
- line = chalk14.cyan(line);
24890
+ line = chalk15.cyan(line);
24844
24891
  }
24845
24892
  output += line + " \n";
24846
24893
  });
@@ -24854,7 +24901,7 @@ var require_list = __commonJS({
24854
24901
  var require_input = __commonJS({
24855
24902
  "node_modules/inquirer/lib/prompts/input.js"(exports, module) {
24856
24903
  "use strict";
24857
- var chalk14 = require_source();
24904
+ var chalk15 = require_source();
24858
24905
  var { map: map2, takeUntil } = require_operators();
24859
24906
  var Base = require_base();
24860
24907
  var observe = require_events();
@@ -24893,10 +24940,10 @@ var require_input = __commonJS({
24893
24940
  if (transformer) {
24894
24941
  message += transformer(appendContent, this.answers, { isFinal });
24895
24942
  } else {
24896
- message += isFinal ? chalk14.cyan(appendContent) : appendContent;
24943
+ message += isFinal ? chalk15.cyan(appendContent) : appendContent;
24897
24944
  }
24898
24945
  if (error49) {
24899
- bottomContent = chalk14.red(">> ") + error49;
24946
+ bottomContent = chalk15.red(">> ") + error49;
24900
24947
  }
24901
24948
  this.screen.render(message, bottomContent);
24902
24949
  }
@@ -24958,7 +25005,7 @@ var require_number = __commonJS({
24958
25005
  var require_confirm = __commonJS({
24959
25006
  "node_modules/inquirer/lib/prompts/confirm.js"(exports, module) {
24960
25007
  "use strict";
24961
- var chalk14 = require_source();
25008
+ var chalk15 = require_source();
24962
25009
  var { take, takeUntil } = require_operators();
24963
25010
  var Base = require_base();
24964
25011
  var observe = require_events();
@@ -25000,7 +25047,7 @@ var require_confirm = __commonJS({
25000
25047
  render(answer) {
25001
25048
  let message = this.getQuestion();
25002
25049
  if (typeof answer === "boolean") {
25003
- message += chalk14.cyan(answer ? "Yes" : "No");
25050
+ message += chalk15.cyan(answer ? "Yes" : "No");
25004
25051
  } else {
25005
25052
  message += this.rl.line;
25006
25053
  }
@@ -25032,7 +25079,7 @@ var require_confirm = __commonJS({
25032
25079
  var require_rawlist = __commonJS({
25033
25080
  "node_modules/inquirer/lib/prompts/rawlist.js"(exports, module) {
25034
25081
  "use strict";
25035
- var chalk14 = require_source();
25082
+ var chalk15 = require_source();
25036
25083
  var { map: map2, takeUntil } = require_operators();
25037
25084
  var Base = require_base();
25038
25085
  var Separator = require_separator();
@@ -25095,7 +25142,7 @@ var require_rawlist = __commonJS({
25095
25142
  let message = this.getQuestion();
25096
25143
  let bottomContent = "";
25097
25144
  if (this.status === "answered") {
25098
- message += chalk14.cyan(this.opt.choices.getChoice(this.selected).short);
25145
+ message += chalk15.cyan(this.opt.choices.getChoice(this.selected).short);
25099
25146
  } else {
25100
25147
  const choicesStr = renderChoices(this.opt.choices, this.selected);
25101
25148
  message += "\n" + this.paginator.paginate(choicesStr, this.selected, this.opt.pageSize);
@@ -25103,7 +25150,7 @@ var require_rawlist = __commonJS({
25103
25150
  }
25104
25151
  message += this.rl.line;
25105
25152
  if (error49) {
25106
- bottomContent = "\n" + chalk14.red(">> ") + error49;
25153
+ bottomContent = "\n" + chalk15.red(">> ") + error49;
25107
25154
  }
25108
25155
  this.screen.render(message, bottomContent);
25109
25156
  }
@@ -25186,7 +25233,7 @@ var require_rawlist = __commonJS({
25186
25233
  const index = i - separatorOffset;
25187
25234
  let display = index + 1 + ") " + choice.name;
25188
25235
  if (index === pointer) {
25189
- display = chalk14.cyan(display);
25236
+ display = chalk15.cyan(display);
25190
25237
  }
25191
25238
  output += display;
25192
25239
  });
@@ -25200,7 +25247,7 @@ var require_rawlist = __commonJS({
25200
25247
  var require_expand2 = __commonJS({
25201
25248
  "node_modules/inquirer/lib/prompts/expand.js"(exports, module) {
25202
25249
  "use strict";
25203
- var chalk14 = require_source();
25250
+ var chalk15 = require_source();
25204
25251
  var { map: map2, takeUntil } = require_operators();
25205
25252
  var Base = require_base();
25206
25253
  var Separator = require_separator();
@@ -25252,7 +25299,7 @@ var require_expand2 = __commonJS({
25252
25299
  let message = this.getQuestion();
25253
25300
  let bottomContent = "";
25254
25301
  if (this.status === "answered") {
25255
- message += chalk14.cyan(this.answer);
25302
+ message += chalk15.cyan(this.answer);
25256
25303
  } else if (this.status === "expanded") {
25257
25304
  const choicesStr = renderChoices(this.opt.choices, this.selectedKey);
25258
25305
  message += this.paginator.paginate(choicesStr, this.selectedKey, this.opt.pageSize);
@@ -25260,10 +25307,10 @@ var require_expand2 = __commonJS({
25260
25307
  }
25261
25308
  message += this.rl.line;
25262
25309
  if (error49) {
25263
- bottomContent = chalk14.red(">> ") + error49;
25310
+ bottomContent = chalk15.red(">> ") + error49;
25264
25311
  }
25265
25312
  if (hint2) {
25266
- bottomContent = chalk14.cyan(">> ") + hint2;
25313
+ bottomContent = chalk15.cyan(">> ") + hint2;
25267
25314
  }
25268
25315
  this.screen.render(message, bottomContent);
25269
25316
  }
@@ -25291,7 +25338,7 @@ var require_expand2 = __commonJS({
25291
25338
  }
25292
25339
  let choiceStr = choice.key + ") " + choice.name;
25293
25340
  if (this.selectedKey === choice.key) {
25294
- choiceStr = chalk14.cyan(choiceStr);
25341
+ choiceStr = chalk15.cyan(choiceStr);
25295
25342
  }
25296
25343
  output += choiceStr;
25297
25344
  });
@@ -25393,7 +25440,7 @@ var require_expand2 = __commonJS({
25393
25440
  }
25394
25441
  let choiceStr = choice.key + ") " + choice.name;
25395
25442
  if (pointer === choice.key) {
25396
- choiceStr = chalk14.cyan(choiceStr);
25443
+ choiceStr = chalk15.cyan(choiceStr);
25397
25444
  }
25398
25445
  output += choiceStr;
25399
25446
  });
@@ -25407,7 +25454,7 @@ var require_expand2 = __commonJS({
25407
25454
  var require_checkbox = __commonJS({
25408
25455
  "node_modules/inquirer/lib/prompts/checkbox.js"(exports, module) {
25409
25456
  "use strict";
25410
- var chalk14 = require_source();
25457
+ var chalk15 = require_source();
25411
25458
  var cliCursor = require_cli_cursor();
25412
25459
  var figures = require_figures();
25413
25460
  var { map: map2, takeUntil } = require_operators();
@@ -25465,10 +25512,10 @@ var require_checkbox = __commonJS({
25465
25512
  let message = this.getQuestion();
25466
25513
  let bottomContent = "";
25467
25514
  if (!this.dontShowHints) {
25468
- message += "(Press " + chalk14.cyan.bold("<space>") + " to select, " + chalk14.cyan.bold("<a>") + " to toggle all, " + chalk14.cyan.bold("<i>") + " to invert selection, and " + chalk14.cyan.bold("<enter>") + " to proceed)";
25515
+ message += "(Press " + chalk15.cyan.bold("<space>") + " to select, " + chalk15.cyan.bold("<a>") + " to toggle all, " + chalk15.cyan.bold("<i>") + " to invert selection, and " + chalk15.cyan.bold("<enter>") + " to proceed)";
25469
25516
  }
25470
25517
  if (this.status === "answered") {
25471
- message += chalk14.cyan(this.selection.join(", "));
25518
+ message += chalk15.cyan(this.selection.join(", "));
25472
25519
  } else {
25473
25520
  const choicesStr = renderChoices(this.opt.choices, this.pointer);
25474
25521
  const indexPosition = this.opt.choices.indexOf(
@@ -25491,7 +25538,7 @@ var require_checkbox = __commonJS({
25491
25538
  message += "\n" + this.paginator.paginate(choicesStr, realIndexPosition, this.opt.pageSize);
25492
25539
  }
25493
25540
  if (error49) {
25494
- bottomContent = chalk14.red(">> ") + error49;
25541
+ bottomContent = chalk15.red(">> ") + error49;
25495
25542
  }
25496
25543
  this.screen.render(message, bottomContent);
25497
25544
  }
@@ -25577,7 +25624,7 @@ var require_checkbox = __commonJS({
25577
25624
  } else {
25578
25625
  const line = getCheckbox(choice.checked) + " " + choice.name;
25579
25626
  if (i - separatorOffset === pointer) {
25580
- output += chalk14.cyan(figures.pointer + line);
25627
+ output += chalk15.cyan(figures.pointer + line);
25581
25628
  } else {
25582
25629
  output += " " + line;
25583
25630
  }
@@ -25587,7 +25634,7 @@ var require_checkbox = __commonJS({
25587
25634
  return output.replace(/\n$/, "");
25588
25635
  }
25589
25636
  function getCheckbox(checked) {
25590
- return checked ? chalk14.green(figures.radioOn) : figures.radioOff;
25637
+ return checked ? chalk15.green(figures.radioOn) : figures.radioOff;
25591
25638
  }
25592
25639
  module.exports = CheckboxPrompt;
25593
25640
  }
@@ -25597,7 +25644,7 @@ var require_checkbox = __commonJS({
25597
25644
  var require_password = __commonJS({
25598
25645
  "node_modules/inquirer/lib/prompts/password.js"(exports, module) {
25599
25646
  "use strict";
25600
- var chalk14 = require_source();
25647
+ var chalk15 = require_source();
25601
25648
  var { map: map2, takeUntil } = require_operators();
25602
25649
  var Base = require_base();
25603
25650
  var observe = require_events();
@@ -25639,15 +25686,15 @@ var require_password = __commonJS({
25639
25686
  message += this.getMaskedValue(this.rl.line || "");
25640
25687
  }
25641
25688
  if (error49) {
25642
- bottomContent = "\n" + chalk14.red(">> ") + error49;
25689
+ bottomContent = "\n" + chalk15.red(">> ") + error49;
25643
25690
  }
25644
25691
  this.screen.render(message, bottomContent);
25645
25692
  }
25646
25693
  getMaskedValue(value) {
25647
25694
  if (this.status === "answered") {
25648
- return this.opt.mask ? chalk14.cyan(mask(value, this.opt.mask)) : chalk14.italic.dim("[hidden]");
25695
+ return this.opt.mask ? chalk15.cyan(mask(value, this.opt.mask)) : chalk15.italic.dim("[hidden]");
25649
25696
  }
25650
- return this.opt.mask ? mask(value, this.opt.mask) : chalk14.italic.dim("[input is hidden] ");
25697
+ return this.opt.mask ? mask(value, this.opt.mask) : chalk15.italic.dim("[input is hidden] ");
25651
25698
  }
25652
25699
  /**
25653
25700
  * Mask value during async filter/validation.
@@ -35369,7 +35416,7 @@ var require_commonjs = __commonJS({
35369
35416
  var require_editor = __commonJS({
35370
35417
  "node_modules/inquirer/lib/prompts/editor.js"(exports, module) {
35371
35418
  "use strict";
35372
- var chalk14 = require_source();
35419
+ var chalk15 = require_source();
35373
35420
  var { editAsync } = require_commonjs();
35374
35421
  var Base = require_base();
35375
35422
  var observe = require_events();
@@ -35401,12 +35448,12 @@ var require_editor = __commonJS({
35401
35448
  let bottomContent = "";
35402
35449
  let message = this.getQuestion();
35403
35450
  if (this.status === "answered") {
35404
- message += chalk14.dim("Received");
35451
+ message += chalk15.dim("Received");
35405
35452
  } else {
35406
- message += chalk14.dim("Press <enter> to launch your preferred editor.");
35453
+ message += chalk15.dim("Press <enter> to launch your preferred editor.");
35407
35454
  }
35408
35455
  if (error49) {
35409
- bottomContent = chalk14.red(">> ") + error49;
35456
+ bottomContent = chalk15.red(">> ") + error49;
35410
35457
  }
35411
35458
  this.screen.render(message, bottomContent);
35412
35459
  }
@@ -35521,10 +35568,57 @@ var require_debug = __commonJS({
35521
35568
  }
35522
35569
  });
35523
35570
 
35571
+ // node_modules/cli-table3/node_modules/string-width/node_modules/emoji-regex/index.js
35572
+ var require_emoji_regex3 = __commonJS({
35573
+ "node_modules/cli-table3/node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
35574
+ "use strict";
35575
+ module.exports = function() {
35576
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
35577
+ };
35578
+ }
35579
+ });
35580
+
35581
+ // node_modules/cli-table3/node_modules/string-width/index.js
35582
+ var require_string_width3 = __commonJS({
35583
+ "node_modules/cli-table3/node_modules/string-width/index.js"(exports, module) {
35584
+ "use strict";
35585
+ var stripAnsi2 = require_strip_ansi();
35586
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
35587
+ var emojiRegex2 = require_emoji_regex3();
35588
+ var stringWidth2 = (string4) => {
35589
+ if (typeof string4 !== "string" || string4.length === 0) {
35590
+ return 0;
35591
+ }
35592
+ string4 = stripAnsi2(string4);
35593
+ if (string4.length === 0) {
35594
+ return 0;
35595
+ }
35596
+ string4 = string4.replace(emojiRegex2(), " ");
35597
+ let width = 0;
35598
+ for (let i = 0; i < string4.length; i++) {
35599
+ const code = string4.codePointAt(i);
35600
+ if (code <= 31 || code >= 127 && code <= 159) {
35601
+ continue;
35602
+ }
35603
+ if (code >= 768 && code <= 879) {
35604
+ continue;
35605
+ }
35606
+ if (code > 65535) {
35607
+ i++;
35608
+ }
35609
+ width += isFullwidthCodePoint(code) ? 2 : 1;
35610
+ }
35611
+ return width;
35612
+ };
35613
+ module.exports = stringWidth2;
35614
+ module.exports.default = stringWidth2;
35615
+ }
35616
+ });
35617
+
35524
35618
  // node_modules/cli-table3/src/utils.js
35525
35619
  var require_utils3 = __commonJS({
35526
35620
  "node_modules/cli-table3/src/utils.js"(exports, module) {
35527
- var stringWidth = require_string_width();
35621
+ var stringWidth2 = require_string_width3();
35528
35622
  function codeRegex(capture) {
35529
35623
  return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
35530
35624
  }
@@ -35533,7 +35627,7 @@ var require_utils3 = __commonJS({
35533
35627
  let stripped = ("" + str).replace(code, "");
35534
35628
  let split = stripped.split("\n");
35535
35629
  return split.reduce(function(memo, s3) {
35536
- return stringWidth(s3) > memo ? stringWidth(s3) : memo;
35630
+ return stringWidth2(s3) > memo ? stringWidth2(s3) : memo;
35537
35631
  }, 0);
35538
35632
  }
35539
35633
  function repeat(str, times) {
@@ -38956,14 +39050,23 @@ var require_json_bigint = __commonJS({
38956
39050
  }
38957
39051
  });
38958
39052
 
39053
+ // node_modules/emoji-regex/index.js
39054
+ var require_emoji_regex4 = __commonJS({
39055
+ "node_modules/emoji-regex/index.js"(exports, module) {
39056
+ module.exports = () => {
39057
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
39058
+ };
39059
+ }
39060
+ });
39061
+
38959
39062
  // node_modules/lodash/lodash.js
38960
39063
  var require_lodash = __commonJS({
38961
39064
  "node_modules/lodash/lodash.js"(exports, module) {
38962
39065
  (function() {
38963
39066
  var undefined2;
38964
- var VERSION = "4.17.23";
39067
+ var VERSION = "4.18.1";
38965
39068
  var LARGE_ARRAY_SIZE = 200;
38966
- var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
39069
+ var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
38967
39070
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
38968
39071
  var MAX_MEMOIZE_SIZE = 500;
38969
39072
  var PLACEHOLDER = "__lodash_placeholder__";
@@ -40893,19 +40996,12 @@ var require_lodash = __commonJS({
40893
40996
  if (!length) {
40894
40997
  return true;
40895
40998
  }
40896
- var isRootPrimitive = object2 == null || typeof object2 !== "object" && typeof object2 !== "function";
40897
40999
  while (++index < length) {
40898
- var key = path16[index];
40899
- if (typeof key !== "string") {
40900
- continue;
40901
- }
41000
+ var key = toKey(path16[index]);
40902
41001
  if (key === "__proto__" && !hasOwnProperty.call(object2, "__proto__")) {
40903
41002
  return false;
40904
41003
  }
40905
- if (key === "constructor" && index + 1 < length && typeof path16[index + 1] === "string" && path16[index + 1] === "prototype") {
40906
- if (isRootPrimitive && index === 0) {
40907
- continue;
40908
- }
41004
+ if ((key === "constructor" || key === "prototype") && index < length - 1) {
40909
41005
  return false;
40910
41006
  }
40911
41007
  }
@@ -42237,7 +42333,7 @@ var require_lodash = __commonJS({
42237
42333
  var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
42238
42334
  while (++index < length) {
42239
42335
  var pair = pairs[index];
42240
- result2[pair[0]] = pair[1];
42336
+ baseAssignValue(result2, pair[0], pair[1]);
42241
42337
  }
42242
42338
  return result2;
42243
42339
  }
@@ -43621,8 +43717,13 @@ var require_lodash = __commonJS({
43621
43717
  options = undefined2;
43622
43718
  }
43623
43719
  string4 = toString2(string4);
43624
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
43625
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
43720
+ options = assignWith({}, options, settings, customDefaultsAssignIn);
43721
+ var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
43722
+ arrayEach(importsKeys, function(key) {
43723
+ if (reForbiddenIdentifierChars.test(key)) {
43724
+ throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
43725
+ }
43726
+ });
43626
43727
  var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
43627
43728
  var reDelimiters = RegExp2(
43628
43729
  (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
@@ -45777,14 +45878,14 @@ var require_templates2 = __commonJS({
45777
45878
  }
45778
45879
  return results;
45779
45880
  }
45780
- function buildStyle(chalk14, styles) {
45881
+ function buildStyle(chalk15, styles) {
45781
45882
  const enabled = {};
45782
45883
  for (const layer of styles) {
45783
45884
  for (const style of layer.styles) {
45784
45885
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
45785
45886
  }
45786
45887
  }
45787
- let current = chalk14;
45888
+ let current = chalk15;
45788
45889
  for (const styleName of Object.keys(enabled)) {
45789
45890
  if (Array.isArray(enabled[styleName])) {
45790
45891
  if (!(styleName in current)) {
@@ -45799,7 +45900,7 @@ var require_templates2 = __commonJS({
45799
45900
  }
45800
45901
  return current;
45801
45902
  }
45802
- module.exports = (chalk14, tmp) => {
45903
+ module.exports = (chalk15, tmp) => {
45803
45904
  const styles = [];
45804
45905
  const chunks = [];
45805
45906
  let chunk = [];
@@ -45809,13 +45910,13 @@ var require_templates2 = __commonJS({
45809
45910
  } else if (style) {
45810
45911
  const str = chunk.join("");
45811
45912
  chunk = [];
45812
- chunks.push(styles.length === 0 ? str : buildStyle(chalk14, styles)(str));
45913
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk15, styles)(str));
45813
45914
  styles.push({ inverse, styles: parseStyle(style) });
45814
45915
  } else if (close) {
45815
45916
  if (styles.length === 0) {
45816
45917
  throw new Error("Found extraneous } in Chalk template literal");
45817
45918
  }
45818
- chunks.push(buildStyle(chalk14, styles)(chunk.join("")));
45919
+ chunks.push(buildStyle(chalk15, styles)(chunk.join("")));
45819
45920
  chunk = [];
45820
45921
  styles.pop();
45821
45922
  } else {
@@ -45852,16 +45953,16 @@ var require_chalk = __commonJS({
45852
45953
  }
45853
45954
  function Chalk(options) {
45854
45955
  if (!this || !(this instanceof Chalk) || this.template) {
45855
- const chalk14 = {};
45856
- applyOptions(chalk14, options);
45857
- chalk14.template = function() {
45956
+ const chalk15 = {};
45957
+ applyOptions(chalk15, options);
45958
+ chalk15.template = function() {
45858
45959
  const args = [].slice.call(arguments);
45859
- return chalkTag.apply(null, [chalk14.template].concat(args));
45960
+ return chalkTag.apply(null, [chalk15.template].concat(args));
45860
45961
  };
45861
- Object.setPrototypeOf(chalk14, Chalk.prototype);
45862
- Object.setPrototypeOf(chalk14.template, chalk14);
45863
- chalk14.template.constructor = Chalk;
45864
- return chalk14.template;
45962
+ Object.setPrototypeOf(chalk15, Chalk.prototype);
45963
+ Object.setPrototypeOf(chalk15.template, chalk15);
45964
+ chalk15.template.constructor = Chalk;
45965
+ return chalk15.template;
45865
45966
  }
45866
45967
  applyOptions(this, options);
45867
45968
  }
@@ -45980,7 +46081,7 @@ var require_chalk = __commonJS({
45980
46081
  ansiStyles.dim.open = originalDim;
45981
46082
  return str;
45982
46083
  }
45983
- function chalkTag(chalk14, strings) {
46084
+ function chalkTag(chalk15, strings) {
45984
46085
  if (!Array.isArray(strings)) {
45985
46086
  return [].slice.call(arguments, 1).join(" ");
45986
46087
  }
@@ -45990,7 +46091,7 @@ var require_chalk = __commonJS({
45990
46091
  parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
45991
46092
  parts.push(String(strings.raw[i]));
45992
46093
  }
45993
- return template(chalk14, parts.join(""));
46094
+ return template(chalk15, parts.join(""));
45994
46095
  }
45995
46096
  Object.defineProperties(Chalk.prototype, styles);
45996
46097
  module.exports = Chalk();
@@ -46159,11 +46260,11 @@ var require_figures2 = __commonJS({
46159
46260
  var require_separator2 = __commonJS({
46160
46261
  "node_modules/inquirer-search-list/node_modules/inquirer/lib/objects/separator.js"(exports, module) {
46161
46262
  "use strict";
46162
- var chalk14 = require_chalk();
46263
+ var chalk15 = require_chalk();
46163
46264
  var figures = require_figures2();
46164
46265
  var Separator = module.exports = function(line) {
46165
46266
  this.type = "separator";
46166
- this.line = chalk14.dim(line || new Array(15).join(figures.line));
46267
+ this.line = chalk15.dim(line || new Array(15).join(figures.line));
46167
46268
  };
46168
46269
  Separator.exclude = function(obj) {
46169
46270
  return obj.type !== "separator";
@@ -46472,8 +46573,8 @@ var require_ansi_regex2 = __commonJS({
46472
46573
  var require_strip_ansi2 = __commonJS({
46473
46574
  "node_modules/inquirer-search-list/node_modules/inquirer/node_modules/strip-ansi/index.js"(exports, module) {
46474
46575
  "use strict";
46475
- var ansiRegex = require_ansi_regex2();
46476
- module.exports = (input) => typeof input === "string" ? input.replace(ansiRegex(), "") : input;
46576
+ var ansiRegex2 = require_ansi_regex2();
46577
+ module.exports = (input) => typeof input === "string" ? input.replace(ansiRegex2(), "") : input;
46477
46578
  }
46478
46579
  });
46479
46580
 
@@ -46509,16 +46610,16 @@ var require_is_fullwidth_code_point2 = __commonJS({
46509
46610
  });
46510
46611
 
46511
46612
  // node_modules/inquirer-search-list/node_modules/inquirer/node_modules/string-width/index.js
46512
- var require_string_width2 = __commonJS({
46613
+ var require_string_width4 = __commonJS({
46513
46614
  "node_modules/inquirer-search-list/node_modules/inquirer/node_modules/string-width/index.js"(exports, module) {
46514
46615
  "use strict";
46515
- var stripAnsi = require_strip_ansi2();
46616
+ var stripAnsi2 = require_strip_ansi2();
46516
46617
  var isFullwidthCodePoint = require_is_fullwidth_code_point2();
46517
46618
  module.exports = (str) => {
46518
46619
  if (typeof str !== "string" || str.length === 0) {
46519
46620
  return 0;
46520
46621
  }
46521
- str = stripAnsi(str);
46622
+ str = stripAnsi2(str);
46522
46623
  let width = 0;
46523
46624
  for (let i = 0; i < str.length; i++) {
46524
46625
  const code = str.codePointAt(i);
@@ -46545,8 +46646,8 @@ var require_screen_manager2 = __commonJS({
46545
46646
  var _2 = require_lodash();
46546
46647
  var util = require_readline2();
46547
46648
  var cliWidth = require_cli_width2();
46548
- var stripAnsi = require_strip_ansi2();
46549
- var stringWidth = require_string_width2();
46649
+ var stripAnsi2 = require_strip_ansi2();
46650
+ var stringWidth2 = require_string_width4();
46550
46651
  function height(content) {
46551
46652
  return content.split("\n").length;
46552
46653
  }
@@ -46562,7 +46663,7 @@ var require_screen_manager2 = __commonJS({
46562
46663
  this.rl.output.unmute();
46563
46664
  this.clean(this.extraLinesUnderPrompt);
46564
46665
  var promptLine = lastLine(content);
46565
- var rawPromptLine = stripAnsi(promptLine);
46666
+ var rawPromptLine = stripAnsi2(promptLine);
46566
46667
  var prompt = rawPromptLine;
46567
46668
  if (this.rl.line.length) {
46568
46669
  prompt = prompt.slice(0, -this.rl.line.length);
@@ -46584,7 +46685,7 @@ var require_screen_manager2 = __commonJS({
46584
46685
  if (bottomContentHeight > 0) {
46585
46686
  util.up(this.rl, bottomContentHeight);
46586
46687
  }
46587
- util.left(this.rl, stringWidth(lastLine(fullContent)));
46688
+ util.left(this.rl, stringWidth2(lastLine(fullContent)));
46588
46689
  util.right(this.rl, cursorPos.cols);
46589
46690
  this.extraLinesUnderPrompt = bottomContentHeight;
46590
46691
  this.height = height(fullContent);
@@ -46617,12 +46718,12 @@ var require_screen_manager2 = __commonJS({
46617
46718
  return width;
46618
46719
  };
46619
46720
  function breakLines(lines, width) {
46620
- var regex = new RegExp(
46721
+ var regex2 = new RegExp(
46621
46722
  "(?:(?:\\033[[0-9;]*m)*.?){1," + width + "}",
46622
46723
  "g"
46623
46724
  );
46624
46725
  return lines.map(function(line) {
46625
- var chunk = line.match(regex);
46726
+ var chunk = line.match(regex2);
46626
46727
  chunk.pop();
46627
46728
  return chunk || "";
46628
46729
  });
@@ -46637,7 +46738,7 @@ var require_screen_manager2 = __commonJS({
46637
46738
  var require_base2 = __commonJS({
46638
46739
  "node_modules/inquirer-search-list/node_modules/inquirer/lib/prompts/base.js"(exports, module) {
46639
46740
  var _2 = require_lodash();
46640
- var chalk14 = require_chalk();
46741
+ var chalk15 = require_chalk();
46641
46742
  var runAsync = require_run_async();
46642
46743
  var Choices = require_choices2();
46643
46744
  var ScreenManager = require_screen_manager2();
@@ -46657,7 +46758,7 @@ var require_base2 = __commonJS({
46657
46758
  return true;
46658
46759
  },
46659
46760
  suffix: "",
46660
- prefix: chalk14.green("?")
46761
+ prefix: chalk15.green("?")
46661
46762
  });
46662
46763
  if (!this.opt.message) {
46663
46764
  this.throwParamError("message");
@@ -46689,11 +46790,11 @@ var require_base2 = __commonJS({
46689
46790
  };
46690
46791
  Prompt.prototype.handleSubmitEvents = function(submit) {
46691
46792
  var self2 = this;
46692
- var validate = runAsync(this.opt.validate);
46793
+ var validate2 = runAsync(this.opt.validate);
46693
46794
  var filter = runAsync(this.opt.filter);
46694
46795
  var validation = submit.flatMap(function(value) {
46695
46796
  return filter(value, self2.answers).then(function(filteredValue) {
46696
- return validate(filteredValue, self2.answers).then(function(isValid) {
46797
+ return validate2(filteredValue, self2.answers).then(function(isValid) {
46697
46798
  return { isValid, value: filteredValue };
46698
46799
  }, function(err) {
46699
46800
  return { isValid: err };
@@ -46714,9 +46815,9 @@ var require_base2 = __commonJS({
46714
46815
  };
46715
46816
  };
46716
46817
  Prompt.prototype.getQuestion = function() {
46717
- var message = this.opt.prefix + " " + chalk14.bold(this.opt.message) + this.opt.suffix + chalk14.reset(" ");
46818
+ var message = this.opt.prefix + " " + chalk15.bold(this.opt.message) + this.opt.suffix + chalk15.reset(" ");
46718
46819
  if (this.opt.default != null && this.status !== "answered") {
46719
- message += chalk14.dim("(" + this.opt.default + ") ");
46820
+ message += chalk15.dim("(" + this.opt.default + ") ");
46720
46821
  }
46721
46822
  return message;
46722
46823
  };
@@ -53407,7 +53508,7 @@ var require_paginator2 = __commonJS({
53407
53508
  "node_modules/inquirer-search-list/node_modules/inquirer/lib/utils/paginator.js"(exports, module) {
53408
53509
  "use strict";
53409
53510
  var _2 = require_lodash();
53410
- var chalk14 = require_chalk();
53511
+ var chalk15 = require_chalk();
53411
53512
  var Paginator = module.exports = function() {
53412
53513
  this.pointer = 0;
53413
53514
  this.lastIndex = 0;
@@ -53426,7 +53527,7 @@ var require_paginator2 = __commonJS({
53426
53527
  var infinite = _2.flatten([lines, lines, lines]);
53427
53528
  var topIndex = Math.max(0, active + lines.length - this.pointer);
53428
53529
  var section = infinite.splice(topIndex, pageSize).join("\n");
53429
- return section + "\n" + chalk14.dim("(Move up and down to reveal more choices)");
53530
+ return section + "\n" + chalk15.dim("(Move up and down to reveal more choices)");
53430
53531
  };
53431
53532
  }
53432
53533
  });
@@ -70657,8 +70758,8 @@ var require_ignore = __commonJS({
70657
70758
  // It does not need to bind pattern
70658
70759
  TRAILING_WILD_CARD_REPLACERS[mode]
70659
70760
  );
70660
- const regex = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
70661
- return define2(this, key, regex);
70761
+ const regex2 = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
70762
+ return define2(this, key, regex2);
70662
70763
  }
70663
70764
  };
70664
70765
  var createRule = ({
@@ -73870,17 +73971,17 @@ var require_picomatch = __commonJS({
73870
73971
  }
73871
73972
  const opts = options || {};
73872
73973
  const posix = utils.isWindows(options);
73873
- const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
73874
- const state = regex.state;
73875
- delete regex.state;
73974
+ const regex2 = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
73975
+ const state = regex2.state;
73976
+ delete regex2.state;
73876
73977
  let isIgnored = () => false;
73877
73978
  if (opts.ignore) {
73878
73979
  const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
73879
73980
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
73880
73981
  }
73881
73982
  const matcher = (input, returnObject = false) => {
73882
- const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
73883
- const result = { glob, state, regex, posix, input, output, match, isMatch };
73983
+ const { isMatch, match, output } = picomatch.test(input, regex2, options, { glob, posix });
73984
+ const result = { glob, state, regex: regex2, posix, input, output, match, isMatch };
73884
73985
  if (typeof opts.onResult === "function") {
73885
73986
  opts.onResult(result);
73886
73987
  }
@@ -73905,7 +74006,7 @@ var require_picomatch = __commonJS({
73905
74006
  }
73906
74007
  return matcher;
73907
74008
  };
73908
- picomatch.test = (input, regex, options, { glob, posix } = {}) => {
74009
+ picomatch.test = (input, regex2, options, { glob, posix } = {}) => {
73909
74010
  if (typeof input !== "string") {
73910
74011
  throw new TypeError("Expected input to be a string");
73911
74012
  }
@@ -73922,16 +74023,16 @@ var require_picomatch = __commonJS({
73922
74023
  }
73923
74024
  if (match === false || opts.capture === true) {
73924
74025
  if (opts.matchBase === true || opts.basename === true) {
73925
- match = picomatch.matchBase(input, regex, options, posix);
74026
+ match = picomatch.matchBase(input, regex2, options, posix);
73926
74027
  } else {
73927
- match = regex.exec(output);
74028
+ match = regex2.exec(output);
73928
74029
  }
73929
74030
  }
73930
74031
  return { isMatch: Boolean(match), match, output };
73931
74032
  };
73932
74033
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
73933
- const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
73934
- return regex.test(path16.basename(input));
74034
+ const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
74035
+ return regex2.test(path16.basename(input));
73935
74036
  };
73936
74037
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
73937
74038
  picomatch.parse = (pattern, options) => {
@@ -73950,11 +74051,11 @@ var require_picomatch = __commonJS({
73950
74051
  if (state && state.negated === true) {
73951
74052
  source = `^(?!${source}).*$`;
73952
74053
  }
73953
- const regex = picomatch.toRegex(source, options);
74054
+ const regex2 = picomatch.toRegex(source, options);
73954
74055
  if (returnState === true) {
73955
- regex.state = state;
74056
+ regex2.state = state;
73956
74057
  }
73957
- return regex;
74058
+ return regex2;
73958
74059
  };
73959
74060
  picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
73960
74061
  if (!input || typeof input !== "string") {
@@ -75843,17 +75944,17 @@ var require_picomatch3 = __commonJS({
75843
75944
  }
75844
75945
  const opts = options || {};
75845
75946
  const posix = utils.isWindows(options);
75846
- const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
75847
- const state = regex.state;
75848
- delete regex.state;
75947
+ const regex2 = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
75948
+ const state = regex2.state;
75949
+ delete regex2.state;
75849
75950
  let isIgnored = () => false;
75850
75951
  if (opts.ignore) {
75851
75952
  const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
75852
75953
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
75853
75954
  }
75854
75955
  const matcher = (input, returnObject = false) => {
75855
- const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
75856
- const result = { glob, state, regex, posix, input, output, match, isMatch };
75956
+ const { isMatch, match, output } = picomatch.test(input, regex2, options, { glob, posix });
75957
+ const result = { glob, state, regex: regex2, posix, input, output, match, isMatch };
75857
75958
  if (typeof opts.onResult === "function") {
75858
75959
  opts.onResult(result);
75859
75960
  }
@@ -75878,7 +75979,7 @@ var require_picomatch3 = __commonJS({
75878
75979
  }
75879
75980
  return matcher;
75880
75981
  };
75881
- picomatch.test = (input, regex, options, { glob, posix } = {}) => {
75982
+ picomatch.test = (input, regex2, options, { glob, posix } = {}) => {
75882
75983
  if (typeof input !== "string") {
75883
75984
  throw new TypeError("Expected input to be a string");
75884
75985
  }
@@ -75895,16 +75996,16 @@ var require_picomatch3 = __commonJS({
75895
75996
  }
75896
75997
  if (match === false || opts.capture === true) {
75897
75998
  if (opts.matchBase === true || opts.basename === true) {
75898
- match = picomatch.matchBase(input, regex, options, posix);
75999
+ match = picomatch.matchBase(input, regex2, options, posix);
75899
76000
  } else {
75900
- match = regex.exec(output);
76001
+ match = regex2.exec(output);
75901
76002
  }
75902
76003
  }
75903
76004
  return { isMatch: Boolean(match), match, output };
75904
76005
  };
75905
76006
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
75906
- const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
75907
- return regex.test(path16.basename(input));
76007
+ const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
76008
+ return regex2.test(path16.basename(input));
75908
76009
  };
75909
76010
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
75910
76011
  picomatch.parse = (pattern, options) => {
@@ -75923,11 +76024,11 @@ var require_picomatch3 = __commonJS({
75923
76024
  if (state && state.negated === true) {
75924
76025
  source = `^(?!${source}).*$`;
75925
76026
  }
75926
- const regex = picomatch.toRegex(source, options);
76027
+ const regex2 = picomatch.toRegex(source, options);
75927
76028
  if (returnState === true) {
75928
- regex.state = state;
76029
+ regex2.state = state;
75929
76030
  }
75930
- return regex;
76031
+ return regex2;
75931
76032
  };
75932
76033
  picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
75933
76034
  if (!input || typeof input !== "string") {
@@ -79466,6 +79567,53 @@ var require_terminal = __commonJS({
79466
79567
  }
79467
79568
  });
79468
79569
 
79570
+ // node_modules/cli-progress/node_modules/string-width/node_modules/emoji-regex/index.js
79571
+ var require_emoji_regex5 = __commonJS({
79572
+ "node_modules/cli-progress/node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
79573
+ "use strict";
79574
+ module.exports = function() {
79575
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
79576
+ };
79577
+ }
79578
+ });
79579
+
79580
+ // node_modules/cli-progress/node_modules/string-width/index.js
79581
+ var require_string_width5 = __commonJS({
79582
+ "node_modules/cli-progress/node_modules/string-width/index.js"(exports, module) {
79583
+ "use strict";
79584
+ var stripAnsi2 = require_strip_ansi();
79585
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
79586
+ var emojiRegex2 = require_emoji_regex5();
79587
+ var stringWidth2 = (string4) => {
79588
+ if (typeof string4 !== "string" || string4.length === 0) {
79589
+ return 0;
79590
+ }
79591
+ string4 = stripAnsi2(string4);
79592
+ if (string4.length === 0) {
79593
+ return 0;
79594
+ }
79595
+ string4 = string4.replace(emojiRegex2(), " ");
79596
+ let width = 0;
79597
+ for (let i = 0; i < string4.length; i++) {
79598
+ const code = string4.codePointAt(i);
79599
+ if (code <= 31 || code >= 127 && code <= 159) {
79600
+ continue;
79601
+ }
79602
+ if (code >= 768 && code <= 879) {
79603
+ continue;
79604
+ }
79605
+ if (code > 65535) {
79606
+ i++;
79607
+ }
79608
+ width += isFullwidthCodePoint(code) ? 2 : 1;
79609
+ }
79610
+ return width;
79611
+ };
79612
+ module.exports = stringWidth2;
79613
+ module.exports.default = stringWidth2;
79614
+ }
79615
+ });
79616
+
79469
79617
  // node_modules/cli-progress/lib/format-value.js
79470
79618
  var require_format_value = __commonJS({
79471
79619
  "node_modules/cli-progress/lib/format-value.js"(exports, module) {
@@ -79527,7 +79675,7 @@ var require_format_time = __commonJS({
79527
79675
  // node_modules/cli-progress/lib/formatter.js
79528
79676
  var require_formatter = __commonJS({
79529
79677
  "node_modules/cli-progress/lib/formatter.js"(exports, module) {
79530
- var _stringWidth = require_string_width();
79678
+ var _stringWidth = require_string_width5();
79531
79679
  var _defaultFormatValue = require_format_value();
79532
79680
  var _defaultFormatBar = require_format_bar();
79533
79681
  var _defaultFormatTime = require_format_time();
@@ -85965,7 +86113,7 @@ var {
85965
86113
  } = import_index.default;
85966
86114
 
85967
86115
  // cli.ts
85968
- var import_chalk13 = __toESM(require_source(), 1);
86116
+ var import_chalk14 = __toESM(require_source(), 1);
85969
86117
  var import_inquirer9 = __toESM(require_inquirer(), 1);
85970
86118
 
85971
86119
  // package.json
@@ -85974,7 +86122,7 @@ var package_default = {
85974
86122
  type: "module",
85975
86123
  homepage: "https://appwrite.io/support",
85976
86124
  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",
85977
- version: "17.3.1",
86125
+ version: "17.4.0",
85978
86126
  license: "BSD-3-Clause",
85979
86127
  main: "dist/index.cjs",
85980
86128
  module: "dist/index.js",
@@ -86004,7 +86152,8 @@ var package_default = {
86004
86152
  scripts: {
86005
86153
  build: "npm run build:types && npm run build:runtime",
86006
86154
  "build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
86007
- "build:runtime": "npm run build:lib:esm && npm run build:lib:cjs && npm run build:cli",
86155
+ "build:runtime": "npm run build:lib:runtime && npm run build:cli",
86156
+ "build:lib:runtime": "npm run build:lib:esm && npm run build:lib:cjs",
86008
86157
  "build:lib:esm": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --loader:.hbs=text --outfile=dist/index.js",
86009
86158
  "build:lib:cjs": "esbuild index.ts --bundle --platform=node --target=node18 --format=cjs --loader:.hbs=text --outfile=dist/index.cjs",
86010
86159
  "build:cli": "esbuild cli.ts --bundle --platform=node --target=node18 --format=cjs --loader:.hbs=text --external:fsevents --outfile=dist/cli.cjs",
@@ -86021,7 +86170,7 @@ var package_default = {
86021
86170
  "windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe"
86022
86171
  },
86023
86172
  dependencies: {
86024
- "@appwrite.io/console": "~8.2.0",
86173
+ "@appwrite.io/console": "~8.3.0",
86025
86174
  chalk: "4.1.2",
86026
86175
  chokidar: "^3.6.0",
86027
86176
  "cli-progress": "^3.12.0",
@@ -86034,6 +86183,7 @@ var package_default = {
86034
86183
  inquirer: "^8.2.4",
86035
86184
  "inquirer-search-list": "^1.2.6",
86036
86185
  "json-bigint": "^1.0.0",
86186
+ "string-width": "^7.2.0",
86037
86187
  tail: "^2.2.6",
86038
86188
  tar: "^7.4.3",
86039
86189
  undici: "^5.28.2",
@@ -86066,7 +86216,7 @@ var package_default = {
86066
86216
  };
86067
86217
 
86068
86218
  // lib/parser.ts
86069
- var import_chalk = __toESM(require_source(), 1);
86219
+ var import_chalk2 = __toESM(require_source(), 1);
86070
86220
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
86071
86221
 
86072
86222
  // lib/config.ts
@@ -87678,8 +87828,8 @@ var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][
87678
87828
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
87679
87829
  function timeSource(args) {
87680
87830
  const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
87681
- const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
87682
- return regex;
87831
+ const regex2 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
87832
+ return regex2;
87683
87833
  }
87684
87834
  function time(args) {
87685
87835
  return new RegExp(`^${timeSource(args)}$`);
@@ -87695,8 +87845,8 @@ function datetime(args) {
87695
87845
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
87696
87846
  }
87697
87847
  var string = (params) => {
87698
- const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
87699
- return new RegExp(`^${regex}$`);
87848
+ const regex2 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
87849
+ return new RegExp(`^${regex2}$`);
87700
87850
  };
87701
87851
  var bigint = /^-?\d+n?$/;
87702
87852
  var integer = /^-?\d+$/;
@@ -97342,9 +97492,9 @@ var stringProcessor = (schema, ctx, _json, _params) => {
97342
97492
  json2.pattern = regexes[0].source;
97343
97493
  else if (regexes.length > 1) {
97344
97494
  json2.allOf = [
97345
- ...regexes.map((regex) => ({
97495
+ ...regexes.map((regex2) => ({
97346
97496
  ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
97347
- pattern: regex.source
97497
+ pattern: regex2.source
97348
97498
  }))
97349
97499
  ];
97350
97500
  }
@@ -98554,10 +98704,10 @@ function hex2(_params) {
98554
98704
  function hash(alg, params) {
98555
98705
  const enc = params?.enc ?? "hex";
98556
98706
  const format = `${alg}_${enc}`;
98557
- const regex = regexes_exports[format];
98558
- if (!regex)
98707
+ const regex2 = regexes_exports[format];
98708
+ if (!regex2)
98559
98709
  throw new Error(`Unrecognized hash format: ${format}`);
98560
- return _stringFormat(ZodCustomStringFormat, format, regex, params);
98710
+ return _stringFormat(ZodCustomStringFormat, format, regex2, params);
98561
98711
  }
98562
98712
  var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
98563
98713
  $ZodNumber.init(inst, def);
@@ -100264,7 +100414,7 @@ import childProcess from "child_process";
100264
100414
  // lib/constants.ts
100265
100415
  var SDK_TITLE = "Appwrite";
100266
100416
  var SDK_TITLE_LOWER = "appwrite";
100267
- var SDK_VERSION = "17.3.1";
100417
+ var SDK_VERSION = "17.4.0";
100268
100418
  var SDK_NAME = "Command Line";
100269
100419
  var SDK_PLATFORM = "console";
100270
100420
  var SDK_LANGUAGE = "cli";
@@ -100332,12 +100482,40 @@ var createSettingsObject = (project2) => {
100332
100482
  }
100333
100483
  };
100334
100484
  };
100485
+ var getSafeDirectoryName = (value, fallback) => {
100486
+ const normalized = value.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
100487
+ return normalized || fallback;
100488
+ };
100335
100489
  var getErrorMessage = (error49) => {
100336
100490
  if (error49 instanceof Error) {
100337
100491
  return error49.message;
100338
100492
  }
100339
100493
  return String(error49);
100340
100494
  };
100495
+ var getConsoleBaseUrl = (endpoint) => {
100496
+ return endpoint.replace(/\/v1\/?$/, "");
100497
+ };
100498
+ var getConsoleProjectSlug = (endpoint, projectId) => {
100499
+ try {
100500
+ const hostname3 = new URL(endpoint).hostname;
100501
+ const isCloudHostname = hostname3 === "cloud.appwrite.io" || hostname3.endsWith(".cloud.appwrite.io");
100502
+ if (!isCloudHostname) {
100503
+ return `project-${projectId}`;
100504
+ }
100505
+ const firstSubdomain = hostname3.split(".")[0];
100506
+ return firstSubdomain.length === 3 ? `project-${firstSubdomain}-${projectId}` : `project-${projectId}`;
100507
+ } catch {
100508
+ return `project-${projectId}`;
100509
+ }
100510
+ };
100511
+ var getFunctionDeploymentConsoleUrl = (endpoint, projectId, functionId, deploymentId) => {
100512
+ const projectSlug = getConsoleProjectSlug(endpoint, projectId);
100513
+ return `${getConsoleBaseUrl(endpoint)}/console/${projectSlug}/functions/function-${functionId}/deployment-${deploymentId}`;
100514
+ };
100515
+ var getSiteDeploymentConsoleUrl = (endpoint, projectId, siteId, deploymentId) => {
100516
+ const projectSlug = getConsoleProjectSlug(endpoint, projectId);
100517
+ return `${getConsoleBaseUrl(endpoint)}/console/${projectSlug}/sites/site-${siteId}/deployments/deployment-${deploymentId}`;
100518
+ };
100341
100519
  var UPDATE_CHECK_FILE_NAME = "update-check.json";
100342
100520
  var DEFAULT_UPDATE_CHECK_TIMEOUT_MS = 250;
100343
100521
  var getCurrentTimestamp = () => {
@@ -101649,7 +101827,7 @@ var Client = class _Client {
101649
101827
  "x-sdk-name": "Console",
101650
101828
  "x-sdk-platform": "console",
101651
101829
  "x-sdk-language": "web",
101652
- "x-sdk-version": "8.2.0",
101830
+ "x-sdk-version": "8.3.0",
101653
101831
  "X-Appwrite-Response-Format": "1.9.0"
101654
101832
  };
101655
101833
  this.realtime = {
@@ -113659,6 +113837,146 @@ var Organizations = class {
113659
113837
  };
113660
113838
  return this.client.call("delete", uri, apiHeaders, payload);
113661
113839
  }
113840
+ listAddons(paramsOrFirst) {
113841
+ let params;
113842
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113843
+ params = paramsOrFirst || {};
113844
+ } else {
113845
+ params = {
113846
+ organizationId: paramsOrFirst
113847
+ };
113848
+ }
113849
+ const organizationId = params.organizationId;
113850
+ if (typeof organizationId === "undefined") {
113851
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113852
+ }
113853
+ const apiPath = "/organizations/{organizationId}/addons".replace("{organizationId}", organizationId);
113854
+ const payload = {};
113855
+ const uri = new URL(this.client.config.endpoint + apiPath);
113856
+ const apiHeaders = {};
113857
+ return this.client.call("get", uri, apiHeaders, payload);
113858
+ }
113859
+ createBaaAddon(paramsOrFirst) {
113860
+ let params;
113861
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113862
+ params = paramsOrFirst || {};
113863
+ } else {
113864
+ params = {
113865
+ organizationId: paramsOrFirst
113866
+ };
113867
+ }
113868
+ const organizationId = params.organizationId;
113869
+ if (typeof organizationId === "undefined") {
113870
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113871
+ }
113872
+ const apiPath = "/organizations/{organizationId}/addons/baa".replace("{organizationId}", organizationId);
113873
+ const payload = {};
113874
+ const uri = new URL(this.client.config.endpoint + apiPath);
113875
+ const apiHeaders = {
113876
+ "content-type": "application/json"
113877
+ };
113878
+ return this.client.call("post", uri, apiHeaders, payload);
113879
+ }
113880
+ getAddon(paramsOrFirst, ...rest) {
113881
+ let params;
113882
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113883
+ params = paramsOrFirst || {};
113884
+ } else {
113885
+ params = {
113886
+ organizationId: paramsOrFirst,
113887
+ addonId: rest[0]
113888
+ };
113889
+ }
113890
+ const organizationId = params.organizationId;
113891
+ const addonId = params.addonId;
113892
+ if (typeof organizationId === "undefined") {
113893
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113894
+ }
113895
+ if (typeof addonId === "undefined") {
113896
+ throw new AppwriteException('Missing required parameter: "addonId"');
113897
+ }
113898
+ const apiPath = "/organizations/{organizationId}/addons/{addonId}".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
113899
+ const payload = {};
113900
+ const uri = new URL(this.client.config.endpoint + apiPath);
113901
+ const apiHeaders = {};
113902
+ return this.client.call("get", uri, apiHeaders, payload);
113903
+ }
113904
+ deleteAddon(paramsOrFirst, ...rest) {
113905
+ let params;
113906
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113907
+ params = paramsOrFirst || {};
113908
+ } else {
113909
+ params = {
113910
+ organizationId: paramsOrFirst,
113911
+ addonId: rest[0]
113912
+ };
113913
+ }
113914
+ const organizationId = params.organizationId;
113915
+ const addonId = params.addonId;
113916
+ if (typeof organizationId === "undefined") {
113917
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113918
+ }
113919
+ if (typeof addonId === "undefined") {
113920
+ throw new AppwriteException('Missing required parameter: "addonId"');
113921
+ }
113922
+ const apiPath = "/organizations/{organizationId}/addons/{addonId}".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
113923
+ const payload = {};
113924
+ const uri = new URL(this.client.config.endpoint + apiPath);
113925
+ const apiHeaders = {
113926
+ "content-type": "application/json"
113927
+ };
113928
+ return this.client.call("delete", uri, apiHeaders, payload);
113929
+ }
113930
+ confirmAddonPayment(paramsOrFirst, ...rest) {
113931
+ let params;
113932
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113933
+ params = paramsOrFirst || {};
113934
+ } else {
113935
+ params = {
113936
+ organizationId: paramsOrFirst,
113937
+ addonId: rest[0]
113938
+ };
113939
+ }
113940
+ const organizationId = params.organizationId;
113941
+ const addonId = params.addonId;
113942
+ if (typeof organizationId === "undefined") {
113943
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113944
+ }
113945
+ if (typeof addonId === "undefined") {
113946
+ throw new AppwriteException('Missing required parameter: "addonId"');
113947
+ }
113948
+ const apiPath = "/organizations/{organizationId}/addons/{addonId}/confirmations".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
113949
+ const payload = {};
113950
+ const uri = new URL(this.client.config.endpoint + apiPath);
113951
+ const apiHeaders = {
113952
+ "content-type": "application/json"
113953
+ };
113954
+ return this.client.call("post", uri, apiHeaders, payload);
113955
+ }
113956
+ getAddonPrice(paramsOrFirst, ...rest) {
113957
+ let params;
113958
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113959
+ params = paramsOrFirst || {};
113960
+ } else {
113961
+ params = {
113962
+ organizationId: paramsOrFirst,
113963
+ addon: rest[0]
113964
+ };
113965
+ }
113966
+ const organizationId = params.organizationId;
113967
+ const addon = params.addon;
113968
+ if (typeof organizationId === "undefined") {
113969
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113970
+ }
113971
+ if (typeof addon === "undefined") {
113972
+ throw new AppwriteException('Missing required parameter: "addon"');
113973
+ }
113974
+ const apiPath = "/organizations/{organizationId}/addons/{addon}/price".replace("{organizationId}", organizationId).replace("{addon}", addon);
113975
+ const payload = {};
113976
+ const uri = new URL(this.client.config.endpoint + apiPath);
113977
+ const apiHeaders = {};
113978
+ return this.client.call("get", uri, apiHeaders, payload);
113979
+ }
113662
113980
  listAggregations(paramsOrFirst, ...rest) {
113663
113981
  let params;
113664
113982
  if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -126254,6 +126572,10 @@ var SupabaseMigrationResource;
126254
126572
  SupabaseMigrationResource2["Bucket"] = "bucket";
126255
126573
  SupabaseMigrationResource2["File"] = "file";
126256
126574
  })(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
126575
+ var Addon;
126576
+ (function(Addon2) {
126577
+ Addon2["Baa"] = "baa";
126578
+ })(Addon || (Addon = {}));
126257
126579
  var ProjectUsageRange;
126258
126580
  (function(ProjectUsageRange2) {
126259
126581
  ProjectUsageRange2["OneHour"] = "1h";
@@ -126923,6 +127245,528 @@ var DomainPurchaseStatus;
126923
127245
  DomainPurchaseStatus2["Cancelled"] = "cancelled";
126924
127246
  })(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
126925
127247
 
127248
+ // lib/response-config.ts
127249
+ var import_chalk = __toESM(require_source(), 1);
127250
+
127251
+ // node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
127252
+ function ansiRegex({ onlyFirst = false } = {}) {
127253
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
127254
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
127255
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
127256
+ const pattern = `${osc}|${csi}`;
127257
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
127258
+ }
127259
+
127260
+ // node_modules/string-width/node_modules/strip-ansi/index.js
127261
+ var regex = ansiRegex();
127262
+ function stripAnsi(string4) {
127263
+ if (typeof string4 !== "string") {
127264
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string4}\``);
127265
+ }
127266
+ if (!string4.includes("\x1B") && !string4.includes("\x9B")) {
127267
+ return string4;
127268
+ }
127269
+ return string4.replace(regex, "");
127270
+ }
127271
+
127272
+ // node_modules/get-east-asian-width/lookup-data.js
127273
+ var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
127274
+ var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
127275
+ var halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
127276
+ var narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
127277
+ var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
127278
+
127279
+ // node_modules/get-east-asian-width/utilities.js
127280
+ var isInRange = (ranges, codePoint) => {
127281
+ let low = 0;
127282
+ let high = Math.floor(ranges.length / 2) - 1;
127283
+ while (low <= high) {
127284
+ const mid = Math.floor((low + high) / 2);
127285
+ const i = mid * 2;
127286
+ if (codePoint < ranges[i]) {
127287
+ high = mid - 1;
127288
+ } else if (codePoint > ranges[i + 1]) {
127289
+ low = mid + 1;
127290
+ } else {
127291
+ return true;
127292
+ }
127293
+ }
127294
+ return false;
127295
+ };
127296
+
127297
+ // node_modules/get-east-asian-width/lookup.js
127298
+ var minimumAmbiguousCodePoint = ambiguousRanges[0];
127299
+ var maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
127300
+ var minimumFullWidthCodePoint = fullwidthRanges[0];
127301
+ var maximumFullWidthCodePoint = fullwidthRanges.at(-1);
127302
+ var minimumHalfWidthCodePoint = halfwidthRanges[0];
127303
+ var maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
127304
+ var minimumNarrowCodePoint = narrowRanges[0];
127305
+ var maximumNarrowCodePoint = narrowRanges.at(-1);
127306
+ var minimumWideCodePoint = wideRanges[0];
127307
+ var maximumWideCodePoint = wideRanges.at(-1);
127308
+ var commonCjkCodePoint = 19968;
127309
+ var [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
127310
+ function findWideFastPathRange(ranges) {
127311
+ let fastPathStart = ranges[0];
127312
+ let fastPathEnd = ranges[1];
127313
+ for (let index = 0; index < ranges.length; index += 2) {
127314
+ const start = ranges[index];
127315
+ const end = ranges[index + 1];
127316
+ if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
127317
+ return [start, end];
127318
+ }
127319
+ if (end - start > fastPathEnd - fastPathStart) {
127320
+ fastPathStart = start;
127321
+ fastPathEnd = end;
127322
+ }
127323
+ }
127324
+ return [fastPathStart, fastPathEnd];
127325
+ }
127326
+ var isAmbiguous = (codePoint) => {
127327
+ if (codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint) {
127328
+ return false;
127329
+ }
127330
+ return isInRange(ambiguousRanges, codePoint);
127331
+ };
127332
+ var isFullWidth = (codePoint) => {
127333
+ if (codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint) {
127334
+ return false;
127335
+ }
127336
+ return isInRange(fullwidthRanges, codePoint);
127337
+ };
127338
+ var isWide = (codePoint) => {
127339
+ if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
127340
+ return true;
127341
+ }
127342
+ if (codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint) {
127343
+ return false;
127344
+ }
127345
+ return isInRange(wideRanges, codePoint);
127346
+ };
127347
+
127348
+ // node_modules/get-east-asian-width/index.js
127349
+ function validate(codePoint) {
127350
+ if (!Number.isSafeInteger(codePoint)) {
127351
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
127352
+ }
127353
+ }
127354
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
127355
+ validate(codePoint);
127356
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
127357
+ return 2;
127358
+ }
127359
+ return 1;
127360
+ }
127361
+
127362
+ // node_modules/string-width/index.js
127363
+ var import_emoji_regex = __toESM(require_emoji_regex4(), 1);
127364
+ var segmenter = new Intl.Segmenter();
127365
+ var defaultIgnorableCodePointRegex = new RegExp("^\\p{Default_Ignorable_Code_Point}$", "u");
127366
+ function stringWidth(string4, options = {}) {
127367
+ if (typeof string4 !== "string" || string4.length === 0) {
127368
+ return 0;
127369
+ }
127370
+ const {
127371
+ ambiguousIsNarrow = true,
127372
+ countAnsiEscapeCodes = false
127373
+ } = options;
127374
+ if (!countAnsiEscapeCodes) {
127375
+ string4 = stripAnsi(string4);
127376
+ }
127377
+ if (string4.length === 0) {
127378
+ return 0;
127379
+ }
127380
+ let width = 0;
127381
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
127382
+ for (const { segment: character } of segmenter.segment(string4)) {
127383
+ const codePoint = character.codePointAt(0);
127384
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
127385
+ continue;
127386
+ }
127387
+ if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
127388
+ continue;
127389
+ }
127390
+ if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
127391
+ continue;
127392
+ }
127393
+ if (codePoint >= 55296 && codePoint <= 57343) {
127394
+ continue;
127395
+ }
127396
+ if (codePoint >= 65024 && codePoint <= 65039) {
127397
+ continue;
127398
+ }
127399
+ if (defaultIgnorableCodePointRegex.test(character)) {
127400
+ continue;
127401
+ }
127402
+ if ((0, import_emoji_regex.default)().test(character)) {
127403
+ width += 2;
127404
+ continue;
127405
+ }
127406
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
127407
+ }
127408
+ return width;
127409
+ }
127410
+
127411
+ // lib/response-config.ts
127412
+ var splitWords = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_-]+/).filter(Boolean);
127413
+ var toTitleCase = (value) => splitWords(value).map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()).join(" ");
127414
+ var padColumn = (value, width) => {
127415
+ const valueWidth = stringWidth(value);
127416
+ if (valueWidth >= width) return value;
127417
+ return value + " ".repeat(width - valueWidth);
127418
+ };
127419
+ var renderAlignedColumns = (columns, options = {}, headers) => {
127420
+ const indent = options.indent ?? "";
127421
+ const widths = columns.map((column, columnIndex) => {
127422
+ const dataWidth = column.reduce(
127423
+ (max, value) => Math.max(max, stringWidth(value)),
127424
+ 0
127425
+ );
127426
+ const headerWidth = stringWidth(headers?.[columnIndex] ?? "");
127427
+ return Math.max(dataWidth, headerWidth);
127428
+ });
127429
+ if (headers && headers.length === columns.length) {
127430
+ const headerParts = headers.map((header, columnIndex) => {
127431
+ const value = import_chalk.default.cyan.bold(header);
127432
+ if (columnIndex === columns.length - 1) {
127433
+ return value;
127434
+ }
127435
+ return padColumn(value, widths[columnIndex]);
127436
+ });
127437
+ console.log(`${indent}${headerParts.join(" ")}`.trimEnd());
127438
+ }
127439
+ for (let idx = 0; idx < columns[0].length; idx++) {
127440
+ const parts = columns.map((column, columnIndex) => {
127441
+ const value = column[idx] ?? "";
127442
+ if (columnIndex === columns.length - 1) {
127443
+ return value;
127444
+ }
127445
+ return padColumn(value, widths[columnIndex]);
127446
+ });
127447
+ console.log(`${indent}${parts.join(" ")}`.trimEnd());
127448
+ }
127449
+ };
127450
+ var compactDate = (value) => {
127451
+ if (typeof value !== "string" || value.trim() === "") {
127452
+ return "\u2014";
127453
+ }
127454
+ return value.replace("T", " ").replace("+00:00", "Z");
127455
+ };
127456
+ var compactText = (value, fallback = "\u2014") => {
127457
+ if (typeof value !== "string") {
127458
+ return fallback;
127459
+ }
127460
+ const trimmed = value.trim();
127461
+ return trimmed === "" ? fallback : trimmed;
127462
+ };
127463
+ var compactAmount = (value) => {
127464
+ if (typeof value === "number" || typeof value === "string") {
127465
+ return String(value);
127466
+ }
127467
+ return "\u2014";
127468
+ };
127469
+ var isPresent = (value) => {
127470
+ if (value == null) return false;
127471
+ if (typeof value === "string") return value.trim() !== "";
127472
+ return true;
127473
+ };
127474
+ var valueFrom = (row, key) => row[key];
127475
+ var indexedLabel = (label, context) => `[${context.index + 1}] ${label}`;
127476
+ var createSummarySchema = (shape, requiredKeys, message) => external_exports.object(shape).passthrough().refine((row) => requiredKeys.some((key) => isPresent(row[key])), {
127477
+ message
127478
+ });
127479
+ var createColumnRenderer = (itemSchema, columns) => ({
127480
+ itemSchema,
127481
+ columns
127482
+ });
127483
+ var PaymentMethodSummarySchema = createSummarySchema(
127484
+ {
127485
+ providerUserId: external_exports.string().nullable().optional(),
127486
+ providerMethodId: external_exports.string().nullable().optional(),
127487
+ mandateId: external_exports.string().nullable().optional(),
127488
+ mandateStatus: external_exports.string().nullable().optional(),
127489
+ last4: external_exports.string().nullable().optional(),
127490
+ brand: external_exports.string().nullable().optional(),
127491
+ country: external_exports.string().nullable().optional(),
127492
+ expiryMonth: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127493
+ expiryYear: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127494
+ default: external_exports.boolean().optional(),
127495
+ expired: external_exports.boolean().optional(),
127496
+ failed: external_exports.boolean().optional()
127497
+ },
127498
+ ["providerUserId", "providerMethodId", "mandateId", "last4"],
127499
+ "Expected a payment method summary row"
127500
+ );
127501
+ var IdentitySummarySchema = createSummarySchema(
127502
+ {
127503
+ provider: external_exports.string().nullable().optional(),
127504
+ providerUid: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127505
+ providerEmail: external_exports.string().nullable().optional(),
127506
+ providerAccessTokenExpiry: external_exports.string().nullable().optional()
127507
+ },
127508
+ ["provider", "providerUid", "providerEmail"],
127509
+ "Expected an identity summary row"
127510
+ );
127511
+ var SessionSummarySchema = createSummarySchema(
127512
+ {
127513
+ provider: external_exports.string().nullable().optional(),
127514
+ current: external_exports.boolean().optional(),
127515
+ expire: external_exports.string().nullable().optional(),
127516
+ clientName: external_exports.string().nullable().optional(),
127517
+ clientType: external_exports.string().nullable().optional(),
127518
+ osName: external_exports.string().nullable().optional(),
127519
+ deviceName: external_exports.string().nullable().optional(),
127520
+ countryName: external_exports.string().nullable().optional(),
127521
+ countryCode: external_exports.string().nullable().optional()
127522
+ },
127523
+ ["provider", "expire"],
127524
+ "Expected a session summary row"
127525
+ );
127526
+ var LogSummarySchema = createSummarySchema(
127527
+ {
127528
+ event: external_exports.string().nullable().optional(),
127529
+ time: external_exports.string().nullable().optional(),
127530
+ clientName: external_exports.string().nullable().optional(),
127531
+ osName: external_exports.string().nullable().optional(),
127532
+ countryName: external_exports.string().nullable().optional(),
127533
+ countryCode: external_exports.string().nullable().optional(),
127534
+ mode: external_exports.string().nullable().optional()
127535
+ },
127536
+ ["event", "time"],
127537
+ "Expected a log summary row"
127538
+ );
127539
+ var InvoiceSummarySchema = createSummarySchema(
127540
+ {
127541
+ plan: external_exports.string().nullable().optional(),
127542
+ currency: external_exports.string().nullable().optional(),
127543
+ amount: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127544
+ grossAmount: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127545
+ status: external_exports.string().nullable().optional(),
127546
+ dueAt: external_exports.string().nullable().optional(),
127547
+ from: external_exports.string().nullable().optional(),
127548
+ to: external_exports.string().nullable().optional()
127549
+ },
127550
+ ["plan", "status", "dueAt"],
127551
+ "Expected an invoice summary row"
127552
+ );
127553
+ var paymentMethodLabel = (row) => {
127554
+ const brand = valueFrom(row, "brand") ?? "";
127555
+ const last4 = valueFrom(row, "last4") ?? "";
127556
+ if (brand && last4) {
127557
+ return `${toTitleCase(brand)} \u2022\u2022\u2022\u2022 ${last4}`;
127558
+ }
127559
+ if (last4) {
127560
+ return `Card \u2022\u2022\u2022\u2022 ${last4}`;
127561
+ }
127562
+ return "Setup only";
127563
+ };
127564
+ var paymentMethodDetails = (row) => {
127565
+ const expiryMonth = valueFrom(row, "expiryMonth");
127566
+ const expiryYear = valueFrom(row, "expiryYear");
127567
+ if (expiryMonth != null && expiryYear != null) {
127568
+ return `exp ${String(expiryMonth).padStart(2, "0")}/${String(expiryYear)}`;
127569
+ }
127570
+ return "no card data";
127571
+ };
127572
+ var paymentMethodStatus = (row) => {
127573
+ const mandateStatus = valueFrom(row, "mandateStatus");
127574
+ if (mandateStatus && mandateStatus.trim() !== "") {
127575
+ return `mandate: ${mandateStatus}`;
127576
+ }
127577
+ if (row.failed === true) {
127578
+ return "status: failed";
127579
+ }
127580
+ if (row.expired === true) {
127581
+ return "status: expired";
127582
+ }
127583
+ if (isPresent(valueFrom(row, "providerMethodId")) || isPresent(valueFrom(row, "last4"))) {
127584
+ return "status: active";
127585
+ }
127586
+ return "status: pending";
127587
+ };
127588
+ var structuredCollectionRenderers = {
127589
+ identities: createColumnRenderer(IdentitySummarySchema, [
127590
+ {
127591
+ header: "identity",
127592
+ value: (row, context) => indexedLabel(
127593
+ toTitleCase(compactText(valueFrom(row, "provider"), "Identity")),
127594
+ context
127595
+ )
127596
+ },
127597
+ {
127598
+ header: "account",
127599
+ value: (row) => {
127600
+ const providerEmail = valueFrom(row, "providerEmail");
127601
+ const providerUid = valueFrom(row, "providerUid");
127602
+ if (providerEmail && providerEmail.trim() !== "") {
127603
+ return providerEmail;
127604
+ }
127605
+ if (providerUid != null) {
127606
+ return `uid ${providerUid}`;
127607
+ }
127608
+ return "\u2014";
127609
+ }
127610
+ },
127611
+ {
127612
+ header: "identifier",
127613
+ value: (row) => {
127614
+ const providerEmail = valueFrom(row, "providerEmail");
127615
+ const providerUid = valueFrom(row, "providerUid");
127616
+ if (providerEmail && providerEmail.trim() !== "" && providerUid != null) {
127617
+ return `uid ${providerUid}`;
127618
+ }
127619
+ return "";
127620
+ }
127621
+ },
127622
+ {
127623
+ header: "expires",
127624
+ value: (row) => {
127625
+ const expiry = valueFrom(row, "providerAccessTokenExpiry");
127626
+ return expiry ? `expires ${compactDate(expiry)}` : "";
127627
+ }
127628
+ }
127629
+ ]),
127630
+ sessions: createColumnRenderer(SessionSummarySchema, [
127631
+ {
127632
+ header: "session",
127633
+ value: (row, context) => {
127634
+ const provider = compactText(valueFrom(row, "provider"), "Session");
127635
+ const current = row.current === true ? " (current)" : "";
127636
+ return indexedLabel(`${toTitleCase(provider)}${current}`, context);
127637
+ }
127638
+ },
127639
+ {
127640
+ header: "client",
127641
+ value: (row) => {
127642
+ const clientName = compactText(valueFrom(row, "clientName"), "");
127643
+ const osName = compactText(valueFrom(row, "osName"), "");
127644
+ const deviceName = compactText(valueFrom(row, "deviceName"), "");
127645
+ if (clientName && osName) {
127646
+ return `${clientName} on ${osName}`;
127647
+ }
127648
+ if (clientName && deviceName) {
127649
+ return `${clientName} on ${deviceName}`;
127650
+ }
127651
+ return clientName || osName || deviceName || "\u2014";
127652
+ }
127653
+ },
127654
+ {
127655
+ header: "location",
127656
+ value: (row) => compactText(row.countryName ?? row.countryCode, "\u2014")
127657
+ },
127658
+ {
127659
+ header: "expires",
127660
+ value: (row) => `expires ${compactDate(valueFrom(row, "expire"))}`
127661
+ }
127662
+ ]),
127663
+ logs: createColumnRenderer(LogSummarySchema, [
127664
+ {
127665
+ header: "time",
127666
+ value: (row) => compactDate(valueFrom(row, "time"))
127667
+ },
127668
+ {
127669
+ header: "event",
127670
+ value: (row) => {
127671
+ const event = compactText(valueFrom(row, "event"), "event");
127672
+ const mode = valueFrom(row, "mode");
127673
+ if (mode && mode.trim() !== "" && mode !== "default") {
127674
+ return `${event} (${mode})`;
127675
+ }
127676
+ return event;
127677
+ }
127678
+ },
127679
+ {
127680
+ header: "client",
127681
+ value: (row) => {
127682
+ const clientName = compactText(valueFrom(row, "clientName"), "");
127683
+ const osName = compactText(valueFrom(row, "osName"), "");
127684
+ if (clientName && osName) {
127685
+ return `${clientName} on ${osName}`;
127686
+ }
127687
+ return clientName || osName || "\u2014";
127688
+ }
127689
+ },
127690
+ {
127691
+ header: "location",
127692
+ value: (row) => compactText(row.countryName ?? row.countryCode, "\u2014")
127693
+ }
127694
+ ]),
127695
+ invoices: createColumnRenderer(InvoiceSummarySchema, [
127696
+ {
127697
+ header: "status",
127698
+ value: (row, context) => indexedLabel(compactText(valueFrom(row, "status"), "pending"), context)
127699
+ },
127700
+ {
127701
+ header: "plan",
127702
+ value: (row) => compactText(valueFrom(row, "plan"))
127703
+ },
127704
+ {
127705
+ header: "amount",
127706
+ value: (row) => {
127707
+ const currency = compactText(valueFrom(row, "currency"), "\u2014");
127708
+ const grossAmount = valueFrom(row, "grossAmount");
127709
+ const amount = valueFrom(row, "amount");
127710
+ return `${currency} ${grossAmount != null ? compactAmount(grossAmount) : compactAmount(amount)}`.trim();
127711
+ }
127712
+ },
127713
+ {
127714
+ header: "due",
127715
+ value: (row) => `due ${compactDate(valueFrom(row, "dueAt"))}`
127716
+ },
127717
+ {
127718
+ header: "period",
127719
+ value: (row) => `${compactDate(valueFrom(row, "from"))} -> ${compactDate(valueFrom(row, "to"))}`
127720
+ }
127721
+ ]),
127722
+ paymentMethods: createColumnRenderer(PaymentMethodSummarySchema, [
127723
+ {
127724
+ header: "method",
127725
+ value: (row, context) => indexedLabel(paymentMethodLabel(row), context)
127726
+ },
127727
+ {
127728
+ header: "country",
127729
+ value: (row) => compactText(valueFrom(row, "country"), "\u2014")
127730
+ },
127731
+ {
127732
+ header: "details",
127733
+ value: (row) => paymentMethodDetails(row)
127734
+ },
127735
+ {
127736
+ header: "default",
127737
+ value: (row) => `default: ${Boolean(row.default) ? "yes" : "no"}`
127738
+ },
127739
+ {
127740
+ header: "status",
127741
+ value: (row) => paymentMethodStatus(row)
127742
+ }
127743
+ ])
127744
+ };
127745
+ var renderStructuredCollection = (sectionName, rows, options = {}) => {
127746
+ if (!sectionName) {
127747
+ return false;
127748
+ }
127749
+ const renderer = structuredCollectionRenderers[sectionName];
127750
+ if (!renderer) {
127751
+ return false;
127752
+ }
127753
+ const allRowsMatch = rows.every(
127754
+ (row) => renderer.itemSchema.safeParse(row).success
127755
+ );
127756
+ if (!allRowsMatch) {
127757
+ return false;
127758
+ }
127759
+ const columns = renderer.columns.map(
127760
+ (column) => rows.map((row, index) => column.value(row, { index }))
127761
+ );
127762
+ renderAlignedColumns(
127763
+ columns,
127764
+ options,
127765
+ renderer.columns.map((column) => column.header)
127766
+ );
127767
+ return true;
127768
+ };
127769
+
126926
127770
  // lib/parser.ts
126927
127771
  BigInt.prototype.toJSON = function() {
126928
127772
  return this.toString();
@@ -126954,12 +127798,17 @@ var SENSITIVE_KEYS = /* @__PURE__ */ new Set([
126954
127798
  ]);
126955
127799
  var renderDepth = 0;
126956
127800
  var redactionApplied = false;
127801
+ var renderedRedactionApplied = false;
126957
127802
  var toJsonObject = (value) => {
126958
127803
  if (value && typeof value === "object" && !Array.isArray(value)) {
126959
127804
  return value;
126960
127805
  }
126961
127806
  return null;
126962
127807
  };
127808
+ var isNormalViewHiddenKey = (key) => key.startsWith("$") && key !== "$id";
127809
+ var printSpacerLine = () => {
127810
+ process.stdout.write(" \n");
127811
+ };
126963
127812
  var extractReportCommandArgs = (value) => {
126964
127813
  if (!value || typeof value !== "object") {
126965
127814
  return [];
@@ -126973,15 +127822,17 @@ var extractReportCommandArgs = (value) => {
126973
127822
  var beginRender = () => {
126974
127823
  if (renderDepth === 0) {
126975
127824
  redactionApplied = false;
127825
+ renderedRedactionApplied = false;
126976
127826
  }
126977
127827
  renderDepth++;
126978
127828
  };
126979
127829
  var endRender = () => {
126980
127830
  renderDepth = Math.max(0, renderDepth - 1);
126981
- if (renderDepth === 0 && redactionApplied && !cliConfig.showSecrets) {
127831
+ const shouldShowRedactionHint = cliConfig.json || cliConfig.raw ? redactionApplied : renderedRedactionApplied;
127832
+ if (renderDepth === 0 && shouldShowRedactionHint && !cliConfig.showSecrets) {
126982
127833
  const message = "Sensitive values were redacted. Pass --show-secrets to display them.";
126983
127834
  if (cliConfig.json || cliConfig.raw) {
126984
- console.error(`${import_chalk.default.cyan.bold("\u2665 Hint:")} ${import_chalk.default.cyan(message)}`);
127835
+ console.error(`${import_chalk2.default.cyan.bold("\u2665 Hint:")} ${import_chalk2.default.cyan(message)}`);
126985
127836
  } else {
126986
127837
  hint(message);
126987
127838
  }
@@ -126997,7 +127848,9 @@ var withRender = (callback) => {
126997
127848
  };
126998
127849
  var isSensitiveKey = (key) => {
126999
127850
  const normalizedKey = key.toLowerCase().replace(/[^a-z0-9]/g, "");
127000
- return SENSITIVE_KEYS.has(normalizedKey);
127851
+ return [...SENSITIVE_KEYS].some(
127852
+ (sensitiveKey) => normalizedKey === sensitiveKey || normalizedKey.endsWith(sensitiveKey)
127853
+ );
127001
127854
  };
127002
127855
  var maskSensitiveString = (value) => {
127003
127856
  if (value.length <= 16) {
@@ -127011,9 +127864,11 @@ var maskSensitiveString = (value) => {
127011
127864
  }
127012
127865
  return `${HIDDEN_VALUE}${value.slice(-4)}`;
127013
127866
  };
127014
- var maskSensitiveData = (value, key) => {
127867
+ var maskSensitiveData = (value, key, trackRedaction = true) => {
127015
127868
  if (key && isSensitiveKey(key) && !cliConfig.showSecrets) {
127016
- redactionApplied = true;
127869
+ if (trackRedaction) {
127870
+ redactionApplied = true;
127871
+ }
127017
127872
  if (typeof value === "string") {
127018
127873
  return maskSensitiveString(value);
127019
127874
  }
@@ -127023,7 +127878,9 @@ var maskSensitiveData = (value, key) => {
127023
127878
  return HIDDEN_VALUE;
127024
127879
  }
127025
127880
  if (Array.isArray(value)) {
127026
- return value.map((item) => maskSensitiveData(item));
127881
+ return value.map(
127882
+ (item) => maskSensitiveData(item, void 0, trackRedaction)
127883
+ );
127027
127884
  }
127028
127885
  if (value && typeof value === "object") {
127029
127886
  if (value?.constructor?.name === "BigNumber") {
@@ -127033,7 +127890,11 @@ var maskSensitiveData = (value, key) => {
127033
127890
  for (const childKey of Object.keys(value)) {
127034
127891
  const childValue = value[childKey];
127035
127892
  if (typeof childValue === "function") continue;
127036
- result[childKey] = maskSensitiveData(childValue, childKey);
127893
+ result[childKey] = maskSensitiveData(
127894
+ childValue,
127895
+ childKey,
127896
+ trackRedaction
127897
+ );
127037
127898
  }
127038
127899
  return result;
127039
127900
  }
@@ -127096,21 +127957,36 @@ var filterData = (data) => {
127096
127957
  };
127097
127958
  var parse3 = (data) => {
127098
127959
  withRender(() => {
127099
- const sanitizedData = maskSensitiveData(data);
127960
+ if (data == null || typeof data === "string" && data.trim() === "") {
127961
+ if (!cliConfig.json && !cliConfig.raw) {
127962
+ success2("Request completed successfully.");
127963
+ }
127964
+ return;
127965
+ }
127100
127966
  if (cliConfig.raw) {
127101
- drawJSON(sanitizedData);
127967
+ const sanitizedData2 = maskSensitiveData(data);
127968
+ drawJSON(sanitizedData2);
127102
127969
  return;
127103
127970
  }
127104
127971
  if (cliConfig.json) {
127105
- drawJSON(filterData(sanitizedData));
127972
+ const sanitizedData2 = maskSensitiveData(data);
127973
+ drawJSON(filterData(sanitizedData2));
127106
127974
  return;
127107
127975
  }
127108
- const keys = Object.keys(sanitizedData).filter(
127109
- (k2) => typeof sanitizedData[k2] !== "function"
127976
+ const sanitizedData = maskSensitiveData(data, void 0, false);
127977
+ const objectData = toJsonObject(sanitizedData);
127978
+ if (!objectData) {
127979
+ console.log(String(sanitizedData));
127980
+ return;
127981
+ }
127982
+ const keys = Object.keys(objectData).filter(
127983
+ (k2) => typeof objectData[k2] !== "function"
127110
127984
  );
127111
- let printedScalar = false;
127985
+ const scalarEntries = [];
127986
+ const sections = [];
127112
127987
  for (const key of keys) {
127113
- const value = sanitizedData[key];
127988
+ if (isNormalViewHiddenKey(key)) continue;
127989
+ const value = objectData[key];
127114
127990
  if (value == null) continue;
127115
127991
  if (typeof value === "string" && value.trim() === "") continue;
127116
127992
  if (Array.isArray(value)) {
@@ -127119,40 +127995,64 @@ var parse3 = (data) => {
127119
127995
  (item) => item && typeof item === "object" && !Array.isArray(item) && Object.keys(item).length === 0
127120
127996
  ))
127121
127997
  continue;
127122
- console.log();
127123
- console.log(`${import_chalk.default.yellow.bold.underline(key)}`);
127124
- if (typeof value[0] === "object") {
127125
- drawTable(value);
127126
- } else {
127127
- drawJSON(value);
127128
- }
127129
- console.log();
127130
- printedScalar = false;
127998
+ sections.push({ key, value });
127131
127999
  } else if (typeof value === "object") {
127132
128000
  if (value?.constructor?.name === "BigNumber") {
127133
- console.log(`${import_chalk.default.yellow.bold(key)} : ${value}`);
127134
- printedScalar = true;
128001
+ scalarEntries.push([key, String(value)]);
127135
128002
  } else {
127136
128003
  const tableRow = toJsonObject(value) ?? {};
127137
128004
  if (Object.keys(tableRow).length === 0) continue;
127138
- console.log();
127139
- console.log(`${import_chalk.default.yellow.bold.underline(key)}`);
127140
- drawTable([tableRow]);
127141
- console.log();
127142
- printedScalar = false;
128005
+ sections.push({ key, value: tableRow });
127143
128006
  }
127144
128007
  } else {
127145
- console.log(`${import_chalk.default.yellow.bold(key)} : ${value}`);
127146
- printedScalar = true;
128008
+ scalarEntries.push([key, formatKeyValue(key, value)]);
127147
128009
  }
127148
128010
  }
128011
+ let hasOutput = false;
128012
+ if (scalarEntries.length > 0) {
128013
+ drawKeyValueEntries(scalarEntries);
128014
+ hasOutput = true;
128015
+ }
128016
+ for (const section of sections) {
128017
+ if (hasOutput) {
128018
+ printSpacerLine();
128019
+ }
128020
+ if (Array.isArray(section.value)) {
128021
+ const sectionTitle = typeof section.value[0] === "object" ? `${section.key} (${section.value.length})` : section.key;
128022
+ console.log(`${import_chalk2.default.yellow.bold.underline(sectionTitle)}`);
128023
+ if (typeof section.value[0] === "object") {
128024
+ drawTable(section.value, { indent: " ", sectionName: section.key });
128025
+ } else {
128026
+ drawScalarArray(section.value, { indent: " " });
128027
+ }
128028
+ } else {
128029
+ console.log(`${import_chalk2.default.yellow.bold.underline(section.key)}`);
128030
+ drawTable([section.value], {
128031
+ indent: " ",
128032
+ sectionName: section.key
128033
+ });
128034
+ }
128035
+ hasOutput = true;
128036
+ }
127149
128037
  });
127150
128038
  };
127151
128039
  var MAX_COL_WIDTH = 40;
128040
+ var MAX_COLUMNS = 6;
127152
128041
  var formatCellValue = (value) => {
127153
128042
  if (value == null) return "-";
128043
+ if (!cliConfig.showSecrets && typeof value === "string" && value.includes(HIDDEN_VALUE)) {
128044
+ renderedRedactionApplied = true;
128045
+ }
127154
128046
  if (Array.isArray(value)) {
127155
128047
  if (value.length === 0) return "[]";
128048
+ if (value.every(
128049
+ (item) => item == null || typeof item === "string" || typeof item === "number" || typeof item === "boolean"
128050
+ )) {
128051
+ const joinedValue = value.map((item) => String(item)).join(", ");
128052
+ if (joinedValue.length <= MAX_COL_WIDTH) {
128053
+ return joinedValue;
128054
+ }
128055
+ }
127156
128056
  return `[${value.length} items]`;
127157
128057
  }
127158
128058
  if (typeof value === "object") {
@@ -127167,7 +128067,110 @@ var formatCellValue = (value) => {
127167
128067
  }
127168
128068
  return str;
127169
128069
  };
127170
- var drawTable = (data) => {
128070
+ var formatKeyValue = (key, value) => {
128071
+ if (key === "status" && typeof value === "boolean") {
128072
+ return value ? "active" : "inactive";
128073
+ }
128074
+ return String(value);
128075
+ };
128076
+ var toScalarEntries = (row) => {
128077
+ const entries = [];
128078
+ for (const key of Object.keys(row)) {
128079
+ if (isNormalViewHiddenKey(key)) continue;
128080
+ const value = row[key];
128081
+ if (typeof value === "function") continue;
128082
+ if (value == null) continue;
128083
+ if (value?.constructor?.name === "BigNumber") {
128084
+ entries.push([key, String(value)]);
128085
+ continue;
128086
+ }
128087
+ if (typeof value === "object") continue;
128088
+ if (typeof value === "string" && value.trim() === "") continue;
128089
+ entries.push([key, formatKeyValue(key, value)]);
128090
+ }
128091
+ return entries;
128092
+ };
128093
+ var toDisplayEntries = (row) => {
128094
+ const entries = [];
128095
+ for (const key of Object.keys(row)) {
128096
+ if (isNormalViewHiddenKey(key)) continue;
128097
+ const value = row[key];
128098
+ if (typeof value === "function") continue;
128099
+ if (value == null) continue;
128100
+ if (typeof value === "string" && value.trim() === "") continue;
128101
+ entries.push([key, formatCellValue(value)]);
128102
+ }
128103
+ return entries;
128104
+ };
128105
+ var drawScalarArray = (values, options = {}) => {
128106
+ if (values.length === 0) {
128107
+ console.log(`${options.indent ?? ""}[]`);
128108
+ return;
128109
+ }
128110
+ const indent = options.indent ?? "";
128111
+ const displayValues = values.map((value) => formatCellValue(value));
128112
+ const joinedValues = displayValues.join(", ");
128113
+ if (joinedValues.length <= 80) {
128114
+ console.log(`${indent}${joinedValues}`);
128115
+ return;
128116
+ }
128117
+ displayValues.forEach((value, idx) => {
128118
+ console.log(`${indent}[${idx + 1}] ${value}`);
128119
+ });
128120
+ };
128121
+ var drawKeyValueEntries = (entries, options = {}) => {
128122
+ if (entries.length === 0) return;
128123
+ const indent = options.indent ?? "";
128124
+ const maxKeyLen = Math.max(...entries.map(([key]) => key.length));
128125
+ for (const [key, value] of entries) {
128126
+ const paddedKey = key.padEnd(maxKeyLen);
128127
+ if (!cliConfig.showSecrets && value.includes(HIDDEN_VALUE)) {
128128
+ renderedRedactionApplied = true;
128129
+ }
128130
+ console.log(`${indent}${import_chalk2.default.yellow.bold(paddedKey)} ${value}`);
128131
+ }
128132
+ };
128133
+ var drawNamedObjectCollection = (rows, options = {}) => {
128134
+ if (renderStructuredCollection(options.sectionName, rows, options)) {
128135
+ return true;
128136
+ }
128137
+ const scalarEntries = rows.map((row) => toScalarEntries(row));
128138
+ const flatScalarEntries = scalarEntries.flat();
128139
+ if (flatScalarEntries.length > 0) {
128140
+ scalarEntries.forEach((entries, idx) => {
128141
+ if (idx > 0) {
128142
+ console.log();
128143
+ }
128144
+ if (rows.length > 1) {
128145
+ const indent = options.indent ?? "";
128146
+ console.log(`${indent}${import_chalk2.default.cyan.bold(`[${idx + 1}]`)}`);
128147
+ }
128148
+ drawKeyValueEntries(entries, {
128149
+ indent: rows.length > 1 ? `${options.indent ?? ""} ` : options.indent
128150
+ });
128151
+ });
128152
+ return true;
128153
+ }
128154
+ const displayEntries = rows.map((row) => toDisplayEntries(row));
128155
+ const flatDisplayEntries = displayEntries.flat();
128156
+ if (flatDisplayEntries.length === 0) {
128157
+ return false;
128158
+ }
128159
+ displayEntries.forEach((entries, idx) => {
128160
+ if (idx > 0) {
128161
+ console.log();
128162
+ }
128163
+ if (rows.length > 1) {
128164
+ const indent = options.indent ?? "";
128165
+ console.log(`${indent}${import_chalk2.default.cyan.bold(`[${idx + 1}]`)}`);
128166
+ }
128167
+ drawKeyValueEntries(entries, {
128168
+ indent: rows.length > 1 ? `${options.indent ?? ""} ` : options.indent
128169
+ });
128170
+ });
128171
+ return true;
128172
+ };
128173
+ var drawTable = (data, options = {}) => {
127171
128174
  withRender(() => {
127172
128175
  if (data.length == 0) {
127173
128176
  console.log("[]");
@@ -127175,8 +128178,14 @@ var drawTable = (data) => {
127175
128178
  }
127176
128179
  const rows = applyDisplayFilter(
127177
128180
  data.map((item) => {
127178
- const maskedItem = maskSensitiveData(item);
127179
- return toJsonObject(maskedItem) ?? {};
128181
+ const maskedItem = maskSensitiveData(item, void 0, false);
128182
+ const row = toJsonObject(maskedItem) ?? {};
128183
+ const visibleRow = {};
128184
+ for (const key of Object.keys(row)) {
128185
+ if (isNormalViewHiddenKey(key)) continue;
128186
+ visibleRow[key] = row[key];
128187
+ }
128188
+ return visibleRow;
127180
128189
  })
127181
128190
  );
127182
128191
  const obj = rows.reduce((res, item) => ({ ...res, ...item }), {});
@@ -127185,42 +128194,14 @@ var drawTable = (data) => {
127185
128194
  drawJSON(data);
127186
128195
  return;
127187
128196
  }
127188
- const maxColumns = 6;
127189
- if (allKeys.length > maxColumns) {
127190
- const rowEntries = rows.map((row) => {
127191
- const entries = [];
127192
- for (const key of Object.keys(row)) {
127193
- const value = row[key];
127194
- if (typeof value === "function") continue;
127195
- if (value == null) continue;
127196
- if (value?.constructor?.name === "BigNumber") {
127197
- entries.push([key, String(value)]);
127198
- continue;
127199
- }
127200
- if (typeof value === "object") continue;
127201
- if (typeof value === "string" && value.trim() === "") continue;
127202
- entries.push([key, String(value)]);
127203
- }
127204
- return entries;
127205
- });
127206
- const flatEntries = rowEntries.flat();
127207
- if (flatEntries.length === 0) {
128197
+ if (allKeys.length > MAX_COLUMNS) {
128198
+ if (drawNamedObjectCollection(rows, options)) {
128199
+ return;
128200
+ }
128201
+ if (rows.every((row) => toScalarEntries(row).length === 0)) {
127208
128202
  drawJSON(data);
127209
128203
  return;
127210
128204
  }
127211
- const maxKeyLen = Math.max(...flatEntries.map(([key]) => key.length));
127212
- const separatorLen = Math.min(
127213
- maxKeyLen + 2 + MAX_COL_WIDTH,
127214
- process.stdout.columns || 80
127215
- );
127216
- rowEntries.forEach((entries, idx) => {
127217
- if (idx > 0) console.log(import_chalk.default.cyan("\u2500".repeat(separatorLen)));
127218
- for (const [key, value] of entries) {
127219
- const paddedKey = key.padEnd(maxKeyLen);
127220
- console.log(`${import_chalk.default.yellow.bold(paddedKey)} ${value}`);
127221
- }
127222
- });
127223
- return;
127224
128205
  }
127225
128206
  const columns = allKeys;
127226
128207
  const def = allKeys.reduce((result, key) => {
@@ -127229,7 +128210,7 @@ var drawTable = (data) => {
127229
128210
  }, {});
127230
128211
  const normalizedData = rows.map((item) => ({ ...def, ...item }));
127231
128212
  const table = new import_cli_table3.default({
127232
- head: columns.map((c) => import_chalk.default.cyan.italic.bold(c)),
128213
+ head: columns.map((c) => import_chalk2.default.cyan.italic.bold(c)),
127233
128214
  colWidths: columns.map(() => null),
127234
128215
  wordWrap: false,
127235
128216
  chars: {
@@ -127243,11 +128224,11 @@ var drawTable = (data) => {
127243
128224
  "bottom-right": " ",
127244
128225
  left: " ",
127245
128226
  "left-mid": " ",
127246
- mid: import_chalk.default.cyan("\u2500"),
127247
- "mid-mid": import_chalk.default.cyan("\u253C"),
128227
+ mid: import_chalk2.default.cyan("\u2500"),
128228
+ "mid-mid": import_chalk2.default.cyan("\u253C"),
127248
128229
  right: " ",
127249
128230
  "right-mid": " ",
127250
- middle: import_chalk.default.cyan("\u2502")
128231
+ middle: import_chalk2.default.cyan("\u2502")
127251
128232
  }
127252
128233
  });
127253
128234
  normalizedData.forEach((row) => {
@@ -127347,23 +128328,23 @@ var parseBool = (value) => {
127347
128328
  throw new InvalidArgumentError("Not a boolean.");
127348
128329
  };
127349
128330
  var log = (message) => {
127350
- console.log(`${import_chalk.default.cyan.bold("\u2139 Info:")} ${import_chalk.default.cyan(message ?? "")}`);
128331
+ console.log(`${import_chalk2.default.cyan.bold("\u2139 Info:")} ${import_chalk2.default.cyan(message ?? "")}`);
127351
128332
  };
127352
128333
  var warn = (message) => {
127353
128334
  console.log(
127354
- `${import_chalk.default.yellow.bold("\u2139 Warning:")} ${import_chalk.default.yellow(message ?? "")}`
128335
+ `${import_chalk2.default.yellow.bold("\u2139 Warning:")} ${import_chalk2.default.yellow(message ?? "")}`
127355
128336
  );
127356
128337
  };
127357
128338
  var hint = (message) => {
127358
- console.log(`${import_chalk.default.cyan.bold("\u2665 Hint:")} ${import_chalk.default.cyan(message ?? "")}`);
128339
+ console.log(`${import_chalk2.default.cyan.bold("\u2665 Hint:")} ${import_chalk2.default.cyan(message ?? "")}`);
127359
128340
  };
127360
128341
  var success2 = (message) => {
127361
128342
  console.log(
127362
- `${import_chalk.default.green.bold("\u2713 Success:")} ${import_chalk.default.green(message ?? "")}`
128343
+ `${import_chalk2.default.green.bold("\u2713 Success:")} ${import_chalk2.default.green(message ?? "")}`
127363
128344
  );
127364
128345
  };
127365
128346
  var error48 = (message) => {
127366
- console.error(`${import_chalk.default.red.bold("\u2717 Error:")} ${import_chalk.default.red(message ?? "")}`);
128347
+ console.error(`${import_chalk2.default.red.bold("\u2717 Error:")} ${import_chalk2.default.red(message ?? "")}`);
127367
128348
  };
127368
128349
  var logo = SDK_LOGO;
127369
128350
  var commandDescriptions = {
@@ -127397,7 +128378,7 @@ var commandDescriptions = {
127397
128378
  migrations: `The migrations command allows you to migrate data between services.`,
127398
128379
  vcs: `The vcs command allows you to interact with VCS providers and manage your code repositories.`,
127399
128380
  webhooks: `The webhooks command allows you to manage your project webhooks.`,
127400
- main: import_chalk.default.redBright(`${logo}${description}`)
128381
+ main: import_chalk2.default.redBright(`${logo}${description}`)
127401
128382
  };
127402
128383
 
127403
128384
  // cli.ts
@@ -127488,7 +128469,7 @@ var ID2 = class _ID {
127488
128469
  var id_default2 = ID2;
127489
128470
 
127490
128471
  // lib/questions.ts
127491
- var import_chalk2 = __toESM(require_source(), 1);
128472
+ var import_chalk3 = __toESM(require_source(), 1);
127492
128473
 
127493
128474
  // lib/validations.ts
127494
128475
  var validateRequired = (resource, value) => {
@@ -127853,17 +128834,17 @@ var questionsPullResources = [
127853
128834
  name: "resource",
127854
128835
  message: "Which resources would you like to pull?",
127855
128836
  choices: [
127856
- { name: `Settings ${import_chalk2.default.blackBright(`(Project)`)}`, value: "settings" },
128837
+ { name: `Settings ${import_chalk3.default.blackBright(`(Project)`)}`, value: "settings" },
127857
128838
  {
127858
- name: `Functions ${import_chalk2.default.blackBright(`(Deployment)`)}`,
128839
+ name: `Functions ${import_chalk3.default.blackBright(`(Deployment)`)}`,
127859
128840
  value: "functions"
127860
128841
  },
127861
- { name: `Tables ${import_chalk2.default.blackBright(`(TablesDB)`)}`, value: "tables" },
127862
- { name: `Buckets ${import_chalk2.default.blackBright(`(Storage)`)}`, value: "buckets" },
127863
- { name: `Teams ${import_chalk2.default.blackBright(`(Auth)`)}`, value: "teams" },
127864
- { name: `Topics ${import_chalk2.default.blackBright(`(Messaging)`)}`, value: "messages" },
128842
+ { name: `Tables ${import_chalk3.default.blackBright(`(TablesDB)`)}`, value: "tables" },
128843
+ { name: `Buckets ${import_chalk3.default.blackBright(`(Storage)`)}`, value: "buckets" },
128844
+ { name: `Teams ${import_chalk3.default.blackBright(`(Auth)`)}`, value: "teams" },
128845
+ { name: `Topics ${import_chalk3.default.blackBright(`(Messaging)`)}`, value: "messages" },
127865
128846
  {
127866
- name: `Collections ${import_chalk2.default.blackBright(`(Legacy Databases)`)}`,
128847
+ name: `Collections ${import_chalk3.default.blackBright(`(Legacy Databases)`)}`,
127867
128848
  value: "collections"
127868
128849
  }
127869
128850
  ]
@@ -127908,6 +128889,14 @@ var questionsPushFunctionsCode = [
127908
128889
  message: "Do you want to create a deployment for your functions?"
127909
128890
  }
127910
128891
  ];
128892
+ var questionsPushFunctionsActivate = [
128893
+ {
128894
+ type: "confirm",
128895
+ name: "activate",
128896
+ message: "Do you want to activate the deployment after it is ready?",
128897
+ default: true
128898
+ }
128899
+ ];
127911
128900
  var questionsPullSites = [
127912
128901
  {
127913
128902
  type: "checkbox",
@@ -128270,7 +129259,7 @@ var questionsLogin = [
128270
129259
  current: current === session.id,
128271
129260
  value: session.id,
128272
129261
  short: `${session.email} (${session.endpoint})`,
128273
- name: `${session.email.padEnd(longestEmail)} ${current === session.id ? import_chalk2.default.green.bold("current") : " ".repeat(6)} ${session.endpoint}`
129262
+ name: `${session.email.padEnd(longestEmail)} ${current === session.id ? import_chalk3.default.green.bold("current") : " ".repeat(6)} ${session.endpoint}`
128274
129263
  });
128275
129264
  }
128276
129265
  });
@@ -128324,7 +129313,7 @@ var questionsLogout = [
128324
129313
  data.push({
128325
129314
  current: current === session.id,
128326
129315
  value: session.id,
128327
- name: `${session.email.padEnd(longestEmail)} ${current === session.id ? import_chalk2.default.green.bold("current") : " ".repeat(6)} ${session.endpoint}`
129316
+ name: `${session.email.padEnd(longestEmail)} ${current === session.id ? import_chalk3.default.green.bold("current") : " ".repeat(6)} ${session.endpoint}`
128328
129317
  });
128329
129318
  }
128330
129319
  });
@@ -128338,17 +129327,17 @@ var questionsPushResources = [
128338
129327
  name: "resource",
128339
129328
  message: "Which resources would you like to push?",
128340
129329
  choices: [
128341
- { name: `Settings ${import_chalk2.default.blackBright(`(Project)`)}`, value: "settings" },
129330
+ { name: `Settings ${import_chalk3.default.blackBright(`(Project)`)}`, value: "settings" },
128342
129331
  {
128343
- name: `Functions ${import_chalk2.default.blackBright(`(Deployment)`)}`,
129332
+ name: `Functions ${import_chalk3.default.blackBright(`(Deployment)`)}`,
128344
129333
  value: "functions"
128345
129334
  },
128346
- { name: `Tables ${import_chalk2.default.blackBright(`(TablesDB)`)}`, value: "tables" },
128347
- { name: `Buckets ${import_chalk2.default.blackBright(`(Storage)`)}`, value: "buckets" },
128348
- { name: `Teams ${import_chalk2.default.blackBright(`(Auth)`)}`, value: "teams" },
128349
- { name: `Topics ${import_chalk2.default.blackBright(`(Messaging)`)}`, value: "messages" },
129335
+ { name: `Tables ${import_chalk3.default.blackBright(`(TablesDB)`)}`, value: "tables" },
129336
+ { name: `Buckets ${import_chalk3.default.blackBright(`(Storage)`)}`, value: "buckets" },
129337
+ { name: `Teams ${import_chalk3.default.blackBright(`(Auth)`)}`, value: "teams" },
129338
+ { name: `Topics ${import_chalk3.default.blackBright(`(Messaging)`)}`, value: "messages" },
128350
129339
  {
128351
- name: `Collections ${import_chalk2.default.blackBright(`(Legacy Databases)`)}`,
129340
+ name: `Collections ${import_chalk3.default.blackBright(`(Legacy Databases)`)}`,
128352
129341
  value: "collections"
128353
129342
  }
128354
129343
  ]
@@ -128674,7 +129663,7 @@ var questionsCreateSite = [
128674
129663
  // lib/client.ts
128675
129664
  var import_undici = __toESM(require_undici(), 1);
128676
129665
  import os5 from "os";
128677
- var import_chalk3 = __toESM(require_source(), 1);
129666
+ var import_chalk4 = __toESM(require_source(), 1);
128678
129667
  var Client3 = class _Client {
128679
129668
  endpoint;
128680
129669
  headers;
@@ -128859,7 +129848,7 @@ var Client3 = class _Client {
128859
129848
  }
128860
129849
  if (path16 !== "/account" && json3.code === 401 && json3.type === "user_more_factors_required") {
128861
129850
  console.log(
128862
- `${import_chalk3.default.cyan.bold("\u2139 Info")} ${import_chalk3.default.cyan("Unusable account found, removing...")}`
129851
+ `${import_chalk4.default.cyan.bold("\u2139 Info")} ${import_chalk4.default.cyan("Unusable account found, removing...")}`
128863
129852
  );
128864
129853
  const current = globalConfig2.getCurrentSession();
128865
129854
  globalConfig2.setCurrentSession("");
@@ -129331,7 +130320,7 @@ import childProcess2 from "child_process";
129331
130320
  var import_inquirer4 = __toESM(require_inquirer(), 1);
129332
130321
 
129333
130322
  // lib/commands/pull.ts
129334
- var import_chalk5 = __toESM(require_source(), 1);
130323
+ var import_chalk6 = __toESM(require_source(), 1);
129335
130324
  import fs5 from "fs";
129336
130325
  import path3 from "path";
129337
130326
  var import_inquirer3 = __toESM(require_inquirer(), 1);
@@ -132257,7 +133246,9 @@ function listDeployableFiles(dirPath, extraIgnoreRules = []) {
132257
133246
  const normalizePath = (value) => value.split(path2.sep).join("/");
132258
133247
  const createMatcher = (baseDir, rules) => {
132259
133248
  const ignorer = ignore();
132260
- ignorer.add(rules);
133249
+ for (const rule of rules) {
133250
+ ignorer.add(rule);
133251
+ }
132261
133252
  return {
132262
133253
  baseDir,
132263
133254
  ignorer
@@ -132466,7 +133457,7 @@ async function pushDeployment(params) {
132466
133457
  }
132467
133458
 
132468
133459
  // lib/commands/utils/change-approval.ts
132469
- var import_chalk4 = __toESM(require_source(), 1);
133460
+ var import_chalk5 = __toESM(require_source(), 1);
132470
133461
  var import_inquirer2 = __toESM(require_inquirer(), 1);
132471
133462
  var isEmpty = (value) => value === null || value === void 0 || typeof value === "string" && value.trim().length === 0 || Array.isArray(value) && value.length === 0;
132472
133463
  var getConfirmation = async () => {
@@ -132509,8 +133500,8 @@ var getObjectChanges = (remote, local, index, what) => {
132509
133500
  changes.push({
132510
133501
  group: what,
132511
133502
  setting: service,
132512
- remote: import_chalk4.default.red(String(status ?? "")),
132513
- local: import_chalk4.default.green(String(localValue ?? ""))
133503
+ remote: import_chalk5.default.red(String(status ?? "")),
133504
+ local: import_chalk5.default.green(String(localValue ?? ""))
132514
133505
  });
132515
133506
  }
132516
133507
  }
@@ -132545,8 +133536,8 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
132545
133536
  changes.push({
132546
133537
  id: localResource["$id"],
132547
133538
  key,
132548
- remote: import_chalk4.default.red(value.join("\n")),
132549
- local: import_chalk4.default.green(
133539
+ remote: import_chalk5.default.red(value.join("\n")),
133540
+ local: import_chalk5.default.green(
132550
133541
  localValue.map((entry) => String(entry)).join("\n")
132551
133542
  )
132552
133543
  });
@@ -132555,8 +133546,8 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
132555
133546
  changes.push({
132556
133547
  id: localResource["$id"],
132557
133548
  key,
132558
- remote: import_chalk4.default.red(String(value ?? "")),
132559
- local: import_chalk4.default.green(String(localValue ?? ""))
133549
+ remote: import_chalk5.default.red(String(value ?? "")),
133550
+ local: import_chalk5.default.green(String(localValue ?? ""))
132560
133551
  });
132561
133552
  }
132562
133553
  }
@@ -132694,7 +133685,7 @@ var Pull = class {
132694
133685
  this.log("Pulling project settings ...");
132695
133686
  const projectsService = new Projects(this.consoleClient);
132696
133687
  const project2 = await projectsService.get({ projectId });
132697
- this.success(`Successfully pulled ${import_chalk5.default.bold("all")} project settings.`);
133688
+ this.success(`Successfully pulled ${import_chalk6.default.bold("all")} project settings.`);
132698
133689
  return {
132699
133690
  projectName: project2.name,
132700
133691
  settings: createSettingsObject(project2),
@@ -132722,7 +133713,7 @@ var Pull = class {
132722
133713
  });
132723
133714
  if (fetchResponse["functions"].length <= 0) {
132724
133715
  this.log("No functions found.");
132725
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} functions.`);
133716
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} functions.`);
132726
133717
  return [];
132727
133718
  }
132728
133719
  const { functions: allFunctions } = await paginate(
@@ -132735,8 +133726,8 @@ var Pull = class {
132735
133726
  }
132736
133727
  const result = [];
132737
133728
  for (const func of functions2) {
132738
- this.log(`Pulling function ${import_chalk5.default.bold(func.name)} ...`);
132739
- const funcPath = `functions/${func.name}`;
133729
+ this.log(`Pulling function ${import_chalk6.default.bold(func.name)} ...`);
133730
+ const funcPath = `functions/${getSafeDirectoryName(func.name, func.$id)}`;
132740
133731
  const absoluteFuncPath = path3.resolve(this.configDirectoryPath, funcPath);
132741
133732
  const holdingVars = func.vars || [];
132742
133733
  const functionConfig = {
@@ -132758,10 +133749,10 @@ var Pull = class {
132758
133749
  deploymentRetention: func.deploymentRetention
132759
133750
  };
132760
133751
  result.push(functionConfig);
132761
- if (!fs5.existsSync(absoluteFuncPath)) {
132762
- fs5.mkdirSync(absoluteFuncPath, { recursive: true });
132763
- }
132764
133752
  if (options.code !== false) {
133753
+ if (!fs5.existsSync(absoluteFuncPath)) {
133754
+ fs5.mkdirSync(absoluteFuncPath, { recursive: true });
133755
+ }
132765
133756
  await downloadDeploymentCode({
132766
133757
  resourceId: func["$id"],
132767
133758
  resourcePath: absoluteFuncPath,
@@ -132782,7 +133773,7 @@ var Pull = class {
132782
133773
  if (options.code === false) {
132783
133774
  this.warn("Source code download skipped.");
132784
133775
  }
132785
- this.success(`Successfully pulled ${import_chalk5.default.bold(result.length)} functions.`);
133776
+ this.success(`Successfully pulled ${import_chalk6.default.bold(result.length)} functions.`);
132786
133777
  return result;
132787
133778
  }
132788
133779
  /**
@@ -132806,7 +133797,7 @@ var Pull = class {
132806
133797
  });
132807
133798
  if (fetchResponse["sites"].length <= 0) {
132808
133799
  this.log("No sites found.");
132809
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} sites.`);
133800
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} sites.`);
132810
133801
  return [];
132811
133802
  }
132812
133803
  const { sites: fetchedSites } = await paginate(
@@ -132819,8 +133810,8 @@ var Pull = class {
132819
133810
  }
132820
133811
  const result = [];
132821
133812
  for (const site of sites2) {
132822
- this.log(`Pulling site ${import_chalk5.default.bold(site.name)} ...`);
132823
- const sitePath = `sites/${site.name}`;
133813
+ this.log(`Pulling site ${import_chalk6.default.bold(site.name)} ...`);
133814
+ const sitePath = `sites/${getSafeDirectoryName(site.name, site.$id)}`;
132824
133815
  const absoluteSitePath = path3.resolve(this.configDirectoryPath, sitePath);
132825
133816
  const holdingVars = site.vars || [];
132826
133817
  const siteConfig = {
@@ -132843,10 +133834,10 @@ var Pull = class {
132843
133834
  deploymentRetention: site.deploymentRetention
132844
133835
  };
132845
133836
  result.push(siteConfig);
132846
- if (!fs5.existsSync(absoluteSitePath)) {
132847
- fs5.mkdirSync(absoluteSitePath, { recursive: true });
132848
- }
132849
133837
  if (options.code !== false) {
133838
+ if (!fs5.existsSync(absoluteSitePath)) {
133839
+ fs5.mkdirSync(absoluteSitePath, { recursive: true });
133840
+ }
132850
133841
  await downloadDeploymentCode({
132851
133842
  resourceId: site["$id"],
132852
133843
  resourcePath: absoluteSitePath,
@@ -132867,7 +133858,7 @@ var Pull = class {
132867
133858
  if (options.code === false) {
132868
133859
  this.warn("Source code download skipped.");
132869
133860
  }
132870
- this.success(`Successfully pulled ${import_chalk5.default.bold(result.length)} sites.`);
133861
+ this.success(`Successfully pulled ${import_chalk6.default.bold(result.length)} sites.`);
132871
133862
  return result;
132872
133863
  }
132873
133864
  /**
@@ -132883,7 +133874,7 @@ var Pull = class {
132883
133874
  if (fetchResponse["databases"].length <= 0) {
132884
133875
  this.log("No collections found.");
132885
133876
  this.success(
132886
- `Successfully pulled ${import_chalk5.default.bold(0)} collections from ${import_chalk5.default.bold(0)} databases.`
133877
+ `Successfully pulled ${import_chalk6.default.bold(0)} collections from ${import_chalk6.default.bold(0)} databases.`
132887
133878
  );
132888
133879
  return { databases: [], collections: [] };
132889
133880
  }
@@ -132897,7 +133888,7 @@ var Pull = class {
132897
133888
  const allCollections = [];
132898
133889
  for (const database of databases2) {
132899
133890
  this.log(
132900
- `Pulling all collections from ${import_chalk5.default.bold(database.name)} database ...`
133891
+ `Pulling all collections from ${import_chalk6.default.bold(database.name)} database ...`
132901
133892
  );
132902
133893
  allDatabases.push(database);
132903
133894
  const { collections } = await paginate(
@@ -132918,7 +133909,7 @@ var Pull = class {
132918
133909
  }
132919
133910
  }
132920
133911
  this.success(
132921
- `Successfully pulled ${import_chalk5.default.bold(allCollections.length)} collections from ${import_chalk5.default.bold(allDatabases.length)} databases.`
133912
+ `Successfully pulled ${import_chalk6.default.bold(allCollections.length)} collections from ${import_chalk6.default.bold(allDatabases.length)} databases.`
132922
133913
  );
132923
133914
  return {
132924
133915
  databases: allDatabases,
@@ -132937,7 +133928,7 @@ var Pull = class {
132937
133928
  if (fetchResponse["databases"].length <= 0) {
132938
133929
  this.log("No tables found.");
132939
133930
  this.success(
132940
- `Successfully pulled ${import_chalk5.default.bold(0)} tables from ${import_chalk5.default.bold(0)} tableDBs.`
133931
+ `Successfully pulled ${import_chalk6.default.bold(0)} tables from ${import_chalk6.default.bold(0)} tableDBs.`
132941
133932
  );
132942
133933
  return { databases: [], tables: [] };
132943
133934
  }
@@ -132953,7 +133944,7 @@ var Pull = class {
132953
133944
  const allTables = [];
132954
133945
  for (const database of databases2) {
132955
133946
  this.log(
132956
- `Pulling all tables from ${import_chalk5.default.bold(database.name)} database ...`
133947
+ `Pulling all tables from ${import_chalk6.default.bold(database.name)} database ...`
132957
133948
  );
132958
133949
  allDatabases.push(filterBySchema(database, DatabaseSchema));
132959
133950
  const { tables } = await paginate(
@@ -132980,7 +133971,7 @@ var Pull = class {
132980
133971
  }
132981
133972
  }
132982
133973
  this.success(
132983
- `Successfully pulled ${import_chalk5.default.bold(allTables.length)} tables from ${import_chalk5.default.bold(allDatabases.length)} tableDBs.`
133974
+ `Successfully pulled ${import_chalk6.default.bold(allTables.length)} tables from ${import_chalk6.default.bold(allDatabases.length)} tableDBs.`
132984
133975
  );
132985
133976
  return {
132986
133977
  databases: allDatabases,
@@ -132998,7 +133989,7 @@ var Pull = class {
132998
133989
  });
132999
133990
  if (fetchResponse["buckets"].length <= 0) {
133000
133991
  this.log("No buckets found.");
133001
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} buckets.`);
133992
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} buckets.`);
133002
133993
  return [];
133003
133994
  }
133004
133995
  const { buckets } = await paginate(
@@ -133009,11 +134000,11 @@ var Pull = class {
133009
134000
  );
133010
134001
  const filteredBuckets = [];
133011
134002
  for (const bucket of buckets) {
133012
- this.log(`Pulling bucket ${import_chalk5.default.bold(bucket.name)} ...`);
134003
+ this.log(`Pulling bucket ${import_chalk6.default.bold(bucket.name)} ...`);
133013
134004
  filteredBuckets.push(filterBySchema(bucket, BucketSchema));
133014
134005
  }
133015
134006
  this.success(
133016
- `Successfully pulled ${import_chalk5.default.bold(filteredBuckets.length)} buckets.`
134007
+ `Successfully pulled ${import_chalk6.default.bold(filteredBuckets.length)} buckets.`
133017
134008
  );
133018
134009
  return filteredBuckets;
133019
134010
  }
@@ -133028,7 +134019,7 @@ var Pull = class {
133028
134019
  });
133029
134020
  if (fetchResponse["teams"].length <= 0) {
133030
134021
  this.log("No teams found.");
133031
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} teams.`);
134022
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} teams.`);
133032
134023
  return [];
133033
134024
  }
133034
134025
  const { teams: teams2 } = await paginate(
@@ -133038,9 +134029,9 @@ var Pull = class {
133038
134029
  "teams"
133039
134030
  );
133040
134031
  for (const team of teams2) {
133041
- this.log(`Pulling team ${import_chalk5.default.bold(team.name)} ...`);
134032
+ this.log(`Pulling team ${import_chalk6.default.bold(team.name)} ...`);
133042
134033
  }
133043
- this.success(`Successfully pulled ${import_chalk5.default.bold(teams2.length)} teams.`);
134034
+ this.success(`Successfully pulled ${import_chalk6.default.bold(teams2.length)} teams.`);
133044
134035
  return teams2;
133045
134036
  }
133046
134037
  /**
@@ -133054,7 +134045,7 @@ var Pull = class {
133054
134045
  });
133055
134046
  if (fetchResponse["topics"].length <= 0) {
133056
134047
  this.log("No topics found.");
133057
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} topics.`);
134048
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} topics.`);
133058
134049
  return [];
133059
134050
  }
133060
134051
  const { topics } = await paginate(
@@ -133065,11 +134056,11 @@ var Pull = class {
133065
134056
  );
133066
134057
  const filteredTopics = [];
133067
134058
  for (const topic of topics) {
133068
- this.log(`Pulling topic ${import_chalk5.default.bold(topic.name)} ...`);
134059
+ this.log(`Pulling topic ${import_chalk6.default.bold(topic.name)} ...`);
133069
134060
  filteredTopics.push(filterBySchema(topic, TopicSchema));
133070
134061
  }
133071
134062
  this.success(
133072
- `Successfully pulled ${import_chalk5.default.bold(filteredTopics.length)} topics.`
134063
+ `Successfully pulled ${import_chalk6.default.bold(filteredTopics.length)} topics.`
133073
134064
  );
133074
134065
  return filteredTopics;
133075
134066
  }
@@ -133126,7 +134117,7 @@ var pullFunctions = async ({
133126
134117
  const fetchResponse = await functionsService.list([Query.limit(1)]);
133127
134118
  if (fetchResponse["functions"].length <= 0) {
133128
134119
  log("No functions found.");
133129
- success2(`Successfully pulled ${import_chalk5.default.bold(0)} functions.`);
134120
+ success2(`Successfully pulled ${import_chalk6.default.bold(0)} functions.`);
133130
134121
  return;
133131
134122
  }
133132
134123
  const functionsToCheck = cliConfig.all ? (await paginate(
@@ -133135,7 +134126,7 @@ var pullFunctions = async ({
133135
134126
  100,
133136
134127
  "functions"
133137
134128
  )).functions : (await import_inquirer3.default.prompt(questionsPullFunctions)).functions;
133138
- let allowCodePull = cliConfig.force === true ? true : null;
134129
+ let allowCodePull = null;
133139
134130
  if (code !== false && allowCodePull === null) {
133140
134131
  const codeAnswer = await import_inquirer3.default.prompt(questionsPullFunctionsCode);
133141
134132
  allowCodePull = codeAnswer.override;
@@ -133164,7 +134155,7 @@ var pullSites = async ({
133164
134155
  });
133165
134156
  if (fetchResponse["sites"].length <= 0) {
133166
134157
  log("No sites found.");
133167
- success2(`Successfully pulled ${import_chalk5.default.bold(0)} sites.`);
134158
+ success2(`Successfully pulled ${import_chalk6.default.bold(0)} sites.`);
133168
134159
  return;
133169
134160
  }
133170
134161
  const sitesToCheck = cliConfig.all ? (await paginate(
@@ -133173,7 +134164,7 @@ var pullSites = async ({
133173
134164
  100,
133174
134165
  "sites"
133175
134166
  )).sites : (await import_inquirer3.default.prompt(questionsPullSites)).sites;
133176
- let allowCodePull = cliConfig.force === true ? true : null;
134167
+ let allowCodePull = null;
133177
134168
  if (code !== false && allowCodePull === null) {
133178
134169
  const codeAnswer = await import_inquirer3.default.prompt(questionsPullSitesCode);
133179
134170
  allowCodePull = codeAnswer.override;
@@ -133301,11 +134292,11 @@ pull.command("all").description("Pull all resources").action(
133301
134292
  pull.command("settings").description("Pull your Appwrite project name, services and auth settings").action(actionRunner(pullSettings));
133302
134293
  pull.command("function").alias("functions").description("Pull your Appwrite cloud function").option("--no-code", "Don't pull the function's code").option(
133303
134294
  "--with-variables",
133304
- `Pull function variables. ${import_chalk5.default.red("recommend for testing purposes only")}`
134295
+ `Pull function variables. ${import_chalk6.default.red("recommend for testing purposes only")}`
133305
134296
  ).action(actionRunner(pullFunctions));
133306
134297
  pull.command("site").alias("sites").description("Pull your Appwrite site").option("--no-code", "Don't pull the site's code").option(
133307
134298
  "--with-variables",
133308
- `Pull site variables. ${import_chalk5.default.red("recommend for testing purposes only")}`
134299
+ `Pull site variables. ${import_chalk6.default.red("recommend for testing purposes only")}`
133309
134300
  ).action(actionRunner(pullSites));
133310
134301
  pull.command("collection").alias("collections").description(
133311
134302
  "Pull your Appwrite collections (deprecated, please use 'pull tables' instead)"
@@ -133316,10 +134307,6 @@ pull.command("team").alias("teams").description("Pull your Appwrite teams").acti
133316
134307
  pull.command("topic").alias("topics").description("Pull your Appwrite messaging topics").action(actionRunner(pullMessagingTopic));
133317
134308
 
133318
134309
  // lib/commands/init.ts
133319
- var getSafeDirectoryName = (value, fallback) => {
133320
- const normalized = value.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
133321
- return normalized || fallback;
133322
- };
133323
134310
  var initResources = async () => {
133324
134311
  const actions = {
133325
134312
  function: initFunction,
@@ -133770,6 +134757,7 @@ Suggestion: It appears that git is not installed, try installing git then trying
133770
134757
  entrypoint: answers.runtime.entrypoint || "",
133771
134758
  commands: answers.runtime.commands || "",
133772
134759
  ignore: answers.runtime.ignore || null,
134760
+ deploymentRetention: 0,
133773
134761
  path: `functions/${functionDirectoryName}`
133774
134762
  };
133775
134763
  localConfig.addFunction(data);
@@ -135449,7 +136437,7 @@ var types = new Command("types").description("Generate types for your Appwrite p
135449
136437
  // lib/commands/run.ts
135450
136438
  var import_tail = __toESM(require_tail(), 1);
135451
136439
  var import_dotenv = __toESM(require_main2(), 1);
135452
- var import_chalk7 = __toESM(require_source(), 1);
136440
+ var import_chalk8 = __toESM(require_source(), 1);
135453
136441
  var import_ignore3 = __toESM(require_ignore(), 1);
135454
136442
  var import_chokidar = __toESM(require_chokidar(), 1);
135455
136443
  var import_inquirer5 = __toESM(require_inquirer(), 1);
@@ -135631,7 +136619,7 @@ var Queue = {
135631
136619
 
135632
136620
  // lib/emulation/docker.ts
135633
136621
  var import_ignore2 = __toESM(require_ignore(), 1);
135634
- var import_chalk6 = __toESM(require_source(), 1);
136622
+ var import_chalk7 = __toESM(require_source(), 1);
135635
136623
  import net2 from "net";
135636
136624
  import childProcess3 from "child_process";
135637
136625
  import path10 from "path";
@@ -135717,11 +136705,11 @@ async function dockerBuild(func, variables) {
135717
136705
  }
135718
136706
  });
135719
136707
  buildProcess.stdout.on("data", (data) => {
135720
- process.stdout.write(import_chalk6.default.blackBright(`${data}
136708
+ process.stdout.write(import_chalk7.default.blackBright(`${data}
135721
136709
  `));
135722
136710
  });
135723
136711
  buildProcess.stderr.on("data", (data) => {
135724
- process.stderr.write(import_chalk6.default.blackBright(`${data}
136712
+ process.stderr.write(import_chalk7.default.blackBright(`${data}
135725
136713
  `));
135726
136714
  });
135727
136715
  killInterval = setInterval(() => {
@@ -135824,10 +136812,10 @@ async function dockerStart(func, variables, port) {
135824
136812
  }
135825
136813
  });
135826
136814
  startProcess.stdout.on("data", (data) => {
135827
- process.stdout.write(import_chalk6.default.blackBright(data));
136815
+ process.stdout.write(import_chalk7.default.blackBright(data));
135828
136816
  });
135829
136817
  startProcess.stderr.on("data", (data) => {
135830
- process.stdout.write(import_chalk6.default.blackBright(data));
136818
+ process.stdout.write(import_chalk7.default.blackBright(data));
135831
136819
  });
135832
136820
  try {
135833
136821
  await waitUntilPortOpen(port);
@@ -136041,11 +137029,11 @@ var runFunction = async ({
136041
137029
  }
136042
137030
  await dockerPull(func);
136043
137031
  new import_tail.Tail(logsPath).on("line", function(data) {
136044
- process.stdout.write(import_chalk7.default.white(`${data}
137032
+ process.stdout.write(import_chalk8.default.white(`${data}
136045
137033
  `));
136046
137034
  });
136047
137035
  new import_tail.Tail(errorsPath).on("line", function(data) {
136048
- process.stdout.write(import_chalk7.default.white(`${data}
137036
+ process.stdout.write(import_chalk8.default.white(`${data}
136049
137037
  `));
136050
137038
  });
136051
137039
  if (reload) {
@@ -136174,7 +137162,7 @@ run.command("function").alias("functions").description("Run functions in the cur
136174
137162
 
136175
137163
  // lib/commands/push.ts
136176
137164
  var import_dotenv2 = __toESM(require_main2(), 1);
136177
- var import_chalk11 = __toESM(require_source(), 1);
137165
+ var import_chalk12 = __toESM(require_source(), 1);
136178
137166
  var import_inquirer7 = __toESM(require_inquirer(), 1);
136179
137167
  import fs14 from "fs";
136180
137168
  import path12 from "path";
@@ -136491,7 +137479,7 @@ function parseWithBetterErrors(schema, data, context, contextData) {
136491
137479
 
136492
137480
  // lib/spinner.ts
136493
137481
  var import_cli_progress = __toESM(require_cli_progress(), 1);
136494
- var import_chalk8 = __toESM(require_source(), 1);
137482
+ var import_chalk9 = __toESM(require_source(), 1);
136495
137483
  var SPINNER_ARC = "arc";
136496
137484
  var SPINNER_DOTS = "dots";
136497
137485
  var spinners = {
@@ -136524,22 +137512,22 @@ var Spinner = class _Spinner {
136524
137512
  static formatter(_options, _params, payload) {
136525
137513
  const status = payload.status.padEnd(12);
136526
137514
  const middle = `${payload.resource} (${payload.id})`.padEnd(40);
136527
- let prefix = import_chalk8.default.cyan(payload.prefix ?? "\u29D7");
136528
- let start = import_chalk8.default.cyan(status);
136529
- let end = import_chalk8.default.yellow(payload.end ?? "");
137515
+ let prefix = import_chalk9.default.cyan(payload.prefix ?? "\u29D7");
137516
+ let start = import_chalk9.default.cyan(status);
137517
+ let end = import_chalk9.default.yellow(payload.end ?? "");
136530
137518
  if (status.toLowerCase().trim() === "pushed") {
136531
- start = import_chalk8.default.greenBright.bold(status);
136532
- prefix = import_chalk8.default.greenBright.bold("\u2713");
137519
+ start = import_chalk9.default.greenBright.bold(status);
137520
+ prefix = import_chalk9.default.greenBright.bold("\u2713");
136533
137521
  end = "";
136534
137522
  } else if (status.toLowerCase().trim() === "deploying") {
136535
- start = import_chalk8.default.cyanBright.bold(status);
137523
+ start = import_chalk9.default.cyanBright.bold(status);
136536
137524
  } else if (status.toLowerCase().trim() === "deployed") {
136537
- start = import_chalk8.default.green.bold(status);
136538
- prefix = import_chalk8.default.green.bold("\u2713");
137525
+ start = import_chalk9.default.green.bold(status);
137526
+ prefix = import_chalk9.default.green.bold("\u2713");
136539
137527
  } else if (status.toLowerCase().trim() === "error") {
136540
- start = import_chalk8.default.red.bold(status);
136541
- prefix = import_chalk8.default.red.bold("\u2717");
136542
- end = import_chalk8.default.red(payload.errorMessage ?? "");
137528
+ start = import_chalk9.default.red.bold(status);
137529
+ prefix = import_chalk9.default.red.bold("\u2717");
137530
+ end = import_chalk9.default.red(payload.errorMessage ?? "");
136543
137531
  }
136544
137532
  return _Spinner.line(prefix, start, middle, end);
136545
137533
  }
@@ -136793,7 +137781,7 @@ var Pools = class {
136793
137781
  };
136794
137782
 
136795
137783
  // lib/commands/utils/attributes.ts
136796
- var import_chalk9 = __toESM(require_source(), 1);
137784
+ var import_chalk10 = __toESM(require_source(), 1);
136797
137785
  var import_inquirer6 = __toESM(require_inquirer(), 1);
136798
137786
  var changeableKeys = [
136799
137787
  "status",
@@ -136863,11 +137851,11 @@ var Attributes = class {
136863
137851
  if (Array.isArray(remote) && Array.isArray(local)) {
136864
137852
  if (JSON.stringify(remote) !== JSON.stringify(local)) {
136865
137853
  const bol = reason === "" ? "" : "\n";
136866
- reason += `${bol}${key} changed from ${import_chalk9.default.red(remote)} to ${import_chalk9.default.green(local)}`;
137854
+ reason += `${bol}${key} changed from ${import_chalk10.default.red(remote)} to ${import_chalk10.default.green(local)}`;
136867
137855
  }
136868
137856
  } else if (!this.isEqual(remote, local)) {
136869
137857
  const bol = reason === "" ? "" : "\n";
136870
- reason += `${bol}${key} changed from ${import_chalk9.default.red(remote)} to ${import_chalk9.default.green(local)}`;
137858
+ reason += `${bol}${key} changed from ${import_chalk10.default.red(remote)} to ${import_chalk10.default.green(local)}`;
136871
137859
  }
136872
137860
  return reason;
136873
137861
  };
@@ -136879,8 +137867,8 @@ var Attributes = class {
136879
137867
  if (local === void 0) {
136880
137868
  return void 0;
136881
137869
  }
136882
- const keyName = `${import_chalk9.default.yellow(local.key)} in ${collection.name} (${collection["$id"]})`;
136883
- const action = import_chalk9.default.cyan(recreating ? "recreating" : "changing");
137870
+ const keyName = `${import_chalk10.default.yellow(local.key)} in ${collection.name} (${collection["$id"]})`;
137871
+ const action = import_chalk10.default.cyan(recreating ? "recreating" : "changing");
136884
137872
  let reason = "";
136885
137873
  const attribute = recreating ? remote : local;
136886
137874
  for (const key of Object.keys(remote)) {
@@ -136906,10 +137894,10 @@ var Attributes = class {
136906
137894
  attributesContains = (attribute, attributes) => attributes.find((attr) => attr.key === attribute.key);
136907
137895
  generateChangesObject = (attribute, collection, isAdding) => {
136908
137896
  return {
136909
- key: `${import_chalk9.default.yellow(attribute.key)} in ${collection.name} (${collection["$id"]})`,
137897
+ key: `${import_chalk10.default.yellow(attribute.key)} in ${collection.name} (${collection["$id"]})`,
136910
137898
  attribute,
136911
137899
  reason: isAdding ? "Field isn't present on the remote server" : "Field isn't present on the appwrite.config.json file",
136912
- action: isAdding ? import_chalk9.default.green("adding") : import_chalk9.default.red("deleting")
137900
+ action: isAdding ? import_chalk10.default.green("adding") : import_chalk10.default.red("deleting")
136913
137901
  };
136914
137902
  };
136915
137903
  createAttribute = async (databaseId, collectionId, attribute) => {
@@ -137315,25 +138303,25 @@ var Attributes = class {
137315
138303
  if (!cliConfig.force) {
137316
138304
  if (deleting.length > 0 && !isIndex) {
137317
138305
  console.log(
137318
- `${import_chalk9.default.red("------------------------------------------------------")}`
138306
+ `${import_chalk10.default.red("------------------------------------------------------")}`
137319
138307
  );
137320
138308
  console.log(
137321
- `${import_chalk9.default.red("| WARNING: Attribute deletion may cause loss of data |")}`
138309
+ `${import_chalk10.default.red("| WARNING: Attribute deletion may cause loss of data |")}`
137322
138310
  );
137323
138311
  console.log(
137324
- `${import_chalk9.default.red("------------------------------------------------------")}`
138312
+ `${import_chalk10.default.red("------------------------------------------------------")}`
137325
138313
  );
137326
138314
  console.log();
137327
138315
  }
137328
138316
  if (conflicts.length > 0 && !isIndex) {
137329
138317
  console.log(
137330
- `${import_chalk9.default.red("--------------------------------------------------------")}`
138318
+ `${import_chalk10.default.red("--------------------------------------------------------")}`
137331
138319
  );
137332
138320
  console.log(
137333
- `${import_chalk9.default.red("| WARNING: Attribute recreation may cause loss of data |")}`
138321
+ `${import_chalk10.default.red("| WARNING: Attribute recreation may cause loss of data |")}`
137334
138322
  );
137335
138323
  console.log(
137336
- `${import_chalk9.default.red("--------------------------------------------------------")}`
138324
+ `${import_chalk10.default.red("--------------------------------------------------------")}`
137337
138325
  );
137338
138326
  console.log();
137339
138327
  }
@@ -137466,7 +138454,7 @@ var Attributes = class {
137466
138454
  };
137467
138455
 
137468
138456
  // lib/commands/utils/database-sync.ts
137469
- var import_chalk10 = __toESM(require_source(), 1);
138457
+ var import_chalk11 = __toESM(require_source(), 1);
137470
138458
  var isTablesDBResource = (value) => {
137471
138459
  if (!value || typeof value !== "object") {
137472
138460
  return false;
@@ -137511,7 +138499,7 @@ var checkAndApplyTablesDBChanges = async () => {
137511
138499
  toDelete.push(remoteDB);
137512
138500
  changes.push({
137513
138501
  id: remoteDB.$id,
137514
- action: import_chalk10.default.red("deleting"),
138502
+ action: import_chalk11.default.red("deleting"),
137515
138503
  key: "Database",
137516
138504
  remote: remoteDB.name,
137517
138505
  local: "(deleted locally)"
@@ -137524,7 +138512,7 @@ var checkAndApplyTablesDBChanges = async () => {
137524
138512
  toCreate.push(localDB);
137525
138513
  changes.push({
137526
138514
  id: localDB.$id,
137527
- action: import_chalk10.default.green("creating"),
138515
+ action: import_chalk11.default.green("creating"),
137528
138516
  key: "Database",
137529
138517
  remote: "(does not exist)",
137530
138518
  local: localDB.name
@@ -137535,7 +138523,7 @@ var checkAndApplyTablesDBChanges = async () => {
137535
138523
  hasChanges = true;
137536
138524
  changes.push({
137537
138525
  id: localDB.$id,
137538
- action: import_chalk10.default.yellow("updating"),
138526
+ action: import_chalk11.default.yellow("updating"),
137539
138527
  key: "Name",
137540
138528
  remote: remoteDB.name,
137541
138529
  local: localDB.name
@@ -137545,7 +138533,7 @@ var checkAndApplyTablesDBChanges = async () => {
137545
138533
  hasChanges = true;
137546
138534
  changes.push({
137547
138535
  id: localDB.$id,
137548
- action: import_chalk10.default.yellow("updating"),
138536
+ action: import_chalk11.default.yellow("updating"),
137549
138537
  key: "Enabled",
137550
138538
  remote: remoteDB.enabled,
137551
138539
  local: localDB.enabled
@@ -137563,13 +138551,13 @@ var checkAndApplyTablesDBChanges = async () => {
137563
138551
  drawTable(changes);
137564
138552
  if (toDelete.length > 0) {
137565
138553
  console.log(
137566
- `${import_chalk10.default.red("------------------------------------------------------------------")}`
138554
+ `${import_chalk11.default.red("------------------------------------------------------------------")}`
137567
138555
  );
137568
138556
  console.log(
137569
- `${import_chalk10.default.red("| WARNING: Database deletion will also delete all related tables |")}`
138557
+ `${import_chalk11.default.red("| WARNING: Database deletion will also delete all related tables |")}`
137570
138558
  );
137571
138559
  console.log(
137572
- `${import_chalk10.default.red("------------------------------------------------------------------")}`
138560
+ `${import_chalk11.default.red("------------------------------------------------------------------")}`
137573
138561
  );
137574
138562
  console.log();
137575
138563
  }
@@ -137701,7 +138689,7 @@ var Push = class {
137701
138689
  settings: config2.settings
137702
138690
  });
137703
138691
  this.success(
137704
- `Successfully pushed ${import_chalk11.default.bold("all")} project settings.`
138692
+ `Successfully pushed ${import_chalk12.default.bold("all")} project settings.`
137705
138693
  );
137706
138694
  results.settings = { success: true };
137707
138695
  } catch (e) {
@@ -137714,7 +138702,7 @@ var Push = class {
137714
138702
  this.log("Pushing buckets ...");
137715
138703
  const result = await this.pushBuckets(config2.buckets);
137716
138704
  this.success(
137717
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} buckets.`
138705
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} buckets.`
137718
138706
  );
137719
138707
  results.buckets = result;
137720
138708
  allErrors.push(...result.errors);
@@ -137728,7 +138716,7 @@ var Push = class {
137728
138716
  this.log("Pushing teams ...");
137729
138717
  const result = await this.pushTeams(config2.teams);
137730
138718
  this.success(
137731
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} teams.`
138719
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} teams.`
137732
138720
  );
137733
138721
  results.teams = result;
137734
138722
  allErrors.push(...result.errors);
@@ -137742,7 +138730,7 @@ var Push = class {
137742
138730
  this.log("Pushing topics ...");
137743
138731
  const result = await this.pushMessagingTopics(config2.topics);
137744
138732
  this.success(
137745
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} topics.`
138733
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} topics.`
137746
138734
  );
137747
138735
  results.topics = result;
137748
138736
  allErrors.push(...result.errors);
@@ -137759,7 +138747,7 @@ var Push = class {
137759
138747
  options.functionOptions
137760
138748
  );
137761
138749
  this.success(
137762
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} functions.`
138750
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} functions.`
137763
138751
  );
137764
138752
  results.functions = result;
137765
138753
  allErrors.push(...result.errors);
@@ -137781,7 +138769,7 @@ var Push = class {
137781
138769
  options.siteOptions
137782
138770
  );
137783
138771
  this.success(
137784
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} sites.`
138772
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} sites.`
137785
138773
  );
137786
138774
  results.sites = result;
137787
138775
  allErrors.push(...result.errors);
@@ -137803,7 +138791,7 @@ var Push = class {
137803
138791
  skipConfirmation: options.skipConfirmation
137804
138792
  });
137805
138793
  this.success(
137806
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} tables.`
138794
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} tables.`
137807
138795
  );
137808
138796
  results.tables = result;
137809
138797
  allErrors.push(...result.errors);
@@ -137830,7 +138818,7 @@ var Push = class {
137830
138818
  skipConfirmation: options.skipConfirmation
137831
138819
  });
137832
138820
  this.success(
137833
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} collections.`
138821
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} collections.`
137834
138822
  );
137835
138823
  results.collections = result;
137836
138824
  allErrors.push(...result.errors);
@@ -137946,14 +138934,14 @@ var Push = class {
137946
138934
  };
137947
138935
  for (const bucket of buckets) {
137948
138936
  try {
137949
- this.log(`Pushing bucket ${import_chalk11.default.bold(bucket["name"])} ...`);
138937
+ this.log(`Pushing bucket ${import_chalk12.default.bold(bucket["name"])} ...`);
137950
138938
  const storageService = await getStorageService(this.projectClient);
137951
138939
  try {
137952
138940
  const remoteBucket = await storageService.getBucket(bucket["$id"]);
137953
138941
  const hasChanges = hasBucketChanges(remoteBucket, bucket);
137954
138942
  if (!hasChanges) {
137955
138943
  this.log(
137956
- `No changes detected for bucket ${import_chalk11.default.bold(bucket["name"])}. Skipping.`
138944
+ `No changes detected for bucket ${import_chalk12.default.bold(bucket["name"])}. Skipping.`
137957
138945
  );
137958
138946
  continue;
137959
138947
  }
@@ -138004,7 +138992,7 @@ var Push = class {
138004
138992
  const errors = [];
138005
138993
  for (const team of teams2) {
138006
138994
  try {
138007
- this.log(`Pushing team ${import_chalk11.default.bold(team["name"])} ...`);
138995
+ this.log(`Pushing team ${import_chalk12.default.bold(team["name"])} ...`);
138008
138996
  const teamsService = await getTeamsService(this.projectClient);
138009
138997
  try {
138010
138998
  await teamsService.get(team["$id"]);
@@ -138038,7 +139026,7 @@ var Push = class {
138038
139026
  const errors = [];
138039
139027
  for (const topic of topics) {
138040
139028
  try {
138041
- this.log(`Pushing topic ${import_chalk11.default.bold(topic["name"])} ...`);
139029
+ this.log(`Pushing topic ${import_chalk12.default.bold(topic["name"])} ...`);
138042
139030
  const messagingService = await getMessagingService(this.projectClient);
138043
139031
  try {
138044
139032
  await messagingService.getTopic(topic["$id"]);
@@ -138071,12 +139059,18 @@ var Push = class {
138071
139059
  };
138072
139060
  }
138073
139061
  async pushFunctions(functions2, options = {}) {
138074
- const { async: asyncDeploy, code, withVariables } = options;
139062
+ const {
139063
+ async: asyncDeploy,
139064
+ code,
139065
+ activate = true,
139066
+ withVariables
139067
+ } = options;
138075
139068
  Spinner.start(false);
138076
139069
  let successfullyPushed = 0;
138077
139070
  let successfullyDeployed = 0;
138078
139071
  const failedDeployments = [];
138079
139072
  const errors = [];
139073
+ const deploymentLogs = [];
138080
139074
  await Promise.all(
138081
139075
  functions2.map(async (func) => {
138082
139076
  let response = {};
@@ -138248,6 +139242,7 @@ var Push = class {
138248
139242
  });
138249
139243
  return;
138250
139244
  }
139245
+ const deployStartTime = Date.now();
138251
139246
  try {
138252
139247
  updaterRow.update({ status: "Pushing" }).replaceSpinner(SPINNER_DOTS);
138253
139248
  const functionsServiceDeploy = await getFunctionsService(
@@ -138262,7 +139257,7 @@ var Push = class {
138262
139257
  entrypoint: func.entrypoint,
138263
139258
  commands: func.commands,
138264
139259
  code: codeFile,
138265
- activate: true
139260
+ activate
138266
139261
  });
138267
139262
  },
138268
139263
  pollForStatus: false
@@ -138314,6 +139309,19 @@ var Push = class {
138314
139309
  });
138315
139310
  const status = response["status"];
138316
139311
  if (status === "ready") {
139312
+ if (activate) {
139313
+ updaterRow.update({
139314
+ status: "Activating",
139315
+ end: "Setting active deployment..."
139316
+ });
139317
+ const functionsServiceActivate = await getFunctionsService(
139318
+ this.projectClient
139319
+ );
139320
+ await functionsServiceActivate.updateFunctionDeployment({
139321
+ functionId: func["$id"],
139322
+ deploymentId
139323
+ });
139324
+ }
138317
139325
  successfullyDeployed++;
138318
139326
  let url2 = "";
138319
139327
  const proxyServiceUrl = await getProxyService(
@@ -138330,7 +139338,23 @@ var Push = class {
138330
139338
  if (Number(res.total) === 1) {
138331
139339
  url2 = `https://${res.rules[0].domain}`;
138332
139340
  }
138333
- updaterRow.update({ status: "Deployed", end: url2 });
139341
+ const elapsed = ((Date.now() - deployStartTime) / 1e3).toFixed(
139342
+ 1
139343
+ );
139344
+ const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
139345
+ const projectId = localConfig.getProject().projectId;
139346
+ const consoleUrl = getFunctionDeploymentConsoleUrl(
139347
+ endpoint,
139348
+ projectId,
139349
+ func["$id"],
139350
+ deploymentId
139351
+ );
139352
+ updaterRow.stopSpinner();
139353
+ updaterRow.update({
139354
+ status: activate ? "Deployed" : "Built",
139355
+ end: ""
139356
+ });
139357
+ deploymentLogs.push({ url: url2, consoleUrl, elapsed });
138334
139358
  break;
138335
139359
  } else if (status === "failed") {
138336
139360
  failedDeployments.push({
@@ -138361,6 +139385,13 @@ var Push = class {
138361
139385
  })
138362
139386
  );
138363
139387
  Spinner.stop();
139388
+ for (const dl of deploymentLogs) {
139389
+ if (dl.url) {
139390
+ this.log(` ${import_chalk12.default.cyan("\u2192")} ${dl.url}`);
139391
+ }
139392
+ this.log(` ${import_chalk12.default.cyan("\u2192")} ${dl.consoleUrl}`);
139393
+ this.success(`Successfully deployed in ${import_chalk12.default.bold(dl.elapsed + "s")}`);
139394
+ }
138364
139395
  return {
138365
139396
  successfullyPushed,
138366
139397
  successfullyDeployed,
@@ -138380,6 +139411,7 @@ var Push = class {
138380
139411
  let successfullyDeployed = 0;
138381
139412
  const failedDeployments = [];
138382
139413
  const errors = [];
139414
+ const deploymentLogs = [];
138383
139415
  await Promise.all(
138384
139416
  sites2.map(async (site) => {
138385
139417
  let response = {};
@@ -138545,6 +139577,7 @@ var Push = class {
138545
139577
  });
138546
139578
  return;
138547
139579
  }
139580
+ const deployStartTime = Date.now();
138548
139581
  try {
138549
139582
  updaterRow.update({ status: "Pushing" }).replaceSpinner(SPINNER_DOTS);
138550
139583
  const sitesServiceDeploy = await getSitesService(this.projectClient);
@@ -138557,7 +139590,7 @@ var Push = class {
138557
139590
  buildCommand: site.buildCommand,
138558
139591
  outputDirectory: site.outputDirectory,
138559
139592
  code: codeFile,
138560
- activate: asyncDeploy ? activate : false
139593
+ activate
138561
139594
  });
138562
139595
  },
138563
139596
  pollForStatus: false
@@ -138638,10 +139671,23 @@ var Push = class {
138638
139671
  if (Number(res.total) === 1) {
138639
139672
  url2 = `https://${res.rules[0].domain}`;
138640
139673
  }
139674
+ const elapsed = ((Date.now() - deployStartTime) / 1e3).toFixed(
139675
+ 1
139676
+ );
139677
+ const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
139678
+ const projectId = localConfig.getProject().projectId;
139679
+ const consoleUrl = getSiteDeploymentConsoleUrl(
139680
+ endpoint,
139681
+ projectId,
139682
+ site["$id"],
139683
+ deploymentId
139684
+ );
139685
+ updaterRow.stopSpinner();
138641
139686
  updaterRow.update({
138642
139687
  status: activate ? "Deployed" : "Built",
138643
- end: url2
139688
+ end: ""
138644
139689
  });
139690
+ deploymentLogs.push({ url: url2, consoleUrl, elapsed });
138645
139691
  break;
138646
139692
  } else if (status === "failed") {
138647
139693
  failedDeployments.push({
@@ -138672,6 +139718,13 @@ var Push = class {
138672
139718
  })
138673
139719
  );
138674
139720
  Spinner.stop();
139721
+ for (const dl of deploymentLogs) {
139722
+ if (dl.url) {
139723
+ this.log(` ${import_chalk12.default.cyan("\u2192")} ${dl.url}`);
139724
+ }
139725
+ this.log(` ${import_chalk12.default.cyan("\u2192")} ${dl.consoleUrl}`);
139726
+ this.success(`Successfully deployed in ${import_chalk12.default.bold(dl.elapsed + "s")}`);
139727
+ }
138675
139728
  return {
138676
139729
  successfullyPushed,
138677
139730
  successfullyDeployed,
@@ -138764,7 +139817,7 @@ var Push = class {
138764
139817
  if (!hadChanges && columns.length <= 0 && indexes.length <= 0) {
138765
139818
  if (!tablesChanged.has(table["$id"])) {
138766
139819
  this.log(
138767
- `No changes detected for table ${import_chalk11.default.bold(table["name"])}. Skipping.`
139820
+ `No changes detected for table ${import_chalk12.default.bold(table["name"])}. Skipping.`
138768
139821
  );
138769
139822
  }
138770
139823
  continue;
@@ -138953,10 +140006,17 @@ var pushResources = async ({
138953
140006
  checkDeployConditions(localConfig);
138954
140007
  const functions2 = localConfig.getFunctions();
138955
140008
  let allowFunctionsCodePush = cliConfig.force === true ? true : null;
140009
+ let activateFunctionsDeployment = cliConfig.force === true ? true : void 0;
138956
140010
  if (functions2.length > 0 && allowFunctionsCodePush === null) {
138957
140011
  const codeAnswer = await import_inquirer7.default.prompt(questionsPushFunctionsCode);
138958
140012
  allowFunctionsCodePush = codeAnswer.override;
138959
140013
  }
140014
+ if (functions2.length > 0 && allowFunctionsCodePush === true && activateFunctionsDeployment === void 0) {
140015
+ const activateAnswer = await import_inquirer7.default.prompt(
140016
+ questionsPushFunctionsActivate
140017
+ );
140018
+ activateFunctionsDeployment = activateAnswer.activate;
140019
+ }
138960
140020
  const sites2 = localConfig.getSites();
138961
140021
  let allowSitesCodePush = cliConfig.force === true ? true : null;
138962
140022
  let activateSitesDeployment = cliConfig.force === true ? true : void 0;
@@ -138997,6 +140057,7 @@ var pushResources = async ({
138997
140057
  skipDeprecated,
138998
140058
  functionOptions: {
138999
140059
  code: allowFunctionsCodePush === true,
140060
+ activate: activateFunctionsDeployment ?? true,
139000
140061
  withVariables: false
139001
140062
  },
139002
140063
  siteOptions: {
@@ -139076,7 +140137,7 @@ var pushSettings = async () => {
139076
140137
  projectName: config2.projectName,
139077
140138
  settings: config2.projectSettings
139078
140139
  });
139079
- success2(`Successfully pushed ${import_chalk11.default.bold("all")} project settings.`);
140140
+ success2(`Successfully pushed ${import_chalk12.default.bold("all")} project settings.`);
139080
140141
  } catch (e) {
139081
140142
  throw e;
139082
140143
  }
@@ -139173,17 +140234,12 @@ var pushSite = async ({
139173
140234
  const { name, deployment, $id } = failed;
139174
140235
  const projectId = localConfig.getProject().projectId;
139175
140236
  const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
139176
- let region = "";
139177
- try {
139178
- const hostname3 = new URL(endpoint).hostname;
139179
- const firstSubdomain = hostname3.split(".")[0];
139180
- if (firstSubdomain.length === 3) {
139181
- region = firstSubdomain;
139182
- }
139183
- } catch {
139184
- }
139185
- const projectSlug = region ? `project-${region}-${projectId}` : `project-${projectId}`;
139186
- const failUrl = `${globalConfig2.getEndpoint().slice(0, -3)}/console/${projectSlug}/sites/site-${$id}/deployments/deployment-${deployment}`;
140237
+ const failUrl = getSiteDeploymentConsoleUrl(
140238
+ endpoint,
140239
+ projectId,
140240
+ $id,
140241
+ deployment
140242
+ );
139187
140243
  error48(
139188
140244
  `Deployment of ${name} has failed. Check at ${failUrl} for more details
139189
140245
  `
@@ -139212,6 +140268,7 @@ var pushFunction = async ({
139212
140268
  functionId,
139213
140269
  async: asyncDeploy,
139214
140270
  code,
140271
+ activate,
139215
140272
  withVariables
139216
140273
  } = {}) => {
139217
140274
  process.chdir(localConfig.configDirectoryPath);
@@ -139276,11 +140333,19 @@ var pushFunction = async ({
139276
140333
  allowCodePush = codeAnswer.override;
139277
140334
  }
139278
140335
  const shouldPushCode = code !== false && allowCodePush === true;
140336
+ let shouldActivate = activate;
140337
+ if (shouldPushCode && shouldActivate === void 0) {
140338
+ const activateAnswer = await import_inquirer7.default.prompt(
140339
+ questionsPushFunctionsActivate
140340
+ );
140341
+ shouldActivate = activateAnswer.activate;
140342
+ }
139279
140343
  log("Pushing functions ...");
139280
140344
  const pushInstance = await createPushInstance();
139281
140345
  const result = await pushInstance.pushFunctions(functions2, {
139282
140346
  async: asyncDeploy,
139283
140347
  code: shouldPushCode,
140348
+ activate: shouldActivate ?? true,
139284
140349
  withVariables
139285
140350
  });
139286
140351
  const {
@@ -139293,17 +140358,12 @@ var pushFunction = async ({
139293
140358
  const { name, deployment, $id } = failed;
139294
140359
  const projectId = localConfig.getProject().projectId;
139295
140360
  const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
139296
- let region = "";
139297
- try {
139298
- const hostname3 = new URL(endpoint).hostname;
139299
- const firstSubdomain = hostname3.split(".")[0];
139300
- if (firstSubdomain.length === 3) {
139301
- region = firstSubdomain;
139302
- }
139303
- } catch {
139304
- }
139305
- const projectSlug = region ? `project-${region}-${projectId}` : `project-${projectId}`;
139306
- const failUrl = `${globalConfig2.getEndpoint().slice(0, -3)}/console/${projectSlug}/functions/function-${$id}/deployment-${deployment}`;
140361
+ const failUrl = getFunctionDeploymentConsoleUrl(
140362
+ endpoint,
140363
+ projectId,
140364
+ $id,
140365
+ deployment
140366
+ );
139307
140367
  error48(
139308
140368
  `Deployment of ${name} has failed. Check at ${failUrl} for more details
139309
140369
  `
@@ -139397,7 +140457,7 @@ var pushTable = async ({
139397
140457
  log("Found tables that exist remotely but not locally:");
139398
140458
  const deletionChanges = tablesToDelete.map((table) => ({
139399
140459
  id: table.$id,
139400
- action: import_chalk11.default.red("deleting"),
140460
+ action: import_chalk12.default.red("deleting"),
139401
140461
  key: "Table",
139402
140462
  database: table.databaseName,
139403
140463
  remote: table.name,
@@ -139694,7 +140754,11 @@ push.command("all").description("Push all resource.").action(
139694
140754
  })
139695
140755
  );
139696
140756
  push.command("settings").description("Push project name, services and auth settings").action(actionRunner(pushSettings));
139697
- push.command("function").alias("functions").description("Push functions in the current directory.").option(`-f, --function-id <function-id>`, `ID of function to run`).option(`-A, --async`, `Don't wait for functions deployments status`).option("--no-code", "Don't push the function's code").option("--with-variables", `Push function variables.`).action(actionRunner(pushFunction));
140757
+ push.command("function").alias("functions").description("Push functions in the current directory.").option(`-f, --function-id <function-id>`, `ID of function to run`).option(`-A, --async`, `Don't wait for functions deployments status`).option("--no-code", "Don't push the function's code").option(
140758
+ "--activate [value]",
140759
+ "Activate the function's deployment after it is ready.",
140760
+ (value) => value === void 0 ? true : parseBool(value)
140761
+ ).option("--with-variables", `Push function variables.`).action(actionRunner(pushFunction));
139698
140762
  push.command("site").alias("sites").description("Push sites in the current directory.").option(`-f, --site-id <site-id>`, `ID of site to run`).option(`-A, --async`, `Don't wait for sites deployments status`).option("--no-code", "Don't push the site's code").option(
139699
140763
  "--activate [value]",
139700
140764
  "Activate the site's deployment after it is ready.",
@@ -139723,7 +140787,7 @@ var deploy = new Command("deploy").description(`Removed. Use ${EXECUTABLE_NAME}
139723
140787
 
139724
140788
  // lib/commands/update.ts
139725
140789
  import { spawn } from "child_process";
139726
- var import_chalk12 = __toESM(require_source(), 1);
140790
+ var import_chalk13 = __toESM(require_source(), 1);
139727
140791
  var import_inquirer8 = __toESM(require_inquirer(), 1);
139728
140792
  var { version: version2 } = package_default;
139729
140793
  var isInstalledViaNpm = () => {
@@ -139808,13 +140872,13 @@ var updateViaHomebrew = async () => {
139808
140872
  var showManualInstructions = (latestVersion) => {
139809
140873
  log("Manual update options:");
139810
140874
  console.log("");
139811
- log(`${import_chalk12.default.bold("Option 1: NPM")}`);
140875
+ log(`${import_chalk13.default.bold("Option 1: NPM")}`);
139812
140876
  console.log(` npm install -g ${NPM_PACKAGE_NAME}@latest`);
139813
140877
  console.log("");
139814
- log(`${import_chalk12.default.bold("Option 2: Homebrew")}`);
140878
+ log(`${import_chalk13.default.bold("Option 2: Homebrew")}`);
139815
140879
  console.log(` brew upgrade appwrite`);
139816
140880
  console.log("");
139817
- log(`${import_chalk12.default.bold("Option 3: Download Binary")}`);
140881
+ log(`${import_chalk13.default.bold("Option 3: Download Binary")}`);
139818
140882
  console.log(` Visit: ${GITHUB_RELEASES_URL}/tag/${latestVersion}`);
139819
140883
  };
139820
140884
  var chooseUpdateMethod = async (latestVersion) => {
@@ -139849,18 +140913,18 @@ var updateCli = async ({ manual } = {}) => {
139849
140913
  const comparison = compareVersions(version2, latestVersion);
139850
140914
  if (comparison === 0) {
139851
140915
  success2(
139852
- `You're already running the latest version (${import_chalk12.default.bold(version2)})!`
140916
+ `You're already running the latest version (${import_chalk13.default.bold(version2)})!`
139853
140917
  );
139854
140918
  return;
139855
140919
  } else if (comparison < 0) {
139856
140920
  warn(
139857
- `You're running a newer version (${import_chalk12.default.bold(version2)}) than the latest released version (${import_chalk12.default.bold(latestVersion)}).`
140921
+ `You're running a newer version (${import_chalk13.default.bold(version2)}) than the latest released version (${import_chalk13.default.bold(latestVersion)}).`
139858
140922
  );
139859
140923
  hint("This might be a pre-release or development version.");
139860
140924
  return;
139861
140925
  }
139862
140926
  log(
139863
- `Updating from ${import_chalk12.default.blue(version2)} to ${import_chalk12.default.green(latestVersion)}...`
140927
+ `Updating from ${import_chalk13.default.blue(version2)} to ${import_chalk13.default.green(latestVersion)}...`
139864
140928
  );
139865
140929
  console.log("");
139866
140930
  if (manual) {
@@ -140594,7 +141658,7 @@ Example:
140594
141658
  var accountClient = null;
140595
141659
  var getAccountClient = async () => {
140596
141660
  if (!accountClient) {
140597
- const sdkClient = await sdkForProject();
141661
+ const sdkClient = await sdkForConsole();
140598
141662
  accountClient = new Account(sdkClient);
140599
141663
  }
140600
141664
  return accountClient;
@@ -141981,7 +143045,7 @@ var healthGetTimeCommand = health.command(`get-time`).description(`Check the App
141981
143045
  var localeClient = null;
141982
143046
  var getLocaleClient = async () => {
141983
143047
  if (!localeClient) {
141984
- const sdkClient = await sdkForProject();
143048
+ const sdkClient = await sdkForConsole();
141985
143049
  localeClient = new Locale(sdkClient);
141986
143050
  }
141987
143051
  return localeClient;
@@ -142493,7 +143557,7 @@ var messagingDeleteSubscriberCommand = messaging.command(`delete-subscriber`).de
142493
143557
  var migrationsClient = null;
142494
143558
  var getMigrationsClient = async () => {
142495
143559
  if (!migrationsClient) {
142496
- const sdkClient = await sdkForConsole();
143560
+ const sdkClient = await sdkForProject();
142497
143561
  migrationsClient = new Migrations(sdkClient);
142498
143562
  }
142499
143563
  return migrationsClient;
@@ -142552,7 +143616,8 @@ var migrationsGetFirebaseReportCommand = migrations.command(`get-firebase-report
142552
143616
  async ({ resources, serviceAccount }) => parse3(await (await getMigrationsClient()).getFirebaseReport(resources, serviceAccount))
142553
143617
  )
142554
143618
  );
142555
- var migrationsCreateJSONExportCommand = migrations.command(`create-json-export`).description(``).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`).requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .json extension.`).option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`).option(
143619
+ var migrationsCreateJSONExportCommand = migrations.command(`create-json-export`).description(`Export documents to a JSON file from your Appwrite database. This endpoint allows you to export documents to a JSON file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
143620
+ `).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`).requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .json extension.`).option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`).option(
142556
143621
  `--notify [value]`,
142557
143622
  `Set to true to receive an email when the export is complete. Default is true.`,
142558
143623
  (value) => value === void 0 ? true : parseBool(value)
@@ -142561,7 +143626,8 @@ var migrationsCreateJSONExportCommand = migrations.command(`create-json-export`)
142561
143626
  async ({ resourceId, filename, columns, queries, notify }) => parse3(await (await getMigrationsClient()).createJSONExport(resourceId, filename, columns, queries, notify))
142562
143627
  )
142563
143628
  );
142564
- var migrationsCreateJSONImportCommand = migrations.command(`create-json-import`).description(``).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`).requiredOption(`--file-id <file-id>`, `File ID.`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.`).option(
143629
+ var migrationsCreateJSONImportCommand = migrations.command(`create-json-import`).description(`Import documents from a JSON file into your Appwrite database. This endpoint allows you to import documents from a JSON file uploaded to Appwrite Storage bucket.
143630
+ `).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`).requiredOption(`--file-id <file-id>`, `File ID.`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.`).option(
142565
143631
  `--internal-file [value]`,
142566
143632
  `Is the file stored in an internal bucket?`,
142567
143633
  (value) => value === void 0 ? true : parseBool(value)
@@ -142639,6 +143705,42 @@ var organizationsDeleteCommand = organizations.command(`delete`).description(`De
142639
143705
  async ({ organizationId }) => parse3(await (await getOrganizationsClient()).delete(organizationId))
142640
143706
  )
142641
143707
  );
143708
+ var organizationsListAddonsCommand = organizations.command(`list-addons`).description(`List all billing addons for an organization.
143709
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).action(
143710
+ actionRunner(
143711
+ async ({ organizationId }) => parse3(await (await getOrganizationsClient()).listAddons(organizationId))
143712
+ )
143713
+ );
143714
+ var organizationsCreateBaaAddonCommand = organizations.command(`create-baa-addon`).description(`Create the BAA billing addon for an organization.
143715
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).action(
143716
+ actionRunner(
143717
+ async ({ organizationId }) => parse3(await (await getOrganizationsClient()).createBaaAddon(organizationId))
143718
+ )
143719
+ );
143720
+ var organizationsGetAddonCommand = organizations.command(`get-addon`).description(`Get the details of a billing addon for an organization.
143721
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--addon-id <addon-id>`, `Addon ID`).action(
143722
+ actionRunner(
143723
+ async ({ organizationId, addonId }) => parse3(await (await getOrganizationsClient()).getAddon(organizationId, addonId))
143724
+ )
143725
+ );
143726
+ var organizationsDeleteAddonCommand = organizations.command(`delete-addon`).description(`Delete a billing addon for an organization.
143727
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--addon-id <addon-id>`, `Addon ID`).action(
143728
+ actionRunner(
143729
+ async ({ organizationId, addonId }) => parse3(await (await getOrganizationsClient()).deleteAddon(organizationId, addonId))
143730
+ )
143731
+ );
143732
+ var organizationsConfirmAddonPaymentCommand = organizations.command(`confirm-addon-payment`).description(`Confirm payment for a billing addon for an organization.
143733
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--addon-id <addon-id>`, `Addon ID`).action(
143734
+ actionRunner(
143735
+ async ({ organizationId, addonId }) => parse3(await (await getOrganizationsClient()).confirmAddonPayment(organizationId, addonId))
143736
+ )
143737
+ );
143738
+ var organizationsGetAddonPriceCommand = organizations.command(`get-addon-price`).description(`Get the price details for a billing addon for an organization.
143739
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--addon <addon>`, `Addon key identifier (e.g. baa).`).action(
143740
+ actionRunner(
143741
+ async ({ organizationId, addon }) => parse3(await (await getOrganizationsClient()).getAddonPrice(organizationId, addon))
143742
+ )
143743
+ );
142642
143744
  var organizationsListAggregationsCommand = organizations.command(`list-aggregations`).description(`Get a list of all aggregations for an organization.`).requiredOption(`--organization-id <organization-id>`, `Organization 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/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, from, to`).action(
142643
143745
  actionRunner(
142644
143746
  async ({ organizationId, queries }) => parse3(await (await getOrganizationsClient()).listAggregations(organizationId, queries))
@@ -144578,7 +145680,7 @@ var usersUpdatePhoneVerificationCommand = users.command(`update-phone-verificati
144578
145680
  var vcsClient = null;
144579
145681
  var getVcsClient = async () => {
144580
145682
  if (!vcsClient) {
144581
- const sdkClient = await sdkForConsole();
145683
+ const sdkClient = await sdkForProject();
144582
145684
  vcsClient = new Vcs(sdkClient);
144583
145685
  }
144584
145686
  return vcsClient;
@@ -144715,17 +145817,17 @@ var VERSION_CHECK_TIMEOUT_MS = 5e3;
144715
145817
  function writeUpdateAvailableNotice(currentVersion, latestVersion, toStderr = false) {
144716
145818
  const stream = toStderr ? process.stderr : process.stdout;
144717
145819
  stream.write(
144718
- import_chalk13.default.yellow(
145820
+ import_chalk14.default.yellow(
144719
145821
  `
144720
- \u26A0\uFE0F A newer version is available: ${import_chalk13.default.bold(currentVersion)} ${import_chalk13.default.bold("\u2192")} ${import_chalk13.default.bold(
145822
+ \u26A0\uFE0F A newer version is available: ${import_chalk14.default.bold(currentVersion)} ${import_chalk14.default.bold("\u2192")} ${import_chalk14.default.bold(
144721
145823
  latestVersion
144722
145824
  )}`
144723
145825
  ) + "\n"
144724
145826
  );
144725
145827
  stream.write(
144726
- import_chalk13.default.cyan(
144727
- `\u{1F4A1} Run '${import_chalk13.default.bold("appwrite update")}' to update to the latest version.`
144728
- ) + "\n"
145828
+ import_chalk14.default.cyan(
145829
+ `\u{1F4A1} Run '${import_chalk14.default.bold("appwrite update")}' to update to the latest version.`
145830
+ ) + "\n\n"
144729
145831
  );
144730
145832
  }
144731
145833
  function shouldWriteUpdateNoticeToStderr() {
@@ -144742,7 +145844,7 @@ async function maybeShowUpdateNotice() {
144742
145844
  }
144743
145845
  }
144744
145846
  async function checkVersion() {
144745
- process.stdout.write(import_chalk13.default.bold(`appwrite version ${version3}`) + "\n");
145847
+ process.stdout.write(import_chalk14.default.bold(`appwrite version ${version3}`) + "\n");
144746
145848
  try {
144747
145849
  const latestVersion = await getLatestVersion({ timeoutMs: VERSION_CHECK_TIMEOUT_MS });
144748
145850
  syncVersionCheckCache(version3, latestVersion);
@@ -144750,12 +145852,12 @@ async function checkVersion() {
144750
145852
  if (comparison > 0) {
144751
145853
  writeUpdateAvailableNotice(version3, latestVersion);
144752
145854
  } else if (comparison === 0) {
144753
- process.stdout.write(import_chalk13.default.green("\n\u2705 You are running the latest version!") + "\n");
145855
+ process.stdout.write(import_chalk14.default.green("\n\u2705 You are running the latest version!") + "\n");
144754
145856
  } else {
144755
- process.stdout.write(import_chalk13.default.blue("\n\u{1F680} You are running a pre-release or development version.") + "\n");
145857
+ process.stdout.write(import_chalk14.default.blue("\n\u{1F680} You are running a pre-release or development version.") + "\n");
144756
145858
  }
144757
145859
  } catch (_error) {
144758
- process.stdout.write(import_chalk13.default.gray("\n(Unable to check for updates)") + "\n");
145860
+ process.stdout.write(import_chalk14.default.gray("\n(Unable to check for updates)") + "\n");
144759
145861
  }
144760
145862
  }
144761
145863
  if (process.argv.includes("-v") || process.argv.includes("--version")) {