@qwik.dev/router 2.0.0-beta.7 → 2.0.0-beta.9
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/lib/index.qwik.cjs +44 -17
- package/lib/index.qwik.mjs +45 -18
- package/lib/middleware/azure-swa/index.mjs +4 -3
- package/lib/ssg/node.cjs +2 -0
- package/lib/ssg/node.mjs +2 -0
- package/lib/vite/index.cjs +558 -311
- package/lib/vite/index.mjs +558 -311
- package/package.json +15 -17
package/lib/vite/index.mjs
CHANGED
|
@@ -268,9 +268,9 @@ var init_unist_util_visit = __esm({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
|
|
271
|
-
// node_modules/.pnpm/yaml@2.
|
|
271
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/identity.js
|
|
272
272
|
var require_identity = __commonJS({
|
|
273
|
-
"node_modules/.pnpm/yaml@2.
|
|
273
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/identity.js"(exports) {
|
|
274
274
|
"use strict";
|
|
275
275
|
var ALIAS = Symbol.for("yaml.alias");
|
|
276
276
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -325,9 +325,9 @@ var require_identity = __commonJS({
|
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/yaml@2.
|
|
328
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/visit.js
|
|
329
329
|
var require_visit = __commonJS({
|
|
330
|
-
"node_modules/.pnpm/yaml@2.
|
|
330
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/visit.js"(exports) {
|
|
331
331
|
"use strict";
|
|
332
332
|
var identity = require_identity();
|
|
333
333
|
var BREAK = Symbol("break visit");
|
|
@@ -484,9 +484,9 @@ var require_visit = __commonJS({
|
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
486
|
|
|
487
|
-
// node_modules/.pnpm/yaml@2.
|
|
487
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/directives.js
|
|
488
488
|
var require_directives = __commonJS({
|
|
489
|
-
"node_modules/.pnpm/yaml@2.
|
|
489
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/directives.js"(exports) {
|
|
490
490
|
"use strict";
|
|
491
491
|
var identity = require_identity();
|
|
492
492
|
var visit2 = require_visit();
|
|
@@ -655,9 +655,9 @@ var require_directives = __commonJS({
|
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
|
|
658
|
-
// node_modules/.pnpm/yaml@2.
|
|
658
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/anchors.js
|
|
659
659
|
var require_anchors = __commonJS({
|
|
660
|
-
"node_modules/.pnpm/yaml@2.
|
|
660
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/anchors.js"(exports) {
|
|
661
661
|
"use strict";
|
|
662
662
|
var identity = require_identity();
|
|
663
663
|
var visit2 = require_visit();
|
|
@@ -726,9 +726,9 @@ var require_anchors = __commonJS({
|
|
|
726
726
|
}
|
|
727
727
|
});
|
|
728
728
|
|
|
729
|
-
// node_modules/.pnpm/yaml@2.
|
|
729
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/applyReviver.js
|
|
730
730
|
var require_applyReviver = __commonJS({
|
|
731
|
-
"node_modules/.pnpm/yaml@2.
|
|
731
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
|
|
732
732
|
"use strict";
|
|
733
733
|
function applyReviver(reviver, obj, key, val) {
|
|
734
734
|
if (val && typeof val === "object") {
|
|
@@ -776,9 +776,9 @@ var require_applyReviver = __commonJS({
|
|
|
776
776
|
}
|
|
777
777
|
});
|
|
778
778
|
|
|
779
|
-
// node_modules/.pnpm/yaml@2.
|
|
779
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/toJS.js
|
|
780
780
|
var require_toJS = __commonJS({
|
|
781
|
-
"node_modules/.pnpm/yaml@2.
|
|
781
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/toJS.js"(exports) {
|
|
782
782
|
"use strict";
|
|
783
783
|
var identity = require_identity();
|
|
784
784
|
function toJS(value2, arg, ctx) {
|
|
@@ -806,9 +806,9 @@ var require_toJS = __commonJS({
|
|
|
806
806
|
}
|
|
807
807
|
});
|
|
808
808
|
|
|
809
|
-
// node_modules/.pnpm/yaml@2.
|
|
809
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Node.js
|
|
810
810
|
var require_Node = __commonJS({
|
|
811
|
-
"node_modules/.pnpm/yaml@2.
|
|
811
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Node.js"(exports) {
|
|
812
812
|
"use strict";
|
|
813
813
|
var applyReviver = require_applyReviver();
|
|
814
814
|
var identity = require_identity();
|
|
@@ -847,9 +847,9 @@ var require_Node = __commonJS({
|
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
|
|
850
|
-
// node_modules/.pnpm/yaml@2.
|
|
850
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Alias.js
|
|
851
851
|
var require_Alias = __commonJS({
|
|
852
|
-
"node_modules/.pnpm/yaml@2.
|
|
852
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Alias.js"(exports) {
|
|
853
853
|
"use strict";
|
|
854
854
|
var anchors = require_anchors();
|
|
855
855
|
var visit2 = require_visit();
|
|
@@ -949,9 +949,9 @@ var require_Alias = __commonJS({
|
|
|
949
949
|
}
|
|
950
950
|
});
|
|
951
951
|
|
|
952
|
-
// node_modules/.pnpm/yaml@2.
|
|
952
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Scalar.js
|
|
953
953
|
var require_Scalar = __commonJS({
|
|
954
|
-
"node_modules/.pnpm/yaml@2.
|
|
954
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
|
|
955
955
|
"use strict";
|
|
956
956
|
var identity = require_identity();
|
|
957
957
|
var Node = require_Node();
|
|
@@ -979,9 +979,9 @@ var require_Scalar = __commonJS({
|
|
|
979
979
|
}
|
|
980
980
|
});
|
|
981
981
|
|
|
982
|
-
// node_modules/.pnpm/yaml@2.
|
|
982
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/createNode.js
|
|
983
983
|
var require_createNode = __commonJS({
|
|
984
|
-
"node_modules/.pnpm/yaml@2.
|
|
984
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/createNode.js"(exports) {
|
|
985
985
|
"use strict";
|
|
986
986
|
var Alias = require_Alias();
|
|
987
987
|
var identity = require_identity();
|
|
@@ -1059,9 +1059,9 @@ var require_createNode = __commonJS({
|
|
|
1059
1059
|
}
|
|
1060
1060
|
});
|
|
1061
1061
|
|
|
1062
|
-
// node_modules/.pnpm/yaml@2.
|
|
1062
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Collection.js
|
|
1063
1063
|
var require_Collection = __commonJS({
|
|
1064
|
-
"node_modules/.pnpm/yaml@2.
|
|
1064
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Collection.js"(exports) {
|
|
1065
1065
|
"use strict";
|
|
1066
1066
|
var createNode = require_createNode();
|
|
1067
1067
|
var identity = require_identity();
|
|
@@ -1196,16 +1196,15 @@ var require_Collection = __commonJS({
|
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
};
|
|
1199
|
-
Collection.maxFlowStringSingleLineLength = 60;
|
|
1200
1199
|
exports.Collection = Collection;
|
|
1201
1200
|
exports.collectionFromPath = collectionFromPath;
|
|
1202
1201
|
exports.isEmptyPath = isEmptyPath;
|
|
1203
1202
|
}
|
|
1204
1203
|
});
|
|
1205
1204
|
|
|
1206
|
-
// node_modules/.pnpm/yaml@2.
|
|
1205
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
1207
1206
|
var require_stringifyComment = __commonJS({
|
|
1208
|
-
"node_modules/.pnpm/yaml@2.
|
|
1207
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
1209
1208
|
"use strict";
|
|
1210
1209
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
1211
1210
|
function indentComment(comment, indent2) {
|
|
@@ -1220,9 +1219,9 @@ var require_stringifyComment = __commonJS({
|
|
|
1220
1219
|
}
|
|
1221
1220
|
});
|
|
1222
1221
|
|
|
1223
|
-
// node_modules/.pnpm/yaml@2.
|
|
1222
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
1224
1223
|
var require_foldFlowLines = __commonJS({
|
|
1225
|
-
"node_modules/.pnpm/yaml@2.
|
|
1224
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
|
|
1226
1225
|
"use strict";
|
|
1227
1226
|
var FOLD_FLOW = "flow";
|
|
1228
1227
|
var FOLD_BLOCK = "block";
|
|
@@ -1230,6 +1229,8 @@ var require_foldFlowLines = __commonJS({
|
|
|
1230
1229
|
function foldFlowLines(text3, indent2, mode = "flow", { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) {
|
|
1231
1230
|
if (!lineWidth || lineWidth < 0)
|
|
1232
1231
|
return text3;
|
|
1232
|
+
if (lineWidth < minContentWidth)
|
|
1233
|
+
minContentWidth = 0;
|
|
1233
1234
|
const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent2.length);
|
|
1234
1235
|
if (text3.length <= endStep)
|
|
1235
1236
|
return text3;
|
|
@@ -1354,9 +1355,9 @@ ${indent2}${text3.slice(fold + 1, end2)}`;
|
|
|
1354
1355
|
}
|
|
1355
1356
|
});
|
|
1356
1357
|
|
|
1357
|
-
// node_modules/.pnpm/yaml@2.
|
|
1358
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1358
1359
|
var require_stringifyString = __commonJS({
|
|
1359
|
-
"node_modules/.pnpm/yaml@2.
|
|
1360
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
|
|
1360
1361
|
"use strict";
|
|
1361
1362
|
var Scalar = require_Scalar();
|
|
1362
1363
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1546,21 +1547,29 @@ ${indent2}`) + "'";
|
|
|
1546
1547
|
start = start.replace(/\n+/g, `$&${indent2}`);
|
|
1547
1548
|
}
|
|
1548
1549
|
const indentSize = indent2 ? "2" : "1";
|
|
1549
|
-
let header = (
|
|
1550
|
+
let header = (startWithSpace ? indentSize : "") + chomp;
|
|
1550
1551
|
if (comment) {
|
|
1551
1552
|
header += " " + commentString(comment.replace(/ ?[\r\n]+/g, " "));
|
|
1552
1553
|
if (onComment)
|
|
1553
1554
|
onComment();
|
|
1554
1555
|
}
|
|
1555
|
-
if (literal2) {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1556
|
+
if (!literal2) {
|
|
1557
|
+
const foldedValue = value2.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent2}`);
|
|
1558
|
+
let literalFallback = false;
|
|
1559
|
+
const foldOptions = getFoldOptions(ctx, true);
|
|
1560
|
+
if (blockQuote !== "folded" && type !== Scalar.Scalar.BLOCK_FOLDED) {
|
|
1561
|
+
foldOptions.onOverflow = () => {
|
|
1562
|
+
literalFallback = true;
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
const body = foldFlowLines.foldFlowLines(`${start}${foldedValue}${end}`, indent2, foldFlowLines.FOLD_BLOCK, foldOptions);
|
|
1566
|
+
if (!literalFallback)
|
|
1567
|
+
return `>${header}
|
|
1563
1568
|
${indent2}${body}`;
|
|
1569
|
+
}
|
|
1570
|
+
value2 = value2.replace(/\n+/g, `$&${indent2}`);
|
|
1571
|
+
return `|${header}
|
|
1572
|
+
${indent2}${start}${value2}${end}`;
|
|
1564
1573
|
}
|
|
1565
1574
|
function plainString(item, ctx, onComment, onChompKeep) {
|
|
1566
1575
|
const { type, value: value2 } = item;
|
|
@@ -1632,9 +1641,9 @@ ${indent2}`);
|
|
|
1632
1641
|
}
|
|
1633
1642
|
});
|
|
1634
1643
|
|
|
1635
|
-
// node_modules/.pnpm/yaml@2.
|
|
1644
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringify.js
|
|
1636
1645
|
var require_stringify = __commonJS({
|
|
1637
|
-
"node_modules/.pnpm/yaml@2.
|
|
1646
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringify.js"(exports) {
|
|
1638
1647
|
"use strict";
|
|
1639
1648
|
var anchors = require_anchors();
|
|
1640
1649
|
var identity = require_identity();
|
|
@@ -1692,10 +1701,15 @@ var require_stringify = __commonJS({
|
|
|
1692
1701
|
let obj;
|
|
1693
1702
|
if (identity.isScalar(item)) {
|
|
1694
1703
|
obj = item.value;
|
|
1695
|
-
|
|
1704
|
+
let match = tags.filter((t) => {
|
|
1696
1705
|
var _a2;
|
|
1697
1706
|
return (_a2 = t.identify) == null ? void 0 : _a2.call(t, obj);
|
|
1698
1707
|
});
|
|
1708
|
+
if (match.length > 1) {
|
|
1709
|
+
const testMatch = match.filter((t) => t.test);
|
|
1710
|
+
if (testMatch.length > 0)
|
|
1711
|
+
match = testMatch;
|
|
1712
|
+
}
|
|
1699
1713
|
tagObj = match.find((t) => t.format === item.format) ?? match.find((t) => !t.format);
|
|
1700
1714
|
} else {
|
|
1701
1715
|
obj = item;
|
|
@@ -1756,9 +1770,9 @@ ${ctx.indent}${str}`;
|
|
|
1756
1770
|
}
|
|
1757
1771
|
});
|
|
1758
1772
|
|
|
1759
|
-
// node_modules/.pnpm/yaml@2.
|
|
1773
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1760
1774
|
var require_stringifyPair = __commonJS({
|
|
1761
|
-
"node_modules/.pnpm/yaml@2.
|
|
1775
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
|
|
1762
1776
|
"use strict";
|
|
1763
1777
|
var identity = require_identity();
|
|
1764
1778
|
var Scalar = require_Scalar();
|
|
@@ -1889,9 +1903,9 @@ ${ctx.indent}`;
|
|
|
1889
1903
|
}
|
|
1890
1904
|
});
|
|
1891
1905
|
|
|
1892
|
-
// node_modules/.pnpm/yaml@2.
|
|
1906
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/log.js
|
|
1893
1907
|
var require_log = __commonJS({
|
|
1894
|
-
"node_modules/.pnpm/yaml@2.
|
|
1908
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/log.js"(exports) {
|
|
1895
1909
|
"use strict";
|
|
1896
1910
|
function debug(logLevel, ...messages2) {
|
|
1897
1911
|
if (logLevel === "debug")
|
|
@@ -1910,28 +1924,78 @@ var require_log = __commonJS({
|
|
|
1910
1924
|
}
|
|
1911
1925
|
});
|
|
1912
1926
|
|
|
1913
|
-
// node_modules/.pnpm/yaml@2.
|
|
1927
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1928
|
+
var require_merge = __commonJS({
|
|
1929
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
|
|
1930
|
+
"use strict";
|
|
1931
|
+
var identity = require_identity();
|
|
1932
|
+
var Scalar = require_Scalar();
|
|
1933
|
+
var MERGE_KEY = "<<";
|
|
1934
|
+
var merge2 = {
|
|
1935
|
+
identify: (value2) => value2 === MERGE_KEY || typeof value2 === "symbol" && value2.description === MERGE_KEY,
|
|
1936
|
+
default: "key",
|
|
1937
|
+
tag: "tag:yaml.org,2002:merge",
|
|
1938
|
+
test: /^<<$/,
|
|
1939
|
+
resolve: () => Object.assign(new Scalar.Scalar(Symbol(MERGE_KEY)), {
|
|
1940
|
+
addToJSMap: addMergeToJSMap
|
|
1941
|
+
}),
|
|
1942
|
+
stringify: () => MERGE_KEY
|
|
1943
|
+
};
|
|
1944
|
+
var isMergeKey = (ctx, key) => (merge2.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge2.identify(key.value)) && (ctx == null ? void 0 : ctx.doc.schema.tags.some((tag2) => tag2.tag === merge2.tag && tag2.default));
|
|
1945
|
+
function addMergeToJSMap(ctx, map4, value2) {
|
|
1946
|
+
value2 = ctx && identity.isAlias(value2) ? value2.resolve(ctx.doc) : value2;
|
|
1947
|
+
if (identity.isSeq(value2))
|
|
1948
|
+
for (const it of value2.items)
|
|
1949
|
+
mergeValue(ctx, map4, it);
|
|
1950
|
+
else if (Array.isArray(value2))
|
|
1951
|
+
for (const it of value2)
|
|
1952
|
+
mergeValue(ctx, map4, it);
|
|
1953
|
+
else
|
|
1954
|
+
mergeValue(ctx, map4, value2);
|
|
1955
|
+
}
|
|
1956
|
+
function mergeValue(ctx, map4, value2) {
|
|
1957
|
+
const source = ctx && identity.isAlias(value2) ? value2.resolve(ctx.doc) : value2;
|
|
1958
|
+
if (!identity.isMap(source))
|
|
1959
|
+
throw new Error("Merge sources must be maps or map aliases");
|
|
1960
|
+
const srcMap = source.toJSON(null, ctx, Map);
|
|
1961
|
+
for (const [key, value3] of srcMap) {
|
|
1962
|
+
if (map4 instanceof Map) {
|
|
1963
|
+
if (!map4.has(key))
|
|
1964
|
+
map4.set(key, value3);
|
|
1965
|
+
} else if (map4 instanceof Set) {
|
|
1966
|
+
map4.add(key);
|
|
1967
|
+
} else if (!Object.prototype.hasOwnProperty.call(map4, key)) {
|
|
1968
|
+
Object.defineProperty(map4, key, {
|
|
1969
|
+
value: value3,
|
|
1970
|
+
writable: true,
|
|
1971
|
+
enumerable: true,
|
|
1972
|
+
configurable: true
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
return map4;
|
|
1977
|
+
}
|
|
1978
|
+
exports.addMergeToJSMap = addMergeToJSMap;
|
|
1979
|
+
exports.isMergeKey = isMergeKey;
|
|
1980
|
+
exports.merge = merge2;
|
|
1981
|
+
}
|
|
1982
|
+
});
|
|
1983
|
+
|
|
1984
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1914
1985
|
var require_addPairToJSMap = __commonJS({
|
|
1915
|
-
"node_modules/.pnpm/yaml@2.
|
|
1986
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
1916
1987
|
"use strict";
|
|
1917
1988
|
var log = require_log();
|
|
1989
|
+
var merge2 = require_merge();
|
|
1918
1990
|
var stringify2 = require_stringify();
|
|
1919
1991
|
var identity = require_identity();
|
|
1920
|
-
var Scalar = require_Scalar();
|
|
1921
1992
|
var toJS = require_toJS();
|
|
1922
|
-
var MERGE_KEY = "<<";
|
|
1923
1993
|
function addPairToJSMap(ctx, map4, { key, value: value2 }) {
|
|
1924
|
-
if ((
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
else if (Array.isArray(value2))
|
|
1930
|
-
for (const it of value2)
|
|
1931
|
-
mergeToJSMap(ctx, map4, it);
|
|
1932
|
-
else
|
|
1933
|
-
mergeToJSMap(ctx, map4, value2);
|
|
1934
|
-
} else {
|
|
1994
|
+
if (identity.isNode(key) && key.addToJSMap)
|
|
1995
|
+
key.addToJSMap(ctx, map4, value2);
|
|
1996
|
+
else if (merge2.isMergeKey(ctx, key))
|
|
1997
|
+
merge2.addMergeToJSMap(ctx, map4, value2);
|
|
1998
|
+
else {
|
|
1935
1999
|
const jsKey = toJS.toJS(key, "", ctx);
|
|
1936
2000
|
if (map4 instanceof Map) {
|
|
1937
2001
|
map4.set(jsKey, toJS.toJS(value2, jsKey, ctx));
|
|
@@ -1953,29 +2017,6 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1953
2017
|
}
|
|
1954
2018
|
return map4;
|
|
1955
2019
|
}
|
|
1956
|
-
var isMergeKey = (key) => key === MERGE_KEY || identity.isScalar(key) && key.value === MERGE_KEY && (!key.type || key.type === Scalar.Scalar.PLAIN);
|
|
1957
|
-
function mergeToJSMap(ctx, map4, value2) {
|
|
1958
|
-
const source = ctx && identity.isAlias(value2) ? value2.resolve(ctx.doc) : value2;
|
|
1959
|
-
if (!identity.isMap(source))
|
|
1960
|
-
throw new Error("Merge sources must be maps or map aliases");
|
|
1961
|
-
const srcMap = source.toJSON(null, ctx, Map);
|
|
1962
|
-
for (const [key, value3] of srcMap) {
|
|
1963
|
-
if (map4 instanceof Map) {
|
|
1964
|
-
if (!map4.has(key))
|
|
1965
|
-
map4.set(key, value3);
|
|
1966
|
-
} else if (map4 instanceof Set) {
|
|
1967
|
-
map4.add(key);
|
|
1968
|
-
} else if (!Object.prototype.hasOwnProperty.call(map4, key)) {
|
|
1969
|
-
Object.defineProperty(map4, key, {
|
|
1970
|
-
value: value3,
|
|
1971
|
-
writable: true,
|
|
1972
|
-
enumerable: true,
|
|
1973
|
-
configurable: true
|
|
1974
|
-
});
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
return map4;
|
|
1978
|
-
}
|
|
1979
2020
|
function stringifyKey(key, jsKey, ctx) {
|
|
1980
2021
|
if (jsKey === null)
|
|
1981
2022
|
return "";
|
|
@@ -2004,9 +2045,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
2004
2045
|
}
|
|
2005
2046
|
});
|
|
2006
2047
|
|
|
2007
|
-
// node_modules/.pnpm/yaml@2.
|
|
2048
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Pair.js
|
|
2008
2049
|
var require_Pair = __commonJS({
|
|
2009
|
-
"node_modules/.pnpm/yaml@2.
|
|
2050
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Pair.js"(exports) {
|
|
2010
2051
|
"use strict";
|
|
2011
2052
|
var createNode = require_createNode();
|
|
2012
2053
|
var stringifyPair = require_stringifyPair();
|
|
@@ -2044,9 +2085,9 @@ var require_Pair = __commonJS({
|
|
|
2044
2085
|
}
|
|
2045
2086
|
});
|
|
2046
2087
|
|
|
2047
|
-
// node_modules/.pnpm/yaml@2.
|
|
2088
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
2048
2089
|
var require_stringifyCollection = __commonJS({
|
|
2049
|
-
"node_modules/.pnpm/yaml@2.
|
|
2090
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
2050
2091
|
"use strict";
|
|
2051
2092
|
var identity = require_identity();
|
|
2052
2093
|
var stringify2 = require_stringify();
|
|
@@ -2188,9 +2229,9 @@ ${indent2}${end}`;
|
|
|
2188
2229
|
}
|
|
2189
2230
|
});
|
|
2190
2231
|
|
|
2191
|
-
// node_modules/.pnpm/yaml@2.
|
|
2232
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2192
2233
|
var require_YAMLMap = __commonJS({
|
|
2193
|
-
"node_modules/.pnpm/yaml@2.
|
|
2234
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
|
|
2194
2235
|
"use strict";
|
|
2195
2236
|
var stringifyCollection = require_stringifyCollection();
|
|
2196
2237
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2333,9 +2374,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2333
2374
|
}
|
|
2334
2375
|
});
|
|
2335
2376
|
|
|
2336
|
-
// node_modules/.pnpm/yaml@2.
|
|
2377
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/map.js
|
|
2337
2378
|
var require_map = __commonJS({
|
|
2338
|
-
"node_modules/.pnpm/yaml@2.
|
|
2379
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/map.js"(exports) {
|
|
2339
2380
|
"use strict";
|
|
2340
2381
|
var identity = require_identity();
|
|
2341
2382
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2355,9 +2396,9 @@ var require_map = __commonJS({
|
|
|
2355
2396
|
}
|
|
2356
2397
|
});
|
|
2357
2398
|
|
|
2358
|
-
// node_modules/.pnpm/yaml@2.
|
|
2399
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2359
2400
|
var require_YAMLSeq = __commonJS({
|
|
2360
|
-
"node_modules/.pnpm/yaml@2.
|
|
2401
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
|
|
2361
2402
|
"use strict";
|
|
2362
2403
|
var createNode = require_createNode();
|
|
2363
2404
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2471,9 +2512,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2471
2512
|
}
|
|
2472
2513
|
});
|
|
2473
2514
|
|
|
2474
|
-
// node_modules/.pnpm/yaml@2.
|
|
2515
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/seq.js
|
|
2475
2516
|
var require_seq = __commonJS({
|
|
2476
|
-
"node_modules/.pnpm/yaml@2.
|
|
2517
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/seq.js"(exports) {
|
|
2477
2518
|
"use strict";
|
|
2478
2519
|
var identity = require_identity();
|
|
2479
2520
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2493,9 +2534,9 @@ var require_seq = __commonJS({
|
|
|
2493
2534
|
}
|
|
2494
2535
|
});
|
|
2495
2536
|
|
|
2496
|
-
// node_modules/.pnpm/yaml@2.
|
|
2537
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/string.js
|
|
2497
2538
|
var require_string = __commonJS({
|
|
2498
|
-
"node_modules/.pnpm/yaml@2.
|
|
2539
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/string.js"(exports) {
|
|
2499
2540
|
"use strict";
|
|
2500
2541
|
var stringifyString = require_stringifyString();
|
|
2501
2542
|
var string = {
|
|
@@ -2512,9 +2553,9 @@ var require_string = __commonJS({
|
|
|
2512
2553
|
}
|
|
2513
2554
|
});
|
|
2514
2555
|
|
|
2515
|
-
// node_modules/.pnpm/yaml@2.
|
|
2556
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/null.js
|
|
2516
2557
|
var require_null = __commonJS({
|
|
2517
|
-
"node_modules/.pnpm/yaml@2.
|
|
2558
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/null.js"(exports) {
|
|
2518
2559
|
"use strict";
|
|
2519
2560
|
var Scalar = require_Scalar();
|
|
2520
2561
|
var nullTag = {
|
|
@@ -2530,9 +2571,9 @@ var require_null = __commonJS({
|
|
|
2530
2571
|
}
|
|
2531
2572
|
});
|
|
2532
2573
|
|
|
2533
|
-
// node_modules/.pnpm/yaml@2.
|
|
2574
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/bool.js
|
|
2534
2575
|
var require_bool = __commonJS({
|
|
2535
|
-
"node_modules/.pnpm/yaml@2.
|
|
2576
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/bool.js"(exports) {
|
|
2536
2577
|
"use strict";
|
|
2537
2578
|
var Scalar = require_Scalar();
|
|
2538
2579
|
var boolTag = {
|
|
@@ -2554,9 +2595,9 @@ var require_bool = __commonJS({
|
|
|
2554
2595
|
}
|
|
2555
2596
|
});
|
|
2556
2597
|
|
|
2557
|
-
// node_modules/.pnpm/yaml@2.
|
|
2598
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2558
2599
|
var require_stringifyNumber = __commonJS({
|
|
2559
|
-
"node_modules/.pnpm/yaml@2.
|
|
2600
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
|
|
2560
2601
|
"use strict";
|
|
2561
2602
|
function stringifyNumber({ format, minFractionDigits, tag: tag2, value: value2 }) {
|
|
2562
2603
|
if (typeof value2 === "bigint")
|
|
@@ -2581,9 +2622,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2581
2622
|
}
|
|
2582
2623
|
});
|
|
2583
2624
|
|
|
2584
|
-
// node_modules/.pnpm/yaml@2.
|
|
2625
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/float.js
|
|
2585
2626
|
var require_float = __commonJS({
|
|
2586
|
-
"node_modules/.pnpm/yaml@2.
|
|
2627
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/float.js"(exports) {
|
|
2587
2628
|
"use strict";
|
|
2588
2629
|
var Scalar = require_Scalar();
|
|
2589
2630
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2627,9 +2668,9 @@ var require_float = __commonJS({
|
|
|
2627
2668
|
}
|
|
2628
2669
|
});
|
|
2629
2670
|
|
|
2630
|
-
// node_modules/.pnpm/yaml@2.
|
|
2671
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/int.js
|
|
2631
2672
|
var require_int = __commonJS({
|
|
2632
|
-
"node_modules/.pnpm/yaml@2.
|
|
2673
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/int.js"(exports) {
|
|
2633
2674
|
"use strict";
|
|
2634
2675
|
var stringifyNumber = require_stringifyNumber();
|
|
2635
2676
|
var intIdentify = (value2) => typeof value2 === "bigint" || Number.isInteger(value2);
|
|
@@ -2672,9 +2713,9 @@ var require_int = __commonJS({
|
|
|
2672
2713
|
}
|
|
2673
2714
|
});
|
|
2674
2715
|
|
|
2675
|
-
// node_modules/.pnpm/yaml@2.
|
|
2716
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/schema.js
|
|
2676
2717
|
var require_schema = __commonJS({
|
|
2677
|
-
"node_modules/.pnpm/yaml@2.
|
|
2718
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/schema.js"(exports) {
|
|
2678
2719
|
"use strict";
|
|
2679
2720
|
var map4 = require_map();
|
|
2680
2721
|
var _null = require_null();
|
|
@@ -2700,9 +2741,9 @@ var require_schema = __commonJS({
|
|
|
2700
2741
|
}
|
|
2701
2742
|
});
|
|
2702
2743
|
|
|
2703
|
-
// node_modules/.pnpm/yaml@2.
|
|
2744
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/json/schema.js
|
|
2704
2745
|
var require_schema2 = __commonJS({
|
|
2705
|
-
"node_modules/.pnpm/yaml@2.
|
|
2746
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/json/schema.js"(exports) {
|
|
2706
2747
|
"use strict";
|
|
2707
2748
|
var Scalar = require_Scalar();
|
|
2708
2749
|
var map4 = require_map();
|
|
@@ -2732,7 +2773,7 @@ var require_schema2 = __commonJS({
|
|
|
2732
2773
|
identify: (value2) => typeof value2 === "boolean",
|
|
2733
2774
|
default: true,
|
|
2734
2775
|
tag: "tag:yaml.org,2002:bool",
|
|
2735
|
-
test: /^true
|
|
2776
|
+
test: /^true$|^false$/,
|
|
2736
2777
|
resolve: (str) => str === "true",
|
|
2737
2778
|
stringify: stringifyJSON
|
|
2738
2779
|
},
|
|
@@ -2767,9 +2808,9 @@ var require_schema2 = __commonJS({
|
|
|
2767
2808
|
}
|
|
2768
2809
|
});
|
|
2769
2810
|
|
|
2770
|
-
// node_modules/.pnpm/yaml@2.
|
|
2811
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2771
2812
|
var require_binary = __commonJS({
|
|
2772
|
-
"node_modules/.pnpm/yaml@2.
|
|
2813
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
|
|
2773
2814
|
"use strict";
|
|
2774
2815
|
var Scalar = require_Scalar();
|
|
2775
2816
|
var stringifyString = require_stringifyString();
|
|
@@ -2831,9 +2872,9 @@ var require_binary = __commonJS({
|
|
|
2831
2872
|
}
|
|
2832
2873
|
});
|
|
2833
2874
|
|
|
2834
|
-
// node_modules/.pnpm/yaml@2.
|
|
2875
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2835
2876
|
var require_pairs = __commonJS({
|
|
2836
|
-
"node_modules/.pnpm/yaml@2.
|
|
2877
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
|
|
2837
2878
|
"use strict";
|
|
2838
2879
|
var identity = require_identity();
|
|
2839
2880
|
var Pair = require_Pair();
|
|
@@ -2909,9 +2950,9 @@ ${cn.comment}` : item.comment;
|
|
|
2909
2950
|
}
|
|
2910
2951
|
});
|
|
2911
2952
|
|
|
2912
|
-
// node_modules/.pnpm/yaml@2.
|
|
2953
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2913
2954
|
var require_omap = __commonJS({
|
|
2914
|
-
"node_modules/.pnpm/yaml@2.
|
|
2955
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
|
|
2915
2956
|
"use strict";
|
|
2916
2957
|
var identity = require_identity();
|
|
2917
2958
|
var toJS = require_toJS();
|
|
@@ -2987,9 +3028,9 @@ var require_omap = __commonJS({
|
|
|
2987
3028
|
}
|
|
2988
3029
|
});
|
|
2989
3030
|
|
|
2990
|
-
// node_modules/.pnpm/yaml@2.
|
|
3031
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2991
3032
|
var require_bool2 = __commonJS({
|
|
2992
|
-
"node_modules/.pnpm/yaml@2.
|
|
3033
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
|
|
2993
3034
|
"use strict";
|
|
2994
3035
|
var Scalar = require_Scalar();
|
|
2995
3036
|
function boolStringify({ value: value2, source }, ctx) {
|
|
@@ -3019,9 +3060,9 @@ var require_bool2 = __commonJS({
|
|
|
3019
3060
|
}
|
|
3020
3061
|
});
|
|
3021
3062
|
|
|
3022
|
-
// node_modules/.pnpm/yaml@2.
|
|
3063
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
3023
3064
|
var require_float2 = __commonJS({
|
|
3024
|
-
"node_modules/.pnpm/yaml@2.
|
|
3065
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
|
|
3025
3066
|
"use strict";
|
|
3026
3067
|
var Scalar = require_Scalar();
|
|
3027
3068
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -3068,9 +3109,9 @@ var require_float2 = __commonJS({
|
|
|
3068
3109
|
}
|
|
3069
3110
|
});
|
|
3070
3111
|
|
|
3071
|
-
// node_modules/.pnpm/yaml@2.
|
|
3112
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
3072
3113
|
var require_int2 = __commonJS({
|
|
3073
|
-
"node_modules/.pnpm/yaml@2.
|
|
3114
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
|
|
3074
3115
|
"use strict";
|
|
3075
3116
|
var stringifyNumber = require_stringifyNumber();
|
|
3076
3117
|
var intIdentify = (value2) => typeof value2 === "bigint" || Number.isInteger(value2);
|
|
@@ -3147,9 +3188,9 @@ var require_int2 = __commonJS({
|
|
|
3147
3188
|
}
|
|
3148
3189
|
});
|
|
3149
3190
|
|
|
3150
|
-
// node_modules/.pnpm/yaml@2.
|
|
3191
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
3151
3192
|
var require_set = __commonJS({
|
|
3152
|
-
"node_modules/.pnpm/yaml@2.
|
|
3193
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
|
|
3153
3194
|
"use strict";
|
|
3154
3195
|
var identity = require_identity();
|
|
3155
3196
|
var Pair = require_Pair();
|
|
@@ -3236,9 +3277,9 @@ var require_set = __commonJS({
|
|
|
3236
3277
|
}
|
|
3237
3278
|
});
|
|
3238
3279
|
|
|
3239
|
-
// node_modules/.pnpm/yaml@2.
|
|
3280
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3240
3281
|
var require_timestamp = __commonJS({
|
|
3241
|
-
"node_modules/.pnpm/yaml@2.
|
|
3282
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
3242
3283
|
"use strict";
|
|
3243
3284
|
var stringifyNumber = require_stringifyNumber();
|
|
3244
3285
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3316,7 +3357,7 @@ var require_timestamp = __commonJS({
|
|
|
3316
3357
|
}
|
|
3317
3358
|
return new Date(date);
|
|
3318
3359
|
},
|
|
3319
|
-
stringify: ({ value: value2 }) => value2.toISOString().replace(/(
|
|
3360
|
+
stringify: ({ value: value2 }) => value2.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
|
|
3320
3361
|
};
|
|
3321
3362
|
exports.floatTime = floatTime;
|
|
3322
3363
|
exports.intTime = intTime;
|
|
@@ -3324,9 +3365,9 @@ var require_timestamp = __commonJS({
|
|
|
3324
3365
|
}
|
|
3325
3366
|
});
|
|
3326
3367
|
|
|
3327
|
-
// node_modules/.pnpm/yaml@2.
|
|
3368
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3328
3369
|
var require_schema3 = __commonJS({
|
|
3329
|
-
"node_modules/.pnpm/yaml@2.
|
|
3370
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
|
|
3330
3371
|
"use strict";
|
|
3331
3372
|
var map4 = require_map();
|
|
3332
3373
|
var _null = require_null();
|
|
@@ -3336,6 +3377,7 @@ var require_schema3 = __commonJS({
|
|
|
3336
3377
|
var bool = require_bool2();
|
|
3337
3378
|
var float = require_float2();
|
|
3338
3379
|
var int = require_int2();
|
|
3380
|
+
var merge2 = require_merge();
|
|
3339
3381
|
var omap = require_omap();
|
|
3340
3382
|
var pairs = require_pairs();
|
|
3341
3383
|
var set = require_set();
|
|
@@ -3355,6 +3397,7 @@ var require_schema3 = __commonJS({
|
|
|
3355
3397
|
float.floatExp,
|
|
3356
3398
|
float.float,
|
|
3357
3399
|
binary.binary,
|
|
3400
|
+
merge2.merge,
|
|
3358
3401
|
omap.omap,
|
|
3359
3402
|
pairs.pairs,
|
|
3360
3403
|
set.set,
|
|
@@ -3366,9 +3409,9 @@ var require_schema3 = __commonJS({
|
|
|
3366
3409
|
}
|
|
3367
3410
|
});
|
|
3368
3411
|
|
|
3369
|
-
// node_modules/.pnpm/yaml@2.
|
|
3412
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/tags.js
|
|
3370
3413
|
var require_tags = __commonJS({
|
|
3371
|
-
"node_modules/.pnpm/yaml@2.
|
|
3414
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/tags.js"(exports) {
|
|
3372
3415
|
"use strict";
|
|
3373
3416
|
var map4 = require_map();
|
|
3374
3417
|
var _null = require_null();
|
|
@@ -3380,6 +3423,7 @@ var require_tags = __commonJS({
|
|
|
3380
3423
|
var schema = require_schema();
|
|
3381
3424
|
var schema$1 = require_schema2();
|
|
3382
3425
|
var binary = require_binary();
|
|
3426
|
+
var merge2 = require_merge();
|
|
3383
3427
|
var omap = require_omap();
|
|
3384
3428
|
var pairs = require_pairs();
|
|
3385
3429
|
var schema$2 = require_schema3();
|
|
@@ -3404,6 +3448,7 @@ var require_tags = __commonJS({
|
|
|
3404
3448
|
intOct: int.intOct,
|
|
3405
3449
|
intTime: timestamp.intTime,
|
|
3406
3450
|
map: map4.map,
|
|
3451
|
+
merge: merge2.merge,
|
|
3407
3452
|
null: _null.nullTag,
|
|
3408
3453
|
omap: omap.omap,
|
|
3409
3454
|
pairs: pairs.pairs,
|
|
@@ -3413,13 +3458,18 @@ var require_tags = __commonJS({
|
|
|
3413
3458
|
};
|
|
3414
3459
|
var coreKnownTags = {
|
|
3415
3460
|
"tag:yaml.org,2002:binary": binary.binary,
|
|
3461
|
+
"tag:yaml.org,2002:merge": merge2.merge,
|
|
3416
3462
|
"tag:yaml.org,2002:omap": omap.omap,
|
|
3417
3463
|
"tag:yaml.org,2002:pairs": pairs.pairs,
|
|
3418
3464
|
"tag:yaml.org,2002:set": set.set,
|
|
3419
3465
|
"tag:yaml.org,2002:timestamp": timestamp.timestamp
|
|
3420
3466
|
};
|
|
3421
|
-
function getTags(customTags, schemaName) {
|
|
3422
|
-
|
|
3467
|
+
function getTags(customTags, schemaName, addMergeTag) {
|
|
3468
|
+
const schemaTags = schemas.get(schemaName);
|
|
3469
|
+
if (schemaTags && !customTags) {
|
|
3470
|
+
return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
|
|
3471
|
+
}
|
|
3472
|
+
let tags = schemaTags;
|
|
3423
3473
|
if (!tags) {
|
|
3424
3474
|
if (Array.isArray(customTags))
|
|
3425
3475
|
tags = [];
|
|
@@ -3434,24 +3484,28 @@ var require_tags = __commonJS({
|
|
|
3434
3484
|
} else if (typeof customTags === "function") {
|
|
3435
3485
|
tags = customTags(tags.slice());
|
|
3436
3486
|
}
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
const tagObj = tagsByName[tag2];
|
|
3441
|
-
if (tagObj)
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3487
|
+
if (addMergeTag)
|
|
3488
|
+
tags = tags.concat(merge2.merge);
|
|
3489
|
+
return tags.reduce((tags2, tag2) => {
|
|
3490
|
+
const tagObj = typeof tag2 === "string" ? tagsByName[tag2] : tag2;
|
|
3491
|
+
if (!tagObj) {
|
|
3492
|
+
const tagName = JSON.stringify(tag2);
|
|
3493
|
+
const keys2 = Object.keys(tagsByName).map((key) => JSON.stringify(key)).join(", ");
|
|
3494
|
+
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys2}`);
|
|
3495
|
+
}
|
|
3496
|
+
if (!tags2.includes(tagObj))
|
|
3497
|
+
tags2.push(tagObj);
|
|
3498
|
+
return tags2;
|
|
3499
|
+
}, []);
|
|
3446
3500
|
}
|
|
3447
3501
|
exports.coreKnownTags = coreKnownTags;
|
|
3448
3502
|
exports.getTags = getTags;
|
|
3449
3503
|
}
|
|
3450
3504
|
});
|
|
3451
3505
|
|
|
3452
|
-
// node_modules/.pnpm/yaml@2.
|
|
3506
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/Schema.js
|
|
3453
3507
|
var require_Schema = __commonJS({
|
|
3454
|
-
"node_modules/.pnpm/yaml@2.
|
|
3508
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/Schema.js"(exports) {
|
|
3455
3509
|
"use strict";
|
|
3456
3510
|
var identity = require_identity();
|
|
3457
3511
|
var map4 = require_map();
|
|
@@ -3462,10 +3516,9 @@ var require_Schema = __commonJS({
|
|
|
3462
3516
|
var Schema2 = class _Schema {
|
|
3463
3517
|
constructor({ compat, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
3464
3518
|
this.compat = Array.isArray(compat) ? tags.getTags(compat, "compat") : compat ? tags.getTags(null, compat) : null;
|
|
3465
|
-
this.merge = !!merge2;
|
|
3466
3519
|
this.name = typeof schema === "string" && schema || "core";
|
|
3467
3520
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
3468
|
-
this.tags = tags.getTags(customTags, this.name);
|
|
3521
|
+
this.tags = tags.getTags(customTags, this.name, merge2);
|
|
3469
3522
|
this.toStringOptions = toStringDefaults ?? null;
|
|
3470
3523
|
Object.defineProperty(this, identity.MAP, { value: map4.map });
|
|
3471
3524
|
Object.defineProperty(this, identity.SCALAR, { value: string.string });
|
|
@@ -3482,9 +3535,9 @@ var require_Schema = __commonJS({
|
|
|
3482
3535
|
}
|
|
3483
3536
|
});
|
|
3484
3537
|
|
|
3485
|
-
// node_modules/.pnpm/yaml@2.
|
|
3538
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3486
3539
|
var require_stringifyDocument = __commonJS({
|
|
3487
|
-
"node_modules/.pnpm/yaml@2.
|
|
3540
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
3488
3541
|
"use strict";
|
|
3489
3542
|
var identity = require_identity();
|
|
3490
3543
|
var stringify2 = require_stringify();
|
|
@@ -3563,9 +3616,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3563
3616
|
}
|
|
3564
3617
|
});
|
|
3565
3618
|
|
|
3566
|
-
// node_modules/.pnpm/yaml@2.
|
|
3619
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/Document.js
|
|
3567
3620
|
var require_Document = __commonJS({
|
|
3568
|
-
"node_modules/.pnpm/yaml@2.
|
|
3621
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/Document.js"(exports) {
|
|
3569
3622
|
"use strict";
|
|
3570
3623
|
var Alias = require_Alias();
|
|
3571
3624
|
var Collection = require_Collection();
|
|
@@ -3598,6 +3651,7 @@ var require_Document = __commonJS({
|
|
|
3598
3651
|
logLevel: "warn",
|
|
3599
3652
|
prettyErrors: true,
|
|
3600
3653
|
strict: true,
|
|
3654
|
+
stringKeys: false,
|
|
3601
3655
|
uniqueKeys: true,
|
|
3602
3656
|
version: "1.2"
|
|
3603
3657
|
}, options2);
|
|
@@ -3799,7 +3853,7 @@ var require_Document = __commonJS({
|
|
|
3799
3853
|
this.directives.yaml.version = "1.1";
|
|
3800
3854
|
else
|
|
3801
3855
|
this.directives = new directives.Directives({ version: "1.1" });
|
|
3802
|
-
opt = {
|
|
3856
|
+
opt = { resolveKnownTags: false, schema: "yaml-1.1" };
|
|
3803
3857
|
break;
|
|
3804
3858
|
case "1.2":
|
|
3805
3859
|
case "next":
|
|
@@ -3807,7 +3861,7 @@ var require_Document = __commonJS({
|
|
|
3807
3861
|
this.directives.yaml.version = version;
|
|
3808
3862
|
else
|
|
3809
3863
|
this.directives = new directives.Directives({ version });
|
|
3810
|
-
opt = {
|
|
3864
|
+
opt = { resolveKnownTags: true, schema: "core" };
|
|
3811
3865
|
break;
|
|
3812
3866
|
case null:
|
|
3813
3867
|
if (this.directives)
|
|
@@ -3871,9 +3925,9 @@ var require_Document = __commonJS({
|
|
|
3871
3925
|
}
|
|
3872
3926
|
});
|
|
3873
3927
|
|
|
3874
|
-
// node_modules/.pnpm/yaml@2.
|
|
3928
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/errors.js
|
|
3875
3929
|
var require_errors = __commonJS({
|
|
3876
|
-
"node_modules/.pnpm/yaml@2.
|
|
3930
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/errors.js"(exports) {
|
|
3877
3931
|
"use strict";
|
|
3878
3932
|
var YAMLError = class extends Error {
|
|
3879
3933
|
constructor(name, pos, code3, message) {
|
|
@@ -3936,9 +3990,9 @@ ${pointer}
|
|
|
3936
3990
|
}
|
|
3937
3991
|
});
|
|
3938
3992
|
|
|
3939
|
-
// node_modules/.pnpm/yaml@2.
|
|
3993
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-props.js
|
|
3940
3994
|
var require_resolve_props = __commonJS({
|
|
3941
|
-
"node_modules/.pnpm/yaml@2.
|
|
3995
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
|
|
3942
3996
|
"use strict";
|
|
3943
3997
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3944
3998
|
let spaceBefore = false;
|
|
@@ -3947,11 +4001,11 @@ var require_resolve_props = __commonJS({
|
|
|
3947
4001
|
let comment = "";
|
|
3948
4002
|
let commentSep = "";
|
|
3949
4003
|
let hasNewline = false;
|
|
3950
|
-
let hasNewlineAfterProp = false;
|
|
3951
4004
|
let reqSpace = false;
|
|
3952
4005
|
let tab = null;
|
|
3953
4006
|
let anchor = null;
|
|
3954
4007
|
let tag2 = null;
|
|
4008
|
+
let newlineAfterProp = null;
|
|
3955
4009
|
let comma = null;
|
|
3956
4010
|
let found = null;
|
|
3957
4011
|
let start = null;
|
|
@@ -3997,7 +4051,7 @@ var require_resolve_props = __commonJS({
|
|
|
3997
4051
|
atNewline = true;
|
|
3998
4052
|
hasNewline = true;
|
|
3999
4053
|
if (anchor || tag2)
|
|
4000
|
-
|
|
4054
|
+
newlineAfterProp = token;
|
|
4001
4055
|
hasSpace = true;
|
|
4002
4056
|
break;
|
|
4003
4057
|
case "anchor":
|
|
@@ -4061,9 +4115,9 @@ var require_resolve_props = __commonJS({
|
|
|
4061
4115
|
spaceBefore,
|
|
4062
4116
|
comment,
|
|
4063
4117
|
hasNewline,
|
|
4064
|
-
hasNewlineAfterProp,
|
|
4065
4118
|
anchor,
|
|
4066
4119
|
tag: tag2,
|
|
4120
|
+
newlineAfterProp,
|
|
4067
4121
|
end,
|
|
4068
4122
|
start: start ?? end
|
|
4069
4123
|
};
|
|
@@ -4072,9 +4126,9 @@ var require_resolve_props = __commonJS({
|
|
|
4072
4126
|
}
|
|
4073
4127
|
});
|
|
4074
4128
|
|
|
4075
|
-
// node_modules/.pnpm/yaml@2.
|
|
4129
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
4076
4130
|
var require_util_contains_newline = __commonJS({
|
|
4077
|
-
"node_modules/.pnpm/yaml@2.
|
|
4131
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
|
|
4078
4132
|
"use strict";
|
|
4079
4133
|
function containsNewline(key) {
|
|
4080
4134
|
if (!key)
|
|
@@ -4114,9 +4168,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
4114
4168
|
}
|
|
4115
4169
|
});
|
|
4116
4170
|
|
|
4117
|
-
// node_modules/.pnpm/yaml@2.
|
|
4171
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
4118
4172
|
var require_util_flow_indent_check = __commonJS({
|
|
4119
|
-
"node_modules/.pnpm/yaml@2.
|
|
4173
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
|
|
4120
4174
|
"use strict";
|
|
4121
4175
|
var utilContainsNewline = require_util_contains_newline();
|
|
4122
4176
|
function flowIndentCheck(indent2, fc, onError) {
|
|
@@ -4132,25 +4186,25 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
4132
4186
|
}
|
|
4133
4187
|
});
|
|
4134
4188
|
|
|
4135
|
-
// node_modules/.pnpm/yaml@2.
|
|
4189
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-map-includes.js
|
|
4136
4190
|
var require_util_map_includes = __commonJS({
|
|
4137
|
-
"node_modules/.pnpm/yaml@2.
|
|
4191
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
4138
4192
|
"use strict";
|
|
4139
4193
|
var identity = require_identity();
|
|
4140
4194
|
function mapIncludes(ctx, items, search2) {
|
|
4141
4195
|
const { uniqueKeys } = ctx.options;
|
|
4142
4196
|
if (uniqueKeys === false)
|
|
4143
4197
|
return false;
|
|
4144
|
-
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity.isScalar(a) && identity.isScalar(b) && a.value === b.value
|
|
4198
|
+
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity.isScalar(a) && identity.isScalar(b) && a.value === b.value;
|
|
4145
4199
|
return items.some((pair) => isEqual(pair.key, search2));
|
|
4146
4200
|
}
|
|
4147
4201
|
exports.mapIncludes = mapIncludes;
|
|
4148
4202
|
}
|
|
4149
4203
|
});
|
|
4150
4204
|
|
|
4151
|
-
// node_modules/.pnpm/yaml@2.
|
|
4205
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
4152
4206
|
var require_resolve_block_map = __commonJS({
|
|
4153
|
-
"node_modules/.pnpm/yaml@2.
|
|
4207
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
|
|
4154
4208
|
"use strict";
|
|
4155
4209
|
var Pair = require_Pair();
|
|
4156
4210
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4195,16 +4249,18 @@ var require_resolve_block_map = __commonJS({
|
|
|
4195
4249
|
}
|
|
4196
4250
|
continue;
|
|
4197
4251
|
}
|
|
4198
|
-
if (keyProps.
|
|
4252
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key)) {
|
|
4199
4253
|
onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
4200
4254
|
}
|
|
4201
4255
|
} else if (((_a = keyProps.found) == null ? void 0 : _a.indent) !== bm.indent) {
|
|
4202
4256
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
4203
4257
|
}
|
|
4258
|
+
ctx.atKey = true;
|
|
4204
4259
|
const keyStart = keyProps.end;
|
|
4205
4260
|
const keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
|
4206
4261
|
if (ctx.schema.compat)
|
|
4207
4262
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError);
|
|
4263
|
+
ctx.atKey = false;
|
|
4208
4264
|
if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
|
|
4209
4265
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
4210
4266
|
const valueProps = resolveProps.resolveProps(sep ?? [], {
|
|
@@ -4255,9 +4311,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4255
4311
|
}
|
|
4256
4312
|
});
|
|
4257
4313
|
|
|
4258
|
-
// node_modules/.pnpm/yaml@2.
|
|
4314
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4259
4315
|
var require_resolve_block_seq = __commonJS({
|
|
4260
|
-
"node_modules/.pnpm/yaml@2.
|
|
4316
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
|
|
4261
4317
|
"use strict";
|
|
4262
4318
|
var YAMLSeq = require_YAMLSeq();
|
|
4263
4319
|
var resolveProps = require_resolve_props();
|
|
@@ -4267,6 +4323,8 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4267
4323
|
const seq = new NodeClass(ctx.schema);
|
|
4268
4324
|
if (ctx.atRoot)
|
|
4269
4325
|
ctx.atRoot = false;
|
|
4326
|
+
if (ctx.atKey)
|
|
4327
|
+
ctx.atKey = false;
|
|
4270
4328
|
let offset = bs.offset;
|
|
4271
4329
|
let commentEnd = null;
|
|
4272
4330
|
for (const { start, value: value2 } of bs.items) {
|
|
@@ -4304,9 +4362,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4304
4362
|
}
|
|
4305
4363
|
});
|
|
4306
4364
|
|
|
4307
|
-
// node_modules/.pnpm/yaml@2.
|
|
4365
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-end.js
|
|
4308
4366
|
var require_resolve_end = __commonJS({
|
|
4309
|
-
"node_modules/.pnpm/yaml@2.
|
|
4367
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
|
|
4310
4368
|
"use strict";
|
|
4311
4369
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4312
4370
|
let comment = "";
|
|
@@ -4347,9 +4405,9 @@ var require_resolve_end = __commonJS({
|
|
|
4347
4405
|
}
|
|
4348
4406
|
});
|
|
4349
4407
|
|
|
4350
|
-
// node_modules/.pnpm/yaml@2.
|
|
4408
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4351
4409
|
var require_resolve_flow_collection = __commonJS({
|
|
4352
|
-
"node_modules/.pnpm/yaml@2.
|
|
4410
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
|
|
4353
4411
|
"use strict";
|
|
4354
4412
|
var identity = require_identity();
|
|
4355
4413
|
var Pair = require_Pair();
|
|
@@ -4370,6 +4428,8 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4370
4428
|
const atRoot = ctx.atRoot;
|
|
4371
4429
|
if (atRoot)
|
|
4372
4430
|
ctx.atRoot = false;
|
|
4431
|
+
if (ctx.atKey)
|
|
4432
|
+
ctx.atKey = false;
|
|
4373
4433
|
let offset = fc.offset + fc.start.source.length;
|
|
4374
4434
|
for (let i = 0; i < fc.items.length; ++i) {
|
|
4375
4435
|
const collItem = fc.items[i];
|
|
@@ -4445,10 +4505,12 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4445
4505
|
if (isBlock(value2))
|
|
4446
4506
|
onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
4447
4507
|
} else {
|
|
4508
|
+
ctx.atKey = true;
|
|
4448
4509
|
const keyStart = props.end;
|
|
4449
4510
|
const keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
|
|
4450
4511
|
if (isBlock(key))
|
|
4451
4512
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
4513
|
+
ctx.atKey = false;
|
|
4452
4514
|
const valueProps = resolveProps.resolveProps(sep ?? [], {
|
|
4453
4515
|
flow: fcName,
|
|
4454
4516
|
indicator: "map-value-ind",
|
|
@@ -4500,6 +4562,8 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4500
4562
|
const map4 = new YAMLMap.YAMLMap(ctx.schema);
|
|
4501
4563
|
map4.flow = true;
|
|
4502
4564
|
map4.items.push(pair);
|
|
4565
|
+
const endRange = (valueNode ?? keyNode).range;
|
|
4566
|
+
map4.range = [keyNode.range[0], endRange[1], endRange[2]];
|
|
4503
4567
|
coll.items.push(map4);
|
|
4504
4568
|
}
|
|
4505
4569
|
offset = valueNode ? valueNode.range[2] : valueProps.end;
|
|
@@ -4535,9 +4599,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4535
4599
|
}
|
|
4536
4600
|
});
|
|
4537
4601
|
|
|
4538
|
-
// node_modules/.pnpm/yaml@2.
|
|
4602
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-collection.js
|
|
4539
4603
|
var require_compose_collection = __commonJS({
|
|
4540
|
-
"node_modules/.pnpm/yaml@2.
|
|
4604
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
|
|
4541
4605
|
"use strict";
|
|
4542
4606
|
var identity = require_identity();
|
|
4543
4607
|
var Scalar = require_Scalar();
|
|
@@ -4557,11 +4621,20 @@ var require_compose_collection = __commonJS({
|
|
|
4557
4621
|
coll.tag = tagName;
|
|
4558
4622
|
return coll;
|
|
4559
4623
|
}
|
|
4560
|
-
function composeCollection(CN, ctx, token,
|
|
4624
|
+
function composeCollection(CN, ctx, token, props, onError) {
|
|
4561
4625
|
var _a;
|
|
4626
|
+
const tagToken = props.tag;
|
|
4562
4627
|
const tagName = !tagToken ? null : ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg));
|
|
4628
|
+
if (token.type === "block-seq") {
|
|
4629
|
+
const { anchor, newlineAfterProp: nl } = props;
|
|
4630
|
+
const lastProp = anchor && tagToken ? anchor.offset > tagToken.offset ? anchor : tagToken : anchor ?? tagToken;
|
|
4631
|
+
if (lastProp && (!nl || nl.offset < lastProp.offset)) {
|
|
4632
|
+
const message = "Missing newline after block sequence props";
|
|
4633
|
+
onError(lastProp, "MISSING_CHAR", message);
|
|
4634
|
+
}
|
|
4635
|
+
}
|
|
4563
4636
|
const expType = token.type === "block-map" ? "map" : token.type === "block-seq" ? "seq" : token.start.source === "{" ? "map" : "seq";
|
|
4564
|
-
if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq"
|
|
4637
|
+
if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq") {
|
|
4565
4638
|
return resolveCollection(CN, ctx, token, onError, tagName);
|
|
4566
4639
|
}
|
|
4567
4640
|
let tag2 = ctx.schema.tags.find((t) => t.tag === tagName && t.collection === expType);
|
|
@@ -4592,9 +4665,9 @@ var require_compose_collection = __commonJS({
|
|
|
4592
4665
|
}
|
|
4593
4666
|
});
|
|
4594
4667
|
|
|
4595
|
-
// node_modules/.pnpm/yaml@2.
|
|
4668
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4596
4669
|
var require_resolve_block_scalar = __commonJS({
|
|
4597
|
-
"node_modules/.pnpm/yaml@2.
|
|
4670
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
|
|
4598
4671
|
"use strict";
|
|
4599
4672
|
var Scalar = require_Scalar();
|
|
4600
4673
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4775,9 +4848,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4775
4848
|
}
|
|
4776
4849
|
});
|
|
4777
4850
|
|
|
4778
|
-
// node_modules/.pnpm/yaml@2.
|
|
4851
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4779
4852
|
var require_resolve_flow_scalar = __commonJS({
|
|
4780
|
-
"node_modules/.pnpm/yaml@2.
|
|
4853
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
|
|
4781
4854
|
"use strict";
|
|
4782
4855
|
var Scalar = require_Scalar();
|
|
4783
4856
|
var resolveEnd = require_resolve_end();
|
|
@@ -4856,7 +4929,7 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4856
4929
|
try {
|
|
4857
4930
|
first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
|
|
4858
4931
|
line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
|
|
4859
|
-
} catch
|
|
4932
|
+
} catch {
|
|
4860
4933
|
first = /(.*?)[ \t]*\r?\n/sy;
|
|
4861
4934
|
line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
|
|
4862
4935
|
}
|
|
@@ -4994,9 +5067,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4994
5067
|
}
|
|
4995
5068
|
});
|
|
4996
5069
|
|
|
4997
|
-
// node_modules/.pnpm/yaml@2.
|
|
5070
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4998
5071
|
var require_compose_scalar = __commonJS({
|
|
4999
|
-
"node_modules/.pnpm/yaml@2.
|
|
5072
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
|
|
5000
5073
|
"use strict";
|
|
5001
5074
|
var identity = require_identity();
|
|
5002
5075
|
var Scalar = require_Scalar();
|
|
@@ -5005,7 +5078,15 @@ var require_compose_scalar = __commonJS({
|
|
|
5005
5078
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
5006
5079
|
const { value: value2, type, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
|
|
5007
5080
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
5008
|
-
|
|
5081
|
+
let tag2;
|
|
5082
|
+
if (ctx.options.stringKeys && ctx.atKey) {
|
|
5083
|
+
tag2 = ctx.schema[identity.SCALAR];
|
|
5084
|
+
} else if (tagName)
|
|
5085
|
+
tag2 = findScalarTagByName(ctx.schema, value2, tagName, tagToken, onError);
|
|
5086
|
+
else if (token.type === "scalar")
|
|
5087
|
+
tag2 = findScalarTagByTest(ctx, value2, token, onError);
|
|
5088
|
+
else
|
|
5089
|
+
tag2 = ctx.schema[identity.SCALAR];
|
|
5009
5090
|
let scalar;
|
|
5010
5091
|
try {
|
|
5011
5092
|
const res = tag2.resolve(value2, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options);
|
|
@@ -5051,10 +5132,10 @@ var require_compose_scalar = __commonJS({
|
|
|
5051
5132
|
onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str");
|
|
5052
5133
|
return schema[identity.SCALAR];
|
|
5053
5134
|
}
|
|
5054
|
-
function findScalarTagByTest({ directives, schema }, value2, token, onError) {
|
|
5135
|
+
function findScalarTagByTest({ atKey, directives, schema }, value2, token, onError) {
|
|
5055
5136
|
const tag2 = schema.tags.find((tag3) => {
|
|
5056
5137
|
var _a;
|
|
5057
|
-
return tag3.default && ((_a = tag3.test) == null ? void 0 : _a.test(value2));
|
|
5138
|
+
return (tag3.default === true || atKey && tag3.default === "key") && ((_a = tag3.test) == null ? void 0 : _a.test(value2));
|
|
5058
5139
|
}) || schema[identity.SCALAR];
|
|
5059
5140
|
if (schema.compat) {
|
|
5060
5141
|
const compat = schema.compat.find((tag3) => {
|
|
@@ -5074,9 +5155,9 @@ var require_compose_scalar = __commonJS({
|
|
|
5074
5155
|
}
|
|
5075
5156
|
});
|
|
5076
5157
|
|
|
5077
|
-
// node_modules/.pnpm/yaml@2.
|
|
5158
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
5078
5159
|
var require_util_empty_scalar_position = __commonJS({
|
|
5079
|
-
"node_modules/.pnpm/yaml@2.
|
|
5160
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
|
|
5080
5161
|
"use strict";
|
|
5081
5162
|
function emptyScalarPosition(offset, before, pos) {
|
|
5082
5163
|
if (before) {
|
|
@@ -5105,17 +5186,19 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
5105
5186
|
}
|
|
5106
5187
|
});
|
|
5107
5188
|
|
|
5108
|
-
// node_modules/.pnpm/yaml@2.
|
|
5189
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-node.js
|
|
5109
5190
|
var require_compose_node = __commonJS({
|
|
5110
|
-
"node_modules/.pnpm/yaml@2.
|
|
5191
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-node.js"(exports) {
|
|
5111
5192
|
"use strict";
|
|
5112
5193
|
var Alias = require_Alias();
|
|
5194
|
+
var identity = require_identity();
|
|
5113
5195
|
var composeCollection = require_compose_collection();
|
|
5114
5196
|
var composeScalar = require_compose_scalar();
|
|
5115
5197
|
var resolveEnd = require_resolve_end();
|
|
5116
5198
|
var utilEmptyScalarPosition = require_util_empty_scalar_position();
|
|
5117
5199
|
var CN = { composeNode, composeEmptyNode };
|
|
5118
5200
|
function composeNode(ctx, token, props, onError) {
|
|
5201
|
+
const atKey = ctx.atKey;
|
|
5119
5202
|
const { spaceBefore, comment, anchor, tag: tag2 } = props;
|
|
5120
5203
|
let node2;
|
|
5121
5204
|
let isSrcToken = true;
|
|
@@ -5136,7 +5219,7 @@ var require_compose_node = __commonJS({
|
|
|
5136
5219
|
case "block-map":
|
|
5137
5220
|
case "block-seq":
|
|
5138
5221
|
case "flow-collection":
|
|
5139
|
-
node2 = composeCollection.composeCollection(CN, ctx, token,
|
|
5222
|
+
node2 = composeCollection.composeCollection(CN, ctx, token, props, onError);
|
|
5140
5223
|
if (anchor)
|
|
5141
5224
|
node2.anchor = anchor.source.substring(1);
|
|
5142
5225
|
break;
|
|
@@ -5149,6 +5232,10 @@ var require_compose_node = __commonJS({
|
|
|
5149
5232
|
}
|
|
5150
5233
|
if (anchor && node2.anchor === "")
|
|
5151
5234
|
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
5235
|
+
if (atKey && ctx.options.stringKeys && (!identity.isScalar(node2) || typeof node2.value !== "string" || node2.tag && node2.tag !== "tag:yaml.org,2002:str")) {
|
|
5236
|
+
const msg = "With stringKeys, all keys must be strings";
|
|
5237
|
+
onError(tag2 ?? token, "NON_STRING_KEY", msg);
|
|
5238
|
+
}
|
|
5152
5239
|
if (spaceBefore)
|
|
5153
5240
|
node2.spaceBefore = true;
|
|
5154
5241
|
if (comment) {
|
|
@@ -5200,9 +5287,9 @@ var require_compose_node = __commonJS({
|
|
|
5200
5287
|
}
|
|
5201
5288
|
});
|
|
5202
5289
|
|
|
5203
|
-
// node_modules/.pnpm/yaml@2.
|
|
5290
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-doc.js
|
|
5204
5291
|
var require_compose_doc = __commonJS({
|
|
5205
|
-
"node_modules/.pnpm/yaml@2.
|
|
5292
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
|
|
5206
5293
|
"use strict";
|
|
5207
5294
|
var Document = require_Document();
|
|
5208
5295
|
var composeNode = require_compose_node();
|
|
@@ -5212,6 +5299,7 @@ var require_compose_doc = __commonJS({
|
|
|
5212
5299
|
const opts = Object.assign({ _directives: directives }, options2);
|
|
5213
5300
|
const doc = new Document.Document(void 0, opts);
|
|
5214
5301
|
const ctx = {
|
|
5302
|
+
atKey: false,
|
|
5215
5303
|
atRoot: true,
|
|
5216
5304
|
directives: doc.directives,
|
|
5217
5305
|
options: doc.options,
|
|
@@ -5242,9 +5330,9 @@ var require_compose_doc = __commonJS({
|
|
|
5242
5330
|
}
|
|
5243
5331
|
});
|
|
5244
5332
|
|
|
5245
|
-
// node_modules/.pnpm/yaml@2.
|
|
5333
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/composer.js
|
|
5246
5334
|
var require_composer = __commonJS({
|
|
5247
|
-
"node_modules/.pnpm/yaml@2.
|
|
5335
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/composer.js"(exports) {
|
|
5248
5336
|
"use strict";
|
|
5249
5337
|
var directives = require_directives();
|
|
5250
5338
|
var Document = require_Document();
|
|
@@ -5448,9 +5536,9 @@ ${end.comment}` : end.comment;
|
|
|
5448
5536
|
}
|
|
5449
5537
|
});
|
|
5450
5538
|
|
|
5451
|
-
// node_modules/.pnpm/yaml@2.
|
|
5539
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5452
5540
|
var require_cst_scalar = __commonJS({
|
|
5453
|
-
"node_modules/.pnpm/yaml@2.
|
|
5541
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
|
|
5454
5542
|
"use strict";
|
|
5455
5543
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5456
5544
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5633,9 +5721,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5633
5721
|
}
|
|
5634
5722
|
});
|
|
5635
5723
|
|
|
5636
|
-
// node_modules/.pnpm/yaml@2.
|
|
5724
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5637
5725
|
var require_cst_stringify = __commonJS({
|
|
5638
|
-
"node_modules/.pnpm/yaml@2.
|
|
5726
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
5639
5727
|
"use strict";
|
|
5640
5728
|
var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5641
5729
|
function stringifyToken(token) {
|
|
@@ -5694,9 +5782,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5694
5782
|
}
|
|
5695
5783
|
});
|
|
5696
5784
|
|
|
5697
|
-
// node_modules/.pnpm/yaml@2.
|
|
5785
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-visit.js
|
|
5698
5786
|
var require_cst_visit = __commonJS({
|
|
5699
|
-
"node_modules/.pnpm/yaml@2.
|
|
5787
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
|
|
5700
5788
|
"use strict";
|
|
5701
5789
|
var BREAK = Symbol("break visit");
|
|
5702
5790
|
var SKIP2 = Symbol("skip children");
|
|
@@ -5756,9 +5844,9 @@ var require_cst_visit = __commonJS({
|
|
|
5756
5844
|
}
|
|
5757
5845
|
});
|
|
5758
5846
|
|
|
5759
|
-
// node_modules/.pnpm/yaml@2.
|
|
5847
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst.js
|
|
5760
5848
|
var require_cst = __commonJS({
|
|
5761
|
-
"node_modules/.pnpm/yaml@2.
|
|
5849
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst.js"(exports) {
|
|
5762
5850
|
"use strict";
|
|
5763
5851
|
var cstScalar = require_cst_scalar();
|
|
5764
5852
|
var cstStringify = require_cst_stringify();
|
|
@@ -5858,9 +5946,9 @@ var require_cst = __commonJS({
|
|
|
5858
5946
|
}
|
|
5859
5947
|
});
|
|
5860
5948
|
|
|
5861
|
-
// node_modules/.pnpm/yaml@2.
|
|
5949
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/lexer.js
|
|
5862
5950
|
var require_lexer = __commonJS({
|
|
5863
|
-
"node_modules/.pnpm/yaml@2.
|
|
5951
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/lexer.js"(exports) {
|
|
5864
5952
|
"use strict";
|
|
5865
5953
|
var cst = require_cst();
|
|
5866
5954
|
function isEmpty(ch) {
|
|
@@ -6040,14 +6128,11 @@ var require_lexer = __commonJS({
|
|
|
6040
6128
|
if (!this.atEnd && !this.hasChars(4))
|
|
6041
6129
|
return this.setNext("line-start");
|
|
6042
6130
|
const s2 = this.peek(3);
|
|
6043
|
-
if (s2 === "---" && isEmpty(this.charAt(3))) {
|
|
6131
|
+
if ((s2 === "---" || s2 === "...") && isEmpty(this.charAt(3))) {
|
|
6044
6132
|
yield* this.pushCount(3);
|
|
6045
6133
|
this.indentValue = 0;
|
|
6046
6134
|
this.indentNext = 0;
|
|
6047
|
-
return "doc";
|
|
6048
|
-
} else if (s2 === "..." && isEmpty(this.charAt(3))) {
|
|
6049
|
-
yield* this.pushCount(3);
|
|
6050
|
-
return "stream";
|
|
6135
|
+
return s2 === "---" ? "doc" : "stream";
|
|
6051
6136
|
}
|
|
6052
6137
|
}
|
|
6053
6138
|
this.indentValue = yield* this.pushSpaces(false);
|
|
@@ -6440,9 +6525,9 @@ var require_lexer = __commonJS({
|
|
|
6440
6525
|
}
|
|
6441
6526
|
});
|
|
6442
6527
|
|
|
6443
|
-
// node_modules/.pnpm/yaml@2.
|
|
6528
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/line-counter.js
|
|
6444
6529
|
var require_line_counter = __commonJS({
|
|
6445
|
-
"node_modules/.pnpm/yaml@2.
|
|
6530
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/line-counter.js"(exports) {
|
|
6446
6531
|
"use strict";
|
|
6447
6532
|
var LineCounter = class {
|
|
6448
6533
|
constructor() {
|
|
@@ -6471,9 +6556,9 @@ var require_line_counter = __commonJS({
|
|
|
6471
6556
|
}
|
|
6472
6557
|
});
|
|
6473
6558
|
|
|
6474
|
-
// node_modules/.pnpm/yaml@2.
|
|
6559
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/parser.js
|
|
6475
6560
|
var require_parser = __commonJS({
|
|
6476
|
-
"node_modules/.pnpm/yaml@2.
|
|
6561
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/parser.js"(exports) {
|
|
6477
6562
|
"use strict";
|
|
6478
6563
|
var cst = require_cst();
|
|
6479
6564
|
var lexer2 = require_lexer();
|
|
@@ -7004,7 +7089,8 @@ var require_parser = __commonJS({
|
|
|
7004
7089
|
const key = it.key;
|
|
7005
7090
|
const sep = it.sep;
|
|
7006
7091
|
sep.push(this.sourceToken);
|
|
7007
|
-
delete it.key
|
|
7092
|
+
delete it.key;
|
|
7093
|
+
delete it.sep;
|
|
7008
7094
|
this.stack.push({
|
|
7009
7095
|
type: "block-map",
|
|
7010
7096
|
offset: this.offset,
|
|
@@ -7329,14 +7415,15 @@ var require_parser = __commonJS({
|
|
|
7329
7415
|
}
|
|
7330
7416
|
});
|
|
7331
7417
|
|
|
7332
|
-
// node_modules/.pnpm/yaml@2.
|
|
7418
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/public-api.js
|
|
7333
7419
|
var require_public_api = __commonJS({
|
|
7334
|
-
"node_modules/.pnpm/yaml@2.
|
|
7420
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/public-api.js"(exports) {
|
|
7335
7421
|
"use strict";
|
|
7336
7422
|
var composer = require_composer();
|
|
7337
7423
|
var Document = require_Document();
|
|
7338
7424
|
var errors = require_errors();
|
|
7339
7425
|
var log = require_log();
|
|
7426
|
+
var identity = require_identity();
|
|
7340
7427
|
var lineCounter = require_line_counter();
|
|
7341
7428
|
var parser2 = require_parser();
|
|
7342
7429
|
function parseOptions(options2) {
|
|
@@ -7414,6 +7501,8 @@ var require_public_api = __commonJS({
|
|
|
7414
7501
|
if (!keepUndefined)
|
|
7415
7502
|
return void 0;
|
|
7416
7503
|
}
|
|
7504
|
+
if (identity.isDocument(value2) && !_replacer)
|
|
7505
|
+
return value2.toString(options2);
|
|
7417
7506
|
return new Document.Document(value2, _replacer, options2).toString(options2);
|
|
7418
7507
|
}
|
|
7419
7508
|
exports.parse = parse3;
|
|
@@ -7423,9 +7512,9 @@ var require_public_api = __commonJS({
|
|
|
7423
7512
|
}
|
|
7424
7513
|
});
|
|
7425
7514
|
|
|
7426
|
-
// node_modules/.pnpm/yaml@2.
|
|
7515
|
+
// node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/index.js
|
|
7427
7516
|
var require_dist = __commonJS({
|
|
7428
|
-
"node_modules/.pnpm/yaml@2.
|
|
7517
|
+
"node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/index.js"(exports) {
|
|
7429
7518
|
"use strict";
|
|
7430
7519
|
var composer = require_composer();
|
|
7431
7520
|
var Document = require_Document();
|
|
@@ -13782,10 +13871,10 @@ var init_micromark_extension_gfm = __esm({
|
|
|
13782
13871
|
}
|
|
13783
13872
|
});
|
|
13784
13873
|
|
|
13785
|
-
// node_modules/.pnpm/remark-gfm@4.0.
|
|
13874
|
+
// node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
|
|
13786
13875
|
function remarkGfm(options2) {
|
|
13787
13876
|
const self2 = (
|
|
13788
|
-
/** @type {Processor} */
|
|
13877
|
+
/** @type {Processor<Root>} */
|
|
13789
13878
|
this
|
|
13790
13879
|
);
|
|
13791
13880
|
const settings = options2 || emptyOptions3;
|
|
@@ -13799,20 +13888,20 @@ function remarkGfm(options2) {
|
|
|
13799
13888
|
}
|
|
13800
13889
|
var emptyOptions3;
|
|
13801
13890
|
var init_lib15 = __esm({
|
|
13802
|
-
"node_modules/.pnpm/remark-gfm@4.0.
|
|
13891
|
+
"node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js"() {
|
|
13803
13892
|
init_mdast_util_gfm();
|
|
13804
13893
|
init_micromark_extension_gfm();
|
|
13805
13894
|
emptyOptions3 = {};
|
|
13806
13895
|
}
|
|
13807
13896
|
});
|
|
13808
13897
|
|
|
13809
|
-
// node_modules/.pnpm/remark-gfm@4.0.
|
|
13898
|
+
// node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/index.js
|
|
13810
13899
|
var remark_gfm_exports = {};
|
|
13811
13900
|
__export(remark_gfm_exports, {
|
|
13812
13901
|
default: () => remarkGfm
|
|
13813
13902
|
});
|
|
13814
13903
|
var init_remark_gfm = __esm({
|
|
13815
|
-
"node_modules/.pnpm/remark-gfm@4.0.
|
|
13904
|
+
"node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/index.js"() {
|
|
13816
13905
|
init_lib15();
|
|
13817
13906
|
}
|
|
13818
13907
|
});
|
|
@@ -14285,7 +14374,7 @@ function extendConfig(baseConfigExport, serverConfigExport) {
|
|
|
14285
14374
|
}
|
|
14286
14375
|
|
|
14287
14376
|
// sw-reg:@qwik-router-sw-register-build
|
|
14288
|
-
var qwik_router_sw_register_build_default = '"serviceWorker"in navigator
|
|
14377
|
+
var qwik_router_sw_register_build_default = '"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(r=>{for(const e of r){const c="__url".split("/").pop();e.active?.scriptURL.endsWith(c||"service-worker.js")&&e.unregister().catch(console.error)}}),"caches"in window&&caches.keys().then(r=>{const e=r.find(c=>c.startsWith("QwikBuild"));e&&caches.delete(e).catch(console.error)}).catch(console.error)';
|
|
14289
14378
|
|
|
14290
14379
|
// packages/qwik-router/src/buildtime/vite/plugin.ts
|
|
14291
14380
|
import fs7 from "node:fs";
|
|
@@ -17288,17 +17377,17 @@ function frontmatterAttrsToDocumentHead(attrs) {
|
|
|
17288
17377
|
if (typeof attrValue === "object") {
|
|
17289
17378
|
for (const opengraph of Array.isArray(attrValue) ? attrValue : [attrValue]) {
|
|
17290
17379
|
if (opengraph != null && typeof opengraph === "object" && !Array.isArray(opengraph)) {
|
|
17291
|
-
for (const [
|
|
17292
|
-
if ((
|
|
17293
|
-
if (attrNames.includes(
|
|
17380
|
+
for (const [property2, content] of Object.entries(opengraph)) {
|
|
17381
|
+
if ((property2 === "title" || property2 === "description") && content === true) {
|
|
17382
|
+
if (attrNames.includes(property2)) {
|
|
17294
17383
|
head.meta.push({
|
|
17295
|
-
property: `og:${
|
|
17296
|
-
content: (_a = attrs[
|
|
17384
|
+
property: `og:${property2}`,
|
|
17385
|
+
content: (_a = attrs[property2]) == null ? void 0 : _a.toString()
|
|
17297
17386
|
});
|
|
17298
17387
|
}
|
|
17299
17388
|
} else {
|
|
17300
17389
|
head.meta.push({
|
|
17301
|
-
property: `og:${
|
|
17390
|
+
property: `og:${property2}`,
|
|
17302
17391
|
content: content == null ? void 0 : content.toString()
|
|
17303
17392
|
});
|
|
17304
17393
|
}
|
|
@@ -17375,14 +17464,14 @@ function slug(value2, maintainCase) {
|
|
|
17375
17464
|
return value2.replace(regex, "").replace(/ /g, "-");
|
|
17376
17465
|
}
|
|
17377
17466
|
|
|
17378
|
-
// node_modules/.pnpm/estree-util-value-to-estree@3.
|
|
17467
|
+
// node_modules/.pnpm/estree-util-value-to-estree@3.4.0/node_modules/estree-util-value-to-estree/dist/estree-util-value-to-estree.js
|
|
17379
17468
|
function identifier(name) {
|
|
17380
17469
|
return { type: "Identifier", name };
|
|
17381
17470
|
}
|
|
17382
17471
|
function literal(value2) {
|
|
17383
17472
|
return { type: "Literal", value: value2 };
|
|
17384
17473
|
}
|
|
17385
|
-
function methodCall(object,
|
|
17474
|
+
function methodCall(object, name, args) {
|
|
17386
17475
|
return {
|
|
17387
17476
|
type: "CallExpression",
|
|
17388
17477
|
optional: false,
|
|
@@ -17391,7 +17480,7 @@ function methodCall(object, property, args) {
|
|
|
17391
17480
|
computed: false,
|
|
17392
17481
|
optional: false,
|
|
17393
17482
|
object,
|
|
17394
|
-
property: identifier(
|
|
17483
|
+
property: identifier(name)
|
|
17395
17484
|
},
|
|
17396
17485
|
arguments: args
|
|
17397
17486
|
};
|
|
@@ -17426,8 +17515,15 @@ function isStringReconstructable(value2) {
|
|
|
17426
17515
|
function isValueReconstructable(value2) {
|
|
17427
17516
|
return value2 instanceof Boolean || value2 instanceof Date || value2 instanceof Number || value2 instanceof String;
|
|
17428
17517
|
}
|
|
17518
|
+
var wellKnownSymbols = /* @__PURE__ */ new Map();
|
|
17519
|
+
for (const name of Reflect.ownKeys(Symbol)) {
|
|
17520
|
+
const value2 = Symbol[name];
|
|
17521
|
+
if (typeof value2 === "symbol") {
|
|
17522
|
+
wellKnownSymbols.set(value2, name);
|
|
17523
|
+
}
|
|
17524
|
+
}
|
|
17429
17525
|
function isTypedArray(value2) {
|
|
17430
|
-
return value2 instanceof BigInt64Array || value2 instanceof BigUint64Array || value2 instanceof Float32Array || value2 instanceof Float64Array || value2 instanceof Int8Array || value2 instanceof Int16Array || value2 instanceof Int32Array || value2 instanceof Uint8Array || value2 instanceof Uint8ClampedArray || value2 instanceof Uint16Array || value2 instanceof Uint32Array;
|
|
17526
|
+
return value2 instanceof BigInt64Array || value2 instanceof BigUint64Array || typeof Float16Array !== "undefined" && value2 instanceof Float16Array || value2 instanceof Float32Array || value2 instanceof Float64Array || value2 instanceof Int8Array || value2 instanceof Int16Array || value2 instanceof Int32Array || value2 instanceof Uint8Array || value2 instanceof Uint8ClampedArray || value2 instanceof Uint16Array || value2 instanceof Uint32Array;
|
|
17431
17527
|
}
|
|
17432
17528
|
function compareContexts(a, b) {
|
|
17433
17529
|
const aReferencedByB = a.referencedBy.has(b.value);
|
|
@@ -17454,6 +17550,65 @@ function replaceAssignment(expression, assignment) {
|
|
|
17454
17550
|
node2.right = expression;
|
|
17455
17551
|
return assignment;
|
|
17456
17552
|
}
|
|
17553
|
+
function symbolToEstree(symbol) {
|
|
17554
|
+
const name = wellKnownSymbols.get(symbol);
|
|
17555
|
+
if (name) {
|
|
17556
|
+
return {
|
|
17557
|
+
type: "MemberExpression",
|
|
17558
|
+
computed: false,
|
|
17559
|
+
optional: false,
|
|
17560
|
+
object: identifier("Symbol"),
|
|
17561
|
+
property: identifier(name)
|
|
17562
|
+
};
|
|
17563
|
+
}
|
|
17564
|
+
if (symbol.description && symbol === Symbol.for(symbol.description)) {
|
|
17565
|
+
return methodCall(identifier("Symbol"), "for", [literal(symbol.description)]);
|
|
17566
|
+
}
|
|
17567
|
+
throw new TypeError(`Only global symbols are supported, got: ${String(symbol)}`, {
|
|
17568
|
+
cause: symbol
|
|
17569
|
+
});
|
|
17570
|
+
}
|
|
17571
|
+
function property(key, value2) {
|
|
17572
|
+
const isString = typeof key === "string";
|
|
17573
|
+
return {
|
|
17574
|
+
type: "Property",
|
|
17575
|
+
method: false,
|
|
17576
|
+
shorthand: false,
|
|
17577
|
+
computed: key === "__proto__" || !isString,
|
|
17578
|
+
kind: "init",
|
|
17579
|
+
key: isString ? literal(key) : symbolToEstree(key),
|
|
17580
|
+
value: value2
|
|
17581
|
+
};
|
|
17582
|
+
}
|
|
17583
|
+
function temporalConstructor(name, values, calendar = "iso8601", defaultReferenceValue, referenceValue) {
|
|
17584
|
+
if (calendar && typeof calendar !== "string") {
|
|
17585
|
+
throw new Error(`Unsupported calendar: ${calendar}`, { cause: calendar });
|
|
17586
|
+
}
|
|
17587
|
+
const args = [];
|
|
17588
|
+
if (referenceValue != null && (calendar !== "iso8601" || referenceValue !== defaultReferenceValue)) {
|
|
17589
|
+
args.push(literal(referenceValue));
|
|
17590
|
+
}
|
|
17591
|
+
if (calendar !== "iso8601" || args.length !== 0) {
|
|
17592
|
+
args.unshift(literal(calendar));
|
|
17593
|
+
}
|
|
17594
|
+
for (let index = values.length - 1; index >= 0; index -= 1) {
|
|
17595
|
+
const value2 = values[index];
|
|
17596
|
+
if (value2 !== 0 && value2 !== 0n || args.length !== 0) {
|
|
17597
|
+
args.unshift(typeof value2 === "string" ? literal(value2) : processNumber(value2));
|
|
17598
|
+
}
|
|
17599
|
+
}
|
|
17600
|
+
return {
|
|
17601
|
+
type: "NewExpression",
|
|
17602
|
+
callee: {
|
|
17603
|
+
type: "MemberExpression",
|
|
17604
|
+
computed: false,
|
|
17605
|
+
optional: false,
|
|
17606
|
+
object: identifier("Temporal"),
|
|
17607
|
+
property: identifier(name)
|
|
17608
|
+
},
|
|
17609
|
+
arguments: args
|
|
17610
|
+
};
|
|
17611
|
+
}
|
|
17457
17612
|
function valueToEstree(value2, options2 = {}) {
|
|
17458
17613
|
const stack = [];
|
|
17459
17614
|
const collectedContexts = /* @__PURE__ */ new Map();
|
|
@@ -17505,6 +17660,9 @@ function valueToEstree(value2, options2 = {}) {
|
|
|
17505
17660
|
if (value2 instanceof RegExp) {
|
|
17506
17661
|
return;
|
|
17507
17662
|
}
|
|
17663
|
+
if (typeof Temporal !== "undefined" && (value2 instanceof Temporal.Duration || value2 instanceof Temporal.Instant || value2 instanceof Temporal.PlainDate || value2 instanceof Temporal.PlainDateTime || value2 instanceof Temporal.PlainYearMonth || value2 instanceof Temporal.PlainMonthDay || value2 instanceof Temporal.PlainTime || value2 instanceof Temporal.ZonedDateTime)) {
|
|
17664
|
+
return;
|
|
17665
|
+
}
|
|
17508
17666
|
stack.push(val);
|
|
17509
17667
|
if (val instanceof Map) {
|
|
17510
17668
|
for (const pair of val) {
|
|
@@ -17537,10 +17695,7 @@ function valueToEstree(value2, options2 = {}) {
|
|
|
17537
17695
|
return processNumber(val);
|
|
17538
17696
|
}
|
|
17539
17697
|
if (typeof val === "symbol") {
|
|
17540
|
-
|
|
17541
|
-
return methodCall(identifier("Symbol"), "for", [literal(val.description)]);
|
|
17542
|
-
}
|
|
17543
|
-
throw new TypeError(`Only global symbols are supported, got: ${String(val)}`, { cause: val });
|
|
17698
|
+
return symbolToEstree(val);
|
|
17544
17699
|
}
|
|
17545
17700
|
const context = collectedContexts.get(val);
|
|
17546
17701
|
if (!isDeclaration && (context == null ? void 0 : context.name)) {
|
|
@@ -17576,6 +17731,66 @@ function valueToEstree(value2, options2 = {}) {
|
|
|
17576
17731
|
arguments: [literal(String(val))]
|
|
17577
17732
|
};
|
|
17578
17733
|
}
|
|
17734
|
+
if (typeof Temporal !== "undefined") {
|
|
17735
|
+
if (val instanceof Temporal.Duration) {
|
|
17736
|
+
return temporalConstructor("Duration", [
|
|
17737
|
+
val.years,
|
|
17738
|
+
val.months,
|
|
17739
|
+
val.weeks,
|
|
17740
|
+
val.days,
|
|
17741
|
+
val.hours,
|
|
17742
|
+
val.minutes,
|
|
17743
|
+
val.seconds,
|
|
17744
|
+
val.milliseconds,
|
|
17745
|
+
val.microseconds,
|
|
17746
|
+
val.nanoseconds
|
|
17747
|
+
]);
|
|
17748
|
+
}
|
|
17749
|
+
if (val instanceof Temporal.Instant) {
|
|
17750
|
+
return temporalConstructor("Instant", [val.epochNanoseconds]);
|
|
17751
|
+
}
|
|
17752
|
+
if (val instanceof Temporal.PlainDate) {
|
|
17753
|
+
const iso = val.getISOFields();
|
|
17754
|
+
return temporalConstructor("PlainDate", [iso.isoYear, iso.isoMonth, iso.isoDay], iso.calendar);
|
|
17755
|
+
}
|
|
17756
|
+
if (val instanceof Temporal.PlainDateTime) {
|
|
17757
|
+
const iso = val.getISOFields();
|
|
17758
|
+
return temporalConstructor("PlainDateTime", [
|
|
17759
|
+
iso.isoYear,
|
|
17760
|
+
iso.isoMonth,
|
|
17761
|
+
iso.isoDay,
|
|
17762
|
+
iso.isoHour,
|
|
17763
|
+
iso.isoMinute,
|
|
17764
|
+
iso.isoSecond,
|
|
17765
|
+
iso.isoMillisecond,
|
|
17766
|
+
iso.isoMicrosecond,
|
|
17767
|
+
iso.isoNanosecond
|
|
17768
|
+
], iso.calendar);
|
|
17769
|
+
}
|
|
17770
|
+
if (val instanceof Temporal.PlainMonthDay) {
|
|
17771
|
+
const iso = val.getISOFields();
|
|
17772
|
+
return temporalConstructor("PlainMonthDay", [iso.isoMonth, iso.isoDay], iso.calendar, 1972, iso.isoYear);
|
|
17773
|
+
}
|
|
17774
|
+
if (val instanceof Temporal.PlainTime) {
|
|
17775
|
+
const iso = val.getISOFields();
|
|
17776
|
+
return temporalConstructor("PlainTime", [
|
|
17777
|
+
iso.isoHour,
|
|
17778
|
+
iso.isoMinute,
|
|
17779
|
+
iso.isoSecond,
|
|
17780
|
+
iso.isoMillisecond,
|
|
17781
|
+
iso.isoMicrosecond,
|
|
17782
|
+
iso.isoNanosecond
|
|
17783
|
+
]);
|
|
17784
|
+
}
|
|
17785
|
+
if (val instanceof Temporal.PlainYearMonth) {
|
|
17786
|
+
const iso = val.getISOFields();
|
|
17787
|
+
return temporalConstructor("PlainYearMonth", [iso.isoYear, iso.isoMonth], iso.calendar, 1, iso.isoDay);
|
|
17788
|
+
}
|
|
17789
|
+
if (val instanceof Temporal.ZonedDateTime) {
|
|
17790
|
+
const iso = val.getISOFields();
|
|
17791
|
+
return temporalConstructor("ZonedDateTime", [val.epochNanoseconds, val.timeZoneId], iso.calendar);
|
|
17792
|
+
}
|
|
17793
|
+
}
|
|
17579
17794
|
if (Array.isArray(val)) {
|
|
17580
17795
|
const elements = Array.from({ length: val.length });
|
|
17581
17796
|
let trimmable;
|
|
@@ -17683,40 +17898,84 @@ function valueToEstree(value2, options2 = {}) {
|
|
|
17683
17898
|
});
|
|
17684
17899
|
}
|
|
17685
17900
|
const object = val;
|
|
17901
|
+
const propertyDescriptors = [];
|
|
17686
17902
|
for (const key of Reflect.ownKeys(val)) {
|
|
17687
|
-
const computed = typeof key !== "string";
|
|
17688
|
-
const keyExpression = generate(key);
|
|
17689
17903
|
const child = object[key];
|
|
17904
|
+
const { configurable, enumerable, writable } = Object.getOwnPropertyDescriptor(val, key);
|
|
17690
17905
|
const childContext = collectedContexts.get(child);
|
|
17691
|
-
if (
|
|
17692
|
-
|
|
17693
|
-
|
|
17694
|
-
|
|
17695
|
-
|
|
17696
|
-
|
|
17697
|
-
|
|
17698
|
-
|
|
17699
|
-
|
|
17700
|
-
|
|
17701
|
-
|
|
17702
|
-
|
|
17703
|
-
|
|
17906
|
+
if (!configurable || !enumerable || !writable) {
|
|
17907
|
+
const propertyDescriptor = [property("value", generate(child))];
|
|
17908
|
+
if (configurable) {
|
|
17909
|
+
propertyDescriptor.push(property("configurable", literal(true)));
|
|
17910
|
+
}
|
|
17911
|
+
if (enumerable) {
|
|
17912
|
+
propertyDescriptor.push(property("enumerable", literal(true)));
|
|
17913
|
+
}
|
|
17914
|
+
if (writable) {
|
|
17915
|
+
propertyDescriptor.push(property("writable", literal(true)));
|
|
17916
|
+
}
|
|
17917
|
+
propertyDescriptors.push([
|
|
17918
|
+
key,
|
|
17919
|
+
{ type: "ObjectExpression", properties: propertyDescriptor }
|
|
17920
|
+
]);
|
|
17921
|
+
} else if (context && childContext && namedContexts.indexOf(childContext) >= namedContexts.indexOf(context)) {
|
|
17922
|
+
if (key === "__proto__") {
|
|
17923
|
+
propertyDescriptors.push([
|
|
17924
|
+
key,
|
|
17925
|
+
{
|
|
17926
|
+
type: "ObjectExpression",
|
|
17927
|
+
properties: [
|
|
17928
|
+
property("value", generate(child)),
|
|
17929
|
+
property("configurable", literal(true)),
|
|
17930
|
+
property("enumerable", literal(true)),
|
|
17931
|
+
property("writable", literal(true))
|
|
17932
|
+
]
|
|
17933
|
+
}
|
|
17934
|
+
]);
|
|
17935
|
+
} else {
|
|
17936
|
+
childContext.assignment = {
|
|
17937
|
+
type: "AssignmentExpression",
|
|
17938
|
+
operator: "=",
|
|
17939
|
+
left: {
|
|
17940
|
+
type: "MemberExpression",
|
|
17941
|
+
computed: true,
|
|
17942
|
+
optional: false,
|
|
17943
|
+
object: identifier(context.name),
|
|
17944
|
+
property: generate(key)
|
|
17945
|
+
},
|
|
17946
|
+
right: childContext.assignment || generate(child)
|
|
17947
|
+
};
|
|
17948
|
+
}
|
|
17704
17949
|
} else {
|
|
17705
|
-
properties.push(
|
|
17706
|
-
type: "Property",
|
|
17707
|
-
method: false,
|
|
17708
|
-
shorthand: false,
|
|
17709
|
-
computed,
|
|
17710
|
-
kind: "init",
|
|
17711
|
-
key: keyExpression,
|
|
17712
|
-
value: generate(child)
|
|
17713
|
-
});
|
|
17950
|
+
properties.push(property(key, generate(child)));
|
|
17714
17951
|
}
|
|
17715
17952
|
}
|
|
17716
|
-
|
|
17953
|
+
const objectExpression = {
|
|
17717
17954
|
type: "ObjectExpression",
|
|
17718
17955
|
properties
|
|
17719
17956
|
};
|
|
17957
|
+
if (propertyDescriptors.length) {
|
|
17958
|
+
let name;
|
|
17959
|
+
let args;
|
|
17960
|
+
if (propertyDescriptors.length === 1) {
|
|
17961
|
+
const [[key, expression]] = propertyDescriptors;
|
|
17962
|
+
name = "defineProperty";
|
|
17963
|
+
args = [typeof key === "string" ? literal(key) : symbolToEstree(key), expression];
|
|
17964
|
+
} else {
|
|
17965
|
+
name = "defineProperties";
|
|
17966
|
+
args = [
|
|
17967
|
+
{
|
|
17968
|
+
type: "ObjectExpression",
|
|
17969
|
+
properties: propertyDescriptors.map(([key, expression]) => property(key, expression))
|
|
17970
|
+
}
|
|
17971
|
+
];
|
|
17972
|
+
}
|
|
17973
|
+
if (!context) {
|
|
17974
|
+
return methodCall(identifier("Object"), name, [objectExpression, ...args]);
|
|
17975
|
+
}
|
|
17976
|
+
context.assignment = replaceAssignment(methodCall(identifier("Object"), name, [identifier(context.name), ...args]), context.assignment);
|
|
17977
|
+
}
|
|
17978
|
+
return objectExpression;
|
|
17720
17979
|
}
|
|
17721
17980
|
analyze(value2);
|
|
17722
17981
|
for (const [val, context] of collectedContexts) {
|
|
@@ -17730,10 +17989,10 @@ function valueToEstree(value2, options2 = {}) {
|
|
|
17730
17989
|
if (!namedContexts.length) {
|
|
17731
17990
|
return generate(value2);
|
|
17732
17991
|
}
|
|
17733
|
-
const
|
|
17734
|
-
type: "
|
|
17735
|
-
|
|
17736
|
-
|
|
17992
|
+
const params = namedContexts.sort(compareContexts).map((context) => ({
|
|
17993
|
+
type: "AssignmentPattern",
|
|
17994
|
+
left: identifier(context.name),
|
|
17995
|
+
right: generate(context.value, true)
|
|
17737
17996
|
}));
|
|
17738
17997
|
const rootContext = collectedContexts.get(value2);
|
|
17739
17998
|
const finalizers = [];
|
|
@@ -17750,23 +18009,10 @@ function valueToEstree(value2, options2 = {}) {
|
|
|
17750
18009
|
callee: {
|
|
17751
18010
|
type: "ArrowFunctionExpression",
|
|
17752
18011
|
expression: false,
|
|
17753
|
-
params
|
|
18012
|
+
params,
|
|
17754
18013
|
body: {
|
|
17755
|
-
type: "
|
|
17756
|
-
|
|
17757
|
-
{
|
|
17758
|
-
type: "VariableDeclaration",
|
|
17759
|
-
kind: "const",
|
|
17760
|
-
declarations
|
|
17761
|
-
},
|
|
17762
|
-
{
|
|
17763
|
-
type: "ReturnStatement",
|
|
17764
|
-
argument: {
|
|
17765
|
-
type: "SequenceExpression",
|
|
17766
|
-
expressions: finalizers
|
|
17767
|
-
}
|
|
17768
|
-
}
|
|
17769
|
-
]
|
|
18014
|
+
type: "SequenceExpression",
|
|
18015
|
+
expressions: finalizers
|
|
17770
18016
|
}
|
|
17771
18017
|
}
|
|
17772
18018
|
};
|
|
@@ -17917,6 +18163,7 @@ function createExport(mdast, identifierName, val) {
|
|
|
17917
18163
|
type: "ExportNamedDeclaration",
|
|
17918
18164
|
source: null,
|
|
17919
18165
|
specifiers: [],
|
|
18166
|
+
attributes: [],
|
|
17920
18167
|
declaration: {
|
|
17921
18168
|
type: "VariableDeclaration",
|
|
17922
18169
|
kind: "const",
|
|
@@ -21762,8 +22009,8 @@ var Schema = class {
|
|
|
21762
22009
|
* @param {Normal} normal
|
|
21763
22010
|
* @param {string} [space]
|
|
21764
22011
|
*/
|
|
21765
|
-
constructor(
|
|
21766
|
-
this.property =
|
|
22012
|
+
constructor(property2, normal, space) {
|
|
22013
|
+
this.property = property2;
|
|
21767
22014
|
this.normal = normal;
|
|
21768
22015
|
if (space) {
|
|
21769
22016
|
this.space = space;
|
|
@@ -21776,14 +22023,14 @@ Schema.prototype.space = null;
|
|
|
21776
22023
|
|
|
21777
22024
|
// node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.js
|
|
21778
22025
|
function merge(definitions, space) {
|
|
21779
|
-
const
|
|
22026
|
+
const property2 = {};
|
|
21780
22027
|
const normal = {};
|
|
21781
22028
|
let index = -1;
|
|
21782
22029
|
while (++index < definitions.length) {
|
|
21783
|
-
Object.assign(
|
|
22030
|
+
Object.assign(property2, definitions[index].property);
|
|
21784
22031
|
Object.assign(normal, definitions[index].normal);
|
|
21785
22032
|
}
|
|
21786
|
-
return new Schema(
|
|
22033
|
+
return new Schema(property2, normal, space);
|
|
21787
22034
|
}
|
|
21788
22035
|
|
|
21789
22036
|
// node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.js
|
|
@@ -21798,8 +22045,8 @@ var Info = class {
|
|
|
21798
22045
|
* @param {string} property
|
|
21799
22046
|
* @param {string} attribute
|
|
21800
22047
|
*/
|
|
21801
|
-
constructor(
|
|
21802
|
-
this.property =
|
|
22048
|
+
constructor(property2, attribute) {
|
|
22049
|
+
this.property = property2;
|
|
21803
22050
|
this.attribute = attribute;
|
|
21804
22051
|
}
|
|
21805
22052
|
};
|
|
@@ -21847,9 +22094,9 @@ var DefinedInfo = class extends Info {
|
|
|
21847
22094
|
* @param {number|null} [mask]
|
|
21848
22095
|
* @param {string} [space]
|
|
21849
22096
|
*/
|
|
21850
|
-
constructor(
|
|
22097
|
+
constructor(property2, attribute, mask, space) {
|
|
21851
22098
|
let index = -1;
|
|
21852
|
-
super(
|
|
22099
|
+
super(property2, attribute);
|
|
21853
22100
|
mark(this, "space", space);
|
|
21854
22101
|
if (typeof mask === "number") {
|
|
21855
22102
|
while (++index < checks.length) {
|
|
@@ -21869,7 +22116,7 @@ function mark(values, key, value2) {
|
|
|
21869
22116
|
// node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.js
|
|
21870
22117
|
var own3 = {}.hasOwnProperty;
|
|
21871
22118
|
function create(definition2) {
|
|
21872
|
-
const
|
|
22119
|
+
const property2 = {};
|
|
21873
22120
|
const normal = {};
|
|
21874
22121
|
let prop;
|
|
21875
22122
|
for (prop in definition2.properties) {
|
|
@@ -21884,12 +22131,12 @@ function create(definition2) {
|
|
|
21884
22131
|
if (definition2.mustUseProperty && definition2.mustUseProperty.includes(prop)) {
|
|
21885
22132
|
info.mustUseProperty = true;
|
|
21886
22133
|
}
|
|
21887
|
-
|
|
22134
|
+
property2[prop] = info;
|
|
21888
22135
|
normal[normalize2(prop)] = prop;
|
|
21889
22136
|
normal[normalize2(info.attribute)] = prop;
|
|
21890
22137
|
}
|
|
21891
22138
|
}
|
|
21892
|
-
return new Schema(
|
|
22139
|
+
return new Schema(property2, normal, definition2.space);
|
|
21893
22140
|
}
|
|
21894
22141
|
|
|
21895
22142
|
// node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.js
|
|
@@ -21924,8 +22171,8 @@ function caseSensitiveTransform(attributes2, attribute) {
|
|
|
21924
22171
|
}
|
|
21925
22172
|
|
|
21926
22173
|
// node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
21927
|
-
function caseInsensitiveTransform(attributes2,
|
|
21928
|
-
return caseSensitiveTransform(attributes2,
|
|
22174
|
+
function caseInsensitiveTransform(attributes2, property2) {
|
|
22175
|
+
return caseSensitiveTransform(attributes2, property2.toLowerCase());
|
|
21929
22176
|
}
|
|
21930
22177
|
|
|
21931
22178
|
// node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.js
|
|
@@ -23845,14 +24092,14 @@ var _ = {
|
|
|
23845
24092
|
for (var i in o) {
|
|
23846
24093
|
if (o.hasOwnProperty(i)) {
|
|
23847
24094
|
callback.call(o, i, o[i], type || i);
|
|
23848
|
-
var
|
|
23849
|
-
var propertyType = _.util.type(
|
|
23850
|
-
if (propertyType === "Object" && !visited[objId(
|
|
23851
|
-
visited[objId(
|
|
23852
|
-
DFS(
|
|
23853
|
-
} else if (propertyType === "Array" && !visited[objId(
|
|
23854
|
-
visited[objId(
|
|
23855
|
-
DFS(
|
|
24095
|
+
var property2 = o[i];
|
|
24096
|
+
var propertyType = _.util.type(property2);
|
|
24097
|
+
if (propertyType === "Object" && !visited[objId(property2)]) {
|
|
24098
|
+
visited[objId(property2)] = true;
|
|
24099
|
+
DFS(property2, callback, null, visited);
|
|
24100
|
+
} else if (propertyType === "Array" && !visited[objId(property2)]) {
|
|
24101
|
+
visited[objId(property2)] = true;
|
|
24102
|
+
DFS(property2, callback, i, visited);
|
|
23856
24103
|
}
|
|
23857
24104
|
}
|
|
23858
24105
|
}
|