otomate 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/otomate.js CHANGED
@@ -85,21 +85,21 @@ function Hk(e, t) {
85
85
  function zk(e, t) {
86
86
  return e.id = t, e;
87
87
  }
88
- function _u(e, t, n = null, r = 0) {
88
+ function ku(e, t, n = null, r = 0) {
89
89
  if (t(e, n, r) !== !1 && Oe(e))
90
90
  for (let s = 0; s < e.children.length; s++)
91
- _u(e.children[s], t, e, s);
91
+ ku(e.children[s], t, e, s);
92
92
  }
93
- function ku(e) {
93
+ function wu(e) {
94
94
  let t = 1;
95
95
  if (Oe(e))
96
96
  for (const n of e.children)
97
- t += ku(n);
97
+ t += wu(n);
98
98
  return t;
99
99
  }
100
100
  function $k(e) {
101
101
  const t = [];
102
- return _u(e, (n) => {
102
+ return ku(e, (n) => {
103
103
  t.push(n);
104
104
  }), t;
105
105
  }
@@ -135,7 +135,7 @@ function md(e) {
135
135
  return !e || e.length === 0 ? "" : [...e].sort((n, r) => n.type.localeCompare(r.type)).map((n) => n.attrs ? `${n.type}:${JSON.stringify(n.attrs, Object.keys(n.attrs).sort())}` : n.type).join("|");
136
136
  }
137
137
  const es = /* @__PURE__ */ new WeakMap();
138
- function wu(e) {
138
+ function Au(e) {
139
139
  const t = es.get(e);
140
140
  if (t !== void 0)
141
141
  return t;
@@ -148,7 +148,7 @@ function wu(e) {
148
148
  const i = bd(e);
149
149
  n = ir(`${e.type}:${i}:${r}`);
150
150
  } else if (Oe(e)) {
151
- const i = e.children.map(wu), s = Ed(e);
151
+ const i = e.children.map(Au), s = Ed(e);
152
152
  n = ir(`${e.type}:${s}:${r}:[${i.join(",")}]`);
153
153
  } else
154
154
  n = ir(`${e.type}:${yd(e)}:${r}`);
@@ -172,25 +172,25 @@ function yd(e) {
172
172
  const t = [];
173
173
  return "url" in e && t.push(`u:${e.url}`), "alt" in e && e.alt && t.push(`a:${e.alt}`), "title" in e && e.title && t.push(`t:${e.title}`), "identifier" in e && t.push(`id:${e.identifier}`), t.join(";");
174
174
  }
175
- function ha(e) {
175
+ function fa(e) {
176
176
  const t = /* @__PURE__ */ new Map();
177
177
  function n(r) {
178
- const i = wu(r), s = ku(r), o = { node: r, hash: i, size: s }, a = t.get(i);
178
+ const i = Au(r), s = wu(r), o = { node: r, hash: i, size: s }, a = t.get(i);
179
179
  if (a ? a.push(o) : t.set(i, [o]), Oe(r))
180
180
  for (const u of r.children)
181
181
  n(u);
182
182
  }
183
183
  return n(e), t;
184
184
  }
185
- function Au(e, t, n, r) {
185
+ function xu(e, t, n, r) {
186
186
  if (n.set(e, t), r.set(t, e), Oe(e) && Oe(t)) {
187
187
  const i = e, s = t;
188
188
  for (let o = 0; o < i.children.length && o < s.children.length; o++)
189
- Au(i.children[o], s.children[o], n, r);
189
+ xu(i.children[o], s.children[o], n, r);
190
190
  }
191
191
  }
192
192
  function Td(e, t) {
193
- const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = ha(e), s = ha(t), o = [];
193
+ const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = fa(e), s = fa(t), o = [];
194
194
  for (const [a, u] of i) {
195
195
  const c = s.get(a);
196
196
  if (c)
@@ -211,7 +211,7 @@ function Td(e, t) {
211
211
  }
212
212
  o.sort((a, u) => u.size - a.size);
213
213
  for (const { oldNode: a, newNode: u } of o)
214
- n.has(a) || r.has(u) || Au(a, u, n, r);
214
+ n.has(a) || r.has(u) || xu(a, u, n, r);
215
215
  return { forward: n, reverse: r };
216
216
  }
217
217
  function _d(e, t, n) {
@@ -283,23 +283,23 @@ function xd(e, t, n, r, i = 0.5) {
283
283
  const _ = f + E;
284
284
  _ > h && (h = _, d = m);
285
285
  }
286
- d && h >= i && (n.set(u, d), r.set(d, u), Su(o, u.type, d));
286
+ d && h >= i && (n.set(u, d), r.set(d, u), Cu(o, u.type, d));
287
287
  }
288
288
  Cd(e, n, r, o);
289
289
  }
290
290
  function Sd(e, t, n) {
291
- const r = xu(t, e);
291
+ const r = Su(t, e);
292
292
  if (r)
293
293
  return n.get(r);
294
294
  }
295
- function xu(e, t) {
295
+ function Su(e, t) {
296
296
  if (!Oe(e))
297
297
  return null;
298
298
  const n = e;
299
299
  for (const r of n.children) {
300
300
  if (r === t)
301
301
  return e;
302
- const i = xu(r, t);
302
+ const i = Su(r, t);
303
303
  if (i)
304
304
  return i;
305
305
  }
@@ -333,7 +333,7 @@ function Cd(e, t, n, r) {
333
333
  }
334
334
  }
335
335
  function ns(e, t, n, r, i) {
336
- if (n.set(e, t), r.set(t, e), Su(i, t.type, t), Oe(e) && Oe(t)) {
336
+ if (n.set(e, t), r.set(t, e), Cu(i, t.type, t), Oe(e) && Oe(t)) {
337
337
  const s = e, o = t, a = /* @__PURE__ */ new Set();
338
338
  for (let u = 0; u < s.children.length; u++) {
339
339
  if (n.has(s.children[u]))
@@ -342,7 +342,7 @@ function ns(e, t, n, r, i) {
342
342
  }
343
343
  }
344
344
  }
345
- function Su(e, t, n) {
345
+ function Cu(e, t, n) {
346
346
  const r = e.get(t);
347
347
  if (r) {
348
348
  const i = r.indexOf(n);
@@ -403,7 +403,7 @@ function vd(e, t) {
403
403
  d--, h--, c.push({ type: "equal", value: e[d] });
404
404
  return c.reverse(), c;
405
405
  }
406
- function fa(e, t, n = "word") {
406
+ function pa(e, t, n = "word") {
407
407
  if (e === t)
408
408
  return [{ type: "equal", value: e, offset: 0 }];
409
409
  const r = n === "word" ? Nd : Id, i = r(e), s = r(t), o = vd(i, s), a = [];
@@ -437,7 +437,7 @@ function Od(e, t) {
437
437
  return !1;
438
438
  return !0;
439
439
  }
440
- function pa(e) {
440
+ function ma(e) {
441
441
  const t = {};
442
442
  for (const [n, r] of Object.entries(e))
443
443
  ["type", "children", "value", "data", "position", "id", "marks"].includes(n) || r !== void 0 && (t[n] = r);
@@ -460,7 +460,7 @@ function Rd(e, t, n, r, i = {}) {
460
460
  const d = Nn(e, u), h = Nn(t, c);
461
461
  if (!d || !h)
462
462
  continue;
463
- const m = pa(u), f = pa(c);
463
+ const m = ma(u), f = ma(c);
464
464
  if (Ld(m, f) || s.push({
465
465
  type: "update",
466
466
  path: h,
@@ -484,18 +484,18 @@ function Rd(e, t, n, r, i = {}) {
484
484
  E.value !== g.value && s.push({
485
485
  type: "updateText",
486
486
  path: h,
487
- changes: fa(E.value, g.value, o)
487
+ changes: pa(E.value, g.value, o)
488
488
  });
489
489
  } else if (Ir(u) && Ir(c)) {
490
490
  const E = u.value, g = c.value;
491
491
  E !== g && s.push({
492
492
  type: "updateText",
493
493
  path: h,
494
- changes: fa(E, g, o)
494
+ changes: pa(E, g, o)
495
495
  });
496
496
  }
497
497
  if (d.length > 0 && h.length > 0) {
498
- const E = d.slice(0, -1), g = h.slice(0, -1), _ = ga(e, E), p = ga(t, g);
498
+ const E = d.slice(0, -1), g = h.slice(0, -1), _ = ba(e, E), p = ba(t, g);
499
499
  if (_ && p) {
500
500
  const y = n.get(_);
501
501
  if (y && y !== p)
@@ -507,10 +507,10 @@ function Rd(e, t, n, r, i = {}) {
507
507
  }
508
508
  }
509
509
  }
510
- ma(e, n, (u) => {
510
+ ga(e, n, (u) => {
511
511
  const c = Nn(e, u);
512
512
  c && s.push({ type: "delete", path: c, node: rs(u) });
513
- }), ma(t, r, (u) => {
513
+ }), ga(t, r, (u) => {
514
514
  const c = Nn(t, u);
515
515
  c && s.push({ type: "insert", path: c, node: rs(u) });
516
516
  });
@@ -523,7 +523,7 @@ function Rd(e, t, n, r, i = {}) {
523
523
  };
524
524
  return { version: 1, operations: s, stats: a };
525
525
  }
526
- function ma(e, t, n) {
526
+ function ga(e, t, n) {
527
527
  function r(i) {
528
528
  if (!t.has(i)) {
529
529
  n(i);
@@ -537,7 +537,7 @@ function ma(e, t, n) {
537
537
  for (const i of e.children)
538
538
  r(i);
539
539
  }
540
- function ga(e, t) {
540
+ function ba(e, t) {
541
541
  let n = e;
542
542
  for (const r of t) {
543
543
  if (!Oe(n))
@@ -577,7 +577,7 @@ class Vn {
577
577
  Vn.prototype.normal = {};
578
578
  Vn.prototype.property = {};
579
579
  Vn.prototype.space = void 0;
580
- function Cu(e, t) {
580
+ function Nu(e, t) {
581
581
  const n = {}, r = {};
582
582
  for (const i of e)
583
583
  Object.assign(n, i.property), Object.assign(r, i.normal);
@@ -629,7 +629,7 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
629
629
  /** @type {ReadonlyArray<keyof typeof types>} */
630
630
  Object.keys(ss)
631
631
  );
632
- class Ls extends nt {
632
+ class Rs extends nt {
633
633
  /**
634
634
  * @constructor
635
635
  * @param {string} property
@@ -645,21 +645,21 @@ class Ls extends nt {
645
645
  */
646
646
  constructor(t, n, r, i) {
647
647
  let s = -1;
648
- if (super(t, n), ba(this, "space", i), typeof r == "number")
648
+ if (super(t, n), Ea(this, "space", i), typeof r == "number")
649
649
  for (; ++s < si.length; ) {
650
650
  const o = si[s];
651
- ba(this, si[s], (r & ss[o]) === ss[o]);
651
+ Ea(this, si[s], (r & ss[o]) === ss[o]);
652
652
  }
653
653
  }
654
654
  }
655
- Ls.prototype.defined = !0;
656
- function ba(e, t, n) {
655
+ Rs.prototype.defined = !0;
656
+ function Ea(e, t, n) {
657
657
  n && (e[t] = n);
658
658
  }
659
659
  function Tn(e) {
660
660
  const t = {}, n = {};
661
661
  for (const [r, i] of Object.entries(e.properties)) {
662
- const s = new Ls(
662
+ const s = new Rs(
663
663
  r,
664
664
  e.transform(e.attributes || {}, r),
665
665
  i,
@@ -669,7 +669,7 @@ function Tn(e) {
669
669
  }
670
670
  return new Vn(t, n, e.space);
671
671
  }
672
- const Nu = Tn({
672
+ const Iu = Tn({
673
673
  properties: {
674
674
  ariaActiveDescendant: null,
675
675
  ariaAtomic: De,
@@ -725,11 +725,11 @@ const Nu = Tn({
725
725
  return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
726
726
  }
727
727
  });
728
- function Iu(e, t) {
728
+ function vu(e, t) {
729
729
  return t in e ? e[t] : t;
730
730
  }
731
- function vu(e, t) {
732
- return Iu(e, t.toLowerCase());
731
+ function Ou(e, t) {
732
+ return vu(e, t.toLowerCase());
733
733
  }
734
734
  const Dd = Tn({
735
735
  attributes: {
@@ -1091,7 +1091,7 @@ const Dd = Tn({
1091
1091
  unselectable: null
1092
1092
  },
1093
1093
  space: "html",
1094
- transform: vu
1094
+ transform: Ou
1095
1095
  }), Md = Tn({
1096
1096
  attributes: {
1097
1097
  accentHeight: "accent-height",
@@ -1650,8 +1650,8 @@ const Dd = Tn({
1650
1650
  zoomAndPan: null
1651
1651
  },
1652
1652
  space: "svg",
1653
- transform: Iu
1654
- }), Ou = Tn({
1653
+ transform: vu
1654
+ }), Lu = Tn({
1655
1655
  properties: {
1656
1656
  xLinkActuate: null,
1657
1657
  xLinkArcRole: null,
@@ -1665,35 +1665,35 @@ const Dd = Tn({
1665
1665
  transform(e, t) {
1666
1666
  return "xlink:" + t.slice(5).toLowerCase();
1667
1667
  }
1668
- }), Lu = Tn({
1668
+ }), Ru = Tn({
1669
1669
  attributes: { xmlnsxlink: "xmlns:xlink" },
1670
1670
  properties: { xmlnsXLink: null, xmlns: null },
1671
1671
  space: "xmlns",
1672
- transform: vu
1673
- }), Ru = Tn({
1672
+ transform: Ou
1673
+ }), Pu = Tn({
1674
1674
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1675
1675
  space: "xml",
1676
1676
  transform(e, t) {
1677
1677
  return "xml:" + t.slice(3).toLowerCase();
1678
1678
  }
1679
- }), Bd = /[A-Z]/g, Ea = /-[a-z]/g, Fd = /^data[-\w.:]+$/i;
1680
- function Rs(e, t) {
1679
+ }), Bd = /[A-Z]/g, ya = /-[a-z]/g, Fd = /^data[-\w.:]+$/i;
1680
+ function Ps(e, t) {
1681
1681
  const n = jn(t);
1682
1682
  let r = t, i = nt;
1683
1683
  if (n in e.normal)
1684
1684
  return e.property[e.normal[n]];
1685
1685
  if (n.length > 4 && n.slice(0, 4) === "data" && Fd.test(t)) {
1686
1686
  if (t.charAt(4) === "-") {
1687
- const s = t.slice(5).replace(Ea, Hd);
1687
+ const s = t.slice(5).replace(ya, Hd);
1688
1688
  r = "data" + s.charAt(0).toUpperCase() + s.slice(1);
1689
1689
  } else {
1690
1690
  const s = t.slice(4);
1691
- if (!Ea.test(s)) {
1691
+ if (!ya.test(s)) {
1692
1692
  let o = s.replace(Bd, Ud);
1693
1693
  o.charAt(0) !== "-" && (o = "-" + o), t = "data" + o;
1694
1694
  }
1695
1695
  }
1696
- i = Ls;
1696
+ i = Rs;
1697
1697
  }
1698
1698
  return new i(r, t);
1699
1699
  }
@@ -1703,8 +1703,8 @@ function Ud(e) {
1703
1703
  function Hd(e) {
1704
1704
  return e.charAt(1).toUpperCase();
1705
1705
  }
1706
- const qr = Cu([Nu, Dd, Ou, Lu, Ru], "html"), Kn = Cu([Nu, Md, Ou, Lu, Ru], "svg");
1707
- function ya(e) {
1706
+ const qr = Nu([Iu, Dd, Lu, Ru, Pu], "html"), Kn = Nu([Iu, Md, Lu, Ru, Pu], "svg");
1707
+ function Ta(e) {
1708
1708
  const t = [], n = String(e || "");
1709
1709
  let r = n.indexOf(","), i = 0, s = !1;
1710
1710
  for (; !s; ) {
@@ -1720,13 +1720,13 @@ function zd(e, t) {
1720
1720
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
1721
1721
  ).trim();
1722
1722
  }
1723
- const Ta = /[#.]/g;
1723
+ const _a = /[#.]/g;
1724
1724
  function $d(e, t) {
1725
1725
  const n = e || "", r = {};
1726
1726
  let i = 0, s, o;
1727
1727
  for (; i < n.length; ) {
1728
- Ta.lastIndex = i;
1729
- const a = Ta.exec(n), u = n.slice(i, a ? a.index : n.length);
1728
+ _a.lastIndex = i;
1729
+ const a = _a.exec(n), u = n.slice(i, a ? a.index : n.length);
1730
1730
  u && (s ? s === "#" ? r.id = u : Array.isArray(r.className) ? r.className.push(u) : r.className = [u] : o = u, i += u.length), a && (s = a[0], i++);
1731
1731
  }
1732
1732
  return {
@@ -1737,14 +1737,14 @@ function $d(e, t) {
1737
1737
  children: []
1738
1738
  };
1739
1739
  }
1740
- function _a(e) {
1740
+ function ka(e) {
1741
1741
  const t = String(e || "").trim();
1742
1742
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
1743
1743
  }
1744
1744
  function jd(e) {
1745
1745
  return e.join(" ").trim();
1746
1746
  }
1747
- function Pu(e, t, n) {
1747
+ function Du(e, t, n) {
1748
1748
  const r = n ? Gd(n) : void 0;
1749
1749
  function i(s, o, ...a) {
1750
1750
  let u;
@@ -1794,19 +1794,19 @@ function qd(e) {
1794
1794
  return !!("children" in e && Array.isArray(e.children));
1795
1795
  }
1796
1796
  function Yd(e, t, n, r) {
1797
- const i = Rs(e, n);
1797
+ const i = Ps(e, n);
1798
1798
  let s;
1799
1799
  if (r != null) {
1800
1800
  if (typeof r == "number") {
1801
1801
  if (Number.isNaN(r)) return;
1802
1802
  s = r;
1803
- } else typeof r == "boolean" ? s = r : typeof r == "string" ? i.spaceSeparated ? s = _a(r) : i.commaSeparated ? s = ya(r) : i.commaOrSpaceSeparated ? s = _a(ya(r).join(" ")) : s = ka(i, i.property, r) : Array.isArray(r) ? s = [...r] : s = i.property === "style" ? Wd(r) : String(r);
1803
+ } else typeof r == "boolean" ? s = r : typeof r == "string" ? i.spaceSeparated ? s = ka(r) : i.commaSeparated ? s = Ta(r) : i.commaOrSpaceSeparated ? s = ka(Ta(r).join(" ")) : s = wa(i, i.property, r) : Array.isArray(r) ? s = [...r] : s = i.property === "style" ? Wd(r) : String(r);
1804
1804
  if (Array.isArray(s)) {
1805
1805
  const o = [];
1806
1806
  for (const a of s)
1807
1807
  o.push(
1808
1808
  /** @type {number | string} */
1809
- ka(i, i.property, a)
1809
+ wa(i, i.property, a)
1810
1810
  );
1811
1811
  s = o;
1812
1812
  }
@@ -1827,7 +1827,7 @@ function as(e, t) {
1827
1827
  else
1828
1828
  throw new Error("Expected node, nodes, or string, got `" + t + "`");
1829
1829
  }
1830
- function ka(e, t, n) {
1830
+ function wa(e, t, n) {
1831
1831
  if (typeof n == "string") {
1832
1832
  if (e.number && n && !Number.isNaN(Number(n)))
1833
1833
  return Number(n);
@@ -1888,7 +1888,7 @@ const Vd = [
1888
1888
  "solidColor",
1889
1889
  "textArea",
1890
1890
  "textPath"
1891
- ], Kd = Pu(qr, "div"), Xd = Pu(Kn, "g", Vd);
1891
+ ], Kd = Du(qr, "div"), Xd = Du(Kn, "g", Vd);
1892
1892
  function Qd(e) {
1893
1893
  const t = String(e), n = [];
1894
1894
  return { toOffset: i, toPoint: r };
@@ -1898,7 +1898,7 @@ function Qd(e) {
1898
1898
  for (; ; ) {
1899
1899
  let a = n[o];
1900
1900
  if (a === void 0) {
1901
- const u = wa(t, n[o - 1]);
1901
+ const u = Aa(t, n[o - 1]);
1902
1902
  a = u === -1 ? t.length + 1 : u + 1, n[o] = a;
1903
1903
  }
1904
1904
  if (a > s)
@@ -1914,7 +1914,7 @@ function Qd(e) {
1914
1914
  function i(s) {
1915
1915
  if (s && typeof s.line == "number" && typeof s.column == "number" && !Number.isNaN(s.line) && !Number.isNaN(s.column)) {
1916
1916
  for (; n.length < s.line; ) {
1917
- const a = n[n.length - 1], u = wa(t, a), c = u === -1 ? t.length + 1 : u + 1;
1917
+ const a = n[n.length - 1], u = Aa(t, a), c = u === -1 ? t.length + 1 : u + 1;
1918
1918
  if (a === c) break;
1919
1919
  n.push(c);
1920
1920
  }
@@ -1923,17 +1923,17 @@ function Qd(e) {
1923
1923
  }
1924
1924
  }
1925
1925
  }
1926
- function wa(e, t) {
1926
+ function Aa(e, t) {
1927
1927
  const n = e.indexOf("\r", t), r = e.indexOf(`
1928
1928
  `, t);
1929
1929
  return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
1930
1930
  }
1931
1931
  const Zd = {
1932
1932
  svg: "http://www.w3.org/2000/svg"
1933
- }, Du = {}.hasOwnProperty, Jd = Object.prototype;
1933
+ }, Mu = {}.hasOwnProperty, Jd = Object.prototype;
1934
1934
  function eh(e, t) {
1935
1935
  const n = t || {};
1936
- return Ps(
1936
+ return Ds(
1937
1937
  {
1938
1938
  file: n.file || void 0,
1939
1939
  location: !1,
@@ -1943,7 +1943,7 @@ function eh(e, t) {
1943
1943
  e
1944
1944
  );
1945
1945
  }
1946
- function Ps(e, t) {
1946
+ function Ds(e, t) {
1947
1947
  let n;
1948
1948
  switch (t.nodeName) {
1949
1949
  case "#comment": {
@@ -1961,7 +1961,7 @@ function Ps(e, t) {
1961
1961
  ), i = "mode" in r ? r.mode === "quirks" || r.mode === "limited-quirks" : !1;
1962
1962
  if (n = {
1963
1963
  type: "root",
1964
- children: Mu(e, t.childNodes),
1964
+ children: Bu(e, t.childNodes),
1965
1965
  data: { quirksMode: i }
1966
1966
  }, e.file && e.location) {
1967
1967
  const s = String(e.file), o = Qd(s), a = o.toPoint(0), u = o.toPoint(s.length);
@@ -1992,13 +1992,13 @@ function Ps(e, t) {
1992
1992
  ), n;
1993
1993
  }
1994
1994
  }
1995
- function Mu(e, t) {
1995
+ function Bu(e, t) {
1996
1996
  let n = -1;
1997
1997
  const r = [];
1998
1998
  for (; ++n < t.length; ) {
1999
1999
  const i = (
2000
2000
  /** @type {RootContent} */
2001
- Ps(e, t[n])
2001
+ Ds(e, t[n])
2002
2002
  );
2003
2003
  r.push(i);
2004
2004
  }
@@ -2011,16 +2011,16 @@ function th(e, t) {
2011
2011
  const i = {};
2012
2012
  for (; ++r < t.attrs.length; ) {
2013
2013
  const a = t.attrs[r], u = (a.prefix ? a.prefix + ":" : "") + a.name;
2014
- Du.call(Jd, u) || (i[u] = a.value);
2014
+ Mu.call(Jd, u) || (i[u] = a.value);
2015
2015
  }
2016
- const o = (e.schema.space === "svg" ? Xd : Kd)(t.tagName, i, Mu(e, t.childNodes));
2016
+ const o = (e.schema.space === "svg" ? Xd : Kd)(t.tagName, i, Bu(e, t.childNodes));
2017
2017
  if (kr(e, t, o), o.tagName === "template") {
2018
2018
  const a = (
2019
2019
  /** @type {DefaultTreeAdapterMap['template']} */
2020
2020
  t
2021
2021
  ), u = a.sourceCodeLocation, c = u && u.startTag && cn(u.startTag), d = u && u.endTag && cn(u.endTag), h = (
2022
2022
  /** @type {Root} */
2023
- Ps(e, a.content)
2023
+ Ds(e, a.content)
2024
2024
  );
2025
2025
  c && d && e.file && (h.position = { start: c.end, end: d.start }), o.content = h;
2026
2026
  }
@@ -2041,7 +2041,7 @@ function nh(e, t, n) {
2041
2041
  let o;
2042
2042
  if (n.attrs)
2043
2043
  for (o in n.attrs)
2044
- Du.call(n.attrs, o) && (s[Rs(e.schema, o).property] = cn(
2044
+ Mu.call(n.attrs, o) && (s[Ps(e.schema, o).property] = cn(
2045
2045
  n.attrs[o]
2046
2046
  ));
2047
2047
  n.startTag;
@@ -2052,18 +2052,18 @@ function nh(e, t, n) {
2052
2052
  return r;
2053
2053
  }
2054
2054
  function cn(e) {
2055
- const t = Aa({
2055
+ const t = xa({
2056
2056
  line: e.startLine,
2057
2057
  column: e.startCol,
2058
2058
  offset: e.startOffset
2059
- }), n = Aa({
2059
+ }), n = xa({
2060
2060
  line: e.endLine,
2061
2061
  column: e.endCol,
2062
2062
  offset: e.endOffset
2063
2063
  });
2064
2064
  return t || n ? { start: t, end: n } : void 0;
2065
2065
  }
2066
- function Aa(e) {
2066
+ function xa(e) {
2067
2067
  return e.line && e.column ? e : void 0;
2068
2068
  }
2069
2069
  const rh = /* @__PURE__ */ new Set([
@@ -2114,7 +2114,7 @@ const Ze = {
2114
2114
  PUBLIC: "public",
2115
2115
  SYSTEM: "system"
2116
2116
  };
2117
- function Bu(e) {
2117
+ function Fu(e) {
2118
2118
  return e >= 55296 && e <= 57343;
2119
2119
  }
2120
2120
  function ih(e) {
@@ -2123,10 +2123,10 @@ function ih(e) {
2123
2123
  function sh(e, t) {
2124
2124
  return (e - 55296) * 1024 + 9216 + t;
2125
2125
  }
2126
- function Fu(e) {
2126
+ function Uu(e) {
2127
2127
  return e !== 32 && e !== 10 && e !== 13 && e !== 9 && e !== 12 && e >= 1 && e <= 31 || e >= 127 && e <= 159;
2128
2128
  }
2129
- function Uu(e) {
2129
+ function Hu(e) {
2130
2130
  return e >= 64976 && e <= 65007 || rh.has(e);
2131
2131
  }
2132
2132
  var q;
@@ -2205,10 +2205,10 @@ class oh {
2205
2205
  if (this.pos++, this.isEol && (this.isEol = !1, this.line++, this.lineStartPos = this.pos), this.pos >= this.html.length)
2206
2206
  return this.endOfChunkHit = !this.lastChunkWritten, w.EOF;
2207
2207
  let t = this.html.charCodeAt(this.pos);
2208
- return t === w.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, w.LINE_FEED) : t === w.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, Bu(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === w.LINE_FEED || t === w.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
2208
+ return t === w.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, w.LINE_FEED) : t === w.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, Fu(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === w.LINE_FEED || t === w.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
2209
2209
  }
2210
2210
  _checkForProblematicCharacters(t) {
2211
- Fu(t) ? this._err(q.controlCharacterInInputStream) : Uu(t) && this._err(q.noncharacterInInputStream);
2211
+ Uu(t) ? this._err(q.controlCharacterInInputStream) : Hu(t) && this._err(q.noncharacterInInputStream);
2212
2212
  }
2213
2213
  retreat(t) {
2214
2214
  for (this.pos -= t; this.pos < this.lastGapPos; )
@@ -2220,7 +2220,7 @@ var ye;
2220
2220
  (function(e) {
2221
2221
  e[e.CHARACTER = 0] = "CHARACTER", e[e.NULL_CHARACTER = 1] = "NULL_CHARACTER", e[e.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", e[e.START_TAG = 3] = "START_TAG", e[e.END_TAG = 4] = "END_TAG", e[e.COMMENT = 5] = "COMMENT", e[e.DOCTYPE = 6] = "DOCTYPE", e[e.EOF = 7] = "EOF", e[e.HIBERNATION = 8] = "HIBERNATION";
2222
2222
  })(ye || (ye = {}));
2223
- function Hu(e, t) {
2223
+ function zu(e, t) {
2224
2224
  for (let n = e.attrs.length - 1; n >= 0; n--)
2225
2225
  if (e.attrs[n].name === t)
2226
2226
  return e.attrs[n].value;
@@ -2765,20 +2765,20 @@ function Th(e) {
2765
2765
  function Ft(e) {
2766
2766
  return Th(e) || In(e);
2767
2767
  }
2768
- function xa(e) {
2768
+ function Sa(e) {
2769
2769
  return Ft(e) || yh(e);
2770
2770
  }
2771
2771
  function sr(e) {
2772
2772
  return e + 32;
2773
2773
  }
2774
- function zu(e) {
2774
+ function $u(e) {
2775
2775
  return e === w.SPACE || e === w.LINE_FEED || e === w.TABULATION || e === w.FORM_FEED;
2776
2776
  }
2777
- function Sa(e) {
2778
- return zu(e) || e === w.SOLIDUS || e === w.GREATER_THAN_SIGN;
2777
+ function Ca(e) {
2778
+ return $u(e) || e === w.SOLIDUS || e === w.GREATER_THAN_SIGN;
2779
2779
  }
2780
2780
  function _h(e) {
2781
- return e === w.NULL ? q.nullCharacterReference : e > 1114111 ? q.characterReferenceOutsideUnicodeRange : Bu(e) ? q.surrogateCharacterReference : Uu(e) ? q.noncharacterCharacterReference : Fu(e) || e === w.CARRIAGE_RETURN ? q.controlCharacterReference : null;
2781
+ return e === w.NULL ? q.nullCharacterReference : e > 1114111 ? q.characterReferenceOutsideUnicodeRange : Fu(e) ? q.surrogateCharacterReference : Hu(e) ? q.noncharacterCharacterReference : Uu(e) || e === w.CARRIAGE_RETURN ? q.controlCharacterReference : null;
2782
2782
  }
2783
2783
  class kh {
2784
2784
  constructor(t, n) {
@@ -2911,7 +2911,7 @@ class kh {
2911
2911
  _leaveAttrName() {
2912
2912
  var t, n;
2913
2913
  const r = this.currentToken;
2914
- if (Hu(r, this.currentAttr.name) === null) {
2914
+ if (zu(r, this.currentAttr.name) === null) {
2915
2915
  if (r.attrs.push(this.currentAttr), r.location && this.currentLocation) {
2916
2916
  const i = (t = (n = r.location).attrs) !== null && t !== void 0 ? t : n.attrs = /* @__PURE__ */ Object.create(null);
2917
2917
  i[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue();
@@ -2978,7 +2978,7 @@ class kh {
2978
2978
  this._createCharacterToken(t, n);
2979
2979
  }
2980
2980
  _emitCodePoint(t) {
2981
- const n = zu(t) ? ye.WHITESPACE_CHARACTER : t === w.NULL ? ye.NULL_CHARACTER : ye.CHARACTER;
2981
+ const n = $u(t) ? ye.WHITESPACE_CHARACTER : t === w.NULL ? ye.NULL_CHARACTER : ye.CHARACTER;
2982
2982
  this._appendCharToCurrentCharacterToken(n, String.fromCodePoint(t));
2983
2983
  }
2984
2984
  //NOTE: used when we emit characters explicitly.
@@ -3657,7 +3657,7 @@ class kh {
3657
3657
  // Script data double escape start state
3658
3658
  //------------------------------------------------------------------
3659
3659
  _stateScriptDataDoubleEscapeStart(t) {
3660
- if (this.preprocessor.startsWith(Ze.SCRIPT, !1) && Sa(this.preprocessor.peek(Ze.SCRIPT.length))) {
3660
+ if (this.preprocessor.startsWith(Ze.SCRIPT, !1) && Ca(this.preprocessor.peek(Ze.SCRIPT.length))) {
3661
3661
  this._emitCodePoint(t);
3662
3662
  for (let n = 0; n < Ze.SCRIPT.length; n++)
3663
3663
  this._emitCodePoint(this._consume());
@@ -3748,7 +3748,7 @@ class kh {
3748
3748
  // Script data double escape end state
3749
3749
  //------------------------------------------------------------------
3750
3750
  _stateScriptDataDoubleEscapeEnd(t) {
3751
- if (this.preprocessor.startsWith(Ze.SCRIPT, !1) && Sa(this.preprocessor.peek(Ze.SCRIPT.length))) {
3751
+ if (this.preprocessor.startsWith(Ze.SCRIPT, !1) && Ca(this.preprocessor.peek(Ze.SCRIPT.length))) {
3752
3752
  this._emitCodePoint(t);
3753
3753
  for (let n = 0; n < Ze.SCRIPT.length; n++)
3754
3754
  this._emitCodePoint(this._consume());
@@ -4662,16 +4662,16 @@ class kh {
4662
4662
  this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
4663
4663
  return;
4664
4664
  }
4665
- t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(w.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && xa(this.preprocessor.peek(1)) ? N.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
4665
+ t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(w.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && Sa(this.preprocessor.peek(1)) ? N.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
4666
4666
  }
4667
4667
  // Ambiguos ampersand state
4668
4668
  //------------------------------------------------------------------
4669
4669
  _stateAmbiguousAmpersand(t) {
4670
- xa(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === w.SEMICOLON && this._err(q.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
4670
+ Sa(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === w.SEMICOLON && this._err(q.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
4671
4671
  }
4672
4672
  }
4673
- const $u = /* @__PURE__ */ new Set([l.DD, l.DT, l.LI, l.OPTGROUP, l.OPTION, l.P, l.RB, l.RP, l.RT, l.RTC]), Ca = /* @__PURE__ */ new Set([
4674
- ...$u,
4673
+ const ju = /* @__PURE__ */ new Set([l.DD, l.DT, l.LI, l.OPTGROUP, l.OPTION, l.P, l.RB, l.RP, l.RT, l.RTC]), Na = /* @__PURE__ */ new Set([
4674
+ ...ju,
4675
4675
  l.CAPTION,
4676
4676
  l.COLGROUP,
4677
4677
  l.TBODY,
@@ -4690,7 +4690,7 @@ const $u = /* @__PURE__ */ new Set([l.DD, l.DT, l.LI, l.OPTGROUP, l.OPTION, l.P,
4690
4690
  l.TD,
4691
4691
  l.TEMPLATE,
4692
4692
  l.TH
4693
- ]), wh = /* @__PURE__ */ new Set([...vr, l.OL, l.UL]), Ah = /* @__PURE__ */ new Set([...vr, l.BUTTON]), Na = /* @__PURE__ */ new Set([l.ANNOTATION_XML, l.MI, l.MN, l.MO, l.MS, l.MTEXT]), Ia = /* @__PURE__ */ new Set([l.DESC, l.FOREIGN_OBJECT, l.TITLE]), xh = /* @__PURE__ */ new Set([l.TR, l.TEMPLATE, l.HTML]), Sh = /* @__PURE__ */ new Set([l.TBODY, l.TFOOT, l.THEAD, l.TEMPLATE, l.HTML]), Ch = /* @__PURE__ */ new Set([l.TABLE, l.TEMPLATE, l.HTML]), Nh = /* @__PURE__ */ new Set([l.TD, l.TH]);
4693
+ ]), wh = /* @__PURE__ */ new Set([...vr, l.OL, l.UL]), Ah = /* @__PURE__ */ new Set([...vr, l.BUTTON]), Ia = /* @__PURE__ */ new Set([l.ANNOTATION_XML, l.MI, l.MN, l.MO, l.MS, l.MTEXT]), va = /* @__PURE__ */ new Set([l.DESC, l.FOREIGN_OBJECT, l.TITLE]), xh = /* @__PURE__ */ new Set([l.TR, l.TEMPLATE, l.HTML]), Sh = /* @__PURE__ */ new Set([l.TBODY, l.TFOOT, l.THEAD, l.TEMPLATE, l.HTML]), Ch = /* @__PURE__ */ new Set([l.TABLE, l.TEMPLATE, l.HTML]), Nh = /* @__PURE__ */ new Set([l.TD, l.TH]);
4694
4694
  class Ih {
4695
4695
  get currentTmplContentOrNode() {
4696
4696
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
@@ -4805,12 +4805,12 @@ class Ih {
4805
4805
  break;
4806
4806
  }
4807
4807
  case X.SVG: {
4808
- if (Ia.has(i))
4808
+ if (va.has(i))
4809
4809
  return !1;
4810
4810
  break;
4811
4811
  }
4812
4812
  case X.MATHML: {
4813
- if (Na.has(i))
4813
+ if (Ia.has(i))
4814
4814
  return !1;
4815
4815
  break;
4816
4816
  }
@@ -4839,12 +4839,12 @@ class Ih {
4839
4839
  break;
4840
4840
  }
4841
4841
  case X.SVG: {
4842
- if (Ia.has(n))
4842
+ if (va.has(n))
4843
4843
  return !1;
4844
4844
  break;
4845
4845
  }
4846
4846
  case X.MATHML: {
4847
- if (Na.has(n))
4847
+ if (Ia.has(n))
4848
4848
  return !1;
4849
4849
  break;
4850
4850
  }
@@ -4894,15 +4894,15 @@ class Ih {
4894
4894
  }
4895
4895
  //Implied end tags
4896
4896
  generateImpliedEndTags() {
4897
- for (; this.currentTagId !== void 0 && $u.has(this.currentTagId); )
4897
+ for (; this.currentTagId !== void 0 && ju.has(this.currentTagId); )
4898
4898
  this.pop();
4899
4899
  }
4900
4900
  generateImpliedEndTagsThoroughly() {
4901
- for (; this.currentTagId !== void 0 && Ca.has(this.currentTagId); )
4901
+ for (; this.currentTagId !== void 0 && Na.has(this.currentTagId); )
4902
4902
  this.pop();
4903
4903
  }
4904
4904
  generateImpliedEndTagsWithExclusion(t) {
4905
- for (; this.currentTagId !== void 0 && this.currentTagId !== t && Ca.has(this.currentTagId); )
4905
+ for (; this.currentTagId !== void 0 && this.currentTagId !== t && Na.has(this.currentTagId); )
4906
4906
  this.pop();
4907
4907
  }
4908
4908
  }
@@ -4911,7 +4911,7 @@ var xt;
4911
4911
  (function(e) {
4912
4912
  e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
4913
4913
  })(xt || (xt = {}));
4914
- const va = { type: xt.Marker };
4914
+ const Oa = { type: xt.Marker };
4915
4915
  class vh {
4916
4916
  constructor(t) {
4917
4917
  this.treeAdapter = t, this.entries = [], this.bookmark = null;
@@ -4948,7 +4948,7 @@ class vh {
4948
4948
  }
4949
4949
  //Mutations
4950
4950
  insertMarker() {
4951
- this.entries.unshift(va);
4951
+ this.entries.unshift(Oa);
4952
4952
  }
4953
4953
  pushElement(t, n) {
4954
4954
  this._ensureNoahArkCondition(t), this.entries.unshift({
@@ -4975,7 +4975,7 @@ class vh {
4975
4975
  * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
4976
4976
  */
4977
4977
  clearToLastMarker() {
4978
- const t = this.entries.indexOf(va);
4978
+ const t = this.entries.indexOf(Oa);
4979
4979
  t === -1 ? this.entries.length = 0 : this.entries.splice(0, t + 1);
4980
4980
  }
4981
4981
  //Search
@@ -5144,7 +5144,7 @@ const Ut = {
5144
5144
  updateNodeSourceCodeLocation(e, t) {
5145
5145
  e.sourceCodeLocation = { ...e.sourceCodeLocation, ...t };
5146
5146
  }
5147
- }, ju = "html", Oh = "about:legacy-compat", Lh = "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd", qu = [
5147
+ }, qu = "html", Oh = "about:legacy-compat", Lh = "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd", Yu = [
5148
5148
  "+//silmaril//dtd html pro v0r11 19970101//",
5149
5149
  "-//as//dtd html 3.0 aswedit + extensions//",
5150
5150
  "-//advasoft ltd//dtd html 3.0 aswedit + extensions//",
@@ -5201,26 +5201,26 @@ const Ut = {
5201
5201
  "-//webtechs//dtd mozilla html 2.0//",
5202
5202
  "-//webtechs//dtd mozilla html//"
5203
5203
  ], Rh = [
5204
- ...qu,
5204
+ ...Yu,
5205
5205
  "-//w3c//dtd html 4.01 frameset//",
5206
5206
  "-//w3c//dtd html 4.01 transitional//"
5207
5207
  ], Ph = /* @__PURE__ */ new Set([
5208
5208
  "-//w3o//dtd w3 html strict 3.0//en//",
5209
5209
  "-/w3c/dtd html 4.0 transitional/en",
5210
5210
  "html"
5211
- ]), Yu = ["-//w3c//dtd xhtml 1.0 frameset//", "-//w3c//dtd xhtml 1.0 transitional//"], Dh = [
5212
- ...Yu,
5211
+ ]), Wu = ["-//w3c//dtd xhtml 1.0 frameset//", "-//w3c//dtd xhtml 1.0 transitional//"], Dh = [
5212
+ ...Wu,
5213
5213
  "-//w3c//dtd html 4.01 frameset//",
5214
5214
  "-//w3c//dtd html 4.01 transitional//"
5215
5215
  ];
5216
- function Oa(e, t) {
5216
+ function La(e, t) {
5217
5217
  return t.some((n) => e.startsWith(n));
5218
5218
  }
5219
5219
  function Mh(e) {
5220
- return e.name === ju && e.publicId === null && (e.systemId === null || e.systemId === Oh);
5220
+ return e.name === qu && e.publicId === null && (e.systemId === null || e.systemId === Oh);
5221
5221
  }
5222
5222
  function Bh(e) {
5223
- if (e.name !== ju)
5223
+ if (e.name !== qu)
5224
5224
  return ct.QUIRKS;
5225
5225
  const { systemId: t } = e;
5226
5226
  if (t && t.toLowerCase() === Lh)
@@ -5229,15 +5229,15 @@ function Bh(e) {
5229
5229
  if (n !== null) {
5230
5230
  if (n = n.toLowerCase(), Ph.has(n))
5231
5231
  return ct.QUIRKS;
5232
- let r = t === null ? Rh : qu;
5233
- if (Oa(n, r))
5232
+ let r = t === null ? Rh : Yu;
5233
+ if (La(n, r))
5234
5234
  return ct.QUIRKS;
5235
- if (r = t === null ? Yu : Dh, Oa(n, r))
5235
+ if (r = t === null ? Wu : Dh, La(n, r))
5236
5236
  return ct.LIMITED_QUIRKS;
5237
5237
  }
5238
5238
  return ct.NO_QUIRKS;
5239
5239
  }
5240
- const La = {
5240
+ const Ra = {
5241
5241
  TEXT_HTML: "text/html",
5242
5242
  APPLICATION_XML: "application/xhtml+xml"
5243
5243
  }, Fh = "definitionurl", Uh = "definitionURL", Hh = new Map([
@@ -5398,20 +5398,20 @@ function qh(e) {
5398
5398
  const t = e.tagID;
5399
5399
  return t === l.FONT && e.attrs.some(({ name: r }) => r === Kt.COLOR || r === Kt.SIZE || r === Kt.FACE) || jh.has(t);
5400
5400
  }
5401
- function Wu(e) {
5401
+ function Gu(e) {
5402
5402
  for (let t = 0; t < e.attrs.length; t++)
5403
5403
  if (e.attrs[t].name === Fh) {
5404
5404
  e.attrs[t].name = Uh;
5405
5405
  break;
5406
5406
  }
5407
5407
  }
5408
- function Gu(e) {
5408
+ function Vu(e) {
5409
5409
  for (let t = 0; t < e.attrs.length; t++) {
5410
5410
  const n = Hh.get(e.attrs[t].name);
5411
5411
  n != null && (e.attrs[t].name = n);
5412
5412
  }
5413
5413
  }
5414
- function Ds(e) {
5414
+ function Ms(e) {
5415
5415
  for (let t = 0; t < e.attrs.length; t++) {
5416
5416
  const n = zh.get(e.attrs[t].name);
5417
5417
  n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
@@ -5429,7 +5429,7 @@ function Gh(e, t, n) {
5429
5429
  for (let r = 0; r < n.length; r++)
5430
5430
  if (n[r].name === Kt.ENCODING) {
5431
5431
  const i = n[r].value.toLowerCase();
5432
- return i === La.TEXT_HTML || i === La.APPLICATION_XML;
5432
+ return i === Ra.TEXT_HTML || i === Ra.APPLICATION_XML;
5433
5433
  }
5434
5434
  }
5435
5435
  return t === X.SVG && (e === l.FOREIGN_OBJECT || e === l.DESC || e === l.TITLE);
@@ -5449,16 +5449,16 @@ const Zh = {
5449
5449
  endLine: -1,
5450
5450
  endCol: -1,
5451
5451
  endOffset: -1
5452
- }, Vu = /* @__PURE__ */ new Set([l.TABLE, l.TBODY, l.TFOOT, l.THEAD, l.TR]), Ra = {
5452
+ }, Ku = /* @__PURE__ */ new Set([l.TABLE, l.TBODY, l.TFOOT, l.THEAD, l.TR]), Pa = {
5453
5453
  scriptingEnabled: !0,
5454
5454
  sourceCodeLocationInfo: !1,
5455
5455
  treeAdapter: Ut,
5456
5456
  onParseError: null
5457
5457
  };
5458
- class Ku {
5458
+ class Xu {
5459
5459
  constructor(t, n, r = null, i = null) {
5460
5460
  this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode = L.INITIAL, this.originalInsertionMode = L.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
5461
- ...Ra,
5461
+ ...Pa,
5462
5462
  ...t
5463
5463
  }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new kh(this.options, this), this.activeFormattingElements = new vh(this.treeAdapter), this.fragmentContextID = r ? Yr(this.treeAdapter.getTagName(r)) : l.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new Ih(this.document, this.treeAdapter, this);
5464
5464
  }
@@ -5469,7 +5469,7 @@ class Ku {
5469
5469
  }
5470
5470
  static getFragmentParser(t, n) {
5471
5471
  const r = {
5472
- ...Ra,
5472
+ ...Pa,
5473
5473
  ...n
5474
5474
  };
5475
5475
  t ?? (t = r.treeAdapter.createElement(H.TEMPLATE, X.HTML, []));
@@ -5818,7 +5818,7 @@ class Ku {
5818
5818
  //Foster parenting
5819
5819
  /** @protected */
5820
5820
  _isElementCausesFosterParenting(t) {
5821
- return Vu.has(t);
5821
+ return Ku.has(t);
5822
5822
  }
5823
5823
  /** @protected */
5824
5824
  _shouldFosterParentOnInsertion() {
@@ -5888,7 +5888,7 @@ class Ku {
5888
5888
  case L.IN_CAPTION:
5889
5889
  case L.IN_CELL:
5890
5890
  case L.IN_TEMPLATE: {
5891
- Qu(this, t);
5891
+ Zu(this, t);
5892
5892
  break;
5893
5893
  }
5894
5894
  case L.TEXT:
@@ -5904,7 +5904,7 @@ class Ku {
5904
5904
  break;
5905
5905
  }
5906
5906
  case L.IN_TABLE_TEXT: {
5907
- rl(this, t);
5907
+ il(this, t);
5908
5908
  break;
5909
5909
  }
5910
5910
  case L.IN_COLUMN_GROUP: {
@@ -6101,7 +6101,7 @@ class Ku {
6101
6101
  break;
6102
6102
  }
6103
6103
  case L.IN_COLUMN_GROUP: {
6104
- Fs(this, t);
6104
+ Us(this, t);
6105
6105
  break;
6106
6106
  }
6107
6107
  case L.IN_TABLE_BODY: {
@@ -6117,7 +6117,7 @@ class Ku {
6117
6117
  break;
6118
6118
  }
6119
6119
  case L.IN_SELECT: {
6120
- al(this, t);
6120
+ ol(this, t);
6121
6121
  break;
6122
6122
  }
6123
6123
  case L.IN_SELECT_IN_TABLE: {
@@ -6210,7 +6210,7 @@ class Ku {
6210
6210
  break;
6211
6211
  }
6212
6212
  case L.IN_ROW: {
6213
- sl(this, t);
6213
+ al(this, t);
6214
6214
  break;
6215
6215
  }
6216
6216
  case L.IN_CELL: {
@@ -6218,7 +6218,7 @@ class Ku {
6218
6218
  break;
6219
6219
  }
6220
6220
  case L.IN_SELECT: {
6221
- ol(this, t);
6221
+ ul(this, t);
6222
6222
  break;
6223
6223
  }
6224
6224
  case L.IN_SELECT_IN_TABLE: {
@@ -6230,7 +6230,7 @@ class Ku {
6230
6230
  break;
6231
6231
  }
6232
6232
  case L.AFTER_BODY: {
6233
- ll(this, t);
6233
+ cl(this, t);
6234
6234
  break;
6235
6235
  }
6236
6236
  case L.IN_FRAMESET: {
@@ -6283,7 +6283,7 @@ class Ku {
6283
6283
  case L.IN_CELL:
6284
6284
  case L.IN_SELECT:
6285
6285
  case L.IN_SELECT_IN_TABLE: {
6286
- tl(this, t);
6286
+ nl(this, t);
6287
6287
  break;
6288
6288
  }
6289
6289
  case L.TEXT: {
@@ -6295,7 +6295,7 @@ class Ku {
6295
6295
  break;
6296
6296
  }
6297
6297
  case L.IN_TEMPLATE: {
6298
- ul(this, t);
6298
+ ll(this, t);
6299
6299
  break;
6300
6300
  }
6301
6301
  case L.AFTER_BODY:
@@ -6303,7 +6303,7 @@ class Ku {
6303
6303
  case L.AFTER_FRAMESET:
6304
6304
  case L.AFTER_AFTER_BODY:
6305
6305
  case L.AFTER_AFTER_FRAMESET: {
6306
- Bs(this, t);
6306
+ Fs(this, t);
6307
6307
  break;
6308
6308
  }
6309
6309
  }
@@ -6339,7 +6339,7 @@ class Ku {
6339
6339
  case L.AFTER_BODY:
6340
6340
  case L.AFTER_AFTER_BODY:
6341
6341
  case L.AFTER_AFTER_FRAMESET: {
6342
- Xu(this, t);
6342
+ Qu(this, t);
6343
6343
  break;
6344
6344
  }
6345
6345
  case L.IN_TABLE:
@@ -6349,7 +6349,7 @@ class Ku {
6349
6349
  break;
6350
6350
  }
6351
6351
  case L.IN_TABLE_TEXT: {
6352
- nl(this, t);
6352
+ rl(this, t);
6353
6353
  break;
6354
6354
  }
6355
6355
  }
@@ -6357,7 +6357,7 @@ class Ku {
6357
6357
  }
6358
6358
  function Jh(e, t) {
6359
6359
  let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
6360
- return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : el(e, t), n;
6360
+ return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : tl(e, t), n;
6361
6361
  }
6362
6362
  function ef(e, t) {
6363
6363
  let n = null, r = e.openElements.stackTop;
@@ -6395,7 +6395,7 @@ function sf(e, t, n) {
6395
6395
  const r = e.treeAdapter.getNamespaceURI(n.element), { token: i } = n, s = e.treeAdapter.createElement(i.tagName, r, i.attrs);
6396
6396
  e._adoptNodes(t, s), e.treeAdapter.appendChild(t, s), e.activeFormattingElements.insertElementAfterBookmark(s, i), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, s, i.tagID);
6397
6397
  }
6398
- function Ms(e, t) {
6398
+ function Bs(e, t) {
6399
6399
  for (let n = 0; n < Xh; n++) {
6400
6400
  const r = Jh(e, t);
6401
6401
  if (!r)
@@ -6417,7 +6417,7 @@ function af(e, t) {
6417
6417
  function of(e, t) {
6418
6418
  e._appendCommentNode(t, e.document);
6419
6419
  }
6420
- function Bs(e, t) {
6420
+ function Fs(e, t) {
6421
6421
  if (e.stopped = !0, t.location) {
6422
6422
  const n = e.fragmentContext ? 0 : 2;
6423
6423
  for (let r = e.openElements.stackTop; r >= n; r--)
@@ -6638,11 +6638,11 @@ function Un(e, t) {
6638
6638
  function Wr(e, t) {
6639
6639
  switch (t.type) {
6640
6640
  case ye.CHARACTER: {
6641
- Qu(e, t);
6641
+ Zu(e, t);
6642
6642
  break;
6643
6643
  }
6644
6644
  case ye.WHITESPACE_CHARACTER: {
6645
- Xu(e, t);
6645
+ Qu(e, t);
6646
6646
  break;
6647
6647
  }
6648
6648
  case ye.COMMENT: {
@@ -6658,15 +6658,15 @@ function Wr(e, t) {
6658
6658
  break;
6659
6659
  }
6660
6660
  case ye.EOF: {
6661
- tl(e, t);
6661
+ nl(e, t);
6662
6662
  break;
6663
6663
  }
6664
6664
  }
6665
6665
  }
6666
- function Xu(e, t) {
6666
+ function Qu(e, t) {
6667
6667
  e._reconstructActiveFormattingElements(), e._insertCharacters(t);
6668
6668
  }
6669
- function Qu(e, t) {
6669
+ function Zu(e, t) {
6670
6670
  e._reconstructActiveFormattingElements(), e._insertCharacters(t), e.framesetOk = !1;
6671
6671
  }
6672
6672
  function Ef(e, t) {
@@ -6715,13 +6715,13 @@ function Cf(e, t) {
6715
6715
  }
6716
6716
  function Nf(e, t) {
6717
6717
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);
6718
- n && (Ms(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6718
+ n && (Bs(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6719
6719
  }
6720
6720
  function If(e, t) {
6721
6721
  e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6722
6722
  }
6723
6723
  function vf(e, t) {
6724
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(l.NOBR) && (Ms(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6724
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(l.NOBR) && (Bs(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6725
6725
  }
6726
6726
  function Of(e, t) {
6727
6727
  e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
@@ -6729,15 +6729,15 @@ function Of(e, t) {
6729
6729
  function Lf(e, t) {
6730
6730
  e.treeAdapter.getDocumentMode(e.document) !== ct.QUIRKS && e.openElements.hasInButtonScope(l.P) && e._closePElement(), e._insertElement(t, X.HTML), e.framesetOk = !1, e.insertionMode = L.IN_TABLE;
6731
6731
  }
6732
- function Zu(e, t) {
6732
+ function Ju(e, t) {
6733
6733
  e._reconstructActiveFormattingElements(), e._appendElement(t, X.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
6734
6734
  }
6735
- function Ju(e) {
6736
- const t = Hu(e, Kt.TYPE);
6735
+ function el(e) {
6736
+ const t = zu(e, Kt.TYPE);
6737
6737
  return t != null && t.toLowerCase() === Kh;
6738
6738
  }
6739
6739
  function Rf(e, t) {
6740
- e._reconstructActiveFormattingElements(), e._appendElement(t, X.HTML), Ju(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
6740
+ e._reconstructActiveFormattingElements(), e._appendElement(t, X.HTML), el(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
6741
6741
  }
6742
6742
  function Pf(e, t) {
6743
6743
  e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
@@ -6746,7 +6746,7 @@ function Df(e, t) {
6746
6746
  e.openElements.hasInButtonScope(l.P) && e._closePElement(), e._appendElement(t, X.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
6747
6747
  }
6748
6748
  function Mf(e, t) {
6749
- t.tagName = H.IMG, t.tagID = l.IMG, Zu(e, t);
6749
+ t.tagName = H.IMG, t.tagID = l.IMG, Ju(e, t);
6750
6750
  }
6751
6751
  function Bf(e, t) {
6752
6752
  e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.tokenizer.state = tt.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = L.TEXT;
@@ -6757,7 +6757,7 @@ function Ff(e, t) {
6757
6757
  function Uf(e, t) {
6758
6758
  e.framesetOk = !1, e._switchToTextParsing(t, tt.RAWTEXT);
6759
6759
  }
6760
- function Pa(e, t) {
6760
+ function Da(e, t) {
6761
6761
  e._switchToTextParsing(t, tt.RAWTEXT);
6762
6762
  }
6763
6763
  function Hf(e, t) {
@@ -6773,12 +6773,12 @@ function jf(e, t) {
6773
6773
  e.openElements.hasInScope(l.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(l.RTC), e._insertElement(t, X.HTML);
6774
6774
  }
6775
6775
  function qf(e, t) {
6776
- e._reconstructActiveFormattingElements(), Wu(t), Ds(t), t.selfClosing ? e._appendElement(t, X.MATHML) : e._insertElement(t, X.MATHML), t.ackSelfClosing = !0;
6776
+ e._reconstructActiveFormattingElements(), Gu(t), Ms(t), t.selfClosing ? e._appendElement(t, X.MATHML) : e._insertElement(t, X.MATHML), t.ackSelfClosing = !0;
6777
6777
  }
6778
6778
  function Yf(e, t) {
6779
- e._reconstructActiveFormattingElements(), Gu(t), Ds(t), t.selfClosing ? e._appendElement(t, X.SVG) : e._insertElement(t, X.SVG), t.ackSelfClosing = !0;
6779
+ e._reconstructActiveFormattingElements(), Vu(t), Ms(t), t.selfClosing ? e._appendElement(t, X.SVG) : e._insertElement(t, X.SVG), t.ackSelfClosing = !0;
6780
6780
  }
6781
- function Da(e, t) {
6781
+ function Ma(e, t) {
6782
6782
  e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML);
6783
6783
  }
6784
6784
  function Xe(e, t) {
@@ -6851,7 +6851,7 @@ function Xe(e, t) {
6851
6851
  case l.AREA:
6852
6852
  case l.EMBED:
6853
6853
  case l.KEYGEN: {
6854
- Zu(e, t);
6854
+ Ju(e, t);
6855
6855
  break;
6856
6856
  }
6857
6857
  case l.HR: {
@@ -6956,7 +6956,7 @@ function Xe(e, t) {
6956
6956
  }
6957
6957
  case l.NOEMBED:
6958
6958
  case l.NOFRAMES: {
6959
- Pa(e, t);
6959
+ Da(e, t);
6960
6960
  break;
6961
6961
  }
6962
6962
  case l.FRAMESET: {
@@ -6968,7 +6968,7 @@ function Xe(e, t) {
6968
6968
  break;
6969
6969
  }
6970
6970
  case l.NOSCRIPT: {
6971
- e.options.scriptingEnabled ? Pa(e, t) : Da(e, t);
6971
+ e.options.scriptingEnabled ? Da(e, t) : Ma(e, t);
6972
6972
  break;
6973
6973
  }
6974
6974
  case l.PLAINTEXT: {
@@ -6988,7 +6988,7 @@ function Xe(e, t) {
6988
6988
  case l.COLGROUP:
6989
6989
  break;
6990
6990
  default:
6991
- Da(e, t);
6991
+ Ma(e, t);
6992
6992
  }
6993
6993
  }
6994
6994
  function Wf(e, t) {
@@ -6998,7 +6998,7 @@ function Wf(e, t) {
6998
6998
  }
6999
6999
  }
7000
7000
  function Gf(e, t) {
7001
- e.openElements.hasInScope(l.BODY) && (e.insertionMode = L.AFTER_BODY, ll(e, t));
7001
+ e.openElements.hasInScope(l.BODY) && (e.insertionMode = L.AFTER_BODY, cl(e, t));
7002
7002
  }
7003
7003
  function Vf(e, t) {
7004
7004
  const n = t.tagID;
@@ -7028,7 +7028,7 @@ function ep(e, t) {
7028
7028
  function tp(e) {
7029
7029
  e._reconstructActiveFormattingElements(), e._insertFakeElement(H.BR, l.BR), e.openElements.pop(), e.framesetOk = !1;
7030
7030
  }
7031
- function el(e, t) {
7031
+ function tl(e, t) {
7032
7032
  const n = t.tagName, r = t.tagID;
7033
7033
  for (let i = e.openElements.stackTop; i > 0; i--) {
7034
7034
  const s = e.openElements.items[i], o = e.openElements.tagIDs[i];
@@ -7056,7 +7056,7 @@ function Gr(e, t) {
7056
7056
  case l.SMALL:
7057
7057
  case l.STRIKE:
7058
7058
  case l.STRONG: {
7059
- Ms(e, t);
7059
+ Bs(e, t);
7060
7060
  break;
7061
7061
  }
7062
7062
  case l.P: {
@@ -7138,11 +7138,11 @@ function Gr(e, t) {
7138
7138
  break;
7139
7139
  }
7140
7140
  default:
7141
- el(e, t);
7141
+ tl(e, t);
7142
7142
  }
7143
7143
  }
7144
- function tl(e, t) {
7145
- e.tmplInsertionModeStack.length > 0 ? ul(e, t) : Bs(e, t);
7144
+ function nl(e, t) {
7145
+ e.tmplInsertionModeStack.length > 0 ? ll(e, t) : Fs(e, t);
7146
7146
  }
7147
7147
  function np(e, t) {
7148
7148
  var n;
@@ -7152,14 +7152,14 @@ function rp(e, t) {
7152
7152
  e._err(t, q.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
7153
7153
  }
7154
7154
  function oi(e, t) {
7155
- if (e.openElements.currentTagId !== void 0 && Vu.has(e.openElements.currentTagId))
7155
+ if (e.openElements.currentTagId !== void 0 && Ku.has(e.openElements.currentTagId))
7156
7156
  switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = L.IN_TABLE_TEXT, t.type) {
7157
7157
  case ye.CHARACTER: {
7158
- rl(e, t);
7158
+ il(e, t);
7159
7159
  break;
7160
7160
  }
7161
7161
  case ye.WHITESPACE_CHARACTER: {
7162
- nl(e, t);
7162
+ rl(e, t);
7163
7163
  break;
7164
7164
  }
7165
7165
  }
@@ -7173,7 +7173,7 @@ function sp(e, t) {
7173
7173
  e.openElements.clearBackToTableContext(), e._insertElement(t, X.HTML), e.insertionMode = L.IN_COLUMN_GROUP;
7174
7174
  }
7175
7175
  function ap(e, t) {
7176
- e.openElements.clearBackToTableContext(), e._insertFakeElement(H.COLGROUP, l.COLGROUP), e.insertionMode = L.IN_COLUMN_GROUP, Fs(e, t);
7176
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(H.COLGROUP, l.COLGROUP), e.insertionMode = L.IN_COLUMN_GROUP, Us(e, t);
7177
7177
  }
7178
7178
  function op(e, t) {
7179
7179
  e.openElements.clearBackToTableContext(), e._insertElement(t, X.HTML), e.insertionMode = L.IN_TABLE_BODY;
@@ -7185,7 +7185,7 @@ function lp(e, t) {
7185
7185
  e.openElements.hasInTableScope(l.TABLE) && (e.openElements.popUntilTagNamePopped(l.TABLE), e._resetInsertionMode(), e._processStartTag(t));
7186
7186
  }
7187
7187
  function cp(e, t) {
7188
- Ju(t) ? e._appendElement(t, X.HTML) : Xn(e, t), t.ackSelfClosing = !0;
7188
+ el(t) ? e._appendElement(t, X.HTML) : Xn(e, t), t.ackSelfClosing = !0;
7189
7189
  }
7190
7190
  function dp(e, t) {
7191
7191
  !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, X.HTML), e.formElement = e.openElements.current, e.openElements.pop());
@@ -7268,10 +7268,10 @@ function Xn(e, t) {
7268
7268
  const n = e.fosterParentingEnabled;
7269
7269
  e.fosterParentingEnabled = !0, Wr(e, t), e.fosterParentingEnabled = n;
7270
7270
  }
7271
- function nl(e, t) {
7271
+ function rl(e, t) {
7272
7272
  e.pendingCharacterTokens.push(t);
7273
7273
  }
7274
- function rl(e, t) {
7274
+ function il(e, t) {
7275
7275
  e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
7276
7276
  }
7277
7277
  function xn(e, t) {
@@ -7284,10 +7284,10 @@ function xn(e, t) {
7284
7284
  e._insertCharacters(e.pendingCharacterTokens[n]);
7285
7285
  e.insertionMode = e.originalInsertionMode, e._processToken(t);
7286
7286
  }
7287
- const il = /* @__PURE__ */ new Set([l.CAPTION, l.COL, l.COLGROUP, l.TBODY, l.TD, l.TFOOT, l.TH, l.THEAD, l.TR]);
7287
+ const sl = /* @__PURE__ */ new Set([l.CAPTION, l.COL, l.COLGROUP, l.TBODY, l.TD, l.TFOOT, l.TH, l.THEAD, l.TR]);
7288
7288
  function hp(e, t) {
7289
7289
  const n = t.tagID;
7290
- il.has(n) ? e.openElements.hasInTableScope(l.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(l.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_TABLE, bn(e, t)) : Xe(e, t);
7290
+ sl.has(n) ? e.openElements.hasInTableScope(l.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(l.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_TABLE, bn(e, t)) : Xe(e, t);
7291
7291
  }
7292
7292
  function fp(e, t) {
7293
7293
  const n = t.tagID;
@@ -7312,7 +7312,7 @@ function fp(e, t) {
7312
7312
  Gr(e, t);
7313
7313
  }
7314
7314
  }
7315
- function Fs(e, t) {
7315
+ function Us(e, t) {
7316
7316
  switch (t.tagID) {
7317
7317
  case l.HTML: {
7318
7318
  Xe(e, t);
@@ -7420,7 +7420,7 @@ function Kr(e, t) {
7420
7420
  bn(e, t);
7421
7421
  }
7422
7422
  }
7423
- function sl(e, t) {
7423
+ function al(e, t) {
7424
7424
  switch (t.tagID) {
7425
7425
  case l.TR: {
7426
7426
  e.openElements.hasInTableScope(l.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE_BODY);
@@ -7450,7 +7450,7 @@ function sl(e, t) {
7450
7450
  }
7451
7451
  function mp(e, t) {
7452
7452
  const n = t.tagID;
7453
- il.has(n) ? (e.openElements.hasInTableScope(l.TD) || e.openElements.hasInTableScope(l.TH)) && (e._closeTableCell(), Kr(e, t)) : Xe(e, t);
7453
+ sl.has(n) ? (e.openElements.hasInTableScope(l.TD) || e.openElements.hasInTableScope(l.TH)) && (e._closeTableCell(), Kr(e, t)) : Xe(e, t);
7454
7454
  }
7455
7455
  function gp(e, t) {
7456
7456
  const n = t.tagID;
@@ -7465,7 +7465,7 @@ function gp(e, t) {
7465
7465
  case l.TFOOT:
7466
7466
  case l.THEAD:
7467
7467
  case l.TR: {
7468
- e.openElements.hasInTableScope(n) && (e._closeTableCell(), sl(e, t));
7468
+ e.openElements.hasInTableScope(n) && (e._closeTableCell(), al(e, t));
7469
7469
  break;
7470
7470
  }
7471
7471
  case l.BODY:
@@ -7478,7 +7478,7 @@ function gp(e, t) {
7478
7478
  Gr(e, t);
7479
7479
  }
7480
7480
  }
7481
- function al(e, t) {
7481
+ function ol(e, t) {
7482
7482
  switch (t.tagID) {
7483
7483
  case l.HTML: {
7484
7484
  Xe(e, t);
@@ -7510,7 +7510,7 @@ function al(e, t) {
7510
7510
  }
7511
7511
  }
7512
7512
  }
7513
- function ol(e, t) {
7513
+ function ul(e, t) {
7514
7514
  switch (t.tagID) {
7515
7515
  case l.OPTGROUP: {
7516
7516
  e.openElements.stackTop > 0 && e.openElements.currentTagId === l.OPTION && e.openElements.tagIDs[e.openElements.stackTop - 1] === l.OPTGROUP && e.openElements.pop(), e.openElements.currentTagId === l.OPTGROUP && e.openElements.pop();
@@ -7532,11 +7532,11 @@ function ol(e, t) {
7532
7532
  }
7533
7533
  function bp(e, t) {
7534
7534
  const n = t.tagID;
7535
- n === l.CAPTION || n === l.TABLE || n === l.TBODY || n === l.TFOOT || n === l.THEAD || n === l.TR || n === l.TD || n === l.TH ? (e.openElements.popUntilTagNamePopped(l.SELECT), e._resetInsertionMode(), e._processStartTag(t)) : al(e, t);
7535
+ n === l.CAPTION || n === l.TABLE || n === l.TBODY || n === l.TFOOT || n === l.THEAD || n === l.TR || n === l.TD || n === l.TH ? (e.openElements.popUntilTagNamePopped(l.SELECT), e._resetInsertionMode(), e._processStartTag(t)) : ol(e, t);
7536
7536
  }
7537
7537
  function Ep(e, t) {
7538
7538
  const n = t.tagID;
7539
- n === l.CAPTION || n === l.TABLE || n === l.TBODY || n === l.TFOOT || n === l.THEAD || n === l.TR || n === l.TD || n === l.TH ? e.openElements.hasInTableScope(n) && (e.openElements.popUntilTagNamePopped(l.SELECT), e._resetInsertionMode(), e.onEndTag(t)) : ol(e, t);
7539
+ n === l.CAPTION || n === l.TABLE || n === l.TBODY || n === l.TFOOT || n === l.THEAD || n === l.TR || n === l.TD || n === l.TH ? e.openElements.hasInTableScope(n) && (e.openElements.popUntilTagNamePopped(l.SELECT), e._resetInsertionMode(), e.onEndTag(t)) : ul(e, t);
7540
7540
  }
7541
7541
  function yp(e, t) {
7542
7542
  switch (t.tagID) {
@@ -7564,7 +7564,7 @@ function yp(e, t) {
7564
7564
  break;
7565
7565
  }
7566
7566
  case l.COL: {
7567
- e.tmplInsertionModeStack[0] = L.IN_COLUMN_GROUP, e.insertionMode = L.IN_COLUMN_GROUP, Fs(e, t);
7567
+ e.tmplInsertionModeStack[0] = L.IN_COLUMN_GROUP, e.insertionMode = L.IN_COLUMN_GROUP, Us(e, t);
7568
7568
  break;
7569
7569
  }
7570
7570
  case l.TR: {
@@ -7583,13 +7583,13 @@ function yp(e, t) {
7583
7583
  function Tp(e, t) {
7584
7584
  t.tagID === l.TEMPLATE && en(e, t);
7585
7585
  }
7586
- function ul(e, t) {
7587
- e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(l.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Bs(e, t);
7586
+ function ll(e, t) {
7587
+ e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(l.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Fs(e, t);
7588
7588
  }
7589
7589
  function _p(e, t) {
7590
7590
  t.tagID === l.HTML ? Xe(e, t) : Lr(e, t);
7591
7591
  }
7592
- function ll(e, t) {
7592
+ function cl(e, t) {
7593
7593
  var n;
7594
7594
  if (t.tagID === l.HTML) {
7595
7595
  if (e.fragmentContext || (e.insertionMode = L.AFTER_AFTER_BODY), e.options.sourceCodeLocationInfo && e.openElements.tagIDs[0] === l.HTML) {
@@ -7665,21 +7665,21 @@ function Np(e, t) {
7665
7665
  function Ip(e, t) {
7666
7666
  e._insertCharacters(t), e.framesetOk = !1;
7667
7667
  }
7668
- function cl(e) {
7668
+ function dl(e) {
7669
7669
  for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== X.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
7670
7670
  e.openElements.pop();
7671
7671
  }
7672
7672
  function vp(e, t) {
7673
7673
  if (qh(t))
7674
- cl(e), e._startTagOutsideForeignContent(t);
7674
+ dl(e), e._startTagOutsideForeignContent(t);
7675
7675
  else {
7676
7676
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
7677
- r === X.MATHML ? Wu(t) : r === X.SVG && (Yh(t), Gu(t)), Ds(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
7677
+ r === X.MATHML ? Gu(t) : r === X.SVG && (Yh(t), Vu(t)), Ms(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
7678
7678
  }
7679
7679
  }
7680
7680
  function Op(e, t) {
7681
7681
  if (t.tagID === l.P || t.tagID === l.BR) {
7682
- cl(e), e._endTagOutsideForeignContent(t);
7682
+ dl(e), e._endTagOutsideForeignContent(t);
7683
7683
  return;
7684
7684
  }
7685
7685
  for (let n = e.openElements.stackTop; n > 0; n--) {
@@ -7697,23 +7697,23 @@ function Op(e, t) {
7697
7697
  }
7698
7698
  H.AREA, H.BASE, H.BASEFONT, H.BGSOUND, H.BR, H.COL, H.EMBED, H.FRAME, H.HR, H.IMG, H.INPUT, H.KEYGEN, H.LINK, H.META, H.PARAM, H.SOURCE, H.TRACK, H.WBR;
7699
7699
  function Lp(e, t) {
7700
- return Ku.parse(e, t);
7700
+ return Xu.parse(e, t);
7701
7701
  }
7702
7702
  function Rp(e, t, n) {
7703
7703
  typeof e == "string" && (n = t, t = e, e = null);
7704
- const r = Ku.getFragmentParser(e, n);
7704
+ const r = Xu.getFragmentParser(e, n);
7705
7705
  return r.tokenizer.write(t, !0), r.getFragment();
7706
7706
  }
7707
7707
  function Pp(e) {
7708
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Ma(e.position) : "start" in e || "end" in e ? Ma(e) : "line" in e || "column" in e ? ds(e) : "";
7708
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Ba(e.position) : "start" in e || "end" in e ? Ba(e) : "line" in e || "column" in e ? ds(e) : "";
7709
7709
  }
7710
7710
  function ds(e) {
7711
- return Ba(e && e.line) + ":" + Ba(e && e.column);
7711
+ return Fa(e && e.line) + ":" + Fa(e && e.column);
7712
7712
  }
7713
- function Ma(e) {
7713
+ function Ba(e) {
7714
7714
  return ds(e && e.start) + "-" + ds(e && e.end);
7715
7715
  }
7716
- function Ba(e) {
7716
+ function Fa(e) {
7717
7717
  return e && typeof e == "number" ? e : 1;
7718
7718
  }
7719
7719
  class Qe extends Error {
@@ -7967,7 +7967,7 @@ const ui = (
7967
7967
  "dirname"
7968
7968
  ]
7969
7969
  );
7970
- class Fa {
7970
+ class Ua {
7971
7971
  /**
7972
7972
  * Create a new virtual file.
7973
7973
  *
@@ -8046,7 +8046,7 @@ class Fa {
8046
8046
  * Nothing.
8047
8047
  */
8048
8048
  set dirname(t) {
8049
- Ua(this.basename, "dirname"), this.path = wt.join(t || "", this.basename);
8049
+ Ha(this.basename, "dirname"), this.path = wt.join(t || "", this.basename);
8050
8050
  }
8051
8051
  /**
8052
8052
  * Get the extname (including dot) (example: `'.js'`).
@@ -8070,7 +8070,7 @@ class Fa {
8070
8070
  * Nothing.
8071
8071
  */
8072
8072
  set extname(t) {
8073
- if (li(t, "extname"), Ua(this.dirname, "extname"), t) {
8073
+ if (li(t, "extname"), Ha(this.dirname, "extname"), t) {
8074
8074
  if (t.codePointAt(0) !== 46)
8075
8075
  throw new Error("`extname` must start with `.`");
8076
8076
  if (t.includes(".", 1))
@@ -8347,7 +8347,7 @@ function ci(e, t) {
8347
8347
  if (!e)
8348
8348
  throw new Error("`" + t + "` cannot be empty");
8349
8349
  }
8350
- function Ua(e, t) {
8350
+ function Ha(e, t) {
8351
8351
  if (!e)
8352
8352
  throw new Error("Setting `" + t + "` requires `path` to be set too");
8353
8353
  }
@@ -8668,7 +8668,7 @@ const Wp = {
8668
8668
  }
8669
8669
  }, Gp = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-", Vp = /-[a-z]/g, Kp = /%c(?:([-+])(\d+))?/g, Xp = /%x/g, Qp = { 2: !0, 1: !1, 0: null }, Zp = {};
8670
8670
  function Jp(e, t) {
8671
- const n = t || Zp, r = n.onerror, i = e instanceof Fa ? e : new Fa(e), s = n.fragment ? Rp : Lp, o = String(i), a = s(o, {
8671
+ const n = t || Zp, r = n.onerror, i = e instanceof Ua ? e : new Ua(e), s = n.fragment ? Rp : Lp, o = String(i), a = s(o, {
8672
8672
  sourceCodeLocationInfo: !0,
8673
8673
  // Note `parse5` types currently do not allow `undefined`.
8674
8674
  onParseError: n.onerror ? u : null,
@@ -8739,14 +8739,14 @@ function qt(e) {
8739
8739
  e >= 65 && e <= 70 || // A .. F
8740
8740
  e >= 97 && e <= 102;
8741
8741
  }
8742
- function Us(e) {
8742
+ function Hs(e) {
8743
8743
  return e >= 65 && e <= 90;
8744
8744
  }
8745
8745
  function s0(e) {
8746
8746
  return e >= 97 && e <= 122;
8747
8747
  }
8748
8748
  function a0(e) {
8749
- return Us(e) || s0(e);
8749
+ return Hs(e) || s0(e);
8750
8750
  }
8751
8751
  function o0(e) {
8752
8752
  return e >= 128;
@@ -8754,7 +8754,7 @@ function o0(e) {
8754
8754
  function Rr(e) {
8755
8755
  return a0(e) || o0(e) || e === 95;
8756
8756
  }
8757
- function dl(e) {
8757
+ function hl(e) {
8758
8758
  return Rr(e) || je(e) || e === 45;
8759
8759
  }
8760
8760
  function u0(e) {
@@ -8775,14 +8775,14 @@ function Ar(e, t, n) {
8775
8775
  function di(e, t, n) {
8776
8776
  return e === 43 || e === 45 ? je(t) ? 2 : t === 46 && je(n) ? 3 : 0 : e === 46 ? je(t) ? 2 : 0 : je(e) ? 1 : 0;
8777
8777
  }
8778
- function hl(e) {
8778
+ function fl(e) {
8779
8779
  return e === 65279 || e === 65534 ? 1 : 0;
8780
8780
  }
8781
- const fs = new Array(128), l0 = 128, xr = 130, fl = 131, Hs = 132, pl = 133;
8781
+ const fs = new Array(128), l0 = 128, xr = 130, pl = 131, zs = 132, ml = 133;
8782
8782
  for (let e = 0; e < fs.length; e++)
8783
- fs[e] = Qt(e) && xr || je(e) && fl || Rr(e) && Hs || u0(e) && pl || e || l0;
8783
+ fs[e] = Qt(e) && xr || je(e) && pl || Rr(e) && zs || u0(e) && ml || e || l0;
8784
8784
  function hi(e) {
8785
- return e < 128 ? fs[e] : Hs;
8785
+ return e < 128 ? fs[e] : zs;
8786
8786
  }
8787
8787
  function pn(e, t) {
8788
8788
  return t < e.length ? e.charCodeAt(t) : 0;
@@ -8792,7 +8792,7 @@ function ps(e, t, n) {
8792
8792
  }
8793
8793
  function mn(e, t, n) {
8794
8794
  let r = e.charCodeAt(t);
8795
- return Us(r) && (r = r | 32), r === n;
8795
+ return Hs(r) && (r = r | 32), r === n;
8796
8796
  }
8797
8797
  function Yn(e, t, n, r) {
8798
8798
  if (n - t !== r.length || t < 0 || n > e.length)
@@ -8800,7 +8800,7 @@ function Yn(e, t, n, r) {
8800
8800
  for (let i = t; i < n; i++) {
8801
8801
  const s = r.charCodeAt(i - t);
8802
8802
  let o = e.charCodeAt(i);
8803
- if (Us(o) && (o = o | 32), o !== s)
8803
+ if (Hs(o) && (o = o | 32), o !== s)
8804
8804
  return !1;
8805
8805
  }
8806
8806
  return !0;
@@ -8832,7 +8832,7 @@ function En(e, t) {
8832
8832
  function or(e, t) {
8833
8833
  for (; t < e.length; t++) {
8834
8834
  const n = e.charCodeAt(t);
8835
- if (!dl(n)) {
8835
+ if (!hl(n)) {
8836
8836
  if (Ct(n, pn(e, t + 1))) {
8837
8837
  t = En(e, t) - 1;
8838
8838
  continue;
@@ -8866,7 +8866,7 @@ function pi(e, t) {
8866
8866
  }
8867
8867
  return t;
8868
8868
  }
8869
- function ml(e) {
8869
+ function gl(e) {
8870
8870
  if (e.length === 1 && !qt(e.charCodeAt(0)))
8871
8871
  return e[0];
8872
8872
  let t = parseInt(e, 16);
@@ -8905,13 +8905,13 @@ const ms = [
8905
8905
  function Dr(e = null, t) {
8906
8906
  return e === null || e.length < t ? new Uint32Array(Math.max(t + 1024, d0)) : e;
8907
8907
  }
8908
- const Ha = 10, h0 = 12, za = 13;
8909
- function $a(e) {
8910
- const t = e.source, n = t.length, r = t.length > 0 ? hl(t.charCodeAt(0)) : 0, i = Dr(e.lines, n), s = Dr(e.columns, n);
8908
+ const za = 10, h0 = 12, $a = 13;
8909
+ function ja(e) {
8910
+ const t = e.source, n = t.length, r = t.length > 0 ? fl(t.charCodeAt(0)) : 0, i = Dr(e.lines, n), s = Dr(e.columns, n);
8911
8911
  let o = e.startLine, a = e.startColumn;
8912
8912
  for (let u = r; u < n; u++) {
8913
8913
  const c = t.charCodeAt(u);
8914
- i[u] = o, s[u] = a++, (c === Ha || c === za || c === h0) && (c === za && u + 1 < n && t.charCodeAt(u + 1) === Ha && (u++, i[u] = o, s[u] = a), o++, a = 1);
8914
+ i[u] = o, s[u] = a++, (c === za || c === $a || c === h0) && (c === $a && u + 1 < n && t.charCodeAt(u + 1) === za && (u++, i[u] = o, s[u] = a), o++, a = 1);
8915
8915
  }
8916
8916
  i[n] = o, s[n] = a, e.lines = i, e.columns = s, e.computed = !0;
8917
8917
  }
@@ -8923,7 +8923,7 @@ class f0 {
8923
8923
  this.source = t, this.startOffset = n, this.startLine = r, this.startColumn = i, this.computed = !1;
8924
8924
  }
8925
8925
  getLocation(t, n) {
8926
- return this.computed || $a(this), {
8926
+ return this.computed || ja(this), {
8927
8927
  source: n,
8928
8928
  offset: this.startOffset + t,
8929
8929
  line: this.lines[t],
@@ -8931,7 +8931,7 @@ class f0 {
8931
8931
  };
8932
8932
  }
8933
8933
  getLocationRange(t, n, r) {
8934
- return this.computed || $a(this), {
8934
+ return this.computed || ja(this), {
8935
8935
  source: r,
8936
8936
  start: {
8937
8937
  offset: this.startOffset + t,
@@ -8959,7 +8959,7 @@ gt[$e] = Jn;
8959
8959
  gt[de] = Zr;
8960
8960
  gt[dt] = Zr;
8961
8961
  gt[at] = Zr;
8962
- function ja(e, t, n) {
8962
+ function qa(e, t, n) {
8963
8963
  return e < t ? t : e > n ? n : e;
8964
8964
  }
8965
8965
  class p0 {
@@ -9024,10 +9024,10 @@ class p0 {
9024
9024
  return t === this.tokenIndex ? this.tokenStart : t > 0 ? t < this.tokenCount ? this.offsetAndType[t - 1] & ft : this.offsetAndType[this.tokenCount] & ft : this.firstCharOffset;
9025
9025
  }
9026
9026
  getTokenEnd(t) {
9027
- return t === this.tokenIndex ? this.tokenEnd : this.offsetAndType[ja(t, 0, this.tokenCount)] & ft;
9027
+ return t === this.tokenIndex ? this.tokenEnd : this.offsetAndType[qa(t, 0, this.tokenCount)] & ft;
9028
9028
  }
9029
9029
  getTokenType(t) {
9030
- return t === this.tokenIndex ? this.tokenType : this.offsetAndType[ja(t, 0, this.tokenCount)] >> pt;
9030
+ return t === this.tokenIndex ? this.tokenType : this.offsetAndType[qa(t, 0, this.tokenCount)] >> pt;
9031
9031
  }
9032
9032
  substrToCursor(t) {
9033
9033
  return this.source.substring(t, this.tokenStart);
@@ -9190,7 +9190,7 @@ function Jr(e, t) {
9190
9190
  case 34:
9191
9191
  case 39:
9192
9192
  case 40:
9193
- case pl:
9193
+ case ml:
9194
9194
  c = pi(e, c), d = Je;
9195
9195
  return;
9196
9196
  // U+005C REVERSE SOLIDUS (\)
@@ -9206,7 +9206,7 @@ function Jr(e, t) {
9206
9206
  }
9207
9207
  e = String(e || "");
9208
9208
  const a = e.length;
9209
- let u = hl(n(0)), c = u, d;
9209
+ let u = fl(n(0)), c = u, d;
9210
9210
  for (; c < a; ) {
9211
9211
  const h = e.charCodeAt(c);
9212
9212
  switch (hi(h)) {
@@ -9220,7 +9220,7 @@ function Jr(e, t) {
9220
9220
  break;
9221
9221
  // U+0023 NUMBER SIGN (#)
9222
9222
  case 35:
9223
- dl(n(c + 1)) || Ct(n(c + 1), n(c + 2)) ? (d = Ce, c = or(e, c + 1)) : (d = ge, c++);
9223
+ hl(n(c + 1)) || Ct(n(c + 1), n(c + 2)) ? (d = Ce, c = or(e, c + 1)) : (d = ge, c++);
9224
9224
  break;
9225
9225
  // U+0027 APOSTROPHE (')
9226
9226
  case 39:
@@ -9291,11 +9291,11 @@ function Jr(e, t) {
9291
9291
  d = at, c++;
9292
9292
  break;
9293
9293
  // digit
9294
- case fl:
9294
+ case pl:
9295
9295
  r();
9296
9296
  break;
9297
9297
  // name-start code point
9298
- case Hs:
9298
+ case zs:
9299
9299
  i();
9300
9300
  break;
9301
9301
  // EOF
@@ -9537,8 +9537,8 @@ function ei(e, t) {
9537
9537
  }
9538
9538
  });
9539
9539
  }
9540
- const mi = 100, qa = 60, Ya = " ";
9541
- function Wa({ source: e, line: t, column: n, baseLine: r, baseColumn: i }, s) {
9540
+ const mi = 100, Ya = 60, Wa = " ";
9541
+ function Ga({ source: e, line: t, column: n, baseLine: r, baseColumn: i }, s) {
9542
9542
  function o(E, g) {
9543
9543
  return c.slice(E, g).map(
9544
9544
  (_, p) => String(E + p + 1).padStart(m) + " |" + _
@@ -9548,9 +9548,9 @@ function Wa({ source: e, line: t, column: n, baseLine: r, baseColumn: i }, s) {
9548
9548
  const a = `
9549
9549
  `.repeat(Math.max(r - 1, 0)), u = " ".repeat(Math.max(i - 1, 0)), c = (a + u + e).split(/\r\n?|\n|\f/), d = Math.max(1, t - s) - 1, h = Math.min(t + s, c.length + 1), m = Math.max(4, String(h).length) + 1;
9550
9550
  let f = 0;
9551
- n += (Ya.length - 1) * (c[t - 1].substr(0, n - 1).match(/\t/g) || []).length, n > mi && (f = n - qa + 3, n = qa - 2);
9551
+ n += (Wa.length - 1) * (c[t - 1].substr(0, n - 1).match(/\t/g) || []).length, n > mi && (f = n - Ya + 3, n = Ya - 2);
9552
9552
  for (let E = d; E <= h; E++)
9553
- E >= 0 && E < c.length && (c[E] = c[E].replace(/\t/g, Ya), c[E] = (f > 0 && c[E].length > f ? "…" : "") + c[E].substr(f, mi - 2) + (c[E].length > f + mi - 1 ? "…" : ""));
9553
+ E >= 0 && E < c.length && (c[E] = c[E].replace(/\t/g, Wa), c[E] = (f > 0 && c[E].length > f ? "…" : "") + c[E].substr(f, mi - 2) + (c[E].length > f + mi - 1 ? "…" : ""));
9554
9554
  return [
9555
9555
  o(d, t),
9556
9556
  new Array(n + m + 2).join("-") + "^",
@@ -9558,18 +9558,18 @@ function Wa({ source: e, line: t, column: n, baseLine: r, baseColumn: i }, s) {
9558
9558
  ].filter(Boolean).join(`
9559
9559
  `).replace(/^(\s+\d+\s+\|\n)+/, "").replace(/\n(\s+\d+\s+\|)+$/, "");
9560
9560
  }
9561
- function Ga(e, t, n, r, i, s = 1, o = 1) {
9561
+ function Va(e, t, n, r, i, s = 1, o = 1) {
9562
9562
  return Object.assign(ei("SyntaxError", e), {
9563
9563
  source: t,
9564
9564
  offset: n,
9565
9565
  line: r,
9566
9566
  column: i,
9567
9567
  sourceFragment(u) {
9568
- return Wa({ source: t, line: r, column: i, baseLine: s, baseColumn: o }, isNaN(u) ? 0 : u);
9568
+ return Ga({ source: t, line: r, column: i, baseLine: s, baseColumn: o }, isNaN(u) ? 0 : u);
9569
9569
  },
9570
9570
  get formattedMessage() {
9571
9571
  return `Parse error: ${e}
9572
- ` + Wa({ source: t, line: r, column: i, baseLine: s, baseColumn: o }, 2);
9572
+ ` + Ga({ source: t, line: r, column: i, baseLine: s, baseColumn: o }, 2);
9573
9573
  }
9574
9574
  });
9575
9575
  }
@@ -9596,7 +9596,7 @@ function m0(e) {
9596
9596
  return n && e.onWhiteSpace && e.onWhiteSpace.call(this, null, t, r), t;
9597
9597
  }
9598
9598
  const rn = () => {
9599
- }, g0 = 33, b0 = 35, gi = 59, Va = 123, Ka = 0, E0 = {
9599
+ }, g0 = 33, b0 = 35, gi = 59, Ka = 123, Xa = 0, E0 = {
9600
9600
  createList() {
9601
9601
  return [];
9602
9602
  },
@@ -9670,10 +9670,10 @@ function k0(e) {
9670
9670
  readSequence: m0,
9671
9671
  consumeUntilBalanceEnd: () => 0,
9672
9672
  consumeUntilLeftCurlyBracket(d) {
9673
- return d === Va ? 1 : 0;
9673
+ return d === Ka ? 1 : 0;
9674
9674
  },
9675
9675
  consumeUntilLeftCurlyBracketOrSemicolon(d) {
9676
- return d === Va || d === gi ? 1 : 0;
9676
+ return d === Ka || d === gi ? 1 : 0;
9677
9677
  },
9678
9678
  consumeUntilExclamationMarkOrSemicolon(d) {
9679
9679
  return d === g0 || d === gi ? 1 : 0;
@@ -9702,8 +9702,8 @@ function k0(e) {
9702
9702
  do
9703
9703
  if (h = this.lookupType(d++), h !== ve && h !== qe)
9704
9704
  return h;
9705
- while (h !== Ka);
9706
- return Ka;
9705
+ while (h !== Xa);
9706
+ return Xa;
9707
9707
  },
9708
9708
  charCodeAt(d) {
9709
9709
  return d >= 0 && d < t.length ? t.charCodeAt(d) : 0;
@@ -9777,7 +9777,7 @@ function k0(e) {
9777
9777
  },
9778
9778
  error(d, h) {
9779
9779
  const m = typeof h < "u" && h < t.length ? o.getLocation(h) : this.eof ? o.getLocation(c0(t, t.length - 1)) : o.getLocation(this.tokenStart);
9780
- throw new Ga(
9780
+ throw new Va(
9781
9781
  d || "Unexpected input",
9782
9782
  t,
9783
9783
  m.offset,
@@ -9825,7 +9825,7 @@ function k0(e) {
9825
9825
  const _ = a.context[m].call(a, h);
9826
9826
  return a.eof || a.error(), _;
9827
9827
  }, {
9828
- SyntaxError: Ga,
9828
+ SyntaxError: Va,
9829
9829
  config: a.config
9830
9830
  });
9831
9831
  }
@@ -9833,10 +9833,10 @@ var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
9833
9833
  function w0(e) {
9834
9834
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9835
9835
  }
9836
- var Ei = {}, lr = {}, cr = {}, Xa;
9836
+ var Ei = {}, lr = {}, cr = {}, Qa;
9837
9837
  function A0() {
9838
- if (Xa) return cr;
9839
- Xa = 1;
9838
+ if (Qa) return cr;
9839
+ Qa = 1;
9840
9840
  var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
9841
9841
  return cr.encode = function(t) {
9842
9842
  if (0 <= t && t < e.length)
@@ -9847,10 +9847,10 @@ function A0() {
9847
9847
  return n <= t && t <= r ? t - n : i <= t && t <= s ? t - i + d : o <= t && t <= a ? t - o + h : t == u ? 62 : t == c ? 63 : -1;
9848
9848
  }, cr;
9849
9849
  }
9850
- var Qa;
9850
+ var Za;
9851
9851
  function x0() {
9852
- if (Qa) return lr;
9853
- Qa = 1;
9852
+ if (Za) return lr;
9853
+ Za = 1;
9854
9854
  var e = A0(), t = 5, n = 1 << t, r = n - 1, i = n;
9855
9855
  function s(a) {
9856
9856
  return a < 0 ? (-a << 1) + 1 : (a << 1) + 0;
@@ -9877,9 +9877,9 @@ function x0() {
9877
9877
  d.value = o(m), d.rest = c;
9878
9878
  }, lr;
9879
9879
  }
9880
- var yi = {}, Za;
9881
- function zs() {
9882
- return Za || (Za = 1, (function(e) {
9880
+ var yi = {}, Ja;
9881
+ function $s() {
9882
+ return Ja || (Ja = 1, (function(e) {
9883
9883
  function t(C, k, P) {
9884
9884
  if (k in C)
9885
9885
  return C[k];
@@ -10040,11 +10040,11 @@ function zs() {
10040
10040
  e.computeSourceURL = S;
10041
10041
  })(yi)), yi;
10042
10042
  }
10043
- var Ti = {}, Ja;
10043
+ var Ti = {}, eo;
10044
10044
  function S0() {
10045
- if (Ja) return Ti;
10046
- Ja = 1;
10047
- var e = zs(), t = Object.prototype.hasOwnProperty, n = typeof Map < "u";
10045
+ if (eo) return Ti;
10046
+ eo = 1;
10047
+ var e = $s(), t = Object.prototype.hasOwnProperty, n = typeof Map < "u";
10048
10048
  function r() {
10049
10049
  this._array = [], this._set = n ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
10050
10050
  }
@@ -10081,11 +10081,11 @@ function S0() {
10081
10081
  return this._array.slice();
10082
10082
  }, Ti.ArraySet = r, Ti;
10083
10083
  }
10084
- var _i = {}, eo;
10084
+ var _i = {}, to;
10085
10085
  function C0() {
10086
- if (eo) return _i;
10087
- eo = 1;
10088
- var e = zs();
10086
+ if (to) return _i;
10087
+ to = 1;
10088
+ var e = $s();
10089
10089
  function t(r, i) {
10090
10090
  var s = r.generatedLine, o = i.generatedLine, a = r.generatedColumn, u = i.generatedColumn;
10091
10091
  return o > s || o == s && u >= a || e.compareByGeneratedPositionsInflated(r, i) <= 0;
@@ -10101,11 +10101,11 @@ function C0() {
10101
10101
  return this._sorted || (this._array.sort(e.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
10102
10102
  }, _i.MappingList = n, _i;
10103
10103
  }
10104
- var to;
10104
+ var no;
10105
10105
  function N0() {
10106
- if (to) return Ei;
10107
- to = 1;
10108
- var e = x0(), t = zs(), n = S0().ArraySet, r = C0().MappingList;
10106
+ if (no) return Ei;
10107
+ no = 1;
10108
+ var e = x0(), t = $s(), n = S0().ArraySet, r = C0().MappingList;
10109
10109
  function i(s) {
10110
10110
  s || (s = {}), this._file = t.getArg(s, "file", null), this._sourceRoot = t.getArg(s, "sourceRoot", null), this._skipValidation = t.getArg(s, "skipValidation", !1), this._ignoreInvalidMapping = t.getArg(s, "ignoreInvalidMapping", !1), this._sources = new n(), this._names = new n(), this._mappings = new r(), this._sourcesContents = null;
10111
10111
  }
@@ -10226,7 +10226,7 @@ function N0() {
10226
10226
  }, Ei.SourceMapGenerator = i, Ei;
10227
10227
  }
10228
10228
  var I0 = N0();
10229
- const no = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
10229
+ const ro = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
10230
10230
  function v0(e) {
10231
10231
  const t = new I0.SourceMapGenerator(), n = {
10232
10232
  line: 1,
@@ -10244,7 +10244,7 @@ function v0(e) {
10244
10244
  let o = 1, a = 0, u = !1;
10245
10245
  const c = e.node;
10246
10246
  e.node = function(m) {
10247
- if (m.loc && m.loc.start && no.has(m.type)) {
10247
+ if (m.loc && m.loc.start && ro.has(m.type)) {
10248
10248
  const f = m.loc.start.line, E = m.loc.start.column - 1;
10249
10249
  (r.line !== f || r.column !== E) && (r.line = f, r.column = E, n.line = o, n.column = a, u && (u = !1, (n.line !== i.line || n.column !== i.column) && t.addMapping(s)), u = !0, t.addMapping({
10250
10250
  source: m.loc.source,
@@ -10252,7 +10252,7 @@ function v0(e) {
10252
10252
  generated: n
10253
10253
  }));
10254
10254
  }
10255
- c.call(this, m), u && no.has(m.type) && (i.line = o, i.column = a);
10255
+ c.call(this, m), u && ro.has(m.type) && (i.line = o, i.column = a);
10256
10256
  };
10257
10257
  const d = e.emit;
10258
10258
  e.emit = function(m, f, E) {
@@ -10268,7 +10268,7 @@ function v0(e) {
10268
10268
  };
10269
10269
  }, e;
10270
10270
  }
10271
- const O0 = 43, L0 = 45, ki = (e, t) => (e === ge && (e = t), typeof e == "string" && (e = Math.min(e.charCodeAt(0), 128) << 6), e << 1), gl = [
10271
+ const O0 = 43, L0 = 45, ki = (e, t) => (e === ge && (e = t), typeof e == "string" && (e = Math.min(e.charCodeAt(0), 128) << 6), e << 1), bl = [
10272
10272
  [ne, ne],
10273
10273
  [ne, fe],
10274
10274
  [ne, Ge],
@@ -10350,7 +10350,7 @@ const O0 = 43, L0 = 45, ki = (e, t) => (e === ge && (e = t), typeof e == "string
10350
10350
  ["+", Ie],
10351
10351
  ["+", me],
10352
10352
  ["/", "*"]
10353
- ], R0 = gl.concat([
10353
+ ], R0 = bl.concat([
10354
10354
  [ne, Ce],
10355
10355
  [me, Ce],
10356
10356
  [Ce, Ce],
@@ -10368,7 +10368,7 @@ const O0 = 43, L0 = 45, ki = (e, t) => (e === ge && (e = t), typeof e == "string
10368
10368
  [de, Ce],
10369
10369
  [de, "-"]
10370
10370
  ]);
10371
- function bl(e) {
10371
+ function El(e) {
10372
10372
  const t = new Set(
10373
10373
  e.map(([n, r]) => ki(n) << 16 | ki(r))
10374
10374
  );
@@ -10377,9 +10377,9 @@ function bl(e) {
10377
10377
  return s | a;
10378
10378
  };
10379
10379
  }
10380
- const P0 = bl(gl), El = bl(R0), ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10380
+ const P0 = El(bl), yl = El(R0), io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10381
10381
  __proto__: null,
10382
- safe: El,
10382
+ safe: yl,
10383
10383
  spec: P0
10384
10384
  }, Symbol.toStringTag, { value: "Module" })), D0 = 92;
10385
10385
  function M0(e, t) {
@@ -10404,7 +10404,7 @@ function B0(e) {
10404
10404
  else
10405
10405
  throw new Error("Unknown node type: " + u.type);
10406
10406
  },
10407
- tokenBefore: El,
10407
+ tokenBefore: yl,
10408
10408
  token(u, c, d) {
10409
10409
  s = this.tokenBefore(s, u, c), !d && s & 1 && this.emit(" ", ve, !0), this.emit(c, u, !1), u === ge && c.charCodeAt(0) === D0 && this.emit(`
10410
10410
  `, ve, !0);
@@ -10416,7 +10416,7 @@ function B0(e) {
10416
10416
  return i;
10417
10417
  }
10418
10418
  };
10419
- r && (typeof r.decorator == "function" && (o = r.decorator(o)), r.sourceMap && (o = v0(o)), r.mode in ro && (o.tokenBefore = ro[r.mode]));
10419
+ r && (typeof r.decorator == "function" && (o = r.decorator(o)), r.sourceMap && (o = v0(o)), r.mode in io && (o.tokenBefore = io[r.mode]));
10420
10420
  const a = {
10421
10421
  node: (u) => o.node(u),
10422
10422
  children: M0,
@@ -10451,12 +10451,12 @@ function F0(e) {
10451
10451
  }
10452
10452
  };
10453
10453
  }
10454
- const { hasOwnProperty: $s } = Object.prototype, vn = function() {
10454
+ const { hasOwnProperty: js } = Object.prototype, vn = function() {
10455
10455
  };
10456
- function io(e) {
10456
+ function so(e) {
10457
10457
  return typeof e == "function" ? e : vn;
10458
10458
  }
10459
- function so(e, t) {
10459
+ function ao(e, t) {
10460
10460
  return function(n, r, i) {
10461
10461
  n.type === t && e.call(this, n, r, i);
10462
10462
  };
@@ -10464,7 +10464,7 @@ function so(e, t) {
10464
10464
  function U0(e, t) {
10465
10465
  const n = t.structure, r = [];
10466
10466
  for (const i in n) {
10467
- if ($s.call(n, i) === !1)
10467
+ if (js.call(n, i) === !1)
10468
10468
  continue;
10469
10469
  let s = n[i];
10470
10470
  const o = {
@@ -10485,7 +10485,7 @@ function U0(e, t) {
10485
10485
  function H0(e) {
10486
10486
  const t = {};
10487
10487
  for (const n in e.node)
10488
- if ($s.call(e.node, n)) {
10488
+ if (js.call(e.node, n)) {
10489
10489
  const r = e.node[n];
10490
10490
  if (!r.structure)
10491
10491
  throw new Error("Missed `structure` field in `" + n + "` node type definition");
@@ -10493,7 +10493,7 @@ function H0(e) {
10493
10493
  }
10494
10494
  return t;
10495
10495
  }
10496
- function ao(e, t) {
10496
+ function oo(e, t) {
10497
10497
  const n = e.fields.slice(), r = e.context, i = typeof r == "string";
10498
10498
  return t && n.reverse(), function(s, o, a, u) {
10499
10499
  let c;
@@ -10511,7 +10511,7 @@ function ao(e, t) {
10511
10511
  i && (o[r] = c);
10512
10512
  };
10513
10513
  }
10514
- function oo({
10514
+ function uo({
10515
10515
  StyleSheet: e,
10516
10516
  Atrule: t,
10517
10517
  Rule: n,
@@ -10543,8 +10543,8 @@ function oo({
10543
10543
  function z0(e) {
10544
10544
  const t = H0(e), n = {}, r = {}, i = Symbol("break-walk"), s = Symbol("skip-node");
10545
10545
  for (const c in t)
10546
- $s.call(t, c) && t[c] !== null && (n[c] = ao(t[c], !1), r[c] = ao(t[c], !0));
10547
- const o = oo(n), a = oo(r), u = function(c, d) {
10546
+ js.call(t, c) && t[c] !== null && (n[c] = oo(t[c], !1), r[c] = oo(t[c], !0));
10547
+ const o = uo(n), a = uo(r), u = function(c, d) {
10548
10548
  function h(p, y, x) {
10549
10549
  const O = m.call(_, p, y, x);
10550
10550
  return O === i ? !0 : O === s ? !1 : !!(E.hasOwnProperty(p.type) && E[p.type](p, _, h, g) || f.call(_, p, y, x) === i);
@@ -10565,12 +10565,12 @@ function z0(e) {
10565
10565
  };
10566
10566
  if (typeof d == "function")
10567
10567
  m = d;
10568
- else if (d && (m = io(d.enter), f = io(d.leave), d.reverse && (E = r), d.visit)) {
10568
+ else if (d && (m = so(d.enter), f = so(d.leave), d.reverse && (E = r), d.visit)) {
10569
10569
  if (o.hasOwnProperty(d.visit))
10570
10570
  E = d.reverse ? a[d.visit] : o[d.visit];
10571
10571
  else if (!t.hasOwnProperty(d.visit))
10572
10572
  throw new Error("Bad value `" + d.visit + "` for `visit` option (should be: " + Object.keys(t).sort().join(", ") + ")");
10573
- m = so(m, d.visit), f = so(f, d.visit);
10573
+ m = ao(m, d.visit), f = ao(f, d.visit);
10574
10574
  }
10575
10575
  if (m === vn && f === vn)
10576
10576
  throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");
@@ -10655,11 +10655,11 @@ function Mr(e, t, n, r) {
10655
10655
  }
10656
10656
  return t(i, e);
10657
10657
  }
10658
- function js(e, t) {
10658
+ function qs(e, t) {
10659
10659
  let n = $0, r = !1, i = !1;
10660
10660
  return typeof t == "function" ? n = t : t && (r = !!t.forceBraces, i = !!t.compact, typeof t.decorate == "function" && (n = t.decorate)), Mr(e, n, r, i);
10661
10661
  }
10662
- const uo = { offset: 0, line: 1, column: 1 };
10662
+ const lo = { offset: 0, line: 1, column: 1 };
10663
10663
  function W0(e, t) {
10664
10664
  const n = e.tokens, r = e.longestMatch, i = r < n.length && n[r].node || null, s = i !== t ? i : null;
10665
10665
  let o = 0, a = 0, u = 0, c = "", d, h;
@@ -10667,7 +10667,7 @@ function W0(e, t) {
10667
10667
  const f = n[m].value;
10668
10668
  m === r && (a = f.length, o = c.length), s !== null && n[m].node === s && (m <= r ? u++ : u = 0), c += f;
10669
10669
  }
10670
- return r === n.length || u > 1 ? (d = dr(s || t, "end") || On(uo, c), h = On(d)) : (d = dr(s, "start") || On(dr(t, "start") || uo, c.slice(0, o)), h = dr(s, "end") || On(d, c.substr(o, a))), {
10670
+ return r === n.length || u > 1 ? (d = dr(s || t, "end") || On(lo, c), h = On(d)) : (d = dr(s, "start") || On(dr(t, "start") || lo, c.slice(0, o)), h = dr(s, "end") || On(d, c.substr(o, a))), {
10671
10671
  css: c,
10672
10672
  mismatchOffset: o,
10673
10673
  mismatchLength: a,
@@ -10705,7 +10705,7 @@ const Sn = function(e, t) {
10705
10705
  start: u,
10706
10706
  end: c
10707
10707
  } = W0(r, n);
10708
- return i.rawMessage = e, i.syntax = t ? js(t) : "<generic>", i.css = s, i.mismatchOffset = o, i.mismatchLength = a, i.message = e + `
10708
+ return i.rawMessage = e, i.syntax = t ? qs(t) : "<generic>", i.css = s, i.mismatchOffset = o, i.mismatchLength = a, i.message = e + `
10709
10709
  syntax: ` + i.syntax + `
10710
10710
  value: ` + (s || "<empty string>") + `
10711
10711
  --------` + new Array(i.mismatchOffset + 1).join("-") + "^", Object.assign(i, u), i.loc = {
@@ -10713,11 +10713,11 @@ const Sn = function(e, t) {
10713
10713
  start: u,
10714
10714
  end: c
10715
10715
  }, i;
10716
- }, hr = /* @__PURE__ */ new Map(), sn = /* @__PURE__ */ new Map(), Br = 45, wi = V0, lo = K0;
10717
- function qs(e, t) {
10716
+ }, hr = /* @__PURE__ */ new Map(), sn = /* @__PURE__ */ new Map(), Br = 45, wi = V0, co = K0;
10717
+ function Ys(e, t) {
10718
10718
  return t = t || 0, e.length - t >= 2 && e.charCodeAt(t) === Br && e.charCodeAt(t + 1) === Br;
10719
10719
  }
10720
- function yl(e, t) {
10720
+ function Tl(e, t) {
10721
10721
  if (t = t || 0, e.length - t >= 3 && e.charCodeAt(t) === Br && e.charCodeAt(t + 1) !== Br) {
10722
10722
  const n = e.indexOf("-", t + 2);
10723
10723
  if (n !== -1)
@@ -10731,7 +10731,7 @@ function V0(e) {
10731
10731
  const t = e.toLowerCase();
10732
10732
  let n = hr.get(t);
10733
10733
  if (n === void 0) {
10734
- const r = qs(t, 0), i = r ? "" : yl(t, 0);
10734
+ const r = Ys(t, 0), i = r ? "" : Tl(t, 0);
10735
10735
  n = Object.freeze({
10736
10736
  basename: t.substr(i.length),
10737
10737
  name: t,
@@ -10747,12 +10747,12 @@ function K0(e) {
10747
10747
  return sn.get(e);
10748
10748
  let t = e, n = e[0];
10749
10749
  n === "/" ? n = e[1] === "/" ? "//" : "/" : n !== "_" && n !== "*" && n !== "$" && n !== "#" && n !== "+" && n !== "&" && (n = "");
10750
- const r = qs(t, n.length);
10750
+ const r = Ys(t, n.length);
10751
10751
  if (!r && (t = t.toLowerCase(), sn.has(t))) {
10752
10752
  const a = sn.get(t);
10753
10753
  return sn.set(e, a), a;
10754
10754
  }
10755
- const i = r ? "" : yl(t, n.length), s = t.substr(0, n.length + i.length), o = Object.freeze({
10755
+ const i = r ? "" : Tl(t, n.length), s = t.substr(0, n.length + i.length), o = Object.freeze({
10756
10756
  basename: t.substr(s.length),
10757
10757
  name: t.substr(n.length),
10758
10758
  hack: n,
@@ -10762,7 +10762,7 @@ function K0(e) {
10762
10762
  });
10763
10763
  return sn.set(e, o), o;
10764
10764
  }
10765
- const Ys = [
10765
+ const Ws = [
10766
10766
  "initial",
10767
10767
  "inherit",
10768
10768
  "unset",
@@ -10854,7 +10854,7 @@ function Q0(e, t) {
10854
10854
  }
10855
10855
  return 0;
10856
10856
  }
10857
- const Z0 = 43, Tl = 45, _l = 63, J0 = 117;
10857
+ const Z0 = 43, _l = 45, kl = 63, J0 = 117;
10858
10858
  function bs(e, t) {
10859
10859
  return e !== null && e.type === ge && e.value.charCodeAt(0) === t;
10860
10860
  }
@@ -10865,7 +10865,7 @@ function Ln(e, t, n) {
10865
10865
  let r = 0;
10866
10866
  for (let i = t; i < e.value.length; i++) {
10867
10867
  const s = e.value.charCodeAt(i);
10868
- if (s === Tl && n && r !== 0)
10868
+ if (s === _l && n && r !== 0)
10869
10869
  return Ln(e, t + r + 1, !1), 6;
10870
10870
  if (!qt(s) || ++r > 6)
10871
10871
  return 0;
@@ -10875,7 +10875,7 @@ function Ln(e, t, n) {
10875
10875
  function fr(e, t, n) {
10876
10876
  if (!e)
10877
10877
  return 0;
10878
- for (; bs(n(t), _l); ) {
10878
+ for (; bs(n(t), kl); ) {
10879
10879
  if (++e > 6)
10880
10880
  return 0;
10881
10881
  t++;
@@ -10887,22 +10887,22 @@ function tm(e, t) {
10887
10887
  if (e === null || e.type !== ne || !mn(e.value, 0, J0) || (e = t(++n), e === null))
10888
10888
  return 0;
10889
10889
  if (bs(e, Z0))
10890
- return e = t(++n), e === null ? 0 : e.type === ne ? fr(Ln(e, 0, !0), ++n, t) : bs(e, _l) ? fr(1, ++n, t) : 0;
10890
+ return e = t(++n), e === null ? 0 : e.type === ne ? fr(Ln(e, 0, !0), ++n, t) : bs(e, kl) ? fr(1, ++n, t) : 0;
10891
10891
  if (e.type === he) {
10892
10892
  const r = Ln(e, 1, !0);
10893
- return r === 0 ? 0 : (e = t(++n), e === null ? n : e.type === me || e.type === he ? !em(e, Tl) || !Ln(e, 1, !1) ? 0 : n + 1 : fr(r, n, t));
10893
+ return r === 0 ? 0 : (e = t(++n), e === null ? n : e.type === me || e.type === he ? !em(e, _l) || !Ln(e, 1, !1) ? 0 : n + 1 : fr(r, n, t));
10894
10894
  }
10895
10895
  return e.type === me ? fr(Ln(e, 1, !0), ++n, t) : 0;
10896
10896
  }
10897
- const Ws = [
10897
+ const Gs = [
10898
10898
  "calc(",
10899
10899
  "-moz-calc(",
10900
10900
  "-webkit-calc("
10901
- ], Gs = [
10901
+ ], Vs = [
10902
10902
  "min(",
10903
10903
  "max(",
10904
10904
  "clamp("
10905
- ], Vs = [
10905
+ ], Ks = [
10906
10906
  "round(",
10907
10907
  "mod(",
10908
10908
  "rem("
@@ -10921,32 +10921,32 @@ const Ws = [
10921
10921
  "log(",
10922
10922
  "exp(",
10923
10923
  "sign("
10924
- ], Ks = [
10925
- "hypot("
10926
10924
  ], Xs = [
10925
+ "hypot("
10926
+ ], Qs = [
10927
10927
  "abs("
10928
- ], co = [
10929
- ...Ws,
10928
+ ], ho = [
10930
10929
  ...Gs,
10931
10930
  ...Vs,
10931
+ ...Ks,
10932
10932
  ...nm,
10933
10933
  ...im,
10934
- ...Ks,
10935
- ...Xs
10934
+ ...Xs,
10935
+ ...Qs
10936
10936
  ], sm = [
10937
- ...Ws,
10938
10937
  ...Gs,
10939
10938
  ...Vs,
10940
10939
  ...Ks,
10941
- ...Xs
10940
+ ...Xs,
10941
+ ...Qs
10942
10942
  ], It = [
10943
- ...Ws,
10944
10943
  ...Gs,
10945
10944
  ...Vs,
10946
- ...rm,
10947
10945
  ...Ks,
10948
- ...Xs
10949
- ], Qs = /* @__PURE__ */ new Map([
10946
+ ...rm,
10947
+ ...Xs,
10948
+ ...Qs
10949
+ ], Zs = /* @__PURE__ */ new Map([
10950
10950
  [fe, de],
10951
10951
  [Te, de],
10952
10952
  [ot, dt],
@@ -10955,16 +10955,16 @@ const Ws = [
10955
10955
  function bt(e, t) {
10956
10956
  return t < e.length ? e.charCodeAt(t) : 0;
10957
10957
  }
10958
- function kl(e, t) {
10958
+ function wl(e, t) {
10959
10959
  return Yn(e, 0, e.length, t);
10960
10960
  }
10961
- function wl(e, t) {
10961
+ function Al(e, t) {
10962
10962
  for (let n = 0; n < t.length; n++)
10963
- if (kl(e, t[n]))
10963
+ if (wl(e, t[n]))
10964
10964
  return !0;
10965
10965
  return !1;
10966
10966
  }
10967
- function Al(e, t) {
10967
+ function xl(e, t) {
10968
10968
  return t !== e.length - 2 ? !1 : bt(e, t) === 92 && // U+005C REVERSE SOLIDUS (\)
10969
10969
  je(bt(e, t + 1));
10970
10970
  }
@@ -10997,7 +10997,7 @@ function am(e, t) {
10997
10997
  case Te:
10998
10998
  case ot:
10999
10999
  case $e:
11000
- r.push(n), n = Qs.get(e.type);
11000
+ r.push(n), n = Zs.get(e.type);
11001
11001
  break;
11002
11002
  }
11003
11003
  i++;
@@ -11006,7 +11006,7 @@ function am(e, t) {
11006
11006
  }
11007
11007
  function lt(e, t) {
11008
11008
  return function(n, r, i) {
11009
- return n === null ? 0 : n.type === fe && wl(n.value, t) ? am(n, r) : e(n, r, i);
11009
+ return n === null ? 0 : n.type === fe && Al(n.value, t) ? am(n, r) : e(n, r, i);
11010
11010
  };
11011
11011
  }
11012
11012
  function xe(e) {
@@ -11018,13 +11018,13 @@ function om(e) {
11018
11018
  if (e === null || e.type !== ne)
11019
11019
  return 0;
11020
11020
  const t = e.value.toLowerCase();
11021
- return wl(t, Ys) || kl(t, "default") ? 0 : 1;
11021
+ return Al(t, Ws) || wl(t, "default") ? 0 : 1;
11022
11022
  }
11023
- function xl(e) {
11023
+ function Sl(e) {
11024
11024
  return e === null || e.type !== ne || bt(e.value, 0) !== 45 || bt(e.value, 1) !== 45 ? 0 : 1;
11025
11025
  }
11026
11026
  function um(e) {
11027
- return !xl(e) || e.value === "--" ? 0 : 1;
11027
+ return !Sl(e) || e.value === "--" ? 0 : 1;
11028
11028
  }
11029
11029
  function lm(e) {
11030
11030
  if (e === null || e.type !== Ce)
@@ -11073,7 +11073,7 @@ function dm(e, t) {
11073
11073
  case Te:
11074
11074
  case ot:
11075
11075
  case $e:
11076
- r.push(n), n = Qs.get(e.type);
11076
+ r.push(n), n = Zs.get(e.type);
11077
11077
  break;
11078
11078
  }
11079
11079
  i++;
@@ -11103,7 +11103,7 @@ function hm(e, t) {
11103
11103
  case Te:
11104
11104
  case ot:
11105
11105
  case $e:
11106
- r.push(n), n = Qs.get(e.type);
11106
+ r.push(n), n = Zs.get(e.type);
11107
11107
  break;
11108
11108
  }
11109
11109
  i++;
@@ -11116,7 +11116,7 @@ function vt(e) {
11116
11116
  return 0;
11117
11117
  const i = Qr(t.value, 0);
11118
11118
  if (e !== null) {
11119
- const s = t.value.indexOf("\\", i), o = s === -1 || !Al(t.value, s) ? t.value.substr(i) : t.value.substring(i, s);
11119
+ const s = t.value.indexOf("\\", i), o = s === -1 || !xl(t.value, s) ? t.value.substr(i) : t.value.substring(i, s);
11120
11120
  if (e.has(o.toLowerCase()) === !1)
11121
11121
  return 0;
11122
11122
  }
@@ -11126,7 +11126,7 @@ function vt(e) {
11126
11126
  function fm(e, t, n) {
11127
11127
  return e === null || e.type !== Ie || ti(n, e.value, e.value.length - 1) ? 0 : 1;
11128
11128
  }
11129
- function Sl(e) {
11129
+ function Cl(e) {
11130
11130
  return typeof e != "function" && (e = function() {
11131
11131
  return 0;
11132
11132
  }), function(t, n, r) {
@@ -11137,7 +11137,7 @@ function pm(e, t, n) {
11137
11137
  if (e === null)
11138
11138
  return 0;
11139
11139
  const r = Qr(e.value, 0);
11140
- return !(r === e.value.length) && !Al(e.value, r) || ti(n, e.value, r) ? 0 : 1;
11140
+ return !(r === e.value.length) && !xl(e.value, r) || ti(n, e.value, r) ? 0 : 1;
11141
11141
  }
11142
11142
  function mm(e, t, n) {
11143
11143
  if (e === null || e.type !== he)
@@ -11181,12 +11181,12 @@ const gm = {
11181
11181
  // percentage
11182
11182
  percentage: lt(fm, sm),
11183
11183
  // numeric
11184
- zero: Sl(),
11185
- number: lt(pm, co),
11186
- integer: lt(mm, co),
11184
+ zero: Cl(),
11185
+ number: lt(pm, ho),
11186
+ integer: lt(mm, ho),
11187
11187
  // complex types
11188
11188
  "custom-ident": om,
11189
- "dashed-ident": xl,
11189
+ "dashed-ident": Sl,
11190
11190
  "custom-property-name": um,
11191
11191
  "hex-color": lm,
11192
11192
  "id-selector": cm,
@@ -11222,7 +11222,7 @@ function ym(e) {
11222
11222
  decibel: lt(vt(n), It),
11223
11223
  frequency: lt(vt(r), It),
11224
11224
  flex: lt(vt(i), It),
11225
- length: lt(Sl(vt(s)), It),
11225
+ length: lt(Cl(vt(s)), It),
11226
11226
  resolution: lt(vt(o), It),
11227
11227
  semitones: lt(vt(a), It),
11228
11228
  time: lt(vt(u), It)
@@ -11300,7 +11300,7 @@ const km = [
11300
11300
  "cqb",
11301
11301
  "cqmin",
11302
11302
  "cqmax"
11303
- ], wm = ["deg", "grad", "rad", "turn"], Am = ["s", "ms"], xm = ["hz", "khz"], Sm = ["dpi", "dpcm", "dppx", "x"], Cm = ["fr"], Nm = ["db"], Im = ["st"], ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11303
+ ], wm = ["deg", "grad", "rad", "turn"], Am = ["s", "ms"], xm = ["hz", "khz"], Sm = ["dpi", "dpcm", "dppx", "x"], Cm = ["fr"], Nm = ["db"], Im = ["st"], fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11304
11304
  __proto__: null,
11305
11305
  angle: wm,
11306
11306
  decibel: Nm,
@@ -11321,7 +11321,7 @@ function vm(e, t, n) {
11321
11321
  --` + new Array((n || t.length) + 1).join("-") + "^"
11322
11322
  });
11323
11323
  }
11324
- const Om = 9, Lm = 10, Rm = 12, Pm = 13, Dm = 32, fo = new Uint8Array(128).map(
11324
+ const Om = 9, Lm = 10, Rm = 12, Pm = 13, Dm = 32, po = new Uint8Array(128).map(
11325
11325
  (e, t) => /[a-zA-Z0-9\-]/.test(String.fromCharCode(t)) ? 1 : 0
11326
11326
  );
11327
11327
  class Mm {
@@ -11335,7 +11335,7 @@ class Mm {
11335
11335
  return this.charCodeAt(this.pos);
11336
11336
  }
11337
11337
  isNameCharCode(t = this.charCode()) {
11338
- return t < 128 && fo[t] === 1;
11338
+ return t < 128 && po[t] === 1;
11339
11339
  }
11340
11340
  nextCharCode() {
11341
11341
  return this.charCodeAt(this.pos + 1);
@@ -11373,7 +11373,7 @@ class Mm {
11373
11373
  let t = this.pos;
11374
11374
  for (; t < this.str.length; t++) {
11375
11375
  const n = this.str.charCodeAt(t);
11376
- if (n >= 128 || fo[n] === 0)
11376
+ if (n >= 128 || po[n] === 0)
11377
11377
  break;
11378
11378
  }
11379
11379
  return this.pos === t && this.error("Expect a keyword"), this.substringToPos(t);
@@ -11392,15 +11392,15 @@ class Mm {
11392
11392
  return t === -1 && (this.pos = this.str.length, this.error("Expect an apostrophe")), this.substringToPos(t + 1);
11393
11393
  }
11394
11394
  }
11395
- const Bm = 9, Fm = 10, Um = 12, Hm = 13, zm = 32, Cl = 33, Zs = 35, po = 38, Fr = 39, Nl = 40, Il = 41, vl = 42, Js = 43, ea = 44, mo = 45, ta = 60, Es = 62, Ur = 63, $m = 64, Gn = 91, yn = 93, Hr = 123, go = 124, ys = 125, bo = 8734, Eo = {
11395
+ const Bm = 9, Fm = 10, Um = 12, Hm = 13, zm = 32, Nl = 33, Js = 35, mo = 38, Fr = 39, Il = 40, vl = 41, Ol = 42, ea = 43, ta = 44, go = 45, na = 60, Es = 62, Ur = 63, $m = 64, Gn = 91, yn = 93, Hr = 123, bo = 124, ys = 125, Eo = 8734, yo = {
11396
11396
  " ": 1,
11397
11397
  "&&": 2,
11398
11398
  "||": 3,
11399
11399
  "|": 4
11400
11400
  };
11401
- function yo(e) {
11401
+ function To(e) {
11402
11402
  let t = null, n = null;
11403
- return e.eat(Hr), e.skipWs(), t = e.scanNumber(e), e.skipWs(), e.charCode() === ea ? (e.pos++, e.skipWs(), e.charCode() !== ys && (n = e.scanNumber(e), e.skipWs())) : n = t, e.eat(ys), {
11403
+ return e.eat(Hr), e.skipWs(), t = e.scanNumber(e), e.skipWs(), e.charCode() === ta ? (e.pos++, e.skipWs(), e.charCode() !== ys && (n = e.scanNumber(e), e.skipWs())) : n = t, e.eat(ys), {
11404
11404
  min: Number(t),
11405
11405
  max: n ? Number(n) : 0
11406
11406
  };
@@ -11408,13 +11408,13 @@ function yo(e) {
11408
11408
  function jm(e) {
11409
11409
  let t = null, n = !1;
11410
11410
  switch (e.charCode()) {
11411
- case vl:
11411
+ case Ol:
11412
11412
  e.pos++, t = {
11413
11413
  min: 0,
11414
11414
  max: 0
11415
11415
  };
11416
11416
  break;
11417
- case Js:
11417
+ case ea:
11418
11418
  e.pos++, t = {
11419
11419
  min: 1,
11420
11420
  max: 0
@@ -11426,8 +11426,8 @@ function jm(e) {
11426
11426
  max: 1
11427
11427
  };
11428
11428
  break;
11429
- case Zs:
11430
- e.pos++, n = !0, e.charCode() === Hr ? t = yo(e) : e.charCode() === Ur ? (e.pos++, t = {
11429
+ case Js:
11430
+ e.pos++, n = !0, e.charCode() === Hr ? t = To(e) : e.charCode() === Ur ? (e.pos++, t = {
11431
11431
  min: 0,
11432
11432
  max: 0
11433
11433
  }) : t = {
@@ -11436,7 +11436,7 @@ function jm(e) {
11436
11436
  };
11437
11437
  break;
11438
11438
  case Hr:
11439
- t = yo(e);
11439
+ t = To(e);
11440
11440
  break;
11441
11441
  default:
11442
11442
  return null;
@@ -11451,7 +11451,7 @@ function jm(e) {
11451
11451
  }
11452
11452
  function Lt(e, t) {
11453
11453
  const n = jm(e);
11454
- return n !== null ? (n.term = t, e.charCode() === Zs && e.charCodeAt(e.pos - 1) === Js || e.charCode() === Ur && e.charCodeAt(e.pos - 1) === ys ? Lt(e, n) : n) : t;
11454
+ return n !== null ? (n.term = t, e.charCode() === Js && e.charCodeAt(e.pos - 1) === ea || e.charCode() === Ur && e.charCodeAt(e.pos - 1) === ys ? Lt(e, n) : n) : t;
11455
11455
  }
11456
11456
  function Si(e) {
11457
11457
  const t = e.peek();
@@ -11462,14 +11462,14 @@ function Si(e) {
11462
11462
  }
11463
11463
  function qm(e) {
11464
11464
  let t;
11465
- return e.eat(ta), e.eat(Fr), t = e.scanWord(), e.eat(Fr), e.eat(Es), Lt(e, {
11465
+ return e.eat(na), e.eat(Fr), t = e.scanWord(), e.eat(Fr), e.eat(Es), Lt(e, {
11466
11466
  type: "Property",
11467
11467
  name: t
11468
11468
  });
11469
11469
  }
11470
11470
  function Ym(e) {
11471
11471
  let t = null, n = null, r = 1;
11472
- return e.eat(Gn), e.charCode() === mo && (e.peek(), r = -1), r == -1 && e.charCode() === bo ? e.peek() : (t = r * Number(e.scanNumber(e)), e.isNameCharCode() && (t += e.scanWord())), e.skipWs(), e.eat(ea), e.skipWs(), e.charCode() === bo ? e.peek() : (r = 1, e.charCode() === mo && (e.peek(), r = -1), n = r * Number(e.scanNumber(e)), e.isNameCharCode() && (n += e.scanWord())), e.eat(yn), {
11472
+ return e.eat(Gn), e.charCode() === go && (e.peek(), r = -1), r == -1 && e.charCode() === Eo ? e.peek() : (t = r * Number(e.scanNumber(e)), e.isNameCharCode() && (t += e.scanWord())), e.skipWs(), e.eat(ta), e.skipWs(), e.charCode() === Eo ? e.peek() : (r = 1, e.charCode() === go && (e.peek(), r = -1), n = r * Number(e.scanNumber(e)), e.isNameCharCode() && (n += e.scanWord())), e.eat(yn), {
11473
11473
  type: "Range",
11474
11474
  min: t,
11475
11475
  max: n
@@ -11477,7 +11477,7 @@ function Ym(e) {
11477
11477
  }
11478
11478
  function Wm(e) {
11479
11479
  let t, n = null;
11480
- if (e.eat(ta), t = e.scanWord(), t === "boolean-expr") {
11480
+ if (e.eat(na), t = e.scanWord(), t === "boolean-expr") {
11481
11481
  e.eat(Gn);
11482
11482
  const r = ni(e, yn);
11483
11483
  return e.eat(yn), e.eat(Es), Lt(e, {
@@ -11485,7 +11485,7 @@ function Wm(e) {
11485
11485
  term: r.terms.length === 1 ? r.terms[0] : r
11486
11486
  });
11487
11487
  }
11488
- return e.charCode() === Nl && e.nextCharCode() === Il && (e.pos += 2, t += "()"), e.charCodeAt(e.findWsEnd(e.pos)) === Gn && (e.skipWs(), n = Ym(e)), e.eat(Es), Lt(e, {
11488
+ return e.charCode() === Il && e.nextCharCode() === vl && (e.pos += 2, t += "()"), e.charCodeAt(e.findWsEnd(e.pos)) === Gn && (e.skipWs(), n = Ym(e)), e.eat(Es), Lt(e, {
11489
11489
  type: "Type",
11490
11490
  name: t,
11491
11491
  opts: n
@@ -11493,7 +11493,7 @@ function Wm(e) {
11493
11493
  }
11494
11494
  function Gm(e) {
11495
11495
  const t = e.scanWord();
11496
- return e.charCode() === Nl ? (e.pos++, {
11496
+ return e.charCode() === Il ? (e.pos++, {
11497
11497
  type: "Function",
11498
11498
  name: t
11499
11499
  }) : Lt(e, {
@@ -11512,7 +11512,7 @@ function Vm(e, t) {
11512
11512
  };
11513
11513
  }
11514
11514
  let r;
11515
- for (t = Object.keys(t).sort((i, s) => Eo[i] - Eo[s]); t.length > 0; ) {
11515
+ for (t = Object.keys(t).sort((i, s) => yo[i] - yo[s]); t.length > 0; ) {
11516
11516
  r = t.shift();
11517
11517
  let i = 0, s = 0;
11518
11518
  for (; i < e.length; i++) {
@@ -11535,7 +11535,7 @@ function ni(e, t = -1) {
11535
11535
  const n = /* @__PURE__ */ Object.create(null), r = [];
11536
11536
  let i = null, s = e.pos, o = !1;
11537
11537
  for (; e.charCode() !== t; ) {
11538
- let a = o ? ni(e, Il) : Xm(e);
11538
+ let a = o ? ni(e, vl) : Xm(e);
11539
11539
  if (!a)
11540
11540
  break;
11541
11541
  if (a.type !== "Spaces") {
@@ -11569,7 +11569,7 @@ function ni(e, t = -1) {
11569
11569
  }
11570
11570
  function Km(e) {
11571
11571
  let t;
11572
- return e.eat(Gn), t = ni(e, yn), e.eat(yn), t.explicit = !0, e.charCode() === Cl && (e.pos++, t.disallowEmpty = !0), t;
11572
+ return e.eat(Gn), t = ni(e, yn), e.eat(yn), t.explicit = !0, e.charCode() === Nl && (e.pos++, t.disallowEmpty = !0), t;
11573
11573
  }
11574
11574
  function Xm(e) {
11575
11575
  let t = e.charCode();
@@ -11578,21 +11578,21 @@ function Xm(e) {
11578
11578
  break;
11579
11579
  case Gn:
11580
11580
  return Lt(e, Km(e));
11581
- case ta:
11581
+ case na:
11582
11582
  return e.nextCharCode() === Fr ? qm(e) : Wm(e);
11583
- case go:
11583
+ case bo:
11584
11584
  return {
11585
11585
  type: "Combinator",
11586
11586
  value: e.substringToPos(
11587
- e.pos + (e.nextCharCode() === go ? 2 : 1)
11587
+ e.pos + (e.nextCharCode() === bo ? 2 : 1)
11588
11588
  )
11589
11589
  };
11590
- case po:
11591
- return e.pos++, e.eat(po), {
11590
+ case mo:
11591
+ return e.pos++, e.eat(mo), {
11592
11592
  type: "Combinator",
11593
11593
  value: "&&"
11594
11594
  };
11595
- case ea:
11595
+ case ta:
11596
11596
  return e.pos++, {
11597
11597
  type: "Comma"
11598
11598
  };
@@ -11615,11 +11615,11 @@ function Xm(e) {
11615
11615
  type: "AtKeyword",
11616
11616
  name: e.scanWord()
11617
11617
  }) : Si(e);
11618
- case vl:
11619
- case Js:
11618
+ case Ol:
11619
+ case ea:
11620
11620
  case Ur:
11621
- case Zs:
11622
- case Cl:
11621
+ case Js:
11622
+ case Nl:
11623
11623
  break;
11624
11624
  case Hr:
11625
11625
  if (t = e.nextCharCode(), t < 48 || t > 57)
@@ -11629,13 +11629,13 @@ function Xm(e) {
11629
11629
  return e.isNameCharCode(t) ? Gm(e) : Si(e);
11630
11630
  }
11631
11631
  }
11632
- function Ol(e) {
11632
+ function Ll(e) {
11633
11633
  const t = new Mm(e), n = ni(t);
11634
11634
  return t.pos !== e.length && t.error("Unexpected input"), n.terms.length === 1 && n.terms[0].type === "Group" ? n.terms[0] : n;
11635
11635
  }
11636
11636
  const Rn = function() {
11637
11637
  };
11638
- function To(e) {
11638
+ function _o(e) {
11639
11639
  return typeof e == "function" ? e : Rn;
11640
11640
  }
11641
11641
  function Qm(e, t, n) {
@@ -11663,7 +11663,7 @@ function Qm(e, t, n) {
11663
11663
  s.call(n, o);
11664
11664
  }
11665
11665
  let i = Rn, s = Rn;
11666
- if (typeof t == "function" ? i = t : t && (i = To(t.enter), s = To(t.leave)), i === Rn && s === Rn)
11666
+ if (typeof t == "function" ? i = t : t && (i = _o(t.enter), s = _o(t.leave)), i === Rn && s === Rn)
11667
11667
  throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");
11668
11668
  r(e);
11669
11669
  }
@@ -11704,7 +11704,7 @@ function Jm(e) {
11704
11704
  function eg(e, t) {
11705
11705
  return typeof e == "string" ? Jm(e) : t.generate(e, Zm);
11706
11706
  }
11707
- const _e = { type: "Match" }, we = { type: "Mismatch" }, na = { type: "DisallowEmpty" }, tg = 40, ng = 41;
11707
+ const _e = { type: "Match" }, we = { type: "Mismatch" }, ra = { type: "DisallowEmpty" }, tg = 40, ng = 41;
11708
11708
  function We(e, t, n) {
11709
11709
  return t === _e && n === we || e === _e && t === _e && n === _e ? e : (e.type === "If" && e.else === we && t === _e && (t = e.then, e = e.match), {
11710
11710
  type: "If",
@@ -11713,11 +11713,11 @@ function We(e, t, n) {
11713
11713
  else: n
11714
11714
  });
11715
11715
  }
11716
- function Ll(e) {
11716
+ function Rl(e) {
11717
11717
  return e.length > 2 && e.charCodeAt(e.length - 2) === tg && e.charCodeAt(e.length - 1) === ng;
11718
11718
  }
11719
- function _o(e) {
11720
- return e.type === "Keyword" || e.type === "AtKeyword" || e.type === "Function" || e.type === "Type" && Ll(e.name);
11719
+ function ko(e) {
11720
+ return e.type === "Keyword" || e.type === "AtKeyword" || e.type === "Function" || e.type === "Type" && Rl(e.name);
11721
11721
  }
11722
11722
  function Mt(e, t = " ", n = !1) {
11723
11723
  return {
@@ -11757,7 +11757,7 @@ function Ts(e, t, n) {
11757
11757
  let r = we, i = null;
11758
11758
  for (let s = t.length - 1; s >= 0; s--) {
11759
11759
  let o = t[s];
11760
- if (_o(o) && (i === null && s > 0 && _o(t[s - 1]) && (i = /* @__PURE__ */ Object.create(null), r = We(
11760
+ if (ko(o) && (i === null && s > 0 && ko(t[s - 1]) && (i = /* @__PURE__ */ Object.create(null), r = We(
11761
11761
  {
11762
11762
  type: "Enum",
11763
11763
  map: i
@@ -11765,7 +11765,7 @@ function Ts(e, t, n) {
11765
11765
  _e,
11766
11766
  r
11767
11767
  )), i !== null)) {
11768
- const a = (Ll(o.name) ? o.name.slice(0, -1) : o.name).toLowerCase();
11768
+ const a = (Rl(o.name) ? o.name.slice(0, -1) : o.name).toLowerCase();
11769
11769
  if (!(a in i)) {
11770
11770
  i[a] = o;
11771
11771
  continue;
@@ -11836,7 +11836,7 @@ function rg(e) {
11836
11836
  if (e.max === 0)
11837
11837
  n = We(
11838
11838
  n,
11839
- na,
11839
+ ra,
11840
11840
  we
11841
11841
  ), t = We(
11842
11842
  n,
@@ -11902,7 +11902,7 @@ function dn(e) {
11902
11902
  );
11903
11903
  return e.disallowEmpty && (t = We(
11904
11904
  t,
11905
- na,
11905
+ ra,
11906
11906
  we
11907
11907
  )), t;
11908
11908
  }
@@ -11992,14 +11992,14 @@ function dn(e) {
11992
11992
  }
11993
11993
  }
11994
11994
  function pr(e, t) {
11995
- return typeof e == "string" && (e = Ol(e)), {
11995
+ return typeof e == "string" && (e = Ll(e)), {
11996
11996
  type: "MatchGraph",
11997
11997
  match: dn(e),
11998
11998
  syntax: t || null,
11999
11999
  source: e
12000
12000
  };
12001
12001
  }
12002
- const { hasOwnProperty: ko } = Object.prototype, ig = 0, sg = 1, _s = 2, Rl = 3, wo = "Match", ag = "Mismatch", og = "Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)", Ao = 15e3;
12002
+ const { hasOwnProperty: wo } = Object.prototype, ig = 0, sg = 1, _s = 2, Pl = 3, Ao = "Match", ag = "Mismatch", og = "Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)", xo = 15e3;
12003
12003
  function ug(e) {
12004
12004
  let t = null, n = null, r = e;
12005
12005
  for (; r !== null; )
@@ -12020,10 +12020,10 @@ function Ci(e, t) {
12020
12020
  function lg(e) {
12021
12021
  return e.type !== ge ? !1 : e.value !== "?";
12022
12022
  }
12023
- function xo(e) {
12023
+ function So(e) {
12024
12024
  return e === null ? !0 : e.type === rt || e.type === fe || e.type === Te || e.type === ot || e.type === $e || lg(e);
12025
12025
  }
12026
- function So(e) {
12026
+ function Co(e) {
12027
12027
  return e === null ? !0 : e.type === de || e.type === dt || e.type === at || e.type === ge && e.value === "/";
12028
12028
  }
12029
12029
  function cg(e, t, n) {
@@ -12079,7 +12079,7 @@ function cg(e, t, n) {
12079
12079
  }
12080
12080
  function d() {
12081
12081
  O.type === _s ? O = O.prev : O = {
12082
- type: Rl,
12082
+ type: Pl,
12083
12083
  syntax: h.syntax,
12084
12084
  token: O.token,
12085
12085
  prev: O
@@ -12091,7 +12091,7 @@ function cg(e, t, n) {
12091
12091
  token: null,
12092
12092
  prev: null
12093
12093
  };
12094
- for (r(); _ === null && ++g < Ao; )
12094
+ for (r(); _ === null && ++g < xo; )
12095
12095
  switch (t.type) {
12096
12096
  case "Match":
12097
12097
  if (m === null) {
@@ -12099,10 +12099,10 @@ function cg(e, t, n) {
12099
12099
  t = we;
12100
12100
  break;
12101
12101
  }
12102
- _ = wo;
12102
+ _ = Ao;
12103
12103
  break;
12104
12104
  }
12105
- if (t = m.nextState, t === na)
12105
+ if (t = m.nextState, t === ra)
12106
12106
  if (m.matchStack === O) {
12107
12107
  t = we;
12108
12108
  break;
@@ -12173,7 +12173,7 @@ function cg(e, t, n) {
12173
12173
  case "Enum":
12174
12174
  if (p !== null) {
12175
12175
  let S = p.value.toLowerCase();
12176
- if (S.indexOf("\\") !== -1 && (S = S.replace(/\\[09].*$/, "")), ko.call(t.map, S)) {
12176
+ if (S.indexOf("\\") !== -1 && (S = S.replace(/\\[09].*$/, "")), wo.call(t.map, S)) {
12177
12177
  t = t.map[S];
12178
12178
  break;
12179
12179
  }
@@ -12192,7 +12192,7 @@ function cg(e, t, n) {
12192
12192
  }
12193
12193
  case "Type":
12194
12194
  case "Property": {
12195
- const S = t.type === "Type" ? "types" : "properties", C = ko.call(n, S) ? n[S][t.name] : null;
12195
+ const S = t.type === "Type" ? "types" : "properties", C = wo.call(n, S) ? n[S][t.name] : null;
12196
12196
  if (!C || !C.match)
12197
12197
  throw new Error(
12198
12198
  "Bad syntax reference: " + (t.type === "Type" ? "<" + t.name + ">" : "<'" + t.name + "'>")
@@ -12238,7 +12238,7 @@ function cg(e, t, n) {
12238
12238
  t = we;
12239
12239
  break;
12240
12240
  case "Comma":
12241
- p !== null && p.type === rt ? xo(O.token) ? t = we : (u(), t = So(p) ? we : _e) : t = xo(O.token) || So(p) ? _e : we;
12241
+ p !== null && p.type === rt ? So(O.token) ? t = we : (u(), t = Co(p) ? we : _e) : t = So(O.token) || Co(p) ? _e : we;
12242
12242
  break;
12243
12243
  case "String":
12244
12244
  let D = "", B = y;
@@ -12256,9 +12256,9 @@ function cg(e, t, n) {
12256
12256
  }
12257
12257
  switch (_) {
12258
12258
  case null:
12259
- console.warn("[csstree-match] BREAK after " + Ao + " iterations"), _ = og, O = null;
12259
+ console.warn("[csstree-match] BREAK after " + xo + " iterations"), _ = og, O = null;
12260
12260
  break;
12261
- case wo:
12261
+ case Ao:
12262
12262
  for (; h !== null; )
12263
12263
  d();
12264
12264
  break;
@@ -12273,7 +12273,7 @@ function cg(e, t, n) {
12273
12273
  longestMatch: x
12274
12274
  };
12275
12275
  }
12276
- function Co(e, t, n) {
12276
+ function No(e, t, n) {
12277
12277
  const r = cg(e, t, n || {});
12278
12278
  if (r.match === null)
12279
12279
  return r;
@@ -12290,7 +12290,7 @@ function Co(e, t, n) {
12290
12290
  match: []
12291
12291
  }), o.push(s);
12292
12292
  break;
12293
- case Rl:
12293
+ case Pl:
12294
12294
  o.pop(), s = o[o.length - 1];
12295
12295
  break;
12296
12296
  default:
@@ -12304,7 +12304,7 @@ function Co(e, t, n) {
12304
12304
  }
12305
12305
  return r;
12306
12306
  }
12307
- function Pl(e) {
12307
+ function Dl(e) {
12308
12308
  function t(i) {
12309
12309
  return i === null ? !1 : i.type === "Type" || i.type === "Property" || i.type === "Keyword";
12310
12310
  }
@@ -12321,35 +12321,35 @@ function Pl(e) {
12321
12321
  return this.matched !== null && n(this.matched), r;
12322
12322
  }
12323
12323
  function dg(e, t) {
12324
- return ra(this, e, (n) => n.type === "Type" && n.name === t);
12324
+ return ia(this, e, (n) => n.type === "Type" && n.name === t);
12325
12325
  }
12326
12326
  function hg(e, t) {
12327
- return ra(this, e, (n) => n.type === "Property" && n.name === t);
12327
+ return ia(this, e, (n) => n.type === "Property" && n.name === t);
12328
12328
  }
12329
12329
  function fg(e) {
12330
- return ra(this, e, (t) => t.type === "Keyword");
12330
+ return ia(this, e, (t) => t.type === "Keyword");
12331
12331
  }
12332
- function ra(e, t, n) {
12333
- const r = Pl.call(e, t);
12332
+ function ia(e, t, n) {
12333
+ const r = Dl.call(e, t);
12334
12334
  return r === null ? !1 : r.some(n);
12335
12335
  }
12336
12336
  const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12337
12337
  __proto__: null,
12338
- getTrace: Pl,
12338
+ getTrace: Dl,
12339
12339
  isKeyword: fg,
12340
12340
  isProperty: hg,
12341
12341
  isType: dg
12342
12342
  }, Symbol.toStringTag, { value: "Module" }));
12343
- function Dl(e) {
12344
- return "node" in e ? e.node : Dl(e.match[0]);
12345
- }
12346
12343
  function Ml(e) {
12347
- return "node" in e ? e.node : Ml(e.match[e.match.length - 1]);
12344
+ return "node" in e ? e.node : Ml(e.match[0]);
12345
+ }
12346
+ function Bl(e) {
12347
+ return "node" in e ? e.node : Bl(e.match[e.match.length - 1]);
12348
12348
  }
12349
- function No(e, t, n, r, i) {
12349
+ function Io(e, t, n, r, i) {
12350
12350
  function s(a) {
12351
12351
  if (a.syntax !== null && a.syntax.type === r && a.syntax.name === i) {
12352
- const u = Dl(a), c = Ml(a);
12352
+ const u = Ml(a), c = Bl(a);
12353
12353
  e.syntax.walk(t, function(d, h, m) {
12354
12354
  if (d === u) {
12355
12355
  const f = new He();
@@ -12374,7 +12374,7 @@ const { hasOwnProperty: $n } = Object.prototype;
12374
12374
  function Ni(e) {
12375
12375
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && e >= 0;
12376
12376
  }
12377
- function Io(e) {
12377
+ function vo(e) {
12378
12378
  return !!e && Ni(e.offset) && Ni(e.line) && Ni(e.column);
12379
12379
  }
12380
12380
  function mg(e, t) {
@@ -12392,9 +12392,9 @@ function mg(e, t) {
12392
12392
  if (r.loc && r.loc.constructor === Object)
12393
12393
  if (typeof r.loc.source != "string")
12394
12394
  s += ".source";
12395
- else if (!Io(r.loc.start))
12395
+ else if (!vo(r.loc.start))
12396
12396
  s += ".start";
12397
- else if (!Io(r.loc.end))
12397
+ else if (!vo(r.loc.end))
12398
12398
  s += ".end";
12399
12399
  else
12400
12400
  continue;
@@ -12426,7 +12426,7 @@ function mg(e, t) {
12426
12426
  $n.call(t, s) && $n.call(r, s) === !1 && i(r, "Field `" + e + "." + s + "` is missed");
12427
12427
  };
12428
12428
  }
12429
- function Bl(e, t) {
12429
+ function Fl(e, t) {
12430
12430
  const n = [];
12431
12431
  for (let r = 0; r < e.length; r++) {
12432
12432
  const i = e[r];
@@ -12437,7 +12437,7 @@ function Bl(e, t) {
12437
12437
  else if (typeof i == "string")
12438
12438
  n.push(i);
12439
12439
  else if (Array.isArray(i))
12440
- n.push("List<" + (Bl(i, t) || "any") + ">");
12440
+ n.push("List<" + (Fl(i, t) || "any") + ">");
12441
12441
  else
12442
12442
  throw new Error("Wrong value `" + i + "` in `" + t + "` structure definition");
12443
12443
  }
@@ -12454,7 +12454,7 @@ function gg(e, t) {
12454
12454
  if ($n.call(n, s) === !1)
12455
12455
  continue;
12456
12456
  const o = r[s] = Array.isArray(n[s]) ? n[s].slice() : [n[s]];
12457
- i[s] = Bl(o, e + "." + s);
12457
+ i[s] = Fl(o, e + "." + s);
12458
12458
  }
12459
12459
  return {
12460
12460
  docs: i,
@@ -12478,14 +12478,14 @@ function bg(e) {
12478
12478
  function ks(e, t, n) {
12479
12479
  const r = {};
12480
12480
  for (const i in e)
12481
- e[i].syntax && (r[i] = n ? e[i].syntax : js(e[i].syntax, { compact: t }));
12481
+ e[i].syntax && (r[i] = n ? e[i].syntax : qs(e[i].syntax, { compact: t }));
12482
12482
  return r;
12483
12483
  }
12484
12484
  function Eg(e, t, n) {
12485
12485
  const r = {};
12486
12486
  for (const [i, s] of Object.entries(e))
12487
12487
  r[i] = {
12488
- prelude: s.prelude && (n ? s.prelude.syntax : js(s.prelude.syntax, { compact: t })),
12488
+ prelude: s.prelude && (n ? s.prelude.syntax : qs(s.prelude.syntax, { compact: t })),
12489
12489
  descriptors: s.descriptors && ks(s.descriptors, t, n)
12490
12490
  };
12491
12491
  return r;
@@ -12511,17 +12511,17 @@ function mt(e, t, n) {
12511
12511
  function on(e, t, n, r) {
12512
12512
  const i = eg(n, e.syntax);
12513
12513
  let s;
12514
- return yg(i) ? mt(null, new Error("Matching for a tree with var() is not supported")) : (r && (s = Co(i, e.cssWideKeywordsSyntax, e)), (!r || !s.match) && (s = Co(i, t.match, e), !s.match) ? mt(
12514
+ return yg(i) ? mt(null, new Error("Matching for a tree with var() is not supported")) : (r && (s = No(i, e.cssWideKeywordsSyntax, e)), (!r || !s.match) && (s = No(i, t.match, e), !s.match) ? mt(
12515
12515
  null,
12516
12516
  new G0(s.reason, t.syntax, n, s),
12517
12517
  s.iterations
12518
12518
  ) : mt(s.match, null, s.iterations));
12519
12519
  }
12520
- class vo {
12520
+ class Oo {
12521
12521
  constructor(t, n, r) {
12522
- if (this.cssWideKeywords = Ys, this.syntax = n, this.generic = !1, this.units = { ...ho }, this.atrules = /* @__PURE__ */ Object.create(null), this.properties = /* @__PURE__ */ Object.create(null), this.types = /* @__PURE__ */ Object.create(null), this.structure = r || bg(t), t) {
12522
+ if (this.cssWideKeywords = Ws, this.syntax = n, this.generic = !1, this.units = { ...fo }, this.atrules = /* @__PURE__ */ Object.create(null), this.properties = /* @__PURE__ */ Object.create(null), this.types = /* @__PURE__ */ Object.create(null), this.structure = r || bg(t), t) {
12523
12523
  if (t.cssWideKeywords && (this.cssWideKeywords = t.cssWideKeywords), t.units)
12524
- for (const i of Object.keys(ho))
12524
+ for (const i of Object.keys(fo))
12525
12525
  Array.isArray(t.units[i]) && (this.units[i] = t.units[i]);
12526
12526
  if (t.types)
12527
12527
  for (const [i, s] of Object.entries(t.types))
@@ -12566,7 +12566,7 @@ class vo {
12566
12566
  return typeof t == "function" ? o.match = pr(t, s) : (typeof t == "string" ? Object.defineProperty(o, "syntax", {
12567
12567
  get() {
12568
12568
  return Object.defineProperty(o, "syntax", {
12569
- value: Ol(t)
12569
+ value: Ll(t)
12570
12570
  }), o.syntax;
12571
12571
  }
12572
12572
  }) : o.syntax = t, Object.defineProperty(o, "match", {
@@ -12650,7 +12650,7 @@ class vo {
12650
12650
  return t.type !== "Declaration" ? mt(null, new Error("Not a Declaration node")) : this.matchProperty(t.property, t.value);
12651
12651
  }
12652
12652
  matchProperty(t, n) {
12653
- if (lo(t).custom)
12653
+ if (co(t).custom)
12654
12654
  return mt(null, new Error("Lexer matching doesn't applicable for custom properties"));
12655
12655
  const r = this.checkPropertyName(t);
12656
12656
  return r ? mt(null, r) : on(this, this.getProperty(t), n, !0);
@@ -12663,10 +12663,10 @@ class vo {
12663
12663
  return typeof t != "string" && (!t || !t.type) ? mt(null, new Sn("Bad syntax")) : ((typeof t == "string" || !t.match) && (t = this.createDescriptor(t, "Type", "anonymous")), on(this, t, n, !1));
12664
12664
  }
12665
12665
  findValueFragments(t, n, r, i) {
12666
- return No(this, n, this.matchProperty(t, n), r, i);
12666
+ return Io(this, n, this.matchProperty(t, n), r, i);
12667
12667
  }
12668
12668
  findDeclarationValueFragments(t, n, r) {
12669
- return No(this, t.value, this.matchDeclaration(t), n, r);
12669
+ return Io(this, t.value, this.matchDeclaration(t), n, r);
12670
12670
  }
12671
12671
  findAllFragments(t, n, r) {
12672
12672
  const i = [];
@@ -12689,7 +12689,7 @@ class vo {
12689
12689
  return this.atrules.hasOwnProperty(t) && this.atrules.declarators && this.atrules[t].declarators[n] || null;
12690
12690
  }
12691
12691
  getProperty(t, n = !0) {
12692
- const r = lo(t);
12692
+ const r = co(t);
12693
12693
  return (r.vendor && n ? this.properties[r.name] || this.properties[r.basename] : this.properties[r.name]) || null;
12694
12694
  }
12695
12695
  getType(t) {
@@ -12812,10 +12812,10 @@ function ws(e, t) {
12812
12812
  }
12813
12813
  return n;
12814
12814
  }
12815
- function Fl(e) {
12815
+ function Ul(e) {
12816
12816
  const t = k0(e), n = z0(e), r = B0(e), { fromPlainObject: i, toPlainObject: s } = F0(n), o = {
12817
12817
  lexer: null,
12818
- createLexer: (a) => new vo(a, o, o.lexer.structure),
12818
+ createLexer: (a) => new Oo(a, o, o.lexer.structure),
12819
12819
  tokenize: Jr,
12820
12820
  parse: t,
12821
12821
  generate: r,
@@ -12827,12 +12827,12 @@ function Fl(e) {
12827
12827
  toPlainObject: s,
12828
12828
  fork(a) {
12829
12829
  const u = ws({}, e);
12830
- return Fl(
12830
+ return Ul(
12831
12831
  typeof a == "function" ? a(u) : ws(u, a)
12832
12832
  );
12833
12833
  }
12834
12834
  };
12835
- return o.lexer = new vo({
12835
+ return o.lexer = new Oo({
12836
12836
  generic: e.generic,
12837
12837
  cssWideKeywords: e.cssWideKeywords,
12838
12838
  units: e.units,
@@ -12842,7 +12842,7 @@ function Fl(e) {
12842
12842
  node: e.node
12843
12843
  }, o), o;
12844
12844
  }
12845
- const kg = (e) => Fl(ws({}, e)), wg = {
12845
+ const kg = (e) => Ul(ws({}, e)), wg = {
12846
12846
  generic: !0,
12847
12847
  cssWideKeywords: [
12848
12848
  "initial",
@@ -14296,7 +14296,7 @@ const xg = "AnPlusB", Sg = {
14296
14296
  a: [String, null],
14297
14297
  b: [String, null]
14298
14298
  };
14299
- function Ul() {
14299
+ function Hl() {
14300
14300
  const e = this.tokenStart;
14301
14301
  let t = null, n = null;
14302
14302
  if (this.tokenType === he)
@@ -14364,10 +14364,10 @@ const Ng = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14364
14364
  __proto__: null,
14365
14365
  generate: Cg,
14366
14366
  name: xg,
14367
- parse: Ul,
14367
+ parse: Hl,
14368
14368
  structure: Sg
14369
14369
  }, Symbol.toStringTag, { value: "Module" }));
14370
- function Oo() {
14370
+ function Lo() {
14371
14371
  return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon, !0);
14372
14372
  }
14373
14373
  function Ig() {
@@ -14384,10 +14384,10 @@ const vg = "Atrule", Og = "atrule", Lg = {
14384
14384
  prelude: ["AtrulePrelude", "Raw", null],
14385
14385
  block: ["Block", null]
14386
14386
  };
14387
- function Hl(e = !1) {
14387
+ function zl(e = !1) {
14388
14388
  const t = this.tokenStart;
14389
14389
  let n, r, i = null, s = null;
14390
- switch (this.eat(Me), n = this.substrToCursor(t + 1), r = n.toLowerCase(), this.skipSC(), this.eof === !1 && this.tokenType !== $e && this.tokenType !== Ke && (this.parseAtrulePrelude ? i = this.parseWithFallback(this.AtrulePrelude.bind(this, n, e), Oo) : i = Oo.call(this, this.tokenIndex), this.skipSC()), this.tokenType) {
14390
+ switch (this.eat(Me), n = this.substrToCursor(t + 1), r = n.toLowerCase(), this.skipSC(), this.eof === !1 && this.tokenType !== $e && this.tokenType !== Ke && (this.parseAtrulePrelude ? i = this.parseWithFallback(this.AtrulePrelude.bind(this, n, e), Lo) : i = Lo.call(this, this.tokenIndex), this.skipSC()), this.tokenType) {
14391
14391
  case Ke:
14392
14392
  this.next();
14393
14393
  break;
@@ -14410,13 +14410,13 @@ const Pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14410
14410
  __proto__: null,
14411
14411
  generate: Rg,
14412
14412
  name: vg,
14413
- parse: Hl,
14413
+ parse: zl,
14414
14414
  structure: Lg,
14415
14415
  walkContext: Og
14416
14416
  }, Symbol.toStringTag, { value: "Module" })), Dg = "AtrulePrelude", Mg = "atrulePrelude", Bg = {
14417
14417
  children: [[]]
14418
14418
  };
14419
- function zl(e) {
14419
+ function $l(e) {
14420
14420
  let t = null;
14421
14421
  return e !== null && (e = e.toLowerCase()), this.skipSC(), hasOwnProperty.call(this.atrule, e) && typeof this.atrule[e].prelude == "function" ? t = this.atrule[e].prelude.call(this) : t = this.readSequence(this.scope.AtrulePrelude), this.skipSC(), this.eof !== !0 && this.tokenType !== $e && this.tokenType !== Ke && this.error("Semicolon or block is expected"), {
14422
14422
  type: "AtrulePrelude",
@@ -14431,15 +14431,15 @@ const Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14431
14431
  __proto__: null,
14432
14432
  generate: Fg,
14433
14433
  name: Dg,
14434
- parse: zl,
14434
+ parse: $l,
14435
14435
  structure: Bg,
14436
14436
  walkContext: Mg
14437
- }, Symbol.toStringTag, { value: "Module" })), Hg = 36, $l = 42, Nr = 61, zg = 94, As = 124, $g = 126;
14437
+ }, Symbol.toStringTag, { value: "Module" })), Hg = 36, jl = 42, Nr = 61, zg = 94, As = 124, $g = 126;
14438
14438
  function jg() {
14439
14439
  this.eof && this.error("Unexpected end of input");
14440
14440
  const e = this.tokenStart;
14441
14441
  let t = !1;
14442
- return this.isDelim($l) ? (t = !0, this.next()) : this.isDelim(As) || this.eat(ne), this.isDelim(As) ? this.charCodeAt(this.tokenStart + 1) !== Nr ? (this.next(), this.eat(ne)) : t && this.error("Identifier is expected", this.tokenEnd) : t && this.error("Vertical line is expected"), {
14442
+ return this.isDelim(jl) ? (t = !0, this.next()) : this.isDelim(As) || this.eat(ne), this.isDelim(As) ? this.charCodeAt(this.tokenStart + 1) !== Nr ? (this.next(), this.eat(ne)) : t && this.error("Identifier is expected", this.tokenEnd) : t && this.error("Vertical line is expected"), {
14443
14443
  type: "Identifier",
14444
14444
  loc: this.getLocation(e, this.tokenStart),
14445
14445
  name: this.substrToCursor(e)
@@ -14451,7 +14451,7 @@ function qg() {
14451
14451
  t !== $g && // ~=
14452
14452
  t !== zg && // ^=
14453
14453
  t !== Hg && // $=
14454
- t !== $l && // *=
14454
+ t !== jl && // *=
14455
14455
  t !== As && this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"), this.next(), t !== Nr && (this.isDelim(Nr) || this.error("Equal sign is expected"), this.next()), this.substrToCursor(e);
14456
14456
  }
14457
14457
  const Yg = "AttributeSelector", Wg = {
@@ -14460,7 +14460,7 @@ const Yg = "AttributeSelector", Wg = {
14460
14460
  value: ["String", "Identifier", null],
14461
14461
  flags: [String, null]
14462
14462
  };
14463
- function jl() {
14463
+ function ql() {
14464
14464
  const e = this.tokenStart;
14465
14465
  let t, n = null, r = null, i = null;
14466
14466
  return this.eat(ot), this.skipSC(), t = jg.call(this), this.skipSC(), this.tokenType !== dt && (this.tokenType !== ne && (n = qg.call(this), this.skipSC(), r = this.tokenType === Tt ? this.String() : this.Identifier(), this.skipSC()), this.tokenType === ne && (i = this.consume(ne), this.skipSC())), this.eat(dt), {
@@ -14479,22 +14479,22 @@ const Vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14479
14479
  __proto__: null,
14480
14480
  generate: Gg,
14481
14481
  name: Yg,
14482
- parse: jl,
14482
+ parse: ql,
14483
14483
  structure: Wg
14484
14484
  }, Symbol.toStringTag, { value: "Module" })), Kg = 38;
14485
- function ql() {
14485
+ function Yl() {
14486
14486
  return this.Raw(null, !0);
14487
14487
  }
14488
- function Lo() {
14489
- return this.parseWithFallback(this.Rule, ql);
14490
- }
14491
14488
  function Ro() {
14489
+ return this.parseWithFallback(this.Rule, Yl);
14490
+ }
14491
+ function Po() {
14492
14492
  return this.Raw(this.consumeUntilSemicolonIncluded, !0);
14493
14493
  }
14494
14494
  function Xg() {
14495
14495
  if (this.tokenType === Ke)
14496
- return Ro.call(this, this.tokenIndex);
14497
- const e = this.parseWithFallback(this.Declaration, Ro);
14496
+ return Po.call(this, this.tokenIndex);
14497
+ const e = this.parseWithFallback(this.Declaration, Po);
14498
14498
  return this.tokenType === Ke && this.next(), e;
14499
14499
  }
14500
14500
  const Qg = "Block", Zg = "block", Jg = {
@@ -14504,8 +14504,8 @@ const Qg = "Block", Zg = "block", Jg = {
14504
14504
  "Declaration"
14505
14505
  ]]
14506
14506
  };
14507
- function Yl(e) {
14508
- const t = e ? Xg : Lo, n = this.tokenStart;
14507
+ function Wl(e) {
14508
+ const t = e ? Xg : Ro, n = this.tokenStart;
14509
14509
  let r = this.createList();
14510
14510
  this.eat($e);
14511
14511
  e:
@@ -14518,10 +14518,10 @@ function Yl(e) {
14518
14518
  this.next();
14519
14519
  break;
14520
14520
  case Me:
14521
- r.push(this.parseWithFallback(this.Atrule.bind(this, e), ql));
14521
+ r.push(this.parseWithFallback(this.Atrule.bind(this, e), Yl));
14522
14522
  break;
14523
14523
  default:
14524
- e && this.isDelim(Kg) ? r.push(Lo.call(this)) : r.push(t.call(this));
14524
+ e && this.isDelim(Kg) ? r.push(Ro.call(this)) : r.push(t.call(this));
14525
14525
  }
14526
14526
  return this.eof || this.eat(at), {
14527
14527
  type: "Block",
@@ -14538,13 +14538,13 @@ const tb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14538
14538
  __proto__: null,
14539
14539
  generate: eb,
14540
14540
  name: Qg,
14541
- parse: Yl,
14541
+ parse: Wl,
14542
14542
  structure: Jg,
14543
14543
  walkContext: Zg
14544
14544
  }, Symbol.toStringTag, { value: "Module" })), nb = "Brackets", rb = {
14545
14545
  children: [[]]
14546
14546
  };
14547
- function Wl(e, t) {
14547
+ function Gl(e, t) {
14548
14548
  const n = this.tokenStart;
14549
14549
  let r = null;
14550
14550
  return this.eat(ot), r = e.call(this, t), this.eof || this.eat(dt), {
@@ -14560,10 +14560,10 @@ const sb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14560
14560
  __proto__: null,
14561
14561
  generate: ib,
14562
14562
  name: nb,
14563
- parse: Wl,
14563
+ parse: Gl,
14564
14564
  structure: rb
14565
14565
  }, Symbol.toStringTag, { value: "Module" })), ab = "CDC", ob = [];
14566
- function Gl() {
14566
+ function Vl() {
14567
14567
  const e = this.tokenStart;
14568
14568
  return this.eat(et), {
14569
14569
  type: "CDC",
@@ -14577,10 +14577,10 @@ const lb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14577
14577
  __proto__: null,
14578
14578
  generate: ub,
14579
14579
  name: ab,
14580
- parse: Gl,
14580
+ parse: Vl,
14581
14581
  structure: ob
14582
14582
  }, Symbol.toStringTag, { value: "Module" })), cb = "CDO", db = [];
14583
- function Vl() {
14583
+ function Kl() {
14584
14584
  const e = this.tokenStart;
14585
14585
  return this.eat(Zn), {
14586
14586
  type: "CDO",
@@ -14594,12 +14594,12 @@ const fb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14594
14594
  __proto__: null,
14595
14595
  generate: hb,
14596
14596
  name: cb,
14597
- parse: Vl,
14597
+ parse: Kl,
14598
14598
  structure: db
14599
14599
  }, Symbol.toStringTag, { value: "Module" })), pb = 46, mb = "ClassSelector", gb = {
14600
14600
  name: String
14601
14601
  };
14602
- function Kl() {
14602
+ function Xl() {
14603
14603
  return this.eatDelim(pb), {
14604
14604
  type: "ClassSelector",
14605
14605
  loc: this.getLocation(this.tokenStart - 1, this.tokenEnd),
@@ -14613,12 +14613,12 @@ const Eb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14613
14613
  __proto__: null,
14614
14614
  generate: bb,
14615
14615
  name: mb,
14616
- parse: Kl,
14616
+ parse: Xl,
14617
14617
  structure: gb
14618
- }, Symbol.toStringTag, { value: "Module" })), yb = 43, Po = 47, Tb = 62, _b = 126, kb = "Combinator", wb = {
14618
+ }, Symbol.toStringTag, { value: "Module" })), yb = 43, Do = 47, Tb = 62, _b = 126, kb = "Combinator", wb = {
14619
14619
  name: String
14620
14620
  };
14621
- function Xl() {
14621
+ function Ql() {
14622
14622
  const e = this.tokenStart;
14623
14623
  let t;
14624
14624
  switch (this.tokenType) {
@@ -14632,8 +14632,8 @@ function Xl() {
14632
14632
  case _b:
14633
14633
  this.next();
14634
14634
  break;
14635
- case Po:
14636
- this.next(), this.eatIdent("deep"), this.eatDelim(Po);
14635
+ case Do:
14636
+ this.next(), this.eatIdent("deep"), this.eatDelim(Do);
14637
14637
  break;
14638
14638
  default:
14639
14639
  this.error("Combinator is expected");
@@ -14654,12 +14654,12 @@ const xb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14654
14654
  __proto__: null,
14655
14655
  generate: Ab,
14656
14656
  name: kb,
14657
- parse: Xl,
14657
+ parse: Ql,
14658
14658
  structure: wb
14659
14659
  }, Symbol.toStringTag, { value: "Module" })), Sb = 42, Cb = 47, Nb = "Comment", Ib = {
14660
14660
  value: String
14661
14661
  };
14662
- function Ql() {
14662
+ function Zl() {
14663
14663
  const e = this.tokenStart;
14664
14664
  let t = this.tokenEnd;
14665
14665
  return this.eat(qe), t - e + 2 >= 2 && this.charCodeAt(t - 2) === Sb && this.charCodeAt(t - 1) === Cb && (t -= 2), {
@@ -14675,7 +14675,7 @@ const Ob = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14675
14675
  __proto__: null,
14676
14676
  generate: vb,
14677
14677
  name: Nb,
14678
- parse: Ql,
14678
+ parse: Zl,
14679
14679
  structure: Ib
14680
14680
  }, Symbol.toStringTag, { value: "Module" })), Lb = /* @__PURE__ */ new Set([Ve, de, zt]), Rb = "Condition", Pb = {
14681
14681
  kind: String,
@@ -14687,17 +14687,17 @@ const Ob = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14687
14687
  "SupportsDeclaration"
14688
14688
  ]]
14689
14689
  };
14690
- function Do(e) {
14690
+ function Mo(e) {
14691
14691
  return this.lookupTypeNonSC(1) === ne && Lb.has(this.lookupTypeNonSC(2)) ? this.Feature(e) : this.FeatureRange(e);
14692
14692
  }
14693
14693
  const Db = {
14694
- media: Do,
14695
- container: Do,
14694
+ media: Mo,
14695
+ container: Mo,
14696
14696
  supports() {
14697
14697
  return this.SupportsDeclaration();
14698
14698
  }
14699
14699
  };
14700
- function Zl(e = "media") {
14700
+ function Jl(e = "media") {
14701
14701
  const t = this.createList();
14702
14702
  e: for (; !this.eof; )
14703
14703
  switch (this.tokenType) {
@@ -14750,9 +14750,9 @@ const Bb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14750
14750
  __proto__: null,
14751
14751
  generate: Mb,
14752
14752
  name: Rb,
14753
- parse: Zl,
14753
+ parse: Jl,
14754
14754
  structure: Pb
14755
- }, Symbol.toStringTag, { value: "Module" })), Jl = 33, Fb = 35, Ub = 36, Hb = 38, zb = 42, $b = 43, Mo = 47;
14755
+ }, Symbol.toStringTag, { value: "Module" })), ec = 33, Fb = 35, Ub = 36, Hb = 38, zb = 42, $b = 43, Bo = 47;
14756
14756
  function jb() {
14757
14757
  return this.Raw(this.consumeUntilExclamationMarkOrSemicolon, !0);
14758
14758
  }
@@ -14761,15 +14761,15 @@ function qb() {
14761
14761
  }
14762
14762
  function Yb() {
14763
14763
  const e = this.tokenIndex, t = this.Value();
14764
- return t.type !== "Raw" && this.eof === !1 && this.tokenType !== Ke && this.isDelim(Jl) === !1 && this.isBalanceEdge(e) === !1 && this.error(), t;
14764
+ return t.type !== "Raw" && this.eof === !1 && this.tokenType !== Ke && this.isDelim(ec) === !1 && this.isBalanceEdge(e) === !1 && this.error(), t;
14765
14765
  }
14766
14766
  const Wb = "Declaration", Gb = "declaration", Vb = {
14767
14767
  important: [Boolean, String],
14768
14768
  property: String,
14769
14769
  value: ["Value", "Raw"]
14770
14770
  };
14771
- function ec() {
14772
- const e = this.tokenStart, t = this.tokenIndex, n = Xb.call(this), r = qs(n), i = r ? this.parseCustomProperty : this.parseValue, s = r ? qb : jb;
14771
+ function tc() {
14772
+ const e = this.tokenStart, t = this.tokenIndex, n = Xb.call(this), r = Ys(n), i = r ? this.parseCustomProperty : this.parseValue, s = r ? qb : jb;
14773
14773
  let o = !1, a;
14774
14774
  this.skipSC(), this.eat(Ve);
14775
14775
  const u = this.tokenIndex;
@@ -14784,7 +14784,7 @@ function ec() {
14784
14784
  break;
14785
14785
  }
14786
14786
  }
14787
- return this.isDelim(Jl) && (o = Qb.call(this), this.skipSC()), this.eof === !1 && this.tokenType !== Ke && this.isBalanceEdge(t) === !1 && this.error(), {
14787
+ return this.isDelim(ec) && (o = Qb.call(this), this.skipSC()), this.eof === !1 && this.tokenType !== Ke && this.isBalanceEdge(t) === !1 && this.error(), {
14788
14788
  type: "Declaration",
14789
14789
  loc: this.getLocation(e, this.tokenStart),
14790
14790
  important: o,
@@ -14807,8 +14807,8 @@ function Xb() {
14807
14807
  this.next();
14808
14808
  break;
14809
14809
  // TODO: not sure we should support this hack
14810
- case Mo:
14811
- this.next(), this.isDelim(Mo) && this.next();
14810
+ case Bo:
14811
+ this.next(), this.isDelim(Bo) && this.next();
14812
14812
  break;
14813
14813
  }
14814
14814
  return this.tokenType === Ce ? this.eat(Ce) : this.eat(ne), this.substrToCursor(e);
@@ -14822,7 +14822,7 @@ const Zb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14822
14822
  __proto__: null,
14823
14823
  generate: Kb,
14824
14824
  name: Wb,
14825
- parse: ec,
14825
+ parse: tc,
14826
14826
  structure: Vb,
14827
14827
  walkContext: Gb
14828
14828
  }, Symbol.toStringTag, { value: "Module" })), Jb = 38;
@@ -14836,7 +14836,7 @@ const e1 = "DeclarationList", t1 = {
14836
14836
  "Rule"
14837
14837
  ]]
14838
14838
  };
14839
- function tc() {
14839
+ function nc() {
14840
14840
  const e = this.createList();
14841
14841
  for (; !this.eof; )
14842
14842
  switch (this.tokenType) {
@@ -14866,13 +14866,13 @@ const r1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14866
14866
  __proto__: null,
14867
14867
  generate: n1,
14868
14868
  name: e1,
14869
- parse: tc,
14869
+ parse: nc,
14870
14870
  structure: t1
14871
14871
  }, Symbol.toStringTag, { value: "Module" })), i1 = "Dimension", s1 = {
14872
14872
  value: String,
14873
14873
  unit: String
14874
14874
  };
14875
- function nc() {
14875
+ function rc() {
14876
14876
  const e = this.tokenStart, t = this.consumeNumber(me);
14877
14877
  return {
14878
14878
  type: "Dimension",
@@ -14888,14 +14888,14 @@ const o1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14888
14888
  __proto__: null,
14889
14889
  generate: a1,
14890
14890
  name: i1,
14891
- parse: nc,
14891
+ parse: rc,
14892
14892
  structure: s1
14893
14893
  }, Symbol.toStringTag, { value: "Module" })), u1 = 47, l1 = "Feature", c1 = {
14894
14894
  kind: String,
14895
14895
  name: String,
14896
14896
  value: ["Identifier", "Number", "Dimension", "Ratio", "Function", null]
14897
14897
  };
14898
- function rc(e) {
14898
+ function ic(e) {
14899
14899
  const t = this.tokenStart;
14900
14900
  let n, r = null;
14901
14901
  if (this.eat(Te), this.skipSC(), n = this.consume(ne), this.skipSC(), this.tokenType !== de) {
@@ -14938,7 +14938,7 @@ const h1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14938
14938
  __proto__: null,
14939
14939
  generate: d1,
14940
14940
  name: l1,
14941
- parse: rc,
14941
+ parse: ic,
14942
14942
  structure: c1
14943
14943
  }, Symbol.toStringTag, { value: "Module" })), f1 = "FeatureFunction", p1 = {
14944
14944
  kind: String,
@@ -14949,7 +14949,7 @@ function m1(e, t) {
14949
14949
  const r = (this.features[e] || {})[t];
14950
14950
  return typeof r != "function" && this.error(`Unknown feature ${t}()`), r;
14951
14951
  }
14952
- function ic(e = "unknown") {
14952
+ function sc(e = "unknown") {
14953
14953
  const t = this.tokenStart, n = this.consumeFunctionName(), r = m1.call(this, e, n.toLowerCase());
14954
14954
  this.skipSC();
14955
14955
  const i = this.parseWithFallback(
@@ -14974,9 +14974,9 @@ const b1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14974
14974
  __proto__: null,
14975
14975
  generate: g1,
14976
14976
  name: f1,
14977
- parse: ic,
14977
+ parse: sc,
14978
14978
  structure: p1
14979
- }, Symbol.toStringTag, { value: "Module" })), Bo = 47, E1 = 60, Fo = 61, y1 = 62, T1 = "FeatureRange", _1 = {
14979
+ }, Symbol.toStringTag, { value: "Module" })), Fo = 47, E1 = 60, Uo = 61, y1 = 62, T1 = "FeatureRange", _1 = {
14980
14980
  kind: String,
14981
14981
  left: ["Identifier", "Number", "Dimension", "Ratio", "Function"],
14982
14982
  leftComparison: String,
@@ -14987,7 +14987,7 @@ const b1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14987
14987
  function Ri() {
14988
14988
  switch (this.skipSC(), this.tokenType) {
14989
14989
  case he:
14990
- return this.isDelim(Bo, this.lookupOffsetNonSC(1)) ? this.Ratio() : this.Number();
14990
+ return this.isDelim(Fo, this.lookupOffsetNonSC(1)) ? this.Ratio() : this.Number();
14991
14991
  case me:
14992
14992
  return this.Dimension();
14993
14993
  case ne:
@@ -14996,7 +14996,7 @@ function Ri() {
14996
14996
  return this.parseWithFallback(
14997
14997
  () => {
14998
14998
  const e = this.Function(this.readSequence, this.scope.Value);
14999
- return this.skipSC(), this.isDelim(Bo) && this.error(), e;
14999
+ return this.skipSC(), this.isDelim(Fo) && this.error(), e;
15000
15000
  },
15001
15001
  () => this.Ratio()
15002
15002
  );
@@ -15004,21 +15004,21 @@ function Ri() {
15004
15004
  this.error("Number, dimension, ratio or identifier is expected");
15005
15005
  }
15006
15006
  }
15007
- function Uo(e) {
15007
+ function Ho(e) {
15008
15008
  if (this.skipSC(), this.isDelim(E1) || this.isDelim(y1)) {
15009
15009
  const t = this.source[this.tokenStart];
15010
- return this.next(), this.isDelim(Fo) ? (this.next(), t + "=") : t;
15010
+ return this.next(), this.isDelim(Uo) ? (this.next(), t + "=") : t;
15011
15011
  }
15012
- if (this.isDelim(Fo))
15012
+ if (this.isDelim(Uo))
15013
15013
  return "=";
15014
15014
  this.error(`Expected ${e ? '":", ' : ""}"<", ">", "=" or ")"`);
15015
15015
  }
15016
- function sc(e = "unknown") {
15016
+ function ac(e = "unknown") {
15017
15017
  const t = this.tokenStart;
15018
15018
  this.skipSC(), this.eat(Te);
15019
- const n = Ri.call(this), r = Uo.call(this, n.type === "Identifier"), i = Ri.call(this);
15019
+ const n = Ri.call(this), r = Ho.call(this, n.type === "Identifier"), i = Ri.call(this);
15020
15020
  let s = null, o = null;
15021
- return this.lookupNonWSType(0) !== de && (s = Uo.call(this), o = Ri.call(this)), this.skipSC(), this.eat(de), {
15021
+ return this.lookupNonWSType(0) !== de && (s = Ho.call(this), o = Ri.call(this)), this.skipSC(), this.eat(de), {
15022
15022
  type: "FeatureRange",
15023
15023
  loc: this.getLocation(t, this.tokenStart),
15024
15024
  kind: e,
@@ -15036,13 +15036,13 @@ const w1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15036
15036
  __proto__: null,
15037
15037
  generate: k1,
15038
15038
  name: T1,
15039
- parse: sc,
15039
+ parse: ac,
15040
15040
  structure: _1
15041
15041
  }, Symbol.toStringTag, { value: "Module" })), A1 = "Function", x1 = "function", S1 = {
15042
15042
  name: String,
15043
15043
  children: [[]]
15044
15044
  };
15045
- function ac(e, t) {
15045
+ function oc(e, t) {
15046
15046
  const n = this.tokenStart, r = this.consumeFunctionName(), i = r.toLowerCase();
15047
15047
  let s;
15048
15048
  return s = t.hasOwnProperty(i) ? t[i].call(this, t) : e.call(this, t), this.eof || this.eat(de), {
@@ -15059,7 +15059,7 @@ const N1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15059
15059
  __proto__: null,
15060
15060
  generate: C1,
15061
15061
  name: A1,
15062
- parse: ac,
15062
+ parse: oc,
15063
15063
  structure: S1,
15064
15064
  walkContext: x1
15065
15065
  }, Symbol.toStringTag, { value: "Module" })), I1 = "GeneralEnclosed", v1 = {
@@ -15067,7 +15067,7 @@ const N1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15067
15067
  function: [String, null],
15068
15068
  children: [[]]
15069
15069
  };
15070
- function oc(e) {
15070
+ function uc(e) {
15071
15071
  const t = this.tokenStart;
15072
15072
  let n = null;
15073
15073
  this.tokenType === fe ? n = this.consumeFunctionName() : this.eat(Te);
@@ -15095,12 +15095,12 @@ const L1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15095
15095
  __proto__: null,
15096
15096
  generate: O1,
15097
15097
  name: I1,
15098
- parse: oc,
15098
+ parse: uc,
15099
15099
  structure: v1
15100
15100
  }, Symbol.toStringTag, { value: "Module" })), R1 = "XXX", P1 = "Hash", D1 = {
15101
15101
  value: String
15102
15102
  };
15103
- function uc() {
15103
+ function lc() {
15104
15104
  const e = this.tokenStart;
15105
15105
  return this.eat(Ce), {
15106
15106
  type: "Hash",
@@ -15115,13 +15115,13 @@ const B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15115
15115
  __proto__: null,
15116
15116
  generate: M1,
15117
15117
  name: P1,
15118
- parse: uc,
15118
+ parse: lc,
15119
15119
  structure: D1,
15120
15120
  xxx: R1
15121
15121
  }, Symbol.toStringTag, { value: "Module" })), F1 = "Identifier", U1 = {
15122
15122
  name: String
15123
15123
  };
15124
- function lc() {
15124
+ function cc() {
15125
15125
  return {
15126
15126
  type: "Identifier",
15127
15127
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
@@ -15135,12 +15135,12 @@ const z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15135
15135
  __proto__: null,
15136
15136
  generate: H1,
15137
15137
  name: F1,
15138
- parse: lc,
15138
+ parse: cc,
15139
15139
  structure: U1
15140
15140
  }, Symbol.toStringTag, { value: "Module" })), $1 = "IdSelector", j1 = {
15141
15141
  name: String
15142
15142
  };
15143
- function cc() {
15143
+ function dc() {
15144
15144
  const e = this.tokenStart;
15145
15145
  return this.eat(Ce), {
15146
15146
  type: "IdSelector",
@@ -15155,12 +15155,12 @@ const Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15155
15155
  __proto__: null,
15156
15156
  generate: q1,
15157
15157
  name: $1,
15158
- parse: cc,
15158
+ parse: dc,
15159
15159
  structure: j1
15160
15160
  }, Symbol.toStringTag, { value: "Module" })), W1 = 46, G1 = "Layer", V1 = {
15161
15161
  name: String
15162
15162
  };
15163
- function dc() {
15163
+ function hc() {
15164
15164
  let e = this.tokenStart, t = this.consume(ne);
15165
15165
  for (; this.isDelim(W1); )
15166
15166
  this.eat(ge), t += "." + this.consume(ne);
@@ -15177,14 +15177,14 @@ const X1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15177
15177
  __proto__: null,
15178
15178
  generate: K1,
15179
15179
  name: G1,
15180
- parse: dc,
15180
+ parse: hc,
15181
15181
  structure: V1
15182
15182
  }, Symbol.toStringTag, { value: "Module" })), Q1 = "LayerList", Z1 = {
15183
15183
  children: [[
15184
15184
  "Layer"
15185
15185
  ]]
15186
15186
  };
15187
- function hc() {
15187
+ function fc() {
15188
15188
  const e = this.createList();
15189
15189
  for (this.skipSC(); !this.eof && (e.push(this.Layer()), this.lookupTypeNonSC(0) === rt); )
15190
15190
  this.skipSC(), this.next(), this.skipSC();
@@ -15201,14 +15201,14 @@ const eE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15201
15201
  __proto__: null,
15202
15202
  generate: J1,
15203
15203
  name: Q1,
15204
- parse: hc,
15204
+ parse: fc,
15205
15205
  structure: Z1
15206
15206
  }, Symbol.toStringTag, { value: "Module" })), tE = "MediaQuery", nE = {
15207
15207
  modifier: [String, null],
15208
15208
  mediaType: [String, null],
15209
15209
  condition: ["Condition", null]
15210
15210
  };
15211
- function fc() {
15211
+ function pc() {
15212
15212
  const e = this.tokenStart;
15213
15213
  let t = null, n = null, r = null;
15214
15214
  if (this.skipSC(), this.tokenType === ne && this.lookupTypeNonSC(1) !== Te) {
@@ -15256,14 +15256,14 @@ const iE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15256
15256
  __proto__: null,
15257
15257
  generate: rE,
15258
15258
  name: tE,
15259
- parse: fc,
15259
+ parse: pc,
15260
15260
  structure: nE
15261
15261
  }, Symbol.toStringTag, { value: "Module" })), sE = "MediaQueryList", aE = {
15262
15262
  children: [[
15263
15263
  "MediaQuery"
15264
15264
  ]]
15265
15265
  };
15266
- function pc() {
15266
+ function mc() {
15267
15267
  const e = this.createList();
15268
15268
  for (this.skipSC(); !this.eof && (e.push(this.MediaQuery()), this.tokenType === rt); )
15269
15269
  this.next();
@@ -15280,10 +15280,10 @@ const uE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15280
15280
  __proto__: null,
15281
15281
  generate: oE,
15282
15282
  name: sE,
15283
- parse: pc,
15283
+ parse: mc,
15284
15284
  structure: aE
15285
15285
  }, Symbol.toStringTag, { value: "Module" })), lE = 38, cE = "NestingSelector", dE = {};
15286
- function mc() {
15286
+ function gc() {
15287
15287
  const e = this.tokenStart;
15288
15288
  return this.eatDelim(lE), {
15289
15289
  type: "NestingSelector",
@@ -15297,13 +15297,13 @@ const fE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15297
15297
  __proto__: null,
15298
15298
  generate: hE,
15299
15299
  name: cE,
15300
- parse: mc,
15300
+ parse: gc,
15301
15301
  structure: dE
15302
15302
  }, Symbol.toStringTag, { value: "Module" })), pE = "Nth", mE = {
15303
15303
  nth: ["AnPlusB", "Identifier"],
15304
15304
  selector: ["SelectorList", null]
15305
15305
  };
15306
- function gc() {
15306
+ function bc() {
15307
15307
  this.skipSC();
15308
15308
  const e = this.tokenStart;
15309
15309
  let t = e, n = null, r;
@@ -15321,12 +15321,12 @@ const bE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15321
15321
  __proto__: null,
15322
15322
  generate: gE,
15323
15323
  name: pE,
15324
- parse: gc,
15324
+ parse: bc,
15325
15325
  structure: mE
15326
15326
  }, Symbol.toStringTag, { value: "Module" })), EE = "Number", yE = {
15327
15327
  value: String
15328
15328
  };
15329
- function bc() {
15329
+ function Ec() {
15330
15330
  return {
15331
15331
  type: "Number",
15332
15332
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
@@ -15340,12 +15340,12 @@ const _E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15340
15340
  __proto__: null,
15341
15341
  generate: TE,
15342
15342
  name: EE,
15343
- parse: bc,
15343
+ parse: Ec,
15344
15344
  structure: yE
15345
15345
  }, Symbol.toStringTag, { value: "Module" })), kE = "Operator", wE = {
15346
15346
  value: String
15347
15347
  };
15348
- function Ec() {
15348
+ function yc() {
15349
15349
  const e = this.tokenStart;
15350
15350
  return this.next(), {
15351
15351
  type: "Operator",
@@ -15360,12 +15360,12 @@ const xE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15360
15360
  __proto__: null,
15361
15361
  generate: AE,
15362
15362
  name: kE,
15363
- parse: Ec,
15363
+ parse: yc,
15364
15364
  structure: wE
15365
15365
  }, Symbol.toStringTag, { value: "Module" })), SE = "Parentheses", CE = {
15366
15366
  children: [[]]
15367
15367
  };
15368
- function yc(e, t) {
15368
+ function Tc(e, t) {
15369
15369
  const n = this.tokenStart;
15370
15370
  let r = null;
15371
15371
  return this.eat(Te), r = e.call(this, t), this.eof || this.eat(de), {
@@ -15381,12 +15381,12 @@ const IE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15381
15381
  __proto__: null,
15382
15382
  generate: NE,
15383
15383
  name: SE,
15384
- parse: yc,
15384
+ parse: Tc,
15385
15385
  structure: CE
15386
15386
  }, Symbol.toStringTag, { value: "Module" })), vE = "Percentage", OE = {
15387
15387
  value: String
15388
15388
  };
15389
- function Tc() {
15389
+ function _c() {
15390
15390
  return {
15391
15391
  type: "Percentage",
15392
15392
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
@@ -15400,13 +15400,13 @@ const RE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15400
15400
  __proto__: null,
15401
15401
  generate: LE,
15402
15402
  name: vE,
15403
- parse: Tc,
15403
+ parse: _c,
15404
15404
  structure: OE
15405
15405
  }, Symbol.toStringTag, { value: "Module" })), PE = "PseudoClassSelector", DE = "function", ME = {
15406
15406
  name: String,
15407
15407
  children: [["Raw"], null]
15408
15408
  };
15409
- function _c() {
15409
+ function kc() {
15410
15410
  const e = this.tokenStart;
15411
15411
  let t = null, n, r;
15412
15412
  return this.eat(Ve), this.tokenType === fe ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == de ? t = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), t = this.pseudo[r].call(this), this.skipSC()) : (t = this.createList(), t.push(
@@ -15425,14 +15425,14 @@ const FE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15425
15425
  __proto__: null,
15426
15426
  generate: BE,
15427
15427
  name: PE,
15428
- parse: _c,
15428
+ parse: kc,
15429
15429
  structure: ME,
15430
15430
  walkContext: DE
15431
15431
  }, Symbol.toStringTag, { value: "Module" })), UE = "PseudoElementSelector", HE = "function", zE = {
15432
15432
  name: String,
15433
15433
  children: [["Raw"], null]
15434
15434
  };
15435
- function kc() {
15435
+ function wc() {
15436
15436
  const e = this.tokenStart;
15437
15437
  let t = null, n, r;
15438
15438
  return this.eat(Ve), this.eat(Ve), this.tokenType === fe ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == de ? t = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), t = this.pseudo[r].call(this), this.skipSC()) : (t = this.createList(), t.push(
@@ -15451,11 +15451,11 @@ const jE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15451
15451
  __proto__: null,
15452
15452
  generate: $E,
15453
15453
  name: UE,
15454
- parse: kc,
15454
+ parse: wc,
15455
15455
  structure: zE,
15456
15456
  walkContext: HE
15457
- }, Symbol.toStringTag, { value: "Module" })), Ho = 47;
15458
- function zo() {
15457
+ }, Symbol.toStringTag, { value: "Module" })), zo = 47;
15458
+ function $o() {
15459
15459
  switch (this.skipSC(), this.tokenType) {
15460
15460
  case he:
15461
15461
  return this.Number();
@@ -15469,10 +15469,10 @@ const qE = "Ratio", YE = {
15469
15469
  left: ["Number", "Function"],
15470
15470
  right: ["Number", "Function", null]
15471
15471
  };
15472
- function wc() {
15473
- const e = this.tokenStart, t = zo.call(this);
15472
+ function Ac() {
15473
+ const e = this.tokenStart, t = $o.call(this);
15474
15474
  let n = null;
15475
- return this.skipSC(), this.isDelim(Ho) && (this.eatDelim(Ho), n = zo.call(this)), {
15475
+ return this.skipSC(), this.isDelim(zo) && (this.eatDelim(zo), n = $o.call(this)), {
15476
15476
  type: "Ratio",
15477
15477
  loc: this.getLocation(e, this.tokenStart),
15478
15478
  left: t,
@@ -15486,7 +15486,7 @@ const GE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15486
15486
  __proto__: null,
15487
15487
  generate: WE,
15488
15488
  name: qE,
15489
- parse: wc,
15489
+ parse: Ac,
15490
15490
  structure: YE
15491
15491
  }, Symbol.toStringTag, { value: "Module" }));
15492
15492
  function VE() {
@@ -15495,7 +15495,7 @@ function VE() {
15495
15495
  const KE = "Raw", XE = {
15496
15496
  value: String
15497
15497
  };
15498
- function Ac(e, t) {
15498
+ function xc(e, t) {
15499
15499
  const n = this.getTokenStart(this.tokenIndex);
15500
15500
  let r;
15501
15501
  return this.skipUntilBalanced(this.tokenIndex, e || this.consumeUntilBalanceEnd), t && this.tokenStart > n ? r = VE.call(this) : r = this.tokenStart, {
@@ -15511,10 +15511,10 @@ const ZE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15511
15511
  __proto__: null,
15512
15512
  generate: QE,
15513
15513
  name: KE,
15514
- parse: Ac,
15514
+ parse: xc,
15515
15515
  structure: XE
15516
15516
  }, Symbol.toStringTag, { value: "Module" }));
15517
- function $o() {
15517
+ function jo() {
15518
15518
  return this.Raw(this.consumeUntilLeftCurlyBracket, !0);
15519
15519
  }
15520
15520
  function JE() {
@@ -15525,10 +15525,10 @@ const ey = "Rule", ty = "rule", ny = {
15525
15525
  prelude: ["SelectorList", "Raw"],
15526
15526
  block: ["Block"]
15527
15527
  };
15528
- function xc() {
15528
+ function Sc() {
15529
15529
  const e = this.tokenIndex, t = this.tokenStart;
15530
15530
  let n, r;
15531
- return this.parseRulePrelude ? n = this.parseWithFallback(JE, $o) : n = $o.call(this, e), r = this.Block(!0), {
15531
+ return this.parseRulePrelude ? n = this.parseWithFallback(JE, jo) : n = jo.call(this, e), r = this.Block(!0), {
15532
15532
  type: "Rule",
15533
15533
  loc: this.getLocation(t, this.tokenStart),
15534
15534
  prelude: n,
@@ -15542,14 +15542,14 @@ const iy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15542
15542
  __proto__: null,
15543
15543
  generate: ry,
15544
15544
  name: ey,
15545
- parse: xc,
15545
+ parse: Sc,
15546
15546
  structure: ny,
15547
15547
  walkContext: ty
15548
15548
  }, Symbol.toStringTag, { value: "Module" })), sy = "Scope", ay = {
15549
15549
  root: ["SelectorList", "Raw", null],
15550
15550
  limit: ["SelectorList", "Raw", null]
15551
15551
  };
15552
- function Sc() {
15552
+ function Cc() {
15553
15553
  let e = null, t = null;
15554
15554
  this.skipSC();
15555
15555
  const n = this.tokenStart;
@@ -15573,7 +15573,7 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15573
15573
  __proto__: null,
15574
15574
  generate: oy,
15575
15575
  name: sy,
15576
- parse: Sc,
15576
+ parse: Cc,
15577
15577
  structure: ay
15578
15578
  }, Symbol.toStringTag, { value: "Module" })), ly = "Selector", cy = {
15579
15579
  children: [[
@@ -15586,7 +15586,7 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15586
15586
  "Combinator"
15587
15587
  ]]
15588
15588
  };
15589
- function Cc() {
15589
+ function Nc() {
15590
15590
  const e = this.readSequence(this.scope.Selector);
15591
15591
  return this.getFirstListNode(e) === null && this.error("Selector is expected"), {
15592
15592
  type: "Selector",
@@ -15601,7 +15601,7 @@ const hy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15601
15601
  __proto__: null,
15602
15602
  generate: dy,
15603
15603
  name: ly,
15604
- parse: Cc,
15604
+ parse: Nc,
15605
15605
  structure: cy
15606
15606
  }, Symbol.toStringTag, { value: "Module" })), fy = "SelectorList", py = "selector", my = {
15607
15607
  children: [[
@@ -15609,7 +15609,7 @@ const hy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15609
15609
  "Raw"
15610
15610
  ]]
15611
15611
  };
15612
- function Nc() {
15612
+ function Ic() {
15613
15613
  const e = this.createList();
15614
15614
  for (; !this.eof; ) {
15615
15615
  if (e.push(this.Selector()), this.tokenType === rt) {
@@ -15631,12 +15631,12 @@ const by = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15631
15631
  __proto__: null,
15632
15632
  generate: gy,
15633
15633
  name: fy,
15634
- parse: Nc,
15634
+ parse: Ic,
15635
15635
  structure: my,
15636
15636
  walkContext: py
15637
- }, Symbol.toStringTag, { value: "Module" })), xs = 92, Ic = 34, Ey = 39;
15638
- function vc(e) {
15639
- const t = e.length, n = e.charCodeAt(0), r = n === Ic || n === Ey ? 1 : 0, i = r === 1 && t > 1 && e.charCodeAt(t - 1) === n ? t - 2 : t - 1;
15637
+ }, Symbol.toStringTag, { value: "Module" })), xs = 92, vc = 34, Ey = 39;
15638
+ function Oc(e) {
15639
+ const t = e.length, n = e.charCodeAt(0), r = n === vc || n === Ey ? 1 : 0, i = r === 1 && t > 1 && e.charCodeAt(t - 1) === n ? t - 2 : t - 1;
15640
15640
  let s = "";
15641
15641
  for (let o = r; o <= i; o++) {
15642
15642
  let a = e.charCodeAt(o);
@@ -15647,7 +15647,7 @@ function vc(e) {
15647
15647
  }
15648
15648
  if (a = e.charCodeAt(++o), Ct(xs, a)) {
15649
15649
  const u = o - 1, c = En(e, u);
15650
- o = c - 1, s += ml(e.substring(u + 1, c));
15650
+ o = c - 1, s += gl(e.substring(u + 1, c));
15651
15651
  } else
15652
15652
  a === 13 && e.charCodeAt(o + 1) === 10 && o++;
15653
15653
  } else
@@ -15656,7 +15656,7 @@ function vc(e) {
15656
15656
  return s;
15657
15657
  }
15658
15658
  function yy(e, t) {
15659
- const r = Ic;
15659
+ const r = vc;
15660
15660
  let i = "", s = !1;
15661
15661
  for (let o = 0; o < e.length; o++) {
15662
15662
  const a = e.charCodeAt(o);
@@ -15675,11 +15675,11 @@ function yy(e, t) {
15675
15675
  const Ty = "String", _y = {
15676
15676
  value: String
15677
15677
  };
15678
- function Oc() {
15678
+ function Lc() {
15679
15679
  return {
15680
15680
  type: "String",
15681
15681
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
15682
- value: vc(this.consume(Tt))
15682
+ value: Oc(this.consume(Tt))
15683
15683
  };
15684
15684
  }
15685
15685
  function ky(e) {
@@ -15689,10 +15689,10 @@ const wy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15689
15689
  __proto__: null,
15690
15690
  generate: ky,
15691
15691
  name: Ty,
15692
- parse: Oc,
15692
+ parse: Lc,
15693
15693
  structure: _y
15694
15694
  }, Symbol.toStringTag, { value: "Module" })), Ay = 33;
15695
- function jo() {
15695
+ function qo() {
15696
15696
  return this.Raw(null, !1);
15697
15697
  }
15698
15698
  const xy = "StyleSheet", Sy = "stylesheet", Cy = {
@@ -15705,7 +15705,7 @@ const xy = "StyleSheet", Sy = "stylesheet", Cy = {
15705
15705
  "Raw"
15706
15706
  ]]
15707
15707
  };
15708
- function Lc() {
15708
+ function Rc() {
15709
15709
  const e = this.tokenStart, t = this.createList();
15710
15710
  let n;
15711
15711
  for (; !this.eof; ) {
@@ -15730,11 +15730,11 @@ function Lc() {
15730
15730
  // §2.2 Error handling
15731
15731
  // At the "top level" of a stylesheet, an <at-keyword-token> starts an at-rule.
15732
15732
  case Me:
15733
- n = this.parseWithFallback(this.Atrule, jo);
15733
+ n = this.parseWithFallback(this.Atrule, qo);
15734
15734
  break;
15735
15735
  // Anything else starts a qualified rule ...
15736
15736
  default:
15737
- n = this.parseWithFallback(this.Rule, jo);
15737
+ n = this.parseWithFallback(this.Rule, qo);
15738
15738
  }
15739
15739
  t.push(n);
15740
15740
  }
@@ -15751,13 +15751,13 @@ const Iy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15751
15751
  __proto__: null,
15752
15752
  generate: Ny,
15753
15753
  name: xy,
15754
- parse: Lc,
15754
+ parse: Rc,
15755
15755
  structure: Cy,
15756
15756
  walkContext: Sy
15757
15757
  }, Symbol.toStringTag, { value: "Module" })), vy = "SupportsDeclaration", Oy = {
15758
15758
  declaration: "Declaration"
15759
15759
  };
15760
- function Rc() {
15760
+ function Pc() {
15761
15761
  const e = this.tokenStart;
15762
15762
  this.eat(Te), this.skipSC();
15763
15763
  const t = this.Declaration();
@@ -15774,18 +15774,18 @@ const Ry = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15774
15774
  __proto__: null,
15775
15775
  generate: Ly,
15776
15776
  name: vy,
15777
- parse: Rc,
15777
+ parse: Pc,
15778
15778
  structure: Oy
15779
- }, Symbol.toStringTag, { value: "Module" })), Py = 42, qo = 124;
15779
+ }, Symbol.toStringTag, { value: "Module" })), Py = 42, Yo = 124;
15780
15780
  function Pi() {
15781
15781
  this.tokenType !== ne && this.isDelim(Py) === !1 && this.error("Identifier or asterisk is expected"), this.next();
15782
15782
  }
15783
15783
  const Dy = "TypeSelector", My = {
15784
15784
  name: String
15785
15785
  };
15786
- function Pc() {
15786
+ function Dc() {
15787
15787
  const e = this.tokenStart;
15788
- return this.isDelim(qo) ? (this.next(), Pi.call(this)) : (Pi.call(this), this.isDelim(qo) && (this.next(), Pi.call(this))), {
15788
+ return this.isDelim(Yo) ? (this.next(), Pi.call(this)) : (Pi.call(this), this.isDelim(Yo) && (this.next(), Pi.call(this))), {
15789
15789
  type: "TypeSelector",
15790
15790
  loc: this.getLocation(e, this.tokenStart),
15791
15791
  name: this.substrToCursor(e)
@@ -15798,14 +15798,14 @@ const Fy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15798
15798
  __proto__: null,
15799
15799
  generate: By,
15800
15800
  name: Dy,
15801
- parse: Pc,
15801
+ parse: Dc,
15802
15802
  structure: My
15803
- }, Symbol.toStringTag, { value: "Module" })), Dc = 43, Mc = 45, Ss = 63;
15803
+ }, Symbol.toStringTag, { value: "Module" })), Mc = 43, Bc = 45, Ss = 63;
15804
15804
  function Pn(e, t) {
15805
15805
  let n = 0;
15806
15806
  for (let r = this.tokenStart + e; r < this.tokenEnd; r++) {
15807
15807
  const i = this.charCodeAt(r);
15808
- if (i === Mc && t && n !== 0)
15808
+ if (i === Bc && t && n !== 0)
15809
15809
  return Pn.call(this, e + n + 1, !1), -1;
15810
15810
  qt(i) || this.error(
15811
15811
  t && n !== 0 ? "Hyphen minus" + (n < 6 ? " or hex digit" : "") + " is expected" : n < 6 ? "Hex digit is expected" : "Unexpected input",
@@ -15820,7 +15820,7 @@ function mr(e) {
15820
15820
  ++t > e && this.error("Too many question marks"), this.next();
15821
15821
  }
15822
15822
  function Uy(e) {
15823
- this.charCodeAt(this.tokenStart) !== e && this.error((e === Dc ? "Plus sign" : "Hyphen minus") + " is expected");
15823
+ this.charCodeAt(this.tokenStart) !== e && this.error((e === Mc ? "Plus sign" : "Hyphen minus") + " is expected");
15824
15824
  }
15825
15825
  function Hy() {
15826
15826
  let e = 0;
@@ -15831,7 +15831,7 @@ function Hy() {
15831
15831
  break;
15832
15832
  }
15833
15833
  if (this.tokenType === me || this.tokenType === he) {
15834
- Uy.call(this, Mc), Pn.call(this, 1, !1);
15834
+ Uy.call(this, Bc), Pn.call(this, 1, !1);
15835
15835
  break;
15836
15836
  }
15837
15837
  break;
@@ -15839,7 +15839,7 @@ function Hy() {
15839
15839
  e = Pn.call(this, 1, !0), e > 0 && mr.call(this, 6 - e);
15840
15840
  break;
15841
15841
  default:
15842
- if (this.eatDelim(Dc), this.tokenType === ne) {
15842
+ if (this.eatDelim(Mc), this.tokenType === ne) {
15843
15843
  e = Pn.call(this, 0, !0), e > 0 && mr.call(this, 6 - e);
15844
15844
  break;
15845
15845
  }
@@ -15853,7 +15853,7 @@ function Hy() {
15853
15853
  const zy = "UnicodeRange", $y = {
15854
15854
  value: String
15855
15855
  };
15856
- function Bc() {
15856
+ function Fc() {
15857
15857
  const e = this.tokenStart;
15858
15858
  return this.eatIdent("u"), Hy.call(this), {
15859
15859
  type: "UnicodeRange",
@@ -15868,12 +15868,12 @@ const qy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15868
15868
  __proto__: null,
15869
15869
  generate: jy,
15870
15870
  name: zy,
15871
- parse: Bc,
15871
+ parse: Fc,
15872
15872
  structure: $y
15873
- }, Symbol.toStringTag, { value: "Module" })), Yy = 32, Cs = 92, Wy = 34, Gy = 39, Vy = 40, Fc = 41;
15873
+ }, Symbol.toStringTag, { value: "Module" })), Yy = 32, Cs = 92, Wy = 34, Gy = 39, Vy = 40, Uc = 41;
15874
15874
  function Ky(e) {
15875
15875
  const t = e.length;
15876
- let n = 4, r = e.charCodeAt(t - 1) === Fc ? t - 2 : t - 1, i = "";
15876
+ let n = 4, r = e.charCodeAt(t - 1) === Uc ? t - 2 : t - 1, i = "";
15877
15877
  for (; n < r && Qt(e.charCodeAt(n)); )
15878
15878
  n++;
15879
15879
  for (; n < r && Qt(e.charCodeAt(r)); )
@@ -15887,7 +15887,7 @@ function Ky(e) {
15887
15887
  }
15888
15888
  if (o = e.charCodeAt(++s), Ct(Cs, o)) {
15889
15889
  const a = s - 1, u = En(e, a);
15890
- s = u - 1, i += ml(e.substring(a + 1, u));
15890
+ s = u - 1, i += gl(e.substring(a + 1, u));
15891
15891
  } else
15892
15892
  o === 13 && e.charCodeAt(s + 1) === 10 && s++;
15893
15893
  } else
@@ -15907,14 +15907,14 @@ function Xy(e) {
15907
15907
  t += "\\" + i.toString(16), n = !0;
15908
15908
  continue;
15909
15909
  }
15910
- i === Yy || i === Cs || i === Wy || i === Gy || i === Vy || i === Fc ? (t += "\\" + e.charAt(r), n = !1) : (n && qt(i) && (t += " "), t += e.charAt(r), n = !1);
15910
+ i === Yy || i === Cs || i === Wy || i === Gy || i === Vy || i === Uc ? (t += "\\" + e.charAt(r), n = !1) : (n && qt(i) && (t += " "), t += e.charAt(r), n = !1);
15911
15911
  }
15912
15912
  return "url(" + t + ")";
15913
15913
  }
15914
15914
  const Qy = "Url", Zy = {
15915
15915
  value: String
15916
15916
  };
15917
- function Uc() {
15917
+ function Hc() {
15918
15918
  const e = this.tokenStart;
15919
15919
  let t;
15920
15920
  switch (this.tokenType) {
@@ -15922,7 +15922,7 @@ function Uc() {
15922
15922
  t = Ky(this.consume(Ge));
15923
15923
  break;
15924
15924
  case fe:
15925
- this.cmpStr(this.tokenStart, this.tokenEnd, "url(") || this.error("Function name must be `url`"), this.eat(fe), this.skipSC(), t = vc(this.consume(Tt)), this.skipSC(), this.eof || this.eat(de);
15925
+ this.cmpStr(this.tokenStart, this.tokenEnd, "url(") || this.error("Function name must be `url`"), this.eat(fe), this.skipSC(), t = Oc(this.consume(Tt)), this.skipSC(), this.eof || this.eat(de);
15926
15926
  break;
15927
15927
  default:
15928
15928
  this.error("Url or Function is expected");
@@ -15940,12 +15940,12 @@ const eT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15940
15940
  __proto__: null,
15941
15941
  generate: Jy,
15942
15942
  name: Qy,
15943
- parse: Uc,
15943
+ parse: Hc,
15944
15944
  structure: Zy
15945
15945
  }, Symbol.toStringTag, { value: "Module" })), tT = "Value", nT = {
15946
15946
  children: [[]]
15947
15947
  };
15948
- function Hc() {
15948
+ function zc() {
15949
15949
  const e = this.tokenStart, t = this.readSequence(this.scope.Value);
15950
15950
  return {
15951
15951
  type: "Value",
@@ -15960,7 +15960,7 @@ const iT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15960
15960
  __proto__: null,
15961
15961
  generate: rT,
15962
15962
  name: tT,
15963
- parse: Hc,
15963
+ parse: zc,
15964
15964
  structure: nT
15965
15965
  }, Symbol.toStringTag, { value: "Module" })), sT = Object.freeze({
15966
15966
  type: "WhiteSpace",
@@ -15969,7 +15969,7 @@ const iT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15969
15969
  }), aT = "WhiteSpace", oT = {
15970
15970
  value: String
15971
15971
  };
15972
- function zc() {
15972
+ function $c() {
15973
15973
  return this.eat(ve), sT;
15974
15974
  }
15975
15975
  function uT(e) {
@@ -15979,9 +15979,9 @@ const lT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15979
15979
  __proto__: null,
15980
15980
  generate: uT,
15981
15981
  name: aT,
15982
- parse: zc,
15982
+ parse: $c,
15983
15983
  structure: oT
15984
- }, Symbol.toStringTag, { value: "Module" })), $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15984
+ }, Symbol.toStringTag, { value: "Module" })), jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15985
15985
  __proto__: null,
15986
15986
  AnPlusB: Ng,
15987
15987
  Atrule: Pg,
@@ -16034,11 +16034,11 @@ const lT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16034
16034
  WhiteSpace: lT
16035
16035
  }, Symbol.toStringTag, { value: "Module" })), cT = {
16036
16036
  generic: !0,
16037
- cssWideKeywords: Ys,
16037
+ cssWideKeywords: Ws,
16038
16038
  ...wg,
16039
- node: $c
16040
- }, dT = 35, hT = 42, Yo = 43, fT = 45, pT = 47, mT = 117;
16041
- function jc(e) {
16039
+ node: jc
16040
+ }, dT = 35, hT = 42, Wo = 43, fT = 45, pT = 47, mT = 117;
16041
+ function qc(e) {
16042
16042
  switch (this.tokenType) {
16043
16043
  case Ce:
16044
16044
  return this.Hash();
@@ -16061,10 +16061,10 @@ function jc(e) {
16061
16061
  case Ge:
16062
16062
  return this.Url();
16063
16063
  case ne:
16064
- return this.cmpChar(this.tokenStart, mT) && this.cmpChar(this.tokenStart + 1, Yo) ? this.UnicodeRange() : this.Identifier();
16064
+ return this.cmpChar(this.tokenStart, mT) && this.cmpChar(this.tokenStart + 1, Wo) ? this.UnicodeRange() : this.Identifier();
16065
16065
  case ge: {
16066
16066
  const t = this.charCodeAt(this.tokenStart);
16067
- if (t === pT || t === hT || t === Yo || t === fT)
16067
+ if (t === pT || t === hT || t === Wo || t === fT)
16068
16068
  return this.Operator();
16069
16069
  t === dT && this.error("Hex or identifier is expected", this.tokenStart + 1);
16070
16070
  break;
@@ -16072,8 +16072,8 @@ function jc(e) {
16072
16072
  }
16073
16073
  }
16074
16074
  const gT = {
16075
- getNode: jc
16076
- }, bT = 35, ET = 38, yT = 42, TT = 43, _T = 47, Wo = 46, kT = 62, wT = 124, AT = 126;
16075
+ getNode: qc
16076
+ }, bT = 35, ET = 38, yT = 42, TT = 43, _T = 47, Go = 46, kT = 62, wT = 124, AT = 126;
16077
16077
  function xT(e, t) {
16078
16078
  t.last !== null && t.last.type !== "Combinator" && e !== null && e.type !== "Combinator" && t.push({
16079
16079
  // FIXME: this.Combinator() should be used instead
@@ -16096,7 +16096,7 @@ function ST() {
16096
16096
  case Ie:
16097
16097
  return this.Percentage();
16098
16098
  case me:
16099
- this.charCodeAt(this.tokenStart) === Wo && this.error("Identifier is expected", this.tokenStart + 1);
16099
+ this.charCodeAt(this.tokenStart) === Go && this.error("Identifier is expected", this.tokenStart + 1);
16100
16100
  break;
16101
16101
  case ge: {
16102
16102
  switch (this.charCodeAt(this.tokenStart)) {
@@ -16105,7 +16105,7 @@ function ST() {
16105
16105
  case AT:
16106
16106
  case _T:
16107
16107
  return this.Combinator();
16108
- case Wo:
16108
+ case Go:
16109
16109
  return this.ClassSelector();
16110
16110
  case yT:
16111
16111
  case wT:
@@ -16148,13 +16148,13 @@ function IT() {
16148
16148
  }
16149
16149
  return e;
16150
16150
  }
16151
- function Go(e) {
16151
+ function Vo(e) {
16152
16152
  return e !== null && e.type === "Operator" && (e.value[e.value.length - 1] === "-" || e.value[e.value.length - 1] === "+");
16153
16153
  }
16154
16154
  const vT = {
16155
- getNode: jc,
16155
+ getNode: qc,
16156
16156
  onWhiteSpace(e, t) {
16157
- Go(e) && (e.value = " " + e.value), Go(t.last) && (t.last.value += " ");
16157
+ Vo(e) && (e.value = " " + e.value), Vo(t.last) && (t.last.value += " ");
16158
16158
  },
16159
16159
  expression: NT,
16160
16160
  var: IT
@@ -16197,7 +16197,7 @@ function Di(e, t) {
16197
16197
  t || (() => this.Raw(null, !0))
16198
16198
  );
16199
16199
  }
16200
- const Vo = {
16200
+ const Ko = {
16201
16201
  layer() {
16202
16202
  this.skipSC();
16203
16203
  const e = this.createList(), t = Di.call(this, this.Layer);
@@ -16227,7 +16227,7 @@ const Vo = {
16227
16227
  default:
16228
16228
  this.error("String or url() is expected");
16229
16229
  }
16230
- return this.skipSC(), this.tokenType === ne && this.cmpStr(this.tokenStart, this.tokenEnd, "layer") ? e.push(this.Identifier()) : this.tokenType === fe && this.cmpStr(this.tokenStart, this.tokenEnd, "layer(") && e.push(this.Function(null, Vo)), this.skipSC(), this.tokenType === fe && this.cmpStr(this.tokenStart, this.tokenEnd, "supports(") && e.push(this.Function(null, Vo)), (this.lookupNonWSType(0) === ne || this.lookupNonWSType(0) === Te) && e.push(this.MediaQueryList()), e;
16230
+ return this.skipSC(), this.tokenType === ne && this.cmpStr(this.tokenStart, this.tokenEnd, "layer") ? e.push(this.Identifier()) : this.tokenType === fe && this.cmpStr(this.tokenStart, this.tokenEnd, "layer(") && e.push(this.Function(null, Ko)), this.skipSC(), this.tokenType === fe && this.cmpStr(this.tokenStart, this.tokenEnd, "supports(") && e.push(this.Function(null, Ko)), (this.lookupNonWSType(0) === ne || this.lookupNonWSType(0) === Te) && e.push(this.MediaQueryList()), e;
16231
16231
  },
16232
16232
  block: null
16233
16233
  }
@@ -16384,55 +16384,55 @@ const Wt = {
16384
16384
  "host-context": Mi
16385
16385
  }, VT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16386
16386
  __proto__: null,
16387
- AnPlusB: Ul,
16388
- Atrule: Hl,
16389
- AtrulePrelude: zl,
16390
- AttributeSelector: jl,
16391
- Block: Yl,
16392
- Brackets: Wl,
16393
- CDC: Gl,
16394
- CDO: Vl,
16395
- ClassSelector: Kl,
16396
- Combinator: Xl,
16397
- Comment: Ql,
16398
- Condition: Zl,
16399
- Declaration: ec,
16400
- DeclarationList: tc,
16401
- Dimension: nc,
16402
- Feature: rc,
16403
- FeatureFunction: ic,
16404
- FeatureRange: sc,
16405
- Function: ac,
16406
- GeneralEnclosed: oc,
16407
- Hash: uc,
16408
- IdSelector: cc,
16409
- Identifier: lc,
16410
- Layer: dc,
16411
- LayerList: hc,
16412
- MediaQuery: fc,
16413
- MediaQueryList: pc,
16414
- NestingSelector: mc,
16415
- Nth: gc,
16416
- Number: bc,
16417
- Operator: Ec,
16418
- Parentheses: yc,
16419
- Percentage: Tc,
16420
- PseudoClassSelector: _c,
16421
- PseudoElementSelector: kc,
16422
- Ratio: wc,
16423
- Raw: Ac,
16424
- Rule: xc,
16425
- Scope: Sc,
16426
- Selector: Cc,
16427
- SelectorList: Nc,
16428
- String: Oc,
16429
- StyleSheet: Lc,
16430
- SupportsDeclaration: Rc,
16431
- TypeSelector: Pc,
16432
- UnicodeRange: Bc,
16433
- Url: Uc,
16434
- Value: Hc,
16435
- WhiteSpace: zc
16387
+ AnPlusB: Hl,
16388
+ Atrule: zl,
16389
+ AtrulePrelude: $l,
16390
+ AttributeSelector: ql,
16391
+ Block: Wl,
16392
+ Brackets: Gl,
16393
+ CDC: Vl,
16394
+ CDO: Kl,
16395
+ ClassSelector: Xl,
16396
+ Combinator: Ql,
16397
+ Comment: Zl,
16398
+ Condition: Jl,
16399
+ Declaration: tc,
16400
+ DeclarationList: nc,
16401
+ Dimension: rc,
16402
+ Feature: ic,
16403
+ FeatureFunction: sc,
16404
+ FeatureRange: ac,
16405
+ Function: oc,
16406
+ GeneralEnclosed: uc,
16407
+ Hash: lc,
16408
+ IdSelector: dc,
16409
+ Identifier: cc,
16410
+ Layer: hc,
16411
+ LayerList: fc,
16412
+ MediaQuery: pc,
16413
+ MediaQueryList: mc,
16414
+ NestingSelector: gc,
16415
+ Nth: bc,
16416
+ Number: Ec,
16417
+ Operator: yc,
16418
+ Parentheses: Tc,
16419
+ Percentage: _c,
16420
+ PseudoClassSelector: kc,
16421
+ PseudoElementSelector: wc,
16422
+ Ratio: Ac,
16423
+ Raw: xc,
16424
+ Rule: Sc,
16425
+ Scope: Cc,
16426
+ Selector: Nc,
16427
+ SelectorList: Ic,
16428
+ String: Lc,
16429
+ StyleSheet: Rc,
16430
+ SupportsDeclaration: Pc,
16431
+ TypeSelector: Dc,
16432
+ UnicodeRange: Fc,
16433
+ Url: Hc,
16434
+ Value: zc,
16435
+ WhiteSpace: $c
16436
16436
  }, Symbol.toStringTag, { value: "Module" })), KT = {
16437
16437
  parseContext: {
16438
16438
  default: "StyleSheet",
@@ -16473,7 +16473,7 @@ const Wt = {
16473
16473
  pseudo: GT,
16474
16474
  node: VT
16475
16475
  }, XT = {
16476
- node: $c
16476
+ node: jc
16477
16477
  }, QT = kg({
16478
16478
  ...cT,
16479
16479
  ...KT,
@@ -16493,9 +16493,9 @@ const Wt = {
16493
16493
  fork: ew
16494
16494
  } = QT;
16495
16495
  function tw(e) {
16496
- return qc(e).classRules;
16496
+ return Yc(e).classRules;
16497
16497
  }
16498
- function qc(e) {
16498
+ function Yc(e) {
16499
16499
  const t = {}, n = {}, r = ZT(e, { parseCustomProperty: !0 });
16500
16500
  return zr(r, {
16501
16501
  visit: "Rule",
@@ -16536,7 +16536,7 @@ function e2(e) {
16536
16536
  function nw(e, t) {
16537
16537
  const n = Jp(e, { fragment: !0 }), i = { type: "root", children: Rt(n.children, "block") };
16538
16538
  if (t != null && t.css) {
16539
- const s = qc(t.css), o = Object.keys(s.classRules).length > 0, a = Object.keys(s.elementRules).length > 0;
16539
+ const s = Yc(t.css), o = Object.keys(s.classRules).length > 0, a = Object.keys(s.elementRules).length > 0;
16540
16540
  (o || a) && (i.data = { ...i.data, css: s });
16541
16541
  }
16542
16542
  return i;
@@ -16568,11 +16568,11 @@ function t2(e, t) {
16568
16568
  case "blockquote":
16569
16569
  return br("blockquote", e);
16570
16570
  case "ul":
16571
- return Ko(e, !1);
16571
+ return Xo(e, !1);
16572
16572
  case "ol":
16573
- return Ko(e, !0);
16573
+ return Xo(e, !0);
16574
16574
  case "li":
16575
- return Yc(e);
16575
+ return Wc(e);
16576
16576
  case "pre":
16577
16577
  return r2(e);
16578
16578
  case "table":
@@ -16582,10 +16582,10 @@ function t2(e, t) {
16582
16582
  case "tfoot":
16583
16583
  return Rt(e.children, "block");
16584
16584
  case "tr":
16585
- return Wc(e);
16585
+ return Gc(e);
16586
16586
  case "td":
16587
16587
  case "th":
16588
- return Gc(e);
16588
+ return Vc(e);
16589
16589
  case "hr":
16590
16590
  return { type: "thematicBreak" };
16591
16591
  case "br":
@@ -16620,28 +16620,28 @@ function t2(e, t) {
16620
16620
  }
16621
16621
  function br(e, t) {
16622
16622
  const r = e === "paragraph" ? "inline" : "block", i = Rt(t.children, r), s = { type: e, children: i };
16623
- return tn(t, s), ia(t, s), s;
16623
+ return tn(t, s), sa(t, s), s;
16624
16624
  }
16625
16625
  function n2(e, t) {
16626
16626
  const n = Rt(e.children, "inline"), r = { type: "heading", depth: t, children: n };
16627
- return tn(e, r), ia(e, r), r;
16627
+ return tn(e, r), sa(e, r), r;
16628
16628
  }
16629
- function Ko(e, t) {
16629
+ function Xo(e, t) {
16630
16630
  var i, s, o;
16631
16631
  const n = [];
16632
16632
  for (const a of e.children)
16633
- a.type === "element" && a.tagName.toLowerCase() === "li" && n.push(Yc(a));
16633
+ a.type === "element" && a.tagName.toLowerCase() === "li" && n.push(Wc(a));
16634
16634
  const r = { type: "list", ordered: t, children: n };
16635
- return t && ((i = e.properties) == null ? void 0 : i.start) !== void 0 && (r.start = Number(e.properties.start)), (s = e.properties) != null && s.type && (r.data = { ...r.data, html: { ...((o = r.data) == null ? void 0 : o.html) ?? {}, type: String(e.properties.type) } }), tn(e, r), ia(e, r), r;
16635
+ return t && ((i = e.properties) == null ? void 0 : i.start) !== void 0 && (r.start = Number(e.properties.start)), (s = e.properties) != null && s.type && (r.data = { ...r.data, html: { ...((o = r.data) == null ? void 0 : o.html) ?? {}, type: String(e.properties.type) } }), tn(e, r), sa(e, r), r;
16636
16636
  }
16637
- function Yc(e) {
16637
+ function Wc(e) {
16638
16638
  const t = Rt(e.children, "block"), n = [];
16639
16639
  let r = [];
16640
16640
  const i = () => {
16641
16641
  r.length > 0 && (n.push({ type: "paragraph", children: r }), r = []);
16642
16642
  };
16643
16643
  for (const o of t)
16644
- Vc(o.type) ? r.push(o) : (i(), n.push(o));
16644
+ Kc(o.type) ? r.push(o) : (i(), n.push(o));
16645
16645
  i();
16646
16646
  const s = { type: "listItem", children: n };
16647
16647
  return tn(e, s), s;
@@ -16672,25 +16672,25 @@ function i2(e) {
16672
16672
  if (s.type !== "element")
16673
16673
  continue;
16674
16674
  const o = s.tagName.toLowerCase();
16675
- o === "tr" ? t.push(Wc(s)) : (o === "thead" || o === "tbody" || o === "tfoot") && n(s.children);
16675
+ o === "tr" ? t.push(Gc(s)) : (o === "thead" || o === "tbody" || o === "tfoot") && n(s.children);
16676
16676
  }
16677
16677
  }
16678
16678
  n(e.children), t.length > 0 && !t[0].isHeader && e.children.find((s) => s.type === "element" && s.tagName.toLowerCase() === "thead") && (t[0].isHeader = !0);
16679
16679
  const r = { type: "table", children: t };
16680
16680
  return tn(e, r), r;
16681
16681
  }
16682
- function Wc(e) {
16682
+ function Gc(e) {
16683
16683
  const t = [];
16684
16684
  let n = !0;
16685
16685
  for (const i of e.children)
16686
16686
  if (i.type === "element") {
16687
16687
  const s = i.tagName.toLowerCase();
16688
- (s === "td" || s === "th") && (t.push(Gc(i)), s !== "th" && (n = !1));
16688
+ (s === "td" || s === "th") && (t.push(Vc(i)), s !== "th" && (n = !1));
16689
16689
  }
16690
16690
  const r = { type: "tableRow", children: t };
16691
16691
  return n && (r.isHeader = !0), r;
16692
16692
  }
16693
- function Gc(e, t) {
16693
+ function Vc(e, t) {
16694
16694
  var a, u;
16695
16695
  const n = Rt(e.children, "block"), r = [];
16696
16696
  let i = [];
@@ -16698,7 +16698,7 @@ function Gc(e, t) {
16698
16698
  i.length > 0 && (r.push({ type: "paragraph", children: i }), i = []);
16699
16699
  };
16700
16700
  for (const c of n)
16701
- Vc(c.type) ? i.push(c) : (s(), r.push(c));
16701
+ Kc(c.type) ? i.push(c) : (s(), r.push(c));
16702
16702
  s();
16703
16703
  const o = { type: "tableCell", children: r };
16704
16704
  return (a = e.properties) != null && a.colSpan && Number(e.properties.colSpan) > 1 && (o.colspan = Number(e.properties.colSpan)), (u = e.properties) != null && u.rowSpan && Number(e.properties.rowSpan) > 1 && (o.rowspan = Number(e.properties.rowSpan)), o;
@@ -16753,7 +16753,7 @@ function $r(e) {
16753
16753
  n.type === "text" ? t += n.value : n.type === "element" && (t += $r(n));
16754
16754
  return t;
16755
16755
  }
16756
- function Vc(e) {
16756
+ function Kc(e) {
16757
16757
  return ["text", "break", "image", "footnoteReference", "inlineCode", "inlineMath"].includes(e);
16758
16758
  }
16759
16759
  function tn(e, t) {
@@ -16763,7 +16763,7 @@ function tn(e, t) {
16763
16763
  r.length > 0 && (t.classes = r);
16764
16764
  }
16765
16765
  }
16766
- function ia(e, t) {
16766
+ function sa(e, t) {
16767
16767
  const n = {};
16768
16768
  if (e.properties) {
16769
16769
  for (const [r, i] of Object.entries(e.properties))
@@ -16792,15 +16792,15 @@ const l2 = [
16792
16792
  "source",
16793
16793
  "track",
16794
16794
  "wbr"
16795
- ], Xo = {}.hasOwnProperty;
16795
+ ], Qo = {}.hasOwnProperty;
16796
16796
  function c2(e, t) {
16797
16797
  const n = t || {};
16798
16798
  function r(i, ...s) {
16799
16799
  let o = r.invalid;
16800
16800
  const a = r.handlers;
16801
- if (i && Xo.call(i, e)) {
16801
+ if (i && Qo.call(i, e)) {
16802
16802
  const u = String(i[e]);
16803
- o = Xo.call(a, u) ? a[u] : r.unknown;
16803
+ o = Qo.call(a, u) ? a[u] : r.unknown;
16804
16804
  }
16805
16805
  if (o)
16806
16806
  return o.call(this, i, ...s);
@@ -16810,7 +16810,7 @@ function c2(e, t) {
16810
16810
  const d2 = /["&'<>`]/g, h2 = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, f2 = (
16811
16811
  // eslint-disable-next-line no-control-regex, unicorn/no-hex-escape
16812
16812
  /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g
16813
- ), p2 = /[|\\{}()[\]^$+*?.]/g, Qo = /* @__PURE__ */ new WeakMap();
16813
+ ), p2 = /[|\\{}()[\]^$+*?.]/g, Zo = /* @__PURE__ */ new WeakMap();
16814
16814
  function m2(e, t) {
16815
16815
  if (e = e.replace(
16816
16816
  t.subset ? g2(t.subset) : d2,
@@ -16834,8 +16834,8 @@ function m2(e, t) {
16834
16834
  }
16835
16835
  }
16836
16836
  function g2(e) {
16837
- let t = Qo.get(e);
16838
- return t || (t = b2(e), Qo.set(e, t)), t;
16837
+ let t = Zo.get(e);
16838
+ return t || (t = b2(e), Zo.set(e, t)), t;
16839
16839
  }
16840
16840
  function b2(e) {
16841
16841
  const t = [];
@@ -17223,14 +17223,14 @@ const k2 = [
17223
17223
  "not",
17224
17224
  "para",
17225
17225
  "times"
17226
- ], Kc = {}.hasOwnProperty, Is = {};
17226
+ ], Xc = {}.hasOwnProperty, Is = {};
17227
17227
  let Er;
17228
17228
  for (Er in Fi)
17229
- Kc.call(Fi, Er) && (Is[Fi[Er]] = Er);
17229
+ Xc.call(Fi, Er) && (Is[Fi[Er]] = Er);
17230
17230
  const A2 = /[^\dA-Za-z]/;
17231
17231
  function x2(e, t, n, r) {
17232
17232
  const i = String.fromCharCode(e);
17233
- if (Kc.call(Is, i)) {
17233
+ if (Xc.call(Is, i)) {
17234
17234
  const s = Is[i], o = "&" + s;
17235
17235
  return n && k2.includes(s) && !w2.includes(s) && (!r || t && t !== 61 && A2.test(String.fromCharCode(t))) ? o : o + ";";
17236
17236
  }
@@ -17272,7 +17272,7 @@ function v2(e, t, n, r) {
17272
17272
  function O2(e, t, n, r) {
17273
17273
  return "<!" + (r.settings.upperDoctype ? "DOCTYPE" : "doctype") + (r.settings.tightDoctype ? "" : " ") + "html>";
17274
17274
  }
17275
- function Zo(e, t) {
17275
+ function Jo(e, t) {
17276
17276
  const n = String(e);
17277
17277
  if (typeof t != "string")
17278
17278
  throw new TypeError("Expected character");
@@ -17282,32 +17282,32 @@ function Zo(e, t) {
17282
17282
  return r;
17283
17283
  }
17284
17284
  const L2 = /[ \t\n\f\r]/g;
17285
- function sa(e) {
17286
- return typeof e == "object" ? e.type === "text" ? Jo(e.value) : !1 : Jo(e);
17285
+ function aa(e) {
17286
+ return typeof e == "object" ? e.type === "text" ? eu(e.value) : !1 : eu(e);
17287
17287
  }
17288
- function Jo(e) {
17288
+ function eu(e) {
17289
17289
  return e.replace(L2, "") === "";
17290
17290
  }
17291
- const Be = Qc(1), Xc = Qc(-1), R2 = [];
17292
- function Qc(e) {
17291
+ const Be = Zc(1), Qc = Zc(-1), R2 = [];
17292
+ function Zc(e) {
17293
17293
  return t;
17294
17294
  function t(n, r, i) {
17295
17295
  const s = n ? n.children : R2;
17296
17296
  let o = (r || 0) + e, a = s[o];
17297
17297
  if (!i)
17298
- for (; a && sa(a); )
17298
+ for (; a && aa(a); )
17299
17299
  o += e, a = s[o];
17300
17300
  return a;
17301
17301
  }
17302
17302
  }
17303
17303
  const P2 = {}.hasOwnProperty;
17304
- function Zc(e) {
17304
+ function Jc(e) {
17305
17305
  return t;
17306
17306
  function t(n, r, i) {
17307
17307
  return P2.call(e, n.tagName) && e[n.tagName](n, r, i);
17308
17308
  }
17309
17309
  }
17310
- const aa = Zc({
17310
+ const oa = Jc({
17311
17311
  body: M2,
17312
17312
  caption: Ui,
17313
17313
  colgroup: Ui,
@@ -17319,18 +17319,18 @@ const aa = Zc({
17319
17319
  optgroup: z2,
17320
17320
  option: $2,
17321
17321
  p: B2,
17322
- rp: eu,
17323
- rt: eu,
17322
+ rp: tu,
17323
+ rt: tu,
17324
17324
  tbody: q2,
17325
- td: tu,
17325
+ td: nu,
17326
17326
  tfoot: Y2,
17327
- th: tu,
17327
+ th: nu,
17328
17328
  thead: j2,
17329
17329
  tr: W2
17330
17330
  });
17331
17331
  function Ui(e, t, n) {
17332
17332
  const r = Be(n, t, !0);
17333
- return !r || r.type !== "comment" && !(r.type === "text" && sa(r.value.charAt(0)));
17333
+ return !r || r.type !== "comment" && !(r.type === "text" && aa(r.value.charAt(0)));
17334
17334
  }
17335
17335
  function D2(e, t, n) {
17336
17336
  const r = Be(n, t);
@@ -17357,7 +17357,7 @@ function H2(e, t, n) {
17357
17357
  const r = Be(n, t);
17358
17358
  return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
17359
17359
  }
17360
- function eu(e, t, n) {
17360
+ function tu(e, t, n) {
17361
17361
  const r = Be(n, t);
17362
17362
  return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
17363
17363
  }
@@ -17384,11 +17384,11 @@ function W2(e, t, n) {
17384
17384
  const r = Be(n, t);
17385
17385
  return !r || r.type === "element" && r.tagName === "tr";
17386
17386
  }
17387
- function tu(e, t, n) {
17387
+ function nu(e, t, n) {
17388
17388
  const r = Be(n, t);
17389
17389
  return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
17390
17390
  }
17391
- const G2 = Zc({
17391
+ const G2 = Jc({
17392
17392
  body: X2,
17393
17393
  colgroup: Q2,
17394
17394
  head: K2,
@@ -17411,15 +17411,15 @@ function K2(e) {
17411
17411
  }
17412
17412
  function X2(e) {
17413
17413
  const t = Be(e, -1, !0);
17414
- return !t || t.type !== "comment" && !(t.type === "text" && sa(t.value.charAt(0))) && !(t.type === "element" && (t.tagName === "meta" || t.tagName === "link" || t.tagName === "script" || t.tagName === "style" || t.tagName === "template"));
17414
+ return !t || t.type !== "comment" && !(t.type === "text" && aa(t.value.charAt(0))) && !(t.type === "element" && (t.tagName === "meta" || t.tagName === "link" || t.tagName === "script" || t.tagName === "style" || t.tagName === "template"));
17415
17415
  }
17416
17416
  function Q2(e, t, n) {
17417
- const r = Xc(n, t), i = Be(e, -1, !0);
17418
- return n && r && r.type === "element" && r.tagName === "colgroup" && aa(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "col");
17417
+ const r = Qc(n, t), i = Be(e, -1, !0);
17418
+ return n && r && r.type === "element" && r.tagName === "colgroup" && oa(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "col");
17419
17419
  }
17420
17420
  function Z2(e, t, n) {
17421
- const r = Xc(n, t), i = Be(e, -1);
17422
- return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && aa(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "tr");
17421
+ const r = Qc(n, t), i = Be(e, -1);
17422
+ return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && oa(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "tr");
17423
17423
  }
17424
17424
  const yr = {
17425
17425
  // See: <https://html.spec.whatwg.org/#attribute-name-state>.
@@ -17460,7 +17460,7 @@ function J2(e, t, n, r) {
17460
17460
  const c = e_(r, e.properties), d = r.all(
17461
17461
  i.space === "html" && e.tagName === "template" ? e.content : e
17462
17462
  );
17463
- return r.schema = i, d && (o = !1), (c || !s || !G2(e, t, n)) && (a.push("<", e.tagName, c ? " " + c : ""), o && (i.space === "svg" || r.settings.closeSelfClosing) && (u = c.charAt(c.length - 1), (!r.settings.tightSelfClosing || u === "/" || u && u !== '"' && u !== "'") && a.push(" "), a.push("/")), a.push(">")), a.push(d), !o && (!s || !aa(e, t, n)) && a.push("</" + e.tagName + ">"), a.join("");
17463
+ return r.schema = i, d && (o = !1), (c || !s || !G2(e, t, n)) && (a.push("<", e.tagName, c ? " " + c : ""), o && (i.space === "svg" || r.settings.closeSelfClosing) && (u = c.charAt(c.length - 1), (!r.settings.tightSelfClosing || u === "/" || u && u !== '"' && u !== "'") && a.push(" "), a.push("/")), a.push(">")), a.push(d), !o && (!s || !oa(e, t, n)) && a.push("</" + e.tagName + ">"), a.join("");
17464
17464
  }
17465
17465
  function e_(e, t) {
17466
17466
  const n = [];
@@ -17479,7 +17479,7 @@ function e_(e, t) {
17479
17479
  return n.join("");
17480
17480
  }
17481
17481
  function t_(e, t, n) {
17482
- const r = Rs(e.schema, t), i = e.settings.allowParseErrors && e.schema.space === "html" ? 0 : 1, s = e.settings.allowDangerousCharacters ? 0 : 1;
17482
+ const r = Ps(e.schema, t), i = e.settings.allowParseErrors && e.schema.space === "html" ? 0 : 1, s = e.settings.allowDangerousCharacters ? 0 : 1;
17483
17483
  let o = e.quote, a;
17484
17484
  if (r.overloadedBoolean && (n === r.attribute || n === "") ? n = !0 : (r.boolean || r.overloadedBoolean) && (typeof n != "string" || n === r.attribute || n === "") && (n = !!n), n == null || n === !1 || typeof n == "number" && Number.isNaN(n))
17485
17485
  return "";
@@ -17498,7 +17498,7 @@ function t_(e, t, n) {
17498
17498
  attribute: !0,
17499
17499
  subset: yr.unquoted[i][s]
17500
17500
  })
17501
- )), a !== n && (e.settings.quoteSmart && Zo(n, o) > Zo(n, e.alternative) && (o = e.alternative), a = o + gn(
17501
+ )), a !== n && (e.settings.quoteSmart && Jo(n, o) > Jo(n, e.alternative) && (o = e.alternative), a = o + gn(
17502
17502
  n,
17503
17503
  Object.assign({}, e.settings.characterReferences, {
17504
17504
  // Always encode without parse errors in non-HTML.
@@ -17508,7 +17508,7 @@ function t_(e, t, n) {
17508
17508
  ) + o), u + (a && "=" + a));
17509
17509
  }
17510
17510
  const n_ = ["<", "&"];
17511
- function Jc(e, t, n, r) {
17511
+ function ed(e, t, n, r) {
17512
17512
  return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : gn(
17513
17513
  e.value,
17514
17514
  Object.assign({}, r.settings.characterReferences, {
@@ -17517,7 +17517,7 @@ function Jc(e, t, n, r) {
17517
17517
  );
17518
17518
  }
17519
17519
  function r_(e, t, n, r) {
17520
- return r.settings.allowDangerousHtml ? e.value : Jc(e, t, n, r);
17520
+ return r.settings.allowDangerousHtml ? e.value : ed(e, t, n, r);
17521
17521
  }
17522
17522
  function i_(e, t, n, r) {
17523
17523
  return r.all(e);
@@ -17525,7 +17525,7 @@ function i_(e, t, n, r) {
17525
17525
  const s_ = c2("type", {
17526
17526
  invalid: a_,
17527
17527
  unknown: o_,
17528
- handlers: { comment: v2, doctype: O2, element: J2, raw: r_, root: i_, text: Jc }
17528
+ handlers: { comment: v2, doctype: O2, element: J2, raw: r_, root: i_, text: ed }
17529
17529
  });
17530
17530
  function a_(e) {
17531
17531
  throw new Error("Expected node, not `" + e + "`");
@@ -17815,9 +17815,9 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
17815
17815
  JSZip uses the library pako released under the MIT license :
17816
17816
  https://github.com/nodeca/pako/blob/main/LICENSE
17817
17817
  */
17818
- var nu;
17818
+ var ru;
17819
17819
  function x_() {
17820
- return nu || (nu = 1, (function(e, t) {
17820
+ return ru || (ru = 1, (function(e, t) {
17821
17821
  (function(n) {
17822
17822
  e.exports = n();
17823
17823
  })(function() {
@@ -19965,15 +19965,15 @@ function x_() {
19965
19965
  for (F.max_code = Ae, K = I.heap_len >> 1; 1 <= K; K--) Re(I, te, K);
19966
19966
  for (z = le; K = I.heap[1], I.heap[1] = I.heap[I.heap_len--], Re(I, te, 1), Q = I.heap[1], I.heap[--I.heap_max] = K, I.heap[--I.heap_max] = Q, te[2 * z] = te[2 * K] + te[2 * Q], I.depth[z] = (I.depth[K] >= I.depth[Q] ? I.depth[K] : I.depth[Q]) + 1, te[2 * K + 1] = te[2 * Q + 1] = z, I.heap[1] = z++, Re(I, te, 1), 2 <= I.heap_len; ) ;
19967
19967
  I.heap[--I.heap_max] = I.heap[1], (function(Ee, ut) {
19968
- var _n, kt, kn, Pe, nr, ii, Nt = ut.dyn_tree, ca = ut.max_code, cd = ut.stat_desc.static_tree, dd = ut.stat_desc.has_stree, hd = ut.stat_desc.extra_bits, da = ut.stat_desc.extra_base, wn = ut.stat_desc.max_length, rr = 0;
19968
+ var _n, kt, kn, Pe, nr, ii, Nt = ut.dyn_tree, da = ut.max_code, cd = ut.stat_desc.static_tree, dd = ut.stat_desc.has_stree, hd = ut.stat_desc.extra_bits, ha = ut.stat_desc.extra_base, wn = ut.stat_desc.max_length, rr = 0;
19969
19969
  for (Pe = 0; Pe <= _; Pe++) Ee.bl_count[Pe] = 0;
19970
- for (Nt[2 * Ee.heap[Ee.heap_max] + 1] = 0, _n = Ee.heap_max + 1; _n < g; _n++) wn < (Pe = Nt[2 * Nt[2 * (kt = Ee.heap[_n]) + 1] + 1] + 1) && (Pe = wn, rr++), Nt[2 * kt + 1] = Pe, ca < kt || (Ee.bl_count[Pe]++, nr = 0, da <= kt && (nr = hd[kt - da]), ii = Nt[2 * kt], Ee.opt_len += ii * (Pe + nr), dd && (Ee.static_len += ii * (cd[2 * kt + 1] + nr)));
19970
+ for (Nt[2 * Ee.heap[Ee.heap_max] + 1] = 0, _n = Ee.heap_max + 1; _n < g; _n++) wn < (Pe = Nt[2 * Nt[2 * (kt = Ee.heap[_n]) + 1] + 1] + 1) && (Pe = wn, rr++), Nt[2 * kt + 1] = Pe, da < kt || (Ee.bl_count[Pe]++, nr = 0, ha <= kt && (nr = hd[kt - ha]), ii = Nt[2 * kt], Ee.opt_len += ii * (Pe + nr), dd && (Ee.static_len += ii * (cd[2 * kt + 1] + nr)));
19971
19971
  if (rr !== 0) {
19972
19972
  do {
19973
19973
  for (Pe = wn - 1; Ee.bl_count[Pe] === 0; ) Pe--;
19974
19974
  Ee.bl_count[Pe]--, Ee.bl_count[Pe + 1] += 2, Ee.bl_count[wn]--, rr -= 2;
19975
19975
  } while (0 < rr);
19976
- for (Pe = wn; Pe !== 0; Pe--) for (kt = Ee.bl_count[Pe]; kt !== 0; ) ca < (kn = Ee.heap[--_n]) || (Nt[2 * kn + 1] !== Pe && (Ee.opt_len += (Pe - Nt[2 * kn + 1]) * Nt[2 * kn], Nt[2 * kn + 1] = Pe), kt--);
19976
+ for (Pe = wn; Pe !== 0; Pe--) for (kt = Ee.bl_count[Pe]; kt !== 0; ) da < (kn = Ee.heap[--_n]) || (Nt[2 * kn + 1] !== Pe && (Ee.opt_len += (Pe - Nt[2 * kn + 1]) * Nt[2 * kn], Nt[2 * kn + 1] = Pe), kt--);
19977
19977
  }
19978
19978
  })(I, F), Ye(te, Ae, I.bl_count);
19979
19979
  }
@@ -20119,9 +20119,9 @@ function x_() {
20119
20119
  })(Hi)), Hi.exports;
20120
20120
  }
20121
20121
  var S_ = x_();
20122
- const ed = /* @__PURE__ */ w0(S_);
20122
+ const td = /* @__PURE__ */ w0(S_);
20123
20123
  async function C_(e) {
20124
- const t = await ed.loadAsync(e), n = { document: "", media: /* @__PURE__ */ new Map(), rawParts: /* @__PURE__ */ new Map() };
20124
+ const t = await td.loadAsync(e), n = { document: "", media: /* @__PURE__ */ new Map(), rawParts: /* @__PURE__ */ new Map() };
20125
20125
  for (const [r, i] of Object.entries(t.files))
20126
20126
  if (!i.dir)
20127
20127
  if (r === "word/document.xml")
@@ -20146,7 +20146,7 @@ async function C_(e) {
20146
20146
  return n;
20147
20147
  }
20148
20148
  async function N_(e) {
20149
- const t = new ed();
20149
+ const t = new td();
20150
20150
  t.file("[Content_Types].xml", e.contentTypes ?? I_), t.file("word/document.xml", e.document), e.styles && t.file("word/styles.xml", e.styles), e.numbering && t.file("word/numbering.xml", e.numbering), e.relationships && t.file("word/_rels/document.xml.rels", e.relationships);
20151
20151
  for (const [n, r] of e.media)
20152
20152
  t.file(n, r);
@@ -20164,9 +20164,9 @@ const I_ = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
20164
20164
  <Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
20165
20165
  <Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>
20166
20166
  </Types>`;
20167
- var zi = {}, $i = {}, ru;
20167
+ var zi = {}, $i = {}, iu;
20168
20168
  function ri() {
20169
- return ru || (ru = 1, (function(e) {
20169
+ return iu || (iu = 1, (function(e) {
20170
20170
  const t = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = t + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", r = "[" + t + "][" + n + "]*", i = new RegExp("^" + r + "$"), s = function(c, d) {
20171
20171
  const h = [];
20172
20172
  let m = d.exec(c);
@@ -20211,10 +20211,10 @@ function ri() {
20211
20211
  e.isName = o, e.getAllMatches = s, e.nameRegexp = r, e.DANGEROUS_PROPERTY_NAMES = a, e.criticalProperties = u;
20212
20212
  })($i)), $i;
20213
20213
  }
20214
- var iu;
20215
- function td() {
20216
- if (iu) return zi;
20217
- iu = 1;
20214
+ var su;
20215
+ function nd() {
20216
+ if (su) return zi;
20217
+ su = 1;
20218
20218
  const e = ri(), t = {
20219
20219
  allowBooleanAttributes: !1,
20220
20220
  //A tag can have attributes without any value
@@ -20447,10 +20447,10 @@ function td() {
20447
20447
  }
20448
20448
  return zi;
20449
20449
  }
20450
- var _r = {}, su;
20450
+ var _r = {}, au;
20451
20451
  function v_() {
20452
- if (su) return _r;
20453
- su = 1;
20452
+ if (au) return _r;
20453
+ au = 1;
20454
20454
  const { DANGEROUS_PROPERTY_NAMES: e, criticalProperties: t } = ri(), n = (a) => e.includes(a) ? "__" + a : a, r = {
20455
20455
  preserveOrder: !1,
20456
20456
  attributeNamePrefix: "@_",
@@ -20547,10 +20547,10 @@ function v_() {
20547
20547
  };
20548
20548
  return _r.buildOptions = o, _r.defaultOptions = r, _r;
20549
20549
  }
20550
- var ji, au;
20550
+ var ji, ou;
20551
20551
  function O_() {
20552
- if (au) return ji;
20553
- au = 1;
20552
+ if (ou) return ji;
20553
+ ou = 1;
20554
20554
  class e {
20555
20555
  constructor(n) {
20556
20556
  this.tagname = n, this.child = [], this[":@"] = {};
@@ -20564,10 +20564,10 @@ function O_() {
20564
20564
  }
20565
20565
  return ji = e, ji;
20566
20566
  }
20567
- var qi, ou;
20567
+ var qi, uu;
20568
20568
  function L_() {
20569
- if (ou) return qi;
20570
- ou = 1;
20569
+ if (uu) return qi;
20570
+ uu = 1;
20571
20571
  const e = ri();
20572
20572
  class t {
20573
20573
  constructor(o) {
@@ -20756,10 +20756,10 @@ function L_() {
20756
20756
  }
20757
20757
  return qi = t, qi;
20758
20758
  }
20759
- var Yi, uu;
20759
+ var Yi, lu;
20760
20760
  function R_() {
20761
- if (uu) return Yi;
20762
- uu = 1;
20761
+ if (lu) return Yi;
20762
+ lu = 1;
20763
20763
  const e = /^[-+]?0x[a-fA-F0-9]+$/, t = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, n = {
20764
20764
  hex: !0,
20765
20765
  // oct: false,
@@ -20811,10 +20811,10 @@ function R_() {
20811
20811
  }
20812
20812
  return Yi = r, Yi;
20813
20813
  }
20814
- var Wi, lu;
20815
- function nd() {
20816
- if (lu) return Wi;
20817
- lu = 1;
20814
+ var Wi, cu;
20815
+ function rd() {
20816
+ if (cu) return Wi;
20817
+ cu = 1;
20818
20818
  function e(t) {
20819
20819
  return typeof t == "function" ? t : Array.isArray(t) ? (n) => {
20820
20820
  for (const r of t)
@@ -20824,11 +20824,11 @@ function nd() {
20824
20824
  }
20825
20825
  return Wi = e, Wi;
20826
20826
  }
20827
- var Gi, cu;
20827
+ var Gi, du;
20828
20828
  function P_() {
20829
- if (cu) return Gi;
20830
- cu = 1;
20831
- const e = ri(), t = O_(), n = L_(), r = R_(), i = nd();
20829
+ if (du) return Gi;
20830
+ du = 1;
20831
+ const e = ri(), t = O_(), n = L_(), r = R_(), i = rd();
20832
20832
  class s {
20833
20833
  constructor(C) {
20834
20834
  if (this.options = C, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
@@ -21164,10 +21164,10 @@ function P_() {
21164
21164
  }
21165
21165
  return Gi = s, Gi;
21166
21166
  }
21167
- var Vi = {}, du;
21167
+ var Vi = {}, hu;
21168
21168
  function D_() {
21169
- if (du) return Vi;
21170
- du = 1;
21169
+ if (hu) return Vi;
21170
+ hu = 1;
21171
21171
  function e(s, o) {
21172
21172
  return t(s, o);
21173
21173
  }
@@ -21213,11 +21213,11 @@ function D_() {
21213
21213
  }
21214
21214
  return Vi.prettify = e, Vi;
21215
21215
  }
21216
- var Ki, hu;
21216
+ var Ki, fu;
21217
21217
  function M_() {
21218
- if (hu) return Ki;
21219
- hu = 1;
21220
- const { buildOptions: e } = v_(), t = P_(), { prettify: n } = D_(), r = td();
21218
+ if (fu) return Ki;
21219
+ fu = 1;
21220
+ const { buildOptions: e } = v_(), t = P_(), { prettify: n } = D_(), r = nd();
21221
21221
  class i {
21222
21222
  constructor(o) {
21223
21223
  this.externalEntities = {}, this.options = e(o);
@@ -21260,10 +21260,10 @@ function M_() {
21260
21260
  }
21261
21261
  return Ki = i, Ki;
21262
21262
  }
21263
- var Xi, fu;
21263
+ var Xi, pu;
21264
21264
  function B_() {
21265
- if (fu) return Xi;
21266
- fu = 1;
21265
+ if (pu) return Xi;
21266
+ pu = 1;
21267
21267
  const e = `
21268
21268
  `;
21269
21269
  function t(a, u) {
@@ -21341,11 +21341,11 @@ function B_() {
21341
21341
  }
21342
21342
  return Xi = t, Xi;
21343
21343
  }
21344
- var Qi, pu;
21344
+ var Qi, mu;
21345
21345
  function F_() {
21346
- if (pu) return Qi;
21347
- pu = 1;
21348
- const e = B_(), t = nd(), n = {
21346
+ if (mu) return Qi;
21347
+ mu = 1;
21348
+ const e = B_(), t = rd(), n = {
21349
21349
  attributeNamePrefix: "@_",
21350
21350
  attributesGroupName: !1,
21351
21351
  textNodeName: "#text",
@@ -21484,18 +21484,18 @@ function F_() {
21484
21484
  }
21485
21485
  return Qi = r, Qi;
21486
21486
  }
21487
- var Zi, mu;
21487
+ var Zi, gu;
21488
21488
  function U_() {
21489
- if (mu) return Zi;
21490
- mu = 1;
21491
- const e = td(), t = M_(), n = F_();
21489
+ if (gu) return Zi;
21490
+ gu = 1;
21491
+ const e = nd(), t = M_(), n = F_();
21492
21492
  return Zi = {
21493
21493
  XMLParser: t,
21494
21494
  XMLValidator: e,
21495
21495
  XMLBuilder: n
21496
21496
  }, Zi;
21497
21497
  }
21498
- var oa = U_();
21498
+ var ua = U_();
21499
21499
  const H_ = {
21500
21500
  ignoreAttributes: !1,
21501
21501
  attributeNamePrefix: "@_",
@@ -21522,19 +21522,19 @@ const H_ = {
21522
21522
  textNodeName: "#text",
21523
21523
  trimValues: !1,
21524
21524
  preserveOrder: !0
21525
- }, $_ = new oa.XMLParser(z_), j_ = {
21525
+ }, $_ = new ua.XMLParser(z_), j_ = {
21526
21526
  ignoreAttributes: !1,
21527
21527
  attributeNamePrefix: "@_",
21528
21528
  textNodeName: "#text",
21529
21529
  format: !0,
21530
21530
  suppressEmptyNode: !0
21531
21531
  };
21532
- new oa.XMLParser(H_);
21533
- new oa.XMLBuilder(j_);
21532
+ new ua.XMLParser(H_);
21533
+ new ua.XMLBuilder(j_);
21534
21534
  function q_(e) {
21535
21535
  return $_.parse(e);
21536
21536
  }
21537
- const gu = {
21537
+ const bu = {
21538
21538
  Heading1: 1,
21539
21539
  Heading2: 2,
21540
21540
  Heading3: 3,
@@ -21553,8 +21553,8 @@ const gu = {
21553
21553
  "Heading 4": 4,
21554
21554
  "Heading 5": 5,
21555
21555
  "Heading 6": 6
21556
- }, bu = /* @__PURE__ */ new Set(["Code", "code", "SourceCode", "HTMLCode"]), Eu = /* @__PURE__ */ new Set(["Quote", "quote", "BlockQuote", "IntenseQuote"]);
21557
- let rd = /* @__PURE__ */ new Map();
21556
+ }, Eu = /* @__PURE__ */ new Set(["Code", "code", "SourceCode", "HTMLCode"]), yu = /* @__PURE__ */ new Set(["Quote", "quote", "BlockQuote", "IntenseQuote"]);
21557
+ let id = /* @__PURE__ */ new Map();
21558
21558
  function Y_(e) {
21559
21559
  const t = /* @__PURE__ */ new Map();
21560
21560
  if (!e)
@@ -21586,7 +21586,7 @@ async function iw(e, t) {
21586
21586
  }, a;
21587
21587
  } catch {
21588
21588
  }
21589
- rd = Y_(n.relationships);
21589
+ id = Y_(n.relationships);
21590
21590
  const i = q_(n.document), o = { type: "root", children: W_(i) };
21591
21591
  return o.data = {
21592
21592
  docx: {
@@ -21645,9 +21645,9 @@ function V_(e, t, n, r, i) {
21645
21645
  return null;
21646
21646
  }
21647
21647
  const u = Ji(o, "w:pStyle", "w:val");
21648
- if (u && bu.has(u))
21648
+ if (u && Eu.has(u))
21649
21649
  return { type: "codeBlock", value: K_(e) };
21650
- if (u && Eu.has(u)) {
21650
+ if (u && yu.has(u)) {
21651
21651
  const y = un(e);
21652
21652
  return y.length === 0 ? null : {
21653
21653
  type: "blockquote",
@@ -21662,7 +21662,7 @@ function V_(e, t, n, r, i) {
21662
21662
  children: [{ type: "paragraph", children: y }]
21663
21663
  };
21664
21664
  }
21665
- const h = u ? gu[u] : void 0;
21665
+ const h = u ? bu[u] : void 0;
21666
21666
  if (h) {
21667
21667
  const y = un(e);
21668
21668
  return { type: "heading", depth: h, children: y };
@@ -21671,7 +21671,7 @@ function V_(e, t, n, r, i) {
21671
21671
  if (m.length === 0)
21672
21672
  return null;
21673
21673
  const f = { type: "paragraph", children: m };
21674
- u && !gu[u] && !bu.has(u) && !Eu.has(u) && (f.classes = [u]);
21674
+ u && !bu[u] && !Eu.has(u) && !yu.has(u) && (f.classes = [u]);
21675
21675
  const E = {}, g = o.find((y) => y["w:jc"] !== void 0);
21676
21676
  return g && (E.align = (p = g[":@"]) == null ? void 0 : p["@_w:val"]), Object.keys(E).length > 0 && (f.data = { docx: E }), f;
21677
21677
  }
@@ -21682,7 +21682,7 @@ function un(e) {
21682
21682
  const r = n["w:r"] ?? [], i = vs(r);
21683
21683
  if (!i)
21684
21684
  continue;
21685
- const s = yu(r), o = { type: "text", value: i };
21685
+ const s = Tu(r), o = { type: "text", value: i };
21686
21686
  s.length > 0 && (o.marks = s);
21687
21687
  const a = r.find((u) => u["w:rPr"] !== void 0);
21688
21688
  if (a) {
@@ -21691,13 +21691,13 @@ function un(e) {
21691
21691
  }
21692
21692
  t.push(o);
21693
21693
  } else if (n["w:hyperlink"] !== void 0) {
21694
- const r = n["w:hyperlink"] ?? [], i = n[":@"] ?? {}, s = i["@_r:id"] ?? i["@_w:id"] ?? "", o = rd.get(s) ?? `#${s}`;
21694
+ const r = n["w:hyperlink"] ?? [], i = n[":@"] ?? {}, s = i["@_r:id"] ?? i["@_w:id"] ?? "", o = id.get(s) ?? `#${s}`;
21695
21695
  for (const a of r)
21696
21696
  if (a["w:r"] !== void 0) {
21697
21697
  const u = a["w:r"] ?? [], c = vs(u);
21698
21698
  if (!c)
21699
21699
  continue;
21700
- const d = yu(u);
21700
+ const d = Tu(u);
21701
21701
  d.push({ type: "link", attrs: { url: o } }), t.push({ type: "text", value: c, marks: d });
21702
21702
  }
21703
21703
  }
@@ -21724,7 +21724,7 @@ function K_(e) {
21724
21724
  }
21725
21725
  return t;
21726
21726
  }
21727
- function yu(e) {
21727
+ function Tu(e) {
21728
21728
  var i, s, o;
21729
21729
  const t = e.find((a) => a["w:rPr"] !== void 0);
21730
21730
  if (!t)
@@ -21791,7 +21791,7 @@ function Ji(e, t, n) {
21791
21791
  if (r)
21792
21792
  return (i = r[":@"]) == null ? void 0 : i[`@_${n}`];
21793
21793
  }
21794
- const Tu = {
21794
+ const _u = {
21795
21795
  black: "000000",
21796
21796
  white: "FFFFFF",
21797
21797
  red: "FF0000",
@@ -21813,8 +21813,8 @@ const Tu = {
21813
21813
  };
21814
21814
  function Os(e) {
21815
21815
  const t = e.trim().toLowerCase();
21816
- if (Tu[t])
21817
- return Tu[t];
21816
+ if (_u[t])
21817
+ return _u[t];
21818
21818
  const n = t.match(/^#([0-9a-f]{3,8})$/);
21819
21819
  if (n) {
21820
21820
  const i = n[1];
@@ -21956,7 +21956,7 @@ function ek(e) {
21956
21956
  }
21957
21957
  return t.length > 0 ? `<w:pPr>${t.join("")}</w:pPr>` : "";
21958
21958
  }
21959
- function ua(e, t, n, r, i) {
21959
+ function la(e, t, n, r, i) {
21960
21960
  const s = [];
21961
21961
  if (s.push(`<w:style w:type="${n}" w:customStyle="1" w:styleId="${e}">`), s.push(`<w:name w:val="${t}"/>`), n === "paragraph" && s.push('<w:basedOn w:val="Normal"/>'), i) {
21962
21962
  const o = ek(i);
@@ -22128,10 +22128,10 @@ function lk(e, t, n) {
22128
22128
  _containerRPr: a,
22129
22129
  _containerPPr: c
22130
22130
  };
22131
- return e.children.map((h) => id(h, d, n)).join(`
22131
+ return e.children.map((h) => Ls(h, d, n)).join(`
22132
22132
  `);
22133
22133
  }
22134
- function id(e, t, n) {
22134
+ function Ls(e, t, n) {
22135
22135
  const r = t, i = r._containerRPr ?? "", s = r._containerPPr ?? "", o = sd(e, t), a = i + o;
22136
22136
  function u(d) {
22137
22137
  return s ? d ? d.replace("</w:pPr>", `${s}</w:pPr>`) : `<w:pPr>${s}</w:pPr>` : d;
@@ -22143,14 +22143,14 @@ function id(e, t, n) {
22143
22143
  if (e.type === "heading") {
22144
22144
  const d = e, h = `h${d.depth}`, m = a, f = d.children.map((p) => Xt(p, t, m)).join("");
22145
22145
  let E = "";
22146
- t.cssElements[h] ? (la(h, t), E = `<w:pStyle w:val="_el_${h}"/>`) : E = `<w:pStyle w:val="Heading${d.depth}"/>`;
22146
+ t.cssElements[h] ? (ca(h, t), E = `<w:pStyle w:val="_el_${h}"/>`) : E = `<w:pStyle w:val="Heading${d.depth}"/>`;
22147
22147
  const g = d.classes;
22148
22148
  if (g != null && g.length) {
22149
22149
  for (const p of g)
22150
22150
  if (t.cssClasses[p] && !t.generatedStyleIds.has(p)) {
22151
22151
  t.generatedStyleIds.add(p);
22152
22152
  const y = Et(t.cssClasses[p]), x = tr(t.cssClasses[p]);
22153
- t.customStyles.push(ua(p, p, "paragraph", y, x));
22153
+ t.customStyles.push(la(p, p, "paragraph", y, x));
22154
22154
  }
22155
22155
  }
22156
22156
  return `<w:p>${u(`<w:pPr>${E}</w:pPr>`)}${f}</w:p>`;
@@ -22171,7 +22171,7 @@ function id(e, t, n) {
22171
22171
  const y = p.children.map((O) => Xt(O, t, _)).join("");
22172
22172
  let x = `<w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${h}"/></w:numPr></w:pPr>`;
22173
22173
  x = u(x), m.push(`<w:p>${x}${y}</w:p>`);
22174
- } else p.type === "list" && m.push(id(p, t, n + 1));
22174
+ } else p.type === "list" ? m.push(Ls(p, t, n + 1)) : m.push(Ls(p, t, n));
22175
22175
  }
22176
22176
  return m.join(`
22177
22177
  `);
@@ -22185,7 +22185,7 @@ function ck(e, t) {
22185
22185
  }
22186
22186
  function dk(e, t) {
22187
22187
  const n = `h${e.depth}`, r = t.cssElements[n] ? Yt(Et(t.cssElements[n])) : "", i = e.children.map((s) => Xt(s, t, r)).join("");
22188
- return t.cssElements[n] ? (la(n, t), `<w:p><w:pPr><w:pStyle w:val="_el_${n}"/></w:pPr>${i}</w:p>`) : `<w:p><w:pPr><w:pStyle w:val="Heading${e.depth}"/></w:pPr>${i}</w:p>`;
22188
+ return t.cssElements[n] ? (ca(n, t), `<w:p><w:pPr><w:pStyle w:val="_el_${n}"/></w:pPr>${i}</w:p>`) : `<w:p><w:pPr><w:pStyle w:val="Heading${e.depth}"/></w:pPr>${i}</w:p>`;
22189
22189
  }
22190
22190
  function sd(e, t) {
22191
22191
  const n = ud(e.type, e), r = e.classes;
@@ -22332,7 +22332,7 @@ function od(e, t) {
22332
22332
  if (t.cssClasses[u] && !t.generatedStyleIds.has(u)) {
22333
22333
  t.generatedStyleIds.add(u);
22334
22334
  const c = t.cssClasses[u], d = Et(c), h = tr(c);
22335
- t.customStyles.push(ua(u, u, "paragraph", d, h));
22335
+ t.customStyles.push(la(u, u, "paragraph", d, h));
22336
22336
  }
22337
22337
  }
22338
22338
  const i = (o = e.data) == null ? void 0 : o.docx;
@@ -22341,7 +22341,7 @@ function od(e, t) {
22341
22341
  a.before && u.push(`w:before="${a.before}"`), a.after && u.push(`w:after="${a.after}"`), a.line && u.push(`w:line="${a.line}"`), u.length && n.push(`<w:spacing ${u.join(" ")}/>`);
22342
22342
  }
22343
22343
  const s = ud(e.type, e);
22344
- return s && (la(s, t), (!r || r.length === 0) && n.unshift(`<w:pStyle w:val="_el_${Dt(s)}"/>`)), n.length > 0 ? `<w:pPr>${n.join("")}</w:pPr>` : "";
22344
+ return s && (ca(s, t), (!r || r.length === 0) && n.unshift(`<w:pStyle w:val="_el_${Dt(s)}"/>`)), n.length > 0 ? `<w:pPr>${n.join("")}</w:pPr>` : "";
22345
22345
  }
22346
22346
  function ud(e, t) {
22347
22347
  switch (e) {
@@ -22367,7 +22367,7 @@ function ud(e, t) {
22367
22367
  return null;
22368
22368
  }
22369
22369
  }
22370
- function la(e, t) {
22370
+ function ca(e, t) {
22371
22371
  const n = `_el_${e}`;
22372
22372
  if (t.generatedStyleIds.has(n))
22373
22373
  return;
@@ -22376,7 +22376,7 @@ function la(e, t) {
22376
22376
  return;
22377
22377
  t.generatedStyleIds.add(n);
22378
22378
  const i = Et(r), s = tr(r), o = e.match(/^h[1-6]$/) ? `Heading${e[1]}` : void 0;
22379
- let a = ua(n, e, "paragraph", i, s);
22379
+ let a = la(n, e, "paragraph", i, s);
22380
22380
  o && (a = a.replace('<w:basedOn w:val="Normal"/>', `<w:basedOn w:val="${o}"/>`)), t.customStyles.push(a);
22381
22381
  }
22382
22382
  function ld(e) {
@@ -22400,17 +22400,17 @@ function Dt(e) {
22400
22400
  }
22401
22401
  export {
22402
22402
  Tk as blockquote,
22403
- ua as buildStyleElement,
22403
+ la as buildStyleElement,
22404
22404
  Mk as code,
22405
22405
  wk as codeBlock,
22406
22406
  $k as collectNodes,
22407
22407
  tr as cssToParaProps,
22408
22408
  Et as cssToRunProps,
22409
22409
  Yk as diff,
22410
- fa as diffText,
22410
+ pa as diffText,
22411
22411
  Nk as div,
22412
22412
  Rk as emphasis,
22413
- wu as hashNode,
22413
+ Au as hashNode,
22414
22414
  yk as heading,
22415
22415
  Fk as highlight,
22416
22416
  Ok as image,
@@ -22423,12 +22423,12 @@ export {
22423
22423
  _k as list,
22424
22424
  kk as listItem,
22425
22425
  jk as nodeAtPath,
22426
- ku as nodeCount,
22426
+ wu as nodeCount,
22427
22427
  ek as paraPropsToXml,
22428
22428
  Ek as paragraph,
22429
22429
  Os as parseColor,
22430
22430
  tw as parseCssClasses,
22431
- qc as parseCssRules,
22431
+ Yc as parseCssRules,
22432
22432
  Z_ as parseLengthHalfPts,
22433
22433
  ln as parseLengthTwips,
22434
22434
  Nn as pathTo,
@@ -22444,7 +22444,7 @@ export {
22444
22444
  Ik as text,
22445
22445
  Ck as thematicBreak,
22446
22446
  Dk as underline,
22447
- _u as visit,
22447
+ ku as visit,
22448
22448
  Uk as withClasses,
22449
22449
  Hk as withData,
22450
22450
  zk as withId,