oxfmt 0.58.0 → 0.59.0

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.
Files changed (32) hide show
  1. package/configuration_schema.json +3 -3
  2. package/dist/{acorn-CZllRq2x.js → acorn-Dxp-n4ed.js} +136 -43
  3. package/dist/{angular-CsoDKqo4.js → angular-Clx-wbm6.js} +253 -90
  4. package/dist/{apis-DLO0lBDu.js → apis-D299uPBa.js} +4 -4
  5. package/dist/{babel-DZD6u90w.js → babel-7tfAjQas.js} +178 -69
  6. package/dist/{bindings-DTiEua0g.js → bindings-CjOHPMBU.js} +26 -26
  7. package/dist/{chunk-DSjvVL_1-DX2STy_I.js → chunk-DSjvVL_1-Do0Iorfu.js} +1 -1
  8. package/dist/cli-worker.d.ts +18 -24
  9. package/dist/cli-worker.js +1 -1
  10. package/dist/cli.js +2 -2
  11. package/dist/{dist-YOS4M6hk.js → dist-Byfj_1s9.js} +14 -14
  12. package/dist/{estree-ChnhgzGg.js → estree-CyQu6pff.js} +1982 -1861
  13. package/dist/{flow-C6LkWPPl.js → flow-BH5imzwC.js} +2014 -1999
  14. package/dist/{glimmer-YnkKK2a7.js → glimmer-B5hfTXAX.js} +107 -42
  15. package/dist/{graphql-BNiwkZTo.js → graphql-DQB_nHt9.js} +80 -15
  16. package/dist/{html-DMHXIbrM.js → html--849eFzc.js} +257 -155
  17. package/dist/index.d.ts +7 -3
  18. package/dist/index.js +3 -3
  19. package/dist/{jiti-Bb1dT6Cw-B61jQmj-.js → jiti-Bb1dT6Cw-cY1yrK9n.js} +2 -2
  20. package/dist/{markdown-BjyDFyaO.js → markdown-B1lBrqaF.js} +3778 -3745
  21. package/dist/{meriyah-zDNCk2o1.js → meriyah-B5wbO5kj.js} +264 -213
  22. package/dist/{migrate-prettier-BmSsy164.js → migrate-prettier-CbxtU9AG.js} +1 -1
  23. package/dist/{plugin-B4cguZ1l.js → plugin-D1B0s0iv.js} +3 -3
  24. package/dist/{postcss-CwPwODg8.js → postcss-DuOoF7OX.js} +1129 -1050
  25. package/dist/{prettier-BByt4AhK.js → prettier-CEZwFZsY.js} +18 -19
  26. package/dist/{sorter-BZkvDMjt-B8ihSEiX.js → sorter-BZkvDMjt-DFTeIPU-.js} +7 -7
  27. package/dist/{sorter-BcGkkjyR.js → sorter-Cm0Z2eGI.js} +1 -1
  28. package/dist/{typescript-Bq_S3kyC.js → typescript-Cvdwz3-D.js} +120 -47
  29. package/dist/{v3-D-mr2VVh-p01OHBjH.js → v3-D-mr2VVh-C_WUxELf.js} +6 -5
  30. package/dist/{v4-C-HWEQJm-BbuYNtSW.js → v4-C-HWEQJm-C0ut0NwJ.js} +108 -30
  31. package/dist/{yaml-DlyuuZmC.js → yaml-Dd4aShtG.js} +138 -49
  32. package/package.json +20 -20
@@ -1,5 +1,5 @@
1
1
  import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
2
- //#region ../../node_modules/.pnpm/prettier@3.9.4/node_modules/prettier/plugins/html.mjs
2
+ //#region ../../node_modules/.pnpm/prettier@3.9.5/node_modules/prettier/plugins/html.mjs
3
3
  function is(e) {
4
4
  return this[e < 0 ? this.length + e : e];
5
5
  }
@@ -923,11 +923,13 @@ function Ae(e, t, r) {
923
923
  }
924
924
  function ni(e, t, r) {
925
925
  let { node: n } = e, i = [];
926
- if (Da(e) && i.push("} "), i.push("@", n.name), Pa(n)) return i.push(";"), i;
927
- if (n.parameters && i.push(" ", "(", C(r("parameters")), ")"), !Na(n)) {
926
+ Da(e) && i.push("} "), i.push("@", n.name);
927
+ let s = Pa(n);
928
+ if (n.parameters && (s || i.push(" "), i.push("(", C(r("parameters")), ")")), s) return i.push(";"), i;
929
+ if (!Na(n)) {
928
930
  i.push(" {");
929
- let s = ii(n);
930
- n.children.length > 0 ? (n.firstChild.hasLeadingSpaces = !0, n.lastChild.hasTrailingSpaces = !0, i.push(A([k, Ae(e, t, r)])), s && i.push(k, "}")) : s && i.push("}");
931
+ let a = ii(n);
932
+ n.children.length > 0 ? (n.firstChild.hasLeadingSpaces = !0, n.lastChild.hasTrailingSpaces = !0, i.push(A([k, Ae(e, t, r)])), a && i.push(k, "}")) : a && i.push("}");
931
933
  }
932
934
  return C(i, { shouldBreak: !0 });
933
935
  }
@@ -1304,8 +1306,8 @@ function Rt(e) {
1304
1306
  return e === 39 || e === 34 || e === 96;
1305
1307
  }
1306
1308
  function Di(e, t, r, n = {}) {
1307
- let i = new Ya(new rt(e, t), r, n);
1308
- return i.tokenize(), new za(to(i.tokens), i.errors, i.nonNormalizedIcuExpressions);
1309
+ let i = new Qa(new rt(e, t), r, n);
1310
+ return i.tokenize(), new za(no(i.tokens), i.errors, i.nonNormalizedIcuExpressions);
1309
1311
  }
1310
1312
  function Se(e) {
1311
1313
  return `Unexpected character "${e === 0 ? "EOF" : String.fromCharCode(e)}"`;
@@ -1322,25 +1324,25 @@ function b(e) {
1322
1324
  function ve(e) {
1323
1325
  return nt(e) || e === 62 || e === 60 || e === 47 || e === 39 || e === 34 || e === 61 || e === 0;
1324
1326
  }
1325
- function Ka(e) {
1327
+ function Xa(e) {
1326
1328
  return (e < 97 || 122 < e) && (e < 65 || 90 < e) && (e < 48 || e > 57);
1327
1329
  }
1328
- function Qa(e) {
1330
+ function Ja(e) {
1329
1331
  return e === 59 || e === 0 || !Ei(e);
1330
1332
  }
1331
- function Xa(e) {
1333
+ function Za(e) {
1332
1334
  return e === 59 || e === 0 || !(Re(e) || Ie(e));
1333
1335
  }
1334
- function Ja(e) {
1336
+ function eo(e) {
1335
1337
  return e !== 125;
1336
1338
  }
1337
- function Za(e, t) {
1339
+ function to(e, t) {
1338
1340
  return Li(e) === Li(t);
1339
1341
  }
1340
1342
  function Li(e) {
1341
1343
  return e >= 97 && e <= 122 ? e - 97 + 65 : e;
1342
1344
  }
1343
- function eo(e) {
1345
+ function ro(e) {
1344
1346
  return Re(e) || Ie(e) || e === 95;
1345
1347
  }
1346
1348
  function Ai(e) {
@@ -1355,7 +1357,7 @@ function Pi(e) {
1355
1357
  function Ni(e) {
1356
1358
  return e === 47 || e === 62 || e === 60 || e === 0;
1357
1359
  }
1358
- function to(e) {
1360
+ function no(e) {
1359
1361
  let t = [], r;
1360
1362
  for (let n = 0; n < e.length; n++) {
1361
1363
  let i = e[n];
@@ -1381,11 +1383,11 @@ function Mt(e, t = {}) {
1381
1383
  selectorlessEnabled: c
1382
1384
  }, s, a);
1383
1385
  }
1384
- function ao(e, t) {
1385
- for (let r of so) r(e, t);
1386
+ function lo(e, t) {
1387
+ for (let r of oo) r(e, t);
1386
1388
  return e;
1387
1389
  }
1388
- function oo(e) {
1390
+ function co(e) {
1389
1391
  e.walk((t) => {
1390
1392
  if (t.kind === "element" && t.tagDefinition.ignoreFirstLf && t.children.length > 0 && t.children[0].kind === "text" && t.children[0].value[0] === `
1391
1393
  `) {
@@ -1394,7 +1396,7 @@ function oo(e) {
1394
1396
  }
1395
1397
  });
1396
1398
  }
1397
- function lo(e) {
1399
+ function uo(e) {
1398
1400
  let t = (r) => r.kind === "element" && r.prev?.kind === "ieConditionalStartComment" && r.prev.sourceSpan.end.offset === r.startSourceSpan.start.offset && r.firstChild?.kind === "ieConditionalEndComment" && r.firstChild.sourceSpan.start.offset === r.startSourceSpan.end.offset;
1399
1401
  e.walk((r) => {
1400
1402
  if (r.children) for (let n = 0; n < r.children.length; n++) {
@@ -1407,7 +1409,7 @@ function lo(e) {
1407
1409
  }
1408
1410
  });
1409
1411
  }
1410
- function co(e, t, r) {
1412
+ function po(e, t, r) {
1411
1413
  e.walk((n) => {
1412
1414
  if (n.children) for (let i = 0; i < n.children.length; i++) {
1413
1415
  let s = n.children[i];
@@ -1418,10 +1420,10 @@ function co(e, t, r) {
1418
1420
  }
1419
1421
  });
1420
1422
  }
1421
- function uo(e) {
1422
- return co(e, (t) => t.kind === "cdata", (t) => `<![CDATA[${t.value}]]>`);
1423
+ function ho(e) {
1424
+ return po(e, (t) => t.kind === "cdata", (t) => `<![CDATA[${t.value}]]>`);
1423
1425
  }
1424
- function po(e) {
1426
+ function mo(e) {
1425
1427
  let t = (r) => r.kind === "element" && r.attrs.length === 0 && !X(r.startTagComments) && r.children.length === 1 && r.firstChild.kind === "text" && !P.hasWhitespaceCharacter(r.children[0].value) && !r.firstChild.hasLeadingSpaces && !r.firstChild.hasTrailingSpaces && r.isLeadingSpaceSensitive && !r.hasLeadingSpaces && r.isTrailingSpaceSensitive && !r.hasTrailingSpaces && r.prev?.kind === "text" && r.next?.kind === "text";
1426
1428
  e.walk((r) => {
1427
1429
  if (r.children) for (let n = 0; n < r.children.length; n++) {
@@ -1432,7 +1434,7 @@ function po(e) {
1432
1434
  }
1433
1435
  });
1434
1436
  }
1435
- function ho(e, t) {
1437
+ function fo(e, t) {
1436
1438
  if (t.parser === "html") return;
1437
1439
  let r = /\{\{(.+?)\}\}/s;
1438
1440
  e.walk((n) => {
@@ -1463,7 +1465,7 @@ function ho(e, t) {
1463
1465
  }
1464
1466
  });
1465
1467
  }
1466
- function mo(e, t) {
1468
+ function go(e, t) {
1467
1469
  e.walk((r) => {
1468
1470
  let n = r.$children;
1469
1471
  if (!n) return;
@@ -1481,22 +1483,22 @@ function mo(e, t) {
1481
1483
  r.isWhitespaceSensitive = i, r.isIndentationSensitive = s;
1482
1484
  });
1483
1485
  }
1484
- function fo(e) {
1486
+ function _o(e) {
1485
1487
  e.walk((t) => {
1486
1488
  t.isSelfClosing = !t.children || t.kind === "element" && (t.tagDefinition.isVoid || t.endSourceSpan && t.startSourceSpan.start === t.endSourceSpan.start && t.startSourceSpan.end === t.endSourceSpan.end);
1487
1489
  });
1488
1490
  }
1489
- function go(e, t) {
1491
+ function So(e, t) {
1490
1492
  e.walk((r) => {
1491
1493
  r.kind === "element" && (r.hasHtmComponentClosingTag = r.endSourceSpan && /^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset, r.endSourceSpan.end.offset)));
1492
1494
  });
1493
1495
  }
1494
- function _o(e, t) {
1496
+ function vo(e, t) {
1495
1497
  e.walk((r) => {
1496
1498
  r.cssDisplay = fn(r, t);
1497
1499
  });
1498
1500
  }
1499
- function So(e, t) {
1501
+ function Co(e, t) {
1500
1502
  e.walk((r) => {
1501
1503
  let { children: n } = r;
1502
1504
  if (n) {
@@ -1512,7 +1514,7 @@ function So(e, t) {
1512
1514
  }
1513
1515
  });
1514
1516
  }
1515
- function vo(e, t, r) {
1517
+ function ko(e, t, r) {
1516
1518
  let { node: n } = e;
1517
1519
  switch (n.kind) {
1518
1520
  case "root": return t.__onHtmlRoot && t.__onHtmlRoot(n), [C(Ae(e, t, r)), k];
@@ -1573,13 +1575,13 @@ function vo(e, t, r) {
1573
1575
  default: throw new Gr(n, "HTML");
1574
1576
  }
1575
1577
  }
1576
- function bo(e, t) {
1578
+ function To(e, t) {
1577
1579
  let r = /* @__PURE__ */ new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
1578
1580
  return Object.assign(r, t);
1579
1581
  }
1580
1582
  function Bt(e) {
1581
1583
  return {
1582
- ...wo,
1584
+ ...yo,
1583
1585
  ...e
1584
1586
  };
1585
1587
  }
@@ -1595,18 +1597,18 @@ function wr(e) {
1595
1597
  tokenizeAngularLetDeclaration: o
1596
1598
  };
1597
1599
  }
1598
- function To(e, t) {
1600
+ function Eo(e, t) {
1599
1601
  let r = e.map(t);
1600
1602
  return r.some((n, i) => n !== e[i]) ? r : e;
1601
1603
  }
1602
1604
  function Yi(e, t) {
1603
- if (e.value) for (let { regex: r, parse: n } of yo) {
1605
+ if (e.value) for (let { regex: r, parse: n } of xo) {
1604
1606
  let i = e.value.match(r);
1605
1607
  if (i) return n(e, i, t);
1606
1608
  }
1607
1609
  return null;
1608
1610
  }
1609
- function Eo(e, t, r) {
1611
+ function Lo(e, t, r) {
1610
1612
  let { openingTagSuffix: n, condition: i, data: s } = t.groups, a = 4 + n.length, o = e.sourceSpan.start.moveBy(a), l = o.moveBy(s.length), [c, u] = (() => {
1611
1613
  try {
1612
1614
  return [!0, r(s, o).children];
@@ -1628,7 +1630,7 @@ function Eo(e, t, r) {
1628
1630
  endSourceSpan: new p(l, e.sourceSpan.end)
1629
1631
  };
1630
1632
  }
1631
- function xo(e, t) {
1633
+ function Ao(e, t) {
1632
1634
  let { condition: r } = t.groups;
1633
1635
  return {
1634
1636
  kind: "ieConditionalStartComment",
@@ -1636,7 +1638,7 @@ function xo(e, t) {
1636
1638
  sourceSpan: e.sourceSpan
1637
1639
  };
1638
1640
  }
1639
- function Lo(e) {
1641
+ function Po(e) {
1640
1642
  return {
1641
1643
  kind: "ieConditionalEndComment",
1642
1644
  sourceSpan: e.sourceSpan
@@ -1651,10 +1653,10 @@ function Xi(e, t, r, n) {
1651
1653
  let o = Yi(a, n);
1652
1654
  o && a.parent.replaceChild(a, o);
1653
1655
  } else i && a.kind === "element" && a.comments && (a.startTagComments = a.comments, delete a.comments);
1654
- i && (Ao(a), Po(a), No(a));
1656
+ i && (No(a), Do(a), Io(a));
1655
1657
  }), s;
1656
1658
  }
1657
- function Ao(e) {
1659
+ function No(e) {
1658
1660
  if (e.kind === "block") {
1659
1661
  if (e.name = T(0, e.name.toLowerCase(), /\s+/g, " ").trim(), e.kind = "angularControlFlowBlock", !X(e.parameters)) {
1660
1662
  delete e.parameters;
@@ -1668,14 +1670,14 @@ function Ao(e) {
1668
1670
  };
1669
1671
  }
1670
1672
  }
1671
- function Po(e) {
1673
+ function Do(e) {
1672
1674
  e.kind === "letDeclaration" && (e.kind = "angularLetDeclaration", e.id = e.name, e.init = {
1673
1675
  kind: "angularLetDeclarationInitializer",
1674
1676
  sourceSpan: new p(e.valueSpan.start, e.valueSpan.end),
1675
1677
  value: e.value
1676
1678
  }, delete e.name, delete e.value);
1677
1679
  }
1678
- function No(e) {
1680
+ function Io(e) {
1679
1681
  e.kind === "expansion" && (e.kind = "angularIcuExpression"), e.kind === "expansionCase" && (e.kind = "angularIcuCase");
1680
1682
  }
1681
1683
  function Ki(e, t) {
@@ -1686,7 +1688,7 @@ function Qi(e) {
1686
1688
  let t = e.name.startsWith(":") ? e.name.slice(1).split(":", 1)[0] : null, r = e.nameSpan.toString(), n = t !== null && r.startsWith(`${t}:`);
1687
1689
  e.name = n ? r.slice(t.length + 1) : r, e.namespace = t, e.hasExplicitNamespace = n;
1688
1690
  }
1689
- function Do(e) {
1691
+ function Ro(e) {
1690
1692
  switch (e.kind) {
1691
1693
  case "element":
1692
1694
  Qi(e);
@@ -1700,16 +1702,16 @@ function Do(e) {
1700
1702
  break;
1701
1703
  }
1702
1704
  }
1703
- function Io(e, t) {
1705
+ function Oo(e, t) {
1704
1706
  if (e.kind === "element") {
1705
1707
  let r = Ne(t.isTagNameCaseSensitive ? e.name : e.name.toLowerCase());
1706
1708
  !e.namespace || e.namespace === r.implicitNamespacePrefix || oe(e) ? e.tagDefinition = r : e.tagDefinition = Ne("");
1707
1709
  }
1708
1710
  }
1709
- function Ro(e) {
1711
+ function Mo(e) {
1710
1712
  e.sourceSpan && e.endSourceSpan && (e.sourceSpan = new p(e.sourceSpan.start, e.endSourceSpan.end));
1711
1713
  }
1712
- function Oo(e, t) {
1714
+ function Bo(e, t) {
1713
1715
  if (e.kind === "element" && (t.normalizeTagName && (!e.namespace || e.namespace === e.tagDefinition.implicitNamespacePrefix || oe(e)) && (e.name = Ki(e.name, (r) => $i.has(r))), t.normalizeAttributeName)) for (let r of e.attrs) r.namespace || (r.name = Ki(r.name, (n) => qt.has(e.name) && (qt.get("*").has(n) || qt.get(e.name).has(n))));
1714
1716
  }
1715
1717
  function Lr(e, t) {
@@ -1731,7 +1733,7 @@ function Ji(e, t) {
1731
1733
  };
1732
1734
  for (let [c, u] of n.entries()) if (u.kind === "element") {
1733
1735
  if (u.isVoid) i = o().errors, n[c] = l(u);
1734
- else if (Mo(u)) {
1736
+ else if (qo(u)) {
1735
1737
  let { endSourceSpan: d, startSourceSpan: _ } = u, h = o().errors.find((f) => f.span.start.offset > _.start.offset && f.span.start.offset < d.end.offset);
1736
1738
  h && xr(h), n[c] = l(u);
1737
1739
  }
@@ -1741,7 +1743,7 @@ function Ji(e, t) {
1741
1743
  rootNodes: n
1742
1744
  };
1743
1745
  }
1744
- function Mo(e) {
1746
+ function qo(e) {
1745
1747
  if (e.kind !== "element" || e.name !== "template") return !1;
1746
1748
  let t = e.attrs.find((r) => r.name === "lang")?.value;
1747
1749
  return !t || t === "html";
@@ -1762,7 +1764,7 @@ function xr(e) {
1762
1764
  cause: e
1763
1765
  });
1764
1766
  }
1765
- function Bo(e, t, r, n, i, s) {
1767
+ function Ho(e, t, r, n, i, s) {
1766
1768
  let { offset: a } = n, l = Ar(vt(t.slice(0, a)) + r, e, {
1767
1769
  ...i,
1768
1770
  shouldParseFrontMatter: !1
@@ -1785,7 +1787,7 @@ function Ar(e, t, r, n = {}) {
1785
1787
  sourceSpan: new p(f, g)
1786
1788
  };
1787
1789
  }
1788
- return Xi(d, _, c, (f, g) => Bo(t, e, f, g, c, n));
1790
+ return Xi(d, _, c, (f, g) => Ho(t, e, f, g, c, n));
1789
1791
  }
1790
1792
  function st(e) {
1791
1793
  let t = Bt(e), r = t.name === "vue" ? Ji : Lr;
@@ -1798,7 +1800,7 @@ function st(e) {
1798
1800
  locEnd: J
1799
1801
  };
1800
1802
  }
1801
- var Nr, Dr, es, Ir, Wt, ts, qe, Rr, Zi, ke, rs, T, I, as, He, Fe, Ve, ot, be, we, lt, Te, ye, Ee, xe, ct, ut, z, pt, Le, ht, ft, ls, zt, Or, D, dt, Br, qr, G, S, y, k, Mr, Vr, Ur, ms, fs, jt, P, Yt, Gr, $r, se, vs, jr, bs, Kr, Qr, X, xs, _t, St, ae, vt, Ue, Qt, Zr, Xt, en, Jt, oe, Rs, Zt, tn, js, Sn, vn, ir, Ks, kn, bn, wn, Js, Tn, yn, En, xn, ea, ta, ra, na, Pn, ia, Nn, Dn, In, aa, On, Mn, oa, H, ua, ma, Un, F, J, Wn, Pt, ba, Gn, Qe, Ta, $n, Je, Yn, xa, La, Kn, Qn, Xn, Jn, Zn, ei, ti, Aa, Pa, lr, et, Ia, pr, hr, mr, Oa, hi, Ma, Ba, qa, Ha, Fa, mi, Va, fi, m, di, tt, De, rt, p, Wa, te, de, _i, Si, vi, Ci, ki, bi, re, wi, Ti, ge, U, yi, fr, dr, gr, _e, za, Ga, ja, it, Ya, Ii, ro, Cr, x, no, Bi, io, Hi, kr, so, Fi, Vi, Ui, br, Wi, zi, Pr, Gi, wo, qt, $i, Ht, ji, ne, Tr, yr, Me, Ft, yo, Er, Vt, qo, Ho, Fo, Vo, Uo, Wo, zo;
1803
+ var Nr, Dr, es, Ir, Wt, ts, qe, Rr, Zi, ke, rs, T, I, as, He, Fe, Ve, ot, be, we, lt, Te, ye, Ee, xe, ct, ut, z, pt, Le, ht, ft, ls, zt, Or, D, dt, Br, qr, G, S, y, k, Mr, Vr, Ur, ms, fs, jt, P, Yt, Gr, $r, se, vs, jr, bs, Kr, Qr, X, xs, _t, St, ae, vt, Ue, Qt, Zr, Xt, en, Jt, oe, Rs, Zt, tn, js, Sn, vn, ir, Ks, kn, bn, wn, Js, Tn, yn, En, xn, ea, ta, ra, na, Pn, ia, Nn, Dn, In, aa, On, Mn, oa, H, ua, ma, Un, F, J, Wn, Pt, ba, Gn, Qe, Ta, $n, Je, Yn, xa, La, Kn, Qn, Xn, Jn, Zn, ei, ti, Aa, Pa, lr, et, Ia, pr, hr, mr, Oa, hi, Ma, Ba, qa, Ha, Fa, mi, Va, fi, m, di, tt, De, rt, p, Wa, te, de, _i, Si, vi, Ci, ki, bi, re, wi, Ti, ge, U, yi, fr, dr, gr, _e, za, Ga, ja, it, Ya, Ka, Qa, Ii, io, Cr, x, so, Bi, ao, Hi, kr, oo, Fi, Vi, Ui, br, Wi, zi, Pr, Gi, yo, qt, $i, Ht, ji, ne, Tr, yr, Me, Ft, xo, Er, Vt, Fo, Vo, Uo, Wo, zo, Go, $o;
1802
1804
  //#endregion
1803
1805
  __esmMin((() => {
1804
1806
  Nr = Object.defineProperty;
@@ -1817,26 +1819,45 @@ __esmMin((() => {
1817
1819
  enumerable: !0
1818
1820
  });
1819
1821
  };
1820
- Wt = (e, t, r) => es(e, typeof t != "symbol" ? t + "" : t, r), ts = (e, t, r) => t.has(e) || Dr("Cannot " + r);
1821
- qe = (e, t, r) => (ts(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Rr = (e, t, r) => t.has(e) ? Dr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r);
1822
+ Wt = (e, t, r) => es(e, typeof t != "symbol" ? t + "" : t, r);
1823
+ ts = (e, t, r) => t.has(e) || Dr("Cannot " + r);
1824
+ qe = (e, t, r) => (ts(e, t, "read from private field"), r ? r.call(e) : t.get(e));
1825
+ Rr = (e, t, r) => t.has(e) ? Dr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r);
1822
1826
  Zi = {};
1823
1827
  Ir(Zi, {
1824
1828
  languages: () => Ui,
1825
1829
  options: () => zi,
1826
1830
  parsers: () => Pr,
1827
- printers: () => zo
1831
+ printers: () => $o
1828
1832
  });
1829
1833
  ke = (e, t) => (r, n, ...i) => r | 1 && n == null ? void 0 : (t.call(n) ?? n[e]).apply(n, i);
1830
1834
  rs = String.prototype.replaceAll ?? function(e, t) {
1831
1835
  return e.global ? this.replace(e, t) : this.split(e).join(t);
1832
- }, T = ke("replaceAll", function() {
1836
+ };
1837
+ T = ke("replaceAll", function() {
1833
1838
  if (typeof this == "string") return rs;
1834
1839
  });
1835
1840
  I = ke("at", function() {
1836
1841
  if (Array.isArray(this) || typeof this == "string") return is;
1837
1842
  });
1838
- as = () => {}, He = as;
1839
- Fe = "string", Ve = "array", ot = "cursor", be = "indent", we = "align", lt = "trim", Te = "group", ye = "fill", Ee = "if-break", xe = "indent-if-break", ct = "line-suffix", ut = "line-suffix-boundary", z = "line", pt = "label", Le = "break-parent", ht = /* @__PURE__ */ new Set([
1843
+ as = () => {};
1844
+ He = as;
1845
+ Fe = "string";
1846
+ Ve = "array";
1847
+ ot = "cursor";
1848
+ be = "indent";
1849
+ we = "align";
1850
+ lt = "trim";
1851
+ Te = "group";
1852
+ ye = "fill";
1853
+ Ee = "if-break";
1854
+ xe = "indent-if-break";
1855
+ ct = "line-suffix";
1856
+ ut = "line-suffix-boundary";
1857
+ z = "line";
1858
+ pt = "label";
1859
+ Le = "break-parent";
1860
+ ht = /* @__PURE__ */ new Set([
1840
1861
  ot,
1841
1862
  be,
1842
1863
  we,
@@ -1858,16 +1879,23 @@ __esmMin((() => {
1858
1879
  constructor(t) {
1859
1880
  super(cs(t)), this.doc = t;
1860
1881
  }
1861
- }, Or = zt;
1862
- D = He, dt = He, Br = He, qr = He;
1882
+ };
1883
+ Or = zt;
1884
+ D = He;
1885
+ dt = He;
1886
+ Br = He;
1887
+ qr = He;
1863
1888
  G = { type: Le };
1864
- S = { type: z }, y = {
1889
+ S = { type: z };
1890
+ y = {
1865
1891
  type: z,
1866
1892
  soft: !0
1867
- }, k = [{
1893
+ };
1894
+ k = [{
1868
1895
  type: z,
1869
1896
  hard: !0
1870
- }, G], Mr = [{
1897
+ }, G];
1898
+ Mr = [{
1871
1899
  type: z,
1872
1900
  hard: !0,
1873
1901
  literal: !0
@@ -1875,13 +1903,16 @@ __esmMin((() => {
1875
1903
  Vr = Object.freeze({
1876
1904
  character: "'",
1877
1905
  codePoint: 39
1878
- }), Ur = Object.freeze({
1906
+ });
1907
+ Ur = Object.freeze({
1879
1908
  character: "\"",
1880
1909
  codePoint: 34
1881
- }), ms = Object.freeze({
1910
+ });
1911
+ ms = Object.freeze({
1882
1912
  preferred: Vr,
1883
1913
  alternate: Ur
1884
- }), fs = Object.freeze({
1914
+ });
1915
+ fs = Object.freeze({
1885
1916
  preferred: Ur,
1886
1917
  alternate: Vr
1887
1918
  });
@@ -1972,16 +2003,19 @@ __esmMin((() => {
1972
2003
  constructor(t, r, n = "type") {
1973
2004
  super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`), this.node = t;
1974
2005
  }
1975
- }, Gr = Yt;
2006
+ };
2007
+ Gr = Yt;
1976
2008
  $r = _s;
1977
2009
  se = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty);
1978
2010
  vs = Array.prototype.toReversed ?? function() {
1979
2011
  return [...this].reverse();
1980
- }, jr = ke("toReversed", function() {
2012
+ };
2013
+ jr = ke("toReversed", function() {
1981
2014
  if (Array.isArray(this)) return vs;
1982
2015
  });
1983
2016
  bs = ks();
1984
- Kr = (e) => String(e).split(/[/\\]/).pop(), Qr = (e) => String(e).startsWith("file:");
2017
+ Kr = (e) => String(e).split(/[/\\]/).pop();
2018
+ Qr = (e) => String(e).startsWith("file:");
1985
2019
  X = ys;
1986
2020
  xs = void 0;
1987
2021
  _t = Ls;
@@ -1990,7 +2024,8 @@ __esmMin((() => {
1990
2024
  vt = Ps;
1991
2025
  Ue = 3;
1992
2026
  Qt = Ds;
1993
- Zr = "inline", Xt = {
2027
+ Zr = "inline";
2028
+ Xt = {
1994
2029
  area: "none",
1995
2030
  base: "none",
1996
2031
  basefont: "none",
@@ -2065,6 +2100,8 @@ __esmMin((() => {
2065
2100
  details: "block",
2066
2101
  summary: "block",
2067
2102
  marquee: "inline-block",
2103
+ option: "block",
2104
+ optgroup: "block",
2068
2105
  select: "inline-block",
2069
2106
  source: "block",
2070
2107
  track: "block",
@@ -2072,10 +2109,10 @@ __esmMin((() => {
2072
2109
  progress: "inline-block",
2073
2110
  object: "inline-block",
2074
2111
  video: "inline-block",
2075
- audio: "inline-block",
2076
- option: "block",
2077
- optgroup: "block"
2078
- }, en = "normal", Jt = {
2112
+ audio: "inline-block"
2113
+ };
2114
+ en = "normal";
2115
+ Jt = {
2079
2116
  listing: "pre",
2080
2117
  plaintext: "pre",
2081
2118
  pre: "pre",
@@ -2085,7 +2122,9 @@ __esmMin((() => {
2085
2122
  textarea: "pre-wrap"
2086
2123
  };
2087
2124
  oe = Is;
2088
- Rs = (e) => T(0, e, /^[\t\f\r ]*\n/g, ""), Zt = (e) => Rs(P.trimEnd(e)), tn = (e) => {
2125
+ Rs = (e) => T(0, e, /^[\t\f\r ]*\n/g, "");
2126
+ Zt = (e) => Rs(P.trimEnd(e));
2127
+ tn = (e) => {
2089
2128
  let t = e, r = P.getLeadingWhitespace(t);
2090
2129
  r && (t = t.slice(r.length));
2091
2130
  let n = P.getTrailingWhitespace(t);
@@ -2100,8 +2139,10 @@ __esmMin((() => {
2100
2139
  "style",
2101
2140
  "script"
2102
2141
  ]);
2103
- Sn = /\{\{(.+?)\}\}/s, vn = ({ node: { value: e } }) => Sn.test(e);
2104
- ir = (e) => (t, r, n) => E(w(n.node), t, { parser: e }, q), Ks = [
2142
+ Sn = /\{\{(.+?)\}\}/s;
2143
+ vn = ({ node: { value: e } }) => Sn.test(e);
2144
+ ir = (e) => (t, r, n) => E(w(n.node), t, { parser: e }, q);
2145
+ Ks = [
2105
2146
  {
2106
2147
  test(e) {
2107
2148
  let t = e.node.fullName;
@@ -2133,7 +2174,8 @@ __esmMin((() => {
2133
2174
  print: t
2134
2175
  }));
2135
2176
  kn = Ks;
2136
- bn = ({ node: e }, t) => !t.parentParser && e.fullName === "class" && !e.value.includes("{{"), wn = (e, t, r) => T(0, w(r.node).trim(), /\s+/g, " ");
2177
+ bn = ({ node: e }, t) => !t.parentParser && e.fullName === "class" && !e.value.includes("{{");
2178
+ wn = (e, t, r) => T(0, w(r.node).trim(), /\s+/g, " ");
2137
2179
  Js = /* @__PURE__ */ new Set([
2138
2180
  "onabort",
2139
2181
  "onafterprint",
@@ -2225,20 +2267,30 @@ __esmMin((() => {
2225
2267
  "onvolumechange",
2226
2268
  "onwaiting",
2227
2269
  "onwheel"
2228
- ]), Tn = ({ node: e }, t) => Js.has(e.fullName) && !t.parentParser && !e.value.includes("{{"), yn = (e, t, r) => E(w(r.node), e, {
2270
+ ]);
2271
+ Tn = ({ node: e }, t) => Js.has(e.fullName) && !t.parentParser && !e.value.includes("{{");
2272
+ yn = (e, t, r) => E(w(r.node), e, {
2229
2273
  parser: "babel",
2230
2274
  __isHtmlInlineEventHandler: !0
2231
2275
  }, () => !1);
2232
2276
  En = Zs;
2233
2277
  xn = ({ node: e }, t) => e.fullName === "allow" && !t.parentParser && e.parent.fullName === "iframe" && !e.value.includes("{{");
2234
- ea = /^[ \t\n\r\u000c]+/, ta = /^[, \t\n\r\u000c]+/, ra = /^[^ \t\n\r\u000c]+/, na = /[,]+$/, Pn = /^\d+$/, ia = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;
2278
+ ea = /^[ \t\n\r\u000c]+/;
2279
+ ta = /^[, \t\n\r\u000c]+/;
2280
+ ra = /^[^ \t\n\r\u000c]+/;
2281
+ na = /[,]+$/;
2282
+ Pn = /^\d+$/;
2283
+ ia = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;
2235
2284
  Nn = sa;
2236
- Dn = (e) => e.node.fullName === "srcset" && (e.parent.fullName === "img" || e.parent.fullName === "source"), In = {
2285
+ Dn = (e) => e.node.fullName === "srcset" && (e.parent.fullName === "img" || e.parent.fullName === "source");
2286
+ In = {
2237
2287
  width: "w",
2238
2288
  height: "h",
2239
2289
  density: "x"
2240
- }, aa = Object.keys(In);
2241
- On = ({ node: e }, t) => e.fullName === "style" && !t.parentParser && !e.value.includes("{{"), Mn = async (e, t, r) => j(await e(w(r.node), {
2290
+ };
2291
+ aa = Object.keys(In);
2292
+ On = ({ node: e }, t) => e.fullName === "style" && !t.parentParser && !e.value.includes("{{");
2293
+ Mn = async (e, t, r) => j(await e(w(r.node), {
2242
2294
  parser: "css",
2243
2295
  __isHTMLStyleAttribute: !0
2244
2296
  }));
@@ -2307,7 +2359,8 @@ __esmMin((() => {
2307
2359
  print: da(t)
2308
2360
  }));
2309
2361
  Un = fa;
2310
- F = (e) => e.sourceSpan.start.offset, J = (e) => e.sourceSpan.end.offset;
2362
+ F = (e) => e.sourceSpan.start.offset;
2363
+ J = (e) => e.sourceSpan.end.offset;
2311
2364
  Wn = "<!doctype";
2312
2365
  Pt = ka;
2313
2366
  ba = /* @__PURE__ */ new Set([
@@ -2361,7 +2414,8 @@ __esmMin((() => {
2361
2414
  "switchValueSourceSpan",
2362
2415
  "expSourceSpan",
2363
2416
  "valueSourceSpan"
2364
- ]), La = /* @__PURE__ */ new Set([
2417
+ ]);
2418
+ La = /* @__PURE__ */ new Set([
2365
2419
  "if",
2366
2420
  "else if",
2367
2421
  "for",
@@ -2370,8 +2424,11 @@ __esmMin((() => {
2370
2424
  ]);
2371
2425
  or.ignoredProperties = xa;
2372
2426
  Kn = "format";
2373
- Qn = /^\s*<!--\s*@(?:noformat|noprettier)\s*-->/, Xn = /^\s*<!--\s*@(?:format|prettier)\s*-->/;
2374
- Jn = (e) => Xn.test(e), Zn = (e) => Qn.test(e), ei = (e) => `<!-- @${Kn} -->
2427
+ Qn = /^\s*<!--\s*@(?:noformat|noprettier)\s*-->/;
2428
+ Xn = /^\s*<!--\s*@(?:format|prettier)\s*-->/;
2429
+ Jn = (e) => Xn.test(e);
2430
+ Zn = (e) => Qn.test(e);
2431
+ ei = (e) => `<!-- @${Kn} -->
2375
2432
 
2376
2433
  ${e}`;
2377
2434
  ti = /* @__PURE__ */ new Map([
@@ -2399,16 +2456,21 @@ ${e}`;
2399
2456
  "loading"
2400
2457
  ])]
2401
2458
  ]);
2402
- Aa = (e) => e?.kind === "angularControlFlowBlock" && (e.name === "case" || e.name === "default"), Pa = (e) => e?.kind === "angularControlFlowBlock" && e.name === "default never";
2459
+ Aa = (e) => e?.kind === "angularControlFlowBlock" && (e.name === "case" || e.name === "default");
2460
+ Pa = (e) => e?.kind === "angularControlFlowBlock" && e.name === "default never";
2403
2461
  lr = (function(e) {
2404
2462
  return e[e.RAW_TEXT = 0] = "RAW_TEXT", e[e.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", e[e.PARSABLE_DATA = 2] = "PARSABLE_DATA", e;
2405
2463
  })({});
2406
2464
  Ia = "math";
2407
2465
  pr = () => Object.create(null);
2408
- hr = { name: "custom-elements" }, mr = { name: "no-errors-schema" };
2466
+ hr = { name: "custom-elements" };
2467
+ mr = { name: "no-errors-schema" };
2409
2468
  Oa = /-+([a-z0-9])/g;
2410
2469
  hi = class {};
2411
- Ma = "boolean", Ba = "number", qa = "string", Ha = "object";
2470
+ Ma = "boolean";
2471
+ Ba = "number";
2472
+ qa = "string";
2473
+ Ha = "object";
2412
2474
  Fa = [
2413
2475
  "[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored",
2414
2476
  "[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy",
@@ -2595,7 +2657,8 @@ ${e}`;
2595
2657
  ":math:munder^:math:|",
2596
2658
  ":math:munderover^:math:|",
2597
2659
  ":math:semantics^:math:|"
2598
- ], mi = new Map(Object.entries({
2660
+ ];
2661
+ mi = new Map(Object.entries({
2599
2662
  class: "className",
2600
2663
  for: "htmlFor",
2601
2664
  formaction: "formAction",
@@ -2650,7 +2713,9 @@ ${e}`;
2650
2713
  "aria-valuemin": "ariaValueMin",
2651
2714
  "aria-valuenow": "ariaValueNow",
2652
2715
  "aria-valuetext": "ariaValueText"
2653
- })), Va = Array.from(mi).reduce((e, [t, r]) => (e.set(t, r), e), /* @__PURE__ */ new Map()), fi = class extends hi {
2716
+ }));
2717
+ Va = Array.from(mi).reduce((e, [t, r]) => (e.set(t, r), e), /* @__PURE__ */ new Map());
2718
+ fi = class extends hi {
2654
2719
  _schema = /* @__PURE__ */ new Map();
2655
2720
  _eventSchema = /* @__PURE__ */ new Map();
2656
2721
  constructor() {
@@ -2808,13 +2873,15 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2808
2873
  }
2809
2874
  return null;
2810
2875
  }
2811
- }, rt = class {
2876
+ };
2877
+ rt = class {
2812
2878
  content;
2813
2879
  url;
2814
2880
  constructor(e, t) {
2815
2881
  this.content = e, this.url = t;
2816
2882
  }
2817
- }, p = class {
2883
+ };
2884
+ p = class {
2818
2885
  start;
2819
2886
  end;
2820
2887
  fullStart;
@@ -2825,9 +2892,11 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2825
2892
  toString() {
2826
2893
  return this.start.file.content.substring(this.start.offset, this.end.offset);
2827
2894
  }
2828
- }, Wa = (function(e) {
2895
+ };
2896
+ Wa = (function(e) {
2829
2897
  return e[e.WARNING = 0] = "WARNING", e[e.ERROR = 1] = "ERROR", e;
2830
- })({}), te = class extends Error {
2898
+ })({});
2899
+ te = class extends Error {
2831
2900
  span;
2832
2901
  msg;
2833
2902
  level;
@@ -2850,7 +2919,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2850
2919
  constructor(e, t) {
2851
2920
  this.sourceSpan = e, this.i18n = t;
2852
2921
  }
2853
- }, _i = class extends de {
2922
+ };
2923
+ _i = class extends de {
2854
2924
  value;
2855
2925
  tokens;
2856
2926
  constructor(e, t, r, n) {
@@ -2860,7 +2930,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2860
2930
  return e.visitText(this, t);
2861
2931
  }
2862
2932
  kind = "text";
2863
- }, Si = class extends de {
2933
+ };
2934
+ Si = class extends de {
2864
2935
  value;
2865
2936
  tokens;
2866
2937
  constructor(e, t, r, n) {
@@ -2870,7 +2941,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2870
2941
  return e.visitCdata(this, t);
2871
2942
  }
2872
2943
  kind = "cdata";
2873
- }, vi = class extends de {
2944
+ };
2945
+ vi = class extends de {
2874
2946
  switchValue;
2875
2947
  type;
2876
2948
  cases;
@@ -2882,7 +2954,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2882
2954
  return e.visitExpansion(this, t);
2883
2955
  }
2884
2956
  kind = "expansion";
2885
- }, Ci = class {
2957
+ };
2958
+ Ci = class {
2886
2959
  value;
2887
2960
  expression;
2888
2961
  sourceSpan;
@@ -2895,7 +2968,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2895
2968
  return e.visitExpansionCase(this, t);
2896
2969
  }
2897
2970
  kind = "expansionCase";
2898
- }, ki = class extends de {
2971
+ };
2972
+ ki = class extends de {
2899
2973
  name;
2900
2974
  value;
2901
2975
  keySpan;
@@ -2911,7 +2985,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2911
2985
  get nameSpan() {
2912
2986
  return this.keySpan;
2913
2987
  }
2914
- }, bi = class {
2988
+ };
2989
+ bi = class {
2915
2990
  value;
2916
2991
  type;
2917
2992
  sourceSpan;
@@ -2919,10 +2994,11 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2919
2994
  this.value = e, this.type = t, this.sourceSpan = r;
2920
2995
  }
2921
2996
  visit(e, t) {
2922
- return e.visitAttributeComment ? e.visitAttributeComment(this, t) : void 0;
2997
+ return e.visitStartTagComment ? e.visitStartTagComment(this, t) : void 0;
2923
2998
  }
2924
2999
  kind = "startTagComment";
2925
- }, re = class extends de {
3000
+ };
3001
+ re = class extends de {
2926
3002
  name;
2927
3003
  attrs;
2928
3004
  directives;
@@ -2940,7 +3016,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2940
3016
  return e.visitElement(this, t);
2941
3017
  }
2942
3018
  kind = "element";
2943
- }, wi = class {
3019
+ };
3020
+ wi = class {
2944
3021
  value;
2945
3022
  sourceSpan;
2946
3023
  constructor(e, t) {
@@ -2950,7 +3027,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2950
3027
  return e.visitComment(this, t);
2951
3028
  }
2952
3029
  kind = "comment";
2953
- }, Ti = class {
3030
+ };
3031
+ Ti = class {
2954
3032
  value;
2955
3033
  sourceSpan;
2956
3034
  constructor(e, t) {
@@ -2960,7 +3038,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2960
3038
  return e.visitDocType(this, t);
2961
3039
  }
2962
3040
  kind = "docType";
2963
- }, ge = class extends de {
3041
+ };
3042
+ ge = class extends de {
2964
3043
  name;
2965
3044
  parameters;
2966
3045
  children;
@@ -2974,7 +3053,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2974
3053
  return e.visitBlock(this, t);
2975
3054
  }
2976
3055
  kind = "block";
2977
- }, U = class extends de {
3056
+ };
3057
+ U = class extends de {
2978
3058
  componentName;
2979
3059
  tagName;
2980
3060
  fullName;
@@ -2992,7 +3072,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
2992
3072
  return e.visitComponent(this, t);
2993
3073
  }
2994
3074
  kind = "component";
2995
- }, yi = class {
3075
+ };
3076
+ yi = class {
2996
3077
  name;
2997
3078
  attrs;
2998
3079
  sourceSpan;
@@ -3005,7 +3086,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
3005
3086
  return e.visitDirective(this, t);
3006
3087
  }
3007
3088
  kind = "directive";
3008
- }, fr = class {
3089
+ };
3090
+ fr = class {
3009
3091
  expression;
3010
3092
  sourceSpan;
3011
3093
  constructor(e, t) {
@@ -3017,7 +3099,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
3017
3099
  kind = "blockParameter";
3018
3100
  startSourceSpan = null;
3019
3101
  endSourceSpan = null;
3020
- }, dr = class {
3102
+ };
3103
+ dr = class {
3021
3104
  name;
3022
3105
  value;
3023
3106
  sourceSpan;
@@ -3041,7 +3124,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
3041
3124
  });
3042
3125
  }
3043
3126
  visitAttribute(e, t) {}
3044
- visitAttributeComment(e, t) {}
3127
+ visitStartTagComment(e, t) {}
3045
3128
  visitText(e, t) {}
3046
3129
  visitCdata(e, t) {}
3047
3130
  visitComment(e, t) {}
@@ -5228,10 +5311,14 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5228
5311
  "@loading",
5229
5312
  "@error",
5230
5313
  "@content"
5231
- ], it = {
5314
+ ];
5315
+ it = {
5232
5316
  start: "{{",
5233
5317
  end: "}}"
5234
- }, Ya = class {
5318
+ };
5319
+ Ya = /^default[^\S\r\n]+never/;
5320
+ Ka = /^else[^\S\r\n]+if/;
5321
+ Qa = class {
5235
5322
  _getTagContentType;
5236
5323
  _cursor;
5237
5324
  _tokenizeIcu;
@@ -5261,7 +5348,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5261
5348
  startLine: 0,
5262
5349
  startCol: 0
5263
5350
  };
5264
- this._cursor = r.escapedString ? new ro(e, n) : new Ii(e, n), this._preserveLineEndings = r.preserveLineEndings || !1, this._i18nNormalizeLineEndingsInICUs = r.i18nNormalizeLineEndingsInICUs || !1, this._tokenizeBlocks = r.tokenizeBlocks ?? !0, this._tokenizeLet = r.tokenizeLet ?? !0, this._selectorlessEnabled = r.selectorlessEnabled ?? !1;
5351
+ this._cursor = r.escapedString ? new io(e, n) : new Ii(e, n), this._preserveLineEndings = r.preserveLineEndings || !1, this._i18nNormalizeLineEndingsInICUs = r.i18nNormalizeLineEndingsInICUs || !1, this._tokenizeBlocks = r.tokenizeBlocks ?? !0, this._tokenizeLet = r.tokenizeLet ?? !0, this._selectorlessEnabled = r.selectorlessEnabled ?? !1;
5265
5352
  try {
5266
5353
  this._cursor.init();
5267
5354
  } catch (i) {
@@ -5291,7 +5378,9 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5291
5378
  }
5292
5379
  _getBlockName() {
5293
5380
  let e = !1, t = this._cursor.clone();
5294
- return this._attemptCharCodeUntilFn((r) => nt(r) ? !e : eo(r) ? (e = !0, !1) : !0), this._cursor.getChars(t).trim();
5381
+ this._attemptCharCodeUntilFn((n) => nt(n) ? !e : ro(n) ? (e = !0, !1) : !0);
5382
+ let r = this._cursor.getChars(t).trim();
5383
+ return Ka.test(r) ? r = "else if" : Ya.test(r) && (r = "default never"), r;
5295
5384
  }
5296
5385
  _consumeBlockStart(e) {
5297
5386
  this._requireCharCode(64), this._beginToken(26, e);
@@ -5358,7 +5447,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5358
5447
  }
5359
5448
  _tokenizeExpansionForm() {
5360
5449
  if (this.isExpansionFormStart()) return this._consumeExpansionFormStart(), !0;
5361
- if (Ja(this._cursor.peek()) && this._isInExpansionForm()) return this._consumeExpansionCaseStart(), !0;
5450
+ if (eo(this._cursor.peek()) && this._isInExpansionForm()) return this._consumeExpansionCaseStart(), !0;
5362
5451
  if (this._cursor.peek() === 125) {
5363
5452
  if (this._isInExpansionCase()) return this._consumeExpansionCaseEnd(), !0;
5364
5453
  if (this._isInExpansionForm()) return this._consumeExpansionFormEnd(), !0;
@@ -5391,7 +5480,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5391
5480
  return this._cursor.peek() === e ? (this._cursor.advance(), !0) : !1;
5392
5481
  }
5393
5482
  _attemptCharCodeCaseInsensitive(e) {
5394
- return Za(this._cursor.peek(), e) ? (this._cursor.advance(), !0) : !1;
5483
+ return to(this._cursor.peek(), e) ? (this._cursor.advance(), !0) : !1;
5395
5484
  }
5396
5485
  _requireCharCode(e) {
5397
5486
  let t = this._cursor.clone();
@@ -5451,7 +5540,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5451
5540
  let t = this._cursor.clone();
5452
5541
  if (this._cursor.advance(), this._attemptCharCode(35)) {
5453
5542
  let r = this._attemptCharCode(120) || this._attemptCharCode(88), n = this._cursor.clone();
5454
- if (this._attemptCharCodeUntilFn(Qa), this._cursor.peek() != 59) {
5543
+ if (this._attemptCharCodeUntilFn(Ja), this._cursor.peek() != 59) {
5455
5544
  this._cursor.advance();
5456
5545
  let s = r ? "hexadecimal" : "decimal";
5457
5546
  throw this._createError($a(s, this._cursor.getChars(t)), this._cursor.getSpan());
@@ -5466,7 +5555,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5466
5555
  }
5467
5556
  } else {
5468
5557
  let r = this._cursor.clone();
5469
- if (this._attemptCharCodeUntilFn(Xa), this._cursor.peek() != 59) this._beginToken(e, t), this._cursor = r, this._endToken(["&"]);
5558
+ if (this._attemptCharCodeUntilFn(Za), this._cursor.peek() != 59) this._beginToken(e, t), this._cursor = r, this._endToken(["&"]);
5470
5559
  else {
5471
5560
  let n = this._cursor.getChars(r);
5472
5561
  this._cursor.advance();
@@ -5500,7 +5589,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5500
5589
  }
5501
5590
  _consumePrefixAndName(e) {
5502
5591
  let t = this._cursor.clone(), r = "";
5503
- for (; this._cursor.peek() !== 58 && !Ka(this._cursor.peek());) this._cursor.advance();
5592
+ for (; this._cursor.peek() !== 58 && !Xa(this._cursor.peek());) this._cursor.advance();
5504
5593
  let n;
5505
5594
  this._cursor.peek() === 58 ? (r = this._cursor.getChars(t), this._cursor.advance(), n = this._cursor.clone()) : n = t, this._requireCharCodeUntilFn(e, r === "" ? 0 : 1);
5506
5595
  let i = this._cursor.getChars(n);
@@ -5837,7 +5926,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5837
5926
  locationFromCursor(t) {
5838
5927
  return new De(t.file, t.state.offset, t.state.line, t.state.column);
5839
5928
  }
5840
- }, ro = class vr extends Ii {
5929
+ };
5930
+ io = class vr extends Ii {
5841
5931
  internalState;
5842
5932
  constructor(t, r) {
5843
5933
  t instanceof vr ? (super(t), this.internalState = { ...t.internalState }) : (super(t, r), this.internalState = this.state);
@@ -5888,7 +5978,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5888
5978
  if (isNaN(i)) throw t.state = t.internalState, new Cr("Invalid hexadecimal escape sequence", t);
5889
5979
  return i;
5890
5980
  }
5891
- }, Cr = class extends Error {
5981
+ };
5982
+ Cr = class extends Error {
5892
5983
  msg;
5893
5984
  cursor;
5894
5985
  constructor(e, t) {
@@ -5903,13 +5994,15 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5903
5994
  constructor(t, r, n) {
5904
5995
  super(r, n), this.elementName = t;
5905
5996
  }
5906
- }, no = class {
5997
+ };
5998
+ so = class {
5907
5999
  rootNodes;
5908
6000
  errors;
5909
6001
  constructor(e, t) {
5910
6002
  this.rootNodes = e, this.errors = t;
5911
6003
  }
5912
- }, Bi = class {
6004
+ };
6005
+ Bi = class {
5913
6006
  getTagDefinition;
5914
6007
  constructor(e) {
5915
6008
  this.getTagDefinition = e;
@@ -5918,10 +6011,11 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
5918
6011
  let s = (h) => (f, ...g) => h(f.toLowerCase(), ...g), a = n ? this.getTagDefinition : s(this.getTagDefinition), o = (h) => a(h).getContentType(), l = n ? i : s(i), c = Di(e, t, i ? (h, f, g, v) => {
5919
6012
  let W = l(h, f, g, v);
5920
6013
  return W !== void 0 ? W : o(h);
5921
- } : o, r), u = r && r.canSelfClose || !1, d = r && r.allowHtmComponentClosingTags || !1, _ = new io(c.tokens, a, u, d, n);
5922
- return _.build(), new no(_.rootNodes, [...c.errors, ..._.errors]);
6014
+ } : o, r), u = r && r.canSelfClose || !1, d = r && r.allowHtmComponentClosingTags || !1, _ = new ao(c.tokens, a, u, d, n);
6015
+ return _.build(), new so(_.rootNodes, [...c.errors, ..._.errors]);
5923
6016
  }
5924
- }, io = class qi {
6017
+ };
6018
+ ao = class qi {
5925
6019
  tokens;
5926
6020
  tagDefinitionResolver;
5927
6021
  canSelfClose;
@@ -6215,19 +6309,19 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
6215
6309
  return super.parse(e, t, r, n, i);
6216
6310
  }
6217
6311
  };
6218
- so = [
6219
- oo,
6220
- lo,
6312
+ oo = [
6313
+ co,
6221
6314
  uo,
6222
6315
  ho,
6223
- mo,
6224
- _o,
6225
6316
  fo,
6226
6317
  go,
6318
+ vo,
6319
+ _o,
6227
6320
  So,
6228
- po
6321
+ Co,
6322
+ mo
6229
6323
  ];
6230
- Fi = ao;
6324
+ Fi = lo;
6231
6325
  Vi = {
6232
6326
  features: { experimental_frontMatterSupport: {
6233
6327
  massageAstNode: !0,
@@ -6235,7 +6329,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
6235
6329
  print: !0
6236
6330
  } },
6237
6331
  preprocess: Fi,
6238
- print: vo,
6332
+ print: ko,
6239
6333
  insertPragma: ei,
6240
6334
  massageAstNode: or,
6241
6335
  embed: Gn,
@@ -6378,7 +6472,8 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
6378
6472
  description: "Enforce single attribute per line in HTML, Vue and JSX."
6379
6473
  }
6380
6474
  };
6381
- Wi = "HTML", zi = {
6475
+ Wi = "HTML";
6476
+ zi = {
6382
6477
  bracketSameLine: br.bracketSameLine,
6383
6478
  htmlWhitespaceSensitivity: {
6384
6479
  category: Wi,
@@ -6410,14 +6505,14 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
6410
6505
  };
6411
6506
  Pr = {};
6412
6507
  Ir(Pr, {
6413
- angular: () => Vo,
6414
- html: () => qo,
6415
- lwc: () => Wo,
6416
- mjml: () => Fo,
6417
- vue: () => Uo
6508
+ angular: () => Wo,
6509
+ html: () => Fo,
6510
+ lwc: () => Go,
6511
+ mjml: () => Uo,
6512
+ vue: () => zo
6418
6513
  });
6419
- Gi = bo;
6420
- wo = {
6514
+ Gi = To;
6515
+ yo = {
6421
6516
  canSelfClose: !0,
6422
6517
  normalizeTagName: !1,
6423
6518
  normalizeAttributeName: !1,
@@ -7101,7 +7196,9 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
7101
7196
  children: !0,
7102
7197
  cases: !0,
7103
7198
  expression: !0
7104
- }, ji = /* @__PURE__ */ new Set(["parent"]), Me = class Me {
7199
+ };
7200
+ ji = /* @__PURE__ */ new Set(["parent"]);
7201
+ Me = class Me {
7105
7202
  constructor(t = {}) {
7106
7203
  Rr(this, ne);
7107
7204
  Wt(this, "kind");
@@ -7127,7 +7224,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
7127
7224
  for (let n in Ht) {
7128
7225
  let i = this[n];
7129
7226
  if (i) {
7130
- let s = To(i, (a) => a.map(t));
7227
+ let s = Eo(i, (a) => a.map(t));
7131
7228
  r !== i && (r ?? (r = new Me({ parent: this.parent })), r.setProperty(n, s));
7132
7229
  }
7133
7230
  }
@@ -7196,18 +7293,18 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
7196
7293
  return this.parent?.$children ?? [];
7197
7294
  };
7198
7295
  Ft = Me;
7199
- yo = [
7296
+ xo = [
7200
7297
  {
7201
7298
  regex: /^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/s,
7202
- parse: Eo
7299
+ parse: Lo
7203
7300
  },
7204
7301
  {
7205
7302
  regex: /^\[if(?<condition>[^\]]*)\]><!$/,
7206
- parse: xo
7303
+ parse: Ao
7207
7304
  },
7208
7305
  {
7209
7306
  regex: /^<!\s*\[endif\]$/,
7210
- parse: Lo
7307
+ parse: Po
7211
7308
  }
7212
7309
  ];
7213
7310
  Er = class extends gr {
@@ -7217,7 +7314,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
7217
7314
  });
7218
7315
  }
7219
7316
  visit(t, { parseOptions: r }) {
7220
- Do(t), Io(t, r), Oo(t, r), Ro(t);
7317
+ Ro(t), Oo(t, r), Bo(t, r), Mo(t);
7221
7318
  }
7222
7319
  };
7223
7320
  Vt = Bt({
@@ -7226,25 +7323,30 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
7226
7323
  normalizeAttributeName: !0,
7227
7324
  allowHtmComponentClosingTags: !0
7228
7325
  });
7229
- qo = st(Vt), Ho = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]), Fo = st({
7326
+ Fo = st(Vt);
7327
+ Vo = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]);
7328
+ Uo = st({
7230
7329
  ...Vt,
7231
7330
  name: "mjml",
7232
- shouldParseAsRawText: (e) => Ho.has(e)
7233
- }), Vo = st({
7331
+ shouldParseAsRawText: (e) => Vo.has(e)
7332
+ });
7333
+ Wo = st({
7234
7334
  name: "angular",
7235
7335
  tokenizeAngularBlocks: !0,
7236
7336
  tokenizeAngularLetDeclaration: !0,
7237
7337
  allowStartTagComments: !0
7238
- }), Uo = st({
7338
+ });
7339
+ zo = st({
7239
7340
  name: "vue",
7240
7341
  isTagNameCaseSensitive: !0,
7241
7342
  shouldParseAsRawText(e, t, r, n) {
7242
7343
  return e.toLowerCase() !== "html" && !r && (e !== "template" || n.some(({ name: i, value: s }) => i === "lang" && s !== "html" && s !== "" && s !== void 0));
7243
7344
  }
7244
- }), Wo = st({
7345
+ });
7346
+ Go = st({
7245
7347
  name: "lwc",
7246
7348
  canSelfClose: !1
7247
7349
  });
7248
- zo = { html: Vi };
7350
+ $o = { html: Vi };
7249
7351
  }))();
7250
- export { Zi as default, Ui as languages, zi as options, Pr as parsers, zo as printers };
7352
+ export { Zi as default, Ui as languages, zi as options, Pr as parsers, $o as printers };