@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.
@@ -270,9 +270,9 @@ var init_unist_util_visit = __esm({
270
270
  }
271
271
  });
272
272
 
273
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js
273
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/identity.js
274
274
  var require_identity = __commonJS({
275
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js"(exports2) {
275
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/identity.js"(exports2) {
276
276
  "use strict";
277
277
  var ALIAS = Symbol.for("yaml.alias");
278
278
  var DOC = Symbol.for("yaml.document");
@@ -327,9 +327,9 @@ var require_identity = __commonJS({
327
327
  }
328
328
  });
329
329
 
330
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js
330
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/visit.js
331
331
  var require_visit = __commonJS({
332
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js"(exports2) {
332
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/visit.js"(exports2) {
333
333
  "use strict";
334
334
  var identity = require_identity();
335
335
  var BREAK = Symbol("break visit");
@@ -486,9 +486,9 @@ var require_visit = __commonJS({
486
486
  }
487
487
  });
488
488
 
489
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js
489
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/directives.js
490
490
  var require_directives = __commonJS({
491
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js"(exports2) {
491
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/directives.js"(exports2) {
492
492
  "use strict";
493
493
  var identity = require_identity();
494
494
  var visit2 = require_visit();
@@ -657,9 +657,9 @@ var require_directives = __commonJS({
657
657
  }
658
658
  });
659
659
 
660
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js
660
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/anchors.js
661
661
  var require_anchors = __commonJS({
662
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js"(exports2) {
662
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/anchors.js"(exports2) {
663
663
  "use strict";
664
664
  var identity = require_identity();
665
665
  var visit2 = require_visit();
@@ -728,9 +728,9 @@ var require_anchors = __commonJS({
728
728
  }
729
729
  });
730
730
 
731
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js
731
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/applyReviver.js
732
732
  var require_applyReviver = __commonJS({
733
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
733
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
734
734
  "use strict";
735
735
  function applyReviver(reviver, obj, key, val) {
736
736
  if (val && typeof val === "object") {
@@ -778,9 +778,9 @@ var require_applyReviver = __commonJS({
778
778
  }
779
779
  });
780
780
 
781
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js
781
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/toJS.js
782
782
  var require_toJS = __commonJS({
783
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
783
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
784
784
  "use strict";
785
785
  var identity = require_identity();
786
786
  function toJS(value2, arg, ctx) {
@@ -808,9 +808,9 @@ var require_toJS = __commonJS({
808
808
  }
809
809
  });
810
810
 
811
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js
811
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Node.js
812
812
  var require_Node = __commonJS({
813
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js"(exports2) {
813
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Node.js"(exports2) {
814
814
  "use strict";
815
815
  var applyReviver = require_applyReviver();
816
816
  var identity = require_identity();
@@ -849,9 +849,9 @@ var require_Node = __commonJS({
849
849
  }
850
850
  });
851
851
 
852
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js
852
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Alias.js
853
853
  var require_Alias = __commonJS({
854
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
854
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
855
855
  "use strict";
856
856
  var anchors = require_anchors();
857
857
  var visit2 = require_visit();
@@ -951,9 +951,9 @@ var require_Alias = __commonJS({
951
951
  }
952
952
  });
953
953
 
954
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js
954
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Scalar.js
955
955
  var require_Scalar = __commonJS({
956
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
956
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
957
957
  "use strict";
958
958
  var identity = require_identity();
959
959
  var Node = require_Node();
@@ -981,9 +981,9 @@ var require_Scalar = __commonJS({
981
981
  }
982
982
  });
983
983
 
984
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js
984
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/createNode.js
985
985
  var require_createNode = __commonJS({
986
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js"(exports2) {
986
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/createNode.js"(exports2) {
987
987
  "use strict";
988
988
  var Alias = require_Alias();
989
989
  var identity = require_identity();
@@ -1061,9 +1061,9 @@ var require_createNode = __commonJS({
1061
1061
  }
1062
1062
  });
1063
1063
 
1064
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js
1064
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Collection.js
1065
1065
  var require_Collection = __commonJS({
1066
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
1066
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
1067
1067
  "use strict";
1068
1068
  var createNode = require_createNode();
1069
1069
  var identity = require_identity();
@@ -1198,16 +1198,15 @@ var require_Collection = __commonJS({
1198
1198
  }
1199
1199
  }
1200
1200
  };
1201
- Collection.maxFlowStringSingleLineLength = 60;
1202
1201
  exports2.Collection = Collection;
1203
1202
  exports2.collectionFromPath = collectionFromPath;
1204
1203
  exports2.isEmptyPath = isEmptyPath;
1205
1204
  }
1206
1205
  });
1207
1206
 
1208
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js
1207
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyComment.js
1209
1208
  var require_stringifyComment = __commonJS({
1210
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
1209
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
1211
1210
  "use strict";
1212
1211
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
1213
1212
  function indentComment(comment, indent2) {
@@ -1222,9 +1221,9 @@ var require_stringifyComment = __commonJS({
1222
1221
  }
1223
1222
  });
1224
1223
 
1225
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js
1224
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/foldFlowLines.js
1226
1225
  var require_foldFlowLines = __commonJS({
1227
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
1226
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
1228
1227
  "use strict";
1229
1228
  var FOLD_FLOW = "flow";
1230
1229
  var FOLD_BLOCK = "block";
@@ -1232,6 +1231,8 @@ var require_foldFlowLines = __commonJS({
1232
1231
  function foldFlowLines(text3, indent2, mode = "flow", { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) {
1233
1232
  if (!lineWidth || lineWidth < 0)
1234
1233
  return text3;
1234
+ if (lineWidth < minContentWidth)
1235
+ minContentWidth = 0;
1235
1236
  const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent2.length);
1236
1237
  if (text3.length <= endStep)
1237
1238
  return text3;
@@ -1356,9 +1357,9 @@ ${indent2}${text3.slice(fold + 1, end2)}`;
1356
1357
  }
1357
1358
  });
1358
1359
 
1359
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js
1360
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyString.js
1360
1361
  var require_stringifyString = __commonJS({
1361
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
1362
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
1362
1363
  "use strict";
1363
1364
  var Scalar = require_Scalar();
1364
1365
  var foldFlowLines = require_foldFlowLines();
@@ -1548,21 +1549,29 @@ ${indent2}`) + "'";
1548
1549
  start = start.replace(/\n+/g, `$&${indent2}`);
1549
1550
  }
1550
1551
  const indentSize = indent2 ? "2" : "1";
1551
- let header = (literal2 ? "|" : ">") + (startWithSpace ? indentSize : "") + chomp;
1552
+ let header = (startWithSpace ? indentSize : "") + chomp;
1552
1553
  if (comment) {
1553
1554
  header += " " + commentString(comment.replace(/ ?[\r\n]+/g, " "));
1554
1555
  if (onComment)
1555
1556
  onComment();
1556
1557
  }
1557
- if (literal2) {
1558
- value2 = value2.replace(/\n+/g, `$&${indent2}`);
1559
- return `${header}
1560
- ${indent2}${start}${value2}${end}`;
1561
- }
1562
- value2 = value2.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent2}`);
1563
- const body = foldFlowLines.foldFlowLines(`${start}${value2}${end}`, indent2, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true));
1564
- return `${header}
1558
+ if (!literal2) {
1559
+ const foldedValue = value2.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent2}`);
1560
+ let literalFallback = false;
1561
+ const foldOptions = getFoldOptions(ctx, true);
1562
+ if (blockQuote !== "folded" && type !== Scalar.Scalar.BLOCK_FOLDED) {
1563
+ foldOptions.onOverflow = () => {
1564
+ literalFallback = true;
1565
+ };
1566
+ }
1567
+ const body = foldFlowLines.foldFlowLines(`${start}${foldedValue}${end}`, indent2, foldFlowLines.FOLD_BLOCK, foldOptions);
1568
+ if (!literalFallback)
1569
+ return `>${header}
1565
1570
  ${indent2}${body}`;
1571
+ }
1572
+ value2 = value2.replace(/\n+/g, `$&${indent2}`);
1573
+ return `|${header}
1574
+ ${indent2}${start}${value2}${end}`;
1566
1575
  }
1567
1576
  function plainString(item, ctx, onComment, onChompKeep) {
1568
1577
  const { type, value: value2 } = item;
@@ -1634,9 +1643,9 @@ ${indent2}`);
1634
1643
  }
1635
1644
  });
1636
1645
 
1637
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js
1646
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringify.js
1638
1647
  var require_stringify = __commonJS({
1639
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
1648
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
1640
1649
  "use strict";
1641
1650
  var anchors = require_anchors();
1642
1651
  var identity = require_identity();
@@ -1694,10 +1703,15 @@ var require_stringify = __commonJS({
1694
1703
  let obj;
1695
1704
  if (identity.isScalar(item)) {
1696
1705
  obj = item.value;
1697
- const match = tags.filter((t) => {
1706
+ let match = tags.filter((t) => {
1698
1707
  var _a2;
1699
1708
  return (_a2 = t.identify) == null ? void 0 : _a2.call(t, obj);
1700
1709
  });
1710
+ if (match.length > 1) {
1711
+ const testMatch = match.filter((t) => t.test);
1712
+ if (testMatch.length > 0)
1713
+ match = testMatch;
1714
+ }
1701
1715
  tagObj = match.find((t) => t.format === item.format) ?? match.find((t) => !t.format);
1702
1716
  } else {
1703
1717
  obj = item;
@@ -1758,9 +1772,9 @@ ${ctx.indent}${str}`;
1758
1772
  }
1759
1773
  });
1760
1774
 
1761
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js
1775
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyPair.js
1762
1776
  var require_stringifyPair = __commonJS({
1763
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
1777
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
1764
1778
  "use strict";
1765
1779
  var identity = require_identity();
1766
1780
  var Scalar = require_Scalar();
@@ -1891,9 +1905,9 @@ ${ctx.indent}`;
1891
1905
  }
1892
1906
  });
1893
1907
 
1894
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js
1908
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/log.js
1895
1909
  var require_log = __commonJS({
1896
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js"(exports2) {
1910
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/log.js"(exports2) {
1897
1911
  "use strict";
1898
1912
  function debug(logLevel, ...messages2) {
1899
1913
  if (logLevel === "debug")
@@ -1912,28 +1926,78 @@ var require_log = __commonJS({
1912
1926
  }
1913
1927
  });
1914
1928
 
1915
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js
1929
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1930
+ var require_merge = __commonJS({
1931
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
1932
+ "use strict";
1933
+ var identity = require_identity();
1934
+ var Scalar = require_Scalar();
1935
+ var MERGE_KEY = "<<";
1936
+ var merge2 = {
1937
+ identify: (value2) => value2 === MERGE_KEY || typeof value2 === "symbol" && value2.description === MERGE_KEY,
1938
+ default: "key",
1939
+ tag: "tag:yaml.org,2002:merge",
1940
+ test: /^<<$/,
1941
+ resolve: () => Object.assign(new Scalar.Scalar(Symbol(MERGE_KEY)), {
1942
+ addToJSMap: addMergeToJSMap
1943
+ }),
1944
+ stringify: () => MERGE_KEY
1945
+ };
1946
+ 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));
1947
+ function addMergeToJSMap(ctx, map4, value2) {
1948
+ value2 = ctx && identity.isAlias(value2) ? value2.resolve(ctx.doc) : value2;
1949
+ if (identity.isSeq(value2))
1950
+ for (const it of value2.items)
1951
+ mergeValue(ctx, map4, it);
1952
+ else if (Array.isArray(value2))
1953
+ for (const it of value2)
1954
+ mergeValue(ctx, map4, it);
1955
+ else
1956
+ mergeValue(ctx, map4, value2);
1957
+ }
1958
+ function mergeValue(ctx, map4, value2) {
1959
+ const source = ctx && identity.isAlias(value2) ? value2.resolve(ctx.doc) : value2;
1960
+ if (!identity.isMap(source))
1961
+ throw new Error("Merge sources must be maps or map aliases");
1962
+ const srcMap = source.toJSON(null, ctx, Map);
1963
+ for (const [key, value3] of srcMap) {
1964
+ if (map4 instanceof Map) {
1965
+ if (!map4.has(key))
1966
+ map4.set(key, value3);
1967
+ } else if (map4 instanceof Set) {
1968
+ map4.add(key);
1969
+ } else if (!Object.prototype.hasOwnProperty.call(map4, key)) {
1970
+ Object.defineProperty(map4, key, {
1971
+ value: value3,
1972
+ writable: true,
1973
+ enumerable: true,
1974
+ configurable: true
1975
+ });
1976
+ }
1977
+ }
1978
+ return map4;
1979
+ }
1980
+ exports2.addMergeToJSMap = addMergeToJSMap;
1981
+ exports2.isMergeKey = isMergeKey;
1982
+ exports2.merge = merge2;
1983
+ }
1984
+ });
1985
+
1986
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
1916
1987
  var require_addPairToJSMap = __commonJS({
1917
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
1988
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
1918
1989
  "use strict";
1919
1990
  var log = require_log();
1991
+ var merge2 = require_merge();
1920
1992
  var stringify2 = require_stringify();
1921
1993
  var identity = require_identity();
1922
- var Scalar = require_Scalar();
1923
1994
  var toJS = require_toJS();
1924
- var MERGE_KEY = "<<";
1925
1995
  function addPairToJSMap(ctx, map4, { key, value: value2 }) {
1926
- if ((ctx == null ? void 0 : ctx.doc.schema.merge) && isMergeKey(key)) {
1927
- value2 = identity.isAlias(value2) ? value2.resolve(ctx.doc) : value2;
1928
- if (identity.isSeq(value2))
1929
- for (const it of value2.items)
1930
- mergeToJSMap(ctx, map4, it);
1931
- else if (Array.isArray(value2))
1932
- for (const it of value2)
1933
- mergeToJSMap(ctx, map4, it);
1934
- else
1935
- mergeToJSMap(ctx, map4, value2);
1936
- } else {
1996
+ if (identity.isNode(key) && key.addToJSMap)
1997
+ key.addToJSMap(ctx, map4, value2);
1998
+ else if (merge2.isMergeKey(ctx, key))
1999
+ merge2.addMergeToJSMap(ctx, map4, value2);
2000
+ else {
1937
2001
  const jsKey = toJS.toJS(key, "", ctx);
1938
2002
  if (map4 instanceof Map) {
1939
2003
  map4.set(jsKey, toJS.toJS(value2, jsKey, ctx));
@@ -1955,29 +2019,6 @@ var require_addPairToJSMap = __commonJS({
1955
2019
  }
1956
2020
  return map4;
1957
2021
  }
1958
- var isMergeKey = (key) => key === MERGE_KEY || identity.isScalar(key) && key.value === MERGE_KEY && (!key.type || key.type === Scalar.Scalar.PLAIN);
1959
- function mergeToJSMap(ctx, map4, value2) {
1960
- const source = ctx && identity.isAlias(value2) ? value2.resolve(ctx.doc) : value2;
1961
- if (!identity.isMap(source))
1962
- throw new Error("Merge sources must be maps or map aliases");
1963
- const srcMap = source.toJSON(null, ctx, Map);
1964
- for (const [key, value3] of srcMap) {
1965
- if (map4 instanceof Map) {
1966
- if (!map4.has(key))
1967
- map4.set(key, value3);
1968
- } else if (map4 instanceof Set) {
1969
- map4.add(key);
1970
- } else if (!Object.prototype.hasOwnProperty.call(map4, key)) {
1971
- Object.defineProperty(map4, key, {
1972
- value: value3,
1973
- writable: true,
1974
- enumerable: true,
1975
- configurable: true
1976
- });
1977
- }
1978
- }
1979
- return map4;
1980
- }
1981
2022
  function stringifyKey(key, jsKey, ctx) {
1982
2023
  if (jsKey === null)
1983
2024
  return "";
@@ -2006,9 +2047,9 @@ var require_addPairToJSMap = __commonJS({
2006
2047
  }
2007
2048
  });
2008
2049
 
2009
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js
2050
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Pair.js
2010
2051
  var require_Pair = __commonJS({
2011
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
2052
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
2012
2053
  "use strict";
2013
2054
  var createNode = require_createNode();
2014
2055
  var stringifyPair = require_stringifyPair();
@@ -2046,9 +2087,9 @@ var require_Pair = __commonJS({
2046
2087
  }
2047
2088
  });
2048
2089
 
2049
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js
2090
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyCollection.js
2050
2091
  var require_stringifyCollection = __commonJS({
2051
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
2092
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
2052
2093
  "use strict";
2053
2094
  var identity = require_identity();
2054
2095
  var stringify2 = require_stringify();
@@ -2190,9 +2231,9 @@ ${indent2}${end}`;
2190
2231
  }
2191
2232
  });
2192
2233
 
2193
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js
2234
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLMap.js
2194
2235
  var require_YAMLMap = __commonJS({
2195
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
2236
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
2196
2237
  "use strict";
2197
2238
  var stringifyCollection = require_stringifyCollection();
2198
2239
  var addPairToJSMap = require_addPairToJSMap();
@@ -2335,9 +2376,9 @@ var require_YAMLMap = __commonJS({
2335
2376
  }
2336
2377
  });
2337
2378
 
2338
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js
2379
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/map.js
2339
2380
  var require_map = __commonJS({
2340
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js"(exports2) {
2381
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/map.js"(exports2) {
2341
2382
  "use strict";
2342
2383
  var identity = require_identity();
2343
2384
  var YAMLMap = require_YAMLMap();
@@ -2357,9 +2398,9 @@ var require_map = __commonJS({
2357
2398
  }
2358
2399
  });
2359
2400
 
2360
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js
2401
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLSeq.js
2361
2402
  var require_YAMLSeq = __commonJS({
2362
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
2403
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
2363
2404
  "use strict";
2364
2405
  var createNode = require_createNode();
2365
2406
  var stringifyCollection = require_stringifyCollection();
@@ -2473,9 +2514,9 @@ var require_YAMLSeq = __commonJS({
2473
2514
  }
2474
2515
  });
2475
2516
 
2476
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js
2517
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/seq.js
2477
2518
  var require_seq = __commonJS({
2478
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
2519
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
2479
2520
  "use strict";
2480
2521
  var identity = require_identity();
2481
2522
  var YAMLSeq = require_YAMLSeq();
@@ -2495,9 +2536,9 @@ var require_seq = __commonJS({
2495
2536
  }
2496
2537
  });
2497
2538
 
2498
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js
2539
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/string.js
2499
2540
  var require_string = __commonJS({
2500
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js"(exports2) {
2541
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/string.js"(exports2) {
2501
2542
  "use strict";
2502
2543
  var stringifyString = require_stringifyString();
2503
2544
  var string = {
@@ -2514,9 +2555,9 @@ var require_string = __commonJS({
2514
2555
  }
2515
2556
  });
2516
2557
 
2517
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js
2558
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/null.js
2518
2559
  var require_null = __commonJS({
2519
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js"(exports2) {
2560
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/common/null.js"(exports2) {
2520
2561
  "use strict";
2521
2562
  var Scalar = require_Scalar();
2522
2563
  var nullTag = {
@@ -2532,9 +2573,9 @@ var require_null = __commonJS({
2532
2573
  }
2533
2574
  });
2534
2575
 
2535
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js
2576
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/bool.js
2536
2577
  var require_bool = __commonJS({
2537
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
2578
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
2538
2579
  "use strict";
2539
2580
  var Scalar = require_Scalar();
2540
2581
  var boolTag = {
@@ -2556,9 +2597,9 @@ var require_bool = __commonJS({
2556
2597
  }
2557
2598
  });
2558
2599
 
2559
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js
2600
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyNumber.js
2560
2601
  var require_stringifyNumber = __commonJS({
2561
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
2602
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
2562
2603
  "use strict";
2563
2604
  function stringifyNumber({ format, minFractionDigits, tag: tag2, value: value2 }) {
2564
2605
  if (typeof value2 === "bigint")
@@ -2583,9 +2624,9 @@ var require_stringifyNumber = __commonJS({
2583
2624
  }
2584
2625
  });
2585
2626
 
2586
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js
2627
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/float.js
2587
2628
  var require_float = __commonJS({
2588
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js"(exports2) {
2629
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/float.js"(exports2) {
2589
2630
  "use strict";
2590
2631
  var Scalar = require_Scalar();
2591
2632
  var stringifyNumber = require_stringifyNumber();
@@ -2629,9 +2670,9 @@ var require_float = __commonJS({
2629
2670
  }
2630
2671
  });
2631
2672
 
2632
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js
2673
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/int.js
2633
2674
  var require_int = __commonJS({
2634
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js"(exports2) {
2675
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/int.js"(exports2) {
2635
2676
  "use strict";
2636
2677
  var stringifyNumber = require_stringifyNumber();
2637
2678
  var intIdentify = (value2) => typeof value2 === "bigint" || Number.isInteger(value2);
@@ -2674,9 +2715,9 @@ var require_int = __commonJS({
2674
2715
  }
2675
2716
  });
2676
2717
 
2677
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js
2718
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/schema.js
2678
2719
  var require_schema = __commonJS({
2679
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
2720
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
2680
2721
  "use strict";
2681
2722
  var map4 = require_map();
2682
2723
  var _null = require_null();
@@ -2702,9 +2743,9 @@ var require_schema = __commonJS({
2702
2743
  }
2703
2744
  });
2704
2745
 
2705
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js
2746
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/json/schema.js
2706
2747
  var require_schema2 = __commonJS({
2707
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
2748
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
2708
2749
  "use strict";
2709
2750
  var Scalar = require_Scalar();
2710
2751
  var map4 = require_map();
@@ -2734,7 +2775,7 @@ var require_schema2 = __commonJS({
2734
2775
  identify: (value2) => typeof value2 === "boolean",
2735
2776
  default: true,
2736
2777
  tag: "tag:yaml.org,2002:bool",
2737
- test: /^true|false$/,
2778
+ test: /^true$|^false$/,
2738
2779
  resolve: (str) => str === "true",
2739
2780
  stringify: stringifyJSON
2740
2781
  },
@@ -2769,9 +2810,9 @@ var require_schema2 = __commonJS({
2769
2810
  }
2770
2811
  });
2771
2812
 
2772
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2813
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2773
2814
  var require_binary = __commonJS({
2774
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
2815
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
2775
2816
  "use strict";
2776
2817
  var Scalar = require_Scalar();
2777
2818
  var stringifyString = require_stringifyString();
@@ -2833,9 +2874,9 @@ var require_binary = __commonJS({
2833
2874
  }
2834
2875
  });
2835
2876
 
2836
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2877
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2837
2878
  var require_pairs = __commonJS({
2838
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
2879
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
2839
2880
  "use strict";
2840
2881
  var identity = require_identity();
2841
2882
  var Pair = require_Pair();
@@ -2911,9 +2952,9 @@ ${cn.comment}` : item.comment;
2911
2952
  }
2912
2953
  });
2913
2954
 
2914
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2955
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2915
2956
  var require_omap = __commonJS({
2916
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
2957
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
2917
2958
  "use strict";
2918
2959
  var identity = require_identity();
2919
2960
  var toJS = require_toJS();
@@ -2989,9 +3030,9 @@ var require_omap = __commonJS({
2989
3030
  }
2990
3031
  });
2991
3032
 
2992
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js
3033
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2993
3034
  var require_bool2 = __commonJS({
2994
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
3035
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
2995
3036
  "use strict";
2996
3037
  var Scalar = require_Scalar();
2997
3038
  function boolStringify({ value: value2, source }, ctx) {
@@ -3021,9 +3062,9 @@ var require_bool2 = __commonJS({
3021
3062
  }
3022
3063
  });
3023
3064
 
3024
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js
3065
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
3025
3066
  var require_float2 = __commonJS({
3026
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
3067
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
3027
3068
  "use strict";
3028
3069
  var Scalar = require_Scalar();
3029
3070
  var stringifyNumber = require_stringifyNumber();
@@ -3070,9 +3111,9 @@ var require_float2 = __commonJS({
3070
3111
  }
3071
3112
  });
3072
3113
 
3073
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js
3114
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
3074
3115
  var require_int2 = __commonJS({
3075
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
3116
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
3076
3117
  "use strict";
3077
3118
  var stringifyNumber = require_stringifyNumber();
3078
3119
  var intIdentify = (value2) => typeof value2 === "bigint" || Number.isInteger(value2);
@@ -3149,9 +3190,9 @@ var require_int2 = __commonJS({
3149
3190
  }
3150
3191
  });
3151
3192
 
3152
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js
3193
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
3153
3194
  var require_set = __commonJS({
3154
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
3195
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
3155
3196
  "use strict";
3156
3197
  var identity = require_identity();
3157
3198
  var Pair = require_Pair();
@@ -3238,9 +3279,9 @@ var require_set = __commonJS({
3238
3279
  }
3239
3280
  });
3240
3281
 
3241
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3282
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3242
3283
  var require_timestamp = __commonJS({
3243
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
3284
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
3244
3285
  "use strict";
3245
3286
  var stringifyNumber = require_stringifyNumber();
3246
3287
  function parseSexagesimal(str, asBigInt) {
@@ -3318,7 +3359,7 @@ var require_timestamp = __commonJS({
3318
3359
  }
3319
3360
  return new Date(date);
3320
3361
  },
3321
- stringify: ({ value: value2 }) => value2.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
3362
+ stringify: ({ value: value2 }) => value2.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
3322
3363
  };
3323
3364
  exports2.floatTime = floatTime;
3324
3365
  exports2.intTime = intTime;
@@ -3326,9 +3367,9 @@ var require_timestamp = __commonJS({
3326
3367
  }
3327
3368
  });
3328
3369
 
3329
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3370
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3330
3371
  var require_schema3 = __commonJS({
3331
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
3372
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
3332
3373
  "use strict";
3333
3374
  var map4 = require_map();
3334
3375
  var _null = require_null();
@@ -3338,6 +3379,7 @@ var require_schema3 = __commonJS({
3338
3379
  var bool = require_bool2();
3339
3380
  var float = require_float2();
3340
3381
  var int = require_int2();
3382
+ var merge2 = require_merge();
3341
3383
  var omap = require_omap();
3342
3384
  var pairs = require_pairs();
3343
3385
  var set = require_set();
@@ -3357,6 +3399,7 @@ var require_schema3 = __commonJS({
3357
3399
  float.floatExp,
3358
3400
  float.float,
3359
3401
  binary.binary,
3402
+ merge2.merge,
3360
3403
  omap.omap,
3361
3404
  pairs.pairs,
3362
3405
  set.set,
@@ -3368,9 +3411,9 @@ var require_schema3 = __commonJS({
3368
3411
  }
3369
3412
  });
3370
3413
 
3371
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js
3414
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/tags.js
3372
3415
  var require_tags = __commonJS({
3373
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js"(exports2) {
3416
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/tags.js"(exports2) {
3374
3417
  "use strict";
3375
3418
  var map4 = require_map();
3376
3419
  var _null = require_null();
@@ -3382,6 +3425,7 @@ var require_tags = __commonJS({
3382
3425
  var schema = require_schema();
3383
3426
  var schema$1 = require_schema2();
3384
3427
  var binary = require_binary();
3428
+ var merge2 = require_merge();
3385
3429
  var omap = require_omap();
3386
3430
  var pairs = require_pairs();
3387
3431
  var schema$2 = require_schema3();
@@ -3406,6 +3450,7 @@ var require_tags = __commonJS({
3406
3450
  intOct: int.intOct,
3407
3451
  intTime: timestamp.intTime,
3408
3452
  map: map4.map,
3453
+ merge: merge2.merge,
3409
3454
  null: _null.nullTag,
3410
3455
  omap: omap.omap,
3411
3456
  pairs: pairs.pairs,
@@ -3415,13 +3460,18 @@ var require_tags = __commonJS({
3415
3460
  };
3416
3461
  var coreKnownTags = {
3417
3462
  "tag:yaml.org,2002:binary": binary.binary,
3463
+ "tag:yaml.org,2002:merge": merge2.merge,
3418
3464
  "tag:yaml.org,2002:omap": omap.omap,
3419
3465
  "tag:yaml.org,2002:pairs": pairs.pairs,
3420
3466
  "tag:yaml.org,2002:set": set.set,
3421
3467
  "tag:yaml.org,2002:timestamp": timestamp.timestamp
3422
3468
  };
3423
- function getTags(customTags, schemaName) {
3424
- let tags = schemas.get(schemaName);
3469
+ function getTags(customTags, schemaName, addMergeTag) {
3470
+ const schemaTags = schemas.get(schemaName);
3471
+ if (schemaTags && !customTags) {
3472
+ return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
3473
+ }
3474
+ let tags = schemaTags;
3425
3475
  if (!tags) {
3426
3476
  if (Array.isArray(customTags))
3427
3477
  tags = [];
@@ -3436,24 +3486,28 @@ var require_tags = __commonJS({
3436
3486
  } else if (typeof customTags === "function") {
3437
3487
  tags = customTags(tags.slice());
3438
3488
  }
3439
- return tags.map((tag2) => {
3440
- if (typeof tag2 !== "string")
3441
- return tag2;
3442
- const tagObj = tagsByName[tag2];
3443
- if (tagObj)
3444
- return tagObj;
3445
- const keys2 = Object.keys(tagsByName).map((key) => JSON.stringify(key)).join(", ");
3446
- throw new Error(`Unknown custom tag "${tag2}"; use one of ${keys2}`);
3447
- });
3489
+ if (addMergeTag)
3490
+ tags = tags.concat(merge2.merge);
3491
+ return tags.reduce((tags2, tag2) => {
3492
+ const tagObj = typeof tag2 === "string" ? tagsByName[tag2] : tag2;
3493
+ if (!tagObj) {
3494
+ const tagName = JSON.stringify(tag2);
3495
+ const keys2 = Object.keys(tagsByName).map((key) => JSON.stringify(key)).join(", ");
3496
+ throw new Error(`Unknown custom tag ${tagName}; use one of ${keys2}`);
3497
+ }
3498
+ if (!tags2.includes(tagObj))
3499
+ tags2.push(tagObj);
3500
+ return tags2;
3501
+ }, []);
3448
3502
  }
3449
3503
  exports2.coreKnownTags = coreKnownTags;
3450
3504
  exports2.getTags = getTags;
3451
3505
  }
3452
3506
  });
3453
3507
 
3454
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js
3508
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/Schema.js
3455
3509
  var require_Schema = __commonJS({
3456
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js"(exports2) {
3510
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/schema/Schema.js"(exports2) {
3457
3511
  "use strict";
3458
3512
  var identity = require_identity();
3459
3513
  var map4 = require_map();
@@ -3464,10 +3518,9 @@ var require_Schema = __commonJS({
3464
3518
  var Schema2 = class _Schema {
3465
3519
  constructor({ compat, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
3466
3520
  this.compat = Array.isArray(compat) ? tags.getTags(compat, "compat") : compat ? tags.getTags(null, compat) : null;
3467
- this.merge = !!merge2;
3468
3521
  this.name = typeof schema === "string" && schema || "core";
3469
3522
  this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
3470
- this.tags = tags.getTags(customTags, this.name);
3523
+ this.tags = tags.getTags(customTags, this.name, merge2);
3471
3524
  this.toStringOptions = toStringDefaults ?? null;
3472
3525
  Object.defineProperty(this, identity.MAP, { value: map4.map });
3473
3526
  Object.defineProperty(this, identity.SCALAR, { value: string.string });
@@ -3484,9 +3537,9 @@ var require_Schema = __commonJS({
3484
3537
  }
3485
3538
  });
3486
3539
 
3487
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js
3540
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyDocument.js
3488
3541
  var require_stringifyDocument = __commonJS({
3489
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
3542
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
3490
3543
  "use strict";
3491
3544
  var identity = require_identity();
3492
3545
  var stringify2 = require_stringify();
@@ -3565,9 +3618,9 @@ var require_stringifyDocument = __commonJS({
3565
3618
  }
3566
3619
  });
3567
3620
 
3568
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js
3621
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/Document.js
3569
3622
  var require_Document = __commonJS({
3570
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js"(exports2) {
3623
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/doc/Document.js"(exports2) {
3571
3624
  "use strict";
3572
3625
  var Alias = require_Alias();
3573
3626
  var Collection = require_Collection();
@@ -3600,6 +3653,7 @@ var require_Document = __commonJS({
3600
3653
  logLevel: "warn",
3601
3654
  prettyErrors: true,
3602
3655
  strict: true,
3656
+ stringKeys: false,
3603
3657
  uniqueKeys: true,
3604
3658
  version: "1.2"
3605
3659
  }, options2);
@@ -3801,7 +3855,7 @@ var require_Document = __commonJS({
3801
3855
  this.directives.yaml.version = "1.1";
3802
3856
  else
3803
3857
  this.directives = new directives.Directives({ version: "1.1" });
3804
- opt = { merge: true, resolveKnownTags: false, schema: "yaml-1.1" };
3858
+ opt = { resolveKnownTags: false, schema: "yaml-1.1" };
3805
3859
  break;
3806
3860
  case "1.2":
3807
3861
  case "next":
@@ -3809,7 +3863,7 @@ var require_Document = __commonJS({
3809
3863
  this.directives.yaml.version = version;
3810
3864
  else
3811
3865
  this.directives = new directives.Directives({ version });
3812
- opt = { merge: false, resolveKnownTags: true, schema: "core" };
3866
+ opt = { resolveKnownTags: true, schema: "core" };
3813
3867
  break;
3814
3868
  case null:
3815
3869
  if (this.directives)
@@ -3873,9 +3927,9 @@ var require_Document = __commonJS({
3873
3927
  }
3874
3928
  });
3875
3929
 
3876
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js
3930
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/errors.js
3877
3931
  var require_errors = __commonJS({
3878
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js"(exports2) {
3932
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/errors.js"(exports2) {
3879
3933
  "use strict";
3880
3934
  var YAMLError = class extends Error {
3881
3935
  constructor(name, pos, code3, message) {
@@ -3938,9 +3992,9 @@ ${pointer}
3938
3992
  }
3939
3993
  });
3940
3994
 
3941
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js
3995
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-props.js
3942
3996
  var require_resolve_props = __commonJS({
3943
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
3997
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
3944
3998
  "use strict";
3945
3999
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3946
4000
  let spaceBefore = false;
@@ -3949,11 +4003,11 @@ var require_resolve_props = __commonJS({
3949
4003
  let comment = "";
3950
4004
  let commentSep = "";
3951
4005
  let hasNewline = false;
3952
- let hasNewlineAfterProp = false;
3953
4006
  let reqSpace = false;
3954
4007
  let tab = null;
3955
4008
  let anchor = null;
3956
4009
  let tag2 = null;
4010
+ let newlineAfterProp = null;
3957
4011
  let comma = null;
3958
4012
  let found = null;
3959
4013
  let start = null;
@@ -3999,7 +4053,7 @@ var require_resolve_props = __commonJS({
3999
4053
  atNewline = true;
4000
4054
  hasNewline = true;
4001
4055
  if (anchor || tag2)
4002
- hasNewlineAfterProp = true;
4056
+ newlineAfterProp = token;
4003
4057
  hasSpace = true;
4004
4058
  break;
4005
4059
  case "anchor":
@@ -4063,9 +4117,9 @@ var require_resolve_props = __commonJS({
4063
4117
  spaceBefore,
4064
4118
  comment,
4065
4119
  hasNewline,
4066
- hasNewlineAfterProp,
4067
4120
  anchor,
4068
4121
  tag: tag2,
4122
+ newlineAfterProp,
4069
4123
  end,
4070
4124
  start: start ?? end
4071
4125
  };
@@ -4074,9 +4128,9 @@ var require_resolve_props = __commonJS({
4074
4128
  }
4075
4129
  });
4076
4130
 
4077
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js
4131
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-contains-newline.js
4078
4132
  var require_util_contains_newline = __commonJS({
4079
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
4133
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
4080
4134
  "use strict";
4081
4135
  function containsNewline(key) {
4082
4136
  if (!key)
@@ -4116,9 +4170,9 @@ var require_util_contains_newline = __commonJS({
4116
4170
  }
4117
4171
  });
4118
4172
 
4119
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js
4173
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
4120
4174
  var require_util_flow_indent_check = __commonJS({
4121
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
4175
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
4122
4176
  "use strict";
4123
4177
  var utilContainsNewline = require_util_contains_newline();
4124
4178
  function flowIndentCheck(indent2, fc, onError) {
@@ -4134,25 +4188,25 @@ var require_util_flow_indent_check = __commonJS({
4134
4188
  }
4135
4189
  });
4136
4190
 
4137
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js
4191
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-map-includes.js
4138
4192
  var require_util_map_includes = __commonJS({
4139
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
4193
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
4140
4194
  "use strict";
4141
4195
  var identity = require_identity();
4142
4196
  function mapIncludes(ctx, items, search2) {
4143
4197
  const { uniqueKeys } = ctx.options;
4144
4198
  if (uniqueKeys === false)
4145
4199
  return false;
4146
- const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity.isScalar(a) && identity.isScalar(b) && a.value === b.value && !(a.value === "<<" && ctx.schema.merge);
4200
+ const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity.isScalar(a) && identity.isScalar(b) && a.value === b.value;
4147
4201
  return items.some((pair) => isEqual(pair.key, search2));
4148
4202
  }
4149
4203
  exports2.mapIncludes = mapIncludes;
4150
4204
  }
4151
4205
  });
4152
4206
 
4153
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js
4207
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-map.js
4154
4208
  var require_resolve_block_map = __commonJS({
4155
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
4209
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
4156
4210
  "use strict";
4157
4211
  var Pair = require_Pair();
4158
4212
  var YAMLMap = require_YAMLMap();
@@ -4197,16 +4251,18 @@ var require_resolve_block_map = __commonJS({
4197
4251
  }
4198
4252
  continue;
4199
4253
  }
4200
- if (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) {
4254
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key)) {
4201
4255
  onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
4202
4256
  }
4203
4257
  } else if (((_a = keyProps.found) == null ? void 0 : _a.indent) !== bm.indent) {
4204
4258
  onError(offset, "BAD_INDENT", startColMsg);
4205
4259
  }
4260
+ ctx.atKey = true;
4206
4261
  const keyStart = keyProps.end;
4207
4262
  const keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
4208
4263
  if (ctx.schema.compat)
4209
4264
  utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError);
4265
+ ctx.atKey = false;
4210
4266
  if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
4211
4267
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
4212
4268
  const valueProps = resolveProps.resolveProps(sep ?? [], {
@@ -4257,9 +4313,9 @@ var require_resolve_block_map = __commonJS({
4257
4313
  }
4258
4314
  });
4259
4315
 
4260
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js
4316
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-seq.js
4261
4317
  var require_resolve_block_seq = __commonJS({
4262
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
4318
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
4263
4319
  "use strict";
4264
4320
  var YAMLSeq = require_YAMLSeq();
4265
4321
  var resolveProps = require_resolve_props();
@@ -4269,6 +4325,8 @@ var require_resolve_block_seq = __commonJS({
4269
4325
  const seq = new NodeClass(ctx.schema);
4270
4326
  if (ctx.atRoot)
4271
4327
  ctx.atRoot = false;
4328
+ if (ctx.atKey)
4329
+ ctx.atKey = false;
4272
4330
  let offset = bs.offset;
4273
4331
  let commentEnd = null;
4274
4332
  for (const { start, value: value2 } of bs.items) {
@@ -4306,9 +4364,9 @@ var require_resolve_block_seq = __commonJS({
4306
4364
  }
4307
4365
  });
4308
4366
 
4309
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js
4367
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-end.js
4310
4368
  var require_resolve_end = __commonJS({
4311
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
4369
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
4312
4370
  "use strict";
4313
4371
  function resolveEnd(end, offset, reqSpace, onError) {
4314
4372
  let comment = "";
@@ -4349,9 +4407,9 @@ var require_resolve_end = __commonJS({
4349
4407
  }
4350
4408
  });
4351
4409
 
4352
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js
4410
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
4353
4411
  var require_resolve_flow_collection = __commonJS({
4354
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
4412
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
4355
4413
  "use strict";
4356
4414
  var identity = require_identity();
4357
4415
  var Pair = require_Pair();
@@ -4372,6 +4430,8 @@ var require_resolve_flow_collection = __commonJS({
4372
4430
  const atRoot = ctx.atRoot;
4373
4431
  if (atRoot)
4374
4432
  ctx.atRoot = false;
4433
+ if (ctx.atKey)
4434
+ ctx.atKey = false;
4375
4435
  let offset = fc.offset + fc.start.source.length;
4376
4436
  for (let i = 0; i < fc.items.length; ++i) {
4377
4437
  const collItem = fc.items[i];
@@ -4447,10 +4507,12 @@ var require_resolve_flow_collection = __commonJS({
4447
4507
  if (isBlock(value2))
4448
4508
  onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
4449
4509
  } else {
4510
+ ctx.atKey = true;
4450
4511
  const keyStart = props.end;
4451
4512
  const keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
4452
4513
  if (isBlock(key))
4453
4514
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
4515
+ ctx.atKey = false;
4454
4516
  const valueProps = resolveProps.resolveProps(sep ?? [], {
4455
4517
  flow: fcName,
4456
4518
  indicator: "map-value-ind",
@@ -4502,6 +4564,8 @@ var require_resolve_flow_collection = __commonJS({
4502
4564
  const map4 = new YAMLMap.YAMLMap(ctx.schema);
4503
4565
  map4.flow = true;
4504
4566
  map4.items.push(pair);
4567
+ const endRange = (valueNode ?? keyNode).range;
4568
+ map4.range = [keyNode.range[0], endRange[1], endRange[2]];
4505
4569
  coll.items.push(map4);
4506
4570
  }
4507
4571
  offset = valueNode ? valueNode.range[2] : valueProps.end;
@@ -4537,9 +4601,9 @@ var require_resolve_flow_collection = __commonJS({
4537
4601
  }
4538
4602
  });
4539
4603
 
4540
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js
4604
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-collection.js
4541
4605
  var require_compose_collection = __commonJS({
4542
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
4606
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
4543
4607
  "use strict";
4544
4608
  var identity = require_identity();
4545
4609
  var Scalar = require_Scalar();
@@ -4559,11 +4623,20 @@ var require_compose_collection = __commonJS({
4559
4623
  coll.tag = tagName;
4560
4624
  return coll;
4561
4625
  }
4562
- function composeCollection(CN, ctx, token, tagToken, onError) {
4626
+ function composeCollection(CN, ctx, token, props, onError) {
4563
4627
  var _a;
4628
+ const tagToken = props.tag;
4564
4629
  const tagName = !tagToken ? null : ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg));
4630
+ if (token.type === "block-seq") {
4631
+ const { anchor, newlineAfterProp: nl } = props;
4632
+ const lastProp = anchor && tagToken ? anchor.offset > tagToken.offset ? anchor : tagToken : anchor ?? tagToken;
4633
+ if (lastProp && (!nl || nl.offset < lastProp.offset)) {
4634
+ const message = "Missing newline after block sequence props";
4635
+ onError(lastProp, "MISSING_CHAR", message);
4636
+ }
4637
+ }
4565
4638
  const expType = token.type === "block-map" ? "map" : token.type === "block-seq" ? "seq" : token.start.source === "{" ? "map" : "seq";
4566
- if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq" || !expType) {
4639
+ if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq") {
4567
4640
  return resolveCollection(CN, ctx, token, onError, tagName);
4568
4641
  }
4569
4642
  let tag2 = ctx.schema.tags.find((t) => t.tag === tagName && t.collection === expType);
@@ -4594,9 +4667,9 @@ var require_compose_collection = __commonJS({
4594
4667
  }
4595
4668
  });
4596
4669
 
4597
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js
4670
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
4598
4671
  var require_resolve_block_scalar = __commonJS({
4599
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
4672
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
4600
4673
  "use strict";
4601
4674
  var Scalar = require_Scalar();
4602
4675
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -4777,9 +4850,9 @@ var require_resolve_block_scalar = __commonJS({
4777
4850
  }
4778
4851
  });
4779
4852
 
4780
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4853
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4781
4854
  var require_resolve_flow_scalar = __commonJS({
4782
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
4855
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
4783
4856
  "use strict";
4784
4857
  var Scalar = require_Scalar();
4785
4858
  var resolveEnd = require_resolve_end();
@@ -4858,7 +4931,7 @@ var require_resolve_flow_scalar = __commonJS({
4858
4931
  try {
4859
4932
  first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
4860
4933
  line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
4861
- } catch (_2) {
4934
+ } catch {
4862
4935
  first = /(.*?)[ \t]*\r?\n/sy;
4863
4936
  line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
4864
4937
  }
@@ -4996,9 +5069,9 @@ var require_resolve_flow_scalar = __commonJS({
4996
5069
  }
4997
5070
  });
4998
5071
 
4999
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js
5072
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-scalar.js
5000
5073
  var require_compose_scalar = __commonJS({
5001
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
5074
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
5002
5075
  "use strict";
5003
5076
  var identity = require_identity();
5004
5077
  var Scalar = require_Scalar();
@@ -5007,7 +5080,15 @@ var require_compose_scalar = __commonJS({
5007
5080
  function composeScalar(ctx, token, tagToken, onError) {
5008
5081
  const { value: value2, type, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
5009
5082
  const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
5010
- const tag2 = tagToken && tagName ? findScalarTagByName(ctx.schema, value2, tagName, tagToken, onError) : token.type === "scalar" ? findScalarTagByTest(ctx, value2, token, onError) : ctx.schema[identity.SCALAR];
5083
+ let tag2;
5084
+ if (ctx.options.stringKeys && ctx.atKey) {
5085
+ tag2 = ctx.schema[identity.SCALAR];
5086
+ } else if (tagName)
5087
+ tag2 = findScalarTagByName(ctx.schema, value2, tagName, tagToken, onError);
5088
+ else if (token.type === "scalar")
5089
+ tag2 = findScalarTagByTest(ctx, value2, token, onError);
5090
+ else
5091
+ tag2 = ctx.schema[identity.SCALAR];
5011
5092
  let scalar;
5012
5093
  try {
5013
5094
  const res = tag2.resolve(value2, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options);
@@ -5053,10 +5134,10 @@ var require_compose_scalar = __commonJS({
5053
5134
  onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str");
5054
5135
  return schema[identity.SCALAR];
5055
5136
  }
5056
- function findScalarTagByTest({ directives, schema }, value2, token, onError) {
5137
+ function findScalarTagByTest({ atKey, directives, schema }, value2, token, onError) {
5057
5138
  const tag2 = schema.tags.find((tag3) => {
5058
5139
  var _a;
5059
- return tag3.default && ((_a = tag3.test) == null ? void 0 : _a.test(value2));
5140
+ return (tag3.default === true || atKey && tag3.default === "key") && ((_a = tag3.test) == null ? void 0 : _a.test(value2));
5060
5141
  }) || schema[identity.SCALAR];
5061
5142
  if (schema.compat) {
5062
5143
  const compat = schema.compat.find((tag3) => {
@@ -5076,9 +5157,9 @@ var require_compose_scalar = __commonJS({
5076
5157
  }
5077
5158
  });
5078
5159
 
5079
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js
5160
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
5080
5161
  var require_util_empty_scalar_position = __commonJS({
5081
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
5162
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
5082
5163
  "use strict";
5083
5164
  function emptyScalarPosition(offset, before, pos) {
5084
5165
  if (before) {
@@ -5107,17 +5188,19 @@ var require_util_empty_scalar_position = __commonJS({
5107
5188
  }
5108
5189
  });
5109
5190
 
5110
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js
5191
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-node.js
5111
5192
  var require_compose_node = __commonJS({
5112
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
5193
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
5113
5194
  "use strict";
5114
5195
  var Alias = require_Alias();
5196
+ var identity = require_identity();
5115
5197
  var composeCollection = require_compose_collection();
5116
5198
  var composeScalar = require_compose_scalar();
5117
5199
  var resolveEnd = require_resolve_end();
5118
5200
  var utilEmptyScalarPosition = require_util_empty_scalar_position();
5119
5201
  var CN = { composeNode, composeEmptyNode };
5120
5202
  function composeNode(ctx, token, props, onError) {
5203
+ const atKey = ctx.atKey;
5121
5204
  const { spaceBefore, comment, anchor, tag: tag2 } = props;
5122
5205
  let node2;
5123
5206
  let isSrcToken = true;
@@ -5138,7 +5221,7 @@ var require_compose_node = __commonJS({
5138
5221
  case "block-map":
5139
5222
  case "block-seq":
5140
5223
  case "flow-collection":
5141
- node2 = composeCollection.composeCollection(CN, ctx, token, tag2, onError);
5224
+ node2 = composeCollection.composeCollection(CN, ctx, token, props, onError);
5142
5225
  if (anchor)
5143
5226
  node2.anchor = anchor.source.substring(1);
5144
5227
  break;
@@ -5151,6 +5234,10 @@ var require_compose_node = __commonJS({
5151
5234
  }
5152
5235
  if (anchor && node2.anchor === "")
5153
5236
  onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
5237
+ if (atKey && ctx.options.stringKeys && (!identity.isScalar(node2) || typeof node2.value !== "string" || node2.tag && node2.tag !== "tag:yaml.org,2002:str")) {
5238
+ const msg = "With stringKeys, all keys must be strings";
5239
+ onError(tag2 ?? token, "NON_STRING_KEY", msg);
5240
+ }
5154
5241
  if (spaceBefore)
5155
5242
  node2.spaceBefore = true;
5156
5243
  if (comment) {
@@ -5202,9 +5289,9 @@ var require_compose_node = __commonJS({
5202
5289
  }
5203
5290
  });
5204
5291
 
5205
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js
5292
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-doc.js
5206
5293
  var require_compose_doc = __commonJS({
5207
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
5294
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
5208
5295
  "use strict";
5209
5296
  var Document = require_Document();
5210
5297
  var composeNode = require_compose_node();
@@ -5214,6 +5301,7 @@ var require_compose_doc = __commonJS({
5214
5301
  const opts = Object.assign({ _directives: directives }, options2);
5215
5302
  const doc = new Document.Document(void 0, opts);
5216
5303
  const ctx = {
5304
+ atKey: false,
5217
5305
  atRoot: true,
5218
5306
  directives: doc.directives,
5219
5307
  options: doc.options,
@@ -5244,9 +5332,9 @@ var require_compose_doc = __commonJS({
5244
5332
  }
5245
5333
  });
5246
5334
 
5247
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js
5335
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/composer.js
5248
5336
  var require_composer = __commonJS({
5249
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js"(exports2) {
5337
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/compose/composer.js"(exports2) {
5250
5338
  "use strict";
5251
5339
  var directives = require_directives();
5252
5340
  var Document = require_Document();
@@ -5450,9 +5538,9 @@ ${end.comment}` : end.comment;
5450
5538
  }
5451
5539
  });
5452
5540
 
5453
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js
5541
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-scalar.js
5454
5542
  var require_cst_scalar = __commonJS({
5455
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
5543
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
5456
5544
  "use strict";
5457
5545
  var resolveBlockScalar = require_resolve_block_scalar();
5458
5546
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -5635,9 +5723,9 @@ var require_cst_scalar = __commonJS({
5635
5723
  }
5636
5724
  });
5637
5725
 
5638
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js
5726
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-stringify.js
5639
5727
  var require_cst_stringify = __commonJS({
5640
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
5728
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
5641
5729
  "use strict";
5642
5730
  var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
5643
5731
  function stringifyToken(token) {
@@ -5696,9 +5784,9 @@ var require_cst_stringify = __commonJS({
5696
5784
  }
5697
5785
  });
5698
5786
 
5699
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js
5787
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-visit.js
5700
5788
  var require_cst_visit = __commonJS({
5701
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
5789
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
5702
5790
  "use strict";
5703
5791
  var BREAK = Symbol("break visit");
5704
5792
  var SKIP2 = Symbol("skip children");
@@ -5758,9 +5846,9 @@ var require_cst_visit = __commonJS({
5758
5846
  }
5759
5847
  });
5760
5848
 
5761
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js
5849
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst.js
5762
5850
  var require_cst = __commonJS({
5763
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js"(exports2) {
5851
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/cst.js"(exports2) {
5764
5852
  "use strict";
5765
5853
  var cstScalar = require_cst_scalar();
5766
5854
  var cstStringify = require_cst_stringify();
@@ -5860,9 +5948,9 @@ var require_cst = __commonJS({
5860
5948
  }
5861
5949
  });
5862
5950
 
5863
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js
5951
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/lexer.js
5864
5952
  var require_lexer = __commonJS({
5865
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js"(exports2) {
5953
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/lexer.js"(exports2) {
5866
5954
  "use strict";
5867
5955
  var cst = require_cst();
5868
5956
  function isEmpty(ch) {
@@ -6042,14 +6130,11 @@ var require_lexer = __commonJS({
6042
6130
  if (!this.atEnd && !this.hasChars(4))
6043
6131
  return this.setNext("line-start");
6044
6132
  const s2 = this.peek(3);
6045
- if (s2 === "---" && isEmpty(this.charAt(3))) {
6133
+ if ((s2 === "---" || s2 === "...") && isEmpty(this.charAt(3))) {
6046
6134
  yield* this.pushCount(3);
6047
6135
  this.indentValue = 0;
6048
6136
  this.indentNext = 0;
6049
- return "doc";
6050
- } else if (s2 === "..." && isEmpty(this.charAt(3))) {
6051
- yield* this.pushCount(3);
6052
- return "stream";
6137
+ return s2 === "---" ? "doc" : "stream";
6053
6138
  }
6054
6139
  }
6055
6140
  this.indentValue = yield* this.pushSpaces(false);
@@ -6442,9 +6527,9 @@ var require_lexer = __commonJS({
6442
6527
  }
6443
6528
  });
6444
6529
 
6445
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js
6530
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/line-counter.js
6446
6531
  var require_line_counter = __commonJS({
6447
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
6532
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
6448
6533
  "use strict";
6449
6534
  var LineCounter = class {
6450
6535
  constructor() {
@@ -6473,9 +6558,9 @@ var require_line_counter = __commonJS({
6473
6558
  }
6474
6559
  });
6475
6560
 
6476
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js
6561
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/parser.js
6477
6562
  var require_parser = __commonJS({
6478
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js"(exports2) {
6563
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/parse/parser.js"(exports2) {
6479
6564
  "use strict";
6480
6565
  var cst = require_cst();
6481
6566
  var lexer2 = require_lexer();
@@ -7006,7 +7091,8 @@ var require_parser = __commonJS({
7006
7091
  const key = it.key;
7007
7092
  const sep = it.sep;
7008
7093
  sep.push(this.sourceToken);
7009
- delete it.key, delete it.sep;
7094
+ delete it.key;
7095
+ delete it.sep;
7010
7096
  this.stack.push({
7011
7097
  type: "block-map",
7012
7098
  offset: this.offset,
@@ -7331,14 +7417,15 @@ var require_parser = __commonJS({
7331
7417
  }
7332
7418
  });
7333
7419
 
7334
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js
7420
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/public-api.js
7335
7421
  var require_public_api = __commonJS({
7336
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js"(exports2) {
7422
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/public-api.js"(exports2) {
7337
7423
  "use strict";
7338
7424
  var composer = require_composer();
7339
7425
  var Document = require_Document();
7340
7426
  var errors = require_errors();
7341
7427
  var log = require_log();
7428
+ var identity = require_identity();
7342
7429
  var lineCounter = require_line_counter();
7343
7430
  var parser2 = require_parser();
7344
7431
  function parseOptions(options2) {
@@ -7416,6 +7503,8 @@ var require_public_api = __commonJS({
7416
7503
  if (!keepUndefined)
7417
7504
  return void 0;
7418
7505
  }
7506
+ if (identity.isDocument(value2) && !_replacer)
7507
+ return value2.toString(options2);
7419
7508
  return new Document.Document(value2, _replacer, options2).toString(options2);
7420
7509
  }
7421
7510
  exports2.parse = parse3;
@@ -7425,9 +7514,9 @@ var require_public_api = __commonJS({
7425
7514
  }
7426
7515
  });
7427
7516
 
7428
- // node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js
7517
+ // node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/index.js
7429
7518
  var require_dist = __commonJS({
7430
- "node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js"(exports2) {
7519
+ "node_modules/.pnpm/yaml@2.6.1/node_modules/yaml/dist/index.js"(exports2) {
7431
7520
  "use strict";
7432
7521
  var composer = require_composer();
7433
7522
  var Document = require_Document();
@@ -13784,10 +13873,10 @@ var init_micromark_extension_gfm = __esm({
13784
13873
  }
13785
13874
  });
13786
13875
 
13787
- // node_modules/.pnpm/remark-gfm@4.0.0/node_modules/remark-gfm/lib/index.js
13876
+ // node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
13788
13877
  function remarkGfm(options2) {
13789
13878
  const self2 = (
13790
- /** @type {Processor} */
13879
+ /** @type {Processor<Root>} */
13791
13880
  this
13792
13881
  );
13793
13882
  const settings = options2 || emptyOptions3;
@@ -13801,20 +13890,20 @@ function remarkGfm(options2) {
13801
13890
  }
13802
13891
  var emptyOptions3;
13803
13892
  var init_lib15 = __esm({
13804
- "node_modules/.pnpm/remark-gfm@4.0.0/node_modules/remark-gfm/lib/index.js"() {
13893
+ "node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js"() {
13805
13894
  init_mdast_util_gfm();
13806
13895
  init_micromark_extension_gfm();
13807
13896
  emptyOptions3 = {};
13808
13897
  }
13809
13898
  });
13810
13899
 
13811
- // node_modules/.pnpm/remark-gfm@4.0.0/node_modules/remark-gfm/index.js
13900
+ // node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/index.js
13812
13901
  var remark_gfm_exports = {};
13813
13902
  __export(remark_gfm_exports, {
13814
13903
  default: () => remarkGfm
13815
13904
  });
13816
13905
  var init_remark_gfm = __esm({
13817
- "node_modules/.pnpm/remark-gfm@4.0.0/node_modules/remark-gfm/index.js"() {
13906
+ "node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/index.js"() {
13818
13907
  init_lib15();
13819
13908
  }
13820
13909
  });
@@ -14296,7 +14385,7 @@ function extendConfig(baseConfigExport, serverConfigExport) {
14296
14385
  }
14297
14386
 
14298
14387
  // sw-reg:@qwik-router-sw-register-build
14299
- var qwik_router_sw_register_build_default = '"serviceWorker"in navigator?navigator.serviceWorker.register("__url").catch(r=>console.error(r)):console.log("Service worker not supported in this browser.")';
14388
+ 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)';
14300
14389
 
14301
14390
  // packages/qwik-router/src/buildtime/vite/plugin.ts
14302
14391
  var import_node_fs8 = __toESM(require("node:fs"), 1);
@@ -17299,17 +17388,17 @@ function frontmatterAttrsToDocumentHead(attrs) {
17299
17388
  if (typeof attrValue === "object") {
17300
17389
  for (const opengraph of Array.isArray(attrValue) ? attrValue : [attrValue]) {
17301
17390
  if (opengraph != null && typeof opengraph === "object" && !Array.isArray(opengraph)) {
17302
- for (const [property, content] of Object.entries(opengraph)) {
17303
- if ((property === "title" || property === "description") && content === true) {
17304
- if (attrNames.includes(property)) {
17391
+ for (const [property2, content] of Object.entries(opengraph)) {
17392
+ if ((property2 === "title" || property2 === "description") && content === true) {
17393
+ if (attrNames.includes(property2)) {
17305
17394
  head.meta.push({
17306
- property: `og:${property}`,
17307
- content: (_a = attrs[property]) == null ? void 0 : _a.toString()
17395
+ property: `og:${property2}`,
17396
+ content: (_a = attrs[property2]) == null ? void 0 : _a.toString()
17308
17397
  });
17309
17398
  }
17310
17399
  } else {
17311
17400
  head.meta.push({
17312
- property: `og:${property}`,
17401
+ property: `og:${property2}`,
17313
17402
  content: content == null ? void 0 : content.toString()
17314
17403
  });
17315
17404
  }
@@ -17386,14 +17475,14 @@ function slug(value2, maintainCase) {
17386
17475
  return value2.replace(regex, "").replace(/ /g, "-");
17387
17476
  }
17388
17477
 
17389
- // node_modules/.pnpm/estree-util-value-to-estree@3.1.2/node_modules/estree-util-value-to-estree/dist/estree-util-value-to-estree.js
17478
+ // 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
17390
17479
  function identifier(name) {
17391
17480
  return { type: "Identifier", name };
17392
17481
  }
17393
17482
  function literal(value2) {
17394
17483
  return { type: "Literal", value: value2 };
17395
17484
  }
17396
- function methodCall(object, property, args) {
17485
+ function methodCall(object, name, args) {
17397
17486
  return {
17398
17487
  type: "CallExpression",
17399
17488
  optional: false,
@@ -17402,7 +17491,7 @@ function methodCall(object, property, args) {
17402
17491
  computed: false,
17403
17492
  optional: false,
17404
17493
  object,
17405
- property: identifier(property)
17494
+ property: identifier(name)
17406
17495
  },
17407
17496
  arguments: args
17408
17497
  };
@@ -17437,8 +17526,15 @@ function isStringReconstructable(value2) {
17437
17526
  function isValueReconstructable(value2) {
17438
17527
  return value2 instanceof Boolean || value2 instanceof Date || value2 instanceof Number || value2 instanceof String;
17439
17528
  }
17529
+ var wellKnownSymbols = /* @__PURE__ */ new Map();
17530
+ for (const name of Reflect.ownKeys(Symbol)) {
17531
+ const value2 = Symbol[name];
17532
+ if (typeof value2 === "symbol") {
17533
+ wellKnownSymbols.set(value2, name);
17534
+ }
17535
+ }
17440
17536
  function isTypedArray(value2) {
17441
- 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;
17537
+ 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;
17442
17538
  }
17443
17539
  function compareContexts(a, b) {
17444
17540
  const aReferencedByB = a.referencedBy.has(b.value);
@@ -17465,6 +17561,65 @@ function replaceAssignment(expression, assignment) {
17465
17561
  node2.right = expression;
17466
17562
  return assignment;
17467
17563
  }
17564
+ function symbolToEstree(symbol) {
17565
+ const name = wellKnownSymbols.get(symbol);
17566
+ if (name) {
17567
+ return {
17568
+ type: "MemberExpression",
17569
+ computed: false,
17570
+ optional: false,
17571
+ object: identifier("Symbol"),
17572
+ property: identifier(name)
17573
+ };
17574
+ }
17575
+ if (symbol.description && symbol === Symbol.for(symbol.description)) {
17576
+ return methodCall(identifier("Symbol"), "for", [literal(symbol.description)]);
17577
+ }
17578
+ throw new TypeError(`Only global symbols are supported, got: ${String(symbol)}`, {
17579
+ cause: symbol
17580
+ });
17581
+ }
17582
+ function property(key, value2) {
17583
+ const isString = typeof key === "string";
17584
+ return {
17585
+ type: "Property",
17586
+ method: false,
17587
+ shorthand: false,
17588
+ computed: key === "__proto__" || !isString,
17589
+ kind: "init",
17590
+ key: isString ? literal(key) : symbolToEstree(key),
17591
+ value: value2
17592
+ };
17593
+ }
17594
+ function temporalConstructor(name, values, calendar = "iso8601", defaultReferenceValue, referenceValue) {
17595
+ if (calendar && typeof calendar !== "string") {
17596
+ throw new Error(`Unsupported calendar: ${calendar}`, { cause: calendar });
17597
+ }
17598
+ const args = [];
17599
+ if (referenceValue != null && (calendar !== "iso8601" || referenceValue !== defaultReferenceValue)) {
17600
+ args.push(literal(referenceValue));
17601
+ }
17602
+ if (calendar !== "iso8601" || args.length !== 0) {
17603
+ args.unshift(literal(calendar));
17604
+ }
17605
+ for (let index = values.length - 1; index >= 0; index -= 1) {
17606
+ const value2 = values[index];
17607
+ if (value2 !== 0 && value2 !== 0n || args.length !== 0) {
17608
+ args.unshift(typeof value2 === "string" ? literal(value2) : processNumber(value2));
17609
+ }
17610
+ }
17611
+ return {
17612
+ type: "NewExpression",
17613
+ callee: {
17614
+ type: "MemberExpression",
17615
+ computed: false,
17616
+ optional: false,
17617
+ object: identifier("Temporal"),
17618
+ property: identifier(name)
17619
+ },
17620
+ arguments: args
17621
+ };
17622
+ }
17468
17623
  function valueToEstree(value2, options2 = {}) {
17469
17624
  const stack = [];
17470
17625
  const collectedContexts = /* @__PURE__ */ new Map();
@@ -17516,6 +17671,9 @@ function valueToEstree(value2, options2 = {}) {
17516
17671
  if (value2 instanceof RegExp) {
17517
17672
  return;
17518
17673
  }
17674
+ 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)) {
17675
+ return;
17676
+ }
17519
17677
  stack.push(val);
17520
17678
  if (val instanceof Map) {
17521
17679
  for (const pair of val) {
@@ -17548,10 +17706,7 @@ function valueToEstree(value2, options2 = {}) {
17548
17706
  return processNumber(val);
17549
17707
  }
17550
17708
  if (typeof val === "symbol") {
17551
- if (val.description && val === Symbol.for(val.description)) {
17552
- return methodCall(identifier("Symbol"), "for", [literal(val.description)]);
17553
- }
17554
- throw new TypeError(`Only global symbols are supported, got: ${String(val)}`, { cause: val });
17709
+ return symbolToEstree(val);
17555
17710
  }
17556
17711
  const context = collectedContexts.get(val);
17557
17712
  if (!isDeclaration && (context == null ? void 0 : context.name)) {
@@ -17587,6 +17742,66 @@ function valueToEstree(value2, options2 = {}) {
17587
17742
  arguments: [literal(String(val))]
17588
17743
  };
17589
17744
  }
17745
+ if (typeof Temporal !== "undefined") {
17746
+ if (val instanceof Temporal.Duration) {
17747
+ return temporalConstructor("Duration", [
17748
+ val.years,
17749
+ val.months,
17750
+ val.weeks,
17751
+ val.days,
17752
+ val.hours,
17753
+ val.minutes,
17754
+ val.seconds,
17755
+ val.milliseconds,
17756
+ val.microseconds,
17757
+ val.nanoseconds
17758
+ ]);
17759
+ }
17760
+ if (val instanceof Temporal.Instant) {
17761
+ return temporalConstructor("Instant", [val.epochNanoseconds]);
17762
+ }
17763
+ if (val instanceof Temporal.PlainDate) {
17764
+ const iso = val.getISOFields();
17765
+ return temporalConstructor("PlainDate", [iso.isoYear, iso.isoMonth, iso.isoDay], iso.calendar);
17766
+ }
17767
+ if (val instanceof Temporal.PlainDateTime) {
17768
+ const iso = val.getISOFields();
17769
+ return temporalConstructor("PlainDateTime", [
17770
+ iso.isoYear,
17771
+ iso.isoMonth,
17772
+ iso.isoDay,
17773
+ iso.isoHour,
17774
+ iso.isoMinute,
17775
+ iso.isoSecond,
17776
+ iso.isoMillisecond,
17777
+ iso.isoMicrosecond,
17778
+ iso.isoNanosecond
17779
+ ], iso.calendar);
17780
+ }
17781
+ if (val instanceof Temporal.PlainMonthDay) {
17782
+ const iso = val.getISOFields();
17783
+ return temporalConstructor("PlainMonthDay", [iso.isoMonth, iso.isoDay], iso.calendar, 1972, iso.isoYear);
17784
+ }
17785
+ if (val instanceof Temporal.PlainTime) {
17786
+ const iso = val.getISOFields();
17787
+ return temporalConstructor("PlainTime", [
17788
+ iso.isoHour,
17789
+ iso.isoMinute,
17790
+ iso.isoSecond,
17791
+ iso.isoMillisecond,
17792
+ iso.isoMicrosecond,
17793
+ iso.isoNanosecond
17794
+ ]);
17795
+ }
17796
+ if (val instanceof Temporal.PlainYearMonth) {
17797
+ const iso = val.getISOFields();
17798
+ return temporalConstructor("PlainYearMonth", [iso.isoYear, iso.isoMonth], iso.calendar, 1, iso.isoDay);
17799
+ }
17800
+ if (val instanceof Temporal.ZonedDateTime) {
17801
+ const iso = val.getISOFields();
17802
+ return temporalConstructor("ZonedDateTime", [val.epochNanoseconds, val.timeZoneId], iso.calendar);
17803
+ }
17804
+ }
17590
17805
  if (Array.isArray(val)) {
17591
17806
  const elements = Array.from({ length: val.length });
17592
17807
  let trimmable;
@@ -17694,40 +17909,84 @@ function valueToEstree(value2, options2 = {}) {
17694
17909
  });
17695
17910
  }
17696
17911
  const object = val;
17912
+ const propertyDescriptors = [];
17697
17913
  for (const key of Reflect.ownKeys(val)) {
17698
- const computed = typeof key !== "string";
17699
- const keyExpression = generate(key);
17700
17914
  const child = object[key];
17915
+ const { configurable, enumerable, writable } = Object.getOwnPropertyDescriptor(val, key);
17701
17916
  const childContext = collectedContexts.get(child);
17702
- if (context && childContext && namedContexts.indexOf(childContext) >= namedContexts.indexOf(context)) {
17703
- childContext.assignment = {
17704
- type: "AssignmentExpression",
17705
- operator: "=",
17706
- left: {
17707
- type: "MemberExpression",
17708
- computed: true,
17709
- optional: false,
17710
- object: identifier(context.name),
17711
- property: keyExpression
17712
- },
17713
- right: childContext.assignment || generate(child)
17714
- };
17917
+ if (!configurable || !enumerable || !writable) {
17918
+ const propertyDescriptor = [property("value", generate(child))];
17919
+ if (configurable) {
17920
+ propertyDescriptor.push(property("configurable", literal(true)));
17921
+ }
17922
+ if (enumerable) {
17923
+ propertyDescriptor.push(property("enumerable", literal(true)));
17924
+ }
17925
+ if (writable) {
17926
+ propertyDescriptor.push(property("writable", literal(true)));
17927
+ }
17928
+ propertyDescriptors.push([
17929
+ key,
17930
+ { type: "ObjectExpression", properties: propertyDescriptor }
17931
+ ]);
17932
+ } else if (context && childContext && namedContexts.indexOf(childContext) >= namedContexts.indexOf(context)) {
17933
+ if (key === "__proto__") {
17934
+ propertyDescriptors.push([
17935
+ key,
17936
+ {
17937
+ type: "ObjectExpression",
17938
+ properties: [
17939
+ property("value", generate(child)),
17940
+ property("configurable", literal(true)),
17941
+ property("enumerable", literal(true)),
17942
+ property("writable", literal(true))
17943
+ ]
17944
+ }
17945
+ ]);
17946
+ } else {
17947
+ childContext.assignment = {
17948
+ type: "AssignmentExpression",
17949
+ operator: "=",
17950
+ left: {
17951
+ type: "MemberExpression",
17952
+ computed: true,
17953
+ optional: false,
17954
+ object: identifier(context.name),
17955
+ property: generate(key)
17956
+ },
17957
+ right: childContext.assignment || generate(child)
17958
+ };
17959
+ }
17715
17960
  } else {
17716
- properties.push({
17717
- type: "Property",
17718
- method: false,
17719
- shorthand: false,
17720
- computed,
17721
- kind: "init",
17722
- key: keyExpression,
17723
- value: generate(child)
17724
- });
17961
+ properties.push(property(key, generate(child)));
17725
17962
  }
17726
17963
  }
17727
- return {
17964
+ const objectExpression = {
17728
17965
  type: "ObjectExpression",
17729
17966
  properties
17730
17967
  };
17968
+ if (propertyDescriptors.length) {
17969
+ let name;
17970
+ let args;
17971
+ if (propertyDescriptors.length === 1) {
17972
+ const [[key, expression]] = propertyDescriptors;
17973
+ name = "defineProperty";
17974
+ args = [typeof key === "string" ? literal(key) : symbolToEstree(key), expression];
17975
+ } else {
17976
+ name = "defineProperties";
17977
+ args = [
17978
+ {
17979
+ type: "ObjectExpression",
17980
+ properties: propertyDescriptors.map(([key, expression]) => property(key, expression))
17981
+ }
17982
+ ];
17983
+ }
17984
+ if (!context) {
17985
+ return methodCall(identifier("Object"), name, [objectExpression, ...args]);
17986
+ }
17987
+ context.assignment = replaceAssignment(methodCall(identifier("Object"), name, [identifier(context.name), ...args]), context.assignment);
17988
+ }
17989
+ return objectExpression;
17731
17990
  }
17732
17991
  analyze(value2);
17733
17992
  for (const [val, context] of collectedContexts) {
@@ -17741,10 +18000,10 @@ function valueToEstree(value2, options2 = {}) {
17741
18000
  if (!namedContexts.length) {
17742
18001
  return generate(value2);
17743
18002
  }
17744
- const declarations = namedContexts.sort(compareContexts).map((context) => ({
17745
- type: "VariableDeclarator",
17746
- id: identifier(context.name),
17747
- init: generate(context.value, true)
18003
+ const params = namedContexts.sort(compareContexts).map((context) => ({
18004
+ type: "AssignmentPattern",
18005
+ left: identifier(context.name),
18006
+ right: generate(context.value, true)
17748
18007
  }));
17749
18008
  const rootContext = collectedContexts.get(value2);
17750
18009
  const finalizers = [];
@@ -17761,23 +18020,10 @@ function valueToEstree(value2, options2 = {}) {
17761
18020
  callee: {
17762
18021
  type: "ArrowFunctionExpression",
17763
18022
  expression: false,
17764
- params: [],
18023
+ params,
17765
18024
  body: {
17766
- type: "BlockStatement",
17767
- body: [
17768
- {
17769
- type: "VariableDeclaration",
17770
- kind: "const",
17771
- declarations
17772
- },
17773
- {
17774
- type: "ReturnStatement",
17775
- argument: {
17776
- type: "SequenceExpression",
17777
- expressions: finalizers
17778
- }
17779
- }
17780
- ]
18025
+ type: "SequenceExpression",
18026
+ expressions: finalizers
17781
18027
  }
17782
18028
  }
17783
18029
  };
@@ -17928,6 +18174,7 @@ function createExport(mdast, identifierName, val) {
17928
18174
  type: "ExportNamedDeclaration",
17929
18175
  source: null,
17930
18176
  specifiers: [],
18177
+ attributes: [],
17931
18178
  declaration: {
17932
18179
  type: "VariableDeclaration",
17933
18180
  kind: "const",
@@ -21773,8 +22020,8 @@ var Schema = class {
21773
22020
  * @param {Normal} normal
21774
22021
  * @param {string} [space]
21775
22022
  */
21776
- constructor(property, normal, space) {
21777
- this.property = property;
22023
+ constructor(property2, normal, space) {
22024
+ this.property = property2;
21778
22025
  this.normal = normal;
21779
22026
  if (space) {
21780
22027
  this.space = space;
@@ -21787,14 +22034,14 @@ Schema.prototype.space = null;
21787
22034
 
21788
22035
  // node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.js
21789
22036
  function merge(definitions, space) {
21790
- const property = {};
22037
+ const property2 = {};
21791
22038
  const normal = {};
21792
22039
  let index = -1;
21793
22040
  while (++index < definitions.length) {
21794
- Object.assign(property, definitions[index].property);
22041
+ Object.assign(property2, definitions[index].property);
21795
22042
  Object.assign(normal, definitions[index].normal);
21796
22043
  }
21797
- return new Schema(property, normal, space);
22044
+ return new Schema(property2, normal, space);
21798
22045
  }
21799
22046
 
21800
22047
  // node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.js
@@ -21809,8 +22056,8 @@ var Info = class {
21809
22056
  * @param {string} property
21810
22057
  * @param {string} attribute
21811
22058
  */
21812
- constructor(property, attribute) {
21813
- this.property = property;
22059
+ constructor(property2, attribute) {
22060
+ this.property = property2;
21814
22061
  this.attribute = attribute;
21815
22062
  }
21816
22063
  };
@@ -21858,9 +22105,9 @@ var DefinedInfo = class extends Info {
21858
22105
  * @param {number|null} [mask]
21859
22106
  * @param {string} [space]
21860
22107
  */
21861
- constructor(property, attribute, mask, space) {
22108
+ constructor(property2, attribute, mask, space) {
21862
22109
  let index = -1;
21863
- super(property, attribute);
22110
+ super(property2, attribute);
21864
22111
  mark(this, "space", space);
21865
22112
  if (typeof mask === "number") {
21866
22113
  while (++index < checks.length) {
@@ -21880,7 +22127,7 @@ function mark(values, key, value2) {
21880
22127
  // node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.js
21881
22128
  var own3 = {}.hasOwnProperty;
21882
22129
  function create(definition2) {
21883
- const property = {};
22130
+ const property2 = {};
21884
22131
  const normal = {};
21885
22132
  let prop;
21886
22133
  for (prop in definition2.properties) {
@@ -21895,12 +22142,12 @@ function create(definition2) {
21895
22142
  if (definition2.mustUseProperty && definition2.mustUseProperty.includes(prop)) {
21896
22143
  info.mustUseProperty = true;
21897
22144
  }
21898
- property[prop] = info;
22145
+ property2[prop] = info;
21899
22146
  normal[normalize2(prop)] = prop;
21900
22147
  normal[normalize2(info.attribute)] = prop;
21901
22148
  }
21902
22149
  }
21903
- return new Schema(property, normal, definition2.space);
22150
+ return new Schema(property2, normal, definition2.space);
21904
22151
  }
21905
22152
 
21906
22153
  // node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.js
@@ -21935,8 +22182,8 @@ function caseSensitiveTransform(attributes2, attribute) {
21935
22182
  }
21936
22183
 
21937
22184
  // node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.js
21938
- function caseInsensitiveTransform(attributes2, property) {
21939
- return caseSensitiveTransform(attributes2, property.toLowerCase());
22185
+ function caseInsensitiveTransform(attributes2, property2) {
22186
+ return caseSensitiveTransform(attributes2, property2.toLowerCase());
21940
22187
  }
21941
22188
 
21942
22189
  // node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.js
@@ -23856,14 +24103,14 @@ var _ = {
23856
24103
  for (var i in o) {
23857
24104
  if (o.hasOwnProperty(i)) {
23858
24105
  callback.call(o, i, o[i], type || i);
23859
- var property = o[i];
23860
- var propertyType = _.util.type(property);
23861
- if (propertyType === "Object" && !visited[objId(property)]) {
23862
- visited[objId(property)] = true;
23863
- DFS(property, callback, null, visited);
23864
- } else if (propertyType === "Array" && !visited[objId(property)]) {
23865
- visited[objId(property)] = true;
23866
- DFS(property, callback, i, visited);
24106
+ var property2 = o[i];
24107
+ var propertyType = _.util.type(property2);
24108
+ if (propertyType === "Object" && !visited[objId(property2)]) {
24109
+ visited[objId(property2)] = true;
24110
+ DFS(property2, callback, null, visited);
24111
+ } else if (propertyType === "Array" && !visited[objId(property2)]) {
24112
+ visited[objId(property2)] = true;
24113
+ DFS(property2, callback, i, visited);
23867
24114
  }
23868
24115
  }
23869
24116
  }