@settlemint/sdk-cli 1.1.3-pr83196aab → 1.1.3-pra26dc90a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/cli.js +1840 -480
  2. package/dist/cli.js.map +52 -10
  3. package/package.json +8 -8
package/dist/cli.js CHANGED
@@ -14374,8 +14374,8 @@ var require_printLocation = __commonJS((exports) => {
14374
14374
  const columnNum = sourceLocation.column + columnOffset;
14375
14375
  const locationStr = `${source.name}:${lineNum}:${columnNum}
14376
14376
  `;
14377
- const lines2 = body.split(/\r\n|[\n\r]/g);
14378
- const locationLine = lines2[lineIndex];
14377
+ const lines = body.split(/\r\n|[\n\r]/g);
14378
+ const locationLine = lines[lineIndex];
14379
14379
  if (locationLine.length > 120) {
14380
14380
  const subLineIndex = Math.floor(columnNum / 80);
14381
14381
  const subLineColumnNum = columnNum % 80;
@@ -14391,14 +14391,14 @@ var require_printLocation = __commonJS((exports) => {
14391
14391
  ]);
14392
14392
  }
14393
14393
  return locationStr + printPrefixedLines([
14394
- [`${lineNum - 1} |`, lines2[lineIndex - 1]],
14394
+ [`${lineNum - 1} |`, lines[lineIndex - 1]],
14395
14395
  [`${lineNum} |`, locationLine],
14396
14396
  ["|", "^".padStart(columnNum)],
14397
- [`${lineNum + 1} |`, lines2[lineIndex + 1]]
14397
+ [`${lineNum + 1} |`, lines[lineIndex + 1]]
14398
14398
  ]);
14399
14399
  }
14400
- function printPrefixedLines(lines2) {
14401
- const existingLines = lines2.filter(([_, line]) => line !== undefined);
14400
+ function printPrefixedLines(lines) {
14401
+ const existingLines = lines.filter(([_, line]) => line !== undefined);
14402
14402
  const padLen = Math.max(...existingLines.map(([prefix]) => prefix.length));
14403
14403
  return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join(`
14404
14404
  `);
@@ -14811,14 +14811,14 @@ var require_blockString = __commonJS((exports) => {
14811
14811
  exports.isPrintableAsBlockString = isPrintableAsBlockString;
14812
14812
  exports.printBlockString = printBlockString;
14813
14813
  var _characterClasses = require_characterClasses();
14814
- function dedentBlockStringLines(lines2) {
14814
+ function dedentBlockStringLines(lines) {
14815
14815
  var _firstNonEmptyLine2;
14816
14816
  let commonIndent = Number.MAX_SAFE_INTEGER;
14817
14817
  let firstNonEmptyLine = null;
14818
14818
  let lastNonEmptyLine = -1;
14819
- for (let i = 0;i < lines2.length; ++i) {
14819
+ for (let i = 0;i < lines.length; ++i) {
14820
14820
  var _firstNonEmptyLine;
14821
- const line = lines2[i];
14821
+ const line = lines[i];
14822
14822
  const indent = leadingWhitespace(line);
14823
14823
  if (indent === line.length) {
14824
14824
  continue;
@@ -14829,7 +14829,7 @@ var require_blockString = __commonJS((exports) => {
14829
14829
  commonIndent = indent;
14830
14830
  }
14831
14831
  }
14832
- return lines2.map((line, i) => i === 0 ? line : line.slice(commonIndent)).slice((_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== undefined ? _firstNonEmptyLine2 : 0, lastNonEmptyLine + 1);
14832
+ return lines.map((line, i) => i === 0 ? line : line.slice(commonIndent)).slice((_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== undefined ? _firstNonEmptyLine2 : 0, lastNonEmptyLine + 1);
14833
14833
  }
14834
14834
  function leadingWhitespace(str) {
14835
14835
  let i = 0;
@@ -14891,9 +14891,9 @@ var require_blockString = __commonJS((exports) => {
14891
14891
  }
14892
14892
  function printBlockString(value, options) {
14893
14893
  const escapedValue = value.replace(/"""/g, '\\"""');
14894
- const lines2 = escapedValue.split(/\r\n|[\n\r]/g);
14895
- const isSingleLine = lines2.length === 1;
14896
- const forceLeadingNewLine = lines2.length > 1 && lines2.slice(1).every((line) => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0)));
14894
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
14895
+ const isSingleLine = lines.length === 1;
14896
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0)));
14897
14897
  const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
14898
14898
  const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
14899
14899
  const hasTrailingSlash = value.endsWith("\\");
@@ -34006,9 +34006,9 @@ var require_commonjs4 = __commonJS((exports) => {
34006
34006
  this.#resolveCache = new ResolveCache2;
34007
34007
  this.#resolvePosixCache = new ResolveCache2;
34008
34008
  this.#children = new ChildrenCache2(childrenCacheSize);
34009
- const split2 = cwdPath.substring(this.rootPath.length).split(sep2);
34010
- if (split2.length === 1 && !split2[0]) {
34011
- split2.pop();
34009
+ const split = cwdPath.substring(this.rootPath.length).split(sep2);
34010
+ if (split.length === 1 && !split[0]) {
34011
+ split.pop();
34012
34012
  }
34013
34013
  if (nocase === undefined) {
34014
34014
  throw new TypeError("must provide nocase setting to PathScurryBase ctor");
@@ -34017,11 +34017,11 @@ var require_commonjs4 = __commonJS((exports) => {
34017
34017
  this.root = this.newRoot(this.#fs);
34018
34018
  this.roots[this.rootPath] = this.root;
34019
34019
  let prev = this.root;
34020
- let len = split2.length - 1;
34020
+ let len = split.length - 1;
34021
34021
  const joinSep = pathImpl.sep;
34022
34022
  let abs = this.rootPath;
34023
34023
  let sawFirst = false;
34024
- for (const part of split2) {
34024
+ for (const part of split) {
34025
34025
  const l2 = len--;
34026
34026
  prev = prev.child(part, {
34027
34027
  relative: new Array(l2).fill("..").join(joinSep),
@@ -37186,9 +37186,9 @@ var require_ini = __commonJS((exports, module) => {
37186
37186
  let p = out;
37187
37187
  let section = null;
37188
37188
  const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
37189
- const lines2 = str.split(/[\r\n]+/g);
37189
+ const lines = str.split(/[\r\n]+/g);
37190
37190
  const duplicates = {};
37191
- for (const line of lines2) {
37191
+ for (const line of lines) {
37192
37192
  if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
37193
37193
  continue;
37194
37194
  }
@@ -39173,7 +39173,7 @@ var require_semver3 = __commonJS((exports, module) => {
39173
39173
  // ../../node_modules/@npmcli/git/lib/lines-to-revs.js
39174
39174
  var require_lines_to_revs = __commonJS((exports, module) => {
39175
39175
  var semver = require_semver3();
39176
- module.exports = (lines2) => finish(lines2.reduce(linesToRevsReducer, {
39176
+ module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
39177
39177
  versions: {},
39178
39178
  "dist-tags": {},
39179
39179
  refs: {},
@@ -39234,12 +39234,12 @@ var require_lines_to_revs = __commonJS((exports, module) => {
39234
39234
  return "other";
39235
39235
  };
39236
39236
  var lineToRevDoc = (line) => {
39237
- const split2 = line.trim().split(/\s+/, 2);
39238
- if (split2.length < 2) {
39237
+ const split = line.trim().split(/\s+/, 2);
39238
+ if (split.length < 2) {
39239
39239
  return null;
39240
39240
  }
39241
- const sha = split2[0].trim();
39242
- const rawRef = split2[1].trim();
39241
+ const sha = split[0].trim();
39242
+ const rawRef = split[1].trim();
39243
39243
  const type2 = refType(rawRef);
39244
39244
  if (type2 === "tag") {
39245
39245
  const ref = rawRef.slice("refs/tags/".length);
@@ -46994,17 +46994,17 @@ var require_normalize_data = __commonJS((exports, module) => {
46994
46994
  };
46995
46995
  var isEmail = (str) => str.includes("@") && str.indexOf("@") < str.lastIndexOf(".");
46996
46996
  function extractDescription(description) {
46997
- const lines2 = description.trim().split(`
46997
+ const lines = description.trim().split(`
46998
46998
  `);
46999
46999
  let start = 0;
47000
- while (lines2[start]?.trim().match(/^(#|$)/)) {
47000
+ while (lines[start]?.trim().match(/^(#|$)/)) {
47001
47001
  start++;
47002
47002
  }
47003
47003
  let end = start + 1;
47004
- while (end < lines2.length && lines2[end].trim()) {
47004
+ while (end < lines.length && lines[end].trim()) {
47005
47005
  end++;
47006
47006
  }
47007
- return lines2.slice(start, end).join(" ").trim();
47007
+ return lines.slice(start, end).join(" ").trim();
47008
47008
  }
47009
47009
  function stringifyPerson(person) {
47010
47010
  if (typeof person !== "string") {
@@ -48070,7 +48070,6 @@ var require_re6 = __commonJS((exports, module) => {
48070
48070
  var re = exports.re = [];
48071
48071
  var safeRe = exports.safeRe = [];
48072
48072
  var src = exports.src = [];
48073
- var safeSrc = exports.safeSrc = [];
48074
48073
  var t3 = exports.t = {};
48075
48074
  var R = 0;
48076
48075
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
@@ -48091,7 +48090,6 @@ var require_re6 = __commonJS((exports, module) => {
48091
48090
  debug(name, index, value2);
48092
48091
  t3[name] = index;
48093
48092
  src[index] = value2;
48094
- safeSrc[index] = safe;
48095
48093
  re[index] = new RegExp(value2, isGlobal ? "g" : undefined);
48096
48094
  safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
48097
48095
  };
@@ -48182,7 +48180,7 @@ var require_identifiers6 = __commonJS((exports, module) => {
48182
48180
  var require_semver10 = __commonJS((exports, module) => {
48183
48181
  var debug = require_debug6();
48184
48182
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants7();
48185
- var { safeRe: re, safeSrc: src, t: t3 } = require_re6();
48183
+ var { safeRe: re, t: t3 } = require_re6();
48186
48184
  var parseOptions = require_parse_options6();
48187
48185
  var { compareIdentifiers } = require_identifiers6();
48188
48186
 
@@ -48324,8 +48322,7 @@ var require_semver10 = __commonJS((exports, module) => {
48324
48322
  throw new Error("invalid increment argument: identifier is empty");
48325
48323
  }
48326
48324
  if (identifier) {
48327
- const r2 = new RegExp(`^${this.options.loose ? src[t3.PRERELEASELOOSE] : src[t3.PRERELEASE]}$`);
48328
- const match2 = `-${identifier}`.match(r2);
48325
+ const match2 = `-${identifier}`.match(this.options.loose ? re[t3.PRERELEASELOOSE] : re[t3.PRERELEASE]);
48329
48326
  if (!match2 || match2[1] !== identifier) {
48330
48327
  throw new Error(`invalid identifier: ${identifier}`);
48331
48328
  }
@@ -67383,9 +67380,9 @@ ${lanes.join(`
67383
67380
  return node.kind === 183 || node.kind === 233;
67384
67381
  }
67385
67382
  var MAX_SMI_X86 = 1073741823;
67386
- function guessIndentation(lines2) {
67383
+ function guessIndentation(lines) {
67387
67384
  let indentation = MAX_SMI_X86;
67388
- for (const line of lines2) {
67385
+ for (const line of lines) {
67389
67386
  if (!line.length) {
67390
67387
  continue;
67391
67388
  }
@@ -155723,8 +155720,8 @@ ${lanes.join(`
155723
155720
  if (node.comment) {
155724
155721
  const text = getTextOfJSDocComment(node.comment);
155725
155722
  if (text) {
155726
- const lines2 = text.split(/\r\n?|\n/);
155727
- for (const line of lines2) {
155723
+ const lines = text.split(/\r\n?|\n/);
155724
+ for (const line of lines) {
155728
155725
  writeLine();
155729
155726
  writeSpace();
155730
155727
  writePunctuation("*");
@@ -156368,9 +156365,9 @@ ${lanes.join(`
156368
156365
  if (getEmitFlags(parentNode) & 1) {
156369
156366
  writeSpace();
156370
156367
  } else if (preserveSourceNewlines) {
156371
- const lines2 = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);
156372
- if (lines2) {
156373
- writeLine(lines2);
156368
+ const lines = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);
156369
+ if (lines) {
156370
+ writeLine(lines);
156374
156371
  } else {
156375
156372
  writeSpace();
156376
156373
  }
@@ -156379,9 +156376,9 @@ ${lanes.join(`
156379
156376
  }
156380
156377
  }
156381
156378
  function writeLines(text) {
156382
- const lines2 = text.split(/\r\n?|\n/);
156383
- const indentation = guessIndentation(lines2);
156384
- for (const lineText of lines2) {
156379
+ const lines = text.split(/\r\n?|\n/);
156380
+ const indentation = guessIndentation(lines);
156381
+ for (const lineText of lines) {
156385
156382
  const line = indentation ? lineText.slice(indentation) : lineText;
156386
156383
  if (line.length) {
156387
156384
  writeLine();
@@ -156479,11 +156476,11 @@ ${lanes.join(`
156479
156476
  }
156480
156477
  function getEffectiveLines(getLineDifference) {
156481
156478
  Debug.assert(!!preserveSourceNewlines);
156482
- const lines2 = getLineDifference(true);
156483
- if (lines2 === 0) {
156479
+ const lines = getLineDifference(true);
156480
+ if (lines === 0) {
156484
156481
  return getLineDifference(false);
156485
156482
  }
156486
- return lines2;
156483
+ return lines;
156487
156484
  }
156488
156485
  function writeLineSeparatorsAndIndentBefore(node, parent2) {
156489
156486
  const leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent2, node, 0);
@@ -166741,7 +166738,7 @@ ${lanes.join(`
166741
166738
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
166742
166739
  var _a;
166743
166740
  const text = [];
166744
- const colors3 = createColors(sys2);
166741
+ const colors2 = createColors(sys2);
166745
166742
  const name = getDisplayNameTextOfOption(option);
166746
166743
  const valueCandidates = getValueCandidate(option);
166747
166744
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -166762,7 +166759,7 @@ ${lanes.join(`
166762
166759
  }
166763
166760
  text.push(sys2.newLine);
166764
166761
  } else {
166765
- text.push(colors3.blue(name), sys2.newLine);
166762
+ text.push(colors2.blue(name), sys2.newLine);
166766
166763
  if (option.description) {
166767
166764
  const description3 = getDiagnosticText(option.description);
166768
166765
  text.push(description3);
@@ -166807,7 +166804,7 @@ ${lanes.join(`
166807
166804
  if (isFirstLine) {
166808
166805
  curLeft = left.padStart(rightAlignOfLeft2);
166809
166806
  curLeft = curLeft.padEnd(leftAlignOfRight2);
166810
- curLeft = colorLeft ? colors3.blue(curLeft) : curLeft;
166807
+ curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
166811
166808
  } else {
166812
166809
  curLeft = "".padStart(leftAlignOfRight2);
166813
166810
  }
@@ -166876,15 +166873,15 @@ ${lanes.join(`
166876
166873
  }
166877
166874
  const rightAlignOfLeftPart = maxLength2 + 2;
166878
166875
  const leftAlignOfRightPart = rightAlignOfLeftPart + 2;
166879
- let lines2 = [];
166876
+ let lines = [];
166880
166877
  for (const option of optionsList) {
166881
166878
  const tmp = generateOptionOutput(sys2, option, rightAlignOfLeftPart, leftAlignOfRightPart);
166882
- lines2 = [...lines2, ...tmp];
166879
+ lines = [...lines, ...tmp];
166883
166880
  }
166884
- if (lines2[lines2.length - 2] !== sys2.newLine) {
166885
- lines2.push(sys2.newLine);
166881
+ if (lines[lines.length - 2] !== sys2.newLine) {
166882
+ lines.push(sys2.newLine);
166886
166883
  }
166887
- return lines2;
166884
+ return lines;
166888
166885
  }
166889
166886
  function generateSectionOptionsOutput(sys2, sectionName, options, subCategory, beforeOptionsDescription, afterOptionsDescription) {
166890
166887
  let res = [];
@@ -166919,9 +166916,9 @@ ${lanes.join(`
166919
166916
  return res;
166920
166917
  }
166921
166918
  function printEasyHelp(sys2, simpleOptions) {
166922
- const colors3 = createColors(sys2);
166919
+ const colors2 = createColors(sys2);
166923
166920
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)];
166924
- output.push(colors3.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
166921
+ output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
166925
166922
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
166926
166923
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
166927
166924
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -166942,7 +166939,7 @@ ${lanes.join(`
166942
166939
  function example(ex, desc) {
166943
166940
  const examples = typeof ex === "string" ? [ex] : ex;
166944
166941
  for (const example2 of examples) {
166945
- output.push(" " + colors3.blue(example2) + sys2.newLine);
166942
+ output.push(" " + colors2.blue(example2) + sys2.newLine);
166946
166943
  }
166947
166944
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
166948
166945
  }
@@ -166965,12 +166962,12 @@ ${lanes.join(`
166965
166962
  }
166966
166963
  function getHeader(sys2, message) {
166967
166964
  var _a;
166968
- const colors3 = createColors(sys2);
166965
+ const colors2 = createColors(sys2);
166969
166966
  const header = [];
166970
166967
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
166971
166968
  const tsIconLength = 5;
166972
- const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
166973
- const tsIconSecondLine = colors3.blueBackground(colors3.brightWhite("TS ".padStart(tsIconLength)));
166969
+ const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
166970
+ const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
166974
166971
  if (terminalWidth >= message.length + tsIconLength) {
166975
166972
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
166976
166973
  const leftAlign = rightAlign - tsIconLength;
@@ -218660,9 +218657,9 @@ ${e3.message}`;
218660
218657
  insertedText = this.initialText + this.trailingText;
218661
218658
  }
218662
218659
  const lm = LineIndex.linesFromText(insertedText);
218663
- const lines2 = lm.lines;
218664
- if (lines2.length > 1 && lines2[lines2.length - 1] === "") {
218665
- lines2.pop();
218660
+ const lines = lm.lines;
218661
+ if (lines.length > 1 && lines[lines.length - 1] === "") {
218662
+ lines.pop();
218666
218663
  }
218667
218664
  let branchParent;
218668
218665
  let lastZeroCount;
@@ -218681,13 +218678,13 @@ ${e3.message}`;
218681
218678
  branchParent.remove(lastZeroCount);
218682
218679
  }
218683
218680
  const leafNode = this.startPath[this.startPath.length - 1];
218684
- if (lines2.length > 0) {
218685
- leafNode.text = lines2[0];
218686
- if (lines2.length > 1) {
218687
- let insertedNodes = new Array(lines2.length - 1);
218681
+ if (lines.length > 0) {
218682
+ leafNode.text = lines[0];
218683
+ if (lines.length > 1) {
218684
+ let insertedNodes = new Array(lines.length - 1);
218688
218685
  let startNode2 = leafNode;
218689
- for (let i2 = 1;i2 < lines2.length; i2++) {
218690
- insertedNodes[i2 - 1] = new LineLeaf(lines2[i2]);
218686
+ for (let i2 = 1;i2 < lines.length; i2++) {
218687
+ insertedNodes[i2 - 1] = new LineLeaf(lines[i2]);
218691
218688
  }
218692
218689
  let pathIndex = this.startPath.length - 2;
218693
218690
  while (pathIndex >= 0) {
@@ -218957,11 +218954,11 @@ ${e3.message}`;
218957
218954
  return { absolutePosition: this.root.charCount(), lineText: undefined };
218958
218955
  }
218959
218956
  }
218960
- load(lines2) {
218961
- if (lines2.length > 0) {
218957
+ load(lines) {
218958
+ if (lines.length > 0) {
218962
218959
  const leaves = [];
218963
- for (let i2 = 0;i2 < lines2.length; i2++) {
218964
- leaves[i2] = new LineLeaf(lines2[i2]);
218960
+ for (let i2 = 0;i2 < lines.length; i2++) {
218961
+ leaves[i2] = new LineLeaf(lines[i2]);
218965
218962
  }
218966
218963
  this.root = _LineIndex.buildTreeFromBottom(leaves);
218967
218964
  } else {
@@ -219064,18 +219061,18 @@ ${e3.message}`;
219064
219061
  if (lineMap.length === 0) {
219065
219062
  return { lines: [], lineMap };
219066
219063
  }
219067
- const lines2 = new Array(lineMap.length);
219064
+ const lines = new Array(lineMap.length);
219068
219065
  const lc = lineMap.length - 1;
219069
219066
  for (let lmi = 0;lmi < lc; lmi++) {
219070
- lines2[lmi] = text.substring(lineMap[lmi], lineMap[lmi + 1]);
219067
+ lines[lmi] = text.substring(lineMap[lmi], lineMap[lmi + 1]);
219071
219068
  }
219072
219069
  const endText = text.substring(lineMap[lc]);
219073
219070
  if (endText.length > 0) {
219074
- lines2[lc] = endText;
219071
+ lines[lc] = endText;
219075
219072
  } else {
219076
- lines2.pop();
219073
+ lines.pop();
219077
219074
  }
219078
- return { lines: lines2, lineMap };
219075
+ return { lines, lineMap };
219079
219076
  }
219080
219077
  };
219081
219078
  var LineNode = class _LineNode {
@@ -220155,7 +220152,7 @@ async function* streamBody(e4) {
220155
220152
  }
220156
220153
  }
220157
220154
  }
220158
- async function* split2(e4, r3) {
220155
+ async function* split(e4, r3) {
220159
220156
  var a4 = "";
220160
220157
  var n3;
220161
220158
  for await (var t4 of e4) {
@@ -220189,7 +220186,7 @@ function makeFetchSource(e4, r3, a4) {
220189
220186
  var n5 = "--" + (a6 ? a6[1] : "-");
220190
220187
  var t5 = true;
220191
220188
  var i4;
220192
- for await (var o4 of split2(streamBody(r5), `\r
220189
+ for await (var o4 of split(streamBody(r5), `\r
220193
220190
  ` + n5)) {
220194
220191
  if (t5) {
220195
220192
  t5 = false;
@@ -220222,7 +220219,7 @@ function makeFetchSource(e4, r3, a4) {
220222
220219
  } else if (/text\/event-stream/i.test(o3)) {
220223
220220
  s3 = async function* parseEventStream(e6) {
220224
220221
  var r5;
220225
- for await (var a6 of split2(streamBody(e6), `
220222
+ for await (var a6 of split(streamBody(e6), `
220226
220223
 
220227
220224
  `)) {
220228
220225
  var n5 = a6.match(S);
@@ -241161,8 +241158,8 @@ var require_mkdir = __commonJS((exports, module) => {
241161
241158
  return "CwdError";
241162
241159
  }
241163
241160
  }
241164
- var cGet = (cache, key2) => cache.get(normPath(key2));
241165
- var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
241161
+ var cGet = (cache, key5) => cache.get(normPath(key5));
241162
+ var cSet = (cache, key5, val) => cache.set(normPath(key5), val);
241166
241163
  var checkCwd = (dir, cb) => {
241167
241164
  fs3.stat(dir, (er2, st2) => {
241168
241165
  if (er2 || !st2.isDirectory()) {
@@ -241533,8 +241530,8 @@ var require_unpack = __commonJS((exports, module) => {
241533
241530
  }
241534
241531
  };
241535
241532
  var dropCache = (cache) => {
241536
- for (const key2 of cache.keys()) {
241537
- cache.delete(key2);
241533
+ for (const key5 of cache.keys()) {
241534
+ cache.delete(key5);
241538
241535
  }
241539
241536
  };
241540
241537
 
@@ -246331,8 +246328,8 @@ var require_lib13 = __commonJS((exports, module) => {
246331
246328
  function fetch2(input, options) {
246332
246329
  return nodeFetch.fetch(input, options);
246333
246330
  }
246334
- for (const key2 in nodeFetch) {
246335
- fetch2[key2] = nodeFetch[key2];
246331
+ for (const key5 in nodeFetch) {
246332
+ fetch2[key5] = nodeFetch[key5];
246336
246333
  }
246337
246334
  module.exports = fetch2;
246338
246335
  });
@@ -246425,11 +246422,11 @@ var require_proxy = __commonJS((exports) => {
246425
246422
  return hasRequiredSymbols$4 || (hasRequiredSymbols$4 = 1, symbols$4 = { kClose: Symbol("close"), kDestroy: Symbol("destroy"), kDispatch: Symbol("dispatch"), kUrl: Symbol("url"), kWriting: Symbol("writing"), kResuming: Symbol("resuming"), kQueue: Symbol("queue"), kConnect: Symbol("connect"), kConnecting: Symbol("connecting"), kKeepAliveDefaultTimeout: Symbol("default keep alive timeout"), kKeepAliveMaxTimeout: Symbol("max keep alive timeout"), kKeepAliveTimeoutThreshold: Symbol("keep alive timeout threshold"), kKeepAliveTimeoutValue: Symbol("keep alive timeout"), kKeepAlive: Symbol("keep alive"), kHeadersTimeout: Symbol("headers timeout"), kBodyTimeout: Symbol("body timeout"), kServerName: Symbol("server name"), kLocalAddress: Symbol("local address"), kHost: Symbol("host"), kNoRef: Symbol("no ref"), kBodyUsed: Symbol("used"), kBody: Symbol("abstracted request body"), kRunning: Symbol("running"), kBlocking: Symbol("blocking"), kPending: Symbol("pending"), kSize: Symbol("size"), kBusy: Symbol("busy"), kQueued: Symbol("queued"), kFree: Symbol("free"), kConnected: Symbol("connected"), kClosed: Symbol("closed"), kNeedDrain: Symbol("need drain"), kReset: Symbol("reset"), kDestroyed: Symbol.for("nodejs.stream.destroyed"), kResume: Symbol("resume"), kOnError: Symbol("on error"), kMaxHeadersSize: Symbol("max headers size"), kRunningIdx: Symbol("running index"), kPendingIdx: Symbol("pending index"), kError: Symbol("error"), kClients: Symbol("clients"), kClient: Symbol("client"), kParser: Symbol("parser"), kOnDestroyed: Symbol("destroy callbacks"), kPipelining: Symbol("pipelining"), kSocket: Symbol("socket"), kHostHeader: Symbol("host header"), kConnector: Symbol("connector"), kStrictContentLength: Symbol("strict content length"), kMaxRedirections: Symbol("maxRedirections"), kMaxRequests: Symbol("maxRequestsPerClient"), kProxy: Symbol("proxy agent options"), kCounter: Symbol("socket request counter"), kInterceptors: Symbol("dispatch interceptors"), kMaxResponseSize: Symbol("max response size"), kHTTP2Session: Symbol("http2Session"), kHTTP2SessionState: Symbol("http2Session state"), kRetryHandlerDefaultRetry: Symbol("retry agent default retry"), kConstruct: Symbol("constructable"), kListeners: Symbol("listeners"), kHTTPContext: Symbol("http context"), kMaxConcurrentStreams: Symbol("max concurrent streams"), kNoProxyAgent: Symbol("no proxy agent"), kHttpProxyAgent: Symbol("http proxy agent"), kHttpsProxyAgent: Symbol("https proxy agent") }), symbols$4;
246426
246423
  }
246427
246424
  e10(requireSymbols$4, "requireSymbols$4");
246428
- var errors2;
246425
+ var errors5;
246429
246426
  var hasRequiredErrors;
246430
246427
  function requireErrors() {
246431
246428
  if (hasRequiredErrors)
246432
- return errors2;
246429
+ return errors5;
246433
246430
  hasRequiredErrors = 1;
246434
246431
 
246435
246432
  class A5 extends Error {
@@ -246638,7 +246635,7 @@ var require_proxy = __commonJS((exports) => {
246638
246635
  super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
246639
246636
  }
246640
246637
  }
246641
- return errors2 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f6, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g6, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors2;
246638
+ return errors5 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f6, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g6, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors5;
246642
246639
  }
246643
246640
  e10(requireErrors, "requireErrors");
246644
246641
  var constants$4;
@@ -256611,11 +256608,11 @@ var require_visit = __commonJS((exports) => {
256611
256608
  visit2.BREAK = BREAK;
256612
256609
  visit2.SKIP = SKIP;
256613
256610
  visit2.REMOVE = REMOVE;
256614
- function visit_(key2, node, visitor, path5) {
256615
- const ctrl = callVisitor(key2, node, visitor, path5);
256611
+ function visit_(key5, node, visitor, path5) {
256612
+ const ctrl = callVisitor(key5, node, visitor, path5);
256616
256613
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
256617
- replaceNode(key2, path5, ctrl);
256618
- return visit_(key2, ctrl, visitor, path5);
256614
+ replaceNode(key5, path5, ctrl);
256615
+ return visit_(key5, ctrl, visitor, path5);
256619
256616
  }
256620
256617
  if (typeof ctrl !== "symbol") {
256621
256618
  if (identity2.isCollection(node)) {
@@ -256659,11 +256656,11 @@ var require_visit = __commonJS((exports) => {
256659
256656
  visitAsync.BREAK = BREAK;
256660
256657
  visitAsync.SKIP = SKIP;
256661
256658
  visitAsync.REMOVE = REMOVE;
256662
- async function visitAsync_(key2, node, visitor, path5) {
256663
- const ctrl = await callVisitor(key2, node, visitor, path5);
256659
+ async function visitAsync_(key5, node, visitor, path5) {
256660
+ const ctrl = await callVisitor(key5, node, visitor, path5);
256664
256661
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
256665
- replaceNode(key2, path5, ctrl);
256666
- return visitAsync_(key2, ctrl, visitor, path5);
256662
+ replaceNode(key5, path5, ctrl);
256663
+ return visitAsync_(key5, ctrl, visitor, path5);
256667
256664
  }
256668
256665
  if (typeof ctrl !== "symbol") {
256669
256666
  if (identity2.isCollection(node)) {
@@ -256713,27 +256710,27 @@ var require_visit = __commonJS((exports) => {
256713
256710
  }
256714
256711
  return visitor;
256715
256712
  }
256716
- function callVisitor(key2, node, visitor, path5) {
256713
+ function callVisitor(key5, node, visitor, path5) {
256717
256714
  if (typeof visitor === "function")
256718
- return visitor(key2, node, path5);
256715
+ return visitor(key5, node, path5);
256719
256716
  if (identity2.isMap(node))
256720
- return visitor.Map?.(key2, node, path5);
256717
+ return visitor.Map?.(key5, node, path5);
256721
256718
  if (identity2.isSeq(node))
256722
- return visitor.Seq?.(key2, node, path5);
256719
+ return visitor.Seq?.(key5, node, path5);
256723
256720
  if (identity2.isPair(node))
256724
- return visitor.Pair?.(key2, node, path5);
256721
+ return visitor.Pair?.(key5, node, path5);
256725
256722
  if (identity2.isScalar(node))
256726
- return visitor.Scalar?.(key2, node, path5);
256723
+ return visitor.Scalar?.(key5, node, path5);
256727
256724
  if (identity2.isAlias(node))
256728
- return visitor.Alias?.(key2, node, path5);
256725
+ return visitor.Alias?.(key5, node, path5);
256729
256726
  return;
256730
256727
  }
256731
- function replaceNode(key2, path5, node) {
256728
+ function replaceNode(key5, path5, node) {
256732
256729
  const parent = path5[path5.length - 1];
256733
256730
  if (identity2.isCollection(parent)) {
256734
- parent.items[key2] = node;
256731
+ parent.items[key5] = node;
256735
256732
  } else if (identity2.isPair(parent)) {
256736
- if (key2 === "key")
256733
+ if (key5 === "key")
256737
256734
  parent.key = node;
256738
256735
  else
256739
256736
  parent.value = node;
@@ -256965,7 +256962,7 @@ var require_anchors = __commonJS((exports) => {
256965
256962
 
256966
256963
  // ../../node_modules/yaml/dist/doc/applyReviver.js
256967
256964
  var require_applyReviver = __commonJS((exports) => {
256968
- function applyReviver(reviver, obj, key2, val) {
256965
+ function applyReviver(reviver, obj, key5, val) {
256969
256966
  if (val && typeof val === "object") {
256970
256967
  if (Array.isArray(val)) {
256971
256968
  for (let i6 = 0, len = val.length;i6 < len; ++i6) {
@@ -257005,7 +257002,7 @@ var require_applyReviver = __commonJS((exports) => {
257005
257002
  }
257006
257003
  }
257007
257004
  }
257008
- return reviver.call(obj, key2, val);
257005
+ return reviver.call(obj, key5, val);
257009
257006
  }
257010
257007
  exports.applyReviver = applyReviver;
257011
257008
  });
@@ -257323,29 +257320,29 @@ var require_Collection = __commonJS((exports) => {
257323
257320
  if (isEmptyPath(path5))
257324
257321
  this.add(value4);
257325
257322
  else {
257326
- const [key2, ...rest] = path5;
257327
- const node = this.get(key2, true);
257323
+ const [key5, ...rest] = path5;
257324
+ const node = this.get(key5, true);
257328
257325
  if (identity2.isCollection(node))
257329
257326
  node.addIn(rest, value4);
257330
257327
  else if (node === undefined && this.schema)
257331
- this.set(key2, collectionFromPath(this.schema, rest, value4));
257328
+ this.set(key5, collectionFromPath(this.schema, rest, value4));
257332
257329
  else
257333
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257330
+ throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
257334
257331
  }
257335
257332
  }
257336
257333
  deleteIn(path5) {
257337
- const [key2, ...rest] = path5;
257334
+ const [key5, ...rest] = path5;
257338
257335
  if (rest.length === 0)
257339
- return this.delete(key2);
257340
- const node = this.get(key2, true);
257336
+ return this.delete(key5);
257337
+ const node = this.get(key5, true);
257341
257338
  if (identity2.isCollection(node))
257342
257339
  return node.deleteIn(rest);
257343
257340
  else
257344
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257341
+ throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
257345
257342
  }
257346
257343
  getIn(path5, keepScalar) {
257347
- const [key2, ...rest] = path5;
257348
- const node = this.get(key2, true);
257344
+ const [key5, ...rest] = path5;
257345
+ const node = this.get(key5, true);
257349
257346
  if (rest.length === 0)
257350
257347
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
257351
257348
  else
@@ -257360,24 +257357,24 @@ var require_Collection = __commonJS((exports) => {
257360
257357
  });
257361
257358
  }
257362
257359
  hasIn(path5) {
257363
- const [key2, ...rest] = path5;
257360
+ const [key5, ...rest] = path5;
257364
257361
  if (rest.length === 0)
257365
- return this.has(key2);
257366
- const node = this.get(key2, true);
257362
+ return this.has(key5);
257363
+ const node = this.get(key5, true);
257367
257364
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
257368
257365
  }
257369
257366
  setIn(path5, value4) {
257370
- const [key2, ...rest] = path5;
257367
+ const [key5, ...rest] = path5;
257371
257368
  if (rest.length === 0) {
257372
- this.set(key2, value4);
257369
+ this.set(key5, value4);
257373
257370
  } else {
257374
- const node = this.get(key2, true);
257371
+ const node = this.get(key5, true);
257375
257372
  if (identity2.isCollection(node))
257376
257373
  node.setIn(rest, value4);
257377
257374
  else if (node === undefined && this.schema)
257378
- this.set(key2, collectionFromPath(this.schema, rest, value4));
257375
+ this.set(key5, collectionFromPath(this.schema, rest, value4));
257379
257376
  else
257380
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257377
+ throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
257381
257378
  }
257382
257379
  }
257383
257380
  }
@@ -257965,19 +257962,19 @@ var require_stringifyPair = __commonJS((exports) => {
257965
257962
  var Scalar = require_Scalar();
257966
257963
  var stringify3 = require_stringify();
257967
257964
  var stringifyComment = require_stringifyComment();
257968
- function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
257965
+ function stringifyPair2({ key: key5, value: value4 }, ctx, onComment, onChompKeep) {
257969
257966
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
257970
- let keyComment = identity2.isNode(key2) && key2.comment || null;
257967
+ let keyComment = identity2.isNode(key5) && key5.comment || null;
257971
257968
  if (simpleKeys) {
257972
257969
  if (keyComment) {
257973
257970
  throw new Error("With simple keys, key nodes cannot have comments");
257974
257971
  }
257975
- if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
257972
+ if (identity2.isCollection(key5) || !identity2.isNode(key5) && typeof key5 === "object") {
257976
257973
  const msg = "With simple keys, collection cannot be used as a key value";
257977
257974
  throw new Error(msg);
257978
257975
  }
257979
257976
  }
257980
- let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
257977
+ let explicitKey = !simpleKeys && (!key5 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key5) || (identity2.isScalar(key5) ? key5.type === Scalar.Scalar.BLOCK_FOLDED || key5.type === Scalar.Scalar.BLOCK_LITERAL : typeof key5 === "object"));
257981
257978
  ctx = Object.assign({}, ctx, {
257982
257979
  allNullValues: false,
257983
257980
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -257985,7 +257982,7 @@ var require_stringifyPair = __commonJS((exports) => {
257985
257982
  });
257986
257983
  let keyCommentDone = false;
257987
257984
  let chompKeep = false;
257988
- let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
257985
+ let str = stringify3.stringify(key5, ctx, () => keyCommentDone = true, () => chompKeep = true);
257989
257986
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
257990
257987
  if (simpleKeys)
257991
257988
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -258129,7 +258126,7 @@ var require_merge = __commonJS((exports) => {
258129
258126
  }),
258130
258127
  stringify: () => MERGE_KEY
258131
258128
  };
258132
- var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
258129
+ var isMergeKey = (ctx, key5) => (merge3.identify(key5) || identity2.isScalar(key5) && (!key5.type || key5.type === Scalar.Scalar.PLAIN) && merge3.identify(key5.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
258133
258130
  function addMergeToJSMap(ctx, map3, value4) {
258134
258131
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
258135
258132
  if (identity2.isSeq(value4))
@@ -258146,14 +258143,14 @@ var require_merge = __commonJS((exports) => {
258146
258143
  if (!identity2.isMap(source))
258147
258144
  throw new Error("Merge sources must be maps or map aliases");
258148
258145
  const srcMap = source.toJSON(null, ctx, Map);
258149
- for (const [key2, value5] of srcMap) {
258146
+ for (const [key5, value5] of srcMap) {
258150
258147
  if (map3 instanceof Map) {
258151
- if (!map3.has(key2))
258152
- map3.set(key2, value5);
258148
+ if (!map3.has(key5))
258149
+ map3.set(key5, value5);
258153
258150
  } else if (map3 instanceof Set) {
258154
- map3.add(key2);
258155
- } else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
258156
- Object.defineProperty(map3, key2, {
258151
+ map3.add(key5);
258152
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key5)) {
258153
+ Object.defineProperty(map3, key5, {
258157
258154
  value: value5,
258158
258155
  writable: true,
258159
258156
  enumerable: true,
@@ -258175,19 +258172,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
258175
258172
  var stringify3 = require_stringify();
258176
258173
  var identity2 = require_identity();
258177
258174
  var toJS = require_toJS();
258178
- function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
258179
- if (identity2.isNode(key2) && key2.addToJSMap)
258180
- key2.addToJSMap(ctx, map3, value4);
258181
- else if (merge3.isMergeKey(ctx, key2))
258175
+ function addPairToJSMap(ctx, map3, { key: key5, value: value4 }) {
258176
+ if (identity2.isNode(key5) && key5.addToJSMap)
258177
+ key5.addToJSMap(ctx, map3, value4);
258178
+ else if (merge3.isMergeKey(ctx, key5))
258182
258179
  merge3.addMergeToJSMap(ctx, map3, value4);
258183
258180
  else {
258184
- const jsKey = toJS.toJS(key2, "", ctx);
258181
+ const jsKey = toJS.toJS(key5, "", ctx);
258185
258182
  if (map3 instanceof Map) {
258186
258183
  map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
258187
258184
  } else if (map3 instanceof Set) {
258188
258185
  map3.add(jsKey);
258189
258186
  } else {
258190
- const stringKey = stringifyKey(key2, jsKey, ctx);
258187
+ const stringKey = stringifyKey(key5, jsKey, ctx);
258191
258188
  const jsValue = toJS.toJS(value4, stringKey, ctx);
258192
258189
  if (stringKey in map3)
258193
258190
  Object.defineProperty(map3, stringKey, {
@@ -258202,19 +258199,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
258202
258199
  }
258203
258200
  return map3;
258204
258201
  }
258205
- function stringifyKey(key2, jsKey, ctx) {
258202
+ function stringifyKey(key5, jsKey, ctx) {
258206
258203
  if (jsKey === null)
258207
258204
  return "";
258208
258205
  if (typeof jsKey !== "object")
258209
258206
  return String(jsKey);
258210
- if (identity2.isNode(key2) && ctx?.doc) {
258207
+ if (identity2.isNode(key5) && ctx?.doc) {
258211
258208
  const strCtx = stringify3.createStringifyContext(ctx.doc, {});
258212
258209
  strCtx.anchors = new Set;
258213
258210
  for (const node of ctx.anchors.keys())
258214
258211
  strCtx.anchors.add(node.anchor);
258215
258212
  strCtx.inFlow = true;
258216
258213
  strCtx.inStringifyKey = true;
258217
- const strKey = key2.toString(strCtx);
258214
+ const strKey = key5.toString(strCtx);
258218
258215
  if (!ctx.mapKeyWarned) {
258219
258216
  let jsonStr = JSON.stringify(strKey);
258220
258217
  if (jsonStr.length > 40)
@@ -258235,25 +258232,25 @@ var require_Pair = __commonJS((exports) => {
258235
258232
  var stringifyPair2 = require_stringifyPair();
258236
258233
  var addPairToJSMap = require_addPairToJSMap();
258237
258234
  var identity2 = require_identity();
258238
- function createPair(key2, value4, ctx) {
258239
- const k5 = createNode.createNode(key2, undefined, ctx);
258235
+ function createPair(key5, value4, ctx) {
258236
+ const k5 = createNode.createNode(key5, undefined, ctx);
258240
258237
  const v7 = createNode.createNode(value4, undefined, ctx);
258241
258238
  return new Pair(k5, v7);
258242
258239
  }
258243
258240
 
258244
258241
  class Pair {
258245
- constructor(key2, value4 = null) {
258242
+ constructor(key5, value4 = null) {
258246
258243
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
258247
- this.key = key2;
258244
+ this.key = key5;
258248
258245
  this.value = value4;
258249
258246
  }
258250
258247
  clone(schema) {
258251
- let { key: key2, value: value4 } = this;
258252
- if (identity2.isNode(key2))
258253
- key2 = key2.clone(schema);
258248
+ let { key: key5, value: value4 } = this;
258249
+ if (identity2.isNode(key5))
258250
+ key5 = key5.clone(schema);
258254
258251
  if (identity2.isNode(value4))
258255
258252
  value4 = value4.clone(schema);
258256
- return new Pair(key2, value4);
258253
+ return new Pair(key5, value4);
258257
258254
  }
258258
258255
  toJSON(_5, ctx) {
258259
258256
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -258420,11 +258417,11 @@ var require_YAMLMap = __commonJS((exports) => {
258420
258417
  var identity2 = require_identity();
258421
258418
  var Pair = require_Pair();
258422
258419
  var Scalar = require_Scalar();
258423
- function findPair(items, key2) {
258424
- const k5 = identity2.isScalar(key2) ? key2.value : key2;
258420
+ function findPair(items, key5) {
258421
+ const k5 = identity2.isScalar(key5) ? key5.value : key5;
258425
258422
  for (const it2 of items) {
258426
258423
  if (identity2.isPair(it2)) {
258427
- if (it2.key === key2 || it2.key === k5)
258424
+ if (it2.key === key5 || it2.key === k5)
258428
258425
  return it2;
258429
258426
  if (identity2.isScalar(it2.key) && it2.key.value === k5)
258430
258427
  return it2;
@@ -258444,20 +258441,20 @@ var require_YAMLMap = __commonJS((exports) => {
258444
258441
  static from(schema, obj, ctx) {
258445
258442
  const { keepUndefined, replacer } = ctx;
258446
258443
  const map3 = new this(schema);
258447
- const add = (key2, value4) => {
258444
+ const add = (key5, value4) => {
258448
258445
  if (typeof replacer === "function")
258449
- value4 = replacer.call(obj, key2, value4);
258450
- else if (Array.isArray(replacer) && !replacer.includes(key2))
258446
+ value4 = replacer.call(obj, key5, value4);
258447
+ else if (Array.isArray(replacer) && !replacer.includes(key5))
258451
258448
  return;
258452
258449
  if (value4 !== undefined || keepUndefined)
258453
- map3.items.push(Pair.createPair(key2, value4, ctx));
258450
+ map3.items.push(Pair.createPair(key5, value4, ctx));
258454
258451
  };
258455
258452
  if (obj instanceof Map) {
258456
- for (const [key2, value4] of obj)
258457
- add(key2, value4);
258453
+ for (const [key5, value4] of obj)
258454
+ add(key5, value4);
258458
258455
  } else if (obj && typeof obj === "object") {
258459
- for (const key2 of Object.keys(obj))
258460
- add(key2, obj[key2]);
258456
+ for (const key5 of Object.keys(obj))
258457
+ add(key5, obj[key5]);
258461
258458
  }
258462
258459
  if (typeof schema.sortMapEntries === "function") {
258463
258460
  map3.items.sort(schema.sortMapEntries);
@@ -258491,23 +258488,23 @@ var require_YAMLMap = __commonJS((exports) => {
258491
258488
  this.items.push(_pair);
258492
258489
  }
258493
258490
  }
258494
- delete(key2) {
258495
- const it2 = findPair(this.items, key2);
258491
+ delete(key5) {
258492
+ const it2 = findPair(this.items, key5);
258496
258493
  if (!it2)
258497
258494
  return false;
258498
258495
  const del = this.items.splice(this.items.indexOf(it2), 1);
258499
258496
  return del.length > 0;
258500
258497
  }
258501
- get(key2, keepScalar) {
258502
- const it2 = findPair(this.items, key2);
258498
+ get(key5, keepScalar) {
258499
+ const it2 = findPair(this.items, key5);
258503
258500
  const node = it2?.value;
258504
258501
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
258505
258502
  }
258506
- has(key2) {
258507
- return !!findPair(this.items, key2);
258503
+ has(key5) {
258504
+ return !!findPair(this.items, key5);
258508
258505
  }
258509
- set(key2, value4) {
258510
- this.add(new Pair.Pair(key2, value4), true);
258506
+ set(key5, value4) {
258507
+ this.add(new Pair.Pair(key5, value4), true);
258511
258508
  }
258512
258509
  toJSON(_5, ctx, Type) {
258513
258510
  const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -258578,28 +258575,28 @@ var require_YAMLSeq = __commonJS((exports) => {
258578
258575
  add(value4) {
258579
258576
  this.items.push(value4);
258580
258577
  }
258581
- delete(key2) {
258582
- const idx = asItemIndex(key2);
258578
+ delete(key5) {
258579
+ const idx = asItemIndex(key5);
258583
258580
  if (typeof idx !== "number")
258584
258581
  return false;
258585
258582
  const del = this.items.splice(idx, 1);
258586
258583
  return del.length > 0;
258587
258584
  }
258588
- get(key2, keepScalar) {
258589
- const idx = asItemIndex(key2);
258585
+ get(key5, keepScalar) {
258586
+ const idx = asItemIndex(key5);
258590
258587
  if (typeof idx !== "number")
258591
258588
  return;
258592
258589
  const it2 = this.items[idx];
258593
258590
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
258594
258591
  }
258595
- has(key2) {
258596
- const idx = asItemIndex(key2);
258592
+ has(key5) {
258593
+ const idx = asItemIndex(key5);
258597
258594
  return typeof idx === "number" && idx < this.items.length;
258598
258595
  }
258599
- set(key2, value4) {
258600
- const idx = asItemIndex(key2);
258596
+ set(key5, value4) {
258597
+ const idx = asItemIndex(key5);
258601
258598
  if (typeof idx !== "number")
258602
- throw new Error(`Expected a valid index, not ${key2}.`);
258599
+ throw new Error(`Expected a valid index, not ${key5}.`);
258603
258600
  const prev = this.items[idx];
258604
258601
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
258605
258602
  prev.value = value4;
@@ -258633,8 +258630,8 @@ var require_YAMLSeq = __commonJS((exports) => {
258633
258630
  let i6 = 0;
258634
258631
  for (let it2 of obj) {
258635
258632
  if (typeof replacer === "function") {
258636
- const key2 = obj instanceof Set ? it2 : String(i6++);
258637
- it2 = replacer.call(obj, key2, it2);
258633
+ const key5 = obj instanceof Set ? it2 : String(i6++);
258634
+ it2 = replacer.call(obj, key5, it2);
258638
258635
  }
258639
258636
  seq.items.push(createNode.createNode(it2, undefined, ctx));
258640
258637
  }
@@ -258642,8 +258639,8 @@ var require_YAMLSeq = __commonJS((exports) => {
258642
258639
  return seq;
258643
258640
  }
258644
258641
  }
258645
- function asItemIndex(key2) {
258646
- let idx = identity2.isScalar(key2) ? key2.value : key2;
258642
+ function asItemIndex(key5) {
258643
+ let idx = identity2.isScalar(key5) ? key5.value : key5;
258647
258644
  if (idx && typeof idx === "string")
258648
258645
  idx = Number(idx);
258649
258646
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -259015,25 +259012,25 @@ ${cn.comment}` : item.comment;
259015
259012
  for (let it2 of iterable) {
259016
259013
  if (typeof replacer === "function")
259017
259014
  it2 = replacer.call(iterable, String(i6++), it2);
259018
- let key2, value4;
259015
+ let key5, value4;
259019
259016
  if (Array.isArray(it2)) {
259020
259017
  if (it2.length === 2) {
259021
- key2 = it2[0];
259018
+ key5 = it2[0];
259022
259019
  value4 = it2[1];
259023
259020
  } else
259024
259021
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
259025
259022
  } else if (it2 && it2 instanceof Object) {
259026
259023
  const keys = Object.keys(it2);
259027
259024
  if (keys.length === 1) {
259028
- key2 = keys[0];
259029
- value4 = it2[key2];
259025
+ key5 = keys[0];
259026
+ value4 = it2[key5];
259030
259027
  } else {
259031
259028
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
259032
259029
  }
259033
259030
  } else {
259034
- key2 = it2;
259031
+ key5 = it2;
259035
259032
  }
259036
- pairs2.items.push(Pair.createPair(key2, value4, ctx));
259033
+ pairs2.items.push(Pair.createPair(key5, value4, ctx));
259037
259034
  }
259038
259035
  return pairs2;
259039
259036
  }
@@ -259074,16 +259071,16 @@ var require_omap = __commonJS((exports) => {
259074
259071
  if (ctx?.onCreate)
259075
259072
  ctx.onCreate(map3);
259076
259073
  for (const pair of this.items) {
259077
- let key2, value4;
259074
+ let key5, value4;
259078
259075
  if (identity2.isPair(pair)) {
259079
- key2 = toJS.toJS(pair.key, "", ctx);
259080
- value4 = toJS.toJS(pair.value, key2, ctx);
259076
+ key5 = toJS.toJS(pair.key, "", ctx);
259077
+ value4 = toJS.toJS(pair.value, key5, ctx);
259081
259078
  } else {
259082
- key2 = toJS.toJS(pair, "", ctx);
259079
+ key5 = toJS.toJS(pair, "", ctx);
259083
259080
  }
259084
- if (map3.has(key2))
259081
+ if (map3.has(key5))
259085
259082
  throw new Error("Ordered maps must not include duplicate keys");
259086
- map3.set(key2, value4);
259083
+ map3.set(key5, value4);
259087
259084
  }
259088
259085
  return map3;
259089
259086
  }
@@ -259104,12 +259101,12 @@ var require_omap = __commonJS((exports) => {
259104
259101
  resolve(seq, onError) {
259105
259102
  const pairs$1 = pairs.resolvePairs(seq, onError);
259106
259103
  const seenKeys = [];
259107
- for (const { key: key2 } of pairs$1.items) {
259108
- if (identity2.isScalar(key2)) {
259109
- if (seenKeys.includes(key2.value)) {
259110
- onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
259104
+ for (const { key: key5 } of pairs$1.items) {
259105
+ if (identity2.isScalar(key5)) {
259106
+ if (seenKeys.includes(key5.value)) {
259107
+ onError(`Ordered maps must not include duplicate keys: ${key5.value}`);
259111
259108
  } else {
259112
- seenKeys.push(key2.value);
259109
+ seenKeys.push(key5.value);
259113
259110
  }
259114
259111
  }
259115
259112
  }
@@ -259283,30 +259280,30 @@ var require_set = __commonJS((exports) => {
259283
259280
  super(schema);
259284
259281
  this.tag = YAMLSet.tag;
259285
259282
  }
259286
- add(key2) {
259283
+ add(key5) {
259287
259284
  let pair;
259288
- if (identity2.isPair(key2))
259289
- pair = key2;
259290
- else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
259291
- pair = new Pair.Pair(key2.key, null);
259285
+ if (identity2.isPair(key5))
259286
+ pair = key5;
259287
+ else if (key5 && typeof key5 === "object" && "key" in key5 && "value" in key5 && key5.value === null)
259288
+ pair = new Pair.Pair(key5.key, null);
259292
259289
  else
259293
- pair = new Pair.Pair(key2, null);
259290
+ pair = new Pair.Pair(key5, null);
259294
259291
  const prev = YAMLMap.findPair(this.items, pair.key);
259295
259292
  if (!prev)
259296
259293
  this.items.push(pair);
259297
259294
  }
259298
- get(key2, keepPair) {
259299
- const pair = YAMLMap.findPair(this.items, key2);
259295
+ get(key5, keepPair) {
259296
+ const pair = YAMLMap.findPair(this.items, key5);
259300
259297
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
259301
259298
  }
259302
- set(key2, value4) {
259299
+ set(key5, value4) {
259303
259300
  if (typeof value4 !== "boolean")
259304
259301
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
259305
- const prev = YAMLMap.findPair(this.items, key2);
259302
+ const prev = YAMLMap.findPair(this.items, key5);
259306
259303
  if (prev && !value4) {
259307
259304
  this.items.splice(this.items.indexOf(prev), 1);
259308
259305
  } else if (!prev && value4) {
259309
- this.items.push(new Pair.Pair(key2));
259306
+ this.items.push(new Pair.Pair(key5));
259310
259307
  }
259311
259308
  }
259312
259309
  toJSON(_5, ctx) {
@@ -259541,7 +259538,7 @@ var require_tags = __commonJS((exports) => {
259541
259538
  if (Array.isArray(customTags))
259542
259539
  tags = [];
259543
259540
  else {
259544
- const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
259541
+ const keys = Array.from(schemas.keys()).filter((key5) => key5 !== "yaml11").map((key5) => JSON.stringify(key5)).join(", ");
259545
259542
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
259546
259543
  }
259547
259544
  }
@@ -259557,7 +259554,7 @@ var require_tags = __commonJS((exports) => {
259557
259554
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
259558
259555
  if (!tagObj) {
259559
259556
  const tagName = JSON.stringify(tag);
259560
- const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
259557
+ const keys = Object.keys(tagsByName).map((key5) => JSON.stringify(key5)).join(", ");
259561
259558
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
259562
259559
  }
259563
259560
  if (!tags2.includes(tagObj))
@@ -259792,13 +259789,13 @@ var require_Document = __commonJS((exports) => {
259792
259789
  setAnchors();
259793
259790
  return node;
259794
259791
  }
259795
- createPair(key2, value4, options = {}) {
259796
- const k5 = this.createNode(key2, null, options);
259792
+ createPair(key5, value4, options = {}) {
259793
+ const k5 = this.createNode(key5, null, options);
259797
259794
  const v7 = this.createNode(value4, null, options);
259798
259795
  return new Pair.Pair(k5, v7);
259799
259796
  }
259800
- delete(key2) {
259801
- return assertCollection(this.contents) ? this.contents.delete(key2) : false;
259797
+ delete(key5) {
259798
+ return assertCollection(this.contents) ? this.contents.delete(key5) : false;
259802
259799
  }
259803
259800
  deleteIn(path5) {
259804
259801
  if (Collection.isEmptyPath(path5)) {
@@ -259809,27 +259806,27 @@ var require_Document = __commonJS((exports) => {
259809
259806
  }
259810
259807
  return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
259811
259808
  }
259812
- get(key2, keepScalar) {
259813
- return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
259809
+ get(key5, keepScalar) {
259810
+ return identity2.isCollection(this.contents) ? this.contents.get(key5, keepScalar) : undefined;
259814
259811
  }
259815
259812
  getIn(path5, keepScalar) {
259816
259813
  if (Collection.isEmptyPath(path5))
259817
259814
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
259818
259815
  return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
259819
259816
  }
259820
- has(key2) {
259821
- return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
259817
+ has(key5) {
259818
+ return identity2.isCollection(this.contents) ? this.contents.has(key5) : false;
259822
259819
  }
259823
259820
  hasIn(path5) {
259824
259821
  if (Collection.isEmptyPath(path5))
259825
259822
  return this.contents !== undefined;
259826
259823
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
259827
259824
  }
259828
- set(key2, value4) {
259825
+ set(key5, value4) {
259829
259826
  if (this.contents == null) {
259830
- this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
259827
+ this.contents = Collection.collectionFromPath(this.schema, [key5], value4);
259831
259828
  } else if (assertCollection(this.contents)) {
259832
- this.contents.set(key2, value4);
259829
+ this.contents.set(key5, value4);
259833
259830
  }
259834
259831
  }
259835
259832
  setIn(path5, value4) {
@@ -260113,25 +260110,25 @@ var require_resolve_props = __commonJS((exports) => {
260113
260110
 
260114
260111
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
260115
260112
  var require_util_contains_newline = __commonJS((exports) => {
260116
- function containsNewline(key2) {
260117
- if (!key2)
260113
+ function containsNewline(key5) {
260114
+ if (!key5)
260118
260115
  return null;
260119
- switch (key2.type) {
260116
+ switch (key5.type) {
260120
260117
  case "alias":
260121
260118
  case "scalar":
260122
260119
  case "double-quoted-scalar":
260123
260120
  case "single-quoted-scalar":
260124
- if (key2.source.includes(`
260121
+ if (key5.source.includes(`
260125
260122
  `))
260126
260123
  return true;
260127
- if (key2.end) {
260128
- for (const st2 of key2.end)
260124
+ if (key5.end) {
260125
+ for (const st2 of key5.end)
260129
260126
  if (st2.type === "newline")
260130
260127
  return true;
260131
260128
  }
260132
260129
  return false;
260133
260130
  case "flow-collection":
260134
- for (const it2 of key2.items) {
260131
+ for (const it2 of key5.items) {
260135
260132
  for (const st2 of it2.start)
260136
260133
  if (st2.type === "newline")
260137
260134
  return true;
@@ -260196,10 +260193,10 @@ var require_resolve_block_map = __commonJS((exports) => {
260196
260193
  let offset = bm.offset;
260197
260194
  let commentEnd = null;
260198
260195
  for (const collItem of bm.items) {
260199
- const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
260196
+ const { start: start3, key: key5, sep: sep3, value: value4 } = collItem;
260200
260197
  const keyProps = resolveProps.resolveProps(start3, {
260201
260198
  indicator: "explicit-key-ind",
260202
- next: key2 ?? sep3?.[0],
260199
+ next: key5 ?? sep3?.[0],
260203
260200
  offset,
260204
260201
  onError,
260205
260202
  parentIndent: bm.indent,
@@ -260207,10 +260204,10 @@ var require_resolve_block_map = __commonJS((exports) => {
260207
260204
  });
260208
260205
  const implicitKey = !keyProps.found;
260209
260206
  if (implicitKey) {
260210
- if (key2) {
260211
- if (key2.type === "block-seq")
260207
+ if (key5) {
260208
+ if (key5.type === "block-seq")
260212
260209
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
260213
- else if ("indent" in key2 && key2.indent !== bm.indent)
260210
+ else if ("indent" in key5 && key5.indent !== bm.indent)
260214
260211
  onError(offset, "BAD_INDENT", startColMsg);
260215
260212
  }
260216
260213
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -260224,17 +260221,17 @@ var require_resolve_block_map = __commonJS((exports) => {
260224
260221
  }
260225
260222
  continue;
260226
260223
  }
260227
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
260228
- onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
260224
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key5)) {
260225
+ onError(key5 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
260229
260226
  }
260230
260227
  } else if (keyProps.found?.indent !== bm.indent) {
260231
260228
  onError(offset, "BAD_INDENT", startColMsg);
260232
260229
  }
260233
260230
  ctx.atKey = true;
260234
260231
  const keyStart = keyProps.end;
260235
- const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
260232
+ const keyNode = key5 ? composeNode(ctx, key5, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
260236
260233
  if (ctx.schema.compat)
260237
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
260234
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key5, onError);
260238
260235
  ctx.atKey = false;
260239
260236
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
260240
260237
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -260244,7 +260241,7 @@ var require_resolve_block_map = __commonJS((exports) => {
260244
260241
  offset: keyNode.range[2],
260245
260242
  onError,
260246
260243
  parentIndent: bm.indent,
260247
- startOnNewline: !key2 || key2.type === "block-scalar"
260244
+ startOnNewline: !key5 || key5.type === "block-scalar"
260248
260245
  });
260249
260246
  offset = valueProps.end;
260250
260247
  if (valueProps.found) {
@@ -260400,11 +260397,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260400
260397
  let offset = fc.offset + fc.start.source.length;
260401
260398
  for (let i6 = 0;i6 < fc.items.length; ++i6) {
260402
260399
  const collItem = fc.items[i6];
260403
- const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
260400
+ const { start: start3, key: key5, sep: sep3, value: value4 } = collItem;
260404
260401
  const props = resolveProps.resolveProps(start3, {
260405
260402
  flow: fcName,
260406
260403
  indicator: "explicit-key-ind",
260407
- next: key2 ?? sep3?.[0],
260404
+ next: key5 ?? sep3?.[0],
260408
260405
  offset,
260409
260406
  onError,
260410
260407
  parentIndent: fc.indent,
@@ -260426,8 +260423,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260426
260423
  offset = props.end;
260427
260424
  continue;
260428
260425
  }
260429
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
260430
- onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
260426
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key5))
260427
+ onError(key5, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
260431
260428
  }
260432
260429
  if (i6 === 0) {
260433
260430
  if (props.comma)
@@ -260472,8 +260469,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260472
260469
  } else {
260473
260470
  ctx.atKey = true;
260474
260471
  const keyStart = props.end;
260475
- const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
260476
- if (isBlock(key2))
260472
+ const keyNode = key5 ? composeNode(ctx, key5, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
260473
+ if (isBlock(key5))
260477
260474
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
260478
260475
  ctx.atKey = false;
260479
260476
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -261285,7 +261282,7 @@ var require_composer = __commonJS((exports) => {
261285
261282
  var node_process = __require("node:process");
261286
261283
  var directives4 = require_directives2();
261287
261284
  var Document = require_Document();
261288
- var errors2 = require_errors3();
261285
+ var errors5 = require_errors3();
261289
261286
  var identity2 = require_identity();
261290
261287
  var composeDoc = require_compose_doc();
261291
261288
  var resolveEnd = require_resolve_end();
@@ -261336,9 +261333,9 @@ var require_composer = __commonJS((exports) => {
261336
261333
  this.onError = (source, code2, message, warning) => {
261337
261334
  const pos = getErrorPos(source);
261338
261335
  if (warning)
261339
- this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
261336
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
261340
261337
  else
261341
- this.errors.push(new errors2.YAMLParseError(pos, code2, message));
261338
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
261342
261339
  };
261343
261340
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
261344
261341
  this.options = options;
@@ -261422,7 +261419,7 @@ ${cb}` : comment;
261422
261419
  break;
261423
261420
  case "error": {
261424
261421
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
261425
- const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
261422
+ const error5 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
261426
261423
  if (this.atDirectives || !this.doc)
261427
261424
  this.errors.push(error5);
261428
261425
  else
@@ -261432,7 +261429,7 @@ ${cb}` : comment;
261432
261429
  case "doc-end": {
261433
261430
  if (!this.doc) {
261434
261431
  const msg = "Unexpected doc-end without preceding document";
261435
- this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
261432
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
261436
261433
  break;
261437
261434
  }
261438
261435
  this.doc.directives.docEnd = true;
@@ -261447,7 +261444,7 @@ ${end.comment}` : end.comment;
261447
261444
  break;
261448
261445
  }
261449
261446
  default:
261450
- this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
261447
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
261451
261448
  }
261452
261449
  }
261453
261450
  *end(forceDoc = false, endOffset = -1) {
@@ -261473,7 +261470,7 @@ ${end.comment}` : end.comment;
261473
261470
  var require_cst_scalar = __commonJS((exports) => {
261474
261471
  var resolveBlockScalar = require_resolve_block_scalar();
261475
261472
  var resolveFlowScalar = require_resolve_flow_scalar();
261476
- var errors2 = require_errors3();
261473
+ var errors5 = require_errors3();
261477
261474
  var stringifyString = require_stringifyString();
261478
261475
  function resolveAsScalar(token, strict = true, onError) {
261479
261476
  if (token) {
@@ -261482,7 +261479,7 @@ var require_cst_scalar = __commonJS((exports) => {
261482
261479
  if (onError)
261483
261480
  onError(offset, code2, message);
261484
261481
  else
261485
- throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
261482
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
261486
261483
  };
261487
261484
  switch (token.type) {
261488
261485
  case "scalar":
@@ -261596,9 +261593,9 @@ var require_cst_scalar = __commonJS((exports) => {
261596
261593
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
261597
261594
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
261598
261595
  ` });
261599
- for (const key2 of Object.keys(token))
261600
- if (key2 !== "type" && key2 !== "offset")
261601
- delete token[key2];
261596
+ for (const key5 of Object.keys(token))
261597
+ if (key5 !== "type" && key5 !== "offset")
261598
+ delete token[key5];
261602
261599
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
261603
261600
  }
261604
261601
  }
@@ -261647,9 +261644,9 @@ var require_cst_scalar = __commonJS((exports) => {
261647
261644
  default: {
261648
261645
  const indent2 = "indent" in token ? token.indent : -1;
261649
261646
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
261650
- for (const key2 of Object.keys(token))
261651
- if (key2 !== "type" && key2 !== "offset")
261652
- delete token[key2];
261647
+ for (const key5 of Object.keys(token))
261648
+ if (key5 !== "type" && key5 !== "offset")
261649
+ delete token[key5];
261653
261650
  Object.assign(token, { type: type4, indent: indent2, source, end });
261654
261651
  }
261655
261652
  }
@@ -261701,12 +261698,12 @@ var require_cst_stringify = __commonJS((exports) => {
261701
261698
  }
261702
261699
  }
261703
261700
  }
261704
- function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
261701
+ function stringifyItem({ start: start3, key: key5, sep: sep3, value: value4 }) {
261705
261702
  let res = "";
261706
261703
  for (const st2 of start3)
261707
261704
  res += st2.source;
261708
- if (key2)
261709
- res += stringifyToken(key2);
261705
+ if (key5)
261706
+ res += stringifyToken(key5);
261710
261707
  if (sep3)
261711
261708
  for (const st2 of sep3)
261712
261709
  res += st2.source;
@@ -263003,7 +263000,7 @@ var require_parser2 = __commonJS((exports) => {
263003
263000
  });
263004
263001
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
263005
263002
  const start4 = getFirstKeyStartProps(it2.start);
263006
- const key2 = it2.key;
263003
+ const key5 = it2.key;
263007
263004
  const sep3 = it2.sep;
263008
263005
  sep3.push(this.sourceToken);
263009
263006
  delete it2.key;
@@ -263012,7 +263009,7 @@ var require_parser2 = __commonJS((exports) => {
263012
263009
  type: "block-map",
263013
263010
  offset: this.offset,
263014
263011
  indent: this.indent,
263015
- items: [{ start: start4, key: key2, sep: sep3 }]
263012
+ items: [{ start: start4, key: key5, sep: sep3 }]
263016
263013
  });
263017
263014
  } else if (start3.length > 0) {
263018
263015
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -263335,7 +263332,7 @@ var require_parser2 = __commonJS((exports) => {
263335
263332
  var require_public_api = __commonJS((exports) => {
263336
263333
  var composer = require_composer();
263337
263334
  var Document = require_Document();
263338
- var errors2 = require_errors3();
263335
+ var errors5 = require_errors3();
263339
263336
  var log = require_log();
263340
263337
  var identity2 = require_identity();
263341
263338
  var lineCounter = require_line_counter();
@@ -263352,8 +263349,8 @@ var require_public_api = __commonJS((exports) => {
263352
263349
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
263353
263350
  if (prettyErrors && lineCounter2)
263354
263351
  for (const doc of docs) {
263355
- doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
263356
- doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
263352
+ doc.errors.forEach(errors5.prettifyError(source, lineCounter2));
263353
+ doc.warnings.forEach(errors5.prettifyError(source, lineCounter2));
263357
263354
  }
263358
263355
  if (docs.length > 0)
263359
263356
  return docs;
@@ -263368,13 +263365,13 @@ var require_public_api = __commonJS((exports) => {
263368
263365
  if (!doc)
263369
263366
  doc = _doc;
263370
263367
  else if (doc.options.logLevel !== "silent") {
263371
- doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
263368
+ doc.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
263372
263369
  break;
263373
263370
  }
263374
263371
  }
263375
263372
  if (prettyErrors && lineCounter2) {
263376
- doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
263377
- doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
263373
+ doc.errors.forEach(errors5.prettifyError(source, lineCounter2));
263374
+ doc.warnings.forEach(errors5.prettifyError(source, lineCounter2));
263378
263375
  }
263379
263376
  return doc;
263380
263377
  }
@@ -274462,7 +274459,7 @@ function pruneCurrentEnv(currentEnv, env2) {
274462
274459
  var package_default = {
274463
274460
  name: "@settlemint/sdk-cli",
274464
274461
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
274465
- version: "1.1.3-pr83196aab",
274462
+ version: "1.1.3-pra26dc90a",
274466
274463
  type: "module",
274467
274464
  private: false,
274468
274465
  license: "FSL-1.1-MIT",
@@ -274507,18 +274504,18 @@ var package_default = {
274507
274504
  devDependencies: {
274508
274505
  "@commander-js/extra-typings": "13.1.0",
274509
274506
  "@inquirer/confirm": "5.1.5",
274510
- "@inquirer/input": "4.1.5",
274511
- "@inquirer/password": "4.0.8",
274512
- "@inquirer/select": "4.0.8",
274513
- "@settlemint/sdk-js": "1.1.3-pr83196aab",
274514
- "@settlemint/sdk-utils": "1.1.3-pr83196aab",
274515
- "@types/node": "22.13.1",
274507
+ "@inquirer/input": "4.1.4",
274508
+ "@inquirer/password": "4.0.7",
274509
+ "@inquirer/select": "4.0.7",
274510
+ "@settlemint/sdk-js": "1.1.3-pra26dc90a",
274511
+ "@settlemint/sdk-utils": "1.1.3-pra26dc90a",
274512
+ "@types/node": "22.13.0",
274516
274513
  "@types/semver": "7.5.8",
274517
274514
  "@types/which": "3.0.4",
274518
274515
  "get-tsconfig": "4.10.0",
274519
274516
  giget: "1.2.4",
274520
274517
  "is-in-ci": "1.0.0",
274521
- semver: "7.7.1",
274518
+ semver: "7.7.0",
274522
274519
  slugify: "1.6.6",
274523
274520
  which: "5.0.0",
274524
274521
  yaml: "2.7.0",
@@ -274601,10 +274598,6 @@ var {
274601
274598
  } = import__.default;
274602
274599
 
274603
274600
  // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
274604
- var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
274605
- var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
274606
- var isBackspaceKey = (key) => key.name === "backspace";
274607
- var isNumberKey = (key) => "123456789".includes(key.name);
274608
274601
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
274609
274602
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
274610
274603
  class AbortPromptError extends Error {
@@ -275139,22 +275132,11 @@ function usePrefix({ status = "idle", theme }) {
275139
275132
  const iconName = status === "loading" ? "idle" : status;
275140
275133
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
275141
275134
  }
275142
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
275143
- function useMemo(fn, dependencies) {
275144
- return withPointer((pointer) => {
275145
- const prev = pointer.get();
275146
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
275147
- const value = fn();
275148
- pointer.set({ value, dependencies });
275149
- return value;
275150
- }
275151
- return prev.value;
275152
- });
275153
- }
275154
275135
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
275155
275136
  function useRef(val) {
275156
275137
  return useState({ current: val })[0];
275157
275138
  }
275139
+
275158
275140
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
275159
275141
  function useKeypress(userHandler) {
275160
275142
  const signal = useRef(userHandler);
@@ -275186,95 +275168,6 @@ function readlineWidth() {
275186
275168
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
275187
275169
  }
275188
275170
 
275189
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
275190
- function split(content, width) {
275191
- return breakLines(content, width).split(`
275192
- `);
275193
- }
275194
- function rotate(count, items) {
275195
- const max = items.length;
275196
- const offset = (count % max + max) % max;
275197
- return [...items.slice(offset), ...items.slice(0, offset)];
275198
- }
275199
- function lines({ items, width, renderItem, active, position: requested, pageSize }) {
275200
- const layouts = items.map((item, index) => ({
275201
- item,
275202
- index,
275203
- isActive: index === active
275204
- }));
275205
- const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
275206
- const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split(renderItem(layoutsInPage[index]), width);
275207
- const pageBuffer = Array.from({ length: pageSize });
275208
- const activeItem = renderItemAt(requested).slice(0, pageSize);
275209
- const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
275210
- pageBuffer.splice(position, activeItem.length, ...activeItem);
275211
- let bufferPointer = position + activeItem.length;
275212
- let layoutPointer = requested + 1;
275213
- while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
275214
- for (const line of renderItemAt(layoutPointer)) {
275215
- pageBuffer[bufferPointer++] = line;
275216
- if (bufferPointer >= pageSize)
275217
- break;
275218
- }
275219
- layoutPointer++;
275220
- }
275221
- bufferPointer = position - 1;
275222
- layoutPointer = requested - 1;
275223
- while (bufferPointer >= 0 && layoutPointer >= 0) {
275224
- for (const line of renderItemAt(layoutPointer).reverse()) {
275225
- pageBuffer[bufferPointer--] = line;
275226
- if (bufferPointer < 0)
275227
- break;
275228
- }
275229
- layoutPointer--;
275230
- }
275231
- return pageBuffer.filter((line) => typeof line === "string");
275232
- }
275233
-
275234
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
275235
- function finite({ active, pageSize, total }) {
275236
- const middle = Math.floor(pageSize / 2);
275237
- if (total <= pageSize || active < middle)
275238
- return active;
275239
- if (active >= total - middle)
275240
- return active + pageSize - total;
275241
- return middle;
275242
- }
275243
- function infinite({ active, lastActive, total, pageSize, pointer }) {
275244
- if (total <= pageSize)
275245
- return active;
275246
- if (lastActive < active && active - lastActive < pageSize) {
275247
- return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
275248
- }
275249
- return pointer;
275250
- }
275251
-
275252
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
275253
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
275254
- const state = useRef({ position: 0, lastActive: 0 });
275255
- const position = loop ? infinite({
275256
- active,
275257
- lastActive: state.current.lastActive,
275258
- total: items.length,
275259
- pageSize,
275260
- pointer: state.current.position
275261
- }) : finite({
275262
- active,
275263
- total: items.length,
275264
- pageSize
275265
- });
275266
- state.current.position = position;
275267
- state.current.lastActive = active;
275268
- return lines({
275269
- items,
275270
- width: readlineWidth(),
275271
- renderItem,
275272
- active,
275273
- position,
275274
- pageSize
275275
- }).join(`
275276
- `);
275277
- }
275278
275171
  // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
275279
275172
  var import_mute_stream = __toESM(require_lib(), 1);
275280
275173
  import * as readline2 from "node:readline";
@@ -275660,20 +275553,6 @@ function createPrompt(view) {
275660
275553
  };
275661
275554
  return prompt;
275662
275555
  }
275663
- // ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
275664
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
275665
- class Separator {
275666
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
275667
- type = "separator";
275668
- constructor(separator) {
275669
- if (separator) {
275670
- this.separator = separator;
275671
- }
275672
- }
275673
- static isSeparator(choice) {
275674
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
275675
- }
275676
- }
275677
275556
  // ../utils/dist/terminal.mjs
275678
275557
  import { spawn } from "node:child_process";
275679
275558
  var import_console_table_printer2 = __toESM(require_dist2(), 1);
@@ -279680,14 +279559,586 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
279680
279559
  };
279681
279560
  }
279682
279561
 
279683
- // ../../node_modules/@inquirer/select/dist/esm/index.js
279684
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
279562
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
279563
+ var isUpKey = (key2) => key2.name === "up" || key2.name === "k" || key2.ctrl && key2.name === "p";
279564
+ var isDownKey = (key2) => key2.name === "down" || key2.name === "j" || key2.ctrl && key2.name === "n";
279565
+ var isBackspaceKey = (key2) => key2.name === "backspace";
279566
+ var isNumberKey = (key2) => "123456789".includes(key2.name);
279567
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
279568
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
279569
+ class AbortPromptError2 extends Error {
279570
+ name = "AbortPromptError";
279571
+ message = "Prompt was aborted";
279572
+ constructor(options) {
279573
+ super();
279574
+ this.cause = options?.cause;
279575
+ }
279576
+ }
279577
+
279578
+ class CancelPromptError2 extends Error {
279579
+ name = "CancelPromptError";
279580
+ message = "Prompt was canceled";
279581
+ }
279582
+
279583
+ class ExitPromptError2 extends Error {
279584
+ name = "ExitPromptError";
279585
+ }
279586
+
279587
+ class HookError2 extends Error {
279588
+ name = "HookError";
279589
+ }
279590
+
279591
+ class ValidationError2 extends Error {
279592
+ name = "ValidationError";
279593
+ }
279594
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
279595
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
279596
+
279597
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
279598
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
279599
+ var hookStorage2 = new AsyncLocalStorage2;
279600
+ function createStore2(rl) {
279601
+ const store = {
279602
+ rl,
279603
+ hooks: [],
279604
+ hooksCleanup: [],
279605
+ hooksEffect: [],
279606
+ index: 0,
279607
+ handleChange() {
279608
+ }
279609
+ };
279610
+ return store;
279611
+ }
279612
+ function withHooks2(rl, cb) {
279613
+ const store = createStore2(rl);
279614
+ return hookStorage2.run(store, () => {
279615
+ function cycle(render) {
279616
+ store.handleChange = () => {
279617
+ store.index = 0;
279618
+ render();
279619
+ };
279620
+ store.handleChange();
279621
+ }
279622
+ return cb(cycle);
279623
+ });
279624
+ }
279625
+ function getStore2() {
279626
+ const store = hookStorage2.getStore();
279627
+ if (!store) {
279628
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
279629
+ }
279630
+ return store;
279631
+ }
279632
+ function readline3() {
279633
+ return getStore2().rl;
279634
+ }
279635
+ function withUpdates2(fn) {
279636
+ const wrapped = (...args) => {
279637
+ const store = getStore2();
279638
+ let shouldUpdate = false;
279639
+ const oldHandleChange = store.handleChange;
279640
+ store.handleChange = () => {
279641
+ shouldUpdate = true;
279642
+ };
279643
+ const returnValue = fn(...args);
279644
+ if (shouldUpdate) {
279645
+ oldHandleChange();
279646
+ }
279647
+ store.handleChange = oldHandleChange;
279648
+ return returnValue;
279649
+ };
279650
+ return AsyncResource4.bind(wrapped);
279651
+ }
279652
+ function withPointer2(cb) {
279653
+ const store = getStore2();
279654
+ const { index } = store;
279655
+ const pointer = {
279656
+ get() {
279657
+ return store.hooks[index];
279658
+ },
279659
+ set(value4) {
279660
+ store.hooks[index] = value4;
279661
+ },
279662
+ initialized: index in store.hooks
279663
+ };
279664
+ const returnValue = cb(pointer);
279665
+ store.index++;
279666
+ return returnValue;
279667
+ }
279668
+ function handleChange2() {
279669
+ getStore2().handleChange();
279670
+ }
279671
+ var effectScheduler2 = {
279672
+ queue(cb) {
279673
+ const store = getStore2();
279674
+ const { index } = store;
279675
+ store.hooksEffect.push(() => {
279676
+ store.hooksCleanup[index]?.();
279677
+ const cleanFn = cb(readline3());
279678
+ if (cleanFn != null && typeof cleanFn !== "function") {
279679
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
279680
+ }
279681
+ store.hooksCleanup[index] = cleanFn;
279682
+ });
279683
+ },
279684
+ run() {
279685
+ const store = getStore2();
279686
+ withUpdates2(() => {
279687
+ store.hooksEffect.forEach((effect) => {
279688
+ effect();
279689
+ });
279690
+ store.hooksEffect.length = 0;
279691
+ })();
279692
+ },
279693
+ clearAll() {
279694
+ const store = getStore2();
279695
+ store.hooksCleanup.forEach((cleanFn) => {
279696
+ cleanFn?.();
279697
+ });
279698
+ store.hooksEffect.length = 0;
279699
+ store.hooksCleanup.length = 0;
279700
+ }
279701
+ };
279702
+
279703
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
279704
+ function useState2(defaultValue) {
279705
+ return withPointer2((pointer) => {
279706
+ const setFn = (newValue) => {
279707
+ if (pointer.get() !== newValue) {
279708
+ pointer.set(newValue);
279709
+ handleChange2();
279710
+ }
279711
+ };
279712
+ if (pointer.initialized) {
279713
+ return [pointer.get(), setFn];
279714
+ }
279715
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
279716
+ pointer.set(value4);
279717
+ return [value4, setFn];
279718
+ });
279719
+ }
279720
+
279721
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
279722
+ function useEffect2(cb, depArray) {
279723
+ withPointer2((pointer) => {
279724
+ const oldDeps = pointer.get();
279725
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
279726
+ if (hasChanged) {
279727
+ effectScheduler2.queue(cb);
279728
+ }
279729
+ pointer.set(depArray);
279730
+ });
279731
+ }
279732
+
279733
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
279734
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
279735
+ var defaultTheme2 = {
279736
+ prefix: {
279737
+ idle: import_yoctocolors_cjs2.default.blue("?"),
279738
+ done: import_yoctocolors_cjs2.default.green(esm_default.tick)
279739
+ },
279740
+ spinner: {
279741
+ interval: 80,
279742
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
279743
+ },
279744
+ style: {
279745
+ answer: import_yoctocolors_cjs2.default.cyan,
279746
+ message: import_yoctocolors_cjs2.default.bold,
279747
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
279748
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
279749
+ help: import_yoctocolors_cjs2.default.dim,
279750
+ highlight: import_yoctocolors_cjs2.default.cyan,
279751
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
279752
+ }
279753
+ };
279754
+
279755
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
279756
+ function isPlainObject3(value4) {
279757
+ if (typeof value4 !== "object" || value4 === null)
279758
+ return false;
279759
+ let proto = value4;
279760
+ while (Object.getPrototypeOf(proto) !== null) {
279761
+ proto = Object.getPrototypeOf(proto);
279762
+ }
279763
+ return Object.getPrototypeOf(value4) === proto;
279764
+ }
279765
+ function deepMerge3(...objects) {
279766
+ const output = {};
279767
+ for (const obj of objects) {
279768
+ for (const [key2, value4] of Object.entries(obj)) {
279769
+ const prevValue = output[key2];
279770
+ output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
279771
+ }
279772
+ }
279773
+ return output;
279774
+ }
279775
+ function makeTheme2(...themes) {
279776
+ const themesToMerge = [
279777
+ defaultTheme2,
279778
+ ...themes.filter((theme) => theme != null)
279779
+ ];
279780
+ return deepMerge3(...themesToMerge);
279781
+ }
279782
+
279783
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
279784
+ function usePrefix2({ status = "idle", theme }) {
279785
+ const [showLoader, setShowLoader] = useState2(false);
279786
+ const [tick, setTick] = useState2(0);
279787
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
279788
+ useEffect2(() => {
279789
+ if (status === "loading") {
279790
+ let tickInterval;
279791
+ let inc = -1;
279792
+ const delayTimeout = setTimeout(AsyncResource5.bind(() => {
279793
+ setShowLoader(true);
279794
+ tickInterval = setInterval(AsyncResource5.bind(() => {
279795
+ inc = inc + 1;
279796
+ setTick(inc % spinner2.frames.length);
279797
+ }), spinner2.interval);
279798
+ }), 300);
279799
+ return () => {
279800
+ clearTimeout(delayTimeout);
279801
+ clearInterval(tickInterval);
279802
+ };
279803
+ } else {
279804
+ setShowLoader(false);
279805
+ }
279806
+ }, [status]);
279807
+ if (showLoader) {
279808
+ return spinner2.frames[tick];
279809
+ }
279810
+ const iconName = status === "loading" ? "idle" : status;
279811
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
279812
+ }
279813
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
279814
+ function useMemo(fn, dependencies) {
279815
+ return withPointer2((pointer) => {
279816
+ const prev = pointer.get();
279817
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
279818
+ const value4 = fn();
279819
+ pointer.set({ value: value4, dependencies });
279820
+ return value4;
279821
+ }
279822
+ return prev.value;
279823
+ });
279824
+ }
279825
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
279826
+ function useRef2(val) {
279827
+ return useState2({ current: val })[0];
279828
+ }
279829
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
279830
+ function useKeypress2(userHandler) {
279831
+ const signal = useRef2(userHandler);
279832
+ signal.current = userHandler;
279833
+ useEffect2((rl) => {
279834
+ let ignore = false;
279835
+ const handler = withUpdates2((_input, event) => {
279836
+ if (ignore)
279837
+ return;
279838
+ signal.current(event, rl);
279839
+ });
279840
+ rl.input.on("keypress", handler);
279841
+ return () => {
279842
+ ignore = true;
279843
+ rl.input.removeListener("keypress", handler);
279844
+ };
279845
+ }, []);
279846
+ }
279847
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
279848
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
279849
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
279850
+ function breakLines2(content, width) {
279851
+ return content.split(`
279852
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
279853
+ `).map((str) => str.trimEnd())).join(`
279854
+ `);
279855
+ }
279856
+ function readlineWidth2() {
279857
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
279858
+ }
279859
+
279860
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
279861
+ function split2(content, width) {
279862
+ return breakLines2(content, width).split(`
279863
+ `);
279864
+ }
279865
+ function rotate(count, items) {
279866
+ const max = items.length;
279867
+ const offset = (count % max + max) % max;
279868
+ return [...items.slice(offset), ...items.slice(0, offset)];
279869
+ }
279870
+ function lines({ items, width, renderItem, active, position: requested, pageSize }) {
279871
+ const layouts = items.map((item, index) => ({
279872
+ item,
279873
+ index,
279874
+ isActive: index === active
279875
+ }));
279876
+ const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
279877
+ const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split2(renderItem(layoutsInPage[index]), width);
279878
+ const pageBuffer = Array.from({ length: pageSize });
279879
+ const activeItem = renderItemAt(requested).slice(0, pageSize);
279880
+ const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
279881
+ pageBuffer.splice(position, activeItem.length, ...activeItem);
279882
+ let bufferPointer = position + activeItem.length;
279883
+ let layoutPointer = requested + 1;
279884
+ while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
279885
+ for (const line of renderItemAt(layoutPointer)) {
279886
+ pageBuffer[bufferPointer++] = line;
279887
+ if (bufferPointer >= pageSize)
279888
+ break;
279889
+ }
279890
+ layoutPointer++;
279891
+ }
279892
+ bufferPointer = position - 1;
279893
+ layoutPointer = requested - 1;
279894
+ while (bufferPointer >= 0 && layoutPointer >= 0) {
279895
+ for (const line of renderItemAt(layoutPointer).reverse()) {
279896
+ pageBuffer[bufferPointer--] = line;
279897
+ if (bufferPointer < 0)
279898
+ break;
279899
+ }
279900
+ layoutPointer--;
279901
+ }
279902
+ return pageBuffer.filter((line) => typeof line === "string");
279903
+ }
279904
+
279905
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
279906
+ function finite({ active, pageSize, total }) {
279907
+ const middle = Math.floor(pageSize / 2);
279908
+ if (total <= pageSize || active < middle)
279909
+ return active;
279910
+ if (active >= total - middle)
279911
+ return active + pageSize - total;
279912
+ return middle;
279913
+ }
279914
+ function infinite({ active, lastActive, total, pageSize, pointer }) {
279915
+ if (total <= pageSize)
279916
+ return active;
279917
+ if (lastActive < active && active - lastActive < pageSize) {
279918
+ return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
279919
+ }
279920
+ return pointer;
279921
+ }
279922
+
279923
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
279924
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
279925
+ const state = useRef2({ position: 0, lastActive: 0 });
279926
+ const position = loop ? infinite({
279927
+ active,
279928
+ lastActive: state.current.lastActive,
279929
+ total: items.length,
279930
+ pageSize,
279931
+ pointer: state.current.position
279932
+ }) : finite({
279933
+ active,
279934
+ total: items.length,
279935
+ pageSize
279936
+ });
279937
+ state.current.position = position;
279938
+ state.current.lastActive = active;
279939
+ return lines({
279940
+ items,
279941
+ width: readlineWidth2(),
279942
+ renderItem,
279943
+ active,
279944
+ position,
279945
+ pageSize
279946
+ }).join(`
279947
+ `);
279948
+ }
279949
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
279950
+ var import_mute_stream2 = __toESM(require_lib(), 1);
279951
+ import * as readline4 from "node:readline";
279952
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
279953
+
279954
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
279685
279955
  var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
279956
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
279957
+ var height2 = (content) => content.split(`
279958
+ `).length;
279959
+ var lastLine2 = (content) => content.split(`
279960
+ `).pop() ?? "";
279961
+ function cursorDown2(n6) {
279962
+ return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
279963
+ }
279964
+
279965
+ class ScreenManager2 {
279966
+ rl;
279967
+ height = 0;
279968
+ extraLinesUnderPrompt = 0;
279969
+ cursorPos;
279970
+ constructor(rl) {
279971
+ this.rl = rl;
279972
+ this.rl = rl;
279973
+ this.cursorPos = rl.getCursorPos();
279974
+ }
279975
+ write(content) {
279976
+ this.rl.output.unmute();
279977
+ this.rl.output.write(content);
279978
+ this.rl.output.mute();
279979
+ }
279980
+ render(content, bottomContent = "") {
279981
+ const promptLine = lastLine2(content);
279982
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
279983
+ let prompt = rawPromptLine;
279984
+ if (this.rl.line.length > 0) {
279985
+ prompt = prompt.slice(0, -this.rl.line.length);
279986
+ }
279987
+ this.rl.setPrompt(prompt);
279988
+ this.cursorPos = this.rl.getCursorPos();
279989
+ const width = readlineWidth2();
279990
+ content = breakLines2(content, width);
279991
+ bottomContent = breakLines2(bottomContent, width);
279992
+ if (rawPromptLine.length % width === 0) {
279993
+ content += `
279994
+ `;
279995
+ }
279996
+ let output = content + (bottomContent ? `
279997
+ ` + bottomContent : "");
279998
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
279999
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
280000
+ if (bottomContentHeight > 0)
280001
+ output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
280002
+ output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
280003
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
280004
+ this.extraLinesUnderPrompt = bottomContentHeight;
280005
+ this.height = height2(output);
280006
+ }
280007
+ checkCursorPos() {
280008
+ const cursorPos = this.rl.getCursorPos();
280009
+ if (cursorPos.cols !== this.cursorPos.cols) {
280010
+ this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
280011
+ this.cursorPos = cursorPos;
280012
+ }
280013
+ }
280014
+ done({ clearContent }) {
280015
+ this.rl.setPrompt("");
280016
+ let output = cursorDown2(this.extraLinesUnderPrompt);
280017
+ output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
280018
+ `;
280019
+ output += import_ansi_escapes2.default.cursorShow;
280020
+ this.write(output);
280021
+ this.rl.close();
280022
+ }
280023
+ }
280024
+
280025
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
280026
+ class PromisePolyfill2 extends Promise {
280027
+ static withResolver() {
280028
+ let resolve5;
280029
+ let reject;
280030
+ const promise = new Promise((res, rej) => {
280031
+ resolve5 = res;
280032
+ reject = rej;
280033
+ });
280034
+ return { promise, resolve: resolve5, reject };
280035
+ }
280036
+ }
280037
+
280038
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280039
+ function getCallSites2() {
280040
+ const _prepareStackTrace = Error.prepareStackTrace;
280041
+ try {
280042
+ let result = [];
280043
+ Error.prepareStackTrace = (_5, callSites) => {
280044
+ const callSitesWithoutCurrent = callSites.slice(1);
280045
+ result = callSitesWithoutCurrent;
280046
+ return callSitesWithoutCurrent;
280047
+ };
280048
+ new Error().stack;
280049
+ return result;
280050
+ } finally {
280051
+ Error.prepareStackTrace = _prepareStackTrace;
280052
+ }
280053
+ }
280054
+ function createPrompt2(view) {
280055
+ const callSites = getCallSites2();
280056
+ const callerFilename = callSites[1]?.getFileName?.();
280057
+ const prompt = (config3, context = {}) => {
280058
+ const { input = process.stdin, signal } = context;
280059
+ const cleanups = new Set;
280060
+ const output = new import_mute_stream2.default;
280061
+ output.pipe(context.output ?? process.stdout);
280062
+ const rl = readline4.createInterface({
280063
+ terminal: true,
280064
+ input,
280065
+ output
280066
+ });
280067
+ const screen = new ScreenManager2(rl);
280068
+ const { promise, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
280069
+ const cancel3 = () => reject(new CancelPromptError2);
280070
+ if (signal) {
280071
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
280072
+ if (signal.aborted) {
280073
+ abort();
280074
+ return Object.assign(promise, { cancel: cancel3 });
280075
+ }
280076
+ signal.addEventListener("abort", abort);
280077
+ cleanups.add(() => signal.removeEventListener("abort", abort));
280078
+ }
280079
+ cleanups.add(onExit((code2, signal2) => {
280080
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
280081
+ }));
280082
+ const checkCursorPos = () => screen.checkCursorPos();
280083
+ rl.input.on("keypress", checkCursorPos);
280084
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
280085
+ return withHooks2(rl, (cycle) => {
280086
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
280087
+ rl.on("close", hooksCleanup);
280088
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
280089
+ cycle(() => {
280090
+ try {
280091
+ const nextView = view(config3, (value4) => {
280092
+ setImmediate(() => resolve5(value4));
280093
+ });
280094
+ if (nextView === undefined) {
280095
+ throw new Error(`Prompt functions must return a string.
280096
+ at ${callerFilename}`);
280097
+ }
280098
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
280099
+ screen.render(content, bottomContent);
280100
+ effectScheduler2.run();
280101
+ } catch (error5) {
280102
+ reject(error5);
280103
+ }
280104
+ });
280105
+ return Object.assign(promise.then((answer) => {
280106
+ effectScheduler2.clearAll();
280107
+ return answer;
280108
+ }, (error5) => {
280109
+ effectScheduler2.clearAll();
280110
+ throw error5;
280111
+ }).finally(() => {
280112
+ cleanups.forEach((cleanup) => cleanup());
280113
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
280114
+ output.end();
280115
+ }).then(() => promise), { cancel: cancel3 });
280116
+ });
280117
+ };
280118
+ return prompt;
280119
+ }
280120
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
280121
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
280122
+ class Separator {
280123
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default.line));
280124
+ type = "separator";
280125
+ constructor(separator) {
280126
+ if (separator) {
280127
+ this.separator = separator;
280128
+ }
280129
+ }
280130
+ static isSeparator(choice) {
280131
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
280132
+ }
280133
+ }
280134
+ // ../../node_modules/@inquirer/select/dist/esm/index.js
280135
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
280136
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
279686
280137
  var selectTheme = {
279687
280138
  icon: { cursor: esm_default.pointer },
279688
280139
  style: {
279689
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
279690
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
280140
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
280141
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
279691
280142
  },
279692
280143
  helpMode: "auto"
279693
280144
  };
@@ -279716,19 +280167,19 @@ function normalizeChoices(choices) {
279716
280167
  };
279717
280168
  });
279718
280169
  }
279719
- var esm_default2 = createPrompt((config3, done) => {
280170
+ var esm_default2 = createPrompt2((config3, done) => {
279720
280171
  const { loop = true, pageSize = 7 } = config3;
279721
- const firstRender = useRef(true);
279722
- const theme = makeTheme(selectTheme, config3.theme);
279723
- const [status, setStatus] = useState("idle");
279724
- const prefix = usePrefix({ status, theme });
279725
- const searchTimeoutRef = useRef();
280172
+ const firstRender = useRef2(true);
280173
+ const theme = makeTheme2(selectTheme, config3.theme);
280174
+ const [status, setStatus] = useState2("idle");
280175
+ const prefix = usePrefix2({ status, theme });
280176
+ const searchTimeoutRef = useRef2();
279726
280177
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
279727
280178
  const bounds = useMemo(() => {
279728
280179
  const first = items.findIndex(isSelectable);
279729
280180
  const last = items.findLastIndex(isSelectable);
279730
280181
  if (first === -1) {
279731
- throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
280182
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
279732
280183
  }
279733
280184
  return { first, last };
279734
280185
  }, [items]);
@@ -279737,31 +280188,31 @@ var esm_default2 = createPrompt((config3, done) => {
279737
280188
  return -1;
279738
280189
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
279739
280190
  }, [config3.default, items]);
279740
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
280191
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
279741
280192
  const selectedChoice = items[active];
279742
- useKeypress((key2, rl) => {
280193
+ useKeypress2((key3, rl) => {
279743
280194
  clearTimeout(searchTimeoutRef.current);
279744
- if (isEnterKey(key2)) {
280195
+ if (isEnterKey2(key3)) {
279745
280196
  setStatus("done");
279746
280197
  done(selectedChoice.value);
279747
- } else if (isUpKey(key2) || isDownKey(key2)) {
280198
+ } else if (isUpKey(key3) || isDownKey(key3)) {
279748
280199
  rl.clearLine(0);
279749
- if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
279750
- const offset = isUpKey(key2) ? -1 : 1;
280200
+ if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
280201
+ const offset = isUpKey(key3) ? -1 : 1;
279751
280202
  let next = active;
279752
280203
  do {
279753
280204
  next = (next + offset + items.length) % items.length;
279754
280205
  } while (!isSelectable(items[next]));
279755
280206
  setActive(next);
279756
280207
  }
279757
- } else if (isNumberKey(key2)) {
280208
+ } else if (isNumberKey(key3)) {
279758
280209
  rl.clearLine(0);
279759
- const position = Number(key2.name) - 1;
280210
+ const position = Number(key3.name) - 1;
279760
280211
  const item = items[position];
279761
280212
  if (item != null && isSelectable(item)) {
279762
280213
  setActive(position);
279763
280214
  }
279764
- } else if (isBackspaceKey(key2)) {
280215
+ } else if (isBackspaceKey(key3)) {
279765
280216
  rl.clearLine(0);
279766
280217
  } else {
279767
280218
  const searchTerm = rl.line.toLowerCase();
@@ -279778,7 +280229,7 @@ var esm_default2 = createPrompt((config3, done) => {
279778
280229
  }, 700);
279779
280230
  }
279780
280231
  });
279781
- useEffect(() => () => {
280232
+ useEffect2(() => () => {
279782
280233
  clearTimeout(searchTimeoutRef.current);
279783
280234
  }, []);
279784
280235
  const message = theme.style.message(config3.message, status);
@@ -279817,7 +280268,7 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;
279817
280268
  const choiceDescription = selectedChoice.description ? `
279818
280269
  ${theme.style.description(selectedChoice.description)}` : ``;
279819
280270
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
279820
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursorHide}`;
280271
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
279821
280272
  });
279822
280273
 
279823
280274
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -280157,13 +280608,13 @@ var esm_default3 = createPrompt((config3, done) => {
280157
280608
  const [value4, setValue] = useState("");
280158
280609
  const theme = makeTheme(config3.theme);
280159
280610
  const prefix = usePrefix({ status, theme });
280160
- useKeypress((key2, rl) => {
280161
- if (isEnterKey(key2)) {
280611
+ useKeypress((key3, rl) => {
280612
+ if (isEnterKey(key3)) {
280162
280613
  const answer = getBooleanValue(value4, config3.default);
280163
280614
  setValue(transformer(answer));
280164
280615
  setStatus("done");
280165
280616
  done(answer);
280166
- } else if (key2.name === "tab") {
280617
+ } else if (key3.name === "tab") {
280167
280618
  const answer = boolToString(!getBooleanValue(value4, config3.default));
280168
280619
  rl.clearLine(0);
280169
280620
  rl.write(answer);
@@ -280183,23 +280634,478 @@ var esm_default3 = createPrompt((config3, done) => {
280183
280634
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
280184
280635
  });
280185
280636
 
280637
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
280638
+ var isBackspaceKey2 = (key3) => key3.name === "backspace";
280639
+ var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
280640
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
280641
+ class AbortPromptError3 extends Error {
280642
+ name = "AbortPromptError";
280643
+ message = "Prompt was aborted";
280644
+ constructor(options) {
280645
+ super();
280646
+ this.cause = options?.cause;
280647
+ }
280648
+ }
280649
+
280650
+ class CancelPromptError3 extends Error {
280651
+ name = "CancelPromptError";
280652
+ message = "Prompt was canceled";
280653
+ }
280654
+
280655
+ class ExitPromptError3 extends Error {
280656
+ name = "ExitPromptError";
280657
+ }
280658
+
280659
+ class HookError3 extends Error {
280660
+ name = "HookError";
280661
+ }
280662
+
280663
+ class ValidationError3 extends Error {
280664
+ name = "ValidationError";
280665
+ }
280666
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280667
+ import { AsyncResource as AsyncResource8 } from "node:async_hooks";
280668
+
280669
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
280670
+ import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
280671
+ var hookStorage3 = new AsyncLocalStorage3;
280672
+ function createStore3(rl) {
280673
+ const store = {
280674
+ rl,
280675
+ hooks: [],
280676
+ hooksCleanup: [],
280677
+ hooksEffect: [],
280678
+ index: 0,
280679
+ handleChange() {
280680
+ }
280681
+ };
280682
+ return store;
280683
+ }
280684
+ function withHooks3(rl, cb) {
280685
+ const store = createStore3(rl);
280686
+ return hookStorage3.run(store, () => {
280687
+ function cycle(render) {
280688
+ store.handleChange = () => {
280689
+ store.index = 0;
280690
+ render();
280691
+ };
280692
+ store.handleChange();
280693
+ }
280694
+ return cb(cycle);
280695
+ });
280696
+ }
280697
+ function getStore3() {
280698
+ const store = hookStorage3.getStore();
280699
+ if (!store) {
280700
+ throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
280701
+ }
280702
+ return store;
280703
+ }
280704
+ function readline5() {
280705
+ return getStore3().rl;
280706
+ }
280707
+ function withUpdates3(fn) {
280708
+ const wrapped = (...args) => {
280709
+ const store = getStore3();
280710
+ let shouldUpdate = false;
280711
+ const oldHandleChange = store.handleChange;
280712
+ store.handleChange = () => {
280713
+ shouldUpdate = true;
280714
+ };
280715
+ const returnValue = fn(...args);
280716
+ if (shouldUpdate) {
280717
+ oldHandleChange();
280718
+ }
280719
+ store.handleChange = oldHandleChange;
280720
+ return returnValue;
280721
+ };
280722
+ return AsyncResource7.bind(wrapped);
280723
+ }
280724
+ function withPointer3(cb) {
280725
+ const store = getStore3();
280726
+ const { index } = store;
280727
+ const pointer = {
280728
+ get() {
280729
+ return store.hooks[index];
280730
+ },
280731
+ set(value4) {
280732
+ store.hooks[index] = value4;
280733
+ },
280734
+ initialized: index in store.hooks
280735
+ };
280736
+ const returnValue = cb(pointer);
280737
+ store.index++;
280738
+ return returnValue;
280739
+ }
280740
+ function handleChange3() {
280741
+ getStore3().handleChange();
280742
+ }
280743
+ var effectScheduler3 = {
280744
+ queue(cb) {
280745
+ const store = getStore3();
280746
+ const { index } = store;
280747
+ store.hooksEffect.push(() => {
280748
+ store.hooksCleanup[index]?.();
280749
+ const cleanFn = cb(readline5());
280750
+ if (cleanFn != null && typeof cleanFn !== "function") {
280751
+ throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
280752
+ }
280753
+ store.hooksCleanup[index] = cleanFn;
280754
+ });
280755
+ },
280756
+ run() {
280757
+ const store = getStore3();
280758
+ withUpdates3(() => {
280759
+ store.hooksEffect.forEach((effect) => {
280760
+ effect();
280761
+ });
280762
+ store.hooksEffect.length = 0;
280763
+ })();
280764
+ },
280765
+ clearAll() {
280766
+ const store = getStore3();
280767
+ store.hooksCleanup.forEach((cleanFn) => {
280768
+ cleanFn?.();
280769
+ });
280770
+ store.hooksEffect.length = 0;
280771
+ store.hooksCleanup.length = 0;
280772
+ }
280773
+ };
280774
+
280775
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
280776
+ function useState3(defaultValue) {
280777
+ return withPointer3((pointer) => {
280778
+ const setFn = (newValue) => {
280779
+ if (pointer.get() !== newValue) {
280780
+ pointer.set(newValue);
280781
+ handleChange3();
280782
+ }
280783
+ };
280784
+ if (pointer.initialized) {
280785
+ return [pointer.get(), setFn];
280786
+ }
280787
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
280788
+ pointer.set(value4);
280789
+ return [value4, setFn];
280790
+ });
280791
+ }
280792
+
280793
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
280794
+ function useEffect3(cb, depArray) {
280795
+ withPointer3((pointer) => {
280796
+ const oldDeps = pointer.get();
280797
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
280798
+ if (hasChanged) {
280799
+ effectScheduler3.queue(cb);
280800
+ }
280801
+ pointer.set(depArray);
280802
+ });
280803
+ }
280804
+
280805
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
280806
+ var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
280807
+ var defaultTheme3 = {
280808
+ prefix: {
280809
+ idle: import_yoctocolors_cjs5.default.blue("?"),
280810
+ done: import_yoctocolors_cjs5.default.green(esm_default.tick)
280811
+ },
280812
+ spinner: {
280813
+ interval: 80,
280814
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs5.default.yellow(frame))
280815
+ },
280816
+ style: {
280817
+ answer: import_yoctocolors_cjs5.default.cyan,
280818
+ message: import_yoctocolors_cjs5.default.bold,
280819
+ error: (text2) => import_yoctocolors_cjs5.default.red(`> ${text2}`),
280820
+ defaultAnswer: (text2) => import_yoctocolors_cjs5.default.dim(`(${text2})`),
280821
+ help: import_yoctocolors_cjs5.default.dim,
280822
+ highlight: import_yoctocolors_cjs5.default.cyan,
280823
+ key: (text2) => import_yoctocolors_cjs5.default.cyan(import_yoctocolors_cjs5.default.bold(`<${text2}>`))
280824
+ }
280825
+ };
280826
+
280827
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
280828
+ function isPlainObject4(value4) {
280829
+ if (typeof value4 !== "object" || value4 === null)
280830
+ return false;
280831
+ let proto = value4;
280832
+ while (Object.getPrototypeOf(proto) !== null) {
280833
+ proto = Object.getPrototypeOf(proto);
280834
+ }
280835
+ return Object.getPrototypeOf(value4) === proto;
280836
+ }
280837
+ function deepMerge4(...objects) {
280838
+ const output = {};
280839
+ for (const obj of objects) {
280840
+ for (const [key3, value4] of Object.entries(obj)) {
280841
+ const prevValue = output[key3];
280842
+ output[key3] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge4(prevValue, value4) : value4;
280843
+ }
280844
+ }
280845
+ return output;
280846
+ }
280847
+ function makeTheme3(...themes) {
280848
+ const themesToMerge = [
280849
+ defaultTheme3,
280850
+ ...themes.filter((theme) => theme != null)
280851
+ ];
280852
+ return deepMerge4(...themesToMerge);
280853
+ }
280854
+
280855
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280856
+ function usePrefix3({ status = "idle", theme }) {
280857
+ const [showLoader, setShowLoader] = useState3(false);
280858
+ const [tick, setTick] = useState3(0);
280859
+ const { prefix, spinner: spinner2 } = makeTheme3(theme);
280860
+ useEffect3(() => {
280861
+ if (status === "loading") {
280862
+ let tickInterval;
280863
+ let inc = -1;
280864
+ const delayTimeout = setTimeout(AsyncResource8.bind(() => {
280865
+ setShowLoader(true);
280866
+ tickInterval = setInterval(AsyncResource8.bind(() => {
280867
+ inc = inc + 1;
280868
+ setTick(inc % spinner2.frames.length);
280869
+ }), spinner2.interval);
280870
+ }), 300);
280871
+ return () => {
280872
+ clearTimeout(delayTimeout);
280873
+ clearInterval(tickInterval);
280874
+ };
280875
+ } else {
280876
+ setShowLoader(false);
280877
+ }
280878
+ }, [status]);
280879
+ if (showLoader) {
280880
+ return spinner2.frames[tick];
280881
+ }
280882
+ const iconName = status === "loading" ? "idle" : status;
280883
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
280884
+ }
280885
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
280886
+ function useRef3(val) {
280887
+ return useState3({ current: val })[0];
280888
+ }
280889
+
280890
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
280891
+ function useKeypress3(userHandler) {
280892
+ const signal = useRef3(userHandler);
280893
+ signal.current = userHandler;
280894
+ useEffect3((rl) => {
280895
+ let ignore = false;
280896
+ const handler = withUpdates3((_input, event) => {
280897
+ if (ignore)
280898
+ return;
280899
+ signal.current(event, rl);
280900
+ });
280901
+ rl.input.on("keypress", handler);
280902
+ return () => {
280903
+ ignore = true;
280904
+ rl.input.removeListener("keypress", handler);
280905
+ };
280906
+ }, []);
280907
+ }
280908
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
280909
+ var import_cli_width3 = __toESM(require_cli_width(), 1);
280910
+ var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
280911
+ function breakLines3(content, width) {
280912
+ return content.split(`
280913
+ `).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
280914
+ `).map((str) => str.trimEnd())).join(`
280915
+ `);
280916
+ }
280917
+ function readlineWidth3() {
280918
+ return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
280919
+ }
280920
+
280921
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280922
+ var import_mute_stream3 = __toESM(require_lib(), 1);
280923
+ import * as readline6 from "node:readline";
280924
+ import { AsyncResource as AsyncResource9 } from "node:async_hooks";
280925
+
280926
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
280927
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
280928
+ import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
280929
+ var height3 = (content) => content.split(`
280930
+ `).length;
280931
+ var lastLine3 = (content) => content.split(`
280932
+ `).pop() ?? "";
280933
+ function cursorDown3(n6) {
280934
+ return n6 > 0 ? import_ansi_escapes4.default.cursorDown(n6) : "";
280935
+ }
280936
+
280937
+ class ScreenManager3 {
280938
+ rl;
280939
+ height = 0;
280940
+ extraLinesUnderPrompt = 0;
280941
+ cursorPos;
280942
+ constructor(rl) {
280943
+ this.rl = rl;
280944
+ this.rl = rl;
280945
+ this.cursorPos = rl.getCursorPos();
280946
+ }
280947
+ write(content) {
280948
+ this.rl.output.unmute();
280949
+ this.rl.output.write(content);
280950
+ this.rl.output.mute();
280951
+ }
280952
+ render(content, bottomContent = "") {
280953
+ const promptLine = lastLine3(content);
280954
+ const rawPromptLine = stripVTControlCharacters4(promptLine);
280955
+ let prompt = rawPromptLine;
280956
+ if (this.rl.line.length > 0) {
280957
+ prompt = prompt.slice(0, -this.rl.line.length);
280958
+ }
280959
+ this.rl.setPrompt(prompt);
280960
+ this.cursorPos = this.rl.getCursorPos();
280961
+ const width = readlineWidth3();
280962
+ content = breakLines3(content, width);
280963
+ bottomContent = breakLines3(bottomContent, width);
280964
+ if (rawPromptLine.length % width === 0) {
280965
+ content += `
280966
+ `;
280967
+ }
280968
+ let output = content + (bottomContent ? `
280969
+ ` + bottomContent : "");
280970
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
280971
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
280972
+ if (bottomContentHeight > 0)
280973
+ output += import_ansi_escapes4.default.cursorUp(bottomContentHeight);
280974
+ output += import_ansi_escapes4.default.cursorTo(this.cursorPos.cols);
280975
+ this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes4.default.eraseLines(this.height) + output);
280976
+ this.extraLinesUnderPrompt = bottomContentHeight;
280977
+ this.height = height3(output);
280978
+ }
280979
+ checkCursorPos() {
280980
+ const cursorPos = this.rl.getCursorPos();
280981
+ if (cursorPos.cols !== this.cursorPos.cols) {
280982
+ this.write(import_ansi_escapes4.default.cursorTo(cursorPos.cols));
280983
+ this.cursorPos = cursorPos;
280984
+ }
280985
+ }
280986
+ done({ clearContent }) {
280987
+ this.rl.setPrompt("");
280988
+ let output = cursorDown3(this.extraLinesUnderPrompt);
280989
+ output += clearContent ? import_ansi_escapes4.default.eraseLines(this.height) : `
280990
+ `;
280991
+ output += import_ansi_escapes4.default.cursorShow;
280992
+ this.write(output);
280993
+ this.rl.close();
280994
+ }
280995
+ }
280996
+
280997
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
280998
+ class PromisePolyfill3 extends Promise {
280999
+ static withResolver() {
281000
+ let resolve6;
281001
+ let reject;
281002
+ const promise = new Promise((res, rej) => {
281003
+ resolve6 = res;
281004
+ reject = rej;
281005
+ });
281006
+ return { promise, resolve: resolve6, reject };
281007
+ }
281008
+ }
281009
+
281010
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
281011
+ function getCallSites3() {
281012
+ const _prepareStackTrace = Error.prepareStackTrace;
281013
+ try {
281014
+ let result = [];
281015
+ Error.prepareStackTrace = (_5, callSites) => {
281016
+ const callSitesWithoutCurrent = callSites.slice(1);
281017
+ result = callSitesWithoutCurrent;
281018
+ return callSitesWithoutCurrent;
281019
+ };
281020
+ new Error().stack;
281021
+ return result;
281022
+ } finally {
281023
+ Error.prepareStackTrace = _prepareStackTrace;
281024
+ }
281025
+ }
281026
+ function createPrompt3(view) {
281027
+ const callSites = getCallSites3();
281028
+ const callerFilename = callSites[1]?.getFileName?.();
281029
+ const prompt = (config3, context = {}) => {
281030
+ const { input = process.stdin, signal } = context;
281031
+ const cleanups = new Set;
281032
+ const output = new import_mute_stream3.default;
281033
+ output.pipe(context.output ?? process.stdout);
281034
+ const rl = readline6.createInterface({
281035
+ terminal: true,
281036
+ input,
281037
+ output
281038
+ });
281039
+ const screen = new ScreenManager3(rl);
281040
+ const { promise, resolve: resolve6, reject } = PromisePolyfill3.withResolver();
281041
+ const cancel3 = () => reject(new CancelPromptError3);
281042
+ if (signal) {
281043
+ const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
281044
+ if (signal.aborted) {
281045
+ abort();
281046
+ return Object.assign(promise, { cancel: cancel3 });
281047
+ }
281048
+ signal.addEventListener("abort", abort);
281049
+ cleanups.add(() => signal.removeEventListener("abort", abort));
281050
+ }
281051
+ cleanups.add(onExit((code2, signal2) => {
281052
+ reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
281053
+ }));
281054
+ const checkCursorPos = () => screen.checkCursorPos();
281055
+ rl.input.on("keypress", checkCursorPos);
281056
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
281057
+ return withHooks3(rl, (cycle) => {
281058
+ const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
281059
+ rl.on("close", hooksCleanup);
281060
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
281061
+ cycle(() => {
281062
+ try {
281063
+ const nextView = view(config3, (value4) => {
281064
+ setImmediate(() => resolve6(value4));
281065
+ });
281066
+ if (nextView === undefined) {
281067
+ throw new Error(`Prompt functions must return a string.
281068
+ at ${callerFilename}`);
281069
+ }
281070
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
281071
+ screen.render(content, bottomContent);
281072
+ effectScheduler3.run();
281073
+ } catch (error5) {
281074
+ reject(error5);
281075
+ }
281076
+ });
281077
+ return Object.assign(promise.then((answer) => {
281078
+ effectScheduler3.clearAll();
281079
+ return answer;
281080
+ }, (error5) => {
281081
+ effectScheduler3.clearAll();
281082
+ throw error5;
281083
+ }).finally(() => {
281084
+ cleanups.forEach((cleanup) => cleanup());
281085
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
281086
+ output.end();
281087
+ }).then(() => promise), { cancel: cancel3 });
281088
+ });
281089
+ };
281090
+ return prompt;
281091
+ }
280186
281092
  // ../../node_modules/@inquirer/input/dist/esm/index.js
280187
281093
  var inputTheme = {
280188
281094
  validationFailureMode: "keep"
280189
281095
  };
280190
- var esm_default4 = createPrompt((config3, done) => {
281096
+ var esm_default4 = createPrompt3((config3, done) => {
280191
281097
  const { required, validate: validate3 = () => true } = config3;
280192
- const theme = makeTheme(inputTheme, config3.theme);
280193
- const [status, setStatus] = useState("idle");
280194
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
280195
- const [errorMsg, setError] = useState();
280196
- const [value4, setValue] = useState("");
280197
- const prefix = usePrefix({ status, theme });
280198
- useKeypress(async (key2, rl) => {
281098
+ const theme = makeTheme3(inputTheme, config3.theme);
281099
+ const [status, setStatus] = useState3("idle");
281100
+ const [defaultValue = "", setDefaultValue] = useState3(config3.default);
281101
+ const [errorMsg, setError] = useState3();
281102
+ const [value4, setValue] = useState3("");
281103
+ const prefix = usePrefix3({ status, theme });
281104
+ useKeypress3(async (key4, rl) => {
280199
281105
  if (status !== "idle") {
280200
281106
  return;
280201
281107
  }
280202
- if (isEnterKey(key2)) {
281108
+ if (isEnterKey3(key4)) {
280203
281109
  const answer = value4 || defaultValue;
280204
281110
  setStatus("loading");
280205
281111
  const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
@@ -280216,9 +281122,9 @@ var esm_default4 = createPrompt((config3, done) => {
280216
281122
  setError(isValid2 || "You must provide a valid value");
280217
281123
  setStatus("idle");
280218
281124
  }
280219
- } else if (isBackspaceKey(key2) && !value4) {
281125
+ } else if (isBackspaceKey2(key4) && !value4) {
280220
281126
  setDefaultValue(undefined);
280221
- } else if (key2.name === "tab" && !value4) {
281127
+ } else if (key4.name === "tab" && !value4) {
280222
281128
  setDefaultValue(undefined);
280223
281129
  rl.clearLine(0);
280224
281130
  rl.write(defaultValue);
@@ -280249,20 +281155,474 @@ var esm_default4 = createPrompt((config3, done) => {
280249
281155
  ];
280250
281156
  });
280251
281157
 
281158
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
281159
+ var isEnterKey4 = (key4) => key4.name === "enter" || key4.name === "return";
281160
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
281161
+ class AbortPromptError4 extends Error {
281162
+ name = "AbortPromptError";
281163
+ message = "Prompt was aborted";
281164
+ constructor(options) {
281165
+ super();
281166
+ this.cause = options?.cause;
281167
+ }
281168
+ }
281169
+
281170
+ class CancelPromptError4 extends Error {
281171
+ name = "CancelPromptError";
281172
+ message = "Prompt was canceled";
281173
+ }
281174
+
281175
+ class ExitPromptError4 extends Error {
281176
+ name = "ExitPromptError";
281177
+ }
281178
+
281179
+ class HookError4 extends Error {
281180
+ name = "HookError";
281181
+ }
281182
+
281183
+ class ValidationError4 extends Error {
281184
+ name = "ValidationError";
281185
+ }
281186
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
281187
+ import { AsyncResource as AsyncResource11 } from "node:async_hooks";
281188
+
281189
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
281190
+ import { AsyncLocalStorage as AsyncLocalStorage4, AsyncResource as AsyncResource10 } from "node:async_hooks";
281191
+ var hookStorage4 = new AsyncLocalStorage4;
281192
+ function createStore4(rl) {
281193
+ const store = {
281194
+ rl,
281195
+ hooks: [],
281196
+ hooksCleanup: [],
281197
+ hooksEffect: [],
281198
+ index: 0,
281199
+ handleChange() {
281200
+ }
281201
+ };
281202
+ return store;
281203
+ }
281204
+ function withHooks4(rl, cb) {
281205
+ const store = createStore4(rl);
281206
+ return hookStorage4.run(store, () => {
281207
+ function cycle(render) {
281208
+ store.handleChange = () => {
281209
+ store.index = 0;
281210
+ render();
281211
+ };
281212
+ store.handleChange();
281213
+ }
281214
+ return cb(cycle);
281215
+ });
281216
+ }
281217
+ function getStore4() {
281218
+ const store = hookStorage4.getStore();
281219
+ if (!store) {
281220
+ throw new HookError4("[Inquirer] Hook functions can only be called from within a prompt");
281221
+ }
281222
+ return store;
281223
+ }
281224
+ function readline7() {
281225
+ return getStore4().rl;
281226
+ }
281227
+ function withUpdates4(fn) {
281228
+ const wrapped = (...args) => {
281229
+ const store = getStore4();
281230
+ let shouldUpdate = false;
281231
+ const oldHandleChange = store.handleChange;
281232
+ store.handleChange = () => {
281233
+ shouldUpdate = true;
281234
+ };
281235
+ const returnValue = fn(...args);
281236
+ if (shouldUpdate) {
281237
+ oldHandleChange();
281238
+ }
281239
+ store.handleChange = oldHandleChange;
281240
+ return returnValue;
281241
+ };
281242
+ return AsyncResource10.bind(wrapped);
281243
+ }
281244
+ function withPointer4(cb) {
281245
+ const store = getStore4();
281246
+ const { index } = store;
281247
+ const pointer = {
281248
+ get() {
281249
+ return store.hooks[index];
281250
+ },
281251
+ set(value4) {
281252
+ store.hooks[index] = value4;
281253
+ },
281254
+ initialized: index in store.hooks
281255
+ };
281256
+ const returnValue = cb(pointer);
281257
+ store.index++;
281258
+ return returnValue;
281259
+ }
281260
+ function handleChange4() {
281261
+ getStore4().handleChange();
281262
+ }
281263
+ var effectScheduler4 = {
281264
+ queue(cb) {
281265
+ const store = getStore4();
281266
+ const { index } = store;
281267
+ store.hooksEffect.push(() => {
281268
+ store.hooksCleanup[index]?.();
281269
+ const cleanFn = cb(readline7());
281270
+ if (cleanFn != null && typeof cleanFn !== "function") {
281271
+ throw new ValidationError4("useEffect return value must be a cleanup function or nothing.");
281272
+ }
281273
+ store.hooksCleanup[index] = cleanFn;
281274
+ });
281275
+ },
281276
+ run() {
281277
+ const store = getStore4();
281278
+ withUpdates4(() => {
281279
+ store.hooksEffect.forEach((effect) => {
281280
+ effect();
281281
+ });
281282
+ store.hooksEffect.length = 0;
281283
+ })();
281284
+ },
281285
+ clearAll() {
281286
+ const store = getStore4();
281287
+ store.hooksCleanup.forEach((cleanFn) => {
281288
+ cleanFn?.();
281289
+ });
281290
+ store.hooksEffect.length = 0;
281291
+ store.hooksCleanup.length = 0;
281292
+ }
281293
+ };
281294
+
281295
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
281296
+ function useState4(defaultValue) {
281297
+ return withPointer4((pointer) => {
281298
+ const setFn = (newValue) => {
281299
+ if (pointer.get() !== newValue) {
281300
+ pointer.set(newValue);
281301
+ handleChange4();
281302
+ }
281303
+ };
281304
+ if (pointer.initialized) {
281305
+ return [pointer.get(), setFn];
281306
+ }
281307
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
281308
+ pointer.set(value4);
281309
+ return [value4, setFn];
281310
+ });
281311
+ }
281312
+
281313
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
281314
+ function useEffect4(cb, depArray) {
281315
+ withPointer4((pointer) => {
281316
+ const oldDeps = pointer.get();
281317
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
281318
+ if (hasChanged) {
281319
+ effectScheduler4.queue(cb);
281320
+ }
281321
+ pointer.set(depArray);
281322
+ });
281323
+ }
281324
+
281325
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
281326
+ var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
281327
+ var defaultTheme4 = {
281328
+ prefix: {
281329
+ idle: import_yoctocolors_cjs6.default.blue("?"),
281330
+ done: import_yoctocolors_cjs6.default.green(esm_default.tick)
281331
+ },
281332
+ spinner: {
281333
+ interval: 80,
281334
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs6.default.yellow(frame))
281335
+ },
281336
+ style: {
281337
+ answer: import_yoctocolors_cjs6.default.cyan,
281338
+ message: import_yoctocolors_cjs6.default.bold,
281339
+ error: (text2) => import_yoctocolors_cjs6.default.red(`> ${text2}`),
281340
+ defaultAnswer: (text2) => import_yoctocolors_cjs6.default.dim(`(${text2})`),
281341
+ help: import_yoctocolors_cjs6.default.dim,
281342
+ highlight: import_yoctocolors_cjs6.default.cyan,
281343
+ key: (text2) => import_yoctocolors_cjs6.default.cyan(import_yoctocolors_cjs6.default.bold(`<${text2}>`))
281344
+ }
281345
+ };
281346
+
281347
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
281348
+ function isPlainObject5(value4) {
281349
+ if (typeof value4 !== "object" || value4 === null)
281350
+ return false;
281351
+ let proto = value4;
281352
+ while (Object.getPrototypeOf(proto) !== null) {
281353
+ proto = Object.getPrototypeOf(proto);
281354
+ }
281355
+ return Object.getPrototypeOf(value4) === proto;
281356
+ }
281357
+ function deepMerge5(...objects) {
281358
+ const output = {};
281359
+ for (const obj of objects) {
281360
+ for (const [key4, value4] of Object.entries(obj)) {
281361
+ const prevValue = output[key4];
281362
+ output[key4] = isPlainObject5(prevValue) && isPlainObject5(value4) ? deepMerge5(prevValue, value4) : value4;
281363
+ }
281364
+ }
281365
+ return output;
281366
+ }
281367
+ function makeTheme4(...themes) {
281368
+ const themesToMerge = [
281369
+ defaultTheme4,
281370
+ ...themes.filter((theme) => theme != null)
281371
+ ];
281372
+ return deepMerge5(...themesToMerge);
281373
+ }
281374
+
281375
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
281376
+ function usePrefix4({ status = "idle", theme }) {
281377
+ const [showLoader, setShowLoader] = useState4(false);
281378
+ const [tick, setTick] = useState4(0);
281379
+ const { prefix, spinner: spinner2 } = makeTheme4(theme);
281380
+ useEffect4(() => {
281381
+ if (status === "loading") {
281382
+ let tickInterval;
281383
+ let inc = -1;
281384
+ const delayTimeout = setTimeout(AsyncResource11.bind(() => {
281385
+ setShowLoader(true);
281386
+ tickInterval = setInterval(AsyncResource11.bind(() => {
281387
+ inc = inc + 1;
281388
+ setTick(inc % spinner2.frames.length);
281389
+ }), spinner2.interval);
281390
+ }), 300);
281391
+ return () => {
281392
+ clearTimeout(delayTimeout);
281393
+ clearInterval(tickInterval);
281394
+ };
281395
+ } else {
281396
+ setShowLoader(false);
281397
+ }
281398
+ }, [status]);
281399
+ if (showLoader) {
281400
+ return spinner2.frames[tick];
281401
+ }
281402
+ const iconName = status === "loading" ? "idle" : status;
281403
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
281404
+ }
281405
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
281406
+ function useRef4(val) {
281407
+ return useState4({ current: val })[0];
281408
+ }
281409
+
281410
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
281411
+ function useKeypress4(userHandler) {
281412
+ const signal = useRef4(userHandler);
281413
+ signal.current = userHandler;
281414
+ useEffect4((rl) => {
281415
+ let ignore = false;
281416
+ const handler = withUpdates4((_input, event) => {
281417
+ if (ignore)
281418
+ return;
281419
+ signal.current(event, rl);
281420
+ });
281421
+ rl.input.on("keypress", handler);
281422
+ return () => {
281423
+ ignore = true;
281424
+ rl.input.removeListener("keypress", handler);
281425
+ };
281426
+ }, []);
281427
+ }
281428
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
281429
+ var import_cli_width4 = __toESM(require_cli_width(), 1);
281430
+ var import_wrap_ansi4 = __toESM(require_wrap_ansi(), 1);
281431
+ function breakLines4(content, width) {
281432
+ return content.split(`
281433
+ `).flatMap((line) => import_wrap_ansi4.default(line, width, { trim: false, hard: true }).split(`
281434
+ `).map((str) => str.trimEnd())).join(`
281435
+ `);
281436
+ }
281437
+ function readlineWidth4() {
281438
+ return import_cli_width4.default({ defaultWidth: 80, output: readline7().output });
281439
+ }
281440
+
281441
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
281442
+ var import_mute_stream4 = __toESM(require_lib(), 1);
281443
+ import * as readline8 from "node:readline";
281444
+ import { AsyncResource as AsyncResource12 } from "node:async_hooks";
281445
+
281446
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
281447
+ var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
281448
+ import { stripVTControlCharacters as stripVTControlCharacters5 } from "node:util";
281449
+ var height4 = (content) => content.split(`
281450
+ `).length;
281451
+ var lastLine4 = (content) => content.split(`
281452
+ `).pop() ?? "";
281453
+ function cursorDown4(n6) {
281454
+ return n6 > 0 ? import_ansi_escapes5.default.cursorDown(n6) : "";
281455
+ }
281456
+
281457
+ class ScreenManager4 {
281458
+ rl;
281459
+ height = 0;
281460
+ extraLinesUnderPrompt = 0;
281461
+ cursorPos;
281462
+ constructor(rl) {
281463
+ this.rl = rl;
281464
+ this.rl = rl;
281465
+ this.cursorPos = rl.getCursorPos();
281466
+ }
281467
+ write(content) {
281468
+ this.rl.output.unmute();
281469
+ this.rl.output.write(content);
281470
+ this.rl.output.mute();
281471
+ }
281472
+ render(content, bottomContent = "") {
281473
+ const promptLine = lastLine4(content);
281474
+ const rawPromptLine = stripVTControlCharacters5(promptLine);
281475
+ let prompt = rawPromptLine;
281476
+ if (this.rl.line.length > 0) {
281477
+ prompt = prompt.slice(0, -this.rl.line.length);
281478
+ }
281479
+ this.rl.setPrompt(prompt);
281480
+ this.cursorPos = this.rl.getCursorPos();
281481
+ const width = readlineWidth4();
281482
+ content = breakLines4(content, width);
281483
+ bottomContent = breakLines4(bottomContent, width);
281484
+ if (rawPromptLine.length % width === 0) {
281485
+ content += `
281486
+ `;
281487
+ }
281488
+ let output = content + (bottomContent ? `
281489
+ ` + bottomContent : "");
281490
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
281491
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height4(bottomContent) : 0);
281492
+ if (bottomContentHeight > 0)
281493
+ output += import_ansi_escapes5.default.cursorUp(bottomContentHeight);
281494
+ output += import_ansi_escapes5.default.cursorTo(this.cursorPos.cols);
281495
+ this.write(cursorDown4(this.extraLinesUnderPrompt) + import_ansi_escapes5.default.eraseLines(this.height) + output);
281496
+ this.extraLinesUnderPrompt = bottomContentHeight;
281497
+ this.height = height4(output);
281498
+ }
281499
+ checkCursorPos() {
281500
+ const cursorPos = this.rl.getCursorPos();
281501
+ if (cursorPos.cols !== this.cursorPos.cols) {
281502
+ this.write(import_ansi_escapes5.default.cursorTo(cursorPos.cols));
281503
+ this.cursorPos = cursorPos;
281504
+ }
281505
+ }
281506
+ done({ clearContent }) {
281507
+ this.rl.setPrompt("");
281508
+ let output = cursorDown4(this.extraLinesUnderPrompt);
281509
+ output += clearContent ? import_ansi_escapes5.default.eraseLines(this.height) : `
281510
+ `;
281511
+ output += import_ansi_escapes5.default.cursorShow;
281512
+ this.write(output);
281513
+ this.rl.close();
281514
+ }
281515
+ }
281516
+
281517
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
281518
+ class PromisePolyfill4 extends Promise {
281519
+ static withResolver() {
281520
+ let resolve6;
281521
+ let reject;
281522
+ const promise = new Promise((res, rej) => {
281523
+ resolve6 = res;
281524
+ reject = rej;
281525
+ });
281526
+ return { promise, resolve: resolve6, reject };
281527
+ }
281528
+ }
281529
+
281530
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
281531
+ function getCallSites4() {
281532
+ const _prepareStackTrace = Error.prepareStackTrace;
281533
+ try {
281534
+ let result = [];
281535
+ Error.prepareStackTrace = (_5, callSites) => {
281536
+ const callSitesWithoutCurrent = callSites.slice(1);
281537
+ result = callSitesWithoutCurrent;
281538
+ return callSitesWithoutCurrent;
281539
+ };
281540
+ new Error().stack;
281541
+ return result;
281542
+ } finally {
281543
+ Error.prepareStackTrace = _prepareStackTrace;
281544
+ }
281545
+ }
281546
+ function createPrompt4(view) {
281547
+ const callSites = getCallSites4();
281548
+ const callerFilename = callSites[1]?.getFileName?.();
281549
+ const prompt = (config3, context = {}) => {
281550
+ const { input = process.stdin, signal } = context;
281551
+ const cleanups = new Set;
281552
+ const output = new import_mute_stream4.default;
281553
+ output.pipe(context.output ?? process.stdout);
281554
+ const rl = readline8.createInterface({
281555
+ terminal: true,
281556
+ input,
281557
+ output
281558
+ });
281559
+ const screen = new ScreenManager4(rl);
281560
+ const { promise, resolve: resolve6, reject } = PromisePolyfill4.withResolver();
281561
+ const cancel3 = () => reject(new CancelPromptError4);
281562
+ if (signal) {
281563
+ const abort = () => reject(new AbortPromptError4({ cause: signal.reason }));
281564
+ if (signal.aborted) {
281565
+ abort();
281566
+ return Object.assign(promise, { cancel: cancel3 });
281567
+ }
281568
+ signal.addEventListener("abort", abort);
281569
+ cleanups.add(() => signal.removeEventListener("abort", abort));
281570
+ }
281571
+ cleanups.add(onExit((code2, signal2) => {
281572
+ reject(new ExitPromptError4(`User force closed the prompt with ${code2} ${signal2}`));
281573
+ }));
281574
+ const checkCursorPos = () => screen.checkCursorPos();
281575
+ rl.input.on("keypress", checkCursorPos);
281576
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
281577
+ return withHooks4(rl, (cycle) => {
281578
+ const hooksCleanup = AsyncResource12.bind(() => effectScheduler4.clearAll());
281579
+ rl.on("close", hooksCleanup);
281580
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
281581
+ cycle(() => {
281582
+ try {
281583
+ const nextView = view(config3, (value4) => {
281584
+ setImmediate(() => resolve6(value4));
281585
+ });
281586
+ if (nextView === undefined) {
281587
+ throw new Error(`Prompt functions must return a string.
281588
+ at ${callerFilename}`);
281589
+ }
281590
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
281591
+ screen.render(content, bottomContent);
281592
+ effectScheduler4.run();
281593
+ } catch (error5) {
281594
+ reject(error5);
281595
+ }
281596
+ });
281597
+ return Object.assign(promise.then((answer) => {
281598
+ effectScheduler4.clearAll();
281599
+ return answer;
281600
+ }, (error5) => {
281601
+ effectScheduler4.clearAll();
281602
+ throw error5;
281603
+ }).finally(() => {
281604
+ cleanups.forEach((cleanup) => cleanup());
281605
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
281606
+ output.end();
281607
+ }).then(() => promise), { cancel: cancel3 });
281608
+ });
281609
+ };
281610
+ return prompt;
281611
+ }
280252
281612
  // ../../node_modules/@inquirer/password/dist/esm/index.js
280253
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
280254
- var esm_default5 = createPrompt((config3, done) => {
281613
+ var import_ansi_escapes6 = __toESM(require_ansi_escapes(), 1);
281614
+ var esm_default5 = createPrompt4((config3, done) => {
280255
281615
  const { validate: validate3 = () => true } = config3;
280256
- const theme = makeTheme(config3.theme);
280257
- const [status, setStatus] = useState("idle");
280258
- const [errorMsg, setError] = useState();
280259
- const [value4, setValue] = useState("");
280260
- const prefix = usePrefix({ status, theme });
280261
- useKeypress(async (key2, rl) => {
281616
+ const theme = makeTheme4(config3.theme);
281617
+ const [status, setStatus] = useState4("idle");
281618
+ const [errorMsg, setError] = useState4();
281619
+ const [value4, setValue] = useState4("");
281620
+ const prefix = usePrefix4({ status, theme });
281621
+ useKeypress4(async (key5, rl) => {
280262
281622
  if (status !== "idle") {
280263
281623
  return;
280264
281624
  }
280265
- if (isEnterKey(key2)) {
281625
+ if (isEnterKey4(key5)) {
280266
281626
  const answer = value4;
280267
281627
  setStatus("loading");
280268
281628
  const isValid2 = await validate3(answer);
@@ -280287,7 +281647,7 @@ var esm_default5 = createPrompt((config3, done) => {
280287
281647
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
280288
281648
  formattedValue = maskChar.repeat(value4.length);
280289
281649
  } else if (status !== "done") {
280290
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
281650
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes6.default.cursorHide}`;
280291
281651
  }
280292
281652
  if (status === "done") {
280293
281653
  formattedValue = theme.style.answer(formattedValue);
@@ -281359,7 +282719,7 @@ var basename2 = function(p6, extension) {
281359
282719
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
281360
282720
  };
281361
282721
  // ../../node_modules/defu/dist/defu.mjs
281362
- function isPlainObject3(value4) {
282722
+ function isPlainObject6(value4) {
281363
282723
  if (value4 === null || typeof value4 !== "object") {
281364
282724
  return false;
281365
282725
  }
@@ -281376,27 +282736,27 @@ function isPlainObject3(value4) {
281376
282736
  return true;
281377
282737
  }
281378
282738
  function _defu(baseObject, defaults2, namespace = ".", merger) {
281379
- if (!isPlainObject3(defaults2)) {
282739
+ if (!isPlainObject6(defaults2)) {
281380
282740
  return _defu(baseObject, {}, namespace, merger);
281381
282741
  }
281382
282742
  const object = Object.assign({}, defaults2);
281383
- for (const key2 in baseObject) {
281384
- if (key2 === "__proto__" || key2 === "constructor") {
282743
+ for (const key5 in baseObject) {
282744
+ if (key5 === "__proto__" || key5 === "constructor") {
281385
282745
  continue;
281386
282746
  }
281387
- const value4 = baseObject[key2];
282747
+ const value4 = baseObject[key5];
281388
282748
  if (value4 === null || value4 === undefined) {
281389
282749
  continue;
281390
282750
  }
281391
- if (merger && merger(object, key2, value4, namespace)) {
282751
+ if (merger && merger(object, key5, value4, namespace)) {
281392
282752
  continue;
281393
282753
  }
281394
- if (Array.isArray(value4) && Array.isArray(object[key2])) {
281395
- object[key2] = [...value4, ...object[key2]];
281396
- } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
281397
- object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
282754
+ if (Array.isArray(value4) && Array.isArray(object[key5])) {
282755
+ object[key5] = [...value4, ...object[key5]];
282756
+ } else if (isPlainObject6(value4) && isPlainObject6(object[key5])) {
282757
+ object[key5] = _defu(value4, object[key5], (namespace ? `${namespace}.` : "") + key5.toString(), merger);
281398
282758
  } else {
281399
- object[key2] = value4;
282759
+ object[key5] = value4;
281400
282760
  }
281401
282761
  }
281402
282762
  return object;
@@ -281405,15 +282765,15 @@ function createDefu(merger) {
281405
282765
  return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
281406
282766
  }
281407
282767
  var defu = createDefu();
281408
- var defuFn = createDefu((object, key2, currentValue) => {
281409
- if (object[key2] !== undefined && typeof currentValue === "function") {
281410
- object[key2] = currentValue(object[key2]);
282768
+ var defuFn = createDefu((object, key5, currentValue) => {
282769
+ if (object[key5] !== undefined && typeof currentValue === "function") {
282770
+ object[key5] = currentValue(object[key5]);
281411
282771
  return true;
281412
282772
  }
281413
282773
  });
281414
- var defuArrayFn = createDefu((object, key2, currentValue) => {
281415
- if (Array.isArray(object[key2]) && typeof currentValue === "function") {
281416
- object[key2] = currentValue(object[key2]);
282774
+ var defuArrayFn = createDefu((object, key5, currentValue) => {
282775
+ if (Array.isArray(object[key5]) && typeof currentValue === "function") {
282776
+ object[key5] = currentValue(object[key5]);
281417
282777
  return true;
281418
282778
  }
281419
282779
  });
@@ -281675,11 +283035,11 @@ function cacheDirectory() {
281675
283035
  }
281676
283036
  function normalizeHeaders(headers = {}) {
281677
283037
  const normalized = {};
281678
- for (const [key2, value4] of Object.entries(headers)) {
283038
+ for (const [key5, value4] of Object.entries(headers)) {
281679
283039
  if (!value4) {
281680
283040
  continue;
281681
283041
  }
281682
- normalized[key2.toLowerCase()] = value4;
283042
+ normalized[key5.toLowerCase()] = value4;
281683
283043
  }
281684
283044
  return normalized;
281685
283045
  }
@@ -283861,7 +285221,7 @@ function jsonOutput(data) {
283861
285221
  var composer = require_composer();
283862
285222
  var Document = require_Document();
283863
285223
  var Schema = require_Schema();
283864
- var errors2 = require_errors3();
285224
+ var errors5 = require_errors3();
283865
285225
  var Alias = require_Alias();
283866
285226
  var identity2 = require_identity();
283867
285227
  var Pair = require_Pair();
@@ -283877,9 +285237,9 @@ var visit2 = require_visit();
283877
285237
  var $Composer = composer.Composer;
283878
285238
  var $Document = Document.Document;
283879
285239
  var $Schema = Schema.Schema;
283880
- var $YAMLError = errors2.YAMLError;
283881
- var $YAMLParseError = errors2.YAMLParseError;
283882
- var $YAMLWarning = errors2.YAMLWarning;
285240
+ var $YAMLError = errors5.YAMLError;
285241
+ var $YAMLParseError = errors5.YAMLParseError;
285242
+ var $YAMLWarning = errors5.YAMLWarning;
283883
285243
  var $Alias = Alias.Alias;
283884
285244
  var $isAlias = identity2.isAlias;
283885
285245
  var $isCollection = identity2.isCollection;
@@ -284225,7 +285585,7 @@ async function getServicesAndMapResults({
284225
285585
  const application = await settlemint.application.read(applicationUniqueName);
284226
285586
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
284227
285587
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
284228
- const [_5, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
285588
+ const [_5, labels] = Object.entries(LABELS_MAP).find(([key5, value4]) => value4.command === serviceType) ?? [
284229
285589
  null,
284230
285590
  { plural: serviceType }
284231
285591
  ];
@@ -284453,11 +285813,11 @@ function createCommand4() {
284453
285813
 
284454
285814
  // src/utils/commands/passthrough-options.ts
284455
285815
  function mapPassthroughOptions(options, command) {
284456
- const optionArgs = Object.entries(options).map(([key2, value4]) => {
285816
+ const optionArgs = Object.entries(options).map(([key5, value4]) => {
284457
285817
  if (value4 === true) {
284458
- return `--${key2}`;
285818
+ return `--${key5}`;
284459
285819
  }
284460
- return `--${key2}=${value4}`;
285820
+ return `--${key5}=${value4}`;
284461
285821
  });
284462
285822
  return [...optionArgs, ...command.args];
284463
285823
  }
@@ -285381,4 +286741,4 @@ async function sdkCliCommand(argv = process.argv) {
285381
286741
  // src/cli.ts
285382
286742
  sdkCliCommand();
285383
286743
 
285384
- //# debugId=E32031EC08EF0F7964756E2164756E21
286744
+ //# debugId=C06D0DD93148AAE964756E2164756E21