@settlemint/sdk-cli 2.2.3-pr19ac75c7 → 2.2.3-pr32b747b1

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 -686
  2. package/dist/cli.js.map +3 -17
  3. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -230414,11 +230414,11 @@ var require_visit = __commonJS((exports) => {
230414
230414
  visit2.BREAK = BREAK;
230415
230415
  visit2.SKIP = SKIP;
230416
230416
  visit2.REMOVE = REMOVE;
230417
- function visit_(key3, node, visitor, path6) {
230418
- const ctrl = callVisitor(key3, node, visitor, path6);
230417
+ function visit_(key2, node, visitor, path6) {
230418
+ const ctrl = callVisitor(key2, node, visitor, path6);
230419
230419
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
230420
- replaceNode(key3, path6, ctrl);
230421
- return visit_(key3, ctrl, visitor, path6);
230420
+ replaceNode(key2, path6, ctrl);
230421
+ return visit_(key2, ctrl, visitor, path6);
230422
230422
  }
230423
230423
  if (typeof ctrl !== "symbol") {
230424
230424
  if (identity2.isCollection(node)) {
@@ -230462,11 +230462,11 @@ var require_visit = __commonJS((exports) => {
230462
230462
  visitAsync.BREAK = BREAK;
230463
230463
  visitAsync.SKIP = SKIP;
230464
230464
  visitAsync.REMOVE = REMOVE;
230465
- async function visitAsync_(key3, node, visitor, path6) {
230466
- const ctrl = await callVisitor(key3, node, visitor, path6);
230465
+ async function visitAsync_(key2, node, visitor, path6) {
230466
+ const ctrl = await callVisitor(key2, node, visitor, path6);
230467
230467
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
230468
- replaceNode(key3, path6, ctrl);
230469
- return visitAsync_(key3, ctrl, visitor, path6);
230468
+ replaceNode(key2, path6, ctrl);
230469
+ return visitAsync_(key2, ctrl, visitor, path6);
230470
230470
  }
230471
230471
  if (typeof ctrl !== "symbol") {
230472
230472
  if (identity2.isCollection(node)) {
@@ -230516,27 +230516,27 @@ var require_visit = __commonJS((exports) => {
230516
230516
  }
230517
230517
  return visitor;
230518
230518
  }
230519
- function callVisitor(key3, node, visitor, path6) {
230519
+ function callVisitor(key2, node, visitor, path6) {
230520
230520
  if (typeof visitor === "function")
230521
- return visitor(key3, node, path6);
230521
+ return visitor(key2, node, path6);
230522
230522
  if (identity2.isMap(node))
230523
- return visitor.Map?.(key3, node, path6);
230523
+ return visitor.Map?.(key2, node, path6);
230524
230524
  if (identity2.isSeq(node))
230525
- return visitor.Seq?.(key3, node, path6);
230525
+ return visitor.Seq?.(key2, node, path6);
230526
230526
  if (identity2.isPair(node))
230527
- return visitor.Pair?.(key3, node, path6);
230527
+ return visitor.Pair?.(key2, node, path6);
230528
230528
  if (identity2.isScalar(node))
230529
- return visitor.Scalar?.(key3, node, path6);
230529
+ return visitor.Scalar?.(key2, node, path6);
230530
230530
  if (identity2.isAlias(node))
230531
- return visitor.Alias?.(key3, node, path6);
230531
+ return visitor.Alias?.(key2, node, path6);
230532
230532
  return;
230533
230533
  }
230534
- function replaceNode(key3, path6, node) {
230534
+ function replaceNode(key2, path6, node) {
230535
230535
  const parent = path6[path6.length - 1];
230536
230536
  if (identity2.isCollection(parent)) {
230537
- parent.items[key3] = node;
230537
+ parent.items[key2] = node;
230538
230538
  } else if (identity2.isPair(parent)) {
230539
- if (key3 === "key")
230539
+ if (key2 === "key")
230540
230540
  parent.key = node;
230541
230541
  else
230542
230542
  parent.value = node;
@@ -230768,7 +230768,7 @@ var require_anchors = __commonJS((exports) => {
230768
230768
 
230769
230769
  // ../../node_modules/yaml/dist/doc/applyReviver.js
230770
230770
  var require_applyReviver = __commonJS((exports) => {
230771
- function applyReviver(reviver, obj, key3, val) {
230771
+ function applyReviver(reviver, obj, key2, val) {
230772
230772
  if (val && typeof val === "object") {
230773
230773
  if (Array.isArray(val)) {
230774
230774
  for (let i7 = 0, len = val.length;i7 < len; ++i7) {
@@ -230808,7 +230808,7 @@ var require_applyReviver = __commonJS((exports) => {
230808
230808
  }
230809
230809
  }
230810
230810
  }
230811
- return reviver.call(obj, key3, val);
230811
+ return reviver.call(obj, key2, val);
230812
230812
  }
230813
230813
  exports.applyReviver = applyReviver;
230814
230814
  });
@@ -231126,29 +231126,29 @@ var require_Collection = __commonJS((exports) => {
231126
231126
  if (isEmptyPath(path6))
231127
231127
  this.add(value4);
231128
231128
  else {
231129
- const [key3, ...rest] = path6;
231130
- const node = this.get(key3, true);
231129
+ const [key2, ...rest] = path6;
231130
+ const node = this.get(key2, true);
231131
231131
  if (identity2.isCollection(node))
231132
231132
  node.addIn(rest, value4);
231133
231133
  else if (node === undefined && this.schema)
231134
- this.set(key3, collectionFromPath(this.schema, rest, value4));
231134
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
231135
231135
  else
231136
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
231136
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
231137
231137
  }
231138
231138
  }
231139
231139
  deleteIn(path6) {
231140
- const [key3, ...rest] = path6;
231140
+ const [key2, ...rest] = path6;
231141
231141
  if (rest.length === 0)
231142
- return this.delete(key3);
231143
- const node = this.get(key3, true);
231142
+ return this.delete(key2);
231143
+ const node = this.get(key2, true);
231144
231144
  if (identity2.isCollection(node))
231145
231145
  return node.deleteIn(rest);
231146
231146
  else
231147
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
231147
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
231148
231148
  }
231149
231149
  getIn(path6, keepScalar) {
231150
- const [key3, ...rest] = path6;
231151
- const node = this.get(key3, true);
231150
+ const [key2, ...rest] = path6;
231151
+ const node = this.get(key2, true);
231152
231152
  if (rest.length === 0)
231153
231153
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
231154
231154
  else
@@ -231163,24 +231163,24 @@ var require_Collection = __commonJS((exports) => {
231163
231163
  });
231164
231164
  }
231165
231165
  hasIn(path6) {
231166
- const [key3, ...rest] = path6;
231166
+ const [key2, ...rest] = path6;
231167
231167
  if (rest.length === 0)
231168
- return this.has(key3);
231169
- const node = this.get(key3, true);
231168
+ return this.has(key2);
231169
+ const node = this.get(key2, true);
231170
231170
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
231171
231171
  }
231172
231172
  setIn(path6, value4) {
231173
- const [key3, ...rest] = path6;
231173
+ const [key2, ...rest] = path6;
231174
231174
  if (rest.length === 0) {
231175
- this.set(key3, value4);
231175
+ this.set(key2, value4);
231176
231176
  } else {
231177
- const node = this.get(key3, true);
231177
+ const node = this.get(key2, true);
231178
231178
  if (identity2.isCollection(node))
231179
231179
  node.setIn(rest, value4);
231180
231180
  else if (node === undefined && this.schema)
231181
- this.set(key3, collectionFromPath(this.schema, rest, value4));
231181
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
231182
231182
  else
231183
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
231183
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
231184
231184
  }
231185
231185
  }
231186
231186
  }
@@ -231768,19 +231768,19 @@ var require_stringifyPair = __commonJS((exports) => {
231768
231768
  var Scalar = require_Scalar();
231769
231769
  var stringify3 = require_stringify();
231770
231770
  var stringifyComment = require_stringifyComment();
231771
- function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
231771
+ function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
231772
231772
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
231773
- let keyComment = identity2.isNode(key3) && key3.comment || null;
231773
+ let keyComment = identity2.isNode(key2) && key2.comment || null;
231774
231774
  if (simpleKeys) {
231775
231775
  if (keyComment) {
231776
231776
  throw new Error("With simple keys, key nodes cannot have comments");
231777
231777
  }
231778
- if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
231778
+ if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
231779
231779
  const msg = "With simple keys, collection cannot be used as a key value";
231780
231780
  throw new Error(msg);
231781
231781
  }
231782
231782
  }
231783
- 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"));
231783
+ 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"));
231784
231784
  ctx = Object.assign({}, ctx, {
231785
231785
  allNullValues: false,
231786
231786
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -231788,7 +231788,7 @@ var require_stringifyPair = __commonJS((exports) => {
231788
231788
  });
231789
231789
  let keyCommentDone = false;
231790
231790
  let chompKeep = false;
231791
- let str = stringify3.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
231791
+ let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
231792
231792
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
231793
231793
  if (simpleKeys)
231794
231794
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -231932,7 +231932,7 @@ var require_merge = __commonJS((exports) => {
231932
231932
  }),
231933
231933
  stringify: () => MERGE_KEY
231934
231934
  };
231935
- var isMergeKey = (ctx, key3) => (merge3.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge3.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
231935
+ var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
231936
231936
  function addMergeToJSMap(ctx, map3, value4) {
231937
231937
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
231938
231938
  if (identity2.isSeq(value4))
@@ -231949,14 +231949,14 @@ var require_merge = __commonJS((exports) => {
231949
231949
  if (!identity2.isMap(source))
231950
231950
  throw new Error("Merge sources must be maps or map aliases");
231951
231951
  const srcMap = source.toJSON(null, ctx, Map);
231952
- for (const [key3, value5] of srcMap) {
231952
+ for (const [key2, value5] of srcMap) {
231953
231953
  if (map3 instanceof Map) {
231954
- if (!map3.has(key3))
231955
- map3.set(key3, value5);
231954
+ if (!map3.has(key2))
231955
+ map3.set(key2, value5);
231956
231956
  } else if (map3 instanceof Set) {
231957
- map3.add(key3);
231958
- } else if (!Object.prototype.hasOwnProperty.call(map3, key3)) {
231959
- Object.defineProperty(map3, key3, {
231957
+ map3.add(key2);
231958
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
231959
+ Object.defineProperty(map3, key2, {
231960
231960
  value: value5,
231961
231961
  writable: true,
231962
231962
  enumerable: true,
@@ -231978,19 +231978,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
231978
231978
  var stringify3 = require_stringify();
231979
231979
  var identity2 = require_identity();
231980
231980
  var toJS = require_toJS();
231981
- function addPairToJSMap(ctx, map3, { key: key3, value: value4 }) {
231982
- if (identity2.isNode(key3) && key3.addToJSMap)
231983
- key3.addToJSMap(ctx, map3, value4);
231984
- else if (merge3.isMergeKey(ctx, key3))
231981
+ function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
231982
+ if (identity2.isNode(key2) && key2.addToJSMap)
231983
+ key2.addToJSMap(ctx, map3, value4);
231984
+ else if (merge3.isMergeKey(ctx, key2))
231985
231985
  merge3.addMergeToJSMap(ctx, map3, value4);
231986
231986
  else {
231987
- const jsKey = toJS.toJS(key3, "", ctx);
231987
+ const jsKey = toJS.toJS(key2, "", ctx);
231988
231988
  if (map3 instanceof Map) {
231989
231989
  map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
231990
231990
  } else if (map3 instanceof Set) {
231991
231991
  map3.add(jsKey);
231992
231992
  } else {
231993
- const stringKey = stringifyKey(key3, jsKey, ctx);
231993
+ const stringKey = stringifyKey(key2, jsKey, ctx);
231994
231994
  const jsValue = toJS.toJS(value4, stringKey, ctx);
231995
231995
  if (stringKey in map3)
231996
231996
  Object.defineProperty(map3, stringKey, {
@@ -232005,19 +232005,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
232005
232005
  }
232006
232006
  return map3;
232007
232007
  }
232008
- function stringifyKey(key3, jsKey, ctx) {
232008
+ function stringifyKey(key2, jsKey, ctx) {
232009
232009
  if (jsKey === null)
232010
232010
  return "";
232011
232011
  if (typeof jsKey !== "object")
232012
232012
  return String(jsKey);
232013
- if (identity2.isNode(key3) && ctx?.doc) {
232013
+ if (identity2.isNode(key2) && ctx?.doc) {
232014
232014
  const strCtx = stringify3.createStringifyContext(ctx.doc, {});
232015
232015
  strCtx.anchors = new Set;
232016
232016
  for (const node of ctx.anchors.keys())
232017
232017
  strCtx.anchors.add(node.anchor);
232018
232018
  strCtx.inFlow = true;
232019
232019
  strCtx.inStringifyKey = true;
232020
- const strKey = key3.toString(strCtx);
232020
+ const strKey = key2.toString(strCtx);
232021
232021
  if (!ctx.mapKeyWarned) {
232022
232022
  let jsonStr = JSON.stringify(strKey);
232023
232023
  if (jsonStr.length > 40)
@@ -232038,25 +232038,25 @@ var require_Pair = __commonJS((exports) => {
232038
232038
  var stringifyPair2 = require_stringifyPair();
232039
232039
  var addPairToJSMap = require_addPairToJSMap();
232040
232040
  var identity2 = require_identity();
232041
- function createPair(key3, value4, ctx) {
232042
- const k6 = createNode.createNode(key3, undefined, ctx);
232041
+ function createPair(key2, value4, ctx) {
232042
+ const k6 = createNode.createNode(key2, undefined, ctx);
232043
232043
  const v7 = createNode.createNode(value4, undefined, ctx);
232044
232044
  return new Pair(k6, v7);
232045
232045
  }
232046
232046
 
232047
232047
  class Pair {
232048
- constructor(key3, value4 = null) {
232048
+ constructor(key2, value4 = null) {
232049
232049
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
232050
- this.key = key3;
232050
+ this.key = key2;
232051
232051
  this.value = value4;
232052
232052
  }
232053
232053
  clone(schema) {
232054
- let { key: key3, value: value4 } = this;
232055
- if (identity2.isNode(key3))
232056
- key3 = key3.clone(schema);
232054
+ let { key: key2, value: value4 } = this;
232055
+ if (identity2.isNode(key2))
232056
+ key2 = key2.clone(schema);
232057
232057
  if (identity2.isNode(value4))
232058
232058
  value4 = value4.clone(schema);
232059
- return new Pair(key3, value4);
232059
+ return new Pair(key2, value4);
232060
232060
  }
232061
232061
  toJSON(_6, ctx) {
232062
232062
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -232223,11 +232223,11 @@ var require_YAMLMap = __commonJS((exports) => {
232223
232223
  var identity2 = require_identity();
232224
232224
  var Pair = require_Pair();
232225
232225
  var Scalar = require_Scalar();
232226
- function findPair(items, key3) {
232227
- const k6 = identity2.isScalar(key3) ? key3.value : key3;
232226
+ function findPair(items, key2) {
232227
+ const k6 = identity2.isScalar(key2) ? key2.value : key2;
232228
232228
  for (const it2 of items) {
232229
232229
  if (identity2.isPair(it2)) {
232230
- if (it2.key === key3 || it2.key === k6)
232230
+ if (it2.key === key2 || it2.key === k6)
232231
232231
  return it2;
232232
232232
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
232233
232233
  return it2;
@@ -232247,20 +232247,20 @@ var require_YAMLMap = __commonJS((exports) => {
232247
232247
  static from(schema, obj, ctx) {
232248
232248
  const { keepUndefined, replacer } = ctx;
232249
232249
  const map3 = new this(schema);
232250
- const add = (key3, value4) => {
232250
+ const add = (key2, value4) => {
232251
232251
  if (typeof replacer === "function")
232252
- value4 = replacer.call(obj, key3, value4);
232253
- else if (Array.isArray(replacer) && !replacer.includes(key3))
232252
+ value4 = replacer.call(obj, key2, value4);
232253
+ else if (Array.isArray(replacer) && !replacer.includes(key2))
232254
232254
  return;
232255
232255
  if (value4 !== undefined || keepUndefined)
232256
- map3.items.push(Pair.createPair(key3, value4, ctx));
232256
+ map3.items.push(Pair.createPair(key2, value4, ctx));
232257
232257
  };
232258
232258
  if (obj instanceof Map) {
232259
- for (const [key3, value4] of obj)
232260
- add(key3, value4);
232259
+ for (const [key2, value4] of obj)
232260
+ add(key2, value4);
232261
232261
  } else if (obj && typeof obj === "object") {
232262
- for (const key3 of Object.keys(obj))
232263
- add(key3, obj[key3]);
232262
+ for (const key2 of Object.keys(obj))
232263
+ add(key2, obj[key2]);
232264
232264
  }
232265
232265
  if (typeof schema.sortMapEntries === "function") {
232266
232266
  map3.items.sort(schema.sortMapEntries);
@@ -232294,23 +232294,23 @@ var require_YAMLMap = __commonJS((exports) => {
232294
232294
  this.items.push(_pair);
232295
232295
  }
232296
232296
  }
232297
- delete(key3) {
232298
- const it2 = findPair(this.items, key3);
232297
+ delete(key2) {
232298
+ const it2 = findPair(this.items, key2);
232299
232299
  if (!it2)
232300
232300
  return false;
232301
232301
  const del = this.items.splice(this.items.indexOf(it2), 1);
232302
232302
  return del.length > 0;
232303
232303
  }
232304
- get(key3, keepScalar) {
232305
- const it2 = findPair(this.items, key3);
232304
+ get(key2, keepScalar) {
232305
+ const it2 = findPair(this.items, key2);
232306
232306
  const node = it2?.value;
232307
232307
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
232308
232308
  }
232309
- has(key3) {
232310
- return !!findPair(this.items, key3);
232309
+ has(key2) {
232310
+ return !!findPair(this.items, key2);
232311
232311
  }
232312
- set(key3, value4) {
232313
- this.add(new Pair.Pair(key3, value4), true);
232312
+ set(key2, value4) {
232313
+ this.add(new Pair.Pair(key2, value4), true);
232314
232314
  }
232315
232315
  toJSON(_6, ctx, Type) {
232316
232316
  const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -232381,28 +232381,28 @@ var require_YAMLSeq = __commonJS((exports) => {
232381
232381
  add(value4) {
232382
232382
  this.items.push(value4);
232383
232383
  }
232384
- delete(key3) {
232385
- const idx = asItemIndex(key3);
232384
+ delete(key2) {
232385
+ const idx = asItemIndex(key2);
232386
232386
  if (typeof idx !== "number")
232387
232387
  return false;
232388
232388
  const del = this.items.splice(idx, 1);
232389
232389
  return del.length > 0;
232390
232390
  }
232391
- get(key3, keepScalar) {
232392
- const idx = asItemIndex(key3);
232391
+ get(key2, keepScalar) {
232392
+ const idx = asItemIndex(key2);
232393
232393
  if (typeof idx !== "number")
232394
232394
  return;
232395
232395
  const it2 = this.items[idx];
232396
232396
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
232397
232397
  }
232398
- has(key3) {
232399
- const idx = asItemIndex(key3);
232398
+ has(key2) {
232399
+ const idx = asItemIndex(key2);
232400
232400
  return typeof idx === "number" && idx < this.items.length;
232401
232401
  }
232402
- set(key3, value4) {
232403
- const idx = asItemIndex(key3);
232402
+ set(key2, value4) {
232403
+ const idx = asItemIndex(key2);
232404
232404
  if (typeof idx !== "number")
232405
- throw new Error(`Expected a valid index, not ${key3}.`);
232405
+ throw new Error(`Expected a valid index, not ${key2}.`);
232406
232406
  const prev = this.items[idx];
232407
232407
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
232408
232408
  prev.value = value4;
@@ -232436,8 +232436,8 @@ var require_YAMLSeq = __commonJS((exports) => {
232436
232436
  let i7 = 0;
232437
232437
  for (let it2 of obj) {
232438
232438
  if (typeof replacer === "function") {
232439
- const key3 = obj instanceof Set ? it2 : String(i7++);
232440
- it2 = replacer.call(obj, key3, it2);
232439
+ const key2 = obj instanceof Set ? it2 : String(i7++);
232440
+ it2 = replacer.call(obj, key2, it2);
232441
232441
  }
232442
232442
  seq.items.push(createNode.createNode(it2, undefined, ctx));
232443
232443
  }
@@ -232445,8 +232445,8 @@ var require_YAMLSeq = __commonJS((exports) => {
232445
232445
  return seq;
232446
232446
  }
232447
232447
  }
232448
- function asItemIndex(key3) {
232449
- let idx = identity2.isScalar(key3) ? key3.value : key3;
232448
+ function asItemIndex(key2) {
232449
+ let idx = identity2.isScalar(key2) ? key2.value : key2;
232450
232450
  if (idx && typeof idx === "string")
232451
232451
  idx = Number(idx);
232452
232452
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -232820,25 +232820,25 @@ ${cn.comment}` : item.comment;
232820
232820
  for (let it2 of iterable) {
232821
232821
  if (typeof replacer === "function")
232822
232822
  it2 = replacer.call(iterable, String(i7++), it2);
232823
- let key3, value4;
232823
+ let key2, value4;
232824
232824
  if (Array.isArray(it2)) {
232825
232825
  if (it2.length === 2) {
232826
- key3 = it2[0];
232826
+ key2 = it2[0];
232827
232827
  value4 = it2[1];
232828
232828
  } else
232829
232829
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
232830
232830
  } else if (it2 && it2 instanceof Object) {
232831
232831
  const keys = Object.keys(it2);
232832
232832
  if (keys.length === 1) {
232833
- key3 = keys[0];
232834
- value4 = it2[key3];
232833
+ key2 = keys[0];
232834
+ value4 = it2[key2];
232835
232835
  } else {
232836
232836
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
232837
232837
  }
232838
232838
  } else {
232839
- key3 = it2;
232839
+ key2 = it2;
232840
232840
  }
232841
- pairs2.items.push(Pair.createPair(key3, value4, ctx));
232841
+ pairs2.items.push(Pair.createPair(key2, value4, ctx));
232842
232842
  }
232843
232843
  return pairs2;
232844
232844
  }
@@ -232879,16 +232879,16 @@ var require_omap = __commonJS((exports) => {
232879
232879
  if (ctx?.onCreate)
232880
232880
  ctx.onCreate(map3);
232881
232881
  for (const pair of this.items) {
232882
- let key3, value4;
232882
+ let key2, value4;
232883
232883
  if (identity2.isPair(pair)) {
232884
- key3 = toJS.toJS(pair.key, "", ctx);
232885
- value4 = toJS.toJS(pair.value, key3, ctx);
232884
+ key2 = toJS.toJS(pair.key, "", ctx);
232885
+ value4 = toJS.toJS(pair.value, key2, ctx);
232886
232886
  } else {
232887
- key3 = toJS.toJS(pair, "", ctx);
232887
+ key2 = toJS.toJS(pair, "", ctx);
232888
232888
  }
232889
- if (map3.has(key3))
232889
+ if (map3.has(key2))
232890
232890
  throw new Error("Ordered maps must not include duplicate keys");
232891
- map3.set(key3, value4);
232891
+ map3.set(key2, value4);
232892
232892
  }
232893
232893
  return map3;
232894
232894
  }
@@ -232909,12 +232909,12 @@ var require_omap = __commonJS((exports) => {
232909
232909
  resolve(seq, onError) {
232910
232910
  const pairs$1 = pairs.resolvePairs(seq, onError);
232911
232911
  const seenKeys = [];
232912
- for (const { key: key3 } of pairs$1.items) {
232913
- if (identity2.isScalar(key3)) {
232914
- if (seenKeys.includes(key3.value)) {
232915
- onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
232912
+ for (const { key: key2 } of pairs$1.items) {
232913
+ if (identity2.isScalar(key2)) {
232914
+ if (seenKeys.includes(key2.value)) {
232915
+ onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
232916
232916
  } else {
232917
- seenKeys.push(key3.value);
232917
+ seenKeys.push(key2.value);
232918
232918
  }
232919
232919
  }
232920
232920
  }
@@ -233088,30 +233088,30 @@ var require_set = __commonJS((exports) => {
233088
233088
  super(schema);
233089
233089
  this.tag = YAMLSet.tag;
233090
233090
  }
233091
- add(key3) {
233091
+ add(key2) {
233092
233092
  let pair;
233093
- if (identity2.isPair(key3))
233094
- pair = key3;
233095
- else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
233096
- pair = new Pair.Pair(key3.key, null);
233093
+ if (identity2.isPair(key2))
233094
+ pair = key2;
233095
+ else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
233096
+ pair = new Pair.Pair(key2.key, null);
233097
233097
  else
233098
- pair = new Pair.Pair(key3, null);
233098
+ pair = new Pair.Pair(key2, null);
233099
233099
  const prev = YAMLMap.findPair(this.items, pair.key);
233100
233100
  if (!prev)
233101
233101
  this.items.push(pair);
233102
233102
  }
233103
- get(key3, keepPair) {
233104
- const pair = YAMLMap.findPair(this.items, key3);
233103
+ get(key2, keepPair) {
233104
+ const pair = YAMLMap.findPair(this.items, key2);
233105
233105
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
233106
233106
  }
233107
- set(key3, value4) {
233107
+ set(key2, value4) {
233108
233108
  if (typeof value4 !== "boolean")
233109
233109
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
233110
- const prev = YAMLMap.findPair(this.items, key3);
233110
+ const prev = YAMLMap.findPair(this.items, key2);
233111
233111
  if (prev && !value4) {
233112
233112
  this.items.splice(this.items.indexOf(prev), 1);
233113
233113
  } else if (!prev && value4) {
233114
- this.items.push(new Pair.Pair(key3));
233114
+ this.items.push(new Pair.Pair(key2));
233115
233115
  }
233116
233116
  }
233117
233117
  toJSON(_6, ctx) {
@@ -233346,7 +233346,7 @@ var require_tags = __commonJS((exports) => {
233346
233346
  if (Array.isArray(customTags))
233347
233347
  tags = [];
233348
233348
  else {
233349
- const keys = Array.from(schemas.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
233349
+ const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
233350
233350
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
233351
233351
  }
233352
233352
  }
@@ -233362,7 +233362,7 @@ var require_tags = __commonJS((exports) => {
233362
233362
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
233363
233363
  if (!tagObj) {
233364
233364
  const tagName = JSON.stringify(tag);
233365
- const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
233365
+ const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
233366
233366
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
233367
233367
  }
233368
233368
  if (!tags2.includes(tagObj))
@@ -233597,13 +233597,13 @@ var require_Document = __commonJS((exports) => {
233597
233597
  setAnchors();
233598
233598
  return node;
233599
233599
  }
233600
- createPair(key3, value4, options = {}) {
233601
- const k6 = this.createNode(key3, null, options);
233600
+ createPair(key2, value4, options = {}) {
233601
+ const k6 = this.createNode(key2, null, options);
233602
233602
  const v7 = this.createNode(value4, null, options);
233603
233603
  return new Pair.Pair(k6, v7);
233604
233604
  }
233605
- delete(key3) {
233606
- return assertCollection(this.contents) ? this.contents.delete(key3) : false;
233605
+ delete(key2) {
233606
+ return assertCollection(this.contents) ? this.contents.delete(key2) : false;
233607
233607
  }
233608
233608
  deleteIn(path6) {
233609
233609
  if (Collection.isEmptyPath(path6)) {
@@ -233614,27 +233614,27 @@ var require_Document = __commonJS((exports) => {
233614
233614
  }
233615
233615
  return assertCollection(this.contents) ? this.contents.deleteIn(path6) : false;
233616
233616
  }
233617
- get(key3, keepScalar) {
233618
- return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
233617
+ get(key2, keepScalar) {
233618
+ return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
233619
233619
  }
233620
233620
  getIn(path6, keepScalar) {
233621
233621
  if (Collection.isEmptyPath(path6))
233622
233622
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
233623
233623
  return identity2.isCollection(this.contents) ? this.contents.getIn(path6, keepScalar) : undefined;
233624
233624
  }
233625
- has(key3) {
233626
- return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
233625
+ has(key2) {
233626
+ return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
233627
233627
  }
233628
233628
  hasIn(path6) {
233629
233629
  if (Collection.isEmptyPath(path6))
233630
233630
  return this.contents !== undefined;
233631
233631
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path6) : false;
233632
233632
  }
233633
- set(key3, value4) {
233633
+ set(key2, value4) {
233634
233634
  if (this.contents == null) {
233635
- this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
233635
+ this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
233636
233636
  } else if (assertCollection(this.contents)) {
233637
- this.contents.set(key3, value4);
233637
+ this.contents.set(key2, value4);
233638
233638
  }
233639
233639
  }
233640
233640
  setIn(path6, value4) {
@@ -233918,25 +233918,25 @@ var require_resolve_props = __commonJS((exports) => {
233918
233918
 
233919
233919
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
233920
233920
  var require_util_contains_newline = __commonJS((exports) => {
233921
- function containsNewline(key3) {
233922
- if (!key3)
233921
+ function containsNewline(key2) {
233922
+ if (!key2)
233923
233923
  return null;
233924
- switch (key3.type) {
233924
+ switch (key2.type) {
233925
233925
  case "alias":
233926
233926
  case "scalar":
233927
233927
  case "double-quoted-scalar":
233928
233928
  case "single-quoted-scalar":
233929
- if (key3.source.includes(`
233929
+ if (key2.source.includes(`
233930
233930
  `))
233931
233931
  return true;
233932
- if (key3.end) {
233933
- for (const st2 of key3.end)
233932
+ if (key2.end) {
233933
+ for (const st2 of key2.end)
233934
233934
  if (st2.type === "newline")
233935
233935
  return true;
233936
233936
  }
233937
233937
  return false;
233938
233938
  case "flow-collection":
233939
- for (const it2 of key3.items) {
233939
+ for (const it2 of key2.items) {
233940
233940
  for (const st2 of it2.start)
233941
233941
  if (st2.type === "newline")
233942
233942
  return true;
@@ -234001,10 +234001,10 @@ var require_resolve_block_map = __commonJS((exports) => {
234001
234001
  let offset = bm.offset;
234002
234002
  let commentEnd = null;
234003
234003
  for (const collItem of bm.items) {
234004
- const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
234004
+ const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
234005
234005
  const keyProps = resolveProps.resolveProps(start3, {
234006
234006
  indicator: "explicit-key-ind",
234007
- next: key3 ?? sep3?.[0],
234007
+ next: key2 ?? sep3?.[0],
234008
234008
  offset,
234009
234009
  onError,
234010
234010
  parentIndent: bm.indent,
@@ -234012,10 +234012,10 @@ var require_resolve_block_map = __commonJS((exports) => {
234012
234012
  });
234013
234013
  const implicitKey = !keyProps.found;
234014
234014
  if (implicitKey) {
234015
- if (key3) {
234016
- if (key3.type === "block-seq")
234015
+ if (key2) {
234016
+ if (key2.type === "block-seq")
234017
234017
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
234018
- else if ("indent" in key3 && key3.indent !== bm.indent)
234018
+ else if ("indent" in key2 && key2.indent !== bm.indent)
234019
234019
  onError(offset, "BAD_INDENT", startColMsg);
234020
234020
  }
234021
234021
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -234029,17 +234029,17 @@ var require_resolve_block_map = __commonJS((exports) => {
234029
234029
  }
234030
234030
  continue;
234031
234031
  }
234032
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
234033
- onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
234032
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
234033
+ onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
234034
234034
  }
234035
234035
  } else if (keyProps.found?.indent !== bm.indent) {
234036
234036
  onError(offset, "BAD_INDENT", startColMsg);
234037
234037
  }
234038
234038
  ctx.atKey = true;
234039
234039
  const keyStart = keyProps.end;
234040
- const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
234040
+ const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
234041
234041
  if (ctx.schema.compat)
234042
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
234042
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
234043
234043
  ctx.atKey = false;
234044
234044
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
234045
234045
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -234049,7 +234049,7 @@ var require_resolve_block_map = __commonJS((exports) => {
234049
234049
  offset: keyNode.range[2],
234050
234050
  onError,
234051
234051
  parentIndent: bm.indent,
234052
- startOnNewline: !key3 || key3.type === "block-scalar"
234052
+ startOnNewline: !key2 || key2.type === "block-scalar"
234053
234053
  });
234054
234054
  offset = valueProps.end;
234055
234055
  if (valueProps.found) {
@@ -234205,11 +234205,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
234205
234205
  let offset = fc.offset + fc.start.source.length;
234206
234206
  for (let i7 = 0;i7 < fc.items.length; ++i7) {
234207
234207
  const collItem = fc.items[i7];
234208
- const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
234208
+ const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
234209
234209
  const props = resolveProps.resolveProps(start3, {
234210
234210
  flow: fcName,
234211
234211
  indicator: "explicit-key-ind",
234212
- next: key3 ?? sep3?.[0],
234212
+ next: key2 ?? sep3?.[0],
234213
234213
  offset,
234214
234214
  onError,
234215
234215
  parentIndent: fc.indent,
@@ -234231,8 +234231,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
234231
234231
  offset = props.end;
234232
234232
  continue;
234233
234233
  }
234234
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
234235
- onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
234234
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
234235
+ onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
234236
234236
  }
234237
234237
  if (i7 === 0) {
234238
234238
  if (props.comma)
@@ -234277,8 +234277,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
234277
234277
  } else {
234278
234278
  ctx.atKey = true;
234279
234279
  const keyStart = props.end;
234280
- const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
234281
- if (isBlock(key3))
234280
+ const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
234281
+ if (isBlock(key2))
234282
234282
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
234283
234283
  ctx.atKey = false;
234284
234284
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -235090,7 +235090,7 @@ var require_composer = __commonJS((exports) => {
235090
235090
  var node_process = __require("node:process");
235091
235091
  var directives4 = require_directives2();
235092
235092
  var Document = require_Document();
235093
- var errors3 = require_errors3();
235093
+ var errors2 = require_errors3();
235094
235094
  var identity2 = require_identity();
235095
235095
  var composeDoc = require_compose_doc();
235096
235096
  var resolveEnd = require_resolve_end();
@@ -235141,9 +235141,9 @@ var require_composer = __commonJS((exports) => {
235141
235141
  this.onError = (source, code2, message, warning) => {
235142
235142
  const pos = getErrorPos(source);
235143
235143
  if (warning)
235144
- this.warnings.push(new errors3.YAMLWarning(pos, code2, message));
235144
+ this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
235145
235145
  else
235146
- this.errors.push(new errors3.YAMLParseError(pos, code2, message));
235146
+ this.errors.push(new errors2.YAMLParseError(pos, code2, message));
235147
235147
  };
235148
235148
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
235149
235149
  this.options = options;
@@ -235227,7 +235227,7 @@ ${cb}` : comment;
235227
235227
  break;
235228
235228
  case "error": {
235229
235229
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
235230
- const error5 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
235230
+ const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
235231
235231
  if (this.atDirectives || !this.doc)
235232
235232
  this.errors.push(error5);
235233
235233
  else
@@ -235237,7 +235237,7 @@ ${cb}` : comment;
235237
235237
  case "doc-end": {
235238
235238
  if (!this.doc) {
235239
235239
  const msg = "Unexpected doc-end without preceding document";
235240
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
235240
+ this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
235241
235241
  break;
235242
235242
  }
235243
235243
  this.doc.directives.docEnd = true;
@@ -235252,7 +235252,7 @@ ${end.comment}` : end.comment;
235252
235252
  break;
235253
235253
  }
235254
235254
  default:
235255
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
235255
+ this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
235256
235256
  }
235257
235257
  }
235258
235258
  *end(forceDoc = false, endOffset = -1) {
@@ -235278,7 +235278,7 @@ ${end.comment}` : end.comment;
235278
235278
  var require_cst_scalar = __commonJS((exports) => {
235279
235279
  var resolveBlockScalar = require_resolve_block_scalar();
235280
235280
  var resolveFlowScalar = require_resolve_flow_scalar();
235281
- var errors3 = require_errors3();
235281
+ var errors2 = require_errors3();
235282
235282
  var stringifyString = require_stringifyString();
235283
235283
  function resolveAsScalar(token, strict = true, onError) {
235284
235284
  if (token) {
@@ -235287,7 +235287,7 @@ var require_cst_scalar = __commonJS((exports) => {
235287
235287
  if (onError)
235288
235288
  onError(offset, code2, message);
235289
235289
  else
235290
- throw new errors3.YAMLParseError([offset, offset + 1], code2, message);
235290
+ throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
235291
235291
  };
235292
235292
  switch (token.type) {
235293
235293
  case "scalar":
@@ -235401,9 +235401,9 @@ var require_cst_scalar = __commonJS((exports) => {
235401
235401
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
235402
235402
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
235403
235403
  ` });
235404
- for (const key3 of Object.keys(token))
235405
- if (key3 !== "type" && key3 !== "offset")
235406
- delete token[key3];
235404
+ for (const key2 of Object.keys(token))
235405
+ if (key2 !== "type" && key2 !== "offset")
235406
+ delete token[key2];
235407
235407
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
235408
235408
  }
235409
235409
  }
@@ -235452,9 +235452,9 @@ var require_cst_scalar = __commonJS((exports) => {
235452
235452
  default: {
235453
235453
  const indent2 = "indent" in token ? token.indent : -1;
235454
235454
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
235455
- for (const key3 of Object.keys(token))
235456
- if (key3 !== "type" && key3 !== "offset")
235457
- delete token[key3];
235455
+ for (const key2 of Object.keys(token))
235456
+ if (key2 !== "type" && key2 !== "offset")
235457
+ delete token[key2];
235458
235458
  Object.assign(token, { type: type4, indent: indent2, source, end });
235459
235459
  }
235460
235460
  }
@@ -235506,12 +235506,12 @@ var require_cst_stringify = __commonJS((exports) => {
235506
235506
  }
235507
235507
  }
235508
235508
  }
235509
- function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
235509
+ function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
235510
235510
  let res = "";
235511
235511
  for (const st2 of start3)
235512
235512
  res += st2.source;
235513
- if (key3)
235514
- res += stringifyToken(key3);
235513
+ if (key2)
235514
+ res += stringifyToken(key2);
235515
235515
  if (sep3)
235516
235516
  for (const st2 of sep3)
235517
235517
  res += st2.source;
@@ -236807,7 +236807,7 @@ var require_parser2 = __commonJS((exports) => {
236807
236807
  });
236808
236808
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
236809
236809
  const start4 = getFirstKeyStartProps(it2.start);
236810
- const key3 = it2.key;
236810
+ const key2 = it2.key;
236811
236811
  const sep3 = it2.sep;
236812
236812
  sep3.push(this.sourceToken);
236813
236813
  delete it2.key;
@@ -236816,7 +236816,7 @@ var require_parser2 = __commonJS((exports) => {
236816
236816
  type: "block-map",
236817
236817
  offset: this.offset,
236818
236818
  indent: this.indent,
236819
- items: [{ start: start4, key: key3, sep: sep3 }]
236819
+ items: [{ start: start4, key: key2, sep: sep3 }]
236820
236820
  });
236821
236821
  } else if (start3.length > 0) {
236822
236822
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -237149,7 +237149,7 @@ var require_parser2 = __commonJS((exports) => {
237149
237149
  var require_public_api = __commonJS((exports) => {
237150
237150
  var composer = require_composer();
237151
237151
  var Document = require_Document();
237152
- var errors3 = require_errors3();
237152
+ var errors2 = require_errors3();
237153
237153
  var log = require_log();
237154
237154
  var identity2 = require_identity();
237155
237155
  var lineCounter = require_line_counter();
@@ -237166,8 +237166,8 @@ var require_public_api = __commonJS((exports) => {
237166
237166
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
237167
237167
  if (prettyErrors && lineCounter2)
237168
237168
  for (const doc of docs) {
237169
- doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
237170
- doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
237169
+ doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
237170
+ doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
237171
237171
  }
237172
237172
  if (docs.length > 0)
237173
237173
  return docs;
@@ -237182,13 +237182,13 @@ var require_public_api = __commonJS((exports) => {
237182
237182
  if (!doc)
237183
237183
  doc = _doc;
237184
237184
  else if (doc.options.logLevel !== "silent") {
237185
- doc.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
237185
+ doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
237186
237186
  break;
237187
237187
  }
237188
237188
  }
237189
237189
  if (prettyErrors && lineCounter2) {
237190
- doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
237191
- doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
237190
+ doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
237191
+ doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
237192
237192
  }
237193
237193
  return doc;
237194
237194
  }
@@ -247575,7 +247575,7 @@ function pruneCurrentEnv(currentEnv, env2) {
247575
247575
  var package_default = {
247576
247576
  name: "@settlemint/sdk-cli",
247577
247577
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
247578
- version: "2.2.3-pr19ac75c7",
247578
+ version: "2.2.3-pr32b747b1",
247579
247579
  type: "module",
247580
247580
  private: false,
247581
247581
  license: "FSL-1.1-MIT",
@@ -247622,10 +247622,10 @@ var package_default = {
247622
247622
  commander: "11.1.0",
247623
247623
  "@inquirer/confirm": "5.1.9",
247624
247624
  "@inquirer/input": "4.1.9",
247625
- "@inquirer/password": "4.0.13",
247625
+ "@inquirer/password": "4.0.12",
247626
247626
  "@inquirer/select": "4.2.0",
247627
- "@settlemint/sdk-js": "2.2.3-pr19ac75c7",
247628
- "@settlemint/sdk-utils": "2.2.3-pr19ac75c7",
247627
+ "@settlemint/sdk-js": "2.2.3-pr32b747b1",
247628
+ "@settlemint/sdk-utils": "2.2.3-pr32b747b1",
247629
247629
  "@types/node": "22.15.17",
247630
247630
  "@types/semver": "7.7.0",
247631
247631
  "@types/which": "3.0.4",
@@ -254643,476 +254643,20 @@ var esm_default4 = createPrompt((config3, done) => {
254643
254643
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
254644
254644
  });
254645
254645
 
254646
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
254647
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
254648
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
254649
- class AbortPromptError2 extends Error {
254650
- name = "AbortPromptError";
254651
- message = "Prompt was aborted";
254652
- constructor(options) {
254653
- super();
254654
- this.cause = options?.cause;
254655
- }
254656
- }
254657
-
254658
- class CancelPromptError2 extends Error {
254659
- name = "CancelPromptError";
254660
- message = "Prompt was canceled";
254661
- }
254662
-
254663
- class ExitPromptError2 extends Error {
254664
- name = "ExitPromptError";
254665
- }
254666
-
254667
- class HookError2 extends Error {
254668
- name = "HookError";
254669
- }
254670
-
254671
- class ValidationError2 extends Error {
254672
- name = "ValidationError";
254673
- }
254674
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
254675
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
254676
-
254677
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
254678
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
254679
- var hookStorage2 = new AsyncLocalStorage2;
254680
- function createStore2(rl) {
254681
- const store = {
254682
- rl,
254683
- hooks: [],
254684
- hooksCleanup: [],
254685
- hooksEffect: [],
254686
- index: 0,
254687
- handleChange() {}
254688
- };
254689
- return store;
254690
- }
254691
- function withHooks2(rl, cb) {
254692
- const store = createStore2(rl);
254693
- return hookStorage2.run(store, () => {
254694
- function cycle(render) {
254695
- store.handleChange = () => {
254696
- store.index = 0;
254697
- render();
254698
- };
254699
- store.handleChange();
254700
- }
254701
- return cb(cycle);
254702
- });
254703
- }
254704
- function getStore2() {
254705
- const store = hookStorage2.getStore();
254706
- if (!store) {
254707
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
254708
- }
254709
- return store;
254710
- }
254711
- function readline3() {
254712
- return getStore2().rl;
254713
- }
254714
- function withUpdates2(fn) {
254715
- const wrapped = (...args) => {
254716
- const store = getStore2();
254717
- let shouldUpdate = false;
254718
- const oldHandleChange = store.handleChange;
254719
- store.handleChange = () => {
254720
- shouldUpdate = true;
254721
- };
254722
- const returnValue = fn(...args);
254723
- if (shouldUpdate) {
254724
- oldHandleChange();
254725
- }
254726
- store.handleChange = oldHandleChange;
254727
- return returnValue;
254728
- };
254729
- return AsyncResource4.bind(wrapped);
254730
- }
254731
- function withPointer2(cb) {
254732
- const store = getStore2();
254733
- const { index } = store;
254734
- const pointer = {
254735
- get() {
254736
- return store.hooks[index];
254737
- },
254738
- set(value4) {
254739
- store.hooks[index] = value4;
254740
- },
254741
- initialized: index in store.hooks
254742
- };
254743
- const returnValue = cb(pointer);
254744
- store.index++;
254745
- return returnValue;
254746
- }
254747
- function handleChange2() {
254748
- getStore2().handleChange();
254749
- }
254750
- var effectScheduler2 = {
254751
- queue(cb) {
254752
- const store = getStore2();
254753
- const { index } = store;
254754
- store.hooksEffect.push(() => {
254755
- store.hooksCleanup[index]?.();
254756
- const cleanFn = cb(readline3());
254757
- if (cleanFn != null && typeof cleanFn !== "function") {
254758
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
254759
- }
254760
- store.hooksCleanup[index] = cleanFn;
254761
- });
254762
- },
254763
- run() {
254764
- const store = getStore2();
254765
- withUpdates2(() => {
254766
- store.hooksEffect.forEach((effect) => {
254767
- effect();
254768
- });
254769
- store.hooksEffect.length = 0;
254770
- })();
254771
- },
254772
- clearAll() {
254773
- const store = getStore2();
254774
- store.hooksCleanup.forEach((cleanFn) => {
254775
- cleanFn?.();
254776
- });
254777
- store.hooksEffect.length = 0;
254778
- store.hooksCleanup.length = 0;
254779
- }
254780
- };
254781
-
254782
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
254783
- function useState2(defaultValue) {
254784
- return withPointer2((pointer) => {
254785
- const setFn = (newValue) => {
254786
- if (pointer.get() !== newValue) {
254787
- pointer.set(newValue);
254788
- handleChange2();
254789
- }
254790
- };
254791
- if (pointer.initialized) {
254792
- return [pointer.get(), setFn];
254793
- }
254794
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
254795
- pointer.set(value4);
254796
- return [value4, setFn];
254797
- });
254798
- }
254799
-
254800
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
254801
- function useEffect2(cb, depArray) {
254802
- withPointer2((pointer) => {
254803
- const oldDeps = pointer.get();
254804
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
254805
- if (hasChanged) {
254806
- effectScheduler2.queue(cb);
254807
- }
254808
- pointer.set(depArray);
254809
- });
254810
- }
254811
-
254812
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
254813
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
254814
- var defaultTheme2 = {
254815
- prefix: {
254816
- idle: import_yoctocolors_cjs4.default.blue("?"),
254817
- done: import_yoctocolors_cjs4.default.green(esm_default.tick)
254818
- },
254819
- spinner: {
254820
- interval: 80,
254821
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
254822
- },
254823
- style: {
254824
- answer: import_yoctocolors_cjs4.default.cyan,
254825
- message: import_yoctocolors_cjs4.default.bold,
254826
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
254827
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
254828
- help: import_yoctocolors_cjs4.default.dim,
254829
- highlight: import_yoctocolors_cjs4.default.cyan,
254830
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
254831
- }
254832
- };
254833
-
254834
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
254835
- function isPlainObject3(value4) {
254836
- if (typeof value4 !== "object" || value4 === null)
254837
- return false;
254838
- let proto = value4;
254839
- while (Object.getPrototypeOf(proto) !== null) {
254840
- proto = Object.getPrototypeOf(proto);
254841
- }
254842
- return Object.getPrototypeOf(value4) === proto;
254843
- }
254844
- function deepMerge3(...objects) {
254845
- const output = {};
254846
- for (const obj of objects) {
254847
- for (const [key2, value4] of Object.entries(obj)) {
254848
- const prevValue = output[key2];
254849
- output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
254850
- }
254851
- }
254852
- return output;
254853
- }
254854
- function makeTheme2(...themes) {
254855
- const themesToMerge = [
254856
- defaultTheme2,
254857
- ...themes.filter((theme) => theme != null)
254858
- ];
254859
- return deepMerge3(...themesToMerge);
254860
- }
254861
-
254862
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
254863
- function usePrefix2({ status = "idle", theme }) {
254864
- const [showLoader, setShowLoader] = useState2(false);
254865
- const [tick, setTick] = useState2(0);
254866
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
254867
- useEffect2(() => {
254868
- if (status === "loading") {
254869
- let tickInterval;
254870
- let inc = -1;
254871
- const delayTimeout = setTimeout(AsyncResource5.bind(() => {
254872
- setShowLoader(true);
254873
- tickInterval = setInterval(AsyncResource5.bind(() => {
254874
- inc = inc + 1;
254875
- setTick(inc % spinner2.frames.length);
254876
- }), spinner2.interval);
254877
- }), 300);
254878
- return () => {
254879
- clearTimeout(delayTimeout);
254880
- clearInterval(tickInterval);
254881
- };
254882
- } else {
254883
- setShowLoader(false);
254884
- }
254885
- }, [status]);
254886
- if (showLoader) {
254887
- return spinner2.frames[tick];
254888
- }
254889
- const iconName = status === "loading" ? "idle" : status;
254890
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
254891
- }
254892
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
254893
- function useRef2(val) {
254894
- return useState2({ current: val })[0];
254895
- }
254896
-
254897
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
254898
- function useKeypress2(userHandler) {
254899
- const signal = useRef2(userHandler);
254900
- signal.current = userHandler;
254901
- useEffect2((rl) => {
254902
- let ignore = false;
254903
- const handler = withUpdates2((_input, event) => {
254904
- if (ignore)
254905
- return;
254906
- signal.current(event, rl);
254907
- });
254908
- rl.input.on("keypress", handler);
254909
- return () => {
254910
- ignore = true;
254911
- rl.input.removeListener("keypress", handler);
254912
- };
254913
- }, []);
254914
- }
254915
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
254916
- var import_cli_width2 = __toESM(require_cli_width(), 1);
254917
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
254918
- function breakLines2(content, width) {
254919
- return content.split(`
254920
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
254921
- `).map((str) => str.trimEnd())).join(`
254922
- `);
254923
- }
254924
- function readlineWidth2() {
254925
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
254926
- }
254927
-
254928
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
254929
- var import_mute_stream2 = __toESM(require_lib(), 1);
254930
- import * as readline4 from "node:readline";
254931
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
254932
-
254933
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
254934
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
254935
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
254936
- var height2 = (content) => content.split(`
254937
- `).length;
254938
- var lastLine2 = (content) => content.split(`
254939
- `).pop() ?? "";
254940
- function cursorDown2(n6) {
254941
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
254942
- }
254943
-
254944
- class ScreenManager2 {
254945
- height = 0;
254946
- extraLinesUnderPrompt = 0;
254947
- cursorPos;
254948
- rl;
254949
- constructor(rl) {
254950
- this.rl = rl;
254951
- this.cursorPos = rl.getCursorPos();
254952
- }
254953
- write(content) {
254954
- this.rl.output.unmute();
254955
- this.rl.output.write(content);
254956
- this.rl.output.mute();
254957
- }
254958
- render(content, bottomContent = "") {
254959
- const promptLine = lastLine2(content);
254960
- const rawPromptLine = stripVTControlCharacters3(promptLine);
254961
- let prompt = rawPromptLine;
254962
- if (this.rl.line.length > 0) {
254963
- prompt = prompt.slice(0, -this.rl.line.length);
254964
- }
254965
- this.rl.setPrompt(prompt);
254966
- this.cursorPos = this.rl.getCursorPos();
254967
- const width = readlineWidth2();
254968
- content = breakLines2(content, width);
254969
- bottomContent = breakLines2(bottomContent, width);
254970
- if (rawPromptLine.length % width === 0) {
254971
- content += `
254972
- `;
254973
- }
254974
- let output = content + (bottomContent ? `
254975
- ` + bottomContent : "");
254976
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
254977
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
254978
- if (bottomContentHeight > 0)
254979
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
254980
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
254981
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
254982
- this.extraLinesUnderPrompt = bottomContentHeight;
254983
- this.height = height2(output);
254984
- }
254985
- checkCursorPos() {
254986
- const cursorPos = this.rl.getCursorPos();
254987
- if (cursorPos.cols !== this.cursorPos.cols) {
254988
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
254989
- this.cursorPos = cursorPos;
254990
- }
254991
- }
254992
- done({ clearContent }) {
254993
- this.rl.setPrompt("");
254994
- let output = cursorDown2(this.extraLinesUnderPrompt);
254995
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
254996
- `;
254997
- output += import_ansi_escapes3.default.cursorShow;
254998
- this.write(output);
254999
- this.rl.close();
255000
- }
255001
- }
255002
-
255003
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
255004
- class PromisePolyfill2 extends Promise {
255005
- static withResolver() {
255006
- let resolve6;
255007
- let reject;
255008
- const promise = new Promise((res, rej) => {
255009
- resolve6 = res;
255010
- reject = rej;
255011
- });
255012
- return { promise, resolve: resolve6, reject };
255013
- }
255014
- }
255015
-
255016
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
255017
- function getCallSites2() {
255018
- const _prepareStackTrace = Error.prepareStackTrace;
255019
- let result = [];
255020
- try {
255021
- Error.prepareStackTrace = (_5, callSites) => {
255022
- const callSitesWithoutCurrent = callSites.slice(1);
255023
- result = callSitesWithoutCurrent;
255024
- return callSitesWithoutCurrent;
255025
- };
255026
- new Error().stack;
255027
- } catch {
255028
- return result;
255029
- }
255030
- Error.prepareStackTrace = _prepareStackTrace;
255031
- return result;
255032
- }
255033
- function createPrompt2(view) {
255034
- const callSites = getCallSites2();
255035
- const prompt = (config3, context = {}) => {
255036
- const { input = process.stdin, signal } = context;
255037
- const cleanups = new Set;
255038
- const output = new import_mute_stream2.default;
255039
- output.pipe(context.output ?? process.stdout);
255040
- const rl = readline4.createInterface({
255041
- terminal: true,
255042
- input,
255043
- output
255044
- });
255045
- const screen = new ScreenManager2(rl);
255046
- const { promise, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
255047
- const cancel3 = () => reject(new CancelPromptError2);
255048
- if (signal) {
255049
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
255050
- if (signal.aborted) {
255051
- abort();
255052
- return Object.assign(promise, { cancel: cancel3 });
255053
- }
255054
- signal.addEventListener("abort", abort);
255055
- cleanups.add(() => signal.removeEventListener("abort", abort));
255056
- }
255057
- cleanups.add(onExit((code2, signal2) => {
255058
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
255059
- }));
255060
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
255061
- rl.on("SIGINT", sigint);
255062
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
255063
- const checkCursorPos = () => screen.checkCursorPos();
255064
- rl.input.on("keypress", checkCursorPos);
255065
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
255066
- return withHooks2(rl, (cycle) => {
255067
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
255068
- rl.on("close", hooksCleanup);
255069
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
255070
- cycle(() => {
255071
- try {
255072
- const nextView = view(config3, (value4) => {
255073
- setImmediate(() => resolve6(value4));
255074
- });
255075
- if (nextView === undefined) {
255076
- const callerFilename = callSites[1]?.getFileName();
255077
- throw new Error(`Prompt functions must return a string.
255078
- at ${callerFilename}`);
255079
- }
255080
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
255081
- screen.render(content, bottomContent);
255082
- effectScheduler2.run();
255083
- } catch (error5) {
255084
- reject(error5);
255085
- }
255086
- });
255087
- return Object.assign(promise.then((answer) => {
255088
- effectScheduler2.clearAll();
255089
- return answer;
255090
- }, (error5) => {
255091
- effectScheduler2.clearAll();
255092
- throw error5;
255093
- }).finally(() => {
255094
- cleanups.forEach((cleanup) => cleanup());
255095
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
255096
- output.end();
255097
- }).then(() => promise), { cancel: cancel3 });
255098
- });
255099
- };
255100
- return prompt;
255101
- }
255102
254646
  // ../../node_modules/@inquirer/password/dist/esm/index.js
255103
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
255104
- var esm_default5 = createPrompt2((config3, done) => {
254647
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
254648
+ var esm_default5 = createPrompt((config3, done) => {
255105
254649
  const { validate: validate3 = () => true } = config3;
255106
- const theme = makeTheme2(config3.theme);
255107
- const [status, setStatus] = useState2("idle");
255108
- const [errorMsg, setError] = useState2();
255109
- const [value4, setValue] = useState2("");
255110
- const prefix = usePrefix2({ status, theme });
255111
- useKeypress2(async (key3, rl) => {
254650
+ const theme = makeTheme(config3.theme);
254651
+ const [status, setStatus] = useState("idle");
254652
+ const [errorMsg, setError] = useState();
254653
+ const [value4, setValue] = useState("");
254654
+ const prefix = usePrefix({ status, theme });
254655
+ useKeypress(async (key2, rl) => {
255112
254656
  if (status !== "idle") {
255113
254657
  return;
255114
254658
  }
255115
- if (isEnterKey2(key3)) {
254659
+ if (isEnterKey(key2)) {
255116
254660
  const answer = value4;
255117
254661
  setStatus("loading");
255118
254662
  const isValid2 = await validate3(answer);
@@ -255137,7 +254681,7 @@ var esm_default5 = createPrompt2((config3, done) => {
255137
254681
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
255138
254682
  formattedValue = maskChar.repeat(value4.length);
255139
254683
  } else if (status !== "done") {
255140
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
254684
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
255141
254685
  }
255142
254686
  if (status === "done") {
255143
254687
  formattedValue = theme.style.answer(formattedValue);
@@ -256361,7 +255905,7 @@ var basename2 = function(p6, extension) {
256361
255905
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
256362
255906
  };
256363
255907
  // ../../node_modules/defu/dist/defu.mjs
256364
- function isPlainObject4(value4) {
255908
+ function isPlainObject3(value4) {
256365
255909
  if (value4 === null || typeof value4 !== "object") {
256366
255910
  return false;
256367
255911
  }
@@ -256378,27 +255922,27 @@ function isPlainObject4(value4) {
256378
255922
  return true;
256379
255923
  }
256380
255924
  function _defu(baseObject, defaults2, namespace = ".", merger) {
256381
- if (!isPlainObject4(defaults2)) {
255925
+ if (!isPlainObject3(defaults2)) {
256382
255926
  return _defu(baseObject, {}, namespace, merger);
256383
255927
  }
256384
255928
  const object = Object.assign({}, defaults2);
256385
- for (const key3 in baseObject) {
256386
- if (key3 === "__proto__" || key3 === "constructor") {
255929
+ for (const key2 in baseObject) {
255930
+ if (key2 === "__proto__" || key2 === "constructor") {
256387
255931
  continue;
256388
255932
  }
256389
- const value4 = baseObject[key3];
255933
+ const value4 = baseObject[key2];
256390
255934
  if (value4 === null || value4 === undefined) {
256391
255935
  continue;
256392
255936
  }
256393
- if (merger && merger(object, key3, value4, namespace)) {
255937
+ if (merger && merger(object, key2, value4, namespace)) {
256394
255938
  continue;
256395
255939
  }
256396
- if (Array.isArray(value4) && Array.isArray(object[key3])) {
256397
- object[key3] = [...value4, ...object[key3]];
256398
- } else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
256399
- object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
255940
+ if (Array.isArray(value4) && Array.isArray(object[key2])) {
255941
+ object[key2] = [...value4, ...object[key2]];
255942
+ } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
255943
+ object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
256400
255944
  } else {
256401
- object[key3] = value4;
255945
+ object[key2] = value4;
256402
255946
  }
256403
255947
  }
256404
255948
  return object;
@@ -256407,15 +255951,15 @@ function createDefu(merger) {
256407
255951
  return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
256408
255952
  }
256409
255953
  var defu = createDefu();
256410
- var defuFn = createDefu((object, key3, currentValue) => {
256411
- if (object[key3] !== undefined && typeof currentValue === "function") {
256412
- object[key3] = currentValue(object[key3]);
255954
+ var defuFn = createDefu((object, key2, currentValue) => {
255955
+ if (object[key2] !== undefined && typeof currentValue === "function") {
255956
+ object[key2] = currentValue(object[key2]);
256413
255957
  return true;
256414
255958
  }
256415
255959
  });
256416
- var defuArrayFn = createDefu((object, key3, currentValue) => {
256417
- if (Array.isArray(object[key3]) && typeof currentValue === "function") {
256418
- object[key3] = currentValue(object[key3]);
255960
+ var defuArrayFn = createDefu((object, key2, currentValue) => {
255961
+ if (Array.isArray(object[key2]) && typeof currentValue === "function") {
255962
+ object[key2] = currentValue(object[key2]);
256419
255963
  return true;
256420
255964
  }
256421
255965
  });
@@ -259112,11 +258656,11 @@ function cacheDirectory() {
259112
258656
  }
259113
258657
  function normalizeHeaders(headers = {}) {
259114
258658
  const normalized = {};
259115
- for (const [key3, value4] of Object.entries(headers)) {
258659
+ for (const [key2, value4] of Object.entries(headers)) {
259116
258660
  if (!value4) {
259117
258661
  continue;
259118
258662
  }
259119
- normalized[key3.toLowerCase()] = value4;
258663
+ normalized[key2.toLowerCase()] = value4;
259120
258664
  }
259121
258665
  return normalized;
259122
258666
  }
@@ -261750,7 +261294,7 @@ function jsonOutput(data) {
261750
261294
  var composer = require_composer();
261751
261295
  var Document = require_Document();
261752
261296
  var Schema = require_Schema();
261753
- var errors3 = require_errors3();
261297
+ var errors2 = require_errors3();
261754
261298
  var Alias = require_Alias();
261755
261299
  var identity2 = require_identity();
261756
261300
  var Pair = require_Pair();
@@ -261766,9 +261310,9 @@ var visit2 = require_visit();
261766
261310
  var $Composer = composer.Composer;
261767
261311
  var $Document = Document.Document;
261768
261312
  var $Schema = Schema.Schema;
261769
- var $YAMLError = errors3.YAMLError;
261770
- var $YAMLParseError = errors3.YAMLParseError;
261771
- var $YAMLWarning = errors3.YAMLWarning;
261313
+ var $YAMLError = errors2.YAMLError;
261314
+ var $YAMLParseError = errors2.YAMLParseError;
261315
+ var $YAMLWarning = errors2.YAMLWarning;
261772
261316
  var $Alias = Alias.Alias;
261773
261317
  var $isAlias = identity2.isAlias;
261774
261318
  var $isCollection = identity2.isCollection;
@@ -262118,7 +261662,7 @@ async function getServicesAndMapResults({
262118
261662
  const application = await settlemint.application.read(applicationUniqueName);
262119
261663
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
262120
261664
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
262121
- const [_6, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
261665
+ const [_6, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
262122
261666
  null,
262123
261667
  { plural: serviceType }
262124
261668
  ];
@@ -262353,11 +261897,11 @@ function createCommand4() {
262353
261897
 
262354
261898
  // src/utils/commands/passthrough-options.ts
262355
261899
  function mapPassthroughOptions(options, command) {
262356
- const optionArgs = Object.entries(options).map(([key3, value4]) => {
261900
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
262357
261901
  if (value4 === true) {
262358
- return `--${key3}`;
261902
+ return `--${key2}`;
262359
261903
  }
262360
- return `--${key3}=${value4}`;
261904
+ return `--${key2}=${value4}`;
262361
261905
  });
262362
261906
  return [...optionArgs, ...command.args];
262363
261907
  }
@@ -263396,4 +262940,4 @@ async function sdkCliCommand(argv = process.argv) {
263396
262940
  // src/cli.ts
263397
262941
  sdkCliCommand();
263398
262942
 
263399
- //# debugId=1AA3ACD61A1C91EC64756E2164756E21
262943
+ //# debugId=8C20F1F83153873964756E2164756E21