@industry-theme/principal-view-panels 0.1.48 → 0.1.50

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.
@@ -7012,7 +7012,7 @@ var toArray_1 = toArray;
7012
7012
  var repeat_1 = repeat;
7013
7013
  var isNegativeZero_1 = isNegativeZero;
7014
7014
  var extend_1 = extend;
7015
- var common = {
7015
+ var common$1 = {
7016
7016
  isNothing: isNothing_1,
7017
7017
  isObject: isObject_1,
7018
7018
  toArray: toArray_1,
@@ -7049,7 +7049,7 @@ YAMLException$1.prototype.constructor = YAMLException$1;
7049
7049
  YAMLException$1.prototype.toString = function toString(compact) {
7050
7050
  return this.name + ": " + formatError(this, compact);
7051
7051
  };
7052
- var exception = YAMLException$1;
7052
+ var exception$1 = YAMLException$1;
7053
7053
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
7054
7054
  var head = "";
7055
7055
  var tail = "";
@@ -7069,7 +7069,7 @@ function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
7069
7069
  };
7070
7070
  }
7071
7071
  function padStart(string, max) {
7072
- return common.repeat(" ", max - string.length) + string;
7072
+ return common$1.repeat(" ", max - string.length) + string;
7073
7073
  }
7074
7074
  function makeSnippet(mark, options) {
7075
7075
  options = Object.create(options || null);
@@ -7103,11 +7103,11 @@ function makeSnippet(mark, options) {
7103
7103
  mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
7104
7104
  maxLineLength
7105
7105
  );
7106
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
7106
+ result = common$1.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
7107
7107
  }
7108
7108
  line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
7109
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
7110
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
7109
+ result += common$1.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
7110
+ result += common$1.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
7111
7111
  for (i = 1; i <= options.linesAfter; i++) {
7112
7112
  if (foundLineNo + i >= lineEnds.length) break;
7113
7113
  line = getLine(
@@ -7117,11 +7117,11 @@ function makeSnippet(mark, options) {
7117
7117
  mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
7118
7118
  maxLineLength
7119
7119
  );
7120
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
7120
+ result += common$1.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
7121
7121
  }
7122
7122
  return result.replace(/\n$/, "");
7123
7123
  }
7124
- var snippet = makeSnippet;
7124
+ var snippet$1 = makeSnippet;
7125
7125
  var TYPE_CONSTRUCTOR_OPTIONS = [
7126
7126
  "kind",
7127
7127
  "multi",
@@ -7154,7 +7154,7 @@ function Type$1(tag, options) {
7154
7154
  options = options || {};
7155
7155
  Object.keys(options).forEach(function(name) {
7156
7156
  if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
7157
- throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
7157
+ throw new exception$1('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
7158
7158
  }
7159
7159
  });
7160
7160
  this.options = options;
@@ -7174,10 +7174,10 @@ function Type$1(tag, options) {
7174
7174
  this.multi = options["multi"] || false;
7175
7175
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
7176
7176
  if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
7177
- throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
7177
+ throw new exception$1('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
7178
7178
  }
7179
7179
  }
7180
- var type = Type$1;
7180
+ var type$1 = Type$1;
7181
7181
  function compileList(schema2, name) {
7182
7182
  var result = [];
7183
7183
  schema2[name].forEach(function(currentType) {
@@ -7223,7 +7223,7 @@ function Schema$1(definition) {
7223
7223
  Schema$1.prototype.extend = function extend2(definition) {
7224
7224
  var implicit = [];
7225
7225
  var explicit = [];
7226
- if (definition instanceof type) {
7226
+ if (definition instanceof type$1) {
7227
7227
  explicit.push(definition);
7228
7228
  } else if (Array.isArray(definition)) {
7229
7229
  explicit = explicit.concat(definition);
@@ -7231,22 +7231,22 @@ Schema$1.prototype.extend = function extend2(definition) {
7231
7231
  if (definition.implicit) implicit = implicit.concat(definition.implicit);
7232
7232
  if (definition.explicit) explicit = explicit.concat(definition.explicit);
7233
7233
  } else {
7234
- throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
7234
+ throw new exception$1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
7235
7235
  }
7236
- implicit.forEach(function(type$1) {
7237
- if (!(type$1 instanceof type)) {
7238
- throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");
7236
+ implicit.forEach(function(type$1$1) {
7237
+ if (!(type$1$1 instanceof type$1)) {
7238
+ throw new exception$1("Specified list of YAML types (or a single Type object) contains a non-Type object.");
7239
7239
  }
7240
- if (type$1.loadKind && type$1.loadKind !== "scalar") {
7241
- throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
7240
+ if (type$1$1.loadKind && type$1$1.loadKind !== "scalar") {
7241
+ throw new exception$1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
7242
7242
  }
7243
- if (type$1.multi) {
7244
- throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
7243
+ if (type$1$1.multi) {
7244
+ throw new exception$1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
7245
7245
  }
7246
7246
  });
7247
- explicit.forEach(function(type$1) {
7248
- if (!(type$1 instanceof type)) {
7249
- throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");
7247
+ explicit.forEach(function(type$1$1) {
7248
+ if (!(type$1$1 instanceof type$1)) {
7249
+ throw new exception$1("Specified list of YAML types (or a single Type object) contains a non-Type object.");
7250
7250
  }
7251
7251
  });
7252
7252
  var result = Object.create(Schema$1.prototype);
@@ -7257,30 +7257,30 @@ Schema$1.prototype.extend = function extend2(definition) {
7257
7257
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
7258
7258
  return result;
7259
7259
  };
7260
- var schema = Schema$1;
7261
- var str = new type("tag:yaml.org,2002:str", {
7260
+ var schema$1 = Schema$1;
7261
+ var str$1 = new type$1("tag:yaml.org,2002:str", {
7262
7262
  kind: "scalar",
7263
7263
  construct: function(data) {
7264
7264
  return data !== null ? data : "";
7265
7265
  }
7266
7266
  });
7267
- var seq = new type("tag:yaml.org,2002:seq", {
7267
+ var seq$1 = new type$1("tag:yaml.org,2002:seq", {
7268
7268
  kind: "sequence",
7269
7269
  construct: function(data) {
7270
7270
  return data !== null ? data : [];
7271
7271
  }
7272
7272
  });
7273
- var map = new type("tag:yaml.org,2002:map", {
7273
+ var map$1 = new type$1("tag:yaml.org,2002:map", {
7274
7274
  kind: "mapping",
7275
7275
  construct: function(data) {
7276
7276
  return data !== null ? data : {};
7277
7277
  }
7278
7278
  });
7279
- var failsafe = new schema({
7279
+ var failsafe$1 = new schema$1({
7280
7280
  explicit: [
7281
- str,
7282
- seq,
7283
- map
7281
+ str$1,
7282
+ seq$1,
7283
+ map$1
7284
7284
  ]
7285
7285
  });
7286
7286
  function resolveYamlNull(data) {
@@ -7294,7 +7294,7 @@ function constructYamlNull() {
7294
7294
  function isNull(object) {
7295
7295
  return object === null;
7296
7296
  }
7297
- var _null = new type("tag:yaml.org,2002:null", {
7297
+ var _null$1 = new type$1("tag:yaml.org,2002:null", {
7298
7298
  kind: "scalar",
7299
7299
  resolve: resolveYamlNull,
7300
7300
  construct: constructYamlNull,
@@ -7329,7 +7329,7 @@ function constructYamlBoolean(data) {
7329
7329
  function isBoolean(object) {
7330
7330
  return Object.prototype.toString.call(object) === "[object Boolean]";
7331
7331
  }
7332
- var bool = new type("tag:yaml.org,2002:bool", {
7332
+ var bool$1 = new type$1("tag:yaml.org,2002:bool", {
7333
7333
  kind: "scalar",
7334
7334
  resolve: resolveYamlBoolean,
7335
7335
  construct: constructYamlBoolean,
@@ -7430,9 +7430,9 @@ function constructYamlInteger(data) {
7430
7430
  return sign * parseInt(value, 10);
7431
7431
  }
7432
7432
  function isInteger(object) {
7433
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common.isNegativeZero(object));
7433
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common$1.isNegativeZero(object));
7434
7434
  }
7435
- var int = new type("tag:yaml.org,2002:int", {
7435
+ var int$1 = new type$1("tag:yaml.org,2002:int", {
7436
7436
  kind: "scalar",
7437
7437
  resolve: resolveYamlInteger,
7438
7438
  construct: constructYamlInteger,
@@ -7517,16 +7517,16 @@ function representYamlFloat(object, style) {
7517
7517
  case "camelcase":
7518
7518
  return "-.Inf";
7519
7519
  }
7520
- } else if (common.isNegativeZero(object)) {
7520
+ } else if (common$1.isNegativeZero(object)) {
7521
7521
  return "-0.0";
7522
7522
  }
7523
7523
  res = object.toString(10);
7524
7524
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
7525
7525
  }
7526
7526
  function isFloat(object) {
7527
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
7527
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common$1.isNegativeZero(object));
7528
7528
  }
7529
- var float = new type("tag:yaml.org,2002:float", {
7529
+ var float$1 = new type$1("tag:yaml.org,2002:float", {
7530
7530
  kind: "scalar",
7531
7531
  resolve: resolveYamlFloat,
7532
7532
  construct: constructYamlFloat,
@@ -7534,15 +7534,15 @@ var float = new type("tag:yaml.org,2002:float", {
7534
7534
  represent: representYamlFloat,
7535
7535
  defaultStyle: "lowercase"
7536
7536
  });
7537
- var json = failsafe.extend({
7537
+ var json$1 = failsafe$1.extend({
7538
7538
  implicit: [
7539
- _null,
7540
- bool,
7541
- int,
7542
- float
7539
+ _null$1,
7540
+ bool$1,
7541
+ int$1,
7542
+ float$1
7543
7543
  ]
7544
7544
  });
7545
- var core = json;
7545
+ var core$1 = json$1;
7546
7546
  var YAML_DATE_REGEXP = new RegExp(
7547
7547
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
7548
7548
  );
@@ -7589,7 +7589,7 @@ function constructYamlTimestamp(data) {
7589
7589
  function representYamlTimestamp(object) {
7590
7590
  return object.toISOString();
7591
7591
  }
7592
- var timestamp = new type("tag:yaml.org,2002:timestamp", {
7592
+ var timestamp$1 = new type$1("tag:yaml.org,2002:timestamp", {
7593
7593
  kind: "scalar",
7594
7594
  resolve: resolveYamlTimestamp,
7595
7595
  construct: constructYamlTimestamp,
@@ -7599,7 +7599,7 @@ var timestamp = new type("tag:yaml.org,2002:timestamp", {
7599
7599
  function resolveYamlMerge(data) {
7600
7600
  return data === "<<" || data === null;
7601
7601
  }
7602
- var merge = new type("tag:yaml.org,2002:merge", {
7602
+ var merge$1 = new type$1("tag:yaml.org,2002:merge", {
7603
7603
  kind: "scalar",
7604
7604
  resolve: resolveYamlMerge
7605
7605
  });
@@ -7671,7 +7671,7 @@ function representYamlBinary(object) {
7671
7671
  function isBinary(obj) {
7672
7672
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
7673
7673
  }
7674
- var binary = new type("tag:yaml.org,2002:binary", {
7674
+ var binary$1 = new type$1("tag:yaml.org,2002:binary", {
7675
7675
  kind: "scalar",
7676
7676
  resolve: resolveYamlBinary,
7677
7677
  construct: constructYamlBinary,
@@ -7702,7 +7702,7 @@ function resolveYamlOmap(data) {
7702
7702
  function constructYamlOmap(data) {
7703
7703
  return data !== null ? data : [];
7704
7704
  }
7705
- var omap = new type("tag:yaml.org,2002:omap", {
7705
+ var omap$1 = new type$1("tag:yaml.org,2002:omap", {
7706
7706
  kind: "sequence",
7707
7707
  resolve: resolveYamlOmap,
7708
7708
  construct: constructYamlOmap
@@ -7732,7 +7732,7 @@ function constructYamlPairs(data) {
7732
7732
  }
7733
7733
  return result;
7734
7734
  }
7735
- var pairs = new type("tag:yaml.org,2002:pairs", {
7735
+ var pairs$1 = new type$1("tag:yaml.org,2002:pairs", {
7736
7736
  kind: "sequence",
7737
7737
  resolve: resolveYamlPairs,
7738
7738
  construct: constructYamlPairs
@@ -7751,21 +7751,21 @@ function resolveYamlSet(data) {
7751
7751
  function constructYamlSet(data) {
7752
7752
  return data !== null ? data : {};
7753
7753
  }
7754
- var set = new type("tag:yaml.org,2002:set", {
7754
+ var set$1 = new type$1("tag:yaml.org,2002:set", {
7755
7755
  kind: "mapping",
7756
7756
  resolve: resolveYamlSet,
7757
7757
  construct: constructYamlSet
7758
7758
  });
7759
- var _default = core.extend({
7759
+ var _default$1 = core$1.extend({
7760
7760
  implicit: [
7761
- timestamp,
7762
- merge
7761
+ timestamp$1,
7762
+ merge$1
7763
7763
  ],
7764
7764
  explicit: [
7765
- binary,
7766
- omap,
7767
- pairs,
7768
- set
7765
+ binary$1,
7766
+ omap$1,
7767
+ pairs$1,
7768
+ set$1
7769
7769
  ]
7770
7770
  });
7771
7771
  var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
@@ -7858,7 +7858,7 @@ for (var i = 0; i < 256; i++) {
7858
7858
  function State$1(input, options) {
7859
7859
  this.input = input;
7860
7860
  this.filename = options["filename"] || null;
7861
- this.schema = options["schema"] || _default;
7861
+ this.schema = options["schema"] || _default$1;
7862
7862
  this.onWarning = options["onWarning"] || null;
7863
7863
  this.legacy = options["legacy"] || false;
7864
7864
  this.json = options["json"] || false;
@@ -7882,8 +7882,8 @@ function generateError(state, message) {
7882
7882
  line: state.line,
7883
7883
  column: state.position - state.lineStart
7884
7884
  };
7885
- mark.snippet = snippet(mark);
7886
- return new exception(message, mark);
7885
+ mark.snippet = snippet$1(mark);
7886
+ return new exception$1(message, mark);
7887
7887
  }
7888
7888
  function throwError(state, message) {
7889
7889
  throw generateError(state, message);
@@ -7960,7 +7960,7 @@ function captureSegment(state, start, end, checkJson) {
7960
7960
  }
7961
7961
  function mergeMappings(state, destination, source, overridableKeys) {
7962
7962
  var sourceKeys, key, index2, quantity;
7963
- if (!common.isObject(source)) {
7963
+ if (!common$1.isObject(source)) {
7964
7964
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
7965
7965
  }
7966
7966
  sourceKeys = Object.keys(source);
@@ -8077,7 +8077,7 @@ function writeFoldedLines(state, count) {
8077
8077
  if (count === 1) {
8078
8078
  state.result += " ";
8079
8079
  } else if (count > 1) {
8080
- state.result += common.repeat("\n", count - 1);
8080
+ state.result += common$1.repeat("\n", count - 1);
8081
8081
  }
8082
8082
  }
8083
8083
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
@@ -8368,7 +8368,7 @@ function readBlockScalar(state, nodeIndent) {
8368
8368
  }
8369
8369
  if (state.lineIndent < textIndent) {
8370
8370
  if (chomping === CHOMPING_KEEP) {
8371
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
8371
+ state.result += common$1.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
8372
8372
  } else if (chomping === CHOMPING_CLIP) {
8373
8373
  if (didReadContent) {
8374
8374
  state.result += "\n";
@@ -8379,19 +8379,19 @@ function readBlockScalar(state, nodeIndent) {
8379
8379
  if (folding) {
8380
8380
  if (is_WHITE_SPACE(ch)) {
8381
8381
  atMoreIndented = true;
8382
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
8382
+ state.result += common$1.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
8383
8383
  } else if (atMoreIndented) {
8384
8384
  atMoreIndented = false;
8385
- state.result += common.repeat("\n", emptyLines + 1);
8385
+ state.result += common$1.repeat("\n", emptyLines + 1);
8386
8386
  } else if (emptyLines === 0) {
8387
8387
  if (didReadContent) {
8388
8388
  state.result += " ";
8389
8389
  }
8390
8390
  } else {
8391
- state.result += common.repeat("\n", emptyLines);
8391
+ state.result += common$1.repeat("\n", emptyLines);
8392
8392
  }
8393
8393
  } else {
8394
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
8394
+ state.result += common$1.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
8395
8395
  }
8396
8396
  didReadContent = true;
8397
8397
  detectedIndent = true;
@@ -8916,11 +8916,11 @@ function load$1(input, options) {
8916
8916
  } else if (documents.length === 1) {
8917
8917
  return documents[0];
8918
8918
  }
8919
- throw new exception("expected a single document in the stream, but found more");
8919
+ throw new exception$1("expected a single document in the stream, but found more");
8920
8920
  }
8921
8921
  var loadAll_1 = loadAll$1;
8922
8922
  var load_1 = load$1;
8923
- var loader = {
8923
+ var loader$1 = {
8924
8924
  loadAll: loadAll_1,
8925
8925
  load: load_1
8926
8926
  };
@@ -9018,17 +9018,17 @@ function encodeHex(character) {
9018
9018
  handle = "U";
9019
9019
  length = 8;
9020
9020
  } else {
9021
- throw new exception("code point within a string may not be greater than 0xFFFFFFFF");
9021
+ throw new exception$1("code point within a string may not be greater than 0xFFFFFFFF");
9022
9022
  }
9023
- return "\\" + handle + common.repeat("0", length - string.length) + string;
9023
+ return "\\" + handle + common$1.repeat("0", length - string.length) + string;
9024
9024
  }
9025
9025
  var QUOTING_TYPE_SINGLE = 1, QUOTING_TYPE_DOUBLE = 2;
9026
9026
  function State(options) {
9027
- this.schema = options["schema"] || _default;
9027
+ this.schema = options["schema"] || _default$1;
9028
9028
  this.indent = Math.max(1, options["indent"] || 2);
9029
9029
  this.noArrayIndent = options["noArrayIndent"] || false;
9030
9030
  this.skipInvalid = options["skipInvalid"] || false;
9031
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
9031
+ this.flowLevel = common$1.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
9032
9032
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
9033
9033
  this.sortKeys = options["sortKeys"] || false;
9034
9034
  this.lineWidth = options["lineWidth"] || 80;
@@ -9046,7 +9046,7 @@ function State(options) {
9046
9046
  this.usedDuplicates = null;
9047
9047
  }
9048
9048
  function indentString(string, spaces) {
9049
- var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
9049
+ var ind = common$1.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
9050
9050
  while (position < length) {
9051
9051
  next = string.indexOf("\n", position);
9052
9052
  if (next === -1) {
@@ -9062,7 +9062,7 @@ function indentString(string, spaces) {
9062
9062
  return result;
9063
9063
  }
9064
9064
  function generateNextLine(state, level) {
9065
- return "\n" + common.repeat(" ", state.indent * level);
9065
+ return "\n" + common$1.repeat(" ", state.indent * level);
9066
9066
  }
9067
9067
  function testImplicitResolving(state, str2) {
9068
9068
  var index2, length, type2;
@@ -9202,7 +9202,7 @@ function writeScalar(state, string, level, iskey, inblock) {
9202
9202
  case STYLE_DOUBLE:
9203
9203
  return '"' + escapeString(string) + '"';
9204
9204
  default:
9205
- throw new exception("impossible error: invalid scalar style");
9205
+ throw new exception$1("impossible error: invalid scalar style");
9206
9206
  }
9207
9207
  })();
9208
9208
  }
@@ -9343,7 +9343,7 @@ function writeBlockMapping(state, level, object, compact) {
9343
9343
  } else if (typeof state.sortKeys === "function") {
9344
9344
  objectKeyList.sort(state.sortKeys);
9345
9345
  } else if (state.sortKeys) {
9346
- throw new exception("sortKeys must be a boolean or a function");
9346
+ throw new exception$1("sortKeys must be a boolean or a function");
9347
9347
  }
9348
9348
  for (index2 = 0, length = objectKeyList.length; index2 < length; index2 += 1) {
9349
9349
  pairBuffer = "";
@@ -9406,7 +9406,7 @@ function detectType(state, object, explicit) {
9406
9406
  } else if (_hasOwnProperty.call(type2.represent, style)) {
9407
9407
  _result = type2.represent[style](object, style);
9408
9408
  } else {
9409
- throw new exception("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
9409
+ throw new exception$1("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
9410
9410
  }
9411
9411
  state.dump = _result;
9412
9412
  }
@@ -9477,7 +9477,7 @@ function writeNode(state, level, object, block, compact, iskey, isblockseq) {
9477
9477
  return false;
9478
9478
  } else {
9479
9479
  if (state.skipInvalid) return false;
9480
- throw new exception("unacceptable kind of an object to dump " + type2);
9480
+ throw new exception$1("unacceptable kind of an object to dump " + type2);
9481
9481
  }
9482
9482
  if (state.tag !== null && state.tag !== "?") {
9483
9483
  tagStr = encodeURI(
@@ -9538,7 +9538,7 @@ function dump$1(input, options) {
9538
9538
  return "";
9539
9539
  }
9540
9540
  var dump_1 = dump$1;
9541
- var dumper = {
9541
+ var dumper$1 = {
9542
9542
  dump: dump_1
9543
9543
  };
9544
9544
  function renamed(from, to) {
@@ -9546,35 +9546,35 @@ function renamed(from, to) {
9546
9546
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
9547
9547
  };
9548
9548
  }
9549
- var Type$2 = type;
9550
- var Schema = schema;
9551
- var FAILSAFE_SCHEMA = failsafe;
9552
- var JSON_SCHEMA = json;
9553
- var CORE_SCHEMA = core;
9554
- var DEFAULT_SCHEMA = _default;
9555
- var load = loader.load;
9556
- var loadAll = loader.loadAll;
9557
- var dump = dumper.dump;
9558
- var YAMLException = exception;
9549
+ var Type$2 = type$1;
9550
+ var Schema = schema$1;
9551
+ var FAILSAFE_SCHEMA = failsafe$1;
9552
+ var JSON_SCHEMA = json$1;
9553
+ var CORE_SCHEMA = core$1;
9554
+ var DEFAULT_SCHEMA = _default$1;
9555
+ var load = loader$1.load;
9556
+ var loadAll = loader$1.loadAll;
9557
+ var dump = dumper$1.dump;
9558
+ var YAMLException = exception$1;
9559
9559
  var types = {
9560
- binary,
9561
- float,
9562
- map,
9563
- null: _null,
9564
- pairs,
9565
- set,
9566
- timestamp,
9567
- bool,
9568
- int,
9569
- merge,
9570
- omap,
9571
- seq,
9572
- str
9560
+ binary: binary$1,
9561
+ float: float$1,
9562
+ map: map$1,
9563
+ null: _null$1,
9564
+ pairs: pairs$1,
9565
+ set: set$1,
9566
+ timestamp: timestamp$1,
9567
+ bool: bool$1,
9568
+ int: int$1,
9569
+ merge: merge$1,
9570
+ omap: omap$1,
9571
+ seq: seq$1,
9572
+ str: str$1
9573
9573
  };
9574
9574
  var safeLoad = renamed("safeLoad", "load");
9575
9575
  var safeLoadAll = renamed("safeLoadAll", "loadAll");
9576
9576
  var safeDump = renamed("safeDump", "dump");
9577
- var jsYaml = {
9577
+ var jsYaml$1 = {
9578
9578
  Type: Type$2,
9579
9579
  Schema,
9580
9580
  FAILSAFE_SCHEMA,
@@ -50236,32 +50236,2892 @@ function requireConfigurationSelector() {
50236
50236
  return ConfigurationSelector;
50237
50237
  }
50238
50238
  var TestEventPanel = {};
50239
+ var jsYaml = {};
50240
+ var loader = {};
50241
+ var common = {};
50242
+ var hasRequiredCommon;
50243
+ function requireCommon() {
50244
+ if (hasRequiredCommon) return common;
50245
+ hasRequiredCommon = 1;
50246
+ function isNothing2(subject) {
50247
+ return typeof subject === "undefined" || subject === null;
50248
+ }
50249
+ function isObject2(subject) {
50250
+ return typeof subject === "object" && subject !== null;
50251
+ }
50252
+ function toArray2(sequence) {
50253
+ if (Array.isArray(sequence)) return sequence;
50254
+ else if (isNothing2(sequence)) return [];
50255
+ return [sequence];
50256
+ }
50257
+ function extend3(target, source) {
50258
+ var index2, length, key, sourceKeys;
50259
+ if (source) {
50260
+ sourceKeys = Object.keys(source);
50261
+ for (index2 = 0, length = sourceKeys.length; index2 < length; index2 += 1) {
50262
+ key = sourceKeys[index2];
50263
+ target[key] = source[key];
50264
+ }
50265
+ }
50266
+ return target;
50267
+ }
50268
+ function repeat2(string, count) {
50269
+ var result = "", cycle;
50270
+ for (cycle = 0; cycle < count; cycle += 1) {
50271
+ result += string;
50272
+ }
50273
+ return result;
50274
+ }
50275
+ function isNegativeZero2(number) {
50276
+ return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
50277
+ }
50278
+ common.isNothing = isNothing2;
50279
+ common.isObject = isObject2;
50280
+ common.toArray = toArray2;
50281
+ common.repeat = repeat2;
50282
+ common.isNegativeZero = isNegativeZero2;
50283
+ common.extend = extend3;
50284
+ return common;
50285
+ }
50286
+ var exception;
50287
+ var hasRequiredException;
50288
+ function requireException() {
50289
+ if (hasRequiredException) return exception;
50290
+ hasRequiredException = 1;
50291
+ function formatError2(exception2, compact) {
50292
+ var where = "", message = exception2.reason || "(unknown reason)";
50293
+ if (!exception2.mark) return message;
50294
+ if (exception2.mark.name) {
50295
+ where += 'in "' + exception2.mark.name + '" ';
50296
+ }
50297
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
50298
+ if (!compact && exception2.mark.snippet) {
50299
+ where += "\n\n" + exception2.mark.snippet;
50300
+ }
50301
+ return message + " " + where;
50302
+ }
50303
+ function YAMLException2(reason, mark) {
50304
+ Error.call(this);
50305
+ this.name = "YAMLException";
50306
+ this.reason = reason;
50307
+ this.mark = mark;
50308
+ this.message = formatError2(this, false);
50309
+ if (Error.captureStackTrace) {
50310
+ Error.captureStackTrace(this, this.constructor);
50311
+ } else {
50312
+ this.stack = new Error().stack || "";
50313
+ }
50314
+ }
50315
+ YAMLException2.prototype = Object.create(Error.prototype);
50316
+ YAMLException2.prototype.constructor = YAMLException2;
50317
+ YAMLException2.prototype.toString = function toString2(compact) {
50318
+ return this.name + ": " + formatError2(this, compact);
50319
+ };
50320
+ exception = YAMLException2;
50321
+ return exception;
50322
+ }
50323
+ var snippet;
50324
+ var hasRequiredSnippet;
50325
+ function requireSnippet() {
50326
+ if (hasRequiredSnippet) return snippet;
50327
+ hasRequiredSnippet = 1;
50328
+ var common2 = requireCommon();
50329
+ function getLine2(buffer, lineStart, lineEnd, position, maxLineLength) {
50330
+ var head = "";
50331
+ var tail = "";
50332
+ var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
50333
+ if (position - lineStart > maxHalfLength) {
50334
+ head = " ... ";
50335
+ lineStart = position - maxHalfLength + head.length;
50336
+ }
50337
+ if (lineEnd - position > maxHalfLength) {
50338
+ tail = " ...";
50339
+ lineEnd = position + maxHalfLength - tail.length;
50340
+ }
50341
+ return {
50342
+ str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, "→") + tail,
50343
+ pos: position - lineStart + head.length
50344
+ // relative position
50345
+ };
50346
+ }
50347
+ function padStart2(string, max) {
50348
+ return common2.repeat(" ", max - string.length) + string;
50349
+ }
50350
+ function makeSnippet2(mark, options) {
50351
+ options = Object.create(options || null);
50352
+ if (!mark.buffer) return null;
50353
+ if (!options.maxLength) options.maxLength = 79;
50354
+ if (typeof options.indent !== "number") options.indent = 1;
50355
+ if (typeof options.linesBefore !== "number") options.linesBefore = 3;
50356
+ if (typeof options.linesAfter !== "number") options.linesAfter = 2;
50357
+ var re = /\r?\n|\r|\0/g;
50358
+ var lineStarts = [0];
50359
+ var lineEnds = [];
50360
+ var match;
50361
+ var foundLineNo = -1;
50362
+ while (match = re.exec(mark.buffer)) {
50363
+ lineEnds.push(match.index);
50364
+ lineStarts.push(match.index + match[0].length);
50365
+ if (mark.position <= match.index && foundLineNo < 0) {
50366
+ foundLineNo = lineStarts.length - 2;
50367
+ }
50368
+ }
50369
+ if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
50370
+ var result = "", i, line;
50371
+ var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
50372
+ var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
50373
+ for (i = 1; i <= options.linesBefore; i++) {
50374
+ if (foundLineNo - i < 0) break;
50375
+ line = getLine2(
50376
+ mark.buffer,
50377
+ lineStarts[foundLineNo - i],
50378
+ lineEnds[foundLineNo - i],
50379
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
50380
+ maxLineLength
50381
+ );
50382
+ result = common2.repeat(" ", options.indent) + padStart2((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
50383
+ }
50384
+ line = getLine2(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
50385
+ result += common2.repeat(" ", options.indent) + padStart2((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
50386
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
50387
+ for (i = 1; i <= options.linesAfter; i++) {
50388
+ if (foundLineNo + i >= lineEnds.length) break;
50389
+ line = getLine2(
50390
+ mark.buffer,
50391
+ lineStarts[foundLineNo + i],
50392
+ lineEnds[foundLineNo + i],
50393
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
50394
+ maxLineLength
50395
+ );
50396
+ result += common2.repeat(" ", options.indent) + padStart2((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
50397
+ }
50398
+ return result.replace(/\n$/, "");
50399
+ }
50400
+ snippet = makeSnippet2;
50401
+ return snippet;
50402
+ }
50403
+ var type;
50404
+ var hasRequiredType;
50405
+ function requireType() {
50406
+ if (hasRequiredType) return type;
50407
+ hasRequiredType = 1;
50408
+ var YAMLException2 = requireException();
50409
+ var TYPE_CONSTRUCTOR_OPTIONS2 = [
50410
+ "kind",
50411
+ "multi",
50412
+ "resolve",
50413
+ "construct",
50414
+ "instanceOf",
50415
+ "predicate",
50416
+ "represent",
50417
+ "representName",
50418
+ "defaultStyle",
50419
+ "styleAliases"
50420
+ ];
50421
+ var YAML_NODE_KINDS2 = [
50422
+ "scalar",
50423
+ "sequence",
50424
+ "mapping"
50425
+ ];
50426
+ function compileStyleAliases2(map2) {
50427
+ var result = {};
50428
+ if (map2 !== null) {
50429
+ Object.keys(map2).forEach(function(style) {
50430
+ map2[style].forEach(function(alias) {
50431
+ result[String(alias)] = style;
50432
+ });
50433
+ });
50434
+ }
50435
+ return result;
50436
+ }
50437
+ function Type2(tag, options) {
50438
+ options = options || {};
50439
+ Object.keys(options).forEach(function(name) {
50440
+ if (TYPE_CONSTRUCTOR_OPTIONS2.indexOf(name) === -1) {
50441
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
50442
+ }
50443
+ });
50444
+ this.options = options;
50445
+ this.tag = tag;
50446
+ this.kind = options["kind"] || null;
50447
+ this.resolve = options["resolve"] || function() {
50448
+ return true;
50449
+ };
50450
+ this.construct = options["construct"] || function(data) {
50451
+ return data;
50452
+ };
50453
+ this.instanceOf = options["instanceOf"] || null;
50454
+ this.predicate = options["predicate"] || null;
50455
+ this.represent = options["represent"] || null;
50456
+ this.representName = options["representName"] || null;
50457
+ this.defaultStyle = options["defaultStyle"] || null;
50458
+ this.multi = options["multi"] || false;
50459
+ this.styleAliases = compileStyleAliases2(options["styleAliases"] || null);
50460
+ if (YAML_NODE_KINDS2.indexOf(this.kind) === -1) {
50461
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
50462
+ }
50463
+ }
50464
+ type = Type2;
50465
+ return type;
50466
+ }
50467
+ var schema;
50468
+ var hasRequiredSchema;
50469
+ function requireSchema() {
50470
+ if (hasRequiredSchema) return schema;
50471
+ hasRequiredSchema = 1;
50472
+ var YAMLException2 = requireException();
50473
+ var Type2 = requireType();
50474
+ function compileList2(schema2, name) {
50475
+ var result = [];
50476
+ schema2[name].forEach(function(currentType) {
50477
+ var newIndex = result.length;
50478
+ result.forEach(function(previousType, previousIndex) {
50479
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
50480
+ newIndex = previousIndex;
50481
+ }
50482
+ });
50483
+ result[newIndex] = currentType;
50484
+ });
50485
+ return result;
50486
+ }
50487
+ function compileMap2() {
50488
+ var result = {
50489
+ scalar: {},
50490
+ sequence: {},
50491
+ mapping: {},
50492
+ fallback: {},
50493
+ multi: {
50494
+ scalar: [],
50495
+ sequence: [],
50496
+ mapping: [],
50497
+ fallback: []
50498
+ }
50499
+ }, index2, length;
50500
+ function collectType(type2) {
50501
+ if (type2.multi) {
50502
+ result.multi[type2.kind].push(type2);
50503
+ result.multi["fallback"].push(type2);
50504
+ } else {
50505
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
50506
+ }
50507
+ }
50508
+ for (index2 = 0, length = arguments.length; index2 < length; index2 += 1) {
50509
+ arguments[index2].forEach(collectType);
50510
+ }
50511
+ return result;
50512
+ }
50513
+ function Schema2(definition) {
50514
+ return this.extend(definition);
50515
+ }
50516
+ Schema2.prototype.extend = function extend3(definition) {
50517
+ var implicit = [];
50518
+ var explicit = [];
50519
+ if (definition instanceof Type2) {
50520
+ explicit.push(definition);
50521
+ } else if (Array.isArray(definition)) {
50522
+ explicit = explicit.concat(definition);
50523
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
50524
+ if (definition.implicit) implicit = implicit.concat(definition.implicit);
50525
+ if (definition.explicit) explicit = explicit.concat(definition.explicit);
50526
+ } else {
50527
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
50528
+ }
50529
+ implicit.forEach(function(type2) {
50530
+ if (!(type2 instanceof Type2)) {
50531
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
50532
+ }
50533
+ if (type2.loadKind && type2.loadKind !== "scalar") {
50534
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
50535
+ }
50536
+ if (type2.multi) {
50537
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
50538
+ }
50539
+ });
50540
+ explicit.forEach(function(type2) {
50541
+ if (!(type2 instanceof Type2)) {
50542
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
50543
+ }
50544
+ });
50545
+ var result = Object.create(Schema2.prototype);
50546
+ result.implicit = (this.implicit || []).concat(implicit);
50547
+ result.explicit = (this.explicit || []).concat(explicit);
50548
+ result.compiledImplicit = compileList2(result, "implicit");
50549
+ result.compiledExplicit = compileList2(result, "explicit");
50550
+ result.compiledTypeMap = compileMap2(result.compiledImplicit, result.compiledExplicit);
50551
+ return result;
50552
+ };
50553
+ schema = Schema2;
50554
+ return schema;
50555
+ }
50556
+ var str;
50557
+ var hasRequiredStr;
50558
+ function requireStr() {
50559
+ if (hasRequiredStr) return str;
50560
+ hasRequiredStr = 1;
50561
+ var Type2 = requireType();
50562
+ str = new Type2("tag:yaml.org,2002:str", {
50563
+ kind: "scalar",
50564
+ construct: function(data) {
50565
+ return data !== null ? data : "";
50566
+ }
50567
+ });
50568
+ return str;
50569
+ }
50570
+ var seq;
50571
+ var hasRequiredSeq;
50572
+ function requireSeq() {
50573
+ if (hasRequiredSeq) return seq;
50574
+ hasRequiredSeq = 1;
50575
+ var Type2 = requireType();
50576
+ seq = new Type2("tag:yaml.org,2002:seq", {
50577
+ kind: "sequence",
50578
+ construct: function(data) {
50579
+ return data !== null ? data : [];
50580
+ }
50581
+ });
50582
+ return seq;
50583
+ }
50584
+ var map;
50585
+ var hasRequiredMap;
50586
+ function requireMap() {
50587
+ if (hasRequiredMap) return map;
50588
+ hasRequiredMap = 1;
50589
+ var Type2 = requireType();
50590
+ map = new Type2("tag:yaml.org,2002:map", {
50591
+ kind: "mapping",
50592
+ construct: function(data) {
50593
+ return data !== null ? data : {};
50594
+ }
50595
+ });
50596
+ return map;
50597
+ }
50598
+ var failsafe;
50599
+ var hasRequiredFailsafe;
50600
+ function requireFailsafe() {
50601
+ if (hasRequiredFailsafe) return failsafe;
50602
+ hasRequiredFailsafe = 1;
50603
+ var Schema2 = requireSchema();
50604
+ failsafe = new Schema2({
50605
+ explicit: [
50606
+ requireStr(),
50607
+ requireSeq(),
50608
+ requireMap()
50609
+ ]
50610
+ });
50611
+ return failsafe;
50612
+ }
50613
+ var _null;
50614
+ var hasRequired_null;
50615
+ function require_null() {
50616
+ if (hasRequired_null) return _null;
50617
+ hasRequired_null = 1;
50618
+ var Type2 = requireType();
50619
+ function resolveYamlNull2(data) {
50620
+ if (data === null) return true;
50621
+ var max = data.length;
50622
+ return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
50623
+ }
50624
+ function constructYamlNull2() {
50625
+ return null;
50626
+ }
50627
+ function isNull2(object) {
50628
+ return object === null;
50629
+ }
50630
+ _null = new Type2("tag:yaml.org,2002:null", {
50631
+ kind: "scalar",
50632
+ resolve: resolveYamlNull2,
50633
+ construct: constructYamlNull2,
50634
+ predicate: isNull2,
50635
+ represent: {
50636
+ canonical: function() {
50637
+ return "~";
50638
+ },
50639
+ lowercase: function() {
50640
+ return "null";
50641
+ },
50642
+ uppercase: function() {
50643
+ return "NULL";
50644
+ },
50645
+ camelcase: function() {
50646
+ return "Null";
50647
+ },
50648
+ empty: function() {
50649
+ return "";
50650
+ }
50651
+ },
50652
+ defaultStyle: "lowercase"
50653
+ });
50654
+ return _null;
50655
+ }
50656
+ var bool;
50657
+ var hasRequiredBool;
50658
+ function requireBool() {
50659
+ if (hasRequiredBool) return bool;
50660
+ hasRequiredBool = 1;
50661
+ var Type2 = requireType();
50662
+ function resolveYamlBoolean2(data) {
50663
+ if (data === null) return false;
50664
+ var max = data.length;
50665
+ return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
50666
+ }
50667
+ function constructYamlBoolean2(data) {
50668
+ return data === "true" || data === "True" || data === "TRUE";
50669
+ }
50670
+ function isBoolean2(object) {
50671
+ return Object.prototype.toString.call(object) === "[object Boolean]";
50672
+ }
50673
+ bool = new Type2("tag:yaml.org,2002:bool", {
50674
+ kind: "scalar",
50675
+ resolve: resolveYamlBoolean2,
50676
+ construct: constructYamlBoolean2,
50677
+ predicate: isBoolean2,
50678
+ represent: {
50679
+ lowercase: function(object) {
50680
+ return object ? "true" : "false";
50681
+ },
50682
+ uppercase: function(object) {
50683
+ return object ? "TRUE" : "FALSE";
50684
+ },
50685
+ camelcase: function(object) {
50686
+ return object ? "True" : "False";
50687
+ }
50688
+ },
50689
+ defaultStyle: "lowercase"
50690
+ });
50691
+ return bool;
50692
+ }
50693
+ var int;
50694
+ var hasRequiredInt;
50695
+ function requireInt() {
50696
+ if (hasRequiredInt) return int;
50697
+ hasRequiredInt = 1;
50698
+ var common2 = requireCommon();
50699
+ var Type2 = requireType();
50700
+ function isHexCode2(c) {
50701
+ return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
50702
+ }
50703
+ function isOctCode2(c) {
50704
+ return 48 <= c && c <= 55;
50705
+ }
50706
+ function isDecCode2(c) {
50707
+ return 48 <= c && c <= 57;
50708
+ }
50709
+ function resolveYamlInteger2(data) {
50710
+ if (data === null) return false;
50711
+ var max = data.length, index2 = 0, hasDigits = false, ch;
50712
+ if (!max) return false;
50713
+ ch = data[index2];
50714
+ if (ch === "-" || ch === "+") {
50715
+ ch = data[++index2];
50716
+ }
50717
+ if (ch === "0") {
50718
+ if (index2 + 1 === max) return true;
50719
+ ch = data[++index2];
50720
+ if (ch === "b") {
50721
+ index2++;
50722
+ for (; index2 < max; index2++) {
50723
+ ch = data[index2];
50724
+ if (ch === "_") continue;
50725
+ if (ch !== "0" && ch !== "1") return false;
50726
+ hasDigits = true;
50727
+ }
50728
+ return hasDigits && ch !== "_";
50729
+ }
50730
+ if (ch === "x") {
50731
+ index2++;
50732
+ for (; index2 < max; index2++) {
50733
+ ch = data[index2];
50734
+ if (ch === "_") continue;
50735
+ if (!isHexCode2(data.charCodeAt(index2))) return false;
50736
+ hasDigits = true;
50737
+ }
50738
+ return hasDigits && ch !== "_";
50739
+ }
50740
+ if (ch === "o") {
50741
+ index2++;
50742
+ for (; index2 < max; index2++) {
50743
+ ch = data[index2];
50744
+ if (ch === "_") continue;
50745
+ if (!isOctCode2(data.charCodeAt(index2))) return false;
50746
+ hasDigits = true;
50747
+ }
50748
+ return hasDigits && ch !== "_";
50749
+ }
50750
+ }
50751
+ if (ch === "_") return false;
50752
+ for (; index2 < max; index2++) {
50753
+ ch = data[index2];
50754
+ if (ch === "_") continue;
50755
+ if (!isDecCode2(data.charCodeAt(index2))) {
50756
+ return false;
50757
+ }
50758
+ hasDigits = true;
50759
+ }
50760
+ if (!hasDigits || ch === "_") return false;
50761
+ return true;
50762
+ }
50763
+ function constructYamlInteger2(data) {
50764
+ var value = data, sign = 1, ch;
50765
+ if (value.indexOf("_") !== -1) {
50766
+ value = value.replace(/_/g, "");
50767
+ }
50768
+ ch = value[0];
50769
+ if (ch === "-" || ch === "+") {
50770
+ if (ch === "-") sign = -1;
50771
+ value = value.slice(1);
50772
+ ch = value[0];
50773
+ }
50774
+ if (value === "0") return 0;
50775
+ if (ch === "0") {
50776
+ if (value[1] === "b") return sign * parseInt(value.slice(2), 2);
50777
+ if (value[1] === "x") return sign * parseInt(value.slice(2), 16);
50778
+ if (value[1] === "o") return sign * parseInt(value.slice(2), 8);
50779
+ }
50780
+ return sign * parseInt(value, 10);
50781
+ }
50782
+ function isInteger2(object) {
50783
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
50784
+ }
50785
+ int = new Type2("tag:yaml.org,2002:int", {
50786
+ kind: "scalar",
50787
+ resolve: resolveYamlInteger2,
50788
+ construct: constructYamlInteger2,
50789
+ predicate: isInteger2,
50790
+ represent: {
50791
+ binary: function(obj) {
50792
+ return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1);
50793
+ },
50794
+ octal: function(obj) {
50795
+ return obj >= 0 ? "0o" + obj.toString(8) : "-0o" + obj.toString(8).slice(1);
50796
+ },
50797
+ decimal: function(obj) {
50798
+ return obj.toString(10);
50799
+ },
50800
+ /* eslint-disable max-len */
50801
+ hexadecimal: function(obj) {
50802
+ return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
50803
+ }
50804
+ },
50805
+ defaultStyle: "decimal",
50806
+ styleAliases: {
50807
+ binary: [2, "bin"],
50808
+ octal: [8, "oct"],
50809
+ decimal: [10, "dec"],
50810
+ hexadecimal: [16, "hex"]
50811
+ }
50812
+ });
50813
+ return int;
50814
+ }
50815
+ var float;
50816
+ var hasRequiredFloat;
50817
+ function requireFloat() {
50818
+ if (hasRequiredFloat) return float;
50819
+ hasRequiredFloat = 1;
50820
+ var common2 = requireCommon();
50821
+ var Type2 = requireType();
50822
+ var YAML_FLOAT_PATTERN2 = new RegExp(
50823
+ // 2.5e4, 2.5 and integers
50824
+ "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
50825
+ );
50826
+ function resolveYamlFloat2(data) {
50827
+ if (data === null) return false;
50828
+ if (!YAML_FLOAT_PATTERN2.test(data) || // Quick hack to not allow integers end with `_`
50829
+ // Probably should update regexp & check speed
50830
+ data[data.length - 1] === "_") {
50831
+ return false;
50832
+ }
50833
+ return true;
50834
+ }
50835
+ function constructYamlFloat2(data) {
50836
+ var value, sign;
50837
+ value = data.replace(/_/g, "").toLowerCase();
50838
+ sign = value[0] === "-" ? -1 : 1;
50839
+ if ("+-".indexOf(value[0]) >= 0) {
50840
+ value = value.slice(1);
50841
+ }
50842
+ if (value === ".inf") {
50843
+ return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
50844
+ } else if (value === ".nan") {
50845
+ return NaN;
50846
+ }
50847
+ return sign * parseFloat(value, 10);
50848
+ }
50849
+ var SCIENTIFIC_WITHOUT_DOT2 = /^[-+]?[0-9]+e/;
50850
+ function representYamlFloat2(object, style) {
50851
+ var res;
50852
+ if (isNaN(object)) {
50853
+ switch (style) {
50854
+ case "lowercase":
50855
+ return ".nan";
50856
+ case "uppercase":
50857
+ return ".NAN";
50858
+ case "camelcase":
50859
+ return ".NaN";
50860
+ }
50861
+ } else if (Number.POSITIVE_INFINITY === object) {
50862
+ switch (style) {
50863
+ case "lowercase":
50864
+ return ".inf";
50865
+ case "uppercase":
50866
+ return ".INF";
50867
+ case "camelcase":
50868
+ return ".Inf";
50869
+ }
50870
+ } else if (Number.NEGATIVE_INFINITY === object) {
50871
+ switch (style) {
50872
+ case "lowercase":
50873
+ return "-.inf";
50874
+ case "uppercase":
50875
+ return "-.INF";
50876
+ case "camelcase":
50877
+ return "-.Inf";
50878
+ }
50879
+ } else if (common2.isNegativeZero(object)) {
50880
+ return "-0.0";
50881
+ }
50882
+ res = object.toString(10);
50883
+ return SCIENTIFIC_WITHOUT_DOT2.test(res) ? res.replace("e", ".e") : res;
50884
+ }
50885
+ function isFloat2(object) {
50886
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
50887
+ }
50888
+ float = new Type2("tag:yaml.org,2002:float", {
50889
+ kind: "scalar",
50890
+ resolve: resolveYamlFloat2,
50891
+ construct: constructYamlFloat2,
50892
+ predicate: isFloat2,
50893
+ represent: representYamlFloat2,
50894
+ defaultStyle: "lowercase"
50895
+ });
50896
+ return float;
50897
+ }
50898
+ var json;
50899
+ var hasRequiredJson;
50900
+ function requireJson() {
50901
+ if (hasRequiredJson) return json;
50902
+ hasRequiredJson = 1;
50903
+ json = requireFailsafe().extend({
50904
+ implicit: [
50905
+ require_null(),
50906
+ requireBool(),
50907
+ requireInt(),
50908
+ requireFloat()
50909
+ ]
50910
+ });
50911
+ return json;
50912
+ }
50913
+ var core;
50914
+ var hasRequiredCore;
50915
+ function requireCore() {
50916
+ if (hasRequiredCore) return core;
50917
+ hasRequiredCore = 1;
50918
+ core = requireJson();
50919
+ return core;
50920
+ }
50921
+ var timestamp;
50922
+ var hasRequiredTimestamp;
50923
+ function requireTimestamp() {
50924
+ if (hasRequiredTimestamp) return timestamp;
50925
+ hasRequiredTimestamp = 1;
50926
+ var Type2 = requireType();
50927
+ var YAML_DATE_REGEXP2 = new RegExp(
50928
+ "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
50929
+ );
50930
+ var YAML_TIMESTAMP_REGEXP2 = new RegExp(
50931
+ "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
50932
+ );
50933
+ function resolveYamlTimestamp2(data) {
50934
+ if (data === null) return false;
50935
+ if (YAML_DATE_REGEXP2.exec(data) !== null) return true;
50936
+ if (YAML_TIMESTAMP_REGEXP2.exec(data) !== null) return true;
50937
+ return false;
50938
+ }
50939
+ function constructYamlTimestamp2(data) {
50940
+ var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
50941
+ match = YAML_DATE_REGEXP2.exec(data);
50942
+ if (match === null) match = YAML_TIMESTAMP_REGEXP2.exec(data);
50943
+ if (match === null) throw new Error("Date resolve error");
50944
+ year = +match[1];
50945
+ month = +match[2] - 1;
50946
+ day = +match[3];
50947
+ if (!match[4]) {
50948
+ return new Date(Date.UTC(year, month, day));
50949
+ }
50950
+ hour = +match[4];
50951
+ minute = +match[5];
50952
+ second = +match[6];
50953
+ if (match[7]) {
50954
+ fraction = match[7].slice(0, 3);
50955
+ while (fraction.length < 3) {
50956
+ fraction += "0";
50957
+ }
50958
+ fraction = +fraction;
50959
+ }
50960
+ if (match[9]) {
50961
+ tz_hour = +match[10];
50962
+ tz_minute = +(match[11] || 0);
50963
+ delta = (tz_hour * 60 + tz_minute) * 6e4;
50964
+ if (match[9] === "-") delta = -delta;
50965
+ }
50966
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
50967
+ if (delta) date.setTime(date.getTime() - delta);
50968
+ return date;
50969
+ }
50970
+ function representYamlTimestamp2(object) {
50971
+ return object.toISOString();
50972
+ }
50973
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
50974
+ kind: "scalar",
50975
+ resolve: resolveYamlTimestamp2,
50976
+ construct: constructYamlTimestamp2,
50977
+ instanceOf: Date,
50978
+ represent: representYamlTimestamp2
50979
+ });
50980
+ return timestamp;
50981
+ }
50982
+ var merge;
50983
+ var hasRequiredMerge;
50984
+ function requireMerge() {
50985
+ if (hasRequiredMerge) return merge;
50986
+ hasRequiredMerge = 1;
50987
+ var Type2 = requireType();
50988
+ function resolveYamlMerge2(data) {
50989
+ return data === "<<" || data === null;
50990
+ }
50991
+ merge = new Type2("tag:yaml.org,2002:merge", {
50992
+ kind: "scalar",
50993
+ resolve: resolveYamlMerge2
50994
+ });
50995
+ return merge;
50996
+ }
50997
+ var binary;
50998
+ var hasRequiredBinary;
50999
+ function requireBinary() {
51000
+ if (hasRequiredBinary) return binary;
51001
+ hasRequiredBinary = 1;
51002
+ var Type2 = requireType();
51003
+ var BASE64_MAP2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
51004
+ function resolveYamlBinary2(data) {
51005
+ if (data === null) return false;
51006
+ var code, idx, bitlen = 0, max = data.length, map2 = BASE64_MAP2;
51007
+ for (idx = 0; idx < max; idx++) {
51008
+ code = map2.indexOf(data.charAt(idx));
51009
+ if (code > 64) continue;
51010
+ if (code < 0) return false;
51011
+ bitlen += 6;
51012
+ }
51013
+ return bitlen % 8 === 0;
51014
+ }
51015
+ function constructYamlBinary2(data) {
51016
+ var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map2 = BASE64_MAP2, bits = 0, result = [];
51017
+ for (idx = 0; idx < max; idx++) {
51018
+ if (idx % 4 === 0 && idx) {
51019
+ result.push(bits >> 16 & 255);
51020
+ result.push(bits >> 8 & 255);
51021
+ result.push(bits & 255);
51022
+ }
51023
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
51024
+ }
51025
+ tailbits = max % 4 * 6;
51026
+ if (tailbits === 0) {
51027
+ result.push(bits >> 16 & 255);
51028
+ result.push(bits >> 8 & 255);
51029
+ result.push(bits & 255);
51030
+ } else if (tailbits === 18) {
51031
+ result.push(bits >> 10 & 255);
51032
+ result.push(bits >> 2 & 255);
51033
+ } else if (tailbits === 12) {
51034
+ result.push(bits >> 4 & 255);
51035
+ }
51036
+ return new Uint8Array(result);
51037
+ }
51038
+ function representYamlBinary2(object) {
51039
+ var result = "", bits = 0, idx, tail, max = object.length, map2 = BASE64_MAP2;
51040
+ for (idx = 0; idx < max; idx++) {
51041
+ if (idx % 3 === 0 && idx) {
51042
+ result += map2[bits >> 18 & 63];
51043
+ result += map2[bits >> 12 & 63];
51044
+ result += map2[bits >> 6 & 63];
51045
+ result += map2[bits & 63];
51046
+ }
51047
+ bits = (bits << 8) + object[idx];
51048
+ }
51049
+ tail = max % 3;
51050
+ if (tail === 0) {
51051
+ result += map2[bits >> 18 & 63];
51052
+ result += map2[bits >> 12 & 63];
51053
+ result += map2[bits >> 6 & 63];
51054
+ result += map2[bits & 63];
51055
+ } else if (tail === 2) {
51056
+ result += map2[bits >> 10 & 63];
51057
+ result += map2[bits >> 4 & 63];
51058
+ result += map2[bits << 2 & 63];
51059
+ result += map2[64];
51060
+ } else if (tail === 1) {
51061
+ result += map2[bits >> 2 & 63];
51062
+ result += map2[bits << 4 & 63];
51063
+ result += map2[64];
51064
+ result += map2[64];
51065
+ }
51066
+ return result;
51067
+ }
51068
+ function isBinary2(obj) {
51069
+ return Object.prototype.toString.call(obj) === "[object Uint8Array]";
51070
+ }
51071
+ binary = new Type2("tag:yaml.org,2002:binary", {
51072
+ kind: "scalar",
51073
+ resolve: resolveYamlBinary2,
51074
+ construct: constructYamlBinary2,
51075
+ predicate: isBinary2,
51076
+ represent: representYamlBinary2
51077
+ });
51078
+ return binary;
51079
+ }
51080
+ var omap;
51081
+ var hasRequiredOmap;
51082
+ function requireOmap() {
51083
+ if (hasRequiredOmap) return omap;
51084
+ hasRequiredOmap = 1;
51085
+ var Type2 = requireType();
51086
+ var _hasOwnProperty2 = Object.prototype.hasOwnProperty;
51087
+ var _toString2 = Object.prototype.toString;
51088
+ function resolveYamlOmap2(data) {
51089
+ if (data === null) return true;
51090
+ var objectKeys = [], index2, length, pair, pairKey, pairHasKey, object = data;
51091
+ for (index2 = 0, length = object.length; index2 < length; index2 += 1) {
51092
+ pair = object[index2];
51093
+ pairHasKey = false;
51094
+ if (_toString2.call(pair) !== "[object Object]") return false;
51095
+ for (pairKey in pair) {
51096
+ if (_hasOwnProperty2.call(pair, pairKey)) {
51097
+ if (!pairHasKey) pairHasKey = true;
51098
+ else return false;
51099
+ }
51100
+ }
51101
+ if (!pairHasKey) return false;
51102
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
51103
+ else return false;
51104
+ }
51105
+ return true;
51106
+ }
51107
+ function constructYamlOmap2(data) {
51108
+ return data !== null ? data : [];
51109
+ }
51110
+ omap = new Type2("tag:yaml.org,2002:omap", {
51111
+ kind: "sequence",
51112
+ resolve: resolveYamlOmap2,
51113
+ construct: constructYamlOmap2
51114
+ });
51115
+ return omap;
51116
+ }
51117
+ var pairs;
51118
+ var hasRequiredPairs;
51119
+ function requirePairs() {
51120
+ if (hasRequiredPairs) return pairs;
51121
+ hasRequiredPairs = 1;
51122
+ var Type2 = requireType();
51123
+ var _toString2 = Object.prototype.toString;
51124
+ function resolveYamlPairs2(data) {
51125
+ if (data === null) return true;
51126
+ var index2, length, pair, keys, result, object = data;
51127
+ result = new Array(object.length);
51128
+ for (index2 = 0, length = object.length; index2 < length; index2 += 1) {
51129
+ pair = object[index2];
51130
+ if (_toString2.call(pair) !== "[object Object]") return false;
51131
+ keys = Object.keys(pair);
51132
+ if (keys.length !== 1) return false;
51133
+ result[index2] = [keys[0], pair[keys[0]]];
51134
+ }
51135
+ return true;
51136
+ }
51137
+ function constructYamlPairs2(data) {
51138
+ if (data === null) return [];
51139
+ var index2, length, pair, keys, result, object = data;
51140
+ result = new Array(object.length);
51141
+ for (index2 = 0, length = object.length; index2 < length; index2 += 1) {
51142
+ pair = object[index2];
51143
+ keys = Object.keys(pair);
51144
+ result[index2] = [keys[0], pair[keys[0]]];
51145
+ }
51146
+ return result;
51147
+ }
51148
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
51149
+ kind: "sequence",
51150
+ resolve: resolveYamlPairs2,
51151
+ construct: constructYamlPairs2
51152
+ });
51153
+ return pairs;
51154
+ }
51155
+ var set;
51156
+ var hasRequiredSet;
51157
+ function requireSet() {
51158
+ if (hasRequiredSet) return set;
51159
+ hasRequiredSet = 1;
51160
+ var Type2 = requireType();
51161
+ var _hasOwnProperty2 = Object.prototype.hasOwnProperty;
51162
+ function resolveYamlSet2(data) {
51163
+ if (data === null) return true;
51164
+ var key, object = data;
51165
+ for (key in object) {
51166
+ if (_hasOwnProperty2.call(object, key)) {
51167
+ if (object[key] !== null) return false;
51168
+ }
51169
+ }
51170
+ return true;
51171
+ }
51172
+ function constructYamlSet2(data) {
51173
+ return data !== null ? data : {};
51174
+ }
51175
+ set = new Type2("tag:yaml.org,2002:set", {
51176
+ kind: "mapping",
51177
+ resolve: resolveYamlSet2,
51178
+ construct: constructYamlSet2
51179
+ });
51180
+ return set;
51181
+ }
51182
+ var _default;
51183
+ var hasRequired_default;
51184
+ function require_default() {
51185
+ if (hasRequired_default) return _default;
51186
+ hasRequired_default = 1;
51187
+ _default = requireCore().extend({
51188
+ implicit: [
51189
+ requireTimestamp(),
51190
+ requireMerge()
51191
+ ],
51192
+ explicit: [
51193
+ requireBinary(),
51194
+ requireOmap(),
51195
+ requirePairs(),
51196
+ requireSet()
51197
+ ]
51198
+ });
51199
+ return _default;
51200
+ }
51201
+ var hasRequiredLoader;
51202
+ function requireLoader() {
51203
+ if (hasRequiredLoader) return loader;
51204
+ hasRequiredLoader = 1;
51205
+ var common2 = requireCommon();
51206
+ var YAMLException2 = requireException();
51207
+ var makeSnippet2 = requireSnippet();
51208
+ var DEFAULT_SCHEMA2 = require_default();
51209
+ var _hasOwnProperty2 = Object.prototype.hasOwnProperty;
51210
+ var CONTEXT_FLOW_IN2 = 1;
51211
+ var CONTEXT_FLOW_OUT2 = 2;
51212
+ var CONTEXT_BLOCK_IN2 = 3;
51213
+ var CONTEXT_BLOCK_OUT2 = 4;
51214
+ var CHOMPING_CLIP2 = 1;
51215
+ var CHOMPING_STRIP2 = 2;
51216
+ var CHOMPING_KEEP2 = 3;
51217
+ var PATTERN_NON_PRINTABLE2 = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
51218
+ var PATTERN_NON_ASCII_LINE_BREAKS2 = /[\x85\u2028\u2029]/;
51219
+ var PATTERN_FLOW_INDICATORS2 = /[,\[\]\{\}]/;
51220
+ var PATTERN_TAG_HANDLE2 = /^(?:!|!!|![a-z\-]+!)$/i;
51221
+ var PATTERN_TAG_URI2 = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
51222
+ function _class2(obj) {
51223
+ return Object.prototype.toString.call(obj);
51224
+ }
51225
+ function is_EOL2(c) {
51226
+ return c === 10 || c === 13;
51227
+ }
51228
+ function is_WHITE_SPACE2(c) {
51229
+ return c === 9 || c === 32;
51230
+ }
51231
+ function is_WS_OR_EOL2(c) {
51232
+ return c === 9 || c === 32 || c === 10 || c === 13;
51233
+ }
51234
+ function is_FLOW_INDICATOR2(c) {
51235
+ return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
51236
+ }
51237
+ function fromHexCode2(c) {
51238
+ var lc;
51239
+ if (48 <= c && c <= 57) {
51240
+ return c - 48;
51241
+ }
51242
+ lc = c | 32;
51243
+ if (97 <= lc && lc <= 102) {
51244
+ return lc - 97 + 10;
51245
+ }
51246
+ return -1;
51247
+ }
51248
+ function escapedHexLen2(c) {
51249
+ if (c === 120) {
51250
+ return 2;
51251
+ }
51252
+ if (c === 117) {
51253
+ return 4;
51254
+ }
51255
+ if (c === 85) {
51256
+ return 8;
51257
+ }
51258
+ return 0;
51259
+ }
51260
+ function fromDecimalCode2(c) {
51261
+ if (48 <= c && c <= 57) {
51262
+ return c - 48;
51263
+ }
51264
+ return -1;
51265
+ }
51266
+ function simpleEscapeSequence2(c) {
51267
+ return c === 48 ? "\0" : c === 97 ? "\x07" : c === 98 ? "\b" : c === 116 ? " " : c === 9 ? " " : c === 110 ? "\n" : c === 118 ? "\v" : c === 102 ? "\f" : c === 114 ? "\r" : c === 101 ? "\x1B" : c === 32 ? " " : c === 34 ? '"' : c === 47 ? "/" : c === 92 ? "\\" : c === 78 ? "…" : c === 95 ? " " : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
51268
+ }
51269
+ function charFromCodepoint2(c) {
51270
+ if (c <= 65535) {
51271
+ return String.fromCharCode(c);
51272
+ }
51273
+ return String.fromCharCode(
51274
+ (c - 65536 >> 10) + 55296,
51275
+ (c - 65536 & 1023) + 56320
51276
+ );
51277
+ }
51278
+ function setProperty2(object, key, value) {
51279
+ if (key === "__proto__") {
51280
+ Object.defineProperty(object, key, {
51281
+ configurable: true,
51282
+ enumerable: true,
51283
+ writable: true,
51284
+ value
51285
+ });
51286
+ } else {
51287
+ object[key] = value;
51288
+ }
51289
+ }
51290
+ var simpleEscapeCheck2 = new Array(256);
51291
+ var simpleEscapeMap2 = new Array(256);
51292
+ for (var i = 0; i < 256; i++) {
51293
+ simpleEscapeCheck2[i] = simpleEscapeSequence2(i) ? 1 : 0;
51294
+ simpleEscapeMap2[i] = simpleEscapeSequence2(i);
51295
+ }
51296
+ function State2(input, options) {
51297
+ this.input = input;
51298
+ this.filename = options["filename"] || null;
51299
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
51300
+ this.onWarning = options["onWarning"] || null;
51301
+ this.legacy = options["legacy"] || false;
51302
+ this.json = options["json"] || false;
51303
+ this.listener = options["listener"] || null;
51304
+ this.implicitTypes = this.schema.compiledImplicit;
51305
+ this.typeMap = this.schema.compiledTypeMap;
51306
+ this.length = input.length;
51307
+ this.position = 0;
51308
+ this.line = 0;
51309
+ this.lineStart = 0;
51310
+ this.lineIndent = 0;
51311
+ this.firstTabInLine = -1;
51312
+ this.documents = [];
51313
+ }
51314
+ function generateError2(state, message) {
51315
+ var mark = {
51316
+ name: state.filename,
51317
+ buffer: state.input.slice(0, -1),
51318
+ // omit trailing \0
51319
+ position: state.position,
51320
+ line: state.line,
51321
+ column: state.position - state.lineStart
51322
+ };
51323
+ mark.snippet = makeSnippet2(mark);
51324
+ return new YAMLException2(message, mark);
51325
+ }
51326
+ function throwError2(state, message) {
51327
+ throw generateError2(state, message);
51328
+ }
51329
+ function throwWarning2(state, message) {
51330
+ if (state.onWarning) {
51331
+ state.onWarning.call(null, generateError2(state, message));
51332
+ }
51333
+ }
51334
+ var directiveHandlers2 = {
51335
+ YAML: function handleYamlDirective2(state, name, args) {
51336
+ var match, major, minor;
51337
+ if (state.version !== null) {
51338
+ throwError2(state, "duplication of %YAML directive");
51339
+ }
51340
+ if (args.length !== 1) {
51341
+ throwError2(state, "YAML directive accepts exactly one argument");
51342
+ }
51343
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
51344
+ if (match === null) {
51345
+ throwError2(state, "ill-formed argument of the YAML directive");
51346
+ }
51347
+ major = parseInt(match[1], 10);
51348
+ minor = parseInt(match[2], 10);
51349
+ if (major !== 1) {
51350
+ throwError2(state, "unacceptable YAML version of the document");
51351
+ }
51352
+ state.version = args[0];
51353
+ state.checkLineBreaks = minor < 2;
51354
+ if (minor !== 1 && minor !== 2) {
51355
+ throwWarning2(state, "unsupported YAML version of the document");
51356
+ }
51357
+ },
51358
+ TAG: function handleTagDirective2(state, name, args) {
51359
+ var handle, prefix;
51360
+ if (args.length !== 2) {
51361
+ throwError2(state, "TAG directive accepts exactly two arguments");
51362
+ }
51363
+ handle = args[0];
51364
+ prefix = args[1];
51365
+ if (!PATTERN_TAG_HANDLE2.test(handle)) {
51366
+ throwError2(state, "ill-formed tag handle (first argument) of the TAG directive");
51367
+ }
51368
+ if (_hasOwnProperty2.call(state.tagMap, handle)) {
51369
+ throwError2(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
51370
+ }
51371
+ if (!PATTERN_TAG_URI2.test(prefix)) {
51372
+ throwError2(state, "ill-formed tag prefix (second argument) of the TAG directive");
51373
+ }
51374
+ try {
51375
+ prefix = decodeURIComponent(prefix);
51376
+ } catch (err) {
51377
+ throwError2(state, "tag prefix is malformed: " + prefix);
51378
+ }
51379
+ state.tagMap[handle] = prefix;
51380
+ }
51381
+ };
51382
+ function captureSegment2(state, start, end, checkJson) {
51383
+ var _position, _length, _character, _result;
51384
+ if (start < end) {
51385
+ _result = state.input.slice(start, end);
51386
+ if (checkJson) {
51387
+ for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
51388
+ _character = _result.charCodeAt(_position);
51389
+ if (!(_character === 9 || 32 <= _character && _character <= 1114111)) {
51390
+ throwError2(state, "expected valid JSON character");
51391
+ }
51392
+ }
51393
+ } else if (PATTERN_NON_PRINTABLE2.test(_result)) {
51394
+ throwError2(state, "the stream contains non-printable characters");
51395
+ }
51396
+ state.result += _result;
51397
+ }
51398
+ }
51399
+ function mergeMappings2(state, destination, source, overridableKeys) {
51400
+ var sourceKeys, key, index2, quantity;
51401
+ if (!common2.isObject(source)) {
51402
+ throwError2(state, "cannot merge mappings; the provided source object is unacceptable");
51403
+ }
51404
+ sourceKeys = Object.keys(source);
51405
+ for (index2 = 0, quantity = sourceKeys.length; index2 < quantity; index2 += 1) {
51406
+ key = sourceKeys[index2];
51407
+ if (!_hasOwnProperty2.call(destination, key)) {
51408
+ setProperty2(destination, key, source[key]);
51409
+ overridableKeys[key] = true;
51410
+ }
51411
+ }
51412
+ }
51413
+ function storeMappingPair2(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
51414
+ var index2, quantity;
51415
+ if (Array.isArray(keyNode)) {
51416
+ keyNode = Array.prototype.slice.call(keyNode);
51417
+ for (index2 = 0, quantity = keyNode.length; index2 < quantity; index2 += 1) {
51418
+ if (Array.isArray(keyNode[index2])) {
51419
+ throwError2(state, "nested arrays are not supported inside keys");
51420
+ }
51421
+ if (typeof keyNode === "object" && _class2(keyNode[index2]) === "[object Object]") {
51422
+ keyNode[index2] = "[object Object]";
51423
+ }
51424
+ }
51425
+ }
51426
+ if (typeof keyNode === "object" && _class2(keyNode) === "[object Object]") {
51427
+ keyNode = "[object Object]";
51428
+ }
51429
+ keyNode = String(keyNode);
51430
+ if (_result === null) {
51431
+ _result = {};
51432
+ }
51433
+ if (keyTag === "tag:yaml.org,2002:merge") {
51434
+ if (Array.isArray(valueNode)) {
51435
+ for (index2 = 0, quantity = valueNode.length; index2 < quantity; index2 += 1) {
51436
+ mergeMappings2(state, _result, valueNode[index2], overridableKeys);
51437
+ }
51438
+ } else {
51439
+ mergeMappings2(state, _result, valueNode, overridableKeys);
51440
+ }
51441
+ } else {
51442
+ if (!state.json && !_hasOwnProperty2.call(overridableKeys, keyNode) && _hasOwnProperty2.call(_result, keyNode)) {
51443
+ state.line = startLine || state.line;
51444
+ state.lineStart = startLineStart || state.lineStart;
51445
+ state.position = startPos || state.position;
51446
+ throwError2(state, "duplicated mapping key");
51447
+ }
51448
+ setProperty2(_result, keyNode, valueNode);
51449
+ delete overridableKeys[keyNode];
51450
+ }
51451
+ return _result;
51452
+ }
51453
+ function readLineBreak2(state) {
51454
+ var ch;
51455
+ ch = state.input.charCodeAt(state.position);
51456
+ if (ch === 10) {
51457
+ state.position++;
51458
+ } else if (ch === 13) {
51459
+ state.position++;
51460
+ if (state.input.charCodeAt(state.position) === 10) {
51461
+ state.position++;
51462
+ }
51463
+ } else {
51464
+ throwError2(state, "a line break is expected");
51465
+ }
51466
+ state.line += 1;
51467
+ state.lineStart = state.position;
51468
+ state.firstTabInLine = -1;
51469
+ }
51470
+ function skipSeparationSpace2(state, allowComments, checkIndent) {
51471
+ var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
51472
+ while (ch !== 0) {
51473
+ while (is_WHITE_SPACE2(ch)) {
51474
+ if (ch === 9 && state.firstTabInLine === -1) {
51475
+ state.firstTabInLine = state.position;
51476
+ }
51477
+ ch = state.input.charCodeAt(++state.position);
51478
+ }
51479
+ if (allowComments && ch === 35) {
51480
+ do {
51481
+ ch = state.input.charCodeAt(++state.position);
51482
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
51483
+ }
51484
+ if (is_EOL2(ch)) {
51485
+ readLineBreak2(state);
51486
+ ch = state.input.charCodeAt(state.position);
51487
+ lineBreaks++;
51488
+ state.lineIndent = 0;
51489
+ while (ch === 32) {
51490
+ state.lineIndent++;
51491
+ ch = state.input.charCodeAt(++state.position);
51492
+ }
51493
+ } else {
51494
+ break;
51495
+ }
51496
+ }
51497
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
51498
+ throwWarning2(state, "deficient indentation");
51499
+ }
51500
+ return lineBreaks;
51501
+ }
51502
+ function testDocumentSeparator2(state) {
51503
+ var _position = state.position, ch;
51504
+ ch = state.input.charCodeAt(_position);
51505
+ if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
51506
+ _position += 3;
51507
+ ch = state.input.charCodeAt(_position);
51508
+ if (ch === 0 || is_WS_OR_EOL2(ch)) {
51509
+ return true;
51510
+ }
51511
+ }
51512
+ return false;
51513
+ }
51514
+ function writeFoldedLines2(state, count) {
51515
+ if (count === 1) {
51516
+ state.result += " ";
51517
+ } else if (count > 1) {
51518
+ state.result += common2.repeat("\n", count - 1);
51519
+ }
51520
+ }
51521
+ function readPlainScalar2(state, nodeIndent, withinFlowCollection) {
51522
+ var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch;
51523
+ ch = state.input.charCodeAt(state.position);
51524
+ if (is_WS_OR_EOL2(ch) || is_FLOW_INDICATOR2(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
51525
+ return false;
51526
+ }
51527
+ if (ch === 63 || ch === 45) {
51528
+ following = state.input.charCodeAt(state.position + 1);
51529
+ if (is_WS_OR_EOL2(following) || withinFlowCollection && is_FLOW_INDICATOR2(following)) {
51530
+ return false;
51531
+ }
51532
+ }
51533
+ state.kind = "scalar";
51534
+ state.result = "";
51535
+ captureStart = captureEnd = state.position;
51536
+ hasPendingContent = false;
51537
+ while (ch !== 0) {
51538
+ if (ch === 58) {
51539
+ following = state.input.charCodeAt(state.position + 1);
51540
+ if (is_WS_OR_EOL2(following) || withinFlowCollection && is_FLOW_INDICATOR2(following)) {
51541
+ break;
51542
+ }
51543
+ } else if (ch === 35) {
51544
+ preceding = state.input.charCodeAt(state.position - 1);
51545
+ if (is_WS_OR_EOL2(preceding)) {
51546
+ break;
51547
+ }
51548
+ } else if (state.position === state.lineStart && testDocumentSeparator2(state) || withinFlowCollection && is_FLOW_INDICATOR2(ch)) {
51549
+ break;
51550
+ } else if (is_EOL2(ch)) {
51551
+ _line = state.line;
51552
+ _lineStart = state.lineStart;
51553
+ _lineIndent = state.lineIndent;
51554
+ skipSeparationSpace2(state, false, -1);
51555
+ if (state.lineIndent >= nodeIndent) {
51556
+ hasPendingContent = true;
51557
+ ch = state.input.charCodeAt(state.position);
51558
+ continue;
51559
+ } else {
51560
+ state.position = captureEnd;
51561
+ state.line = _line;
51562
+ state.lineStart = _lineStart;
51563
+ state.lineIndent = _lineIndent;
51564
+ break;
51565
+ }
51566
+ }
51567
+ if (hasPendingContent) {
51568
+ captureSegment2(state, captureStart, captureEnd, false);
51569
+ writeFoldedLines2(state, state.line - _line);
51570
+ captureStart = captureEnd = state.position;
51571
+ hasPendingContent = false;
51572
+ }
51573
+ if (!is_WHITE_SPACE2(ch)) {
51574
+ captureEnd = state.position + 1;
51575
+ }
51576
+ ch = state.input.charCodeAt(++state.position);
51577
+ }
51578
+ captureSegment2(state, captureStart, captureEnd, false);
51579
+ if (state.result) {
51580
+ return true;
51581
+ }
51582
+ state.kind = _kind;
51583
+ state.result = _result;
51584
+ return false;
51585
+ }
51586
+ function readSingleQuotedScalar2(state, nodeIndent) {
51587
+ var ch, captureStart, captureEnd;
51588
+ ch = state.input.charCodeAt(state.position);
51589
+ if (ch !== 39) {
51590
+ return false;
51591
+ }
51592
+ state.kind = "scalar";
51593
+ state.result = "";
51594
+ state.position++;
51595
+ captureStart = captureEnd = state.position;
51596
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
51597
+ if (ch === 39) {
51598
+ captureSegment2(state, captureStart, state.position, true);
51599
+ ch = state.input.charCodeAt(++state.position);
51600
+ if (ch === 39) {
51601
+ captureStart = state.position;
51602
+ state.position++;
51603
+ captureEnd = state.position;
51604
+ } else {
51605
+ return true;
51606
+ }
51607
+ } else if (is_EOL2(ch)) {
51608
+ captureSegment2(state, captureStart, captureEnd, true);
51609
+ writeFoldedLines2(state, skipSeparationSpace2(state, false, nodeIndent));
51610
+ captureStart = captureEnd = state.position;
51611
+ } else if (state.position === state.lineStart && testDocumentSeparator2(state)) {
51612
+ throwError2(state, "unexpected end of the document within a single quoted scalar");
51613
+ } else {
51614
+ state.position++;
51615
+ captureEnd = state.position;
51616
+ }
51617
+ }
51618
+ throwError2(state, "unexpected end of the stream within a single quoted scalar");
51619
+ }
51620
+ function readDoubleQuotedScalar2(state, nodeIndent) {
51621
+ var captureStart, captureEnd, hexLength, hexResult, tmp, ch;
51622
+ ch = state.input.charCodeAt(state.position);
51623
+ if (ch !== 34) {
51624
+ return false;
51625
+ }
51626
+ state.kind = "scalar";
51627
+ state.result = "";
51628
+ state.position++;
51629
+ captureStart = captureEnd = state.position;
51630
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
51631
+ if (ch === 34) {
51632
+ captureSegment2(state, captureStart, state.position, true);
51633
+ state.position++;
51634
+ return true;
51635
+ } else if (ch === 92) {
51636
+ captureSegment2(state, captureStart, state.position, true);
51637
+ ch = state.input.charCodeAt(++state.position);
51638
+ if (is_EOL2(ch)) {
51639
+ skipSeparationSpace2(state, false, nodeIndent);
51640
+ } else if (ch < 256 && simpleEscapeCheck2[ch]) {
51641
+ state.result += simpleEscapeMap2[ch];
51642
+ state.position++;
51643
+ } else if ((tmp = escapedHexLen2(ch)) > 0) {
51644
+ hexLength = tmp;
51645
+ hexResult = 0;
51646
+ for (; hexLength > 0; hexLength--) {
51647
+ ch = state.input.charCodeAt(++state.position);
51648
+ if ((tmp = fromHexCode2(ch)) >= 0) {
51649
+ hexResult = (hexResult << 4) + tmp;
51650
+ } else {
51651
+ throwError2(state, "expected hexadecimal character");
51652
+ }
51653
+ }
51654
+ state.result += charFromCodepoint2(hexResult);
51655
+ state.position++;
51656
+ } else {
51657
+ throwError2(state, "unknown escape sequence");
51658
+ }
51659
+ captureStart = captureEnd = state.position;
51660
+ } else if (is_EOL2(ch)) {
51661
+ captureSegment2(state, captureStart, captureEnd, true);
51662
+ writeFoldedLines2(state, skipSeparationSpace2(state, false, nodeIndent));
51663
+ captureStart = captureEnd = state.position;
51664
+ } else if (state.position === state.lineStart && testDocumentSeparator2(state)) {
51665
+ throwError2(state, "unexpected end of the document within a double quoted scalar");
51666
+ } else {
51667
+ state.position++;
51668
+ captureEnd = state.position;
51669
+ }
51670
+ }
51671
+ throwError2(state, "unexpected end of the stream within a double quoted scalar");
51672
+ }
51673
+ function readFlowCollection2(state, nodeIndent) {
51674
+ var readNext = true, _line, _lineStart, _pos, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = /* @__PURE__ */ Object.create(null), keyNode, keyTag, valueNode, ch;
51675
+ ch = state.input.charCodeAt(state.position);
51676
+ if (ch === 91) {
51677
+ terminator = 93;
51678
+ isMapping = false;
51679
+ _result = [];
51680
+ } else if (ch === 123) {
51681
+ terminator = 125;
51682
+ isMapping = true;
51683
+ _result = {};
51684
+ } else {
51685
+ return false;
51686
+ }
51687
+ if (state.anchor !== null) {
51688
+ state.anchorMap[state.anchor] = _result;
51689
+ }
51690
+ ch = state.input.charCodeAt(++state.position);
51691
+ while (ch !== 0) {
51692
+ skipSeparationSpace2(state, true, nodeIndent);
51693
+ ch = state.input.charCodeAt(state.position);
51694
+ if (ch === terminator) {
51695
+ state.position++;
51696
+ state.tag = _tag;
51697
+ state.anchor = _anchor;
51698
+ state.kind = isMapping ? "mapping" : "sequence";
51699
+ state.result = _result;
51700
+ return true;
51701
+ } else if (!readNext) {
51702
+ throwError2(state, "missed comma between flow collection entries");
51703
+ } else if (ch === 44) {
51704
+ throwError2(state, "expected the node content, but found ','");
51705
+ }
51706
+ keyTag = keyNode = valueNode = null;
51707
+ isPair = isExplicitPair = false;
51708
+ if (ch === 63) {
51709
+ following = state.input.charCodeAt(state.position + 1);
51710
+ if (is_WS_OR_EOL2(following)) {
51711
+ isPair = isExplicitPair = true;
51712
+ state.position++;
51713
+ skipSeparationSpace2(state, true, nodeIndent);
51714
+ }
51715
+ }
51716
+ _line = state.line;
51717
+ _lineStart = state.lineStart;
51718
+ _pos = state.position;
51719
+ composeNode2(state, nodeIndent, CONTEXT_FLOW_IN2, false, true);
51720
+ keyTag = state.tag;
51721
+ keyNode = state.result;
51722
+ skipSeparationSpace2(state, true, nodeIndent);
51723
+ ch = state.input.charCodeAt(state.position);
51724
+ if ((isExplicitPair || state.line === _line) && ch === 58) {
51725
+ isPair = true;
51726
+ ch = state.input.charCodeAt(++state.position);
51727
+ skipSeparationSpace2(state, true, nodeIndent);
51728
+ composeNode2(state, nodeIndent, CONTEXT_FLOW_IN2, false, true);
51729
+ valueNode = state.result;
51730
+ }
51731
+ if (isMapping) {
51732
+ storeMappingPair2(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
51733
+ } else if (isPair) {
51734
+ _result.push(storeMappingPair2(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
51735
+ } else {
51736
+ _result.push(keyNode);
51737
+ }
51738
+ skipSeparationSpace2(state, true, nodeIndent);
51739
+ ch = state.input.charCodeAt(state.position);
51740
+ if (ch === 44) {
51741
+ readNext = true;
51742
+ ch = state.input.charCodeAt(++state.position);
51743
+ } else {
51744
+ readNext = false;
51745
+ }
51746
+ }
51747
+ throwError2(state, "unexpected end of the stream within a flow collection");
51748
+ }
51749
+ function readBlockScalar2(state, nodeIndent) {
51750
+ var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch;
51751
+ ch = state.input.charCodeAt(state.position);
51752
+ if (ch === 124) {
51753
+ folding = false;
51754
+ } else if (ch === 62) {
51755
+ folding = true;
51756
+ } else {
51757
+ return false;
51758
+ }
51759
+ state.kind = "scalar";
51760
+ state.result = "";
51761
+ while (ch !== 0) {
51762
+ ch = state.input.charCodeAt(++state.position);
51763
+ if (ch === 43 || ch === 45) {
51764
+ if (CHOMPING_CLIP2 === chomping) {
51765
+ chomping = ch === 43 ? CHOMPING_KEEP2 : CHOMPING_STRIP2;
51766
+ } else {
51767
+ throwError2(state, "repeat of a chomping mode identifier");
51768
+ }
51769
+ } else if ((tmp = fromDecimalCode2(ch)) >= 0) {
51770
+ if (tmp === 0) {
51771
+ throwError2(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
51772
+ } else if (!detectedIndent) {
51773
+ textIndent = nodeIndent + tmp - 1;
51774
+ detectedIndent = true;
51775
+ } else {
51776
+ throwError2(state, "repeat of an indentation width identifier");
51777
+ }
51778
+ } else {
51779
+ break;
51780
+ }
51781
+ }
51782
+ if (is_WHITE_SPACE2(ch)) {
51783
+ do {
51784
+ ch = state.input.charCodeAt(++state.position);
51785
+ } while (is_WHITE_SPACE2(ch));
51786
+ if (ch === 35) {
51787
+ do {
51788
+ ch = state.input.charCodeAt(++state.position);
51789
+ } while (!is_EOL2(ch) && ch !== 0);
51790
+ }
51791
+ }
51792
+ while (ch !== 0) {
51793
+ readLineBreak2(state);
51794
+ state.lineIndent = 0;
51795
+ ch = state.input.charCodeAt(state.position);
51796
+ while ((!detectedIndent || state.lineIndent < textIndent) && ch === 32) {
51797
+ state.lineIndent++;
51798
+ ch = state.input.charCodeAt(++state.position);
51799
+ }
51800
+ if (!detectedIndent && state.lineIndent > textIndent) {
51801
+ textIndent = state.lineIndent;
51802
+ }
51803
+ if (is_EOL2(ch)) {
51804
+ emptyLines++;
51805
+ continue;
51806
+ }
51807
+ if (state.lineIndent < textIndent) {
51808
+ if (chomping === CHOMPING_KEEP2) {
51809
+ state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
51810
+ } else if (chomping === CHOMPING_CLIP2) {
51811
+ if (didReadContent) {
51812
+ state.result += "\n";
51813
+ }
51814
+ }
51815
+ break;
51816
+ }
51817
+ if (folding) {
51818
+ if (is_WHITE_SPACE2(ch)) {
51819
+ atMoreIndented = true;
51820
+ state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
51821
+ } else if (atMoreIndented) {
51822
+ atMoreIndented = false;
51823
+ state.result += common2.repeat("\n", emptyLines + 1);
51824
+ } else if (emptyLines === 0) {
51825
+ if (didReadContent) {
51826
+ state.result += " ";
51827
+ }
51828
+ } else {
51829
+ state.result += common2.repeat("\n", emptyLines);
51830
+ }
51831
+ } else {
51832
+ state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
51833
+ }
51834
+ didReadContent = true;
51835
+ detectedIndent = true;
51836
+ emptyLines = 0;
51837
+ captureStart = state.position;
51838
+ while (!is_EOL2(ch) && ch !== 0) {
51839
+ ch = state.input.charCodeAt(++state.position);
51840
+ }
51841
+ captureSegment2(state, captureStart, state.position, false);
51842
+ }
51843
+ return true;
51844
+ }
51845
+ function readBlockSequence2(state, nodeIndent) {
51846
+ var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
51847
+ if (state.firstTabInLine !== -1) return false;
51848
+ if (state.anchor !== null) {
51849
+ state.anchorMap[state.anchor] = _result;
51850
+ }
51851
+ ch = state.input.charCodeAt(state.position);
51852
+ while (ch !== 0) {
51853
+ if (state.firstTabInLine !== -1) {
51854
+ state.position = state.firstTabInLine;
51855
+ throwError2(state, "tab characters must not be used in indentation");
51856
+ }
51857
+ if (ch !== 45) {
51858
+ break;
51859
+ }
51860
+ following = state.input.charCodeAt(state.position + 1);
51861
+ if (!is_WS_OR_EOL2(following)) {
51862
+ break;
51863
+ }
51864
+ detected = true;
51865
+ state.position++;
51866
+ if (skipSeparationSpace2(state, true, -1)) {
51867
+ if (state.lineIndent <= nodeIndent) {
51868
+ _result.push(null);
51869
+ ch = state.input.charCodeAt(state.position);
51870
+ continue;
51871
+ }
51872
+ }
51873
+ _line = state.line;
51874
+ composeNode2(state, nodeIndent, CONTEXT_BLOCK_IN2, false, true);
51875
+ _result.push(state.result);
51876
+ skipSeparationSpace2(state, true, -1);
51877
+ ch = state.input.charCodeAt(state.position);
51878
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
51879
+ throwError2(state, "bad indentation of a sequence entry");
51880
+ } else if (state.lineIndent < nodeIndent) {
51881
+ break;
51882
+ }
51883
+ }
51884
+ if (detected) {
51885
+ state.tag = _tag;
51886
+ state.anchor = _anchor;
51887
+ state.kind = "sequence";
51888
+ state.result = _result;
51889
+ return true;
51890
+ }
51891
+ return false;
51892
+ }
51893
+ function readBlockMapping2(state, nodeIndent, flowIndent) {
51894
+ var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = /* @__PURE__ */ Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
51895
+ if (state.firstTabInLine !== -1) return false;
51896
+ if (state.anchor !== null) {
51897
+ state.anchorMap[state.anchor] = _result;
51898
+ }
51899
+ ch = state.input.charCodeAt(state.position);
51900
+ while (ch !== 0) {
51901
+ if (!atExplicitKey && state.firstTabInLine !== -1) {
51902
+ state.position = state.firstTabInLine;
51903
+ throwError2(state, "tab characters must not be used in indentation");
51904
+ }
51905
+ following = state.input.charCodeAt(state.position + 1);
51906
+ _line = state.line;
51907
+ if ((ch === 63 || ch === 58) && is_WS_OR_EOL2(following)) {
51908
+ if (ch === 63) {
51909
+ if (atExplicitKey) {
51910
+ storeMappingPair2(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
51911
+ keyTag = keyNode = valueNode = null;
51912
+ }
51913
+ detected = true;
51914
+ atExplicitKey = true;
51915
+ allowCompact = true;
51916
+ } else if (atExplicitKey) {
51917
+ atExplicitKey = false;
51918
+ allowCompact = true;
51919
+ } else {
51920
+ throwError2(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
51921
+ }
51922
+ state.position += 1;
51923
+ ch = following;
51924
+ } else {
51925
+ _keyLine = state.line;
51926
+ _keyLineStart = state.lineStart;
51927
+ _keyPos = state.position;
51928
+ if (!composeNode2(state, flowIndent, CONTEXT_FLOW_OUT2, false, true)) {
51929
+ break;
51930
+ }
51931
+ if (state.line === _line) {
51932
+ ch = state.input.charCodeAt(state.position);
51933
+ while (is_WHITE_SPACE2(ch)) {
51934
+ ch = state.input.charCodeAt(++state.position);
51935
+ }
51936
+ if (ch === 58) {
51937
+ ch = state.input.charCodeAt(++state.position);
51938
+ if (!is_WS_OR_EOL2(ch)) {
51939
+ throwError2(state, "a whitespace character is expected after the key-value separator within a block mapping");
51940
+ }
51941
+ if (atExplicitKey) {
51942
+ storeMappingPair2(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
51943
+ keyTag = keyNode = valueNode = null;
51944
+ }
51945
+ detected = true;
51946
+ atExplicitKey = false;
51947
+ allowCompact = false;
51948
+ keyTag = state.tag;
51949
+ keyNode = state.result;
51950
+ } else if (detected) {
51951
+ throwError2(state, "can not read an implicit mapping pair; a colon is missed");
51952
+ } else {
51953
+ state.tag = _tag;
51954
+ state.anchor = _anchor;
51955
+ return true;
51956
+ }
51957
+ } else if (detected) {
51958
+ throwError2(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
51959
+ } else {
51960
+ state.tag = _tag;
51961
+ state.anchor = _anchor;
51962
+ return true;
51963
+ }
51964
+ }
51965
+ if (state.line === _line || state.lineIndent > nodeIndent) {
51966
+ if (atExplicitKey) {
51967
+ _keyLine = state.line;
51968
+ _keyLineStart = state.lineStart;
51969
+ _keyPos = state.position;
51970
+ }
51971
+ if (composeNode2(state, nodeIndent, CONTEXT_BLOCK_OUT2, true, allowCompact)) {
51972
+ if (atExplicitKey) {
51973
+ keyNode = state.result;
51974
+ } else {
51975
+ valueNode = state.result;
51976
+ }
51977
+ }
51978
+ if (!atExplicitKey) {
51979
+ storeMappingPair2(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
51980
+ keyTag = keyNode = valueNode = null;
51981
+ }
51982
+ skipSeparationSpace2(state, true, -1);
51983
+ ch = state.input.charCodeAt(state.position);
51984
+ }
51985
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
51986
+ throwError2(state, "bad indentation of a mapping entry");
51987
+ } else if (state.lineIndent < nodeIndent) {
51988
+ break;
51989
+ }
51990
+ }
51991
+ if (atExplicitKey) {
51992
+ storeMappingPair2(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
51993
+ }
51994
+ if (detected) {
51995
+ state.tag = _tag;
51996
+ state.anchor = _anchor;
51997
+ state.kind = "mapping";
51998
+ state.result = _result;
51999
+ }
52000
+ return detected;
52001
+ }
52002
+ function readTagProperty2(state) {
52003
+ var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch;
52004
+ ch = state.input.charCodeAt(state.position);
52005
+ if (ch !== 33) return false;
52006
+ if (state.tag !== null) {
52007
+ throwError2(state, "duplication of a tag property");
52008
+ }
52009
+ ch = state.input.charCodeAt(++state.position);
52010
+ if (ch === 60) {
52011
+ isVerbatim = true;
52012
+ ch = state.input.charCodeAt(++state.position);
52013
+ } else if (ch === 33) {
52014
+ isNamed = true;
52015
+ tagHandle = "!!";
52016
+ ch = state.input.charCodeAt(++state.position);
52017
+ } else {
52018
+ tagHandle = "!";
52019
+ }
52020
+ _position = state.position;
52021
+ if (isVerbatim) {
52022
+ do {
52023
+ ch = state.input.charCodeAt(++state.position);
52024
+ } while (ch !== 0 && ch !== 62);
52025
+ if (state.position < state.length) {
52026
+ tagName = state.input.slice(_position, state.position);
52027
+ ch = state.input.charCodeAt(++state.position);
52028
+ } else {
52029
+ throwError2(state, "unexpected end of the stream within a verbatim tag");
52030
+ }
52031
+ } else {
52032
+ while (ch !== 0 && !is_WS_OR_EOL2(ch)) {
52033
+ if (ch === 33) {
52034
+ if (!isNamed) {
52035
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
52036
+ if (!PATTERN_TAG_HANDLE2.test(tagHandle)) {
52037
+ throwError2(state, "named tag handle cannot contain such characters");
52038
+ }
52039
+ isNamed = true;
52040
+ _position = state.position + 1;
52041
+ } else {
52042
+ throwError2(state, "tag suffix cannot contain exclamation marks");
52043
+ }
52044
+ }
52045
+ ch = state.input.charCodeAt(++state.position);
52046
+ }
52047
+ tagName = state.input.slice(_position, state.position);
52048
+ if (PATTERN_FLOW_INDICATORS2.test(tagName)) {
52049
+ throwError2(state, "tag suffix cannot contain flow indicator characters");
52050
+ }
52051
+ }
52052
+ if (tagName && !PATTERN_TAG_URI2.test(tagName)) {
52053
+ throwError2(state, "tag name cannot contain such characters: " + tagName);
52054
+ }
52055
+ try {
52056
+ tagName = decodeURIComponent(tagName);
52057
+ } catch (err) {
52058
+ throwError2(state, "tag name is malformed: " + tagName);
52059
+ }
52060
+ if (isVerbatim) {
52061
+ state.tag = tagName;
52062
+ } else if (_hasOwnProperty2.call(state.tagMap, tagHandle)) {
52063
+ state.tag = state.tagMap[tagHandle] + tagName;
52064
+ } else if (tagHandle === "!") {
52065
+ state.tag = "!" + tagName;
52066
+ } else if (tagHandle === "!!") {
52067
+ state.tag = "tag:yaml.org,2002:" + tagName;
52068
+ } else {
52069
+ throwError2(state, 'undeclared tag handle "' + tagHandle + '"');
52070
+ }
52071
+ return true;
52072
+ }
52073
+ function readAnchorProperty2(state) {
52074
+ var _position, ch;
52075
+ ch = state.input.charCodeAt(state.position);
52076
+ if (ch !== 38) return false;
52077
+ if (state.anchor !== null) {
52078
+ throwError2(state, "duplication of an anchor property");
52079
+ }
52080
+ ch = state.input.charCodeAt(++state.position);
52081
+ _position = state.position;
52082
+ while (ch !== 0 && !is_WS_OR_EOL2(ch) && !is_FLOW_INDICATOR2(ch)) {
52083
+ ch = state.input.charCodeAt(++state.position);
52084
+ }
52085
+ if (state.position === _position) {
52086
+ throwError2(state, "name of an anchor node must contain at least one character");
52087
+ }
52088
+ state.anchor = state.input.slice(_position, state.position);
52089
+ return true;
52090
+ }
52091
+ function readAlias2(state) {
52092
+ var _position, alias, ch;
52093
+ ch = state.input.charCodeAt(state.position);
52094
+ if (ch !== 42) return false;
52095
+ ch = state.input.charCodeAt(++state.position);
52096
+ _position = state.position;
52097
+ while (ch !== 0 && !is_WS_OR_EOL2(ch) && !is_FLOW_INDICATOR2(ch)) {
52098
+ ch = state.input.charCodeAt(++state.position);
52099
+ }
52100
+ if (state.position === _position) {
52101
+ throwError2(state, "name of an alias node must contain at least one character");
52102
+ }
52103
+ alias = state.input.slice(_position, state.position);
52104
+ if (!_hasOwnProperty2.call(state.anchorMap, alias)) {
52105
+ throwError2(state, 'unidentified alias "' + alias + '"');
52106
+ }
52107
+ state.result = state.anchorMap[alias];
52108
+ skipSeparationSpace2(state, true, -1);
52109
+ return true;
52110
+ }
52111
+ function composeNode2(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
52112
+ var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type2, flowIndent, blockIndent;
52113
+ if (state.listener !== null) {
52114
+ state.listener("open", state);
52115
+ }
52116
+ state.tag = null;
52117
+ state.anchor = null;
52118
+ state.kind = null;
52119
+ state.result = null;
52120
+ allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT2 === nodeContext || CONTEXT_BLOCK_IN2 === nodeContext;
52121
+ if (allowToSeek) {
52122
+ if (skipSeparationSpace2(state, true, -1)) {
52123
+ atNewLine = true;
52124
+ if (state.lineIndent > parentIndent) {
52125
+ indentStatus = 1;
52126
+ } else if (state.lineIndent === parentIndent) {
52127
+ indentStatus = 0;
52128
+ } else if (state.lineIndent < parentIndent) {
52129
+ indentStatus = -1;
52130
+ }
52131
+ }
52132
+ }
52133
+ if (indentStatus === 1) {
52134
+ while (readTagProperty2(state) || readAnchorProperty2(state)) {
52135
+ if (skipSeparationSpace2(state, true, -1)) {
52136
+ atNewLine = true;
52137
+ allowBlockCollections = allowBlockStyles;
52138
+ if (state.lineIndent > parentIndent) {
52139
+ indentStatus = 1;
52140
+ } else if (state.lineIndent === parentIndent) {
52141
+ indentStatus = 0;
52142
+ } else if (state.lineIndent < parentIndent) {
52143
+ indentStatus = -1;
52144
+ }
52145
+ } else {
52146
+ allowBlockCollections = false;
52147
+ }
52148
+ }
52149
+ }
52150
+ if (allowBlockCollections) {
52151
+ allowBlockCollections = atNewLine || allowCompact;
52152
+ }
52153
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT2 === nodeContext) {
52154
+ if (CONTEXT_FLOW_IN2 === nodeContext || CONTEXT_FLOW_OUT2 === nodeContext) {
52155
+ flowIndent = parentIndent;
52156
+ } else {
52157
+ flowIndent = parentIndent + 1;
52158
+ }
52159
+ blockIndent = state.position - state.lineStart;
52160
+ if (indentStatus === 1) {
52161
+ if (allowBlockCollections && (readBlockSequence2(state, blockIndent) || readBlockMapping2(state, blockIndent, flowIndent)) || readFlowCollection2(state, flowIndent)) {
52162
+ hasContent = true;
52163
+ } else {
52164
+ if (allowBlockScalars && readBlockScalar2(state, flowIndent) || readSingleQuotedScalar2(state, flowIndent) || readDoubleQuotedScalar2(state, flowIndent)) {
52165
+ hasContent = true;
52166
+ } else if (readAlias2(state)) {
52167
+ hasContent = true;
52168
+ if (state.tag !== null || state.anchor !== null) {
52169
+ throwError2(state, "alias node should not have any properties");
52170
+ }
52171
+ } else if (readPlainScalar2(state, flowIndent, CONTEXT_FLOW_IN2 === nodeContext)) {
52172
+ hasContent = true;
52173
+ if (state.tag === null) {
52174
+ state.tag = "?";
52175
+ }
52176
+ }
52177
+ if (state.anchor !== null) {
52178
+ state.anchorMap[state.anchor] = state.result;
52179
+ }
52180
+ }
52181
+ } else if (indentStatus === 0) {
52182
+ hasContent = allowBlockCollections && readBlockSequence2(state, blockIndent);
52183
+ }
52184
+ }
52185
+ if (state.tag === null) {
52186
+ if (state.anchor !== null) {
52187
+ state.anchorMap[state.anchor] = state.result;
52188
+ }
52189
+ } else if (state.tag === "?") {
52190
+ if (state.result !== null && state.kind !== "scalar") {
52191
+ throwError2(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
52192
+ }
52193
+ for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
52194
+ type2 = state.implicitTypes[typeIndex];
52195
+ if (type2.resolve(state.result)) {
52196
+ state.result = type2.construct(state.result);
52197
+ state.tag = type2.tag;
52198
+ if (state.anchor !== null) {
52199
+ state.anchorMap[state.anchor] = state.result;
52200
+ }
52201
+ break;
52202
+ }
52203
+ }
52204
+ } else if (state.tag !== "!") {
52205
+ if (_hasOwnProperty2.call(state.typeMap[state.kind || "fallback"], state.tag)) {
52206
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
52207
+ } else {
52208
+ type2 = null;
52209
+ typeList = state.typeMap.multi[state.kind || "fallback"];
52210
+ for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
52211
+ if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
52212
+ type2 = typeList[typeIndex];
52213
+ break;
52214
+ }
52215
+ }
52216
+ }
52217
+ if (!type2) {
52218
+ throwError2(state, "unknown tag !<" + state.tag + ">");
52219
+ }
52220
+ if (state.result !== null && type2.kind !== state.kind) {
52221
+ throwError2(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
52222
+ }
52223
+ if (!type2.resolve(state.result, state.tag)) {
52224
+ throwError2(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
52225
+ } else {
52226
+ state.result = type2.construct(state.result, state.tag);
52227
+ if (state.anchor !== null) {
52228
+ state.anchorMap[state.anchor] = state.result;
52229
+ }
52230
+ }
52231
+ }
52232
+ if (state.listener !== null) {
52233
+ state.listener("close", state);
52234
+ }
52235
+ return state.tag !== null || state.anchor !== null || hasContent;
52236
+ }
52237
+ function readDocument2(state) {
52238
+ var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
52239
+ state.version = null;
52240
+ state.checkLineBreaks = state.legacy;
52241
+ state.tagMap = /* @__PURE__ */ Object.create(null);
52242
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
52243
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
52244
+ skipSeparationSpace2(state, true, -1);
52245
+ ch = state.input.charCodeAt(state.position);
52246
+ if (state.lineIndent > 0 || ch !== 37) {
52247
+ break;
52248
+ }
52249
+ hasDirectives = true;
52250
+ ch = state.input.charCodeAt(++state.position);
52251
+ _position = state.position;
52252
+ while (ch !== 0 && !is_WS_OR_EOL2(ch)) {
52253
+ ch = state.input.charCodeAt(++state.position);
52254
+ }
52255
+ directiveName = state.input.slice(_position, state.position);
52256
+ directiveArgs = [];
52257
+ if (directiveName.length < 1) {
52258
+ throwError2(state, "directive name must not be less than one character in length");
52259
+ }
52260
+ while (ch !== 0) {
52261
+ while (is_WHITE_SPACE2(ch)) {
52262
+ ch = state.input.charCodeAt(++state.position);
52263
+ }
52264
+ if (ch === 35) {
52265
+ do {
52266
+ ch = state.input.charCodeAt(++state.position);
52267
+ } while (ch !== 0 && !is_EOL2(ch));
52268
+ break;
52269
+ }
52270
+ if (is_EOL2(ch)) break;
52271
+ _position = state.position;
52272
+ while (ch !== 0 && !is_WS_OR_EOL2(ch)) {
52273
+ ch = state.input.charCodeAt(++state.position);
52274
+ }
52275
+ directiveArgs.push(state.input.slice(_position, state.position));
52276
+ }
52277
+ if (ch !== 0) readLineBreak2(state);
52278
+ if (_hasOwnProperty2.call(directiveHandlers2, directiveName)) {
52279
+ directiveHandlers2[directiveName](state, directiveName, directiveArgs);
52280
+ } else {
52281
+ throwWarning2(state, 'unknown document directive "' + directiveName + '"');
52282
+ }
52283
+ }
52284
+ skipSeparationSpace2(state, true, -1);
52285
+ if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
52286
+ state.position += 3;
52287
+ skipSeparationSpace2(state, true, -1);
52288
+ } else if (hasDirectives) {
52289
+ throwError2(state, "directives end mark is expected");
52290
+ }
52291
+ composeNode2(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT2, false, true);
52292
+ skipSeparationSpace2(state, true, -1);
52293
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS2.test(state.input.slice(documentStart, state.position))) {
52294
+ throwWarning2(state, "non-ASCII line breaks are interpreted as content");
52295
+ }
52296
+ state.documents.push(state.result);
52297
+ if (state.position === state.lineStart && testDocumentSeparator2(state)) {
52298
+ if (state.input.charCodeAt(state.position) === 46) {
52299
+ state.position += 3;
52300
+ skipSeparationSpace2(state, true, -1);
52301
+ }
52302
+ return;
52303
+ }
52304
+ if (state.position < state.length - 1) {
52305
+ throwError2(state, "end of the stream or a document separator is expected");
52306
+ } else {
52307
+ return;
52308
+ }
52309
+ }
52310
+ function loadDocuments2(input, options) {
52311
+ input = String(input);
52312
+ options = options || {};
52313
+ if (input.length !== 0) {
52314
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
52315
+ input += "\n";
52316
+ }
52317
+ if (input.charCodeAt(0) === 65279) {
52318
+ input = input.slice(1);
52319
+ }
52320
+ }
52321
+ var state = new State2(input, options);
52322
+ var nullpos = input.indexOf("\0");
52323
+ if (nullpos !== -1) {
52324
+ state.position = nullpos;
52325
+ throwError2(state, "null byte is not allowed in input");
52326
+ }
52327
+ state.input += "\0";
52328
+ while (state.input.charCodeAt(state.position) === 32) {
52329
+ state.lineIndent += 1;
52330
+ state.position += 1;
52331
+ }
52332
+ while (state.position < state.length - 1) {
52333
+ readDocument2(state);
52334
+ }
52335
+ return state.documents;
52336
+ }
52337
+ function loadAll2(input, iterator, options) {
52338
+ if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
52339
+ options = iterator;
52340
+ iterator = null;
52341
+ }
52342
+ var documents = loadDocuments2(input, options);
52343
+ if (typeof iterator !== "function") {
52344
+ return documents;
52345
+ }
52346
+ for (var index2 = 0, length = documents.length; index2 < length; index2 += 1) {
52347
+ iterator(documents[index2]);
52348
+ }
52349
+ }
52350
+ function load2(input, options) {
52351
+ var documents = loadDocuments2(input, options);
52352
+ if (documents.length === 0) {
52353
+ return void 0;
52354
+ } else if (documents.length === 1) {
52355
+ return documents[0];
52356
+ }
52357
+ throw new YAMLException2("expected a single document in the stream, but found more");
52358
+ }
52359
+ loader.loadAll = loadAll2;
52360
+ loader.load = load2;
52361
+ return loader;
52362
+ }
52363
+ var dumper = {};
52364
+ var hasRequiredDumper;
52365
+ function requireDumper() {
52366
+ if (hasRequiredDumper) return dumper;
52367
+ hasRequiredDumper = 1;
52368
+ var common2 = requireCommon();
52369
+ var YAMLException2 = requireException();
52370
+ var DEFAULT_SCHEMA2 = require_default();
52371
+ var _toString2 = Object.prototype.toString;
52372
+ var _hasOwnProperty2 = Object.prototype.hasOwnProperty;
52373
+ var CHAR_BOM2 = 65279;
52374
+ var CHAR_TAB2 = 9;
52375
+ var CHAR_LINE_FEED2 = 10;
52376
+ var CHAR_CARRIAGE_RETURN2 = 13;
52377
+ var CHAR_SPACE2 = 32;
52378
+ var CHAR_EXCLAMATION2 = 33;
52379
+ var CHAR_DOUBLE_QUOTE2 = 34;
52380
+ var CHAR_SHARP2 = 35;
52381
+ var CHAR_PERCENT2 = 37;
52382
+ var CHAR_AMPERSAND2 = 38;
52383
+ var CHAR_SINGLE_QUOTE2 = 39;
52384
+ var CHAR_ASTERISK2 = 42;
52385
+ var CHAR_COMMA2 = 44;
52386
+ var CHAR_MINUS2 = 45;
52387
+ var CHAR_COLON2 = 58;
52388
+ var CHAR_EQUALS2 = 61;
52389
+ var CHAR_GREATER_THAN2 = 62;
52390
+ var CHAR_QUESTION2 = 63;
52391
+ var CHAR_COMMERCIAL_AT2 = 64;
52392
+ var CHAR_LEFT_SQUARE_BRACKET2 = 91;
52393
+ var CHAR_RIGHT_SQUARE_BRACKET2 = 93;
52394
+ var CHAR_GRAVE_ACCENT2 = 96;
52395
+ var CHAR_LEFT_CURLY_BRACKET2 = 123;
52396
+ var CHAR_VERTICAL_LINE2 = 124;
52397
+ var CHAR_RIGHT_CURLY_BRACKET2 = 125;
52398
+ var ESCAPE_SEQUENCES2 = {};
52399
+ ESCAPE_SEQUENCES2[0] = "\\0";
52400
+ ESCAPE_SEQUENCES2[7] = "\\a";
52401
+ ESCAPE_SEQUENCES2[8] = "\\b";
52402
+ ESCAPE_SEQUENCES2[9] = "\\t";
52403
+ ESCAPE_SEQUENCES2[10] = "\\n";
52404
+ ESCAPE_SEQUENCES2[11] = "\\v";
52405
+ ESCAPE_SEQUENCES2[12] = "\\f";
52406
+ ESCAPE_SEQUENCES2[13] = "\\r";
52407
+ ESCAPE_SEQUENCES2[27] = "\\e";
52408
+ ESCAPE_SEQUENCES2[34] = '\\"';
52409
+ ESCAPE_SEQUENCES2[92] = "\\\\";
52410
+ ESCAPE_SEQUENCES2[133] = "\\N";
52411
+ ESCAPE_SEQUENCES2[160] = "\\_";
52412
+ ESCAPE_SEQUENCES2[8232] = "\\L";
52413
+ ESCAPE_SEQUENCES2[8233] = "\\P";
52414
+ var DEPRECATED_BOOLEANS_SYNTAX2 = [
52415
+ "y",
52416
+ "Y",
52417
+ "yes",
52418
+ "Yes",
52419
+ "YES",
52420
+ "on",
52421
+ "On",
52422
+ "ON",
52423
+ "n",
52424
+ "N",
52425
+ "no",
52426
+ "No",
52427
+ "NO",
52428
+ "off",
52429
+ "Off",
52430
+ "OFF"
52431
+ ];
52432
+ var DEPRECATED_BASE60_SYNTAX2 = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
52433
+ function compileStyleMap2(schema2, map2) {
52434
+ var result, keys, index2, length, tag, style, type2;
52435
+ if (map2 === null) return {};
52436
+ result = {};
52437
+ keys = Object.keys(map2);
52438
+ for (index2 = 0, length = keys.length; index2 < length; index2 += 1) {
52439
+ tag = keys[index2];
52440
+ style = String(map2[tag]);
52441
+ if (tag.slice(0, 2) === "!!") {
52442
+ tag = "tag:yaml.org,2002:" + tag.slice(2);
52443
+ }
52444
+ type2 = schema2.compiledTypeMap["fallback"][tag];
52445
+ if (type2 && _hasOwnProperty2.call(type2.styleAliases, style)) {
52446
+ style = type2.styleAliases[style];
52447
+ }
52448
+ result[tag] = style;
52449
+ }
52450
+ return result;
52451
+ }
52452
+ function encodeHex2(character) {
52453
+ var string, handle, length;
52454
+ string = character.toString(16).toUpperCase();
52455
+ if (character <= 255) {
52456
+ handle = "x";
52457
+ length = 2;
52458
+ } else if (character <= 65535) {
52459
+ handle = "u";
52460
+ length = 4;
52461
+ } else if (character <= 4294967295) {
52462
+ handle = "U";
52463
+ length = 8;
52464
+ } else {
52465
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
52466
+ }
52467
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
52468
+ }
52469
+ var QUOTING_TYPE_SINGLE2 = 1, QUOTING_TYPE_DOUBLE2 = 2;
52470
+ function State2(options) {
52471
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
52472
+ this.indent = Math.max(1, options["indent"] || 2);
52473
+ this.noArrayIndent = options["noArrayIndent"] || false;
52474
+ this.skipInvalid = options["skipInvalid"] || false;
52475
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
52476
+ this.styleMap = compileStyleMap2(this.schema, options["styles"] || null);
52477
+ this.sortKeys = options["sortKeys"] || false;
52478
+ this.lineWidth = options["lineWidth"] || 80;
52479
+ this.noRefs = options["noRefs"] || false;
52480
+ this.noCompatMode = options["noCompatMode"] || false;
52481
+ this.condenseFlow = options["condenseFlow"] || false;
52482
+ this.quotingType = options["quotingType"] === '"' ? QUOTING_TYPE_DOUBLE2 : QUOTING_TYPE_SINGLE2;
52483
+ this.forceQuotes = options["forceQuotes"] || false;
52484
+ this.replacer = typeof options["replacer"] === "function" ? options["replacer"] : null;
52485
+ this.implicitTypes = this.schema.compiledImplicit;
52486
+ this.explicitTypes = this.schema.compiledExplicit;
52487
+ this.tag = null;
52488
+ this.result = "";
52489
+ this.duplicates = [];
52490
+ this.usedDuplicates = null;
52491
+ }
52492
+ function indentString2(string, spaces) {
52493
+ var ind = common2.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
52494
+ while (position < length) {
52495
+ next = string.indexOf("\n", position);
52496
+ if (next === -1) {
52497
+ line = string.slice(position);
52498
+ position = length;
52499
+ } else {
52500
+ line = string.slice(position, next + 1);
52501
+ position = next + 1;
52502
+ }
52503
+ if (line.length && line !== "\n") result += ind;
52504
+ result += line;
52505
+ }
52506
+ return result;
52507
+ }
52508
+ function generateNextLine2(state, level) {
52509
+ return "\n" + common2.repeat(" ", state.indent * level);
52510
+ }
52511
+ function testImplicitResolving2(state, str2) {
52512
+ var index2, length, type2;
52513
+ for (index2 = 0, length = state.implicitTypes.length; index2 < length; index2 += 1) {
52514
+ type2 = state.implicitTypes[index2];
52515
+ if (type2.resolve(str2)) {
52516
+ return true;
52517
+ }
52518
+ }
52519
+ return false;
52520
+ }
52521
+ function isWhitespace2(c) {
52522
+ return c === CHAR_SPACE2 || c === CHAR_TAB2;
52523
+ }
52524
+ function isPrintable2(c) {
52525
+ return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== CHAR_BOM2 || 65536 <= c && c <= 1114111;
52526
+ }
52527
+ function isNsCharOrWhitespace2(c) {
52528
+ return isPrintable2(c) && c !== CHAR_BOM2 && c !== CHAR_CARRIAGE_RETURN2 && c !== CHAR_LINE_FEED2;
52529
+ }
52530
+ function isPlainSafe2(c, prev, inblock) {
52531
+ var cIsNsCharOrWhitespace = isNsCharOrWhitespace2(c);
52532
+ var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace2(c);
52533
+ return (
52534
+ // ns-plain-safe
52535
+ (inblock ? (
52536
+ // c = flow-in
52537
+ cIsNsCharOrWhitespace
52538
+ ) : cIsNsCharOrWhitespace && c !== CHAR_COMMA2 && c !== CHAR_LEFT_SQUARE_BRACKET2 && c !== CHAR_RIGHT_SQUARE_BRACKET2 && c !== CHAR_LEFT_CURLY_BRACKET2 && c !== CHAR_RIGHT_CURLY_BRACKET2) && c !== CHAR_SHARP2 && !(prev === CHAR_COLON2 && !cIsNsChar) || isNsCharOrWhitespace2(prev) && !isWhitespace2(prev) && c === CHAR_SHARP2 || prev === CHAR_COLON2 && cIsNsChar
52539
+ );
52540
+ }
52541
+ function isPlainSafeFirst2(c) {
52542
+ return isPrintable2(c) && c !== CHAR_BOM2 && !isWhitespace2(c) && c !== CHAR_MINUS2 && c !== CHAR_QUESTION2 && c !== CHAR_COLON2 && c !== CHAR_COMMA2 && c !== CHAR_LEFT_SQUARE_BRACKET2 && c !== CHAR_RIGHT_SQUARE_BRACKET2 && c !== CHAR_LEFT_CURLY_BRACKET2 && c !== CHAR_RIGHT_CURLY_BRACKET2 && c !== CHAR_SHARP2 && c !== CHAR_AMPERSAND2 && c !== CHAR_ASTERISK2 && c !== CHAR_EXCLAMATION2 && c !== CHAR_VERTICAL_LINE2 && c !== CHAR_EQUALS2 && c !== CHAR_GREATER_THAN2 && c !== CHAR_SINGLE_QUOTE2 && c !== CHAR_DOUBLE_QUOTE2 && c !== CHAR_PERCENT2 && c !== CHAR_COMMERCIAL_AT2 && c !== CHAR_GRAVE_ACCENT2;
52543
+ }
52544
+ function isPlainSafeLast2(c) {
52545
+ return !isWhitespace2(c) && c !== CHAR_COLON2;
52546
+ }
52547
+ function codePointAt2(string, pos) {
52548
+ var first = string.charCodeAt(pos), second;
52549
+ if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
52550
+ second = string.charCodeAt(pos + 1);
52551
+ if (second >= 56320 && second <= 57343) {
52552
+ return (first - 55296) * 1024 + second - 56320 + 65536;
52553
+ }
52554
+ }
52555
+ return first;
52556
+ }
52557
+ function needIndentIndicator2(string) {
52558
+ var leadingSpaceRe = /^\n* /;
52559
+ return leadingSpaceRe.test(string);
52560
+ }
52561
+ var STYLE_PLAIN2 = 1, STYLE_SINGLE2 = 2, STYLE_LITERAL2 = 3, STYLE_FOLDED2 = 4, STYLE_DOUBLE2 = 5;
52562
+ function chooseScalarStyle2(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
52563
+ var i;
52564
+ var char = 0;
52565
+ var prevChar = null;
52566
+ var hasLineBreak = false;
52567
+ var hasFoldableLine = false;
52568
+ var shouldTrackWidth = lineWidth !== -1;
52569
+ var previousLineBreak = -1;
52570
+ var plain = isPlainSafeFirst2(codePointAt2(string, 0)) && isPlainSafeLast2(codePointAt2(string, string.length - 1));
52571
+ if (singleLineOnly || forceQuotes) {
52572
+ for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
52573
+ char = codePointAt2(string, i);
52574
+ if (!isPrintable2(char)) {
52575
+ return STYLE_DOUBLE2;
52576
+ }
52577
+ plain = plain && isPlainSafe2(char, prevChar, inblock);
52578
+ prevChar = char;
52579
+ }
52580
+ } else {
52581
+ for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
52582
+ char = codePointAt2(string, i);
52583
+ if (char === CHAR_LINE_FEED2) {
52584
+ hasLineBreak = true;
52585
+ if (shouldTrackWidth) {
52586
+ hasFoldableLine = hasFoldableLine || // Foldable line = too long, and not more-indented.
52587
+ i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
52588
+ previousLineBreak = i;
52589
+ }
52590
+ } else if (!isPrintable2(char)) {
52591
+ return STYLE_DOUBLE2;
52592
+ }
52593
+ plain = plain && isPlainSafe2(char, prevChar, inblock);
52594
+ prevChar = char;
52595
+ }
52596
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
52597
+ }
52598
+ if (!hasLineBreak && !hasFoldableLine) {
52599
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
52600
+ return STYLE_PLAIN2;
52601
+ }
52602
+ return quotingType === QUOTING_TYPE_DOUBLE2 ? STYLE_DOUBLE2 : STYLE_SINGLE2;
52603
+ }
52604
+ if (indentPerLevel > 9 && needIndentIndicator2(string)) {
52605
+ return STYLE_DOUBLE2;
52606
+ }
52607
+ if (!forceQuotes) {
52608
+ return hasFoldableLine ? STYLE_FOLDED2 : STYLE_LITERAL2;
52609
+ }
52610
+ return quotingType === QUOTING_TYPE_DOUBLE2 ? STYLE_DOUBLE2 : STYLE_SINGLE2;
52611
+ }
52612
+ function writeScalar2(state, string, level, iskey, inblock) {
52613
+ state.dump = (function() {
52614
+ if (string.length === 0) {
52615
+ return state.quotingType === QUOTING_TYPE_DOUBLE2 ? '""' : "''";
52616
+ }
52617
+ if (!state.noCompatMode) {
52618
+ if (DEPRECATED_BOOLEANS_SYNTAX2.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX2.test(string)) {
52619
+ return state.quotingType === QUOTING_TYPE_DOUBLE2 ? '"' + string + '"' : "'" + string + "'";
52620
+ }
52621
+ }
52622
+ var indent = state.indent * Math.max(1, level);
52623
+ var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
52624
+ var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
52625
+ function testAmbiguity(string2) {
52626
+ return testImplicitResolving2(state, string2);
52627
+ }
52628
+ switch (chooseScalarStyle2(
52629
+ string,
52630
+ singleLineOnly,
52631
+ state.indent,
52632
+ lineWidth,
52633
+ testAmbiguity,
52634
+ state.quotingType,
52635
+ state.forceQuotes && !iskey,
52636
+ inblock
52637
+ )) {
52638
+ case STYLE_PLAIN2:
52639
+ return string;
52640
+ case STYLE_SINGLE2:
52641
+ return "'" + string.replace(/'/g, "''") + "'";
52642
+ case STYLE_LITERAL2:
52643
+ return "|" + blockHeader2(string, state.indent) + dropEndingNewline2(indentString2(string, indent));
52644
+ case STYLE_FOLDED2:
52645
+ return ">" + blockHeader2(string, state.indent) + dropEndingNewline2(indentString2(foldString2(string, lineWidth), indent));
52646
+ case STYLE_DOUBLE2:
52647
+ return '"' + escapeString2(string) + '"';
52648
+ default:
52649
+ throw new YAMLException2("impossible error: invalid scalar style");
52650
+ }
52651
+ })();
52652
+ }
52653
+ function blockHeader2(string, indentPerLevel) {
52654
+ var indentIndicator = needIndentIndicator2(string) ? String(indentPerLevel) : "";
52655
+ var clip = string[string.length - 1] === "\n";
52656
+ var keep = clip && (string[string.length - 2] === "\n" || string === "\n");
52657
+ var chomp = keep ? "+" : clip ? "" : "-";
52658
+ return indentIndicator + chomp + "\n";
52659
+ }
52660
+ function dropEndingNewline2(string) {
52661
+ return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
52662
+ }
52663
+ function foldString2(string, width) {
52664
+ var lineRe = /(\n+)([^\n]*)/g;
52665
+ var result = (function() {
52666
+ var nextLF = string.indexOf("\n");
52667
+ nextLF = nextLF !== -1 ? nextLF : string.length;
52668
+ lineRe.lastIndex = nextLF;
52669
+ return foldLine2(string.slice(0, nextLF), width);
52670
+ })();
52671
+ var prevMoreIndented = string[0] === "\n" || string[0] === " ";
52672
+ var moreIndented;
52673
+ var match;
52674
+ while (match = lineRe.exec(string)) {
52675
+ var prefix = match[1], line = match[2];
52676
+ moreIndented = line[0] === " ";
52677
+ result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine2(line, width);
52678
+ prevMoreIndented = moreIndented;
52679
+ }
52680
+ return result;
52681
+ }
52682
+ function foldLine2(line, width) {
52683
+ if (line === "" || line[0] === " ") return line;
52684
+ var breakRe = / [^ ]/g;
52685
+ var match;
52686
+ var start = 0, end, curr = 0, next = 0;
52687
+ var result = "";
52688
+ while (match = breakRe.exec(line)) {
52689
+ next = match.index;
52690
+ if (next - start > width) {
52691
+ end = curr > start ? curr : next;
52692
+ result += "\n" + line.slice(start, end);
52693
+ start = end + 1;
52694
+ }
52695
+ curr = next;
52696
+ }
52697
+ result += "\n";
52698
+ if (line.length - start > width && curr > start) {
52699
+ result += line.slice(start, curr) + "\n" + line.slice(curr + 1);
52700
+ } else {
52701
+ result += line.slice(start);
52702
+ }
52703
+ return result.slice(1);
52704
+ }
52705
+ function escapeString2(string) {
52706
+ var result = "";
52707
+ var char = 0;
52708
+ var escapeSeq;
52709
+ for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
52710
+ char = codePointAt2(string, i);
52711
+ escapeSeq = ESCAPE_SEQUENCES2[char];
52712
+ if (!escapeSeq && isPrintable2(char)) {
52713
+ result += string[i];
52714
+ if (char >= 65536) result += string[i + 1];
52715
+ } else {
52716
+ result += escapeSeq || encodeHex2(char);
52717
+ }
52718
+ }
52719
+ return result;
52720
+ }
52721
+ function writeFlowSequence2(state, level, object) {
52722
+ var _result = "", _tag = state.tag, index2, length, value;
52723
+ for (index2 = 0, length = object.length; index2 < length; index2 += 1) {
52724
+ value = object[index2];
52725
+ if (state.replacer) {
52726
+ value = state.replacer.call(object, String(index2), value);
52727
+ }
52728
+ if (writeNode2(state, level, value, false, false) || typeof value === "undefined" && writeNode2(state, level, null, false, false)) {
52729
+ if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
52730
+ _result += state.dump;
52731
+ }
52732
+ }
52733
+ state.tag = _tag;
52734
+ state.dump = "[" + _result + "]";
52735
+ }
52736
+ function writeBlockSequence2(state, level, object, compact) {
52737
+ var _result = "", _tag = state.tag, index2, length, value;
52738
+ for (index2 = 0, length = object.length; index2 < length; index2 += 1) {
52739
+ value = object[index2];
52740
+ if (state.replacer) {
52741
+ value = state.replacer.call(object, String(index2), value);
52742
+ }
52743
+ if (writeNode2(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode2(state, level + 1, null, true, true, false, true)) {
52744
+ if (!compact || _result !== "") {
52745
+ _result += generateNextLine2(state, level);
52746
+ }
52747
+ if (state.dump && CHAR_LINE_FEED2 === state.dump.charCodeAt(0)) {
52748
+ _result += "-";
52749
+ } else {
52750
+ _result += "- ";
52751
+ }
52752
+ _result += state.dump;
52753
+ }
52754
+ }
52755
+ state.tag = _tag;
52756
+ state.dump = _result || "[]";
52757
+ }
52758
+ function writeFlowMapping2(state, level, object) {
52759
+ var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index2, length, objectKey, objectValue, pairBuffer;
52760
+ for (index2 = 0, length = objectKeyList.length; index2 < length; index2 += 1) {
52761
+ pairBuffer = "";
52762
+ if (_result !== "") pairBuffer += ", ";
52763
+ if (state.condenseFlow) pairBuffer += '"';
52764
+ objectKey = objectKeyList[index2];
52765
+ objectValue = object[objectKey];
52766
+ if (state.replacer) {
52767
+ objectValue = state.replacer.call(object, objectKey, objectValue);
52768
+ }
52769
+ if (!writeNode2(state, level, objectKey, false, false)) {
52770
+ continue;
52771
+ }
52772
+ if (state.dump.length > 1024) pairBuffer += "? ";
52773
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
52774
+ if (!writeNode2(state, level, objectValue, false, false)) {
52775
+ continue;
52776
+ }
52777
+ pairBuffer += state.dump;
52778
+ _result += pairBuffer;
52779
+ }
52780
+ state.tag = _tag;
52781
+ state.dump = "{" + _result + "}";
52782
+ }
52783
+ function writeBlockMapping2(state, level, object, compact) {
52784
+ var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index2, length, objectKey, objectValue, explicitPair, pairBuffer;
52785
+ if (state.sortKeys === true) {
52786
+ objectKeyList.sort();
52787
+ } else if (typeof state.sortKeys === "function") {
52788
+ objectKeyList.sort(state.sortKeys);
52789
+ } else if (state.sortKeys) {
52790
+ throw new YAMLException2("sortKeys must be a boolean or a function");
52791
+ }
52792
+ for (index2 = 0, length = objectKeyList.length; index2 < length; index2 += 1) {
52793
+ pairBuffer = "";
52794
+ if (!compact || _result !== "") {
52795
+ pairBuffer += generateNextLine2(state, level);
52796
+ }
52797
+ objectKey = objectKeyList[index2];
52798
+ objectValue = object[objectKey];
52799
+ if (state.replacer) {
52800
+ objectValue = state.replacer.call(object, objectKey, objectValue);
52801
+ }
52802
+ if (!writeNode2(state, level + 1, objectKey, true, true, true)) {
52803
+ continue;
52804
+ }
52805
+ explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
52806
+ if (explicitPair) {
52807
+ if (state.dump && CHAR_LINE_FEED2 === state.dump.charCodeAt(0)) {
52808
+ pairBuffer += "?";
52809
+ } else {
52810
+ pairBuffer += "? ";
52811
+ }
52812
+ }
52813
+ pairBuffer += state.dump;
52814
+ if (explicitPair) {
52815
+ pairBuffer += generateNextLine2(state, level);
52816
+ }
52817
+ if (!writeNode2(state, level + 1, objectValue, true, explicitPair)) {
52818
+ continue;
52819
+ }
52820
+ if (state.dump && CHAR_LINE_FEED2 === state.dump.charCodeAt(0)) {
52821
+ pairBuffer += ":";
52822
+ } else {
52823
+ pairBuffer += ": ";
52824
+ }
52825
+ pairBuffer += state.dump;
52826
+ _result += pairBuffer;
52827
+ }
52828
+ state.tag = _tag;
52829
+ state.dump = _result || "{}";
52830
+ }
52831
+ function detectType2(state, object, explicit) {
52832
+ var _result, typeList, index2, length, type2, style;
52833
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
52834
+ for (index2 = 0, length = typeList.length; index2 < length; index2 += 1) {
52835
+ type2 = typeList[index2];
52836
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
52837
+ if (explicit) {
52838
+ if (type2.multi && type2.representName) {
52839
+ state.tag = type2.representName(object);
52840
+ } else {
52841
+ state.tag = type2.tag;
52842
+ }
52843
+ } else {
52844
+ state.tag = "?";
52845
+ }
52846
+ if (type2.represent) {
52847
+ style = state.styleMap[type2.tag] || type2.defaultStyle;
52848
+ if (_toString2.call(type2.represent) === "[object Function]") {
52849
+ _result = type2.represent(object, style);
52850
+ } else if (_hasOwnProperty2.call(type2.represent, style)) {
52851
+ _result = type2.represent[style](object, style);
52852
+ } else {
52853
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
52854
+ }
52855
+ state.dump = _result;
52856
+ }
52857
+ return true;
52858
+ }
52859
+ }
52860
+ return false;
52861
+ }
52862
+ function writeNode2(state, level, object, block, compact, iskey, isblockseq) {
52863
+ state.tag = null;
52864
+ state.dump = object;
52865
+ if (!detectType2(state, object, false)) {
52866
+ detectType2(state, object, true);
52867
+ }
52868
+ var type2 = _toString2.call(state.dump);
52869
+ var inblock = block;
52870
+ var tagStr;
52871
+ if (block) {
52872
+ block = state.flowLevel < 0 || state.flowLevel > level;
52873
+ }
52874
+ var objectOrArray = type2 === "[object Object]" || type2 === "[object Array]", duplicateIndex, duplicate;
52875
+ if (objectOrArray) {
52876
+ duplicateIndex = state.duplicates.indexOf(object);
52877
+ duplicate = duplicateIndex !== -1;
52878
+ }
52879
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
52880
+ compact = false;
52881
+ }
52882
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
52883
+ state.dump = "*ref_" + duplicateIndex;
52884
+ } else {
52885
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
52886
+ state.usedDuplicates[duplicateIndex] = true;
52887
+ }
52888
+ if (type2 === "[object Object]") {
52889
+ if (block && Object.keys(state.dump).length !== 0) {
52890
+ writeBlockMapping2(state, level, state.dump, compact);
52891
+ if (duplicate) {
52892
+ state.dump = "&ref_" + duplicateIndex + state.dump;
52893
+ }
52894
+ } else {
52895
+ writeFlowMapping2(state, level, state.dump);
52896
+ if (duplicate) {
52897
+ state.dump = "&ref_" + duplicateIndex + " " + state.dump;
52898
+ }
52899
+ }
52900
+ } else if (type2 === "[object Array]") {
52901
+ if (block && state.dump.length !== 0) {
52902
+ if (state.noArrayIndent && !isblockseq && level > 0) {
52903
+ writeBlockSequence2(state, level - 1, state.dump, compact);
52904
+ } else {
52905
+ writeBlockSequence2(state, level, state.dump, compact);
52906
+ }
52907
+ if (duplicate) {
52908
+ state.dump = "&ref_" + duplicateIndex + state.dump;
52909
+ }
52910
+ } else {
52911
+ writeFlowSequence2(state, level, state.dump);
52912
+ if (duplicate) {
52913
+ state.dump = "&ref_" + duplicateIndex + " " + state.dump;
52914
+ }
52915
+ }
52916
+ } else if (type2 === "[object String]") {
52917
+ if (state.tag !== "?") {
52918
+ writeScalar2(state, state.dump, level, iskey, inblock);
52919
+ }
52920
+ } else if (type2 === "[object Undefined]") {
52921
+ return false;
52922
+ } else {
52923
+ if (state.skipInvalid) return false;
52924
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
52925
+ }
52926
+ if (state.tag !== null && state.tag !== "?") {
52927
+ tagStr = encodeURI(
52928
+ state.tag[0] === "!" ? state.tag.slice(1) : state.tag
52929
+ ).replace(/!/g, "%21");
52930
+ if (state.tag[0] === "!") {
52931
+ tagStr = "!" + tagStr;
52932
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
52933
+ tagStr = "!!" + tagStr.slice(18);
52934
+ } else {
52935
+ tagStr = "!<" + tagStr + ">";
52936
+ }
52937
+ state.dump = tagStr + " " + state.dump;
52938
+ }
52939
+ }
52940
+ return true;
52941
+ }
52942
+ function getDuplicateReferences2(object, state) {
52943
+ var objects = [], duplicatesIndexes = [], index2, length;
52944
+ inspectNode2(object, objects, duplicatesIndexes);
52945
+ for (index2 = 0, length = duplicatesIndexes.length; index2 < length; index2 += 1) {
52946
+ state.duplicates.push(objects[duplicatesIndexes[index2]]);
52947
+ }
52948
+ state.usedDuplicates = new Array(length);
52949
+ }
52950
+ function inspectNode2(object, objects, duplicatesIndexes) {
52951
+ var objectKeyList, index2, length;
52952
+ if (object !== null && typeof object === "object") {
52953
+ index2 = objects.indexOf(object);
52954
+ if (index2 !== -1) {
52955
+ if (duplicatesIndexes.indexOf(index2) === -1) {
52956
+ duplicatesIndexes.push(index2);
52957
+ }
52958
+ } else {
52959
+ objects.push(object);
52960
+ if (Array.isArray(object)) {
52961
+ for (index2 = 0, length = object.length; index2 < length; index2 += 1) {
52962
+ inspectNode2(object[index2], objects, duplicatesIndexes);
52963
+ }
52964
+ } else {
52965
+ objectKeyList = Object.keys(object);
52966
+ for (index2 = 0, length = objectKeyList.length; index2 < length; index2 += 1) {
52967
+ inspectNode2(object[objectKeyList[index2]], objects, duplicatesIndexes);
52968
+ }
52969
+ }
52970
+ }
52971
+ }
52972
+ }
52973
+ function dump2(input, options) {
52974
+ options = options || {};
52975
+ var state = new State2(options);
52976
+ if (!state.noRefs) getDuplicateReferences2(input, state);
52977
+ var value = input;
52978
+ if (state.replacer) {
52979
+ value = state.replacer.call({ "": value }, "", value);
52980
+ }
52981
+ if (writeNode2(state, 0, value, true, true)) return state.dump + "\n";
52982
+ return "";
52983
+ }
52984
+ dumper.dump = dump2;
52985
+ return dumper;
52986
+ }
52987
+ var hasRequiredJsYaml;
52988
+ function requireJsYaml() {
52989
+ if (hasRequiredJsYaml) return jsYaml;
52990
+ hasRequiredJsYaml = 1;
52991
+ var loader2 = requireLoader();
52992
+ var dumper2 = requireDumper();
52993
+ function renamed2(from, to) {
52994
+ return function() {
52995
+ throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
52996
+ };
52997
+ }
52998
+ jsYaml.Type = requireType();
52999
+ jsYaml.Schema = requireSchema();
53000
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
53001
+ jsYaml.JSON_SCHEMA = requireJson();
53002
+ jsYaml.CORE_SCHEMA = requireCore();
53003
+ jsYaml.DEFAULT_SCHEMA = require_default();
53004
+ jsYaml.load = loader2.load;
53005
+ jsYaml.loadAll = loader2.loadAll;
53006
+ jsYaml.dump = dumper2.dump;
53007
+ jsYaml.YAMLException = requireException();
53008
+ jsYaml.types = {
53009
+ binary: requireBinary(),
53010
+ float: requireFloat(),
53011
+ map: requireMap(),
53012
+ null: require_null(),
53013
+ pairs: requirePairs(),
53014
+ set: requireSet(),
53015
+ timestamp: requireTimestamp(),
53016
+ bool: requireBool(),
53017
+ int: requireInt(),
53018
+ merge: requireMerge(),
53019
+ omap: requireOmap(),
53020
+ seq: requireSeq(),
53021
+ str: requireStr()
53022
+ };
53023
+ jsYaml.safeLoad = renamed2("safeLoad", "load");
53024
+ jsYaml.safeLoadAll = renamed2("safeLoadAll", "loadAll");
53025
+ jsYaml.safeDump = renamed2("safeDump", "dump");
53026
+ return jsYaml;
53027
+ }
50239
53028
  var hasRequiredTestEventPanel;
50240
53029
  function requireTestEventPanel() {
50241
53030
  if (hasRequiredTestEventPanel) return TestEventPanel;
50242
53031
  hasRequiredTestEventPanel = 1;
53032
+ var __importDefault = TestEventPanel && TestEventPanel.__importDefault || function(mod) {
53033
+ return mod && mod.__esModule ? mod : { "default": mod };
53034
+ };
50243
53035
  Object.defineProperty(TestEventPanel, "__esModule", { value: true });
50244
53036
  TestEventPanel.TestEventPanel = void 0;
50245
53037
  const jsx_runtime_1 = require$$0;
50246
53038
  const react_1 = React2;
50247
53039
  const industry_theme_1 = requireCjs();
50248
53040
  const lucide_react_1 = require$$3;
50249
- const TestEventPanel$1 = ({ spans, currentSpanIndex, currentEventIndex, highlightedPhase }) => {
53041
+ const js_yaml_1 = __importDefault(requireJsYaml());
53042
+ function getSeverityColor(severity) {
53043
+ const colors = {
53044
+ TRACE: "#6b7280",
53045
+ DEBUG: "#60a5fa",
53046
+ INFO: "#4ade80",
53047
+ WARN: "#fbbf24",
53048
+ ERROR: "#f87171",
53049
+ FATAL: "#dc2626"
53050
+ };
53051
+ return colors[severity] || "#9ca3af";
53052
+ }
53053
+ function getSeverityIcon(severity) {
53054
+ const icons = {
53055
+ TRACE: "○",
53056
+ DEBUG: "◐",
53057
+ INFO: "●",
53058
+ WARN: "⚠",
53059
+ ERROR: "✕",
53060
+ FATAL: "☠"
53061
+ };
53062
+ return icons[severity] || "•";
53063
+ }
53064
+ const TestEventPanel$1 = ({ spans, logs = [], currentSpanIndex, currentEventIndex, highlightedPhase, onSpanIndexChange }) => {
50250
53065
  const { theme } = (0, industry_theme_1.useTheme)();
50251
53066
  const [showHelp, setShowHelp] = (0, react_1.useState)(false);
53067
+ const [viewMode, setViewMode] = (0, react_1.useState)("all");
50252
53068
  const currentSpan = spans[currentSpanIndex];
50253
- const eventsUpToNow = (currentSpan == null ? void 0 : currentSpan.events.slice(0, currentEventIndex + 1)) || [];
53069
+ const handlePrevTest = () => {
53070
+ if (currentSpanIndex > 0 && onSpanIndexChange) {
53071
+ onSpanIndexChange(currentSpanIndex - 1);
53072
+ }
53073
+ };
53074
+ const handleNextTest = () => {
53075
+ if (currentSpanIndex < spans.length - 1 && onSpanIndexChange) {
53076
+ onSpanIndexChange(currentSpanIndex + 1);
53077
+ }
53078
+ };
53079
+ const timeline = (0, react_1.useMemo)(() => {
53080
+ if (!currentSpan)
53081
+ return [];
53082
+ const items = [
53083
+ // Span events
53084
+ ...currentSpan.events.slice(0, currentEventIndex + 1).map((event) => ({
53085
+ type: "event",
53086
+ time: event.time,
53087
+ name: event.name,
53088
+ attributes: event.attributes
53089
+ })),
53090
+ // Correlated logs (matching current span's traceId)
53091
+ ...logs.filter((log) => log.traceId === currentSpan.id).map((log) => ({
53092
+ type: "log",
53093
+ time: typeof log.timestamp === "number" ? log.timestamp : new Date(log.timestamp).getTime(),
53094
+ severity: log.severity,
53095
+ body: log.body,
53096
+ resource: log.resource,
53097
+ attributes: log.attributes
53098
+ }))
53099
+ ].sort((a, b) => a.time - b.time);
53100
+ return items;
53101
+ }, [currentSpan, currentEventIndex, logs]);
53102
+ const filteredTimeline = (0, react_1.useMemo)(() => {
53103
+ if (viewMode === "all")
53104
+ return timeline;
53105
+ return timeline.filter((item) => item.type === viewMode.slice(0, -1));
53106
+ }, [timeline, viewMode]);
53107
+ const eventCount = timeline.filter((i) => i.type === "event").length;
53108
+ const logCount = timeline.filter((i) => i.type === "log").length;
50254
53109
  return (0, jsx_runtime_1.jsxs)("div", { style: {
50255
53110
  width: "100%",
50256
53111
  height: "100%",
50257
53112
  backgroundColor: theme.colors.background,
50258
53113
  color: theme.colors.text,
50259
- padding: "20px",
50260
53114
  fontFamily: theme.fonts.monospace,
50261
53115
  fontSize: "14px",
50262
- overflow: "auto",
50263
- boxSizing: "border-box"
50264
- }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "15px" }, children: [(0, jsx_runtime_1.jsx)("div", { style: { fontWeight: "bold", fontSize: "18px" }, children: "Wide Event Pattern - Code Journey" }), (0, jsx_runtime_1.jsx)("button", { onClick: () => setShowHelp(true), style: {
53116
+ boxSizing: "border-box",
53117
+ display: "flex",
53118
+ flexDirection: "column"
53119
+ }, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
53120
+ padding: "20px 20px 0 20px",
53121
+ backgroundColor: theme.colors.background,
53122
+ borderBottom: `1px solid ${theme.colors.border}`,
53123
+ flexShrink: 0
53124
+ }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "12px" }, children: [(0, jsx_runtime_1.jsx)("div", { style: { fontWeight: "bold", fontSize: "18px" }, children: "Execution Timeline" }), (0, jsx_runtime_1.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [(0, jsx_runtime_1.jsx)("div", { style: { fontSize: "13px", color: theme.colors.textMuted }, children: (0, jsx_runtime_1.jsx)("span", { style: { color: "#4ade80" }, children: "All Passed ✓" }) }), (0, jsx_runtime_1.jsx)("button", { onClick: () => setShowHelp(true), style: {
50265
53125
  background: "transparent",
50266
53126
  border: "none",
50267
53127
  cursor: "pointer",
@@ -50273,7 +53133,52 @@ function requireTestEventPanel() {
50273
53133
  e.currentTarget.style.color = theme.colors.text;
50274
53134
  }, onMouseLeave: (e) => {
50275
53135
  e.currentTarget.style.color = theme.colors.textMuted;
50276
- }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.HelpCircle, { size: 20 }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: { fontSize: "13px", color: theme.colors.textMuted, marginBottom: "15px" }, children: ["Test: ", (currentSpan == null ? void 0 : currentSpan.name) || "Loading..."] }), showHelp && (0, jsx_runtime_1.jsx)("div", { style: {
53136
+ }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.HelpCircle, { size: 20 }) })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "12px", marginBottom: "12px" }, children: [(0, jsx_runtime_1.jsx)("button", { onClick: handlePrevTest, disabled: currentSpanIndex === 0, style: {
53137
+ padding: "4px 12px",
53138
+ background: theme.colors.surface,
53139
+ border: `1px solid ${theme.colors.border}`,
53140
+ borderRadius: "4px",
53141
+ color: currentSpanIndex === 0 ? theme.colors.textMuted : theme.colors.text,
53142
+ cursor: currentSpanIndex === 0 ? "not-allowed" : "pointer",
53143
+ fontSize: "14px",
53144
+ opacity: currentSpanIndex === 0 ? 0.5 : 1
53145
+ }, children: "← Prev" }), (0, jsx_runtime_1.jsxs)("div", { style: { fontSize: "13px", color: theme.colors.textMuted }, children: ["Test ", currentSpanIndex + 1, " of ", spans.length] }), (0, jsx_runtime_1.jsx)("button", { onClick: handleNextTest, disabled: currentSpanIndex === spans.length - 1, style: {
53146
+ padding: "4px 12px",
53147
+ background: theme.colors.surface,
53148
+ border: `1px solid ${theme.colors.border}`,
53149
+ borderRadius: "4px",
53150
+ color: currentSpanIndex === spans.length - 1 ? theme.colors.textMuted : theme.colors.text,
53151
+ cursor: currentSpanIndex === spans.length - 1 ? "not-allowed" : "pointer",
53152
+ fontSize: "14px",
53153
+ opacity: currentSpanIndex === spans.length - 1 ? 0.5 : 1
53154
+ }, children: "Next →" }), (0, jsx_runtime_1.jsxs)("div", { style: { fontSize: "12px", color: theme.colors.textMuted, marginLeft: "auto" }, children: [eventCount, " events, ", logCount, " logs"] })] }), (0, jsx_runtime_1.jsxs)("div", { style: { display: "flex", gap: "8px", marginBottom: "12px" }, children: [(0, jsx_runtime_1.jsxs)("button", { onClick: () => setViewMode("all"), style: {
53155
+ padding: "6px 12px",
53156
+ background: viewMode === "all" ? theme.colors.primary : "transparent",
53157
+ border: `1px solid ${theme.colors.border}`,
53158
+ borderRadius: "4px",
53159
+ color: viewMode === "all" ? "#ffffff" : theme.colors.text,
53160
+ cursor: "pointer",
53161
+ fontSize: "12px",
53162
+ fontWeight: 500
53163
+ }, children: ["All (", timeline.length, ")"] }), (0, jsx_runtime_1.jsxs)("button", { onClick: () => setViewMode("events"), style: {
53164
+ padding: "6px 12px",
53165
+ background: viewMode === "events" ? theme.colors.primary : "transparent",
53166
+ border: `1px solid ${theme.colors.border}`,
53167
+ borderRadius: "4px",
53168
+ color: viewMode === "events" ? "#ffffff" : theme.colors.text,
53169
+ cursor: "pointer",
53170
+ fontSize: "12px",
53171
+ fontWeight: 500
53172
+ }, children: ["Events (", eventCount, ")"] }), (0, jsx_runtime_1.jsxs)("button", { onClick: () => setViewMode("logs"), style: {
53173
+ padding: "6px 12px",
53174
+ background: viewMode === "logs" ? theme.colors.primary : "transparent",
53175
+ border: `1px solid ${theme.colors.border}`,
53176
+ borderRadius: "4px",
53177
+ color: viewMode === "logs" ? "#ffffff" : theme.colors.text,
53178
+ cursor: "pointer",
53179
+ fontSize: "12px",
53180
+ fontWeight: 500
53181
+ }, children: ["Logs (", logCount, ")"] })] }), (0, jsx_runtime_1.jsxs)("div", { style: { fontSize: "13px", color: theme.colors.textMuted, marginBottom: "15px" }, children: ["Test: ", (currentSpan == null ? void 0 : currentSpan.name) || "Loading..."] })] }), showHelp && (0, jsx_runtime_1.jsx)("div", { style: {
50277
53182
  position: "fixed",
50278
53183
  top: 0,
50279
53184
  left: 0,
@@ -50291,81 +53196,108 @@ function requireTestEventPanel() {
50291
53196
  borderRadius: "8px",
50292
53197
  maxWidth: "600px",
50293
53198
  border: `1px solid ${theme.colors.border}`
50294
- }, onClick: (e) => e.stopPropagation(), children: [(0, jsx_runtime_1.jsx)("div", { style: { fontWeight: "bold", fontSize: "18px", marginBottom: "16px" }, children: "How to Read This Panel" }), (0, jsx_runtime_1.jsxs)("div", { style: { fontSize: "14px", marginBottom: "16px", lineHeight: "1.6" }, children: [(0, jsx_runtime_1.jsx)("p", { style: { marginBottom: "12px" }, children: (0, jsx_runtime_1.jsx)("strong", { children: "Watch how execution flows through files:" }) }), (0, jsx_runtime_1.jsxs)("ul", { style: { marginLeft: "20px", marginBottom: "16px" }, children: [(0, jsx_runtime_1.jsx)("li", { style: { marginBottom: "8px" }, children: (0, jsx_runtime_1.jsx)("span", { style: { color: "#60a5fa" }, children: "Blue = Test file" }) }), (0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("span", { style: { color: "#4ade80" }, children: "Green → Code under test" }) })] }), (0, jsx_runtime_1.jsx)("p", { style: { marginBottom: "12px" }, children: (0, jsx_runtime_1.jsx)("strong", { children: "Span Context (Static)" }) }), (0, jsx_runtime_1.jsx)("pre", { style: {
50295
- background: theme.colors.surface,
50296
- padding: "12px",
50297
- borderRadius: "4px",
50298
- fontSize: "13px",
50299
- overflow: "auto"
50300
- }, children: `{
50301
- "test.file": "GraphConverter.test.ts",
50302
- "test.suite": "GraphConverter",
50303
- "test.result": "pass"
50304
- }` })] }), (0, jsx_runtime_1.jsx)("button", { onClick: () => setShowHelp(false), style: {
53199
+ }, onClick: (e) => e.stopPropagation(), children: [(0, jsx_runtime_1.jsx)("div", { style: { fontWeight: "bold", fontSize: "18px", marginBottom: "16px" }, children: "How to Read This Panel" }), (0, jsx_runtime_1.jsxs)("div", { style: { fontSize: "14px", marginBottom: "16px", lineHeight: "1.6" }, children: [(0, jsx_runtime_1.jsx)("p", { style: { marginBottom: "12px" }, children: (0, jsx_runtime_1.jsx)("strong", { children: "Timeline shows both events and logs:" }) }), (0, jsx_runtime_1.jsxs)("ul", { style: { marginLeft: "20px", marginBottom: "16px" }, children: [(0, jsx_runtime_1.jsxs)("li", { style: { marginBottom: "8px" }, children: [(0, jsx_runtime_1.jsx)("span", { style: { color: "#f59e0b" }, children: "🟧 Events" }), " - Structured lifecycle points"] }), (0, jsx_runtime_1.jsxs)("li", { style: { marginBottom: "8px" }, children: [(0, jsx_runtime_1.jsx)("span", { style: { color: "#4ade80" }, children: "● Logs" }), " - Standalone log records (color = severity)"] }), (0, jsx_runtime_1.jsx)("li", { style: { marginBottom: "8px" }, children: (0, jsx_runtime_1.jsx)("span", { style: { color: "#60a5fa" }, children: "Blue = Test file" }) }), (0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("span", { style: { color: "#4ade80" }, children: "Green → Code under test" }) })] }), (0, jsx_runtime_1.jsx)("p", { style: { marginBottom: "12px" }, children: (0, jsx_runtime_1.jsx)("strong", { children: "Use filter tabs to focus:" }) }), (0, jsx_runtime_1.jsxs)("ul", { style: { marginLeft: "20px" }, children: [(0, jsx_runtime_1.jsx)("li", { children: "All - Interleaved timeline" }), (0, jsx_runtime_1.jsx)("li", { children: "Events - Span events only" }), (0, jsx_runtime_1.jsx)("li", { children: "Logs - OTEL logs only" })] })] }), (0, jsx_runtime_1.jsx)("button", { onClick: () => setShowHelp(false), style: {
50305
53200
  padding: "8px 16px",
50306
53201
  backgroundColor: theme.colors.primary,
50307
- color: theme.colors.background,
53202
+ color: "#ffffff",
50308
53203
  border: "none",
50309
53204
  borderRadius: "4px",
50310
53205
  cursor: "pointer",
50311
53206
  fontSize: "14px",
50312
53207
  fontWeight: 500
50313
- }, children: "Got it" })] }) }), currentSpan && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { style: {
50314
- color: "#4ade80",
50315
- fontWeight: "bold",
50316
- marginBottom: "8px",
50317
- fontSize: "15px"
50318
- }, children: "Event Timeline (Context Mutations)" }), eventsUpToNow.map((event, idx) => {
50319
- const filepath = event.attributes["code.filepath"];
50320
- const lineno = event.attributes["code.lineno"];
50321
- const isCodeUnderTest = filepath && filepath !== "GraphConverter.test.ts";
50322
- const eventPhase = event.name.split(".")[0];
50323
- const isHighlighted = highlightedPhase === eventPhase;
50324
- return (0, jsx_runtime_1.jsxs)("div", { style: {
50325
- marginBottom: "12px",
50326
- paddingBottom: "12px",
50327
- borderBottom: idx < eventsUpToNow.length - 1 ? `1px solid ${theme.colors.border}` : "none",
50328
- opacity: highlightedPhase && !isHighlighted ? 0.4 : 1,
50329
- transition: "opacity 0.2s ease",
50330
- transform: isHighlighted ? "scale(1.02)" : "scale(1)",
50331
- backgroundColor: isHighlighted ? theme.colors.surface : "transparent",
50332
- padding: isHighlighted ? "8px" : "0",
50333
- borderRadius: "4px"
50334
- }, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
50335
- display: "flex",
50336
- justifyContent: "space-between",
50337
- alignItems: "center",
50338
- marginBottom: "4px",
50339
- gap: "8px"
50340
- }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { color: "#f59e0b", fontSize: "13px", flexShrink: 0 }, children: [idx + 1, ". ", event.name] }), filepath && (0, jsx_runtime_1.jsxs)("div", { style: {
50341
- fontSize: "12px",
50342
- color: isCodeUnderTest ? "#4ade80" : "#60a5fa",
50343
- fontFamily: "monospace",
50344
- background: isCodeUnderTest ? "#064e3b" : "#1e3a8a",
50345
- padding: "2px 6px",
50346
- borderRadius: "3px",
50347
- flexShrink: 1,
50348
- minWidth: 0,
50349
- overflow: "hidden",
50350
- textOverflow: "ellipsis",
50351
- whiteSpace: "nowrap"
50352
- }, children: [isCodeUnderTest && "", filepath, ":", lineno] })] }), (0, jsx_runtime_1.jsx)("pre", { style: {
50353
- background: theme.colors.surface,
50354
- padding: "8px",
50355
- borderRadius: "4px",
50356
- margin: 0,
50357
- fontSize: "12px",
50358
- lineHeight: "1.4",
50359
- overflow: "auto",
50360
- maxWidth: "100%"
50361
- }, children: JSON.stringify(Object.fromEntries(Object.entries(event.attributes).filter(([key]) => key !== "code.filepath" && key !== "code.lineno")), null, 2) })] }, idx);
50362
- })] }) }), (0, jsx_runtime_1.jsxs)("div", { style: {
50363
- marginTop: "20px",
50364
- paddingTop: "15px",
50365
- borderTop: `1px solid ${theme.colors.border}`,
50366
- fontSize: "13px",
50367
- color: theme.colors.textMuted
50368
- }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { marginBottom: "8px" }, children: [(0, jsx_runtime_1.jsx)("strong", { children: "Total tests:" }), " ", spans.length] }), (0, jsx_runtime_1.jsxs)("div", { style: { marginBottom: "8px" }, children: [(0, jsx_runtime_1.jsx)("strong", { children: "Pattern:" }), " One span per test + event timeline"] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("strong", { children: "Status:" }), " ", (0, jsx_runtime_1.jsx)("span", { style: { color: "#4ade80" }, children: "All Passed ✓" })] })] })] });
53208
+ }, children: "Got it" })] }) }), (0, jsx_runtime_1.jsx)("div", { style: {
53209
+ flex: 1,
53210
+ overflow: "auto",
53211
+ padding: "20px"
53212
+ }, children: currentSpan && (0, jsx_runtime_1.jsx)("div", { children: filteredTimeline.map((item, idx) => {
53213
+ var _a, _b, _c, _d;
53214
+ if (item.type === "event") {
53215
+ const filepath = (_a = item.attributes) == null ? void 0 : _a["code.filepath"];
53216
+ const lineno = (_b = item.attributes) == null ? void 0 : _b["code.lineno"];
53217
+ const isCodeUnderTest = filepath && filepath !== "GraphConverter.test.ts";
53218
+ const eventPhase = (_c = item.name) == null ? void 0 : _c.split(".")[0];
53219
+ const isHighlighted = highlightedPhase === eventPhase;
53220
+ return (0, jsx_runtime_1.jsxs)("div", { style: {
53221
+ marginBottom: "12px",
53222
+ paddingBottom: "12px",
53223
+ paddingLeft: "12px",
53224
+ borderBottom: idx < filteredTimeline.length - 1 ? `1px solid ${theme.colors.border}` : "none",
53225
+ borderLeft: "3px solid #f59e0b",
53226
+ opacity: highlightedPhase && !isHighlighted ? 0.4 : 1,
53227
+ transition: "opacity 0.2s ease",
53228
+ transform: isHighlighted ? "scale(1.02)" : "scale(1)",
53229
+ backgroundColor: isHighlighted ? theme.colors.surface : "transparent",
53230
+ padding: isHighlighted ? "8px 8px 8px 12px" : "0 0 12px 12px",
53231
+ borderRadius: "4px"
53232
+ }, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
53233
+ display: "flex",
53234
+ justifyContent: "space-between",
53235
+ alignItems: "center",
53236
+ marginBottom: "4px",
53237
+ gap: "8px"
53238
+ }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { color: "#f59e0b", fontSize: "13px", fontWeight: "bold", flexShrink: 0 }, children: ["EVENT: ", item.name] }), filepath && (0, jsx_runtime_1.jsxs)("div", { style: {
53239
+ fontSize: "12px",
53240
+ color: isCodeUnderTest ? "#4ade80" : "#60a5fa",
53241
+ fontFamily: "monospace",
53242
+ background: isCodeUnderTest ? "#064e3b" : "#1e3a8a",
53243
+ padding: "2px 6px",
53244
+ borderRadius: "3px",
53245
+ flexShrink: 1,
53246
+ minWidth: 0,
53247
+ overflow: "hidden",
53248
+ textOverflow: "ellipsis",
53249
+ whiteSpace: "nowrap"
53250
+ }, children: [isCodeUnderTest && "", filepath, ":", lineno] })] }), (0, jsx_runtime_1.jsx)("pre", { style: {
53251
+ background: theme.colors.surface,
53252
+ padding: "8px",
53253
+ borderRadius: "4px",
53254
+ margin: 0,
53255
+ fontSize: "13px",
53256
+ lineHeight: "1.5",
53257
+ overflow: "auto",
53258
+ maxWidth: "100%"
53259
+ }, children: js_yaml_1.default.dump(Object.fromEntries(Object.entries(item.attributes || {}).filter(([key]) => key !== "code.filepath" && key !== "code.lineno")), { indent: 2, lineWidth: -1 }) })] }, idx);
53260
+ } else {
53261
+ const serviceName = (_d = item.resource) == null ? void 0 : _d["service.name"];
53262
+ const severityColor = getSeverityColor(item.severity);
53263
+ return (0, jsx_runtime_1.jsxs)("div", { style: {
53264
+ marginBottom: "12px",
53265
+ paddingBottom: "12px",
53266
+ paddingLeft: "12px",
53267
+ borderBottom: idx < filteredTimeline.length - 1 ? `1px solid ${theme.colors.border}` : "none",
53268
+ borderLeft: `3px solid ${severityColor}`
53269
+ }, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
53270
+ display: "flex",
53271
+ justifyContent: "space-between",
53272
+ alignItems: "center",
53273
+ marginBottom: "4px"
53274
+ }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [(0, jsx_runtime_1.jsx)("span", { style: { fontSize: "16px" }, children: getSeverityIcon(item.severity) }), (0, jsx_runtime_1.jsxs)("span", { style: {
53275
+ color: severityColor,
53276
+ fontSize: "13px",
53277
+ fontWeight: "bold"
53278
+ }, children: ["LOG: ", item.severity] })] }), serviceName && (0, jsx_runtime_1.jsx)("div", { style: {
53279
+ fontSize: "12px",
53280
+ color: "#9ca3af",
53281
+ background: "#1e293b",
53282
+ padding: "2px 6px",
53283
+ borderRadius: "3px"
53284
+ }, children: serviceName })] }), (0, jsx_runtime_1.jsx)("div", { style: {
53285
+ background: theme.colors.surface,
53286
+ padding: "8px",
53287
+ borderRadius: "4px",
53288
+ marginBottom: item.attributes && Object.keys(item.attributes).length > 0 ? "8px" : "0",
53289
+ fontSize: "13px"
53290
+ }, children: typeof item.body === "string" ? item.body : (0, jsx_runtime_1.jsx)("pre", { style: { margin: 0, fontSize: "13px", lineHeight: "1.5" }, children: js_yaml_1.default.dump(item.body, { indent: 2, lineWidth: -1 }) }) }), item.attributes && Object.keys(item.attributes).length > 0 && (0, jsx_runtime_1.jsx)("pre", { style: {
53291
+ background: theme.colors.surface,
53292
+ padding: "8px",
53293
+ borderRadius: "4px",
53294
+ margin: 0,
53295
+ fontSize: "12px",
53296
+ lineHeight: "1.5",
53297
+ opacity: 0.8
53298
+ }, children: js_yaml_1.default.dump(item.attributes, { indent: 2, lineWidth: -1 }) })] }, idx);
53299
+ }
53300
+ }) }) })] });
50369
53301
  };
50370
53302
  TestEventPanel.TestEventPanel = TestEventPanel$1;
50371
53303
  return TestEventPanel;
@@ -50947,7 +53879,7 @@ class ConfigLoader {
50947
53879
  */
50948
53880
  static parseLibrary(content) {
50949
53881
  try {
50950
- return jsYaml.load(content);
53882
+ return jsYaml$1.load(content);
50951
53883
  } catch (error) {
50952
53884
  throw new Error(`Failed to parse library YAML: ${error.message}`);
50953
53885
  }
@@ -52831,31 +55763,16 @@ class ExecutionLoader {
52831
55763
  static parseExecutionArtifact(content) {
52832
55764
  try {
52833
55765
  const parsed = JSON.parse(content);
52834
- if (Array.isArray(parsed)) {
52835
- return { spans: parsed };
52836
- }
52837
55766
  return parsed;
52838
55767
  } catch (error) {
52839
55768
  throw new Error(`Failed to parse execution artifact JSON: ${error.message}`);
52840
55769
  }
52841
55770
  }
52842
55771
  /**
52843
- * Get spans array from artifact (handles both formats)
55772
+ * Get spans array from artifact
52844
55773
  */
52845
55774
  static getSpans(artifact) {
52846
- if (artifact.spans) {
52847
- return artifact.spans;
52848
- }
52849
- if (Array.isArray(artifact)) {
52850
- return artifact;
52851
- }
52852
- const spans = [];
52853
- for (const key in artifact) {
52854
- if (!isNaN(Number(key))) {
52855
- spans.push(artifact[key]);
52856
- }
52857
- }
52858
- return spans;
55775
+ return artifact.spans;
52859
55776
  }
52860
55777
  /**
52861
55778
  * Extract metadata from an execution artifact
@@ -53115,6 +56032,93 @@ function buildEventToNodeMap(canvas) {
53115
56032
  }
53116
56033
  return map2;
53117
56034
  }
56035
+ const TestEventPanelWrapper = ({ spans, currentSpanIndex, currentEventIndex, onSpanIndexChange }) => {
56036
+ const isSingleSpan = spans.length === 1;
56037
+ const wrapperId = "event-panel-" + (isSingleSpan ? "single" : "multi");
56038
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
56039
+ /* @__PURE__ */ jsx("style", { children: `
56040
+ /* Reorder elements in TestEventPanel */
56041
+ #${wrapperId} > div > div:first-child {
56042
+ display: flex;
56043
+ flex-direction: column;
56044
+ }
56045
+
56046
+ /* Test name/description - move to top (order 1) */
56047
+ #${wrapperId} > div > div:first-child > div:first-child {
56048
+ order: 1;
56049
+ }
56050
+
56051
+ /* Filter buttons (All, Events, Logs) - move below test name (order 2) */
56052
+ #${wrapperId} > div > div:first-child > div:nth-child(2) {
56053
+ order: 2;
56054
+ }
56055
+
56056
+ /* Timeline/content - keep at bottom (order 3) */
56057
+ #${wrapperId} > div > div:first-child > div:nth-child(3) {
56058
+ order: 3;
56059
+ }
56060
+
56061
+ ${isSingleSpan ? `
56062
+ /* Hide navigation for single span */
56063
+ #${wrapperId} button:disabled {
56064
+ display: none;
56065
+ }
56066
+ #${wrapperId} div:has(> button:disabled) {
56067
+ display: none;
56068
+ }
56069
+
56070
+ /* Hide "Execution Timeline" title */
56071
+ #${wrapperId} h3,
56072
+ #${wrapperId} h2,
56073
+ #${wrapperId} div[style*="fontSize: 16px"] {
56074
+ display: none !important;
56075
+ }
56076
+
56077
+ /* Hide filter buttons (All, Events, Logs) */
56078
+ #${wrapperId} div:has(> button):not(:has(svg[class*="HelpCircle"])) button {
56079
+ display: none !important;
56080
+ }
56081
+
56082
+ /* Hide event/log counts (e.g., "1 events, 0 logs") */
56083
+ #${wrapperId} div[style*="fontSize: 12px"][style*="marginLeft: auto"] {
56084
+ display: none !important;
56085
+ }
56086
+
56087
+ /* Keep only the status badge and help button visible in header */
56088
+ #${wrapperId} > div > div:first-child > div:first-child {
56089
+ display: flex !important;
56090
+ align-items: center;
56091
+ justify-content: space-between;
56092
+ padding: 12px 16px;
56093
+ }
56094
+
56095
+ /* Hide all children except status badge and help button */
56096
+ #${wrapperId} > div > div:first-child > div:first-child > * {
56097
+ display: none !important;
56098
+ }
56099
+
56100
+ /* Show status badge */
56101
+ #${wrapperId} > div > div:first-child > div:first-child > div:has([style*="background"]) {
56102
+ display: flex !important;
56103
+ }
56104
+
56105
+ /* Show help button */
56106
+ #${wrapperId} > div > div:first-child > div:first-child > button {
56107
+ display: flex !important;
56108
+ }
56109
+ ` : ""}
56110
+ ` }),
56111
+ /* @__PURE__ */ jsx("div", { id: wrapperId, style: { height: "100%" }, children: /* @__PURE__ */ jsx(
56112
+ distExports.TestEventPanel,
56113
+ {
56114
+ spans,
56115
+ currentSpanIndex,
56116
+ currentEventIndex,
56117
+ onSpanIndexChange
56118
+ }
56119
+ ) })
56120
+ ] });
56121
+ };
53118
56122
  const ExecutionViewerPanel = ({
53119
56123
  context,
53120
56124
  actions,
@@ -53146,6 +56150,12 @@ const ExecutionViewerPanel = ({
53146
56150
  selectedExecutionIdRef.current = state.selectedExecutionId;
53147
56151
  const playbackTimerRef = useRef(null);
53148
56152
  const eventNodeMapRef = useRef(/* @__PURE__ */ new Map());
56153
+ const findCanvasFiles = useCallback((files) => {
56154
+ return files.filter((file) => {
56155
+ const path = file.relativePath || file.path || "";
56156
+ return path.endsWith(".otel.canvas") || path.endsWith(".canvas");
56157
+ }).map((file) => file.relativePath || file.path || "");
56158
+ }, []);
53149
56159
  const loadExecution = useCallback(async (executionId) => {
53150
56160
  setState((prev) => ({ ...prev, loading: prev.canvas === null, error: null }));
53151
56161
  try {
@@ -53174,9 +56184,26 @@ const ExecutionViewerPanel = ({
53174
56184
  }
53175
56185
  const availableExecutions = ExecutionLoader.findExecutionFiles(fileTreeData.allFiles);
53176
56186
  if (availableExecutions.length === 0) {
56187
+ const readFile2 = acts.readFile;
56188
+ const repositoryPath2 = ctx.repositoryPath;
56189
+ let canvas2 = null;
56190
+ if (readFile2 && repositoryPath2) {
56191
+ const canvasFiles = findCanvasFiles(fileTreeData.allFiles);
56192
+ if (canvasFiles.length > 0) {
56193
+ try {
56194
+ const fullCanvasPath = `${repositoryPath2}/${canvasFiles[0]}`;
56195
+ const canvasContent = await readFile2(fullCanvasPath);
56196
+ if (canvasContent && typeof canvasContent === "string") {
56197
+ canvas2 = JSON.parse(canvasContent);
56198
+ }
56199
+ } catch (error) {
56200
+ console.warn("[ExecutionViewer] Failed to load canvas:", error);
56201
+ }
56202
+ }
56203
+ }
53177
56204
  setState((prev) => ({
53178
56205
  ...prev,
53179
- canvas: null,
56206
+ canvas: canvas2,
53180
56207
  execution: null,
53181
56208
  metadata: null,
53182
56209
  loading: false,
@@ -53256,7 +56283,7 @@ const ExecutionViewerPanel = ({
53256
56283
  error: error.message
53257
56284
  }));
53258
56285
  }
53259
- }, []);
56286
+ }, [findCanvasFiles]);
53260
56287
  useEffect(() => {
53261
56288
  loadExecution();
53262
56289
  }, [loadExecution]);
@@ -53288,6 +56315,21 @@ const ExecutionViewerPanel = ({
53288
56315
  highlightedNodeId: null
53289
56316
  }));
53290
56317
  }, []);
56318
+ const handleSpanIndexChange = useCallback((newSpanIndex) => {
56319
+ setState((prev) => {
56320
+ var _a2;
56321
+ const spans = prev.execution ? ExecutionLoader.getSpans(prev.execution) : [];
56322
+ const newSpan = spans[newSpanIndex];
56323
+ const newEvent = (_a2 = newSpan == null ? void 0 : newSpan.events) == null ? void 0 : _a2[0];
56324
+ const highlightedNodeId = newEvent ? mapEventToNodeId(newEvent, prev.canvas) : null;
56325
+ return {
56326
+ ...prev,
56327
+ currentSpanIndex: newSpanIndex,
56328
+ currentEventIndex: 0,
56329
+ highlightedNodeId
56330
+ };
56331
+ });
56332
+ }, []);
53291
56333
  useEffect(() => {
53292
56334
  if (!state.isPlaying || !state.execution) {
53293
56335
  if (playbackTimerRef.current) {
@@ -53336,7 +56378,7 @@ const ExecutionViewerPanel = ({
53336
56378
  }
53337
56379
  };
53338
56380
  }, [state.isPlaying, state.execution]);
53339
- if (!state.loading && state.availableExecutions.length === 0) {
56381
+ if (!state.loading && state.availableExecutions.length === 0 && !state.canvas) {
53340
56382
  return /* @__PURE__ */ jsx(
53341
56383
  "div",
53342
56384
  {
@@ -53350,7 +56392,7 @@ const ExecutionViewerPanel = ({
53350
56392
  },
53351
56393
  children: /* @__PURE__ */ jsxs("div", { style: { textAlign: "center", maxWidth: "600px", padding: "20px" }, children: [
53352
56394
  /* @__PURE__ */ jsx(Activity, { size: 48, style: { margin: "0 auto 20px", opacity: 0.3 } }),
53353
- /* @__PURE__ */ jsx("h2", { style: { margin: "0 0 10px 0", fontSize: "18px", fontWeight: 600 }, children: "No Execution Artifacts Found" }),
56395
+ /* @__PURE__ */ jsx("h2", { style: { margin: "0 0 10px 0", fontSize: "18px", fontWeight: 600 }, children: "No Execution Artifacts or Canvas Found" }),
53354
56396
  /* @__PURE__ */ jsxs("p", { style: { margin: "0 0 20px 0", color: theme.colors.textSecondary, lineHeight: 1.5 }, children: [
53355
56397
  "Execution artifacts should be saved to ",
53356
56398
  /* @__PURE__ */ jsx("code", { children: "__executions__/*.spans.json" }),
@@ -53449,7 +56491,7 @@ const ExecutionViewerPanel = ({
53449
56491
  gap: "12px"
53450
56492
  },
53451
56493
  children: [
53452
- /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
56494
+ state.availableExecutions.length > 0 && /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
53453
56495
  /* @__PURE__ */ jsxs(
53454
56496
  "button",
53455
56497
  {
@@ -53561,10 +56603,10 @@ const ExecutionViewerPanel = ({
53561
56603
  ] })
53562
56604
  ] }),
53563
56605
  /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
53564
- /* @__PURE__ */ jsx("div", { style: { fontSize: "14px", fontWeight: 600 }, children: ((_a = state.metadata) == null ? void 0 : _a.name) || "Execution Viewer" }),
56606
+ /* @__PURE__ */ jsx("div", { style: { fontSize: "14px", fontWeight: 600 }, children: ((_a = state.metadata) == null ? void 0 : _a.name) || (state.canvas ? "Canvas Viewer" : "Execution Viewer") }),
53565
56607
  selectedExecution && /* @__PURE__ */ jsx("div", { style: { fontSize: "11px", color: "#999", marginTop: "2px" }, children: selectedExecution.path })
53566
56608
  ] }),
53567
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
56609
+ state.execution && /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
53568
56610
  /* @__PURE__ */ jsx(
53569
56611
  "button",
53570
56612
  {
@@ -53611,11 +56653,58 @@ const ExecutionViewerPanel = ({
53611
56653
  }
53612
56654
  ),
53613
56655
  /* @__PURE__ */ jsxs("div", { style: { flex: 1, display: "flex", overflow: "hidden" }, children: [
56656
+ /* @__PURE__ */ jsx("div", { style: { flex: "0 0 40%", borderRight: "1px solid #333", overflow: "hidden" }, children: state.execution ? /* @__PURE__ */ jsx(
56657
+ TestEventPanelWrapper,
56658
+ {
56659
+ spans: ExecutionLoader.getSpans(state.execution),
56660
+ currentSpanIndex: state.currentSpanIndex,
56661
+ currentEventIndex: state.currentEventIndex,
56662
+ onSpanIndexChange: handleSpanIndexChange
56663
+ }
56664
+ ) : /* @__PURE__ */ jsx(
56665
+ "div",
56666
+ {
56667
+ style: {
56668
+ display: "flex",
56669
+ alignItems: "center",
56670
+ justifyContent: "center",
56671
+ height: "100%",
56672
+ background: "#0a0a0a",
56673
+ padding: "20px"
56674
+ },
56675
+ children: /* @__PURE__ */ jsxs("div", { style: { textAlign: "center", maxWidth: "400px" }, children: [
56676
+ /* @__PURE__ */ jsx(Activity, { size: 48, style: { margin: "0 auto 20px", opacity: 0.3, color: "#666" } }),
56677
+ /* @__PURE__ */ jsx("h3", { style: { margin: "0 0 10px 0", fontSize: "16px", fontWeight: 600, color: "#fff" }, children: "No Execution Artifacts Found" }),
56678
+ /* @__PURE__ */ jsx("p", { style: { margin: "0 0 16px 0", color: "#999", lineHeight: 1.5, fontSize: "13px" }, children: "The canvas is displayed, but execution data is missing. Run tests to generate execution artifacts." }),
56679
+ /* @__PURE__ */ jsxs(
56680
+ "div",
56681
+ {
56682
+ style: {
56683
+ background: "#1e1e1e",
56684
+ padding: "10px",
56685
+ borderRadius: "4px",
56686
+ fontFamily: "monospace",
56687
+ fontSize: "11px",
56688
+ textAlign: "left",
56689
+ color: "#d4d4d4",
56690
+ marginBottom: "12px"
56691
+ },
56692
+ children: [
56693
+ /* @__PURE__ */ jsx("div", { children: "# Save execution artifacts to:" }),
56694
+ /* @__PURE__ */ jsx("div", { style: { marginTop: "4px" }, children: "__executions__/*.spans.json" }),
56695
+ /* @__PURE__ */ jsx("div", { children: "packages/*/__executions__/*.spans.json" })
56696
+ ]
56697
+ }
56698
+ ),
56699
+ /* @__PURE__ */ jsx("p", { style: { margin: 0, color: "#666", fontSize: "11px", fontStyle: "italic" }, children: "Tip: Use exportExecutionArtifact() in your tests" })
56700
+ ] })
56701
+ }
56702
+ ) }),
53614
56703
  state.canvas ? /* @__PURE__ */ jsx("div", { style: { flex: "0 0 60%", position: "relative" }, children: /* @__PURE__ */ jsx(
53615
56704
  distExports.GraphRenderer,
53616
56705
  {
53617
56706
  canvas: state.canvas,
53618
- showMinimap: true,
56707
+ showMinimap: false,
53619
56708
  showControls: true,
53620
56709
  showBackground: true,
53621
56710
  backgroundVariant: "lines",
@@ -53642,75 +56731,7 @@ const ExecutionViewerPanel = ({
53642
56731
  ] })
53643
56732
  ] })
53644
56733
  }
53645
- ),
53646
- /* @__PURE__ */ jsxs("div", { style: { flex: "0 0 40%", borderLeft: "1px solid #333", display: "flex", flexDirection: "column" }, children: [
53647
- /* @__PURE__ */ jsxs("div", { style: { padding: "16px", borderBottom: "1px solid #333" }, children: [
53648
- /* @__PURE__ */ jsx("h3", { style: { margin: "0 0 8px 0", fontSize: "14px", fontWeight: 600 }, children: "Execution Events" }),
53649
- /* @__PURE__ */ jsxs("div", { style: { fontSize: "12px", color: "#999" }, children: [
53650
- "Span ",
53651
- state.currentSpanIndex + 1,
53652
- " of ",
53653
- ExecutionLoader.getSpans(state.execution || {}).length,
53654
- " • ",
53655
- "Event ",
53656
- state.currentEventIndex + 1
53657
- ] })
53658
- ] }),
53659
- /* @__PURE__ */ jsx("div", { style: { flex: 1, overflowY: "auto", padding: "16px" }, children: ExecutionLoader.getSpans(state.execution || {}).map((span, spanIdx) => {
53660
- var _a2;
53661
- return /* @__PURE__ */ jsxs("div", { style: { marginBottom: "24px" }, children: [
53662
- /* @__PURE__ */ jsx(
53663
- "div",
53664
- {
53665
- style: {
53666
- fontSize: "13px",
53667
- fontWeight: 600,
53668
- marginBottom: "8px",
53669
- color: spanIdx === state.currentSpanIndex ? "#3b82f6" : "#ccc"
53670
- },
53671
- children: span.name
53672
- }
53673
- ),
53674
- (_a2 = span.events) == null ? void 0 : _a2.map((event, eventIdx) => {
53675
- const isActive = spanIdx === state.currentSpanIndex && eventIdx === state.currentEventIndex;
53676
- const isPast = spanIdx < state.currentSpanIndex || spanIdx === state.currentSpanIndex && eventIdx < state.currentEventIndex;
53677
- return /* @__PURE__ */ jsxs(
53678
- "div",
53679
- {
53680
- onClick: () => {
53681
- const highlightedNodeId = mapEventToNodeId(event, state.canvas);
53682
- setState((prev) => ({
53683
- ...prev,
53684
- currentSpanIndex: spanIdx,
53685
- currentEventIndex: eventIdx,
53686
- highlightedNodeId
53687
- }));
53688
- },
53689
- style: {
53690
- padding: "8px",
53691
- marginBottom: "4px",
53692
- background: isActive ? "#3b82f610" : "transparent",
53693
- border: `1px solid ${isActive ? "#3b82f6" : "#333"}`,
53694
- borderRadius: "4px",
53695
- fontSize: "12px",
53696
- opacity: isPast ? 0.5 : 1,
53697
- cursor: "pointer"
53698
- },
53699
- children: [
53700
- /* @__PURE__ */ jsx("div", { style: { fontWeight: 600, color: "#fff", marginBottom: "4px" }, children: event.name }),
53701
- event.attributes && Object.keys(event.attributes).length > 0 && /* @__PURE__ */ jsx("div", { style: { color: "#999", fontFamily: "monospace", fontSize: "11px" }, children: Object.entries(event.attributes).map(([key, value]) => /* @__PURE__ */ jsxs("div", { children: [
53702
- key,
53703
- ": ",
53704
- JSON.stringify(value)
53705
- ] }, key)) })
53706
- ]
53707
- },
53708
- eventIdx
53709
- );
53710
- })
53711
- ] }, span.id);
53712
- }) })
53713
- ] })
56734
+ )
53714
56735
  ] }),
53715
56736
  state.metadata && /* @__PURE__ */ jsx(ExecutionStats, { metadata: state.metadata })
53716
56737
  ]