@base44-preview/cli 0.1.1-pr.556.40ca32e → 0.1.1-pr.558.0e44048

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.
package/dist/cli/index.js CHANGED
@@ -17667,11 +17667,11 @@ var require_lodash8 = __commonJS((exports, module) => {
17667
17667
  index += dir;
17668
17668
  var iterIndex = -1, value = array2[index];
17669
17669
  while (++iterIndex < iterLength) {
17670
- var data = iteratees[iterIndex], iteratee2 = data.iteratee, type2 = data.type, computed = iteratee2(value);
17671
- if (type2 == LAZY_MAP_FLAG) {
17670
+ var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
17671
+ if (type == LAZY_MAP_FLAG) {
17672
17672
  value = computed;
17673
17673
  } else if (!computed) {
17674
- if (type2 == LAZY_FILTER_FLAG) {
17674
+ if (type == LAZY_FILTER_FLAG) {
17675
17675
  continue outer;
17676
17676
  } else {
17677
17677
  break outer;
@@ -19706,16 +19706,16 @@ var require_lodash8 = __commonJS((exports, module) => {
19706
19706
  return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
19707
19707
  }
19708
19708
  function isIndex(value, length) {
19709
- var type2 = typeof value;
19709
+ var type = typeof value;
19710
19710
  length = length == null ? MAX_SAFE_INTEGER : length;
19711
- return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
19711
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
19712
19712
  }
19713
19713
  function isIterateeCall(value, index, object2) {
19714
19714
  if (!isObject4(object2)) {
19715
19715
  return false;
19716
19716
  }
19717
- var type2 = typeof index;
19718
- if (type2 == "number" ? isArrayLike(object2) && isIndex(index, object2.length) : type2 == "string" && (index in object2)) {
19717
+ var type = typeof index;
19718
+ if (type == "number" ? isArrayLike(object2) && isIndex(index, object2.length) : type == "string" && (index in object2)) {
19719
19719
  return eq(object2[index], value);
19720
19720
  }
19721
19721
  return false;
@@ -19724,15 +19724,15 @@ var require_lodash8 = __commonJS((exports, module) => {
19724
19724
  if (isArray(value)) {
19725
19725
  return false;
19726
19726
  }
19727
- var type2 = typeof value;
19728
- if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol(value)) {
19727
+ var type = typeof value;
19728
+ if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
19729
19729
  return true;
19730
19730
  }
19731
19731
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object2 != null && value in Object2(object2);
19732
19732
  }
19733
19733
  function isKeyable(value) {
19734
- var type2 = typeof value;
19735
- return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
19734
+ var type = typeof value;
19735
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
19736
19736
  }
19737
19737
  function isLaziable(func) {
19738
19738
  var funcName = getFuncName(func), other = lodash[funcName];
@@ -20925,8 +20925,8 @@ var require_lodash8 = __commonJS((exports, module) => {
20925
20925
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
20926
20926
  }
20927
20927
  function isObject4(value) {
20928
- var type2 = typeof value;
20929
- return value != null && (type2 == "object" || type2 == "function");
20928
+ var type = typeof value;
20929
+ return value != null && (type == "object" || type == "function");
20930
20930
  }
20931
20931
  function isObjectLike(value) {
20932
20932
  return value != null && typeof value == "object";
@@ -22150,12 +22150,12 @@ __p += '`;
22150
22150
  };
22151
22151
  });
22152
22152
  arrayEach(["filter", "map", "takeWhile"], function(methodName, index) {
22153
- var type2 = index + 1, isFilter = type2 == LAZY_FILTER_FLAG || type2 == LAZY_WHILE_FLAG;
22153
+ var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
22154
22154
  LazyWrapper.prototype[methodName] = function(iteratee2) {
22155
22155
  var result2 = this.clone();
22156
22156
  result2.__iteratees__.push({
22157
22157
  iteratee: getIteratee(iteratee2, 3),
22158
- type: type2
22158
+ type
22159
22159
  });
22160
22160
  result2.__filtered__ = result2.__filtered__ || isFilter;
22161
22161
  return result2;
@@ -22806,8 +22806,8 @@ var require_Node = __commonJS((exports) => {
22806
22806
  var toJS = require_toJS();
22807
22807
 
22808
22808
  class NodeBase {
22809
- constructor(type2) {
22810
- Object.defineProperty(this, identity3.NODE_TYPE, { value: type2 });
22809
+ constructor(type) {
22810
+ Object.defineProperty(this, identity3.NODE_TYPE, { value: type });
22811
22811
  }
22812
22812
  clone() {
22813
22813
  const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
@@ -23074,8 +23074,8 @@ var require_Collection = __commonJS((exports) => {
23074
23074
  var isEmptyPath = (path16) => path16 == null || typeof path16 === "object" && !!path16[Symbol.iterator]().next().done;
23075
23075
 
23076
23076
  class Collection extends Node2.NodeBase {
23077
- constructor(type2, schema10) {
23078
- super(type2);
23077
+ constructor(type, schema10) {
23078
+ super(type);
23079
23079
  Object.defineProperty(this, "schema", {
23080
23080
  value: schema10,
23081
23081
  configurable: true,
@@ -23460,13 +23460,13 @@ ${indent}`) + "'";
23460
23460
  } catch {
23461
23461
  blockEndNewlines = /\n+(?!\n|$)/g;
23462
23462
  }
23463
- function blockString({ comment, type: type2, value }, ctx, onComment, onChompKeep) {
23463
+ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
23464
23464
  const { blockQuote, commentString, lineWidth } = ctx.options;
23465
23465
  if (!blockQuote || /\n[\t ]+$/.test(value)) {
23466
23466
  return quotedString(value, ctx);
23467
23467
  }
23468
23468
  const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? " " : "");
23469
- const literal2 = blockQuote === "literal" ? true : blockQuote === "folded" || type2 === Scalar.Scalar.BLOCK_FOLDED ? false : type2 === Scalar.Scalar.BLOCK_LITERAL ? true : !lineLengthOverLimit(value, lineWidth, indent.length);
23469
+ const literal2 = blockQuote === "literal" ? true : blockQuote === "folded" || type === Scalar.Scalar.BLOCK_FOLDED ? false : type === Scalar.Scalar.BLOCK_LITERAL ? true : !lineLengthOverLimit(value, lineWidth, indent.length);
23470
23470
  if (!value)
23471
23471
  return literal2 ? `|
23472
23472
  ` : `>
@@ -23528,7 +23528,7 @@ ${indent}`) + "'";
23528
23528
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent}`);
23529
23529
  let literalFallback = false;
23530
23530
  const foldOptions = getFoldOptions(ctx, true);
23531
- if (blockQuote !== "folded" && type2 !== Scalar.Scalar.BLOCK_FOLDED) {
23531
+ if (blockQuote !== "folded" && type !== Scalar.Scalar.BLOCK_FOLDED) {
23532
23532
  foldOptions.onOverflow = () => {
23533
23533
  literalFallback = true;
23534
23534
  };
@@ -23543,7 +23543,7 @@ ${indent}${body}`;
23543
23543
  ${indent}${start}${value}${end}`;
23544
23544
  }
23545
23545
  function plainString(item, ctx, onComment, onChompKeep) {
23546
- const { type: type2, value } = item;
23546
+ const { type, value } = item;
23547
23547
  const { actualString, implicitKey, indent, indentStep, inFlow } = ctx;
23548
23548
  if (implicitKey && value.includes(`
23549
23549
  `) || inFlow && /[[\]{},]/.test(value)) {
@@ -23553,7 +23553,7 @@ ${indent}${start}${value}${end}`;
23553
23553
  return implicitKey || inFlow || !value.includes(`
23554
23554
  `) ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
23555
23555
  }
23556
- if (!implicitKey && !inFlow && type2 !== Scalar.Scalar.PLAIN && value.includes(`
23556
+ if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.includes(`
23557
23557
  `)) {
23558
23558
  return blockString(item, ctx, onComment, onChompKeep);
23559
23559
  }
@@ -23578,10 +23578,10 @@ ${indent}`);
23578
23578
  function stringifyString(item, ctx, onComment, onChompKeep) {
23579
23579
  const { implicitKey, inFlow } = ctx;
23580
23580
  const ss = typeof item.value === "string" ? item : Object.assign({}, item, { value: String(item.value) });
23581
- let { type: type2 } = item;
23582
- if (type2 !== Scalar.Scalar.QUOTE_DOUBLE) {
23581
+ let { type } = item;
23582
+ if (type !== Scalar.Scalar.QUOTE_DOUBLE) {
23583
23583
  if (/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(ss.value))
23584
- type2 = Scalar.Scalar.QUOTE_DOUBLE;
23584
+ type = Scalar.Scalar.QUOTE_DOUBLE;
23585
23585
  }
23586
23586
  const _stringify = (_type) => {
23587
23587
  switch (_type) {
@@ -23598,7 +23598,7 @@ ${indent}`);
23598
23598
  return null;
23599
23599
  }
23600
23600
  };
23601
- let res = _stringify(type2);
23601
+ let res = _stringify(type);
23602
23602
  if (res === null) {
23603
23603
  const { defaultKeyType, defaultStringType } = ctx.options;
23604
23604
  const t = implicitKey && defaultKeyType || defaultStringType;
@@ -24715,7 +24715,7 @@ var require_binary2 = __commonJS((exports) => {
24715
24715
  return src;
24716
24716
  }
24717
24717
  },
24718
- stringify({ comment, type: type2, value }, ctx, onComment, onChompKeep) {
24718
+ stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
24719
24719
  if (!value)
24720
24720
  return "";
24721
24721
  const buf = value;
@@ -24730,18 +24730,18 @@ var require_binary2 = __commonJS((exports) => {
24730
24730
  } else {
24731
24731
  throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
24732
24732
  }
24733
- type2 ?? (type2 = Scalar.Scalar.BLOCK_LITERAL);
24734
- if (type2 !== Scalar.Scalar.QUOTE_DOUBLE) {
24733
+ type ?? (type = Scalar.Scalar.BLOCK_LITERAL);
24734
+ if (type !== Scalar.Scalar.QUOTE_DOUBLE) {
24735
24735
  const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
24736
24736
  const n2 = Math.ceil(str.length / lineWidth);
24737
24737
  const lines = new Array(n2);
24738
24738
  for (let i2 = 0, o2 = 0;i2 < n2; ++i2, o2 += lineWidth) {
24739
24739
  lines[i2] = str.substr(o2, lineWidth);
24740
24740
  }
24741
- str = lines.join(type2 === Scalar.Scalar.BLOCK_LITERAL ? `
24741
+ str = lines.join(type === Scalar.Scalar.BLOCK_LITERAL ? `
24742
24742
  ` : " ");
24743
24743
  }
24744
- return stringifyString.stringifyString({ comment, type: type2, value: str }, ctx, onComment, onChompKeep);
24744
+ return stringifyString.stringifyString({ comment, type, value: str }, ctx, onComment, onChompKeep);
24745
24745
  }
24746
24746
  };
24747
24747
  exports.binary = binary;
@@ -26113,8 +26113,8 @@ var require_resolve_end = __commonJS((exports) => {
26113
26113
  let hasSpace = false;
26114
26114
  let sep = "";
26115
26115
  for (const token of end) {
26116
- const { source, type: type2 } = token;
26117
- switch (type2) {
26116
+ const { source, type } = token;
26117
+ switch (type) {
26118
26118
  case "space":
26119
26119
  hasSpace = true;
26120
26120
  break;
@@ -26135,7 +26135,7 @@ var require_resolve_end = __commonJS((exports) => {
26135
26135
  hasSpace = true;
26136
26136
  break;
26137
26137
  default:
26138
- onError(token, "UNEXPECTED_TOKEN", `Unexpected ${type2} at node end`);
26138
+ onError(token, "UNEXPECTED_TOKEN", `Unexpected ${type} at node end`);
26139
26139
  }
26140
26140
  offset += source.length;
26141
26141
  }
@@ -26406,7 +26406,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
26406
26406
  const header2 = parseBlockScalarHeader(scalar, ctx.options.strict, onError);
26407
26407
  if (!header2)
26408
26408
  return { value: "", type: null, comment: "", range: [start, start, start] };
26409
- const type2 = header2.mode === ">" ? Scalar.Scalar.BLOCK_FOLDED : Scalar.Scalar.BLOCK_LITERAL;
26409
+ const type = header2.mode === ">" ? Scalar.Scalar.BLOCK_FOLDED : Scalar.Scalar.BLOCK_LITERAL;
26410
26410
  const lines = scalar.source ? splitLines(scalar.source) : [];
26411
26411
  let chompStart = lines.length;
26412
26412
  for (let i2 = lines.length - 1;i2 >= 0; --i2) {
@@ -26422,7 +26422,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
26422
26422
  let end2 = start + header2.length;
26423
26423
  if (scalar.source)
26424
26424
  end2 += scalar.source.length;
26425
- return { value: value2, type: type2, comment: header2.comment, range: [start, end2, end2] };
26425
+ return { value: value2, type, comment: header2.comment, range: [start, end2, end2] };
26426
26426
  }
26427
26427
  let trimIndent = scalar.indent + header2.indent;
26428
26428
  let offset = scalar.offset + header2.length;
@@ -26470,7 +26470,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
26470
26470
  onError(offset - content.length - (crlf ? 2 : 1), "BAD_INDENT", message);
26471
26471
  indent = "";
26472
26472
  }
26473
- if (type2 === Scalar.Scalar.BLOCK_LITERAL) {
26473
+ if (type === Scalar.Scalar.BLOCK_LITERAL) {
26474
26474
  value += sep + indent.slice(trimIndent) + content;
26475
26475
  sep = `
26476
26476
  `;
@@ -26518,7 +26518,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
26518
26518
  `;
26519
26519
  }
26520
26520
  const end = start + header2.length + scalar.source.length;
26521
- return { value, type: type2, comment: header2.comment, range: [start, end, end] };
26521
+ return { value, type, comment: header2.comment, range: [start, end, end] };
26522
26522
  }
26523
26523
  function parseBlockScalarHeader({ offset, props }, strict, onError) {
26524
26524
  if (props[0].type !== "block-scalar-header") {
@@ -26596,11 +26596,11 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
26596
26596
  var Scalar = require_Scalar();
26597
26597
  var resolveEnd = require_resolve_end();
26598
26598
  function resolveFlowScalar(scalar, strict, onError) {
26599
- const { offset, type: type2, source, end } = scalar;
26599
+ const { offset, type, source, end } = scalar;
26600
26600
  let _type;
26601
26601
  let value;
26602
26602
  const _onError = (rel, code2, msg) => onError(offset + rel, code2, msg);
26603
- switch (type2) {
26603
+ switch (type) {
26604
26604
  case "scalar":
26605
26605
  _type = Scalar.Scalar.PLAIN;
26606
26606
  value = plainValue(source, _onError);
@@ -26614,7 +26614,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
26614
26614
  value = doubleQuotedValue(source, _onError);
26615
26615
  break;
26616
26616
  default:
26617
- onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type2}`);
26617
+ onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type}`);
26618
26618
  return {
26619
26619
  value: "",
26620
26620
  type: null,
@@ -26814,7 +26814,7 @@ var require_compose_scalar = __commonJS((exports) => {
26814
26814
  var resolveBlockScalar = require_resolve_block_scalar();
26815
26815
  var resolveFlowScalar = require_resolve_flow_scalar();
26816
26816
  function composeScalar(ctx, token, tagToken, onError) {
26817
- const { value, type: type2, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
26817
+ const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
26818
26818
  const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
26819
26819
  let tag;
26820
26820
  if (ctx.options.stringKeys && ctx.atKey) {
@@ -26836,8 +26836,8 @@ var require_compose_scalar = __commonJS((exports) => {
26836
26836
  }
26837
26837
  scalar.range = range;
26838
26838
  scalar.source = value;
26839
- if (type2)
26840
- scalar.type = type2;
26839
+ if (type)
26840
+ scalar.type = type;
26841
26841
  if (tagName)
26842
26842
  scalar.tag = tagName;
26843
26843
  if (tag.format)
@@ -27266,8 +27266,8 @@ var require_cst_scalar = __commonJS((exports) => {
27266
27266
  return null;
27267
27267
  }
27268
27268
  function createScalarToken(value, context) {
27269
- const { implicitKey = false, indent, inFlow = false, offset = -1, type: type2 = "PLAIN" } = context;
27270
- const source = stringifyString.stringifyString({ type: type2, value }, {
27269
+ const { implicitKey = false, indent, inFlow = false, offset = -1, type = "PLAIN" } = context;
27270
+ const source = stringifyString.stringifyString({ type, value }, {
27271
27271
  implicitKey,
27272
27272
  indent: indent > 0 ? " ".repeat(indent) : "",
27273
27273
  inFlow,
@@ -27302,29 +27302,29 @@ var require_cst_scalar = __commonJS((exports) => {
27302
27302
  }
27303
27303
  }
27304
27304
  function setScalarValue(token, value, context = {}) {
27305
- let { afterKey = false, implicitKey = false, inFlow = false, type: type2 } = context;
27305
+ let { afterKey = false, implicitKey = false, inFlow = false, type } = context;
27306
27306
  let indent = "indent" in token ? token.indent : null;
27307
27307
  if (afterKey && typeof indent === "number")
27308
27308
  indent += 2;
27309
- if (!type2)
27309
+ if (!type)
27310
27310
  switch (token.type) {
27311
27311
  case "single-quoted-scalar":
27312
- type2 = "QUOTE_SINGLE";
27312
+ type = "QUOTE_SINGLE";
27313
27313
  break;
27314
27314
  case "double-quoted-scalar":
27315
- type2 = "QUOTE_DOUBLE";
27315
+ type = "QUOTE_DOUBLE";
27316
27316
  break;
27317
27317
  case "block-scalar": {
27318
27318
  const header2 = token.props[0];
27319
27319
  if (header2.type !== "block-scalar-header")
27320
27320
  throw new Error("Invalid block scalar header");
27321
- type2 = header2.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
27321
+ type = header2.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
27322
27322
  break;
27323
27323
  }
27324
27324
  default:
27325
- type2 = "PLAIN";
27325
+ type = "PLAIN";
27326
27326
  }
27327
- const source = stringifyString.stringifyString({ type: type2, value }, {
27327
+ const source = stringifyString.stringifyString({ type, value }, {
27328
27328
  implicitKey: implicitKey || indent === null,
27329
27329
  indent: indent !== null && indent > 0 ? " ".repeat(indent) : "",
27330
27330
  inFlow,
@@ -27386,12 +27386,12 @@ var require_cst_scalar = __commonJS((exports) => {
27386
27386
  }
27387
27387
  return false;
27388
27388
  }
27389
- function setFlowScalarValue(token, source, type2) {
27389
+ function setFlowScalarValue(token, source, type) {
27390
27390
  switch (token.type) {
27391
27391
  case "scalar":
27392
27392
  case "double-quoted-scalar":
27393
27393
  case "single-quoted-scalar":
27394
- token.type = type2;
27394
+ token.type = type;
27395
27395
  token.source = source;
27396
27396
  break;
27397
27397
  case "block-scalar": {
@@ -27402,7 +27402,7 @@ var require_cst_scalar = __commonJS((exports) => {
27402
27402
  for (const tok of end)
27403
27403
  tok.offset += oa;
27404
27404
  delete token.props;
27405
- Object.assign(token, { type: type2, source, end });
27405
+ Object.assign(token, { type, source, end });
27406
27406
  break;
27407
27407
  }
27408
27408
  case "block-map":
@@ -27411,7 +27411,7 @@ var require_cst_scalar = __commonJS((exports) => {
27411
27411
  const nl = { type: "newline", offset, indent: token.indent, source: `
27412
27412
  ` };
27413
27413
  delete token.items;
27414
- Object.assign(token, { type: type2, source, end: [nl] });
27414
+ Object.assign(token, { type, source, end: [nl] });
27415
27415
  break;
27416
27416
  }
27417
27417
  default: {
@@ -27420,7 +27420,7 @@ var require_cst_scalar = __commonJS((exports) => {
27420
27420
  for (const key of Object.keys(token))
27421
27421
  if (key !== "type" && key !== "offset")
27422
27422
  delete token[key];
27423
- Object.assign(token, { type: type2, indent, source, end });
27423
+ Object.assign(token, { type, indent, source, end });
27424
27424
  }
27425
27425
  }
27426
27426
  }
@@ -28266,9 +28266,9 @@ var require_parser = __commonJS((exports) => {
28266
28266
  var node_process = __require("process");
28267
28267
  var cst = require_cst();
28268
28268
  var lexer = require_lexer();
28269
- function includesToken(list3, type2) {
28269
+ function includesToken(list3, type) {
28270
28270
  for (let i2 = 0;i2 < list3.length; ++i2)
28271
- if (list3[i2].type === type2)
28271
+ if (list3[i2].type === type)
28272
28272
  return true;
28273
28273
  return false;
28274
28274
  }
@@ -28380,19 +28380,19 @@ var require_parser = __commonJS((exports) => {
28380
28380
  this.offset += source.length;
28381
28381
  return;
28382
28382
  }
28383
- const type2 = cst.tokenType(source);
28384
- if (!type2) {
28383
+ const type = cst.tokenType(source);
28384
+ if (!type) {
28385
28385
  const message = `Not a YAML token: ${source}`;
28386
28386
  yield* this.pop({ type: "error", offset: this.offset, message, source });
28387
28387
  this.offset += source.length;
28388
- } else if (type2 === "scalar") {
28388
+ } else if (type === "scalar") {
28389
28389
  this.atNewLine = false;
28390
28390
  this.atScalar = true;
28391
28391
  this.type = "scalar";
28392
28392
  } else {
28393
- this.type = type2;
28393
+ this.type = type;
28394
28394
  yield* this.step();
28395
- switch (type2) {
28395
+ switch (type) {
28396
28396
  case "newline":
28397
28397
  this.atNewLine = true;
28398
28398
  this.indent = 0;
@@ -28990,7 +28990,7 @@ var require_parser = __commonJS((exports) => {
28990
28990
  }
28991
28991
  }
28992
28992
  }
28993
- flowScalar(type2) {
28993
+ flowScalar(type) {
28994
28994
  if (this.onNewLine) {
28995
28995
  let nl = this.source.indexOf(`
28996
28996
  `) + 1;
@@ -29001,7 +29001,7 @@ var require_parser = __commonJS((exports) => {
29001
29001
  }
29002
29002
  }
29003
29003
  return {
29004
- type: type2,
29004
+ type,
29005
29005
  offset: this.offset,
29006
29006
  indent: this.indent,
29007
29007
  source: this.source
@@ -29886,10 +29886,10 @@ var require_stripIndentTransformer = __commonJS((exports, module) => {
29886
29886
  }
29887
29887
  }
29888
29888
  var stripIndentTransformer = function stripIndentTransformer2() {
29889
- var type2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "initial";
29889
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "initial";
29890
29890
  return {
29891
29891
  onEndResult: function onEndResult(endResult) {
29892
- if (type2 === "initial") {
29892
+ if (type === "initial") {
29893
29893
  var match = endResult.match(/^[^\S\n]*(?=\S)/gm);
29894
29894
  var indent = match && Math.min.apply(Math, _toConsumableArray(match.map(function(el) {
29895
29895
  return el.length;
@@ -29900,10 +29900,10 @@ var require_stripIndentTransformer = __commonJS((exports, module) => {
29900
29900
  }
29901
29901
  return endResult;
29902
29902
  }
29903
- if (type2 === "all") {
29903
+ if (type === "all") {
29904
29904
  return endResult.replace(/^[^\S\n]+/gm, "");
29905
29905
  }
29906
- throw new Error("Unknown type: " + type2);
29906
+ throw new Error("Unknown type: " + type);
29907
29907
  }
29908
29908
  };
29909
29909
  };
@@ -30814,15 +30814,15 @@ function getDocType(doc2) {
30814
30814
  if (!doc2) {
30815
30815
  return;
30816
30816
  }
30817
- const { type: type2 } = doc2;
30818
- if (VALID_OBJECT_DOC_TYPES.has(type2)) {
30819
- return type2;
30817
+ const { type } = doc2;
30818
+ if (VALID_OBJECT_DOC_TYPES.has(type)) {
30819
+ return type;
30820
30820
  }
30821
30821
  }
30822
30822
  function getDocErrorMessage(doc2) {
30823
- const type2 = doc2 === null ? "null" : typeof doc2;
30824
- if (type2 !== "string" && type2 !== "object") {
30825
- return `Unexpected doc '${type2}',
30823
+ const type = doc2 === null ? "null" : typeof doc2;
30824
+ if (type !== "string" && type !== "object") {
30825
+ return `Unexpected doc '${type}',
30826
30826
  Expected it to be 'string' or 'object'.`;
30827
30827
  }
30828
30828
  if (get_doc_type_default(doc2)) {
@@ -30832,7 +30832,7 @@ Expected it to be 'string' or 'object'.`;
30832
30832
  if (objectType !== "[object Object]") {
30833
30833
  return `Unexpected doc '${objectType}'.`;
30834
30834
  }
30835
- const EXPECTED_TYPE_VALUES = disjunctionListFormat([...VALID_OBJECT_DOC_TYPES].map((type22) => `'${type22}'`));
30835
+ const EXPECTED_TYPE_VALUES = disjunctionListFormat([...VALID_OBJECT_DOC_TYPES].map((type2) => `'${type2}'`));
30836
30836
  return `Unexpected doc.type '${doc2.type}'.
30837
30837
  Expected it to be ${EXPECTED_TYPE_VALUES}.`;
30838
30838
  }
@@ -119901,9 +119901,9 @@ function read() {
119901
119901
  }
119902
119902
  return c24;
119903
119903
  }
119904
- function newToken(type2, value) {
119904
+ function newToken(type, value) {
119905
119905
  return {
119906
- type: type2,
119906
+ type,
119907
119907
  value,
119908
119908
  line: line2,
119909
119909
  column
@@ -120154,11 +120154,11 @@ function highlight(text) {
120154
120154
  const defs = getDefs(true);
120155
120155
  let highlighted = "";
120156
120156
  for (const {
120157
- type: type2,
120157
+ type,
120158
120158
  value
120159
120159
  } of tokenize2(text)) {
120160
- if (type2 in defs) {
120161
- highlighted += value.split(NEWLINE$1).map((str) => defs[type2](str)).join(`
120160
+ if (type in defs) {
120161
+ highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join(`
120162
120162
  `);
120163
120163
  } else {
120164
120164
  highlighted += value;
@@ -120766,7 +120766,7 @@ function parseArray(str, ptr, depth, integersAsBigInt) {
120766
120766
  }
120767
120767
  return [res, ptr];
120768
120768
  }
120769
- function peekTable(key2, table, meta3, type2) {
120769
+ function peekTable(key2, table, meta3, type) {
120770
120770
  let t25 = table;
120771
120771
  let m7 = meta3;
120772
120772
  let k9;
@@ -120776,7 +120776,7 @@ function peekTable(key2, table, meta3, type2) {
120776
120776
  if (i5) {
120777
120777
  t25 = hasOwn ? t25[k9] : t25[k9] = {};
120778
120778
  m7 = (state = m7[k9]).c;
120779
- if (type2 === 0 && (state.t === 1 || state.t === 2)) {
120779
+ if (type === 0 && (state.t === 1 || state.t === 2)) {
120780
120780
  return null;
120781
120781
  }
120782
120782
  if (state.t === 2) {
@@ -120795,7 +120795,7 @@ function peekTable(key2, table, meta3, type2) {
120795
120795
  Object.defineProperty(m7, k9, { enumerable: true, configurable: true, writable: true });
120796
120796
  }
120797
120797
  m7[k9] = {
120798
- t: i5 < key2.length - 1 && type2 === 2 ? 3 : type2,
120798
+ t: i5 < key2.length - 1 && type === 2 ? 3 : type,
120799
120799
  d: false,
120800
120800
  i: 0,
120801
120801
  c: {}
@@ -120803,10 +120803,10 @@ function peekTable(key2, table, meta3, type2) {
120803
120803
  }
120804
120804
  }
120805
120805
  state = m7[k9];
120806
- if (state.t !== type2 && !(type2 === 1 && state.t === 3)) {
120806
+ if (state.t !== type && !(type === 1 && state.t === 3)) {
120807
120807
  return null;
120808
120808
  }
120809
- if (type2 === 2) {
120809
+ if (type === 2) {
120810
120810
  if (!state.d) {
120811
120811
  state.d = true;
120812
120812
  t25[k9] = [];
@@ -120818,9 +120818,9 @@ function peekTable(key2, table, meta3, type2) {
120818
120818
  return null;
120819
120819
  }
120820
120820
  state.d = true;
120821
- if (type2 === 1) {
120821
+ if (type === 1) {
120822
120822
  t25 = hasOwn ? t25[k9] : t25[k9] = {};
120823
- } else if (type2 === 0 && hasOwn) {
120823
+ } else if (type === 0 && hasOwn) {
120824
120824
  return null;
120825
120825
  }
120826
120826
  return [k9, t25, state.c];
@@ -120972,8 +120972,8 @@ async function filter({ name: name2, path: file2 }) {
120972
120972
  function getSearcher(stopDirectory) {
120973
120973
  return new FileSearcher(CONFIG_FILE_NAMES, { filter, stopDirectory });
120974
120974
  }
120975
- function formatList(array22, type2 = "and") {
120976
- return array22.length < 3 ? array22.join(` ${type2} `) : `${array22.slice(0, -1).join(", ")}, ${type2} ${array22[array22.length - 1]}`;
120975
+ function formatList(array22, type = "and") {
120976
+ return array22.length < 3 ? array22.join(` ${type} `) : `${array22.slice(0, -1).join(", ")}, ${type} ${array22[array22.length - 1]}`;
120977
120977
  }
120978
120978
  function createError(sym, value, constructor) {
120979
120979
  messages.set(sym, value);
@@ -123502,14 +123502,14 @@ function findSiblingAncestors(startNodeAndAncestors, endNodeAndAncestors, {
123502
123502
  }
123503
123503
  return [resultStartNode, resultEndNode];
123504
123504
  }
123505
- function findNodeAtOffset(node, offset, options8, predicate, ancestors = [], type2) {
123505
+ function findNodeAtOffset(node, offset, options8, predicate, ancestors = [], type) {
123506
123506
  const {
123507
123507
  locStart,
123508
123508
  locEnd
123509
123509
  } = options8;
123510
123510
  const start = locStart(node);
123511
123511
  const end = locEnd(node);
123512
- if (offset > end || offset < start || type2 === "rangeEnd" && offset === start || type2 === "rangeStart" && offset === end) {
123512
+ if (offset > end || offset < start || type === "rangeEnd" && offset === start || type === "rangeStart" && offset === end) {
123513
123513
  return;
123514
123514
  }
123515
123515
  const nodeAndAncestors = [node, ...ancestors];
@@ -123522,7 +123522,7 @@ function findNodeAtOffset(node, offset, options8, predicate, ancestors = [], typ
123522
123522
  getChildren: options8.printer.getCommentChildNodes
123523
123523
  });
123524
123524
  for (const child of childNodes) {
123525
- const childAndAncestors = findNodeAtOffset(child, offset, options8, predicate, nodeAndAncestors, type2);
123525
+ const childAndAncestors = findNodeAtOffset(child, offset, options8, predicate, nodeAndAncestors, type);
123526
123526
  if (childAndAncestors) {
123527
123527
  return childAndAncestors;
123528
123528
  }
@@ -123531,8 +123531,8 @@ function findNodeAtOffset(node, offset, options8, predicate, ancestors = [], typ
123531
123531
  return nodeAndAncestors;
123532
123532
  }
123533
123533
  }
123534
- function isJsSourceElement(type2, parentType) {
123535
- return parentType !== "DeclareExportDeclaration" && type2 !== "TypeParameterDeclaration" && (type2 === "Directive" || type2 === "TypeAlias" || type2 === "TSExportAssignment" || type2.startsWith("Declare") || type2.startsWith("TSDeclare") || type2.endsWith("Statement") || type2.endsWith("Declaration"));
123534
+ function isJsSourceElement(type, parentType) {
123535
+ return parentType !== "DeclareExportDeclaration" && type !== "TypeParameterDeclaration" && (type === "Directive" || type === "TypeAlias" || type === "TSExportAssignment" || type.startsWith("Declare") || type.startsWith("TSDeclare") || type.endsWith("Statement") || type.endsWith("Declaration"));
123536
123536
  }
123537
123537
  function isSourceElement(opts, node, parentNode) {
123538
123538
  if (!node) {
@@ -125232,7 +125232,7 @@ var init_prettier = __esm(() => {
125232
125232
  }
125233
125233
  return false;
125234
125234
  };
125235
- exports.find = (node, type2) => node.nodes.find((node2) => node2.type === type2);
125235
+ exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
125236
125236
  exports.exceedsLimit = (min, max, step = 1, limit) => {
125237
125237
  if (limit === false)
125238
125238
  return false;
@@ -125240,11 +125240,11 @@ var init_prettier = __esm(() => {
125240
125240
  return false;
125241
125241
  return (Number(max) - Number(min)) / Number(step) >= limit;
125242
125242
  };
125243
- exports.escapeNode = (block, n5 = 0, type2) => {
125243
+ exports.escapeNode = (block, n5 = 0, type) => {
125244
125244
  const node = block.nodes[n5];
125245
125245
  if (!node)
125246
125246
  return;
125247
- if (type2 && node.type === type2 || node.type === "open" || node.type === "close") {
125247
+ if (type && node.type === type || node.type === "open" || node.type === "close") {
125248
125248
  if (node.escaped !== true) {
125249
125249
  node.value = "\\" + node.value;
125250
125250
  node.escaped = true;
@@ -126107,10 +126107,10 @@ var init_prettier = __esm(() => {
126107
126107
  push22({ type: "text", value });
126108
126108
  continue;
126109
126109
  }
126110
- const type2 = "close";
126110
+ const type = "close";
126111
126111
  block = stack2.pop();
126112
126112
  block.close = true;
126113
- push22({ type: type2, value });
126113
+ push22({ type, value });
126114
126114
  depth--;
126115
126115
  block = stack2[stack2.length - 1];
126116
126116
  continue;
@@ -126782,8 +126782,8 @@ var init_prettier = __esm(() => {
126782
126782
  }
126783
126783
  return value;
126784
126784
  };
126785
- var syntaxError2 = (type2, char) => {
126786
- return `Missing ${type2}: "${char}" - use "\\\\${char}" to match literal characters`;
126785
+ var syntaxError2 = (type, char) => {
126786
+ return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
126787
126787
  };
126788
126788
  var parse72 = (input, options8) => {
126789
126789
  if (typeof input !== "string") {
@@ -126878,12 +126878,12 @@ var init_prettier = __esm(() => {
126878
126878
  state.start++;
126879
126879
  return true;
126880
126880
  };
126881
- const increment2 = (type2) => {
126882
- state[type2]++;
126883
- stack2.push(type2);
126881
+ const increment2 = (type) => {
126882
+ state[type]++;
126883
+ stack2.push(type);
126884
126884
  };
126885
- const decrement = (type2) => {
126886
- state[type2]--;
126885
+ const decrement = (type) => {
126886
+ state[type]--;
126887
126887
  stack2.pop();
126888
126888
  };
126889
126889
  const push22 = (tok) => {
@@ -126912,14 +126912,14 @@ var init_prettier = __esm(() => {
126912
126912
  tokens.push(tok);
126913
126913
  prev = tok;
126914
126914
  };
126915
- const extglobOpen = (type2, value2) => {
126915
+ const extglobOpen = (type, value2) => {
126916
126916
  const token2 = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
126917
126917
  token2.prev = prev;
126918
126918
  token2.parens = state.parens;
126919
126919
  token2.output = state.output;
126920
126920
  const output = (opts.capture ? "(" : "") + token2.open;
126921
126921
  increment2("parens");
126922
- push22({ type: type2, value: value2, output: state.output ? "" : ONE_CHAR });
126922
+ push22({ type, value: value2, output: state.output ? "" : ONE_CHAR });
126923
126923
  push22({ type: "paren", extglob: true, value: advance(), output });
126924
126924
  extglobs.push(token2);
126925
126925
  };
@@ -128769,13 +128769,13 @@ var init_prettier = __esm(() => {
128769
128769
  current.next = null;
128770
128770
  return current;
128771
128771
  }
128772
- function release2(obj) {
128772
+ function release(obj) {
128773
128773
  tail.next = obj;
128774
128774
  tail = obj;
128775
128775
  }
128776
128776
  return {
128777
128777
  get,
128778
- release: release2
128778
+ release
128779
128779
  };
128780
128780
  }
128781
128781
  module.exports = reusify;
@@ -128816,7 +128816,7 @@ var init_prettier = __esm(() => {
128816
128816
  return;
128817
128817
  for (;queueHead && _running < _concurrency; ) {
128818
128818
  _running++;
128819
- release2();
128819
+ release();
128820
128820
  }
128821
128821
  },
128822
128822
  running,
@@ -128861,12 +128861,12 @@ var init_prettier = __esm(() => {
128861
128861
  self2.paused = false;
128862
128862
  if (queueHead === null) {
128863
128863
  _running++;
128864
- release2();
128864
+ release();
128865
128865
  return;
128866
128866
  }
128867
128867
  for (;queueHead && _running < _concurrency; ) {
128868
128868
  _running++;
128869
- release2();
128869
+ release();
128870
128870
  }
128871
128871
  }
128872
128872
  function idle() {
@@ -128875,7 +128875,7 @@ var init_prettier = __esm(() => {
128875
128875
  function push22(value, done) {
128876
128876
  var current = cache3.get();
128877
128877
  current.context = context;
128878
- current.release = release2;
128878
+ current.release = release;
128879
128879
  current.value = value;
128880
128880
  current.callback = done || noop22;
128881
128881
  current.errorHandler = errorHandler;
@@ -128896,7 +128896,7 @@ var init_prettier = __esm(() => {
128896
128896
  function unshift2(value, done) {
128897
128897
  var current = cache3.get();
128898
128898
  current.context = context;
128899
- current.release = release2;
128899
+ current.release = release;
128900
128900
  current.value = value;
128901
128901
  current.callback = done || noop22;
128902
128902
  current.errorHandler = errorHandler;
@@ -128914,7 +128914,7 @@ var init_prettier = __esm(() => {
128914
128914
  worker.call(context, current.value, current.worked);
128915
128915
  }
128916
128916
  }
128917
- function release2(holder) {
128917
+ function release(holder) {
128918
128918
  if (holder) {
128919
128919
  cache3.release(holder);
128920
128920
  }
@@ -130519,8 +130519,8 @@ var init_prettier = __esm(() => {
130519
130519
  }
130520
130520
  } while (++i5);
130521
130521
  }
130522
- inc(release2, identifier, identifierBase) {
130523
- if (release2.startsWith("pre")) {
130522
+ inc(release, identifier, identifierBase) {
130523
+ if (release.startsWith("pre")) {
130524
130524
  if (!identifier && identifierBase === false) {
130525
130525
  throw new Error("invalid increment argument: identifier is empty");
130526
130526
  }
@@ -130531,7 +130531,7 @@ var init_prettier = __esm(() => {
130531
130531
  }
130532
130532
  }
130533
130533
  }
130534
- switch (release2) {
130534
+ switch (release) {
130535
130535
  case "premajor":
130536
130536
  this.prerelease.length = 0;
130537
130537
  this.patch = 0;
@@ -130618,7 +130618,7 @@ var init_prettier = __esm(() => {
130618
130618
  break;
130619
130619
  }
130620
130620
  default:
130621
- throw new Error(`invalid increment argument: ${release2}`);
130621
+ throw new Error(`invalid increment argument: ${release}`);
130622
130622
  }
130623
130623
  this.raw = this.format();
130624
130624
  if (this.build.length) {
@@ -134742,8 +134742,8 @@ ${codeblock}`, options8);
134742
134742
  if (name2.endsWith(" argument")) {
134743
134743
  message += `${name2} `;
134744
134744
  } else {
134745
- const type2 = name2.includes(".") ? "property" : "argument";
134746
- message += `"${name2}" ${type2} `;
134745
+ const type = name2.includes(".") ? "property" : "argument";
134746
+ message += `"${name2}" ${type} `;
134747
134747
  }
134748
134748
  message += "must be ";
134749
134749
  const types = [];
@@ -134825,8 +134825,8 @@ ${codeblock}`, options8);
134825
134825
  if (inspected.length > 128) {
134826
134826
  inspected = `${inspected.slice(0, 128)}...`;
134827
134827
  }
134828
- const type2 = name2.includes(".") ? "property" : "argument";
134829
- return `The ${type2} '${name2}' ${reason}. Received ${inspected}`;
134828
+ const type = name2.includes(".") ? "property" : "argument";
134829
+ return `The ${type} '${name2}' ${reason}. Received ${inspected}`;
134830
134830
  }, TypeError);
134831
134831
  captureLargerStackTrace = hideStackFrames(function(error48) {
134832
134832
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();
@@ -136507,17 +136507,17 @@ var require_doc = __commonJS((exports, module) => {
136507
136507
  if (!doc2) {
136508
136508
  return;
136509
136509
  }
136510
- const { type: type2 } = doc2;
136511
- if (VALID_OBJECT_DOC_TYPES2.has(type2)) {
136512
- return type2;
136510
+ const { type } = doc2;
136511
+ if (VALID_OBJECT_DOC_TYPES2.has(type)) {
136512
+ return type;
136513
136513
  }
136514
136514
  }
136515
136515
  var get_doc_type_default2 = getDocType2;
136516
136516
  var disjunctionListFormat2 = (list3) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(list3);
136517
136517
  function getDocErrorMessage2(doc2) {
136518
- const type2 = doc2 === null ? "null" : typeof doc2;
136519
- if (type2 !== "string" && type2 !== "object") {
136520
- return `Unexpected doc '${type2}',
136518
+ const type = doc2 === null ? "null" : typeof doc2;
136519
+ if (type !== "string" && type !== "object") {
136520
+ return `Unexpected doc '${type}',
136521
136521
  Expected it to be 'string' or 'object'.`;
136522
136522
  }
136523
136523
  if (get_doc_type_default2(doc2)) {
@@ -136527,7 +136527,7 @@ Expected it to be 'string' or 'object'.`;
136527
136527
  if (objectType !== "[object Object]") {
136528
136528
  return `Unexpected doc '${objectType}'.`;
136529
136529
  }
136530
- const EXPECTED_TYPE_VALUES = disjunctionListFormat2([...VALID_OBJECT_DOC_TYPES2].map((type22) => `'${type22}'`));
136530
+ const EXPECTED_TYPE_VALUES = disjunctionListFormat2([...VALID_OBJECT_DOC_TYPES2].map((type2) => `'${type2}'`));
136531
136531
  return `Unexpected doc.type '${doc2.type}'.
136532
136532
  Expected it to be ${EXPECTED_TYPE_VALUES}.`;
136533
136533
  }
@@ -138613,12 +138613,12 @@ var require_schema5 = __commonJS((exports, module) => {
138613
138613
  fallback: []
138614
138614
  }
138615
138615
  }, index, length;
138616
- function collectType(type2) {
138617
- if (type2.multi) {
138618
- result.multi[type2.kind].push(type2);
138619
- result.multi["fallback"].push(type2);
138616
+ function collectType(type) {
138617
+ if (type.multi) {
138618
+ result.multi[type.kind].push(type);
138619
+ result.multi["fallback"].push(type);
138620
138620
  } else {
138621
- result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
138621
+ result[type.kind][type.tag] = result["fallback"][type.tag] = type;
138622
138622
  }
138623
138623
  }
138624
138624
  for (index = 0, length = arguments.length;index < length; index += 1) {
@@ -138644,19 +138644,19 @@ var require_schema5 = __commonJS((exports, module) => {
138644
138644
  } else {
138645
138645
  throw new YAMLException("Schema.extend argument should be a Type, [ Type ], " + "or a schema definition ({ implicit: [...], explicit: [...] })");
138646
138646
  }
138647
- implicit.forEach(function(type2) {
138648
- if (!(type2 instanceof Type)) {
138647
+ implicit.forEach(function(type) {
138648
+ if (!(type instanceof Type)) {
138649
138649
  throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
138650
138650
  }
138651
- if (type2.loadKind && type2.loadKind !== "scalar") {
138651
+ if (type.loadKind && type.loadKind !== "scalar") {
138652
138652
  throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
138653
138653
  }
138654
- if (type2.multi) {
138654
+ if (type.multi) {
138655
138655
  throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
138656
138656
  }
138657
138657
  });
138658
- explicit.forEach(function(type2) {
138659
- if (!(type2 instanceof Type)) {
138658
+ explicit.forEach(function(type) {
138659
+ if (!(type instanceof Type)) {
138660
138660
  throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
138661
138661
  }
138662
138662
  });
@@ -140213,7 +140213,7 @@ var require_loader2 = __commonJS((exports, module) => {
140213
140213
  return true;
140214
140214
  }
140215
140215
  function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
140216
- var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type2, flowIndent, blockIndent;
140216
+ var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type, flowIndent, blockIndent;
140217
140217
  if (state.listener !== null) {
140218
140218
  state.listener("open", state);
140219
140219
  }
@@ -140295,10 +140295,10 @@ var require_loader2 = __commonJS((exports, module) => {
140295
140295
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
140296
140296
  }
140297
140297
  for (typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
140298
- type2 = state.implicitTypes[typeIndex];
140299
- if (type2.resolve(state.result)) {
140300
- state.result = type2.construct(state.result);
140301
- state.tag = type2.tag;
140298
+ type = state.implicitTypes[typeIndex];
140299
+ if (type.resolve(state.result)) {
140300
+ state.result = type.construct(state.result);
140301
+ state.tag = type.tag;
140302
140302
  if (state.anchor !== null) {
140303
140303
  state.anchorMap[state.anchor] = state.result;
140304
140304
  }
@@ -140307,27 +140307,27 @@ var require_loader2 = __commonJS((exports, module) => {
140307
140307
  }
140308
140308
  } else if (state.tag !== "!") {
140309
140309
  if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
140310
- type2 = state.typeMap[state.kind || "fallback"][state.tag];
140310
+ type = state.typeMap[state.kind || "fallback"][state.tag];
140311
140311
  } else {
140312
- type2 = null;
140312
+ type = null;
140313
140313
  typeList = state.typeMap.multi[state.kind || "fallback"];
140314
140314
  for (typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
140315
140315
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
140316
- type2 = typeList[typeIndex];
140316
+ type = typeList[typeIndex];
140317
140317
  break;
140318
140318
  }
140319
140319
  }
140320
140320
  }
140321
- if (!type2) {
140321
+ if (!type) {
140322
140322
  throwError(state, "unknown tag !<" + state.tag + ">");
140323
140323
  }
140324
- if (state.result !== null && type2.kind !== state.kind) {
140325
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
140324
+ if (state.result !== null && type.kind !== state.kind) {
140325
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
140326
140326
  }
140327
- if (!type2.resolve(state.result, state.tag)) {
140327
+ if (!type.resolve(state.result, state.tag)) {
140328
140328
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
140329
140329
  } else {
140330
- state.result = type2.construct(state.result, state.tag);
140330
+ state.result = type.construct(state.result, state.tag);
140331
140331
  if (state.anchor !== null) {
140332
140332
  state.anchorMap[state.anchor] = state.result;
140333
140333
  }
@@ -140535,7 +140535,7 @@ var require_dumper2 = __commonJS((exports, module) => {
140535
140535
  ];
140536
140536
  var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
140537
140537
  function compileStyleMap(schema10, map2) {
140538
- var result, keys, index, length, tag, style, type2;
140538
+ var result, keys, index, length, tag, style, type;
140539
140539
  if (map2 === null)
140540
140540
  return {};
140541
140541
  result = {};
@@ -140546,9 +140546,9 @@ var require_dumper2 = __commonJS((exports, module) => {
140546
140546
  if (tag.slice(0, 2) === "!!") {
140547
140547
  tag = "tag:yaml.org,2002:" + tag.slice(2);
140548
140548
  }
140549
- type2 = schema10.compiledTypeMap["fallback"][tag];
140550
- if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
140551
- style = type2.styleAliases[style];
140549
+ type = schema10.compiledTypeMap["fallback"][tag];
140550
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
140551
+ style = type.styleAliases[style];
140552
140552
  }
140553
140553
  result[tag] = style;
140554
140554
  }
@@ -140619,10 +140619,10 @@ var require_dumper2 = __commonJS((exports, module) => {
140619
140619
  ` + common2.repeat(" ", state.indent * level);
140620
140620
  }
140621
140621
  function testImplicitResolving(state, str) {
140622
- var index, length, type2;
140622
+ var index, length, type;
140623
140623
  for (index = 0, length = state.implicitTypes.length;index < length; index += 1) {
140624
- type2 = state.implicitTypes[index];
140625
- if (type2.resolve(str)) {
140624
+ type = state.implicitTypes[index];
140625
+ if (type.resolve(str)) {
140626
140626
  return true;
140627
140627
  }
140628
140628
  }
@@ -140944,28 +140944,28 @@ var require_dumper2 = __commonJS((exports, module) => {
140944
140944
  state.dump = _result || "{}";
140945
140945
  }
140946
140946
  function detectType(state, object2, explicit) {
140947
- var _result, typeList, index, length, type2, style;
140947
+ var _result, typeList, index, length, type, style;
140948
140948
  typeList = explicit ? state.explicitTypes : state.implicitTypes;
140949
140949
  for (index = 0, length = typeList.length;index < length; index += 1) {
140950
- type2 = typeList[index];
140951
- if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object2 === "object" && object2 instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object2))) {
140950
+ type = typeList[index];
140951
+ if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object2 === "object" && object2 instanceof type.instanceOf) && (!type.predicate || type.predicate(object2))) {
140952
140952
  if (explicit) {
140953
- if (type2.multi && type2.representName) {
140954
- state.tag = type2.representName(object2);
140953
+ if (type.multi && type.representName) {
140954
+ state.tag = type.representName(object2);
140955
140955
  } else {
140956
- state.tag = type2.tag;
140956
+ state.tag = type.tag;
140957
140957
  }
140958
140958
  } else {
140959
140959
  state.tag = "?";
140960
140960
  }
140961
- if (type2.represent) {
140962
- style = state.styleMap[type2.tag] || type2.defaultStyle;
140963
- if (_toString.call(type2.represent) === "[object Function]") {
140964
- _result = type2.represent(object2, style);
140965
- } else if (_hasOwnProperty.call(type2.represent, style)) {
140966
- _result = type2.represent[style](object2, style);
140961
+ if (type.represent) {
140962
+ style = state.styleMap[type.tag] || type.defaultStyle;
140963
+ if (_toString.call(type.represent) === "[object Function]") {
140964
+ _result = type.represent(object2, style);
140965
+ } else if (_hasOwnProperty.call(type.represent, style)) {
140966
+ _result = type.represent[style](object2, style);
140967
140967
  } else {
140968
- throw new YAMLException("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
140968
+ throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
140969
140969
  }
140970
140970
  state.dump = _result;
140971
140971
  }
@@ -140980,13 +140980,13 @@ var require_dumper2 = __commonJS((exports, module) => {
140980
140980
  if (!detectType(state, object2, false)) {
140981
140981
  detectType(state, object2, true);
140982
140982
  }
140983
- var type2 = _toString.call(state.dump);
140983
+ var type = _toString.call(state.dump);
140984
140984
  var inblock = block;
140985
140985
  var tagStr;
140986
140986
  if (block) {
140987
140987
  block = state.flowLevel < 0 || state.flowLevel > level;
140988
140988
  }
140989
- var objectOrArray = type2 === "[object Object]" || type2 === "[object Array]", duplicateIndex, duplicate;
140989
+ var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
140990
140990
  if (objectOrArray) {
140991
140991
  duplicateIndex = state.duplicates.indexOf(object2);
140992
140992
  duplicate = duplicateIndex !== -1;
@@ -141000,7 +141000,7 @@ var require_dumper2 = __commonJS((exports, module) => {
141000
141000
  if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
141001
141001
  state.usedDuplicates[duplicateIndex] = true;
141002
141002
  }
141003
- if (type2 === "[object Object]") {
141003
+ if (type === "[object Object]") {
141004
141004
  if (block && Object.keys(state.dump).length !== 0) {
141005
141005
  writeBlockMapping(state, level, state.dump, compact);
141006
141006
  if (duplicate) {
@@ -141012,7 +141012,7 @@ var require_dumper2 = __commonJS((exports, module) => {
141012
141012
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
141013
141013
  }
141014
141014
  }
141015
- } else if (type2 === "[object Array]") {
141015
+ } else if (type === "[object Array]") {
141016
141016
  if (block && state.dump.length !== 0) {
141017
141017
  if (state.noArrayIndent && !isblockseq && level > 0) {
141018
141018
  writeBlockSequence(state, level - 1, state.dump, compact);
@@ -141028,16 +141028,16 @@ var require_dumper2 = __commonJS((exports, module) => {
141028
141028
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
141029
141029
  }
141030
141030
  }
141031
- } else if (type2 === "[object String]") {
141031
+ } else if (type === "[object String]") {
141032
141032
  if (state.tag !== "?") {
141033
141033
  writeScalar(state, state.dump, level, iskey, inblock);
141034
141034
  }
141035
- } else if (type2 === "[object Undefined]") {
141035
+ } else if (type === "[object Undefined]") {
141036
141036
  return false;
141037
141037
  } else {
141038
141038
  if (state.skipInvalid)
141039
141039
  return false;
141040
- throw new YAMLException("unacceptable kind of an object to dump " + type2);
141040
+ throw new YAMLException("unacceptable kind of an object to dump " + type);
141041
141041
  }
141042
141042
  if (state.tag !== null && state.tag !== "?") {
141043
141043
  tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
@@ -141499,7 +141499,7 @@ var require_generator = __commonJS((exports) => {
141499
141499
  return "";
141500
141500
  }
141501
141501
  processed.add(ast);
141502
- let type2 = "";
141502
+ let type = "";
141503
141503
  switch (ast.type) {
141504
141504
  case "ENUM":
141505
141505
  return generateStandaloneEnum(ast, options8) + `
@@ -141510,11 +141510,11 @@ var require_generator = __commonJS((exports) => {
141510
141510
  case "INTERSECTION":
141511
141511
  return ast.params.reduce((prev, ast2) => prev + declareEnums(ast2, options8, processed), "");
141512
141512
  case "TUPLE":
141513
- type2 = ast.params.reduce((prev, ast2) => prev + declareEnums(ast2, options8, processed), "");
141513
+ type = ast.params.reduce((prev, ast2) => prev + declareEnums(ast2, options8, processed), "");
141514
141514
  if (ast.spreadParam) {
141515
- type2 += declareEnums(ast.spreadParam, options8, processed);
141515
+ type += declareEnums(ast.spreadParam, options8, processed);
141516
141516
  }
141517
- return type2;
141517
+ return type;
141518
141518
  case "INTERFACE":
141519
141519
  return getSuperTypesAndParams(ast).reduce((prev, ast2) => prev + declareEnums(ast2, options8, processed), "");
141520
141520
  default:
@@ -141526,13 +141526,13 @@ var require_generator = __commonJS((exports) => {
141526
141526
  return "";
141527
141527
  }
141528
141528
  processed.add(ast);
141529
- let type2 = "";
141529
+ let type = "";
141530
141530
  switch (ast.type) {
141531
141531
  case "ARRAY":
141532
- type2 = declareNamedInterfaces(ast.params, options8, rootASTName, processed);
141532
+ type = declareNamedInterfaces(ast.params, options8, rootASTName, processed);
141533
141533
  break;
141534
141534
  case "INTERFACE":
141535
- type2 = [
141535
+ type = [
141536
141536
  (0, AST_1.hasStandaloneName)(ast) && (ast.standaloneName === rootASTName || options8.declareExternallyReferenced) && generateStandaloneInterface(ast, options8),
141537
141537
  getSuperTypesAndParams(ast).map((ast2) => declareNamedInterfaces(ast2, options8, rootASTName, processed)).filter(Boolean).join(`
141538
141538
  `)
@@ -141542,16 +141542,16 @@ var require_generator = __commonJS((exports) => {
141542
141542
  case "INTERSECTION":
141543
141543
  case "TUPLE":
141544
141544
  case "UNION":
141545
- type2 = ast.params.map((_10) => declareNamedInterfaces(_10, options8, rootASTName, processed)).filter(Boolean).join(`
141545
+ type = ast.params.map((_10) => declareNamedInterfaces(_10, options8, rootASTName, processed)).filter(Boolean).join(`
141546
141546
  `);
141547
141547
  if (ast.type === "TUPLE" && ast.spreadParam) {
141548
- type2 += declareNamedInterfaces(ast.spreadParam, options8, rootASTName, processed);
141548
+ type += declareNamedInterfaces(ast.spreadParam, options8, rootASTName, processed);
141549
141549
  }
141550
141550
  break;
141551
141551
  default:
141552
- type2 = "";
141552
+ type = "";
141553
141553
  }
141554
- return type2;
141554
+ return type;
141555
141555
  }
141556
141556
  function declareNamedTypes(ast, options8, rootASTName, processed = new Set) {
141557
141557
  if (processed.has(ast)) {
@@ -141588,11 +141588,11 @@ var require_generator = __commonJS((exports) => {
141588
141588
  }
141589
141589
  }
141590
141590
  function generateTypeUnmemoized(ast, options8) {
141591
- const type2 = generateRawType(ast, options8);
141591
+ const type = generateRawType(ast, options8);
141592
141592
  if (options8.strictIndexSignatures && ast.keyName === "[k: string]") {
141593
- return `${type2} | undefined`;
141593
+ return `${type} | undefined`;
141594
141594
  }
141595
- return type2;
141595
+ return type;
141596
141596
  }
141597
141597
  exports.generateType = (0, lodash_1.memoize)(generateTypeUnmemoized);
141598
141598
  function generateRawType(ast, options8) {
@@ -141605,8 +141605,8 @@ var require_generator = __commonJS((exports) => {
141605
141605
  return "any";
141606
141606
  case "ARRAY":
141607
141607
  return (() => {
141608
- const type2 = (0, exports.generateType)(ast.params, options8);
141609
- return type2.endsWith('"') ? "(" + type2 + ")[]" : type2 + "[]";
141608
+ const type = (0, exports.generateType)(ast.params, options8);
141609
+ return type.endsWith('"') ? "(" + type + ")[]" : type + "[]";
141610
141610
  })();
141611
141611
  case "BOOLEAN":
141612
141612
  return "boolean";
@@ -141689,8 +141689,8 @@ var require_generator = __commonJS((exports) => {
141689
141689
  }
141690
141690
  function generateInterface(ast, options8) {
141691
141691
  return `{` + `
141692
- ` + ast.params.filter((_10) => !_10.isPatternProperty && !_10.isUnreachableDefinition).map(({ isRequired, keyName, ast: ast2 }) => [isRequired, keyName, ast2, (0, exports.generateType)(ast2, options8)]).map(([isRequired, keyName, ast2, type2]) => ((0, AST_1.hasComment)(ast2) && !ast2.standaloneName ? generateComment(ast2.comment, ast2.deprecated) + `
141693
- ` : "") + escapeKeyName(keyName) + (isRequired ? "" : "?") + ": " + type2).join(`
141692
+ ` + ast.params.filter((_10) => !_10.isPatternProperty && !_10.isUnreachableDefinition).map(({ isRequired, keyName, ast: ast2 }) => [isRequired, keyName, ast2, (0, exports.generateType)(ast2, options8)]).map(([isRequired, keyName, ast2, type]) => ((0, AST_1.hasComment)(ast2) && !ast2.standaloneName ? generateComment(ast2.comment, ast2.deprecated) + `
141693
+ ` : "") + escapeKeyName(keyName) + (isRequired ? "" : "?") + ": " + type).join(`
141694
141694
  `) + `
141695
141695
  ` + "}";
141696
141696
  }
@@ -141911,8 +141911,8 @@ var require_normalizer = __commonJS((exports) => {
141911
141911
  var applySchemaTyping_1 = require_applySchemaTyping();
141912
141912
  var util_1 = __require("util");
141913
141913
  var rules = new Map;
141914
- function hasType(schema10, type2) {
141915
- return schema10.type === type2 || Array.isArray(schema10.type) && schema10.type.includes(type2);
141914
+ function hasType(schema10, type) {
141915
+ return schema10.type === type || Array.isArray(schema10.type) && schema10.type.includes(type);
141916
141916
  }
141917
141917
  function isObjectType(schema10) {
141918
141918
  return schema10.properties !== undefined || hasType(schema10, "object") || hasType(schema10, "any");
@@ -141925,7 +141925,7 @@ var require_normalizer = __commonJS((exports) => {
141925
141925
  }
141926
141926
  rules.set('Remove `type=["null"]` if `enum=[null]`', (schema10) => {
141927
141927
  if (Array.isArray(schema10.enum) && schema10.enum.some((e8) => e8 === null) && Array.isArray(schema10.type) && schema10.type.includes("null")) {
141928
- schema10.type = schema10.type.filter((type2) => type2 !== "null");
141928
+ schema10.type = schema10.type.filter((type) => type !== "null");
141929
141929
  }
141930
141930
  });
141931
141931
  rules.set("Destructure unary types", (schema10) => {
@@ -142183,34 +142183,34 @@ var require_parser2 = __commonJS((exports) => {
142183
142183
  const types = schema10[JSONSchema_1.Types];
142184
142184
  if (intersection2) {
142185
142185
  const ast = parseAsTypeWithCache(intersection2, "ALL_OF", options8, keyName, processed, usedNames);
142186
- types.forEach((type2) => {
142187
- ast.params.push(parseAsTypeWithCache(schema10, type2, options8, keyName, processed, usedNames));
142186
+ types.forEach((type) => {
142187
+ ast.params.push(parseAsTypeWithCache(schema10, type, options8, keyName, processed, usedNames));
142188
142188
  });
142189
142189
  (0, utils_1.log)("blue", "parser", "Types:", [...types], "Input:", schema10, "Output:", ast);
142190
142190
  return ast;
142191
142191
  }
142192
142192
  if (types.size === 1) {
142193
- const type2 = [...types][0];
142194
- const ast = parseAsTypeWithCache(schema10, type2, options8, keyName, processed, usedNames);
142195
- (0, utils_1.log)("blue", "parser", "Type:", type2, "Input:", schema10, "Output:", ast);
142193
+ const type = [...types][0];
142194
+ const ast = parseAsTypeWithCache(schema10, type, options8, keyName, processed, usedNames);
142195
+ (0, utils_1.log)("blue", "parser", "Type:", type, "Input:", schema10, "Output:", ast);
142196
142196
  return ast;
142197
142197
  }
142198
142198
  throw new ReferenceError("Expected intersection schema. Please file an issue on GitHub.");
142199
142199
  }
142200
142200
  exports.parse = parse11;
142201
- function parseAsTypeWithCache(schema10, type2, options8, keyName, processed = new Map, usedNames = new Set) {
142201
+ function parseAsTypeWithCache(schema10, type, options8, keyName, processed = new Map, usedNames = new Set) {
142202
142202
  let cachedTypeMap = processed.get(schema10);
142203
142203
  if (!cachedTypeMap) {
142204
142204
  cachedTypeMap = new Map;
142205
142205
  processed.set(schema10, cachedTypeMap);
142206
142206
  }
142207
- const cachedAST = cachedTypeMap.get(type2);
142207
+ const cachedAST = cachedTypeMap.get(type);
142208
142208
  if (cachedAST) {
142209
142209
  return cachedAST;
142210
142210
  }
142211
142211
  const ast = {};
142212
- cachedTypeMap.set(type2, ast);
142213
- return Object.assign(ast, parseNonLiteral(schema10, type2, options8, keyName, processed, usedNames));
142212
+ cachedTypeMap.set(type, ast);
142213
+ return Object.assign(ast, parseNonLiteral(schema10, type, options8, keyName, processed, usedNames));
142214
142214
  }
142215
142215
  function parseBooleanSchema(schema10, keyName, options8) {
142216
142216
  if (schema10) {
@@ -142231,10 +142231,10 @@ var require_parser2 = __commonJS((exports) => {
142231
142231
  type: "LITERAL"
142232
142232
  };
142233
142233
  }
142234
- function parseNonLiteral(schema10, type2, options8, keyName, processed, usedNames) {
142234
+ function parseNonLiteral(schema10, type, options8, keyName, processed, usedNames) {
142235
142235
  const definitions = getDefinitionsMemoized((0, JSONSchema_1.getRootSchema)(schema10));
142236
142236
  const keyNameFromDefinition = (0, lodash_1.findKey)(definitions, (_10) => _10 === schema10);
142237
- switch (type2) {
142237
+ switch (type) {
142238
142238
  case "ALL_OF":
142239
142239
  return {
142240
142240
  comment: schema10.description,
@@ -142373,8 +142373,8 @@ var require_parser2 = __commonJS((exports) => {
142373
142373
  deprecated: schema10.deprecated,
142374
142374
  keyName,
142375
142375
  standaloneName: standaloneName(schema10, keyNameFromDefinition, usedNames, options8),
142376
- params: schema10.type.map((type3) => {
142377
- const member = Object.assign(Object.assign({}, (0, lodash_1.omit)(schema10, "$id", "description", "title")), { type: type3 });
142376
+ params: schema10.type.map((type2) => {
142377
+ const member = Object.assign(Object.assign({}, (0, lodash_1.omit)(schema10, "$id", "description", "title")), { type: type2 });
142378
142378
  (0, utils_1.maybeStripDefault)(member);
142379
142379
  (0, applySchemaTyping_1.applySchemaTyping)(member);
142380
142380
  return parse11(member, options8, undefined, processed, usedNames);
@@ -142546,8 +142546,8 @@ var require_to_json = __commonJS((exports) => {
142546
142546
  for (let key2 of getDeepKeys(error48)) {
142547
142547
  if (typeof key2 === "string") {
142548
142548
  let value = error48[key2];
142549
- let type2 = typeof value;
142550
- if (!nonJsonTypes.includes(type2)) {
142549
+ let type = typeof value;
142550
+ if (!nonJsonTypes.includes(type)) {
142551
142551
  pojo[key2] = value;
142552
142552
  }
142553
142553
  }
@@ -146353,8 +146353,8 @@ var require_depd = __commonJS((exports, module) => {
146353
146353
  deprecate.property = wrapproperty;
146354
146354
  return deprecate;
146355
146355
  }
146356
- function eehaslisteners(emitter, type2) {
146357
- var count2 = typeof emitter.listenerCount !== "function" ? emitter.listeners(type2).length : emitter.listenerCount(type2);
146356
+ function eehaslisteners(emitter, type) {
146357
+ var count2 = typeof emitter.listenerCount !== "function" ? emitter.listeners(type).length : emitter.listenerCount(type);
146358
146358
  return count2 > 0;
146359
146359
  }
146360
146360
  function isignored(namespace) {
@@ -146832,18 +146832,18 @@ var require_http_errors = __commonJS((exports, module) => {
146832
146832
  var props = {};
146833
146833
  for (var i5 = 0;i5 < arguments.length; i5++) {
146834
146834
  var arg = arguments[i5];
146835
- var type2 = typeof arg;
146836
- if (type2 === "object" && arg instanceof Error) {
146835
+ var type = typeof arg;
146836
+ if (type === "object" && arg instanceof Error) {
146837
146837
  err = arg;
146838
146838
  status = err.status || err.statusCode || status;
146839
- } else if (type2 === "number" && i5 === 0) {
146839
+ } else if (type === "number" && i5 === 0) {
146840
146840
  status = arg;
146841
- } else if (type2 === "string") {
146841
+ } else if (type === "string") {
146842
146842
  msg = arg;
146843
- } else if (type2 === "object") {
146843
+ } else if (type === "object") {
146844
146844
  props = arg;
146845
146845
  } else {
146846
- throw new TypeError("argument #" + (i5 + 1) + " unsupported type " + type2);
146846
+ throw new TypeError("argument #" + (i5 + 1) + " unsupported type " + type);
146847
146847
  }
146848
146848
  }
146849
146849
  if (typeof status === "number" && (status < 400 || status >= 600)) {
@@ -151150,11 +151150,11 @@ var require_content_type = __commonJS((exports) => {
151150
151150
  throw new TypeError("argument obj is required");
151151
151151
  }
151152
151152
  var parameters = obj.parameters;
151153
- var type2 = obj.type;
151154
- if (!type2 || !TYPE_REGEXP.test(type2)) {
151153
+ var type = obj.type;
151154
+ if (!type || !TYPE_REGEXP.test(type)) {
151155
151155
  throw new TypeError("invalid type");
151156
151156
  }
151157
- var string4 = type2;
151157
+ var string4 = type;
151158
151158
  if (parameters && typeof parameters === "object") {
151159
151159
  var param;
151160
151160
  var params = Object.keys(parameters).sort();
@@ -151177,11 +151177,11 @@ var require_content_type = __commonJS((exports) => {
151177
151177
  throw new TypeError("argument string is required to be a string");
151178
151178
  }
151179
151179
  var index = header2.indexOf(";");
151180
- var type2 = index !== -1 ? header2.slice(0, index).trim() : header2.trim();
151181
- if (!TYPE_REGEXP.test(type2)) {
151180
+ var type = index !== -1 ? header2.slice(0, index).trim() : header2.trim();
151181
+ if (!TYPE_REGEXP.test(type)) {
151182
151182
  throw new TypeError("invalid media type");
151183
151183
  }
151184
- var obj = new ContentType(type2.toLowerCase());
151184
+ var obj = new ContentType(type.toLowerCase());
151185
151185
  if (index !== -1) {
151186
151186
  var key2;
151187
151187
  var match;
@@ -151230,9 +151230,9 @@ var require_content_type = __commonJS((exports) => {
151230
151230
  }
151231
151231
  return '"' + str.replace(QUOTE_REGEXP, "\\$1") + '"';
151232
151232
  }
151233
- function ContentType(type2) {
151233
+ function ContentType(type) {
151234
151234
  this.parameters = Object.create(null);
151235
- this.type = type2;
151235
+ this.type = type;
151236
151236
  }
151237
151237
  });
151238
151238
 
@@ -160608,11 +160608,11 @@ var require_mimeScore = __commonJS((exports, module) => {
160608
160608
  if (mimeType === "application/octet-stream") {
160609
160609
  return 0;
160610
160610
  }
160611
- const [type2, subtype] = mimeType.split("/");
160611
+ const [type, subtype] = mimeType.split("/");
160612
160612
  const facet = subtype.replace(/(\.|x-).*/, "$1");
160613
160613
  const facetScore = FACET_SCORES[facet] || FACET_SCORES.default;
160614
160614
  const sourceScore = SOURCE_SCORES[source3] || SOURCE_SCORES.default;
160615
- const typeScore = TYPE_SCORES[type2] || TYPE_SCORES.default;
160615
+ const typeScore = TYPE_SCORES[type] || TYPE_SCORES.default;
160616
160616
  const lengthScore = 1 - mimeType.length / 100;
160617
160617
  return facetScore + sourceScore + typeScore + lengthScore;
160618
160618
  };
@@ -160640,11 +160640,11 @@ var require_mime_types = __commonJS((exports) => {
160640
160640
  exports.types = Object.create(null);
160641
160641
  exports._extensionConflicts = [];
160642
160642
  populateMaps(exports.extensions, exports.types);
160643
- function charset(type2) {
160644
- if (!type2 || typeof type2 !== "string") {
160643
+ function charset(type) {
160644
+ if (!type || typeof type !== "string") {
160645
160645
  return false;
160646
160646
  }
160647
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
160647
+ var match = EXTRACT_TYPE_REGEXP.exec(type);
160648
160648
  var mime = match && db2[match[1].toLowerCase()];
160649
160649
  if (mime && mime.charset) {
160650
160650
  return mime.charset;
@@ -160669,11 +160669,11 @@ var require_mime_types = __commonJS((exports) => {
160669
160669
  }
160670
160670
  return mime;
160671
160671
  }
160672
- function extension(type2) {
160673
- if (!type2 || typeof type2 !== "string") {
160672
+ function extension(type) {
160673
+ if (!type || typeof type !== "string") {
160674
160674
  return false;
160675
160675
  }
160676
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
160676
+ var match = EXTRACT_TYPE_REGEXP.exec(type);
160677
160677
  var exts = match && exports.extensions[match[1].toLowerCase()];
160678
160678
  if (!exts || !exts.length) {
160679
160679
  return false;
@@ -160691,17 +160691,17 @@ var require_mime_types = __commonJS((exports) => {
160691
160691
  return exports.types[extension2] || false;
160692
160692
  }
160693
160693
  function populateMaps(extensions, types) {
160694
- Object.keys(db2).forEach(function forEachMimeType(type2) {
160695
- var mime = db2[type2];
160694
+ Object.keys(db2).forEach(function forEachMimeType(type) {
160695
+ var mime = db2[type];
160696
160696
  var exts = mime.extensions;
160697
160697
  if (!exts || !exts.length) {
160698
160698
  return;
160699
160699
  }
160700
- extensions[type2] = exts;
160700
+ extensions[type] = exts;
160701
160701
  for (var i5 = 0;i5 < exts.length; i5++) {
160702
160702
  var extension2 = exts[i5];
160703
- types[extension2] = _preferredType(extension2, types[extension2], type2);
160704
- const legacyType = _preferredTypeLegacy(extension2, types[extension2], type2);
160703
+ types[extension2] = _preferredType(extension2, types[extension2], type);
160704
+ const legacyType = _preferredTypeLegacy(extension2, types[extension2], type);
160705
160705
  if (legacyType !== types[extension2]) {
160706
160706
  exports._extensionConflicts.push([extension2, legacyType, types[extension2]]);
160707
160707
  }
@@ -160743,14 +160743,14 @@ var require_media_typer = __commonJS((exports) => {
160743
160743
  }
160744
160744
  var subtype = obj.subtype;
160745
160745
  var suffix = obj.suffix;
160746
- var type2 = obj.type;
160747
- if (!type2 || !TYPE_NAME_REGEXP.test(type2)) {
160746
+ var type = obj.type;
160747
+ if (!type || !TYPE_NAME_REGEXP.test(type)) {
160748
160748
  throw new TypeError("invalid type");
160749
160749
  }
160750
160750
  if (!subtype || !SUBTYPE_NAME_REGEXP.test(subtype)) {
160751
160751
  throw new TypeError("invalid subtype");
160752
160752
  }
160753
- var string4 = type2 + "/" + subtype;
160753
+ var string4 = type + "/" + subtype;
160754
160754
  if (suffix) {
160755
160755
  if (!TYPE_NAME_REGEXP.test(suffix)) {
160756
160756
  throw new TypeError("invalid suffix");
@@ -160779,7 +160779,7 @@ var require_media_typer = __commonJS((exports) => {
160779
160779
  if (!match) {
160780
160780
  throw new TypeError("invalid media type");
160781
160781
  }
160782
- var type2 = match[1];
160782
+ var type = match[1];
160783
160783
  var subtype = match[2];
160784
160784
  var suffix;
160785
160785
  var index = subtype.lastIndexOf("+");
@@ -160787,10 +160787,10 @@ var require_media_typer = __commonJS((exports) => {
160787
160787
  suffix = subtype.substr(index + 1);
160788
160788
  subtype = subtype.substr(0, index);
160789
160789
  }
160790
- return new MediaType(type2, subtype, suffix);
160790
+ return new MediaType(type, subtype, suffix);
160791
160791
  }
160792
- function MediaType(type2, subtype, suffix) {
160793
- this.type = type2;
160792
+ function MediaType(type, subtype, suffix) {
160793
+ this.type = type;
160794
160794
  this.subtype = subtype;
160795
160795
  this.suffix = suffix;
160796
160796
  }
@@ -160828,10 +160828,10 @@ var require_type_is = __commonJS((exports, module) => {
160828
160828
  if (!types || !types.length) {
160829
160829
  return val;
160830
160830
  }
160831
- var type2;
160831
+ var type;
160832
160832
  for (i5 = 0;i5 < types.length; i5++) {
160833
- if (mimeMatch(normalize2(type2 = types[i5]), val)) {
160834
- return type2[0] === "+" || type2.indexOf("*") !== -1 ? val : type2;
160833
+ if (mimeMatch(normalize2(type = types[i5]), val)) {
160834
+ return type[0] === "+" || type.indexOf("*") !== -1 ? val : type;
160835
160835
  }
160836
160836
  }
160837
160837
  return false;
@@ -160846,20 +160846,20 @@ var require_type_is = __commonJS((exports, module) => {
160846
160846
  var value = req.headers["content-type"];
160847
160847
  return typeis(value, types);
160848
160848
  }
160849
- function normalize2(type2) {
160850
- if (typeof type2 !== "string") {
160849
+ function normalize2(type) {
160850
+ if (typeof type !== "string") {
160851
160851
  return false;
160852
160852
  }
160853
- switch (type2) {
160853
+ switch (type) {
160854
160854
  case "urlencoded":
160855
160855
  return "application/x-www-form-urlencoded";
160856
160856
  case "multipart":
160857
160857
  return "multipart/*";
160858
160858
  }
160859
- if (type2[0] === "+") {
160860
- return "*/*" + type2;
160859
+ if (type[0] === "+") {
160860
+ return "*/*" + type;
160861
160861
  }
160862
- return type2.indexOf("/") === -1 ? mime.lookup(type2) : type2;
160862
+ return type.indexOf("/") === -1 ? mime.lookup(type) : type;
160863
160863
  }
160864
160864
  function mimeMatch(expected, actual) {
160865
160865
  if (expected === false) {
@@ -160882,8 +160882,8 @@ var require_type_is = __commonJS((exports, module) => {
160882
160882
  return true;
160883
160883
  }
160884
160884
  function normalizeType(value) {
160885
- var type2 = contentType.parse(value).type;
160886
- return typer.test(type2) ? type2 : null;
160885
+ var type = contentType.parse(value).type;
160886
+ return typer.test(type) ? type : null;
160887
160887
  }
160888
160888
  function tryNormalizeType(value) {
160889
160889
  try {
@@ -160911,9 +160911,9 @@ var require_utils8 = __commonJS((exports, module) => {
160911
160911
  return;
160912
160912
  }
160913
160913
  }
160914
- function typeChecker(type2) {
160914
+ function typeChecker(type) {
160915
160915
  return function checkType(req) {
160916
- return Boolean(typeis(req, type2));
160916
+ return Boolean(typeis(req, type));
160917
160917
  };
160918
160918
  }
160919
160919
  function normalizeOptions5(options8, defaultType) {
@@ -160922,13 +160922,13 @@ var require_utils8 = __commonJS((exports, module) => {
160922
160922
  }
160923
160923
  var inflate = options8?.inflate !== false;
160924
160924
  var limit = typeof options8?.limit !== "number" ? bytes.parse(options8?.limit || "100kb") : options8?.limit;
160925
- var type2 = options8?.type || defaultType;
160925
+ var type = options8?.type || defaultType;
160926
160926
  var verify = options8?.verify || false;
160927
160927
  var defaultCharset = options8?.defaultCharset || "utf-8";
160928
160928
  if (verify !== false && typeof verify !== "function") {
160929
160929
  throw new TypeError("option verify must be function");
160930
160930
  }
160931
- var shouldParse = typeof type2 !== "function" ? typeChecker(type2) : type2;
160931
+ var shouldParse = typeof type !== "function" ? typeChecker(type) : type;
160932
160932
  return {
160933
160933
  inflate,
160934
160934
  limit,
@@ -161681,12 +161681,12 @@ var require_object_inspect = __commonJS((exports, module) => {
161681
161681
  function markBoxed(str) {
161682
161682
  return "Object(" + str + ")";
161683
161683
  }
161684
- function weakCollectionOf(type2) {
161685
- return type2 + " { ? }";
161684
+ function weakCollectionOf(type) {
161685
+ return type + " { ? }";
161686
161686
  }
161687
- function collectionOf(type2, size, entries, indent3) {
161687
+ function collectionOf(type, size, entries, indent3) {
161688
161688
  var joinedEntries = indent3 ? indentedJoin(entries, indent3) : $join.call(entries, ", ");
161689
- return type2 + " (" + size + ") {" + joinedEntries + "}";
161689
+ return type + " (" + size + ") {" + joinedEntries + "}";
161690
161690
  }
161691
161691
  function singleLineValues(xs8) {
161692
161692
  for (var i5 = 0;i5 < xs8.length; i5++) {
@@ -164926,8 +164926,8 @@ var require_utils10 = __commonJS((exports) => {
164926
164926
  exports.methods = METHODS.map((method) => method.toLowerCase());
164927
164927
  exports.etag = createETagGenerator({ weak: false });
164928
164928
  exports.wetag = createETagGenerator({ weak: true });
164929
- exports.normalizeType = function(type2) {
164930
- return ~type2.indexOf("/") ? acceptParams(type2) : { value: mime.lookup(type2) || "application/octet-stream", params: {} };
164929
+ exports.normalizeType = function(type) {
164930
+ return ~type.indexOf("/") ? acceptParams(type) : { value: mime.lookup(type) || "application/octet-stream", params: {} };
164931
164931
  };
164932
164932
  exports.normalizeTypes = function(types) {
164933
164933
  return types.map(exports.normalizeType);
@@ -165018,11 +165018,11 @@ var require_utils10 = __commonJS((exports) => {
165018
165018
  }
165019
165019
  return proxyaddr.compile(val || []);
165020
165020
  };
165021
- exports.setCharset = function setCharset(type2, charset) {
165022
- if (!type2 || !charset) {
165023
- return type2;
165021
+ exports.setCharset = function setCharset(type, charset) {
165022
+ if (!type || !charset) {
165023
+ return type;
165024
165024
  }
165025
- var parsed = contentType.parse(type2);
165025
+ var parsed = contentType.parse(type);
165026
165026
  parsed.parameters.charset = charset;
165027
165027
  return contentType.format(parsed);
165028
165028
  };
@@ -165205,9 +165205,9 @@ var require_dist = __commonJS((exports) => {
165205
165205
  }
165206
165206
  while (index < chars.length) {
165207
165207
  const value = chars[index];
165208
- const type2 = SIMPLE_TOKENS[value];
165209
- if (type2) {
165210
- tokens.push({ type: type2, index: index++, value });
165208
+ const type = SIMPLE_TOKENS[value];
165209
+ if (type) {
165210
+ tokens.push({ type, index: index++, value });
165211
165211
  } else if (value === "\\") {
165212
165212
  tokens.push({ type: "escape", index: index++, value: chars[index++] });
165213
165213
  } else if (value === ":") {
@@ -166482,8 +166482,8 @@ var require_charset = __commonJS((exports, module) => {
166482
166482
  if (!provided) {
166483
166483
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullCharset);
166484
166484
  }
166485
- var priorities = provided.map(function getPriority(type2, index) {
166486
- return getCharsetPriority(type2, accepts, index);
166485
+ var priorities = provided.map(function getPriority(type, index) {
166486
+ return getCharsetPriority(type, accepts, index);
166487
166487
  });
166488
166488
  return priorities.filter(isQuality).sort(compareSpecs).map(function getCharset(priority) {
166489
166489
  return provided[priorities.indexOf(priority)];
@@ -166593,8 +166593,8 @@ var require_encoding = __commonJS((exports, module) => {
166593
166593
  if (!provided) {
166594
166594
  return accepts.filter(isQuality).sort(comparator).map(getFullEncoding);
166595
166595
  }
166596
- var priorities = provided.map(function getPriority(type2, index) {
166597
- return getEncodingPriority(type2, accepts, index);
166596
+ var priorities = provided.map(function getPriority(type, index) {
166597
+ return getEncodingPriority(type, accepts, index);
166598
166598
  });
166599
166599
  return priorities.filter(isQuality).sort(comparator).map(function getEncoding(priority) {
166600
166600
  return provided[priorities.indexOf(priority)];
@@ -166689,8 +166689,8 @@ var require_language = __commonJS((exports, module) => {
166689
166689
  if (!provided) {
166690
166690
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullLanguage);
166691
166691
  }
166692
- var priorities = provided.map(function getPriority(type2, index) {
166693
- return getLanguagePriority(type2, accepts, index);
166692
+ var priorities = provided.map(function getPriority(type, index) {
166693
+ return getLanguagePriority(type, accepts, index);
166694
166694
  });
166695
166695
  return priorities.filter(isQuality).sort(compareSpecs).map(function getLanguage(priority) {
166696
166696
  return provided[priorities.indexOf(priority)];
@@ -166730,7 +166730,7 @@ var require_mediaType = __commonJS((exports, module) => {
166730
166730
  var params = Object.create(null);
166731
166731
  var q13 = 1;
166732
166732
  var subtype = match[2];
166733
- var type2 = match[1];
166733
+ var type = match[1];
166734
166734
  if (match[3]) {
166735
166735
  var kvps = splitParameters(match[3]).map(splitKeyValuePair);
166736
166736
  for (var j10 = 0;j10 < kvps.length; j10++) {
@@ -166746,25 +166746,25 @@ var require_mediaType = __commonJS((exports, module) => {
166746
166746
  }
166747
166747
  }
166748
166748
  return {
166749
- type: type2,
166749
+ type,
166750
166750
  subtype,
166751
166751
  params,
166752
166752
  q: q13,
166753
166753
  i: i5
166754
166754
  };
166755
166755
  }
166756
- function getMediaTypePriority(type2, accepted, index) {
166756
+ function getMediaTypePriority(type, accepted, index) {
166757
166757
  var priority = { o: -1, q: 0, s: 0 };
166758
166758
  for (var i5 = 0;i5 < accepted.length; i5++) {
166759
- var spec = specify(type2, accepted[i5], index);
166759
+ var spec = specify(type, accepted[i5], index);
166760
166760
  if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
166761
166761
  priority = spec;
166762
166762
  }
166763
166763
  }
166764
166764
  return priority;
166765
166765
  }
166766
- function specify(type2, spec, index) {
166767
- var p4 = parseMediaType(type2);
166766
+ function specify(type, spec, index) {
166767
+ var p4 = parseMediaType(type);
166768
166768
  var s5 = 0;
166769
166769
  if (!p4) {
166770
166770
  return null;
@@ -166801,8 +166801,8 @@ var require_mediaType = __commonJS((exports, module) => {
166801
166801
  if (!provided) {
166802
166802
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullType);
166803
166803
  }
166804
- var priorities = provided.map(function getPriority(type2, index) {
166805
- return getMediaTypePriority(type2, accepts, index);
166804
+ var priorities = provided.map(function getPriority(type, index) {
166805
+ return getMediaTypePriority(type, accepts, index);
166806
166806
  });
166807
166807
  return priorities.filter(isQuality).sort(compareSpecs).map(function getType2(priority) {
166808
166808
  return provided[priorities.indexOf(priority)];
@@ -167003,11 +167003,11 @@ var require_accepts = __commonJS((exports, module) => {
167003
167003
  }
167004
167004
  return this.negotiator.languages(languages2)[0] || false;
167005
167005
  };
167006
- function extToMime(type2) {
167007
- return type2.indexOf("/") === -1 ? mime.lookup(type2) : type2;
167006
+ function extToMime(type) {
167007
+ return type.indexOf("/") === -1 ? mime.lookup(type) : type;
167008
167008
  }
167009
- function validMime(type2) {
167010
- return typeof type2 === "string";
167009
+ function validMime(type) {
167010
+ return typeof type === "string";
167011
167011
  }
167012
167012
  });
167013
167013
 
@@ -167349,9 +167349,9 @@ var require_content_disposition = __commonJS((exports, module) => {
167349
167349
  var DISPOSITION_TYPE_REGEXP = /^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;
167350
167350
  function contentDisposition(filename, options8) {
167351
167351
  var opts = options8 || {};
167352
- var type2 = opts.type || "attachment";
167352
+ var type = opts.type || "attachment";
167353
167353
  var params = createparams(filename, opts.fallback);
167354
- return format3(new ContentDisposition(type2, params));
167354
+ return format3(new ContentDisposition(type, params));
167355
167355
  }
167356
167356
  function createparams(filename, fallback) {
167357
167357
  if (filename === undefined) {
@@ -167384,11 +167384,11 @@ var require_content_disposition = __commonJS((exports, module) => {
167384
167384
  }
167385
167385
  function format3(obj) {
167386
167386
  var parameters = obj.parameters;
167387
- var type2 = obj.type;
167388
- if (!type2 || typeof type2 !== "string" || !TOKEN_REGEXP.test(type2)) {
167387
+ var type = obj.type;
167388
+ if (!type || typeof type !== "string" || !TOKEN_REGEXP.test(type)) {
167389
167389
  throw new TypeError("invalid type");
167390
167390
  }
167391
- var string4 = String(type2).toLowerCase();
167391
+ var string4 = String(type).toLowerCase();
167392
167392
  if (parameters && typeof parameters === "object") {
167393
167393
  var param;
167394
167394
  var params = Object.keys(parameters).sort();
@@ -167434,7 +167434,7 @@ var require_content_disposition = __commonJS((exports, module) => {
167434
167434
  throw new TypeError("invalid type format");
167435
167435
  }
167436
167436
  var index = match[0].length;
167437
- var type2 = match[1].toLowerCase();
167437
+ var type = match[1].toLowerCase();
167438
167438
  var key2;
167439
167439
  var names = [];
167440
167440
  var params = {};
@@ -167468,7 +167468,7 @@ var require_content_disposition = __commonJS((exports, module) => {
167468
167468
  if (index !== -1 && index !== string4.length) {
167469
167469
  throw new TypeError("invalid parameter format");
167470
167470
  }
167471
- return new ContentDisposition(type2, params);
167471
+ return new ContentDisposition(type, params);
167472
167472
  }
167473
167473
  function pdecode(str, hex3) {
167474
167474
  return String.fromCharCode(parseInt(hex3, 16));
@@ -167485,8 +167485,8 @@ var require_content_disposition = __commonJS((exports, module) => {
167485
167485
  var encoded = encodeURIComponent(str).replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode);
167486
167486
  return "UTF-8''" + encoded;
167487
167487
  }
167488
- function ContentDisposition(type2, parameters) {
167489
- this.type = type2;
167488
+ function ContentDisposition(type, parameters) {
167489
+ this.type = type;
167490
167490
  this.parameters = parameters;
167491
167491
  }
167492
167492
  });
@@ -168052,14 +168052,14 @@ var require_send = __commonJS((exports, module) => {
168052
168052
  self2.emit("end");
168053
168053
  });
168054
168054
  };
168055
- SendStream.prototype.type = function type2(path19) {
168055
+ SendStream.prototype.type = function type(path19) {
168056
168056
  var res = this.res;
168057
168057
  if (res.getHeader("Content-Type"))
168058
168058
  return;
168059
168059
  var ext = extname2(path19);
168060
- var type3 = mime.contentType(ext) || "application/octet-stream";
168061
- debug("content-type %s", type3);
168062
- res.setHeader("Content-Type", type3);
168060
+ var type2 = mime.contentType(ext) || "application/octet-stream";
168061
+ debug("content-type %s", type2);
168062
+ res.setHeader("Content-Type", type2);
168063
168063
  };
168064
168064
  SendStream.prototype.setHeader = function setHeader(path19, stat2) {
168065
168065
  var res = this.res;
@@ -168109,8 +168109,8 @@ var require_send = __commonJS((exports, module) => {
168109
168109
  }
168110
168110
  return false;
168111
168111
  }
168112
- function contentRange(type2, size, range) {
168113
- return type2 + " " + (range ? range.start + "-" + range.end : "*") + "/" + size;
168112
+ function contentRange(type, size, range) {
168113
+ return type + " " + (range ? range.start + "-" + range.end : "*") + "/" + size;
168114
168114
  }
168115
168115
  function createHtmlDocument(title, body) {
168116
168116
  return `<!DOCTYPE html>
@@ -168138,8 +168138,8 @@ var require_send = __commonJS((exports, module) => {
168138
168138
  return -1;
168139
168139
  }
168140
168140
  }
168141
- function hasListeners(emitter, type2) {
168142
- var count2 = typeof emitter.listenerCount !== "function" ? emitter.listeners(type2).length : emitter.listenerCount(type2);
168141
+ function hasListeners(emitter, type) {
168142
+ var count2 = typeof emitter.listenerCount !== "function" ? emitter.listeners(type).length : emitter.listenerCount(type);
168143
168143
  return count2 > 0;
168144
168144
  }
168145
168145
  function normalizeList(val, name2) {
@@ -168250,7 +168250,7 @@ var require_response = __commonJS((exports, module) => {
168250
168250
  var chunk = body;
168251
168251
  var encoding;
168252
168252
  var req = this.req;
168253
- var type2;
168253
+ var type;
168254
168254
  var app = this.app;
168255
168255
  switch (typeof chunk) {
168256
168256
  case "string":
@@ -168274,9 +168274,9 @@ var require_response = __commonJS((exports, module) => {
168274
168274
  }
168275
168275
  if (typeof chunk === "string") {
168276
168276
  encoding = "utf8";
168277
- type2 = this.get("Content-Type");
168278
- if (typeof type2 === "string") {
168279
- this.set("Content-Type", setCharset(type2, "utf-8"));
168277
+ type = this.get("Content-Type");
168278
+ if (typeof type === "string") {
168279
+ this.set("Content-Type", setCharset(type, "utf-8"));
168280
168280
  }
168281
168281
  }
168282
168282
  var etagFn = app.get("etag fn");
@@ -168429,8 +168429,8 @@ var require_response = __commonJS((exports, module) => {
168429
168429
  var fullPath = !opts.root ? resolve12(path19) : path19;
168430
168430
  return this.sendFile(fullPath, opts, done);
168431
168431
  };
168432
- res.contentType = res.type = function contentType(type2) {
168433
- var ct11 = type2.indexOf("/") === -1 ? mime.contentType(type2) || "application/octet-stream" : type2;
168432
+ res.contentType = res.type = function contentType(type) {
168433
+ var ct11 = type.indexOf("/") === -1 ? mime.contentType(type) || "application/octet-stream" : type;
168434
168434
  return this.set("Content-Type", ct11);
168435
168435
  };
168436
168436
  res.format = function(obj) {
@@ -169939,10 +169939,10 @@ var require_http_proxy = __commonJS((exports, module) => {
169939
169939
  var web = require_web_incoming();
169940
169940
  var ws8 = require_ws_incoming();
169941
169941
  httpProxy.Server = ProxyServer;
169942
- function createRightProxy(type2) {
169942
+ function createRightProxy(type) {
169943
169943
  return function(options8) {
169944
169944
  return function(req, res) {
169945
- var passes = type2 === "ws" ? this.wsPasses : this.webPasses, args = [].slice.call(arguments), cntr = args.length - 1, head, cbl;
169945
+ var passes = type === "ws" ? this.wsPasses : this.webPasses, args = [].slice.call(arguments), cntr = args.length - 1, head, cbl;
169946
169946
  if (typeof args[cntr] === "function") {
169947
169947
  cbl = args[cntr];
169948
169948
  cntr--;
@@ -170018,11 +170018,11 @@ var require_http_proxy = __commonJS((exports, module) => {
170018
170018
  }
170019
170019
  }
170020
170020
  };
170021
- ProxyServer.prototype.before = function(type2, passName, callback) {
170022
- if (type2 !== "ws" && type2 !== "web") {
170021
+ ProxyServer.prototype.before = function(type, passName, callback) {
170022
+ if (type !== "ws" && type !== "web") {
170023
170023
  throw new Error("type must be `web` or `ws`");
170024
170024
  }
170025
- var passes = type2 === "ws" ? this.wsPasses : this.webPasses, i5 = false;
170025
+ var passes = type === "ws" ? this.wsPasses : this.webPasses, i5 = false;
170026
170026
  passes.forEach(function(v10, idx) {
170027
170027
  if (v10.name === passName)
170028
170028
  i5 = idx;
@@ -170031,11 +170031,11 @@ var require_http_proxy = __commonJS((exports, module) => {
170031
170031
  throw new Error("No such pass");
170032
170032
  passes.splice(i5, 0, callback);
170033
170033
  };
170034
- ProxyServer.prototype.after = function(type2, passName, callback) {
170035
- if (type2 !== "ws" && type2 !== "web") {
170034
+ ProxyServer.prototype.after = function(type, passName, callback) {
170035
+ if (type !== "ws" && type !== "web") {
170036
170036
  throw new Error("type must be `web` or `ws`");
170037
170037
  }
170038
- var passes = type2 === "ws" ? this.wsPasses : this.webPasses, i5 = false;
170038
+ var passes = type === "ws" ? this.wsPasses : this.webPasses, i5 = false;
170039
170039
  passes.forEach(function(v10, idx) {
170040
170040
  if (v10.name === passName)
170041
170041
  i5 = idx;
@@ -173904,8 +173904,8 @@ var require_charset2 = __commonJS((exports, module) => {
173904
173904
  if (!provided) {
173905
173905
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullCharset);
173906
173906
  }
173907
- var priorities = provided.map(function getPriority(type2, index) {
173908
- return getCharsetPriority(type2, accepts, index);
173907
+ var priorities = provided.map(function getPriority(type, index) {
173908
+ return getCharsetPriority(type, accepts, index);
173909
173909
  });
173910
173910
  return priorities.filter(isQuality).sort(compareSpecs).map(function getCharset(priority) {
173911
173911
  return provided[priorities.indexOf(priority)];
@@ -174000,8 +174000,8 @@ var require_encoding2 = __commonJS((exports, module) => {
174000
174000
  if (!provided) {
174001
174001
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullEncoding);
174002
174002
  }
174003
- var priorities = provided.map(function getPriority(type2, index) {
174004
- return getEncodingPriority(type2, accepts, index);
174003
+ var priorities = provided.map(function getPriority(type, index) {
174004
+ return getEncodingPriority(type, accepts, index);
174005
174005
  });
174006
174006
  return priorities.filter(isQuality).sort(compareSpecs).map(function getEncoding(priority) {
174007
174007
  return provided[priorities.indexOf(priority)];
@@ -174096,8 +174096,8 @@ var require_language2 = __commonJS((exports, module) => {
174096
174096
  if (!provided) {
174097
174097
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullLanguage);
174098
174098
  }
174099
- var priorities = provided.map(function getPriority(type2, index) {
174100
- return getLanguagePriority(type2, accepts, index);
174099
+ var priorities = provided.map(function getPriority(type, index) {
174100
+ return getLanguagePriority(type, accepts, index);
174101
174101
  });
174102
174102
  return priorities.filter(isQuality).sort(compareSpecs).map(function getLanguage(priority) {
174103
174103
  return provided[priorities.indexOf(priority)];
@@ -174137,7 +174137,7 @@ var require_mediaType2 = __commonJS((exports, module) => {
174137
174137
  var params = Object.create(null);
174138
174138
  var q13 = 1;
174139
174139
  var subtype = match[2];
174140
- var type2 = match[1];
174140
+ var type = match[1];
174141
174141
  if (match[3]) {
174142
174142
  var kvps = splitParameters(match[3]).map(splitKeyValuePair);
174143
174143
  for (var j10 = 0;j10 < kvps.length; j10++) {
@@ -174153,25 +174153,25 @@ var require_mediaType2 = __commonJS((exports, module) => {
174153
174153
  }
174154
174154
  }
174155
174155
  return {
174156
- type: type2,
174156
+ type,
174157
174157
  subtype,
174158
174158
  params,
174159
174159
  q: q13,
174160
174160
  i: i5
174161
174161
  };
174162
174162
  }
174163
- function getMediaTypePriority(type2, accepted, index) {
174163
+ function getMediaTypePriority(type, accepted, index) {
174164
174164
  var priority = { o: -1, q: 0, s: 0 };
174165
174165
  for (var i5 = 0;i5 < accepted.length; i5++) {
174166
- var spec = specify(type2, accepted[i5], index);
174166
+ var spec = specify(type, accepted[i5], index);
174167
174167
  if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
174168
174168
  priority = spec;
174169
174169
  }
174170
174170
  }
174171
174171
  return priority;
174172
174172
  }
174173
- function specify(type2, spec, index) {
174174
- var p4 = parseMediaType(type2);
174173
+ function specify(type, spec, index) {
174174
+ var p4 = parseMediaType(type);
174175
174175
  var s5 = 0;
174176
174176
  if (!p4) {
174177
174177
  return null;
@@ -174208,8 +174208,8 @@ var require_mediaType2 = __commonJS((exports, module) => {
174208
174208
  if (!provided) {
174209
174209
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullType);
174210
174210
  }
174211
- var priorities = provided.map(function getPriority(type2, index) {
174212
- return getMediaTypePriority(type2, accepts, index);
174211
+ var priorities = provided.map(function getPriority(type, index) {
174212
+ return getMediaTypePriority(type, accepts, index);
174213
174213
  });
174214
174214
  return priorities.filter(isQuality).sort(compareSpecs).map(function getType2(priority) {
174215
174215
  return provided[priorities.indexOf(priority)];
@@ -182876,11 +182876,11 @@ var require_mime_types2 = __commonJS((exports) => {
182876
182876
  exports.lookup = lookup;
182877
182877
  exports.types = Object.create(null);
182878
182878
  populateMaps(exports.extensions, exports.types);
182879
- function charset(type2) {
182880
- if (!type2 || typeof type2 !== "string") {
182879
+ function charset(type) {
182880
+ if (!type || typeof type !== "string") {
182881
182881
  return false;
182882
182882
  }
182883
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
182883
+ var match = EXTRACT_TYPE_REGEXP.exec(type);
182884
182884
  var mime = match && db2[match[1].toLowerCase()];
182885
182885
  if (mime && mime.charset) {
182886
182886
  return mime.charset;
@@ -182905,11 +182905,11 @@ var require_mime_types2 = __commonJS((exports) => {
182905
182905
  }
182906
182906
  return mime;
182907
182907
  }
182908
- function extension(type2) {
182909
- if (!type2 || typeof type2 !== "string") {
182908
+ function extension(type) {
182909
+ if (!type || typeof type !== "string") {
182910
182910
  return false;
182911
182911
  }
182912
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
182912
+ var match = EXTRACT_TYPE_REGEXP.exec(type);
182913
182913
  var exts = match && exports.extensions[match[1].toLowerCase()];
182914
182914
  if (!exts || !exts.length) {
182915
182915
  return false;
@@ -182928,13 +182928,13 @@ var require_mime_types2 = __commonJS((exports) => {
182928
182928
  }
182929
182929
  function populateMaps(extensions, types) {
182930
182930
  var preference = ["nginx", "apache", undefined, "iana"];
182931
- Object.keys(db2).forEach(function forEachMimeType(type2) {
182932
- var mime = db2[type2];
182931
+ Object.keys(db2).forEach(function forEachMimeType(type) {
182932
+ var mime = db2[type];
182933
182933
  var exts = mime.extensions;
182934
182934
  if (!exts || !exts.length) {
182935
182935
  return;
182936
182936
  }
182937
- extensions[type2] = exts;
182937
+ extensions[type] = exts;
182938
182938
  for (var i5 = 0;i5 < exts.length; i5++) {
182939
182939
  var extension2 = exts[i5];
182940
182940
  if (types[extension2]) {
@@ -182944,7 +182944,7 @@ var require_mime_types2 = __commonJS((exports) => {
182944
182944
  continue;
182945
182945
  }
182946
182946
  }
182947
- types[extension2] = type2;
182947
+ types[extension2] = type;
182948
182948
  }
182949
182949
  });
182950
182950
  }
@@ -183026,11 +183026,11 @@ var require_accepts2 = __commonJS((exports, module) => {
183026
183026
  }
183027
183027
  return this.negotiator.languages(languages2)[0] || false;
183028
183028
  };
183029
- function extToMime(type2) {
183030
- return type2.indexOf("/") === -1 ? mime.lookup(type2) : type2;
183029
+ function extToMime(type) {
183030
+ return type.indexOf("/") === -1 ? mime.lookup(type) : type;
183031
183031
  }
183032
- function validMime(type2) {
183033
- return typeof type2 === "string";
183032
+ function validMime(type) {
183033
+ return typeof type === "string";
183034
183034
  }
183035
183035
  });
183036
183036
 
@@ -183124,11 +183124,11 @@ var require_encodePacket = __commonJS((exports) => {
183124
183124
  exports.encodePacket = undefined;
183125
183125
  exports.encodePacketToBinary = encodePacketToBinary;
183126
183126
  var commons_js_1 = require_commons();
183127
- var encodePacket = ({ type: type2, data }, supportsBinary, callback) => {
183127
+ var encodePacket = ({ type, data }, supportsBinary, callback) => {
183128
183128
  if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) {
183129
183129
  return callback(supportsBinary ? data : "b" + toBuffer(data, true).toString("base64"));
183130
183130
  }
183131
- return callback(commons_js_1.PACKET_TYPES[type2] + (data || ""));
183131
+ return callback(commons_js_1.PACKET_TYPES[type] + (data || ""));
183132
183132
  };
183133
183133
  exports.encodePacket = encodePacket;
183134
183134
  var toBuffer = (data, forceBufferConversion) => {
@@ -183166,22 +183166,22 @@ var require_decodePacket = __commonJS((exports) => {
183166
183166
  data: mapBinary(encodedPacket, binaryType)
183167
183167
  };
183168
183168
  }
183169
- const type2 = encodedPacket.charAt(0);
183170
- if (type2 === "b") {
183169
+ const type = encodedPacket.charAt(0);
183170
+ if (type === "b") {
183171
183171
  const buffer2 = Buffer.from(encodedPacket.substring(1), "base64");
183172
183172
  return {
183173
183173
  type: "message",
183174
183174
  data: mapBinary(buffer2, binaryType)
183175
183175
  };
183176
183176
  }
183177
- if (!commons_js_1.PACKET_TYPES_REVERSE[type2]) {
183177
+ if (!commons_js_1.PACKET_TYPES_REVERSE[type]) {
183178
183178
  return commons_js_1.ERROR_PACKET;
183179
183179
  }
183180
183180
  return encodedPacket.length > 1 ? {
183181
- type: commons_js_1.PACKET_TYPES_REVERSE[type2],
183181
+ type: commons_js_1.PACKET_TYPES_REVERSE[type],
183182
183182
  data: encodedPacket.substring(1)
183183
183183
  } : {
183184
- type: commons_js_1.PACKET_TYPES_REVERSE[type2]
183184
+ type: commons_js_1.PACKET_TYPES_REVERSE[type]
183185
183185
  };
183186
183186
  };
183187
183187
  exports.decodePacket = decodePacket;
@@ -183608,10 +183608,10 @@ var require_parser_v3 = __commonJS((exports) => {
183608
183608
  if (data === undefined) {
183609
183609
  return err;
183610
183610
  }
183611
- let type2;
183611
+ let type;
183612
183612
  if (typeof data === "string") {
183613
- type2 = data.charAt(0);
183614
- if (type2 === "b") {
183613
+ type = data.charAt(0);
183614
+ if (type === "b") {
183615
183615
  return decodeBase64Packet(data.slice(1), binaryType);
183616
183616
  }
183617
183617
  if (utf8decode) {
@@ -183620,25 +183620,25 @@ var require_parser_v3 = __commonJS((exports) => {
183620
183620
  return err;
183621
183621
  }
183622
183622
  }
183623
- if (Number(type2) != type2 || !packetslist[type2]) {
183623
+ if (Number(type) != type || !packetslist[type]) {
183624
183624
  return err;
183625
183625
  }
183626
183626
  if (data.length > 1) {
183627
- return { type: packetslist[type2], data: data.slice(1) };
183627
+ return { type: packetslist[type], data: data.slice(1) };
183628
183628
  } else {
183629
- return { type: packetslist[type2] };
183629
+ return { type: packetslist[type] };
183630
183630
  }
183631
183631
  }
183632
183632
  if (binaryType === "arraybuffer") {
183633
183633
  var intArray = new Uint8Array(data);
183634
- type2 = intArray[0];
183635
- return { type: packetslist[type2], data: intArray.buffer.slice(1) };
183634
+ type = intArray[0];
183635
+ return { type: packetslist[type], data: intArray.buffer.slice(1) };
183636
183636
  }
183637
183637
  if (data instanceof ArrayBuffer) {
183638
183638
  data = arrayBufferToBuffer(data);
183639
183639
  }
183640
- type2 = data[0];
183641
- return { type: packetslist[type2], data: data.slice(1) };
183640
+ type = data[0];
183641
+ return { type: packetslist[type], data: data.slice(1) };
183642
183642
  }
183643
183643
  function tryDecode(data) {
183644
183644
  try {
@@ -183649,7 +183649,7 @@ var require_parser_v3 = __commonJS((exports) => {
183649
183649
  return data;
183650
183650
  }
183651
183651
  function decodeBase64Packet(msg, binaryType) {
183652
- var type2 = packetslist[msg.charAt(0)];
183652
+ var type = packetslist[msg.charAt(0)];
183653
183653
  var data = Buffer.from(msg.slice(1), "base64");
183654
183654
  if (binaryType === "arraybuffer") {
183655
183655
  var abv = new Uint8Array(data.length);
@@ -183658,7 +183658,7 @@ var require_parser_v3 = __commonJS((exports) => {
183658
183658
  }
183659
183659
  data = abv.buffer;
183660
183660
  }
183661
- return { type: type2, data };
183661
+ return { type, data };
183662
183662
  }
183663
183663
  function encodePayload(packets, supportsBinary, callback) {
183664
183664
  if (typeof supportsBinary === "function") {
@@ -183951,8 +183951,8 @@ var require_charset3 = __commonJS((exports, module) => {
183951
183951
  if (!provided) {
183952
183952
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullCharset);
183953
183953
  }
183954
- var priorities = provided.map(function getPriority(type2, index) {
183955
- return getCharsetPriority(type2, accepts, index);
183954
+ var priorities = provided.map(function getPriority(type, index) {
183955
+ return getCharsetPriority(type, accepts, index);
183956
183956
  });
183957
183957
  return priorities.filter(isQuality).sort(compareSpecs).map(function getCharset(priority) {
183958
183958
  return provided[priorities.indexOf(priority)];
@@ -184047,8 +184047,8 @@ var require_encoding3 = __commonJS((exports, module) => {
184047
184047
  if (!provided) {
184048
184048
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullEncoding);
184049
184049
  }
184050
- var priorities = provided.map(function getPriority(type2, index) {
184051
- return getEncodingPriority(type2, accepts, index);
184050
+ var priorities = provided.map(function getPriority(type, index) {
184051
+ return getEncodingPriority(type, accepts, index);
184052
184052
  });
184053
184053
  return priorities.filter(isQuality).sort(compareSpecs).map(function getEncoding(priority) {
184054
184054
  return provided[priorities.indexOf(priority)];
@@ -184143,8 +184143,8 @@ var require_language3 = __commonJS((exports, module) => {
184143
184143
  if (!provided) {
184144
184144
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullLanguage);
184145
184145
  }
184146
- var priorities = provided.map(function getPriority(type2, index) {
184147
- return getLanguagePriority(type2, accepts, index);
184146
+ var priorities = provided.map(function getPriority(type, index) {
184147
+ return getLanguagePriority(type, accepts, index);
184148
184148
  });
184149
184149
  return priorities.filter(isQuality).sort(compareSpecs).map(function getLanguage(priority) {
184150
184150
  return provided[priorities.indexOf(priority)];
@@ -184184,7 +184184,7 @@ var require_mediaType3 = __commonJS((exports, module) => {
184184
184184
  var params = Object.create(null);
184185
184185
  var q13 = 1;
184186
184186
  var subtype = match[2];
184187
- var type2 = match[1];
184187
+ var type = match[1];
184188
184188
  if (match[3]) {
184189
184189
  var kvps = splitParameters(match[3]).map(splitKeyValuePair);
184190
184190
  for (var j10 = 0;j10 < kvps.length; j10++) {
@@ -184200,25 +184200,25 @@ var require_mediaType3 = __commonJS((exports, module) => {
184200
184200
  }
184201
184201
  }
184202
184202
  return {
184203
- type: type2,
184203
+ type,
184204
184204
  subtype,
184205
184205
  params,
184206
184206
  q: q13,
184207
184207
  i: i5
184208
184208
  };
184209
184209
  }
184210
- function getMediaTypePriority(type2, accepted, index) {
184210
+ function getMediaTypePriority(type, accepted, index) {
184211
184211
  var priority = { o: -1, q: 0, s: 0 };
184212
184212
  for (var i5 = 0;i5 < accepted.length; i5++) {
184213
- var spec = specify(type2, accepted[i5], index);
184213
+ var spec = specify(type, accepted[i5], index);
184214
184214
  if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
184215
184215
  priority = spec;
184216
184216
  }
184217
184217
  }
184218
184218
  return priority;
184219
184219
  }
184220
- function specify(type2, spec, index) {
184221
- var p4 = parseMediaType(type2);
184220
+ function specify(type, spec, index) {
184221
+ var p4 = parseMediaType(type);
184222
184222
  var s5 = 0;
184223
184223
  if (!p4) {
184224
184224
  return null;
@@ -184255,8 +184255,8 @@ var require_mediaType3 = __commonJS((exports, module) => {
184255
184255
  if (!provided) {
184256
184256
  return accepts.filter(isQuality).sort(compareSpecs).map(getFullType);
184257
184257
  }
184258
- var priorities = provided.map(function getPriority(type2, index) {
184259
- return getMediaTypePriority(type2, accepts, index);
184258
+ var priorities = provided.map(function getPriority(type, index) {
184259
+ return getMediaTypePriority(type, accepts, index);
184260
184260
  });
184261
184261
  return priorities.filter(isQuality).sort(compareSpecs).map(function getType2(priority) {
184262
184262
  return provided[priorities.indexOf(priority)];
@@ -192923,11 +192923,11 @@ var require_mime_types3 = __commonJS((exports) => {
192923
192923
  exports.lookup = lookup;
192924
192924
  exports.types = Object.create(null);
192925
192925
  populateMaps(exports.extensions, exports.types);
192926
- function charset(type2) {
192927
- if (!type2 || typeof type2 !== "string") {
192926
+ function charset(type) {
192927
+ if (!type || typeof type !== "string") {
192928
192928
  return false;
192929
192929
  }
192930
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
192930
+ var match = EXTRACT_TYPE_REGEXP.exec(type);
192931
192931
  var mime = match && db2[match[1].toLowerCase()];
192932
192932
  if (mime && mime.charset) {
192933
192933
  return mime.charset;
@@ -192952,11 +192952,11 @@ var require_mime_types3 = __commonJS((exports) => {
192952
192952
  }
192953
192953
  return mime;
192954
192954
  }
192955
- function extension(type2) {
192956
- if (!type2 || typeof type2 !== "string") {
192955
+ function extension(type) {
192956
+ if (!type || typeof type !== "string") {
192957
192957
  return false;
192958
192958
  }
192959
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
192959
+ var match = EXTRACT_TYPE_REGEXP.exec(type);
192960
192960
  var exts = match && exports.extensions[match[1].toLowerCase()];
192961
192961
  if (!exts || !exts.length) {
192962
192962
  return false;
@@ -192975,13 +192975,13 @@ var require_mime_types3 = __commonJS((exports) => {
192975
192975
  }
192976
192976
  function populateMaps(extensions, types) {
192977
192977
  var preference = ["nginx", "apache", undefined, "iana"];
192978
- Object.keys(db2).forEach(function forEachMimeType(type2) {
192979
- var mime = db2[type2];
192978
+ Object.keys(db2).forEach(function forEachMimeType(type) {
192979
+ var mime = db2[type];
192980
192980
  var exts = mime.extensions;
192981
192981
  if (!exts || !exts.length) {
192982
192982
  return;
192983
192983
  }
192984
- extensions[type2] = exts;
192984
+ extensions[type] = exts;
192985
192985
  for (var i5 = 0;i5 < exts.length; i5++) {
192986
192986
  var extension2 = exts[i5];
192987
192987
  if (types[extension2]) {
@@ -192991,7 +192991,7 @@ var require_mime_types3 = __commonJS((exports) => {
192991
192991
  continue;
192992
192992
  }
192993
192993
  }
192994
- types[extension2] = type2;
192994
+ types[extension2] = type;
192995
192995
  }
192996
192996
  });
192997
192997
  }
@@ -193073,11 +193073,11 @@ var require_accepts3 = __commonJS((exports, module) => {
193073
193073
  }
193074
193074
  return this.negotiator.languages(languages2)[0] || false;
193075
193075
  };
193076
- function extToMime(type2) {
193077
- return type2.indexOf("/") === -1 ? mime.lookup(type2) : type2;
193076
+ function extToMime(type) {
193077
+ return type.indexOf("/") === -1 ? mime.lookup(type) : type;
193078
193078
  }
193079
- function validMime(type2) {
193080
- return typeof type2 === "string";
193079
+ function validMime(type) {
193080
+ return typeof type === "string";
193081
193081
  }
193082
193082
  });
193083
193083
 
@@ -193774,16 +193774,16 @@ var require_socket = __commonJS((exports) => {
193774
193774
  this.sendPacket("message", data, options8, callback);
193775
193775
  return this;
193776
193776
  }
193777
- sendPacket(type2, data, options8 = {}, callback) {
193777
+ sendPacket(type, data, options8 = {}, callback) {
193778
193778
  if (typeof options8 === "function") {
193779
193779
  callback = options8;
193780
193780
  options8 = {};
193781
193781
  }
193782
193782
  if (this.readyState !== "closing" && this.readyState !== "closed") {
193783
- debug('sending packet "%s" (%s)', type2, data);
193783
+ debug('sending packet "%s" (%s)', type, data);
193784
193784
  options8.compress = options8.compress !== false;
193785
193785
  const packet = {
193786
- type: type2,
193786
+ type,
193787
193787
  options: options8
193788
193788
  };
193789
193789
  if (data)
@@ -195180,9 +195180,9 @@ var require_event_target = __commonJS((exports, module) => {
195180
195180
  var kWasClean = Symbol("kWasClean");
195181
195181
 
195182
195182
  class Event2 {
195183
- constructor(type2) {
195183
+ constructor(type) {
195184
195184
  this[kTarget] = null;
195185
- this[kType] = type2;
195185
+ this[kType] = type;
195186
195186
  }
195187
195187
  get target() {
195188
195188
  return this[kTarget];
@@ -195195,8 +195195,8 @@ var require_event_target = __commonJS((exports, module) => {
195195
195195
  Object.defineProperty(Event2.prototype, "type", { enumerable: true });
195196
195196
 
195197
195197
  class CloseEvent extends Event2 {
195198
- constructor(type2, options8 = {}) {
195199
- super(type2);
195198
+ constructor(type, options8 = {}) {
195199
+ super(type);
195200
195200
  this[kCode] = options8.code === undefined ? 0 : options8.code;
195201
195201
  this[kReason] = options8.reason === undefined ? "" : options8.reason;
195202
195202
  this[kWasClean] = options8.wasClean === undefined ? false : options8.wasClean;
@@ -195216,8 +195216,8 @@ var require_event_target = __commonJS((exports, module) => {
195216
195216
  Object.defineProperty(CloseEvent.prototype, "wasClean", { enumerable: true });
195217
195217
 
195218
195218
  class ErrorEvent extends Event2 {
195219
- constructor(type2, options8 = {}) {
195220
- super(type2);
195219
+ constructor(type, options8 = {}) {
195220
+ super(type);
195221
195221
  this[kError] = options8.error === undefined ? null : options8.error;
195222
195222
  this[kMessage] = options8.message === undefined ? "" : options8.message;
195223
195223
  }
@@ -195232,8 +195232,8 @@ var require_event_target = __commonJS((exports, module) => {
195232
195232
  Object.defineProperty(ErrorEvent.prototype, "message", { enumerable: true });
195233
195233
 
195234
195234
  class MessageEvent extends Event2 {
195235
- constructor(type2, options8 = {}) {
195236
- super(type2);
195235
+ constructor(type, options8 = {}) {
195236
+ super(type);
195237
195237
  this[kData] = options8.data === undefined ? null : options8.data;
195238
195238
  }
195239
195239
  get data() {
@@ -195242,14 +195242,14 @@ var require_event_target = __commonJS((exports, module) => {
195242
195242
  }
195243
195243
  Object.defineProperty(MessageEvent.prototype, "data", { enumerable: true });
195244
195244
  var EventTarget = {
195245
- addEventListener(type2, handler, options8 = {}) {
195246
- for (const listener of this.listeners(type2)) {
195245
+ addEventListener(type, handler, options8 = {}) {
195246
+ for (const listener of this.listeners(type)) {
195247
195247
  if (!options8[kForOnEventAttribute] && listener[kListener] === handler && !listener[kForOnEventAttribute]) {
195248
195248
  return;
195249
195249
  }
195250
195250
  }
195251
195251
  let wrapper;
195252
- if (type2 === "message") {
195252
+ if (type === "message") {
195253
195253
  wrapper = function onMessage2(data, isBinary) {
195254
195254
  const event = new MessageEvent("message", {
195255
195255
  data: isBinary ? data : data.toString()
@@ -195257,7 +195257,7 @@ var require_event_target = __commonJS((exports, module) => {
195257
195257
  event[kTarget] = this;
195258
195258
  callListener(handler, this, event);
195259
195259
  };
195260
- } else if (type2 === "close") {
195260
+ } else if (type === "close") {
195261
195261
  wrapper = function onClose(code2, message) {
195262
195262
  const event = new CloseEvent("close", {
195263
195263
  code: code2,
@@ -195267,7 +195267,7 @@ var require_event_target = __commonJS((exports, module) => {
195267
195267
  event[kTarget] = this;
195268
195268
  callListener(handler, this, event);
195269
195269
  };
195270
- } else if (type2 === "error") {
195270
+ } else if (type === "error") {
195271
195271
  wrapper = function onError(error48) {
195272
195272
  const event = new ErrorEvent("error", {
195273
195273
  error: error48,
@@ -195276,7 +195276,7 @@ var require_event_target = __commonJS((exports, module) => {
195276
195276
  event[kTarget] = this;
195277
195277
  callListener(handler, this, event);
195278
195278
  };
195279
- } else if (type2 === "open") {
195279
+ } else if (type === "open") {
195280
195280
  wrapper = function onOpen() {
195281
195281
  const event = new Event2("open");
195282
195282
  event[kTarget] = this;
@@ -195288,15 +195288,15 @@ var require_event_target = __commonJS((exports, module) => {
195288
195288
  wrapper[kForOnEventAttribute] = !!options8[kForOnEventAttribute];
195289
195289
  wrapper[kListener] = handler;
195290
195290
  if (options8.once) {
195291
- this.once(type2, wrapper);
195291
+ this.once(type, wrapper);
195292
195292
  } else {
195293
- this.on(type2, wrapper);
195293
+ this.on(type, wrapper);
195294
195294
  }
195295
195295
  },
195296
- removeEventListener(type2, handler) {
195297
- for (const listener of this.listeners(type2)) {
195296
+ removeEventListener(type, handler) {
195297
+ for (const listener of this.listeners(type)) {
195298
195298
  if (listener[kListener] === handler && !listener[kForOnEventAttribute]) {
195299
- this.removeListener(type2, listener);
195299
+ this.removeListener(type, listener);
195300
195300
  break;
195301
195301
  }
195302
195302
  }
@@ -195558,12 +195558,12 @@ var require_websocket2 = __commonJS((exports, module) => {
195558
195558
  get binaryType() {
195559
195559
  return this._binaryType;
195560
195560
  }
195561
- set binaryType(type2) {
195562
- if (!BINARY_TYPES.includes(type2))
195561
+ set binaryType(type) {
195562
+ if (!BINARY_TYPES.includes(type))
195563
195563
  return;
195564
- this._binaryType = type2;
195564
+ this._binaryType = type;
195565
195565
  if (this._receiver)
195566
- this._receiver._binaryType = type2;
195566
+ this._receiver._binaryType = type;
195567
195567
  }
195568
195568
  get bufferedAmount() {
195569
195569
  if (!this._socket)
@@ -198533,8 +198533,8 @@ var require_cjs4 = __commonJS((exports) => {
198533
198533
  return false;
198534
198534
  }
198535
198535
  }
198536
- static isPayloadValid(type2, payload) {
198537
- switch (type2) {
198536
+ static isPayloadValid(type, payload) {
198537
+ switch (type) {
198538
198538
  case PacketType.CONNECT:
198539
198539
  return isObject5(payload);
198540
198540
  case PacketType.DISCONNECT:
@@ -198590,8 +198590,8 @@ var require_cjs4 = __commonJS((exports) => {
198590
198590
  function isObject5(value) {
198591
198591
  return Object.prototype.toString.call(value) === "[object Object]";
198592
198592
  }
198593
- function isDataValid(type2, payload) {
198594
- switch (type2) {
198593
+ function isDataValid(type, payload) {
198594
+ switch (type) {
198595
198595
  case PacketType.CONNECT:
198596
198596
  return payload === undefined || isObject5(payload);
198597
198597
  case PacketType.DISCONNECT:
@@ -201090,19 +201090,19 @@ var require_dist4 = __commonJS((exports, module) => {
201090
201090
  }
201091
201091
  const filename = req.getUrl().replace(this._path, "").replace(/\?.*$/, "").replace(/^\//, "");
201092
201092
  const isMap = dotMapRegex.test(filename);
201093
- const type2 = isMap ? "map" : "source";
201093
+ const type = isMap ? "map" : "source";
201094
201094
  const expectedEtag = '"' + clientVersion + '"';
201095
201095
  const weakEtag = "W/" + expectedEtag;
201096
201096
  const etag = req.getHeader("if-none-match");
201097
201097
  if (etag) {
201098
201098
  if (expectedEtag === etag || weakEtag === etag) {
201099
- debug("serve client %s 304", type2);
201099
+ debug("serve client %s 304", type);
201100
201100
  res.writeStatus("304 Not Modified");
201101
201101
  res.end();
201102
201102
  return;
201103
201103
  }
201104
201104
  }
201105
- debug("serve client %s", type2);
201105
+ debug("serve client %s", type);
201106
201106
  res.writeHeader("cache-control", "public, max-age=0");
201107
201107
  res.writeHeader("content-type", "application/" + (isMap ? "json" : "javascript") + "; charset=utf-8");
201108
201108
  res.writeHeader("etag", expectedEtag);
@@ -201143,19 +201143,19 @@ var require_dist4 = __commonJS((exports, module) => {
201143
201143
  serve(req, res) {
201144
201144
  const filename = req.url.replace(this._path, "").replace(/\?.*$/, "");
201145
201145
  const isMap = dotMapRegex.test(filename);
201146
- const type2 = isMap ? "map" : "source";
201146
+ const type = isMap ? "map" : "source";
201147
201147
  const expectedEtag = '"' + clientVersion + '"';
201148
201148
  const weakEtag = "W/" + expectedEtag;
201149
201149
  const etag = req.headers["if-none-match"];
201150
201150
  if (etag) {
201151
201151
  if (expectedEtag === etag || weakEtag === etag) {
201152
- debug("serve client %s 304", type2);
201152
+ debug("serve client %s 304", type);
201153
201153
  res.writeHead(304);
201154
201154
  res.end();
201155
201155
  return;
201156
201156
  }
201157
201157
  }
201158
- debug("serve client %s", type2);
201158
+ debug("serve client %s", type);
201159
201159
  res.setHeader("Cache-Control", "public, max-age=0");
201160
201160
  res.setHeader("Content-Type", "application/" + (isMap ? "json" : "javascript") + "; charset=utf-8");
201161
201161
  res.setHeader("ETag", expectedEtag);
@@ -201353,14 +201353,14 @@ var require_media_typer2 = __commonJS((exports) => {
201353
201353
  var parameters = obj.parameters;
201354
201354
  var subtype = obj.subtype;
201355
201355
  var suffix = obj.suffix;
201356
- var type2 = obj.type;
201357
- if (!type2 || !typeNameRegExp.test(type2)) {
201356
+ var type = obj.type;
201357
+ if (!type || !typeNameRegExp.test(type)) {
201358
201358
  throw new TypeError("invalid type");
201359
201359
  }
201360
201360
  if (!subtype || !subtypeNameRegExp.test(subtype)) {
201361
201361
  throw new TypeError("invalid subtype");
201362
201362
  }
201363
- var string4 = type2 + "/" + subtype;
201363
+ var string4 = type + "/" + subtype;
201364
201364
  if (suffix) {
201365
201365
  if (!typeNameRegExp.test(suffix)) {
201366
201366
  throw new TypeError("invalid suffix");
@@ -201391,10 +201391,10 @@ var require_media_typer2 = __commonJS((exports) => {
201391
201391
  throw new TypeError("argument string is required to be a string");
201392
201392
  }
201393
201393
  var index = string4.indexOf(";");
201394
- var type2 = index !== -1 ? string4.substr(0, index) : string4;
201394
+ var type = index !== -1 ? string4.substr(0, index) : string4;
201395
201395
  var key2;
201396
201396
  var match;
201397
- var obj = splitType(type2);
201397
+ var obj = splitType(type);
201398
201398
  var params = {};
201399
201399
  var value;
201400
201400
  paramRegExp.lastIndex = index;
@@ -201439,7 +201439,7 @@ var require_media_typer2 = __commonJS((exports) => {
201439
201439
  if (!match) {
201440
201440
  throw new TypeError("invalid media type");
201441
201441
  }
201442
- var type2 = match[1];
201442
+ var type = match[1];
201443
201443
  var subtype = match[2];
201444
201444
  var suffix;
201445
201445
  var index = subtype.lastIndexOf("+");
@@ -201448,7 +201448,7 @@ var require_media_typer2 = __commonJS((exports) => {
201448
201448
  subtype = subtype.substr(0, index);
201449
201449
  }
201450
201450
  var obj = {
201451
- type: type2,
201451
+ type,
201452
201452
  subtype,
201453
201453
  suffix
201454
201454
  };
@@ -209999,11 +209999,11 @@ var require_mime_types4 = __commonJS((exports) => {
209999
209999
  exports.lookup = lookup;
210000
210000
  exports.types = Object.create(null);
210001
210001
  populateMaps(exports.extensions, exports.types);
210002
- function charset(type2) {
210003
- if (!type2 || typeof type2 !== "string") {
210002
+ function charset(type) {
210003
+ if (!type || typeof type !== "string") {
210004
210004
  return false;
210005
210005
  }
210006
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
210006
+ var match = EXTRACT_TYPE_REGEXP.exec(type);
210007
210007
  var mime = match && db2[match[1].toLowerCase()];
210008
210008
  if (mime && mime.charset) {
210009
210009
  return mime.charset;
@@ -210028,11 +210028,11 @@ var require_mime_types4 = __commonJS((exports) => {
210028
210028
  }
210029
210029
  return mime;
210030
210030
  }
210031
- function extension(type2) {
210032
- if (!type2 || typeof type2 !== "string") {
210031
+ function extension(type) {
210032
+ if (!type || typeof type !== "string") {
210033
210033
  return false;
210034
210034
  }
210035
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
210035
+ var match = EXTRACT_TYPE_REGEXP.exec(type);
210036
210036
  var exts = match && exports.extensions[match[1].toLowerCase()];
210037
210037
  if (!exts || !exts.length) {
210038
210038
  return false;
@@ -210051,13 +210051,13 @@ var require_mime_types4 = __commonJS((exports) => {
210051
210051
  }
210052
210052
  function populateMaps(extensions, types) {
210053
210053
  var preference = ["nginx", "apache", undefined, "iana"];
210054
- Object.keys(db2).forEach(function forEachMimeType(type2) {
210055
- var mime = db2[type2];
210054
+ Object.keys(db2).forEach(function forEachMimeType(type) {
210055
+ var mime = db2[type];
210056
210056
  var exts = mime.extensions;
210057
210057
  if (!exts || !exts.length) {
210058
210058
  return;
210059
210059
  }
210060
- extensions[type2] = exts;
210060
+ extensions[type] = exts;
210061
210061
  for (var i5 = 0;i5 < exts.length; i5++) {
210062
210062
  var extension2 = exts[i5];
210063
210063
  if (types[extension2]) {
@@ -210067,7 +210067,7 @@ var require_mime_types4 = __commonJS((exports) => {
210067
210067
  continue;
210068
210068
  }
210069
210069
  }
210070
- types[extension2] = type2;
210070
+ types[extension2] = type;
210071
210071
  }
210072
210072
  });
210073
210073
  }
@@ -210104,10 +210104,10 @@ var require_type_is2 = __commonJS((exports, module) => {
210104
210104
  if (!types || !types.length) {
210105
210105
  return val;
210106
210106
  }
210107
- var type2;
210107
+ var type;
210108
210108
  for (i5 = 0;i5 < types.length; i5++) {
210109
- if (mimeMatch(normalize2(type2 = types[i5]), val)) {
210110
- return type2[0] === "+" || type2.indexOf("*") !== -1 ? val : type2;
210109
+ if (mimeMatch(normalize2(type = types[i5]), val)) {
210110
+ return type[0] === "+" || type.indexOf("*") !== -1 ? val : type;
210111
210111
  }
210112
210112
  }
210113
210113
  return false;
@@ -210129,20 +210129,20 @@ var require_type_is2 = __commonJS((exports, module) => {
210129
210129
  var value = req.headers["content-type"];
210130
210130
  return typeis(value, types);
210131
210131
  }
210132
- function normalize2(type2) {
210133
- if (typeof type2 !== "string") {
210132
+ function normalize2(type) {
210133
+ if (typeof type !== "string") {
210134
210134
  return false;
210135
210135
  }
210136
- switch (type2) {
210136
+ switch (type) {
210137
210137
  case "urlencoded":
210138
210138
  return "application/x-www-form-urlencoded";
210139
210139
  case "multipart":
210140
210140
  return "multipart/*";
210141
210141
  }
210142
- if (type2[0] === "+") {
210143
- return "*/*" + type2;
210142
+ if (type[0] === "+") {
210143
+ return "*/*" + type;
210144
210144
  }
210145
- return type2.indexOf("/") === -1 ? mime.lookup(type2) : type2;
210145
+ return type.indexOf("/") === -1 ? mime.lookup(type) : type;
210146
210146
  }
210147
210147
  function mimeMatch(expected, actual) {
210148
210148
  if (expected === false) {
@@ -210165,9 +210165,9 @@ var require_type_is2 = __commonJS((exports, module) => {
210165
210165
  return true;
210166
210166
  }
210167
210167
  function normalizeType(value) {
210168
- var type2 = typer.parse(value);
210169
- type2.parameters = undefined;
210170
- return typer.format(type2);
210168
+ var type = typer.parse(value);
210169
+ type.parameters = undefined;
210170
+ return typer.format(type);
210171
210171
  }
210172
210172
  function tryNormalizeType(value) {
210173
210173
  if (!value) {
@@ -210198,7 +210198,7 @@ var require_utils12 = __commonJS((exports, module) => {
210198
210198
  }
210199
210199
  if (i5 === str.length)
210200
210200
  return;
210201
- const type2 = str.slice(0, i5).toLowerCase();
210201
+ const type = str.slice(0, i5).toLowerCase();
210202
210202
  const subtypeStart = ++i5;
210203
210203
  for (;i5 < str.length; ++i5) {
210204
210204
  const code2 = str.charCodeAt(i5);
@@ -210213,7 +210213,7 @@ var require_utils12 = __commonJS((exports, module) => {
210213
210213
  if (i5 === subtypeStart)
210214
210214
  return;
210215
210215
  const subtype = str.slice(subtypeStart, i5).toLowerCase();
210216
- return { type: type2, subtype, params };
210216
+ return { type, subtype, params };
210217
210217
  }
210218
210218
  function parseContentTypeParams(str, i5, params) {
210219
210219
  while (i5 < str.length) {
@@ -210316,8 +210316,8 @@ var require_utils12 = __commonJS((exports, module) => {
210316
210316
  break;
210317
210317
  }
210318
210318
  }
210319
- const type2 = str.slice(0, i5).toLowerCase();
210320
- return { type: type2, params };
210319
+ const type = str.slice(0, i5).toLowerCase();
210320
+ return { type, params };
210321
210321
  }
210322
210322
  function parseDispositionParams(str, i5, params, defDecoder) {
210323
210323
  while (i5 < str.length) {
@@ -213820,8 +213820,8 @@ var require_lib7 = __commonJS((exports, module) => {
213820
213820
  const conType = parseContentType(headers["content-type"]);
213821
213821
  if (!conType)
213822
213822
  throw new Error("Malformed content type");
213823
- for (const type2 of TYPES) {
213824
- const matched = type2.detect(conType);
213823
+ for (const type of TYPES) {
213824
+ const matched = type.detect(conType);
213825
213825
  if (!matched)
213826
213826
  continue;
213827
213827
  const instanceCfg = {
@@ -213841,7 +213841,7 @@ var require_lib7 = __commonJS((exports, module) => {
213841
213841
  instanceCfg.defCharset = cfg.defCharset;
213842
213842
  instanceCfg.defParamCharset = cfg.defParamCharset;
213843
213843
  instanceCfg.preservePath = cfg.preservePath;
213844
- return new type2(instanceCfg);
213844
+ return new type(instanceCfg);
213845
213845
  }
213846
213846
  throw new Error(`Unsupported content type: ${headers["content-type"]}`);
213847
213847
  }
@@ -214899,8 +214899,8 @@ var require_errors4 = __commonJS((exports, module) => {
214899
214899
  if (endsWith(name2, " argument")) {
214900
214900
  msg = `The ${name2} ${determiner} ${oneOf(expected, "type")}`;
214901
214901
  } else {
214902
- const type2 = includes(name2, ".") ? "property" : "argument";
214903
- msg = `The "${name2}" ${type2} ${determiner} ${oneOf(expected, "type")}`;
214902
+ const type = includes(name2, ".") ? "property" : "argument";
214903
+ msg = `The "${name2}" ${type} ${determiner} ${oneOf(expected, "type")}`;
214904
214904
  }
214905
214905
  msg += `. Received type ${typeof actual}`;
214906
214906
  return msg;
@@ -216181,8 +216181,8 @@ var require__stream_readable = __commonJS((exports, module) => {
216181
216181
  var Duplex4;
216182
216182
  Readable6.ReadableState = ReadableState;
216183
216183
  var EE3 = __require("events").EventEmitter;
216184
- var EElistenerCount = function EElistenerCount2(emitter, type2) {
216185
- return emitter.listeners(type2).length;
216184
+ var EElistenerCount = function EElistenerCount2(emitter, type) {
216185
+ return emitter.listeners(type).length;
216186
216186
  };
216187
216187
  var Stream2 = __require("stream");
216188
216188
  var Buffer7 = __require("buffer").Buffer;
@@ -218020,8 +218020,8 @@ var require_multer = __commonJS((exports, module) => {
218020
218020
  // ../../node_modules/lodash/isObject.js
218021
218021
  var require_isObject = __commonJS((exports, module) => {
218022
218022
  function isObject5(value) {
218023
- var type2 = typeof value;
218024
- return value != null && (type2 == "object" || type2 == "function");
218023
+ var type = typeof value;
218024
+ return value != null && (type == "object" || type == "function");
218025
218025
  }
218026
218026
  module.exports = isObject5;
218027
218027
  });
@@ -234018,7 +234018,7 @@ function normalizeBase44Env() {
234018
234018
  loadProjectEnvFiles();
234019
234019
 
234020
234020
  // src/cli/index.ts
234021
- import { dirname as dirname24, join as join28 } from "node:path";
234021
+ import { dirname as dirname23, join as join28 } from "node:path";
234022
234022
  import { fileURLToPath as fileURLToPath6 } from "node:url";
234023
234023
 
234024
234024
  // ../../node_modules/@clack/core/dist/index.mjs
@@ -235715,104 +235715,6 @@ Object.defineProperties(createChalk.prototype, styles2);
235715
235715
  var chalk = createChalk();
235716
235716
  var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
235717
235717
  var source_default = chalk;
235718
- // package.json
235719
- var package_default = {
235720
- name: "base44",
235721
- version: "0.1.1",
235722
- description: "Base44 CLI - Unified interface for managing Base44 applications",
235723
- type: "module",
235724
- bin: {
235725
- base44: "./bin/run.js"
235726
- },
235727
- files: [
235728
- "dist/cli",
235729
- "dist/assets",
235730
- "bin"
235731
- ],
235732
- scripts: {
235733
- build: "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts",
235734
- "build:watch": "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts --watch",
235735
- typecheck: "tsc --noEmit",
235736
- dev: "./bin/dev.ts",
235737
- start: "./bin/run.js",
235738
- clean: "rm -rf dist && mkdir -p dist",
235739
- test: "vitest run",
235740
- "test:npm": "CLI_TEST_RUNNER=npm vitest run",
235741
- "test:binary": "CLI_TEST_RUNNER=binary vitest run",
235742
- "test:watch": "vitest",
235743
- lint: "cd ../.. && bun run lint",
235744
- "lint:fix": "cd ../.. && bun run lint:fix",
235745
- "build:binaries": "bun run infra/build-binaries.ts",
235746
- "package:binaries": "bun run infra/package-binaries.ts"
235747
- },
235748
- keywords: [
235749
- "base44",
235750
- "cli",
235751
- "command-line"
235752
- ],
235753
- author: "",
235754
- license: "MIT",
235755
- repository: {
235756
- type: "git",
235757
- url: "https://github.com/base44/cli"
235758
- },
235759
- devDependencies: {
235760
- "@base44-cli/logger": "workspace:*",
235761
- "@base44/sdk": "^0.8.23",
235762
- "@clack/prompts": "^1.0.1",
235763
- "@seald-io/nedb": "^4.1.2",
235764
- "@types/bun": "^1.2.15",
235765
- "@types/common-tags": "^1.8.4",
235766
- "@types/cors": "^2.8.19",
235767
- "@types/deno": "^2.5.0",
235768
- "@types/ejs": "^3.1.5",
235769
- "@types/express": "^5.0.6",
235770
- "@types/json-schema": "^7.0.15",
235771
- "@types/jsonwebtoken": "^9.0.10",
235772
- "@types/lodash": "^4.17.24",
235773
- "@types/ms": "^2.1.0",
235774
- "@types/multer": "^2.0.0",
235775
- "@types/node": "^22.10.5",
235776
- "@vercel/detect-agent": "^1.1.0",
235777
- chalk: "^5.6.2",
235778
- chokidar: "^5.0.0",
235779
- commander: "^12.1.0",
235780
- "common-tags": "^1.8.2",
235781
- cors: "^2.8.5",
235782
- dotenv: "17.3.1",
235783
- ejs: "^3.1.10",
235784
- execa: "^9.6.1",
235785
- express: "^5.0.1",
235786
- "front-matter": "^4.0.2",
235787
- "get-port": "^7.1.0",
235788
- globby: "^16.1.0",
235789
- "http-proxy-middleware": "^3.0.5",
235790
- "json-schema-to-typescript": "^15.0.4",
235791
- json5: "^2.2.3",
235792
- jsonwebtoken: "^9.0.3",
235793
- ky: "^1.14.2",
235794
- lodash: "^4.17.23",
235795
- ms: "^2.1.3",
235796
- multer: "^2.0.0",
235797
- nanoid: "^5.1.6",
235798
- open: "^11.0.0",
235799
- outdent: "^0.8.0",
235800
- "p-wait-for": "^6.0.0",
235801
- "posthog-node": "5.21.2",
235802
- qs: "^6.12.3",
235803
- "socket.io": "^4.8.3",
235804
- "strip-ansi": "^7.1.2",
235805
- tar: "^7.5.4",
235806
- "tmp-promise": "^3.0.3",
235807
- typescript: "^5.7.2",
235808
- vitest: "^4.0.16",
235809
- yaml: "^2.8.2",
235810
- zod: "^4.3.5"
235811
- },
235812
- engines: {
235813
- node: ">=20.19.0"
235814
- }
235815
- };
235816
235718
 
235817
235719
  // src/cli/utils/theme.ts
235818
235720
  var theme = {
@@ -235832,10 +235734,8 @@ var theme = {
235832
235734
  info: source_default.cyan
235833
235735
  },
235834
235736
  format: {
235835
- errorContext(ctx, errorCode) {
235737
+ errorContext(ctx) {
235836
235738
  const parts = [
235837
- `base44 v${package_default.version}`,
235838
- errorCode ? `Code: ${errorCode}` : null,
235839
235739
  ctx.sessionId ? `Session: ${ctx.sessionId}` : null,
235840
235740
  ctx.appId ? `App: ${ctx.appId}` : null,
235841
235741
  new Date().toISOString()
@@ -236177,9 +236077,6 @@ function getBase44GlobalDir() {
236177
236077
  function getAuthFilePath() {
236178
236078
  return join2(getBase44GlobalDir(), "auth", "auth.json");
236179
236079
  }
236180
- function getTelemetryNoticePath() {
236181
- return join2(getBase44GlobalDir(), "telemetry-notice");
236182
- }
236183
236080
  function getAppConfigPath(projectRoot) {
236184
236081
  return join2(projectRoot, PROJECT_SUBDIR, ".app.jsonc");
236185
236082
  }
@@ -244010,11 +243907,110 @@ var import_front_matter = __toESM(require_front_matter(), 1);
244010
243907
  import { dirname as dirname9, join as join12 } from "node:path";
244011
243908
 
244012
243909
  // src/core/assets.ts
244013
- import { cpSync, existsSync, readdirSync, rmSync } from "node:fs";
243910
+ import { cpSync, existsSync } from "node:fs";
244014
243911
  import { homedir as homedir2 } from "node:os";
244015
243912
  import { join as join11 } from "node:path";
244016
- var ASSETS_ROOT = join11(homedir2(), ".base44", "assets");
244017
- var ASSETS_DIR = join11(ASSETS_ROOT, package_default.version);
243913
+ // package.json
243914
+ var package_default = {
243915
+ name: "base44",
243916
+ version: "0.1.1",
243917
+ description: "Base44 CLI - Unified interface for managing Base44 applications",
243918
+ type: "module",
243919
+ bin: {
243920
+ base44: "./bin/run.js"
243921
+ },
243922
+ files: [
243923
+ "dist/cli",
243924
+ "dist/assets",
243925
+ "bin"
243926
+ ],
243927
+ scripts: {
243928
+ build: "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts",
243929
+ "build:watch": "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts --watch",
243930
+ typecheck: "tsc --noEmit",
243931
+ dev: "./bin/dev.ts",
243932
+ start: "./bin/run.js",
243933
+ clean: "rm -rf dist && mkdir -p dist",
243934
+ test: "vitest run",
243935
+ "test:npm": "CLI_TEST_RUNNER=npm vitest run",
243936
+ "test:binary": "CLI_TEST_RUNNER=binary vitest run",
243937
+ "test:watch": "vitest",
243938
+ lint: "cd ../.. && bun run lint",
243939
+ "lint:fix": "cd ../.. && bun run lint:fix",
243940
+ "build:binaries": "bun run infra/build-binaries.ts",
243941
+ "package:binaries": "bun run infra/package-binaries.ts"
243942
+ },
243943
+ keywords: [
243944
+ "base44",
243945
+ "cli",
243946
+ "command-line"
243947
+ ],
243948
+ author: "",
243949
+ license: "MIT",
243950
+ repository: {
243951
+ type: "git",
243952
+ url: "https://github.com/base44/cli"
243953
+ },
243954
+ devDependencies: {
243955
+ "@base44-cli/logger": "workspace:*",
243956
+ "@base44/sdk": "^0.8.23",
243957
+ "@clack/prompts": "^1.0.1",
243958
+ "@seald-io/nedb": "^4.1.2",
243959
+ "@types/bun": "^1.2.15",
243960
+ "@types/common-tags": "^1.8.4",
243961
+ "@types/cors": "^2.8.19",
243962
+ "@types/deno": "^2.5.0",
243963
+ "@types/ejs": "^3.1.5",
243964
+ "@types/express": "^5.0.6",
243965
+ "@types/json-schema": "^7.0.15",
243966
+ "@types/jsonwebtoken": "^9.0.10",
243967
+ "@types/lodash": "^4.17.24",
243968
+ "@types/ms": "^2.1.0",
243969
+ "@types/multer": "^2.0.0",
243970
+ "@types/node": "^22.10.5",
243971
+ "@vercel/detect-agent": "^1.1.0",
243972
+ chalk: "^5.6.2",
243973
+ chokidar: "^5.0.0",
243974
+ commander: "^12.1.0",
243975
+ "common-tags": "^1.8.2",
243976
+ cors: "^2.8.5",
243977
+ dotenv: "17.3.1",
243978
+ ejs: "^3.1.10",
243979
+ execa: "^9.6.1",
243980
+ express: "^5.0.1",
243981
+ "front-matter": "^4.0.2",
243982
+ "get-port": "^7.1.0",
243983
+ globby: "^16.1.0",
243984
+ "http-proxy-middleware": "^3.0.5",
243985
+ "json-schema-to-typescript": "^15.0.4",
243986
+ json5: "^2.2.3",
243987
+ jsonwebtoken: "^9.0.3",
243988
+ ky: "^1.14.2",
243989
+ lodash: "^4.17.23",
243990
+ ms: "^2.1.3",
243991
+ multer: "^2.0.0",
243992
+ nanoid: "^5.1.6",
243993
+ open: "^11.0.0",
243994
+ outdent: "^0.8.0",
243995
+ "p-wait-for": "^6.0.0",
243996
+ "posthog-node": "5.21.2",
243997
+ qs: "^6.12.3",
243998
+ "socket.io": "^4.8.3",
243999
+ "strip-ansi": "^7.1.2",
244000
+ tar: "^7.5.4",
244001
+ "tmp-promise": "^3.0.3",
244002
+ typescript: "^5.7.2",
244003
+ vitest: "^4.0.16",
244004
+ yaml: "^2.8.2",
244005
+ zod: "^4.3.5"
244006
+ },
244007
+ engines: {
244008
+ node: ">=20.19.0"
244009
+ }
244010
+ };
244011
+
244012
+ // src/core/assets.ts
244013
+ var ASSETS_DIR = join11(homedir2(), ".base44", "assets", package_default.version);
244018
244014
  function getTemplatesDir() {
244019
244015
  return join11(ASSETS_DIR, "templates");
244020
244016
  }
@@ -244033,19 +244029,6 @@ function ensureNpmAssets(sourceDir) {
244033
244029
  if (!existsSync(sourceDir))
244034
244030
  return;
244035
244031
  cpSync(sourceDir, ASSETS_DIR, { recursive: true });
244036
- pruneOldAssetVersions();
244037
- }
244038
- function pruneOldAssetVersions() {
244039
- try {
244040
- for (const entry of readdirSync(ASSETS_ROOT, { withFileTypes: true })) {
244041
- if (entry.isDirectory() && entry.name !== package_default.version) {
244042
- rmSync(join11(ASSETS_ROOT, entry.name), {
244043
- recursive: true,
244044
- force: true
244045
- });
244046
- }
244047
- }
244048
- } catch {}
244049
244032
  }
244050
244033
 
244051
244034
  // src/core/project/template.ts
@@ -251015,6 +250998,7 @@ async function checkForUpgrade() {
251015
250998
  try {
251016
250999
  const { stdout } = await execa("npm", ["view", "base44", "version"], {
251017
251000
  timeout: 1000,
251001
+ shell: true,
251018
251002
  env: { CI: "1" }
251019
251003
  });
251020
251004
  const latestVersion = stdout.trim();
@@ -251075,43 +251059,6 @@ async function printUpgradeNotification(upgradeCheckPromise, distribution) {
251075
251059
  } catch {}
251076
251060
  }
251077
251061
 
251078
- // src/cli/utils/command/bug-report.ts
251079
- import { release, type } from "node:os";
251080
- var ISSUES_URL = "https://github.com/base44/cli/issues/new";
251081
- var MAX_MESSAGE_LENGTH = 300;
251082
- function shouldOfferBugReport(error48) {
251083
- return !isCLIError(error48) || !isUserError(error48);
251084
- }
251085
- function buildBugReportUrl(error48, ctx) {
251086
- const message = error48 instanceof Error ? error48.message : String(error48);
251087
- const truncated = message.length > MAX_MESSAGE_LENGTH ? `${message.slice(0, MAX_MESSAGE_LENGTH)}…` : message;
251088
- const code2 = isCLIError(error48) ? error48.code : "UNEXPECTED";
251089
- const title = `[bug] ${code2}: ${truncated.split(`
251090
- `)[0]?.slice(0, 80)}`;
251091
- const body = [
251092
- "## What happened?",
251093
- "",
251094
- "<!-- Describe what you were doing when the error occurred -->",
251095
- "",
251096
- "## Error",
251097
- "",
251098
- "```",
251099
- truncated,
251100
- "```",
251101
- "",
251102
- "## Environment",
251103
- "",
251104
- `- CLI version: ${package_default.version}`,
251105
- ctx.command?.name ? `- Command: base44 ${ctx.command.name}` : null,
251106
- ctx.sessionId ? `- Session: ${ctx.sessionId}` : null,
251107
- `- OS: ${type()} ${release()} (${process.platform}/${process.arch})`,
251108
- `- Node.js: ${process.version}`
251109
- ].filter((line) => line !== null).join(`
251110
- `);
251111
- const params = new URLSearchParams({ title, body });
251112
- return `${ISSUES_URL}?${params.toString()}`;
251113
- }
251114
-
251115
251062
  // src/cli/utils/command/render.ts
251116
251063
  async function showCommandStart(fullBanner) {
251117
251064
  if (fullBanner) {
@@ -251144,13 +251091,9 @@ function showThemedError(error48, context) {
251144
251091
  R2.error(theme.styles.dim(error48.stack));
251145
251092
  }
251146
251093
  const errorContext = context.errorReporter.getErrorContext();
251147
- if (shouldOfferBugReport(error48)) {
251148
- R2.info(`Report this issue: ${theme.colors.links(buildBugReportUrl(error48, errorContext))}`);
251149
- }
251150
- const errorCode = isCLIError(error48) ? error48.code : undefined;
251151
- Le(theme.format.errorContext(errorContext, errorCode));
251094
+ Le(theme.format.errorContext(errorContext));
251152
251095
  }
251153
- function showPlainError(error48, context) {
251096
+ function showPlainError(error48) {
251154
251097
  const errorMessage = error48 instanceof Error ? error48.message : String(error48);
251155
251098
  process.stderr.write(`Error: ${errorMessage}
251156
251099
  `);
@@ -251169,14 +251112,6 @@ function showPlainError(error48, context) {
251169
251112
  process.stderr.write(`${error48.stack}
251170
251113
  `);
251171
251114
  }
251172
- if (shouldOfferBugReport(error48)) {
251173
- const errorContext = context?.errorReporter.getErrorContext() ?? {};
251174
- process.stderr.write(`Report this issue: ${buildBugReportUrl(error48, errorContext)}
251175
- `);
251176
- }
251177
- const codePart = isCLIError(error48) ? ` | Code: ${error48.code}` : "";
251178
- process.stderr.write(`base44 v${package_default.version}${codePart}
251179
- `);
251180
251115
  }
251181
251116
 
251182
251117
  // src/cli/utils/command/Base44Command.ts
@@ -251273,7 +251208,7 @@ class Base44Command extends Command {
251273
251208
  if (jsonMode) {
251274
251209
  writeJsonError(error48);
251275
251210
  } else if (quiet) {
251276
- showPlainError(error48, this.context);
251211
+ showPlainError(error48);
251277
251212
  } else {
251278
251213
  showThemedError(error48, this.context);
251279
251214
  }
@@ -253294,7 +253229,8 @@ async function completeProjectSetup({
253294
253229
  try {
253295
253230
  await runTask2("Installing AI agent skills...", async () => {
253296
253231
  await execa("npx", ["-y", "skills", "add", "base44/skills", "-y"], {
253297
- cwd: resolvedPath
253232
+ cwd: resolvedPath,
253233
+ shell: true
253298
253234
  });
253299
253235
  }, {
253300
253236
  successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
@@ -254717,9 +254653,9 @@ var stringify = (item) => {
254717
254653
  };
254718
254654
  function createDevLogger(label2, labelColor = theme.styles.dim) {
254719
254655
  const prefix = label2 ? `${labelColor(`[${label2}]`)} ` : "";
254720
- const print = (type2, ...args) => {
254721
- const colorize = colorByType[type2];
254722
- console[type2](prefix + args.map((item) => colorize(stringify(item))).join(" "));
254656
+ const print = (type, ...args) => {
254657
+ const colorize = colorByType[type];
254658
+ console[type](prefix + args.map((item) => colorize(stringify(item))).join(" "));
254723
254659
  };
254724
254660
  return {
254725
254661
  log: (...args) => print("log", ...args),
@@ -255778,9 +255714,9 @@ async function createEntityRoutes(db2, logger2, broadcast) {
255778
255714
  await handler(req, res, collection, schema10, currentUser);
255779
255715
  };
255780
255716
  }
255781
- function emit(appId, entityName, type2, data) {
255717
+ function emit(appId, entityName, type, data) {
255782
255718
  const createData = (item) => ({
255783
- type: type2,
255719
+ type,
255784
255720
  data: item,
255785
255721
  id: item.id,
255786
255722
  timestamp: new Date().toISOString()
@@ -256176,11 +256112,11 @@ class ServeRunner {
256176
256112
  listener(code2);
256177
256113
  }
256178
256114
  }
256179
- emitLines(data, type2) {
256115
+ emitLines(data, type) {
256180
256116
  const lines = data.toString().trimEnd().split(`
256181
256117
  `);
256182
256118
  for (const line3 of lines) {
256183
- if (type2 === "error") {
256119
+ if (type === "error") {
256184
256120
  this.logger.error(line3);
256185
256121
  } else {
256186
256122
  this.logger.log(line3);
@@ -256279,7 +256215,7 @@ class ReaddirpStream extends Readable6 {
256279
256215
  highWaterMark: options8.highWaterMark
256280
256216
  });
256281
256217
  const opts = { ...defaultOptions, ...options8 };
256282
- const { root: root2, type: type2 } = opts;
256218
+ const { root: root2, type } = opts;
256283
256219
  this._fileFilter = normalizeFilter(opts.fileFilter);
256284
256220
  this._directoryFilter = normalizeFilter(opts.directoryFilter);
256285
256221
  const statMethod = opts.lstat ? lstat2 : stat2;
@@ -256289,9 +256225,9 @@ class ReaddirpStream extends Readable6 {
256289
256225
  this._stat = statMethod;
256290
256226
  }
256291
256227
  this._maxDepth = opts.depth != null && Number.isSafeInteger(opts.depth) ? opts.depth : defaultOptions.depth;
256292
- this._wantsDir = type2 ? DIR_TYPES.has(type2) : false;
256293
- this._wantsFile = type2 ? FILE_TYPES2.has(type2) : false;
256294
- this._wantsEverything = type2 === EntryTypes.EVERYTHING_TYPE;
256228
+ this._wantsDir = type ? DIR_TYPES.has(type) : false;
256229
+ this._wantsFile = type ? FILE_TYPES2.has(type) : false;
256230
+ this._wantsEverything = type === EntryTypes.EVERYTHING_TYPE;
256295
256231
  this._root = presolve(root2);
256296
256232
  this._isDirent = !opts.alwaysStat;
256297
256233
  this._statsProp = this._isDirent ? "dirent" : "stats";
@@ -256417,16 +256353,16 @@ class ReaddirpStream extends Readable6 {
256417
256353
  }
256418
256354
  }
256419
256355
  function readdirp(root2, options8 = {}) {
256420
- let type2 = options8.entryType || options8.type;
256421
- if (type2 === "both")
256422
- type2 = EntryTypes.FILE_DIR_TYPE;
256423
- if (type2)
256424
- options8.type = type2;
256356
+ let type = options8.entryType || options8.type;
256357
+ if (type === "both")
256358
+ type = EntryTypes.FILE_DIR_TYPE;
256359
+ if (type)
256360
+ options8.type = type;
256425
256361
  if (!root2) {
256426
256362
  throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
256427
256363
  } else if (typeof root2 !== "string") {
256428
256364
  throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");
256429
- } else if (type2 && !ALL_TYPES.includes(type2)) {
256365
+ } else if (type && !ALL_TYPES.includes(type)) {
256430
256366
  throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(", ")}`);
256431
256367
  }
256432
256368
  options8.root = root2;
@@ -258061,7 +257997,6 @@ async function createDevServer(options8) {
258061
257997
  };
258062
257998
  process.on("SIGINT", shutdown);
258063
257999
  process.on("SIGTERM", shutdown);
258064
- process.on("SIGHUP", shutdown);
258065
258000
  serveRunner?.onExit(() => {
258066
258001
  shutdown().finally(() => process.exit(1));
258067
258002
  });
@@ -258347,7 +258282,7 @@ function createProgram(context) {
258347
258282
 
258348
258283
  // src/cli/telemetry/error-reporter.ts
258349
258284
  var import_detect_agent = __toESM(require_dist5(), 1);
258350
- import { release as release2, type as type2 } from "node:os";
258285
+ import { release, type } from "node:os";
258351
258286
 
258352
258287
  // ../../node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
258353
258288
  import { dirname as dirname22, posix, sep } from "path";
@@ -259679,11 +259614,11 @@ class PostHogCoreStateless {
259679
259614
  this.setPersistedProperty(types_PostHogPersistedProperty.Props, this.props);
259680
259615
  });
259681
259616
  }
259682
- enqueue(type2, _message, options8) {
259617
+ enqueue(type, _message, options8) {
259683
259618
  this.wrap(() => {
259684
259619
  if (this.optedOut)
259685
- return void this._events.emit(type2, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
259686
- const message = this.prepareMessage(type2, _message, options8);
259620
+ return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
259621
+ const message = this.prepareMessage(type, _message, options8);
259687
259622
  const queue = this.getPersistedProperty(types_PostHogPersistedProperty.Queue) || [];
259688
259623
  if (queue.length >= this.maxQueueSize) {
259689
259624
  queue.shift();
@@ -259693,24 +259628,24 @@ class PostHogCoreStateless {
259693
259628
  message
259694
259629
  });
259695
259630
  this.setPersistedProperty(types_PostHogPersistedProperty.Queue, queue);
259696
- this._events.emit(type2, message);
259631
+ this._events.emit(type, message);
259697
259632
  if (queue.length >= this.flushAt)
259698
259633
  this.flushBackground();
259699
259634
  if (this.flushInterval && !this._flushTimer)
259700
259635
  this._flushTimer = safeSetTimeout(() => this.flushBackground(), this.flushInterval);
259701
259636
  });
259702
259637
  }
259703
- async sendImmediate(type2, _message, options8) {
259638
+ async sendImmediate(type, _message, options8) {
259704
259639
  if (this.disabled)
259705
259640
  return void this._logger.warn("The client is disabled");
259706
259641
  if (!this._isInitialized)
259707
259642
  await this._initPromise;
259708
259643
  if (this.optedOut)
259709
- return void this._events.emit(type2, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
259644
+ return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
259710
259645
  const data = {
259711
259646
  api_key: this.apiKey,
259712
259647
  batch: [
259713
- this.prepareMessage(type2, _message, options8)
259648
+ this.prepareMessage(type, _message, options8)
259714
259649
  ],
259715
259650
  sent_at: currentISOTime()
259716
259651
  };
@@ -259736,10 +259671,10 @@ class PostHogCoreStateless {
259736
259671
  this._events.emit("error", err);
259737
259672
  }
259738
259673
  }
259739
- prepareMessage(type2, _message, options8) {
259674
+ prepareMessage(type, _message, options8) {
259740
259675
  const message = {
259741
259676
  ..._message,
259742
- type: type2,
259677
+ type,
259743
259678
  library: this.getLibraryId(),
259744
259679
  library_version: this.getLibraryVersion(),
259745
259680
  timestamp: options8?.timestamp ? options8?.timestamp : currentISOTime(),
@@ -260409,24 +260344,24 @@ class StringCoercer {
260409
260344
  return typeof input == "string";
260410
260345
  }
260411
260346
  coerce(input, ctx) {
260412
- const [type2, value] = this.getInfos(input);
260347
+ const [type, value] = this.getInfos(input);
260413
260348
  return {
260414
- type: type2 ?? "Error",
260349
+ type: type ?? "Error",
260415
260350
  value: value ?? input,
260416
260351
  stack: ctx.syntheticException?.stack,
260417
260352
  synthetic: true
260418
260353
  };
260419
260354
  }
260420
260355
  getInfos(candidate) {
260421
- let type2 = "Error";
260356
+ let type = "Error";
260422
260357
  let value = candidate;
260423
260358
  const groups = candidate.match(ERROR_TYPES_PATTERN);
260424
260359
  if (groups) {
260425
- type2 = groups[1];
260360
+ type = groups[1];
260426
260361
  value = groups[2];
260427
260362
  }
260428
260363
  return [
260429
- type2,
260364
+ type,
260430
260365
  value
260431
260366
  ];
260432
260367
  }
@@ -262433,25 +262368,6 @@ function getPostHogClient() {
262433
262368
  return client;
262434
262369
  }
262435
262370
 
262436
- // src/cli/telemetry/redact.ts
262437
- var REDACTED = "[REDACTED]";
262438
- function redactCommandArgs(args) {
262439
- return args.map((arg) => {
262440
- const eqIndex = arg.indexOf("=");
262441
- return eqIndex > 0 ? `${arg.slice(0, eqIndex + 1)}${REDACTED}` : arg;
262442
- });
262443
- }
262444
- var SENSITIVE_URL_PATTERN = /\/secrets(\/|\?|$)/;
262445
- function redactApiBody(requestUrl, body) {
262446
- if (body === undefined || body === null) {
262447
- return body;
262448
- }
262449
- if (requestUrl && SENSITIVE_URL_PATTERN.test(requestUrl)) {
262450
- return REDACTED;
262451
- }
262452
- return body;
262453
- }
262454
-
262455
262371
  // src/cli/telemetry/error-reporter.ts
262456
262372
  class ErrorReporter {
262457
262373
  sessionId = nanoid3(12);
@@ -262483,8 +262399,8 @@ class ErrorReporter {
262483
262399
  api_status_code: error48.statusCode,
262484
262400
  api_request_url: error48.requestUrl,
262485
262401
  api_request_method: error48.requestMethod,
262486
- api_request_body: redactApiBody(error48.requestUrl, error48.requestBody),
262487
- api_response_body: redactApiBody(error48.requestUrl, error48.responseBody),
262402
+ api_request_body: error48.requestBody,
262403
+ api_response_body: error48.responseBody,
262488
262404
  api_request_id: error48.requestId
262489
262405
  } : {};
262490
262406
  return {
@@ -262505,8 +262421,8 @@ class ErrorReporter {
262505
262421
  node_version: process.version,
262506
262422
  platform: process.platform,
262507
262423
  arch: process.arch,
262508
- os_release: release2(),
262509
- os_type: type2(),
262424
+ os_release: release(),
262425
+ os_type: type(),
262510
262426
  is_tty: Boolean(process.stdout.isTTY),
262511
262427
  cwd: process.cwd(),
262512
262428
  is_agent: this.agentInfo?.isAgent,
@@ -262541,26 +262457,6 @@ class ErrorReporter {
262541
262457
  }
262542
262458
  }
262543
262459
 
262544
- // src/cli/telemetry/first-run-notice.ts
262545
- import { existsSync as existsSync2, mkdirSync as mkdirSync2, writeFileSync as writeFileSync3 } from "node:fs";
262546
- import { dirname as dirname23 } from "node:path";
262547
- var NOTICE = "The Base44 CLI sends error reports (command name, CLI version, OS info, " + "and your account email when logged in) to help improve the CLI. " + "Set BASE44_DISABLE_TELEMETRY=1 to opt out.";
262548
- function maybeShowTelemetryNotice(log) {
262549
- if (!isTelemetryEnabled()) {
262550
- return;
262551
- }
262552
- try {
262553
- const markerPath = getTelemetryNoticePath();
262554
- if (existsSync2(markerPath)) {
262555
- return;
262556
- }
262557
- mkdirSync2(dirname23(markerPath), { recursive: true });
262558
- writeFileSync3(markerPath, `${new Date().toISOString()}
262559
- `);
262560
- log.message(NOTICE);
262561
- } catch {}
262562
- }
262563
-
262564
262460
  // src/cli/telemetry/commander-hooks.ts
262565
262461
  function getFullCommandName(command2) {
262566
262462
  const parts = [];
@@ -262580,14 +262476,14 @@ function addCommandInfoToErrorReporter(program2, errorReporter) {
262580
262476
  errorReporter.setContext({
262581
262477
  command: {
262582
262478
  name: fullCommandName,
262583
- args: redactCommandArgs(actionCommand.args),
262479
+ args: actionCommand.args,
262584
262480
  options: actionCommand.opts()
262585
262481
  }
262586
262482
  });
262587
262483
  });
262588
262484
  }
262589
262485
  // src/cli/index.ts
262590
- var __dirname4 = dirname24(fileURLToPath6(import.meta.url));
262486
+ var __dirname4 = dirname23(fileURLToPath6(import.meta.url));
262591
262487
  async function runCLI(options8) {
262592
262488
  ensureNpmAssets(join28(__dirname4, "../assets"));
262593
262489
  const errorReporter = new ErrorReporter;
@@ -262604,7 +262500,6 @@ async function runCLI(options8) {
262604
262500
  log,
262605
262501
  runTask: runTask2
262606
262502
  };
262607
- maybeShowTelemetryNotice(log);
262608
262503
  const program2 = createProgram(context);
262609
262504
  try {
262610
262505
  const userInfo = await readAuth();
@@ -262629,4 +262524,4 @@ export {
262629
262524
  CLIExitError
262630
262525
  };
262631
262526
 
262632
- //# debugId=3424EA7D6A0AE5F064756E2164756E21
262527
+ //# debugId=5AE819ADC89BA80F64756E2164756E21