agent-skills-ts-sdk 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +105 -77
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -219,7 +219,7 @@ function skillPropertiesToDict(props) {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
//#endregion
|
|
222
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
222
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/identity.js
|
|
223
223
|
const ALIAS = Symbol.for("yaml.alias");
|
|
224
224
|
const DOC = Symbol.for("yaml.document");
|
|
225
225
|
const MAP = Symbol.for("yaml.map");
|
|
@@ -252,7 +252,7 @@ function isNode(node) {
|
|
|
252
252
|
const hasAnchor = (node) => (isScalar$1(node) || isCollection$1(node)) && !!node.anchor;
|
|
253
253
|
|
|
254
254
|
//#endregion
|
|
255
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
255
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/visit.js
|
|
256
256
|
const BREAK$1 = Symbol("break visit");
|
|
257
257
|
const SKIP$1 = Symbol("skip children");
|
|
258
258
|
const REMOVE$1 = Symbol("remove node");
|
|
@@ -438,7 +438,7 @@ function replaceNode(key, path, node) {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
//#endregion
|
|
441
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
441
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/doc/directives.js
|
|
442
442
|
const escapeChars = {
|
|
443
443
|
"!": "%21",
|
|
444
444
|
",": "%2C",
|
|
@@ -599,7 +599,7 @@ Directives.defaultYaml = {
|
|
|
599
599
|
Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
600
600
|
|
|
601
601
|
//#endregion
|
|
602
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
602
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/doc/anchors.js
|
|
603
603
|
/**
|
|
604
604
|
* Verify that the input string is a valid anchor.
|
|
605
605
|
*
|
|
@@ -638,6 +638,11 @@ function createNodeAnchors(doc, prefix) {
|
|
|
638
638
|
prevAnchors.add(anchor);
|
|
639
639
|
return anchor;
|
|
640
640
|
},
|
|
641
|
+
/**
|
|
642
|
+
* With circular references, the source node is only resolved after all
|
|
643
|
+
* of its child nodes are. This is why anchors are set only after all of
|
|
644
|
+
* the nodes have been created.
|
|
645
|
+
*/
|
|
641
646
|
setAnchors: () => {
|
|
642
647
|
for (const source of aliasObjects) {
|
|
643
648
|
const ref = sourceObjects.get(source);
|
|
@@ -654,7 +659,7 @@ function createNodeAnchors(doc, prefix) {
|
|
|
654
659
|
}
|
|
655
660
|
|
|
656
661
|
//#endregion
|
|
657
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
662
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/doc/applyReviver.js
|
|
658
663
|
/**
|
|
659
664
|
* Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
|
|
660
665
|
* in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the
|
|
@@ -692,7 +697,7 @@ function applyReviver(reviver, obj, key, val) {
|
|
|
692
697
|
}
|
|
693
698
|
|
|
694
699
|
//#endregion
|
|
695
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
700
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/toJS.js
|
|
696
701
|
/**
|
|
697
702
|
* Recursively convert any node or its contents to native JavaScript
|
|
698
703
|
*
|
|
@@ -726,7 +731,7 @@ function toJS(value, arg, ctx) {
|
|
|
726
731
|
}
|
|
727
732
|
|
|
728
733
|
//#endregion
|
|
729
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
734
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/Node.js
|
|
730
735
|
var NodeBase = class {
|
|
731
736
|
constructor(type) {
|
|
732
737
|
Object.defineProperty(this, NODE_TYPE, { value: type });
|
|
@@ -755,7 +760,7 @@ var NodeBase = class {
|
|
|
755
760
|
};
|
|
756
761
|
|
|
757
762
|
//#endregion
|
|
758
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
763
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/Alias.js
|
|
759
764
|
var Alias = class extends NodeBase {
|
|
760
765
|
constructor(source) {
|
|
761
766
|
super(ALIAS);
|
|
@@ -841,7 +846,7 @@ function getAliasCount(doc, node, anchors) {
|
|
|
841
846
|
}
|
|
842
847
|
|
|
843
848
|
//#endregion
|
|
844
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
849
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/Scalar.js
|
|
845
850
|
const isScalarValue = (value) => !value || typeof value !== "function" && typeof value !== "object";
|
|
846
851
|
var Scalar = class extends NodeBase {
|
|
847
852
|
constructor(value) {
|
|
@@ -862,7 +867,7 @@ Scalar.QUOTE_DOUBLE = "QUOTE_DOUBLE";
|
|
|
862
867
|
Scalar.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
863
868
|
|
|
864
869
|
//#endregion
|
|
865
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
870
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/doc/createNode.js
|
|
866
871
|
const defaultTagPrefix = "tag:yaml.org,2002:";
|
|
867
872
|
function findTagObject(value, tagName, tags) {
|
|
868
873
|
if (tagName) {
|
|
@@ -920,7 +925,7 @@ function createNode(value, tagName, ctx) {
|
|
|
920
925
|
}
|
|
921
926
|
|
|
922
927
|
//#endregion
|
|
923
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
928
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/Collection.js
|
|
924
929
|
function collectionFromPath(schema, path, value) {
|
|
925
930
|
let v = value;
|
|
926
931
|
for (let i = path.length - 1; i >= 0; --i) {
|
|
@@ -1034,7 +1039,7 @@ var Collection = class extends NodeBase {
|
|
|
1034
1039
|
};
|
|
1035
1040
|
|
|
1036
1041
|
//#endregion
|
|
1037
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1042
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringifyComment.js
|
|
1038
1043
|
/**
|
|
1039
1044
|
* Stringifies a comment.
|
|
1040
1045
|
*
|
|
@@ -1050,7 +1055,7 @@ function indentComment(comment, indent) {
|
|
|
1050
1055
|
const lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
1051
1056
|
|
|
1052
1057
|
//#endregion
|
|
1053
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1058
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/foldFlowLines.js
|
|
1054
1059
|
const FOLD_FLOW = "flow";
|
|
1055
1060
|
const FOLD_BLOCK = "block";
|
|
1056
1061
|
const FOLD_QUOTED = "quoted";
|
|
@@ -1161,7 +1166,7 @@ function consumeMoreIndentedLines(text, i, indent) {
|
|
|
1161
1166
|
}
|
|
1162
1167
|
|
|
1163
1168
|
//#endregion
|
|
1164
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1169
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringifyString.js
|
|
1165
1170
|
const getFoldOptions = (ctx, isBlock) => ({
|
|
1166
1171
|
indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
|
|
1167
1172
|
lineWidth: ctx.options.lineWidth,
|
|
@@ -1381,7 +1386,7 @@ function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
|
1381
1386
|
}
|
|
1382
1387
|
|
|
1383
1388
|
//#endregion
|
|
1384
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1389
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringify.js
|
|
1385
1390
|
function createStringifyContext(doc, options) {
|
|
1386
1391
|
const opt = Object.assign({
|
|
1387
1392
|
blockQuote: true,
|
|
@@ -1399,6 +1404,7 @@ function createStringifyContext(doc, options) {
|
|
|
1399
1404
|
nullStr: "null",
|
|
1400
1405
|
simpleKeys: false,
|
|
1401
1406
|
singleQuote: null,
|
|
1407
|
+
trailingComma: false,
|
|
1402
1408
|
trueStr: "true",
|
|
1403
1409
|
verifyAliasOrder: true
|
|
1404
1410
|
}, doc.schema.toStringOptions, options);
|
|
@@ -1481,7 +1487,7 @@ function stringify$2(item, ctx, onComment, onChompKeep) {
|
|
|
1481
1487
|
}
|
|
1482
1488
|
|
|
1483
1489
|
//#endregion
|
|
1484
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1490
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringifyPair.js
|
|
1485
1491
|
function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
1486
1492
|
const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
1487
1493
|
let keyComment = isNode(key) && key.comment || null;
|
|
@@ -1572,13 +1578,13 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
|
1572
1578
|
}
|
|
1573
1579
|
|
|
1574
1580
|
//#endregion
|
|
1575
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1581
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/log.js
|
|
1576
1582
|
function warn(logLevel, warning) {
|
|
1577
1583
|
if (logLevel === "debug" || logLevel === "warn") console.warn(warning);
|
|
1578
1584
|
}
|
|
1579
1585
|
|
|
1580
1586
|
//#endregion
|
|
1581
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1587
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
|
|
1582
1588
|
const MERGE_KEY = "<<";
|
|
1583
1589
|
const merge = {
|
|
1584
1590
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
@@ -1612,7 +1618,7 @@ function mergeValue(ctx, map, value) {
|
|
|
1612
1618
|
}
|
|
1613
1619
|
|
|
1614
1620
|
//#endregion
|
|
1615
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1621
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
|
|
1616
1622
|
function addPairToJSMap(ctx, map, { key, value }) {
|
|
1617
1623
|
if (isNode(key) && key.addToJSMap) key.addToJSMap(ctx, map, value);
|
|
1618
1624
|
else if (isMergeKey(ctx, key)) addMergeToJSMap(ctx, map, value);
|
|
@@ -1656,7 +1662,7 @@ function stringifyKey(key, jsKey, ctx) {
|
|
|
1656
1662
|
}
|
|
1657
1663
|
|
|
1658
1664
|
//#endregion
|
|
1659
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1665
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/Pair.js
|
|
1660
1666
|
function createPair(key, value, ctx) {
|
|
1661
1667
|
return new Pair(createNode(key, void 0, ctx), createNode(value, void 0, ctx));
|
|
1662
1668
|
}
|
|
@@ -1681,7 +1687,7 @@ var Pair = class Pair {
|
|
|
1681
1687
|
};
|
|
1682
1688
|
|
|
1683
1689
|
//#endregion
|
|
1684
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1690
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
|
|
1685
1691
|
function stringifyCollection(collection, ctx, options) {
|
|
1686
1692
|
return (ctx.inFlow ?? collection.flow ? stringifyFlowCollection : stringifyBlockCollection)(collection, ctx, options);
|
|
1687
1693
|
}
|
|
@@ -1761,9 +1767,13 @@ function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
|
1761
1767
|
}
|
|
1762
1768
|
if (comment) reqNewline = true;
|
|
1763
1769
|
let str = stringify$2(item, itemCtx, () => comment = null);
|
|
1770
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
|
|
1764
1771
|
if (i < items.length - 1) str += ",";
|
|
1772
|
+
else if (ctx.options.trailingComma) {
|
|
1773
|
+
if (ctx.options.lineWidth > 0) reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
|
|
1774
|
+
if (reqNewline) str += ",";
|
|
1775
|
+
}
|
|
1765
1776
|
if (comment) str += lineComment(str, itemIndent, commentString(comment));
|
|
1766
|
-
if (!reqNewline && (lines.length > linesAtValue || str.includes("\n"))) reqNewline = true;
|
|
1767
1777
|
lines.push(str);
|
|
1768
1778
|
linesAtValue = lines.length;
|
|
1769
1779
|
}
|
|
@@ -1790,7 +1800,7 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
|
|
|
1790
1800
|
}
|
|
1791
1801
|
|
|
1792
1802
|
//#endregion
|
|
1793
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1803
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/YAMLMap.js
|
|
1794
1804
|
function findPair(items, key) {
|
|
1795
1805
|
const k = isScalar$1(key) ? key.value : key;
|
|
1796
1806
|
for (const it of items) if (isPair(it)) {
|
|
@@ -1890,7 +1900,7 @@ var YAMLMap = class extends Collection {
|
|
|
1890
1900
|
};
|
|
1891
1901
|
|
|
1892
1902
|
//#endregion
|
|
1893
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1903
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/common/map.js
|
|
1894
1904
|
const map = {
|
|
1895
1905
|
collection: "map",
|
|
1896
1906
|
default: true,
|
|
@@ -1904,7 +1914,7 @@ const map = {
|
|
|
1904
1914
|
};
|
|
1905
1915
|
|
|
1906
1916
|
//#endregion
|
|
1907
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
1917
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/nodes/YAMLSeq.js
|
|
1908
1918
|
var YAMLSeq = class extends Collection {
|
|
1909
1919
|
static get tagName() {
|
|
1910
1920
|
return "tag:yaml.org,2002:seq";
|
|
@@ -2002,7 +2012,7 @@ function asItemIndex(key) {
|
|
|
2002
2012
|
}
|
|
2003
2013
|
|
|
2004
2014
|
//#endregion
|
|
2005
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2015
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/common/seq.js
|
|
2006
2016
|
const seq = {
|
|
2007
2017
|
collection: "seq",
|
|
2008
2018
|
default: true,
|
|
@@ -2016,7 +2026,7 @@ const seq = {
|
|
|
2016
2026
|
};
|
|
2017
2027
|
|
|
2018
2028
|
//#endregion
|
|
2019
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2029
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/common/string.js
|
|
2020
2030
|
const string = {
|
|
2021
2031
|
identify: (value) => typeof value === "string",
|
|
2022
2032
|
default: true,
|
|
@@ -2029,7 +2039,7 @@ const string = {
|
|
|
2029
2039
|
};
|
|
2030
2040
|
|
|
2031
2041
|
//#endregion
|
|
2032
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2042
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/common/null.js
|
|
2033
2043
|
const nullTag = {
|
|
2034
2044
|
identify: (value) => value == null,
|
|
2035
2045
|
createNode: () => new Scalar(null),
|
|
@@ -2041,7 +2051,7 @@ const nullTag = {
|
|
|
2041
2051
|
};
|
|
2042
2052
|
|
|
2043
2053
|
//#endregion
|
|
2044
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2054
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/core/bool.js
|
|
2045
2055
|
const boolTag = {
|
|
2046
2056
|
identify: (value) => typeof value === "boolean",
|
|
2047
2057
|
default: true,
|
|
@@ -2057,7 +2067,7 @@ const boolTag = {
|
|
|
2057
2067
|
};
|
|
2058
2068
|
|
|
2059
2069
|
//#endregion
|
|
2060
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2070
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringifyNumber.js
|
|
2061
2071
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2062
2072
|
if (typeof value === "bigint") return String(value);
|
|
2063
2073
|
const num = typeof value === "number" ? value : Number(value);
|
|
@@ -2076,7 +2086,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
|
2076
2086
|
}
|
|
2077
2087
|
|
|
2078
2088
|
//#endregion
|
|
2079
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2089
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/core/float.js
|
|
2080
2090
|
const floatNaN$1 = {
|
|
2081
2091
|
identify: (value) => typeof value === "number",
|
|
2082
2092
|
default: true,
|
|
@@ -2112,7 +2122,7 @@ const float$1 = {
|
|
|
2112
2122
|
};
|
|
2113
2123
|
|
|
2114
2124
|
//#endregion
|
|
2115
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2125
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/core/int.js
|
|
2116
2126
|
const intIdentify$2 = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
2117
2127
|
const intResolve$1 = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
|
|
2118
2128
|
function intStringify$1(node, radix, prefix) {
|
|
@@ -2148,7 +2158,7 @@ const intHex$1 = {
|
|
|
2148
2158
|
};
|
|
2149
2159
|
|
|
2150
2160
|
//#endregion
|
|
2151
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2161
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/core/schema.js
|
|
2152
2162
|
const schema$2 = [
|
|
2153
2163
|
map,
|
|
2154
2164
|
seq,
|
|
@@ -2164,7 +2174,7 @@ const schema$2 = [
|
|
|
2164
2174
|
];
|
|
2165
2175
|
|
|
2166
2176
|
//#endregion
|
|
2167
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2177
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/json/schema.js
|
|
2168
2178
|
function intIdentify$1(value) {
|
|
2169
2179
|
return typeof value === "bigint" || Number.isInteger(value);
|
|
2170
2180
|
}
|
|
@@ -2222,11 +2232,19 @@ const schema$1 = [map, seq].concat(jsonScalars, {
|
|
|
2222
2232
|
});
|
|
2223
2233
|
|
|
2224
2234
|
//#endregion
|
|
2225
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2235
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js
|
|
2226
2236
|
const binary = {
|
|
2227
2237
|
identify: (value) => value instanceof Uint8Array,
|
|
2228
2238
|
default: false,
|
|
2229
2239
|
tag: "tag:yaml.org,2002:binary",
|
|
2240
|
+
/**
|
|
2241
|
+
* Returns a Buffer in node and an Uint8Array in browsers
|
|
2242
|
+
*
|
|
2243
|
+
* To use the resulting buffer as an image, you'll want to do something like:
|
|
2244
|
+
*
|
|
2245
|
+
* const blob = new Blob([buffer], { type: 'image/jpeg' })
|
|
2246
|
+
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
2247
|
+
*/
|
|
2230
2248
|
resolve(src, onError) {
|
|
2231
2249
|
if (typeof atob === "function") {
|
|
2232
2250
|
const str = atob(src.replace(/[\n\r]/g, ""));
|
|
@@ -2264,7 +2282,7 @@ const binary = {
|
|
|
2264
2282
|
};
|
|
2265
2283
|
|
|
2266
2284
|
//#endregion
|
|
2267
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2285
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
|
|
2268
2286
|
function resolvePairs(seq, onError) {
|
|
2269
2287
|
if (isSeq(seq)) for (let i = 0; i < seq.items.length; ++i) {
|
|
2270
2288
|
let item = seq.items[i];
|
|
@@ -2316,7 +2334,7 @@ const pairs = {
|
|
|
2316
2334
|
};
|
|
2317
2335
|
|
|
2318
2336
|
//#endregion
|
|
2319
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2337
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
|
|
2320
2338
|
var YAMLOMap = class YAMLOMap extends YAMLSeq {
|
|
2321
2339
|
constructor() {
|
|
2322
2340
|
super();
|
|
@@ -2371,7 +2389,7 @@ const omap = {
|
|
|
2371
2389
|
};
|
|
2372
2390
|
|
|
2373
2391
|
//#endregion
|
|
2374
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2392
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
|
|
2375
2393
|
function boolStringify({ value, source }, ctx) {
|
|
2376
2394
|
if (source && (value ? trueTag : falseTag).test.test(source)) return source;
|
|
2377
2395
|
return value ? ctx.options.trueStr : ctx.options.falseStr;
|
|
@@ -2394,7 +2412,7 @@ const falseTag = {
|
|
|
2394
2412
|
};
|
|
2395
2413
|
|
|
2396
2414
|
//#endregion
|
|
2397
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2415
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js
|
|
2398
2416
|
const floatNaN = {
|
|
2399
2417
|
identify: (value) => typeof value === "number",
|
|
2400
2418
|
default: true,
|
|
@@ -2433,7 +2451,7 @@ const float = {
|
|
|
2433
2451
|
};
|
|
2434
2452
|
|
|
2435
2453
|
//#endregion
|
|
2436
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2454
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js
|
|
2437
2455
|
const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
2438
2456
|
function intResolve(str, offset, radix, { intAsBigInt }) {
|
|
2439
2457
|
const sign = str[0];
|
|
@@ -2502,7 +2520,7 @@ const intHex = {
|
|
|
2502
2520
|
};
|
|
2503
2521
|
|
|
2504
2522
|
//#endregion
|
|
2505
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2523
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
|
|
2506
2524
|
var YAMLSet = class YAMLSet extends YAMLMap {
|
|
2507
2525
|
constructor(schema) {
|
|
2508
2526
|
super(schema);
|
|
@@ -2564,7 +2582,7 @@ const set = {
|
|
|
2564
2582
|
};
|
|
2565
2583
|
|
|
2566
2584
|
//#endregion
|
|
2567
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2585
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
|
|
2568
2586
|
/** Internal types handle bigint as number, because TS can't figure it out. */
|
|
2569
2587
|
function parseSexagesimal(str, asBigInt) {
|
|
2570
2588
|
const sign = str[0];
|
|
@@ -2642,7 +2660,7 @@ const timestamp = {
|
|
|
2642
2660
|
};
|
|
2643
2661
|
|
|
2644
2662
|
//#endregion
|
|
2645
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2663
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js
|
|
2646
2664
|
const schema = [
|
|
2647
2665
|
map,
|
|
2648
2666
|
seq,
|
|
@@ -2668,7 +2686,7 @@ const schema = [
|
|
|
2668
2686
|
];
|
|
2669
2687
|
|
|
2670
2688
|
//#endregion
|
|
2671
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2689
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/tags.js
|
|
2672
2690
|
const schemas = new Map([
|
|
2673
2691
|
["core", schema$2],
|
|
2674
2692
|
["failsafe", [
|
|
@@ -2733,7 +2751,7 @@ function getTags(customTags, schemaName, addMergeTag) {
|
|
|
2733
2751
|
}
|
|
2734
2752
|
|
|
2735
2753
|
//#endregion
|
|
2736
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2754
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/schema/Schema.js
|
|
2737
2755
|
const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
|
|
2738
2756
|
var Schema = class Schema {
|
|
2739
2757
|
constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
@@ -2755,7 +2773,7 @@ var Schema = class Schema {
|
|
|
2755
2773
|
};
|
|
2756
2774
|
|
|
2757
2775
|
//#endregion
|
|
2758
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2776
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringifyDocument.js
|
|
2759
2777
|
function stringifyDocument(doc, options) {
|
|
2760
2778
|
const lines = [];
|
|
2761
2779
|
let hasDirectives = options.directives === true;
|
|
@@ -2811,7 +2829,7 @@ function stringifyDocument(doc, options) {
|
|
|
2811
2829
|
}
|
|
2812
2830
|
|
|
2813
2831
|
//#endregion
|
|
2814
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
2832
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/doc/Document.js
|
|
2815
2833
|
var Document = class Document {
|
|
2816
2834
|
constructor(value, replacer, options) {
|
|
2817
2835
|
/** A comment before this Document */
|
|
@@ -3077,7 +3095,7 @@ function assertCollection(contents) {
|
|
|
3077
3095
|
}
|
|
3078
3096
|
|
|
3079
3097
|
//#endregion
|
|
3080
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3098
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/errors.js
|
|
3081
3099
|
var YAMLError = class extends Error {
|
|
3082
3100
|
constructor(name, pos, code, message) {
|
|
3083
3101
|
super();
|
|
@@ -3125,7 +3143,7 @@ const prettifyError = (src, lc) => (error) => {
|
|
|
3125
3143
|
};
|
|
3126
3144
|
|
|
3127
3145
|
//#endregion
|
|
3128
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3146
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/resolve-props.js
|
|
3129
3147
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3130
3148
|
let spaceBefore = false;
|
|
3131
3149
|
let atNewline = startOnNewline;
|
|
@@ -3230,7 +3248,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
|
|
|
3230
3248
|
}
|
|
3231
3249
|
|
|
3232
3250
|
//#endregion
|
|
3233
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3251
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/util-contains-newline.js
|
|
3234
3252
|
function containsNewline(key) {
|
|
3235
3253
|
if (!key) return null;
|
|
3236
3254
|
switch (key.type) {
|
|
@@ -3257,7 +3275,7 @@ function containsNewline(key) {
|
|
|
3257
3275
|
}
|
|
3258
3276
|
|
|
3259
3277
|
//#endregion
|
|
3260
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3278
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js
|
|
3261
3279
|
function flowIndentCheck(indent, fc, onError) {
|
|
3262
3280
|
if (fc?.type === "flow-collection") {
|
|
3263
3281
|
const end = fc.end[0];
|
|
@@ -3266,7 +3284,7 @@ function flowIndentCheck(indent, fc, onError) {
|
|
|
3266
3284
|
}
|
|
3267
3285
|
|
|
3268
3286
|
//#endregion
|
|
3269
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3287
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/util-map-includes.js
|
|
3270
3288
|
function mapIncludes(ctx, items, search) {
|
|
3271
3289
|
const { uniqueKeys } = ctx.options;
|
|
3272
3290
|
if (uniqueKeys === false) return false;
|
|
@@ -3275,7 +3293,7 @@ function mapIncludes(ctx, items, search) {
|
|
|
3275
3293
|
}
|
|
3276
3294
|
|
|
3277
3295
|
//#endregion
|
|
3278
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3296
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/resolve-block-map.js
|
|
3279
3297
|
const startColMsg = "All mapping items must start at the same column";
|
|
3280
3298
|
function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, tag) {
|
|
3281
3299
|
const map = new (tag?.nodeClass ?? YAMLMap)(ctx.schema);
|
|
@@ -3351,7 +3369,7 @@ function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, ta
|
|
|
3351
3369
|
}
|
|
3352
3370
|
|
|
3353
3371
|
//#endregion
|
|
3354
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3372
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/resolve-block-seq.js
|
|
3355
3373
|
function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, tag) {
|
|
3356
3374
|
const seq = new (tag?.nodeClass ?? YAMLSeq)(ctx.schema);
|
|
3357
3375
|
if (ctx.atRoot) ctx.atRoot = false;
|
|
@@ -3388,7 +3406,7 @@ function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, ta
|
|
|
3388
3406
|
}
|
|
3389
3407
|
|
|
3390
3408
|
//#endregion
|
|
3391
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3409
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/resolve-end.js
|
|
3392
3410
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
3393
3411
|
let comment = "";
|
|
3394
3412
|
if (end) {
|
|
@@ -3424,7 +3442,7 @@ function resolveEnd(end, offset, reqSpace, onError) {
|
|
|
3424
3442
|
}
|
|
3425
3443
|
|
|
3426
3444
|
//#endregion
|
|
3427
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3445
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
|
|
3428
3446
|
const blockMsg = "Block collections are not allowed within flow collections";
|
|
3429
3447
|
const isBlock = (token) => token && (token.type === "block-map" || token.type === "block-seq");
|
|
3430
3448
|
function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {
|
|
@@ -3569,7 +3587,7 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
|
|
|
3569
3587
|
}
|
|
3570
3588
|
|
|
3571
3589
|
//#endregion
|
|
3572
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3590
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/compose-collection.js
|
|
3573
3591
|
function resolveCollection(CN, ctx, token, onError, tagName, tag) {
|
|
3574
3592
|
const coll = token.type === "block-map" ? resolveBlockMap(CN, ctx, token, onError, tag) : token.type === "block-seq" ? resolveBlockSeq(CN, ctx, token, onError, tag) : resolveFlowCollection(CN, ctx, token, onError, tag);
|
|
3575
3593
|
const Coll = coll.constructor;
|
|
@@ -3612,7 +3630,7 @@ function composeCollection(CN, ctx, token, props, onError) {
|
|
|
3612
3630
|
}
|
|
3613
3631
|
|
|
3614
3632
|
//#endregion
|
|
3615
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3633
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js
|
|
3616
3634
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
3617
3635
|
const start = scalar.offset;
|
|
3618
3636
|
const header = parseBlockScalarHeader(scalar, ctx.options.strict, onError);
|
|
@@ -3758,6 +3776,7 @@ function parseBlockScalarHeader({ offset, props }, strict, onError) {
|
|
|
3758
3776
|
onError(token, "UNEXPECTED_TOKEN", token.message);
|
|
3759
3777
|
length += token.source.length;
|
|
3760
3778
|
break;
|
|
3779
|
+
/* istanbul ignore next should not happen */
|
|
3761
3780
|
default: {
|
|
3762
3781
|
onError(token, "UNEXPECTED_TOKEN", `Unexpected token in block scalar header: ${token.type}`);
|
|
3763
3782
|
const ts = token.source;
|
|
@@ -3784,7 +3803,7 @@ function splitLines(source) {
|
|
|
3784
3803
|
}
|
|
3785
3804
|
|
|
3786
3805
|
//#endregion
|
|
3787
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
3806
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js
|
|
3788
3807
|
function resolveFlowScalar(scalar, strict, onError) {
|
|
3789
3808
|
const { offset, type, source, end } = scalar;
|
|
3790
3809
|
let _type;
|
|
@@ -3803,6 +3822,7 @@ function resolveFlowScalar(scalar, strict, onError) {
|
|
|
3803
3822
|
_type = Scalar.QUOTE_DOUBLE;
|
|
3804
3823
|
value = doubleQuotedValue(source, _onError);
|
|
3805
3824
|
break;
|
|
3825
|
+
/* istanbul ignore next should not happen */
|
|
3806
3826
|
default:
|
|
3807
3827
|
onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type}`);
|
|
3808
3828
|
return {
|
|
@@ -3832,6 +3852,7 @@ function resolveFlowScalar(scalar, strict, onError) {
|
|
|
3832
3852
|
function plainValue(source, onError) {
|
|
3833
3853
|
let badChar = "";
|
|
3834
3854
|
switch (source[0]) {
|
|
3855
|
+
/* istanbul ignore next should not happen */
|
|
3835
3856
|
case " ":
|
|
3836
3857
|
badChar = "a tab character";
|
|
3837
3858
|
break;
|
|
@@ -3986,7 +4007,7 @@ function parseCharCode(source, offset, length, onError) {
|
|
|
3986
4007
|
}
|
|
3987
4008
|
|
|
3988
4009
|
//#endregion
|
|
3989
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4010
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/compose-scalar.js
|
|
3990
4011
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
3991
4012
|
const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar(ctx, token, onError) : resolveFlowScalar(token, ctx.options.strict, onError);
|
|
3992
4013
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
@@ -4039,7 +4060,7 @@ function findScalarTagByTest({ atKey, directives, schema }, value, token, onErro
|
|
|
4039
4060
|
}
|
|
4040
4061
|
|
|
4041
4062
|
//#endregion
|
|
4042
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4063
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js
|
|
4043
4064
|
function emptyScalarPosition(offset, before, pos) {
|
|
4044
4065
|
if (before) {
|
|
4045
4066
|
pos ?? (pos = before.length);
|
|
@@ -4064,7 +4085,7 @@ function emptyScalarPosition(offset, before, pos) {
|
|
|
4064
4085
|
}
|
|
4065
4086
|
|
|
4066
4087
|
//#endregion
|
|
4067
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4088
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/compose-node.js
|
|
4068
4089
|
const CN = {
|
|
4069
4090
|
composeNode,
|
|
4070
4091
|
composeEmptyNode
|
|
@@ -4089,14 +4110,18 @@ function composeNode(ctx, token, props, onError) {
|
|
|
4089
4110
|
case "block-map":
|
|
4090
4111
|
case "block-seq":
|
|
4091
4112
|
case "flow-collection":
|
|
4092
|
-
|
|
4093
|
-
|
|
4113
|
+
try {
|
|
4114
|
+
node = composeCollection(CN, ctx, token, props, onError);
|
|
4115
|
+
if (anchor) node.anchor = anchor.source.substring(1);
|
|
4116
|
+
} catch (error) {
|
|
4117
|
+
onError(token, "RESOURCE_EXHAUSTION", error instanceof Error ? error.message : String(error));
|
|
4118
|
+
}
|
|
4094
4119
|
break;
|
|
4095
4120
|
default:
|
|
4096
4121
|
onError(token, "UNEXPECTED_TOKEN", token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`);
|
|
4097
|
-
node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError);
|
|
4098
4122
|
isSrcToken = false;
|
|
4099
4123
|
}
|
|
4124
|
+
node ?? (node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError));
|
|
4100
4125
|
if (anchor && node.anchor === "") onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
4101
4126
|
if (atKey && ctx.options.stringKeys && (!isScalar$1(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) onError(tag ?? token, "NON_STRING_KEY", "With stringKeys, all keys must be strings");
|
|
4102
4127
|
if (spaceBefore) node.spaceBefore = true;
|
|
@@ -4139,7 +4164,7 @@ function composeAlias({ options }, { offset, source, end }, onError) {
|
|
|
4139
4164
|
}
|
|
4140
4165
|
|
|
4141
4166
|
//#endregion
|
|
4142
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4167
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/compose-doc.js
|
|
4143
4168
|
function composeDoc(options, directives, { offset, start, value, end }, onError) {
|
|
4144
4169
|
const doc = new Document(void 0, Object.assign({ _directives: directives }, options));
|
|
4145
4170
|
const ctx = {
|
|
@@ -4174,7 +4199,7 @@ function composeDoc(options, directives, { offset, start, value, end }, onError)
|
|
|
4174
4199
|
}
|
|
4175
4200
|
|
|
4176
4201
|
//#endregion
|
|
4177
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4202
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/compose/composer.js
|
|
4178
4203
|
function getErrorPos(src) {
|
|
4179
4204
|
if (typeof src === "number") return [src, src + 1];
|
|
4180
4205
|
if (Array.isArray(src)) return src.length === 2 ? src : [src[0], src[1]];
|
|
@@ -4361,7 +4386,7 @@ var Composer = class {
|
|
|
4361
4386
|
};
|
|
4362
4387
|
|
|
4363
4388
|
//#endregion
|
|
4364
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4389
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/parse/cst-scalar.js
|
|
4365
4390
|
function resolveAsScalar(token, strict = true, onError) {
|
|
4366
4391
|
if (token) {
|
|
4367
4392
|
const _onError = (pos, code, message) => {
|
|
@@ -4620,7 +4645,7 @@ function setFlowScalarValue(token, source, type) {
|
|
|
4620
4645
|
}
|
|
4621
4646
|
|
|
4622
4647
|
//#endregion
|
|
4623
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4648
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/parse/cst-stringify.js
|
|
4624
4649
|
/**
|
|
4625
4650
|
* Stringify a CST document, token, or collection item
|
|
4626
4651
|
*
|
|
@@ -4669,7 +4694,7 @@ function stringifyItem({ start, key, sep, value }) {
|
|
|
4669
4694
|
}
|
|
4670
4695
|
|
|
4671
4696
|
//#endregion
|
|
4672
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4697
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/parse/cst-visit.js
|
|
4673
4698
|
const BREAK = Symbol("break visit");
|
|
4674
4699
|
const SKIP = Symbol("skip children");
|
|
4675
4700
|
const REMOVE = Symbol("remove item");
|
|
@@ -4758,7 +4783,7 @@ function _visit(path, item, visitor) {
|
|
|
4758
4783
|
}
|
|
4759
4784
|
|
|
4760
4785
|
//#endregion
|
|
4761
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4786
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/parse/cst.js
|
|
4762
4787
|
var cst_exports = /* @__PURE__ */ __exportAll({
|
|
4763
4788
|
BOM: () => "",
|
|
4764
4789
|
DOCUMENT: () => "",
|
|
@@ -4835,7 +4860,7 @@ function tokenType(source) {
|
|
|
4835
4860
|
}
|
|
4836
4861
|
|
|
4837
4862
|
//#endregion
|
|
4838
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
4863
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/parse/lexer.js
|
|
4839
4864
|
function isEmpty(ch) {
|
|
4840
4865
|
switch (ch) {
|
|
4841
4866
|
case void 0:
|
|
@@ -5351,7 +5376,7 @@ var Lexer = class {
|
|
|
5351
5376
|
};
|
|
5352
5377
|
|
|
5353
5378
|
//#endregion
|
|
5354
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
5379
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/parse/line-counter.js
|
|
5355
5380
|
/**
|
|
5356
5381
|
* Tracks newlines during parsing in order to provide an efficient API for
|
|
5357
5382
|
* determining the one-indexed `{ line, col }` position for any offset
|
|
@@ -5396,7 +5421,7 @@ var LineCounter = class {
|
|
|
5396
5421
|
};
|
|
5397
5422
|
|
|
5398
5423
|
//#endregion
|
|
5399
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
5424
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/parse/parser.js
|
|
5400
5425
|
function includesToken(list, type) {
|
|
5401
5426
|
for (let i = 0; i < list.length; ++i) if (list[i].type === type) return true;
|
|
5402
5427
|
return false;
|
|
@@ -5428,6 +5453,7 @@ function getPrevProps(parent) {
|
|
|
5428
5453
|
return it.sep ?? it.start;
|
|
5429
5454
|
}
|
|
5430
5455
|
case "block-seq": return parent.items[parent.items.length - 1].start;
|
|
5456
|
+
/* istanbul ignore next should not happen */
|
|
5431
5457
|
default: return [];
|
|
5432
5458
|
}
|
|
5433
5459
|
}
|
|
@@ -5679,6 +5705,7 @@ var Parser = class {
|
|
|
5679
5705
|
});
|
|
5680
5706
|
return;
|
|
5681
5707
|
}
|
|
5708
|
+
/* istanbul ignore next should not happen */
|
|
5682
5709
|
default:
|
|
5683
5710
|
yield* this.pop();
|
|
5684
5711
|
yield* this.pop(token);
|
|
@@ -5796,6 +5823,7 @@ var Parser = class {
|
|
|
5796
5823
|
}
|
|
5797
5824
|
yield* this.pop();
|
|
5798
5825
|
break;
|
|
5826
|
+
/* istanbul ignore next should not happen */
|
|
5799
5827
|
default:
|
|
5800
5828
|
yield* this.pop();
|
|
5801
5829
|
yield* this.step();
|
|
@@ -6246,7 +6274,7 @@ var Parser = class {
|
|
|
6246
6274
|
};
|
|
6247
6275
|
|
|
6248
6276
|
//#endregion
|
|
6249
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
6277
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/public-api.js
|
|
6250
6278
|
function parseOptions(options) {
|
|
6251
6279
|
const prettyErrors = options.prettyErrors !== false;
|
|
6252
6280
|
return {
|
|
@@ -6321,7 +6349,7 @@ function stringify(value, replacer, options) {
|
|
|
6321
6349
|
}
|
|
6322
6350
|
|
|
6323
6351
|
//#endregion
|
|
6324
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
6352
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/index.js
|
|
6325
6353
|
var dist_exports = /* @__PURE__ */ __exportAll({
|
|
6326
6354
|
Alias: () => Alias,
|
|
6327
6355
|
CST: () => cst_exports,
|
|
@@ -6355,7 +6383,7 @@ var dist_exports = /* @__PURE__ */ __exportAll({
|
|
|
6355
6383
|
});
|
|
6356
6384
|
|
|
6357
6385
|
//#endregion
|
|
6358
|
-
//#region ../../node_modules/.pnpm/yaml@2.8.
|
|
6386
|
+
//#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/index.js
|
|
6359
6387
|
var browser_default = dist_exports;
|
|
6360
6388
|
|
|
6361
6389
|
//#endregion
|