@settlemint/sdk-cli 2.3.3-mainc9668115 → 2.3.3-mainecccf96f

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 +230 -689
  2. package/dist/cli.js.map +3 -17
  3. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -239203,11 +239203,11 @@ var require_visit = __commonJS((exports) => {
239203
239203
  visit2.BREAK = BREAK;
239204
239204
  visit2.SKIP = SKIP;
239205
239205
  visit2.REMOVE = REMOVE;
239206
- function visit_(key3, node, visitor, path7) {
239207
- const ctrl = callVisitor(key3, node, visitor, path7);
239206
+ function visit_(key2, node, visitor, path7) {
239207
+ const ctrl = callVisitor(key2, node, visitor, path7);
239208
239208
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239209
- replaceNode(key3, path7, ctrl);
239210
- return visit_(key3, ctrl, visitor, path7);
239209
+ replaceNode(key2, path7, ctrl);
239210
+ return visit_(key2, ctrl, visitor, path7);
239211
239211
  }
239212
239212
  if (typeof ctrl !== "symbol") {
239213
239213
  if (identity2.isCollection(node)) {
@@ -239251,11 +239251,11 @@ var require_visit = __commonJS((exports) => {
239251
239251
  visitAsync.BREAK = BREAK;
239252
239252
  visitAsync.SKIP = SKIP;
239253
239253
  visitAsync.REMOVE = REMOVE;
239254
- async function visitAsync_(key3, node, visitor, path7) {
239255
- const ctrl = await callVisitor(key3, node, visitor, path7);
239254
+ async function visitAsync_(key2, node, visitor, path7) {
239255
+ const ctrl = await callVisitor(key2, node, visitor, path7);
239256
239256
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239257
- replaceNode(key3, path7, ctrl);
239258
- return visitAsync_(key3, ctrl, visitor, path7);
239257
+ replaceNode(key2, path7, ctrl);
239258
+ return visitAsync_(key2, ctrl, visitor, path7);
239259
239259
  }
239260
239260
  if (typeof ctrl !== "symbol") {
239261
239261
  if (identity2.isCollection(node)) {
@@ -239305,27 +239305,27 @@ var require_visit = __commonJS((exports) => {
239305
239305
  }
239306
239306
  return visitor;
239307
239307
  }
239308
- function callVisitor(key3, node, visitor, path7) {
239308
+ function callVisitor(key2, node, visitor, path7) {
239309
239309
  if (typeof visitor === "function")
239310
- return visitor(key3, node, path7);
239310
+ return visitor(key2, node, path7);
239311
239311
  if (identity2.isMap(node))
239312
- return visitor.Map?.(key3, node, path7);
239312
+ return visitor.Map?.(key2, node, path7);
239313
239313
  if (identity2.isSeq(node))
239314
- return visitor.Seq?.(key3, node, path7);
239314
+ return visitor.Seq?.(key2, node, path7);
239315
239315
  if (identity2.isPair(node))
239316
- return visitor.Pair?.(key3, node, path7);
239316
+ return visitor.Pair?.(key2, node, path7);
239317
239317
  if (identity2.isScalar(node))
239318
- return visitor.Scalar?.(key3, node, path7);
239318
+ return visitor.Scalar?.(key2, node, path7);
239319
239319
  if (identity2.isAlias(node))
239320
- return visitor.Alias?.(key3, node, path7);
239320
+ return visitor.Alias?.(key2, node, path7);
239321
239321
  return;
239322
239322
  }
239323
- function replaceNode(key3, path7, node) {
239323
+ function replaceNode(key2, path7, node) {
239324
239324
  const parent = path7[path7.length - 1];
239325
239325
  if (identity2.isCollection(parent)) {
239326
- parent.items[key3] = node;
239326
+ parent.items[key2] = node;
239327
239327
  } else if (identity2.isPair(parent)) {
239328
- if (key3 === "key")
239328
+ if (key2 === "key")
239329
239329
  parent.key = node;
239330
239330
  else
239331
239331
  parent.value = node;
@@ -239556,7 +239556,7 @@ var require_anchors = __commonJS((exports) => {
239556
239556
 
239557
239557
  // ../../node_modules/yaml/dist/doc/applyReviver.js
239558
239558
  var require_applyReviver = __commonJS((exports) => {
239559
- function applyReviver(reviver, obj, key3, val) {
239559
+ function applyReviver(reviver, obj, key2, val) {
239560
239560
  if (val && typeof val === "object") {
239561
239561
  if (Array.isArray(val)) {
239562
239562
  for (let i7 = 0, len = val.length;i7 < len; ++i7) {
@@ -239596,7 +239596,7 @@ var require_applyReviver = __commonJS((exports) => {
239596
239596
  }
239597
239597
  }
239598
239598
  }
239599
- return reviver.call(obj, key3, val);
239599
+ return reviver.call(obj, key2, val);
239600
239600
  }
239601
239601
  exports.applyReviver = applyReviver;
239602
239602
  });
@@ -239925,29 +239925,29 @@ var require_Collection = __commonJS((exports) => {
239925
239925
  if (isEmptyPath(path7))
239926
239926
  this.add(value4);
239927
239927
  else {
239928
- const [key3, ...rest] = path7;
239929
- const node = this.get(key3, true);
239928
+ const [key2, ...rest] = path7;
239929
+ const node = this.get(key2, true);
239930
239930
  if (identity2.isCollection(node))
239931
239931
  node.addIn(rest, value4);
239932
239932
  else if (node === undefined && this.schema)
239933
- this.set(key3, collectionFromPath(this.schema, rest, value4));
239933
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
239934
239934
  else
239935
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
239935
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
239936
239936
  }
239937
239937
  }
239938
239938
  deleteIn(path7) {
239939
- const [key3, ...rest] = path7;
239939
+ const [key2, ...rest] = path7;
239940
239940
  if (rest.length === 0)
239941
- return this.delete(key3);
239942
- const node = this.get(key3, true);
239941
+ return this.delete(key2);
239942
+ const node = this.get(key2, true);
239943
239943
  if (identity2.isCollection(node))
239944
239944
  return node.deleteIn(rest);
239945
239945
  else
239946
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
239946
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
239947
239947
  }
239948
239948
  getIn(path7, keepScalar) {
239949
- const [key3, ...rest] = path7;
239950
- const node = this.get(key3, true);
239949
+ const [key2, ...rest] = path7;
239950
+ const node = this.get(key2, true);
239951
239951
  if (rest.length === 0)
239952
239952
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
239953
239953
  else
@@ -239962,24 +239962,24 @@ var require_Collection = __commonJS((exports) => {
239962
239962
  });
239963
239963
  }
239964
239964
  hasIn(path7) {
239965
- const [key3, ...rest] = path7;
239965
+ const [key2, ...rest] = path7;
239966
239966
  if (rest.length === 0)
239967
- return this.has(key3);
239968
- const node = this.get(key3, true);
239967
+ return this.has(key2);
239968
+ const node = this.get(key2, true);
239969
239969
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
239970
239970
  }
239971
239971
  setIn(path7, value4) {
239972
- const [key3, ...rest] = path7;
239972
+ const [key2, ...rest] = path7;
239973
239973
  if (rest.length === 0) {
239974
- this.set(key3, value4);
239974
+ this.set(key2, value4);
239975
239975
  } else {
239976
- const node = this.get(key3, true);
239976
+ const node = this.get(key2, true);
239977
239977
  if (identity2.isCollection(node))
239978
239978
  node.setIn(rest, value4);
239979
239979
  else if (node === undefined && this.schema)
239980
- this.set(key3, collectionFromPath(this.schema, rest, value4));
239980
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
239981
239981
  else
239982
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
239982
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
239983
239983
  }
239984
239984
  }
239985
239985
  }
@@ -240566,19 +240566,19 @@ var require_stringifyPair = __commonJS((exports) => {
240566
240566
  var Scalar = require_Scalar();
240567
240567
  var stringify5 = require_stringify();
240568
240568
  var stringifyComment = require_stringifyComment();
240569
- function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
240569
+ function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
240570
240570
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
240571
- let keyComment = identity2.isNode(key3) && key3.comment || null;
240571
+ let keyComment = identity2.isNode(key2) && key2.comment || null;
240572
240572
  if (simpleKeys) {
240573
240573
  if (keyComment) {
240574
240574
  throw new Error("With simple keys, key nodes cannot have comments");
240575
240575
  }
240576
- if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
240576
+ if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
240577
240577
  const msg = "With simple keys, collection cannot be used as a key value";
240578
240578
  throw new Error(msg);
240579
240579
  }
240580
240580
  }
240581
- 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"));
240581
+ let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
240582
240582
  ctx = Object.assign({}, ctx, {
240583
240583
  allNullValues: false,
240584
240584
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -240586,7 +240586,7 @@ var require_stringifyPair = __commonJS((exports) => {
240586
240586
  });
240587
240587
  let keyCommentDone = false;
240588
240588
  let chompKeep = false;
240589
- let str = stringify5.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
240589
+ let str = stringify5.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
240590
240590
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
240591
240591
  if (simpleKeys)
240592
240592
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -240730,7 +240730,7 @@ var require_merge = __commonJS((exports) => {
240730
240730
  }),
240731
240731
  stringify: () => MERGE_KEY
240732
240732
  };
240733
- var isMergeKey = (ctx, key3) => (merge7.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge7.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240733
+ var isMergeKey = (ctx, key2) => (merge7.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge7.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240734
240734
  function addMergeToJSMap(ctx, map7, value4) {
240735
240735
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
240736
240736
  if (identity2.isSeq(value4))
@@ -240747,14 +240747,14 @@ var require_merge = __commonJS((exports) => {
240747
240747
  if (!identity2.isMap(source))
240748
240748
  throw new Error("Merge sources must be maps or map aliases");
240749
240749
  const srcMap = source.toJSON(null, ctx, Map);
240750
- for (const [key3, value5] of srcMap) {
240750
+ for (const [key2, value5] of srcMap) {
240751
240751
  if (map7 instanceof Map) {
240752
- if (!map7.has(key3))
240753
- map7.set(key3, value5);
240752
+ if (!map7.has(key2))
240753
+ map7.set(key2, value5);
240754
240754
  } else if (map7 instanceof Set) {
240755
- map7.add(key3);
240756
- } else if (!Object.prototype.hasOwnProperty.call(map7, key3)) {
240757
- Object.defineProperty(map7, key3, {
240755
+ map7.add(key2);
240756
+ } else if (!Object.prototype.hasOwnProperty.call(map7, key2)) {
240757
+ Object.defineProperty(map7, key2, {
240758
240758
  value: value5,
240759
240759
  writable: true,
240760
240760
  enumerable: true,
@@ -240776,19 +240776,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240776
240776
  var stringify5 = require_stringify();
240777
240777
  var identity2 = require_identity();
240778
240778
  var toJS = require_toJS();
240779
- function addPairToJSMap(ctx, map7, { key: key3, value: value4 }) {
240780
- if (identity2.isNode(key3) && key3.addToJSMap)
240781
- key3.addToJSMap(ctx, map7, value4);
240782
- else if (merge7.isMergeKey(ctx, key3))
240779
+ function addPairToJSMap(ctx, map7, { key: key2, value: value4 }) {
240780
+ if (identity2.isNode(key2) && key2.addToJSMap)
240781
+ key2.addToJSMap(ctx, map7, value4);
240782
+ else if (merge7.isMergeKey(ctx, key2))
240783
240783
  merge7.addMergeToJSMap(ctx, map7, value4);
240784
240784
  else {
240785
- const jsKey = toJS.toJS(key3, "", ctx);
240785
+ const jsKey = toJS.toJS(key2, "", ctx);
240786
240786
  if (map7 instanceof Map) {
240787
240787
  map7.set(jsKey, toJS.toJS(value4, jsKey, ctx));
240788
240788
  } else if (map7 instanceof Set) {
240789
240789
  map7.add(jsKey);
240790
240790
  } else {
240791
- const stringKey = stringifyKey(key3, jsKey, ctx);
240791
+ const stringKey = stringifyKey(key2, jsKey, ctx);
240792
240792
  const jsValue = toJS.toJS(value4, stringKey, ctx);
240793
240793
  if (stringKey in map7)
240794
240794
  Object.defineProperty(map7, stringKey, {
@@ -240803,19 +240803,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240803
240803
  }
240804
240804
  return map7;
240805
240805
  }
240806
- function stringifyKey(key3, jsKey, ctx) {
240806
+ function stringifyKey(key2, jsKey, ctx) {
240807
240807
  if (jsKey === null)
240808
240808
  return "";
240809
240809
  if (typeof jsKey !== "object")
240810
240810
  return String(jsKey);
240811
- if (identity2.isNode(key3) && ctx?.doc) {
240811
+ if (identity2.isNode(key2) && ctx?.doc) {
240812
240812
  const strCtx = stringify5.createStringifyContext(ctx.doc, {});
240813
240813
  strCtx.anchors = new Set;
240814
240814
  for (const node of ctx.anchors.keys())
240815
240815
  strCtx.anchors.add(node.anchor);
240816
240816
  strCtx.inFlow = true;
240817
240817
  strCtx.inStringifyKey = true;
240818
- const strKey = key3.toString(strCtx);
240818
+ const strKey = key2.toString(strCtx);
240819
240819
  if (!ctx.mapKeyWarned) {
240820
240820
  let jsonStr = JSON.stringify(strKey);
240821
240821
  if (jsonStr.length > 40)
@@ -240836,25 +240836,25 @@ var require_Pair = __commonJS((exports) => {
240836
240836
  var stringifyPair2 = require_stringifyPair();
240837
240837
  var addPairToJSMap = require_addPairToJSMap();
240838
240838
  var identity2 = require_identity();
240839
- function createPair(key3, value4, ctx) {
240840
- const k6 = createNode.createNode(key3, undefined, ctx);
240839
+ function createPair(key2, value4, ctx) {
240840
+ const k6 = createNode.createNode(key2, undefined, ctx);
240841
240841
  const v7 = createNode.createNode(value4, undefined, ctx);
240842
240842
  return new Pair(k6, v7);
240843
240843
  }
240844
240844
 
240845
240845
  class Pair {
240846
- constructor(key3, value4 = null) {
240846
+ constructor(key2, value4 = null) {
240847
240847
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
240848
- this.key = key3;
240848
+ this.key = key2;
240849
240849
  this.value = value4;
240850
240850
  }
240851
240851
  clone(schema) {
240852
- let { key: key3, value: value4 } = this;
240853
- if (identity2.isNode(key3))
240854
- key3 = key3.clone(schema);
240852
+ let { key: key2, value: value4 } = this;
240853
+ if (identity2.isNode(key2))
240854
+ key2 = key2.clone(schema);
240855
240855
  if (identity2.isNode(value4))
240856
240856
  value4 = value4.clone(schema);
240857
- return new Pair(key3, value4);
240857
+ return new Pair(key2, value4);
240858
240858
  }
240859
240859
  toJSON(_6, ctx) {
240860
240860
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -241021,11 +241021,11 @@ var require_YAMLMap = __commonJS((exports) => {
241021
241021
  var identity2 = require_identity();
241022
241022
  var Pair = require_Pair();
241023
241023
  var Scalar = require_Scalar();
241024
- function findPair(items, key3) {
241025
- const k6 = identity2.isScalar(key3) ? key3.value : key3;
241024
+ function findPair(items, key2) {
241025
+ const k6 = identity2.isScalar(key2) ? key2.value : key2;
241026
241026
  for (const it2 of items) {
241027
241027
  if (identity2.isPair(it2)) {
241028
- if (it2.key === key3 || it2.key === k6)
241028
+ if (it2.key === key2 || it2.key === k6)
241029
241029
  return it2;
241030
241030
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
241031
241031
  return it2;
@@ -241045,20 +241045,20 @@ var require_YAMLMap = __commonJS((exports) => {
241045
241045
  static from(schema, obj, ctx) {
241046
241046
  const { keepUndefined, replacer } = ctx;
241047
241047
  const map7 = new this(schema);
241048
- const add = (key3, value4) => {
241048
+ const add = (key2, value4) => {
241049
241049
  if (typeof replacer === "function")
241050
- value4 = replacer.call(obj, key3, value4);
241051
- else if (Array.isArray(replacer) && !replacer.includes(key3))
241050
+ value4 = replacer.call(obj, key2, value4);
241051
+ else if (Array.isArray(replacer) && !replacer.includes(key2))
241052
241052
  return;
241053
241053
  if (value4 !== undefined || keepUndefined)
241054
- map7.items.push(Pair.createPair(key3, value4, ctx));
241054
+ map7.items.push(Pair.createPair(key2, value4, ctx));
241055
241055
  };
241056
241056
  if (obj instanceof Map) {
241057
- for (const [key3, value4] of obj)
241058
- add(key3, value4);
241057
+ for (const [key2, value4] of obj)
241058
+ add(key2, value4);
241059
241059
  } else if (obj && typeof obj === "object") {
241060
- for (const key3 of Object.keys(obj))
241061
- add(key3, obj[key3]);
241060
+ for (const key2 of Object.keys(obj))
241061
+ add(key2, obj[key2]);
241062
241062
  }
241063
241063
  if (typeof schema.sortMapEntries === "function") {
241064
241064
  map7.items.sort(schema.sortMapEntries);
@@ -241092,23 +241092,23 @@ var require_YAMLMap = __commonJS((exports) => {
241092
241092
  this.items.push(_pair);
241093
241093
  }
241094
241094
  }
241095
- delete(key3) {
241096
- const it2 = findPair(this.items, key3);
241095
+ delete(key2) {
241096
+ const it2 = findPair(this.items, key2);
241097
241097
  if (!it2)
241098
241098
  return false;
241099
241099
  const del = this.items.splice(this.items.indexOf(it2), 1);
241100
241100
  return del.length > 0;
241101
241101
  }
241102
- get(key3, keepScalar) {
241103
- const it2 = findPair(this.items, key3);
241102
+ get(key2, keepScalar) {
241103
+ const it2 = findPair(this.items, key2);
241104
241104
  const node = it2?.value;
241105
241105
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
241106
241106
  }
241107
- has(key3) {
241108
- return !!findPair(this.items, key3);
241107
+ has(key2) {
241108
+ return !!findPair(this.items, key2);
241109
241109
  }
241110
- set(key3, value4) {
241111
- this.add(new Pair.Pair(key3, value4), true);
241110
+ set(key2, value4) {
241111
+ this.add(new Pair.Pair(key2, value4), true);
241112
241112
  }
241113
241113
  toJSON(_6, ctx, Type) {
241114
241114
  const map7 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -241179,28 +241179,28 @@ var require_YAMLSeq = __commonJS((exports) => {
241179
241179
  add(value4) {
241180
241180
  this.items.push(value4);
241181
241181
  }
241182
- delete(key3) {
241183
- const idx = asItemIndex(key3);
241182
+ delete(key2) {
241183
+ const idx = asItemIndex(key2);
241184
241184
  if (typeof idx !== "number")
241185
241185
  return false;
241186
241186
  const del = this.items.splice(idx, 1);
241187
241187
  return del.length > 0;
241188
241188
  }
241189
- get(key3, keepScalar) {
241190
- const idx = asItemIndex(key3);
241189
+ get(key2, keepScalar) {
241190
+ const idx = asItemIndex(key2);
241191
241191
  if (typeof idx !== "number")
241192
241192
  return;
241193
241193
  const it2 = this.items[idx];
241194
241194
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
241195
241195
  }
241196
- has(key3) {
241197
- const idx = asItemIndex(key3);
241196
+ has(key2) {
241197
+ const idx = asItemIndex(key2);
241198
241198
  return typeof idx === "number" && idx < this.items.length;
241199
241199
  }
241200
- set(key3, value4) {
241201
- const idx = asItemIndex(key3);
241200
+ set(key2, value4) {
241201
+ const idx = asItemIndex(key2);
241202
241202
  if (typeof idx !== "number")
241203
- throw new Error(`Expected a valid index, not ${key3}.`);
241203
+ throw new Error(`Expected a valid index, not ${key2}.`);
241204
241204
  const prev = this.items[idx];
241205
241205
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
241206
241206
  prev.value = value4;
@@ -241234,8 +241234,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241234
241234
  let i7 = 0;
241235
241235
  for (let it2 of obj) {
241236
241236
  if (typeof replacer === "function") {
241237
- const key3 = obj instanceof Set ? it2 : String(i7++);
241238
- it2 = replacer.call(obj, key3, it2);
241237
+ const key2 = obj instanceof Set ? it2 : String(i7++);
241238
+ it2 = replacer.call(obj, key2, it2);
241239
241239
  }
241240
241240
  seq.items.push(createNode.createNode(it2, undefined, ctx));
241241
241241
  }
@@ -241243,8 +241243,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241243
241243
  return seq;
241244
241244
  }
241245
241245
  }
241246
- function asItemIndex(key3) {
241247
- let idx = identity2.isScalar(key3) ? key3.value : key3;
241246
+ function asItemIndex(key2) {
241247
+ let idx = identity2.isScalar(key2) ? key2.value : key2;
241248
241248
  if (idx && typeof idx === "string")
241249
241249
  idx = Number(idx);
241250
241250
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -241617,25 +241617,25 @@ ${cn.comment}` : item.comment;
241617
241617
  for (let it2 of iterable) {
241618
241618
  if (typeof replacer === "function")
241619
241619
  it2 = replacer.call(iterable, String(i7++), it2);
241620
- let key3, value4;
241620
+ let key2, value4;
241621
241621
  if (Array.isArray(it2)) {
241622
241622
  if (it2.length === 2) {
241623
- key3 = it2[0];
241623
+ key2 = it2[0];
241624
241624
  value4 = it2[1];
241625
241625
  } else
241626
241626
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
241627
241627
  } else if (it2 && it2 instanceof Object) {
241628
241628
  const keys = Object.keys(it2);
241629
241629
  if (keys.length === 1) {
241630
- key3 = keys[0];
241631
- value4 = it2[key3];
241630
+ key2 = keys[0];
241631
+ value4 = it2[key2];
241632
241632
  } else {
241633
241633
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
241634
241634
  }
241635
241635
  } else {
241636
- key3 = it2;
241636
+ key2 = it2;
241637
241637
  }
241638
- pairs2.items.push(Pair.createPair(key3, value4, ctx));
241638
+ pairs2.items.push(Pair.createPair(key2, value4, ctx));
241639
241639
  }
241640
241640
  return pairs2;
241641
241641
  }
@@ -241676,16 +241676,16 @@ var require_omap = __commonJS((exports) => {
241676
241676
  if (ctx?.onCreate)
241677
241677
  ctx.onCreate(map7);
241678
241678
  for (const pair of this.items) {
241679
- let key3, value4;
241679
+ let key2, value4;
241680
241680
  if (identity2.isPair(pair)) {
241681
- key3 = toJS.toJS(pair.key, "", ctx);
241682
- value4 = toJS.toJS(pair.value, key3, ctx);
241681
+ key2 = toJS.toJS(pair.key, "", ctx);
241682
+ value4 = toJS.toJS(pair.value, key2, ctx);
241683
241683
  } else {
241684
- key3 = toJS.toJS(pair, "", ctx);
241684
+ key2 = toJS.toJS(pair, "", ctx);
241685
241685
  }
241686
- if (map7.has(key3))
241686
+ if (map7.has(key2))
241687
241687
  throw new Error("Ordered maps must not include duplicate keys");
241688
- map7.set(key3, value4);
241688
+ map7.set(key2, value4);
241689
241689
  }
241690
241690
  return map7;
241691
241691
  }
@@ -241706,12 +241706,12 @@ var require_omap = __commonJS((exports) => {
241706
241706
  resolve(seq, onError) {
241707
241707
  const pairs$1 = pairs.resolvePairs(seq, onError);
241708
241708
  const seenKeys = [];
241709
- for (const { key: key3 } of pairs$1.items) {
241710
- if (identity2.isScalar(key3)) {
241711
- if (seenKeys.includes(key3.value)) {
241712
- onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
241709
+ for (const { key: key2 } of pairs$1.items) {
241710
+ if (identity2.isScalar(key2)) {
241711
+ if (seenKeys.includes(key2.value)) {
241712
+ onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
241713
241713
  } else {
241714
- seenKeys.push(key3.value);
241714
+ seenKeys.push(key2.value);
241715
241715
  }
241716
241716
  }
241717
241717
  }
@@ -241885,30 +241885,30 @@ var require_set = __commonJS((exports) => {
241885
241885
  super(schema);
241886
241886
  this.tag = YAMLSet.tag;
241887
241887
  }
241888
- add(key3) {
241888
+ add(key2) {
241889
241889
  let pair;
241890
- if (identity2.isPair(key3))
241891
- pair = key3;
241892
- else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
241893
- pair = new Pair.Pair(key3.key, null);
241890
+ if (identity2.isPair(key2))
241891
+ pair = key2;
241892
+ else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
241893
+ pair = new Pair.Pair(key2.key, null);
241894
241894
  else
241895
- pair = new Pair.Pair(key3, null);
241895
+ pair = new Pair.Pair(key2, null);
241896
241896
  const prev = YAMLMap.findPair(this.items, pair.key);
241897
241897
  if (!prev)
241898
241898
  this.items.push(pair);
241899
241899
  }
241900
- get(key3, keepPair) {
241901
- const pair = YAMLMap.findPair(this.items, key3);
241900
+ get(key2, keepPair) {
241901
+ const pair = YAMLMap.findPair(this.items, key2);
241902
241902
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
241903
241903
  }
241904
- set(key3, value4) {
241904
+ set(key2, value4) {
241905
241905
  if (typeof value4 !== "boolean")
241906
241906
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
241907
- const prev = YAMLMap.findPair(this.items, key3);
241907
+ const prev = YAMLMap.findPair(this.items, key2);
241908
241908
  if (prev && !value4) {
241909
241909
  this.items.splice(this.items.indexOf(prev), 1);
241910
241910
  } else if (!prev && value4) {
241911
- this.items.push(new Pair.Pair(key3));
241911
+ this.items.push(new Pair.Pair(key2));
241912
241912
  }
241913
241913
  }
241914
241914
  toJSON(_6, ctx) {
@@ -242143,7 +242143,7 @@ var require_tags = __commonJS((exports) => {
242143
242143
  if (Array.isArray(customTags))
242144
242144
  tags = [];
242145
242145
  else {
242146
- const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
242146
+ const keys = Array.from(schemas3.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
242147
242147
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
242148
242148
  }
242149
242149
  }
@@ -242159,7 +242159,7 @@ var require_tags = __commonJS((exports) => {
242159
242159
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
242160
242160
  if (!tagObj) {
242161
242161
  const tagName = JSON.stringify(tag);
242162
- const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
242162
+ const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
242163
242163
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
242164
242164
  }
242165
242165
  if (!tags2.includes(tagObj))
@@ -242394,13 +242394,13 @@ var require_Document = __commonJS((exports) => {
242394
242394
  setAnchors();
242395
242395
  return node;
242396
242396
  }
242397
- createPair(key3, value4, options = {}) {
242398
- const k6 = this.createNode(key3, null, options);
242397
+ createPair(key2, value4, options = {}) {
242398
+ const k6 = this.createNode(key2, null, options);
242399
242399
  const v7 = this.createNode(value4, null, options);
242400
242400
  return new Pair.Pair(k6, v7);
242401
242401
  }
242402
- delete(key3) {
242403
- return assertCollection(this.contents) ? this.contents.delete(key3) : false;
242402
+ delete(key2) {
242403
+ return assertCollection(this.contents) ? this.contents.delete(key2) : false;
242404
242404
  }
242405
242405
  deleteIn(path7) {
242406
242406
  if (Collection.isEmptyPath(path7)) {
@@ -242411,27 +242411,27 @@ var require_Document = __commonJS((exports) => {
242411
242411
  }
242412
242412
  return assertCollection(this.contents) ? this.contents.deleteIn(path7) : false;
242413
242413
  }
242414
- get(key3, keepScalar) {
242415
- return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
242414
+ get(key2, keepScalar) {
242415
+ return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
242416
242416
  }
242417
242417
  getIn(path7, keepScalar) {
242418
242418
  if (Collection.isEmptyPath(path7))
242419
242419
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
242420
242420
  return identity2.isCollection(this.contents) ? this.contents.getIn(path7, keepScalar) : undefined;
242421
242421
  }
242422
- has(key3) {
242423
- return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
242422
+ has(key2) {
242423
+ return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
242424
242424
  }
242425
242425
  hasIn(path7) {
242426
242426
  if (Collection.isEmptyPath(path7))
242427
242427
  return this.contents !== undefined;
242428
242428
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path7) : false;
242429
242429
  }
242430
- set(key3, value4) {
242430
+ set(key2, value4) {
242431
242431
  if (this.contents == null) {
242432
- this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
242432
+ this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
242433
242433
  } else if (assertCollection(this.contents)) {
242434
- this.contents.set(key3, value4);
242434
+ this.contents.set(key2, value4);
242435
242435
  }
242436
242436
  }
242437
242437
  setIn(path7, value4) {
@@ -242713,25 +242713,25 @@ var require_resolve_props = __commonJS((exports) => {
242713
242713
 
242714
242714
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
242715
242715
  var require_util_contains_newline = __commonJS((exports) => {
242716
- function containsNewline(key3) {
242717
- if (!key3)
242716
+ function containsNewline(key2) {
242717
+ if (!key2)
242718
242718
  return null;
242719
- switch (key3.type) {
242719
+ switch (key2.type) {
242720
242720
  case "alias":
242721
242721
  case "scalar":
242722
242722
  case "double-quoted-scalar":
242723
242723
  case "single-quoted-scalar":
242724
- if (key3.source.includes(`
242724
+ if (key2.source.includes(`
242725
242725
  `))
242726
242726
  return true;
242727
- if (key3.end) {
242728
- for (const st2 of key3.end)
242727
+ if (key2.end) {
242728
+ for (const st2 of key2.end)
242729
242729
  if (st2.type === "newline")
242730
242730
  return true;
242731
242731
  }
242732
242732
  return false;
242733
242733
  case "flow-collection":
242734
- for (const it2 of key3.items) {
242734
+ for (const it2 of key2.items) {
242735
242735
  for (const st2 of it2.start)
242736
242736
  if (st2.type === "newline")
242737
242737
  return true;
@@ -242796,10 +242796,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242796
242796
  let offset = bm.offset;
242797
242797
  let commentEnd = null;
242798
242798
  for (const collItem of bm.items) {
242799
- const { start: start3, key: key3, sep: sep5, value: value4 } = collItem;
242799
+ const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
242800
242800
  const keyProps = resolveProps.resolveProps(start3, {
242801
242801
  indicator: "explicit-key-ind",
242802
- next: key3 ?? sep5?.[0],
242802
+ next: key2 ?? sep5?.[0],
242803
242803
  offset,
242804
242804
  onError,
242805
242805
  parentIndent: bm.indent,
@@ -242807,10 +242807,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242807
242807
  });
242808
242808
  const implicitKey = !keyProps.found;
242809
242809
  if (implicitKey) {
242810
- if (key3) {
242811
- if (key3.type === "block-seq")
242810
+ if (key2) {
242811
+ if (key2.type === "block-seq")
242812
242812
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
242813
- else if ("indent" in key3 && key3.indent !== bm.indent)
242813
+ else if ("indent" in key2 && key2.indent !== bm.indent)
242814
242814
  onError(offset, "BAD_INDENT", startColMsg);
242815
242815
  }
242816
242816
  if (!keyProps.anchor && !keyProps.tag && !sep5) {
@@ -242824,17 +242824,17 @@ var require_resolve_block_map = __commonJS((exports) => {
242824
242824
  }
242825
242825
  continue;
242826
242826
  }
242827
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
242828
- onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242827
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
242828
+ onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242829
242829
  }
242830
242830
  } else if (keyProps.found?.indent !== bm.indent) {
242831
242831
  onError(offset, "BAD_INDENT", startColMsg);
242832
242832
  }
242833
242833
  ctx.atKey = true;
242834
242834
  const keyStart = keyProps.end;
242835
- const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242835
+ const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242836
242836
  if (ctx.schema.compat)
242837
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
242837
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
242838
242838
  ctx.atKey = false;
242839
242839
  if (utilMapIncludes.mapIncludes(ctx, map7.items, keyNode))
242840
242840
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -242844,7 +242844,7 @@ var require_resolve_block_map = __commonJS((exports) => {
242844
242844
  offset: keyNode.range[2],
242845
242845
  onError,
242846
242846
  parentIndent: bm.indent,
242847
- startOnNewline: !key3 || key3.type === "block-scalar"
242847
+ startOnNewline: !key2 || key2.type === "block-scalar"
242848
242848
  });
242849
242849
  offset = valueProps.end;
242850
242850
  if (valueProps.found) {
@@ -243000,11 +243000,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243000
243000
  let offset = fc.offset + fc.start.source.length;
243001
243001
  for (let i7 = 0;i7 < fc.items.length; ++i7) {
243002
243002
  const collItem = fc.items[i7];
243003
- const { start: start3, key: key3, sep: sep5, value: value4 } = collItem;
243003
+ const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
243004
243004
  const props = resolveProps.resolveProps(start3, {
243005
243005
  flow: fcName,
243006
243006
  indicator: "explicit-key-ind",
243007
- next: key3 ?? sep5?.[0],
243007
+ next: key2 ?? sep5?.[0],
243008
243008
  offset,
243009
243009
  onError,
243010
243010
  parentIndent: fc.indent,
@@ -243026,8 +243026,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243026
243026
  offset = props.end;
243027
243027
  continue;
243028
243028
  }
243029
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
243030
- onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243029
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
243030
+ onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243031
243031
  }
243032
243032
  if (i7 === 0) {
243033
243033
  if (props.comma)
@@ -243072,8 +243072,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243072
243072
  } else {
243073
243073
  ctx.atKey = true;
243074
243074
  const keyStart = props.end;
243075
- const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243076
- if (isBlock(key3))
243075
+ const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243076
+ if (isBlock(key2))
243077
243077
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
243078
243078
  ctx.atKey = false;
243079
243079
  const valueProps = resolveProps.resolveProps(sep5 ?? [], {
@@ -243884,7 +243884,7 @@ var require_composer = __commonJS((exports) => {
243884
243884
  var node_process = __require("process");
243885
243885
  var directives4 = require_directives2();
243886
243886
  var Document = require_Document();
243887
- var errors5 = require_errors3();
243887
+ var errors4 = require_errors3();
243888
243888
  var identity2 = require_identity();
243889
243889
  var composeDoc = require_compose_doc();
243890
243890
  var resolveEnd = require_resolve_end();
@@ -243935,9 +243935,9 @@ var require_composer = __commonJS((exports) => {
243935
243935
  this.onError = (source, code2, message, warning) => {
243936
243936
  const pos = getErrorPos(source);
243937
243937
  if (warning)
243938
- this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
243938
+ this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
243939
243939
  else
243940
- this.errors.push(new errors5.YAMLParseError(pos, code2, message));
243940
+ this.errors.push(new errors4.YAMLParseError(pos, code2, message));
243941
243941
  };
243942
243942
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
243943
243943
  this.options = options;
@@ -244021,7 +244021,7 @@ ${cb}` : comment;
244021
244021
  break;
244022
244022
  case "error": {
244023
244023
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
244024
- const error42 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244024
+ const error42 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244025
244025
  if (this.atDirectives || !this.doc)
244026
244026
  this.errors.push(error42);
244027
244027
  else
@@ -244031,7 +244031,7 @@ ${cb}` : comment;
244031
244031
  case "doc-end": {
244032
244032
  if (!this.doc) {
244033
244033
  const msg = "Unexpected doc-end without preceding document";
244034
- this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244034
+ this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244035
244035
  break;
244036
244036
  }
244037
244037
  this.doc.directives.docEnd = true;
@@ -244046,7 +244046,7 @@ ${end.comment}` : end.comment;
244046
244046
  break;
244047
244047
  }
244048
244048
  default:
244049
- this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244049
+ this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244050
244050
  }
244051
244051
  }
244052
244052
  *end(forceDoc = false, endOffset = -1) {
@@ -244072,7 +244072,7 @@ ${end.comment}` : end.comment;
244072
244072
  var require_cst_scalar = __commonJS((exports) => {
244073
244073
  var resolveBlockScalar = require_resolve_block_scalar();
244074
244074
  var resolveFlowScalar = require_resolve_flow_scalar();
244075
- var errors5 = require_errors3();
244075
+ var errors4 = require_errors3();
244076
244076
  var stringifyString = require_stringifyString();
244077
244077
  function resolveAsScalar(token, strict = true, onError) {
244078
244078
  if (token) {
@@ -244081,7 +244081,7 @@ var require_cst_scalar = __commonJS((exports) => {
244081
244081
  if (onError)
244082
244082
  onError(offset, code2, message);
244083
244083
  else
244084
- throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
244084
+ throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
244085
244085
  };
244086
244086
  switch (token.type) {
244087
244087
  case "scalar":
@@ -244195,9 +244195,9 @@ var require_cst_scalar = __commonJS((exports) => {
244195
244195
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
244196
244196
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
244197
244197
  ` });
244198
- for (const key3 of Object.keys(token))
244199
- if (key3 !== "type" && key3 !== "offset")
244200
- delete token[key3];
244198
+ for (const key2 of Object.keys(token))
244199
+ if (key2 !== "type" && key2 !== "offset")
244200
+ delete token[key2];
244201
244201
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
244202
244202
  }
244203
244203
  }
@@ -244246,9 +244246,9 @@ var require_cst_scalar = __commonJS((exports) => {
244246
244246
  default: {
244247
244247
  const indent2 = "indent" in token ? token.indent : -1;
244248
244248
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
244249
- for (const key3 of Object.keys(token))
244250
- if (key3 !== "type" && key3 !== "offset")
244251
- delete token[key3];
244249
+ for (const key2 of Object.keys(token))
244250
+ if (key2 !== "type" && key2 !== "offset")
244251
+ delete token[key2];
244252
244252
  Object.assign(token, { type: type4, indent: indent2, source, end });
244253
244253
  }
244254
244254
  }
@@ -244300,12 +244300,12 @@ var require_cst_stringify = __commonJS((exports) => {
244300
244300
  }
244301
244301
  }
244302
244302
  }
244303
- function stringifyItem({ start: start3, key: key3, sep: sep5, value: value4 }) {
244303
+ function stringifyItem({ start: start3, key: key2, sep: sep5, value: value4 }) {
244304
244304
  let res = "";
244305
244305
  for (const st2 of start3)
244306
244306
  res += st2.source;
244307
- if (key3)
244308
- res += stringifyToken(key3);
244307
+ if (key2)
244308
+ res += stringifyToken(key2);
244309
244309
  if (sep5)
244310
244310
  for (const st2 of sep5)
244311
244311
  res += st2.source;
@@ -245601,7 +245601,7 @@ var require_parser2 = __commonJS((exports) => {
245601
245601
  });
245602
245602
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
245603
245603
  const start4 = getFirstKeyStartProps(it2.start);
245604
- const key3 = it2.key;
245604
+ const key2 = it2.key;
245605
245605
  const sep5 = it2.sep;
245606
245606
  sep5.push(this.sourceToken);
245607
245607
  delete it2.key;
@@ -245610,7 +245610,7 @@ var require_parser2 = __commonJS((exports) => {
245610
245610
  type: "block-map",
245611
245611
  offset: this.offset,
245612
245612
  indent: this.indent,
245613
- items: [{ start: start4, key: key3, sep: sep5 }]
245613
+ items: [{ start: start4, key: key2, sep: sep5 }]
245614
245614
  });
245615
245615
  } else if (start3.length > 0) {
245616
245616
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -245943,7 +245943,7 @@ var require_parser2 = __commonJS((exports) => {
245943
245943
  var require_public_api = __commonJS((exports) => {
245944
245944
  var composer = require_composer();
245945
245945
  var Document = require_Document();
245946
- var errors5 = require_errors3();
245946
+ var errors4 = require_errors3();
245947
245947
  var log = require_log();
245948
245948
  var identity2 = require_identity();
245949
245949
  var lineCounter = require_line_counter();
@@ -245960,8 +245960,8 @@ var require_public_api = __commonJS((exports) => {
245960
245960
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
245961
245961
  if (prettyErrors && lineCounter2)
245962
245962
  for (const doc2 of docs) {
245963
- doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
245964
- doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
245963
+ doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
245964
+ doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
245965
245965
  }
245966
245966
  if (docs.length > 0)
245967
245967
  return docs;
@@ -245976,13 +245976,13 @@ var require_public_api = __commonJS((exports) => {
245976
245976
  if (!doc2)
245977
245977
  doc2 = _doc;
245978
245978
  else if (doc2.options.logLevel !== "silent") {
245979
- doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
245979
+ doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
245980
245980
  break;
245981
245981
  }
245982
245982
  }
245983
245983
  if (prettyErrors && lineCounter2) {
245984
- doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
245985
- doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
245984
+ doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
245985
+ doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
245986
245986
  }
245987
245987
  return doc2;
245988
245988
  }
@@ -263120,7 +263120,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263120
263120
  var package_default = {
263121
263121
  name: "@settlemint/sdk-cli",
263122
263122
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263123
- version: "2.3.3-mainc9668115",
263123
+ version: "2.3.3-mainecccf96f",
263124
263124
  type: "module",
263125
263125
  private: false,
263126
263126
  license: "FSL-1.1-MIT",
@@ -263167,10 +263167,10 @@ var package_default = {
263167
263167
  commander: "14.0.0",
263168
263168
  "@inquirer/confirm": "5.1.12",
263169
263169
  "@inquirer/input": "4.1.12",
263170
- "@inquirer/password": "4.0.14",
263170
+ "@inquirer/password": "4.0.15",
263171
263171
  "@inquirer/select": "4.2.3",
263172
- "@settlemint/sdk-js": "2.3.3-mainc9668115",
263173
- "@settlemint/sdk-utils": "2.3.3-mainc9668115",
263172
+ "@settlemint/sdk-js": "2.3.3-mainecccf96f",
263173
+ "@settlemint/sdk-utils": "2.3.3-mainecccf96f",
263174
263174
  "@types/node": "22.15.21",
263175
263175
  "@types/semver": "7.7.0",
263176
263176
  "@types/which": "3.0.4",
@@ -317889,479 +317889,20 @@ var esm_default4 = createPrompt((config5, done) => {
317889
317889
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
317890
317890
  });
317891
317891
 
317892
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
317893
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
317894
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
317895
- class AbortPromptError2 extends Error {
317896
- name = "AbortPromptError";
317897
- message = "Prompt was aborted";
317898
- constructor(options) {
317899
- super();
317900
- this.cause = options?.cause;
317901
- }
317902
- }
317903
-
317904
- class CancelPromptError2 extends Error {
317905
- name = "CancelPromptError";
317906
- message = "Prompt was canceled";
317907
- }
317908
-
317909
- class ExitPromptError2 extends Error {
317910
- name = "ExitPromptError";
317911
- }
317912
-
317913
- class HookError2 extends Error {
317914
- name = "HookError";
317915
- }
317916
-
317917
- class ValidationError2 extends Error {
317918
- name = "ValidationError";
317919
- }
317920
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
317921
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
317922
-
317923
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
317924
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
317925
-
317926
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
317927
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
317928
- var hookStorage2 = new AsyncLocalStorage2;
317929
- function createStore2(rl) {
317930
- const store = {
317931
- rl,
317932
- hooks: [],
317933
- hooksCleanup: [],
317934
- hooksEffect: [],
317935
- index: 0,
317936
- handleChange() {}
317937
- };
317938
- return store;
317939
- }
317940
- function withHooks2(rl, cb) {
317941
- const store = createStore2(rl);
317942
- return hookStorage2.run(store, () => {
317943
- function cycle(render) {
317944
- store.handleChange = () => {
317945
- store.index = 0;
317946
- render();
317947
- };
317948
- store.handleChange();
317949
- }
317950
- return cb(cycle);
317951
- });
317952
- }
317953
- function getStore2() {
317954
- const store = hookStorage2.getStore();
317955
- if (!store) {
317956
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
317957
- }
317958
- return store;
317959
- }
317960
- function readline3() {
317961
- return getStore2().rl;
317962
- }
317963
- function withUpdates2(fn) {
317964
- const wrapped = (...args) => {
317965
- const store = getStore2();
317966
- let shouldUpdate = false;
317967
- const oldHandleChange = store.handleChange;
317968
- store.handleChange = () => {
317969
- shouldUpdate = true;
317970
- };
317971
- const returnValue = fn(...args);
317972
- if (shouldUpdate) {
317973
- oldHandleChange();
317974
- }
317975
- store.handleChange = oldHandleChange;
317976
- return returnValue;
317977
- };
317978
- return AsyncResource4.bind(wrapped);
317979
- }
317980
- function withPointer2(cb) {
317981
- const store = getStore2();
317982
- const { index: index2 } = store;
317983
- const pointer = {
317984
- get() {
317985
- return store.hooks[index2];
317986
- },
317987
- set(value4) {
317988
- store.hooks[index2] = value4;
317989
- },
317990
- initialized: index2 in store.hooks
317991
- };
317992
- const returnValue = cb(pointer);
317993
- store.index++;
317994
- return returnValue;
317995
- }
317996
- function handleChange2() {
317997
- getStore2().handleChange();
317998
- }
317999
- var effectScheduler2 = {
318000
- queue(cb) {
318001
- const store = getStore2();
318002
- const { index: index2 } = store;
318003
- store.hooksEffect.push(() => {
318004
- store.hooksCleanup[index2]?.();
318005
- const cleanFn = cb(readline3());
318006
- if (cleanFn != null && typeof cleanFn !== "function") {
318007
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
318008
- }
318009
- store.hooksCleanup[index2] = cleanFn;
318010
- });
318011
- },
318012
- run() {
318013
- const store = getStore2();
318014
- withUpdates2(() => {
318015
- store.hooksEffect.forEach((effect) => {
318016
- effect();
318017
- });
318018
- store.hooksEffect.length = 0;
318019
- })();
318020
- },
318021
- clearAll() {
318022
- const store = getStore2();
318023
- store.hooksCleanup.forEach((cleanFn) => {
318024
- cleanFn?.();
318025
- });
318026
- store.hooksEffect.length = 0;
318027
- store.hooksCleanup.length = 0;
318028
- }
318029
- };
318030
-
318031
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
318032
- function useState2(defaultValue) {
318033
- return withPointer2((pointer) => {
318034
- const setState = AsyncResource5.bind(function setState(newValue) {
318035
- if (pointer.get() !== newValue) {
318036
- pointer.set(newValue);
318037
- handleChange2();
318038
- }
318039
- });
318040
- if (pointer.initialized) {
318041
- return [pointer.get(), setState];
318042
- }
318043
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
318044
- pointer.set(value4);
318045
- return [value4, setState];
318046
- });
318047
- }
318048
-
318049
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
318050
- function useEffect2(cb, depArray) {
318051
- withPointer2((pointer) => {
318052
- const oldDeps = pointer.get();
318053
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
318054
- if (hasChanged) {
318055
- effectScheduler2.queue(cb);
318056
- }
318057
- pointer.set(depArray);
318058
- });
318059
- }
318060
-
318061
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
318062
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
318063
- var defaultTheme2 = {
318064
- prefix: {
318065
- idle: import_yoctocolors_cjs4.default.blue("?"),
318066
- done: import_yoctocolors_cjs4.default.green(esm_default.tick)
318067
- },
318068
- spinner: {
318069
- interval: 80,
318070
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
318071
- },
318072
- style: {
318073
- answer: import_yoctocolors_cjs4.default.cyan,
318074
- message: import_yoctocolors_cjs4.default.bold,
318075
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
318076
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
318077
- help: import_yoctocolors_cjs4.default.dim,
318078
- highlight: import_yoctocolors_cjs4.default.cyan,
318079
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
318080
- }
318081
- };
318082
-
318083
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
318084
- function isPlainObject7(value4) {
318085
- if (typeof value4 !== "object" || value4 === null)
318086
- return false;
318087
- let proto = value4;
318088
- while (Object.getPrototypeOf(proto) !== null) {
318089
- proto = Object.getPrototypeOf(proto);
318090
- }
318091
- return Object.getPrototypeOf(value4) === proto;
318092
- }
318093
- function deepMerge3(...objects) {
318094
- const output = {};
318095
- for (const obj of objects) {
318096
- for (const [key2, value4] of Object.entries(obj)) {
318097
- const prevValue = output[key2];
318098
- output[key2] = isPlainObject7(prevValue) && isPlainObject7(value4) ? deepMerge3(prevValue, value4) : value4;
318099
- }
318100
- }
318101
- return output;
318102
- }
318103
- function makeTheme2(...themes) {
318104
- const themesToMerge = [
318105
- defaultTheme2,
318106
- ...themes.filter((theme) => theme != null)
318107
- ];
318108
- return deepMerge3(...themesToMerge);
318109
- }
318110
-
318111
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
318112
- function usePrefix2({ status = "idle", theme }) {
318113
- const [showLoader, setShowLoader] = useState2(false);
318114
- const [tick, setTick] = useState2(0);
318115
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
318116
- useEffect2(() => {
318117
- if (status === "loading") {
318118
- let tickInterval;
318119
- let inc = -1;
318120
- const delayTimeout = setTimeout(AsyncResource6.bind(() => {
318121
- setShowLoader(true);
318122
- tickInterval = setInterval(AsyncResource6.bind(() => {
318123
- inc = inc + 1;
318124
- setTick(inc % spinner2.frames.length);
318125
- }), spinner2.interval);
318126
- }), 300);
318127
- return () => {
318128
- clearTimeout(delayTimeout);
318129
- clearInterval(tickInterval);
318130
- };
318131
- } else {
318132
- setShowLoader(false);
318133
- }
318134
- }, [status]);
318135
- if (showLoader) {
318136
- return spinner2.frames[tick];
318137
- }
318138
- const iconName = status === "loading" ? "idle" : status;
318139
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
318140
- }
318141
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
318142
- function useRef2(val) {
318143
- return useState2({ current: val })[0];
318144
- }
318145
-
318146
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
318147
- function useKeypress2(userHandler) {
318148
- const signal = useRef2(userHandler);
318149
- signal.current = userHandler;
318150
- useEffect2((rl) => {
318151
- let ignore = false;
318152
- const handler = withUpdates2((_input, event) => {
318153
- if (ignore)
318154
- return;
318155
- signal.current(event, rl);
318156
- });
318157
- rl.input.on("keypress", handler);
318158
- return () => {
318159
- ignore = true;
318160
- rl.input.removeListener("keypress", handler);
318161
- };
318162
- }, []);
318163
- }
318164
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
318165
- var import_cli_width2 = __toESM(require_cli_width(), 1);
318166
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
318167
- function breakLines2(content, width) {
318168
- return content.split(`
318169
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
318170
- `).map((str) => str.trimEnd())).join(`
318171
- `);
318172
- }
318173
- function readlineWidth2() {
318174
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
318175
- }
318176
-
318177
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
318178
- var import_mute_stream2 = __toESM(require_lib(), 1);
318179
- import * as readline4 from "node:readline";
318180
- import { AsyncResource as AsyncResource7 } from "node:async_hooks";
318181
-
318182
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
318183
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
318184
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
318185
- var height2 = (content) => content.split(`
318186
- `).length;
318187
- var lastLine2 = (content) => content.split(`
318188
- `).pop() ?? "";
318189
- function cursorDown2(n6) {
318190
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
318191
- }
318192
-
318193
- class ScreenManager2 {
318194
- height = 0;
318195
- extraLinesUnderPrompt = 0;
318196
- cursorPos;
318197
- rl;
318198
- constructor(rl) {
318199
- this.rl = rl;
318200
- this.cursorPos = rl.getCursorPos();
318201
- }
318202
- write(content) {
318203
- this.rl.output.unmute();
318204
- this.rl.output.write(content);
318205
- this.rl.output.mute();
318206
- }
318207
- render(content, bottomContent = "") {
318208
- const promptLine = lastLine2(content);
318209
- const rawPromptLine = stripVTControlCharacters3(promptLine);
318210
- let prompt = rawPromptLine;
318211
- if (this.rl.line.length > 0) {
318212
- prompt = prompt.slice(0, -this.rl.line.length);
318213
- }
318214
- this.rl.setPrompt(prompt);
318215
- this.cursorPos = this.rl.getCursorPos();
318216
- const width = readlineWidth2();
318217
- content = breakLines2(content, width);
318218
- bottomContent = breakLines2(bottomContent, width);
318219
- if (rawPromptLine.length % width === 0) {
318220
- content += `
318221
- `;
318222
- }
318223
- let output = content + (bottomContent ? `
318224
- ` + bottomContent : "");
318225
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
318226
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
318227
- if (bottomContentHeight > 0)
318228
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
318229
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
318230
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
318231
- this.extraLinesUnderPrompt = bottomContentHeight;
318232
- this.height = height2(output);
318233
- }
318234
- checkCursorPos() {
318235
- const cursorPos = this.rl.getCursorPos();
318236
- if (cursorPos.cols !== this.cursorPos.cols) {
318237
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
318238
- this.cursorPos = cursorPos;
318239
- }
318240
- }
318241
- done({ clearContent }) {
318242
- this.rl.setPrompt("");
318243
- let output = cursorDown2(this.extraLinesUnderPrompt);
318244
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
318245
- `;
318246
- output += import_ansi_escapes3.default.cursorShow;
318247
- this.write(output);
318248
- this.rl.close();
318249
- }
318250
- }
318251
-
318252
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
318253
- class PromisePolyfill2 extends Promise {
318254
- static withResolver() {
318255
- let resolve6;
318256
- let reject;
318257
- const promise5 = new Promise((res, rej) => {
318258
- resolve6 = res;
318259
- reject = rej;
318260
- });
318261
- return { promise: promise5, resolve: resolve6, reject };
318262
- }
318263
- }
318264
-
318265
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
318266
- function getCallSites2() {
318267
- const _prepareStackTrace = Error.prepareStackTrace;
318268
- let result = [];
318269
- try {
318270
- Error.prepareStackTrace = (_5, callSites) => {
318271
- const callSitesWithoutCurrent = callSites.slice(1);
318272
- result = callSitesWithoutCurrent;
318273
- return callSitesWithoutCurrent;
318274
- };
318275
- new Error().stack;
318276
- } catch {
318277
- return result;
318278
- }
318279
- Error.prepareStackTrace = _prepareStackTrace;
318280
- return result;
318281
- }
318282
- function createPrompt2(view) {
318283
- const callSites = getCallSites2();
318284
- const prompt = (config5, context = {}) => {
318285
- const { input = process.stdin, signal } = context;
318286
- const cleanups = new Set;
318287
- const output = new import_mute_stream2.default;
318288
- output.pipe(context.output ?? process.stdout);
318289
- const rl = readline4.createInterface({
318290
- terminal: true,
318291
- input,
318292
- output
318293
- });
318294
- const screen = new ScreenManager2(rl);
318295
- const { promise: promise5, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
318296
- const cancel3 = () => reject(new CancelPromptError2);
318297
- if (signal) {
318298
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
318299
- if (signal.aborted) {
318300
- abort();
318301
- return Object.assign(promise5, { cancel: cancel3 });
318302
- }
318303
- signal.addEventListener("abort", abort);
318304
- cleanups.add(() => signal.removeEventListener("abort", abort));
318305
- }
318306
- cleanups.add(onExit((code2, signal2) => {
318307
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
318308
- }));
318309
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
318310
- rl.on("SIGINT", sigint);
318311
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
318312
- const checkCursorPos = () => screen.checkCursorPos();
318313
- rl.input.on("keypress", checkCursorPos);
318314
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
318315
- return withHooks2(rl, (cycle) => {
318316
- const hooksCleanup = AsyncResource7.bind(() => effectScheduler2.clearAll());
318317
- rl.on("close", hooksCleanup);
318318
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
318319
- cycle(() => {
318320
- try {
318321
- const nextView = view(config5, (value4) => {
318322
- setImmediate(() => resolve6(value4));
318323
- });
318324
- if (nextView === undefined) {
318325
- const callerFilename = callSites[1]?.getFileName();
318326
- throw new Error(`Prompt functions must return a string.
318327
- at ${callerFilename}`);
318328
- }
318329
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
318330
- screen.render(content, bottomContent);
318331
- effectScheduler2.run();
318332
- } catch (error42) {
318333
- reject(error42);
318334
- }
318335
- });
318336
- return Object.assign(promise5.then((answer) => {
318337
- effectScheduler2.clearAll();
318338
- return answer;
318339
- }, (error42) => {
318340
- effectScheduler2.clearAll();
318341
- throw error42;
318342
- }).finally(() => {
318343
- cleanups.forEach((cleanup) => cleanup());
318344
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
318345
- output.end();
318346
- }).then(() => promise5), { cancel: cancel3 });
318347
- });
318348
- };
318349
- return prompt;
318350
- }
318351
317892
  // ../../node_modules/@inquirer/password/dist/esm/index.js
318352
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
318353
- var esm_default5 = createPrompt2((config5, done) => {
317893
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
317894
+ var esm_default5 = createPrompt((config5, done) => {
318354
317895
  const { validate: validate5 = () => true } = config5;
318355
- const theme = makeTheme2(config5.theme);
318356
- const [status, setStatus] = useState2("idle");
318357
- const [errorMsg, setError] = useState2();
318358
- const [value4, setValue] = useState2("");
318359
- const prefix = usePrefix2({ status, theme });
318360
- useKeypress2(async (key3, rl) => {
317896
+ const theme = makeTheme(config5.theme);
317897
+ const [status, setStatus] = useState("idle");
317898
+ const [errorMsg, setError] = useState();
317899
+ const [value4, setValue] = useState("");
317900
+ const prefix = usePrefix({ status, theme });
317901
+ useKeypress(async (key2, rl) => {
318361
317902
  if (status !== "idle") {
318362
317903
  return;
318363
317904
  }
318364
- if (isEnterKey2(key3)) {
317905
+ if (isEnterKey(key2)) {
318365
317906
  const answer = value4;
318366
317907
  setStatus("loading");
318367
317908
  const isValid = await validate5(answer);
@@ -318386,7 +317927,7 @@ var esm_default5 = createPrompt2((config5, done) => {
318386
317927
  const maskChar = typeof config5.mask === "string" ? config5.mask : "*";
318387
317928
  formattedValue = maskChar.repeat(value4.length);
318388
317929
  } else if (status !== "done") {
318389
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
317930
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
318390
317931
  }
318391
317932
  if (status === "done") {
318392
317933
  formattedValue = theme.style.answer(formattedValue);
@@ -320084,7 +319625,7 @@ var basename2 = function(p5, extension) {
320084
319625
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
320085
319626
  };
320086
319627
  // ../../node_modules/defu/dist/defu.mjs
320087
- function isPlainObject8(value4) {
319628
+ function isPlainObject7(value4) {
320088
319629
  if (value4 === null || typeof value4 !== "object") {
320089
319630
  return false;
320090
319631
  }
@@ -320101,27 +319642,27 @@ function isPlainObject8(value4) {
320101
319642
  return true;
320102
319643
  }
320103
319644
  function _defu(baseObject, defaults4, namespace = ".", merger) {
320104
- if (!isPlainObject8(defaults4)) {
319645
+ if (!isPlainObject7(defaults4)) {
320105
319646
  return _defu(baseObject, {}, namespace, merger);
320106
319647
  }
320107
319648
  const object5 = Object.assign({}, defaults4);
320108
- for (const key3 in baseObject) {
320109
- if (key3 === "__proto__" || key3 === "constructor") {
319649
+ for (const key2 in baseObject) {
319650
+ if (key2 === "__proto__" || key2 === "constructor") {
320110
319651
  continue;
320111
319652
  }
320112
- const value4 = baseObject[key3];
319653
+ const value4 = baseObject[key2];
320113
319654
  if (value4 === null || value4 === undefined) {
320114
319655
  continue;
320115
319656
  }
320116
- if (merger && merger(object5, key3, value4, namespace)) {
319657
+ if (merger && merger(object5, key2, value4, namespace)) {
320117
319658
  continue;
320118
319659
  }
320119
- if (Array.isArray(value4) && Array.isArray(object5[key3])) {
320120
- object5[key3] = [...value4, ...object5[key3]];
320121
- } else if (isPlainObject8(value4) && isPlainObject8(object5[key3])) {
320122
- object5[key3] = _defu(value4, object5[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
319660
+ if (Array.isArray(value4) && Array.isArray(object5[key2])) {
319661
+ object5[key2] = [...value4, ...object5[key2]];
319662
+ } else if (isPlainObject7(value4) && isPlainObject7(object5[key2])) {
319663
+ object5[key2] = _defu(value4, object5[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
320123
319664
  } else {
320124
- object5[key3] = value4;
319665
+ object5[key2] = value4;
320125
319666
  }
320126
319667
  }
320127
319668
  return object5;
@@ -320130,15 +319671,15 @@ function createDefu(merger) {
320130
319671
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
320131
319672
  }
320132
319673
  var defu = createDefu();
320133
- var defuFn = createDefu((object5, key3, currentValue) => {
320134
- if (object5[key3] !== undefined && typeof currentValue === "function") {
320135
- object5[key3] = currentValue(object5[key3]);
319674
+ var defuFn = createDefu((object5, key2, currentValue) => {
319675
+ if (object5[key2] !== undefined && typeof currentValue === "function") {
319676
+ object5[key2] = currentValue(object5[key2]);
320136
319677
  return true;
320137
319678
  }
320138
319679
  });
320139
- var defuArrayFn = createDefu((object5, key3, currentValue) => {
320140
- if (Array.isArray(object5[key3]) && typeof currentValue === "function") {
320141
- object5[key3] = currentValue(object5[key3]);
319680
+ var defuArrayFn = createDefu((object5, key2, currentValue) => {
319681
+ if (Array.isArray(object5[key2]) && typeof currentValue === "function") {
319682
+ object5[key2] = currentValue(object5[key2]);
320142
319683
  return true;
320143
319684
  }
320144
319685
  });
@@ -323348,11 +322889,11 @@ function cacheDirectory() {
323348
322889
  }
323349
322890
  function normalizeHeaders(headers = {}) {
323350
322891
  const normalized = {};
323351
- for (const [key3, value4] of Object.entries(headers)) {
322892
+ for (const [key2, value4] of Object.entries(headers)) {
323352
322893
  if (!value4) {
323353
322894
  continue;
323354
322895
  }
323355
- normalized[key3.toLowerCase()] = value4;
322896
+ normalized[key2.toLowerCase()] = value4;
323356
322897
  }
323357
322898
  return normalized;
323358
322899
  }
@@ -326072,7 +325613,7 @@ function jsonOutput(data) {
326072
325613
  var composer = require_composer();
326073
325614
  var Document = require_Document();
326074
325615
  var Schema = require_Schema();
326075
- var errors5 = require_errors3();
325616
+ var errors4 = require_errors3();
326076
325617
  var Alias = require_Alias();
326077
325618
  var identity2 = require_identity();
326078
325619
  var Pair = require_Pair();
@@ -326088,9 +325629,9 @@ var visit2 = require_visit();
326088
325629
  var $Composer = composer.Composer;
326089
325630
  var $Document = Document.Document;
326090
325631
  var $Schema = Schema.Schema;
326091
- var $YAMLError = errors5.YAMLError;
326092
- var $YAMLParseError = errors5.YAMLParseError;
326093
- var $YAMLWarning = errors5.YAMLWarning;
325632
+ var $YAMLError = errors4.YAMLError;
325633
+ var $YAMLParseError = errors4.YAMLParseError;
325634
+ var $YAMLWarning = errors4.YAMLWarning;
326094
325635
  var $Alias = Alias.Alias;
326095
325636
  var $isAlias = identity2.isAlias;
326096
325637
  var $isCollection = identity2.isCollection;
@@ -326456,7 +325997,7 @@ async function getServicesAndMapResults({
326456
325997
  const application = await settlemint.application.read(applicationUniqueName);
326457
325998
  const services = await servicesSpinner(settlemint, applicationUniqueName, types4);
326458
325999
  const results = (types4 ?? SERVICE_TYPES).filter((serviceType) => !types4 || types4.includes(serviceType)).map((serviceType) => {
326459
- const [_6, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
326000
+ const [_6, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
326460
326001
  null,
326461
326002
  { plural: serviceType }
326462
326003
  ];
@@ -326697,11 +326238,11 @@ function createCommand4() {
326697
326238
 
326698
326239
  // src/utils/commands/passthrough-options.ts
326699
326240
  function mapPassthroughOptions(options, command) {
326700
- const optionArgs = Object.entries(options).map(([key3, value4]) => {
326241
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
326701
326242
  if (value4 === true) {
326702
- return `--${key3}`;
326243
+ return `--${key2}`;
326703
326244
  }
326704
- return `--${key3}=${value4}`;
326245
+ return `--${key2}=${value4}`;
326705
326246
  });
326706
326247
  return [...optionArgs, ...command.args];
326707
326248
  }
@@ -327833,4 +327374,4 @@ async function sdkCliCommand(argv = process.argv) {
327833
327374
  // src/cli.ts
327834
327375
  sdkCliCommand();
327835
327376
 
327836
- //# debugId=D4ED63BBEA5FF77864756E2164756E21
327377
+ //# debugId=0390FA5542202D7F64756E2164756E21