@settlemint/sdk-cli 2.3.2-main6c90ceb0 → 2.3.2-main9eb5a777

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 +484 -1396
  2. package/dist/cli.js.map +4 -32
  3. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -232786,16 +232786,16 @@ var init_lru = __esm(() => {
232786
232786
  });
232787
232787
  this.maxSize = size2;
232788
232788
  }
232789
- get(key4) {
232790
- const value4 = super.get(key4);
232791
- if (super.has(key4) && value4 !== undefined) {
232792
- this.delete(key4);
232793
- super.set(key4, value4);
232789
+ get(key3) {
232790
+ const value4 = super.get(key3);
232791
+ if (super.has(key3) && value4 !== undefined) {
232792
+ this.delete(key3);
232793
+ super.set(key3, value4);
232794
232794
  }
232795
232795
  return value4;
232796
232796
  }
232797
- set(key4, value4) {
232798
- super.set(key4, value4);
232797
+ set(key3, value4) {
232798
+ super.set(key3, value4);
232799
232799
  if (this.maxSize && this.size > this.maxSize) {
232800
232800
  const firstKey = this.keys().next().value;
232801
232801
  if (firstKey)
@@ -233837,9 +233837,9 @@ var init_decodeErrorResult = __esm(() => {
233837
233837
  });
233838
233838
 
233839
233839
  // ../../node_modules/viem/_esm/utils/stringify.js
233840
- var stringify3 = (value4, replacer, space) => JSON.stringify(value4, (key4, value_) => {
233840
+ var stringify3 = (value4, replacer, space) => JSON.stringify(value4, (key3, value_) => {
233841
233841
  const value5 = typeof value_ === "bigint" ? value_.toString() : value_;
233842
- return typeof replacer === "function" ? replacer(key4, value5) : value5;
233842
+ return typeof replacer === "function" ? replacer(key3, value5) : value5;
233843
233843
  }, space);
233844
233844
 
233845
233845
  // ../../node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
@@ -233953,13 +233953,13 @@ var init_stateOverride = __esm(() => {
233953
233953
 
233954
233954
  // ../../node_modules/viem/_esm/errors/transaction.js
233955
233955
  function prettyPrint(args) {
233956
- const entries = Object.entries(args).map(([key4, value4]) => {
233956
+ const entries = Object.entries(args).map(([key3, value4]) => {
233957
233957
  if (value4 === undefined || value4 === false)
233958
233958
  return null;
233959
- return [key4, value4];
233959
+ return [key3, value4];
233960
233960
  }).filter(Boolean);
233961
- const maxLength = entries.reduce((acc, [key4]) => Math.max(acc, key4.length), 0);
233962
- return entries.map(([key4, value4]) => ` ${`${key4}:`.padEnd(maxLength + 1)} ${value4}`).join(`
233961
+ const maxLength = entries.reduce((acc, [key3]) => Math.max(acc, key3.length), 0);
233962
+ return entries.map(([key3, value4]) => ` ${`${key3}:`.padEnd(maxLength + 1)} ${value4}`).join(`
233963
233963
  `);
233964
233964
  }
233965
233965
  var FeeConflictError, InvalidSerializableTransactionError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
@@ -235067,7 +235067,7 @@ var init_sha2 = __esm(() => {
235067
235067
  });
235068
235068
 
235069
235069
  // ../../node_modules/@noble/hashes/esm/hmac.js
235070
- var HMAC, hmac = (hash2, key4, message) => new HMAC(hash2, key4).update(message).digest();
235070
+ var HMAC, hmac = (hash2, key3, message) => new HMAC(hash2, key3).update(message).digest();
235071
235071
  var init_hmac = __esm(() => {
235072
235072
  init__assert();
235073
235073
  init_utils2();
@@ -235077,7 +235077,7 @@ var init_hmac = __esm(() => {
235077
235077
  this.finished = false;
235078
235078
  this.destroyed = false;
235079
235079
  ahash(hash2);
235080
- const key4 = toBytes2(_key);
235080
+ const key3 = toBytes2(_key);
235081
235081
  this.iHash = hash2.create();
235082
235082
  if (typeof this.iHash.update !== "function")
235083
235083
  throw new Error("Expected instance of class which extends utils.Hash");
@@ -235085,7 +235085,7 @@ var init_hmac = __esm(() => {
235085
235085
  this.outputLen = this.iHash.outputLen;
235086
235086
  const blockLen = this.blockLen;
235087
235087
  const pad2 = new Uint8Array(blockLen);
235088
- pad2.set(key4.length > blockLen ? hash2.create().update(key4).digest() : key4);
235088
+ pad2.set(key3.length > blockLen ? hash2.create().update(key3).digest() : key3);
235089
235089
  for (let i6 = 0;i6 < pad2.length; i6++)
235090
235090
  pad2[i6] ^= 54;
235091
235091
  this.iHash.update(pad2);
@@ -235132,7 +235132,7 @@ var init_hmac = __esm(() => {
235132
235132
  this.iHash.destroy();
235133
235133
  }
235134
235134
  };
235135
- hmac.create = (hash2, key4) => new HMAC(hash2, key4);
235135
+ hmac.create = (hash2, key3) => new HMAC(hash2, key3);
235136
235136
  });
235137
235137
 
235138
235138
  // ../../node_modules/@noble/curves/esm/abstract/utils.js
@@ -235591,13 +235591,13 @@ function getMinHashLength(fieldOrder) {
235591
235591
  const length = getFieldBytesLength(fieldOrder);
235592
235592
  return length + Math.ceil(length / 2);
235593
235593
  }
235594
- function mapHashToField(key4, fieldOrder, isLE2 = false) {
235595
- const len = key4.length;
235594
+ function mapHashToField(key3, fieldOrder, isLE2 = false) {
235595
+ const len = key3.length;
235596
235596
  const fieldLen = getFieldBytesLength(fieldOrder);
235597
235597
  const minLen = getMinHashLength(fieldOrder);
235598
235598
  if (len < 16 || len < minLen || len > 1024)
235599
235599
  throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
235600
- const num = isLE2 ? bytesToNumberLE(key4) : bytesToNumberBE(key4);
235600
+ const num = isLE2 ? bytesToNumberLE(key3) : bytesToNumberBE(key3);
235601
235601
  const reduced = mod(num, fieldOrder - _1n3) + _1n3;
235602
235602
  return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
235603
235603
  }
@@ -235893,20 +235893,20 @@ function weierstrassPoints(opts) {
235893
235893
  function isWithinCurveOrder(num) {
235894
235894
  return inRange(num, _1n5, CURVE.n);
235895
235895
  }
235896
- function normPrivateKeyToScalar(key4) {
235896
+ function normPrivateKeyToScalar(key3) {
235897
235897
  const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n: N6 } = CURVE;
235898
- if (lengths && typeof key4 !== "bigint") {
235899
- if (isBytes2(key4))
235900
- key4 = bytesToHex2(key4);
235901
- if (typeof key4 !== "string" || !lengths.includes(key4.length))
235898
+ if (lengths && typeof key3 !== "bigint") {
235899
+ if (isBytes2(key3))
235900
+ key3 = bytesToHex2(key3);
235901
+ if (typeof key3 !== "string" || !lengths.includes(key3.length))
235902
235902
  throw new Error("invalid private key");
235903
- key4 = key4.padStart(nByteLength * 2, "0");
235903
+ key3 = key3.padStart(nByteLength * 2, "0");
235904
235904
  }
235905
235905
  let num;
235906
235906
  try {
235907
- num = typeof key4 === "bigint" ? key4 : bytesToNumberBE(ensureBytes("private key", key4, nByteLength));
235907
+ num = typeof key3 === "bigint" ? key3 : bytesToNumberBE(ensureBytes("private key", key3, nByteLength));
235908
235908
  } catch (error39) {
235909
- throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key4);
235909
+ throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key3);
235910
235910
  }
235911
235911
  if (wrapPrivateKey)
235912
235912
  num = mod(num, N6);
@@ -236737,7 +236737,7 @@ var init_weierstrass = __esm(() => {
236737
236737
  function getHash(hash2) {
236738
236738
  return {
236739
236739
  hash: hash2,
236740
- hmac: (key4, ...msgs) => hmac(hash2, key4, concatBytes(...msgs)),
236740
+ hmac: (key3, ...msgs) => hmac(hash2, key3, concatBytes(...msgs)),
236741
236741
  randomBytes
236742
236742
  };
236743
236743
  }
@@ -237358,11 +237358,11 @@ function extract2(value_, { format: format2 }) {
237358
237358
  const value4 = {};
237359
237359
  function extract_(formatted2) {
237360
237360
  const keys = Object.keys(formatted2);
237361
- for (const key4 of keys) {
237362
- if (key4 in value_)
237363
- value4[key4] = value_[key4];
237364
- if (formatted2[key4] && typeof formatted2[key4] === "object" && !Array.isArray(formatted2[key4]))
237365
- extract_(formatted2[key4]);
237361
+ for (const key3 of keys) {
237362
+ if (key3 in value_)
237363
+ value4[key3] = value_[key3];
237364
+ if (formatted2[key3] && typeof formatted2[key3] === "object" && !Array.isArray(formatted2[key3]))
237365
+ extract_(formatted2[key3]);
237366
237366
  }
237367
237367
  }
237368
237368
  const formatted = format2(value_ || {});
@@ -237764,9 +237764,9 @@ var init_Errors = __esm(() => {
237764
237764
 
237765
237765
  // ../../node_modules/ox/_esm/core/Json.js
237766
237766
  function stringify4(value4, replacer, space) {
237767
- return JSON.stringify(value4, (key4, value5) => {
237767
+ return JSON.stringify(value4, (key3, value5) => {
237768
237768
  if (typeof replacer === "function")
237769
- return replacer(key4, value5);
237769
+ return replacer(key3, value5);
237770
237770
  if (typeof value5 === "bigint")
237771
237771
  return value5.toString() + bigIntSuffix;
237772
237772
  return value5;
@@ -239188,11 +239188,11 @@ var require_visit = __commonJS((exports) => {
239188
239188
  visit2.BREAK = BREAK;
239189
239189
  visit2.SKIP = SKIP;
239190
239190
  visit2.REMOVE = REMOVE;
239191
- function visit_(key5, node, visitor, path5) {
239192
- const ctrl = callVisitor(key5, node, visitor, path5);
239191
+ function visit_(key3, node, visitor, path5) {
239192
+ const ctrl = callVisitor(key3, node, visitor, path5);
239193
239193
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239194
- replaceNode(key5, path5, ctrl);
239195
- return visit_(key5, ctrl, visitor, path5);
239194
+ replaceNode(key3, path5, ctrl);
239195
+ return visit_(key3, ctrl, visitor, path5);
239196
239196
  }
239197
239197
  if (typeof ctrl !== "symbol") {
239198
239198
  if (identity2.isCollection(node)) {
@@ -239236,11 +239236,11 @@ var require_visit = __commonJS((exports) => {
239236
239236
  visitAsync.BREAK = BREAK;
239237
239237
  visitAsync.SKIP = SKIP;
239238
239238
  visitAsync.REMOVE = REMOVE;
239239
- async function visitAsync_(key5, node, visitor, path5) {
239240
- const ctrl = await callVisitor(key5, node, visitor, path5);
239239
+ async function visitAsync_(key3, node, visitor, path5) {
239240
+ const ctrl = await callVisitor(key3, node, visitor, path5);
239241
239241
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239242
- replaceNode(key5, path5, ctrl);
239243
- return visitAsync_(key5, ctrl, visitor, path5);
239242
+ replaceNode(key3, path5, ctrl);
239243
+ return visitAsync_(key3, ctrl, visitor, path5);
239244
239244
  }
239245
239245
  if (typeof ctrl !== "symbol") {
239246
239246
  if (identity2.isCollection(node)) {
@@ -239290,27 +239290,27 @@ var require_visit = __commonJS((exports) => {
239290
239290
  }
239291
239291
  return visitor;
239292
239292
  }
239293
- function callVisitor(key5, node, visitor, path5) {
239293
+ function callVisitor(key3, node, visitor, path5) {
239294
239294
  if (typeof visitor === "function")
239295
- return visitor(key5, node, path5);
239295
+ return visitor(key3, node, path5);
239296
239296
  if (identity2.isMap(node))
239297
- return visitor.Map?.(key5, node, path5);
239297
+ return visitor.Map?.(key3, node, path5);
239298
239298
  if (identity2.isSeq(node))
239299
- return visitor.Seq?.(key5, node, path5);
239299
+ return visitor.Seq?.(key3, node, path5);
239300
239300
  if (identity2.isPair(node))
239301
- return visitor.Pair?.(key5, node, path5);
239301
+ return visitor.Pair?.(key3, node, path5);
239302
239302
  if (identity2.isScalar(node))
239303
- return visitor.Scalar?.(key5, node, path5);
239303
+ return visitor.Scalar?.(key3, node, path5);
239304
239304
  if (identity2.isAlias(node))
239305
- return visitor.Alias?.(key5, node, path5);
239305
+ return visitor.Alias?.(key3, node, path5);
239306
239306
  return;
239307
239307
  }
239308
- function replaceNode(key5, path5, node) {
239308
+ function replaceNode(key3, path5, node) {
239309
239309
  const parent = path5[path5.length - 1];
239310
239310
  if (identity2.isCollection(parent)) {
239311
- parent.items[key5] = node;
239311
+ parent.items[key3] = node;
239312
239312
  } else if (identity2.isPair(parent)) {
239313
- if (key5 === "key")
239313
+ if (key3 === "key")
239314
239314
  parent.key = node;
239315
239315
  else
239316
239316
  parent.value = node;
@@ -239541,7 +239541,7 @@ var require_anchors = __commonJS((exports) => {
239541
239541
 
239542
239542
  // ../../node_modules/yaml/dist/doc/applyReviver.js
239543
239543
  var require_applyReviver = __commonJS((exports) => {
239544
- function applyReviver(reviver, obj, key5, val) {
239544
+ function applyReviver(reviver, obj, key3, val) {
239545
239545
  if (val && typeof val === "object") {
239546
239546
  if (Array.isArray(val)) {
239547
239547
  for (let i7 = 0, len = val.length;i7 < len; ++i7) {
@@ -239581,7 +239581,7 @@ var require_applyReviver = __commonJS((exports) => {
239581
239581
  }
239582
239582
  }
239583
239583
  }
239584
- return reviver.call(obj, key5, val);
239584
+ return reviver.call(obj, key3, val);
239585
239585
  }
239586
239586
  exports.applyReviver = applyReviver;
239587
239587
  });
@@ -239910,29 +239910,29 @@ var require_Collection = __commonJS((exports) => {
239910
239910
  if (isEmptyPath(path5))
239911
239911
  this.add(value4);
239912
239912
  else {
239913
- const [key5, ...rest] = path5;
239914
- const node = this.get(key5, true);
239913
+ const [key3, ...rest] = path5;
239914
+ const node = this.get(key3, true);
239915
239915
  if (identity2.isCollection(node))
239916
239916
  node.addIn(rest, value4);
239917
239917
  else if (node === undefined && this.schema)
239918
- this.set(key5, collectionFromPath(this.schema, rest, value4));
239918
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
239919
239919
  else
239920
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
239920
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
239921
239921
  }
239922
239922
  }
239923
239923
  deleteIn(path5) {
239924
- const [key5, ...rest] = path5;
239924
+ const [key3, ...rest] = path5;
239925
239925
  if (rest.length === 0)
239926
- return this.delete(key5);
239927
- const node = this.get(key5, true);
239926
+ return this.delete(key3);
239927
+ const node = this.get(key3, true);
239928
239928
  if (identity2.isCollection(node))
239929
239929
  return node.deleteIn(rest);
239930
239930
  else
239931
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
239931
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
239932
239932
  }
239933
239933
  getIn(path5, keepScalar) {
239934
- const [key5, ...rest] = path5;
239935
- const node = this.get(key5, true);
239934
+ const [key3, ...rest] = path5;
239935
+ const node = this.get(key3, true);
239936
239936
  if (rest.length === 0)
239937
239937
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
239938
239938
  else
@@ -239947,24 +239947,24 @@ var require_Collection = __commonJS((exports) => {
239947
239947
  });
239948
239948
  }
239949
239949
  hasIn(path5) {
239950
- const [key5, ...rest] = path5;
239950
+ const [key3, ...rest] = path5;
239951
239951
  if (rest.length === 0)
239952
- return this.has(key5);
239953
- const node = this.get(key5, true);
239952
+ return this.has(key3);
239953
+ const node = this.get(key3, true);
239954
239954
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
239955
239955
  }
239956
239956
  setIn(path5, value4) {
239957
- const [key5, ...rest] = path5;
239957
+ const [key3, ...rest] = path5;
239958
239958
  if (rest.length === 0) {
239959
- this.set(key5, value4);
239959
+ this.set(key3, value4);
239960
239960
  } else {
239961
- const node = this.get(key5, true);
239961
+ const node = this.get(key3, true);
239962
239962
  if (identity2.isCollection(node))
239963
239963
  node.setIn(rest, value4);
239964
239964
  else if (node === undefined && this.schema)
239965
- this.set(key5, collectionFromPath(this.schema, rest, value4));
239965
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
239966
239966
  else
239967
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
239967
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
239968
239968
  }
239969
239969
  }
239970
239970
  }
@@ -240551,19 +240551,19 @@ var require_stringifyPair = __commonJS((exports) => {
240551
240551
  var Scalar = require_Scalar();
240552
240552
  var stringify5 = require_stringify();
240553
240553
  var stringifyComment = require_stringifyComment();
240554
- function stringifyPair2({ key: key5, value: value4 }, ctx, onComment, onChompKeep) {
240554
+ function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
240555
240555
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
240556
- let keyComment = identity2.isNode(key5) && key5.comment || null;
240556
+ let keyComment = identity2.isNode(key3) && key3.comment || null;
240557
240557
  if (simpleKeys) {
240558
240558
  if (keyComment) {
240559
240559
  throw new Error("With simple keys, key nodes cannot have comments");
240560
240560
  }
240561
- if (identity2.isCollection(key5) || !identity2.isNode(key5) && typeof key5 === "object") {
240561
+ if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
240562
240562
  const msg = "With simple keys, collection cannot be used as a key value";
240563
240563
  throw new Error(msg);
240564
240564
  }
240565
240565
  }
240566
- 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"));
240566
+ let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
240567
240567
  ctx = Object.assign({}, ctx, {
240568
240568
  allNullValues: false,
240569
240569
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -240571,7 +240571,7 @@ var require_stringifyPair = __commonJS((exports) => {
240571
240571
  });
240572
240572
  let keyCommentDone = false;
240573
240573
  let chompKeep = false;
240574
- let str = stringify5.stringify(key5, ctx, () => keyCommentDone = true, () => chompKeep = true);
240574
+ let str = stringify5.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
240575
240575
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
240576
240576
  if (simpleKeys)
240577
240577
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -240715,7 +240715,7 @@ var require_merge = __commonJS((exports) => {
240715
240715
  }),
240716
240716
  stringify: () => MERGE_KEY
240717
240717
  };
240718
- var isMergeKey = (ctx, key5) => (merge4.identify(key5) || identity2.isScalar(key5) && (!key5.type || key5.type === Scalar.Scalar.PLAIN) && merge4.identify(key5.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge4.tag && tag.default);
240718
+ var isMergeKey = (ctx, key3) => (merge4.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge4.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge4.tag && tag.default);
240719
240719
  function addMergeToJSMap(ctx, map4, value4) {
240720
240720
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
240721
240721
  if (identity2.isSeq(value4))
@@ -240732,14 +240732,14 @@ var require_merge = __commonJS((exports) => {
240732
240732
  if (!identity2.isMap(source))
240733
240733
  throw new Error("Merge sources must be maps or map aliases");
240734
240734
  const srcMap = source.toJSON(null, ctx, Map);
240735
- for (const [key5, value5] of srcMap) {
240735
+ for (const [key3, value5] of srcMap) {
240736
240736
  if (map4 instanceof Map) {
240737
- if (!map4.has(key5))
240738
- map4.set(key5, value5);
240737
+ if (!map4.has(key3))
240738
+ map4.set(key3, value5);
240739
240739
  } else if (map4 instanceof Set) {
240740
- map4.add(key5);
240741
- } else if (!Object.prototype.hasOwnProperty.call(map4, key5)) {
240742
- Object.defineProperty(map4, key5, {
240740
+ map4.add(key3);
240741
+ } else if (!Object.prototype.hasOwnProperty.call(map4, key3)) {
240742
+ Object.defineProperty(map4, key3, {
240743
240743
  value: value5,
240744
240744
  writable: true,
240745
240745
  enumerable: true,
@@ -240761,19 +240761,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240761
240761
  var stringify5 = require_stringify();
240762
240762
  var identity2 = require_identity();
240763
240763
  var toJS = require_toJS();
240764
- function addPairToJSMap(ctx, map4, { key: key5, value: value4 }) {
240765
- if (identity2.isNode(key5) && key5.addToJSMap)
240766
- key5.addToJSMap(ctx, map4, value4);
240767
- else if (merge4.isMergeKey(ctx, key5))
240764
+ function addPairToJSMap(ctx, map4, { key: key3, value: value4 }) {
240765
+ if (identity2.isNode(key3) && key3.addToJSMap)
240766
+ key3.addToJSMap(ctx, map4, value4);
240767
+ else if (merge4.isMergeKey(ctx, key3))
240768
240768
  merge4.addMergeToJSMap(ctx, map4, value4);
240769
240769
  else {
240770
- const jsKey = toJS.toJS(key5, "", ctx);
240770
+ const jsKey = toJS.toJS(key3, "", ctx);
240771
240771
  if (map4 instanceof Map) {
240772
240772
  map4.set(jsKey, toJS.toJS(value4, jsKey, ctx));
240773
240773
  } else if (map4 instanceof Set) {
240774
240774
  map4.add(jsKey);
240775
240775
  } else {
240776
- const stringKey = stringifyKey(key5, jsKey, ctx);
240776
+ const stringKey = stringifyKey(key3, jsKey, ctx);
240777
240777
  const jsValue = toJS.toJS(value4, stringKey, ctx);
240778
240778
  if (stringKey in map4)
240779
240779
  Object.defineProperty(map4, stringKey, {
@@ -240788,19 +240788,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240788
240788
  }
240789
240789
  return map4;
240790
240790
  }
240791
- function stringifyKey(key5, jsKey, ctx) {
240791
+ function stringifyKey(key3, jsKey, ctx) {
240792
240792
  if (jsKey === null)
240793
240793
  return "";
240794
240794
  if (typeof jsKey !== "object")
240795
240795
  return String(jsKey);
240796
- if (identity2.isNode(key5) && ctx?.doc) {
240796
+ if (identity2.isNode(key3) && ctx?.doc) {
240797
240797
  const strCtx = stringify5.createStringifyContext(ctx.doc, {});
240798
240798
  strCtx.anchors = new Set;
240799
240799
  for (const node of ctx.anchors.keys())
240800
240800
  strCtx.anchors.add(node.anchor);
240801
240801
  strCtx.inFlow = true;
240802
240802
  strCtx.inStringifyKey = true;
240803
- const strKey = key5.toString(strCtx);
240803
+ const strKey = key3.toString(strCtx);
240804
240804
  if (!ctx.mapKeyWarned) {
240805
240805
  let jsonStr = JSON.stringify(strKey);
240806
240806
  if (jsonStr.length > 40)
@@ -240821,25 +240821,25 @@ var require_Pair = __commonJS((exports) => {
240821
240821
  var stringifyPair2 = require_stringifyPair();
240822
240822
  var addPairToJSMap = require_addPairToJSMap();
240823
240823
  var identity2 = require_identity();
240824
- function createPair(key5, value4, ctx) {
240825
- const k6 = createNode.createNode(key5, undefined, ctx);
240824
+ function createPair(key3, value4, ctx) {
240825
+ const k6 = createNode.createNode(key3, undefined, ctx);
240826
240826
  const v7 = createNode.createNode(value4, undefined, ctx);
240827
240827
  return new Pair(k6, v7);
240828
240828
  }
240829
240829
 
240830
240830
  class Pair {
240831
- constructor(key5, value4 = null) {
240831
+ constructor(key3, value4 = null) {
240832
240832
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
240833
- this.key = key5;
240833
+ this.key = key3;
240834
240834
  this.value = value4;
240835
240835
  }
240836
240836
  clone(schema) {
240837
- let { key: key5, value: value4 } = this;
240838
- if (identity2.isNode(key5))
240839
- key5 = key5.clone(schema);
240837
+ let { key: key3, value: value4 } = this;
240838
+ if (identity2.isNode(key3))
240839
+ key3 = key3.clone(schema);
240840
240840
  if (identity2.isNode(value4))
240841
240841
  value4 = value4.clone(schema);
240842
- return new Pair(key5, value4);
240842
+ return new Pair(key3, value4);
240843
240843
  }
240844
240844
  toJSON(_6, ctx) {
240845
240845
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -241006,11 +241006,11 @@ var require_YAMLMap = __commonJS((exports) => {
241006
241006
  var identity2 = require_identity();
241007
241007
  var Pair = require_Pair();
241008
241008
  var Scalar = require_Scalar();
241009
- function findPair(items, key5) {
241010
- const k6 = identity2.isScalar(key5) ? key5.value : key5;
241009
+ function findPair(items, key3) {
241010
+ const k6 = identity2.isScalar(key3) ? key3.value : key3;
241011
241011
  for (const it2 of items) {
241012
241012
  if (identity2.isPair(it2)) {
241013
- if (it2.key === key5 || it2.key === k6)
241013
+ if (it2.key === key3 || it2.key === k6)
241014
241014
  return it2;
241015
241015
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
241016
241016
  return it2;
@@ -241030,20 +241030,20 @@ var require_YAMLMap = __commonJS((exports) => {
241030
241030
  static from(schema, obj, ctx) {
241031
241031
  const { keepUndefined, replacer } = ctx;
241032
241032
  const map4 = new this(schema);
241033
- const add = (key5, value4) => {
241033
+ const add = (key3, value4) => {
241034
241034
  if (typeof replacer === "function")
241035
- value4 = replacer.call(obj, key5, value4);
241036
- else if (Array.isArray(replacer) && !replacer.includes(key5))
241035
+ value4 = replacer.call(obj, key3, value4);
241036
+ else if (Array.isArray(replacer) && !replacer.includes(key3))
241037
241037
  return;
241038
241038
  if (value4 !== undefined || keepUndefined)
241039
- map4.items.push(Pair.createPair(key5, value4, ctx));
241039
+ map4.items.push(Pair.createPair(key3, value4, ctx));
241040
241040
  };
241041
241041
  if (obj instanceof Map) {
241042
- for (const [key5, value4] of obj)
241043
- add(key5, value4);
241042
+ for (const [key3, value4] of obj)
241043
+ add(key3, value4);
241044
241044
  } else if (obj && typeof obj === "object") {
241045
- for (const key5 of Object.keys(obj))
241046
- add(key5, obj[key5]);
241045
+ for (const key3 of Object.keys(obj))
241046
+ add(key3, obj[key3]);
241047
241047
  }
241048
241048
  if (typeof schema.sortMapEntries === "function") {
241049
241049
  map4.items.sort(schema.sortMapEntries);
@@ -241077,23 +241077,23 @@ var require_YAMLMap = __commonJS((exports) => {
241077
241077
  this.items.push(_pair);
241078
241078
  }
241079
241079
  }
241080
- delete(key5) {
241081
- const it2 = findPair(this.items, key5);
241080
+ delete(key3) {
241081
+ const it2 = findPair(this.items, key3);
241082
241082
  if (!it2)
241083
241083
  return false;
241084
241084
  const del = this.items.splice(this.items.indexOf(it2), 1);
241085
241085
  return del.length > 0;
241086
241086
  }
241087
- get(key5, keepScalar) {
241088
- const it2 = findPair(this.items, key5);
241087
+ get(key3, keepScalar) {
241088
+ const it2 = findPair(this.items, key3);
241089
241089
  const node = it2?.value;
241090
241090
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
241091
241091
  }
241092
- has(key5) {
241093
- return !!findPair(this.items, key5);
241092
+ has(key3) {
241093
+ return !!findPair(this.items, key3);
241094
241094
  }
241095
- set(key5, value4) {
241096
- this.add(new Pair.Pair(key5, value4), true);
241095
+ set(key3, value4) {
241096
+ this.add(new Pair.Pair(key3, value4), true);
241097
241097
  }
241098
241098
  toJSON(_6, ctx, Type) {
241099
241099
  const map4 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -241164,28 +241164,28 @@ var require_YAMLSeq = __commonJS((exports) => {
241164
241164
  add(value4) {
241165
241165
  this.items.push(value4);
241166
241166
  }
241167
- delete(key5) {
241168
- const idx = asItemIndex(key5);
241167
+ delete(key3) {
241168
+ const idx = asItemIndex(key3);
241169
241169
  if (typeof idx !== "number")
241170
241170
  return false;
241171
241171
  const del = this.items.splice(idx, 1);
241172
241172
  return del.length > 0;
241173
241173
  }
241174
- get(key5, keepScalar) {
241175
- const idx = asItemIndex(key5);
241174
+ get(key3, keepScalar) {
241175
+ const idx = asItemIndex(key3);
241176
241176
  if (typeof idx !== "number")
241177
241177
  return;
241178
241178
  const it2 = this.items[idx];
241179
241179
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
241180
241180
  }
241181
- has(key5) {
241182
- const idx = asItemIndex(key5);
241181
+ has(key3) {
241182
+ const idx = asItemIndex(key3);
241183
241183
  return typeof idx === "number" && idx < this.items.length;
241184
241184
  }
241185
- set(key5, value4) {
241186
- const idx = asItemIndex(key5);
241185
+ set(key3, value4) {
241186
+ const idx = asItemIndex(key3);
241187
241187
  if (typeof idx !== "number")
241188
- throw new Error(`Expected a valid index, not ${key5}.`);
241188
+ throw new Error(`Expected a valid index, not ${key3}.`);
241189
241189
  const prev = this.items[idx];
241190
241190
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
241191
241191
  prev.value = value4;
@@ -241219,8 +241219,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241219
241219
  let i7 = 0;
241220
241220
  for (let it2 of obj) {
241221
241221
  if (typeof replacer === "function") {
241222
- const key5 = obj instanceof Set ? it2 : String(i7++);
241223
- it2 = replacer.call(obj, key5, it2);
241222
+ const key3 = obj instanceof Set ? it2 : String(i7++);
241223
+ it2 = replacer.call(obj, key3, it2);
241224
241224
  }
241225
241225
  seq.items.push(createNode.createNode(it2, undefined, ctx));
241226
241226
  }
@@ -241228,8 +241228,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241228
241228
  return seq;
241229
241229
  }
241230
241230
  }
241231
- function asItemIndex(key5) {
241232
- let idx = identity2.isScalar(key5) ? key5.value : key5;
241231
+ function asItemIndex(key3) {
241232
+ let idx = identity2.isScalar(key3) ? key3.value : key3;
241233
241233
  if (idx && typeof idx === "string")
241234
241234
  idx = Number(idx);
241235
241235
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -241602,25 +241602,25 @@ ${cn.comment}` : item.comment;
241602
241602
  for (let it2 of iterable) {
241603
241603
  if (typeof replacer === "function")
241604
241604
  it2 = replacer.call(iterable, String(i7++), it2);
241605
- let key5, value4;
241605
+ let key3, value4;
241606
241606
  if (Array.isArray(it2)) {
241607
241607
  if (it2.length === 2) {
241608
- key5 = it2[0];
241608
+ key3 = it2[0];
241609
241609
  value4 = it2[1];
241610
241610
  } else
241611
241611
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
241612
241612
  } else if (it2 && it2 instanceof Object) {
241613
241613
  const keys = Object.keys(it2);
241614
241614
  if (keys.length === 1) {
241615
- key5 = keys[0];
241616
- value4 = it2[key5];
241615
+ key3 = keys[0];
241616
+ value4 = it2[key3];
241617
241617
  } else {
241618
241618
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
241619
241619
  }
241620
241620
  } else {
241621
- key5 = it2;
241621
+ key3 = it2;
241622
241622
  }
241623
- pairs2.items.push(Pair.createPair(key5, value4, ctx));
241623
+ pairs2.items.push(Pair.createPair(key3, value4, ctx));
241624
241624
  }
241625
241625
  return pairs2;
241626
241626
  }
@@ -241661,16 +241661,16 @@ var require_omap = __commonJS((exports) => {
241661
241661
  if (ctx?.onCreate)
241662
241662
  ctx.onCreate(map4);
241663
241663
  for (const pair of this.items) {
241664
- let key5, value4;
241664
+ let key3, value4;
241665
241665
  if (identity2.isPair(pair)) {
241666
- key5 = toJS.toJS(pair.key, "", ctx);
241667
- value4 = toJS.toJS(pair.value, key5, ctx);
241666
+ key3 = toJS.toJS(pair.key, "", ctx);
241667
+ value4 = toJS.toJS(pair.value, key3, ctx);
241668
241668
  } else {
241669
- key5 = toJS.toJS(pair, "", ctx);
241669
+ key3 = toJS.toJS(pair, "", ctx);
241670
241670
  }
241671
- if (map4.has(key5))
241671
+ if (map4.has(key3))
241672
241672
  throw new Error("Ordered maps must not include duplicate keys");
241673
- map4.set(key5, value4);
241673
+ map4.set(key3, value4);
241674
241674
  }
241675
241675
  return map4;
241676
241676
  }
@@ -241691,12 +241691,12 @@ var require_omap = __commonJS((exports) => {
241691
241691
  resolve(seq, onError) {
241692
241692
  const pairs$1 = pairs.resolvePairs(seq, onError);
241693
241693
  const seenKeys = [];
241694
- for (const { key: key5 } of pairs$1.items) {
241695
- if (identity2.isScalar(key5)) {
241696
- if (seenKeys.includes(key5.value)) {
241697
- onError(`Ordered maps must not include duplicate keys: ${key5.value}`);
241694
+ for (const { key: key3 } of pairs$1.items) {
241695
+ if (identity2.isScalar(key3)) {
241696
+ if (seenKeys.includes(key3.value)) {
241697
+ onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
241698
241698
  } else {
241699
- seenKeys.push(key5.value);
241699
+ seenKeys.push(key3.value);
241700
241700
  }
241701
241701
  }
241702
241702
  }
@@ -241870,30 +241870,30 @@ var require_set = __commonJS((exports) => {
241870
241870
  super(schema);
241871
241871
  this.tag = YAMLSet.tag;
241872
241872
  }
241873
- add(key5) {
241873
+ add(key3) {
241874
241874
  let pair;
241875
- if (identity2.isPair(key5))
241876
- pair = key5;
241877
- else if (key5 && typeof key5 === "object" && "key" in key5 && "value" in key5 && key5.value === null)
241878
- pair = new Pair.Pair(key5.key, null);
241875
+ if (identity2.isPair(key3))
241876
+ pair = key3;
241877
+ else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
241878
+ pair = new Pair.Pair(key3.key, null);
241879
241879
  else
241880
- pair = new Pair.Pair(key5, null);
241880
+ pair = new Pair.Pair(key3, null);
241881
241881
  const prev = YAMLMap.findPair(this.items, pair.key);
241882
241882
  if (!prev)
241883
241883
  this.items.push(pair);
241884
241884
  }
241885
- get(key5, keepPair) {
241886
- const pair = YAMLMap.findPair(this.items, key5);
241885
+ get(key3, keepPair) {
241886
+ const pair = YAMLMap.findPair(this.items, key3);
241887
241887
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
241888
241888
  }
241889
- set(key5, value4) {
241889
+ set(key3, value4) {
241890
241890
  if (typeof value4 !== "boolean")
241891
241891
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
241892
- const prev = YAMLMap.findPair(this.items, key5);
241892
+ const prev = YAMLMap.findPair(this.items, key3);
241893
241893
  if (prev && !value4) {
241894
241894
  this.items.splice(this.items.indexOf(prev), 1);
241895
241895
  } else if (!prev && value4) {
241896
- this.items.push(new Pair.Pair(key5));
241896
+ this.items.push(new Pair.Pair(key3));
241897
241897
  }
241898
241898
  }
241899
241899
  toJSON(_6, ctx) {
@@ -242128,7 +242128,7 @@ var require_tags = __commonJS((exports) => {
242128
242128
  if (Array.isArray(customTags))
242129
242129
  tags = [];
242130
242130
  else {
242131
- const keys = Array.from(schemas3.keys()).filter((key5) => key5 !== "yaml11").map((key5) => JSON.stringify(key5)).join(", ");
242131
+ const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
242132
242132
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
242133
242133
  }
242134
242134
  }
@@ -242144,7 +242144,7 @@ var require_tags = __commonJS((exports) => {
242144
242144
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
242145
242145
  if (!tagObj) {
242146
242146
  const tagName = JSON.stringify(tag);
242147
- const keys = Object.keys(tagsByName).map((key5) => JSON.stringify(key5)).join(", ");
242147
+ const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
242148
242148
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
242149
242149
  }
242150
242150
  if (!tags2.includes(tagObj))
@@ -242379,13 +242379,13 @@ var require_Document = __commonJS((exports) => {
242379
242379
  setAnchors();
242380
242380
  return node;
242381
242381
  }
242382
- createPair(key5, value4, options = {}) {
242383
- const k6 = this.createNode(key5, null, options);
242382
+ createPair(key3, value4, options = {}) {
242383
+ const k6 = this.createNode(key3, null, options);
242384
242384
  const v7 = this.createNode(value4, null, options);
242385
242385
  return new Pair.Pair(k6, v7);
242386
242386
  }
242387
- delete(key5) {
242388
- return assertCollection(this.contents) ? this.contents.delete(key5) : false;
242387
+ delete(key3) {
242388
+ return assertCollection(this.contents) ? this.contents.delete(key3) : false;
242389
242389
  }
242390
242390
  deleteIn(path5) {
242391
242391
  if (Collection.isEmptyPath(path5)) {
@@ -242396,27 +242396,27 @@ var require_Document = __commonJS((exports) => {
242396
242396
  }
242397
242397
  return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
242398
242398
  }
242399
- get(key5, keepScalar) {
242400
- return identity2.isCollection(this.contents) ? this.contents.get(key5, keepScalar) : undefined;
242399
+ get(key3, keepScalar) {
242400
+ return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
242401
242401
  }
242402
242402
  getIn(path5, keepScalar) {
242403
242403
  if (Collection.isEmptyPath(path5))
242404
242404
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
242405
242405
  return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
242406
242406
  }
242407
- has(key5) {
242408
- return identity2.isCollection(this.contents) ? this.contents.has(key5) : false;
242407
+ has(key3) {
242408
+ return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
242409
242409
  }
242410
242410
  hasIn(path5) {
242411
242411
  if (Collection.isEmptyPath(path5))
242412
242412
  return this.contents !== undefined;
242413
242413
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
242414
242414
  }
242415
- set(key5, value4) {
242415
+ set(key3, value4) {
242416
242416
  if (this.contents == null) {
242417
- this.contents = Collection.collectionFromPath(this.schema, [key5], value4);
242417
+ this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
242418
242418
  } else if (assertCollection(this.contents)) {
242419
- this.contents.set(key5, value4);
242419
+ this.contents.set(key3, value4);
242420
242420
  }
242421
242421
  }
242422
242422
  setIn(path5, value4) {
@@ -242698,25 +242698,25 @@ var require_resolve_props = __commonJS((exports) => {
242698
242698
 
242699
242699
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
242700
242700
  var require_util_contains_newline = __commonJS((exports) => {
242701
- function containsNewline(key5) {
242702
- if (!key5)
242701
+ function containsNewline(key3) {
242702
+ if (!key3)
242703
242703
  return null;
242704
- switch (key5.type) {
242704
+ switch (key3.type) {
242705
242705
  case "alias":
242706
242706
  case "scalar":
242707
242707
  case "double-quoted-scalar":
242708
242708
  case "single-quoted-scalar":
242709
- if (key5.source.includes(`
242709
+ if (key3.source.includes(`
242710
242710
  `))
242711
242711
  return true;
242712
- if (key5.end) {
242713
- for (const st2 of key5.end)
242712
+ if (key3.end) {
242713
+ for (const st2 of key3.end)
242714
242714
  if (st2.type === "newline")
242715
242715
  return true;
242716
242716
  }
242717
242717
  return false;
242718
242718
  case "flow-collection":
242719
- for (const it2 of key5.items) {
242719
+ for (const it2 of key3.items) {
242720
242720
  for (const st2 of it2.start)
242721
242721
  if (st2.type === "newline")
242722
242722
  return true;
@@ -242781,10 +242781,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242781
242781
  let offset = bm.offset;
242782
242782
  let commentEnd = null;
242783
242783
  for (const collItem of bm.items) {
242784
- const { start: start3, key: key5, sep: sep3, value: value4 } = collItem;
242784
+ const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
242785
242785
  const keyProps = resolveProps.resolveProps(start3, {
242786
242786
  indicator: "explicit-key-ind",
242787
- next: key5 ?? sep3?.[0],
242787
+ next: key3 ?? sep3?.[0],
242788
242788
  offset,
242789
242789
  onError,
242790
242790
  parentIndent: bm.indent,
@@ -242792,10 +242792,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242792
242792
  });
242793
242793
  const implicitKey = !keyProps.found;
242794
242794
  if (implicitKey) {
242795
- if (key5) {
242796
- if (key5.type === "block-seq")
242795
+ if (key3) {
242796
+ if (key3.type === "block-seq")
242797
242797
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
242798
- else if ("indent" in key5 && key5.indent !== bm.indent)
242798
+ else if ("indent" in key3 && key3.indent !== bm.indent)
242799
242799
  onError(offset, "BAD_INDENT", startColMsg);
242800
242800
  }
242801
242801
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -242809,17 +242809,17 @@ var require_resolve_block_map = __commonJS((exports) => {
242809
242809
  }
242810
242810
  continue;
242811
242811
  }
242812
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key5)) {
242813
- onError(key5 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242812
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
242813
+ onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242814
242814
  }
242815
242815
  } else if (keyProps.found?.indent !== bm.indent) {
242816
242816
  onError(offset, "BAD_INDENT", startColMsg);
242817
242817
  }
242818
242818
  ctx.atKey = true;
242819
242819
  const keyStart = keyProps.end;
242820
- const keyNode = key5 ? composeNode(ctx, key5, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242820
+ const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242821
242821
  if (ctx.schema.compat)
242822
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key5, onError);
242822
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
242823
242823
  ctx.atKey = false;
242824
242824
  if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
242825
242825
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -242829,7 +242829,7 @@ var require_resolve_block_map = __commonJS((exports) => {
242829
242829
  offset: keyNode.range[2],
242830
242830
  onError,
242831
242831
  parentIndent: bm.indent,
242832
- startOnNewline: !key5 || key5.type === "block-scalar"
242832
+ startOnNewline: !key3 || key3.type === "block-scalar"
242833
242833
  });
242834
242834
  offset = valueProps.end;
242835
242835
  if (valueProps.found) {
@@ -242985,11 +242985,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
242985
242985
  let offset = fc.offset + fc.start.source.length;
242986
242986
  for (let i7 = 0;i7 < fc.items.length; ++i7) {
242987
242987
  const collItem = fc.items[i7];
242988
- const { start: start3, key: key5, sep: sep3, value: value4 } = collItem;
242988
+ const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
242989
242989
  const props = resolveProps.resolveProps(start3, {
242990
242990
  flow: fcName,
242991
242991
  indicator: "explicit-key-ind",
242992
- next: key5 ?? sep3?.[0],
242992
+ next: key3 ?? sep3?.[0],
242993
242993
  offset,
242994
242994
  onError,
242995
242995
  parentIndent: fc.indent,
@@ -243011,8 +243011,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243011
243011
  offset = props.end;
243012
243012
  continue;
243013
243013
  }
243014
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key5))
243015
- onError(key5, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243014
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
243015
+ onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243016
243016
  }
243017
243017
  if (i7 === 0) {
243018
243018
  if (props.comma)
@@ -243057,8 +243057,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243057
243057
  } else {
243058
243058
  ctx.atKey = true;
243059
243059
  const keyStart = props.end;
243060
- const keyNode = key5 ? composeNode(ctx, key5, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243061
- if (isBlock(key5))
243060
+ const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243061
+ if (isBlock(key3))
243062
243062
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
243063
243063
  ctx.atKey = false;
243064
243064
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -243869,7 +243869,7 @@ var require_composer = __commonJS((exports) => {
243869
243869
  var node_process = __require("process");
243870
243870
  var directives4 = require_directives2();
243871
243871
  var Document = require_Document();
243872
- var errors7 = require_errors3();
243872
+ var errors5 = require_errors3();
243873
243873
  var identity2 = require_identity();
243874
243874
  var composeDoc = require_compose_doc();
243875
243875
  var resolveEnd = require_resolve_end();
@@ -243920,9 +243920,9 @@ var require_composer = __commonJS((exports) => {
243920
243920
  this.onError = (source, code2, message, warning) => {
243921
243921
  const pos = getErrorPos(source);
243922
243922
  if (warning)
243923
- this.warnings.push(new errors7.YAMLWarning(pos, code2, message));
243923
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
243924
243924
  else
243925
- this.errors.push(new errors7.YAMLParseError(pos, code2, message));
243925
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
243926
243926
  };
243927
243927
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
243928
243928
  this.options = options;
@@ -244006,7 +244006,7 @@ ${cb}` : comment;
244006
244006
  break;
244007
244007
  case "error": {
244008
244008
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
244009
- const error39 = new errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244009
+ const error39 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244010
244010
  if (this.atDirectives || !this.doc)
244011
244011
  this.errors.push(error39);
244012
244012
  else
@@ -244016,7 +244016,7 @@ ${cb}` : comment;
244016
244016
  case "doc-end": {
244017
244017
  if (!this.doc) {
244018
244018
  const msg = "Unexpected doc-end without preceding document";
244019
- this.errors.push(new errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244019
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244020
244020
  break;
244021
244021
  }
244022
244022
  this.doc.directives.docEnd = true;
@@ -244031,7 +244031,7 @@ ${end.comment}` : end.comment;
244031
244031
  break;
244032
244032
  }
244033
244033
  default:
244034
- this.errors.push(new errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244034
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244035
244035
  }
244036
244036
  }
244037
244037
  *end(forceDoc = false, endOffset = -1) {
@@ -244057,7 +244057,7 @@ ${end.comment}` : end.comment;
244057
244057
  var require_cst_scalar = __commonJS((exports) => {
244058
244058
  var resolveBlockScalar = require_resolve_block_scalar();
244059
244059
  var resolveFlowScalar = require_resolve_flow_scalar();
244060
- var errors7 = require_errors3();
244060
+ var errors5 = require_errors3();
244061
244061
  var stringifyString = require_stringifyString();
244062
244062
  function resolveAsScalar(token, strict = true, onError) {
244063
244063
  if (token) {
@@ -244066,7 +244066,7 @@ var require_cst_scalar = __commonJS((exports) => {
244066
244066
  if (onError)
244067
244067
  onError(offset, code2, message);
244068
244068
  else
244069
- throw new errors7.YAMLParseError([offset, offset + 1], code2, message);
244069
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
244070
244070
  };
244071
244071
  switch (token.type) {
244072
244072
  case "scalar":
@@ -244180,9 +244180,9 @@ var require_cst_scalar = __commonJS((exports) => {
244180
244180
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
244181
244181
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
244182
244182
  ` });
244183
- for (const key5 of Object.keys(token))
244184
- if (key5 !== "type" && key5 !== "offset")
244185
- delete token[key5];
244183
+ for (const key3 of Object.keys(token))
244184
+ if (key3 !== "type" && key3 !== "offset")
244185
+ delete token[key3];
244186
244186
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
244187
244187
  }
244188
244188
  }
@@ -244231,9 +244231,9 @@ var require_cst_scalar = __commonJS((exports) => {
244231
244231
  default: {
244232
244232
  const indent2 = "indent" in token ? token.indent : -1;
244233
244233
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
244234
- for (const key5 of Object.keys(token))
244235
- if (key5 !== "type" && key5 !== "offset")
244236
- delete token[key5];
244234
+ for (const key3 of Object.keys(token))
244235
+ if (key3 !== "type" && key3 !== "offset")
244236
+ delete token[key3];
244237
244237
  Object.assign(token, { type: type4, indent: indent2, source, end });
244238
244238
  }
244239
244239
  }
@@ -244285,12 +244285,12 @@ var require_cst_stringify = __commonJS((exports) => {
244285
244285
  }
244286
244286
  }
244287
244287
  }
244288
- function stringifyItem({ start: start3, key: key5, sep: sep3, value: value4 }) {
244288
+ function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
244289
244289
  let res = "";
244290
244290
  for (const st2 of start3)
244291
244291
  res += st2.source;
244292
- if (key5)
244293
- res += stringifyToken(key5);
244292
+ if (key3)
244293
+ res += stringifyToken(key3);
244294
244294
  if (sep3)
244295
244295
  for (const st2 of sep3)
244296
244296
  res += st2.source;
@@ -245586,7 +245586,7 @@ var require_parser2 = __commonJS((exports) => {
245586
245586
  });
245587
245587
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
245588
245588
  const start4 = getFirstKeyStartProps(it2.start);
245589
- const key5 = it2.key;
245589
+ const key3 = it2.key;
245590
245590
  const sep3 = it2.sep;
245591
245591
  sep3.push(this.sourceToken);
245592
245592
  delete it2.key;
@@ -245595,7 +245595,7 @@ var require_parser2 = __commonJS((exports) => {
245595
245595
  type: "block-map",
245596
245596
  offset: this.offset,
245597
245597
  indent: this.indent,
245598
- items: [{ start: start4, key: key5, sep: sep3 }]
245598
+ items: [{ start: start4, key: key3, sep: sep3 }]
245599
245599
  });
245600
245600
  } else if (start3.length > 0) {
245601
245601
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -245928,7 +245928,7 @@ var require_parser2 = __commonJS((exports) => {
245928
245928
  var require_public_api = __commonJS((exports) => {
245929
245929
  var composer = require_composer();
245930
245930
  var Document = require_Document();
245931
- var errors7 = require_errors3();
245931
+ var errors5 = require_errors3();
245932
245932
  var log = require_log();
245933
245933
  var identity2 = require_identity();
245934
245934
  var lineCounter = require_line_counter();
@@ -245945,8 +245945,8 @@ var require_public_api = __commonJS((exports) => {
245945
245945
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
245946
245946
  if (prettyErrors && lineCounter2)
245947
245947
  for (const doc2 of docs) {
245948
- doc2.errors.forEach(errors7.prettifyError(source, lineCounter2));
245949
- doc2.warnings.forEach(errors7.prettifyError(source, lineCounter2));
245948
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
245949
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
245950
245950
  }
245951
245951
  if (docs.length > 0)
245952
245952
  return docs;
@@ -245961,13 +245961,13 @@ var require_public_api = __commonJS((exports) => {
245961
245961
  if (!doc2)
245962
245962
  doc2 = _doc;
245963
245963
  else if (doc2.options.logLevel !== "silent") {
245964
- doc2.errors.push(new errors7.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
245964
+ doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
245965
245965
  break;
245966
245966
  }
245967
245967
  }
245968
245968
  if (prettyErrors && lineCounter2) {
245969
- doc2.errors.forEach(errors7.prettifyError(source, lineCounter2));
245970
- doc2.warnings.forEach(errors7.prettifyError(source, lineCounter2));
245969
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
245970
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
245971
245971
  }
245972
245972
  return doc2;
245973
245973
  }
@@ -262458,7 +262458,7 @@ function pruneCurrentEnv(currentEnv, env2) {
262458
262458
  var package_default = {
262459
262459
  name: "@settlemint/sdk-cli",
262460
262460
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
262461
- version: "2.3.2-main6c90ceb0",
262461
+ version: "2.3.2-main9eb5a777",
262462
262462
  type: "module",
262463
262463
  private: false,
262464
262464
  license: "FSL-1.1-MIT",
@@ -262504,11 +262504,11 @@ var package_default = {
262504
262504
  "@commander-js/extra-typings": "14.0.0",
262505
262505
  commander: "14.0.0",
262506
262506
  "@inquirer/confirm": "5.1.11",
262507
- "@inquirer/input": "4.1.10",
262508
- "@inquirer/password": "4.0.13",
262507
+ "@inquirer/input": "4.1.11",
262508
+ "@inquirer/password": "4.0.14",
262509
262509
  "@inquirer/select": "4.2.1",
262510
- "@settlemint/sdk-js": "2.3.2-main6c90ceb0",
262511
- "@settlemint/sdk-utils": "2.3.2-main6c90ceb0",
262510
+ "@settlemint/sdk-js": "2.3.2-main9eb5a777",
262511
+ "@settlemint/sdk-utils": "2.3.2-main9eb5a777",
262512
262512
  "@types/node": "22.15.21",
262513
262513
  "@types/semver": "7.7.0",
262514
262514
  "@types/which": "3.0.4",
@@ -262598,6 +262598,7 @@ var {
262598
262598
  } = import__.default;
262599
262599
 
262600
262600
  // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
262601
+ var isBackspaceKey = (key) => key.name === "backspace";
262601
262602
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
262602
262603
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
262603
262604
  class AbortPromptError extends Error {
@@ -268680,10 +268681,97 @@ function sanitizeName(value4, length = 35) {
268680
268681
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
268681
268682
  }
268682
268683
 
268683
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
268684
- var isBackspaceKey = (key2) => key2.name === "backspace";
268684
+ // ../../node_modules/@inquirer/input/dist/esm/index.js
268685
+ var inputTheme = {
268686
+ validationFailureMode: "keep"
268687
+ };
268688
+ var esm_default2 = createPrompt((config3, done) => {
268689
+ const { required: required2, validate: validate3 = () => true } = config3;
268690
+ const theme = makeTheme(inputTheme, config3.theme);
268691
+ const [status, setStatus] = useState("idle");
268692
+ const [defaultValue = "", setDefaultValue] = useState(config3.default);
268693
+ const [errorMsg, setError] = useState();
268694
+ const [value4, setValue] = useState("");
268695
+ const prefix = usePrefix({ status, theme });
268696
+ useKeypress(async (key2, rl) => {
268697
+ if (status !== "idle") {
268698
+ return;
268699
+ }
268700
+ if (isEnterKey(key2)) {
268701
+ const answer = value4 || defaultValue;
268702
+ setStatus("loading");
268703
+ const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
268704
+ if (isValid === true) {
268705
+ setValue(answer);
268706
+ setStatus("done");
268707
+ done(answer);
268708
+ } else {
268709
+ if (theme.validationFailureMode === "clear") {
268710
+ setValue("");
268711
+ } else {
268712
+ rl.write(value4);
268713
+ }
268714
+ setError(isValid || "You must provide a valid value");
268715
+ setStatus("idle");
268716
+ }
268717
+ } else if (isBackspaceKey(key2) && !value4) {
268718
+ setDefaultValue(undefined);
268719
+ } else if (key2.name === "tab" && !value4) {
268720
+ setDefaultValue(undefined);
268721
+ rl.clearLine(0);
268722
+ rl.write(defaultValue);
268723
+ setValue(defaultValue);
268724
+ } else {
268725
+ setValue(rl.line);
268726
+ setError(undefined);
268727
+ }
268728
+ });
268729
+ const message = theme.style.message(config3.message, status);
268730
+ let formattedValue = value4;
268731
+ if (typeof config3.transformer === "function") {
268732
+ formattedValue = config3.transformer(value4, { isFinal: status === "done" });
268733
+ } else if (status === "done") {
268734
+ formattedValue = theme.style.answer(value4);
268735
+ }
268736
+ let defaultStr;
268737
+ if (defaultValue && status !== "done" && !value4) {
268738
+ defaultStr = theme.style.defaultAnswer(defaultValue);
268739
+ }
268740
+ let error39 = "";
268741
+ if (errorMsg) {
268742
+ error39 = theme.style.error(errorMsg);
268743
+ }
268744
+ return [
268745
+ [prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
268746
+ error39
268747
+ ];
268748
+ });
268749
+
268750
+ // src/prompts/smart-contract-set/subgraph-name.prompt.ts
268751
+ async function subgraphNamePrompt({
268752
+ defaultName,
268753
+ env: env2,
268754
+ accept
268755
+ }) {
268756
+ const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
268757
+ if (accept) {
268758
+ return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
268759
+ }
268760
+ const subgraphName = await esm_default2({
268761
+ message: "What is the name of your subgraph?",
268762
+ default: defaultSubgraphName,
268763
+ required: true
268764
+ });
268765
+ return sanitizeName(subgraphName);
268766
+ }
268767
+
268768
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
268769
+ var isUpKey = (key2) => key2.name === "up" || key2.name === "k" || key2.ctrl && key2.name === "p";
268770
+ var isDownKey = (key2) => key2.name === "down" || key2.name === "j" || key2.ctrl && key2.name === "n";
268771
+ var isBackspaceKey2 = (key2) => key2.name === "backspace";
268772
+ var isNumberKey = (key2) => "1234567890".includes(key2.name);
268685
268773
  var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
268686
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
268774
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
268687
268775
  class AbortPromptError2 extends Error {
268688
268776
  name = "AbortPromptError";
268689
268777
  message = "Prompt was aborted";
@@ -268709,10 +268797,10 @@ class HookError2 extends Error {
268709
268797
  class ValidationError2 extends Error {
268710
268798
  name = "ValidationError";
268711
268799
  }
268712
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
268800
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
268713
268801
  import { AsyncResource as AsyncResource6 } from "node:async_hooks";
268714
268802
 
268715
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
268803
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
268716
268804
  import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource5 } from "node:async_hooks";
268717
268805
  var hookStorage2 = new AsyncLocalStorage2;
268718
268806
  function createStore2(rl) {
@@ -268817,7 +268905,7 @@ var effectScheduler2 = {
268817
268905
  }
268818
268906
  };
268819
268907
 
268820
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
268908
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
268821
268909
  function useState2(defaultValue) {
268822
268910
  return withPointer2((pointer) => {
268823
268911
  const setFn = (newValue) => {
@@ -268835,7 +268923,7 @@ function useState2(defaultValue) {
268835
268923
  });
268836
268924
  }
268837
268925
 
268838
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
268926
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
268839
268927
  function useEffect2(cb, depArray) {
268840
268928
  withPointer2((pointer) => {
268841
268929
  const oldDeps = pointer.get();
@@ -268847,7 +268935,7 @@ function useEffect2(cb, depArray) {
268847
268935
  });
268848
268936
  }
268849
268937
 
268850
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
268938
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
268851
268939
  var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
268852
268940
 
268853
268941
  // ../../node_modules/@inquirer/figures/dist/esm/index.js
@@ -269133,14 +269221,14 @@ var fallbackSymbols2 = {
269133
269221
  };
269134
269222
  var shouldUseMain2 = isUnicodeSupported3();
269135
269223
  var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
269136
- var esm_default2 = figures2;
269224
+ var esm_default3 = figures2;
269137
269225
  var replacements2 = Object.entries(specialMainSymbols2);
269138
269226
 
269139
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
269227
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
269140
269228
  var defaultTheme2 = {
269141
269229
  prefix: {
269142
269230
  idle: import_yoctocolors_cjs2.default.blue("?"),
269143
- done: import_yoctocolors_cjs2.default.green(esm_default2.tick)
269231
+ done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
269144
269232
  },
269145
269233
  spinner: {
269146
269234
  interval: 80,
@@ -269157,7 +269245,7 @@ var defaultTheme2 = {
269157
269245
  }
269158
269246
  };
269159
269247
 
269160
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
269248
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
269161
269249
  function isPlainObject4(value4) {
269162
269250
  if (typeof value4 !== "object" || value4 === null)
269163
269251
  return false;
@@ -269185,7 +269273,7 @@ function makeTheme2(...themes) {
269185
269273
  return deepMerge3(...themesToMerge);
269186
269274
  }
269187
269275
 
269188
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
269276
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
269189
269277
  function usePrefix2({ status = "idle", theme }) {
269190
269278
  const [showLoader, setShowLoader] = useState2(false);
269191
269279
  const [tick, setTick] = useState2(0);
@@ -269215,553 +269303,9 @@ function usePrefix2({ status = "idle", theme }) {
269215
269303
  const iconName = status === "loading" ? "idle" : status;
269216
269304
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
269217
269305
  }
269218
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
269219
- function useRef2(val) {
269220
- return useState2({ current: val })[0];
269221
- }
269222
-
269223
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
269224
- function useKeypress2(userHandler) {
269225
- const signal = useRef2(userHandler);
269226
- signal.current = userHandler;
269227
- useEffect2((rl) => {
269228
- let ignore = false;
269229
- const handler = withUpdates2((_input, event) => {
269230
- if (ignore)
269231
- return;
269232
- signal.current(event, rl);
269233
- });
269234
- rl.input.on("keypress", handler);
269235
- return () => {
269236
- ignore = true;
269237
- rl.input.removeListener("keypress", handler);
269238
- };
269239
- }, []);
269240
- }
269241
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
269242
- var import_cli_width2 = __toESM(require_cli_width(), 1);
269243
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
269244
- function breakLines2(content, width) {
269245
- return content.split(`
269246
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
269247
- `).map((str) => str.trimEnd())).join(`
269248
- `);
269249
- }
269250
- function readlineWidth2() {
269251
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
269252
- }
269253
-
269254
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
269255
- var import_mute_stream2 = __toESM(require_lib(), 1);
269256
- import * as readline4 from "node:readline";
269257
- import { AsyncResource as AsyncResource7 } from "node:async_hooks";
269258
-
269259
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
269260
- var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
269261
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
269262
- var height2 = (content) => content.split(`
269263
- `).length;
269264
- var lastLine2 = (content) => content.split(`
269265
- `).pop() ?? "";
269266
- function cursorDown2(n6) {
269267
- return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
269268
- }
269269
-
269270
- class ScreenManager2 {
269271
- height = 0;
269272
- extraLinesUnderPrompt = 0;
269273
- cursorPos;
269274
- rl;
269275
- constructor(rl) {
269276
- this.rl = rl;
269277
- this.cursorPos = rl.getCursorPos();
269278
- }
269279
- write(content) {
269280
- this.rl.output.unmute();
269281
- this.rl.output.write(content);
269282
- this.rl.output.mute();
269283
- }
269284
- render(content, bottomContent = "") {
269285
- const promptLine = lastLine2(content);
269286
- const rawPromptLine = stripVTControlCharacters3(promptLine);
269287
- let prompt = rawPromptLine;
269288
- if (this.rl.line.length > 0) {
269289
- prompt = prompt.slice(0, -this.rl.line.length);
269290
- }
269291
- this.rl.setPrompt(prompt);
269292
- this.cursorPos = this.rl.getCursorPos();
269293
- const width = readlineWidth2();
269294
- content = breakLines2(content, width);
269295
- bottomContent = breakLines2(bottomContent, width);
269296
- if (rawPromptLine.length % width === 0) {
269297
- content += `
269298
- `;
269299
- }
269300
- let output = content + (bottomContent ? `
269301
- ` + bottomContent : "");
269302
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
269303
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
269304
- if (bottomContentHeight > 0)
269305
- output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
269306
- output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
269307
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
269308
- this.extraLinesUnderPrompt = bottomContentHeight;
269309
- this.height = height2(output);
269310
- }
269311
- checkCursorPos() {
269312
- const cursorPos = this.rl.getCursorPos();
269313
- if (cursorPos.cols !== this.cursorPos.cols) {
269314
- this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
269315
- this.cursorPos = cursorPos;
269316
- }
269317
- }
269318
- done({ clearContent }) {
269319
- this.rl.setPrompt("");
269320
- let output = cursorDown2(this.extraLinesUnderPrompt);
269321
- output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
269322
- `;
269323
- output += import_ansi_escapes2.default.cursorShow;
269324
- this.write(output);
269325
- this.rl.close();
269326
- }
269327
- }
269328
-
269329
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
269330
- class PromisePolyfill2 extends Promise {
269331
- static withResolver() {
269332
- let resolve5;
269333
- let reject;
269334
- const promise2 = new Promise((res, rej) => {
269335
- resolve5 = res;
269336
- reject = rej;
269337
- });
269338
- return { promise: promise2, resolve: resolve5, reject };
269339
- }
269340
- }
269341
-
269342
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
269343
- function getCallSites2() {
269344
- const _prepareStackTrace = Error.prepareStackTrace;
269345
- let result = [];
269346
- try {
269347
- Error.prepareStackTrace = (_5, callSites) => {
269348
- const callSitesWithoutCurrent = callSites.slice(1);
269349
- result = callSitesWithoutCurrent;
269350
- return callSitesWithoutCurrent;
269351
- };
269352
- new Error().stack;
269353
- } catch {
269354
- return result;
269355
- }
269356
- Error.prepareStackTrace = _prepareStackTrace;
269357
- return result;
269358
- }
269359
- function createPrompt2(view) {
269360
- const callSites = getCallSites2();
269361
- const prompt = (config3, context = {}) => {
269362
- const { input = process.stdin, signal } = context;
269363
- const cleanups = new Set;
269364
- const output = new import_mute_stream2.default;
269365
- output.pipe(context.output ?? process.stdout);
269366
- const rl = readline4.createInterface({
269367
- terminal: true,
269368
- input,
269369
- output
269370
- });
269371
- const screen = new ScreenManager2(rl);
269372
- const { promise: promise2, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
269373
- const cancel3 = () => reject(new CancelPromptError2);
269374
- if (signal) {
269375
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
269376
- if (signal.aborted) {
269377
- abort();
269378
- return Object.assign(promise2, { cancel: cancel3 });
269379
- }
269380
- signal.addEventListener("abort", abort);
269381
- cleanups.add(() => signal.removeEventListener("abort", abort));
269382
- }
269383
- cleanups.add(onExit((code2, signal2) => {
269384
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
269385
- }));
269386
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
269387
- rl.on("SIGINT", sigint);
269388
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
269389
- const checkCursorPos = () => screen.checkCursorPos();
269390
- rl.input.on("keypress", checkCursorPos);
269391
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
269392
- return withHooks2(rl, (cycle) => {
269393
- const hooksCleanup = AsyncResource7.bind(() => effectScheduler2.clearAll());
269394
- rl.on("close", hooksCleanup);
269395
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
269396
- cycle(() => {
269397
- try {
269398
- const nextView = view(config3, (value4) => {
269399
- setImmediate(() => resolve5(value4));
269400
- });
269401
- if (nextView === undefined) {
269402
- const callerFilename = callSites[1]?.getFileName();
269403
- throw new Error(`Prompt functions must return a string.
269404
- at ${callerFilename}`);
269405
- }
269406
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
269407
- screen.render(content, bottomContent);
269408
- effectScheduler2.run();
269409
- } catch (error39) {
269410
- reject(error39);
269411
- }
269412
- });
269413
- return Object.assign(promise2.then((answer) => {
269414
- effectScheduler2.clearAll();
269415
- return answer;
269416
- }, (error39) => {
269417
- effectScheduler2.clearAll();
269418
- throw error39;
269419
- }).finally(() => {
269420
- cleanups.forEach((cleanup) => cleanup());
269421
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
269422
- output.end();
269423
- }).then(() => promise2), { cancel: cancel3 });
269424
- });
269425
- };
269426
- return prompt;
269427
- }
269428
- // ../../node_modules/@inquirer/input/dist/esm/index.js
269429
- var inputTheme = {
269430
- validationFailureMode: "keep"
269431
- };
269432
- var esm_default3 = createPrompt2((config3, done) => {
269433
- const { required: required2, validate: validate3 = () => true } = config3;
269434
- const theme = makeTheme2(inputTheme, config3.theme);
269435
- const [status, setStatus] = useState2("idle");
269436
- const [defaultValue = "", setDefaultValue] = useState2(config3.default);
269437
- const [errorMsg, setError] = useState2();
269438
- const [value4, setValue] = useState2("");
269439
- const prefix = usePrefix2({ status, theme });
269440
- useKeypress2(async (key3, rl) => {
269441
- if (status !== "idle") {
269442
- return;
269443
- }
269444
- if (isEnterKey2(key3)) {
269445
- const answer = value4 || defaultValue;
269446
- setStatus("loading");
269447
- const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
269448
- if (isValid === true) {
269449
- setValue(answer);
269450
- setStatus("done");
269451
- done(answer);
269452
- } else {
269453
- if (theme.validationFailureMode === "clear") {
269454
- setValue("");
269455
- } else {
269456
- rl.write(value4);
269457
- }
269458
- setError(isValid || "You must provide a valid value");
269459
- setStatus("idle");
269460
- }
269461
- } else if (isBackspaceKey(key3) && !value4) {
269462
- setDefaultValue(undefined);
269463
- } else if (key3.name === "tab" && !value4) {
269464
- setDefaultValue(undefined);
269465
- rl.clearLine(0);
269466
- rl.write(defaultValue);
269467
- setValue(defaultValue);
269468
- } else {
269469
- setValue(rl.line);
269470
- setError(undefined);
269471
- }
269472
- });
269473
- const message = theme.style.message(config3.message, status);
269474
- let formattedValue = value4;
269475
- if (typeof config3.transformer === "function") {
269476
- formattedValue = config3.transformer(value4, { isFinal: status === "done" });
269477
- } else if (status === "done") {
269478
- formattedValue = theme.style.answer(value4);
269479
- }
269480
- let defaultStr;
269481
- if (defaultValue && status !== "done" && !value4) {
269482
- defaultStr = theme.style.defaultAnswer(defaultValue);
269483
- }
269484
- let error39 = "";
269485
- if (errorMsg) {
269486
- error39 = theme.style.error(errorMsg);
269487
- }
269488
- return [
269489
- [prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
269490
- error39
269491
- ];
269492
- });
269493
-
269494
- // src/prompts/smart-contract-set/subgraph-name.prompt.ts
269495
- async function subgraphNamePrompt({
269496
- defaultName,
269497
- env: env2,
269498
- accept
269499
- }) {
269500
- const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
269501
- if (accept) {
269502
- return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
269503
- }
269504
- const subgraphName = await esm_default3({
269505
- message: "What is the name of your subgraph?",
269506
- default: defaultSubgraphName,
269507
- required: true
269508
- });
269509
- return sanitizeName(subgraphName);
269510
- }
269511
-
269512
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
269513
- var isUpKey = (key3) => key3.name === "up" || key3.name === "k" || key3.ctrl && key3.name === "p";
269514
- var isDownKey = (key3) => key3.name === "down" || key3.name === "j" || key3.ctrl && key3.name === "n";
269515
- var isBackspaceKey2 = (key3) => key3.name === "backspace";
269516
- var isNumberKey = (key3) => "1234567890".includes(key3.name);
269517
- var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
269518
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
269519
- class AbortPromptError3 extends Error {
269520
- name = "AbortPromptError";
269521
- message = "Prompt was aborted";
269522
- constructor(options) {
269523
- super();
269524
- this.cause = options?.cause;
269525
- }
269526
- }
269527
-
269528
- class CancelPromptError3 extends Error {
269529
- name = "CancelPromptError";
269530
- message = "Prompt was canceled";
269531
- }
269532
-
269533
- class ExitPromptError3 extends Error {
269534
- name = "ExitPromptError";
269535
- }
269536
-
269537
- class HookError3 extends Error {
269538
- name = "HookError";
269539
- }
269540
-
269541
- class ValidationError3 extends Error {
269542
- name = "ValidationError";
269543
- }
269544
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
269545
- import { AsyncResource as AsyncResource9 } from "node:async_hooks";
269546
-
269547
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
269548
- import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource8 } from "node:async_hooks";
269549
- var hookStorage3 = new AsyncLocalStorage3;
269550
- function createStore3(rl) {
269551
- const store = {
269552
- rl,
269553
- hooks: [],
269554
- hooksCleanup: [],
269555
- hooksEffect: [],
269556
- index: 0,
269557
- handleChange() {}
269558
- };
269559
- return store;
269560
- }
269561
- function withHooks3(rl, cb) {
269562
- const store = createStore3(rl);
269563
- return hookStorage3.run(store, () => {
269564
- function cycle(render) {
269565
- store.handleChange = () => {
269566
- store.index = 0;
269567
- render();
269568
- };
269569
- store.handleChange();
269570
- }
269571
- return cb(cycle);
269572
- });
269573
- }
269574
- function getStore3() {
269575
- const store = hookStorage3.getStore();
269576
- if (!store) {
269577
- throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
269578
- }
269579
- return store;
269580
- }
269581
- function readline5() {
269582
- return getStore3().rl;
269583
- }
269584
- function withUpdates3(fn) {
269585
- const wrapped = (...args) => {
269586
- const store = getStore3();
269587
- let shouldUpdate = false;
269588
- const oldHandleChange = store.handleChange;
269589
- store.handleChange = () => {
269590
- shouldUpdate = true;
269591
- };
269592
- const returnValue = fn(...args);
269593
- if (shouldUpdate) {
269594
- oldHandleChange();
269595
- }
269596
- store.handleChange = oldHandleChange;
269597
- return returnValue;
269598
- };
269599
- return AsyncResource8.bind(wrapped);
269600
- }
269601
- function withPointer3(cb) {
269602
- const store = getStore3();
269603
- const { index } = store;
269604
- const pointer = {
269605
- get() {
269606
- return store.hooks[index];
269607
- },
269608
- set(value4) {
269609
- store.hooks[index] = value4;
269610
- },
269611
- initialized: index in store.hooks
269612
- };
269613
- const returnValue = cb(pointer);
269614
- store.index++;
269615
- return returnValue;
269616
- }
269617
- function handleChange3() {
269618
- getStore3().handleChange();
269619
- }
269620
- var effectScheduler3 = {
269621
- queue(cb) {
269622
- const store = getStore3();
269623
- const { index } = store;
269624
- store.hooksEffect.push(() => {
269625
- store.hooksCleanup[index]?.();
269626
- const cleanFn = cb(readline5());
269627
- if (cleanFn != null && typeof cleanFn !== "function") {
269628
- throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
269629
- }
269630
- store.hooksCleanup[index] = cleanFn;
269631
- });
269632
- },
269633
- run() {
269634
- const store = getStore3();
269635
- withUpdates3(() => {
269636
- store.hooksEffect.forEach((effect) => {
269637
- effect();
269638
- });
269639
- store.hooksEffect.length = 0;
269640
- })();
269641
- },
269642
- clearAll() {
269643
- const store = getStore3();
269644
- store.hooksCleanup.forEach((cleanFn) => {
269645
- cleanFn?.();
269646
- });
269647
- store.hooksEffect.length = 0;
269648
- store.hooksCleanup.length = 0;
269649
- }
269650
- };
269651
-
269652
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
269653
- function useState3(defaultValue) {
269654
- return withPointer3((pointer) => {
269655
- const setFn = (newValue) => {
269656
- if (pointer.get() !== newValue) {
269657
- pointer.set(newValue);
269658
- handleChange3();
269659
- }
269660
- };
269661
- if (pointer.initialized) {
269662
- return [pointer.get(), setFn];
269663
- }
269664
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
269665
- pointer.set(value4);
269666
- return [value4, setFn];
269667
- });
269668
- }
269669
-
269670
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
269671
- function useEffect3(cb, depArray) {
269672
- withPointer3((pointer) => {
269673
- const oldDeps = pointer.get();
269674
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
269675
- if (hasChanged) {
269676
- effectScheduler3.queue(cb);
269677
- }
269678
- pointer.set(depArray);
269679
- });
269680
- }
269681
-
269682
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
269683
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
269684
- var defaultTheme3 = {
269685
- prefix: {
269686
- idle: import_yoctocolors_cjs3.default.blue("?"),
269687
- done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
269688
- },
269689
- spinner: {
269690
- interval: 80,
269691
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
269692
- },
269693
- style: {
269694
- answer: import_yoctocolors_cjs3.default.cyan,
269695
- message: import_yoctocolors_cjs3.default.bold,
269696
- error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
269697
- defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
269698
- help: import_yoctocolors_cjs3.default.dim,
269699
- highlight: import_yoctocolors_cjs3.default.cyan,
269700
- key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
269701
- }
269702
- };
269703
-
269704
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
269705
- function isPlainObject5(value4) {
269706
- if (typeof value4 !== "object" || value4 === null)
269707
- return false;
269708
- let proto = value4;
269709
- while (Object.getPrototypeOf(proto) !== null) {
269710
- proto = Object.getPrototypeOf(proto);
269711
- }
269712
- return Object.getPrototypeOf(value4) === proto;
269713
- }
269714
- function deepMerge4(...objects) {
269715
- const output = {};
269716
- for (const obj of objects) {
269717
- for (const [key3, value4] of Object.entries(obj)) {
269718
- const prevValue = output[key3];
269719
- output[key3] = isPlainObject5(prevValue) && isPlainObject5(value4) ? deepMerge4(prevValue, value4) : value4;
269720
- }
269721
- }
269722
- return output;
269723
- }
269724
- function makeTheme3(...themes) {
269725
- const themesToMerge = [
269726
- defaultTheme3,
269727
- ...themes.filter((theme) => theme != null)
269728
- ];
269729
- return deepMerge4(...themesToMerge);
269730
- }
269731
-
269732
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
269733
- function usePrefix3({ status = "idle", theme }) {
269734
- const [showLoader, setShowLoader] = useState3(false);
269735
- const [tick, setTick] = useState3(0);
269736
- const { prefix, spinner: spinner2 } = makeTheme3(theme);
269737
- useEffect3(() => {
269738
- if (status === "loading") {
269739
- let tickInterval;
269740
- let inc = -1;
269741
- const delayTimeout = setTimeout(AsyncResource9.bind(() => {
269742
- setShowLoader(true);
269743
- tickInterval = setInterval(AsyncResource9.bind(() => {
269744
- inc = inc + 1;
269745
- setTick(inc % spinner2.frames.length);
269746
- }), spinner2.interval);
269747
- }), 300);
269748
- return () => {
269749
- clearTimeout(delayTimeout);
269750
- clearInterval(tickInterval);
269751
- };
269752
- } else {
269753
- setShowLoader(false);
269754
- }
269755
- }, [status]);
269756
- if (showLoader) {
269757
- return spinner2.frames[tick];
269758
- }
269759
- const iconName = status === "loading" ? "idle" : status;
269760
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
269761
- }
269762
269306
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
269763
269307
  function useMemo(fn, dependencies) {
269764
- return withPointer3((pointer) => {
269308
+ return withPointer2((pointer) => {
269765
269309
  const prev = pointer.get();
269766
269310
  if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
269767
269311
  const value4 = fn();
@@ -269772,16 +269316,16 @@ function useMemo(fn, dependencies) {
269772
269316
  });
269773
269317
  }
269774
269318
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
269775
- function useRef3(val) {
269776
- return useState3({ current: val })[0];
269319
+ function useRef2(val) {
269320
+ return useState2({ current: val })[0];
269777
269321
  }
269778
269322
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
269779
- function useKeypress3(userHandler) {
269780
- const signal = useRef3(userHandler);
269323
+ function useKeypress2(userHandler) {
269324
+ const signal = useRef2(userHandler);
269781
269325
  signal.current = userHandler;
269782
- useEffect3((rl) => {
269326
+ useEffect2((rl) => {
269783
269327
  let ignore = false;
269784
- const handler = withUpdates3((_input, event) => {
269328
+ const handler = withUpdates2((_input, event) => {
269785
269329
  if (ignore)
269786
269330
  return;
269787
269331
  signal.current(event, rl);
@@ -269794,21 +269338,21 @@ function useKeypress3(userHandler) {
269794
269338
  }, []);
269795
269339
  }
269796
269340
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
269797
- var import_cli_width3 = __toESM(require_cli_width(), 1);
269798
- var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
269799
- function breakLines3(content, width) {
269341
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
269342
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
269343
+ function breakLines2(content, width) {
269800
269344
  return content.split(`
269801
- `).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
269345
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
269802
269346
  `).map((str) => str.trimEnd())).join(`
269803
269347
  `);
269804
269348
  }
269805
- function readlineWidth3() {
269806
- return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
269349
+ function readlineWidth2() {
269350
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
269807
269351
  }
269808
269352
 
269809
269353
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
269810
269354
  function split2(content, width) {
269811
- return breakLines3(content, width).split(`
269355
+ return breakLines2(content, width).split(`
269812
269356
  `);
269813
269357
  }
269814
269358
  function rotate(count, items) {
@@ -269871,7 +269415,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {
269871
269415
 
269872
269416
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
269873
269417
  function usePagination({ items, active, renderItem, pageSize, loop = true }) {
269874
- const state = useRef3({ position: 0, lastActive: 0 });
269418
+ const state = useRef2({ position: 0, lastActive: 0 });
269875
269419
  const position = loop ? infinite({
269876
269420
  active,
269877
269421
  lastActive: state.current.lastActive,
@@ -269887,7 +269431,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
269887
269431
  state.current.lastActive = active;
269888
269432
  return lines({
269889
269433
  items,
269890
- width: readlineWidth3(),
269434
+ width: readlineWidth2(),
269891
269435
  renderItem,
269892
269436
  active,
269893
269437
  position,
@@ -269896,22 +269440,22 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
269896
269440
  `);
269897
269441
  }
269898
269442
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
269899
- var import_mute_stream3 = __toESM(require_lib(), 1);
269900
- import * as readline6 from "node:readline";
269901
- import { AsyncResource as AsyncResource10 } from "node:async_hooks";
269443
+ var import_mute_stream2 = __toESM(require_lib(), 1);
269444
+ import * as readline4 from "node:readline";
269445
+ import { AsyncResource as AsyncResource7 } from "node:async_hooks";
269902
269446
 
269903
269447
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
269904
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
269905
- import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
269906
- var height3 = (content) => content.split(`
269448
+ var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
269449
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
269450
+ var height2 = (content) => content.split(`
269907
269451
  `).length;
269908
- var lastLine3 = (content) => content.split(`
269452
+ var lastLine2 = (content) => content.split(`
269909
269453
  `).pop() ?? "";
269910
- function cursorDown3(n6) {
269911
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
269454
+ function cursorDown2(n6) {
269455
+ return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
269912
269456
  }
269913
269457
 
269914
- class ScreenManager3 {
269458
+ class ScreenManager2 {
269915
269459
  height = 0;
269916
269460
  extraLinesUnderPrompt = 0;
269917
269461
  cursorPos;
@@ -269926,17 +269470,17 @@ class ScreenManager3 {
269926
269470
  this.rl.output.mute();
269927
269471
  }
269928
269472
  render(content, bottomContent = "") {
269929
- const promptLine = lastLine3(content);
269930
- const rawPromptLine = stripVTControlCharacters4(promptLine);
269473
+ const promptLine = lastLine2(content);
269474
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
269931
269475
  let prompt = rawPromptLine;
269932
269476
  if (this.rl.line.length > 0) {
269933
269477
  prompt = prompt.slice(0, -this.rl.line.length);
269934
269478
  }
269935
269479
  this.rl.setPrompt(prompt);
269936
269480
  this.cursorPos = this.rl.getCursorPos();
269937
- const width = readlineWidth3();
269938
- content = breakLines3(content, width);
269939
- bottomContent = breakLines3(bottomContent, width);
269481
+ const width = readlineWidth2();
269482
+ content = breakLines2(content, width);
269483
+ bottomContent = breakLines2(bottomContent, width);
269940
269484
  if (rawPromptLine.length % width === 0) {
269941
269485
  content += `
269942
269486
  `;
@@ -269944,34 +269488,34 @@ class ScreenManager3 {
269944
269488
  let output = content + (bottomContent ? `
269945
269489
  ` + bottomContent : "");
269946
269490
  const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
269947
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
269491
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
269948
269492
  if (bottomContentHeight > 0)
269949
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
269950
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
269951
- this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
269493
+ output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
269494
+ output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
269495
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
269952
269496
  this.extraLinesUnderPrompt = bottomContentHeight;
269953
- this.height = height3(output);
269497
+ this.height = height2(output);
269954
269498
  }
269955
269499
  checkCursorPos() {
269956
269500
  const cursorPos = this.rl.getCursorPos();
269957
269501
  if (cursorPos.cols !== this.cursorPos.cols) {
269958
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
269502
+ this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
269959
269503
  this.cursorPos = cursorPos;
269960
269504
  }
269961
269505
  }
269962
269506
  done({ clearContent }) {
269963
269507
  this.rl.setPrompt("");
269964
- let output = cursorDown3(this.extraLinesUnderPrompt);
269965
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
269508
+ let output = cursorDown2(this.extraLinesUnderPrompt);
269509
+ output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
269966
269510
  `;
269967
- output += import_ansi_escapes3.default.cursorShow;
269511
+ output += import_ansi_escapes2.default.cursorShow;
269968
269512
  this.write(output);
269969
269513
  this.rl.close();
269970
269514
  }
269971
269515
  }
269972
269516
 
269973
269517
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
269974
- class PromisePolyfill3 extends Promise {
269518
+ class PromisePolyfill2 extends Promise {
269975
269519
  static withResolver() {
269976
269520
  let resolve5;
269977
269521
  let reject;
@@ -269984,7 +269528,7 @@ class PromisePolyfill3 extends Promise {
269984
269528
  }
269985
269529
 
269986
269530
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
269987
- function getCallSites3() {
269531
+ function getCallSites2() {
269988
269532
  const _prepareStackTrace = Error.prepareStackTrace;
269989
269533
  let result = [];
269990
269534
  try {
@@ -270000,23 +269544,23 @@ function getCallSites3() {
270000
269544
  Error.prepareStackTrace = _prepareStackTrace;
270001
269545
  return result;
270002
269546
  }
270003
- function createPrompt3(view) {
270004
- const callSites = getCallSites3();
269547
+ function createPrompt2(view) {
269548
+ const callSites = getCallSites2();
270005
269549
  const prompt = (config3, context = {}) => {
270006
269550
  const { input = process.stdin, signal } = context;
270007
269551
  const cleanups = new Set;
270008
- const output = new import_mute_stream3.default;
269552
+ const output = new import_mute_stream2.default;
270009
269553
  output.pipe(context.output ?? process.stdout);
270010
- const rl = readline6.createInterface({
269554
+ const rl = readline4.createInterface({
270011
269555
  terminal: true,
270012
269556
  input,
270013
269557
  output
270014
269558
  });
270015
- const screen = new ScreenManager3(rl);
270016
- const { promise: promise2, resolve: resolve5, reject } = PromisePolyfill3.withResolver();
270017
- const cancel3 = () => reject(new CancelPromptError3);
269559
+ const screen = new ScreenManager2(rl);
269560
+ const { promise: promise2, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
269561
+ const cancel3 = () => reject(new CancelPromptError2);
270018
269562
  if (signal) {
270019
- const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
269563
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
270020
269564
  if (signal.aborted) {
270021
269565
  abort();
270022
269566
  return Object.assign(promise2, { cancel: cancel3 });
@@ -270025,16 +269569,16 @@ function createPrompt3(view) {
270025
269569
  cleanups.add(() => signal.removeEventListener("abort", abort));
270026
269570
  }
270027
269571
  cleanups.add(onExit((code2, signal2) => {
270028
- reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
269572
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
270029
269573
  }));
270030
- const sigint = () => reject(new ExitPromptError3(`User force closed the prompt with SIGINT`));
269574
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
270031
269575
  rl.on("SIGINT", sigint);
270032
269576
  cleanups.add(() => rl.removeListener("SIGINT", sigint));
270033
269577
  const checkCursorPos = () => screen.checkCursorPos();
270034
269578
  rl.input.on("keypress", checkCursorPos);
270035
269579
  cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
270036
- return withHooks3(rl, (cycle) => {
270037
- const hooksCleanup = AsyncResource10.bind(() => effectScheduler3.clearAll());
269580
+ return withHooks2(rl, (cycle) => {
269581
+ const hooksCleanup = AsyncResource7.bind(() => effectScheduler2.clearAll());
270038
269582
  rl.on("close", hooksCleanup);
270039
269583
  cleanups.add(() => rl.removeListener("close", hooksCleanup));
270040
269584
  cycle(() => {
@@ -270049,16 +269593,16 @@ function createPrompt3(view) {
270049
269593
  }
270050
269594
  const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
270051
269595
  screen.render(content, bottomContent);
270052
- effectScheduler3.run();
269596
+ effectScheduler2.run();
270053
269597
  } catch (error39) {
270054
269598
  reject(error39);
270055
269599
  }
270056
269600
  });
270057
269601
  return Object.assign(promise2.then((answer) => {
270058
- effectScheduler3.clearAll();
269602
+ effectScheduler2.clearAll();
270059
269603
  return answer;
270060
269604
  }, (error39) => {
270061
- effectScheduler3.clearAll();
269605
+ effectScheduler2.clearAll();
270062
269606
  throw error39;
270063
269607
  }).finally(() => {
270064
269608
  cleanups.forEach((cleanup) => cleanup());
@@ -270070,9 +269614,9 @@ function createPrompt3(view) {
270070
269614
  return prompt;
270071
269615
  }
270072
269616
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
270073
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
269617
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
270074
269618
  class Separator {
270075
- separator = import_yoctocolors_cjs4.default.dim(Array.from({ length: 15 }).join(esm_default2.line));
269619
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default3.line));
270076
269620
  type = "separator";
270077
269621
  constructor(separator) {
270078
269622
  if (separator) {
@@ -270084,13 +269628,13 @@ class Separator {
270084
269628
  }
270085
269629
  }
270086
269630
  // ../../node_modules/@inquirer/select/dist/esm/index.js
270087
- var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
270088
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
269631
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
269632
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
270089
269633
  var selectTheme = {
270090
- icon: { cursor: esm_default2.pointer },
269634
+ icon: { cursor: esm_default3.pointer },
270091
269635
  style: {
270092
- disabled: (text2) => import_yoctocolors_cjs5.default.dim(`- ${text2}`),
270093
- description: (text2) => import_yoctocolors_cjs5.default.cyan(text2)
269636
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
269637
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
270094
269638
  },
270095
269639
  helpMode: "auto",
270096
269640
  indexMode: "hidden"
@@ -270123,19 +269667,19 @@ function normalizeChoices(choices) {
270123
269667
  return normalizedChoice;
270124
269668
  });
270125
269669
  }
270126
- var esm_default4 = createPrompt3((config3, done) => {
269670
+ var esm_default4 = createPrompt2((config3, done) => {
270127
269671
  const { loop = true, pageSize = 7 } = config3;
270128
- const firstRender = useRef3(true);
270129
- const theme = makeTheme3(selectTheme, config3.theme);
270130
- const [status, setStatus] = useState3("idle");
270131
- const prefix = usePrefix3({ status, theme });
270132
- const searchTimeoutRef = useRef3();
269672
+ const firstRender = useRef2(true);
269673
+ const theme = makeTheme2(selectTheme, config3.theme);
269674
+ const [status, setStatus] = useState2("idle");
269675
+ const prefix = usePrefix2({ status, theme });
269676
+ const searchTimeoutRef = useRef2();
270133
269677
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
270134
269678
  const bounds = useMemo(() => {
270135
269679
  const first = items.findIndex(isSelectable);
270136
269680
  const last = items.findLastIndex(isSelectable);
270137
269681
  if (first === -1) {
270138
- throw new ValidationError3("[select prompt] No selectable choices. All choices are disabled.");
269682
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
270139
269683
  }
270140
269684
  return { first, last };
270141
269685
  }, [items]);
@@ -270144,24 +269688,24 @@ var esm_default4 = createPrompt3((config3, done) => {
270144
269688
  return -1;
270145
269689
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
270146
269690
  }, [config3.default, items]);
270147
- const [active, setActive] = useState3(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
269691
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
270148
269692
  const selectedChoice = items[active];
270149
- useKeypress3((key4, rl) => {
269693
+ useKeypress2((key3, rl) => {
270150
269694
  clearTimeout(searchTimeoutRef.current);
270151
- if (isEnterKey3(key4)) {
269695
+ if (isEnterKey2(key3)) {
270152
269696
  setStatus("done");
270153
269697
  done(selectedChoice.value);
270154
- } else if (isUpKey(key4) || isDownKey(key4)) {
269698
+ } else if (isUpKey(key3) || isDownKey(key3)) {
270155
269699
  rl.clearLine(0);
270156
- if (loop || isUpKey(key4) && active !== bounds.first || isDownKey(key4) && active !== bounds.last) {
270157
- const offset = isUpKey(key4) ? -1 : 1;
269700
+ if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
269701
+ const offset = isUpKey(key3) ? -1 : 1;
270158
269702
  let next = active;
270159
269703
  do {
270160
269704
  next = (next + offset + items.length) % items.length;
270161
269705
  } while (!isSelectable(items[next]));
270162
269706
  setActive(next);
270163
269707
  }
270164
- } else if (isNumberKey(key4) && !Number.isNaN(Number(rl.line))) {
269708
+ } else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
270165
269709
  const position = Number(rl.line) - 1;
270166
269710
  const item = items[position];
270167
269711
  if (item != null && isSelectable(item)) {
@@ -270170,7 +269714,7 @@ var esm_default4 = createPrompt3((config3, done) => {
270170
269714
  searchTimeoutRef.current = setTimeout(() => {
270171
269715
  rl.clearLine(0);
270172
269716
  }, 700);
270173
- } else if (isBackspaceKey2(key4)) {
269717
+ } else if (isBackspaceKey2(key3)) {
270174
269718
  rl.clearLine(0);
270175
269719
  } else {
270176
269720
  const searchTerm = rl.line.toLowerCase();
@@ -270187,7 +269731,7 @@ var esm_default4 = createPrompt3((config3, done) => {
270187
269731
  }, 700);
270188
269732
  }
270189
269733
  });
270190
- useEffect3(() => () => {
269734
+ useEffect2(() => () => {
270191
269735
  clearTimeout(searchTimeoutRef.current);
270192
269736
  }, []);
270193
269737
  const message = theme.style.message(config3.message, status);
@@ -270227,7 +269771,7 @@ ${theme.style.help(`(${config3.instructions?.pager ?? "Use arrow keys to reveal
270227
269771
  const choiceDescription = selectedChoice.description ? `
270228
269772
  ${theme.style.description(selectedChoice.description)}` : ``;
270229
269773
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
270230
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes4.default.cursorHide}`;
269774
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
270231
269775
  });
270232
269776
 
270233
269777
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -271807,14 +271351,14 @@ function includesArgs(parameters) {
271807
271351
  });
271808
271352
  }
271809
271353
  if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
271810
- return Object.entries(matchArgs).every(([key4, value4]) => {
271354
+ return Object.entries(matchArgs).every(([key3, value4]) => {
271811
271355
  if (value4 === null || value4 === undefined)
271812
271356
  return true;
271813
- const input = inputs.find((input2) => input2.name === key4);
271357
+ const input = inputs.find((input2) => input2.name === key3);
271814
271358
  if (!input)
271815
271359
  return false;
271816
271360
  const value_ = Array.isArray(value4) ? value4 : [value4];
271817
- return value_.some((value5) => isEqual(input, value5, args[key4]));
271361
+ return value_.some((value5) => isEqual(input, value5, args[key3]));
271818
271362
  });
271819
271363
  return false;
271820
271364
  }
@@ -272010,13 +271554,13 @@ function observe(observerId, callbacks, fn) {
272010
271554
  if (listeners && listeners.length > 0)
272011
271555
  return unwatch;
272012
271556
  const emit = {};
272013
- for (const key4 in callbacks) {
272014
- emit[key4] = (...args) => {
271557
+ for (const key3 in callbacks) {
271558
+ emit[key3] = (...args) => {
272015
271559
  const listeners2 = getListeners();
272016
271560
  if (listeners2.length === 0)
272017
271561
  return;
272018
271562
  for (const listener of listeners2)
272019
- listener.fns[key4]?.(...args);
271563
+ listener.fns[key3]?.(...args);
272020
271564
  };
272021
271565
  }
272022
271566
  const cleanup = fn(emit);
@@ -272355,7 +271899,7 @@ function uid(length = 11) {
272355
271899
 
272356
271900
  // ../../node_modules/viem/_esm/clients/createClient.js
272357
271901
  function createClient(parameters) {
272358
- const { batch, cacheTime = parameters.pollingInterval ?? 4000, ccipRead, key: key4 = "base", name: name3 = "Base Client", pollingInterval = 4000, type: type4 = "base" } = parameters;
271902
+ const { batch, cacheTime = parameters.pollingInterval ?? 4000, ccipRead, key: key3 = "base", name: name3 = "Base Client", pollingInterval = 4000, type: type4 = "base" } = parameters;
272359
271903
  const chain = parameters.chain;
272360
271904
  const account = parameters.account ? parseAccount(parameters.account) : undefined;
272361
271905
  const { config: config3, request: request2, value: value4 } = parameters.transport({
@@ -272369,7 +271913,7 @@ function createClient(parameters) {
272369
271913
  cacheTime,
272370
271914
  ccipRead,
272371
271915
  chain,
272372
- key: key4,
271916
+ key: key3,
272373
271917
  name: name3,
272374
271918
  pollingInterval,
272375
271919
  request: request2,
@@ -272380,8 +271924,8 @@ function createClient(parameters) {
272380
271924
  function extend2(base2) {
272381
271925
  return (extendFn) => {
272382
271926
  const extended = extendFn(base2);
272383
- for (const key5 in client)
272384
- delete extended[key5];
271927
+ for (const key4 in client)
271928
+ delete extended[key4];
272385
271929
  const combined = { ...base2, ...extended };
272386
271930
  return Object.assign(combined, { extend: extend2(combined) });
272387
271931
  };
@@ -272561,11 +272105,11 @@ function shouldRetry(error39) {
272561
272105
  }
272562
272106
 
272563
272107
  // ../../node_modules/viem/_esm/clients/transports/createTransport.js
272564
- function createTransport({ key: key4, methods, name: name3, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type4 }, value4) {
272108
+ function createTransport({ key: key3, methods, name: name3, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type4 }, value4) {
272565
272109
  const uid2 = uid();
272566
272110
  return {
272567
272111
  config: {
272568
- key: key4,
272112
+ key: key3,
272569
272113
  methods,
272570
272114
  name: name3,
272571
272115
  request: request2,
@@ -272722,7 +272266,7 @@ function getHttpRpcClient(url2, options = {}) {
272722
272266
 
272723
272267
  // ../../node_modules/viem/_esm/clients/transports/http.js
272724
272268
  function http(url2, config3 = {}) {
272725
- const { batch, fetchOptions, key: key4 = "http", methods, name: name3 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
272269
+ const { batch, fetchOptions, key: key3 = "http", methods, name: name3 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
272726
272270
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
272727
272271
  const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
272728
272272
  const retryCount = config3.retryCount ?? retryCount_;
@@ -272737,7 +272281,7 @@ function http(url2, config3 = {}) {
272737
272281
  timeout
272738
272282
  });
272739
272283
  return createTransport({
272740
- key: key4,
272284
+ key: key3,
272741
272285
  methods,
272742
272286
  name: name3,
272743
272287
  async request({ method, params }) {
@@ -273188,7 +272732,7 @@ init_getChainContractAddress();
273188
272732
  init_toHex();
273189
272733
  init_localBatchGatewayRequest();
273190
272734
  async function getEnsText(client, parameters) {
273191
- const { blockNumber, blockTag, key: key4, name: name3, gatewayUrls, strict } = parameters;
272735
+ const { blockNumber, blockTag, key: key3, name: name3, gatewayUrls, strict } = parameters;
273192
272736
  const { chain } = client;
273193
272737
  const universalResolverAddress = (() => {
273194
272738
  if (parameters.universalResolverAddress)
@@ -273214,7 +272758,7 @@ async function getEnsText(client, parameters) {
273214
272758
  encodeFunctionData({
273215
272759
  abi: textResolverAbi,
273216
272760
  functionName: "text",
273217
- args: [namehash(name3), key4]
272761
+ args: [namehash(name3), key3]
273218
272762
  }),
273219
272763
  gatewayUrls ?? [localBatchGatewayUrl]
273220
272764
  ],
@@ -274236,16 +273780,16 @@ class LruMap2 extends Map {
274236
273780
  });
274237
273781
  this.maxSize = size5;
274238
273782
  }
274239
- get(key4) {
274240
- const value4 = super.get(key4);
274241
- if (super.has(key4) && value4 !== undefined) {
274242
- this.delete(key4);
274243
- super.set(key4, value4);
273783
+ get(key3) {
273784
+ const value4 = super.get(key3);
273785
+ if (super.has(key3) && value4 !== undefined) {
273786
+ this.delete(key3);
273787
+ super.set(key3, value4);
274244
273788
  }
274245
273789
  return value4;
274246
273790
  }
274247
- set(key4, value4) {
274248
- super.set(key4, value4);
273791
+ set(key3, value4) {
273792
+ super.set(key3, value4);
274249
273793
  if (this.maxSize && this.size > this.maxSize) {
274250
273794
  const firstKey = this.keys().next().value;
274251
273795
  if (firstKey)
@@ -276091,10 +275635,10 @@ function publicActions(client) {
276091
275635
 
276092
275636
  // ../../node_modules/viem/_esm/clients/createPublicClient.js
276093
275637
  function createPublicClient(parameters) {
276094
- const { key: key4 = "public", name: name3 = "Public Client" } = parameters;
275638
+ const { key: key3 = "public", name: name3 = "Public Client" } = parameters;
276095
275639
  const client = createClient({
276096
275640
  ...parameters,
276097
- key: key4,
275641
+ key: key3,
276098
275642
  name: name3,
276099
275643
  type: "publicClient"
276100
275644
  });
@@ -276272,13 +275816,13 @@ var esm_default5 = createPrompt((config3, done) => {
276272
275816
  const [value4, setValue] = useState("");
276273
275817
  const theme = makeTheme(config3.theme);
276274
275818
  const prefix = usePrefix({ status, theme });
276275
- useKeypress((key4, rl) => {
276276
- if (isEnterKey(key4)) {
275819
+ useKeypress((key3, rl) => {
275820
+ if (isEnterKey(key3)) {
276277
275821
  const answer = getBooleanValue(value4, config3.default);
276278
275822
  setValue(transformer(answer));
276279
275823
  setStatus("done");
276280
275824
  done(answer);
276281
- } else if (key4.name === "tab") {
275825
+ } else if (key3.name === "tab") {
276282
275826
  const answer = boolToString(!getBooleanValue(value4, config3.default));
276283
275827
  rl.clearLine(0);
276284
275828
  rl.write(answer);
@@ -276298,476 +275842,20 @@ var esm_default5 = createPrompt((config3, done) => {
276298
275842
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
276299
275843
  });
276300
275844
 
276301
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
276302
- var isEnterKey4 = (key4) => key4.name === "enter" || key4.name === "return";
276303
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
276304
- class AbortPromptError4 extends Error {
276305
- name = "AbortPromptError";
276306
- message = "Prompt was aborted";
276307
- constructor(options) {
276308
- super();
276309
- this.cause = options?.cause;
276310
- }
276311
- }
276312
-
276313
- class CancelPromptError4 extends Error {
276314
- name = "CancelPromptError";
276315
- message = "Prompt was canceled";
276316
- }
276317
-
276318
- class ExitPromptError4 extends Error {
276319
- name = "ExitPromptError";
276320
- }
276321
-
276322
- class HookError4 extends Error {
276323
- name = "HookError";
276324
- }
276325
-
276326
- class ValidationError4 extends Error {
276327
- name = "ValidationError";
276328
- }
276329
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
276330
- import { AsyncResource as AsyncResource12 } from "node:async_hooks";
276331
-
276332
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
276333
- import { AsyncLocalStorage as AsyncLocalStorage4, AsyncResource as AsyncResource11 } from "node:async_hooks";
276334
- var hookStorage4 = new AsyncLocalStorage4;
276335
- function createStore4(rl) {
276336
- const store = {
276337
- rl,
276338
- hooks: [],
276339
- hooksCleanup: [],
276340
- hooksEffect: [],
276341
- index: 0,
276342
- handleChange() {}
276343
- };
276344
- return store;
276345
- }
276346
- function withHooks4(rl, cb) {
276347
- const store = createStore4(rl);
276348
- return hookStorage4.run(store, () => {
276349
- function cycle(render) {
276350
- store.handleChange = () => {
276351
- store.index = 0;
276352
- render();
276353
- };
276354
- store.handleChange();
276355
- }
276356
- return cb(cycle);
276357
- });
276358
- }
276359
- function getStore4() {
276360
- const store = hookStorage4.getStore();
276361
- if (!store) {
276362
- throw new HookError4("[Inquirer] Hook functions can only be called from within a prompt");
276363
- }
276364
- return store;
276365
- }
276366
- function readline7() {
276367
- return getStore4().rl;
276368
- }
276369
- function withUpdates4(fn) {
276370
- const wrapped = (...args) => {
276371
- const store = getStore4();
276372
- let shouldUpdate = false;
276373
- const oldHandleChange = store.handleChange;
276374
- store.handleChange = () => {
276375
- shouldUpdate = true;
276376
- };
276377
- const returnValue = fn(...args);
276378
- if (shouldUpdate) {
276379
- oldHandleChange();
276380
- }
276381
- store.handleChange = oldHandleChange;
276382
- return returnValue;
276383
- };
276384
- return AsyncResource11.bind(wrapped);
276385
- }
276386
- function withPointer4(cb) {
276387
- const store = getStore4();
276388
- const { index: index2 } = store;
276389
- const pointer = {
276390
- get() {
276391
- return store.hooks[index2];
276392
- },
276393
- set(value4) {
276394
- store.hooks[index2] = value4;
276395
- },
276396
- initialized: index2 in store.hooks
276397
- };
276398
- const returnValue = cb(pointer);
276399
- store.index++;
276400
- return returnValue;
276401
- }
276402
- function handleChange4() {
276403
- getStore4().handleChange();
276404
- }
276405
- var effectScheduler4 = {
276406
- queue(cb) {
276407
- const store = getStore4();
276408
- const { index: index2 } = store;
276409
- store.hooksEffect.push(() => {
276410
- store.hooksCleanup[index2]?.();
276411
- const cleanFn = cb(readline7());
276412
- if (cleanFn != null && typeof cleanFn !== "function") {
276413
- throw new ValidationError4("useEffect return value must be a cleanup function or nothing.");
276414
- }
276415
- store.hooksCleanup[index2] = cleanFn;
276416
- });
276417
- },
276418
- run() {
276419
- const store = getStore4();
276420
- withUpdates4(() => {
276421
- store.hooksEffect.forEach((effect) => {
276422
- effect();
276423
- });
276424
- store.hooksEffect.length = 0;
276425
- })();
276426
- },
276427
- clearAll() {
276428
- const store = getStore4();
276429
- store.hooksCleanup.forEach((cleanFn) => {
276430
- cleanFn?.();
276431
- });
276432
- store.hooksEffect.length = 0;
276433
- store.hooksCleanup.length = 0;
276434
- }
276435
- };
276436
-
276437
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
276438
- function useState4(defaultValue) {
276439
- return withPointer4((pointer) => {
276440
- const setFn = (newValue) => {
276441
- if (pointer.get() !== newValue) {
276442
- pointer.set(newValue);
276443
- handleChange4();
276444
- }
276445
- };
276446
- if (pointer.initialized) {
276447
- return [pointer.get(), setFn];
276448
- }
276449
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
276450
- pointer.set(value4);
276451
- return [value4, setFn];
276452
- });
276453
- }
276454
-
276455
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
276456
- function useEffect4(cb, depArray) {
276457
- withPointer4((pointer) => {
276458
- const oldDeps = pointer.get();
276459
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
276460
- if (hasChanged) {
276461
- effectScheduler4.queue(cb);
276462
- }
276463
- pointer.set(depArray);
276464
- });
276465
- }
276466
-
276467
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
276468
- var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
276469
- var defaultTheme4 = {
276470
- prefix: {
276471
- idle: import_yoctocolors_cjs6.default.blue("?"),
276472
- done: import_yoctocolors_cjs6.default.green(esm_default2.tick)
276473
- },
276474
- spinner: {
276475
- interval: 80,
276476
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs6.default.yellow(frame))
276477
- },
276478
- style: {
276479
- answer: import_yoctocolors_cjs6.default.cyan,
276480
- message: import_yoctocolors_cjs6.default.bold,
276481
- error: (text2) => import_yoctocolors_cjs6.default.red(`> ${text2}`),
276482
- defaultAnswer: (text2) => import_yoctocolors_cjs6.default.dim(`(${text2})`),
276483
- help: import_yoctocolors_cjs6.default.dim,
276484
- highlight: import_yoctocolors_cjs6.default.cyan,
276485
- key: (text2) => import_yoctocolors_cjs6.default.cyan(import_yoctocolors_cjs6.default.bold(`<${text2}>`))
276486
- }
276487
- };
276488
-
276489
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
276490
- function isPlainObject6(value4) {
276491
- if (typeof value4 !== "object" || value4 === null)
276492
- return false;
276493
- let proto = value4;
276494
- while (Object.getPrototypeOf(proto) !== null) {
276495
- proto = Object.getPrototypeOf(proto);
276496
- }
276497
- return Object.getPrototypeOf(value4) === proto;
276498
- }
276499
- function deepMerge5(...objects) {
276500
- const output = {};
276501
- for (const obj of objects) {
276502
- for (const [key4, value4] of Object.entries(obj)) {
276503
- const prevValue = output[key4];
276504
- output[key4] = isPlainObject6(prevValue) && isPlainObject6(value4) ? deepMerge5(prevValue, value4) : value4;
276505
- }
276506
- }
276507
- return output;
276508
- }
276509
- function makeTheme4(...themes) {
276510
- const themesToMerge = [
276511
- defaultTheme4,
276512
- ...themes.filter((theme) => theme != null)
276513
- ];
276514
- return deepMerge5(...themesToMerge);
276515
- }
276516
-
276517
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
276518
- function usePrefix4({ status = "idle", theme }) {
276519
- const [showLoader, setShowLoader] = useState4(false);
276520
- const [tick, setTick] = useState4(0);
276521
- const { prefix, spinner: spinner2 } = makeTheme4(theme);
276522
- useEffect4(() => {
276523
- if (status === "loading") {
276524
- let tickInterval;
276525
- let inc = -1;
276526
- const delayTimeout = setTimeout(AsyncResource12.bind(() => {
276527
- setShowLoader(true);
276528
- tickInterval = setInterval(AsyncResource12.bind(() => {
276529
- inc = inc + 1;
276530
- setTick(inc % spinner2.frames.length);
276531
- }), spinner2.interval);
276532
- }), 300);
276533
- return () => {
276534
- clearTimeout(delayTimeout);
276535
- clearInterval(tickInterval);
276536
- };
276537
- } else {
276538
- setShowLoader(false);
276539
- }
276540
- }, [status]);
276541
- if (showLoader) {
276542
- return spinner2.frames[tick];
276543
- }
276544
- const iconName = status === "loading" ? "idle" : status;
276545
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
276546
- }
276547
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
276548
- function useRef4(val) {
276549
- return useState4({ current: val })[0];
276550
- }
276551
-
276552
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
276553
- function useKeypress4(userHandler) {
276554
- const signal = useRef4(userHandler);
276555
- signal.current = userHandler;
276556
- useEffect4((rl) => {
276557
- let ignore = false;
276558
- const handler = withUpdates4((_input, event) => {
276559
- if (ignore)
276560
- return;
276561
- signal.current(event, rl);
276562
- });
276563
- rl.input.on("keypress", handler);
276564
- return () => {
276565
- ignore = true;
276566
- rl.input.removeListener("keypress", handler);
276567
- };
276568
- }, []);
276569
- }
276570
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
276571
- var import_cli_width4 = __toESM(require_cli_width(), 1);
276572
- var import_wrap_ansi4 = __toESM(require_wrap_ansi(), 1);
276573
- function breakLines4(content, width) {
276574
- return content.split(`
276575
- `).flatMap((line) => import_wrap_ansi4.default(line, width, { trim: false, hard: true }).split(`
276576
- `).map((str) => str.trimEnd())).join(`
276577
- `);
276578
- }
276579
- function readlineWidth4() {
276580
- return import_cli_width4.default({ defaultWidth: 80, output: readline7().output });
276581
- }
276582
-
276583
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
276584
- var import_mute_stream4 = __toESM(require_lib(), 1);
276585
- import * as readline8 from "node:readline";
276586
- import { AsyncResource as AsyncResource13 } from "node:async_hooks";
276587
-
276588
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
276589
- var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
276590
- import { stripVTControlCharacters as stripVTControlCharacters5 } from "node:util";
276591
- var height4 = (content) => content.split(`
276592
- `).length;
276593
- var lastLine4 = (content) => content.split(`
276594
- `).pop() ?? "";
276595
- function cursorDown4(n6) {
276596
- return n6 > 0 ? import_ansi_escapes5.default.cursorDown(n6) : "";
276597
- }
276598
-
276599
- class ScreenManager4 {
276600
- height = 0;
276601
- extraLinesUnderPrompt = 0;
276602
- cursorPos;
276603
- rl;
276604
- constructor(rl) {
276605
- this.rl = rl;
276606
- this.cursorPos = rl.getCursorPos();
276607
- }
276608
- write(content) {
276609
- this.rl.output.unmute();
276610
- this.rl.output.write(content);
276611
- this.rl.output.mute();
276612
- }
276613
- render(content, bottomContent = "") {
276614
- const promptLine = lastLine4(content);
276615
- const rawPromptLine = stripVTControlCharacters5(promptLine);
276616
- let prompt = rawPromptLine;
276617
- if (this.rl.line.length > 0) {
276618
- prompt = prompt.slice(0, -this.rl.line.length);
276619
- }
276620
- this.rl.setPrompt(prompt);
276621
- this.cursorPos = this.rl.getCursorPos();
276622
- const width = readlineWidth4();
276623
- content = breakLines4(content, width);
276624
- bottomContent = breakLines4(bottomContent, width);
276625
- if (rawPromptLine.length % width === 0) {
276626
- content += `
276627
- `;
276628
- }
276629
- let output = content + (bottomContent ? `
276630
- ` + bottomContent : "");
276631
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
276632
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height4(bottomContent) : 0);
276633
- if (bottomContentHeight > 0)
276634
- output += import_ansi_escapes5.default.cursorUp(bottomContentHeight);
276635
- output += import_ansi_escapes5.default.cursorTo(this.cursorPos.cols);
276636
- this.write(cursorDown4(this.extraLinesUnderPrompt) + import_ansi_escapes5.default.eraseLines(this.height) + output);
276637
- this.extraLinesUnderPrompt = bottomContentHeight;
276638
- this.height = height4(output);
276639
- }
276640
- checkCursorPos() {
276641
- const cursorPos = this.rl.getCursorPos();
276642
- if (cursorPos.cols !== this.cursorPos.cols) {
276643
- this.write(import_ansi_escapes5.default.cursorTo(cursorPos.cols));
276644
- this.cursorPos = cursorPos;
276645
- }
276646
- }
276647
- done({ clearContent }) {
276648
- this.rl.setPrompt("");
276649
- let output = cursorDown4(this.extraLinesUnderPrompt);
276650
- output += clearContent ? import_ansi_escapes5.default.eraseLines(this.height) : `
276651
- `;
276652
- output += import_ansi_escapes5.default.cursorShow;
276653
- this.write(output);
276654
- this.rl.close();
276655
- }
276656
- }
276657
-
276658
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
276659
- class PromisePolyfill4 extends Promise {
276660
- static withResolver() {
276661
- let resolve6;
276662
- let reject;
276663
- const promise2 = new Promise((res, rej) => {
276664
- resolve6 = res;
276665
- reject = rej;
276666
- });
276667
- return { promise: promise2, resolve: resolve6, reject };
276668
- }
276669
- }
276670
-
276671
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
276672
- function getCallSites4() {
276673
- const _prepareStackTrace = Error.prepareStackTrace;
276674
- let result = [];
276675
- try {
276676
- Error.prepareStackTrace = (_5, callSites) => {
276677
- const callSitesWithoutCurrent = callSites.slice(1);
276678
- result = callSitesWithoutCurrent;
276679
- return callSitesWithoutCurrent;
276680
- };
276681
- new Error().stack;
276682
- } catch {
276683
- return result;
276684
- }
276685
- Error.prepareStackTrace = _prepareStackTrace;
276686
- return result;
276687
- }
276688
- function createPrompt4(view) {
276689
- const callSites = getCallSites4();
276690
- const prompt = (config3, context = {}) => {
276691
- const { input = process.stdin, signal } = context;
276692
- const cleanups = new Set;
276693
- const output = new import_mute_stream4.default;
276694
- output.pipe(context.output ?? process.stdout);
276695
- const rl = readline8.createInterface({
276696
- terminal: true,
276697
- input,
276698
- output
276699
- });
276700
- const screen = new ScreenManager4(rl);
276701
- const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill4.withResolver();
276702
- const cancel3 = () => reject(new CancelPromptError4);
276703
- if (signal) {
276704
- const abort = () => reject(new AbortPromptError4({ cause: signal.reason }));
276705
- if (signal.aborted) {
276706
- abort();
276707
- return Object.assign(promise2, { cancel: cancel3 });
276708
- }
276709
- signal.addEventListener("abort", abort);
276710
- cleanups.add(() => signal.removeEventListener("abort", abort));
276711
- }
276712
- cleanups.add(onExit((code2, signal2) => {
276713
- reject(new ExitPromptError4(`User force closed the prompt with ${code2} ${signal2}`));
276714
- }));
276715
- const sigint = () => reject(new ExitPromptError4(`User force closed the prompt with SIGINT`));
276716
- rl.on("SIGINT", sigint);
276717
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
276718
- const checkCursorPos = () => screen.checkCursorPos();
276719
- rl.input.on("keypress", checkCursorPos);
276720
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
276721
- return withHooks4(rl, (cycle) => {
276722
- const hooksCleanup = AsyncResource13.bind(() => effectScheduler4.clearAll());
276723
- rl.on("close", hooksCleanup);
276724
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
276725
- cycle(() => {
276726
- try {
276727
- const nextView = view(config3, (value4) => {
276728
- setImmediate(() => resolve6(value4));
276729
- });
276730
- if (nextView === undefined) {
276731
- const callerFilename = callSites[1]?.getFileName();
276732
- throw new Error(`Prompt functions must return a string.
276733
- at ${callerFilename}`);
276734
- }
276735
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
276736
- screen.render(content, bottomContent);
276737
- effectScheduler4.run();
276738
- } catch (error39) {
276739
- reject(error39);
276740
- }
276741
- });
276742
- return Object.assign(promise2.then((answer) => {
276743
- effectScheduler4.clearAll();
276744
- return answer;
276745
- }, (error39) => {
276746
- effectScheduler4.clearAll();
276747
- throw error39;
276748
- }).finally(() => {
276749
- cleanups.forEach((cleanup) => cleanup());
276750
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
276751
- output.end();
276752
- }).then(() => promise2), { cancel: cancel3 });
276753
- });
276754
- };
276755
- return prompt;
276756
- }
276757
275845
  // ../../node_modules/@inquirer/password/dist/esm/index.js
276758
- var import_ansi_escapes6 = __toESM(require_ansi_escapes(), 1);
276759
- var esm_default6 = createPrompt4((config3, done) => {
275846
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
275847
+ var esm_default6 = createPrompt((config3, done) => {
276760
275848
  const { validate: validate5 = () => true } = config3;
276761
- const theme = makeTheme4(config3.theme);
276762
- const [status, setStatus] = useState4("idle");
276763
- const [errorMsg, setError] = useState4();
276764
- const [value4, setValue] = useState4("");
276765
- const prefix = usePrefix4({ status, theme });
276766
- useKeypress4(async (key5, rl) => {
275849
+ const theme = makeTheme(config3.theme);
275850
+ const [status, setStatus] = useState("idle");
275851
+ const [errorMsg, setError] = useState();
275852
+ const [value4, setValue] = useState("");
275853
+ const prefix = usePrefix({ status, theme });
275854
+ useKeypress(async (key3, rl) => {
276767
275855
  if (status !== "idle") {
276768
275856
  return;
276769
275857
  }
276770
- if (isEnterKey4(key5)) {
275858
+ if (isEnterKey(key3)) {
276771
275859
  const answer = value4;
276772
275860
  setStatus("loading");
276773
275861
  const isValid = await validate5(answer);
@@ -276792,7 +275880,7 @@ var esm_default6 = createPrompt4((config3, done) => {
276792
275880
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
276793
275881
  formattedValue = maskChar.repeat(value4.length);
276794
275882
  } else if (status !== "done") {
276795
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes6.default.cursorHide}`;
275883
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
276796
275884
  }
276797
275885
  if (status === "done") {
276798
275886
  formattedValue = theme.style.answer(formattedValue);
@@ -276827,7 +275915,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
276827
275915
  default: false
276828
275916
  });
276829
275917
  if (create2) {
276830
- const name3 = await esm_default3({
275918
+ const name3 = await esm_default2({
276831
275919
  message: "How would you like to name this application access token?",
276832
275920
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
276833
275921
  required: true,
@@ -277293,7 +276381,7 @@ async function instancePrompt({
277293
276381
  return sanitizeInstanceUrl(defaultPromptInstance);
277294
276382
  }
277295
276383
  if (freeTextInput) {
277296
- const instance = await esm_default3({
276384
+ const instance = await esm_default2({
277297
276385
  message: "What is the URL of your SettleMint instance?",
277298
276386
  default: defaultPromptInstance,
277299
276387
  required: true,
@@ -277373,7 +276461,7 @@ async function serviceUrlPrompt({
277373
276461
  if (isCi) {
277374
276462
  return defaultUrl ? new URL(defaultUrl).toString() : undefined;
277375
276463
  }
277376
- const serviceUrl = await esm_default3({
276464
+ const serviceUrl = await esm_default2({
277377
276465
  message: example ? `${message} (eg ${example})` : message,
277378
276466
  default: defaultUrl,
277379
276467
  required: true,
@@ -277766,7 +276854,7 @@ async function serviceValuePrompt({
277766
276854
  if (isCi) {
277767
276855
  return defaultValue;
277768
276856
  }
277769
- const serviceSecret = await esm_default3({
276857
+ const serviceSecret = await esm_default2({
277770
276858
  message: example ? `${message} (eg ${example})` : message,
277771
276859
  default: defaultValue
277772
276860
  });
@@ -278196,7 +277284,7 @@ async function projectNamePrompt(env2, argument) {
278196
277284
  if (defaultInstance) {
278197
277285
  return defaultInstance;
278198
277286
  }
278199
- return esm_default3({
277287
+ return esm_default2({
278200
277288
  message: "What is the name of your new SettleMint project?",
278201
277289
  default: defaultInstance,
278202
277290
  required: true,
@@ -278398,7 +277486,7 @@ var basename2 = function(p5, extension) {
278398
277486
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
278399
277487
  };
278400
277488
  // ../../node_modules/defu/dist/defu.mjs
278401
- function isPlainObject7(value4) {
277489
+ function isPlainObject5(value4) {
278402
277490
  if (value4 === null || typeof value4 !== "object") {
278403
277491
  return false;
278404
277492
  }
@@ -278415,27 +277503,27 @@ function isPlainObject7(value4) {
278415
277503
  return true;
278416
277504
  }
278417
277505
  function _defu(baseObject, defaults2, namespace = ".", merger) {
278418
- if (!isPlainObject7(defaults2)) {
277506
+ if (!isPlainObject5(defaults2)) {
278419
277507
  return _defu(baseObject, {}, namespace, merger);
278420
277508
  }
278421
277509
  const object2 = Object.assign({}, defaults2);
278422
- for (const key5 in baseObject) {
278423
- if (key5 === "__proto__" || key5 === "constructor") {
277510
+ for (const key3 in baseObject) {
277511
+ if (key3 === "__proto__" || key3 === "constructor") {
278424
277512
  continue;
278425
277513
  }
278426
- const value4 = baseObject[key5];
277514
+ const value4 = baseObject[key3];
278427
277515
  if (value4 === null || value4 === undefined) {
278428
277516
  continue;
278429
277517
  }
278430
- if (merger && merger(object2, key5, value4, namespace)) {
277518
+ if (merger && merger(object2, key3, value4, namespace)) {
278431
277519
  continue;
278432
277520
  }
278433
- if (Array.isArray(value4) && Array.isArray(object2[key5])) {
278434
- object2[key5] = [...value4, ...object2[key5]];
278435
- } else if (isPlainObject7(value4) && isPlainObject7(object2[key5])) {
278436
- object2[key5] = _defu(value4, object2[key5], (namespace ? `${namespace}.` : "") + key5.toString(), merger);
277521
+ if (Array.isArray(value4) && Array.isArray(object2[key3])) {
277522
+ object2[key3] = [...value4, ...object2[key3]];
277523
+ } else if (isPlainObject5(value4) && isPlainObject5(object2[key3])) {
277524
+ object2[key3] = _defu(value4, object2[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
278437
277525
  } else {
278438
- object2[key5] = value4;
277526
+ object2[key3] = value4;
278439
277527
  }
278440
277528
  }
278441
277529
  return object2;
@@ -278444,15 +277532,15 @@ function createDefu(merger) {
278444
277532
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
278445
277533
  }
278446
277534
  var defu = createDefu();
278447
- var defuFn = createDefu((object2, key5, currentValue) => {
278448
- if (object2[key5] !== undefined && typeof currentValue === "function") {
278449
- object2[key5] = currentValue(object2[key5]);
277535
+ var defuFn = createDefu((object2, key3, currentValue) => {
277536
+ if (object2[key3] !== undefined && typeof currentValue === "function") {
277537
+ object2[key3] = currentValue(object2[key3]);
278450
277538
  return true;
278451
277539
  }
278452
277540
  });
278453
- var defuArrayFn = createDefu((object2, key5, currentValue) => {
278454
- if (Array.isArray(object2[key5]) && typeof currentValue === "function") {
278455
- object2[key5] = currentValue(object2[key5]);
277541
+ var defuArrayFn = createDefu((object2, key3, currentValue) => {
277542
+ if (Array.isArray(object2[key3]) && typeof currentValue === "function") {
277543
+ object2[key3] = currentValue(object2[key3]);
278456
277544
  return true;
278457
277545
  }
278458
277546
  });
@@ -281662,11 +280750,11 @@ function cacheDirectory() {
281662
280750
  }
281663
280751
  function normalizeHeaders(headers = {}) {
281664
280752
  const normalized = {};
281665
- for (const [key5, value4] of Object.entries(headers)) {
280753
+ for (const [key3, value4] of Object.entries(headers)) {
281666
280754
  if (!value4) {
281667
280755
  continue;
281668
280756
  }
281669
- normalized[key5.toLowerCase()] = value4;
280757
+ normalized[key3.toLowerCase()] = value4;
281670
280758
  }
281671
280759
  return normalized;
281672
280760
  }
@@ -283954,7 +283042,7 @@ function createCommand3() {
283954
283042
 
283955
283043
  // src/prompts/delete-confirmation.prompt.ts
283956
283044
  async function deleteConfirmationPrompt(itemDescription) {
283957
- const confirmation = await esm_default3({
283045
+ const confirmation = await esm_default2({
283958
283046
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
283959
283047
  required: true,
283960
283048
  validate(value4) {
@@ -284357,7 +283445,7 @@ function jsonOutput(data) {
284357
283445
  var composer = require_composer();
284358
283446
  var Document = require_Document();
284359
283447
  var Schema = require_Schema();
284360
- var errors7 = require_errors3();
283448
+ var errors5 = require_errors3();
284361
283449
  var Alias = require_Alias();
284362
283450
  var identity2 = require_identity();
284363
283451
  var Pair = require_Pair();
@@ -284373,9 +283461,9 @@ var visit2 = require_visit();
284373
283461
  var $Composer = composer.Composer;
284374
283462
  var $Document = Document.Document;
284375
283463
  var $Schema = Schema.Schema;
284376
- var $YAMLError = errors7.YAMLError;
284377
- var $YAMLParseError = errors7.YAMLParseError;
284378
- var $YAMLWarning = errors7.YAMLWarning;
283464
+ var $YAMLError = errors5.YAMLError;
283465
+ var $YAMLParseError = errors5.YAMLParseError;
283466
+ var $YAMLWarning = errors5.YAMLWarning;
284379
283467
  var $Alias = Alias.Alias;
284380
283468
  var $isAlias = identity2.isAlias;
284381
283469
  var $isCollection = identity2.isCollection;
@@ -284741,7 +283829,7 @@ async function getServicesAndMapResults({
284741
283829
  const application = await settlemint.application.read(applicationUniqueName);
284742
283830
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
284743
283831
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
284744
- const [_6, labels] = Object.entries(LABELS_MAP).find(([key5, value4]) => value4.command === serviceType) ?? [
283832
+ const [_6, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
284745
283833
  null,
284746
283834
  { plural: serviceType }
284747
283835
  ];
@@ -284982,11 +284070,11 @@ function createCommand4() {
284982
284070
 
284983
284071
  // src/utils/commands/passthrough-options.ts
284984
284072
  function mapPassthroughOptions(options, command) {
284985
- const optionArgs = Object.entries(options).map(([key5, value4]) => {
284073
+ const optionArgs = Object.entries(options).map(([key3, value4]) => {
284986
284074
  if (value4 === true) {
284987
- return `--${key5}`;
284075
+ return `--${key3}`;
284988
284076
  }
284989
- return `--${key5}=${value4}`;
284077
+ return `--${key3}=${value4}`;
284990
284078
  });
284991
284079
  return [...optionArgs, ...command.args];
284992
284080
  }
@@ -285242,7 +284330,7 @@ async function addressPrompt({
285242
284330
  hardhatConfig
285243
284331
  }) {
285244
284332
  if (!node) {
285245
- return esm_default3({
284333
+ return esm_default2({
285246
284334
  message: "Which private key address do you want to deploy from?",
285247
284335
  validate: (value4) => {
285248
284336
  if (!isAddress(value4)) {
@@ -286118,4 +285206,4 @@ async function sdkCliCommand(argv = process.argv) {
286118
285206
  // src/cli.ts
286119
285207
  sdkCliCommand();
286120
285208
 
286121
- //# debugId=511D75AD6D88926964756E2164756E21
285209
+ //# debugId=0DFCF43BE7C8CBDE64756E2164756E21